@univerjs-pro/collaboration-client 0.2.6 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/es/index.js +1 -1
  3. package/lib/types/controllers/collab-cursor/__tests__/doc-collab-cursor.controller.spec.d.ts +0 -1
  4. package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +0 -1
  5. package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +0 -1
  6. package/lib/types/controllers/collab-cursor/doc-collab-cursor-render.controller.d.ts +8 -5
  7. package/lib/types/controllers/collab-cursor/serialize-text-ranges.d.ts +0 -1
  8. package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +0 -1
  9. package/lib/types/controllers/collab-cursor/sheet-collab-cursor-render.controller.d.ts +0 -1
  10. package/lib/types/controllers/collab-status/collab-status.controller.d.ts +0 -1
  11. package/lib/types/controllers/collaboration/__tests__/collaboration.controller.spec.d.ts +0 -1
  12. package/lib/types/controllers/collaboration/__tests__/mock-text-selection-render-manager.service.d.ts +0 -1
  13. package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +0 -1
  14. package/lib/types/controllers/collaboration/collaboration-state.d.ts +0 -1
  15. package/lib/types/controllers/collaboration/collaboration.controller.d.ts +0 -1
  16. package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +0 -1
  17. package/lib/types/controllers/collaboration/utils/empty.d.ts +0 -1
  18. package/lib/types/controllers/data-loader/data-loader.controller.d.ts +0 -1
  19. package/lib/types/controllers/file-name/file-name.controller.d.ts +0 -1
  20. package/lib/types/locale/en-US.d.ts +0 -1
  21. package/lib/types/locale/ru-RU.d.ts +0 -1
  22. package/lib/types/locale/vi-VN.d.ts +0 -1
  23. package/lib/types/locale/zh-TW.d.ts +0 -1
  24. package/lib/types/models/cursor.d.ts +0 -1
  25. package/lib/types/plugin.d.ts +0 -1
  26. package/lib/types/services/auth-server/auth-server.service.d.ts +0 -1
  27. package/lib/types/services/auth-server/authz-io-http.service.d.ts +0 -1
  28. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +0 -1
  29. package/lib/types/services/color-assign/color-assign.service.d.ts +0 -1
  30. package/lib/types/services/comment/comment.service.d.ts +0 -1
  31. package/lib/types/services/image-remote/image-io.service.d.ts +0 -1
  32. package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +0 -1
  33. package/lib/types/services/local-cache/local-cache.service.d.ts +0 -1
  34. package/lib/types/services/member/member.service.d.ts +0 -1
  35. package/lib/types/services/permission/permission.service.d.ts +0 -1
  36. package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +0 -1
  37. package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +0 -1
  38. package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +0 -1
  39. package/lib/types/services/socket/collaboration-socket.service.d.ts +0 -1
  40. package/lib/types/services/socket/serialize.d.ts +0 -1
  41. package/lib/types/services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service.d.ts +0 -1
  42. package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +0 -1
  43. package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +0 -1
  44. package/lib/types/services/url/url.service.d.ts +0 -1
  45. package/lib/types/services/url/web-url.service.d.ts +0 -1
  46. package/lib/types/views/components/CollabStatus.d.ts +0 -1
  47. package/lib/types/views/components/CollabStatus.stories.d.ts +0 -1
  48. package/lib/types/views/shapes/doc-collab-cursor.d.ts +2 -2
  49. package/lib/types/views/shapes/sheet-collab-cursor.shape.d.ts +0 -1
  50. package/lib/types/views/shapes/text-bubble.shape.d.ts +0 -1
  51. package/lib/umd/index.js +1 -1
  52. package/package.json +32 -36
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x3a54(){const _0x542c3c=['onCommandExecuted','Error\x20on\x20receiving\x20event','clearInterval','getInterceptPoints','round','getTypeOfUnitAdded$','getParam','not_collab','PERMISSION_REJ','_univerInstanceService','resolve','_anchor','ALREADY_EXISTS','/allowed','SNAPSHOT_SERVER_URL_KEY','_members','_sheetTransformSelectionsService','_incrementRevisionNumber','327474VfpAGH','RxDisposable','clsx','file','_startSheetCollabCursor','RichTextEditingMutation','_handler','JOINING','liveShareNewHost','SNAPSHOT_URL_KEY','_memberService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','encodeURIComponent','_disabled','@univerjs/core','isInternalEditorID','_unitOnClients','rev','_roomMembers$','_socketMessageSubscription','COLLAB_SUBMIT_CHANGESET_URL','evenodd','prototype','_disableEditing','EffectRefRangId','image/gif','_textBubble','univerjs-icon\x20univerjs-icon-','LIVESHARE_NEW_HOST','_onConnectionFailed','send','_color','IMessageService','isTransformChangesetsSuccess','_sessions','lodash/debounce','UNKNOWN_CMD','getOffsetConfig','requireSession','univer-pro.collaboration-client-socket-service','_removeRoom','collabCursorState$','_scene','UNIVER_DOC','append','then','dispose','onlyLocal','routeKey','LICENSE_MAX_UNITS_EXCEEDED','originalMeta','IBeforeCloseService','[OfflineState]:\x20received\x20changeset.','endColumn','unsubscribe','tag','allowed','_getSnapshotAPIPrefix','message$','asObservable','onMissedChangesetFetched','Ready','collabStatus.offline','_transformIMECache','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_cursor','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','univer-online-status','collaboration.closeRoom','?size=','parse','_registerRenderDependencies','LOGIN_URL_KEY','objectType','#FFF','LICENSE_IMPORT_SIZE_EXCEEDED','incrementRevForDocument','resend','onRemoteAck','getOwnPropertySymbols','symbol','_createInitialState','getUnitType','_cursors','getResourcesRequest','onSyncEditingCollabCursor','ICommandService','693QlzgMg','[CollaborationSessionService]:\x20socket\x20error','event$','_onFetchMissResult','_waitCount','createElement','[OfflineState]:\x20received\x20acknowledgement.','_updateLocalCursor','getValue','SNAPSHOT_INVALID_SNAPSHOT','stringify','className','SetTextSelectionsOperation','_entityInit$','LIVESHARE_TERMINATE','switchMap','ThemeService','[DataLoaderController]','getFocusedUnit','fetchThroughInterceptors','ImageSourceType','getOwnPropertyDescriptor','_clearHeartbeatTimer','CollaborationSessionService','toDisposable','CONFLICT','params','onRemoteChangeset','@univerjs/rpc','image/jpeg','24mNvpEA','handleIRemoveRow','_transformRemoteChangesetByIMECache','[SyncedState]:\x20received\x20acknowledgement.','closeSession','_drawAnchor','_startCollaboration','Subject','RevisionService','_handleJoinEvent','pipe','setUndoRedoMutationParamsCache','fill','awaiting_with_pending','skeleton','LocaleService','snapshot','error$','CollaborationController','cursorInfo','withCredentials','_onConnectionOpen','SessionStatus','_onUserJoin','getUnhiddenWorksheets','Disposable','_updateLocalCache','_logService','_scheduleCollaborationTimeoutTimer','65xCKTvY','FETCH_MISSING','_localStorageService','urlChange$','session.room-full','XHRHTTPImplementation','/universer-api/stream/file/upload','\x0aCurrent:\x20','_getSendChangesetTimeout','_timeoutTimer','liveShareOperation','searchParams','confirm','startsWith','_refRangeService','off-line-single','setParam','getMember','close','RegularPolygon','_initCloseConn','delay','UniverInstanceType','_queuedRemoteChangesets','_localCacheService','data','post','_removeCollabCursors','Tools','_state$','getWorkbookSelections','getSheetBySheetId','WebSocketService','max','replaceTextRanges','_hideTimer','_updateURLWithCurrentState','FromArray','result','handleDeleteRangeMoveLeft','getActiveRange','transformMutationsWithChangeset','split','_userManagerService','auth.needGotoLoginAlert','getTypeOfUnitDisposed$','findNodePositionByCharIndex','_sendHeartbeatTimer','CollaborationSocketService','fetch_missing','defineProperty','requestParams','_docTransformIMECacheService','registerOnClose','_scheduleClearOtherTimer','INGEST','makeDirty','OnLifecycle','toStringTag','font','onlineStatusIcon','_startDocCollabCursor','top','_commentService','children','labelPosition','CHANGESET_ACK','onPointerEnter$','M0\x200H16V16H0z','deleteCollaborator','_status$','getCurrentRevForDocument','href','ACTIVE_UNIT_EVENT_CHANNEL','_toggleOffline','IRenderManagerService','OFFLINE','reduce','_setupSubUnitSync','Vector2','unload','IUniverInstanceService','range','CommandType','_init','backgroundColor','on-line-single','enableSingleActiveInstanceLock','/object','mutations','onStateChange','merge','push','createCollaborator','FAIL','@univerjs/drawing','c2Prime','setActiveRange','action','defs','_onLocalMutation','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','target','_sessionStatus$','objectID','flatMap','_waitForHeartbeatResponse','ImageUploadStatusType','gold400','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','state$','saveChangeset','m2Prime','removeMember','_unitStatus','LIVESHARE_FETCH_OPERATIONS','reject','deserializeToCombResponse','registerRenderModule','SheetPermissionInitController','[PendingState]:\x20received\x20acknowledgement.','_configService','getUnitStatus$','HEARTBEAT','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','onSendChangeset','_session','_updateStatus','updatePermissionPoint','_collabSessionService','_context','ILogService','_onUserLeave','_backgroundColor','some','{fileID}','AuthzIoHttpService','code','image/png','attrs','getCollabEntity$','DocStateChangeManagerService','/universer-api/oidc/authpage','_collabCursorController','DesktopCollaborationStatusDisplayController','transformUndoRedo','POST','_render','FETCH_MISS','ERROR_IMAGE','socket\x20open.','...','onMouseMove','@univerjs/network','COMPRESS_MUTATION_SEND','rxjs/operators','CollaborationEvent','_docSyncEditingCollabCursorService','ONLINE','members','body','onMissingChangesets','UPDATE_CURSOR','offline','[FetchMissState]','_event$','univer-online-status-title','function','restore','SUBMIT_CHANGESET','SetWorksheetActivateCommand','UniverCollaborationClientPlugin','SetSelectionsOperation','collaboration.single-unit.warning','clearTimeout','_createHandler','replace','interceptor','_initStatusComponent','executeCommand','icon','_onRefRangeChange','SNAPSHOT_HAS_BEEN_REMOVED','collabStatus.conflict','_collaborationPaused','getUnitOnRev','mergeOverrideWithDependencies','[PendingState]:\x20unhandled\x20univer\x20type:\x20','addObject','_executeRemoteChangeset','\x0aAfter:\x20','newValue','mapDocumentTypeToUniverType','location','_getLoginPath','_assignedColors','put','_eventUnsubscribe','storage','_onRemoteChangeset','roles','_transitionLocked','useDependency','activeSheet$','getCurrent','BASE64','NOT_COLLAB','HEADER_MENU','transformMutation','INTERNAL_ERROR','_updateSubUnitFromURLParams','url(#off-line-single_clip0_910_343)','/unit/','isArray','IUIPartsService','_cursorInfo$','Optional','actions','loadOfflineData','UNRECOGNIZED','12010MDjOrF','_id','_loadDoc','translate(.97)','addImageSourceCache','clear','NEW_CHANGESETS','_unlockTransition','fillStyle','permissionRejEvent','syncEditingCollabCursor','CHANGESET_REVISION_CONFILICT','SheetsSelectionsService','HEARTBEAT_TIMEOUT_KEY','updateMember','_createSocket','next','SEND_CHANGESET_TIMEOUT_KEY','color','onTransformRemoteChangesetByIMECache','joinRsp','CompressMutationService','DataLoaderController','PENDING','textEncoder','RETRY_CONNECTING_MAX_COUNT','call','editing\x20status\x20changed\x20to','isTransformMutationsWithChangesetFailure','IDLE','SYNCED','lineTo','_redoStacks','width','_scheduleSaving','rxjs','ranges','_colorIndex','handleInsertRangeMoveRight','serializeTextRange','connectInjector','_ws','hide','forEach','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_awaitingChangeset','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getViewport','deserializeRangeWithSheet','isTransformMutationFailure','transformChangesets','entries','getConfig','colorChannel1','disableLocalCache','4044390zWlFxy','_ensureSubject','YUUMI_UNABLE_LOAD_URL','pushState','override','_remoteChangesetQueue','/-/object/list','transformSelections','startRow','APPLY_REVISION_CONFILICT','IURLService','transform','mapTo','changesets','_transformPreviousActiveRange','whenReady','Warning','IUndoRedoService','onStarting','SheetSkeletonManagerService','248925cEDHsz','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','text','IAuthzIoService','_draw','_hover','online','useRef','SnapshotService','close$','selection','COMMENT_UPDATE','_transformSelections','shouldCloseConn','path','_undoStacks','LIVESHARE_REQUEST_HOST','_range','@univerjs/docs','onlineStatus','socket\x20close','Error','createInstance','UserManagerService','json','clipPath','socketService','_clearTimeoutTimer','roomMembers','open$','univer-pro.collaboration-client.single-active-unit-service','_permissionService','getCurrentSelections','_hovered','filter','ImageIoService','RECV','_notificationService','RETRY_CONNECTING_INTERVAL','_collaborationSessionService','Plugin','submit\x20changeset\x20error!','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','CHANGESET_REJ','_shapes','onPointerMove$','FileId','ColorKit','defIds','JOIN','_selfUnitIDs','svg','deepClone','apply','name','univer-offline','_localeService','_toggleOnline','complete','registerHTTPInterceptor','LOCAL_CACHE_INTERVAL','pending','_createInitialStateImpl','session.will-retry','\x20-\x20','serializeRangeWithSheet','_rescheduleHeartbeatEvent','ISnapshotServerService','url(#$1','UNDEFINED','_onConflict','startColumn','setInterval','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','collabStatus.syncing','_exhaustRemoteChangesetQueue','patch','current','isPermissionRej','m1Prime','isActive','dispose$','_loadSheet','idSuffix','COMPRESS_MUTATION_APPLY','LifecycleStages','_collaborationController','UNIVER_SHEET','/-/object/-/batch_allowed','beginPath','addObjects','LocalUndoRedoService','_undoRedoService','generateRandomId','/object/','[CollaborationEntity]','_onCursorDelete','_clearScheduledTask','off-line-single_clip0_910_343','_decreaseWaiting','status$','0\x200\x2017\x2016','_colorAssignService','_docSkeleton','Shape','UniverCollaborationPlugin','from','COLLAB_WEB_SOCKET_URL_KEY','use','_snapshotServerService','getCurrentUser','purple300','currentSkeleton$','setAlpha','SnapshotServerOverHTTPService','conflict','_roomMembers','Workbook','_collabCursorState$','[SyncedState]:\x20received\x20rejection.','USERS_ENTER','bottom','BehaviorSubject','NOT_FOUND','saveSheetBlock','getUnitId','unit-cache-','_saveTaskMap','encode','USERS_LEAVE','fillRule','baseRev','shareReplay','_initMergeInterceptor','getSheetBlock','eventID','_onRemoteACK','getItem','@univerjs/sheets','updateCollaborator','currentTheme$','getCollabCursors$','removeParam','_getSignURL','getMemberID','setShapeProps','RemoveColCommandId','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_showConflictNotification','update','slice','_clearUndo','setCurrentUser','_imageSourceCache','debug','size','_onJoinRoomEvent','/fetchmissing?from=','CollaborationStatus','collaboration-client.offline-data-not-saved','_commentUpdate$','CollaborationSession','row','arc','collabStatus.fetchMiss','_getSheetObject','saveImage','awaitingChangeset','putCollaborators','_clearCollaborationTimeoutTimer','subunit','getMergeData','loadSheet','_online','_cachedData','userID','EmptyMutation','IConfigService','DEFAULT_FILE_NAME','concatMap','_removeClearOtherTimer','black','ILocalStorageService','_getScale','_getUploadFileURL','handleInsertRow','MSG_FOR_ERROR','AWAITING_WITH_PENDING','handleIRemoveCol','memberID','blue400','getCurrentUnitForType','_injector','_transformUndoRedoStack','handleDeleteRangeMoveUp','_getMergeRange','0\x200\x2016\x2016','extend','includes','_getAPIPrefix','add','Rect','_sendingTimer','listRoles','_HTTPService','on-line-single_clip0_910_349','_document','substring','registerBeforeClose','debounceTime','measureText','_handleHover','_pendingMutations','objectActions','Injector','assignAColorForMemberID','concat','@univerjs/sheets-ui','set','_clearOtherTimers','replaceState','_transformStack','toString','_updateState','HELLO','[CollaborationSessionService]','focused$','Rectangle','LOCAL_CACHE_INTERVAL_KEY','collaboratorID','/universer-api/authz','currentColor','unitId','cmd','hovered','InsertRangeMoveDownCommandId','roomInfos','EXCHANGE_SIGN_URL_SERVER_URL_KEY','APPLY_REJECT','IMEInputManagerService','getColor','_registerDependencies','cursorInfo$','_onRemoteRejected','_substituteUndoStack','fromCollab','_labelPosition','_onRecvEvent','#fff','exhaustSavingTask','verdancy600','_unitID','_messageService','collab-text-range-','column','_clearLocalCache','moveTo','_state','_commandService','_renderManagerService','_joinRoom','roomMembers$','getCoordByCell','HTTPRequest','endRow','distinctUntilChanged','/universer-api/comb','_getCurrentRevision','title','_scheduleTimestamp','error','getTime','_sendHeartbeat','appendMutation','/universer-api/file/{fileID}/sign-url','_transformService','find','Unknown\x20user','ThresholdInterceptorFactory','enableLocalCache','collaMsg','818576otxYVY','initWorkbookPermissionChange','b64DecodeUnicode','_updateCollabCursors','pluginName','DependentOn','Starting','COLORS','AWAITING','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','LICENSE_EXPORT_SIZE_EXCEEDED','_change$','key','_submitChangeset','fetchMissingChangesets','show','_http','indexOf','getImage','setItem','toggleOnline','init','UPDATE_PERMISSION_OBJ','enableOfflineEditing','revision','setWaitCount','enableAuthServer','Inject','useObservable','_collaborationTimeoutTimer','_snapshotService','_handleHeartbeatEvent','subUnitId','_handleLeaveEvent','method','save\x20fail\x20reason\x20is\x20','_getSaveTimeout','LocalCacheService','OTHER_CLIENTS_EDITING','_socketService','MessageType','LICENSE_DISTRO_REJECTED','onRendered','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','/rev/','Module','SheetCollaborationEntity','INVALID_ARGUMENT','UNIVER_UNKNOWN','NodePositionConvertToCursor','url','updateCursorEvent','c1Prime','OffLineSingle','xlink:href','_syncEditingCollabCursorService','synced','_anchorDot','_initUnitPermissionChange','_retryCount','_scheduleReconnection','unshift','APPLY_PERMISSION_DENIED','@univerjs/engine-formula','_tryEnsureSocket','ERROR_EXCEED_SIZE','HEARTBEAT_INTERVAL','_schedule','/collaborator','status','displayName','_clearRedo','1em','selections','fromEvent','SUCCUSS','_getCtorByUniverType','textRanges','connection\x20error','_send','_handleEvent','LEAVE','LIVESHARE_OPERATION','drawWith','_httpService','_getRedoStack','collab-text-anchor-','_scheduleHeartbeat','[CollaborationSession]','setTimeout','SheetCollabCursorShape','_retryConnectingTimer','getCollabEntity','_entities','_substituteRedoStack','takeUntil','delete','subscribeEvent','batchAllowed','_checkMissing','getSheetId','uni.network.url-service','_compressMutationService','_syncEditingCollabCursor','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_setupBeforeClosingHandler','sheetID','_onCombEvent','_sheetSkeletonManagerService','@univerjs/engine-render','UUID','session','string','NO_OTHER_CLIENTS_EDITING','_socket','IPermissionService','onCommentUpdate','_socketReady','values','AUTHZ_URL_KEY','isTransformMutationsWithChangesetSuccess','_replaceFileID','sheets','_docTransformSelectionsService','RefRangeService','history','doc.mutation.rich-text-editing','COMPLETION_FINISHED','UniverIcon','_beforeCloseService','fetching\x20missing\x20changesets\x20from\x20','ITransformService','getImageSourceCache','div','_transformUndoredo','/universer-api/snapshot','take','onRemoteRej','triggerDblclick','DisposableCollection','[CollaborationState]:\x20apply\x20error!','IImageIoService','subscribe','getRangePointData','_socket$','disposeUnit','_getUndoStack','CONNECTOR_DATA_TOO_LARGE','TEXT_RANGE_LAYER_INDEX','ws://127.0.0.1:8000/universer-api/comb/connect','_lockTransition','_fetchMissChangesets','commentUpdate$','sessionStatus$','CommentService','catch','IContextService','SHOULD_CLOSE_CONN','177495jcbEuT','forwardRef','infoRsp','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','save','PSEUDO_FETCH_MISSING_RESULT','list','DocSkeletonManagerService','_heartbeatTimer','HTTPService','_getAPIPrefixPath','parseProtocolChangeset','univer-online-status-icon','_themeService','_urlService','height','_onCursorUpdate','awaiting','MUTATION','fillText','combineLatest','map','_uiPartsService','onTransformSelections','type','_saveCache','has','_name','unitID','csAckEvent','UNIVER_SLIDE','InsertColCommandId','11384zvPbcU','_isPermissionRej','PERMISSION_DENIED','_getAnchorBounding','unit','_applyRemoteChangeset','get','_acknowledgedAwaitingChangeset','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','_revisionService','_type','\x20in\x20_schedule.','OnLineSingle','sessionStatus','_config','getVpScrollXYInfoByPosToVp','image/bmp','unknown','[OfflineState]:\x20received\x20rejection.','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','createSocket','hasOwnProperty','loadDoc','[CollaborationUndoRedoService]','getAncestorScale','updateOfflineData','transformRemoteChangeset','transformIMECache','YUUMI_URL_COL_OUT_OF_RANGE','_initStatusListener','toggleOffline','serializeCombRequest','UNAUTHENTICATED','TextSelectionManagerService','UNKNOWN_CODE','WorkbookEditablePermission','@univerjs/ui','disposeWithMe','_drawRange','_singleActiveUnitService','jiqing500','getUndoRedoMutationParamsCache','length'];_0x3a54=function(){return _0x542c3c;};return _0x3a54();}const _0x32c408=_0x453d;(function(_0xaf1697,_0x17afc7){const _0x551c50=_0x453d,_0x21c932=_0xaf1697();while(!![]){try{const _0x482f50=parseInt(_0x551c50(0x507))/0x1*(parseInt(_0x551c50(0x216))/0x2)+parseInt(_0x551c50(0x418))/0x3+parseInt(_0x551c50(0x37a))/0x4+-parseInt(_0x551c50(0x261))/0x5*(parseInt(_0x551c50(0x4ea))/0x6)+-parseInt(_0x551c50(0x4cc))/0x7*(-parseInt(_0x551c50(0x438))/0x8)+parseInt(_0x551c50(0x475))/0x9+-parseInt(_0x551c50(0x24d))/0xa;if(_0x482f50===_0x17afc7)break;else _0x21c932['push'](_0x21c932['shift']());}catch(_0x3771ab){_0x21c932['push'](_0x21c932['shift']());}}}(_0x3a54,0x379ea));var jt=Object['defineProperty'],$t=(_0x23e26b,_0x35e5d1,_0x482ae6)=>_0x35e5d1 in _0x23e26b?jt(_0x23e26b,_0x35e5d1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x482ae6}):_0x23e26b[_0x35e5d1]=_0x482ae6,u=(_0x37f378,_0xe0db62,_0x3f35d3)=>$t(_0x37f378,typeof _0xe0db62!=_0x32c408(0x4c5)?_0xe0db62+'':_0xe0db62,_0x3f35d3);Object[_0x32c408(0x539)](exports,Symbol[_0x32c408(0x541)],{'value':_0x32c408(0x3a7)});const o=require(_0x32c408(0x483)),p=require(_0x32c408(0x2eb)),z=require('@univerjs/design'),L=require(_0x32c408(0x45c)),_=require('@univerjs-pro/collaboration'),v=require(_0x32c408(0x239)),C=require(_0x32c408(0x1d5)),U=require(_0x32c408(0x273)),P=require(_0x32c408(0x1d3)),N=require(_0x32c408(0x566)),T=require(_0x32c408(0x3e7)),Ye=require(_0x32c408(0x3b9)),$e=require(_0x32c408(0x498)),q=require(_0x32c408(0x33a)),w=require('react'),Ht=require(_0x32c408(0x477)),xt=require(_0x32c408(0x4e8)),at='SNAPSHOT_SERVER_URL_KEY',kt=_0x32c408(0x401),ct=_0x32c408(0x47e),lt='SEND_CHANGESET_TIMEOUT',Bt=0x7d0,ht='COLLAB_WEB_SOCKET_URL',Ft=_0x32c408(0x40f),_t=_0x32c408(0x3bc),Vt=0x7530,He='HEARTBEAT_TIMEOUT',ut=0x2710,Wt=_0x32c408(0x287),Gt=0x4e20,Yt=_0x32c408(0x22f),Kt=0x3,dt=_0x32c408(0x29d),Xt=0x3e8,St=_0x32c408(0x489),qt=_0x32c408(0x36b),vt=_0x32c408(0x4bd),Jt=_0x32c408(0x1c8);var mt=(_0x2dce0b=>(_0x2dce0b[_0x2dce0b[_0x32c408(0x2a6)]=0x0]=_0x32c408(0x2a6),_0x2dce0b[_0x2dce0b['OK']=0x1]='OK',_0x2dce0b[_0x2dce0b['INTERNAL_ERROR']=0x2]=_0x32c408(0x20b),_0x2dce0b[_0x2dce0b[_0x32c408(0x43a)]=0x3]='PERMISSION_DENIED',_0x2dce0b[_0x2dce0b[_0x32c408(0x2dc)]=0x4]=_0x32c408(0x2dc),_0x2dce0b[_0x2dce0b[_0x32c408(0x458)]=0x5]='UNAUTHENTICATED',_0x2dce0b[_0x2dce0b[_0x32c408(0x46f)]=0x6]=_0x32c408(0x46f),_0x2dce0b[_0x2dce0b[_0x32c408(0x3a9)]=0x7]='INVALID_ARGUMENT',_0x2dce0b[_0x2dce0b['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x2dce0b[_0x2dce0b[_0x32c408(0x3f9)]=0x9]=_0x32c408(0x3f9),_0x2dce0b[_0x2dce0b[_0x32c408(0x221)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2dce0b[_0x2dce0b[_0x32c408(0x4d5)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2dce0b[_0x2dce0b['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x32c408(0x1f0),_0x2dce0b[_0x2dce0b['APPLY_REJECT']=0x1b59]=_0x32c408(0x34f),_0x2dce0b[_0x2dce0b['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2dce0b[_0x2dce0b[_0x32c408(0x256)]=0x1b5b]=_0x32c408(0x256),_0x2dce0b[_0x2dce0b[_0x32c408(0x3b8)]=0x1b5c]=_0x32c408(0x3b8),_0x2dce0b[_0x2dce0b[_0x32c408(0x40d)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2dce0b[_0x2dce0b[_0x32c408(0x4a6)]=0x2329]=_0x32c408(0x4a6),_0x2dce0b[_0x2dce0b[_0x32c408(0x242)]=0x232a]=_0x32c408(0x242),_0x2dce0b[_0x2dce0b['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x32c408(0x4c0),_0x2dce0b[_0x2dce0b[_0x32c408(0x384)]=0x232c]=_0x32c408(0x384),_0x2dce0b[_0x2dce0b[_0x32c408(0x3a3)]=0x232d]=_0x32c408(0x3a3),_0x2dce0b[_0x2dce0b[_0x32c408(0x24f)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x2dce0b[_0x2dce0b['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x32c408(0x454),_0x2dce0b[_0x2dce0b['UNRECOGNIZED']=-0x1]=_0x32c408(0x215),_0x2dce0b))(mt||{}),A=(_0x1bc6e1=>(_0x1bc6e1[_0x1bc6e1[_0x32c408(0x3aa)]=0x0]=_0x32c408(0x3aa),_0x1bc6e1[_0x1bc6e1[_0x32c408(0x4a0)]=0x1]=_0x32c408(0x4a0),_0x1bc6e1[_0x1bc6e1[_0x32c408(0x2b8)]=0x2]=_0x32c408(0x2b8),_0x1bc6e1[_0x1bc6e1[_0x32c408(0x436)]=0x3]=_0x32c408(0x436),_0x1bc6e1[_0x1bc6e1[_0x32c408(0x215)]=-0x1]=_0x32c408(0x215),_0x1bc6e1))(A||{}),b=(_0x55fa27=>(_0x55fa27[_0x55fa27[_0x32c408(0x499)]=0x0]=_0x32c408(0x499),_0x55fa27[_0x55fa27['HELLO']=0x1]=_0x32c408(0x341),_0x55fa27[_0x55fa27[_0x32c408(0x292)]=0x2]=_0x32c408(0x292),_0x55fa27[_0x55fa27['LEAVE']=0x3]='LEAVE',_0x55fa27[_0x55fa27[_0x32c408(0x53e)]=0x4]='INGEST',_0x55fa27[_0x55fa27[_0x32c408(0x1b5)]=0x5]=_0x32c408(0x1b5),_0x55fa27[_0x55fa27[_0x32c408(0x285)]=0x6]=_0x32c408(0x285),_0x55fa27[_0x55fa27['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x55fa27))(b||{}),xe=(_0x56d323=>(_0x56d323[_0x56d323[_0x32c408(0x45a)]=0x0]=_0x32c408(0x45a),_0x56d323[_0x56d323['OK']=0x1]='OK',_0x56d323[_0x56d323[_0x32c408(0x565)]=0x2]=_0x32c408(0x565),_0x56d323[_0x56d323[_0x32c408(0x215)]=-0x1]='UNRECOGNIZED',_0x56d323))(xe||{}),zt=Object[_0x32c408(0x539)],Zt=Object[_0x32c408(0x4e1)],Qt=(_0x2cbf3d,_0x38e62b,_0x593dc0,_0x2ddf49)=>{const _0x23fd33=_0x32c408;for(var _0x4fd041=_0x2ddf49>0x1?void 0x0:_0x2ddf49?Zt(_0x38e62b,_0x593dc0):_0x38e62b,_0x2cf4b3=_0x2cbf3d[_0x23fd33(0x462)]-0x1,_0xb3ee0;_0x2cf4b3>=0x0;_0x2cf4b3--)(_0xb3ee0=_0x2cbf3d[_0x2cf4b3])&&(_0x4fd041=(_0x2ddf49?_0xb3ee0(_0x38e62b,_0x593dc0,_0x4fd041):_0xb3ee0(_0x4fd041))||_0x4fd041);return _0x2ddf49&&_0x4fd041&&zt(_0x38e62b,_0x593dc0,_0x4fd041),_0x4fd041;},Ke=(_0x3fe9bb,_0xdbfdab)=>(_0x2dab1c,_0x363bab)=>_0xdbfdab(_0x2dab1c,_0x363bab,_0x3fe9bb);let W=class extends o['Disposable']{constructor(_0x292bdd,_0x24a766){const _0x5b0c01=_0x32c408;super(),u(this,_0x5b0c01(0x2d5),new Map()),(this['_univerInstanceService']=_0x292bdd,this['_userManagerService']=_0x24a766,this[_0x5b0c01(0x45d)](o[_0x5b0c01(0x4e4)](v[_0x5b0c01(0x562)](this[_0x5b0c01(0x46c)][_0x5b0c01(0x534)](o[_0x5b0c01(0x51d)][_0x5b0c01(0x2b8)])[_0x5b0c01(0x4f4)](C['map'](_0x1514e5=>_0x1514e5['getUnitId']())),this[_0x5b0c01(0x46c)]['getTypeOfUnitDisposed$'](o[_0x5b0c01(0x51d)][_0x5b0c01(0x4a0)])[_0x5b0c01(0x4f4)](C['map'](_0x56922a=>_0x56922a[_0x5b0c01(0x2de)]())),this['_univerInstanceService'][_0x5b0c01(0x534)](o['UniverInstanceType']['UNIVER_SLIDE'])[_0x5b0c01(0x4f4)](C[_0x5b0c01(0x42d)](_0x11e050=>_0x11e050[_0x5b0c01(0x2de)]())))[_0x5b0c01(0x408)](_0x5b8dec=>this['_removeRoom'](_0x5b8dec)))));}[_0x32c408(0x2f9)](_0x17dee2){const _0x2fb299=_0x32c408;this[_0x2fb299(0x532)][_0x2fb299(0x2f9)](_0x17dee2);}[_0x32c408(0x2cf)](){const _0x472e25=_0x32c408;return this[_0x472e25(0x532)]['getCurrentUser']();}[_0x32c408(0x224)](_0x3a24fd,_0x2fb93f){const _0x57ca37=_0x32c408;let _0x3b9301=this[_0x57ca37(0x2d5)][_0x57ca37(0x43e)](_0x3a24fd);_0x3b9301||(_0x3b9301=new es(),this[_0x57ca37(0x2d5)]['set'](_0x3a24fd,_0x3b9301)),_0x3b9301[_0x57ca37(0x224)](_0x2fb93f);}[_0x32c408(0x578)](_0x5ec5bb,_0x5987e4){const _0x3d26e9=_0x32c408,_0x291dab=this['_roomMembers'][_0x3d26e9(0x43e)](_0x5ec5bb);_0x291dab&&_0x291dab[_0x3d26e9(0x578)](_0x5987e4);}['getRoom'](_0x128aa5){const _0xe10f70=_0x32c408;return this['_roomMembers'][_0xe10f70(0x43e)](_0x128aa5);}[_0x32c408(0x518)](_0x43c3df,_0x3dc113){const _0x15ca76=_0x32c408,_0x31654d=this[_0x15ca76(0x2d5)][_0x15ca76(0x43e)](_0x43c3df);if(_0x31654d)return _0x31654d[_0x15ca76(0x518)](_0x3dc113);}[_0x32c408(0x49d)](_0x47fc97){const _0x2307a2=_0x32c408,_0xc2342f=this[_0x2307a2(0x2d5)][_0x2307a2(0x43e)](_0x47fc97);_0xc2342f&&(_0xc2342f[_0x2307a2(0x4a3)](),this[_0x2307a2(0x2d5)][_0x2307a2(0x3da)](_0x47fc97));}['dispose'](){const _0x5e2e96=_0x32c408;this[_0x5e2e96(0x2d5)][_0x5e2e96(0x241)](_0x5b9e3a=>_0x5b9e3a['dispose']()),this[_0x5e2e96(0x2d5)][_0x5e2e96(0x21b)]();}};W=Qt([Ke(0x0,o[_0x32c408(0x558)]),Ke(0x1,o[_0x32c408(0x395)](o[_0x32c408(0x278)]))],W);class es extends o[_0x32c408(0x503)]{constructor(){const _0x4b735f=_0x32c408;super(...arguments),u(this,_0x4b735f(0x472),new Map());}[_0x32c408(0x4a3)](){const _0x568c5d=_0x32c408;this[_0x568c5d(0x472)][_0x568c5d(0x21b)]();}['updateMember'](_0x14a4b8){const _0x52198e=_0x32c408;this[_0x52198e(0x472)]['set'](_0x14a4b8['memberID'],_0x14a4b8);}['removeMember'](_0x45a1f0){const _0x17dc9f=_0x32c408;this[_0x17dc9f(0x472)]['delete'](_0x45a1f0);}['getMember'](_0x4b06ad){return this['_members']['get'](_0x4b06ad);}}function gt(_0x136a85){const _0x120752=_0x32c408;var _0x9a8d6a,_0xf217a7,_0x1af1b4,_0x9bde0c;const _0x3be98e=_0x136a85[_0x120752(0x520)],_0x2687a7=JSON['parse'](_0x3be98e);switch(_0x2687a7[_0x120752(0x34a)]){case b['HEARTBEAT']:case b[_0x120752(0x341)]:{const _0xd1b74f=_0x2687a7[_0x120752(0x41a)];return{..._0x2687a7,'data':_0xd1b74f,'cmd':_0x2687a7[_0x120752(0x34a)]};}case b[_0x120752(0x292)]:{const _0x4109e0=_0x2687a7[_0x120752(0x22a)];return{..._0x2687a7,'data':_0x4109e0,'cmd':_0x2687a7[_0x120752(0x34a)]};}case b[_0x120752(0x285)]:{const _0x56ea54=_0x2687a7[_0x120752(0x379)];switch(_0x56ea54[_0x120752(0x2e8)]){case _[_0x120752(0x1d6)][_0x120752(0x46b)]:return{..._0x2687a7,'data':{..._0x56ea54,'data':(_0x9a8d6a=_0x56ea54[_0x120752(0x21f)])==null?void 0x0:_0x9a8d6a['cs']},'cmd':_0x2687a7[_0x120752(0x34a)]};case _[_0x120752(0x1d6)]['CHANGESET_ACK']:return{..._0x2687a7,'data':{..._0x56ea54,'data':(_0xf217a7=_0x56ea54[_0x120752(0x435)])==null?void 0x0:_0xf217a7['cs']},'cmd':_0x2687a7[_0x120752(0x34a)]};case _['CollaborationEvent'][_0x120752(0x21c)]:return{..._0x2687a7,'data':{..._0x56ea54,'data':(_0x1af1b4=_0x56ea54['newCsEvent'])==null?void 0x0:_0x1af1b4['cs']},'cmd':_0x2687a7[_0x120752(0x34a)]};case _[_0x120752(0x1d6)][_0x120752(0x28c)]:return{..._0x2687a7,'data':{..._0x56ea54,'data':(_0x9bde0c=_0x56ea54['csRejEvent'])==null?void 0x0:_0x9bde0c['cs']},'cmd':_0x2687a7[_0x120752(0x34a)]};case _[_0x120752(0x1d6)][_0x120752(0x1dc)]:return{..._0x2687a7,'data':{..._0x56ea54,'data':_0x56ea54[_0x120752(0x3ad)]},'cmd':_0x2687a7[_0x120752(0x34a)]};case _[_0x120752(0x1d6)][_0x120752(0x2d9)]:return{..._0x2687a7,'data':{..._0x56ea54,'data':_0x56ea54['joinEvent']},'cmd':_0x2687a7[_0x120752(0x34a)]};case _[_0x120752(0x1d6)]['USERS_LEAVE']:return{..._0x2687a7,'data':{..._0x56ea54,'data':_0x56ea54['leaveEvent']},'cmd':_0x2687a7[_0x120752(0x34a)]};case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x2687a7,'data':{..._0x56ea54,'data':_0x56ea54['liveShareNewHost']},'cmd':_0x2687a7[_0x120752(0x34a)]};case _[_0x120752(0x1d6)][_0x120752(0x57a)]:case _[_0x120752(0x1d6)][_0x120752(0x3cc)]:return{..._0x2687a7,'data':{..._0x56ea54,'data':_0x56ea54[_0x120752(0x511)]},'cmd':_0x2687a7[_0x120752(0x34a)]};case _[_0x120752(0x1d6)][_0x120752(0x4da)]:return{..._0x2687a7,'data':{..._0x56ea54,'data':_0x56ea54[_0x120752(0x47d)]},'cmd':_0x2687a7[_0x120752(0x34a)]};case _[_0x120752(0x1d6)][_0x120752(0x31b)]:return{..._0x2687a7,'data':_0x56ea54,'cmd':_0x2687a7[_0x120752(0x34a)]};case _[_0x120752(0x1d6)][_0x120752(0x26c)]:return{..._0x2687a7,'data':{..._0x56ea54,'data':_0x56ea54['commentUpdateEvent']},'cmd':_0x2687a7['cmd']};case _[_0x120752(0x1d6)][_0x120752(0x390)]:return{..._0x2687a7,'data':{..._0x56ea54,'data':_0x56ea54['updatePermissionObjEvent']},'cmd':_0x2687a7[_0x120752(0x34a)]};case _[_0x120752(0x1d6)]['SHOULD_CLOSE_CONN']:return{..._0x2687a7,'data':{..._0x56ea54,'data':_0x56ea54[_0x120752(0x26e)]},'cmd':_0x2687a7[_0x120752(0x34a)]};default:return _0x2687a7;}}default:return _0x2687a7;}}function ft(_0x575adf){const _0xb61ce4=_0x32c408;switch(_0x575adf[_0xb61ce4(0x34a)]){case b[_0xb61ce4(0x1b5)]:case b[_0xb61ce4(0x341)]:return JSON[_0xb61ce4(0x4d6)]({'cmd':_0x575adf[_0xb61ce4(0x34a)],'routeKey':_0x575adf[_0xb61ce4(0x4a5)]});case b['INGEST']:{let _0x1c0f5b;switch(_0x575adf[_0xb61ce4(0x520)][_0xb61ce4(0x2e8)]){case _[_0xb61ce4(0x1d6)][_0xb61ce4(0x1dc)]:{_0x1c0f5b={'eventID':_[_0xb61ce4(0x1d6)][_0xb61ce4(0x1dc)],'updateCursorEvent':_0x575adf[_0xb61ce4(0x520)][_0xb61ce4(0x520)]};break;}case _[_0xb61ce4(0x1d6)][_0xb61ce4(0x2e2)]:{_0x1c0f5b={'eventID':_[_0xb61ce4(0x1d6)][_0xb61ce4(0x2e2)],'leaveEvent':_0x575adf[_0xb61ce4(0x520)][_0xb61ce4(0x520)]};break;}case _[_0xb61ce4(0x1d6)]['USERS_ENTER']:{_0x1c0f5b={'eventID':_[_0xb61ce4(0x1d6)]['USERS_ENTER'],'joinEvent':_0x575adf[_0xb61ce4(0x520)][_0xb61ce4(0x520)]};break;}case _[_0xb61ce4(0x1d6)]['LIVESHARE_NEW_HOST']:{_0x1c0f5b={'eventID':_[_0xb61ce4(0x1d6)][_0xb61ce4(0x491)],'liveShareNewHost':_0x575adf[_0xb61ce4(0x520)][_0xb61ce4(0x520)]};break;}case _[_0xb61ce4(0x1d6)][_0xb61ce4(0x3cc)]:{_0x1c0f5b={'eventID':_['CollaborationEvent'][_0xb61ce4(0x3cc)],'liveShareOperation':_0x575adf[_0xb61ce4(0x520)][_0xb61ce4(0x520)]};break;}case _[_0xb61ce4(0x1d6)][_0xb61ce4(0x4da)]:{_0x1c0f5b={'eventID':_[_0xb61ce4(0x1d6)][_0xb61ce4(0x4da)],'liveShareTerminate':_0x575adf[_0xb61ce4(0x520)][_0xb61ce4(0x520)]};break;}case _[_0xb61ce4(0x1d6)][_0xb61ce4(0x271)]:{_0x1c0f5b={'eventID':_['CollaborationEvent'][_0xb61ce4(0x271)],'liveShareRequestHost':_0x575adf[_0xb61ce4(0x520)]['data']};break;}case _[_0xb61ce4(0x1d6)][_0xb61ce4(0x57a)]:{_0x1c0f5b={'eventID':_[_0xb61ce4(0x1d6)][_0xb61ce4(0x57a)]};break;}default:_0x1c0f5b={'eventID':_0x575adf['data'][_0xb61ce4(0x2e8)]};}return JSON[_0xb61ce4(0x4d6)]({'cmd':_0x575adf[_0xb61ce4(0x34a)],'routeKey':_0x575adf['routeKey'],'collaMsg':_0x1c0f5b});}case b[_0xb61ce4(0x292)]:return JSON[_0xb61ce4(0x4d6)]({'cmd':_0x575adf['cmd'],'routeKey':_0x575adf[_0xb61ce4(0x4a5)],'joinReq':_0x575adf[_0xb61ce4(0x520)]});case b[_0xb61ce4(0x3cb)]:return JSON[_0xb61ce4(0x4d6)]({'cmd':_0x575adf[_0xb61ce4(0x34a)],'routeKey':_0x575adf[_0xb61ce4(0x4a5)],'leaveReq':_0x575adf['data']});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var ts=Object[_0x32c408(0x539)],ss=Object[_0x32c408(0x4e1)],is=(_0x47d845,_0x2e71c3,_0x396d13,_0x3f3594)=>{for(var _0x3e2c75=_0x3f3594>0x1?void 0x0:_0x3f3594?ss(_0x2e71c3,_0x396d13):_0x2e71c3,_0x2981f3=_0x47d845['length']-0x1,_0x4638cb;_0x2981f3>=0x0;_0x2981f3--)(_0x4638cb=_0x47d845[_0x2981f3])&&(_0x3e2c75=(_0x3f3594?_0x4638cb(_0x2e71c3,_0x396d13,_0x3e2c75):_0x4638cb(_0x3e2c75))||_0x3e2c75);return _0x3f3594&&_0x3e2c75&&ts(_0x2e71c3,_0x396d13,_0x3e2c75),_0x3e2c75;},te=(_0x184e1a,_0x3b203b)=>(_0x33b65a,_0x111fc2)=>_0x3b203b(_0x33b65a,_0x111fc2,_0x184e1a);const ke=o['createIdentifier'](_0x32c408(0x49c));function ns(_0x20210c,_0x460882,_0x126629){const _0x4ebb31=_0x32c408;return _0x20210c+'/'+_0x460882+_0x4ebb31(0x20e)+_0x126629+'/new_changes';}exports[_0x32c408(0x537)]=class{constructor(_0xf44b8f,_0x5b575a,_0x5bc6aa,_0x4782f6,_0x53a80a){const _0xcb84e5=_0x32c408;this[_0xcb84e5(0x38a)]=_0xf44b8f,this[_0xcb84e5(0x23f)]=_0x5b575a,this['_configService']=_0x5bc6aa,this[_0xcb84e5(0x505)]=_0x4782f6,this['_snapshotServerService']=_0x53a80a;}[_0x32c408(0x44c)](_0x4cb6e4){const _0x162d4c=_0x32c408,_0x273c6f=this[_0x162d4c(0x23f)]['createSocket'](_0x4cb6e4);if(!_0x273c6f)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0xe05927=new o[(_0x162d4c(0x405))](),_0x315bf3=new v['Subject']();_0xe05927[_0x162d4c(0x329)](o[_0x162d4c(0x4e4)](_0x273c6f[_0x162d4c(0x26a)]['subscribe'](_0x1392c7=>_0x315bf3[_0x162d4c(0x226)](_0x1392c7)))),_0xe05927[_0x162d4c(0x329)](o[_0x162d4c(0x4e4)](()=>_0x315bf3['complete']()));const _0x43a04a=new v[(_0x162d4c(0x4f1))]();_0xe05927[_0x162d4c(0x329)](o[_0x162d4c(0x4e4)](_0x273c6f[_0x162d4c(0x4fb)]['subscribe'](_0x31f215=>_0x43a04a[_0x162d4c(0x226)](_0x31f215)))),_0xe05927[_0x162d4c(0x329)](o[_0x162d4c(0x4e4)](()=>_0x43a04a[_0x162d4c(0x29b)]()));const _0x4a44d6=new v['Subject']();_0xe05927['add'](o[_0x162d4c(0x4e4)](_0x273c6f['message$'][_0x162d4c(0x408)](_0x19fa2e=>{const _0x44a89d=_0x162d4c,_0x84d4ff=gt(_0x19fa2e);_0x4a44d6[_0x44a89d(0x226)](_0x84d4ff);}))),_0xe05927[_0x162d4c(0x329)](o[_0x162d4c(0x4e4)](()=>_0x4a44d6[_0x162d4c(0x29b)]()));const _0xbe261=()=>{const _0x1375bd=_0x162d4c;_0x43a04a[_0x1375bd(0x226)](new Event(_0x1375bd(0x3c8))),_0x315bf3[_0x1375bd(0x226)](new CloseEvent('connection\x20error')),_0x477bf2[_0x1375bd(0x519)]();},_0x477bf2={'memberID':'','close$':_0x315bf3[_0x162d4c(0x4b0)](),'error$':_0x43a04a[_0x162d4c(0x4b0)](),'open$':_0x273c6f[_0x162d4c(0x27e)],'message$':_0x4a44d6[_0x162d4c(0x4b0)](),'send':_0x440c7b=>{const _0x350027=_0x162d4c;if(_0x440c7b[_0x350027(0x34a)]===b[_0x350027(0x53e)]){if(_0x440c7b[_0x350027(0x520)]['eventID']===_[_0x350027(0x1d6)][_0x350027(0x1e3)]){this[_0x350027(0x387)](_0x477bf2,_0x440c7b[_0x350027(0x520)])[_0x350027(0x415)](_0x39487a=>{const _0x200225=_0x350027;this[_0x200225(0x505)][_0x200225(0x36f)](_0x39487a),_0xbe261();});return;}if(_0x440c7b[_0x350027(0x520)][_0x350027(0x2e8)]===_[_0x350027(0x1d6)]['FETCH_MISSING']){const _0x557587=_0x440c7b['data'];this[_0x350027(0x411)](_0x557587)[_0x350027(0x4a2)](_0x50488f=>{const _0x5dae97=_0x350027;_0x4a44d6['next']({'cmd':b[_0x5dae97(0x285)],'code':xe['OK'],'routeKey':_0x557587[_0x5dae97(0x520)]['unitID'],'routeType':'','data':{'eventID':_[_0x5dae97(0x1d6)][_0x5dae97(0x41d)],'data':{'changesets':_0x50488f}}});})[_0x350027(0x415)](_0x3cefbe=>{const _0x390926=_0x350027;this[_0x390926(0x505)]['error'](_0x3cefbe),_0xbe261();});return;}}_0x273c6f[_0x350027(0x493)](ft(_0x440c7b));},'close':()=>{const _0xcb242a=_0x162d4c;_0x273c6f[_0xcb242a(0x519)](),_0xe05927[_0xcb242a(0x4a3)]();}};return _0x477bf2;}async[_0x32c408(0x387)](_0xb9b545,_0x41fff1){const _0x308bca=_0x32c408;var _0x25a085;const {unitType:_0x506c9a,unitID:_0x13f412,changeset:_0x36329c}=_0x41fff1[_0x308bca(0x520)],_0x51c401={'unitID':_0x13f412,'memberID':_0xb9b545[_0x308bca(0x31e)],'type':_0x506c9a,'changeset':_['parseChangesetToProtocol'](_0x36329c)},_0x40ea0c=ns((_0x25a085=this['_configService'][_0x308bca(0x24a)](St))!=null?_0x25a085:qt,_0x506c9a,_0x13f412);try{await this[_0x308bca(0x38a)]['post'](_0x40ea0c,{'body':_0x51c401});}catch(_0x4b414e){throw this[_0x308bca(0x505)][_0x308bca(0x36f)](_0x308bca(0x3d2),_0x308bca(0x28a)),_0x4b414e;}}async[_0x32c408(0x411)](_0x2e2520){const _0x358b09=_0x32c408,{unitID:_0x56f8e2,from:_0xb52836,to:_0xfbb906,unitType:_0x5383b8}=_0x2e2520[_0x358b09(0x520)];return(await this[_0x358b09(0x2ce)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x56f8e2,'type':_0x5383b8,'from':_0xb52836,'to':_0xfbb906}))[_0x358b09(0x25a)];}},exports[_0x32c408(0x537)]=is([te(0x0,o['Inject'](P[_0x32c408(0x421)])),te(0x1,o[_0x32c408(0x395)](P[_0x32c408(0x527)])),te(0x2,o[_0x32c408(0x312)]),te(0x3,o[_0x32c408(0x1bd)]),te(0x4,o['ISnapshotServerService'])],exports[_0x32c408(0x537)]);class Be{constructor(){const _0xf69cbf=_0x32c408;u(this,_0xf69cbf(0x301),new v[(_0xf69cbf(0x4f1))]()),u(this,_0xf69cbf(0x412),this[_0xf69cbf(0x301)][_0xf69cbf(0x4b0)]());}['onCommentUpdate'](_0x5c2a66){const _0x3cf7cb=_0x32c408;this[_0x3cf7cb(0x301)][_0x3cf7cb(0x226)](_0x5c2a66);}}var rs=Object[_0x32c408(0x539)],os=Object[_0x32c408(0x4e1)],It=(_0x14852f,_0xccd21f,_0x2fb49f,_0x25e846)=>{const _0x114efc=_0x32c408;for(var _0x56fe02=_0x25e846>0x1?void 0x0:_0x25e846?os(_0xccd21f,_0x2fb49f):_0xccd21f,_0x470eb9=_0x14852f[_0x114efc(0x462)]-0x1,_0x24517e;_0x470eb9>=0x0;_0x470eb9--)(_0x24517e=_0x14852f[_0x470eb9])&&(_0x56fe02=(_0x25e846?_0x24517e(_0xccd21f,_0x2fb49f,_0x56fe02):_0x24517e(_0x56fe02))||_0x56fe02);return _0x25e846&&_0x56fe02&&rs(_0xccd21f,_0x2fb49f,_0x56fe02),_0x56fe02;},y=(_0x539a22,_0x13c74a)=>(_0x45df85,_0x29e245)=>_0x13c74a(_0x45df85,_0x29e245,_0x539a22),V=(_0x341b26=>(_0x341b26[_0x341b26['IDLE']=0x0]=_0x32c408(0x233),_0x341b26[_0x341b26['JOINING']=0x1]=_0x32c408(0x47c),_0x341b26[_0x341b26[_0x32c408(0x553)]=0x2]=_0x32c408(0x553),_0x341b26[_0x341b26['ONLINE']=0x3]='ONLINE',_0x341b26))(V||{});exports[_0x32c408(0x302)]=class extends o[_0x32c408(0x476)]{constructor(_0x1476cf,_0x3b82f8,_0x306e1f,_0x32211c,_0x38f27e,_0xef0ef7,_0xcd7459,_0x1e3883,_0x5d77cb){const _0x496822=_0x32c408;super(),u(this,_0x496822(0x56e),new v[(_0x496822(0x2db))](0x0)),u(this,_0x496822(0x413),this['_sessionStatus$'][_0x496822(0x4b0)]()),u(this,_0x496822(0x1df),new v[(_0x496822(0x4f1))]()),u(this,'event$',this[_0x496822(0x1df)]['asObservable']()),u(this,_0x496822(0x3ec)),u(this,_0x496822(0x488)),u(this,_0x496822(0x397)),(this[_0x496822(0x35c)]=_0x1476cf,this[_0x496822(0x505)]=_0x306e1f,this[_0x496822(0x3fb)]=_0x32211c,this['_messageService']=_0x38f27e,this[_0x496822(0x580)]=_0xef0ef7,this[_0x496822(0x299)]=_0xcd7459,this[_0x496822(0x47f)]=_0x1e3883,this['_commentService']=_0x5d77cb,_0x3b82f8[_0x496822(0x4f4)](C[_0x496822(0x3d9)](this['dispose$']))[_0x496822(0x408)](_0x584635=>{const _0x3eaecc=_0x496822;var _0x3b60f1;typeof _0x584635>'u'||(this[_0x3eaecc(0x3ec)]=_0x584635,_0x584635?(this[_0x3eaecc(0x365)](_0x584635),this[_0x3eaecc(0x488)]=this[_0x3eaecc(0x3ec)]['message$'][_0x3eaecc(0x408)](_0x162d1c=>{const _0x32aff1=_0x3eaecc;_0x162d1c['routeKey']===this[_0x32aff1(0x35c)]&&this[_0x32aff1(0x3e5)](_0x162d1c);})):(this[_0x3eaecc(0x56e)][_0x3eaecc(0x226)](0x2),(_0x3b60f1=this[_0x3eaecc(0x488)])==null||_0x3b60f1[_0x3eaecc(0x4ab)](),this[_0x3eaecc(0x488)]=null));}),this[_0x496822(0x45d)](this[_0x496822(0x3fb)][_0x496822(0x53c)](()=>{const _0x1932e2=_0x496822;var _0x5d3447;(_0x5d3447=this[_0x1932e2(0x3ec)])==null||_0x5d3447[_0x1932e2(0x493)]({'cmd':b[_0x1932e2(0x3cb)],'data':{'roomID':this[_0x1932e2(0x35c)]}});})));}get[_0x32c408(0x445)](){const _0x4df0fe=_0x32c408;return this['_sessionStatus$'][_0x4df0fe(0x4d4)]();}[_0x32c408(0x2f1)](){const _0xd13b5f=_0x32c408;var _0x4c3d02,_0x527d78;return(_0x527d78=(_0x4c3d02=this[_0xd13b5f(0x3ec)])==null?void 0x0:_0x4c3d02[_0xd13b5f(0x31e)])!=null?_0x527d78:null;}[_0x32c408(0x4a3)](){const _0x2682a7=_0x32c408;super['dispose'](),this['dispose$'][_0x2682a7(0x226)](),this[_0x2682a7(0x2b2)]['complete']();}[_0x32c408(0x519)](){const _0x2314ce=_0x32c408;var _0x1ff5ba,_0x1e86eb;(_0x1ff5ba=this[_0x2314ce(0x3ec)])==null||_0x1ff5ba[_0x2314ce(0x493)]({'cmd':b[_0x2314ce(0x3cb)],'data':{'roomID':this[_0x2314ce(0x35c)]}}),this[_0x2314ce(0x1df)][_0x2314ce(0x29b)](),this[_0x2314ce(0x56e)][_0x2314ce(0x29b)](),(_0x1e86eb=this['_socket'])==null||_0x1e86eb[_0x2314ce(0x519)](),this['dispose']();}['_onCombEvent'](_0x4f0030){const _0x23ac99=_0x32c408;_0x4f0030['cmd']===b[_0x23ac99(0x292)]?this['_onJoinRoomEvent'](_0x4f0030):_0x4f0030['cmd']===b[_0x23ac99(0x285)]&&this['_onRecvEvent'](_0x4f0030);}['_joinRoom'](_0x22e050){const _0x266dd4=_0x32c408;this['_sessionStatus$'][_0x266dd4(0x226)](0x1),_0x22e050[_0x266dd4(0x493)]({'cmd':b[_0x266dd4(0x292)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x32c408(0x2fd)](_0x17a7c6){const _0xf22a56=_0x32c408;var _0x4e89cf;if(_0x17a7c6[_0xf22a56(0x1c3)]===xe[_0xf22a56(0x565)]){this['_messageService'][_0xf22a56(0x389)]({'type':z[_0xf22a56(0x3a2)][_0xf22a56(0x25d)],'content':this[_0xf22a56(0x299)]['t'](_0xf22a56(0x50b))}),this[_0xf22a56(0x56e)]['next'](0x2);return;}this[_0xf22a56(0x56e)]['next'](0x3);const _0x1f3292=(_0x4e89cf=_0x17a7c6[_0xf22a56(0x520)][_0xf22a56(0x34d)][this[_0xf22a56(0x35c)]])==null?void 0x0:_0x4e89cf[_0xf22a56(0x1d9)];_0x1f3292&&_0x1f3292[_0xf22a56(0x241)](_0x3cb220=>this['_memberService']['updateMember'](this[_0xf22a56(0x35c)],_0x3cb220));}[_0x32c408(0x358)](_0x585e09){const _0x55abe1=_0x32c408;try{const _0x7094f0=_0x585e09[_0x55abe1(0x520)];switch(_0x7094f0[_0x55abe1(0x2e8)]){case _[_0x55abe1(0x1d6)]['USERS_ENTER']:this[_0x55abe1(0x501)](_0x7094f0),this[_0x55abe1(0x1df)]['next'](_0x7094f0);break;case _['CollaborationEvent']['USERS_LEAVE']:this[_0x55abe1(0x1be)](_0x7094f0),this[_0x55abe1(0x1df)][_0x55abe1(0x226)](_0x7094f0);break;case _[_0x55abe1(0x1d6)][_0x55abe1(0x549)]:this[_0x55abe1(0x30a)](),this[_0x55abe1(0x1df)][_0x55abe1(0x226)](_0x7094f0);break;case _[_0x55abe1(0x1d6)][_0x55abe1(0x31b)]:this[_0x55abe1(0x505)]['error'](_0x55abe1(0x39d)+JSON[_0x55abe1(0x4d6)](_0x7094f0)),this[_0x55abe1(0x1df)][_0x55abe1(0x226)](_0x7094f0);break;case _['CollaborationEvent'][_0x55abe1(0x26c)]:this[_0x55abe1(0x546)][_0x55abe1(0x3ee)](_0x7094f0[_0x55abe1(0x520)]),this['_event$'][_0x55abe1(0x226)](_0x7094f0);break;default:this['_event$'][_0x55abe1(0x226)](_0x7094f0);}}catch(_0x111968){this[_0x55abe1(0x505)][_0x55abe1(0x36f)](_0x111968,_0x585e09);}}['_onUserJoin'](_0x3550a6){const _0x830b86=_0x32c408;this[_0x830b86(0x47f)][_0x830b86(0x224)](this[_0x830b86(0x35c)],_0x3550a6[_0x830b86(0x520)]);}[_0x32c408(0x1be)](_0x5442d2){const _0x21ccaa=_0x32c408;this['_memberService'][_0x21ccaa(0x578)](this[_0x21ccaa(0x35c)],_0x5442d2[_0x21ccaa(0x520)][_0x21ccaa(0x31e)]);}async['send'](_0x11dab,_0x37792e){const _0x268f1c=_0x32c408;if(this[_0x268f1c(0x445)]!==0x3||!this[_0x268f1c(0x3ec)])throw new Error(_0x268f1c(0x2f4));try{_0x11dab[_0x268f1c(0x2e8)]===_[_0x268f1c(0x1d6)]['NEW_CHANGESETS']&&this[_0x268f1c(0x506)](),this['_socket'][_0x268f1c(0x493)]({'cmd':b['INGEST'],'routeKey':_0x37792e,'routeType':'','data':_0x11dab});}catch(_0x5e9214){this['_logService'][_0x268f1c(0x36f)](_0x5e9214);}}[_0x32c408(0x506)](){const _0x2d2989=_0x32c408;var _0x4be041;this[_0x2d2989(0x397)]=window['setTimeout'](()=>{const _0x119337=_0x2d2989;this[_0x119337(0x397)]=null,this[_0x119337(0x35d)]['show']({'type':z[_0x119337(0x3a2)][_0x119337(0x276)],'content':this[_0x119337(0x299)]['t']('session.collaboration-timeout')});},(_0x4be041=this[_0x2d2989(0x580)][_0x2d2989(0x24a)](He))!=null?_0x4be041:ut);}[_0x32c408(0x30a)](){const _0x47b548=_0x32c408;this[_0x47b548(0x397)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x47b548(0x397)]=null);}},exports[_0x32c408(0x302)]=It([y(0x2,o[_0x32c408(0x1bd)]),y(0x3,L['IBeforeCloseService']),y(0x4,L['IMessageService']),y(0x5,o[_0x32c408(0x312)]),y(0x6,o[_0x32c408(0x395)](o[_0x32c408(0x4f9)])),y(0x7,o[_0x32c408(0x395)](W)),y(0x8,o[_0x32c408(0x395)](Be))],exports['CollaborationSession']),exports[_0x32c408(0x4e3)]=class extends o[_0x32c408(0x503)]{constructor(_0x3a276c,_0x20b56e,_0x3b591f,_0x424f5c,_0xdf53a6,_0x22bb16){const _0x33d8d8=_0x32c408;super(),u(this,'_socket$',new v[(_0x33d8d8(0x2db))](void 0x0)),u(this,_0x33d8d8(0x497),new Map()),u(this,'_status$',new v['BehaviorSubject'](0x0)),u(this,_0x33d8d8(0x2c5),this['_status$']['asObservable']()),u(this,'_socketReady',!0x1),u(this,_0x33d8d8(0x536)),u(this,_0x33d8d8(0x510)),u(this,_0x33d8d8(0x3d5)),u(this,_0x33d8d8(0x3b5),0x0),(this[_0x33d8d8(0x321)]=_0x3a276c,this[_0x33d8d8(0x299)]=_0x20b56e,this[_0x33d8d8(0x35d)]=_0x3b591f,this[_0x33d8d8(0x505)]=_0x424f5c,this[_0x33d8d8(0x580)]=_0xdf53a6,this[_0x33d8d8(0x3a1)]=_0x22bb16);}get[_0x32c408(0x3ec)](){const _0x18e2ab=_0x32c408;return this[_0x18e2ab(0x40a)][_0x18e2ab(0x4d4)]();}[_0x32c408(0x4a3)](){const _0x230228=_0x32c408;super[_0x230228(0x4a3)](),this[_0x230228(0x497)][_0x230228(0x241)](_0x45ced2=>_0x45ced2['dispose']()),this[_0x230228(0x497)]['clear'](),this['_status$']['complete']();}async[_0x32c408(0x49b)](_0x594e20){const _0x13a211=_0x32c408;if(this[_0x13a211(0x497)][_0x13a211(0x432)](_0x594e20))return this[_0x13a211(0x497)][_0x13a211(0x43e)](_0x594e20);this[_0x13a211(0x3ba)]();const _0x1c7486=this['_injector'][_0x13a211(0x277)](exports[_0x13a211(0x302)],_0x594e20,this[_0x13a211(0x40a)]['asObservable']());return this[_0x13a211(0x497)][_0x13a211(0x33b)](_0x594e20,_0x1c7486),_0x1c7486;}[_0x32c408(0x4ee)](_0x17169a){const _0x930f9c=_0x32c408;var _0xa2d1ae;const _0x31365e=this['_sessions'][_0x930f9c(0x43e)](_0x17169a);_0x31365e&&(this[_0x930f9c(0x497)]['delete'](_0x17169a),_0x31365e[_0x930f9c(0x519)]()),this[_0x930f9c(0x497)][_0x930f9c(0x2fc)]||(_0xa2d1ae=this[_0x930f9c(0x3ec)])==null||_0xa2d1ae[_0x930f9c(0x519)]();}[_0x32c408(0x225)](){const _0x49736d=_0x32c408;var _0x140401;const _0x4100f6=(_0x140401=this[_0x49736d(0x580)][_0x49736d(0x24a)](ht))!=null?_0x140401:Ft;return this[_0x49736d(0x3a1)]['createSocket'](_0x4100f6);}[_0x32c408(0x3ba)](){const _0x739b32=_0x32c408;try{const _0x336dae=this[_0x739b32(0x225)]();if(_0x336dae){const _0x4592c7=_0x336dae[_0x739b32(0x493)];_0x336dae['send']=_0x19a326=>(this[_0x739b32(0x2a3)](),_0x4592c7[_0x739b32(0x296)](_0x336dae,[_0x19a326])),_0x336dae[_0x739b32(0x4af)][_0x739b32(0x408)](_0x3843c4=>this['_onMessage'](_0x336dae,_0x3843c4)),_0x336dae[_0x739b32(0x4fb)]['pipe'](C[_0x739b32(0x402)](0x1))['subscribe'](_0x28ec92=>this['_logService']['error'](_0x739b32(0x4cd),_0x28ec92)),_0x336dae['open$'][_0x739b32(0x4f4)](C[_0x739b32(0x402)](0x1))['subscribe'](()=>{this['_onConnectionOpen'](_0x336dae);}),_0x336dae[_0x739b32(0x26a)][_0x739b32(0x4f4)](C[_0x739b32(0x402)](0x1))['subscribe'](_0x4af5cb=>{const _0x13a368=_0x739b32;this[_0x13a368(0x505)]['debug'](_0x13a368(0x342),_0x13a368(0x275),_0x4af5cb),this[_0x13a368(0x492)]();});}}catch(_0x55e176){this[_0x739b32(0x505)][_0x739b32(0x36f)](_0x55e176),this[_0x739b32(0x492)]();}}[_0x32c408(0x4ff)](_0x48b734){const _0xab3539=_0x32c408;this['_logService'][_0xab3539(0x2fb)]('[CollaborationSessionService]',_0xab3539(0x1d0)),_0x48b734[_0xab3539(0x493)]({'cmd':b[_0xab3539(0x341)]}),this['_rescheduleHeartbeatEvent']();}['_onConnectionFailed'](){const _0x542612=_0x32c408;var _0x338787;this[_0x542612(0x54d)][_0x542612(0x226)](0x2),this[_0x542612(0x40a)][_0x542612(0x226)](null),this[_0x542612(0x27c)](),this[_0x542612(0x4e2)](),this[_0x542612(0x3ef)]=!0x1,this[_0x542612(0x3b5)]<((_0x338787=this[_0x542612(0x580)][_0x542612(0x24a)](Yt))!=null?_0x338787:Kt)?(this[_0x542612(0x3b6)](this[_0x542612(0x3b5)]),this[_0x542612(0x3b5)]+=0x1):this[_0x542612(0x35d)]['show']({'type':z[_0x542612(0x3a2)]['Error'],'content':this[_0x542612(0x299)]['t']('session.connection-failed')});}['_scheduleReconnection'](_0x1e5491){const _0x31ccb3=_0x32c408;var _0x5e19cd;const _0x459832=((_0x5e19cd=this[_0x31ccb3(0x580)][_0x31ccb3(0x24a)](Wt))!=null?_0x5e19cd:Gt)*0x2**_0x1e5491;this[_0x31ccb3(0x35d)][_0x31ccb3(0x389)]({'type':z[_0x31ccb3(0x3a2)]['Warning'],'content':this['_localeService']['t'](_0x31ccb3(0x2a0))}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x24f63d=_0x31ccb3;this[_0x24f63d(0x3ba)](),clearTimeout(this[_0x24f63d(0x3d5)]),this[_0x24f63d(0x3d5)]=null;},_0x459832);}[_0x32c408(0x2a3)](){const _0x22fcb6=_0x32c408;var _0x524084;this[_0x22fcb6(0x4e2)](),this[_0x22fcb6(0x536)]=setTimeout(()=>this[_0x22fcb6(0x371)](),(_0x524084=this[_0x22fcb6(0x580)][_0x22fcb6(0x24a)](_t))!=null?_0x524084:Vt);}[_0x32c408(0x371)](){const _0x1ab2ce=_0x32c408;this['_socket'][_0x1ab2ce(0x493)]({'cmd':b['HEARTBEAT']}),this[_0x1ab2ce(0x571)]();}[_0x32c408(0x571)](){const _0x33b6fe=_0x32c408;var _0x2e4e68;this['_timeoutTimer']=setTimeout(()=>this['_onConnectionFailed'](),(_0x2e4e68=this[_0x33b6fe(0x580)][_0x33b6fe(0x24a)](He))!=null?_0x2e4e68:ut);}['_onMessage'](_0x565d95,_0xb78038){const _0x1ac0a6=_0x32c408,{cmd:_0x178f1e}=_0xb78038;_0x178f1e===b[_0x1ac0a6(0x341)]&&!this[_0x1ac0a6(0x3ef)]&&(_0x565d95[_0x1ac0a6(0x31e)]=_0xb78038[_0x1ac0a6(0x520)][_0x1ac0a6(0x31e)],this[_0x1ac0a6(0x40a)][_0x1ac0a6(0x226)](_0x565d95),this[_0x1ac0a6(0x54d)][_0x1ac0a6(0x226)](0x3),this[_0x1ac0a6(0x3ef)]=!0x0),_0x178f1e===b[_0x1ac0a6(0x1b5)]&&this[_0x1ac0a6(0x27c)](),this[_0x1ac0a6(0x2a3)]();}['_clearHeartbeatTimer'](){const _0x475f83=_0x32c408;this[_0x475f83(0x536)]!=null&&(clearTimeout(this[_0x475f83(0x536)]),this[_0x475f83(0x536)]=null);}['_clearTimeoutTimer'](){const _0xfeef5b=_0x32c408;this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this[_0xfeef5b(0x510)]=null);}},exports[_0x32c408(0x4e3)]=It([y(0x0,o[_0x32c408(0x395)](o[_0x32c408(0x337)])),y(0x1,o['Inject'](o[_0x32c408(0x4f9)])),y(0x2,L[_0x32c408(0x495)]),y(0x3,o[_0x32c408(0x1bd)]),y(0x4,o[_0x32c408(0x312)]),y(0x5,ke)],exports[_0x32c408(0x4e3)]);var as=Object[_0x32c408(0x539)],cs=Object[_0x32c408(0x4e1)],ls=(_0x26d5aa,_0x2509ad,_0x3009db,_0x1ee15e)=>{const _0x5c8a98=_0x32c408;for(var _0x582904=_0x1ee15e>0x1?void 0x0:_0x1ee15e?cs(_0x2509ad,_0x3009db):_0x2509ad,_0x29155d=_0x26d5aa[_0x5c8a98(0x462)]-0x1,_0xa2d670;_0x29155d>=0x0;_0x29155d--)(_0xa2d670=_0x26d5aa[_0x29155d])&&(_0x582904=(_0x1ee15e?_0xa2d670(_0x2509ad,_0x3009db,_0x582904):_0xa2d670(_0x582904))||_0x582904);return _0x1ee15e&&_0x582904&&as(_0x2509ad,_0x3009db,_0x582904),_0x582904;},se=(_0x439eaa,_0x520998)=>(_0x54d7ed,_0x9de1b0)=>_0x520998(_0x54d7ed,_0x9de1b0,_0x439eaa);exports['LocalCacheService']=class extends o[_0x32c408(0x503)]{constructor(_0xdc535,_0x26561e,_0x59626d,_0x407478,_0x32c79f){const _0x566c48=_0x32c408;super(),u(this,'_cachedData',new Map()),u(this,_0x566c48(0x2e0),new Map()),u(this,_0x566c48(0x482),!0x1),(this['_configService']=_0xdc535,this[_0x566c48(0x509)]=_0x26561e,this[_0x566c48(0x3fb)]=_0x59626d,this[_0x566c48(0x299)]=_0x407478,this[_0x566c48(0x441)]=_0x32c79f,this[_0x566c48(0x3e3)]());}[_0x32c408(0x24c)](){this['_disabled']=!0x0;}[_0x32c408(0x378)](){const _0x8161d4=_0x32c408;this[_0x8161d4(0x482)]=!0x1;}[_0x32c408(0x4a3)](){const _0x351886=_0x32c408;this[_0x351886(0x35a)]()[_0x351886(0x4a2)](()=>super[_0x351886(0x4a3)]());}async[_0x32c408(0x214)](_0x5427ba){const _0x12631e=_0x32c408;return this[_0x12631e(0x482)]?null:this['_localStorageService'][_0x12631e(0x2ea)](Xe(_0x5427ba));}async['saveOfflineData'](_0x29a005,_0x269980){const _0x1f90f9=_0x32c408;return!!this[_0x1f90f9(0x509)][_0x1f90f9(0x38d)](_0x29a005,_0x269980);}['updateOfflineData'](_0x102c66,_0x16e1a0,_0x3d286b,_0x3609f4){const _0x142428=_0x32c408,_0x51f228=this[_0x142428(0x441)][_0x142428(0x54e)](_0x102c66);this[_0x142428(0x30f)]['set'](_0x102c66,{'unitID':_0x102c66,'type':_0x16e1a0,'awaitingChangeset':_0x3d286b,'mutations':_0x3609f4,'rev':_0x51f228}),this[_0x142428(0x2e0)][_0x142428(0x432)](_0x102c66)||this[_0x142428(0x238)](_0x102c66);}[_0x32c408(0x238)](_0x1b5f56){const _0x202e31=_0x32c408,_0x300ea5=this[_0x202e31(0x39e)]();_0x300ea5===0x0?this[_0x202e31(0x431)](_0x1b5f56):this['_saveTaskMap']['set'](_0x1b5f56,setTimeout(()=>this[_0x202e31(0x431)](_0x1b5f56),_0x300ea5));}['_getSaveTimeout'](){const _0x4aed18=_0x32c408;var _0x3d1b9c;return(_0x3d1b9c=this[_0x4aed18(0x580)]['getConfig'](dt))!=null?_0x3d1b9c:Xt;}[_0x32c408(0x431)](_0x529c7d){const _0x10d585=_0x32c408,_0x18ed18=this['_saveTaskMap']['get'](_0x529c7d);return _0x18ed18!==void 0x0&&window[_0x10d585(0x1e8)](_0x18ed18),this[_0x10d585(0x509)]['setItem'](Xe(_0x529c7d),this[_0x10d585(0x30f)][_0x10d585(0x43e)](_0x529c7d))['then'](()=>this[_0x10d585(0x2e0)][_0x10d585(0x3da)](_0x529c7d));}async[_0x32c408(0x35a)](){const _0x3ba56a=_0x32c408,_0x4830de=[];this['_saveTaskMap'][_0x3ba56a(0x241)]((_0x53f465,_0x1bc799)=>{const _0x4bac3d=_0x3ba56a;window[_0x4bac3d(0x1e8)](_0x53f465),_0x4830de[_0x4bac3d(0x563)](this[_0x4bac3d(0x431)](_0x1bc799)['then'](()=>{const _0x18c2c1=_0x4bac3d;this[_0x18c2c1(0x2e0)][_0x18c2c1(0x3da)](_0x1bc799);}));}),await Promise['all'](_0x4830de);}[_0x32c408(0x3e3)](){const _0x5c61dd=_0x32c408;this[_0x5c61dd(0x45d)](this['_beforeCloseService'][_0x5c61dd(0x331)](()=>{const _0x581f98=_0x5c61dd;if(this[_0x581f98(0x2e0)][_0x581f98(0x2fc)])return this[_0x581f98(0x299)]['t'](_0x581f98(0x300));}));}},exports[_0x32c408(0x39f)]=ls([se(0x0,o[_0x32c408(0x312)]),se(0x1,o[_0x32c408(0x317)]),se(0x2,L[_0x32c408(0x4a8)]),se(0x3,o[_0x32c408(0x395)](o[_0x32c408(0x4f9)])),se(0x4,o['Inject'](_[_0x32c408(0x4f2)]))],exports[_0x32c408(0x39f)]);function Xe(_0x5f2368){const _0x4092fa=_0x32c408;return _0x4092fa(0x2df)+_0x5f2368;}const Ie=o['createIdentifier'](_0x32c408(0x27f));var pt=(_0x2129f2=>(_0x2129f2[_0x2129f2['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x32c408(0x3eb),_0x2129f2[_0x2129f2['OTHER_CLIENTS_EDITING']=0x1]='OTHER_CLIENTS_EDITING',_0x2129f2))(pt||{});const qe=0x7530,Je=_0x32c408(0x550);class hs extends o['Disposable']{constructor(){const _0x186ac1=_0x32c408;super(),u(this,_0x186ac1(0x217),o[_0x186ac1(0x523)]['generateRandomId']()),u(this,'_selfUnitIDs',new Set()),u(this,_0x186ac1(0x485),new Map()),u(this,_0x186ac1(0x420),null),u(this,_0x186ac1(0x33c),new Map()),u(this,_0x186ac1(0x579),new Map()),this[_0x186ac1(0x55b)]();}[_0x32c408(0x4a3)](){const _0x492e76=_0x32c408;super[_0x492e76(0x4a3)](),this['_clearOtherTimers'][_0x492e76(0x241)]((_0x2cf039,_0x53ada5)=>this[_0x492e76(0x315)](_0x53ada5)),this['_heartbeatTimer']&&window[_0x492e76(0x465)](this['_heartbeatTimer']);}[_0x32c408(0x581)](_0x2110d8){const _0x17c32b=_0x32c408;return this[_0x17c32b(0x24e)](_0x2110d8)['pipe'](v[_0x17c32b(0x36a)]());}['editingUnit'](_0x50e195){const _0x5dc93e=_0x32c408;this[_0x5dc93e(0x293)][_0x5dc93e(0x2fc)]===0x0&&this[_0x5dc93e(0x3d1)](),this['_selfUnitIDs'][_0x5dc93e(0x329)](_0x50e195),this[_0x5dc93e(0x3c9)]({'type':0x0,'memberID':this[_0x5dc93e(0x217)],'unitIDs':[_0x50e195],'isForwarded':!0x1});}[_0x32c408(0x40b)](_0x4c2521){const _0xdf6d68=_0x32c408;this[_0xdf6d68(0x293)][_0xdf6d68(0x3da)](_0x4c2521),this[_0xdf6d68(0x293)][_0xdf6d68(0x2fc)]===0x0&&this[_0xdf6d68(0x420)]&&window[_0xdf6d68(0x465)](this[_0xdf6d68(0x420)]);}[_0x32c408(0x55b)](){const _0x20b337=_0x32c408;this[_0x20b337(0x45d)](o[_0x20b337(0x4e4)](v['fromEvent'](window,_0x20b337(0x200))[_0x20b337(0x408)](_0x15ca36=>{const _0x4a699e=_0x20b337;if(_0x15ca36[_0x4a699e(0x386)]!==Je||!_0x15ca36[_0x4a699e(0x1f9)])return;const _0xe0f0d2=JSON[_0x4a699e(0x4bb)](_0x15ca36[_0x4a699e(0x1f9)]);this[_0x4a699e(0x3ca)](_0xe0f0d2);}))),window['addEventListener'](_0x20b337(0x557),()=>this[_0x20b337(0x3c9)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x20b337(0x2cb)](this[_0x20b337(0x293)])}));}['_handleEvent'](_0x29d7e0){const _0x4e3782=_0x32c408;switch(_0x29d7e0[_0x4e3782(0x430)]){case 0x0:this[_0x4e3782(0x4f3)](_0x29d7e0);break;case 0x1:this['_handleLeaveEvent'](_0x29d7e0);break;case 0x2:this[_0x4e3782(0x399)](_0x29d7e0);break;}}[_0x32c408(0x4f3)](_0xb78df7){const _0x1505ea=_0x32c408,{unitIDs:_0x34f216,memberID:_0x399906,isForwarded:_0x4004cb}=_0xb78df7;_0x34f216[_0x1505ea(0x241)](_0x342f4f=>{const _0x40b1b6=_0x1505ea;if(!_0x4004cb&&this['_unitOnClients'][_0x40b1b6(0x432)](_0x342f4f)&&this[_0x40b1b6(0x24e)](_0x342f4f)['next'](0x1),!this[_0x40b1b6(0x485)]['has'](_0x342f4f)||!this[_0x40b1b6(0x485)][_0x40b1b6(0x43e)](_0x342f4f)[_0x40b1b6(0x432)](_0x399906)){const _0x20893c=this[_0x40b1b6(0x485)][_0x40b1b6(0x43e)](_0x342f4f)||new Set();_0x20893c['add'](_0x399906),this[_0x40b1b6(0x485)][_0x40b1b6(0x33b)](_0x342f4f,_0x20893c),this[_0x40b1b6(0x53d)](_0x399906);}}),_0x4004cb||this[_0x1505ea(0x3c9)]({'type':0x0,'memberID':this[_0x1505ea(0x217)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4da502){const _0x15fa02=_0x32c408;this[_0x15fa02(0x315)](_0x4da502);const _0x36fb1e=window[_0x15fa02(0x3d3)](()=>{const _0x30d6f9=_0x15fa02;this[_0x30d6f9(0x485)]['forEach'](_0x3a9f97=>{_0x3a9f97['delete'](_0x4da502);});},qe*0x2);this[_0x15fa02(0x33c)][_0x15fa02(0x33b)](_0x4da502,_0x36fb1e);}[_0x32c408(0x315)](_0x31c61d){const _0x25133a=_0x32c408;if(this['_clearOtherTimers'][_0x25133a(0x432)](_0x31c61d)){const _0x4969ca=this['_clearOtherTimers']['get'](_0x31c61d);_0x4969ca&&window['clearTimeout'](_0x4969ca),this[_0x25133a(0x33c)][_0x25133a(0x33b)](_0x31c61d,null);}}[_0x32c408(0x39b)](_0x567610){const _0x41db8e=_0x32c408,{memberID:_0x3d4cc5,unitIDs:_0x5f1b42}=_0x567610;_0x5f1b42['forEach'](_0x307f77=>{const _0xbfa089=_0x453d;var _0x2370e8;const _0x24cf42=this[_0xbfa089(0x485)][_0xbfa089(0x43e)](_0x307f77);_0x24cf42&&(_0x24cf42['delete'](_0x3d4cc5),(_0x2370e8=this[_0xbfa089(0x24e)](_0x307f77))==null||_0x2370e8[_0xbfa089(0x226)](_0x24cf42['size']===0x0?0x0:0x1));}),this[_0x41db8e(0x315)](_0x3d4cc5);}[_0x32c408(0x399)](_0x1ab70f){const _0xf8a292=_0x32c408;this['_scheduleClearOtherTimer'](_0x1ab70f[_0xf8a292(0x31e)]);}['_send'](_0x5c5903){const _0x240088=_0x32c408;localStorage[_0x240088(0x38d)](Je,JSON[_0x240088(0x4d6)](_0x5c5903));}[_0x32c408(0x3d1)](){const _0x364fb=_0x32c408;this[_0x364fb(0x420)]=window[_0x364fb(0x2a9)](()=>{const _0x22370b=_0x364fb;this[_0x22370b(0x3c9)]({'type':0x2,'memberID':this[_0x22370b(0x217)]});},qe);}[_0x32c408(0x24e)](_0x523d7e){const _0x5c2a27=_0x32c408;return this[_0x5c2a27(0x579)][_0x5c2a27(0x432)](_0x523d7e)||this['_unitStatus'][_0x5c2a27(0x33b)](_0x523d7e,new v[(_0x5c2a27(0x2db))](0x0)),this['_unitStatus'][_0x5c2a27(0x43e)](_0x523d7e);}}var _s=Object[_0x32c408(0x539)],us=Object['getOwnPropertyDescriptor'],ds=(_0x96e927,_0x3a256b,_0x1e5350,_0x44e92f)=>{const _0x1eebca=_0x32c408;for(var _0x2a6eca=_0x44e92f>0x1?void 0x0:_0x44e92f?us(_0x3a256b,_0x1e5350):_0x3a256b,_0x2387c0=_0x96e927[_0x1eebca(0x462)]-0x1,_0x10825e;_0x2387c0>=0x0;_0x2387c0--)(_0x10825e=_0x96e927[_0x2387c0])&&(_0x2a6eca=(_0x44e92f?_0x10825e(_0x3a256b,_0x1e5350,_0x2a6eca):_0x10825e(_0x2a6eca))||_0x2a6eca);return _0x44e92f&&_0x2a6eca&&_s(_0x3a256b,_0x1e5350,_0x2a6eca),_0x2a6eca;},ze=(_0x6234af,_0x10064e)=>(_0x209cb,_0x35c16a)=>_0x10064e(_0x209cb,_0x35c16a,_0x6234af);let Se=class{constructor(_0x406abe,_0x376ac0){const _0x4ecc3c=_0x32c408;this[_0x4ecc3c(0x321)]=_0x406abe,this[_0x4ecc3c(0x374)]=_0x376ac0;}[_0x32c408(0x453)](_0x184231){this['_transformUndoRedoStack'](_0x184231),this['_transformPreviousActiveRange'](_0x184231);}[_0x32c408(0x452)](_0x491ba1){const _0x5e2780=_0x32c408,_0x12a3cc=this[_0x5e2780(0x321)][_0x5e2780(0x43e)](U[_0x5e2780(0x350)]),{redoCache:_0x485e1f}=_0x12a3cc['getUndoRedoMutationParamsCache']();if(_0x485e1f[_0x5e2780(0x462)]===0x0)return _0x491ba1;let _0x571917=o[_0x5e2780(0x523)][_0x5e2780(0x295)](_0x491ba1[_0x5e2780(0x560)][0x0]);for(let _0x50ba2c=0x0;_0x50ba2c<_0x485e1f['length'];_0x50ba2c++){const _0x398f07={'id':_0x5e2780(0x3f8),'params':{..._0x485e1f[_0x50ba2c]}},_0x4e586b=this['_transformService']['transformMutation'](_0x571917,_0x398f07,!0x1);if(_[_0x5e2780(0x247)](_0x4e586b))throw _0x4e586b[_0x5e2780(0x36f)];_0x571917=_0x4e586b[_0x5e2780(0x2b0)];}return{...o[_0x5e2780(0x523)][_0x5e2780(0x295)](_0x491ba1),'mutations':[_0x571917]};}[_0x32c408(0x322)](_0x593714){const _0x391544=_0x32c408,_0x3a3f26=this[_0x391544(0x321)]['get'](U[_0x391544(0x350)]),{undoCache:_0x2d1dcf,redoCache:_0x5d9c07}=_0x3a3f26[_0x391544(0x461)]();if(_0x2d1dcf['length']===0x0||_0x5d9c07[_0x391544(0x462)]===0x0)return;const _0x28958c=[],_0x4b4c93=[];let _0x28158a=o[_0x391544(0x523)][_0x391544(0x295)](_0x593714[_0x391544(0x560)][0x0]),_0x35e851=o[_0x391544(0x523)][_0x391544(0x295)](_0x593714[_0x391544(0x560)][0x0]);for(let _0x18466a=_0x2d1dcf[_0x391544(0x462)]-0x1;_0x18466a>=0x0;_0x18466a--){const _0x20f835={'id':_0x391544(0x3f8),'params':{..._0x2d1dcf[_0x18466a]}},_0x4faa35={'id':_0x391544(0x3f8),'params':{..._0x5d9c07[_0x18466a]}},_0x20a10f=this['_transformService'][_0x391544(0x20a)](_0x28158a,_0x20f835,!0x1),_0x2d9bbf=this['_transformService']['transformMutation'](_0x35e851,_0x4faa35,!0x1);if(_[_0x391544(0x247)](_0x20a10f))throw _0x20a10f['error'];if(_['isTransformMutationFailure'](_0x2d9bbf))throw _0x2d9bbf[_0x391544(0x36f)];_0x28958c[_0x391544(0x3b7)](_0x20a10f[_0x391544(0x577)]['params']),_0x4b4c93[_0x391544(0x3b7)](_0x2d9bbf[_0x391544(0x577)][_0x391544(0x4e6)]),_0x28158a=_0x20a10f[_0x391544(0x2b0)],_0x35e851=_0x2d9bbf[_0x391544(0x2b0)];}_0x3a3f26[_0x391544(0x4f5)]({'undoCache':_0x28958c,'redoCache':_0x4b4c93});}[_0x32c408(0x25b)](_0x4bf0e5){const _0x40026c=_0x32c408,_0xb53fee=this[_0x40026c(0x321)][_0x40026c(0x43e)](U['IMEInputManagerService']),_0x3fcff0=_0xb53fee[_0x40026c(0x52f)]();if(_0x3fcff0==null)return;const _0xc654ad=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4bf0e5['unitID'],'actions':null,'textRanges':[_0x3fcff0]}}],_0x50f7e8=this[_0x40026c(0x374)][_0x40026c(0x530)](_0x4bf0e5,_0xc654ad);if(!_[_0x40026c(0x3f2)](_0x50f7e8))throw _0x50f7e8[_0x40026c(0x36f)];const _0x205d83=_0x50f7e8[_0x40026c(0x577)][0x0][_0x40026c(0x4e6)][_0x40026c(0x3c7)];Array[_0x40026c(0x20f)](_0x205d83)&&_0x205d83[_0x40026c(0x462)]&&_0xb53fee[_0x40026c(0x568)](_0x205d83[0x0]);}};Se=ds([ze(0x0,o['Inject'](o[_0x32c408(0x337)])),ze(0x1,_[_0x32c408(0x3fd)])],Se);var Ss=Object['defineProperty'],vs=Object[_0x32c408(0x4e1)],ms=(_0x206a8a,_0x25ca40,_0x3be82f,_0x3f51ba)=>{const _0x338c82=_0x32c408;for(var _0x2dd03a=_0x3f51ba>0x1?void 0x0:_0x3f51ba?vs(_0x25ca40,_0x3be82f):_0x25ca40,_0x78e8ae=_0x206a8a[_0x338c82(0x462)]-0x1,_0x46be23;_0x78e8ae>=0x0;_0x78e8ae--)(_0x46be23=_0x206a8a[_0x78e8ae])&&(_0x2dd03a=(_0x3f51ba?_0x46be23(_0x25ca40,_0x3be82f,_0x2dd03a):_0x46be23(_0x2dd03a))||_0x2dd03a);return _0x3f51ba&&_0x2dd03a&&Ss(_0x25ca40,_0x3be82f,_0x2dd03a),_0x2dd03a;},Ze=(_0x2c260b,_0x587377)=>(_0x53b25d,_0x350bcb)=>_0x587377(_0x53b25d,_0x350bcb,_0x2c260b);let ve=class{constructor(_0x3b6edc,_0x46fb21){const _0x4f6e9c=_0x32c408;this[_0x4f6e9c(0x321)]=_0x3b6edc,this[_0x4f6e9c(0x374)]=_0x46fb21;}[_0x32c408(0x254)](_0x3f2108){const _0x2dbc58=_0x32c408;var _0x53acaf;const _0x2bba96=this['_injector']['get'](U[_0x2dbc58(0x459)]),_0x459051=(_0x53acaf=_0x2bba96['getCurrentSelections']())!=null?_0x53acaf:[],_0x15733e=_0x459051==null?void 0x0:_0x459051['map'](U[_0x2dbc58(0x23d)]);if(_0x15733e[_0x2dbc58(0x462)]===0x0)return;const _0x54c714=[{'id':_0x2dbc58(0x3f8),'params':{'unitId':_0x3f2108[_0x2dbc58(0x434)],'actions':null,'textRanges':_0x15733e}}],_0x13d9c0=this[_0x2dbc58(0x374)][_0x2dbc58(0x530)](_0x3f2108,_0x54c714);if(!_[_0x2dbc58(0x3f2)](_0x13d9c0))throw _0x13d9c0['error'];const _0x17cb19=_0x13d9c0[_0x2dbc58(0x577)][0x0][_0x2dbc58(0x4e6)][_0x2dbc58(0x3c7)];Array[_0x2dbc58(0x20f)](_0x17cb19)&&_0x17cb19[_0x2dbc58(0x462)]&&_0x2bba96[_0x2dbc58(0x529)](_0x17cb19,!0x1);}};ve=ms([Ze(0x0,o[_0x32c408(0x395)](o[_0x32c408(0x337)])),Ze(0x1,_['ITransformService'])],ve);function _0x453d(_0x3ecbe9,_0x233294){const _0x3a549d=_0x3a54();return _0x453d=function(_0x453d1,_0x180ec7){_0x453d1=_0x453d1-0x1b5;let _0x4e1b4a=_0x3a549d[_0x453d1];return _0x4e1b4a;},_0x453d(_0x3ecbe9,_0x233294);}function Et(_0x5ce729){let _0x199a4f='';for(const _0x3617d3 of _0x5ce729){const {startOffset:_0x138011,endOffset:_0x43a8fd,isActive:_0xf4ea94}=_0x3617d3;_0x199a4f['length']&&(_0x199a4f+=','),_0x199a4f+=_0x138011+':'+_0x43a8fd+':'+(_0xf4ea94?'1':'0');}return _0x199a4f;}function gs(_0x3c2892){const _0x38d9e9=_0x32c408,_0x1f8195=_0x3c2892[_0x38d9e9(0x531)](','),_0x4fbeb1=[];for(const _0x3819af of _0x1f8195){const [_0x753180,_0x430970,_0x1ad903]=_0x3819af[_0x38d9e9(0x531)](':');_0x4fbeb1[_0x38d9e9(0x563)]({'startOffset':Number(_0x753180),'endOffset':Number(_0x430970),'collapsed':_0x753180===_0x430970,'isActive':_0x1ad903==='1'});}return _0x4fbeb1[_0x38d9e9(0x1c0)](_0x7ec81=>_0x7ec81[_0x38d9e9(0x2b1)])||(_0x4fbeb1[0x0][_0x38d9e9(0x2b1)]=!0x0),_0x4fbeb1;}class Fe extends o[_0x32c408(0x476)]{constructor(){const _0x3c2fe4=_0x32c408;super(...arguments),u(this,_0x3c2fe4(0x2d7),new v['BehaviorSubject'](null)),u(this,_0x3c2fe4(0x49e),this[_0x3c2fe4(0x2d7)][_0x3c2fe4(0x4b0)]());}[_0x32c408(0x220)](_0x3fe5fb){const _0x419615=_0x32c408,{unitID:_0x31deb6,memberID:_0x35eb60,textRanges:_0x42312d}=_0x3fe5fb,_0x9f08e4=Et(_0x42312d),_0x1fb709={'unitID':_0x31deb6,'memberID':_0x35eb60,'selection':_0x9f08e4};this[_0x419615(0x2d7)][_0x419615(0x226)](_0x1fb709);}}var fs=Object[_0x32c408(0x539)],Is=Object[_0x32c408(0x4e1)],ps=(_0x5220c6,_0xa21571,_0x1915e5,_0x2b8ddb)=>{const _0x51f800=_0x32c408;for(var _0x63078=_0x2b8ddb>0x1?void 0x0:_0x2b8ddb?Is(_0xa21571,_0x1915e5):_0xa21571,_0x42be04=_0x5220c6[_0x51f800(0x462)]-0x1,_0x16b5f4;_0x42be04>=0x0;_0x42be04--)(_0x16b5f4=_0x5220c6[_0x42be04])&&(_0x63078=(_0x2b8ddb?_0x16b5f4(_0xa21571,_0x1915e5,_0x63078):_0x16b5f4(_0x63078))||_0x63078);return _0x2b8ddb&&_0x63078&&fs(_0xa21571,_0x1915e5,_0x63078),_0x63078;},Qe=(_0x332484,_0x5649a8)=>(_0x908e6c,_0x29c38e)=>_0x5649a8(_0x908e6c,_0x29c38e,_0x332484);function Es(_0x25d0ab){const {unitID:_0x3ce51f,mutations:_0x4b3ff7}=_0x25d0ab;return{'unitId':_0x3ce51f,'subUnitId':_0x4b3ff7[0x0]['params']['subUnitId']};}let me=class{constructor(_0x150d68,_0x4de32a){const _0x4dbe60=_0x32c408;this[_0x4dbe60(0x321)]=_0x150d68,this['_transformService']=_0x4de32a;}[_0x32c408(0x254)](_0x3d7534){const _0x2b3a49=_0x32c408;var _0xc411e7,_0x324be4,_0x2b2ddf;const _0x1000f9=this['_injector'][_0x2b3a49(0x43e)](p['SheetsSelectionsService']),{unitId:_0x572b4f,subUnitId:_0x29fad0}=Es(_0x3d7534),_0xea7695=_0x1000f9[_0x2b3a49(0x525)](_0x572b4f)[_0x2b3a49(0x281)]();if(_0xea7695[_0x2b3a49(0x462)]===0x0||!_0x572b4f||!_0x29fad0)return;const _0x4ecf6f=[{'id':p['SetSelectionsOperation']['id'],'params':{'unitId':_0x572b4f,'subUnitId':_0x29fad0,'selections':o['Tools'][_0x2b3a49(0x295)](_0xea7695)}}],_0x59c6b0=this[_0x2b3a49(0x374)][_0x2b3a49(0x530)](_0x3d7534,_0x4ecf6f);if(!_['isTransformMutationsWithChangesetSuccess'](_0x59c6b0))throw _0x59c6b0[_0x2b3a49(0x36f)];const _0x1f7096=(_0x2b2ddf=(_0x324be4=(_0xc411e7=_0x59c6b0[_0x2b3a49(0x577)][0x0])==null?void 0x0:_0xc411e7[_0x2b3a49(0x4e6)])==null?void 0x0:_0x324be4[_0x2b3a49(0x3c3)])!=null?_0x2b2ddf:_0xea7695;Array['isArray'](_0x1f7096)&&_0x1f7096[_0x2b3a49(0x462)]&&this['_injector'][_0x2b3a49(0x43e)](o[_0x2b3a49(0x4cb)])[_0x2b3a49(0x1ed)](p[_0x2b3a49(0x1e6)]['id'],{'unitId':_0x572b4f,'subUnitId':_0x29fad0,'selections':_0x1f7096});}};me=ps([Qe(0x0,o[_0x32c408(0x395)](o[_0x32c408(0x337)])),Qe(0x1,_[_0x32c408(0x3fd)])],me);const Cs=new Set([p['InsertSheetMutation']['id']]);function et(_0x38c2ef,_0x5f22c3,_0x337ea7,_0x3d9f86,_0x45e6b){const _0x56e401=_0x32c408;var _0x18dce5,_0x3bd850,_0x55c617,_0x38086a;const _0x4d1473=[];for(const _0x565fa8 of _0x38c2ef)if(Cs[_0x56e401(0x432)](_0x565fa8['id'])){if(_0x4d1473[_0x56e401(0x462)]>0x0)break;_0x4d1473[_0x56e401(0x563)](_0x565fa8);break;}else _0x4d1473[_0x56e401(0x563)](_0x565fa8);const _0x246afb=(_0x3bd850=(_0x18dce5=_0x45e6b[_0x56e401(0x2cf)]())==null?void 0x0:_0x18dce5[_0x56e401(0x310)])!=null?_0x3bd850:_0x56e401(0x449),_0x1c15fa=(_0x38086a=(_0x55c617=_0x45e6b[_0x56e401(0x2cf)]())==null?void 0x0:_0x55c617[_0x56e401(0x31e)])!=null?_0x38086a:_0x56e401(0x449);return{'changeset':{'unitID':_0x5f22c3,'type':_[_0x56e401(0x1fa)](_0x337ea7[_0x56e401(0x4c7)](_0x5f22c3)),'baseRev':_0x3d9f86[_0x56e401(0x54e)](_0x5f22c3),'revision':0x0,'userID':_0x246afb,'memberID':_0x1c15fa,'mutations':_0x4d1473},'pendingMutations':_0x38c2ef[_0x56e401(0x2f7)](_0x4d1473[_0x56e401(0x462)])};}function bs(_0x33c37c,_0x575c36,_0x2be016,_0x3fda73,_0x5079d9){const _0x12ed13=_0x32c408;var _0x5ec4e4,_0x21437a,_0x2c6462,_0x49b652;const _0x5402be=[_0x33c37c[_0x12ed13(0x554)]((_0x4591cd,_0x4f97f8)=>{const _0x3433aa=_0x12ed13;var _0x39947b;const {id:_0x5c564f}=_0x4591cd,{id:_0x52a7ea,type:_0x273123}=_0x4f97f8,_0x38c2a5=(_0x39947b=_0x4591cd['params'])!=null?_0x39947b:{'actions':null},_0x3b231f=_0x4f97f8['params'];if(_0x5c564f&&_0x5c564f!==_0x52a7ea)throw new Error(_0x3433aa(0x56c)+_0x5c564f+_0x3433aa(0x2a1)+_0x52a7ea+'.');return{..._0x4591cd,'id':_0x52a7ea,'type':_0x273123,'params':{'unitId':_0x3b231f[_0x3433aa(0x349)],'textRanges':_0x3b231f[_0x3433aa(0x3c7)],'actions':o['JSONX']['compose'](_0x38c2a5[_0x3433aa(0x213)],_0x3b231f[_0x3433aa(0x213)])}};},{})],_0x1203ac=(_0x21437a=(_0x5ec4e4=_0x5079d9[_0x12ed13(0x2cf)]())==null?void 0x0:_0x5ec4e4[_0x12ed13(0x310)])!=null?_0x21437a:'unknown',_0x2e7c4b=(_0x49b652=(_0x2c6462=_0x5079d9[_0x12ed13(0x2cf)]())==null?void 0x0:_0x2c6462[_0x12ed13(0x31e)])!=null?_0x49b652:_0x12ed13(0x449);return{'changeset':{'unitID':_0x575c36,'type':_[_0x12ed13(0x1fa)](_0x2be016[_0x12ed13(0x4c7)](_0x575c36)),'baseRev':_0x3fda73[_0x12ed13(0x54e)](_0x575c36),'revision':0x0,'userID':_0x1203ac,'memberID':_0x2e7c4b,'mutations':_0x5402be},'pendingMutations':[]};}const Ts={'id':p[_0x32c408(0x311)]['id'],'type':o[_0x32c408(0x55a)][_0x32c408(0x42a)],'params':{}};var Rs=Object['defineProperty'],Os=Object[_0x32c408(0x4e1)],G=(_0x1a11be,_0xeaddda,_0x4a020c,_0x25ee42)=>{const _0x57822b=_0x32c408;for(var _0x1b49cb=_0x25ee42>0x1?void 0x0:_0x25ee42?Os(_0xeaddda,_0x4a020c):_0xeaddda,_0x5d36e4=_0x1a11be[_0x57822b(0x462)]-0x1,_0x45c911;_0x5d36e4>=0x0;_0x5d36e4--)(_0x45c911=_0x1a11be[_0x5d36e4])&&(_0x1b49cb=(_0x25ee42?_0x45c911(_0xeaddda,_0x4a020c,_0x1b49cb):_0x45c911(_0x1b49cb))||_0x1b49cb);return _0x25ee42&&_0x1b49cb&&Rs(_0xeaddda,_0x4a020c,_0x1b49cb),_0x1b49cb;},m=(_0xb99bbf,_0x1a92e3)=>(_0x58f777,_0x27cbc6)=>_0x1a92e3(_0x58f777,_0x27cbc6,_0xb99bbf),D=(_0x3c8dfe=>(_0x3c8dfe[_0x32c408(0x208)]=_0x32c408(0x46a),_0x3c8dfe[_0x32c408(0x234)]=_0x32c408(0x3b2),_0x3c8dfe[_0x32c408(0x22d)]=_0x32c408(0x29e),_0x3c8dfe[_0x32c408(0x382)]=_0x32c408(0x429),_0x3c8dfe[_0x32c408(0x31c)]=_0x32c408(0x4f7),_0x3c8dfe[_0x32c408(0x1ce)]=_0x32c408(0x538),_0x3c8dfe[_0x32c408(0x4e5)]=_0x32c408(0x2d4),_0x3c8dfe[_0x32c408(0x553)]=_0x32c408(0x1dd),_0x3c8dfe))(D||{});class Y{constructor(_0x19e99a,_0x83232b,_0x3a8471,_0x116991,_0x1de4dd,_0x587a0d,_0x1c3eb9,_0x19694b,_0x422272){const _0x33ec25=_0x32c408;u(this,_0x33ec25(0x243),null),u(this,'_pendingMutations',[]),(this[_0x33ec25(0x434)]=_0x19e99a,this[_0x33ec25(0x430)]=_0x83232b,this[_0x33ec25(0x47b)]=_0x1de4dd,this[_0x33ec25(0x363)]=_0x587a0d,this[_0x33ec25(0x2bd)]=_0x1c3eb9,this[_0x33ec25(0x441)]=_0x19694b,this[_0x33ec25(0x51f)]=_0x422272,this['_awaitingChangeset']=_0x3a8471,this[_0x33ec25(0x335)]=_0x116991);}[_0x32c408(0x3dd)](_0x2c7d03){const _0x259a76=_0x32c408,_0x406acf=this[_0x259a76(0x441)][_0x259a76(0x54e)](this['unitID']);return _0x2c7d03['revision']>_0x406acf+0x1?(this[_0x259a76(0x47b)][_0x259a76(0x1db)]({'from':_0x406acf,'to':_0x2c7d03[_0x259a76(0x392)]-0x1}),!0x0):!0x1;}[_0x32c408(0x400)](_0x2800b0){const _0x137d2e=_0x32c408;this[_0x137d2e(0x2bd)][_0x137d2e(0x1cb)](this[_0x137d2e(0x434)],_0x2800b0);}['_transformSelections'](_0x2fd507){const _0xa1ed9a=_0x32c408;var _0x32ad3a,_0x54beec;(_0x54beec=(_0x32ad3a=this[_0xa1ed9a(0x47b)])[_0xa1ed9a(0x42f)])==null||_0x54beec[_0xa1ed9a(0x230)](_0x32ad3a,_0x2fd507);}[_0x32c408(0x4b4)](_0x195a50){const _0x213b12=_0x32c408;var _0x2f3c77,_0x1efbfd;return(_0x1efbfd=(_0x2f3c77=this[_0x213b12(0x47b)])['onTransformIME'])==null?void 0x0:_0x1efbfd[_0x213b12(0x230)](_0x2f3c77,_0x195a50);}['_transformRemoteChangesetByIMECache'](_0x16f612){const _0x446eaf=_0x32c408;var _0x3dba2f,_0x29d3c9,_0x1102d0;return(_0x1102d0=(_0x29d3c9=(_0x3dba2f=this[_0x446eaf(0x47b)])[_0x446eaf(0x229)])==null?void 0x0:_0x29d3c9['call'](_0x3dba2f,_0x16f612))!=null?_0x1102d0:_0x16f612;}[_0x32c408(0x3e1)](_0x34805d){const _0x31a163=_0x32c408;var _0x264e30,_0x29e0ca;if(this[_0x31a163(0x430)]===A[_0x31a163(0x4a0)]){const {unitID:_0x3125b0,mutations:_0x79b20f,memberID:_0x157466}=_0x34805d,_0x3d2cb3=_0x79b20f[0x0][_0x31a163(0x4e6)]['textRanges'];Array[_0x31a163(0x20f)](_0x3d2cb3)&&_0x3d2cb3[_0x31a163(0x462)]>0x0&&((_0x29e0ca=(_0x264e30=this[_0x31a163(0x47b)])[_0x31a163(0x4ca)])==null||_0x29e0ca['call'](_0x264e30,{'unitID':_0x3125b0,'memberID':_0x157466,'textRanges':_0x3d2cb3}));}}['_updateLocalCache'](){const _0x479001=_0x32c408;this[_0x479001(0x51f)]['updateOfflineData'](this[_0x479001(0x434)],this[_0x479001(0x430)],this[_0x479001(0x243)],this['_pendingMutations']);}[_0x32c408(0x36c)](){const _0xab5fe=_0x32c408;return this[_0xab5fe(0x441)][_0xab5fe(0x54e)](this[_0xab5fe(0x434)]);}[_0x32c408(0x474)](){const _0x747bfc=_0x32c408;this['_revisionService'][_0x747bfc(0x4c1)](this[_0x747bfc(0x434)]);}[_0x32c408(0x1f7)](_0x559c49){const _0x2fdbba=_0x32c408;var _0x1e3ad9;const _0x5a92cb=this[_0x2fdbba(0x4ec)](_0x559c49),_0x108068=o['sequenceExecute'](_0x5a92cb['mutations'],this[_0x2fdbba(0x363)],{'fromCollab':!0x0});if(!_0x108068['result'])throw _0x108068['error']instanceof Error?_0x108068['error']:new Error((_0x1e3ad9=_0x108068['error'])!=null?_0x1e3ad9:_0x2fdbba(0x406));this[_0x2fdbba(0x4b4)](_0x5a92cb),this[_0x2fdbba(0x400)](_0x559c49),this[_0x2fdbba(0x26d)](_0x5a92cb),this[_0x2fdbba(0x3e1)](_0x5a92cb),this['_incrementRevisionNumber']();}}let oe=class extends Y{constructor(_0x3f4a44,_0x531dc7,_0x47d6bb,_0x4d17d0,_0x1bdc11,_0x5a5abe,_0x57e043,_0x1a805b,_0x358639,_0x16d0bf){const _0x4bf122=_0x32c408;super(_0x3f4a44,_0x531dc7,null,[],_0x47d6bb,_0x1a805b,_0x57e043,_0x4d17d0,_0x1bdc11),u(this,_0x4bf122(0x3bf),_0x4bf122(0x3b2)),(this['_injector']=_0x5a5abe,this[_0x4bf122(0x505)]=_0x358639,this['_transformService']=_0x16d0bf);}[_0x32c408(0x372)](_0x38e514){const _0xc8d7=_0x32c408,_0x47d842=this['_injector'][_0xc8d7(0x277)](j,this[_0xc8d7(0x434)],this[_0xc8d7(0x430)],[_0x38e514],this[_0xc8d7(0x47b)]);return _0x47d842[_0xc8d7(0x3bd)](),_0x47d842[_0xc8d7(0x504)](),_0x47d842;}[_0x32c408(0x4e7)](_0x30c122){const _0x390764=_0x32c408;if(this[_0x390764(0x3dd)](_0x30c122))return this['_injector'][_0x390764(0x277)](H,this[_0x390764(0x434)],this[_0x390764(0x430)],null,[],null,[_0x30c122],this[_0x390764(0x47b)]);try{const _0x57660d=this[_0x390764(0x374)][_0x390764(0x530)](_0x30c122,[Ts]);if(_['isTransformMutationsWithChangesetSuccess'](_0x57660d)){const {c1Prime:_0x459047}=_0x57660d;return this[_0x390764(0x1f7)](_0x459047),this;}throw _0x57660d[_0x390764(0x36f)];}catch(_0x2885d1){return this[_0x390764(0x505)][_0x390764(0x36f)](_0x2885d1),this[_0x390764(0x2a7)](!0x1);}}[_0x32c408(0x2a7)](_0x540a34){const _0x2037a4=_0x32c408;return this[_0x2037a4(0x321)][_0x2037a4(0x277)](k,this[_0x2037a4(0x434)],this['type'],null,[],this[_0x2037a4(0x47b)],_0x540a34);}[_0x32c408(0x4c3)](){const _0x1ca2cd=_0x32c408;throw new Error(_0x1ca2cd(0x4ed));}['onRemoteRej'](){const _0x513551=_0x32c408;throw new Error(_0x513551(0x2d8));}[_0x32c408(0x456)](){const _0xc6ad3d=_0x32c408;return this[_0xc6ad3d(0x321)][_0xc6ad3d(0x277)](B,this[_0xc6ad3d(0x434)],this[_0xc6ad3d(0x430)],null,[],this[_0xc6ad3d(0x47b)]);}[_0x32c408(0x38e)](){return this;}['resend'](){const _0x137603=_0x32c408;throw new Error(_0x137603(0x28b));}};oe=G([m(0x3,o[_0x32c408(0x395)](_[_0x32c408(0x4f2)])),m(0x4,o['Inject'](exports[_0x32c408(0x39f)])),m(0x5,o[_0x32c408(0x395)](o[_0x32c408(0x337)])),m(0x6,o[_0x32c408(0x25e)]),m(0x7,o[_0x32c408(0x4cb)]),m(0x8,o[_0x32c408(0x1bd)]),m(0x9,_['ITransformService'])],oe);let j=class extends Y{constructor(_0x36ad20,_0x59c459,_0x22165f,_0x22d735,_0x571e30,_0x43f630,_0x42e06a,_0x3f1a79,_0x5c1442,_0x2272d9,_0x28df0b,_0x51600b,_0x320ff1,_0x5b0edb){const _0x55d3ad=_0x32c408;super(_0x36ad20,_0x59c459,null,_0x22165f,_0x22d735,_0x2272d9,_0x5b0edb,_0x43f630,_0x42e06a),u(this,'status',_0x55d3ad(0x29e)),u(this,'_scheduleTimestamp',null),u(this,_0x55d3ad(0x32b),null),(this['_injector']=_0x571e30,this['_memberService']=_0x3f1a79,this[_0x55d3ad(0x505)]=_0x5c1442,this['_configService']=_0x28df0b,this['_transformService']=_0x51600b,this[_0x55d3ad(0x46c)]=_0x320ff1);}[_0x32c408(0x372)](_0x330300){const _0x420272=_0x32c408;return this['_pendingMutations'][_0x420272(0x563)](_0x330300),this[_0x420272(0x504)](),this;}['onRemoteChangeset'](_0x2390c4){const _0x5ce482=_0x32c408;if(this[_0x5ce482(0x3dd)](_0x2390c4))return this[_0x5ce482(0x2c2)](),this[_0x5ce482(0x321)][_0x5ce482(0x277)](H,this[_0x5ce482(0x434)],this[_0x5ce482(0x430)],null,this[_0x5ce482(0x335)],null,[_0x2390c4],this['_handler']);try{const _0x4ad5f4=this[_0x5ce482(0x374)]['transformMutationsWithChangeset'](_0x2390c4,this[_0x5ce482(0x335)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x4ad5f4)){const {c1Prime:_0x8745a4,m2Prime:_0xd5948}=_0x4ad5f4;this['_executeRemoteChangeset'](_0x8745a4);const _0x4f0bb1=this[_0x5ce482(0x321)][_0x5ce482(0x277)](j,this['unitID'],this[_0x5ce482(0x430)],_0xd5948,this[_0x5ce482(0x47b)]);return this['_clearScheduledTask'](),_0x4f0bb1['_schedule'](this['_scheduleTimestamp']?Math[_0x5ce482(0x528)](0x0,new Date()['getTime']()-this['_scheduleTimestamp']):this[_0x5ce482(0x50f)]()),_0x4f0bb1;}throw _0x4ad5f4[_0x5ce482(0x36f)];}catch(_0x487277){return this[_0x5ce482(0x505)][_0x5ce482(0x36f)](_0x487277),this[_0x5ce482(0x2a7)](!0x1);}}['onRemoteAck'](){const _0x4fbe2f=_0x32c408;throw new Error(_0x4fbe2f(0x57f));}[_0x32c408(0x403)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x32c408(0x456)](){const _0x119919=_0x32c408;return this['_clearScheduledTask'](),this[_0x119919(0x321)][_0x119919(0x277)](B,this['unitID'],this[_0x119919(0x430)],null,this[_0x119919(0x335)],this[_0x119919(0x47b)]);}[_0x32c408(0x38e)](){return this;}[_0x32c408(0x3bd)](_0x1a38d3){const _0x10aed9=_0x32c408;_0x1a38d3=_0x1a38d3!=null?_0x1a38d3:this[_0x10aed9(0x50f)](),this[_0x10aed9(0x36e)]=new Date()[_0x10aed9(0x370)](),this['_sendingTimer']=setTimeout(()=>{const _0x3f4827=_0x10aed9;this[_0x3f4827(0x2c2)]();let _0x2ce245=null;switch(this[_0x3f4827(0x430)]){case A['UNIVER_SHEET']:{_0x2ce245=et(this[_0x3f4827(0x335)],this[_0x3f4827(0x434)],this[_0x3f4827(0x46c)],this[_0x3f4827(0x441)],this[_0x3f4827(0x47f)]);break;}case A[_0x3f4827(0x4a0)]:{this[_0x3f4827(0x335)]['every'](_0x138bc0=>_0x138bc0['id']===U[_0x3f4827(0x47a)]['id'])?_0x2ce245=bs(this['_pendingMutations'],this[_0x3f4827(0x434)],this['_univerInstanceService'],this['_revisionService'],this[_0x3f4827(0x47f)]):_0x2ce245=et(this[_0x3f4827(0x335)],this['unitID'],this['_univerInstanceService'],this[_0x3f4827(0x441)],this[_0x3f4827(0x47f)]);break;}default:throw new Error(_0x3f4827(0x1f5)+this[_0x3f4827(0x430)]+_0x3f4827(0x443));}const {changeset:_0xe61d87,pendingMutations:_0x3e86f2}=_0x2ce245;this[_0x3f4827(0x47b)][_0x3f4827(0x1b7)](_0xe61d87);const _0x495e41=_0x3e86f2['length']?this['_injector'][_0x3f4827(0x277)]($,this[_0x3f4827(0x434)],this['type'],_0xe61d87,_0x3e86f2,this[_0x3f4827(0x47b)]):this['_injector'][_0x3f4827(0x277)](x,this[_0x3f4827(0x434)],this[_0x3f4827(0x430)],_0xe61d87,this[_0x3f4827(0x47b)]);_0x495e41[_0x3f4827(0x504)](),this['_handler'][_0x3f4827(0x561)](this,_0x495e41);},_0x1a38d3);}[_0x32c408(0x50f)](){var _0x415b13;return(_0x415b13=this['_configService']['getConfig'](lt))!=null?_0x415b13:Bt;}[_0x32c408(0x4c2)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x32c408(0x2c2)](){const _0x4d6343=_0x32c408;this[_0x4d6343(0x32b)]!=null&&(clearTimeout(this[_0x4d6343(0x32b)]),this['_sendingTimer']=null);}[_0x32c408(0x2a7)](_0x43514a){const _0x4ff8a3=_0x32c408;return this[_0x4ff8a3(0x2c2)](),this['_injector']['createInstance'](k,this['unitID'],this[_0x4ff8a3(0x430)],null,this['_pendingMutations'],this[_0x4ff8a3(0x47b)],_0x43514a);}};j=G([m(0x4,o[_0x32c408(0x395)](o[_0x32c408(0x337)])),m(0x5,o[_0x32c408(0x395)](_['RevisionService'])),m(0x6,o[_0x32c408(0x395)](exports['LocalCacheService'])),m(0x7,o['Inject'](W)),m(0x8,o[_0x32c408(0x1bd)]),m(0x9,o[_0x32c408(0x4cb)]),m(0xa,o[_0x32c408(0x312)]),m(0xb,_[_0x32c408(0x3fd)]),m(0xc,o[_0x32c408(0x558)]),m(0xd,o[_0x32c408(0x25e)])],j);let x=class extends Y{constructor(_0x5b74f0,_0x2fe46c,_0x30a9f0,_0x181150,_0x572f92,_0x5e00cd,_0x11a5d3,_0x509955,_0xb80c46,_0x4ee7cc,_0x31f6d1){const _0x5639a4=_0x32c408;super(_0x5b74f0,_0x2fe46c,_0x30a9f0,[],_0x181150,_0x509955,_0x31f6d1,_0x5e00cd,_0x11a5d3),u(this,'status',_0x5639a4(0x429)),(this[_0x5639a4(0x321)]=_0x572f92,this[_0x5639a4(0x505)]=_0xb80c46,this[_0x5639a4(0x374)]=_0x4ee7cc);}[_0x32c408(0x372)](_0x3db1d6){const _0x1810b9=_0x32c408,_0x4b395b=this[_0x1810b9(0x321)]['createInstance']($,this['unitID'],this[_0x1810b9(0x430)],this[_0x1810b9(0x243)],[_0x3db1d6],this[_0x1810b9(0x47b)]);return _0x4b395b[_0x1810b9(0x504)](),_0x4b395b;}[_0x32c408(0x4e7)](_0x181ac8){const _0x31ce57=_0x32c408;if(this[_0x31ce57(0x3dd)](_0x181ac8))return this['_injector']['createInstance'](H,this[_0x31ce57(0x434)],this[_0x31ce57(0x430)],this[_0x31ce57(0x243)],[],null,[_0x181ac8],this[_0x31ce57(0x47b)]);try{const _0x57b0b6=this[_0x31ce57(0x374)][_0x31ce57(0x248)]([_0x181ac8],[this[_0x31ce57(0x243)]],!0x1);if(_[_0x31ce57(0x496)](_0x57b0b6)){const {c1Prime:_0x5ca681,c2Prime:_0x5e4675}=_0x57b0b6;this[_0x31ce57(0x1f7)](_0x5ca681[0x0]),_0x5e4675[0x0][_0x31ce57(0x2e4)]=this[_0x31ce57(0x36c)]();const _0x1379d3=this[_0x31ce57(0x321)][_0x31ce57(0x277)](x,this[_0x31ce57(0x434)],this[_0x31ce57(0x430)],_0x5e4675[0x0],this[_0x31ce57(0x47b)]);return _0x1379d3[_0x31ce57(0x504)](),_0x1379d3;}return this[_0x31ce57(0x2a7)](!0x1);}catch(_0x49e73e){return this[_0x31ce57(0x505)]['error'](_0x49e73e),this[_0x31ce57(0x2a7)](!0x1);}}[_0x32c408(0x4c3)](_0x4e3393){const _0x26d6f7=_0x32c408,_0x3e57e4=this[_0x26d6f7(0x441)][_0x26d6f7(0x54e)](this['unitID']);if(_0x4e3393['revision']<_0x3e57e4-0x1)return this;if(this['_checkMissing'](_0x4e3393))return this[_0x26d6f7(0x321)][_0x26d6f7(0x277)](H,this[_0x26d6f7(0x434)],this[_0x26d6f7(0x430)],null,[],this['_awaitingChangeset'],[],this['_handler']);this[_0x26d6f7(0x474)]();const _0x45b598=this['_injector'][_0x26d6f7(0x277)](oe,this[_0x26d6f7(0x434)],this[_0x26d6f7(0x430)],this[_0x26d6f7(0x47b)]);return _0x45b598[_0x26d6f7(0x504)](),_0x45b598;}[_0x32c408(0x403)](_0x5d4306){const _0x17d77e=_0x32c408;return this[_0x17d77e(0x2a7)](!!(_0x5d4306!=null&&_0x5d4306[_0x17d77e(0x2af)]));}[_0x32c408(0x456)](){const _0x3582ed=_0x32c408;return this[_0x3582ed(0x321)][_0x3582ed(0x277)](B,this['unitID'],this[_0x3582ed(0x430)],this[_0x3582ed(0x243)],[],this[_0x3582ed(0x47b)]);}[_0x32c408(0x38e)](){return this;}[_0x32c408(0x4c2)](){const _0x2e4a49=_0x32c408;this[_0x2e4a49(0x47b)][_0x2e4a49(0x1b7)](this[_0x2e4a49(0x243)]);}[_0x32c408(0x2a7)](_0x574d69){const _0x3933cb=_0x32c408;return this['_injector'][_0x3933cb(0x277)](k,this['unitID'],this['type'],this[_0x3933cb(0x243)],[],this['_handler'],_0x574d69);}};x=G([m(0x4,o[_0x32c408(0x395)](o[_0x32c408(0x337)])),m(0x5,o[_0x32c408(0x395)](_[_0x32c408(0x4f2)])),m(0x6,o[_0x32c408(0x395)](exports[_0x32c408(0x39f)])),m(0x7,o['ICommandService']),m(0x8,o[_0x32c408(0x1bd)]),m(0x9,_[_0x32c408(0x3fd)]),m(0xa,o[_0x32c408(0x25e)])],x);let $=class extends Y{constructor(_0x4285ae,_0x39d96d,_0x5f2c84,_0x9db42,_0x476892,_0x560916,_0x138e53,_0x28fc98,_0x30a785,_0x5dc461,_0x5d6122,_0xeef880){const _0x209b19=_0x32c408;super(_0x4285ae,_0x39d96d,_0x5f2c84,_0x9db42,_0x476892,_0x30a785,_0xeef880,_0x138e53,_0x28fc98),u(this,'status',_0x209b19(0x4f7)),(this[_0x209b19(0x321)]=_0x560916,this[_0x209b19(0x505)]=_0x5dc461,this[_0x209b19(0x374)]=_0x5d6122);}[_0x32c408(0x372)](_0x641d6){const _0x49a8aa=_0x32c408;return this[_0x49a8aa(0x335)][_0x49a8aa(0x563)](_0x641d6),this;}['onRemoteChangeset'](_0x1f0719){const _0x1b9add=_0x32c408;if(this[_0x1b9add(0x3dd)](_0x1f0719))return this[_0x1b9add(0x321)][_0x1b9add(0x277)](H,this[_0x1b9add(0x434)],this[_0x1b9add(0x430)],this[_0x1b9add(0x243)],this[_0x1b9add(0x335)],null,[_0x1f0719],this[_0x1b9add(0x47b)]);try{const _0x564822=this['_transformService'][_0x1b9add(0x248)]([_0x1f0719],[this[_0x1b9add(0x243)]],!0x1);if(_[_0x1b9add(0x496)](_0x564822)){const {c1Prime:_0x8bf9ac,c2Prime:_0x2da663}=_0x564822,_0x18c491=this['_transformService'][_0x1b9add(0x530)](_0x8bf9ac[0x0],this[_0x1b9add(0x335)]);if(_[_0x1b9add(0x3f2)](_0x18c491)){const {c1Prime:_0x495790,m2Prime:_0x20260a}=_0x18c491;return this['_executeRemoteChangeset'](_0x495790),_0x2da663[0x0][_0x1b9add(0x2e4)]=this[_0x1b9add(0x36c)](),this[_0x1b9add(0x321)][_0x1b9add(0x277)]($,this[_0x1b9add(0x434)],this[_0x1b9add(0x430)],_0x2da663[0x0],_0x20260a,this['_handler']);}throw _0x18c491[_0x1b9add(0x36f)];}throw _0x564822[_0x1b9add(0x36f)];}catch(_0x349af8){return this[_0x1b9add(0x505)][_0x1b9add(0x36f)](_0x349af8),this[_0x1b9add(0x2a7)](!0x1);}}[_0x32c408(0x4c3)](_0x30f290){const _0x18d045=_0x32c408;if(this['_checkMissing'](_0x30f290))return this[_0x18d045(0x321)][_0x18d045(0x277)](H,this['unitID'],this[_0x18d045(0x430)],null,this[_0x18d045(0x335)],this[_0x18d045(0x243)],[],this[_0x18d045(0x47b)]);this[_0x18d045(0x474)]();const _0x2c1109=this[_0x18d045(0x321)][_0x18d045(0x277)](j,this[_0x18d045(0x434)],this[_0x18d045(0x430)],this[_0x18d045(0x335)],this[_0x18d045(0x47b)]);return _0x2c1109[_0x18d045(0x3bd)](),_0x2c1109[_0x18d045(0x504)](),_0x2c1109;}[_0x32c408(0x403)](_0x57bc3a){const _0x3c0219=_0x32c408;return this[_0x3c0219(0x2a7)](!!(_0x57bc3a!=null&&_0x57bc3a[_0x3c0219(0x2af)]));}[_0x32c408(0x456)](){const _0x1c8fa2=_0x32c408;return this[_0x1c8fa2(0x321)][_0x1c8fa2(0x277)](B,this[_0x1c8fa2(0x434)],this[_0x1c8fa2(0x430)],this['_awaitingChangeset'],this[_0x1c8fa2(0x335)],this[_0x1c8fa2(0x47b)]);}[_0x32c408(0x38e)](){return this;}[_0x32c408(0x4c2)](){const _0xf37f14=_0x32c408;this[_0xf37f14(0x47b)][_0xf37f14(0x1b7)](this['_awaitingChangeset']);}[_0x32c408(0x2a7)](_0x29b387){const _0x3f2803=_0x32c408;return this[_0x3f2803(0x321)][_0x3f2803(0x277)](k,this[_0x3f2803(0x434)],this[_0x3f2803(0x430)],null,this[_0x3f2803(0x335)],this[_0x3f2803(0x47b)],_0x29b387);}};$=G([m(0x5,o[_0x32c408(0x395)](o['Injector'])),m(0x6,o['Inject'](_[_0x32c408(0x4f2)])),m(0x7,o[_0x32c408(0x395)](exports[_0x32c408(0x39f)])),m(0x8,o[_0x32c408(0x4cb)]),m(0x9,o[_0x32c408(0x1bd)]),m(0xa,_[_0x32c408(0x3fd)]),m(0xb,o[_0x32c408(0x25e)])],$);let k=class extends Y{constructor(_0x5a22a5,_0x4c22cf,_0x5d45be,_0x856de,_0xd1ecde,_0x3e7cf0=!0x1,_0x5b915a,_0x2f8fda,_0x2f1db9,_0x2ffc70,_0x4f833f,_0x578cb1,_0x3d7bfd){const _0x2ca5b2=_0x32c408;super(_0x5a22a5,_0x4c22cf,_0x5d45be,_0x856de,_0xd1ecde,_0x2f8fda,_0x2f1db9,_0x4f833f,_0x2ffc70),u(this,_0x2ca5b2(0x3bf),_0x2ca5b2(0x2d4)),(this[_0x2ca5b2(0x439)]=_0x3e7cf0,this['_permissionService']=_0x5b915a,this['_localeService']=_0x578cb1,this[_0x2ca5b2(0x286)]=_0x3d7bfd,this['_showConflictNotification'](),this[_0x2ca5b2(0x360)](),this[_0x2ca5b2(0x48c)]());}[_0x32c408(0x372)](){return this;}[_0x32c408(0x4e7)](){return this;}[_0x32c408(0x4c3)](){return this;}[_0x32c408(0x403)](){return this;}[_0x32c408(0x456)](){return this;}['toggleOnline'](){return this;}[_0x32c408(0x4c2)](){const _0x2cf850=_0x32c408;throw new Error(_0x2cf850(0x480));}[_0x32c408(0x360)](){const _0x6e071a=_0x32c408;this[_0x6e071a(0x51f)][_0x6e071a(0x451)](this[_0x6e071a(0x434)],this[_0x6e071a(0x430)],null,[]);}[_0x32c408(0x2f5)](){const _0x5d6deb=_0x32c408;this[_0x5d6deb(0x439)]?this[_0x5d6deb(0x286)][_0x5d6deb(0x389)]({'title':this[_0x5d6deb(0x299)]['t']('permission.title'),'content':this[_0x5d6deb(0x299)]['t']('permission.content'),'type':_0x5d6deb(0x36f),'duration':0x0}):this[_0x5d6deb(0x286)][_0x5d6deb(0x389)]({'title':this[_0x5d6deb(0x299)]['t']('conflict.title'),'content':this['_localeService']['t']('conflict.content'),'type':_0x5d6deb(0x36f),'duration':0x0});}[_0x32c408(0x48c)](){const _0xbaedd9=_0x32c408;this[_0xbaedd9(0x280)][_0xbaedd9(0x1ba)](new p[(_0xbaedd9(0x45b))](this['unitID'])['id'],!0x1);}};k=G([m(0x6,o[_0x32c408(0x395)](o[_0x32c408(0x3ed)])),m(0x7,o[_0x32c408(0x4cb)]),m(0x8,o['IUndoRedoService']),m(0x9,o[_0x32c408(0x395)](exports['LocalCacheService'])),m(0xa,o[_0x32c408(0x395)](_['RevisionService'])),m(0xb,o[_0x32c408(0x395)](o[_0x32c408(0x4f9)])),m(0xc,L['INotificationService'])],k);let B=class extends Y{constructor(_0x14b73f,_0x252ebe,_0x1dc866,_0xccbbbf,_0x5ce3ee,_0x39733a,_0x420ef2,_0x53e27f,_0x259868,_0x4bb509){const _0x2d7657=_0x32c408;super(_0x14b73f,_0x252ebe,_0x1dc866,_0xccbbbf,_0x5ce3ee,_0x259868,_0x4bb509,_0x420ef2,_0x53e27f),u(this,_0x2d7657(0x3bf),_0x2d7657(0x1dd)),this[_0x2d7657(0x321)]=_0x39733a;}[_0x32c408(0x372)](_0x15da31){const _0x5368f1=_0x32c408;return this[_0x5368f1(0x335)]['push'](_0x15da31),this[_0x5368f1(0x504)](),this;}[_0x32c408(0x4e7)](_0x311fe8){const _0x2881f3=_0x32c408;throw new Error(_0x2881f3(0x4a9));}[_0x32c408(0x4c3)](){const _0x3310cb=_0x32c408;throw new Error(_0x3310cb(0x4d2));}[_0x32c408(0x403)](){const _0x2940ee=_0x32c408;throw new Error(_0x2940ee(0x44a));}[_0x32c408(0x456)](){return this;}[_0x32c408(0x38e)](){const _0x503a08=_0x32c408,{_injector:_0x415ff9,_pendingMutations:_0x17bb94,_awaitingChangeset:_0x4274a0,unitID:_0x2d700f,_handler:_0x16d9b6,type:_0x27b428}=this,_0x4454bf=Ct(_0x415ff9,_0x2d700f,_0x27b428,_0x4274a0,_0x17bb94,_0x16d9b6);return _0x4454bf instanceof j?_0x4454bf[_0x503a08(0x3bd)]():(_0x4454bf instanceof $||_0x4454bf instanceof x)&&_0x4454bf[_0x503a08(0x4c2)](),_0x4454bf;}[_0x32c408(0x4c2)](){const _0x1cd709=_0x32c408;throw new Error(_0x1cd709(0x3a5));}};B=G([m(0x5,o[_0x32c408(0x395)](o[_0x32c408(0x337)])),m(0x6,o[_0x32c408(0x395)](_[_0x32c408(0x4f2)])),m(0x7,o[_0x32c408(0x395)](exports[_0x32c408(0x39f)])),m(0x8,o['ICommandService']),m(0x9,o[_0x32c408(0x25e)])],B);let H=class extends Y{constructor(_0x5d471d,_0x253b65,_0x72dc2f,_0x4095ec,_0x2923b2,_0x48572f,_0x2cdc05,_0x1416e9,_0x210215,_0x327246,_0x537808,_0x2f919d,_0x42d789,_0x35f72d){const _0x31e34d=_0x32c408;super(_0x5d471d,_0x253b65,_0x72dc2f,_0x4095ec,_0x2cdc05,_0x2f919d,_0x42d789,_0x210215,_0x327246),u(this,_0x31e34d(0x3bf),'fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x2923b2,this[_0x31e34d(0x51e)]=_0x48572f,this['_injector']=_0x1416e9,this[_0x31e34d(0x505)]=_0x537808,this['_transformService']=_0x35f72d);}[_0x32c408(0x4b1)](_0x501b5c){const _0x57def0=_0x32c408;try{const _0x2634bb=[..._0x501b5c,...this[_0x57def0(0x51e)]],_0x15684e=[this[_0x57def0(0x243)]||this['_acknowledgedAwaitingChangeset']]['filter'](_0x2aa15c=>!!_0x2aa15c);let _0x2890b5,_0x223433;if(_0x15684e[_0x57def0(0x462)]){const _0x3a3303=this[_0x57def0(0x374)][_0x57def0(0x248)](_0x2634bb,_0x15684e,!0x1);if(!_[_0x57def0(0x496)](_0x3a3303))throw _0x3a3303[_0x57def0(0x36f)];_0x2890b5=_0x3a3303[_0x57def0(0x3ae)],_0x223433=_0x3a3303[_0x57def0(0x567)];}else _0x2890b5=_0x2634bb,_0x223433=[];let _0x497298=this[_0x57def0(0x335)];_0x2890b5[_0x57def0(0x241)](_0xcb872d=>{const _0x42b6d7=_0x57def0;let _0x1edd7d;if(_0x497298[_0x42b6d7(0x462)]){const _0x28f185=this[_0x42b6d7(0x374)][_0x42b6d7(0x530)](_0xcb872d,_0x497298);if(!_[_0x42b6d7(0x3f2)](_0x28f185))throw _0x28f185[_0x42b6d7(0x36f)];_0x1edd7d=_0x28f185[_0x42b6d7(0x3ae)],_0x497298=_0x28f185['m2Prime'];}else _0x1edd7d=_0xcb872d;this[_0x42b6d7(0x1f7)](_0x1edd7d);}),this['_acknowledgedAwaitingChangeset']&&this[_0x57def0(0x474)](),this[_0x57def0(0x243)]&&_0x223433[_0x57def0(0x462)]&&(_0x223433[0x0]['baseRev']=this[_0x57def0(0x36c)]());let _0x262ee6;if(this[_0x57def0(0x243)]&&_0x497298[_0x57def0(0x462)]!==0x0)_0x262ee6=this[_0x57def0(0x321)][_0x57def0(0x277)]($,this['unitID'],this['type'],_0x223433[0x0],_0x497298,this['_handler']);else{if(this[_0x57def0(0x243)]&&_0x497298[_0x57def0(0x462)]===0x0)_0x223433[0x0][_0x57def0(0x2e4)]=this[_0x57def0(0x36c)](),_0x262ee6=this[_0x57def0(0x321)][_0x57def0(0x277)](x,this[_0x57def0(0x434)],this[_0x57def0(0x430)],_0x223433[0x0],this[_0x57def0(0x47b)]);else{if(_0x497298[_0x57def0(0x462)]!==0x0){const _0x3d589a=this[_0x57def0(0x321)]['createInstance'](j,this[_0x57def0(0x434)],this[_0x57def0(0x430)],_0x497298,this['_handler']);_0x3d589a[_0x57def0(0x3bd)](),_0x262ee6=_0x3d589a;}else _0x262ee6=this[_0x57def0(0x321)][_0x57def0(0x277)](oe,this['unitID'],this['type'],this['_handler']);}}return _0x262ee6['_updateLocalCache'](),_0x262ee6;}catch(_0x10aa58){return this[_0x57def0(0x505)]['error'](_0x57def0(0x1de),'failed\x20to\x20apply\x20missed\x20changesets!',_0x10aa58),this[_0x57def0(0x321)][_0x57def0(0x277)](k,this[_0x57def0(0x434)],this['type'],this['_awaitingChangeset'],this[_0x57def0(0x335)],this[_0x57def0(0x47b)],!0x1);}}[_0x32c408(0x4c2)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x32c408(0x372)](_0x468190){const _0x10dc41=_0x32c408;return this[_0x10dc41(0x335)][_0x10dc41(0x563)](_0x468190),this;}[_0x32c408(0x4e7)](_0xec6a68){const _0x3aec5c=_0x32c408;return this[_0x3aec5c(0x51e)][_0x3aec5c(0x563)](_0xec6a68),this;}[_0x32c408(0x4c3)](_0x4e52a7){const _0x4f2489=_0x32c408;if(this[_0x4f2489(0x243)])return this[_0x4f2489(0x43f)]=this[_0x4f2489(0x243)],this[_0x4f2489(0x243)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x32c408(0x403)](_0x409769){const _0x34f8e5=_0x32c408;return this[_0x34f8e5(0x2a7)](!!(_0x409769!=null&&_0x409769[_0x34f8e5(0x2af)]));}['toggleOffline'](){const _0x4d21c0=_0x32c408;return this[_0x4d21c0(0x321)][_0x4d21c0(0x277)](B,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x4d21c0(0x335)],this[_0x4d21c0(0x47b)]);}['toggleOnline'](){return this;}[_0x32c408(0x2a7)](_0x2f4740){const _0x43351d=_0x32c408;return this['_injector'][_0x43351d(0x277)](k,this[_0x43351d(0x434)],this[_0x43351d(0x430)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x43351d(0x47b)],_0x2f4740);}};H=G([m(0x7,o[_0x32c408(0x395)](o['Injector'])),m(0x8,o['Inject'](_[_0x32c408(0x4f2)])),m(0x9,o[_0x32c408(0x395)](exports[_0x32c408(0x39f)])),m(0xa,o[_0x32c408(0x1bd)]),m(0xb,o[_0x32c408(0x4cb)]),m(0xc,o[_0x32c408(0x25e)]),m(0xd,_[_0x32c408(0x3fd)])],H);function Ct(_0x4c0a08,_0x51dc86,_0x55822e,_0xbc3bc6,_0x5e2b0c,_0x50bab9){const _0x1cc86e=_0x32c408;return _0xbc3bc6&&_0x5e2b0c[_0x1cc86e(0x462)]?_0x4c0a08[_0x1cc86e(0x277)]($,_0x51dc86,_0x55822e,_0xbc3bc6,_0x5e2b0c,_0x50bab9):_0xbc3bc6?_0x4c0a08['createInstance'](x,_0x51dc86,_0x55822e,_0xbc3bc6,_0x50bab9):_0x5e2b0c[_0x1cc86e(0x462)]?_0x4c0a08[_0x1cc86e(0x277)](j,_0x51dc86,_0x55822e,_0x5e2b0c,_0x50bab9):_0x4c0a08['createInstance'](oe,_0x51dc86,_0x55822e,_0x50bab9);}var Ds=Object['defineProperty'],Ps=Object[_0x32c408(0x4e1)],pe=(_0x39b2da,_0x2cab55,_0x2a0673,_0x5d666)=>{const _0x24e440=_0x32c408;for(var _0x397f2a=_0x5d666>0x1?void 0x0:_0x5d666?Ps(_0x2cab55,_0x2a0673):_0x2cab55,_0x586fe5=_0x39b2da[_0x24e440(0x462)]-0x1,_0x3111a6;_0x586fe5>=0x0;_0x586fe5--)(_0x3111a6=_0x39b2da[_0x586fe5])&&(_0x397f2a=(_0x5d666?_0x3111a6(_0x2cab55,_0x2a0673,_0x397f2a):_0x3111a6(_0x397f2a))||_0x397f2a);return _0x5d666&&_0x397f2a&&Ds(_0x2cab55,_0x2a0673,_0x397f2a),_0x397f2a;},I=(_0x65f654,_0x41ccb9)=>(_0x4bf60a,_0x3e9b1c)=>_0x41ccb9(_0x4bf60a,_0x3e9b1c,_0x65f654);exports[_0x32c408(0x4fc)]=class extends o['RxDisposable']{constructor(_0x5be642,_0x3f6968,_0x2a5df8){const _0x56e731=_0x32c408;super(),u(this,'_entities',new Map()),u(this,_0x56e731(0x4d9),new v[(_0x56e731(0x4f1))]()),(this[_0x56e731(0x321)]=_0x5be642,this['_collabSessionService']=_0x3f6968,this['_univerInstanceService']=_0x2a5df8,this[_0x56e731(0x55b)]());}[_0x32c408(0x4a3)](){const _0x4a66e2=_0x32c408;super[_0x4a66e2(0x4a3)](),this[_0x4a66e2(0x3d7)][_0x4a66e2(0x241)](_0x3d109f=>_0x3d109f[_0x4a66e2(0x4a3)]()),this[_0x4a66e2(0x3d7)][_0x4a66e2(0x21b)]();}[_0x32c408(0x3d6)](_0x5cb6d9){const _0xe80d84=_0x32c408;var _0x3d8eb2;return(_0x3d8eb2=this[_0xe80d84(0x3d7)][_0xe80d84(0x43e)](_0x5cb6d9))!=null?_0x3d8eb2:null;}[_0x32c408(0x1c6)](_0xe1b411){const _0x5aaa6d=_0x32c408,_0x5e3199=this[_0x5aaa6d(0x3d6)](_0xe1b411);return _0x5e3199?v['of'](_0x5e3199):this[_0x5aaa6d(0x4d9)][_0x5aaa6d(0x4f4)](C[_0x5aaa6d(0x283)](_0x34006e=>_0x34006e[_0x5aaa6d(0x434)]===_0xe1b411));}[_0x32c408(0x55b)](){const _0x13bae9=_0x32c408;this[_0x13bae9(0x46c)][_0x13bae9(0x468)](o[_0x13bae9(0x51d)]['UNIVER_SHEET'])[_0x13bae9(0x4f4)](v[_0x13bae9(0x3d9)](this[_0x13bae9(0x2b2)]),C[_0x13bae9(0x51c)](0x10))['subscribe'](async _0x1c7ef7=>{const _0x47fe5c=_0x13bae9,_0x2a065a=_0x1c7ef7['getUnitId'](),_0x45b366=await this[_0x47fe5c(0x4f0)](_0x2a065a,A[_0x47fe5c(0x2b8)]);this[_0x47fe5c(0x3d7)]['set'](_0x2a065a,_0x45b366);}),this[_0x13bae9(0x46c)][_0x13bae9(0x468)](o[_0x13bae9(0x51d)][_0x13bae9(0x4a0)])[_0x13bae9(0x4f4)](v[_0x13bae9(0x3d9)](this[_0x13bae9(0x2b2)]),C[_0x13bae9(0x51c)](0x10))[_0x13bae9(0x4f4)](C[_0x13bae9(0x283)](_0x3de37c=>!_0x3de37c['getUnitId']()[_0x13bae9(0x514)]('__')))['subscribe'](async _0x5f27b9=>{const _0x59c63a=_0x13bae9,_0x41a54d=_0x5f27b9[_0x59c63a(0x2de)](),_0x125b4e=await this[_0x59c63a(0x4f0)](_0x41a54d,A[_0x59c63a(0x4a0)]);this['_entities']['set'](_0x41a54d,_0x125b4e);}),v['merge'](this[_0x13bae9(0x46c)][_0x13bae9(0x534)](o[_0x13bae9(0x51d)][_0x13bae9(0x2b8)]),this['_univerInstanceService'][_0x13bae9(0x534)](o[_0x13bae9(0x51d)][_0x13bae9(0x4a0)]))[_0x13bae9(0x4f4)](v['takeUntil'](this[_0x13bae9(0x2b2)]))['subscribe'](_0x19bb8d=>{const _0x4c031e=_0x13bae9,_0x1e6d77=_0x19bb8d['getUnitId'](),_0x3548f3=this[_0x4c031e(0x3d7)][_0x4c031e(0x43e)](_0x1e6d77);_0x3548f3&&(_0x3548f3[_0x4c031e(0x4a3)](),this[_0x4c031e(0x3d7)][_0x4c031e(0x3da)](_0x1e6d77));});}async['_startCollaboration'](_0x22a184,_0x4ff845){const _0x4ae608=_0x32c408,_0x5e6968=await this[_0x4ae608(0x1bb)]['requireSession'](_0x22a184),_0x48c979=this[_0x4ae608(0x321)][_0x4ae608(0x277)](this[_0x4ae608(0x3c6)](_0x4ff845),_0x22a184,_0x4ff845,_0x5e6968);return await _0x48c979[_0x4ae608(0x38f)](),this['_entityInit$'][_0x4ae608(0x226)](_0x48c979),_0x48c979;}['_getCtorByUniverType'](_0x114b27){const _0x1b32b9=_0x32c408;switch(_0x114b27){case A['UNIVER_DOC']:return Me;case A[_0x1b32b9(0x2b8)]:return exports['SheetCollaborationEntity'];default:throw new Error(_0x1b32b9(0x262)+_0x114b27);}}},exports[_0x32c408(0x4fc)]=pe([o[_0x32c408(0x540)](o[_0x32c408(0x2b6)][_0x32c408(0x380)],exports['CollaborationController']),I(0x0,o[_0x32c408(0x395)](o[_0x32c408(0x337)])),I(0x1,o[_0x32c408(0x395)](exports[_0x32c408(0x4e3)])),I(0x2,o['IUniverInstanceService'])],exports['CollaborationController']);let ge=class extends o[_0x32c408(0x476)]{constructor(_0x14ae0f,_0x485b8,_0x591805,_0x22b8fd,_0x5046cd,_0x44cdcd,_0x530214,_0x2aea51,_0x276391,_0x9229a8,_0x39980f,_0x6fcce4,_0x32e3e7){const _0x44f35c=_0x32c408;super(),u(this,'_state$',new v[(_0x44f35c(0x2db))](null)),u(this,_0x44f35c(0x575),this[_0x44f35c(0x524)]['asObservable']()),u(this,'_state'),u(this,'_collaborationPaused',!0x1),u(this,_0x44f35c(0x2c5),this[_0x44f35c(0x575)][_0x44f35c(0x4f4)](C[_0x44f35c(0x42d)](_0x537a76=>_0x537a76?_0x537a76[_0x44f35c(0x3bf)]:D[_0x44f35c(0x553)]),C[_0x44f35c(0x2e5)](0x1))),u(this,_0x44f35c(0x203),!0x1),u(this,_0x44f35c(0x252),[]),(this[_0x44f35c(0x434)]=_0x14ae0f,this[_0x44f35c(0x442)]=_0x485b8,this[_0x44f35c(0x1b8)]=_0x591805,this[_0x44f35c(0x321)]=_0x22b8fd,this[_0x44f35c(0x51f)]=_0x5046cd,this[_0x44f35c(0x3e0)]=_0x44cdcd,this[_0x44f35c(0x299)]=_0x530214,this[_0x44f35c(0x441)]=_0x2aea51,this[_0x44f35c(0x505)]=_0x276391,this[_0x44f35c(0x363)]=_0x9229a8,this[_0x44f35c(0x35d)]=_0x39980f,this[_0x44f35c(0x280)]=_0x6fcce4,this[_0x44f35c(0x45f)]=_0x32e3e7);}get['state'](){const _0xb08ceb=_0x32c408;return this[_0xb08ceb(0x362)];}async[_0x32c408(0x38f)](){const _0x1ab4fe=_0x32c408;if(this['state'])throw new Error(_0x1ab4fe(0x41b));await this[_0x1ab4fe(0x55b)]();}['pauseCollaboration'](){const _0x5c22ed=_0x32c408;return this[_0x5c22ed(0x1f2)]=!0x0,o['toDisposable'](()=>{const _0xec04af=_0x5c22ed;this[_0xec04af(0x1f2)]=!0x1,this[_0xec04af(0x2ac)]();});}[_0x32c408(0x340)](_0x8a2e7d){const _0x41696a=_0x32c408;this['_state']=_0x8a2e7d,this['_state$'][_0x41696a(0x226)](_0x8a2e7d);}async[_0x32c408(0x55b)](){const _0x13c900=_0x32c408;var _0x5a0efc;return this[_0x13c900(0x340)](await this['_createInitialState']()),this[_0x13c900(0x45f)]&&((_0x5a0efc=this[_0x13c900(0x45f)])==null||_0x5a0efc['editingUnit'](this[_0x13c900(0x434)]),this[_0x13c900(0x45d)](o[_0x13c900(0x4e4)](this[_0x13c900(0x45f)][_0x13c900(0x581)](this['unitID'])[_0x13c900(0x408)](_0x14d14b=>{const _0xaf8688=_0x13c900;this[_0xaf8688(0x505)][_0xaf8688(0x2fb)]('[CollaborationEntity]',_0xaf8688(0x231),_0x14d14b),_0x14d14b===pt[_0xaf8688(0x3a0)]?(this[_0xaf8688(0x35d)]['show']({'content':this['_localeService']['t'](_0xaf8688(0x1e7)),'type':z['MessageType'][_0xaf8688(0x25d)]}),this[_0xaf8688(0x280)]['updatePermissionPoint'](new p[(_0xaf8688(0x45b))](this[_0xaf8688(0x434)])['id'],!0x1)):this['_permissionService'][_0xaf8688(0x1ba)](new p[(_0xaf8688(0x45b))](this['unitID'])['id'],!0x0);})))),this['disposeWithMe'](o[_0x13c900(0x4e4)](this[_0x13c900(0x1b8)][_0x13c900(0x413)]['subscribe'](_0x1e15cb=>{const _0x4996ed=_0x13c900;_0x1e15cb===V[_0x4996ed(0x1d8)]?this[_0x4996ed(0x29a)]():_0x1e15cb===V[_0x4996ed(0x553)]&&this['_toggleOffline']();}))),this['disposeWithMe'](o[_0x13c900(0x4e4)](this[_0x13c900(0x1b8)][_0x13c900(0x4ce)]['subscribe'](_0x316ba5=>{const _0x2ef1d5=_0x13c900;try{switch(_0x316ba5['eventID']){case _[_0x2ef1d5(0x1d6)][_0x2ef1d5(0x21c)]:{this[_0x2ef1d5(0x201)](_[_0x2ef1d5(0x423)](_0x316ba5[_0x2ef1d5(0x520)]));break;}case _[_0x2ef1d5(0x1d6)]['CHANGESET_ACK']:{this[_0x2ef1d5(0x2e9)](_0x316ba5['data']);break;}case _[_0x2ef1d5(0x1d6)][_0x2ef1d5(0x28c)]:{this[_0x2ef1d5(0x354)]();break;}case _[_0x2ef1d5(0x1d6)][_0x2ef1d5(0x41d)]:{this[_0x2ef1d5(0x4cf)](_0x316ba5[_0x2ef1d5(0x520)][_0x2ef1d5(0x25a)][_0x2ef1d5(0x42d)](_0x5afe62=>_[_0x2ef1d5(0x423)](_0x5afe62)));break;}case _['CollaborationEvent'][_0x2ef1d5(0x46b)]:this[_0x2ef1d5(0x354)]({'isPermissionRej':!0x0});}}catch(_0x14fb43){throw console[_0x2ef1d5(0x36f)](_0x2ef1d5(0x464),_0x14fb43),_0x14fb43;}}))),this[_0x13c900(0x362)];}['_unlockTransition'](){const _0x3822cf=_0x32c408;this[_0x3822cf(0x203)]=!0x1;}[_0x32c408(0x410)](){const _0x125393=_0x32c408;if(this[_0x125393(0x203)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this['_transitionLocked']=!0x0;}[_0x32c408(0x56b)](_0x4af6e5){const _0x4452da=_0x32c408;this[_0x4452da(0x410)](),this['_updateState'](this['_state']['appendMutation'](_0x4af6e5)),this[_0x4452da(0x21d)]();}[_0x32c408(0x201)](_0x53a2ee){const _0x3c0a1a=_0x32c408;if(!(_0x53a2ee[_0x3c0a1a(0x392)]<=this[_0x3c0a1a(0x441)]['getCurrentRevForDocument'](this[_0x3c0a1a(0x434)]))){if(this[_0x3c0a1a(0x1f2)]){this[_0x3c0a1a(0x252)][_0x3c0a1a(0x563)](_0x53a2ee);return;}this[_0x3c0a1a(0x43d)](_0x53a2ee);}}[_0x32c408(0x2ac)](){const _0x1cdf05=_0x32c408;this['_remoteChangesetQueue']['forEach'](_0x31ccf5=>this['_applyRemoteChangeset'](_0x31ccf5)),this[_0x1cdf05(0x252)]=[];}[_0x32c408(0x43d)](_0x3f9727){const _0x5b15a3=_0x32c408,_0x53b08e=this[_0x5b15a3(0x3e0)][_0x5b15a3(0x1eb)][_0x5b15a3(0x4df)](this[_0x5b15a3(0x3e0)]['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x3f9727[_0x5b15a3(0x560)],null)||_0x3f9727[_0x5b15a3(0x560)],_0x2e3dc3={..._0x3f9727,'mutations':_0x53b08e};this[_0x5b15a3(0x410)](),this['_updateState'](this[_0x5b15a3(0x362)][_0x5b15a3(0x4e7)](_0x2e3dc3)),this[_0x5b15a3(0x21d)]();}[_0x32c408(0x2e9)](_0x10f028){const _0x33bdf8=_0x32c408;this[_0x33bdf8(0x410)](),this[_0x33bdf8(0x340)](this[_0x33bdf8(0x362)][_0x33bdf8(0x4c3)](_0x10f028)),this['_unlockTransition']();}[_0x32c408(0x354)](_0x4bfd36){const _0x5eef4a=_0x32c408;this[_0x5eef4a(0x410)](),this['_updateState'](this[_0x5eef4a(0x362)][_0x5eef4a(0x403)](_0x4bfd36)),this[_0x5eef4a(0x21d)]();}['_onFetchMissResult'](_0x1cb8c7){const _0x3773c9=_0x32c408;if(!(this[_0x3773c9(0x362)]instanceof H))throw new TypeError(_0x3773c9(0x4b5));const _0x22db83=_0x1cb8c7['map'](_0x2ec499=>{const _0x2415c8=_0x3773c9,_0x19851f=this[_0x2415c8(0x3e0)]['interceptor']['fetchThroughInterceptors'](this['_compressMutationService'][_0x2415c8(0x1eb)][_0x2415c8(0x466)]()['COMPRESS_MUTATION_APPLY'])(_0x2ec499['mutations'],null)||_0x2ec499[_0x2415c8(0x560)];return{..._0x2ec499,'mutations':_0x19851f};});this[_0x3773c9(0x410)](),this[_0x3773c9(0x340)](this[_0x3773c9(0x362)]['onMissedChangesetFetched'](_0x22db83)),this[_0x3773c9(0x21d)]();}['_toggleOffline'](){const _0x1d8384=_0x32c408;this[_0x1d8384(0x410)](),this[_0x1d8384(0x340)](this[_0x1d8384(0x362)][_0x1d8384(0x456)]()),this[_0x1d8384(0x21d)]();}[_0x32c408(0x29a)](){const _0x354044=_0x32c408;this['_lockTransition'](),this[_0x354044(0x340)](this[_0x354044(0x362)][_0x354044(0x38e)]()),this[_0x354044(0x21d)]();}async[_0x32c408(0x4c6)](){return new Promise(_0x4e602e=>{const _0x44ca6d=_0x453d;this[_0x44ca6d(0x1b8)][_0x44ca6d(0x413)][_0x44ca6d(0x4f4)](C['take'](0x1))['subscribe'](async _0x2f0519=>{const _0x432541=_0x44ca6d;_0x4e602e(await this[_0x432541(0x29f)](_0x2f0519===V[_0x432541(0x1d8)]));});});}[_0x32c408(0x1e9)](){const _0x4ebc5f=_0x32c408,_0xc034fa=this[_0x4ebc5f(0x434)];return{'onStateChange':(_0x5bbf72,_0x568eef)=>{const _0x48329a=_0x4ebc5f;if(_0x5bbf72!==this[_0x48329a(0x362)])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x5bbf72[_0x48329a(0x3bf)]+_0x48329a(0x1f8)+_0x568eef[_0x48329a(0x3bf)]+_0x48329a(0x50e)+this[_0x48329a(0x362)][_0x48329a(0x3bf)]);this['_updateState'](_0x568eef);},'onSendChangeset':_0x34049c=>{const _0x3e74f9=_0x4ebc5f,_0x537aff={'eventID':_[_0x3e74f9(0x1d6)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x34049c[_0x3e74f9(0x434)],'unitType':this[_0x3e74f9(0x442)],'changeset':_0x34049c,'memberID':this[_0x3e74f9(0x1b8)]['getMemberID']()}};this[_0x3e74f9(0x1b8)][_0x3e74f9(0x493)](_0x537aff,this[_0x3e74f9(0x434)]);},'onMissingChangesets':({from:_0x1c8f0d,to:_0x25bd8a})=>{const _0x21f851=_0x4ebc5f;this[_0x21f851(0x505)][_0x21f851(0x2fb)](_0x21f851(0x2c0),_0x21f851(0x3fc)+_0x1c8f0d+'\x20to\x20'+_0x25bd8a);const _0x2689b5={'eventID':_[_0x21f851(0x1d6)][_0x21f851(0x508)],'data':{'unitID':_0xc034fa,'unitType':this[_0x21f851(0x442)],'from':_0x1c8f0d,'to':_0x25bd8a}};this[_0x21f851(0x1b8)][_0x21f851(0x493)](_0x2689b5,this[_0x21f851(0x434)]);}};}async['_createInitialStateImpl'](_0x3e2be4){const _0x3ae5b0=_0x32c408;var _0x10423e,_0x109caf;const _0x4c1c3a=await this[_0x3ae5b0(0x51f)][_0x3ae5b0(0x214)](this[_0x3ae5b0(0x434)]),_0x58bbaf=(_0x10423e=_0x4c1c3a==null?void 0x0:_0x4c1c3a[_0x3ae5b0(0x560)])!=null?_0x10423e:[],_0x260433=(_0x109caf=_0x4c1c3a==null?void 0x0:_0x4c1c3a['awaitingChangeset'])!=null?_0x109caf:null,_0x59c978=this[_0x3ae5b0(0x434)];try{this['_replayCachedMutations'](_0x260433,_0x58bbaf);}catch(_0x37a155){this[_0x3ae5b0(0x505)]['error'](_0x37a155);}const _0x55d1cb=this[_0x3ae5b0(0x1e9)]();if(_0x3e2be4){const _0x158820=Ct(this[_0x3ae5b0(0x321)],_0x59c978,this[_0x3ae5b0(0x442)],_0x260433,_0x58bbaf,_0x55d1cb);return _0x158820 instanceof j?_0x158820[_0x3ae5b0(0x3bd)]():(_0x158820 instanceof $||_0x158820 instanceof x)&&_0x158820['resend'](),_0x158820;}return this[_0x3ae5b0(0x321)][_0x3ae5b0(0x277)](B,_0x59c978,this[_0x3ae5b0(0x442)],_0x260433,_0x58bbaf,_0x55d1cb);}['_replayCachedMutations'](_0x48f6ca,_0x1cc6eb){const _0x4e1c40=_0x32c408;var _0x50aeb4,_0x3bc8cc;const _0x244f96=this[_0x4e1c40(0x3e0)]['interceptor'][_0x4e1c40(0x4df)](this['_compressMutationService'][_0x4e1c40(0x1eb)][_0x4e1c40(0x466)]()[_0x4e1c40(0x2b5)]);(_0x50aeb4=_0x244f96((_0x48f6ca==null?void 0x0:_0x48f6ca[_0x4e1c40(0x560)])||[],null))==null||_0x50aeb4['forEach'](_0x184c9f=>this['_commandService']['executeCommand'](_0x184c9f['id'],_0x184c9f['params'])),(_0x3bc8cc=_0x244f96(_0x1cc6eb||[],null))==null||_0x3bc8cc[_0x4e1c40(0x241)](_0x4c03b5=>this[_0x4e1c40(0x363)][_0x4e1c40(0x1ed)](_0x4c03b5['id'],_0x4c03b5[_0x4e1c40(0x4e6)]));}};ge=pe([I(0x3,o['Inject'](o[_0x32c408(0x337)])),I(0x4,o[_0x32c408(0x395)](exports[_0x32c408(0x39f)])),I(0x5,o[_0x32c408(0x395)](_[_0x32c408(0x22b)])),I(0x6,o[_0x32c408(0x395)](o[_0x32c408(0x4f9)])),I(0x7,o[_0x32c408(0x395)](_[_0x32c408(0x4f2)])),I(0x8,o[_0x32c408(0x1bd)]),I(0x9,o[_0x32c408(0x4cb)]),I(0xa,L['IMessageService']),I(0xb,o[_0x32c408(0x3ed)]),I(0xc,o[_0x32c408(0x212)](Ie))],ge);let Me=class extends ge{constructor(_0x27bf5f,_0x51b388,_0x1a6a06,_0x5bbeaa,_0x47e976,_0x35e9e9,_0x8c0dcc,_0x4b8b20,_0x286d1a,_0x1aeae7,_0x440ef7,_0x3953b7,_0x2e4e1c,_0x125d23,_0x494f2c,_0x55f1ad,_0x56cc5c){const _0xd29126=_0x32c408;super(_0x27bf5f,_0x51b388,_0x1a6a06,_0x5bbeaa,_0x47e976,_0x35e9e9,_0x8c0dcc,_0x4b8b20,_0x2e4e1c,_0x125d23,_0x494f2c,_0x55f1ad,_0x56cc5c),this['unitID']=_0x27bf5f,this[_0xd29126(0x430)]=_0x51b388,this['session']=_0x1a6a06,this['_docStateChangeManagerService']=_0x286d1a,this[_0xd29126(0x53b)]=_0x1aeae7,this['_docTransformSelectionsService']=_0x440ef7,this[_0xd29126(0x1d7)]=_0x3953b7;}['_createHandler'](){const _0x5c9ae4=_0x32c408,_0x3ca125=super[_0x5c9ae4(0x1e9)]();return _0x3ca125['onTransformIME']=_0x4b0c56=>this[_0x5c9ae4(0x53b)][_0x5c9ae4(0x453)](_0x4b0c56),_0x3ca125[_0x5c9ae4(0x42f)]=_0x294fd8=>this[_0x5c9ae4(0x3f5)][_0x5c9ae4(0x254)](_0x294fd8),_0x3ca125[_0x5c9ae4(0x4ca)]=_0x17a94a=>this[_0x5c9ae4(0x1d7)]['syncEditingCollabCursor'](_0x17a94a),_0x3ca125[_0x5c9ae4(0x229)]=_0x2ac6de=>this[_0x5c9ae4(0x53b)][_0x5c9ae4(0x452)](_0x2ac6de),_0x3ca125;}async[_0x32c408(0x55b)](){const _0x325eca=_0x32c408,_0x1cf1dd=await super[_0x325eca(0x55b)]();return this[_0x325eca(0x45d)](this['_commandService']['onCommandExecuted']((_0x59d024,_0x2383dd)=>{const _0x26ab08=_0x325eca;if(_0x59d024[_0x26ab08(0x430)]!==o['CommandType']['MUTATION']||_0x2383dd!=null&&_0x2383dd[_0x26ab08(0x356)]||_0x2383dd!=null&&_0x2383dd[_0x26ab08(0x4a4)])return;const _0x3a77d6=_0x59d024[_0x26ab08(0x4e6)];if((_0x3a77d6==null?void 0x0:_0x3a77d6[_0x26ab08(0x349)])!==this[_0x26ab08(0x434)])return;let _0x27fc59=_0x59d024;if(_0x27fc59['id']===U[_0x26ab08(0x47a)]['id']){const _0x289c96=_0x27fc59['params'];_0x27fc59={'id':U['RichTextEditingMutation']['id'],'type':o[_0x26ab08(0x55a)][_0x26ab08(0x42a)],'params':{'unitId':_0x289c96[_0x26ab08(0x349)],'actions':_0x289c96[_0x26ab08(0x213)],'textRanges':null}};}const _0x1a3ffb=this[_0x26ab08(0x3e0)][_0x26ab08(0x1eb)][_0x26ab08(0x4df)](this[_0x26ab08(0x3e0)][_0x26ab08(0x1eb)][_0x26ab08(0x466)]()[_0x26ab08(0x1d4)])([_0x27fc59],null)||[_0x27fc59];this[_0x26ab08(0x56b)](_0x1a3ffb[0x0]);})),_0x1cf1dd;}};Me=pe([I(0x3,o[_0x32c408(0x395)](o[_0x32c408(0x337)])),I(0x4,o[_0x32c408(0x395)](exports[_0x32c408(0x39f)])),I(0x5,o['Inject'](_[_0x32c408(0x22b)])),I(0x6,o['Inject'](o[_0x32c408(0x4f9)])),I(0x7,o[_0x32c408(0x395)](_[_0x32c408(0x4f2)])),I(0x8,o[_0x32c408(0x395)](U[_0x32c408(0x1c7)])),I(0x9,o[_0x32c408(0x395)](Se)),I(0xa,o[_0x32c408(0x395)](ve)),I(0xb,o[_0x32c408(0x395)](Fe)),I(0xc,o['ILogService']),I(0xd,o[_0x32c408(0x4cb)]),I(0xe,L['IMessageService']),I(0xf,o['IPermissionService']),I(0x10,o[_0x32c408(0x212)](Ie))],Me),exports[_0x32c408(0x3a8)]=class extends ge{constructor(_0x327b4a,_0x33314c,_0x21d536,_0x95e2c,_0x4e4bd6,_0x46c3af,_0x5514e6,_0x278fd1,_0x3f01d0,_0x5a1281,_0x38372b,_0x1c56e2,_0xffddd8,_0x4f8059){const _0x2c476b=_0x32c408;super(_0x327b4a,_0x33314c,_0x21d536,_0x95e2c,_0x4e4bd6,_0x46c3af,_0x5514e6,_0x278fd1,_0x5a1281,_0x38372b,_0x1c56e2,_0xffddd8,_0x4f8059),this[_0x2c476b(0x434)]=_0x327b4a,this['type']=_0x33314c,this[_0x2c476b(0x3e9)]=_0x21d536,this[_0x2c476b(0x473)]=_0x3f01d0;}[_0x32c408(0x1e9)](){const _0x4f11fa=_0x32c408,_0x8e5531=super[_0x4f11fa(0x1e9)]();return _0x8e5531[_0x4f11fa(0x42f)]=_0x2107a2=>this[_0x4f11fa(0x473)][_0x4f11fa(0x254)](_0x2107a2),_0x8e5531;}async[_0x32c408(0x55b)](){const _0x33ca80=_0x32c408,_0x3c18bb=await super['_init']();return this[_0x33ca80(0x45d)](this['_commandService'][_0x33ca80(0x463)]((_0x343980,_0xdcd4e8)=>{const _0x2dd64a=_0x33ca80;if(_0x343980['type']!==o[_0x2dd64a(0x55a)][_0x2dd64a(0x42a)]||_0xdcd4e8!=null&&_0xdcd4e8[_0x2dd64a(0x356)]||_0xdcd4e8!=null&&_0xdcd4e8[_0x2dd64a(0x4a4)])return;const _0x13eae1=_0x343980[_0x2dd64a(0x4e6)];if((_0x13eae1==null?void 0x0:_0x13eae1[_0x2dd64a(0x349)])!==this['unitID'])return;const _0x58a4b1=_0x343980,_0x3b4f2d=this[_0x2dd64a(0x3e0)]['interceptor'][_0x2dd64a(0x4df)](this['_compressMutationService'][_0x2dd64a(0x1eb)][_0x2dd64a(0x466)]()[_0x2dd64a(0x1d4)])([_0x58a4b1],null)||[_0x58a4b1];this['_onLocalMutation'](_0x3b4f2d[0x0]);})),_0x3c18bb;}},exports[_0x32c408(0x3a8)]=pe([I(0x3,o[_0x32c408(0x395)](o[_0x32c408(0x337)])),I(0x4,o[_0x32c408(0x395)](exports[_0x32c408(0x39f)])),I(0x5,o['Inject'](_[_0x32c408(0x22b)])),I(0x6,o[_0x32c408(0x395)](o[_0x32c408(0x4f9)])),I(0x7,o['Inject'](_[_0x32c408(0x4f2)])),I(0x8,o[_0x32c408(0x395)](me)),I(0x9,o[_0x32c408(0x1bd)]),I(0xa,o[_0x32c408(0x4cb)]),I(0xb,L[_0x32c408(0x495)]),I(0xc,o[_0x32c408(0x3ed)]),I(0xd,o[_0x32c408(0x212)](Ie))],exports[_0x32c408(0x3a8)]);const tt=[_0x32c408(0x2d0),_0x32c408(0x460),_0x32c408(0x35b),'red300',_0x32c408(0x31f),_0x32c408(0x573)];class Ve extends o[_0x32c408(0x503)]{constructor(){const _0x1e11d4=_0x32c408;super(...arguments),u(this,'_assignedColors',new Map()),u(this,_0x1e11d4(0x23b),0x0);}[_0x32c408(0x338)](_0x285f79){const _0x3fb734=_0x32c408;if(this[_0x3fb734(0x1fd)][_0x3fb734(0x432)](_0x285f79))return this['_assignedColors']['get'](_0x285f79);const _0x3df3db=tt[this[_0x3fb734(0x23b)]];return this[_0x3fb734(0x23b)]=(this[_0x3fb734(0x23b)]+0x1)%tt[_0x3fb734(0x462)],this[_0x3fb734(0x1fd)]['set'](_0x285f79,_0x3df3db),_0x3df3db;}}var Us=Object[_0x32c408(0x539)],ys=Object[_0x32c408(0x4e1)],ws=(_0x1bdced,_0x3f974f,_0x2c2440,_0x368f84)=>{const _0x320a9f=_0x32c408;for(var _0x3eb0f3=_0x368f84>0x1?void 0x0:_0x368f84?ys(_0x3f974f,_0x2c2440):_0x3f974f,_0x5e1c6d=_0x1bdced[_0x320a9f(0x462)]-0x1,_0x2398f7;_0x5e1c6d>=0x0;_0x5e1c6d--)(_0x2398f7=_0x1bdced[_0x5e1c6d])&&(_0x3eb0f3=(_0x368f84?_0x2398f7(_0x3f974f,_0x2c2440,_0x3eb0f3):_0x2398f7(_0x3eb0f3))||_0x3eb0f3);return _0x368f84&&_0x3eb0f3&&Us(_0x3f974f,_0x2c2440,_0x3eb0f3),_0x3eb0f3;},K=(_0x1b2128,_0x34a2a9)=>(_0x3e1802,_0x11f340)=>_0x34a2a9(_0x3e1802,_0x11f340,_0x1b2128);const Ms=0x12c,Ls=0x64,Ns=()=>{let _0x23ab71=[],_0x4c5667=!0x1;return _0x313bb3=>{const _0x4cd357=_0x453d;_0x23ab71[_0x4cd357(0x563)](_0x313bb3),_0x4c5667||(_0x4c5667=!0x0,setTimeout(()=>{const _0x484326=_0x4cd357;_0x23ab71[_0x484326(0x241)](_0x463683=>_0x463683()),_0x23ab71=[],_0x4c5667=!0x1;}));};};let Le=class extends o[_0x32c408(0x476)]{constructor(_0x570ff7,_0x1c5fbf,_0x4955c5,_0x19b128,_0x1e470b,_0x266d61,_0x490b61,_0x3169c7){const _0x6a96fd=_0x32c408;super(),u(this,_0x6a96fd(0x30e),!0x1),u(this,_0x6a96fd(0x55b),!0x1),u(this,'_cursorInfo$',new v[(_0x6a96fd(0x2db))](new Map())),u(this,_0x6a96fd(0x353),this[_0x6a96fd(0x211)]['asObservable']()),u(this,_0x6a96fd(0x487),new v[(_0x6a96fd(0x2db))]([])),u(this,'roomMembers$',this['_roomMembers$'][_0x6a96fd(0x4f4)](v['debounceTime'](Ms))),u(this,_0x6a96fd(0x4d3),$e((_0x3eb7ad,_0x42fdd2)=>{const _0x773ecb=_0x6a96fd,_0xeff882={'eventID':_[_0x773ecb(0x1d6)][_0x773ecb(0x1dc)],'data':{'unitID':this[_0x773ecb(0x434)],'memberID':this[_0x773ecb(0x1b8)]['getMemberID'](),'selection':Ye[_0x773ecb(0x2a2)](_0x3eb7ad,_0x42fdd2[_0x773ecb(0x559)])}};this[_0x773ecb(0x1b8)][_0x773ecb(0x493)](_0xeff882,this[_0x773ecb(0x434)]);},Ls)),(this[_0x6a96fd(0x434)]=_0x570ff7,this[_0x6a96fd(0x1b8)]=_0x1c5fbf,this['_injector']=_0x4955c5,this[_0x6a96fd(0x2c7)]=_0x19b128,this[_0x6a96fd(0x47f)]=_0x1e470b,this[_0x6a96fd(0x46c)]=_0x266d61,this[_0x6a96fd(0x363)]=_0x490b61,this[_0x6a96fd(0x515)]=_0x3169c7);}get[_0x32c408(0x4fd)](){const _0x105552=_0x32c408;return this[_0x105552(0x211)]['getValue']();}get[_0x32c408(0x27d)](){const _0x5dc019=_0x32c408;return this[_0x5dc019(0x487)]['getValue']();}[_0x32c408(0x4a3)](){const _0x3e45e2=_0x32c408;super[_0x3e45e2(0x4a3)](),this[_0x3e45e2(0x211)][_0x3e45e2(0x226)](new Map()),this[_0x3e45e2(0x211)]['complete'](),this[_0x3e45e2(0x487)][_0x3e45e2(0x226)]([]),this['_roomMembers$'][_0x3e45e2(0x29b)]();}['init'](){const _0x3c1553=_0x32c408;this[_0x3c1553(0x55b)]||(this[_0x3c1553(0x55b)]=!0x0,this[_0x3c1553(0x1b8)][_0x3c1553(0x413)][_0x3c1553(0x4f4)](v['takeUntil'](this[_0x3c1553(0x2b2)]))[_0x3c1553(0x408)](_0x4a0699=>{const _0xb378dc=_0x3c1553;_0x4a0699===V[_0xb378dc(0x1d8)]?this[_0xb378dc(0x29a)]():this[_0xb378dc(0x551)]();}),this[_0x3c1553(0x1b8)][_0x3c1553(0x4ce)]['pipe'](v['takeUntil'](this[_0x3c1553(0x2b2)]))[_0x3c1553(0x408)](_0x5bd3e1=>{const _0x52befb=_0x3c1553,_0x43a5cb=_0x5bd3e1['eventID'];_0x43a5cb===_['CollaborationEvent'][_0x52befb(0x1dc)]&&this[_0x52befb(0x428)](_0x5bd3e1),_0x43a5cb===_[_0x52befb(0x1d6)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x5bd3e1);}),this[_0x3c1553(0x1ef)](),this[_0x3c1553(0x45d)](this[_0x3c1553(0x363)]['onCommandExecuted'](_0x9f1413=>{const _0xdb253f=_0x3c1553;if(this[_0xdb253f(0x30e)]&&_0x9f1413['id']===p[_0xdb253f(0x1e6)]['id']&&_0x9f1413[_0xdb253f(0x4e6)][_0xdb253f(0x349)]===this[_0xdb253f(0x434)]){const _0x10d003=_0x9f1413[_0xdb253f(0x4e6)];this[_0xdb253f(0x4d3)](_0x10d003[_0xdb253f(0x39a)],_0x10d003[_0xdb253f(0x3c3)][0x0]);}})));}[_0x32c408(0x428)](_0xc6700a){const _0x5f43f5=_0x32c408;var _0x80489c,_0x3c49f6;const {memberID:_0x5bf14b,selection:_0x536ea1}=_0xc6700a[_0x5f43f5(0x520)],{sheetName:_0x18a735,range:_0x5dad0c}=Ye[_0x5f43f5(0x246)](_0x536ea1),_0x3004af={'name':(_0x3c49f6=(_0x80489c=this[_0x5f43f5(0x47f)][_0x5f43f5(0x518)](this[_0x5f43f5(0x434)],_0x5bf14b))==null?void 0x0:_0x80489c['name'])!=null?_0x3c49f6:_0x5f43f5(0x376),'range':this[_0x5f43f5(0x324)](_0x18a735,_0x5dad0c),'sheetID':_0x18a735,'color':this['_colorAssignService'][_0x5f43f5(0x338)](_0x5bf14b),'selection':_0x536ea1},_0x201c39=this[_0x5f43f5(0x4fd)];_0x201c39['set'](_0x5bf14b,_0x3004af),this['_cursorInfo$']['next'](_0x201c39);}[_0x32c408(0x2c1)](_0x3561d6){const _0x1118fa=_0x32c408,{memberID:_0x3d971e}=_0x3561d6[_0x1118fa(0x520)],_0x557469=this[_0x1118fa(0x4fd)];_0x557469[_0x1118fa(0x3da)](_0x3d971e),this['_cursorInfo$'][_0x1118fa(0x226)](_0x557469);}[_0x32c408(0x324)](_0x3b4822,_0x597186){const _0x31a8ef=_0x32c408;var _0x430e1a,_0x1f9614;const _0x6ad595=(_0x1f9614=(_0x430e1a=this[_0x31a8ef(0x46c)]['getUniverSheetInstance'](this[_0x31a8ef(0x434)]))==null?void 0x0:_0x430e1a[_0x31a8ef(0x526)](_0x3b4822))==null?void 0x0:_0x1f9614[_0x31a8ef(0x30c)]();return(_0x6ad595==null?void 0x0:_0x6ad595[_0x31a8ef(0x375)](_0x922f6e=>o[_0x31a8ef(0x344)]['contains'](_0x922f6e,_0x597186)))||_0x597186;}['_onRefRangeChange'](){const _0x36da77=_0x32c408,_0x4830fe=new o[(_0x36da77(0x405))](),_0x36bf40=Ns(),_0x28e639=()=>{const _0x3546d3=_0x36da77;_0x4830fe[_0x3546d3(0x4a3)]();const _0x4ad693=(_0x3fc3ac,_0x255c15,_0x101958,_0xae6d0c)=>{const _0x2e2796=_0x3546d3;let _0x4751f9=[];switch(_0x3fc3ac['id']){case p[_0x2e2796(0x48d)]['DeleteRangeMoveLeftCommandId']:{_0x4751f9=p[_0x2e2796(0x52e)](_0x3fc3ac,_0xae6d0c);break;}case p['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x4751f9=p[_0x2e2796(0x323)](_0x3fc3ac,_0xae6d0c);break;}case p[_0x2e2796(0x48d)][_0x2e2796(0x437)]:{_0x4751f9=p['handleInsertCol'](_0x3fc3ac,_0xae6d0c);break;}case p[_0x2e2796(0x48d)][_0x2e2796(0x34c)]:{_0x4751f9=p['handleInsertRangeMoveDown'](_0x3fc3ac,_0xae6d0c);break;}case p[_0x2e2796(0x48d)]['InsertRangeMoveRightCommandId']:{_0x4751f9=p[_0x2e2796(0x23c)](_0x3fc3ac,_0xae6d0c);break;}case p['EffectRefRangId']['InsertRowCommandId']:{_0x4751f9=p[_0x2e2796(0x31a)](_0x3fc3ac,_0xae6d0c);break;}case p[_0x2e2796(0x48d)]['MoveRangeCommandId']:{_0x4751f9=p['handleMoveRange'](_0x3fc3ac,_0xae6d0c);break;}case p[_0x2e2796(0x48d)][_0x2e2796(0x2f3)]:{_0x4751f9=p[_0x2e2796(0x31d)](_0x3fc3ac,_0xae6d0c);break;}case p[_0x2e2796(0x48d)]['RemoveRowCommandId']:{_0x4751f9=p[_0x2e2796(0x4eb)](_0x3fc3ac,_0xae6d0c);break;}}const _0x1c781f=p['runRefRangeMutations'](_0x4751f9,_0xae6d0c),_0x15aac4=this[_0x2e2796(0x4fd)]['get'](_0x255c15);if(_0x15aac4&&_0x1c781f){const _0x45ddd3={..._0x15aac4,'range':_0x1c781f};this['cursorInfo'][_0x2e2796(0x33b)](_0x255c15,_0x45ddd3),_0x36bf40(()=>{const _0x10282f=_0x2e2796,_0x2b8177=this[_0x10282f(0x515)]['registerRefRange'](_0x1c781f,_0x2647f9=>(_0x2b8177['dispose'](),_0x4ad693(_0x2647f9,_0x255c15,_0x101958,_0x1c781f)));_0x4830fe[_0x10282f(0x329)](_0x2b8177);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x3546d3(0x241)]((_0x5573cd,_0x13c1a7)=>{const _0x27b1ef=_0x3546d3,{range:_0x4a7ef2,sheetID:_0x2a90a6}=_0x5573cd,_0x41f6fe=this[_0x27b1ef(0x515)]['registerRefRange'](_0x4a7ef2,_0x367157=>(_0x41f6fe[_0x27b1ef(0x4a3)](),_0x4ad693(_0x367157,_0x13c1a7,_0x2a90a6,_0x4a7ef2)));_0x4830fe[_0x27b1ef(0x329)](_0x41f6fe);});};this[_0x36da77(0x45d)](o[_0x36da77(0x4e4)](this[_0x36da77(0x211)]['subscribe'](()=>{_0x28e639();})));}['_toggleOnline'](){const _0x267f54=_0x32c408;var _0xf22686,_0x2ac236;if(this[_0x267f54(0x30e)]=!0x0,((_0xf22686=this[_0x267f54(0x46c)][_0x267f54(0x4de)]())==null?void 0x0:_0xf22686[_0x267f54(0x2de)]())!==this[_0x267f54(0x434)])return;const _0x4f827f=(_0x2ac236=this['_injector'][_0x267f54(0x43e)](p[_0x267f54(0x222)])['getCurrentSelections']())==null?void 0x0:_0x2ac236[0x0],_0xb8d1a6=this[_0x267f54(0x46c)][_0x267f54(0x320)](o[_0x267f54(0x51d)]['UNIVER_SHEET'])['getActiveSheet']();_0x4f827f&&_0xb8d1a6&&this[_0x267f54(0x4d3)](_0xb8d1a6[_0x267f54(0x3de)](),_0x4f827f);}[_0x32c408(0x551)](){const _0x5e18b9=_0x32c408;this[_0x5e18b9(0x30e)]=!0x1;}};Le=ws([K(0x2,o[_0x32c408(0x395)](o[_0x32c408(0x337)])),K(0x3,o[_0x32c408(0x395)](Ve)),K(0x4,o[_0x32c408(0x395)](W)),K(0x5,o[_0x32c408(0x558)]),K(0x6,o['ICommandService']),K(0x7,o[_0x32c408(0x395)](p[_0x32c408(0x3f6)]))],Le);var As=Object[_0x32c408(0x539)],js=Object[_0x32c408(0x4e1)],$s=(_0x348991,_0x29c0a1,_0x147039,_0x26ad5c)=>{for(var _0x338ed8=_0x26ad5c>0x1?void 0x0:_0x26ad5c?js(_0x29c0a1,_0x147039):_0x29c0a1,_0x143941=_0x348991['length']-0x1,_0x1c8bf4;_0x143941>=0x0;_0x143941--)(_0x1c8bf4=_0x348991[_0x143941])&&(_0x338ed8=(_0x26ad5c?_0x1c8bf4(_0x29c0a1,_0x147039,_0x338ed8):_0x1c8bf4(_0x338ed8))||_0x338ed8);return _0x26ad5c&&_0x338ed8&&As(_0x29c0a1,_0x147039,_0x338ed8),_0x338ed8;},F=(_0x3a1a00,_0x5597de)=>(_0x473257,_0x500eeb)=>_0x5597de(_0x473257,_0x500eeb,_0x3a1a00);const Hs=0x12c,xs=0x64;let Ne=class extends o[_0x32c408(0x476)]{constructor(_0x25cc4a,_0x38f306,_0x213bc1,_0x4fbb4a,_0x303564,_0x46de44,_0x151610,_0x1d5677,_0xc7d76){const _0x39a989=_0x32c408;super(),u(this,_0x39a989(0x30e),!0x1),u(this,_0x39a989(0x55b),!0x1),u(this,_0x39a989(0x211),new v['BehaviorSubject'](new Map())),u(this,_0x39a989(0x353),this[_0x39a989(0x211)][_0x39a989(0x4b0)]()),u(this,_0x39a989(0x487),new v['BehaviorSubject']([])),u(this,_0x39a989(0x366),this[_0x39a989(0x487)][_0x39a989(0x4f4)](v[_0x39a989(0x332)](Hs))),u(this,_0x39a989(0x4d3),$e(_0x922dd1=>{const _0x3f5e38=_0x39a989,_0x4a211d={'eventID':_[_0x3f5e38(0x1d6)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x3f5e38(0x2f1)](),'selection':Et(_0x922dd1)}};this[_0x3f5e38(0x1b8)][_0x3f5e38(0x493)](_0x4a211d,this['unitID']);},xs)),(this[_0x39a989(0x434)]=_0x25cc4a,this['_session']=_0x38f306,this[_0x39a989(0x321)]=_0x213bc1,this[_0x39a989(0x2c7)]=_0x4fbb4a,this[_0x39a989(0x47f)]=_0x303564,this['_syncEditingCollabCursorService']=_0x46de44,this['_transformService']=_0x151610,this[_0x39a989(0x46c)]=_0x1d5677,this['_commandService']=_0xc7d76);}get[_0x32c408(0x4fd)](){const _0x223206=_0x32c408;return this[_0x223206(0x211)]['getValue']();}get[_0x32c408(0x27d)](){const _0x441aaa=_0x32c408;return this[_0x441aaa(0x487)][_0x441aaa(0x4d4)]();}[_0x32c408(0x4a3)](){const _0x52b714=_0x32c408;super['dispose'](),this[_0x52b714(0x211)][_0x52b714(0x226)](new Map()),this['_cursorInfo$'][_0x52b714(0x29b)](),this[_0x52b714(0x487)][_0x52b714(0x226)]([]),this[_0x52b714(0x487)][_0x52b714(0x29b)]();}['init'](){const _0x50d3f3=_0x32c408;this[_0x50d3f3(0x55b)]||(this['_init']=!0x0,this[_0x50d3f3(0x1b8)][_0x50d3f3(0x413)][_0x50d3f3(0x4f4)](v[_0x50d3f3(0x3d9)](this[_0x50d3f3(0x2b2)]))[_0x50d3f3(0x408)](_0x518742=>{const _0x3677b2=_0x50d3f3;_0x518742===V[_0x3677b2(0x1d8)]?this['_toggleOnline']():this['_toggleOffline']();}),this['_session'][_0x50d3f3(0x4ce)][_0x50d3f3(0x4f4)](v[_0x50d3f3(0x3d9)](this[_0x50d3f3(0x2b2)]))[_0x50d3f3(0x408)](_0x2cdd4f=>{const _0x46cea3=_0x50d3f3,_0x269482=_0x2cdd4f[_0x46cea3(0x2e8)];_0x269482===_[_0x46cea3(0x1d6)][_0x46cea3(0x1dc)]&&this['_onCursorUpdate'](_0x2cdd4f),_0x269482===_[_0x46cea3(0x1d6)][_0x46cea3(0x2e2)]&&this['_onCursorDelete'](_0x2cdd4f);}),this[_0x50d3f3(0x45d)](this[_0x50d3f3(0x363)]['onCommandExecuted'](_0x367c2e=>{const _0x306ce6=_0x50d3f3,_0x4f9d6a=_0x367c2e[_0x306ce6(0x4e6)];_0x4f9d6a!=null&&this[_0x306ce6(0x30e)]&&_0x367c2e['id']===U[_0x306ce6(0x4d8)]['id']&&_0x4f9d6a['unitId']===this[_0x306ce6(0x434)]&&_0x4f9d6a['isEditing']===!0x1&&this[_0x306ce6(0x4d3)](_0x4f9d6a[_0x306ce6(0x23a)]);})),this[_0x50d3f3(0x3b1)][_0x50d3f3(0x49e)][_0x50d3f3(0x4f4)](v[_0x50d3f3(0x3d9)](this[_0x50d3f3(0x2b2)]))['subscribe'](_0x14c220=>{const _0x2327f6=_0x50d3f3;if((_0x14c220==null?void 0x0:_0x14c220[_0x2327f6(0x434)])!==this[_0x2327f6(0x434)])return;const _0x3af5d9={'eventID':_[_0x2327f6(0x1d6)][_0x2327f6(0x1dc)],'data':_0x14c220};this[_0x2327f6(0x428)](_0x3af5d9);}),this[_0x50d3f3(0x45d)](this[_0x50d3f3(0x363)][_0x50d3f3(0x463)](_0x4841f3=>{const _0x341d15=_0x50d3f3;if(_0x4841f3[_0x341d15(0x4e6)]==null)return;const _0x1bea2b=_0x4841f3['params'];if(_0x4841f3['id']!==U['RichTextEditingMutation']['id']||_0x1bea2b['unitId']!==this['unitID'])return;const _0x17b199={'id':_0x341d15(0x3f8),'params':_0x1bea2b},_0xfdd428=this[_0x341d15(0x4fd)];for(const [_0x45258c,_0x542ea9]of _0xfdd428){const _0x7e4a36={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x542ea9['ranges']}},_0x563d1f=this['_transformService'][_0x341d15(0x20a)](_0x17b199,_0x7e4a36,!0x1);if(_[_0x341d15(0x247)](_0x563d1f))throw _0x563d1f[_0x341d15(0x36f)];_0xfdd428[_0x341d15(0x33b)](_0x45258c,{..._0x542ea9,'ranges':_0x563d1f[_0x341d15(0x577)][_0x341d15(0x4e6)]['textRanges']});}queueMicrotask(()=>{const _0x2764c7=_0x341d15;this['_cursorInfo$'][_0x2764c7(0x226)](_0xfdd428);});})));}[_0x32c408(0x428)](_0x59c70e){const _0x1a5c52=_0x32c408;var _0x528985,_0x456f93;const {memberID:_0x3cfe8a,selection:_0x480814}=_0x59c70e[_0x1a5c52(0x520)],_0x40c144=gs(_0x480814),_0x123262=(_0x456f93=(_0x528985=this[_0x1a5c52(0x47f)][_0x1a5c52(0x518)](this[_0x1a5c52(0x434)],_0x3cfe8a))==null?void 0x0:_0x528985[_0x1a5c52(0x297)])!=null?_0x456f93:'Unknown\x20user',_0x244437={'color':this[_0x1a5c52(0x2c7)][_0x1a5c52(0x338)](_0x3cfe8a),'name':_0x123262,'ranges':_0x40c144},_0xaf2ba3=this[_0x1a5c52(0x4fd)];_0xaf2ba3['set'](_0x3cfe8a,_0x244437),this[_0x1a5c52(0x211)][_0x1a5c52(0x226)](_0xaf2ba3);}[_0x32c408(0x2c1)](_0x59f0b5){const _0x8c12c2=_0x32c408,{memberID:_0x36f376}=_0x59f0b5[_0x8c12c2(0x520)],_0x276c3f=this['cursorInfo'];_0x276c3f['delete'](_0x36f376),this[_0x8c12c2(0x211)][_0x8c12c2(0x226)](_0x276c3f);}[_0x32c408(0x29a)](){const _0x8c1481=_0x32c408;var _0x5e59d1;if(this[_0x8c1481(0x30e)]=!0x0,((_0x5e59d1=this[_0x8c1481(0x46c)][_0x8c1481(0x4de)]())==null?void 0x0:_0x5e59d1['getUnitId']())!==this[_0x8c1481(0x434)])return;const _0x4e8318=this[_0x8c1481(0x321)][_0x8c1481(0x43e)](U[_0x8c1481(0x459)])[_0x8c1481(0x281)](),_0xf2213f=_0x4e8318==null?void 0x0:_0x4e8318[_0x8c1481(0x42d)](U[_0x8c1481(0x23d)]);Array[_0x8c1481(0x20f)](_0xf2213f)&&_0xf2213f[_0x8c1481(0x462)]>0x0&&this[_0x8c1481(0x4d3)](_0xf2213f);}[_0x32c408(0x551)](){const _0x1c4516=_0x32c408;this[_0x1c4516(0x30e)]=!0x1;}};Ne=$s([F(0x2,o[_0x32c408(0x395)](o[_0x32c408(0x337)])),F(0x3,o[_0x32c408(0x395)](Ve)),F(0x4,o[_0x32c408(0x395)](W)),F(0x5,o[_0x32c408(0x395)](Fe)),F(0x6,_[_0x32c408(0x3fd)]),F(0x7,o[_0x32c408(0x558)]),F(0x8,o[_0x32c408(0x4cb)])],Ne);var ks=Object[_0x32c408(0x539)],Bs=Object['getOwnPropertyDescriptor'],Fs=(_0x391e52,_0x56206b,_0x5aefb3,_0x3ea4df)=>{const _0x360c2b=_0x32c408;for(var _0xed7bc1=_0x3ea4df>0x1?void 0x0:_0x3ea4df?Bs(_0x56206b,_0x5aefb3):_0x56206b,_0x333b7b=_0x391e52[_0x360c2b(0x462)]-0x1,_0x22cb0b;_0x333b7b>=0x0;_0x333b7b--)(_0x22cb0b=_0x391e52[_0x333b7b])&&(_0xed7bc1=(_0x3ea4df?_0x22cb0b(_0x56206b,_0x5aefb3,_0xed7bc1):_0x22cb0b(_0xed7bc1))||_0xed7bc1);return _0x3ea4df&&_0xed7bc1&&ks(_0x56206b,_0x5aefb3,_0xed7bc1),_0xed7bc1;},Re=(_0x10c42a,_0xff089)=>(_0x590f65,_0x27c84d)=>_0xff089(_0x590f65,_0x27c84d,_0x10c42a);let J=class extends o['RxDisposable']{constructor(_0x8acb9,_0x1adede,_0x1ab304){const _0x49b290=_0x32c408;super(),u(this,'_entities',new Map()),u(this,'_entityInit$',new v['Subject']()),(this['_univerInstanceService']=_0x8acb9,this[_0x49b290(0x321)]=_0x1adede,this[_0x49b290(0x1bb)]=_0x1ab304,this[_0x49b290(0x55b)]());}[_0x32c408(0x4a3)](){const _0x2aa8b7=_0x32c408;super[_0x2aa8b7(0x4a3)](),this[_0x2aa8b7(0x4d9)][_0x2aa8b7(0x29b)](),this[_0x2aa8b7(0x3d7)][_0x2aa8b7(0x241)](_0x56897d=>_0x56897d[_0x2aa8b7(0x4a3)]());}[_0x32c408(0x2ee)](_0x28355f){const _0x5d6486=_0x32c408;return this[_0x5d6486(0x3d7)][_0x5d6486(0x432)](_0x28355f)?this['_entities'][_0x5d6486(0x43e)](_0x28355f)[_0x5d6486(0x353)]:this[_0x5d6486(0x4d9)][_0x5d6486(0x4f4)](v['filter'](_0x3a1c93=>_0x3a1c93['unitID']===_0x28355f),v['switchMap'](_0x39d195=>_0x39d195[_0x5d6486(0x353)]));}[_0x32c408(0x55b)](){const _0x5cd0b=_0x32c408;this[_0x5cd0b(0x46c)][_0x5cd0b(0x468)](o[_0x5cd0b(0x51d)]['UNIVER_SHEET'])[_0x5cd0b(0x4f4)](v[_0x5cd0b(0x3d9)](this[_0x5cd0b(0x2b2)]))[_0x5cd0b(0x408)](async _0x13ed2f=>{const _0x2b8897=_0x5cd0b,_0x366549=_0x13ed2f[_0x2b8897(0x2de)](),_0x403873=await this[_0x2b8897(0x479)](_0x366549);this[_0x2b8897(0x4d9)][_0x2b8897(0x226)](_0x403873),this[_0x2b8897(0x3d7)]['set'](_0x366549,_0x403873);}),this[_0x5cd0b(0x46c)][_0x5cd0b(0x468)](o[_0x5cd0b(0x51d)][_0x5cd0b(0x4a0)])['pipe'](v[_0x5cd0b(0x3d9)](this['dispose$']))[_0x5cd0b(0x4f4)](v['filter'](_0x354d3a=>!_0x354d3a['getUnitId']()[_0x5cd0b(0x514)]('__')))['subscribe'](async _0xf16897=>{const _0x1944b2=_0x5cd0b,_0xf6aec4=_0xf16897['getUnitId'](),_0x4946b7=await this[_0x1944b2(0x544)](_0xf6aec4);this[_0x1944b2(0x4d9)][_0x1944b2(0x226)](_0x4946b7),this[_0x1944b2(0x3d7)][_0x1944b2(0x33b)](_0xf6aec4,_0x4946b7);}),v[_0x5cd0b(0x562)](this[_0x5cd0b(0x46c)][_0x5cd0b(0x534)](o[_0x5cd0b(0x51d)][_0x5cd0b(0x4a0)]),this[_0x5cd0b(0x46c)]['getTypeOfUnitDisposed$'](o[_0x5cd0b(0x51d)][_0x5cd0b(0x2b8)]))[_0x5cd0b(0x4f4)](v[_0x5cd0b(0x3d9)](this[_0x5cd0b(0x2b2)]))['subscribe'](_0x366753=>{const _0x2d830e=_0x5cd0b,_0x3ad985=_0x366753[_0x2d830e(0x2de)](),_0x2831ab=this['_entities'][_0x2d830e(0x43e)](_0x3ad985);_0x2831ab&&(_0x2831ab[_0x2d830e(0x4a3)](),this[_0x2d830e(0x3d7)][_0x2d830e(0x3da)](_0x3ad985));});}async[_0x32c408(0x479)](_0x55a363){const _0x2541c9=_0x32c408,_0x5a69e7=await this[_0x2541c9(0x1bb)][_0x2541c9(0x49b)](_0x55a363),_0x25b461=this[_0x2541c9(0x321)][_0x2541c9(0x277)](Le,_0x55a363,_0x5a69e7);return _0x25b461[_0x2541c9(0x38f)](),_0x25b461;}async['_startDocCollabCursor'](_0x21bf15){const _0x2eb1d9=_0x32c408,_0x52fa6e=await this[_0x2eb1d9(0x1bb)]['requireSession'](_0x21bf15),_0x193790=this[_0x2eb1d9(0x321)][_0x2eb1d9(0x277)](Ne,_0x21bf15,_0x52fa6e);return _0x193790[_0x2eb1d9(0x38f)](),_0x193790;}};J=Fs([o['OnLifecycle'](o[_0x32c408(0x2b6)][_0x32c408(0x380)],J),Re(0x0,o[_0x32c408(0x558)]),Re(0x1,o[_0x32c408(0x395)](o[_0x32c408(0x337)])),Re(0x2,o[_0x32c408(0x395)](exports[_0x32c408(0x4e3)]))],J);const ae=0x14,st=0xc8,Oe=0x4,Vs=0x5;function Ws(_0x5e0feb,_0x47c03c){const _0x4ce9d6=_0x32c408;let {radius:_0x3eb417,width:_0x1011d6,height:_0x14f0ac}=_0x47c03c;_0x3eb417=_0x3eb417!=null?_0x3eb417:0x0,_0x1011d6=_0x1011d6!=null?_0x1011d6:0x1e,_0x14f0ac=_0x14f0ac!=null?_0x14f0ac:0x1e;let _0xf0c4bf=0x0,_0x39142f=0x0,_0x544deb=0x0;_0xf0c4bf=_0x39142f=_0x544deb=Math['min'](_0x3eb417,_0x1011d6/0x2,_0x14f0ac/0x2),_0x5e0feb[_0x4ce9d6(0x2ba)](),_0x5e0feb[_0x4ce9d6(0x361)](_0xf0c4bf,0x0),_0x5e0feb['lineTo'](_0x1011d6-_0x39142f,0x0),_0x5e0feb['arc'](_0x1011d6-_0x39142f,_0x39142f,_0x39142f,Math['PI']*0x3/0x2,0x0,!0x1),_0x5e0feb['lineTo'](_0x1011d6,_0x14f0ac-_0x544deb),_0x5e0feb[_0x4ce9d6(0x304)](_0x1011d6-_0x544deb,_0x14f0ac-_0x544deb,_0x544deb,0x0,Math['PI']/0x2,!0x1),_0x5e0feb['lineTo'](0x0,_0x14f0ac),_0x5e0feb[_0x4ce9d6(0x235)](0x0,_0xf0c4bf),_0x5e0feb[_0x4ce9d6(0x304)](_0xf0c4bf,_0xf0c4bf,_0xf0c4bf,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5e0feb['closePath'](),_0x47c03c[_0x4ce9d6(0x4f6)]&&(_0x5e0feb[_0x4ce9d6(0x41c)](),_0x5e0feb[_0x4ce9d6(0x21e)]=_0x47c03c['fill'],_0x47c03c[_0x4ce9d6(0x2e3)]===_0x4ce9d6(0x48a)?_0x5e0feb[_0x4ce9d6(0x4f6)](_0x4ce9d6(0x48a)):_0x5e0feb[_0x4ce9d6(0x4f6)](),_0x5e0feb[_0x4ce9d6(0x1e2)]());}class Ee extends T[_0x32c408(0x2c9)]{constructor(_0x4b3e06,_0x48ad16){const _0x3821f8=_0x32c408;super(_0x4b3e06,_0x48ad16),u(this,_0x3821f8(0x228)),u(this,_0x3821f8(0x263)),(this[_0x3821f8(0x228)]=_0x48ad16==null?void 0x0:_0x48ad16[_0x3821f8(0x228)],this[_0x3821f8(0x263)]=_0x48ad16==null?void 0x0:_0x48ad16['text']);}static[_0x32c408(0x3cd)](_0x24d122,_0x2e1676){const _0x4416d2=_0x32c408,{text:_0xedd24,color:_0x4d4392}=_0x2e1676;_0x24d122[_0x4416d2(0x41c)](),_0x24d122[_0x4416d2(0x542)]=_0x4416d2(0x1b6);const _0x3272d7=_0x24d122['measureText'](_0xedd24)[_0x4416d2(0x237)],_0x5d80c4=Math['min'](_0x3272d7+0x2*Oe,st);Ws(_0x24d122,{'height':ae,'radius':0x4,'width':_0x5d80c4,'fill':_0x4d4392,'evented':!0x1}),_0x24d122[_0x4416d2(0x21e)]=_0x4416d2(0x4bf);const _0x300efc=Oe,_0xf4ce9c=ae-Vs,_0x4dd8c5=st-0x2*Oe;if(_0x3272d7>_0x4dd8c5){let _0x2960f1='',_0xe6105f=0x0;for(const _0x589f42 of _0xedd24){const _0x582bfb=_0x24d122[_0x4416d2(0x333)](_0x589f42)['width'];if(_0xe6105f+_0x582bfb<=_0x4dd8c5-_0x24d122['measureText'](_0x4416d2(0x1d1))[_0x4416d2(0x237)])_0x2960f1+=_0x589f42,_0xe6105f+=_0x582bfb;else{_0x2960f1+='...';break;}}_0x24d122[_0x4416d2(0x42b)](_0x2960f1,_0x300efc,_0xf4ce9c);}else _0x24d122[_0x4416d2(0x42b)](_0xedd24,_0x300efc,_0xf4ce9c);_0x24d122['restore']();}['_draw'](_0x5a8507){Ee['drawWith'](_0x5a8507,this);}}const Gs=0x1,Ys=1.5;class bt extends T[_0x32c408(0x2c9)]{constructor(_0x1819bc,_0x3abe52){const _0x405bf4=_0x32c408;super(_0x1819bc,_0x3abe52),u(this,_0x405bf4(0x494)),u(this,_0x405bf4(0x282),!0x1),u(this,'_range'),u(this,_0x405bf4(0x433),''),u(this,_0x405bf4(0x357),'top'),u(this,_0x405bf4(0x1bf)),(_0x3abe52&&this[_0x405bf4(0x2f2)](_0x3abe52),this['onPointerEnter$'][_0x405bf4(0x3db)](()=>this[_0x405bf4(0x2f2)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x405bf4(0x2f2)]({'hovered':!0x1})));}[_0x32c408(0x2f2)](_0x285d30){const _0x3172ee=_0x32c408;var _0x75c962,_0x4ce1a5,_0x44c8a7,_0x4b3bcf,_0x1e38f6,_0xe31bb9;this[_0x3172ee(0x494)]=(_0x75c962=_0x285d30[_0x3172ee(0x228)])!=null?_0x75c962:this['_color'],this[_0x3172ee(0x282)]=(_0x4ce1a5=_0x285d30[_0x3172ee(0x34b)])!=null?_0x4ce1a5:this[_0x3172ee(0x282)],this[_0x3172ee(0x272)]=(_0x44c8a7=_0x285d30[_0x3172ee(0x559)])!=null?_0x44c8a7:this[_0x3172ee(0x272)],this[_0x3172ee(0x433)]=(_0x4b3bcf=_0x285d30[_0x3172ee(0x297)])!=null?_0x4b3bcf:this[_0x3172ee(0x433)],this[_0x3172ee(0x357)]=(_0x1e38f6=_0x285d30[_0x3172ee(0x548)])!=null?_0x1e38f6:this[_0x3172ee(0x357)],this[_0x3172ee(0x1bf)]=(_0xe31bb9=_0x285d30[_0x3172ee(0x55c)])!=null?_0xe31bb9:this[_0x3172ee(0x1bf)],this['transformByState']({'width':_0x285d30[_0x3172ee(0x237)],'height':_0x285d30[_0x3172ee(0x427)]});}['onMouseMove'](_0x5bb74b){const _0x533376=_0x32c408,{row:_0x24e171,column:_0x1bfeaa}=_0x5bb74b;if(_0x24e171>=this[_0x533376(0x272)][_0x533376(0x255)]&&_0x24e171<=this[_0x533376(0x272)][_0x533376(0x369)]&&_0x1bfeaa>=this[_0x533376(0x272)][_0x533376(0x2a8)]&&_0x1bfeaa<=this[_0x533376(0x272)][_0x533376(0x4aa)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x533376(0x2f2)]({'hovered':!0x1});}[_0x32c408(0x404)](_0x1849be){return!0x1;}[_0x32c408(0x265)](_0x116b6d){const _0x111386=_0x32c408;T['Rect']['drawWith'](_0x116b6d,{'width':this[_0x111386(0x237)],'height':this[_0x111386(0x427)],'strokeWidth':Ys,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x111386(0x1bf)]}),this[_0x111386(0x282)]&&(_0x116b6d['save'](),_0x116b6d[_0x111386(0x258)](0x1,0x0,0x0,0x1,this[_0x111386(0x237)],this[_0x111386(0x357)]===_0x111386(0x2da)?0x0:-ae),Ee[_0x111386(0x3cd)](_0x116b6d,{'text':this[_0x111386(0x433)],'color':this[_0x111386(0x494)]}),_0x116b6d[_0x111386(0x1e2)]());}}var Ks=Object[_0x32c408(0x539)],Xs=Object[_0x32c408(0x4e1)],qs=(_0x4e0515,_0x4aa21d,_0x44de83,_0x331235)=>{const _0x33edd2=_0x32c408;for(var _0x137af5=_0x331235>0x1?void 0x0:_0x331235?Xs(_0x4aa21d,_0x44de83):_0x4aa21d,_0x295fcf=_0x4e0515[_0x33edd2(0x462)]-0x1,_0x7892d7;_0x295fcf>=0x0;_0x295fcf--)(_0x7892d7=_0x4e0515[_0x295fcf])&&(_0x137af5=(_0x331235?_0x7892d7(_0x4aa21d,_0x44de83,_0x137af5):_0x7892d7(_0x137af5))||_0x137af5);return _0x331235&&_0x137af5&&Ks(_0x4aa21d,_0x44de83,_0x137af5),_0x137af5;},De=(_0x21851b,_0x33bc4d)=>(_0x3585df,_0x18b2ec)=>_0x33bc4d(_0x3585df,_0x18b2ec,_0x21851b);const Js=0x1389;let Ae=class extends o[_0x32c408(0x476)]{constructor(_0x462160,_0x418d55,_0x5bdde6,_0x47aba0){const _0x288c20=_0x32c408;super(),u(this,'_cursors',new Set()),u(this,'_lastPointer',null),(this[_0x288c20(0x1bc)]=_0x462160,this[_0x288c20(0x3e6)]=_0x418d55,this['_collabCursorController']=_0x5bdde6,this[_0x288c20(0x425)]=_0x47aba0,this[_0x288c20(0x55b)]());}['_init'](){const _0xf4b1e8=_0x32c408;this[_0xf4b1e8(0x3e6)]['currentSkeleton$'][_0xf4b1e8(0x4f4)](C['takeUntil'](this['dispose$']),C[_0xf4b1e8(0x4db)](_0x38a087=>{const _0x1af82f=_0xf4b1e8;if(_0x38a087){const _0x312988=_0x38a087['sheetId'];return v['combineLatest'](this['_collabCursorController'][_0x1af82f(0x2ee)](this[_0x1af82f(0x1bc)]['unitId']),this['_themeService'][_0x1af82f(0x2ed)])['pipe'](C[_0x1af82f(0x42d)](([_0x448efc,_0x515ab8])=>{const _0x8780f0=_0x1af82f,_0x230076=new Map();return _0x448efc[_0x8780f0(0x241)]((_0x4a6a85,_0x3aa98b)=>{const _0x954bc1=_0x8780f0;if(_0x4a6a85[_0x954bc1(0x3e4)]===_0x312988){const _0x509eac={..._0x4a6a85};_0x509eac['color']=_0x515ab8[_0x4a6a85['color']],_0x230076['set'](_0x3aa98b,_0x509eac);}}),{'skeleton':_0x38a087,'cursors':_0x230076};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0xf4b1e8(0x408)](({skeleton:_0x2a582f,cursors:_0x4d6a3c})=>{const _0x35e19d=_0xf4b1e8;this[_0x35e19d(0x522)](),_0x2a582f&&this[_0x35e19d(0x37d)](_0x2a582f,_0x4d6a3c);}),this[_0xf4b1e8(0x3e6)][_0xf4b1e8(0x2d1)][_0xf4b1e8(0x408)](_0x1a33ae=>{const _0x53d942=_0xf4b1e8;if(_0x1a33ae==null)return;const {skeleton:_0x48fcd1}=_0x1a33ae,{scene:_0x3b75ba}=this['_context'];_0x3b75ba[_0x53d942(0x28e)][_0x53d942(0x3db)]($e(_0xc15e66=>{const _0xa68d49=_0x53d942;var _0x3613fd,_0x18162e;const {offsetX:_0x3b59d9,offsetY:_0x1274fa}=_0xc15e66,{x:_0x58451c,y:_0x25e03a}=_0x3b75ba['getRelativeToViewportCoord'](T[_0xa68d49(0x556)][_0xa68d49(0x52c)]([_0x3b59d9,_0x1274fa])),{scaleX:_0x1eeb02,scaleY:_0x2cd08e}=_0x3b75ba['getAncestorScale'](),_0x3b3858=_0x3b75ba[_0xa68d49(0x245)](q['VIEWPORT_KEY']['VIEW_MAIN']),_0xc74022=_0x3b75ba[_0xa68d49(0x447)](T[_0xa68d49(0x556)][_0xa68d49(0x52c)]([_0x58451c,_0x25e03a]),_0x3b3858),_0x367744=_0x48fcd1['getCellPositionByOffset'](_0x3b59d9,_0x1274fa,_0x1eeb02,_0x2cd08e,_0xc74022);((_0x3613fd=this['_lastPointer'])==null?void 0x0:_0x3613fd[_0xa68d49(0x35f)])===_0x367744[_0xa68d49(0x35f)]&&((_0x18162e=this['_lastPointer'])==null?void 0x0:_0x18162e[_0xa68d49(0x303)])===_0x367744[_0xa68d49(0x303)]||this[_0xa68d49(0x4c8)][_0xa68d49(0x241)](_0x72e3eb=>{const _0x434685=_0xa68d49;_0x72e3eb[_0x434685(0x1d2)](_0x367744);});},0x64));});}['_updateCollabCursors'](_0x5df4fe,_0xc37f5a){const _0x46dccb=_0x32c408;var _0x4d50f2;const _0x341aab=(_0x4d50f2=this[_0x46dccb(0x3e6)][_0x46dccb(0x206)]())==null?void 0x0:_0x4d50f2[_0x46dccb(0x4f8)];if(!_0x341aab)return;const _0x41380b=this[_0x46dccb(0x306)]();if(!_0x41380b)return;this['_cursors'][_0x46dccb(0x241)](_0x1b4fe3=>{const _0x49e005=_0x46dccb;_0x1b4fe3[_0x49e005(0x53f)]();});const {scene:_0x5f19e8}=_0x41380b,_0x467ede=zs(Array[_0x46dccb(0x2cb)](_0xc37f5a[_0x46dccb(0x3f0)]()))[_0x46dccb(0x42d)](_0x40851e=>{const _0xef990f=_0x46dccb,{color:_0x39eeb5,range:_0x26d535,name:_0xb17240,selection:_0x2abb36,sheetID:_0x330fec}=_0x40851e,{startColumn:_0x5ee60f,startRow:_0xa79d79,endColumn:_0x1af195,endRow:_0x582b44}=_0x26d535,_0x4427fa=q[_0xef990f(0x367)](_0xa79d79,_0x5ee60f,_0x5f19e8,_0x341aab),_0x4f6d9d=q['getCoordByCell'](_0x582b44,_0x1af195,_0x5f19e8,_0x341aab),{columnHeaderHeightAndMarginTop:_0x3787f8}=_0x341aab,{startX:_0x476910,startY:_0x212361}=_0x4427fa,{endX:_0x25c8c5,endY:_0x4791a0}=_0x4f6d9d,_0x2b94c5=_0x25c8c5-_0x476910,_0x198e6a=_0x4791a0-_0x212361,_0x5225ef={'labelPosition':_0x212361-_0x3787f8>=ae?_0xef990f(0x545):_0xef990f(0x2da),'sheetID':_0x330fec,'range':_0x26d535,'color':_0x39eeb5,'name':_0xb17240,'selection':_0x2abb36,'left':_0x476910,'top':_0x212361,'width':_0x2b94c5,'height':_0x198e6a,'evented':!0x1,'zIndex':Js};return new bt(_0xb17240,_0x5225ef);});_0x5f19e8[_0x46dccb(0x2bb)](_0x467ede,Gs),this[_0x46dccb(0x4c8)]=new Set(_0x467ede);}[_0x32c408(0x522)](){const _0x31d2e2=_0x32c408;var _0x3e7e29;(_0x3e7e29=this[_0x31d2e2(0x4c8)])==null||_0x3e7e29[_0x31d2e2(0x241)](_0x4df064=>_0x4df064[_0x31d2e2(0x4a3)]());}[_0x32c408(0x306)](){const _0x467ec4=_0x32c408;return q['getSheetObject'](this[_0x467ec4(0x1bc)]['unit'],this[_0x467ec4(0x1bc)]);}};Ae=qs([De(0x1,o['Inject'](q[_0x32c408(0x260)])),De(0x2,o[_0x32c408(0x395)](J)),De(0x3,o[_0x32c408(0x395)](o['ThemeService']))],Ae);function zs(_0x4af571){const _0x47221f=_0x32c408,_0x3b352e=new Map();return _0x4af571['forEach'](_0x3884e9=>{const _0x3da9d4=_0x453d;if(_0x3b352e[_0x3da9d4(0x432)](_0x3884e9[_0x3da9d4(0x26b)])){const _0x18e4ed=_0x3b352e[_0x3da9d4(0x43e)](_0x3884e9[_0x3da9d4(0x26b)]);_0x18e4ed[_0x3da9d4(0x297)]+=',\x20'+_0x3884e9[_0x3da9d4(0x297)];}else _0x3b352e[_0x3da9d4(0x33b)](_0x3884e9[_0x3da9d4(0x26b)],_0x3884e9);}),Array[_0x47221f(0x2cb)](_0x3b352e[_0x47221f(0x3f0)]());}var M=function(){const _0x1f5080=_0x32c408;return M=Object['assign']||function(_0x385b07){const _0x2501ae=_0x453d;for(var _0x2eae4a,_0x209fe6=0x1,_0x2dec69=arguments[_0x2501ae(0x462)];_0x209fe6<_0x2dec69;_0x209fe6++){_0x2eae4a=arguments[_0x209fe6];for(var _0x262d08 in _0x2eae4a)Object[_0x2501ae(0x48b)][_0x2501ae(0x44d)]['call'](_0x2eae4a,_0x262d08)&&(_0x385b07[_0x262d08]=_0x2eae4a[_0x262d08]);}return _0x385b07;},M[_0x1f5080(0x296)](this,arguments);},Zs=function(_0x376eaa,_0x59afea){const _0x5decb6=_0x32c408;var _0x39e97c={};for(var _0x277124 in _0x376eaa)Object[_0x5decb6(0x48b)][_0x5decb6(0x44d)]['call'](_0x376eaa,_0x277124)&&_0x59afea[_0x5decb6(0x38b)](_0x277124)<0x0&&(_0x39e97c[_0x277124]=_0x376eaa[_0x277124]);if(_0x376eaa!=null&&typeof Object[_0x5decb6(0x4c4)]==_0x5decb6(0x1e1)){for(var _0x56e662=0x0,_0x277124=Object[_0x5decb6(0x4c4)](_0x376eaa);_0x56e662<_0x277124['length'];_0x56e662++)_0x59afea[_0x5decb6(0x38b)](_0x277124[_0x56e662])<0x0&&Object[_0x5decb6(0x48b)]['propertyIsEnumerable'][_0x5decb6(0x230)](_0x376eaa,_0x277124[_0x56e662])&&(_0x39e97c[_0x277124[_0x56e662]]=_0x376eaa[_0x277124[_0x56e662]]);}return _0x39e97c;},We=w[_0x32c408(0x419)](function(_0x475059,_0x20fdb4){const _0x5d08b4=_0x32c408;var _0x13a62e=_0x475059['icon'],_0x340b43=_0x475059['id'],_0x2a7e5f=_0x475059[_0x5d08b4(0x4d7)],_0x5c2e80=_0x475059[_0x5d08b4(0x326)],_0x2fc860=Zs(_0x475059,[_0x5d08b4(0x1ee),'id',_0x5d08b4(0x4d7),_0x5d08b4(0x326)]),_0x137c9a=_0x5d08b4(0x490)[_0x5d08b4(0x339)](_0x340b43,'\x20')['concat'](_0x2a7e5f||'')['trim'](),_0x3b3882=w[_0x5d08b4(0x268)]('_'['concat'](ti()));return Tt(_0x13a62e,''[_0x5d08b4(0x339)](_0x340b43),{'defIds':_0x13a62e[_0x5d08b4(0x291)],'idSuffix':_0x3b3882[_0x5d08b4(0x2ae)]},M({'ref':_0x20fdb4,'className':_0x137c9a},_0x2fc860),_0x5c2e80);});function Tt(_0x749d3a,_0x17705f,_0x2effd3,_0x5845f1,_0x2271b8){const _0x5b9bdc=_0x32c408;return w[_0x5b9bdc(0x4d1)](_0x749d3a['tag'],M(M({'key':_0x17705f},Qs(_0x749d3a,_0x2effd3,_0x2271b8)),_0x5845f1),(ei(_0x749d3a,_0x2effd3)[_0x5b9bdc(0x547)]||[])[_0x5b9bdc(0x42d)](function(_0x2cd0bb,_0x8d0783){const _0x2463f4=_0x5b9bdc;return Tt(_0x2cd0bb,''[_0x2463f4(0x339)](_0x17705f,'-')['concat'](_0x749d3a[_0x2463f4(0x4ac)],'-')[_0x2463f4(0x339)](_0x8d0783),_0x2effd3,void 0x0,_0x2271b8);}));}function Qs(_0x583bbe,_0x14a416,_0x198759){const _0xeff38d=_0x32c408;var _0x26051a=M({},_0x583bbe[_0xeff38d(0x1c5)]);_0x198759!=null&&_0x198759[_0xeff38d(0x24b)]&&_0x26051a[_0xeff38d(0x4f6)]===_0xeff38d(0x24b)&&(_0x26051a['fill']=_0x198759['colorChannel1']);var _0x5aaa77=_0x14a416[_0xeff38d(0x291)];return!_0x5aaa77||_0x5aaa77[_0xeff38d(0x462)]===0x0||(_0x583bbe[_0xeff38d(0x4ac)]===_0xeff38d(0x2cd)&&_0x26051a['xlink:href']&&(_0x26051a[_0xeff38d(0x3b0)]=_0x26051a['xlink:href']+_0x14a416[_0xeff38d(0x2b4)]),Object[_0xeff38d(0x249)](_0x26051a)[_0xeff38d(0x241)](function(_0x54a24b){const _0x524d8c=_0xeff38d;var _0x1eefcb=_0x54a24b[0x0],_0x5873a1=_0x54a24b[0x1];typeof _0x5873a1==_0x524d8c(0x3ea)&&(_0x26051a[_0x1eefcb]=_0x5873a1['replace'](/url\(#(.*)\)/,_0x524d8c(0x2a5)[_0x524d8c(0x339)](_0x14a416[_0x524d8c(0x2b4)],')')));})),_0x26051a;}function ei(_0x1f5c3a,_0x2c2018){const _0x1dcec6=_0x32c408;var _0x36546c,_0x311a37=_0x2c2018['defIds'];return!_0x311a37||_0x311a37[_0x1dcec6(0x462)]===0x0?_0x1f5c3a:_0x1f5c3a[_0x1dcec6(0x4ac)]===_0x1dcec6(0x56a)&&(!((_0x36546c=_0x1f5c3a['children'])===null||_0x36546c===void 0x0)&&_0x36546c[_0x1dcec6(0x462)])?M(M({},_0x1f5c3a),{'children':_0x1f5c3a[_0x1dcec6(0x547)][_0x1dcec6(0x42d)](function(_0x216f21){const _0x85402a=_0x1dcec6;return typeof _0x216f21[_0x85402a(0x1c5)]['id']=='string'&&_0x311a37&&_0x311a37[_0x85402a(0x38b)](_0x216f21[_0x85402a(0x1c5)]['id'])>-0x1?M(M({},_0x216f21),{'attrs':M(M({},_0x216f21['attrs']),{'id':_0x216f21['attrs']['id']+_0x2c2018['idSuffix']})}):_0x216f21;})}):_0x1f5c3a;}function ti(){const _0x1e8381=_0x32c408;return Math['random']()[_0x1e8381(0x33f)](0x24)[_0x1e8381(0x330)](0x2,0x8);}We[_0x32c408(0x3c0)]=_0x32c408(0x3fa);var si={'tag':_0x32c408(0x294),'attrs':{'fill':'none','viewBox':_0x32c408(0x325),'width':_0x32c408(0x3c2),'height':_0x32c408(0x3c2)},'children':[{'tag':'g','attrs':{'clipPath':_0x32c408(0x20d)},'children':[{'tag':_0x32c408(0x26f),'attrs':{'stroke':'currentColor','d':_0x32c408(0x4b7),'strokeLinecap':_0x32c408(0x467),'strokeLinejoin':_0x32c408(0x467),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x32c408(0x27a),'attrs':{'id':_0x32c408(0x2c3)},'children':[{'tag':_0x32c408(0x26f),'attrs':{'fill':'#fff','d':_0x32c408(0x54b)}}]}]}],'defIds':[_0x32c408(0x2c3)]},Rt=w[_0x32c408(0x419)](function(_0x431b39,_0x513067){const _0x13bfb5=_0x32c408;return w[_0x13bfb5(0x4d1)](We,Object['assign']({},_0x431b39,{'id':_0x13bfb5(0x516),'ref':_0x513067,'icon':si}));});Rt[_0x32c408(0x3c0)]=_0x32c408(0x3af);var ii={'tag':'svg','attrs':{'fill':'none','viewBox':_0x32c408(0x2c6),'width':'1em','height':_0x32c408(0x3c2)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x32c408(0x26f),'attrs':{'stroke':_0x32c408(0x348),'d':_0x32c408(0x440),'strokeLinecap':_0x32c408(0x467),'strokeLinejoin':_0x32c408(0x467),'strokeWidth':1.2}}]},{'tag':_0x32c408(0x56a),'attrs':{},'children':[{'tag':_0x32c408(0x27a),'attrs':{'id':_0x32c408(0x32e)},'children':[{'tag':_0x32c408(0x26f),'attrs':{'fill':_0x32c408(0x359),'d':'M0\x200H16V16H0z','transform':_0x32c408(0x219)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ot=w[_0x32c408(0x419)](function(_0xc368a4,_0x44da09){const _0x281c13=_0x32c408;return w['createElement'](We,Object['assign']({},_0xc368a4,{'id':_0x281c13(0x55d),'ref':_0x44da09,'icon':ii}));});Ot[_0x32c408(0x3c0)]=_0x32c408(0x444);const ni=_0x32c408(0x424),ri=_0x32c408(0x1e0),oi=_0x32c408(0x4b8),ai='univer-online',ci=_0x32c408(0x298),ie={'onlineStatusIcon':ni,'onlineStatusTitle':ri,'onlineStatus':oi,'online':ai,'offline':ci};function li(_0x230f3b){const _0x52841c=_0x32c408;switch(_0x230f3b){case D[_0x52841c(0x553)]:return _0x52841c(0x4b3);case D[_0x52841c(0x4e5)]:return _0x52841c(0x1f1);case D[_0x52841c(0x1ce)]:return _0x52841c(0x305);case D['NOT_COLLAB']:return'collabStatus.notCollab';case D['PENDING']:case D[_0x52841c(0x382)]:case D[_0x52841c(0x31c)]:return _0x52841c(0x2ab);case D[_0x52841c(0x234)]:return'collabStatus.synced';}}function Dt(_0x5c2ada){const _0x480d34=_0x32c408,{status$:_0x168b37}=_0x5c2ada,_0x2a325f=L[_0x480d34(0x396)](_0x168b37,D[_0x480d34(0x208)]),_0x40f899=o[_0x480d34(0x204)](o['LocaleService']),_0x395806=_0x2a325f!==D[_0x480d34(0x553)],_0x3ec6f9=_0x40f899['t'](li(_0x2a325f)),_0x188b4b=Ht(ie[_0x480d34(0x274)],{[ie[_0x480d34(0x267)]]:_0x395806,[ie['offline']]:!_0x395806}),_0x5821d6=_0x395806?w[_0x480d34(0x4d1)](Ot,null):w[_0x480d34(0x4d1)](Rt,null);return w[_0x480d34(0x4d1)]('div',{'className':_0x188b4b},w[_0x480d34(0x4d1)](_0x480d34(0x3ff),{'className':ie[_0x480d34(0x543)]},_0x5821d6),w['createElement'](_0x480d34(0x3ff),{'className':ie['onlineStatusTitle']},_0x3ec6f9));}var hi=Object[_0x32c408(0x539)],_i=Object[_0x32c408(0x4e1)],ui=(_0x188759,_0x3b69e1,_0x94a8c2,_0x33a540)=>{const _0x55c407=_0x32c408;for(var _0x339640=_0x33a540>0x1?void 0x0:_0x33a540?_i(_0x3b69e1,_0x94a8c2):_0x3b69e1,_0x87e86f=_0x188759[_0x55c407(0x462)]-0x1,_0x5a5c57;_0x87e86f>=0x0;_0x87e86f--)(_0x5a5c57=_0x188759[_0x87e86f])&&(_0x339640=(_0x33a540?_0x5a5c57(_0x3b69e1,_0x94a8c2,_0x339640):_0x5a5c57(_0x339640))||_0x339640);return _0x33a540&&_0x339640&&hi(_0x3b69e1,_0x94a8c2,_0x339640),_0x339640;},ce=(_0x4a2fbb,_0x541e4f)=>(_0x1d9d02,_0x187b89)=>_0x541e4f(_0x1d9d02,_0x187b89,_0x4a2fbb);exports[_0x32c408(0x1ca)]=class extends o[_0x32c408(0x503)]{constructor(_0xed9165,_0x1e0d69,_0x56ed50,_0x5c19b5){const _0x3d3d28=_0x32c408;super(),u(this,_0x3d3d28(0x54d),new v[(_0x3d3d28(0x2db))](D[_0x3d3d28(0x208)])),(this[_0x3d3d28(0x46c)]=_0xed9165,this[_0x3d3d28(0x42e)]=_0x1e0d69,this['_injector']=_0x56ed50,this[_0x3d3d28(0x2b7)]=_0x5c19b5,this[_0x3d3d28(0x1ec)](),this['_initStatusListener']());}[_0x32c408(0x1ec)](){const _0x34130e=_0x32c408;this[_0x34130e(0x45d)](this['_uiPartsService']['registerComponent'](L['BuiltInUIPart'][_0x34130e(0x209)],()=>o[_0x34130e(0x23e)](di({'status$':this[_0x34130e(0x54d)][_0x34130e(0x4b0)]()}),this['_injector'])));}[_0x32c408(0x455)](){const _0x3f6c4c=_0x32c408;this[_0x3f6c4c(0x45d)](o['toDisposable'](this[_0x3f6c4c(0x46c)][_0x3f6c4c(0x343)][_0x3f6c4c(0x4f4)](v[_0x3f6c4c(0x4db)](()=>{const _0x49ac7f=_0x3f6c4c,_0x651f1e=this['_univerInstanceService']['getFocusedUnit']();return _0x651f1e?this[_0x49ac7f(0x2b7)][_0x49ac7f(0x1c6)](_0x651f1e['getUnitId']()):v['of'](null);}),v[_0x3f6c4c(0x4db)](_0x4f3b5e=>_0x4f3b5e?_0x4f3b5e['status$']:v['of'](D[_0x3f6c4c(0x208)])))['subscribe'](_0x19bf69=>{const _0xe509f7=_0x3f6c4c;this[_0xe509f7(0x54d)][_0xe509f7(0x226)](_0x19bf69);})));}},exports['DesktopCollaborationStatusDisplayController']=ui([o[_0x32c408(0x540)](o[_0x32c408(0x2b6)]['Starting'],exports[_0x32c408(0x1ca)]),ce(0x0,o[_0x32c408(0x558)]),ce(0x1,L[_0x32c408(0x210)]),ce(0x2,o[_0x32c408(0x395)](o[_0x32c408(0x337)])),ce(0x3,o['Inject'](exports[_0x32c408(0x4fc)]))],exports[_0x32c408(0x1ca)]);function di(_0x1c2e78){const {status$:_0x5d7626}=_0x1c2e78;return function(){return w['createElement'](Dt,{'status$':_0x5d7626});};}const Ge=o['createIdentifier'](_0x32c408(0x3df));var Si=Object['defineProperty'],vi=Object['getOwnPropertyDescriptor'],mi=(_0x3ce78e,_0x81b373,_0x2d42f4,_0xaeb5f8)=>{const _0x4323e7=_0x32c408;for(var _0x169a0e=_0xaeb5f8>0x1?void 0x0:_0xaeb5f8?vi(_0x81b373,_0x2d42f4):_0x81b373,_0x5b2f94=_0x3ce78e[_0x4323e7(0x462)]-0x1,_0x4923fe;_0x5b2f94>=0x0;_0x5b2f94--)(_0x4923fe=_0x3ce78e[_0x5b2f94])&&(_0x169a0e=(_0xaeb5f8?_0x4923fe(_0x81b373,_0x2d42f4,_0x169a0e):_0x4923fe(_0x169a0e))||_0x169a0e);return _0xaeb5f8&&_0x169a0e&&Si(_0x81b373,_0x2d42f4,_0x169a0e),_0x169a0e;},X=(_0x48be9b,_0x51a52d)=>(_0x539edb,_0x125191)=>_0x51a52d(_0x539edb,_0x125191,_0x48be9b);exports[_0x32c408(0x22c)]=class extends o[_0x32c408(0x476)]{constructor(_0x3fd5b1,_0x26acbb,_0x2c3e00,_0x5b5893,_0x49950b,_0x22e368){const _0x2dcd67=_0x32c408;super(),this[_0x2dcd67(0x426)]=_0x3fd5b1,this['_logService']=_0x26acbb,this['_commandService']=_0x2c3e00,this[_0x2dcd67(0x51f)]=_0x5b5893,this[_0x2dcd67(0x398)]=_0x49950b,_0x22e368?_0x22e368==null||_0x22e368[_0x2dcd67(0x25c)]()['then'](()=>this['_init']()):(this[_0x2dcd67(0x505)][_0x2dcd67(0x2fb)](_0x2dcd67(0x4dd),_0x2dcd67(0x574)),this[_0x2dcd67(0x55b)]());}async[_0x32c408(0x55b)](){const _0x55997d=_0x32c408,_0x1af883=this[_0x55997d(0x426)][_0x55997d(0x469)](_0x55997d(0x43c)),_0x39e7a5=this[_0x55997d(0x426)][_0x55997d(0x469)](_0x55997d(0x430));if(!_0x1af883||!_0x39e7a5){this[_0x55997d(0x505)][_0x55997d(0x2fb)](_0x55997d(0x4dd),_0x55997d(0x383));return;}switch(Number(_0x39e7a5)){case A['UNIVER_SHEET']:{const _0x5c1571=await this[_0x55997d(0x2b3)](_0x1af883);this[_0x55997d(0x555)](_0x5c1571);break;}case A[_0x55997d(0x4a0)]:{await this[_0x55997d(0x218)](_0x1af883);break;}default:{this[_0x55997d(0x505)][_0x55997d(0x36f)](_0x55997d(0x4dd),_0x55997d(0x44b));break;}}}async[_0x32c408(0x555)](_0x4246e2){const _0x4e5884=_0x32c408;await this[_0x4e5884(0x20c)](_0x4246e2),_0x4246e2[_0x4e5884(0x205)]['pipe'](v[_0x4e5884(0x3d9)](this['dispose$']))[_0x4e5884(0x408)](_0xad1bca=>{const _0x268cbe=_0x4e5884;_0xad1bca&&this[_0x268cbe(0x52b)](_0xad1bca);}),this[_0x4e5884(0x426)][_0x4e5884(0x50a)][_0x4e5884(0x4f4)](v[_0x4e5884(0x3d9)](this['dispose$']))[_0x4e5884(0x408)](()=>this[_0x4e5884(0x20c)](_0x4246e2));}[_0x32c408(0x52b)](_0x199410,_0x3a9598=!0x1){const _0x56121e=_0x32c408,_0x877d93=this[_0x56121e(0x426)][_0x56121e(0x469)](_0x56121e(0x30b));_0x199410[_0x56121e(0x3de)]()!==_0x877d93&&this['_urlService']['setParam']('subunit',_0x199410['getSheetId'](),_0x3a9598);}async[_0x32c408(0x20c)](_0x1da33b){const _0xa8ca5a=_0x32c408;var _0x12d957;const _0x4d3cbb=this[_0xa8ca5a(0x426)][_0xa8ca5a(0x469)](_0xa8ca5a(0x30b));if(!_0x4d3cbb||!_0x1da33b[_0xa8ca5a(0x526)](_0x4d3cbb)){const _0x1dacc9=_0x1da33b[_0xa8ca5a(0x502)]()[0x0],_0x1a2b73=_0x1da33b['getSheetBySheetId'](_0x1dacc9);if(!_0x1a2b73)return;this[_0xa8ca5a(0x52b)](_0x1a2b73,!0x0),await this[_0xa8ca5a(0x363)]['executeCommand'](p[_0xa8ca5a(0x1e4)]['id'],{'unitId':_0x1da33b[_0xa8ca5a(0x2de)](),'subUnitId':_0x1dacc9});return;}((_0x12d957=_0x1da33b['getActiveSheet']())==null?void 0x0:_0x12d957[_0xa8ca5a(0x3de)]())!==_0x4d3cbb&&await this[_0xa8ca5a(0x363)][_0xa8ca5a(0x1ed)](p[_0xa8ca5a(0x1e4)]['id'],{'unitId':_0x1da33b[_0xa8ca5a(0x2de)](),'subUnitId':_0x4d3cbb});}async[_0x32c408(0x2b3)](_0x7e66b4){const _0x43423f=_0x32c408;let _0x8dbb52=0x0;const _0x16602f=await this['_localCacheService'][_0x43423f(0x214)](_0x7e66b4);return _0x16602f&&(_0x16602f['awaitingChangeset']||_0x16602f[_0x43423f(0x560)]['length']!==0x0)&&(_0x8dbb52=_0x16602f[_0x43423f(0x486)]),_0x8dbb52===0x0&&this['_logService']['debug'](_0x43423f(0x4dd),_0x43423f(0x2aa)),this[_0x43423f(0x398)][_0x43423f(0x30d)](_0x7e66b4,_0x8dbb52);}async[_0x32c408(0x218)](_0xded0d5){const _0x2fd78c=_0x32c408;let _0x227e97=0x0;const _0x1b4a41=await this[_0x2fd78c(0x51f)][_0x2fd78c(0x214)](_0xded0d5);return _0x1b4a41&&(_0x1b4a41[_0x2fd78c(0x308)]||_0x1b4a41[_0x2fd78c(0x560)]['length']!==0x0)&&(_0x227e97=_0x1b4a41['rev']),_0x227e97===0x0&&this[_0x2fd78c(0x505)][_0x2fd78c(0x2fb)](_0x2fd78c(0x4dd),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x2fd78c(0x398)][_0x2fd78c(0x44e)](_0xded0d5,_0x227e97);}},exports[_0x32c408(0x22c)]=mi([o[_0x32c408(0x540)](o[_0x32c408(0x2b6)][_0x32c408(0x380)],exports[_0x32c408(0x22c)]),X(0x0,Ge),X(0x1,o[_0x32c408(0x1bd)]),X(0x2,o[_0x32c408(0x4cb)]),X(0x3,o['Inject'](exports[_0x32c408(0x39f)])),X(0x4,o[_0x32c408(0x395)](_[_0x32c408(0x269)])),X(0x5,o['Optional'](xt['IRemoteInstanceService']))],exports[_0x32c408(0x22c)]);var gi=Object['defineProperty'],fi=Object[_0x32c408(0x4e1)],Ii=(_0x4eac17,_0x2f1786,_0x25fb2f,_0x3003dd)=>{const _0x5aab08=_0x32c408;for(var _0x26fd58=_0x3003dd>0x1?void 0x0:_0x3003dd?fi(_0x2f1786,_0x25fb2f):_0x2f1786,_0x16a87a=_0x4eac17[_0x5aab08(0x462)]-0x1,_0x399abf;_0x16a87a>=0x0;_0x16a87a--)(_0x399abf=_0x4eac17[_0x16a87a])&&(_0x26fd58=(_0x3003dd?_0x399abf(_0x2f1786,_0x25fb2f,_0x26fd58):_0x399abf(_0x26fd58))||_0x26fd58);return _0x3003dd&&_0x26fd58&&gi(_0x2f1786,_0x25fb2f,_0x26fd58),_0x26fd58;},it=(_0x2ba61d,_0x5dadd9)=>(_0xe0c1a9,_0x569099)=>_0x5dadd9(_0xe0c1a9,_0x569099,_0x2ba61d);const pi=_0x32c408(0x313),Ei='Univer';let _e=class extends o[_0x32c408(0x503)]{constructor(_0x1637b3,_0x507857){const _0xcaceb8=_0x32c408;super(),this[_0xcaceb8(0x46c)]=_0x1637b3,this[_0xcaceb8(0x580)]=_0x507857,this[_0xcaceb8(0x55b)]();}[_0x32c408(0x55b)](){const _0x4d3e5=_0x32c408;this[_0x4d3e5(0x45d)](o[_0x4d3e5(0x4e4)](this[_0x4d3e5(0x46c)][_0x4d3e5(0x343)][_0x4d3e5(0x408)](()=>{const _0x37ece5=_0x4d3e5;var _0x25eae2;const _0x3b7cb8=this['_univerInstanceService'][_0x37ece5(0x4de)]();let _0x2ebb21=(_0x25eae2=this[_0x37ece5(0x580)]['getConfig'](pi))!=null?_0x25eae2:Ei;_0x3b7cb8 instanceof o[_0x37ece5(0x2d6)]&&(_0x2ebb21=_0x3b7cb8['name']),document[_0x37ece5(0x36d)]=_0x2ebb21;})));}};_e=Ii([o[_0x32c408(0x540)](o[_0x32c408(0x2b6)][_0x32c408(0x4b2)],_e),it(0x0,o[_0x32c408(0x558)]),it(0x1,o[_0x32c408(0x312)])],_e);var Ci=Object[_0x32c408(0x539)],bi=Object[_0x32c408(0x4e1)],Ti=(_0x15fabe,_0x1b54ef,_0xa4d240,_0x406148)=>{const _0x255240=_0x32c408;for(var _0x16be92=_0x406148>0x1?void 0x0:_0x406148?bi(_0x1b54ef,_0xa4d240):_0x1b54ef,_0x29c28a=_0x15fabe[_0x255240(0x462)]-0x1,_0x10cc13;_0x29c28a>=0x0;_0x29c28a--)(_0x10cc13=_0x15fabe[_0x29c28a])&&(_0x16be92=(_0x406148?_0x10cc13(_0x1b54ef,_0xa4d240,_0x16be92):_0x10cc13(_0x16be92))||_0x16be92);return _0x406148&&_0x16be92&&Ci(_0x1b54ef,_0xa4d240,_0x16be92),_0x16be92;},nt=(_0x37ee5b,_0x472308)=>(_0x550261,_0x4561e5)=>_0x472308(_0x550261,_0x4561e5,_0x37ee5b);exports[_0x32c408(0x2d3)]=class{constructor(_0x394319,_0x4e0dfd){const _0xada058=_0x32c408;this['_configService']=_0x394319,this[_0xada058(0x3ce)]=_0x4e0dfd;}async[_0x32c408(0x1f3)](_0xe26a44,_0x5968f3){const _0x440734=_0x32c408;var _0x2ab9e7;const {unitID:_0x470825,type:_0x5994c5,revision:_0x4f3611=0x0}=_0x5968f3,_0x40f2dc=this[_0x440734(0x4ae)]()+'/'+_0x5994c5+'/unit/'+_0x470825+_0x440734(0x3a6)+_0x4f3611,_0x284f66=(await this['_httpService']['get'](_0x40f2dc))[_0x440734(0x1da)],_0x275974=(_0x2ab9e7=_0x284f66[_0x440734(0x4fa)])==null?void 0x0:_0x2ab9e7['workbook'];if(_0x275974){const _0x264496=_0x275974==null?void 0x0:_0x275974[_0x440734(0x4a7)],_0x59968e=o[_0x440734(0x22e)][_0x440734(0x2e1)](o[_0x440734(0x37c)](_0x264496));_0x275974[_0x440734(0x4a7)]=_0x59968e,Object[_0x440734(0x249)](_0x275974[_0x440734(0x3f4)])[_0x440734(0x241)](([,_0xac4b29])=>{const _0x5d11c1=_0x440734,_0x4f4b69=_0xac4b29[_0x5d11c1(0x4a7)],_0x18553c=o['textEncoder'][_0x5d11c1(0x2e1)](o['b64DecodeUnicode'](_0x4f4b69));_0xac4b29[_0x5d11c1(0x4a7)]=_0x18553c;});}return _0x284f66;}async[_0x32c408(0x2e7)](_0x51a91a,_0x4d6799){const _0x1cc669=_0x32c408,{unitID:_0x4c5ee1,type:_0x714c41,blockID:_0xbaa510}=_0x4d6799,_0x103dcf=this[_0x1cc669(0x328)]()+'/'+_0x714c41+_0x1cc669(0x20e)+_0x4c5ee1+'/block/'+_0xbaa510;return(await this[_0x1cc669(0x3ce)][_0x1cc669(0x43e)](_0x103dcf))['body'];}async[_0x32c408(0x388)](_0x1b65f0,_0x2e6183){const _0x304964=_0x32c408,{unitID:_0xd43159,type:_0x110fdb,from:_0x3d1485,to:_0x4455f8}=_0x2e6183,_0x55e570=this['_getAPIPrefix']()+'/'+_0x110fdb+'/unit/'+_0xd43159+_0x304964(0x2fe)+_0x3d1485+'&to='+_0x4455f8;return(await this[_0x304964(0x3ce)][_0x304964(0x43e)](_0x55e570))[_0x304964(0x1da)];}['_getSnapshotAPIPrefix'](){const _0xc07b2a=_0x32c408;var _0x45ddda;return(_0x45ddda=this[_0xc07b2a(0x580)][_0xc07b2a(0x24a)](ct))!=null?_0x45ddda:this[_0xc07b2a(0x328)]();}[_0x32c408(0x328)](){const _0x1f09cc=_0x32c408;var _0x426690;return(_0x426690=this['_configService'][_0x1f09cc(0x24a)](at))!=null?_0x426690:kt;}async[_0x32c408(0x4c9)](_0x5c471b,_0x16046c){const _0x335fc9=_0x32c408,_0x51387d='/universer-api/snapshot/'+_0x16046c[_0x335fc9(0x430)]+_0x335fc9(0x20e)+_0x16046c[_0x335fc9(0x434)]+'/resources';return(await this[_0x335fc9(0x3ce)][_0x335fc9(0x43e)](_0x51387d,{'params':{'resourceId':JSON[_0x335fc9(0x4d6)](_0x16046c['resourceIDs'])}}))[_0x335fc9(0x1da)];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x32c408(0x2dd)](){const _0x3f78b3=_0x32c408;throw new Error(_0x3f78b3(0x3e2));}[_0x32c408(0x576)](){const _0x5d84b4=_0x32c408;throw new Error(_0x5d84b4(0x3e2));}},exports['SnapshotServerOverHTTPService']=Ti([nt(0x0,o[_0x32c408(0x312)]),nt(0x1,o['Inject'](P['HTTPService']))],exports[_0x32c408(0x2d3)]);var Ri=Object[_0x32c408(0x539)],Oi=Object[_0x32c408(0x4e1)],Di=(_0x3fa3af,_0x2d334b,_0x4f9c13,_0x3a7a17)=>{for(var _0x5e45fd=_0x3a7a17>0x1?void 0x0:_0x3a7a17?Oi(_0x2d334b,_0x4f9c13):_0x2d334b,_0x27d562=_0x3fa3af['length']-0x1,_0x230090;_0x27d562>=0x0;_0x27d562--)(_0x230090=_0x3fa3af[_0x27d562])&&(_0x5e45fd=(_0x3a7a17?_0x230090(_0x2d334b,_0x4f9c13,_0x5e45fd):_0x230090(_0x5e45fd))||_0x5e45fd);return _0x3a7a17&&_0x5e45fd&&Ri(_0x2d334b,_0x4f9c13,_0x5e45fd),_0x5e45fd;},ne=(_0x177705,_0x4afb29)=>(_0x16911d,_0x232c06)=>_0x4afb29(_0x16911d,_0x232c06,_0x177705);let je=class extends o[_0x32c408(0x2bc)]{constructor(_0x56ee1a,_0xe35654,_0x30af59,_0x5ec69d,_0x57dc8a){const _0x1fc19e=_0x32c408;super(_0x56ee1a,_0xe35654,_0x30af59),this[_0x1fc19e(0x374)]=_0x5ec69d,this[_0x1fc19e(0x505)]=_0x57dc8a;}['transformUndoRedo'](_0x37645b,_0x18b498){const _0x562ffc=_0x32c408,_0x5a1c06=this[_0x562ffc(0x40c)](_0x37645b);if(_0x5a1c06)try{const _0x112c73=this[_0x562ffc(0x33e)](_0x5a1c06,_0x18b498);this[_0x562ffc(0x355)](_0x37645b,_0x112c73);}catch(_0x320dd5){this[_0x562ffc(0x505)]['error'](_0x562ffc(0x44f),_0x320dd5),this[_0x562ffc(0x2f8)](_0x37645b);}const _0x269b83=this[_0x562ffc(0x3cf)](_0x37645b);if(_0x269b83)try{const _0x2ac93c=this['_transformStack'](_0x269b83,_0x18b498);this[_0x562ffc(0x3d8)](_0x37645b,_0x2ac93c);}catch(_0xdaf07e){this[_0x562ffc(0x505)][_0x562ffc(0x36f)](_0xdaf07e),this[_0x562ffc(0x3c1)](_0x37645b);}}['_clearUndo'](_0x458e47){const _0x11be8f=_0x32c408,_0x1a78ca=this[_0x11be8f(0x40c)](_0x458e47);_0x1a78ca&&(_0x1a78ca[_0x11be8f(0x462)]=0x0,this[_0x11be8f(0x1b9)]());}[_0x32c408(0x3c1)](_0x109c6a){const _0x58cefe=_0x32c408,_0x315b13=this[_0x58cefe(0x3cf)](_0x109c6a);_0x315b13&&(_0x315b13[_0x58cefe(0x462)]=0x0,this['_updateStatus']());}[_0x32c408(0x355)](_0x3e204e,_0x5a7d1f){const _0x7dff39=_0x32c408;this[_0x7dff39(0x270)][_0x7dff39(0x33b)](_0x3e204e,_0x5a7d1f),this[_0x7dff39(0x1b9)]();}[_0x32c408(0x3d8)](_0x1760af,_0x571adf){const _0x36d67a=_0x32c408;this[_0x36d67a(0x236)][_0x36d67a(0x33b)](_0x1760af,_0x571adf),this[_0x36d67a(0x1b9)]();}[_0x32c408(0x33e)](_0x48f3f6,_0x3cf2f7){const _0x1003bd=_0x32c408,_0x67668e=[];let _0x464c3f=_0x3cf2f7,_0x3c34df=_0x3cf2f7;for(let _0x31ef99=_0x48f3f6[_0x1003bd(0x462)]-0x1;_0x31ef99>=0x0;_0x31ef99--){const {unitID:_0x4f5df8,undoMutations:_0x12ad38,redoMutations:_0x99ae47}=_0x48f3f6[_0x31ef99],_0x5cd294=this[_0x1003bd(0x374)][_0x1003bd(0x530)](_0x464c3f,_0x12ad38),_0x372042=this[_0x1003bd(0x374)]['transformMutationsWithChangeset'](_0x3c34df,_0x99ae47);if(_[_0x1003bd(0x232)](_0x5cd294)||_[_0x1003bd(0x232)](_0x372042)){this['_logService'][_0x1003bd(0x36f)](_0x1003bd(0x44f),'transformStack\x20failed!',_0x5cd294,_0x372042);break;}_0x464c3f=_0x5cd294[_0x1003bd(0x3ae)],_0x3c34df=_0x372042['c1Prime'],_0x67668e[_0x1003bd(0x563)]({'unitID':_0x4f5df8,'undoMutations':_0x5cd294['m2Prime'],'redoMutations':_0x372042[_0x1003bd(0x577)]});}return _0x67668e['reverse']();}};je=Di([ne(0x0,o[_0x32c408(0x558)]),ne(0x1,o[_0x32c408(0x4cb)]),ne(0x2,o[_0x32c408(0x416)]),ne(0x3,_[_0x32c408(0x3fd)]),ne(0x4,o[_0x32c408(0x1bd)])],je);class Pt extends o[_0x32c408(0x476)]{constructor(){const _0x498765=_0x32c408;super(),u(this,_0x498765(0x50a)),this['urlChange$']=v[_0x498765(0x3c4)](window,'popstate')[_0x498765(0x4f4)](v[_0x498765(0x3d9)](this['dispose$']),v[_0x498765(0x2e5)](0x1),v[_0x498765(0x259)](void 0x0));}[_0x32c408(0x517)](_0xe39ab8,_0x292733,_0x36440a=!0x1){const _0x1743db=_0x32c408,_0x20eaba=new URL(window[_0x1743db(0x1fb)]['href']);_0x20eaba[_0x1743db(0x512)]['set'](_0xe39ab8,_0x292733),_0x36440a?window['history'][_0x1743db(0x33d)]('','',_0x20eaba[_0x1743db(0x33f)]()):window[_0x1743db(0x3f7)][_0x1743db(0x250)]('','',_0x20eaba['toString']());}[_0x32c408(0x2ef)](_0x414b17,_0x43db25=!0x1){const _0x2d2057=_0x32c408,_0x14e1b1=new URL(window[_0x2d2057(0x1fb)][_0x2d2057(0x54f)]);_0x14e1b1[_0x2d2057(0x512)][_0x2d2057(0x3da)](_0x414b17),_0x43db25?window[_0x2d2057(0x3f7)][_0x2d2057(0x33d)]('','',_0x14e1b1[_0x2d2057(0x33f)]()):window[_0x2d2057(0x3f7)][_0x2d2057(0x250)]('','',_0x14e1b1[_0x2d2057(0x33f)]());}['getParam'](_0x2d551d){const _0x32152f=_0x32c408;var _0x4af1be;return(_0x4af1be=new URL(window['location'][_0x32152f(0x54f)])['searchParams'][_0x32152f(0x43e)](_0x2d551d))!=null?_0x4af1be:void 0x0;}}const Pe=_0x32c408(0x3d0),Pi=_0x32c408(0x35e),le=0x6,Ui=1.5,Ue=0x4,yi=1.5,wi='rgba(255,\x20255,\x20255,\x200.01)';class Mi{constructor(_0x6f9cd0,_0x1433cf,_0x21747d,_0xc509a){const _0x52643b=_0x32c408;u(this,_0x52643b(0x28d),[]),u(this,'_anchor',null),u(this,_0x52643b(0x48f),null),u(this,_0x52643b(0x3b3),null),u(this,_0x52643b(0x52a),null),u(this,_0x52643b(0x1ff),null),(this[_0x52643b(0x4b6)]=_0x6f9cd0,this['_scene']=_0x1433cf,this[_0x52643b(0x2c8)]=_0x21747d,this[_0x52643b(0x32f)]=_0xc509a,this[_0x52643b(0x1cd)]());}set['_hover'](_0x3b38db){const _0x540d92=_0x32c408;_0x3b38db?(this[_0x540d92(0x3b3)]&&this[_0x540d92(0x3b3)][_0x540d92(0x240)](),this[_0x540d92(0x48f)]&&this[_0x540d92(0x48f)][_0x540d92(0x389)]()):(this[_0x540d92(0x3b3)]&&this[_0x540d92(0x3b3)][_0x540d92(0x389)](),this[_0x540d92(0x48f)]&&this[_0x540d92(0x48f)]['hide']());}[_0x32c408(0x4a3)](){const _0x3aade2=_0x32c408;for(const _0x493580 of this[_0x3aade2(0x28d)])_0x493580[_0x3aade2(0x4a3)]();this[_0x3aade2(0x48f)]&&this[_0x3aade2(0x48f)][_0x3aade2(0x4a3)](),this[_0x3aade2(0x3b3)]&&this[_0x3aade2(0x3b3)][_0x3aade2(0x4a3)](),this[_0x3aade2(0x46e)]&&this[_0x3aade2(0x46e)][_0x3aade2(0x4a3)](),this[_0x3aade2(0x1ff)]&&this[_0x3aade2(0x1ff)]();}[_0x32c408(0x1cd)](){const _0x595e84=_0x32c408,{_docSkeleton:_0x572886,_document:_0x1d58b0}=this,{color:_0x184376,name:_0x5df872,ranges:_0x3433e0}=this[_0x595e84(0x4b6)],_0x186fde=_0x1d58b0[_0x595e84(0x49a)](),{docsLeft:_0x96a4f7,docsTop:_0x35d923}=_0x186fde,_0x4a2691=new T[(_0x595e84(0x3ab))](_0x186fde,_0x572886);for(const {startOffset:_0x202f39,endOffset:_0x2b2ee,collapsed:_0x256329,isActive:_0x3a5dcc}of _0x3433e0){const _0x420e02=_0x572886[_0x595e84(0x535)](_0x202f39),_0x3e32f6=_0x572886[_0x595e84(0x535)](_0x2b2ee);if(_0x3a5dcc){const {contentBoxPointGroup:_0x3f73bf}=_0x4a2691[_0x595e84(0x409)](_0x3e32f6,_0x3e32f6);if(_0x3f73bf[_0x595e84(0x462)]===0x0)continue;this[_0x595e84(0x4ef)](_0x184376,_0x3f73bf,_0x96a4f7,_0x35d923,_0x5df872),this[_0x595e84(0x1ff)]=this['_handleHover']();}if(!_0x256329){const {contentBoxPointGroup:_0x1837d5}=_0x4a2691[_0x595e84(0x409)](_0x420e02,_0x3e32f6);if(_0x1837d5[_0x595e84(0x462)]===0x0)continue;this[_0x595e84(0x45e)](_0x184376,_0x1837d5,_0x96a4f7,_0x35d923);}}}[_0x32c408(0x4ef)](_0x2369fb,_0x32256e,_0xd6bd49,_0x14bb9d,_0x19bb87){const _0x7f8f8e=_0x32c408,_0x3c5f87=this[_0x7f8f8e(0x43b)](_0x32256e),{left:_0x338cf2,top:_0x5bb87d,height:_0x51e277}=_0x3c5f87,_0x21d09a=this['_getScale'](),_0x653715=yi/_0x21d09a,_0x34fcad=new T[(_0x7f8f8e(0x32a))](Pe+o[_0x7f8f8e(0x523)][_0x7f8f8e(0x2be)](le),{'left':_0x338cf2+_0xd6bd49-_0x653715,'top':_0x5bb87d+_0x14bb9d,'height':_0x51e277,'width':Ui,'fill':_0x2369fb||T[_0x7f8f8e(0x351)](o[_0x7f8f8e(0x381)][_0x7f8f8e(0x316)],0x0),'strokeWidth':_0x653715,'stroke':wi,'evented':!0x0});this['_anchor']=_0x34fcad,this[_0x7f8f8e(0x49f)]['addObject'](_0x34fcad,T[_0x7f8f8e(0x40e)]);const _0x20330d=new T[(_0x7f8f8e(0x32a))](Pe+o['Tools'][_0x7f8f8e(0x2be)](le),{'left':_0x338cf2+_0xd6bd49-_0x653715,'top':_0x5bb87d+_0x14bb9d-Ue/0x2,'height':Ue,'width':Ue,'fill':_0x2369fb||T[_0x7f8f8e(0x351)](o[_0x7f8f8e(0x381)][_0x7f8f8e(0x316)],0x0),'strokeWidth':0x0,'stroke':_0x2369fb||T[_0x7f8f8e(0x351)](o['COLORS'][_0x7f8f8e(0x316)],0x0),'evented':!0x1});this[_0x7f8f8e(0x3b3)]=_0x20330d,this[_0x7f8f8e(0x49f)]['addObject'](_0x20330d,T[_0x7f8f8e(0x40e)]);const _0x5caea6=new Ee(Pe+o[_0x7f8f8e(0x523)]['generateRandomId'](le),{'left':_0x338cf2+_0xd6bd49-_0x653715,'top':_0x5bb87d+_0x14bb9d-ae,'text':_0x19bb87,'color':_0x2369fb});this['_textBubble']=_0x5caea6,this[_0x7f8f8e(0x49f)][_0x7f8f8e(0x1f6)](_0x5caea6,T[_0x7f8f8e(0x40e)]),this[_0x7f8f8e(0x266)]=!0x1;}[_0x32c408(0x334)](){const _0x2c8e1a=_0x32c408,_0x16c3c7=this[_0x2c8e1a(0x46e)][_0x2c8e1a(0x54a)][_0x2c8e1a(0x3db)](()=>{const _0x237904=_0x2c8e1a;this[_0x237904(0x266)]=!0x0;}),_0x2ce624=this[_0x2c8e1a(0x46e)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x160ebd=_0x2c8e1a;this[_0x160ebd(0x52a)]&&clearTimeout(this[_0x160ebd(0x52a)]),this[_0x160ebd(0x52a)]=setTimeout(()=>{const _0x1ca164=_0x160ebd;this[_0x1ca164(0x266)]=!0x1;},0x7d0);});return()=>{const _0x38ad89=_0x2c8e1a;_0x16c3c7[_0x38ad89(0x4ab)](),_0x2ce624['unsubscribe']();};}[_0x32c408(0x45e)](_0x14d708,_0x30d8a4,_0xd4304a,_0x2511e8){const _0x44174b=_0x32c408,_0x1d2175=new o[(_0x44174b(0x290))](_0x14d708)[_0x44174b(0x2d2)](0.2)['toRgbString'](),_0x1ba1ec=new T[(_0x44174b(0x51a))](Pi+o[_0x44174b(0x523)][_0x44174b(0x2be)](le),{'pointsGroup':_0x30d8a4,'fill':_0x1d2175||T[_0x44174b(0x351)](o[_0x44174b(0x381)]['black'],0.2),'left':_0xd4304a,'top':_0x2511e8,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x44174b(0x563)](_0x1ba1ec),this['_scene']['addObject'](_0x1ba1ec,T[_0x44174b(0x40e)]);}[_0x32c408(0x43b)](_0x2adb98){const _0x1a7956=_0x2adb98[0x0],_0x23d445=_0x1a7956[0x0],_0x1b28d7=_0x1a7956[0x2],{x:_0xd09bf1,y:_0x108dc6}=_0x23d445,{x:_0x4a04e1,y:_0x55fc16}=_0x1b28d7;return{'left':_0xd09bf1,'top':_0x108dc6,'width':_0x4a04e1-_0xd09bf1,'height':_0x55fc16-_0x108dc6};}[_0x32c408(0x318)](){const _0x1133de=_0x32c408,{scaleX:_0x51b96b,scaleY:_0x1fe843}=this[_0x1133de(0x49f)][_0x1133de(0x450)]();return Math[_0x1133de(0x528)](_0x51b96b,_0x1fe843);}}var Li=Object['defineProperty'],Ni=Object[_0x32c408(0x4e1)],Ai=(_0x47eba9,_0x189d1f,_0x275170,_0x56cfd8)=>{const _0x24b47d=_0x32c408;for(var _0x7f130e=_0x56cfd8>0x1?void 0x0:_0x56cfd8?Ni(_0x189d1f,_0x275170):_0x189d1f,_0x5a0493=_0x47eba9[_0x24b47d(0x462)]-0x1,_0x5b8189;_0x5a0493>=0x0;_0x5a0493--)(_0x5b8189=_0x47eba9[_0x5a0493])&&(_0x7f130e=(_0x56cfd8?_0x5b8189(_0x189d1f,_0x275170,_0x7f130e):_0x5b8189(_0x7f130e))||_0x7f130e);return _0x56cfd8&&_0x7f130e&&Li(_0x189d1f,_0x275170,_0x7f130e),_0x7f130e;},he=(_0xe69c82,_0xe96787)=>(_0x4ba124,_0x54b849)=>_0xe96787(_0x4ba124,_0x54b849,_0xe69c82);let ue=class extends o['RxDisposable']{constructor(_0x214632,_0x20102c,_0x5d95a4,_0x4f19da,_0x488fcc){const _0x1e110f=_0x32c408;super(),u(this,'_cursors',[]),(this[_0x1e110f(0x1bc)]=_0x214632,this['_docSkeletonManagerService']=_0x20102c,this[_0x1e110f(0x1c9)]=_0x5d95a4,this['_renderManagerService']=_0x4f19da,this['_themeService']=_0x488fcc,this[_0x1e110f(0x55b)]());}['_init'](){const _0x4eb444=_0x32c408,_0x548a8c=this['_context'][_0x4eb444(0x349)],_0x222fb4=this['_docSkeletonManagerService'];this['disposeWithMe'](v[_0x4eb444(0x42c)]([this[_0x4eb444(0x1c9)][_0x4eb444(0x2ee)](_0x548a8c),this[_0x4eb444(0x425)][_0x4eb444(0x2ed)]])[_0x4eb444(0x4f4)](C[_0x4eb444(0x42d)](([_0x4e74d1,_0x5a18a0])=>({'skeleton':_0x222fb4['getSkeleton'](),'cursors':[..._0x4e74d1[_0x4eb444(0x3f0)]()][_0x4eb444(0x570)](_0x3e3045=>({..._0x3e3045,'color':_0x5a18a0[_0x3e3045[_0x4eb444(0x228)]]}))})))[_0x4eb444(0x408)](_0x55a7de=>{const _0x3768b9=_0x4eb444;if(this[_0x3768b9(0x522)](),_0x55a7de){const {skeleton:_0x1f9857,cursors:_0x14ff60}=_0x55a7de;this[_0x3768b9(0x37d)](_0x1f9857,_0x14ff60);}}));}[_0x32c408(0x37d)](_0x265bef,_0x2a1642){const _0x1388a6=_0x32c408,{scene:_0x43ac4d,mainComponent:_0x202528}=this[_0x1388a6(0x1bc)],_0x52a39e=_0x2a1642['map'](_0x5ed188=>new Mi(_0x5ed188,_0x43ac4d,_0x265bef,_0x202528));this[_0x1388a6(0x4c8)]=_0x52a39e;}['_removeCollabCursors'](){const _0x35ca32=_0x32c408;this['_cursors'][_0x35ca32(0x241)](_0x468350=>_0x468350['dispose']()),this[_0x35ca32(0x4c8)]=[];}};ue=Ai([o['OnLifecycle'](o['LifecycleStages']['Steady'],ue),he(0x1,o[_0x32c408(0x395)](U[_0x32c408(0x41f)])),he(0x2,o[_0x32c408(0x395)](J)),he(0x3,T[_0x32c408(0x552)]),he(0x4,o[_0x32c408(0x395)](o[_0x32c408(0x4dc)]))],ue);var ji=Object[_0x32c408(0x539)],$i=Object['getOwnPropertyDescriptor'],Hi=(_0x369b4d,_0x141e35,_0x54d902,_0x461681)=>{const _0x289d6e=_0x32c408;for(var _0x4c9cac=_0x461681>0x1?void 0x0:_0x461681?$i(_0x141e35,_0x54d902):_0x141e35,_0x51b692=_0x369b4d[_0x289d6e(0x462)]-0x1,_0x15b4ee;_0x51b692>=0x0;_0x51b692--)(_0x15b4ee=_0x369b4d[_0x51b692])&&(_0x4c9cac=(_0x461681?_0x15b4ee(_0x141e35,_0x54d902,_0x4c9cac):_0x15b4ee(_0x4c9cac))||_0x4c9cac);return _0x461681&&_0x4c9cac&&ji(_0x141e35,_0x54d902,_0x4c9cac),_0x4c9cac;},ye=(_0x1dfeb0,_0x5b56f2)=>(_0x945bdf,_0x349a3a)=>_0x5b56f2(_0x945bdf,_0x349a3a,_0x1dfeb0);let fe=class{constructor(_0xb89a31,_0x1205d5,_0x1780bf){const _0x4127dc=_0x32c408;this[_0x4127dc(0x580)]=_0xb89a31,this[_0x4127dc(0x3ce)]=_0x1205d5,this['localeService']=_0x1780bf,this[_0x4127dc(0x38f)]();}[_0x32c408(0x38f)](){const _0x4d9bc3=_0x32c408;this[_0x4d9bc3(0x3ce)][_0x4d9bc3(0x29c)]({'priority':0x1,'interceptor':(_0x4f8251,_0x280189)=>_0x280189(_0x4f8251)[_0x4d9bc3(0x4f4)](v[_0x4d9bc3(0x314)](async _0x162446=>{const _0x34cd8c=_0x4d9bc3,_0xa63dfd=_0x162446;if(_0xa63dfd[_0x34cd8c(0x3bf)]===0x191&&window[_0x34cd8c(0x513)](this['localeService']['t'](_0x34cd8c(0x533)))){const _0xe01f4d=window[_0x34cd8c(0x481)](window['location'][_0x34cd8c(0x54f)]);window[_0x34cd8c(0x1fb)][_0x34cd8c(0x54f)]=this[_0x34cd8c(0x1fc)]()+'?url='+_0xe01f4d;}return _0xa63dfd;}))});}[_0x32c408(0x1fc)](){const _0x116bf8=_0x32c408;var _0x205c47;return(_0x205c47=this[_0x116bf8(0x580)][_0x116bf8(0x24a)](vt))!=null?_0x205c47:Jt;}};fe=Hi([ye(0x0,o[_0x32c408(0x312)]),ye(0x1,o[_0x32c408(0x395)](P[_0x32c408(0x421)])),ye(0x2,o['Inject'](o[_0x32c408(0x4f9)]))],fe);var xi=Object[_0x32c408(0x539)],ki=Object[_0x32c408(0x4e1)],Bi=(_0x256c3f,_0x5a6f2c,_0x2e1244,_0x10bfe4)=>{const _0x13d8c7=_0x32c408;for(var _0x17603f=_0x10bfe4>0x1?void 0x0:_0x10bfe4?ki(_0x5a6f2c,_0x2e1244):_0x5a6f2c,_0x49d8b9=_0x256c3f[_0x13d8c7(0x462)]-0x1,_0x16d271;_0x49d8b9>=0x0;_0x49d8b9--)(_0x16d271=_0x256c3f[_0x49d8b9])&&(_0x17603f=(_0x10bfe4?_0x16d271(_0x5a6f2c,_0x2e1244,_0x17603f):_0x16d271(_0x17603f))||_0x17603f);return _0x10bfe4&&_0x17603f&&xi(_0x5a6f2c,_0x2e1244,_0x17603f),_0x17603f;},rt=(_0x251330,_0xc3c944)=>(_0x235e42,_0x17d90a)=>_0xc3c944(_0x235e42,_0x17d90a,_0x251330);const Ut=_0x32c408(0x3f1),Fi=_0x32c408(0x347);exports[_0x32c408(0x1c2)]=class extends o[_0x32c408(0x503)]{constructor(_0x4c4ba8,_0x26e1b0){const _0x49b3e7=_0x32c408;super(),this[_0x49b3e7(0x32d)]=_0x4c4ba8,this[_0x49b3e7(0x580)]=_0x26e1b0,this[_0x49b3e7(0x2e6)]();}[_0x32c408(0x2e6)](){const _0x3ea62b=_0x32c408,_0x3d77cd=this;this['disposeWithMe'](this['_HTTPService'][_0x3ea62b(0x29c)]({'priority':0x3e7,'interceptor':P['MergeInterceptorFactory']({'isMatch'(_0x315748){const _0x2e1900=_0x3ea62b;var _0x1c63b4;if(_0x315748[_0x2e1900(0x39c)]===_0x2e1900(0x1cc)&&((_0x1c63b4=_0x315748[_0x2e1900(0x53a)])!=null&&_0x1c63b4[_0x2e1900(0x1da)])){const {objectID:_0x332918,objectType:_0x384a4c}=_0x315748['requestParams'][_0x2e1900(0x1da)]||{};if(!_0x332918||_0x384a4c===void 0x0)return!0x1;const _0x2abd8a=_0x3d77cd[_0x2e1900(0x422)]()+'/'+_0x384a4c+'/object/'+_0x332918+'/allowed';if(_0x315748[_0x2e1900(0x3ac)]===_0x2abd8a)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x56a0d8){const _0x519373=_0x3ea62b;var _0x18535b;return(_0x18535b=_0x56a0d8[_0x519373(0x53a)])==null?void 0x0:_0x18535b[_0x519373(0x1da)];},'mergeParamsToRequest'(_0x5a14a7,_0x298c50){const _0x3f088c=_0x3ea62b,_0x1f8582=_0x3d77cd['_getAPIPrefixPath']()+_0x3f088c(0x2b9),_0xb4115=_0x5a14a7[_0x3f088c(0x554)]((_0x48064c,_0x23a04b)=>{const _0x267c67=_0x3f088c,{unitID:_0x3c91d7,objectID:_0x2fbe5d,objectType:_0x4a101e,actions:_0x320164}=_0x23a04b;return _0x48064c[_0x3c91d7]||(_0x48064c[_0x3c91d7]={}),_0x48064c[_0x3c91d7][_0x2fbe5d]||(_0x48064c[_0x3c91d7][_0x2fbe5d]={'objectID':_0x2fbe5d,'objectType':_0x4a101e,'actions':[]}),_0x48064c[_0x3c91d7][_0x2fbe5d][_0x267c67(0x213)][_0x267c67(0x563)](..._0x320164),_0x48064c;},{}),_0x59b200=[];for(const _0x1da2ac in _0xb4115)for(const _0x2b99b9 in _0xb4115[_0x1da2ac]){const {actions:_0x4f139e,objectType:_0x3a996e}=_0xb4115[_0x1da2ac][_0x2b99b9],_0x448f77=[...new Set(_0x4f139e)];_0x59b200[_0x3f088c(0x563)]({'unitID':_0x1da2ac,'objectID':_0x2b99b9,'objectType':_0x3a996e,'actions':_0x448f77});}return new P[(_0x3f088c(0x368))](_0x3f088c(0x1cc),_0x1f8582,{'headers':_0x298c50['headers'],'withCredentials':_0x298c50[_0x3f088c(0x4fe)],'responseType':_0x298c50['responseType'],'body':{'requests':_0x59b200}});}},{'distributeResult'(_0x449211,_0xc0ad04){const _0x46505d=_0x3ea62b,{objectActions:_0x4f56bb}=_0x449211;return _0xc0ad04[_0x46505d(0x42d)](_0xfd4906=>{const _0x36e815=_0x46505d,{unitID:_0x43e263,objectID:_0x2bd558,actions:_0x17aa4d}=_0xfd4906,_0x9576a8=_0x4f56bb[_0x36e815(0x375)](_0x505a74=>_0x505a74[_0x36e815(0x434)]===_0x43e263&&_0x505a74[_0x36e815(0x56f)]===_0x2bd558),_0x5c2d13=_0x17aa4d[_0x36e815(0x42d)](_0x5985ef=>_0x9576a8==null?void 0x0:_0x9576a8[_0x36e815(0x213)][_0x36e815(0x375)](_0x1faa69=>_0x1faa69[_0x36e815(0x569)]===_0x5985ef))[_0x36e815(0x283)](_0x2d1c1f=>!!_0x2d1c1f);return{'config':_0xfd4906,'result':{'actions':_0x5c2d13,'error':_0x449211[_0x36e815(0x36f)]}};});}})}));}['_getAPIPrefixPath'](){const _0xf0616d=_0x32c408;var _0x143b4e;return(_0x143b4e=this[_0xf0616d(0x580)][_0xf0616d(0x24a)](Ut))!=null?_0x143b4e:Fi;}async['create'](_0x3f50f6){const _0x50f6c5=_0x32c408,_0x481185=this[_0x50f6c5(0x422)]()+'/'+_0x3f50f6['objectType']+_0x50f6c5(0x55f);return(await this[_0x50f6c5(0x32d)][_0x50f6c5(0x521)](_0x481185,{'body':_0x3f50f6}))['body'][_0x50f6c5(0x56f)]||'';}async[_0x32c408(0x41e)](_0x58e420){const _0x51c1b8=_0x32c408,_0x9b0892=this[_0x51c1b8(0x422)]()+_0x51c1b8(0x253);return(await this[_0x51c1b8(0x32d)][_0x51c1b8(0x521)](_0x9b0892,{'body':_0x58e420}))[_0x51c1b8(0x1da)]['objects'];}async[_0x32c408(0x2f6)](_0x8aeba7){const _0x2361fb=_0x32c408,_0xa185b=this[_0x2361fb(0x422)]()+'/'+_0x8aeba7[_0x2361fb(0x4be)]+_0x2361fb(0x2bf)+_0x8aeba7[_0x2361fb(0x56f)];await this['_HTTPService'][_0x2361fb(0x1fe)](_0xa185b,{'body':_0x8aeba7});}async[_0x32c408(0x4ad)](_0xb7d548){const _0x591de6=_0x32c408,_0x1cae1d=this[_0x591de6(0x422)]()+'/'+_0xb7d548['objectType']+_0x591de6(0x2bf)+_0xb7d548['objectID']+_0x591de6(0x470);return(await this[_0x591de6(0x32d)][_0x591de6(0x521)](_0x1cae1d,{'body':_0xb7d548}))['body']['actions'];}async[_0x32c408(0x3dc)](_0x3221a2){const _0x327bb9=_0x32c408,_0x34a58d=this[_0x327bb9(0x422)]()+_0x327bb9(0x2b9);return(await this['_HTTPService'][_0x327bb9(0x521)](_0x34a58d,{'body':{'requests':_0x3221a2}}))[_0x327bb9(0x1da)][_0x327bb9(0x336)];}async[_0x32c408(0x32c)](_0x4415d6){const _0x2b52bb=_0x32c408,_0x5e0bc2=this[_0x2b52bb(0x422)]()+'/'+_0x4415d6[_0x2b52bb(0x4be)]+'/role',_0x161616=await this[_0x2b52bb(0x32d)]['post'](_0x5e0bc2,{'body':_0x4415d6});return{'roles':_0x161616[_0x2b52bb(0x1da)][_0x2b52bb(0x202)],'actions':_0x161616[_0x2b52bb(0x1da)]['actions']};}async[_0x32c408(0x54c)](_0x550e71){const _0x21aa74=_0x32c408,_0x3b3c77=this['_getAPIPrefixPath']()+_0x21aa74(0x3be);await this[_0x21aa74(0x32d)][_0x21aa74(0x3da)](_0x3b3c77,{'params':{'collaboratorID':_0x550e71[_0x21aa74(0x346)],'objectID':_0x550e71[_0x21aa74(0x56f)],'unitID':_0x550e71['unitID']}});}async[_0x32c408(0x2ec)](_0x4a2ffa){const _0x3e29e6=_0x32c408,_0x426c20=this[_0x3e29e6(0x422)]()+_0x3e29e6(0x3be);await this[_0x3e29e6(0x32d)][_0x3e29e6(0x2ad)](_0x426c20,{'body':_0x4a2ffa});}async[_0x32c408(0x564)](_0x2cadd3){const _0x482d25=_0x32c408,_0x9d51a1=this['_getAPIPrefixPath']()+_0x482d25(0x3be);await this['_HTTPService']['post'](_0x9d51a1,{'body':_0x2cadd3});}async['listCollaborators'](_0x5c8c04){const _0x137349=_0x32c408,_0x5ab919=this[_0x137349(0x422)]()+_0x137349(0x3be);return(await this[_0x137349(0x32d)][_0x137349(0x43e)](_0x5ab919,{'params':{'objectID':_0x5c8c04['objectID'],'unitID':_0x5c8c04['unitID']}}))[_0x137349(0x1da)]['collaborators'];}async[_0x32c408(0x309)](_0x497cc3){const _0x27ec8f=_0x32c408,_0x5e46ec=this['_getAPIPrefixPath']()+_0x27ec8f(0x3be);await this[_0x27ec8f(0x32d)][_0x27ec8f(0x1fe)](_0x5e46ec,{'body':_0x497cc3});}},exports['AuthzIoHttpService']=Bi([rt(0x0,o[_0x32c408(0x395)](P['HTTPService'])),rt(0x1,o[_0x32c408(0x395)](o[_0x32c408(0x312)]))],exports[_0x32c408(0x1c2)]);var Vi=Object[_0x32c408(0x539)],Wi=Object[_0x32c408(0x4e1)],Gi=(_0x95142e,_0x13f253,_0x23cbec,_0x583409)=>{const _0x4abf86=_0x32c408;for(var _0x5a8cbc=_0x583409>0x1?void 0x0:_0x583409?Wi(_0x13f253,_0x23cbec):_0x13f253,_0xf1c4d0=_0x95142e[_0x4abf86(0x462)]-0x1,_0x4e5d2c;_0xf1c4d0>=0x0;_0xf1c4d0--)(_0x4e5d2c=_0x95142e[_0xf1c4d0])&&(_0x5a8cbc=(_0x583409?_0x4e5d2c(_0x13f253,_0x23cbec,_0x5a8cbc):_0x4e5d2c(_0x5a8cbc))||_0x5a8cbc);return _0x583409&&_0x5a8cbc&&Vi(_0x13f253,_0x23cbec,_0x5a8cbc),_0x5a8cbc;},ot=(_0x49869d,_0x1b339d)=>(_0x38c8b7,_0x3489ab)=>_0x1b339d(_0x38c8b7,_0x3489ab,_0x49869d);const Yi=[_0x32c408(0x1c4),_0x32c408(0x4e9),'image/jpg',_0x32c408(0x48e),_0x32c408(0x448)],Ki=0x5*0x400*0x400,Xi='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',qi=_0x32c408(0x50d),Ji=_0x32c408(0x34e),zi=_0x32c408(0x373);exports['ImageIoService']=class{constructor(_0x130021,_0x2612fe){const _0x470b57=_0x32c408;u(this,'_waitCount',0x0),u(this,_0x470b57(0x385),new v[(_0x470b57(0x4f1))]()),u(this,'change$',this['_change$']),u(this,_0x470b57(0x2fa),new Map()),(this[_0x470b57(0x3ce)]=_0x130021,this[_0x470b57(0x580)]=_0x2612fe);}[_0x32c408(0x393)](_0x3fcd81){const _0x29294b=_0x32c408;this[_0x29294b(0x4d0)]=_0x3fcd81,this['_change$'][_0x29294b(0x226)](_0x3fcd81);}[_0x32c408(0x3fe)](_0x14d8b0,_0x16bb91){const _0x1e6b5d=_0x32c408;if(_0x16bb91===N[_0x1e6b5d(0x4e0)][_0x1e6b5d(0x207)]){const _0x267fa3=new Image();return _0x267fa3['src']=_0x14d8b0,_0x267fa3;}return this[_0x1e6b5d(0x2fa)][_0x1e6b5d(0x43e)](_0x14d8b0);}[_0x32c408(0x21a)](_0x4573aa,_0x20445d,_0x22514b){const _0x426e33=_0x32c408;_0x20445d===N[_0x426e33(0x4e0)][_0x426e33(0x207)]||_0x22514b==null||this[_0x426e33(0x2fa)][_0x426e33(0x33b)](_0x4573aa,_0x22514b);}async[_0x32c408(0x38c)](_0x5a2e17){const _0x5637c6=_0x32c408;try{const _0x2948d0=this[_0x5637c6(0x3f3)](this[_0x5637c6(0x2f0)](),''+_0x5a2e17),_0x46632b=(await this[_0x5637c6(0x3ce)][_0x5637c6(0x43e)](_0x2948d0))[_0x5637c6(0x1da)];return _0x46632b[_0x5637c6(0x36f)]&&_0x46632b[_0x5637c6(0x36f)]['code']===mt['OK']?Promise[_0x5637c6(0x46d)](_0x46632b[_0x5637c6(0x3ac)]):Promise[_0x5637c6(0x57b)](_0x46632b[_0x5637c6(0x36f)]);}catch(_0xfdc781){return Promise[_0x5637c6(0x57b)](_0xfdc781);}}async[_0x32c408(0x307)](_0x4ccb77){const _0x54b596=_0x32c408;let _0x138b0c='';if(!Yi[_0x54b596(0x327)](_0x4ccb77[_0x54b596(0x430)]))return this[_0x54b596(0x2c4)](),Promise[_0x54b596(0x57b)](new Error(N[_0x54b596(0x572)]['ERROR_IMAGE_TYPE']));if(_0x4ccb77['size']>Ki)return this[_0x54b596(0x2c4)](),Promise['reject'](new Error(N['ImageUploadStatusType'][_0x54b596(0x3bb)]));try{const _0x462806=new FormData();_0x462806[_0x54b596(0x4a1)](_0x54b596(0x478),_0x4ccb77);const _0xa90113=this['_getUploadFileURL']()+_0x54b596(0x4ba)+_0x4ccb77[_0x54b596(0x2fc)]['toString'](),_0x54c8bf=await(await fetch(_0xa90113,{'method':_0x54b596(0x1cc),'body':_0x462806}))[_0x54b596(0x279)]();if(typeof _0x54c8bf[_0x54b596(0x28f)]!=_0x54b596(0x3ea))return this[_0x54b596(0x2c4)](),Promise['reject'](new Error(N['ImageUploadStatusType'][_0x54b596(0x1cf)]));_0x138b0c=_0x54c8bf['FileId'];}catch{return this['_decreaseWaiting'](),Promise['reject'](new Error(N['ImageUploadStatusType'][_0x54b596(0x1cf)]));}return new Promise((_0x15d1cf,_0x4f6449)=>{const _0x58b74e=new FileReader();_0x58b74e['readAsDataURL'](_0x4ccb77),_0x58b74e['onload']=_0x10fc3f=>{const _0x2a8b1a=_0x453d;var _0x4a3137;const _0x813dad=(_0x4a3137=_0x10fc3f[_0x2a8b1a(0x56d)])==null?void 0x0:_0x4a3137[_0x2a8b1a(0x52d)];if(_0x813dad==null){this[_0x2a8b1a(0x2c4)](),_0x4f6449(new Error(N['ImageUploadStatusType'][_0x2a8b1a(0x1cf)]));return;}const _0x83d073=o['Tools'][_0x2a8b1a(0x2be)](0x6);_0x15d1cf({'imageId':_0x83d073,'imageSourceType':N[_0x2a8b1a(0x4e0)][_0x2a8b1a(0x3e8)],'source':_0x138b0c,'base64Cache':_0x813dad,'status':N[_0x2a8b1a(0x572)][_0x2a8b1a(0x3c5)]}),this[_0x2a8b1a(0x2c4)]();};});}[_0x32c408(0x319)](){const _0x7595ee=_0x32c408;var _0x4c10f7;return(_0x4c10f7=this['_configService'][_0x7595ee(0x24a)](Xi))!=null?_0x4c10f7:qi;}['_getSignURL'](){var _0xf4ec66;return(_0xf4ec66=this['_configService']['getConfig'](Ji))!=null?_0xf4ec66:zi;}[_0x32c408(0x3f3)](_0x2e3567,_0x2821e8){const _0x5090cb=_0x32c408;return _0x2e3567[_0x5090cb(0x1ea)](_0x5090cb(0x1c1),_0x2821e8);}[_0x32c408(0x2c4)](){const _0x3713d8=_0x32c408;this['_waitCount']-=0x1,this[_0x3713d8(0x385)][_0x3713d8(0x226)](this[_0x3713d8(0x4d0)]);}},exports['ImageIoService']=Gi([ot(0x0,o[_0x32c408(0x395)](P[_0x32c408(0x421)])),ot(0x1,o[_0x32c408(0x312)])],exports['ImageIoService']);var Zi=Object[_0x32c408(0x539)],Qi=Object[_0x32c408(0x4e1)],en=(_0x313777,_0x48b73a,_0x39d635,_0x360983)=>{const _0x41a5e8=_0x32c408;for(var _0x4f4b53=_0x360983>0x1?void 0x0:_0x360983?Qi(_0x48b73a,_0x39d635):_0x48b73a,_0x4b332f=_0x313777[_0x41a5e8(0x462)]-0x1,_0x7f17a6;_0x4b332f>=0x0;_0x4b332f--)(_0x7f17a6=_0x313777[_0x4b332f])&&(_0x4f4b53=(_0x360983?_0x7f17a6(_0x48b73a,_0x39d635,_0x4f4b53):_0x7f17a6(_0x4f4b53))||_0x4f4b53);return _0x360983&&_0x4f4b53&&Zi(_0x48b73a,_0x39d635,_0x4f4b53),_0x4f4b53;},re=(_0x2acd21,_0xe62d57)=>(_0x222f7e,_0x4a4a62)=>_0xe62d57(_0x222f7e,_0x4a4a62,_0x2acd21);let de=class extends o[_0x32c408(0x476)]{constructor(_0x5d4350,_0x4d686b,_0x2685ac,_0x31e8b2,_0x632655){const _0x332041=_0x32c408;super(),this[_0x332041(0x321)]=_0x5d4350,this[_0x332041(0x46c)]=_0x4d686b,this[_0x332041(0x280)]=_0x2685ac,this[_0x332041(0x288)]=_0x31e8b2,this['_localeService']=_0x632655,this[_0x332041(0x3b4)](),this['_initCloseConn']();}[_0x32c408(0x51b)](){const _0x38b386=_0x32c408,_0x455ca6=async _0x5cf48a=>{const _0x4e81ca=_0x453d;(await this[_0x4e81ca(0x288)]['requireSession'](_0x5cf48a))['event$'][_0x4e81ca(0x4f4)](C[_0x4e81ca(0x283)](_0x160629=>_0x160629[_0x4e81ca(0x2e8)]===_[_0x4e81ca(0x1d6)][_0x4e81ca(0x417)]),C[_0x4e81ca(0x3d9)](this['dispose$']))[_0x4e81ca(0x408)](_0x2d87e9=>{const _0x495872=_0x4e81ca,_0x594071=_0x2d87e9,{reason:_0xbade23}=_0x594071['data'];this[_0x495872(0x321)]['get'](L[_0x495872(0x495)])[_0x495872(0x389)]({'type':z[_0x495872(0x3a2)][_0x495872(0x276)],'content':this['_localeService']['t'](_0x495872(0x4b9))+'('+_0xbade23+')'}),this[_0x495872(0x280)][_0x495872(0x1ba)](new p['WorkbookEditablePermission'](_0x5cf48a)['id'],!0x1),this[_0x495872(0x288)][_0x495872(0x4ee)](_0x5cf48a);});};v[_0x38b386(0x562)](this[_0x38b386(0x46c)][_0x38b386(0x468)](o[_0x38b386(0x51d)][_0x38b386(0x2b8)]),this['_univerInstanceService'][_0x38b386(0x468)](o[_0x38b386(0x51d)][_0x38b386(0x4a0)]))[_0x38b386(0x4f4)](C[_0x38b386(0x42d)](_0x238e7a=>_0x238e7a[_0x38b386(0x2de)]()),C[_0x38b386(0x283)](_0x2a8da8=>!o[_0x38b386(0x484)](_0x2a8da8)),C[_0x38b386(0x3d9)](this['dispose$']))[_0x38b386(0x408)](_0x494b55=>{_0x455ca6(_0x494b55);});}[_0x32c408(0x3b4)](){const _0xa783cf=_0x32c408,_0xcd29c=async _0x422a13=>{const _0x5d2e4b=_0x453d;(await this[_0x5d2e4b(0x288)]['requireSession'](_0x422a13))['event$']['pipe'](C[_0x5d2e4b(0x283)](_0x3f0a2f=>_0x3f0a2f['eventID']===_['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),C[_0x5d2e4b(0x3d9)](this[_0x5d2e4b(0x2b2)]))[_0x5d2e4b(0x408)](_0x20fef1=>{const _0x4c03f2=_0x5d2e4b,_0x5eaa2a=_0x20fef1,{objectId:_0x4c4118}=_0x5eaa2a[_0x4c03f2(0x520)];_0x4c4118===_0x422a13&&this['_injector']['get'](q[_0x4c03f2(0x57e)])[_0x4c03f2(0x37b)](_0x422a13);});};v[_0xa783cf(0x562)](this[_0xa783cf(0x46c)]['getTypeOfUnitAdded$'](o[_0xa783cf(0x51d)]['UNIVER_SHEET']),this[_0xa783cf(0x46c)][_0xa783cf(0x468)](o[_0xa783cf(0x51d)]['UNIVER_DOC']))[_0xa783cf(0x4f4)](C[_0xa783cf(0x42d)](_0x3ac9e6=>_0x3ac9e6[_0xa783cf(0x2de)]()),C[_0xa783cf(0x283)](_0x589aea=>!o['isInternalEditorID'](_0x589aea)),C[_0xa783cf(0x3d9)](this[_0xa783cf(0x2b2)]))['subscribe'](_0x80affa=>{_0xcd29c(_0x80affa);});}};de=en([o[_0x32c408(0x540)](o[_0x32c408(0x2b6)]['Starting'],de),re(0x0,o[_0x32c408(0x395)](o[_0x32c408(0x337)])),re(0x1,o[_0x32c408(0x558)]),re(0x2,o[_0x32c408(0x3ed)]),re(0x3,o['Inject'](exports['CollaborationSessionService'])),re(0x4,o[_0x32c408(0x395)](o[_0x32c408(0x4f9)]))],de);var yt=Object[_0x32c408(0x539)],tn=Object[_0x32c408(0x4e1)],sn=(_0x47084d,_0x3f810c,_0x43219b)=>_0x3f810c in _0x47084d?yt(_0x47084d,_0x3f810c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43219b}):_0x47084d[_0x3f810c]=_0x43219b,nn=(_0x2eef28,_0x1c7d91,_0x295c95,_0x4ac864)=>{const _0x308198=_0x32c408;for(var _0x3bafe7=_0x4ac864>0x1?void 0x0:_0x4ac864?tn(_0x1c7d91,_0x295c95):_0x1c7d91,_0x4ac7db=_0x2eef28[_0x308198(0x462)]-0x1,_0x1a9a0c;_0x4ac7db>=0x0;_0x4ac7db--)(_0x1a9a0c=_0x2eef28[_0x4ac7db])&&(_0x3bafe7=(_0x4ac864?_0x1a9a0c(_0x1c7d91,_0x295c95,_0x3bafe7):_0x1a9a0c(_0x3bafe7))||_0x3bafe7);return _0x4ac864&&_0x3bafe7&&yt(_0x1c7d91,_0x295c95,_0x3bafe7),_0x3bafe7;},we=(_0x2fe9c5,_0x5310be)=>(_0x42d2b5,_0xac44b2)=>_0x5310be(_0x42d2b5,_0xac44b2,_0x2fe9c5),rn=(_0xd36878,_0x20156d,_0x4c8eb2)=>sn(_0xd36878,_0x20156d+'',_0x4c8eb2);const on='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x32c408(0x1e5)]=class extends o[_0x32c408(0x289)]{constructor(_0x1a8f17,_0x47190e,_0x1f846c,_0x53da47){const _0x5034b3=_0x32c408;super(),this[_0x5034b3(0x446)]=_0x1a8f17,this[_0x5034b3(0x505)]=_0x47190e,this[_0x5034b3(0x364)]=_0x1f846c,this[_0x5034b3(0x321)]=_0x53da47;}[_0x32c408(0x25f)](_0x161f34){const _0x48c98a=_0x32c408;this[_0x48c98a(0x352)](_0x161f34);}[_0x32c408(0x3a4)](){this['_registerRenderDependencies']();}[_0x32c408(0x352)](_0x2939bf){const _0x52bf0a=_0x32c408;var _0x593a2c,_0x27af58,_0x521f3d,_0x4d78ca;_0x2939bf[_0x52bf0a(0x432)](o[_0x52bf0a(0x25e)])&&this[_0x52bf0a(0x505)][_0x52bf0a(0x36f)]('[UniverCollaborationClientPlugin]',_0x52bf0a(0x244));let _0x1466b3=[[o[_0x52bf0a(0x25e)],{'useClass':je}],[exports[_0x52bf0a(0x4e3)]],[Ve],[P[_0x52bf0a(0x421)]],[Ge,{'useClass':Pt}],[W],[exports[_0x52bf0a(0x39f)]],[P[_0x52bf0a(0x527)]],[me],[ve],[Se],[Fe],[fe],[Be],[de],[ke,{'useClass':(_0x27af58=(_0x593a2c=this[_0x52bf0a(0x446)])==null?void 0x0:_0x593a2c[_0x52bf0a(0x27b)])!=null?_0x27af58:exports['CollaborationSocketService']}],[P['IHTTPImplementation'],{'useClass':P[_0x52bf0a(0x50c)]}],[o[_0x52bf0a(0x2a4)],{'useClass':exports[_0x52bf0a(0x2d3)]}],[o[_0x52bf0a(0x264)],{'useClass':exports[_0x52bf0a(0x1c2)]}],[N[_0x52bf0a(0x407)],{'useClass':exports[_0x52bf0a(0x284)]}],[exports[_0x52bf0a(0x4fc)]],[exports[_0x52bf0a(0x22c)]],[exports[_0x52bf0a(0x1ca)]],[_e],[J]];(_0x521f3d=this[_0x52bf0a(0x446)])!=null&&_0x521f3d[_0x52bf0a(0x55e)]&&_0x1466b3['push']([Ie,{'useClass':hs}]),_0x1466b3=o[_0x52bf0a(0x1f4)](_0x1466b3,(_0x4d78ca=this['_config'])==null?void 0x0:_0x4d78ca[_0x52bf0a(0x251)]),_0x1466b3[_0x52bf0a(0x241)](_0x155a83=>_0x2939bf['add'](_0x155a83)),this['_initModules']();}[_0x32c408(0x4bc)](){const _0x1385e2=_0x32c408;this['disposeWithMe'](this['_renderManagerService'][_0x1385e2(0x57d)](o[_0x1385e2(0x51d)]['UNIVER_DOC'],[ue])),this[_0x1385e2(0x45d)](this[_0x1385e2(0x364)][_0x1385e2(0x57d)](o[_0x1385e2(0x51d)][_0x1385e2(0x2b8)],[Ae]));}['_initModules'](){const _0x151f20=_0x32c408;var _0xd234e8,_0xc8c365;this['_injector'][_0x151f20(0x43e)](P[_0x151f20(0x421)])[_0x151f20(0x29c)]({'priority':0x14,'interceptor':P[_0x151f20(0x377)]({'maxParallel':0x6})}),(_0xd234e8=this[_0x151f20(0x446)])!=null&&_0xd234e8[_0x151f20(0x391)]||this[_0x151f20(0x321)][_0x151f20(0x43e)](exports[_0x151f20(0x39f)])[_0x151f20(0x24c)](),(_0xc8c365=this['_config'])!=null&&_0xc8c365[_0x151f20(0x394)]&&this[_0x151f20(0x321)][_0x151f20(0x43e)](fe);}},rn(exports[_0x32c408(0x1e5)],_0x32c408(0x37e),on),exports['UniverCollaborationClientPlugin']=nn([o[_0x32c408(0x37f)](_[_0x32c408(0x2ca)]),we(0x1,o['ILogService']),we(0x2,T[_0x32c408(0x552)]),we(0x3,o['Inject'](o['Injector']))],exports[_0x32c408(0x1e5)]),exports['AUTHZ_URL_KEY']=Ut,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=St,exports[_0x32c408(0x2cc)]=ht,exports[_0x32c408(0x2ff)]=D,exports['CollaborationStatusDisplay']=Dt,exports[_0x32c408(0x414)]=Be,exports['HEARTBEAT_INTERVAL_KEY']=_t,exports[_0x32c408(0x223)]=He,exports['ICollaborationSocketService']=ke,exports[_0x32c408(0x257)]=Ge,exports[_0x32c408(0x345)]=dt,exports[_0x32c408(0x4bd)]=vt,exports[_0x32c408(0x227)]=lt,exports[_0x32c408(0x471)]=at,exports['SNAPSHOT_URL_KEY']=ct,exports[_0x32c408(0x500)]=V,exports[_0x32c408(0x3d4)]=bt,exports['WebURLService']=Pt,exports[_0x32c408(0x57c)]=gt,exports[_0x32c408(0x457)]=ft;
1
+ 'use strict';const _0x2cc1b3=_0x4b8d;(function(_0xf11e04,_0x12dd9f){const _0x2a6521=_0x4b8d,_0x672b45=_0xf11e04();while(!![]){try{const _0x31b207=parseInt(_0x2a6521(0x177))/0x1*(-parseInt(_0x2a6521(0x15b))/0x2)+parseInt(_0x2a6521(0x1e9))/0x3+parseInt(_0x2a6521(0x191))/0x4*(parseInt(_0x2a6521(0x494))/0x5)+parseInt(_0x2a6521(0x391))/0x6+-parseInt(_0x2a6521(0x469))/0x7*(parseInt(_0x2a6521(0x39c))/0x8)+parseInt(_0x2a6521(0x45b))/0x9*(-parseInt(_0x2a6521(0x474))/0xa)+-parseInt(_0x2a6521(0x3b3))/0xb*(parseInt(_0x2a6521(0x519))/0xc);if(_0x31b207===_0x12dd9f)break;else _0x672b45['push'](_0x672b45['shift']());}catch(_0x5c05a6){_0x672b45['push'](_0x672b45['shift']());}}}(_0x1e54,0x527f8));var $t=Object['defineProperty'],xt=(_0x22392b,_0x1a83a8,_0x30f589)=>_0x1a83a8 in _0x22392b?$t(_0x22392b,_0x1a83a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30f589}):_0x22392b[_0x1a83a8]=_0x30f589,u=(_0x3d5314,_0x57cc39,_0x52d9bf)=>xt(_0x3d5314,typeof _0x57cc39!=_0x2cc1b3(0x2ea)?_0x57cc39+'':_0x57cc39,_0x52d9bf);Object[_0x2cc1b3(0x1b2)](exports,Symbol['toStringTag'],{'value':_0x2cc1b3(0x1c2)});const o=require('@univerjs/core'),p=require(_0x2cc1b3(0x163)),Q=require('@univerjs/design'),L=require(_0x2cc1b3(0x449)),_=require('@univerjs-pro/collaboration'),v=require(_0x2cc1b3(0x422)),C=require(_0x2cc1b3(0x4cc)),P=require(_0x2cc1b3(0x354)),U=require(_0x2cc1b3(0x511)),A=require(_0x2cc1b3(0x4ad)),b=require(_0x2cc1b3(0x396)),Ye=require(_0x2cc1b3(0x36f)),$e=require(_0x2cc1b3(0x147)),J=require(_0x2cc1b3(0x51b)),y=require(_0x2cc1b3(0x24c)),Ht=require('clsx'),kt=require('@univerjs/rpc'),ct=_0x2cc1b3(0x268),Bt=_0x2cc1b3(0x1dc),lt=_0x2cc1b3(0x273),ht='SEND_CHANGESET_TIMEOUT',Ft=0x7d0,_t=_0x2cc1b3(0x276),Vt=_0x2cc1b3(0x41c),ut=_0x2cc1b3(0x2cd),Wt=0x7530,xe='HEARTBEAT_TIMEOUT',dt=0x2710,Gt=_0x2cc1b3(0x299),Yt=0x4e20,Kt='RETRY_CONNECTING_MAX_COUNT',Xt=0x3,St='LOCAL_CACHE_INTERVAL',qt=0x3e8,vt=_0x2cc1b3(0x3de),zt=_0x2cc1b3(0x16d),mt='LOGIN_URL_KEY',Jt=_0x2cc1b3(0x439);var gt=(_0x4884e5=>(_0x4884e5[_0x4884e5[_0x2cc1b3(0x4d2)]=0x0]=_0x2cc1b3(0x4d2),_0x4884e5[_0x4884e5['OK']=0x1]='OK',_0x4884e5[_0x4884e5[_0x2cc1b3(0x48c)]=0x2]=_0x2cc1b3(0x48c),_0x4884e5[_0x4884e5[_0x2cc1b3(0x40e)]=0x3]='PERMISSION_DENIED',_0x4884e5[_0x4884e5['NOT_FOUND']=0x4]='NOT_FOUND',_0x4884e5[_0x4884e5[_0x2cc1b3(0x528)]=0x5]=_0x2cc1b3(0x528),_0x4884e5[_0x4884e5[_0x2cc1b3(0x481)]=0x6]=_0x2cc1b3(0x481),_0x4884e5[_0x4884e5['INVALID_ARGUMENT']=0x7]=_0x2cc1b3(0x50d),_0x4884e5[_0x4884e5[_0x2cc1b3(0x3ad)]=0x8]=_0x2cc1b3(0x3ad),_0x4884e5[_0x4884e5[_0x2cc1b3(0x188)]=0x9]='COMPLETION_FINISHED',_0x4884e5[_0x4884e5[_0x2cc1b3(0x218)]=0x1389]=_0x2cc1b3(0x218),_0x4884e5[_0x4884e5[_0x2cc1b3(0x1bd)]=0x1771]=_0x2cc1b3(0x1bd),_0x4884e5[_0x4884e5[_0x2cc1b3(0x306)]=0x1772]=_0x2cc1b3(0x306),_0x4884e5[_0x4884e5['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x4884e5[_0x4884e5['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x2cc1b3(0x498),_0x4884e5[_0x4884e5[_0x2cc1b3(0x3e2)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x4884e5[_0x4884e5[_0x2cc1b3(0x220)]=0x1b5c]=_0x2cc1b3(0x220),_0x4884e5[_0x4884e5[_0x2cc1b3(0x2ab)]=0x1f41]=_0x2cc1b3(0x2ab),_0x4884e5[_0x4884e5[_0x2cc1b3(0x4b6)]=0x2329]=_0x2cc1b3(0x4b6),_0x4884e5[_0x4884e5[_0x2cc1b3(0x21c)]=0x232a]=_0x2cc1b3(0x21c),_0x4884e5[_0x4884e5['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x2cc1b3(0x407),_0x4884e5[_0x4884e5[_0x2cc1b3(0x24b)]=0x232c]=_0x2cc1b3(0x24b),_0x4884e5[_0x4884e5[_0x2cc1b3(0x315)]=0x232d]=_0x2cc1b3(0x315),_0x4884e5[_0x4884e5['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x2cc1b3(0x3ea),_0x4884e5[_0x4884e5[_0x2cc1b3(0x1e5)]=0x2712]=_0x2cc1b3(0x1e5),_0x4884e5[_0x4884e5[_0x2cc1b3(0x349)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4884e5[_0x4884e5['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x2cc1b3(0x2fd),_0x4884e5[_0x4884e5[_0x2cc1b3(0x19f)]=-0x1]=_0x2cc1b3(0x19f),_0x4884e5))(gt||{}),j=(_0xdb0c6c=>(_0xdb0c6c[_0xdb0c6c[_0x2cc1b3(0x3a4)]=0x0]=_0x2cc1b3(0x3a4),_0xdb0c6c[_0xdb0c6c[_0x2cc1b3(0x40b)]=0x1]=_0x2cc1b3(0x40b),_0xdb0c6c[_0xdb0c6c[_0x2cc1b3(0x3a1)]=0x2]='UNIVER_SHEET',_0xdb0c6c[_0xdb0c6c['UNIVER_SLIDE']=0x3]=_0x2cc1b3(0x237),_0xdb0c6c[_0xdb0c6c[_0x2cc1b3(0x4e2)]=0x4]=_0x2cc1b3(0x4e2),_0xdb0c6c[_0xdb0c6c[_0x2cc1b3(0x19f)]=-0x1]=_0x2cc1b3(0x19f),_0xdb0c6c))(j||{}),T=(_0x468fc0=>(_0x468fc0[_0x468fc0[_0x2cc1b3(0x3d5)]=0x0]=_0x2cc1b3(0x3d5),_0x468fc0[_0x468fc0['HELLO']=0x1]=_0x2cc1b3(0x2a0),_0x468fc0[_0x468fc0[_0x2cc1b3(0x520)]=0x2]=_0x2cc1b3(0x520),_0x468fc0[_0x468fc0[_0x2cc1b3(0x222)]=0x3]=_0x2cc1b3(0x222),_0x468fc0[_0x468fc0[_0x2cc1b3(0x3b9)]=0x4]=_0x2cc1b3(0x3b9),_0x468fc0[_0x468fc0[_0x2cc1b3(0x398)]=0x5]='HEARTBEAT',_0x468fc0[_0x468fc0[_0x2cc1b3(0x397)]=0x6]='RECV',_0x468fc0[_0x468fc0[_0x2cc1b3(0x19f)]=-0x1]=_0x2cc1b3(0x19f),_0x468fc0))(T||{}),He=(_0x3a435d=>(_0x3a435d[_0x3a435d[_0x2cc1b3(0x257)]=0x0]=_0x2cc1b3(0x257),_0x3a435d[_0x3a435d['OK']=0x1]='OK',_0x3a435d[_0x3a435d[_0x2cc1b3(0x3cc)]=0x2]=_0x2cc1b3(0x3cc),_0x3a435d[_0x3a435d['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x3a435d))(He||{}),Zt=Object['defineProperty'],Qt=Object[_0x2cc1b3(0x47b)],es=(_0x5657ed,_0x3cf5b9,_0x369a8d,_0x1d8a1f)=>{const _0x1474f2=_0x2cc1b3;for(var _0x1b92a5=_0x1d8a1f>0x1?void 0x0:_0x1d8a1f?Qt(_0x3cf5b9,_0x369a8d):_0x3cf5b9,_0x53aeb5=_0x5657ed[_0x1474f2(0x209)]-0x1,_0x3e521e;_0x53aeb5>=0x0;_0x53aeb5--)(_0x3e521e=_0x5657ed[_0x53aeb5])&&(_0x1b92a5=(_0x1d8a1f?_0x3e521e(_0x3cf5b9,_0x369a8d,_0x1b92a5):_0x3e521e(_0x1b92a5))||_0x1b92a5);return _0x1d8a1f&&_0x1b92a5&&Zt(_0x3cf5b9,_0x369a8d,_0x1b92a5),_0x1b92a5;},Ke=(_0x2f694e,_0x558a0b)=>(_0xfde03c,_0x417b9c)=>_0x558a0b(_0xfde03c,_0x417b9c,_0x2f694e);let Y=class extends o[_0x2cc1b3(0x460)]{constructor(_0x207867,_0x511c98){const _0x456d19=_0x2cc1b3;super(),u(this,_0x456d19(0x23f),new Map()),(this['_univerInstanceService']=_0x207867,this[_0x456d19(0x4c4)]=_0x511c98,this[_0x456d19(0x4be)](o[_0x456d19(0x168)](v[_0x456d19(0x3e0)](this['_univerInstanceService'][_0x456d19(0x36a)](o[_0x456d19(0x271)]['UNIVER_SHEET'])[_0x456d19(0x478)](C['map'](_0x5ade47=>_0x5ade47[_0x456d19(0x15a)]())),this['_univerInstanceService'][_0x456d19(0x36a)](o[_0x456d19(0x271)][_0x456d19(0x40b)])[_0x456d19(0x478)](C['map'](_0x3e05d8=>_0x3e05d8[_0x456d19(0x15a)]())),this[_0x456d19(0x46f)]['getTypeOfUnitDisposed$'](o[_0x456d19(0x271)][_0x456d19(0x237)])[_0x456d19(0x478)](C['map'](_0x3015e1=>_0x3015e1[_0x456d19(0x15a)]())))['subscribe'](_0x5c6837=>this[_0x456d19(0x1cb)](_0x5c6837)))));}[_0x2cc1b3(0x50b)](_0x486406){const _0x386642=_0x2cc1b3;this[_0x386642(0x4c4)][_0x386642(0x50b)](_0x486406);}[_0x2cc1b3(0x215)](){const _0x43346c=_0x2cc1b3;return this[_0x43346c(0x4c4)][_0x43346c(0x215)]();}[_0x2cc1b3(0x180)](_0x591f8b,_0x58de24){const _0x2140db=_0x2cc1b3;let _0x2fb4f3=this['_roomMembers'][_0x2140db(0x3ba)](_0x591f8b);_0x2fb4f3||(_0x2fb4f3=new ts(),this[_0x2140db(0x23f)][_0x2140db(0x1b8)](_0x591f8b,_0x2fb4f3)),_0x2fb4f3['updateMember'](_0x58de24);}[_0x2cc1b3(0x192)](_0x5a9bf3,_0x46f7c1){const _0x3e2a5e=_0x2cc1b3,_0x24278b=this[_0x3e2a5e(0x23f)][_0x3e2a5e(0x3ba)](_0x5a9bf3);_0x24278b&&_0x24278b['removeMember'](_0x46f7c1);}[_0x2cc1b3(0x381)](_0x569047){const _0x4d0972=_0x2cc1b3;return this['_roomMembers'][_0x4d0972(0x3ba)](_0x569047);}[_0x2cc1b3(0x523)](_0x519e4c,_0x47052b){const _0x2fb369=_0x2cc1b3,_0x333323=this[_0x2fb369(0x23f)]['get'](_0x519e4c);if(_0x333323)return _0x333323[_0x2fb369(0x523)](_0x47052b);}[_0x2cc1b3(0x1cb)](_0x507e2f){const _0x32e4cc=_0x2cc1b3,_0x380de4=this[_0x32e4cc(0x23f)]['get'](_0x507e2f);_0x380de4&&(_0x380de4[_0x32e4cc(0x22c)](),this[_0x32e4cc(0x23f)][_0x32e4cc(0x386)](_0x507e2f));}['dispose'](){const _0x3b63a8=_0x2cc1b3;this[_0x3b63a8(0x23f)][_0x3b63a8(0x34c)](_0x4c0ddf=>_0x4c0ddf[_0x3b63a8(0x22c)]()),this[_0x3b63a8(0x23f)]['clear']();}};Y=es([Ke(0x0,o[_0x2cc1b3(0x298)]),Ke(0x1,o['Inject'](o[_0x2cc1b3(0x318)]))],Y);class ts extends o[_0x2cc1b3(0x460)]{constructor(){const _0x41b403=_0x2cc1b3;super(...arguments),u(this,_0x41b403(0x224),new Map());}[_0x2cc1b3(0x22c)](){const _0x54ce55=_0x2cc1b3;this[_0x54ce55(0x224)][_0x54ce55(0x1f8)]();}['updateMember'](_0x300952){const _0x44c3c1=_0x2cc1b3;this['_members'][_0x44c3c1(0x1b8)](_0x300952['memberID'],_0x300952);}[_0x2cc1b3(0x192)](_0x19df1d){const _0xf337ab=_0x2cc1b3;this[_0xf337ab(0x224)][_0xf337ab(0x386)](_0x19df1d);}[_0x2cc1b3(0x523)](_0x4995ec){const _0x402364=_0x2cc1b3;return this[_0x402364(0x224)][_0x402364(0x3ba)](_0x4995ec);}}function ft(_0x240005){const _0x37e797=_0x2cc1b3;var _0x1a997b,_0x596bba,_0x72eb8d,_0x150636;const _0x172811=_0x240005[_0x37e797(0x1c0)],_0x3773b4=JSON[_0x37e797(0x207)](_0x172811);switch(_0x3773b4[_0x37e797(0x3fd)]){case T[_0x37e797(0x398)]:case T[_0x37e797(0x2a0)]:{const _0x313730=_0x3773b4['infoRsp'];return{..._0x3773b4,'data':_0x313730,'cmd':_0x3773b4[_0x37e797(0x3fd)]};}case T[_0x37e797(0x520)]:{const _0x2ab07e=_0x3773b4[_0x37e797(0x4fb)];return{..._0x3773b4,'data':_0x2ab07e,'cmd':_0x3773b4[_0x37e797(0x3fd)]};}case T[_0x37e797(0x397)]:{const _0x14f2b1=_0x3773b4[_0x37e797(0x4db)];switch(_0x14f2b1[_0x37e797(0x266)]){case _[_0x37e797(0x173)][_0x37e797(0x172)]:return{..._0x3773b4,'data':{..._0x14f2b1,'data':(_0x1a997b=_0x14f2b1[_0x37e797(0x325)])==null?void 0x0:_0x1a997b['cs']},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)]['CHANGESET_ACK']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':(_0x596bba=_0x14f2b1[_0x37e797(0x4dd)])==null?void 0x0:_0x596bba['cs']},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)][_0x37e797(0x353)]:return{..._0x3773b4,'data':{..._0x14f2b1,'data':(_0x72eb8d=_0x14f2b1['newCsEvent'])==null?void 0x0:_0x72eb8d['cs']},'cmd':_0x3773b4['cmd']};case _[_0x37e797(0x173)]['CHANGESET_REJ']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':(_0x150636=_0x14f2b1[_0x37e797(0x517)])==null?void 0x0:_0x150636['cs']},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)][_0x37e797(0x49a)]:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x2ce)]},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)]['USERS_ENTER']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x518)]},'cmd':_0x3773b4['cmd']};case _[_0x37e797(0x173)][_0x37e797(0x21e)]:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1['leaveEvent']},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)]['LIVESHARE_NEW_HOST']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x3f1)]},'cmd':_0x3773b4['cmd']};case _['CollaborationEvent'][_0x37e797(0x17d)]:case _['CollaborationEvent']['LIVESHARE_OPERATION']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x524)]},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)][_0x37e797(0x2f1)]:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x3f1)]},'cmd':_0x3773b4[_0x37e797(0x3fd)]};case _[_0x37e797(0x173)][_0x37e797(0x3b4)]:return{..._0x3773b4,'data':_0x14f2b1,'cmd':_0x3773b4['cmd']};case _[_0x37e797(0x173)]['COMMENT_UPDATE']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x2b0)]},'cmd':_0x3773b4['cmd']};case _[_0x37e797(0x173)]['UPDATE_PERMISSION_OBJ']:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x372)]},'cmd':_0x3773b4['cmd']};case _[_0x37e797(0x173)][_0x37e797(0x3c3)]:return{..._0x3773b4,'data':{..._0x14f2b1,'data':_0x14f2b1[_0x37e797(0x1af)]},'cmd':_0x3773b4[_0x37e797(0x3fd)]};default:return _0x3773b4;}}default:return _0x3773b4;}}function It(_0x326216){const _0x1eafe3=_0x2cc1b3;switch(_0x326216['cmd']){case T[_0x1eafe3(0x398)]:case T[_0x1eafe3(0x2a0)]:return JSON[_0x1eafe3(0x3a5)]({'cmd':_0x326216[_0x1eafe3(0x3fd)],'routeKey':_0x326216['routeKey']});case T[_0x1eafe3(0x3b9)]:{let _0x57eaa4;switch(_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x266)]){case _[_0x1eafe3(0x173)][_0x1eafe3(0x49a)]:{_0x57eaa4={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x1c0)]};break;}case _[_0x1eafe3(0x173)][_0x1eafe3(0x21e)]:{_0x57eaa4={'eventID':_['CollaborationEvent'][_0x1eafe3(0x21e)],'leaveEvent':_0x326216['data'][_0x1eafe3(0x1c0)]};break;}case _[_0x1eafe3(0x173)][_0x1eafe3(0x3b2)]:{_0x57eaa4={'eventID':_['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x1c0)]};break;}case _[_0x1eafe3(0x173)]['LIVESHARE_NEW_HOST']:{_0x57eaa4={'eventID':_[_0x1eafe3(0x173)][_0x1eafe3(0x3a9)],'liveShareNewHost':_0x326216['data'][_0x1eafe3(0x1c0)]};break;}case _[_0x1eafe3(0x173)][_0x1eafe3(0x357)]:{_0x57eaa4={'eventID':_[_0x1eafe3(0x173)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x1c0)]};break;}case _['CollaborationEvent']['LIVESHARE_TERMINATE']:{_0x57eaa4={'eventID':_[_0x1eafe3(0x173)][_0x1eafe3(0x2f1)],'liveShareTerminate':_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x1c0)]};break;}case _[_0x1eafe3(0x173)][_0x1eafe3(0x1d0)]:{_0x57eaa4={'eventID':_[_0x1eafe3(0x173)][_0x1eafe3(0x1d0)],'liveShareRequestHost':_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x1c0)]};break;}case _[_0x1eafe3(0x173)]['LIVESHARE_FETCH_OPERATIONS']:{_0x57eaa4={'eventID':_[_0x1eafe3(0x173)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x57eaa4={'eventID':_0x326216[_0x1eafe3(0x1c0)][_0x1eafe3(0x266)]};}return JSON[_0x1eafe3(0x3a5)]({'cmd':_0x326216[_0x1eafe3(0x3fd)],'routeKey':_0x326216[_0x1eafe3(0x473)],'collaMsg':_0x57eaa4});}case T[_0x1eafe3(0x520)]:return JSON[_0x1eafe3(0x3a5)]({'cmd':_0x326216[_0x1eafe3(0x3fd)],'routeKey':_0x326216[_0x1eafe3(0x473)],'joinReq':_0x326216[_0x1eafe3(0x1c0)]});case T[_0x1eafe3(0x222)]:return JSON[_0x1eafe3(0x3a5)]({'cmd':_0x326216[_0x1eafe3(0x3fd)],'routeKey':_0x326216[_0x1eafe3(0x473)],'leaveReq':_0x326216[_0x1eafe3(0x1c0)]});default:throw new Error(_0x1eafe3(0x2b6));}}var ss=Object['defineProperty'],is=Object[_0x2cc1b3(0x47b)],ns=(_0x301fa9,_0x56bfcc,_0x49dd21,_0x26d7b0)=>{for(var _0x3e1f5a=_0x26d7b0>0x1?void 0x0:_0x26d7b0?is(_0x56bfcc,_0x49dd21):_0x56bfcc,_0x1efde8=_0x301fa9['length']-0x1,_0x1632d4;_0x1efde8>=0x0;_0x1efde8--)(_0x1632d4=_0x301fa9[_0x1efde8])&&(_0x3e1f5a=(_0x26d7b0?_0x1632d4(_0x56bfcc,_0x49dd21,_0x3e1f5a):_0x1632d4(_0x3e1f5a))||_0x3e1f5a);return _0x26d7b0&&_0x3e1f5a&&ss(_0x56bfcc,_0x49dd21,_0x3e1f5a),_0x3e1f5a;},se=(_0x100e47,_0x4397d5)=>(_0x9f3485,_0x57eb9e)=>_0x4397d5(_0x9f3485,_0x57eb9e,_0x100e47);const ke=o[_0x2cc1b3(0x364)](_0x2cc1b3(0x21a));function rs(_0x890cf4,_0x22ffaf,_0x4c88ff){const _0x523ccf=_0x2cc1b3;return _0x890cf4+'/'+_0x22ffaf+_0x523ccf(0x1c8)+_0x4c88ff+_0x523ccf(0x1b0);}exports[_0x2cc1b3(0x3e6)]=class{constructor(_0x1e15bf,_0x93377f,_0x421543,_0x12a30a,_0x56a506){const _0x44fa9b=_0x2cc1b3;this['_http']=_0x1e15bf,this[_0x44fa9b(0x1d5)]=_0x93377f,this[_0x44fa9b(0x3f8)]=_0x421543,this[_0x44fa9b(0x402)]=_0x12a30a,this[_0x44fa9b(0x2e9)]=_0x56a506;}[_0x2cc1b3(0x3cf)](_0x1b8d4f){const _0x5cc762=_0x2cc1b3,_0x398817=this[_0x5cc762(0x1d5)][_0x5cc762(0x3cf)](_0x1b8d4f);if(!_0x398817)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x1c615d=new o[(_0x5cc762(0x289))](),_0x1ddbb1=new v[(_0x5cc762(0x3fb))]();_0x1c615d[_0x5cc762(0x506)](o['toDisposable'](_0x398817[_0x5cc762(0x32a)][_0x5cc762(0x4c8)](_0x2f5ea2=>_0x1ddbb1[_0x5cc762(0x1a2)](_0x2f5ea2)))),_0x1c615d[_0x5cc762(0x506)](o['toDisposable'](()=>_0x1ddbb1['complete']()));const _0x4eb891=new v[(_0x5cc762(0x3fb))]();_0x1c615d[_0x5cc762(0x506)](o['toDisposable'](_0x398817[_0x5cc762(0x471)][_0x5cc762(0x4c8)](_0x1411f4=>_0x4eb891['next'](_0x1411f4)))),_0x1c615d[_0x5cc762(0x506)](o['toDisposable'](()=>_0x4eb891[_0x5cc762(0x491)]()));const _0x379092=new v[(_0x5cc762(0x3fb))]();_0x1c615d['add'](o[_0x5cc762(0x168)](_0x398817['message$'][_0x5cc762(0x4c8)](_0x37ab1e=>{const _0x134bc0=_0x5cc762,_0x13e677=ft(_0x37ab1e);_0x379092[_0x134bc0(0x1a2)](_0x13e677);}))),_0x1c615d[_0x5cc762(0x506)](o['toDisposable'](()=>_0x379092[_0x5cc762(0x491)]()));const _0x547e9e=()=>{const _0x1a0bca=_0x5cc762;_0x4eb891[_0x1a0bca(0x1a2)](new Event('connection\x20error')),_0x1ddbb1[_0x1a0bca(0x1a2)](new CloseEvent(_0x1a0bca(0x2be))),_0xa43a24[_0x1a0bca(0x2c5)]();},_0xa43a24={'memberID':'','close$':_0x1ddbb1[_0x5cc762(0x368)](),'error$':_0x4eb891[_0x5cc762(0x368)](),'open$':_0x398817[_0x5cc762(0x4d1)],'message$':_0x379092['asObservable'](),'send':_0xe43ed5=>{const _0x2da1c8=_0x5cc762;if(_0xe43ed5[_0x2da1c8(0x3fd)]===T['INGEST']){if(_0xe43ed5[_0x2da1c8(0x1c0)][_0x2da1c8(0x266)]===_[_0x2da1c8(0x173)][_0x2da1c8(0x350)]){this['_submitChangeset'](_0xa43a24,_0xe43ed5[_0x2da1c8(0x1c0)])[_0x2da1c8(0x367)](_0x279dd3=>{const _0x500d78=_0x2da1c8;this[_0x500d78(0x402)][_0x500d78(0x307)](_0x279dd3),_0x547e9e();});return;}if(_0xe43ed5[_0x2da1c8(0x1c0)][_0x2da1c8(0x266)]===_['CollaborationEvent'][_0x2da1c8(0x4ed)]){const _0x3e5198=_0xe43ed5[_0x2da1c8(0x1c0)];this['_fetchMissChangesets'](_0x3e5198)['then'](_0x28f7ed=>{const _0x15db61=_0x2da1c8;_0x379092['next']({'cmd':T[_0x15db61(0x397)],'code':He['OK'],'routeKey':_0x3e5198[_0x15db61(0x1c0)]['unitID'],'routeType':'','data':{'eventID':_['CollaborationEvent'][_0x15db61(0x2c4)],'data':{'changesets':_0x28f7ed}}});})['catch'](_0x387548=>{const _0x52a622=_0x2da1c8;this['_logService'][_0x52a622(0x307)](_0x387548),_0x547e9e();});return;}}_0x398817['send'](It(_0xe43ed5));},'close':()=>{const _0x4424b0=_0x5cc762;_0x398817['close'](),_0x1c615d[_0x4424b0(0x22c)]();}};return _0xa43a24;}async[_0x2cc1b3(0x44b)](_0x559555,_0x5df50d){const _0x614f2d=_0x2cc1b3;var _0xb4c64f;const {unitType:_0x53c58d,unitID:_0xa6ec12,changeset:_0x446f17}=_0x5df50d[_0x614f2d(0x1c0)],_0x5192c0={'unitID':_0xa6ec12,'memberID':_0x559555['memberID'],'type':_0x53c58d,'changeset':_['parseChangesetToProtocol'](_0x446f17)},_0x2ceb2c=rs((_0xb4c64f=this[_0x614f2d(0x3f8)][_0x614f2d(0x42f)](vt))!=null?_0xb4c64f:zt,_0x53c58d,_0xa6ec12);try{await this[_0x614f2d(0x4c3)][_0x614f2d(0x152)](_0x2ceb2c,{'body':_0x5192c0});}catch(_0x1cef09){throw this[_0x614f2d(0x402)]['error'](_0x614f2d(0x1d6),'submit\x20changeset\x20error!'),_0x1cef09;}}async[_0x2cc1b3(0x27f)](_0x3fb441){const _0x512b18=_0x2cc1b3,{unitID:_0x5a7fcc,from:_0x3ef462,to:_0x189d2e,unitType:_0x378748}=_0x3fb441['data'];return(await this[_0x512b18(0x2e9)][_0x512b18(0x259)]({'metadata':void 0x0},{'unitID':_0x5a7fcc,'type':_0x378748,'from':_0x3ef462,'to':_0x189d2e}))[_0x512b18(0x37d)];}},exports[_0x2cc1b3(0x3e6)]=ns([se(0x0,o[_0x2cc1b3(0x333)](U[_0x2cc1b3(0x1da)])),se(0x1,o[_0x2cc1b3(0x333)](U[_0x2cc1b3(0x1b3)])),se(0x2,o[_0x2cc1b3(0x149)]),se(0x3,o[_0x2cc1b3(0x4ba)]),se(0x4,o[_0x2cc1b3(0x3ef)])],exports[_0x2cc1b3(0x3e6)]);class Be{constructor(){const _0x2651e8=_0x2cc1b3;u(this,'_commentUpdate$',new v[(_0x2651e8(0x3fb))]()),u(this,'commentUpdate$',this['_commentUpdate$'][_0x2651e8(0x368)]());}[_0x2cc1b3(0x2e5)](_0x35cbe3){const _0x5638e1=_0x2cc1b3;this[_0x5638e1(0x251)][_0x5638e1(0x1a2)](_0x35cbe3);}}var os=Object[_0x2cc1b3(0x1b2)],as=Object[_0x2cc1b3(0x47b)],pt=(_0x166a5c,_0x1ca559,_0x4c3d9e,_0x24475c)=>{const _0x47d712=_0x2cc1b3;for(var _0x38938a=_0x24475c>0x1?void 0x0:_0x24475c?as(_0x1ca559,_0x4c3d9e):_0x1ca559,_0x24b8bc=_0x166a5c[_0x47d712(0x209)]-0x1,_0x839a8f;_0x24b8bc>=0x0;_0x24b8bc--)(_0x839a8f=_0x166a5c[_0x24b8bc])&&(_0x38938a=(_0x24475c?_0x839a8f(_0x1ca559,_0x4c3d9e,_0x38938a):_0x839a8f(_0x38938a))||_0x38938a);return _0x24475c&&_0x38938a&&os(_0x1ca559,_0x4c3d9e,_0x38938a),_0x38938a;},w=(_0x4eb29b,_0x530862)=>(_0x40d5c0,_0x7fad33)=>_0x530862(_0x40d5c0,_0x7fad33,_0x4eb29b),G=(_0x2e5851=>(_0x2e5851[_0x2e5851['IDLE']=0x0]=_0x2cc1b3(0x1ae),_0x2e5851[_0x2e5851[_0x2cc1b3(0x336)]=0x1]=_0x2cc1b3(0x336),_0x2e5851[_0x2e5851['OFFLINE']=0x2]='OFFLINE',_0x2e5851[_0x2e5851[_0x2cc1b3(0x302)]=0x3]='ONLINE',_0x2e5851))(G||{});exports['CollaborationSession']=class extends o[_0x2cc1b3(0x516)]{constructor(_0x113cd5,_0x1ba47a,_0x8a5e34,_0x331d98,_0x52b026,_0x4b2175,_0x138178,_0x591eb3,_0x156c8f){const _0x3e3ef3=_0x2cc1b3;super(),u(this,_0x3e3ef3(0x22d),new v[(_0x3e3ef3(0x445))](0x0)),u(this,_0x3e3ef3(0x380),this['_sessionStatus$']['asObservable']()),u(this,_0x3e3ef3(0x1b1),new v[(_0x3e3ef3(0x3fb))]()),u(this,_0x3e3ef3(0x4cf),this['_event$'][_0x3e3ef3(0x368)]()),u(this,'_socket'),u(this,'_socketMessageSubscription'),u(this,'_collaborationTimeoutTimer'),(this[_0x3e3ef3(0x226)]=_0x113cd5,this['_logService']=_0x8a5e34,this[_0x3e3ef3(0x37b)]=_0x331d98,this[_0x3e3ef3(0x475)]=_0x52b026,this[_0x3e3ef3(0x3f8)]=_0x4b2175,this[_0x3e3ef3(0x33c)]=_0x138178,this[_0x3e3ef3(0x3ab)]=_0x591eb3,this[_0x3e3ef3(0x3ca)]=_0x156c8f,_0x1ba47a[_0x3e3ef3(0x478)](C[_0x3e3ef3(0x1ef)](this[_0x3e3ef3(0x23e)]))[_0x3e3ef3(0x4c8)](_0x41564a=>{const _0x43311c=_0x3e3ef3;var _0x5211da;typeof _0x41564a>'u'||(this[_0x43311c(0x455)]=_0x41564a,_0x41564a?(this[_0x43311c(0x3b6)](_0x41564a),this[_0x43311c(0x167)]=this['_socket'][_0x43311c(0x1fc)][_0x43311c(0x4c8)](_0x2f0d12=>{const _0x391b8a=_0x43311c;_0x2f0d12['routeKey']===this[_0x391b8a(0x226)]&&this[_0x391b8a(0x26f)](_0x2f0d12);})):(this[_0x43311c(0x22d)][_0x43311c(0x1a2)](0x2),(_0x5211da=this[_0x43311c(0x167)])==null||_0x5211da[_0x43311c(0x265)](),this[_0x43311c(0x167)]=null));}),this[_0x3e3ef3(0x4be)](this[_0x3e3ef3(0x37b)][_0x3e3ef3(0x3be)](()=>{const _0x4a69f5=_0x3e3ef3;var _0x44c355;(_0x44c355=this[_0x4a69f5(0x455)])==null||_0x44c355['send']({'cmd':T['LEAVE'],'data':{'roomID':this[_0x4a69f5(0x226)]}});})));}get['sessionStatus'](){const _0x53fc7f=_0x2cc1b3;return this[_0x53fc7f(0x22d)][_0x53fc7f(0x14c)]();}[_0x2cc1b3(0x3a8)](){const _0x51679a=_0x2cc1b3;var _0x7d4e4d,_0x3b2b81;return(_0x3b2b81=(_0x7d4e4d=this[_0x51679a(0x455)])==null?void 0x0:_0x7d4e4d[_0x51679a(0x2fe)])!=null?_0x3b2b81:null;}[_0x2cc1b3(0x22c)](){const _0xe12e81=_0x2cc1b3;super[_0xe12e81(0x22c)](),this[_0xe12e81(0x23e)]['next'](),this['dispose$'][_0xe12e81(0x491)]();}['close'](){const _0x322bc4=_0x2cc1b3;var _0x12125f,_0xa9a594;(_0x12125f=this['_socket'])==null||_0x12125f['send']({'cmd':T[_0x322bc4(0x222)],'data':{'roomID':this['_unitID']}}),this[_0x322bc4(0x1b1)][_0x322bc4(0x491)](),this[_0x322bc4(0x22d)][_0x322bc4(0x491)](),(_0xa9a594=this['_socket'])==null||_0xa9a594[_0x322bc4(0x2c5)](),this[_0x322bc4(0x22c)]();}[_0x2cc1b3(0x26f)](_0x4f16eb){const _0x1b7742=_0x2cc1b3;_0x4f16eb['cmd']===T[_0x1b7742(0x520)]?this['_onJoinRoomEvent'](_0x4f16eb):_0x4f16eb['cmd']===T[_0x1b7742(0x397)]&&this['_onRecvEvent'](_0x4f16eb);}[_0x2cc1b3(0x3b6)](_0x3f56d1){const _0x43b688=_0x2cc1b3;this[_0x43b688(0x22d)][_0x43b688(0x1a2)](0x1),_0x3f56d1[_0x43b688(0x377)]({'cmd':T[_0x43b688(0x520)],'routeKey':this[_0x43b688(0x226)],'routeType':'','data':{'rooms':[{'roomID':this[_0x43b688(0x226)]}]}});}[_0x2cc1b3(0x42d)](_0x3c60ae){const _0x4b0125=_0x2cc1b3;var _0x234dbd;if(_0x3c60ae[_0x4b0125(0x2d0)]===He[_0x4b0125(0x3cc)]){this[_0x4b0125(0x475)][_0x4b0125(0x4f2)]({'type':Q[_0x4b0125(0x329)]['Warning'],'content':this[_0x4b0125(0x33c)]['t'](_0x4b0125(0x352))}),this[_0x4b0125(0x22d)]['next'](0x2);return;}this[_0x4b0125(0x22d)]['next'](0x3);const _0xb804a5=(_0x234dbd=_0x3c60ae[_0x4b0125(0x1c0)]['roomInfos'][this[_0x4b0125(0x226)]])==null?void 0x0:_0x234dbd[_0x4b0125(0x2ba)];_0xb804a5&&_0xb804a5['forEach'](_0x41f6f5=>this[_0x4b0125(0x3ab)][_0x4b0125(0x180)](this[_0x4b0125(0x226)],_0x41f6f5));}[_0x2cc1b3(0x3b0)](_0x5a591d){const _0x5af5b9=_0x2cc1b3;try{const _0x4ada76=_0x5a591d[_0x5af5b9(0x1c0)];switch(_0x4ada76[_0x5af5b9(0x266)]){case _['CollaborationEvent'][_0x5af5b9(0x3b2)]:this[_0x5af5b9(0x3c9)](_0x4ada76),this[_0x5af5b9(0x1b1)][_0x5af5b9(0x1a2)](_0x4ada76);break;case _[_0x5af5b9(0x173)][_0x5af5b9(0x21e)]:this[_0x5af5b9(0x4c6)](_0x4ada76),this['_event$']['next'](_0x4ada76);break;case _[_0x5af5b9(0x173)]['CHANGESET_ACK']:this[_0x5af5b9(0x4de)](),this[_0x5af5b9(0x1b1)][_0x5af5b9(0x1a2)](_0x4ada76);break;case _['CollaborationEvent'][_0x5af5b9(0x3b4)]:this[_0x5af5b9(0x402)][_0x5af5b9(0x307)](_0x5af5b9(0x375)+JSON[_0x5af5b9(0x3a5)](_0x4ada76)),this[_0x5af5b9(0x1b1)][_0x5af5b9(0x1a2)](_0x4ada76);break;case _[_0x5af5b9(0x173)]['COMMENT_UPDATE']:this[_0x5af5b9(0x3ca)][_0x5af5b9(0x2e5)](_0x4ada76[_0x5af5b9(0x1c0)]),this[_0x5af5b9(0x1b1)][_0x5af5b9(0x1a2)](_0x4ada76);break;default:this[_0x5af5b9(0x1b1)][_0x5af5b9(0x1a2)](_0x4ada76);}}catch(_0x548785){this[_0x5af5b9(0x402)][_0x5af5b9(0x307)](_0x548785,_0x5a591d);}}[_0x2cc1b3(0x3c9)](_0x35daeb){const _0x373713=_0x2cc1b3;this[_0x373713(0x3ab)][_0x373713(0x180)](this[_0x373713(0x226)],_0x35daeb['data']);}[_0x2cc1b3(0x4c6)](_0x5ea91e){const _0x1138ff=_0x2cc1b3;this['_memberService'][_0x1138ff(0x192)](this['_unitID'],_0x5ea91e[_0x1138ff(0x1c0)][_0x1138ff(0x2fe)]);}async[_0x2cc1b3(0x377)](_0x1f6755,_0x52911f){const _0x3a53d3=_0x2cc1b3;if(this['sessionStatus']!==0x3||!this[_0x3a53d3(0x455)])throw new Error(_0x3a53d3(0x3c5));try{_0x1f6755[_0x3a53d3(0x266)]===_[_0x3a53d3(0x173)][_0x3a53d3(0x353)]&&this[_0x3a53d3(0x1f9)](),this[_0x3a53d3(0x455)][_0x3a53d3(0x377)]({'cmd':T['INGEST'],'routeKey':_0x52911f,'routeType':'','data':_0x1f6755});}catch(_0x1a25c6){this[_0x3a53d3(0x402)][_0x3a53d3(0x307)](_0x1a25c6);}}['_scheduleCollaborationTimeoutTimer'](){const _0x26701c=_0x2cc1b3;var _0x1d79f3;this[_0x26701c(0x4f0)]=window[_0x26701c(0x252)](()=>{const _0x41f2ef=_0x26701c;this['_collaborationTimeoutTimer']=null,this[_0x41f2ef(0x475)][_0x41f2ef(0x4f2)]({'type':Q[_0x41f2ef(0x329)]['Error'],'content':this[_0x41f2ef(0x33c)]['t']('session.collaboration-timeout')});},(_0x1d79f3=this['_configService'][_0x26701c(0x42f)](xe))!=null?_0x1d79f3:dt);}[_0x2cc1b3(0x4de)](){const _0x282e7b=_0x2cc1b3;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x282e7b(0x4f0)]),this['_collaborationTimeoutTimer']=null);}},exports[_0x2cc1b3(0x338)]=pt([w(0x2,o[_0x2cc1b3(0x4ba)]),w(0x3,L['IBeforeCloseService']),w(0x4,L[_0x2cc1b3(0x280)]),w(0x5,o[_0x2cc1b3(0x149)]),w(0x6,o['Inject'](o[_0x2cc1b3(0x2f6)])),w(0x7,o[_0x2cc1b3(0x333)](Y)),w(0x8,o[_0x2cc1b3(0x333)](Be))],exports[_0x2cc1b3(0x338)]),exports[_0x2cc1b3(0x14e)]=class extends o[_0x2cc1b3(0x460)]{constructor(_0x2c1ced,_0x1e585e,_0x3365a4,_0x2da1f7,_0x409127,_0x58d9d0){const _0x4a9730=_0x2cc1b3;super(),u(this,_0x4a9730(0x2bf),new v['BehaviorSubject'](void 0x0)),u(this,'_sessions',new Map()),u(this,_0x4a9730(0x40f),new v['BehaviorSubject'](0x0)),u(this,_0x4a9730(0x4ff),this[_0x4a9730(0x40f)][_0x4a9730(0x368)]()),u(this,_0x4a9730(0x272),!0x1),u(this,_0x4a9730(0x477)),u(this,_0x4a9730(0x1aa)),u(this,_0x4a9730(0x148)),u(this,_0x4a9730(0x2b7),0x0),(this[_0x4a9730(0x3fe)]=_0x2c1ced,this['_localeService']=_0x1e585e,this[_0x4a9730(0x475)]=_0x3365a4,this[_0x4a9730(0x402)]=_0x2da1f7,this[_0x4a9730(0x3f8)]=_0x409127,this[_0x4a9730(0x436)]=_0x58d9d0);}get[_0x2cc1b3(0x455)](){const _0x5ae67c=_0x2cc1b3;return this['_socket$'][_0x5ae67c(0x14c)]();}[_0x2cc1b3(0x22c)](){const _0x5ee98c=_0x2cc1b3;super[_0x5ee98c(0x22c)](),this[_0x5ee98c(0x156)][_0x5ee98c(0x34c)](_0x574984=>_0x574984[_0x5ee98c(0x22c)]()),this[_0x5ee98c(0x156)][_0x5ee98c(0x1f8)](),this[_0x5ee98c(0x40f)][_0x5ee98c(0x491)]();}async[_0x2cc1b3(0x33b)](_0xed9f8b){const _0x1f0516=_0x2cc1b3;if(this['_sessions']['has'](_0xed9f8b))return this[_0x1f0516(0x156)][_0x1f0516(0x3ba)](_0xed9f8b);this[_0x1f0516(0x4e8)]();const _0x3dc782=this[_0x1f0516(0x3fe)]['createInstance'](exports[_0x1f0516(0x338)],_0xed9f8b,this[_0x1f0516(0x2bf)][_0x1f0516(0x368)]());return this['_sessions'][_0x1f0516(0x1b8)](_0xed9f8b,_0x3dc782),_0x3dc782;}[_0x2cc1b3(0x410)](_0x3e713c){const _0x445b63=_0x2cc1b3;var _0x17348f;const _0x336943=this[_0x445b63(0x156)]['get'](_0x3e713c);_0x336943&&(this[_0x445b63(0x156)][_0x445b63(0x386)](_0x3e713c),_0x336943['close']()),this[_0x445b63(0x156)][_0x445b63(0x343)]||(_0x17348f=this['_socket'])==null||_0x17348f[_0x445b63(0x2c5)]();}[_0x2cc1b3(0x28b)](){const _0x47e17d=_0x2cc1b3;var _0x2e536c;const _0xb5fb00=(_0x2e536c=this['_configService'][_0x47e17d(0x42f)](_t))!=null?_0x2e536c:Vt;return this[_0x47e17d(0x436)]['createSocket'](_0xb5fb00);}['_tryEnsureSocket'](){const _0x1059d1=_0x2cc1b3;try{const _0x20454e=this[_0x1059d1(0x28b)]();if(_0x20454e){const _0x995f66=_0x20454e[_0x1059d1(0x377)];_0x20454e['send']=_0x395bac=>(this['_rescheduleHeartbeatEvent'](),_0x995f66[_0x1059d1(0x2af)](_0x20454e,[_0x395bac])),_0x20454e[_0x1059d1(0x1fc)][_0x1059d1(0x4c8)](_0x3f883f=>this[_0x1059d1(0x392)](_0x20454e,_0x3f883f)),_0x20454e[_0x1059d1(0x471)][_0x1059d1(0x478)](C[_0x1059d1(0x342)](0x1))['subscribe'](_0x49f7a0=>this[_0x1059d1(0x402)][_0x1059d1(0x307)](_0x1059d1(0x48d),_0x49f7a0)),_0x20454e[_0x1059d1(0x4d1)]['pipe'](C[_0x1059d1(0x342)](0x1))[_0x1059d1(0x4c8)](()=>{const _0x479638=_0x1059d1;this[_0x479638(0x503)](_0x20454e);}),_0x20454e['close$'][_0x1059d1(0x478)](C['take'](0x1))[_0x1059d1(0x4c8)](_0x4eed3b=>{const _0xf4192d=_0x1059d1;this[_0xf4192d(0x402)][_0xf4192d(0x1a1)](_0xf4192d(0x48b),_0xf4192d(0x484),_0x4eed3b),this[_0xf4192d(0x3e1)]();});}}catch(_0x46767e){this[_0x1059d1(0x402)]['error'](_0x46767e),this[_0x1059d1(0x3e1)]();}}[_0x2cc1b3(0x503)](_0x1e16d9){const _0x314b53=_0x2cc1b3;this[_0x314b53(0x402)][_0x314b53(0x1a1)](_0x314b53(0x48b),_0x314b53(0x4ef)),_0x1e16d9[_0x314b53(0x377)]({'cmd':T[_0x314b53(0x2a0)]}),this['_rescheduleHeartbeatEvent']();}[_0x2cc1b3(0x3e1)](){const _0x11542d=_0x2cc1b3;var _0x293079;this[_0x11542d(0x40f)][_0x11542d(0x1a2)](0x2),this[_0x11542d(0x2bf)][_0x11542d(0x1a2)](null),this[_0x11542d(0x184)](),this['_clearHeartbeatTimer'](),this['_socketReady']=!0x1,this[_0x11542d(0x2b7)]<((_0x293079=this[_0x11542d(0x3f8)]['getConfig'](Kt))!=null?_0x293079:Xt)?(this[_0x11542d(0x35c)](this[_0x11542d(0x2b7)]),this[_0x11542d(0x2b7)]+=0x1):this[_0x11542d(0x475)]['show']({'type':Q[_0x11542d(0x329)]['Error'],'content':this[_0x11542d(0x33c)]['t'](_0x11542d(0x2aa))});}[_0x2cc1b3(0x35c)](_0xf9d896){const _0xdd0b3e=_0x2cc1b3;var _0x277365;const _0x562c7b=((_0x277365=this[_0xdd0b3e(0x3f8)]['getConfig'](Gt))!=null?_0x277365:Yt)*0x2**_0xf9d896;this[_0xdd0b3e(0x475)][_0xdd0b3e(0x4f2)]({'type':Q['MessageType'][_0xdd0b3e(0x3b1)],'content':this[_0xdd0b3e(0x33c)]['t'](_0xdd0b3e(0x17e))}),this[_0xdd0b3e(0x148)]=setTimeout(()=>{const _0x271f63=_0xdd0b3e;this[_0x271f63(0x4e8)](),clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null;},_0x562c7b);}['_rescheduleHeartbeatEvent'](){const _0xd62f8e=_0x2cc1b3;var _0x39b47f;this[_0xd62f8e(0x4a6)](),this[_0xd62f8e(0x477)]=setTimeout(()=>this['_sendHeartbeat'](),(_0x39b47f=this['_configService']['getConfig'](ut))!=null?_0x39b47f:Wt);}[_0x2cc1b3(0x260)](){const _0x542f5c=_0x2cc1b3;this['_socket']['send']({'cmd':T[_0x542f5c(0x398)]}),this[_0x542f5c(0x46c)]();}[_0x2cc1b3(0x46c)](){const _0x56d070=_0x2cc1b3;var _0x5a0f66;this[_0x56d070(0x1aa)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x5a0f66=this[_0x56d070(0x3f8)]['getConfig'](xe))!=null?_0x5a0f66:dt);}[_0x2cc1b3(0x392)](_0x327605,_0x2eda02){const _0x3026f3=_0x2cc1b3,{cmd:_0x33da2a}=_0x2eda02;_0x33da2a===T[_0x3026f3(0x2a0)]&&!this['_socketReady']&&(_0x327605[_0x3026f3(0x2fe)]=_0x2eda02['data']['memberID'],this[_0x3026f3(0x2bf)][_0x3026f3(0x1a2)](_0x327605),this['_status$'][_0x3026f3(0x1a2)](0x3),this[_0x3026f3(0x272)]=!0x0),_0x33da2a===T[_0x3026f3(0x398)]&&this['_clearTimeoutTimer'](),this[_0x3026f3(0x27c)]();}['_clearHeartbeatTimer'](){const _0x2a15b6=_0x2cc1b3;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x2a15b6(0x477)]),this[_0x2a15b6(0x477)]=null);}[_0x2cc1b3(0x184)](){const _0x2a49=_0x2cc1b3;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x2a49(0x1aa)]),this['_timeoutTimer']=null);}},exports[_0x2cc1b3(0x14e)]=pt([w(0x0,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),w(0x1,o[_0x2cc1b3(0x333)](o['LocaleService'])),w(0x2,L[_0x2cc1b3(0x280)]),w(0x3,o[_0x2cc1b3(0x4ba)]),w(0x4,o[_0x2cc1b3(0x149)]),w(0x5,ke)],exports[_0x2cc1b3(0x14e)]);var cs=Object[_0x2cc1b3(0x1b2)],ls=Object[_0x2cc1b3(0x47b)],hs=(_0x3a0986,_0x23b3f6,_0x3b4ac5,_0x3e0819)=>{const _0x41252d=_0x2cc1b3;for(var _0x23c93a=_0x3e0819>0x1?void 0x0:_0x3e0819?ls(_0x23b3f6,_0x3b4ac5):_0x23b3f6,_0x53b4f4=_0x3a0986[_0x41252d(0x209)]-0x1,_0x4b1e14;_0x53b4f4>=0x0;_0x53b4f4--)(_0x4b1e14=_0x3a0986[_0x53b4f4])&&(_0x23c93a=(_0x3e0819?_0x4b1e14(_0x23b3f6,_0x3b4ac5,_0x23c93a):_0x4b1e14(_0x23c93a))||_0x23c93a);return _0x3e0819&&_0x23c93a&&cs(_0x23b3f6,_0x3b4ac5,_0x23c93a),_0x23c93a;},ie=(_0x423c59,_0x565052)=>(_0x1e5ad9,_0x246046)=>_0x565052(_0x1e5ad9,_0x246046,_0x423c59);exports[_0x2cc1b3(0x15f)]=class extends o[_0x2cc1b3(0x460)]{constructor(_0x3d5531,_0x132145,_0x11decc,_0x322cc5,_0x136644){const _0x46a587=_0x2cc1b3;super(),u(this,_0x46a587(0x444),new Map()),u(this,'_saveTaskMap',new Map()),u(this,_0x46a587(0x28a),!0x1),(this[_0x46a587(0x3f8)]=_0x3d5531,this[_0x46a587(0x3c4)]=_0x132145,this[_0x46a587(0x37b)]=_0x11decc,this['_localeService']=_0x322cc5,this[_0x46a587(0x341)]=_0x136644,this[_0x46a587(0x183)]());}[_0x2cc1b3(0x36d)](){const _0x2da419=_0x2cc1b3;this[_0x2da419(0x28a)]=!0x0;}['enableLocalCache'](){const _0x5adad3=_0x2cc1b3;this[_0x5adad3(0x28a)]=!0x1;}[_0x2cc1b3(0x22c)](){const _0x1514ac=_0x2cc1b3;this[_0x1514ac(0x1f3)]()[_0x1514ac(0x360)](()=>super[_0x1514ac(0x22c)]());}async[_0x2cc1b3(0x4a7)](_0x635d31){const _0x28c6da=_0x2cc1b3;return this[_0x28c6da(0x28a)]?null:this[_0x28c6da(0x3c4)][_0x28c6da(0x243)](Xe(_0x635d31));}async[_0x2cc1b3(0x225)](_0x2ba752,_0x6992a){const _0xfdbe27=_0x2cc1b3;return!!this['_localStorageService'][_0xfdbe27(0x40a)](_0x2ba752,_0x6992a);}['updateOfflineData'](_0x2b2270,_0x123dea,_0x5cc3c6,_0x402ff4){const _0x325750=_0x2cc1b3,_0x16f701=this[_0x325750(0x341)][_0x325750(0x295)](_0x2b2270);this['_cachedData'][_0x325750(0x1b8)](_0x2b2270,{'unitID':_0x2b2270,'type':_0x123dea,'awaitingChangeset':_0x5cc3c6,'mutations':_0x402ff4,'rev':_0x16f701}),this['_saveTaskMap'][_0x325750(0x2ae)](_0x2b2270)||this['_scheduleSaving'](_0x2b2270);}[_0x2cc1b3(0x37e)](_0x520721){const _0x8d90d6=_0x2cc1b3,_0x55077e=this[_0x8d90d6(0x248)]();_0x55077e===0x0?this[_0x8d90d6(0x270)](_0x520721):this[_0x8d90d6(0x36e)][_0x8d90d6(0x1b8)](_0x520721,setTimeout(()=>this['_saveCache'](_0x520721),_0x55077e));}[_0x2cc1b3(0x248)](){const _0x4e18f9=_0x2cc1b3;var _0x50fcd2;return(_0x50fcd2=this[_0x4e18f9(0x3f8)]['getConfig'](St))!=null?_0x50fcd2:qt;}[_0x2cc1b3(0x270)](_0x1bc2b){const _0x36bd08=_0x2cc1b3,_0x27db6f=this[_0x36bd08(0x36e)]['get'](_0x1bc2b);return _0x27db6f!==void 0x0&&window[_0x36bd08(0x1ea)](_0x27db6f),this[_0x36bd08(0x3c4)][_0x36bd08(0x40a)](Xe(_0x1bc2b),this[_0x36bd08(0x444)][_0x36bd08(0x3ba)](_0x1bc2b))['then'](()=>this[_0x36bd08(0x36e)][_0x36bd08(0x386)](_0x1bc2b));}async[_0x2cc1b3(0x1f3)](){const _0x1d009d=_0x2cc1b3,_0x48a1f2=[];this[_0x1d009d(0x36e)][_0x1d009d(0x34c)]((_0x16db3f,_0x5337ac)=>{const _0x4be870=_0x1d009d;window[_0x4be870(0x1ea)](_0x16db3f),_0x48a1f2[_0x4be870(0x4bd)](this[_0x4be870(0x270)](_0x5337ac)[_0x4be870(0x360)](()=>{const _0x35660f=_0x4be870;this['_saveTaskMap'][_0x35660f(0x386)](_0x5337ac);}));}),await Promise[_0x1d009d(0x16a)](_0x48a1f2);}[_0x2cc1b3(0x183)](){const _0x22d836=_0x2cc1b3;this[_0x22d836(0x4be)](this[_0x22d836(0x37b)]['registerBeforeClose'](()=>{const _0x1e9907=_0x22d836;if(this[_0x1e9907(0x36e)][_0x1e9907(0x343)])return this[_0x1e9907(0x33c)]['t'](_0x1e9907(0x388));}));}},exports[_0x2cc1b3(0x15f)]=hs([ie(0x0,o['IConfigService']),ie(0x1,o['ILocalStorageService']),ie(0x2,L[_0x2cc1b3(0x1b6)]),ie(0x3,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2f6)])),ie(0x4,o[_0x2cc1b3(0x333)](_['RevisionService']))],exports[_0x2cc1b3(0x15f)]);function Xe(_0x1bfcb9){return'unit-cache-'+_0x1bfcb9;}const pe=o[_0x2cc1b3(0x364)](_0x2cc1b3(0x500));var Ct=(_0x336e2b=>(_0x336e2b[_0x336e2b[_0x2cc1b3(0x2f0)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x336e2b[_0x336e2b['OTHER_CLIENTS_EDITING']=0x1]=_0x2cc1b3(0x194),_0x336e2b))(Ct||{});const qe=0x7530,ze=_0x2cc1b3(0x164);class _s extends o[_0x2cc1b3(0x460)]{constructor(){const _0xc3832d=_0x2cc1b3;super(),u(this,_0xc3832d(0x1f7),o[_0xc3832d(0x492)]['generateRandomId']()),u(this,_0xc3832d(0x2ed),new Set()),u(this,_0xc3832d(0x311),new Map()),u(this,_0xc3832d(0x291),null),u(this,_0xc3832d(0x182),new Map()),u(this,'_unitStatus',new Map()),this[_0xc3832d(0x4e1)]();}['dispose'](){const _0x437716=_0x2cc1b3;super['dispose'](),this['_clearOtherTimers'][_0x437716(0x34c)]((_0x1e083d,_0xf26d8f)=>this['_removeClearOtherTimer'](_0xf26d8f)),this[_0x437716(0x291)]&&window[_0x437716(0x2d1)](this[_0x437716(0x291)]);}['getUnitStatus$'](_0x33983a){const _0x7f0b5e=_0x2cc1b3;return this[_0x7f0b5e(0x1f4)](_0x33983a)[_0x7f0b5e(0x478)](v[_0x7f0b5e(0x25f)]());}[_0x2cc1b3(0x1ab)](_0x292dcf){const _0x422cad=_0x2cc1b3;this['_selfUnitIDs'][_0x422cad(0x343)]===0x0&&this[_0x422cad(0x3af)](),this[_0x422cad(0x2ed)][_0x422cad(0x506)](_0x292dcf),this[_0x422cad(0x337)]({'type':0x0,'memberID':this[_0x422cad(0x1f7)],'unitIDs':[_0x292dcf],'isForwarded':!0x1});}[_0x2cc1b3(0x201)](_0x389e2c){const _0x2485c5=_0x2cc1b3;this[_0x2485c5(0x2ed)][_0x2485c5(0x386)](_0x389e2c),this[_0x2485c5(0x2ed)][_0x2485c5(0x343)]===0x0&&this[_0x2485c5(0x291)]&&window['clearInterval'](this[_0x2485c5(0x291)]);}['_init'](){const _0x39546b=_0x2cc1b3;this['disposeWithMe'](o[_0x39546b(0x168)](v[_0x39546b(0x37f)](window,'storage')['subscribe'](_0x526256=>{const _0x551d05=_0x39546b;if(_0x526256[_0x551d05(0x47d)]!==ze||!_0x526256[_0x551d05(0x310)])return;const _0x5cf6c0=JSON[_0x551d05(0x207)](_0x526256[_0x551d05(0x310)]);this[_0x551d05(0x441)](_0x5cf6c0);}))),window['addEventListener']('unload',()=>this[_0x39546b(0x337)]({'type':0x1,'memberID':this[_0x39546b(0x1f7)],'unitIDs':Array[_0x39546b(0x346)](this[_0x39546b(0x2ed)])}));}[_0x2cc1b3(0x441)](_0x43437e){const _0x1c436f=_0x2cc1b3;switch(_0x43437e[_0x1c436f(0x3e9)]){case 0x0:this[_0x1c436f(0x3e8)](_0x43437e);break;case 0x1:this['_handleLeaveEvent'](_0x43437e);break;case 0x2:this[_0x1c436f(0x293)](_0x43437e);break;}}[_0x2cc1b3(0x3e8)](_0x23b1be){const _0x4843b4=_0x2cc1b3,{unitIDs:_0x2da22b,memberID:_0x3019a9,isForwarded:_0xd566a6}=_0x23b1be;_0x2da22b[_0x4843b4(0x34c)](_0x256fb2=>{const _0x268ebd=_0x4843b4;if(!_0xd566a6&&this[_0x268ebd(0x311)][_0x268ebd(0x2ae)](_0x256fb2)&&this[_0x268ebd(0x1f4)](_0x256fb2)['next'](0x1),!this[_0x268ebd(0x311)][_0x268ebd(0x2ae)](_0x256fb2)||!this[_0x268ebd(0x311)][_0x268ebd(0x3ba)](_0x256fb2)[_0x268ebd(0x2ae)](_0x3019a9)){const _0x133ac4=this[_0x268ebd(0x311)][_0x268ebd(0x3ba)](_0x256fb2)||new Set();_0x133ac4[_0x268ebd(0x506)](_0x3019a9),this[_0x268ebd(0x311)][_0x268ebd(0x1b8)](_0x256fb2,_0x133ac4),this[_0x268ebd(0x4f9)](_0x3019a9);}}),_0xd566a6||this[_0x4843b4(0x337)]({'type':0x0,'memberID':this[_0x4843b4(0x1f7)],'unitIDs':[...this[_0x4843b4(0x2ed)]],'isForwarded':!0x0});}[_0x2cc1b3(0x4f9)](_0x19cf49){const _0x3d7dc0=_0x2cc1b3;this[_0x3d7dc0(0x453)](_0x19cf49);const _0x11a117=window[_0x3d7dc0(0x252)](()=>{const _0x33a489=_0x3d7dc0;this[_0x33a489(0x311)][_0x33a489(0x34c)](_0x1422c9=>{const _0x1b0764=_0x33a489;_0x1422c9[_0x1b0764(0x386)](_0x19cf49);});},qe*0x2);this[_0x3d7dc0(0x182)][_0x3d7dc0(0x1b8)](_0x19cf49,_0x11a117);}[_0x2cc1b3(0x453)](_0x5c9065){const _0x242580=_0x2cc1b3;if(this[_0x242580(0x182)][_0x242580(0x2ae)](_0x5c9065)){const _0x59bf32=this[_0x242580(0x182)][_0x242580(0x3ba)](_0x5c9065);_0x59bf32&&window[_0x242580(0x1ea)](_0x59bf32),this[_0x242580(0x182)][_0x242580(0x1b8)](_0x5c9065,null);}}['_handleLeaveEvent'](_0x238f21){const _0x48a377=_0x2cc1b3,{memberID:_0x524d31,unitIDs:_0xa1b79b}=_0x238f21;_0xa1b79b[_0x48a377(0x34c)](_0x1f6243=>{const _0x24efe9=_0x48a377;var _0x5e7648;const _0x4e30cc=this[_0x24efe9(0x311)]['get'](_0x1f6243);_0x4e30cc&&(_0x4e30cc['delete'](_0x524d31),(_0x5e7648=this[_0x24efe9(0x1f4)](_0x1f6243))==null||_0x5e7648[_0x24efe9(0x1a2)](_0x4e30cc[_0x24efe9(0x343)]===0x0?0x0:0x1));}),this[_0x48a377(0x453)](_0x524d31);}[_0x2cc1b3(0x293)](_0x3ca38d){const _0x481332=_0x2cc1b3;this[_0x481332(0x4f9)](_0x3ca38d[_0x481332(0x2fe)]);}[_0x2cc1b3(0x337)](_0x1ed038){const _0x3ac692=_0x2cc1b3;localStorage[_0x3ac692(0x40a)](ze,JSON['stringify'](_0x1ed038));}[_0x2cc1b3(0x3af)](){const _0x1a5165=_0x2cc1b3;this[_0x1a5165(0x291)]=window[_0x1a5165(0x41e)](()=>{const _0x204421=_0x1a5165;this[_0x204421(0x337)]({'type':0x2,'memberID':this['_id']});},qe);}[_0x2cc1b3(0x1f4)](_0x53d6bc){const _0x3c1561=_0x2cc1b3;return this['_unitStatus'][_0x3c1561(0x2ae)](_0x53d6bc)||this['_unitStatus'][_0x3c1561(0x1b8)](_0x53d6bc,new v[(_0x3c1561(0x445))](0x0)),this['_unitStatus'][_0x3c1561(0x3ba)](_0x53d6bc);}}var us=Object['defineProperty'],ds=Object[_0x2cc1b3(0x47b)],Ss=(_0x14e1d7,_0x32a771,_0x456b83,_0xda5d10)=>{for(var _0xd00f60=_0xda5d10>0x1?void 0x0:_0xda5d10?ds(_0x32a771,_0x456b83):_0x32a771,_0x356562=_0x14e1d7['length']-0x1,_0x5a5b02;_0x356562>=0x0;_0x356562--)(_0x5a5b02=_0x14e1d7[_0x356562])&&(_0xd00f60=(_0xda5d10?_0x5a5b02(_0x32a771,_0x456b83,_0xd00f60):_0x5a5b02(_0xd00f60))||_0xd00f60);return _0xda5d10&&_0xd00f60&&us(_0x32a771,_0x456b83,_0xd00f60),_0xd00f60;},Je=(_0x41c141,_0x2679cf)=>(_0x1aad9e,_0xe76af4)=>_0x2679cf(_0x1aad9e,_0xe76af4,_0x41c141);let ve=class{constructor(_0x3ecd12,_0x24c62d){const _0x15c0eb=_0x2cc1b3;this[_0x15c0eb(0x3fe)]=_0x3ecd12,this[_0x15c0eb(0x2ad)]=_0x24c62d;}[_0x2cc1b3(0x327)](_0x3de660){const _0x4b43a1=_0x2cc1b3;this[_0x4b43a1(0x4ac)](_0x3de660),this['_transformPreviousActiveRange'](_0x3de660);}[_0x2cc1b3(0x457)](_0x54cc83){const _0xc30c76=_0x2cc1b3,_0x34df20=this[_0xc30c76(0x3fe)]['get'](P['IMEInputManagerService']),{redoCache:_0x52a65c}=_0x34df20[_0xc30c76(0x3d3)]();if(_0x52a65c[_0xc30c76(0x209)]===0x0)return _0x54cc83;let _0x1c2c8a=o['Tools'][_0xc30c76(0x51f)](_0x54cc83['mutations'][0x0]);for(let _0x578cb6=0x0;_0x578cb6<_0x52a65c[_0xc30c76(0x209)];_0x578cb6++){const _0xbd45ae={'id':_0xc30c76(0x3da),'params':{..._0x52a65c[_0x578cb6]}},_0x5ef3cc=this[_0xc30c76(0x2ad)]['transformMutation'](_0x1c2c8a,_0xbd45ae,!0x1);if(_[_0xc30c76(0x24a)](_0x5ef3cc))throw _0x5ef3cc[_0xc30c76(0x307)];_0x1c2c8a=_0x5ef3cc[_0xc30c76(0x47e)];}return{...o['Tools']['deepClone'](_0x54cc83),'mutations':[_0x1c2c8a]};}['_transformUndoRedoStack'](_0x3b36cc){const _0x3f1b88=_0x2cc1b3,_0x267379=this[_0x3f1b88(0x3fe)]['get'](P[_0x3f1b88(0x2fc)]),{undoCache:_0x607129,redoCache:_0x30f3d5}=_0x267379[_0x3f1b88(0x3d3)]();if(_0x607129[_0x3f1b88(0x209)]===0x0||_0x30f3d5[_0x3f1b88(0x209)]===0x0)return;const _0x16f0cb=[],_0x2adc3e=[];let _0x239e4a=o[_0x3f1b88(0x492)][_0x3f1b88(0x51f)](_0x3b36cc[_0x3f1b88(0x1d1)][0x0]),_0x37fe6a=o['Tools'][_0x3f1b88(0x51f)](_0x3b36cc[_0x3f1b88(0x1d1)][0x0]);for(let _0x57ef7f=_0x607129[_0x3f1b88(0x209)]-0x1;_0x57ef7f>=0x0;_0x57ef7f--){const _0x380d0d={'id':_0x3f1b88(0x3da),'params':{..._0x607129[_0x57ef7f]}},_0x26e299={'id':_0x3f1b88(0x3da),'params':{..._0x30f3d5[_0x57ef7f]}},_0x76ea9d=this[_0x3f1b88(0x2ad)][_0x3f1b88(0x261)](_0x239e4a,_0x380d0d,!0x1),_0x1ca153=this['_transformService']['transformMutation'](_0x37fe6a,_0x26e299,!0x1);if(_[_0x3f1b88(0x24a)](_0x76ea9d))throw _0x76ea9d[_0x3f1b88(0x307)];if(_[_0x3f1b88(0x24a)](_0x1ca153))throw _0x1ca153['error'];_0x16f0cb[_0x3f1b88(0x199)](_0x76ea9d[_0x3f1b88(0x285)][_0x3f1b88(0x19e)]),_0x2adc3e['unshift'](_0x1ca153['m2Prime']['params']),_0x239e4a=_0x76ea9d[_0x3f1b88(0x47e)],_0x37fe6a=_0x1ca153['m1Prime'];}_0x267379['setUndoRedoMutationParamsCache']({'undoCache':_0x16f0cb,'redoCache':_0x2adc3e});}[_0x2cc1b3(0x31a)](_0xf0db61){const _0x12366b=_0x2cc1b3,_0x44db74=this[_0x12366b(0x3fe)][_0x12366b(0x3ba)](P['IMEInputManagerService']),_0x2ae492=_0x44db74[_0x12366b(0x213)]();if(_0x2ae492==null)return;const _0x214521=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xf0db61[_0x12366b(0x3ee)],'actions':null,'textRanges':[_0x2ae492]}}],_0x2106e0=this[_0x12366b(0x2ad)][_0x12366b(0x525)](_0xf0db61,_0x214521);if(!_[_0x12366b(0x421)](_0x2106e0))throw _0x2106e0[_0x12366b(0x307)];const _0x3a3282=_0x2106e0['m2Prime'][0x0][_0x12366b(0x19e)]['textRanges'];Array[_0x12366b(0x1a8)](_0x3a3282)&&_0x3a3282[_0x12366b(0x209)]&&_0x44db74[_0x12366b(0x3b7)](_0x3a3282[0x0]);}};ve=Ss([Je(0x0,o[_0x2cc1b3(0x333)](o['Injector'])),Je(0x1,_[_0x2cc1b3(0x4ca)])],ve);var vs=Object[_0x2cc1b3(0x1b2)],ms=Object[_0x2cc1b3(0x47b)],gs=(_0xc9c5d2,_0x30ed81,_0x2ad67e,_0x4cc3dc)=>{const _0x469e92=_0x2cc1b3;for(var _0x5d48da=_0x4cc3dc>0x1?void 0x0:_0x4cc3dc?ms(_0x30ed81,_0x2ad67e):_0x30ed81,_0x2c4204=_0xc9c5d2[_0x469e92(0x209)]-0x1,_0x2d77dd;_0x2c4204>=0x0;_0x2c4204--)(_0x2d77dd=_0xc9c5d2[_0x2c4204])&&(_0x5d48da=(_0x4cc3dc?_0x2d77dd(_0x30ed81,_0x2ad67e,_0x5d48da):_0x2d77dd(_0x5d48da))||_0x5d48da);return _0x4cc3dc&&_0x5d48da&&vs(_0x30ed81,_0x2ad67e,_0x5d48da),_0x5d48da;},Ze=(_0x233f92,_0x240706)=>(_0xfd988d,_0x53603e)=>_0x240706(_0xfd988d,_0x53603e,_0x233f92);let me=class{constructor(_0x235629,_0x519b66){const _0x35ca9d=_0x2cc1b3;this[_0x35ca9d(0x3fe)]=_0x235629,this[_0x35ca9d(0x2ad)]=_0x519b66;}[_0x2cc1b3(0x2e8)](_0x416dc4){const _0x342e39=_0x2cc1b3;var _0x9a73ee;const _0x41441e=this['_injector'][_0x342e39(0x3ba)](P[_0x342e39(0x35b)]),_0x1bec2e=(_0x9a73ee=_0x41441e[_0x342e39(0x30f)]())!=null?_0x9a73ee:[],_0x781b38=_0x1bec2e==null?void 0x0:_0x1bec2e['map'](P[_0x342e39(0x19b)]);if(_0x781b38['length']===0x0)return;const _0x23838b=[{'id':_0x342e39(0x3da),'params':{'unitId':_0x416dc4[_0x342e39(0x3ee)],'actions':null,'textRanges':_0x781b38}}],_0x4046f6=this[_0x342e39(0x2ad)][_0x342e39(0x525)](_0x416dc4,_0x23838b);if(!_['isTransformMutationsWithChangesetSuccess'](_0x4046f6))throw _0x4046f6[_0x342e39(0x307)];const _0x5cb746=_0x4046f6[_0x342e39(0x285)][0x0][_0x342e39(0x19e)][_0x342e39(0x1bf)];Array[_0x342e39(0x1a8)](_0x5cb746)&&_0x5cb746['length']&&_0x41441e[_0x342e39(0x19a)](_0x5cb746,!0x1);}};me=gs([Ze(0x0,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),Ze(0x1,_['ITransformService'])],me);function Et(_0x3cf3a5){const _0xbee064=_0x2cc1b3;let _0x13039e='';for(const _0x4fc7e1 of _0x3cf3a5){const {startOffset:_0x337c3f,endOffset:_0x23c5ff,isActive:_0x297392}=_0x4fc7e1;_0x13039e[_0xbee064(0x209)]&&(_0x13039e+=','),_0x13039e+=_0x337c3f+':'+_0x23c5ff+':'+(_0x297392?'1':'0');}return _0x13039e;}function fs(_0x3d9d79){const _0x1ad505=_0x2cc1b3,_0x440423=_0x3d9d79['split'](','),_0x137f6d=[];for(const _0x63b174 of _0x440423){const [_0x1c17ed,_0x27b6d5,_0x150b6e]=_0x63b174[_0x1ad505(0x2ee)](':');_0x137f6d[_0x1ad505(0x4bd)]({'startOffset':Number(_0x1c17ed),'endOffset':Number(_0x27b6d5),'collapsed':_0x1c17ed===_0x27b6d5,'isActive':_0x150b6e==='1'});}return _0x137f6d[_0x1ad505(0x3eb)](_0x1936ad=>_0x1936ad[_0x1ad505(0x204)])||(_0x137f6d[0x0][_0x1ad505(0x204)]=!0x0),_0x137f6d;}class Fe extends o[_0x2cc1b3(0x516)]{constructor(){const _0x5b0ac8=_0x2cc1b3;super(...arguments),u(this,'_collabCursorState$',new v['BehaviorSubject'](null)),u(this,'collabCursorState$',this[_0x5b0ac8(0x18e)][_0x5b0ac8(0x368)]());}[_0x2cc1b3(0x2d6)](_0x4313be){const _0x1d1185=_0x2cc1b3,{unitID:_0x368289,memberID:_0x2c7c7c,textRanges:_0x3db626}=_0x4313be,_0x3f63ec=Et(_0x3db626),_0x4b87b2={'unitID':_0x368289,'memberID':_0x2c7c7c,'selection':_0x3f63ec};this['_collabCursorState$'][_0x1d1185(0x1a2)](_0x4b87b2);}}var Is=Object[_0x2cc1b3(0x1b2)],ps=Object[_0x2cc1b3(0x47b)],Cs=(_0x1f0cc2,_0x5b1599,_0x490b02,_0x4d59e0)=>{const _0x2caca8=_0x2cc1b3;for(var _0x202709=_0x4d59e0>0x1?void 0x0:_0x4d59e0?ps(_0x5b1599,_0x490b02):_0x5b1599,_0x5d0b50=_0x1f0cc2[_0x2caca8(0x209)]-0x1,_0x55c84c;_0x5d0b50>=0x0;_0x5d0b50--)(_0x55c84c=_0x1f0cc2[_0x5d0b50])&&(_0x202709=(_0x4d59e0?_0x55c84c(_0x5b1599,_0x490b02,_0x202709):_0x55c84c(_0x202709))||_0x202709);return _0x4d59e0&&_0x202709&&Is(_0x5b1599,_0x490b02,_0x202709),_0x202709;},Qe=(_0x318f08,_0x283a21)=>(_0x49d378,_0xf0dddd)=>_0x283a21(_0x49d378,_0xf0dddd,_0x318f08);function Es(_0x5d07e5){const _0x32d2ad=_0x2cc1b3,{unitID:_0x1a2520,mutations:_0x4946f9}=_0x5d07e5;return{'unitId':_0x1a2520,'subUnitId':_0x4946f9[0x0][_0x32d2ad(0x19e)]['subUnitId']};}let ge=class{constructor(_0x188e57,_0x47fc54){const _0x2c6376=_0x2cc1b3;this[_0x2c6376(0x3fe)]=_0x188e57,this['_transformService']=_0x47fc54;}[_0x2cc1b3(0x2e8)](_0xc9e6e3){const _0x3fd40c=_0x2cc1b3;var _0x247658,_0x205d47,_0x34bfe9;const _0x3b6d71=this[_0x3fd40c(0x3fe)][_0x3fd40c(0x3ba)](p[_0x3fd40c(0x154)]),{unitId:_0x527459,subUnitId:_0x35753d}=Es(_0xc9e6e3),_0x5a25c2=_0x3b6d71['getWorkbookSelections'](_0x527459)[_0x3fd40c(0x431)]();if(_0x5a25c2[_0x3fd40c(0x209)]===0x0||!_0x527459||!_0x35753d)return;const _0x7dc6b4=[{'id':p[_0x3fd40c(0x326)]['id'],'params':{'unitId':_0x527459,'subUnitId':_0x35753d,'selections':o['Tools'][_0x3fd40c(0x51f)](_0x5a25c2)}}],_0x169c7c=this['_transformService'][_0x3fd40c(0x525)](_0xc9e6e3,_0x7dc6b4);if(!_[_0x3fd40c(0x421)](_0x169c7c))throw _0x169c7c[_0x3fd40c(0x307)];const _0xf3b7b4=(_0x34bfe9=(_0x205d47=(_0x247658=_0x169c7c[_0x3fd40c(0x285)][0x0])==null?void 0x0:_0x247658[_0x3fd40c(0x19e)])==null?void 0x0:_0x205d47[_0x3fd40c(0x4a3)])!=null?_0x34bfe9:_0x5a25c2;Array[_0x3fd40c(0x1a8)](_0xf3b7b4)&&_0xf3b7b4[_0x3fd40c(0x209)]&&this[_0x3fd40c(0x3fe)][_0x3fd40c(0x3ba)](o[_0x3fd40c(0x1cf)])['executeCommand'](p[_0x3fd40c(0x326)]['id'],{'unitId':_0x527459,'subUnitId':_0x35753d,'selections':_0xf3b7b4});}};ge=Cs([Qe(0x0,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),Qe(0x1,_[_0x2cc1b3(0x4ca)])],ge);const bs=new Set([p['InsertSheetMutation']['id']]);function et(_0x19c067,_0x558a14,_0x50fdfa,_0x1c57e5,_0x3a642f){const _0x2c025b=_0x2cc1b3;var _0x397a31,_0x34ced6,_0x572643,_0x93c143;const _0x4c5447=[];for(const _0x2dfb16 of _0x19c067)if(bs[_0x2c025b(0x2ae)](_0x2dfb16['id'])){if(_0x4c5447[_0x2c025b(0x209)]>0x0)break;_0x4c5447[_0x2c025b(0x4bd)](_0x2dfb16);break;}else _0x4c5447[_0x2c025b(0x4bd)](_0x2dfb16);const _0x51b85c=(_0x34ced6=(_0x397a31=_0x3a642f[_0x2c025b(0x215)]())==null?void 0x0:_0x397a31[_0x2c025b(0x4dc)])!=null?_0x34ced6:_0x2c025b(0x2f5),_0x5d4f08=(_0x93c143=(_0x572643=_0x3a642f['getCurrentUser']())==null?void 0x0:_0x572643[_0x2c025b(0x2fe)])!=null?_0x93c143:'unknown';return{'changeset':{'unitID':_0x558a14,'type':_[_0x2c025b(0x50a)](_0x50fdfa[_0x2c025b(0x1e0)](_0x558a14)),'baseRev':_0x1c57e5[_0x2c025b(0x295)](_0x558a14),'revision':0x0,'userID':_0x51b85c,'memberID':_0x5d4f08,'mutations':_0x4c5447},'pendingMutations':_0x19c067[_0x2c025b(0x3f9)](_0x4c5447[_0x2c025b(0x209)])};}function Ts(_0x5e16a4,_0x19095a,_0x2b3266,_0x55642c,_0x45f3fb){const _0x21e38b=_0x2cc1b3;var _0x3d7f84,_0x2122b0,_0x20edf1,_0x3b93b7;const _0x33fc5e=[_0x5e16a4[_0x21e38b(0x497)]((_0x17d359,_0x1fd6f6)=>{const _0x67e00e=_0x21e38b;var _0x53f2dd;const {id:_0x2207a1}=_0x17d359,{id:_0x23ec0b,type:_0x5717c0}=_0x1fd6f6,_0x1945db=(_0x53f2dd=_0x17d359[_0x67e00e(0x19e)])!=null?_0x53f2dd:{'actions':null},_0x29bc59=_0x1fd6f6[_0x67e00e(0x19e)];if(_0x2207a1&&_0x2207a1!==_0x23ec0b)throw new Error(_0x67e00e(0x467)+_0x2207a1+_0x67e00e(0x526)+_0x23ec0b+'.');return{..._0x17d359,'id':_0x23ec0b,'type':_0x5717c0,'params':{'unitId':_0x29bc59[_0x67e00e(0x440)],'textRanges':_0x29bc59[_0x67e00e(0x1bf)],'actions':o[_0x67e00e(0x250)][_0x67e00e(0x4a9)](_0x1945db[_0x67e00e(0x27e)],_0x29bc59[_0x67e00e(0x27e)])}};},{})],_0x1393ba=(_0x2122b0=(_0x3d7f84=_0x45f3fb['getCurrentUser']())==null?void 0x0:_0x3d7f84[_0x21e38b(0x4dc)])!=null?_0x2122b0:_0x21e38b(0x2f5),_0x487861=(_0x3b93b7=(_0x20edf1=_0x45f3fb[_0x21e38b(0x215)]())==null?void 0x0:_0x20edf1[_0x21e38b(0x2fe)])!=null?_0x3b93b7:'unknown';return{'changeset':{'unitID':_0x19095a,'type':_[_0x21e38b(0x50a)](_0x2b3266['getUnitType'](_0x19095a)),'baseRev':_0x55642c[_0x21e38b(0x295)](_0x19095a),'revision':0x0,'userID':_0x1393ba,'memberID':_0x487861,'mutations':_0x33fc5e},'pendingMutations':[]};}const Rs={'id':p[_0x2cc1b3(0x2d9)]['id'],'type':o[_0x2cc1b3(0x423)][_0x2cc1b3(0x438)],'params':{}};var Os=Object['defineProperty'],Ds=Object[_0x2cc1b3(0x47b)],K=(_0x15b7a7,_0x2342e6,_0x32ff9f,_0x366f74)=>{const _0x392ffc=_0x2cc1b3;for(var _0x105859=_0x366f74>0x1?void 0x0:_0x366f74?Ds(_0x2342e6,_0x32ff9f):_0x2342e6,_0x56c72b=_0x15b7a7[_0x392ffc(0x209)]-0x1,_0x20a2c3;_0x56c72b>=0x0;_0x56c72b--)(_0x20a2c3=_0x15b7a7[_0x56c72b])&&(_0x105859=(_0x366f74?_0x20a2c3(_0x2342e6,_0x32ff9f,_0x105859):_0x20a2c3(_0x105859))||_0x105859);return _0x366f74&&_0x105859&&Os(_0x2342e6,_0x32ff9f,_0x105859),_0x105859;},m=(_0x163edf,_0x454f6d)=>(_0x524d28,_0x4fdfcb)=>_0x454f6d(_0x524d28,_0x4fdfcb,_0x163edf),D=(_0x1b9250=>(_0x1b9250[_0x2cc1b3(0x45a)]=_0x2cc1b3(0x282),_0x1b9250['SYNCED']='synced',_0x1b9250['PENDING']=_0x2cc1b3(0x470),_0x1b9250[_0x2cc1b3(0x255)]=_0x2cc1b3(0x2db),_0x1b9250[_0x2cc1b3(0x297)]=_0x2cc1b3(0x317),_0x1b9250[_0x2cc1b3(0x1d9)]=_0x2cc1b3(0x448),_0x1b9250[_0x2cc1b3(0x3ec)]=_0x2cc1b3(0x1d4),_0x1b9250[_0x2cc1b3(0x38a)]=_0x2cc1b3(0x2d8),_0x1b9250))(D||{});class X{constructor(_0x5adff8,_0x43005b,_0x3fca82,_0x4c52dd,_0x46672a,_0x5a7db5,_0x294dc6,_0x5354a1,_0x195aac){const _0x183ce9=_0x2cc1b3;u(this,_0x183ce9(0x408),null),u(this,_0x183ce9(0x290),[]),(this[_0x183ce9(0x3ee)]=_0x5adff8,this[_0x183ce9(0x3e9)]=_0x43005b,this[_0x183ce9(0x283)]=_0x46672a,this[_0x183ce9(0x466)]=_0x5a7db5,this['_undoRedoService']=_0x294dc6,this['_revisionService']=_0x5354a1,this['_localCacheService']=_0x195aac,this[_0x183ce9(0x408)]=_0x3fca82,this[_0x183ce9(0x290)]=_0x4c52dd);}[_0x2cc1b3(0x358)](_0x27df4f){const _0x4a6727=_0x2cc1b3,_0x484439=this[_0x4a6727(0x341)]['getCurrentRevForDocument'](this[_0x4a6727(0x3ee)]);return _0x27df4f[_0x4a6727(0x456)]>_0x484439+0x1?(this[_0x4a6727(0x283)]['onMissingChangesets']({'from':_0x484439,'to':_0x27df4f['revision']-0x1}),!0x0):!0x1;}[_0x2cc1b3(0x1bc)](_0x4d2c09){const _0x4ea5c5=_0x2cc1b3;this[_0x4ea5c5(0x4b0)][_0x4ea5c5(0x3ff)](this[_0x4ea5c5(0x3ee)],_0x4d2c09);}['_transformSelections'](_0x47f556){const _0x20604d=_0x2cc1b3;var _0x1bc990,_0x45cfd9;(_0x45cfd9=(_0x1bc990=this[_0x20604d(0x283)])[_0x20604d(0x3d6)])==null||_0x45cfd9[_0x20604d(0x181)](_0x1bc990,_0x47f556);}[_0x2cc1b3(0x239)](_0x26d210){const _0x104291=_0x2cc1b3;var _0x528541,_0x1b2ab5;return(_0x1b2ab5=(_0x528541=this[_0x104291(0x283)])[_0x104291(0x4d0)])==null?void 0x0:_0x1b2ab5['call'](_0x528541,_0x26d210);}[_0x2cc1b3(0x23c)](_0x3d1c97){const _0x26e0a9=_0x2cc1b3;var _0x2df1b4,_0x4f3a49,_0x3ffe35;return(_0x3ffe35=(_0x4f3a49=(_0x2df1b4=this['_handler'])[_0x26e0a9(0x258)])==null?void 0x0:_0x4f3a49[_0x26e0a9(0x181)](_0x2df1b4,_0x3d1c97))!=null?_0x3ffe35:_0x3d1c97;}[_0x2cc1b3(0x3b8)](_0x48e13f){const _0x127327=_0x2cc1b3;var _0x7cbd50,_0x26db69;if(this[_0x127327(0x3e9)]===j[_0x127327(0x40b)]){const {unitID:_0x2d50ba,mutations:_0x4f9c4e,memberID:_0x408700}=_0x48e13f,_0x1dc5ec=_0x4f9c4e[0x0][_0x127327(0x19e)]['textRanges'];Array[_0x127327(0x1a8)](_0x1dc5ec)&&_0x1dc5ec[_0x127327(0x209)]>0x0&&((_0x26db69=(_0x7cbd50=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x26db69['call'](_0x7cbd50,{'unitID':_0x2d50ba,'memberID':_0x408700,'textRanges':_0x1dc5ec}));}}['_updateLocalCache'](){const _0x411e8d=_0x2cc1b3;this[_0x411e8d(0x359)][_0x411e8d(0x324)](this[_0x411e8d(0x3ee)],this[_0x411e8d(0x3e9)],this['_awaitingChangeset'],this[_0x411e8d(0x290)]);}[_0x2cc1b3(0x41d)](){const _0x38597e=_0x2cc1b3;return this[_0x38597e(0x341)][_0x38597e(0x295)](this[_0x38597e(0x3ee)]);}[_0x2cc1b3(0x48e)](){const _0x1deeb3=_0x2cc1b3;this[_0x1deeb3(0x341)][_0x1deeb3(0x2f2)](this[_0x1deeb3(0x3ee)]);}['_executeRemoteChangeset'](_0x3101ea){const _0x124d32=_0x2cc1b3;var _0x324177;const _0x5701a0=this['_transformRemoteChangesetByIMECache'](_0x3101ea),_0x4a91b6=o[_0x124d32(0x49b)](_0x5701a0[_0x124d32(0x1d1)],this['_commandService'],{'fromCollab':!0x0});if(!_0x4a91b6['result'])throw _0x4a91b6['error']instanceof Error?_0x4a91b6[_0x124d32(0x307)]:new Error((_0x324177=_0x4a91b6[_0x124d32(0x307)])!=null?_0x324177:_0x124d32(0x45c));this['_transformIMECache'](_0x5701a0),this['_transformUndoredo'](_0x3101ea),this[_0x124d32(0x399)](_0x5701a0),this[_0x124d32(0x3b8)](_0x5701a0),this['_incrementRevisionNumber']();}}let ce=class extends X{constructor(_0x4cb485,_0x33e80c,_0xf69744,_0x595c90,_0x1d932a,_0x2b76cc,_0x24746e,_0x18b1c8,_0x44b8df,_0xecc75){const _0x2cac81=_0x2cc1b3;super(_0x4cb485,_0x33e80c,null,[],_0xf69744,_0x18b1c8,_0x24746e,_0x595c90,_0x1d932a),u(this,_0x2cac81(0x4c5),'synced'),(this[_0x2cac81(0x3fe)]=_0x2b76cc,this[_0x2cac81(0x402)]=_0x44b8df,this[_0x2cac81(0x2ad)]=_0xecc75);}['appendMutation'](_0x2711e3){const _0xcf557a=_0x2cc1b3,_0x3bbc38=this[_0xcf557a(0x3fe)]['createInstance']($,this[_0xcf557a(0x3ee)],this[_0xcf557a(0x3e9)],[_0x2711e3],this[_0xcf557a(0x283)]);return _0x3bbc38[_0xcf557a(0x308)](),_0x3bbc38[_0xcf557a(0x46a)](),_0x3bbc38;}[_0x2cc1b3(0x2b4)](_0x5ecfc0){const _0x48fbfe=_0x2cc1b3;if(this[_0x48fbfe(0x358)](_0x5ecfc0))return this[_0x48fbfe(0x3fe)][_0x48fbfe(0x171)](H,this['unitID'],this[_0x48fbfe(0x3e9)],null,[],null,[_0x5ecfc0],this[_0x48fbfe(0x283)]);try{const _0x5dc078=this[_0x48fbfe(0x2ad)][_0x48fbfe(0x525)](_0x5ecfc0,[Rs]);if(_[_0x48fbfe(0x421)](_0x5dc078)){const {c1Prime:_0x3c2e1c}=_0x5dc078;return this['_executeRemoteChangeset'](_0x3c2e1c),this;}throw _0x5dc078[_0x48fbfe(0x307)];}catch(_0x53b718){return this[_0x48fbfe(0x402)][_0x48fbfe(0x307)](_0x53b718),this['_onConflict'](!0x1);}}[_0x2cc1b3(0x1de)](_0x272ddb){const _0xec8f08=_0x2cc1b3;return this[_0xec8f08(0x3fe)][_0xec8f08(0x171)](B,this[_0xec8f08(0x3ee)],this[_0xec8f08(0x3e9)],null,[],this[_0xec8f08(0x283)],_0x272ddb);}[_0x2cc1b3(0x174)](){const _0x33fbe2=_0x2cc1b3;throw new Error(_0x33fbe2(0x429));}['onRemoteRej'](){const _0x4823c3=_0x2cc1b3;throw new Error(_0x4823c3(0x176));}['toggleOffline'](){const _0x29a101=_0x2cc1b3;return this[_0x29a101(0x3fe)][_0x29a101(0x171)](F,this[_0x29a101(0x3ee)],this[_0x29a101(0x3e9)],null,[],this[_0x29a101(0x283)]);}[_0x2cc1b3(0x2e0)](){return this;}[_0x2cc1b3(0x28c)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}};ce=K([m(0x3,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x4aa)])),m(0x4,o['Inject'](exports[_0x2cc1b3(0x15f)])),m(0x5,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),m(0x6,o[_0x2cc1b3(0x4a8)]),m(0x7,o[_0x2cc1b3(0x1cf)]),m(0x8,o[_0x2cc1b3(0x4ba)]),m(0x9,_[_0x2cc1b3(0x4ca)])],ce);let $=class extends X{constructor(_0x79b7f2,_0x1b09f5,_0x4a4a29,_0x64f184,_0x3b9ffc,_0x510738,_0x1a4bbd,_0x4b49ee,_0x117259,_0x53a4a8,_0x47acf6,_0x3a1473,_0x138f49,_0x17ac9f){const _0x1f5f2d=_0x2cc1b3;super(_0x79b7f2,_0x1b09f5,null,_0x4a4a29,_0x64f184,_0x53a4a8,_0x17ac9f,_0x510738,_0x1a4bbd),u(this,_0x1f5f2d(0x4c5),_0x1f5f2d(0x470)),u(this,'_scheduleTimestamp',null),u(this,_0x1f5f2d(0x4a1),null),(this['_injector']=_0x3b9ffc,this[_0x1f5f2d(0x3ab)]=_0x4b49ee,this[_0x1f5f2d(0x402)]=_0x117259,this[_0x1f5f2d(0x3f8)]=_0x47acf6,this[_0x1f5f2d(0x2ad)]=_0x3a1473,this[_0x1f5f2d(0x46f)]=_0x138f49);}['appendMutation'](_0x23befb){const _0x65fb60=_0x2cc1b3;return this[_0x65fb60(0x290)]['push'](_0x23befb),this['_updateLocalCache'](),this;}[_0x2cc1b3(0x2b4)](_0x1080bd){const _0x147277=_0x2cc1b3;if(this[_0x147277(0x358)](_0x1080bd))return this[_0x147277(0x45f)](),this[_0x147277(0x3fe)][_0x147277(0x171)](H,this['unitID'],this[_0x147277(0x3e9)],null,this[_0x147277(0x290)],null,[_0x1080bd],this[_0x147277(0x283)]);try{const _0xfbfcf9=this[_0x147277(0x2ad)][_0x147277(0x525)](_0x1080bd,this['_pendingMutations']);if(_['isTransformMutationsWithChangesetSuccess'](_0xfbfcf9)){const {c1Prime:_0x584f03,m2Prime:_0xc314ba}=_0xfbfcf9;this['_executeRemoteChangeset'](_0x584f03);const _0x1f7b6b=this[_0x147277(0x3fe)][_0x147277(0x171)]($,this['unitID'],this['type'],_0xc314ba,this['_handler']);return this[_0x147277(0x45f)](),_0x1f7b6b[_0x147277(0x308)](this[_0x147277(0x196)]?Math[_0x147277(0x4c9)](0x0,new Date()[_0x147277(0x296)]()-this[_0x147277(0x196)]):this[_0x147277(0x3d7)]()),_0x1f7b6b;}throw _0xfbfcf9[_0x147277(0x307)];}catch(_0x147abb){return this[_0x147277(0x402)][_0x147277(0x307)](_0x147abb),this[_0x147277(0x1de)](!0x1);}}[_0x2cc1b3(0x174)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x97805b=_0x2cc1b3;throw new Error(_0x97805b(0x309));}[_0x2cc1b3(0x4f6)](){const _0x570a8f=_0x2cc1b3;return this['_clearScheduledTask'](),this[_0x570a8f(0x3fe)][_0x570a8f(0x171)](F,this[_0x570a8f(0x3ee)],this[_0x570a8f(0x3e9)],null,this['_pendingMutations'],this[_0x570a8f(0x283)]);}[_0x2cc1b3(0x2e0)](){return this;}[_0x2cc1b3(0x308)](_0x45db2e){const _0x1f66b=_0x2cc1b3;_0x45db2e=_0x45db2e!=null?_0x45db2e:this['_getSendChangesetTimeout'](),this[_0x1f66b(0x196)]=new Date()[_0x1f66b(0x296)](),this[_0x1f66b(0x4a1)]=setTimeout(()=>{const _0x7d0b07=_0x1f66b;this[_0x7d0b07(0x45f)]();let _0x192b17=null;switch(this[_0x7d0b07(0x3e9)]){case j[_0x7d0b07(0x3a1)]:{_0x192b17=et(this[_0x7d0b07(0x290)],this[_0x7d0b07(0x3ee)],this[_0x7d0b07(0x46f)],this[_0x7d0b07(0x341)],this[_0x7d0b07(0x3ab)]);break;}case j[_0x7d0b07(0x40b)]:{this['_pendingMutations'][_0x7d0b07(0x3bc)](_0x3ddb15=>_0x3ddb15['id']===P[_0x7d0b07(0x321)]['id'])?_0x192b17=Ts(this[_0x7d0b07(0x290)],this[_0x7d0b07(0x3ee)],this[_0x7d0b07(0x46f)],this[_0x7d0b07(0x341)],this[_0x7d0b07(0x3ab)]):_0x192b17=et(this[_0x7d0b07(0x290)],this[_0x7d0b07(0x3ee)],this[_0x7d0b07(0x46f)],this['_revisionService'],this[_0x7d0b07(0x3ab)]);break;}default:throw new Error(_0x7d0b07(0x38b)+this[_0x7d0b07(0x3e9)]+_0x7d0b07(0x1c9));}const {changeset:_0x32b728,pendingMutations:_0xcb89af}=_0x192b17;this['_handler']['onSendChangeset'](_0x32b728);const _0x594803=_0xcb89af['length']?this[_0x7d0b07(0x3fe)]['createInstance'](x,this[_0x7d0b07(0x3ee)],this[_0x7d0b07(0x3e9)],_0x32b728,_0xcb89af,this[_0x7d0b07(0x283)]):this[_0x7d0b07(0x3fe)][_0x7d0b07(0x171)](k,this[_0x7d0b07(0x3ee)],this[_0x7d0b07(0x3e9)],_0x32b728,this['_handler']);_0x594803[_0x7d0b07(0x46a)](),this[_0x7d0b07(0x283)][_0x7d0b07(0x278)](this,_0x594803);},_0x45db2e);}[_0x2cc1b3(0x3d7)](){const _0x991097=_0x2cc1b3;var _0x4002db;return(_0x4002db=this['_configService'][_0x991097(0x42f)](ht))!=null?_0x4002db:Ft;}['resend'](){const _0x15c101=_0x2cc1b3;throw new Error(_0x15c101(0x32e));}[_0x2cc1b3(0x45f)](){const _0x56e7e6=_0x2cc1b3;this[_0x56e7e6(0x4a1)]!=null&&(clearTimeout(this[_0x56e7e6(0x4a1)]),this['_sendingTimer']=null);}[_0x2cc1b3(0x1de)](_0xd3022d){const _0x2a7651=_0x2cc1b3;return this[_0x2a7651(0x45f)](),this[_0x2a7651(0x3fe)]['createInstance'](B,this[_0x2a7651(0x3ee)],this[_0x2a7651(0x3e9)],null,this[_0x2a7651(0x290)],this[_0x2a7651(0x283)],_0xd3022d);}};$=K([m(0x4,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),m(0x5,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x4aa)])),m(0x6,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),m(0x7,o[_0x2cc1b3(0x333)](Y)),m(0x8,o['ILogService']),m(0x9,o[_0x2cc1b3(0x1cf)]),m(0xa,o[_0x2cc1b3(0x149)]),m(0xb,_[_0x2cc1b3(0x4ca)]),m(0xc,o['IUniverInstanceService']),m(0xd,o[_0x2cc1b3(0x4a8)])],$);let k=class extends X{constructor(_0x85e0e3,_0x42925f,_0x52def0,_0x4d7c8c,_0x525acc,_0x2d667f,_0x337bf5,_0x3a0415,_0x45067f,_0xb7aeb4,_0xe8ef9f){const _0x36d055=_0x2cc1b3;super(_0x85e0e3,_0x42925f,_0x52def0,[],_0x4d7c8c,_0x3a0415,_0xe8ef9f,_0x2d667f,_0x337bf5),u(this,_0x36d055(0x4c5),_0x36d055(0x2db)),(this[_0x36d055(0x3fe)]=_0x525acc,this[_0x36d055(0x402)]=_0x45067f,this['_transformService']=_0xb7aeb4);}['appendMutation'](_0x2238a2){const _0x2f850c=_0x2cc1b3,_0x3681bd=this[_0x2f850c(0x3fe)][_0x2f850c(0x171)](x,this[_0x2f850c(0x3ee)],this[_0x2f850c(0x3e9)],this[_0x2f850c(0x408)],[_0x2238a2],this['_handler']);return _0x3681bd[_0x2f850c(0x46a)](),_0x3681bd;}[_0x2cc1b3(0x2b4)](_0x4a0c5a){const _0x38e6c7=_0x2cc1b3;if(this[_0x38e6c7(0x358)](_0x4a0c5a))return this['_injector'][_0x38e6c7(0x171)](H,this[_0x38e6c7(0x3ee)],this[_0x38e6c7(0x3e9)],this[_0x38e6c7(0x408)],[],null,[_0x4a0c5a],this[_0x38e6c7(0x283)]);try{const _0x3887fa=this['_transformService'][_0x38e6c7(0x1f6)]([_0x4a0c5a],[this['_awaitingChangeset']],!0x1);if(_[_0x38e6c7(0x468)](_0x3887fa)){const {c1Prime:_0xfa6b9d,c2Prime:_0xa162ac}=_0x3887fa;this[_0x38e6c7(0x426)](_0xfa6b9d[0x0]),_0xa162ac[0x0][_0x38e6c7(0x1ec)]=this[_0x38e6c7(0x41d)]();const _0x10f19c=this['_injector'][_0x38e6c7(0x171)](k,this[_0x38e6c7(0x3ee)],this[_0x38e6c7(0x3e9)],_0xa162ac[0x0],this[_0x38e6c7(0x283)]);return _0x10f19c[_0x38e6c7(0x46a)](),_0x10f19c;}return this[_0x38e6c7(0x1de)](!0x1);}catch(_0x3b1260){return this[_0x38e6c7(0x402)][_0x38e6c7(0x307)](_0x3b1260),this[_0x38e6c7(0x1de)](!0x1);}}[_0x2cc1b3(0x174)](_0x373a58){const _0xca2f62=_0x2cc1b3,_0x3521c3=this['_revisionService'][_0xca2f62(0x295)](this[_0xca2f62(0x3ee)]);if(_0x373a58[_0xca2f62(0x456)]<_0x3521c3-0x1)return this;if(this[_0xca2f62(0x358)](_0x373a58))return this[_0xca2f62(0x3fe)][_0xca2f62(0x171)](H,this[_0xca2f62(0x3ee)],this['type'],null,[],this[_0xca2f62(0x408)],[],this[_0xca2f62(0x283)]);this[_0xca2f62(0x48e)]();const _0x860566=this[_0xca2f62(0x3fe)][_0xca2f62(0x171)](ce,this[_0xca2f62(0x3ee)],this[_0xca2f62(0x3e9)],this['_handler']);return _0x860566['_updateLocalCache'](),_0x860566;}[_0x2cc1b3(0x320)](_0xb283a2){const _0x31081=_0x2cc1b3;return this[_0x31081(0x1de)](!!(_0xb283a2!=null&&_0xb283a2[_0x31081(0x3fc)]));}[_0x2cc1b3(0x4f6)](){const _0x494779=_0x2cc1b3;return this[_0x494779(0x3fe)][_0x494779(0x171)](F,this[_0x494779(0x3ee)],this['type'],this['_awaitingChangeset'],[],this[_0x494779(0x283)]);}[_0x2cc1b3(0x2e0)](){return this;}[_0x2cc1b3(0x28c)](){const _0x41c2bf=_0x2cc1b3;this[_0x41c2bf(0x283)][_0x41c2bf(0x3ed)](this['_awaitingChangeset']);}[_0x2cc1b3(0x1de)](_0x28828f){const _0x581296=_0x2cc1b3;return this[_0x581296(0x3fe)][_0x581296(0x171)](B,this[_0x581296(0x3ee)],this[_0x581296(0x3e9)],this['_awaitingChangeset'],[],this[_0x581296(0x283)],_0x28828f);}};k=K([m(0x4,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),m(0x5,o[_0x2cc1b3(0x333)](_['RevisionService'])),m(0x6,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),m(0x7,o['ICommandService']),m(0x8,o[_0x2cc1b3(0x4ba)]),m(0x9,_[_0x2cc1b3(0x4ca)]),m(0xa,o[_0x2cc1b3(0x4a8)])],k);let x=class extends X{constructor(_0x980c36,_0x11faf4,_0x3b7fea,_0x3f7358,_0x1ae06d,_0x5656f4,_0x5841ef,_0x905162,_0x57b88f,_0x2399b7,_0x4a3a43,_0x3c750d){const _0x8f43f9=_0x2cc1b3;super(_0x980c36,_0x11faf4,_0x3b7fea,_0x3f7358,_0x1ae06d,_0x57b88f,_0x3c750d,_0x5841ef,_0x905162),u(this,_0x8f43f9(0x4c5),_0x8f43f9(0x317)),(this[_0x8f43f9(0x3fe)]=_0x5656f4,this[_0x8f43f9(0x402)]=_0x2399b7,this[_0x8f43f9(0x2ad)]=_0x4a3a43);}['appendMutation'](_0x1b9f9b){const _0x55a7c4=_0x2cc1b3;return this[_0x55a7c4(0x290)][_0x55a7c4(0x4bd)](_0x1b9f9b),this;}['onRemoteChangeset'](_0x2d198c){const _0x197016=_0x2cc1b3;if(this['_checkMissing'](_0x2d198c))return this[_0x197016(0x3fe)][_0x197016(0x171)](H,this[_0x197016(0x3ee)],this[_0x197016(0x3e9)],this[_0x197016(0x408)],this[_0x197016(0x290)],null,[_0x2d198c],this[_0x197016(0x283)]);try{const _0x238951=this[_0x197016(0x2ad)][_0x197016(0x1f6)]([_0x2d198c],[this[_0x197016(0x408)]],!0x1);if(_[_0x197016(0x468)](_0x238951)){const {c1Prime:_0x17d3c3,c2Prime:_0x740b83}=_0x238951,_0x1a0f0f=this[_0x197016(0x2ad)][_0x197016(0x525)](_0x17d3c3[0x0],this[_0x197016(0x290)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x1a0f0f)){const {c1Prime:_0x3c782c,m2Prime:_0x3a0617}=_0x1a0f0f;return this[_0x197016(0x426)](_0x3c782c),_0x740b83[0x0][_0x197016(0x1ec)]=this['_getCurrentRevision'](),this[_0x197016(0x3fe)][_0x197016(0x171)](x,this[_0x197016(0x3ee)],this[_0x197016(0x3e9)],_0x740b83[0x0],_0x3a0617,this[_0x197016(0x283)]);}throw _0x1a0f0f[_0x197016(0x307)];}throw _0x238951[_0x197016(0x307)];}catch(_0x3f6913){return this[_0x197016(0x402)]['error'](_0x3f6913),this[_0x197016(0x1de)](!0x1);}}[_0x2cc1b3(0x174)](_0x366a5c){const _0x2ae15e=_0x2cc1b3;if(this['_checkMissing'](_0x366a5c))return this[_0x2ae15e(0x3fe)][_0x2ae15e(0x171)](H,this[_0x2ae15e(0x3ee)],this[_0x2ae15e(0x3e9)],null,this['_pendingMutations'],this[_0x2ae15e(0x408)],[],this[_0x2ae15e(0x283)]);this[_0x2ae15e(0x48e)]();const _0x7be349=this[_0x2ae15e(0x3fe)][_0x2ae15e(0x171)]($,this[_0x2ae15e(0x3ee)],this[_0x2ae15e(0x3e9)],this['_pendingMutations'],this[_0x2ae15e(0x283)]);return _0x7be349['_schedule'](),_0x7be349['_updateLocalCache'](),_0x7be349;}[_0x2cc1b3(0x320)](_0x45a81e){const _0x5dec9f=_0x2cc1b3;return this[_0x5dec9f(0x1de)](!!(_0x45a81e!=null&&_0x45a81e['isPermissionRej']));}[_0x2cc1b3(0x4f6)](){const _0x27eefe=_0x2cc1b3;return this[_0x27eefe(0x3fe)][_0x27eefe(0x171)](F,this[_0x27eefe(0x3ee)],this[_0x27eefe(0x3e9)],this[_0x27eefe(0x408)],this[_0x27eefe(0x290)],this['_handler']);}['toggleOnline'](){return this;}[_0x2cc1b3(0x28c)](){const _0x23510f=_0x2cc1b3;this[_0x23510f(0x283)]['onSendChangeset'](this['_awaitingChangeset']);}[_0x2cc1b3(0x1de)](_0x42e790){const _0x1b502e=_0x2cc1b3;return this[_0x1b502e(0x3fe)][_0x1b502e(0x171)](B,this[_0x1b502e(0x3ee)],this[_0x1b502e(0x3e9)],null,this[_0x1b502e(0x290)],this[_0x1b502e(0x283)],_0x42e790);}};x=K([m(0x5,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),m(0x6,o['Inject'](_['RevisionService'])),m(0x7,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),m(0x8,o['ICommandService']),m(0x9,o[_0x2cc1b3(0x4ba)]),m(0xa,_[_0x2cc1b3(0x4ca)]),m(0xb,o[_0x2cc1b3(0x4a8)])],x);let B=class extends X{constructor(_0x17bdec,_0x2e4702,_0x4e1857,_0x380fc0,_0x180c1b,_0xa963d0=!0x1,_0x40afa9,_0x26f1f7,_0x78481c,_0x30cf93,_0x41698b,_0x558ff2,_0x46510d){const _0x4078f7=_0x2cc1b3;super(_0x17bdec,_0x2e4702,_0x4e1857,_0x380fc0,_0x180c1b,_0x26f1f7,_0x78481c,_0x41698b,_0x30cf93),u(this,_0x4078f7(0x4c5),_0x4078f7(0x1d4)),(this['_isPermissionRej']=_0xa963d0,this[_0x4078f7(0x1fd)]=_0x40afa9,this[_0x4078f7(0x33c)]=_0x558ff2,this[_0x4078f7(0x50e)]=_0x46510d,this[_0x4078f7(0x458)](),this['_clearLocalCache'](),this[_0x4078f7(0x462)]());}[_0x2cc1b3(0x27b)](){return this;}['onRemoteChangeset'](){return this;}[_0x2cc1b3(0x174)](){return this;}[_0x2cc1b3(0x320)](){return this;}[_0x2cc1b3(0x4f6)](){return this;}[_0x2cc1b3(0x2e0)](){return this;}[_0x2cc1b3(0x28c)](){const _0x1bb12f=_0x2cc1b3;throw new Error(_0x1bb12f(0x1a5));}['_clearLocalCache'](){const _0x3c9bbf=_0x2cc1b3;this['_localCacheService'][_0x3c9bbf(0x324)](this[_0x3c9bbf(0x3ee)],this[_0x3c9bbf(0x3e9)],null,[]);}[_0x2cc1b3(0x458)](){const _0x1361b0=_0x2cc1b3;this['_isPermissionRej']?this[_0x1361b0(0x50e)][_0x1361b0(0x4f2)]({'title':this[_0x1361b0(0x33c)]['t'](_0x1361b0(0x4bf)),'content':this[_0x1361b0(0x33c)]['t'](_0x1361b0(0x39d)),'type':'error','duration':0x0}):this['_notificationService']['show']({'title':this[_0x1361b0(0x33c)]['t'](_0x1361b0(0x286)),'content':this[_0x1361b0(0x33c)]['t'](_0x1361b0(0x42c)),'type':_0x1361b0(0x307),'duration':0x0});}[_0x2cc1b3(0x462)](){const _0x47e4e5=_0x2cc1b3;this[_0x47e4e5(0x1fd)][_0x47e4e5(0x1e8)](new p[(_0x47e4e5(0x33a))](this[_0x47e4e5(0x3ee)])['id'],!0x1);}};B=K([m(0x6,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x42e)])),m(0x7,o['ICommandService']),m(0x8,o[_0x2cc1b3(0x4a8)]),m(0x9,o['Inject'](exports['LocalCacheService'])),m(0xa,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x4aa)])),m(0xb,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2f6)])),m(0xc,L[_0x2cc1b3(0x14f)])],B);let F=class extends X{constructor(_0x16bda4,_0x4af6bc,_0x521024,_0x1cc606,_0x52fdc3,_0x2c95a9,_0x2c6283,_0x5e6b07,_0x45bde9,_0x5582af){const _0x61fc5b=_0x2cc1b3;super(_0x16bda4,_0x4af6bc,_0x521024,_0x1cc606,_0x52fdc3,_0x45bde9,_0x5582af,_0x2c6283,_0x5e6b07),u(this,_0x61fc5b(0x4c5),'offline'),this['_injector']=_0x2c95a9;}[_0x2cc1b3(0x27b)](_0x386a6b){const _0x1acbd1=_0x2cc1b3;return this['_pendingMutations'][_0x1acbd1(0x4bd)](_0x386a6b),this['_updateLocalCache'](),this;}[_0x2cc1b3(0x2b4)](_0x58767b){const _0x5a3328=_0x2cc1b3;throw new Error(_0x5a3328(0x264));}[_0x2cc1b3(0x174)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x9c7a1f=_0x2cc1b3;throw new Error(_0x9c7a1f(0x279));}[_0x2cc1b3(0x4f6)](){return this;}[_0x2cc1b3(0x2e0)](){const _0x599460=_0x2cc1b3,{_injector:_0x3ef422,_pendingMutations:_0xf9efec,_awaitingChangeset:_0x273964,unitID:_0x749d36,_handler:_0xeeac37,type:_0x2cb746}=this,_0x4d2968=bt(_0x3ef422,_0x749d36,_0x2cb746,_0x273964,_0xf9efec,_0xeeac37);return _0x4d2968 instanceof $?_0x4d2968[_0x599460(0x308)]():(_0x4d2968 instanceof x||_0x4d2968 instanceof k)&&_0x4d2968[_0x599460(0x28c)](),_0x4d2968;}[_0x2cc1b3(0x28c)](){const _0x13e357=_0x2cc1b3;throw new Error(_0x13e357(0x4d8));}};F=K([m(0x5,o[_0x2cc1b3(0x333)](o['Injector'])),m(0x6,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x4aa)])),m(0x7,o[_0x2cc1b3(0x333)](exports['LocalCacheService'])),m(0x8,o['ICommandService']),m(0x9,o[_0x2cc1b3(0x4a8)])],F);let H=class extends X{constructor(_0x55117a,_0x231557,_0x2fb6f8,_0x475ae2,_0x1e9715,_0x4a59b4,_0x320749,_0x533a7f,_0x437746,_0x392218,_0x47850a,_0x42adc0,_0x53ae25,_0x23b506){const _0x5d80af=_0x2cc1b3;super(_0x55117a,_0x231557,_0x2fb6f8,_0x475ae2,_0x320749,_0x42adc0,_0x53ae25,_0x437746,_0x392218),u(this,'status',_0x5d80af(0x448)),(this['_acknowledgedAwaitingChangeset']=_0x1e9715,this[_0x5d80af(0x47f)]=_0x4a59b4,this[_0x5d80af(0x3fe)]=_0x533a7f,this[_0x5d80af(0x402)]=_0x47850a,this[_0x5d80af(0x2ad)]=_0x23b506);}[_0x2cc1b3(0x3d2)](_0x4c8aec){const _0x7a744b=_0x2cc1b3;try{const _0x243d6c=[..._0x4c8aec,...this[_0x7a744b(0x47f)]],_0x4f6fa8=[this[_0x7a744b(0x408)]||this[_0x7a744b(0x4fd)]]['filter'](_0x18a323=>!!_0x18a323);let _0x549a3d,_0x5b538e;if(_0x4f6fa8[_0x7a744b(0x209)]){const _0x17953f=this[_0x7a744b(0x2ad)]['transformChangesets'](_0x243d6c,_0x4f6fa8,!0x1);if(!_[_0x7a744b(0x468)](_0x17953f))throw _0x17953f[_0x7a744b(0x307)];_0x549a3d=_0x17953f[_0x7a744b(0x4fc)],_0x5b538e=_0x17953f[_0x7a744b(0x1ad)];}else _0x549a3d=_0x243d6c,_0x5b538e=[];let _0x16bc75=this[_0x7a744b(0x290)];_0x549a3d[_0x7a744b(0x34c)](_0x149d26=>{const _0x54a355=_0x7a744b;let _0x21d900;if(_0x16bc75['length']){const _0x1b8c69=this[_0x54a355(0x2ad)][_0x54a355(0x525)](_0x149d26,_0x16bc75);if(!_['isTransformMutationsWithChangesetSuccess'](_0x1b8c69))throw _0x1b8c69['error'];_0x21d900=_0x1b8c69[_0x54a355(0x4fc)],_0x16bc75=_0x1b8c69[_0x54a355(0x285)];}else _0x21d900=_0x149d26;this[_0x54a355(0x426)](_0x21d900);}),this[_0x7a744b(0x4fd)]&&this['_incrementRevisionNumber'](),this[_0x7a744b(0x408)]&&_0x5b538e[_0x7a744b(0x209)]&&(_0x5b538e[0x0]['baseRev']=this[_0x7a744b(0x41d)]());let _0x3f534d;if(this['_awaitingChangeset']&&_0x16bc75[_0x7a744b(0x209)]!==0x0)_0x3f534d=this['_injector'][_0x7a744b(0x171)](x,this[_0x7a744b(0x3ee)],this[_0x7a744b(0x3e9)],_0x5b538e[0x0],_0x16bc75,this['_handler']);else{if(this[_0x7a744b(0x408)]&&_0x16bc75[_0x7a744b(0x209)]===0x0)_0x5b538e[0x0]['baseRev']=this[_0x7a744b(0x41d)](),_0x3f534d=this[_0x7a744b(0x3fe)]['createInstance'](k,this['unitID'],this['type'],_0x5b538e[0x0],this[_0x7a744b(0x283)]);else{if(_0x16bc75[_0x7a744b(0x209)]!==0x0){const _0x4cbae4=this[_0x7a744b(0x3fe)][_0x7a744b(0x171)]($,this[_0x7a744b(0x3ee)],this[_0x7a744b(0x3e9)],_0x16bc75,this[_0x7a744b(0x283)]);_0x4cbae4[_0x7a744b(0x308)](),_0x3f534d=_0x4cbae4;}else _0x3f534d=this[_0x7a744b(0x3fe)][_0x7a744b(0x171)](ce,this[_0x7a744b(0x3ee)],this[_0x7a744b(0x3e9)],this[_0x7a744b(0x283)]);}}return _0x3f534d[_0x7a744b(0x46a)](),_0x3f534d;}catch(_0x25682c){return this[_0x7a744b(0x402)][_0x7a744b(0x307)](_0x7a744b(0x16c),_0x7a744b(0x1fe),_0x25682c),this[_0x7a744b(0x3fe)][_0x7a744b(0x171)](B,this[_0x7a744b(0x3ee)],this[_0x7a744b(0x3e9)],this[_0x7a744b(0x408)],this['_pendingMutations'],this[_0x7a744b(0x283)],!0x1);}}[_0x2cc1b3(0x28c)](){const _0x2427a1=_0x2cc1b3;throw new Error(_0x2427a1(0x489));}[_0x2cc1b3(0x27b)](_0x45f407){const _0x13e168=_0x2cc1b3;return this[_0x13e168(0x290)][_0x13e168(0x4bd)](_0x45f407),this;}[_0x2cc1b3(0x2b4)](_0x169dc4){const _0x17b934=_0x2cc1b3;return this[_0x17b934(0x47f)][_0x17b934(0x4bd)](_0x169dc4),this;}[_0x2cc1b3(0x174)](_0x5da449){const _0xaaa839=_0x2cc1b3;if(this['_awaitingChangeset'])return this[_0xaaa839(0x4fd)]=this[_0xaaa839(0x408)],this[_0xaaa839(0x408)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x2cc1b3(0x320)](_0x51d396){const _0x11af3b=_0x2cc1b3;return this[_0x11af3b(0x1de)](!!(_0x51d396!=null&&_0x51d396[_0x11af3b(0x3fc)]));}[_0x2cc1b3(0x4f6)](){const _0x43b2c4=_0x2cc1b3;return this[_0x43b2c4(0x3fe)][_0x43b2c4(0x171)](F,this['unitID'],this[_0x43b2c4(0x3e9)],this[_0x43b2c4(0x408)],this[_0x43b2c4(0x290)],this[_0x43b2c4(0x283)]);}[_0x2cc1b3(0x2e0)](){return this;}[_0x2cc1b3(0x1de)](_0x51a3f7){const _0x4f0373=_0x2cc1b3;return this['_injector']['createInstance'](B,this[_0x4f0373(0x3ee)],this[_0x4f0373(0x3e9)],this['_awaitingChangeset'],this[_0x4f0373(0x290)],this[_0x4f0373(0x283)],_0x51a3f7);}};H=K([m(0x7,o['Inject'](o['Injector'])),m(0x8,o['Inject'](_[_0x2cc1b3(0x4aa)])),m(0x9,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),m(0xa,o['ILogService']),m(0xb,o[_0x2cc1b3(0x1cf)]),m(0xc,o['IUndoRedoService']),m(0xd,_[_0x2cc1b3(0x4ca)])],H);function bt(_0x4d50c1,_0x4d622a,_0x1010fe,_0x4a3351,_0x1f2c28,_0x1fbdb9){const _0x517ed1=_0x2cc1b3;return _0x4a3351&&_0x1f2c28[_0x517ed1(0x209)]?_0x4d50c1[_0x517ed1(0x171)](x,_0x4d622a,_0x1010fe,_0x4a3351,_0x1f2c28,_0x1fbdb9):_0x4a3351?_0x4d50c1[_0x517ed1(0x171)](k,_0x4d622a,_0x1010fe,_0x4a3351,_0x1fbdb9):_0x1f2c28['length']?_0x4d50c1[_0x517ed1(0x171)]($,_0x4d622a,_0x1010fe,_0x1f2c28,_0x1fbdb9):_0x4d50c1[_0x517ed1(0x171)](ce,_0x4d622a,_0x1010fe,_0x1fbdb9);}var Ps=Object[_0x2cc1b3(0x1b2)],Us=Object['getOwnPropertyDescriptor'],Ce=(_0x3a5d16,_0xb51974,_0x1c5a9e,_0x13de8c)=>{const _0x7b2e94=_0x2cc1b3;for(var _0x329add=_0x13de8c>0x1?void 0x0:_0x13de8c?Us(_0xb51974,_0x1c5a9e):_0xb51974,_0x5d4267=_0x3a5d16[_0x7b2e94(0x209)]-0x1,_0x1023f7;_0x5d4267>=0x0;_0x5d4267--)(_0x1023f7=_0x3a5d16[_0x5d4267])&&(_0x329add=(_0x13de8c?_0x1023f7(_0xb51974,_0x1c5a9e,_0x329add):_0x1023f7(_0x329add))||_0x329add);return _0x13de8c&&_0x329add&&Ps(_0xb51974,_0x1c5a9e,_0x329add),_0x329add;},I=(_0x50115b,_0x359b0e)=>(_0x38e277,_0x38f32f)=>_0x359b0e(_0x38e277,_0x38f32f,_0x50115b);exports[_0x2cc1b3(0x305)]=class extends o[_0x2cc1b3(0x516)]{constructor(_0x283233,_0x1f71f4,_0x10c5c0){const _0x35c0d0=_0x2cc1b3;super(),u(this,_0x35c0d0(0x339),new Map()),u(this,_0x35c0d0(0x403),new v['Subject']()),(this['_injector']=_0x283233,this['_collabSessionService']=_0x1f71f4,this[_0x35c0d0(0x46f)]=_0x10c5c0,this[_0x35c0d0(0x4e1)]());}['dispose'](){const _0x42d1a5=_0x2cc1b3;super['dispose'](),this[_0x42d1a5(0x339)][_0x42d1a5(0x34c)](_0x4bf42e=>_0x4bf42e[_0x42d1a5(0x22c)]()),this[_0x42d1a5(0x339)][_0x42d1a5(0x1f8)]();}['getCollabEntity'](_0x4c04ac){const _0x39cf99=_0x2cc1b3;var _0x14c29a;return(_0x14c29a=this[_0x39cf99(0x339)][_0x39cf99(0x3ba)](_0x4c04ac))!=null?_0x14c29a:null;}[_0x2cc1b3(0x1a6)](_0x464a2e){const _0x205191=_0x2cc1b3,_0x156834=this[_0x205191(0x1f0)](_0x464a2e);return _0x156834?v['of'](_0x156834):this[_0x205191(0x403)][_0x205191(0x478)](C[_0x205191(0x277)](_0x50699b=>_0x50699b[_0x205191(0x3ee)]===_0x464a2e));}[_0x2cc1b3(0x4e1)](){const _0x371c0d=_0x2cc1b3;this[_0x371c0d(0x46f)][_0x371c0d(0x25b)](o[_0x371c0d(0x271)][_0x371c0d(0x3a1)])[_0x371c0d(0x478)](v[_0x371c0d(0x1ef)](this[_0x371c0d(0x23e)]),C[_0x371c0d(0x33e)](0x10))[_0x371c0d(0x4c8)](async _0x2c7967=>{const _0x2e6f50=_0x371c0d,_0x5d2112=_0x2c7967[_0x2e6f50(0x15a)](),_0x42d65e=await this[_0x2e6f50(0x1dd)](_0x5d2112,j['UNIVER_SHEET']);this['_entities'][_0x2e6f50(0x1b8)](_0x5d2112,_0x42d65e);}),this['_univerInstanceService'][_0x371c0d(0x25b)](o[_0x371c0d(0x271)]['UNIVER_DOC'])[_0x371c0d(0x478)](v['takeUntil'](this['dispose$']),C['delay'](0x10))['pipe'](C[_0x371c0d(0x277)](_0x86b20c=>!_0x86b20c[_0x371c0d(0x15a)]()[_0x371c0d(0x521)]('__')))['subscribe'](async _0x25e4f5=>{const _0x300d61=_0x371c0d,_0x49c4b8=_0x25e4f5[_0x300d61(0x15a)](),_0x5e4a76=await this[_0x300d61(0x1dd)](_0x49c4b8,j[_0x300d61(0x40b)]);this['_entities'][_0x300d61(0x1b8)](_0x49c4b8,_0x5e4a76);}),v[_0x371c0d(0x3e0)](this[_0x371c0d(0x46f)][_0x371c0d(0x36a)](o[_0x371c0d(0x271)][_0x371c0d(0x3a1)]),this[_0x371c0d(0x46f)][_0x371c0d(0x36a)](o['UniverInstanceType'][_0x371c0d(0x40b)]))[_0x371c0d(0x478)](v[_0x371c0d(0x1ef)](this['dispose$']))['subscribe'](_0x28c899=>{const _0x4a4e72=_0x371c0d,_0x53f52a=_0x28c899[_0x4a4e72(0x15a)](),_0x2cc30d=this[_0x4a4e72(0x339)]['get'](_0x53f52a);_0x2cc30d&&(_0x2cc30d[_0x4a4e72(0x22c)](),this[_0x4a4e72(0x339)][_0x4a4e72(0x386)](_0x53f52a));});}async['_startCollaboration'](_0xae373a,_0x9e98e2){const _0x14c977=_0x2cc1b3,_0xc0a86a=await this[_0x14c977(0x1c7)][_0x14c977(0x33b)](_0xae373a),_0x10d882=this[_0x14c977(0x3fe)][_0x14c977(0x171)](this[_0x14c977(0x2b5)](_0x9e98e2),_0xae373a,_0x9e98e2,_0xc0a86a);return await _0x10d882['init'](),this['_entityInit$']['next'](_0x10d882),_0x10d882;}['_getCtorByUniverType'](_0xaa4f8d){const _0x5213f1=_0x2cc1b3;switch(_0xaa4f8d){case j[_0x5213f1(0x40b)]:return ye;case j['UNIVER_SHEET']:return exports[_0x5213f1(0x145)];default:throw new Error(_0x5213f1(0x4e0)+_0xaa4f8d);}}},exports['CollaborationController']=Ce([o[_0x2cc1b3(0x303)](o['LifecycleStages'][_0x2cc1b3(0x4b2)],exports['CollaborationController']),I(0x0,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),I(0x1,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x14e)])),I(0x2,o[_0x2cc1b3(0x298)])],exports[_0x2cc1b3(0x305)]);let fe=class extends o[_0x2cc1b3(0x516)]{constructor(_0x5adf97,_0x7c1107,_0x1462e4,_0x2f438b,_0x203c75,_0x415784,_0x52595a,_0x1a1141,_0x1a5d6c,_0x1e73ac,_0x452ce2,_0x20122e,_0x2bd2ca){const _0x456240=_0x2cc1b3;super(),u(this,_0x456240(0x393),new v[(_0x456240(0x445))](null)),u(this,'state$',this[_0x456240(0x393)]['asObservable']()),u(this,_0x456240(0x165)),u(this,_0x456240(0x30d),!0x1),u(this,_0x456240(0x4ff),this[_0x456240(0x344)]['pipe'](C['map'](_0x5bec3d=>_0x5bec3d?_0x5bec3d[_0x456240(0x4c5)]:D[_0x456240(0x38a)]),C[_0x456240(0x345)](0x1))),u(this,'_transitionLocked',!0x1),u(this,_0x456240(0x2b1),[]),(this['unitID']=_0x5adf97,this[_0x456240(0x4d3)]=_0x7c1107,this[_0x456240(0x479)]=_0x1462e4,this['_injector']=_0x2f438b,this['_localCacheService']=_0x203c75,this[_0x456240(0x416)]=_0x415784,this[_0x456240(0x33c)]=_0x52595a,this[_0x456240(0x341)]=_0x1a1141,this['_logService']=_0x1a5d6c,this[_0x456240(0x466)]=_0x1e73ac,this[_0x456240(0x475)]=_0x452ce2,this['_permissionService']=_0x20122e,this[_0x456240(0x150)]=_0x2bd2ca);}get[_0x2cc1b3(0x2bb)](){const _0xf96e01=_0x2cc1b3;return this[_0xf96e01(0x165)];}async[_0x2cc1b3(0x3d0)](){const _0x514279=_0x2cc1b3;if(this[_0x514279(0x2bb)])throw new Error(_0x514279(0x23d));await this[_0x514279(0x4e1)]();}[_0x2cc1b3(0x287)](){const _0x14178c=_0x2cc1b3;return this[_0x14178c(0x30d)]=!0x0,o[_0x14178c(0x168)](()=>{const _0x2c9e30=_0x14178c;this[_0x2c9e30(0x30d)]=!0x1,this[_0x2c9e30(0x2ff)]();});}[_0x2cc1b3(0x4ae)](_0x33824a){const _0x1f7075=_0x2cc1b3;this[_0x1f7075(0x165)]=_0x33824a,this['_state$']['next'](_0x33824a);}async['_init'](){const _0x164f4f=_0x2cc1b3;var _0x235adc;return this[_0x164f4f(0x4ae)](await this[_0x164f4f(0x1c5)]()),this['_singleActiveUnitService']&&((_0x235adc=this['_singleActiveUnitService'])==null||_0x235adc[_0x164f4f(0x1ab)](this['unitID']),this[_0x164f4f(0x4be)](o['toDisposable'](this[_0x164f4f(0x150)][_0x164f4f(0x1fb)](this[_0x164f4f(0x3ee)])['subscribe'](_0xa9f70f=>{const _0x20eb2f=_0x164f4f;this[_0x20eb2f(0x402)]['debug'](_0x20eb2f(0x31e),_0x20eb2f(0x3cd),_0xa9f70f),_0xa9f70f===Ct[_0x20eb2f(0x194)]?(this[_0x20eb2f(0x475)]['show']({'content':this[_0x20eb2f(0x33c)]['t'](_0x20eb2f(0x3f6)),'type':Q['MessageType'][_0x20eb2f(0x3b1)]}),this['_permissionService'][_0x20eb2f(0x1e8)](new p[(_0x20eb2f(0x33a))](this[_0x20eb2f(0x3ee)])['id'],!0x1)):this[_0x20eb2f(0x1fd)][_0x20eb2f(0x1e8)](new p[(_0x20eb2f(0x33a))](this[_0x20eb2f(0x3ee)])['id'],!0x0);})))),this[_0x164f4f(0x4be)](o[_0x164f4f(0x168)](this[_0x164f4f(0x479)]['sessionStatus$']['subscribe'](_0x1966b5=>{const _0x4b65c6=_0x164f4f;_0x1966b5===G[_0x4b65c6(0x302)]?this[_0x4b65c6(0x51e)]():_0x1966b5===G[_0x4b65c6(0x38a)]&&this[_0x4b65c6(0x41f)]();}))),this['disposeWithMe'](o[_0x164f4f(0x168)](this[_0x164f4f(0x479)][_0x164f4f(0x4cf)]['subscribe'](_0x3b8231=>{const _0x471740=_0x164f4f;try{switch(_0x3b8231[_0x471740(0x266)]){case _[_0x471740(0x173)][_0x471740(0x353)]:{this['_onRemoteChangeset'](_[_0x471740(0x31b)](_0x3b8231[_0x471740(0x1c0)]));break;}case _[_0x471740(0x173)][_0x471740(0x4fe)]:{this[_0x471740(0x37a)](_0x3b8231[_0x471740(0x1c0)]);break;}case _[_0x471740(0x173)][_0x471740(0x2d4)]:{this[_0x471740(0x4e4)]();break;}case _[_0x471740(0x173)][_0x471740(0x2c4)]:{this['_onFetchMissResult'](_0x3b8231[_0x471740(0x1c0)][_0x471740(0x37d)]['map'](_0x56235b=>_[_0x471740(0x31b)](_0x56235b)));break;}case _[_0x471740(0x173)][_0x471740(0x172)]:this[_0x471740(0x4e4)]({'isPermissionRej':!0x0});}}catch(_0x1fe407){throw console[_0x471740(0x307)]('Error\x20on\x20receiving\x20event',_0x1fe407),_0x1fe407;}}))),this[_0x164f4f(0x165)];}[_0x2cc1b3(0x28f)](){const _0x2a1f12=_0x2cc1b3;this[_0x2a1f12(0x2c2)]=!0x1;}['_lockTransition'](){const _0x15d5e7=_0x2cc1b3;if(this[_0x15d5e7(0x2c2)])throw new Error(_0x15d5e7(0x20e));this['_transitionLocked']=!0x0;}['_onLocalMutation'](_0x4ef072){const _0xdfe9c=_0x2cc1b3;this[_0xdfe9c(0x3d9)](),this[_0xdfe9c(0x4ae)](this['_state']['appendMutation'](_0x4ef072)),this[_0xdfe9c(0x28f)]();}[_0x2cc1b3(0x51c)](_0x1954d9){const _0x3db2e6=_0x2cc1b3;if(!(_0x1954d9['revision']<=this[_0x3db2e6(0x341)][_0x3db2e6(0x295)](this[_0x3db2e6(0x3ee)]))){if(this[_0x3db2e6(0x30d)]){this[_0x3db2e6(0x2b1)][_0x3db2e6(0x4bd)](_0x1954d9);return;}this[_0x3db2e6(0x2a5)](_0x1954d9);}}[_0x2cc1b3(0x2ff)](){const _0xcd7a5a=_0x2cc1b3;this[_0xcd7a5a(0x2b1)][_0xcd7a5a(0x34c)](_0x2aeff4=>this[_0xcd7a5a(0x2a5)](_0x2aeff4)),this[_0xcd7a5a(0x2b1)]=[];}[_0x2cc1b3(0x2a5)](_0x50365f){const _0xc9a63f=_0x2cc1b3,_0x341bd2=this[_0xc9a63f(0x416)][_0xc9a63f(0x158)]['fetchThroughInterceptors'](this['_compressMutationService'][_0xc9a63f(0x158)][_0xc9a63f(0x24f)]()[_0xc9a63f(0x284)])(_0x50365f['mutations'],null)||_0x50365f[_0xc9a63f(0x1d1)],_0x322f11={..._0x50365f,'mutations':_0x341bd2};this[_0xc9a63f(0x3d9)](),this['_updateState'](this[_0xc9a63f(0x165)]['onRemoteChangeset'](_0x322f11)),this[_0xc9a63f(0x28f)]();}[_0x2cc1b3(0x37a)](_0x9fd863){const _0x242ef7=_0x2cc1b3;this[_0x242ef7(0x3d9)](),this['_updateState'](this[_0x242ef7(0x165)][_0x242ef7(0x174)](_0x9fd863)),this[_0x242ef7(0x28f)]();}[_0x2cc1b3(0x4e4)](_0x96147f){const _0xadf614=_0x2cc1b3;this[_0xadf614(0x3d9)](),this['_updateState'](this[_0xadf614(0x165)][_0xadf614(0x320)](_0x96147f)),this[_0xadf614(0x28f)]();}['_onFetchMissResult'](_0x3cd078){const _0x3912a6=_0x2cc1b3;if(!(this[_0x3912a6(0x165)]instanceof H))throw new TypeError(_0x3912a6(0x2ca));const _0x286893=_0x3cd078[_0x3912a6(0x2a8)](_0x1d2e24=>{const _0x22faab=_0x3912a6,_0x16bff2=this[_0x22faab(0x416)][_0x22faab(0x158)][_0x22faab(0x49f)](this[_0x22faab(0x416)][_0x22faab(0x158)][_0x22faab(0x24f)]()[_0x22faab(0x284)])(_0x1d2e24[_0x22faab(0x1d1)],null)||_0x1d2e24[_0x22faab(0x1d1)];return{..._0x1d2e24,'mutations':_0x16bff2};});this[_0x3912a6(0x3d9)](),this[_0x3912a6(0x4ae)](this['_state']['onMissedChangesetFetched'](_0x286893)),this['_unlockTransition']();}['_toggleOffline'](){const _0x5df739=_0x2cc1b3;this['_lockTransition'](),this[_0x5df739(0x4ae)](this[_0x5df739(0x165)][_0x5df739(0x4f6)]()),this[_0x5df739(0x28f)]();}[_0x2cc1b3(0x51e)](){const _0x1efec3=_0x2cc1b3;this[_0x1efec3(0x3d9)](),this[_0x1efec3(0x4ae)](this[_0x1efec3(0x165)]['toggleOnline']()),this[_0x1efec3(0x28f)]();}async[_0x2cc1b3(0x1c5)](){return new Promise(_0x3f8d1d=>{const _0x2ed59c=_0x4b8d;this['_session'][_0x2ed59c(0x380)][_0x2ed59c(0x478)](C['take'](0x1))[_0x2ed59c(0x4c8)](async _0x300ad7=>{const _0x563471=_0x2ed59c;_0x3f8d1d(await this[_0x563471(0x472)](_0x300ad7===G[_0x563471(0x302)]));});});}['_createHandler'](){const _0x54b76c=this['unitID'];return{'onStateChange':(_0x133dbf,_0x196698)=>{const _0x2aa529=_0x4b8d;if(_0x133dbf!==this[_0x2aa529(0x165)])throw new Error(_0x2aa529(0x23a)+_0x133dbf[_0x2aa529(0x4c5)]+_0x2aa529(0x366)+_0x196698[_0x2aa529(0x4c5)]+_0x2aa529(0x361)+this[_0x2aa529(0x165)]['status']);this[_0x2aa529(0x4ae)](_0x196698);},'onSendChangeset':_0x3a5ee4=>{const _0x5c69b7=_0x4b8d,_0x502d11={'eventID':_['CollaborationEvent']['SUBMIT_CHANGESET'],'data':{'unitID':_0x3a5ee4[_0x5c69b7(0x3ee)],'unitType':this[_0x5c69b7(0x4d3)],'changeset':_0x3a5ee4,'memberID':this[_0x5c69b7(0x479)][_0x5c69b7(0x3a8)]()}};this[_0x5c69b7(0x479)][_0x5c69b7(0x377)](_0x502d11,this[_0x5c69b7(0x3ee)]);},'onMissingChangesets':({from:_0x4f88fe,to:_0x5c4b55})=>{const _0x54c7bd=_0x4b8d;this[_0x54c7bd(0x402)]['debug'](_0x54c7bd(0x31e),_0x54c7bd(0x432)+_0x4f88fe+_0x54c7bd(0x335)+_0x5c4b55);const _0x34f4fd={'eventID':_[_0x54c7bd(0x173)][_0x54c7bd(0x4ed)],'data':{'unitID':_0x54b76c,'unitType':this[_0x54c7bd(0x4d3)],'from':_0x4f88fe,'to':_0x5c4b55}};this[_0x54c7bd(0x479)][_0x54c7bd(0x377)](_0x34f4fd,this[_0x54c7bd(0x3ee)]);}};}async[_0x2cc1b3(0x472)](_0x3dcf16){const _0x5a5c38=_0x2cc1b3;var _0x2697e6,_0x3d6060;const _0x46cb36=await this[_0x5a5c38(0x359)]['loadOfflineData'](this[_0x5a5c38(0x3ee)]),_0x31123e=(_0x2697e6=_0x46cb36==null?void 0x0:_0x46cb36[_0x5a5c38(0x1d1)])!=null?_0x2697e6:[],_0x19acb7=(_0x3d6060=_0x46cb36==null?void 0x0:_0x46cb36[_0x5a5c38(0x18f)])!=null?_0x3d6060:null,_0xdaed5c=this[_0x5a5c38(0x3ee)];try{this[_0x5a5c38(0x2d7)](_0x19acb7,_0x31123e);}catch(_0x2ad05e){this['_logService'][_0x5a5c38(0x307)](_0x2ad05e);}const _0x119bc0=this[_0x5a5c38(0x486)]();if(_0x3dcf16){const _0x9f36f6=bt(this[_0x5a5c38(0x3fe)],_0xdaed5c,this[_0x5a5c38(0x4d3)],_0x19acb7,_0x31123e,_0x119bc0);return _0x9f36f6 instanceof $?_0x9f36f6[_0x5a5c38(0x308)]():(_0x9f36f6 instanceof x||_0x9f36f6 instanceof k)&&_0x9f36f6[_0x5a5c38(0x28c)](),_0x9f36f6;}return this[_0x5a5c38(0x3fe)][_0x5a5c38(0x171)](F,_0xdaed5c,this[_0x5a5c38(0x4d3)],_0x19acb7,_0x31123e,_0x119bc0);}['_replayCachedMutations'](_0xe7121a,_0x4e71f8){const _0x287eec=_0x2cc1b3;var _0x58248b,_0x548ff6;const _0x1f5f55=this[_0x287eec(0x416)][_0x287eec(0x158)][_0x287eec(0x49f)](this[_0x287eec(0x416)][_0x287eec(0x158)][_0x287eec(0x24f)]()[_0x287eec(0x284)]);(_0x58248b=_0x1f5f55((_0xe7121a==null?void 0x0:_0xe7121a['mutations'])||[],null))==null||_0x58248b[_0x287eec(0x34c)](_0x48d45f=>this[_0x287eec(0x466)][_0x287eec(0x186)](_0x48d45f['id'],_0x48d45f[_0x287eec(0x19e)])),(_0x548ff6=_0x1f5f55(_0x4e71f8||[],null))==null||_0x548ff6['forEach'](_0x1f6c2b=>this[_0x287eec(0x466)]['executeCommand'](_0x1f6c2b['id'],_0x1f6c2b[_0x287eec(0x19e)]));}};fe=Ce([I(0x3,o['Inject'](o[_0x2cc1b3(0x2b3)])),I(0x4,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),I(0x5,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x425)])),I(0x6,o['Inject'](o[_0x2cc1b3(0x2f6)])),I(0x7,o['Inject'](_[_0x2cc1b3(0x4aa)])),I(0x8,o['ILogService']),I(0x9,o[_0x2cc1b3(0x1cf)]),I(0xa,L[_0x2cc1b3(0x280)]),I(0xb,o[_0x2cc1b3(0x42e)]),I(0xc,o[_0x2cc1b3(0x2c3)](pe))],fe);let ye=class extends fe{constructor(_0x19a5b3,_0x43a3c3,_0x8952cd,_0x40e31a,_0x35d220,_0x449dad,_0x5cd823,_0x3c96d6,_0x57d15c,_0x2e3581,_0x51780c,_0x16e55a,_0x48ca7f,_0x5b334a,_0x9d30f8,_0x22b4f1,_0x4daba7){const _0x429c9a=_0x2cc1b3;super(_0x19a5b3,_0x43a3c3,_0x8952cd,_0x40e31a,_0x35d220,_0x449dad,_0x5cd823,_0x3c96d6,_0x48ca7f,_0x5b334a,_0x9d30f8,_0x22b4f1,_0x4daba7),this[_0x429c9a(0x3ee)]=_0x19a5b3,this[_0x429c9a(0x3e9)]=_0x43a3c3,this['session']=_0x8952cd,this[_0x429c9a(0x2f3)]=_0x57d15c,this[_0x429c9a(0x356)]=_0x2e3581,this[_0x429c9a(0x3f3)]=_0x51780c,this[_0x429c9a(0x25e)]=_0x16e55a;}[_0x2cc1b3(0x486)](){const _0x511584=_0x2cc1b3,_0x4ad9ce=super[_0x511584(0x486)]();return _0x4ad9ce[_0x511584(0x4d0)]=_0x561714=>this['_docTransformIMECacheService'][_0x511584(0x327)](_0x561714),_0x4ad9ce[_0x511584(0x3d6)]=_0x49188d=>this[_0x511584(0x3f3)][_0x511584(0x2e8)](_0x49188d),_0x4ad9ce[_0x511584(0x314)]=_0x27458b=>this[_0x511584(0x25e)]['syncEditingCollabCursor'](_0x27458b),_0x4ad9ce[_0x511584(0x258)]=_0xf24265=>this[_0x511584(0x356)][_0x511584(0x457)](_0xf24265),_0x4ad9ce;}async[_0x2cc1b3(0x4e1)](){const _0x349bb4=_0x2cc1b3,_0x5da2cb=await super[_0x349bb4(0x4e1)]();return this[_0x349bb4(0x4be)](this[_0x349bb4(0x466)]['onCommandExecuted']((_0x300bcf,_0x36006d)=>{const _0x1a051b=_0x349bb4;if(_0x300bcf[_0x1a051b(0x3e9)]!==o[_0x1a051b(0x423)][_0x1a051b(0x438)]||_0x36006d!=null&&_0x36006d['fromCollab']||_0x36006d!=null&&_0x36006d[_0x1a051b(0x379)])return;const _0x1285f8=_0x300bcf[_0x1a051b(0x19e)];if((_0x1285f8==null?void 0x0:_0x1285f8[_0x1a051b(0x440)])!==this[_0x1a051b(0x3ee)])return;let _0x34b048=_0x300bcf;if(_0x34b048['id']===P[_0x1a051b(0x321)]['id']){const _0x5e2882=_0x34b048['params'];_0x34b048={'id':P['RichTextEditingMutation']['id'],'type':o[_0x1a051b(0x423)]['MUTATION'],'params':{'unitId':_0x5e2882['unitId'],'actions':_0x5e2882['actions'],'textRanges':null}};}const _0xcf4a8a=this[_0x1a051b(0x416)][_0x1a051b(0x158)][_0x1a051b(0x49f)](this['_compressMutationService'][_0x1a051b(0x158)][_0x1a051b(0x24f)]()[_0x1a051b(0x362)])([_0x34b048],null)||[_0x34b048];this[_0x1a051b(0x464)](_0xcf4a8a[0x0]);})),_0x5da2cb;}};ye=Ce([I(0x3,o['Inject'](o['Injector'])),I(0x4,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),I(0x5,o['Inject'](_[_0x2cc1b3(0x425)])),I(0x6,o['Inject'](o[_0x2cc1b3(0x2f6)])),I(0x7,o[_0x2cc1b3(0x333)](_['RevisionService'])),I(0x8,o[_0x2cc1b3(0x333)](P[_0x2cc1b3(0x451)])),I(0x9,o[_0x2cc1b3(0x333)](ve)),I(0xa,o['Inject'](me)),I(0xb,o['Inject'](Fe)),I(0xc,o[_0x2cc1b3(0x4ba)]),I(0xd,o[_0x2cc1b3(0x1cf)]),I(0xe,L[_0x2cc1b3(0x280)]),I(0xf,o[_0x2cc1b3(0x42e)]),I(0x10,o[_0x2cc1b3(0x2c3)](pe))],ye),exports[_0x2cc1b3(0x145)]=class extends fe{constructor(_0xfac06a,_0x173d25,_0x43a5c8,_0x1f19b6,_0x211cbb,_0x50274a,_0x1c4639,_0x4d0b5d,_0x1de710,_0x144573,_0x57580a,_0x2ceb18,_0x189f5c,_0x24c0d1){const _0x517590=_0x2cc1b3;super(_0xfac06a,_0x173d25,_0x43a5c8,_0x1f19b6,_0x211cbb,_0x50274a,_0x1c4639,_0x4d0b5d,_0x144573,_0x57580a,_0x2ceb18,_0x189f5c,_0x24c0d1),this[_0x517590(0x3ee)]=_0xfac06a,this[_0x517590(0x3e9)]=_0x173d25,this[_0x517590(0x301)]=_0x43a5c8,this['_sheetTransformSelectionsService']=_0x1de710;}[_0x2cc1b3(0x486)](){const _0x2958d7=_0x2cc1b3,_0x1e3b6c=super[_0x2958d7(0x486)]();return _0x1e3b6c[_0x2958d7(0x3d6)]=_0x2516f2=>this[_0x2958d7(0x3f0)][_0x2958d7(0x2e8)](_0x2516f2),_0x1e3b6c;}async['_init'](){const _0x22bf19=_0x2cc1b3,_0x3cfb27=await super['_init']();return this[_0x22bf19(0x4be)](this['_commandService']['onCommandExecuted']((_0x479202,_0x1acd17)=>{const _0x4594e3=_0x22bf19;if(_0x479202[_0x4594e3(0x3e9)]!==o[_0x4594e3(0x423)][_0x4594e3(0x438)]||_0x1acd17!=null&&_0x1acd17[_0x4594e3(0x4ee)]||_0x1acd17!=null&&_0x1acd17['onlyLocal'])return;const _0xf62b20=_0x479202[_0x4594e3(0x19e)];if((_0xf62b20==null?void 0x0:_0xf62b20[_0x4594e3(0x440)])!==this[_0x4594e3(0x3ee)])return;const _0xa7c4be=_0x479202,_0x208f43=this[_0x4594e3(0x416)][_0x4594e3(0x158)][_0x4594e3(0x49f)](this['_compressMutationService'][_0x4594e3(0x158)]['getInterceptPoints']()[_0x4594e3(0x362)])([_0xa7c4be],null)||[_0xa7c4be];this[_0x4594e3(0x464)](_0x208f43[0x0]);})),_0x3cfb27;}},exports[_0x2cc1b3(0x145)]=Ce([I(0x3,o[_0x2cc1b3(0x333)](o['Injector'])),I(0x4,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),I(0x5,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x425)])),I(0x6,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2f6)])),I(0x7,o[_0x2cc1b3(0x333)](_['RevisionService'])),I(0x8,o[_0x2cc1b3(0x333)](ge)),I(0x9,o[_0x2cc1b3(0x4ba)]),I(0xa,o[_0x2cc1b3(0x1cf)]),I(0xb,L[_0x2cc1b3(0x280)]),I(0xc,o[_0x2cc1b3(0x42e)]),I(0xd,o[_0x2cc1b3(0x2c3)](pe))],exports[_0x2cc1b3(0x145)]);const tt=[_0x2cc1b3(0x3c6),_0x2cc1b3(0x1ee),_0x2cc1b3(0x46e),_0x2cc1b3(0x26c),'blue400',_0x2cc1b3(0x2a1)];class Ve extends o[_0x2cc1b3(0x460)]{constructor(){const _0x3799dd=_0x2cc1b3;super(...arguments),u(this,_0x3799dd(0x504),new Map()),u(this,_0x3799dd(0x17c),0x0);}['assignAColorForMemberID'](_0x85b00d){const _0x5336fc=_0x2cc1b3;if(this[_0x5336fc(0x504)]['has'](_0x85b00d))return this[_0x5336fc(0x504)]['get'](_0x85b00d);const _0x15a32e=tt[this[_0x5336fc(0x17c)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%tt[_0x5336fc(0x209)],this[_0x5336fc(0x504)][_0x5336fc(0x1b8)](_0x85b00d,_0x15a32e),_0x15a32e;}}var Ms=Object[_0x2cc1b3(0x1b2)],ws=Object['getOwnPropertyDescriptor'],ys=(_0x38f5df,_0x5fc4b6,_0xd0e2e4,_0x398501)=>{for(var _0x10da2a=_0x398501>0x1?void 0x0:_0x398501?ws(_0x5fc4b6,_0xd0e2e4):_0x5fc4b6,_0x10d4b9=_0x38f5df['length']-0x1,_0x5a4c11;_0x10d4b9>=0x0;_0x10d4b9--)(_0x5a4c11=_0x38f5df[_0x10d4b9])&&(_0x10da2a=(_0x398501?_0x5a4c11(_0x5fc4b6,_0xd0e2e4,_0x10da2a):_0x5a4c11(_0x10da2a))||_0x10da2a);return _0x398501&&_0x10da2a&&Ms(_0x5fc4b6,_0xd0e2e4,_0x10da2a),_0x10da2a;},q=(_0x38b6fd,_0x4c2547)=>(_0x3eade4,_0xd908e5)=>_0x4c2547(_0x3eade4,_0xd908e5,_0x38b6fd);const Ns=0x12c,Ls=0x64,As=()=>{let _0x5fc52f=[],_0x283a68=!0x1;return _0x2c8c8a=>{_0x5fc52f['push'](_0x2c8c8a),_0x283a68||(_0x283a68=!0x0,setTimeout(()=>{const _0xef2d03=_0x4b8d;_0x5fc52f[_0xef2d03(0x34c)](_0x12edda=>_0x12edda()),_0x5fc52f=[],_0x283a68=!0x1;}));};};let Ne=class extends o['RxDisposable']{constructor(_0x459907,_0xc1c5f0,_0x55412a,_0x5a6fea,_0x330d43,_0x4f68ae,_0x37538a,_0x3d836f){const _0x2b00bf=_0x2cc1b3;super(),u(this,'_online',!0x1),u(this,_0x2b00bf(0x4e1),!0x1),u(this,'_cursorInfo$',new v[(_0x2b00bf(0x445))](new Map())),u(this,_0x2b00bf(0x312),this[_0x2b00bf(0x267)][_0x2b00bf(0x368)]()),u(this,_0x2b00bf(0x3e7),new v[(_0x2b00bf(0x445))]([])),u(this,'roomMembers$',this[_0x2b00bf(0x3e7)][_0x2b00bf(0x478)](v[_0x2b00bf(0x2c6)](Ns))),u(this,_0x2b00bf(0x2a6),$e((_0x129479,_0x438c9a)=>{const _0x396db9=_0x2b00bf,_0x19af44={'eventID':_['CollaborationEvent'][_0x396db9(0x49a)],'data':{'unitID':this[_0x396db9(0x3ee)],'memberID':this['_session']['getMemberID'](),'selection':Ye['serializeRangeWithSheet'](_0x129479,_0x438c9a[_0x396db9(0x35a)])}};this[_0x396db9(0x479)][_0x396db9(0x377)](_0x19af44,this[_0x396db9(0x3ee)]);},Ls)),(this[_0x2b00bf(0x3ee)]=_0x459907,this[_0x2b00bf(0x479)]=_0xc1c5f0,this[_0x2b00bf(0x3fe)]=_0x55412a,this[_0x2b00bf(0x1ac)]=_0x5a6fea,this[_0x2b00bf(0x3ab)]=_0x330d43,this[_0x2b00bf(0x46f)]=_0x4f68ae,this[_0x2b00bf(0x466)]=_0x37538a,this[_0x2b00bf(0x406)]=_0x3d836f);}get[_0x2cc1b3(0x1f1)](){const _0xc2c069=_0x2cc1b3;return this['_cursorInfo$'][_0xc2c069(0x14c)]();}get['roomMembers'](){const _0x3d9474=_0x2cc1b3;return this[_0x3d9474(0x3e7)][_0x3d9474(0x14c)]();}[_0x2cc1b3(0x22c)](){const _0xbccdba=_0x2cc1b3;super['dispose'](),this[_0xbccdba(0x267)]['next'](new Map()),this['_cursorInfo$'][_0xbccdba(0x491)](),this[_0xbccdba(0x3e7)][_0xbccdba(0x1a2)]([]),this[_0xbccdba(0x3e7)][_0xbccdba(0x491)]();}['init'](){const _0x415c8e=_0x2cc1b3;this[_0x415c8e(0x4e1)]||(this[_0x415c8e(0x4e1)]=!0x0,this[_0x415c8e(0x479)][_0x415c8e(0x380)][_0x415c8e(0x478)](v['takeUntil'](this[_0x415c8e(0x23e)]))[_0x415c8e(0x4c8)](_0x3537a5=>{const _0x266b35=_0x415c8e;_0x3537a5===G['ONLINE']?this[_0x266b35(0x51e)]():this['_toggleOffline']();}),this['_session'][_0x415c8e(0x4cf)][_0x415c8e(0x478)](v['takeUntil'](this[_0x415c8e(0x23e)]))[_0x415c8e(0x4c8)](_0x2732f6=>{const _0x3e2794=_0x415c8e,_0x3584f5=_0x2732f6[_0x3e2794(0x266)];_0x3584f5===_[_0x3e2794(0x173)][_0x3e2794(0x49a)]&&this[_0x3e2794(0x1f5)](_0x2732f6),_0x3584f5===_['CollaborationEvent'][_0x3e2794(0x21e)]&&this[_0x3e2794(0x28d)](_0x2732f6);}),this[_0x415c8e(0x450)](),this[_0x415c8e(0x4be)](this[_0x415c8e(0x466)][_0x415c8e(0x490)](_0x2cf9fb=>{const _0x3f78cf=_0x415c8e;if(this[_0x3f78cf(0x45d)]&&_0x2cf9fb['id']===p[_0x3f78cf(0x326)]['id']&&_0x2cf9fb[_0x3f78cf(0x19e)][_0x3f78cf(0x440)]===this[_0x3f78cf(0x3ee)]){const _0x324884=_0x2cf9fb[_0x3f78cf(0x19e)];this[_0x3f78cf(0x2a6)](_0x324884[_0x3f78cf(0x2a9)],_0x324884[_0x3f78cf(0x4a3)][0x0]);}})));}[_0x2cc1b3(0x1f5)](_0x9e1c39){const _0x5dd9ab=_0x2cc1b3;var _0x566363,_0x110504;const {memberID:_0x3d2a0e,selection:_0x6048ef}=_0x9e1c39[_0x5dd9ab(0x1c0)],{sheetName:_0x2fab4b,range:_0x1d41fc}=Ye[_0x5dd9ab(0x2ac)](_0x6048ef),_0x5a0d63={'name':(_0x110504=(_0x566363=this[_0x5dd9ab(0x3ab)][_0x5dd9ab(0x523)](this['unitID'],_0x3d2a0e))==null?void 0x0:_0x566363['name'])!=null?_0x110504:_0x5dd9ab(0x193),'range':this['_getMergeRange'](_0x2fab4b,_0x1d41fc),'sheetID':_0x2fab4b,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x3d2a0e),'selection':_0x6048ef},_0x34d2ad=this[_0x5dd9ab(0x1f1)];_0x34d2ad['set'](_0x3d2a0e,_0x5a0d63),this[_0x5dd9ab(0x267)][_0x5dd9ab(0x1a2)](_0x34d2ad);}[_0x2cc1b3(0x28d)](_0x9b6c98){const _0x54f0c9=_0x2cc1b3,{memberID:_0x30f450}=_0x9b6c98[_0x54f0c9(0x1c0)],_0x1b60ab=this[_0x54f0c9(0x1f1)];_0x1b60ab['delete'](_0x30f450),this['_cursorInfo$'][_0x54f0c9(0x1a2)](_0x1b60ab);}[_0x2cc1b3(0x418)](_0x11be95,_0x1a1f18){const _0xcc79b2=_0x2cc1b3;var _0x2f2db6,_0x466bcf;const _0x54d887=(_0x466bcf=(_0x2f2db6=this[_0xcc79b2(0x46f)][_0xcc79b2(0x219)](this[_0xcc79b2(0x3ee)]))==null?void 0x0:_0x2f2db6[_0xcc79b2(0x4ce)](_0x11be95))==null?void 0x0:_0x466bcf['getMergeData']();return(_0x54d887==null?void 0x0:_0x54d887[_0xcc79b2(0x4da)](_0x1a7912=>o['Rectangle']['contains'](_0x1a7912,_0x1a1f18)))||_0x1a1f18;}[_0x2cc1b3(0x450)](){const _0x56bed2=_0x2cc1b3,_0x31adb3=new o['DisposableCollection'](),_0x2497bb=As(),_0xc34d3=()=>{const _0x1c356a=_0x4b8d;_0x31adb3['dispose']();const _0x33db6b=(_0x2675ac,_0x41e7ab,_0xc1e0ea,_0x4d7167)=>{const _0x4700ee=_0x4b8d;let _0x172289=[];switch(_0x2675ac['id']){case p['EffectRefRangId'][_0x4700ee(0x42b)]:{_0x172289=p[_0x4700ee(0x437)](_0x2675ac,_0x4d7167);break;}case p[_0x4700ee(0x463)][_0x4700ee(0x3c0)]:{_0x172289=p[_0x4700ee(0x1d7)](_0x2675ac,_0x4d7167);break;}case p[_0x4700ee(0x463)][_0x4700ee(0x227)]:{_0x172289=p[_0x4700ee(0x4e6)](_0x2675ac,_0x4d7167);break;}case p['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x172289=p[_0x4700ee(0x234)](_0x2675ac,_0x4d7167);break;}case p[_0x4700ee(0x463)][_0x4700ee(0x427)]:{_0x172289=p[_0x4700ee(0x175)](_0x2675ac,_0x4d7167);break;}case p[_0x4700ee(0x463)][_0x4700ee(0x505)]:{_0x172289=p[_0x4700ee(0x412)](_0x2675ac,_0x4d7167);break;}case p['EffectRefRangId'][_0x4700ee(0x203)]:{_0x172289=p['handleMoveRange'](_0x2675ac,_0x4d7167);break;}case p[_0x4700ee(0x463)]['RemoveColCommandId']:{_0x172289=p['handleIRemoveCol'](_0x2675ac,_0x4d7167);break;}case p[_0x4700ee(0x463)][_0x4700ee(0x30e)]:{_0x172289=p[_0x4700ee(0x228)](_0x2675ac,_0x4d7167);break;}}const _0x599248=p[_0x4700ee(0x446)](_0x172289,_0x4d7167),_0x52b28d=this[_0x4700ee(0x1f1)]['get'](_0x41e7ab);if(_0x52b28d&&_0x599248){const _0x20e417={..._0x52b28d,'range':_0x599248};this[_0x4700ee(0x1f1)]['set'](_0x41e7ab,_0x20e417),_0x2497bb(()=>{const _0x2c01d9=_0x4700ee,_0x51cb5c=this[_0x2c01d9(0x406)]['registerRefRange'](_0x599248,_0x458ea8=>(_0x51cb5c[_0x2c01d9(0x22c)](),_0x33db6b(_0x458ea8,_0x41e7ab,_0xc1e0ea,_0x599248)));_0x31adb3['add'](_0x51cb5c);});}return{'redos':[],'undos':[]};};this[_0x1c356a(0x1f1)][_0x1c356a(0x34c)]((_0x52dfab,_0x43bd7f)=>{const _0x1155e7=_0x1c356a,{range:_0x17270f,sheetID:_0x3cb2eb}=_0x52dfab,_0x3dfdc2=this['_refRangeService']['registerRefRange'](_0x17270f,_0x5950d9=>(_0x3dfdc2[_0x1155e7(0x22c)](),_0x33db6b(_0x5950d9,_0x43bd7f,_0x3cb2eb,_0x17270f)));_0x31adb3[_0x1155e7(0x506)](_0x3dfdc2);});};this[_0x56bed2(0x4be)](o[_0x56bed2(0x168)](this['_cursorInfo$']['subscribe'](()=>{_0xc34d3();})));}[_0x2cc1b3(0x51e)](){const _0x2eb5c4=_0x2cc1b3;var _0x584ace,_0x1bf7f7;if(this[_0x2eb5c4(0x45d)]=!0x0,((_0x584ace=this[_0x2eb5c4(0x46f)][_0x2eb5c4(0x4cd)]())==null?void 0x0:_0x584ace[_0x2eb5c4(0x15a)]())!==this[_0x2eb5c4(0x3ee)])return;const _0x127275=(_0x1bf7f7=this[_0x2eb5c4(0x3fe)][_0x2eb5c4(0x3ba)](p[_0x2eb5c4(0x154)])[_0x2eb5c4(0x431)]())==null?void 0x0:_0x1bf7f7[0x0],_0x524fa1=this[_0x2eb5c4(0x46f)][_0x2eb5c4(0x244)](o[_0x2eb5c4(0x271)][_0x2eb5c4(0x3a1)])['getActiveSheet']();_0x127275&&_0x524fa1&&this[_0x2eb5c4(0x2a6)](_0x524fa1[_0x2eb5c4(0x1ba)](),_0x127275);}['_toggleOffline'](){const _0x184c1f=_0x2cc1b3;this[_0x184c1f(0x45d)]=!0x1;}};Ne=ys([q(0x2,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),q(0x3,o[_0x2cc1b3(0x333)](Ve)),q(0x4,o[_0x2cc1b3(0x333)](Y)),q(0x5,o['IUniverInstanceService']),q(0x6,o[_0x2cc1b3(0x1cf)]),q(0x7,o[_0x2cc1b3(0x333)](p[_0x2cc1b3(0x32f)]))],Ne);var js=Object[_0x2cc1b3(0x1b2)],$s=Object[_0x2cc1b3(0x47b)],xs=(_0x2383ec,_0x20c7af,_0x5abee9,_0x2651be)=>{const _0x2f9bb4=_0x2cc1b3;for(var _0x27e414=_0x2651be>0x1?void 0x0:_0x2651be?$s(_0x20c7af,_0x5abee9):_0x20c7af,_0x205ed0=_0x2383ec[_0x2f9bb4(0x209)]-0x1,_0x1e9cfc;_0x205ed0>=0x0;_0x205ed0--)(_0x1e9cfc=_0x2383ec[_0x205ed0])&&(_0x27e414=(_0x2651be?_0x1e9cfc(_0x20c7af,_0x5abee9,_0x27e414):_0x1e9cfc(_0x27e414))||_0x27e414);return _0x2651be&&_0x27e414&&js(_0x20c7af,_0x5abee9,_0x27e414),_0x27e414;},W=(_0x107f47,_0x57dd3c)=>(_0x33a4a6,_0x2f0997)=>_0x57dd3c(_0x33a4a6,_0x2f0997,_0x107f47);const Hs=0x12c,ks=0x64;let Le=class extends o[_0x2cc1b3(0x516)]{constructor(_0x39fa44,_0x2ceeb3,_0x37e82a,_0x240bd4,_0x41baa2,_0x2ae38f,_0x5edd6d,_0x475463,_0x5ac80d){const _0x1db231=_0x2cc1b3;super(),u(this,_0x1db231(0x45d),!0x1),u(this,_0x1db231(0x4e1),!0x1),u(this,_0x1db231(0x267),new v['BehaviorSubject'](new Map())),u(this,_0x1db231(0x312),this[_0x1db231(0x267)][_0x1db231(0x368)]()),u(this,_0x1db231(0x3e7),new v[(_0x1db231(0x445))]([])),u(this,_0x1db231(0x390),this[_0x1db231(0x3e7)][_0x1db231(0x478)](v[_0x1db231(0x2c6)](Hs))),u(this,_0x1db231(0x2a6),$e(_0x360b49=>{const _0x30d3c2=_0x1db231,_0x9c2a3a={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x30d3c2(0x3ee)],'memberID':this[_0x30d3c2(0x479)][_0x30d3c2(0x3a8)](),'selection':Et(_0x360b49)}};this[_0x30d3c2(0x479)][_0x30d3c2(0x377)](_0x9c2a3a,this['unitID']);},ks)),(this[_0x1db231(0x3ee)]=_0x39fa44,this['_session']=_0x2ceeb3,this[_0x1db231(0x3fe)]=_0x37e82a,this[_0x1db231(0x1ac)]=_0x240bd4,this[_0x1db231(0x3ab)]=_0x41baa2,this[_0x1db231(0x1a4)]=_0x2ae38f,this[_0x1db231(0x2ad)]=_0x5edd6d,this[_0x1db231(0x46f)]=_0x475463,this[_0x1db231(0x466)]=_0x5ac80d);}get[_0x2cc1b3(0x1f1)](){const _0x4e48a4=_0x2cc1b3;return this[_0x4e48a4(0x267)][_0x4e48a4(0x14c)]();}get[_0x2cc1b3(0x240)](){const _0x31c362=_0x2cc1b3;return this[_0x31c362(0x3e7)][_0x31c362(0x14c)]();}[_0x2cc1b3(0x22c)](){const _0x36b98d=_0x2cc1b3;super[_0x36b98d(0x22c)](),this['_cursorInfo$']['next'](new Map()),this[_0x36b98d(0x267)]['complete'](),this[_0x36b98d(0x3e7)][_0x36b98d(0x1a2)]([]),this['_roomMembers$'][_0x36b98d(0x491)]();}[_0x2cc1b3(0x3d0)](){const _0x33bf29=_0x2cc1b3;this[_0x33bf29(0x4e1)]||(this[_0x33bf29(0x4e1)]=!0x0,this[_0x33bf29(0x479)]['sessionStatus$'][_0x33bf29(0x478)](v[_0x33bf29(0x1ef)](this['dispose$']))[_0x33bf29(0x4c8)](_0x3ff799=>{const _0x5ec9d4=_0x33bf29;_0x3ff799===G['ONLINE']?this[_0x5ec9d4(0x51e)]():this[_0x5ec9d4(0x41f)]();}),this[_0x33bf29(0x479)][_0x33bf29(0x4cf)][_0x33bf29(0x478)](v[_0x33bf29(0x1ef)](this[_0x33bf29(0x23e)]))[_0x33bf29(0x4c8)](_0x29183c=>{const _0x24bc1d=_0x33bf29,_0x3d255b=_0x29183c[_0x24bc1d(0x266)];_0x3d255b===_[_0x24bc1d(0x173)]['UPDATE_CURSOR']&&this[_0x24bc1d(0x1f5)](_0x29183c),_0x3d255b===_['CollaborationEvent'][_0x24bc1d(0x21e)]&&this[_0x24bc1d(0x28d)](_0x29183c);}),this['disposeWithMe'](this['_commandService'][_0x33bf29(0x490)](_0x207cf9=>{const _0xd5a7c8=_0x33bf29,_0x322f59=_0x207cf9[_0xd5a7c8(0x19e)];_0x322f59!=null&&this['_online']&&_0x207cf9['id']===P['SetTextSelectionsOperation']['id']&&_0x322f59['unitId']===this['unitID']&&_0x322f59[_0xd5a7c8(0x323)]===!0x1&&this[_0xd5a7c8(0x2a6)](_0x322f59[_0xd5a7c8(0x39b)]);})),this[_0x33bf29(0x1a4)][_0x33bf29(0x43f)][_0x33bf29(0x478)](v[_0x33bf29(0x1ef)](this['dispose$']))['subscribe'](_0x248b24=>{const _0x5fa42a=_0x33bf29;if((_0x248b24==null?void 0x0:_0x248b24[_0x5fa42a(0x3ee)])!==this[_0x5fa42a(0x3ee)])return;const _0x1d567c={'eventID':_[_0x5fa42a(0x173)][_0x5fa42a(0x49a)],'data':_0x248b24};this['_onCursorUpdate'](_0x1d567c);}),this[_0x33bf29(0x4be)](this['_commandService'][_0x33bf29(0x490)](_0x9faf34=>{const _0x22f70e=_0x33bf29;if(_0x9faf34[_0x22f70e(0x19e)]==null)return;const _0x4410c3=_0x9faf34['params'];if(_0x9faf34['id']!==P[_0x22f70e(0x321)]['id']||_0x4410c3[_0x22f70e(0x440)]!==this[_0x22f70e(0x3ee)])return;const _0x5983c2={'id':_0x22f70e(0x3da),'params':_0x4410c3},_0x2347da=this[_0x22f70e(0x1f1)];for(const [_0x1d3127,_0x1283ea]of _0x2347da){const _0x3ab0c5={'id':_0x22f70e(0x3da),'params':{'unitId':this[_0x22f70e(0x3ee)],'actions':null,'textRanges':_0x1283ea[_0x22f70e(0x39b)]}},_0x5d7662=this['_transformService'][_0x22f70e(0x261)](_0x5983c2,_0x3ab0c5,!0x1);if(_[_0x22f70e(0x24a)](_0x5d7662))throw _0x5d7662[_0x22f70e(0x307)];_0x2347da[_0x22f70e(0x1b8)](_0x1d3127,{..._0x1283ea,'ranges':_0x5d7662[_0x22f70e(0x285)][_0x22f70e(0x19e)][_0x22f70e(0x1bf)]});}queueMicrotask(()=>{const _0x210e0f=_0x22f70e;this[_0x210e0f(0x267)][_0x210e0f(0x1a2)](_0x2347da);});})));}[_0x2cc1b3(0x1f5)](_0xd34a00){const _0x2ae1a9=_0x2cc1b3;var _0x56f14f,_0x2e99a1;const {memberID:_0x3d2cdf,selection:_0x5cbaa5}=_0xd34a00[_0x2ae1a9(0x1c0)],_0x498c5b=fs(_0x5cbaa5),_0x323428=(_0x2e99a1=(_0x56f14f=this['_memberService'][_0x2ae1a9(0x523)](this[_0x2ae1a9(0x3ee)],_0x3d2cdf))==null?void 0x0:_0x56f14f[_0x2ae1a9(0x2bc)])!=null?_0x2e99a1:_0x2ae1a9(0x193),_0x504161={'color':this[_0x2ae1a9(0x1ac)][_0x2ae1a9(0x211)](_0x3d2cdf),'name':_0x323428,'ranges':_0x498c5b},_0xde6fb1=this[_0x2ae1a9(0x1f1)];_0xde6fb1[_0x2ae1a9(0x1b8)](_0x3d2cdf,_0x504161),this[_0x2ae1a9(0x267)][_0x2ae1a9(0x1a2)](_0xde6fb1);}['_onCursorDelete'](_0x5ac66d){const _0x20e4e9=_0x2cc1b3,{memberID:_0x1fa8a4}=_0x5ac66d[_0x20e4e9(0x1c0)],_0x295ad8=this[_0x20e4e9(0x1f1)];_0x295ad8['delete'](_0x1fa8a4),this[_0x20e4e9(0x267)][_0x20e4e9(0x1a2)](_0x295ad8);}[_0x2cc1b3(0x51e)](){const _0x74c462=_0x2cc1b3;var _0x4f5458;if(this[_0x74c462(0x45d)]=!0x0,((_0x4f5458=this[_0x74c462(0x46f)][_0x74c462(0x4cd)]())==null?void 0x0:_0x4f5458['getUnitId']())!==this[_0x74c462(0x3ee)])return;const _0x1d8961=this[_0x74c462(0x3fe)][_0x74c462(0x3ba)](P['TextSelectionManagerService'])[_0x74c462(0x30f)](),_0x5aec7e=_0x1d8961==null?void 0x0:_0x1d8961[_0x74c462(0x2a8)](P[_0x74c462(0x19b)]);Array['isArray'](_0x5aec7e)&&_0x5aec7e[_0x74c462(0x209)]>0x0&&this[_0x74c462(0x2a6)](_0x5aec7e);}[_0x2cc1b3(0x41f)](){this['_online']=!0x1;}};Le=xs([W(0x2,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),W(0x3,o['Inject'](Ve)),W(0x4,o[_0x2cc1b3(0x333)](Y)),W(0x5,o['Inject'](Fe)),W(0x6,_[_0x2cc1b3(0x4ca)]),W(0x7,o[_0x2cc1b3(0x298)]),W(0x8,o[_0x2cc1b3(0x1cf)])],Le);var Bs=Object[_0x2cc1b3(0x1b2)],Fs=Object[_0x2cc1b3(0x47b)],Vs=(_0x574633,_0x7572ea,_0x361e9a,_0x3216cc)=>{for(var _0x5bf594=_0x3216cc>0x1?void 0x0:_0x3216cc?Fs(_0x7572ea,_0x361e9a):_0x7572ea,_0x30b4d8=_0x574633['length']-0x1,_0x5a33d2;_0x30b4d8>=0x0;_0x30b4d8--)(_0x5a33d2=_0x574633[_0x30b4d8])&&(_0x5bf594=(_0x3216cc?_0x5a33d2(_0x7572ea,_0x361e9a,_0x5bf594):_0x5a33d2(_0x5bf594))||_0x5bf594);return _0x3216cc&&_0x5bf594&&Bs(_0x7572ea,_0x361e9a,_0x5bf594),_0x5bf594;},Re=(_0x2d308a,_0x49dfdc)=>(_0x7f7309,_0x153fd1)=>_0x49dfdc(_0x7f7309,_0x153fd1,_0x2d308a);let Z=class extends o[_0x2cc1b3(0x516)]{constructor(_0xe2965e,_0xc72850,_0x22c144){const _0xee87e7=_0x2cc1b3;super(),u(this,_0xee87e7(0x339),new Map()),u(this,_0xee87e7(0x403),new v['Subject']()),(this['_univerInstanceService']=_0xe2965e,this[_0xee87e7(0x3fe)]=_0xc72850,this['_collabSessionService']=_0x22c144,this[_0xee87e7(0x4e1)]());}[_0x2cc1b3(0x22c)](){const _0x2009ff=_0x2cc1b3;super[_0x2009ff(0x22c)](),this[_0x2009ff(0x403)]['complete'](),this[_0x2009ff(0x339)][_0x2009ff(0x34c)](_0x5ad4a7=>_0x5ad4a7['dispose']());}[_0x2cc1b3(0x4a2)](_0x25712f){const _0x23e5dc=_0x2cc1b3;return this[_0x23e5dc(0x339)][_0x23e5dc(0x2ae)](_0x25712f)?this[_0x23e5dc(0x339)][_0x23e5dc(0x3ba)](_0x25712f)[_0x23e5dc(0x312)]:this[_0x23e5dc(0x403)][_0x23e5dc(0x478)](v['filter'](_0xb376df=>_0xb376df[_0x23e5dc(0x3ee)]===_0x25712f),v[_0x23e5dc(0x389)](_0x4c2f73=>_0x4c2f73['cursorInfo$']));}[_0x2cc1b3(0x4e1)](){const _0x10543b=_0x2cc1b3;this[_0x10543b(0x46f)][_0x10543b(0x25b)](o['UniverInstanceType'][_0x10543b(0x3a1)])[_0x10543b(0x478)](v[_0x10543b(0x1ef)](this[_0x10543b(0x23e)]))[_0x10543b(0x4c8)](async _0x1b313d=>{const _0x5a4366=_0x10543b,_0x164e6f=_0x1b313d[_0x5a4366(0x15a)](),_0x32aaa3=await this[_0x5a4366(0x24e)](_0x164e6f);this[_0x5a4366(0x403)][_0x5a4366(0x1a2)](_0x32aaa3),this[_0x5a4366(0x339)][_0x5a4366(0x1b8)](_0x164e6f,_0x32aaa3);}),this[_0x10543b(0x46f)][_0x10543b(0x25b)](o[_0x10543b(0x271)]['UNIVER_DOC'])[_0x10543b(0x478)](v['takeUntil'](this[_0x10543b(0x23e)]))[_0x10543b(0x478)](v[_0x10543b(0x277)](_0x1761d9=>!_0x1761d9['getUnitId']()[_0x10543b(0x521)]('__')))[_0x10543b(0x4c8)](async _0x9cc428=>{const _0x997915=_0x10543b,_0x51a65d=_0x9cc428[_0x997915(0x15a)](),_0x154501=await this[_0x997915(0x25d)](_0x51a65d);this[_0x997915(0x403)][_0x997915(0x1a2)](_0x154501),this[_0x997915(0x339)][_0x997915(0x1b8)](_0x51a65d,_0x154501);}),v[_0x10543b(0x3e0)](this[_0x10543b(0x46f)][_0x10543b(0x36a)](o[_0x10543b(0x271)][_0x10543b(0x40b)]),this[_0x10543b(0x46f)][_0x10543b(0x36a)](o['UniverInstanceType'][_0x10543b(0x3a1)]))[_0x10543b(0x478)](v[_0x10543b(0x1ef)](this[_0x10543b(0x23e)]))[_0x10543b(0x4c8)](_0x43d4b4=>{const _0xb7fd92=_0x10543b,_0x1d086f=_0x43d4b4[_0xb7fd92(0x15a)](),_0x15fe0a=this['_entities'][_0xb7fd92(0x3ba)](_0x1d086f);_0x15fe0a&&(_0x15fe0a[_0xb7fd92(0x22c)](),this[_0xb7fd92(0x339)]['delete'](_0x1d086f));});}async['_startSheetCollabCursor'](_0x29008){const _0x3dd2dc=_0x2cc1b3,_0x4732e6=await this[_0x3dd2dc(0x1c7)][_0x3dd2dc(0x33b)](_0x29008),_0x49ea7f=this[_0x3dd2dc(0x3fe)]['createInstance'](Ne,_0x29008,_0x4732e6);return _0x49ea7f[_0x3dd2dc(0x3d0)](),_0x49ea7f;}async[_0x2cc1b3(0x25d)](_0x347773){const _0x4a04dd=_0x2cc1b3,_0x1471e6=await this[_0x4a04dd(0x1c7)][_0x4a04dd(0x33b)](_0x347773),_0x5159c5=this[_0x4a04dd(0x3fe)][_0x4a04dd(0x171)](Le,_0x347773,_0x1471e6);return _0x5159c5['init'](),_0x5159c5;}};Z=Vs([o['OnLifecycle'](o[_0x2cc1b3(0x4d9)][_0x2cc1b3(0x4b2)],Z),Re(0x0,o[_0x2cc1b3(0x298)]),Re(0x1,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),Re(0x2,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x14e)]))],Z);const le=0x14,st=0xc8,Oe=0x4,Ws=0x5;function Gs(_0xbf6df2,_0x515a47){const _0x413f7c=_0x2cc1b3;let {radius:_0x44c78d,width:_0x902800,height:_0xdf057a}=_0x515a47;_0x44c78d=_0x44c78d!=null?_0x44c78d:0x0,_0x902800=_0x902800!=null?_0x902800:0x1e,_0xdf057a=_0xdf057a!=null?_0xdf057a:0x1e;let _0x491ede=0x0,_0x28a30a=0x0,_0x25d078=0x0;_0x491ede=_0x28a30a=_0x25d078=Math[_0x413f7c(0x2a7)](_0x44c78d,_0x902800/0x2,_0xdf057a/0x2),_0xbf6df2['beginPath'](),_0xbf6df2['moveTo'](_0x491ede,0x0),_0xbf6df2['lineTo'](_0x902800-_0x28a30a,0x0),_0xbf6df2[_0x413f7c(0x4b9)](_0x902800-_0x28a30a,_0x28a30a,_0x28a30a,Math['PI']*0x3/0x2,0x0,!0x1),_0xbf6df2[_0x413f7c(0x31d)](_0x902800,_0xdf057a-_0x25d078),_0xbf6df2[_0x413f7c(0x4b9)](_0x902800-_0x25d078,_0xdf057a-_0x25d078,_0x25d078,0x0,Math['PI']/0x2,!0x1),_0xbf6df2[_0x413f7c(0x31d)](0x0,_0xdf057a),_0xbf6df2[_0x413f7c(0x31d)](0x0,_0x491ede),_0xbf6df2[_0x413f7c(0x4b9)](_0x491ede,_0x491ede,_0x491ede,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xbf6df2[_0x413f7c(0x18d)](),_0x515a47[_0x413f7c(0x485)]&&(_0xbf6df2[_0x413f7c(0x2d2)](),_0xbf6df2['fillStyle']=_0x515a47[_0x413f7c(0x485)],_0x515a47[_0x413f7c(0x414)]===_0x413f7c(0x1bb)?_0xbf6df2['fill'](_0x413f7c(0x1bb)):_0xbf6df2[_0x413f7c(0x485)](),_0xbf6df2['restore']());}class Ee extends b['Shape']{constructor(_0x1eba88,_0x38456b){const _0x51957c=_0x2cc1b3;super(_0x1eba88,_0x38456b),u(this,'color'),u(this,'text'),(this['color']=_0x38456b==null?void 0x0:_0x38456b[_0x51957c(0x404)],this['text']=_0x38456b==null?void 0x0:_0x38456b['text']);}static[_0x2cc1b3(0x452)](_0x1225b5,_0x5ab6bf){const _0x398544=_0x2cc1b3,{text:_0x13bdbd,color:_0x207cd5}=_0x5ab6bf;_0x1225b5[_0x398544(0x2d2)](),_0x1225b5[_0x398544(0x40c)]=_0x398544(0x1a3);const _0x2aa998=_0x1225b5['measureText'](_0x13bdbd)[_0x398544(0x428)],_0x260094=Math[_0x398544(0x2a7)](_0x2aa998+0x2*Oe,st);Gs(_0x1225b5,{'height':le,'radius':0x4,'width':_0x260094,'fill':_0x207cd5,'evented':!0x1}),_0x1225b5[_0x398544(0x2d5)]=_0x398544(0x30c);const _0x3e78a1=Oe,_0x1519d6=le-Ws,_0x1bffe0=st-0x2*Oe;if(_0x2aa998>_0x1bffe0){let _0x5be3bf='',_0x1f1a8d=0x0;for(const _0x10ebd5 of _0x13bdbd){const _0x135d86=_0x1225b5['measureText'](_0x10ebd5)['width'];if(_0x1f1a8d+_0x135d86<=_0x1bffe0-_0x1225b5[_0x398544(0x319)](_0x398544(0x238))[_0x398544(0x428)])_0x5be3bf+=_0x10ebd5,_0x1f1a8d+=_0x135d86;else{_0x5be3bf+=_0x398544(0x238);break;}}_0x1225b5[_0x398544(0x4a0)](_0x5be3bf,_0x3e78a1,_0x1519d6);}else _0x1225b5[_0x398544(0x4a0)](_0x13bdbd,_0x3e78a1,_0x1519d6);_0x1225b5[_0x398544(0x2e3)]();}['_draw'](_0x13e3ab){const _0x3da461=_0x2cc1b3;Ee[_0x3da461(0x452)](_0x13e3ab,this);}}const Ys=0x1,Ks=1.5;class Tt extends b[_0x2cc1b3(0x232)]{constructor(_0x24517f,_0x4a9214){const _0x1ea31f=_0x2cc1b3;super(_0x24517f,_0x4a9214),u(this,_0x1ea31f(0x195)),u(this,_0x1ea31f(0x161),!0x1),u(this,_0x1ea31f(0x4b7)),u(this,_0x1ea31f(0x198),''),u(this,'_labelPosition',_0x1ea31f(0x1c6)),u(this,_0x1ea31f(0x433)),(_0x4a9214&&this['setShapeProps'](_0x4a9214),this['onPointerEnter$'][_0x1ea31f(0x155)](()=>this[_0x1ea31f(0x3a6)]({'hovered':!0x0})),this[_0x1ea31f(0x501)][_0x1ea31f(0x155)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2cc1b3(0x3a6)](_0x10c373){const _0x296407=_0x2cc1b3;var _0x34a6e6,_0x29c44c,_0x125afe,_0x1c0073,_0x4b9a57,_0x1b5e4a;this[_0x296407(0x195)]=(_0x34a6e6=_0x10c373[_0x296407(0x404)])!=null?_0x34a6e6:this['_color'],this[_0x296407(0x161)]=(_0x29c44c=_0x10c373[_0x296407(0x288)])!=null?_0x29c44c:this[_0x296407(0x161)],this[_0x296407(0x4b7)]=(_0x125afe=_0x10c373[_0x296407(0x35a)])!=null?_0x125afe:this['_range'],this[_0x296407(0x198)]=(_0x1c0073=_0x10c373[_0x296407(0x2bc)])!=null?_0x1c0073:this['_name'],this['_labelPosition']=(_0x4b9a57=_0x10c373['labelPosition'])!=null?_0x4b9a57:this[_0x296407(0x480)],this[_0x296407(0x433)]=(_0x1b5e4a=_0x10c373[_0x296407(0x328)])!=null?_0x1b5e4a:this[_0x296407(0x433)],this['transformByState']({'width':_0x10c373[_0x296407(0x428)],'height':_0x10c373[_0x296407(0x2df)]});}[_0x2cc1b3(0x2e4)](_0x4e0caf){const _0x433029=_0x2cc1b3,{row:_0x49d875,column:_0x186cbc}=_0x4e0caf;if(_0x49d875>=this['_range'][_0x433029(0x4f1)]&&_0x49d875<=this['_range'][_0x433029(0x3f2)]&&_0x186cbc>=this[_0x433029(0x4b7)][_0x433029(0x41b)]&&_0x186cbc<=this[_0x433029(0x4b7)]['endColumn']){this[_0x433029(0x3a6)]({'hovered':!0x0});return;}this[_0x433029(0x3a6)]({'hovered':!0x1});}[_0x2cc1b3(0x1e2)](_0xd00309){return!0x1;}['_draw'](_0x464f14){const _0x25412b=_0x2cc1b3;b[_0x25412b(0x2bd)][_0x25412b(0x452)](_0x464f14,{'width':this[_0x25412b(0x428)],'height':this[_0x25412b(0x2df)],'strokeWidth':Ks,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x25412b(0x433)]}),this['_hovered']&&(_0x464f14['save'](),_0x464f14[_0x25412b(0x3a3)](0x1,0x0,0x0,0x1,this[_0x25412b(0x428)],this[_0x25412b(0x480)]===_0x25412b(0x274)?0x0:-le),Ee[_0x25412b(0x452)](_0x464f14,{'text':this[_0x25412b(0x198)],'color':this[_0x25412b(0x195)]}),_0x464f14[_0x25412b(0x2e3)]());}}var Xs=Object[_0x2cc1b3(0x1b2)],qs=Object[_0x2cc1b3(0x47b)],zs=(_0x5158e1,_0x38f04d,_0x56850b,_0x7279c7)=>{const _0xbf5464=_0x2cc1b3;for(var _0x9e497=_0x7279c7>0x1?void 0x0:_0x7279c7?qs(_0x38f04d,_0x56850b):_0x38f04d,_0x428d9a=_0x5158e1[_0xbf5464(0x209)]-0x1,_0x4b4884;_0x428d9a>=0x0;_0x428d9a--)(_0x4b4884=_0x5158e1[_0x428d9a])&&(_0x9e497=(_0x7279c7?_0x4b4884(_0x38f04d,_0x56850b,_0x9e497):_0x4b4884(_0x9e497))||_0x9e497);return _0x7279c7&&_0x9e497&&Xs(_0x38f04d,_0x56850b,_0x9e497),_0x9e497;},De=(_0x47ddef,_0x59e8d7)=>(_0x46903f,_0x5957b7)=>_0x59e8d7(_0x46903f,_0x5957b7,_0x47ddef);const Js=0x1389;let Ae=class extends o[_0x2cc1b3(0x516)]{constructor(_0xff0ac,_0x482c63,_0x12f9f0,_0x28ac23){const _0x58f3db=_0x2cc1b3;super(),u(this,_0x58f3db(0x3ce),new Set()),u(this,_0x58f3db(0x443),null),(this[_0x58f3db(0x1c3)]=_0xff0ac,this['_sheetSkeletonManagerService']=_0x482c63,this['_collabCursorController']=_0x12f9f0,this[_0x58f3db(0x34d)]=_0x28ac23,this[_0x58f3db(0x4e1)]());}[_0x2cc1b3(0x4e1)](){const _0x3057bb=_0x2cc1b3;this[_0x3057bb(0x38e)]['currentSkeleton$'][_0x3057bb(0x478)](C[_0x3057bb(0x1ef)](this[_0x3057bb(0x23e)]),C[_0x3057bb(0x389)](_0x47f6d7=>{const _0x50e607=_0x3057bb;if(_0x47f6d7){const _0x54774=_0x47f6d7['sheetId'];return v['combineLatest'](this['_collabCursorController'][_0x50e607(0x4a2)](this[_0x50e607(0x1c3)][_0x50e607(0x440)]),this[_0x50e607(0x34d)][_0x50e607(0x1db)])['pipe'](C[_0x50e607(0x2a8)](([_0x1a2c6e,_0x51fe6f])=>{const _0xbc2da2=new Map();return _0x1a2c6e['forEach']((_0x28270e,_0x2d2b3b)=>{const _0x2c1fcf=_0x4b8d;if(_0x28270e['sheetID']===_0x54774){const _0x3a1e37={..._0x28270e};_0x3a1e37[_0x2c1fcf(0x404)]=_0x51fe6f[_0x28270e[_0x2c1fcf(0x404)]],_0xbc2da2['set'](_0x2d2b3b,_0x3a1e37);}}),{'skeleton':_0x47f6d7,'cursors':_0xbc2da2};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x3057bb(0x4c8)](({skeleton:_0x1d79f0,cursors:_0x4f596e})=>{const _0x515b60=_0x3057bb;this[_0x515b60(0x247)](),_0x1d79f0&&this[_0x515b60(0x33d)](_0x1d79f0,_0x4f596e);}),this[_0x3057bb(0x38e)][_0x3057bb(0x4c0)]['subscribe'](_0x50149f=>{const _0x30d657=_0x3057bb;if(_0x50149f==null)return;const {skeleton:_0x54fa58}=_0x50149f,{scene:_0x57efb2}=this[_0x30d657(0x1c3)];_0x57efb2[_0x30d657(0x1e4)][_0x30d657(0x155)]($e(_0xaab65e=>{const _0x4ef4f8=_0x30d657;var _0x4c641e,_0x5d4854;const {offsetX:_0x5bdcdb,offsetY:_0xc1eae}=_0xaab65e,{x:_0x32b0c1,y:_0x522f4d}=_0x57efb2[_0x4ef4f8(0x197)](b[_0x4ef4f8(0x316)][_0x4ef4f8(0x38d)]([_0x5bdcdb,_0xc1eae])),{scaleX:_0x2d9f2f,scaleY:_0x3dddaf}=_0x57efb2[_0x4ef4f8(0x263)](),_0x33cfb1=_0x57efb2['getViewport'](J[_0x4ef4f8(0x2e6)][_0x4ef4f8(0x35d)]),_0x4d9df8=_0x57efb2[_0x4ef4f8(0x22e)](b[_0x4ef4f8(0x316)]['FromArray']([_0x32b0c1,_0x522f4d]),_0x33cfb1),_0x21edde=_0x54fa58[_0x4ef4f8(0x31f)](_0x5bdcdb,_0xc1eae,_0x2d9f2f,_0x3dddaf,_0x4d9df8);((_0x4c641e=this[_0x4ef4f8(0x443)])==null?void 0x0:_0x4c641e['column'])===_0x21edde[_0x4ef4f8(0x31c)]&&((_0x5d4854=this[_0x4ef4f8(0x443)])==null?void 0x0:_0x5d4854[_0x4ef4f8(0x47a)])===_0x21edde[_0x4ef4f8(0x47a)]||this[_0x4ef4f8(0x3ce)][_0x4ef4f8(0x34c)](_0x439ada=>{const _0x1f46ea=_0x4ef4f8;_0x439ada[_0x1f46ea(0x2e4)](_0x21edde);});},0x64));});}['_updateCollabCursors'](_0x299070,_0x3a6d7b){const _0x3c41d9=_0x2cc1b3;var _0x52fe09;const _0x3aeecf=(_0x52fe09=this[_0x3c41d9(0x38e)][_0x3c41d9(0x206)]())==null?void 0x0:_0x52fe09[_0x3c41d9(0x41a)];if(!_0x3aeecf)return;const _0x5de10c=this['_getSheetObject']();if(!_0x5de10c)return;this[_0x3c41d9(0x3ce)][_0x3c41d9(0x34c)](_0xc85f7d=>{const _0x2c0864=_0x3c41d9;_0xc85f7d[_0x2c0864(0x3dc)]();});const {scene:_0x24761c}=_0x5de10c,_0x5d9167=Zs(Array[_0x3c41d9(0x346)](_0x3a6d7b['values']()))[_0x3c41d9(0x2a8)](_0x4f8424=>{const _0x12daa2=_0x3c41d9,{color:_0x511b73,range:_0xf33cae,name:_0x450567,selection:_0x318556,sheetID:_0x8d9753}=_0x4f8424,{startColumn:_0x2521ec,startRow:_0x2a94d1,endColumn:_0x1db40c,endRow:_0x10ce58}=_0xf33cae,_0x3f5420=J[_0x12daa2(0x20f)](_0x2a94d1,_0x2521ec,_0x24761c,_0x3aeecf),_0x1d2564=J['getCoordByCell'](_0x10ce58,_0x1db40c,_0x24761c,_0x3aeecf),{columnHeaderHeightAndMarginTop:_0x777bb7}=_0x3aeecf,{startX:_0xe5e59a,startY:_0x4da89c}=_0x3f5420,{endX:_0x553d6b,endY:_0x45557c}=_0x1d2564,_0x47ca24=_0x553d6b-_0xe5e59a,_0x17e9ff=_0x45557c-_0x4da89c,_0x53d2bc={'labelPosition':_0x4da89c-_0x777bb7>=le?_0x12daa2(0x1c6):_0x12daa2(0x274),'sheetID':_0x8d9753,'range':_0xf33cae,'color':_0x511b73,'name':_0x450567,'selection':_0x318556,'left':_0xe5e59a,'top':_0x4da89c,'width':_0x47ca24,'height':_0x17e9ff,'evented':!0x1,'zIndex':Js};return new Tt(_0x450567,_0x53d2bc);});_0x24761c['addObjects'](_0x5d9167,Ys),this[_0x3c41d9(0x3ce)]=new Set(_0x5d9167);}[_0x2cc1b3(0x247)](){const _0x4dc55a=_0x2cc1b3;var _0x5d2f29;(_0x5d2f29=this[_0x4dc55a(0x3ce)])==null||_0x5d2f29['forEach'](_0x135b1b=>_0x135b1b[_0x4dc55a(0x22c)]());}[_0x2cc1b3(0x47c)](){const _0x360c0c=_0x2cc1b3;return J[_0x360c0c(0x3bd)](this[_0x360c0c(0x1c3)][_0x360c0c(0x3f4)],this[_0x360c0c(0x1c3)]);}};Ae=zs([De(0x1,o['Inject'](J[_0x2cc1b3(0x454)])),De(0x2,o[_0x2cc1b3(0x333)](Z)),De(0x3,o[_0x2cc1b3(0x333)](o['ThemeService']))],Ae);function Zs(_0x2796ea){const _0x153673=_0x2cc1b3,_0x4eb5e1=new Map();return _0x2796ea[_0x153673(0x34c)](_0x47cfb4=>{const _0x26e9ed=_0x153673;if(_0x4eb5e1[_0x26e9ed(0x2ae)](_0x47cfb4[_0x26e9ed(0x17f)])){const _0x16675b=_0x4eb5e1[_0x26e9ed(0x3ba)](_0x47cfb4[_0x26e9ed(0x17f)]);_0x16675b[_0x26e9ed(0x2bc)]+=',\x20'+_0x47cfb4['name'];}else _0x4eb5e1['set'](_0x47cfb4['selection'],_0x47cfb4);}),Array[_0x153673(0x346)](_0x4eb5e1['values']());}var N=function(){const _0x54efcf=_0x2cc1b3;return N=Object[_0x54efcf(0x420)]||function(_0x35127c){const _0x193658=_0x54efcf;for(var _0x57b0de,_0x55bb82=0x1,_0x51f5f0=arguments[_0x193658(0x209)];_0x55bb82<_0x51f5f0;_0x55bb82++){_0x57b0de=arguments[_0x55bb82];for(var _0x1ef6f0 in _0x57b0de)Object[_0x193658(0x4c2)][_0x193658(0x35e)][_0x193658(0x181)](_0x57b0de,_0x1ef6f0)&&(_0x35127c[_0x1ef6f0]=_0x57b0de[_0x1ef6f0]);}return _0x35127c;},N['apply'](this,arguments);},Qs=function(_0xa510fc,_0x2b0251){const _0x20b6d=_0x2cc1b3;var _0x28b837={};for(var _0x322117 in _0xa510fc)Object[_0x20b6d(0x4c2)][_0x20b6d(0x35e)][_0x20b6d(0x181)](_0xa510fc,_0x322117)&&_0x2b0251['indexOf'](_0x322117)<0x0&&(_0x28b837[_0x322117]=_0xa510fc[_0x322117]);if(_0xa510fc!=null&&typeof Object[_0x20b6d(0x435)]==_0x20b6d(0x1b7)){for(var _0x3a257e=0x0,_0x322117=Object[_0x20b6d(0x435)](_0xa510fc);_0x3a257e<_0x322117['length'];_0x3a257e++)_0x2b0251[_0x20b6d(0x2ec)](_0x322117[_0x3a257e])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x20b6d(0x181)](_0xa510fc,_0x322117[_0x3a257e])&&(_0x28b837[_0x322117[_0x3a257e]]=_0xa510fc[_0x322117[_0x3a257e]]);}return _0x28b837;},We=y[_0x2cc1b3(0x401)](function(_0x3f6059,_0x2c8829){const _0x3097de=_0x2cc1b3;var _0x14bc51=_0x3f6059[_0x3097de(0x189)],_0x36b4f9=_0x3f6059['id'],_0x358b77=_0x3f6059[_0x3097de(0x253)],_0x52714a=_0x3f6059['extend'],_0x24de23=Qs(_0x3f6059,[_0x3097de(0x189),'id',_0x3097de(0x253),_0x3097de(0x4bb)]),_0x2d1a27=_0x3097de(0x1eb)[_0x3097de(0x32b)](_0x36b4f9,'\x20')[_0x3097de(0x32b)](_0x358b77||'')[_0x3097de(0x19c)](),_0x5117dd=y[_0x3097de(0x1d2)]('_'[_0x3097de(0x32b)](si()));return Rt(_0x14bc51,''[_0x3097de(0x32b)](_0x36b4f9),{'defIds':_0x14bc51[_0x3097de(0x2da)],'idSuffix':_0x5117dd['current']},N({'ref':_0x2c8829,'className':_0x2d1a27},_0x24de23),_0x52714a);});function Rt(_0x51431f,_0x36b0e6,_0x4a7edf,_0x119471,_0x198041){const _0x555edb=_0x2cc1b3;return y[_0x555edb(0x3cb)](_0x51431f[_0x555edb(0x200)],N(N({'key':_0x36b0e6},ei(_0x51431f,_0x4a7edf,_0x198041)),_0x119471),(ti(_0x51431f,_0x4a7edf)[_0x555edb(0x20c)]||[])[_0x555edb(0x2a8)](function(_0x3dd053,_0x2b9074){const _0x1f4b1e=_0x555edb;return Rt(_0x3dd053,''[_0x1f4b1e(0x32b)](_0x36b0e6,'-')['concat'](_0x51431f[_0x1f4b1e(0x200)],'-')['concat'](_0x2b9074),_0x4a7edf,void 0x0,_0x198041);}));}function ei(_0x3b9790,_0x2a1ff7,_0x291c02){const _0xad2476=_0x2cc1b3;var _0x32d71d=N({},_0x3b9790[_0xad2476(0x1a0)]);_0x291c02!=null&&_0x291c02[_0xad2476(0x330)]&&_0x32d71d[_0xad2476(0x485)]==='colorChannel1'&&(_0x32d71d['fill']=_0x291c02[_0xad2476(0x330)]);var _0x1cb8eb=_0x2a1ff7[_0xad2476(0x2da)];return!_0x1cb8eb||_0x1cb8eb[_0xad2476(0x209)]===0x0||(_0x3b9790[_0xad2476(0x200)]===_0xad2476(0x300)&&_0x32d71d[_0xad2476(0x411)]&&(_0x32d71d[_0xad2476(0x411)]=_0x32d71d[_0xad2476(0x411)]+_0x2a1ff7[_0xad2476(0x384)]),Object[_0xad2476(0x3bb)](_0x32d71d)[_0xad2476(0x34c)](function(_0x53d643){const _0x46dce6=_0xad2476;var _0x46062a=_0x53d643[0x0],_0x4ee6f2=_0x53d643[0x1];typeof _0x4ee6f2==_0x46dce6(0x26e)&&(_0x32d71d[_0x46062a]=_0x4ee6f2[_0x46dce6(0x34b)](/url\(#(.*)\)/,_0x46dce6(0x17a)[_0x46dce6(0x32b)](_0x2a1ff7[_0x46dce6(0x384)],')')));})),_0x32d71d;}function ti(_0x2a9154,_0x33f28f){const _0x4c88d9=_0x2cc1b3;var _0x3264ce,_0x4d98d5=_0x33f28f[_0x4c88d9(0x2da)];return!_0x4d98d5||_0x4d98d5[_0x4c88d9(0x209)]===0x0?_0x2a9154:_0x2a9154[_0x4c88d9(0x200)]===_0x4c88d9(0x29c)&&(!((_0x3264ce=_0x2a9154[_0x4c88d9(0x20c)])===null||_0x3264ce===void 0x0)&&_0x3264ce[_0x4c88d9(0x209)])?N(N({},_0x2a9154),{'children':_0x2a9154[_0x4c88d9(0x20c)][_0x4c88d9(0x2a8)](function(_0x798a9){const _0x4fa6c9=_0x4c88d9;return typeof _0x798a9[_0x4fa6c9(0x1a0)]['id']==_0x4fa6c9(0x26e)&&_0x4d98d5&&_0x4d98d5[_0x4fa6c9(0x2ec)](_0x798a9['attrs']['id'])>-0x1?N(N({},_0x798a9),{'attrs':N(N({},_0x798a9[_0x4fa6c9(0x1a0)]),{'id':_0x798a9[_0x4fa6c9(0x1a0)]['id']+_0x33f28f[_0x4fa6c9(0x384)]})}):_0x798a9;})}):_0x2a9154;}function si(){const _0x5dd9b5=_0x2cc1b3;return Math['random']()[_0x5dd9b5(0x28e)](0x24)[_0x5dd9b5(0x48a)](0x2,0x8);}We[_0x2cc1b3(0x18a)]='UniverIcon';var ii={'tag':'svg','attrs':{'fill':_0x2cc1b3(0x482),'viewBox':_0x2cc1b3(0x254),'width':_0x2cc1b3(0x509),'height':_0x2cc1b3(0x509)},'children':[{'tag':'g','attrs':{'clipPath':_0x2cc1b3(0x16f)},'children':[{'tag':_0x2cc1b3(0x202),'attrs':{'stroke':'currentColor','d':_0x2cc1b3(0x4d6),'strokeLinecap':'round','strokeLinejoin':_0x2cc1b3(0x4f4),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x2cc1b3(0x202),'attrs':{'fill':_0x2cc1b3(0x2a4),'d':_0x2cc1b3(0x44e)}}]}]}],'defIds':[_0x2cc1b3(0x29f)]},Ot=y['forwardRef'](function(_0x1d8352,_0x4109e5){const _0x5d7735=_0x2cc1b3;return y[_0x5d7735(0x3cb)](We,Object[_0x5d7735(0x420)]({},_0x1d8352,{'id':_0x5d7735(0x223),'ref':_0x4109e5,'icon':ii}));});Ot[_0x2cc1b3(0x18a)]='OffLineSingle';var ni={'tag':_0x2cc1b3(0x15e),'attrs':{'fill':'none','viewBox':_0x2cc1b3(0x3e5),'width':_0x2cc1b3(0x509),'height':_0x2cc1b3(0x509)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x2cc1b3(0x202),'attrs':{'stroke':_0x2cc1b3(0x1c4),'d':_0x2cc1b3(0x230),'strokeLinecap':_0x2cc1b3(0x4f4),'strokeLinejoin':_0x2cc1b3(0x4f4),'strokeWidth':1.2}}]},{'tag':_0x2cc1b3(0x29c),'attrs':{},'children':[{'tag':_0x2cc1b3(0x1fa),'attrs':{'id':_0x2cc1b3(0x383)},'children':[{'tag':_0x2cc1b3(0x202),'attrs':{'fill':_0x2cc1b3(0x2a4),'d':_0x2cc1b3(0x44e),'transform':_0x2cc1b3(0x18c)}}]}]}],'defIds':[_0x2cc1b3(0x383)]},Dt=y[_0x2cc1b3(0x401)](function(_0x4a938e,_0x193b22){const _0x195fd1=_0x2cc1b3;return y['createElement'](We,Object[_0x195fd1(0x420)]({},_0x4a938e,{'id':_0x195fd1(0x170),'ref':_0x193b22,'icon':ni}));});Dt[_0x2cc1b3(0x18a)]=_0x2cc1b3(0x332);const ri='univer-online-status-icon',oi=_0x2cc1b3(0x2cc),ai='univer-online-status',ci='univer-online',li=_0x2cc1b3(0x424),ne={'onlineStatusIcon':ri,'onlineStatusTitle':oi,'onlineStatus':ai,'online':ci,'offline':li};function hi(_0x568615){const _0x9e5461=_0x2cc1b3;switch(_0x568615){case D[_0x9e5461(0x38a)]:return _0x9e5461(0x400);case D['CONFLICT']:return _0x9e5461(0x382);case D['FETCH_MISS']:return _0x9e5461(0x3f7);case D['NOT_COLLAB']:return _0x9e5461(0x269);case D['PENDING']:case D['AWAITING']:case D[_0x9e5461(0x297)]:return _0x9e5461(0x2a3);case D['SYNCED']:return _0x9e5461(0x23b);}}function Pt(_0x23aadc){const _0x2743fc=_0x2cc1b3,{status$:_0x318d10}=_0x23aadc,_0x5b8e5c=L[_0x2743fc(0x34f)](_0x318d10,D['NOT_COLLAB']),_0x252e33=o[_0x2743fc(0x510)](o[_0x2743fc(0x2f6)]),_0x1217cb=_0x5b8e5c!==D[_0x2743fc(0x38a)],_0x3728fe=_0x252e33['t'](hi(_0x5b8e5c)),_0x32309b=Ht(ne[_0x2743fc(0x313)],{[ne[_0x2743fc(0x369)]]:_0x1217cb,[ne[_0x2743fc(0x2d8)]]:!_0x1217cb}),_0x2835f4=_0x1217cb?y[_0x2743fc(0x3cb)](Dt,null):y[_0x2743fc(0x3cb)](Ot,null);return y[_0x2743fc(0x3cb)](_0x2743fc(0x527),{'className':_0x32309b},y[_0x2743fc(0x3cb)](_0x2743fc(0x527),{'className':ne[_0x2743fc(0x395)]},_0x2835f4),y[_0x2743fc(0x3cb)]('div',{'className':ne[_0x2743fc(0x2c7)]},_0x3728fe));}var _i=Object[_0x2cc1b3(0x1b2)],ui=Object[_0x2cc1b3(0x47b)],di=(_0x22e312,_0x24b6ee,_0x2d8f2b,_0x5e83a5)=>{const _0x546944=_0x2cc1b3;for(var _0x2da976=_0x5e83a5>0x1?void 0x0:_0x5e83a5?ui(_0x24b6ee,_0x2d8f2b):_0x24b6ee,_0x4fd182=_0x22e312[_0x546944(0x209)]-0x1,_0x38c536;_0x4fd182>=0x0;_0x4fd182--)(_0x38c536=_0x22e312[_0x4fd182])&&(_0x2da976=(_0x5e83a5?_0x38c536(_0x24b6ee,_0x2d8f2b,_0x2da976):_0x38c536(_0x2da976))||_0x2da976);return _0x5e83a5&&_0x2da976&&_i(_0x24b6ee,_0x2d8f2b,_0x2da976),_0x2da976;},he=(_0x2ecd28,_0x217ba8)=>(_0x382917,_0x5cd933)=>_0x217ba8(_0x382917,_0x5cd933,_0x2ecd28);exports[_0x2cc1b3(0x292)]=class extends o[_0x2cc1b3(0x460)]{constructor(_0x5159ee,_0x4ec262,_0x1a9c02,_0x1ee756){const _0x42088d=_0x2cc1b3;super(),u(this,_0x42088d(0x40f),new v[(_0x42088d(0x445))](D[_0x42088d(0x45a)])),(this['_univerInstanceService']=_0x5159ee,this[_0x42088d(0x476)]=_0x4ec262,this[_0x42088d(0x3fe)]=_0x1a9c02,this[_0x42088d(0x32d)]=_0x1ee756,this['_initStatusComponent'](),this[_0x42088d(0x3fa)]());}[_0x2cc1b3(0x331)](){const _0x311f35=_0x2cc1b3;this[_0x311f35(0x4be)](this[_0x311f35(0x476)]['registerComponent'](L['BuiltInUIPart'][_0x311f35(0x488)],()=>o[_0x311f35(0x262)](Si({'status$':this[_0x311f35(0x40f)][_0x311f35(0x368)]()}),this[_0x311f35(0x3fe)])));}[_0x2cc1b3(0x3fa)](){const _0x5f5d57=_0x2cc1b3;this['disposeWithMe'](o[_0x5f5d57(0x168)](this[_0x5f5d57(0x46f)][_0x5f5d57(0x1e6)][_0x5f5d57(0x478)](v['switchMap'](()=>{const _0x2d6e13=_0x5f5d57,_0x59bab7=this[_0x2d6e13(0x46f)][_0x2d6e13(0x4cd)]();return _0x59bab7?this[_0x2d6e13(0x32d)]['getCollabEntity$'](_0x59bab7[_0x2d6e13(0x15a)]()):v['of'](null);}),v[_0x5f5d57(0x389)](_0x472892=>_0x472892?_0x472892['status$']:v['of'](D[_0x5f5d57(0x45a)])))[_0x5f5d57(0x4c8)](_0x290596=>{const _0x25505e=_0x5f5d57;this['_status$'][_0x25505e(0x1a2)](_0x290596);})));}},exports[_0x2cc1b3(0x292)]=di([o[_0x2cc1b3(0x303)](o[_0x2cc1b3(0x4d9)][_0x2cc1b3(0x4b2)],exports['DesktopCollaborationStatusDisplayController']),he(0x0,o[_0x2cc1b3(0x298)]),he(0x1,L[_0x2cc1b3(0x2b9)]),he(0x2,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),he(0x3,o['Inject'](exports[_0x2cc1b3(0x305)]))],exports[_0x2cc1b3(0x292)]);function Si(_0x3ee421){const {status$:_0x321069}=_0x3ee421;return function(){return y['createElement'](Pt,{'status$':_0x321069});};}const Ge=o[_0x2cc1b3(0x364)](_0x2cc1b3(0x371));var vi=Object[_0x2cc1b3(0x1b2)],mi=Object['getOwnPropertyDescriptor'],gi=(_0x32c0d5,_0x6893f3,_0x1fda72,_0x4a05f2)=>{const _0x47eefb=_0x2cc1b3;for(var _0x2a169d=_0x4a05f2>0x1?void 0x0:_0x4a05f2?mi(_0x6893f3,_0x1fda72):_0x6893f3,_0x1abb83=_0x32c0d5[_0x47eefb(0x209)]-0x1,_0x19c796;_0x1abb83>=0x0;_0x1abb83--)(_0x19c796=_0x32c0d5[_0x1abb83])&&(_0x2a169d=(_0x4a05f2?_0x19c796(_0x6893f3,_0x1fda72,_0x2a169d):_0x19c796(_0x2a169d))||_0x2a169d);return _0x4a05f2&&_0x2a169d&&vi(_0x6893f3,_0x1fda72,_0x2a169d),_0x2a169d;},z=(_0x5139e3,_0x353cc3)=>(_0x5aa814,_0x240eef)=>_0x353cc3(_0x5aa814,_0x240eef,_0x5139e3);exports[_0x2cc1b3(0x20b)]=class extends o['RxDisposable']{constructor(_0x1b66b2,_0x3dae43,_0x1a56e6,_0x21ff76,_0x187cc8,_0x363ae2){const _0x52d5aa=_0x2cc1b3;super(),this['_urlService']=_0x1b66b2,this[_0x52d5aa(0x402)]=_0x3dae43,this[_0x52d5aa(0x466)]=_0x1a56e6,this[_0x52d5aa(0x359)]=_0x21ff76,this[_0x52d5aa(0x3c1)]=_0x187cc8,_0x363ae2?_0x363ae2==null||_0x363ae2['whenReady']()[_0x52d5aa(0x360)](()=>this[_0x52d5aa(0x4e1)]()):(this['_logService'][_0x52d5aa(0x1a1)](_0x52d5aa(0x51d),_0x52d5aa(0x2b2)),this[_0x52d5aa(0x4e1)]());}async[_0x2cc1b3(0x4e1)](){const _0x83b9ce=_0x2cc1b3,_0x315ffb=this[_0x83b9ce(0x419)][_0x83b9ce(0x348)](_0x83b9ce(0x3f4)),_0x25b475=this[_0x83b9ce(0x419)][_0x83b9ce(0x348)](_0x83b9ce(0x3e9));if(!_0x315ffb||!_0x25b475){this[_0x83b9ce(0x402)][_0x83b9ce(0x1a1)](_0x83b9ce(0x51d),_0x83b9ce(0x21d));return;}switch(Number(_0x25b475)){case j[_0x83b9ce(0x3a1)]:{const _0x60a73f=await this[_0x83b9ce(0x39e)](_0x315ffb);this[_0x83b9ce(0x2ef)](_0x60a73f);break;}case j[_0x83b9ce(0x40b)]:{await this['_loadDoc'](_0x315ffb);break;}default:{this[_0x83b9ce(0x402)][_0x83b9ce(0x307)]('[DataLoaderController]',_0x83b9ce(0x3d4));break;}}}async[_0x2cc1b3(0x2ef)](_0xa1260c){const _0x2f9dd5=_0x2cc1b3;await this['_updateSubUnitFromURLParams'](_0xa1260c),_0xa1260c['activeSheet$']['pipe'](v['takeUntil'](this['dispose$']))[_0x2f9dd5(0x4c8)](_0x141069=>{const _0x24a9dd=_0x2f9dd5;_0x141069&&this[_0x24a9dd(0x493)](_0x141069);}),this[_0x2f9dd5(0x419)]['urlChange$'][_0x2f9dd5(0x478)](v[_0x2f9dd5(0x1ef)](this['dispose$']))[_0x2f9dd5(0x4c8)](()=>this[_0x2f9dd5(0x2cb)](_0xa1260c));}[_0x2cc1b3(0x493)](_0x20bb9e,_0x2f7c7d=!0x1){const _0x5222ad=_0x2cc1b3,_0x577bca=this[_0x5222ad(0x419)][_0x5222ad(0x348)]('subunit');_0x20bb9e['getSheetId']()!==_0x577bca&&this[_0x5222ad(0x419)][_0x5222ad(0x190)]('subunit',_0x20bb9e[_0x5222ad(0x1ba)](),_0x2f7c7d);}async[_0x2cc1b3(0x2cb)](_0x1c61c1){const _0x470b11=_0x2cc1b3;var _0x493797;const _0x2f29a7=this[_0x470b11(0x419)]['getParam'](_0x470b11(0x36b));if(!_0x2f29a7||!_0x1c61c1[_0x470b11(0x4ce)](_0x2f29a7)){const _0x566e5b=_0x1c61c1[_0x470b11(0x442)]()[0x0],_0x13ba28=_0x1c61c1[_0x470b11(0x4ce)](_0x566e5b);if(!_0x13ba28)return;this[_0x470b11(0x493)](_0x13ba28,!0x0),await this[_0x470b11(0x466)]['executeCommand'](p[_0x470b11(0x1b4)]['id'],{'unitId':_0x1c61c1[_0x470b11(0x15a)](),'subUnitId':_0x566e5b});return;}((_0x493797=_0x1c61c1[_0x470b11(0x2de)]())==null?void 0x0:_0x493797[_0x470b11(0x1ba)]())!==_0x2f29a7&&await this[_0x470b11(0x466)][_0x470b11(0x186)](p[_0x470b11(0x1b4)]['id'],{'unitId':_0x1c61c1[_0x470b11(0x15a)](),'subUnitId':_0x2f29a7});}async['_loadSheet'](_0x150d4d){const _0x147889=_0x2cc1b3;let _0x36ee12=0x0;const _0x5cad5d=await this[_0x147889(0x359)][_0x147889(0x4a7)](_0x150d4d);return _0x5cad5d&&(_0x5cad5d['awaitingChangeset']||_0x5cad5d[_0x147889(0x1d1)][_0x147889(0x209)]!==0x0)&&(_0x36ee12=_0x5cad5d[_0x147889(0x373)]),_0x36ee12===0x0&&this['_logService']['debug'](_0x147889(0x51d),_0x147889(0x205)),this[_0x147889(0x3c1)][_0x147889(0x3df)](_0x150d4d,_0x36ee12);}async[_0x2cc1b3(0x38c)](_0xab1e2){const _0x43bd87=_0x2cc1b3;let _0x337850=0x0;const _0x3295c9=await this[_0x43bd87(0x359)][_0x43bd87(0x4a7)](_0xab1e2);return _0x3295c9&&(_0x3295c9['awaitingChangeset']||_0x3295c9['mutations'][_0x43bd87(0x209)]!==0x0)&&(_0x337850=_0x3295c9[_0x43bd87(0x373)]),_0x337850===0x0&&this['_logService']['debug'](_0x43bd87(0x51d),_0x43bd87(0x205)),this['_snapshotService']['loadDoc'](_0xab1e2,_0x337850);}},exports[_0x2cc1b3(0x20b)]=gi([o[_0x2cc1b3(0x303)](o['LifecycleStages'][_0x2cc1b3(0x4b2)],exports[_0x2cc1b3(0x20b)]),z(0x0,Ge),z(0x1,o[_0x2cc1b3(0x4ba)]),z(0x2,o[_0x2cc1b3(0x1cf)]),z(0x3,o[_0x2cc1b3(0x333)](exports[_0x2cc1b3(0x15f)])),z(0x4,o[_0x2cc1b3(0x333)](_[_0x2cc1b3(0x465)])),z(0x5,o['Optional'](kt[_0x2cc1b3(0x22f)]))],exports[_0x2cc1b3(0x20b)]);var fi=Object[_0x2cc1b3(0x1b2)],Ii=Object[_0x2cc1b3(0x47b)],pi=(_0x51bb3f,_0x450e3e,_0x2ff307,_0x4d8248)=>{const _0xc8bb24=_0x2cc1b3;for(var _0x273223=_0x4d8248>0x1?void 0x0:_0x4d8248?Ii(_0x450e3e,_0x2ff307):_0x450e3e,_0x227c76=_0x51bb3f[_0xc8bb24(0x209)]-0x1,_0x40f8cb;_0x227c76>=0x0;_0x227c76--)(_0x40f8cb=_0x51bb3f[_0x227c76])&&(_0x273223=(_0x4d8248?_0x40f8cb(_0x450e3e,_0x2ff307,_0x273223):_0x40f8cb(_0x273223))||_0x273223);return _0x4d8248&&_0x273223&&fi(_0x450e3e,_0x2ff307,_0x273223),_0x273223;},it=(_0x477a4b,_0x2e6872)=>(_0x38923e,_0x319028)=>_0x2e6872(_0x38923e,_0x319028,_0x477a4b);const Ci=_0x2cc1b3(0x4d4),Ei=_0x2cc1b3(0x3dd);let ue=class extends o['Disposable']{constructor(_0x9aa984,_0x59039b){const _0x4b0d74=_0x2cc1b3;super(),this[_0x4b0d74(0x46f)]=_0x9aa984,this[_0x4b0d74(0x3f8)]=_0x59039b,this[_0x4b0d74(0x4e1)]();}[_0x2cc1b3(0x4e1)](){const _0x1f7833=_0x2cc1b3;this['disposeWithMe'](o[_0x1f7833(0x168)](this[_0x1f7833(0x46f)][_0x1f7833(0x1e6)][_0x1f7833(0x4c8)](()=>{const _0x591ac4=_0x1f7833;var _0x4d422b;const _0x23dcc9=this[_0x591ac4(0x46f)][_0x591ac4(0x4cd)]();let _0xc18513=(_0x4d422b=this[_0x591ac4(0x3f8)][_0x591ac4(0x42f)](Ci))!=null?_0x4d422b:Ei;_0x23dcc9 instanceof o[_0x591ac4(0x461)]&&(_0xc18513=_0x23dcc9[_0x591ac4(0x2bc)]),document['title']=_0xc18513;})));}};ue=pi([o[_0x2cc1b3(0x303)](o[_0x2cc1b3(0x4d9)][_0x2cc1b3(0x2eb)],ue),it(0x0,o[_0x2cc1b3(0x298)]),it(0x1,o[_0x2cc1b3(0x149)])],ue);var bi=Object[_0x2cc1b3(0x1b2)],Ti=Object[_0x2cc1b3(0x47b)],Ri=(_0x36af33,_0x308810,_0xf955a2,_0x36020f)=>{const _0x3eeaf1=_0x2cc1b3;for(var _0x5172aa=_0x36020f>0x1?void 0x0:_0x36020f?Ti(_0x308810,_0xf955a2):_0x308810,_0x592d4b=_0x36af33[_0x3eeaf1(0x209)]-0x1,_0x7f11df;_0x592d4b>=0x0;_0x592d4b--)(_0x7f11df=_0x36af33[_0x592d4b])&&(_0x5172aa=(_0x36020f?_0x7f11df(_0x308810,_0xf955a2,_0x5172aa):_0x7f11df(_0x5172aa))||_0x5172aa);return _0x36020f&&_0x5172aa&&bi(_0x308810,_0xf955a2,_0x5172aa),_0x5172aa;},nt=(_0x114048,_0x2e15f3)=>(_0xc5ae2f,_0x254586)=>_0x2e15f3(_0xc5ae2f,_0x254586,_0x114048);exports[_0x2cc1b3(0x4b5)]=class{constructor(_0x37e2ee,_0x39f408){const _0x31d3d5=_0x2cc1b3;this[_0x31d3d5(0x3f8)]=_0x37e2ee,this['_httpService']=_0x39f408;}async[_0x2cc1b3(0x1d3)](_0x57d1cb,_0x56e558){const _0x4a9287=_0x2cc1b3;var _0x131d4c;const {unitID:_0x570ca3,type:_0x1a07c8,revision:_0x509203=0x0}=_0x56e558,_0x2d8195=this[_0x4a9287(0x1f2)]()+'/'+_0x1a07c8+_0x4a9287(0x1c8)+_0x570ca3+_0x4a9287(0x216)+_0x509203,_0x2cdd62=(await this[_0x4a9287(0x15c)][_0x4a9287(0x3ba)](_0x2d8195))[_0x4a9287(0x4f8)],_0x233b35=(_0x131d4c=_0x2cdd62[_0x4a9287(0x4b3)])==null?void 0x0:_0x131d4c[_0x4a9287(0x27a)];if(_0x233b35){const _0xeffb77=_0x233b35==null?void 0x0:_0x233b35[_0x4a9287(0x522)],_0x57d430=o[_0x4a9287(0x370)][_0x4a9287(0x459)](o[_0x4a9287(0x3c8)](_0xeffb77));_0x233b35[_0x4a9287(0x522)]=_0x57d430,Object['entries'](_0x233b35['sheets'])['forEach'](([,_0x31d23])=>{const _0x3ebcd9=_0x4a9287,_0x87a868=_0x31d23[_0x3ebcd9(0x522)],_0x1b26fb=o[_0x3ebcd9(0x370)][_0x3ebcd9(0x459)](o[_0x3ebcd9(0x3c8)](_0x87a868));_0x31d23[_0x3ebcd9(0x522)]=_0x1b26fb;});}return _0x2cdd62;}async[_0x2cc1b3(0x16b)](_0x21b618,_0x5a0b8d){const _0x43be7a=_0x2cc1b3,{unitID:_0x448869,type:_0x14bab0,blockID:_0x34535b}=_0x5a0b8d,_0x1b9139=this[_0x43be7a(0x4b1)]()+'/'+_0x14bab0+_0x43be7a(0x1c8)+_0x448869+_0x43be7a(0x33f)+_0x34535b;return(await this['_httpService'][_0x43be7a(0x3ba)](_0x1b9139))['body'];}async[_0x2cc1b3(0x259)](_0x360f17,_0x80a10){const _0x5063eb=_0x2cc1b3,{unitID:_0x4acc7d,type:_0x1a5b93,from:_0x62bc08,to:_0x7e7c0d}=_0x80a10,_0x1573cb=this['_getAPIPrefix']()+'/'+_0x1a5b93+_0x5063eb(0x1c8)+_0x4acc7d+_0x5063eb(0x1cd)+_0x62bc08+_0x5063eb(0x4a4)+_0x7e7c0d;return(await this[_0x5063eb(0x15c)][_0x5063eb(0x3ba)](_0x1573cb))[_0x5063eb(0x4f8)];}[_0x2cc1b3(0x1f2)](){const _0x1a4a9b=_0x2cc1b3;var _0x348fce;return(_0x348fce=this[_0x1a4a9b(0x3f8)][_0x1a4a9b(0x42f)](lt))!=null?_0x348fce:this[_0x1a4a9b(0x4b1)]();}['_getAPIPrefix'](){const _0x597570=_0x2cc1b3;var _0x2b14f2;return(_0x2b14f2=this[_0x597570(0x3f8)][_0x597570(0x42f)](ct))!=null?_0x2b14f2:Bt;}async['getResourcesRequest'](_0x1a952a,_0x4487e5){const _0x47d6a0=_0x2cc1b3,_0x2e1285=_0x47d6a0(0x2dc)+_0x4487e5[_0x47d6a0(0x3e9)]+_0x47d6a0(0x1c8)+_0x4487e5[_0x47d6a0(0x3ee)]+_0x47d6a0(0x2dd);return(await this['_httpService']['get'](_0x2e1285,{'params':{'resourceId':JSON['stringify'](_0x4487e5['resourceIDs'])}}))[_0x47d6a0(0x4f8)];}[_0x2cc1b3(0x1e7)](){const _0xf23c40=_0x2cc1b3;throw new Error(_0xf23c40(0x514));}[_0x2cc1b3(0x413)](){const _0xf6843=_0x2cc1b3;throw new Error(_0xf6843(0x514));}[_0x2cc1b3(0x29a)](){const _0x234b22=_0x2cc1b3;throw new Error(_0x234b22(0x514));}},exports[_0x2cc1b3(0x4b5)]=Ri([nt(0x0,o[_0x2cc1b3(0x149)]),nt(0x1,o[_0x2cc1b3(0x333)](U[_0x2cc1b3(0x1da)]))],exports[_0x2cc1b3(0x4b5)]);var Oi=Object[_0x2cc1b3(0x1b2)],Di=Object[_0x2cc1b3(0x47b)],Pi=(_0x2b3b7b,_0x2e77c4,_0x54865a,_0x2b29eb)=>{const _0x29586b=_0x2cc1b3;for(var _0x21170b=_0x2b29eb>0x1?void 0x0:_0x2b29eb?Di(_0x2e77c4,_0x54865a):_0x2e77c4,_0x3f4ef0=_0x2b3b7b[_0x29586b(0x209)]-0x1,_0x365ccb;_0x3f4ef0>=0x0;_0x3f4ef0--)(_0x365ccb=_0x2b3b7b[_0x3f4ef0])&&(_0x21170b=(_0x2b29eb?_0x365ccb(_0x2e77c4,_0x54865a,_0x21170b):_0x365ccb(_0x21170b))||_0x21170b);return _0x2b29eb&&_0x21170b&&Oi(_0x2e77c4,_0x54865a,_0x21170b),_0x21170b;},re=(_0x2d56b3,_0x3e29a1)=>(_0x44124b,_0xb2cd15)=>_0x3e29a1(_0x44124b,_0xb2cd15,_0x2d56b3);let je=class extends o[_0x2cc1b3(0x3e3)]{constructor(_0x31db25,_0x4ab10d,_0x361abd,_0x2d7eab,_0x58e576){const _0x2b7680=_0x2cc1b3;super(_0x31db25,_0x4ab10d,_0x361abd),this[_0x2b7680(0x2ad)]=_0x2d7eab,this[_0x2b7680(0x402)]=_0x58e576;}[_0x2cc1b3(0x3ff)](_0x3b47b8,_0x4eaa76){const _0x3d7ea3=_0x2cc1b3,_0x1c9d19=this[_0x3d7ea3(0x43d)](_0x3b47b8);if(_0x1c9d19)try{const _0x222d35=this['_transformStack'](_0x1c9d19,_0x4eaa76);this['_substituteUndoStack'](_0x3b47b8,_0x222d35);}catch(_0x14dbd9){this[_0x3d7ea3(0x402)][_0x3d7ea3(0x307)]('[CollaborationUndoRedoService]',_0x14dbd9),this[_0x3d7ea3(0x49e)](_0x3b47b8);}const _0x4eb5e5=this[_0x3d7ea3(0x405)](_0x3b47b8);if(_0x4eb5e5)try{const _0x5574fb=this[_0x3d7ea3(0x14a)](_0x4eb5e5,_0x4eaa76);this[_0x3d7ea3(0x217)](_0x3b47b8,_0x5574fb);}catch(_0x3b7c95){this[_0x3d7ea3(0x402)][_0x3d7ea3(0x307)](_0x3b7c95),this[_0x3d7ea3(0x43a)](_0x3b47b8);}}[_0x2cc1b3(0x49e)](_0xdcdfc9){const _0x361682=_0x2cc1b3,_0x3cda55=this[_0x361682(0x43d)](_0xdcdfc9);_0x3cda55&&(_0x3cda55[_0x361682(0x209)]=0x0,this[_0x361682(0x3ac)]());}[_0x2cc1b3(0x43a)](_0x292c6b){const _0x1694a2=_0x2cc1b3,_0x10fbfc=this[_0x1694a2(0x405)](_0x292c6b);_0x10fbfc&&(_0x10fbfc[_0x1694a2(0x209)]=0x0,this['_updateStatus']());}[_0x2cc1b3(0x394)](_0x27ebea,_0x294277){const _0xd7b125=_0x2cc1b3;this[_0xd7b125(0x2fb)][_0xd7b125(0x1b8)](_0x27ebea,_0x294277),this[_0xd7b125(0x3ac)]();}[_0x2cc1b3(0x217)](_0x2fcf0c,_0x235cbf){const _0x43fb93=_0x2cc1b3;this[_0x43fb93(0x37c)][_0x43fb93(0x1b8)](_0x2fcf0c,_0x235cbf),this[_0x43fb93(0x3ac)]();}[_0x2cc1b3(0x14a)](_0x460883,_0x1c085c){const _0x165559=_0x2cc1b3,_0x2394af=[];let _0x54e7b4=_0x1c085c,_0xa26f3c=_0x1c085c;for(let _0x2d109f=_0x460883[_0x165559(0x209)]-0x1;_0x2d109f>=0x0;_0x2d109f--){const {unitID:_0x223b8e,undoMutations:_0x3a9583,redoMutations:_0x4a973c}=_0x460883[_0x2d109f],_0x48a4b9=this[_0x165559(0x2ad)][_0x165559(0x525)](_0x54e7b4,_0x3a9583),_0x39fd18=this[_0x165559(0x2ad)][_0x165559(0x525)](_0xa26f3c,_0x4a973c);if(_['isTransformMutationsWithChangesetFailure'](_0x48a4b9)||_[_0x165559(0x187)](_0x39fd18)){this[_0x165559(0x402)][_0x165559(0x307)](_0x165559(0x26a),'transformStack\x20failed!',_0x48a4b9,_0x39fd18);break;}_0x54e7b4=_0x48a4b9[_0x165559(0x4fc)],_0xa26f3c=_0x39fd18[_0x165559(0x4fc)],_0x2394af[_0x165559(0x4bd)]({'unitID':_0x223b8e,'undoMutations':_0x48a4b9['m2Prime'],'redoMutations':_0x39fd18[_0x165559(0x285)]});}return _0x2394af[_0x165559(0x1b9)]();}};function _0x4b8d(_0x5240d0,_0x29a010){const _0x1e5415=_0x1e54();return _0x4b8d=function(_0x4b8d19,_0x47f08d){_0x4b8d19=_0x4b8d19-0x145;let _0xa5532e=_0x1e5415[_0x4b8d19];return _0xa5532e;},_0x4b8d(_0x5240d0,_0x29a010);}je=Pi([re(0x0,o[_0x2cc1b3(0x298)]),re(0x1,o[_0x2cc1b3(0x1cf)]),re(0x2,o[_0x2cc1b3(0x45e)]),re(0x3,_[_0x2cc1b3(0x4ca)]),re(0x4,o['ILogService'])],je);class Ut extends o[_0x2cc1b3(0x516)]{constructor(){const _0x331437=_0x2cc1b3;super(),u(this,_0x331437(0x417)),this[_0x331437(0x417)]=v['fromEvent'](window,_0x331437(0x2b8))['pipe'](v[_0x331437(0x1ef)](this[_0x331437(0x23e)]),v[_0x331437(0x345)](0x1),v['mapTo'](void 0x0));}[_0x2cc1b3(0x190)](_0x29362a,_0x5aa2d9,_0x271455=!0x1){const _0x1dfc68=_0x2cc1b3,_0x18a8f3=new URL(window[_0x1dfc68(0x2cf)][_0x1dfc68(0x44a)]);_0x18a8f3['searchParams'][_0x1dfc68(0x1b8)](_0x29362a,_0x5aa2d9),_0x271455?window[_0x1dfc68(0x515)][_0x1dfc68(0x1b5)]('','',_0x18a8f3[_0x1dfc68(0x28e)]()):window['history']['pushState']('','',_0x18a8f3[_0x1dfc68(0x28e)]());}[_0x2cc1b3(0x294)](_0x4f2b85,_0x4a3790=!0x1){const _0x472851=_0x2cc1b3,_0x3001e5=new URL(window[_0x472851(0x2cf)][_0x472851(0x44a)]);_0x3001e5[_0x472851(0x3aa)][_0x472851(0x386)](_0x4f2b85),_0x4a3790?window['history'][_0x472851(0x1b5)]('','',_0x3001e5['toString']()):window[_0x472851(0x515)][_0x472851(0x29b)]('','',_0x3001e5[_0x472851(0x28e)]());}[_0x2cc1b3(0x348)](_0x3ee6bf){const _0x5446aa=_0x2cc1b3;var _0x5639e6;return(_0x5639e6=new URL(window['location'][_0x5446aa(0x44a)])[_0x5446aa(0x3aa)]['get'](_0x3ee6bf))!=null?_0x5639e6:void 0x0;}}const Pe=_0x2cc1b3(0x159),Ui=_0x2cc1b3(0x20d),Mi=_0x2cc1b3(0x365),oe=0x6,wi=1.5,Ue=0x4,yi=1.5,Ni='rgba(255,\x20255,\x20255,\x200.01)';class rt{constructor(_0x191ec5,_0x4836a9,_0xd4886d,_0x42166d){const _0x19e3f8=_0x2cc1b3;u(this,'_shapes',[]),u(this,'_anchor',null),u(this,_0x19e3f8(0x221),null),u(this,_0x19e3f8(0x18b),null),u(this,'_hideTimer',null),u(this,_0x19e3f8(0x32c),null),(this[_0x19e3f8(0x214)]=_0x191ec5,this[_0x19e3f8(0x151)]=_0x4836a9,this[_0x19e3f8(0x3a7)]=_0xd4886d,this[_0x19e3f8(0x162)]=_0x42166d,this[_0x19e3f8(0x42a)]());}set[_0x2cc1b3(0x434)](_0x4f4311){const _0x55571b=_0x2cc1b3;_0x4f4311?(this[_0x55571b(0x18b)]&&this['_anchorDot'][_0x55571b(0x3bf)](),this[_0x55571b(0x221)]&&this[_0x55571b(0x221)][_0x55571b(0x4f2)]()):(this[_0x55571b(0x18b)]&&this[_0x55571b(0x18b)][_0x55571b(0x4f2)](),this[_0x55571b(0x221)]&&this[_0x55571b(0x221)][_0x55571b(0x3bf)]());}[_0x2cc1b3(0x22c)](){const _0x208924=_0x2cc1b3;for(const _0x8c10c7 of this[_0x208924(0x179)])_0x8c10c7[_0x208924(0x22c)]();this[_0x208924(0x221)]&&this[_0x208924(0x221)]['dispose'](),this[_0x208924(0x18b)]&&this[_0x208924(0x18b)][_0x208924(0x22c)](),this['_anchor']&&this['_anchor'][_0x208924(0x22c)](),this[_0x208924(0x32c)]&&this[_0x208924(0x32c)]();}[_0x2cc1b3(0x42a)](){const _0x390152=_0x2cc1b3;var _0x40aeb9;const {_docSkeleton:_0x2605db,_document:_0x53ba47}=this,{color:_0x2327ac,name:_0x9d4cc,ranges:_0x77e325}=this[_0x390152(0x214)],_0xe0e00a=_0x53ba47[_0x390152(0x153)](),{docsLeft:_0x308d2c,docsTop:_0x5323db}=_0xe0e00a,_0x33e81c=new b[(_0x390152(0x2c0))](_0xe0e00a,_0x2605db);for(const {startOffset:_0x21b9da,endOffset:_0x383657,collapsed:_0x1f0ddb,isActive:_0x3ce876}of _0x77e325){const _0x575012=_0x2605db[_0x390152(0x169)](_0x21b9da),_0x40faa4=_0x2605db['findNodePositionByCharIndex'](_0x383657);if(_0x3ce876){const {contentBoxPointGroup:_0x56b51f}=_0x33e81c[_0x390152(0x4ab)](_0x40faa4,_0x40faa4);if(_0x56b51f[_0x390152(0x209)]===0x0)continue;this['_drawAnchor'](_0x2327ac,_0x56b51f,_0x308d2c,_0x5323db,_0x9d4cc),this[_0x390152(0x32c)]=this[_0x390152(0x374)]();}if(!_0x1f0ddb&&_0x575012&&_0x40faa4){if(b['isValidRectRange'](_0x575012,_0x40faa4)){const _0x23e12c=new b[(_0x390152(0x246))](_0xe0e00a,_0x2605db),{pointGroup:_0x5cb889}=(_0x40aeb9=_0x23e12c[_0x390152(0x4ab)](_0x575012,_0x40faa4))!=null?_0x40aeb9:{};if(_0x5cb889==null||_0x5cb889['length']===0x0)continue;this['_drawRectRange'](_0x2327ac,_0x5cb889,_0x308d2c,_0x5323db);}else{const {contentBoxPointGroup:_0x246372}=_0x33e81c[_0x390152(0x4ab)](_0x575012,_0x40faa4);if(_0x246372[_0x390152(0x209)]===0x0)continue;this[_0x390152(0x146)](_0x2327ac,_0x246372,_0x308d2c,_0x5323db);}}}}['_drawAnchor'](_0x2a5870,_0x54bab8,_0x175bf5,_0x65b332,_0x2315c1){const _0x569023=_0x2cc1b3,_0x215046=this[_0x569023(0x1ce)](_0x54bab8),{left:_0x1dd34d,top:_0x26c3c0,height:_0x4aabf4}=_0x215046,_0x5a7018=this[_0x569023(0x17b)](),_0x5c525f=yi/_0x5a7018,_0xae793=new b[(_0x569023(0x2bd))](Pe+o[_0x569023(0x492)][_0x569023(0x39f)](oe),{'left':_0x1dd34d+_0x175bf5-_0x5c525f,'top':_0x26c3c0+_0x65b332,'height':_0x4aabf4,'width':wi,'fill':_0x2a5870||b[_0x569023(0x249)](o['COLORS'][_0x569023(0x242)],0x0),'strokeWidth':_0x5c525f,'stroke':Ni,'evented':!0x0});this[_0x569023(0x26d)]=_0xae793,this[_0x569023(0x151)][_0x569023(0x340)](_0xae793,b[_0x569023(0x25c)]);const _0x46f016=new b[(_0x569023(0x2bd))](Pe+o[_0x569023(0x492)]['generateRandomId'](oe),{'left':_0x1dd34d+_0x175bf5-_0x5c525f,'top':_0x26c3c0+_0x65b332-Ue/0x2,'height':Ue,'width':Ue,'fill':_0x2a5870||b[_0x569023(0x249)](o[_0x569023(0x499)][_0x569023(0x242)],0x0),'strokeWidth':0x0,'stroke':_0x2a5870||b[_0x569023(0x249)](o[_0x569023(0x499)][_0x569023(0x242)],0x0),'evented':!0x1});this[_0x569023(0x18b)]=_0x46f016,this[_0x569023(0x151)][_0x569023(0x340)](_0x46f016,b[_0x569023(0x25c)]);const _0x5cf0bd=new Ee(Pe+o[_0x569023(0x492)]['generateRandomId'](oe),{'left':_0x1dd34d+_0x175bf5-_0x5c525f,'top':_0x26c3c0+_0x65b332-le,'text':_0x2315c1,'color':_0x2a5870});this[_0x569023(0x221)]=_0x5cf0bd,this[_0x569023(0x151)][_0x569023(0x340)](_0x5cf0bd,b['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x2cc1b3(0x374)](){const _0xf5ad7e=_0x2cc1b3,_0x358f61=this['_anchor'][_0xf5ad7e(0x4e3)][_0xf5ad7e(0x155)](()=>{const _0x2a1e39=_0xf5ad7e;this[_0x2a1e39(0x434)]=!0x0;}),_0x104151=this[_0xf5ad7e(0x26d)]['onPointerLeave$'][_0xf5ad7e(0x155)](()=>{const _0x596762=_0xf5ad7e;this[_0x596762(0x2f7)]&&clearTimeout(this[_0x596762(0x2f7)]),this[_0x596762(0x2f7)]=setTimeout(()=>{const _0x21daf3=_0x596762;this[_0x21daf3(0x434)]=!0x1;},0x7d0);});return()=>{const _0x185def=_0xf5ad7e;_0x358f61[_0x185def(0x265)](),_0x104151['unsubscribe']();};}[_0x2cc1b3(0x146)](_0x46623a,_0xcca4b,_0x1afa75,_0x1cc06f){const _0x3bcd8e=_0x2cc1b3,_0x3b39fb=new o[(_0x3bcd8e(0x409))](_0x46623a)[_0x3bcd8e(0x1e1)](0.2)[_0x3bcd8e(0x2d3)](),_0x41eae7=new b[(_0x3bcd8e(0x447))](Ui+o[_0x3bcd8e(0x492)]['generateRandomId'](oe),{'pointsGroup':_0xcca4b,'fill':_0x3b39fb||b[_0x3bcd8e(0x249)](o[_0x3bcd8e(0x499)]['black'],0.2),'left':_0x1afa75,'top':_0x1cc06f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3bcd8e(0x179)][_0x3bcd8e(0x4bd)](_0x41eae7),this[_0x3bcd8e(0x151)]['addObject'](_0x41eae7,b[_0x3bcd8e(0x25c)]);}['_drawRectRange'](_0x1e292d,_0x2a1e4b,_0x201d88,_0x2fa7ff){const _0x52ffc7=_0x2cc1b3,_0x164e9f=new o[(_0x52ffc7(0x409))](_0x1e292d)[_0x52ffc7(0x1e1)](0.2)['toRgbString'](),_0x10f1c0=new b['RegularPolygon'](Mi+o[_0x52ffc7(0x492)][_0x52ffc7(0x39f)](oe),{'pointsGroup':_0x2a1e4b,'fill':_0x164e9f||b[_0x52ffc7(0x249)](o[_0x52ffc7(0x499)][_0x52ffc7(0x242)],0.2),'left':_0x201d88,'top':_0x2fa7ff,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x52ffc7(0x179)][_0x52ffc7(0x4bd)](_0x10f1c0),this[_0x52ffc7(0x151)][_0x52ffc7(0x340)](_0x10f1c0,b[_0x52ffc7(0x25c)]);}[_0x2cc1b3(0x1ce)](_0x1f229e){const _0x3f5f6e=_0x1f229e[0x0],_0x5a88d1=_0x3f5f6e[0x0],_0x9de6d5=_0x3f5f6e[0x2],{x:_0x3407f5,y:_0x548131}=_0x5a88d1,{x:_0x8605d9,y:_0x34e3c0}=_0x9de6d5;return{'left':_0x3407f5,'top':_0x548131,'width':_0x8605d9-_0x3407f5,'height':_0x34e3c0-_0x548131};}['_getScale'](){const _0x82eea3=_0x2cc1b3,{scaleX:_0x736d68,scaleY:_0x20a5df}=this[_0x82eea3(0x151)][_0x82eea3(0x263)]();return Math['max'](_0x736d68,_0x20a5df);}}var Li=Object[_0x2cc1b3(0x1b2)],Ai=Object[_0x2cc1b3(0x47b)],ji=(_0x3de6b3,_0x5c9004,_0x2db240,_0x367494)=>{const _0x54af20=_0x2cc1b3;for(var _0x936512=_0x367494>0x1?void 0x0:_0x367494?Ai(_0x5c9004,_0x2db240):_0x5c9004,_0x43da06=_0x3de6b3[_0x54af20(0x209)]-0x1,_0x27f796;_0x43da06>=0x0;_0x43da06--)(_0x27f796=_0x3de6b3[_0x43da06])&&(_0x936512=(_0x367494?_0x27f796(_0x5c9004,_0x2db240,_0x936512):_0x27f796(_0x936512))||_0x936512);return _0x367494&&_0x936512&&Li(_0x5c9004,_0x2db240,_0x936512),_0x936512;},_e=(_0x399fb6,_0xee071b)=>(_0x559243,_0x414367)=>_0xee071b(_0x559243,_0x414367,_0x399fb6);let de=class extends o[_0x2cc1b3(0x516)]{constructor(_0x42b3bf,_0x545718,_0x5e902e,_0x3f7f4e,_0x101c1b){const _0x39ea19=_0x2cc1b3;super(),u(this,_0x39ea19(0x24d),[]),u(this,_0x39ea19(0x3ce),[]),(this[_0x39ea19(0x1c3)]=_0x42b3bf,this[_0x39ea19(0x160)]=_0x545718,this['_collabCursorController']=_0x5e902e,this[_0x39ea19(0x466)]=_0x3f7f4e,this[_0x39ea19(0x34d)]=_0x101c1b,this[_0x39ea19(0x4e1)]());}[_0x2cc1b3(0x4e1)](){const _0x572d6e=_0x2cc1b3,_0x3f1607=this[_0x572d6e(0x1c3)][_0x572d6e(0x440)],_0x527ff2=this[_0x572d6e(0x160)];this[_0x572d6e(0x4be)](v[_0x572d6e(0x3f5)]([this[_0x572d6e(0x502)][_0x572d6e(0x4a2)](_0x3f1607),this[_0x572d6e(0x34d)][_0x572d6e(0x1db)]])[_0x572d6e(0x478)](C['map'](([_0x3f4dcc,_0x5c783d])=>({'skeleton':_0x527ff2['getSkeleton'](),'cursors':[..._0x3f4dcc[_0x572d6e(0x4d7)]()]['flatMap'](_0xad58a4=>({..._0xad58a4,'color':_0x5c783d[_0xad58a4[_0x572d6e(0x404)]]}))})))[_0x572d6e(0x4c8)](_0x593e52=>{const _0x1444fe=_0x572d6e;if(this[_0x1444fe(0x247)](),_0x593e52){const {skeleton:_0x2b13b9,cursors:_0x5293d5}=_0x593e52;this[_0x1444fe(0x33d)](_0x2b13b9,_0x5293d5);}})),this[_0x572d6e(0x2c1)](),this[_0x572d6e(0x3a0)]();}['_updateCollabCursors'](_0x5aff3c,_0x145b55){const _0x12d361=_0x2cc1b3,{scene:_0x413605,mainComponent:_0x1982eb}=this[_0x12d361(0x1c3)],_0x6c0ef=_0x145b55['map'](_0x286acd=>new rt(_0x286acd,_0x413605,_0x5aff3c,_0x1982eb));this[_0x12d361(0x24d)]=_0x6c0ef,this[_0x12d361(0x3ce)]=_0x145b55;}[_0x2cc1b3(0x2c8)](){const _0x1107b6=_0x2cc1b3;this[_0x1107b6(0x247)]();const {scene:_0x293fcc,mainComponent:_0x2d5c25}=this[_0x1107b6(0x1c3)],_0xe0c817=this[_0x1107b6(0x160)][_0x1107b6(0x513)](),_0x1814be=this[_0x1107b6(0x3ce)][_0x1107b6(0x2a8)](_0x51c690=>new rt(_0x51c690,_0x293fcc,_0xe0c817,_0x2d5c25));this[_0x1107b6(0x24d)]=_0x1814be;}[_0x2cc1b3(0x247)](){const _0xb102db=_0x2cc1b3;this[_0xb102db(0x24d)][_0xb102db(0x34c)](_0x34e5fa=>_0x34e5fa[_0xb102db(0x22c)]()),this[_0xb102db(0x24d)]=[];}['_initCommandExecutedListener'](){const _0xb06d85=_0x2cc1b3,_0x41e245=[P[_0xb06d85(0x3c2)]['id']];this[_0xb06d85(0x4be)](this[_0xb06d85(0x466)]['onCommandExecuted'](_0x2ee8bb=>{const _0x27e6dc=_0xb06d85;_0x41e245[_0x27e6dc(0x15d)](_0x2ee8bb['id'])&&_0x2ee8bb['params'][_0x27e6dc(0x440)]===this['_context'][_0x27e6dc(0x440)]&&this['_refreshCollabCursors']();}));}[_0x2cc1b3(0x2c1)](){const _0x3ba2e2=_0x2cc1b3;this[_0x3ba2e2(0x4be)](o[_0x3ba2e2(0x507)](this[_0x3ba2e2(0x1c3)]['engine']['onTransformChange$'])[_0x3ba2e2(0x478)](C[_0x3ba2e2(0x277)](_0x308dbe=>_0x308dbe[_0x3ba2e2(0x3e9)]===b[_0x3ba2e2(0x233)][_0x3ba2e2(0x36c)]),C[_0x3ba2e2(0x21f)](0x10))['subscribe'](()=>{const _0x57bebd=_0x3ba2e2;this[_0x57bebd(0x2c8)]();}));}};de=ji([o[_0x2cc1b3(0x303)](o['LifecycleStages'][_0x2cc1b3(0x387)],de),_e(0x1,o['Inject'](P[_0x2cc1b3(0x210)])),_e(0x2,o[_0x2cc1b3(0x333)](Z)),_e(0x3,o[_0x2cc1b3(0x1cf)]),_e(0x4,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x185)]))],de);function _0x1e54(){const _0x2665ba=['CommentService','makeDirty','Univer','COLLAB_SUBMIT_CHANGESET_URL','loadSheet','merge','_onConnectionFailed','APPLY_REVISION_CONFILICT','LocalUndoRedoService','SUCCUSS','0\x200\x2017\x2016','CollaborationSocketService','_roomMembers$','_handleJoinEvent','type','YUUMI_UNABLE_LOAD_URL','some','CONFLICT','onSendChangeset','unitID','ISnapshotServerService','_sheetTransformSelectionsService','liveShareNewHost','endRow','_docTransformSelectionsService','unit','combineLatest','collaboration.single-unit.warning','collabStatus.fetchMiss','_configService','slice','_initStatusListener','Subject','isPermissionRej','cmd','_injector','transformUndoRedo','collabStatus.offline','forwardRef','_logService','_entityInit$','color','_getRedoStack','_refRangeService','LICENSE_IMPORT_SIZE_EXCEEDED','_awaitingChangeset','ColorKit','setItem','UNIVER_DOC','font','resolve','PERMISSION_DENIED','_status$','closeSession','xlink:href','handleInsertRow','saveSheetBlock','fillRule','deleteCollaborator','_compressMutationService','urlChange$','_getMergeRange','_urlService','skeleton','startColumn','ws://127.0.0.1:8000/universer-api/comb/connect','_getCurrentRevision','setInterval','_toggleOffline','assign','isTransformMutationsWithChangesetSuccess','rxjs','CommandType','univer-offline','CompressMutationService','_executeRemoteChangeset','InsertRangeMoveRightCommandId','width','[SyncedState]:\x20received\x20acknowledgement.','_render','DeleteRangeMoveLeftCommandId','conflict.content','_onJoinRoomEvent','IPermissionService','getConfig','getImageSourceCache','getCurrentSelections','fetching\x20missing\x20changesets\x20from\x20','_backgroundColor','_hover','getOwnPropertySymbols','_socketService','handleDeleteRangeMoveLeft','MUTATION','/universer-api/oidc/authpage','_clearRedo','?size=','enableAuthServer','_getUndoStack','POST','collabCursorState$','unitId','_handleEvent','getUnhiddenWorksheets','_lastPointer','_cachedData','BehaviorSubject','runRefRangeMutations','RegularPolygon','fetch_missing','@univerjs/ui','href','_submitChangeset','putCollaborators','_decreaseWaiting','M0\x200H16V16H0z','_initModules','_onRefRangeChange','DocStateChangeManagerService','drawWith','_removeClearOtherTimer','SheetSkeletonManagerService','_socket','revision','transformRemoteChangeset','_showConflictNotification','encode','NOT_COLLAB','439839tOqTFk','[CollaborationState]:\x20apply\x20error!','_online','IContextService','_clearScheduledTask','Disposable','Workbook','_disableEditing','EffectRefRangId','_onLocalMutation','SnapshotService','_commandService','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','isTransformChangesetsSuccess','30604keWKsK','_updateLocalCache','LOGIN_URL_KEY','_waitForHeartbeatResponse','getImage','verdancy600','_univerInstanceService','pending','error$','_createInitialStateImpl','routeKey','30Baqmes','_messageService','_uiPartsService','_sendHeartbeatTimer','pipe','_session','row','getOwnPropertyDescriptor','_getSheetObject','key','m1Prime','_queuedRemoteChangesets','_labelPosition','ALREADY_EXISTS','none','file','socket\x20close','fill','_createHandler','HEARTBEAT_INTERVAL_KEY','HEADER_MENU','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','substring','[CollaborationSessionService]','INTERNAL_ERROR','[CollaborationSessionService]:\x20socket\x20error','_incrementRevisionNumber','reject','onCommandExecuted','complete','Tools','_updateURLWithCurrentState','12655zaajgM','SheetPermissionInitController','ERROR_IMAGE_TYPE','reduce','APPLY_NON_SEQUENTIAL_REVISION','COLORS','UPDATE_CURSOR','sequenceExecute','/object/','objectID','_clearUndo','fetchThroughInterceptors','fillText','_sendingTimer','getCollabCursors$','selections','&to=','append','_clearHeartbeatTimer','loadOfflineData','IUndoRedoService','compose','RevisionService','getRangePointData','_transformUndoRedoStack','@univerjs/drawing','_updateState','/collaborator','_undoRedoService','_getAPIPrefix','Starting','snapshot','objectType','SnapshotServerOverHTTPService','LICENSE_MAX_UNITS_EXCEEDED','_range','UPDATE_PERMISSION_OBJ','arc','ILogService','extend','registerHTTPInterceptor','push','disposeWithMe','permission.title','currentSkeleton$','/-/object/list','prototype','_http','_userManagerService','status','_onUserLeave','change$','subscribe','max','ITransformService','_getSignURL','rxjs/operators','getFocusedUnit','getSheetBySheetId','event$','onTransformIME','open$','UNDEFINED','_type','DEFAULT_FILE_NAME','_getUploadFileURL','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','values','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','LifecycleStages','find','collaMsg','userID','csAckEvent','_clearCollaborationTimeoutTimer','IHTTPImplementation','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_init','UNIVER_PROJECT','onPointerEnter$','_onRemoteRejected','_renderManagerService','handleInsertCol','_registerRenderDependencies','_tryEnsureSocket','method','headers','image/png','?url=','FETCH_MISSING','fromCollab','socket\x20open.','_collaborationTimeoutTimer','startRow','show','UNIVER_COLLABORATION_CLIENT_PLUGIN','round','_getLoginPath','toggleOffline','mergeOverrideWithDependencies','body','_scheduleClearOtherTimer','_replaceFileID','joinRsp','c1Prime','_acknowledgedAwaitingChangeset','CHANGESET_ACK','status$','univer-pro.collaboration-client.single-active-unit-service','onPointerLeave$','_collabCursorController','_onConnectionOpen','_assignedColors','InsertRowCommandId','add','fromEventSubject','/-/object/-/batch_allowed','1em','mapDocumentTypeToUniverType','setCurrentUser','image/gif','INVALID_ARGUMENT','_notificationService','pluginName','useDependency','@univerjs/network','AuthzIoHttpService','getSkeleton','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','history','RxDisposable','csRejEvent','joinEvent','2922828YOMrfH','_config','@univerjs/sheets-ui','_onRemoteChangeset','[DataLoaderController]','_toggleOnline','deepClone','JOIN','startsWith','originalMeta','getMember','liveShareOperation','transformMutationsWithChangeset','\x20-\x20','div','UNAUTHENTICATED','SheetCollaborationEntity','_drawTextRange','lodash/debounce','_retryConnectingTimer','IConfigService','_transformStack','BASE64','getValue','WebURLService','CollaborationSessionService','INotificationService','_singleActiveUnitService','_scene','post','getOffsetConfig','SheetsSelectionsService','subscribeEvent','_sessions','CollaborationStatus','interceptor','collab-text-anchor-','getUnitId','38mBgtXa','_httpService','includes','svg','LocalCacheService','_docSkeletonManagerService','_hovered','_document','@univerjs/sheets','ACTIVE_UNIT_EVENT_CHANNEL','_state','_change$','_socketMessageSubscription','toDisposable','findNodePositionByCharIndex','all','getSheetBlock','[FetchMissState]','/universer-api/comb','COLLAB_SUBMIT_CHANGESET_URL_KEY','url(#off-line-single_clip0_910_343)','on-line-single','createInstance','PERMISSION_REJ','CollaborationEvent','onRemoteAck','handleInsertRangeMoveRight','[SyncedState]:\x20received\x20rejection.','7879wyVHlQ','responseType','_shapes','url(#$1','_getScale','_colorIndex','LIVESHARE_FETCH_OPERATIONS','session.will-retry','selection','updateMember','call','_clearOtherTimers','_setupBeforeClosingHandler','_clearTimeoutTimer','ThemeService','executeCommand','isTransformMutationsWithChangesetFailure','COMPLETION_FINISHED','icon','displayName','_anchorDot','translate(.97)','closePath','_collabCursorState$','awaitingChangeset','setParam','268cIvmuE','removeMember','Unknown\x20user','OTHER_CLIENTS_EDITING','_color','_scheduleTimestamp','getRelativeToViewportCoord','_name','unshift','replaceTextRanges','serializeDocRange','trim','HEARTBEAT_TIMEOUT_KEY','params','UNRECOGNIZED','attrs','debug','next','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_syncEditingCollabCursorService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','getCollabEntity$','SessionStatus','isArray','/object','_timeoutTimer','editingUnit','_colorAssignService','c2Prime','IDLE','shouldCloseConn','/new_changes','_event$','defineProperty','WebSocketService','SetWorksheetActivateCommand','replaceState','IBeforeCloseService','function','set','reverse','getSheetId','evenodd','_transformUndoredo','SNAPSHOT_INVALID_SNAPSHOT','SEND_CHANGESET_TIMEOUT_KEY','textRanges','data','EXCHANGE_SIGN_URL_SERVER_URL_KEY','Module','_context','currentColor','_createInitialState','top','_collabSessionService','/unit/','\x20in\x20_schedule.','/allowed','_removeRoom','ERROR_IMAGE','/fetchmissing?from=','_getAnchorBounding','ICommandService','LIVESHARE_REQUEST_HOST','mutations','useRef','getUnitOnRev','conflict','_ws','[CollaborationSession]','handleDeleteRangeMoveUp','{fileID}','FETCH_MISS','HTTPService','currentTheme$','/universer-api/snapshot','_startCollaboration','_onConflict','encodeURIComponent','getUnitType','setAlpha','triggerDblclick','FileId','onPointerMove$','YUUMI_URL_COL_OUT_OF_RANGE','focused$','saveSnapshot','updatePermissionPoint','1953543yLTkap','clearTimeout','univerjs-icon\x20univerjs-icon-','baseRev','_collaborationSessionService','jiqing500','takeUntil','getCollabEntity','cursorInfo','_getSnapshotAPIPrefix','exhaustSavingTask','_ensureSubject','_onCursorUpdate','transformChangesets','_id','clear','_scheduleCollaborationTimeoutTimer','clipPath','getUnitStatus$','message$','_permissionService','failed\x20to\x20apply\x20missed\x20changesets!','localeService','tag','disposeUnit','path','MoveRangeCommandId','isActive','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','getCurrent','parse','AUTHZ_URL_KEY','length','allowed','DataLoaderController','children','collab-text-range-','[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.','getCoordByCell','DocSkeletonManagerService','assignAColorForMemberID','json','getActiveRange','_cursor','getCurrentUser','/rev/','_substituteRedoStack','CHANGESET_REVISION_CONFILICT','getUniverSheetInstance','univer-pro.collaboration-client-socket-service','withCredentials','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','USERS_LEAVE','throttleTime','APPLY_PERMISSION_DENIED','_textBubble','LEAVE','off-line-single','_members','saveOfflineData','_unitID','InsertColCommandId','handleIRemoveRow','DependentOn','COLLAB_WEB_SOCKET_URL_KEY','initWorkbookPermissionChange','dispose','_sessionStatus$','getVpScrollXYInfoByPosToVp','IRemoteInstanceService','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','create','Shape','TRANSFORM_CHANGE_OBSERVABLE_TYPE','handleInsertRangeMoveDown','confirm','serializeCombRequest','UNIVER_SLIDE','...','_transformIMECache','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','collabStatus.synced','_transformRemoteChangesetByIMECache','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','dispose$','_roomMembers','roomMembers','readAsDataURL','black','getItem','getCurrentUnitForType','objectActions','NodePositionConvertToRectRange','_removeCollabCursors','_getSaveTimeout','getColor','isTransformMutationFailure','LICENSE_EXPORT_SIZE_EXCEEDED','react','_cursorShapes','_startSheetCollabCursor','getInterceptPoints','JSONX','_commentUpdate$','setTimeout','className','0\x200\x2016\x2016','AWAITING','UUID','UNKNOWN_CODE','onTransformRemoteChangesetByIMECache','fetchMissingChangesets','roles','getTypeOfUnitAdded$','TEXT_RANGE_LAYER_INDEX','_startDocCollabCursor','_docSyncEditingCollabCursorService','distinctUntilChanged','_sendHeartbeat','transformMutation','connectInjector','getAncestorScale','[OfflineState]:\x20received\x20changeset.','unsubscribe','eventID','_cursorInfo$','SNAPSHOT_SERVER_URL_KEY','collabStatus.notCollab','[CollaborationUndoRedoService]','_waitCount','red300','_anchor','string','_onCombEvent','_saveCache','UniverInstanceType','_socketReady','SNAPSHOT_URL_KEY','bottom','listCollaborators','COLLAB_WEB_SOCKET_URL','filter','onStateChange','[OfflineState]:\x20received\x20rejection.','workbook','appendMutation','_rescheduleHeartbeatEvent','requestParams','actions','_fetchMissChangesets','IMessageService','onStarting','not_collab','_handler','COMPRESS_MUTATION_APPLY','m2Prime','conflict.title','pauseCollaboration','hovered','DisposableCollection','_disabled','_createSocket','resend','_onCursorDelete','toString','_unlockTransition','_pendingMutations','_heartbeatTimer','DesktopCollaborationStatusDisplayController','_handleHeartbeatEvent','removeParam','getCurrentRevForDocument','getTime','AWAITING_WITH_PENDING','IUniverInstanceService','RETRY_CONNECTING_INTERVAL','saveChangeset','pushState','defs','url','IRenderManagerService','off-line-single_clip0_910_343','HELLO','gold400','put','collabStatus.syncing','#fff','_applyRemoteChangeset','_updateLocalCursor','min','map','subUnitId','session.connection-failed','CONNECTOR_DATA_TOO_LARGE','deserializeRangeWithSheet','_transformService','has','apply','commentUpdateEvent','_remoteChangesetQueue','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','Injector','onRemoteChangeset','_getCtorByUniverType','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_retryCount','popstate','IUIPartsService','members','state','name','Rect','connection\x20error','_socket$','NodePositionConvertToCursor','_initResize','_transitionLocked','Optional','PSEUDO_FETCH_MISSING_RESULT','close','debounceTime','onlineStatusTitle','_refreshCollabCursors','/universer-api/stream/file/upload','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_updateSubUnitFromURLParams','univer-online-status-title','HEARTBEAT_INTERVAL','updateCursorEvent','location','code','clearInterval','save','toRgbString','CHANGESET_REJ','fillStyle','syncEditingCollabCursor','_replayCachedMutations','offline','EmptyMutation','defIds','awaiting','/universer-api/snapshot/','/resources','getActiveSheet','height','toggleOnline','ImageUploadStatusType','_HTTPService','restore','onMouseMove','onCommentUpdate','VIEWPORT_KEY','_initUnitPermissionChange','transformSelections','_snapshotServerService','symbol','Ready','indexOf','_selfUnitIDs','split','_setupSubUnitSync','NO_OTHER_CLIENTS_EDITING','LIVESHARE_TERMINATE','incrementRevForDocument','_docStateChangeManagerService','deserializeToCombResponse','unknown','LocaleService','_hideTimer','list','Error','image/bmp','_undoStacks','IMEInputManagerService','YUUMI_SUBSCRIPTION_NOT_FOUND','memberID','_exhaustRemoteChangesetQueue','use','session','ONLINE','OnLifecycle','setWaitCount','CollaborationController','SNAPSHOT_HAS_BEEN_REMOVED','error','_schedule','[PendingState]:\x20received\x20rejection.','image/jpg','auth.needGotoLoginAlert','#FFF','_collaborationPaused','RemoveRowCommandId','getDocRanges','newValue','_unitOnClients','cursorInfo$','onlineStatus','onSyncEditingCollabCursor','LICENSE_DISTRO_REJECTED','Vector2','awaiting_with_pending','UserManagerService','measureText','_transformPreviousActiveRange','parseProtocolChangeset','column','lineTo','[CollaborationEntity]','getCellPositionByOffset','onRemoteRej','RichTextEditingMutation','isInternalEditorID','isEditing','updateOfflineData','permissionRejEvent','SetSelectionsOperation','transformIMECache','backgroundColor','MessageType','close$','concat','_eventUnsubscribe','_collaborationController','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','RefRangeService','colorChannel1','_initStatusComponent','OnLineSingle','Inject','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','\x20to\x20','JOINING','_send','CollaborationSession','_entities','WorkbookEditablePermission','requireSession','_localeService','_updateCollabCursors','delay','/block/','addObject','_revisionService','take','size','state$','shareReplay','from','objects','getParam','YUUMI_RATE_OVER_LIMIT','_initCloseConn','replace','forEach','_themeService','IAuthzIoService','useObservable','SUBMIT_CHANGESET','_initMergeInterceptor','session.room-full','NEW_CHANGESETS','@univerjs/docs','ImageIoService','_docTransformIMECacheService','LIVESHARE_OPERATION','_checkMissing','_localCacheService','range','TextSelectionManagerService','_scheduleReconnection','VIEW_MAIN','hasOwnProperty','UniverCollaborationClientPlugin','then','\x0aCurrent:\x20','COMPRESS_MUTATION_SEND','XHRHTTPImplementation','createIdentifier','collab-rect-range-','\x0aAfter:\x20','catch','asObservable','online','getTypeOfUnitDisposed$','subunit','resize','disableLocalCache','_saveTaskMap','@univerjs/engine-formula','textEncoder','uni.network.url-service','updatePermissionObjEvent','rev','_handleHover','save\x20fail\x20reason\x20is\x20','CollaborationStatusDisplay','send','ICollaborationSocketService','onlyLocal','_onRemoteACK','_beforeCloseService','_redoStacks','changesets','_scheduleSaving','fromEvent','sessionStatus$','getRoom','collabStatus.conflict','on-line-single_clip0_910_349','idSuffix','concatMap','delete','Steady','collaboration-client.offline-data-not-saved','switchMap','OFFLINE','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_loadDoc','FromArray','_sheetSkeletonManagerService','_getAPIPrefixPath','roomMembers$','1339038iwAjGz','_onMessage','_state$','_substituteUndoStack','onlineStatusIcon','@univerjs/engine-render','RECV','HEARTBEAT','_transformSelections','action','ranges','304bRekfp','permission.content','_loadSheet','generateRandomId','_initCommandExecutedListener','UNIVER_SHEET','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','transform','UNIVER_UNKNOWN','stringify','setShapeProps','_docSkeleton','getMemberID','LIVESHARE_NEW_HOST','searchParams','_memberService','_updateStatus','TOO_MANY_REQUESTS','ImageSourceType','_scheduleHeartbeat','_onRecvEvent','Warning','USERS_ENTER','11rWlZVs','MSG_FOR_ERROR','collaborators','_joinRoom','setActiveRange','_syncEditingCollabCursor','INGEST','get','entries','every','getSheetObject','registerOnClose','hide','DeleteRangeMoveUpCommandId','_snapshotService','SetDocZoomRatioOperation','SHOULD_CLOSE_CONN','_localStorageService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','purple300','IURLService','b64DecodeUnicode','_onUserJoin','_commentService','createElement','FAIL','editing\x20status\x20changed\x20to','_cursors','createSocket','init','_registerDependencies','onMissedChangesetFetched','getUndoRedoMutationParamsCache','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','UNKNOWN_CMD','onTransformSelections','_getSendChangesetTimeout','override','_lockTransition','doc.mutation.rich-text-editing'];_0x1e54=function(){return _0x2665ba;};return _0x1e54();}var $i=Object[_0x2cc1b3(0x1b2)],xi=Object[_0x2cc1b3(0x47b)],Hi=(_0x138452,_0x10be1e,_0x3574f3,_0x24d921)=>{const _0x5702f4=_0x2cc1b3;for(var _0x22a59c=_0x24d921>0x1?void 0x0:_0x24d921?xi(_0x10be1e,_0x3574f3):_0x10be1e,_0x3fb14c=_0x138452[_0x5702f4(0x209)]-0x1,_0x4e9a1f;_0x3fb14c>=0x0;_0x3fb14c--)(_0x4e9a1f=_0x138452[_0x3fb14c])&&(_0x22a59c=(_0x24d921?_0x4e9a1f(_0x10be1e,_0x3574f3,_0x22a59c):_0x4e9a1f(_0x22a59c))||_0x22a59c);return _0x24d921&&_0x22a59c&&$i(_0x10be1e,_0x3574f3,_0x22a59c),_0x22a59c;},Me=(_0x33a6d0,_0x1d32d0)=>(_0x4fba67,_0x9ce281)=>_0x1d32d0(_0x4fba67,_0x9ce281,_0x33a6d0);let Ie=class{constructor(_0x1ceb4b,_0x42770b,_0x572aee){const _0x1c2bd5=_0x2cc1b3;this[_0x1c2bd5(0x3f8)]=_0x1ceb4b,this['_httpService']=_0x42770b,this[_0x1c2bd5(0x1ff)]=_0x572aee,this[_0x1c2bd5(0x3d0)]();}[_0x2cc1b3(0x3d0)](){const _0x58b0cf=_0x2cc1b3;this[_0x58b0cf(0x15c)][_0x58b0cf(0x4bc)]({'priority':0x1,'interceptor':(_0x1fd3b9,_0xc27f09)=>_0xc27f09(_0x1fd3b9)['pipe'](v[_0x58b0cf(0x385)](async _0x4c24da=>{const _0x3f494b=_0x58b0cf,_0x229e17=_0x4c24da;if(_0x229e17[_0x3f494b(0x4c5)]===0x191&&window[_0x3f494b(0x235)](this['localeService']['t'](_0x3f494b(0x30b)))){const _0x5c4318=window[_0x3f494b(0x1df)](window[_0x3f494b(0x2cf)][_0x3f494b(0x44a)]);window['location'][_0x3f494b(0x44a)]=this[_0x3f494b(0x4f5)]()+_0x3f494b(0x4ec)+_0x5c4318;}return _0x229e17;}))});}[_0x2cc1b3(0x4f5)](){const _0x3b7994=_0x2cc1b3;var _0x4f2333;return(_0x4f2333=this[_0x3b7994(0x3f8)][_0x3b7994(0x42f)](mt))!=null?_0x4f2333:Jt;}};Ie=Hi([Me(0x0,o[_0x2cc1b3(0x149)]),Me(0x1,o[_0x2cc1b3(0x333)](U[_0x2cc1b3(0x1da)])),Me(0x2,o[_0x2cc1b3(0x333)](o['LocaleService']))],Ie);var ki=Object[_0x2cc1b3(0x1b2)],Bi=Object[_0x2cc1b3(0x47b)],Fi=(_0x4ec7e5,_0x3909e2,_0x3498f5,_0x43149b)=>{const _0x5e9ac7=_0x2cc1b3;for(var _0x7043cf=_0x43149b>0x1?void 0x0:_0x43149b?Bi(_0x3909e2,_0x3498f5):_0x3909e2,_0x30b9ce=_0x4ec7e5[_0x5e9ac7(0x209)]-0x1,_0x322c80;_0x30b9ce>=0x0;_0x30b9ce--)(_0x322c80=_0x4ec7e5[_0x30b9ce])&&(_0x7043cf=(_0x43149b?_0x322c80(_0x3909e2,_0x3498f5,_0x7043cf):_0x322c80(_0x7043cf))||_0x7043cf);return _0x43149b&&_0x7043cf&&ki(_0x3909e2,_0x3498f5,_0x7043cf),_0x7043cf;},ot=(_0x8d98d,_0x30b962)=>(_0x5350d2,_0x52e7d0)=>_0x30b962(_0x5350d2,_0x52e7d0,_0x8d98d);const Mt='AUTHZ_URL_KEY',Vi='/universer-api/authz';exports['AuthzIoHttpService']=class extends o[_0x2cc1b3(0x460)]{constructor(_0x298eb4,_0xd09634){const _0x375fa1=_0x2cc1b3;super(),this[_0x375fa1(0x2e2)]=_0x298eb4,this[_0x375fa1(0x3f8)]=_0xd09634,this['_initMergeInterceptor']();}[_0x2cc1b3(0x351)](){const _0x32e3f2=_0x2cc1b3,_0x279a83=this;this[_0x32e3f2(0x4be)](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':U['MergeInterceptorFactory']({'isMatch'(_0x1b9457){const _0x253f78=_0x32e3f2;var _0x1c46ef;if(_0x1b9457[_0x253f78(0x4e9)]===_0x253f78(0x43e)&&((_0x1c46ef=_0x1b9457[_0x253f78(0x27d)])!=null&&_0x1c46ef[_0x253f78(0x4f8)])){const {objectID:_0x3bdfdd,objectType:_0x19128e}=_0x1b9457['requestParams'][_0x253f78(0x4f8)]||{};if(!_0x3bdfdd||_0x19128e===void 0x0)return!0x1;const _0x225880=_0x279a83[_0x253f78(0x38f)]()+'/'+_0x19128e+_0x253f78(0x49c)+_0x3bdfdd+_0x253f78(0x1ca);if(_0x1b9457[_0x253f78(0x29d)]===_0x225880)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5bd419){const _0x2123cb=_0x32e3f2;var _0x5a3447;return(_0x5a3447=_0x5bd419[_0x2123cb(0x27d)])==null?void 0x0:_0x5a3447['body'];},'mergeParamsToRequest'(_0x1f5834,_0x2007fd){const _0x14da4c=_0x32e3f2,_0x18c104=_0x279a83[_0x14da4c(0x38f)]()+_0x14da4c(0x508),_0xcac93d=_0x1f5834[_0x14da4c(0x497)]((_0x43c279,_0x4c0b49)=>{const _0x50e638=_0x14da4c,{unitID:_0x384791,objectID:_0x495c47,objectType:_0x510c09,actions:_0x35af0d}=_0x4c0b49;return _0x43c279[_0x384791]||(_0x43c279[_0x384791]={}),_0x43c279[_0x384791][_0x495c47]||(_0x43c279[_0x384791][_0x495c47]={'objectID':_0x495c47,'objectType':_0x510c09,'actions':[]}),_0x43c279[_0x384791][_0x495c47][_0x50e638(0x27e)][_0x50e638(0x4bd)](..._0x35af0d),_0x43c279;},{}),_0x24a1a7=[];for(const _0x4185b4 in _0xcac93d)for(const _0x25e1b4 in _0xcac93d[_0x4185b4]){const {actions:_0x36b902,objectType:_0x503ca2}=_0xcac93d[_0x4185b4][_0x25e1b4],_0x10cd2d=[...new Set(_0x36b902)];_0x24a1a7['push']({'unitID':_0x4185b4,'objectID':_0x25e1b4,'objectType':_0x503ca2,'actions':_0x10cd2d});}return new U['HTTPRequest']('POST',_0x18c104,{'headers':_0x2007fd[_0x14da4c(0x4ea)],'withCredentials':_0x2007fd[_0x14da4c(0x21b)],'responseType':_0x2007fd[_0x14da4c(0x178)],'body':{'requests':_0x24a1a7}});}},{'distributeResult'(_0x373a90,_0x52bd12){const _0x3c6ac9=_0x32e3f2,{objectActions:_0x2b246e}=_0x373a90;return _0x52bd12[_0x3c6ac9(0x2a8)](_0x1c196d=>{const _0x5252ad=_0x3c6ac9,{unitID:_0x1f1be3,objectID:_0x8ff9a6,actions:_0x435a93}=_0x1c196d,_0x34cc53=_0x2b246e['find'](_0x5b5807=>_0x5b5807[_0x5252ad(0x3ee)]===_0x1f1be3&&_0x5b5807[_0x5252ad(0x49d)]===_0x8ff9a6),_0x5112c0=_0x435a93['map'](_0x552264=>_0x34cc53==null?void 0x0:_0x34cc53[_0x5252ad(0x27e)][_0x5252ad(0x4da)](_0x18b260=>_0x18b260[_0x5252ad(0x39a)]===_0x552264))['filter'](_0x2f4f33=>!!_0x2f4f33);return{'config':_0x1c196d,'result':{'actions':_0x5112c0,'error':_0x373a90[_0x5252ad(0x307)]}};});}})}));}['_getAPIPrefixPath'](){const _0x3f6204=_0x2cc1b3;var _0x4a3c60;return(_0x4a3c60=this[_0x3f6204(0x3f8)][_0x3f6204(0x42f)](Mt))!=null?_0x4a3c60:Vi;}async[_0x2cc1b3(0x231)](_0x1758ca){const _0x2d37a2=_0x2cc1b3,_0x19a7fc=this[_0x2d37a2(0x38f)]()+'/'+_0x1758ca['objectType']+_0x2d37a2(0x1a9);return(await this[_0x2d37a2(0x2e2)][_0x2d37a2(0x152)](_0x19a7fc,{'body':_0x1758ca}))[_0x2d37a2(0x4f8)][_0x2d37a2(0x49d)]||'';}async[_0x2cc1b3(0x2f8)](_0x1c646b){const _0x508491=_0x2cc1b3,_0x4b5fbb=this[_0x508491(0x38f)]()+_0x508491(0x4c1);return(await this[_0x508491(0x2e2)][_0x508491(0x152)](_0x4b5fbb,{'body':_0x1c646b}))[_0x508491(0x4f8)][_0x508491(0x347)];}async['update'](_0x4d2e72){const _0x12e8d4=_0x2cc1b3,_0x26871f=this[_0x12e8d4(0x38f)]()+'/'+_0x4d2e72[_0x12e8d4(0x4b4)]+_0x12e8d4(0x49c)+_0x4d2e72['objectID'];await this[_0x12e8d4(0x2e2)][_0x12e8d4(0x2a2)](_0x26871f,{'body':_0x4d2e72});}async[_0x2cc1b3(0x20a)](_0x3ff5ee){const _0x23c297=_0x2cc1b3,_0x57de02=this[_0x23c297(0x38f)]()+'/'+_0x3ff5ee[_0x23c297(0x4b4)]+'/object/'+_0x3ff5ee[_0x23c297(0x49d)]+'/allowed';return(await this[_0x23c297(0x2e2)][_0x23c297(0x152)](_0x57de02,{'body':_0x3ff5ee}))['body'][_0x23c297(0x27e)];}async['batchAllowed'](_0x5e56ce){const _0x52f9e5=_0x2cc1b3,_0x296378=this[_0x52f9e5(0x38f)]()+_0x52f9e5(0x508);return(await this[_0x52f9e5(0x2e2)]['post'](_0x296378,{'body':{'requests':_0x5e56ce}}))['body'][_0x52f9e5(0x245)];}async['listRoles'](_0xe684dd){const _0x30d5fb=_0x2cc1b3,_0x482e78=this[_0x30d5fb(0x38f)]()+'/'+_0xe684dd['objectType']+'/role',_0x14badd=await this[_0x30d5fb(0x2e2)][_0x30d5fb(0x152)](_0x482e78,{'body':_0xe684dd});return{'roles':_0x14badd[_0x30d5fb(0x4f8)][_0x30d5fb(0x25a)],'actions':_0x14badd[_0x30d5fb(0x4f8)][_0x30d5fb(0x27e)]};}async[_0x2cc1b3(0x415)](_0x38ef34){const _0x29e1f2=_0x2cc1b3,_0x2ab1b5=this['_getAPIPrefixPath']()+_0x29e1f2(0x4af);await this[_0x29e1f2(0x2e2)][_0x29e1f2(0x386)](_0x2ab1b5,{'params':{'collaboratorID':_0x38ef34['collaboratorID'],'objectID':_0x38ef34[_0x29e1f2(0x49d)],'unitID':_0x38ef34['unitID']}});}async['updateCollaborator'](_0x6f7ce1){const _0x429344=_0x2cc1b3,_0x1b4db8=this['_getAPIPrefixPath']()+_0x429344(0x4af);await this[_0x429344(0x2e2)]['patch'](_0x1b4db8,{'body':_0x6f7ce1});}async['createCollaborator'](_0x5f2536){const _0x1895b0=_0x2cc1b3,_0x1af7b1=this[_0x1895b0(0x38f)]()+'/collaborator';await this[_0x1895b0(0x2e2)][_0x1895b0(0x152)](_0x1af7b1,{'body':_0x5f2536});}async[_0x2cc1b3(0x275)](_0x3df0c8){const _0x55cf48=_0x2cc1b3,_0x20ed0e=this[_0x55cf48(0x38f)]()+_0x55cf48(0x4af);return(await this[_0x55cf48(0x2e2)][_0x55cf48(0x3ba)](_0x20ed0e,{'params':{'objectID':_0x3df0c8[_0x55cf48(0x49d)],'unitID':_0x3df0c8[_0x55cf48(0x3ee)]}}))['body'][_0x55cf48(0x3b5)];}async[_0x2cc1b3(0x44c)](_0x3660ba){const _0x12b07a=_0x2cc1b3,_0x35fb5f=this[_0x12b07a(0x38f)]()+_0x12b07a(0x4af);await this[_0x12b07a(0x2e2)][_0x12b07a(0x2a2)](_0x35fb5f,{'body':_0x3660ba});}},exports[_0x2cc1b3(0x512)]=Fi([ot(0x0,o['Inject'](U[_0x2cc1b3(0x1da)])),ot(0x1,o['Inject'](o[_0x2cc1b3(0x149)]))],exports[_0x2cc1b3(0x512)]);var Wi=Object[_0x2cc1b3(0x1b2)],Gi=Object[_0x2cc1b3(0x47b)],Yi=(_0x438fa0,_0x4692b5,_0x18c873,_0x1f8dd1)=>{for(var _0x5a2a88=_0x1f8dd1>0x1?void 0x0:_0x1f8dd1?Gi(_0x4692b5,_0x18c873):_0x4692b5,_0x5bcae4=_0x438fa0['length']-0x1,_0x2a065e;_0x5bcae4>=0x0;_0x5bcae4--)(_0x2a065e=_0x438fa0[_0x5bcae4])&&(_0x5a2a88=(_0x1f8dd1?_0x2a065e(_0x4692b5,_0x18c873,_0x5a2a88):_0x2a065e(_0x5a2a88))||_0x5a2a88);return _0x1f8dd1&&_0x5a2a88&&Wi(_0x4692b5,_0x18c873,_0x5a2a88),_0x5a2a88;},at=(_0x327ce5,_0x49c9b1)=>(_0x1ddc26,_0x359163)=>_0x49c9b1(_0x1ddc26,_0x359163,_0x327ce5);const Ki=[_0x2cc1b3(0x4eb),'image/jpeg',_0x2cc1b3(0x30a),_0x2cc1b3(0x50c),_0x2cc1b3(0x2fa)],Xi=0x5*0x400*0x400,qi=_0x2cc1b3(0x3a2),zi=_0x2cc1b3(0x2c9),Ji=_0x2cc1b3(0x1c1),Zi='/universer-api/file/{fileID}/sign-url';exports[_0x2cc1b3(0x355)]=class{constructor(_0x3c607f,_0x32acf8){const _0x2684e1=_0x2cc1b3;u(this,'_waitCount',0x0),u(this,_0x2684e1(0x166),new v['Subject']()),u(this,_0x2684e1(0x4c7),this[_0x2684e1(0x166)]),u(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x3c607f,this[_0x2684e1(0x3f8)]=_0x32acf8);}[_0x2cc1b3(0x304)](_0x2a0eee){const _0x474783=_0x2cc1b3;this[_0x474783(0x26b)]=_0x2a0eee,this[_0x474783(0x166)][_0x474783(0x1a2)](_0x2a0eee);}[_0x2cc1b3(0x430)](_0x35b91b,_0xf6299){const _0x1e6313=_0x2cc1b3;if(_0xf6299===A['ImageSourceType'][_0x1e6313(0x14b)]){const _0x12fc4e=new Image();return _0x12fc4e['src']=_0x35b91b,_0x12fc4e;}return this['_imageSourceCache'][_0x1e6313(0x3ba)](_0x35b91b);}['addImageSourceCache'](_0x1276fa,_0x556bbc,_0x427a58){const _0x238d86=_0x2cc1b3;_0x556bbc===A[_0x238d86(0x3ae)][_0x238d86(0x14b)]||_0x427a58==null||this['_imageSourceCache'][_0x238d86(0x1b8)](_0x1276fa,_0x427a58);}async[_0x2cc1b3(0x46d)](_0x1f7ca9){const _0x4ad423=_0x2cc1b3;try{const _0x50ea5e=this[_0x4ad423(0x4fa)](this[_0x4ad423(0x4cb)](),''+_0x1f7ca9),_0x13f9fe=(await this[_0x4ad423(0x15c)]['get'](_0x50ea5e))[_0x4ad423(0x4f8)];return _0x13f9fe[_0x4ad423(0x307)]&&_0x13f9fe[_0x4ad423(0x307)][_0x4ad423(0x2d0)]===gt['OK']?Promise[_0x4ad423(0x40d)](_0x13f9fe[_0x4ad423(0x29d)]):Promise[_0x4ad423(0x48f)](_0x13f9fe[_0x4ad423(0x307)]);}catch(_0x476edc){return Promise[_0x4ad423(0x48f)](_0x476edc);}}async['saveImage'](_0x17d8bf){const _0x1fd876=_0x2cc1b3;let _0x28a755='';if(!Ki[_0x1fd876(0x15d)](_0x17d8bf[_0x1fd876(0x3e9)]))return this[_0x1fd876(0x44d)](),Promise[_0x1fd876(0x48f)](new Error(A[_0x1fd876(0x2e1)][_0x1fd876(0x496)]));if(_0x17d8bf[_0x1fd876(0x343)]>Xi)return this[_0x1fd876(0x44d)](),Promise['reject'](new Error(A[_0x1fd876(0x2e1)]['ERROR_EXCEED_SIZE']));try{const _0x36bdbe=new FormData();_0x36bdbe[_0x1fd876(0x4a5)](_0x1fd876(0x483),_0x17d8bf);const _0x2edabf=this[_0x1fd876(0x4d5)]()+_0x1fd876(0x43b)+_0x17d8bf[_0x1fd876(0x343)]['toString'](),_0x381220=await(await fetch(_0x2edabf,{'method':_0x1fd876(0x43e),'body':_0x36bdbe}))[_0x1fd876(0x212)]();if(typeof _0x381220['FileId']!=_0x1fd876(0x26e))return this[_0x1fd876(0x44d)](),Promise[_0x1fd876(0x48f)](new Error(A[_0x1fd876(0x2e1)][_0x1fd876(0x1cc)]));_0x28a755=_0x381220[_0x1fd876(0x1e3)];}catch{return this[_0x1fd876(0x44d)](),Promise[_0x1fd876(0x48f)](new Error(A['ImageUploadStatusType']['ERROR_IMAGE']));}return new Promise((_0x415928,_0x2d3d30)=>{const _0x123c85=_0x1fd876,_0x15e047=new FileReader();_0x15e047[_0x123c85(0x241)](_0x17d8bf),_0x15e047['onload']=_0x473849=>{const _0x139ff2=_0x123c85;var _0x941270;const _0x4ccb64=(_0x941270=_0x473849['target'])==null?void 0x0:_0x941270['result'];if(_0x4ccb64==null){this[_0x139ff2(0x44d)](),_0x2d3d30(new Error(A[_0x139ff2(0x2e1)][_0x139ff2(0x1cc)]));return;}const _0x39db10=o['Tools'][_0x139ff2(0x39f)](0x6);_0x415928({'imageId':_0x39db10,'imageSourceType':A['ImageSourceType'][_0x139ff2(0x256)],'source':_0x28a755,'base64Cache':_0x4ccb64,'status':A[_0x139ff2(0x2e1)][_0x139ff2(0x3e4)]}),this['_decreaseWaiting']();};});}[_0x2cc1b3(0x4d5)](){const _0xa7b944=_0x2cc1b3;var _0x4cd108;return(_0x4cd108=this[_0xa7b944(0x3f8)][_0xa7b944(0x42f)](qi))!=null?_0x4cd108:zi;}[_0x2cc1b3(0x4cb)](){const _0x533304=_0x2cc1b3;var _0x4716b0;return(_0x4716b0=this['_configService'][_0x533304(0x42f)](Ji))!=null?_0x4716b0:Zi;}[_0x2cc1b3(0x4fa)](_0x291f87,_0x23c4b8){const _0x400608=_0x2cc1b3;return _0x291f87[_0x400608(0x34b)](_0x400608(0x1d8),_0x23c4b8);}[_0x2cc1b3(0x44d)](){const _0x14d01f=_0x2cc1b3;this[_0x14d01f(0x26b)]-=0x1,this['_change$'][_0x14d01f(0x1a2)](this[_0x14d01f(0x26b)]);}},exports[_0x2cc1b3(0x355)]=Yi([at(0x0,o[_0x2cc1b3(0x333)](U['HTTPService'])),at(0x1,o['IConfigService'])],exports[_0x2cc1b3(0x355)]);var Qi=Object[_0x2cc1b3(0x1b2)],en=Object['getOwnPropertyDescriptor'],tn=(_0x29fbec,_0xad87af,_0x27e97b,_0x53d4b9)=>{const _0x9788cc=_0x2cc1b3;for(var _0x54b468=_0x53d4b9>0x1?void 0x0:_0x53d4b9?en(_0xad87af,_0x27e97b):_0xad87af,_0x169135=_0x29fbec[_0x9788cc(0x209)]-0x1,_0x177a31;_0x169135>=0x0;_0x169135--)(_0x177a31=_0x29fbec[_0x169135])&&(_0x54b468=(_0x53d4b9?_0x177a31(_0xad87af,_0x27e97b,_0x54b468):_0x177a31(_0x54b468))||_0x54b468);return _0x53d4b9&&_0x54b468&&Qi(_0xad87af,_0x27e97b,_0x54b468),_0x54b468;},ae=(_0x153306,_0x18a906)=>(_0x342c0a,_0x4bb392)=>_0x18a906(_0x342c0a,_0x4bb392,_0x153306);let Se=class extends o['RxDisposable']{constructor(_0x409471,_0x5e8aec,_0x3e8afb,_0x7f65f2,_0x131d95){const _0x5d29d8=_0x2cc1b3;super(),this[_0x5d29d8(0x3fe)]=_0x409471,this[_0x5d29d8(0x46f)]=_0x5e8aec,this['_permissionService']=_0x3e8afb,this[_0x5d29d8(0x1ed)]=_0x7f65f2,this[_0x5d29d8(0x33c)]=_0x131d95,this[_0x5d29d8(0x2e7)](),this[_0x5d29d8(0x34a)]();}[_0x2cc1b3(0x34a)](){const _0x4492b6=_0x2cc1b3,_0x52c181=async _0x304710=>{const _0x3403d1=_0x4b8d;(await this[_0x3403d1(0x1ed)][_0x3403d1(0x33b)](_0x304710))[_0x3403d1(0x4cf)][_0x3403d1(0x478)](C['filter'](_0x521eee=>_0x521eee[_0x3403d1(0x266)]===_['CollaborationEvent'][_0x3403d1(0x3c3)]),C[_0x3403d1(0x1ef)](this['dispose$']))[_0x3403d1(0x4c8)](_0xaa0463=>{const _0x211081=_0x3403d1,_0x5708cd=_0xaa0463,{reason:_0x178f50}=_0x5708cd[_0x211081(0x1c0)];this[_0x211081(0x3fe)][_0x211081(0x3ba)](L['IMessageService'])[_0x211081(0x4f2)]({'type':Q[_0x211081(0x329)][_0x211081(0x2f9)],'content':this[_0x211081(0x33c)]['t']('collaboration.closeRoom')+'('+_0x178f50+')'}),this[_0x211081(0x1fd)][_0x211081(0x1e8)](new p['WorkbookEditablePermission'](_0x304710)['id'],!0x1),this[_0x211081(0x1ed)][_0x211081(0x410)](_0x304710);});};v[_0x4492b6(0x3e0)](this[_0x4492b6(0x46f)][_0x4492b6(0x25b)](o[_0x4492b6(0x271)][_0x4492b6(0x3a1)]),this[_0x4492b6(0x46f)][_0x4492b6(0x25b)](o[_0x4492b6(0x271)][_0x4492b6(0x40b)]))[_0x4492b6(0x478)](C[_0x4492b6(0x2a8)](_0xfcb6cc=>_0xfcb6cc[_0x4492b6(0x15a)]()),C[_0x4492b6(0x277)](_0x3e2fd9=>!o['isInternalEditorID'](_0x3e2fd9)),C[_0x4492b6(0x1ef)](this[_0x4492b6(0x23e)]))[_0x4492b6(0x4c8)](_0x32558c=>{_0x52c181(_0x32558c);});}['_initUnitPermissionChange'](){const _0x190417=_0x2cc1b3,_0x52474f=async _0x377f9c=>{const _0x5b9682=_0x4b8d;(await this['_collaborationSessionService'][_0x5b9682(0x33b)](_0x377f9c))[_0x5b9682(0x4cf)][_0x5b9682(0x478)](C[_0x5b9682(0x277)](_0x4c6ea5=>_0x4c6ea5[_0x5b9682(0x266)]===_[_0x5b9682(0x173)][_0x5b9682(0x4b8)]),C[_0x5b9682(0x1ef)](this['dispose$']))[_0x5b9682(0x4c8)](_0x1e5897=>{const _0x451489=_0x5b9682,_0x49002e=_0x1e5897,{objectId:_0x224954}=_0x49002e[_0x451489(0x1c0)];_0x224954===_0x377f9c&&this['_injector'][_0x451489(0x3ba)](J[_0x451489(0x495)])[_0x451489(0x22b)](_0x377f9c);});};v['merge'](this['_univerInstanceService'][_0x190417(0x25b)](o['UniverInstanceType']['UNIVER_SHEET']),this[_0x190417(0x46f)]['getTypeOfUnitAdded$'](o[_0x190417(0x271)][_0x190417(0x40b)]))[_0x190417(0x478)](C[_0x190417(0x2a8)](_0x18ba68=>_0x18ba68[_0x190417(0x15a)]()),C[_0x190417(0x277)](_0x2dc22d=>!o[_0x190417(0x322)](_0x2dc22d)),C[_0x190417(0x1ef)](this['dispose$']))[_0x190417(0x4c8)](_0x40c657=>{_0x52474f(_0x40c657);});}};Se=tn([o[_0x2cc1b3(0x303)](o[_0x2cc1b3(0x4d9)]['Starting'],Se),ae(0x0,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2b3)])),ae(0x1,o[_0x2cc1b3(0x298)]),ae(0x2,o[_0x2cc1b3(0x42e)]),ae(0x3,o['Inject'](exports[_0x2cc1b3(0x14e)])),ae(0x4,o[_0x2cc1b3(0x333)](o[_0x2cc1b3(0x2f6)]))],Se);var wt=Object[_0x2cc1b3(0x1b2)],sn=Object['getOwnPropertyDescriptor'],nn=(_0x3d5987,_0x485303,_0x462dc5)=>_0x485303 in _0x3d5987?wt(_0x3d5987,_0x485303,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x462dc5}):_0x3d5987[_0x485303]=_0x462dc5,rn=(_0x574b38,_0x785499,_0x5c9a8a,_0x3b467f)=>{const _0x557e72=_0x2cc1b3;for(var _0x113b52=_0x3b467f>0x1?void 0x0:_0x3b467f?sn(_0x785499,_0x5c9a8a):_0x785499,_0xd3d262=_0x574b38[_0x557e72(0x209)]-0x1,_0x402b30;_0xd3d262>=0x0;_0xd3d262--)(_0x402b30=_0x574b38[_0xd3d262])&&(_0x113b52=(_0x3b467f?_0x402b30(_0x785499,_0x5c9a8a,_0x113b52):_0x402b30(_0x113b52))||_0x113b52);return _0x3b467f&&_0x113b52&&wt(_0x785499,_0x5c9a8a,_0x113b52),_0x113b52;},we=(_0x1ce412,_0x33fb0a)=>(_0x258ee9,_0x3cdb30)=>_0x33fb0a(_0x258ee9,_0x3cdb30,_0x1ce412),on=(_0x4ae002,_0x3f54bc,_0x2d6bb3)=>nn(_0x4ae002,_0x3f54bc+'',_0x2d6bb3);const an=_0x2cc1b3(0x4f3);exports[_0x2cc1b3(0x35f)]=class extends o['Plugin']{constructor(_0x5f1624,_0x13aa7e,_0xc04934,_0xed506f){const _0x2facf4=_0x2cc1b3;super(),this[_0x2facf4(0x51a)]=_0x5f1624,this[_0x2facf4(0x402)]=_0x13aa7e,this['_renderManagerService']=_0xc04934,this[_0x2facf4(0x3fe)]=_0xed506f;}[_0x2cc1b3(0x281)](_0x394022){const _0x553443=_0x2cc1b3;this[_0x553443(0x3d1)](_0x394022);}['onRendered'](){const _0x5bded4=_0x2cc1b3;this[_0x5bded4(0x4e7)]();}[_0x2cc1b3(0x3d1)](_0x33ab47){const _0x4c85e4=_0x2cc1b3;var _0x11f60e,_0x34cdd1,_0x48409f,_0x237452;_0x33ab47[_0x4c85e4(0x2ae)](o['IUndoRedoService'])&&this[_0x4c85e4(0x402)][_0x4c85e4(0x307)]('[UniverCollaborationClientPlugin]',_0x4c85e4(0x334));let _0x10825d=[[o[_0x4c85e4(0x4a8)],{'useClass':je}],[exports[_0x4c85e4(0x14e)]],[Ve],[U['HTTPService']],[Ge,{'useClass':Ut}],[Y],[exports[_0x4c85e4(0x15f)]],[U['WebSocketService']],[ge],[me],[ve],[Fe],[Ie],[Be],[Se],[ke,{'useClass':(_0x34cdd1=(_0x11f60e=this[_0x4c85e4(0x51a)])==null?void 0x0:_0x11f60e['socketService'])!=null?_0x34cdd1:exports['CollaborationSocketService']}],[U[_0x4c85e4(0x4df)],{'useClass':U[_0x4c85e4(0x363)]}],[o[_0x4c85e4(0x3ef)],{'useClass':exports[_0x4c85e4(0x4b5)]}],[o[_0x4c85e4(0x34e)],{'useClass':exports['AuthzIoHttpService']}],[A['IImageIoService'],{'useClass':exports[_0x4c85e4(0x355)]}],[exports[_0x4c85e4(0x305)]],[exports['DataLoaderController']],[exports['DesktopCollaborationStatusDisplayController']],[ue],[Z]];(_0x48409f=this[_0x4c85e4(0x51a)])!=null&&_0x48409f['enableSingleActiveInstanceLock']&&_0x10825d['push']([pe,{'useClass':_s}]),_0x10825d=o[_0x4c85e4(0x4f7)](_0x10825d,(_0x237452=this[_0x4c85e4(0x51a)])==null?void 0x0:_0x237452[_0x4c85e4(0x3d8)]),_0x10825d[_0x4c85e4(0x34c)](_0x3df8a7=>_0x33ab47[_0x4c85e4(0x506)](_0x3df8a7)),this['_initModules']();}[_0x2cc1b3(0x4e7)](){const _0x2dd4e0=_0x2cc1b3;this[_0x2dd4e0(0x4be)](this[_0x2dd4e0(0x4e5)]['registerRenderModule'](o[_0x2dd4e0(0x271)][_0x2dd4e0(0x40b)],[de])),this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](o['UniverInstanceType'][_0x2dd4e0(0x3a1)],[Ae]));}[_0x2cc1b3(0x44f)](){const _0x2fbf63=_0x2cc1b3;var _0x324d7d,_0x1a1093;this['_injector'][_0x2fbf63(0x3ba)](U[_0x2fbf63(0x1da)])[_0x2fbf63(0x4bc)]({'priority':0x14,'interceptor':U['ThresholdInterceptorFactory']({'maxParallel':0x6})}),(_0x324d7d=this['_config'])!=null&&_0x324d7d['enableOfflineEditing']||this[_0x2fbf63(0x3fe)]['get'](exports[_0x2fbf63(0x15f)])[_0x2fbf63(0x36d)](),(_0x1a1093=this[_0x2fbf63(0x51a)])!=null&&_0x1a1093[_0x2fbf63(0x43c)]&&this[_0x2fbf63(0x3fe)][_0x2fbf63(0x3ba)](Ie);}},on(exports[_0x2cc1b3(0x35f)],_0x2cc1b3(0x50f),an),exports[_0x2cc1b3(0x35f)]=rn([o[_0x2cc1b3(0x229)](_['UniverCollaborationPlugin']),we(0x1,o['ILogService']),we(0x2,b[_0x2cc1b3(0x29e)]),we(0x3,o[_0x2cc1b3(0x333)](o['Injector']))],exports[_0x2cc1b3(0x35f)]),exports[_0x2cc1b3(0x208)]=Mt,exports[_0x2cc1b3(0x16e)]=vt,exports[_0x2cc1b3(0x22a)]=_t,exports[_0x2cc1b3(0x157)]=D,exports[_0x2cc1b3(0x376)]=Pt,exports[_0x2cc1b3(0x3db)]=Be,exports[_0x2cc1b3(0x487)]=ut,exports[_0x2cc1b3(0x19d)]=xe,exports[_0x2cc1b3(0x378)]=ke,exports[_0x2cc1b3(0x3c7)]=Ge,exports['LOCAL_CACHE_INTERVAL_KEY']=St,exports[_0x2cc1b3(0x46b)]=mt,exports[_0x2cc1b3(0x1be)]=ht,exports['SNAPSHOT_SERVER_URL_KEY']=ct,exports['SNAPSHOT_URL_KEY']=lt,exports[_0x2cc1b3(0x1a7)]=G,exports['SheetCollabCursorShape']=Tt,exports[_0x2cc1b3(0x14d)]=Ut,exports[_0x2cc1b3(0x2f4)]=ft,exports[_0x2cc1b3(0x236)]=It;