@univerjs-pro/collaboration-client 0.2.15 → 0.3.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x34c4(){const _0x30feab=['CollaborationEntity','function','row','_snapshotServerService','post','registerBeforeClose','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','CommentService','submit\x20changeset\x20error!','collabCursorState$','SEND_CHANGESET_TIMEOUT_KEY','getParam','_acknowledgedAwaitingChangeset','_substituteRedoStack','getColor','_setupBeforeClosingHandler','endRow','addObjects','createCollaborator','downloadEndpointUrl','c2Prime','icon','@univerjs/sheets-ui','permission.content','IMessageService','_getSnapshotAPIPrefix','_entities','initWorkbookPermissionChange','_change$','distinctUntilChanged','UniverInstanceType','ITransformService','SNAPSHOT_SERVER_URL_KEY','onTransformIME','useObservable','addObject','_anchorDot','_transitionLocked','ILogService','_showConflictNotification','ws://127.0.0.1:8000/universer-api/comb/connect','Undefined','backgroundColor','apply','_cursorInfo$','session.connection-failed','_substituteUndoStack','HEADER_MENU','cursorInfo$','\x20in\x20_schedule.','show','CollaborationSession','findNodePositionByCharIndex','DeleteRangeMoveUpCommandId','getCellPositionByOffset','_unitID','_permissionService','RevisionService','/universer-api/file/{fileID}/sign-url','batchAllowed','defs','IConfigService','_members','ICollaborationSocketService','IRenderManagerService','saveOfflineData','Unknown\x20user','/universer-api/authz','_configService','history','isArray','onRemoteChangeset','updateMember','&assign=','Inject','_updateCollabCursors','DataLoaderController','IUndoRedoService','_getLoginPath','textRanges','_clearTimeoutTimer','removeMember','_loadDoc','eventID','handleInsertCol','includes','subUnitId','_undoStacks','toString','HEARTBEAT_TIMEOUT_KEY','_syncEditingCollabCursorService','BehaviorSubject','onStateChange','DesktopCollaborationStatusDisplayController','Subject','_scheduleHeartbeat','transformByState','Rectangle','column','deserializeToCombResponse','ISnapshotServerService','registerRenderModule','getUnitOnRev','failed\x20to\x20apply\x20missed\x20changesets!','setCurrentUser','Module','div','method','split','4910801DxafBD','_updateLocalCache','_rescheduleHeartbeat','&to=','AuthzIoHttpService','getActiveSheet','transformUndoRedo','[CollaborationEntity]','UNIVER_SHEET','_replaceFileID','_clearUndo','activeSheet$','_initStatusComponent','INVALID_ARGUMENT','listCollaborators','open$','add','requireSession','disableLocalCache','_updateStatus','headers','patch','React','_registerDependencies','_hideTimer','popstate','_awaitingChangeset','awaiting','enableAuthServer','_applyRemoteChangeset','Rect','_docTransformIMECacheService','withCredentials','APPLY_NON_SEQUENTIAL_REVISION','string','/rev/','removeEventListener','@univerjs/docs-ui','getConfig','Starting','setActiveRange','setItem','RETRY_CONNECTING_INTERVAL_KEY','CONFLICT','getRelativeToViewportCoord','call','objectActions','slice','Injector','_socket','onlyLocal','clear','/allowed','delay','XHRHTTPImplementation','RxDisposable','ALREADY_EXISTS','getFocusedUnit','HELLO','CONNECTOR_DATA_TOO_LARGE','?url=','NOT_FOUND','_exhaustRemoteChangesetQueue','session.room-full','COLLAB_SUBMIT_CHANGESET_URL_KEY','encodeURIComponent','\x20to\x20','measureText','_hover','actions','_revisionService','_getAnchorBounding','1828800qlrJIQ','_shapes','[OfflineState]:\x20received\x20changeset.','@univerjs/design','concatMap','MSG_FOR_ERROR','synced','online','getDocRanges','storage','InsertRangeMoveRightCommandId','UniverEngineFormula','_instanceService','objectType','[SyncedState]:\x20received\x20rejection.','_startCollaboration','getCurrentRevOfUnit','PENDING','RefRangeService','_send','@univerjs/ui','newValue','map','_registerRenderDependencies','getItem','incrementRevOfUnit','_getSignURL','_cachedData','[OfflineState]:\x20received\x20rejection.','handleIRemoveRow','_commentUpdate$','_updateURLWithCurrentState','_initMergeInterceptor','transformChangesets','_localCacheService','_joinRoom','_replayCachedMutations','forwardRef','JOINING','setConfig','/universer-api/comb','getSheetId','_type','BASE64','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_singleActiveUnitService','_hovered','@univerjs-pro/collaboration','change$','_disableEditing','subscribe','getCollabEntity','_setupSubUnitSync','4mWswUo','moveTo','[UniverCollaborationClientPlugin]','_transformIMECache','transformMutationsWithChangeset','_colorAssignService','getActiveRange','[CollaborationSessionService]','defIds','@univerjs/drawing','session.collaboration-timeout','className','_removeCollabCursors','_onRemoteChangeset','setAlpha','symbol','_uiPartsService','YUUMI_URL_COL_OUT_OF_RANGE','COLLAB_WEB_SOCKET_URL','saveImage','handleDeleteRangeMoveUp','_scheduleTimestamp','_commentService','_selfUnitIDs','WebSocketService','useRef','c1Prime','_httpService','fetch_missing','#FFF','COMPRESS_MUTATION_SEND','addImageSourceCache','_handleHeartbeatEvent','SetWorksheetActivateCommand','forEach','override','625647ABVfjY','COMPRESS_MUTATION_APPLY','createElement','close$','_onCursorDelete','some','isTransformMutationFailure','_drawRectRange','UNIVER_SLIDE','toggleOffline','closePath','_incrementRevisionNumber','originalMeta','getUnhiddenWorksheets','joinRsp','conflict.content','CHANGESET_REJ','OTHER_CLIENTS_EDITING','_onJoinRoomEvent','_session','_getUndoStack','_eventUnsubscribe','updatePermissionObjEvent','[DataLoaderController]','_textBubble','parse','onStarting','black','_timeoutTimer','message$','{fileID}','NO_OTHER_CLIENTS_EDITING','univer-online-status-title','_initStatusListener','_sendHeartbeat','_unitOnClients','status','Tools','_waitCount','onlineStatusTitle','getCurrent','Plugin','SheetCollaborationEntity','defineProperty','SNAPSHOT_HAS_BEEN_REMOVED','members','PERMISSION_DENIED','contains','range','ACTIVE_UNIT_EVENT_CHANNEL','Optional','roomInfos','M0\x200H16V16H0z','hide','_handleHover','translate(.97)','svg','replaceState','reject','_init','getOwnPropertySymbols','collabStatus.syncing','_onConnectionOpen','_candidateSocket','merge','getSheetBySheetId','[PendingState]:\x20unhandled\x20univer\x20type:\x20','disposeWithMe','LIVESHARE_TERMINATE','univer-online','_id','_syncEditingCollabCursor','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','entries','_removeClearOtherTimer','_transformPreviousActiveRange','fetching\x20missing\x20changesets\x20from\x20','LIVESHARE_REQUEST_HOST','setUndoRedoMutationParamsCache','SheetsSelectionsService','_transformService','_createSocket','ColorKit','colorChannel1','arc','MessageType','_decreaseWaiting','isPermissionRej','RECV','collaMsg','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','key','IUIPartsService','data','COLLAB_WEB_SOCKET_URL_KEY','onlineStatusIcon','assignAColorForMemberID','searchParams','_scheduleClearOtherTimer','getWorkbookSelections','@univerjs/network','UniverUi','LocalCacheService','addEventListener','length','_getDownloadEndpointURL','unitID','_schedule','find','UniverSheetsUi','_online','AWAITING_WITH_PENDING','_getUploadFileURL','resourceIDs','ImageIoService','baseRev','Warning','fetchMiss','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','m2Prime','CollaborationStatusDisplay','collaboratorID','_ws','startsWith','lineTo','currentSkeleton$','propertyIsEnumerable','create','Ready','verdancy600','color','IPermissionService','RETRY_CONNECTING_INTERVAL','loadOfflineData','mapDocumentTypeToUniverType','_onConflict','[CollaborationUndoRedoService]','_loadSheet','Steady','currentColor','UNDEFINED','_transformRemoteChangesetByIMECache','624400ibyXjZ','commentUpdateEvent','transform','_collabCursorController','LOCAL_CACHE_INTERVAL','[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.','revision','_scheduleCollaborationTimeoutTimer','beginPath','_onUserLeave','uni.network.url-service','extend','sessionStatus','_snapshotService','with','_collaborationSessionService','CollaborationController','json','compose','UPDATE_PERMISSION_OBJ','_color','clearTimeout','_initCommandExecutedListener','labelPosition','isTransformChangesetsSuccess','onMissedChangesetFetched','tag','UniverCollaborationClient','_lastPointer','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','ITelemetryService','getCollabCursors$','from','_sendingTimer','updateCursorEvent','unknown','SUBMIT_CHANGESET','onMissingChangesets','exhaustSavingTask','isTransformMutationsWithChangesetFailure','objectID','resolve','Disposable','getMemberID','fetchThroughInterceptors','NOT_COLLAB','unsubscribe','_unitStatus','enableSingleActiveInstanceLock','collaboration-session-retry','pluginName','_docSkeletonManagerService','setParam','_renderManagerService','IContextService','_getCtorByUniverType','SHOULD_CLOSE_CONN','LEAVE','exports','hasOwnProperty','_cursors','CollaborationSessionService','...','AUTHZ_URL_KEY','_tryEnsureSocket','transformIMECache','size','duration','save','debounce','workbook','fillStyle','children','CommandType','interceptor','UniverNetwork','drawWith','getUnit','/universer-api/snapshot/','getTime','permissionRejEvent','EmptyMutation','collab-text-range-','body','_onRemoteRejected','has','getVpScrollXYInfoByPosToVp','type','updatePermissionPoint','collabStatus.synced','_sendHeartbeatTimer','ThemeService','filter','_throwTelemetryCollaborationNewChangeset','MUTATION','toDisposable','handleInsertRow','_userManagerService','IDLE','_imageSourceCache','UNKNOWN_CMD','_entityInit$','focused$','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','FileId','width','toggleOnline','0\x200\x2017\x2016','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','LICENSE_MAX_UNITS_EXCEEDED','_onConnectionFailed','LOCAL_CACHE_INTERVAL_KEY','substring','red300','180yKRaYN','getAncestorScale','error$','permission.title','FETCH_MISS','image/gif','doc.mutation.rich-text-editing','SheetSkeletonManagerService','offline','setShapeProps','none','parseProtocolChangeset','_listenToOnlineEvent','encode','_transformUndoRedoStack','onload','getMember','_clearHeartbeatTimer','pauseCollaboration','CollaborationEvent','_transformStack','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','shareReplay','InsertRangeMoveDownCommandId','roomMembers$','fetchMissingChangesets','COLORS','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','url(#off-line-single_clip0_910_343)','unshift','_createInitialStateImpl','1783602yAoRNI','_toggleOnline','result','get','responseType','IRemoteInstanceService','_getRedoStack','MoveRangeCommandId','fill','_name','disposeUnit','_draw','_onMessage','USERS_ENTER','subscribeEvent','_context','allowed','INGEST','getUnitId','delete','@univerjs/core','bottom','_univerInstanceService','RegularPolygon','isInternalEditorID','image/jpg','_localStorageService','IURLService','_cursor','handleInsertRangeMoveRight','_onOffline','getMergeData','onMouseMove','@univerjs/sheets','UniverEngineRender','syncEditingCollabCursor','onRemoteAck','JOIN','BuiltInUIPart','startColumn','_assignedColors','onCommentUpdate','getCurrentUser','idSuffix','random','localeService','UniverSheets','_lockTransition','image/jpeg','fillText','_cursorShapes','lodash/debounce','collaboration.single-unit.warning','PERMISSION_REJ','_labelPosition','indexOf','setWaitCount','COMPLETION_FINISHED','_ensureSubject','clsx','url','getCurrentSelections','rev','getSkeleton','memberID','off-line-single_clip0_910_343','UNKNOWN_CODE','prototype','isActive','_telemetryService','POST','endColumn','LifecycleStages','put','action','useDependency','registerRefRange','getSheetObject','fromEvent','/unit/','CHANGESET_ACK','getOwnPropertyDescriptor','onSendChangeset','combineLatest','set','whenReady','OFFLINE','updateOfflineData','_initResize','getTypeOfUnitDisposed$','useCallback','getResourcesRequest','subunit','_getAPIPrefixPath','NodePositionConvertToRectRange','UserManagerService','_updateSubUnitFromURLParams','restore','mergeOverrideWithDependencies','resend','_commandService','dispose','onPointerMove$','DocSelectionManagerService','serializeRangeWithSheet','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','_range','UNRECOGNIZED','_injector','Vector2','executeCommand','refreshPermission','PSEUDO_FETCH_MISSING_RESULT','transformRemoteChangeset','getTypeOfUnitAdded$','_messageService','pushState','text','serializeCombRequest','_executeRemoteChangeset','clearInterval','attrs','LICENSE_EXPORT_SIZE_EXCEEDED','getImage','height','getRangePointData','UPDATE_CURSOR','UnitEmbedded','href','min','IUniverInstanceService','4762ZHdRpS','FETCH_MISSING','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','univer-offline','_shouldReportTelemetry','Workbook','loadDoc','_status$','_handleJoinEvent','_drawTextRange','deepClone','list','HEARTBEAT_INTERVAL','createInstance','_HTTPService','object','_startTelemetryCollaborationNewChangeset','RETRY_CONNECTING_MAX_COUNT_KEY','0\x200\x2016\x2016','_collaborationPaused','/object','target','catch','_initUnitPermissionChange','max','_createInitialState','[CollaborationSessionService]:\x20socket\x20error','_roomMembers','_undoRedoService','ILocalStorageService','AWAITING','connectInjector','UNIVER_DOC','_collaborationController','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','OnLifecycle','/object/','getImageSourceCache','/universer-api/oidc/authpage','UniverDesign','setTimeout','ImageUploadStatusType','fillRule','[CollaborationState]:\x20apply\x20error!','connection\x20error','xlink:href','1456065SzaqFi','socket\x20close','IAuthzIoService','[PendingState]:\x20received\x20acknowledgement.','textEncoder','_toggleOffline','RETRY_CONNECTING_MAX_COUNT','amd','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','takeUntil','_startDocCollabCursor','onCommandExecuted','onPointerEnter$','_state$','_getMergeRange','roles','_telemetryInfo','onTransformSelections','sessionStatus$','url(#$1','triggerDblclick','location','_clearScheduledTask','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','CollaborationSocketService','debug','_sheetSkeletonManagerService','SnapshotServerOverHTTPService','unitId','isValidRectRange','LOGIN_URL_KEY','gold400','session','UniverCollaborationClientPlugin','HTTPRequest','event$','currentTheme$','collabStatus.notCollab','concat','/-/object/-/batch_allowed','_onRecvEvent','cursorInfo','complete','_isPermissionRej','state$','@univerjs/rpc','TRANSFORM_CHANGE_OBSERVABLE_TYPE','collabStatus.conflict','SetDocZoomRatioOperation','getUndoRedoMutationParamsCache','LIVESHARE_OPERATION','SYNCED','_waitForHeartbeatResponse','fromCollab','closeSession','registerComponent','fromEventSubject','getInterceptPoints','248plOjfB','HttpImport','onTransformRemoteChangesetByIMECache','roomMembers','_transformUndoredo','UniverDrawing','UNIVER_COLLABORATION_CLIENT_PLUGIN','auth.needGotoLoginAlert','_saveTaskMap','YUUMI_UNABLE_LOAD_URL','collaboration_new_changeset','joinEvent','univer-online-status-icon','TEXT_RANGE_LAYER_INDEX','socket\x20open.','_http','_onCursorUpdate','_clearOtherTimers','_state','round','onSyncEditingCollabCursor','createIdentifier','HTTPService','editing\x20status\x20changed\x20to','_tryReconnect','[SyncedState]:\x20received\x20acknowledgement.','rxjs','@univerjs/telemetry','RichTextEditingMutation','/-/object/list','send','now','LIVESHARE_FETCH_OPERATIONS','SnapshotService','_docStateChangeManagerService','/universer-api/snapshot','APPLY_REJECT','_remoteChangesetQueue','state','LIVESHARE_NEW_HOST','not_collab','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','unit-cache-','_startSheetCollabCursor','univer-pro.collaboration-client-socket-service','_pendingMutations','_transformSelections','createSocket','CHANGESET_REVISION_CONFILICT','_collabSessionService','use','_render','48HXnYae','getCurrentUnitForType','DocStateChangeManagerService','handleDeleteRangeMoveLeft','liveShareNewHost','NEW_CHANGESETS','displayName','m1Prime','Tooltip','conflict.title','CompressMutationService','_refRangeService','_clearRedo','_socket$','_retryCount','generateRandomId','debounceTime','WebURLService','_onFetchMissResult','evenodd','reverse','_docSyncEditingCollabCursorService','transformStack\x20failed!','_scene','_handleLeaveEvent','onRemoteRej','pipe','error','_compressMutationService','path','onPointerLeave$','TOO_MANY_REQUESTS','#fff','asObservable','DocIMEInputManagerService','session.will-retry','values','SetTextSelectionsOperation','FAIL','_roomMembers$','react','ranges','cmd','SessionStatus','VIEW_MAIN','RemoveRowCommandId','MergeInterceptorFactory','JSONX','_socketMessageSubscription','every','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','SNAPSHOT_URL_KEY','_updateState','_document','_drawAnchor','on-line-single_clip0_910_349','getUnitStatus$','editingUnit','_handleEvent','appendMutation','IHTTPImplementation','_refreshCollabCursors','_queuedRemoteChangesets','close','\x0aCurrent:\x20','COMMENT_UPDATE','url(#on-line-single_clip0_910_349)','transformSelections','_docTransformSelectionsService','@univerjs/engine-formula','1em','setInterval','_getScale','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_urlService','makeDirty','Error','_getCurrentRevision','NodePositionConvertToCursor','_colorIndex','_themeService','UNIVER_UNKNOWN','ERROR_IMAGE','_getSheetObject','urlChange$','DocCollaborationEntity','InsertRowCommandId','_socketReady','getOffsetConfig','liveShareOperation','b64DecodeUnicode','transformMutation','awaiting_with_pending','purple300','_onRefRangeChange','registerHTTPInterceptor','dispose$','@univerjs/docs','top','_checkMissing','toRgbString','HttpExport','_sessions','pending','mutations','push','SetSelectionsOperation','sheetId','then','_backgroundColor','removeParam','snapshot','collabStatus.offline','ICommandService','status$','isTransformMutationsWithChangesetSuccess','selection','userID','YUUMI_RATE_OVER_LIMIT','VIEWPORT_KEY','_retryConnectingTimer','_getAPIPrefix','_event$','_initCloseConn','_clearCollaborationTimeoutTimer','/collaborator','newCsEvent','collaboration.closeRoom','_memberService','IBeforeCloseService','_collabCursorState$','_logService','USERS_LEAVE','stringify','getCoordByCell','IImageIoService','_notificationService','reconnect','requestParams','UniverDocsUi','_onCombEvent','_anchor','_beforeCloseService','getRoom','current','_sessionStatus$','_disabled','enableLocalCache','replace','next','_collaborationTimeoutTimer','selections','params','YUUMI_SUBSCRIPTION_NOT_FOUND','deserializeRangeWithSheet','SNAPSHOT_INVALID_SNAPSHOT','_config','_scheduleSaving','skeleton','_heartbeatTimer','stopTime','awaitingChangeset','clipPath','getRenderById','unit','ImageSourceType','WorkbookEditablePermission','startRow','_getSendChangesetTimeout','conflict','_clearLocalCache','UniverCollaboration','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_unlockTransition','image/bmp','code','Shape','routeKey','isEditing','HEARTBEAT_INTERVAL_KEY','getValue','_onLocalMutation','socket$','_getSaveTimeout','take','DocSkeletonManagerService','HEARTBEAT','changesets','UNIVER_PROJECT','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_createHandler','_localeService','_socketService','_updateLocalCursor','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_onUserJoin','_saveCache','resize','assign','sheetID','engine','switchMap','APPLY_PERMISSION_DENIED','_handler','_listenToOfflineEvent','SEND_CHANGESET_TIMEOUT','_stopTelemetryCollaborationNewChangeset','handleInsertRangeMoveDown','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','EffectRefRangId','ONLINE','univerjs-icon\x20univerjs-icon-','UnitSnapshot','_initModules','leaveEvent','/universer-api/stream/file/upload','\x0aAfter:\x20','csAckEvent','_fetchMissChangesets','update','\x20-\x20','LocaleService','name','OnLineSingle','init'];_0x34c4=function(){return _0x30feab;};return _0x34c4();}function _0x437d(_0x114ab1,_0x1214e1){const _0x34c40f=_0x34c4();return _0x437d=function(_0x437d32,_0x30651c){_0x437d32=_0x437d32-0x19c;let _0x16a6f3=_0x34c40f[_0x437d32];return _0x16a6f3;},_0x437d(_0x114ab1,_0x1214e1);}(function(_0x5f8779,_0x553f9c){const _0x20015d=_0x437d,_0x36530e=_0x5f8779();while(!![]){try{const _0x7db874=-parseInt(_0x20015d(0x409))/0x1*(-parseInt(_0x20015d(0x3a1))/0x2)+-parseInt(_0x20015d(0x31e))/0x3*(-parseInt(_0x20015d(0x1da))/0x4)+parseInt(_0x20015d(0x28c))/0x5*(parseInt(_0x20015d(0x43d))/0x6)+-parseInt(_0x20015d(0x58b))/0x7+parseInt(_0x20015d(0x1a5))/0x8+-parseInt(_0x20015d(0x3cf))/0x9+parseInt(_0x20015d(0x2ff))/0xa*(-parseInt(_0x20015d(0x1fe))/0xb);if(_0x7db874===_0x553f9c)break;else _0x36530e['push'](_0x36530e['shift']());}catch(_0x3110ec){_0x36530e['push'](_0x36530e['shift']());}}}(_0x34c4,0x804ec),function(_0x284fd8,_0x14dde8){const _0x4f34e2=_0x437d;typeof exports==_0x4f34e2(0x3b0)&&typeof module<'u'?_0x14dde8(exports,require(_0x4f34e2(0x332)),require(_0x4f34e2(0x423)),require('rxjs/operators'),require(_0x4f34e2(0x1a8)),require('@univerjs/ui'),require('@univerjs/network'),require('@univerjs-pro/collaboration'),require(_0x4f34e2(0x424)),require(_0x4f34e2(0x49e)),require(_0x4f34e2(0x5b0)),require(_0x4f34e2(0x33f)),require('@univerjs/engine-render'),require('@univerjs/drawing'),require(_0x4f34e2(0x482)),require(_0x4f34e2(0x351)),require(_0x4f34e2(0x534)),require(_0x4f34e2(0x465)),require(_0x4f34e2(0x359)),require(_0x4f34e2(0x3fc))):typeof define==_0x4f34e2(0x51f)&&define[_0x4f34e2(0x3d6)]?define([_0x4f34e2(0x2c7),_0x4f34e2(0x332),'rxjs','rxjs/operators','@univerjs/design',_0x4f34e2(0x1b9),_0x4f34e2(0x262),_0x4f34e2(0x1d4),_0x4f34e2(0x424),_0x4f34e2(0x49e),'@univerjs/docs-ui',_0x4f34e2(0x33f),'@univerjs/engine-render',_0x4f34e2(0x1e3),_0x4f34e2(0x482),_0x4f34e2(0x351),_0x4f34e2(0x534),'react',_0x4f34e2(0x359),_0x4f34e2(0x3fc)],_0x14dde8):(_0x284fd8=typeof globalThis<'u'?globalThis:_0x284fd8||self,_0x14dde8(_0x284fd8[_0x4f34e2(0x2a7)]={},_0x284fd8['UniverCore'],_0x284fd8[_0x4f34e2(0x423)],_0x284fd8[_0x4f34e2(0x423)]['operators'],_0x284fd8[_0x4f34e2(0x3c8)],_0x284fd8[_0x4f34e2(0x263)],_0x284fd8[_0x4f34e2(0x2d8)],_0x284fd8[_0x4f34e2(0x4e8)],_0x284fd8['UniverTelemetry'],_0x284fd8['UniverDocs'],_0x284fd8[_0x4f34e2(0x4c8)],_0x284fd8[_0x4f34e2(0x34c)],_0x284fd8[_0x4f34e2(0x340)],_0x284fd8[_0x4f34e2(0x40e)],_0x284fd8[_0x4f34e2(0x1b0)],_0x284fd8['lodash'][_0x4f34e2(0x2d2)],_0x284fd8[_0x4f34e2(0x26b)],_0x284fd8[_0x4f34e2(0x5a1)],_0x284fd8[_0x4f34e2(0x359)],_0x284fd8['UniverRpc']));}(this,function(_0x19e906,_0x22bd76,_0xb468a3,_0x5ac862,_0x5562a6,_0x1b23d2,_0x9bd9f,_0x2cb6ec,_0x5df134,_0x369ae4,_0x3efaf4,_0x38d7d8,_0x3ab0d3,_0x1fbc38,_0x505ad4,_0x113112,_0x945537,_0x2ae23a,_0x1712cf,_0x4dbbff){'use strict';const _0x464faf=_0x437d;var _0x3c27a5=Object[_0x464faf(0x229)],_0x3d975b=(_0x5b2e99,_0x366847,_0x107c41)=>_0x366847 in _0x5b2e99?_0x3c27a5(_0x5b2e99,_0x366847,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x107c41}):_0x5b2e99[_0x366847]=_0x107c41,_0x41b507=(_0xe09e82,_0x1800f4,_0x5c71f2)=>_0x3d975b(_0xe09e82,typeof _0x1800f4!=_0x464faf(0x1e9)?_0x1800f4+'':_0x1800f4,_0x5c71f2);const _0x30cccf=_0x464faf(0x53e),_0xe696b2=_0x464faf(0x42c),_0x407342=_0x464faf(0x470),_0xdd38af=_0x464faf(0x50a),_0x103754=_0x464faf(0x1ec),_0x57987e=_0x464faf(0x546),_0x2e9ff9=_0x464faf(0x3ad),_0x2d9c81='HEARTBEAT_TIMEOUT',_0x470888=_0x464faf(0x282),_0x1a7bc5=_0x464faf(0x3d5),_0x1c42e9=_0x464faf(0x290),_0x384be7='COLLAB_SUBMIT_CHANGESET_URL',_0x16cc0e=_0x464faf(0x1cd),_0x4e8aa6=_0x464faf(0x3ed),_0x283d9c=_0x464faf(0x3c7);var _0x19883d=(_0x527643=>(_0x527643[_0x527643[_0x464faf(0x28a)]=0x0]=_0x464faf(0x28a),_0x527643[_0x527643['OK']=0x1]='OK',_0x527643[_0x527643['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x527643[_0x527643[_0x464faf(0x22c)]=0x3]=_0x464faf(0x22c),_0x527643[_0x527643[_0x464faf(0x5c8)]=0x4]=_0x464faf(0x5c8),_0x527643[_0x527643['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x527643[_0x527643[_0x464faf(0x5c3)]=0x6]=_0x464faf(0x5c3),_0x527643[_0x527643[_0x464faf(0x598)]=0x7]='INVALID_ARGUMENT',_0x527643[_0x527643[_0x464faf(0x45c)]=0x8]=_0x464faf(0x45c),_0x527643[_0x527643[_0x464faf(0x357)]=0x9]=_0x464faf(0x357),_0x527643[_0x527643[_0x464faf(0x439)]=0x1389]=_0x464faf(0x439),_0x527643[_0x527643[_0x464faf(0x4d8)]=0x1771]=_0x464faf(0x4d8),_0x527643[_0x527643[_0x464faf(0x22a)]=0x1772]=_0x464faf(0x22a),_0x527643[_0x527643[_0x464faf(0x42d)]=0x1b59]=_0x464faf(0x42d),_0x527643[_0x527643[_0x464faf(0x5ac)]=0x1b5a]=_0x464faf(0x5ac),_0x527643[_0x527643['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x527643[_0x527643['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x464faf(0x507),_0x527643[_0x527643[_0x464faf(0x5c6)]=0x1f41]=_0x464faf(0x5c6),_0x527643[_0x527643[_0x464faf(0x2fa)]=0x2329]=_0x464faf(0x2fa),_0x527643[_0x527643[_0x464faf(0x3c3)]=0x232a]=_0x464faf(0x3c3),_0x527643[_0x527643['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x527643[_0x527643[_0x464faf(0x398)]=0x232c]=_0x464faf(0x398),_0x527643[_0x527643['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x527643[_0x527643[_0x464faf(0x412)]=0x2711]=_0x464faf(0x412),_0x527643[_0x527643[_0x464faf(0x1eb)]=0x2712]=_0x464faf(0x1eb),_0x527643[_0x527643['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x464faf(0x4b3),_0x527643[_0x527643[_0x464faf(0x4d6)]=0x2714]=_0x464faf(0x4d6),_0x527643[_0x527643['UNRECOGNIZED']=-0x1]=_0x464faf(0x389),_0x527643))(_0x19883d||{}),_0x2341fc=(_0x3cc369=>(_0x3cc369[_0x3cc369[_0x464faf(0x48e)]=0x0]='UNIVER_UNKNOWN',_0x3cc369[_0x3cc369['UNIVER_DOC']=0x1]=_0x464faf(0x3c1),_0x3cc369[_0x3cc369['UNIVER_SHEET']=0x2]=_0x464faf(0x593),_0x3cc369[_0x3cc369[_0x464faf(0x206)]=0x3]='UNIVER_SLIDE',_0x3cc369[_0x3cc369[_0x464faf(0x4f9)]=0x4]=_0x464faf(0x4f9),_0x3cc369[_0x3cc369[_0x464faf(0x389)]=-0x1]=_0x464faf(0x389),_0x3cc369))(_0x2341fc||{}),_0x496bb6=(_0x2cd4ff=>(_0x2cd4ff[_0x2cd4ff[_0x464faf(0x2f1)]=0x0]='UNKNOWN_CMD',_0x2cd4ff[_0x2cd4ff[_0x464faf(0x5c5)]=0x1]='HELLO',_0x2cd4ff[_0x2cd4ff[_0x464faf(0x343)]=0x2]=_0x464faf(0x343),_0x2cd4ff[_0x2cd4ff[_0x464faf(0x2c6)]=0x3]='LEAVE',_0x2cd4ff[_0x2cd4ff[_0x464faf(0x32f)]=0x4]=_0x464faf(0x32f),_0x2cd4ff[_0x2cd4ff[_0x464faf(0x4f7)]=0x5]=_0x464faf(0x4f7),_0x2cd4ff[_0x2cd4ff[_0x464faf(0x256)]=0x6]='RECV',_0x2cd4ff[_0x2cd4ff[_0x464faf(0x389)]=-0x1]=_0x464faf(0x389),_0x2cd4ff))(_0x496bb6||{}),_0xe8e60b=(_0x40eaaa=>(_0x40eaaa[_0x40eaaa[_0x464faf(0x360)]=0x0]=_0x464faf(0x360),_0x40eaaa[_0x40eaaa['OK']=0x1]='OK',_0x40eaaa[_0x40eaaa[_0x464faf(0x463)]=0x2]=_0x464faf(0x463),_0x40eaaa[_0x40eaaa[_0x464faf(0x389)]=-0x1]=_0x464faf(0x389),_0x40eaaa))(_0xe8e60b||{}),_0x373e8a=(_0x496f4c=>(_0x496f4c[_0x496f4c[_0x464faf(0x547)]=0x0]='Undefined',_0x496f4c[_0x496f4c[_0x464faf(0x40a)]=0x1]=_0x464faf(0x40a),_0x496f4c[_0x496f4c[_0x464faf(0x4a2)]=0x2]=_0x464faf(0x4a2),_0x496f4c[_0x496f4c[_0x464faf(0x39d)]=0x3]='UnitEmbedded',_0x496f4c[_0x496f4c[_0x464faf(0x511)]=0x4]='UnitSnapshot',_0x496f4c[_0x496f4c[_0x464faf(0x389)]=-0x1]=_0x464faf(0x389),_0x496f4c))(_0x373e8a||{});function _0x148c3f(_0x14ed1e){const _0x28bc00=_0x464faf;var _0x3dc149,_0x557c91,_0x20f76a,_0x257bf8;const _0x100807=_0x14ed1e[_0x28bc00(0x25b)],_0x73f6d0=JSON[_0x28bc00(0x217)](_0x100807);switch(_0x73f6d0[_0x28bc00(0x467)]){case _0x496bb6[_0x28bc00(0x4f7)]:case _0x496bb6[_0x28bc00(0x5c5)]:{const _0x1ec9c3=_0x73f6d0['infoRsp'];return{..._0x73f6d0,'data':_0x1ec9c3,'cmd':_0x73f6d0[_0x28bc00(0x467)]};}case _0x496bb6['JOIN']:{const _0x57049e=_0x73f6d0[_0x28bc00(0x20c)];return{..._0x73f6d0,'data':_0x57049e,'cmd':_0x73f6d0[_0x28bc00(0x467)]};}case _0x496bb6[_0x28bc00(0x256)]:{const _0x12bc36=_0x73f6d0[_0x28bc00(0x257)];switch(_0x12bc36['eventID']){case _0x2cb6ec[_0x28bc00(0x312)][_0x28bc00(0x353)]:return{..._0x73f6d0,'data':{..._0x12bc36,'data':(_0x3dc149=_0x12bc36[_0x28bc00(0x2dd)])==null?void 0x0:_0x3dc149['cs']},'cmd':_0x73f6d0[_0x28bc00(0x467)]};case _0x2cb6ec[_0x28bc00(0x312)][_0x28bc00(0x36e)]:return{..._0x73f6d0,'data':{..._0x12bc36,'data':(_0x557c91=_0x12bc36[_0x28bc00(0x516)])==null?void 0x0:_0x557c91['cs']},'cmd':_0x73f6d0[_0x28bc00(0x467)]};case _0x2cb6ec['CollaborationEvent'][_0x28bc00(0x442)]:return{..._0x73f6d0,'data':{..._0x12bc36,'data':(_0x20f76a=_0x12bc36[_0x28bc00(0x4bb)])==null?void 0x0:_0x20f76a['cs']},'cmd':_0x73f6d0['cmd']};case _0x2cb6ec[_0x28bc00(0x312)][_0x28bc00(0x20e)]:return{..._0x73f6d0,'data':{..._0x12bc36,'data':(_0x257bf8=_0x12bc36['csRejEvent'])==null?void 0x0:_0x257bf8['cs']},'cmd':_0x73f6d0['cmd']};case _0x2cb6ec[_0x28bc00(0x312)][_0x28bc00(0x39c)]:return{..._0x73f6d0,'data':{..._0x12bc36,'data':_0x12bc36[_0x28bc00(0x2af)]},'cmd':_0x73f6d0[_0x28bc00(0x467)]};case _0x2cb6ec[_0x28bc00(0x312)]['USERS_ENTER']:return{..._0x73f6d0,'data':{..._0x12bc36,'data':_0x12bc36[_0x28bc00(0x414)]},'cmd':_0x73f6d0[_0x28bc00(0x467)]};case _0x2cb6ec[_0x28bc00(0x312)][_0x28bc00(0x4c1)]:return{..._0x73f6d0,'data':{..._0x12bc36,'data':_0x12bc36[_0x28bc00(0x513)]},'cmd':_0x73f6d0[_0x28bc00(0x467)]};case _0x2cb6ec[_0x28bc00(0x312)][_0x28bc00(0x430)]:return{..._0x73f6d0,'data':{..._0x12bc36,'data':_0x12bc36['liveShareNewHost']},'cmd':_0x73f6d0[_0x28bc00(0x467)]};case _0x2cb6ec[_0x28bc00(0x312)][_0x28bc00(0x429)]:case _0x2cb6ec[_0x28bc00(0x312)][_0x28bc00(0x401)]:return{..._0x73f6d0,'data':{..._0x12bc36,'data':_0x12bc36[_0x28bc00(0x496)]},'cmd':_0x73f6d0[_0x28bc00(0x467)]};case _0x2cb6ec['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0x73f6d0,'data':{..._0x12bc36,'data':_0x12bc36[_0x28bc00(0x441)]},'cmd':_0x73f6d0[_0x28bc00(0x467)]};case _0x2cb6ec[_0x28bc00(0x312)][_0x28bc00(0x1aa)]:return{..._0x73f6d0,'data':_0x12bc36,'cmd':_0x73f6d0[_0x28bc00(0x467)]};case _0x2cb6ec['CollaborationEvent'][_0x28bc00(0x47e)]:return{..._0x73f6d0,'data':{..._0x12bc36,'data':_0x12bc36[_0x28bc00(0x28d)]},'cmd':_0x73f6d0[_0x28bc00(0x467)]};case _0x2cb6ec[_0x28bc00(0x312)][_0x28bc00(0x29f)]:return{..._0x73f6d0,'data':{..._0x12bc36,'data':_0x12bc36[_0x28bc00(0x214)]},'cmd':_0x73f6d0[_0x28bc00(0x467)]};case _0x2cb6ec['CollaborationEvent'][_0x28bc00(0x2c5)]:return{..._0x73f6d0,'data':{..._0x12bc36,'data':_0x12bc36['shouldCloseConn']},'cmd':_0x73f6d0[_0x28bc00(0x467)]};default:return _0x73f6d0;}}default:return _0x73f6d0;}}function _0x32de58(_0x54965a){const _0x5bcc99=_0x464faf;switch(_0x54965a['cmd']){case _0x496bb6[_0x5bcc99(0x4f7)]:case _0x496bb6['HELLO']:return JSON[_0x5bcc99(0x4c2)]({'cmd':_0x54965a[_0x5bcc99(0x467)],'routeKey':_0x54965a[_0x5bcc99(0x4ee)]});case _0x496bb6[_0x5bcc99(0x32f)]:{let _0x3d8846;switch(_0x54965a[_0x5bcc99(0x25b)]['eventID']){case _0x2cb6ec[_0x5bcc99(0x312)][_0x5bcc99(0x39c)]:{_0x3d8846={'eventID':_0x2cb6ec[_0x5bcc99(0x312)]['UPDATE_CURSOR'],'updateCursorEvent':_0x54965a[_0x5bcc99(0x25b)][_0x5bcc99(0x25b)]};break;}case _0x2cb6ec[_0x5bcc99(0x312)][_0x5bcc99(0x4c1)]:{_0x3d8846={'eventID':_0x2cb6ec['CollaborationEvent'][_0x5bcc99(0x4c1)],'leaveEvent':_0x54965a[_0x5bcc99(0x25b)][_0x5bcc99(0x25b)]};break;}case _0x2cb6ec[_0x5bcc99(0x312)]['USERS_ENTER']:{_0x3d8846={'eventID':_0x2cb6ec[_0x5bcc99(0x312)][_0x5bcc99(0x32b)],'joinEvent':_0x54965a[_0x5bcc99(0x25b)][_0x5bcc99(0x25b)]};break;}case _0x2cb6ec[_0x5bcc99(0x312)][_0x5bcc99(0x430)]:{_0x3d8846={'eventID':_0x2cb6ec['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x54965a[_0x5bcc99(0x25b)][_0x5bcc99(0x25b)]};break;}case _0x2cb6ec[_0x5bcc99(0x312)][_0x5bcc99(0x401)]:{_0x3d8846={'eventID':_0x2cb6ec['CollaborationEvent'][_0x5bcc99(0x401)],'liveShareOperation':_0x54965a[_0x5bcc99(0x25b)][_0x5bcc99(0x25b)]};break;}case _0x2cb6ec[_0x5bcc99(0x312)]['LIVESHARE_TERMINATE']:{_0x3d8846={'eventID':_0x2cb6ec[_0x5bcc99(0x312)][_0x5bcc99(0x242)],'liveShareTerminate':_0x54965a['data'][_0x5bcc99(0x25b)]};break;}case _0x2cb6ec[_0x5bcc99(0x312)]['LIVESHARE_REQUEST_HOST']:{_0x3d8846={'eventID':_0x2cb6ec[_0x5bcc99(0x312)][_0x5bcc99(0x24b)],'liveShareRequestHost':_0x54965a[_0x5bcc99(0x25b)][_0x5bcc99(0x25b)]};break;}case _0x2cb6ec[_0x5bcc99(0x312)]['LIVESHARE_FETCH_OPERATIONS']:{_0x3d8846={'eventID':_0x2cb6ec[_0x5bcc99(0x312)][_0x5bcc99(0x429)]};break;}default:_0x3d8846={'eventID':_0x54965a['data'][_0x5bcc99(0x571)]};}return JSON[_0x5bcc99(0x4c2)]({'cmd':_0x54965a[_0x5bcc99(0x467)],'routeKey':_0x54965a[_0x5bcc99(0x4ee)],'collaMsg':_0x3d8846});}case _0x496bb6[_0x5bcc99(0x343)]:return JSON[_0x5bcc99(0x4c2)]({'cmd':_0x54965a[_0x5bcc99(0x467)],'routeKey':_0x54965a[_0x5bcc99(0x4ee)],'joinReq':_0x54965a[_0x5bcc99(0x25b)]});case _0x496bb6[_0x5bcc99(0x2c6)]:return JSON[_0x5bcc99(0x4c2)]({'cmd':_0x54965a[_0x5bcc99(0x467)],'routeKey':_0x54965a['routeKey'],'leaveReq':_0x54965a[_0x5bcc99(0x25b)]});default:throw new Error(_0x5bcc99(0x258));}}var _0x3ce8e5=Object[_0x464faf(0x229)],_0xb783d5=Object[_0x464faf(0x36f)],_0x1286b6=(_0x1a8f08,_0x86665a,_0x1caf69,_0x23f56e)=>{for(var _0x1d09fa=_0x23f56e>0x1?void 0x0:_0x23f56e?_0xb783d5(_0x86665a,_0x1caf69):_0x86665a,_0x49c1d=_0x1a8f08['length']-0x1,_0x3ec458;_0x49c1d>=0x0;_0x49c1d--)(_0x3ec458=_0x1a8f08[_0x49c1d])&&(_0x1d09fa=(_0x23f56e?_0x3ec458(_0x86665a,_0x1caf69,_0x1d09fa):_0x3ec458(_0x1d09fa))||_0x1d09fa);return _0x23f56e&&_0x1d09fa&&_0x3ce8e5(_0x86665a,_0x1caf69,_0x1d09fa),_0x1d09fa;},_0x3b3669=(_0x682306,_0x451b99)=>(_0x4570e8,_0x5694ab)=>_0x451b99(_0x4570e8,_0x5694ab,_0x682306);const _0x393e0b=_0x22bd76[_0x464faf(0x41e)](_0x464faf(0x435));function _0x36dea4(_0x50707b,_0x5a9804,_0x262968){return _0x50707b+'/'+_0x5a9804+'/unit/'+_0x262968+'/new_changes';}_0x19e906['CollaborationSocketService']=class extends _0x22bd76[_0x464faf(0x2b7)]{constructor(_0x10676f,_0x4a5693,_0x7cb8ac,_0x416c93,_0x2cfceb){const _0x2c73fb=_0x464faf;super(),this[_0x2c73fb(0x418)]=_0x10676f,this[_0x2c73fb(0x278)]=_0x4a5693,this['_configService']=_0x7cb8ac,this[_0x2c73fb(0x4c0)]=_0x416c93,this[_0x2c73fb(0x521)]=_0x2cfceb;}[_0x464faf(0x438)](_0x17ed37){const _0x31e1e5=_0x464faf,_0x982baf=this[_0x31e1e5(0x278)][_0x31e1e5(0x438)](_0x17ed37);if(!_0x982baf)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x3b7423=new _0x22bd76['DisposableCollection'](),_0x5af3e0=new _0xb468a3['Subject']();_0x3b7423[_0x31e1e5(0x59b)](_0x982baf[_0x31e1e5(0x201)]['subscribe'](_0x400f82=>_0x5af3e0[_0x31e1e5(0x4d2)](_0x400f82))),_0x3b7423[_0x31e1e5(0x59b)](_0x22bd76['toDisposable'](()=>_0x5af3e0[_0x31e1e5(0x3f9)]()));const _0x57e1a8=new _0xb468a3[(_0x31e1e5(0x57c))]();_0x3b7423['add'](_0x982baf['error$'][_0x31e1e5(0x1d7)](_0x2e4d2d=>_0x57e1a8[_0x31e1e5(0x4d2)](_0x2e4d2d))),_0x3b7423[_0x31e1e5(0x59b)](_0x22bd76['toDisposable'](()=>_0x57e1a8[_0x31e1e5(0x3f9)]()));const _0x1b56c1=new _0xb468a3[(_0x31e1e5(0x57c))]();_0x3b7423[_0x31e1e5(0x59b)](_0x982baf['message$'][_0x31e1e5(0x1d7)](_0x3b0f86=>{const _0x4f0f7e=_0x31e1e5,_0x7e6357=_0x148c3f(_0x3b0f86);_0x1b56c1[_0x4f0f7e(0x4d2)](_0x7e6357);})),_0x3b7423['add'](_0x22bd76['toDisposable'](()=>_0x1b56c1['complete']()));let _0x386b5d;const _0x85574e=()=>{const _0x42c1ed=_0x31e1e5;_0x57e1a8[_0x42c1ed(0x4d2)](new Event(_0x42c1ed(0x3cd))),_0x5af3e0[_0x42c1ed(0x4d2)](new CloseEvent(_0x42c1ed(0x3cd))),_0x386b5d[_0x42c1ed(0x47c)]();};return _0x386b5d={'memberID':'','close$':_0x5af3e0[_0x31e1e5(0x45e)](),'error$':_0x57e1a8['asObservable'](),'open$':_0x982baf['open$'],'message$':_0x1b56c1[_0x31e1e5(0x45e)](),'send':_0x3649bb=>{const _0x397d6d=_0x31e1e5;if(_0x3649bb[_0x397d6d(0x467)]===_0x496bb6[_0x397d6d(0x32f)]){if(_0x3649bb[_0x397d6d(0x25b)][_0x397d6d(0x571)]===_0x2cb6ec[_0x397d6d(0x312)][_0x397d6d(0x2b1)]){this['_submitChangeset'](_0x386b5d,_0x3649bb[_0x397d6d(0x25b)])[_0x397d6d(0x3b7)](_0x4d584e=>{this['_logService']['error'](_0x4d584e),_0x85574e();});return;}if(_0x3649bb['data'][_0x397d6d(0x571)]===_0x2cb6ec[_0x397d6d(0x312)][_0x397d6d(0x3a2)]){const _0x348d53=_0x3649bb[_0x397d6d(0x25b)];this[_0x397d6d(0x517)](_0x348d53)[_0x397d6d(0x4a9)](_0x3477ce=>{const _0x449bee=_0x397d6d;_0x1b56c1[_0x449bee(0x4d2)]({'cmd':_0x496bb6[_0x449bee(0x256)],'code':_0xe8e60b['OK'],'routeKey':_0x348d53[_0x449bee(0x25b)][_0x449bee(0x268)],'routeType':'','data':{'eventID':_0x2cb6ec[_0x449bee(0x312)][_0x449bee(0x38e)],'data':{'changesets':_0x3477ce}}});})['catch'](_0xf1b50f=>{const _0x3b5331=_0x397d6d;this[_0x3b5331(0x4c0)][_0x3b5331(0x458)](_0xf1b50f),_0x85574e();});return;}}_0x982baf['send'](_0x32de58(_0x3649bb));},'close':()=>{const _0x578b26=_0x31e1e5;_0x982baf[_0x578b26(0x47c)](),_0x3b7423['dispose']();}},_0x386b5d;}async['_submitChangeset'](_0x17779d,_0x2ddc99){const _0x282eef=_0x464faf;var _0x31657d;const {unitType:_0x20d8e3,unitID:_0x21e357,changeset:_0x348987}=_0x2ddc99[_0x282eef(0x25b)],_0x3c830d={'unitID':_0x21e357,'memberID':_0x17779d[_0x282eef(0x35e)],'type':_0x20d8e3,'changeset':_0x2cb6ec['parseChangesetToProtocol'](_0x348987)},_0x35fab4=_0x36dea4((_0x31657d=this[_0x282eef(0x562)][_0x282eef(0x5b1)](_0x384be7))!=null?_0x31657d:_0x16cc0e,_0x20d8e3,_0x21e357);try{await this[_0x282eef(0x418)][_0x282eef(0x522)](_0x35fab4,{'body':_0x3c830d});}catch(_0x277439){throw this['_logService']['error']('[CollaborationSession]',_0x282eef(0x526)),_0x277439;}}async[_0x464faf(0x517)](_0x31d35a){const _0x2710f8=_0x464faf,{unitID:_0x535a84,from:_0x5cc4a4,to:_0xec7bb6,unitType:_0x41be3f}=_0x31d35a[_0x2710f8(0x25b)];return(await this['_snapshotServerService'][_0x2710f8(0x318)]({'metadata':void 0x0},{'unitID':_0x535a84,'type':_0x41be3f,'from':_0x5cc4a4,'to':_0xec7bb6}))[_0x2710f8(0x4f8)];}},_0x19e906[_0x464faf(0x3e7)]=_0x1286b6([_0x3b3669(0x0,_0x22bd76['Inject'](_0x9bd9f[_0x464faf(0x41f)])),_0x3b3669(0x1,_0x22bd76[_0x464faf(0x568)](_0x9bd9f[_0x464faf(0x1f2)])),_0x3b3669(0x2,_0x22bd76['IConfigService']),_0x3b3669(0x3,_0x22bd76[_0x464faf(0x544)]),_0x3b3669(0x4,_0x2cb6ec[_0x464faf(0x582)])],_0x19e906['CollaborationSocketService']);const _0x2d7043=_0x464faf(0x413);function _0x55f51e(_0x11d1cb){const _0x5bbe1b=_0x464faf;return JSON[_0x5bbe1b(0x4c2)](_0x11d1cb)[_0x5bbe1b(0x266)];}class _0x45b3e8{constructor(){const _0xaf384c=_0x464faf;_0x41b507(this,'_commentUpdate$',new _0xb468a3[(_0xaf384c(0x57c))]()),_0x41b507(this,'commentUpdate$',this[_0xaf384c(0x1c3)][_0xaf384c(0x45e)]());}[_0x464faf(0x347)](_0x512793){const _0x1b5254=_0x464faf;this[_0x1b5254(0x1c3)][_0x1b5254(0x4d2)](_0x512793);}}var _0x756a5f=Object['defineProperty'],_0x584b8f=Object[_0x464faf(0x36f)],_0x4b0970=(_0x124044,_0x2de315,_0x14a958,_0x1b1716)=>{const _0x15a0bb=_0x464faf;for(var _0x400375=_0x1b1716>0x1?void 0x0:_0x1b1716?_0x584b8f(_0x2de315,_0x14a958):_0x2de315,_0xae8327=_0x124044[_0x15a0bb(0x266)]-0x1,_0x32bd2c;_0xae8327>=0x0;_0xae8327--)(_0x32bd2c=_0x124044[_0xae8327])&&(_0x400375=(_0x1b1716?_0x32bd2c(_0x2de315,_0x14a958,_0x400375):_0x32bd2c(_0x400375))||_0x400375);return _0x1b1716&&_0x400375&&_0x756a5f(_0x2de315,_0x14a958,_0x400375),_0x400375;},_0x3efa4c=(_0x95505,_0x4c02f0)=>(_0x59746d,_0x5e22ff)=>_0x4c02f0(_0x59746d,_0x5e22ff,_0x95505);let _0x27752c=class extends _0x22bd76[_0x464faf(0x2b7)]{constructor(_0x489f1a,_0x3905bd){const _0x2f2875=_0x464faf;super(),_0x41b507(this,'_roomMembers',new Map()),(this[_0x2f2875(0x334)]=_0x489f1a,this[_0x2f2875(0x2ee)]=_0x3905bd,this['disposeWithMe'](_0x22bd76['toDisposable'](_0xb468a3[_0x2f2875(0x23e)](this[_0x2f2875(0x334)][_0x2f2875(0x377)](_0x22bd76[_0x2f2875(0x53c)][_0x2f2875(0x593)])['pipe'](_0x5ac862[_0x2f2875(0x1bb)](_0x2de8cf=>_0x2de8cf[_0x2f2875(0x330)]())),this[_0x2f2875(0x334)][_0x2f2875(0x377)](_0x22bd76[_0x2f2875(0x53c)]['UNIVER_DOC'])['pipe'](_0x5ac862['map'](_0xccab2b=>_0xccab2b[_0x2f2875(0x330)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x22bd76['UniverInstanceType'][_0x2f2875(0x206)])[_0x2f2875(0x457)](_0x5ac862[_0x2f2875(0x1bb)](_0x5b0e0e=>_0x5b0e0e[_0x2f2875(0x330)]())))['subscribe'](_0x22f560=>this['_removeRoom'](_0x22f560)))));}[_0x464faf(0x586)](_0x4ba020){const _0x80f9cc=_0x464faf;this[_0x80f9cc(0x2ee)][_0x80f9cc(0x586)](_0x4ba020);}['getCurrentUser'](){const _0x5ca21e=_0x464faf;return this['_userManagerService'][_0x5ca21e(0x348)]();}[_0x464faf(0x566)](_0x489152,_0x314f3e){const _0x11b388=_0x464faf;let _0x1fe404=this['_roomMembers'][_0x11b388(0x321)](_0x489152);_0x1fe404||(_0x1fe404=new _0x33c102(),this['_roomMembers'][_0x11b388(0x372)](_0x489152,_0x1fe404)),_0x1fe404[_0x11b388(0x566)](_0x314f3e);}['removeMember'](_0x400597,_0x19342b){const _0x30b2fd=_0x464faf,_0x4d4e03=this[_0x30b2fd(0x3bc)][_0x30b2fd(0x321)](_0x400597);_0x4d4e03&&_0x4d4e03['removeMember'](_0x19342b);}[_0x464faf(0x4cc)](_0x520fa1){const _0x17d640=_0x464faf;return this[_0x17d640(0x3bc)]['get'](_0x520fa1);}['getMember'](_0x4f14de,_0xa2704b){const _0x5bf8b7=_0x464faf,_0x36474e=this[_0x5bf8b7(0x3bc)]['get'](_0x4f14de);if(_0x36474e)return _0x36474e[_0x5bf8b7(0x30f)](_0xa2704b);}['_removeRoom'](_0x61d4f7){const _0x253680=_0x464faf,_0x466390=this[_0x253680(0x3bc)][_0x253680(0x321)](_0x61d4f7);_0x466390&&(_0x466390[_0x253680(0x383)](),this[_0x253680(0x3bc)][_0x253680(0x331)](_0x61d4f7));}[_0x464faf(0x383)](){const _0x123ad5=_0x464faf;this[_0x123ad5(0x3bc)][_0x123ad5(0x1fc)](_0x4550b5=>_0x4550b5['dispose']()),this[_0x123ad5(0x3bc)][_0x123ad5(0x5be)]();}};_0x27752c=_0x4b0970([_0x3efa4c(0x0,_0x22bd76[_0x464faf(0x3a0)]),_0x3efa4c(0x1,_0x22bd76['Inject'](_0x22bd76[_0x464faf(0x37d)]))],_0x27752c);class _0x33c102 extends _0x22bd76[_0x464faf(0x2b7)]{constructor(){const _0x1ccf68=_0x464faf;super(...arguments),_0x41b507(this,_0x1ccf68(0x55c),new Map());}[_0x464faf(0x383)](){this['_members']['clear']();}[_0x464faf(0x566)](_0x3dfe38){const _0x2b24b7=_0x464faf;this[_0x2b24b7(0x55c)][_0x2b24b7(0x372)](_0x3dfe38['memberID'],_0x3dfe38);}['removeMember'](_0x73c55a){const _0xbfa488=_0x464faf;this[_0xbfa488(0x55c)][_0xbfa488(0x331)](_0x73c55a);}[_0x464faf(0x30f)](_0x64de49){const _0x303fe2=_0x464faf;return this['_members'][_0x303fe2(0x321)](_0x64de49);}}var _0x1b9610=Object['defineProperty'],_0xc3f3b6=Object[_0x464faf(0x36f)],_0xa3db46=(_0x2f9623,_0x18e22a,_0x167830,_0x5662b4)=>{const _0x52fed4=_0x464faf;for(var _0x18258e=_0x5662b4>0x1?void 0x0:_0x5662b4?_0xc3f3b6(_0x18e22a,_0x167830):_0x18e22a,_0x1ae170=_0x2f9623[_0x52fed4(0x266)]-0x1,_0x39bf30;_0x1ae170>=0x0;_0x1ae170--)(_0x39bf30=_0x2f9623[_0x1ae170])&&(_0x18258e=(_0x5662b4?_0x39bf30(_0x18e22a,_0x167830,_0x18258e):_0x39bf30(_0x18258e))||_0x18258e);return _0x5662b4&&_0x18258e&&_0x1b9610(_0x18e22a,_0x167830,_0x18258e),_0x18258e;},_0x43e3d3=(_0x126d8b,_0x3fc1b6)=>(_0x5759f1,_0x49be81)=>_0x3fc1b6(_0x5759f1,_0x49be81,_0x126d8b),_0x4d9058=(_0x47931f=>(_0x47931f[_0x47931f['IDLE']=0x0]=_0x464faf(0x2ef),_0x47931f[_0x47931f['JOINING']=0x1]=_0x464faf(0x1cb),_0x47931f[_0x47931f[_0x464faf(0x374)]=0x2]=_0x464faf(0x374),_0x47931f[_0x47931f[_0x464faf(0x50f)]=0x3]=_0x464faf(0x50f),_0x47931f))(_0x4d9058||{});_0x19e906[_0x464faf(0x551)]=class extends _0x22bd76[_0x464faf(0x5c2)]{constructor(_0x450a16,_0x23bbc9,_0x3a9d95,_0x4916dc,_0x4ceab7,_0x31aaca,_0xe5dde1,_0x1dcda2,_0x305026,_0x1761e9){const _0x3b3a95=_0x464faf;super(),_0x41b507(this,_0x3b3a95(0x4ce),new _0xb468a3[(_0x3b3a95(0x579))](0x0)),_0x41b507(this,'sessionStatus$',this[_0x3b3a95(0x4ce)][_0x3b3a95(0x45e)]()),_0x41b507(this,_0x3b3a95(0x4b7),new _0xb468a3[(_0x3b3a95(0x57c))]()),_0x41b507(this,_0x3b3a95(0x3f2),this[_0x3b3a95(0x4b7)][_0x3b3a95(0x45e)]()),_0x41b507(this,_0x3b3a95(0x5bc)),_0x41b507(this,'_socketMessageSubscription'),_0x41b507(this,_0x3b3a95(0x4d3)),_0x41b507(this,_0x3b3a95(0x3a5),!0x1),_0x41b507(this,_0x3b3a95(0x3df),null),(this[_0x3b3a95(0x555)]=_0x450a16,this[_0x3b3a95(0x4c0)]=_0x3a9d95,this['_beforeCloseService']=_0x4916dc,this[_0x3b3a95(0x391)]=_0x4ceab7,this[_0x3b3a95(0x562)]=_0x31aaca,this[_0x3b3a95(0x4fc)]=_0xe5dde1,this[_0x3b3a95(0x4bd)]=_0x1dcda2,this[_0x3b3a95(0x1f0)]=_0x305026,this[_0x3b3a95(0x363)]=_0x1761e9,this[_0x3b3a95(0x3a5)]=!!this[_0x3b3a95(0x363)],_0x23bbc9['pipe'](_0xb468a3[_0x3b3a95(0x3d8)](this['dispose$']))[_0x3b3a95(0x1d7)](_0x8db4ec=>{const _0x562dc4=_0x3b3a95;var _0x443a20;typeof _0x8db4ec>'u'||(this[_0x562dc4(0x5bc)]=_0x8db4ec,_0x8db4ec?(this[_0x562dc4(0x1c8)](_0x8db4ec),this[_0x562dc4(0x46d)]=_0x8db4ec[_0x562dc4(0x21b)][_0x562dc4(0x1d7)](_0xbf9250=>{const _0x4752ee=_0x562dc4;_0xbf9250['routeKey']===this[_0x4752ee(0x555)]&&this[_0x4752ee(0x4c9)](_0xbf9250);})):(this[_0x562dc4(0x2ea)](),this[_0x562dc4(0x4ce)][_0x562dc4(0x4d2)](0x2),(_0x443a20=this['_socketMessageSubscription'])==null||_0x443a20[_0x562dc4(0x2bb)](),this[_0x562dc4(0x46d)]=null));}),this['disposeWithMe'](this[_0x3b3a95(0x4cb)]['registerOnClose'](()=>{const _0xfa2c9b=_0x3b3a95;var _0x391d53;(_0x391d53=this[_0xfa2c9b(0x5bc)])==null||_0x391d53['send']({'cmd':_0x496bb6[_0xfa2c9b(0x2c6)],'data':{'roomID':this[_0xfa2c9b(0x555)]}});})));}get[_0x464faf(0x298)](){return this['_sessionStatus$']['getValue']();}[_0x464faf(0x2b8)](){const _0x11bdd7=_0x464faf;var _0x50f83d,_0x1364cb;return(_0x1364cb=(_0x50f83d=this['_socket'])==null?void 0x0:_0x50f83d[_0x11bdd7(0x35e)])!=null?_0x1364cb:null;}['dispose'](){const _0x44dfbb=_0x464faf;super['dispose'](),this[_0x44dfbb(0x49d)][_0x44dfbb(0x4d2)](),this[_0x44dfbb(0x49d)][_0x44dfbb(0x3f9)]();}['close'](){const _0x30f8ba=_0x464faf;var _0x2dd0a1,_0x1c70df;this[_0x30f8ba(0x2ea)](),(_0x2dd0a1=this[_0x30f8ba(0x5bc)])==null||_0x2dd0a1[_0x30f8ba(0x427)]({'cmd':_0x496bb6[_0x30f8ba(0x2c6)],'data':{'roomID':this[_0x30f8ba(0x555)]}}),(_0x1c70df=this['_socket'])==null||_0x1c70df['close'](),this[_0x30f8ba(0x4b7)][_0x30f8ba(0x3f9)](),this[_0x30f8ba(0x4ce)][_0x30f8ba(0x3f9)](),this[_0x30f8ba(0x383)]();}['_onCombEvent'](_0x560421){const _0x44687b=_0x464faf;_0x560421[_0x44687b(0x467)]===_0x496bb6[_0x44687b(0x343)]?this['_onJoinRoomEvent'](_0x560421):_0x560421['cmd']===_0x496bb6['RECV']&&this[_0x44687b(0x3f7)](_0x560421);}[_0x464faf(0x1c8)](_0x141098){const _0x4d3ace=_0x464faf;this[_0x4d3ace(0x4ce)]['next'](0x1),_0x141098['send']({'cmd':_0x496bb6[_0x4d3ace(0x343)],'routeKey':this[_0x4d3ace(0x555)],'routeType':'','data':{'rooms':[{'roomID':this[_0x4d3ace(0x555)]}]}});}[_0x464faf(0x210)](_0x1b7b9b){const _0x3266d4=_0x464faf;var _0x3c09fa;if(_0x1b7b9b[_0x3266d4(0x4ec)]===_0xe8e60b[_0x3266d4(0x463)]){this[_0x3266d4(0x391)]['show']({'type':_0x5562a6['MessageType'][_0x3266d4(0x272)],'content':this[_0x3266d4(0x4fc)]['t'](_0x3266d4(0x19c))}),this[_0x3266d4(0x4ce)][_0x3266d4(0x4d2)](0x2);return;}this[_0x3266d4(0x4ce)]['next'](0x3);const _0x42ae48=(_0x3c09fa=_0x1b7b9b['data'][_0x3266d4(0x231)][this[_0x3266d4(0x555)]])==null?void 0x0:_0x3c09fa[_0x3266d4(0x22b)];_0x42ae48&&_0x42ae48[_0x3266d4(0x1fc)](_0x381232=>this['_memberService'][_0x3266d4(0x566)](this[_0x3266d4(0x555)],_0x381232));}['_onRecvEvent'](_0x1014a7){const _0x43bfbd=_0x464faf;try{const _0x268024=_0x1014a7[_0x43bfbd(0x25b)];switch(_0x268024[_0x43bfbd(0x571)]){case _0x2cb6ec[_0x43bfbd(0x312)]['USERS_ENTER']:this[_0x43bfbd(0x500)](_0x268024),this['_event$']['next'](_0x268024);break;case _0x2cb6ec[_0x43bfbd(0x312)][_0x43bfbd(0x4c1)]:this[_0x43bfbd(0x295)](_0x268024),this[_0x43bfbd(0x4b7)]['next'](_0x268024);break;case _0x2cb6ec[_0x43bfbd(0x312)]['CHANGESET_ACK']:this[_0x43bfbd(0x50b)](),this['_clearCollaborationTimeoutTimer'](),this[_0x43bfbd(0x4b7)][_0x43bfbd(0x4d2)](_0x268024);break;case _0x2cb6ec[_0x43bfbd(0x312)]['MSG_FOR_ERROR']:this['_logService']['error']('save\x20fail\x20reason\x20is\x20'+JSON[_0x43bfbd(0x4c2)](_0x268024)),this[_0x43bfbd(0x4b7)][_0x43bfbd(0x4d2)](_0x268024);break;case _0x2cb6ec[_0x43bfbd(0x312)][_0x43bfbd(0x47e)]:this[_0x43bfbd(0x1f0)][_0x43bfbd(0x347)](_0x268024[_0x43bfbd(0x25b)]),this['_event$']['next'](_0x268024);break;default:this[_0x43bfbd(0x4b7)][_0x43bfbd(0x4d2)](_0x268024);}}catch(_0x93d8cd){this[_0x43bfbd(0x4c0)]['error'](_0x93d8cd,_0x1014a7);}}[_0x464faf(0x500)](_0x392b96){const _0x1bebfa=_0x464faf;this[_0x1bebfa(0x4bd)][_0x1bebfa(0x566)](this[_0x1bebfa(0x555)],_0x392b96[_0x1bebfa(0x25b)]);}[_0x464faf(0x295)](_0xf7565d){const _0x9536f7=_0x464faf;this['_memberService'][_0x9536f7(0x56f)](this[_0x9536f7(0x555)],_0xf7565d[_0x9536f7(0x25b)]['memberID']);}async[_0x464faf(0x427)](_0x53939a,_0x3dcdab){const _0x595ef9=_0x464faf;if(this[_0x595ef9(0x298)]!==0x3||!this[_0x595ef9(0x5bc)])throw new Error(_0x595ef9(0x4ff));try{_0x53939a[_0x595ef9(0x571)]===_0x2cb6ec[_0x595ef9(0x312)][_0x595ef9(0x2b1)]&&(this[_0x595ef9(0x293)](),this[_0x595ef9(0x3b1)](_0x53939a)),this[_0x595ef9(0x5bc)][_0x595ef9(0x427)]({'cmd':_0x496bb6['INGEST'],'routeKey':_0x3dcdab,'routeType':'','data':_0x53939a});}catch(_0x5281e8){this['_logService'][_0x595ef9(0x458)](_0x5281e8);}}[_0x464faf(0x293)](){const _0x8ec90e=_0x464faf;var _0x193b9e;this[_0x8ec90e(0x4d3)]=window['setTimeout'](()=>{const _0x358176=_0x8ec90e;this[_0x358176(0x4d3)]=null,this['_messageService']['show']({'type':_0x5562a6['MessageType']['Error'],'content':this[_0x358176(0x4fc)]['t'](_0x358176(0x1e4))});},(_0x193b9e=this[_0x8ec90e(0x562)][_0x8ec90e(0x5b1)](_0x2d9c81))!=null?_0x193b9e:0x4e20);}[_0x464faf(0x4b9)](){const _0x11f4dc=_0x464faf;this[_0x11f4dc(0x4d3)]&&(clearTimeout(this[_0x11f4dc(0x4d3)]),this[_0x11f4dc(0x4d3)]=null);}[_0x464faf(0x3b1)](_0x30e3ad){if(!this['_shouldReportTelemetry'])return;const {data:_0x199a9c}=_0x30e3ad,{unitID:_0x587d26,changeset:_0x204033}=_0x199a9c,{mutations:_0x41b0a1,type:_0xd45ac3}=_0x204033;this['_telemetryInfo']={'unitId':_0x587d26,'type':_0xd45ac3,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x55f51e(_0x41b0a1)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x10e6ca=_0x464faf;if(this[_0x10e6ca(0x3a5)]){if(!this[_0x10e6ca(0x3df)]){this[_0x10e6ca(0x4c0)]['error']('[CollaborationSession]','telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x10e6ca(0x3df)]['stopTime']=performance[_0x10e6ca(0x428)](),this[_0x10e6ca(0x3df)][_0x10e6ca(0x2d0)]=this[_0x10e6ca(0x3df)][_0x10e6ca(0x4dd)]-this[_0x10e6ca(0x3df)]['startTime'],this[_0x10e6ca(0x363)]['capture'](_0x2d7043,this[_0x10e6ca(0x3df)]),this['_telemetryInfo']=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x3013f1=_0x464faf;this[_0x3013f1(0x3df)]=null;}},_0x19e906[_0x464faf(0x551)]=_0xa3db46([_0x43e3d3(0x2,_0x22bd76[_0x464faf(0x544)]),_0x43e3d3(0x3,_0x1b23d2['IBeforeCloseService']),_0x43e3d3(0x4,_0x1b23d2[_0x464faf(0x536)]),_0x43e3d3(0x5,_0x22bd76['IConfigService']),_0x43e3d3(0x6,_0x22bd76[_0x464faf(0x568)](_0x22bd76[_0x464faf(0x51a)])),_0x43e3d3(0x7,_0x22bd76[_0x464faf(0x568)](_0x27752c)),_0x43e3d3(0x8,_0x22bd76['Inject'](_0x45b3e8)),_0x43e3d3(0x9,_0x22bd76['Optional'](_0x5df134[_0x464faf(0x2ab)]))],_0x19e906[_0x464faf(0x551)]);var _0x40435a=Object[_0x464faf(0x229)],_0x5a887d=Object['getOwnPropertyDescriptor'],_0x2c9c78=(_0x5d3a73,_0x1df838,_0x517c2f,_0x41c1f8)=>{const _0x1b8d0a=_0x464faf;for(var _0x215213=_0x41c1f8>0x1?void 0x0:_0x41c1f8?_0x5a887d(_0x1df838,_0x517c2f):_0x1df838,_0x4ac522=_0x5d3a73[_0x1b8d0a(0x266)]-0x1,_0x194c8a;_0x4ac522>=0x0;_0x4ac522--)(_0x194c8a=_0x5d3a73[_0x4ac522])&&(_0x215213=(_0x41c1f8?_0x194c8a(_0x1df838,_0x517c2f,_0x215213):_0x194c8a(_0x215213))||_0x215213);return _0x41c1f8&&_0x215213&&_0x40435a(_0x1df838,_0x517c2f,_0x215213),_0x215213;},_0x2a9f1c=(_0x8f9970,_0x318abc)=>(_0x170ca6,_0x36b2fc)=>_0x318abc(_0x170ca6,_0x36b2fc,_0x8f9970);_0x19e906[_0x464faf(0x2ca)]=class extends _0x22bd76[_0x464faf(0x2b7)]{constructor(_0x19c8fd,_0x54f887,_0x1a9a51,_0xae4655,_0x268e64,_0xdcf71c){const _0x5f3915=_0x464faf;super(),_0x41b507(this,_0x5f3915(0x44a),new _0xb468a3[(_0x5f3915(0x579))](void 0x0)),_0x41b507(this,_0x5f3915(0x4f3),this[_0x5f3915(0x44a)][_0x5f3915(0x45e)]()),_0x41b507(this,_0x5f3915(0x23d),null),_0x41b507(this,'_sessions',new Map()),_0x41b507(this,_0x5f3915(0x3a8),new _0xb468a3[(_0x5f3915(0x579))](_0x4d9058[_0x5f3915(0x2ef)])),_0x41b507(this,_0x5f3915(0x4af),this[_0x5f3915(0x3a8)][_0x5f3915(0x45e)]()),_0x41b507(this,'_socketReady',!0x1),_0x41b507(this,_0x5f3915(0x4b5)),_0x41b507(this,_0x5f3915(0x44b),0x0),_0x41b507(this,_0x5f3915(0x2e7)),_0x41b507(this,_0x5f3915(0x21a)),(this[_0x5f3915(0x38a)]=_0x19c8fd,this[_0x5f3915(0x4fc)]=_0x54f887,this[_0x5f3915(0x391)]=_0x1a9a51,this[_0x5f3915(0x4c0)]=_0xae4655,this[_0x5f3915(0x562)]=_0x268e64,this['_socketService']=_0xdcf71c);}get[_0x464faf(0x5bc)](){const _0x740a64=_0x464faf;return this[_0x740a64(0x44a)][_0x740a64(0x4f1)]();}[_0x464faf(0x383)](){const _0x15c402=_0x464faf;super[_0x15c402(0x383)](),this[_0x15c402(0x4a3)][_0x15c402(0x1fc)](_0x2f6bf5=>_0x2f6bf5[_0x15c402(0x383)]()),this[_0x15c402(0x4a3)]['clear'](),this['_status$'][_0x15c402(0x3f9)]();}async[_0x464faf(0x59c)](_0x301993){const _0x3df9fd=_0x464faf;if(this[_0x3df9fd(0x4a3)]['has'](_0x301993))return this[_0x3df9fd(0x4a3)][_0x3df9fd(0x321)](_0x301993);this[_0x3df9fd(0x2cd)]();const _0xe846f0=this[_0x3df9fd(0x38a)][_0x3df9fd(0x3ae)](_0x19e906['CollaborationSession'],_0x301993,this['_socket$'][_0x3df9fd(0x45e)]());return this[_0x3df9fd(0x4a3)][_0x3df9fd(0x372)](_0x301993,_0xe846f0),_0xe846f0;}[_0x464faf(0x405)](_0x2374a5){const _0x83ce86=_0x464faf;var _0x17a274;const _0x59e927=this['_sessions'][_0x83ce86(0x321)](_0x2374a5);_0x59e927&&(this[_0x83ce86(0x4a3)]['delete'](_0x2374a5),_0x59e927['close']()),this['_sessions'][_0x83ce86(0x2cf)]||(_0x17a274=this[_0x83ce86(0x5bc)])==null||_0x17a274[_0x83ce86(0x47c)]();}[_0x464faf(0x4c6)](){const _0xc3360b=_0x464faf;this[_0xc3360b(0x44b)]=0x0,this[_0xc3360b(0x4b5)]!=null&&(clearTimeout(this[_0xc3360b(0x4b5)]),this[_0xc3360b(0x4b5)]=null),this[_0xc3360b(0x421)]();}[_0x464faf(0x24f)](){const _0xe005ad=_0x464faf;var _0x459a86;const _0x390db0=(_0x459a86=this['_configService'][_0xe005ad(0x5b1)](_0x103754))!=null?_0x459a86:_0x57987e,_0x22e76a=this[_0xe005ad(0x4fd)][_0xe005ad(0x438)](_0x390db0);return this[_0xe005ad(0x23d)]=_0x22e76a,_0x22e76a;}[_0x464faf(0x2cd)](){const _0x236241=_0x464faf;var _0x1d02bf,_0x12989a;try{const _0x2f3e47=(_0x12989a=(_0x1d02bf=this['_socket'])!=null?_0x1d02bf:this[_0x236241(0x23d)])!=null?_0x12989a:this[_0x236241(0x24f)]();if(_0x2f3e47){const _0x2e1768=_0x2f3e47[_0x236241(0x427)];_0x2f3e47[_0x236241(0x427)]=_0x4c4080=>(this[_0x236241(0x58d)](),_0x2e1768[_0x236241(0x549)](_0x2f3e47,[_0x4c4080])),_0x2f3e47[_0x236241(0x21b)][_0x236241(0x1d7)](_0x473ada=>this[_0x236241(0x32a)](_0x2f3e47,_0x473ada)),_0x2f3e47[_0x236241(0x301)][_0x236241(0x457)](_0x5ac862[_0x236241(0x4f5)](0x1))[_0x236241(0x1d7)](_0x4679cf=>this[_0x236241(0x4c0)][_0x236241(0x458)](_0x236241(0x3bb),_0x4679cf)),_0x2f3e47[_0x236241(0x59a)][_0x236241(0x457)](_0x5ac862[_0x236241(0x4f5)](0x1))[_0x236241(0x1d7)](()=>{this['_onConnectionOpen'](_0x2f3e47);}),_0x2f3e47[_0x236241(0x201)]['pipe'](_0x5ac862[_0x236241(0x4f5)](0x1))['subscribe'](_0x56ca55=>{const _0x27e6ec=_0x236241;this['_logService'][_0x27e6ec(0x3e8)](_0x27e6ec(0x1e1),_0x27e6ec(0x3d0),_0x56ca55),this[_0x27e6ec(0x2fb)]();});}}catch(_0x14d928){this['_logService'][_0x236241(0x458)](_0x14d928),this[_0x236241(0x2fb)]();}}[_0x464faf(0x23c)](_0x22a4f9){const _0x40afcd=_0x464faf;this[_0x40afcd(0x4c0)][_0x40afcd(0x3e8)](_0x40afcd(0x1e1),_0x40afcd(0x417)),_0x22a4f9['send']({'cmd':_0x496bb6['HELLO']}),this[_0x40afcd(0x58d)](),this[_0x40afcd(0x509)]();}['_listenToOfflineEvent'](){const _0x3d530a=_0x464faf,_0x338e6c=()=>{const _0x4d16b9=_0x437d;this[_0x4d16b9(0x33c)](),this[_0x4d16b9(0x30b)](),window['removeEventListener'](_0x4d16b9(0x307),_0x338e6c);};window['addEventListener'](_0x3d530a(0x307),_0x338e6c);}[_0x464faf(0x33c)](){const _0x2b2971=_0x464faf;this[_0x2b2971(0x494)]=!0x1,this['_status$'][_0x2b2971(0x4d2)](_0x4d9058[_0x2b2971(0x374)]),this[_0x2b2971(0x44a)][_0x2b2971(0x4d2)](null),this[_0x2b2971(0x56e)](),this[_0x2b2971(0x310)]();}[_0x464faf(0x2fb)](){const _0x2a6562=_0x464faf;var _0x30e95d;this[_0x2a6562(0x33c)](),this[_0x2a6562(0x44b)]<((_0x30e95d=this[_0x2a6562(0x562)]['getConfig'](_0x1a7bc5))!=null?_0x30e95d:0x3)?(this['_messageService'][_0x2a6562(0x550)]({'key':_0x2a6562(0x2be),'type':_0x5562a6[_0x2a6562(0x253)]['Warning'],'content':this['_localeService']['t'](_0x2a6562(0x460))}),this[_0x2a6562(0x421)]()):(this[_0x2a6562(0x391)][_0x2a6562(0x550)]({'key':'collaboration-session-retry','type':_0x5562a6[_0x2a6562(0x253)][_0x2a6562(0x489)],'content':this[_0x2a6562(0x4fc)]['t'](_0x2a6562(0x54b))}),this[_0x2a6562(0x30b)]());}[_0x464faf(0x30b)](){const _0x446768=_0x464faf,_0x3be466=()=>{const _0x391379=_0x437d;this[_0x391379(0x4c6)](),window[_0x391379(0x5af)](_0x391379(0x1ac),_0x3be466);};window[_0x446768(0x265)](_0x446768(0x1ac),_0x3be466),this[_0x446768(0x44a)][_0x446768(0x457)](_0x5ac862[_0x446768(0x2e9)](_0x2de4f3=>!!_0x2de4f3),_0x5ac862[_0x446768(0x4f5)](0x1))[_0x446768(0x1d7)](()=>{window['removeEventListener']('online',_0x3be466);});}[_0x464faf(0x421)](){const _0x53e54b=_0x464faf;var _0xebe4ed;const _0x4ec6e5=this[_0x53e54b(0x44b)],_0x14fd68=_0x4ec6e5===0x0?0x0:((_0xebe4ed=this[_0x53e54b(0x562)][_0x53e54b(0x5b1)](_0x470888))!=null?_0xebe4ed:0x4e20)*0x2**_0x4ec6e5;this['_retryConnectingTimer']=window[_0x53e54b(0x3c9)](()=>{const _0x1b3503=_0x53e54b;clearTimeout(this[_0x1b3503(0x4b5)]),this[_0x1b3503(0x4b5)]=null,this[_0x1b3503(0x2cd)]();},_0x14fd68),this[_0x53e54b(0x44b)]+=0x1;}[_0x464faf(0x32a)](_0x549b65,_0x4a891d){const _0x17e5e6=_0x464faf,{cmd:_0x58a6f9}=_0x4a891d;_0x58a6f9===_0x496bb6[_0x17e5e6(0x5c5)]&&!this[_0x17e5e6(0x494)]&&(_0x549b65[_0x17e5e6(0x35e)]=_0x4a891d['data'][_0x17e5e6(0x35e)],this['_socket$'][_0x17e5e6(0x4d2)](_0x549b65),this[_0x17e5e6(0x3a8)][_0x17e5e6(0x4d2)](_0x4d9058[_0x17e5e6(0x50f)]),this[_0x17e5e6(0x494)]=!0x0,this[_0x17e5e6(0x23d)]=null),_0x58a6f9===_0x496bb6[_0x17e5e6(0x4f7)]&&this[_0x17e5e6(0x56e)](),this['_rescheduleHeartbeat']();}[_0x464faf(0x58d)](){const _0x2c031f=_0x464faf;var _0x32fbe0;this[_0x2c031f(0x310)](),this[_0x2c031f(0x2e7)]=window[_0x2c031f(0x3c9)](()=>this[_0x2c031f(0x220)](),(_0x32fbe0=this[_0x2c031f(0x562)][_0x2c031f(0x5b1)](_0x2e9ff9))!=null?_0x32fbe0:0x7530);}['_sendHeartbeat'](){const _0x2064cc=_0x464faf;this[_0x2064cc(0x5bc)][_0x2064cc(0x427)]({'cmd':_0x496bb6[_0x2064cc(0x4f7)]}),this[_0x2064cc(0x403)]();}[_0x464faf(0x403)](){const _0x319573=_0x464faf;var _0x4447df;this[_0x319573(0x21a)]=window[_0x319573(0x3c9)](()=>this['_onConnectionFailed'](),(_0x4447df=this[_0x319573(0x562)][_0x319573(0x5b1)](_0x2d9c81))!=null?_0x4447df:0x4e20);}[_0x464faf(0x310)](){const _0xcf9fd8=_0x464faf;this[_0xcf9fd8(0x2e7)]!=null&&(clearTimeout(this[_0xcf9fd8(0x2e7)]),this[_0xcf9fd8(0x2e7)]=null);}['_clearTimeoutTimer'](){const _0x34038d=_0x464faf;this[_0x34038d(0x21a)]!=null&&(clearTimeout(this[_0x34038d(0x21a)]),this[_0x34038d(0x21a)]=null);}},_0x19e906[_0x464faf(0x2ca)]=_0x2c9c78([_0x2a9f1c(0x0,_0x22bd76[_0x464faf(0x568)](_0x22bd76['Injector'])),_0x2a9f1c(0x1,_0x22bd76[_0x464faf(0x568)](_0x22bd76[_0x464faf(0x51a)])),_0x2a9f1c(0x2,_0x1b23d2[_0x464faf(0x536)]),_0x2a9f1c(0x3,_0x22bd76[_0x464faf(0x544)]),_0x2a9f1c(0x4,_0x22bd76['IConfigService']),_0x2a9f1c(0x5,_0x393e0b)],_0x19e906['CollaborationSessionService']);var _0x2ec75f=Object[_0x464faf(0x229)],_0x5941e3=Object[_0x464faf(0x36f)],_0x405d29=(_0x21d2c5,_0x4bf839,_0x2abace,_0x1ac40b)=>{for(var _0x4d8cec=_0x1ac40b>0x1?void 0x0:_0x1ac40b?_0x5941e3(_0x4bf839,_0x2abace):_0x4bf839,_0x4959c4=_0x21d2c5['length']-0x1,_0x42a08e;_0x4959c4>=0x0;_0x4959c4--)(_0x42a08e=_0x21d2c5[_0x4959c4])&&(_0x4d8cec=(_0x1ac40b?_0x42a08e(_0x4bf839,_0x2abace,_0x4d8cec):_0x42a08e(_0x4d8cec))||_0x4d8cec);return _0x1ac40b&&_0x4d8cec&&_0x2ec75f(_0x4bf839,_0x2abace,_0x4d8cec),_0x4d8cec;},_0x1fdec6=(_0x81075,_0x23eefc)=>(_0x179a9f,_0x5c4f4d)=>_0x23eefc(_0x179a9f,_0x5c4f4d,_0x81075);let _0x1ffb94=class{constructor(_0x31c0d9,_0x5c73a5,_0x3d3988){const _0x5f1ef6=_0x464faf;this[_0x5f1ef6(0x38a)]=_0x31c0d9,this[_0x5f1ef6(0x24e)]=_0x5c73a5,this['_renderManagerService']=_0x3d3988;}['transformIMECache'](_0x89af03){const _0x4a89ea=_0x464faf;this[_0x4a89ea(0x30d)](_0x89af03),this[_0x4a89ea(0x249)](_0x89af03);}[_0x464faf(0x38f)](_0x44809a){const _0x3c1c33=_0x464faf,{unitID:_0x106acc}=_0x44809a,_0x10d43f=this[_0x3c1c33(0x2c2)]['getRenderById'](_0x106acc)[_0x3c1c33(0x29a)](_0x3efaf4['DocIMEInputManagerService']),{redoCache:_0x5c1836}=_0x10d43f['getUndoRedoMutationParamsCache']();if(_0x5c1836[_0x3c1c33(0x266)]===0x0)return _0x44809a;let _0x1ea263=_0x22bd76[_0x3c1c33(0x223)][_0x3c1c33(0x3ab)](_0x44809a[_0x3c1c33(0x4a5)][0x0]);for(let _0x1870df=0x0;_0x1870df<_0x5c1836[_0x3c1c33(0x266)];_0x1870df++){const _0x54be49={'id':_0x3c1c33(0x305),'params':{..._0x5c1836[_0x1870df]}},_0x4a2e6c=this[_0x3c1c33(0x24e)][_0x3c1c33(0x498)](_0x1ea263,_0x54be49,!0x1);if(_0x2cb6ec['isTransformMutationFailure'](_0x4a2e6c))throw _0x4a2e6c[_0x3c1c33(0x458)];_0x1ea263=_0x4a2e6c[_0x3c1c33(0x444)];}return{..._0x22bd76[_0x3c1c33(0x223)][_0x3c1c33(0x3ab)](_0x44809a),'mutations':[_0x1ea263]};}[_0x464faf(0x30d)](_0x163f3a){const _0x43ff6c=_0x464faf,{unitID:_0x25b3c0}=_0x163f3a,_0x25e25b=this[_0x43ff6c(0x2c2)]['getRenderById'](_0x25b3c0)['with'](_0x3efaf4['DocIMEInputManagerService']),{undoCache:_0x11f682,redoCache:_0x79c760}=_0x25e25b[_0x43ff6c(0x400)]();if(_0x11f682[_0x43ff6c(0x266)]===0x0||_0x79c760[_0x43ff6c(0x266)]===0x0)return;const _0x436965=[],_0x95046c=[];let _0x4d7250=_0x22bd76[_0x43ff6c(0x223)]['deepClone'](_0x163f3a['mutations'][0x0]),_0x4b0080=_0x22bd76['Tools']['deepClone'](_0x163f3a[_0x43ff6c(0x4a5)][0x0]);for(let _0x5ea463=_0x11f682['length']-0x1;_0x5ea463>=0x0;_0x5ea463--){const _0x3e1d20={'id':_0x43ff6c(0x305),'params':{..._0x11f682[_0x5ea463]}},_0xc04a40={'id':_0x43ff6c(0x305),'params':{..._0x79c760[_0x5ea463]}},_0x301a67=this[_0x43ff6c(0x24e)][_0x43ff6c(0x498)](_0x4d7250,_0x3e1d20,!0x1),_0x126d22=this[_0x43ff6c(0x24e)][_0x43ff6c(0x498)](_0x4b0080,_0xc04a40,!0x1);if(_0x2cb6ec[_0x43ff6c(0x204)](_0x301a67))throw _0x301a67['error'];if(_0x2cb6ec['isTransformMutationFailure'](_0x126d22))throw _0x126d22['error'];_0x436965[_0x43ff6c(0x31c)](_0x301a67[_0x43ff6c(0x275)][_0x43ff6c(0x4d5)]),_0x95046c[_0x43ff6c(0x31c)](_0x126d22[_0x43ff6c(0x275)][_0x43ff6c(0x4d5)]),_0x4d7250=_0x301a67['m1Prime'],_0x4b0080=_0x126d22[_0x43ff6c(0x444)];}_0x25e25b[_0x43ff6c(0x24c)]({'undoCache':_0x436965,'redoCache':_0x95046c});}[_0x464faf(0x249)](_0x327e05){const _0x475430=_0x464faf,{unitID:_0x5048c7}=_0x327e05,_0x2bbb6c=this[_0x475430(0x2c2)][_0x475430(0x4e0)](_0x5048c7)[_0x475430(0x29a)](_0x3efaf4[_0x475430(0x45f)]),_0x43b3da=_0x2bbb6c[_0x475430(0x1e0)]();if(_0x43b3da==null)return;const _0x2e78e9=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x327e05['unitID'],'actions':null,'textRanges':[_0x43b3da]}}],_0x3e7f6a=this['_transformService']['transformMutationsWithChangeset'](_0x327e05,_0x2e78e9);if(!_0x2cb6ec[_0x475430(0x4b0)](_0x3e7f6a))throw _0x3e7f6a[_0x475430(0x458)];const _0x51e406=_0x3e7f6a['m2Prime'][0x0][_0x475430(0x4d5)][_0x475430(0x56d)];Array['isArray'](_0x51e406)&&_0x51e406[_0x475430(0x266)]&&_0x2bbb6c[_0x475430(0x5b3)](_0x51e406[0x0]);}};_0x1ffb94=_0x405d29([_0x1fdec6(0x0,_0x22bd76[_0x464faf(0x568)](_0x22bd76[_0x464faf(0x5bb)])),_0x1fdec6(0x1,_0x2cb6ec[_0x464faf(0x53d)]),_0x1fdec6(0x2,_0x3ab0d3[_0x464faf(0x55e)])],_0x1ffb94);var _0x46aef5=Object['defineProperty'],_0x54cb1f=Object[_0x464faf(0x36f)],_0x11b2b5=(_0x37f8bf,_0x2a06ca,_0x325165,_0x7be283)=>{const _0x5738a4=_0x464faf;for(var _0x1c4e83=_0x7be283>0x1?void 0x0:_0x7be283?_0x54cb1f(_0x2a06ca,_0x325165):_0x2a06ca,_0x55db3a=_0x37f8bf[_0x5738a4(0x266)]-0x1,_0x5f158a;_0x55db3a>=0x0;_0x55db3a--)(_0x5f158a=_0x37f8bf[_0x55db3a])&&(_0x1c4e83=(_0x7be283?_0x5f158a(_0x2a06ca,_0x325165,_0x1c4e83):_0x5f158a(_0x1c4e83))||_0x1c4e83);return _0x7be283&&_0x1c4e83&&_0x46aef5(_0x2a06ca,_0x325165,_0x1c4e83),_0x1c4e83;},_0x283770=(_0x1fd50a,_0x8a6ff0)=>(_0x4f69ed,_0x10d47f)=>_0x8a6ff0(_0x4f69ed,_0x10d47f,_0x1fd50a);_0x19e906[_0x464faf(0x264)]=class extends _0x22bd76[_0x464faf(0x2b7)]{constructor(_0x1e1864,_0x56a437,_0x384aa4,_0x7c81e3,_0x363c24){const _0x3632df=_0x464faf;super(),_0x41b507(this,_0x3632df(0x1c0),new Map()),_0x41b507(this,_0x3632df(0x411),new Map()),_0x41b507(this,_0x3632df(0x4cf),!0x1),(this[_0x3632df(0x562)]=_0x1e1864,this['_localStorageService']=_0x56a437,this[_0x3632df(0x4cb)]=_0x384aa4,this[_0x3632df(0x4fc)]=_0x7c81e3,this[_0x3632df(0x1a3)]=_0x363c24,this[_0x3632df(0x52d)]());}[_0x464faf(0x59d)](){const _0x1106ef=_0x464faf;this[_0x1106ef(0x4cf)]=!0x0;}[_0x464faf(0x4d0)](){const _0x3684ba=_0x464faf;this[_0x3684ba(0x4cf)]=!0x1;}[_0x464faf(0x383)](){const _0x52fd61=_0x464faf;this[_0x52fd61(0x2b3)]()['then'](()=>super[_0x52fd61(0x383)]());}async[_0x464faf(0x283)](_0xc76952){const _0x22561d=_0x464faf;return this[_0x22561d(0x4cf)]?null:this[_0x22561d(0x338)][_0x22561d(0x1bd)](_0x2283b5(_0xc76952));}async[_0x464faf(0x55f)](_0x484ca4,_0x2fe3e7){const _0x28e1c9=_0x464faf;return!!this[_0x28e1c9(0x338)][_0x28e1c9(0x5b4)](_0x484ca4,_0x2fe3e7);}['updateOfflineData'](_0x36b3f4,_0x1b2337,_0x5b4d46,_0x1595cb){const _0x5b5a3e=_0x464faf,_0x5967f5=this[_0x5b5a3e(0x1a3)][_0x5b5a3e(0x1b5)](_0x36b3f4);this['_cachedData'][_0x5b5a3e(0x372)](_0x36b3f4,{'unitID':_0x36b3f4,'type':_0x1b2337,'awaitingChangeset':_0x5b4d46,'mutations':_0x1595cb,'rev':_0x5967f5}),this[_0x5b5a3e(0x411)]['has'](_0x36b3f4)||this[_0x5b5a3e(0x4da)](_0x36b3f4);}[_0x464faf(0x4da)](_0x4e5043){const _0x543075=_0x464faf,_0x50fc20=this[_0x543075(0x4f4)]();_0x50fc20===0x0?this[_0x543075(0x501)](_0x4e5043):this[_0x543075(0x411)][_0x543075(0x372)](_0x4e5043,setTimeout(()=>this[_0x543075(0x501)](_0x4e5043),_0x50fc20));}[_0x464faf(0x4f4)](){const _0x53af89=_0x464faf;var _0x457d45;return(_0x457d45=this['_configService'][_0x53af89(0x5b1)](_0x1c42e9))!=null?_0x457d45:0x3e8;}[_0x464faf(0x501)](_0x26139f){const _0xa7b83c=_0x464faf,_0x3f59c7=this['_saveTaskMap'][_0xa7b83c(0x321)](_0x26139f);return _0x3f59c7!==void 0x0&&window[_0xa7b83c(0x2a1)](_0x3f59c7),this['_localStorageService'][_0xa7b83c(0x5b4)](_0x2283b5(_0x26139f),this[_0xa7b83c(0x1c0)][_0xa7b83c(0x321)](_0x26139f))[_0xa7b83c(0x4a9)](()=>this[_0xa7b83c(0x411)][_0xa7b83c(0x331)](_0x26139f));}async[_0x464faf(0x2b3)](){const _0x15a89c=_0x464faf,_0x5d42ac=[];this[_0x15a89c(0x411)][_0x15a89c(0x1fc)]((_0x312bcf,_0x4a105f)=>{const _0x13c3a0=_0x15a89c;window[_0x13c3a0(0x2a1)](_0x312bcf),_0x5d42ac['push'](this[_0x13c3a0(0x501)](_0x4a105f)[_0x13c3a0(0x4a9)](()=>{const _0x3de4a4=_0x13c3a0;this[_0x3de4a4(0x411)][_0x3de4a4(0x331)](_0x4a105f);}));}),await Promise['all'](_0x5d42ac);}[_0x464faf(0x52d)](){const _0xa2f94c=_0x464faf;this[_0xa2f94c(0x241)](this[_0xa2f94c(0x4cb)][_0xa2f94c(0x523)](()=>{const _0x268e91=_0xa2f94c;if(this[_0x268e91(0x411)][_0x268e91(0x2cf)])return this[_0x268e91(0x4fc)]['t']('collaboration-client.offline-data-not-saved');}));}},_0x19e906['LocalCacheService']=_0x11b2b5([_0x283770(0x0,_0x22bd76[_0x464faf(0x55b)]),_0x283770(0x1,_0x22bd76[_0x464faf(0x3be)]),_0x283770(0x2,_0x1b23d2[_0x464faf(0x4be)]),_0x283770(0x3,_0x22bd76[_0x464faf(0x568)](_0x22bd76['LocaleService'])),_0x283770(0x4,_0x22bd76[_0x464faf(0x568)](_0x2cb6ec[_0x464faf(0x557)]))],_0x19e906[_0x464faf(0x264)]);function _0x2283b5(_0x32f9a6){const _0x3ec989=_0x464faf;return _0x3ec989(0x433)+_0x32f9a6;}var _0x220a32=Object['defineProperty'],_0x9edee8=Object[_0x464faf(0x36f)],_0x5d1245=(_0x54a0cf,_0x451e96,_0x458339,_0x3b4204)=>{for(var _0x2200a6=_0x3b4204>0x1?void 0x0:_0x3b4204?_0x9edee8(_0x451e96,_0x458339):_0x451e96,_0x3271b4=_0x54a0cf['length']-0x1,_0x36aec5;_0x3271b4>=0x0;_0x3271b4--)(_0x36aec5=_0x54a0cf[_0x3271b4])&&(_0x2200a6=(_0x3b4204?_0x36aec5(_0x451e96,_0x458339,_0x2200a6):_0x36aec5(_0x2200a6))||_0x2200a6);return _0x3b4204&&_0x2200a6&&_0x220a32(_0x451e96,_0x458339,_0x2200a6),_0x2200a6;},_0x4bb8fb=(_0x25ab3f,_0x15cd00)=>(_0x43123b,_0x437241)=>_0x15cd00(_0x43123b,_0x437241,_0x25ab3f);function _0x15614c(_0x3ea101){const _0x5869a8=_0x464faf,{unitID:_0x184f92,mutations:_0x47e780}=_0x3ea101;return{'unitId':_0x184f92,'subUnitId':_0x47e780[0x0][_0x5869a8(0x4d5)][_0x5869a8(0x574)]};}let _0xa1505e=class{constructor(_0x2181ad,_0x5f0c69,_0x9bd889){const _0x1df6a9=_0x464faf;this[_0x1df6a9(0x38a)]=_0x2181ad,this['_transformService']=_0x5f0c69,this[_0x1df6a9(0x1b1)]=_0x9bd889;}[_0x464faf(0x480)](_0xaba96f){const _0x3142e5=_0x464faf;var _0x13a395,_0x30cb3b,_0x4584ae,_0x3db322,_0x2deada;const _0x38cd72=this[_0x3142e5(0x38a)][_0x3142e5(0x321)](_0x38d7d8[_0x3142e5(0x24d)]),{unitId:_0x2bb85c,subUnitId:_0xcd4006}=_0x15614c(_0xaba96f),_0x43a4c0=_0x38cd72[_0x3142e5(0x261)](_0x2bb85c)['getCurrentSelections'](),_0xe0cab6=(_0x30cb3b=(_0x13a395=this[_0x3142e5(0x1b1)][_0x3142e5(0x2da)](_0x2bb85c))==null?void 0x0:_0x13a395[_0x3142e5(0x590)]())==null?void 0x0:_0x30cb3b['getSheetId']();if(_0x43a4c0['length']===0x0||!_0x2bb85c||!_0xcd4006)return;const _0x1c2f62=[{'id':_0x38d7d8[_0x3142e5(0x4a7)]['id'],'params':{'unitId':_0x2bb85c,'subUnitId':_0xe0cab6,'selections':_0x22bd76['Tools'][_0x3142e5(0x3ab)](_0x43a4c0)}}],_0x1a19db=this[_0x3142e5(0x24e)][_0x3142e5(0x1de)](_0xaba96f,_0x1c2f62);if(!_0x2cb6ec[_0x3142e5(0x4b0)](_0x1a19db))throw _0x1a19db[_0x3142e5(0x458)];const _0x22f172=(_0x2deada=(_0x3db322=(_0x4584ae=_0x1a19db[_0x3142e5(0x275)][0x0])==null?void 0x0:_0x4584ae['params'])==null?void 0x0:_0x3db322[_0x3142e5(0x4d4)])!=null?_0x2deada:_0x43a4c0;Array['isArray'](_0x22f172)&&_0x22f172[_0x3142e5(0x266)]&&this[_0x3142e5(0x38a)][_0x3142e5(0x321)](_0x22bd76[_0x3142e5(0x4ae)])[_0x3142e5(0x38c)](_0x38d7d8[_0x3142e5(0x4a7)]['id'],{'unitId':_0x2bb85c,'subUnitId':_0xcd4006,'selections':_0x22f172});}};_0xa1505e=_0x5d1245([_0x4bb8fb(0x0,_0x22bd76[_0x464faf(0x568)](_0x22bd76['Injector'])),_0x4bb8fb(0x1,_0x2cb6ec[_0x464faf(0x53d)]),_0x4bb8fb(0x2,_0x22bd76[_0x464faf(0x3a0)])],_0xa1505e);const _0x4b8af1=_0x22bd76['createIdentifier']('univer-pro.collaboration-client.single-active-unit-service');var _0x32afde=(_0x402fa9=>(_0x402fa9[_0x402fa9['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x464faf(0x21d),_0x402fa9[_0x402fa9[_0x464faf(0x20f)]=0x1]=_0x464faf(0x20f),_0x402fa9))(_0x32afde||{});const _0x4316dc=0x7530,_0x2d72ef=_0x464faf(0x22f);class _0x5474b1 extends _0x22bd76['Disposable']{constructor(){const _0x26e714=_0x464faf;super(),_0x41b507(this,_0x26e714(0x244),_0x22bd76['Tools'][_0x26e714(0x44c)]()),_0x41b507(this,_0x26e714(0x1f1),new Set()),_0x41b507(this,'_unitOnClients',new Map()),_0x41b507(this,_0x26e714(0x4dc),null),_0x41b507(this,'_clearOtherTimers',new Map()),_0x41b507(this,_0x26e714(0x2bc),new Map()),this[_0x26e714(0x239)]();}[_0x464faf(0x383)](){const _0x510362=_0x464faf;super[_0x510362(0x383)](),this[_0x510362(0x41a)][_0x510362(0x1fc)]((_0x43fc2d,_0x75dba8)=>this[_0x510362(0x248)](_0x75dba8)),this[_0x510362(0x4dc)]&&window[_0x510362(0x396)](this[_0x510362(0x4dc)]);}[_0x464faf(0x475)](_0x4b13d4){const _0x46c35c=_0x464faf;return this[_0x46c35c(0x358)](_0x4b13d4)[_0x46c35c(0x457)](_0xb468a3[_0x46c35c(0x53b)]());}[_0x464faf(0x476)](_0x3cf327){const _0x53cea2=_0x464faf;this[_0x53cea2(0x1f1)]['size']===0x0&&this[_0x53cea2(0x57d)](),this['_selfUnitIDs'][_0x53cea2(0x59b)](_0x3cf327),this[_0x53cea2(0x1b8)]({'type':0x0,'memberID':this[_0x53cea2(0x244)],'unitIDs':[_0x3cf327],'isForwarded':!0x1});}[_0x464faf(0x328)](_0x259cd8){const _0x45475a=_0x464faf;this[_0x45475a(0x1f1)]['delete'](_0x259cd8),this[_0x45475a(0x1f1)][_0x45475a(0x2cf)]===0x0&&this['_heartbeatTimer']&&window[_0x45475a(0x396)](this['_heartbeatTimer']);}[_0x464faf(0x239)](){const _0x4d29ed=_0x464faf;this[_0x4d29ed(0x241)](_0x22bd76[_0x4d29ed(0x2ec)](_0xb468a3[_0x4d29ed(0x36c)](window,_0x4d29ed(0x1ae))[_0x4d29ed(0x1d7)](_0x4e5def=>{const _0x4f548c=_0x4d29ed;if(_0x4e5def[_0x4f548c(0x259)]!==_0x2d72ef||!_0x4e5def[_0x4f548c(0x1ba)])return;const _0x3f51b7=JSON[_0x4f548c(0x217)](_0x4e5def[_0x4f548c(0x1ba)]);this[_0x4f548c(0x477)](_0x3f51b7);}))),window[_0x4d29ed(0x265)]('unload',()=>this[_0x4d29ed(0x1b8)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x4d29ed(0x2ad)](this[_0x4d29ed(0x1f1)])}));}[_0x464faf(0x477)](_0x318994){const _0x840115=_0x464faf;switch(_0x318994['type']){case 0x0:this['_handleJoinEvent'](_0x318994);break;case 0x1:this[_0x840115(0x455)](_0x318994);break;case 0x2:this['_handleHeartbeatEvent'](_0x318994);break;}}[_0x464faf(0x3a9)](_0x245d5a){const _0xf1f0a2=_0x464faf,{unitIDs:_0x7c83a2,memberID:_0x32cf15,isForwarded:_0x38d36b}=_0x245d5a;_0x7c83a2['forEach'](_0x538d31=>{const _0x4f71cd=_0x437d;if(!_0x38d36b&&this['_unitOnClients'][_0x4f71cd(0x2e2)](_0x538d31)&&this['_ensureSubject'](_0x538d31)[_0x4f71cd(0x4d2)](0x1),!this[_0x4f71cd(0x221)][_0x4f71cd(0x2e2)](_0x538d31)||!this[_0x4f71cd(0x221)][_0x4f71cd(0x321)](_0x538d31)[_0x4f71cd(0x2e2)](_0x32cf15)){const _0x24bad7=this['_unitOnClients']['get'](_0x538d31)||new Set();_0x24bad7[_0x4f71cd(0x59b)](_0x32cf15),this[_0x4f71cd(0x221)][_0x4f71cd(0x372)](_0x538d31,_0x24bad7),this['_scheduleClearOtherTimer'](_0x32cf15);}}),_0x38d36b||this['_send']({'type':0x0,'memberID':this[_0xf1f0a2(0x244)],'unitIDs':[...this[_0xf1f0a2(0x1f1)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x2b6e3f){const _0x535115=_0x464faf;this[_0x535115(0x248)](_0x2b6e3f);const _0x366156=window[_0x535115(0x3c9)](()=>{const _0x13cbae=_0x535115;this[_0x13cbae(0x221)]['forEach'](_0x18106f=>{const _0x139eed=_0x13cbae;_0x18106f[_0x139eed(0x331)](_0x2b6e3f);});},_0x4316dc*0x2);this['_clearOtherTimers'][_0x535115(0x372)](_0x2b6e3f,_0x366156);}['_removeClearOtherTimer'](_0x71d60b){const _0x7fc30b=_0x464faf;if(this[_0x7fc30b(0x41a)][_0x7fc30b(0x2e2)](_0x71d60b)){const _0x223c7a=this[_0x7fc30b(0x41a)]['get'](_0x71d60b);_0x223c7a&&window[_0x7fc30b(0x2a1)](_0x223c7a),this['_clearOtherTimers'][_0x7fc30b(0x372)](_0x71d60b,null);}}[_0x464faf(0x455)](_0x2abf7a){const _0x204163=_0x464faf,{memberID:_0x3b4430,unitIDs:_0x136b22}=_0x2abf7a;_0x136b22[_0x204163(0x1fc)](_0x163c5c=>{const _0xe6bc9a=_0x204163;var _0x129418;const _0x5d6341=this['_unitOnClients']['get'](_0x163c5c);_0x5d6341&&(_0x5d6341[_0xe6bc9a(0x331)](_0x3b4430),(_0x129418=this['_ensureSubject'](_0x163c5c))==null||_0x129418['next'](_0x5d6341[_0xe6bc9a(0x2cf)]===0x0?0x0:0x1));}),this[_0x204163(0x248)](_0x3b4430);}[_0x464faf(0x1fa)](_0x27dbca){const _0x54611b=_0x464faf;this[_0x54611b(0x260)](_0x27dbca[_0x54611b(0x35e)]);}[_0x464faf(0x1b8)](_0x2923a4){const _0x799fcb=_0x464faf;localStorage[_0x799fcb(0x5b4)](_0x2d72ef,JSON[_0x799fcb(0x4c2)](_0x2923a4));}[_0x464faf(0x57d)](){const _0x5bd8a9=_0x464faf;this[_0x5bd8a9(0x4dc)]=window[_0x5bd8a9(0x484)](()=>{const _0x137468=_0x5bd8a9;this[_0x137468(0x1b8)]({'type':0x2,'memberID':this['_id']});},_0x4316dc);}[_0x464faf(0x358)](_0x5d6ebe){const _0x1dab7d=_0x464faf;return this[_0x1dab7d(0x2bc)][_0x1dab7d(0x2e2)](_0x5d6ebe)||this[_0x1dab7d(0x2bc)][_0x1dab7d(0x372)](_0x5d6ebe,new _0xb468a3[(_0x1dab7d(0x579))](0x0)),this[_0x1dab7d(0x2bc)][_0x1dab7d(0x321)](_0x5d6ebe);}}function _0x33c720(_0x30fd1d){const _0x4c1ead=_0x464faf;let _0x509d98='';for(const _0x20cf8 of _0x30fd1d){const {startOffset:_0x49a179,endOffset:_0x59b08d,isActive:_0xf54e72}=_0x20cf8;_0x509d98[_0x4c1ead(0x266)]&&(_0x509d98+=','),_0x509d98+=_0x49a179+':'+_0x59b08d+':'+(_0xf54e72?'1':'0');}return _0x509d98;}function _0x488ea0(_0x1daf75){const _0x549087=_0x464faf,_0xbaaf88=_0x1daf75[_0x549087(0x58a)](','),_0x4ade55=[];for(const _0x133de1 of _0xbaaf88){const [_0x31840b,_0x31b527,_0x3852bf]=_0x133de1[_0x549087(0x58a)](':');_0x4ade55[_0x549087(0x4a6)]({'startOffset':Number(_0x31840b),'endOffset':Number(_0x31b527),'collapsed':_0x31840b===_0x31b527,'isActive':_0x3852bf==='1'});}return _0x4ade55[_0x549087(0x203)](_0x1c8fdc=>_0x1c8fdc[_0x549087(0x362)])||(_0x4ade55[0x0]['isActive']=!0x0),_0x4ade55;}class _0x43e255 extends _0x22bd76[_0x464faf(0x5c2)]{constructor(){const _0x1eed26=_0x464faf;super(...arguments),_0x41b507(this,_0x1eed26(0x4bf),new _0xb468a3[(_0x1eed26(0x579))](null)),_0x41b507(this,_0x1eed26(0x527),this[_0x1eed26(0x4bf)][_0x1eed26(0x45e)]());}['syncEditingCollabCursor'](_0x4c6754){const _0x1008b7=_0x464faf,{unitID:_0x142b91,memberID:_0x166b4a,textRanges:_0x4acad7}=_0x4c6754,_0x9aa714=_0x33c720(_0x4acad7),_0x46d2da={'unitID':_0x142b91,'memberID':_0x166b4a,'selection':_0x9aa714};this[_0x1008b7(0x4bf)][_0x1008b7(0x4d2)](_0x46d2da);}}var _0x28e5a9=Object[_0x464faf(0x229)],_0x4f1952=Object[_0x464faf(0x36f)],_0x2d5a5b=(_0x1dac5a,_0x470b38,_0x570417,_0x2226e2)=>{for(var _0x3ee22b=_0x2226e2>0x1?void 0x0:_0x2226e2?_0x4f1952(_0x470b38,_0x570417):_0x470b38,_0x103db9=_0x1dac5a['length']-0x1,_0x194c5d;_0x103db9>=0x0;_0x103db9--)(_0x194c5d=_0x1dac5a[_0x103db9])&&(_0x3ee22b=(_0x2226e2?_0x194c5d(_0x470b38,_0x570417,_0x3ee22b):_0x194c5d(_0x3ee22b))||_0x3ee22b);return _0x2226e2&&_0x3ee22b&&_0x28e5a9(_0x470b38,_0x570417,_0x3ee22b),_0x3ee22b;},_0x513852=(_0x44975e,_0xe0cdb2)=>(_0x20f95b,_0x4cdb9e)=>_0xe0cdb2(_0x20f95b,_0x4cdb9e,_0x44975e);let _0x529ffa=class{constructor(_0x34d441,_0x1e150c){const _0x15da2b=_0x464faf;this[_0x15da2b(0x38a)]=_0x34d441,this[_0x15da2b(0x24e)]=_0x1e150c;}['transformSelections'](_0x2171f1){const _0x50b2e3=_0x464faf;var _0x51f2a5;const _0x592945=this[_0x50b2e3(0x38a)][_0x50b2e3(0x321)](_0x369ae4[_0x50b2e3(0x385)]),_0x2ae320=(_0x51f2a5=_0x592945[_0x50b2e3(0x1ad)]())!=null?_0x51f2a5:[];if(_0x2ae320['length']===0x0)return;const _0x71d7fe=[{'id':_0x50b2e3(0x305),'params':{'unitId':_0x2171f1['unitID'],'actions':null,'textRanges':_0x2ae320}}],_0x527d52=this['_transformService']['transformMutationsWithChangeset'](_0x2171f1,_0x71d7fe);if(!_0x2cb6ec[_0x50b2e3(0x4b0)](_0x527d52))throw _0x527d52['error'];const _0x17b025=_0x527d52[_0x50b2e3(0x275)][0x0][_0x50b2e3(0x4d5)][_0x50b2e3(0x56d)];Array['isArray'](_0x17b025)&&_0x17b025[_0x50b2e3(0x266)]&&_0x592945['replaceTextRanges'](_0x17b025,!0x1);}};_0x529ffa=_0x2d5a5b([_0x513852(0x0,_0x22bd76[_0x464faf(0x568)](_0x22bd76[_0x464faf(0x5bb)])),_0x513852(0x1,_0x2cb6ec['ITransformService'])],_0x529ffa);const _0x1c3daa=new Set([_0x38d7d8['InsertSheetMutation']['id']]);function _0x14860a(_0x58729c,_0xf9f28a,_0x3b99a1,_0x49e3c6,_0x86ff44){const _0x3255ec=_0x464faf;var _0x214eb2,_0x505365,_0x27f0c9,_0x4c492f;const _0x33164c=[];for(const _0x2b1cc7 of _0x58729c)if(_0x1c3daa[_0x3255ec(0x2e2)](_0x2b1cc7['id'])){if(_0x33164c['length']>0x0)break;_0x33164c[_0x3255ec(0x4a6)](_0x2b1cc7);break;}else _0x33164c['push'](_0x2b1cc7);const _0x23bf13=(_0x505365=(_0x214eb2=_0x86ff44['getCurrentUser']())==null?void 0x0:_0x214eb2[_0x3255ec(0x4b2)])!=null?_0x505365:'unknown',_0x14cf2c=(_0x4c492f=(_0x27f0c9=_0x86ff44['getCurrentUser']())==null?void 0x0:_0x27f0c9['memberID'])!=null?_0x4c492f:_0x3255ec(0x2b0);return{'changeset':{'unitID':_0xf9f28a,'type':_0x2cb6ec[_0x3255ec(0x284)](_0x3b99a1['getUnitType'](_0xf9f28a)),'baseRev':_0x49e3c6[_0x3255ec(0x1b5)](_0xf9f28a),'revision':0x0,'userID':_0x23bf13,'memberID':_0x14cf2c,'mutations':_0x33164c},'pendingMutations':_0x58729c[_0x3255ec(0x5ba)](_0x33164c[_0x3255ec(0x266)])};}function _0x2dda07(_0x474d77,_0x53a7fd,_0x5727d1,_0x239874,_0x1b8121){const _0x2e9c7b=_0x464faf;var _0xa0b95e,_0x5b771e,_0x21c2a2,_0x3654b6;const _0x3230b6=[_0x474d77['reduce']((_0x72d975,_0x205884)=>{const _0x159f9d=_0x437d;var _0x56ab76;const {id:_0x5d0dd5}=_0x72d975,{id:_0x3ee2c2,type:_0x1a2bfc}=_0x205884,_0x43099c=(_0x56ab76=_0x72d975[_0x159f9d(0x4d5)])!=null?_0x56ab76:{'actions':null},_0x5b7cc5=_0x205884[_0x159f9d(0x4d5)];if(_0x5d0dd5&&_0x5d0dd5!==_0x3ee2c2)throw new Error(_0x159f9d(0x3d7)+_0x5d0dd5+_0x159f9d(0x519)+_0x3ee2c2+'.');return{..._0x72d975,'id':_0x3ee2c2,'type':_0x1a2bfc,'params':{'unitId':_0x5b7cc5[_0x159f9d(0x3eb)],'textRanges':_0x5b7cc5['textRanges'],'actions':_0x22bd76[_0x159f9d(0x46c)][_0x159f9d(0x29e)](_0x43099c[_0x159f9d(0x1a2)],_0x5b7cc5['actions'])}};},{})],_0x297bdd=(_0x5b771e=(_0xa0b95e=_0x1b8121[_0x2e9c7b(0x348)]())==null?void 0x0:_0xa0b95e[_0x2e9c7b(0x4b2)])!=null?_0x5b771e:_0x2e9c7b(0x2b0),_0x2feb65=(_0x3654b6=(_0x21c2a2=_0x1b8121['getCurrentUser']())==null?void 0x0:_0x21c2a2['memberID'])!=null?_0x3654b6:_0x2e9c7b(0x2b0);return{'changeset':{'unitID':_0x53a7fd,'type':_0x2cb6ec[_0x2e9c7b(0x284)](_0x5727d1['getUnitType'](_0x53a7fd)),'baseRev':_0x239874['getCurrentRevOfUnit'](_0x53a7fd),'revision':0x0,'userID':_0x297bdd,'memberID':_0x2feb65,'mutations':_0x3230b6},'pendingMutations':[]};}const _0x5493e5={'id':_0x38d7d8[_0x464faf(0x2de)]['id'],'type':_0x22bd76[_0x464faf(0x2d6)][_0x464faf(0x2eb)],'params':{}};var _0xe66d58=Object[_0x464faf(0x229)],_0x3ad569=Object['getOwnPropertyDescriptor'],_0x147561=(_0x38507c,_0x48525d,_0x592b31,_0x4e3ada)=>{for(var _0x4ff37a=_0x4e3ada>0x1?void 0x0:_0x4e3ada?_0x3ad569(_0x48525d,_0x592b31):_0x48525d,_0x231b09=_0x38507c['length']-0x1,_0x17c0f5;_0x231b09>=0x0;_0x231b09--)(_0x17c0f5=_0x38507c[_0x231b09])&&(_0x4ff37a=(_0x4e3ada?_0x17c0f5(_0x48525d,_0x592b31,_0x4ff37a):_0x17c0f5(_0x4ff37a))||_0x4ff37a);return _0x4e3ada&&_0x4ff37a&&_0xe66d58(_0x48525d,_0x592b31,_0x4ff37a),_0x4ff37a;},_0x18ef17=(_0x269d8c,_0x4727a3)=>(_0x1827d8,_0x2b391d)=>_0x4727a3(_0x1827d8,_0x2b391d,_0x269d8c),_0x29599c=(_0x2af8ec=>(_0x2af8ec[_0x464faf(0x2ba)]=_0x464faf(0x431),_0x2af8ec[_0x464faf(0x402)]=_0x464faf(0x1ab),_0x2af8ec[_0x464faf(0x1b6)]='pending',_0x2af8ec[_0x464faf(0x3bf)]='awaiting',_0x2af8ec[_0x464faf(0x26d)]='awaiting_with_pending',_0x2af8ec[_0x464faf(0x303)]=_0x464faf(0x1f6),_0x2af8ec[_0x464faf(0x5b6)]=_0x464faf(0x4e6),_0x2af8ec[_0x464faf(0x374)]=_0x464faf(0x307),_0x2af8ec))(_0x29599c||{});class _0x245ce4{constructor(_0x1831e8,_0x251495,_0x551cc6,_0x5b9549,_0x4982b4,_0x58d789,_0x4103c9,_0x43d2ad,_0x1993b2){const _0x3c9fdd=_0x464faf;_0x41b507(this,_0x3c9fdd(0x5a5),null),_0x41b507(this,'_pendingMutations',[]),(this['unitID']=_0x1831e8,this[_0x3c9fdd(0x2e4)]=_0x251495,this[_0x3c9fdd(0x508)]=_0x4982b4,this[_0x3c9fdd(0x382)]=_0x58d789,this[_0x3c9fdd(0x3bd)]=_0x4103c9,this[_0x3c9fdd(0x1a3)]=_0x43d2ad,this['_localCacheService']=_0x1993b2,this[_0x3c9fdd(0x5a5)]=_0x551cc6,this['_pendingMutations']=_0x5b9549);}[_0x464faf(0x4a0)](_0x38ce17){const _0xff93c=_0x464faf,_0x5db34d=this[_0xff93c(0x1a3)][_0xff93c(0x1b5)](this['unitID']);return _0x38ce17[_0xff93c(0x292)]>_0x5db34d+0x1?(this['_handler']['onMissingChangesets']({'from':_0x5db34d,'to':_0x38ce17['revision']-0x1}),!0x0):!0x1;}[_0x464faf(0x40d)](_0x2ff9df){const _0x2414f5=_0x464faf;this[_0x2414f5(0x3bd)][_0x2414f5(0x591)](this[_0x2414f5(0x268)],_0x2ff9df);}[_0x464faf(0x437)](_0x40a21){const _0x29f637=_0x464faf;var _0x4a4d2f,_0xe76a9b;(_0xe76a9b=(_0x4a4d2f=this[_0x29f637(0x508)])['onTransformSelections'])==null||_0xe76a9b[_0x29f637(0x5b8)](_0x4a4d2f,_0x40a21);}[_0x464faf(0x1dd)](_0xc8d00b){const _0x36899f=_0x464faf;var _0x381db0,_0x4595f4;return(_0x4595f4=(_0x381db0=this['_handler'])[_0x36899f(0x53f)])==null?void 0x0:_0x4595f4[_0x36899f(0x5b8)](_0x381db0,_0xc8d00b);}[_0x464faf(0x28b)](_0x2a1e68){const _0x2fa3e0=_0x464faf;var _0x5238ca,_0x149d7b,_0x29ee70;return(_0x29ee70=(_0x149d7b=(_0x5238ca=this['_handler'])[_0x2fa3e0(0x40b)])==null?void 0x0:_0x149d7b[_0x2fa3e0(0x5b8)](_0x5238ca,_0x2a1e68))!=null?_0x29ee70:_0x2a1e68;}[_0x464faf(0x245)](_0x36fe57){const _0x14d92d=_0x464faf;var _0x13208e,_0x2d6576;if(this[_0x14d92d(0x2e4)]===_0x2341fc['UNIVER_DOC']){const {unitID:_0x1836f7,mutations:_0x20804e,memberID:_0x3ebd61}=_0x36fe57,_0x466326=_0x20804e[0x0][_0x14d92d(0x4d5)][_0x14d92d(0x56d)];Array[_0x14d92d(0x564)](_0x466326)&&_0x466326[_0x14d92d(0x266)]>0x0&&((_0x2d6576=(_0x13208e=this[_0x14d92d(0x508)])[_0x14d92d(0x41d)])==null||_0x2d6576[_0x14d92d(0x5b8)](_0x13208e,{'unitID':_0x1836f7,'memberID':_0x3ebd61,'textRanges':_0x466326}));}}[_0x464faf(0x58c)](){const _0x133619=_0x464faf;this[_0x133619(0x1c7)][_0x133619(0x375)](this[_0x133619(0x268)],this[_0x133619(0x2e4)],this[_0x133619(0x5a5)],this[_0x133619(0x436)]);}[_0x464faf(0x48a)](){const _0x3e549b=_0x464faf;return this[_0x3e549b(0x1a3)][_0x3e549b(0x1b5)](this[_0x3e549b(0x268)]);}[_0x464faf(0x209)](){const _0x1c2e49=_0x464faf;this[_0x1c2e49(0x1a3)][_0x1c2e49(0x1be)](this[_0x1c2e49(0x268)]);}[_0x464faf(0x395)](_0x3b33af){const _0x355f08=_0x464faf;var _0x241eb8;const _0x36283a=this[_0x355f08(0x28b)](_0x3b33af),_0x59b93a=_0x22bd76['sequenceExecute'](_0x36283a[_0x355f08(0x4a5)],this['_commandService'],{'fromCollab':!0x0});if(!_0x59b93a[_0x355f08(0x320)])throw _0x59b93a[_0x355f08(0x458)]instanceof Error?_0x59b93a[_0x355f08(0x458)]:new Error((_0x241eb8=_0x59b93a[_0x355f08(0x458)])!=null?_0x241eb8:_0x355f08(0x3cc));this[_0x355f08(0x1dd)](_0x36283a),this[_0x355f08(0x40d)](_0x3b33af),this['_transformSelections'](_0x36283a),this[_0x355f08(0x245)](_0x36283a),this[_0x355f08(0x209)]();}}let _0x46582e=class extends _0x245ce4{constructor(_0xbe9d2f,_0x3a2c4b,_0x39c57a,_0x2a1871,_0xbb9b81,_0x5c776c,_0x31d3ba,_0x3fd96f,_0x24e88f,_0x307509){const _0x3fcce1=_0x464faf;super(_0xbe9d2f,_0x3a2c4b,null,[],_0x39c57a,_0x3fd96f,_0x31d3ba,_0x2a1871,_0xbb9b81),_0x41b507(this,_0x3fcce1(0x222),'synced'),(this[_0x3fcce1(0x38a)]=_0x5c776c,this['_logService']=_0x24e88f,this[_0x3fcce1(0x24e)]=_0x307509);}[_0x464faf(0x478)](_0x3331e9){const _0xba8259=_0x464faf,_0x1b150d=this['_injector'][_0xba8259(0x3ae)](_0x52372b,this[_0xba8259(0x268)],this[_0xba8259(0x2e4)],[_0x3331e9],this[_0xba8259(0x508)]);return _0x1b150d[_0xba8259(0x269)](),_0x1b150d[_0xba8259(0x58c)](),_0x1b150d;}[_0x464faf(0x565)](_0x394cb4){const _0x3a536d=_0x464faf;if(this[_0x3a536d(0x4a0)](_0x394cb4))return this[_0x3a536d(0x38a)][_0x3a536d(0x3ae)](_0x4f6034,this[_0x3a536d(0x268)],this['type'],null,[],null,[_0x394cb4],this[_0x3a536d(0x508)]);try{const _0x35bd1c=this[_0x3a536d(0x24e)][_0x3a536d(0x1de)](_0x394cb4,[_0x5493e5]);if(_0x2cb6ec[_0x3a536d(0x4b0)](_0x35bd1c)){const {c1Prime:_0x55b1a5}=_0x35bd1c;return this['_executeRemoteChangeset'](_0x55b1a5),this;}throw _0x35bd1c[_0x3a536d(0x458)];}catch(_0x132f97){return this[_0x3a536d(0x4c0)][_0x3a536d(0x458)](_0x132f97),this[_0x3a536d(0x285)](!0x1);}}[_0x464faf(0x285)](_0x29d619){const _0x35daa9=_0x464faf;return this[_0x35daa9(0x38a)]['createInstance'](_0x4732c4,this[_0x35daa9(0x268)],this[_0x35daa9(0x2e4)],null,[],this['_handler'],_0x29d619);}[_0x464faf(0x342)](){const _0x4db82a=_0x464faf;throw new Error(_0x4db82a(0x422));}[_0x464faf(0x456)](){const _0x23e601=_0x464faf;throw new Error(_0x23e601(0x1b3));}[_0x464faf(0x207)](){const _0x1a6a2e=_0x464faf;return this[_0x1a6a2e(0x38a)]['createInstance'](_0x563a32,this['unitID'],this[_0x1a6a2e(0x2e4)],null,[],this[_0x1a6a2e(0x508)]);}['toggleOnline'](){return this;}[_0x464faf(0x381)](){const _0x4101b3=_0x464faf;throw new Error(_0x4101b3(0x3a3));}[_0x464faf(0x273)](){const _0x318e20=_0x464faf,_0x5ddee2=this[_0x318e20(0x1a3)][_0x318e20(0x1b5)](this[_0x318e20(0x268)]);return this[_0x318e20(0x508)][_0x318e20(0x2b2)]({'from':_0x5ddee2,'to':0x0}),this[_0x318e20(0x38a)][_0x318e20(0x3ae)](_0x4f6034,this[_0x318e20(0x268)],this[_0x318e20(0x2e4)],null,[],null,[],this[_0x318e20(0x508)]);}};_0x46582e=_0x147561([_0x18ef17(0x3,_0x22bd76[_0x464faf(0x568)](_0x2cb6ec['RevisionService'])),_0x18ef17(0x4,_0x22bd76[_0x464faf(0x568)](_0x19e906[_0x464faf(0x264)])),_0x18ef17(0x5,_0x22bd76['Inject'](_0x22bd76['Injector'])),_0x18ef17(0x6,_0x22bd76[_0x464faf(0x56b)]),_0x18ef17(0x7,_0x22bd76[_0x464faf(0x4ae)]),_0x18ef17(0x8,_0x22bd76['ILogService']),_0x18ef17(0x9,_0x2cb6ec[_0x464faf(0x53d)])],_0x46582e);let _0x52372b=class extends _0x245ce4{constructor(_0x3d1c53,_0x39e1e1,_0x356b56,_0x2e0a20,_0x2609ed,_0x4aecc9,_0x4f0cad,_0x5334c9,_0x2a369f,_0x304022,_0x3575b4,_0x432b82,_0x23379b,_0x5e9c6d){const _0x3746d5=_0x464faf;super(_0x3d1c53,_0x39e1e1,null,_0x356b56,_0x2e0a20,_0x304022,_0x5e9c6d,_0x4aecc9,_0x4f0cad),_0x41b507(this,'status',_0x3746d5(0x4a4)),_0x41b507(this,'_scheduleTimestamp',null),_0x41b507(this,_0x3746d5(0x2ae),null),(this[_0x3746d5(0x38a)]=_0x2609ed,this[_0x3746d5(0x4bd)]=_0x5334c9,this[_0x3746d5(0x4c0)]=_0x2a369f,this[_0x3746d5(0x562)]=_0x3575b4,this[_0x3746d5(0x24e)]=_0x432b82,this['_univerInstanceService']=_0x23379b);}[_0x464faf(0x478)](_0x3756ea){const _0x5bb784=_0x464faf;return this[_0x5bb784(0x436)][_0x5bb784(0x4a6)](_0x3756ea),this[_0x5bb784(0x58c)](),this;}['onRemoteChangeset'](_0x3ace7a){const _0x19dfd5=_0x464faf;if(this[_0x19dfd5(0x4a0)](_0x3ace7a))return this['_clearScheduledTask'](),this[_0x19dfd5(0x38a)][_0x19dfd5(0x3ae)](_0x4f6034,this[_0x19dfd5(0x268)],this[_0x19dfd5(0x2e4)],null,this[_0x19dfd5(0x436)],null,[_0x3ace7a],this[_0x19dfd5(0x508)]);try{const _0x31e32f=this[_0x19dfd5(0x24e)]['transformMutationsWithChangeset'](_0x3ace7a,this['_pendingMutations']);if(_0x2cb6ec[_0x19dfd5(0x4b0)](_0x31e32f)){const {c1Prime:_0x18cce9,m2Prime:_0xba4b7c}=_0x31e32f;this['_executeRemoteChangeset'](_0x18cce9);const _0x5e83bd=this[_0x19dfd5(0x38a)]['createInstance'](_0x52372b,this[_0x19dfd5(0x268)],this[_0x19dfd5(0x2e4)],_0xba4b7c,this[_0x19dfd5(0x508)]);return this['_clearScheduledTask'](),_0x5e83bd[_0x19dfd5(0x269)](this[_0x19dfd5(0x1ef)]?Math[_0x19dfd5(0x3b9)](0x0,new Date()[_0x19dfd5(0x2dc)]()-this[_0x19dfd5(0x1ef)]):this['_getSendChangesetTimeout']()),_0x5e83bd;}throw _0x31e32f[_0x19dfd5(0x458)];}catch(_0x3e6261){return this[_0x19dfd5(0x4c0)][_0x19dfd5(0x458)](_0x3e6261),this['_onConflict'](!0x1);}}['onRemoteAck'](){const _0x3620bb=_0x464faf;throw new Error(_0x3620bb(0x3d2));}[_0x464faf(0x456)](){throw new Error('[PendingState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x1b317e=_0x464faf;return this[_0x1b317e(0x3e5)](),this[_0x1b317e(0x38a)][_0x1b317e(0x3ae)](_0x563a32,this['unitID'],this[_0x1b317e(0x2e4)],null,this['_pendingMutations'],this[_0x1b317e(0x508)]);}[_0x464faf(0x2f7)](){return this;}[_0x464faf(0x269)](_0x30cc15){const _0x478e40=_0x464faf,_0x522297=_0x30cc15!=null?_0x30cc15:this['_getSendChangesetTimeout']();this[_0x478e40(0x1ef)]=new Date()[_0x478e40(0x2dc)](),this[_0x478e40(0x2ae)]=window[_0x478e40(0x3c9)](()=>{const _0x1d79ed=_0x478e40;this['_clearScheduledTask']();let _0x57efdc=null;switch(this[_0x1d79ed(0x2e4)]){case _0x2341fc['UNIVER_SHEET']:{_0x57efdc=_0x14860a(this[_0x1d79ed(0x436)],this['unitID'],this[_0x1d79ed(0x334)],this[_0x1d79ed(0x1a3)],this['_memberService']);break;}case _0x2341fc[_0x1d79ed(0x3c1)]:{this[_0x1d79ed(0x436)][_0x1d79ed(0x46e)](_0x5caa64=>_0x5caa64['id']===_0x369ae4[_0x1d79ed(0x425)]['id'])?_0x57efdc=_0x2dda07(this[_0x1d79ed(0x436)],this['unitID'],this[_0x1d79ed(0x334)],this['_revisionService'],this[_0x1d79ed(0x4bd)]):_0x57efdc=_0x14860a(this[_0x1d79ed(0x436)],this[_0x1d79ed(0x268)],this[_0x1d79ed(0x334)],this[_0x1d79ed(0x1a3)],this['_memberService']);break;}default:throw new Error(_0x1d79ed(0x240)+this[_0x1d79ed(0x2e4)]+_0x1d79ed(0x54f));}const {changeset:_0x46db80,pendingMutations:_0x31b2ac}=_0x57efdc;this['_handler'][_0x1d79ed(0x370)](_0x46db80);const _0x8b2de5=_0x31b2ac[_0x1d79ed(0x266)]?this[_0x1d79ed(0x38a)][_0x1d79ed(0x3ae)](_0x8ff703,this[_0x1d79ed(0x268)],this[_0x1d79ed(0x2e4)],_0x46db80,_0x31b2ac,this[_0x1d79ed(0x508)]):this[_0x1d79ed(0x38a)][_0x1d79ed(0x3ae)](_0x30c8dd,this[_0x1d79ed(0x268)],this['type'],_0x46db80,this[_0x1d79ed(0x508)]);_0x8b2de5[_0x1d79ed(0x58c)](),this[_0x1d79ed(0x508)][_0x1d79ed(0x57a)](this,_0x8b2de5);},_0x522297);}[_0x464faf(0x4e5)](){const _0x13fbb8=_0x464faf;var _0x4fce6e;return(_0x4fce6e=this[_0x13fbb8(0x562)][_0x13fbb8(0x5b1)](_0xdd38af))!=null?_0x4fce6e:0x7d0;}[_0x464faf(0x381)](){const _0x5b83fa=_0x464faf;throw new Error(_0x5b83fa(0x2f9));}[_0x464faf(0x3e5)](){const _0x40e964=_0x464faf;this[_0x40e964(0x2ae)]!=null&&(clearTimeout(this[_0x40e964(0x2ae)]),this['_sendingTimer']=null);}[_0x464faf(0x285)](_0x3a4754){const _0xc07ef9=_0x464faf;return this[_0xc07ef9(0x3e5)](),this[_0xc07ef9(0x38a)][_0xc07ef9(0x3ae)](_0x4732c4,this[_0xc07ef9(0x268)],this[_0xc07ef9(0x2e4)],null,this[_0xc07ef9(0x436)],this[_0xc07ef9(0x508)],_0x3a4754);}};_0x52372b=_0x147561([_0x18ef17(0x4,_0x22bd76[_0x464faf(0x568)](_0x22bd76[_0x464faf(0x5bb)])),_0x18ef17(0x5,_0x22bd76['Inject'](_0x2cb6ec['RevisionService'])),_0x18ef17(0x6,_0x22bd76['Inject'](_0x19e906[_0x464faf(0x264)])),_0x18ef17(0x7,_0x22bd76[_0x464faf(0x568)](_0x27752c)),_0x18ef17(0x8,_0x22bd76[_0x464faf(0x544)]),_0x18ef17(0x9,_0x22bd76[_0x464faf(0x4ae)]),_0x18ef17(0xa,_0x22bd76[_0x464faf(0x55b)]),_0x18ef17(0xb,_0x2cb6ec[_0x464faf(0x53d)]),_0x18ef17(0xc,_0x22bd76[_0x464faf(0x3a0)]),_0x18ef17(0xd,_0x22bd76[_0x464faf(0x56b)])],_0x52372b);let _0x30c8dd=class extends _0x245ce4{constructor(_0x39e85a,_0x435d91,_0x1f3600,_0x4115f8,_0x481666,_0x5123e1,_0x31c008,_0x39a035,_0x57a6b7,_0x1e3b13,_0x23c72d){const _0x14d04c=_0x464faf;super(_0x39e85a,_0x435d91,_0x1f3600,[],_0x4115f8,_0x39a035,_0x23c72d,_0x5123e1,_0x31c008),_0x41b507(this,'status',_0x14d04c(0x5a6)),(this[_0x14d04c(0x38a)]=_0x481666,this[_0x14d04c(0x4c0)]=_0x57a6b7,this[_0x14d04c(0x24e)]=_0x1e3b13);}[_0x464faf(0x478)](_0x5591ee){const _0x1a010e=_0x464faf,_0x394d89=this['_injector'][_0x1a010e(0x3ae)](_0x8ff703,this[_0x1a010e(0x268)],this[_0x1a010e(0x2e4)],this[_0x1a010e(0x5a5)],[_0x5591ee],this['_handler']);return _0x394d89[_0x1a010e(0x58c)](),_0x394d89;}[_0x464faf(0x565)](_0x1ac38e){const _0x463e6d=_0x464faf;if(this[_0x463e6d(0x4a0)](_0x1ac38e))return this[_0x463e6d(0x38a)][_0x463e6d(0x3ae)](_0x4f6034,this[_0x463e6d(0x268)],this['type'],this[_0x463e6d(0x5a5)],[],null,[_0x1ac38e],this['_handler']);try{const _0x3b6132=this[_0x463e6d(0x24e)][_0x463e6d(0x1c6)]([_0x1ac38e],[this[_0x463e6d(0x5a5)]],!0x1);if(_0x2cb6ec[_0x463e6d(0x2a4)](_0x3b6132)){const {c1Prime:_0x2edab4,c2Prime:_0x3aeec4}=_0x3b6132;this[_0x463e6d(0x395)](_0x2edab4[0x0]),_0x3aeec4[0x0][_0x463e6d(0x271)]=this['_getCurrentRevision']();const _0x58e47e=this['_injector'][_0x463e6d(0x3ae)](_0x30c8dd,this[_0x463e6d(0x268)],this[_0x463e6d(0x2e4)],_0x3aeec4[0x0],this['_handler']);return _0x58e47e[_0x463e6d(0x58c)](),_0x58e47e;}return this['_onConflict'](!0x1);}catch(_0x3bf356){return this[_0x463e6d(0x4c0)]['error'](_0x3bf356),this['_onConflict'](!0x1);}}[_0x464faf(0x342)](_0x59ba00){const _0x1d1f4a=_0x464faf,_0x1e6434=this[_0x1d1f4a(0x1a3)][_0x1d1f4a(0x1b5)](this['unitID']);if(_0x59ba00[_0x1d1f4a(0x292)]<_0x1e6434-0x1)return this;if(this[_0x1d1f4a(0x4a0)](_0x59ba00))return this[_0x1d1f4a(0x38a)][_0x1d1f4a(0x3ae)](_0x4f6034,this[_0x1d1f4a(0x268)],this[_0x1d1f4a(0x2e4)],null,[],this[_0x1d1f4a(0x5a5)],[],this[_0x1d1f4a(0x508)]);this[_0x1d1f4a(0x209)]();const _0xb98033=this['_injector'][_0x1d1f4a(0x3ae)](_0x46582e,this['unitID'],this[_0x1d1f4a(0x2e4)],this[_0x1d1f4a(0x508)]);return _0xb98033[_0x1d1f4a(0x58c)](),_0xb98033;}[_0x464faf(0x456)](_0x4e686a){const _0x514409=_0x464faf;return this[_0x514409(0x285)](!!(_0x4e686a!=null&&_0x4e686a['isPermissionRej']));}['toggleOffline'](){const _0x14b561=_0x464faf;return this['_injector'][_0x14b561(0x3ae)](_0x563a32,this[_0x14b561(0x268)],this['type'],this[_0x14b561(0x5a5)],[],this[_0x14b561(0x508)]);}[_0x464faf(0x2f7)](){return this;}[_0x464faf(0x381)](){const _0x268cd2=_0x464faf;this[_0x268cd2(0x508)][_0x268cd2(0x370)](this[_0x268cd2(0x5a5)]);}[_0x464faf(0x285)](_0x24a90b){const _0x31c4e4=_0x464faf;return this[_0x31c4e4(0x38a)][_0x31c4e4(0x3ae)](_0x4732c4,this[_0x31c4e4(0x268)],this['type'],this['_awaitingChangeset'],[],this[_0x31c4e4(0x508)],_0x24a90b);}};_0x30c8dd=_0x147561([_0x18ef17(0x4,_0x22bd76[_0x464faf(0x568)](_0x22bd76[_0x464faf(0x5bb)])),_0x18ef17(0x5,_0x22bd76[_0x464faf(0x568)](_0x2cb6ec[_0x464faf(0x557)])),_0x18ef17(0x6,_0x22bd76[_0x464faf(0x568)](_0x19e906[_0x464faf(0x264)])),_0x18ef17(0x7,_0x22bd76['ICommandService']),_0x18ef17(0x8,_0x22bd76['ILogService']),_0x18ef17(0x9,_0x2cb6ec['ITransformService']),_0x18ef17(0xa,_0x22bd76[_0x464faf(0x56b)])],_0x30c8dd);let _0x8ff703=class extends _0x245ce4{constructor(_0x1c8e14,_0x5466a9,_0x4f3aad,_0x59d12b,_0x133510,_0x57c138,_0x1e73eb,_0x5f157e,_0x29df18,_0x8e10cb,_0x1f74d0,_0x249bb6){const _0x1b245a=_0x464faf;super(_0x1c8e14,_0x5466a9,_0x4f3aad,_0x59d12b,_0x133510,_0x29df18,_0x249bb6,_0x1e73eb,_0x5f157e),_0x41b507(this,_0x1b245a(0x222),_0x1b245a(0x499)),(this[_0x1b245a(0x38a)]=_0x57c138,this['_logService']=_0x8e10cb,this[_0x1b245a(0x24e)]=_0x1f74d0);}[_0x464faf(0x478)](_0x3399f8){const _0x23c4ce=_0x464faf;return this[_0x23c4ce(0x436)]['push'](_0x3399f8),this;}['onRemoteChangeset'](_0x3c4198){const _0x3713ad=_0x464faf;if(this[_0x3713ad(0x4a0)](_0x3c4198))return this[_0x3713ad(0x38a)][_0x3713ad(0x3ae)](_0x4f6034,this[_0x3713ad(0x268)],this[_0x3713ad(0x2e4)],this[_0x3713ad(0x5a5)],this[_0x3713ad(0x436)],null,[_0x3c4198],this[_0x3713ad(0x508)]);try{const _0x4109c1=this[_0x3713ad(0x24e)][_0x3713ad(0x1c6)]([_0x3c4198],[this[_0x3713ad(0x5a5)]],!0x1);if(_0x2cb6ec[_0x3713ad(0x2a4)](_0x4109c1)){const {c1Prime:_0x456360,c2Prime:_0xbf57c5}=_0x4109c1,_0x23cac2=this['_transformService'][_0x3713ad(0x1de)](_0x456360[0x0],this[_0x3713ad(0x436)]);if(_0x2cb6ec['isTransformMutationsWithChangesetSuccess'](_0x23cac2)){const {c1Prime:_0x57b932,m2Prime:_0x4f306f}=_0x23cac2;return this[_0x3713ad(0x395)](_0x57b932),_0xbf57c5[0x0][_0x3713ad(0x271)]=this[_0x3713ad(0x48a)](),this[_0x3713ad(0x38a)][_0x3713ad(0x3ae)](_0x8ff703,this[_0x3713ad(0x268)],this[_0x3713ad(0x2e4)],_0xbf57c5[0x0],_0x4f306f,this[_0x3713ad(0x508)]);}throw _0x23cac2[_0x3713ad(0x458)];}throw _0x4109c1['error'];}catch(_0xe866af){return this[_0x3713ad(0x4c0)][_0x3713ad(0x458)](_0xe866af),this[_0x3713ad(0x285)](!0x1);}}[_0x464faf(0x342)](_0x288417){const _0x130f12=_0x464faf;if(this[_0x130f12(0x4a0)](_0x288417))return this[_0x130f12(0x38a)][_0x130f12(0x3ae)](_0x4f6034,this[_0x130f12(0x268)],this[_0x130f12(0x2e4)],null,this[_0x130f12(0x436)],this[_0x130f12(0x5a5)],[],this[_0x130f12(0x508)]);this['_incrementRevisionNumber']();const _0xe7d7fb=this[_0x130f12(0x38a)][_0x130f12(0x3ae)](_0x52372b,this[_0x130f12(0x268)],this['type'],this['_pendingMutations'],this['_handler']);return _0xe7d7fb[_0x130f12(0x269)](),_0xe7d7fb[_0x130f12(0x58c)](),_0xe7d7fb;}['onRemoteRej'](_0x19b043){return this['_onConflict'](!!(_0x19b043!=null&&_0x19b043['isPermissionRej']));}[_0x464faf(0x207)](){const _0x5309ea=_0x464faf;return this[_0x5309ea(0x38a)][_0x5309ea(0x3ae)](_0x563a32,this[_0x5309ea(0x268)],this[_0x5309ea(0x2e4)],this[_0x5309ea(0x5a5)],this['_pendingMutations'],this[_0x5309ea(0x508)]);}['toggleOnline'](){return this;}['resend'](){const _0x18bc1b=_0x464faf;this[_0x18bc1b(0x508)][_0x18bc1b(0x370)](this[_0x18bc1b(0x5a5)]);}[_0x464faf(0x285)](_0x400255){const _0x2c98e2=_0x464faf;return this['_injector'][_0x2c98e2(0x3ae)](_0x4732c4,this['unitID'],this[_0x2c98e2(0x2e4)],null,this['_pendingMutations'],this[_0x2c98e2(0x508)],_0x400255);}};_0x8ff703=_0x147561([_0x18ef17(0x5,_0x22bd76[_0x464faf(0x568)](_0x22bd76[_0x464faf(0x5bb)])),_0x18ef17(0x6,_0x22bd76[_0x464faf(0x568)](_0x2cb6ec[_0x464faf(0x557)])),_0x18ef17(0x7,_0x22bd76[_0x464faf(0x568)](_0x19e906[_0x464faf(0x264)])),_0x18ef17(0x8,_0x22bd76[_0x464faf(0x4ae)]),_0x18ef17(0x9,_0x22bd76[_0x464faf(0x544)]),_0x18ef17(0xa,_0x2cb6ec[_0x464faf(0x53d)]),_0x18ef17(0xb,_0x22bd76[_0x464faf(0x56b)])],_0x8ff703);let _0x4732c4=class extends _0x245ce4{constructor(_0x2b76e3,_0x293e4b,_0x11812a,_0x2e6c90,_0x297599,_0x53e11a=!0x1,_0xc62d45,_0x20c5f0,_0xb0bc8d,_0x3baac9,_0x33186d,_0x1ebde0,_0x55d3f0){const _0x4170a5=_0x464faf;super(_0x2b76e3,_0x293e4b,_0x11812a,_0x2e6c90,_0x297599,_0x20c5f0,_0xb0bc8d,_0x33186d,_0x3baac9),_0x41b507(this,_0x4170a5(0x222),_0x4170a5(0x4e6)),(this[_0x4170a5(0x3fa)]=_0x53e11a,this[_0x4170a5(0x556)]=_0xc62d45,this[_0x4170a5(0x4fc)]=_0x1ebde0,this[_0x4170a5(0x4c5)]=_0x55d3f0,this[_0x4170a5(0x545)](),this[_0x4170a5(0x4e7)](),this[_0x4170a5(0x1d6)]());}[_0x464faf(0x478)](){return this;}[_0x464faf(0x565)](){return this;}[_0x464faf(0x342)](){return this;}[_0x464faf(0x456)](){return this;}[_0x464faf(0x207)](){return this;}[_0x464faf(0x2f7)](){return this;}[_0x464faf(0x381)](){const _0x2c86fb=_0x464faf;throw new Error(_0x2c86fb(0x274));}[_0x464faf(0x4e7)](){const _0x53b293=_0x464faf;this[_0x53b293(0x1c7)][_0x53b293(0x375)](this[_0x53b293(0x268)],this[_0x53b293(0x2e4)],null,[]);}[_0x464faf(0x545)](){const _0x3313f2=_0x464faf;this[_0x3313f2(0x3fa)]?this[_0x3313f2(0x4c5)][_0x3313f2(0x550)]({'title':this[_0x3313f2(0x4fc)]['t'](_0x3313f2(0x302)),'content':this[_0x3313f2(0x4fc)]['t'](_0x3313f2(0x535)),'type':_0x3313f2(0x458),'duration':0x0}):this[_0x3313f2(0x4c5)][_0x3313f2(0x550)]({'title':this[_0x3313f2(0x4fc)]['t'](_0x3313f2(0x446)),'content':this[_0x3313f2(0x4fc)]['t'](_0x3313f2(0x20d)),'type':_0x3313f2(0x458),'duration':0x0});}[_0x464faf(0x1d6)](){const _0x481434=_0x464faf;this[_0x481434(0x556)]['updatePermissionPoint'](new _0x38d7d8[(_0x481434(0x4e3))](this[_0x481434(0x268)])['id'],!0x1);}};_0x4732c4=_0x147561([_0x18ef17(0x6,_0x22bd76['Inject'](_0x22bd76[_0x464faf(0x281)])),_0x18ef17(0x7,_0x22bd76['ICommandService']),_0x18ef17(0x8,_0x22bd76[_0x464faf(0x56b)]),_0x18ef17(0x9,_0x22bd76['Inject'](_0x19e906['LocalCacheService'])),_0x18ef17(0xa,_0x22bd76['Inject'](_0x2cb6ec[_0x464faf(0x557)])),_0x18ef17(0xb,_0x22bd76[_0x464faf(0x568)](_0x22bd76[_0x464faf(0x51a)])),_0x18ef17(0xc,_0x1b23d2['INotificationService'])],_0x4732c4);let _0x563a32=class extends _0x245ce4{constructor(_0x3ae25c,_0x4962f8,_0x3a71fe,_0x2f122f,_0x14c33b,_0x5ee05f,_0x13175f,_0x326654,_0x3092b1,_0x22b285){const _0x154226=_0x464faf;super(_0x3ae25c,_0x4962f8,_0x3a71fe,_0x2f122f,_0x14c33b,_0x3092b1,_0x22b285,_0x13175f,_0x326654),_0x41b507(this,'status',_0x154226(0x307)),this[_0x154226(0x38a)]=_0x5ee05f;}[_0x464faf(0x478)](_0x2cc0a1){const _0x5da7cf=_0x464faf;return this[_0x5da7cf(0x436)][_0x5da7cf(0x4a6)](_0x2cc0a1),this[_0x5da7cf(0x58c)](),this;}[_0x464faf(0x565)](_0x1e6009){const _0x1bc638=_0x464faf;throw new Error(_0x1bc638(0x1a7));}[_0x464faf(0x342)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x464faf(0x456)](){const _0x2ac66c=_0x464faf;throw new Error(_0x2ac66c(0x1c1));}['toggleOffline'](){return this;}[_0x464faf(0x2f7)](){const _0x2c08b4=_0x464faf,{_injector:_0x295c63,_pendingMutations:_0x1abef9,_awaitingChangeset:_0x38d6ca,unitID:_0x46596c,_handler:_0x419b3f,type:_0x5bf340}=this,_0x1851d4=_0x9aa735(_0x295c63,_0x46596c,_0x5bf340,_0x38d6ca,_0x1abef9,_0x419b3f);return _0x1851d4 instanceof _0x52372b?_0x1851d4[_0x2c08b4(0x269)]():(_0x1851d4 instanceof _0x8ff703||_0x1851d4 instanceof _0x30c8dd)&&_0x1851d4[_0x2c08b4(0x381)](),_0x1851d4;}[_0x464faf(0x381)](){const _0x3558e9=_0x464faf;throw new Error(_0x3558e9(0x314));}};_0x563a32=_0x147561([_0x18ef17(0x5,_0x22bd76[_0x464faf(0x568)](_0x22bd76[_0x464faf(0x5bb)])),_0x18ef17(0x6,_0x22bd76[_0x464faf(0x568)](_0x2cb6ec[_0x464faf(0x557)])),_0x18ef17(0x7,_0x22bd76[_0x464faf(0x568)](_0x19e906[_0x464faf(0x264)])),_0x18ef17(0x8,_0x22bd76[_0x464faf(0x4ae)]),_0x18ef17(0x9,_0x22bd76[_0x464faf(0x56b)])],_0x563a32);let _0x4f6034=class extends _0x245ce4{constructor(_0x3b8586,_0x1099b9,_0x2a255f,_0x4df1f7,_0x345cbf,_0xef209,_0x51c2f3,_0x1ddaaa,_0x263e73,_0x44ed07,_0x9b283b,_0x2436d7,_0x3cbf72,_0x25b724){const _0x2ee16e=_0x464faf;super(_0x3b8586,_0x1099b9,_0x2a255f,_0x4df1f7,_0x51c2f3,_0x2436d7,_0x3cbf72,_0x263e73,_0x44ed07),_0x41b507(this,'status',_0x2ee16e(0x1f6)),(this[_0x2ee16e(0x52a)]=_0x345cbf,this[_0x2ee16e(0x47b)]=_0xef209,this[_0x2ee16e(0x38a)]=_0x1ddaaa,this[_0x2ee16e(0x4c0)]=_0x9b283b,this[_0x2ee16e(0x24e)]=_0x25b724);}[_0x464faf(0x2a5)](_0x296ce5){const _0x521205=_0x464faf;try{const _0x438863=[..._0x296ce5,...this[_0x521205(0x47b)]],_0x1b9334=[this['_awaitingChangeset']||this[_0x521205(0x52a)]][_0x521205(0x2e9)](_0x2c4c95=>!!_0x2c4c95);let _0x32d4cd,_0x1992ab;if(_0x1b9334[_0x521205(0x266)]){const _0x32d9f4=this['_transformService'][_0x521205(0x1c6)](_0x438863,_0x1b9334,!0x1);if(!_0x2cb6ec[_0x521205(0x2a4)](_0x32d9f4))throw _0x32d9f4[_0x521205(0x458)];_0x32d4cd=_0x32d9f4[_0x521205(0x1f4)],_0x1992ab=_0x32d9f4[_0x521205(0x532)];}else _0x32d4cd=_0x438863,_0x1992ab=[];let _0x5a00a9=this[_0x521205(0x436)];_0x32d4cd[_0x521205(0x1fc)](_0x4bd38b=>{const _0x568faf=_0x521205;let _0x4aa2b3;if(_0x5a00a9[_0x568faf(0x266)]){const _0x5a8fd9=this[_0x568faf(0x24e)][_0x568faf(0x1de)](_0x4bd38b,_0x5a00a9);if(!_0x2cb6ec['isTransformMutationsWithChangesetSuccess'](_0x5a8fd9))throw _0x5a8fd9[_0x568faf(0x458)];_0x4aa2b3=_0x5a8fd9[_0x568faf(0x1f4)],_0x5a00a9=_0x5a8fd9[_0x568faf(0x275)];}else _0x4aa2b3=_0x4bd38b;this[_0x568faf(0x395)](_0x4aa2b3);}),this[_0x521205(0x52a)]&&this[_0x521205(0x209)](),this['_awaitingChangeset']&&_0x1992ab[_0x521205(0x266)]&&(_0x1992ab[0x0][_0x521205(0x271)]=this[_0x521205(0x48a)]());let _0x113f31;if(this[_0x521205(0x5a5)]&&_0x5a00a9['length']!==0x0)_0x113f31=this[_0x521205(0x38a)][_0x521205(0x3ae)](_0x8ff703,this[_0x521205(0x268)],this['type'],_0x1992ab[0x0],_0x5a00a9,this[_0x521205(0x508)]);else{if(this[_0x521205(0x5a5)]&&_0x5a00a9[_0x521205(0x266)]===0x0)_0x1992ab[0x0][_0x521205(0x271)]=this[_0x521205(0x48a)](),_0x113f31=this[_0x521205(0x38a)]['createInstance'](_0x30c8dd,this['unitID'],this['type'],_0x1992ab[0x0],this[_0x521205(0x508)]);else{if(_0x5a00a9[_0x521205(0x266)]!==0x0){const _0x45d34d=this[_0x521205(0x38a)]['createInstance'](_0x52372b,this['unitID'],this['type'],_0x5a00a9,this['_handler']);_0x45d34d[_0x521205(0x269)](),_0x113f31=_0x45d34d;}else _0x113f31=this[_0x521205(0x38a)]['createInstance'](_0x46582e,this[_0x521205(0x268)],this[_0x521205(0x2e4)],this[_0x521205(0x508)]);}}return _0x113f31[_0x521205(0x58c)](),_0x113f31;}catch(_0x4335ca){return this['_logService'][_0x521205(0x458)]('[FetchMissState]',_0x521205(0x585),_0x4335ca),this[_0x521205(0x38a)][_0x521205(0x3ae)](_0x4732c4,this[_0x521205(0x268)],this[_0x521205(0x2e4)],this[_0x521205(0x5a5)],this[_0x521205(0x436)],this['_handler'],!0x1);}}[_0x464faf(0x381)](){const _0x267af9=_0x464faf;throw new Error(_0x267af9(0x1d1));}[_0x464faf(0x478)](_0x44aa04){const _0x4da6ad=_0x464faf;return this[_0x4da6ad(0x436)]['push'](_0x44aa04),this;}[_0x464faf(0x565)](_0x16b631){const _0x54968e=_0x464faf;return this['_queuedRemoteChangesets'][_0x54968e(0x4a6)](_0x16b631),this;}[_0x464faf(0x342)](_0x20d7c0){const _0x48aeea=_0x464faf;if(this[_0x48aeea(0x5a5)])return this[_0x48aeea(0x52a)]=this[_0x48aeea(0x5a5)],this[_0x48aeea(0x5a5)]=null,this;throw new Error(_0x48aeea(0x2aa));}[_0x464faf(0x456)](_0x1da7cf){const _0x231ccc=_0x464faf;return this['_onConflict'](!!(_0x1da7cf!=null&&_0x1da7cf[_0x231ccc(0x255)]));}[_0x464faf(0x207)](){const _0x3f51be=_0x464faf;return this['_injector'][_0x3f51be(0x3ae)](_0x563a32,this['unitID'],this[_0x3f51be(0x2e4)],this['_awaitingChangeset'],this[_0x3f51be(0x436)],this[_0x3f51be(0x508)]);}[_0x464faf(0x2f7)](){return this;}['_onConflict'](_0x16f3d4){const _0x576f09=_0x464faf;return this[_0x576f09(0x38a)][_0x576f09(0x3ae)](_0x4732c4,this[_0x576f09(0x268)],this['type'],this['_awaitingChangeset'],this[_0x576f09(0x436)],this[_0x576f09(0x508)],_0x16f3d4);}};_0x4f6034=_0x147561([_0x18ef17(0x7,_0x22bd76[_0x464faf(0x568)](_0x22bd76['Injector'])),_0x18ef17(0x8,_0x22bd76['Inject'](_0x2cb6ec[_0x464faf(0x557)])),_0x18ef17(0x9,_0x22bd76[_0x464faf(0x568)](_0x19e906['LocalCacheService'])),_0x18ef17(0xa,_0x22bd76[_0x464faf(0x544)]),_0x18ef17(0xb,_0x22bd76['ICommandService']),_0x18ef17(0xc,_0x22bd76[_0x464faf(0x56b)]),_0x18ef17(0xd,_0x2cb6ec[_0x464faf(0x53d)])],_0x4f6034);function _0x9aa735(_0x100df1,_0x4adbf6,_0x41dec5,_0x27f540,_0x500923,_0x3e6aa5){const _0x10b4e7=_0x464faf;return _0x27f540&&_0x500923['length']?_0x100df1[_0x10b4e7(0x3ae)](_0x8ff703,_0x4adbf6,_0x41dec5,_0x27f540,_0x500923,_0x3e6aa5):_0x27f540?_0x100df1['createInstance'](_0x30c8dd,_0x4adbf6,_0x41dec5,_0x27f540,_0x3e6aa5):_0x500923[_0x10b4e7(0x266)]?_0x100df1[_0x10b4e7(0x3ae)](_0x52372b,_0x4adbf6,_0x41dec5,_0x500923,_0x3e6aa5):_0x100df1[_0x10b4e7(0x3ae)](_0x46582e,_0x4adbf6,_0x41dec5,_0x3e6aa5);}var _0x520235=Object['defineProperty'],_0x490c67=Object['getOwnPropertyDescriptor'],_0x58e03a=(_0x4d4433,_0x5cb4ae,_0x12ac40,_0x3716b4)=>{const _0x4c8dde=_0x464faf;for(var _0x17c951=_0x3716b4>0x1?void 0x0:_0x3716b4?_0x490c67(_0x5cb4ae,_0x12ac40):_0x5cb4ae,_0x40d8dc=_0x4d4433[_0x4c8dde(0x266)]-0x1,_0xb8b1aa;_0x40d8dc>=0x0;_0x40d8dc--)(_0xb8b1aa=_0x4d4433[_0x40d8dc])&&(_0x17c951=(_0x3716b4?_0xb8b1aa(_0x5cb4ae,_0x12ac40,_0x17c951):_0xb8b1aa(_0x17c951))||_0x17c951);return _0x3716b4&&_0x17c951&&_0x520235(_0x5cb4ae,_0x12ac40,_0x17c951),_0x17c951;},_0x57ddf1=(_0x397605,_0x4ed20e)=>(_0x5938d1,_0x213508)=>_0x4ed20e(_0x5938d1,_0x213508,_0x397605);_0x19e906[_0x464faf(0x51e)]=class extends _0x22bd76[_0x464faf(0x5c2)]{constructor(_0x5407ce,_0x29ffeb,_0x57b8d2,_0x2139cb,_0x13650f,_0x53b368,_0xed4858,_0x5a8492,_0x2c323b,_0x48f545,_0x496950,_0x35248d,_0x27bd36){const _0x3bd2a0=_0x464faf;super(),_0x41b507(this,_0x3bd2a0(0x3dc),new _0xb468a3[(_0x3bd2a0(0x579))](null)),_0x41b507(this,_0x3bd2a0(0x3fb),this['_state$'][_0x3bd2a0(0x45e)]()),_0x41b507(this,_0x3bd2a0(0x41b)),_0x41b507(this,'_collaborationPaused',!0x1),_0x41b507(this,'status$',this[_0x3bd2a0(0x3fb)][_0x3bd2a0(0x457)](_0xb468a3[_0x3bd2a0(0x1bb)](_0x2f0b3b=>_0x2f0b3b?_0x2f0b3b[_0x3bd2a0(0x222)]:_0x29599c['OFFLINE']),_0xb468a3['shareReplay'](0x1))),_0x41b507(this,_0x3bd2a0(0x543),!0x1),_0x41b507(this,'_remoteChangesetQueue',[]),(this[_0x3bd2a0(0x268)]=_0x5407ce,this[_0x3bd2a0(0x3ef)]=_0x29ffeb,this[_0x3bd2a0(0x1cf)]=_0x57b8d2,this['_injector']=_0x2139cb,this['_localCacheService']=_0x13650f,this[_0x3bd2a0(0x459)]=_0x53b368,this[_0x3bd2a0(0x4fc)]=_0xed4858,this[_0x3bd2a0(0x1a3)]=_0x5a8492,this['_logService']=_0x2c323b,this[_0x3bd2a0(0x382)]=_0x48f545,this[_0x3bd2a0(0x391)]=_0x496950,this[_0x3bd2a0(0x556)]=_0x35248d,this[_0x3bd2a0(0x1d2)]=_0x27bd36);}get['state'](){return this['_state'];}async[_0x464faf(0x51d)](){const _0xd46f93=_0x464faf;if(this[_0xd46f93(0x42f)])throw new Error(_0xd46f93(0x524));await this['_init']();}[_0x464faf(0x311)](){const _0x411c92=_0x464faf;return this['_collaborationPaused']=!0x0,_0x22bd76[_0x411c92(0x2ec)](()=>{const _0x50dfee=_0x411c92;this[_0x50dfee(0x3b4)]=!0x1,this[_0x50dfee(0x5c9)]();});}['_updateState'](_0x35502e){const _0x323690=_0x464faf;this[_0x323690(0x41b)]=_0x35502e,this[_0x323690(0x3dc)][_0x323690(0x4d2)](_0x35502e);}async[_0x464faf(0x239)](){const _0x3841db=_0x464faf;var _0x259987;this[_0x3841db(0x471)](await this[_0x3841db(0x3ba)]()),this[_0x3841db(0x1d2)]&&((_0x259987=this[_0x3841db(0x1d2)])==null||_0x259987[_0x3841db(0x476)](this[_0x3841db(0x268)]),this[_0x3841db(0x241)](this['_singleActiveUnitService'][_0x3841db(0x475)](this[_0x3841db(0x268)])[_0x3841db(0x1d7)](_0x51552b=>{const _0x5efc84=_0x3841db;this[_0x5efc84(0x4c0)][_0x5efc84(0x3e8)]('[CollaborationEntity]',_0x5efc84(0x420),_0x51552b),_0x51552b===_0x32afde['OTHER_CLIENTS_EDITING']?(this[_0x5efc84(0x391)][_0x5efc84(0x550)]({'content':this['_localeService']['t'](_0x5efc84(0x352)),'type':_0x5562a6[_0x5efc84(0x253)][_0x5efc84(0x272)]}),this[_0x5efc84(0x556)][_0x5efc84(0x2e5)](new _0x38d7d8[(_0x5efc84(0x4e3))](this[_0x5efc84(0x268)])['id'],!0x1)):this['_permissionService'][_0x5efc84(0x2e5)](new _0x38d7d8[(_0x5efc84(0x4e3))](this['unitID'])['id'],!0x0);})));let _0x113907=!0x1;return this[_0x3841db(0x241)](this[_0x3841db(0x3ef)][_0x3841db(0x3e1)][_0x3841db(0x1d7)](_0xd3ea59=>{const _0x45dd2b=_0x3841db;_0xd3ea59===_0x4d9058[_0x45dd2b(0x50f)]?this['_toggleOnline'](_0x113907):_0xd3ea59===_0x4d9058[_0x45dd2b(0x374)]&&(_0x113907=!0x0,this[_0x45dd2b(0x3d4)]());})),this[_0x3841db(0x241)](this[_0x3841db(0x3ef)][_0x3841db(0x3f2)][_0x3841db(0x1d7)](_0x3deb3a=>{const _0x5bf972=_0x3841db;try{switch(_0x3deb3a[_0x5bf972(0x571)]){case _0x2cb6ec[_0x5bf972(0x312)][_0x5bf972(0x442)]:{this[_0x5bf972(0x1e7)](_0x2cb6ec[_0x5bf972(0x30a)](_0x3deb3a[_0x5bf972(0x25b)]));break;}case _0x2cb6ec['CollaborationEvent'][_0x5bf972(0x36e)]:{this['_onRemoteACK'](_0x3deb3a[_0x5bf972(0x25b)]);break;}case _0x2cb6ec[_0x5bf972(0x312)][_0x5bf972(0x20e)]:{this[_0x5bf972(0x2e1)]();break;}case _0x2cb6ec['CollaborationEvent'][_0x5bf972(0x38e)]:{this[_0x5bf972(0x44f)](_0x3deb3a['data'][_0x5bf972(0x4f8)][_0x5bf972(0x1bb)](_0x1b9f86=>_0x2cb6ec[_0x5bf972(0x30a)](_0x1b9f86)));break;}case _0x2cb6ec[_0x5bf972(0x312)][_0x5bf972(0x353)]:this[_0x5bf972(0x2e1)]({'isPermissionRej':!0x0});}}catch(_0x32b792){throw console[_0x5bf972(0x458)]('Error\x20on\x20receiving\x20event',_0x32b792),_0x32b792;}})),this[_0x3841db(0x41b)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x464faf(0x34d)](){const _0x402369=_0x464faf;if(this[_0x402369(0x543)])throw new Error(_0x402369(0x291));this['_transitionLocked']=!0x0;}[_0x464faf(0x4f2)](_0x47ecb3){const _0x5ee91f=_0x464faf;this[_0x5ee91f(0x34d)](),this[_0x5ee91f(0x471)](this[_0x5ee91f(0x41b)][_0x5ee91f(0x478)](_0x47ecb3)),this['_unlockTransition']();}[_0x464faf(0x1e7)](_0xf7ee0c){const _0x3d7b11=_0x464faf;if(!(_0xf7ee0c[_0x3d7b11(0x292)]<=this[_0x3d7b11(0x1a3)]['getCurrentRevOfUnit'](this[_0x3d7b11(0x268)]))){if(this[_0x3d7b11(0x3b4)]){this[_0x3d7b11(0x42e)][_0x3d7b11(0x4a6)](_0xf7ee0c);return;}this[_0x3d7b11(0x5a8)](_0xf7ee0c);}}[_0x464faf(0x5c9)](){const _0xcd0a01=_0x464faf;this['_remoteChangesetQueue']['forEach'](_0x2367b6=>this[_0xcd0a01(0x5a8)](_0x2367b6)),this[_0xcd0a01(0x42e)]=[];}[_0x464faf(0x5a8)](_0x204f2c){const _0x4ed0c3=_0x464faf,_0x16d197=this['_compressMutationService']['interceptor'][_0x4ed0c3(0x2b9)](this[_0x4ed0c3(0x459)][_0x4ed0c3(0x2d7)][_0x4ed0c3(0x408)]()[_0x4ed0c3(0x1ff)])(_0x204f2c[_0x4ed0c3(0x4a5)],null)||_0x204f2c[_0x4ed0c3(0x4a5)],_0x3530b5={..._0x204f2c,'mutations':_0x16d197};this[_0x4ed0c3(0x34d)](),this[_0x4ed0c3(0x471)](this['_state'][_0x4ed0c3(0x565)](_0x3530b5)),this[_0x4ed0c3(0x4ea)]();}['_onRemoteACK'](_0x4b8535){const _0x6246c1=_0x464faf;this['_lockTransition'](),this[_0x6246c1(0x471)](this['_state'][_0x6246c1(0x342)](_0x4b8535)),this[_0x6246c1(0x4ea)]();}[_0x464faf(0x2e1)](_0x389863){const _0x2e8015=_0x464faf;this['_lockTransition'](),this['_updateState'](this[_0x2e8015(0x41b)][_0x2e8015(0x456)](_0x389863)),this[_0x2e8015(0x4ea)]();}[_0x464faf(0x44f)](_0x121cbe){const _0x3dc475=_0x464faf;if(!(this['_state']instanceof _0x4f6034))throw new TypeError(_0x3dc475(0x4fa));const _0x16e7d1=_0x121cbe[_0x3dc475(0x1bb)](_0x32b2aa=>{const _0x907ea8=_0x3dc475,_0x1aab13=this['_compressMutationService'][_0x907ea8(0x2d7)][_0x907ea8(0x2b9)](this[_0x907ea8(0x459)]['interceptor'][_0x907ea8(0x408)]()[_0x907ea8(0x1ff)])(_0x32b2aa['mutations'],null)||_0x32b2aa[_0x907ea8(0x4a5)];return{..._0x32b2aa,'mutations':_0x1aab13};});this['_lockTransition'](),this['_updateState'](this[_0x3dc475(0x41b)]['onMissedChangesetFetched'](_0x16e7d1)),this[_0x3dc475(0x4ea)]();}['_toggleOffline'](){const _0x3472ff=_0x464faf;this[_0x3472ff(0x34d)](),this[_0x3472ff(0x471)](this[_0x3472ff(0x41b)][_0x3472ff(0x207)]()),this[_0x3472ff(0x4ea)]();}[_0x464faf(0x31f)](_0x24836d=!0x1){const _0x5aa34c=_0x464faf;this[_0x5aa34c(0x34d)](),this['_updateState'](this[_0x5aa34c(0x41b)]['toggleOnline']()),this[_0x5aa34c(0x4ea)]();const _0x216045=this[_0x5aa34c(0x41b)];_0x24836d&&_0x216045 instanceof _0x46582e&&(this['_lockTransition'](),this[_0x5aa34c(0x471)](_0x216045['fetchMiss']()),this[_0x5aa34c(0x4ea)]());}async['_createInitialState'](){return new Promise(_0x532c14=>{const _0x3ead6b=_0x437d;this[_0x3ead6b(0x3ef)][_0x3ead6b(0x3e1)][_0x3ead6b(0x457)](_0xb468a3[_0x3ead6b(0x4f5)](0x1))[_0x3ead6b(0x1d7)](async _0x1c7ad6=>{const _0x30d84d=_0x3ead6b;_0x532c14(await this[_0x30d84d(0x31d)](_0x1c7ad6===_0x4d9058['ONLINE']));});});}[_0x464faf(0x4fb)](){const _0x15149d=_0x464faf,_0x5def27=this[_0x15149d(0x268)];return{'onStateChange':(_0x4310a2,_0x1e36aa)=>{const _0x4fd2ce=_0x15149d;if(_0x4310a2!==this[_0x4fd2ce(0x41b)])throw new Error(_0x4fd2ce(0x50d)+_0x4310a2['status']+_0x4fd2ce(0x515)+_0x1e36aa[_0x4fd2ce(0x222)]+_0x4fd2ce(0x47d)+this[_0x4fd2ce(0x41b)][_0x4fd2ce(0x222)]);this[_0x4fd2ce(0x471)](_0x1e36aa);},'onSendChangeset':_0x1e8f31=>{const _0x443f00=_0x15149d,_0x57c785={'eventID':_0x2cb6ec['CollaborationEvent'][_0x443f00(0x2b1)],'data':{'unitID':_0x1e8f31[_0x443f00(0x268)],'unitType':this[_0x443f00(0x1cf)],'changeset':_0x1e8f31,'memberID':this[_0x443f00(0x3ef)]['getMemberID']()}};this['session'][_0x443f00(0x427)](_0x57c785,this['unitID']);},'onMissingChangesets':({from:_0x14605f,to:_0x5c8e92})=>{const _0x4c03e9=_0x15149d;this[_0x4c03e9(0x4c0)][_0x4c03e9(0x3e8)](_0x4c03e9(0x592),_0x4c03e9(0x24a)+_0x14605f+_0x4c03e9(0x19f)+_0x5c8e92);const _0x2bd273={'eventID':_0x2cb6ec[_0x4c03e9(0x312)][_0x4c03e9(0x3a2)],'data':{'unitID':_0x5def27,'unitType':this[_0x4c03e9(0x1cf)],'from':_0x14605f,'to':_0x5c8e92}};this[_0x4c03e9(0x3ef)]['send'](_0x2bd273,this[_0x4c03e9(0x268)]);}};}async[_0x464faf(0x31d)](_0x5db25b){const _0x57af0b=_0x464faf;var _0x40cc68,_0x886745;const _0x16bcc5=await this[_0x57af0b(0x1c7)][_0x57af0b(0x283)](this[_0x57af0b(0x268)]),_0x9c8f4f=(_0x40cc68=_0x16bcc5==null?void 0x0:_0x16bcc5['mutations'])!=null?_0x40cc68:[],_0x5c52e5=(_0x886745=_0x16bcc5==null?void 0x0:_0x16bcc5[_0x57af0b(0x4de)])!=null?_0x886745:null,_0x322b56=this['unitID'];try{this[_0x57af0b(0x1c9)](_0x5c52e5,_0x9c8f4f);}catch(_0x10cc86){this[_0x57af0b(0x4c0)][_0x57af0b(0x458)](_0x10cc86);}const _0x2e0eac=this['_createHandler']();if(_0x5db25b){const _0x534514=_0x9aa735(this[_0x57af0b(0x38a)],_0x322b56,this[_0x57af0b(0x1cf)],_0x5c52e5,_0x9c8f4f,_0x2e0eac);return _0x534514 instanceof _0x52372b?_0x534514[_0x57af0b(0x269)]():(_0x534514 instanceof _0x8ff703||_0x534514 instanceof _0x30c8dd)&&_0x534514[_0x57af0b(0x381)](),_0x534514;}return this[_0x57af0b(0x38a)][_0x57af0b(0x3ae)](_0x563a32,_0x322b56,this[_0x57af0b(0x1cf)],_0x5c52e5,_0x9c8f4f,_0x2e0eac);}[_0x464faf(0x1c9)](_0x4d5cce,_0x3e7de1){const _0x5a62eb=_0x464faf;var _0x576566,_0x3dda96;const _0x33e5e1=this[_0x5a62eb(0x459)][_0x5a62eb(0x2d7)][_0x5a62eb(0x2b9)](this[_0x5a62eb(0x459)][_0x5a62eb(0x2d7)][_0x5a62eb(0x408)]()[_0x5a62eb(0x1ff)]);(_0x576566=_0x33e5e1((_0x4d5cce==null?void 0x0:_0x4d5cce[_0x5a62eb(0x4a5)])||[],null))==null||_0x576566[_0x5a62eb(0x1fc)](_0x413b90=>this['_commandService']['executeCommand'](_0x413b90['id'],_0x413b90[_0x5a62eb(0x4d5)])),(_0x3dda96=_0x33e5e1(_0x3e7de1||[],null))==null||_0x3dda96['forEach'](_0x29fe6d=>this[_0x5a62eb(0x382)][_0x5a62eb(0x38c)](_0x29fe6d['id'],_0x29fe6d[_0x5a62eb(0x4d5)]));}},_0x19e906[_0x464faf(0x51e)]=_0x58e03a([_0x57ddf1(0x3,_0x22bd76[_0x464faf(0x568)](_0x22bd76['Injector'])),_0x57ddf1(0x4,_0x22bd76[_0x464faf(0x568)](_0x19e906[_0x464faf(0x264)])),_0x57ddf1(0x5,_0x22bd76[_0x464faf(0x568)](_0x2cb6ec[_0x464faf(0x447)])),_0x57ddf1(0x6,_0x22bd76[_0x464faf(0x568)](_0x22bd76[_0x464faf(0x51a)])),_0x57ddf1(0x7,_0x22bd76[_0x464faf(0x568)](_0x2cb6ec[_0x464faf(0x557)])),_0x57ddf1(0x8,_0x22bd76[_0x464faf(0x544)]),_0x57ddf1(0x9,_0x22bd76['ICommandService']),_0x57ddf1(0xa,_0x1b23d2[_0x464faf(0x536)]),_0x57ddf1(0xb,_0x22bd76[_0x464faf(0x281)]),_0x57ddf1(0xc,_0x22bd76[_0x464faf(0x230)](_0x4b8af1))],_0x19e906['CollaborationEntity']),_0x19e906['DocCollaborationEntity']=class extends _0x19e906[_0x464faf(0x51e)]{constructor(_0x27577b,_0x19b9ad,_0x1d5807,_0x13d799,_0x378c51,_0x577dce,_0x4f61f9,_0x29d7c3,_0xfd467a,_0x11c3c1,_0x1f87e6,_0x1afba2,_0x49a51c,_0x3dc2da,_0x5ab25c,_0x521c22,_0x323804){const _0x142479=_0x464faf;super(_0x27577b,_0x1d5807,_0x19b9ad,_0x13d799,_0x378c51,_0x577dce,_0x4f61f9,_0x29d7c3,_0x49a51c,_0x3dc2da,_0x5ab25c,_0x521c22,_0x323804),this[_0x142479(0x268)]=_0x27577b,this[_0x142479(0x2e4)]=_0x19b9ad,this[_0x142479(0x42b)]=_0xfd467a,this[_0x142479(0x5aa)]=_0x11c3c1,this[_0x142479(0x481)]=_0x1f87e6,this[_0x142479(0x452)]=_0x1afba2;}[_0x464faf(0x4fb)](){const _0x526ed2=_0x464faf,_0x23a9b1=super[_0x526ed2(0x4fb)]();return _0x23a9b1[_0x526ed2(0x53f)]=_0x13e933=>this[_0x526ed2(0x5aa)][_0x526ed2(0x2ce)](_0x13e933),_0x23a9b1[_0x526ed2(0x3e0)]=_0x58ae66=>this[_0x526ed2(0x481)][_0x526ed2(0x480)](_0x58ae66),_0x23a9b1[_0x526ed2(0x41d)]=_0x4f2aac=>this[_0x526ed2(0x452)][_0x526ed2(0x341)](_0x4f2aac),_0x23a9b1[_0x526ed2(0x40b)]=_0x5913a9=>this[_0x526ed2(0x5aa)][_0x526ed2(0x38f)](_0x5913a9),_0x23a9b1;}async[_0x464faf(0x239)](){const _0x5992c5=_0x464faf,_0x164a32=await super[_0x5992c5(0x239)]();return this[_0x5992c5(0x241)](this[_0x5992c5(0x382)][_0x5992c5(0x3da)]((_0x4f03fb,_0x1f3a99)=>{const _0x31b5de=_0x5992c5;if(_0x4f03fb['type']!==_0x22bd76['CommandType'][_0x31b5de(0x2eb)]||_0x1f3a99!=null&&_0x1f3a99['fromCollab']||_0x1f3a99!=null&&_0x1f3a99[_0x31b5de(0x5bd)])return;const _0x2bf79e=_0x4f03fb[_0x31b5de(0x4d5)];if((_0x2bf79e==null?void 0x0:_0x2bf79e[_0x31b5de(0x3eb)])!==this[_0x31b5de(0x268)])return;let _0x2d304b=_0x4f03fb;if(_0x2d304b['id']===_0x369ae4[_0x31b5de(0x425)]['id']){const _0x5a4e24=_0x2d304b[_0x31b5de(0x4d5)];_0x2d304b={'id':_0x369ae4['RichTextEditingMutation']['id'],'type':_0x22bd76[_0x31b5de(0x2d6)][_0x31b5de(0x2eb)],'params':{'unitId':_0x5a4e24[_0x31b5de(0x3eb)],'actions':_0x5a4e24[_0x31b5de(0x1a2)],'textRanges':null}};}const _0x3b4924=this[_0x31b5de(0x459)][_0x31b5de(0x2d7)][_0x31b5de(0x2b9)](this[_0x31b5de(0x459)][_0x31b5de(0x2d7)]['getInterceptPoints']()[_0x31b5de(0x1f8)])([_0x2d304b],null)||[_0x2d304b];this[_0x31b5de(0x4f2)](_0x3b4924[0x0]);})),_0x164a32;}},_0x19e906[_0x464faf(0x492)]=_0x58e03a([_0x57ddf1(0x3,_0x22bd76[_0x464faf(0x568)](_0x22bd76['Injector'])),_0x57ddf1(0x4,_0x22bd76[_0x464faf(0x568)](_0x19e906[_0x464faf(0x264)])),_0x57ddf1(0x5,_0x22bd76[_0x464faf(0x568)](_0x2cb6ec[_0x464faf(0x447)])),_0x57ddf1(0x6,_0x22bd76[_0x464faf(0x568)](_0x22bd76[_0x464faf(0x51a)])),_0x57ddf1(0x7,_0x22bd76[_0x464faf(0x568)](_0x2cb6ec['RevisionService'])),_0x57ddf1(0x8,_0x22bd76[_0x464faf(0x568)](_0x3efaf4[_0x464faf(0x43f)])),_0x57ddf1(0x9,_0x22bd76[_0x464faf(0x568)](_0x1ffb94)),_0x57ddf1(0xa,_0x22bd76['Inject'](_0x529ffa)),_0x57ddf1(0xb,_0x22bd76[_0x464faf(0x568)](_0x43e255)),_0x57ddf1(0xc,_0x22bd76[_0x464faf(0x544)]),_0x57ddf1(0xd,_0x22bd76[_0x464faf(0x4ae)]),_0x57ddf1(0xe,_0x1b23d2[_0x464faf(0x536)]),_0x57ddf1(0xf,_0x22bd76['IPermissionService']),_0x57ddf1(0x10,_0x22bd76[_0x464faf(0x230)](_0x4b8af1))],_0x19e906[_0x464faf(0x492)]),_0x19e906[_0x464faf(0x228)]=class extends _0x19e906['CollaborationEntity']{constructor(_0x413ef6,_0x3e51c0,_0x855320,_0x2021a4,_0xa3dba5,_0x27bcde,_0x517aaf,_0x3efce0,_0x117628,_0xd048f8,_0x40c890,_0x53a6e9,_0x48d2f2,_0x3a6719){const _0x175a5c=_0x464faf;super(_0x413ef6,_0x855320,_0x3e51c0,_0x2021a4,_0xa3dba5,_0x27bcde,_0x517aaf,_0x3efce0,_0xd048f8,_0x40c890,_0x53a6e9,_0x48d2f2,_0x3a6719),this[_0x175a5c(0x268)]=_0x413ef6,this[_0x175a5c(0x2e4)]=_0x3e51c0,this['_sheetTransformSelectionsService']=_0x117628;}[_0x464faf(0x4fb)](){const _0x594009=_0x464faf,_0x5bdca4=super[_0x594009(0x4fb)]();return _0x5bdca4[_0x594009(0x3e0)]=_0x48d7ee=>this['_sheetTransformSelectionsService']['transformSelections'](_0x48d7ee),_0x5bdca4;}async['_init'](){const _0x6ad8c1=_0x464faf,_0x3053ae=await super['_init']();return this[_0x6ad8c1(0x241)](this[_0x6ad8c1(0x382)]['onCommandExecuted']((_0x2a4540,_0x2e62f4)=>{const _0x583b1c=_0x6ad8c1;if(_0x2a4540[_0x583b1c(0x2e4)]!==_0x22bd76['CommandType'][_0x583b1c(0x2eb)]||_0x2e62f4!=null&&_0x2e62f4[_0x583b1c(0x404)]||_0x2e62f4!=null&&_0x2e62f4[_0x583b1c(0x5bd)])return;const _0x76c9f8=_0x2a4540[_0x583b1c(0x4d5)];if((_0x76c9f8==null?void 0x0:_0x76c9f8[_0x583b1c(0x3eb)])!==this['unitID'])return;const _0x3878d3=_0x2a4540,_0x5b8c25=this[_0x583b1c(0x459)][_0x583b1c(0x2d7)][_0x583b1c(0x2b9)](this['_compressMutationService'][_0x583b1c(0x2d7)][_0x583b1c(0x408)]()[_0x583b1c(0x1f8)])([_0x3878d3],null)||[_0x3878d3];this['_onLocalMutation'](_0x5b8c25[0x0]);})),_0x3053ae;}},_0x19e906[_0x464faf(0x228)]=_0x58e03a([_0x57ddf1(0x3,_0x22bd76['Inject'](_0x22bd76['Injector'])),_0x57ddf1(0x4,_0x22bd76['Inject'](_0x19e906['LocalCacheService'])),_0x57ddf1(0x5,_0x22bd76[_0x464faf(0x568)](_0x2cb6ec[_0x464faf(0x447)])),_0x57ddf1(0x6,_0x22bd76[_0x464faf(0x568)](_0x22bd76[_0x464faf(0x51a)])),_0x57ddf1(0x7,_0x22bd76[_0x464faf(0x568)](_0x2cb6ec['RevisionService'])),_0x57ddf1(0x8,_0x22bd76[_0x464faf(0x568)](_0xa1505e)),_0x57ddf1(0x9,_0x22bd76['ILogService']),_0x57ddf1(0xa,_0x22bd76[_0x464faf(0x4ae)]),_0x57ddf1(0xb,_0x1b23d2[_0x464faf(0x536)]),_0x57ddf1(0xc,_0x22bd76[_0x464faf(0x281)]),_0x57ddf1(0xd,_0x22bd76[_0x464faf(0x230)](_0x4b8af1))],_0x19e906[_0x464faf(0x228)]);var _0x2e4036=Object[_0x464faf(0x229)],_0x5cac53=Object[_0x464faf(0x36f)],_0x340577=(_0x1f9f14,_0x1f74a4,_0x4670f9,_0x9c16c)=>{const _0x42bbe5=_0x464faf;for(var _0x1e4588=_0x9c16c>0x1?void 0x0:_0x9c16c?_0x5cac53(_0x1f74a4,_0x4670f9):_0x1f74a4,_0x23dee9=_0x1f9f14[_0x42bbe5(0x266)]-0x1,_0x8772d7;_0x23dee9>=0x0;_0x23dee9--)(_0x8772d7=_0x1f9f14[_0x23dee9])&&(_0x1e4588=(_0x9c16c?_0x8772d7(_0x1f74a4,_0x4670f9,_0x1e4588):_0x8772d7(_0x1e4588))||_0x1e4588);return _0x9c16c&&_0x1e4588&&_0x2e4036(_0x1f74a4,_0x4670f9,_0x1e4588),_0x1e4588;},_0x1e3caf=(_0x21a80d,_0x90f666)=>(_0x3ede40,_0x3f554c)=>_0x90f666(_0x3ede40,_0x3f554c,_0x21a80d);_0x19e906['CollaborationController']=class extends _0x22bd76[_0x464faf(0x5c2)]{constructor(_0x3f06b6,_0x296a32,_0x5a0d53){const _0x335ff7=_0x464faf;super(),_0x41b507(this,_0x335ff7(0x538),new Map()),_0x41b507(this,_0x335ff7(0x2f2),new _0xb468a3[(_0x335ff7(0x57c))]()),(this[_0x335ff7(0x38a)]=_0x3f06b6,this[_0x335ff7(0x43a)]=_0x296a32,this[_0x335ff7(0x334)]=_0x5a0d53,this[_0x335ff7(0x239)]());}[_0x464faf(0x383)](){const _0x13dd01=_0x464faf;super[_0x13dd01(0x383)](),this[_0x13dd01(0x538)]['forEach'](_0x3bfcee=>_0x3bfcee[_0x13dd01(0x383)]()),this['_entities'][_0x13dd01(0x5be)]();}['getCollabEntity'](_0x191098){const _0x123e1f=_0x464faf;var _0x19655c;return(_0x19655c=this['_entities'][_0x123e1f(0x321)](_0x191098))!=null?_0x19655c:null;}['getCollabEntity$'](_0x44153d){const _0x4a5460=_0x464faf,_0x40777c=this[_0x4a5460(0x1d8)](_0x44153d);return _0x40777c?_0xb468a3['of'](_0x40777c):this['_entityInit$'][_0x4a5460(0x457)](_0x5ac862[_0x4a5460(0x2e9)](_0x303c2f=>_0x303c2f[_0x4a5460(0x268)]===_0x44153d));}[_0x464faf(0x239)](){const _0x3738f6=_0x464faf;this[_0x3738f6(0x334)]['getTypeOfUnitAdded$'](_0x22bd76[_0x3738f6(0x53c)]['UNIVER_SHEET'])[_0x3738f6(0x457)](_0xb468a3[_0x3738f6(0x3d8)](this[_0x3738f6(0x49d)]),_0x5ac862[_0x3738f6(0x5c0)](0x10))[_0x3738f6(0x1d7)](async _0x869c0=>{const _0x1584e3=_0x3738f6,_0x753f8d=_0x869c0[_0x1584e3(0x330)](),_0x5c53b8=await this['_startCollaboration'](_0x753f8d,_0x2341fc[_0x1584e3(0x593)]);this[_0x1584e3(0x538)]['set'](_0x753f8d,_0x5c53b8);}),this['_univerInstanceService'][_0x3738f6(0x390)](_0x22bd76[_0x3738f6(0x53c)][_0x3738f6(0x3c1)])['pipe'](_0xb468a3['takeUntil'](this['dispose$']),_0x5ac862['delay'](0x10))['pipe'](_0x5ac862[_0x3738f6(0x2e9)](_0x4a59ef=>!_0x4a59ef[_0x3738f6(0x330)]()[_0x3738f6(0x279)]('__')))[_0x3738f6(0x1d7)](async _0x2a3fa8=>{const _0x59368d=_0x3738f6,_0x5a388a=_0x2a3fa8['getUnitId'](),_0x3c8b7b=await this[_0x59368d(0x1b4)](_0x5a388a,_0x2341fc[_0x59368d(0x3c1)]);this[_0x59368d(0x538)][_0x59368d(0x372)](_0x5a388a,_0x3c8b7b);}),_0xb468a3[_0x3738f6(0x23e)](this[_0x3738f6(0x334)][_0x3738f6(0x377)](_0x22bd76[_0x3738f6(0x53c)][_0x3738f6(0x593)]),this[_0x3738f6(0x334)][_0x3738f6(0x377)](_0x22bd76['UniverInstanceType']['UNIVER_DOC']))[_0x3738f6(0x457)](_0xb468a3['takeUntil'](this['dispose$']))[_0x3738f6(0x1d7)](_0x18632b=>{const _0x5714da=_0x3738f6,_0xfae493=_0x18632b[_0x5714da(0x330)](),_0xa532e5=this[_0x5714da(0x538)][_0x5714da(0x321)](_0xfae493);_0xa532e5&&(_0xa532e5['dispose'](),this[_0x5714da(0x538)]['delete'](_0xfae493));});}async[_0x464faf(0x1b4)](_0x5d6a36,_0x26e3d3){const _0x11ab79=_0x464faf,_0x5ad37b=await this[_0x11ab79(0x43a)][_0x11ab79(0x59c)](_0x5d6a36),_0x100ff5=this[_0x11ab79(0x38a)]['createInstance'](this[_0x11ab79(0x2c4)](_0x26e3d3),_0x5d6a36,_0x26e3d3,_0x5ad37b);return await _0x100ff5[_0x11ab79(0x51d)](),this[_0x11ab79(0x2f2)][_0x11ab79(0x4d2)](_0x100ff5),_0x100ff5;}[_0x464faf(0x2c4)](_0x1dba7a){const _0x23b29f=_0x464faf;switch(_0x1dba7a){case _0x2341fc[_0x23b29f(0x3c1)]:return _0x19e906[_0x23b29f(0x492)];case _0x2341fc[_0x23b29f(0x593)]:return _0x19e906[_0x23b29f(0x228)];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x1dba7a);}}},_0x19e906[_0x464faf(0x29c)]=_0x340577([_0x1e3caf(0x0,_0x22bd76[_0x464faf(0x568)](_0x22bd76[_0x464faf(0x5bb)])),_0x1e3caf(0x1,_0x22bd76[_0x464faf(0x568)](_0x19e906['CollaborationSessionService'])),_0x1e3caf(0x2,_0x22bd76['IUniverInstanceService'])],_0x19e906[_0x464faf(0x29c)]);const _0x3503fa=[_0x464faf(0x49a),'jiqing500',_0x464faf(0x27f),_0x464faf(0x2fe),'blue400',_0x464faf(0x3ee)];class _0x3ba727 extends _0x22bd76[_0x464faf(0x2b7)]{constructor(){const _0x31f08b=_0x464faf;super(...arguments),_0x41b507(this,_0x31f08b(0x346),new Map()),_0x41b507(this,_0x31f08b(0x48c),0x0);}['assignAColorForMemberID'](_0x5f302c){const _0x45c95f=_0x464faf;if(this['_assignedColors']['has'](_0x5f302c))return this[_0x45c95f(0x346)][_0x45c95f(0x321)](_0x5f302c);const _0x2aa2ac=_0x3503fa[this['_colorIndex']];return this[_0x45c95f(0x48c)]=(this[_0x45c95f(0x48c)]+0x1)%_0x3503fa[_0x45c95f(0x266)],this['_assignedColors'][_0x45c95f(0x372)](_0x5f302c,_0x2aa2ac),_0x2aa2ac;}}var _0x8b6627=Object['defineProperty'],_0x16e67a=Object['getOwnPropertyDescriptor'],_0x1dd5f9=(_0x1839e0,_0x26bd7d,_0x2ed548,_0x129c2f)=>{for(var _0x5d3d51=_0x129c2f>0x1?void 0x0:_0x129c2f?_0x16e67a(_0x26bd7d,_0x2ed548):_0x26bd7d,_0x1aa89e=_0x1839e0['length']-0x1,_0x4b328e;_0x1aa89e>=0x0;_0x1aa89e--)(_0x4b328e=_0x1839e0[_0x1aa89e])&&(_0x5d3d51=(_0x129c2f?_0x4b328e(_0x26bd7d,_0x2ed548,_0x5d3d51):_0x4b328e(_0x5d3d51))||_0x5d3d51);return _0x129c2f&&_0x5d3d51&&_0x8b6627(_0x26bd7d,_0x2ed548,_0x5d3d51),_0x5d3d51;},_0x368856=(_0x48474d,_0x37b750)=>(_0x4c6271,_0x682845)=>_0x37b750(_0x4c6271,_0x682845,_0x48474d);const _0x33ed8e=0x12c,_0x4ad49f=0x64,_0x2669ae=()=>{let _0x5c7079=[],_0x59c5ad=!0x1;return _0xb65b17=>{_0x5c7079['push'](_0xb65b17),_0x59c5ad||(_0x59c5ad=!0x0,setTimeout(()=>{const _0x4962ec=_0x437d;_0x5c7079[_0x4962ec(0x1fc)](_0x45309a=>_0x45309a()),_0x5c7079=[],_0x59c5ad=!0x1;}));};};let _0x5629d8=class extends _0x22bd76[_0x464faf(0x5c2)]{constructor(_0x597173,_0xc0dfdd,_0x53fdc4,_0xb531b8,_0x5c3435,_0x2ba086,_0x597357,_0x5eb05f){const _0x37dbcd=_0x464faf;super(),_0x41b507(this,_0x37dbcd(0x26c),!0x1),_0x41b507(this,'_init',!0x1),_0x41b507(this,_0x37dbcd(0x54a),new _0xb468a3[(_0x37dbcd(0x579))](new Map())),_0x41b507(this,'cursorInfo$',this[_0x37dbcd(0x54a)]['asObservable']()),_0x41b507(this,_0x37dbcd(0x464),new _0xb468a3[(_0x37dbcd(0x579))]([])),_0x41b507(this,'roomMembers$',this[_0x37dbcd(0x464)][_0x37dbcd(0x457)](_0xb468a3[_0x37dbcd(0x44d)](_0x33ed8e))),_0x41b507(this,_0x37dbcd(0x4fe),_0x113112((_0x874e0d,_0x9b3e8d)=>{const _0x5d3113=_0x37dbcd,_0x32fecc={'eventID':_0x2cb6ec[_0x5d3113(0x312)][_0x5d3113(0x39c)],'data':{'unitID':this[_0x5d3113(0x268)],'memberID':this['_session']['getMemberID'](),'selection':_0x505ad4[_0x5d3113(0x386)](_0x874e0d,_0x9b3e8d[_0x5d3113(0x22e)])}};this['_session'][_0x5d3113(0x427)](_0x32fecc,this[_0x5d3113(0x268)]);},_0x4ad49f)),(this[_0x37dbcd(0x268)]=_0x597173,this['_session']=_0xc0dfdd,this['_injector']=_0x53fdc4,this[_0x37dbcd(0x1df)]=_0xb531b8,this['_memberService']=_0x5c3435,this[_0x37dbcd(0x334)]=_0x2ba086,this[_0x37dbcd(0x382)]=_0x597357,this['_refRangeService']=_0x5eb05f);}get[_0x464faf(0x3f8)](){const _0x31e270=_0x464faf;return this[_0x31e270(0x54a)][_0x31e270(0x4f1)]();}get[_0x464faf(0x40c)](){const _0x339963=_0x464faf;return this[_0x339963(0x464)][_0x339963(0x4f1)]();}['dispose'](){const _0x2bb012=_0x464faf;super[_0x2bb012(0x383)](),this[_0x2bb012(0x54a)][_0x2bb012(0x4d2)](new Map()),this[_0x2bb012(0x54a)][_0x2bb012(0x3f9)](),this[_0x2bb012(0x464)]['next']([]),this[_0x2bb012(0x464)]['complete']();}[_0x464faf(0x51d)](){const _0x189774=_0x464faf;this[_0x189774(0x239)]||(this['_init']=!0x0,this[_0x189774(0x211)]['sessionStatus$'][_0x189774(0x457)](_0xb468a3[_0x189774(0x3d8)](this[_0x189774(0x49d)]))[_0x189774(0x1d7)](_0x892e1d=>{const _0x130592=_0x189774;_0x892e1d===_0x4d9058[_0x130592(0x50f)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x189774(0x211)][_0x189774(0x3f2)][_0x189774(0x457)](_0xb468a3[_0x189774(0x3d8)](this[_0x189774(0x49d)]))['subscribe'](_0x4c3a46=>{const _0x1855f0=_0x189774,_0xd347bc=_0x4c3a46[_0x1855f0(0x571)];_0xd347bc===_0x2cb6ec[_0x1855f0(0x312)][_0x1855f0(0x39c)]&&this[_0x1855f0(0x419)](_0x4c3a46),_0xd347bc===_0x2cb6ec['CollaborationEvent'][_0x1855f0(0x4c1)]&&this['_onCursorDelete'](_0x4c3a46);}),this['_onRefRangeChange'](),this[_0x189774(0x241)](this[_0x189774(0x382)][_0x189774(0x3da)](_0x3b5685=>{const _0x1c5ad3=_0x189774;if(this[_0x1c5ad3(0x26c)]&&_0x3b5685['id']===_0x38d7d8[_0x1c5ad3(0x4a7)]['id']&&_0x3b5685[_0x1c5ad3(0x4d5)][_0x1c5ad3(0x3eb)]===this['unitID']){const _0x55a718=_0x3b5685['params'];this[_0x1c5ad3(0x4fe)](_0x55a718[_0x1c5ad3(0x574)],_0x55a718[_0x1c5ad3(0x4d4)][0x0]);}})));}[_0x464faf(0x419)](_0x3cf5f5){const _0x5cfabb=_0x464faf;var _0x51e62e,_0x551d6f;const {memberID:_0x3ada14,selection:_0x1eee65}=_0x3cf5f5['data'],{sheetName:_0x4b65cc,range:_0x13883f}=_0x505ad4[_0x5cfabb(0x4d7)](_0x1eee65),_0x55e885={'name':(_0x551d6f=(_0x51e62e=this['_memberService'][_0x5cfabb(0x30f)](this[_0x5cfabb(0x268)],_0x3ada14))==null?void 0x0:_0x51e62e[_0x5cfabb(0x51b)])!=null?_0x551d6f:_0x5cfabb(0x560),'range':this[_0x5cfabb(0x3dd)](_0x4b65cc,_0x13883f),'sheetID':_0x4b65cc,'color':this[_0x5cfabb(0x1df)][_0x5cfabb(0x25e)](_0x3ada14),'selection':_0x1eee65},_0x114c90=this[_0x5cfabb(0x3f8)];_0x114c90[_0x5cfabb(0x372)](_0x3ada14,_0x55e885),this[_0x5cfabb(0x54a)][_0x5cfabb(0x4d2)](_0x114c90);}[_0x464faf(0x202)](_0x1f2211){const _0x38babd=_0x464faf,{memberID:_0x501bff}=_0x1f2211[_0x38babd(0x25b)],_0x201583=this[_0x38babd(0x3f8)];_0x201583['delete'](_0x501bff),this[_0x38babd(0x54a)][_0x38babd(0x4d2)](_0x201583);}[_0x464faf(0x3dd)](_0x5d57f8,_0x44bf43){const _0x43ac1e=_0x464faf;var _0x213c47,_0x16eefd;const _0x2eb2e9=(_0x16eefd=(_0x213c47=this[_0x43ac1e(0x334)]['getUniverSheetInstance'](this[_0x43ac1e(0x268)]))==null?void 0x0:_0x213c47['getSheetBySheetId'](_0x5d57f8))==null?void 0x0:_0x16eefd[_0x43ac1e(0x33d)]();return(_0x2eb2e9==null?void 0x0:_0x2eb2e9[_0x43ac1e(0x26a)](_0x9f3bbf=>_0x22bd76[_0x43ac1e(0x57f)][_0x43ac1e(0x22d)](_0x9f3bbf,_0x44bf43)))||_0x44bf43;}[_0x464faf(0x49b)](){const _0x1594b0=_0x464faf,_0x7ee62d=new _0x22bd76['DisposableCollection'](),_0x2bf23b=_0x2669ae(),_0x1bbe6a=()=>{const _0x425bd3=_0x437d;_0x7ee62d[_0x425bd3(0x383)]();const _0x4ed978=(_0x2ab99b,_0x1da3e5,_0x575a28,_0x3cbe5d)=>{const _0x509eb3=_0x425bd3;let _0x2025ca=[];switch(_0x2ab99b['id']){case _0x38d7d8[_0x509eb3(0x50e)]['DeleteRangeMoveLeftCommandId']:{_0x2025ca=_0x38d7d8[_0x509eb3(0x440)](_0x2ab99b,_0x3cbe5d);break;}case _0x38d7d8[_0x509eb3(0x50e)][_0x509eb3(0x553)]:{_0x2025ca=_0x38d7d8[_0x509eb3(0x1ee)](_0x2ab99b,_0x3cbe5d);break;}case _0x38d7d8[_0x509eb3(0x50e)]['InsertColCommandId']:{_0x2025ca=_0x38d7d8[_0x509eb3(0x572)](_0x2ab99b,_0x3cbe5d);break;}case _0x38d7d8['EffectRefRangId'][_0x509eb3(0x316)]:{_0x2025ca=_0x38d7d8[_0x509eb3(0x50c)](_0x2ab99b,_0x3cbe5d);break;}case _0x38d7d8[_0x509eb3(0x50e)][_0x509eb3(0x1af)]:{_0x2025ca=_0x38d7d8[_0x509eb3(0x33b)](_0x2ab99b,_0x3cbe5d);break;}case _0x38d7d8[_0x509eb3(0x50e)][_0x509eb3(0x493)]:{_0x2025ca=_0x38d7d8[_0x509eb3(0x2ed)](_0x2ab99b,_0x3cbe5d);break;}case _0x38d7d8[_0x509eb3(0x50e)][_0x509eb3(0x325)]:{_0x2025ca=_0x38d7d8['handleMoveRange'](_0x2ab99b,_0x3cbe5d);break;}case _0x38d7d8[_0x509eb3(0x50e)]['RemoveColCommandId']:{_0x2025ca=_0x38d7d8['handleIRemoveCol'](_0x2ab99b,_0x3cbe5d);break;}case _0x38d7d8[_0x509eb3(0x50e)][_0x509eb3(0x46a)]:{_0x2025ca=_0x38d7d8[_0x509eb3(0x1c2)](_0x2ab99b,_0x3cbe5d);break;}}const _0x1b9dc8=_0x38d7d8['runRefRangeMutations'](_0x2025ca,_0x3cbe5d),_0x3f102e=this[_0x509eb3(0x3f8)]['get'](_0x1da3e5);if(_0x3f102e&&_0x1b9dc8){const _0x5d1e76={..._0x3f102e,'range':_0x1b9dc8};this[_0x509eb3(0x3f8)][_0x509eb3(0x372)](_0x1da3e5,_0x5d1e76),_0x2bf23b(()=>{const _0x1ac08c=_0x509eb3,_0xddb929=this[_0x1ac08c(0x448)][_0x1ac08c(0x36a)](_0x1b9dc8,_0x587379=>(_0xddb929['dispose'](),_0x4ed978(_0x587379,_0x1da3e5,_0x575a28,_0x1b9dc8)));_0x7ee62d[_0x1ac08c(0x59b)](_0xddb929);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x425bd3(0x1fc)]((_0x50b11f,_0xff10ff)=>{const _0x286a84=_0x425bd3,{range:_0x20a4d0,sheetID:_0x14aa15}=_0x50b11f,_0x2ab5ce=this[_0x286a84(0x448)]['registerRefRange'](_0x20a4d0,_0x557a1f=>(_0x2ab5ce[_0x286a84(0x383)](),_0x4ed978(_0x557a1f,_0xff10ff,_0x14aa15,_0x20a4d0)));_0x7ee62d[_0x286a84(0x59b)](_0x2ab5ce);});};this[_0x1594b0(0x241)](_0x22bd76[_0x1594b0(0x2ec)](this['_cursorInfo$'][_0x1594b0(0x1d7)](()=>{_0x1bbe6a();})));}[_0x464faf(0x31f)](){const _0x18e56d=_0x464faf;var _0x9d31f8,_0x1086e1;if(this[_0x18e56d(0x26c)]=!0x0,((_0x9d31f8=this[_0x18e56d(0x334)][_0x18e56d(0x5c4)]())==null?void 0x0:_0x9d31f8[_0x18e56d(0x330)]())!==this[_0x18e56d(0x268)])return;const _0x5c99b6=(_0x1086e1=this[_0x18e56d(0x38a)][_0x18e56d(0x321)](_0x38d7d8[_0x18e56d(0x24d)])[_0x18e56d(0x35b)]())==null?void 0x0:_0x1086e1[0x0],_0x27ce89=this[_0x18e56d(0x334)][_0x18e56d(0x43e)](_0x22bd76[_0x18e56d(0x53c)][_0x18e56d(0x593)])[_0x18e56d(0x590)]();_0x5c99b6&&_0x27ce89&&this['_updateLocalCursor'](_0x27ce89[_0x18e56d(0x1ce)](),_0x5c99b6);}[_0x464faf(0x3d4)](){const _0x57ff0d=_0x464faf;this[_0x57ff0d(0x26c)]=!0x1;}};_0x5629d8=_0x1dd5f9([_0x368856(0x2,_0x22bd76[_0x464faf(0x568)](_0x22bd76[_0x464faf(0x5bb)])),_0x368856(0x3,_0x22bd76[_0x464faf(0x568)](_0x3ba727)),_0x368856(0x4,_0x22bd76[_0x464faf(0x568)](_0x27752c)),_0x368856(0x5,_0x22bd76[_0x464faf(0x3a0)]),_0x368856(0x6,_0x22bd76[_0x464faf(0x4ae)]),_0x368856(0x7,_0x22bd76[_0x464faf(0x568)](_0x38d7d8[_0x464faf(0x1b7)]))],_0x5629d8);var _0x39d1db=Object['defineProperty'],_0x5e8739=Object[_0x464faf(0x36f)],_0x146eba=(_0x554a42,_0x143cce,_0x50701a,_0x5af9ed)=>{const _0x5de31f=_0x464faf;for(var _0x3a9826=_0x5af9ed>0x1?void 0x0:_0x5af9ed?_0x5e8739(_0x143cce,_0x50701a):_0x143cce,_0xe94276=_0x554a42[_0x5de31f(0x266)]-0x1,_0x141d26;_0xe94276>=0x0;_0xe94276--)(_0x141d26=_0x554a42[_0xe94276])&&(_0x3a9826=(_0x5af9ed?_0x141d26(_0x143cce,_0x50701a,_0x3a9826):_0x141d26(_0x3a9826))||_0x3a9826);return _0x5af9ed&&_0x3a9826&&_0x39d1db(_0x143cce,_0x50701a,_0x3a9826),_0x3a9826;},_0x472faa=(_0x4208d3,_0x2577d4)=>(_0x40d6ea,_0x3ebba9)=>_0x2577d4(_0x40d6ea,_0x3ebba9,_0x4208d3);const _0x11f165=0x12c,_0x350afd=0x64;let _0x306e68=class extends _0x22bd76[_0x464faf(0x5c2)]{constructor(_0x4a29fe,_0xd837f0,_0x17d371,_0xb33bef,_0x53f99a,_0x6c95e6,_0x512906,_0x5d660f,_0x1b72ef){const _0x331024=_0x464faf;super(),_0x41b507(this,_0x331024(0x26c),!0x1),_0x41b507(this,_0x331024(0x239),!0x1),_0x41b507(this,_0x331024(0x54a),new _0xb468a3['BehaviorSubject'](new Map())),_0x41b507(this,_0x331024(0x54e),this[_0x331024(0x54a)][_0x331024(0x45e)]()),_0x41b507(this,'_roomMembers$',new _0xb468a3['BehaviorSubject']([])),_0x41b507(this,_0x331024(0x317),this[_0x331024(0x464)][_0x331024(0x457)](_0xb468a3['debounceTime'](_0x11f165))),_0x41b507(this,_0x331024(0x4fe),_0x113112(_0x21cead=>{const _0x29de9f=_0x331024,_0x55e025={'eventID':_0x2cb6ec[_0x29de9f(0x312)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x29de9f(0x211)][_0x29de9f(0x2b8)](),'selection':_0x33c720(_0x21cead)}};this[_0x29de9f(0x211)]['send'](_0x55e025,this[_0x29de9f(0x268)]);},_0x350afd)),(this['unitID']=_0x4a29fe,this[_0x331024(0x211)]=_0xd837f0,this['_injector']=_0x17d371,this[_0x331024(0x1df)]=_0xb33bef,this[_0x331024(0x4bd)]=_0x53f99a,this['_syncEditingCollabCursorService']=_0x6c95e6,this[_0x331024(0x24e)]=_0x512906,this[_0x331024(0x334)]=_0x5d660f,this[_0x331024(0x382)]=_0x1b72ef);}get[_0x464faf(0x3f8)](){const _0x265e5f=_0x464faf;return this[_0x265e5f(0x54a)]['getValue']();}get[_0x464faf(0x40c)](){const _0x26cae4=_0x464faf;return this[_0x26cae4(0x464)]['getValue']();}[_0x464faf(0x383)](){const _0x375cd9=_0x464faf;super[_0x375cd9(0x383)](),this[_0x375cd9(0x54a)][_0x375cd9(0x4d2)](new Map()),this[_0x375cd9(0x54a)]['complete'](),this['_roomMembers$'][_0x375cd9(0x4d2)]([]),this['_roomMembers$'][_0x375cd9(0x3f9)]();}['init'](){const _0x30cd6a=_0x464faf;this['_init']||(this[_0x30cd6a(0x239)]=!0x0,this['_session']['sessionStatus$']['pipe'](_0xb468a3[_0x30cd6a(0x3d8)](this[_0x30cd6a(0x49d)]))[_0x30cd6a(0x1d7)](_0x521755=>{const _0x52418b=_0x30cd6a;_0x521755===_0x4d9058[_0x52418b(0x50f)]?this[_0x52418b(0x31f)]():this[_0x52418b(0x3d4)]();}),this[_0x30cd6a(0x211)][_0x30cd6a(0x3f2)][_0x30cd6a(0x457)](_0xb468a3['takeUntil'](this[_0x30cd6a(0x49d)]))[_0x30cd6a(0x1d7)](_0x39dc09=>{const _0x3c40a1=_0x30cd6a,_0x540267=_0x39dc09[_0x3c40a1(0x571)];_0x540267===_0x2cb6ec[_0x3c40a1(0x312)][_0x3c40a1(0x39c)]&&this[_0x3c40a1(0x419)](_0x39dc09),_0x540267===_0x2cb6ec[_0x3c40a1(0x312)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x39dc09);}),this[_0x30cd6a(0x241)](this[_0x30cd6a(0x382)]['onCommandExecuted'](_0x597368=>{const _0x45db94=_0x30cd6a,_0x73bf27=_0x597368[_0x45db94(0x4d5)];_0x73bf27!=null&&this['_online']&&_0x597368['id']===_0x369ae4[_0x45db94(0x462)]['id']&&_0x73bf27['unitId']===this[_0x45db94(0x268)]&&_0x73bf27[_0x45db94(0x4ef)]===!0x1&&this['_updateLocalCursor'](_0x73bf27[_0x45db94(0x466)]);})),this[_0x30cd6a(0x578)]['collabCursorState$'][_0x30cd6a(0x457)](_0xb468a3[_0x30cd6a(0x3d8)](this[_0x30cd6a(0x49d)]))['subscribe'](_0x3ee766=>{const _0x30d0ee=_0x30cd6a;if((_0x3ee766==null?void 0x0:_0x3ee766[_0x30d0ee(0x268)])!==this[_0x30d0ee(0x268)])return;const _0x2aa1a9={'eventID':_0x2cb6ec['CollaborationEvent'][_0x30d0ee(0x39c)],'data':_0x3ee766};this[_0x30d0ee(0x419)](_0x2aa1a9);}),this['disposeWithMe'](this['_commandService'][_0x30cd6a(0x3da)](_0x52a6aa=>{const _0x3800b6=_0x30cd6a;if(_0x52a6aa[_0x3800b6(0x4d5)]==null)return;const _0xad3622=_0x52a6aa[_0x3800b6(0x4d5)];if(_0x52a6aa['id']!==_0x369ae4['RichTextEditingMutation']['id']||_0xad3622[_0x3800b6(0x3eb)]!==this[_0x3800b6(0x268)])return;const _0x31f1e4={'id':_0x3800b6(0x305),'params':_0xad3622},_0x4d7824=this['cursorInfo'];for(const [_0x3546fc,_0x3258e2]of _0x4d7824){const _0x576c09={'id':_0x3800b6(0x305),'params':{'unitId':this[_0x3800b6(0x268)],'actions':null,'textRanges':_0x3258e2[_0x3800b6(0x466)]}},_0x1e9657=this['_transformService']['transformMutation'](_0x31f1e4,_0x576c09,!0x1);if(_0x2cb6ec[_0x3800b6(0x204)](_0x1e9657))throw _0x1e9657[_0x3800b6(0x458)];_0x4d7824[_0x3800b6(0x372)](_0x3546fc,{..._0x3258e2,'ranges':_0x1e9657['m2Prime'][_0x3800b6(0x4d5)]['textRanges']});}queueMicrotask(()=>{const _0x21c623=_0x3800b6;this[_0x21c623(0x54a)][_0x21c623(0x4d2)](_0x4d7824);});})));}[_0x464faf(0x419)](_0x4be8f5){const _0x112fbd=_0x464faf;var _0x3c5cc3,_0x5d00d3;const {memberID:_0x1a0e3c,selection:_0x58f287}=_0x4be8f5[_0x112fbd(0x25b)],_0x404e21=_0x488ea0(_0x58f287),_0x3919e1=(_0x5d00d3=(_0x3c5cc3=this[_0x112fbd(0x4bd)][_0x112fbd(0x30f)](this[_0x112fbd(0x268)],_0x1a0e3c))==null?void 0x0:_0x3c5cc3[_0x112fbd(0x51b)])!=null?_0x5d00d3:_0x112fbd(0x560),_0x83fe09={'color':this[_0x112fbd(0x1df)][_0x112fbd(0x25e)](_0x1a0e3c),'name':_0x3919e1,'ranges':_0x404e21},_0x2e4585=this['cursorInfo'];_0x2e4585[_0x112fbd(0x372)](_0x1a0e3c,_0x83fe09),this['_cursorInfo$'][_0x112fbd(0x4d2)](_0x2e4585);}[_0x464faf(0x202)](_0x38272e){const _0x10c0dc=_0x464faf,{memberID:_0x552417}=_0x38272e[_0x10c0dc(0x25b)],_0x24f4a6=this[_0x10c0dc(0x3f8)];_0x24f4a6[_0x10c0dc(0x331)](_0x552417),this['_cursorInfo$']['next'](_0x24f4a6);}[_0x464faf(0x31f)](){const _0x5d9e99=_0x464faf;var _0x106271;if(this[_0x5d9e99(0x26c)]=!0x0,((_0x106271=this[_0x5d9e99(0x334)][_0x5d9e99(0x5c4)]())==null?void 0x0:_0x106271['getUnitId']())!==this[_0x5d9e99(0x268)])return;const _0x566310=this[_0x5d9e99(0x38a)][_0x5d9e99(0x321)](_0x369ae4[_0x5d9e99(0x385)])['getDocRanges']();Array[_0x5d9e99(0x564)](_0x566310)&&_0x566310[_0x5d9e99(0x266)]>0x0&&this[_0x5d9e99(0x4fe)](_0x566310);}[_0x464faf(0x3d4)](){const _0x4ffd24=_0x464faf;this[_0x4ffd24(0x26c)]=!0x1;}};_0x306e68=_0x146eba([_0x472faa(0x2,_0x22bd76[_0x464faf(0x568)](_0x22bd76[_0x464faf(0x5bb)])),_0x472faa(0x3,_0x22bd76['Inject'](_0x3ba727)),_0x472faa(0x4,_0x22bd76[_0x464faf(0x568)](_0x27752c)),_0x472faa(0x5,_0x22bd76[_0x464faf(0x568)](_0x43e255)),_0x472faa(0x6,_0x2cb6ec['ITransformService']),_0x472faa(0x7,_0x22bd76['IUniverInstanceService']),_0x472faa(0x8,_0x22bd76['ICommandService'])],_0x306e68);var _0x4cbfbd=Object[_0x464faf(0x229)],_0x9ff05=Object['getOwnPropertyDescriptor'],_0x1df8a7=(_0x48f5be,_0x1f1629,_0x2f568e,_0x254c48)=>{for(var _0x2a1339=_0x254c48>0x1?void 0x0:_0x254c48?_0x9ff05(_0x1f1629,_0x2f568e):_0x1f1629,_0x193593=_0x48f5be['length']-0x1,_0x24dd7b;_0x193593>=0x0;_0x193593--)(_0x24dd7b=_0x48f5be[_0x193593])&&(_0x2a1339=(_0x254c48?_0x24dd7b(_0x1f1629,_0x2f568e,_0x2a1339):_0x24dd7b(_0x2a1339))||_0x2a1339);return _0x254c48&&_0x2a1339&&_0x4cbfbd(_0x1f1629,_0x2f568e,_0x2a1339),_0x2a1339;},_0xab6fba=(_0x26402e,_0x298795)=>(_0x1b1c8a,_0x3dfd7b)=>_0x298795(_0x1b1c8a,_0x3dfd7b,_0x26402e);let _0x3c33bf=class extends _0x22bd76[_0x464faf(0x5c2)]{constructor(_0x3cb2b7,_0x1ead7f,_0x263006){const _0x4126be=_0x464faf;super(),_0x41b507(this,_0x4126be(0x538),new Map()),_0x41b507(this,_0x4126be(0x2f2),new _0xb468a3['Subject']()),(this[_0x4126be(0x334)]=_0x3cb2b7,this[_0x4126be(0x38a)]=_0x1ead7f,this[_0x4126be(0x43a)]=_0x263006,this[_0x4126be(0x239)]());}[_0x464faf(0x383)](){const _0x5c1f1a=_0x464faf;super[_0x5c1f1a(0x383)](),this[_0x5c1f1a(0x2f2)][_0x5c1f1a(0x3f9)](),this[_0x5c1f1a(0x538)][_0x5c1f1a(0x1fc)](_0x541cdf=>_0x541cdf['dispose']());}[_0x464faf(0x2ac)](_0x353dca){const _0xef57c5=_0x464faf;return this[_0xef57c5(0x538)][_0xef57c5(0x2e2)](_0x353dca)?this[_0xef57c5(0x538)][_0xef57c5(0x321)](_0x353dca)[_0xef57c5(0x54e)]:this[_0xef57c5(0x2f2)][_0xef57c5(0x457)](_0xb468a3[_0xef57c5(0x2e9)](_0x4aab81=>_0x4aab81[_0xef57c5(0x268)]===_0x353dca),_0xb468a3[_0xef57c5(0x506)](_0x25b22d=>_0x25b22d['cursorInfo$']));}[_0x464faf(0x239)](){const _0x120071=_0x464faf;this[_0x120071(0x334)][_0x120071(0x390)](_0x22bd76[_0x120071(0x53c)][_0x120071(0x593)])[_0x120071(0x457)](_0xb468a3[_0x120071(0x3d8)](this['dispose$']))[_0x120071(0x1d7)](async _0x46412d=>{const _0x4b1b6e=_0x120071,_0x21fb1d=_0x46412d[_0x4b1b6e(0x330)](),_0x1d82b4=await this[_0x4b1b6e(0x434)](_0x21fb1d);this[_0x4b1b6e(0x2f2)]['next'](_0x1d82b4),this[_0x4b1b6e(0x538)][_0x4b1b6e(0x372)](_0x21fb1d,_0x1d82b4);}),this[_0x120071(0x334)]['getTypeOfUnitAdded$'](_0x22bd76['UniverInstanceType'][_0x120071(0x3c1)])[_0x120071(0x457)](_0xb468a3[_0x120071(0x3d8)](this[_0x120071(0x49d)]))['pipe'](_0xb468a3[_0x120071(0x2e9)](_0x16b85e=>!_0x16b85e[_0x120071(0x330)]()[_0x120071(0x279)]('__')))[_0x120071(0x1d7)](async _0x46e03b=>{const _0x5e6f0e=_0x120071,_0x43843e=_0x46e03b[_0x5e6f0e(0x330)](),_0x441de4=await this[_0x5e6f0e(0x3d9)](_0x43843e);this[_0x5e6f0e(0x2f2)]['next'](_0x441de4),this['_entities'][_0x5e6f0e(0x372)](_0x43843e,_0x441de4);}),_0xb468a3[_0x120071(0x23e)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x22bd76[_0x120071(0x53c)]['UNIVER_DOC']),this[_0x120071(0x334)][_0x120071(0x377)](_0x22bd76[_0x120071(0x53c)][_0x120071(0x593)]))[_0x120071(0x457)](_0xb468a3[_0x120071(0x3d8)](this[_0x120071(0x49d)]))[_0x120071(0x1d7)](_0x1c7b0a=>{const _0x3e7a4f=_0x120071,_0x1ddcc6=_0x1c7b0a['getUnitId'](),_0x32f584=this[_0x3e7a4f(0x538)][_0x3e7a4f(0x321)](_0x1ddcc6);_0x32f584&&(_0x32f584[_0x3e7a4f(0x383)](),this['_entities']['delete'](_0x1ddcc6));});}async[_0x464faf(0x434)](_0x4c331f){const _0x31e6fa=_0x464faf,_0x8a55fc=await this[_0x31e6fa(0x43a)]['requireSession'](_0x4c331f),_0x598c79=this['_injector'][_0x31e6fa(0x3ae)](_0x5629d8,_0x4c331f,_0x8a55fc);return _0x598c79['init'](),_0x598c79;}async[_0x464faf(0x3d9)](_0x67fa0e){const _0x1cfe7d=_0x464faf,_0x63a0db=await this[_0x1cfe7d(0x43a)][_0x1cfe7d(0x59c)](_0x67fa0e),_0x521454=this[_0x1cfe7d(0x38a)][_0x1cfe7d(0x3ae)](_0x306e68,_0x67fa0e,_0x63a0db);return _0x521454[_0x1cfe7d(0x51d)](),_0x521454;}};_0x3c33bf=_0x1df8a7([_0x22bd76[_0x464faf(0x3c4)](_0x22bd76[_0x464faf(0x366)][_0x464faf(0x5b2)],_0x3c33bf),_0xab6fba(0x0,_0x22bd76[_0x464faf(0x3a0)]),_0xab6fba(0x1,_0x22bd76[_0x464faf(0x568)](_0x22bd76[_0x464faf(0x5bb)])),_0xab6fba(0x2,_0x22bd76[_0x464faf(0x568)](_0x19e906[_0x464faf(0x2ca)]))],_0x3c33bf);const _0x3b41c1=0x14,_0x263f3d=0xc8,_0x2f603f=0x4,_0x393856=0x5;function _0x3b4a0c(_0x438769,_0x28ac9f){const _0x24ab0b=_0x464faf;let {radius:_0x240307,width:_0x8c1713,height:_0x2dbb02}=_0x28ac9f;_0x240307=_0x240307!=null?_0x240307:0x0,_0x8c1713=_0x8c1713!=null?_0x8c1713:0x1e,_0x2dbb02=_0x2dbb02!=null?_0x2dbb02:0x1e;let _0x5c60ca=0x0,_0x1ac65c=0x0,_0xc62d0b=0x0;_0x5c60ca=_0x1ac65c=_0xc62d0b=Math[_0x24ab0b(0x39f)](_0x240307,_0x8c1713/0x2,_0x2dbb02/0x2),_0x438769[_0x24ab0b(0x294)](),_0x438769[_0x24ab0b(0x1db)](_0x5c60ca,0x0),_0x438769[_0x24ab0b(0x27a)](_0x8c1713-_0x1ac65c,0x0),_0x438769[_0x24ab0b(0x252)](_0x8c1713-_0x1ac65c,_0x1ac65c,_0x1ac65c,Math['PI']*0x3/0x2,0x0,!0x1),_0x438769[_0x24ab0b(0x27a)](_0x8c1713,_0x2dbb02-_0xc62d0b),_0x438769[_0x24ab0b(0x252)](_0x8c1713-_0xc62d0b,_0x2dbb02-_0xc62d0b,_0xc62d0b,0x0,Math['PI']/0x2,!0x1),_0x438769[_0x24ab0b(0x27a)](0x0,_0x2dbb02),_0x438769[_0x24ab0b(0x27a)](0x0,_0x5c60ca),_0x438769[_0x24ab0b(0x252)](_0x5c60ca,_0x5c60ca,_0x5c60ca,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x438769[_0x24ab0b(0x208)](),_0x28ac9f[_0x24ab0b(0x326)]&&(_0x438769['save'](),_0x438769[_0x24ab0b(0x2d4)]=_0x28ac9f['fill'],_0x28ac9f[_0x24ab0b(0x3cb)]===_0x24ab0b(0x450)?_0x438769[_0x24ab0b(0x326)](_0x24ab0b(0x450)):_0x438769[_0x24ab0b(0x326)](),_0x438769[_0x24ab0b(0x37f)]());}class _0x3e52ae extends _0x3ab0d3[_0x464faf(0x4ed)]{constructor(_0x1d9228,_0x536d0e){const _0x5bd3aa=_0x464faf;super(_0x1d9228,_0x536d0e),_0x41b507(this,_0x5bd3aa(0x280)),_0x41b507(this,_0x5bd3aa(0x393)),(this[_0x5bd3aa(0x280)]=_0x536d0e==null?void 0x0:_0x536d0e[_0x5bd3aa(0x280)],this[_0x5bd3aa(0x393)]=_0x536d0e==null?void 0x0:_0x536d0e[_0x5bd3aa(0x393)]);}static[_0x464faf(0x2d9)](_0x124e69,_0x195935){const _0x336963=_0x464faf,{text:_0x23b9e4,color:_0x3b9baa}=_0x195935;_0x124e69[_0x336963(0x2d1)](),_0x124e69['font']=_0x336963(0x2a9);const _0x5f116b=_0x124e69[_0x336963(0x1a0)](_0x23b9e4)['width'],_0x3b53b2=Math['min'](_0x5f116b+0x2*_0x2f603f,_0x263f3d);_0x3b4a0c(_0x124e69,{'height':_0x3b41c1,'radius':0x4,'width':_0x3b53b2,'fill':_0x3b9baa,'evented':!0x1}),_0x124e69[_0x336963(0x2d4)]=_0x336963(0x1f7);const _0x336b0b=_0x2f603f,_0x5bc210=_0x3b41c1-_0x393856,_0x1efc8c=_0x263f3d-0x2*_0x2f603f;if(_0x5f116b>_0x1efc8c){let _0x4953c3='',_0x5c7b7d=0x0;for(const _0x4a4564 of _0x23b9e4){const _0x21eb30=_0x124e69[_0x336963(0x1a0)](_0x4a4564)[_0x336963(0x2f6)];if(_0x5c7b7d+_0x21eb30<=_0x1efc8c-_0x124e69[_0x336963(0x1a0)](_0x336963(0x2cb))[_0x336963(0x2f6)])_0x4953c3+=_0x4a4564,_0x5c7b7d+=_0x21eb30;else{_0x4953c3+='...';break;}}_0x124e69[_0x336963(0x34f)](_0x4953c3,_0x336b0b,_0x5bc210);}else _0x124e69[_0x336963(0x34f)](_0x23b9e4,_0x336b0b,_0x5bc210);_0x124e69[_0x336963(0x37f)]();}['_draw'](_0x3b070b){_0x3e52ae['drawWith'](_0x3b070b,this);}}const _0xede5ef='collab-text-anchor-',_0xcd1710=_0x464faf(0x2df),_0x2ce90f='collab-rect-range-',_0x256ab1=0x6,_0x12357f=1.5,_0x31547a=0x4,_0x211c82=1.5,_0x4d0ab7='rgba(255,\x20255,\x20255,\x200.01)';class _0xec126a{constructor(_0x5d70a7,_0x4cc6ec,_0x53e8b7,_0x4dbf26){const _0x30fc0c=_0x464faf;_0x41b507(this,_0x30fc0c(0x1a6),[]),_0x41b507(this,_0x30fc0c(0x4ca),null),_0x41b507(this,'_textBubble',null),_0x41b507(this,'_anchorDot',null),_0x41b507(this,'_hideTimer',null),_0x41b507(this,_0x30fc0c(0x213),null),(this['_cursor']=_0x5d70a7,this['_scene']=_0x4cc6ec,this['_docSkeleton']=_0x53e8b7,this[_0x30fc0c(0x472)]=_0x4dbf26,this[_0x30fc0c(0x43c)]());}set[_0x464faf(0x1a1)](_0x3e26c4){const _0x32a540=_0x464faf;_0x3e26c4?(this[_0x32a540(0x542)]&&this[_0x32a540(0x542)][_0x32a540(0x233)](),this['_textBubble']&&this['_textBubble']['show']()):(this[_0x32a540(0x542)]&&this[_0x32a540(0x542)][_0x32a540(0x550)](),this['_textBubble']&&this[_0x32a540(0x216)][_0x32a540(0x233)]());}[_0x464faf(0x383)](){const _0x118499=_0x464faf;for(const _0x4c7e44 of this[_0x118499(0x1a6)])_0x4c7e44[_0x118499(0x383)]();this[_0x118499(0x216)]&&this['_textBubble'][_0x118499(0x383)](),this[_0x118499(0x542)]&&this['_anchorDot'][_0x118499(0x383)](),this[_0x118499(0x4ca)]&&this[_0x118499(0x4ca)][_0x118499(0x383)](),this['_eventUnsubscribe']&&this[_0x118499(0x213)]();}[_0x464faf(0x43c)](){const _0x221934=_0x464faf;var _0x25910f;const {_docSkeleton:_0x4aab2d,_document:_0x1d340e}=this,{color:_0x2965f8,name:_0x51f83f,ranges:_0x3e22ee}=this[_0x221934(0x33a)],_0x2a2f92=_0x1d340e[_0x221934(0x495)](),{docsLeft:_0x15aeff,docsTop:_0x4b397a}=_0x2a2f92,_0x2ce7d6=new _0x3efaf4[(_0x221934(0x48b))](_0x2a2f92,_0x4aab2d);for(const {startOffset:_0x26698c,endOffset:_0x253092,collapsed:_0x5422fd,isActive:_0x30b0e9}of _0x3e22ee){const _0x17d0dd=_0x4aab2d[_0x221934(0x552)](_0x26698c),_0x46f290=_0x4aab2d[_0x221934(0x552)](_0x253092);if(_0x30b0e9){const {contentBoxPointGroup:_0x305053}=_0x2ce7d6[_0x221934(0x39b)](_0x46f290,_0x46f290);if(_0x305053['length']===0x0)continue;this[_0x221934(0x473)](_0x2965f8,_0x305053,_0x15aeff,_0x4b397a,_0x51f83f),this[_0x221934(0x213)]=this['_handleHover']();}if(!_0x5422fd&&_0x17d0dd&&_0x46f290){if(_0x3efaf4[_0x221934(0x3ec)](_0x17d0dd,_0x46f290)){const _0x2bf246=new _0x3efaf4[(_0x221934(0x37c))](_0x2a2f92,_0x4aab2d),{pointGroup:_0x3db610}=(_0x25910f=_0x2bf246[_0x221934(0x39b)](_0x17d0dd,_0x46f290))!=null?_0x25910f:{};if(_0x3db610==null||_0x3db610[_0x221934(0x266)]===0x0)continue;this[_0x221934(0x205)](_0x2965f8,_0x3db610,_0x15aeff,_0x4b397a);}else{const {contentBoxPointGroup:_0x3a29b3}=_0x2ce7d6[_0x221934(0x39b)](_0x17d0dd,_0x46f290);if(_0x3a29b3['length']===0x0)continue;this[_0x221934(0x3aa)](_0x2965f8,_0x3a29b3,_0x15aeff,_0x4b397a);}}}}[_0x464faf(0x473)](_0x166b86,_0x47612b,_0x3471a6,_0x976e3c,_0x5cbd52){const _0x279ce1=_0x464faf,_0xef9ac6=this[_0x279ce1(0x1a4)](_0x47612b),{left:_0xe74800,top:_0x177be3,height:_0x527d8c}=_0xef9ac6,_0x42fee3=this['_getScale'](),_0x2e9d0f=_0x211c82/_0x42fee3,_0x230157=new _0x3ab0d3['Rect'](_0xede5ef+_0x22bd76[_0x279ce1(0x223)][_0x279ce1(0x44c)](_0x256ab1),{'left':_0xe74800+_0x3471a6-_0x2e9d0f,'top':_0x177be3+_0x976e3c,'height':_0x527d8c,'width':_0x12357f,'fill':_0x166b86||_0x3ab0d3[_0x279ce1(0x52c)](_0x22bd76[_0x279ce1(0x319)][_0x279ce1(0x219)],0x0),'strokeWidth':_0x2e9d0f,'stroke':_0x4d0ab7,'evented':!0x0});this[_0x279ce1(0x4ca)]=_0x230157,this[_0x279ce1(0x454)][_0x279ce1(0x541)](_0x230157,_0x3efaf4[_0x279ce1(0x416)]);const _0x30d27d=new _0x3ab0d3[(_0x279ce1(0x5a9))](_0xede5ef+_0x22bd76[_0x279ce1(0x223)]['generateRandomId'](_0x256ab1),{'left':_0xe74800+_0x3471a6-_0x2e9d0f,'top':_0x177be3+_0x976e3c-_0x31547a/0x2,'height':_0x31547a,'width':_0x31547a,'fill':_0x166b86||_0x3ab0d3[_0x279ce1(0x52c)](_0x22bd76[_0x279ce1(0x319)][_0x279ce1(0x219)],0x0),'strokeWidth':0x0,'stroke':_0x166b86||_0x3ab0d3['getColor'](_0x22bd76[_0x279ce1(0x319)][_0x279ce1(0x219)],0x0),'evented':!0x1});this[_0x279ce1(0x542)]=_0x30d27d,this[_0x279ce1(0x454)][_0x279ce1(0x541)](_0x30d27d,_0x3efaf4[_0x279ce1(0x416)]);const _0x19f619=new _0x3e52ae(_0xede5ef+_0x22bd76[_0x279ce1(0x223)][_0x279ce1(0x44c)](_0x256ab1),{'left':_0xe74800+_0x3471a6-_0x2e9d0f,'top':_0x177be3+_0x976e3c-_0x3b41c1,'text':_0x5cbd52,'color':_0x166b86});this[_0x279ce1(0x216)]=_0x19f619,this['_scene']['addObject'](_0x19f619,_0x3efaf4[_0x279ce1(0x416)]),this[_0x279ce1(0x1a1)]=!0x1;}[_0x464faf(0x234)](){const _0x423d7c=_0x464faf,_0x44388b=this[_0x423d7c(0x4ca)][_0x423d7c(0x3db)][_0x423d7c(0x32c)](()=>{const _0x3d7115=_0x423d7c;this[_0x3d7115(0x1a1)]=!0x0;}),_0x802892=this[_0x423d7c(0x4ca)][_0x423d7c(0x45b)][_0x423d7c(0x32c)](()=>{const _0x3cc501=_0x423d7c;this['_hideTimer']&&clearTimeout(this[_0x3cc501(0x5a3)]),this[_0x3cc501(0x5a3)]=setTimeout(()=>{const _0x4b6e78=_0x3cc501;this[_0x4b6e78(0x1a1)]=!0x1;},0x7d0);});return()=>{const _0x1b1dba=_0x423d7c;_0x44388b[_0x1b1dba(0x2bb)](),_0x802892[_0x1b1dba(0x2bb)]();};}[_0x464faf(0x3aa)](_0xc03031,_0x564d8d,_0x2c31fe,_0x4cdeec){const _0x38e9f2=_0x464faf,_0x35a55b=new _0x22bd76[(_0x38e9f2(0x250))](_0xc03031)[_0x38e9f2(0x1e8)](0.2)[_0x38e9f2(0x4a1)](),_0x4ecaae=new _0x3ab0d3[(_0x38e9f2(0x335))](_0xcd1710+_0x22bd76[_0x38e9f2(0x223)][_0x38e9f2(0x44c)](_0x256ab1),{'pointsGroup':_0x564d8d,'fill':_0x35a55b||_0x3ab0d3['getColor'](_0x22bd76['COLORS'][_0x38e9f2(0x219)],0.2),'left':_0x2c31fe,'top':_0x4cdeec,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x4ecaae),this[_0x38e9f2(0x454)][_0x38e9f2(0x541)](_0x4ecaae,_0x3efaf4[_0x38e9f2(0x416)]);}['_drawRectRange'](_0x4d35a2,_0x340b79,_0x150712,_0x119248){const _0x188873=_0x464faf,_0x452f2b=new _0x22bd76['ColorKit'](_0x4d35a2)['setAlpha'](0.2)['toRgbString'](),_0x5b7052=new _0x3ab0d3[(_0x188873(0x335))](_0x2ce90f+_0x22bd76[_0x188873(0x223)][_0x188873(0x44c)](_0x256ab1),{'pointsGroup':_0x340b79,'fill':_0x452f2b||_0x3ab0d3[_0x188873(0x52c)](_0x22bd76[_0x188873(0x319)][_0x188873(0x219)],0.2),'left':_0x150712,'top':_0x119248,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x188873(0x1a6)][_0x188873(0x4a6)](_0x5b7052),this[_0x188873(0x454)]['addObject'](_0x5b7052,_0x3efaf4[_0x188873(0x416)]);}['_getAnchorBounding'](_0x51e950){const _0x4adbc1=_0x51e950[0x0],_0x14da38=_0x4adbc1[0x0],_0x1290ee=_0x4adbc1[0x2],{x:_0x3801ad,y:_0x430fdd}=_0x14da38,{x:_0x4a7112,y:_0x59cfa1}=_0x1290ee;return{'left':_0x3801ad,'top':_0x430fdd,'width':_0x4a7112-_0x3801ad,'height':_0x59cfa1-_0x430fdd};}[_0x464faf(0x485)](){const _0x37bdb4=_0x464faf,{scaleX:_0x4c6c16,scaleY:_0x3531fd}=this[_0x37bdb4(0x454)][_0x37bdb4(0x300)]();return Math[_0x37bdb4(0x3b9)](_0x4c6c16,_0x3531fd);}}var _0x26ebb7=Object[_0x464faf(0x229)],_0x2bd9e8=Object[_0x464faf(0x36f)],_0x304ec6=(_0x4bdefb,_0x4beba0,_0xbb09e2,_0x5ae4c2)=>{const _0x290ad0=_0x464faf;for(var _0x52662a=_0x5ae4c2>0x1?void 0x0:_0x5ae4c2?_0x2bd9e8(_0x4beba0,_0xbb09e2):_0x4beba0,_0x5909fa=_0x4bdefb[_0x290ad0(0x266)]-0x1,_0x1eb43a;_0x5909fa>=0x0;_0x5909fa--)(_0x1eb43a=_0x4bdefb[_0x5909fa])&&(_0x52662a=(_0x5ae4c2?_0x1eb43a(_0x4beba0,_0xbb09e2,_0x52662a):_0x1eb43a(_0x52662a))||_0x52662a);return _0x5ae4c2&&_0x52662a&&_0x26ebb7(_0x4beba0,_0xbb09e2,_0x52662a),_0x52662a;},_0x1efb9d=(_0x355bdb,_0x230923)=>(_0x310c71,_0xcb781e)=>_0x230923(_0x310c71,_0xcb781e,_0x355bdb);let _0x507f93=class extends _0x22bd76['RxDisposable']{constructor(_0x85cf13,_0x2da533,_0x3f42fc,_0x30a0c0,_0x5d3409){const _0x5baef0=_0x464faf;super(),_0x41b507(this,_0x5baef0(0x350),[]),_0x41b507(this,_0x5baef0(0x2c9),[]),(this[_0x5baef0(0x32d)]=_0x85cf13,this[_0x5baef0(0x2c0)]=_0x2da533,this['_collabCursorController']=_0x3f42fc,this[_0x5baef0(0x382)]=_0x30a0c0,this[_0x5baef0(0x48d)]=_0x5d3409,this[_0x5baef0(0x239)]());}['_init'](){const _0x4461f9=_0x464faf,_0x597ac0=this[_0x4461f9(0x32d)][_0x4461f9(0x3eb)],_0xd88ad9=this[_0x4461f9(0x2c0)];this[_0x4461f9(0x241)](_0xb468a3[_0x4461f9(0x371)]([this['_collabCursorController'][_0x4461f9(0x2ac)](_0x597ac0),this[_0x4461f9(0x48d)][_0x4461f9(0x3f3)]])[_0x4461f9(0x457)](_0x5ac862['map'](([_0x793e6a,_0x36b34b])=>({'skeleton':_0xd88ad9[_0x4461f9(0x35d)](),'cursors':[..._0x793e6a[_0x4461f9(0x461)]()]['flatMap'](_0x173fe8=>({..._0x173fe8,'color':_0x36b34b[_0x173fe8['color']]}))})))[_0x4461f9(0x1d7)](_0x40f0f2=>{const _0x226758=_0x4461f9;if(this[_0x226758(0x1e6)](),_0x40f0f2){const {skeleton:_0x520f20,cursors:_0x3c56fc}=_0x40f0f2;this[_0x226758(0x569)](_0x520f20,_0x3c56fc);}})),this[_0x4461f9(0x376)](),this['_initCommandExecutedListener']();}[_0x464faf(0x569)](_0x255f48,_0x1ead70){const _0xbbab8e=_0x464faf,{scene:_0x4614fe,mainComponent:_0x45e044}=this['_context'],_0x52f628=_0x1ead70[_0xbbab8e(0x1bb)](_0x1590d3=>new _0xec126a(_0x1590d3,_0x4614fe,_0x255f48,_0x45e044));this['_cursorShapes']=_0x52f628,this[_0xbbab8e(0x2c9)]=_0x1ead70;}[_0x464faf(0x47a)](){const _0x870e0b=_0x464faf;this['_removeCollabCursors']();const {scene:_0x9ea3ac,mainComponent:_0x2621c8}=this[_0x870e0b(0x32d)],_0x2c7037=this['_docSkeletonManagerService'][_0x870e0b(0x35d)](),_0x32efc3=this[_0x870e0b(0x2c9)][_0x870e0b(0x1bb)](_0x4a2574=>new _0xec126a(_0x4a2574,_0x9ea3ac,_0x2c7037,_0x2621c8));this[_0x870e0b(0x350)]=_0x32efc3;}['_removeCollabCursors'](){const _0x2fd081=_0x464faf;this[_0x2fd081(0x350)][_0x2fd081(0x1fc)](_0x35f638=>_0x35f638[_0x2fd081(0x383)]()),this[_0x2fd081(0x350)]=[];}[_0x464faf(0x2a2)](){const _0x384111=_0x464faf,_0x3ae4a2=[_0x3efaf4[_0x384111(0x3ff)]['id']];this[_0x384111(0x241)](this[_0x384111(0x382)][_0x384111(0x3da)](_0x4ef277=>{const _0xa9a4b4=_0x384111;_0x3ae4a2[_0xa9a4b4(0x573)](_0x4ef277['id'])&&_0x4ef277[_0xa9a4b4(0x4d5)][_0xa9a4b4(0x3eb)]===this[_0xa9a4b4(0x32d)][_0xa9a4b4(0x3eb)]&&this[_0xa9a4b4(0x47a)]();}));}['_initResize'](){const _0x4ff1a2=_0x464faf;this[_0x4ff1a2(0x241)](_0x22bd76[_0x4ff1a2(0x407)](this[_0x4ff1a2(0x32d)][_0x4ff1a2(0x505)]['onTransformChange$'])['pipe'](_0x5ac862[_0x4ff1a2(0x2e9)](_0x1a180f=>_0x1a180f[_0x4ff1a2(0x2e4)]===_0x3ab0d3[_0x4ff1a2(0x3fd)][_0x4ff1a2(0x502)]),_0x5ac862['throttleTime'](0x10))['subscribe'](()=>{const _0x1778d8=_0x4ff1a2;this[_0x1778d8(0x47a)]();}));}};_0x507f93=_0x304ec6([_0x22bd76[_0x464faf(0x3c4)](_0x22bd76['LifecycleStages'][_0x464faf(0x288)],_0x507f93),_0x1efb9d(0x1,_0x22bd76[_0x464faf(0x568)](_0x369ae4[_0x464faf(0x4f6)])),_0x1efb9d(0x2,_0x22bd76[_0x464faf(0x568)](_0x3c33bf)),_0x1efb9d(0x3,_0x22bd76[_0x464faf(0x4ae)]),_0x1efb9d(0x4,_0x22bd76['Inject'](_0x22bd76['ThemeService']))],_0x507f93);const _0x5440ea=0x1,_0x240e97=1.5;class _0x2e24c1 extends _0x3ab0d3[_0x464faf(0x4ed)]{constructor(_0x962275,_0xd8fe9d){const _0x5a6b8f=_0x464faf;super(_0x962275,_0xd8fe9d),_0x41b507(this,_0x5a6b8f(0x2a0)),_0x41b507(this,'_hovered',!0x1),_0x41b507(this,'_range'),_0x41b507(this,'_name',''),_0x41b507(this,_0x5a6b8f(0x354),'top'),_0x41b507(this,_0x5a6b8f(0x4aa)),(_0xd8fe9d&&this[_0x5a6b8f(0x308)](_0xd8fe9d),this[_0x5a6b8f(0x3db)][_0x5a6b8f(0x32c)](()=>this[_0x5a6b8f(0x308)]({'hovered':!0x0})),this[_0x5a6b8f(0x45b)][_0x5a6b8f(0x32c)](()=>this[_0x5a6b8f(0x308)]({'hovered':!0x1})));}['setShapeProps'](_0x1632c4){const _0x5e9fe9=_0x464faf;var _0x3acbb5,_0x2ff473,_0x20ffe0,_0x525970,_0xaae29b,_0x1d0215;this[_0x5e9fe9(0x2a0)]=(_0x3acbb5=_0x1632c4[_0x5e9fe9(0x280)])!=null?_0x3acbb5:this[_0x5e9fe9(0x2a0)],this['_hovered']=(_0x2ff473=_0x1632c4['hovered'])!=null?_0x2ff473:this[_0x5e9fe9(0x1d3)],this[_0x5e9fe9(0x388)]=(_0x20ffe0=_0x1632c4[_0x5e9fe9(0x22e)])!=null?_0x20ffe0:this['_range'],this[_0x5e9fe9(0x327)]=(_0x525970=_0x1632c4[_0x5e9fe9(0x51b)])!=null?_0x525970:this[_0x5e9fe9(0x327)],this['_labelPosition']=(_0xaae29b=_0x1632c4[_0x5e9fe9(0x2a3)])!=null?_0xaae29b:this[_0x5e9fe9(0x354)],this[_0x5e9fe9(0x4aa)]=(_0x1d0215=_0x1632c4[_0x5e9fe9(0x548)])!=null?_0x1d0215:this[_0x5e9fe9(0x4aa)],this[_0x5e9fe9(0x57e)]({'width':_0x1632c4[_0x5e9fe9(0x2f6)],'height':_0x1632c4[_0x5e9fe9(0x39a)]});}[_0x464faf(0x33e)](_0x52e30b){const _0x82ac9d=_0x464faf,{row:_0x1a4835,column:_0x540eb4}=_0x52e30b;if(_0x1a4835>=this[_0x82ac9d(0x388)][_0x82ac9d(0x4e4)]&&_0x1a4835<=this[_0x82ac9d(0x388)][_0x82ac9d(0x52e)]&&_0x540eb4>=this[_0x82ac9d(0x388)][_0x82ac9d(0x345)]&&_0x540eb4<=this[_0x82ac9d(0x388)][_0x82ac9d(0x365)]){this[_0x82ac9d(0x308)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x464faf(0x3e3)](_0x3810cd){return!0x1;}[_0x464faf(0x329)](_0x11bcc7){const _0x2e8c05=_0x464faf;_0x3ab0d3[_0x2e8c05(0x5a9)][_0x2e8c05(0x2d9)](_0x11bcc7,{'width':this['width'],'height':this[_0x2e8c05(0x39a)],'strokeWidth':_0x240e97,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x2e8c05(0x4aa)]}),this[_0x2e8c05(0x1d3)]&&(_0x11bcc7['save'](),_0x11bcc7[_0x2e8c05(0x28e)](0x1,0x0,0x0,0x1,this[_0x2e8c05(0x2f6)],this[_0x2e8c05(0x354)]===_0x2e8c05(0x333)?0x0:-_0x3b41c1),_0x3e52ae[_0x2e8c05(0x2d9)](_0x11bcc7,{'text':this[_0x2e8c05(0x327)],'color':this['_color']}),_0x11bcc7[_0x2e8c05(0x37f)]());}}var _0x5c9219=Object[_0x464faf(0x229)],_0x4fc201=Object['getOwnPropertyDescriptor'],_0x3e64a2=(_0xfc5ed9,_0xaf1f1a,_0x59e16a,_0x26dd54)=>{const _0x9dbf2a=_0x464faf;for(var _0x309448=_0x26dd54>0x1?void 0x0:_0x26dd54?_0x4fc201(_0xaf1f1a,_0x59e16a):_0xaf1f1a,_0x227d1d=_0xfc5ed9[_0x9dbf2a(0x266)]-0x1,_0xabf159;_0x227d1d>=0x0;_0x227d1d--)(_0xabf159=_0xfc5ed9[_0x227d1d])&&(_0x309448=(_0x26dd54?_0xabf159(_0xaf1f1a,_0x59e16a,_0x309448):_0xabf159(_0x309448))||_0x309448);return _0x26dd54&&_0x309448&&_0x5c9219(_0xaf1f1a,_0x59e16a,_0x309448),_0x309448;},_0x5517ed=(_0x522d0e,_0x12e273)=>(_0x54765a,_0x4bdf29)=>_0x12e273(_0x54765a,_0x4bdf29,_0x522d0e);const _0x4c4b94=0x1389;let _0x3a7621=class extends _0x22bd76[_0x464faf(0x5c2)]{constructor(_0x5f9b06,_0x32c69a,_0x1ba7ae,_0x3ef498){const _0x490924=_0x464faf;super(),_0x41b507(this,_0x490924(0x2c9),new Set()),_0x41b507(this,'_lastPointer',null),(this[_0x490924(0x32d)]=_0x5f9b06,this[_0x490924(0x3e9)]=_0x32c69a,this[_0x490924(0x28f)]=_0x1ba7ae,this[_0x490924(0x48d)]=_0x3ef498,this[_0x490924(0x239)]());}[_0x464faf(0x239)](){const _0x275d07=_0x464faf;this['_sheetSkeletonManagerService'][_0x275d07(0x27b)][_0x275d07(0x457)](_0x5ac862[_0x275d07(0x3d8)](this[_0x275d07(0x49d)]),_0x5ac862[_0x275d07(0x506)](_0x4e1116=>{const _0x36aeab=_0x275d07;if(_0x4e1116){const _0x5a58c9=_0x4e1116[_0x36aeab(0x4a8)];return _0xb468a3['combineLatest'](this[_0x36aeab(0x28f)][_0x36aeab(0x2ac)](this[_0x36aeab(0x32d)][_0x36aeab(0x3eb)]),this[_0x36aeab(0x48d)][_0x36aeab(0x3f3)])[_0x36aeab(0x457)](_0x5ac862[_0x36aeab(0x1bb)](([_0x310402,_0x442429])=>{const _0x13f90e=_0x36aeab,_0x56421c=new Map();return _0x310402[_0x13f90e(0x1fc)]((_0x15011a,_0x4cd682)=>{const _0xdcacbb=_0x13f90e;if(_0x15011a[_0xdcacbb(0x504)]===_0x5a58c9){const _0x394872={..._0x15011a};_0x394872[_0xdcacbb(0x280)]=_0x442429[_0x15011a[_0xdcacbb(0x280)]],_0x56421c[_0xdcacbb(0x372)](_0x4cd682,_0x394872);}}),{'skeleton':_0x4e1116,'cursors':_0x56421c};}));}return _0xb468a3['of']({'skeleton':null,'cursors':new Map()});}))[_0x275d07(0x1d7)](({skeleton:_0x1393b6,cursors:_0x33c7f3})=>{const _0x99ddd1=_0x275d07;this[_0x99ddd1(0x1e6)](),_0x1393b6&&this[_0x99ddd1(0x569)](_0x1393b6,_0x33c7f3);}),this['_sheetSkeletonManagerService'][_0x275d07(0x27b)][_0x275d07(0x1d7)](_0x4cf164=>{const _0x4b821c=_0x275d07;if(_0x4cf164==null)return;const {skeleton:_0x34528c}=_0x4cf164,{scene:_0x55782c}=this[_0x4b821c(0x32d)];_0x55782c[_0x4b821c(0x384)]['subscribeEvent'](_0x113112(_0x1e7a02=>{const _0x303923=_0x4b821c;var _0x47c001,_0x2e76f4;const {offsetX:_0x262d3c,offsetY:_0x373cca}=_0x1e7a02,{x:_0x4c5a93,y:_0x5c7044}=_0x55782c[_0x303923(0x5b7)](_0x3ab0d3[_0x303923(0x38b)]['FromArray']([_0x262d3c,_0x373cca])),{scaleX:_0x198da4,scaleY:_0x48ea27}=_0x55782c['getAncestorScale'](),_0x576a67=_0x55782c['getViewport'](_0x945537[_0x303923(0x4b4)][_0x303923(0x469)]),_0x2a9fd2=_0x55782c[_0x303923(0x2e3)](_0x3ab0d3[_0x303923(0x38b)]['FromArray']([_0x4c5a93,_0x5c7044]),_0x576a67),_0x4015dd=_0x34528c[_0x303923(0x554)](_0x262d3c,_0x373cca,_0x198da4,_0x48ea27,_0x2a9fd2);((_0x47c001=this[_0x303923(0x2a8)])==null?void 0x0:_0x47c001[_0x303923(0x580)])===_0x4015dd[_0x303923(0x580)]&&((_0x2e76f4=this[_0x303923(0x2a8)])==null?void 0x0:_0x2e76f4[_0x303923(0x520)])===_0x4015dd[_0x303923(0x520)]||this[_0x303923(0x2c9)][_0x303923(0x1fc)](_0x3805f8=>{_0x3805f8['onMouseMove'](_0x4015dd);});},0x64));});}['_updateCollabCursors'](_0x39b9be,_0x8b5280){const _0x2231a3=_0x464faf;var _0x23bf8f;const _0x3eb7b9=(_0x23bf8f=this[_0x2231a3(0x3e9)][_0x2231a3(0x226)]())==null?void 0x0:_0x23bf8f[_0x2231a3(0x4db)];if(!_0x3eb7b9)return;const _0x1ee72a=this[_0x2231a3(0x490)]();if(!_0x1ee72a)return;this[_0x2231a3(0x2c9)][_0x2231a3(0x1fc)](_0x35f859=>{const _0x149c9e=_0x2231a3;_0x35f859[_0x149c9e(0x488)]();});const {scene:_0x58a241}=_0x1ee72a,_0x4c7384=_0x40b127(Array[_0x2231a3(0x2ad)](_0x8b5280[_0x2231a3(0x461)]()))[_0x2231a3(0x1bb)](_0x2a8d42=>{const _0x15a8d5=_0x2231a3,{color:_0x1853ca,range:_0x20b374,name:_0x23e92f,selection:_0x4dcd8e,sheetID:_0x2ff767}=_0x2a8d42,{startColumn:_0x266f9d,startRow:_0xfb4e19,endColumn:_0x105a76,endRow:_0x5c53eb}=_0x20b374,_0x5bc93c=_0x945537[_0x15a8d5(0x4c3)](_0xfb4e19,_0x266f9d,_0x58a241,_0x3eb7b9),_0x3b00d1=_0x945537[_0x15a8d5(0x4c3)](_0x5c53eb,_0x105a76,_0x58a241,_0x3eb7b9),{columnHeaderHeightAndMarginTop:_0x30be72}=_0x3eb7b9,{startX:_0x2ccf0a,startY:_0x37985e}=_0x5bc93c,{endX:_0xd6d3ce,endY:_0x205950}=_0x3b00d1,_0xab18cb=_0xd6d3ce-_0x2ccf0a,_0xdab8df=_0x205950-_0x37985e,_0xb89425={'labelPosition':_0x37985e-_0x30be72>=_0x3b41c1?_0x15a8d5(0x49f):_0x15a8d5(0x333),'sheetID':_0x2ff767,'range':_0x20b374,'color':_0x1853ca,'name':_0x23e92f,'selection':_0x4dcd8e,'left':_0x2ccf0a,'top':_0x37985e,'width':_0xab18cb,'height':_0xdab8df,'evented':!0x1,'zIndex':_0x4c4b94};return new _0x2e24c1(_0x23e92f,_0xb89425);});_0x58a241[_0x2231a3(0x52f)](_0x4c7384,_0x5440ea),this[_0x2231a3(0x2c9)]=new Set(_0x4c7384);}[_0x464faf(0x1e6)](){const _0x38b31f=_0x464faf;var _0x688559;(_0x688559=this[_0x38b31f(0x2c9)])==null||_0x688559[_0x38b31f(0x1fc)](_0x2a27ae=>_0x2a27ae[_0x38b31f(0x383)]());}['_getSheetObject'](){const _0xee9af=_0x464faf;return _0x945537[_0xee9af(0x36b)](this[_0xee9af(0x32d)][_0xee9af(0x4e1)],this[_0xee9af(0x32d)]);}};_0x3a7621=_0x3e64a2([_0x5517ed(0x1,_0x22bd76['Inject'](_0x945537[_0x464faf(0x306)])),_0x5517ed(0x2,_0x22bd76[_0x464faf(0x568)](_0x3c33bf)),_0x5517ed(0x3,_0x22bd76[_0x464faf(0x568)](_0x22bd76[_0x464faf(0x2e8)]))],_0x3a7621);function _0x40b127(_0x418cc2){const _0x229671=_0x464faf,_0x3e3dc7=new Map();return _0x418cc2[_0x229671(0x1fc)](_0x5d3dc8=>{const _0x106acd=_0x229671;if(_0x3e3dc7[_0x106acd(0x2e2)](_0x5d3dc8[_0x106acd(0x4b1)])){const _0x47cea4=_0x3e3dc7[_0x106acd(0x321)](_0x5d3dc8[_0x106acd(0x4b1)]);_0x47cea4[_0x106acd(0x51b)]+=',\x20'+_0x5d3dc8['name'];}else _0x3e3dc7['set'](_0x5d3dc8['selection'],_0x5d3dc8);}),Array[_0x229671(0x2ad)](_0x3e3dc7[_0x229671(0x461)]());}var _0x56828c=function(){const _0x3b803c=_0x464faf;return _0x56828c=Object[_0x3b803c(0x503)]||function(_0xdbbf84){const _0x3ac547=_0x3b803c;for(var _0x572447,_0x8020a9=0x1,_0x3fd391=arguments['length'];_0x8020a9<_0x3fd391;_0x8020a9++){_0x572447=arguments[_0x8020a9];for(var _0x27e0dd in _0x572447)Object['prototype'][_0x3ac547(0x2c8)][_0x3ac547(0x5b8)](_0x572447,_0x27e0dd)&&(_0xdbbf84[_0x27e0dd]=_0x572447[_0x27e0dd]);}return _0xdbbf84;},_0x56828c[_0x3b803c(0x549)](this,arguments);},_0x553187=function(_0x56d2fe,_0x1d68e5){const _0x166623=_0x464faf;var _0x348b5f={};for(var _0x2e905f in _0x56d2fe)Object[_0x166623(0x361)][_0x166623(0x2c8)][_0x166623(0x5b8)](_0x56d2fe,_0x2e905f)&&_0x1d68e5[_0x166623(0x355)](_0x2e905f)<0x0&&(_0x348b5f[_0x2e905f]=_0x56d2fe[_0x2e905f]);if(_0x56d2fe!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x5a8295=0x0,_0x2e905f=Object[_0x166623(0x23a)](_0x56d2fe);_0x5a8295<_0x2e905f[_0x166623(0x266)];_0x5a8295++)_0x1d68e5[_0x166623(0x355)](_0x2e905f[_0x5a8295])<0x0&&Object[_0x166623(0x361)][_0x166623(0x27c)]['call'](_0x56d2fe,_0x2e905f[_0x5a8295])&&(_0x348b5f[_0x2e905f[_0x5a8295]]=_0x56d2fe[_0x2e905f[_0x5a8295]]);}return _0x348b5f;},_0x187a90=_0x2ae23a['forwardRef'](function(_0x5eb2c9,_0x2d514b){const _0x134c45=_0x464faf;var _0x5a535d=_0x5eb2c9['icon'],_0x1c7612=_0x5eb2c9['id'],_0x17de60=_0x5eb2c9[_0x134c45(0x1e5)],_0x299e1b=_0x5eb2c9[_0x134c45(0x297)],_0x59f9d3=_0x553187(_0x5eb2c9,[_0x134c45(0x533),'id','className',_0x134c45(0x297)]),_0x4fe714=_0x134c45(0x510)['concat'](_0x1c7612,'\x20')['concat'](_0x17de60||'')['trim'](),_0x84c90=_0x2ae23a[_0x134c45(0x1f3)]('_'[_0x134c45(0x3f5)](_0x4b6a2a()));return _0x3b567d(_0x5a535d,''[_0x134c45(0x3f5)](_0x1c7612),{'defIds':_0x5a535d[_0x134c45(0x1e2)],'idSuffix':_0x84c90[_0x134c45(0x4cd)]},_0x56828c({'ref':_0x2d514b,'className':_0x4fe714},_0x59f9d3),_0x299e1b);});function _0x3b567d(_0x463ddc,_0x51f1aa,_0x241fe1,_0x1b4d93,_0x433122){const _0x54f808=_0x464faf;return _0x2ae23a['createElement'](_0x463ddc[_0x54f808(0x2a6)],_0x56828c(_0x56828c({'key':_0x51f1aa},_0x5dfb41(_0x463ddc,_0x241fe1,_0x433122)),_0x1b4d93),(_0x5a33ed(_0x463ddc,_0x241fe1)[_0x54f808(0x2d5)]||[])['map'](function(_0x30d011,_0x394e64){const _0x28bd77=_0x54f808;return _0x3b567d(_0x30d011,''[_0x28bd77(0x3f5)](_0x51f1aa,'-')[_0x28bd77(0x3f5)](_0x463ddc['tag'],'-')[_0x28bd77(0x3f5)](_0x394e64),_0x241fe1,void 0x0,_0x433122);}));}function _0x5dfb41(_0x559b4d,_0x4ebb0c,_0x40bca9){const _0x319883=_0x464faf;var _0x3aae46=_0x56828c({},_0x559b4d[_0x319883(0x397)]);_0x40bca9!=null&&_0x40bca9[_0x319883(0x251)]&&_0x3aae46['fill']===_0x319883(0x251)&&(_0x3aae46[_0x319883(0x326)]=_0x40bca9[_0x319883(0x251)]);var _0xe68525=_0x4ebb0c[_0x319883(0x1e2)];return!_0xe68525||_0xe68525['length']===0x0||(_0x559b4d['tag']===_0x319883(0x43b)&&_0x3aae46['xlink:href']&&(_0x3aae46[_0x319883(0x3ce)]=_0x3aae46[_0x319883(0x3ce)]+_0x4ebb0c[_0x319883(0x349)]),Object['entries'](_0x3aae46)[_0x319883(0x1fc)](function(_0x2e2fce){const _0x452322=_0x319883;var _0x37eaef=_0x2e2fce[0x0],_0x8db4fc=_0x2e2fce[0x1];typeof _0x8db4fc=='string'&&(_0x3aae46[_0x37eaef]=_0x8db4fc[_0x452322(0x4d1)](/url\(#(.*)\)/,_0x452322(0x3e2)[_0x452322(0x3f5)](_0x4ebb0c[_0x452322(0x349)],')')));})),_0x3aae46;}function _0x5a33ed(_0x3cac93,_0x3ae74b){const _0x4fbf90=_0x464faf;var _0x442b69,_0x4b839c=_0x3ae74b['defIds'];return!_0x4b839c||_0x4b839c[_0x4fbf90(0x266)]===0x0?_0x3cac93:_0x3cac93[_0x4fbf90(0x2a6)]===_0x4fbf90(0x55a)&&(!((_0x442b69=_0x3cac93[_0x4fbf90(0x2d5)])===null||_0x442b69===void 0x0)&&_0x442b69[_0x4fbf90(0x266)])?_0x56828c(_0x56828c({},_0x3cac93),{'children':_0x3cac93[_0x4fbf90(0x2d5)][_0x4fbf90(0x1bb)](function(_0x1208b0){const _0x3801ef=_0x4fbf90;return typeof _0x1208b0[_0x3801ef(0x397)]['id']==_0x3801ef(0x5ad)&&_0x4b839c&&_0x4b839c[_0x3801ef(0x355)](_0x1208b0[_0x3801ef(0x397)]['id'])>-0x1?_0x56828c(_0x56828c({},_0x1208b0),{'attrs':_0x56828c(_0x56828c({},_0x1208b0['attrs']),{'id':_0x1208b0[_0x3801ef(0x397)]['id']+_0x3ae74b['idSuffix']})}):_0x1208b0;})}):_0x3cac93;}function _0x4b6a2a(){const _0x1b20b6=_0x464faf;return Math[_0x1b20b6(0x34a)]()[_0x1b20b6(0x576)](0x24)[_0x1b20b6(0x2fd)](0x2,0x8);}_0x187a90[_0x464faf(0x443)]='UniverIcon';var _0x33aa32={'tag':'svg','attrs':{'fill':_0x464faf(0x309),'viewBox':_0x464faf(0x3b3),'width':_0x464faf(0x483),'height':_0x464faf(0x483)},'children':[{'tag':'g','attrs':{'clipPath':_0x464faf(0x31b)},'children':[{'tag':'path','attrs':{'stroke':_0x464faf(0x289),'d':'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','strokeLinecap':_0x464faf(0x41c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x464faf(0x55a),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x464faf(0x35f)},'children':[{'tag':_0x464faf(0x45a),'attrs':{'fill':_0x464faf(0x45d),'d':_0x464faf(0x232)}}]}]}],'defIds':[_0x464faf(0x35f)]},_0x14ff3f=_0x2ae23a[_0x464faf(0x1ca)](function(_0x189d8f,_0x28adb2){const _0x5dc7eb=_0x464faf;return _0x2ae23a[_0x5dc7eb(0x200)](_0x187a90,Object[_0x5dc7eb(0x503)]({},_0x189d8f,{'id':'off-line-single','ref':_0x28adb2,'icon':_0x33aa32}));});_0x14ff3f['displayName']='OffLineSingle';var _0x42dbd5={'tag':_0x464faf(0x236),'attrs':{'fill':_0x464faf(0x309),'viewBox':_0x464faf(0x2f8),'width':_0x464faf(0x483),'height':_0x464faf(0x483)},'children':[{'tag':'g','attrs':{'clipPath':_0x464faf(0x47f)},'children':[{'tag':_0x464faf(0x45a),'attrs':{'stroke':_0x464faf(0x289),'d':_0x464faf(0x387),'strokeLinecap':_0x464faf(0x41c),'strokeLinejoin':_0x464faf(0x41c),'strokeWidth':1.2}}]},{'tag':_0x464faf(0x55a),'attrs':{},'children':[{'tag':_0x464faf(0x4df),'attrs':{'id':_0x464faf(0x474)},'children':[{'tag':_0x464faf(0x45a),'attrs':{'fill':_0x464faf(0x45d),'d':_0x464faf(0x232),'transform':_0x464faf(0x235)}}]}]}],'defIds':['on-line-single_clip0_910_349']},_0x371b1d=_0x2ae23a['forwardRef'](function(_0x40c3ed,_0x4629c7){const _0x1afbc3=_0x464faf;return _0x2ae23a[_0x1afbc3(0x200)](_0x187a90,Object[_0x1afbc3(0x503)]({},_0x40c3ed,{'id':'on-line-single','ref':_0x4629c7,'icon':_0x42dbd5}));});_0x371b1d[_0x464faf(0x443)]=_0x464faf(0x51c);const _0x59aa1d={'onlineStatusIcon':_0x464faf(0x415),'onlineStatusTitle':_0x464faf(0x21e),'onlineStatus':'univer-online-status','online':_0x464faf(0x243),'offline':_0x464faf(0x3a4)};function _0x4f211e(_0x3924ec){const _0x5d5515=_0x464faf;switch(_0x3924ec){case _0x29599c[_0x5d5515(0x374)]:return _0x5d5515(0x4ad);case _0x29599c[_0x5d5515(0x5b6)]:return _0x5d5515(0x3fe);case _0x29599c[_0x5d5515(0x303)]:return'collabStatus.fetchMiss';case _0x29599c[_0x5d5515(0x2ba)]:return _0x5d5515(0x3f4);case _0x29599c[_0x5d5515(0x1b6)]:case _0x29599c[_0x5d5515(0x3bf)]:case _0x29599c[_0x5d5515(0x26d)]:return _0x5d5515(0x23b);case _0x29599c['SYNCED']:return _0x5d5515(0x2e6);}}function _0x2e5a3d(_0x149c2c){const _0x30222f=_0x464faf,{status$:_0x49e27b}=_0x149c2c,_0x2ee1d6=_0x1b23d2[_0x30222f(0x540)](_0x49e27b,_0x29599c[_0x30222f(0x2ba)]),_0x250f31=_0x22bd76[_0x30222f(0x369)](_0x22bd76[_0x30222f(0x51a)]),_0x5412c2=_0x22bd76[_0x30222f(0x369)](_0x19e906['CollaborationSessionService']),_0x39e172=_0x2ee1d6!==_0x29599c[_0x30222f(0x374)],_0x587567=_0x250f31['t'](_0x4f211e(_0x2ee1d6)),_0x55dba7=_0x1712cf(_0x59aa1d['onlineStatus'],{[_0x59aa1d[_0x30222f(0x1ac)]]:_0x39e172,[_0x59aa1d[_0x30222f(0x307)]]:!_0x39e172}),_0x474a1c=_0x39e172?_0x2ae23a[_0x30222f(0x200)](_0x371b1d,null):_0x2ae23a['createElement'](_0x14ff3f,null),_0x44732d=_0x2ae23a[_0x30222f(0x378)](()=>{const _0x32e1b9=_0x30222f;_0x39e172||_0x5412c2[_0x32e1b9(0x4c6)]();},[_0x39e172,_0x5412c2]);function _0x5ba3be(){const _0x4a0c9d=_0x30222f;return _0x2ae23a['createElement'](_0x4a0c9d(0x588),{'className':_0x55dba7,'onClick':_0x44732d},_0x2ae23a[_0x4a0c9d(0x200)](_0x4a0c9d(0x588),{'className':_0x59aa1d[_0x4a0c9d(0x25d)]},_0x474a1c),_0x2ae23a[_0x4a0c9d(0x200)](_0x4a0c9d(0x588),{'className':_0x59aa1d[_0x4a0c9d(0x225)]},_0x587567));}return _0x39e172?_0x5ba3be():_0x2ae23a[_0x30222f(0x200)](_0x5562a6[_0x30222f(0x445)],{'title':_0x250f31['t']('collab-client.tooltip.reconnect')},_0x5ba3be());}var _0x386b98=Object['defineProperty'],_0x20a600=Object['getOwnPropertyDescriptor'],_0x775731=(_0x144ea3,_0x2a7ece,_0x98dcc5,_0x53ae6a)=>{const _0x1b1f20=_0x464faf;for(var _0x571c31=_0x53ae6a>0x1?void 0x0:_0x53ae6a?_0x20a600(_0x2a7ece,_0x98dcc5):_0x2a7ece,_0x4adfb9=_0x144ea3[_0x1b1f20(0x266)]-0x1,_0x267c34;_0x4adfb9>=0x0;_0x4adfb9--)(_0x267c34=_0x144ea3[_0x4adfb9])&&(_0x571c31=(_0x53ae6a?_0x267c34(_0x2a7ece,_0x98dcc5,_0x571c31):_0x267c34(_0x571c31))||_0x571c31);return _0x53ae6a&&_0x571c31&&_0x386b98(_0x2a7ece,_0x98dcc5,_0x571c31),_0x571c31;},_0x18024d=(_0x19b939,_0x3c3121)=>(_0x5c165f,_0x53783c)=>_0x3c3121(_0x5c165f,_0x53783c,_0x19b939);_0x19e906[_0x464faf(0x57b)]=class extends _0x22bd76[_0x464faf(0x2b7)]{constructor(_0x20afb2,_0x4379c3,_0x4238d3,_0x58245e){const _0x5cf925=_0x464faf;super(),_0x41b507(this,_0x5cf925(0x3a8),new _0xb468a3[(_0x5cf925(0x579))](_0x29599c['NOT_COLLAB'])),(this['_univerInstanceService']=_0x20afb2,this[_0x5cf925(0x1ea)]=_0x4379c3,this[_0x5cf925(0x38a)]=_0x4238d3,this[_0x5cf925(0x3c2)]=_0x58245e,this[_0x5cf925(0x597)](),this[_0x5cf925(0x21f)]());}[_0x464faf(0x21f)](){const _0x434390=_0x464faf;this['disposeWithMe'](this[_0x434390(0x334)][_0x434390(0x2f3)][_0x434390(0x457)](_0xb468a3[_0x434390(0x506)](()=>{const _0x5676a1=_0x434390,_0x2a1f91=this[_0x5676a1(0x334)][_0x5676a1(0x5c4)]();return _0x2a1f91?this[_0x5676a1(0x3c2)]['getCollabEntity$'](_0x2a1f91[_0x5676a1(0x330)]()):_0xb468a3['of'](null);}),_0xb468a3['switchMap'](_0x1e7567=>_0x1e7567?_0x1e7567[_0x434390(0x4af)]:_0xb468a3['of'](_0x29599c['NOT_COLLAB'])))[_0x434390(0x1d7)](_0x4fc315=>{const _0x561ff2=_0x434390;this['_status$'][_0x561ff2(0x4d2)](_0x4fc315);}));}['_initStatusComponent'](){const _0x1bb58f=_0x464faf;this['disposeWithMe'](this[_0x1bb58f(0x1ea)][_0x1bb58f(0x406)](_0x1b23d2[_0x1bb58f(0x344)][_0x1bb58f(0x54d)],()=>_0x22bd76[_0x1bb58f(0x3c0)](_0x2c12f0({'status$':this[_0x1bb58f(0x3a8)][_0x1bb58f(0x45e)]()}),this[_0x1bb58f(0x38a)])));}},_0x19e906[_0x464faf(0x57b)]=_0x775731([_0x18024d(0x0,_0x22bd76[_0x464faf(0x3a0)]),_0x18024d(0x1,_0x1b23d2[_0x464faf(0x25a)]),_0x18024d(0x2,_0x22bd76[_0x464faf(0x568)](_0x22bd76['Injector'])),_0x18024d(0x3,_0x22bd76[_0x464faf(0x568)](_0x19e906[_0x464faf(0x29c)]))],_0x19e906[_0x464faf(0x57b)]);function _0x2c12f0(_0x23865c){const {status$:_0x2f0194}=_0x23865c;return function(){const _0x49844f=_0x437d;return _0x2ae23a[_0x49844f(0x200)](_0x2e5a3d,{'status$':_0x2f0194});};}const _0x3a3834='collaboration-client.config',_0xee2adc=_0x22bd76[_0x464faf(0x41e)](_0x464faf(0x296));var _0x6ecac4=Object[_0x464faf(0x229)],_0x278f53=Object['getOwnPropertyDescriptor'],_0x543886=(_0x184f43,_0x305f1a,_0x26c06c,_0x19d530)=>{for(var _0x2499d1=_0x19d530>0x1?void 0x0:_0x19d530?_0x278f53(_0x305f1a,_0x26c06c):_0x305f1a,_0x1d563a=_0x184f43['length']-0x1,_0x10b4ae;_0x1d563a>=0x0;_0x1d563a--)(_0x10b4ae=_0x184f43[_0x1d563a])&&(_0x2499d1=(_0x19d530?_0x10b4ae(_0x305f1a,_0x26c06c,_0x2499d1):_0x10b4ae(_0x2499d1))||_0x2499d1);return _0x19d530&&_0x2499d1&&_0x6ecac4(_0x305f1a,_0x26c06c,_0x2499d1),_0x2499d1;},_0x57db31=(_0x3743f8,_0x1e9257)=>(_0x3fca9c,_0x470e28)=>_0x1e9257(_0x3fca9c,_0x470e28,_0x3743f8);_0x19e906[_0x464faf(0x56a)]=class extends _0x22bd76[_0x464faf(0x5c2)]{constructor(_0x441e11,_0x5d3e64,_0x353c66,_0x40d621,_0x63a5d3,_0x3fcaf6){const _0x1969df=_0x464faf;super(),this[_0x1969df(0x487)]=_0x441e11,this[_0x1969df(0x4c0)]=_0x5d3e64,this['_commandService']=_0x353c66,this[_0x1969df(0x1c7)]=_0x40d621,this[_0x1969df(0x299)]=_0x63a5d3,_0x3fcaf6?_0x3fcaf6==null||_0x3fcaf6[_0x1969df(0x373)]()['then'](()=>this['_init']()):(this[_0x1969df(0x4c0)][_0x1969df(0x3e8)](_0x1969df(0x215),_0x1969df(0x432)),this[_0x1969df(0x239)]());}async[_0x464faf(0x239)](){const _0x5374b6=_0x464faf,_0x2bca87=this['_urlService'][_0x5374b6(0x529)](_0x5374b6(0x4e1)),_0x16140c=this['_urlService'][_0x5374b6(0x529)](_0x5374b6(0x2e4));if(!_0x2bca87||!_0x16140c){this[_0x5374b6(0x4c0)][_0x5374b6(0x3e8)]('[DataLoaderController]',_0x5374b6(0x246));return;}switch(Number(_0x16140c)){case _0x2341fc['UNIVER_SHEET']:{const _0x8270e0=await this[_0x5374b6(0x287)](_0x2bca87);this[_0x5374b6(0x1d9)](_0x8270e0);break;}case _0x2341fc[_0x5374b6(0x3c1)]:{await this[_0x5374b6(0x570)](_0x2bca87);break;}default:{this[_0x5374b6(0x4c0)][_0x5374b6(0x458)](_0x5374b6(0x215),_0x5374b6(0x2f4));break;}}}async[_0x464faf(0x1d9)](_0x53ffb5){const _0x58d6e8=_0x464faf;await this[_0x58d6e8(0x37e)](_0x53ffb5),_0x53ffb5[_0x58d6e8(0x596)][_0x58d6e8(0x457)](_0xb468a3[_0x58d6e8(0x3d8)](this[_0x58d6e8(0x49d)]))[_0x58d6e8(0x1d7)](_0x510752=>{const _0xc369b1=_0x58d6e8;_0x510752&&this[_0xc369b1(0x1c4)](_0x510752);}),this[_0x58d6e8(0x487)][_0x58d6e8(0x491)][_0x58d6e8(0x457)](_0xb468a3[_0x58d6e8(0x3d8)](this[_0x58d6e8(0x49d)]))[_0x58d6e8(0x1d7)](()=>this['_updateSubUnitFromURLParams'](_0x53ffb5));}[_0x464faf(0x1c4)](_0x4be17f,_0x26a020=!0x1){const _0x524746=_0x464faf,_0x17d034=this[_0x524746(0x487)]['getParam'](_0x524746(0x37a));_0x4be17f[_0x524746(0x1ce)]()!==_0x17d034&&this[_0x524746(0x487)][_0x524746(0x2c1)](_0x524746(0x37a),_0x4be17f[_0x524746(0x1ce)](),_0x26a020);}async[_0x464faf(0x37e)](_0x259aca){const _0x4ed826=_0x464faf;var _0x3116a0;const _0x1e73a9=this[_0x4ed826(0x487)]['getParam']('subunit');if(!_0x1e73a9||!_0x259aca[_0x4ed826(0x23f)](_0x1e73a9)){const _0x5740af=_0x259aca[_0x4ed826(0x20b)]()[0x0],_0x187406=_0x259aca['getSheetBySheetId'](_0x5740af);if(!_0x187406)return;this[_0x4ed826(0x1c4)](_0x187406,!0x0),await this[_0x4ed826(0x382)][_0x4ed826(0x38c)](_0x38d7d8[_0x4ed826(0x1fb)]['id'],{'unitId':_0x259aca[_0x4ed826(0x330)](),'subUnitId':_0x5740af});return;}((_0x3116a0=_0x259aca[_0x4ed826(0x590)]())==null?void 0x0:_0x3116a0[_0x4ed826(0x1ce)]())!==_0x1e73a9&&await this['_commandService'][_0x4ed826(0x38c)](_0x38d7d8['SetWorksheetActivateCommand']['id'],{'unitId':_0x259aca[_0x4ed826(0x330)](),'subUnitId':_0x1e73a9});}async[_0x464faf(0x287)](_0x3d7be3){const _0x53bfe4=_0x464faf;let _0x67a8e4=0x0;const _0x3881d3=await this[_0x53bfe4(0x1c7)][_0x53bfe4(0x283)](_0x3d7be3);return _0x3881d3&&(_0x3881d3[_0x53bfe4(0x4de)]||_0x3881d3[_0x53bfe4(0x4a5)][_0x53bfe4(0x266)]!==0x0)&&(_0x67a8e4=_0x3881d3[_0x53bfe4(0x35c)]),_0x67a8e4===0x0&&this[_0x53bfe4(0x4c0)][_0x53bfe4(0x3e8)]('[DataLoaderController]',_0x53bfe4(0x3e6)),this['_snapshotService']['loadSheet'](_0x3d7be3,_0x67a8e4);}async[_0x464faf(0x570)](_0x58f6a4){const _0x34ccbd=_0x464faf;let _0x1e8bdd=0x0;const _0x3b7764=await this[_0x34ccbd(0x1c7)][_0x34ccbd(0x283)](_0x58f6a4);return _0x3b7764&&(_0x3b7764[_0x34ccbd(0x4de)]||_0x3b7764[_0x34ccbd(0x4a5)]['length']!==0x0)&&(_0x1e8bdd=_0x3b7764[_0x34ccbd(0x35c)]),_0x1e8bdd===0x0&&this[_0x34ccbd(0x4c0)][_0x34ccbd(0x3e8)](_0x34ccbd(0x215),_0x34ccbd(0x3e6)),this[_0x34ccbd(0x299)][_0x34ccbd(0x3a7)](_0x58f6a4,_0x1e8bdd);}},_0x19e906[_0x464faf(0x56a)]=_0x543886([_0x22bd76[_0x464faf(0x3c4)](_0x22bd76['LifecycleStages'][_0x464faf(0x5b2)],_0x19e906[_0x464faf(0x56a)]),_0x57db31(0x0,_0xee2adc),_0x57db31(0x1,_0x22bd76[_0x464faf(0x544)]),_0x57db31(0x2,_0x22bd76[_0x464faf(0x4ae)]),_0x57db31(0x3,_0x22bd76[_0x464faf(0x568)](_0x19e906[_0x464faf(0x264)])),_0x57db31(0x4,_0x22bd76['Inject'](_0x2cb6ec[_0x464faf(0x42a)])),_0x57db31(0x5,_0x22bd76[_0x464faf(0x230)](_0x4dbbff[_0x464faf(0x323)]))],_0x19e906['DataLoaderController']);var _0x546955=Object[_0x464faf(0x229)],_0xae43db=Object['getOwnPropertyDescriptor'],_0x57b967=(_0x58f1dc,_0xad5e80,_0x12919e,_0x5bd203)=>{const _0x22bc99=_0x464faf;for(var _0x4759b7=_0x5bd203>0x1?void 0x0:_0x5bd203?_0xae43db(_0xad5e80,_0x12919e):_0xad5e80,_0x62a475=_0x58f1dc[_0x22bc99(0x266)]-0x1,_0x2ea5fd;_0x62a475>=0x0;_0x62a475--)(_0x2ea5fd=_0x58f1dc[_0x62a475])&&(_0x4759b7=(_0x5bd203?_0x2ea5fd(_0xad5e80,_0x12919e,_0x4759b7):_0x2ea5fd(_0x4759b7))||_0x4759b7);return _0x5bd203&&_0x4759b7&&_0x546955(_0xad5e80,_0x12919e,_0x4759b7),_0x4759b7;},_0x56029e=(_0x127a05,_0x5f9fe1)=>(_0x463295,_0x588c2a)=>_0x5f9fe1(_0x463295,_0x588c2a,_0x127a05);const _0x144c24='DEFAULT_FILE_NAME',_0x1e3d66='Univer';let _0x5a4239=class extends _0x22bd76[_0x464faf(0x2b7)]{constructor(_0x5f325f,_0x17a8f2){const _0x2094a1=_0x464faf;super(),this[_0x2094a1(0x334)]=_0x5f325f,this[_0x2094a1(0x562)]=_0x17a8f2,this[_0x2094a1(0x239)]();}[_0x464faf(0x239)](){const _0x5b3228=_0x464faf;this[_0x5b3228(0x241)](_0x22bd76[_0x5b3228(0x2ec)](this[_0x5b3228(0x334)][_0x5b3228(0x2f3)][_0x5b3228(0x1d7)](()=>{const _0x2371da=_0x5b3228;var _0xb45e86;const _0x360dbf=this[_0x2371da(0x334)][_0x2371da(0x5c4)]();let _0x3886bc=(_0xb45e86=this[_0x2371da(0x562)][_0x2371da(0x5b1)](_0x144c24))!=null?_0xb45e86:_0x1e3d66;_0x360dbf instanceof _0x22bd76[_0x2371da(0x3a6)]&&(_0x3886bc=_0x360dbf['name']),document['title']=_0x3886bc;})));}};_0x5a4239=_0x57b967([_0x22bd76[_0x464faf(0x3c4)](_0x22bd76['LifecycleStages'][_0x464faf(0x27e)],_0x5a4239),_0x56029e(0x0,_0x22bd76[_0x464faf(0x3a0)]),_0x56029e(0x1,_0x22bd76[_0x464faf(0x55b)])],_0x5a4239);var _0x28b6ba=Object['defineProperty'],_0x2cc3bd=Object['getOwnPropertyDescriptor'],_0x151352=(_0x273219,_0x4260de,_0x5a4f8b,_0x5c429b)=>{const _0x175779=_0x464faf;for(var _0x136318=_0x5c429b>0x1?void 0x0:_0x5c429b?_0x2cc3bd(_0x4260de,_0x5a4f8b):_0x4260de,_0x975eb5=_0x273219[_0x175779(0x266)]-0x1,_0xe71a53;_0x975eb5>=0x0;_0x975eb5--)(_0xe71a53=_0x273219[_0x975eb5])&&(_0x136318=(_0x5c429b?_0xe71a53(_0x4260de,_0x5a4f8b,_0x136318):_0xe71a53(_0x136318))||_0x136318);return _0x5c429b&&_0x136318&&_0x28b6ba(_0x4260de,_0x5a4f8b,_0x136318),_0x136318;},_0x5e1b00=(_0x38d9f0,_0x36a4fa)=>(_0x835052,_0x2aa6ec)=>_0x36a4fa(_0x835052,_0x2aa6ec,_0x38d9f0);let _0xdb1fc5=class{constructor(_0x4e7226,_0x5ecc0e,_0x34ce8b){const _0x323cd5=_0x464faf;this[_0x323cd5(0x562)]=_0x4e7226,this[_0x323cd5(0x1f5)]=_0x5ecc0e,this[_0x323cd5(0x34b)]=_0x34ce8b,this[_0x323cd5(0x51d)]();}[_0x464faf(0x51d)](){const _0x783202=_0x464faf;this[_0x783202(0x1f5)][_0x783202(0x49c)]({'priority':0x1,'interceptor':(_0x3cd791,_0x283e06)=>_0x283e06(_0x3cd791)[_0x783202(0x457)](_0xb468a3[_0x783202(0x1a9)](async _0x2cc101=>{const _0x2caee3=_0x783202,_0x18b2b3=_0x2cc101;if(_0x18b2b3['status']===0x191&&window['confirm'](this[_0x2caee3(0x34b)]['t'](_0x2caee3(0x410)))){const _0x23cf28=window[_0x2caee3(0x19e)](window['location'][_0x2caee3(0x39e)]);window['location']['href']=this['_getLoginPath']()+_0x2caee3(0x5c7)+_0x23cf28;}return _0x18b2b3;}))});}[_0x464faf(0x56c)](){const _0x38425b=_0x464faf;var _0x5aaa2d;return(_0x5aaa2d=this[_0x38425b(0x562)][_0x38425b(0x5b1)](_0x4e8aa6))!=null?_0x5aaa2d:_0x283d9c;}};_0xdb1fc5=_0x151352([_0x5e1b00(0x0,_0x22bd76[_0x464faf(0x55b)]),_0x5e1b00(0x1,_0x22bd76['Inject'](_0x9bd9f[_0x464faf(0x41f)])),_0x5e1b00(0x2,_0x22bd76[_0x464faf(0x568)](_0x22bd76[_0x464faf(0x51a)]))],_0xdb1fc5);var _0x3c4719=Object['defineProperty'],_0x543145=Object[_0x464faf(0x36f)],_0xaea4f1=(_0x5975e1,_0x28d615,_0x35dfe9,_0x7f99c)=>{for(var _0x4e1348=_0x7f99c>0x1?void 0x0:_0x7f99c?_0x543145(_0x28d615,_0x35dfe9):_0x28d615,_0x7c8d40=_0x5975e1['length']-0x1,_0x107f13;_0x7c8d40>=0x0;_0x7c8d40--)(_0x107f13=_0x5975e1[_0x7c8d40])&&(_0x4e1348=(_0x7f99c?_0x107f13(_0x28d615,_0x35dfe9,_0x4e1348):_0x107f13(_0x4e1348))||_0x4e1348);return _0x7f99c&&_0x4e1348&&_0x3c4719(_0x28d615,_0x35dfe9,_0x4e1348),_0x4e1348;},_0x1f925e=(_0x4652f8,_0x2ee766)=>(_0xe15e49,_0x9edd9c)=>_0x2ee766(_0xe15e49,_0x9edd9c,_0x4652f8);const _0x2560cb=_0x464faf(0x2cc),_0x43f42e=_0x464faf(0x561);_0x19e906[_0x464faf(0x58f)]=class extends _0x22bd76[_0x464faf(0x2b7)]{constructor(_0x3f43e9,_0x165029){const _0x2f0ef5=_0x464faf;super(),this[_0x2f0ef5(0x3af)]=_0x3f43e9,this[_0x2f0ef5(0x562)]=_0x165029,this[_0x2f0ef5(0x1c5)]();}[_0x464faf(0x1c5)](){const _0x327555=_0x464faf,_0x4ecc54=this;this[_0x327555(0x241)](this[_0x327555(0x3af)][_0x327555(0x49c)]({'priority':0x3e7,'interceptor':_0x9bd9f[_0x327555(0x46b)]({'isMatch'(_0x2c1d39){const _0x48dd64=_0x327555;var _0x168170;if(_0x2c1d39[_0x48dd64(0x589)]==='POST'&&((_0x168170=_0x2c1d39[_0x48dd64(0x4c7)])!=null&&_0x168170[_0x48dd64(0x2e0)])){const {objectID:_0x5df7c0,objectType:_0x3ab729}=_0x2c1d39[_0x48dd64(0x4c7)][_0x48dd64(0x2e0)]||{};if(!_0x5df7c0||_0x3ab729===void 0x0)return!0x1;const _0x5d9f66=_0x4ecc54[_0x48dd64(0x37b)]()+'/'+_0x3ab729+_0x48dd64(0x3c5)+_0x5df7c0+_0x48dd64(0x5bf);if(_0x2c1d39[_0x48dd64(0x35a)]===_0x5d9f66)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x87d125){const _0x4fa34f=_0x327555;var _0x1a3d59;return(_0x1a3d59=_0x87d125[_0x4fa34f(0x4c7)])==null?void 0x0:_0x1a3d59['body'];},'mergeParamsToRequest'(_0x108f88,_0xe988b3){const _0xfdeab8=_0x327555,_0xf3a6f0=_0x4ecc54['_getAPIPrefixPath']()+_0xfdeab8(0x3f6),_0x50e19b=_0x108f88['reduce']((_0xc891df,_0x559004)=>{const _0x1f82fb=_0xfdeab8,{unitID:_0x13fbe1,objectID:_0x5540d2,objectType:_0x4d0522,actions:_0x3fa054}=_0x559004;return _0xc891df[_0x13fbe1]||(_0xc891df[_0x13fbe1]={}),_0xc891df[_0x13fbe1][_0x5540d2]||(_0xc891df[_0x13fbe1][_0x5540d2]={'objectID':_0x5540d2,'objectType':_0x4d0522,'actions':[]}),_0xc891df[_0x13fbe1][_0x5540d2][_0x1f82fb(0x1a2)][_0x1f82fb(0x4a6)](..._0x3fa054),_0xc891df;},{}),_0x52f07c=[];for(const _0x297d26 in _0x50e19b)for(const _0x30f29f in _0x50e19b[_0x297d26]){const {actions:_0x23ea05,objectType:_0x4a8d05}=_0x50e19b[_0x297d26][_0x30f29f],_0x4fcc4e=[...new Set(_0x23ea05)];_0x52f07c[_0xfdeab8(0x4a6)]({'unitID':_0x297d26,'objectID':_0x30f29f,'objectType':_0x4a8d05,'actions':_0x4fcc4e});}return new _0x9bd9f[(_0xfdeab8(0x3f1))](_0xfdeab8(0x364),_0xf3a6f0,{'headers':_0xe988b3[_0xfdeab8(0x59f)],'withCredentials':_0xe988b3[_0xfdeab8(0x5ab)],'responseType':_0xe988b3[_0xfdeab8(0x322)],'body':{'requests':_0x52f07c}});}},{'distributeResult'(_0x571e97,_0x2e1e23){const _0x2f1061=_0x327555,{objectActions:_0x1b4147}=_0x571e97;return _0x2e1e23[_0x2f1061(0x1bb)](_0x273f88=>{const _0xba66a4=_0x2f1061,{unitID:_0x41d2bb,objectID:_0x5dd826,actions:_0x3fbf0c}=_0x273f88,_0x195213=_0x1b4147[_0xba66a4(0x26a)](_0x3658e7=>_0x3658e7[_0xba66a4(0x268)]===_0x41d2bb&&_0x3658e7['objectID']===_0x5dd826),_0x5e39f3=_0x3fbf0c[_0xba66a4(0x1bb)](_0x1b9e08=>_0x195213==null?void 0x0:_0x195213[_0xba66a4(0x1a2)]['find'](_0x1d38c4=>_0x1d38c4[_0xba66a4(0x368)]===_0x1b9e08))[_0xba66a4(0x2e9)](_0x21cbe7=>!!_0x21cbe7);return{'config':_0x273f88,'result':{'actions':_0x5e39f3,'error':_0x571e97[_0xba66a4(0x458)]}};});}})}));}[_0x464faf(0x37b)](){const _0x35c5c6=_0x464faf;var _0x5b226f;return(_0x5b226f=this[_0x35c5c6(0x562)][_0x35c5c6(0x5b1)](_0x2560cb))!=null?_0x5b226f:_0x43f42e;}async[_0x464faf(0x27d)](_0x236018){const _0x492a0d=_0x464faf,_0x5af859=this[_0x492a0d(0x37b)]()+'/'+_0x236018[_0x492a0d(0x1b2)]+_0x492a0d(0x3b5);return(await this[_0x492a0d(0x3af)][_0x492a0d(0x522)](_0x5af859,{'body':_0x236018}))['body'][_0x492a0d(0x2b5)]||'';}async[_0x464faf(0x3ac)](_0x326d05){const _0xbd0b18=_0x464faf,_0x59780b=this[_0xbd0b18(0x37b)]()+_0xbd0b18(0x426);return(await this[_0xbd0b18(0x3af)][_0xbd0b18(0x522)](_0x59780b,{'body':_0x326d05}))[_0xbd0b18(0x2e0)]['objects'];}async[_0x464faf(0x518)](_0x1ce704){const _0x3f8eca=_0x464faf,_0x3545d1=this[_0x3f8eca(0x37b)]()+'/'+_0x1ce704[_0x3f8eca(0x1b2)]+_0x3f8eca(0x3c5)+_0x1ce704[_0x3f8eca(0x2b5)];await this[_0x3f8eca(0x3af)][_0x3f8eca(0x367)](_0x3545d1,{'body':_0x1ce704});}async[_0x464faf(0x32e)](_0x551344){const _0x1b6c26=_0x464faf,_0x182463=this[_0x1b6c26(0x37b)]()+'/'+_0x551344[_0x1b6c26(0x1b2)]+'/object/'+_0x551344[_0x1b6c26(0x2b5)]+_0x1b6c26(0x5bf);return(await this['_HTTPService'][_0x1b6c26(0x522)](_0x182463,{'body':_0x551344}))[_0x1b6c26(0x2e0)]['actions'];}async[_0x464faf(0x559)](_0x238572){const _0x5464d6=_0x464faf,_0x42c628=this['_getAPIPrefixPath']()+_0x5464d6(0x3f6);return(await this[_0x5464d6(0x3af)]['post'](_0x42c628,{'body':{'requests':_0x238572}}))['body'][_0x5464d6(0x5b9)];}async['listRoles'](_0x24fd02){const _0xfdb605=_0x464faf,_0x3834df=this[_0xfdb605(0x37b)]()+'/'+_0x24fd02[_0xfdb605(0x1b2)]+'/role',_0x201d04=await this[_0xfdb605(0x3af)][_0xfdb605(0x522)](_0x3834df,{'body':_0x24fd02});return{'roles':_0x201d04[_0xfdb605(0x2e0)][_0xfdb605(0x3de)],'actions':_0x201d04[_0xfdb605(0x2e0)]['actions']};}async['deleteCollaborator'](_0x48c3c4){const _0x1567ea=_0x464faf,_0x5f3ca2=this[_0x1567ea(0x37b)]()+_0x1567ea(0x4ba);await this[_0x1567ea(0x3af)][_0x1567ea(0x331)](_0x5f3ca2,{'params':{'collaboratorID':_0x48c3c4[_0x1567ea(0x277)],'objectID':_0x48c3c4[_0x1567ea(0x2b5)],'unitID':_0x48c3c4[_0x1567ea(0x268)]}});}async['updateCollaborator'](_0x390c6c){const _0x527ceb=_0x464faf,_0x2a134d=this['_getAPIPrefixPath']()+_0x527ceb(0x4ba);await this[_0x527ceb(0x3af)][_0x527ceb(0x5a0)](_0x2a134d,{'body':_0x390c6c});}async[_0x464faf(0x530)](_0x4207eb){const _0x11bb5d=_0x464faf,_0x1bb4e7=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x11bb5d(0x3af)][_0x11bb5d(0x522)](_0x1bb4e7,{'body':_0x4207eb});}async[_0x464faf(0x599)](_0x4d398c){const _0x58e7c9=_0x464faf,_0x55c33e=this[_0x58e7c9(0x37b)]()+_0x58e7c9(0x4ba);return(await this[_0x58e7c9(0x3af)]['get'](_0x55c33e,{'params':{'objectID':_0x4d398c[_0x58e7c9(0x2b5)],'unitID':_0x4d398c[_0x58e7c9(0x268)]}}))[_0x58e7c9(0x2e0)]['collaborators'];}async['putCollaborators'](_0x3f47ee){const _0x4c546f=_0x464faf,_0x366be5=this['_getAPIPrefixPath']()+_0x4c546f(0x4ba);await this[_0x4c546f(0x3af)][_0x4c546f(0x367)](_0x366be5,{'body':_0x3f47ee});}},_0x19e906['AuthzIoHttpService']=_0xaea4f1([_0x1f925e(0x0,_0x22bd76['Inject'](_0x9bd9f['HTTPService'])),_0x1f925e(0x1,_0x22bd76['Inject'](_0x22bd76['IConfigService']))],_0x19e906[_0x464faf(0x58f)]);var _0x365763=Object['defineProperty'],_0x2724d6=Object[_0x464faf(0x36f)],_0x436df2=(_0x4fcd6a,_0x4bc8e0,_0x3ba91f,_0x129d13)=>{for(var _0x4e6a60=_0x129d13>0x1?void 0x0:_0x129d13?_0x2724d6(_0x4bc8e0,_0x3ba91f):_0x4bc8e0,_0x538e30=_0x4fcd6a['length']-0x1,_0x1d6406;_0x538e30>=0x0;_0x538e30--)(_0x1d6406=_0x4fcd6a[_0x538e30])&&(_0x4e6a60=(_0x129d13?_0x1d6406(_0x4bc8e0,_0x3ba91f,_0x4e6a60):_0x1d6406(_0x4e6a60))||_0x4e6a60);return _0x129d13&&_0x4e6a60&&_0x365763(_0x4bc8e0,_0x3ba91f,_0x4e6a60),_0x4e6a60;},_0x50bda6=(_0x4af82a,_0x1e7684)=>(_0x51eba1,_0x3bb123)=>_0x1e7684(_0x51eba1,_0x3bb123,_0x4af82a);const _0x30897c=['image/png',_0x464faf(0x34e),_0x464faf(0x337),_0x464faf(0x304),_0x464faf(0x4eb)],_0x2aa580=0x5*0x400*0x400,_0x4f49d4=_0x464faf(0x4e9),_0x60f662=_0x464faf(0x514),_0x49b290=_0x464faf(0x486),_0x2946e8=_0x464faf(0x558);_0x19e906[_0x464faf(0x270)]=class{constructor(_0x43d590,_0x42d64c,_0x164b23){const _0x3e9150=_0x464faf;_0x41b507(this,_0x3e9150(0x224),0x0),_0x41b507(this,_0x3e9150(0x53a),new _0xb468a3[(_0x3e9150(0x57c))]()),_0x41b507(this,_0x3e9150(0x1d5),this[_0x3e9150(0x53a)]),_0x41b507(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x43d590,this[_0x3e9150(0x562)]=_0x42d64c,this['_univerInstanceService']=_0x164b23);}[_0x464faf(0x356)](_0x3a1eba){const _0x1f6d9b=_0x464faf;this['_waitCount']=_0x3a1eba,this[_0x1f6d9b(0x53a)][_0x1f6d9b(0x4d2)](_0x3a1eba);}[_0x464faf(0x3c6)](_0x2a43c2,_0x348bf2){const _0x38fd39=_0x464faf;if(_0x348bf2===_0x1fbc38[_0x38fd39(0x4e2)][_0x38fd39(0x1d0)]){const _0x160afb=new Image();return _0x160afb['src']=_0x2a43c2,_0x160afb;}return this[_0x38fd39(0x2f0)][_0x38fd39(0x321)](_0x2a43c2);}[_0x464faf(0x1f9)](_0xb50ebb,_0x407c01,_0x342b0a){const _0x4b2a15=_0x464faf;_0x407c01===_0x1fbc38[_0x4b2a15(0x4e2)][_0x4b2a15(0x1d0)]||_0x342b0a==null||this[_0x4b2a15(0x2f0)][_0x4b2a15(0x372)](_0xb50ebb,_0x342b0a);}async[_0x464faf(0x399)](_0x86c31c){const _0x2d7a4e=_0x464faf;try{const _0x4ddb28=this[_0x2d7a4e(0x594)](this['_getSignURL'](),''+_0x86c31c),_0x1733bb=(await this[_0x2d7a4e(0x1f5)][_0x2d7a4e(0x321)](_0x4ddb28))[_0x2d7a4e(0x2e0)];return _0x1733bb[_0x2d7a4e(0x458)]&&_0x1733bb[_0x2d7a4e(0x458)][_0x2d7a4e(0x4ec)]===_0x19883d['OK']?this[_0x2d7a4e(0x267)]()?Promise[_0x2d7a4e(0x2b6)](this['_getDownloadEndpointURL']()+_0x1733bb[_0x2d7a4e(0x35a)]):Promise[_0x2d7a4e(0x2b6)](_0x1733bb[_0x2d7a4e(0x35a)]):Promise['reject'](_0x1733bb['error']);}catch(_0xb6bc0a){return Promise[_0x2d7a4e(0x238)](_0xb6bc0a);}}async[_0x464faf(0x1ed)](_0x22df58){const _0x5c15e7=_0x464faf;let _0x4449f2='';if(!_0x30897c['includes'](_0x22df58[_0x5c15e7(0x2e4)]))return this[_0x5c15e7(0x254)](),Promise['reject'](new Error(_0x1fbc38[_0x5c15e7(0x3ca)]['ERROR_IMAGE_TYPE']));if(_0x22df58[_0x5c15e7(0x2cf)]>_0x2aa580)return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x1fbc38[_0x5c15e7(0x3ca)]['ERROR_EXCEED_SIZE']));try{const _0x565919=new FormData();_0x565919['append']('file',_0x22df58);const _0x3d19ae=this[_0x5c15e7(0x334)][_0x5c15e7(0x5c4)](),_0x1e59ab=_0x3d19ae==null?void 0x0:_0x3d19ae[_0x5c15e7(0x330)]();if(!_0x1e59ab)throw new Error('unitId\x20is\x20not\x20found');const _0x33612e=this[_0x5c15e7(0x26e)]()+'?size='+_0x22df58[_0x5c15e7(0x2cf)][_0x5c15e7(0x576)]()+'&source='+_0x373e8a[_0x5c15e7(0x39d)]+_0x5c15e7(0x567)+encodeURIComponent(_0x1e59ab),_0x18f7c5=await(await fetch(_0x33612e,{'method':_0x5c15e7(0x364),'body':_0x565919}))[_0x5c15e7(0x29d)]();if(typeof _0x18f7c5[_0x5c15e7(0x2f5)]!='string')return this[_0x5c15e7(0x254)](),Promise[_0x5c15e7(0x238)](new Error(_0x1fbc38[_0x5c15e7(0x3ca)]['ERROR_IMAGE']));_0x4449f2=_0x18f7c5['FileId'];}catch{return this[_0x5c15e7(0x254)](),Promise['reject'](new Error(_0x1fbc38[_0x5c15e7(0x3ca)][_0x5c15e7(0x48f)]));}return new Promise((_0x21548a,_0x9bab00)=>{const _0x2c7a3f=_0x5c15e7,_0x494833=new FileReader();_0x494833['readAsDataURL'](_0x22df58),_0x494833[_0x2c7a3f(0x30e)]=_0xc86958=>{const _0x38cfd2=_0x2c7a3f;var _0x50aa3c;const _0x446cee=(_0x50aa3c=_0xc86958[_0x38cfd2(0x3b6)])==null?void 0x0:_0x50aa3c[_0x38cfd2(0x320)];if(_0x446cee==null){this[_0x38cfd2(0x254)](),_0x9bab00(new Error(_0x1fbc38[_0x38cfd2(0x3ca)][_0x38cfd2(0x48f)]));return;}const _0x4d9044=_0x22bd76[_0x38cfd2(0x223)]['generateRandomId'](0x6);_0x21548a({'imageId':_0x4d9044,'imageSourceType':_0x1fbc38[_0x38cfd2(0x4e2)]['UUID'],'source':_0x4449f2,'base64Cache':_0x446cee,'status':_0x1fbc38[_0x38cfd2(0x3ca)]['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x464faf(0x26e)](){const _0x254182=_0x464faf;var _0x5ba5d5;return(_0x5ba5d5=this[_0x254182(0x562)][_0x254182(0x5b1)](_0x4f49d4))!=null?_0x5ba5d5:_0x60f662;}[_0x464faf(0x1bf)](){const _0x562f07=_0x464faf;var _0xa7dd52;return(_0xa7dd52=this[_0x562f07(0x562)]['getConfig'](_0x49b290))!=null?_0xa7dd52:_0x2946e8;}[_0x464faf(0x267)](){const _0x4bd462=_0x464faf;var _0x5b445f;const _0x43c3d6=this['_configService'][_0x4bd462(0x5b1)](_0x3a3834);return(_0x5b445f=_0x43c3d6==null?void 0x0:_0x43c3d6[_0x4bd462(0x531)])!=null?_0x5b445f:'';}['_replaceFileID'](_0x3a678c,_0x43218a){const _0x464263=_0x464faf;return _0x3a678c['replace'](_0x464263(0x21c),_0x43218a);}[_0x464faf(0x254)](){const _0x4f4efd=_0x464faf;this[_0x4f4efd(0x224)]-=0x1,this[_0x4f4efd(0x53a)][_0x4f4efd(0x4d2)](this[_0x4f4efd(0x224)]);}},_0x19e906[_0x464faf(0x270)]=_0x436df2([_0x50bda6(0x0,_0x22bd76[_0x464faf(0x568)](_0x9bd9f['HTTPService'])),_0x50bda6(0x1,_0x22bd76['IConfigService']),_0x50bda6(0x2,_0x22bd76[_0x464faf(0x568)](_0x22bd76[_0x464faf(0x3a0)]))],_0x19e906[_0x464faf(0x270)]);var _0x262d67=Object[_0x464faf(0x229)],_0x1bca06=Object['getOwnPropertyDescriptor'],_0x2af12a=(_0x2d5a72,_0xc86c,_0x390879,_0x2b26e6)=>{const _0x3a4da7=_0x464faf;for(var _0x523f35=_0x2b26e6>0x1?void 0x0:_0x2b26e6?_0x1bca06(_0xc86c,_0x390879):_0xc86c,_0x282acd=_0x2d5a72[_0x3a4da7(0x266)]-0x1,_0x3ee6fc;_0x282acd>=0x0;_0x282acd--)(_0x3ee6fc=_0x2d5a72[_0x282acd])&&(_0x523f35=(_0x2b26e6?_0x3ee6fc(_0xc86c,_0x390879,_0x523f35):_0x3ee6fc(_0x523f35))||_0x523f35);return _0x2b26e6&&_0x523f35&&_0x262d67(_0xc86c,_0x390879,_0x523f35),_0x523f35;},_0x201a1d=(_0x5e16b1,_0x408bca)=>(_0x183515,_0x59e72a)=>_0x408bca(_0x183515,_0x59e72a,_0x5e16b1);let _0x3e6c22=class extends _0x22bd76[_0x464faf(0x5c2)]{constructor(_0x1664e9,_0x451b30,_0xcf4fac,_0x66a309,_0x216182){const _0x4caf96=_0x464faf;super(),this[_0x4caf96(0x38a)]=_0x1664e9,this['_univerInstanceService']=_0x451b30,this[_0x4caf96(0x556)]=_0xcf4fac,this[_0x4caf96(0x29b)]=_0x66a309,this[_0x4caf96(0x4fc)]=_0x216182,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0x464faf(0x4b8)](){const _0x29d120=_0x464faf,_0x3c0a83=async _0x53d688=>{const _0x29869b=_0x437d;(await this[_0x29869b(0x29b)][_0x29869b(0x59c)](_0x53d688))[_0x29869b(0x3f2)][_0x29869b(0x457)](_0x5ac862[_0x29869b(0x2e9)](_0x55a026=>_0x55a026['eventID']===_0x2cb6ec[_0x29869b(0x312)]['SHOULD_CLOSE_CONN']),_0x5ac862[_0x29869b(0x3d8)](this['dispose$']))[_0x29869b(0x1d7)](_0xfad2cd=>{const _0x1c54df=_0x29869b,_0x3a357a=_0xfad2cd,{reason:_0x387533}=_0x3a357a['data'];this[_0x1c54df(0x38a)][_0x1c54df(0x321)](_0x1b23d2[_0x1c54df(0x536)])[_0x1c54df(0x550)]({'type':_0x5562a6[_0x1c54df(0x253)][_0x1c54df(0x489)],'content':this['_localeService']['t'](_0x1c54df(0x4bc))+'('+_0x387533+')'}),this[_0x1c54df(0x556)][_0x1c54df(0x2e5)](new _0x38d7d8[(_0x1c54df(0x4e3))](_0x53d688)['id'],!0x1),this['_collaborationSessionService'][_0x1c54df(0x405)](_0x53d688);});};_0xb468a3['merge'](this['_univerInstanceService'][_0x29d120(0x390)](_0x22bd76[_0x29d120(0x53c)][_0x29d120(0x593)]),this[_0x29d120(0x334)][_0x29d120(0x390)](_0x22bd76['UniverInstanceType'][_0x29d120(0x3c1)]))['pipe'](_0x5ac862[_0x29d120(0x1bb)](_0x46a562=>_0x46a562['getUnitId']()),_0x5ac862[_0x29d120(0x2e9)](_0x533039=>!_0x22bd76[_0x29d120(0x336)](_0x533039)),_0x5ac862[_0x29d120(0x3d8)](this[_0x29d120(0x49d)]))[_0x29d120(0x1d7)](_0xcdb037=>{_0x3c0a83(_0xcdb037);});}[_0x464faf(0x3b8)](){const _0x3ca58c=_0x464faf,_0x5a3a3c=async _0x462956=>{const _0x280d93=_0x437d;(await this[_0x280d93(0x29b)][_0x280d93(0x59c)](_0x462956))[_0x280d93(0x3f2)][_0x280d93(0x457)](_0x5ac862[_0x280d93(0x2e9)](_0x44c2f3=>_0x44c2f3[_0x280d93(0x571)]===_0x2cb6ec['CollaborationEvent'][_0x280d93(0x29f)]),_0x5ac862['takeUntil'](this[_0x280d93(0x49d)]))[_0x280d93(0x1d7)](_0x5727a0=>{const _0x137d1e=_0x280d93,_0x53a4f2=_0x5727a0,{objectId:_0x5b2ebf}=_0x53a4f2['data'],_0x14e87d=this['_injector'][_0x137d1e(0x321)](_0x945537['SheetPermissionInitController']);_0x5b2ebf===_0x462956?_0x14e87d[_0x137d1e(0x539)](_0x462956):_0x14e87d[_0x137d1e(0x38d)](_0x462956,_0x5b2ebf);});};_0xb468a3[_0x3ca58c(0x23e)](this[_0x3ca58c(0x334)][_0x3ca58c(0x390)](_0x22bd76[_0x3ca58c(0x53c)][_0x3ca58c(0x593)]),this[_0x3ca58c(0x334)][_0x3ca58c(0x390)](_0x22bd76['UniverInstanceType'][_0x3ca58c(0x3c1)]))[_0x3ca58c(0x457)](_0x5ac862['map'](_0x2ef945=>_0x2ef945[_0x3ca58c(0x330)]()),_0x5ac862['filter'](_0x15deaa=>!_0x22bd76[_0x3ca58c(0x336)](_0x15deaa)),_0x5ac862[_0x3ca58c(0x3d8)](this['dispose$']))[_0x3ca58c(0x1d7)](_0xb23f73=>{_0x5a3a3c(_0xb23f73);});}};_0x3e6c22=_0x2af12a([_0x22bd76['OnLifecycle'](_0x22bd76[_0x464faf(0x366)][_0x464faf(0x5b2)],_0x3e6c22),_0x201a1d(0x0,_0x22bd76[_0x464faf(0x568)](_0x22bd76[_0x464faf(0x5bb)])),_0x201a1d(0x1,_0x22bd76['IUniverInstanceService']),_0x201a1d(0x2,_0x22bd76[_0x464faf(0x281)]),_0x201a1d(0x3,_0x22bd76[_0x464faf(0x568)](_0x19e906[_0x464faf(0x2ca)])),_0x201a1d(0x4,_0x22bd76[_0x464faf(0x568)](_0x22bd76['LocaleService']))],_0x3e6c22);var _0x292ea4=Object['defineProperty'],_0x2f7946=Object[_0x464faf(0x36f)],_0x426137=(_0x53c85b,_0x5912fb,_0x5d8b33,_0x160609)=>{for(var _0x4c10ec=_0x160609>0x1?void 0x0:_0x160609?_0x2f7946(_0x5912fb,_0x5d8b33):_0x5912fb,_0x41b096=_0x53c85b['length']-0x1,_0x5c7a85;_0x41b096>=0x0;_0x41b096--)(_0x5c7a85=_0x53c85b[_0x41b096])&&(_0x4c10ec=(_0x160609?_0x5c7a85(_0x5912fb,_0x5d8b33,_0x4c10ec):_0x5c7a85(_0x4c10ec))||_0x4c10ec);return _0x160609&&_0x4c10ec&&_0x292ea4(_0x5912fb,_0x5d8b33,_0x4c10ec),_0x4c10ec;},_0x3c9b46=(_0x3060b9,_0x464c47)=>(_0x27870f,_0x4abfec)=>_0x464c47(_0x27870f,_0x4abfec,_0x3060b9);_0x19e906['SnapshotServerOverHTTPService']=class{constructor(_0x4ee675,_0x15639a){const _0x389f31=_0x464faf;this[_0x389f31(0x562)]=_0x4ee675,this[_0x389f31(0x1f5)]=_0x15639a;}async[_0x464faf(0x584)](_0x498bbc,_0x4883c7){const _0xe3d1a0=_0x464faf;var _0x265172;const {unitID:_0x2b8fd3,type:_0x4dd042,revision:_0x50b312=0x0}=_0x4883c7,_0x2b2fec=this[_0xe3d1a0(0x537)]()+'/'+_0x4dd042+_0xe3d1a0(0x36d)+_0x2b8fd3+_0xe3d1a0(0x5ae)+_0x50b312,_0x2ca7be=(await this[_0xe3d1a0(0x1f5)][_0xe3d1a0(0x321)](_0x2b2fec))[_0xe3d1a0(0x2e0)],_0x26e90d=(_0x265172=_0x2ca7be[_0xe3d1a0(0x4ac)])==null?void 0x0:_0x265172[_0xe3d1a0(0x2d3)];if(_0x26e90d){const _0x45915a=_0x26e90d==null?void 0x0:_0x26e90d[_0xe3d1a0(0x20a)],_0x5e5924=_0x2cb6ec['textEncoder'][_0xe3d1a0(0x30c)](_0x2cb6ec['b64DecodeUnicode'](_0x45915a));_0x26e90d[_0xe3d1a0(0x20a)]=_0x5e5924,Object[_0xe3d1a0(0x247)](_0x26e90d['sheets'])[_0xe3d1a0(0x1fc)](([,_0x11f5e6])=>{const _0xa1566d=_0xe3d1a0,_0x22ea00=_0x11f5e6[_0xa1566d(0x20a)],_0x2da0bb=_0x2cb6ec[_0xa1566d(0x3d3)][_0xa1566d(0x30c)](_0x2cb6ec[_0xa1566d(0x497)](_0x22ea00));_0x11f5e6[_0xa1566d(0x20a)]=_0x2da0bb;});}return _0x2ca7be;}async['getSheetBlock'](_0x2d0a2f,_0xce9162){const _0x20f83d=_0x464faf,{unitID:_0x1f0b3d,type:_0xdd157e,blockID:_0x327a06}=_0xce9162,_0x433346=this[_0x20f83d(0x4b6)]()+'/'+_0xdd157e+'/unit/'+_0x1f0b3d+'/block/'+_0x327a06;return(await this[_0x20f83d(0x1f5)][_0x20f83d(0x321)](_0x433346))[_0x20f83d(0x2e0)];}async[_0x464faf(0x318)](_0xe31e77,_0x5e3fca){const _0x54c5f4=_0x464faf,{unitID:_0x25a553,type:_0xb3b950,from:_0x1842bd,to:_0x523152}=_0x5e3fca,_0x3d929c=this[_0x54c5f4(0x4b6)]()+'/'+_0xb3b950+'/unit/'+_0x25a553+'/fetchmissing?from='+_0x1842bd+_0x54c5f4(0x58e)+_0x523152;return(await this[_0x54c5f4(0x1f5)][_0x54c5f4(0x321)](_0x3d929c))[_0x54c5f4(0x2e0)];}[_0x464faf(0x537)](){const _0x49fa49=_0x464faf;var _0x368838;return(_0x368838=this[_0x49fa49(0x562)][_0x49fa49(0x5b1)](_0x407342))!=null?_0x368838:this[_0x49fa49(0x4b6)]();}[_0x464faf(0x4b6)](){const _0x50ee48=_0x464faf;var _0x1ab6aa;return(_0x1ab6aa=this[_0x50ee48(0x562)][_0x50ee48(0x5b1)](_0x30cccf))!=null?_0x1ab6aa:_0xe696b2;}async[_0x464faf(0x379)](_0x2a69f2,_0x22ce5d){const _0x2e75b8=_0x464faf,_0x2c607c=_0x2e75b8(0x2db)+_0x22ce5d[_0x2e75b8(0x2e4)]+_0x2e75b8(0x36d)+_0x22ce5d['unitID']+'/resources';return(await this[_0x2e75b8(0x1f5)][_0x2e75b8(0x321)](_0x2c607c,{'params':{'resourceId':JSON[_0x2e75b8(0x4c2)](_0x22ce5d[_0x2e75b8(0x26f)])}}))[_0x2e75b8(0x2e0)];}['saveSnapshot'](){const _0x2a3f5a=_0x464faf;throw new Error(_0x2a3f5a(0x31a));}['saveSheetBlock'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){const _0x4401b3=_0x464faf;throw new Error(_0x4401b3(0x31a));}},_0x19e906['SnapshotServerOverHTTPService']=_0x426137([_0x3c9b46(0x0,_0x22bd76[_0x464faf(0x55b)]),_0x3c9b46(0x1,_0x22bd76[_0x464faf(0x568)](_0x9bd9f[_0x464faf(0x41f)]))],_0x19e906[_0x464faf(0x3ea)]);var _0x23228c=Object[_0x464faf(0x229)],_0x24c13d=Object[_0x464faf(0x36f)],_0x20a8e2=(_0x518220,_0x4127dc,_0x96c1b5,_0x216563)=>{const _0x154404=_0x464faf;for(var _0xca667e=_0x216563>0x1?void 0x0:_0x216563?_0x24c13d(_0x4127dc,_0x96c1b5):_0x4127dc,_0x5947f3=_0x518220[_0x154404(0x266)]-0x1,_0x617c04;_0x5947f3>=0x0;_0x5947f3--)(_0x617c04=_0x518220[_0x5947f3])&&(_0xca667e=(_0x216563?_0x617c04(_0x4127dc,_0x96c1b5,_0xca667e):_0x617c04(_0xca667e))||_0xca667e);return _0x216563&&_0xca667e&&_0x23228c(_0x4127dc,_0x96c1b5,_0xca667e),_0xca667e;},_0x4d4377=(_0x4ac225,_0x5ec727)=>(_0x364262,_0x4ec40d)=>_0x5ec727(_0x364262,_0x4ec40d,_0x4ac225);let _0x45556c=class extends _0x22bd76['LocalUndoRedoService']{constructor(_0x266360,_0x56556d,_0x4791de,_0xd0822a,_0x4e8ca4){const _0x2fadcd=_0x464faf;super(_0x266360,_0x56556d,_0x4791de),this[_0x2fadcd(0x24e)]=_0xd0822a,this[_0x2fadcd(0x4c0)]=_0x4e8ca4;}[_0x464faf(0x591)](_0x1e9335,_0x26c9f7){const _0x407503=_0x464faf,_0x18c578=this[_0x407503(0x212)](_0x1e9335);if(_0x18c578)try{const _0x468094=this[_0x407503(0x313)](_0x18c578,_0x26c9f7);this[_0x407503(0x54c)](_0x1e9335,_0x468094);}catch(_0x3a2d26){this[_0x407503(0x4c0)][_0x407503(0x458)](_0x407503(0x286),_0x3a2d26),this[_0x407503(0x595)](_0x1e9335);}const _0x3fed2b=this[_0x407503(0x324)](_0x1e9335);if(_0x3fed2b)try{const _0x77b3cf=this[_0x407503(0x313)](_0x3fed2b,_0x26c9f7);this['_substituteRedoStack'](_0x1e9335,_0x77b3cf);}catch(_0x56ed67){this[_0x407503(0x4c0)][_0x407503(0x458)](_0x56ed67),this['_clearRedo'](_0x1e9335);}}['_clearUndo'](_0x1a3b13){const _0x5c7753=_0x464faf,_0x2ac48a=this[_0x5c7753(0x212)](_0x1a3b13);_0x2ac48a&&(_0x2ac48a[_0x5c7753(0x266)]=0x0,this['_updateStatus']());}[_0x464faf(0x449)](_0x211c9d){const _0x401bea=_0x464faf,_0x49323a=this[_0x401bea(0x324)](_0x211c9d);_0x49323a&&(_0x49323a[_0x401bea(0x266)]=0x0,this[_0x401bea(0x59e)]());}[_0x464faf(0x54c)](_0x2c31b7,_0x1d09d4){const _0x1937bc=_0x464faf;this[_0x1937bc(0x575)][_0x1937bc(0x372)](_0x2c31b7,_0x1d09d4),this['_updateStatus']();}[_0x464faf(0x52b)](_0x5664a7,_0x1c1011){const _0x3bec7d=_0x464faf;this['_redoStacks'][_0x3bec7d(0x372)](_0x5664a7,_0x1c1011),this[_0x3bec7d(0x59e)]();}['_transformStack'](_0x2b81f1,_0x37ae77){const _0x2741eb=_0x464faf,_0x34d950=[];let _0x13596a=_0x37ae77,_0x5c9a93=_0x37ae77;for(let _0x4575d6=_0x2b81f1[_0x2741eb(0x266)]-0x1;_0x4575d6>=0x0;_0x4575d6--){const {unitID:_0x1db0dd,undoMutations:_0x26f1c9,redoMutations:_0x9be293}=_0x2b81f1[_0x4575d6],_0x2c9dc0=this[_0x2741eb(0x24e)][_0x2741eb(0x1de)](_0x13596a,_0x26f1c9),_0x12c73f=this['_transformService'][_0x2741eb(0x1de)](_0x5c9a93,_0x9be293);if(_0x2cb6ec[_0x2741eb(0x2b4)](_0x2c9dc0)||_0x2cb6ec[_0x2741eb(0x2b4)](_0x12c73f)){this[_0x2741eb(0x4c0)][_0x2741eb(0x458)](_0x2741eb(0x286),_0x2741eb(0x453),_0x2c9dc0,_0x12c73f);break;}_0x13596a=_0x2c9dc0[_0x2741eb(0x1f4)],_0x5c9a93=_0x12c73f['c1Prime'],_0x34d950[_0x2741eb(0x4a6)]({'unitID':_0x1db0dd,'undoMutations':_0x2c9dc0[_0x2741eb(0x275)],'redoMutations':_0x12c73f[_0x2741eb(0x275)]});}return _0x34d950[_0x2741eb(0x451)]();}};_0x45556c=_0x20a8e2([_0x4d4377(0x0,_0x22bd76[_0x464faf(0x3a0)]),_0x4d4377(0x1,_0x22bd76[_0x464faf(0x4ae)]),_0x4d4377(0x2,_0x22bd76[_0x464faf(0x2c3)]),_0x4d4377(0x3,_0x2cb6ec['ITransformService']),_0x4d4377(0x4,_0x22bd76[_0x464faf(0x544)])],_0x45556c);class _0x1639d1 extends _0x22bd76['RxDisposable']{constructor(){const _0x5b35b9=_0x464faf;super(),_0x41b507(this,_0x5b35b9(0x491)),this[_0x5b35b9(0x491)]=_0xb468a3[_0x5b35b9(0x36c)](window,_0x5b35b9(0x5a4))['pipe'](_0xb468a3['takeUntil'](this[_0x5b35b9(0x49d)]),_0xb468a3[_0x5b35b9(0x315)](0x1),_0xb468a3['mapTo'](void 0x0));}['setParam'](_0x8c8360,_0x20e335,_0xdff61d=!0x1){const _0x3a3724=_0x464faf,_0x55284b=new URL(window['location'][_0x3a3724(0x39e)]);_0x55284b[_0x3a3724(0x25f)][_0x3a3724(0x372)](_0x8c8360,_0x20e335),_0xdff61d?window[_0x3a3724(0x563)][_0x3a3724(0x237)]('','',_0x55284b[_0x3a3724(0x576)]()):window[_0x3a3724(0x563)][_0x3a3724(0x392)]('','',_0x55284b[_0x3a3724(0x576)]());}[_0x464faf(0x4ab)](_0x305d85,_0x150d2a=!0x1){const _0xb38401=_0x464faf,_0x2d8d52=new URL(window[_0xb38401(0x3e4)][_0xb38401(0x39e)]);_0x2d8d52[_0xb38401(0x25f)][_0xb38401(0x331)](_0x305d85),_0x150d2a?window['history'][_0xb38401(0x237)]('','',_0x2d8d52[_0xb38401(0x576)]()):window['history'][_0xb38401(0x392)]('','',_0x2d8d52[_0xb38401(0x576)]());}[_0x464faf(0x529)](_0x1f1223){const _0x559a78=_0x464faf;var _0x1f709d;return(_0x1f709d=new URL(window[_0x559a78(0x3e4)][_0x559a78(0x39e)])[_0x559a78(0x25f)][_0x559a78(0x321)](_0x1f1223))!=null?_0x1f709d:void 0x0;}}var _0x57cf33=Object[_0x464faf(0x229)],_0xee6d7b=Object[_0x464faf(0x36f)],_0x18ee33=(_0x1d0e7a,_0x3c8623,_0x4ea9dd)=>_0x3c8623 in _0x1d0e7a?_0x57cf33(_0x1d0e7a,_0x3c8623,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ea9dd}):_0x1d0e7a[_0x3c8623]=_0x4ea9dd,_0x1177be=(_0x100bcf,_0xa89d48,_0x187590,_0x869b2)=>{const _0x40f2cd=_0x464faf;for(var _0x3902c3=_0x869b2>0x1?void 0x0:_0x869b2?_0xee6d7b(_0xa89d48,_0x187590):_0xa89d48,_0x18b190=_0x100bcf[_0x40f2cd(0x266)]-0x1,_0x2b3c5f;_0x18b190>=0x0;_0x18b190--)(_0x2b3c5f=_0x100bcf[_0x18b190])&&(_0x3902c3=(_0x869b2?_0x2b3c5f(_0xa89d48,_0x187590,_0x3902c3):_0x2b3c5f(_0x3902c3))||_0x3902c3);return _0x869b2&&_0x3902c3&&_0x57cf33(_0xa89d48,_0x187590,_0x3902c3),_0x3902c3;},_0x3dd7b6=(_0x635fb5,_0x3e31ac)=>(_0x14b7f6,_0x273e5d)=>_0x3e31ac(_0x14b7f6,_0x273e5d,_0x635fb5),_0x3a52a4=(_0x1e85ac,_0x3b35c8,_0x323c22)=>_0x18ee33(_0x1e85ac,_0x3b35c8+'',_0x323c22);const _0x518d22=_0x464faf(0x40f);_0x19e906[_0x464faf(0x3f0)]=class extends _0x22bd76[_0x464faf(0x227)]{constructor(_0x42ec76={},_0xa1f249,_0x1645f3,_0x213cd6,_0x154bc4){const _0x485e6f=_0x464faf;super(),this[_0x485e6f(0x4d9)]=_0x42ec76,this[_0x485e6f(0x4c0)]=_0xa1f249,this[_0x485e6f(0x2c2)]=_0x1645f3,this[_0x485e6f(0x38a)]=_0x213cd6,this['_configService']=_0x154bc4;const {..._0x19f143}=this[_0x485e6f(0x4d9)];this[_0x485e6f(0x562)][_0x485e6f(0x1cc)](_0x3a3834,_0x19f143);}[_0x464faf(0x218)](){const _0x430a06=_0x464faf;this[_0x430a06(0x5a2)]();}['onRendered'](){const _0xb6953f=_0x464faf;this[_0xb6953f(0x1bc)]();}[_0x464faf(0x5a2)](){const _0x3d5429=_0x464faf;var _0x5024dc,_0x16247b,_0x397a67,_0x1e5f85;this[_0x3d5429(0x38a)]['has'](_0x22bd76[_0x3d5429(0x56b)])&&this[_0x3d5429(0x4c0)][_0x3d5429(0x458)](_0x3d5429(0x1dc),_0x3d5429(0x46f));let _0x47eda0=[[_0x22bd76[_0x3d5429(0x56b)],{'useClass':_0x45556c}],[_0x19e906[_0x3d5429(0x2ca)]],[_0x3ba727],[_0x9bd9f[_0x3d5429(0x41f)]],[_0xee2adc,{'useClass':_0x1639d1}],[_0x27752c],[_0x19e906['LocalCacheService']],[_0x9bd9f[_0x3d5429(0x1f2)]],[_0xa1505e],[_0x529ffa],[_0x1ffb94],[_0x43e255],[_0xdb1fc5],[_0x45b3e8],[_0x3e6c22],[_0x393e0b,{'useClass':(_0x16247b=(_0x5024dc=this['_config'])==null?void 0x0:_0x5024dc['socketService'])!=null?_0x16247b:_0x19e906[_0x3d5429(0x3e7)]}],[_0x9bd9f[_0x3d5429(0x479)],{'useClass':_0x9bd9f[_0x3d5429(0x5c1)]}],[_0x2cb6ec[_0x3d5429(0x582)],{'useClass':_0x19e906['SnapshotServerOverHTTPService']}],[_0x22bd76[_0x3d5429(0x3d1)],{'useClass':_0x19e906['AuthzIoHttpService']}],[_0x1fbc38[_0x3d5429(0x4c4)],{'useClass':_0x19e906[_0x3d5429(0x270)]}],[_0x19e906['CollaborationController']],[_0x19e906['DataLoaderController']],[_0x19e906[_0x3d5429(0x57b)]],[_0x5a4239],[_0x3c33bf]];(_0x397a67=this[_0x3d5429(0x4d9)])!=null&&_0x397a67[_0x3d5429(0x2bd)]&&_0x47eda0[_0x3d5429(0x4a6)]([_0x4b8af1,{'useClass':_0x5474b1}]),_0x47eda0=_0x22bd76[_0x3d5429(0x380)](_0x47eda0,(_0x1e5f85=this[_0x3d5429(0x4d9)])==null?void 0x0:_0x1e5f85[_0x3d5429(0x1fd)]),_0x47eda0[_0x3d5429(0x1fc)](_0x4324be=>this['_injector']['add'](_0x4324be)),this[_0x3d5429(0x512)]();}[_0x464faf(0x1bc)](){const _0x53a392=_0x464faf;this[_0x53a392(0x241)](this[_0x53a392(0x2c2)]['registerRenderModule'](_0x22bd76[_0x53a392(0x53c)][_0x53a392(0x3c1)],[_0x507f93])),this[_0x53a392(0x241)](this[_0x53a392(0x2c2)][_0x53a392(0x583)](_0x22bd76[_0x53a392(0x53c)][_0x53a392(0x593)],[_0x3a7621]));}[_0x464faf(0x512)](){const _0x3043d7=_0x464faf;var _0x442903,_0x253042;this['_injector'][_0x3043d7(0x321)](_0x9bd9f[_0x3043d7(0x41f)])[_0x3043d7(0x49c)]({'priority':0x14,'interceptor':_0x9bd9f['ThresholdInterceptorFactory']({'maxParallel':0x6})}),(_0x442903=this[_0x3043d7(0x4d9)])!=null&&_0x442903['enableOfflineEditing']||this[_0x3043d7(0x38a)][_0x3043d7(0x321)](_0x19e906['LocalCacheService'])[_0x3043d7(0x59d)](),(_0x253042=this[_0x3043d7(0x4d9)])!=null&&_0x253042[_0x3043d7(0x5a7)]&&this[_0x3043d7(0x38a)][_0x3043d7(0x321)](_0xdb1fc5),this[_0x3043d7(0x38a)]['get'](_0x19e906['CollaborationController']),this[_0x3043d7(0x38a)][_0x3043d7(0x2e2)](_0x19e906[_0x3043d7(0x57b)])&&this[_0x3043d7(0x38a)][_0x3043d7(0x321)](_0x19e906[_0x3043d7(0x57b)]);}},_0x3a52a4(_0x19e906['UniverCollaborationClientPlugin'],_0x464faf(0x2bf),_0x518d22),_0x19e906['UniverCollaborationClientPlugin']=_0x1177be([_0x22bd76['DependentOn'](_0x2cb6ec['UniverCollaborationPlugin']),_0x3dd7b6(0x1,_0x22bd76[_0x464faf(0x544)]),_0x3dd7b6(0x2,_0x3ab0d3[_0x464faf(0x55e)]),_0x3dd7b6(0x3,_0x22bd76['Inject'](_0x22bd76['Injector'])),_0x3dd7b6(0x4,_0x22bd76[_0x464faf(0x55b)])],_0x19e906['UniverCollaborationClientPlugin']),_0x19e906[_0x464faf(0x2cc)]=_0x2560cb,_0x19e906[_0x464faf(0x19d)]=_0x384be7,_0x19e906[_0x464faf(0x25c)]=_0x103754,_0x19e906['CollaborationStatus']=_0x29599c,_0x19e906[_0x464faf(0x276)]=_0x2e5a3d,_0x19e906[_0x464faf(0x525)]=_0x45b3e8,_0x19e906[_0x464faf(0x4f0)]=_0x2e9ff9,_0x19e906[_0x464faf(0x577)]=_0x2d9c81,_0x19e906[_0x464faf(0x55d)]=_0x393e0b,_0x19e906[_0x464faf(0x339)]=_0xee2adc,_0x19e906[_0x464faf(0x2fc)]=_0x1c42e9,_0x19e906[_0x464faf(0x3ed)]=_0x4e8aa6,_0x19e906[_0x464faf(0x5b5)]=_0x470888,_0x19e906[_0x464faf(0x3b2)]=_0x1a7bc5,_0x19e906[_0x464faf(0x528)]=_0xdd38af,_0x19e906[_0x464faf(0x53e)]=_0x30cccf,_0x19e906['SNAPSHOT_URL_KEY']=_0x407342,_0x19e906[_0x464faf(0x468)]=_0x4d9058,_0x19e906['SheetCollabCursorShape']=_0x2e24c1,_0x19e906[_0x464faf(0x44e)]=_0x1639d1,_0x19e906[_0x464faf(0x581)]=_0x148c3f,_0x19e906[_0x464faf(0x394)]=_0x32de58,Object[_0x464faf(0x229)](_0x19e906,Symbol['toStringTag'],{'value':_0x464faf(0x587)});}));
1
+ function _0x4f28(_0x3ff7e0,_0x2117e1){const _0x197e9b=_0x197e();return _0x4f28=function(_0x4f287d,_0x313925){_0x4f287d=_0x4f287d-0xd7;let _0x115a5e=_0x197e9b[_0x4f287d];return _0x115a5e;},_0x4f28(_0x3ff7e0,_0x2117e1);}(function(_0x5f2f0d,_0x4c65dd){const _0x1194a4=_0x4f28,_0x4e3541=_0x5f2f0d();while(!![]){try{const _0x320fb9=parseInt(_0x1194a4(0x136))/0x1+parseInt(_0x1194a4(0x2ee))/0x2*(-parseInt(_0x1194a4(0x142))/0x3)+-parseInt(_0x1194a4(0x480))/0x4+-parseInt(_0x1194a4(0x283))/0x5*(parseInt(_0x1194a4(0x25b))/0x6)+-parseInt(_0x1194a4(0x176))/0x7+parseInt(_0x1194a4(0x436))/0x8+parseInt(_0x1194a4(0x3b7))/0x9*(parseInt(_0x1194a4(0x49d))/0xa);if(_0x320fb9===_0x4c65dd)break;else _0x4e3541['push'](_0x4e3541['shift']());}catch(_0x54b1c7){_0x4e3541['push'](_0x4e3541['shift']());}}}(_0x197e,0x25e28),function(_0x2b5c99,_0x124792){const _0x45b43f=_0x4f28;typeof exports=='object'&&typeof module<'u'?_0x124792(exports,require(_0x45b43f(0x346)),require('rxjs'),require(_0x45b43f(0x303)),require(_0x45b43f(0x120)),require(_0x45b43f(0x491)),require(_0x45b43f(0x158)),require(_0x45b43f(0x3f8)),require('@univerjs/telemetry'),require(_0x45b43f(0x4f4)),require('@univerjs/docs-ui'),require('@univerjs/sheets'),require(_0x45b43f(0x4ae)),require('@univerjs/drawing'),require('@univerjs/engine-formula'),require(_0x45b43f(0x192)),require(_0x45b43f(0x145)),require(_0x45b43f(0x1fb)),require(_0x45b43f(0x3dd)),require('@univerjs-pro/license')):typeof define==_0x45b43f(0x4ab)&&define['amd']?define([_0x45b43f(0x1e1),_0x45b43f(0x346),'rxjs','rxjs/operators',_0x45b43f(0x120),'@univerjs/ui',_0x45b43f(0x158),_0x45b43f(0x3f8),_0x45b43f(0x494),_0x45b43f(0x4f4),_0x45b43f(0x3c4),'@univerjs/sheets',_0x45b43f(0x4ae),_0x45b43f(0x39e),_0x45b43f(0x13b),_0x45b43f(0x192),_0x45b43f(0x145),_0x45b43f(0x1fb),_0x45b43f(0x3dd),'@univerjs-pro/license'],_0x124792):(_0x2b5c99=typeof globalThis<'u'?globalThis:_0x2b5c99||self,_0x124792(_0x2b5c99[_0x45b43f(0x3ec)]={},_0x2b5c99[_0x45b43f(0x117)],_0x2b5c99[_0x45b43f(0x2c8)],_0x2b5c99[_0x45b43f(0x2c8)]['operators'],_0x2b5c99[_0x45b43f(0xe7)],_0x2b5c99[_0x45b43f(0x387)],_0x2b5c99[_0x45b43f(0x24b)],_0x2b5c99[_0x45b43f(0x357)],_0x2b5c99['UniverTelemetry'],_0x2b5c99['UniverDocs'],_0x2b5c99[_0x45b43f(0x270)],_0x2b5c99[_0x45b43f(0x390)],_0x2b5c99[_0x45b43f(0x3b9)],_0x2b5c99[_0x45b43f(0x122)],_0x2b5c99[_0x45b43f(0x22e)],_0x2b5c99['UniverSheetsUi'],_0x2b5c99[_0x45b43f(0x420)],_0x2b5c99[_0x45b43f(0x1fb)],_0x2b5c99['UniverRpc'],_0x2b5c99[_0x45b43f(0x1ad)]));}(this,function(_0x48e51e,_0x5b7cfd,_0x266483,_0x51de38,_0x4466a1,_0x2ce95d,_0x4ba5d1,_0x56cbe4,_0x36caba,_0x3e2148,_0x618f14,_0xa62622,_0x46e2e3,_0x35c9a1,_0x4d1b35,_0x4a372b,_0x1b993c,_0x3f7833,_0x429288,_0x5d1cbc){'use strict';const _0x3bc2c8=_0x4f28;var _0x2191c6=Object[_0x3bc2c8(0x361)],_0x332791=(_0x46b4d2,_0x3e8ac5,_0xc9718c)=>_0x3e8ac5 in _0x46b4d2?_0x2191c6(_0x46b4d2,_0x3e8ac5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc9718c}):_0x46b4d2[_0x3e8ac5]=_0xc9718c,_0x314dc6=(_0x13ca81,_0x2eb2fe,_0x2cfd68)=>_0x332791(_0x13ca81,typeof _0x2eb2fe!=_0x3bc2c8(0x13a)?_0x2eb2fe+'':_0x2eb2fe,_0x2cfd68);const _0x504faf='SNAPSHOT_SERVER_URL_KEY',_0x56ac46=_0x3bc2c8(0x2ff),_0x1a9cce='SNAPSHOT_URL_KEY',_0x2d7fa5=_0x3bc2c8(0xf3),_0x4989e3='COLLAB_WEB_SOCKET_URL',_0x2cc1a0='ws://127.0.0.1:8000/universer-api/comb/connect',_0x4afd24=_0x3bc2c8(0x134),_0x372540='HEARTBEAT_TIMEOUT',_0x191200=_0x3bc2c8(0x26e),_0x23080c='LOCAL_CACHE_INTERVAL',_0x3bca7a=_0x3bc2c8(0x2bb),_0x62b297=_0x3bc2c8(0x43f),_0x29174f=_0x3bc2c8(0x4dd),_0x46f52c=_0x3bc2c8(0xde);var _0x5f32a2=(_0x1ed04f=>(_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x307)]=0x0]='UNDEFINED',_0x1ed04f[_0x1ed04f['OK']=0x1]='OK',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x459)]=0x2]=_0x3bc2c8(0x459),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x254)]=0x3]=_0x3bc2c8(0x254),_0x1ed04f[_0x1ed04f['NOT_FOUND']=0x4]=_0x3bc2c8(0x4c9),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x4de)]=0x5]=_0x3bc2c8(0x4de),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x485)]=0x6]=_0x3bc2c8(0x485),_0x1ed04f[_0x1ed04f['INVALID_ARGUMENT']=0x7]=_0x3bc2c8(0x124),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x23d)]=0x8]=_0x3bc2c8(0x23d),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x4db)]=0x9]='COMPLETION_FINISHED',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x200)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x3f7)]=0x1771]=_0x3bc2c8(0x3f7),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x304)]=0x1772]=_0x3bc2c8(0x304),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x46e)]=0x1b59]=_0x3bc2c8(0x46e),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x4b7)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x11b)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x497)]=0x1b5c]=_0x3bc2c8(0x497),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x26b)]=0x1f41]=_0x3bc2c8(0x26b),_0x1ed04f[_0x1ed04f['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3bc2c8(0x271),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x25f)]=0x232a]=_0x3bc2c8(0x25f),_0x1ed04f[_0x1ed04f['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x3bc2c8(0x2e8),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x29d)]=0x232c]=_0x3bc2c8(0x29d),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x4b4)]=0x232d]=_0x3bc2c8(0x4b4),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x3c5)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1ed04f[_0x1ed04f['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x3bc2c8(0x382),_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x1b2)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x1ed04f[_0x1ed04f[_0x3bc2c8(0x339)]=0x2714]=_0x3bc2c8(0x339),_0x1ed04f[_0x1ed04f['UNRECOGNIZED']=-0x1]=_0x3bc2c8(0x396),_0x1ed04f))(_0x5f32a2||{}),_0x249560=(_0xb1d6d1=>(_0xb1d6d1[_0xb1d6d1['UNIVER_UNKNOWN']=0x0]=_0x3bc2c8(0x11c),_0xb1d6d1[_0xb1d6d1['UNIVER_DOC']=0x1]=_0x3bc2c8(0x3a6),_0xb1d6d1[_0xb1d6d1[_0x3bc2c8(0x301)]=0x2]=_0x3bc2c8(0x301),_0xb1d6d1[_0xb1d6d1[_0x3bc2c8(0x202)]=0x3]='UNIVER_SLIDE',_0xb1d6d1[_0xb1d6d1[_0x3bc2c8(0x329)]=0x4]=_0x3bc2c8(0x329),_0xb1d6d1[_0xb1d6d1[_0x3bc2c8(0x396)]=-0x1]=_0x3bc2c8(0x396),_0xb1d6d1))(_0x249560||{}),_0x4e6b2d=(_0x58181d=>(_0x58181d[_0x58181d[_0x3bc2c8(0x4ca)]=0x0]='UNKNOWN_CMD',_0x58181d[_0x58181d['HELLO']=0x1]=_0x3bc2c8(0x4a4),_0x58181d[_0x58181d[_0x3bc2c8(0x3e3)]=0x2]=_0x3bc2c8(0x3e3),_0x58181d[_0x58181d[_0x3bc2c8(0x16e)]=0x3]=_0x3bc2c8(0x16e),_0x58181d[_0x58181d[_0x3bc2c8(0x148)]=0x4]=_0x3bc2c8(0x148),_0x58181d[_0x58181d[_0x3bc2c8(0x1f0)]=0x5]=_0x3bc2c8(0x1f0),_0x58181d[_0x58181d['RECV']=0x6]=_0x3bc2c8(0x31c),_0x58181d[_0x58181d['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x58181d))(_0x4e6b2d||{}),_0x4a2846=(_0x570b65=>(_0x570b65[_0x570b65['UNKNOWN_CODE']=0x0]=_0x3bc2c8(0x2c0),_0x570b65[_0x570b65['OK']=0x1]='OK',_0x570b65[_0x570b65[_0x3bc2c8(0x27e)]=0x2]='FAIL',_0x570b65[_0x570b65['UNRECOGNIZED']=-0x1]=_0x3bc2c8(0x396),_0x570b65))(_0x4a2846||{}),_0x1817d2=(_0x17dd5a=>(_0x17dd5a[_0x17dd5a[_0x3bc2c8(0x4fa)]=0x0]=_0x3bc2c8(0x4fa),_0x17dd5a[_0x17dd5a['HttpImport']=0x1]=_0x3bc2c8(0xf0),_0x17dd5a[_0x17dd5a[_0x3bc2c8(0x24e)]=0x2]=_0x3bc2c8(0x24e),_0x17dd5a[_0x17dd5a[_0x3bc2c8(0xd9)]=0x3]=_0x3bc2c8(0xd9),_0x17dd5a[_0x17dd5a['UnitSnapshot']=0x4]=_0x3bc2c8(0x333),_0x17dd5a[_0x17dd5a[_0x3bc2c8(0x396)]=-0x1]=_0x3bc2c8(0x396),_0x17dd5a))(_0x1817d2||{});const _0xa50aed=_0x3bc2c8(0x371),_0xdae42f={};function _0x262567(_0x4371b0){const _0xff810f=_0x3bc2c8;var _0x4c056b,_0x11ef33,_0x2ed13e,_0x82346c;const _0x4187a4=_0x4371b0[_0xff810f(0x2db)],_0x512bb7=JSON[_0xff810f(0x4ec)](_0x4187a4);switch(_0x512bb7[_0xff810f(0x1a4)]){case _0x4e6b2d[_0xff810f(0x1f0)]:case _0x4e6b2d[_0xff810f(0x4a4)]:{const _0x38781c=_0x512bb7[_0xff810f(0x2b0)];return{..._0x512bb7,'data':_0x38781c,'cmd':_0x512bb7[_0xff810f(0x1a4)]};}case _0x4e6b2d[_0xff810f(0x3e3)]:{const _0xeb3963=_0x512bb7[_0xff810f(0x32b)];return{..._0x512bb7,'data':_0xeb3963,'cmd':_0x512bb7[_0xff810f(0x1a4)]};}case _0x4e6b2d[_0xff810f(0x31c)]:{const _0x2389e1=_0x512bb7['collaMsg'];switch(_0x2389e1[_0xff810f(0xe1)]){case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x41b)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':(_0x4c056b=_0x2389e1[_0xff810f(0x226)])==null?void 0x0:_0x4c056b['cs']},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4['CollaborationEvent'][_0xff810f(0x4f7)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':(_0x11ef33=_0x2389e1[_0xff810f(0x141)])==null?void 0x0:_0x11ef33['cs']},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x455)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':(_0x2ed13e=_0x2389e1[_0xff810f(0x50e)])==null?void 0x0:_0x2ed13e['cs']},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4['CollaborationEvent'][_0xff810f(0x4c3)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':(_0x82346c=_0x2389e1['csRejEvent'])==null?void 0x0:_0x82346c['cs']},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x234)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x4f5)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4['CollaborationEvent']['USERS_ENTER']:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x3aa)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)]['USERS_LEAVE']:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x1ff)]},'cmd':_0x512bb7['cmd']};case _0x56cbe4[_0xff810f(0x484)]['LIVESHARE_NEW_HOST']:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x31b)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x291)]:case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x429)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1['liveShareOperation']},'cmd':_0x512bb7['cmd']};case _0x56cbe4[_0xff810f(0x484)]['LIVESHARE_TERMINATE']:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x31b)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x500)]:return{..._0x512bb7,'data':_0x2389e1,'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4['CollaborationEvent'][_0xff810f(0x507)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x205)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4['CollaborationEvent']['UPDATE_PERMISSION_OBJ']:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x187)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};case _0x56cbe4[_0xff810f(0x484)][_0xff810f(0x2c2)]:return{..._0x512bb7,'data':{..._0x2389e1,'data':_0x2389e1[_0xff810f(0x2b7)]},'cmd':_0x512bb7[_0xff810f(0x1a4)]};default:return _0x512bb7;}}default:return _0x512bb7;}}function _0x3eb981(_0x3a1176){const _0x4ef2bb=_0x3bc2c8;switch(_0x3a1176[_0x4ef2bb(0x1a4)]){case _0x4e6b2d[_0x4ef2bb(0x1f0)]:case _0x4e6b2d[_0x4ef2bb(0x4a4)]:return JSON[_0x4ef2bb(0x2fb)]({'cmd':_0x3a1176[_0x4ef2bb(0x1a4)],'routeKey':_0x3a1176[_0x4ef2bb(0x40d)]});case _0x4e6b2d[_0x4ef2bb(0x148)]:{let _0x57d048;switch(_0x3a1176[_0x4ef2bb(0x2db)][_0x4ef2bb(0xe1)]){case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x234)]:{_0x57d048={'eventID':_0x56cbe4['CollaborationEvent'][_0x4ef2bb(0x234)],'updateCursorEvent':_0x3a1176['data']['data']};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x44d)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x44d)],'leaveEvent':_0x3a1176[_0x4ef2bb(0x2db)][_0x4ef2bb(0x2db)]};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x280)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)]['USERS_ENTER'],'joinEvent':_0x3a1176[_0x4ef2bb(0x2db)]['data']};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x12b)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x12b)],'liveShareNewHost':_0x3a1176[_0x4ef2bb(0x2db)][_0x4ef2bb(0x2db)]};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x429)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x429)],'liveShareOperation':_0x3a1176['data'][_0x4ef2bb(0x2db)]};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x42a)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x42a)],'liveShareTerminate':_0x3a1176[_0x4ef2bb(0x2db)][_0x4ef2bb(0x2db)]};break;}case _0x56cbe4[_0x4ef2bb(0x484)]['LIVESHARE_REQUEST_HOST']:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x463)],'liveShareRequestHost':_0x3a1176[_0x4ef2bb(0x2db)][_0x4ef2bb(0x2db)]};break;}case _0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x291)]:{_0x57d048={'eventID':_0x56cbe4[_0x4ef2bb(0x484)][_0x4ef2bb(0x291)]};break;}default:_0x57d048={'eventID':_0x3a1176['data'][_0x4ef2bb(0xe1)]};}return JSON[_0x4ef2bb(0x2fb)]({'cmd':_0x3a1176['cmd'],'routeKey':_0x3a1176[_0x4ef2bb(0x40d)],'collaMsg':_0x57d048});}case _0x4e6b2d['JOIN']:return JSON[_0x4ef2bb(0x2fb)]({'cmd':_0x3a1176[_0x4ef2bb(0x1a4)],'routeKey':_0x3a1176[_0x4ef2bb(0x40d)],'joinReq':_0x3a1176[_0x4ef2bb(0x2db)]});case _0x4e6b2d[_0x4ef2bb(0x16e)]:return JSON[_0x4ef2bb(0x2fb)]({'cmd':_0x3a1176[_0x4ef2bb(0x1a4)],'routeKey':_0x3a1176[_0x4ef2bb(0x40d)],'leaveReq':_0x3a1176[_0x4ef2bb(0x2db)]});default:throw new Error(_0x4ef2bb(0x151));}}var _0x5e3302=Object[_0x3bc2c8(0x361)],_0xf005e8=Object['getOwnPropertyDescriptor'],_0x1f28f1=(_0x233af9,_0x46f289,_0x54ad5f,_0x4e241d)=>{const _0x41799d=_0x3bc2c8;for(var _0x6fa1ed=_0x4e241d>0x1?void 0x0:_0x4e241d?_0xf005e8(_0x46f289,_0x54ad5f):_0x46f289,_0x2c7140=_0x233af9[_0x41799d(0x3d6)]-0x1,_0x1333c4;_0x2c7140>=0x0;_0x2c7140--)(_0x1333c4=_0x233af9[_0x2c7140])&&(_0x6fa1ed=(_0x4e241d?_0x1333c4(_0x46f289,_0x54ad5f,_0x6fa1ed):_0x1333c4(_0x6fa1ed))||_0x6fa1ed);return _0x4e241d&&_0x6fa1ed&&_0x5e3302(_0x46f289,_0x54ad5f,_0x6fa1ed),_0x6fa1ed;},_0x4d9d27=(_0x344bdb,_0x208b1f)=>(_0xf054fb,_0x58a522)=>_0x208b1f(_0xf054fb,_0x58a522,_0x344bdb);const _0x2644e7=_0x5b7cfd[_0x3bc2c8(0x20d)](_0x3bc2c8(0x250));function _0x256d97(_0x21e11d,_0xe966e2,_0x34c1e5){const _0xa4ffeb=_0x3bc2c8;return _0x21e11d+'/'+_0xe966e2+_0xa4ffeb(0x248)+_0x34c1e5+'/new_changes';}_0x48e51e[_0x3bc2c8(0x17f)]=class extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(_0x5679eb,_0xe4a9a1,_0xc4e86a,_0x4c23b3,_0x1f182d){const _0x431002=_0x3bc2c8;super(),this['_http']=_0x5679eb,this[_0x431002(0x442)]=_0xe4a9a1,this[_0x431002(0x4cb)]=_0xc4e86a,this[_0x431002(0x4e7)]=_0x4c23b3,this[_0x431002(0x1ea)]=_0x1f182d;}['createSocket'](_0x42fb25){const _0x413f47=_0x3bc2c8,_0x1b5af8=this['_ws'][_0x413f47(0x245)](_0x42fb25);if(!_0x1b5af8)throw new Error(_0x413f47(0x186));const _0x54ec8e=new _0x5b7cfd['DisposableCollection'](),_0x45e8c3=new _0x266483[(_0x413f47(0x2e5))]();_0x54ec8e['add'](_0x1b5af8[_0x413f47(0x1ab)][_0x413f47(0x2f5)](_0x290e83=>_0x45e8c3[_0x413f47(0xe4)](_0x290e83))),_0x54ec8e['add'](_0x5b7cfd['toDisposable'](()=>_0x45e8c3[_0x413f47(0x10e)]()));const _0x348db6=new _0x266483[(_0x413f47(0x2e5))]();_0x54ec8e[_0x413f47(0x225)](_0x1b5af8['error$']['subscribe'](_0x44693d=>_0x348db6['next'](_0x44693d))),_0x54ec8e[_0x413f47(0x225)](_0x5b7cfd[_0x413f47(0x3d9)](()=>_0x348db6[_0x413f47(0x10e)]()));const _0x43cfdc=new _0x266483[(_0x413f47(0x2e5))]();_0x54ec8e[_0x413f47(0x225)](_0x1b5af8[_0x413f47(0x2c4)]['subscribe'](_0x569955=>{const _0x486987=_0x413f47,_0xf755e3=_0x262567(_0x569955);_0x43cfdc[_0x486987(0xe4)](_0xf755e3);})),_0x54ec8e['add'](_0x5b7cfd['toDisposable'](()=>_0x43cfdc['complete']()));let _0x4d49f4;const _0x229a11=()=>{const _0x168d71=_0x413f47;_0x348db6['next'](new Event(_0x168d71(0x4d4))),_0x45e8c3[_0x168d71(0xe4)](new CloseEvent('connection\x20error')),_0x4d49f4[_0x168d71(0x212)]();};return _0x4d49f4={'memberID':'','close$':_0x45e8c3[_0x413f47(0x4eb)](),'error$':_0x348db6[_0x413f47(0x4eb)](),'open$':_0x1b5af8[_0x413f47(0x299)],'message$':_0x43cfdc[_0x413f47(0x4eb)](),'send':_0x5efd96=>{const _0xb8e865=_0x413f47;if(_0x5efd96[_0xb8e865(0x1a4)]===_0x4e6b2d[_0xb8e865(0x148)]){if(_0x5efd96['data'][_0xb8e865(0xe1)]===_0x56cbe4['CollaborationEvent']['SUBMIT_CHANGESET']){this[_0xb8e865(0x17c)](_0x4d49f4,_0x5efd96[_0xb8e865(0x2db)])[_0xb8e865(0x2bd)](_0xd14924=>{const _0x2e8a23=_0xb8e865;this['_logService'][_0x2e8a23(0x476)](_0xd14924),_0x229a11();});return;}if(_0x5efd96[_0xb8e865(0x2db)][_0xb8e865(0xe1)]===_0x56cbe4['CollaborationEvent'][_0xb8e865(0x123)]){const _0x3ab3a6=_0x5efd96['data'];this[_0xb8e865(0x2ca)](_0x3ab3a6)[_0xb8e865(0x3a3)](_0x392009=>{const _0x46e0e6=_0xb8e865;_0x43cfdc['next']({'cmd':_0x4e6b2d[_0x46e0e6(0x31c)],'code':_0x4a2846['OK'],'routeKey':_0x3ab3a6[_0x46e0e6(0x2db)][_0x46e0e6(0x1b0)],'routeType':'','data':{'eventID':_0x56cbe4[_0x46e0e6(0x484)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x392009}}});})[_0xb8e865(0x2bd)](_0x2d1233=>{const _0x4163de=_0xb8e865;this[_0x4163de(0x4e7)][_0x4163de(0x476)](_0x2d1233),_0x229a11();});return;}}_0x1b5af8[_0xb8e865(0x441)](_0x3eb981(_0x5efd96));},'close':()=>{const _0x355ec0=_0x413f47;_0x1b5af8[_0x355ec0(0x212)](),_0x54ec8e[_0x355ec0(0x314)]();}},_0x4d49f4;}async[_0x3bc2c8(0x17c)](_0xcc87b7,_0x3cb064){const _0x4ac4f1=_0x3bc2c8;var _0xb469ca,_0x2cab7a;const {unitType:_0x28f508,unitID:_0x3418e2,changeset:_0x3d4ec0}=_0x3cb064[_0x4ac4f1(0x2db)],_0x45456d={'unitID':_0x3418e2,'memberID':_0xcc87b7[_0x4ac4f1(0x48f)],'type':_0x28f508,'changeset':_0x56cbe4[_0x4ac4f1(0x12e)](_0x3d4ec0)},_0x32435b=this[_0x4ac4f1(0x4cb)][_0x4ac4f1(0x1db)](_0x3bca7a),_0x5c7455=this[_0x4ac4f1(0x4cb)][_0x4ac4f1(0x1db)](_0xa50aed),_0x3818b7=_0x256d97((_0x2cab7a=(_0xb469ca=_0x5c7455==null?void 0x0:_0x5c7455[_0x4ac4f1(0x129)])!=null?_0xb469ca:_0x32435b)!=null?_0x2cab7a:_0x62b297,_0x28f508,_0x3418e2);try{await this[_0x4ac4f1(0xfa)][_0x4ac4f1(0x15b)](_0x3818b7,{'body':_0x45456d});}catch(_0x543dc6){throw this[_0x4ac4f1(0x4e7)][_0x4ac4f1(0x476)](_0x4ac4f1(0x2e4),_0x4ac4f1(0x39a)),_0x543dc6;}}async[_0x3bc2c8(0x2ca)](_0x57ee56){const _0x40e892=_0x3bc2c8,{unitID:_0x40abca,from:_0x8e698b,to:_0x4faff1,unitType:_0x1c0f98}=_0x57ee56[_0x40e892(0x2db)];return(await this[_0x40e892(0x1ea)][_0x40e892(0x4ea)]({'metadata':void 0x0},{'unitID':_0x40abca,'type':_0x1c0f98,'from':_0x8e698b,'to':_0x4faff1}))['changesets'];}},_0x48e51e[_0x3bc2c8(0x17f)]=_0x1f28f1([_0x4d9d27(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x4ba5d1['HTTPService'])),_0x4d9d27(0x1,_0x5b7cfd['Inject'](_0x4ba5d1['WebSocketService'])),_0x4d9d27(0x2,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x4d9d27(0x3,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x4d9d27(0x4,_0x56cbe4['ISnapshotServerService'])],_0x48e51e['CollaborationSocketService']);const _0x2b6b65=_0x3bc2c8(0xfc);function _0x342318(_0x3c6db0){const _0x804155=_0x3bc2c8;return JSON[_0x804155(0x2fb)](_0x3c6db0)[_0x804155(0x3d6)];}class _0x1225af{constructor(){const _0x3f7599=_0x3bc2c8;_0x314dc6(this,'_commentUpdate$',new _0x266483[(_0x3f7599(0x2e5))]()),_0x314dc6(this,_0x3f7599(0x128),this['_commentUpdate$'][_0x3f7599(0x4eb)]());}[_0x3bc2c8(0x273)](_0x65d132){const _0x476fd1=_0x3bc2c8;this[_0x476fd1(0x12a)]['next'](_0x65d132);}}var _0x4fd6ae=Object['defineProperty'],_0x362e42=Object['getOwnPropertyDescriptor'],_0x337288=(_0x3b80ab,_0x406cbf,_0x45c559,_0x5aec8d)=>{const _0x38aef6=_0x3bc2c8;for(var _0x4c2ede=_0x5aec8d>0x1?void 0x0:_0x5aec8d?_0x362e42(_0x406cbf,_0x45c559):_0x406cbf,_0x790854=_0x3b80ab[_0x38aef6(0x3d6)]-0x1,_0x32e765;_0x790854>=0x0;_0x790854--)(_0x32e765=_0x3b80ab[_0x790854])&&(_0x4c2ede=(_0x5aec8d?_0x32e765(_0x406cbf,_0x45c559,_0x4c2ede):_0x32e765(_0x4c2ede))||_0x4c2ede);return _0x5aec8d&&_0x4c2ede&&_0x4fd6ae(_0x406cbf,_0x45c559,_0x4c2ede),_0x4c2ede;},_0x3a5a0d=(_0x5e5df1,_0x30a697)=>(_0x53cfb0,_0x21ba8d)=>_0x30a697(_0x53cfb0,_0x21ba8d,_0x5e5df1);let _0x587d5a=class extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(_0x5a21bf,_0x5271a7){const _0x47e72b=_0x3bc2c8;super(),_0x314dc6(this,_0x47e72b(0x3e6),new Map()),(this[_0x47e72b(0x10b)]=_0x5a21bf,this[_0x47e72b(0x238)]=_0x5271a7,this[_0x47e72b(0x131)](_0x5b7cfd[_0x47e72b(0x3d9)](_0x266483[_0x47e72b(0x2a5)](this['_univerInstanceService'][_0x47e72b(0x4a5)](_0x5b7cfd[_0x47e72b(0x4bb)]['UNIVER_SHEET'])['pipe'](_0x51de38['map'](_0x40e7ce=>_0x40e7ce[_0x47e72b(0x183)]())),this[_0x47e72b(0x10b)][_0x47e72b(0x4a5)](_0x5b7cfd[_0x47e72b(0x4bb)][_0x47e72b(0x3a6)])[_0x47e72b(0x198)](_0x51de38[_0x47e72b(0x39c)](_0x11df8f=>_0x11df8f[_0x47e72b(0x183)]())),this[_0x47e72b(0x10b)][_0x47e72b(0x4a5)](_0x5b7cfd[_0x47e72b(0x4bb)][_0x47e72b(0x202)])[_0x47e72b(0x198)](_0x51de38[_0x47e72b(0x39c)](_0x29cabb=>_0x29cabb[_0x47e72b(0x183)]())))[_0x47e72b(0x2f5)](_0x2f0939=>this['_removeRoom'](_0x2f0939)))));}['setCurrentUser'](_0x332a67){const _0x39946c=_0x3bc2c8;this['_userManagerService'][_0x39946c(0x4ba)](_0x332a67);}[_0x3bc2c8(0x105)](){const _0x1f1678=_0x3bc2c8;return this['_userManagerService'][_0x1f1678(0x105)]();}[_0x3bc2c8(0x167)](_0x1d6eef,_0x27138c){const _0x59fb33=_0x3bc2c8;let _0x34fbfe=this[_0x59fb33(0x3e6)][_0x59fb33(0x451)](_0x1d6eef);_0x34fbfe||(_0x34fbfe=new _0x10db63(),this[_0x59fb33(0x3e6)][_0x59fb33(0x10d)](_0x1d6eef,_0x34fbfe)),_0x34fbfe['updateMember'](_0x27138c);}[_0x3bc2c8(0x3ba)](_0x3c4555,_0x3278de){const _0x5b2da2=_0x3bc2c8,_0x4542b9=this[_0x5b2da2(0x3e6)]['get'](_0x3c4555);_0x4542b9&&_0x4542b9[_0x5b2da2(0x3ba)](_0x3278de);}[_0x3bc2c8(0x50a)](_0xde9b67){const _0xe4507a=_0x3bc2c8;return this['_roomMembers'][_0xe4507a(0x451)](_0xde9b67);}['getMember'](_0x5a4b15,_0x5e1bdd){const _0x471eb5=this['_roomMembers']['get'](_0x5a4b15);if(_0x471eb5)return _0x471eb5['getMember'](_0x5e1bdd);}[_0x3bc2c8(0x18e)](_0x3d5e9d){const _0x5f2e25=_0x3bc2c8,_0x767172=this[_0x5f2e25(0x3e6)][_0x5f2e25(0x451)](_0x3d5e9d);_0x767172&&(_0x767172[_0x5f2e25(0x314)](),this['_roomMembers']['delete'](_0x3d5e9d));}[_0x3bc2c8(0x314)](){const _0x1d461c=_0x3bc2c8;this[_0x1d461c(0x3e6)][_0x1d461c(0x255)](_0x56dd08=>_0x56dd08[_0x1d461c(0x314)]()),this[_0x1d461c(0x3e6)]['clear']();}};_0x587d5a=_0x337288([_0x3a5a0d(0x0,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x3a5a0d(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x3d4)]))],_0x587d5a);class _0x10db63 extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(){const _0xc452ad=_0x3bc2c8;super(...arguments),_0x314dc6(this,_0xc452ad(0x3d0),new Map());}[_0x3bc2c8(0x314)](){const _0x2013bf=_0x3bc2c8;this[_0x2013bf(0x3d0)]['clear']();}[_0x3bc2c8(0x167)](_0x12d173){const _0x5d109c=_0x3bc2c8;this['_members'][_0x5d109c(0x10d)](_0x12d173['memberID'],_0x12d173);}[_0x3bc2c8(0x3ba)](_0x104733){const _0x368078=_0x3bc2c8;this['_members'][_0x368078(0x344)](_0x104733);}['getMember'](_0x184b35){const _0x46bb57=_0x3bc2c8;return this['_members'][_0x46bb57(0x451)](_0x184b35);}}var _0x38a672=Object['defineProperty'],_0x218075=Object[_0x3bc2c8(0x48b)],_0x1c142f=(_0x57d87d,_0x2d1189,_0x18896d,_0x251fe7)=>{const _0x2645b2=_0x3bc2c8;for(var _0x29fbd2=_0x251fe7>0x1?void 0x0:_0x251fe7?_0x218075(_0x2d1189,_0x18896d):_0x2d1189,_0x337cfb=_0x57d87d[_0x2645b2(0x3d6)]-0x1,_0x244b3b;_0x337cfb>=0x0;_0x337cfb--)(_0x244b3b=_0x57d87d[_0x337cfb])&&(_0x29fbd2=(_0x251fe7?_0x244b3b(_0x2d1189,_0x18896d,_0x29fbd2):_0x244b3b(_0x29fbd2))||_0x29fbd2);return _0x251fe7&&_0x29fbd2&&_0x38a672(_0x2d1189,_0x18896d,_0x29fbd2),_0x29fbd2;},_0x2e5a66=(_0xa254c2,_0x422e11)=>(_0x5179f9,_0x35763c)=>_0x422e11(_0x5179f9,_0x35763c,_0xa254c2),_0x2d9d4e=(_0xa6f3fa=>(_0xa6f3fa[_0xa6f3fa[_0x3bc2c8(0x274)]=0x0]=_0x3bc2c8(0x274),_0xa6f3fa[_0xa6f3fa[_0x3bc2c8(0x1c8)]=0x1]='JOINING',_0xa6f3fa[_0xa6f3fa[_0x3bc2c8(0x3b0)]=0x2]=_0x3bc2c8(0x3b0),_0xa6f3fa[_0xa6f3fa[_0x3bc2c8(0x322)]=0x3]=_0x3bc2c8(0x322),_0xa6f3fa))(_0x2d9d4e||{});_0x48e51e[_0x3bc2c8(0x246)]=class extends _0x5b7cfd['RxDisposable']{constructor(_0x291ac3,_0x389233,_0x5683c6,_0x135482,_0x470cc1,_0x57229f,_0x549388,_0xb2d1ce,_0x360caa,_0x7471ec){const _0x4ef807=_0x3bc2c8;super(),_0x314dc6(this,_0x4ef807(0x426),new _0x266483[(_0x4ef807(0x43e))](0x0)),_0x314dc6(this,_0x4ef807(0x509),this[_0x4ef807(0x426)][_0x4ef807(0x4eb)]()),_0x314dc6(this,'_event$',new _0x266483['Subject']()),_0x314dc6(this,_0x4ef807(0x164),this[_0x4ef807(0x478)][_0x4ef807(0x4eb)]()),_0x314dc6(this,_0x4ef807(0x3d1)),_0x314dc6(this,'_socketMessageSubscription'),_0x314dc6(this,_0x4ef807(0x21e)),_0x314dc6(this,_0x4ef807(0x453),!0x1),_0x314dc6(this,_0x4ef807(0x23f),null),(this[_0x4ef807(0x4c7)]=_0x291ac3,this[_0x4ef807(0x4e7)]=_0x5683c6,this['_beforeCloseService']=_0x135482,this[_0x4ef807(0x1d6)]=_0x470cc1,this[_0x4ef807(0x4cb)]=_0x57229f,this[_0x4ef807(0x24c)]=_0x549388,this[_0x4ef807(0x159)]=_0xb2d1ce,this[_0x4ef807(0x19b)]=_0x360caa,this['_telemetryService']=_0x7471ec,this[_0x4ef807(0x453)]=!!this[_0x4ef807(0x1b4)],_0x389233[_0x4ef807(0x198)](_0x266483[_0x4ef807(0x46b)](this[_0x4ef807(0x2dd)]))[_0x4ef807(0x2f5)](_0x89baae=>{const _0x2fdca7=_0x4ef807;var _0x17fdd3;typeof _0x89baae>'u'||(this[_0x2fdca7(0x3d1)]=_0x89baae,_0x89baae?(this[_0x2fdca7(0x3e0)](_0x89baae),this['_socketMessageSubscription']=_0x89baae['message$'][_0x2fdca7(0x2f5)](_0x4aabb8=>{const _0xefe316=_0x2fdca7;_0x4aabb8[_0xefe316(0x40d)]===this[_0xefe316(0x4c7)]&&this['_onCombEvent'](_0x4aabb8);})):(this[_0x2fdca7(0x471)](),this[_0x2fdca7(0x426)][_0x2fdca7(0xe4)](0x2),(_0x17fdd3=this['_socketMessageSubscription'])==null||_0x17fdd3[_0x2fdca7(0x114)](),this[_0x2fdca7(0x481)]=null));}),this['disposeWithMe'](this[_0x4ef807(0x2ec)]['registerOnClose'](()=>{const _0x3da3ee=_0x4ef807;var _0x1162fd;(_0x1162fd=this[_0x3da3ee(0x3d1)])==null||_0x1162fd['send']({'cmd':_0x4e6b2d[_0x3da3ee(0x16e)],'data':{'roomID':this[_0x3da3ee(0x4c7)]}});})));}get['sessionStatus'](){return this['_sessionStatus$']['getValue']();}[_0x3bc2c8(0x2d0)](){const _0x508d16=_0x3bc2c8;var _0x11de7b,_0x5b652d;return(_0x5b652d=(_0x11de7b=this['_socket'])==null?void 0x0:_0x11de7b[_0x508d16(0x48f)])!=null?_0x5b652d:null;}['dispose'](){const _0x5038a3=_0x3bc2c8;super[_0x5038a3(0x314)](),this[_0x5038a3(0x2dd)]['next'](),this[_0x5038a3(0x2dd)][_0x5038a3(0x10e)]();}['close'](){const _0xaedf69=_0x3bc2c8;var _0x1f1d24,_0x33aa9e;this[_0xaedf69(0x471)](),(_0x1f1d24=this[_0xaedf69(0x3d1)])==null||_0x1f1d24[_0xaedf69(0x441)]({'cmd':_0x4e6b2d[_0xaedf69(0x16e)],'data':{'roomID':this['_unitID']}}),(_0x33aa9e=this[_0xaedf69(0x3d1)])==null||_0x33aa9e['close'](),this[_0xaedf69(0x478)][_0xaedf69(0x10e)](),this[_0xaedf69(0x426)][_0xaedf69(0x10e)](),this['dispose']();}[_0x3bc2c8(0x149)](_0x5866af){const _0x3c04bc=_0x3bc2c8;_0x5866af[_0x3c04bc(0x1a4)]===_0x4e6b2d['JOIN']?this[_0x3c04bc(0x13f)](_0x5866af):_0x5866af[_0x3c04bc(0x1a4)]===_0x4e6b2d['RECV']&&this[_0x3c04bc(0x10c)](_0x5866af);}[_0x3bc2c8(0x3e0)](_0x33ccf0){const _0x10967b=_0x3bc2c8;this['_sessionStatus$'][_0x10967b(0xe4)](0x1),_0x33ccf0[_0x10967b(0x441)]({'cmd':_0x4e6b2d[_0x10967b(0x3e3)],'routeKey':this[_0x10967b(0x4c7)],'routeType':'','data':{'rooms':[{'roomID':this[_0x10967b(0x4c7)]}]}});}[_0x3bc2c8(0x13f)](_0x2659a2){const _0xb4dbf2=_0x3bc2c8;var _0x80312a;if(_0x2659a2[_0xb4dbf2(0x337)]===_0x4a2846[_0xb4dbf2(0x27e)]){this[_0xb4dbf2(0x1d6)][_0xb4dbf2(0x29f)]({'type':_0x4466a1[_0xb4dbf2(0x185)]['Warning'],'content':this[_0xb4dbf2(0x24c)]['t']('session.room-full')}),this[_0xb4dbf2(0x426)][_0xb4dbf2(0xe4)](0x2);return;}this['_sessionStatus$'][_0xb4dbf2(0xe4)](0x3);const _0xec303f=(_0x80312a=_0x2659a2[_0xb4dbf2(0x2db)][_0xb4dbf2(0x102)][this[_0xb4dbf2(0x4c7)]])==null?void 0x0:_0x80312a[_0xb4dbf2(0x162)];_0xec303f&&_0xec303f[_0xb4dbf2(0x255)](_0x4555a3=>this['_memberService'][_0xb4dbf2(0x167)](this['_unitID'],_0x4555a3));}[_0x3bc2c8(0x10c)](_0x170fb7){const _0x3ed4c8=_0x3bc2c8;try{const _0x36ca41=_0x170fb7[_0x3ed4c8(0x2db)];switch(_0x36ca41[_0x3ed4c8(0xe1)]){case _0x56cbe4[_0x3ed4c8(0x484)][_0x3ed4c8(0x280)]:this['_onUserJoin'](_0x36ca41),this[_0x3ed4c8(0x478)][_0x3ed4c8(0xe4)](_0x36ca41);break;case _0x56cbe4[_0x3ed4c8(0x484)]['USERS_LEAVE']:this[_0x3ed4c8(0x2cb)](_0x36ca41),this[_0x3ed4c8(0x478)]['next'](_0x36ca41);break;case _0x56cbe4[_0x3ed4c8(0x484)]['CHANGESET_ACK']:this[_0x3ed4c8(0x1f4)](),this[_0x3ed4c8(0x4c5)](),this['_event$'][_0x3ed4c8(0xe4)](_0x36ca41);break;case _0x56cbe4['CollaborationEvent'][_0x3ed4c8(0x500)]:this[_0x3ed4c8(0x4e7)][_0x3ed4c8(0x476)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x3ed4c8(0x2fb)](_0x36ca41)),this[_0x3ed4c8(0x478)][_0x3ed4c8(0xe4)](_0x36ca41);break;case _0x56cbe4[_0x3ed4c8(0x484)][_0x3ed4c8(0x507)]:this[_0x3ed4c8(0x19b)][_0x3ed4c8(0x273)](_0x36ca41['data']),this[_0x3ed4c8(0x478)][_0x3ed4c8(0xe4)](_0x36ca41);break;default:this[_0x3ed4c8(0x478)]['next'](_0x36ca41);}}catch(_0x31252e){this[_0x3ed4c8(0x4e7)][_0x3ed4c8(0x476)](_0x31252e,_0x170fb7);}}[_0x3bc2c8(0x414)](_0x2c97c8){const _0x2da873=_0x3bc2c8;this['_memberService']['updateMember'](this[_0x2da873(0x4c7)],_0x2c97c8[_0x2da873(0x2db)]);}[_0x3bc2c8(0x2cb)](_0x452a7d){const _0x4af6f9=_0x3bc2c8;this[_0x4af6f9(0x159)][_0x4af6f9(0x3ba)](this[_0x4af6f9(0x4c7)],_0x452a7d[_0x4af6f9(0x2db)][_0x4af6f9(0x48f)]);}async[_0x3bc2c8(0x441)](_0x4f1aff,_0x5b46eb){const _0x216f3f=_0x3bc2c8;if(this[_0x216f3f(0xee)]!==0x3||!this[_0x216f3f(0x3d1)])throw new Error(_0x216f3f(0x3df));try{_0x4f1aff['eventID']===_0x56cbe4[_0x216f3f(0x484)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x4f1aff)),this[_0x216f3f(0x3d1)][_0x216f3f(0x441)]({'cmd':_0x4e6b2d[_0x216f3f(0x148)],'routeKey':_0x5b46eb,'routeType':'','data':_0x4f1aff});}catch(_0x559e2e){this['_logService'][_0x216f3f(0x476)](_0x559e2e);}}[_0x3bc2c8(0x281)](){const _0x2b0cc7=_0x3bc2c8;var _0x5cf722;this[_0x2b0cc7(0x21e)]=window['setTimeout'](()=>{const _0xa3b2a1=_0x2b0cc7;this[_0xa3b2a1(0x21e)]=null,this[_0xa3b2a1(0x1d6)][_0xa3b2a1(0x29f)]({'type':_0x4466a1[_0xa3b2a1(0x185)][_0xa3b2a1(0x34e)],'content':this[_0xa3b2a1(0x24c)]['t'](_0xa3b2a1(0x14b))});},(_0x5cf722=this[_0x2b0cc7(0x4cb)][_0x2b0cc7(0x1db)](_0x372540))!=null?_0x5cf722:0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0x4b0fb7=_0x3bc2c8;this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x4b0fb7(0x21e)]=null);}[_0x3bc2c8(0x4cd)](_0x4e96ff){const _0x22aa8a=_0x3bc2c8;if(!this['_shouldReportTelemetry'])return;const {data:_0x3c1e74}=_0x4e96ff,{unitID:_0x55873d,changeset:_0x33869}=_0x3c1e74,{mutations:_0x781708,type:_0x582494}=_0x33869;this[_0x22aa8a(0x23f)]={'unitId':_0x55873d,'type':_0x582494,'startTime':performance[_0x22aa8a(0x2ef)](),'stopTime':0x0,'duration':0x0,'size':_0x342318(_0x781708)};}[_0x3bc2c8(0x1f4)](){const _0x126282=_0x3bc2c8;if(this[_0x126282(0x453)]){if(!this['_telemetryInfo']){this[_0x126282(0x4e7)][_0x126282(0x476)](_0x126282(0x2e4),_0x126282(0x45b));return;}this[_0x126282(0x23f)][_0x126282(0x42f)]=performance[_0x126282(0x2ef)](),this[_0x126282(0x23f)][_0x126282(0x470)]=this[_0x126282(0x23f)]['stopTime']-this['_telemetryInfo'][_0x126282(0x4d2)],this[_0x126282(0x1b4)][_0x126282(0x15c)](_0x2b6b65,this[_0x126282(0x23f)]),this[_0x126282(0x23f)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x5f23a6=_0x3bc2c8;this[_0x5f23a6(0x23f)]=null;}},_0x48e51e[_0x3bc2c8(0x246)]=_0x1c142f([_0x2e5a66(0x2,_0x5b7cfd['ILogService']),_0x2e5a66(0x3,_0x2ce95d[_0x3bc2c8(0x309)]),_0x2e5a66(0x4,_0x2ce95d[_0x3bc2c8(0x1af)]),_0x2e5a66(0x5,_0x5b7cfd['IConfigService']),_0x2e5a66(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x385)])),_0x2e5a66(0x7,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x587d5a)),_0x2e5a66(0x8,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x1225af)),_0x2e5a66(0x9,_0x5b7cfd[_0x3bc2c8(0x259)](_0x36caba[_0x3bc2c8(0x32d)]))],_0x48e51e[_0x3bc2c8(0x246)]);var _0x32a86a=Object[_0x3bc2c8(0x361)],_0xa2605f=Object[_0x3bc2c8(0x48b)],_0x41140d=(_0x4e34a9,_0x4b73aa,_0xd03813,_0x1c2c52)=>{const _0x59ad49=_0x3bc2c8;for(var _0x3f5321=_0x1c2c52>0x1?void 0x0:_0x1c2c52?_0xa2605f(_0x4b73aa,_0xd03813):_0x4b73aa,_0x2d8a8a=_0x4e34a9[_0x59ad49(0x3d6)]-0x1,_0x40a591;_0x2d8a8a>=0x0;_0x2d8a8a--)(_0x40a591=_0x4e34a9[_0x2d8a8a])&&(_0x3f5321=(_0x1c2c52?_0x40a591(_0x4b73aa,_0xd03813,_0x3f5321):_0x40a591(_0x3f5321))||_0x3f5321);return _0x1c2c52&&_0x3f5321&&_0x32a86a(_0x4b73aa,_0xd03813,_0x3f5321),_0x3f5321;},_0x388c8c=(_0x28e732,_0x5b2e66)=>(_0x245180,_0x218efd)=>_0x5b2e66(_0x245180,_0x218efd,_0x28e732);_0x48e51e[_0x3bc2c8(0x1d8)]=class extends _0x5b7cfd['Disposable']{constructor(_0x5d1839,_0x29355b,_0x7845a1,_0x2c54e5,_0x5f3cb4,_0x38ff1b){const _0x96442b=_0x3bc2c8;super(),_0x314dc6(this,_0x96442b(0x1b7),new _0x266483[(_0x96442b(0x43e))](void 0x0)),_0x314dc6(this,_0x96442b(0x477),this[_0x96442b(0x1b7)][_0x96442b(0x4eb)]()),_0x314dc6(this,'_candidateSocket',null),_0x314dc6(this,'_sessions',new Map()),_0x314dc6(this,_0x96442b(0x400),new _0x266483['BehaviorSubject'](_0x2d9d4e[_0x96442b(0x274)])),_0x314dc6(this,_0x96442b(0x294),this[_0x96442b(0x400)]['asObservable']()),_0x314dc6(this,'_socketReady',!0x1),_0x314dc6(this,'_retryConnectingTimer'),_0x314dc6(this,_0x96442b(0x1da),0x0),_0x314dc6(this,'_sendHeartbeatTimer'),_0x314dc6(this,_0x96442b(0x247)),(this[_0x96442b(0x30f)]=_0x5d1839,this[_0x96442b(0x24c)]=_0x29355b,this[_0x96442b(0x1d6)]=_0x7845a1,this[_0x96442b(0x4e7)]=_0x2c54e5,this['_configService']=_0x5f3cb4,this[_0x96442b(0x2ac)]=_0x38ff1b,this['_initEventListeners']());}get[_0x3bc2c8(0x3d1)](){const _0x3d2cfd=_0x3bc2c8;return this[_0x3d2cfd(0x1b7)][_0x3d2cfd(0x21b)]();}[_0x3bc2c8(0x241)](){const _0x3988d6=_0x3bc2c8;this[_0x3988d6(0x50f)](),this[_0x3988d6(0x381)]();}[_0x3bc2c8(0x314)](){const _0x39528a=_0x3bc2c8;super[_0x39528a(0x314)](),this['_sessions']['forEach'](_0x13ac19=>_0x13ac19[_0x39528a(0x314)]()),this['_sessions'][_0x39528a(0x174)](),this['_status$'][_0x39528a(0x10e)]();}async['requireSession'](_0x494334){const _0x37f7c1=_0x3bc2c8;if(this[_0x37f7c1(0x4d6)][_0x37f7c1(0x232)](_0x494334))return this[_0x37f7c1(0x4d6)]['get'](_0x494334);this[_0x37f7c1(0x108)]();const _0x25d79b=this[_0x37f7c1(0x30f)][_0x37f7c1(0x1a3)](_0x48e51e['CollaborationSession'],_0x494334,this['_socket$'][_0x37f7c1(0x4eb)]());return this[_0x37f7c1(0x4d6)][_0x37f7c1(0x10d)](_0x494334,_0x25d79b),_0x25d79b;}[_0x3bc2c8(0x3f6)](_0x42bf40){const _0x94b475=_0x3bc2c8;var _0x114ad7;const _0x283959=this['_sessions'][_0x94b475(0x451)](_0x42bf40);_0x283959&&(this[_0x94b475(0x4d6)][_0x94b475(0x344)](_0x42bf40),_0x283959['close']()),this[_0x94b475(0x4d6)][_0x94b475(0x127)]||(_0x114ad7=this[_0x94b475(0x3d1)])==null||_0x114ad7[_0x94b475(0x212)]();}[_0x3bc2c8(0x28d)](){const _0x310312=_0x3bc2c8;this[_0x310312(0x1da)]=0x0,this[_0x310312(0x26d)]!=null&&(clearTimeout(this[_0x310312(0x26d)]),this['_retryConnectingTimer']=null),this[_0x310312(0x2f3)]();}[_0x3bc2c8(0x4e2)](){const _0x4d5618=_0x3bc2c8;var _0x6f1935,_0x220372;const _0x5b039d=this['_configService'][_0x4d5618(0x1db)](_0x4989e3),_0x3a2ece=this['_configService'][_0x4d5618(0x1db)](_0xa50aed),_0x13965f=(_0x220372=(_0x6f1935=_0x3a2ece==null?void 0x0:_0x3a2ece[_0x4d5618(0x37d)])!=null?_0x6f1935:_0x5b039d)!=null?_0x220372:_0x2cc1a0,_0xbcbba8=this['_socketService'][_0x4d5618(0x245)](_0x13965f);return this[_0x4d5618(0x1fa)]=_0xbcbba8,_0xbcbba8;}['_tryEnsureSocket'](){const _0x148a7c=_0x3bc2c8;var _0x319b8a,_0x1406d4;try{const _0x1ce87c=(_0x1406d4=(_0x319b8a=this['_socket'])!=null?_0x319b8a:this[_0x148a7c(0x1fa)])!=null?_0x1406d4:this['_createSocket']();if(_0x1ce87c){const _0x472aa4=_0x1ce87c[_0x148a7c(0x441)];_0x1ce87c[_0x148a7c(0x441)]=_0x17b2ca=>(this[_0x148a7c(0x110)](),_0x472aa4[_0x148a7c(0x458)](_0x1ce87c,[_0x17b2ca])),_0x1ce87c[_0x148a7c(0x2c4)][_0x148a7c(0x2f5)](_0x918619=>this[_0x148a7c(0x4a0)](_0x1ce87c,_0x918619)),_0x1ce87c['error$'][_0x148a7c(0x198)](_0x51de38[_0x148a7c(0x38a)](0x1))['subscribe'](_0x2a04d8=>this[_0x148a7c(0x4e7)][_0x148a7c(0x476)]('[CollaborationSessionService]:\x20socket\x20error',_0x2a04d8)),_0x1ce87c[_0x148a7c(0x299)]['pipe'](_0x51de38['take'](0x1))[_0x148a7c(0x2f5)](()=>{const _0x28347a=_0x148a7c;this[_0x28347a(0x506)](_0x1ce87c);}),_0x1ce87c['close$'][_0x148a7c(0x198)](_0x51de38[_0x148a7c(0x38a)](0x1))[_0x148a7c(0x2f5)](_0x29bf3a=>{const _0x54cae1=_0x148a7c;this[_0x54cae1(0x4e7)][_0x54cae1(0x46f)]('[CollaborationSessionService]',_0x54cae1(0x48c),_0x29bf3a),this[_0x54cae1(0x3c9)]();});}}catch(_0x29d712){this[_0x148a7c(0x4e7)][_0x148a7c(0x476)](_0x29d712),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x2d215d){const _0x5be400=_0x3bc2c8;this[_0x5be400(0x4e7)][_0x5be400(0x46f)](_0x5be400(0x233),_0x5be400(0x1eb)),_0x2d215d[_0x5be400(0x441)]({'cmd':_0x4e6b2d[_0x5be400(0x4a4)]}),this[_0x5be400(0x110)]();}[_0x3bc2c8(0x50f)](){const _0x37551f=_0x3bc2c8;window['addEventListener'](_0x37551f(0x392),()=>this[_0x37551f(0x16a)]());}[_0x3bc2c8(0x16a)](){const _0x1516c2=_0x3bc2c8;this[_0x1516c2(0x505)]=!0x1,this[_0x1516c2(0x1fa)]=null,this['_status$'][_0x1516c2(0xe4)](_0x2d9d4e[_0x1516c2(0x3b0)]),this[_0x1516c2(0x1b7)][_0x1516c2(0xe4)](null),this[_0x1516c2(0x45e)](),this[_0x1516c2(0x363)]();}[_0x3bc2c8(0x3c9)](){const _0x5121a0=_0x3bc2c8;var _0x84eec0;this[_0x5121a0(0x16a)](),this[_0x5121a0(0x1da)]<((_0x84eec0=this[_0x5121a0(0x4cb)][_0x5121a0(0x1db)](_0x191200))!=null?_0x84eec0:0x3)?(this['_messageService'][_0x5121a0(0x29f)]({'key':_0x5121a0(0x3c3),'type':_0x4466a1[_0x5121a0(0x185)]['Warning'],'content':this[_0x5121a0(0x24c)]['t']('session.will-retry')}),this[_0x5121a0(0x2f3)]()):this['_messageService'][_0x5121a0(0x29f)]({'key':_0x5121a0(0x3c3),'type':_0x4466a1['MessageType'][_0x5121a0(0x34e)],'content':this[_0x5121a0(0x24c)]['t'](_0x5121a0(0xed))});}[_0x3bc2c8(0x381)](){const _0xb8c6c9=_0x3bc2c8,_0x32fa17=()=>{const _0x3a012b=_0x4f28;this[_0x3a012b(0x3d1)]||this[_0x3a012b(0x28d)]();},_0x43b5af=()=>{const _0xaba48b=_0x4f28;this[_0xaba48b(0x3d1)]||document[_0xaba48b(0x2d9)]===_0xaba48b(0x27c)||this[_0xaba48b(0x28d)]();};window['addEventListener'](_0xb8c6c9(0x3eb),_0x32fa17),document[_0xb8c6c9(0x435)](_0xb8c6c9(0x35f),_0x43b5af);}[_0x3bc2c8(0x2f3)](){const _0x4509e5=_0x3bc2c8;var _0x1b8b99;const _0x473ead=this[_0x4509e5(0x1da)],_0x35d135=this['_configService'][_0x4509e5(0x1db)](_0xa50aed),_0x46d3c5=_0x473ead===0x0?0x0:((_0x1b8b99=_0x35d135==null?void 0x0:_0x35d135[_0x4509e5(0x17e)])!=null?_0x1b8b99:0x4e20)*0x2**_0x473ead;this[_0x4509e5(0x26d)]=window[_0x4509e5(0x19f)](()=>{const _0x36d5b8=_0x4509e5;clearTimeout(this[_0x36d5b8(0x26d)]),this[_0x36d5b8(0x26d)]=null,this['_tryEnsureSocket']();},_0x46d3c5),this[_0x4509e5(0x1da)]+=0x1;}[_0x3bc2c8(0x4a0)](_0x120d74,_0x1783d5){const _0x47baf4=_0x3bc2c8,{cmd:_0x131c6b}=_0x1783d5;_0x131c6b===_0x4e6b2d[_0x47baf4(0x4a4)]&&!this[_0x47baf4(0x505)]&&(_0x120d74[_0x47baf4(0x48f)]=_0x1783d5[_0x47baf4(0x2db)][_0x47baf4(0x48f)],this[_0x47baf4(0x1b7)][_0x47baf4(0xe4)](_0x120d74),this[_0x47baf4(0x400)][_0x47baf4(0xe4)](_0x2d9d4e[_0x47baf4(0x322)]),this['_socketReady']=!0x0,this[_0x47baf4(0x1fa)]=null),_0x131c6b===_0x4e6b2d[_0x47baf4(0x1f0)]&&this['_clearTimeoutTimer'](),this[_0x47baf4(0x110)]();}[_0x3bc2c8(0x110)](){const _0x2a91a8=_0x3bc2c8;var _0x1fae90;this[_0x2a91a8(0x363)](),this[_0x2a91a8(0x46a)]=window[_0x2a91a8(0x19f)](()=>this[_0x2a91a8(0x1c0)](),(_0x1fae90=this[_0x2a91a8(0x4cb)]['getConfig'](_0x4afd24))!=null?_0x1fae90:0x7530);}[_0x3bc2c8(0x1c0)](){const _0x51c9d9=_0x3bc2c8;this[_0x51c9d9(0x3d1)][_0x51c9d9(0x441)]({'cmd':_0x4e6b2d['HEARTBEAT']}),this[_0x51c9d9(0x3f5)]();}[_0x3bc2c8(0x3f5)](){const _0x1f82db=_0x3bc2c8;var _0x5a8c35;this[_0x1f82db(0x247)]=window['setTimeout'](()=>this[_0x1f82db(0x3c9)](),(_0x5a8c35=this[_0x1f82db(0x4cb)][_0x1f82db(0x1db)](_0x372540))!=null?_0x5a8c35:0x4e20);}['_clearHeartbeatTimer'](){const _0x32b2b0=_0x3bc2c8;this[_0x32b2b0(0x46a)]!=null&&(clearTimeout(this[_0x32b2b0(0x46a)]),this['_sendHeartbeatTimer']=null);}[_0x3bc2c8(0x45e)](){const _0x4fbd1e=_0x3bc2c8;this[_0x4fbd1e(0x247)]!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}},_0x48e51e[_0x3bc2c8(0x1d8)]=_0x41140d([_0x388c8c(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['Injector'])),_0x388c8c(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['LocaleService'])),_0x388c8c(0x2,_0x2ce95d[_0x3bc2c8(0x1af)]),_0x388c8c(0x3,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x388c8c(0x4,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x388c8c(0x5,_0x2644e7)],_0x48e51e[_0x3bc2c8(0x1d8)]);var _0x13a2ff=Object[_0x3bc2c8(0x361)],_0x1cae8f=Object[_0x3bc2c8(0x48b)],_0x5e6cda=(_0x4d1bc2,_0x475bca,_0x308f1d,_0x3bd422)=>{const _0x850c41=_0x3bc2c8;for(var _0x5b124b=_0x3bd422>0x1?void 0x0:_0x3bd422?_0x1cae8f(_0x475bca,_0x308f1d):_0x475bca,_0x13184b=_0x4d1bc2[_0x850c41(0x3d6)]-0x1,_0x6e2fbf;_0x13184b>=0x0;_0x13184b--)(_0x6e2fbf=_0x4d1bc2[_0x13184b])&&(_0x5b124b=(_0x3bd422?_0x6e2fbf(_0x475bca,_0x308f1d,_0x5b124b):_0x6e2fbf(_0x5b124b))||_0x5b124b);return _0x3bd422&&_0x5b124b&&_0x13a2ff(_0x475bca,_0x308f1d,_0x5b124b),_0x5b124b;},_0x2d90e0=(_0x26a0c5,_0x769a3e)=>(_0x32a1e5,_0x14c085)=>_0x769a3e(_0x32a1e5,_0x14c085,_0x26a0c5);let _0x1e6c69=class{constructor(_0x25f496,_0x5a7ce4,_0x3a63db){const _0x920ce8=_0x3bc2c8;this[_0x920ce8(0x30f)]=_0x25f496,this[_0x920ce8(0x3a1)]=_0x5a7ce4,this['_renderManagerService']=_0x3a63db;}['transformIMECache'](_0x52a6a4){this['_transformUndoRedoStack'](_0x52a6a4),this['_transformPreviousActiveRange'](_0x52a6a4);}[_0x3bc2c8(0x3fb)](_0x1ddcad){const _0x50dc93=_0x3bc2c8,{unitID:_0x3f3c8f}=_0x1ddcad,_0xd0d302=this[_0x50dc93(0x4bd)]['getRenderById'](_0x3f3c8f)[_0x50dc93(0x1a6)](_0x618f14[_0x50dc93(0x1c2)]),{redoCache:_0x4daed4}=_0xd0d302[_0x50dc93(0x48d)]();if(_0x4daed4[_0x50dc93(0x3d6)]===0x0)return _0x1ddcad;let _0x299b78=_0x5b7cfd['Tools']['deepClone'](_0x1ddcad[_0x50dc93(0x1fc)][0x0]);for(let _0x4a5260=0x0;_0x4a5260<_0x4daed4['length'];_0x4a5260++){const _0x5aa6fa={'id':'doc.mutation.rich-text-editing','params':{..._0x4daed4[_0x4a5260]}},_0x529821=this[_0x50dc93(0x3a1)][_0x50dc93(0x31d)](_0x299b78,_0x5aa6fa,!0x1);if(_0x56cbe4[_0x50dc93(0x197)](_0x529821))throw _0x529821[_0x50dc93(0x476)];_0x299b78=_0x529821['m1Prime'];}return{..._0x5b7cfd[_0x50dc93(0x2f6)][_0x50dc93(0x29b)](_0x1ddcad),'mutations':[_0x299b78]};}['_transformUndoRedoStack'](_0x27a529){const _0x1d9f82=_0x3bc2c8,{unitID:_0x565bae}=_0x27a529,_0x437937=this[_0x1d9f82(0x4bd)]['getRenderById'](_0x565bae)[_0x1d9f82(0x1a6)](_0x618f14[_0x1d9f82(0x1c2)]),{undoCache:_0x12b8ef,redoCache:_0x26db0e}=_0x437937[_0x1d9f82(0x48d)]();if(_0x12b8ef[_0x1d9f82(0x3d6)]===0x0||_0x26db0e[_0x1d9f82(0x3d6)]===0x0)return;const _0x4f6950=[],_0x582ce1=[];let _0x23c701=_0x5b7cfd[_0x1d9f82(0x2f6)]['deepClone'](_0x27a529[_0x1d9f82(0x1fc)][0x0]),_0x4c774e=_0x5b7cfd[_0x1d9f82(0x2f6)][_0x1d9f82(0x29b)](_0x27a529['mutations'][0x0]);for(let _0x515b7d=_0x12b8ef[_0x1d9f82(0x3d6)]-0x1;_0x515b7d>=0x0;_0x515b7d--){const _0x45a1e4={'id':'doc.mutation.rich-text-editing','params':{..._0x12b8ef[_0x515b7d]}},_0x3d7f81={'id':'doc.mutation.rich-text-editing','params':{..._0x26db0e[_0x515b7d]}},_0x2adfca=this['_transformService'][_0x1d9f82(0x31d)](_0x23c701,_0x45a1e4,!0x1),_0x6bb644=this[_0x1d9f82(0x3a1)][_0x1d9f82(0x31d)](_0x4c774e,_0x3d7f81,!0x1);if(_0x56cbe4['isTransformMutationFailure'](_0x2adfca))throw _0x2adfca['error'];if(_0x56cbe4[_0x1d9f82(0x197)](_0x6bb644))throw _0x6bb644[_0x1d9f82(0x476)];_0x4f6950[_0x1d9f82(0x377)](_0x2adfca[_0x1d9f82(0x275)][_0x1d9f82(0x3c2)]),_0x582ce1[_0x1d9f82(0x377)](_0x6bb644[_0x1d9f82(0x275)]['params']),_0x23c701=_0x2adfca[_0x1d9f82(0x32c)],_0x4c774e=_0x6bb644[_0x1d9f82(0x32c)];}_0x437937[_0x1d9f82(0x486)]({'undoCache':_0x4f6950,'redoCache':_0x582ce1});}[_0x3bc2c8(0x3f2)](_0x31c5a7){const _0x2d1ae4=_0x3bc2c8,{unitID:_0x54e2eb}=_0x31c5a7,_0x2d753b=this[_0x2d1ae4(0x4bd)]['getRenderById'](_0x54e2eb)['with'](_0x618f14[_0x2d1ae4(0x1c2)]),_0x4fcf0f=_0x2d753b['getActiveRange']();if(_0x4fcf0f==null)return;const _0x43e8a8=[{'id':_0x2d1ae4(0x2d2),'params':{'unitId':_0x31c5a7[_0x2d1ae4(0x1b0)],'actions':null,'textRanges':[_0x4fcf0f]}}],_0x3ca9b2=this[_0x2d1ae4(0x3a1)][_0x2d1ae4(0x4b8)](_0x31c5a7,_0x43e8a8);if(!_0x56cbe4[_0x2d1ae4(0x180)](_0x3ca9b2))throw _0x3ca9b2[_0x2d1ae4(0x476)];const _0x153b06=_0x3ca9b2[_0x2d1ae4(0x275)][0x0][_0x2d1ae4(0x3c2)][_0x2d1ae4(0x138)];Array['isArray'](_0x153b06)&&_0x153b06[_0x2d1ae4(0x3d6)]&&_0x2d753b[_0x2d1ae4(0x14e)](_0x153b06[0x0]);}};_0x1e6c69=_0x5e6cda([_0x2d90e0(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x2d90e0(0x1,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x2d90e0(0x2,_0x46e2e3[_0x3bc2c8(0x37e)])],_0x1e6c69);var _0xabb556=Object[_0x3bc2c8(0x361)],_0x3026f1=Object[_0x3bc2c8(0x48b)],_0x4476ed=(_0x1c324d,_0x1c46bd,_0x44fda6,_0x29cfc0)=>{for(var _0x4cf889=_0x29cfc0>0x1?void 0x0:_0x29cfc0?_0x3026f1(_0x1c46bd,_0x44fda6):_0x1c46bd,_0x25506f=_0x1c324d['length']-0x1,_0x37336;_0x25506f>=0x0;_0x25506f--)(_0x37336=_0x1c324d[_0x25506f])&&(_0x4cf889=(_0x29cfc0?_0x37336(_0x1c46bd,_0x44fda6,_0x4cf889):_0x37336(_0x4cf889))||_0x4cf889);return _0x29cfc0&&_0x4cf889&&_0xabb556(_0x1c46bd,_0x44fda6,_0x4cf889),_0x4cf889;},_0x210132=(_0x17be3e,_0xa292cf)=>(_0x413779,_0x2ca103)=>_0xa292cf(_0x413779,_0x2ca103,_0x17be3e);_0x48e51e[_0x3bc2c8(0x47d)]=class extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(_0x4eadf8,_0x27bf38,_0x52f085,_0x4c6180,_0x29615a){const _0x45676d=_0x3bc2c8;super(),_0x314dc6(this,_0x45676d(0x125),new Map()),_0x314dc6(this,_0x45676d(0x2ba),new Map()),_0x314dc6(this,'_disabled',!0x1),(this[_0x45676d(0x4cb)]=_0x4eadf8,this[_0x45676d(0x163)]=_0x27bf38,this['_beforeCloseService']=_0x52f085,this[_0x45676d(0x24c)]=_0x4c6180,this[_0x45676d(0x49a)]=_0x29615a,this[_0x45676d(0x1bf)]());}[_0x3bc2c8(0x397)](){const _0x4f3741=_0x3bc2c8;this[_0x4f3741(0x324)]=!0x0;}[_0x3bc2c8(0x412)](){this['_disabled']=!0x1;}[_0x3bc2c8(0x314)](){const _0xf8fbf4=_0x3bc2c8;this[_0xf8fbf4(0x4c1)]()[_0xf8fbf4(0x3a3)](()=>super['dispose']());}async['loadOfflineData'](_0x1cfd12){const _0x83239d=_0x3bc2c8;return this[_0x83239d(0x324)]?null:this['_localStorageService'][_0x83239d(0x2f1)](_0x261829(_0x1cfd12));}async[_0x3bc2c8(0x367)](_0x35dd68,_0x508c16){const _0x5227ad=_0x3bc2c8;return!!this[_0x5227ad(0x163)][_0x5227ad(0x3bc)](_0x35dd68,_0x508c16);}[_0x3bc2c8(0x4ee)](_0x40fe5e,_0x526eac,_0x4b817f,_0x432742){const _0x3ef44d=_0x3bc2c8,_0x26651d=this[_0x3ef44d(0x49a)][_0x3ef44d(0x22d)](_0x40fe5e);this[_0x3ef44d(0x125)][_0x3ef44d(0x10d)](_0x40fe5e,{'unitID':_0x40fe5e,'type':_0x526eac,'awaitingChangeset':_0x4b817f,'mutations':_0x432742,'rev':_0x26651d}),this['_saveTaskMap']['has'](_0x40fe5e)||this[_0x3ef44d(0x4f3)](_0x40fe5e);}['_scheduleSaving'](_0x3cad75){const _0x170741=_0x3bc2c8,_0x5a556d=this[_0x170741(0xeb)]();_0x5a556d===0x0?this[_0x170741(0x2fe)](_0x3cad75):this['_saveTaskMap'][_0x170741(0x10d)](_0x3cad75,setTimeout(()=>this[_0x170741(0x2fe)](_0x3cad75),_0x5a556d));}[_0x3bc2c8(0xeb)](){const _0x2c9b4e=_0x3bc2c8;var _0x15bf01;return(_0x15bf01=this[_0x2c9b4e(0x4cb)][_0x2c9b4e(0x1db)](_0x23080c))!=null?_0x15bf01:0x3e8;}[_0x3bc2c8(0x2fe)](_0xad9003){const _0x56a7d7=_0x3bc2c8,_0x3f05cb=this[_0x56a7d7(0x2ba)]['get'](_0xad9003);return _0x3f05cb!==void 0x0&&window['clearTimeout'](_0x3f05cb),this['_localStorageService']['setItem'](_0x261829(_0xad9003),this['_cachedData'][_0x56a7d7(0x451)](_0xad9003))['then'](()=>this[_0x56a7d7(0x2ba)][_0x56a7d7(0x344)](_0xad9003));}async['exhaustSavingTask'](){const _0x4fdf54=_0x3bc2c8,_0x270b28=[];this[_0x4fdf54(0x2ba)][_0x4fdf54(0x255)]((_0xe425c8,_0x3ad9c1)=>{const _0x75eced=_0x4fdf54;window['clearTimeout'](_0xe425c8),_0x270b28[_0x75eced(0x13d)](this[_0x75eced(0x2fe)](_0x3ad9c1)[_0x75eced(0x3a3)](()=>{const _0x7fc659=_0x75eced;this[_0x7fc659(0x2ba)][_0x7fc659(0x344)](_0x3ad9c1);}));}),await Promise[_0x4fdf54(0x21a)](_0x270b28);}[_0x3bc2c8(0x1bf)](){const _0x128679=_0x3bc2c8;this[_0x128679(0x131)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x263b2e=_0x128679;if(this[_0x263b2e(0x2ba)]['size'])return this['_localeService']['t'](_0x263b2e(0x42c));}));}},_0x48e51e[_0x3bc2c8(0x47d)]=_0x4476ed([_0x210132(0x0,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x210132(0x1,_0x5b7cfd[_0x3bc2c8(0x4d1)]),_0x210132(0x2,_0x2ce95d['IBeforeCloseService']),_0x210132(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['LocaleService'])),_0x210132(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x44e)]))],_0x48e51e[_0x3bc2c8(0x47d)]);function _0x261829(_0x55ad0a){return'unit-cache-'+_0x55ad0a;}var _0x519a14=Object[_0x3bc2c8(0x361)],_0x53f843=Object[_0x3bc2c8(0x48b)],_0x1b9d69=(_0x28cbc1,_0x18948a,_0x27196f,_0x27b2a9)=>{const _0x25449c=_0x3bc2c8;for(var _0x67ab64=_0x27b2a9>0x1?void 0x0:_0x27b2a9?_0x53f843(_0x18948a,_0x27196f):_0x18948a,_0x2a8e7f=_0x28cbc1[_0x25449c(0x3d6)]-0x1,_0x333d83;_0x2a8e7f>=0x0;_0x2a8e7f--)(_0x333d83=_0x28cbc1[_0x2a8e7f])&&(_0x67ab64=(_0x27b2a9?_0x333d83(_0x18948a,_0x27196f,_0x67ab64):_0x333d83(_0x67ab64))||_0x67ab64);return _0x27b2a9&&_0x67ab64&&_0x519a14(_0x18948a,_0x27196f,_0x67ab64),_0x67ab64;},_0x591682=(_0x4fdf01,_0x46d8af)=>(_0x2ce797,_0x378aa9)=>_0x46d8af(_0x2ce797,_0x378aa9,_0x4fdf01);function _0x5eafe9(_0x47ca35){const _0x4319cd=_0x3bc2c8,{unitID:_0xd877a8,mutations:_0x2d1552}=_0x47ca35;return{'unitId':_0xd877a8,'subUnitId':_0x2d1552[0x0][_0x4319cd(0x3c2)][_0x4319cd(0x2e3)]};}let _0x2cedfe=class{constructor(_0x51d68f,_0x5f56b4,_0x38013d){const _0xc07845=_0x3bc2c8;this[_0xc07845(0x30f)]=_0x51d68f,this['_transformService']=_0x5f56b4,this[_0xc07845(0x2cd)]=_0x38013d;}[_0x3bc2c8(0x109)](_0x33ebcd){const _0x3b1a0d=_0x3bc2c8;var _0x477709,_0x2af312,_0xf332cb,_0x11f23a;const _0x519862=this[_0x3b1a0d(0x30f)][_0x3b1a0d(0x451)](_0xa62622['SheetsSelectionsService']),{unitId:_0x4880e2,subUnitId:_0xb76232}=_0x5eafe9(_0x33ebcd),_0x33081d=_0x519862['getWorkbookSelections'](_0x4880e2)[_0x3b1a0d(0x222)](),_0x5a5983=(_0x2af312=(_0x477709=this[_0x3b1a0d(0x2cd)][_0x3b1a0d(0x467)](_0x4880e2))==null?void 0x0:_0x477709[_0x3b1a0d(0x240)]())==null?void 0x0:_0x2af312[_0x3b1a0d(0x43d)]();if(_0x33081d[_0x3b1a0d(0x3d6)]===0x0||!_0x4880e2||!_0xb76232)return;const _0x3709d2=[{'id':_0xa62622[_0x3b1a0d(0x32e)]['id'],'params':{'unitId':_0x4880e2,'subUnitId':_0x5a5983,'selections':_0x5b7cfd[_0x3b1a0d(0x2f6)][_0x3b1a0d(0x29b)](_0x33081d)}}],_0x1082a4=this[_0x3b1a0d(0x3a1)][_0x3b1a0d(0x4b8)](_0x33ebcd,_0x3709d2);if(!_0x56cbe4['isTransformMutationsWithChangesetSuccess'](_0x1082a4))throw _0x1082a4[_0x3b1a0d(0x476)];const _0x154bf7=(_0x11f23a=(_0xf332cb=_0x1082a4[_0x3b1a0d(0x275)][0x0])==null?void 0x0:_0xf332cb[_0x3b1a0d(0x3c2)])==null?void 0x0:_0x11f23a[_0x3b1a0d(0x4ff)];Array[_0x3b1a0d(0x1cc)](_0x154bf7)&&_0x154bf7[_0x3b1a0d(0x3d6)]&&this[_0x3b1a0d(0x30f)][_0x3b1a0d(0x451)](_0x5b7cfd[_0x3b1a0d(0x27d)])[_0x3b1a0d(0x2a7)](_0xa62622[_0x3b1a0d(0x32e)]['id'],{'unitId':_0x4880e2,'subUnitId':_0x5a5983,'selections':_0x154bf7});}};_0x2cedfe=_0x1b9d69([_0x591682(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x591682(0x1,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x591682(0x2,_0x5b7cfd[_0x3bc2c8(0x29e)])],_0x2cedfe);const _0x5e9761=_0x5b7cfd[_0x3bc2c8(0x20d)]('univer-pro.collaboration-client.single-active-unit-service');var _0x695cf2=(_0x3d3f52=>(_0x3d3f52[_0x3d3f52['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x3d3f52[_0x3d3f52[_0x3bc2c8(0x3de)]=0x1]=_0x3bc2c8(0x3de),_0x3d3f52))(_0x695cf2||{});const _0x2ff85a=0x7530,_0x5f0b59=_0x3bc2c8(0x4a7);class _0x384617 extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(){const _0x1b8363=_0x3bc2c8;super(),_0x314dc6(this,'_id',_0x5b7cfd[_0x1b8363(0x2f6)][_0x1b8363(0x1d9)]()),_0x314dc6(this,_0x1b8363(0x34f),new Set()),_0x314dc6(this,_0x1b8363(0x34c),new Map()),_0x314dc6(this,_0x1b8363(0x290),null),_0x314dc6(this,'_clearOtherTimers',new Map()),_0x314dc6(this,_0x1b8363(0x15d),new Map()),this['_init']();}[_0x3bc2c8(0x314)](){const _0x3d518f=_0x3bc2c8;super[_0x3d518f(0x314)](),this[_0x3d518f(0x4dc)]['forEach']((_0xac10a,_0x2b10cc)=>this[_0x3d518f(0x23e)](_0x2b10cc)),this[_0x3d518f(0x290)]&&window[_0x3d518f(0x40c)](this[_0x3d518f(0x290)]);}[_0x3bc2c8(0x112)](_0x4f4147){const _0x3b2c73=_0x3bc2c8;return this[_0x3b2c73(0x169)](_0x4f4147)[_0x3b2c73(0x198)](_0x266483['distinctUntilChanged']());}[_0x3bc2c8(0x179)](_0x11c06d){const _0x57a5a7=_0x3bc2c8;this['_selfUnitIDs'][_0x57a5a7(0x127)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x57a5a7(0x225)](_0x11c06d),this[_0x57a5a7(0x1ca)]({'type':0x0,'memberID':this[_0x57a5a7(0x28e)],'unitIDs':[_0x11c06d],'isForwarded':!0x1});}['disposeUnit'](_0x379195){const _0x888ea0=_0x3bc2c8;this[_0x888ea0(0x34f)][_0x888ea0(0x344)](_0x379195),this['_selfUnitIDs'][_0x888ea0(0x127)]===0x0&&this[_0x888ea0(0x290)]&&window['clearInterval'](this['_heartbeatTimer']);}['_init'](){const _0x3018bc=_0x3bc2c8;this[_0x3018bc(0x131)](_0x5b7cfd[_0x3018bc(0x3d9)](_0x266483[_0x3018bc(0x408)](window,'storage')[_0x3018bc(0x2f5)](_0x1f4e3e=>{const _0xbb27ce=_0x3018bc;if(_0x1f4e3e[_0xbb27ce(0x438)]!==_0x5f0b59||!_0x1f4e3e[_0xbb27ce(0x44b)])return;const _0x2c9bb3=JSON[_0xbb27ce(0x4ec)](_0x1f4e3e['newValue']);this['_handleEvent'](_0x2c9bb3);}))),window[_0x3018bc(0x435)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x3018bc(0x28e)],'unitIDs':Array[_0x3018bc(0x1e3)](this[_0x3018bc(0x34f)])}));}[_0x3bc2c8(0x3b4)](_0x44c83b){const _0x1aadd4=_0x3bc2c8;switch(_0x44c83b['type']){case 0x0:this[_0x1aadd4(0x18c)](_0x44c83b);break;case 0x1:this[_0x1aadd4(0x10f)](_0x44c83b);break;case 0x2:this['_handleHeartbeatEvent'](_0x44c83b);break;}}[_0x3bc2c8(0x18c)](_0x55828a){const _0x1b0d7f=_0x3bc2c8,{unitIDs:_0x3d2640,memberID:_0x4c3cbb,isForwarded:_0x5e176b}=_0x55828a;_0x3d2640[_0x1b0d7f(0x255)](_0x531a15=>{const _0x548529=_0x1b0d7f;if(!_0x5e176b&&this[_0x548529(0x34c)][_0x548529(0x232)](_0x531a15)&&this['_ensureSubject'](_0x531a15)[_0x548529(0xe4)](0x1),!this[_0x548529(0x34c)]['has'](_0x531a15)||!this[_0x548529(0x34c)][_0x548529(0x451)](_0x531a15)['has'](_0x4c3cbb)){const _0x560ad4=this[_0x548529(0x34c)]['get'](_0x531a15)||new Set();_0x560ad4[_0x548529(0x225)](_0x4c3cbb),this[_0x548529(0x34c)][_0x548529(0x10d)](_0x531a15,_0x560ad4),this[_0x548529(0x383)](_0x4c3cbb);}}),_0x5e176b||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x1b0d7f(0x34f)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x18119c){const _0x12a0c5=_0x3bc2c8;this[_0x12a0c5(0x23e)](_0x18119c);const _0x3e4ec7=window[_0x12a0c5(0x19f)](()=>{this['_unitOnClients']['forEach'](_0x303923=>{const _0x5c6221=_0x4f28;_0x303923[_0x5c6221(0x344)](_0x18119c);});},_0x2ff85a*0x2);this['_clearOtherTimers'][_0x12a0c5(0x10d)](_0x18119c,_0x3e4ec7);}[_0x3bc2c8(0x23e)](_0x5ecec9){const _0x592b9d=_0x3bc2c8;if(this[_0x592b9d(0x4dc)][_0x592b9d(0x232)](_0x5ecec9)){const _0x34c26c=this[_0x592b9d(0x4dc)][_0x592b9d(0x451)](_0x5ecec9);_0x34c26c&&window['clearTimeout'](_0x34c26c),this[_0x592b9d(0x4dc)]['set'](_0x5ecec9,null);}}[_0x3bc2c8(0x10f)](_0x3595eb){const _0x3d2d57=_0x3bc2c8,{memberID:_0x22d169,unitIDs:_0x3670ad}=_0x3595eb;_0x3670ad['forEach'](_0x167345=>{const _0x6b2ffd=_0x4f28;var _0x28f9a3;const _0x5c9ba2=this[_0x6b2ffd(0x34c)][_0x6b2ffd(0x451)](_0x167345);_0x5c9ba2&&(_0x5c9ba2[_0x6b2ffd(0x344)](_0x22d169),(_0x28f9a3=this[_0x6b2ffd(0x169)](_0x167345))==null||_0x28f9a3[_0x6b2ffd(0xe4)](_0x5c9ba2[_0x6b2ffd(0x127)]===0x0?0x0:0x1));}),this[_0x3d2d57(0x23e)](_0x22d169);}[_0x3bc2c8(0x144)](_0x3f9189){const _0x3dc727=_0x3bc2c8;this[_0x3dc727(0x383)](_0x3f9189[_0x3dc727(0x48f)]);}[_0x3bc2c8(0x1ca)](_0x105a7f){const _0x722b35=_0x3bc2c8;localStorage[_0x722b35(0x3bc)](_0x5f0b59,JSON['stringify'](_0x105a7f));}[_0x3bc2c8(0x11f)](){const _0x5bba74=_0x3bc2c8;this[_0x5bba74(0x290)]=window['setInterval'](()=>{const _0x53d2cb=_0x5bba74;this[_0x53d2cb(0x1ca)]({'type':0x2,'memberID':this[_0x53d2cb(0x28e)]});},_0x2ff85a);}[_0x3bc2c8(0x169)](_0x27a358){const _0x53d96e=_0x3bc2c8;return this[_0x53d96e(0x15d)][_0x53d96e(0x232)](_0x27a358)||this[_0x53d96e(0x15d)][_0x53d96e(0x10d)](_0x27a358,new _0x266483['BehaviorSubject'](0x0)),this['_unitStatus']['get'](_0x27a358);}}function _0x57f458(_0x54c21b){let _0x218d1b='';for(const _0x39835b of _0x54c21b){const {startOffset:_0x47d93f,endOffset:_0x2c060c,isActive:_0x303554}=_0x39835b;_0x218d1b['length']&&(_0x218d1b+=','),_0x218d1b+=_0x47d93f+':'+_0x2c060c+':'+(_0x303554?'1':'0');}return _0x218d1b;}function _0x39789b(_0x11fe73){const _0x2b642b=_0x3bc2c8,_0x40bf89=_0x11fe73[_0x2b642b(0x1f6)](','),_0x1e182f=[];for(const _0x3a45ec of _0x40bf89){const [_0x1d494c,_0x21b082,_0x3d050c]=_0x3a45ec['split'](':');_0x1e182f[_0x2b642b(0x13d)]({'startOffset':Number(_0x1d494c),'endOffset':Number(_0x21b082),'collapsed':_0x1d494c===_0x21b082,'isActive':_0x3d050c==='1'});}return _0x1e182f['some'](_0x52b846=>_0x52b846[_0x2b642b(0x2aa)])||(_0x1e182f[0x0]['isActive']=!0x0),_0x1e182f;}class _0x56b650 extends _0x5b7cfd['RxDisposable']{constructor(){const _0x5cf14c=_0x3bc2c8;super(...arguments),_0x314dc6(this,_0x5cf14c(0x380),new _0x266483[(_0x5cf14c(0x43e))](null)),_0x314dc6(this,_0x5cf14c(0x1b9),this[_0x5cf14c(0x380)][_0x5cf14c(0x4eb)]());}[_0x3bc2c8(0x195)](_0x29d1f9){const {unitID:_0x47bbea,memberID:_0x306b56,textRanges:_0x130a82}=_0x29d1f9,_0xdaef17=_0x57f458(_0x130a82),_0x5e305a={'unitID':_0x47bbea,'memberID':_0x306b56,'selection':_0xdaef17};this['_collabCursorState$']['next'](_0x5e305a);}}var _0x926cc6=Object[_0x3bc2c8(0x361)],_0x3c39c9=Object[_0x3bc2c8(0x48b)],_0x14fbbb=(_0xc9eb79,_0x1825b5,_0x4c167a,_0x19d5a3)=>{for(var _0x5a64db=_0x19d5a3>0x1?void 0x0:_0x19d5a3?_0x3c39c9(_0x1825b5,_0x4c167a):_0x1825b5,_0x5f48cf=_0xc9eb79['length']-0x1,_0x4da180;_0x5f48cf>=0x0;_0x5f48cf--)(_0x4da180=_0xc9eb79[_0x5f48cf])&&(_0x5a64db=(_0x19d5a3?_0x4da180(_0x1825b5,_0x4c167a,_0x5a64db):_0x4da180(_0x5a64db))||_0x5a64db);return _0x19d5a3&&_0x5a64db&&_0x926cc6(_0x1825b5,_0x4c167a,_0x5a64db),_0x5a64db;},_0x527238=(_0xa17694,_0x2e12a7)=>(_0x5b008c,_0x1b5b5b)=>_0x2e12a7(_0x5b008c,_0x1b5b5b,_0xa17694);let _0x12ef35=class{constructor(_0x12c520,_0x40e9ba){const _0x2281c4=_0x3bc2c8;this[_0x2281c4(0x30f)]=_0x12c520,this[_0x2281c4(0x3a1)]=_0x40e9ba;}['transformSelections'](_0x3a4a99){const _0x425454=_0x3bc2c8;var _0x3c81b4;const _0x42182b=this['_injector']['get'](_0x3e2148[_0x425454(0x2c1)]),_0x348b63=(_0x3c81b4=_0x42182b['getDocRanges']())!=null?_0x3c81b4:[];if(_0x348b63['length']===0x0)return;const _0x34e866=[{'id':_0x425454(0x2d2),'params':{'unitId':_0x3a4a99[_0x425454(0x1b0)],'actions':null,'textRanges':_0x348b63}}],_0x1ce4a3=this[_0x425454(0x3a1)]['transformMutationsWithChangeset'](_0x3a4a99,_0x34e866);if(!_0x56cbe4['isTransformMutationsWithChangesetSuccess'](_0x1ce4a3))throw _0x1ce4a3[_0x425454(0x476)];const _0x4285f4=_0x1ce4a3['m2Prime'][0x0][_0x425454(0x3c2)][_0x425454(0x138)];Array[_0x425454(0x1cc)](_0x4285f4)&&_0x4285f4[_0x425454(0x3d6)]&&_0x42182b[_0x425454(0x464)](_0x4285f4,!0x1);}};_0x12ef35=_0x14fbbb([_0x527238(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x527238(0x1,_0x56cbe4[_0x3bc2c8(0x2ea)])],_0x12ef35);const _0x2533e1=new Set([_0xa62622[_0x3bc2c8(0x253)]['id']]);function _0x23aaad(_0x5c6ed7,_0x1c1d36,_0x18af57,_0x659c13,_0x476de7){const _0x386e65=_0x3bc2c8;var _0x194661,_0x2544f1,_0xb514e,_0x37436b;const _0x2485da=[];for(const _0xfe7d57 of _0x5c6ed7)if(_0x2533e1[_0x386e65(0x232)](_0xfe7d57['id'])){if(_0x2485da[_0x386e65(0x3d6)]>0x0)break;_0x2485da['push'](_0xfe7d57);break;}else _0x2485da[_0x386e65(0x13d)](_0xfe7d57);const _0x4ab587=(_0x2544f1=(_0x194661=_0x476de7[_0x386e65(0x105)]())==null?void 0x0:_0x194661[_0x386e65(0x13e)])!=null?_0x2544f1:_0x386e65(0x388),_0x51b4e2=(_0x37436b=(_0xb514e=_0x476de7[_0x386e65(0x105)]())==null?void 0x0:_0xb514e[_0x386e65(0x48f)])!=null?_0x37436b:_0x386e65(0x388);return{'changeset':{'unitID':_0x1c1d36,'type':_0x56cbe4[_0x386e65(0x24a)](_0x18af57[_0x386e65(0x28c)](_0x1c1d36)),'baseRev':_0x659c13[_0x386e65(0x22d)](_0x1c1d36),'revision':0x0,'userID':_0x4ab587,'memberID':_0x51b4e2,'mutations':_0x2485da},'pendingMutations':_0x5c6ed7[_0x386e65(0xef)](_0x2485da[_0x386e65(0x3d6)])};}function _0x581ccf(_0x4dbf9a,_0xb10010,_0x5310ad,_0x47ae78,_0x5bb3d3){const _0x41eb76=_0x3bc2c8;var _0x1fde3a,_0xdd26d6,_0x561dcd,_0x482c07;const _0x5319f1=[_0x4dbf9a[_0x41eb76(0x4f1)]((_0x45c534,_0x1a762f)=>{const _0x32f2f0=_0x41eb76;var _0x8d6ec6;const {id:_0x1d8173}=_0x45c534,{id:_0x294d01,type:_0x199c78}=_0x1a762f,_0x294dc4=(_0x8d6ec6=_0x45c534['params'])!=null?_0x8d6ec6:{'actions':null},_0x50d7c3=_0x1a762f[_0x32f2f0(0x3c2)];if(_0x1d8173&&_0x1d8173!==_0x294d01)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x1d8173+_0x32f2f0(0x1a7)+_0x294d01+'.');return{..._0x45c534,'id':_0x294d01,'type':_0x199c78,'params':{'unitId':_0x50d7c3[_0x32f2f0(0x373)],'textRanges':_0x50d7c3[_0x32f2f0(0x138)],'actions':_0x5b7cfd[_0x32f2f0(0x46c)][_0x32f2f0(0x14d)](_0x294dc4[_0x32f2f0(0x2fd)],_0x50d7c3[_0x32f2f0(0x2fd)])}};},{})],_0x24142e=(_0xdd26d6=(_0x1fde3a=_0x5bb3d3[_0x41eb76(0x105)]())==null?void 0x0:_0x1fde3a[_0x41eb76(0x13e)])!=null?_0xdd26d6:_0x41eb76(0x388),_0x5162a8=(_0x482c07=(_0x561dcd=_0x5bb3d3[_0x41eb76(0x105)]())==null?void 0x0:_0x561dcd[_0x41eb76(0x48f)])!=null?_0x482c07:_0x41eb76(0x388);return{'changeset':{'unitID':_0xb10010,'type':_0x56cbe4[_0x41eb76(0x24a)](_0x5310ad[_0x41eb76(0x28c)](_0xb10010)),'baseRev':_0x47ae78[_0x41eb76(0x22d)](_0xb10010),'revision':0x0,'userID':_0x24142e,'memberID':_0x5162a8,'mutations':_0x5319f1},'pendingMutations':[]};}const _0x5844c5={'id':_0xa62622[_0x3bc2c8(0x196)]['id'],'type':_0x5b7cfd['CommandType'][_0x3bc2c8(0x374)],'params':{}};var _0x2ccec7=Object[_0x3bc2c8(0x361)],_0x1b82a6=Object['getOwnPropertyDescriptor'],_0x107b64=(_0x9cd2b,_0x2317c4,_0x38a486,_0xd104d)=>{const _0x738a90=_0x3bc2c8;for(var _0x2b8bea=_0xd104d>0x1?void 0x0:_0xd104d?_0x1b82a6(_0x2317c4,_0x38a486):_0x2317c4,_0x1c8134=_0x9cd2b[_0x738a90(0x3d6)]-0x1,_0x2f6e87;_0x1c8134>=0x0;_0x1c8134--)(_0x2f6e87=_0x9cd2b[_0x1c8134])&&(_0x2b8bea=(_0xd104d?_0x2f6e87(_0x2317c4,_0x38a486,_0x2b8bea):_0x2f6e87(_0x2b8bea))||_0x2b8bea);return _0xd104d&&_0x2b8bea&&_0x2ccec7(_0x2317c4,_0x38a486,_0x2b8bea),_0x2b8bea;},_0x45b06d=(_0x41e99d,_0x43bc76)=>(_0x1c98aa,_0x48f161)=>_0x43bc76(_0x1c98aa,_0x48f161,_0x41e99d),_0x5926c5=(_0x4ee04d=>(_0x4ee04d[_0x3bc2c8(0x352)]='not_collab',_0x4ee04d[_0x3bc2c8(0xfd)]='synced',_0x4ee04d[_0x3bc2c8(0x263)]='pending',_0x4ee04d[_0x3bc2c8(0x4b9)]=_0x3bc2c8(0x265),_0x4ee04d[_0x3bc2c8(0x268)]=_0x3bc2c8(0x41a),_0x4ee04d[_0x3bc2c8(0x104)]=_0x3bc2c8(0x4a1),_0x4ee04d[_0x3bc2c8(0x35d)]=_0x3bc2c8(0x209),_0x4ee04d[_0x3bc2c8(0x3b0)]=_0x3bc2c8(0x392),_0x4ee04d))(_0x5926c5||{});class _0xa8a4b9{constructor(_0x107178,_0x4959cd,_0x1f7f91,_0x33b089,_0x255e1d,_0x40cf48,_0x470c01,_0x22209c,_0x301d64){const _0x5d1b03=_0x3bc2c8;_0x314dc6(this,_0x5d1b03(0x4e1),null),_0x314dc6(this,'_pendingMutations',[]),(this[_0x5d1b03(0x1b0)]=_0x107178,this[_0x5d1b03(0x413)]=_0x4959cd,this[_0x5d1b03(0x1f7)]=_0x255e1d,this[_0x5d1b03(0x2c6)]=_0x40cf48,this[_0x5d1b03(0x310)]=_0x470c01,this[_0x5d1b03(0x49a)]=_0x22209c,this['_localCacheService']=_0x301d64,this['_awaitingChangeset']=_0x1f7f91,this[_0x5d1b03(0x3e2)]=_0x33b089);}['_checkMissing'](_0x513164){const _0x1ff405=_0x3bc2c8,_0x1d495b=this[_0x1ff405(0x49a)][_0x1ff405(0x22d)](this[_0x1ff405(0x1b0)]);return _0x513164[_0x1ff405(0x1b1)]>_0x1d495b+0x1?(this[_0x1ff405(0x1f7)][_0x1ff405(0x514)]({'from':_0x1d495b,'to':_0x513164[_0x1ff405(0x1b1)]-0x1}),!0x0):!0x1;}[_0x3bc2c8(0x199)](_0x414360){const _0x1a190e=_0x3bc2c8;this[_0x1a190e(0x310)][_0x1a190e(0x1c6)](this[_0x1a190e(0x1b0)],_0x414360);}['_transformSelections'](_0x27927b){const _0x4760f9=_0x3bc2c8;var _0x1f4121,_0x201739;(_0x201739=(_0x1f4121=this[_0x4760f9(0x1f7)])[_0x4760f9(0x4b2)])==null||_0x201739[_0x4760f9(0x126)](_0x1f4121,_0x27927b);}[_0x3bc2c8(0x461)](_0xbeb817){const _0x27ce0b=_0x3bc2c8;var _0x55fb08,_0x2c23ff;return(_0x2c23ff=(_0x55fb08=this[_0x27ce0b(0x1f7)])[_0x27ce0b(0x1a9)])==null?void 0x0:_0x2c23ff['call'](_0x55fb08,_0xbeb817);}[_0x3bc2c8(0x3b2)](_0x5a637e){const _0xe1bb4a=_0x3bc2c8;var _0x14d300,_0x4508df,_0x3b8c81;return(_0x3b8c81=(_0x4508df=(_0x14d300=this[_0xe1bb4a(0x1f7)])[_0xe1bb4a(0x258)])==null?void 0x0:_0x4508df[_0xe1bb4a(0x126)](_0x14d300,_0x5a637e))!=null?_0x3b8c81:_0x5a637e;}[_0x3bc2c8(0x44a)](_0x9e0a33){const _0x51a77e=_0x3bc2c8;var _0x5360e0,_0xcebb28;if(this[_0x51a77e(0x413)]===_0x249560[_0x51a77e(0x3a6)]){const {unitID:_0x2014a6,mutations:_0x370dcd,memberID:_0x306380}=_0x9e0a33,_0x4d94e9=_0x370dcd[0x0][_0x51a77e(0x3c2)]['textRanges'];Array['isArray'](_0x4d94e9)&&_0x4d94e9[_0x51a77e(0x3d6)]>0x0&&((_0xcebb28=(_0x5360e0=this[_0x51a77e(0x1f7)])[_0x51a77e(0x2e0)])==null||_0xcebb28['call'](_0x5360e0,{'unitID':_0x2014a6,'memberID':_0x306380,'textRanges':_0x4d94e9}));}}[_0x3bc2c8(0x100)](){const _0x137635=_0x3bc2c8;this['_localCacheService'][_0x137635(0x4ee)](this[_0x137635(0x1b0)],this['type'],this[_0x137635(0x4e1)],this[_0x137635(0x3e2)]);}['_getCurrentRevision'](){const _0x33ffe7=_0x3bc2c8;return this[_0x33ffe7(0x49a)][_0x33ffe7(0x22d)](this[_0x33ffe7(0x1b0)]);}[_0x3bc2c8(0x393)](){const _0x373fcc=_0x3bc2c8;this[_0x373fcc(0x49a)][_0x373fcc(0x157)](this[_0x373fcc(0x1b0)]);}[_0x3bc2c8(0x350)](_0xa3dc7f){const _0x67958a=_0x3bc2c8;var _0x38b6fa;const _0x594c24=this['_transformRemoteChangesetByIMECache'](_0xa3dc7f),_0x31d86b=_0x5b7cfd[_0x67958a(0x16b)](_0x594c24[_0x67958a(0x1fc)],this[_0x67958a(0x2c6)],{'fromCollab':!0x0});if(!_0x31d86b['result'])throw _0x31d86b[_0x67958a(0x476)]instanceof Error?_0x31d86b['error']:new Error((_0x38b6fa=_0x31d86b[_0x67958a(0x476)])!=null?_0x38b6fa:_0x67958a(0x216));this[_0x67958a(0x461)](_0x594c24),this['_transformUndoredo'](_0xa3dc7f),this[_0x67958a(0x421)](_0x594c24),this[_0x67958a(0x44a)](_0x594c24),this[_0x67958a(0x393)]();}}let _0x5124ae=class extends _0xa8a4b9{constructor(_0x2cf784,_0xb7b634,_0x479646,_0x4babc5,_0x5581d3,_0x3e834a,_0x9da254,_0x5aa283,_0x3c4caf,_0x58023c){const _0x32f659=_0x3bc2c8;super(_0x2cf784,_0xb7b634,null,[],_0x479646,_0x5aa283,_0x9da254,_0x4babc5,_0x5581d3),_0x314dc6(this,_0x32f659(0x4ad),_0x32f659(0x11e)),(this['_injector']=_0x3e834a,this[_0x32f659(0x4e7)]=_0x3c4caf,this['_transformService']=_0x58023c);}[_0x3bc2c8(0x295)](_0xf9323d){const _0x45492b=_0x3bc2c8,_0x413863=this[_0x45492b(0x30f)][_0x45492b(0x1a3)](_0x5f4482,this[_0x45492b(0x1b0)],this[_0x45492b(0x413)],[_0xf9323d],this[_0x45492b(0x1f7)]);return _0x413863[_0x45492b(0x364)](),_0x413863[_0x45492b(0x100)](),_0x413863;}[_0x3bc2c8(0x384)](_0x1a2dfd){const _0x5a52ad=_0x3bc2c8;if(this['_checkMissing'](_0x1a2dfd))return this[_0x5a52ad(0x30f)][_0x5a52ad(0x1a3)](_0x75f119,this[_0x5a52ad(0x1b0)],this[_0x5a52ad(0x413)],null,[],null,[_0x1a2dfd],this[_0x5a52ad(0x1f7)]);try{const _0x138527=this[_0x5a52ad(0x3a1)][_0x5a52ad(0x4b8)](_0x1a2dfd,[_0x5844c5]);if(_0x56cbe4[_0x5a52ad(0x180)](_0x138527)){const {c1Prime:_0x158cc1}=_0x138527;return this[_0x5a52ad(0x350)](_0x158cc1),this;}throw _0x138527[_0x5a52ad(0x476)];}catch(_0x2ece6d){return this[_0x5a52ad(0x4e7)]['error'](_0x2ece6d),this['_onConflict'](!0x1);}}[_0x3bc2c8(0x2be)](_0x2d9bf9){const _0x101b73=_0x3bc2c8;return this[_0x101b73(0x30f)][_0x101b73(0x1a3)](_0x20ac70,this[_0x101b73(0x1b0)],this[_0x101b73(0x413)],null,[],this[_0x101b73(0x1f7)],_0x2d9bf9);}[_0x3bc2c8(0xf5)](){const _0x4b0257=_0x3bc2c8;throw new Error(_0x4b0257(0x137));}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x42f11c=_0x3bc2c8;return this[_0x42f11c(0x30f)][_0x42f11c(0x1a3)](_0x8646cf,this['unitID'],this[_0x42f11c(0x413)],null,[],this[_0x42f11c(0x1f7)]);}[_0x3bc2c8(0x20e)](){return this;}[_0x3bc2c8(0x423)](){const _0x3551ee=_0x3bc2c8;throw new Error(_0x3551ee(0x12f));}['fetchMiss'](){const _0x2c1ffb=_0x3bc2c8,_0x55bbfb=this[_0x2c1ffb(0x49a)][_0x2c1ffb(0x22d)](this[_0x2c1ffb(0x1b0)]);return this[_0x2c1ffb(0x1f7)]['onMissingChangesets']({'from':_0x55bbfb,'to':0x0}),this[_0x2c1ffb(0x30f)][_0x2c1ffb(0x1a3)](_0x75f119,this['unitID'],this[_0x2c1ffb(0x413)],null,[],null,[],this[_0x2c1ffb(0x1f7)]);}};_0x5124ae=_0x107b64([_0x45b06d(0x3,_0x5b7cfd['Inject'](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x45b06d(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x47d)])),_0x45b06d(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x45b06d(0x6,_0x5b7cfd[_0x3bc2c8(0x313)]),_0x45b06d(0x7,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x45b06d(0x9,_0x56cbe4[_0x3bc2c8(0x2ea)])],_0x5124ae);let _0x5f4482=class extends _0xa8a4b9{constructor(_0x46af10,_0x531f0e,_0x4ffd47,_0x5795fe,_0x427166,_0x2f2892,_0x15d815,_0x309bfb,_0x25670a,_0x4a0b74,_0x334f9f,_0x5b13c6,_0x1c30a9,_0x4bc876){const _0x5d6087=_0x3bc2c8;super(_0x46af10,_0x531f0e,null,_0x4ffd47,_0x5795fe,_0x4a0b74,_0x4bc876,_0x2f2892,_0x15d815),_0x314dc6(this,_0x5d6087(0x4ad),_0x5d6087(0x389)),_0x314dc6(this,_0x5d6087(0x430),null),_0x314dc6(this,_0x5d6087(0x32f),null),(this[_0x5d6087(0x30f)]=_0x427166,this[_0x5d6087(0x159)]=_0x309bfb,this[_0x5d6087(0x4e7)]=_0x25670a,this[_0x5d6087(0x4cb)]=_0x334f9f,this[_0x5d6087(0x3a1)]=_0x5b13c6,this[_0x5d6087(0x10b)]=_0x1c30a9);}[_0x3bc2c8(0x295)](_0x440a67){return this['_pendingMutations']['push'](_0x440a67),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x323a16){const _0xadd395=_0x3bc2c8;if(this[_0xadd395(0x36f)](_0x323a16))return this['_clearScheduledTask'](),this[_0xadd395(0x30f)]['createInstance'](_0x75f119,this[_0xadd395(0x1b0)],this[_0xadd395(0x413)],null,this['_pendingMutations'],null,[_0x323a16],this['_handler']);try{const _0x457f3d=this[_0xadd395(0x3a1)][_0xadd395(0x4b8)](_0x323a16,this[_0xadd395(0x3e2)]);if(_0x56cbe4[_0xadd395(0x180)](_0x457f3d)){const {c1Prime:_0x1581ba,m2Prime:_0x1b46ff}=_0x457f3d;this['_executeRemoteChangeset'](_0x1581ba);const _0x312ad4=this[_0xadd395(0x30f)]['createInstance'](_0x5f4482,this[_0xadd395(0x1b0)],this[_0xadd395(0x413)],_0x1b46ff,this[_0xadd395(0x1f7)]);return this['_clearScheduledTask'](),_0x312ad4[_0xadd395(0x364)](this[_0xadd395(0x430)]?Math[_0xadd395(0x26a)](0x0,new Date()[_0xadd395(0x3f3)]()-this[_0xadd395(0x430)]):this['_getSendChangesetTimeout']()),_0x312ad4;}throw _0x457f3d[_0xadd395(0x476)];}catch(_0x1de043){return this[_0xadd395(0x4e7)]['error'](_0x1de043),this[_0xadd395(0x2be)](!0x1);}}[_0x3bc2c8(0xf5)](){const _0x129a5d=_0x3bc2c8;throw new Error(_0x129a5d(0x43b));}[_0x3bc2c8(0x38f)](){const _0x486359=_0x3bc2c8;throw new Error(_0x486359(0x25a));}['toggleOffline'](){const _0x2c7f09=_0x3bc2c8;return this[_0x2c7f09(0x2a8)](),this[_0x2c7f09(0x30f)][_0x2c7f09(0x1a3)](_0x8646cf,this[_0x2c7f09(0x1b0)],this[_0x2c7f09(0x413)],null,this[_0x2c7f09(0x3e2)],this[_0x2c7f09(0x1f7)]);}[_0x3bc2c8(0x20e)](){return this;}['_schedule'](_0x31792b){const _0x41a8b1=_0x3bc2c8,_0x52aade=_0x31792b!=null?_0x31792b:this[_0x41a8b1(0x4fc)]();this[_0x41a8b1(0x430)]=new Date()[_0x41a8b1(0x3f3)](),this[_0x41a8b1(0x32f)]=window[_0x41a8b1(0x19f)](()=>{const _0x4be336=_0x41a8b1;this[_0x4be336(0x2a8)]();let _0x3983ad=null;switch(this[_0x4be336(0x413)]){case _0x249560[_0x4be336(0x301)]:{_0x3983ad=_0x23aaad(this['_pendingMutations'],this[_0x4be336(0x1b0)],this[_0x4be336(0x10b)],this['_revisionService'],this[_0x4be336(0x159)]);break;}case _0x249560['UNIVER_DOC']:{this[_0x4be336(0x3e2)][_0x4be336(0x201)](_0x2550ee=>_0x2550ee['id']===_0x3e2148[_0x4be336(0x368)]['id'])?_0x3983ad=_0x581ccf(this[_0x4be336(0x3e2)],this['unitID'],this[_0x4be336(0x10b)],this[_0x4be336(0x49a)],this[_0x4be336(0x159)]):_0x3983ad=_0x23aaad(this['_pendingMutations'],this['unitID'],this[_0x4be336(0x10b)],this['_revisionService'],this[_0x4be336(0x159)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x4be336(0x413)]+'\x20in\x20_schedule.');}const {changeset:_0x35c3d3,pendingMutations:_0x18b4ae}=_0x3983ad;this[_0x4be336(0x1f7)][_0x4be336(0x3d5)](_0x35c3d3);const _0x2f9502=_0x18b4ae[_0x4be336(0x3d6)]?this['_injector'][_0x4be336(0x1a3)](_0x22cc58,this[_0x4be336(0x1b0)],this['type'],_0x35c3d3,_0x18b4ae,this[_0x4be336(0x1f7)]):this[_0x4be336(0x30f)][_0x4be336(0x1a3)](_0x3cd767,this[_0x4be336(0x1b0)],this[_0x4be336(0x413)],_0x35c3d3,this[_0x4be336(0x1f7)]);_0x2f9502[_0x4be336(0x100)](),this[_0x4be336(0x1f7)][_0x4be336(0x311)](this,_0x2f9502);},_0x52aade);}[_0x3bc2c8(0x4fc)](){const _0x2fb5a6=_0x3bc2c8;var _0x122a7a;const _0xa13b0b=this[_0x2fb5a6(0x4cb)]['getConfig'](_0xa50aed);return(_0x122a7a=_0xa13b0b==null?void 0x0:_0xa13b0b[_0x2fb5a6(0x42b)])!=null?_0x122a7a:0x7d0;}['resend'](){const _0x5f3889=_0x3bc2c8;throw new Error(_0x5f3889(0x4af));}[_0x3bc2c8(0x2a8)](){const _0x1505e9=_0x3bc2c8;this['_sendingTimer']!=null&&(clearTimeout(this[_0x1505e9(0x32f)]),this['_sendingTimer']=null);}['_onConflict'](_0x3467db){const _0x3710d4=_0x3bc2c8;return this[_0x3710d4(0x2a8)](),this[_0x3710d4(0x30f)]['createInstance'](_0x20ac70,this[_0x3710d4(0x1b0)],this[_0x3710d4(0x413)],null,this[_0x3710d4(0x3e2)],this[_0x3710d4(0x1f7)],_0x3467db);}};_0x5f4482=_0x107b64([_0x45b06d(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x45b06d(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x45b06d(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e['LocalCacheService'])),_0x45b06d(0x7,_0x5b7cfd['Inject'](_0x587d5a)),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x45b06d(0x9,_0x5b7cfd['ICommandService']),_0x45b06d(0xa,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x45b06d(0xb,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x45b06d(0xc,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x45b06d(0xd,_0x5b7cfd[_0x3bc2c8(0x313)])],_0x5f4482);let _0x3cd767=class extends _0xa8a4b9{constructor(_0x531107,_0x5a6253,_0x3b2f4e,_0x406d7a,_0x2011ad,_0x190bf6,_0x27a2a3,_0x11a400,_0x10d5f2,_0x59ba25,_0x14266d){const _0x23614f=_0x3bc2c8;super(_0x531107,_0x5a6253,_0x3b2f4e,[],_0x406d7a,_0x11a400,_0x14266d,_0x190bf6,_0x27a2a3),_0x314dc6(this,'status','awaiting'),(this['_injector']=_0x2011ad,this[_0x23614f(0x4e7)]=_0x10d5f2,this[_0x23614f(0x3a1)]=_0x59ba25);}[_0x3bc2c8(0x295)](_0x2ac3ce){const _0xc70673=_0x3bc2c8,_0x145a33=this[_0xc70673(0x30f)]['createInstance'](_0x22cc58,this[_0xc70673(0x1b0)],this['type'],this[_0xc70673(0x4e1)],[_0x2ac3ce],this[_0xc70673(0x1f7)]);return _0x145a33['_updateLocalCache'](),_0x145a33;}[_0x3bc2c8(0x384)](_0xf8e6){const _0x189aaa=_0x3bc2c8;if(this[_0x189aaa(0x36f)](_0xf8e6))return this[_0x189aaa(0x30f)]['createInstance'](_0x75f119,this[_0x189aaa(0x1b0)],this[_0x189aaa(0x413)],this['_awaitingChangeset'],[],null,[_0xf8e6],this[_0x189aaa(0x1f7)]);try{const _0x1a905f=this['_transformService'][_0x189aaa(0x175)]([_0xf8e6],[this[_0x189aaa(0x4e1)]],!0x1);if(_0x56cbe4['isTransformChangesetsSuccess'](_0x1a905f)){const {c1Prime:_0x59a6c1,c2Prime:_0xbd6a85}=_0x1a905f;this[_0x189aaa(0x350)](_0x59a6c1[0x0]),_0xbd6a85[0x0][_0x189aaa(0x143)]=this[_0x189aaa(0x21c)]();const _0x1e5f41=this[_0x189aaa(0x30f)][_0x189aaa(0x1a3)](_0x3cd767,this[_0x189aaa(0x1b0)],this[_0x189aaa(0x413)],_0xbd6a85[0x0],this[_0x189aaa(0x1f7)]);return _0x1e5f41[_0x189aaa(0x100)](),_0x1e5f41;}return this[_0x189aaa(0x2be)](!0x1);}catch(_0x191ed2){return this[_0x189aaa(0x4e7)]['error'](_0x191ed2),this[_0x189aaa(0x2be)](!0x1);}}[_0x3bc2c8(0xf5)](_0x1e1d56){const _0x19b2dd=_0x3bc2c8,_0x202927=this[_0x19b2dd(0x49a)]['getCurrentRevOfUnit'](this[_0x19b2dd(0x1b0)]);if(_0x1e1d56['revision']<_0x202927-0x1)return this;if(this['_checkMissing'](_0x1e1d56))return this[_0x19b2dd(0x30f)]['createInstance'](_0x75f119,this[_0x19b2dd(0x1b0)],this[_0x19b2dd(0x413)],null,[],this[_0x19b2dd(0x4e1)],[],this['_handler']);this[_0x19b2dd(0x393)]();const _0x501f1c=this[_0x19b2dd(0x30f)][_0x19b2dd(0x1a3)](_0x5124ae,this[_0x19b2dd(0x1b0)],this[_0x19b2dd(0x413)],this[_0x19b2dd(0x1f7)]);return _0x501f1c[_0x19b2dd(0x100)](),_0x501f1c;}[_0x3bc2c8(0x38f)](_0x4e1176){const _0x2351d7=_0x3bc2c8;return this[_0x2351d7(0x2be)](!!(_0x4e1176!=null&&_0x4e1176[_0x2351d7(0x30a)]));}[_0x3bc2c8(0x495)](){const _0x2a81e2=_0x3bc2c8;return this['_injector']['createInstance'](_0x8646cf,this[_0x2a81e2(0x1b0)],this['type'],this[_0x2a81e2(0x4e1)],[],this[_0x2a81e2(0x1f7)]);}[_0x3bc2c8(0x20e)](){return this;}['resend'](){const _0x23d279=_0x3bc2c8;this[_0x23d279(0x1f7)][_0x23d279(0x3d5)](this[_0x23d279(0x4e1)]);}[_0x3bc2c8(0x2be)](_0x2f36a9){const _0xbd5355=_0x3bc2c8;return this[_0xbd5355(0x30f)][_0xbd5355(0x1a3)](_0x20ac70,this[_0xbd5355(0x1b0)],this[_0xbd5355(0x413)],this[_0xbd5355(0x4e1)],[],this[_0xbd5355(0x1f7)],_0x2f36a9);}};_0x3cd767=_0x107b64([_0x45b06d(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['Injector'])),_0x45b06d(0x5,_0x5b7cfd['Inject'](_0x56cbe4['RevisionService'])),_0x45b06d(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x47d)])),_0x45b06d(0x7,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x45b06d(0x9,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x45b06d(0xa,_0x5b7cfd['IUndoRedoService'])],_0x3cd767);let _0x22cc58=class extends _0xa8a4b9{constructor(_0x59bf00,_0x1484f5,_0x92683b,_0x199bd8,_0xd01006,_0x39a265,_0x215c2b,_0x17d48f,_0x944381,_0x9190f0,_0x550378,_0x1e33d0){const _0x5ba40c=_0x3bc2c8;super(_0x59bf00,_0x1484f5,_0x92683b,_0x199bd8,_0xd01006,_0x944381,_0x1e33d0,_0x215c2b,_0x17d48f),_0x314dc6(this,_0x5ba40c(0x4ad),_0x5ba40c(0x41a)),(this[_0x5ba40c(0x30f)]=_0x39a265,this['_logService']=_0x9190f0,this['_transformService']=_0x550378);}[_0x3bc2c8(0x295)](_0x24e649){const _0x813a6f=_0x3bc2c8;return this[_0x813a6f(0x3e2)][_0x813a6f(0x13d)](_0x24e649),this;}[_0x3bc2c8(0x384)](_0x3afded){const _0x4c8613=_0x3bc2c8;if(this[_0x4c8613(0x36f)](_0x3afded))return this[_0x4c8613(0x30f)][_0x4c8613(0x1a3)](_0x75f119,this[_0x4c8613(0x1b0)],this['type'],this[_0x4c8613(0x4e1)],this[_0x4c8613(0x3e2)],null,[_0x3afded],this[_0x4c8613(0x1f7)]);try{const _0x389d42=this[_0x4c8613(0x3a1)][_0x4c8613(0x175)]([_0x3afded],[this[_0x4c8613(0x4e1)]],!0x1);if(_0x56cbe4['isTransformChangesetsSuccess'](_0x389d42)){const {c1Prime:_0x4e491b,c2Prime:_0x13cb9f}=_0x389d42,_0x3c6ef5=this[_0x4c8613(0x3a1)][_0x4c8613(0x4b8)](_0x4e491b[0x0],this['_pendingMutations']);if(_0x56cbe4[_0x4c8613(0x180)](_0x3c6ef5)){const {c1Prime:_0x202685,m2Prime:_0x47e621}=_0x3c6ef5;return this[_0x4c8613(0x350)](_0x202685),_0x13cb9f[0x0][_0x4c8613(0x143)]=this[_0x4c8613(0x21c)](),this['_injector']['createInstance'](_0x22cc58,this[_0x4c8613(0x1b0)],this[_0x4c8613(0x413)],_0x13cb9f[0x0],_0x47e621,this[_0x4c8613(0x1f7)]);}throw _0x3c6ef5[_0x4c8613(0x476)];}throw _0x389d42[_0x4c8613(0x476)];}catch(_0x24d1b7){return this[_0x4c8613(0x4e7)][_0x4c8613(0x476)](_0x24d1b7),this[_0x4c8613(0x2be)](!0x1);}}[_0x3bc2c8(0xf5)](_0x2e8e9c){const _0xe46b8c=_0x3bc2c8;if(this['_checkMissing'](_0x2e8e9c))return this[_0xe46b8c(0x30f)]['createInstance'](_0x75f119,this['unitID'],this[_0xe46b8c(0x413)],null,this[_0xe46b8c(0x3e2)],this[_0xe46b8c(0x4e1)],[],this['_handler']);this[_0xe46b8c(0x393)]();const _0x96419=this[_0xe46b8c(0x30f)][_0xe46b8c(0x1a3)](_0x5f4482,this[_0xe46b8c(0x1b0)],this[_0xe46b8c(0x413)],this[_0xe46b8c(0x3e2)],this[_0xe46b8c(0x1f7)]);return _0x96419[_0xe46b8c(0x364)](),_0x96419[_0xe46b8c(0x100)](),_0x96419;}['onRemoteRej'](_0x311f22){const _0x230ed0=_0x3bc2c8;return this[_0x230ed0(0x2be)](!!(_0x311f22!=null&&_0x311f22['isPermissionRej']));}['toggleOffline'](){const _0x481682=_0x3bc2c8;return this[_0x481682(0x30f)][_0x481682(0x1a3)](_0x8646cf,this[_0x481682(0x1b0)],this[_0x481682(0x413)],this['_awaitingChangeset'],this[_0x481682(0x3e2)],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x9abe91=_0x3bc2c8;this[_0x9abe91(0x1f7)][_0x9abe91(0x3d5)](this[_0x9abe91(0x4e1)]);}[_0x3bc2c8(0x2be)](_0xb0eff0){const _0x35bf37=_0x3bc2c8;return this[_0x35bf37(0x30f)][_0x35bf37(0x1a3)](_0x20ac70,this[_0x35bf37(0x1b0)],this[_0x35bf37(0x413)],null,this['_pendingMutations'],this['_handler'],_0xb0eff0);}};_0x22cc58=_0x107b64([_0x45b06d(0x5,_0x5b7cfd['Inject'](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x45b06d(0x6,_0x5b7cfd['Inject'](_0x56cbe4['RevisionService'])),_0x45b06d(0x7,_0x5b7cfd['Inject'](_0x48e51e[_0x3bc2c8(0x47d)])),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x45b06d(0x9,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x45b06d(0xa,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x45b06d(0xb,_0x5b7cfd[_0x3bc2c8(0x313)])],_0x22cc58);let _0x20ac70=class extends _0xa8a4b9{constructor(_0x50a852,_0x4d4c73,_0x516984,_0x398c67,_0x566555,_0x4d5b35=!0x1,_0x160455,_0xcae5a9,_0x4ef7c3,_0x54efa7,_0x20c2e9,_0x4c8116,_0x3e9ffb){const _0x32e3d0=_0x3bc2c8;super(_0x50a852,_0x4d4c73,_0x516984,_0x398c67,_0x566555,_0xcae5a9,_0x4ef7c3,_0x20c2e9,_0x54efa7),_0x314dc6(this,_0x32e3d0(0x4ad),_0x32e3d0(0x209)),(this[_0x32e3d0(0x338)]=_0x4d5b35,this['_permissionService']=_0x160455,this[_0x32e3d0(0x24c)]=_0x4c8116,this['_notificationService']=_0x3e9ffb,this[_0x32e3d0(0x4e4)](),this[_0x32e3d0(0x43a)](),this[_0x32e3d0(0x11a)]());}['appendMutation'](){return this;}[_0x3bc2c8(0x384)](){return this;}[_0x3bc2c8(0xf5)](){return this;}[_0x3bc2c8(0x38f)](){return this;}['toggleOffline'](){return this;}[_0x3bc2c8(0x20e)](){return this;}[_0x3bc2c8(0x423)](){const _0x5a7e9d=_0x3bc2c8;throw new Error(_0x5a7e9d(0x1d7));}[_0x3bc2c8(0x43a)](){const _0x66db09=_0x3bc2c8;this[_0x66db09(0x3bf)][_0x66db09(0x4ee)](this[_0x66db09(0x1b0)],this[_0x66db09(0x413)],null,[]);}['_showConflictNotification'](){const _0x260573=_0x3bc2c8;this[_0x260573(0x338)]?this[_0x260573(0x29a)]['show']({'title':this[_0x260573(0x24c)]['t'](_0x260573(0x33b)),'content':this[_0x260573(0x24c)]['t'](_0x260573(0x406)),'type':_0x260573(0x476),'duration':0x0}):this[_0x260573(0x29a)][_0x260573(0x29f)]({'title':this[_0x260573(0x24c)]['t']('conflict.title'),'content':this[_0x260573(0x24c)]['t'](_0x260573(0x49f)),'type':_0x260573(0x476),'duration':0x0});}[_0x3bc2c8(0x11a)](){const _0x5e9a34=_0x3bc2c8;this[_0x5e9a34(0x106)][_0x5e9a34(0x37a)](new _0xa62622['WorkbookEditablePermission'](this[_0x5e9a34(0x1b0)])['id'],!0x1);}};_0x20ac70=_0x107b64([_0x45b06d(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x342)])),_0x45b06d(0x7,_0x5b7cfd['ICommandService']),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x313)]),_0x45b06d(0x9,_0x5b7cfd['Inject'](_0x48e51e[_0x3bc2c8(0x47d)])),_0x45b06d(0xa,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x45b06d(0xb,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x385)])),_0x45b06d(0xc,_0x2ce95d[_0x3bc2c8(0x2c3)])],_0x20ac70);let _0x8646cf=class extends _0xa8a4b9{constructor(_0x233d32,_0x417e93,_0x3ab169,_0x20dbb7,_0x4488ac,_0x1b0954,_0xe45562,_0x4ec367,_0xd5b502,_0x4f2055){super(_0x233d32,_0x417e93,_0x3ab169,_0x20dbb7,_0x4488ac,_0xd5b502,_0x4f2055,_0xe45562,_0x4ec367),_0x314dc6(this,'status','offline'),this['_injector']=_0x1b0954;}['appendMutation'](_0x59b588){const _0x115cb3=_0x3bc2c8;return this[_0x115cb3(0x3e2)][_0x115cb3(0x13d)](_0x59b588),this[_0x115cb3(0x100)](),this;}[_0x3bc2c8(0x384)](_0x43afbe){const _0xfbcceb=_0x3bc2c8;throw new Error(_0xfbcceb(0x2a3));}[_0x3bc2c8(0xf5)](){const _0x441481=_0x3bc2c8;throw new Error(_0x441481(0x41d));}[_0x3bc2c8(0x38f)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x3bc2c8(0x495)](){return this;}[_0x3bc2c8(0x20e)](){const _0x5bf9dc=_0x3bc2c8,{_injector:_0x1b8cb6,_pendingMutations:_0x4247b2,_awaitingChangeset:_0x2fde7f,unitID:_0x52200c,_handler:_0x19f373,type:_0x29abe6}=this,_0x3b373e=_0x3d51b3(_0x1b8cb6,_0x52200c,_0x29abe6,_0x2fde7f,_0x4247b2,_0x19f373);return _0x3b373e instanceof _0x5f4482?_0x3b373e[_0x5bf9dc(0x364)]():(_0x3b373e instanceof _0x22cc58||_0x3b373e instanceof _0x3cd767)&&_0x3b373e[_0x5bf9dc(0x423)](),_0x3b373e;}[_0x3bc2c8(0x423)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x8646cf=_0x107b64([_0x45b06d(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x45b06d(0x6,_0x5b7cfd['Inject'](_0x56cbe4['RevisionService'])),_0x45b06d(0x7,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e['LocalCacheService'])),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x45b06d(0x9,_0x5b7cfd[_0x3bc2c8(0x313)])],_0x8646cf);let _0x75f119=class extends _0xa8a4b9{constructor(_0x330eec,_0xe7870b,_0x2d3642,_0xc74994,_0x2fd6fa,_0x1fbce8,_0x4abaf1,_0x4a7802,_0x2933ac,_0x129c6e,_0x27a531,_0x100628,_0x464f32,_0x34a5cd){const _0x113dd2=_0x3bc2c8;super(_0x330eec,_0xe7870b,_0x2d3642,_0xc74994,_0x4abaf1,_0x100628,_0x464f32,_0x2933ac,_0x129c6e),_0x314dc6(this,_0x113dd2(0x4ad),'fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x2fd6fa,this[_0x113dd2(0x189)]=_0x1fbce8,this[_0x113dd2(0x30f)]=_0x4a7802,this[_0x113dd2(0x4e7)]=_0x27a531,this[_0x113dd2(0x3a1)]=_0x34a5cd);}[_0x3bc2c8(0x42e)](_0x2026a0){const _0x489b8a=_0x3bc2c8;try{const _0x401404=[..._0x2026a0,...this['_queuedRemoteChangesets']],_0x328cde=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']][_0x489b8a(0x3b6)](_0x39916b=>!!_0x39916b);let _0x2917d4,_0x2575e6;if(_0x328cde[_0x489b8a(0x3d6)]){const _0x316b63=this[_0x489b8a(0x3a1)][_0x489b8a(0x175)](_0x401404,_0x328cde,!0x1);if(!_0x56cbe4[_0x489b8a(0x3c8)](_0x316b63))throw _0x316b63['error'];_0x2917d4=_0x316b63[_0x489b8a(0x1c9)],_0x2575e6=_0x316b63[_0x489b8a(0x191)];}else _0x2917d4=_0x401404,_0x2575e6=[];let _0x1dc054=this[_0x489b8a(0x3e2)];_0x2917d4[_0x489b8a(0x255)](_0x133760=>{const _0x4da725=_0x489b8a;let _0x2032fc;if(_0x1dc054[_0x4da725(0x3d6)]){const _0x183563=this['_transformService'][_0x4da725(0x4b8)](_0x133760,_0x1dc054);if(!_0x56cbe4['isTransformMutationsWithChangesetSuccess'](_0x183563))throw _0x183563[_0x4da725(0x476)];_0x2032fc=_0x183563[_0x4da725(0x1c9)],_0x1dc054=_0x183563['m2Prime'];}else _0x2032fc=_0x133760;this['_executeRemoteChangeset'](_0x2032fc);}),this[_0x489b8a(0x45f)]&&this[_0x489b8a(0x393)](),this[_0x489b8a(0x4e1)]&&_0x2575e6[_0x489b8a(0x3d6)]&&(_0x2575e6[0x0]['baseRev']=this[_0x489b8a(0x21c)]());let _0x2afaba;if(this[_0x489b8a(0x4e1)]&&_0x1dc054[_0x489b8a(0x3d6)]!==0x0)_0x2afaba=this[_0x489b8a(0x30f)][_0x489b8a(0x1a3)](_0x22cc58,this[_0x489b8a(0x1b0)],this['type'],_0x2575e6[0x0],_0x1dc054,this[_0x489b8a(0x1f7)]);else{if(this[_0x489b8a(0x4e1)]&&_0x1dc054[_0x489b8a(0x3d6)]===0x0)_0x2575e6[0x0]['baseRev']=this[_0x489b8a(0x21c)](),_0x2afaba=this['_injector'][_0x489b8a(0x1a3)](_0x3cd767,this[_0x489b8a(0x1b0)],this[_0x489b8a(0x413)],_0x2575e6[0x0],this['_handler']);else{if(_0x1dc054[_0x489b8a(0x3d6)]!==0x0){const _0xdc773c=this['_injector']['createInstance'](_0x5f4482,this[_0x489b8a(0x1b0)],this['type'],_0x1dc054,this[_0x489b8a(0x1f7)]);_0xdc773c[_0x489b8a(0x364)](),_0x2afaba=_0xdc773c;}else _0x2afaba=this[_0x489b8a(0x30f)]['createInstance'](_0x5124ae,this[_0x489b8a(0x1b0)],this[_0x489b8a(0x413)],this[_0x489b8a(0x1f7)]);}}return _0x2afaba[_0x489b8a(0x100)](),_0x2afaba;}catch(_0x4d3adc){return this['_logService']['error'](_0x489b8a(0x513),_0x489b8a(0x12d),_0x4d3adc),this[_0x489b8a(0x30f)][_0x489b8a(0x1a3)](_0x20ac70,this[_0x489b8a(0x1b0)],this[_0x489b8a(0x413)],this[_0x489b8a(0x4e1)],this[_0x489b8a(0x3e2)],this[_0x489b8a(0x1f7)],!0x1);}}[_0x3bc2c8(0x423)](){const _0x1b9ab9=_0x3bc2c8;throw new Error(_0x1b9ab9(0x4d0));}['appendMutation'](_0x33b2dd){const _0x1ed4ae=_0x3bc2c8;return this[_0x1ed4ae(0x3e2)][_0x1ed4ae(0x13d)](_0x33b2dd),this;}[_0x3bc2c8(0x384)](_0x20714b){const _0x36afbf=_0x3bc2c8;return this[_0x36afbf(0x189)]['push'](_0x20714b),this;}[_0x3bc2c8(0xf5)](_0x3f0d5e){const _0x59243b=_0x3bc2c8;if(this['_awaitingChangeset'])return this[_0x59243b(0x45f)]=this[_0x59243b(0x4e1)],this[_0x59243b(0x4e1)]=null,this;throw new Error(_0x59243b(0x4fe));}[_0x3bc2c8(0x38f)](_0x133898){const _0x4a696c=_0x3bc2c8;return this['_onConflict'](!!(_0x133898!=null&&_0x133898[_0x4a696c(0x30a)]));}[_0x3bc2c8(0x495)](){const _0x1a12fa=_0x3bc2c8;return this[_0x1a12fa(0x30f)][_0x1a12fa(0x1a3)](_0x8646cf,this[_0x1a12fa(0x1b0)],this[_0x1a12fa(0x413)],this[_0x1a12fa(0x4e1)],this[_0x1a12fa(0x3e2)],this[_0x1a12fa(0x1f7)]);}['toggleOnline'](){return this;}[_0x3bc2c8(0x2be)](_0x2ef059){const _0x4c5517=_0x3bc2c8;return this[_0x4c5517(0x30f)][_0x4c5517(0x1a3)](_0x20ac70,this[_0x4c5517(0x1b0)],this[_0x4c5517(0x413)],this[_0x4c5517(0x4e1)],this[_0x4c5517(0x3e2)],this[_0x4c5517(0x1f7)],_0x2ef059);}};_0x75f119=_0x107b64([_0x45b06d(0x7,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x45b06d(0x8,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x45b06d(0x9,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x47d)])),_0x45b06d(0xa,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x45b06d(0xb,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x45b06d(0xc,_0x5b7cfd[_0x3bc2c8(0x313)]),_0x45b06d(0xd,_0x56cbe4[_0x3bc2c8(0x2ea)])],_0x75f119);function _0x3d51b3(_0x23d7f0,_0x42e99c,_0x51cf12,_0x30a137,_0x398708,_0x146776){const _0x436e3e=_0x3bc2c8;return _0x30a137&&_0x398708['length']?_0x23d7f0[_0x436e3e(0x1a3)](_0x22cc58,_0x42e99c,_0x51cf12,_0x30a137,_0x398708,_0x146776):_0x30a137?_0x23d7f0[_0x436e3e(0x1a3)](_0x3cd767,_0x42e99c,_0x51cf12,_0x30a137,_0x146776):_0x398708[_0x436e3e(0x3d6)]?_0x23d7f0['createInstance'](_0x5f4482,_0x42e99c,_0x51cf12,_0x398708,_0x146776):_0x23d7f0[_0x436e3e(0x1a3)](_0x5124ae,_0x42e99c,_0x51cf12,_0x146776);}var _0x33d66a=Object[_0x3bc2c8(0x361)],_0x48ab0e=Object[_0x3bc2c8(0x48b)],_0xedaaab=(_0x3c9a18,_0x51f08f,_0x145830,_0x40adc4)=>{for(var _0x325f1d=_0x40adc4>0x1?void 0x0:_0x40adc4?_0x48ab0e(_0x51f08f,_0x145830):_0x51f08f,_0x36e851=_0x3c9a18['length']-0x1,_0x2df619;_0x36e851>=0x0;_0x36e851--)(_0x2df619=_0x3c9a18[_0x36e851])&&(_0x325f1d=(_0x40adc4?_0x2df619(_0x51f08f,_0x145830,_0x325f1d):_0x2df619(_0x325f1d))||_0x325f1d);return _0x40adc4&&_0x325f1d&&_0x33d66a(_0x51f08f,_0x145830,_0x325f1d),_0x325f1d;},_0x2ca542=(_0x53c105,_0x453f10)=>(_0x59aa67,_0xd94d6c)=>_0x453f10(_0x59aa67,_0xd94d6c,_0x53c105);_0x48e51e[_0x3bc2c8(0x193)]=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x27a9df,_0x36af83,_0x10a1f3,_0xedf0bb,_0x4eb5ed,_0x3f3ce3,_0x2b04a4,_0x2f9226,_0x301193,_0x126945,_0x1700ae,_0x3f0115,_0x25b03b){const _0x7b85df=_0x3bc2c8;super(),_0x314dc6(this,_0x7b85df(0x503),new _0x266483[(_0x7b85df(0x43e))](null)),_0x314dc6(this,_0x7b85df(0x1e5),this[_0x7b85df(0x503)][_0x7b85df(0x4eb)]()),_0x314dc6(this,'_state'),_0x314dc6(this,_0x7b85df(0x39f),!0x1),_0x314dc6(this,_0x7b85df(0x294),this['state$'][_0x7b85df(0x198)](_0x266483[_0x7b85df(0x39c)](_0x4bbe88=>_0x4bbe88?_0x4bbe88['status']:_0x5926c5[_0x7b85df(0x3b0)]),_0x266483['shareReplay'](0x1))),_0x314dc6(this,_0x7b85df(0x3cd),!0x1),_0x314dc6(this,_0x7b85df(0x229),[]),(this[_0x7b85df(0x1b0)]=_0x27a9df,this[_0x7b85df(0x3d7)]=_0x36af83,this[_0x7b85df(0x251)]=_0x10a1f3,this[_0x7b85df(0x30f)]=_0xedf0bb,this['_localCacheService']=_0x4eb5ed,this[_0x7b85df(0x2a4)]=_0x3f3ce3,this[_0x7b85df(0x24c)]=_0x2b04a4,this[_0x7b85df(0x49a)]=_0x2f9226,this[_0x7b85df(0x4e7)]=_0x301193,this[_0x7b85df(0x2c6)]=_0x126945,this[_0x7b85df(0x1d6)]=_0x1700ae,this[_0x7b85df(0x106)]=_0x3f0115,this[_0x7b85df(0x139)]=_0x25b03b);}get[_0x3bc2c8(0x214)](){const _0x57cf01=_0x3bc2c8;return this[_0x57cf01(0x2b3)];}async[_0x3bc2c8(0x341)](){const _0x2473e8=_0x3bc2c8;if(this[_0x2473e8(0x214)])throw new Error(_0x2473e8(0xd8));await this['_init']();}[_0x3bc2c8(0x165)](){const _0x397fbd=_0x3bc2c8;return this[_0x397fbd(0x39f)]=!0x0,_0x5b7cfd[_0x397fbd(0x3d9)](()=>{const _0x445800=_0x397fbd;this[_0x445800(0x39f)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x532080){const _0x20eac3=_0x3bc2c8;this[_0x20eac3(0x2b3)]=_0x532080,this[_0x20eac3(0x503)][_0x20eac3(0xe4)](_0x532080);}async['_init'](){const _0x498ddb=_0x3bc2c8;var _0x192934;this[_0x498ddb(0x25e)](await this[_0x498ddb(0x3ed)]()),this[_0x498ddb(0x139)]&&((_0x192934=this[_0x498ddb(0x139)])==null||_0x192934['editingUnit'](this['unitID']),this['disposeWithMe'](this[_0x498ddb(0x139)][_0x498ddb(0x112)](this[_0x498ddb(0x1b0)])[_0x498ddb(0x2f5)](_0x462b20=>{const _0x58d2aa=_0x498ddb;this[_0x58d2aa(0x4e7)][_0x58d2aa(0x46f)](_0x58d2aa(0x3ab),_0x58d2aa(0x292),_0x462b20),_0x462b20===_0x695cf2[_0x58d2aa(0x3de)]?(this['_messageService'][_0x58d2aa(0x29f)]({'content':this[_0x58d2aa(0x24c)]['t'](_0x58d2aa(0x398)),'type':_0x4466a1[_0x58d2aa(0x185)][_0x58d2aa(0x1f8)]}),this[_0x58d2aa(0x106)][_0x58d2aa(0x37a)](new _0xa62622['WorkbookEditablePermission'](this[_0x58d2aa(0x1b0)])['id'],!0x1)):this[_0x58d2aa(0x106)]['updatePermissionPoint'](new _0xa62622[(_0x58d2aa(0x4cf))](this[_0x58d2aa(0x1b0)])['id'],!0x0);})));let _0x27ce9d=!0x1;return this[_0x498ddb(0x131)](this[_0x498ddb(0x3d7)][_0x498ddb(0x509)][_0x498ddb(0x2f5)](_0x3c0b6b=>{const _0x2ce2ef=_0x498ddb;_0x3c0b6b===_0x2d9d4e[_0x2ce2ef(0x322)]?this['_toggleOnline'](_0x27ce9d):_0x3c0b6b===_0x2d9d4e[_0x2ce2ef(0x3b0)]&&(_0x27ce9d=!0x0,this['_toggleOffline']());})),this[_0x498ddb(0x131)](this[_0x498ddb(0x3d7)][_0x498ddb(0x164)][_0x498ddb(0x2f5)](_0x2e66f4=>{const _0x593f8c=_0x498ddb;try{switch(_0x2e66f4[_0x593f8c(0xe1)]){case _0x56cbe4[_0x593f8c(0x484)][_0x593f8c(0x455)]:{this[_0x593f8c(0x261)](_0x56cbe4[_0x593f8c(0x242)](_0x2e66f4[_0x593f8c(0x2db)]));break;}case _0x56cbe4[_0x593f8c(0x484)][_0x593f8c(0x4f7)]:{this[_0x593f8c(0x24f)](_0x2e66f4[_0x593f8c(0x2db)]);break;}case _0x56cbe4[_0x593f8c(0x484)][_0x593f8c(0x4c3)]:{this[_0x593f8c(0x359)]();break;}case _0x56cbe4[_0x593f8c(0x484)][_0x593f8c(0x23c)]:{this[_0x593f8c(0x11d)](_0x2e66f4['data']['changesets'][_0x593f8c(0x39c)](_0x19cbe0=>_0x56cbe4[_0x593f8c(0x242)](_0x19cbe0)));break;}case _0x56cbe4[_0x593f8c(0x484)][_0x593f8c(0x41b)]:this[_0x593f8c(0x359)]({'isPermissionRej':!0x0});}}catch(_0x2f5c40){throw console[_0x593f8c(0x476)](_0x593f8c(0x320),_0x2f5c40),_0x2f5c40;}})),this[_0x498ddb(0x2b3)];}[_0x3bc2c8(0x172)](){const _0x519af9=_0x3bc2c8;this[_0x519af9(0x3cd)]=!0x1;}['_lockTransition'](){const _0x4e6095=_0x3bc2c8;if(this[_0x4e6095(0x3cd)])throw new Error(_0x4e6095(0x22c));this[_0x4e6095(0x3cd)]=!0x0;}[_0x3bc2c8(0x1de)](_0x7f83e1){const _0x319f31=_0x3bc2c8;this['_lockTransition'](),this[_0x319f31(0x25e)](this['_state'][_0x319f31(0x295)](_0x7f83e1)),this[_0x319f31(0x172)]();}[_0x3bc2c8(0x261)](_0x2f372c){const _0x379765=_0x3bc2c8;if(!(_0x2f372c[_0x379765(0x1b1)]<=this['_revisionService'][_0x379765(0x22d)](this[_0x379765(0x1b0)]))){if(this['_collaborationPaused']){this[_0x379765(0x229)][_0x379765(0x13d)](_0x2f372c);return;}this[_0x379765(0x146)](_0x2f372c);}}['_exhaustRemoteChangesetQueue'](){const _0x5aa4b2=_0x3bc2c8;this[_0x5aa4b2(0x229)][_0x5aa4b2(0x255)](_0x4185bf=>this[_0x5aa4b2(0x146)](_0x4185bf)),this[_0x5aa4b2(0x229)]=[];}[_0x3bc2c8(0x146)](_0x51aebe){const _0x27ff22=_0x3bc2c8,_0x28d1c8=this[_0x27ff22(0x2a4)][_0x27ff22(0x282)][_0x27ff22(0x35b)](this[_0x27ff22(0x2a4)][_0x27ff22(0x282)][_0x27ff22(0x27f)]()[_0x27ff22(0x50b)])(_0x51aebe[_0x27ff22(0x1fc)],null)||_0x51aebe[_0x27ff22(0x1fc)],_0x31c8fd={..._0x51aebe,'mutations':_0x28d1c8};this[_0x27ff22(0x2c5)](),this[_0x27ff22(0x25e)](this['_state'][_0x27ff22(0x384)](_0x31c8fd)),this[_0x27ff22(0x172)]();}[_0x3bc2c8(0x24f)](_0x3708cc){const _0x1b35cb=_0x3bc2c8;this['_lockTransition'](),this[_0x1b35cb(0x25e)](this[_0x1b35cb(0x2b3)][_0x1b35cb(0xf5)](_0x3708cc)),this[_0x1b35cb(0x172)]();}[_0x3bc2c8(0x359)](_0x2700c8){const _0x28888f=_0x3bc2c8;this[_0x28888f(0x2c5)](),this[_0x28888f(0x25e)](this[_0x28888f(0x2b3)][_0x28888f(0x38f)](_0x2700c8)),this[_0x28888f(0x172)]();}[_0x3bc2c8(0x11d)](_0x5aaae2){const _0x5c2e9e=_0x3bc2c8;if(!(this[_0x5c2e9e(0x2b3)]instanceof _0x75f119))throw new TypeError(_0x5c2e9e(0x287));const _0x1bbf8a=_0x5aaae2[_0x5c2e9e(0x39c)](_0x29268e=>{const _0x5edcac=_0x5c2e9e,_0x47fff9=this[_0x5edcac(0x2a4)]['interceptor'][_0x5edcac(0x35b)](this[_0x5edcac(0x2a4)][_0x5edcac(0x282)][_0x5edcac(0x27f)]()[_0x5edcac(0x50b)])(_0x29268e[_0x5edcac(0x1fc)],null)||_0x29268e[_0x5edcac(0x1fc)];return{..._0x29268e,'mutations':_0x47fff9};});this[_0x5c2e9e(0x2c5)](),this['_updateState'](this['_state'][_0x5c2e9e(0x42e)](_0x1bbf8a)),this['_unlockTransition']();}[_0x3bc2c8(0x3e9)](){const _0x571fd2=_0x3bc2c8;this['_lockTransition'](),this[_0x571fd2(0x25e)](this[_0x571fd2(0x2b3)][_0x571fd2(0x495)]()),this[_0x571fd2(0x172)]();}['_toggleOnline'](_0x1da87d=!0x1){const _0x1f03ea=_0x3bc2c8;this['_lockTransition'](),this['_updateState'](this['_state'][_0x1f03ea(0x20e)]()),this[_0x1f03ea(0x172)]();const _0xe68213=this[_0x1f03ea(0x2b3)];_0x1da87d&&_0xe68213 instanceof _0x5124ae&&(this['_lockTransition'](),this['_updateState'](_0xe68213[_0x1f03ea(0x208)]()),this['_unlockTransition']());}async[_0x3bc2c8(0x3ed)](){return new Promise(_0xb6ce8c=>{const _0x3c5b3f=_0x4f28;this[_0x3c5b3f(0x3d7)]['sessionStatus$'][_0x3c5b3f(0x198)](_0x266483[_0x3c5b3f(0x38a)](0x1))[_0x3c5b3f(0x2f5)](async _0x2325a3=>{const _0x403cdd=_0x3c5b3f;_0xb6ce8c(await this[_0x403cdd(0x1ee)](_0x2325a3===_0x2d9d4e[_0x403cdd(0x322)]));});});}[_0x3bc2c8(0x15e)](){const _0x2a8a6b=_0x3bc2c8,_0x10aae1=this[_0x2a8a6b(0x1b0)];return{'onStateChange':(_0x440923,_0x252811)=>{const _0xf1c0aa=_0x2a8a6b;if(_0x440923!==this[_0xf1c0aa(0x2b3)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x440923[_0xf1c0aa(0x4ad)]+_0xf1c0aa(0x330)+_0x252811[_0xf1c0aa(0x4ad)]+_0xf1c0aa(0xe8)+this[_0xf1c0aa(0x2b3)][_0xf1c0aa(0x4ad)]);this[_0xf1c0aa(0x25e)](_0x252811);},'onSendChangeset':_0x490b8d=>{const _0x370c8b=_0x2a8a6b,_0x964554={'eventID':_0x56cbe4[_0x370c8b(0x484)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x490b8d[_0x370c8b(0x1b0)],'unitType':this[_0x370c8b(0x251)],'changeset':_0x490b8d,'memberID':this[_0x370c8b(0x3d7)][_0x370c8b(0x2d0)]()}};this['session'][_0x370c8b(0x441)](_0x964554,this[_0x370c8b(0x1b0)]);},'onMissingChangesets':({from:_0x4302ee,to:_0x394c3b})=>{const _0xd91bc=_0x2a8a6b;this[_0xd91bc(0x4e7)][_0xd91bc(0x46f)]('[CollaborationEntity]',_0xd91bc(0x41f)+_0x4302ee+_0xd91bc(0x18b)+_0x394c3b);const _0x2f6512={'eventID':_0x56cbe4[_0xd91bc(0x484)][_0xd91bc(0x123)],'data':{'unitID':_0x10aae1,'unitType':this['_type'],'from':_0x4302ee,'to':_0x394c3b}};this[_0xd91bc(0x3d7)][_0xd91bc(0x441)](_0x2f6512,this[_0xd91bc(0x1b0)]);}};}async[_0x3bc2c8(0x1ee)](_0xd6bd3f){const _0x453d9c=_0x3bc2c8;var _0x8aecb2,_0x350bdf;const _0x413209=await this[_0x453d9c(0x3bf)][_0x453d9c(0x30b)](this[_0x453d9c(0x1b0)]),_0x513b1b=(_0x8aecb2=_0x413209==null?void 0x0:_0x413209['mutations'])!=null?_0x8aecb2:[],_0x262499=(_0x350bdf=_0x413209==null?void 0x0:_0x413209[_0x453d9c(0x3e1)])!=null?_0x350bdf:null,_0x14e521=this['unitID'];try{this[_0x453d9c(0x1b6)](_0x262499,_0x513b1b);}catch(_0x4af9d7){this['_logService']['error'](_0x4af9d7);}const _0x155c40=this['_createHandler']();if(_0xd6bd3f){const _0x17f860=_0x3d51b3(this[_0x453d9c(0x30f)],_0x14e521,this[_0x453d9c(0x251)],_0x262499,_0x513b1b,_0x155c40);return _0x17f860 instanceof _0x5f4482?_0x17f860[_0x453d9c(0x364)]():(_0x17f860 instanceof _0x22cc58||_0x17f860 instanceof _0x3cd767)&&_0x17f860[_0x453d9c(0x423)](),_0x17f860;}return this[_0x453d9c(0x30f)][_0x453d9c(0x1a3)](_0x8646cf,_0x14e521,this[_0x453d9c(0x251)],_0x262499,_0x513b1b,_0x155c40);}[_0x3bc2c8(0x1b6)](_0x137ba3,_0x30a45e){const _0x6c015a=_0x3bc2c8;var _0x2b1eb8,_0x54d0b7;const _0x1a271b=this['_compressMutationService']['interceptor'][_0x6c015a(0x35b)](this[_0x6c015a(0x2a4)][_0x6c015a(0x282)][_0x6c015a(0x27f)]()[_0x6c015a(0x50b)]);(_0x2b1eb8=_0x1a271b((_0x137ba3==null?void 0x0:_0x137ba3[_0x6c015a(0x1fc)])||[],null))==null||_0x2b1eb8[_0x6c015a(0x255)](_0x235b70=>this[_0x6c015a(0x2c6)]['executeCommand'](_0x235b70['id'],_0x235b70[_0x6c015a(0x3c2)])),(_0x54d0b7=_0x1a271b(_0x30a45e||[],null))==null||_0x54d0b7['forEach'](_0x1a8d67=>this['_commandService']['executeCommand'](_0x1a8d67['id'],_0x1a8d67[_0x6c015a(0x3c2)]));}},_0x48e51e[_0x3bc2c8(0x193)]=_0xedaaab([_0x2ca542(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x2ca542(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e['LocalCacheService'])),_0x2ca542(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4['CompressMutationService'])),_0x2ca542(0x6,_0x5b7cfd['Inject'](_0x5b7cfd['LocaleService'])),_0x2ca542(0x7,_0x5b7cfd['Inject'](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x2ca542(0x8,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x2ca542(0x9,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x2ca542(0xa,_0x2ce95d[_0x3bc2c8(0x1af)]),_0x2ca542(0xb,_0x5b7cfd['IPermissionService']),_0x2ca542(0xc,_0x5b7cfd[_0x3bc2c8(0x259)](_0x5e9761))],_0x48e51e[_0x3bc2c8(0x193)]),_0x48e51e[_0x3bc2c8(0x355)]=class extends _0x48e51e['CollaborationEntity']{constructor(_0x24ea8f,_0x114a0b,_0x517d92,_0x36e1d9,_0x37c69e,_0x2d341d,_0x140905,_0x3772ac,_0x248044,_0x5b5540,_0x257964,_0x2808df,_0x12376a,_0x30f18a,_0x394d95,_0x82ccc1,_0x5bad4c){const _0x3417aa=_0x3bc2c8;super(_0x24ea8f,_0x517d92,_0x114a0b,_0x36e1d9,_0x37c69e,_0x2d341d,_0x140905,_0x3772ac,_0x12376a,_0x30f18a,_0x394d95,_0x82ccc1,_0x5bad4c),this[_0x3417aa(0x1b0)]=_0x24ea8f,this[_0x3417aa(0x413)]=_0x114a0b,this[_0x3417aa(0x3a4)]=_0x248044,this[_0x3417aa(0x515)]=_0x5b5540,this[_0x3417aa(0x450)]=_0x257964,this[_0x3417aa(0x25c)]=_0x2808df;}[_0x3bc2c8(0x15e)](){const _0x2a200e=_0x3bc2c8,_0x45dac4=super['_createHandler']();return _0x45dac4[_0x2a200e(0x1a9)]=_0x2dd753=>this[_0x2a200e(0x515)][_0x2a200e(0x43c)](_0x2dd753),_0x45dac4[_0x2a200e(0x4b2)]=_0x20bac7=>this[_0x2a200e(0x450)][_0x2a200e(0x109)](_0x20bac7),_0x45dac4[_0x2a200e(0x2e0)]=_0x16c546=>this[_0x2a200e(0x25c)][_0x2a200e(0x195)](_0x16c546),_0x45dac4[_0x2a200e(0x258)]=_0x5070a8=>this[_0x2a200e(0x515)][_0x2a200e(0x3fb)](_0x5070a8),_0x45dac4;}async[_0x3bc2c8(0x276)](){const _0x1159b8=_0x3bc2c8,_0x609a70=await super['_init']();return this[_0x1159b8(0x131)](this[_0x1159b8(0x2c6)]['onCommandExecuted']((_0x35e2ef,_0x38dd80)=>{const _0x10d20c=_0x1159b8;if(_0x35e2ef['type']!==_0x5b7cfd['CommandType'][_0x10d20c(0x374)]||_0x38dd80!=null&&_0x38dd80[_0x10d20c(0x38d)]||_0x38dd80!=null&&_0x38dd80[_0x10d20c(0x4b3)])return;const _0x4565cc=_0x35e2ef[_0x10d20c(0x3c2)];if((_0x4565cc==null?void 0x0:_0x4565cc[_0x10d20c(0x373)])!==this['unitID'])return;let _0x18010b=_0x35e2ef;if(_0x18010b['id']===_0x3e2148['RichTextEditingMutation']['id']){const _0x226aca=_0x18010b[_0x10d20c(0x3c2)];_0x18010b={'id':_0x3e2148[_0x10d20c(0x368)]['id'],'type':_0x5b7cfd[_0x10d20c(0x425)][_0x10d20c(0x374)],'params':{'unitId':_0x226aca['unitId'],'actions':_0x226aca[_0x10d20c(0x2fd)],'textRanges':null}};}const _0x2e37b6=this['_compressMutationService']['interceptor'][_0x10d20c(0x35b)](this[_0x10d20c(0x2a4)][_0x10d20c(0x282)][_0x10d20c(0x27f)]()['COMPRESS_MUTATION_SEND'])([_0x18010b],null)||[_0x18010b];this[_0x10d20c(0x1de)](_0x2e37b6[0x0]);})),_0x609a70;}},_0x48e51e[_0x3bc2c8(0x355)]=_0xedaaab([_0x2ca542(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['Injector'])),_0x2ca542(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x47d)])),_0x2ca542(0x5,_0x5b7cfd['Inject'](_0x56cbe4[_0x3bc2c8(0x375)])),_0x2ca542(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['LocaleService'])),_0x2ca542(0x7,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4['RevisionService'])),_0x2ca542(0x8,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x618f14[_0x3bc2c8(0x1e9)])),_0x2ca542(0x9,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x1e6c69)),_0x2ca542(0xa,_0x5b7cfd['Inject'](_0x12ef35)),_0x2ca542(0xb,_0x5b7cfd['Inject'](_0x56b650)),_0x2ca542(0xc,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x2ca542(0xd,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x2ca542(0xe,_0x2ce95d['IMessageService']),_0x2ca542(0xf,_0x5b7cfd[_0x3bc2c8(0x342)]),_0x2ca542(0x10,_0x5b7cfd['Optional'](_0x5e9761))],_0x48e51e[_0x3bc2c8(0x355)]),_0x48e51e[_0x3bc2c8(0x449)]=class extends _0x48e51e['CollaborationEntity']{constructor(_0x291007,_0x470c6c,_0x5da244,_0x1430a9,_0xd8ba8c,_0x93abcf,_0xb1c9b5,_0x3ba0d8,_0x3643f0,_0x790161,_0x141cb5,_0x31ffa0,_0x14d815,_0xe6adde){const _0x1385ed=_0x3bc2c8;super(_0x291007,_0x5da244,_0x470c6c,_0x1430a9,_0xd8ba8c,_0x93abcf,_0xb1c9b5,_0x3ba0d8,_0x790161,_0x141cb5,_0x31ffa0,_0x14d815,_0xe6adde),this['unitID']=_0x291007,this[_0x1385ed(0x413)]=_0x470c6c,this[_0x1385ed(0x170)]=_0x3643f0;}[_0x3bc2c8(0x15e)](){const _0x32ead7=_0x3bc2c8,_0x171ea0=super[_0x32ead7(0x15e)]();return _0x171ea0['onTransformSelections']=_0x8f0fc0=>this[_0x32ead7(0x170)][_0x32ead7(0x109)](_0x8f0fc0),_0x171ea0;}async['_init'](){const _0x571e4e=_0x3bc2c8,_0x45346c=await super[_0x571e4e(0x276)]();return this[_0x571e4e(0x131)](this[_0x571e4e(0x2c6)][_0x571e4e(0x15f)]((_0xce5870,_0x270000)=>{const _0x5d68fc=_0x571e4e;if(_0xce5870[_0x5d68fc(0x413)]!==_0x5b7cfd['CommandType'][_0x5d68fc(0x374)]||_0x270000!=null&&_0x270000[_0x5d68fc(0x38d)]||_0x270000!=null&&_0x270000[_0x5d68fc(0x4b3)])return;const _0x5869ec=_0xce5870['params'];if((_0x5869ec==null?void 0x0:_0x5869ec[_0x5d68fc(0x373)])!==this['unitID'])return;const _0xce42b0=_0xce5870,_0x34b414=this[_0x5d68fc(0x2a4)][_0x5d68fc(0x282)][_0x5d68fc(0x35b)](this[_0x5d68fc(0x2a4)][_0x5d68fc(0x282)][_0x5d68fc(0x27f)]()[_0x5d68fc(0x221)])([_0xce42b0],null)||[_0xce42b0];this['_onLocalMutation'](_0x34b414[0x0]);})),_0x45346c;}},_0x48e51e[_0x3bc2c8(0x449)]=_0xedaaab([_0x2ca542(0x3,_0x5b7cfd['Inject'](_0x5b7cfd['Injector'])),_0x2ca542(0x4,_0x5b7cfd['Inject'](_0x48e51e[_0x3bc2c8(0x47d)])),_0x2ca542(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4['CompressMutationService'])),_0x2ca542(0x6,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['LocaleService'])),_0x2ca542(0x7,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x44e)])),_0x2ca542(0x8,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x2cedfe)),_0x2ca542(0x9,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x2ca542(0xa,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x2ca542(0xb,_0x2ce95d['IMessageService']),_0x2ca542(0xc,_0x5b7cfd[_0x3bc2c8(0x342)]),_0x2ca542(0xd,_0x5b7cfd['Optional'](_0x5e9761))],_0x48e51e[_0x3bc2c8(0x449)]);var _0x3faff2=Object['defineProperty'],_0x217d22=Object[_0x3bc2c8(0x48b)],_0x2d901a=(_0x26cb89,_0x48b274,_0x2e12ef,_0xa00df3)=>{const _0x3b6d90=_0x3bc2c8;for(var _0x18d4b1=_0xa00df3>0x1?void 0x0:_0xa00df3?_0x217d22(_0x48b274,_0x2e12ef):_0x48b274,_0x311c3f=_0x26cb89[_0x3b6d90(0x3d6)]-0x1,_0x54057f;_0x311c3f>=0x0;_0x311c3f--)(_0x54057f=_0x26cb89[_0x311c3f])&&(_0x18d4b1=(_0xa00df3?_0x54057f(_0x48b274,_0x2e12ef,_0x18d4b1):_0x54057f(_0x18d4b1))||_0x18d4b1);return _0xa00df3&&_0x18d4b1&&_0x3faff2(_0x48b274,_0x2e12ef,_0x18d4b1),_0x18d4b1;},_0x3148ae=(_0x472bd7,_0xb7b504)=>(_0x3252d9,_0x22355d)=>_0xb7b504(_0x3252d9,_0x22355d,_0x472bd7);_0x48e51e[_0x3bc2c8(0x30c)]=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x350154,_0x3d8750,_0x2f7ab7){const _0x2eb46a=_0x3bc2c8;super(),_0x314dc6(this,_0x2eb46a(0x2af),new Map()),_0x314dc6(this,_0x2eb46a(0x1cb),new _0x266483[(_0x2eb46a(0x2e5))]()),(this['_injector']=_0x350154,this[_0x2eb46a(0x24d)]=_0x3d8750,this[_0x2eb46a(0x10b)]=_0x2f7ab7,this[_0x2eb46a(0x276)]());}[_0x3bc2c8(0x314)](){const _0xf65ec=_0x3bc2c8;super[_0xf65ec(0x314)](),this[_0xf65ec(0x2af)][_0xf65ec(0x255)](_0x2e849b=>_0x2e849b['dispose']()),this['_entities']['clear']();}['getCollabEntity'](_0x2918dc){const _0x28e05f=_0x3bc2c8;var _0x40ea10;return(_0x40ea10=this[_0x28e05f(0x2af)][_0x28e05f(0x451)](_0x2918dc))!=null?_0x40ea10:null;}[_0x3bc2c8(0x27a)](_0x24bd2c){const _0x53d9e8=_0x3bc2c8,_0x22c8e0=this[_0x53d9e8(0x36d)](_0x24bd2c);return _0x22c8e0?_0x266483['of'](_0x22c8e0):this[_0x53d9e8(0x1cb)][_0x53d9e8(0x198)](_0x51de38[_0x53d9e8(0x3b6)](_0x53db27=>_0x53db27['unitID']===_0x24bd2c));}[_0x3bc2c8(0x276)](){const _0x2d9852=_0x3bc2c8;this[_0x2d9852(0x10b)][_0x2d9852(0x327)](_0x5b7cfd['UniverInstanceType'][_0x2d9852(0x301)])[_0x2d9852(0x198)](_0x266483[_0x2d9852(0x46b)](this[_0x2d9852(0x2dd)]),_0x51de38[_0x2d9852(0x19d)](0x10))[_0x2d9852(0x2f5)](async _0x16789c=>{const _0x546a1e=_0x2d9852,_0x23239a=_0x16789c[_0x546a1e(0x183)](),_0x227302=await this['_startCollaboration'](_0x23239a,_0x249560[_0x546a1e(0x301)]);this['_entities']['set'](_0x23239a,_0x227302);}),this[_0x2d9852(0x10b)][_0x2d9852(0x327)](_0x5b7cfd[_0x2d9852(0x4bb)][_0x2d9852(0x3a6)])['pipe'](_0x266483['takeUntil'](this[_0x2d9852(0x2dd)]),_0x51de38[_0x2d9852(0x19d)](0x10))[_0x2d9852(0x198)](_0x51de38['filter'](_0x39208e=>!_0x39208e[_0x2d9852(0x183)]()['startsWith']('__')))[_0x2d9852(0x2f5)](async _0x32bee5=>{const _0x2baa99=_0x2d9852,_0x5b266f=_0x32bee5[_0x2baa99(0x183)](),_0x2793ef=await this[_0x2baa99(0xea)](_0x5b266f,_0x249560[_0x2baa99(0x3a6)]);this[_0x2baa99(0x2af)][_0x2baa99(0x10d)](_0x5b266f,_0x2793ef);}),_0x266483['merge'](this[_0x2d9852(0x10b)][_0x2d9852(0x4a5)](_0x5b7cfd['UniverInstanceType'][_0x2d9852(0x301)]),this[_0x2d9852(0x10b)]['getTypeOfUnitDisposed$'](_0x5b7cfd[_0x2d9852(0x4bb)][_0x2d9852(0x3a6)]))[_0x2d9852(0x198)](_0x266483[_0x2d9852(0x46b)](this[_0x2d9852(0x2dd)]))['subscribe'](_0x1382ab=>{const _0x5f347d=_0x2d9852,_0x4215be=_0x1382ab[_0x5f347d(0x183)](),_0x233fa7=this[_0x5f347d(0x2af)][_0x5f347d(0x451)](_0x4215be);_0x233fa7&&(_0x233fa7[_0x5f347d(0x314)](),this[_0x5f347d(0x2af)]['delete'](_0x4215be));});}async['_startCollaboration'](_0x210400,_0x52eea6){const _0x13e56e=_0x3bc2c8,_0x4671ae=await this[_0x13e56e(0x24d)]['requireSession'](_0x210400),_0xf3423e=this[_0x13e56e(0x30f)][_0x13e56e(0x1a3)](this[_0x13e56e(0xdd)](_0x52eea6),_0x210400,_0x52eea6,_0x4671ae);return await _0xf3423e[_0x13e56e(0x341)](),this[_0x13e56e(0x1cb)][_0x13e56e(0xe4)](_0xf3423e),_0xf3423e;}[_0x3bc2c8(0xdd)](_0x4f4bef){const _0xdd78eb=_0x3bc2c8;switch(_0x4f4bef){case _0x249560[_0xdd78eb(0x3a6)]:return _0x48e51e[_0xdd78eb(0x355)];case _0x249560[_0xdd78eb(0x301)]:return _0x48e51e['SheetCollaborationEntity'];default:throw new Error(_0xdd78eb(0x1e7)+_0x4f4bef);}}},_0x48e51e[_0x3bc2c8(0x30c)]=_0x2d901a([_0x3148ae(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x3148ae(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e['CollaborationSessionService'])),_0x3148ae(0x2,_0x5b7cfd['IUniverInstanceService'])],_0x48e51e[_0x3bc2c8(0x30c)]);const _0x3d2988=['purple300',_0x3bc2c8(0x22b),_0x3bc2c8(0x317),_0x3bc2c8(0x18f),_0x3bc2c8(0x4e8),_0x3bc2c8(0x443)];class _0x2e16f3 extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(){const _0x51604b=_0x3bc2c8;super(...arguments),_0x314dc6(this,_0x51604b(0x2b4),new Map()),_0x314dc6(this,_0x51604b(0x171),0x0);}[_0x3bc2c8(0x33d)](_0x49be37){const _0x5e6566=_0x3bc2c8;if(this[_0x5e6566(0x2b4)][_0x5e6566(0x232)](_0x49be37))return this['_assignedColors'][_0x5e6566(0x451)](_0x49be37);const _0x263bde=_0x3d2988[this[_0x5e6566(0x171)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%_0x3d2988[_0x5e6566(0x3d6)],this['_assignedColors'][_0x5e6566(0x10d)](_0x49be37,_0x263bde),_0x263bde;}}var _0x4da243=Object[_0x3bc2c8(0x361)],_0x4d914d=Object[_0x3bc2c8(0x48b)],_0x1bb410=(_0x1487f2,_0x3a1efe,_0x59a8da,_0x56158a)=>{for(var _0x3b5561=_0x56158a>0x1?void 0x0:_0x56158a?_0x4d914d(_0x3a1efe,_0x59a8da):_0x3a1efe,_0x3b091b=_0x1487f2['length']-0x1,_0x5d3257;_0x3b091b>=0x0;_0x3b091b--)(_0x5d3257=_0x1487f2[_0x3b091b])&&(_0x3b5561=(_0x56158a?_0x5d3257(_0x3a1efe,_0x59a8da,_0x3b5561):_0x5d3257(_0x3b5561))||_0x3b5561);return _0x56158a&&_0x3b5561&&_0x4da243(_0x3a1efe,_0x59a8da,_0x3b5561),_0x3b5561;},_0x2ff648=(_0x85d661,_0x144e6a)=>(_0x423871,_0x21a280)=>_0x144e6a(_0x423871,_0x21a280,_0x85d661);const _0x205ac8=0x12c,_0x2d56cf=0x64,_0x451ef2=()=>{let _0x1d4a20=[],_0x45eec5=!0x1;return _0x47533a=>{const _0x29313d=_0x4f28;_0x1d4a20[_0x29313d(0x13d)](_0x47533a),_0x45eec5||(_0x45eec5=!0x0,setTimeout(()=>{const _0x1b44b0=_0x29313d;_0x1d4a20[_0x1b44b0(0x255)](_0x2ab970=>_0x2ab970()),_0x1d4a20=[],_0x45eec5=!0x1;}));};};let _0x1a3ce8=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x4fb3c5,_0xa488b1,_0x2b847e,_0x2acaf2,_0x447fec,_0x2f8af7,_0x17a1f1,_0x404e0f){const _0x3dd2af=_0x3bc2c8;super(),_0x314dc6(this,_0x3dd2af(0x404),!0x1),_0x314dc6(this,_0x3dd2af(0x276),!0x1),_0x314dc6(this,_0x3dd2af(0x269),new _0x266483[(_0x3dd2af(0x43e))](new Map())),_0x314dc6(this,_0x3dd2af(0x401),this['_cursorInfo$'][_0x3dd2af(0x4eb)]()),_0x314dc6(this,'_roomMembers$',new _0x266483[(_0x3dd2af(0x43e))]([])),_0x314dc6(this,_0x3dd2af(0x3a0),this[_0x3dd2af(0x49b)][_0x3dd2af(0x198)](_0x266483[_0x3dd2af(0x41c)](_0x205ac8))),_0x314dc6(this,_0x3dd2af(0x409),_0x5b7cfd[_0x3dd2af(0x115)]((_0x22d196,_0x3454ab)=>{const _0x463569=_0x3dd2af,_0x5d26f7={'eventID':_0x56cbe4[_0x463569(0x484)][_0x463569(0x234)],'data':{'unitID':this['unitID'],'memberID':this[_0x463569(0x3cf)][_0x463569(0x2d0)](),'selection':_0x4d1b35[_0x463569(0x211)](_0x22d196,_0x3454ab[_0x463569(0x177)])}};this['_session']['send'](_0x5d26f7,this[_0x463569(0x1b0)]);},_0x2d56cf)),(this[_0x3dd2af(0x1b0)]=_0x4fb3c5,this['_session']=_0xa488b1,this[_0x3dd2af(0x30f)]=_0x2b847e,this[_0x3dd2af(0x184)]=_0x2acaf2,this[_0x3dd2af(0x159)]=_0x447fec,this['_univerInstanceService']=_0x2f8af7,this[_0x3dd2af(0x2c6)]=_0x17a1f1,this[_0x3dd2af(0x243)]=_0x404e0f);}get['cursorInfo'](){const _0x3fbc6f=_0x3bc2c8;return this[_0x3fbc6f(0x269)][_0x3fbc6f(0x21b)]();}get[_0x3bc2c8(0x3d3)](){const _0x31863c=_0x3bc2c8;return this[_0x31863c(0x49b)][_0x31863c(0x21b)]();}[_0x3bc2c8(0x314)](){const _0x4e434e=_0x3bc2c8;super[_0x4e434e(0x314)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0x4e434e(0x10e)](),this[_0x4e434e(0x49b)][_0x4e434e(0xe4)]([]),this[_0x4e434e(0x49b)][_0x4e434e(0x10e)]();}[_0x3bc2c8(0x341)](){const _0x2fea70=_0x3bc2c8;this[_0x2fea70(0x276)]||(this[_0x2fea70(0x276)]=!0x0,this[_0x2fea70(0x3cf)][_0x2fea70(0x509)][_0x2fea70(0x198)](_0x266483['takeUntil'](this[_0x2fea70(0x2dd)]))['subscribe'](_0x155047=>{const _0x499ae0=_0x2fea70;_0x155047===_0x2d9d4e[_0x499ae0(0x322)]?this['_toggleOnline']():this[_0x499ae0(0x3e9)]();}),this[_0x2fea70(0x3cf)][_0x2fea70(0x164)][_0x2fea70(0x198)](_0x266483['takeUntil'](this[_0x2fea70(0x2dd)]))[_0x2fea70(0x2f5)](_0x1dd4e5=>{const _0x439ad5=_0x2fea70,_0x1290b4=_0x1dd4e5[_0x439ad5(0xe1)];_0x1290b4===_0x56cbe4[_0x439ad5(0x484)][_0x439ad5(0x234)]&&this['_onCursorUpdate'](_0x1dd4e5),_0x1290b4===_0x56cbe4['CollaborationEvent'][_0x439ad5(0x44d)]&&this[_0x439ad5(0x369)](_0x1dd4e5);}),this['_onRefRangeChange'](),this[_0x2fea70(0x131)](this[_0x2fea70(0x2c6)]['onCommandExecuted'](_0x1bc180=>{const _0x187af7=_0x2fea70;if(this[_0x187af7(0x404)]&&_0x1bc180['id']===_0xa62622[_0x187af7(0x32e)]['id']&&_0x1bc180[_0x187af7(0x3c2)][_0x187af7(0x373)]===this['unitID']){const _0x302b82=_0x1bc180[_0x187af7(0x3c2)];this[_0x187af7(0x409)](_0x302b82[_0x187af7(0x2e3)],_0x302b82[_0x187af7(0x4ff)][0x0]);}})));}[_0x3bc2c8(0x512)](_0x2392cd){const _0x3fa984=_0x3bc2c8;var _0x87f540,_0x280117;const {memberID:_0x206fe0,selection:_0x402d0f}=_0x2392cd[_0x3fa984(0x2db)],{sheetName:_0x6cb935,range:_0x2a9d0f}=_0x4d1b35['deserializeRangeWithSheet'](_0x402d0f),_0x5b238e={'name':(_0x280117=(_0x87f540=this[_0x3fa984(0x159)][_0x3fa984(0x3c1)](this['unitID'],_0x206fe0))==null?void 0x0:_0x87f540['name'])!=null?_0x280117:_0x3fa984(0x1ce),'range':this['_getMergeRange'](_0x6cb935,_0x2a9d0f),'sheetID':_0x6cb935,'color':this['_colorAssignService'][_0x3fa984(0x33d)](_0x206fe0),'selection':_0x402d0f},_0x213984=this[_0x3fa984(0x4b6)];_0x213984[_0x3fa984(0x10d)](_0x206fe0,_0x5b238e),this[_0x3fa984(0x269)][_0x3fa984(0xe4)](_0x213984);}['_onCursorDelete'](_0x4554e0){const _0x25df59=_0x3bc2c8,{memberID:_0x23c2e2}=_0x4554e0[_0x25df59(0x2db)],_0x6228cb=this[_0x25df59(0x4b6)];_0x6228cb[_0x25df59(0x344)](_0x23c2e2),this[_0x25df59(0x269)]['next'](_0x6228cb);}['_getMergeRange'](_0x3f8318,_0x280993){const _0x39ef20=_0x3bc2c8;var _0x4dfec4,_0x34d3fb;const _0x35722d=(_0x34d3fb=(_0x4dfec4=this[_0x39ef20(0x10b)][_0x39ef20(0x279)](this[_0x39ef20(0x1b0)]))==null?void 0x0:_0x4dfec4[_0x39ef20(0x132)](_0x3f8318))==null?void 0x0:_0x34d3fb[_0x39ef20(0x35a)]();return(_0x35722d==null?void 0x0:_0x35722d[_0x39ef20(0xf7)](_0x282e39=>_0x5b7cfd[_0x39ef20(0x224)][_0x39ef20(0x2fc)](_0x282e39,_0x280993)))||_0x280993;}[_0x3bc2c8(0x217)](){const _0x108777=_0x3bc2c8,_0x5ef3b2=new _0x5b7cfd[(_0x108777(0x12c))](),_0x3c81af=_0x451ef2(),_0x1cc1e1=()=>{const _0x2da676=_0x108777;_0x5ef3b2[_0x2da676(0x314)]();const _0xce86a2=(_0x57052a,_0x21dab1,_0xaf0cac,_0x433ad4)=>{const _0x14fe69=_0x2da676;let _0x34799b=[];switch(_0x57052a['id']){case _0xa62622['EffectRefRangId'][_0x14fe69(0x41e)]:{_0x34799b=_0xa62622[_0x14fe69(0x116)](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x4bc)]:{_0x34799b=_0xa62622['handleDeleteRangeMoveUp'](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x1dd)]:{_0x34799b=_0xa62622[_0x14fe69(0x328)](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x399)]:{_0x34799b=_0xa62622[_0x14fe69(0x267)](_0x57052a,_0x433ad4);break;}case _0xa62622['EffectRefRangId'][_0x14fe69(0x323)]:{_0x34799b=_0xa62622[_0x14fe69(0x215)](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0xda)]:{_0x34799b=_0xa62622[_0x14fe69(0x227)](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x297)]:{_0x34799b=_0xa62622[_0x14fe69(0x288)](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x182)]:{_0x34799b=_0xa62622['handleIRemoveCol'](_0x57052a,_0x433ad4);break;}case _0xa62622[_0x14fe69(0xfb)][_0x14fe69(0x456)]:{_0x34799b=_0xa62622[_0x14fe69(0x2bc)](_0x57052a,_0x433ad4);break;}}const _0x28e1cf=_0xa62622['runRefRangeMutations'](_0x34799b,_0x433ad4),_0x277039=this['cursorInfo']['get'](_0x21dab1);if(_0x277039&&_0x28e1cf){const _0x7c0cd4={..._0x277039,'range':_0x28e1cf};this['cursorInfo']['set'](_0x21dab1,_0x7c0cd4),_0x3c81af(()=>{const _0x1d9400=_0x14fe69,_0x540157=this[_0x1d9400(0x243)]['registerRefRange'](_0x28e1cf,_0x424d51=>(_0x540157[_0x1d9400(0x314)](),_0xce86a2(_0x424d51,_0x21dab1,_0xaf0cac,_0x28e1cf)));_0x5ef3b2[_0x1d9400(0x225)](_0x540157);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x2da676(0x255)]((_0x2afa6a,_0xbbbeb8)=>{const _0x3ab25b=_0x2da676,{range:_0x3d9b1c,sheetID:_0x203ed6}=_0x2afa6a,_0x24aa44=this['_refRangeService'][_0x3ab25b(0x223)](_0x3d9b1c,_0x53c8d0=>(_0x24aa44['dispose'](),_0xce86a2(_0x53c8d0,_0xbbbeb8,_0x203ed6,_0x3d9b1c)));_0x5ef3b2[_0x3ab25b(0x225)](_0x24aa44);});};this['disposeWithMe'](_0x5b7cfd[_0x108777(0x3d9)](this[_0x108777(0x269)][_0x108777(0x2f5)](()=>{_0x1cc1e1();})));}[_0x3bc2c8(0x358)](){const _0x231e54=_0x3bc2c8;var _0x9c4577,_0xd058f5;if(this[_0x231e54(0x404)]=!0x0,((_0x9c4577=this[_0x231e54(0x10b)][_0x231e54(0x1b8)]())==null?void 0x0:_0x9c4577[_0x231e54(0x183)]())!==this[_0x231e54(0x1b0)])return;const _0x5c3a89=(_0xd058f5=this[_0x231e54(0x30f)][_0x231e54(0x451)](_0xa62622[_0x231e54(0x34b)])['getCurrentSelections']())==null?void 0x0:_0xd058f5[0x0],_0x4642a3=this[_0x231e54(0x10b)]['getCurrentUnitForType'](_0x5b7cfd[_0x231e54(0x4bb)][_0x231e54(0x301)])['getActiveSheet']();_0x5c3a89&&_0x4642a3&&this[_0x231e54(0x409)](_0x4642a3[_0x231e54(0x43d)](),_0x5c3a89);}[_0x3bc2c8(0x3e9)](){const _0x2c77ae=_0x3bc2c8;this[_0x2c77ae(0x404)]=!0x1;}};_0x1a3ce8=_0x1bb410([_0x2ff648(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['Injector'])),_0x2ff648(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x2e16f3)),_0x2ff648(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x587d5a)),_0x2ff648(0x5,_0x5b7cfd['IUniverInstanceService']),_0x2ff648(0x6,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x2ff648(0x7,_0x5b7cfd['Inject'](_0xa62622['RefRangeService']))],_0x1a3ce8);var _0x41752a=Object[_0x3bc2c8(0x361)],_0x387954=Object[_0x3bc2c8(0x48b)],_0x49e3d6=(_0x5e2a67,_0x957da0,_0x1e6bfd,_0x1dec26)=>{const _0x28694f=_0x3bc2c8;for(var _0xdc9859=_0x1dec26>0x1?void 0x0:_0x1dec26?_0x387954(_0x957da0,_0x1e6bfd):_0x957da0,_0x55051b=_0x5e2a67[_0x28694f(0x3d6)]-0x1,_0x6e80a6;_0x55051b>=0x0;_0x55051b--)(_0x6e80a6=_0x5e2a67[_0x55051b])&&(_0xdc9859=(_0x1dec26?_0x6e80a6(_0x957da0,_0x1e6bfd,_0xdc9859):_0x6e80a6(_0xdc9859))||_0xdc9859);return _0x1dec26&&_0xdc9859&&_0x41752a(_0x957da0,_0x1e6bfd,_0xdc9859),_0xdc9859;},_0x2f60ff=(_0x1bfd2b,_0x5a51e9)=>(_0x435a8a,_0x3b6904)=>_0x5a51e9(_0x435a8a,_0x3b6904,_0x1bfd2b);const _0x5427ce=0x12c,_0x1ef830=0x64;let _0x2063a7=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x3b225e,_0x4c0cb6,_0xcb583f,_0x187c1b,_0x20d807,_0x1f45b0,_0x49dd8f,_0x357ff0,_0x17ca73){const _0x26a78c=_0x3bc2c8;super(),_0x314dc6(this,'_online',!0x1),_0x314dc6(this,_0x26a78c(0x276),!0x1),_0x314dc6(this,_0x26a78c(0x269),new _0x266483[(_0x26a78c(0x43e))](new Map())),_0x314dc6(this,_0x26a78c(0x401),this[_0x26a78c(0x269)][_0x26a78c(0x4eb)]()),_0x314dc6(this,'_roomMembers$',new _0x266483[(_0x26a78c(0x43e))]([])),_0x314dc6(this,'roomMembers$',this[_0x26a78c(0x49b)][_0x26a78c(0x198)](_0x266483[_0x26a78c(0x41c)](_0x5427ce))),_0x314dc6(this,_0x26a78c(0x409),_0x5b7cfd[_0x26a78c(0x115)](_0x19e0ac=>{const _0x4724da=_0x26a78c,_0x43e757={'eventID':_0x56cbe4[_0x4724da(0x484)][_0x4724da(0x234)],'data':{'unitID':this[_0x4724da(0x1b0)],'memberID':this[_0x4724da(0x3cf)][_0x4724da(0x2d0)](),'selection':_0x57f458(_0x19e0ac)}};this[_0x4724da(0x3cf)][_0x4724da(0x441)](_0x43e757,this[_0x4724da(0x1b0)]);},_0x1ef830)),(this[_0x26a78c(0x1b0)]=_0x3b225e,this['_session']=_0x4c0cb6,this[_0x26a78c(0x30f)]=_0xcb583f,this[_0x26a78c(0x184)]=_0x187c1b,this[_0x26a78c(0x159)]=_0x20d807,this[_0x26a78c(0x38c)]=_0x1f45b0,this[_0x26a78c(0x3a1)]=_0x49dd8f,this[_0x26a78c(0x10b)]=_0x357ff0,this[_0x26a78c(0x2c6)]=_0x17ca73);}get[_0x3bc2c8(0x4b6)](){const _0x476ff3=_0x3bc2c8;return this[_0x476ff3(0x269)][_0x476ff3(0x21b)]();}get[_0x3bc2c8(0x3d3)](){const _0x1538e4=_0x3bc2c8;return this[_0x1538e4(0x49b)][_0x1538e4(0x21b)]();}[_0x3bc2c8(0x314)](){const _0x1b3275=_0x3bc2c8;super[_0x1b3275(0x314)](),this['_cursorInfo$'][_0x1b3275(0xe4)](new Map()),this['_cursorInfo$']['complete'](),this[_0x1b3275(0x49b)][_0x1b3275(0xe4)]([]),this[_0x1b3275(0x49b)][_0x1b3275(0x10e)]();}[_0x3bc2c8(0x341)](){const _0xa14973=_0x3bc2c8;this[_0xa14973(0x276)]||(this['_init']=!0x0,this[_0xa14973(0x3cf)]['sessionStatus$'][_0xa14973(0x198)](_0x266483[_0xa14973(0x46b)](this[_0xa14973(0x2dd)]))[_0xa14973(0x2f5)](_0x4973da=>{const _0x32a0e4=_0xa14973;_0x4973da===_0x2d9d4e['ONLINE']?this[_0x32a0e4(0x358)]():this[_0x32a0e4(0x3e9)]();}),this[_0xa14973(0x3cf)][_0xa14973(0x164)][_0xa14973(0x198)](_0x266483['takeUntil'](this[_0xa14973(0x2dd)]))[_0xa14973(0x2f5)](_0x4ccb67=>{const _0x10e439=_0xa14973,_0x137696=_0x4ccb67['eventID'];_0x137696===_0x56cbe4['CollaborationEvent'][_0x10e439(0x234)]&&this['_onCursorUpdate'](_0x4ccb67),_0x137696===_0x56cbe4['CollaborationEvent'][_0x10e439(0x44d)]&&this['_onCursorDelete'](_0x4ccb67);}),this['disposeWithMe'](this[_0xa14973(0x2c6)][_0xa14973(0x15f)](_0x36d67a=>{const _0x4e67ed=_0xa14973,_0x4c3b69=_0x36d67a[_0x4e67ed(0x3c2)];_0x4c3b69!=null&&this[_0x4e67ed(0x404)]&&_0x36d67a['id']===_0x3e2148[_0x4e67ed(0x1aa)]['id']&&_0x4c3b69[_0x4e67ed(0x373)]===this[_0x4e67ed(0x1b0)]&&_0x4c3b69['isEditing']===!0x1&&this[_0x4e67ed(0x409)](_0x4c3b69[_0x4e67ed(0x2d5)]);})),this['_syncEditingCollabCursorService'][_0xa14973(0x1b9)][_0xa14973(0x198)](_0x266483[_0xa14973(0x46b)](this[_0xa14973(0x2dd)]))['subscribe'](_0x556c4b=>{const _0x58cb93=_0xa14973;if((_0x556c4b==null?void 0x0:_0x556c4b[_0x58cb93(0x1b0)])!==this[_0x58cb93(0x1b0)])return;const _0x187f16={'eventID':_0x56cbe4[_0x58cb93(0x484)][_0x58cb93(0x234)],'data':_0x556c4b};this['_onCursorUpdate'](_0x187f16);}),this[_0xa14973(0x131)](this[_0xa14973(0x2c6)]['onCommandExecuted'](_0x541f2a=>{const _0x4b6633=_0xa14973;if(_0x541f2a[_0x4b6633(0x3c2)]==null)return;const _0x5242cf=_0x541f2a[_0x4b6633(0x3c2)];if(_0x541f2a['id']!==_0x3e2148['RichTextEditingMutation']['id']||_0x5242cf[_0x4b6633(0x373)]!==this[_0x4b6633(0x1b0)])return;const _0x1716af={'id':_0x4b6633(0x2d2),'params':_0x5242cf},_0x1fbe5d=this[_0x4b6633(0x4b6)];for(const [_0xe43722,_0x59a3f4]of _0x1fbe5d){const _0x20cdc9={'id':_0x4b6633(0x2d2),'params':{'unitId':this[_0x4b6633(0x1b0)],'actions':null,'textRanges':_0x59a3f4[_0x4b6633(0x2d5)]}},_0x12538e=this[_0x4b6633(0x3a1)]['transformMutation'](_0x1716af,_0x20cdc9,!0x1);if(_0x56cbe4[_0x4b6633(0x197)](_0x12538e))throw _0x12538e[_0x4b6633(0x476)];_0x1fbe5d[_0x4b6633(0x10d)](_0xe43722,{..._0x59a3f4,'ranges':_0x12538e[_0x4b6633(0x275)]['params'][_0x4b6633(0x138)]});}queueMicrotask(()=>{const _0x3f32a8=_0x4b6633;this[_0x3f32a8(0x269)][_0x3f32a8(0xe4)](_0x1fbe5d);});})));}[_0x3bc2c8(0x512)](_0x448554){const _0x293b22=_0x3bc2c8;var _0x247391,_0x5cf58b;const {memberID:_0x5558b7,selection:_0x34d2a9}=_0x448554[_0x293b22(0x2db)],_0x19e780=_0x39789b(_0x34d2a9),_0x177a63=(_0x5cf58b=(_0x247391=this[_0x293b22(0x159)][_0x293b22(0x3c1)](this['unitID'],_0x5558b7))==null?void 0x0:_0x247391['name'])!=null?_0x5cf58b:'Unknown\x20user',_0x3bd6e0={'color':this[_0x293b22(0x184)]['assignAColorForMemberID'](_0x5558b7),'name':_0x177a63,'ranges':_0x19e780},_0x42f4bd=this[_0x293b22(0x4b6)];_0x42f4bd[_0x293b22(0x10d)](_0x5558b7,_0x3bd6e0),this[_0x293b22(0x269)]['next'](_0x42f4bd);}[_0x3bc2c8(0x369)](_0x252bb4){const _0x1e60d0=_0x3bc2c8,{memberID:_0x1a873d}=_0x252bb4['data'],_0x1b192e=this[_0x1e60d0(0x4b6)];_0x1b192e[_0x1e60d0(0x344)](_0x1a873d),this['_cursorInfo$'][_0x1e60d0(0xe4)](_0x1b192e);}['_toggleOnline'](){const _0x272229=_0x3bc2c8;var _0x506944;if(this['_online']=!0x0,((_0x506944=this[_0x272229(0x10b)][_0x272229(0x1b8)]())==null?void 0x0:_0x506944[_0x272229(0x183)]())!==this[_0x272229(0x1b0)])return;const _0x14d1b9=this[_0x272229(0x30f)]['get'](_0x3e2148['DocSelectionManagerService'])[_0x272229(0x46d)]();Array[_0x272229(0x1cc)](_0x14d1b9)&&_0x14d1b9[_0x272229(0x3d6)]>0x0&&this['_updateLocalCursor'](_0x14d1b9);}[_0x3bc2c8(0x3e9)](){const _0x2a8867=_0x3bc2c8;this[_0x2a8867(0x404)]=!0x1;}};_0x2063a7=_0x49e3d6([_0x2f60ff(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd['Injector'])),_0x2f60ff(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x2e16f3)),_0x2f60ff(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x587d5a)),_0x2f60ff(0x5,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56b650)),_0x2f60ff(0x6,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x2f60ff(0x7,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x2f60ff(0x8,_0x5b7cfd['ICommandService'])],_0x2063a7);var _0x310a3f=Object[_0x3bc2c8(0x361)],_0x2b8eca=Object[_0x3bc2c8(0x48b)],_0x394fdc=(_0x2c774e,_0x3084a5,_0x1e288c,_0x510cd0)=>{const _0x3b6bcc=_0x3bc2c8;for(var _0x5a7370=_0x510cd0>0x1?void 0x0:_0x510cd0?_0x2b8eca(_0x3084a5,_0x1e288c):_0x3084a5,_0x4448f1=_0x2c774e[_0x3b6bcc(0x3d6)]-0x1,_0xe6dc3d;_0x4448f1>=0x0;_0x4448f1--)(_0xe6dc3d=_0x2c774e[_0x4448f1])&&(_0x5a7370=(_0x510cd0?_0xe6dc3d(_0x3084a5,_0x1e288c,_0x5a7370):_0xe6dc3d(_0x5a7370))||_0x5a7370);return _0x510cd0&&_0x5a7370&&_0x310a3f(_0x3084a5,_0x1e288c,_0x5a7370),_0x5a7370;},_0x53e2b2=(_0x383554,_0x1bd874)=>(_0x283b7c,_0x16df0a)=>_0x1bd874(_0x283b7c,_0x16df0a,_0x383554);let _0x47bd3e=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x53c64a,_0x36beeb,_0x39a921){const _0x11742b=_0x3bc2c8;super(),_0x314dc6(this,'_entities',new Map()),_0x314dc6(this,_0x11742b(0x1cb),new _0x266483['Subject']()),(this[_0x11742b(0x10b)]=_0x53c64a,this[_0x11742b(0x30f)]=_0x36beeb,this[_0x11742b(0x24d)]=_0x39a921,this[_0x11742b(0x276)]());}[_0x3bc2c8(0x314)](){const _0x4c4641=_0x3bc2c8;super[_0x4c4641(0x314)](),this[_0x4c4641(0x1cb)][_0x4c4641(0x10e)](),this[_0x4c4641(0x2af)][_0x4c4641(0x255)](_0x3563d6=>_0x3563d6[_0x4c4641(0x314)]());}[_0x3bc2c8(0x4c6)](_0x4e7241){const _0x47693b=_0x3bc2c8;return this[_0x47693b(0x2af)][_0x47693b(0x232)](_0x4e7241)?this[_0x47693b(0x2af)]['get'](_0x4e7241)['cursorInfo$']:this['_entityInit$'][_0x47693b(0x198)](_0x266483['filter'](_0x22f28d=>_0x22f28d[_0x47693b(0x1b0)]===_0x4e7241),_0x266483['switchMap'](_0x59dca1=>_0x59dca1[_0x47693b(0x401)]));}[_0x3bc2c8(0x276)](){const _0x5e133f=_0x3bc2c8;this[_0x5e133f(0x10b)]['getTypeOfUnitAdded$'](_0x5b7cfd[_0x5e133f(0x4bb)]['UNIVER_SHEET'])[_0x5e133f(0x198)](_0x266483[_0x5e133f(0x46b)](this[_0x5e133f(0x2dd)]))[_0x5e133f(0x2f5)](async _0x3c46ca=>{const _0x5f555a=_0x5e133f,_0x3dcbe3=_0x3c46ca[_0x5f555a(0x183)](),_0x456a1f=await this['_startSheetCollabCursor'](_0x3dcbe3);this[_0x5f555a(0x1cb)][_0x5f555a(0xe4)](_0x456a1f),this[_0x5f555a(0x2af)][_0x5f555a(0x10d)](_0x3dcbe3,_0x456a1f);}),this[_0x5e133f(0x10b)][_0x5e133f(0x327)](_0x5b7cfd[_0x5e133f(0x4bb)][_0x5e133f(0x3a6)])[_0x5e133f(0x198)](_0x266483[_0x5e133f(0x46b)](this[_0x5e133f(0x2dd)]))[_0x5e133f(0x198)](_0x266483[_0x5e133f(0x3b6)](_0x891f93=>!_0x891f93[_0x5e133f(0x183)]()['startsWith']('__')))[_0x5e133f(0x2f5)](async _0x5932c5=>{const _0x173235=_0x5e133f,_0x5a13b8=_0x5932c5[_0x173235(0x183)](),_0x9ebe64=await this[_0x173235(0x3bb)](_0x5a13b8);this['_entityInit$'][_0x173235(0xe4)](_0x9ebe64),this[_0x173235(0x2af)][_0x173235(0x10d)](_0x5a13b8,_0x9ebe64);}),_0x266483['merge'](this[_0x5e133f(0x10b)][_0x5e133f(0x4a5)](_0x5b7cfd[_0x5e133f(0x4bb)][_0x5e133f(0x3a6)]),this['_univerInstanceService'][_0x5e133f(0x4a5)](_0x5b7cfd['UniverInstanceType'][_0x5e133f(0x301)]))[_0x5e133f(0x198)](_0x266483['takeUntil'](this['dispose$']))[_0x5e133f(0x2f5)](_0x414575=>{const _0x3d0242=_0x5e133f,_0x15b358=_0x414575[_0x3d0242(0x183)](),_0x1d43b4=this[_0x3d0242(0x2af)][_0x3d0242(0x451)](_0x15b358);_0x1d43b4&&(_0x1d43b4[_0x3d0242(0x314)](),this[_0x3d0242(0x2af)][_0x3d0242(0x344)](_0x15b358));});}async[_0x3bc2c8(0x252)](_0x872b87){const _0x4f91e2=_0x3bc2c8,_0x3c6141=await this['_collabSessionService']['requireSession'](_0x872b87),_0xd222cf=this[_0x4f91e2(0x30f)]['createInstance'](_0x1a3ce8,_0x872b87,_0x3c6141);return _0xd222cf['init'](),_0xd222cf;}async[_0x3bc2c8(0x3bb)](_0x9a86aa){const _0x3bf350=_0x3bc2c8,_0x35aeaa=await this[_0x3bf350(0x24d)][_0x3bf350(0x318)](_0x9a86aa),_0x337961=this[_0x3bf350(0x30f)][_0x3bf350(0x1a3)](_0x2063a7,_0x9a86aa,_0x35aeaa);return _0x337961[_0x3bf350(0x341)](),_0x337961;}};_0x47bd3e=_0x394fdc([_0x5b7cfd[_0x3bc2c8(0x50d)](_0x5b7cfd[_0x3bc2c8(0x20b)][_0x3bc2c8(0x4c0)],_0x47bd3e),_0x53e2b2(0x0,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x53e2b2(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x53e2b2(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x1d8)]))],_0x47bd3e);const _0x433f4b=0x14,_0x297918=0xc8,_0x291fc2=0x4,_0x2ef760=0x5;function _0x27214b(_0x4be302,_0x2ab050){const _0x508c48=_0x3bc2c8;let {radius:_0xe704cd,width:_0x29b2d8,height:_0x1b7970}=_0x2ab050;_0xe704cd=_0xe704cd!=null?_0xe704cd:0x0,_0x29b2d8=_0x29b2d8!=null?_0x29b2d8:0x1e,_0x1b7970=_0x1b7970!=null?_0x1b7970:0x1e;let _0x20a282=0x0,_0x3bceed=0x0,_0x2f7fe8=0x0;_0x20a282=_0x3bceed=_0x2f7fe8=Math[_0x508c48(0x17d)](_0xe704cd,_0x29b2d8/0x2,_0x1b7970/0x2),_0x4be302[_0x508c48(0x154)](),_0x4be302[_0x508c48(0x319)](_0x20a282,0x0),_0x4be302['lineTo'](_0x29b2d8-_0x3bceed,0x0),_0x4be302[_0x508c48(0x256)](_0x29b2d8-_0x3bceed,_0x3bceed,_0x3bceed,Math['PI']*0x3/0x2,0x0,!0x1),_0x4be302['lineTo'](_0x29b2d8,_0x1b7970-_0x2f7fe8),_0x4be302[_0x508c48(0x256)](_0x29b2d8-_0x2f7fe8,_0x1b7970-_0x2f7fe8,_0x2f7fe8,0x0,Math['PI']/0x2,!0x1),_0x4be302[_0x508c48(0x366)](0x0,_0x1b7970),_0x4be302[_0x508c48(0x366)](0x0,_0x20a282),_0x4be302[_0x508c48(0x256)](_0x20a282,_0x20a282,_0x20a282,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4be302[_0x508c48(0x21f)](),_0x2ab050[_0x508c48(0xe6)]&&(_0x4be302['save'](),_0x4be302[_0x508c48(0x2a0)]=_0x2ab050[_0x508c48(0xe6)],_0x2ab050[_0x508c48(0x4d8)]===_0x508c48(0x2df)?_0x4be302['fill'](_0x508c48(0x2df)):_0x4be302[_0x508c48(0xe6)](),_0x4be302[_0x508c48(0x468)]());}class _0xb13772 extends _0x46e2e3[_0x3bc2c8(0x343)]{constructor(_0x2fa082,_0x49c00c){const _0x2f7639=_0x3bc2c8;super(_0x2fa082,_0x49c00c),_0x314dc6(this,_0x2f7639(0x3da)),_0x314dc6(this,'text'),(this[_0x2f7639(0x3da)]=_0x49c00c==null?void 0x0:_0x49c00c[_0x2f7639(0x3da)],this[_0x2f7639(0x2a2)]=_0x49c00c==null?void 0x0:_0x49c00c['text']);}static[_0x3bc2c8(0xff)](_0x2097b5,_0x27727a){const _0x4ef287=_0x3bc2c8,{text:_0x464bab,color:_0x491705}=_0x27727a;_0x2097b5[_0x4ef287(0x3b3)](),_0x2097b5[_0x4ef287(0x3f0)]=_0x4ef287(0x19c);const _0x289e04=_0x2097b5['measureText'](_0x464bab)[_0x4ef287(0x1b3)],_0xbcc93f=Math[_0x4ef287(0x17d)](_0x289e04+0x2*_0x291fc2,_0x297918);_0x27214b(_0x2097b5,{'height':_0x433f4b,'radius':0x4,'width':_0xbcc93f,'fill':_0x491705,'evented':!0x1}),_0x2097b5['fillStyle']=_0x4ef287(0x499);const _0x22434f=_0x291fc2,_0x40c4b0=_0x433f4b-_0x2ef760,_0x2eb7d4=_0x297918-0x2*_0x291fc2;if(_0x289e04>_0x2eb7d4){let _0x547f10='',_0x218267=0x0;for(const _0x3ba4ca of _0x464bab){const _0x1ae43f=_0x2097b5[_0x4ef287(0x4aa)](_0x3ba4ca)['width'];if(_0x218267+_0x1ae43f<=_0x2eb7d4-_0x2097b5[_0x4ef287(0x4aa)](_0x4ef287(0x1fd))[_0x4ef287(0x1b3)])_0x547f10+=_0x3ba4ca,_0x218267+=_0x1ae43f;else{_0x547f10+=_0x4ef287(0x1fd);break;}}_0x2097b5['fillText'](_0x547f10,_0x22434f,_0x40c4b0);}else _0x2097b5[_0x4ef287(0x278)](_0x464bab,_0x22434f,_0x40c4b0);_0x2097b5[_0x4ef287(0x468)]();}[_0x3bc2c8(0x1c7)](_0x5d6abb){const _0x367cae=_0x3bc2c8;_0xb13772[_0x367cae(0xff)](_0x5d6abb,this);}}const _0x255709=_0x3bc2c8(0x30d),_0x3eff7a=_0x3bc2c8(0x14a),_0x1da325=_0x3bc2c8(0x220),_0x506fa5=0x6,_0x5221cc=1.5,_0x521a07=0x4,_0x55c328=1.5,_0x2bf989=_0x3bc2c8(0x490);class _0x330227{constructor(_0x4d7dde,_0x3fadb0,_0x1bfb63,_0x4a535f){const _0xfba18f=_0x3bc2c8;_0x314dc6(this,_0xfba18f(0x21d),[]),_0x314dc6(this,_0xfba18f(0x231),null),_0x314dc6(this,_0xfba18f(0x351),null),_0x314dc6(this,'_anchorDot',null),_0x314dc6(this,_0xfba18f(0x4cc),null),_0x314dc6(this,'_eventUnsubscribe',null),(this[_0xfba18f(0x362)]=_0x4d7dde,this['_scene']=_0x3fadb0,this[_0xfba18f(0xdf)]=_0x1bfb63,this['_document']=_0x4a535f,this[_0xfba18f(0x379)]());}set[_0x3bc2c8(0x1ed)](_0x1296a2){const _0x1988ef=_0x3bc2c8;_0x1296a2?(this[_0x1988ef(0x2f7)]&&this[_0x1988ef(0x2f7)][_0x1988ef(0x47e)](),this[_0x1988ef(0x351)]&&this[_0x1988ef(0x351)][_0x1988ef(0x29f)]()):(this[_0x1988ef(0x2f7)]&&this['_anchorDot']['show'](),this[_0x1988ef(0x351)]&&this[_0x1988ef(0x351)]['hide']());}['dispose'](){const _0x3cf148=_0x3bc2c8;for(const _0x15f1f5 of this[_0x3cf148(0x21d)])_0x15f1f5[_0x3cf148(0x314)]();this[_0x3cf148(0x351)]&&this[_0x3cf148(0x351)][_0x3cf148(0x314)](),this[_0x3cf148(0x2f7)]&&this['_anchorDot'][_0x3cf148(0x314)](),this[_0x3cf148(0x231)]&&this[_0x3cf148(0x231)][_0x3cf148(0x314)](),this[_0x3cf148(0x3fc)]&&this[_0x3cf148(0x3fc)]();}[_0x3bc2c8(0x379)](){const _0x31a2c3=_0x3bc2c8;var _0x1e7d3f;const {_docSkeleton:_0x4c2fee,_document:_0x4430a3}=this,{color:_0x7d9f22,name:_0x3fd76a,ranges:_0x329f75}=this[_0x31a2c3(0x362)],_0x399e10=_0x4430a3[_0x31a2c3(0x2d1)](),{docsLeft:_0x14fc12,docsTop:_0x3fe0ba}=_0x399e10,_0x48cc1b=new _0x618f14[(_0x31a2c3(0xf4))](_0x399e10,_0x4c2fee);for(const {startOffset:_0x561fc3,endOffset:_0x5f25b7,collapsed:_0x43e706,isActive:_0xf27d01}of _0x329f75){const _0x17883f=_0x4c2fee['findNodePositionByCharIndex'](_0x561fc3),_0x3bdb49=_0x4c2fee[_0x31a2c3(0x150)](_0x5f25b7);if(_0xf27d01){const {contentBoxPointGroup:_0x6304a1}=_0x48cc1b['getRangePointData'](_0x3bdb49,_0x3bdb49);if(_0x6304a1[_0x31a2c3(0x3d6)]===0x0)continue;this[_0x31a2c3(0x286)](_0x7d9f22,_0x6304a1,_0x14fc12,_0x3fe0ba,_0x3fd76a),this[_0x31a2c3(0x3fc)]=this[_0x31a2c3(0x365)]();}if(!_0x43e706&&_0x17883f&&_0x3bdb49){if(_0x618f14[_0x31a2c3(0x36a)](_0x17883f,_0x3bdb49)){const _0x1deb30=new _0x618f14[(_0x31a2c3(0x239))](_0x399e10,_0x4c2fee),{pointGroup:_0xbdda10}=(_0x1e7d3f=_0x1deb30[_0x31a2c3(0x334)](_0x17883f,_0x3bdb49))!=null?_0x1e7d3f:{};if(_0xbdda10==null||_0xbdda10['length']===0x0)continue;this['_drawRectRange'](_0x7d9f22,_0xbdda10,_0x14fc12,_0x3fe0ba);}else{const {contentBoxPointGroup:_0x89b832}=_0x48cc1b[_0x31a2c3(0x334)](_0x17883f,_0x3bdb49);if(_0x89b832[_0x31a2c3(0x3d6)]===0x0)continue;this[_0x31a2c3(0x437)](_0x7d9f22,_0x89b832,_0x14fc12,_0x3fe0ba);}}}}[_0x3bc2c8(0x286)](_0x30fdde,_0xfdcf1d,_0x508a86,_0x481047,_0x128553){const _0x14a5d1=_0x3bc2c8,_0x16cfc4=this['_getAnchorBounding'](_0xfdcf1d),{left:_0x17bc78,top:_0x3953f3,height:_0x500c10}=_0x16cfc4,_0x4ee4d4=this[_0x14a5d1(0x316)](),_0x42dc2d=_0x55c328/_0x4ee4d4,_0x569e2f=new _0x46e2e3['Rect'](_0x255709+_0x5b7cfd[_0x14a5d1(0x2f6)]['generateRandomId'](_0x506fa5),{'left':_0x17bc78+_0x508a86-_0x42dc2d,'top':_0x3953f3+_0x481047,'height':_0x500c10,'width':_0x5221cc,'fill':_0x30fdde||_0x46e2e3[_0x14a5d1(0x3cc)](_0x5b7cfd[_0x14a5d1(0x3f4)][_0x14a5d1(0x439)],0x0),'strokeWidth':_0x42dc2d,'stroke':_0x2bf989,'evented':!0x0});this['_anchor']=_0x569e2f,this[_0x14a5d1(0x4f0)][_0x14a5d1(0x1a5)](_0x569e2f,_0x618f14[_0x14a5d1(0x2ad)]);const _0x223fb8=new _0x46e2e3['Rect'](_0x255709+_0x5b7cfd['Tools'][_0x14a5d1(0x1d9)](_0x506fa5),{'left':_0x17bc78+_0x508a86-_0x42dc2d,'top':_0x3953f3+_0x481047-_0x521a07/0x2,'height':_0x521a07,'width':_0x521a07,'fill':_0x30fdde||_0x46e2e3[_0x14a5d1(0x3cc)](_0x5b7cfd[_0x14a5d1(0x3f4)][_0x14a5d1(0x439)],0x0),'strokeWidth':0x0,'stroke':_0x30fdde||_0x46e2e3[_0x14a5d1(0x3cc)](_0x5b7cfd[_0x14a5d1(0x3f4)][_0x14a5d1(0x439)],0x0),'evented':!0x1});this[_0x14a5d1(0x2f7)]=_0x223fb8,this['_scene'][_0x14a5d1(0x1a5)](_0x223fb8,_0x618f14['TEXT_RANGE_LAYER_INDEX']);const _0x29d7df=new _0xb13772(_0x255709+_0x5b7cfd[_0x14a5d1(0x2f6)]['generateRandomId'](_0x506fa5),{'left':_0x17bc78+_0x508a86-_0x42dc2d,'top':_0x3953f3+_0x481047-_0x433f4b,'text':_0x128553,'color':_0x30fdde});this[_0x14a5d1(0x351)]=_0x29d7df,this['_scene']['addObject'](_0x29d7df,_0x618f14[_0x14a5d1(0x2ad)]),this[_0x14a5d1(0x1ed)]=!0x1;}[_0x3bc2c8(0x365)](){const _0x989078=_0x3bc2c8,_0x552300=this[_0x989078(0x231)]['onPointerEnter$'][_0x989078(0x457)](()=>{this['_hover']=!0x0;}),_0xd11fd2=this[_0x989078(0x231)][_0x989078(0x34d)][_0x989078(0x457)](()=>{const _0x2218d0=_0x989078;this[_0x2218d0(0x4cc)]&&clearTimeout(this[_0x2218d0(0x4cc)]),this['_hideTimer']=setTimeout(()=>{const _0x325fd2=_0x2218d0;this[_0x325fd2(0x1ed)]=!0x1;},0x7d0);});return()=>{const _0x123c90=_0x989078;_0x552300[_0x123c90(0x114)](),_0xd11fd2['unsubscribe']();};}[_0x3bc2c8(0x437)](_0x2eee2a,_0x2940d8,_0x3078e0,_0x43f0fa){const _0x3ea458=_0x3bc2c8,_0x3e6734=new _0x5b7cfd[(_0x3ea458(0x496))](_0x2eee2a)['setAlpha'](0.2)[_0x3ea458(0x360)](),_0x3957ef=new _0x46e2e3[(_0x3ea458(0x47c))](_0x3eff7a+_0x5b7cfd[_0x3ea458(0x2f6)][_0x3ea458(0x1d9)](_0x506fa5),{'pointsGroup':_0x2940d8,'fill':_0x3e6734||_0x46e2e3[_0x3ea458(0x3cc)](_0x5b7cfd[_0x3ea458(0x3f4)][_0x3ea458(0x439)],0.2),'left':_0x3078e0,'top':_0x43f0fa,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3ea458(0x21d)][_0x3ea458(0x13d)](_0x3957ef),this[_0x3ea458(0x4f0)]['addObject'](_0x3957ef,_0x618f14[_0x3ea458(0x2ad)]);}[_0x3bc2c8(0x2fa)](_0x1c38d9,_0x5df758,_0x56b2eb,_0x4ea399){const _0x20066e=_0x3bc2c8,_0xa57774=new _0x5b7cfd[(_0x20066e(0x496))](_0x1c38d9)[_0x20066e(0x4b5)](0.2)[_0x20066e(0x360)](),_0x39c583=new _0x46e2e3[(_0x20066e(0x47c))](_0x1da325+_0x5b7cfd['Tools'][_0x20066e(0x1d9)](_0x506fa5),{'pointsGroup':_0x5df758,'fill':_0xa57774||_0x46e2e3[_0x20066e(0x3cc)](_0x5b7cfd[_0x20066e(0x3f4)][_0x20066e(0x439)],0.2),'left':_0x56b2eb,'top':_0x4ea399,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x20066e(0x21d)][_0x20066e(0x13d)](_0x39c583),this[_0x20066e(0x4f0)][_0x20066e(0x1a5)](_0x39c583,_0x618f14[_0x20066e(0x2ad)]);}[_0x3bc2c8(0x27b)](_0x1d51fc){const _0x3a86fb=_0x1d51fc[0x0],_0x3f1f20=_0x3a86fb[0x0],_0x4bb393=_0x3a86fb[0x2],{x:_0x515343,y:_0x905f34}=_0x3f1f20,{x:_0x1fb7c3,y:_0x42b07d}=_0x4bb393;return{'left':_0x515343,'top':_0x905f34,'width':_0x1fb7c3-_0x515343,'height':_0x42b07d-_0x905f34};}[_0x3bc2c8(0x316)](){const _0x314859=_0x3bc2c8,{scaleX:_0x19ee83,scaleY:_0x353371}=this[_0x314859(0x4f0)]['getAncestorScale']();return Math['max'](_0x19ee83,_0x353371);}}var _0x355836=Object[_0x3bc2c8(0x361)],_0x25da5f=Object[_0x3bc2c8(0x48b)],_0x4fae0c=(_0x42eec8,_0x41c80d,_0x14f2c5,_0x584226)=>{for(var _0x1a6890=_0x584226>0x1?void 0x0:_0x584226?_0x25da5f(_0x41c80d,_0x14f2c5):_0x41c80d,_0x3e00a5=_0x42eec8['length']-0x1,_0x51df87;_0x3e00a5>=0x0;_0x3e00a5--)(_0x51df87=_0x42eec8[_0x3e00a5])&&(_0x1a6890=(_0x584226?_0x51df87(_0x41c80d,_0x14f2c5,_0x1a6890):_0x51df87(_0x1a6890))||_0x1a6890);return _0x584226&&_0x1a6890&&_0x355836(_0x41c80d,_0x14f2c5,_0x1a6890),_0x1a6890;},_0x4c8c24=(_0x2e1337,_0x1131a2)=>(_0x4f04b9,_0x28996e)=>_0x1131a2(_0x4f04b9,_0x28996e,_0x2e1337);let _0x260281=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x400fac,_0x487bd3,_0x49082b,_0x2982ea,_0x4b35b1){const _0x260dab=_0x3bc2c8;super(),_0x314dc6(this,'_cursorShapes',[]),_0x314dc6(this,_0x260dab(0x10a),[]),(this[_0x260dab(0x331)]=_0x400fac,this[_0x260dab(0x434)]=_0x487bd3,this[_0x260dab(0xf8)]=_0x49082b,this['_commandService']=_0x2982ea,this['_themeService']=_0x4b35b1,this[_0x260dab(0x276)]());}[_0x3bc2c8(0x276)](){const _0x504f79=_0x3bc2c8,_0xafcf92=this[_0x504f79(0x331)][_0x504f79(0x373)],_0x48b83f=this[_0x504f79(0x434)];this[_0x504f79(0x131)](_0x266483[_0x504f79(0x1ef)]([this[_0x504f79(0xf8)][_0x504f79(0x4c6)](_0xafcf92),this[_0x504f79(0x348)][_0x504f79(0x230)]])[_0x504f79(0x198)](_0x51de38[_0x504f79(0x39c)](([_0x2d381a,_0x230179])=>({'skeleton':_0x48b83f[_0x504f79(0x26f)](),'cursors':[..._0x2d381a[_0x504f79(0x4c2)]()][_0x504f79(0x448)](_0x31a71f=>({..._0x31a71f,'color':_0x230179[_0x31a71f[_0x504f79(0x3da)]]}))})))[_0x504f79(0x2f5)](_0x4dad92=>{const _0x434181=_0x504f79;if(this[_0x434181(0x2a9)](),_0x4dad92){const {skeleton:_0x57aafb,cursors:_0x123c0d}=_0x4dad92;this[_0x434181(0x37c)](_0x57aafb,_0x123c0d);}})),this[_0x504f79(0xfe)](),this[_0x504f79(0x4a6)]();}[_0x3bc2c8(0x37c)](_0xf89e9b,_0x27ae18){const _0x2291d0=_0x3bc2c8,{scene:_0x5a0ccb,mainComponent:_0x1775a8}=this[_0x2291d0(0x331)],_0x509170=_0x27ae18[_0x2291d0(0x39c)](_0x1988f4=>new _0x330227(_0x1988f4,_0x5a0ccb,_0xf89e9b,_0x1775a8));this[_0x2291d0(0xf2)]=_0x509170,this[_0x2291d0(0x10a)]=_0x27ae18;}[_0x3bc2c8(0x236)](){const _0x3e5df8=_0x3bc2c8;this[_0x3e5df8(0x2a9)]();const {scene:_0x66cbf8,mainComponent:_0x5ebcd7}=this['_context'],_0x205ae8=this[_0x3e5df8(0x434)][_0x3e5df8(0x26f)](),_0x4f178a=this[_0x3e5df8(0x10a)][_0x3e5df8(0x39c)](_0x15a943=>new _0x330227(_0x15a943,_0x66cbf8,_0x205ae8,_0x5ebcd7));this['_cursorShapes']=_0x4f178a;}[_0x3bc2c8(0x2a9)](){const _0x2dba12=_0x3bc2c8;this['_cursorShapes']['forEach'](_0x165807=>_0x165807[_0x2dba12(0x314)]()),this[_0x2dba12(0xf2)]=[];}[_0x3bc2c8(0x4a6)](){const _0x4ea157=_0x3bc2c8,_0x20f68c=[_0x618f14[_0x4ea157(0x3af)]['id']];this['disposeWithMe'](this[_0x4ea157(0x2c6)][_0x4ea157(0x15f)](_0x5bf0e7=>{const _0x23d03f=_0x4ea157;_0x20f68c[_0x23d03f(0x3a9)](_0x5bf0e7['id'])&&_0x5bf0e7['params'][_0x23d03f(0x373)]===this[_0x23d03f(0x331)][_0x23d03f(0x373)]&&this['_refreshCollabCursors']();}));}[_0x3bc2c8(0xfe)](){const _0x318200=_0x3bc2c8;this[_0x318200(0x131)](_0x5b7cfd[_0x318200(0x444)](this[_0x318200(0x331)][_0x318200(0x249)][_0x318200(0x3fa)])[_0x318200(0x198)](_0x51de38[_0x318200(0x3b6)](_0xebe101=>_0xebe101[_0x318200(0x413)]===_0x46e2e3[_0x318200(0x2ae)][_0x318200(0x2d3)]),_0x51de38[_0x318200(0x4f6)](0x10))[_0x318200(0x2f5)](()=>{const _0x5c076c=_0x318200;this[_0x5c076c(0x236)]();}));}};_0x260281=_0x4fae0c([_0x5b7cfd[_0x3bc2c8(0x50d)](_0x5b7cfd[_0x3bc2c8(0x20b)][_0x3bc2c8(0x1e0)],_0x260281),_0x4c8c24(0x1,_0x5b7cfd['Inject'](_0x3e2148[_0x3bc2c8(0x3ca)])),_0x4c8c24(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x47bd3e)),_0x4c8c24(0x3,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x4c8c24(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x308)]))],_0x260281);const _0x26cee5=0x1,_0x3fc450=1.5;class _0x44ac57 extends _0x46e2e3[_0x3bc2c8(0x343)]{constructor(_0x5162b6,_0x1e36c8){const _0x38e431=_0x3bc2c8;super(_0x5162b6,_0x1e36c8),_0x314dc6(this,_0x38e431(0x20c)),_0x314dc6(this,'_hovered',!0x1),_0x314dc6(this,_0x38e431(0x16c)),_0x314dc6(this,_0x38e431(0x4be),''),_0x314dc6(this,_0x38e431(0x483),_0x38e431(0x264)),_0x314dc6(this,_0x38e431(0x260)),(_0x1e36c8&&this['setShapeProps'](_0x1e36c8),this[_0x38e431(0x3e4)][_0x38e431(0x457)](()=>this[_0x38e431(0x3ef)]({'hovered':!0x0})),this[_0x38e431(0x34d)][_0x38e431(0x457)](()=>this[_0x38e431(0x3ef)]({'hovered':!0x1})));}['setShapeProps'](_0x1e0cfa){const _0x166df9=_0x3bc2c8;var _0x155894,_0x1cd2a6,_0xd4023a,_0x4a2ddd,_0x31c47e,_0x44df32;this[_0x166df9(0x20c)]=(_0x155894=_0x1e0cfa['color'])!=null?_0x155894:this[_0x166df9(0x20c)],this[_0x166df9(0x277)]=(_0x1cd2a6=_0x1e0cfa[_0x166df9(0x432)])!=null?_0x1cd2a6:this[_0x166df9(0x277)],this[_0x166df9(0x16c)]=(_0xd4023a=_0x1e0cfa[_0x166df9(0x177)])!=null?_0xd4023a:this[_0x166df9(0x16c)],this['_name']=(_0x4a2ddd=_0x1e0cfa['name'])!=null?_0x4a2ddd:this[_0x166df9(0x4be)],this[_0x166df9(0x483)]=(_0x31c47e=_0x1e0cfa[_0x166df9(0x428)])!=null?_0x31c47e:this[_0x166df9(0x483)],this['_backgroundColor']=(_0x44df32=_0x1e0cfa['backgroundColor'])!=null?_0x44df32:this['_backgroundColor'],this['transformByState']({'width':_0x1e0cfa['width'],'height':_0x1e0cfa[_0x166df9(0x3e5)]});}[_0x3bc2c8(0x427)](_0xeaf19e){const _0x770c0c=_0x3bc2c8,{row:_0x203b23,column:_0x3df94e}=_0xeaf19e;if(_0x203b23>=this[_0x770c0c(0x16c)][_0x770c0c(0x257)]&&_0x203b23<=this[_0x770c0c(0x16c)][_0x770c0c(0x370)]&&_0x3df94e>=this[_0x770c0c(0x16c)][_0x770c0c(0x17a)]&&_0x3df94e<=this[_0x770c0c(0x16c)][_0x770c0c(0x460)]){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x3bc2c8(0x422)](_0x3264bc){return!0x1;}[_0x3bc2c8(0x1c7)](_0x16cc4d){const _0xc3c6fc=_0x3bc2c8;_0x46e2e3[_0xc3c6fc(0x1c3)]['drawWith'](_0x16cc4d,{'width':this[_0xc3c6fc(0x1b3)],'height':this[_0xc3c6fc(0x3e5)],'strokeWidth':_0x3fc450,'stroke':this['_color'],'evented':!0x1,'fill':this[_0xc3c6fc(0x260)]}),this[_0xc3c6fc(0x277)]&&(_0x16cc4d['save'](),_0x16cc4d['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0xc3c6fc(0x483)]===_0xc3c6fc(0x4ac)?0x0:-_0x433f4b),_0xb13772[_0xc3c6fc(0xff)](_0x16cc4d,{'text':this[_0xc3c6fc(0x4be)],'color':this[_0xc3c6fc(0x20c)]}),_0x16cc4d[_0xc3c6fc(0x468)]());}}var _0x5808aa=Object[_0x3bc2c8(0x361)],_0x1104f7=Object[_0x3bc2c8(0x48b)],_0x5c93f6=(_0x5c0922,_0x5b0e1b,_0x2f0107,_0x1dd326)=>{const _0x882e4f=_0x3bc2c8;for(var _0x3a9202=_0x1dd326>0x1?void 0x0:_0x1dd326?_0x1104f7(_0x5b0e1b,_0x2f0107):_0x5b0e1b,_0x3f12ed=_0x5c0922[_0x882e4f(0x3d6)]-0x1,_0x3d9cf4;_0x3f12ed>=0x0;_0x3f12ed--)(_0x3d9cf4=_0x5c0922[_0x3f12ed])&&(_0x3a9202=(_0x1dd326?_0x3d9cf4(_0x5b0e1b,_0x2f0107,_0x3a9202):_0x3d9cf4(_0x3a9202))||_0x3a9202);return _0x1dd326&&_0x3a9202&&_0x5808aa(_0x5b0e1b,_0x2f0107,_0x3a9202),_0x3a9202;},_0x35f6d1=(_0x4b1141,_0x529007)=>(_0x115a33,_0x4f9639)=>_0x529007(_0x115a33,_0x4f9639,_0x4b1141);const _0x3dacb1=0x1389;let _0x18e89b=class extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(_0x4380e9,_0x484e6d,_0x39e9ef,_0x223540){const _0x47ca74=_0x3bc2c8;super(),_0x314dc6(this,_0x47ca74(0x10a),new Set()),_0x314dc6(this,_0x47ca74(0x4ef),null),(this['_context']=_0x4380e9,this[_0x47ca74(0x4b0)]=_0x484e6d,this['_collabCursorController']=_0x39e9ef,this['_themeService']=_0x223540,this['_init']());}[_0x3bc2c8(0x276)](){const _0x8a399b=_0x3bc2c8;this[_0x8a399b(0x4b0)]['currentSkeleton$'][_0x8a399b(0x198)](_0x51de38['takeUntil'](this['dispose$']),_0x51de38[_0x8a399b(0x4a8)](_0x12176a=>{const _0x11b85c=_0x8a399b;if(_0x12176a){const _0x4de74b=_0x12176a[_0x11b85c(0x1e2)];return _0x266483[_0x11b85c(0x1ef)](this[_0x11b85c(0xf8)][_0x11b85c(0x4c6)](this[_0x11b85c(0x331)]['unitId']),this[_0x11b85c(0x348)][_0x11b85c(0x230)])[_0x11b85c(0x198)](_0x51de38['map'](([_0x3c17da,_0x1137c4])=>{const _0x3759e4=_0x11b85c,_0x1deb1d=new Map();return _0x3c17da[_0x3759e4(0x255)]((_0x4fae89,_0x2ee577)=>{const _0x1237ab=_0x3759e4;if(_0x4fae89[_0x1237ab(0x415)]===_0x4de74b){const _0x3eec82={..._0x4fae89};_0x3eec82['color']=_0x1137c4[_0x4fae89[_0x1237ab(0x3da)]],_0x1deb1d[_0x1237ab(0x10d)](_0x2ee577,_0x3eec82);}}),{'skeleton':_0x12176a,'cursors':_0x1deb1d};}));}return _0x266483['of']({'skeleton':null,'cursors':new Map()});}))[_0x8a399b(0x2f5)](({skeleton:_0x531b97,cursors:_0x5aed34})=>{const _0x3fc575=_0x8a399b;this[_0x3fc575(0x2a9)](),_0x531b97&&this['_updateCollabCursors'](_0x531b97,_0x5aed34);}),this[_0x8a399b(0x4b0)]['currentSkeleton$'][_0x8a399b(0x2f5)](_0x405e15=>{const _0x1308cf=_0x8a399b;if(_0x405e15==null)return;const {skeleton:_0x196c83}=_0x405e15,{scene:_0x1f5806}=this['_context'];_0x1f5806['onPointerMove$'][_0x1308cf(0x457)](_0x5b7cfd[_0x1308cf(0x115)](_0x249730=>{const _0x3b9635=_0x1308cf;var _0x456e80,_0xf56c1d;const {offsetX:_0x3a1ec9,offsetY:_0x1d645e}=_0x249730,{x:_0xcea085,y:_0x6b400c}=_0x1f5806[_0x3b9635(0x272)](_0x46e2e3[_0x3b9635(0x121)][_0x3b9635(0x2e6)]([_0x3a1ec9,_0x1d645e])),{scaleX:_0x563f1b,scaleY:_0x53beaa}=_0x1f5806['getAncestorScale'](),_0x168940=_0x1f5806[_0x3b9635(0x47f)](_0x4a372b[_0x3b9635(0x178)][_0x3b9635(0x501)]),_0x2cb638=_0x1f5806[_0x3b9635(0x133)](_0x46e2e3[_0x3b9635(0x121)][_0x3b9635(0x2e6)]([_0xcea085,_0x6b400c]),_0x168940),_0x58005c=_0x196c83[_0x3b9635(0x4e5)](_0x3a1ec9,_0x1d645e,_0x563f1b,_0x53beaa,_0x2cb638);((_0x456e80=this[_0x3b9635(0x4ef)])==null?void 0x0:_0x456e80['column'])===_0x58005c[_0x3b9635(0x1e4)]&&((_0xf56c1d=this[_0x3b9635(0x4ef)])==null?void 0x0:_0xf56c1d[_0x3b9635(0x39d)])===_0x58005c['row']||this[_0x3b9635(0x10a)][_0x3b9635(0x255)](_0x47fab4=>{const _0x192dfa=_0x3b9635;_0x47fab4[_0x192dfa(0x427)](_0x58005c);});},0x64));});}['_updateCollabCursors'](_0x5ebc5e,_0x52f80a){const _0x806d37=_0x3bc2c8;var _0x713f66;const _0x19114c=(_0x713f66=this['_sheetSkeletonManagerService'][_0x806d37(0x48e)]())==null?void 0x0:_0x713f66[_0x806d37(0x1bc)];if(!_0x19114c)return;const _0xda43aa=this[_0x806d37(0x20f)]();if(!_0xda43aa)return;this[_0x806d37(0x10a)][_0x806d37(0x255)](_0xa1098=>{const _0x148609=_0x806d37;_0xa1098[_0x148609(0x488)]();});const {scene:_0x1b7ee9}=_0xda43aa,_0x207245=_0x5e3529(Array[_0x806d37(0x1e3)](_0x52f80a[_0x806d37(0x4c2)]()))[_0x806d37(0x39c)](_0x53ec29=>{const _0x5a6ee3=_0x806d37,{color:_0x4c2840,range:_0x188e94,name:_0x54f06f,selection:_0x2dbf89,sheetID:_0x597908}=_0x53ec29,{startColumn:_0x165855,startRow:_0xc5e3c7,endColumn:_0x38e12b,endRow:_0x22d30b}=_0x188e94,_0x59a45c=_0x4a372b[_0x5a6ee3(0x3b8)](_0xc5e3c7,_0x165855,_0x1b7ee9,_0x19114c),_0x553709=_0x4a372b[_0x5a6ee3(0x3b8)](_0x22d30b,_0x38e12b,_0x1b7ee9,_0x19114c),{columnHeaderHeightAndMarginTop:_0x4f1347}=_0x19114c,{startX:_0x105e79,startY:_0x24c616}=_0x59a45c,{endX:_0x181416,endY:_0x284159}=_0x553709,_0x23504b=_0x181416-_0x105e79,_0x5b078a=_0x284159-_0x24c616,_0x1822bb={'labelPosition':_0x24c616-_0x4f1347>=_0x433f4b?'top':_0x5a6ee3(0x4ac),'sheetID':_0x597908,'range':_0x188e94,'color':_0x4c2840,'name':_0x54f06f,'selection':_0x2dbf89,'left':_0x105e79,'top':_0x24c616,'width':_0x23504b,'height':_0x5b078a,'evented':!0x1,'zIndex':_0x3dacb1};return new _0x44ac57(_0x54f06f,_0x1822bb);});_0x1b7ee9[_0x806d37(0x445)](_0x207245,_0x26cee5),this['_cursors']=new Set(_0x207245);}[_0x3bc2c8(0x2a9)](){const _0x17f332=_0x3bc2c8;var _0x45177d;(_0x45177d=this['_cursors'])==null||_0x45177d[_0x17f332(0x255)](_0x32952a=>_0x32952a[_0x17f332(0x314)]());}['_getSheetObject'](){const _0x2b1367=_0x3bc2c8;return _0x4a372b['getSheetObject'](this[_0x2b1367(0x331)][_0x2b1367(0x155)],this[_0x2b1367(0x331)]);}};_0x18e89b=_0x5c93f6([_0x35f6d1(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x4a372b[_0x3bc2c8(0x18d)])),_0x35f6d1(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x47bd3e)),_0x35f6d1(0x3,_0x5b7cfd['Inject'](_0x5b7cfd[_0x3bc2c8(0x308)]))],_0x18e89b);function _0x5e3529(_0x30fc69){const _0xfb23de=_0x3bc2c8,_0x5e63c0=new Map();return _0x30fc69[_0xfb23de(0x255)](_0x7954e1=>{const _0xef1212=_0xfb23de;if(_0x5e63c0[_0xef1212(0x232)](_0x7954e1[_0xef1212(0x2b1)])){const _0x80d5b6=_0x5e63c0[_0xef1212(0x451)](_0x7954e1['selection']);_0x80d5b6[_0xef1212(0x161)]+=',\x20'+_0x7954e1[_0xef1212(0x161)];}else _0x5e63c0[_0xef1212(0x10d)](_0x7954e1['selection'],_0x7954e1);}),Array[_0xfb23de(0x1e3)](_0x5e63c0['values']());}var _0x531d50=function(){const _0x56a5b2=_0x3bc2c8;return _0x531d50=Object[_0x56a5b2(0x4b1)]||function(_0x1ea76c){const _0x5df324=_0x56a5b2;for(var _0x4aeaa0,_0x1dd5c8=0x1,_0x57769f=arguments[_0x5df324(0x3d6)];_0x1dd5c8<_0x57769f;_0x1dd5c8++){_0x4aeaa0=arguments[_0x1dd5c8];for(var _0xe57257 in _0x4aeaa0)Object['prototype'][_0x5df324(0x44f)][_0x5df324(0x126)](_0x4aeaa0,_0xe57257)&&(_0x1ea76c[_0xe57257]=_0x4aeaa0[_0xe57257]);}return _0x1ea76c;},_0x531d50[_0x56a5b2(0x458)](this,arguments);},_0x4d0f31=function(_0x534146,_0x5ce0d5){const _0xa7dcda=_0x3bc2c8;var _0x1a4d87={};for(var _0x16723d in _0x534146)Object['prototype'][_0xa7dcda(0x44f)][_0xa7dcda(0x126)](_0x534146,_0x16723d)&&_0x5ce0d5[_0xa7dcda(0x3d2)](_0x16723d)<0x0&&(_0x1a4d87[_0x16723d]=_0x534146[_0x16723d]);if(_0x534146!=null&&typeof Object['getOwnPropertySymbols']==_0xa7dcda(0x4ab)){for(var _0x215986=0x0,_0x16723d=Object[_0xa7dcda(0x4c8)](_0x534146);_0x215986<_0x16723d[_0xa7dcda(0x3d6)];_0x215986++)_0x5ce0d5[_0xa7dcda(0x3d2)](_0x16723d[_0x215986])<0x0&&Object[_0xa7dcda(0x293)]['propertyIsEnumerable'][_0xa7dcda(0x126)](_0x534146,_0x16723d[_0x215986])&&(_0x1a4d87[_0x16723d[_0x215986]]=_0x534146[_0x16723d[_0x215986]]);}return _0x1a4d87;},_0x430fdf=_0x1b993c[_0x3bc2c8(0x3c7)](function(_0x14590b,_0x464674){const _0x47292b=_0x3bc2c8;var _0x1fc5ea=_0x14590b[_0x47292b(0x45d)],_0x30051e=_0x14590b['id'],_0x4a235c=_0x14590b['className'],_0x42c47f=_0x14590b[_0x47292b(0x473)],_0x206809=_0x4d0f31(_0x14590b,[_0x47292b(0x45d),'id',_0x47292b(0x508),_0x47292b(0x473)]),_0xb6358e='univerjs-icon\x20univerjs-icon-'[_0x47292b(0x353)](_0x30051e,'\x20')[_0x47292b(0x353)](_0x4a235c||'')[_0x47292b(0x2da)](),_0x151c2a=_0x1b993c['useRef']('_'[_0x47292b(0x353)](_0x50a049()));return _0x26bb80(_0x1fc5ea,''[_0x47292b(0x353)](_0x30051e),{'defIds':_0x1fc5ea[_0x47292b(0x37f)],'idSuffix':_0x151c2a[_0x47292b(0x4fb)]},_0x531d50({'ref':_0x464674,'className':_0xb6358e},_0x206809),_0x42c47f);});function _0x26bb80(_0x1bc876,_0x1f6444,_0x4011bc,_0x4c625b,_0x4518b8){const _0x59e4aa=_0x3bc2c8;return _0x1b993c[_0x59e4aa(0x213)](_0x1bc876['tag'],_0x531d50(_0x531d50({'key':_0x1f6444},_0x1578db(_0x1bc876,_0x4011bc,_0x4518b8)),_0x4c625b),(_0x1d34b7(_0x1bc876,_0x4011bc)[_0x59e4aa(0x3db)]||[])['map'](function(_0x5e934d,_0x29a713){const _0xa52f3d=_0x59e4aa;return _0x26bb80(_0x5e934d,''[_0xa52f3d(0x353)](_0x1f6444,'-')[_0xa52f3d(0x353)](_0x1bc876[_0xa52f3d(0x44c)],'-')[_0xa52f3d(0x353)](_0x29a713),_0x4011bc,void 0x0,_0x4518b8);}));}function _0x1578db(_0x11e1c2,_0x41edcd,_0x42fbfc){const _0x107169=_0x3bc2c8;var _0x29c436=_0x531d50({},_0x11e1c2['attrs']);_0x42fbfc!=null&&_0x42fbfc[_0x107169(0x3f1)]&&_0x29c436[_0x107169(0xe6)]===_0x107169(0x3f1)&&(_0x29c436[_0x107169(0xe6)]=_0x42fbfc['colorChannel1']);var _0x1aa831=_0x41edcd[_0x107169(0x37f)];return!_0x1aa831||_0x1aa831[_0x107169(0x3d6)]===0x0||(_0x11e1c2[_0x107169(0x44c)]==='use'&&_0x29c436[_0x107169(0x30e)]&&(_0x29c436['xlink:href']=_0x29c436[_0x107169(0x30e)]+_0x41edcd[_0x107169(0x1ec)]),Object['entries'](_0x29c436)['forEach'](function(_0x16502a){const _0x4c0934=_0x107169;var _0x3d787a=_0x16502a[0x0],_0x497678=_0x16502a[0x1];typeof _0x497678=='string'&&(_0x29c436[_0x3d787a]=_0x497678[_0x4c0934(0x47a)](/url\(#(.*)\)/,_0x4c0934(0x190)['concat'](_0x41edcd['idSuffix'],')')));})),_0x29c436;}function _0x1d34b7(_0x2dfe0b,_0x2f4be8){const _0x3adafc=_0x3bc2c8;var _0x209374,_0x29c2b2=_0x2f4be8['defIds'];return!_0x29c2b2||_0x29c2b2[_0x3adafc(0x3d6)]===0x0?_0x2dfe0b:_0x2dfe0b[_0x3adafc(0x44c)]===_0x3adafc(0x31a)&&(!((_0x209374=_0x2dfe0b['children'])===null||_0x209374===void 0x0)&&_0x209374[_0x3adafc(0x3d6)])?_0x531d50(_0x531d50({},_0x2dfe0b),{'children':_0x2dfe0b[_0x3adafc(0x3db)][_0x3adafc(0x39c)](function(_0x11be5c){const _0x496669=_0x3adafc;return typeof _0x11be5c[_0x496669(0x1df)]['id']==_0x496669(0x210)&&_0x29c2b2&&_0x29c2b2[_0x496669(0x3d2)](_0x11be5c[_0x496669(0x1df)]['id'])>-0x1?_0x531d50(_0x531d50({},_0x11be5c),{'attrs':_0x531d50(_0x531d50({},_0x11be5c[_0x496669(0x1df)]),{'id':_0x11be5c['attrs']['id']+_0x2f4be8['idSuffix']})}):_0x11be5c;})}):_0x2dfe0b;}function _0x50a049(){const _0x18e4dd=_0x3bc2c8;return Math['random']()[_0x18e4dd(0x35c)](0x24)[_0x18e4dd(0x1c1)](0x2,0x8);}_0x430fdf[_0x3bc2c8(0x407)]=_0x3bc2c8(0x42d);var _0x33d4af={'tag':_0x3bc2c8(0x474),'attrs':{'fill':'none','viewBox':_0x3bc2c8(0x4e3),'width':'1em','height':_0x3bc2c8(0x4d5)},'children':[{'tag':'g','attrs':{'clipPath':_0x3bc2c8(0x502)},'children':[{'tag':_0x3bc2c8(0x33f),'attrs':{'stroke':_0x3bc2c8(0x31e),'d':_0x3bc2c8(0x38e),'strokeLinecap':_0x3bc2c8(0x4d3),'strokeLinejoin':_0x3bc2c8(0x4d3),'strokeWidth':1.2}}]},{'tag':_0x3bc2c8(0x31a),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x3bc2c8(0x33f),'attrs':{'fill':_0x3bc2c8(0x354),'d':_0x3bc2c8(0xdc)}}]}]}],'defIds':[_0x3bc2c8(0x345)]},_0x237fca=_0x1b993c[_0x3bc2c8(0x3c7)](function(_0x5a00dd,_0x6920a7){const _0x433f0a=_0x3bc2c8;return _0x1b993c[_0x433f0a(0x213)](_0x430fdf,Object[_0x433f0a(0x4b1)]({},_0x5a00dd,{'id':_0x433f0a(0x1dc),'ref':_0x6920a7,'icon':_0x33d4af}));});_0x237fca['displayName']=_0x3bc2c8(0x244);var _0x42bcec={'tag':_0x3bc2c8(0x474),'attrs':{'fill':_0x3bc2c8(0x3a8),'viewBox':'0\x200\x2017\x2016','width':_0x3bc2c8(0x4d5),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x3bc2c8(0x33f),'attrs':{'stroke':_0x3bc2c8(0x31e),'d':_0x3bc2c8(0x28a),'strokeLinecap':_0x3bc2c8(0x4d3),'strokeLinejoin':_0x3bc2c8(0x4d3),'strokeWidth':1.2}}]},{'tag':_0x3bc2c8(0x31a),'attrs':{},'children':[{'tag':_0x3bc2c8(0x237),'attrs':{'id':_0x3bc2c8(0x49c)},'children':[{'tag':_0x3bc2c8(0x33f),'attrs':{'fill':_0x3bc2c8(0x354),'d':_0x3bc2c8(0xdc),'transform':_0x3bc2c8(0x1bd)}}]}]}],'defIds':[_0x3bc2c8(0x49c)]},_0x23f251=_0x1b993c[_0x3bc2c8(0x3c7)](function(_0x1605a6,_0x4b17d0){const _0x5a30cf=_0x3bc2c8;return _0x1b993c['createElement'](_0x430fdf,Object[_0x5a30cf(0x4b1)]({},_0x1605a6,{'id':_0x5a30cf(0x1d2),'ref':_0x4b17d0,'icon':_0x42bcec}));});_0x23f251[_0x3bc2c8(0x407)]=_0x3bc2c8(0x18a);const _0x1a4172={'onlineStatusIcon':_0x3bc2c8(0x153),'onlineStatusTitle':'univer-online-status-title','onlineStatus':_0x3bc2c8(0x284),'online':_0x3bc2c8(0x1f5),'offline':_0x3bc2c8(0xe5)};function _0x45a2ae(_0x57a7bc){const _0x3143d1=_0x3bc2c8;switch(_0x57a7bc){case _0x5926c5['OFFLINE']:return'collabStatus.offline';case _0x5926c5[_0x3143d1(0x35d)]:return _0x3143d1(0x4ce);case _0x5926c5[_0x3143d1(0x104)]:return _0x3143d1(0x336);case _0x5926c5[_0x3143d1(0x352)]:return _0x3143d1(0x4e9);case _0x5926c5[_0x3143d1(0x263)]:case _0x5926c5['AWAITING']:case _0x5926c5[_0x3143d1(0x268)]:return'collabStatus.syncing';case _0x5926c5[_0x3143d1(0xfd)]:return _0x3143d1(0x418);}}function _0x2c3280(_0x280f4c){const _0x5c36d0=_0x3bc2c8,{status$:_0x480b9e}=_0x280f4c,_0xd00258=_0x2ce95d['useObservable'](_0x480b9e,_0x5926c5[_0x5c36d0(0x352)]),_0x4414e3=_0x5b7cfd[_0x5c36d0(0x3ff)](_0x5b7cfd[_0x5c36d0(0x385)]),_0x5ce884=_0x5b7cfd[_0x5c36d0(0x3ff)](_0x48e51e[_0x5c36d0(0x1d8)]),_0x122164=_0xd00258!==_0x5926c5[_0x5c36d0(0x3b0)],_0x4fb46c=_0x4414e3['t'](_0x45a2ae(_0xd00258)),_0x478dfa=_0x3f7833(_0x1a4172[_0x5c36d0(0x1a2)],{[_0x1a4172[_0x5c36d0(0x3eb)]]:_0x122164,[_0x1a4172[_0x5c36d0(0x392)]]:!_0x122164}),_0x777c13=_0x122164?_0x1b993c[_0x5c36d0(0x213)](_0x23f251,null):_0x1b993c[_0x5c36d0(0x213)](_0x237fca,null),_0x30396a=_0x1b993c[_0x5c36d0(0xe0)](()=>{const _0x568c35=_0x5c36d0;_0x122164||_0x5ce884[_0x568c35(0x28d)]();},[_0x122164,_0x5ce884]);function _0x47add1(){const _0x8741bc=_0x5c36d0;return _0x1b993c[_0x8741bc(0x213)](_0x8741bc(0x20a),{'className':_0x478dfa,'onClick':_0x30396a},_0x1b993c[_0x8741bc(0x213)]('div',{'className':_0x1a4172[_0x8741bc(0x266)]},_0x777c13),_0x1b993c[_0x8741bc(0x213)]('div',{'className':_0x1a4172['onlineStatusTitle']},_0x4fb46c));}return _0x122164?_0x47add1():_0x1b993c[_0x5c36d0(0x213)](_0x4466a1[_0x5c36d0(0x386)],{'title':_0x4414e3['t']('collab-client.tooltip.reconnect')},_0x47add1());}var _0x50b81e=Object[_0x3bc2c8(0x361)],_0x50292a=Object[_0x3bc2c8(0x48b)],_0x969e56=(_0x2d147f,_0x22e09d,_0x3ca6fc,_0x482696)=>{const _0x31838f=_0x3bc2c8;for(var _0xeb5e43=_0x482696>0x1?void 0x0:_0x482696?_0x50292a(_0x22e09d,_0x3ca6fc):_0x22e09d,_0xc84db1=_0x2d147f[_0x31838f(0x3d6)]-0x1,_0x1f5ab5;_0xc84db1>=0x0;_0xc84db1--)(_0x1f5ab5=_0x2d147f[_0xc84db1])&&(_0xeb5e43=(_0x482696?_0x1f5ab5(_0x22e09d,_0x3ca6fc,_0xeb5e43):_0x1f5ab5(_0xeb5e43))||_0xeb5e43);return _0x482696&&_0xeb5e43&&_0x50b81e(_0x22e09d,_0x3ca6fc,_0xeb5e43),_0xeb5e43;},_0x521eee=(_0xa99342,_0x53ea5a)=>(_0xa8c325,_0x23c538)=>_0x53ea5a(_0xa8c325,_0x23c538,_0xa99342);_0x48e51e[_0x3bc2c8(0x4ed)]=class extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(_0x478886,_0x513413,_0x3f8570,_0x465099){const _0x38a3ce=_0x3bc2c8;super(),_0x314dc6(this,_0x38a3ce(0x400),new _0x266483[(_0x38a3ce(0x43e))](_0x5926c5[_0x38a3ce(0x352)])),(this[_0x38a3ce(0x10b)]=_0x478886,this['_uiPartsService']=_0x513413,this['_injector']=_0x3f8570,this['_collaborationController']=_0x465099,this[_0x38a3ce(0x3ae)](),this[_0x38a3ce(0x50c)]());}['_initStatusListener'](){const _0x46ed8d=_0x3bc2c8;this[_0x46ed8d(0x131)](this[_0x46ed8d(0x10b)][_0x46ed8d(0x228)][_0x46ed8d(0x198)](_0x266483[_0x46ed8d(0x4a8)](()=>{const _0x1b4afb=_0x46ed8d,_0x2fee15=this[_0x1b4afb(0x10b)]['getFocusedUnit']();return _0x2fee15?this[_0x1b4afb(0x2b2)][_0x1b4afb(0x27a)](_0x2fee15[_0x1b4afb(0x183)]()):_0x266483['of'](null);}),_0x266483[_0x46ed8d(0x4a8)](_0x2f460b=>_0x2f460b?_0x2f460b[_0x46ed8d(0x294)]:_0x266483['of'](_0x5926c5[_0x46ed8d(0x352)])))[_0x46ed8d(0x2f5)](_0x29e6ef=>{const _0x4187e7=_0x46ed8d;this[_0x4187e7(0x400)]['next'](_0x29e6ef);}));}[_0x3bc2c8(0x3ae)](){const _0x332b17=_0x3bc2c8;this[_0x332b17(0x131)](this['_uiPartsService'][_0x332b17(0xd7)](_0x2ce95d[_0x332b17(0x1f3)]['HEADER_MENU'],()=>_0x5b7cfd[_0x332b17(0x4df)](_0x149a3b({'status$':this[_0x332b17(0x400)][_0x332b17(0x4eb)]()}),this[_0x332b17(0x30f)])));}},_0x48e51e[_0x3bc2c8(0x4ed)]=_0x969e56([_0x521eee(0x0,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x521eee(0x1,_0x2ce95d['IUIPartsService']),_0x521eee(0x2,_0x5b7cfd['Inject'](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x521eee(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x30c)]))],_0x48e51e[_0x3bc2c8(0x4ed)]);function _0x149a3b(_0x356288){const {status$:_0x222945}=_0x356288;return function(){return _0x1b993c['createElement'](_0x2c3280,{'status$':_0x222945});};}const _0x325c17=_0x5b7cfd['createIdentifier'](_0x3bc2c8(0x19e));var _0x23ac03=Object[_0x3bc2c8(0x361)],_0x2037ff=Object[_0x3bc2c8(0x48b)],_0x311bd6=(_0x5c9e48,_0x48820c,_0x225a89,_0x6a7cfe)=>{for(var _0x325694=_0x6a7cfe>0x1?void 0x0:_0x6a7cfe?_0x2037ff(_0x48820c,_0x225a89):_0x48820c,_0x37a933=_0x5c9e48['length']-0x1,_0x59965d;_0x37a933>=0x0;_0x37a933--)(_0x59965d=_0x5c9e48[_0x37a933])&&(_0x325694=(_0x6a7cfe?_0x59965d(_0x48820c,_0x225a89,_0x325694):_0x59965d(_0x325694))||_0x325694);return _0x6a7cfe&&_0x325694&&_0x23ac03(_0x48820c,_0x225a89,_0x325694),_0x325694;},_0x37f9ca=(_0x3ea53b,_0x41abad)=>(_0x2e825c,_0x4cc5d0)=>_0x41abad(_0x2e825c,_0x4cc5d0,_0x3ea53b);_0x48e51e[_0x3bc2c8(0x3a2)]=class extends _0x5b7cfd['RxDisposable']{constructor(_0xf1a53b,_0xbdb6f8,_0x526412,_0x3480c3,_0x2f3860,_0x210a7e){const _0x5a00eb=_0x3bc2c8;super(),this[_0x5a00eb(0x4d9)]=_0xf1a53b,this[_0x5a00eb(0x4e7)]=_0xbdb6f8,this[_0x5a00eb(0x2c6)]=_0x526412,this['_localCacheService']=_0x3480c3,this[_0x5a00eb(0x1f2)]=_0x2f3860,_0x210a7e?_0x210a7e==null||_0x210a7e[_0x5a00eb(0x33a)]()[_0x5a00eb(0x3a3)](()=>this[_0x5a00eb(0x276)]()):(this[_0x5a00eb(0x4e7)]['debug'](_0x5a00eb(0x218),_0x5a00eb(0x3cb)),this[_0x5a00eb(0x276)]());}async[_0x3bc2c8(0x276)](){const _0xa0096b=_0x3bc2c8,_0x51b5da=this[_0xa0096b(0x4d9)][_0xa0096b(0x22f)]('unit'),_0x44163d=this['_urlService']['getParam'](_0xa0096b(0x413));if(!_0x51b5da||!_0x44163d){this[_0xa0096b(0x4e7)]['debug'](_0xa0096b(0x218),_0xa0096b(0x424));return;}switch(Number(_0x44163d)){case _0x249560[_0xa0096b(0x301)]:{const _0x4b164b=await this[_0xa0096b(0x2e9)](_0x51b5da);this[_0xa0096b(0x2cf)](_0x4b164b);break;}case _0x249560['UNIVER_DOC']:{await this[_0xa0096b(0x2a1)](_0x51b5da);break;}default:{this['_logService'][_0xa0096b(0x476)]('[DataLoaderController]',_0xa0096b(0x130));break;}}}async['_setupSubUnitSync'](_0x994924){const _0x191d7a=_0x3bc2c8;await this[_0x191d7a(0x510)](_0x994924),_0x994924[_0x191d7a(0x3d8)][_0x191d7a(0x198)](_0x266483['takeUntil'](this[_0x191d7a(0x2dd)]))[_0x191d7a(0x2f5)](_0x2291a3=>{const _0x259d6a=_0x191d7a;_0x2291a3&&this[_0x259d6a(0x347)](_0x2291a3);}),this['_urlService'][_0x191d7a(0x26c)][_0x191d7a(0x198)](_0x266483['takeUntil'](this[_0x191d7a(0x2dd)]))[_0x191d7a(0x2f5)](()=>this['_updateSubUnitFromURLParams'](_0x994924));}[_0x3bc2c8(0x347)](_0x1cb91f,_0xe1c168=!0x1){const _0x401f86=_0x3bc2c8,_0x56a48e=this[_0x401f86(0x4d9)]['getParam'](_0x401f86(0x2ce));_0x1cb91f[_0x401f86(0x43d)]()!==_0x56a48e&&this[_0x401f86(0x4d9)][_0x401f86(0x40f)]('subunit',_0x1cb91f[_0x401f86(0x43d)](),_0xe1c168);}async[_0x3bc2c8(0x510)](_0xd0f6b5){const _0x347144=_0x3bc2c8;var _0x24e10e;const _0x4dc6a7=this[_0x347144(0x4d9)]['getParam'](_0x347144(0x2ce));if(!_0x4dc6a7||!_0xd0f6b5[_0x347144(0x132)](_0x4dc6a7)){const _0x5d4cfe=_0xd0f6b5[_0x347144(0x4c4)]()[0x0],_0x2c638c=_0xd0f6b5[_0x347144(0x132)](_0x5d4cfe);if(!_0x2c638c)return;this[_0x347144(0x347)](_0x2c638c,!0x0),await this[_0x347144(0x2c6)]['executeCommand'](_0xa62622[_0x347144(0x23a)]['id'],{'unitId':_0xd0f6b5[_0x347144(0x183)](),'subUnitId':_0x5d4cfe});return;}((_0x24e10e=_0xd0f6b5[_0x347144(0x240)]())==null?void 0x0:_0x24e10e[_0x347144(0x43d)]())!==_0x4dc6a7&&await this['_commandService'][_0x347144(0x2a7)](_0xa62622['SetWorksheetActivateCommand']['id'],{'unitId':_0xd0f6b5[_0x347144(0x183)](),'subUnitId':_0x4dc6a7});}async['_loadSheet'](_0x427a9e){const _0x323cf6=_0x3bc2c8;let _0x11091e=0x0;const _0x56a5f4=await this[_0x323cf6(0x3bf)]['loadOfflineData'](_0x427a9e);return _0x56a5f4&&(_0x56a5f4[_0x323cf6(0x3e1)]||_0x56a5f4['mutations'][_0x323cf6(0x3d6)]!==0x0)&&(_0x11091e=_0x56a5f4['rev']),_0x11091e===0x0&&this[_0x323cf6(0x4e7)][_0x323cf6(0x46f)](_0x323cf6(0x218),_0x323cf6(0x160)),this[_0x323cf6(0x1f2)][_0x323cf6(0x4a9)](_0x427a9e,_0x11091e);}async[_0x3bc2c8(0x2a1)](_0x3a276c){const _0x43cb7d=_0x3bc2c8;let _0x329250=0x0;const _0x5225b1=await this['_localCacheService'][_0x43cb7d(0x30b)](_0x3a276c);return _0x5225b1&&(_0x5225b1[_0x43cb7d(0x3e1)]||_0x5225b1[_0x43cb7d(0x1fc)][_0x43cb7d(0x3d6)]!==0x0)&&(_0x329250=_0x5225b1[_0x43cb7d(0x3c6)]),_0x329250===0x0&&this[_0x43cb7d(0x4e7)][_0x43cb7d(0x46f)]('[DataLoaderController]',_0x43cb7d(0x160)),this['_snapshotService'][_0x43cb7d(0x188)](_0x3a276c,_0x329250);}},_0x48e51e[_0x3bc2c8(0x3a2)]=_0x311bd6([_0x5b7cfd[_0x3bc2c8(0x50d)](_0x5b7cfd[_0x3bc2c8(0x20b)][_0x3bc2c8(0x4c0)],_0x48e51e['DataLoaderController']),_0x37f9ca(0x0,_0x325c17),_0x37f9ca(0x1,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x37f9ca(0x2,_0x5b7cfd['ICommandService']),_0x37f9ca(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e[_0x3bc2c8(0x47d)])),_0x37f9ca(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x56cbe4[_0x3bc2c8(0x306)])),_0x37f9ca(0x5,_0x5b7cfd[_0x3bc2c8(0x259)](_0x429288[_0x3bc2c8(0xe9)]))],_0x48e51e['DataLoaderController']);var _0x292d6c=Object['defineProperty'],_0x33a7ef=Object['getOwnPropertyDescriptor'],_0x94badb=(_0x170632,_0x53d432,_0x1d9240,_0x5c7a05)=>{const _0x11fa1c=_0x3bc2c8;for(var _0x140325=_0x5c7a05>0x1?void 0x0:_0x5c7a05?_0x33a7ef(_0x53d432,_0x1d9240):_0x53d432,_0x3ce4c6=_0x170632[_0x11fa1c(0x3d6)]-0x1,_0x272419;_0x3ce4c6>=0x0;_0x3ce4c6--)(_0x272419=_0x170632[_0x3ce4c6])&&(_0x140325=(_0x5c7a05?_0x272419(_0x53d432,_0x1d9240,_0x140325):_0x272419(_0x140325))||_0x140325);return _0x5c7a05&&_0x140325&&_0x292d6c(_0x53d432,_0x1d9240,_0x140325),_0x140325;},_0x2f9e18=(_0x278c9c,_0x463301)=>(_0x5f2c95,_0x581d3f)=>_0x463301(_0x5f2c95,_0x581d3f,_0x278c9c);const _0x224a02=_0x3bc2c8(0x40b),_0x3f8b75=_0x3bc2c8(0x312);let _0x34caf5=class extends _0x5b7cfd[_0x3bc2c8(0x1d4)]{constructor(_0x7d3201,_0xd3a20){const _0x85db61=_0x3bc2c8;super(),this[_0x85db61(0x10b)]=_0x7d3201,this[_0x85db61(0x4cb)]=_0xd3a20,this['_init']();}[_0x3bc2c8(0x276)](){const _0x310529=_0x3bc2c8;this[_0x310529(0x131)](_0x5b7cfd[_0x310529(0x3d9)](this[_0x310529(0x10b)][_0x310529(0x228)]['subscribe'](()=>{const _0x5acb2f=_0x310529;var _0x221e4a;const _0x1f6e38=this['_univerInstanceService'][_0x5acb2f(0x1b8)]();let _0x218bb5=(_0x221e4a=this[_0x5acb2f(0x4cb)][_0x5acb2f(0x1db)](_0x224a02))!=null?_0x221e4a:_0x3f8b75;_0x1f6e38 instanceof _0x5b7cfd[_0x5acb2f(0x2d8)]&&(_0x218bb5=_0x1f6e38[_0x5acb2f(0x161)]),document[_0x5acb2f(0x17b)]=_0x218bb5;})));}};_0x34caf5=_0x94badb([_0x5b7cfd[_0x3bc2c8(0x50d)](_0x5b7cfd[_0x3bc2c8(0x20b)][_0x3bc2c8(0x36c)],_0x34caf5),_0x2f9e18(0x0,_0x5b7cfd['IUniverInstanceService']),_0x2f9e18(0x1,_0x5b7cfd[_0x3bc2c8(0x262)])],_0x34caf5);var _0x26c84f=Object[_0x3bc2c8(0x361)],_0x4c0355=Object[_0x3bc2c8(0x48b)],_0x4408fd=(_0x3fec3b,_0x2b71a2,_0x46405d,_0x194af9)=>{const _0x27ee51=_0x3bc2c8;for(var _0x49cf0a=_0x194af9>0x1?void 0x0:_0x194af9?_0x4c0355(_0x2b71a2,_0x46405d):_0x2b71a2,_0x545329=_0x3fec3b[_0x27ee51(0x3d6)]-0x1,_0x32399e;_0x545329>=0x0;_0x545329--)(_0x32399e=_0x3fec3b[_0x545329])&&(_0x49cf0a=(_0x194af9?_0x32399e(_0x2b71a2,_0x46405d,_0x49cf0a):_0x32399e(_0x49cf0a))||_0x49cf0a);return _0x194af9&&_0x49cf0a&&_0x26c84f(_0x2b71a2,_0x46405d,_0x49cf0a),_0x49cf0a;},_0xc8a478=(_0x5d8da4,_0x44de50)=>(_0x59d3f8,_0x493f23)=>_0x44de50(_0x59d3f8,_0x493f23,_0x5d8da4);let _0x52d4b9=class{constructor(_0x30f0bd,_0x403324,_0x5a4d79){const _0x15407f=_0x3bc2c8;this[_0x15407f(0x4cb)]=_0x30f0bd,this['_httpService']=_0x403324,this[_0x15407f(0x2f0)]=_0x5a4d79,this[_0x15407f(0x341)]();}['init'](){const _0x19fece=_0x3bc2c8;this[_0x19fece(0x305)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x4df035,_0x438693)=>_0x438693(_0x4df035)[_0x19fece(0x198)](_0x266483[_0x19fece(0x2eb)](async _0x360c92=>{const _0xdfac2e=_0x19fece,_0x64d36a=_0x360c92;if(_0x64d36a[_0xdfac2e(0x4ad)]===0x191&&window['confirm'](this[_0xdfac2e(0x2f0)]['t']('auth.needGotoLoginAlert'))){const _0x31b11e=window[_0xdfac2e(0x4fd)](window['location'][_0xdfac2e(0x4e0)]);window[_0xdfac2e(0x31f)]['href']=this['_getLoginPath']()+_0xdfac2e(0x168)+_0x31b11e;}return _0x64d36a;}))});}[_0x3bc2c8(0x2d6)](){const _0x3c3e18=_0x3bc2c8;var _0x295a69,_0x3d9368;const _0x32e0a1=this[_0x3c3e18(0x4cb)][_0x3c3e18(0x1db)](_0x29174f),_0x7cefb0=this[_0x3c3e18(0x4cb)][_0x3c3e18(0x1db)](_0xa50aed);return(_0x3d9368=(_0x295a69=_0x7cefb0==null?void 0x0:_0x7cefb0[_0x3c3e18(0x36e)])!=null?_0x295a69:_0x32e0a1)!=null?_0x3d9368:_0x46f52c;}};_0x52d4b9=_0x4408fd([_0xc8a478(0x0,_0x5b7cfd[_0x3bc2c8(0x262)]),_0xc8a478(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x4ba5d1[_0x3bc2c8(0x38b)])),_0xc8a478(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x385)]))],_0x52d4b9);var _0x53c2b7=Object[_0x3bc2c8(0x361)],_0xf7a8c4=Object['getOwnPropertyDescriptor'],_0x352dbc=(_0x237244,_0x2277f0,_0x5d0941,_0x41e8e5)=>{const _0x4bbc3d=_0x3bc2c8;for(var _0x629d58=_0x41e8e5>0x1?void 0x0:_0x41e8e5?_0xf7a8c4(_0x2277f0,_0x5d0941):_0x2277f0,_0x4469cf=_0x237244[_0x4bbc3d(0x3d6)]-0x1,_0x110546;_0x4469cf>=0x0;_0x4469cf--)(_0x110546=_0x237244[_0x4469cf])&&(_0x629d58=(_0x41e8e5?_0x110546(_0x2277f0,_0x5d0941,_0x629d58):_0x110546(_0x629d58))||_0x629d58);return _0x41e8e5&&_0x629d58&&_0x53c2b7(_0x2277f0,_0x5d0941,_0x629d58),_0x629d58;},_0x287087=(_0x288091,_0x325b88)=>(_0x17e192,_0x33fd63)=>_0x325b88(_0x17e192,_0x33fd63,_0x288091);const _0x27ab3d=_0x3bc2c8(0x3e7),_0x175fbd=_0x3bc2c8(0x135);_0x48e51e['AuthzIoHttpService']=class extends _0x5b7cfd['Disposable']{constructor(_0x3e1bc0,_0x4e62f6){const _0x509a78=_0x3bc2c8;super(),this[_0x509a78(0x472)]=_0x3e1bc0,this[_0x509a78(0x4cb)]=_0x4e62f6,this[_0x509a78(0x2ed)]();}[_0x3bc2c8(0x2ed)](){const _0x429afb=_0x3bc2c8,_0x3f9165=this;this['disposeWithMe'](this[_0x429afb(0x472)][_0x429afb(0x1d0)]({'priority':0x3e7,'interceptor':_0x4ba5d1['MergeInterceptorFactory']({'isMatch'(_0x31cdfb){const _0x40a853=_0x429afb;var _0x3ab5f1;if(_0x31cdfb[_0x40a853(0x492)]===_0x40a853(0x411)&&((_0x3ab5f1=_0x31cdfb['requestParams'])!=null&&_0x3ab5f1['body'])){const {objectID:_0x357336,objectType:_0xc8fbaa}=_0x31cdfb['requestParams'][_0x40a853(0x1fe)]||{};if(!_0x357336||_0xc8fbaa===void 0x0)return!0x1;const _0x514c82=_0x3f9165['_getAPIPrefixPath']()+'/'+_0xc8fbaa+'/object/'+_0x357336+_0x40a853(0x1b5);if(_0x31cdfb['url']===_0x514c82)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x283db2){const _0x42f5b0=_0x429afb;var _0x187638;return(_0x187638=_0x283db2[_0x42f5b0(0x4da)])==null?void 0x0:_0x187638['body'];},'mergeParamsToRequest'(_0x2a318f,_0x976f24){const _0x7516e6=_0x429afb,_0x262ad2=_0x3f9165[_0x7516e6(0x403)]()+_0x7516e6(0xf1),_0x5e28b2=_0x2a318f[_0x7516e6(0x4f1)]((_0xbc42d0,_0x271d0f)=>{const _0x26f8c6=_0x7516e6,{unitID:_0x357d91,objectID:_0x495cb6,objectType:_0x1ff913,actions:_0xde8cf8}=_0x271d0f;return _0xbc42d0[_0x357d91]||(_0xbc42d0[_0x357d91]={}),_0xbc42d0[_0x357d91][_0x495cb6]||(_0xbc42d0[_0x357d91][_0x495cb6]={'objectID':_0x495cb6,'objectType':_0x1ff913,'actions':[]}),_0xbc42d0[_0x357d91][_0x495cb6]['actions'][_0x26f8c6(0x13d)](..._0xde8cf8),_0xbc42d0;},{}),_0x1fc91b=[];for(const _0x104284 in _0x5e28b2)for(const _0x17d533 in _0x5e28b2[_0x104284]){const {actions:_0xf5decb,objectType:_0xf4be30}=_0x5e28b2[_0x104284][_0x17d533],_0x230421=[...new Set(_0xf5decb)];_0x1fc91b['push']({'unitID':_0x104284,'objectID':_0x17d533,'objectType':_0xf4be30,'actions':_0x230421});}return new _0x4ba5d1[(_0x7516e6(0x28f))](_0x7516e6(0x411),_0x262ad2,{'headers':_0x976f24[_0x7516e6(0x2e2)],'withCredentials':_0x976f24[_0x7516e6(0x166)],'responseType':_0x976f24[_0x7516e6(0x101)],'body':{'requests':_0x1fc91b}});}},{'distributeResult'(_0x1c5cad,_0x711fbb){const _0x54dfb9=_0x429afb,{objectActions:_0x2e9cbf}=_0x1c5cad;return _0x711fbb[_0x54dfb9(0x39c)](_0x3ece0=>{const _0xe03704=_0x54dfb9,{unitID:_0x4ba930,objectID:_0x236d87,actions:_0x1c168e}=_0x3ece0,_0x176340=_0x2e9cbf[_0xe03704(0xf7)](_0xa3457a=>_0xa3457a[_0xe03704(0x1b0)]===_0x4ba930&&_0xa3457a[_0xe03704(0x3dc)]===_0x236d87),_0x3095d5=_0x1c168e[_0xe03704(0x39c)](_0x1c8e72=>_0x176340==null?void 0x0:_0x176340['actions'][_0xe03704(0xf7)](_0x552d26=>_0x552d26[_0xe03704(0x113)]===_0x1c8e72))[_0xe03704(0x3b6)](_0x334ae5=>!!_0x334ae5);return{'config':_0x3ece0,'result':{'actions':_0x3095d5,'error':_0x1c5cad['error']}};});}})}));}[_0x3bc2c8(0x403)](){const _0x4881c3=_0x3bc2c8;var _0x24606f,_0x153287;const _0x577c32=this[_0x4881c3(0x4cb)][_0x4881c3(0x1db)](_0x27ab3d),_0x4b1189=this[_0x4881c3(0x4cb)][_0x4881c3(0x1db)](_0xa50aed);return(_0x153287=(_0x24606f=_0x4b1189==null?void 0x0:_0x4b1189[_0x4881c3(0x2b5)])!=null?_0x24606f:_0x577c32)!=null?_0x153287:_0x175fbd;}async[_0x3bc2c8(0x3b5)](_0x357c1e){const _0x2f16f3=_0x3bc2c8,_0x40b497=this[_0x2f16f3(0x403)]()+'/'+_0x357c1e[_0x2f16f3(0x2e7)]+'/object';return(await this[_0x2f16f3(0x472)][_0x2f16f3(0x15b)](_0x40b497,{'body':_0x357c1e}))[_0x2f16f3(0x1fe)][_0x2f16f3(0x3dc)]||'';}async[_0x3bc2c8(0x204)](_0x5ba0c9){const _0x19f030=_0x3bc2c8,_0x4e9264=this[_0x19f030(0x403)]()+_0x19f030(0xe2);return(await this[_0x19f030(0x472)][_0x19f030(0x15b)](_0x4e9264,{'body':_0x5ba0c9}))[_0x19f030(0x1fe)][_0x19f030(0x285)];}async[_0x3bc2c8(0x16f)](_0x3dc4a7){const _0x195c14=_0x3bc2c8,_0x423e5d=this[_0x195c14(0x403)]()+'/'+_0x3dc4a7[_0x195c14(0x2e7)]+'/object/'+_0x3dc4a7[_0x195c14(0x3dc)];await this[_0x195c14(0x472)]['put'](_0x423e5d,{'body':_0x3dc4a7});}async[_0x3bc2c8(0x489)](_0x507f73){const _0x485e6a=_0x3bc2c8,_0x23f6c7=this[_0x485e6a(0x403)]()+'/'+_0x507f73['objectType']+_0x485e6a(0x1be)+_0x507f73['objectID']+_0x485e6a(0x1b5);return(await this[_0x485e6a(0x472)][_0x485e6a(0x15b)](_0x23f6c7,{'body':_0x507f73}))['body'][_0x485e6a(0x2fd)];}async[_0x3bc2c8(0x321)](_0x184a6e){const _0x39d827=_0x3bc2c8,_0x4066f5=this[_0x39d827(0x403)]()+'/-/object/-/batch_allowed';return(await this[_0x39d827(0x472)][_0x39d827(0x15b)](_0x4066f5,{'body':{'requests':_0x184a6e}}))[_0x39d827(0x1fe)][_0x39d827(0x315)];}async['listRoles'](_0x4fbeaa){const _0x29fa2f=_0x3bc2c8,_0x1d2342=this[_0x29fa2f(0x403)]()+'/'+_0x4fbeaa[_0x29fa2f(0x2e7)]+_0x29fa2f(0x107),_0x308a37=await this[_0x29fa2f(0x472)][_0x29fa2f(0x15b)](_0x1d2342,{'body':_0x4fbeaa});return{'roles':_0x308a37[_0x29fa2f(0x1fe)][_0x29fa2f(0x2bf)],'actions':_0x308a37['body'][_0x29fa2f(0x2fd)]};}async[_0x3bc2c8(0x332)](_0x26fc36){const _0x521fad=_0x3bc2c8,_0x1b031c=this['_getAPIPrefixPath']()+_0x521fad(0x1f1);await this['_HTTPService'][_0x521fad(0x344)](_0x1b031c,{'params':{'collaboratorID':_0x26fc36[_0x521fad(0x207)],'objectID':_0x26fc36[_0x521fad(0x3dc)],'unitID':_0x26fc36[_0x521fad(0x1b0)]}});}async[_0x3bc2c8(0x466)](_0xaa869e){const _0x361c99=_0x3bc2c8,_0x2f938d=this[_0x361c99(0x403)]()+'/collaborator';await this[_0x361c99(0x472)][_0x361c99(0x3ee)](_0x2f938d,{'body':_0xaa869e});}async[_0x3bc2c8(0x1f9)](_0x14b580){const _0x2823c6=_0x3bc2c8,_0x44f3dc=this[_0x2823c6(0x403)]()+_0x2823c6(0x1f1);await this['_HTTPService'][_0x2823c6(0x15b)](_0x44f3dc,{'body':_0x14b580});}async['listCollaborators'](_0x221364){const _0x32ac7c=_0x3bc2c8,_0x5e992e=this[_0x32ac7c(0x403)]()+_0x32ac7c(0x1f1);return(await this[_0x32ac7c(0x472)][_0x32ac7c(0x451)](_0x5e992e,{'params':{'objectID':_0x221364[_0x32ac7c(0x3dc)],'unitID':_0x221364[_0x32ac7c(0x1b0)]}}))['body'][_0x32ac7c(0x1cd)];}async[_0x3bc2c8(0x49e)](_0x506a38){const _0x379d7b=_0x3bc2c8,_0x2ad7bf=this[_0x379d7b(0x403)]()+_0x379d7b(0x1f1);await this[_0x379d7b(0x472)]['put'](_0x2ad7bf,{'body':_0x506a38});}},_0x48e51e[_0x3bc2c8(0x4d7)]=_0x352dbc([_0x287087(0x0,_0x5b7cfd['Inject'](_0x4ba5d1[_0x3bc2c8(0x38b)])),_0x287087(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x262)]))],_0x48e51e[_0x3bc2c8(0x4d7)]);var _0x2a7c9a=Object['defineProperty'],_0x13eba2=Object['getOwnPropertyDescriptor'],_0x48aa50=(_0x427d53,_0x37457c,_0x3f3d35,_0x5da974)=>{const _0x4dd6c0=_0x3bc2c8;for(var _0x550db2=_0x5da974>0x1?void 0x0:_0x5da974?_0x13eba2(_0x37457c,_0x3f3d35):_0x37457c,_0x3fb20e=_0x427d53[_0x4dd6c0(0x3d6)]-0x1,_0x2948f2;_0x3fb20e>=0x0;_0x3fb20e--)(_0x2948f2=_0x427d53[_0x3fb20e])&&(_0x550db2=(_0x5da974?_0x2948f2(_0x37457c,_0x3f3d35,_0x550db2):_0x2948f2(_0x550db2))||_0x550db2);return _0x5da974&&_0x550db2&&_0x2a7c9a(_0x37457c,_0x3f3d35,_0x550db2),_0x550db2;},_0x448430=(_0x1fc575,_0x2a51b7)=>(_0x4e097c,_0x1fe83c)=>_0x2a51b7(_0x4e097c,_0x1fe83c,_0x1fc575);let _0x4173ed=class{constructor(_0xbe1f8b){const _0x598d8d=_0x3bc2c8;this[_0x598d8d(0x305)]=_0xbe1f8b,this['_initRequestHeader']();}[_0x3bc2c8(0x2dc)](){const _0x3fa688=_0x3bc2c8;this[_0x3fa688(0x305)][_0x3fa688(0x1d0)]({'interceptor':(_0x1514af,_0x1b4cb7)=>{const _0x3879fe=_0x3fa688,_0x219002=_0x1514af[_0x3879fe(0x2e2)],_0x4709c2=_0x5d1cbc[_0x3879fe(0x2c7)]();return _0x4709c2&&_0x219002[_0x3879fe(0x10d)](_0x3879fe(0x289),_0x4709c2),_0x1b4cb7(_0x1514af);}});}};_0x4173ed=_0x48aa50([_0x448430(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x4ba5d1[_0x3bc2c8(0x38b)]))],_0x4173ed);var _0x3b9851=Object[_0x3bc2c8(0x361)],_0x33d243=Object[_0x3bc2c8(0x48b)],_0x1b6126=(_0x47c77b,_0x452f6b,_0x4a5ff2,_0x549712)=>{const _0x59f9b8=_0x3bc2c8;for(var _0x10110c=_0x549712>0x1?void 0x0:_0x549712?_0x33d243(_0x452f6b,_0x4a5ff2):_0x452f6b,_0x2fbb22=_0x47c77b[_0x59f9b8(0x3d6)]-0x1,_0x35db;_0x2fbb22>=0x0;_0x2fbb22--)(_0x35db=_0x47c77b[_0x2fbb22])&&(_0x10110c=(_0x549712?_0x35db(_0x452f6b,_0x4a5ff2,_0x10110c):_0x35db(_0x10110c))||_0x10110c);return _0x549712&&_0x10110c&&_0x3b9851(_0x452f6b,_0x4a5ff2,_0x10110c),_0x10110c;},_0x5cdffc=(_0x6d9b11,_0x4a3499)=>(_0x3ed1e5,_0x390dc7)=>_0x4a3499(_0x3ed1e5,_0x390dc7,_0x6d9b11);const _0x30e2bb=[_0x3bc2c8(0x4f9),_0x3bc2c8(0x3ac),_0x3bc2c8(0x2b8),'image/gif',_0x3bc2c8(0x440)],_0x3ae676=0x5*0x400*0x400,_0x31971b=_0x3bc2c8(0x103),_0x4f6976=_0x3bc2c8(0x4f8),_0x3ca7d3=_0x3bc2c8(0x3ad),_0x2d70ba='/universer-api/file/{fileID}/sign-url';_0x48e51e[_0x3bc2c8(0x203)]=class{constructor(_0x99bb36,_0x99de5b,_0x1c7023){const _0xcf7628=_0x3bc2c8;_0x314dc6(this,_0xcf7628(0x47b),0x0),_0x314dc6(this,_0xcf7628(0x206),new _0x266483[(_0xcf7628(0x2e5))]()),_0x314dc6(this,_0xcf7628(0x2c9),this[_0xcf7628(0x206)]),_0x314dc6(this,_0xcf7628(0x1a1),new Map()),(this[_0xcf7628(0x305)]=_0x99bb36,this[_0xcf7628(0x4cb)]=_0x99de5b,this['_univerInstanceService']=_0x1c7023);}[_0x3bc2c8(0x3fe)](_0x29c884){const _0x3b367a=_0x3bc2c8;this[_0x3b367a(0x47b)]=_0x29c884,this[_0x3b367a(0x206)][_0x3b367a(0xe4)](_0x29c884);}[_0x3bc2c8(0x3ce)](_0x398379,_0x4e824d){const _0x40abb6=_0x3bc2c8;if(_0x4e824d===_0x35c9a1[_0x40abb6(0xf6)][_0x40abb6(0x1e8)]){const _0x12acd7=new Image();return _0x12acd7[_0x40abb6(0x39b)]=_0x398379,_0x12acd7;}return this['_imageSourceCache'][_0x40abb6(0x451)](_0x398379);}[_0x3bc2c8(0x3ea)](_0x1e2d1c,_0x16fb47,_0x37655e){const _0x540105=_0x3bc2c8;_0x16fb47===_0x35c9a1[_0x540105(0xf6)][_0x540105(0x1e8)]||_0x37655e==null||this['_imageSourceCache'][_0x540105(0x10d)](_0x1e2d1c,_0x37655e);}async[_0x3bc2c8(0x2ab)](_0x4dca53){const _0x2a5f2c=_0x3bc2c8;try{const _0x10f332=this['_replaceFileID'](this['_getSignURL'](),''+_0x4dca53),_0x476d74=(await this[_0x2a5f2c(0x305)]['get'](_0x10f332))[_0x2a5f2c(0x1fe)];if(_0x476d74[_0x2a5f2c(0x476)]&&_0x476d74[_0x2a5f2c(0x476)][_0x2a5f2c(0x337)]===_0x5f32a2['OK']){const _0x2989fb=new URL(_0x476d74['url'],this[_0x2a5f2c(0x417)]())['toString']();return Promise[_0x2a5f2c(0x511)](_0x2989fb);}return Promise[_0x2a5f2c(0x325)](_0x476d74[_0x2a5f2c(0x476)]);}catch(_0x358844){return Promise[_0x2a5f2c(0x325)](_0x358844);}}async[_0x3bc2c8(0x298)](_0x3c2731){const _0x1c7bde=_0x3bc2c8;let _0x4f9491='';if(!_0x30e2bb[_0x1c7bde(0x3a9)](_0x3c2731[_0x1c7bde(0x413)]))return this['_decreaseWaiting'](),Promise[_0x1c7bde(0x325)](new Error(_0x35c9a1[_0x1c7bde(0xf9)][_0x1c7bde(0x173)]));if(_0x3c2731['size']>_0x3ae676)return this[_0x1c7bde(0x33e)](),Promise[_0x1c7bde(0x325)](new Error(_0x35c9a1[_0x1c7bde(0xf9)][_0x1c7bde(0x296)]));try{const _0x33f118=new FormData();_0x33f118[_0x1c7bde(0x1d5)](_0x1c7bde(0x452),_0x3c2731);const _0x5c246d=this[_0x1c7bde(0x10b)][_0x1c7bde(0x1b8)](),_0x3eaffe=_0x5c246d==null?void 0x0:_0x5c246d[_0x1c7bde(0x183)]();if(!_0x3eaffe)throw new Error(_0x1c7bde(0x372));const _0x1315ad=this[_0x1c7bde(0x23b)]()+_0x1c7bde(0x15a)+_0x3c2731[_0x1c7bde(0x127)]['toString']()+_0x1c7bde(0x36b)+_0x1817d2[_0x1c7bde(0xd9)]+_0x1c7bde(0x447)+encodeURIComponent(_0x3eaffe),_0x3ef636=await(await fetch(_0x1315ad,{'method':_0x1c7bde(0x411),'body':_0x33f118}))[_0x1c7bde(0x1d3)]();if(typeof _0x3ef636[_0x1c7bde(0x1a0)]!=_0x1c7bde(0x210))return this[_0x1c7bde(0x33e)](),Promise[_0x1c7bde(0x325)](new Error(_0x35c9a1[_0x1c7bde(0xf9)][_0x1c7bde(0x147)]));_0x4f9491=_0x3ef636['FileId'];}catch{return this[_0x1c7bde(0x33e)](),Promise[_0x1c7bde(0x325)](new Error(_0x35c9a1[_0x1c7bde(0xf9)]['ERROR_IMAGE']));}return new Promise((_0x19532c,_0x13f3e0)=>{const _0x2a5676=_0x1c7bde,_0x2c2f96=new FileReader();_0x2c2f96[_0x2a5676(0x3b1)](_0x3c2731),_0x2c2f96['onload']=_0x560d0b=>{const _0x2ecf5f=_0x2a5676;var _0x1397f8;const _0x1f9838=(_0x1397f8=_0x560d0b[_0x2ecf5f(0x40a)])==null?void 0x0:_0x1397f8[_0x2ecf5f(0x2d4)];if(_0x1f9838==null){this[_0x2ecf5f(0x33e)](),_0x13f3e0(new Error(_0x35c9a1[_0x2ecf5f(0xf9)][_0x2ecf5f(0x147)]));return;}const _0x71b628=_0x5b7cfd[_0x2ecf5f(0x2f6)][_0x2ecf5f(0x1d9)](0x6);_0x19532c({'imageId':_0x71b628,'imageSourceType':_0x35c9a1[_0x2ecf5f(0xf6)][_0x2ecf5f(0xdb)],'source':_0x4f9491,'base64Cache':_0x1f9838,'status':_0x35c9a1[_0x2ecf5f(0xf9)][_0x2ecf5f(0x454)]}),this['_decreaseWaiting']();};});}[_0x3bc2c8(0x23b)](){const _0x476121=_0x3bc2c8;var _0x3ec767,_0x23460d;const _0x3d2a78=this['_configService']['getConfig'](_0x31971b),_0x47c333=this['_configService'][_0x476121(0x1db)](_0xa50aed);return(_0x23460d=(_0x3ec767=_0x47c333==null?void 0x0:_0x47c333[_0x476121(0x376)])!=null?_0x3ec767:_0x3d2a78)!=null?_0x23460d:_0x4f6976;}[_0x3bc2c8(0x22a)](){const _0xd3f890=_0x3bc2c8;var _0x452550,_0x19f163;const _0x36735d=this[_0xd3f890(0x4cb)]['getConfig'](_0x3ca7d3),_0x259f68=this[_0xd3f890(0x4cb)][_0xd3f890(0x1db)](_0xa50aed);return(_0x19f163=(_0x452550=_0x259f68==null?void 0x0:_0x259f68[_0xd3f890(0x14f)])!=null?_0x452550:_0x36735d)!=null?_0x19f163:_0x2d70ba;}[_0x3bc2c8(0x417)](){const _0x4ed735=_0x3bc2c8;var _0x2925d1;const _0x47b227=this[_0x4ed735(0x4cb)]['getConfig'](_0xa50aed);return(_0x2925d1=_0x47b227==null?void 0x0:_0x47b227['downloadEndpointUrl'])!=null?_0x2925d1:location[_0x4ed735(0x394)];}[_0x3bc2c8(0x340)](_0x314f45,_0x3feb16){const _0x3225e6=_0x3bc2c8;return _0x314f45[_0x3225e6(0x47a)](_0x3225e6(0x4a3),_0x3feb16);}['_decreaseWaiting'](){const _0x3e6a9c=_0x3bc2c8;this[_0x3e6a9c(0x47b)]-=0x1,this[_0x3e6a9c(0x206)][_0x3e6a9c(0xe4)](this['_waitCount']);}},_0x48e51e[_0x3bc2c8(0x203)]=_0x1b6126([_0x5cdffc(0x0,_0x5b7cfd['Inject'](_0x4ba5d1[_0x3bc2c8(0x38b)])),_0x5cdffc(0x1,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x5cdffc(0x2,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x29e)]))],_0x48e51e[_0x3bc2c8(0x203)]);var _0x174f6d=Object['defineProperty'],_0x4b3f03=Object[_0x3bc2c8(0x48b)],_0x24b5c3=(_0x624a9c,_0x83a2bf,_0x4dd0c6,_0x103f2c)=>{const _0x1a1265=_0x3bc2c8;for(var _0x1c1ff6=_0x103f2c>0x1?void 0x0:_0x103f2c?_0x4b3f03(_0x83a2bf,_0x4dd0c6):_0x83a2bf,_0x1837a6=_0x624a9c[_0x1a1265(0x3d6)]-0x1,_0xe9a844;_0x1837a6>=0x0;_0x1837a6--)(_0xe9a844=_0x624a9c[_0x1837a6])&&(_0x1c1ff6=(_0x103f2c?_0xe9a844(_0x83a2bf,_0x4dd0c6,_0x1c1ff6):_0xe9a844(_0x1c1ff6))||_0x1c1ff6);return _0x103f2c&&_0x1c1ff6&&_0x174f6d(_0x83a2bf,_0x4dd0c6,_0x1c1ff6),_0x1c1ff6;},_0x2fbf8b=(_0x2f5815,_0x4d7b1e)=>(_0x2ebce1,_0x5a4aa6)=>_0x4d7b1e(_0x2ebce1,_0x5a4aa6,_0x2f5815);let _0x21857a=class extends _0x5b7cfd['RxDisposable']{constructor(_0x24d140,_0x1c9f6f,_0xf094f7,_0x3c53bb,_0x3ac6af){const _0x43435f=_0x3bc2c8;super(),this[_0x43435f(0x30f)]=_0x24d140,this[_0x43435f(0x10b)]=_0x1c9f6f,this[_0x43435f(0x106)]=_0xf094f7,this[_0x43435f(0x3bd)]=_0x3c53bb,this[_0x43435f(0x24c)]=_0x3ac6af,this[_0x43435f(0x2f8)](),this[_0x43435f(0x152)]();}[_0x3bc2c8(0x152)](){const _0x5c419b=_0x3bc2c8,_0x5443f8=async _0xf92ab4=>{const _0x1494b5=_0x4f28;(await this[_0x1494b5(0x3bd)][_0x1494b5(0x318)](_0xf92ab4))[_0x1494b5(0x164)]['pipe'](_0x51de38[_0x1494b5(0x3b6)](_0xad937b=>_0xad937b['eventID']===_0x56cbe4[_0x1494b5(0x484)][_0x1494b5(0x2c2)]),_0x51de38[_0x1494b5(0x46b)](this[_0x1494b5(0x2dd)]))[_0x1494b5(0x2f5)](_0x49a33e=>{const _0x1c0015=_0x1494b5,_0x3a14bc=_0x49a33e,{reason:_0x50160b}=_0x3a14bc[_0x1c0015(0x2db)];this[_0x1c0015(0x30f)][_0x1c0015(0x451)](_0x2ce95d[_0x1c0015(0x1af)])[_0x1c0015(0x29f)]({'type':_0x4466a1[_0x1c0015(0x185)][_0x1c0015(0x34e)],'content':this[_0x1c0015(0x24c)]['t'](_0x1c0015(0x29c))+'('+_0x50160b+')'}),this[_0x1c0015(0x106)]['updatePermissionPoint'](new _0xa62622['WorkbookEditablePermission'](_0xf92ab4)['id'],!0x1),this[_0x1c0015(0x3bd)][_0x1c0015(0x3f6)](_0xf92ab4);});};_0x266483['merge'](this[_0x5c419b(0x10b)]['getTypeOfUnitAdded$'](_0x5b7cfd[_0x5c419b(0x4bb)][_0x5c419b(0x301)]),this[_0x5c419b(0x10b)]['getTypeOfUnitAdded$'](_0x5b7cfd[_0x5c419b(0x4bb)]['UNIVER_DOC']))['pipe'](_0x51de38[_0x5c419b(0x39c)](_0x426c41=>_0x426c41[_0x5c419b(0x183)]()),_0x51de38[_0x5c419b(0x3b6)](_0x257d0d=>!_0x5b7cfd['isInternalEditorID'](_0x257d0d)),_0x51de38[_0x5c419b(0x46b)](this[_0x5c419b(0x2dd)]))['subscribe'](_0x49a89a=>{_0x5443f8(_0x49a89a);});}[_0x3bc2c8(0x2f8)](){const _0x42c38b=_0x3bc2c8,_0x393747=async _0x3ea497=>{const _0xc2061b=_0x4f28;(await this[_0xc2061b(0x3bd)]['requireSession'](_0x3ea497))[_0xc2061b(0x164)][_0xc2061b(0x198)](_0x51de38[_0xc2061b(0x3b6)](_0x156567=>_0x156567[_0xc2061b(0xe1)]===_0x56cbe4[_0xc2061b(0x484)]['UPDATE_PERMISSION_OBJ']),_0x51de38['takeUntil'](this['dispose$']))[_0xc2061b(0x2f5)](_0x3cb216=>{const _0x4665b3=_0xc2061b,_0x1e27fb=_0x3cb216,{objectId:_0x28f6ec}=_0x1e27fb['data'],_0x5a08dd=this[_0x4665b3(0x30f)][_0x4665b3(0x451)](_0x4a372b['SheetPermissionInitController']);_0x28f6ec===_0x3ea497?_0x5a08dd[_0x4665b3(0x446)](_0x3ea497):_0x5a08dd[_0x4665b3(0x493)](_0x3ea497,_0x28f6ec);});};_0x266483[_0x42c38b(0x2a5)](this[_0x42c38b(0x10b)][_0x42c38b(0x327)](_0x5b7cfd['UniverInstanceType']['UNIVER_SHEET']),this[_0x42c38b(0x10b)][_0x42c38b(0x327)](_0x5b7cfd['UniverInstanceType'][_0x42c38b(0x3a6)]))[_0x42c38b(0x198)](_0x51de38[_0x42c38b(0x39c)](_0xb13374=>_0xb13374[_0x42c38b(0x183)]()),_0x51de38['filter'](_0x532df5=>!_0x5b7cfd[_0x42c38b(0x2f9)](_0x532df5)),_0x51de38[_0x42c38b(0x46b)](this[_0x42c38b(0x2dd)]))[_0x42c38b(0x2f5)](_0x2dac5f=>{_0x393747(_0x2dac5f);});}};_0x21857a=_0x24b5c3([_0x5b7cfd[_0x3bc2c8(0x50d)](_0x5b7cfd[_0x3bc2c8(0x20b)][_0x3bc2c8(0x4c0)],_0x21857a),_0x2fbf8b(0x0,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x2fbf8b(0x1,_0x5b7cfd['IUniverInstanceService']),_0x2fbf8b(0x2,_0x5b7cfd[_0x3bc2c8(0x342)]),_0x2fbf8b(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x48e51e['CollaborationSessionService'])),_0x2fbf8b(0x4,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x385)]))],_0x21857a);var _0x60bfa=Object[_0x3bc2c8(0x361)],_0x4f846c=Object[_0x3bc2c8(0x48b)],_0x5f530c=(_0x592a1a,_0x3699c0,_0x5eef23,_0x4517ee)=>{const _0x3370d5=_0x3bc2c8;for(var _0x23ba32=_0x4517ee>0x1?void 0x0:_0x4517ee?_0x4f846c(_0x3699c0,_0x5eef23):_0x3699c0,_0x3a1063=_0x592a1a[_0x3370d5(0x3d6)]-0x1,_0x41504f;_0x3a1063>=0x0;_0x3a1063--)(_0x41504f=_0x592a1a[_0x3a1063])&&(_0x23ba32=(_0x4517ee?_0x41504f(_0x3699c0,_0x5eef23,_0x23ba32):_0x41504f(_0x23ba32))||_0x23ba32);return _0x4517ee&&_0x23ba32&&_0x60bfa(_0x3699c0,_0x5eef23,_0x23ba32),_0x23ba32;},_0x37d277=(_0x45c3b1,_0x242d95)=>(_0x444d38,_0x229a4b)=>_0x242d95(_0x444d38,_0x229a4b,_0x45c3b1);_0x48e51e[_0x3bc2c8(0x1ac)]=class{constructor(_0x20b927,_0x3b6273){this['_configService']=_0x20b927,this['_httpService']=_0x3b6273;}async[_0x3bc2c8(0x181)](_0x3d6209,_0x197371){const _0x24630e=_0x3bc2c8;var _0x37d28a;const {unitID:_0x4d97d4,type:_0xbacbd,revision:_0x553086=0x0}=_0x197371,_0x2fce74=this[_0x24630e(0x326)]()+'/'+_0xbacbd+_0x24630e(0x248)+_0x4d97d4+_0x24630e(0x482)+_0x553086,_0x137dce=(await this[_0x24630e(0x305)]['get'](_0x2fce74))[_0x24630e(0x1fe)],_0x28ab67=(_0x37d28a=_0x137dce[_0x24630e(0x25d)])==null?void 0x0:_0x37d28a[_0x24630e(0x2cc)];if(_0x28ab67){const _0x1f14e0=_0x28ab67==null?void 0x0:_0x28ab67['originalMeta'],_0x223de0=_0x56cbe4[_0x24630e(0x405)]['encode'](_0x56cbe4['b64DecodeUnicode'](_0x1f14e0));_0x28ab67[_0x24630e(0x4e6)]=_0x223de0,Object[_0x24630e(0x3a5)](_0x28ab67[_0x24630e(0x2a6)])[_0x24630e(0x255)](([,_0x520994])=>{const _0x10406e=_0x24630e,_0x347301=_0x520994[_0x10406e(0x4e6)],_0x865dd1=_0x56cbe4['textEncoder'][_0x10406e(0x48a)](_0x56cbe4['b64DecodeUnicode'](_0x347301));_0x520994['originalMeta']=_0x865dd1;});}return _0x137dce;}async['getSheetBlock'](_0x3c85c9,_0x3c7f43){const _0x281442=_0x3bc2c8,{unitID:_0x2bd124,type:_0x2896c4,blockID:_0x363767}=_0x3c7f43,_0x234f79=this['_getAPIPrefix']()+'/'+_0x2896c4+_0x281442(0x248)+_0x2bd124+'/block/'+_0x363767;return(await this['_httpService'][_0x281442(0x451)](_0x234f79))[_0x281442(0x1fe)];}async[_0x3bc2c8(0xe3)](_0x5c5482,_0x5b2452){const _0x14c051=_0x3bc2c8,{unitID:_0x4c3f19,type:_0x1af613,blockID:_0xb5e345}=_0x5b2452,_0x564ce0=this['_getAPIPrefix']()+_0x14c051(0x504)+_0x1af613+_0x14c051(0x248)+_0x4c3f19+'/block/'+_0xb5e345;return(await this['_httpService'][_0x14c051(0x451)](_0x564ce0))[_0x14c051(0x1fe)];}async[_0x3bc2c8(0x4ea)](_0x4609a0,_0x343dff){const _0x247b65=_0x3bc2c8,{unitID:_0x5f5f9f,type:_0x128337,from:_0x4e77e0,to:_0x38ff1d}=_0x343dff,_0xba7fe0=this[_0x247b65(0x2e1)]()+'/'+_0x128337+'/unit/'+_0x5f5f9f+_0x247b65(0x302)+_0x4e77e0+_0x247b65(0x419)+_0x38ff1d;return(await this[_0x247b65(0x305)]['get'](_0xba7fe0))[_0x247b65(0x1fe)];}['_getSnapshotAPIPrefix'](){const _0x5d2162=_0x3bc2c8;var _0x183148;return(_0x183148=this[_0x5d2162(0x4cb)][_0x5d2162(0x1db)](_0x1a9cce))!=null?_0x183148:this[_0x5d2162(0x2e1)]();}[_0x3bc2c8(0x2e1)](){const _0x55d0ec=_0x3bc2c8;var _0x5de212,_0x3e80ce;const _0x1d777f=this[_0x55d0ec(0x4cb)][_0x55d0ec(0x1db)](_0x504faf),_0x5e4bb6=this[_0x55d0ec(0x4cb)]['getConfig'](_0xa50aed);return(_0x3e80ce=(_0x5de212=_0x5e4bb6==null?void 0x0:_0x5e4bb6[_0x55d0ec(0x219)])!=null?_0x5de212:_0x1d777f)!=null?_0x3e80ce:_0x56ac46;}async[_0x3bc2c8(0x356)](_0x3074af,_0x15925f){const _0x875186=_0x3bc2c8,_0xa6911a=_0x875186(0x4f2)+_0x15925f['type']+_0x875186(0x248)+_0x15925f[_0x875186(0x1b0)]+_0x875186(0x3c0);return(await this[_0x875186(0x305)][_0x875186(0x451)](_0xa6911a,{'params':{'resourceId':JSON[_0x875186(0x2fb)](_0x15925f[_0x875186(0x40e)])}}))[_0x875186(0x1fe)];}['saveSnapshot'](){const _0x24ad3f=_0x3bc2c8;throw new Error(_0x24ad3f(0x32a));}[_0x3bc2c8(0x1c5)](){const _0x4197ed=_0x3bc2c8;throw new Error(_0x4197ed(0x32a));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x151a7f=_0x3bc2c8;throw new Error(_0x151a7f(0x32a));}},_0x48e51e[_0x3bc2c8(0x1ac)]=_0x5f530c([_0x37d277(0x0,_0x5b7cfd[_0x3bc2c8(0x262)]),_0x37d277(0x1,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x4ba5d1[_0x3bc2c8(0x38b)]))],_0x48e51e[_0x3bc2c8(0x1ac)]);var _0x22fefa=Object[_0x3bc2c8(0x361)],_0x3ec19e=Object[_0x3bc2c8(0x48b)],_0x432d00=(_0x5db213,_0x3b2d93,_0x2dd3bc,_0x1333ba)=>{for(var _0x400d97=_0x1333ba>0x1?void 0x0:_0x1333ba?_0x3ec19e(_0x3b2d93,_0x2dd3bc):_0x3b2d93,_0x1f6dbd=_0x5db213['length']-0x1,_0xa417b5;_0x1f6dbd>=0x0;_0x1f6dbd--)(_0xa417b5=_0x5db213[_0x1f6dbd])&&(_0x400d97=(_0x1333ba?_0xa417b5(_0x3b2d93,_0x2dd3bc,_0x400d97):_0xa417b5(_0x400d97))||_0x400d97);return _0x1333ba&&_0x400d97&&_0x22fefa(_0x3b2d93,_0x2dd3bc,_0x400d97),_0x400d97;},_0x5289c5=(_0x7f8d87,_0x571a29)=>(_0x40db1c,_0x28a789)=>_0x571a29(_0x40db1c,_0x28a789,_0x7f8d87);let _0x55a5f9=class extends _0x5b7cfd[_0x3bc2c8(0x140)]{constructor(_0x4f699b,_0x16a030,_0x388f63,_0x12cb66,_0xa77333){const _0x4ba60d=_0x3bc2c8;super(_0x4f699b,_0x16a030,_0x388f63),this[_0x4ba60d(0x3a1)]=_0x12cb66,this[_0x4ba60d(0x4e7)]=_0xa77333;}['transformUndoRedo'](_0x501579,_0x544b3e){const _0x1aa031=_0x3bc2c8,_0x55557f=this['_getUndoStack'](_0x501579);if(_0x55557f)try{const _0x20fa39=this[_0x1aa031(0x3e8)](_0x55557f,_0x544b3e);this[_0x1aa031(0x3fd)](_0x501579,_0x20fa39);}catch(_0x18c0b5){this[_0x1aa031(0x4e7)][_0x1aa031(0x476)](_0x1aa031(0x487),_0x18c0b5),this[_0x1aa031(0x1ae)](_0x501579);}const _0x4943e1=this['_getRedoStack'](_0x501579);if(_0x4943e1)try{const _0x321cc4=this['_transformStack'](_0x4943e1,_0x544b3e);this[_0x1aa031(0x378)](_0x501579,_0x321cc4);}catch(_0x12fe90){this[_0x1aa031(0x4e7)]['error'](_0x12fe90),this[_0x1aa031(0x14c)](_0x501579);}}['_clearUndo'](_0x318e62){const _0x35e125=_0x3bc2c8,_0x16e550=this[_0x35e125(0x1cf)](_0x318e62);_0x16e550&&(_0x16e550[_0x35e125(0x3d6)]=0x0,this[_0x35e125(0x3be)]());}[_0x3bc2c8(0x14c)](_0x149d7f){const _0x1d7c62=_0x3bc2c8,_0x142f71=this[_0x1d7c62(0x194)](_0x149d7f);_0x142f71&&(_0x142f71[_0x1d7c62(0x3d6)]=0x0,this[_0x1d7c62(0x3be)]());}['_substituteUndoStack'](_0x228038,_0x2ef5df){const _0x57bc9e=_0x3bc2c8;this['_undoStacks']['set'](_0x228038,_0x2ef5df),this[_0x57bc9e(0x3be)]();}[_0x3bc2c8(0x378)](_0x2047ac,_0x30c2a3){const _0x2e4201=_0x3bc2c8;this[_0x2e4201(0x3f9)][_0x2e4201(0x10d)](_0x2047ac,_0x30c2a3),this[_0x2e4201(0x3be)]();}[_0x3bc2c8(0x3e8)](_0x2278a1,_0x5dc875){const _0x4ab4b4=_0x3bc2c8,_0x2fb912=[];let _0x2c05bf=_0x5dc875,_0x4153e8=_0x5dc875;for(let _0x1e63cd=_0x2278a1[_0x4ab4b4(0x3d6)]-0x1;_0x1e63cd>=0x0;_0x1e63cd--){const {unitID:_0x1f5b70,undoMutations:_0xdc463d,redoMutations:_0x1728b5}=_0x2278a1[_0x1e63cd],_0x18f712=this[_0x4ab4b4(0x3a1)][_0x4ab4b4(0x4b8)](_0x2c05bf,_0xdc463d),_0x5578ae=this[_0x4ab4b4(0x3a1)][_0x4ab4b4(0x4b8)](_0x4153e8,_0x1728b5);if(_0x56cbe4['isTransformMutationsWithChangesetFailure'](_0x18f712)||_0x56cbe4[_0x4ab4b4(0x475)](_0x5578ae)){this[_0x4ab4b4(0x4e7)]['error']('[CollaborationUndoRedoService]',_0x4ab4b4(0xec),_0x18f712,_0x5578ae);break;}_0x2c05bf=_0x18f712[_0x4ab4b4(0x1c9)],_0x4153e8=_0x5578ae[_0x4ab4b4(0x1c9)],_0x2fb912[_0x4ab4b4(0x13d)]({'unitID':_0x1f5b70,'undoMutations':_0x18f712['m2Prime'],'redoMutations':_0x5578ae['m2Prime']});}return _0x2fb912[_0x4ab4b4(0x37b)]();}};_0x55a5f9=_0x432d00([_0x5289c5(0x0,_0x5b7cfd[_0x3bc2c8(0x29e)]),_0x5289c5(0x1,_0x5b7cfd[_0x3bc2c8(0x27d)]),_0x5289c5(0x2,_0x5b7cfd[_0x3bc2c8(0x391)]),_0x5289c5(0x3,_0x56cbe4[_0x3bc2c8(0x2ea)]),_0x5289c5(0x4,_0x5b7cfd[_0x3bc2c8(0x1e6)])],_0x55a5f9);class _0x5f03ac extends _0x5b7cfd[_0x3bc2c8(0x462)]{constructor(){const _0xbdcece=_0x3bc2c8;super(),_0x314dc6(this,_0xbdcece(0x26c)),this[_0xbdcece(0x26c)]=_0x266483[_0xbdcece(0x408)](window,_0xbdcece(0x2f2))[_0xbdcece(0x198)](_0x266483['takeUntil'](this[_0xbdcece(0x2dd)]),_0x266483[_0xbdcece(0x119)](0x1),_0x266483[_0xbdcece(0x45c)](void 0x0));}[_0x3bc2c8(0x40f)](_0x57b1b5,_0x4d6973,_0x5f28d7=!0x1){const _0x5049c0=_0x3bc2c8,_0x3db6e2=new URL(window[_0x5049c0(0x31f)][_0x5049c0(0x4e0)]);_0x3db6e2['searchParams'][_0x5049c0(0x10d)](_0x57b1b5,_0x4d6973),_0x5f28d7?window[_0x5049c0(0x1d1)][_0x5049c0(0x33c)]('','',_0x3db6e2[_0x5049c0(0x35c)]()):window[_0x5049c0(0x1d1)]['pushState']('','',_0x3db6e2[_0x5049c0(0x35c)]());}[_0x3bc2c8(0x3a7)](_0x596b3c,_0x2e1ef7=!0x1){const _0x2f69e5=_0x3bc2c8,_0x1aa4cd=new URL(window['location'][_0x2f69e5(0x4e0)]);_0x1aa4cd[_0x2f69e5(0x1bb)][_0x2f69e5(0x344)](_0x596b3c),_0x2e1ef7?window[_0x2f69e5(0x1d1)][_0x2f69e5(0x33c)]('','',_0x1aa4cd[_0x2f69e5(0x35c)]()):window[_0x2f69e5(0x1d1)][_0x2f69e5(0x410)]('','',_0x1aa4cd[_0x2f69e5(0x35c)]());}[_0x3bc2c8(0x22f)](_0x53e543){const _0x3875cb=_0x3bc2c8;var _0x10c4b0;return(_0x10c4b0=new URL(window[_0x3875cb(0x31f)][_0x3875cb(0x4e0)])[_0x3875cb(0x1bb)][_0x3875cb(0x451)](_0x53e543))!=null?_0x10c4b0:void 0x0;}}var _0x1fcae2=Object[_0x3bc2c8(0x361)],_0x43c632=Object[_0x3bc2c8(0x48b)],_0x1b86b7=(_0x1c89ad,_0x56d888,_0x54cc9c)=>_0x56d888 in _0x1c89ad?_0x1fcae2(_0x1c89ad,_0x56d888,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54cc9c}):_0x1c89ad[_0x56d888]=_0x54cc9c,_0x3f0858=(_0x5b3abe,_0x47097f,_0x4e23fe,_0xa2ef2c)=>{const _0x109717=_0x3bc2c8;for(var _0xe401ad=_0xa2ef2c>0x1?void 0x0:_0xa2ef2c?_0x43c632(_0x47097f,_0x4e23fe):_0x47097f,_0xaff66=_0x5b3abe[_0x109717(0x3d6)]-0x1,_0x151d19;_0xaff66>=0x0;_0xaff66--)(_0x151d19=_0x5b3abe[_0xaff66])&&(_0xe401ad=(_0xa2ef2c?_0x151d19(_0x47097f,_0x4e23fe,_0xe401ad):_0x151d19(_0xe401ad))||_0xe401ad);return _0xa2ef2c&&_0xe401ad&&_0x1fcae2(_0x47097f,_0x4e23fe,_0xe401ad),_0xe401ad;},_0x154545=(_0x2c31c9,_0x399efb)=>(_0x347b48,_0x303442)=>_0x399efb(_0x347b48,_0x303442,_0x2c31c9),_0x393c30=(_0x25a76d,_0x2d70de,_0x30fa33)=>_0x1b86b7(_0x25a76d,_0x2d70de+'',_0x30fa33);const _0x141509='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x48e51e[_0x3bc2c8(0x465)]=class extends _0x5b7cfd['Plugin']{constructor(_0x4ac9a=_0xdae42f,_0xccc267,_0x1f9189,_0x2491f7,_0x43e87b){const _0x4d8d13=_0x3bc2c8;super(),this[_0x4d8d13(0x335)]=_0x4ac9a,this[_0x4d8d13(0x4e7)]=_0xccc267,this['_renderManagerService']=_0x1f9189,this['_injector']=_0x2491f7,this[_0x4d8d13(0x4cb)]=_0x43e87b;const {..._0x159e42}=this[_0x4d8d13(0x335)];this[_0x4d8d13(0x4cb)]['setConfig'](_0xa50aed,_0x159e42);}[_0x3bc2c8(0x4a2)](){const _0x4ad590=_0x3bc2c8;this[_0x4ad590(0x16d)]();}['onRendered'](){const _0x29e7d8=_0x3bc2c8;this[_0x29e7d8(0x34a)]();}[_0x3bc2c8(0x16d)](){const _0x58ce81=_0x3bc2c8;var _0x65f5d,_0x40354c,_0x4138b4,_0x2a22d0;this[_0x58ce81(0x30f)]['has'](_0x5b7cfd['IUndoRedoService'])&&this['_logService'][_0x58ce81(0x476)](_0x58ce81(0x416),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x244b63=[[_0x5b7cfd[_0x58ce81(0x313)],{'useClass':_0x55a5f9}],[_0x48e51e[_0x58ce81(0x1d8)]],[_0x2e16f3],[_0x4ba5d1[_0x58ce81(0x38b)]],[_0x325c17,{'useClass':_0x5f03ac}],[_0x587d5a],[_0x48e51e['LocalCacheService']],[_0x4ba5d1[_0x58ce81(0x479)]],[_0x2cedfe],[_0x12ef35],[_0x1e6c69],[_0x56b650],[_0x52d4b9],[_0x4173ed],[_0x1225af],[_0x21857a],[_0x2644e7,{'useClass':(_0x40354c=(_0x65f5d=this[_0x58ce81(0x335)])==null?void 0x0:_0x65f5d['socketService'])!=null?_0x40354c:_0x48e51e[_0x58ce81(0x17f)]}],[_0x4ba5d1['IHTTPImplementation'],{'useClass':_0x4ba5d1[_0x58ce81(0x433)]}],[_0x56cbe4[_0x58ce81(0x118)],{'useClass':_0x48e51e[_0x58ce81(0x1ac)]}],[_0x5b7cfd['IAuthzIoService'],{'useClass':_0x48e51e[_0x58ce81(0x4d7)]}],[_0x35c9a1['IImageIoService'],{'useClass':_0x48e51e[_0x58ce81(0x203)]}],[_0x48e51e[_0x58ce81(0x30c)]],[_0x48e51e[_0x58ce81(0x3a2)]],[_0x48e51e[_0x58ce81(0x4ed)]],[_0x34caf5],[_0x47bd3e]];(_0x4138b4=this[_0x58ce81(0x335)])!=null&&_0x4138b4[_0x58ce81(0x469)]&&_0x244b63[_0x58ce81(0x13d)]([_0x5e9761,{'useClass':_0x384617}]),_0x244b63=_0x5b7cfd['mergeOverrideWithDependencies'](_0x244b63,(_0x2a22d0=this[_0x58ce81(0x335)])==null?void 0x0:_0x2a22d0[_0x58ce81(0x349)]),_0x244b63[_0x58ce81(0x255)](_0x53f0f1=>this[_0x58ce81(0x30f)][_0x58ce81(0x225)](_0x53f0f1)),this[_0x58ce81(0x431)]();}[_0x3bc2c8(0x34a)](){const _0x56be47=_0x3bc2c8;this[_0x56be47(0x131)](this['_renderManagerService'][_0x56be47(0x156)](_0x5b7cfd[_0x56be47(0x4bb)][_0x56be47(0x3a6)],[_0x260281])),this[_0x56be47(0x131)](this[_0x56be47(0x4bd)][_0x56be47(0x156)](_0x5b7cfd[_0x56be47(0x4bb)][_0x56be47(0x301)],[_0x18e89b]));}['_initModules'](){const _0x1fae14=_0x3bc2c8;var _0x4bc4f7,_0x41b3d1;this[_0x1fae14(0x30f)][_0x1fae14(0x451)](_0x4ba5d1['HTTPService'])[_0x1fae14(0x1d0)]({'priority':0x14,'interceptor':_0x4ba5d1['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0x1fae14(0x30f)]['get'](_0x4173ed),(_0x4bc4f7=this[_0x1fae14(0x335)])!=null&&_0x4bc4f7[_0x1fae14(0x2b6)]||this[_0x1fae14(0x30f)]['get'](_0x48e51e[_0x1fae14(0x47d)])[_0x1fae14(0x397)](),(_0x41b3d1=this['_config'])!=null&&_0x41b3d1[_0x1fae14(0x300)]&&this[_0x1fae14(0x30f)][_0x1fae14(0x451)](_0x52d4b9),this[_0x1fae14(0x30f)][_0x1fae14(0x451)](_0x48e51e[_0x1fae14(0x30c)]),this[_0x1fae14(0x30f)][_0x1fae14(0x232)](_0x48e51e[_0x1fae14(0x4ed)])&&this[_0x1fae14(0x30f)][_0x1fae14(0x451)](_0x48e51e[_0x1fae14(0x4ed)]);}},_0x393c30(_0x48e51e[_0x3bc2c8(0x465)],_0x3bc2c8(0x45a),_0x141509),_0x48e51e['UniverCollaborationClientPlugin']=_0x3f0858([_0x5b7cfd['DependentOn'](_0x56cbe4[_0x3bc2c8(0x19a)]),_0x154545(0x1,_0x5b7cfd[_0x3bc2c8(0x1e6)]),_0x154545(0x2,_0x46e2e3[_0x3bc2c8(0x37e)]),_0x154545(0x3,_0x5b7cfd[_0x3bc2c8(0x13c)](_0x5b7cfd[_0x3bc2c8(0x111)])),_0x154545(0x4,_0x5b7cfd['IConfigService'])],_0x48e51e[_0x3bc2c8(0x465)]),_0x48e51e[_0x3bc2c8(0x3e7)]=_0x27ab3d,_0x48e51e[_0x3bc2c8(0x402)]=_0x3bca7a,_0x48e51e['COLLAB_WEB_SOCKET_URL_KEY']=_0x4989e3,_0x48e51e[_0x3bc2c8(0x2d7)]=_0x5926c5,_0x48e51e[_0x3bc2c8(0x235)]=_0x2c3280,_0x48e51e[_0x3bc2c8(0x28b)]=_0x1225af,_0x48e51e[_0x3bc2c8(0x2f4)]=_0x4afd24,_0x48e51e['HEARTBEAT_TIMEOUT_KEY']=_0x372540,_0x48e51e['ICollaborationSocketService']=_0x2644e7,_0x48e51e[_0x3bc2c8(0x1ba)]=_0x325c17,_0x48e51e[_0x3bc2c8(0x2b9)]=_0x23080c,_0x48e51e[_0x3bc2c8(0x4dd)]=_0x29174f,_0x48e51e[_0x3bc2c8(0x35e)]=_0x191200,_0x48e51e['SEND_CHANGESET_TIMEOUT_KEY']=_0x2d7fa5,_0x48e51e['SNAPSHOT_SERVER_URL_KEY']=_0x504faf,_0x48e51e[_0x3bc2c8(0x498)]=_0x1a9cce,_0x48e51e['SessionStatus']=_0x2d9d4e,_0x48e51e[_0x3bc2c8(0x2de)]=_0x44ac57,_0x48e51e[_0x3bc2c8(0x1c4)]=_0x5f03ac,_0x48e51e[_0x3bc2c8(0x1a8)]=_0x262567,_0x48e51e[_0x3bc2c8(0x395)]=_0x3eb981,Object[_0x3bc2c8(0x361)](_0x48e51e,Symbol['toStringTag'],{'value':_0x3bc2c8(0x4bf)});}));function _0x197e(){const _0x5230b5=['indexOf','roomMembers','UserManagerService','onSendChangeset','length','session','activeSheet$','toDisposable','color','children','objectID','@univerjs/rpc','OTHER_CLIENTS_EDITING','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_joinRoom','awaitingChangeset','_pendingMutations','JOIN','onPointerEnter$','height','_roomMembers','AUTHZ_URL_KEY','_transformStack','_toggleOffline','addImageSourceCache','online','UniverCollaborationClient','_createInitialState','patch','setShapeProps','font','colorChannel1','_transformPreviousActiveRange','getTime','COLORS','_waitForHeartbeatResponse','closeSession','SNAPSHOT_INVALID_SNAPSHOT','@univerjs-pro/collaboration','_redoStacks','onTransformChange$','transformRemoteChangeset','_eventUnsubscribe','_substituteUndoStack','setWaitCount','useDependency','_status$','cursorInfo$','COLLAB_SUBMIT_CHANGESET_URL_KEY','_getAPIPrefixPath','_online','textEncoder','permission.content','displayName','fromEvent','_updateLocalCursor','target','DEFAULT_FILE_NAME','clearInterval','routeKey','resourceIDs','setParam','pushState','POST','enableLocalCache','type','_onUserJoin','sheetID','[UniverCollaborationClientPlugin]','_getDownloadEndpointURL','collabStatus.synced','&to=','awaiting_with_pending','PERMISSION_REJ','debounceTime','[OfflineState]:\x20received\x20acknowledgement.','DeleteRangeMoveLeftCommandId','fetching\x20missing\x20changesets\x20from\x20','React','_transformSelections','triggerDblclick','resend','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','CommandType','_sessionStatus$','onMouseMove','labelPosition','LIVESHARE_OPERATION','LIVESHARE_TERMINATE','sendChangesetTimeout','collaboration-client.offline-data-not-saved','UniverIcon','onMissedChangesetFetched','stopTime','_scheduleTimestamp','_initModules','hovered','XHRHTTPImplementation','_docSkeletonManagerService','addEventListener','649272hNmxKV','_drawTextRange','key','black','_clearLocalCache','[PendingState]:\x20received\x20acknowledgement.','transformIMECache','getSheetId','BehaviorSubject','/universer-api/comb','image/bmp','send','_ws','gold400','fromEventSubject','addObjects','initWorkbookPermissionChange','&assign=','flatMap','SheetCollaborationEntity','_syncEditingCollabCursor','newValue','tag','USERS_LEAVE','RevisionService','hasOwnProperty','_docTransformSelectionsService','get','file','_shouldReportTelemetry','SUCCUSS','NEW_CHANGESETS','RemoveRowCommandId','subscribeEvent','apply','INTERNAL_ERROR','pluginName','telemetry\x20info\x20is\x20not\x20initialized','mapTo','icon','_clearTimeoutTimer','_acknowledgedAwaitingChangeset','endColumn','_transformIMECache','RxDisposable','LIVESHARE_REQUEST_HOST','replaceTextRanges','UniverCollaborationClientPlugin','updateCollaborator','getUnit','restore','enableSingleActiveInstanceLock','_sendHeartbeatTimer','takeUntil','JSONX','getDocRanges','APPLY_REJECT','debug','duration','_throwTelemetryCollaborationNewChangeset','_HTTPService','extend','svg','isTransformMutationsWithChangesetFailure','error','socket$','_event$','WebSocketService','replace','_waitCount','RegularPolygon','LocalCacheService','hide','getViewport','843364WioRfM','_socketMessageSubscription','/rev/','_labelPosition','CollaborationEvent','ALREADY_EXISTS','setUndoRedoMutationParamsCache','[CollaborationUndoRedoService]','makeDirty','allowed','encode','getOwnPropertyDescriptor','socket\x20close','getUndoRedoMutationParamsCache','getCurrent','memberID','rgba(255,\x20255,\x20255,\x200.01)','@univerjs/ui','method','refreshPermission','@univerjs/telemetry','toggleOffline','ColorKit','APPLY_PERMISSION_DENIED','SNAPSHOT_URL_KEY','#FFF','_revisionService','_roomMembers$','on-line-single_clip0_910_349','10TRrphZ','putCollaborators','conflict.content','_onMessage','fetch_missing','onStarting','{fileID}','HELLO','getTypeOfUnitDisposed$','_initCommandExecutedListener','ACTIVE_UNIT_EVENT_CHANNEL','switchMap','loadSheet','measureText','function','bottom','status','@univerjs/engine-render','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_sheetSkeletonManagerService','assign','onTransformSelections','onlyLocal','LICENSE_DISTRO_REJECTED','setAlpha','cursorInfo','APPLY_NON_SEQUENTIAL_REVISION','transformMutationsWithChangeset','AWAITING','setCurrentUser','UniverInstanceType','DeleteRangeMoveUpCommandId','_renderManagerService','_name','Module','Starting','exhaustSavingTask','values','CHANGESET_REJ','getUnhiddenWorksheets','_clearCollaborationTimeoutTimer','getCollabCursors$','_unitID','getOwnPropertySymbols','NOT_FOUND','UNKNOWN_CMD','_configService','_hideTimer','_startTelemetryCollaborationNewChangeset','collabStatus.conflict','WorkbookEditablePermission','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','ILocalStorageService','startTime','round','connection\x20error','1em','_sessions','AuthzIoHttpService','fillRule','_urlService','requestParams','COMPLETION_FINISHED','_clearOtherTimers','LOGIN_URL_KEY','UNAUTHENTICATED','connectInjector','href','_awaitingChangeset','_createSocket','0\x200\x2016\x2016','_showConflictNotification','getCellPositionByOffset','originalMeta','_logService','blue400','collabStatus.notCollab','fetchMissingChangesets','asObservable','parse','DesktopCollaborationStatusDisplayController','updateOfflineData','_lastPointer','_scene','reduce','/universer-api/snapshot/','_scheduleSaving','@univerjs/docs','updateCursorEvent','throttleTime','CHANGESET_ACK','/universer-api/stream/file/upload','image/png','Undefined','current','_getSendChangesetTimeout','encodeURIComponent','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','selections','MSG_FOR_ERROR','VIEW_MAIN','url(#off-line-single_clip0_910_343)','_state$','/block/','_socketReady','_onConnectionOpen','COMMENT_UPDATE','className','sessionStatus$','getRoom','COMPRESS_MUTATION_APPLY','_initStatusListener','OnLifecycle','newCsEvent','_listenToOfflineEvent','_updateSubUnitFromURLParams','resolve','_onCursorUpdate','[FetchMissState]','onMissingChangesets','_docTransformIMECacheService','registerComponent','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','UnitEmbedded','InsertRowCommandId','UUID','M0\x200H16V16H0z','_getCtorByUniverType','/universer-api/oidc/authpage','_docSkeleton','useCallback','eventID','/-/object/list','getDeserializedSheetBlock','next','univer-offline','fill','UniverDesign','\x0aCurrent:\x20','IRemoteInstanceService','_startCollaboration','_getSaveTimeout','transformStack\x20failed!','session.connection-failed','sessionStatus','slice','HttpImport','/-/object/-/batch_allowed','_cursorShapes','SEND_CHANGESET_TIMEOUT','NodePositionConvertToCursor','onRemoteAck','ImageSourceType','find','_collabCursorController','ImageUploadStatusType','_http','EffectRefRangId','collaboration_new_changeset','SYNCED','_initResize','drawWith','_updateLocalCache','responseType','roomInfos','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','FETCH_MISS','getCurrentUser','_permissionService','/role','_tryEnsureSocket','transformSelections','_cursors','_univerInstanceService','_onRecvEvent','set','complete','_handleLeaveEvent','_rescheduleHeartbeat','Injector','getUnitStatus$','action','unsubscribe','debounce','handleDeleteRangeMoveLeft','UniverCore','ISnapshotServerService','shareReplay','_disableEditing','APPLY_REVISION_CONFILICT','UNIVER_UNKNOWN','_onFetchMissResult','synced','_scheduleHeartbeat','@univerjs/design','Vector2','UniverDrawing','FETCH_MISSING','INVALID_ARGUMENT','_cachedData','call','size','commentUpdate$','collabSubmitChangesetUrl','_commentUpdate$','LIVESHARE_NEW_HOST','DisposableCollection','failed\x20to\x20apply\x20missed\x20changesets!','parseChangesetToProtocol','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','disposeWithMe','getSheetBySheetId','getVpScrollXYInfoByPosToVp','HEARTBEAT_INTERVAL','/universer-api/authz','128445DHscXR','[SyncedState]:\x20received\x20acknowledgement.','textRanges','_singleActiveUnitService','symbol','@univerjs/engine-formula','Inject','push','userID','_onJoinRoomEvent','LocalUndoRedoService','csAckEvent','3hvfZMw','baseRev','_handleHeartbeatEvent','react','_applyRemoteChangeset','ERROR_IMAGE','INGEST','_onCombEvent','collab-text-range-','session.collaboration-timeout','_clearRedo','compose','setActiveRange','signUrlServerUrl','findNodePositionByCharIndex','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_initCloseConn','univer-online-status-icon','beginPath','unit','registerRenderModule','incrementRevOfUnit','@univerjs/network','_memberService','?size=','post','capture','_unitStatus','_createHandler','onCommandExecuted','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','name','members','_localStorageService','event$','pauseCollaboration','withCredentials','updateMember','?url=','_ensureSubject','_onOffline','sequenceExecute','_range','_registerDependencies','LEAVE','update','_sheetTransformSelectionsService','_colorIndex','_unlockTransition','ERROR_IMAGE_TYPE','clear','transformChangesets','4088szltQB','range','VIEWPORT_KEY','editingUnit','startColumn','title','_submitChangeset','min','retryConnectingInterval','CollaborationSocketService','isTransformMutationsWithChangesetSuccess','getUnitOnRev','RemoveColCommandId','getUnitId','_colorAssignService','MessageType','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','updatePermissionObjEvent','loadDoc','_queuedRemoteChangesets','OnLineSingle','\x20to\x20','_handleJoinEvent','SheetSkeletonManagerService','_removeRoom','red300','url(#$1','c2Prime','@univerjs/sheets-ui','CollaborationEntity','_getRedoStack','syncEditingCollabCursor','EmptyMutation','isTransformMutationFailure','pipe','_transformUndoredo','UniverCollaborationPlugin','_commentService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','delay','uni.network.url-service','setTimeout','FileId','_imageSourceCache','onlineStatus','createInstance','cmd','addObject','with','\x20-\x20','deserializeToCombResponse','onTransformIME','SetTextSelectionsOperation','close$','SnapshotServerOverHTTPService','UniverLicense','_clearUndo','IMessageService','unitID','revision','YUUMI_RATE_OVER_LIMIT','width','_telemetryService','/allowed','_replayCachedMutations','_socket$','getFocusedUnit','collabCursorState$','IURLService','searchParams','skeleton','translate(.97)','/object/','_setupBeforeClosingHandler','_sendHeartbeat','substring','DocIMEInputManagerService','Rect','WebURLService','saveSheetBlock','transformUndoRedo','_draw','JOINING','c1Prime','_send','_entityInit$','isArray','collaborators','Unknown\x20user','_getUndoStack','registerHTTPInterceptor','history','on-line-single','json','Disposable','append','_messageService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','CollaborationSessionService','generateRandomId','_retryCount','getConfig','off-line-single','InsertColCommandId','_onLocalMutation','attrs','Steady','exports','sheetId','from','column','state$','ILogService','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','BASE64','DocStateChangeManagerService','_snapshotServerService','socket\x20open.','idSuffix','_hover','_createInitialStateImpl','combineLatest','HEARTBEAT','/collaborator','_snapshotService','BuiltInUIPart','_stopTelemetryCollaborationNewChangeset','univer-online','split','_handler','Warning','createCollaborator','_candidateSocket','clsx','mutations','...','body','leaveEvent','CHANGESET_REVISION_CONFILICT','every','UNIVER_SLIDE','ImageIoService','list','commentUpdateEvent','_change$','collaboratorID','fetchMiss','conflict','div','LifecycleStages','_color','createIdentifier','toggleOnline','_getSheetObject','string','serializeRangeWithSheet','close','createElement','state','handleInsertRangeMoveRight','[CollaborationState]:\x20apply\x20error!','_onRefRangeChange','[DataLoaderController]','snapshotServerUrl','all','getValue','_getCurrentRevision','_shapes','_collaborationTimeoutTimer','closePath','collab-rect-range-','COMPRESS_MUTATION_SEND','getCurrentSelections','registerRefRange','Rectangle','add','permissionRejEvent','handleInsertRow','focused$','_remoteChangesetQueue','_getSignURL','jiqing500','[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.','getCurrentRevOfUnit','UniverEngineFormula','getParam','currentTheme$','_anchor','has','[CollaborationSessionService]','UPDATE_CURSOR','CollaborationStatusDisplay','_refreshCollabCursors','clipPath','_userManagerService','NodePositionConvertToRectRange','SetWorksheetActivateCommand','_getUploadFileURL','PSEUDO_FETCH_MISSING_RESULT','TOO_MANY_REQUESTS','_removeClearOtherTimer','_telemetryInfo','getActiveSheet','_initEventListeners','parseProtocolChangeset','_refRangeService','OffLineSingle','createSocket','CollaborationSession','_timeoutTimer','/unit/','engine','mapDocumentTypeToUniverType','UniverNetwork','_localeService','_collabSessionService','HttpExport','_onRemoteACK','univer-pro.collaboration-client-socket-service','_type','_startSheetCollabCursor','InsertSheetMutation','PERMISSION_DENIED','forEach','arc','startRow','onTransformRemoteChangesetByIMECache','Optional','[PendingState]:\x20received\x20rejection.','168ueFXFt','_docSyncEditingCollabCursorService','snapshot','_updateState','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_backgroundColor','_onRemoteChangeset','IConfigService','PENDING','top','awaiting','onlineStatusIcon','handleInsertRangeMoveDown','AWAITING_WITH_PENDING','_cursorInfo$','max','CONNECTOR_DATA_TOO_LARGE','urlChange$','_retryConnectingTimer','RETRY_CONNECTING_MAX_COUNT','getSkeleton','UniverDocsUi','LICENSE_MAX_UNITS_EXCEEDED','getRelativeToViewportCoord','onCommentUpdate','IDLE','m2Prime','_init','_hovered','fillText','getUniverSheetInstance','getCollabEntity$','_getAnchorBounding','hidden','ICommandService','FAIL','getInterceptPoints','USERS_ENTER','_scheduleCollaborationTimeoutTimer','interceptor','3415rCOFCn','univer-online-status','objects','_drawAnchor','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','handleMoveRange','x-univer-host','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','CommentService','getUnitType','reconnect','_id','HTTPRequest','_heartbeatTimer','LIVESHARE_FETCH_OPERATIONS','editing\x20status\x20changed\x20to','prototype','status$','appendMutation','ERROR_EXCEED_SIZE','MoveRangeCommandId','saveImage','open$','_notificationService','deepClone','collaboration.closeRoom','LICENSE_EXPORT_SIZE_EXCEEDED','IUniverInstanceService','show','fillStyle','_loadDoc','text','[OfflineState]:\x20received\x20changeset.','_compressMutationService','merge','sheets','executeCommand','_clearScheduledTask','_removeCollabCursors','isActive','getImage','_socketService','TEXT_RANGE_LAYER_INDEX','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_entities','infoRsp','selection','_collaborationController','_state','_assignedColors','authzUrl','enableOfflineEditing','shouldCloseConn','image/jpg','LOCAL_CACHE_INTERVAL_KEY','_saveTaskMap','COLLAB_SUBMIT_CHANGESET_URL','handleIRemoveRow','catch','_onConflict','roles','UNKNOWN_CODE','DocSelectionManagerService','SHOULD_CLOSE_CONN','INotificationService','message$','_lockTransition','_commandService','getAttachHeader','rxjs','change$','_fetchMissChangesets','_onUserLeave','workbook','_instanceService','subunit','_setupSubUnitSync','getMemberID','getOffsetConfig','doc.mutation.rich-text-editing','resize','result','ranges','_getLoginPath','CollaborationStatus','Workbook','visibilityState','trim','data','_initRequestHeader','dispose$','SheetCollabCursorShape','evenodd','onSyncEditingCollabCursor','_getAPIPrefix','headers','subUnitId','[CollaborationSession]','Subject','FromArray','objectType','LICENSE_IMPORT_SIZE_EXCEEDED','_loadSheet','ITransformService','concatMap','_beforeCloseService','_initMergeInterceptor','206372uMuYiT','now','localeService','getItem','popstate','_tryReconnect','HEARTBEAT_INTERVAL_KEY','subscribe','Tools','_anchorDot','_initUnitPermissionChange','isInternalEditorID','_drawRectRange','stringify','contains','actions','_saveCache','/universer-api/snapshot','enableAuthServer','UNIVER_SHEET','/fetchmissing?from=','rxjs/operators','SNAPSHOT_HAS_BEEN_REMOVED','_httpService','SnapshotService','UNDEFINED','ThemeService','IBeforeCloseService','isPermissionRej','loadOfflineData','CollaborationController','collab-text-anchor-','xlink:href','_injector','_undoRedoService','onStateChange','Univer','IUndoRedoService','dispose','objectActions','_getScale','verdancy600','requireSession','moveTo','defs','liveShareNewHost','RECV','transformMutation','currentColor','location','Error\x20on\x20receiving\x20event','batchAllowed','ONLINE','InsertRangeMoveRightCommandId','_disabled','reject','_getSnapshotAPIPrefix','getTypeOfUnitAdded$','handleInsertCol','UNIVER_PROJECT','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','joinRsp','m1Prime','ITelemetryService','SetSelectionsOperation','_sendingTimer','\x0aAfter:\x20','_context','deleteCollaborator','UnitSnapshot','getRangePointData','_config','collabStatus.fetchMiss','code','_isPermissionRej','YUUMI_SUBSCRIPTION_NOT_FOUND','whenReady','permission.title','replaceState','assignAColorForMemberID','_decreaseWaiting','path','_replaceFileID','init','IPermissionService','Shape','delete','off-line-single_clip0_910_343','@univerjs/core','_updateURLWithCurrentState','_themeService','override','_registerRenderDependencies','SheetsSelectionsService','_unitOnClients','onPointerLeave$','Error','_selfUnitIDs','_executeRemoteChangeset','_textBubble','NOT_COLLAB','concat','#fff','DocCollaborationEntity','getResourcesRequest','UniverCollaboration','_toggleOnline','_onRemoteRejected','getMergeData','fetchThroughInterceptors','toString','CONFLICT','RETRY_CONNECTING_MAX_COUNT_KEY','visibilitychange','toRgbString','defineProperty','_cursor','_clearHeartbeatTimer','_schedule','_handleHover','lineTo','saveOfflineData','RichTextEditingMutation','_onCursorDelete','isValidRectRange','&source=','Ready','getCollabEntity','loginUrlKey','_checkMissing','endRow','collaboration-client.config','unitId\x20is\x20not\x20found','unitId','MUTATION','CompressMutationService','uploadFileServerUrl','unshift','_substituteRedoStack','_render','updatePermissionPoint','reverse','_updateCollabCursors','collabWebSocketUrl','IRenderManagerService','defIds','_collabCursorState$','_listenToOnlineEvent','YUUMI_URL_COL_OUT_OF_RANGE','_scheduleClearOtherTimer','onRemoteChangeset','LocaleService','Tooltip','UniverUi','unknown','pending','take','HTTPService','_syncEditingCollabCursorService','fromCollab','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','onRemoteRej','UniverSheets','IContextService','offline','_incrementRevisionNumber','origin','serializeCombRequest','UNRECOGNIZED','disableLocalCache','collaboration.single-unit.warning','InsertRangeMoveDownCommandId','submit\x20changeset\x20error!','src','map','row','@univerjs/drawing','_collaborationPaused','roomMembers$','_transformService','DataLoaderController','then','_docStateChangeManagerService','entries','UNIVER_DOC','removeParam','none','includes','joinEvent','[CollaborationEntity]','image/jpeg','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_initStatusComponent','SetDocZoomRatioOperation','OFFLINE','readAsDataURL','_transformRemoteChangesetByIMECache','save','_handleEvent','create','filter','2513763RqBVeO','getCoordByCell','UniverEngineRender','removeMember','_startDocCollabCursor','setItem','_collaborationSessionService','_updateStatus','_localCacheService','/resources','getMember','params','collaboration-session-retry','@univerjs/docs-ui','YUUMI_UNABLE_LOAD_URL','rev','forwardRef','isTransformChangesetsSuccess','_onConnectionFailed','DocSkeletonManagerService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','getColor','_transitionLocked','getImageSourceCache','_session','_members','_socket'];_0x197e=function(){return _0x5230b5;};return _0x197e();}