@univerjs-pro/collaboration-client 0.3.0 → 0.4.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5448(_0x2c6472,_0x238c31){const _0x2e97c1=_0x2e97();return _0x5448=function(_0x544853,_0x127254){_0x544853=_0x544853-0x188;let _0x38c5b3=_0x2e97c1[_0x544853];return _0x38c5b3;},_0x5448(_0x2c6472,_0x238c31);}function _0x2e97(){const _0x2a5261=['_injector','_scheduleCollaborationTimeoutTimer','transformStack\x20failed!','unit','parseProtocolChangeset','_submitChangeset','off-line-single_clip0_910_343','/allowed','roomMembers$','ALREADY_EXISTS','_transformRemoteChangesetByIMECache','_setupSubUnitSync','_startDocCollabCursor','_members','InsertSheetMutation','UniverCollaborationPlugin','awaiting','OTHER_CLIENTS_EDITING','onRendered','AUTHZ_URL_KEY','LifecycleStages','collab-text-range-','setTimeout','throttleTime','_clearTimeoutTimer','WorkbookEditablePermission','routeKey','IUIPartsService','FromArray','SetSelectionsOperation','EXCHANGE_SIGN_URL_SERVER_URL_KEY','clear','getSkeleton','_docTransformSelectionsService','_showConflictNotification','_colorAssignService','type','transformByState','_color','LIVESHARE_FETCH_OPERATIONS','_transformUndoRedoStack','DocSelectionManagerService','YUUMI_SUBSCRIPTION_NOT_FOUND','attrs','_commandService','UniverCollaborationClientPlugin','Error','_replaceFileID','removeMember','capture','\x0aCurrent:\x20','UNRECOGNIZED','state$','getDocRanges','Inject','getUniverSheetInstance','collabCursorState$','getCurrentSelections','_transitionLocked','M0\x200H16V16H0z','UUID','liveShareOperation','liveShareNewHost','getDeserializedSheetBlock','url(#$1','onSendChangeset','idSuffix','eventID','onCommentUpdate','column','_document','fetching\x20missing\x20changesets\x20from\x20','_transformSelections','_cursorShapes','LIVESHARE_TERMINATE','currentColor','univer-online','_drawAnchor','transformIMECache','_ensureSubject','COMPRESS_MUTATION_SEND','ImageIoService','event$','_onRemoteRejected','getOwnPropertySymbols','next','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','handleDeleteRangeMoveUp','NOT_COLLAB','HEADER_MENU','isValidRectRange','HEARTBEAT_INTERVAL_KEY','toggleOffline','\x20to\x20','width','saveImage','RefRangeService','closeSession','cmd','UniverLicense','toString','has','post','toggleOnline','DocIMEInputManagerService','collaboratorID','operators','includes','1078170ewBdct','fillText','_assignedColors','onRemoteAck','fromEvent','image/jpeg','BehaviorSubject','LOGIN_URL_KEY','_sessionStatus$','INGEST','@univerjs/telemetry','MUTATION','POST','encode','_exhaustRemoteChangesetQueue','_anchor','synced','call','getConfig','&assign=','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','UNIVER_SLIDE','110256AeDCKZ','_onCursorUpdate','appendMutation','_snapshotServerService','onSyncEditingCollabCursor','RECV','conflict','getUnhiddenWorksheets','dispose$','_decreaseWaiting','_loadDoc','_drawTextRange','confirm','doc.mutation.rich-text-editing','getRoom','[CollaborationState]:\x20apply\x20error!','_cursor','_updateLocalCursor','SEND_CHANGESET_TIMEOUT','saveSnapshot','endRow','_onConnectionFailed','filter','UniverInstanceType','_collaborationController','ILocalStorageService','_telemetryInfo','[SyncedState]:\x20received\x20acknowledgement.','triggerDblclick','isTransformChangesetsSuccess','ImageUploadStatusType','onRemoteChangeset','_initStatusComponent','collabSubmitChangesetUrl','transformUndoRedo','awaiting_with_pending','InsertRangeMoveDownCommandId','_substituteUndoStack','_updateSubUnitFromURLParams','Disposable','SNAPSHOT_URL_KEY','_onConflict','_candidateSocket','makeDirty','_substituteRedoStack','_notificationService','then','_saveTaskMap','createSocket','parse','round','generateRandomId','onTransformRemoteChangesetByIMECache','IDLE','AWAITING','split','collab-client.tooltip.reconnect','OnLifecycle','getUnitStatus$','_onUserLeave','m1Prime','beginPath','getMemberID','getTime','isTransformMutationsWithChangesetFailure','_onCursorDelete','SessionStatus','_createInitialStateImpl','name','registerOnClose','prototype','string','JSONX','_range','UniverDrawing','listRoles','csAckEvent','now','SNAPSHOT_SERVER_URL_KEY','/-/object/-/batch_allowed','_entityInit$','_sendHeartbeatTimer','getActiveSheet','transformMutationsWithChangeset','AuthzIoHttpService','compose','transformSelections','session.will-retry','deleteCollaborator','getCurrent','_http','TEXT_RANGE_LAYER_INDEX','removeParam','ThresholdInterceptorFactory','collaborators','_syncEditingCollabCursorService','_onRefRangeChange','CONFLICT','loadDoc','clsx','Rect','RemoveColCommandId','_tryEnsureSocket','_docTransformIMECacheService','hide','CONNECTOR_DATA_TOO_LARGE','sequenceExecute','[CollaborationSessionService]','SNAPSHOT_HAS_BEEN_REMOVED','FETCH_MISS','visibilitychange','icon','delete','_tryReconnect','isTransformMutationsWithChangesetSuccess','entries','rev','measureText','ERROR_IMAGE','find','createCollaborator','BuiltInUIPart','?url=','DocCollaborationEntity','_getAPIPrefixPath','[CollaborationSession]','forwardRef','\x20-\x20','size','OnLineSingle','@univerjs/engine-render','SUCCUSS','[OfflineState]:\x20received\x20rejection.','_onLocalMutation','_clearScheduledTask','objectID','_handler','FAIL','m2Prime','_selfUnitIDs','DEFAULT_FILE_NAME','storage','_initCommandExecutedListener','_transformPreviousActiveRange','_compressMutationService','[DataLoaderController]','div','_toggleOffline','CollaborationSocketService','0\x200\x2017\x2016','/universer-api/snapshot/','LIVESHARE_REQUEST_HOST','_event$','on-line-single','@univerjs/sheets','NOT_FOUND','_getMergeRange','_joinRoom','_getSaveTimeout','_updateStatus','31384tptnsn','_getDownloadEndpointURL','_roomMembers','RETRY_CONNECTING_MAX_COUNT','url(#on-line-single_clip0_910_349)','handleIRemoveCol','allowed','_onRemoteACK','serializeCombRequest','@univerjs/ui','disableLocalCache','getSheetId','getUnit','retryConnectingInterval','SheetSkeletonManagerService','@univerjs/rpc','_clearUndo','setWaitCount','YUUMI_RATE_OVER_LIMIT','fillRule','/block/','_schedule','getRangePointData','@univerjs/network','defs','INTERNAL_ERROR','localeService','uni.network.url-service','send','React','assignAColorForMemberID','_syncEditingCollabCursor','getMember','_getSnapshotAPIPrefix','roomMembers','debug','_init','takeUntil','_name','stopTime','baseRev','revision','_collabSessionService','Ready','11640nMcAQj','sendChangesetTimeout','history','UNDEFINED','_scheduleTimestamp','exports','asObservable','/-/object/list','toDisposable','getCurrentRevOfUnit','replace','NEW_CHANGESETS','getRelativeToViewportCoord','drawWith','_createSocket','updateOfflineData','univer-online-status-title','shareReplay','InsertRowCommandId','CollaborationController','color','urlChange$','debounce','addEventListener','4415751OuPToI','_sheetSkeletonManagerService','3JvyOYC','_acknowledgedAwaitingChangeset','UniverTelemetry','UNIVER_DOC','_stopTelemetryCollaborationNewChangeset','_drawRectRange','_updateLocalCache','_disabled','_listenToOfflineEvent','_httpService','BASE64','csRejEvent','Starting','status$','_startSheetCollabCursor','_clearHeartbeatTimer','/universer-api/snapshot','data','values','not_collab','HTTPRequest','CHANGESET_REVISION_CONFILICT','arc','SetWorksheetActivateCommand','isInternalEditorID','_rescheduleHeartbeat','status','_textBubble','UniverCollaboration','_status$','HELLO','_docSkeleton','height','_instanceService','show','LocalCacheService','collab-text-anchor-','_getRedoStack','getCellPositionByOffset','ThemeService','textRanges','PSEUDO_FETCH_MISSING_RESULT','useDependency','MergeInterceptorFactory','WebSocketService','_state$','INVALID_ARGUMENT','_retryConnectingTimer','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_handleEvent','_commentUpdate$','interceptor','LIVESHARE_OPERATION','slice','reconnect','LEAVE','_online','UniverIcon','_removeClearOtherTimer','SnapshotServerOverHTTPService','/fetchmissing?from=','clearInterval','offline','unit-cache-','getColor','blue400','evenodd','random','getAncestorScale','getValue','UniverNetwork','collabStatus.notCollab','fromCollab','pending','_onRemoteChangeset','_refRangeService','_roomMembers$','_pendingMutations','getImageSourceCache','/collaborator','/unit/','_initStatusListener','HEARTBEAT_INTERVAL','_change$','RevisionService','/role','red300','DependentOn','take','PENDING','CollaborationEntity','VIEW_MAIN','add','CollaborationEvent','TOO_MANY_REQUESTS','sessionStatus$','sessionStatus','getActiveRange','engine','_docStateChangeManagerService','0\x200\x2016\x2016','Optional','apply','updateCursorEvent','_univerInstanceService','_collaborationPaused','_startTelemetryCollaborationNewChangeset','onPointerEnter$','_logService','_collaborationTimeoutTimer','_waitCount','IAuthzIoService','OffLineSingle','_getCurrentRevision','_state','CollaborationSessionService','LICENSE_DISTRO_REJECTED','resend','_refreshCollabCursors','_waitForHeartbeatResponse','DocSkeletonManagerService','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','getFocusedUnit','ISnapshotServerService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','Shape','1em','LocaleService','startRow','current','createInstance','from','subUnitId','_handleHeartbeatEvent','univer-pro.collaboration-client-socket-service','CHANGESET_REJ','Error\x20on\x20receiving\x20event','[CollaborationSessionService]:\x20socket\x20error','_redoStacks','IMessageService','Steady','HEARTBEAT','permissionRejEvent','getUnitId','put','MSG_FOR_ERROR','Injector','SNAPSHOT_INVALID_SNAPSHOT','_memberService','IRenderManagerService','collabStatus.offline','CHANGESET_ACK','_scene','objectType','getOwnPropertyDescriptor','_renderManagerService','_getAPIPrefix','mutations','SHOULD_CLOSE_CONN','_transformService','_scheduleClearOtherTimer','onRemoteRej','_userManagerService','_socket','joinEvent','UNIVER_PROJECT','serializeRangeWithSheet','_localeService','catch','executeCommand','getCoordByCell','startsWith','Tooltip','IUndoRedoService','workbook','_clearRedo','univerjs-icon\x20univerjs-icon-','handleInsertRangeMoveDown','@univerjs/docs-ui','EffectRefRangId','DesktopCollaborationStatusDisplayController','merge','concat','unitId\x20is\x20not\x20found','body','getUnitType','LICENSE_EXPORT_SIZE_EXCEEDED','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_telemetryService','_initRequestHeader','children','roles','ICommandService','addObject','_heartbeatTimer','_unitID','@univerjs-pro/license','conflict.title','_initMergeInterceptor','tag','_throwTelemetryCollaborationNewChangeset','UniverUi','message$','onMouseMove','IBeforeCloseService','rgba(255,\x20255,\x20255,\x200.01)','range','_localStorageService','registerRenderModule','onStateChange','json','runRefRangeMutations','clearTimeout','ColorKit','USERS_ENTER','8BgwTPw','_handleJoinEvent','setParam','_onUserJoin','indexOf','addObjects','getMergeData','FileId','UPDATE_PERMISSION_OBJ','handleInsertCol','className','ICollaborationSocketService','session.connection-failed','XHRHTTPImplementation','DeleteRangeMoveLeftCommandId','collabStatus.syncing','_shapes','combineLatest','all','getResourcesRequest','update','rxjs/operators','_initResize','COMPLETION_FINISHED','Subject','deserializeRangeWithSheet','_unitOnClients','exhaustSavingTask','session.collaboration-timeout','collaboration-session-retry','_transformIMECache','univer-online-status','_registerRenderDependencies','debounceTime','AWAITING_WITH_PENDING','IImageIoService','_timeoutTimer','onMissingChangesets','_scheduleHeartbeat','_loadSheet','onload','b64DecodeUnicode','_revisionService','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','RegularPolygon','handleIRemoveRow','switchMap','set','useObservable','loadOfflineData','[CollaborationEntity]','_unitStatus','getAttachHeader','setAlpha','_startCollaboration','_cachedData','subscribeEvent','open$','endColumn','_singleActiveUnitService','IPermissionService','mergeOverrideWithDependencies','_setupBeforeClosingHandler','use','_scheduleSaving','APPLY_REVISION_CONFILICT','_hover','startTime','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','HTTPService','_colorIndex','with','getOffsetConfig','every','title','_labelPosition','joinRsp','_executeRemoteChangeset','getParam','Tools','_isPermissionRej','resize','_draw','3630921QKzRkF','RemoveRowCommandId','transformChangesets','COMPRESS_MUTATION_APPLY','[OfflineState]:\x20received\x20changeset.','_socketService','hidden','@univerjs-pro/collaboration','black','subunit','signUrlServerUrl','CommandType','YUUMI_URL_COL_OUT_OF_RANGE','setConfig','telemetry\x20info\x20is\x20not\x20initialized','snapshot','TRANSFORM_CHANGE_OBSERVABLE_TYPE','close$','_ws','_socket$','Unknown\x20user','_getSheetObject','session.room-full','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','useRef','_initCloseConn','getInterceptPoints','_hovered','encodeURIComponent','UniverEngineFormula','getCurrentUnitForType','reject','pushState','CollaborationSession','CollaborationStatusDisplay','getTypeOfUnitAdded$','findNodePositionByCharIndex','ws://127.0.0.1:8000/universer-api/comb/connect','on-line-single_clip0_910_349','_cursorInfo$','reduce','editing\x20status\x20changed\x20to','listCollaborators','_anchorDot','_getSendChangesetTimeout','getCurrentUser','change$','subscribe','onTransformSelections','@univerjs/drawing','editingUnit','deepClone','\x0aAfter:\x20','getCollabCursors$','max','setShapeProps','_cursors','session','addImageSourceCache','collaboration.closeRoom','LOCAL_CACHE_INTERVAL_KEY','getTypeOfUnitDisposed$','withCredentials','univer-online-status-icon','_id','_initUnitPermissionChange','_collabCursorState$','concatMap','cursorInfo$','JOIN','/resources','map','ITelemetryService','univer-offline','IURLService','_removeRoom','append','DocStateChangeManagerService','NO_OTHER_CLIENTS_EDITING','pipe','location','getCollabEntity','mapTo','c1Prime','@univerjs/docs','UPDATE_CURSOR','get','reverse','transformRemoteChangeset','_snapshotService','_updateURLWithCurrentState','flatMap','_saveCache','USERS_LEAVE','min','replaceState','WebURLService','_uiPartsService','none','isArray','1985PoNCNW','/new_changes','code','connectInjector','enableOfflineEditing','syncEditingCollabCursor','extend','_sendingTimer','commentUpdate$','_onFetchMissResult','setCurrentUser','top','restore','[SyncedState]:\x20received\x20rejection.','_getSignURL','result','getWorkbookSelections','text','_permissionService','memberID','_docSyncEditingCollabCursorService','22TnlCVA','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','unshift','currentSkeleton$','rxjs','getImage','dispose','loadSheet','_configService','roomInfos','createElement','_getUndoStack','duration','unitId','object','collaboration-client.offline-data-not-saved','uploadFileServerUrl','createIdentifier','_incrementRevisionNumber','_eventUnsubscribe','onPointerMove$','save\x20fail\x20reason\x20is\x20','length','react','APPLY_NON_SEQUENTIAL_REVISION','downloadEndpointUrl','forEach','init','saveSheetBlock','_createInitialState','_disableEditing','_queuedRemoteChangesets','svg','_config','_initModules','/universer-api/comb','members','_sessions','online','NodePositionConvertToRectRange','UserManagerService','startColumn','Rectangle','selections','_context','COMMENT_UPDATE','_render','_send','_urlService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','unitID','[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.','_entities','clipPath','getSheetBySheetId','LICENSE_IMPORT_SIZE_EXCEEDED','requestParams','method','action','delay','resourceIDs','ONLINE','getSheetBlock','onTransformIME','onlineStatus','[FetchMissState]','error','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','isActive','Module','selection','_hideTimer','socketService','#fff','/object/','fill','params','isEditing','UNIVER_SHEET','FETCH_MISSING','stringify','updatePermissionPoint','JOINING','RxDisposable','contains','_sheetTransformSelectionsService','/universer-api/oidc/authpage','COLORS','push','fetchMissingChangesets','_docSkeletonManagerService','onMissedChangesetFetched','ranges','OFFLINE','INotificationService','_updateCollabCursors','authzUrl','_onRecvEvent','resolve','\x20in\x20_schedule.','_sendHeartbeat','image/jpg','...','UniverSheetsUi','&to=','state','skeleton','infoRsp','copyFileMeta','MessageType','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_messageService','_updateState','Warning','amd','defIds','@univerjs/sheets-ui','hasOwnProperty','_toggleOnline','trim','@univerjs/engine-formula','url','handleDeleteRangeMoveLeft','whenReady','socket$','onPointerLeave$','href','UniverSheets','some','complete','_createHandler','VIEWPORT_KEY','PERMISSION_REJ','updateMember','_socketMessageSubscription','pauseCollaboration','_lockTransition','Vector2','_imageSourceCache','save','error$','/universer-api/file/{fileID}/sign-url','transformMutation','fetchMiss','_session','fetch_missing','lineTo','registerRefRange','_socketReady','changesets','LIVESHARE_NEW_HOST','mapDocumentTypeToUniverType','_handleHover','bottom','collab-rect-range-','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','hovered','path','disposeUnit','_unlockTransition','assign','UNIVER_UNKNOWN','origin','2213864zefarS','_collaborationSessionService','setInterval','CompressMutationService','focused$','getCollabEntity$','_onCombEvent','onCommandExecuted','_lastPointer','xlink:href','DataLoaderController','ImageSourceType','objectActions','_HTTPService','function','x-univer-host','_onConnectionOpen','HEARTBEAT_TIMEOUT_KEY','_collabCursorController','fillStyle','onlyLocal','SEND_CHANGESET_TIMEOUT_KEY','Workbook','getItem','_handleLeaveEvent','registerHTTPInterceptor','visibilityState','_localCacheService','247zdbrzl','SheetsSelectionsService','_registerDependencies','unsubscribe','_retryCount','SheetCollaborationEntity','ILogService','DeleteRangeMoveUpCommandId','_onMessage','_type','toRgbString','override','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','userID','disposeWithMe','close','textEncoder','HttpExport','_clearCollaborationTimeoutTimer','SUBMIT_CHANGESET','displayName','registerBeforeClose','PERMISSION_DENIED','_undoRedoService','_clearLocalCache','defineProperty','_applyRemoteChangeset','IConfigService','unknown','CollaborationStatus','UniverDocsUi','IRemoteInstanceService','InsertColCommandId','RichTextEditingMutation','_fetchMissChangesets','_checkMissing','IUniverInstanceService','ITransformService','colorChannel1','UNIVER_COLLABORATION_CLIENT_PLUGIN','APPLY_PERMISSION_DENIED','APPLY_REJECT','enableSingleActiveInstanceLock','originalMeta','fetchThroughInterceptors','awaitingChangeset','_themeService','getRenderById','enableAuthServer','actions','_listenToOnlineEvent','Plugin','handleInsertRow','_backgroundColor','CommentService','_transformStack','@univerjs/design','UniverDesign','ERROR_EXCEED_SIZE','[PendingState]:\x20received\x20rejection.','row','labelPosition','onlineStatusTitle','_commentService','_remoteChangesetQueue','onStarting','UniverEngineRender','Undefined','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','currentTheme$','commentUpdateEvent','_getCtorByUniverType','batchAllowed','UNAUTHENTICATED','SetTextSelectionsOperation','_onOffline','_onJoinRoomEvent','putCollaborators','cursorInfo','_initEventListeners','UnitEmbedded','LOCAL_CACHE_INTERVAL','SheetCollabCursorShape','_undoStacks','@univerjs/core','UNKNOWN_CODE','_shouldReportTelemetry','UnitSnapshot','_replayCachedMutations','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','requireSession','deserializeToCombResponse','_getUploadFileURL','distinctUntilChanged','_getScale','collabStatus.conflict','isPermissionRej','key','_clearOtherTimers','SnapshotService','SetDocZoomRatioOperation','socket\x20open.','getUndoRedoMutationParamsCache','_removeCollabCursors','setItem','8VwHvGs','_awaitingChangeset'];_0x2e97=function(){return _0x2a5261;};return _0x2e97();}(function(_0x5a0fee,_0x59fe4d){const _0x4350fc=_0x5448,_0x4a713f=_0x5a0fee();while(!![]){try{const _0x4be613=-parseInt(_0x4350fc(0x4cb))/0x1*(parseInt(_0x4350fc(0x1b9))/0x2)+parseInt(_0x4350fc(0x1ff))/0x3*(parseInt(_0x4350fc(0x446))/0x4)+parseInt(_0x4350fc(0x38d))/0x5*(parseInt(_0x4350fc(0x1e5))/0x6)+-parseInt(_0x4350fc(0x329))/0x7+-parseInt(_0x4350fc(0x2d6))/0x8*(parseInt(_0x4350fc(0x1fd))/0x9)+-parseInt(_0x4350fc(0x539))/0xa*(-parseInt(_0x4350fc(0x3a2))/0xb)+-parseInt(_0x4350fc(0x54f))/0xc*(-parseInt(_0x4350fc(0x462))/0xd);if(_0x4be613===_0x59fe4d)break;else _0x4a713f['push'](_0x4a713f['shift']());}catch(_0x2c6339){_0x4a713f['push'](_0x4a713f['shift']());}}}(_0x2e97,0x8d59e),function(_0x28ceb3,_0xa80526){const _0x2f93f4=_0x5448;typeof exports==_0x2f93f4(0x3b0)&&typeof module<'u'?_0xa80526(exports,require('@univerjs/core'),require('rxjs'),require(_0x2f93f4(0x2eb)),require(_0x2f93f4(0x49a)),require(_0x2f93f4(0x1c2)),require(_0x2f93f4(0x1d0)),require(_0x2f93f4(0x330)),require(_0x2f93f4(0x543)),require(_0x2f93f4(0x37d)),require(_0x2f93f4(0x2b1)),require(_0x2f93f4(0x1b3)),require('@univerjs/engine-render'),require(_0x2f93f4(0x35a)),require(_0x2f93f4(0x41b)),require(_0x2f93f4(0x417)),require(_0x2f93f4(0x3b9)),require(_0x2f93f4(0x5b2)),require(_0x2f93f4(0x1c8)),require('@univerjs-pro/license')):typeof define==_0x2f93f4(0x454)&&define[_0x2f93f4(0x415)]?define([_0x2f93f4(0x1ea),_0x2f93f4(0x4b6),_0x2f93f4(0x3a6),_0x2f93f4(0x2eb),_0x2f93f4(0x49a),'@univerjs/ui','@univerjs/network',_0x2f93f4(0x330),_0x2f93f4(0x543),_0x2f93f4(0x37d),_0x2f93f4(0x2b1),_0x2f93f4(0x1b3),_0x2f93f4(0x19b),_0x2f93f4(0x35a),_0x2f93f4(0x41b),_0x2f93f4(0x417),_0x2f93f4(0x3b9),'clsx',_0x2f93f4(0x1c8),_0x2f93f4(0x2c3)],_0xa80526):(_0x28ceb3=typeof globalThis<'u'?globalThis:_0x28ceb3||self,_0xa80526(_0x28ceb3['UniverCollaborationClient']={},_0x28ceb3['UniverCore'],_0x28ceb3[_0x2f93f4(0x3a6)],_0x28ceb3['rxjs'][_0x2f93f4(0x537)],_0x28ceb3[_0x2f93f4(0x49b)],_0x28ceb3[_0x2f93f4(0x2c8)],_0x28ceb3[_0x2f93f4(0x245)],_0x28ceb3[_0x2f93f4(0x21b)],_0x28ceb3[_0x2f93f4(0x201)],_0x28ceb3['UniverDocs'],_0x28ceb3[_0x2f93f4(0x480)],_0x28ceb3[_0x2f93f4(0x422)],_0x28ceb3[_0x2f93f4(0x4a4)],_0x28ceb3[_0x2f93f4(0x599)],_0x28ceb3[_0x2f93f4(0x346)],_0x28ceb3[_0x2f93f4(0x40a)],_0x28ceb3[_0x2f93f4(0x1d6)],_0x28ceb3[_0x2f93f4(0x5b2)],_0x28ceb3['UniverRpc'],_0x28ceb3[_0x2f93f4(0x530)]));}(this,function(_0x2010a0,_0x5821d4,_0x2fad13,_0xbf2513,_0x2997c5,_0x32b063,_0x19a2cc,_0xf29ce7,_0x67c0c9,_0xc13db5,_0x1123f9,_0x872f07,_0x33b476,_0x2b5006,_0x5c27f4,_0x15b72e,_0x5036b4,_0x46648e,_0x1d2bd4,_0x1c126e){'use strict';const _0x2b1dc8=_0x5448;var _0x3d9f47=Object[_0x2b1dc8(0x47b)],_0x2d3a89=(_0xe8eb12,_0x513441,_0xc8dd41)=>_0x513441 in _0xe8eb12?_0x3d9f47(_0xe8eb12,_0x513441,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc8dd41}):_0xe8eb12[_0x513441]=_0xc8dd41,_0x58b0b3=(_0x31d12e,_0x1e8cd2,_0x4d9574)=>_0x2d3a89(_0x31d12e,typeof _0x1e8cd2!='symbol'?_0x1e8cd2+'':_0x1e8cd2,_0x4d9574);const _0x22f28d=_0x2b1dc8(0x59d),_0x34b7c6=_0x2b1dc8(0x20f),_0x5457b5=_0x2b1dc8(0x577),_0x97fb7f=_0x2b1dc8(0x561),_0x26584f='COLLAB_WEB_SOCKET_URL',_0x1f0f9f=_0x2b1dc8(0x34e),_0x28f4bb=_0x2b1dc8(0x251),_0x58f797='HEARTBEAT_TIMEOUT',_0x183075=_0x2b1dc8(0x1bc),_0x120b3c=_0x2b1dc8(0x4b3),_0x5d7118='COLLAB_SUBMIT_CHANGESET_URL',_0x49b93d=_0x2b1dc8(0x3c5),_0x4036af=_0x2b1dc8(0x540),_0x5525d8=_0x2b1dc8(0x3f9);var _0x37b011=(_0x525b0a=>(_0x525b0a[_0x525b0a['UNDEFINED']=0x0]=_0x2b1dc8(0x1e8),_0x525b0a[_0x525b0a['OK']=0x1]='OK',_0x525b0a[_0x525b0a[_0x2b1dc8(0x1d2)]=0x2]=_0x2b1dc8(0x1d2),_0x525b0a[_0x525b0a[_0x2b1dc8(0x478)]=0x3]='PERMISSION_DENIED',_0x525b0a[_0x525b0a[_0x2b1dc8(0x1b4)]=0x4]=_0x2b1dc8(0x1b4),_0x525b0a[_0x525b0a[_0x2b1dc8(0x4ab)]=0x5]=_0x2b1dc8(0x4ab),_0x525b0a[_0x525b0a[_0x2b1dc8(0x4d6)]=0x6]=_0x2b1dc8(0x4d6),_0x525b0a[_0x525b0a[_0x2b1dc8(0x22d)]=0x7]=_0x2b1dc8(0x22d),_0x525b0a[_0x525b0a['TOO_MANY_REQUESTS']=0x8]=_0x2b1dc8(0x25d),_0x525b0a[_0x525b0a[_0x2b1dc8(0x2ed)]=0x9]=_0x2b1dc8(0x2ed),_0x525b0a[_0x525b0a[_0x2b1dc8(0x214)]=0x1389]=_0x2b1dc8(0x214),_0x525b0a[_0x525b0a[_0x2b1dc8(0x292)]=0x1771]=_0x2b1dc8(0x292),_0x525b0a[_0x525b0a[_0x2b1dc8(0x5bb)]=0x1772]=_0x2b1dc8(0x5bb),_0x525b0a[_0x525b0a[_0x2b1dc8(0x48b)]=0x1b59]=_0x2b1dc8(0x48b),_0x525b0a[_0x525b0a[_0x2b1dc8(0x3ba)]=0x1b5a]=_0x2b1dc8(0x3ba),_0x525b0a[_0x525b0a[_0x2b1dc8(0x317)]=0x1b5b]=_0x2b1dc8(0x317),_0x525b0a[_0x525b0a[_0x2b1dc8(0x48a)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x525b0a[_0x525b0a['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x2b1dc8(0x5b8),_0x525b0a[_0x525b0a['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x525b0a[_0x525b0a['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x2b1dc8(0x27b),_0x525b0a[_0x525b0a[_0x2b1dc8(0x3d9)]=0x232b]=_0x2b1dc8(0x3d9),_0x525b0a[_0x525b0a[_0x2b1dc8(0x2b9)]=0x232c]=_0x2b1dc8(0x2b9),_0x525b0a[_0x525b0a[_0x2b1dc8(0x273)]=0x232d]=_0x2b1dc8(0x273),_0x525b0a[_0x525b0a['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x525b0a[_0x525b0a[_0x2b1dc8(0x335)]=0x2712]=_0x2b1dc8(0x335),_0x525b0a[_0x525b0a[_0x2b1dc8(0x1cb)]=0x2713]=_0x2b1dc8(0x1cb),_0x525b0a[_0x525b0a[_0x2b1dc8(0x4f7)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x525b0a[_0x525b0a['UNRECOGNIZED']=-0x1]=_0x2b1dc8(0x500),_0x525b0a))(_0x37b011||{}),_0x25ecad=(_0x494b37=>(_0x494b37[_0x494b37[_0x2b1dc8(0x444)]=0x0]='UNIVER_UNKNOWN',_0x494b37[_0x494b37[_0x2b1dc8(0x202)]=0x1]='UNIVER_DOC',_0x494b37[_0x494b37['UNIVER_SHEET']=0x2]=_0x2b1dc8(0x3f1),_0x494b37[_0x494b37[_0x2b1dc8(0x54e)]=0x3]='UNIVER_SLIDE',_0x494b37[_0x494b37[_0x2b1dc8(0x2a4)]=0x4]=_0x2b1dc8(0x2a4),_0x494b37[_0x494b37[_0x2b1dc8(0x500)]=-0x1]='UNRECOGNIZED',_0x494b37))(_0x25ecad||{}),_0x42427d=(_0x4aba08=>(_0x4aba08[_0x4aba08['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x4aba08[_0x4aba08[_0x2b1dc8(0x21d)]=0x1]=_0x2b1dc8(0x21d),_0x4aba08[_0x4aba08[_0x2b1dc8(0x36e)]=0x2]=_0x2b1dc8(0x36e),_0x4aba08[_0x4aba08[_0x2b1dc8(0x236)]=0x3]='LEAVE',_0x4aba08[_0x4aba08[_0x2b1dc8(0x542)]=0x4]='INGEST',_0x4aba08[_0x4aba08[_0x2b1dc8(0x28c)]=0x5]='HEARTBEAT',_0x4aba08[_0x4aba08[_0x2b1dc8(0x554)]=0x6]='RECV',_0x4aba08[_0x4aba08[_0x2b1dc8(0x500)]=-0x1]=_0x2b1dc8(0x500),_0x4aba08))(_0x42427d||{}),_0x175fd1=(_0x1d0b86=>(_0x1d0b86[_0x1d0b86['UNKNOWN_CODE']=0x0]=_0x2b1dc8(0x4b7),_0x1d0b86[_0x1d0b86['OK']=0x1]='OK',_0x1d0b86[_0x1d0b86[_0x2b1dc8(0x1a2)]=0x2]=_0x2b1dc8(0x1a2),_0x1d0b86[_0x1d0b86['UNRECOGNIZED']=-0x1]=_0x2b1dc8(0x500),_0x1d0b86))(_0x175fd1||{}),_0xe85c2c=(_0x46ba0f=>(_0x46ba0f[_0x46ba0f[_0x2b1dc8(0x4a5)]=0x0]=_0x2b1dc8(0x4a5),_0x46ba0f[_0x46ba0f['HttpImport']=0x1]='HttpImport',_0x46ba0f[_0x46ba0f[_0x2b1dc8(0x473)]=0x2]=_0x2b1dc8(0x473),_0x46ba0f[_0x46ba0f[_0x2b1dc8(0x4b2)]=0x3]=_0x2b1dc8(0x4b2),_0x46ba0f[_0x46ba0f['UnitSnapshot']=0x4]=_0x2b1dc8(0x4b9),_0x46ba0f[_0x46ba0f[_0x2b1dc8(0x500)]=-0x1]=_0x2b1dc8(0x500),_0x46ba0f))(_0xe85c2c||{});const _0x451f80='collaboration-client.config',_0x10e363={};function _0x411e41(_0x29aa6e){const _0x3ace5a=_0x2b1dc8;var _0x252cbc,_0x129d71,_0x5b17e5,_0x5e1c86;const _0x101b15=_0x29aa6e['data'],_0x5d94aa=JSON[_0x3ace5a(0x580)](_0x101b15);switch(_0x5d94aa[_0x3ace5a(0x52f)]){case _0x42427d[_0x3ace5a(0x28c)]:case _0x42427d[_0x3ace5a(0x21d)]:{const _0x51df3d=_0x5d94aa[_0x3ace5a(0x40e)];return{..._0x5d94aa,'data':_0x51df3d,'cmd':_0x5d94aa['cmd']};}case _0x42427d[_0x3ace5a(0x36e)]:{const _0x4e0ede=_0x5d94aa[_0x3ace5a(0x322)];return{..._0x5d94aa,'data':_0x4e0ede,'cmd':_0x5d94aa['cmd']};}case _0x42427d['RECV']:{const _0x37020c=_0x5d94aa['collaMsg'];switch(_0x37020c[_0x3ace5a(0x510)]){case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x427)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':(_0x252cbc=_0x37020c[_0x3ace5a(0x28d)])==null?void 0x0:_0x252cbc['cs']},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7['CollaborationEvent'][_0x3ace5a(0x296)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':(_0x129d71=_0x37020c[_0x3ace5a(0x59b)])==null?void 0x0:_0x129d71['cs']},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x1f0)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':(_0x5b17e5=_0x37020c['newCsEvent'])==null?void 0x0:_0x5b17e5['cs']},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x286)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':(_0x5e1c86=_0x37020c[_0x3ace5a(0x20a)])==null?void 0x0:_0x5e1c86['cs']},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x37e)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c[_0x3ace5a(0x266)]},'cmd':_0x5d94aa['cmd']};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x2d5)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c[_0x3ace5a(0x2a3)]},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x386)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c['leaveEvent']},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)]['LIVESHARE_NEW_HOST']:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c[_0x3ace5a(0x50b)]},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)]['LIVESHARE_FETCH_OPERATIONS']:case _0xf29ce7[_0x3ace5a(0x25c)]['LIVESHARE_OPERATION']:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c[_0x3ace5a(0x50a)]},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x517)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c[_0x3ace5a(0x50b)]},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x290)]:return{..._0x5d94aa,'data':_0x37020c,'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7['CollaborationEvent']['COMMENT_UPDATE']:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c[_0x3ace5a(0x4a8)]},'cmd':_0x5d94aa['cmd']};case _0xf29ce7[_0x3ace5a(0x25c)]['UPDATE_PERMISSION_OBJ']:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c['updatePermissionObjEvent']},'cmd':_0x5d94aa[_0x3ace5a(0x52f)]};case _0xf29ce7[_0x3ace5a(0x25c)][_0x3ace5a(0x29d)]:return{..._0x5d94aa,'data':{..._0x37020c,'data':_0x37020c['shouldCloseConn']},'cmd':_0x5d94aa['cmd']};default:return _0x5d94aa;}}default:return _0x5d94aa;}}function _0x4d079d(_0x17f648){const _0x4b609c=_0x2b1dc8;switch(_0x17f648[_0x4b609c(0x52f)]){case _0x42427d[_0x4b609c(0x28c)]:case _0x42427d[_0x4b609c(0x21d)]:return JSON[_0x4b609c(0x3f3)]({'cmd':_0x17f648[_0x4b609c(0x52f)],'routeKey':_0x17f648[_0x4b609c(0x4e7)]});case _0x42427d[_0x4b609c(0x542)]:{let _0x5b345c;switch(_0x17f648['data']['eventID']){case _0xf29ce7['CollaborationEvent'][_0x4b609c(0x37e)]:{_0x5b345c={'eventID':_0xf29ce7[_0x4b609c(0x25c)]['UPDATE_CURSOR'],'updateCursorEvent':_0x17f648['data'][_0x4b609c(0x210)]};break;}case _0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x386)]:{_0x5b345c={'eventID':_0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x386)],'leaveEvent':_0x17f648[_0x4b609c(0x210)]['data']};break;}case _0xf29ce7['CollaborationEvent'][_0x4b609c(0x2d5)]:{_0x5b345c={'eventID':_0xf29ce7['CollaborationEvent'][_0x4b609c(0x2d5)],'joinEvent':_0x17f648[_0x4b609c(0x210)][_0x4b609c(0x210)]};break;}case _0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x439)]:{_0x5b345c={'eventID':_0xf29ce7['CollaborationEvent'][_0x4b609c(0x439)],'liveShareNewHost':_0x17f648[_0x4b609c(0x210)]['data']};break;}case _0xf29ce7['CollaborationEvent'][_0x4b609c(0x233)]:{_0x5b345c={'eventID':_0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x233)],'liveShareOperation':_0x17f648['data'][_0x4b609c(0x210)]};break;}case _0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x517)]:{_0x5b345c={'eventID':_0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x517)],'liveShareTerminate':_0x17f648[_0x4b609c(0x210)][_0x4b609c(0x210)]};break;}case _0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x1b0)]:{_0x5b345c={'eventID':_0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x1b0)],'liveShareRequestHost':_0x17f648[_0x4b609c(0x210)][_0x4b609c(0x210)]};break;}case _0xf29ce7[_0x4b609c(0x25c)][_0x4b609c(0x4f4)]:{_0x5b345c={'eventID':_0xf29ce7['CollaborationEvent'][_0x4b609c(0x4f4)]};break;}default:_0x5b345c={'eventID':_0x17f648[_0x4b609c(0x210)][_0x4b609c(0x510)]};}return JSON[_0x4b609c(0x3f3)]({'cmd':_0x17f648[_0x4b609c(0x52f)],'routeKey':_0x17f648[_0x4b609c(0x4e7)],'collaMsg':_0x5b345c});}case _0x42427d[_0x4b609c(0x36e)]:return JSON['stringify']({'cmd':_0x17f648['cmd'],'routeKey':_0x17f648[_0x4b609c(0x4e7)],'joinReq':_0x17f648[_0x4b609c(0x210)]});case _0x42427d[_0x4b609c(0x236)]:return JSON[_0x4b609c(0x3f3)]({'cmd':_0x17f648[_0x4b609c(0x52f)],'routeKey':_0x17f648[_0x4b609c(0x4e7)],'leaveReq':_0x17f648[_0x4b609c(0x210)]});default:throw new Error(_0x4b609c(0x2ba));}}var _0x432a66=Object['defineProperty'],_0x5d3dde=Object[_0x2b1dc8(0x299)],_0x3a4eed=(_0x4ff49e,_0x1bb341,_0x3686c5,_0x400f59)=>{for(var _0x2b57ce=_0x400f59>0x1?void 0x0:_0x400f59?_0x5d3dde(_0x1bb341,_0x3686c5):_0x1bb341,_0x9faeee=_0x4ff49e['length']-0x1,_0x51f7f4;_0x9faeee>=0x0;_0x9faeee--)(_0x51f7f4=_0x4ff49e[_0x9faeee])&&(_0x2b57ce=(_0x400f59?_0x51f7f4(_0x1bb341,_0x3686c5,_0x2b57ce):_0x51f7f4(_0x2b57ce))||_0x2b57ce);return _0x400f59&&_0x2b57ce&&_0x432a66(_0x1bb341,_0x3686c5,_0x2b57ce),_0x2b57ce;},_0x430528=(_0x2bfb46,_0xab1bcb)=>(_0x5bc90a,_0x1aedee)=>_0xab1bcb(_0x5bc90a,_0x1aedee,_0x2bfb46);const _0x5c41db=_0x5821d4[_0x2b1dc8(0x3b3)](_0x2b1dc8(0x285));function _0x594960(_0x664fda,_0x119b46,_0x3e2f0f){const _0x1d34da=_0x2b1dc8;return _0x664fda+'/'+_0x119b46+_0x1d34da(0x24f)+_0x3e2f0f+_0x1d34da(0x38e);}_0x2010a0[_0x2b1dc8(0x1ad)]=class extends _0x5821d4['Disposable']{constructor(_0x389b22,_0x4b064b,_0x3ca8d3,_0x1c4289,_0x1eae7a){const _0x2e7453=_0x2b1dc8;super(),this[_0x2e7453(0x5a9)]=_0x389b22,this[_0x2e7453(0x33b)]=_0x4b064b,this[_0x2e7453(0x3aa)]=_0x3ca8d3,this[_0x2e7453(0x26b)]=_0x1c4289,this[_0x2e7453(0x552)]=_0x1eae7a;}[_0x2b1dc8(0x57f)](_0x4a4984){const _0x10ce16=_0x2b1dc8,_0x2abff7=this[_0x10ce16(0x33b)][_0x10ce16(0x57f)](_0x4a4984);if(!_0x2abff7)throw new Error(_0x10ce16(0x3a3));const _0x30b8e7=new _0x5821d4['DisposableCollection'](),_0x478600=new _0x2fad13[(_0x10ce16(0x2ee))]();_0x30b8e7[_0x10ce16(0x25b)](_0x2abff7[_0x10ce16(0x33a)][_0x10ce16(0x358)](_0x51541e=>_0x478600[_0x10ce16(0x522)](_0x51541e))),_0x30b8e7[_0x10ce16(0x25b)](_0x5821d4[_0x10ce16(0x1ed)](()=>_0x478600[_0x10ce16(0x424)]()));const _0x38b6c6=new _0x2fad13[(_0x10ce16(0x2ee))]();_0x30b8e7[_0x10ce16(0x25b)](_0x2abff7[_0x10ce16(0x42f)]['subscribe'](_0x4b7c20=>_0x38b6c6[_0x10ce16(0x522)](_0x4b7c20))),_0x30b8e7[_0x10ce16(0x25b)](_0x5821d4['toDisposable'](()=>_0x38b6c6['complete']()));const _0x3a5d57=new _0x2fad13[(_0x10ce16(0x2ee))]();_0x30b8e7[_0x10ce16(0x25b)](_0x2abff7['message$'][_0x10ce16(0x358)](_0x196930=>{const _0xce1710=_0x10ce16,_0x1f0f6e=_0x411e41(_0x196930);_0x3a5d57[_0xce1710(0x522)](_0x1f0f6e);})),_0x30b8e7[_0x10ce16(0x25b)](_0x5821d4[_0x10ce16(0x1ed)](()=>_0x3a5d57[_0x10ce16(0x424)]()));let _0x5b8d97;const _0x48d0e7=()=>{const _0x5a8bc0=_0x10ce16;_0x38b6c6[_0x5a8bc0(0x522)](new Event('connection\x20error')),_0x478600['next'](new CloseEvent('connection\x20error')),_0x5b8d97[_0x5a8bc0(0x471)]();};return _0x5b8d97={'memberID':'','close$':_0x478600[_0x10ce16(0x1eb)](),'error$':_0x38b6c6[_0x10ce16(0x1eb)](),'open$':_0x2abff7['open$'],'message$':_0x3a5d57[_0x10ce16(0x1eb)](),'send':_0x50eb71=>{const _0x265149=_0x10ce16;if(_0x50eb71[_0x265149(0x52f)]===_0x42427d['INGEST']){if(_0x50eb71[_0x265149(0x210)]['eventID']===_0xf29ce7[_0x265149(0x25c)][_0x265149(0x475)]){this['_submitChangeset'](_0x5b8d97,_0x50eb71[_0x265149(0x210)])[_0x265149(0x2a7)](_0x3ccecc=>{const _0x4659d9=_0x265149;this[_0x4659d9(0x26b)][_0x4659d9(0x3e4)](_0x3ccecc),_0x48d0e7();});return;}if(_0x50eb71[_0x265149(0x210)][_0x265149(0x510)]===_0xf29ce7[_0x265149(0x25c)]['FETCH_MISSING']){const _0x5ce1a8=_0x50eb71[_0x265149(0x210)];this[_0x265149(0x484)](_0x5ce1a8)[_0x265149(0x57d)](_0x3cb6a4=>{const _0x4c823a=_0x265149;_0x3a5d57[_0x4c823a(0x522)]({'cmd':_0x42427d[_0x4c823a(0x554)],'code':_0x175fd1['OK'],'routeKey':_0x5ce1a8[_0x4c823a(0x210)]['unitID'],'routeType':'','data':{'eventID':_0xf29ce7['CollaborationEvent'][_0x4c823a(0x228)],'data':{'changesets':_0x3cb6a4}}});})[_0x265149(0x2a7)](_0x3b655d=>{const _0x3b581d=_0x265149;this[_0x3b581d(0x26b)]['error'](_0x3b655d),_0x48d0e7();});return;}}_0x2abff7[_0x265149(0x1d5)](_0x4d079d(_0x50eb71));},'close':()=>{const _0x1d003a=_0x10ce16;_0x2abff7[_0x1d003a(0x471)](),_0x30b8e7[_0x1d003a(0x3a8)]();}},_0x5b8d97;}async[_0x2b1dc8(0x4d2)](_0x1f3fbb,_0x46c3af){const _0x79e4f7=_0x2b1dc8;var _0x3f7788,_0x19e645;const {unitType:_0x45b55c,unitID:_0x265258,changeset:_0x49a2fe}=_0x46c3af[_0x79e4f7(0x210)],_0x13af76={'unitID':_0x265258,'memberID':_0x1f3fbb[_0x79e4f7(0x3a0)],'type':_0x45b55c,'changeset':_0xf29ce7['parseChangesetToProtocol'](_0x49a2fe)},_0x4fc89e=this[_0x79e4f7(0x3aa)][_0x79e4f7(0x54b)](_0x5d7118),_0x4687d7=this[_0x79e4f7(0x3aa)][_0x79e4f7(0x54b)](_0x451f80),_0xb60948=_0x594960((_0x19e645=(_0x3f7788=_0x4687d7==null?void 0x0:_0x4687d7[_0x79e4f7(0x570)])!=null?_0x3f7788:_0x4fc89e)!=null?_0x19e645:_0x49b93d,_0x45b55c,_0x265258);try{await this[_0x79e4f7(0x5a9)][_0x79e4f7(0x533)](_0xb60948,{'body':_0x13af76});}catch(_0x2f54cc){throw this[_0x79e4f7(0x26b)]['error'](_0x79e4f7(0x196),'submit\x20changeset\x20error!'),_0x2f54cc;}}async['_fetchMissChangesets'](_0x1958ed){const _0x4d39a8=_0x2b1dc8,{unitID:_0x1f1662,from:_0xd83867,to:_0x15f133,unitType:_0x37253b}=_0x1958ed[_0x4d39a8(0x210)];return(await this[_0x4d39a8(0x552)][_0x4d39a8(0x3fc)]({'metadata':void 0x0},{'unitID':_0x1f1662,'type':_0x37253b,'from':_0xd83867,'to':_0x15f133}))[_0x4d39a8(0x438)];}},_0x2010a0[_0x2b1dc8(0x1ad)]=_0x3a4eed([_0x430528(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x19a2cc[_0x2b1dc8(0x31b)])),_0x430528(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x19a2cc[_0x2b1dc8(0x22b)])),_0x430528(0x2,_0x5821d4['IConfigService']),_0x430528(0x3,_0x5821d4['ILogService']),_0x430528(0x4,_0xf29ce7['ISnapshotServerService'])],_0x2010a0[_0x2b1dc8(0x1ad)]);const _0x2fd828='collaboration_new_changeset';function _0xa4b6f2(_0x33194d){const _0x2d5dce=_0x2b1dc8;return JSON[_0x2d5dce(0x3f3)](_0x33194d)['length'];}class _0x4bccc8{constructor(){const _0x28e205=_0x2b1dc8;_0x58b0b3(this,'_commentUpdate$',new _0x2fad13[(_0x28e205(0x2ee))]()),_0x58b0b3(this,_0x28e205(0x395),this['_commentUpdate$'][_0x28e205(0x1eb)]());}[_0x2b1dc8(0x511)](_0x53cf17){const _0x23b01c=_0x2b1dc8;this[_0x23b01c(0x231)][_0x23b01c(0x522)](_0x53cf17);}}var _0x42b82f=Object['defineProperty'],_0x3d0f2f=Object[_0x2b1dc8(0x299)],_0x480508=(_0x9f63af,_0x3951b7,_0x1abee8,_0x368223)=>{const _0x4db89a=_0x2b1dc8;for(var _0x37d226=_0x368223>0x1?void 0x0:_0x368223?_0x3d0f2f(_0x3951b7,_0x1abee8):_0x3951b7,_0x2da5c4=_0x9f63af[_0x4db89a(0x3b8)]-0x1,_0x250507;_0x2da5c4>=0x0;_0x2da5c4--)(_0x250507=_0x9f63af[_0x2da5c4])&&(_0x37d226=(_0x368223?_0x250507(_0x3951b7,_0x1abee8,_0x37d226):_0x250507(_0x37d226))||_0x37d226);return _0x368223&&_0x37d226&&_0x42b82f(_0x3951b7,_0x1abee8,_0x37d226),_0x37d226;},_0x3260c1=(_0x3c99a0,_0x173bc1)=>(_0x3a05ea,_0x33c595)=>_0x173bc1(_0x3a05ea,_0x33c595,_0x3c99a0);let _0x35f626=class extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(_0x56ffb4,_0x246777){const _0x527b59=_0x2b1dc8;super(),_0x58b0b3(this,_0x527b59(0x1bb),new Map()),(this['_univerInstanceService']=_0x56ffb4,this['_userManagerService']=_0x246777,this[_0x527b59(0x470)](_0x5821d4[_0x527b59(0x1ed)](_0x2fad13[_0x527b59(0x2b4)](this[_0x527b59(0x267)][_0x527b59(0x366)](_0x5821d4['UniverInstanceType'][_0x527b59(0x3f1)])[_0x527b59(0x378)](_0xbf2513[_0x527b59(0x370)](_0x3acfae=>_0x3acfae[_0x527b59(0x28e)]())),this[_0x527b59(0x267)][_0x527b59(0x366)](_0x5821d4[_0x527b59(0x566)][_0x527b59(0x202)])[_0x527b59(0x378)](_0xbf2513[_0x527b59(0x370)](_0xa9b07d=>_0xa9b07d['getUnitId']())),this[_0x527b59(0x267)]['getTypeOfUnitDisposed$'](_0x5821d4['UniverInstanceType']['UNIVER_SLIDE'])[_0x527b59(0x378)](_0xbf2513[_0x527b59(0x370)](_0x3ef398=>_0x3ef398[_0x527b59(0x28e)]())))[_0x527b59(0x358)](_0x248b59=>this[_0x527b59(0x374)](_0x248b59)))));}[_0x2b1dc8(0x397)](_0xc567d1){const _0x3cccff=_0x2b1dc8;this[_0x3cccff(0x2a1)][_0x3cccff(0x397)](_0xc567d1);}['getCurrentUser'](){const _0x21da3c=_0x2b1dc8;return this[_0x21da3c(0x2a1)][_0x21da3c(0x356)]();}[_0x2b1dc8(0x428)](_0x474796,_0x3c9962){const _0x3bf39f=_0x2b1dc8;let _0x2e4be7=this[_0x3bf39f(0x1bb)][_0x3bf39f(0x37f)](_0x474796);_0x2e4be7||(_0x2e4be7=new _0x3cb511(),this[_0x3bf39f(0x1bb)][_0x3bf39f(0x305)](_0x474796,_0x2e4be7)),_0x2e4be7[_0x3bf39f(0x428)](_0x3c9962);}[_0x2b1dc8(0x4fd)](_0x3963c3,_0x35fc50){const _0x15acca=_0x2b1dc8,_0x31c799=this[_0x15acca(0x1bb)][_0x15acca(0x37f)](_0x3963c3);_0x31c799&&_0x31c799[_0x15acca(0x4fd)](_0x35fc50);}[_0x2b1dc8(0x55d)](_0x20e69b){const _0x28ff32=_0x2b1dc8;return this[_0x28ff32(0x1bb)][_0x28ff32(0x37f)](_0x20e69b);}[_0x2b1dc8(0x1d9)](_0x26ea3d,_0x5452e8){const _0x3dbab3=_0x2b1dc8,_0x4bfe30=this[_0x3dbab3(0x1bb)][_0x3dbab3(0x37f)](_0x26ea3d);if(_0x4bfe30)return _0x4bfe30[_0x3dbab3(0x1d9)](_0x5452e8);}['_removeRoom'](_0x4c0884){const _0x30f736=_0x2b1dc8,_0x103978=this[_0x30f736(0x1bb)][_0x30f736(0x37f)](_0x4c0884);_0x103978&&(_0x103978[_0x30f736(0x3a8)](),this['_roomMembers']['delete'](_0x4c0884));}[_0x2b1dc8(0x3a8)](){const _0x34cddc=_0x2b1dc8;this[_0x34cddc(0x1bb)][_0x34cddc(0x3bc)](_0x40f0aa=>_0x40f0aa[_0x34cddc(0x3a8)]()),this[_0x34cddc(0x1bb)][_0x34cddc(0x4ec)]();}};_0x35f626=_0x480508([_0x3260c1(0x0,_0x5821d4[_0x2b1dc8(0x486)]),_0x3260c1(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x3ca)]))],_0x35f626);class _0x3cb511 extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(){const _0x3afc16=_0x2b1dc8;super(...arguments),_0x58b0b3(this,_0x3afc16(0x4da),new Map());}[_0x2b1dc8(0x3a8)](){const _0x500cfd=_0x2b1dc8;this[_0x500cfd(0x4da)][_0x500cfd(0x4ec)]();}['updateMember'](_0x5d4d89){const _0x5e371b=_0x2b1dc8;this[_0x5e371b(0x4da)][_0x5e371b(0x305)](_0x5d4d89[_0x5e371b(0x3a0)],_0x5d4d89);}[_0x2b1dc8(0x4fd)](_0x567927){const _0x5135e1=_0x2b1dc8;this[_0x5135e1(0x4da)]['delete'](_0x567927);}[_0x2b1dc8(0x1d9)](_0x54d846){const _0x82297b=_0x2b1dc8;return this[_0x82297b(0x4da)]['get'](_0x54d846);}}var _0x15d830=Object[_0x2b1dc8(0x47b)],_0x21bab0=Object[_0x2b1dc8(0x299)],_0x3dd3c6=(_0x1322b2,_0x53f144,_0x4dd46e,_0x5e15b5)=>{const _0x3cda5b=_0x2b1dc8;for(var _0x73e057=_0x5e15b5>0x1?void 0x0:_0x5e15b5?_0x21bab0(_0x53f144,_0x4dd46e):_0x53f144,_0x485715=_0x1322b2[_0x3cda5b(0x3b8)]-0x1,_0x211f2a;_0x485715>=0x0;_0x485715--)(_0x211f2a=_0x1322b2[_0x485715])&&(_0x73e057=(_0x5e15b5?_0x211f2a(_0x53f144,_0x4dd46e,_0x73e057):_0x211f2a(_0x73e057))||_0x73e057);return _0x5e15b5&&_0x73e057&&_0x15d830(_0x53f144,_0x4dd46e,_0x73e057),_0x73e057;},_0x210328=(_0x3914bd,_0x174db9)=>(_0x23d79,_0x5c8ad9)=>_0x174db9(_0x23d79,_0x5c8ad9,_0x3914bd),_0x58e615=(_0xf2cc1d=>(_0xf2cc1d[_0xf2cc1d[_0x2b1dc8(0x584)]=0x0]=_0x2b1dc8(0x584),_0xf2cc1d[_0xf2cc1d[_0x2b1dc8(0x3f5)]=0x1]=_0x2b1dc8(0x3f5),_0xf2cc1d[_0xf2cc1d[_0x2b1dc8(0x400)]=0x2]=_0x2b1dc8(0x400),_0xf2cc1d[_0xf2cc1d[_0x2b1dc8(0x3df)]=0x3]=_0x2b1dc8(0x3df),_0xf2cc1d))(_0x58e615||{});_0x2010a0['CollaborationSession']=class extends _0x5821d4['RxDisposable']{constructor(_0x56ab13,_0xd28db4,_0x369ded,_0xaa38f4,_0x321443,_0x150a65,_0x506f26,_0x1198bc,_0x30049e,_0x1ca362){const _0x42a14d=_0x2b1dc8;super(),_0x58b0b3(this,_0x42a14d(0x541),new _0x2fad13['BehaviorSubject'](0x0)),_0x58b0b3(this,_0x42a14d(0x25e),this['_sessionStatus$'][_0x42a14d(0x1eb)]()),_0x58b0b3(this,_0x42a14d(0x1b1),new _0x2fad13[(_0x42a14d(0x2ee))]()),_0x58b0b3(this,_0x42a14d(0x51f),this[_0x42a14d(0x1b1)]['asObservable']()),_0x58b0b3(this,_0x42a14d(0x2a2)),_0x58b0b3(this,_0x42a14d(0x429)),_0x58b0b3(this,_0x42a14d(0x26c)),_0x58b0b3(this,_0x42a14d(0x4b8),!0x1),_0x58b0b3(this,_0x42a14d(0x569),null),(this['_unitID']=_0x56ab13,this[_0x42a14d(0x26b)]=_0x369ded,this['_beforeCloseService']=_0xaa38f4,this['_messageService']=_0x321443,this[_0x42a14d(0x3aa)]=_0x150a65,this[_0x42a14d(0x2a6)]=_0x506f26,this[_0x42a14d(0x293)]=_0x1198bc,this[_0x42a14d(0x4a1)]=_0x30049e,this[_0x42a14d(0x2bb)]=_0x1ca362,this[_0x42a14d(0x4b8)]=!!this[_0x42a14d(0x2bb)],_0xd28db4['pipe'](_0x2fad13[_0x42a14d(0x1de)](this[_0x42a14d(0x557)]))[_0x42a14d(0x358)](_0xb37d15=>{const _0x5ec401=_0x42a14d;var _0x53569d;typeof _0xb37d15>'u'||(this[_0x5ec401(0x2a2)]=_0xb37d15,_0xb37d15?(this[_0x5ec401(0x1b6)](_0xb37d15),this[_0x5ec401(0x429)]=_0xb37d15[_0x5ec401(0x2c9)]['subscribe'](_0xeea2ca=>{const _0x389046=_0x5ec401;_0xeea2ca[_0x389046(0x4e7)]===this[_0x389046(0x2c2)]&&this[_0x389046(0x44c)](_0xeea2ca);})):(this[_0x5ec401(0x2c7)](),this[_0x5ec401(0x541)]['next'](0x2),(_0x53569d=this[_0x5ec401(0x429)])==null||_0x53569d[_0x5ec401(0x465)](),this[_0x5ec401(0x429)]=null));}),this['disposeWithMe'](this['_beforeCloseService'][_0x42a14d(0x594)](()=>{const _0x26b88b=_0x42a14d;var _0x2ccf50;(_0x2ccf50=this[_0x26b88b(0x2a2)])==null||_0x2ccf50[_0x26b88b(0x1d5)]({'cmd':_0x42427d[_0x26b88b(0x236)],'data':{'roomID':this['_unitID']}});})));}get[_0x2b1dc8(0x25f)](){const _0xddcd4e=_0x2b1dc8;return this[_0xddcd4e(0x541)][_0xddcd4e(0x244)]();}[_0x2b1dc8(0x58d)](){const _0x41f298=_0x2b1dc8;var _0x298f20,_0x365572;return(_0x365572=(_0x298f20=this[_0x41f298(0x2a2)])==null?void 0x0:_0x298f20[_0x41f298(0x3a0)])!=null?_0x365572:null;}[_0x2b1dc8(0x3a8)](){const _0x14eead=_0x2b1dc8;super[_0x14eead(0x3a8)](),this[_0x14eead(0x557)][_0x14eead(0x522)](),this[_0x14eead(0x557)][_0x14eead(0x424)]();}[_0x2b1dc8(0x471)](){const _0x212baa=_0x2b1dc8;var _0x2fd059,_0x2ee9bf;this[_0x212baa(0x2c7)](),(_0x2fd059=this[_0x212baa(0x2a2)])==null||_0x2fd059[_0x212baa(0x1d5)]({'cmd':_0x42427d['LEAVE'],'data':{'roomID':this[_0x212baa(0x2c2)]}}),(_0x2ee9bf=this[_0x212baa(0x2a2)])==null||_0x2ee9bf[_0x212baa(0x471)](),this[_0x212baa(0x1b1)][_0x212baa(0x424)](),this[_0x212baa(0x541)][_0x212baa(0x424)](),this[_0x212baa(0x3a8)]();}[_0x2b1dc8(0x44c)](_0x1ccc4f){const _0x44ef4f=_0x2b1dc8;_0x1ccc4f['cmd']===_0x42427d[_0x44ef4f(0x36e)]?this[_0x44ef4f(0x4ae)](_0x1ccc4f):_0x1ccc4f[_0x44ef4f(0x52f)]===_0x42427d[_0x44ef4f(0x554)]&&this[_0x44ef4f(0x404)](_0x1ccc4f);}[_0x2b1dc8(0x1b6)](_0x401965){const _0x52f897=_0x2b1dc8;this[_0x52f897(0x541)][_0x52f897(0x522)](0x1),_0x401965[_0x52f897(0x1d5)]({'cmd':_0x42427d[_0x52f897(0x36e)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x2b1dc8(0x4ae)](_0x2104d4){const _0xc462fb=_0x2b1dc8;var _0x4a605b;if(_0x2104d4[_0xc462fb(0x38f)]===_0x175fd1[_0xc462fb(0x1a2)]){this['_messageService'][_0xc462fb(0x221)]({'type':_0x2997c5['MessageType'][_0xc462fb(0x414)],'content':this[_0xc462fb(0x2a6)]['t'](_0xc462fb(0x33f))}),this[_0xc462fb(0x541)][_0xc462fb(0x522)](0x2);return;}this[_0xc462fb(0x541)][_0xc462fb(0x522)](0x3);const _0x4102d7=(_0x4a605b=_0x2104d4[_0xc462fb(0x210)][_0xc462fb(0x3ab)][this[_0xc462fb(0x2c2)]])==null?void 0x0:_0x4a605b[_0xc462fb(0x3c6)];_0x4102d7&&_0x4102d7[_0xc462fb(0x3bc)](_0x26e4e8=>this[_0xc462fb(0x293)][_0xc462fb(0x428)](this[_0xc462fb(0x2c2)],_0x26e4e8));}[_0x2b1dc8(0x404)](_0x371a21){const _0x28ab33=_0x2b1dc8;try{const _0x135a6e=_0x371a21[_0x28ab33(0x210)];switch(_0x135a6e['eventID']){case _0xf29ce7[_0x28ab33(0x25c)][_0x28ab33(0x2d5)]:this['_onUserJoin'](_0x135a6e),this['_event$'][_0x28ab33(0x522)](_0x135a6e);break;case _0xf29ce7[_0x28ab33(0x25c)][_0x28ab33(0x386)]:this[_0x28ab33(0x58a)](_0x135a6e),this[_0x28ab33(0x1b1)][_0x28ab33(0x522)](_0x135a6e);break;case _0xf29ce7[_0x28ab33(0x25c)][_0x28ab33(0x296)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x28ab33(0x474)](),this[_0x28ab33(0x1b1)][_0x28ab33(0x522)](_0x135a6e);break;case _0xf29ce7[_0x28ab33(0x25c)][_0x28ab33(0x290)]:this[_0x28ab33(0x26b)]['error'](_0x28ab33(0x3b7)+JSON[_0x28ab33(0x3f3)](_0x135a6e)),this[_0x28ab33(0x1b1)][_0x28ab33(0x522)](_0x135a6e);break;case _0xf29ce7[_0x28ab33(0x25c)][_0x28ab33(0x3cf)]:this[_0x28ab33(0x4a1)][_0x28ab33(0x511)](_0x135a6e['data']),this[_0x28ab33(0x1b1)][_0x28ab33(0x522)](_0x135a6e);break;default:this[_0x28ab33(0x1b1)][_0x28ab33(0x522)](_0x135a6e);}}catch(_0x2ec36e){this[_0x28ab33(0x26b)][_0x28ab33(0x3e4)](_0x2ec36e,_0x371a21);}}[_0x2b1dc8(0x2d9)](_0x35eb32){const _0x364cff=_0x2b1dc8;this[_0x364cff(0x293)][_0x364cff(0x428)](this[_0x364cff(0x2c2)],_0x35eb32[_0x364cff(0x210)]);}[_0x2b1dc8(0x58a)](_0x298c52){const _0x37d4d3=_0x2b1dc8;this['_memberService'][_0x37d4d3(0x4fd)](this[_0x37d4d3(0x2c2)],_0x298c52[_0x37d4d3(0x210)]['memberID']);}async[_0x2b1dc8(0x1d5)](_0x3ef6c7,_0x21d7c6){const _0x285f42=_0x2b1dc8;if(this[_0x285f42(0x25f)]!==0x3||!this['_socket'])throw new Error(_0x285f42(0x340));try{_0x3ef6c7[_0x285f42(0x510)]===_0xf29ce7['CollaborationEvent'][_0x285f42(0x475)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x285f42(0x269)](_0x3ef6c7)),this[_0x285f42(0x2a2)][_0x285f42(0x1d5)]({'cmd':_0x42427d[_0x285f42(0x542)],'routeKey':_0x21d7c6,'routeType':'','data':_0x3ef6c7});}catch(_0x29a9a0){this[_0x285f42(0x26b)][_0x285f42(0x3e4)](_0x29a9a0);}}[_0x2b1dc8(0x4ce)](){const _0x146f1b=_0x2b1dc8;var _0x4801b8;this[_0x146f1b(0x26c)]=window[_0x146f1b(0x4e3)](()=>{const _0x1e7d47=_0x146f1b;this[_0x1e7d47(0x26c)]=null,this['_messageService'][_0x1e7d47(0x221)]({'type':_0x2997c5[_0x1e7d47(0x410)][_0x1e7d47(0x4fb)],'content':this[_0x1e7d47(0x2a6)]['t'](_0x1e7d47(0x2f2))});},(_0x4801b8=this[_0x146f1b(0x3aa)][_0x146f1b(0x54b)](_0x58f797))!=null?_0x4801b8:0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0xd1445d=_0x2b1dc8;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0xd1445d(0x26c)]),this[_0xd1445d(0x26c)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x579998){const _0x55ebc2=_0x2b1dc8;if(!this[_0x55ebc2(0x4b8)])return;const {data:_0x1b43f2}=_0x579998,{unitID:_0x2acde6,changeset:_0x4ce582}=_0x1b43f2,{mutations:_0xb65c6d,type:_0x2faae2}=_0x4ce582;this[_0x55ebc2(0x569)]={'unitId':_0x2acde6,'type':_0x2faae2,'startTime':performance[_0x55ebc2(0x59c)](),'stopTime':0x0,'duration':0x0,'size':_0xa4b6f2(_0xb65c6d)};}[_0x2b1dc8(0x203)](){const _0x37e587=_0x2b1dc8;if(this['_shouldReportTelemetry']){if(!this[_0x37e587(0x569)]){this['_logService'][_0x37e587(0x3e4)](_0x37e587(0x196),_0x37e587(0x337));return;}this[_0x37e587(0x569)]['stopTime']=performance[_0x37e587(0x59c)](),this[_0x37e587(0x569)][_0x37e587(0x3ae)]=this[_0x37e587(0x569)][_0x37e587(0x1e0)]-this[_0x37e587(0x569)][_0x37e587(0x319)],this[_0x37e587(0x2bb)][_0x37e587(0x4fe)](_0x2fd828,this[_0x37e587(0x569)]),this[_0x37e587(0x569)]=null;}}[_0x2b1dc8(0x2c7)](){const _0x4f9d87=_0x2b1dc8;this[_0x4f9d87(0x569)]=null;}},_0x2010a0[_0x2b1dc8(0x34a)]=_0x3dd3c6([_0x210328(0x2,_0x5821d4['ILogService']),_0x210328(0x3,_0x32b063[_0x2b1dc8(0x2cb)]),_0x210328(0x4,_0x32b063[_0x2b1dc8(0x28a)]),_0x210328(0x5,_0x5821d4[_0x2b1dc8(0x47d)]),_0x210328(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x27e)])),_0x210328(0x7,_0x5821d4['Inject'](_0x35f626)),_0x210328(0x8,_0x5821d4['Inject'](_0x4bccc8)),_0x210328(0x9,_0x5821d4['Optional'](_0x67c0c9[_0x2b1dc8(0x371)]))],_0x2010a0[_0x2b1dc8(0x34a)]);var _0x4d8b23=Object[_0x2b1dc8(0x47b)],_0xa8ef83=Object[_0x2b1dc8(0x299)],_0x13b428=(_0x524817,_0x41088b,_0x15475f,_0x1932d8)=>{const _0x56376f=_0x2b1dc8;for(var _0xa12d0=_0x1932d8>0x1?void 0x0:_0x1932d8?_0xa8ef83(_0x41088b,_0x15475f):_0x41088b,_0xa6302f=_0x524817[_0x56376f(0x3b8)]-0x1,_0x43aa5f;_0xa6302f>=0x0;_0xa6302f--)(_0x43aa5f=_0x524817[_0xa6302f])&&(_0xa12d0=(_0x1932d8?_0x43aa5f(_0x41088b,_0x15475f,_0xa12d0):_0x43aa5f(_0xa12d0))||_0xa12d0);return _0x1932d8&&_0xa12d0&&_0x4d8b23(_0x41088b,_0x15475f,_0xa12d0),_0xa12d0;},_0x1daf99=(_0x1058e1,_0x4e1996)=>(_0x1cc35d,_0x12d7d3)=>_0x4e1996(_0x1cc35d,_0x12d7d3,_0x1058e1);_0x2010a0[_0x2b1dc8(0x272)]=class extends _0x5821d4['Disposable']{constructor(_0x1eb6ba,_0x44927a,_0x2615ae,_0x2b2af1,_0x231250,_0x500201){const _0x21bda3=_0x2b1dc8;super(),_0x58b0b3(this,_0x21bda3(0x33c),new _0x2fad13['BehaviorSubject'](void 0x0)),_0x58b0b3(this,_0x21bda3(0x41f),this[_0x21bda3(0x33c)][_0x21bda3(0x1eb)]()),_0x58b0b3(this,_0x21bda3(0x579),null),_0x58b0b3(this,_0x21bda3(0x3c7),new Map()),_0x58b0b3(this,_0x21bda3(0x21c),new _0x2fad13['BehaviorSubject'](_0x58e615[_0x21bda3(0x584)])),_0x58b0b3(this,_0x21bda3(0x20c),this[_0x21bda3(0x21c)][_0x21bda3(0x1eb)]()),_0x58b0b3(this,_0x21bda3(0x437),!0x1),_0x58b0b3(this,_0x21bda3(0x22e)),_0x58b0b3(this,_0x21bda3(0x466),0x0),_0x58b0b3(this,'_sendHeartbeatTimer'),_0x58b0b3(this,_0x21bda3(0x2fa)),(this[_0x21bda3(0x4cd)]=_0x1eb6ba,this['_localeService']=_0x44927a,this[_0x21bda3(0x412)]=_0x2615ae,this[_0x21bda3(0x26b)]=_0x2b2af1,this['_configService']=_0x231250,this[_0x21bda3(0x32e)]=_0x500201,this[_0x21bda3(0x4b1)]());}get[_0x2b1dc8(0x2a2)](){const _0xb135d4=_0x2b1dc8;return this[_0xb135d4(0x33c)][_0xb135d4(0x244)]();}[_0x2b1dc8(0x4b1)](){const _0x4f4a38=_0x2b1dc8;this[_0x4f4a38(0x207)](),this[_0x4f4a38(0x494)]();}[_0x2b1dc8(0x3a8)](){const _0x298fc6=_0x2b1dc8;super[_0x298fc6(0x3a8)](),this[_0x298fc6(0x3c7)][_0x298fc6(0x3bc)](_0x36cee2=>_0x36cee2[_0x298fc6(0x3a8)]()),this[_0x298fc6(0x3c7)]['clear'](),this[_0x298fc6(0x21c)][_0x298fc6(0x424)]();}async[_0x2b1dc8(0x4bc)](_0x582bfb){const _0x1f8a1f=_0x2b1dc8;if(this[_0x1f8a1f(0x3c7)][_0x1f8a1f(0x532)](_0x582bfb))return this[_0x1f8a1f(0x3c7)][_0x1f8a1f(0x37f)](_0x582bfb);this[_0x1f8a1f(0x5b5)]();const _0x49f32a=this[_0x1f8a1f(0x4cd)][_0x1f8a1f(0x281)](_0x2010a0[_0x1f8a1f(0x34a)],_0x582bfb,this[_0x1f8a1f(0x33c)][_0x1f8a1f(0x1eb)]());return this[_0x1f8a1f(0x3c7)]['set'](_0x582bfb,_0x49f32a),_0x49f32a;}[_0x2b1dc8(0x52e)](_0x247904){const _0x864135=_0x2b1dc8;var _0x31202e;const _0x4c9902=this[_0x864135(0x3c7)][_0x864135(0x37f)](_0x247904);_0x4c9902&&(this[_0x864135(0x3c7)][_0x864135(0x189)](_0x247904),_0x4c9902[_0x864135(0x471)]()),this[_0x864135(0x3c7)][_0x864135(0x199)]||(_0x31202e=this['_socket'])==null||_0x31202e[_0x864135(0x471)]();}['reconnect'](){const _0x435edb=_0x2b1dc8;this[_0x435edb(0x466)]=0x0,this[_0x435edb(0x22e)]!=null&&(clearTimeout(this[_0x435edb(0x22e)]),this[_0x435edb(0x22e)]=null),this[_0x435edb(0x18a)]();}['_createSocket'](){const _0x1cb903=_0x2b1dc8;var _0x589f2c,_0x4ed916;const _0x5069db=this[_0x1cb903(0x3aa)][_0x1cb903(0x54b)](_0x26584f),_0x56b8c2=this['_configService'][_0x1cb903(0x54b)](_0x451f80),_0xdcb216=(_0x4ed916=(_0x589f2c=_0x56b8c2==null?void 0x0:_0x56b8c2['collabWebSocketUrl'])!=null?_0x589f2c:_0x5069db)!=null?_0x4ed916:_0x1f0f9f,_0x4dfbba=this[_0x1cb903(0x32e)]['createSocket'](_0xdcb216);return this[_0x1cb903(0x579)]=_0x4dfbba,_0x4dfbba;}[_0x2b1dc8(0x5b5)](){const _0x59e0f8=_0x2b1dc8;var _0x525085,_0x2a0521;try{const _0x407c95=(_0x2a0521=(_0x525085=this['_socket'])!=null?_0x525085:this[_0x59e0f8(0x579)])!=null?_0x2a0521:this[_0x59e0f8(0x1f3)]();if(_0x407c95){const _0x4077bc=_0x407c95[_0x59e0f8(0x1d5)];_0x407c95[_0x59e0f8(0x1d5)]=_0x3235b5=>(this[_0x59e0f8(0x218)](),_0x4077bc[_0x59e0f8(0x265)](_0x407c95,[_0x3235b5])),_0x407c95[_0x59e0f8(0x2c9)][_0x59e0f8(0x358)](_0x15c8aa=>this[_0x59e0f8(0x46a)](_0x407c95,_0x15c8aa)),_0x407c95['error$']['pipe'](_0xbf2513[_0x59e0f8(0x257)](0x1))[_0x59e0f8(0x358)](_0xfd1652=>this[_0x59e0f8(0x26b)][_0x59e0f8(0x3e4)](_0x59e0f8(0x288),_0xfd1652)),_0x407c95[_0x59e0f8(0x30f)][_0x59e0f8(0x378)](_0xbf2513[_0x59e0f8(0x257)](0x1))[_0x59e0f8(0x358)](()=>{const _0x5ccec4=_0x59e0f8;this[_0x5ccec4(0x456)](_0x407c95);}),_0x407c95['close$'][_0x59e0f8(0x378)](_0xbf2513[_0x59e0f8(0x257)](0x1))[_0x59e0f8(0x358)](_0x4d8223=>{const _0x10ded5=_0x59e0f8;this[_0x10ded5(0x26b)]['debug'](_0x10ded5(0x5ba),'socket\x20close',_0x4d8223),this[_0x10ded5(0x564)]();});}}catch(_0x52e577){this[_0x59e0f8(0x26b)][_0x59e0f8(0x3e4)](_0x52e577),this[_0x59e0f8(0x564)]();}}[_0x2b1dc8(0x456)](_0xfc37c0){const _0x59b247=_0x2b1dc8;this[_0x59b247(0x26b)]['debug'](_0x59b247(0x5ba),_0x59b247(0x4c7)),_0xfc37c0[_0x59b247(0x1d5)]({'cmd':_0x42427d['HELLO']}),this['_rescheduleHeartbeat']();}['_listenToOfflineEvent'](){const _0x24983c=_0x2b1dc8;window[_0x24983c(0x1fc)]('offline',()=>this[_0x24983c(0x4ad)]());}['_onOffline'](){const _0x3b3e3f=_0x2b1dc8;this['_socketReady']=!0x1,this[_0x3b3e3f(0x579)]=null,this[_0x3b3e3f(0x21c)][_0x3b3e3f(0x522)](_0x58e615[_0x3b3e3f(0x400)]),this[_0x3b3e3f(0x33c)][_0x3b3e3f(0x522)](null),this[_0x3b3e3f(0x4e5)](),this[_0x3b3e3f(0x20e)]();}['_onConnectionFailed'](){const _0x4f0f41=_0x2b1dc8;var _0x5da1f0;this[_0x4f0f41(0x4ad)](),this[_0x4f0f41(0x466)]<((_0x5da1f0=this[_0x4f0f41(0x3aa)][_0x4f0f41(0x54b)](_0x183075))!=null?_0x5da1f0:0x3)?(this[_0x4f0f41(0x412)]['show']({'key':_0x4f0f41(0x2f3),'type':_0x2997c5[_0x4f0f41(0x410)][_0x4f0f41(0x414)],'content':this[_0x4f0f41(0x2a6)]['t'](_0x4f0f41(0x5a6))}),this[_0x4f0f41(0x18a)]()):this[_0x4f0f41(0x412)][_0x4f0f41(0x221)]({'key':_0x4f0f41(0x2f3),'type':_0x2997c5[_0x4f0f41(0x410)][_0x4f0f41(0x4fb)],'content':this[_0x4f0f41(0x2a6)]['t'](_0x4f0f41(0x2e2))});}[_0x2b1dc8(0x494)](){const _0x49b299=_0x2b1dc8,_0x501235=()=>{const _0x103662=_0x5448;this['_socket']||this[_0x103662(0x235)]();},_0x49dd78=()=>{const _0x2b3980=_0x5448;this['_socket']||document[_0x2b3980(0x460)]===_0x2b3980(0x32f)||this[_0x2b3980(0x235)]();};window[_0x49b299(0x1fc)](_0x49b299(0x3c8),_0x501235),document[_0x49b299(0x1fc)](_0x49b299(0x5bd),_0x49dd78);}['_tryReconnect'](){const _0x18a2cd=_0x2b1dc8;var _0x4a462e;const _0x516310=this[_0x18a2cd(0x466)],_0x259936=this[_0x18a2cd(0x3aa)]['getConfig'](_0x451f80),_0x269c48=_0x516310===0x0?0x0:((_0x4a462e=_0x259936==null?void 0x0:_0x259936[_0x18a2cd(0x1c6)])!=null?_0x4a462e:0x4e20)*0x2**_0x516310;this[_0x18a2cd(0x22e)]=window[_0x18a2cd(0x4e3)](()=>{const _0x59155e=_0x18a2cd;clearTimeout(this[_0x59155e(0x22e)]),this[_0x59155e(0x22e)]=null,this[_0x59155e(0x5b5)]();},_0x269c48),this[_0x18a2cd(0x466)]+=0x1;}[_0x2b1dc8(0x46a)](_0x5324b7,_0x26ec94){const _0xe471ef=_0x2b1dc8,{cmd:_0x51a041}=_0x26ec94;_0x51a041===_0x42427d['HELLO']&&!this[_0xe471ef(0x437)]&&(_0x5324b7[_0xe471ef(0x3a0)]=_0x26ec94[_0xe471ef(0x210)]['memberID'],this[_0xe471ef(0x33c)][_0xe471ef(0x522)](_0x5324b7),this[_0xe471ef(0x21c)][_0xe471ef(0x522)](_0x58e615[_0xe471ef(0x3df)]),this[_0xe471ef(0x437)]=!0x0,this[_0xe471ef(0x579)]=null),_0x51a041===_0x42427d['HEARTBEAT']&&this[_0xe471ef(0x4e5)](),this['_rescheduleHeartbeat']();}[_0x2b1dc8(0x218)](){const _0x47d6e9=_0x2b1dc8;var _0x533382;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window[_0x47d6e9(0x4e3)](()=>this[_0x47d6e9(0x407)](),(_0x533382=this[_0x47d6e9(0x3aa)][_0x47d6e9(0x54b)](_0x28f4bb))!=null?_0x533382:0x7530);}['_sendHeartbeat'](){const _0x133792=_0x2b1dc8;this['_socket']['send']({'cmd':_0x42427d[_0x133792(0x28c)]}),this[_0x133792(0x276)]();}[_0x2b1dc8(0x276)](){const _0x21cda4=_0x2b1dc8;var _0x3591c0;this['_timeoutTimer']=window['setTimeout'](()=>this[_0x21cda4(0x564)](),(_0x3591c0=this[_0x21cda4(0x3aa)]['getConfig'](_0x58f797))!=null?_0x3591c0:0x4e20);}[_0x2b1dc8(0x20e)](){const _0x35ddc0=_0x2b1dc8;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x35ddc0(0x5a0)]),this[_0x35ddc0(0x5a0)]=null);}[_0x2b1dc8(0x4e5)](){const _0x19a9e3=_0x2b1dc8;this[_0x19a9e3(0x2fa)]!=null&&(clearTimeout(this[_0x19a9e3(0x2fa)]),this[_0x19a9e3(0x2fa)]=null);}},_0x2010a0['CollaborationSessionService']=_0x13b428([_0x1daf99(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['Injector'])),_0x1daf99(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['LocaleService'])),_0x1daf99(0x2,_0x32b063['IMessageService']),_0x1daf99(0x3,_0x5821d4[_0x2b1dc8(0x468)]),_0x1daf99(0x4,_0x5821d4[_0x2b1dc8(0x47d)]),_0x1daf99(0x5,_0x5c41db)],_0x2010a0[_0x2b1dc8(0x272)]);var _0xf47dc0=Object['defineProperty'],_0x1f8753=Object[_0x2b1dc8(0x299)],_0xfd997a=(_0x3f684d,_0x18f7d6,_0x4ee699,_0x2bbefa)=>{const _0xcf5f86=_0x2b1dc8;for(var _0x3dcab0=_0x2bbefa>0x1?void 0x0:_0x2bbefa?_0x1f8753(_0x18f7d6,_0x4ee699):_0x18f7d6,_0x3b70a9=_0x3f684d[_0xcf5f86(0x3b8)]-0x1,_0x51a578;_0x3b70a9>=0x0;_0x3b70a9--)(_0x51a578=_0x3f684d[_0x3b70a9])&&(_0x3dcab0=(_0x2bbefa?_0x51a578(_0x18f7d6,_0x4ee699,_0x3dcab0):_0x51a578(_0x3dcab0))||_0x3dcab0);return _0x2bbefa&&_0x3dcab0&&_0xf47dc0(_0x18f7d6,_0x4ee699,_0x3dcab0),_0x3dcab0;},_0x29cc74=(_0x601de7,_0xb6eaa3)=>(_0x436f95,_0x76a984)=>_0xb6eaa3(_0x436f95,_0x76a984,_0x601de7);let _0x203e1e=class{constructor(_0x98ef67,_0x486cdc,_0x5a4d40){const _0x2c6def=_0x2b1dc8;this[_0x2c6def(0x4cd)]=_0x98ef67,this[_0x2c6def(0x29e)]=_0x486cdc,this[_0x2c6def(0x29a)]=_0x5a4d40;}[_0x2b1dc8(0x51b)](_0x5ab77d){const _0x5c5871=_0x2b1dc8;this[_0x5c5871(0x4f5)](_0x5ab77d),this[_0x5c5871(0x1a8)](_0x5ab77d);}[_0x2b1dc8(0x381)](_0x114fbc){const _0x47b755=_0x2b1dc8,{unitID:_0x2748a4}=_0x114fbc,_0x4d2810=this['_renderManagerService'][_0x47b755(0x491)](_0x2748a4)['with'](_0x1123f9[_0x47b755(0x535)]),{redoCache:_0x1bb043}=_0x4d2810[_0x47b755(0x4c8)]();if(_0x1bb043[_0x47b755(0x3b8)]===0x0)return _0x114fbc;let _0x42542c=_0x5821d4[_0x47b755(0x325)][_0x47b755(0x35c)](_0x114fbc[_0x47b755(0x29c)][0x0]);for(let _0x42d0a5=0x0;_0x42d0a5<_0x1bb043[_0x47b755(0x3b8)];_0x42d0a5++){const _0x4bbc6b={'id':_0x47b755(0x55c),'params':{..._0x1bb043[_0x42d0a5]}},_0xee83c0=this[_0x47b755(0x29e)]['transformMutation'](_0x42542c,_0x4bbc6b,!0x1);if(_0xf29ce7['isTransformMutationFailure'](_0xee83c0))throw _0xee83c0['error'];_0x42542c=_0xee83c0[_0x47b755(0x58b)];}return{..._0x5821d4['Tools'][_0x47b755(0x35c)](_0x114fbc),'mutations':[_0x42542c]};}[_0x2b1dc8(0x4f5)](_0x2aea10){const _0x2dc828=_0x2b1dc8,{unitID:_0xdf01c0}=_0x2aea10,_0x40957a=this[_0x2dc828(0x29a)][_0x2dc828(0x491)](_0xdf01c0)[_0x2dc828(0x31d)](_0x1123f9[_0x2dc828(0x535)]),{undoCache:_0x3314a7,redoCache:_0x3869f4}=_0x40957a[_0x2dc828(0x4c8)]();if(_0x3314a7['length']===0x0||_0x3869f4[_0x2dc828(0x3b8)]===0x0)return;const _0x3a4f8b=[],_0x534461=[];let _0x27cbf5=_0x5821d4[_0x2dc828(0x325)][_0x2dc828(0x35c)](_0x2aea10['mutations'][0x0]),_0x39e14=_0x5821d4[_0x2dc828(0x325)][_0x2dc828(0x35c)](_0x2aea10['mutations'][0x0]);for(let _0x29a48d=_0x3314a7[_0x2dc828(0x3b8)]-0x1;_0x29a48d>=0x0;_0x29a48d--){const _0x5e37c8={'id':_0x2dc828(0x55c),'params':{..._0x3314a7[_0x29a48d]}},_0x1aaf5a={'id':_0x2dc828(0x55c),'params':{..._0x3869f4[_0x29a48d]}},_0x540bd4=this[_0x2dc828(0x29e)][_0x2dc828(0x431)](_0x27cbf5,_0x5e37c8,!0x1),_0x544e4e=this['_transformService'][_0x2dc828(0x431)](_0x39e14,_0x1aaf5a,!0x1);if(_0xf29ce7['isTransformMutationFailure'](_0x540bd4))throw _0x540bd4[_0x2dc828(0x3e4)];if(_0xf29ce7['isTransformMutationFailure'](_0x544e4e))throw _0x544e4e[_0x2dc828(0x3e4)];_0x3a4f8b['unshift'](_0x540bd4[_0x2dc828(0x1a3)][_0x2dc828(0x3ef)]),_0x534461[_0x2dc828(0x3a4)](_0x544e4e[_0x2dc828(0x1a3)][_0x2dc828(0x3ef)]),_0x27cbf5=_0x540bd4[_0x2dc828(0x58b)],_0x39e14=_0x544e4e[_0x2dc828(0x58b)];}_0x40957a['setUndoRedoMutationParamsCache']({'undoCache':_0x3a4f8b,'redoCache':_0x534461});}[_0x2b1dc8(0x1a8)](_0x2c66b2){const _0x2cce67=_0x2b1dc8,{unitID:_0xddf06a}=_0x2c66b2,_0x186ba0=this[_0x2cce67(0x29a)]['getRenderById'](_0xddf06a)[_0x2cce67(0x31d)](_0x1123f9[_0x2cce67(0x535)]),_0x564896=_0x186ba0[_0x2cce67(0x260)]();if(_0x564896==null)return;const _0x55d3d5=[{'id':_0x2cce67(0x55c),'params':{'unitId':_0x2c66b2[_0x2cce67(0x3d4)],'actions':null,'textRanges':[_0x564896]}}],_0xfac2f4=this[_0x2cce67(0x29e)][_0x2cce67(0x5a2)](_0x2c66b2,_0x55d3d5);if(!_0xf29ce7[_0x2cce67(0x18b)](_0xfac2f4))throw _0xfac2f4[_0x2cce67(0x3e4)];const _0x484799=_0xfac2f4[_0x2cce67(0x1a3)][0x0]['params'][_0x2cce67(0x227)];Array[_0x2cce67(0x38c)](_0x484799)&&_0x484799[_0x2cce67(0x3b8)]&&_0x186ba0['setActiveRange'](_0x484799[0x0]);}};_0x203e1e=_0xfd997a([_0x29cc74(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x29cc74(0x1,_0xf29ce7[_0x2b1dc8(0x487)]),_0x29cc74(0x2,_0x33b476[_0x2b1dc8(0x294)])],_0x203e1e);var _0x310c8d=Object['defineProperty'],_0x4fa6b7=Object[_0x2b1dc8(0x299)],_0x465e7d=(_0x31e8d6,_0x1a0cdf,_0x104ca5,_0x2016ec)=>{const _0x85d923=_0x2b1dc8;for(var _0x13fe04=_0x2016ec>0x1?void 0x0:_0x2016ec?_0x4fa6b7(_0x1a0cdf,_0x104ca5):_0x1a0cdf,_0x20b43c=_0x31e8d6[_0x85d923(0x3b8)]-0x1,_0x703c03;_0x20b43c>=0x0;_0x20b43c--)(_0x703c03=_0x31e8d6[_0x20b43c])&&(_0x13fe04=(_0x2016ec?_0x703c03(_0x1a0cdf,_0x104ca5,_0x13fe04):_0x703c03(_0x13fe04))||_0x13fe04);return _0x2016ec&&_0x13fe04&&_0x310c8d(_0x1a0cdf,_0x104ca5,_0x13fe04),_0x13fe04;},_0x3e8d6d=(_0x2d1191,_0x6e3445)=>(_0x51a550,_0xc391e1)=>_0x6e3445(_0x51a550,_0xc391e1,_0x2d1191);_0x2010a0[_0x2b1dc8(0x222)]=class extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(_0x292cfe,_0x3d392c,_0x3ef3b7,_0x13cb3d,_0x434326){const _0x97459b=_0x2b1dc8;super(),_0x58b0b3(this,_0x97459b(0x30d),new Map()),_0x58b0b3(this,_0x97459b(0x57e),new Map()),_0x58b0b3(this,_0x97459b(0x206),!0x1),(this['_configService']=_0x292cfe,this['_localStorageService']=_0x3d392c,this['_beforeCloseService']=_0x3ef3b7,this[_0x97459b(0x2a6)]=_0x13cb3d,this[_0x97459b(0x300)]=_0x434326,this[_0x97459b(0x314)]());}['disableLocalCache'](){const _0x1dc80f=_0x2b1dc8;this[_0x1dc80f(0x206)]=!0x0;}['enableLocalCache'](){const _0x255ecf=_0x2b1dc8;this[_0x255ecf(0x206)]=!0x1;}[_0x2b1dc8(0x3a8)](){const _0x17a1a3=_0x2b1dc8;this['exhaustSavingTask']()[_0x17a1a3(0x57d)](()=>super[_0x17a1a3(0x3a8)]());}async['loadOfflineData'](_0x4431ee){const _0x12e6e0=_0x2b1dc8;return this[_0x12e6e0(0x206)]?null:this[_0x12e6e0(0x2ce)][_0x12e6e0(0x45d)](_0x4c1a63(_0x4431ee));}async['saveOfflineData'](_0x1c1d70,_0x455a6e){const _0x59f8d1=_0x2b1dc8;return!!this[_0x59f8d1(0x2ce)][_0x59f8d1(0x4ca)](_0x1c1d70,_0x455a6e);}[_0x2b1dc8(0x1f4)](_0x156248,_0x448f35,_0x556eba,_0x56d00f){const _0x49c3a3=_0x2b1dc8,_0x6bab7d=this['_revisionService'][_0x49c3a3(0x1ee)](_0x156248);this[_0x49c3a3(0x30d)][_0x49c3a3(0x305)](_0x156248,{'unitID':_0x156248,'type':_0x448f35,'awaitingChangeset':_0x556eba,'mutations':_0x56d00f,'rev':_0x6bab7d}),this['_saveTaskMap']['has'](_0x156248)||this[_0x49c3a3(0x316)](_0x156248);}['_scheduleSaving'](_0x556109){const _0x5a1f62=_0x2b1dc8,_0x1b0016=this[_0x5a1f62(0x1b7)]();_0x1b0016===0x0?this[_0x5a1f62(0x385)](_0x556109):this['_saveTaskMap'][_0x5a1f62(0x305)](_0x556109,setTimeout(()=>this[_0x5a1f62(0x385)](_0x556109),_0x1b0016));}[_0x2b1dc8(0x1b7)](){const _0xf7bd54=_0x2b1dc8;var _0x4058fb;return(_0x4058fb=this[_0xf7bd54(0x3aa)][_0xf7bd54(0x54b)](_0x120b3c))!=null?_0x4058fb:0x3e8;}[_0x2b1dc8(0x385)](_0x44f9d4){const _0x2224d3=_0x2b1dc8,_0x421253=this[_0x2224d3(0x57e)][_0x2224d3(0x37f)](_0x44f9d4);return _0x421253!==void 0x0&&window[_0x2224d3(0x2d3)](_0x421253),this[_0x2224d3(0x2ce)][_0x2224d3(0x4ca)](_0x4c1a63(_0x44f9d4),this['_cachedData'][_0x2224d3(0x37f)](_0x44f9d4))['then'](()=>this[_0x2224d3(0x57e)][_0x2224d3(0x189)](_0x44f9d4));}async[_0x2b1dc8(0x2f1)](){const _0x1c3323=_0x2b1dc8,_0x81c4e=[];this[_0x1c3323(0x57e)]['forEach']((_0x140808,_0x362f0c)=>{const _0x4587f8=_0x1c3323;window[_0x4587f8(0x2d3)](_0x140808),_0x81c4e[_0x4587f8(0x3fb)](this['_saveCache'](_0x362f0c)[_0x4587f8(0x57d)](()=>{const _0x2da516=_0x4587f8;this[_0x2da516(0x57e)][_0x2da516(0x189)](_0x362f0c);}));}),await Promise[_0x1c3323(0x2e8)](_0x81c4e);}[_0x2b1dc8(0x314)](){const _0x3c725f=_0x2b1dc8;this['disposeWithMe'](this['_beforeCloseService'][_0x3c725f(0x477)](()=>{const _0x182ee8=_0x3c725f;if(this[_0x182ee8(0x57e)]['size'])return this[_0x182ee8(0x2a6)]['t'](_0x182ee8(0x3b1));}));}},_0x2010a0['LocalCacheService']=_0x465e7d([_0x3e8d6d(0x0,_0x5821d4[_0x2b1dc8(0x47d)]),_0x3e8d6d(0x1,_0x5821d4[_0x2b1dc8(0x568)]),_0x3e8d6d(0x2,_0x32b063[_0x2b1dc8(0x2cb)]),_0x3e8d6d(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x27e)])),_0x3e8d6d(0x4,_0x5821d4['Inject'](_0xf29ce7[_0x2b1dc8(0x253)]))],_0x2010a0[_0x2b1dc8(0x222)]);function _0x4c1a63(_0x1be848){const _0x45f1f5=_0x2b1dc8;return _0x45f1f5(0x23e)+_0x1be848;}var _0x250493=Object['defineProperty'],_0x2e2a57=Object[_0x2b1dc8(0x299)],_0x32fdc1=(_0x55db64,_0x23ffda,_0x5507ef,_0x3d56c1)=>{const _0x284130=_0x2b1dc8;for(var _0x3a209e=_0x3d56c1>0x1?void 0x0:_0x3d56c1?_0x2e2a57(_0x23ffda,_0x5507ef):_0x23ffda,_0x3dd336=_0x55db64[_0x284130(0x3b8)]-0x1,_0x493c88;_0x3dd336>=0x0;_0x3dd336--)(_0x493c88=_0x55db64[_0x3dd336])&&(_0x3a209e=(_0x3d56c1?_0x493c88(_0x23ffda,_0x5507ef,_0x3a209e):_0x493c88(_0x3a209e))||_0x3a209e);return _0x3d56c1&&_0x3a209e&&_0x250493(_0x23ffda,_0x5507ef,_0x3a209e),_0x3a209e;},_0x148caa=(_0x107ab3,_0x39e392)=>(_0xe83ef2,_0x4fef8a)=>_0x39e392(_0xe83ef2,_0x4fef8a,_0x107ab3);function _0x25c284(_0x230ba2){const _0x277e7d=_0x2b1dc8,{unitID:_0x1d947f,mutations:_0x322863}=_0x230ba2;return{'unitId':_0x1d947f,'subUnitId':_0x322863[0x0][_0x277e7d(0x3ef)]['subUnitId']};}let _0x22d44e=class{constructor(_0x42e242,_0x376905,_0x1859bf){const _0x170ff8=_0x2b1dc8;this[_0x170ff8(0x4cd)]=_0x42e242,this[_0x170ff8(0x29e)]=_0x376905,this[_0x170ff8(0x220)]=_0x1859bf;}['transformSelections'](_0x5ac49b){const _0x31ac5d=_0x2b1dc8;var _0x21d0a4,_0x5efd06,_0x5ed30a,_0x27f778;const _0x530214=this[_0x31ac5d(0x4cd)][_0x31ac5d(0x37f)](_0x872f07[_0x31ac5d(0x463)]),{unitId:_0x22a75b,subUnitId:_0x5d9a13}=_0x25c284(_0x5ac49b),_0x5c873b=_0x530214[_0x31ac5d(0x39d)](_0x22a75b)[_0x31ac5d(0x506)](),_0x1f0a11=(_0x5efd06=(_0x21d0a4=this['_instanceService'][_0x31ac5d(0x1c5)](_0x22a75b))==null?void 0x0:_0x21d0a4[_0x31ac5d(0x5a1)]())==null?void 0x0:_0x5efd06[_0x31ac5d(0x1c4)]();if(_0x5c873b[_0x31ac5d(0x3b8)]===0x0||!_0x22a75b||!_0x5d9a13)return;const _0x1028fc=[{'id':_0x872f07['SetSelectionsOperation']['id'],'params':{'unitId':_0x22a75b,'subUnitId':_0x1f0a11,'selections':_0x5821d4[_0x31ac5d(0x325)][_0x31ac5d(0x35c)](_0x5c873b)}}],_0x1aeee9=this[_0x31ac5d(0x29e)][_0x31ac5d(0x5a2)](_0x5ac49b,_0x1028fc);if(!_0xf29ce7['isTransformMutationsWithChangesetSuccess'](_0x1aeee9))throw _0x1aeee9[_0x31ac5d(0x3e4)];const _0x2c8bc2=(_0x27f778=(_0x5ed30a=_0x1aeee9[_0x31ac5d(0x1a3)][0x0])==null?void 0x0:_0x5ed30a[_0x31ac5d(0x3ef)])==null?void 0x0:_0x27f778[_0x31ac5d(0x3cd)];Array['isArray'](_0x2c8bc2)&&_0x2c8bc2['length']&&this['_injector'][_0x31ac5d(0x37f)](_0x5821d4[_0x31ac5d(0x2bf)])[_0x31ac5d(0x2a8)](_0x872f07[_0x31ac5d(0x4ea)]['id'],{'unitId':_0x22a75b,'subUnitId':_0x1f0a11,'selections':_0x2c8bc2});}};_0x22d44e=_0x32fdc1([_0x148caa(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x148caa(0x1,_0xf29ce7[_0x2b1dc8(0x487)]),_0x148caa(0x2,_0x5821d4[_0x2b1dc8(0x486)])],_0x22d44e);const _0x4442df=_0x5821d4['createIdentifier']('univer-pro.collaboration-client.single-active-unit-service');var _0x100820=(_0x224665=>(_0x224665[_0x224665['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x2b1dc8(0x377),_0x224665[_0x224665['OTHER_CLIENTS_EDITING']=0x1]=_0x2b1dc8(0x4de),_0x224665))(_0x100820||{});const _0x4af0b2=0x7530,_0x2fa35b='ACTIVE_UNIT_EVENT_CHANNEL';class _0x2dacc4 extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(){const _0x40f3b0=_0x2b1dc8;super(),_0x58b0b3(this,_0x40f3b0(0x369),_0x5821d4['Tools']['generateRandomId']()),_0x58b0b3(this,_0x40f3b0(0x1a4),new Set()),_0x58b0b3(this,'_unitOnClients',new Map()),_0x58b0b3(this,_0x40f3b0(0x2c1),null),_0x58b0b3(this,_0x40f3b0(0x4c4),new Map()),_0x58b0b3(this,_0x40f3b0(0x309),new Map()),this[_0x40f3b0(0x1dd)]();}['dispose'](){const _0x5864c5=_0x2b1dc8;super[_0x5864c5(0x3a8)](),this['_clearOtherTimers'][_0x5864c5(0x3bc)]((_0x4d2182,_0x51a160)=>this[_0x5864c5(0x239)](_0x51a160)),this[_0x5864c5(0x2c1)]&&window[_0x5864c5(0x23c)](this['_heartbeatTimer']);}[_0x2b1dc8(0x589)](_0x59813c){const _0x4eef68=_0x2b1dc8;return this[_0x4eef68(0x51c)](_0x59813c)[_0x4eef68(0x378)](_0x2fad13[_0x4eef68(0x4bf)]());}[_0x2b1dc8(0x35b)](_0x4edca4){const _0x3493c5=_0x2b1dc8;this[_0x3493c5(0x1a4)][_0x3493c5(0x199)]===0x0&&this['_scheduleHeartbeat'](),this[_0x3493c5(0x1a4)][_0x3493c5(0x25b)](_0x4edca4),this[_0x3493c5(0x3d1)]({'type':0x0,'memberID':this[_0x3493c5(0x369)],'unitIDs':[_0x4edca4],'isForwarded':!0x1});}[_0x2b1dc8(0x441)](_0x59c365){const _0x4750ff=_0x2b1dc8;this['_selfUnitIDs']['delete'](_0x59c365),this[_0x4750ff(0x1a4)][_0x4750ff(0x199)]===0x0&&this[_0x4750ff(0x2c1)]&&window[_0x4750ff(0x23c)](this['_heartbeatTimer']);}[_0x2b1dc8(0x1dd)](){const _0x3e2e69=_0x2b1dc8;this[_0x3e2e69(0x470)](_0x5821d4[_0x3e2e69(0x1ed)](_0x2fad13['fromEvent'](window,_0x3e2e69(0x1a6))['subscribe'](_0x18243b=>{const _0x240c3a=_0x3e2e69;if(_0x18243b[_0x240c3a(0x4c3)]!==_0x2fa35b||!_0x18243b['newValue'])return;const _0xe1bc0d=JSON[_0x240c3a(0x580)](_0x18243b['newValue']);this[_0x240c3a(0x230)](_0xe1bc0d);}))),window[_0x3e2e69(0x1fc)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x3e2e69(0x369)],'unitIDs':Array[_0x3e2e69(0x282)](this[_0x3e2e69(0x1a4)])}));}['_handleEvent'](_0x3fde03){const _0x430d5d=_0x2b1dc8;switch(_0x3fde03[_0x430d5d(0x4f1)]){case 0x0:this[_0x430d5d(0x2d7)](_0x3fde03);break;case 0x1:this[_0x430d5d(0x45e)](_0x3fde03);break;case 0x2:this['_handleHeartbeatEvent'](_0x3fde03);break;}}[_0x2b1dc8(0x2d7)](_0x74cb7a){const _0x38520f=_0x2b1dc8,{unitIDs:_0x1e2bb8,memberID:_0x4c1beb,isForwarded:_0x271980}=_0x74cb7a;_0x1e2bb8[_0x38520f(0x3bc)](_0x224546=>{const _0x2fd465=_0x38520f;if(!_0x271980&&this[_0x2fd465(0x2f0)][_0x2fd465(0x532)](_0x224546)&&this[_0x2fd465(0x51c)](_0x224546)[_0x2fd465(0x522)](0x1),!this[_0x2fd465(0x2f0)]['has'](_0x224546)||!this[_0x2fd465(0x2f0)]['get'](_0x224546)['has'](_0x4c1beb)){const _0x5a3a9b=this[_0x2fd465(0x2f0)][_0x2fd465(0x37f)](_0x224546)||new Set();_0x5a3a9b[_0x2fd465(0x25b)](_0x4c1beb),this[_0x2fd465(0x2f0)][_0x2fd465(0x305)](_0x224546,_0x5a3a9b),this[_0x2fd465(0x29f)](_0x4c1beb);}}),_0x271980||this[_0x38520f(0x3d1)]({'type':0x0,'memberID':this[_0x38520f(0x369)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2b1dc8(0x29f)](_0x15acac){const _0x54cac7=_0x2b1dc8;this[_0x54cac7(0x239)](_0x15acac);const _0x4fff25=window[_0x54cac7(0x4e3)](()=>{const _0x371539=_0x54cac7;this[_0x371539(0x2f0)]['forEach'](_0x26c22b=>{const _0xabf6d2=_0x371539;_0x26c22b[_0xabf6d2(0x189)](_0x15acac);});},_0x4af0b2*0x2);this[_0x54cac7(0x4c4)][_0x54cac7(0x305)](_0x15acac,_0x4fff25);}[_0x2b1dc8(0x239)](_0x5c083){const _0x383e02=_0x2b1dc8;if(this[_0x383e02(0x4c4)][_0x383e02(0x532)](_0x5c083)){const _0x1c665b=this[_0x383e02(0x4c4)]['get'](_0x5c083);_0x1c665b&&window['clearTimeout'](_0x1c665b),this[_0x383e02(0x4c4)][_0x383e02(0x305)](_0x5c083,null);}}[_0x2b1dc8(0x45e)](_0x5ba744){const {memberID:_0x13ead9,unitIDs:_0x40fa45}=_0x5ba744;_0x40fa45['forEach'](_0x13a93c=>{const _0x518fc9=_0x5448;var _0x157222;const _0x163dc9=this[_0x518fc9(0x2f0)][_0x518fc9(0x37f)](_0x13a93c);_0x163dc9&&(_0x163dc9[_0x518fc9(0x189)](_0x13ead9),(_0x157222=this[_0x518fc9(0x51c)](_0x13a93c))==null||_0x157222[_0x518fc9(0x522)](_0x163dc9['size']===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x13ead9);}[_0x2b1dc8(0x284)](_0x23bb8c){const _0x21c46a=_0x2b1dc8;this['_scheduleClearOtherTimer'](_0x23bb8c[_0x21c46a(0x3a0)]);}['_send'](_0x5593d){const _0x42d845=_0x2b1dc8;localStorage['setItem'](_0x2fa35b,JSON[_0x42d845(0x3f3)](_0x5593d));}[_0x2b1dc8(0x2fc)](){const _0x163fa5=_0x2b1dc8;this[_0x163fa5(0x2c1)]=window[_0x163fa5(0x448)](()=>{const _0x466107=_0x163fa5;this[_0x466107(0x3d1)]({'type':0x2,'memberID':this['_id']});},_0x4af0b2);}[_0x2b1dc8(0x51c)](_0x534892){const _0xab4476=_0x2b1dc8;return this[_0xab4476(0x309)]['has'](_0x534892)||this[_0xab4476(0x309)][_0xab4476(0x305)](_0x534892,new _0x2fad13['BehaviorSubject'](0x0)),this['_unitStatus']['get'](_0x534892);}}function _0x2338f2(_0x3cd5a7){let _0x39c97a='';for(const _0x5651ee of _0x3cd5a7){const {startOffset:_0x229241,endOffset:_0x26018b,isActive:_0x581de1}=_0x5651ee;_0x39c97a['length']&&(_0x39c97a+=','),_0x39c97a+=_0x229241+':'+_0x26018b+':'+(_0x581de1?'1':'0');}return _0x39c97a;}function _0x357da9(_0x2e8a98){const _0xa9a155=_0x2b1dc8,_0x2b701c=_0x2e8a98[_0xa9a155(0x586)](','),_0x5f4c00=[];for(const _0x444c9b of _0x2b701c){const [_0x81047,_0x370327,_0x5a3f0f]=_0x444c9b[_0xa9a155(0x586)](':');_0x5f4c00['push']({'startOffset':Number(_0x81047),'endOffset':Number(_0x370327),'collapsed':_0x81047===_0x370327,'isActive':_0x5a3f0f==='1'});}return _0x5f4c00[_0xa9a155(0x423)](_0x19d540=>_0x19d540[_0xa9a155(0x3e7)])||(_0x5f4c00[0x0][_0xa9a155(0x3e7)]=!0x0),_0x5f4c00;}class _0x4ce206 extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(){const _0x2739b2=_0x2b1dc8;super(...arguments),_0x58b0b3(this,_0x2739b2(0x36b),new _0x2fad13[(_0x2739b2(0x53f))](null)),_0x58b0b3(this,'collabCursorState$',this['_collabCursorState$'][_0x2739b2(0x1eb)]());}[_0x2b1dc8(0x392)](_0x49b0b2){const _0x25be10=_0x2b1dc8,{unitID:_0x5e3e1e,memberID:_0x42848c,textRanges:_0x358b94}=_0x49b0b2,_0x105d05=_0x2338f2(_0x358b94),_0x5101d2={'unitID':_0x5e3e1e,'memberID':_0x42848c,'selection':_0x105d05};this[_0x25be10(0x36b)][_0x25be10(0x522)](_0x5101d2);}}var _0x14585d=Object['defineProperty'],_0x5b3185=Object['getOwnPropertyDescriptor'],_0x293ced=(_0x4faa11,_0x23359e,_0x3b99df,_0x40a069)=>{const _0x50b502=_0x2b1dc8;for(var _0x5c4c57=_0x40a069>0x1?void 0x0:_0x40a069?_0x5b3185(_0x23359e,_0x3b99df):_0x23359e,_0x59e239=_0x4faa11[_0x50b502(0x3b8)]-0x1,_0x39e9d2;_0x59e239>=0x0;_0x59e239--)(_0x39e9d2=_0x4faa11[_0x59e239])&&(_0x5c4c57=(_0x40a069?_0x39e9d2(_0x23359e,_0x3b99df,_0x5c4c57):_0x39e9d2(_0x5c4c57))||_0x5c4c57);return _0x40a069&&_0x5c4c57&&_0x14585d(_0x23359e,_0x3b99df,_0x5c4c57),_0x5c4c57;},_0x5ace0d=(_0x83c069,_0x462a87)=>(_0x574c5a,_0x177735)=>_0x462a87(_0x574c5a,_0x177735,_0x83c069);let _0x493ead=class{constructor(_0x163450,_0xca30b3){const _0xc10421=_0x2b1dc8;this[_0xc10421(0x4cd)]=_0x163450,this['_transformService']=_0xca30b3;}['transformSelections'](_0xd03440){const _0xff6478=_0x2b1dc8;var _0x3af576;const _0x250a69=this[_0xff6478(0x4cd)][_0xff6478(0x37f)](_0xc13db5[_0xff6478(0x4f6)]),_0x305209=(_0x3af576=_0x250a69[_0xff6478(0x502)]())!=null?_0x3af576:[];if(_0x305209[_0xff6478(0x3b8)]===0x0)return;const _0x4c903e=[{'id':_0xff6478(0x55c),'params':{'unitId':_0xd03440['unitID'],'actions':null,'textRanges':_0x305209}}],_0x13bf84=this[_0xff6478(0x29e)][_0xff6478(0x5a2)](_0xd03440,_0x4c903e);if(!_0xf29ce7[_0xff6478(0x18b)](_0x13bf84))throw _0x13bf84[_0xff6478(0x3e4)];const _0x47542d=_0x13bf84[_0xff6478(0x1a3)][0x0][_0xff6478(0x3ef)][_0xff6478(0x227)];Array[_0xff6478(0x38c)](_0x47542d)&&_0x47542d[_0xff6478(0x3b8)]&&_0x250a69['replaceTextRanges'](_0x47542d,!0x1);}};_0x493ead=_0x293ced([_0x5ace0d(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['Injector'])),_0x5ace0d(0x1,_0xf29ce7[_0x2b1dc8(0x487)])],_0x493ead);const _0x412590=new Set([_0x872f07[_0x2b1dc8(0x4db)]['id']]);function _0x47f654(_0x39996c,_0x564506,_0x261cba,_0x58d773,_0x14d348){const _0x19c54f=_0x2b1dc8;var _0x802bd7,_0x16fd88,_0x4ff8a5,_0xdb8383;const _0x1589d8=[];for(const _0x43f3fe of _0x39996c)if(_0x412590[_0x19c54f(0x532)](_0x43f3fe['id'])){if(_0x1589d8[_0x19c54f(0x3b8)]>0x0)break;_0x1589d8[_0x19c54f(0x3fb)](_0x43f3fe);break;}else _0x1589d8[_0x19c54f(0x3fb)](_0x43f3fe);const _0xe7ecb3=(_0x16fd88=(_0x802bd7=_0x14d348[_0x19c54f(0x356)]())==null?void 0x0:_0x802bd7['userID'])!=null?_0x16fd88:_0x19c54f(0x47e),_0x4a4a3e=(_0xdb8383=(_0x4ff8a5=_0x14d348[_0x19c54f(0x356)]())==null?void 0x0:_0x4ff8a5[_0x19c54f(0x3a0)])!=null?_0xdb8383:'unknown';return{'changeset':{'unitID':_0x564506,'type':_0xf29ce7[_0x19c54f(0x43a)](_0x261cba['getUnitType'](_0x564506)),'baseRev':_0x58d773[_0x19c54f(0x1ee)](_0x564506),'revision':0x0,'userID':_0xe7ecb3,'memberID':_0x4a4a3e,'mutations':_0x1589d8},'pendingMutations':_0x39996c[_0x19c54f(0x234)](_0x1589d8[_0x19c54f(0x3b8)])};}function _0x4079e3(_0x193128,_0xdaa6d5,_0x14383e,_0x4e155a,_0x19f0aa){const _0x531f72=_0x2b1dc8;var _0x166c8c,_0x4a2292,_0x140e00,_0x35e80b;const _0x20b146=[_0x193128[_0x531f72(0x351)]((_0x17897f,_0x2d0ad5)=>{const _0x4af391=_0x531f72;var _0xfffbfb;const {id:_0x20d933}=_0x17897f,{id:_0x36ff5b,type:_0x22cd33}=_0x2d0ad5,_0x21fce6=(_0xfffbfb=_0x17897f[_0x4af391(0x3ef)])!=null?_0xfffbfb:{'actions':null},_0x1085fc=_0x2d0ad5[_0x4af391(0x3ef)];if(_0x20d933&&_0x20d933!==_0x36ff5b)throw new Error(_0x4af391(0x46e)+_0x20d933+_0x4af391(0x198)+_0x36ff5b+'.');return{..._0x17897f,'id':_0x36ff5b,'type':_0x22cd33,'params':{'unitId':_0x1085fc[_0x4af391(0x3af)],'textRanges':_0x1085fc['textRanges'],'actions':_0x5821d4[_0x4af391(0x597)][_0x4af391(0x5a4)](_0x21fce6[_0x4af391(0x493)],_0x1085fc[_0x4af391(0x493)])}};},{})],_0x33d5cc=(_0x4a2292=(_0x166c8c=_0x19f0aa[_0x531f72(0x356)]())==null?void 0x0:_0x166c8c[_0x531f72(0x46f)])!=null?_0x4a2292:'unknown',_0x54b1ee=(_0x35e80b=(_0x140e00=_0x19f0aa['getCurrentUser']())==null?void 0x0:_0x140e00['memberID'])!=null?_0x35e80b:'unknown';return{'changeset':{'unitID':_0xdaa6d5,'type':_0xf29ce7[_0x531f72(0x43a)](_0x14383e[_0x531f72(0x2b8)](_0xdaa6d5)),'baseRev':_0x4e155a['getCurrentRevOfUnit'](_0xdaa6d5),'revision':0x0,'userID':_0x33d5cc,'memberID':_0x54b1ee,'mutations':_0x20b146},'pendingMutations':[]};}const _0x28d154={'id':_0x872f07['EmptyMutation']['id'],'type':_0x5821d4[_0x2b1dc8(0x334)][_0x2b1dc8(0x544)],'params':{}};var _0x3cf485=Object[_0x2b1dc8(0x47b)],_0x3fa2a4=Object['getOwnPropertyDescriptor'],_0x1d43bf=(_0x478e5e,_0x5ce355,_0x2ee697,_0x14ed7d)=>{const _0x2b8aae=_0x2b1dc8;for(var _0x1d48a1=_0x14ed7d>0x1?void 0x0:_0x14ed7d?_0x3fa2a4(_0x5ce355,_0x2ee697):_0x5ce355,_0x2d3806=_0x478e5e[_0x2b8aae(0x3b8)]-0x1,_0x20f599;_0x2d3806>=0x0;_0x2d3806--)(_0x20f599=_0x478e5e[_0x2d3806])&&(_0x1d48a1=(_0x14ed7d?_0x20f599(_0x5ce355,_0x2ee697,_0x1d48a1):_0x20f599(_0x1d48a1))||_0x1d48a1);return _0x14ed7d&&_0x1d48a1&&_0x3cf485(_0x5ce355,_0x2ee697,_0x1d48a1),_0x1d48a1;},_0x396334=(_0x251529,_0x476a43)=>(_0x369e90,_0x2642c8)=>_0x476a43(_0x369e90,_0x2642c8,_0x251529),_0x109234=(_0x41a160=>(_0x41a160[_0x2b1dc8(0x525)]=_0x2b1dc8(0x212),_0x41a160['SYNCED']=_0x2b1dc8(0x549),_0x41a160[_0x2b1dc8(0x258)]='pending',_0x41a160[_0x2b1dc8(0x585)]=_0x2b1dc8(0x4dd),_0x41a160[_0x2b1dc8(0x2f8)]='awaiting_with_pending',_0x41a160['FETCH_MISS']=_0x2b1dc8(0x434),_0x41a160[_0x2b1dc8(0x5b0)]='conflict',_0x41a160['OFFLINE']=_0x2b1dc8(0x23d),_0x41a160))(_0x109234||{});class _0x80c12c{constructor(_0x3b2f7c,_0xe5feea,_0x440816,_0x5561ef,_0x3f7c2d,_0x3d7085,_0x2b6dd4,_0x4e9772,_0x5f46b8){const _0x506550=_0x2b1dc8;_0x58b0b3(this,_0x506550(0x4cc),null),_0x58b0b3(this,_0x506550(0x24c),[]),(this[_0x506550(0x3d4)]=_0x3b2f7c,this[_0x506550(0x4f1)]=_0xe5feea,this['_handler']=_0x3f7c2d,this[_0x506550(0x4f9)]=_0x3d7085,this[_0x506550(0x479)]=_0x2b6dd4,this[_0x506550(0x300)]=_0x4e9772,this[_0x506550(0x461)]=_0x5f46b8,this[_0x506550(0x4cc)]=_0x440816,this['_pendingMutations']=_0x5561ef);}['_checkMissing'](_0x170390){const _0xe90d97=_0x2b1dc8,_0x27b470=this[_0xe90d97(0x300)][_0xe90d97(0x1ee)](this[_0xe90d97(0x3d4)]);return _0x170390[_0xe90d97(0x1e2)]>_0x27b470+0x1?(this[_0xe90d97(0x1a1)][_0xe90d97(0x2fb)]({'from':_0x27b470,'to':_0x170390[_0xe90d97(0x1e2)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x31f942){const _0x3c18bc=_0x2b1dc8;this[_0x3c18bc(0x479)]['transformUndoRedo'](this['unitID'],_0x31f942);}[_0x2b1dc8(0x515)](_0x5ed29f){const _0x5f2356=_0x2b1dc8;var _0x521623,_0x1f4c5c;(_0x1f4c5c=(_0x521623=this[_0x5f2356(0x1a1)])[_0x5f2356(0x359)])==null||_0x1f4c5c[_0x5f2356(0x54a)](_0x521623,_0x5ed29f);}['_transformIMECache'](_0x54ab2e){const _0xa8a83d=_0x2b1dc8;var _0x2d63b5,_0x99bbd6;return(_0x99bbd6=(_0x2d63b5=this[_0xa8a83d(0x1a1)])['onTransformIME'])==null?void 0x0:_0x99bbd6[_0xa8a83d(0x54a)](_0x2d63b5,_0x54ab2e);}[_0x2b1dc8(0x4d7)](_0x221dcb){const _0xa54d37=_0x2b1dc8;var _0x459a8e,_0x43ee06,_0x1bebb4;return(_0x1bebb4=(_0x43ee06=(_0x459a8e=this[_0xa54d37(0x1a1)])[_0xa54d37(0x583)])==null?void 0x0:_0x43ee06[_0xa54d37(0x54a)](_0x459a8e,_0x221dcb))!=null?_0x1bebb4:_0x221dcb;}[_0x2b1dc8(0x1d8)](_0xbeef94){const _0x2e4d60=_0x2b1dc8;var _0x200122,_0x4b3fda;if(this[_0x2e4d60(0x4f1)]===_0x25ecad[_0x2e4d60(0x202)]){const {unitID:_0x40d9a2,mutations:_0x5f5828,memberID:_0x319cdc}=_0xbeef94,_0x3a449a=_0x5f5828[0x0]['params']['textRanges'];Array[_0x2e4d60(0x38c)](_0x3a449a)&&_0x3a449a[_0x2e4d60(0x3b8)]>0x0&&((_0x4b3fda=(_0x200122=this[_0x2e4d60(0x1a1)])[_0x2e4d60(0x553)])==null||_0x4b3fda[_0x2e4d60(0x54a)](_0x200122,{'unitID':_0x40d9a2,'memberID':_0x319cdc,'textRanges':_0x3a449a}));}}['_updateLocalCache'](){const _0x45d9b3=_0x2b1dc8;this[_0x45d9b3(0x461)][_0x45d9b3(0x1f4)](this['unitID'],this[_0x45d9b3(0x4f1)],this[_0x45d9b3(0x4cc)],this['_pendingMutations']);}['_getCurrentRevision'](){const _0x48a25f=_0x2b1dc8;return this[_0x48a25f(0x300)][_0x48a25f(0x1ee)](this[_0x48a25f(0x3d4)]);}[_0x2b1dc8(0x3b4)](){const _0x4d129a=_0x2b1dc8;this[_0x4d129a(0x300)]['incrementRevOfUnit'](this[_0x4d129a(0x3d4)]);}['_executeRemoteChangeset'](_0x518e89){const _0x1ab4a3=_0x2b1dc8;var _0x221290;const _0x24f703=this[_0x1ab4a3(0x4d7)](_0x518e89),_0x179a86=_0x5821d4[_0x1ab4a3(0x5b9)](_0x24f703['mutations'],this[_0x1ab4a3(0x4f9)],{'fromCollab':!0x0});if(!_0x179a86[_0x1ab4a3(0x39c)])throw _0x179a86[_0x1ab4a3(0x3e4)]instanceof Error?_0x179a86[_0x1ab4a3(0x3e4)]:new Error((_0x221290=_0x179a86[_0x1ab4a3(0x3e4)])!=null?_0x221290:_0x1ab4a3(0x55e));this[_0x1ab4a3(0x2f4)](_0x24f703),this['_transformUndoredo'](_0x518e89),this[_0x1ab4a3(0x515)](_0x24f703),this['_syncEditingCollabCursor'](_0x24f703),this[_0x1ab4a3(0x3b4)]();}}let _0x26314f=class extends _0x80c12c{constructor(_0x5aa94f,_0x3b6242,_0xac7639,_0x576cb1,_0xf1cf40,_0x2f7fdc,_0x34969e,_0x28c5cf,_0x324ad5,_0x55ccdd){const _0x4a2a83=_0x2b1dc8;super(_0x5aa94f,_0x3b6242,null,[],_0xac7639,_0x28c5cf,_0x34969e,_0x576cb1,_0xf1cf40),_0x58b0b3(this,_0x4a2a83(0x219),_0x4a2a83(0x549)),(this[_0x4a2a83(0x4cd)]=_0x2f7fdc,this[_0x4a2a83(0x26b)]=_0x324ad5,this['_transformService']=_0x55ccdd);}[_0x2b1dc8(0x551)](_0x44c889){const _0x42b588=_0x2b1dc8,_0x42136d=this[_0x42b588(0x4cd)][_0x42b588(0x281)](_0x1e758c,this[_0x42b588(0x3d4)],this[_0x42b588(0x4f1)],[_0x44c889],this[_0x42b588(0x1a1)]);return _0x42136d[_0x42b588(0x1ce)](),_0x42136d[_0x42b588(0x205)](),_0x42136d;}['onRemoteChangeset'](_0x144510){const _0x15e348=_0x2b1dc8;if(this['_checkMissing'](_0x144510))return this[_0x15e348(0x4cd)][_0x15e348(0x281)](_0x1ca0b2,this['unitID'],this['type'],null,[],null,[_0x144510],this[_0x15e348(0x1a1)]);try{const _0x18192e=this['_transformService'][_0x15e348(0x5a2)](_0x144510,[_0x28d154]);if(_0xf29ce7[_0x15e348(0x18b)](_0x18192e)){const {c1Prime:_0x192bf2}=_0x18192e;return this[_0x15e348(0x323)](_0x192bf2),this;}throw _0x18192e['error'];}catch(_0xa108e){return this['_logService']['error'](_0xa108e),this[_0x15e348(0x578)](!0x1);}}[_0x2b1dc8(0x578)](_0x1bc771){const _0x28e2cd=_0x2b1dc8;return this[_0x28e2cd(0x4cd)][_0x28e2cd(0x281)](_0x4d2dc0,this['unitID'],this[_0x28e2cd(0x4f1)],null,[],this[_0x28e2cd(0x1a1)],_0x1bc771);}[_0x2b1dc8(0x53c)](){const _0x5327a0=_0x2b1dc8;throw new Error(_0x5327a0(0x56a));}[_0x2b1dc8(0x2a0)](){const _0xaef502=_0x2b1dc8;throw new Error(_0xaef502(0x39a));}[_0x2b1dc8(0x529)](){const _0x528290=_0x2b1dc8;return this[_0x528290(0x4cd)]['createInstance'](_0x4421df,this['unitID'],this['type'],null,[],this[_0x528290(0x1a1)]);}['toggleOnline'](){return this;}[_0x2b1dc8(0x274)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x244f6e=_0x2b1dc8,_0x12b5d3=this[_0x244f6e(0x300)]['getCurrentRevOfUnit'](this['unitID']);return this[_0x244f6e(0x1a1)]['onMissingChangesets']({'from':_0x12b5d3,'to':0x0}),this[_0x244f6e(0x4cd)]['createInstance'](_0x1ca0b2,this['unitID'],this[_0x244f6e(0x4f1)],null,[],null,[],this[_0x244f6e(0x1a1)]);}};_0x26314f=_0x1d43bf([_0x396334(0x3,_0x5821d4['Inject'](_0xf29ce7['RevisionService'])),_0x396334(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x396334(0x5,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['Injector'])),_0x396334(0x6,_0x5821d4[_0x2b1dc8(0x2ac)]),_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x396334(0x8,_0x5821d4[_0x2b1dc8(0x468)]),_0x396334(0x9,_0xf29ce7[_0x2b1dc8(0x487)])],_0x26314f);let _0x1e758c=class extends _0x80c12c{constructor(_0x44c17f,_0x10c8cb,_0x2e7a43,_0x4705e8,_0x967b8b,_0x1dcb61,_0x451d03,_0xe0ee82,_0x58c3fd,_0x37aabf,_0x5b4e9b,_0x166105,_0x20fbc6,_0x1941fb){const _0x43287f=_0x2b1dc8;super(_0x44c17f,_0x10c8cb,null,_0x2e7a43,_0x4705e8,_0x37aabf,_0x1941fb,_0x1dcb61,_0x451d03),_0x58b0b3(this,_0x43287f(0x219),_0x43287f(0x248)),_0x58b0b3(this,_0x43287f(0x1e9),null),_0x58b0b3(this,_0x43287f(0x394),null),(this[_0x43287f(0x4cd)]=_0x967b8b,this[_0x43287f(0x293)]=_0xe0ee82,this[_0x43287f(0x26b)]=_0x58c3fd,this[_0x43287f(0x3aa)]=_0x5b4e9b,this[_0x43287f(0x29e)]=_0x166105,this[_0x43287f(0x267)]=_0x20fbc6);}[_0x2b1dc8(0x551)](_0x299a2c){const _0x25916d=_0x2b1dc8;return this[_0x25916d(0x24c)][_0x25916d(0x3fb)](_0x299a2c),this[_0x25916d(0x205)](),this;}[_0x2b1dc8(0x56e)](_0x2629e2){const _0x34071a=_0x2b1dc8;if(this[_0x34071a(0x485)](_0x2629e2))return this['_clearScheduledTask'](),this['_injector'][_0x34071a(0x281)](_0x1ca0b2,this[_0x34071a(0x3d4)],this[_0x34071a(0x4f1)],null,this[_0x34071a(0x24c)],null,[_0x2629e2],this['_handler']);try{const _0x38baa8=this['_transformService'][_0x34071a(0x5a2)](_0x2629e2,this[_0x34071a(0x24c)]);if(_0xf29ce7[_0x34071a(0x18b)](_0x38baa8)){const {c1Prime:_0x561a72,m2Prime:_0x474016}=_0x38baa8;this[_0x34071a(0x323)](_0x561a72);const _0x57cf98=this[_0x34071a(0x4cd)][_0x34071a(0x281)](_0x1e758c,this['unitID'],this[_0x34071a(0x4f1)],_0x474016,this[_0x34071a(0x1a1)]);return this[_0x34071a(0x19f)](),_0x57cf98['_schedule'](this[_0x34071a(0x1e9)]?Math[_0x34071a(0x35f)](0x0,new Date()[_0x34071a(0x58e)]()-this[_0x34071a(0x1e9)]):this['_getSendChangesetTimeout']()),_0x57cf98;}throw _0x38baa8[_0x34071a(0x3e4)];}catch(_0x39cae8){return this['_logService'][_0x34071a(0x3e4)](_0x39cae8),this[_0x34071a(0x578)](!0x1);}}[_0x2b1dc8(0x53c)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x2b1dc8(0x2a0)](){const _0x44b8a5=_0x2b1dc8;throw new Error(_0x44b8a5(0x49d));}[_0x2b1dc8(0x529)](){const _0x16b78b=_0x2b1dc8;return this[_0x16b78b(0x19f)](),this[_0x16b78b(0x4cd)]['createInstance'](_0x4421df,this[_0x16b78b(0x3d4)],this[_0x16b78b(0x4f1)],null,this['_pendingMutations'],this[_0x16b78b(0x1a1)]);}[_0x2b1dc8(0x534)](){return this;}[_0x2b1dc8(0x1ce)](_0x35d4c5){const _0x53933a=_0x2b1dc8,_0x30f180=_0x35d4c5!=null?_0x35d4c5:this[_0x53933a(0x355)]();this['_scheduleTimestamp']=new Date()[_0x53933a(0x58e)](),this['_sendingTimer']=window['setTimeout'](()=>{const _0x138b01=_0x53933a;this['_clearScheduledTask']();let _0x479a44=null;switch(this[_0x138b01(0x4f1)]){case _0x25ecad['UNIVER_SHEET']:{_0x479a44=_0x47f654(this[_0x138b01(0x24c)],this['unitID'],this[_0x138b01(0x267)],this[_0x138b01(0x300)],this[_0x138b01(0x293)]);break;}case _0x25ecad[_0x138b01(0x202)]:{this[_0x138b01(0x24c)][_0x138b01(0x31f)](_0x59d4c0=>_0x59d4c0['id']===_0xc13db5['RichTextEditingMutation']['id'])?_0x479a44=_0x4079e3(this['_pendingMutations'],this[_0x138b01(0x3d4)],this[_0x138b01(0x267)],this[_0x138b01(0x300)],this['_memberService']):_0x479a44=_0x47f654(this[_0x138b01(0x24c)],this['unitID'],this['_univerInstanceService'],this[_0x138b01(0x300)],this['_memberService']);break;}default:throw new Error(_0x138b01(0x22f)+this['type']+_0x138b01(0x406));}const {changeset:_0x1876cd,pendingMutations:_0x3d3b4a}=_0x479a44;this[_0x138b01(0x1a1)][_0x138b01(0x50e)](_0x1876cd);const _0x52002a=_0x3d3b4a[_0x138b01(0x3b8)]?this[_0x138b01(0x4cd)]['createInstance'](_0x576a65,this[_0x138b01(0x3d4)],this[_0x138b01(0x4f1)],_0x1876cd,_0x3d3b4a,this[_0x138b01(0x1a1)]):this['_injector'][_0x138b01(0x281)](_0x248727,this['unitID'],this['type'],_0x1876cd,this[_0x138b01(0x1a1)]);_0x52002a[_0x138b01(0x205)](),this[_0x138b01(0x1a1)][_0x138b01(0x2d0)](this,_0x52002a);},_0x30f180);}[_0x2b1dc8(0x355)](){const _0x2731ea=_0x2b1dc8;var _0x4686af;const _0x35656f=this[_0x2731ea(0x3aa)][_0x2731ea(0x54b)](_0x451f80);return(_0x4686af=_0x35656f==null?void 0x0:_0x35656f[_0x2731ea(0x1e6)])!=null?_0x4686af:0x7d0;}[_0x2b1dc8(0x274)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2b1dc8(0x19f)](){const _0x598138=_0x2b1dc8;this[_0x598138(0x394)]!=null&&(clearTimeout(this[_0x598138(0x394)]),this[_0x598138(0x394)]=null);}['_onConflict'](_0x571143){const _0x2e18f6=_0x2b1dc8;return this[_0x2e18f6(0x19f)](),this[_0x2e18f6(0x4cd)][_0x2e18f6(0x281)](_0x4d2dc0,this['unitID'],this['type'],null,this[_0x2e18f6(0x24c)],this[_0x2e18f6(0x1a1)],_0x571143);}};_0x1e758c=_0x1d43bf([_0x396334(0x4,_0x5821d4['Inject'](_0x5821d4['Injector'])),_0x396334(0x5,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7['RevisionService'])),_0x396334(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0x35f626)),_0x396334(0x8,_0x5821d4[_0x2b1dc8(0x468)]),_0x396334(0x9,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x396334(0xa,_0x5821d4['IConfigService']),_0x396334(0xb,_0xf29ce7[_0x2b1dc8(0x487)]),_0x396334(0xc,_0x5821d4[_0x2b1dc8(0x486)]),_0x396334(0xd,_0x5821d4[_0x2b1dc8(0x2ac)])],_0x1e758c);let _0x248727=class extends _0x80c12c{constructor(_0x36667d,_0x4ee252,_0x19f747,_0x412e65,_0x5fbeb1,_0x4fc120,_0x19281a,_0x29cf43,_0x271eb7,_0x42e1ab,_0x120ddb){const _0x444a8c=_0x2b1dc8;super(_0x36667d,_0x4ee252,_0x19f747,[],_0x412e65,_0x29cf43,_0x120ddb,_0x4fc120,_0x19281a),_0x58b0b3(this,_0x444a8c(0x219),_0x444a8c(0x4dd)),(this[_0x444a8c(0x4cd)]=_0x5fbeb1,this[_0x444a8c(0x26b)]=_0x271eb7,this[_0x444a8c(0x29e)]=_0x42e1ab);}[_0x2b1dc8(0x551)](_0x43fe40){const _0x408b88=_0x2b1dc8,_0x4d7353=this['_injector'][_0x408b88(0x281)](_0x576a65,this[_0x408b88(0x3d4)],this['type'],this['_awaitingChangeset'],[_0x43fe40],this[_0x408b88(0x1a1)]);return _0x4d7353['_updateLocalCache'](),_0x4d7353;}[_0x2b1dc8(0x56e)](_0x4e1e39){const _0x1b38a9=_0x2b1dc8;if(this[_0x1b38a9(0x485)](_0x4e1e39))return this[_0x1b38a9(0x4cd)][_0x1b38a9(0x281)](_0x1ca0b2,this['unitID'],this['type'],this[_0x1b38a9(0x4cc)],[],null,[_0x4e1e39],this['_handler']);try{const _0x4b6bd5=this[_0x1b38a9(0x29e)][_0x1b38a9(0x32b)]([_0x4e1e39],[this['_awaitingChangeset']],!0x1);if(_0xf29ce7[_0x1b38a9(0x56c)](_0x4b6bd5)){const {c1Prime:_0x19c3ad,c2Prime:_0x11a690}=_0x4b6bd5;this[_0x1b38a9(0x323)](_0x19c3ad[0x0]),_0x11a690[0x0][_0x1b38a9(0x1e1)]=this['_getCurrentRevision']();const _0x3462ce=this[_0x1b38a9(0x4cd)][_0x1b38a9(0x281)](_0x248727,this[_0x1b38a9(0x3d4)],this[_0x1b38a9(0x4f1)],_0x11a690[0x0],this[_0x1b38a9(0x1a1)]);return _0x3462ce['_updateLocalCache'](),_0x3462ce;}return this[_0x1b38a9(0x578)](!0x1);}catch(_0xf0a500){return this[_0x1b38a9(0x26b)][_0x1b38a9(0x3e4)](_0xf0a500),this[_0x1b38a9(0x578)](!0x1);}}[_0x2b1dc8(0x53c)](_0x117364){const _0x59abc9=_0x2b1dc8,_0x529f62=this[_0x59abc9(0x300)][_0x59abc9(0x1ee)](this[_0x59abc9(0x3d4)]);if(_0x117364[_0x59abc9(0x1e2)]<_0x529f62-0x1)return this;if(this[_0x59abc9(0x485)](_0x117364))return this['_injector'][_0x59abc9(0x281)](_0x1ca0b2,this['unitID'],this['type'],null,[],this[_0x59abc9(0x4cc)],[],this[_0x59abc9(0x1a1)]);this['_incrementRevisionNumber']();const _0x2f25ee=this[_0x59abc9(0x4cd)][_0x59abc9(0x281)](_0x26314f,this['unitID'],this[_0x59abc9(0x4f1)],this[_0x59abc9(0x1a1)]);return _0x2f25ee[_0x59abc9(0x205)](),_0x2f25ee;}[_0x2b1dc8(0x2a0)](_0x21495d){const _0x351523=_0x2b1dc8;return this[_0x351523(0x578)](!!(_0x21495d!=null&&_0x21495d[_0x351523(0x4c2)]));}[_0x2b1dc8(0x529)](){const _0x4e7334=_0x2b1dc8;return this['_injector'][_0x4e7334(0x281)](_0x4421df,this[_0x4e7334(0x3d4)],this['type'],this['_awaitingChangeset'],[],this[_0x4e7334(0x1a1)]);}[_0x2b1dc8(0x534)](){return this;}[_0x2b1dc8(0x274)](){const _0xa33a9d=_0x2b1dc8;this[_0xa33a9d(0x1a1)][_0xa33a9d(0x50e)](this[_0xa33a9d(0x4cc)]);}[_0x2b1dc8(0x578)](_0x16113e){const _0x2b23ff=_0x2b1dc8;return this['_injector'][_0x2b23ff(0x281)](_0x4d2dc0,this['unitID'],this[_0x2b23ff(0x4f1)],this['_awaitingChangeset'],[],this['_handler'],_0x16113e);}};_0x248727=_0x1d43bf([_0x396334(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x396334(0x5,_0x5821d4['Inject'](_0xf29ce7[_0x2b1dc8(0x253)])),_0x396334(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x396334(0x8,_0x5821d4[_0x2b1dc8(0x468)]),_0x396334(0x9,_0xf29ce7['ITransformService']),_0x396334(0xa,_0x5821d4[_0x2b1dc8(0x2ac)])],_0x248727);let _0x576a65=class extends _0x80c12c{constructor(_0x130349,_0xe41cd8,_0x32cd96,_0x5dbd04,_0x4d789e,_0x4b817b,_0x36f6b0,_0x225b20,_0x59417e,_0x3dd4e5,_0x35f740,_0x5948d1){const _0x3c0981=_0x2b1dc8;super(_0x130349,_0xe41cd8,_0x32cd96,_0x5dbd04,_0x4d789e,_0x59417e,_0x5948d1,_0x36f6b0,_0x225b20),_0x58b0b3(this,_0x3c0981(0x219),_0x3c0981(0x572)),(this['_injector']=_0x4b817b,this[_0x3c0981(0x26b)]=_0x3dd4e5,this['_transformService']=_0x35f740);}[_0x2b1dc8(0x551)](_0x2b4484){const _0x84bc5b=_0x2b1dc8;return this[_0x84bc5b(0x24c)][_0x84bc5b(0x3fb)](_0x2b4484),this;}['onRemoteChangeset'](_0x1c2a0d){const _0x2a82b0=_0x2b1dc8;if(this[_0x2a82b0(0x485)](_0x1c2a0d))return this[_0x2a82b0(0x4cd)]['createInstance'](_0x1ca0b2,this['unitID'],this[_0x2a82b0(0x4f1)],this['_awaitingChangeset'],this[_0x2a82b0(0x24c)],null,[_0x1c2a0d],this[_0x2a82b0(0x1a1)]);try{const _0x35f157=this[_0x2a82b0(0x29e)]['transformChangesets']([_0x1c2a0d],[this['_awaitingChangeset']],!0x1);if(_0xf29ce7[_0x2a82b0(0x56c)](_0x35f157)){const {c1Prime:_0x38f2b8,c2Prime:_0x468305}=_0x35f157,_0x3b9b15=this[_0x2a82b0(0x29e)][_0x2a82b0(0x5a2)](_0x38f2b8[0x0],this[_0x2a82b0(0x24c)]);if(_0xf29ce7[_0x2a82b0(0x18b)](_0x3b9b15)){const {c1Prime:_0x4fe2eb,m2Prime:_0x1131f8}=_0x3b9b15;return this['_executeRemoteChangeset'](_0x4fe2eb),_0x468305[0x0]['baseRev']=this[_0x2a82b0(0x270)](),this[_0x2a82b0(0x4cd)][_0x2a82b0(0x281)](_0x576a65,this[_0x2a82b0(0x3d4)],this[_0x2a82b0(0x4f1)],_0x468305[0x0],_0x1131f8,this['_handler']);}throw _0x3b9b15[_0x2a82b0(0x3e4)];}throw _0x35f157['error'];}catch(_0x4ab814){return this[_0x2a82b0(0x26b)][_0x2a82b0(0x3e4)](_0x4ab814),this['_onConflict'](!0x1);}}[_0x2b1dc8(0x53c)](_0x2adf10){const _0x282a95=_0x2b1dc8;if(this[_0x282a95(0x485)](_0x2adf10))return this[_0x282a95(0x4cd)]['createInstance'](_0x1ca0b2,this[_0x282a95(0x3d4)],this['type'],null,this[_0x282a95(0x24c)],this[_0x282a95(0x4cc)],[],this[_0x282a95(0x1a1)]);this[_0x282a95(0x3b4)]();const _0x46df6f=this[_0x282a95(0x4cd)]['createInstance'](_0x1e758c,this['unitID'],this[_0x282a95(0x4f1)],this[_0x282a95(0x24c)],this[_0x282a95(0x1a1)]);return _0x46df6f[_0x282a95(0x1ce)](),_0x46df6f[_0x282a95(0x205)](),_0x46df6f;}[_0x2b1dc8(0x2a0)](_0x5eee53){const _0x47b790=_0x2b1dc8;return this[_0x47b790(0x578)](!!(_0x5eee53!=null&&_0x5eee53[_0x47b790(0x4c2)]));}[_0x2b1dc8(0x529)](){const _0x2455ad=_0x2b1dc8;return this[_0x2455ad(0x4cd)][_0x2455ad(0x281)](_0x4421df,this[_0x2455ad(0x3d4)],this[_0x2455ad(0x4f1)],this[_0x2455ad(0x4cc)],this[_0x2455ad(0x24c)],this[_0x2455ad(0x1a1)]);}[_0x2b1dc8(0x534)](){return this;}[_0x2b1dc8(0x274)](){const _0x575bc4=_0x2b1dc8;this[_0x575bc4(0x1a1)][_0x575bc4(0x50e)](this['_awaitingChangeset']);}[_0x2b1dc8(0x578)](_0x31c31d){const _0x2c2b33=_0x2b1dc8;return this['_injector'][_0x2c2b33(0x281)](_0x4d2dc0,this['unitID'],this[_0x2c2b33(0x4f1)],null,this[_0x2c2b33(0x24c)],this[_0x2c2b33(0x1a1)],_0x31c31d);}};_0x576a65=_0x1d43bf([_0x396334(0x5,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x396334(0x6,_0x5821d4['Inject'](_0xf29ce7[_0x2b1dc8(0x253)])),_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0['LocalCacheService'])),_0x396334(0x8,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x396334(0x9,_0x5821d4[_0x2b1dc8(0x468)]),_0x396334(0xa,_0xf29ce7[_0x2b1dc8(0x487)]),_0x396334(0xb,_0x5821d4[_0x2b1dc8(0x2ac)])],_0x576a65);let _0x4d2dc0=class extends _0x80c12c{constructor(_0x137e9c,_0x4f65f5,_0x2920b3,_0x3fa6fb,_0x43616c,_0x272426=!0x1,_0x469a42,_0x2a4f8,_0x57bb8e,_0x318983,_0x265b0f,_0x1898e3,_0x5006df){const _0xfec939=_0x2b1dc8;super(_0x137e9c,_0x4f65f5,_0x2920b3,_0x3fa6fb,_0x43616c,_0x2a4f8,_0x57bb8e,_0x265b0f,_0x318983),_0x58b0b3(this,_0xfec939(0x219),_0xfec939(0x555)),(this['_isPermissionRej']=_0x272426,this[_0xfec939(0x39f)]=_0x469a42,this[_0xfec939(0x2a6)]=_0x1898e3,this[_0xfec939(0x57c)]=_0x5006df,this[_0xfec939(0x4ef)](),this['_clearLocalCache'](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x2b1dc8(0x56e)](){return this;}[_0x2b1dc8(0x53c)](){return this;}[_0x2b1dc8(0x2a0)](){return this;}[_0x2b1dc8(0x529)](){return this;}[_0x2b1dc8(0x534)](){return this;}[_0x2b1dc8(0x274)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2b1dc8(0x47a)](){const _0x56f383=_0x2b1dc8;this['_localCacheService'][_0x56f383(0x1f4)](this['unitID'],this[_0x56f383(0x4f1)],null,[]);}[_0x2b1dc8(0x4ef)](){const _0x193555=_0x2b1dc8;this[_0x193555(0x326)]?this[_0x193555(0x57c)][_0x193555(0x221)]({'title':this[_0x193555(0x2a6)]['t']('permission.title'),'content':this['_localeService']['t']('permission.content'),'type':'error','duration':0x0}):this[_0x193555(0x57c)][_0x193555(0x221)]({'title':this[_0x193555(0x2a6)]['t'](_0x193555(0x2c4)),'content':this[_0x193555(0x2a6)]['t']('conflict.content'),'type':_0x193555(0x3e4),'duration':0x0});}[_0x2b1dc8(0x3c0)](){const _0x1f63d6=_0x2b1dc8;this[_0x1f63d6(0x39f)][_0x1f63d6(0x3f4)](new _0x872f07[(_0x1f63d6(0x4e6))](this['unitID'])['id'],!0x1);}};_0x4d2dc0=_0x1d43bf([_0x396334(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['IPermissionService'])),_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x396334(0x8,_0x5821d4[_0x2b1dc8(0x2ac)]),_0x396334(0x9,_0x5821d4['Inject'](_0x2010a0[_0x2b1dc8(0x222)])),_0x396334(0xa,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7[_0x2b1dc8(0x253)])),_0x396334(0xb,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['LocaleService'])),_0x396334(0xc,_0x32b063[_0x2b1dc8(0x401)])],_0x4d2dc0);let _0x4421df=class extends _0x80c12c{constructor(_0x163a0e,_0xd9319,_0x3cedd4,_0x4ae58a,_0x233e72,_0x2b8629,_0x4d71e0,_0x65605c,_0x5c490d,_0x1053d9){const _0x37df31=_0x2b1dc8;super(_0x163a0e,_0xd9319,_0x3cedd4,_0x4ae58a,_0x233e72,_0x5c490d,_0x1053d9,_0x4d71e0,_0x65605c),_0x58b0b3(this,_0x37df31(0x219),_0x37df31(0x23d)),this['_injector']=_0x2b8629;}[_0x2b1dc8(0x551)](_0xa37514){const _0x5e57f4=_0x2b1dc8;return this[_0x5e57f4(0x24c)][_0x5e57f4(0x3fb)](_0xa37514),this['_updateLocalCache'](),this;}[_0x2b1dc8(0x56e)](_0x3b14c2){const _0x2c34dd=_0x2b1dc8;throw new Error(_0x2c34dd(0x32d));}['onRemoteAck'](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x2b1dc8(0x2a0)](){const _0x271664=_0x2b1dc8;throw new Error(_0x271664(0x19d));}[_0x2b1dc8(0x529)](){return this;}[_0x2b1dc8(0x534)](){const _0x40690b=_0x2b1dc8,{_injector:_0x364fef,_pendingMutations:_0xd16280,_awaitingChangeset:_0x48a604,unitID:_0x1a033b,_handler:_0x1337fa,type:_0x3c3d25}=this,_0x223c90=_0x2b7a9a(_0x364fef,_0x1a033b,_0x3c3d25,_0x48a604,_0xd16280,_0x1337fa);return _0x223c90 instanceof _0x1e758c?_0x223c90[_0x40690b(0x1ce)]():(_0x223c90 instanceof _0x576a65||_0x223c90 instanceof _0x248727)&&_0x223c90['resend'](),_0x223c90;}[_0x2b1dc8(0x274)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x4421df=_0x1d43bf([_0x396334(0x5,_0x5821d4['Inject'](_0x5821d4[_0x2b1dc8(0x291)])),_0x396334(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7[_0x2b1dc8(0x253)])),_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x396334(0x8,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x396334(0x9,_0x5821d4[_0x2b1dc8(0x2ac)])],_0x4421df);let _0x1ca0b2=class extends _0x80c12c{constructor(_0x305341,_0x29b9eb,_0xdf1549,_0x5a89de,_0x2a2a36,_0x4c3c78,_0xf5d857,_0x46251b,_0x34c5c9,_0x3d47f6,_0x4febe3,_0x360ac0,_0x183d68,_0x384d58){const _0x29076c=_0x2b1dc8;super(_0x305341,_0x29b9eb,_0xdf1549,_0x5a89de,_0xf5d857,_0x360ac0,_0x183d68,_0x34c5c9,_0x3d47f6),_0x58b0b3(this,_0x29076c(0x219),_0x29076c(0x434)),(this[_0x29076c(0x200)]=_0x2a2a36,this[_0x29076c(0x3c1)]=_0x4c3c78,this[_0x29076c(0x4cd)]=_0x46251b,this['_logService']=_0x4febe3,this[_0x29076c(0x29e)]=_0x384d58);}['onMissedChangesetFetched'](_0x40c4e4){const _0x575a1a=_0x2b1dc8;try{const _0x3baac0=[..._0x40c4e4,...this[_0x575a1a(0x3c1)]],_0x30c276=[this[_0x575a1a(0x4cc)]||this['_acknowledgedAwaitingChangeset']][_0x575a1a(0x565)](_0x57eb98=>!!_0x57eb98);let _0x8e0445,_0x41d735;if(_0x30c276[_0x575a1a(0x3b8)]){const _0x5157a5=this[_0x575a1a(0x29e)]['transformChangesets'](_0x3baac0,_0x30c276,!0x1);if(!_0xf29ce7[_0x575a1a(0x56c)](_0x5157a5))throw _0x5157a5['error'];_0x8e0445=_0x5157a5['c1Prime'],_0x41d735=_0x5157a5['c2Prime'];}else _0x8e0445=_0x3baac0,_0x41d735=[];let _0x589b70=this[_0x575a1a(0x24c)];_0x8e0445[_0x575a1a(0x3bc)](_0x4ac41a=>{const _0x5be0ac=_0x575a1a;let _0x42897d;if(_0x589b70[_0x5be0ac(0x3b8)]){const _0x4f06fb=this['_transformService'][_0x5be0ac(0x5a2)](_0x4ac41a,_0x589b70);if(!_0xf29ce7['isTransformMutationsWithChangesetSuccess'](_0x4f06fb))throw _0x4f06fb[_0x5be0ac(0x3e4)];_0x42897d=_0x4f06fb[_0x5be0ac(0x37c)],_0x589b70=_0x4f06fb['m2Prime'];}else _0x42897d=_0x4ac41a;this['_executeRemoteChangeset'](_0x42897d);}),this['_acknowledgedAwaitingChangeset']&&this[_0x575a1a(0x3b4)](),this['_awaitingChangeset']&&_0x41d735[_0x575a1a(0x3b8)]&&(_0x41d735[0x0][_0x575a1a(0x1e1)]=this['_getCurrentRevision']());let _0x42a8bf;if(this['_awaitingChangeset']&&_0x589b70[_0x575a1a(0x3b8)]!==0x0)_0x42a8bf=this[_0x575a1a(0x4cd)]['createInstance'](_0x576a65,this[_0x575a1a(0x3d4)],this[_0x575a1a(0x4f1)],_0x41d735[0x0],_0x589b70,this[_0x575a1a(0x1a1)]);else{if(this[_0x575a1a(0x4cc)]&&_0x589b70[_0x575a1a(0x3b8)]===0x0)_0x41d735[0x0]['baseRev']=this[_0x575a1a(0x270)](),_0x42a8bf=this[_0x575a1a(0x4cd)][_0x575a1a(0x281)](_0x248727,this[_0x575a1a(0x3d4)],this[_0x575a1a(0x4f1)],_0x41d735[0x0],this[_0x575a1a(0x1a1)]);else{if(_0x589b70[_0x575a1a(0x3b8)]!==0x0){const _0x520d07=this[_0x575a1a(0x4cd)][_0x575a1a(0x281)](_0x1e758c,this[_0x575a1a(0x3d4)],this[_0x575a1a(0x4f1)],_0x589b70,this[_0x575a1a(0x1a1)]);_0x520d07[_0x575a1a(0x1ce)](),_0x42a8bf=_0x520d07;}else _0x42a8bf=this[_0x575a1a(0x4cd)][_0x575a1a(0x281)](_0x26314f,this[_0x575a1a(0x3d4)],this[_0x575a1a(0x4f1)],this[_0x575a1a(0x1a1)]);}}return _0x42a8bf[_0x575a1a(0x205)](),_0x42a8bf;}catch(_0x4c620b){return this['_logService'][_0x575a1a(0x3e4)](_0x575a1a(0x3e3),'failed\x20to\x20apply\x20missed\x20changesets!',_0x4c620b),this['_injector']['createInstance'](_0x4d2dc0,this[_0x575a1a(0x3d4)],this['type'],this[_0x575a1a(0x4cc)],this['_pendingMutations'],this[_0x575a1a(0x1a1)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2b1dc8(0x551)](_0x219beb){const _0x35c07a=_0x2b1dc8;return this['_pendingMutations'][_0x35c07a(0x3fb)](_0x219beb),this;}['onRemoteChangeset'](_0x189d53){const _0x586044=_0x2b1dc8;return this[_0x586044(0x3c1)][_0x586044(0x3fb)](_0x189d53),this;}[_0x2b1dc8(0x53c)](_0x81a649){const _0x457726=_0x2b1dc8;if(this[_0x457726(0x4cc)])return this['_acknowledgedAwaitingChangeset']=this[_0x457726(0x4cc)],this[_0x457726(0x4cc)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x2b1dc8(0x2a0)](_0x123237){const _0x57c0f3=_0x2b1dc8;return this[_0x57c0f3(0x578)](!!(_0x123237!=null&&_0x123237[_0x57c0f3(0x4c2)]));}[_0x2b1dc8(0x529)](){const _0x376ad6=_0x2b1dc8;return this[_0x376ad6(0x4cd)][_0x376ad6(0x281)](_0x4421df,this[_0x376ad6(0x3d4)],this[_0x376ad6(0x4f1)],this[_0x376ad6(0x4cc)],this[_0x376ad6(0x24c)],this['_handler']);}[_0x2b1dc8(0x534)](){return this;}[_0x2b1dc8(0x578)](_0x279fa6){const _0xc266c4=_0x2b1dc8;return this[_0xc266c4(0x4cd)][_0xc266c4(0x281)](_0x4d2dc0,this[_0xc266c4(0x3d4)],this['type'],this[_0xc266c4(0x4cc)],this[_0xc266c4(0x24c)],this['_handler'],_0x279fa6);}};_0x1ca0b2=_0x1d43bf([_0x396334(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x396334(0x8,_0x5821d4['Inject'](_0xf29ce7[_0x2b1dc8(0x253)])),_0x396334(0x9,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x396334(0xa,_0x5821d4[_0x2b1dc8(0x468)]),_0x396334(0xb,_0x5821d4['ICommandService']),_0x396334(0xc,_0x5821d4[_0x2b1dc8(0x2ac)]),_0x396334(0xd,_0xf29ce7['ITransformService'])],_0x1ca0b2);function _0x2b7a9a(_0x3fcce4,_0x3ce5da,_0x4b148b,_0x491e4f,_0x3b65e4,_0x506d2b){const _0x1919e1=_0x2b1dc8;return _0x491e4f&&_0x3b65e4[_0x1919e1(0x3b8)]?_0x3fcce4['createInstance'](_0x576a65,_0x3ce5da,_0x4b148b,_0x491e4f,_0x3b65e4,_0x506d2b):_0x491e4f?_0x3fcce4['createInstance'](_0x248727,_0x3ce5da,_0x4b148b,_0x491e4f,_0x506d2b):_0x3b65e4['length']?_0x3fcce4[_0x1919e1(0x281)](_0x1e758c,_0x3ce5da,_0x4b148b,_0x3b65e4,_0x506d2b):_0x3fcce4[_0x1919e1(0x281)](_0x26314f,_0x3ce5da,_0x4b148b,_0x506d2b);}var _0xdf79d2=Object[_0x2b1dc8(0x47b)],_0x538204=Object['getOwnPropertyDescriptor'],_0x4c63cf=(_0x125c7d,_0x569cf3,_0x507de2,_0x4d4dda)=>{for(var _0x149f8d=_0x4d4dda>0x1?void 0x0:_0x4d4dda?_0x538204(_0x569cf3,_0x507de2):_0x569cf3,_0x1549d9=_0x125c7d['length']-0x1,_0x542ed4;_0x1549d9>=0x0;_0x1549d9--)(_0x542ed4=_0x125c7d[_0x1549d9])&&(_0x149f8d=(_0x4d4dda?_0x542ed4(_0x569cf3,_0x507de2,_0x149f8d):_0x542ed4(_0x149f8d))||_0x149f8d);return _0x4d4dda&&_0x149f8d&&_0xdf79d2(_0x569cf3,_0x507de2,_0x149f8d),_0x149f8d;},_0x2f750f=(_0xf324f9,_0x27fa82)=>(_0x9bd275,_0x4ad3b2)=>_0x27fa82(_0x9bd275,_0x4ad3b2,_0xf324f9);_0x2010a0[_0x2b1dc8(0x259)]=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x1b92ee,_0x2b5d0c,_0x33d4a5,_0x5851fd,_0x39dcbf,_0x361ce6,_0x4d639d,_0x1e8699,_0x118bf5,_0x57a96a,_0x51752c,_0x35529e,_0x38d38d){const _0x550a94=_0x2b1dc8;super(),_0x58b0b3(this,_0x550a94(0x22c),new _0x2fad13[(_0x550a94(0x53f))](null)),_0x58b0b3(this,_0x550a94(0x501),this[_0x550a94(0x22c)][_0x550a94(0x1eb)]()),_0x58b0b3(this,_0x550a94(0x271)),_0x58b0b3(this,'_collaborationPaused',!0x1),_0x58b0b3(this,_0x550a94(0x20c),this['state$']['pipe'](_0x2fad13[_0x550a94(0x370)](_0x297ae3=>_0x297ae3?_0x297ae3['status']:_0x109234[_0x550a94(0x400)]),_0x2fad13[_0x550a94(0x1f6)](0x1))),_0x58b0b3(this,'_transitionLocked',!0x1),_0x58b0b3(this,_0x550a94(0x4a2),[]),(this['unitID']=_0x1b92ee,this['session']=_0x2b5d0c,this[_0x550a94(0x46b)]=_0x33d4a5,this[_0x550a94(0x4cd)]=_0x5851fd,this[_0x550a94(0x461)]=_0x39dcbf,this[_0x550a94(0x1a9)]=_0x361ce6,this[_0x550a94(0x2a6)]=_0x4d639d,this['_revisionService']=_0x1e8699,this[_0x550a94(0x26b)]=_0x118bf5,this[_0x550a94(0x4f9)]=_0x57a96a,this[_0x550a94(0x412)]=_0x51752c,this[_0x550a94(0x39f)]=_0x35529e,this[_0x550a94(0x311)]=_0x38d38d);}get[_0x2b1dc8(0x40c)](){const _0x2cdffb=_0x2b1dc8;return this[_0x2cdffb(0x271)];}async[_0x2b1dc8(0x3bd)](){const _0x2f2f62=_0x2b1dc8;if(this[_0x2f2f62(0x40c)])throw new Error(_0x2f2f62(0x31a));await this[_0x2f2f62(0x1dd)]();}[_0x2b1dc8(0x42a)](){const _0x370c79=_0x2b1dc8;return this[_0x370c79(0x268)]=!0x0,_0x5821d4['toDisposable'](()=>{const _0x276f99=_0x370c79;this[_0x276f99(0x268)]=!0x1,this[_0x276f99(0x547)]();});}[_0x2b1dc8(0x413)](_0x46d351){const _0x5517df=_0x2b1dc8;this[_0x5517df(0x271)]=_0x46d351,this['_state$']['next'](_0x46d351);}async['_init'](){const _0x546392=_0x2b1dc8;var _0x266b0a;this[_0x546392(0x413)](await this[_0x546392(0x3bf)]()),this[_0x546392(0x311)]&&((_0x266b0a=this['_singleActiveUnitService'])==null||_0x266b0a[_0x546392(0x35b)](this[_0x546392(0x3d4)]),this[_0x546392(0x470)](this['_singleActiveUnitService'][_0x546392(0x589)](this[_0x546392(0x3d4)])[_0x546392(0x358)](_0x5b3968=>{const _0x17a987=_0x546392;this[_0x17a987(0x26b)]['debug'](_0x17a987(0x308),_0x17a987(0x352),_0x5b3968),_0x5b3968===_0x100820[_0x17a987(0x4de)]?(this[_0x17a987(0x412)][_0x17a987(0x221)]({'content':this[_0x17a987(0x2a6)]['t']('collaboration.single-unit.warning'),'type':_0x2997c5['MessageType'][_0x17a987(0x414)]}),this['_permissionService'][_0x17a987(0x3f4)](new _0x872f07[(_0x17a987(0x4e6))](this[_0x17a987(0x3d4)])['id'],!0x1)):this['_permissionService'][_0x17a987(0x3f4)](new _0x872f07[(_0x17a987(0x4e6))](this[_0x17a987(0x3d4)])['id'],!0x0);})));let _0x345ebd=!0x1;return this['disposeWithMe'](this['session'][_0x546392(0x25e)][_0x546392(0x358)](_0x3926c8=>{const _0x7339cc=_0x546392;_0x3926c8===_0x58e615[_0x7339cc(0x3df)]?this[_0x7339cc(0x419)](_0x345ebd):_0x3926c8===_0x58e615[_0x7339cc(0x400)]&&(_0x345ebd=!0x0,this[_0x7339cc(0x1ac)]());})),this[_0x546392(0x470)](this[_0x546392(0x362)][_0x546392(0x51f)][_0x546392(0x358)](_0x2e4a83=>{const _0x44bc9b=_0x546392;try{switch(_0x2e4a83['eventID']){case _0xf29ce7[_0x44bc9b(0x25c)]['NEW_CHANGESETS']:{this[_0x44bc9b(0x249)](_0xf29ce7[_0x44bc9b(0x4d1)](_0x2e4a83[_0x44bc9b(0x210)]));break;}case _0xf29ce7['CollaborationEvent'][_0x44bc9b(0x296)]:{this[_0x44bc9b(0x1c0)](_0x2e4a83['data']);break;}case _0xf29ce7[_0x44bc9b(0x25c)]['CHANGESET_REJ']:{this[_0x44bc9b(0x520)]();break;}case _0xf29ce7['CollaborationEvent'][_0x44bc9b(0x228)]:{this[_0x44bc9b(0x396)](_0x2e4a83[_0x44bc9b(0x210)][_0x44bc9b(0x438)]['map'](_0x31bb89=>_0xf29ce7[_0x44bc9b(0x4d1)](_0x31bb89)));break;}case _0xf29ce7[_0x44bc9b(0x25c)][_0x44bc9b(0x427)]:this[_0x44bc9b(0x520)]({'isPermissionRej':!0x0});}}catch(_0x340fb0){throw console[_0x44bc9b(0x3e4)](_0x44bc9b(0x287),_0x340fb0),_0x340fb0;}})),this[_0x546392(0x271)];}[_0x2b1dc8(0x442)](){const _0x458b50=_0x2b1dc8;this[_0x458b50(0x507)]=!0x1;}[_0x2b1dc8(0x42b)](){const _0x280b94=_0x2b1dc8;if(this[_0x280b94(0x507)])throw new Error(_0x280b94(0x3d5));this[_0x280b94(0x507)]=!0x0;}[_0x2b1dc8(0x19e)](_0xfff50){const _0x50b704=_0x2b1dc8;this['_lockTransition'](),this[_0x50b704(0x413)](this[_0x50b704(0x271)][_0x50b704(0x551)](_0xfff50)),this['_unlockTransition']();}[_0x2b1dc8(0x249)](_0x358ffd){const _0x272d82=_0x2b1dc8;if(!(_0x358ffd[_0x272d82(0x1e2)]<=this[_0x272d82(0x300)][_0x272d82(0x1ee)](this[_0x272d82(0x3d4)]))){if(this[_0x272d82(0x268)]){this['_remoteChangesetQueue'][_0x272d82(0x3fb)](_0x358ffd);return;}this[_0x272d82(0x47c)](_0x358ffd);}}[_0x2b1dc8(0x547)](){const _0x4a0899=_0x2b1dc8;this[_0x4a0899(0x4a2)]['forEach'](_0x3c2e3f=>this['_applyRemoteChangeset'](_0x3c2e3f)),this[_0x4a0899(0x4a2)]=[];}[_0x2b1dc8(0x47c)](_0xe40999){const _0x32fc61=_0x2b1dc8,_0x2b1068=this[_0x32fc61(0x1a9)][_0x32fc61(0x232)][_0x32fc61(0x48e)](this[_0x32fc61(0x1a9)]['interceptor'][_0x32fc61(0x343)]()[_0x32fc61(0x32c)])(_0xe40999['mutations'],null)||_0xe40999[_0x32fc61(0x29c)],_0x30e907={..._0xe40999,'mutations':_0x2b1068};this[_0x32fc61(0x42b)](),this[_0x32fc61(0x413)](this[_0x32fc61(0x271)]['onRemoteChangeset'](_0x30e907)),this[_0x32fc61(0x442)]();}[_0x2b1dc8(0x1c0)](_0x1b1652){const _0x444e1b=_0x2b1dc8;this[_0x444e1b(0x42b)](),this[_0x444e1b(0x413)](this[_0x444e1b(0x271)][_0x444e1b(0x53c)](_0x1b1652)),this[_0x444e1b(0x442)]();}['_onRemoteRejected'](_0x37e477){const _0x2b02be=_0x2b1dc8;this[_0x2b02be(0x42b)](),this[_0x2b02be(0x413)](this[_0x2b02be(0x271)][_0x2b02be(0x2a0)](_0x37e477)),this[_0x2b02be(0x442)]();}[_0x2b1dc8(0x396)](_0x8fd471){const _0x280a4f=_0x2b1dc8;if(!(this['_state']instanceof _0x1ca0b2))throw new TypeError(_0x280a4f(0x411));const _0x33aa4e=_0x8fd471['map'](_0x20cea6=>{const _0x275581=_0x280a4f,_0x1c921f=this[_0x275581(0x1a9)]['interceptor'][_0x275581(0x48e)](this[_0x275581(0x1a9)]['interceptor']['getInterceptPoints']()[_0x275581(0x32c)])(_0x20cea6['mutations'],null)||_0x20cea6[_0x275581(0x29c)];return{..._0x20cea6,'mutations':_0x1c921f};});this[_0x280a4f(0x42b)](),this[_0x280a4f(0x413)](this[_0x280a4f(0x271)][_0x280a4f(0x3fe)](_0x33aa4e)),this['_unlockTransition']();}[_0x2b1dc8(0x1ac)](){const _0x4c85f0=_0x2b1dc8;this[_0x4c85f0(0x42b)](),this[_0x4c85f0(0x413)](this[_0x4c85f0(0x271)][_0x4c85f0(0x529)]()),this['_unlockTransition']();}['_toggleOnline'](_0xa05df6=!0x1){const _0x16224b=_0x2b1dc8;this[_0x16224b(0x42b)](),this[_0x16224b(0x413)](this[_0x16224b(0x271)][_0x16224b(0x534)]()),this['_unlockTransition']();const _0x577506=this[_0x16224b(0x271)];_0xa05df6&&_0x577506 instanceof _0x26314f&&(this[_0x16224b(0x42b)](),this[_0x16224b(0x413)](_0x577506[_0x16224b(0x432)]()),this[_0x16224b(0x442)]());}async[_0x2b1dc8(0x3bf)](){return new Promise(_0x1c1307=>{const _0x4f0c75=_0x5448;this[_0x4f0c75(0x362)][_0x4f0c75(0x25e)][_0x4f0c75(0x378)](_0x2fad13[_0x4f0c75(0x257)](0x1))[_0x4f0c75(0x358)](async _0x588c80=>{const _0x9dbc31=_0x4f0c75;_0x1c1307(await this[_0x9dbc31(0x592)](_0x588c80===_0x58e615['ONLINE']));});});}['_createHandler'](){const _0x5edc7b=this['unitID'];return{'onStateChange':(_0x12c441,_0x15391d)=>{const _0x3ffefa=_0x5448;if(_0x12c441!==this[_0x3ffefa(0x271)])throw new Error(_0x3ffefa(0x3e6)+_0x12c441['status']+_0x3ffefa(0x35d)+_0x15391d[_0x3ffefa(0x219)]+_0x3ffefa(0x4ff)+this['_state'][_0x3ffefa(0x219)]);this[_0x3ffefa(0x413)](_0x15391d);},'onSendChangeset':_0xdc1d6b=>{const _0x24967d=_0x5448,_0x282520={'eventID':_0xf29ce7[_0x24967d(0x25c)][_0x24967d(0x475)],'data':{'unitID':_0xdc1d6b[_0x24967d(0x3d4)],'unitType':this[_0x24967d(0x46b)],'changeset':_0xdc1d6b,'memberID':this[_0x24967d(0x362)][_0x24967d(0x58d)]()}};this['session']['send'](_0x282520,this['unitID']);},'onMissingChangesets':({from:_0x2cd089,to:_0x20672b})=>{const _0x3ac4b5=_0x5448;this[_0x3ac4b5(0x26b)][_0x3ac4b5(0x1dc)]('[CollaborationEntity]',_0x3ac4b5(0x514)+_0x2cd089+_0x3ac4b5(0x52a)+_0x20672b);const _0x10519b={'eventID':_0xf29ce7['CollaborationEvent'][_0x3ac4b5(0x3f2)],'data':{'unitID':_0x5edc7b,'unitType':this[_0x3ac4b5(0x46b)],'from':_0x2cd089,'to':_0x20672b}};this[_0x3ac4b5(0x362)][_0x3ac4b5(0x1d5)](_0x10519b,this['unitID']);}};}async[_0x2b1dc8(0x592)](_0x56358b){const _0x23a254=_0x2b1dc8;var _0x90ad58,_0x26f8d1;const _0x42bcf6=await this['_localCacheService'][_0x23a254(0x307)](this[_0x23a254(0x3d4)]),_0xd08c92=(_0x90ad58=_0x42bcf6==null?void 0x0:_0x42bcf6[_0x23a254(0x29c)])!=null?_0x90ad58:[],_0x614919=(_0x26f8d1=_0x42bcf6==null?void 0x0:_0x42bcf6[_0x23a254(0x48f)])!=null?_0x26f8d1:null,_0xc0f380=this[_0x23a254(0x3d4)];try{this['_replayCachedMutations'](_0x614919,_0xd08c92);}catch(_0x300398){this['_logService'][_0x23a254(0x3e4)](_0x300398);}const _0x5bceda=this['_createHandler']();if(_0x56358b){const _0x416cc2=_0x2b7a9a(this['_injector'],_0xc0f380,this[_0x23a254(0x46b)],_0x614919,_0xd08c92,_0x5bceda);return _0x416cc2 instanceof _0x1e758c?_0x416cc2[_0x23a254(0x1ce)]():(_0x416cc2 instanceof _0x576a65||_0x416cc2 instanceof _0x248727)&&_0x416cc2[_0x23a254(0x274)](),_0x416cc2;}return this[_0x23a254(0x4cd)][_0x23a254(0x281)](_0x4421df,_0xc0f380,this[_0x23a254(0x46b)],_0x614919,_0xd08c92,_0x5bceda);}[_0x2b1dc8(0x4ba)](_0x14a2d3,_0x57ccf4){const _0x1db588=_0x2b1dc8;var _0x268d6a,_0x111c5d;const _0x41c014=this['_compressMutationService'][_0x1db588(0x232)][_0x1db588(0x48e)](this[_0x1db588(0x1a9)][_0x1db588(0x232)][_0x1db588(0x343)]()['COMPRESS_MUTATION_APPLY']);(_0x268d6a=_0x41c014((_0x14a2d3==null?void 0x0:_0x14a2d3['mutations'])||[],null))==null||_0x268d6a[_0x1db588(0x3bc)](_0x150340=>this['_commandService'][_0x1db588(0x2a8)](_0x150340['id'],_0x150340['params'])),(_0x111c5d=_0x41c014(_0x57ccf4||[],null))==null||_0x111c5d[_0x1db588(0x3bc)](_0x30db5f=>this['_commandService'][_0x1db588(0x2a8)](_0x30db5f['id'],_0x30db5f[_0x1db588(0x3ef)]));}},_0x2010a0[_0x2b1dc8(0x259)]=_0x4c63cf([_0x2f750f(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x2f750f(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x2f750f(0x5,_0x5821d4['Inject'](_0xf29ce7[_0x2b1dc8(0x449)])),_0x2f750f(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x27e)])),_0x2f750f(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7[_0x2b1dc8(0x253)])),_0x2f750f(0x8,_0x5821d4['ILogService']),_0x2f750f(0x9,_0x5821d4['ICommandService']),_0x2f750f(0xa,_0x32b063['IMessageService']),_0x2f750f(0xb,_0x5821d4[_0x2b1dc8(0x312)]),_0x2f750f(0xc,_0x5821d4['Optional'](_0x4442df))],_0x2010a0[_0x2b1dc8(0x259)]),_0x2010a0[_0x2b1dc8(0x194)]=class extends _0x2010a0['CollaborationEntity']{constructor(_0x386351,_0x2ab738,_0x2f30a2,_0x99f746,_0x3b1a15,_0x1868f4,_0x24b5e8,_0x7aedc,_0x297186,_0x3f29ee,_0x26f8ae,_0xaf8ec4,_0x546e49,_0x15ffaf,_0x36da34,_0x2aa7dc,_0x5eebae){const _0x1cf08e=_0x2b1dc8;super(_0x386351,_0x2f30a2,_0x2ab738,_0x99f746,_0x3b1a15,_0x1868f4,_0x24b5e8,_0x7aedc,_0x546e49,_0x15ffaf,_0x36da34,_0x2aa7dc,_0x5eebae),this[_0x1cf08e(0x3d4)]=_0x386351,this['type']=_0x2ab738,this[_0x1cf08e(0x262)]=_0x297186,this[_0x1cf08e(0x5b6)]=_0x3f29ee,this[_0x1cf08e(0x4ee)]=_0x26f8ae,this[_0x1cf08e(0x3a1)]=_0xaf8ec4;}['_createHandler'](){const _0x3175c1=_0x2b1dc8,_0x3a863f=super[_0x3175c1(0x425)]();return _0x3a863f[_0x3175c1(0x3e1)]=_0x5dbb87=>this[_0x3175c1(0x5b6)][_0x3175c1(0x51b)](_0x5dbb87),_0x3a863f['onTransformSelections']=_0x531c84=>this[_0x3175c1(0x4ee)]['transformSelections'](_0x531c84),_0x3a863f[_0x3175c1(0x553)]=_0x5936d0=>this['_docSyncEditingCollabCursorService'][_0x3175c1(0x392)](_0x5936d0),_0x3a863f[_0x3175c1(0x583)]=_0x32767e=>this[_0x3175c1(0x5b6)][_0x3175c1(0x381)](_0x32767e),_0x3a863f;}async[_0x2b1dc8(0x1dd)](){const _0x13ae49=_0x2b1dc8,_0x280c4e=await super[_0x13ae49(0x1dd)]();return this[_0x13ae49(0x470)](this[_0x13ae49(0x4f9)][_0x13ae49(0x44d)]((_0x39c486,_0x7302ba)=>{const _0x13dd3d=_0x13ae49;if(_0x39c486['type']!==_0x5821d4[_0x13dd3d(0x334)][_0x13dd3d(0x544)]||_0x7302ba!=null&&_0x7302ba[_0x13dd3d(0x247)]||_0x7302ba!=null&&_0x7302ba[_0x13dd3d(0x45a)])return;const _0x29dd76=_0x39c486[_0x13dd3d(0x3ef)];if((_0x29dd76==null?void 0x0:_0x29dd76[_0x13dd3d(0x3af)])!==this[_0x13dd3d(0x3d4)])return;let _0x12d4d6=_0x39c486;if(_0x12d4d6['id']===_0xc13db5['RichTextEditingMutation']['id']){const _0xd3b0e6=_0x12d4d6['params'];_0x12d4d6={'id':_0xc13db5[_0x13dd3d(0x483)]['id'],'type':_0x5821d4[_0x13dd3d(0x334)][_0x13dd3d(0x544)],'params':{'unitId':_0xd3b0e6[_0x13dd3d(0x3af)],'actions':_0xd3b0e6[_0x13dd3d(0x493)],'textRanges':null}};}const _0x54dbdd=this[_0x13dd3d(0x1a9)][_0x13dd3d(0x232)][_0x13dd3d(0x48e)](this[_0x13dd3d(0x1a9)]['interceptor'][_0x13dd3d(0x343)]()['COMPRESS_MUTATION_SEND'])([_0x12d4d6],null)||[_0x12d4d6];this[_0x13dd3d(0x19e)](_0x54dbdd[0x0]);})),_0x280c4e;}},_0x2010a0[_0x2b1dc8(0x194)]=_0x4c63cf([_0x2f750f(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x2f750f(0x4,_0x5821d4['Inject'](_0x2010a0[_0x2b1dc8(0x222)])),_0x2f750f(0x5,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7[_0x2b1dc8(0x449)])),_0x2f750f(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x27e)])),_0x2f750f(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7['RevisionService'])),_0x2f750f(0x8,_0x5821d4[_0x2b1dc8(0x503)](_0x1123f9[_0x2b1dc8(0x376)])),_0x2f750f(0x9,_0x5821d4[_0x2b1dc8(0x503)](_0x203e1e)),_0x2f750f(0xa,_0x5821d4[_0x2b1dc8(0x503)](_0x493ead)),_0x2f750f(0xb,_0x5821d4[_0x2b1dc8(0x503)](_0x4ce206)),_0x2f750f(0xc,_0x5821d4[_0x2b1dc8(0x468)]),_0x2f750f(0xd,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x2f750f(0xe,_0x32b063[_0x2b1dc8(0x28a)]),_0x2f750f(0xf,_0x5821d4[_0x2b1dc8(0x312)]),_0x2f750f(0x10,_0x5821d4[_0x2b1dc8(0x264)](_0x4442df))],_0x2010a0[_0x2b1dc8(0x194)]),_0x2010a0['SheetCollaborationEntity']=class extends _0x2010a0[_0x2b1dc8(0x259)]{constructor(_0x25f146,_0x13fdd2,_0x2e5890,_0x54e259,_0x20564b,_0x11c87d,_0x4e3ae8,_0x31470c,_0x125a19,_0x22239a,_0x5d8d23,_0xb12989,_0x22425c,_0x2d0c94){const _0x5adce7=_0x2b1dc8;super(_0x25f146,_0x2e5890,_0x13fdd2,_0x54e259,_0x20564b,_0x11c87d,_0x4e3ae8,_0x31470c,_0x22239a,_0x5d8d23,_0xb12989,_0x22425c,_0x2d0c94),this[_0x5adce7(0x3d4)]=_0x25f146,this[_0x5adce7(0x4f1)]=_0x13fdd2,this[_0x5adce7(0x3f8)]=_0x125a19;}[_0x2b1dc8(0x425)](){const _0x5ab740=_0x2b1dc8,_0x5c055e=super['_createHandler']();return _0x5c055e[_0x5ab740(0x359)]=_0x1c51fc=>this[_0x5ab740(0x3f8)][_0x5ab740(0x5a5)](_0x1c51fc),_0x5c055e;}async['_init'](){const _0x3cc8e=_0x2b1dc8,_0x5e56b4=await super[_0x3cc8e(0x1dd)]();return this[_0x3cc8e(0x470)](this[_0x3cc8e(0x4f9)][_0x3cc8e(0x44d)]((_0x1bc973,_0x32c9bb)=>{const _0x23c5f5=_0x3cc8e;if(_0x1bc973[_0x23c5f5(0x4f1)]!==_0x5821d4[_0x23c5f5(0x334)][_0x23c5f5(0x544)]||_0x32c9bb!=null&&_0x32c9bb[_0x23c5f5(0x247)]||_0x32c9bb!=null&&_0x32c9bb[_0x23c5f5(0x45a)])return;const _0x52070=_0x1bc973[_0x23c5f5(0x3ef)];if((_0x52070==null?void 0x0:_0x52070[_0x23c5f5(0x3af)])!==this[_0x23c5f5(0x3d4)])return;const _0x37cbf1=_0x1bc973,_0x2c10f0=this['_compressMutationService'][_0x23c5f5(0x232)][_0x23c5f5(0x48e)](this[_0x23c5f5(0x1a9)]['interceptor'][_0x23c5f5(0x343)]()[_0x23c5f5(0x51d)])([_0x37cbf1],null)||[_0x37cbf1];this[_0x23c5f5(0x19e)](_0x2c10f0[0x0]);})),_0x5e56b4;}},_0x2010a0[_0x2b1dc8(0x467)]=_0x4c63cf([_0x2f750f(0x3,_0x5821d4['Inject'](_0x5821d4[_0x2b1dc8(0x291)])),_0x2f750f(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x2f750f(0x5,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7[_0x2b1dc8(0x449)])),_0x2f750f(0x6,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x27e)])),_0x2f750f(0x7,_0x5821d4['Inject'](_0xf29ce7[_0x2b1dc8(0x253)])),_0x2f750f(0x8,_0x5821d4[_0x2b1dc8(0x503)](_0x22d44e)),_0x2f750f(0x9,_0x5821d4[_0x2b1dc8(0x468)]),_0x2f750f(0xa,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x2f750f(0xb,_0x32b063[_0x2b1dc8(0x28a)]),_0x2f750f(0xc,_0x5821d4[_0x2b1dc8(0x312)]),_0x2f750f(0xd,_0x5821d4['Optional'](_0x4442df))],_0x2010a0[_0x2b1dc8(0x467)]);var _0x29c097=Object[_0x2b1dc8(0x47b)],_0x2beca1=Object['getOwnPropertyDescriptor'],_0x1f670f=(_0x5f22b0,_0x3c54e4,_0x3881f5,_0x5d635e)=>{const _0x2727e4=_0x2b1dc8;for(var _0x233ab2=_0x5d635e>0x1?void 0x0:_0x5d635e?_0x2beca1(_0x3c54e4,_0x3881f5):_0x3c54e4,_0x432baf=_0x5f22b0[_0x2727e4(0x3b8)]-0x1,_0x3958b4;_0x432baf>=0x0;_0x432baf--)(_0x3958b4=_0x5f22b0[_0x432baf])&&(_0x233ab2=(_0x5d635e?_0x3958b4(_0x3c54e4,_0x3881f5,_0x233ab2):_0x3958b4(_0x233ab2))||_0x233ab2);return _0x5d635e&&_0x233ab2&&_0x29c097(_0x3c54e4,_0x3881f5,_0x233ab2),_0x233ab2;},_0x55a6b6=(_0x48fd07,_0x3d10af)=>(_0x699525,_0x12fd2b)=>_0x3d10af(_0x699525,_0x12fd2b,_0x48fd07);_0x2010a0[_0x2b1dc8(0x1f8)]=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x41c2c1,_0x32684d,_0x830468){const _0x39bb81=_0x2b1dc8;super(),_0x58b0b3(this,'_entities',new Map()),_0x58b0b3(this,_0x39bb81(0x59f),new _0x2fad13['Subject']()),(this[_0x39bb81(0x4cd)]=_0x41c2c1,this[_0x39bb81(0x1e3)]=_0x32684d,this['_univerInstanceService']=_0x830468,this[_0x39bb81(0x1dd)]());}['dispose'](){const _0x285174=_0x2b1dc8;super[_0x285174(0x3a8)](),this['_entities'][_0x285174(0x3bc)](_0x38837f=>_0x38837f[_0x285174(0x3a8)]()),this['_entities'][_0x285174(0x4ec)]();}[_0x2b1dc8(0x37a)](_0x23a5e6){const _0x1e23c9=_0x2b1dc8;var _0xa9fa22;return(_0xa9fa22=this[_0x1e23c9(0x3d6)]['get'](_0x23a5e6))!=null?_0xa9fa22:null;}[_0x2b1dc8(0x44b)](_0x5f18a7){const _0x369ede=_0x2b1dc8,_0x109497=this[_0x369ede(0x37a)](_0x5f18a7);return _0x109497?_0x2fad13['of'](_0x109497):this[_0x369ede(0x59f)][_0x369ede(0x378)](_0xbf2513['filter'](_0x3d0523=>_0x3d0523[_0x369ede(0x3d4)]===_0x5f18a7));}['_init'](){const _0x5d30be=_0x2b1dc8;this[_0x5d30be(0x267)][_0x5d30be(0x34c)](_0x5821d4['UniverInstanceType'][_0x5d30be(0x3f1)])['pipe'](_0x2fad13[_0x5d30be(0x1de)](this[_0x5d30be(0x557)]),_0xbf2513['delay'](0x10))[_0x5d30be(0x358)](async _0x2492b8=>{const _0x17a1bf=_0x5d30be,_0x31b6c2=_0x2492b8[_0x17a1bf(0x28e)](),_0x2cae3e=await this['_startCollaboration'](_0x31b6c2,_0x25ecad['UNIVER_SHEET']);this['_entities'][_0x17a1bf(0x305)](_0x31b6c2,_0x2cae3e);}),this[_0x5d30be(0x267)][_0x5d30be(0x34c)](_0x5821d4['UniverInstanceType'][_0x5d30be(0x202)])[_0x5d30be(0x378)](_0x2fad13[_0x5d30be(0x1de)](this[_0x5d30be(0x557)]),_0xbf2513[_0x5d30be(0x3dd)](0x10))['pipe'](_0xbf2513['filter'](_0x2e1d3d=>!_0x2e1d3d[_0x5d30be(0x28e)]()[_0x5d30be(0x2aa)]('__')))[_0x5d30be(0x358)](async _0x5b13f1=>{const _0x32411b=_0x5d30be,_0x482086=_0x5b13f1[_0x32411b(0x28e)](),_0x2d9ad3=await this[_0x32411b(0x30c)](_0x482086,_0x25ecad['UNIVER_DOC']);this['_entities'][_0x32411b(0x305)](_0x482086,_0x2d9ad3);}),_0x2fad13['merge'](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5821d4[_0x5d30be(0x566)][_0x5d30be(0x3f1)]),this['_univerInstanceService'][_0x5d30be(0x366)](_0x5821d4[_0x5d30be(0x566)][_0x5d30be(0x202)]))[_0x5d30be(0x378)](_0x2fad13[_0x5d30be(0x1de)](this['dispose$']))['subscribe'](_0x15a97b=>{const _0xf63c3f=_0x5d30be,_0x353b95=_0x15a97b[_0xf63c3f(0x28e)](),_0x50c9e7=this[_0xf63c3f(0x3d6)][_0xf63c3f(0x37f)](_0x353b95);_0x50c9e7&&(_0x50c9e7[_0xf63c3f(0x3a8)](),this['_entities'][_0xf63c3f(0x189)](_0x353b95));});}async[_0x2b1dc8(0x30c)](_0x16ad3a,_0x577314){const _0x1727dd=_0x2b1dc8,_0x4eee5d=await this[_0x1727dd(0x1e3)]['requireSession'](_0x16ad3a),_0x46ea74=this[_0x1727dd(0x4cd)][_0x1727dd(0x281)](this[_0x1727dd(0x4a9)](_0x577314),_0x16ad3a,_0x577314,_0x4eee5d);return await _0x46ea74[_0x1727dd(0x3bd)](),this['_entityInit$'][_0x1727dd(0x522)](_0x46ea74),_0x46ea74;}['_getCtorByUniverType'](_0x41beba){const _0x2d613f=_0x2b1dc8;switch(_0x41beba){case _0x25ecad['UNIVER_DOC']:return _0x2010a0[_0x2d613f(0x194)];case _0x25ecad[_0x2d613f(0x3f1)]:return _0x2010a0['SheetCollaborationEntity'];default:throw new Error(_0x2d613f(0x301)+_0x41beba);}}},_0x2010a0['CollaborationController']=_0x1f670f([_0x55a6b6(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x55a6b6(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x272)])),_0x55a6b6(0x2,_0x5821d4['IUniverInstanceService'])],_0x2010a0[_0x2b1dc8(0x1f8)]);const _0x279b8f=['purple300','jiqing500','verdancy600',_0x2b1dc8(0x255),_0x2b1dc8(0x240),'gold400'];class _0x38f88a extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(){const _0x16944b=_0x2b1dc8;super(...arguments),_0x58b0b3(this,_0x16944b(0x53b),new Map()),_0x58b0b3(this,_0x16944b(0x31c),0x0);}[_0x2b1dc8(0x1d7)](_0x117c71){const _0x6b7254=_0x2b1dc8;if(this['_assignedColors'][_0x6b7254(0x532)](_0x117c71))return this[_0x6b7254(0x53b)][_0x6b7254(0x37f)](_0x117c71);const _0xf26a5a=_0x279b8f[this[_0x6b7254(0x31c)]];return this[_0x6b7254(0x31c)]=(this['_colorIndex']+0x1)%_0x279b8f['length'],this['_assignedColors'][_0x6b7254(0x305)](_0x117c71,_0xf26a5a),_0xf26a5a;}}var _0x2cf266=Object['defineProperty'],_0xdec0d4=Object['getOwnPropertyDescriptor'],_0x19ae0f=(_0x241544,_0x1a64cd,_0x38a206,_0x218a8c)=>{for(var _0xe1bebb=_0x218a8c>0x1?void 0x0:_0x218a8c?_0xdec0d4(_0x1a64cd,_0x38a206):_0x1a64cd,_0x3c8172=_0x241544['length']-0x1,_0x153c49;_0x3c8172>=0x0;_0x3c8172--)(_0x153c49=_0x241544[_0x3c8172])&&(_0xe1bebb=(_0x218a8c?_0x153c49(_0x1a64cd,_0x38a206,_0xe1bebb):_0x153c49(_0xe1bebb))||_0xe1bebb);return _0x218a8c&&_0xe1bebb&&_0x2cf266(_0x1a64cd,_0x38a206,_0xe1bebb),_0xe1bebb;},_0x240408=(_0x467515,_0x316103)=>(_0x428244,_0x49ea44)=>_0x316103(_0x428244,_0x49ea44,_0x467515);const _0x3238d6=0x12c,_0x30e498=0x64,_0x4bddf8=()=>{let _0x34dc43=[],_0x3fdc97=!0x1;return _0x44664a=>{const _0x1c4a2a=_0x5448;_0x34dc43[_0x1c4a2a(0x3fb)](_0x44664a),_0x3fdc97||(_0x3fdc97=!0x0,setTimeout(()=>{_0x34dc43['forEach'](_0x4a2ebb=>_0x4a2ebb()),_0x34dc43=[],_0x3fdc97=!0x1;}));};};let _0x5b5ed2=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x40c63a,_0xefe44b,_0x5ae84,_0x28dfed,_0x515076,_0x8a0e2a,_0x34400c,_0xdfbc6d){const _0x2487ec=_0x2b1dc8;super(),_0x58b0b3(this,'_online',!0x1),_0x58b0b3(this,_0x2487ec(0x1dd),!0x1),_0x58b0b3(this,'_cursorInfo$',new _0x2fad13[(_0x2487ec(0x53f))](new Map())),_0x58b0b3(this,_0x2487ec(0x36d),this[_0x2487ec(0x350)][_0x2487ec(0x1eb)]()),_0x58b0b3(this,'_roomMembers$',new _0x2fad13[(_0x2487ec(0x53f))]([])),_0x58b0b3(this,_0x2487ec(0x4d5),this[_0x2487ec(0x24b)]['pipe'](_0x2fad13[_0x2487ec(0x2f7)](_0x3238d6))),_0x58b0b3(this,_0x2487ec(0x560),_0x5821d4[_0x2487ec(0x1fb)]((_0x197dbe,_0x4644d4)=>{const _0x5c7ebd=_0x2487ec,_0x53e25d={'eventID':_0xf29ce7[_0x5c7ebd(0x25c)][_0x5c7ebd(0x37e)],'data':{'unitID':this[_0x5c7ebd(0x3d4)],'memberID':this[_0x5c7ebd(0x433)][_0x5c7ebd(0x58d)](),'selection':_0x5c27f4[_0x5c7ebd(0x2a5)](_0x197dbe,_0x4644d4[_0x5c7ebd(0x2cd)])}};this[_0x5c7ebd(0x433)][_0x5c7ebd(0x1d5)](_0x53e25d,this[_0x5c7ebd(0x3d4)]);},_0x30e498)),(this[_0x2487ec(0x3d4)]=_0x40c63a,this[_0x2487ec(0x433)]=_0xefe44b,this[_0x2487ec(0x4cd)]=_0x5ae84,this['_colorAssignService']=_0x28dfed,this[_0x2487ec(0x293)]=_0x515076,this[_0x2487ec(0x267)]=_0x8a0e2a,this[_0x2487ec(0x4f9)]=_0x34400c,this[_0x2487ec(0x24a)]=_0xdfbc6d);}get[_0x2b1dc8(0x4b0)](){const _0x5bf783=_0x2b1dc8;return this[_0x5bf783(0x350)][_0x5bf783(0x244)]();}get['roomMembers'](){const _0x1894f1=_0x2b1dc8;return this[_0x1894f1(0x24b)][_0x1894f1(0x244)]();}['dispose'](){const _0x36778a=_0x2b1dc8;super[_0x36778a(0x3a8)](),this[_0x36778a(0x350)]['next'](new Map()),this[_0x36778a(0x350)][_0x36778a(0x424)](),this[_0x36778a(0x24b)][_0x36778a(0x522)]([]),this[_0x36778a(0x24b)][_0x36778a(0x424)]();}['init'](){const _0x152b47=_0x2b1dc8;this[_0x152b47(0x1dd)]||(this[_0x152b47(0x1dd)]=!0x0,this[_0x152b47(0x433)][_0x152b47(0x25e)]['pipe'](_0x2fad13[_0x152b47(0x1de)](this['dispose$']))['subscribe'](_0x1dd843=>{const _0x4f20bf=_0x152b47;_0x1dd843===_0x58e615[_0x4f20bf(0x3df)]?this[_0x4f20bf(0x419)]():this[_0x4f20bf(0x1ac)]();}),this[_0x152b47(0x433)][_0x152b47(0x51f)][_0x152b47(0x378)](_0x2fad13['takeUntil'](this[_0x152b47(0x557)]))['subscribe'](_0x355ec0=>{const _0x4cd51b=_0x152b47,_0xde5ed6=_0x355ec0['eventID'];_0xde5ed6===_0xf29ce7[_0x4cd51b(0x25c)]['UPDATE_CURSOR']&&this[_0x4cd51b(0x550)](_0x355ec0),_0xde5ed6===_0xf29ce7['CollaborationEvent'][_0x4cd51b(0x386)]&&this[_0x4cd51b(0x590)](_0x355ec0);}),this[_0x152b47(0x5af)](),this[_0x152b47(0x470)](this[_0x152b47(0x4f9)][_0x152b47(0x44d)](_0x50ca93=>{const _0x3fad8a=_0x152b47;if(this[_0x3fad8a(0x237)]&&_0x50ca93['id']===_0x872f07['SetSelectionsOperation']['id']&&_0x50ca93[_0x3fad8a(0x3ef)][_0x3fad8a(0x3af)]===this[_0x3fad8a(0x3d4)]){const _0x25c2b4=_0x50ca93['params'];this['_updateLocalCursor'](_0x25c2b4[_0x3fad8a(0x283)],_0x25c2b4[_0x3fad8a(0x3cd)][0x0]);}})));}[_0x2b1dc8(0x550)](_0x246746){const _0x2f86f9=_0x2b1dc8;var _0x53e3e2,_0x247039;const {memberID:_0x40100a,selection:_0x56b774}=_0x246746['data'],{sheetName:_0x4ae0cc,range:_0x45530c}=_0x5c27f4[_0x2f86f9(0x2ef)](_0x56b774),_0x3bbafb={'name':(_0x247039=(_0x53e3e2=this[_0x2f86f9(0x293)]['getMember'](this[_0x2f86f9(0x3d4)],_0x40100a))==null?void 0x0:_0x53e3e2['name'])!=null?_0x247039:_0x2f86f9(0x33d),'range':this[_0x2f86f9(0x1b5)](_0x4ae0cc,_0x45530c),'sheetID':_0x4ae0cc,'color':this[_0x2f86f9(0x4f0)][_0x2f86f9(0x1d7)](_0x40100a),'selection':_0x56b774},_0x3eb2ca=this[_0x2f86f9(0x4b0)];_0x3eb2ca['set'](_0x40100a,_0x3bbafb),this[_0x2f86f9(0x350)][_0x2f86f9(0x522)](_0x3eb2ca);}[_0x2b1dc8(0x590)](_0x2fd459){const _0x27e2e6=_0x2b1dc8,{memberID:_0x40ffd6}=_0x2fd459['data'],_0x2b3f1b=this[_0x27e2e6(0x4b0)];_0x2b3f1b['delete'](_0x40ffd6),this['_cursorInfo$'][_0x27e2e6(0x522)](_0x2b3f1b);}[_0x2b1dc8(0x1b5)](_0x522dd5,_0x2bf8c0){const _0x4893b0=_0x2b1dc8;var _0x4c779c,_0x26f4b6;const _0xe0c139=(_0x26f4b6=(_0x4c779c=this[_0x4893b0(0x267)][_0x4893b0(0x504)](this[_0x4893b0(0x3d4)]))==null?void 0x0:_0x4c779c['getSheetBySheetId'](_0x522dd5))==null?void 0x0:_0x26f4b6[_0x4893b0(0x2dc)]();return(_0xe0c139==null?void 0x0:_0xe0c139['find'](_0x3b7003=>_0x5821d4[_0x4893b0(0x3cc)][_0x4893b0(0x3f7)](_0x3b7003,_0x2bf8c0)))||_0x2bf8c0;}[_0x2b1dc8(0x5af)](){const _0x4c3579=_0x2b1dc8,_0x2f707e=new _0x5821d4['DisposableCollection'](),_0x5a6836=_0x4bddf8(),_0xce0dd7=()=>{const _0x2bea9a=_0x5448;_0x2f707e[_0x2bea9a(0x3a8)]();const _0x3ab056=(_0x346f4f,_0x153180,_0x4ba982,_0x580a37)=>{const _0x414cb3=_0x2bea9a;let _0x4f4375=[];switch(_0x346f4f['id']){case _0x872f07[_0x414cb3(0x2b2)][_0x414cb3(0x2e4)]:{_0x4f4375=_0x872f07[_0x414cb3(0x41d)](_0x346f4f,_0x580a37);break;}case _0x872f07[_0x414cb3(0x2b2)][_0x414cb3(0x469)]:{_0x4f4375=_0x872f07[_0x414cb3(0x524)](_0x346f4f,_0x580a37);break;}case _0x872f07[_0x414cb3(0x2b2)][_0x414cb3(0x482)]:{_0x4f4375=_0x872f07[_0x414cb3(0x2df)](_0x346f4f,_0x580a37);break;}case _0x872f07['EffectRefRangId'][_0x414cb3(0x573)]:{_0x4f4375=_0x872f07[_0x414cb3(0x2b0)](_0x346f4f,_0x580a37);break;}case _0x872f07['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x4f4375=_0x872f07['handleInsertRangeMoveRight'](_0x346f4f,_0x580a37);break;}case _0x872f07['EffectRefRangId'][_0x414cb3(0x1f7)]:{_0x4f4375=_0x872f07[_0x414cb3(0x496)](_0x346f4f,_0x580a37);break;}case _0x872f07[_0x414cb3(0x2b2)]['MoveRangeCommandId']:{_0x4f4375=_0x872f07['handleMoveRange'](_0x346f4f,_0x580a37);break;}case _0x872f07[_0x414cb3(0x2b2)][_0x414cb3(0x5b4)]:{_0x4f4375=_0x872f07[_0x414cb3(0x1be)](_0x346f4f,_0x580a37);break;}case _0x872f07[_0x414cb3(0x2b2)][_0x414cb3(0x32a)]:{_0x4f4375=_0x872f07[_0x414cb3(0x303)](_0x346f4f,_0x580a37);break;}}const _0x5c90d7=_0x872f07[_0x414cb3(0x2d2)](_0x4f4375,_0x580a37),_0x5e5dc1=this[_0x414cb3(0x4b0)][_0x414cb3(0x37f)](_0x153180);if(_0x5e5dc1&&_0x5c90d7){const _0x2dca0={..._0x5e5dc1,'range':_0x5c90d7};this[_0x414cb3(0x4b0)][_0x414cb3(0x305)](_0x153180,_0x2dca0),_0x5a6836(()=>{const _0x23e63b=_0x414cb3,_0x10487b=this['_refRangeService']['registerRefRange'](_0x5c90d7,_0x1dc33c=>(_0x10487b[_0x23e63b(0x3a8)](),_0x3ab056(_0x1dc33c,_0x153180,_0x4ba982,_0x5c90d7)));_0x2f707e[_0x23e63b(0x25b)](_0x10487b);});}return{'redos':[],'undos':[]};};this[_0x2bea9a(0x4b0)]['forEach']((_0x2d4aa8,_0x340d0f)=>{const _0x464163=_0x2bea9a,{range:_0x157a99,sheetID:_0x584aba}=_0x2d4aa8,_0x42a3ce=this[_0x464163(0x24a)][_0x464163(0x436)](_0x157a99,_0x5eaa3b=>(_0x42a3ce[_0x464163(0x3a8)](),_0x3ab056(_0x5eaa3b,_0x340d0f,_0x584aba,_0x157a99)));_0x2f707e['add'](_0x42a3ce);});};this[_0x4c3579(0x470)](_0x5821d4[_0x4c3579(0x1ed)](this[_0x4c3579(0x350)]['subscribe'](()=>{_0xce0dd7();})));}[_0x2b1dc8(0x419)](){const _0x2f5982=_0x2b1dc8;var _0x30451f,_0x5b3f30;if(this['_online']=!0x0,((_0x30451f=this[_0x2f5982(0x267)]['getFocusedUnit']())==null?void 0x0:_0x30451f['getUnitId']())!==this[_0x2f5982(0x3d4)])return;const _0x1e6da9=(_0x5b3f30=this[_0x2f5982(0x4cd)]['get'](_0x872f07[_0x2f5982(0x463)])[_0x2f5982(0x506)]())==null?void 0x0:_0x5b3f30[0x0],_0xc9478=this[_0x2f5982(0x267)][_0x2f5982(0x347)](_0x5821d4[_0x2f5982(0x566)][_0x2f5982(0x3f1)])[_0x2f5982(0x5a1)]();_0x1e6da9&&_0xc9478&&this[_0x2f5982(0x560)](_0xc9478[_0x2f5982(0x1c4)](),_0x1e6da9);}['_toggleOffline'](){const _0x40f776=_0x2b1dc8;this[_0x40f776(0x237)]=!0x1;}};_0x5b5ed2=_0x19ae0f([_0x240408(0x2,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x240408(0x3,_0x5821d4['Inject'](_0x38f88a)),_0x240408(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x35f626)),_0x240408(0x5,_0x5821d4['IUniverInstanceService']),_0x240408(0x6,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x240408(0x7,_0x5821d4[_0x2b1dc8(0x503)](_0x872f07[_0x2b1dc8(0x52d)]))],_0x5b5ed2);var _0x56710a=Object[_0x2b1dc8(0x47b)],_0x17d2ff=Object[_0x2b1dc8(0x299)],_0x356a35=(_0x20b692,_0x10abd2,_0x2773ca,_0x3c1e22)=>{const _0x11eb0a=_0x2b1dc8;for(var _0x23747e=_0x3c1e22>0x1?void 0x0:_0x3c1e22?_0x17d2ff(_0x10abd2,_0x2773ca):_0x10abd2,_0x5c9503=_0x20b692[_0x11eb0a(0x3b8)]-0x1,_0x52538c;_0x5c9503>=0x0;_0x5c9503--)(_0x52538c=_0x20b692[_0x5c9503])&&(_0x23747e=(_0x3c1e22?_0x52538c(_0x10abd2,_0x2773ca,_0x23747e):_0x52538c(_0x23747e))||_0x23747e);return _0x3c1e22&&_0x23747e&&_0x56710a(_0x10abd2,_0x2773ca,_0x23747e),_0x23747e;},_0x4bc69a=(_0x4f59db,_0x38a9ea)=>(_0x11fc2b,_0x23164e)=>_0x38a9ea(_0x11fc2b,_0x23164e,_0x4f59db);const _0x4bd513=0x12c,_0x151b86=0x64;let _0x357ca5=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x4f6d92,_0x4e5197,_0x4f6eda,_0x33ee14,_0x47f15c,_0x36cacd,_0x3b777f,_0x3f1769,_0x23979b){const _0x6153da=_0x2b1dc8;super(),_0x58b0b3(this,_0x6153da(0x237),!0x1),_0x58b0b3(this,_0x6153da(0x1dd),!0x1),_0x58b0b3(this,'_cursorInfo$',new _0x2fad13[(_0x6153da(0x53f))](new Map())),_0x58b0b3(this,_0x6153da(0x36d),this[_0x6153da(0x350)][_0x6153da(0x1eb)]()),_0x58b0b3(this,_0x6153da(0x24b),new _0x2fad13[(_0x6153da(0x53f))]([])),_0x58b0b3(this,'roomMembers$',this['_roomMembers$'][_0x6153da(0x378)](_0x2fad13[_0x6153da(0x2f7)](_0x4bd513))),_0x58b0b3(this,_0x6153da(0x560),_0x5821d4['debounce'](_0x5e50ee=>{const _0x3f2949=_0x6153da,_0x4a2619={'eventID':_0xf29ce7[_0x3f2949(0x25c)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x3f2949(0x433)][_0x3f2949(0x58d)](),'selection':_0x2338f2(_0x5e50ee)}};this[_0x3f2949(0x433)][_0x3f2949(0x1d5)](_0x4a2619,this[_0x3f2949(0x3d4)]);},_0x151b86)),(this[_0x6153da(0x3d4)]=_0x4f6d92,this['_session']=_0x4e5197,this['_injector']=_0x4f6eda,this['_colorAssignService']=_0x33ee14,this[_0x6153da(0x293)]=_0x47f15c,this[_0x6153da(0x5ae)]=_0x36cacd,this[_0x6153da(0x29e)]=_0x3b777f,this['_univerInstanceService']=_0x3f1769,this[_0x6153da(0x4f9)]=_0x23979b);}get['cursorInfo'](){const _0x28daa2=_0x2b1dc8;return this['_cursorInfo$'][_0x28daa2(0x244)]();}get[_0x2b1dc8(0x1db)](){const _0xd40881=_0x2b1dc8;return this[_0xd40881(0x24b)]['getValue']();}[_0x2b1dc8(0x3a8)](){const _0x38a631=_0x2b1dc8;super['dispose'](),this[_0x38a631(0x350)][_0x38a631(0x522)](new Map()),this[_0x38a631(0x350)][_0x38a631(0x424)](),this['_roomMembers$'][_0x38a631(0x522)]([]),this[_0x38a631(0x24b)][_0x38a631(0x424)]();}['init'](){const _0x3d127f=_0x2b1dc8;this[_0x3d127f(0x1dd)]||(this[_0x3d127f(0x1dd)]=!0x0,this[_0x3d127f(0x433)][_0x3d127f(0x25e)][_0x3d127f(0x378)](_0x2fad13[_0x3d127f(0x1de)](this['dispose$']))[_0x3d127f(0x358)](_0x375374=>{const _0x3a5418=_0x3d127f;_0x375374===_0x58e615['ONLINE']?this[_0x3a5418(0x419)]():this[_0x3a5418(0x1ac)]();}),this[_0x3d127f(0x433)][_0x3d127f(0x51f)]['pipe'](_0x2fad13[_0x3d127f(0x1de)](this[_0x3d127f(0x557)]))[_0x3d127f(0x358)](_0x1b2aa1=>{const _0x3c60f4=_0x3d127f,_0x4806e7=_0x1b2aa1[_0x3c60f4(0x510)];_0x4806e7===_0xf29ce7[_0x3c60f4(0x25c)][_0x3c60f4(0x37e)]&&this[_0x3c60f4(0x550)](_0x1b2aa1),_0x4806e7===_0xf29ce7[_0x3c60f4(0x25c)][_0x3c60f4(0x386)]&&this[_0x3c60f4(0x590)](_0x1b2aa1);}),this[_0x3d127f(0x470)](this[_0x3d127f(0x4f9)][_0x3d127f(0x44d)](_0x4a116b=>{const _0x4f2408=_0x3d127f,_0x2aa8a3=_0x4a116b['params'];_0x2aa8a3!=null&&this[_0x4f2408(0x237)]&&_0x4a116b['id']===_0xc13db5[_0x4f2408(0x4ac)]['id']&&_0x2aa8a3[_0x4f2408(0x3af)]===this['unitID']&&_0x2aa8a3[_0x4f2408(0x3f0)]===!0x1&&this[_0x4f2408(0x560)](_0x2aa8a3[_0x4f2408(0x3ff)]);})),this[_0x3d127f(0x5ae)][_0x3d127f(0x505)][_0x3d127f(0x378)](_0x2fad13[_0x3d127f(0x1de)](this[_0x3d127f(0x557)]))['subscribe'](_0xf99ea=>{const _0x26d6ce=_0x3d127f;if((_0xf99ea==null?void 0x0:_0xf99ea['unitID'])!==this[_0x26d6ce(0x3d4)])return;const _0x3d28ef={'eventID':_0xf29ce7[_0x26d6ce(0x25c)][_0x26d6ce(0x37e)],'data':_0xf99ea};this[_0x26d6ce(0x550)](_0x3d28ef);}),this['disposeWithMe'](this[_0x3d127f(0x4f9)][_0x3d127f(0x44d)](_0x965dc3=>{const _0x3d3cac=_0x3d127f;if(_0x965dc3[_0x3d3cac(0x3ef)]==null)return;const _0x2f4244=_0x965dc3['params'];if(_0x965dc3['id']!==_0xc13db5[_0x3d3cac(0x483)]['id']||_0x2f4244[_0x3d3cac(0x3af)]!==this[_0x3d3cac(0x3d4)])return;const _0x14dcda={'id':_0x3d3cac(0x55c),'params':_0x2f4244},_0x4a1640=this[_0x3d3cac(0x4b0)];for(const [_0x2fc3bf,_0x3c3701]of _0x4a1640){const _0x983d60={'id':_0x3d3cac(0x55c),'params':{'unitId':this[_0x3d3cac(0x3d4)],'actions':null,'textRanges':_0x3c3701[_0x3d3cac(0x3ff)]}},_0x513f9b=this['_transformService'][_0x3d3cac(0x431)](_0x14dcda,_0x983d60,!0x1);if(_0xf29ce7['isTransformMutationFailure'](_0x513f9b))throw _0x513f9b['error'];_0x4a1640[_0x3d3cac(0x305)](_0x2fc3bf,{..._0x3c3701,'ranges':_0x513f9b[_0x3d3cac(0x1a3)][_0x3d3cac(0x3ef)][_0x3d3cac(0x227)]});}queueMicrotask(()=>{const _0x24f039=_0x3d3cac;this['_cursorInfo$'][_0x24f039(0x522)](_0x4a1640);});})));}['_onCursorUpdate'](_0x520431){const _0x5ddae6=_0x2b1dc8;var _0x51a698,_0x93244f;const {memberID:_0x53da65,selection:_0x274b20}=_0x520431[_0x5ddae6(0x210)],_0x186765=_0x357da9(_0x274b20),_0x127b90=(_0x93244f=(_0x51a698=this['_memberService'][_0x5ddae6(0x1d9)](this[_0x5ddae6(0x3d4)],_0x53da65))==null?void 0x0:_0x51a698[_0x5ddae6(0x593)])!=null?_0x93244f:'Unknown\x20user',_0x399d8f={'color':this[_0x5ddae6(0x4f0)][_0x5ddae6(0x1d7)](_0x53da65),'name':_0x127b90,'ranges':_0x186765},_0x9dc901=this[_0x5ddae6(0x4b0)];_0x9dc901[_0x5ddae6(0x305)](_0x53da65,_0x399d8f),this['_cursorInfo$'][_0x5ddae6(0x522)](_0x9dc901);}[_0x2b1dc8(0x590)](_0x171e75){const _0xf3108c=_0x2b1dc8,{memberID:_0x45cd5f}=_0x171e75[_0xf3108c(0x210)],_0x2ce6a4=this[_0xf3108c(0x4b0)];_0x2ce6a4[_0xf3108c(0x189)](_0x45cd5f),this['_cursorInfo$']['next'](_0x2ce6a4);}[_0x2b1dc8(0x419)](){const _0x5ca56e=_0x2b1dc8;var _0x191dac;if(this[_0x5ca56e(0x237)]=!0x0,((_0x191dac=this[_0x5ca56e(0x267)][_0x5ca56e(0x279)]())==null?void 0x0:_0x191dac[_0x5ca56e(0x28e)]())!==this[_0x5ca56e(0x3d4)])return;const _0x148199=this['_injector'][_0x5ca56e(0x37f)](_0xc13db5['DocSelectionManagerService'])[_0x5ca56e(0x502)]();Array[_0x5ca56e(0x38c)](_0x148199)&&_0x148199[_0x5ca56e(0x3b8)]>0x0&&this[_0x5ca56e(0x560)](_0x148199);}[_0x2b1dc8(0x1ac)](){this['_online']=!0x1;}};_0x357ca5=_0x356a35([_0x4bc69a(0x2,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['Injector'])),_0x4bc69a(0x3,_0x5821d4['Inject'](_0x38f88a)),_0x4bc69a(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x35f626)),_0x4bc69a(0x5,_0x5821d4[_0x2b1dc8(0x503)](_0x4ce206)),_0x4bc69a(0x6,_0xf29ce7['ITransformService']),_0x4bc69a(0x7,_0x5821d4[_0x2b1dc8(0x486)]),_0x4bc69a(0x8,_0x5821d4[_0x2b1dc8(0x2bf)])],_0x357ca5);var _0x9c2806=Object['defineProperty'],_0x19e8e2=Object[_0x2b1dc8(0x299)],_0x75d19e=(_0x4b1c80,_0xe77f77,_0x55c180,_0x35aef4)=>{const _0x27f31e=_0x2b1dc8;for(var _0x2ebd57=_0x35aef4>0x1?void 0x0:_0x35aef4?_0x19e8e2(_0xe77f77,_0x55c180):_0xe77f77,_0x182959=_0x4b1c80[_0x27f31e(0x3b8)]-0x1,_0xfede6f;_0x182959>=0x0;_0x182959--)(_0xfede6f=_0x4b1c80[_0x182959])&&(_0x2ebd57=(_0x35aef4?_0xfede6f(_0xe77f77,_0x55c180,_0x2ebd57):_0xfede6f(_0x2ebd57))||_0x2ebd57);return _0x35aef4&&_0x2ebd57&&_0x9c2806(_0xe77f77,_0x55c180,_0x2ebd57),_0x2ebd57;},_0x54c743=(_0x1007e5,_0x584533)=>(_0x4e3372,_0x576b7f)=>_0x584533(_0x4e3372,_0x576b7f,_0x1007e5);let _0x3ae120=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x504a35,_0x5d1244,_0x12548e){const _0x361e55=_0x2b1dc8;super(),_0x58b0b3(this,_0x361e55(0x3d6),new Map()),_0x58b0b3(this,'_entityInit$',new _0x2fad13[(_0x361e55(0x2ee))]()),(this[_0x361e55(0x267)]=_0x504a35,this[_0x361e55(0x4cd)]=_0x5d1244,this['_collabSessionService']=_0x12548e,this[_0x361e55(0x1dd)]());}['dispose'](){const _0x228e6a=_0x2b1dc8;super[_0x228e6a(0x3a8)](),this[_0x228e6a(0x59f)][_0x228e6a(0x424)](),this[_0x228e6a(0x3d6)]['forEach'](_0x3b7d5b=>_0x3b7d5b['dispose']());}[_0x2b1dc8(0x35e)](_0x58c463){const _0x4994ce=_0x2b1dc8;return this[_0x4994ce(0x3d6)]['has'](_0x58c463)?this['_entities']['get'](_0x58c463)[_0x4994ce(0x36d)]:this[_0x4994ce(0x59f)][_0x4994ce(0x378)](_0x2fad13[_0x4994ce(0x565)](_0x44ec55=>_0x44ec55[_0x4994ce(0x3d4)]===_0x58c463),_0x2fad13[_0x4994ce(0x304)](_0xb986b5=>_0xb986b5[_0x4994ce(0x36d)]));}[_0x2b1dc8(0x1dd)](){const _0x59206a=_0x2b1dc8;this[_0x59206a(0x267)]['getTypeOfUnitAdded$'](_0x5821d4['UniverInstanceType'][_0x59206a(0x3f1)])[_0x59206a(0x378)](_0x2fad13[_0x59206a(0x1de)](this[_0x59206a(0x557)]))[_0x59206a(0x358)](async _0x465451=>{const _0x4b0a28=_0x59206a,_0x126532=_0x465451[_0x4b0a28(0x28e)](),_0x108a2c=await this['_startSheetCollabCursor'](_0x126532);this[_0x4b0a28(0x59f)][_0x4b0a28(0x522)](_0x108a2c),this[_0x4b0a28(0x3d6)][_0x4b0a28(0x305)](_0x126532,_0x108a2c);}),this[_0x59206a(0x267)]['getTypeOfUnitAdded$'](_0x5821d4[_0x59206a(0x566)][_0x59206a(0x202)])[_0x59206a(0x378)](_0x2fad13['takeUntil'](this[_0x59206a(0x557)]))['pipe'](_0x2fad13[_0x59206a(0x565)](_0xacb260=>!_0xacb260[_0x59206a(0x28e)]()[_0x59206a(0x2aa)]('__')))[_0x59206a(0x358)](async _0x316290=>{const _0x51fa6a=_0x59206a,_0x5646d9=_0x316290[_0x51fa6a(0x28e)](),_0x3c6e70=await this[_0x51fa6a(0x4d9)](_0x5646d9);this['_entityInit$'][_0x51fa6a(0x522)](_0x3c6e70),this[_0x51fa6a(0x3d6)][_0x51fa6a(0x305)](_0x5646d9,_0x3c6e70);}),_0x2fad13[_0x59206a(0x2b4)](this['_univerInstanceService'][_0x59206a(0x366)](_0x5821d4[_0x59206a(0x566)][_0x59206a(0x202)]),this['_univerInstanceService'][_0x59206a(0x366)](_0x5821d4[_0x59206a(0x566)][_0x59206a(0x3f1)]))[_0x59206a(0x378)](_0x2fad13[_0x59206a(0x1de)](this[_0x59206a(0x557)]))['subscribe'](_0x416da8=>{const _0x4b9a18=_0x59206a,_0xbeed29=_0x416da8[_0x4b9a18(0x28e)](),_0x3639fe=this[_0x4b9a18(0x3d6)][_0x4b9a18(0x37f)](_0xbeed29);_0x3639fe&&(_0x3639fe[_0x4b9a18(0x3a8)](),this['_entities'][_0x4b9a18(0x189)](_0xbeed29));});}async[_0x2b1dc8(0x20d)](_0x286190){const _0x1fc778=_0x2b1dc8,_0x4e3442=await this[_0x1fc778(0x1e3)][_0x1fc778(0x4bc)](_0x286190),_0x4861fd=this['_injector']['createInstance'](_0x5b5ed2,_0x286190,_0x4e3442);return _0x4861fd[_0x1fc778(0x3bd)](),_0x4861fd;}async[_0x2b1dc8(0x4d9)](_0x277204){const _0x2ee20a=_0x2b1dc8,_0x38c86c=await this[_0x2ee20a(0x1e3)][_0x2ee20a(0x4bc)](_0x277204),_0x13be34=this[_0x2ee20a(0x4cd)][_0x2ee20a(0x281)](_0x357ca5,_0x277204,_0x38c86c);return _0x13be34[_0x2ee20a(0x3bd)](),_0x13be34;}};_0x3ae120=_0x75d19e([_0x5821d4[_0x2b1dc8(0x588)](_0x5821d4[_0x2b1dc8(0x4e1)][_0x2b1dc8(0x20b)],_0x3ae120),_0x54c743(0x0,_0x5821d4[_0x2b1dc8(0x486)]),_0x54c743(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x54c743(0x2,_0x5821d4['Inject'](_0x2010a0[_0x2b1dc8(0x272)]))],_0x3ae120);const _0x134c72=0x14,_0x4c3566=0xc8,_0x547863=0x4,_0xb6b009=0x5;function _0x41811e(_0x324518,_0x19e1b8){const _0x38fd1=_0x2b1dc8;let {radius:_0x40bc94,width:_0x56e231,height:_0x1fc874}=_0x19e1b8;_0x40bc94=_0x40bc94!=null?_0x40bc94:0x0,_0x56e231=_0x56e231!=null?_0x56e231:0x1e,_0x1fc874=_0x1fc874!=null?_0x1fc874:0x1e;let _0x53b479=0x0,_0x3bc6e8=0x0,_0x447b12=0x0;_0x53b479=_0x3bc6e8=_0x447b12=Math[_0x38fd1(0x387)](_0x40bc94,_0x56e231/0x2,_0x1fc874/0x2),_0x324518[_0x38fd1(0x58c)](),_0x324518['moveTo'](_0x53b479,0x0),_0x324518[_0x38fd1(0x435)](_0x56e231-_0x3bc6e8,0x0),_0x324518['arc'](_0x56e231-_0x3bc6e8,_0x3bc6e8,_0x3bc6e8,Math['PI']*0x3/0x2,0x0,!0x1),_0x324518['lineTo'](_0x56e231,_0x1fc874-_0x447b12),_0x324518[_0x38fd1(0x215)](_0x56e231-_0x447b12,_0x1fc874-_0x447b12,_0x447b12,0x0,Math['PI']/0x2,!0x1),_0x324518[_0x38fd1(0x435)](0x0,_0x1fc874),_0x324518[_0x38fd1(0x435)](0x0,_0x53b479),_0x324518[_0x38fd1(0x215)](_0x53b479,_0x53b479,_0x53b479,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x324518['closePath'](),_0x19e1b8['fill']&&(_0x324518[_0x38fd1(0x42e)](),_0x324518[_0x38fd1(0x459)]=_0x19e1b8['fill'],_0x19e1b8[_0x38fd1(0x1cc)]==='evenodd'?_0x324518[_0x38fd1(0x3ee)](_0x38fd1(0x241)):_0x324518[_0x38fd1(0x3ee)](),_0x324518[_0x38fd1(0x399)]());}class _0x4ac80a extends _0x33b476[_0x2b1dc8(0x27c)]{constructor(_0x5a49b4,_0x4a0adb){const _0x255f94=_0x2b1dc8;super(_0x5a49b4,_0x4a0adb),_0x58b0b3(this,_0x255f94(0x1f9)),_0x58b0b3(this,_0x255f94(0x39e)),(this['color']=_0x4a0adb==null?void 0x0:_0x4a0adb[_0x255f94(0x1f9)],this[_0x255f94(0x39e)]=_0x4a0adb==null?void 0x0:_0x4a0adb['text']);}static['drawWith'](_0x4f865d,_0x1a5369){const _0x4fe773=_0x2b1dc8,{text:_0x36609d,color:_0x4cef3c}=_0x1a5369;_0x4f865d[_0x4fe773(0x42e)](),_0x4f865d['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x472525=_0x4f865d['measureText'](_0x36609d)[_0x4fe773(0x52b)],_0x44c718=Math[_0x4fe773(0x387)](_0x472525+0x2*_0x547863,_0x4c3566);_0x41811e(_0x4f865d,{'height':_0x134c72,'radius':0x4,'width':_0x44c718,'fill':_0x4cef3c,'evented':!0x1}),_0x4f865d['fillStyle']='#FFF';const _0x5544fc=_0x547863,_0x6a390d=_0x134c72-_0xb6b009,_0x129903=_0x4c3566-0x2*_0x547863;if(_0x472525>_0x129903){let _0x1adc9b='',_0x3f8b44=0x0;for(const _0x5c12fd of _0x36609d){const _0x4f8da7=_0x4f865d['measureText'](_0x5c12fd)[_0x4fe773(0x52b)];if(_0x3f8b44+_0x4f8da7<=_0x129903-_0x4f865d[_0x4fe773(0x18e)](_0x4fe773(0x409))['width'])_0x1adc9b+=_0x5c12fd,_0x3f8b44+=_0x4f8da7;else{_0x1adc9b+=_0x4fe773(0x409);break;}}_0x4f865d['fillText'](_0x1adc9b,_0x5544fc,_0x6a390d);}else _0x4f865d[_0x4fe773(0x53a)](_0x36609d,_0x5544fc,_0x6a390d);_0x4f865d[_0x4fe773(0x399)]();}['_draw'](_0x44d6a4){_0x4ac80a['drawWith'](_0x44d6a4,this);}}const _0xcd42bb=_0x2b1dc8(0x223),_0x46a752=_0x2b1dc8(0x4e2),_0x469d0c=_0x2b1dc8(0x43d),_0x3e86c1=0x6,_0x1289a4=1.5,_0x44f44f=0x4,_0xaac269=1.5,_0xbc0d8d=_0x2b1dc8(0x2cc);class _0x1b1542{constructor(_0x1ee8e6,_0x1d1345,_0x27d20b,_0x4610aa){const _0x5938af=_0x2b1dc8;_0x58b0b3(this,_0x5938af(0x2e6),[]),_0x58b0b3(this,'_anchor',null),_0x58b0b3(this,_0x5938af(0x21a),null),_0x58b0b3(this,_0x5938af(0x354),null),_0x58b0b3(this,'_hideTimer',null),_0x58b0b3(this,_0x5938af(0x3b5),null),(this[_0x5938af(0x55f)]=_0x1ee8e6,this[_0x5938af(0x297)]=_0x1d1345,this[_0x5938af(0x21e)]=_0x27d20b,this[_0x5938af(0x513)]=_0x4610aa,this[_0x5938af(0x3d0)]());}set[_0x2b1dc8(0x318)](_0x4015dd){const _0x118d80=_0x2b1dc8;_0x4015dd?(this[_0x118d80(0x354)]&&this[_0x118d80(0x354)]['hide'](),this[_0x118d80(0x21a)]&&this[_0x118d80(0x21a)][_0x118d80(0x221)]()):(this[_0x118d80(0x354)]&&this[_0x118d80(0x354)][_0x118d80(0x221)](),this[_0x118d80(0x21a)]&&this[_0x118d80(0x21a)][_0x118d80(0x5b7)]());}[_0x2b1dc8(0x3a8)](){const _0xe4fcd1=_0x2b1dc8;for(const _0x2354bc of this['_shapes'])_0x2354bc[_0xe4fcd1(0x3a8)]();this['_textBubble']&&this[_0xe4fcd1(0x21a)]['dispose'](),this[_0xe4fcd1(0x354)]&&this['_anchorDot'][_0xe4fcd1(0x3a8)](),this[_0xe4fcd1(0x548)]&&this[_0xe4fcd1(0x548)][_0xe4fcd1(0x3a8)](),this['_eventUnsubscribe']&&this[_0xe4fcd1(0x3b5)]();}[_0x2b1dc8(0x3d0)](){const _0x18a67e=_0x2b1dc8;var _0x1dc4ad;const {_docSkeleton:_0x222df5,_document:_0x2c03b4}=this,{color:_0x18484c,name:_0x4fb0b3,ranges:_0x426e57}=this[_0x18a67e(0x55f)],_0x925983=_0x2c03b4[_0x18a67e(0x31e)](),{docsLeft:_0x196e4c,docsTop:_0x19eaa8}=_0x925983,_0x410b53=new _0x1123f9['NodePositionConvertToCursor'](_0x925983,_0x222df5);for(const {startOffset:_0x2ea2dd,endOffset:_0x2ceaaf,collapsed:_0x39a014,isActive:_0x24106f}of _0x426e57){const _0x125ed8=_0x222df5[_0x18a67e(0x34d)](_0x2ea2dd),_0x235854=_0x222df5[_0x18a67e(0x34d)](_0x2ceaaf);if(_0x24106f){const {contentBoxPointGroup:_0x55ffa0}=_0x410b53['getRangePointData'](_0x235854,_0x235854);if(_0x55ffa0['length']===0x0)continue;this[_0x18a67e(0x51a)](_0x18484c,_0x55ffa0,_0x196e4c,_0x19eaa8,_0x4fb0b3),this[_0x18a67e(0x3b5)]=this[_0x18a67e(0x43b)]();}if(!_0x39a014&&_0x125ed8&&_0x235854){if(_0x1123f9[_0x18a67e(0x527)](_0x125ed8,_0x235854)){const _0x598ef5=new _0x1123f9[(_0x18a67e(0x3c9))](_0x925983,_0x222df5),{pointGroup:_0x4bf9e5}=(_0x1dc4ad=_0x598ef5[_0x18a67e(0x1cf)](_0x125ed8,_0x235854))!=null?_0x1dc4ad:{};if(_0x4bf9e5==null||_0x4bf9e5[_0x18a67e(0x3b8)]===0x0)continue;this[_0x18a67e(0x204)](_0x18484c,_0x4bf9e5,_0x196e4c,_0x19eaa8);}else{const {contentBoxPointGroup:_0x603e9d}=_0x410b53[_0x18a67e(0x1cf)](_0x125ed8,_0x235854);if(_0x603e9d['length']===0x0)continue;this[_0x18a67e(0x55a)](_0x18484c,_0x603e9d,_0x196e4c,_0x19eaa8);}}}}[_0x2b1dc8(0x51a)](_0x2e6869,_0x162c10,_0x538dbf,_0x526ebb,_0xc16b58){const _0x2c20ee=_0x2b1dc8,_0x4b6c69=this['_getAnchorBounding'](_0x162c10),{left:_0x2a666c,top:_0x416287,height:_0x125d16}=_0x4b6c69,_0x10e33c=this[_0x2c20ee(0x4c0)](),_0x21435=_0xaac269/_0x10e33c,_0x58a97d=new _0x33b476['Rect'](_0xcd42bb+_0x5821d4[_0x2c20ee(0x325)][_0x2c20ee(0x582)](_0x3e86c1),{'left':_0x2a666c+_0x538dbf-_0x21435,'top':_0x416287+_0x526ebb,'height':_0x125d16,'width':_0x1289a4,'fill':_0x2e6869||_0x33b476[_0x2c20ee(0x23f)](_0x5821d4[_0x2c20ee(0x3fa)][_0x2c20ee(0x331)],0x0),'strokeWidth':_0x21435,'stroke':_0xbc0d8d,'evented':!0x0});this['_anchor']=_0x58a97d,this[_0x2c20ee(0x297)][_0x2c20ee(0x2c0)](_0x58a97d,_0x1123f9[_0x2c20ee(0x5aa)]);const _0x3710e5=new _0x33b476[(_0x2c20ee(0x5b3))](_0xcd42bb+_0x5821d4[_0x2c20ee(0x325)][_0x2c20ee(0x582)](_0x3e86c1),{'left':_0x2a666c+_0x538dbf-_0x21435,'top':_0x416287+_0x526ebb-_0x44f44f/0x2,'height':_0x44f44f,'width':_0x44f44f,'fill':_0x2e6869||_0x33b476[_0x2c20ee(0x23f)](_0x5821d4['COLORS'][_0x2c20ee(0x331)],0x0),'strokeWidth':0x0,'stroke':_0x2e6869||_0x33b476['getColor'](_0x5821d4[_0x2c20ee(0x3fa)][_0x2c20ee(0x331)],0x0),'evented':!0x1});this[_0x2c20ee(0x354)]=_0x3710e5,this['_scene']['addObject'](_0x3710e5,_0x1123f9['TEXT_RANGE_LAYER_INDEX']);const _0x3f9de8=new _0x4ac80a(_0xcd42bb+_0x5821d4[_0x2c20ee(0x325)][_0x2c20ee(0x582)](_0x3e86c1),{'left':_0x2a666c+_0x538dbf-_0x21435,'top':_0x416287+_0x526ebb-_0x134c72,'text':_0xc16b58,'color':_0x2e6869});this['_textBubble']=_0x3f9de8,this[_0x2c20ee(0x297)]['addObject'](_0x3f9de8,_0x1123f9[_0x2c20ee(0x5aa)]),this['_hover']=!0x1;}['_handleHover'](){const _0xccdfdf=_0x2b1dc8,_0x39a4f4=this[_0xccdfdf(0x548)][_0xccdfdf(0x26a)][_0xccdfdf(0x30e)](()=>{this['_hover']=!0x0;}),_0x49374b=this[_0xccdfdf(0x548)][_0xccdfdf(0x420)][_0xccdfdf(0x30e)](()=>{const _0x34223b=_0xccdfdf;this[_0x34223b(0x3ea)]&&clearTimeout(this[_0x34223b(0x3ea)]),this[_0x34223b(0x3ea)]=setTimeout(()=>{const _0x4a8844=_0x34223b;this[_0x4a8844(0x318)]=!0x1;},0x7d0);});return()=>{const _0x510011=_0xccdfdf;_0x39a4f4[_0x510011(0x465)](),_0x49374b[_0x510011(0x465)]();};}['_drawTextRange'](_0x52717a,_0x6d4f18,_0x4add6c,_0x35593e){const _0x322be6=_0x2b1dc8,_0x1aa8ca=new _0x5821d4['ColorKit'](_0x52717a)[_0x322be6(0x30b)](0.2)[_0x322be6(0x46c)](),_0x1aaa48=new _0x33b476[(_0x322be6(0x302))](_0x46a752+_0x5821d4['Tools'][_0x322be6(0x582)](_0x3e86c1),{'pointsGroup':_0x6d4f18,'fill':_0x1aa8ca||_0x33b476[_0x322be6(0x23f)](_0x5821d4[_0x322be6(0x3fa)][_0x322be6(0x331)],0.2),'left':_0x4add6c,'top':_0x35593e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x322be6(0x2e6)][_0x322be6(0x3fb)](_0x1aaa48),this[_0x322be6(0x297)]['addObject'](_0x1aaa48,_0x1123f9[_0x322be6(0x5aa)]);}['_drawRectRange'](_0x51db07,_0x31d43b,_0x137fb1,_0x1bc96){const _0xfe517e=_0x2b1dc8,_0x7b1b3b=new _0x5821d4[(_0xfe517e(0x2d4))](_0x51db07)[_0xfe517e(0x30b)](0.2)[_0xfe517e(0x46c)](),_0xe873ef=new _0x33b476[(_0xfe517e(0x302))](_0x469d0c+_0x5821d4[_0xfe517e(0x325)][_0xfe517e(0x582)](_0x3e86c1),{'pointsGroup':_0x31d43b,'fill':_0x7b1b3b||_0x33b476[_0xfe517e(0x23f)](_0x5821d4[_0xfe517e(0x3fa)]['black'],0.2),'left':_0x137fb1,'top':_0x1bc96,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xfe517e(0x2e6)]['push'](_0xe873ef),this[_0xfe517e(0x297)][_0xfe517e(0x2c0)](_0xe873ef,_0x1123f9['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x1c430d){const _0x2ecb9a=_0x1c430d[0x0],_0x519f55=_0x2ecb9a[0x0],_0x16efa5=_0x2ecb9a[0x2],{x:_0x1cae8c,y:_0x295a68}=_0x519f55,{x:_0x2751cd,y:_0x712132}=_0x16efa5;return{'left':_0x1cae8c,'top':_0x295a68,'width':_0x2751cd-_0x1cae8c,'height':_0x712132-_0x295a68};}[_0x2b1dc8(0x4c0)](){const _0x579447=_0x2b1dc8,{scaleX:_0x102e7f,scaleY:_0x539b4f}=this['_scene'][_0x579447(0x243)]();return Math[_0x579447(0x35f)](_0x102e7f,_0x539b4f);}}var _0x805158=Object['defineProperty'],_0x2e8c1d=Object[_0x2b1dc8(0x299)],_0x13cb59=(_0x309afa,_0xbf0a03,_0x2f93f7,_0x48d5d8)=>{const _0x2610c1=_0x2b1dc8;for(var _0x3434aa=_0x48d5d8>0x1?void 0x0:_0x48d5d8?_0x2e8c1d(_0xbf0a03,_0x2f93f7):_0xbf0a03,_0x579f79=_0x309afa[_0x2610c1(0x3b8)]-0x1,_0x1ef227;_0x579f79>=0x0;_0x579f79--)(_0x1ef227=_0x309afa[_0x579f79])&&(_0x3434aa=(_0x48d5d8?_0x1ef227(_0xbf0a03,_0x2f93f7,_0x3434aa):_0x1ef227(_0x3434aa))||_0x3434aa);return _0x48d5d8&&_0x3434aa&&_0x805158(_0xbf0a03,_0x2f93f7,_0x3434aa),_0x3434aa;},_0x537ae=(_0x408249,_0x3e0eeb)=>(_0x49bbc3,_0x4d52a2)=>_0x3e0eeb(_0x49bbc3,_0x4d52a2,_0x408249);let _0x273e10=class extends _0x5821d4['RxDisposable']{constructor(_0x495c2d,_0x1fe902,_0x21b99e,_0x21ebee,_0x2686cd){const _0x5c8d1e=_0x2b1dc8;super(),_0x58b0b3(this,'_cursorShapes',[]),_0x58b0b3(this,_0x5c8d1e(0x361),[]),(this['_context']=_0x495c2d,this[_0x5c8d1e(0x3fd)]=_0x1fe902,this[_0x5c8d1e(0x458)]=_0x21b99e,this[_0x5c8d1e(0x4f9)]=_0x21ebee,this['_themeService']=_0x2686cd,this[_0x5c8d1e(0x1dd)]());}[_0x2b1dc8(0x1dd)](){const _0x243044=_0x2b1dc8,_0x328283=this[_0x243044(0x3ce)]['unitId'],_0x2feea1=this['_docSkeletonManagerService'];this[_0x243044(0x470)](_0x2fad13[_0x243044(0x2e7)]([this[_0x243044(0x458)]['getCollabCursors$'](_0x328283),this[_0x243044(0x490)][_0x243044(0x4a7)]])[_0x243044(0x378)](_0xbf2513[_0x243044(0x370)](([_0x46b1a9,_0x4d4125])=>({'skeleton':_0x2feea1[_0x243044(0x4ed)](),'cursors':[..._0x46b1a9[_0x243044(0x211)]()][_0x243044(0x384)](_0x3f715b=>({..._0x3f715b,'color':_0x4d4125[_0x3f715b[_0x243044(0x1f9)]]}))})))[_0x243044(0x358)](_0x417659=>{const _0xfc9c2f=_0x243044;if(this[_0xfc9c2f(0x4c9)](),_0x417659){const {skeleton:_0x2dbd7b,cursors:_0x21b115}=_0x417659;this[_0xfc9c2f(0x402)](_0x2dbd7b,_0x21b115);}})),this[_0x243044(0x2ec)](),this['_initCommandExecutedListener']();}[_0x2b1dc8(0x402)](_0x4fe15b,_0x42ec11){const _0x292eac=_0x2b1dc8,{scene:_0xcc20c1,mainComponent:_0x3972fe}=this[_0x292eac(0x3ce)],_0x4d984d=_0x42ec11[_0x292eac(0x370)](_0x5c7cd8=>new _0x1b1542(_0x5c7cd8,_0xcc20c1,_0x4fe15b,_0x3972fe));this[_0x292eac(0x516)]=_0x4d984d,this[_0x292eac(0x361)]=_0x42ec11;}[_0x2b1dc8(0x275)](){const _0x49b22c=_0x2b1dc8;this[_0x49b22c(0x4c9)]();const {scene:_0xc66360,mainComponent:_0xa8f5b5}=this[_0x49b22c(0x3ce)],_0x55e9cf=this[_0x49b22c(0x3fd)][_0x49b22c(0x4ed)](),_0x54f88d=this[_0x49b22c(0x361)]['map'](_0x4920c9=>new _0x1b1542(_0x4920c9,_0xc66360,_0x55e9cf,_0xa8f5b5));this['_cursorShapes']=_0x54f88d;}[_0x2b1dc8(0x4c9)](){const _0x474693=_0x2b1dc8;this[_0x474693(0x516)][_0x474693(0x3bc)](_0x5993bd=>_0x5993bd[_0x474693(0x3a8)]()),this[_0x474693(0x516)]=[];}[_0x2b1dc8(0x1a7)](){const _0x4d9b00=_0x2b1dc8,_0x5aeb0d=[_0x1123f9[_0x4d9b00(0x4c6)]['id']];this[_0x4d9b00(0x470)](this[_0x4d9b00(0x4f9)][_0x4d9b00(0x44d)](_0xdae325=>{const _0x6d4c3a=_0x4d9b00;_0x5aeb0d['includes'](_0xdae325['id'])&&_0xdae325[_0x6d4c3a(0x3ef)][_0x6d4c3a(0x3af)]===this[_0x6d4c3a(0x3ce)][_0x6d4c3a(0x3af)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x5a335e=_0x2b1dc8;this[_0x5a335e(0x470)](_0x5821d4['fromEventSubject'](this[_0x5a335e(0x3ce)][_0x5a335e(0x261)]['onTransformChange$'])[_0x5a335e(0x378)](_0xbf2513[_0x5a335e(0x565)](_0x4ef671=>_0x4ef671[_0x5a335e(0x4f1)]===_0x33b476[_0x5a335e(0x339)][_0x5a335e(0x327)]),_0xbf2513[_0x5a335e(0x4e4)](0x10))[_0x5a335e(0x358)](()=>{const _0x5c7042=_0x5a335e;this[_0x5c7042(0x275)]();}));}};_0x273e10=_0x13cb59([_0x5821d4['OnLifecycle'](_0x5821d4['LifecycleStages'][_0x2b1dc8(0x28b)],_0x273e10),_0x537ae(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0xc13db5[_0x2b1dc8(0x277)])),_0x537ae(0x2,_0x5821d4['Inject'](_0x3ae120)),_0x537ae(0x3,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x537ae(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x226)]))],_0x273e10);const _0x64c63b=0x1,_0x49efb0=1.5;class _0x22df64 extends _0x33b476[_0x2b1dc8(0x27c)]{constructor(_0x3b8769,_0x2b5d32){const _0x316a50=_0x2b1dc8;super(_0x3b8769,_0x2b5d32),_0x58b0b3(this,'_color'),_0x58b0b3(this,_0x316a50(0x344),!0x1),_0x58b0b3(this,_0x316a50(0x598)),_0x58b0b3(this,'_name',''),_0x58b0b3(this,_0x316a50(0x321),_0x316a50(0x398)),_0x58b0b3(this,_0x316a50(0x497)),(_0x2b5d32&&this[_0x316a50(0x360)](_0x2b5d32),this[_0x316a50(0x26a)][_0x316a50(0x30e)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x316a50(0x420)][_0x316a50(0x30e)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2b1dc8(0x360)](_0x2bdfb4){const _0x12ca4d=_0x2b1dc8;var _0x9c9c76,_0x50edc9,_0x9ba5d3,_0x5e52bc,_0x285646,_0x54813f;this[_0x12ca4d(0x4f3)]=(_0x9c9c76=_0x2bdfb4[_0x12ca4d(0x1f9)])!=null?_0x9c9c76:this[_0x12ca4d(0x4f3)],this['_hovered']=(_0x50edc9=_0x2bdfb4[_0x12ca4d(0x43f)])!=null?_0x50edc9:this['_hovered'],this[_0x12ca4d(0x598)]=(_0x9ba5d3=_0x2bdfb4['range'])!=null?_0x9ba5d3:this[_0x12ca4d(0x598)],this[_0x12ca4d(0x1df)]=(_0x5e52bc=_0x2bdfb4[_0x12ca4d(0x593)])!=null?_0x5e52bc:this[_0x12ca4d(0x1df)],this['_labelPosition']=(_0x285646=_0x2bdfb4[_0x12ca4d(0x49f)])!=null?_0x285646:this[_0x12ca4d(0x321)],this[_0x12ca4d(0x497)]=(_0x54813f=_0x2bdfb4['backgroundColor'])!=null?_0x54813f:this[_0x12ca4d(0x497)],this[_0x12ca4d(0x4f2)]({'width':_0x2bdfb4[_0x12ca4d(0x52b)],'height':_0x2bdfb4[_0x12ca4d(0x21f)]});}[_0x2b1dc8(0x2ca)](_0x41c1a2){const _0x4153ae=_0x2b1dc8,{row:_0x5a12ac,column:_0x3715d3}=_0x41c1a2;if(_0x5a12ac>=this[_0x4153ae(0x598)][_0x4153ae(0x27f)]&&_0x5a12ac<=this['_range'][_0x4153ae(0x563)]&&_0x3715d3>=this['_range'][_0x4153ae(0x3cb)]&&_0x3715d3<=this[_0x4153ae(0x598)][_0x4153ae(0x310)]){this[_0x4153ae(0x360)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x2b1dc8(0x56b)](_0x2e3fcd){return!0x1;}[_0x2b1dc8(0x328)](_0x453e5e){const _0x3eed85=_0x2b1dc8;_0x33b476[_0x3eed85(0x5b3)][_0x3eed85(0x1f2)](_0x453e5e,{'width':this[_0x3eed85(0x52b)],'height':this['height'],'strokeWidth':_0x49efb0,'stroke':this[_0x3eed85(0x4f3)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x3eed85(0x344)]&&(_0x453e5e[_0x3eed85(0x42e)](),_0x453e5e['transform'](0x1,0x0,0x0,0x1,this[_0x3eed85(0x52b)],this[_0x3eed85(0x321)]==='bottom'?0x0:-_0x134c72),_0x4ac80a[_0x3eed85(0x1f2)](_0x453e5e,{'text':this[_0x3eed85(0x1df)],'color':this[_0x3eed85(0x4f3)]}),_0x453e5e[_0x3eed85(0x399)]());}}var _0x39b69a=Object[_0x2b1dc8(0x47b)],_0x4d0ee8=Object[_0x2b1dc8(0x299)],_0x321021=(_0x1012de,_0x44453b,_0x596936,_0x4ff457)=>{for(var _0x32ecba=_0x4ff457>0x1?void 0x0:_0x4ff457?_0x4d0ee8(_0x44453b,_0x596936):_0x44453b,_0x28c642=_0x1012de['length']-0x1,_0x44913b;_0x28c642>=0x0;_0x28c642--)(_0x44913b=_0x1012de[_0x28c642])&&(_0x32ecba=(_0x4ff457?_0x44913b(_0x44453b,_0x596936,_0x32ecba):_0x44913b(_0x32ecba))||_0x32ecba);return _0x4ff457&&_0x32ecba&&_0x39b69a(_0x44453b,_0x596936,_0x32ecba),_0x32ecba;},_0x5e30af=(_0x11c7c9,_0x51a40a)=>(_0x52b080,_0x487c51)=>_0x51a40a(_0x52b080,_0x487c51,_0x11c7c9);const _0x140af5=0x1389;let _0x1264b5=class extends _0x5821d4['RxDisposable']{constructor(_0x23c6b7,_0x2a8049,_0x42fecd,_0x4cb0b0){const _0x1f9b80=_0x2b1dc8;super(),_0x58b0b3(this,_0x1f9b80(0x361),new Set()),_0x58b0b3(this,_0x1f9b80(0x44e),null),(this[_0x1f9b80(0x3ce)]=_0x23c6b7,this[_0x1f9b80(0x1fe)]=_0x2a8049,this['_collabCursorController']=_0x42fecd,this[_0x1f9b80(0x490)]=_0x4cb0b0,this[_0x1f9b80(0x1dd)]());}[_0x2b1dc8(0x1dd)](){const _0x48a1ca=_0x2b1dc8;this[_0x48a1ca(0x1fe)][_0x48a1ca(0x3a5)]['pipe'](_0xbf2513[_0x48a1ca(0x1de)](this['dispose$']),_0xbf2513[_0x48a1ca(0x304)](_0x452bb6=>{const _0x3e2f67=_0x48a1ca;if(_0x452bb6){const _0x32cbb2=_0x452bb6['sheetId'];return _0x2fad13['combineLatest'](this['_collabCursorController'][_0x3e2f67(0x35e)](this[_0x3e2f67(0x3ce)][_0x3e2f67(0x3af)]),this[_0x3e2f67(0x490)][_0x3e2f67(0x4a7)])[_0x3e2f67(0x378)](_0xbf2513[_0x3e2f67(0x370)](([_0x3a2c01,_0x474628])=>{const _0x543277=_0x3e2f67,_0x3eb47b=new Map();return _0x3a2c01[_0x543277(0x3bc)]((_0x18e954,_0x3d87c9)=>{const _0x39190f=_0x543277;if(_0x18e954['sheetID']===_0x32cbb2){const _0x5c9e82={..._0x18e954};_0x5c9e82[_0x39190f(0x1f9)]=_0x474628[_0x18e954[_0x39190f(0x1f9)]],_0x3eb47b[_0x39190f(0x305)](_0x3d87c9,_0x5c9e82);}}),{'skeleton':_0x452bb6,'cursors':_0x3eb47b};}));}return _0x2fad13['of']({'skeleton':null,'cursors':new Map()});}))[_0x48a1ca(0x358)](({skeleton:_0x43ba46,cursors:_0x2c12a4})=>{const _0x4ba117=_0x48a1ca;this['_removeCollabCursors'](),_0x43ba46&&this[_0x4ba117(0x402)](_0x43ba46,_0x2c12a4);}),this[_0x48a1ca(0x1fe)]['currentSkeleton$']['subscribe'](_0x58ee42=>{const _0x471eaf=_0x48a1ca;if(_0x58ee42==null)return;const {skeleton:_0x5a18a7}=_0x58ee42,{scene:_0x3fd56c}=this['_context'];_0x3fd56c[_0x471eaf(0x3b6)][_0x471eaf(0x30e)](_0x5821d4[_0x471eaf(0x1fb)](_0x22fa89=>{const _0x593cfd=_0x471eaf;var _0x6d9c66,_0x361f8d;const {offsetX:_0x3703e4,offsetY:_0x5e8b61}=_0x22fa89,{x:_0x3eb848,y:_0x4ffa6c}=_0x3fd56c[_0x593cfd(0x1f1)](_0x33b476[_0x593cfd(0x42c)][_0x593cfd(0x4e9)]([_0x3703e4,_0x5e8b61])),{scaleX:_0x3bb285,scaleY:_0x4099c3}=_0x3fd56c['getAncestorScale'](),_0x5430d6=_0x3fd56c['getViewport'](_0x15b72e[_0x593cfd(0x426)][_0x593cfd(0x25a)]),_0x1bb1d8=_0x3fd56c['getVpScrollXYInfoByPosToVp'](_0x33b476['Vector2'][_0x593cfd(0x4e9)]([_0x3eb848,_0x4ffa6c]),_0x5430d6),_0x59fa81=_0x5a18a7[_0x593cfd(0x225)](_0x3703e4,_0x5e8b61,_0x3bb285,_0x4099c3,_0x1bb1d8);((_0x6d9c66=this['_lastPointer'])==null?void 0x0:_0x6d9c66[_0x593cfd(0x512)])===_0x59fa81[_0x593cfd(0x512)]&&((_0x361f8d=this[_0x593cfd(0x44e)])==null?void 0x0:_0x361f8d[_0x593cfd(0x49e)])===_0x59fa81[_0x593cfd(0x49e)]||this['_cursors'][_0x593cfd(0x3bc)](_0xd0591f=>{const _0x1ed043=_0x593cfd;_0xd0591f[_0x1ed043(0x2ca)](_0x59fa81);});},0x64));});}[_0x2b1dc8(0x402)](_0x537b42,_0xf9518c){const _0x56367a=_0x2b1dc8;var _0x62d8f;const _0x980467=(_0x62d8f=this[_0x56367a(0x1fe)][_0x56367a(0x5a8)]())==null?void 0x0:_0x62d8f[_0x56367a(0x40d)];if(!_0x980467)return;const _0x551f70=this[_0x56367a(0x33e)]();if(!_0x551f70)return;this['_cursors'][_0x56367a(0x3bc)](_0x394ff2=>{const _0xf98e34=_0x56367a;_0x394ff2[_0xf98e34(0x57a)]();});const {scene:_0x26974f}=_0x551f70,_0x5eecfb=_0xa5681(Array['from'](_0xf9518c[_0x56367a(0x211)]()))[_0x56367a(0x370)](_0x575a34=>{const _0x5c0de7=_0x56367a,{color:_0x3db3b8,range:_0x55bdf4,name:_0x40041d,selection:_0x17e2bd,sheetID:_0x532241}=_0x575a34,{startColumn:_0x2bc374,startRow:_0x576efc,endColumn:_0x33b1bd,endRow:_0x36edec}=_0x55bdf4,_0x233f96=_0x15b72e[_0x5c0de7(0x2a9)](_0x576efc,_0x2bc374,_0x26974f,_0x980467),_0x1916bd=_0x15b72e[_0x5c0de7(0x2a9)](_0x36edec,_0x33b1bd,_0x26974f,_0x980467),{columnHeaderHeightAndMarginTop:_0x30252d}=_0x980467,{startX:_0x35aebe,startY:_0x45092f}=_0x233f96,{endX:_0x432479,endY:_0x4719d1}=_0x1916bd,_0x21970e=_0x432479-_0x35aebe,_0x528b72=_0x4719d1-_0x45092f,_0x1e7ba7={'labelPosition':_0x45092f-_0x30252d>=_0x134c72?'top':_0x5c0de7(0x43c),'sheetID':_0x532241,'range':_0x55bdf4,'color':_0x3db3b8,'name':_0x40041d,'selection':_0x17e2bd,'left':_0x35aebe,'top':_0x45092f,'width':_0x21970e,'height':_0x528b72,'evented':!0x1,'zIndex':_0x140af5};return new _0x22df64(_0x40041d,_0x1e7ba7);});_0x26974f[_0x56367a(0x2db)](_0x5eecfb,_0x64c63b),this[_0x56367a(0x361)]=new Set(_0x5eecfb);}['_removeCollabCursors'](){const _0x28b3a=_0x2b1dc8;var _0x47ea0a;(_0x47ea0a=this[_0x28b3a(0x361)])==null||_0x47ea0a[_0x28b3a(0x3bc)](_0x2ff74c=>_0x2ff74c['dispose']());}[_0x2b1dc8(0x33e)](){const _0x2e9792=_0x2b1dc8;return _0x15b72e['getSheetObject'](this['_context'][_0x2e9792(0x4d0)],this[_0x2e9792(0x3ce)]);}};_0x1264b5=_0x321021([_0x5e30af(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x15b72e[_0x2b1dc8(0x1c7)])),_0x5e30af(0x2,_0x5821d4[_0x2b1dc8(0x503)](_0x3ae120)),_0x5e30af(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['ThemeService']))],_0x1264b5);function _0xa5681(_0x1f5a9a){const _0x183cfc=_0x2b1dc8,_0x45f11b=new Map();return _0x1f5a9a[_0x183cfc(0x3bc)](_0x21f106=>{const _0xe2f739=_0x183cfc;if(_0x45f11b[_0xe2f739(0x532)](_0x21f106['selection'])){const _0x39fce4=_0x45f11b[_0xe2f739(0x37f)](_0x21f106['selection']);_0x39fce4['name']+=',\x20'+_0x21f106['name'];}else _0x45f11b['set'](_0x21f106[_0xe2f739(0x3e9)],_0x21f106);}),Array[_0x183cfc(0x282)](_0x45f11b[_0x183cfc(0x211)]());}var _0x365dc1=function(){const _0x2cd21a=_0x2b1dc8;return _0x365dc1=Object[_0x2cd21a(0x443)]||function(_0x1ecb72){const _0xb9c803=_0x2cd21a;for(var _0x5744d4,_0x1ae193=0x1,_0x2d4466=arguments[_0xb9c803(0x3b8)];_0x1ae193<_0x2d4466;_0x1ae193++){_0x5744d4=arguments[_0x1ae193];for(var _0x1d12f1 in _0x5744d4)Object['prototype'][_0xb9c803(0x418)][_0xb9c803(0x54a)](_0x5744d4,_0x1d12f1)&&(_0x1ecb72[_0x1d12f1]=_0x5744d4[_0x1d12f1]);}return _0x1ecb72;},_0x365dc1[_0x2cd21a(0x265)](this,arguments);},_0x320e20=function(_0x27ed81,_0x1db31c){const _0x218e0a=_0x2b1dc8;var _0x31d70f={};for(var _0x185636 in _0x27ed81)Object[_0x218e0a(0x595)][_0x218e0a(0x418)][_0x218e0a(0x54a)](_0x27ed81,_0x185636)&&_0x1db31c[_0x218e0a(0x2da)](_0x185636)<0x0&&(_0x31d70f[_0x185636]=_0x27ed81[_0x185636]);if(_0x27ed81!=null&&typeof Object[_0x218e0a(0x521)]=='function'){for(var _0x9c791=0x0,_0x185636=Object[_0x218e0a(0x521)](_0x27ed81);_0x9c791<_0x185636[_0x218e0a(0x3b8)];_0x9c791++)_0x1db31c['indexOf'](_0x185636[_0x9c791])<0x0&&Object[_0x218e0a(0x595)]['propertyIsEnumerable'][_0x218e0a(0x54a)](_0x27ed81,_0x185636[_0x9c791])&&(_0x31d70f[_0x185636[_0x9c791]]=_0x27ed81[_0x185636[_0x9c791]]);}return _0x31d70f;},_0x1a3f96=_0x5036b4[_0x2b1dc8(0x197)](function(_0x23da48,_0xbb73f4){const _0x37834f=_0x2b1dc8;var _0x29b235=_0x23da48[_0x37834f(0x188)],_0x499260=_0x23da48['id'],_0x41a34f=_0x23da48[_0x37834f(0x2e0)],_0xb1e2fb=_0x23da48[_0x37834f(0x393)],_0xea4e=_0x320e20(_0x23da48,['icon','id',_0x37834f(0x2e0),_0x37834f(0x393)]),_0x453505=_0x37834f(0x2af)[_0x37834f(0x2b5)](_0x499260,'\x20')['concat'](_0x41a34f||'')[_0x37834f(0x41a)](),_0x3a6fca=_0x5036b4[_0x37834f(0x341)]('_'[_0x37834f(0x2b5)](_0x501cde()));return _0xbdeab4(_0x29b235,''[_0x37834f(0x2b5)](_0x499260),{'defIds':_0x29b235['defIds'],'idSuffix':_0x3a6fca[_0x37834f(0x280)]},_0x365dc1({'ref':_0xbb73f4,'className':_0x453505},_0xea4e),_0xb1e2fb);});function _0xbdeab4(_0x483e06,_0x5ca37c,_0x114650,_0x24a3aa,_0x271337){const _0x45489f=_0x2b1dc8;return _0x5036b4[_0x45489f(0x3ac)](_0x483e06[_0x45489f(0x2c6)],_0x365dc1(_0x365dc1({'key':_0x5ca37c},_0x32c8e4(_0x483e06,_0x114650,_0x271337)),_0x24a3aa),(_0x11731c(_0x483e06,_0x114650)['children']||[])[_0x45489f(0x370)](function(_0x2cac3c,_0x1d2356){const _0x34ea5f=_0x45489f;return _0xbdeab4(_0x2cac3c,''[_0x34ea5f(0x2b5)](_0x5ca37c,'-')['concat'](_0x483e06[_0x34ea5f(0x2c6)],'-')['concat'](_0x1d2356),_0x114650,void 0x0,_0x271337);}));}function _0x32c8e4(_0x2947f5,_0x1416c6,_0x3a488e){const _0x4284fd=_0x2b1dc8;var _0x245f55=_0x365dc1({},_0x2947f5[_0x4284fd(0x4f8)]);_0x3a488e!=null&&_0x3a488e[_0x4284fd(0x488)]&&_0x245f55[_0x4284fd(0x3ee)]==='colorChannel1'&&(_0x245f55[_0x4284fd(0x3ee)]=_0x3a488e[_0x4284fd(0x488)]);var _0x399eb1=_0x1416c6[_0x4284fd(0x416)];return!_0x399eb1||_0x399eb1[_0x4284fd(0x3b8)]===0x0||(_0x2947f5['tag']===_0x4284fd(0x315)&&_0x245f55['xlink:href']&&(_0x245f55[_0x4284fd(0x44f)]=_0x245f55['xlink:href']+_0x1416c6[_0x4284fd(0x50f)]),Object[_0x4284fd(0x18c)](_0x245f55)[_0x4284fd(0x3bc)](function(_0x273002){const _0x4d3521=_0x4284fd;var _0x4521fe=_0x273002[0x0],_0x2a6862=_0x273002[0x1];typeof _0x2a6862==_0x4d3521(0x596)&&(_0x245f55[_0x4521fe]=_0x2a6862[_0x4d3521(0x1ef)](/url\(#(.*)\)/,_0x4d3521(0x50d)[_0x4d3521(0x2b5)](_0x1416c6[_0x4d3521(0x50f)],')')));})),_0x245f55;}function _0x11731c(_0x4315c9,_0x6490b){const _0xfb782b=_0x2b1dc8;var _0x1df07c,_0x3b6d23=_0x6490b[_0xfb782b(0x416)];return!_0x3b6d23||_0x3b6d23[_0xfb782b(0x3b8)]===0x0?_0x4315c9:_0x4315c9[_0xfb782b(0x2c6)]===_0xfb782b(0x1d1)&&(!((_0x1df07c=_0x4315c9[_0xfb782b(0x2bd)])===null||_0x1df07c===void 0x0)&&_0x1df07c[_0xfb782b(0x3b8)])?_0x365dc1(_0x365dc1({},_0x4315c9),{'children':_0x4315c9[_0xfb782b(0x2bd)][_0xfb782b(0x370)](function(_0x3ff066){const _0x327314=_0xfb782b;return typeof _0x3ff066[_0x327314(0x4f8)]['id']==_0x327314(0x596)&&_0x3b6d23&&_0x3b6d23[_0x327314(0x2da)](_0x3ff066['attrs']['id'])>-0x1?_0x365dc1(_0x365dc1({},_0x3ff066),{'attrs':_0x365dc1(_0x365dc1({},_0x3ff066[_0x327314(0x4f8)]),{'id':_0x3ff066['attrs']['id']+_0x6490b[_0x327314(0x50f)]})}):_0x3ff066;})}):_0x4315c9;}function _0x501cde(){const _0x3fe6e8=_0x2b1dc8;return Math[_0x3fe6e8(0x242)]()[_0x3fe6e8(0x531)](0x24)['substring'](0x2,0x8);}_0x1a3f96['displayName']=_0x2b1dc8(0x238);var _0x533df6={'tag':_0x2b1dc8(0x3c2),'attrs':{'fill':_0x2b1dc8(0x38b),'viewBox':_0x2b1dc8(0x263),'width':_0x2b1dc8(0x27d),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x2b1dc8(0x440),'attrs':{'stroke':'currentColor','d':_0x2b1dc8(0x54d),'strokeLinecap':_0x2b1dc8(0x581),'strokeLinejoin':_0x2b1dc8(0x581),'strokeWidth':1.2}}]},{'tag':_0x2b1dc8(0x1d1),'attrs':{},'children':[{'tag':_0x2b1dc8(0x3d7),'attrs':{'id':_0x2b1dc8(0x4d3)},'children':[{'tag':'path','attrs':{'fill':_0x2b1dc8(0x3ec),'d':_0x2b1dc8(0x508)}}]}]}],'defIds':[_0x2b1dc8(0x4d3)]},_0x10e767=_0x5036b4[_0x2b1dc8(0x197)](function(_0xb28613,_0x40bd57){return _0x5036b4['createElement'](_0x1a3f96,Object['assign']({},_0xb28613,{'id':'off-line-single','ref':_0x40bd57,'icon':_0x533df6}));});_0x10e767[_0x2b1dc8(0x476)]=_0x2b1dc8(0x26f);var _0x3cee83={'tag':_0x2b1dc8(0x3c2),'attrs':{'fill':'none','viewBox':_0x2b1dc8(0x1ae),'width':'1em','height':_0x2b1dc8(0x27d)},'children':[{'tag':'g','attrs':{'clipPath':_0x2b1dc8(0x1bd)},'children':[{'tag':_0x2b1dc8(0x440),'attrs':{'stroke':_0x2b1dc8(0x518),'d':_0x2b1dc8(0x43e),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2b1dc8(0x1d1),'attrs':{},'children':[{'tag':_0x2b1dc8(0x3d7),'attrs':{'id':_0x2b1dc8(0x34f)},'children':[{'tag':_0x2b1dc8(0x440),'attrs':{'fill':_0x2b1dc8(0x3ec),'d':_0x2b1dc8(0x508),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2b1dc8(0x34f)]},_0x4535b5=_0x5036b4[_0x2b1dc8(0x197)](function(_0x123790,_0x3593da){const _0x2e6fb5=_0x2b1dc8;return _0x5036b4[_0x2e6fb5(0x3ac)](_0x1a3f96,Object[_0x2e6fb5(0x443)]({},_0x123790,{'id':_0x2e6fb5(0x1b2),'ref':_0x3593da,'icon':_0x3cee83}));});_0x4535b5['displayName']=_0x2b1dc8(0x19a);const _0x2bdd54={'onlineStatusIcon':_0x2b1dc8(0x368),'onlineStatusTitle':_0x2b1dc8(0x1f5),'onlineStatus':_0x2b1dc8(0x2f5),'online':_0x2b1dc8(0x519),'offline':_0x2b1dc8(0x372)};function _0x51d39f(_0xc767d){const _0x18060c=_0x2b1dc8;switch(_0xc767d){case _0x109234['OFFLINE']:return _0x18060c(0x295);case _0x109234['CONFLICT']:return _0x18060c(0x4c1);case _0x109234[_0x18060c(0x5bc)]:return'collabStatus.fetchMiss';case _0x109234['NOT_COLLAB']:return _0x18060c(0x246);case _0x109234[_0x18060c(0x258)]:case _0x109234[_0x18060c(0x585)]:case _0x109234['AWAITING_WITH_PENDING']:return _0x18060c(0x2e5);case _0x109234['SYNCED']:return'collabStatus.synced';}}function _0xf6cf50(_0x38290b){const _0x146dd4=_0x2b1dc8,{status$:_0x5df171}=_0x38290b,_0x297cc5=_0x32b063[_0x146dd4(0x306)](_0x5df171,_0x109234[_0x146dd4(0x525)]),_0x1d4daa=_0x5821d4[_0x146dd4(0x229)](_0x5821d4[_0x146dd4(0x27e)]),_0x52bcf4=_0x5821d4[_0x146dd4(0x229)](_0x2010a0[_0x146dd4(0x272)]),_0x1e6a2b=_0x297cc5!==_0x109234[_0x146dd4(0x400)],_0x513b00=_0x1d4daa['t'](_0x51d39f(_0x297cc5)),_0xc9dc7c=_0x46648e(_0x2bdd54[_0x146dd4(0x3e2)],{[_0x2bdd54[_0x146dd4(0x3c8)]]:_0x1e6a2b,[_0x2bdd54[_0x146dd4(0x23d)]]:!_0x1e6a2b}),_0xe9df26=_0x1e6a2b?_0x5036b4[_0x146dd4(0x3ac)](_0x4535b5,null):_0x5036b4[_0x146dd4(0x3ac)](_0x10e767,null),_0x599624=_0x5036b4['useCallback'](()=>{const _0x3933f7=_0x146dd4;_0x1e6a2b||_0x52bcf4[_0x3933f7(0x235)]();},[_0x1e6a2b,_0x52bcf4]);function _0x3d174d(){const _0x213acf=_0x146dd4;return _0x5036b4[_0x213acf(0x3ac)](_0x213acf(0x1ab),{'className':_0xc9dc7c,'onClick':_0x599624},_0x5036b4['createElement'](_0x213acf(0x1ab),{'className':_0x2bdd54['onlineStatusIcon']},_0xe9df26),_0x5036b4['createElement'](_0x213acf(0x1ab),{'className':_0x2bdd54[_0x213acf(0x4a0)]},_0x513b00));}return _0x1e6a2b?_0x3d174d():_0x5036b4[_0x146dd4(0x3ac)](_0x2997c5[_0x146dd4(0x2ab)],{'title':_0x1d4daa['t'](_0x146dd4(0x587))},_0x3d174d());}var _0x404338=Object[_0x2b1dc8(0x47b)],_0x3d4fea=Object[_0x2b1dc8(0x299)],_0x3ba70e=(_0x575cce,_0x1c0ebc,_0xb9cc6c,_0x449814)=>{const _0x44fbf0=_0x2b1dc8;for(var _0xd9ce24=_0x449814>0x1?void 0x0:_0x449814?_0x3d4fea(_0x1c0ebc,_0xb9cc6c):_0x1c0ebc,_0x55c47c=_0x575cce[_0x44fbf0(0x3b8)]-0x1,_0x2339f7;_0x55c47c>=0x0;_0x55c47c--)(_0x2339f7=_0x575cce[_0x55c47c])&&(_0xd9ce24=(_0x449814?_0x2339f7(_0x1c0ebc,_0xb9cc6c,_0xd9ce24):_0x2339f7(_0xd9ce24))||_0xd9ce24);return _0x449814&&_0xd9ce24&&_0x404338(_0x1c0ebc,_0xb9cc6c,_0xd9ce24),_0xd9ce24;},_0x58e372=(_0x191e64,_0x2ccb57)=>(_0xe01489,_0x455157)=>_0x2ccb57(_0xe01489,_0x455157,_0x191e64);_0x2010a0[_0x2b1dc8(0x2b3)]=class extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(_0x312334,_0x78b0f2,_0x1f9d93,_0x13ae92){const _0x2b2e94=_0x2b1dc8;super(),_0x58b0b3(this,_0x2b2e94(0x21c),new _0x2fad13['BehaviorSubject'](_0x109234[_0x2b2e94(0x525)])),(this[_0x2b2e94(0x267)]=_0x312334,this[_0x2b2e94(0x38a)]=_0x78b0f2,this['_injector']=_0x1f9d93,this['_collaborationController']=_0x13ae92,this[_0x2b2e94(0x56f)](),this[_0x2b2e94(0x250)]());}[_0x2b1dc8(0x250)](){const _0x18aee3=_0x2b1dc8;this[_0x18aee3(0x470)](this[_0x18aee3(0x267)][_0x18aee3(0x44a)][_0x18aee3(0x378)](_0x2fad13[_0x18aee3(0x304)](()=>{const _0x275071=_0x18aee3,_0xeef935=this[_0x275071(0x267)][_0x275071(0x279)]();return _0xeef935?this[_0x275071(0x567)][_0x275071(0x44b)](_0xeef935['getUnitId']()):_0x2fad13['of'](null);}),_0x2fad13[_0x18aee3(0x304)](_0x24a756=>_0x24a756?_0x24a756[_0x18aee3(0x20c)]:_0x2fad13['of'](_0x109234['NOT_COLLAB'])))[_0x18aee3(0x358)](_0x553e0c=>{const _0x43e4b4=_0x18aee3;this[_0x43e4b4(0x21c)][_0x43e4b4(0x522)](_0x553e0c);}));}[_0x2b1dc8(0x56f)](){const _0x27cea0=_0x2b1dc8;this[_0x27cea0(0x470)](this['_uiPartsService']['registerComponent'](_0x32b063[_0x27cea0(0x192)][_0x27cea0(0x526)],()=>_0x5821d4[_0x27cea0(0x390)](_0x40b6e2({'status$':this['_status$'][_0x27cea0(0x1eb)]()}),this['_injector'])));}},_0x2010a0[_0x2b1dc8(0x2b3)]=_0x3ba70e([_0x58e372(0x0,_0x5821d4[_0x2b1dc8(0x486)]),_0x58e372(0x1,_0x32b063[_0x2b1dc8(0x4e8)]),_0x58e372(0x2,_0x5821d4['Inject'](_0x5821d4['Injector'])),_0x58e372(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x1f8)]))],_0x2010a0['DesktopCollaborationStatusDisplayController']);function _0x40b6e2(_0x377d71){const {status$:_0x51348b}=_0x377d71;return function(){const _0xa8336b=_0x5448;return _0x5036b4[_0xa8336b(0x3ac)](_0xf6cf50,{'status$':_0x51348b});};}const _0x3b25ce=_0x5821d4[_0x2b1dc8(0x3b3)](_0x2b1dc8(0x1d4));var _0x3f114e=Object[_0x2b1dc8(0x47b)],_0x12efb7=Object[_0x2b1dc8(0x299)],_0x850c2c=(_0x47f5f0,_0x3ca395,_0x174349,_0x2e5b04)=>{const _0x9bc48f=_0x2b1dc8;for(var _0x4800b=_0x2e5b04>0x1?void 0x0:_0x2e5b04?_0x12efb7(_0x3ca395,_0x174349):_0x3ca395,_0x1d5a4a=_0x47f5f0[_0x9bc48f(0x3b8)]-0x1,_0x1829f4;_0x1d5a4a>=0x0;_0x1d5a4a--)(_0x1829f4=_0x47f5f0[_0x1d5a4a])&&(_0x4800b=(_0x2e5b04?_0x1829f4(_0x3ca395,_0x174349,_0x4800b):_0x1829f4(_0x4800b))||_0x4800b);return _0x2e5b04&&_0x4800b&&_0x3f114e(_0x3ca395,_0x174349,_0x4800b),_0x4800b;},_0x1fcd11=(_0x3b1cde,_0x34ce04)=>(_0xf36903,_0x279a15)=>_0x34ce04(_0xf36903,_0x279a15,_0x3b1cde);_0x2010a0[_0x2b1dc8(0x450)]=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x481c8a,_0x252098,_0x3eb87d,_0xe915e3,_0x2e67c6,_0x34e810){const _0x4509fe=_0x2b1dc8;super(),this[_0x4509fe(0x3d2)]=_0x481c8a,this[_0x4509fe(0x26b)]=_0x252098,this[_0x4509fe(0x4f9)]=_0x3eb87d,this[_0x4509fe(0x461)]=_0xe915e3,this[_0x4509fe(0x382)]=_0x2e67c6,_0x34e810?_0x34e810==null||_0x34e810[_0x4509fe(0x41e)]()[_0x4509fe(0x57d)](()=>this[_0x4509fe(0x1dd)]()):(this[_0x4509fe(0x26b)][_0x4509fe(0x1dc)](_0x4509fe(0x1aa),_0x4509fe(0x523)),this[_0x4509fe(0x1dd)]());}async[_0x2b1dc8(0x1dd)](){const _0x10d4dc=_0x2b1dc8,_0x3cd9b4=this[_0x10d4dc(0x3d2)][_0x10d4dc(0x324)](_0x10d4dc(0x4d0)),_0x229d0c=this[_0x10d4dc(0x3d2)]['getParam'](_0x10d4dc(0x4f1));if(!_0x3cd9b4||!_0x229d0c){this['_logService']['debug'](_0x10d4dc(0x1aa),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x229d0c)){case _0x25ecad[_0x10d4dc(0x3f1)]:{const _0x6dd27a=await this[_0x10d4dc(0x2fd)](_0x3cd9b4);this[_0x10d4dc(0x4d8)](_0x6dd27a);break;}case _0x25ecad[_0x10d4dc(0x202)]:{await this[_0x10d4dc(0x559)](_0x3cd9b4);break;}default:{this[_0x10d4dc(0x26b)][_0x10d4dc(0x3e4)](_0x10d4dc(0x1aa),_0x10d4dc(0x4bb));break;}}}async[_0x2b1dc8(0x4d8)](_0x335cf1){const _0x5c50c3=_0x2b1dc8;await this[_0x5c50c3(0x575)](_0x335cf1),_0x335cf1['activeSheet$'][_0x5c50c3(0x378)](_0x2fad13[_0x5c50c3(0x1de)](this['dispose$']))[_0x5c50c3(0x358)](_0x1a62a1=>{const _0x289884=_0x5c50c3;_0x1a62a1&&this[_0x289884(0x383)](_0x1a62a1);}),this[_0x5c50c3(0x3d2)][_0x5c50c3(0x1fa)]['pipe'](_0x2fad13[_0x5c50c3(0x1de)](this[_0x5c50c3(0x557)]))[_0x5c50c3(0x358)](()=>this[_0x5c50c3(0x575)](_0x335cf1));}[_0x2b1dc8(0x383)](_0x125e2e,_0x5a288f=!0x1){const _0x715056=_0x2b1dc8,_0x9fdf15=this[_0x715056(0x3d2)]['getParam'](_0x715056(0x332));_0x125e2e[_0x715056(0x1c4)]()!==_0x9fdf15&&this[_0x715056(0x3d2)][_0x715056(0x2d8)](_0x715056(0x332),_0x125e2e[_0x715056(0x1c4)](),_0x5a288f);}async['_updateSubUnitFromURLParams'](_0x1894a1){const _0x23f6a3=_0x2b1dc8;var _0x21b69a;const _0x5eb5aa=this[_0x23f6a3(0x3d2)][_0x23f6a3(0x324)](_0x23f6a3(0x332));if(!_0x5eb5aa||!_0x1894a1['getSheetBySheetId'](_0x5eb5aa)){const _0x962128=_0x1894a1[_0x23f6a3(0x556)]()[0x0],_0xf095f0=_0x1894a1[_0x23f6a3(0x3d8)](_0x962128);if(!_0xf095f0)return;this[_0x23f6a3(0x383)](_0xf095f0,!0x0),await this[_0x23f6a3(0x4f9)]['executeCommand'](_0x872f07[_0x23f6a3(0x216)]['id'],{'unitId':_0x1894a1[_0x23f6a3(0x28e)](),'subUnitId':_0x962128});return;}((_0x21b69a=_0x1894a1['getActiveSheet']())==null?void 0x0:_0x21b69a[_0x23f6a3(0x1c4)]())!==_0x5eb5aa&&await this[_0x23f6a3(0x4f9)][_0x23f6a3(0x2a8)](_0x872f07[_0x23f6a3(0x216)]['id'],{'unitId':_0x1894a1['getUnitId'](),'subUnitId':_0x5eb5aa});}async[_0x2b1dc8(0x2fd)](_0x1d1fa0){const _0x753516=_0x2b1dc8;let _0x33c168=0x0;const _0x1d5c83=await this[_0x753516(0x461)][_0x753516(0x307)](_0x1d1fa0);return _0x1d5c83&&(_0x1d5c83[_0x753516(0x48f)]||_0x1d5c83[_0x753516(0x29c)][_0x753516(0x3b8)]!==0x0)&&(_0x33c168=_0x1d5c83[_0x753516(0x18d)]),_0x33c168===0x0&&this[_0x753516(0x26b)][_0x753516(0x1dc)](_0x753516(0x1aa),_0x753516(0x3e5)),this[_0x753516(0x382)][_0x753516(0x3a9)](_0x1d1fa0,_0x33c168);}async[_0x2b1dc8(0x559)](_0x378987){const _0xfb9b33=_0x2b1dc8;let _0x597e39=0x0;const _0x50ab94=await this['_localCacheService'][_0xfb9b33(0x307)](_0x378987);return _0x50ab94&&(_0x50ab94['awaitingChangeset']||_0x50ab94[_0xfb9b33(0x29c)][_0xfb9b33(0x3b8)]!==0x0)&&(_0x597e39=_0x50ab94[_0xfb9b33(0x18d)]),_0x597e39===0x0&&this[_0xfb9b33(0x26b)][_0xfb9b33(0x1dc)]('[DataLoaderController]',_0xfb9b33(0x3e5)),this[_0xfb9b33(0x382)][_0xfb9b33(0x5b1)](_0x378987,_0x597e39);}},_0x2010a0[_0x2b1dc8(0x450)]=_0x850c2c([_0x5821d4[_0x2b1dc8(0x588)](_0x5821d4[_0x2b1dc8(0x4e1)][_0x2b1dc8(0x20b)],_0x2010a0[_0x2b1dc8(0x450)]),_0x1fcd11(0x0,_0x3b25ce),_0x1fcd11(0x1,_0x5821d4[_0x2b1dc8(0x468)]),_0x1fcd11(0x2,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x1fcd11(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0[_0x2b1dc8(0x222)])),_0x1fcd11(0x4,_0x5821d4[_0x2b1dc8(0x503)](_0xf29ce7[_0x2b1dc8(0x4c5)])),_0x1fcd11(0x5,_0x5821d4[_0x2b1dc8(0x264)](_0x1d2bd4[_0x2b1dc8(0x481)]))],_0x2010a0[_0x2b1dc8(0x450)]);var _0x2d3343=Object['defineProperty'],_0x1829be=Object[_0x2b1dc8(0x299)],_0x3d574f=(_0x1bcffe,_0x1c062c,_0x1967a0,_0x4dca03)=>{const _0x4c44f5=_0x2b1dc8;for(var _0x4429c7=_0x4dca03>0x1?void 0x0:_0x4dca03?_0x1829be(_0x1c062c,_0x1967a0):_0x1c062c,_0xb6b0a1=_0x1bcffe[_0x4c44f5(0x3b8)]-0x1,_0x28091e;_0xb6b0a1>=0x0;_0xb6b0a1--)(_0x28091e=_0x1bcffe[_0xb6b0a1])&&(_0x4429c7=(_0x4dca03?_0x28091e(_0x1c062c,_0x1967a0,_0x4429c7):_0x28091e(_0x4429c7))||_0x4429c7);return _0x4dca03&&_0x4429c7&&_0x2d3343(_0x1c062c,_0x1967a0,_0x4429c7),_0x4429c7;},_0xcccb84=(_0x3fa712,_0x39eedc)=>(_0x45a770,_0x3fd9b9)=>_0x39eedc(_0x45a770,_0x3fd9b9,_0x3fa712);const _0x5796e3=_0x2b1dc8(0x1a5),_0x195931='Univer';let _0x592f9e=class extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(_0x18ea18,_0x2fa089){const _0x48d82b=_0x2b1dc8;super(),this[_0x48d82b(0x267)]=_0x18ea18,this['_configService']=_0x2fa089,this[_0x48d82b(0x1dd)]();}[_0x2b1dc8(0x1dd)](){const _0x57d90f=_0x2b1dc8;this[_0x57d90f(0x470)](_0x5821d4[_0x57d90f(0x1ed)](this[_0x57d90f(0x267)][_0x57d90f(0x44a)]['subscribe'](()=>{const _0x20cb43=_0x57d90f;var _0x5be1d8;const _0x590bae=this[_0x20cb43(0x267)][_0x20cb43(0x279)]();let _0x530c4d=(_0x5be1d8=this[_0x20cb43(0x3aa)][_0x20cb43(0x54b)](_0x5796e3))!=null?_0x5be1d8:_0x195931;_0x590bae instanceof _0x5821d4[_0x20cb43(0x45c)]&&(_0x530c4d=_0x590bae[_0x20cb43(0x593)]),document[_0x20cb43(0x320)]=_0x530c4d;})));}};_0x592f9e=_0x3d574f([_0x5821d4[_0x2b1dc8(0x588)](_0x5821d4['LifecycleStages'][_0x2b1dc8(0x1e4)],_0x592f9e),_0xcccb84(0x0,_0x5821d4[_0x2b1dc8(0x486)]),_0xcccb84(0x1,_0x5821d4['IConfigService'])],_0x592f9e);var _0x1eb891=Object['defineProperty'],_0x43ba00=Object['getOwnPropertyDescriptor'],_0x464913=(_0x5c4314,_0x1a6261,_0x556d77,_0x1fbf92)=>{const _0x83c90c=_0x2b1dc8;for(var _0x20e97c=_0x1fbf92>0x1?void 0x0:_0x1fbf92?_0x43ba00(_0x1a6261,_0x556d77):_0x1a6261,_0x37d150=_0x5c4314[_0x83c90c(0x3b8)]-0x1,_0x37e857;_0x37d150>=0x0;_0x37d150--)(_0x37e857=_0x5c4314[_0x37d150])&&(_0x20e97c=(_0x1fbf92?_0x37e857(_0x1a6261,_0x556d77,_0x20e97c):_0x37e857(_0x20e97c))||_0x20e97c);return _0x1fbf92&&_0x20e97c&&_0x1eb891(_0x1a6261,_0x556d77,_0x20e97c),_0x20e97c;},_0x350c37=(_0x4a858a,_0x249812)=>(_0x388437,_0x20cbd4)=>_0x249812(_0x388437,_0x20cbd4,_0x4a858a);let _0x36375a=class{constructor(_0xe75417,_0x1e1946,_0x31f797){const _0x212012=_0x2b1dc8;this[_0x212012(0x3aa)]=_0xe75417,this[_0x212012(0x208)]=_0x1e1946,this[_0x212012(0x1d3)]=_0x31f797,this['init']();}[_0x2b1dc8(0x3bd)](){const _0x270c6b=_0x2b1dc8;this[_0x270c6b(0x208)][_0x270c6b(0x45f)]({'priority':0x1,'interceptor':(_0x20bb70,_0x1264e9)=>_0x1264e9(_0x20bb70)[_0x270c6b(0x378)](_0x2fad13[_0x270c6b(0x36c)](async _0x114e22=>{const _0x5d5404=_0x270c6b,_0x304f86=_0x114e22;if(_0x304f86[_0x5d5404(0x219)]===0x191&&window[_0x5d5404(0x55b)](this[_0x5d5404(0x1d3)]['t']('auth.needGotoLoginAlert'))){const _0x94b676=window[_0x5d5404(0x345)](window[_0x5d5404(0x379)]['href']);window[_0x5d5404(0x379)][_0x5d5404(0x421)]=this['_getLoginPath']()+_0x5d5404(0x193)+_0x94b676;}return _0x304f86;}))});}['_getLoginPath'](){const _0x15ebf7=_0x2b1dc8;var _0x35597d,_0x5b98d3;const _0x3e69a2=this[_0x15ebf7(0x3aa)][_0x15ebf7(0x54b)](_0x4036af),_0xbdd01e=this[_0x15ebf7(0x3aa)][_0x15ebf7(0x54b)](_0x451f80);return(_0x5b98d3=(_0x35597d=_0xbdd01e==null?void 0x0:_0xbdd01e['loginUrlKey'])!=null?_0x35597d:_0x3e69a2)!=null?_0x5b98d3:_0x5525d8;}};_0x36375a=_0x464913([_0x350c37(0x0,_0x5821d4[_0x2b1dc8(0x47d)]),_0x350c37(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x19a2cc['HTTPService'])),_0x350c37(0x2,_0x5821d4['Inject'](_0x5821d4['LocaleService']))],_0x36375a);var _0x2458f7=Object[_0x2b1dc8(0x47b)],_0xf7fe0d=Object[_0x2b1dc8(0x299)],_0xbecdb0=(_0x449e47,_0x227f8b,_0x391d62,_0x49954d)=>{const _0x3fb187=_0x2b1dc8;for(var _0x308b99=_0x49954d>0x1?void 0x0:_0x49954d?_0xf7fe0d(_0x227f8b,_0x391d62):_0x227f8b,_0x2a2ede=_0x449e47[_0x3fb187(0x3b8)]-0x1,_0x1c9412;_0x2a2ede>=0x0;_0x2a2ede--)(_0x1c9412=_0x449e47[_0x2a2ede])&&(_0x308b99=(_0x49954d?_0x1c9412(_0x227f8b,_0x391d62,_0x308b99):_0x1c9412(_0x308b99))||_0x308b99);return _0x49954d&&_0x308b99&&_0x2458f7(_0x227f8b,_0x391d62,_0x308b99),_0x308b99;},_0x2b3ea9=(_0x1a83db,_0x55a2f9)=>(_0x21ec38,_0x4a3c98)=>_0x55a2f9(_0x21ec38,_0x4a3c98,_0x1a83db);const _0x338186=_0x2b1dc8(0x4e0),_0xb848c2='/universer-api/authz';_0x2010a0['AuthzIoHttpService']=class extends _0x5821d4[_0x2b1dc8(0x576)]{constructor(_0x4ec081,_0x56cf1d){const _0x2ac599=_0x2b1dc8;super(),this[_0x2ac599(0x453)]=_0x4ec081,this[_0x2ac599(0x3aa)]=_0x56cf1d,this['_initMergeInterceptor']();}[_0x2b1dc8(0x2c5)](){const _0x480a3e=_0x2b1dc8,_0x5327f1=this;this['disposeWithMe'](this[_0x480a3e(0x453)][_0x480a3e(0x45f)]({'priority':0x3e7,'interceptor':_0x19a2cc[_0x480a3e(0x22a)]({'isMatch'(_0x36051b){const _0x11be2c=_0x480a3e;var _0x1b4bda;if(_0x36051b[_0x11be2c(0x3db)]===_0x11be2c(0x545)&&((_0x1b4bda=_0x36051b['requestParams'])!=null&&_0x1b4bda[_0x11be2c(0x2b7)])){const {objectID:_0x2c5903,objectType:_0x32c90a}=_0x36051b[_0x11be2c(0x3da)][_0x11be2c(0x2b7)]||{};if(!_0x2c5903||_0x32c90a===void 0x0)return!0x1;const _0x236e4d=_0x5327f1[_0x11be2c(0x195)]()+'/'+_0x32c90a+_0x11be2c(0x3ed)+_0x2c5903+_0x11be2c(0x4d4);if(_0x36051b[_0x11be2c(0x41c)]===_0x236e4d)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x12c75d){const _0x2f4206=_0x480a3e;var _0x4f5fa4;return(_0x4f5fa4=_0x12c75d[_0x2f4206(0x3da)])==null?void 0x0:_0x4f5fa4[_0x2f4206(0x2b7)];},'mergeParamsToRequest'(_0x3905c2,_0x1f18ff){const _0x518627=_0x480a3e,_0x1aba22=_0x5327f1[_0x518627(0x195)]()+_0x518627(0x59e),_0x402919=_0x3905c2[_0x518627(0x351)]((_0x3cfac5,_0x1cc31a)=>{const _0x5bed04=_0x518627,{unitID:_0x3e79d6,objectID:_0x35e21,objectType:_0x18b62f,actions:_0x36175b}=_0x1cc31a;return _0x3cfac5[_0x3e79d6]||(_0x3cfac5[_0x3e79d6]={}),_0x3cfac5[_0x3e79d6][_0x35e21]||(_0x3cfac5[_0x3e79d6][_0x35e21]={'objectID':_0x35e21,'objectType':_0x18b62f,'actions':[]}),_0x3cfac5[_0x3e79d6][_0x35e21]['actions'][_0x5bed04(0x3fb)](..._0x36175b),_0x3cfac5;},{}),_0x26d1fd=[];for(const _0x419a8e in _0x402919)for(const _0x4ffafc in _0x402919[_0x419a8e]){const {actions:_0x25abe8,objectType:_0x41912e}=_0x402919[_0x419a8e][_0x4ffafc],_0x2539d6=[...new Set(_0x25abe8)];_0x26d1fd['push']({'unitID':_0x419a8e,'objectID':_0x4ffafc,'objectType':_0x41912e,'actions':_0x2539d6});}return new _0x19a2cc[(_0x518627(0x213))](_0x518627(0x545),_0x1aba22,{'headers':_0x1f18ff['headers'],'withCredentials':_0x1f18ff[_0x518627(0x367)],'responseType':_0x1f18ff['responseType'],'body':{'requests':_0x26d1fd}});}},{'distributeResult'(_0x3fbb24,_0x2d1b7f){const _0x5561cb=_0x480a3e,{objectActions:_0x540e2e}=_0x3fbb24;return _0x2d1b7f[_0x5561cb(0x370)](_0xe9e8e4=>{const _0x4bb8c0=_0x5561cb,{unitID:_0x5724fd,objectID:_0x2f61dc,actions:_0x5a29f7}=_0xe9e8e4,_0x2a0d59=_0x540e2e['find'](_0xa23782=>_0xa23782[_0x4bb8c0(0x3d4)]===_0x5724fd&&_0xa23782[_0x4bb8c0(0x1a0)]===_0x2f61dc),_0x3f820b=_0x5a29f7[_0x4bb8c0(0x370)](_0x36a162=>_0x2a0d59==null?void 0x0:_0x2a0d59[_0x4bb8c0(0x493)][_0x4bb8c0(0x190)](_0x55f62a=>_0x55f62a[_0x4bb8c0(0x3dc)]===_0x36a162))[_0x4bb8c0(0x565)](_0x19bec1=>!!_0x19bec1);return{'config':_0xe9e8e4,'result':{'actions':_0x3f820b,'error':_0x3fbb24['error']}};});}})}));}[_0x2b1dc8(0x195)](){const _0x190552=_0x2b1dc8;var _0x1ecb71,_0x5c3a0c;const _0x5206ad=this[_0x190552(0x3aa)][_0x190552(0x54b)](_0x338186),_0x2e551b=this[_0x190552(0x3aa)][_0x190552(0x54b)](_0x451f80);return(_0x5c3a0c=(_0x1ecb71=_0x2e551b==null?void 0x0:_0x2e551b[_0x190552(0x403)])!=null?_0x1ecb71:_0x5206ad)!=null?_0x5c3a0c:_0xb848c2;}async['create'](_0x1e39bf){const _0x1ec6fd=_0x2b1dc8,_0xe4c15d=this['_getAPIPrefixPath']()+'/'+_0x1e39bf[_0x1ec6fd(0x298)]+'/object';return(await this[_0x1ec6fd(0x453)]['post'](_0xe4c15d,{'body':_0x1e39bf}))[_0x1ec6fd(0x2b7)][_0x1ec6fd(0x1a0)]||'';}async['list'](_0x2f8157){const _0x590cb1=_0x2b1dc8,_0x1d51cf=this[_0x590cb1(0x195)]()+_0x590cb1(0x1ec);return(await this['_HTTPService'][_0x590cb1(0x533)](_0x1d51cf,{'body':_0x2f8157}))[_0x590cb1(0x2b7)]['objects'];}async[_0x2b1dc8(0x2ea)](_0x1ee5ee){const _0x3ab4b=_0x2b1dc8,_0x415f5=this[_0x3ab4b(0x195)]()+'/'+_0x1ee5ee[_0x3ab4b(0x298)]+_0x3ab4b(0x3ed)+_0x1ee5ee[_0x3ab4b(0x1a0)];await this['_HTTPService']['put'](_0x415f5,{'body':_0x1ee5ee});}async[_0x2b1dc8(0x1bf)](_0x543ad7){const _0x216e25=_0x2b1dc8,_0x438d2d=this[_0x216e25(0x195)]()+'/'+_0x543ad7[_0x216e25(0x298)]+_0x216e25(0x3ed)+_0x543ad7[_0x216e25(0x1a0)]+_0x216e25(0x4d4);return(await this[_0x216e25(0x453)][_0x216e25(0x533)](_0x438d2d,{'body':_0x543ad7}))['body'][_0x216e25(0x493)];}async[_0x2b1dc8(0x4aa)](_0x31020b){const _0x2d9a11=_0x2b1dc8,_0x1fbc0b=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x2d9a11(0x453)][_0x2d9a11(0x533)](_0x1fbc0b,{'body':{'requests':_0x31020b}}))[_0x2d9a11(0x2b7)][_0x2d9a11(0x452)];}async[_0x2b1dc8(0x59a)](_0x324fc0){const _0x2f592e=_0x2b1dc8,_0x255c8b=this[_0x2f592e(0x195)]()+'/'+_0x324fc0[_0x2f592e(0x298)]+_0x2f592e(0x254),_0x3efa5c=await this[_0x2f592e(0x453)][_0x2f592e(0x533)](_0x255c8b,{'body':_0x324fc0});return{'roles':_0x3efa5c['body'][_0x2f592e(0x2be)],'actions':_0x3efa5c['body'][_0x2f592e(0x493)]};}async[_0x2b1dc8(0x5a7)](_0x24c32e){const _0x4ef5d6=_0x2b1dc8,_0x597eef=this[_0x4ef5d6(0x195)]()+'/collaborator';await this[_0x4ef5d6(0x453)][_0x4ef5d6(0x189)](_0x597eef,{'params':{'collaboratorID':_0x24c32e[_0x4ef5d6(0x536)],'objectID':_0x24c32e[_0x4ef5d6(0x1a0)],'unitID':_0x24c32e[_0x4ef5d6(0x3d4)]}});}async['updateCollaborator'](_0x433c17){const _0x42d6d0=_0x2b1dc8,_0x12f689=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x42d6d0(0x453)]['patch'](_0x12f689,{'body':_0x433c17});}async[_0x2b1dc8(0x191)](_0xb5af24){const _0x4ba67c=_0x2b1dc8,_0x35f0c3=this[_0x4ba67c(0x195)]()+'/collaborator';await this[_0x4ba67c(0x453)][_0x4ba67c(0x533)](_0x35f0c3,{'body':_0xb5af24});}async[_0x2b1dc8(0x353)](_0x18c10f){const _0x3b2cbf=_0x2b1dc8,_0x4c6d45=this['_getAPIPrefixPath']()+'/collaborator';return(await this[_0x3b2cbf(0x453)][_0x3b2cbf(0x37f)](_0x4c6d45,{'params':{'objectID':_0x18c10f[_0x3b2cbf(0x1a0)],'unitID':_0x18c10f[_0x3b2cbf(0x3d4)]}}))[_0x3b2cbf(0x2b7)][_0x3b2cbf(0x5ad)];}async[_0x2b1dc8(0x4af)](_0x363f4e){const _0x4b18e8=_0x2b1dc8,_0x5bb21b=this[_0x4b18e8(0x195)]()+_0x4b18e8(0x24e);await this[_0x4b18e8(0x453)][_0x4b18e8(0x28f)](_0x5bb21b,{'body':_0x363f4e});}},_0x2010a0[_0x2b1dc8(0x5a3)]=_0xbecdb0([_0x2b3ea9(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x19a2cc['HTTPService'])),_0x2b3ea9(0x1,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['IConfigService']))],_0x2010a0['AuthzIoHttpService']);var _0xbd2595=Object[_0x2b1dc8(0x47b)],_0x5a46c4=Object[_0x2b1dc8(0x299)],_0x154a1a=(_0x20f0d4,_0x182e54,_0x394f4f,_0x16efd3)=>{const _0x53f184=_0x2b1dc8;for(var _0xa281d3=_0x16efd3>0x1?void 0x0:_0x16efd3?_0x5a46c4(_0x182e54,_0x394f4f):_0x182e54,_0x4adf5c=_0x20f0d4[_0x53f184(0x3b8)]-0x1,_0xf425f6;_0x4adf5c>=0x0;_0x4adf5c--)(_0xf425f6=_0x20f0d4[_0x4adf5c])&&(_0xa281d3=(_0x16efd3?_0xf425f6(_0x182e54,_0x394f4f,_0xa281d3):_0xf425f6(_0xa281d3))||_0xa281d3);return _0x16efd3&&_0xa281d3&&_0xbd2595(_0x182e54,_0x394f4f,_0xa281d3),_0xa281d3;},_0x277f14=(_0x549da6,_0x159e60)=>(_0x50ef63,_0x1acb9d)=>_0x159e60(_0x50ef63,_0x1acb9d,_0x549da6);let _0x1e0133=class{constructor(_0x5a1659){const _0x1d333b=_0x2b1dc8;this['_httpService']=_0x5a1659,this[_0x1d333b(0x2bc)]();}[_0x2b1dc8(0x2bc)](){const _0x200ca3=_0x2b1dc8;this[_0x200ca3(0x208)][_0x200ca3(0x45f)]({'interceptor':(_0x3a3b56,_0x329d30)=>{const _0x8da02c=_0x200ca3,_0x78e529=_0x3a3b56['headers'],_0x5014a7=_0x1c126e[_0x8da02c(0x30a)]();return _0x5014a7&&_0x78e529[_0x8da02c(0x305)](_0x8da02c(0x455),_0x5014a7),_0x329d30(_0x3a3b56);}});}};_0x1e0133=_0x154a1a([_0x277f14(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x19a2cc['HTTPService']))],_0x1e0133);var _0x4e40e8=Object[_0x2b1dc8(0x47b)],_0x5662a7=Object[_0x2b1dc8(0x299)],_0x476d61=(_0xa272bb,_0x49c232,_0x351c70,_0x5567f6)=>{const _0x484d13=_0x2b1dc8;for(var _0x34e0ff=_0x5567f6>0x1?void 0x0:_0x5567f6?_0x5662a7(_0x49c232,_0x351c70):_0x49c232,_0x3a9241=_0xa272bb[_0x484d13(0x3b8)]-0x1,_0x193bfd;_0x3a9241>=0x0;_0x3a9241--)(_0x193bfd=_0xa272bb[_0x3a9241])&&(_0x34e0ff=(_0x5567f6?_0x193bfd(_0x49c232,_0x351c70,_0x34e0ff):_0x193bfd(_0x34e0ff))||_0x34e0ff);return _0x5567f6&&_0x34e0ff&&_0x4e40e8(_0x49c232,_0x351c70,_0x34e0ff),_0x34e0ff;},_0x204a98=(_0x22f7a0,_0x36568c)=>(_0x1781fb,_0x66405e)=>_0x36568c(_0x1781fb,_0x66405e,_0x22f7a0);const _0xf3cd32=['image/png',_0x2b1dc8(0x53e),_0x2b1dc8(0x408),'image/gif','image/bmp'],_0x55ef15=0x5*0x400*0x400,_0x22f4e0=_0x2b1dc8(0x278),_0x1cefdb='/universer-api/stream/file/upload',_0xf00546=_0x2b1dc8(0x4eb),_0x41175a=_0x2b1dc8(0x430);_0x2010a0['ImageIoService']=class{constructor(_0x1d2de9,_0x3a30d5,_0x3af8cf){const _0x2f168e=_0x2b1dc8;_0x58b0b3(this,_0x2f168e(0x26d),0x0),_0x58b0b3(this,_0x2f168e(0x252),new _0x2fad13[(_0x2f168e(0x2ee))]()),_0x58b0b3(this,_0x2f168e(0x357),this[_0x2f168e(0x252)]),_0x58b0b3(this,_0x2f168e(0x42d),new Map()),(this[_0x2f168e(0x208)]=_0x1d2de9,this[_0x2f168e(0x3aa)]=_0x3a30d5,this[_0x2f168e(0x267)]=_0x3af8cf);}[_0x2b1dc8(0x1ca)](_0x5c06f5){const _0x825c4=_0x2b1dc8;this[_0x825c4(0x26d)]=_0x5c06f5,this['_change$'][_0x825c4(0x522)](_0x5c06f5);}[_0x2b1dc8(0x24d)](_0x1acc3a,_0xa70e2c){const _0x3f4406=_0x2b1dc8;if(_0xa70e2c===_0x2b5006[_0x3f4406(0x451)][_0x3f4406(0x209)]){const _0x7778e1=new Image();return _0x7778e1['src']=_0x1acc3a,_0x7778e1;}return this['_imageSourceCache']['get'](_0x1acc3a);}[_0x2b1dc8(0x363)](_0x597038,_0x4762fc,_0x9979f5){const _0x5a5762=_0x2b1dc8;_0x4762fc===_0x2b5006['ImageSourceType']['BASE64']||_0x9979f5==null||this['_imageSourceCache'][_0x5a5762(0x305)](_0x597038,_0x9979f5);}async[_0x2b1dc8(0x3a7)](_0xf62a56){const _0x35f232=_0x2b1dc8;try{const _0x4b9adc=this[_0x35f232(0x4fc)](this['_getSignURL'](),''+_0xf62a56),_0x31a92c=(await this[_0x35f232(0x208)]['get'](_0x4b9adc))['body'];if(_0x31a92c['error']&&_0x31a92c['error'][_0x35f232(0x38f)]===_0x37b011['OK']){const _0x2cf5c6=new URL(_0x31a92c['url'],this['_getDownloadEndpointURL']())[_0x35f232(0x531)]();return Promise[_0x35f232(0x405)](_0x2cf5c6);}return Promise[_0x35f232(0x348)](_0x31a92c[_0x35f232(0x3e4)]);}catch(_0x1ef05d){return Promise[_0x35f232(0x348)](_0x1ef05d);}}async[_0x2b1dc8(0x52c)](_0xfe9482){const _0x380383=_0x2b1dc8;let _0xbb5ad1='';if(!_0xf3cd32[_0x380383(0x538)](_0xfe9482[_0x380383(0x4f1)]))return this[_0x380383(0x558)](),Promise[_0x380383(0x348)](new Error(_0x2b5006[_0x380383(0x56d)]['ERROR_IMAGE_TYPE']));if(_0xfe9482[_0x380383(0x199)]>_0x55ef15)return this['_decreaseWaiting'](),Promise[_0x380383(0x348)](new Error(_0x2b5006['ImageUploadStatusType'][_0x380383(0x49c)]));try{const _0x45986c=new FormData();_0x45986c[_0x380383(0x375)]('file',_0xfe9482);const _0x343e54=this['_univerInstanceService'][_0x380383(0x279)](),_0x440f40=_0x343e54==null?void 0x0:_0x343e54[_0x380383(0x28e)]();if(!_0x440f40)throw new Error(_0x380383(0x2b6));const _0x3dd992=this['_getUploadFileURL']()+'?size='+_0xfe9482[_0x380383(0x199)]['toString']()+'&source='+_0xe85c2c[_0x380383(0x4b2)]+_0x380383(0x54c)+encodeURIComponent(_0x440f40),_0x416f5f=await(await fetch(_0x3dd992,{'method':'POST','body':_0x45986c}))[_0x380383(0x2d1)]();if(typeof _0x416f5f[_0x380383(0x2dd)]!=_0x380383(0x596))return this[_0x380383(0x558)](),Promise['reject'](new Error(_0x2b5006['ImageUploadStatusType'][_0x380383(0x18f)]));_0xbb5ad1=_0x416f5f[_0x380383(0x2dd)];}catch{return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x2b5006[_0x380383(0x56d)]['ERROR_IMAGE']));}return new Promise((_0x401f56,_0x4c47f5)=>{const _0x1f2f21=_0x380383,_0x52b452=new FileReader();_0x52b452['readAsDataURL'](_0xfe9482),_0x52b452[_0x1f2f21(0x2fe)]=_0x509575=>{const _0x26051a=_0x1f2f21;var _0x35a410;const _0x3f4b8e=(_0x35a410=_0x509575['target'])==null?void 0x0:_0x35a410[_0x26051a(0x39c)];if(_0x3f4b8e==null){this[_0x26051a(0x558)](),_0x4c47f5(new Error(_0x2b5006['ImageUploadStatusType'][_0x26051a(0x18f)]));return;}const _0x256a14=_0x5821d4[_0x26051a(0x325)][_0x26051a(0x582)](0x6);_0x401f56({'imageId':_0x256a14,'imageSourceType':_0x2b5006['ImageSourceType'][_0x26051a(0x509)],'source':_0xbb5ad1,'base64Cache':_0x3f4b8e,'status':_0x2b5006[_0x26051a(0x56d)][_0x26051a(0x19c)]}),this[_0x26051a(0x558)]();};});}[_0x2b1dc8(0x4be)](){const _0x560e6d=_0x2b1dc8;var _0x5d8501,_0x43f0e0;const _0x4eda29=this['_configService']['getConfig'](_0x22f4e0),_0x39e25c=this[_0x560e6d(0x3aa)][_0x560e6d(0x54b)](_0x451f80);return(_0x43f0e0=(_0x5d8501=_0x39e25c==null?void 0x0:_0x39e25c[_0x560e6d(0x3b2)])!=null?_0x5d8501:_0x4eda29)!=null?_0x43f0e0:_0x1cefdb;}[_0x2b1dc8(0x39b)](){const _0x185a31=_0x2b1dc8;var _0x4a6de6,_0x5668cd;const _0x1a2272=this[_0x185a31(0x3aa)][_0x185a31(0x54b)](_0xf00546),_0x4c2634=this[_0x185a31(0x3aa)]['getConfig'](_0x451f80);return(_0x5668cd=(_0x4a6de6=_0x4c2634==null?void 0x0:_0x4c2634[_0x185a31(0x333)])!=null?_0x4a6de6:_0x1a2272)!=null?_0x5668cd:_0x41175a;}[_0x2b1dc8(0x1ba)](){const _0x4d6068=_0x2b1dc8;var _0x3e814f;const _0x26ac50=this[_0x4d6068(0x3aa)][_0x4d6068(0x54b)](_0x451f80);return(_0x3e814f=_0x26ac50==null?void 0x0:_0x26ac50[_0x4d6068(0x3bb)])!=null?_0x3e814f:location[_0x4d6068(0x445)];}[_0x2b1dc8(0x4fc)](_0x4b46fa,_0x4b698d){const _0x4b0238=_0x2b1dc8;return _0x4b46fa[_0x4b0238(0x1ef)]('{fileID}',_0x4b698d);}[_0x2b1dc8(0x558)](){const _0x4f53a0=_0x2b1dc8;this[_0x4f53a0(0x26d)]-=0x1,this[_0x4f53a0(0x252)][_0x4f53a0(0x522)](this[_0x4f53a0(0x26d)]);}},_0x2010a0[_0x2b1dc8(0x51e)]=_0x476d61([_0x204a98(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x19a2cc[_0x2b1dc8(0x31b)])),_0x204a98(0x1,_0x5821d4['IConfigService']),_0x204a98(0x2,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x486)]))],_0x2010a0[_0x2b1dc8(0x51e)]);var _0x562b2c=Object[_0x2b1dc8(0x47b)],_0x1bd84a=Object[_0x2b1dc8(0x299)],_0x1f56af=(_0xa680c3,_0x5cd192,_0x2cb488,_0x311d6f)=>{for(var _0x50e24c=_0x311d6f>0x1?void 0x0:_0x311d6f?_0x1bd84a(_0x5cd192,_0x2cb488):_0x5cd192,_0x9cb72e=_0xa680c3['length']-0x1,_0x3972e0;_0x9cb72e>=0x0;_0x9cb72e--)(_0x3972e0=_0xa680c3[_0x9cb72e])&&(_0x50e24c=(_0x311d6f?_0x3972e0(_0x5cd192,_0x2cb488,_0x50e24c):_0x3972e0(_0x50e24c))||_0x50e24c);return _0x311d6f&&_0x50e24c&&_0x562b2c(_0x5cd192,_0x2cb488,_0x50e24c),_0x50e24c;},_0x2e79e8=(_0xcdb1f2,_0x25542d)=>(_0x1f77d3,_0x617bef)=>_0x25542d(_0x1f77d3,_0x617bef,_0xcdb1f2);let _0x5caecb=class extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(_0x5c7b6d,_0x219a46,_0x57e760,_0x4d3a29,_0x2849ad){const _0x56b6fe=_0x2b1dc8;super(),this[_0x56b6fe(0x4cd)]=_0x5c7b6d,this[_0x56b6fe(0x267)]=_0x219a46,this[_0x56b6fe(0x39f)]=_0x57e760,this[_0x56b6fe(0x447)]=_0x4d3a29,this['_localeService']=_0x2849ad,this[_0x56b6fe(0x36a)](),this[_0x56b6fe(0x342)]();}[_0x2b1dc8(0x342)](){const _0x854e10=_0x2b1dc8,_0xfa2526=async _0x3bac74=>{const _0x37e4fd=_0x5448;(await this['_collaborationSessionService'][_0x37e4fd(0x4bc)](_0x3bac74))['event$']['pipe'](_0xbf2513[_0x37e4fd(0x565)](_0xc1672e=>_0xc1672e[_0x37e4fd(0x510)]===_0xf29ce7[_0x37e4fd(0x25c)][_0x37e4fd(0x29d)]),_0xbf2513[_0x37e4fd(0x1de)](this[_0x37e4fd(0x557)]))[_0x37e4fd(0x358)](_0x17c071=>{const _0x47bfdf=_0x37e4fd,_0x54530b=_0x17c071,{reason:_0x5a58d5}=_0x54530b[_0x47bfdf(0x210)];this[_0x47bfdf(0x4cd)][_0x47bfdf(0x37f)](_0x32b063['IMessageService'])[_0x47bfdf(0x221)]({'type':_0x2997c5[_0x47bfdf(0x410)][_0x47bfdf(0x4fb)],'content':this['_localeService']['t'](_0x47bfdf(0x364))+'('+_0x5a58d5+')'}),this[_0x47bfdf(0x39f)]['updatePermissionPoint'](new _0x872f07[(_0x47bfdf(0x4e6))](_0x3bac74)['id'],!0x1),this['_collaborationSessionService'][_0x47bfdf(0x52e)](_0x3bac74);});};_0x2fad13[_0x854e10(0x2b4)](this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5821d4['UniverInstanceType'][_0x854e10(0x3f1)]),this[_0x854e10(0x267)]['getTypeOfUnitAdded$'](_0x5821d4['UniverInstanceType'][_0x854e10(0x202)]))[_0x854e10(0x378)](_0xbf2513[_0x854e10(0x370)](_0x2341f3=>_0x2341f3[_0x854e10(0x28e)]()),_0xbf2513[_0x854e10(0x565)](_0x2813cb=>!_0x5821d4[_0x854e10(0x217)](_0x2813cb)),_0xbf2513[_0x854e10(0x1de)](this['dispose$']))[_0x854e10(0x358)](_0x4cce10=>{_0xfa2526(_0x4cce10);});}[_0x2b1dc8(0x36a)](){const _0x3d8fdf=_0x2b1dc8,_0x5d7821=async _0x367654=>{const _0x351c58=_0x5448;(await this[_0x351c58(0x447)][_0x351c58(0x4bc)](_0x367654))[_0x351c58(0x51f)][_0x351c58(0x378)](_0xbf2513[_0x351c58(0x565)](_0x381567=>_0x381567['eventID']===_0xf29ce7[_0x351c58(0x25c)][_0x351c58(0x2de)]),_0xbf2513['takeUntil'](this[_0x351c58(0x557)]))[_0x351c58(0x358)](_0x4b9239=>{const _0x1fce72=_0x351c58,_0x3f0d4a=_0x4b9239,{objectId:_0x50ad62}=_0x3f0d4a[_0x1fce72(0x210)],_0x592284=this['_injector'][_0x1fce72(0x37f)](_0x15b72e['SheetPermissionInitController']);_0x50ad62===_0x367654?_0x592284['initWorkbookPermissionChange'](_0x367654):_0x592284['refreshPermission'](_0x367654,_0x50ad62);});};_0x2fad13[_0x3d8fdf(0x2b4)](this[_0x3d8fdf(0x267)][_0x3d8fdf(0x34c)](_0x5821d4[_0x3d8fdf(0x566)][_0x3d8fdf(0x3f1)]),this[_0x3d8fdf(0x267)][_0x3d8fdf(0x34c)](_0x5821d4[_0x3d8fdf(0x566)][_0x3d8fdf(0x202)]))[_0x3d8fdf(0x378)](_0xbf2513[_0x3d8fdf(0x370)](_0x1435fb=>_0x1435fb['getUnitId']()),_0xbf2513[_0x3d8fdf(0x565)](_0x12c435=>!_0x5821d4[_0x3d8fdf(0x217)](_0x12c435)),_0xbf2513[_0x3d8fdf(0x1de)](this[_0x3d8fdf(0x557)]))[_0x3d8fdf(0x358)](_0x5b1d81=>{_0x5d7821(_0x5b1d81);});}};_0x5caecb=_0x1f56af([_0x5821d4[_0x2b1dc8(0x588)](_0x5821d4['LifecycleStages']['Starting'],_0x5caecb),_0x2e79e8(0x0,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4[_0x2b1dc8(0x291)])),_0x2e79e8(0x1,_0x5821d4[_0x2b1dc8(0x486)]),_0x2e79e8(0x2,_0x5821d4[_0x2b1dc8(0x312)]),_0x2e79e8(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x2010a0['CollaborationSessionService'])),_0x2e79e8(0x4,_0x5821d4['Inject'](_0x5821d4[_0x2b1dc8(0x27e)]))],_0x5caecb);var _0x1a2fdf=Object['defineProperty'],_0x39303b=Object[_0x2b1dc8(0x299)],_0x3cc1f9=(_0x2eaa23,_0x29725c,_0x37cdf,_0x26c881)=>{const _0x5bbf59=_0x2b1dc8;for(var _0x289229=_0x26c881>0x1?void 0x0:_0x26c881?_0x39303b(_0x29725c,_0x37cdf):_0x29725c,_0x902edd=_0x2eaa23[_0x5bbf59(0x3b8)]-0x1,_0x56af06;_0x902edd>=0x0;_0x902edd--)(_0x56af06=_0x2eaa23[_0x902edd])&&(_0x289229=(_0x26c881?_0x56af06(_0x29725c,_0x37cdf,_0x289229):_0x56af06(_0x289229))||_0x289229);return _0x26c881&&_0x289229&&_0x1a2fdf(_0x29725c,_0x37cdf,_0x289229),_0x289229;},_0x22308c=(_0x33a120,_0x5e19dc)=>(_0x368404,_0x124901)=>_0x5e19dc(_0x368404,_0x124901,_0x33a120);_0x2010a0[_0x2b1dc8(0x23a)]=class{constructor(_0x4a37ba,_0x58689c){const _0x1dcdd2=_0x2b1dc8;this[_0x1dcdd2(0x3aa)]=_0x4a37ba,this[_0x1dcdd2(0x208)]=_0x58689c;}async['getUnitOnRev'](_0x5a3e3b,_0xad8337){const _0x58a33a=_0x2b1dc8;var _0x20c969;const {unitID:_0x607814,type:_0xbc3674,revision:_0x3c1bd3=0x0}=_0xad8337,_0x5efda3=this[_0x58a33a(0x1da)]()+'/'+_0xbc3674+_0x58a33a(0x24f)+_0x607814+'/rev/'+_0x3c1bd3,_0xb6d4f1=(await this['_httpService'][_0x58a33a(0x37f)](_0x5efda3))[_0x58a33a(0x2b7)],_0x3ad431=(_0x20c969=_0xb6d4f1[_0x58a33a(0x338)])==null?void 0x0:_0x20c969[_0x58a33a(0x2ad)];if(_0x3ad431){const _0x225e7f=_0x3ad431==null?void 0x0:_0x3ad431['originalMeta'],_0x3f1a90=_0xf29ce7[_0x58a33a(0x472)][_0x58a33a(0x546)](_0xf29ce7[_0x58a33a(0x2ff)](_0x225e7f));_0x3ad431[_0x58a33a(0x48d)]=_0x3f1a90,Object[_0x58a33a(0x18c)](_0x3ad431['sheets'])['forEach'](([,_0x2727ac])=>{const _0x4cc9ee=_0x58a33a,_0xea3569=_0x2727ac[_0x4cc9ee(0x48d)],_0x270489=_0xf29ce7[_0x4cc9ee(0x472)]['encode'](_0xf29ce7[_0x4cc9ee(0x2ff)](_0xea3569));_0x2727ac['originalMeta']=_0x270489;});}return _0xb6d4f1;}async[_0x2b1dc8(0x3e0)](_0x4b5cb1,_0x2a4e96){const _0x2bb373=_0x2b1dc8,{unitID:_0x5d8c30,type:_0x22dce9,blockID:_0x54f235}=_0x2a4e96,_0x290dc0=this['_getAPIPrefix']()+'/'+_0x22dce9+_0x2bb373(0x24f)+_0x5d8c30+_0x2bb373(0x1cd)+_0x54f235;return(await this[_0x2bb373(0x208)]['get'](_0x290dc0))[_0x2bb373(0x2b7)];}async[_0x2b1dc8(0x50c)](_0x14e117,_0x2c707c){const _0x26dcf9=_0x2b1dc8,{unitID:_0x17c9b5,type:_0x3eefe3,blockID:_0x4083fe}=_0x2c707c,_0x739480=this[_0x26dcf9(0x29b)]()+'/block/'+_0x3eefe3+_0x26dcf9(0x24f)+_0x17c9b5+_0x26dcf9(0x1cd)+_0x4083fe;return(await this[_0x26dcf9(0x208)][_0x26dcf9(0x37f)](_0x739480))[_0x26dcf9(0x2b7)];}async[_0x2b1dc8(0x3fc)](_0x4e46cc,_0x3c5daf){const _0x41ca94=_0x2b1dc8,{unitID:_0x41582c,type:_0x5bfe52,from:_0x2c0885,to:_0xbb2a93}=_0x3c5daf,_0x3f9c4a=this[_0x41ca94(0x29b)]()+'/'+_0x5bfe52+'/unit/'+_0x41582c+_0x41ca94(0x23b)+_0x2c0885+_0x41ca94(0x40b)+_0xbb2a93;return(await this[_0x41ca94(0x208)][_0x41ca94(0x37f)](_0x3f9c4a))[_0x41ca94(0x2b7)];}[_0x2b1dc8(0x1da)](){const _0x5317f6=_0x2b1dc8;var _0x3347d4;return(_0x3347d4=this[_0x5317f6(0x3aa)][_0x5317f6(0x54b)](_0x5457b5))!=null?_0x3347d4:this[_0x5317f6(0x29b)]();}[_0x2b1dc8(0x29b)](){const _0x58c843=_0x2b1dc8;var _0x17bb4c,_0x3e8873;const _0x34c6f8=this[_0x58c843(0x3aa)]['getConfig'](_0x22f28d),_0x27a1d6=this[_0x58c843(0x3aa)]['getConfig'](_0x451f80);return(_0x3e8873=(_0x17bb4c=_0x27a1d6==null?void 0x0:_0x27a1d6['snapshotServerUrl'])!=null?_0x17bb4c:_0x34c6f8)!=null?_0x3e8873:_0x34b7c6;}async[_0x2b1dc8(0x2e9)](_0x4ea4b5,_0x3fcf25){const _0x513319=_0x2b1dc8,_0x4b741f=_0x513319(0x1af)+_0x3fcf25['type']+_0x513319(0x24f)+_0x3fcf25[_0x513319(0x3d4)]+_0x513319(0x36f);return(await this[_0x513319(0x208)][_0x513319(0x37f)](_0x4b741f,{'params':{'resourceId':JSON[_0x513319(0x3f3)](_0x3fcf25[_0x513319(0x3de)])}}))['body'];}[_0x2b1dc8(0x562)](){const _0x546070=_0x2b1dc8;throw new Error(_0x546070(0x3d3));}[_0x2b1dc8(0x3be)](){const _0xc7fde7=_0x2b1dc8;throw new Error(_0xc7fde7(0x3d3));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x2b1dc8(0x40f)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},_0x2010a0[_0x2b1dc8(0x23a)]=_0x3cc1f9([_0x22308c(0x0,_0x5821d4[_0x2b1dc8(0x47d)]),_0x22308c(0x1,_0x5821d4['Inject'](_0x19a2cc[_0x2b1dc8(0x31b)]))],_0x2010a0[_0x2b1dc8(0x23a)]);var _0x3b3f8a=Object[_0x2b1dc8(0x47b)],_0x2df51a=Object[_0x2b1dc8(0x299)],_0x4a1679=(_0x262045,_0x2fca8d,_0x48bff7,_0x535194)=>{const _0x192ff5=_0x2b1dc8;for(var _0x230775=_0x535194>0x1?void 0x0:_0x535194?_0x2df51a(_0x2fca8d,_0x48bff7):_0x2fca8d,_0x8ba1c9=_0x262045[_0x192ff5(0x3b8)]-0x1,_0x555eeb;_0x8ba1c9>=0x0;_0x8ba1c9--)(_0x555eeb=_0x262045[_0x8ba1c9])&&(_0x230775=(_0x535194?_0x555eeb(_0x2fca8d,_0x48bff7,_0x230775):_0x555eeb(_0x230775))||_0x230775);return _0x535194&&_0x230775&&_0x3b3f8a(_0x2fca8d,_0x48bff7,_0x230775),_0x230775;},_0x3b2886=(_0x5bbd4e,_0x3f62eb)=>(_0x40fb69,_0x5f234b)=>_0x3f62eb(_0x40fb69,_0x5f234b,_0x5bbd4e);let _0x17bd31=class extends _0x5821d4['LocalUndoRedoService']{constructor(_0x1a83d6,_0x53a104,_0xac75ab,_0x4f8e04,_0x3c2304){const _0x69fbef=_0x2b1dc8;super(_0x1a83d6,_0x53a104,_0xac75ab),this[_0x69fbef(0x29e)]=_0x4f8e04,this[_0x69fbef(0x26b)]=_0x3c2304;}[_0x2b1dc8(0x571)](_0x3661f2,_0x5768c0){const _0x2689ca=_0x2b1dc8,_0x8303a6=this[_0x2689ca(0x3ad)](_0x3661f2);if(_0x8303a6)try{const _0x558dc3=this[_0x2689ca(0x499)](_0x8303a6,_0x5768c0);this[_0x2689ca(0x574)](_0x3661f2,_0x558dc3);}catch(_0x455af9){this[_0x2689ca(0x26b)]['error']('[CollaborationUndoRedoService]',_0x455af9),this[_0x2689ca(0x1c9)](_0x3661f2);}const _0x452218=this[_0x2689ca(0x224)](_0x3661f2);if(_0x452218)try{const _0x4a5b21=this[_0x2689ca(0x499)](_0x452218,_0x5768c0);this[_0x2689ca(0x57b)](_0x3661f2,_0x4a5b21);}catch(_0x10180a){this[_0x2689ca(0x26b)][_0x2689ca(0x3e4)](_0x10180a),this['_clearRedo'](_0x3661f2);}}[_0x2b1dc8(0x1c9)](_0x571e53){const _0x11b9fc=_0x2b1dc8,_0x27265c=this['_getUndoStack'](_0x571e53);_0x27265c&&(_0x27265c[_0x11b9fc(0x3b8)]=0x0,this[_0x11b9fc(0x1b8)]());}[_0x2b1dc8(0x2ae)](_0x46ddf3){const _0x4568ba=_0x2b1dc8,_0x3a7b4e=this[_0x4568ba(0x224)](_0x46ddf3);_0x3a7b4e&&(_0x3a7b4e[_0x4568ba(0x3b8)]=0x0,this[_0x4568ba(0x1b8)]());}[_0x2b1dc8(0x574)](_0x461d5b,_0x32ef73){const _0x1d676c=_0x2b1dc8;this[_0x1d676c(0x4b5)]['set'](_0x461d5b,_0x32ef73),this[_0x1d676c(0x1b8)]();}['_substituteRedoStack'](_0x128b81,_0x3b7685){const _0x51d704=_0x2b1dc8;this[_0x51d704(0x289)]['set'](_0x128b81,_0x3b7685),this[_0x51d704(0x1b8)]();}[_0x2b1dc8(0x499)](_0x403313,_0x331f55){const _0xd4ed96=_0x2b1dc8,_0x116ecb=[];let _0x328607=_0x331f55,_0xed75ab=_0x331f55;for(let _0x3ea73f=_0x403313[_0xd4ed96(0x3b8)]-0x1;_0x3ea73f>=0x0;_0x3ea73f--){const {unitID:_0x3dd0ee,undoMutations:_0x48803c,redoMutations:_0x49ab3f}=_0x403313[_0x3ea73f],_0x37fdb9=this[_0xd4ed96(0x29e)][_0xd4ed96(0x5a2)](_0x328607,_0x48803c),_0x3c9bc6=this[_0xd4ed96(0x29e)][_0xd4ed96(0x5a2)](_0xed75ab,_0x49ab3f);if(_0xf29ce7['isTransformMutationsWithChangesetFailure'](_0x37fdb9)||_0xf29ce7[_0xd4ed96(0x58f)](_0x3c9bc6)){this[_0xd4ed96(0x26b)][_0xd4ed96(0x3e4)]('[CollaborationUndoRedoService]',_0xd4ed96(0x4cf),_0x37fdb9,_0x3c9bc6);break;}_0x328607=_0x37fdb9[_0xd4ed96(0x37c)],_0xed75ab=_0x3c9bc6['c1Prime'],_0x116ecb[_0xd4ed96(0x3fb)]({'unitID':_0x3dd0ee,'undoMutations':_0x37fdb9['m2Prime'],'redoMutations':_0x3c9bc6[_0xd4ed96(0x1a3)]});}return _0x116ecb[_0xd4ed96(0x380)]();}};_0x17bd31=_0x4a1679([_0x3b2886(0x0,_0x5821d4[_0x2b1dc8(0x486)]),_0x3b2886(0x1,_0x5821d4[_0x2b1dc8(0x2bf)]),_0x3b2886(0x2,_0x5821d4['IContextService']),_0x3b2886(0x3,_0xf29ce7[_0x2b1dc8(0x487)]),_0x3b2886(0x4,_0x5821d4[_0x2b1dc8(0x468)])],_0x17bd31);class _0x239bf7 extends _0x5821d4[_0x2b1dc8(0x3f6)]{constructor(){const _0x136898=_0x2b1dc8;super(),_0x58b0b3(this,_0x136898(0x1fa)),this[_0x136898(0x1fa)]=_0x2fad13[_0x136898(0x53d)](window,'popstate')['pipe'](_0x2fad13[_0x136898(0x1de)](this[_0x136898(0x557)]),_0x2fad13[_0x136898(0x1f6)](0x1),_0x2fad13[_0x136898(0x37b)](void 0x0));}[_0x2b1dc8(0x2d8)](_0x1902b0,_0x1b0638,_0x3a1de4=!0x1){const _0x31bfcf=_0x2b1dc8,_0x29833b=new URL(window['location'][_0x31bfcf(0x421)]);_0x29833b['searchParams'][_0x31bfcf(0x305)](_0x1902b0,_0x1b0638),_0x3a1de4?window['history'][_0x31bfcf(0x388)]('','',_0x29833b[_0x31bfcf(0x531)]()):window['history'][_0x31bfcf(0x349)]('','',_0x29833b[_0x31bfcf(0x531)]());}[_0x2b1dc8(0x5ab)](_0x41c1b7,_0xbfab45=!0x1){const _0x2a6584=_0x2b1dc8,_0x58c219=new URL(window[_0x2a6584(0x379)][_0x2a6584(0x421)]);_0x58c219['searchParams'][_0x2a6584(0x189)](_0x41c1b7),_0xbfab45?window[_0x2a6584(0x1e7)]['replaceState']('','',_0x58c219['toString']()):window[_0x2a6584(0x1e7)][_0x2a6584(0x349)]('','',_0x58c219['toString']());}['getParam'](_0x43156e){const _0x31ed10=_0x2b1dc8;var _0x8bfe6d;return(_0x8bfe6d=new URL(window[_0x31ed10(0x379)][_0x31ed10(0x421)])['searchParams'][_0x31ed10(0x37f)](_0x43156e))!=null?_0x8bfe6d:void 0x0;}}var _0xeec76e=Object[_0x2b1dc8(0x47b)],_0x4be45c=Object[_0x2b1dc8(0x299)],_0x1a9121=(_0x11ea0e,_0x5a0ab6,_0x2ee661)=>_0x5a0ab6 in _0x11ea0e?_0xeec76e(_0x11ea0e,_0x5a0ab6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ee661}):_0x11ea0e[_0x5a0ab6]=_0x2ee661,_0x5c9d00=(_0x94dcf2,_0x5bfe76,_0x1e7a21,_0x583544)=>{const _0x265b5a=_0x2b1dc8;for(var _0x31ab8c=_0x583544>0x1?void 0x0:_0x583544?_0x4be45c(_0x5bfe76,_0x1e7a21):_0x5bfe76,_0x3f8082=_0x94dcf2[_0x265b5a(0x3b8)]-0x1,_0xe55fd7;_0x3f8082>=0x0;_0x3f8082--)(_0xe55fd7=_0x94dcf2[_0x3f8082])&&(_0x31ab8c=(_0x583544?_0xe55fd7(_0x5bfe76,_0x1e7a21,_0x31ab8c):_0xe55fd7(_0x31ab8c))||_0x31ab8c);return _0x583544&&_0x31ab8c&&_0xeec76e(_0x5bfe76,_0x1e7a21,_0x31ab8c),_0x31ab8c;},_0x152187=(_0x5ac015,_0xba687f)=>(_0x54cdd1,_0x4bf3b6)=>_0xba687f(_0x54cdd1,_0x4bf3b6,_0x5ac015),_0x23eae8=(_0x303c74,_0x307a03,_0x11dc25)=>_0x1a9121(_0x303c74,_0x307a03+'',_0x11dc25);const _0x474b65=_0x2b1dc8(0x489);_0x2010a0['UniverCollaborationClientPlugin']=class extends _0x5821d4[_0x2b1dc8(0x495)]{constructor(_0x46ac15=_0x10e363,_0x1673cd,_0x1478ec,_0x269e43,_0xb69c4f){const _0x5079fb=_0x2b1dc8;super(),this[_0x5079fb(0x3c3)]=_0x46ac15,this['_logService']=_0x1673cd,this[_0x5079fb(0x29a)]=_0x1478ec,this[_0x5079fb(0x4cd)]=_0x269e43,this[_0x5079fb(0x3aa)]=_0xb69c4f;const {..._0x5eb392}=this['_config'];this['_configService'][_0x5079fb(0x336)](_0x451f80,_0x5eb392);}[_0x2b1dc8(0x4a3)](){this['_registerDependencies']();}[_0x2b1dc8(0x4df)](){const _0x48f7ae=_0x2b1dc8;this[_0x48f7ae(0x2f6)]();}[_0x2b1dc8(0x464)](){const _0x370faf=_0x2b1dc8;var _0x362631,_0x5c5fd1,_0x4433a5,_0x17fa60;this[_0x370faf(0x4cd)][_0x370faf(0x532)](_0x5821d4[_0x370faf(0x2ac)])&&this['_logService'][_0x370faf(0x3e4)]('[UniverCollaborationClientPlugin]',_0x370faf(0x4a6));let _0x468f24=[[_0x5821d4['IUndoRedoService'],{'useClass':_0x17bd31}],[_0x2010a0['CollaborationSessionService']],[_0x38f88a],[_0x19a2cc[_0x370faf(0x31b)]],[_0x3b25ce,{'useClass':_0x239bf7}],[_0x35f626],[_0x2010a0[_0x370faf(0x222)]],[_0x19a2cc[_0x370faf(0x22b)]],[_0x22d44e],[_0x493ead],[_0x203e1e],[_0x4ce206],[_0x36375a],[_0x1e0133],[_0x4bccc8],[_0x5caecb],[_0x5c41db,{'useClass':(_0x5c5fd1=(_0x362631=this[_0x370faf(0x3c3)])==null?void 0x0:_0x362631[_0x370faf(0x3eb)])!=null?_0x5c5fd1:_0x2010a0[_0x370faf(0x1ad)]}],[_0x19a2cc['IHTTPImplementation'],{'useClass':_0x19a2cc[_0x370faf(0x2e3)]}],[_0xf29ce7[_0x370faf(0x27a)],{'useClass':_0x2010a0['SnapshotServerOverHTTPService']}],[_0x5821d4[_0x370faf(0x26e)],{'useClass':_0x2010a0['AuthzIoHttpService']}],[_0x2b5006[_0x370faf(0x2f9)],{'useClass':_0x2010a0[_0x370faf(0x51e)]}],[_0x2010a0[_0x370faf(0x1f8)]],[_0x2010a0[_0x370faf(0x450)]],[_0x2010a0[_0x370faf(0x2b3)]],[_0x592f9e],[_0x3ae120]];(_0x4433a5=this[_0x370faf(0x3c3)])!=null&&_0x4433a5[_0x370faf(0x48c)]&&_0x468f24[_0x370faf(0x3fb)]([_0x4442df,{'useClass':_0x2dacc4}]),_0x468f24=_0x5821d4[_0x370faf(0x313)](_0x468f24,(_0x17fa60=this[_0x370faf(0x3c3)])==null?void 0x0:_0x17fa60[_0x370faf(0x46d)]),_0x468f24[_0x370faf(0x3bc)](_0x1d81c3=>this['_injector'][_0x370faf(0x25b)](_0x1d81c3)),this['_initModules']();}['_registerRenderDependencies'](){const _0x220968=_0x2b1dc8;this[_0x220968(0x470)](this[_0x220968(0x29a)][_0x220968(0x2cf)](_0x5821d4[_0x220968(0x566)]['UNIVER_DOC'],[_0x273e10])),this[_0x220968(0x470)](this['_renderManagerService'][_0x220968(0x2cf)](_0x5821d4['UniverInstanceType'][_0x220968(0x3f1)],[_0x1264b5]));}[_0x2b1dc8(0x3c4)](){const _0x33ab46=_0x2b1dc8;var _0x4423ff,_0x54fd49;this[_0x33ab46(0x4cd)][_0x33ab46(0x37f)](_0x19a2cc[_0x33ab46(0x31b)])[_0x33ab46(0x45f)]({'priority':0x14,'interceptor':_0x19a2cc[_0x33ab46(0x5ac)]({'maxParallel':0x6})}),this['_injector']['get'](_0x1e0133),(_0x4423ff=this[_0x33ab46(0x3c3)])!=null&&_0x4423ff[_0x33ab46(0x391)]||this[_0x33ab46(0x4cd)][_0x33ab46(0x37f)](_0x2010a0['LocalCacheService'])[_0x33ab46(0x1c3)](),(_0x54fd49=this[_0x33ab46(0x3c3)])!=null&&_0x54fd49[_0x33ab46(0x492)]&&this[_0x33ab46(0x4cd)][_0x33ab46(0x37f)](_0x36375a),this['_injector'][_0x33ab46(0x37f)](_0x2010a0[_0x33ab46(0x1f8)]),this[_0x33ab46(0x4cd)][_0x33ab46(0x532)](_0x2010a0[_0x33ab46(0x2b3)])&&this[_0x33ab46(0x4cd)][_0x33ab46(0x37f)](_0x2010a0[_0x33ab46(0x2b3)]);}},_0x23eae8(_0x2010a0['UniverCollaborationClientPlugin'],'pluginName',_0x474b65),_0x2010a0[_0x2b1dc8(0x4fa)]=_0x5c9d00([_0x5821d4[_0x2b1dc8(0x256)](_0xf29ce7[_0x2b1dc8(0x4dc)]),_0x152187(0x1,_0x5821d4['ILogService']),_0x152187(0x2,_0x33b476[_0x2b1dc8(0x294)]),_0x152187(0x3,_0x5821d4[_0x2b1dc8(0x503)](_0x5821d4['Injector'])),_0x152187(0x4,_0x5821d4[_0x2b1dc8(0x47d)])],_0x2010a0['UniverCollaborationClientPlugin']),_0x2010a0[_0x2b1dc8(0x4e0)]=_0x338186,_0x2010a0['COLLAB_SUBMIT_CHANGESET_URL_KEY']=_0x5d7118,_0x2010a0['COLLAB_WEB_SOCKET_URL_KEY']=_0x26584f,_0x2010a0[_0x2b1dc8(0x47f)]=_0x109234,_0x2010a0[_0x2b1dc8(0x34b)]=_0xf6cf50,_0x2010a0[_0x2b1dc8(0x498)]=_0x4bccc8,_0x2010a0[_0x2b1dc8(0x528)]=_0x28f4bb,_0x2010a0[_0x2b1dc8(0x457)]=_0x58f797,_0x2010a0[_0x2b1dc8(0x2e1)]=_0x5c41db,_0x2010a0[_0x2b1dc8(0x373)]=_0x3b25ce,_0x2010a0[_0x2b1dc8(0x365)]=_0x120b3c,_0x2010a0['LOGIN_URL_KEY']=_0x4036af,_0x2010a0['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x183075,_0x2010a0[_0x2b1dc8(0x45b)]=_0x97fb7f,_0x2010a0[_0x2b1dc8(0x59d)]=_0x22f28d,_0x2010a0[_0x2b1dc8(0x577)]=_0x5457b5,_0x2010a0[_0x2b1dc8(0x591)]=_0x58e615,_0x2010a0[_0x2b1dc8(0x4b4)]=_0x22df64,_0x2010a0[_0x2b1dc8(0x389)]=_0x239bf7,_0x2010a0[_0x2b1dc8(0x4bd)]=_0x411e41,_0x2010a0[_0x2b1dc8(0x1c1)]=_0x4d079d,Object[_0x2b1dc8(0x47b)](_0x2010a0,Symbol['toStringTag'],{'value':_0x2b1dc8(0x3e8)});}));
1
+ (function(_0x8d81a1,_0x1f2f35){const _0x317ea5=_0x2bb3,_0x404dfb=_0x8d81a1();while(!![]){try{const _0x5f0a6a=-parseInt(_0x317ea5(0xe1))/0x1+parseInt(_0x317ea5(0x473))/0x2+-parseInt(_0x317ea5(0x267))/0x3+parseInt(_0x317ea5(0x488))/0x4+parseInt(_0x317ea5(0x1c7))/0x5+-parseInt(_0x317ea5(0x1db))/0x6+parseInt(_0x317ea5(0x23a))/0x7;if(_0x5f0a6a===_0x1f2f35)break;else _0x404dfb['push'](_0x404dfb['shift']());}catch(_0x1b4353){_0x404dfb['push'](_0x404dfb['shift']());}}}(_0x3a29,0xe8fab),function(_0x1b1b5a,_0x5e41a9){const _0x611a54=_0x2bb3;typeof exports==_0x611a54(0x1f5)&&typeof module<'u'?_0x5e41a9(exports,require(_0x611a54(0x10a)),require(_0x611a54(0x4d2)),require(_0x611a54(0x182)),require('@univerjs/design'),require(_0x611a54(0x444)),require(_0x611a54(0x3d4)),require(_0x611a54(0x454)),require(_0x611a54(0x2be)),require(_0x611a54(0x13f)),require('@univerjs/docs-ui'),require('@univerjs/sheets'),require(_0x611a54(0x14f)),require('@univerjs/drawing'),require(_0x611a54(0x126)),require(_0x611a54(0x30d)),require(_0x611a54(0x12b)),require('clsx'),require(_0x611a54(0xda)),require(_0x611a54(0x32a))):typeof define==_0x611a54(0x1e7)&&define[_0x611a54(0x1ea)]?define([_0x611a54(0x4b3),_0x611a54(0x10a),_0x611a54(0x4d2),_0x611a54(0x182),_0x611a54(0x107),'@univerjs/ui',_0x611a54(0x3d4),'@univerjs-pro/collaboration','@univerjs/telemetry',_0x611a54(0x13f),_0x611a54(0x4c4),'@univerjs/sheets',_0x611a54(0x14f),'@univerjs/drawing',_0x611a54(0x126),_0x611a54(0x30d),_0x611a54(0x12b),_0x611a54(0x165),_0x611a54(0xda),_0x611a54(0x32a)],_0x5e41a9):(_0x1b1b5a=typeof globalThis<'u'?globalThis:_0x1b1b5a||self,_0x5e41a9(_0x1b1b5a[_0x611a54(0x24e)]={},_0x1b1b5a[_0x611a54(0x33f)],_0x1b1b5a[_0x611a54(0x4d2)],_0x1b1b5a[_0x611a54(0x4d2)][_0x611a54(0x472)],_0x1b1b5a[_0x611a54(0x4b6)],_0x1b1b5a[_0x611a54(0x438)],_0x1b1b5a[_0x611a54(0x10f)],_0x1b1b5a[_0x611a54(0x468)],_0x1b1b5a[_0x611a54(0x2b3)],_0x1b1b5a[_0x611a54(0x418)],_0x1b1b5a[_0x611a54(0x167)],_0x1b1b5a[_0x611a54(0x133)],_0x1b1b5a[_0x611a54(0xdf)],_0x1b1b5a[_0x611a54(0x3ae)],_0x1b1b5a['UniverEngineFormula'],_0x1b1b5a[_0x611a54(0x305)],_0x1b1b5a[_0x611a54(0x2a8)],_0x1b1b5a[_0x611a54(0x165)],_0x1b1b5a[_0x611a54(0x13e)],_0x1b1b5a['UniverLicense']));}(this,function(_0xff46cc,_0x16d562,_0x1f1780,_0xdd90c,_0x516637,_0x5f2673,_0x494277,_0x1f42e3,_0x267f31,_0x412f6a,_0x123d63,_0x30fd53,_0x4c937c,_0x33ea92,_0x5b77fa,_0x3f2b28,_0x53f0ab,_0x290bfa,_0x2c05f2,_0x2aaf28){'use strict';const _0x184c40=_0x2bb3;var _0x199610=Object[_0x184c40(0x471)],_0x1940a9=(_0xe20cd6,_0x25058b,_0x581ac5)=>_0x25058b in _0xe20cd6?_0x199610(_0xe20cd6,_0x25058b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x581ac5}):_0xe20cd6[_0x25058b]=_0x581ac5,_0x1fbb55=(_0x717b83,_0xa96b9b,_0x40a90a)=>_0x1940a9(_0x717b83,typeof _0xa96b9b!=_0x184c40(0x1cc)?_0xa96b9b+'':_0xa96b9b,_0x40a90a);const _0x3521ea=_0x184c40(0x45e),_0x43d0da=_0x184c40(0x401),_0x2d7a77=_0x184c40(0x172),_0x142850=_0x184c40(0x1f3),_0x306eb0='COLLAB_WEB_SOCKET_URL',_0xc3dd42='ws://127.0.0.1:8000/universer-api/comb/connect',_0x446ff7='HEARTBEAT_INTERVAL',_0xe2e447=_0x184c40(0x493),_0x1fe909=_0x184c40(0xfe),_0x103e56=_0x184c40(0x239),_0x13fd55=_0x184c40(0x359),_0x3853f0='/universer-api/comb',_0x465855=_0x184c40(0x2e9),_0x514271='/universer-api/oidc/authpage';var _0x4803e2=(_0x4bfad3=>(_0x4bfad3[_0x4bfad3['UNDEFINED']=0x0]=_0x184c40(0x332),_0x4bfad3[_0x4bfad3['OK']=0x1]='OK',_0x4bfad3[_0x4bfad3[_0x184c40(0x441)]=0x2]=_0x184c40(0x441),_0x4bfad3[_0x4bfad3['PERMISSION_DENIED']=0x3]=_0x184c40(0x110),_0x4bfad3[_0x4bfad3[_0x184c40(0x325)]=0x4]=_0x184c40(0x325),_0x4bfad3[_0x4bfad3['UNAUTHENTICATED']=0x5]=_0x184c40(0x2e7),_0x4bfad3[_0x4bfad3['ALREADY_EXISTS']=0x6]=_0x184c40(0x4c6),_0x4bfad3[_0x4bfad3[_0x184c40(0x3e7)]=0x7]=_0x184c40(0x3e7),_0x4bfad3[_0x4bfad3['TOO_MANY_REQUESTS']=0x8]=_0x184c40(0x2db),_0x4bfad3[_0x4bfad3[_0x184c40(0x334)]=0x9]='COMPLETION_FINISHED',_0x4bfad3[_0x4bfad3['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x4bfad3[_0x4bfad3[_0x184c40(0x26a)]=0x1771]=_0x184c40(0x26a),_0x4bfad3[_0x4bfad3[_0x184c40(0x197)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x4bfad3[_0x4bfad3[_0x184c40(0x1e0)]=0x1b59]='APPLY_REJECT',_0x4bfad3[_0x4bfad3[_0x184c40(0x311)]=0x1b5a]=_0x184c40(0x311),_0x4bfad3[_0x4bfad3[_0x184c40(0x281)]=0x1b5b]=_0x184c40(0x281),_0x4bfad3[_0x4bfad3[_0x184c40(0x4d9)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x4bfad3[_0x4bfad3[_0x184c40(0x440)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x4bfad3[_0x4bfad3[_0x184c40(0x25e)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x4bfad3[_0x4bfad3[_0x184c40(0x337)]=0x232a]=_0x184c40(0x337),_0x4bfad3[_0x4bfad3[_0x184c40(0x4b4)]=0x232b]=_0x184c40(0x4b4),_0x4bfad3[_0x4bfad3['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x184c40(0xb3),_0x4bfad3[_0x4bfad3[_0x184c40(0x19c)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x4bfad3[_0x4bfad3[_0x184c40(0x21e)]=0x2711]=_0x184c40(0x21e),_0x4bfad3[_0x4bfad3['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x184c40(0x3c7),_0x4bfad3[_0x4bfad3[_0x184c40(0xb6)]=0x2713]=_0x184c40(0xb6),_0x4bfad3[_0x4bfad3[_0x184c40(0x287)]=0x2714]=_0x184c40(0x287),_0x4bfad3[_0x4bfad3[_0x184c40(0x252)]=-0x1]=_0x184c40(0x252),_0x4bfad3))(_0x4803e2||{}),_0x55b5ea=(_0x112cab=>(_0x112cab[_0x112cab[_0x184c40(0x298)]=0x0]=_0x184c40(0x298),_0x112cab[_0x112cab[_0x184c40(0x2f5)]=0x1]='UNIVER_DOC',_0x112cab[_0x112cab[_0x184c40(0x1ce)]=0x2]='UNIVER_SHEET',_0x112cab[_0x112cab[_0x184c40(0x29c)]=0x3]=_0x184c40(0x29c),_0x112cab[_0x112cab['UNIVER_PROJECT']=0x4]=_0x184c40(0x178),_0x112cab[_0x112cab[_0x184c40(0x252)]=-0x1]=_0x184c40(0x252),_0x112cab))(_0x55b5ea||{}),_0x2ae438=(_0x5d6548=>(_0x5d6548[_0x5d6548['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x5d6548[_0x5d6548[_0x184c40(0x485)]=0x1]='HELLO',_0x5d6548[_0x5d6548[_0x184c40(0x263)]=0x2]=_0x184c40(0x263),_0x5d6548[_0x5d6548[_0x184c40(0x4a9)]=0x3]=_0x184c40(0x4a9),_0x5d6548[_0x5d6548[_0x184c40(0x377)]=0x4]=_0x184c40(0x377),_0x5d6548[_0x5d6548[_0x184c40(0x3b6)]=0x5]=_0x184c40(0x3b6),_0x5d6548[_0x5d6548[_0x184c40(0x4b1)]=0x6]=_0x184c40(0x4b1),_0x5d6548[_0x5d6548[_0x184c40(0x252)]=-0x1]=_0x184c40(0x252),_0x5d6548))(_0x2ae438||{}),_0x5a0c3a=(_0x5721d5=>(_0x5721d5[_0x5721d5['UNKNOWN_CODE']=0x0]='UNKNOWN_CODE',_0x5721d5[_0x5721d5['OK']=0x1]='OK',_0x5721d5[_0x5721d5[_0x184c40(0xbe)]=0x2]=_0x184c40(0xbe),_0x5721d5[_0x5721d5[_0x184c40(0x252)]=-0x1]=_0x184c40(0x252),_0x5721d5))(_0x5a0c3a||{}),_0x4a0f51=(_0x2dd55e=>(_0x2dd55e[_0x2dd55e['Undefined']=0x0]='Undefined',_0x2dd55e[_0x2dd55e[_0x184c40(0x329)]=0x1]='HttpImport',_0x2dd55e[_0x2dd55e[_0x184c40(0x49e)]=0x2]=_0x184c40(0x49e),_0x2dd55e[_0x2dd55e[_0x184c40(0x3e5)]=0x3]=_0x184c40(0x3e5),_0x2dd55e[_0x2dd55e[_0x184c40(0x2a1)]=0x4]=_0x184c40(0x2a1),_0x2dd55e[_0x2dd55e[_0x184c40(0x252)]=-0x1]=_0x184c40(0x252),_0x2dd55e))(_0x4a0f51||{});const _0x5a4b90=_0x184c40(0x152),_0x17a026={};function _0x3f3a5c(_0x2afc6e){const _0x24e44e=_0x184c40;var _0x153f8e,_0x5637ee,_0x1b869e,_0x155a9c;const _0x14f9ad=_0x2afc6e[_0x24e44e(0xe3)],_0x2aa04d=JSON['parse'](_0x14f9ad);switch(_0x2aa04d[_0x24e44e(0x125)]){case _0x2ae438['HEARTBEAT']:case _0x2ae438['HELLO']:{const _0x539274=_0x2aa04d[_0x24e44e(0x32f)];return{..._0x2aa04d,'data':_0x539274,'cmd':_0x2aa04d[_0x24e44e(0x125)]};}case _0x2ae438['JOIN']:{const _0x5c5670=_0x2aa04d[_0x24e44e(0x2a4)];return{..._0x2aa04d,'data':_0x5c5670,'cmd':_0x2aa04d[_0x24e44e(0x125)]};}case _0x2ae438[_0x24e44e(0x4b1)]:{const _0x90286a=_0x2aa04d[_0x24e44e(0x312)];switch(_0x90286a['eventID']){case _0x1f42e3['CollaborationEvent']['PERMISSION_REJ']:return{..._0x2aa04d,'data':{..._0x90286a,'data':(_0x153f8e=_0x90286a[_0x24e44e(0x190)])==null?void 0x0:_0x153f8e['cs']},'cmd':_0x2aa04d['cmd']};case _0x1f42e3[_0x24e44e(0x336)][_0x24e44e(0x47e)]:return{..._0x2aa04d,'data':{..._0x90286a,'data':(_0x5637ee=_0x90286a['csAckEvent'])==null?void 0x0:_0x5637ee['cs']},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3[_0x24e44e(0x336)][_0x24e44e(0x4d5)]:return{..._0x2aa04d,'data':{..._0x90286a,'data':(_0x1b869e=_0x90286a[_0x24e44e(0xe8)])==null?void 0x0:_0x1b869e['cs']},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3[_0x24e44e(0x336)][_0x24e44e(0x3b0)]:return{..._0x2aa04d,'data':{..._0x90286a,'data':(_0x155a9c=_0x90286a[_0x24e44e(0x1de)])==null?void 0x0:_0x155a9c['cs']},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3[_0x24e44e(0x336)]['UPDATE_CURSOR']:return{..._0x2aa04d,'data':{..._0x90286a,'data':_0x90286a[_0x24e44e(0xf3)]},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3[_0x24e44e(0x336)][_0x24e44e(0x353)]:return{..._0x2aa04d,'data':{..._0x90286a,'data':_0x90286a[_0x24e44e(0x1c8)]},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3[_0x24e44e(0x336)]['USERS_LEAVE']:return{..._0x2aa04d,'data':{..._0x90286a,'data':_0x90286a['leaveEvent']},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3[_0x24e44e(0x336)][_0x24e44e(0x160)]:return{..._0x2aa04d,'data':{..._0x90286a,'data':_0x90286a['liveShareNewHost']},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3[_0x24e44e(0x336)][_0x24e44e(0x1e4)]:case _0x1f42e3[_0x24e44e(0x336)][_0x24e44e(0x2f3)]:return{..._0x2aa04d,'data':{..._0x90286a,'data':_0x90286a[_0x24e44e(0x3c9)]},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3[_0x24e44e(0x336)]['LIVESHARE_TERMINATE']:return{..._0x2aa04d,'data':{..._0x90286a,'data':_0x90286a[_0x24e44e(0x405)]},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3[_0x24e44e(0x336)][_0x24e44e(0x19f)]:return{..._0x2aa04d,'data':_0x90286a,'cmd':_0x2aa04d['cmd']};case _0x1f42e3[_0x24e44e(0x336)][_0x24e44e(0x43c)]:return{..._0x2aa04d,'data':{..._0x90286a,'data':_0x90286a[_0x24e44e(0x49f)]},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3[_0x24e44e(0x336)][_0x24e44e(0x3c1)]:return{..._0x2aa04d,'data':{..._0x90286a,'data':_0x90286a[_0x24e44e(0x1a5)]},'cmd':_0x2aa04d[_0x24e44e(0x125)]};case _0x1f42e3['CollaborationEvent'][_0x24e44e(0x307)]:return{..._0x2aa04d,'data':{..._0x90286a,'data':_0x90286a['shouldCloseConn']},'cmd':_0x2aa04d['cmd']};default:return _0x2aa04d;}}default:return _0x2aa04d;}}function _0xa22d57(_0x276733){const _0x477a6b=_0x184c40;switch(_0x276733[_0x477a6b(0x125)]){case _0x2ae438[_0x477a6b(0x3b6)]:case _0x2ae438['HELLO']:return JSON['stringify']({'cmd':_0x276733['cmd'],'routeKey':_0x276733[_0x477a6b(0x1bb)]});case _0x2ae438[_0x477a6b(0x377)]:{let _0x35f0e9;switch(_0x276733[_0x477a6b(0xe3)][_0x477a6b(0x150)]){case _0x1f42e3[_0x477a6b(0x336)]['UPDATE_CURSOR']:{_0x35f0e9={'eventID':_0x1f42e3[_0x477a6b(0x336)][_0x477a6b(0x3cd)],'updateCursorEvent':_0x276733[_0x477a6b(0xe3)]['data']};break;}case _0x1f42e3[_0x477a6b(0x336)][_0x477a6b(0xf7)]:{_0x35f0e9={'eventID':_0x1f42e3[_0x477a6b(0x336)][_0x477a6b(0xf7)],'leaveEvent':_0x276733[_0x477a6b(0xe3)][_0x477a6b(0xe3)]};break;}case _0x1f42e3[_0x477a6b(0x336)]['USERS_ENTER']:{_0x35f0e9={'eventID':_0x1f42e3[_0x477a6b(0x336)]['USERS_ENTER'],'joinEvent':_0x276733['data']['data']};break;}case _0x1f42e3[_0x477a6b(0x336)]['LIVESHARE_NEW_HOST']:{_0x35f0e9={'eventID':_0x1f42e3[_0x477a6b(0x336)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x276733[_0x477a6b(0xe3)][_0x477a6b(0xe3)]};break;}case _0x1f42e3[_0x477a6b(0x336)][_0x477a6b(0x2f3)]:{_0x35f0e9={'eventID':_0x1f42e3[_0x477a6b(0x336)][_0x477a6b(0x2f3)],'liveShareOperation':_0x276733['data'][_0x477a6b(0xe3)]};break;}case _0x1f42e3[_0x477a6b(0x336)][_0x477a6b(0x168)]:{_0x35f0e9={'eventID':_0x1f42e3[_0x477a6b(0x336)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x276733[_0x477a6b(0xe3)][_0x477a6b(0xe3)]};break;}case _0x1f42e3[_0x477a6b(0x336)][_0x477a6b(0x3db)]:{_0x35f0e9={'eventID':_0x1f42e3['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x276733['data'][_0x477a6b(0xe3)]};break;}case _0x1f42e3[_0x477a6b(0x336)][_0x477a6b(0x1e4)]:{_0x35f0e9={'eventID':_0x1f42e3['CollaborationEvent'][_0x477a6b(0x1e4)]};break;}default:_0x35f0e9={'eventID':_0x276733[_0x477a6b(0xe3)][_0x477a6b(0x150)]};}return JSON[_0x477a6b(0x313)]({'cmd':_0x276733[_0x477a6b(0x125)],'routeKey':_0x276733['routeKey'],'collaMsg':_0x35f0e9});}case _0x2ae438[_0x477a6b(0x263)]:return JSON[_0x477a6b(0x313)]({'cmd':_0x276733[_0x477a6b(0x125)],'routeKey':_0x276733[_0x477a6b(0x1bb)],'joinReq':_0x276733[_0x477a6b(0xe3)]});case _0x2ae438[_0x477a6b(0x4a9)]:return JSON[_0x477a6b(0x313)]({'cmd':_0x276733[_0x477a6b(0x125)],'routeKey':_0x276733['routeKey'],'leaveReq':_0x276733['data']});default:throw new Error(_0x477a6b(0x4d7));}}var _0x514397=Object['defineProperty'],_0x262934=Object[_0x184c40(0x34e)],_0x180e4e=(_0x14e389,_0x5e072e,_0x87fa2c,_0x6fcd2f)=>{for(var _0x2e35f4=_0x6fcd2f>0x1?void 0x0:_0x6fcd2f?_0x262934(_0x5e072e,_0x87fa2c):_0x5e072e,_0x1a7f40=_0x14e389['length']-0x1,_0x288172;_0x1a7f40>=0x0;_0x1a7f40--)(_0x288172=_0x14e389[_0x1a7f40])&&(_0x2e35f4=(_0x6fcd2f?_0x288172(_0x5e072e,_0x87fa2c,_0x2e35f4):_0x288172(_0x2e35f4))||_0x2e35f4);return _0x6fcd2f&&_0x2e35f4&&_0x514397(_0x5e072e,_0x87fa2c,_0x2e35f4),_0x2e35f4;},_0x442539=(_0x417664,_0x5f105d)=>(_0x5cb18e,_0x111e2f)=>_0x5f105d(_0x5cb18e,_0x111e2f,_0x417664);const _0x4606ff=_0x16d562[_0x184c40(0xcf)]('univer-pro.collaboration-client-socket-service');function _0x52d94a(_0x2a68fe,_0x3e2251,_0x1242a5){return _0x2a68fe+'/'+_0x3e2251+'/unit/'+_0x1242a5+'/new_changes';}_0xff46cc[_0x184c40(0x16c)]=class extends _0x16d562[_0x184c40(0x15c)]{constructor(_0x4b4e49,_0x4c138a,_0x522f12,_0x3fbbe8,_0x3810e7){const _0xa2c35a=_0x184c40;super(),this['_http']=_0x4b4e49,this['_ws']=_0x4c138a,this[_0xa2c35a(0x140)]=_0x522f12,this[_0xa2c35a(0xe6)]=_0x3fbbe8,this['_snapshotServerService']=_0x3810e7;}[_0x184c40(0x42e)](_0x1a70fe){const _0x2ce0b5=_0x184c40,_0x87c032=this['_ws'][_0x2ce0b5(0x42e)](_0x1a70fe);if(!_0x87c032)throw new Error(_0x2ce0b5(0x46c));const _0x4ca940=new _0x16d562[(_0x2ce0b5(0x2ec))](),_0x399df9=new _0x1f1780[(_0x2ce0b5(0x193))]();_0x4ca940[_0x2ce0b5(0x279)](_0x87c032[_0x2ce0b5(0x249)][_0x2ce0b5(0x462)](_0x3d6e8b=>_0x399df9[_0x2ce0b5(0x2d2)](_0x3d6e8b))),_0x4ca940[_0x2ce0b5(0x279)](_0x16d562[_0x2ce0b5(0x228)](()=>_0x399df9[_0x2ce0b5(0x12e)]()));const _0x318022=new _0x1f1780[(_0x2ce0b5(0x193))]();_0x4ca940[_0x2ce0b5(0x279)](_0x87c032[_0x2ce0b5(0xd8)]['subscribe'](_0x20226b=>_0x318022[_0x2ce0b5(0x2d2)](_0x20226b))),_0x4ca940['add'](_0x16d562[_0x2ce0b5(0x228)](()=>_0x318022[_0x2ce0b5(0x12e)]()));const _0x5a719b=new _0x1f1780[(_0x2ce0b5(0x193))]();_0x4ca940[_0x2ce0b5(0x279)](_0x87c032['message$'][_0x2ce0b5(0x462)](_0x3a5f0b=>{const _0x41eb41=_0x2ce0b5,_0x16e9f2=_0x3f3a5c(_0x3a5f0b);_0x5a719b[_0x41eb41(0x2d2)](_0x16e9f2);})),_0x4ca940[_0x2ce0b5(0x279)](_0x16d562[_0x2ce0b5(0x228)](()=>_0x5a719b[_0x2ce0b5(0x12e)]()));let _0x124a55;const _0x4a05da=()=>{const _0x4dd37f=_0x2ce0b5;_0x318022[_0x4dd37f(0x2d2)](new Event('connection\x20error')),_0x399df9[_0x4dd37f(0x2d2)](new CloseEvent(_0x4dd37f(0x1ec))),_0x124a55[_0x4dd37f(0x2c3)]();};return _0x124a55={'memberID':'','close$':_0x399df9[_0x2ce0b5(0x376)](),'error$':_0x318022['asObservable'](),'open$':_0x87c032[_0x2ce0b5(0x22e)],'message$':_0x5a719b['asObservable'](),'send':_0x316c15=>{const _0x18ded7=_0x2ce0b5;if(_0x316c15[_0x18ded7(0x125)]===_0x2ae438[_0x18ded7(0x377)]){if(_0x316c15[_0x18ded7(0xe3)][_0x18ded7(0x150)]===_0x1f42e3['CollaborationEvent'][_0x18ded7(0x4e0)]){this[_0x18ded7(0x1ed)](_0x124a55,_0x316c15[_0x18ded7(0xe3)])['catch'](_0xe4dcd2=>{const _0x308b9a=_0x18ded7;this[_0x308b9a(0xe6)]['error'](_0xe4dcd2),_0x4a05da();});return;}if(_0x316c15[_0x18ded7(0xe3)]['eventID']===_0x1f42e3['CollaborationEvent'][_0x18ded7(0x430)]){const _0x5bf369=_0x316c15['data'];this['_fetchMissChangesets'](_0x5bf369)[_0x18ded7(0xbf)](_0x55e77c=>{const _0x107a0d=_0x18ded7;_0x5a719b[_0x107a0d(0x2d2)]({'cmd':_0x2ae438[_0x107a0d(0x4b1)],'code':_0x5a0c3a['OK'],'routeKey':_0x5bf369[_0x107a0d(0xe3)]['unitID'],'routeType':'','data':{'eventID':_0x1f42e3[_0x107a0d(0x336)][_0x107a0d(0x112)],'data':{'changesets':_0x55e77c}}});})[_0x18ded7(0x38e)](_0x56a8e7=>{const _0x1425fb=_0x18ded7;this[_0x1425fb(0xe6)][_0x1425fb(0x28e)](_0x56a8e7),_0x4a05da();});return;}}_0x87c032[_0x18ded7(0x17d)](_0xa22d57(_0x316c15));},'close':()=>{const _0xa0c875=_0x2ce0b5;_0x87c032[_0xa0c875(0x2c3)](),_0x4ca940[_0xa0c875(0x35a)]();}},_0x124a55;}async[_0x184c40(0x1ed)](_0x20de89,_0x42388f){const _0x55cfd9=_0x184c40;var _0x31fb7b,_0x20667f;const {unitType:_0x4385aa,unitID:_0x78d96a,changeset:_0x19d839}=_0x42388f[_0x55cfd9(0xe3)],_0x5f0f1f={'unitID':_0x78d96a,'memberID':_0x20de89[_0x55cfd9(0x3a5)],'type':_0x4385aa,'changeset':_0x1f42e3[_0x55cfd9(0x322)](_0x19d839)},_0x531160=this[_0x55cfd9(0x140)][_0x55cfd9(0xfb)](_0x13fd55),_0x4f7d55=this[_0x55cfd9(0x140)][_0x55cfd9(0xfb)](_0x5a4b90),_0x1b369b=_0x52d94a((_0x20667f=(_0x31fb7b=_0x4f7d55==null?void 0x0:_0x4f7d55[_0x55cfd9(0x3d8)])!=null?_0x31fb7b:_0x531160)!=null?_0x20667f:_0x3853f0,_0x4385aa,_0x78d96a);try{await this['_http'][_0x55cfd9(0x46a)](_0x1b369b,{'body':_0x5f0f1f});}catch(_0x51f2c9){throw this[_0x55cfd9(0xe6)]['error'](_0x55cfd9(0x32c),_0x55cfd9(0x1eb)),_0x51f2c9;}}async['_fetchMissChangesets'](_0x2a93dd){const _0x9dd97b=_0x184c40,{unitID:_0x2e8715,from:_0x470f41,to:_0x276e90,unitType:_0x25b47d}=_0x2a93dd[_0x9dd97b(0xe3)];return(await this[_0x9dd97b(0x453)][_0x9dd97b(0x143)]({'metadata':void 0x0},{'unitID':_0x2e8715,'type':_0x25b47d,'from':_0x470f41,'to':_0x276e90}))[_0x9dd97b(0x361)];}},_0xff46cc['CollaborationSocketService']=_0x180e4e([_0x442539(0x0,_0x16d562[_0x184c40(0x1e9)](_0x494277[_0x184c40(0x265)])),_0x442539(0x1,_0x16d562[_0x184c40(0x1e9)](_0x494277[_0x184c40(0x499)])),_0x442539(0x2,_0x16d562[_0x184c40(0x317)]),_0x442539(0x3,_0x16d562[_0x184c40(0x31a)]),_0x442539(0x4,_0x1f42e3[_0x184c40(0x145)])],_0xff46cc[_0x184c40(0x16c)]);const _0x1a7a7e=_0x184c40(0x44d);function _0x3602(_0x44ff2f){const _0x4b78c2=_0x184c40;return JSON[_0x4b78c2(0x313)](_0x44ff2f)[_0x4b78c2(0x3bc)];}class _0xd11c7b{constructor(){const _0x1dd87e=_0x184c40;_0x1fbb55(this,_0x1dd87e(0x1a9),new _0x1f1780[(_0x1dd87e(0x193))]()),_0x1fbb55(this,'commentUpdate$',this[_0x1dd87e(0x1a9)][_0x1dd87e(0x376)]());}[_0x184c40(0x348)](_0x5b1c82){const _0x3e0b6f=_0x184c40;this[_0x3e0b6f(0x1a9)]['next'](_0x5b1c82);}}var _0x58f4f3=Object[_0x184c40(0x471)],_0x347b08=Object[_0x184c40(0x34e)],_0x545bdb=(_0x597197,_0x50ad5d,_0x5ce0f8,_0x43e8d4)=>{const _0x10eff4=_0x184c40;for(var _0x5c9c80=_0x43e8d4>0x1?void 0x0:_0x43e8d4?_0x347b08(_0x50ad5d,_0x5ce0f8):_0x50ad5d,_0x250a64=_0x597197[_0x10eff4(0x3bc)]-0x1,_0x3d57fe;_0x250a64>=0x0;_0x250a64--)(_0x3d57fe=_0x597197[_0x250a64])&&(_0x5c9c80=(_0x43e8d4?_0x3d57fe(_0x50ad5d,_0x5ce0f8,_0x5c9c80):_0x3d57fe(_0x5c9c80))||_0x5c9c80);return _0x43e8d4&&_0x5c9c80&&_0x58f4f3(_0x50ad5d,_0x5ce0f8,_0x5c9c80),_0x5c9c80;},_0x3c56c0=(_0x10781b,_0x34cf01)=>(_0x30d7d8,_0xb817d4)=>_0x34cf01(_0x30d7d8,_0xb817d4,_0x10781b);let _0x19c6b5=class extends _0x16d562[_0x184c40(0x15c)]{constructor(_0x8f6019,_0x23a27f){const _0x4adc4a=_0x184c40;super(),_0x1fbb55(this,_0x4adc4a(0x395),new Map()),(this[_0x4adc4a(0x1b5)]=_0x8f6019,this[_0x4adc4a(0x216)]=_0x23a27f,this[_0x4adc4a(0xce)](_0x16d562[_0x4adc4a(0x228)](_0x1f1780[_0x4adc4a(0x2dd)](this[_0x4adc4a(0x1b5)][_0x4adc4a(0x40c)](_0x16d562[_0x4adc4a(0x1f9)]['UNIVER_SHEET'])['pipe'](_0xdd90c['map'](_0x37b750=>_0x37b750[_0x4adc4a(0x17e)]())),this[_0x4adc4a(0x1b5)][_0x4adc4a(0x40c)](_0x16d562[_0x4adc4a(0x1f9)][_0x4adc4a(0x2f5)])['pipe'](_0xdd90c[_0x4adc4a(0x3ed)](_0x5a3280=>_0x5a3280['getUnitId']())),this[_0x4adc4a(0x1b5)]['getTypeOfUnitDisposed$'](_0x16d562[_0x4adc4a(0x1f9)]['UNIVER_SLIDE'])['pipe'](_0xdd90c[_0x4adc4a(0x3ed)](_0x3df84e=>_0x3df84e[_0x4adc4a(0x17e)]())))[_0x4adc4a(0x462)](_0x5aae83=>this[_0x4adc4a(0x188)](_0x5aae83)))));}[_0x184c40(0x44e)](_0x4276f4){const _0x60d716=_0x184c40;this[_0x60d716(0x216)][_0x60d716(0x44e)](_0x4276f4);}['getCurrentUser'](){const _0x16d914=_0x184c40;return this[_0x16d914(0x216)][_0x16d914(0x203)]();}[_0x184c40(0x2cb)](_0x214128,_0x444592){const _0x559abb=_0x184c40;let _0x2e123f=this[_0x559abb(0x395)][_0x559abb(0x3d9)](_0x214128);_0x2e123f||(_0x2e123f=new _0xf1a726(),this['_roomMembers']['set'](_0x214128,_0x2e123f)),_0x2e123f[_0x559abb(0x2cb)](_0x444592);}['removeMember'](_0x449b07,_0x535fc6){const _0x4dad74=_0x184c40,_0x5825d7=this[_0x4dad74(0x395)][_0x4dad74(0x3d9)](_0x449b07);_0x5825d7&&_0x5825d7[_0x4dad74(0xee)](_0x535fc6);}['getRoom'](_0x23f6b2){const _0x18857d=_0x184c40;return this[_0x18857d(0x395)][_0x18857d(0x3d9)](_0x23f6b2);}[_0x184c40(0x3b4)](_0x15ba2b,_0x4ee433){const _0xd6ac4d=_0x184c40,_0x5c845b=this[_0xd6ac4d(0x395)][_0xd6ac4d(0x3d9)](_0x15ba2b);if(_0x5c845b)return _0x5c845b[_0xd6ac4d(0x3b4)](_0x4ee433);}['_removeRoom'](_0x57537a){const _0x588410=_0x184c40,_0x3f8883=this[_0x588410(0x395)][_0x588410(0x3d9)](_0x57537a);_0x3f8883&&(_0x3f8883['dispose'](),this[_0x588410(0x395)][_0x588410(0x2c9)](_0x57537a));}[_0x184c40(0x35a)](){const _0x34e9f2=_0x184c40;this[_0x34e9f2(0x395)][_0x34e9f2(0x284)](_0x10909b=>_0x10909b[_0x34e9f2(0x35a)]()),this['_roomMembers'][_0x34e9f2(0x460)]();}};_0x19c6b5=_0x545bdb([_0x3c56c0(0x0,_0x16d562[_0x184c40(0x466)]),_0x3c56c0(0x1,_0x16d562['Inject'](_0x16d562[_0x184c40(0x4db)]))],_0x19c6b5);class _0xf1a726 extends _0x16d562[_0x184c40(0x15c)]{constructor(){const _0x390558=_0x184c40;super(...arguments),_0x1fbb55(this,_0x390558(0x3c3),new Map());}['dispose'](){const _0x567eef=_0x184c40;this[_0x567eef(0x3c3)][_0x567eef(0x460)]();}[_0x184c40(0x2cb)](_0x2625bf){const _0x228971=_0x184c40;this[_0x228971(0x3c3)][_0x228971(0x355)](_0x2625bf[_0x228971(0x3a5)],_0x2625bf);}[_0x184c40(0xee)](_0xaad5b5){const _0xf645c9=_0x184c40;this[_0xf645c9(0x3c3)][_0xf645c9(0x2c9)](_0xaad5b5);}[_0x184c40(0x3b4)](_0x4e1a85){const _0x45610a=_0x184c40;return this[_0x45610a(0x3c3)][_0x45610a(0x3d9)](_0x4e1a85);}}var _0x265c2a=Object[_0x184c40(0x471)],_0x23a551=Object[_0x184c40(0x34e)],_0x26cee3=(_0xa82b3f,_0xb87cc8,_0x19916e,_0x1610f3)=>{for(var _0x1fe2a1=_0x1610f3>0x1?void 0x0:_0x1610f3?_0x23a551(_0xb87cc8,_0x19916e):_0xb87cc8,_0x5d8dbf=_0xa82b3f['length']-0x1,_0x40e6cc;_0x5d8dbf>=0x0;_0x5d8dbf--)(_0x40e6cc=_0xa82b3f[_0x5d8dbf])&&(_0x1fe2a1=(_0x1610f3?_0x40e6cc(_0xb87cc8,_0x19916e,_0x1fe2a1):_0x40e6cc(_0x1fe2a1))||_0x1fe2a1);return _0x1610f3&&_0x1fe2a1&&_0x265c2a(_0xb87cc8,_0x19916e,_0x1fe2a1),_0x1fe2a1;},_0x5567a3=(_0x240995,_0x3e1279)=>(_0x20e917,_0x1f1e04)=>_0x3e1279(_0x20e917,_0x1f1e04,_0x240995),_0x17c413=(_0x389d79=>(_0x389d79[_0x389d79[_0x184c40(0x36d)]=0x0]=_0x184c40(0x36d),_0x389d79[_0x389d79[_0x184c40(0x369)]=0x1]='JOINING',_0x389d79[_0x389d79[_0x184c40(0x1dd)]=0x2]=_0x184c40(0x1dd),_0x389d79[_0x389d79['ONLINE']=0x3]='ONLINE',_0x389d79))(_0x17c413||{});_0xff46cc[_0x184c40(0x357)]=class extends _0x16d562[_0x184c40(0x204)]{constructor(_0x1b4547,_0x3affbb,_0x558299,_0x2a11a1,_0x1722f2,_0x5251d2,_0x2fb08c,_0x4cd9d2,_0x5f3d8d,_0xf16166){const _0x4aeef5=_0x184c40;super(),_0x1fbb55(this,_0x4aeef5(0x41a),new _0x1f1780[(_0x4aeef5(0x2f0))](0x0)),_0x1fbb55(this,_0x4aeef5(0x11f),this[_0x4aeef5(0x41a)][_0x4aeef5(0x376)]()),_0x1fbb55(this,_0x4aeef5(0x294),new _0x1f1780['Subject']()),_0x1fbb55(this,_0x4aeef5(0x30c),this[_0x4aeef5(0x294)][_0x4aeef5(0x376)]()),_0x1fbb55(this,_0x4aeef5(0x3c0)),_0x1fbb55(this,_0x4aeef5(0x48f)),_0x1fbb55(this,_0x4aeef5(0x321)),_0x1fbb55(this,_0x4aeef5(0x393),!0x1),_0x1fbb55(this,_0x4aeef5(0x4b9),null),(this[_0x4aeef5(0x1a2)]=_0x1b4547,this[_0x4aeef5(0xe6)]=_0x558299,this['_beforeCloseService']=_0x2a11a1,this[_0x4aeef5(0x4a3)]=_0x1722f2,this[_0x4aeef5(0x140)]=_0x5251d2,this['_localeService']=_0x2fb08c,this[_0x4aeef5(0xcb)]=_0x4cd9d2,this['_commentService']=_0x5f3d8d,this[_0x4aeef5(0x2b8)]=_0xf16166,this['_shouldReportTelemetry']=!!this[_0x4aeef5(0x2b8)],_0x3affbb[_0x4aeef5(0x3b2)](_0x1f1780[_0x4aeef5(0x2e1)](this[_0x4aeef5(0x3fd)]))['subscribe'](_0x1e853c=>{const _0x41dcda=_0x4aeef5;var _0x5d2a5a;typeof _0x1e853c>'u'||(this[_0x41dcda(0x3c0)]=_0x1e853c,_0x1e853c?(this[_0x41dcda(0x24a)](_0x1e853c),this[_0x41dcda(0x48f)]=_0x1e853c[_0x41dcda(0x282)]['subscribe'](_0x2bf287=>{const _0x58a974=_0x41dcda;_0x2bf287['routeKey']===this[_0x58a974(0x1a2)]&&this['_onCombEvent'](_0x2bf287);})):(this[_0x41dcda(0x262)](),this[_0x41dcda(0x41a)]['next'](0x2),(_0x5d2a5a=this[_0x41dcda(0x48f)])==null||_0x5d2a5a['unsubscribe'](),this[_0x41dcda(0x48f)]=null));}),this[_0x4aeef5(0xce)](this['_beforeCloseService']['registerOnClose'](()=>{const _0x4fe19f=_0x4aeef5;var _0x5a2184;(_0x5a2184=this['_socket'])==null||_0x5a2184[_0x4fe19f(0x17d)]({'cmd':_0x2ae438[_0x4fe19f(0x4a9)],'data':{'roomID':this[_0x4fe19f(0x1a2)]}});})));}get[_0x184c40(0x4a0)](){const _0x7b293c=_0x184c40;return this[_0x7b293c(0x41a)]['getValue']();}['getMemberID'](){const _0x436fa0=_0x184c40;var _0xef713d,_0x353bdd;return(_0x353bdd=(_0xef713d=this[_0x436fa0(0x3c0)])==null?void 0x0:_0xef713d[_0x436fa0(0x3a5)])!=null?_0x353bdd:null;}['dispose'](){const _0x1f44fa=_0x184c40;super[_0x1f44fa(0x35a)](),this[_0x1f44fa(0x3fd)][_0x1f44fa(0x2d2)](),this[_0x1f44fa(0x3fd)][_0x1f44fa(0x12e)]();}['close'](){const _0x39b165=_0x184c40;var _0x136174,_0x329a3a;this['_throwTelemetryCollaborationNewChangeset'](),(_0x136174=this[_0x39b165(0x3c0)])==null||_0x136174[_0x39b165(0x17d)]({'cmd':_0x2ae438['LEAVE'],'data':{'roomID':this[_0x39b165(0x1a2)]}}),(_0x329a3a=this[_0x39b165(0x3c0)])==null||_0x329a3a[_0x39b165(0x2c3)](),this[_0x39b165(0x294)][_0x39b165(0x12e)](),this[_0x39b165(0x41a)][_0x39b165(0x12e)](),this[_0x39b165(0x35a)]();}['_onCombEvent'](_0x2362ab){const _0x301b80=_0x184c40;_0x2362ab[_0x301b80(0x125)]===_0x2ae438[_0x301b80(0x263)]?this[_0x301b80(0x496)](_0x2362ab):_0x2362ab[_0x301b80(0x125)]===_0x2ae438[_0x301b80(0x4b1)]&&this[_0x301b80(0x1d9)](_0x2362ab);}[_0x184c40(0x24a)](_0x10d747){const _0x94e17b=_0x184c40;this[_0x94e17b(0x41a)][_0x94e17b(0x2d2)](0x1),_0x10d747[_0x94e17b(0x17d)]({'cmd':_0x2ae438['JOIN'],'routeKey':this[_0x94e17b(0x1a2)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x184c40(0x496)](_0x3ed980){const _0x464a61=_0x184c40;var _0x44b79d;if(_0x3ed980[_0x464a61(0x3a0)]===_0x5a0c3a[_0x464a61(0xbe)]){this[_0x464a61(0x4a3)][_0x464a61(0x1be)]({'type':_0x516637[_0x464a61(0x1ac)][_0x464a61(0xc8)],'content':this[_0x464a61(0x2b4)]['t'](_0x464a61(0x427))}),this[_0x464a61(0x41a)]['next'](0x2);return;}this[_0x464a61(0x41a)][_0x464a61(0x2d2)](0x3);const _0x5b10d9=(_0x44b79d=_0x3ed980['data'][_0x464a61(0xe9)][this[_0x464a61(0x1a2)]])==null?void 0x0:_0x44b79d[_0x464a61(0x4ac)];_0x5b10d9&&_0x5b10d9[_0x464a61(0x284)](_0x47b49d=>this['_memberService'][_0x464a61(0x2cb)](this['_unitID'],_0x47b49d));}[_0x184c40(0x1d9)](_0x3c2043){const _0x4d698c=_0x184c40;try{const _0x4c782a=_0x3c2043[_0x4d698c(0xe3)];switch(_0x4c782a['eventID']){case _0x1f42e3[_0x4d698c(0x336)][_0x4d698c(0x353)]:this[_0x4d698c(0x222)](_0x4c782a),this[_0x4d698c(0x294)][_0x4d698c(0x2d2)](_0x4c782a);break;case _0x1f42e3[_0x4d698c(0x336)][_0x4d698c(0xf7)]:this[_0x4d698c(0x40b)](_0x4c782a),this[_0x4d698c(0x294)][_0x4d698c(0x2d2)](_0x4c782a);break;case _0x1f42e3['CollaborationEvent'][_0x4d698c(0x47e)]:this[_0x4d698c(0x2f4)](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x4d698c(0x2d2)](_0x4c782a);break;case _0x1f42e3[_0x4d698c(0x336)][_0x4d698c(0x19f)]:this[_0x4d698c(0xe6)][_0x4d698c(0x28e)](_0x4d698c(0x367)+JSON[_0x4d698c(0x313)](_0x4c782a)),this['_event$'][_0x4d698c(0x2d2)](_0x4c782a);break;case _0x1f42e3[_0x4d698c(0x336)][_0x4d698c(0x43c)]:this[_0x4d698c(0x2d9)][_0x4d698c(0x348)](_0x4c782a[_0x4d698c(0xe3)]),this[_0x4d698c(0x294)][_0x4d698c(0x2d2)](_0x4c782a);break;default:this[_0x4d698c(0x294)]['next'](_0x4c782a);}}catch(_0x46932e){this[_0x4d698c(0xe6)][_0x4d698c(0x28e)](_0x46932e,_0x3c2043);}}[_0x184c40(0x222)](_0x1b8153){const _0x12d897=_0x184c40;this[_0x12d897(0xcb)][_0x12d897(0x2cb)](this['_unitID'],_0x1b8153[_0x12d897(0xe3)]);}[_0x184c40(0x40b)](_0x52f870){const _0x3caa08=_0x184c40;this[_0x3caa08(0xcb)][_0x3caa08(0xee)](this[_0x3caa08(0x1a2)],_0x52f870[_0x3caa08(0xe3)][_0x3caa08(0x3a5)]);}async[_0x184c40(0x17d)](_0xe15b6f,_0x45f317){const _0x51739d=_0x184c40;if(this[_0x51739d(0x4a0)]!==0x3||!this[_0x51739d(0x3c0)])throw new Error(_0x51739d(0x1d6));try{_0xe15b6f[_0x51739d(0x150)]===_0x1f42e3[_0x51739d(0x336)]['SUBMIT_CHANGESET']&&(this[_0x51739d(0xdd)](),this[_0x51739d(0x105)](_0xe15b6f)),this[_0x51739d(0x3c0)][_0x51739d(0x17d)]({'cmd':_0x2ae438[_0x51739d(0x377)],'routeKey':_0x45f317,'routeType':'','data':_0xe15b6f});}catch(_0x3bc567){this[_0x51739d(0xe6)]['error'](_0x3bc567);}}[_0x184c40(0xdd)](){const _0x416457=_0x184c40;var _0x5cf9f5;this[_0x416457(0x321)]=window[_0x416457(0x231)](()=>{const _0x5914d6=_0x416457;this[_0x5914d6(0x321)]=null,this[_0x5914d6(0x4a3)][_0x5914d6(0x1be)]({'type':_0x516637['MessageType'][_0x5914d6(0x3af)],'content':this[_0x5914d6(0x2b4)]['t'](_0x5914d6(0x1ad))});},(_0x5cf9f5=this[_0x416457(0x140)][_0x416457(0xfb)](_0xe2e447))!=null?_0x5cf9f5:0x4e20);}[_0x184c40(0x40f)](){const _0x4bac44=_0x184c40;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x4bac44(0x321)]),this['_collaborationTimeoutTimer']=null);}[_0x184c40(0x105)](_0x1f393c){const _0x5cdc=_0x184c40;if(!this[_0x5cdc(0x393)])return;const {data:_0x551cdb}=_0x1f393c,{unitID:_0x37a71c,changeset:_0x27fda3}=_0x551cdb,{mutations:_0x4e7b88,type:_0x165b3b}=_0x27fda3;this[_0x5cdc(0x4b9)]={'unitId':_0x37a71c,'type':_0x165b3b,'startTime':performance[_0x5cdc(0x296)](),'stopTime':0x0,'duration':0x0,'size':_0x3602(_0x4e7b88)};}[_0x184c40(0x2f4)](){const _0x3d8401=_0x184c40;if(this[_0x3d8401(0x393)]){if(!this['_telemetryInfo']){this[_0x3d8401(0xe6)][_0x3d8401(0x28e)]('[CollaborationSession]',_0x3d8401(0x451));return;}this[_0x3d8401(0x4b9)]['stopTime']=performance['now'](),this['_telemetryInfo'][_0x3d8401(0x184)]=this[_0x3d8401(0x4b9)][_0x3d8401(0x2e2)]-this[_0x3d8401(0x4b9)][_0x3d8401(0x138)],this['_telemetryService'][_0x3d8401(0x127)](_0x1a7a7e,this[_0x3d8401(0x4b9)]),this[_0x3d8401(0x4b9)]=null;}}[_0x184c40(0x262)](){const _0x13dab6=_0x184c40;this[_0x13dab6(0x4b9)]=null;}},_0xff46cc[_0x184c40(0x357)]=_0x26cee3([_0x5567a3(0x2,_0x16d562[_0x184c40(0x31a)]),_0x5567a3(0x3,_0x5f2673['IBeforeCloseService']),_0x5567a3(0x4,_0x5f2673['IMessageService']),_0x5567a3(0x5,_0x16d562[_0x184c40(0x317)]),_0x5567a3(0x6,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x42c)])),_0x5567a3(0x7,_0x16d562[_0x184c40(0x1e9)](_0x19c6b5)),_0x5567a3(0x8,_0x16d562['Inject'](_0xd11c7b)),_0x5567a3(0x9,_0x16d562['Optional'](_0x267f31[_0x184c40(0x358)]))],_0xff46cc['CollaborationSession']);var _0x3f549c=Object[_0x184c40(0x471)],_0x1ae0ec=Object['getOwnPropertyDescriptor'],_0x136850=(_0x3608f5,_0x46ee3b,_0x10f1a7,_0x3ba654)=>{const _0x2a7802=_0x184c40;for(var _0x58695a=_0x3ba654>0x1?void 0x0:_0x3ba654?_0x1ae0ec(_0x46ee3b,_0x10f1a7):_0x46ee3b,_0x23854c=_0x3608f5[_0x2a7802(0x3bc)]-0x1,_0x1a7d2b;_0x23854c>=0x0;_0x23854c--)(_0x1a7d2b=_0x3608f5[_0x23854c])&&(_0x58695a=(_0x3ba654?_0x1a7d2b(_0x46ee3b,_0x10f1a7,_0x58695a):_0x1a7d2b(_0x58695a))||_0x58695a);return _0x3ba654&&_0x58695a&&_0x3f549c(_0x46ee3b,_0x10f1a7,_0x58695a),_0x58695a;},_0x1af999=(_0x1d3b52,_0x451645)=>(_0xe181ca,_0x3a12ce)=>_0x451645(_0xe181ca,_0x3a12ce,_0x1d3b52);_0xff46cc['CollaborationSessionService']=class extends _0x16d562['Disposable']{constructor(_0x2a25ef,_0x48ed5a,_0x158e6c,_0x4a81ab,_0x16bc48,_0x348bf7){const _0x49f059=_0x184c40;super(),_0x1fbb55(this,'_socket$',new _0x1f1780[(_0x49f059(0x2f0))](void 0x0)),_0x1fbb55(this,_0x49f059(0x4bf),this['_socket$'][_0x49f059(0x376)]()),_0x1fbb55(this,'_candidateSocket',null),_0x1fbb55(this,'_sessions',new Map()),_0x1fbb55(this,'_status$',new _0x1f1780[(_0x49f059(0x2f0))](_0x17c413[_0x49f059(0x36d)])),_0x1fbb55(this,_0x49f059(0x2a6),this[_0x49f059(0x475)]['asObservable']()),_0x1fbb55(this,'_socketReady',!0x1),_0x1fbb55(this,_0x49f059(0x185)),_0x1fbb55(this,_0x49f059(0x352),0x0),_0x1fbb55(this,'_sendHeartbeatTimer'),_0x1fbb55(this,_0x49f059(0x10b)),(this[_0x49f059(0x183)]=_0x2a25ef,this[_0x49f059(0x2b4)]=_0x48ed5a,this[_0x49f059(0x4a3)]=_0x158e6c,this[_0x49f059(0xe6)]=_0x4a81ab,this[_0x49f059(0x140)]=_0x16bc48,this[_0x49f059(0x2dc)]=_0x348bf7,this[_0x49f059(0x3f0)]());}get[_0x184c40(0x3c0)](){const _0x55ccf6=_0x184c40;return this[_0x55ccf6(0x3e1)][_0x55ccf6(0x22f)]();}[_0x184c40(0x3f0)](){const _0x4dc1bd=_0x184c40;this[_0x4dc1bd(0x2bd)](),this[_0x4dc1bd(0x2fd)]();}['dispose'](){const _0x47d2f5=_0x184c40;super[_0x47d2f5(0x35a)](),this[_0x47d2f5(0x409)][_0x47d2f5(0x284)](_0x4376bb=>_0x4376bb[_0x47d2f5(0x35a)]()),this[_0x47d2f5(0x409)][_0x47d2f5(0x460)](),this[_0x47d2f5(0x475)][_0x47d2f5(0x12e)]();}async[_0x184c40(0x371)](_0x2308f1){const _0x2e701f=_0x184c40;if(this[_0x2e701f(0x409)][_0x2e701f(0x4c2)](_0x2308f1))return this['_sessions'][_0x2e701f(0x3d9)](_0x2308f1);this[_0x2e701f(0x1cb)]();const _0x2a40e6=this[_0x2e701f(0x183)][_0x2e701f(0x1d5)](_0xff46cc[_0x2e701f(0x357)],_0x2308f1,this['_socket$']['asObservable']());return this[_0x2e701f(0x409)]['set'](_0x2308f1,_0x2a40e6),_0x2a40e6;}['closeSession'](_0x12a7bd){const _0x230727=_0x184c40;var _0x150e6c;const _0x23cb45=this[_0x230727(0x409)][_0x230727(0x3d9)](_0x12a7bd);_0x23cb45&&(this[_0x230727(0x409)][_0x230727(0x2c9)](_0x12a7bd),_0x23cb45['close']()),this[_0x230727(0x409)]['size']||(_0x150e6c=this[_0x230727(0x3c0)])==null||_0x150e6c[_0x230727(0x2c3)]();}['reconnect'](){const _0x10cb5e=_0x184c40;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x10cb5e(0x185)]),this[_0x10cb5e(0x185)]=null),this['_tryReconnect']();}[_0x184c40(0x3e0)](){const _0xc2888e=_0x184c40;var _0x2278c7,_0x4a69ee;const _0x8bc228=this[_0xc2888e(0x140)][_0xc2888e(0xfb)](_0x306eb0),_0x33d4a5=this[_0xc2888e(0x140)]['getConfig'](_0x5a4b90),_0x48a332=(_0x4a69ee=(_0x2278c7=_0x33d4a5==null?void 0x0:_0x33d4a5[_0xc2888e(0x2af)])!=null?_0x2278c7:_0x8bc228)!=null?_0x4a69ee:_0xc3dd42,_0x140dc5=this[_0xc2888e(0x2dc)][_0xc2888e(0x42e)](_0x48a332);return this[_0xc2888e(0x301)]=_0x140dc5,_0x140dc5;}[_0x184c40(0x1cb)](){const _0x28d0b2=_0x184c40;var _0x31bdfa,_0x908f20;try{const _0x17d51d=(_0x908f20=(_0x31bdfa=this[_0x28d0b2(0x3c0)])!=null?_0x31bdfa:this[_0x28d0b2(0x301)])!=null?_0x908f20:this[_0x28d0b2(0x3e0)]();if(_0x17d51d){const _0x4e89a1=_0x17d51d['send'];_0x17d51d[_0x28d0b2(0x17d)]=_0xb0417=>(this[_0x28d0b2(0x327)](),_0x4e89a1[_0x28d0b2(0x381)](_0x17d51d,[_0xb0417])),_0x17d51d[_0x28d0b2(0x282)][_0x28d0b2(0x462)](_0x38b09c=>this['_onMessage'](_0x17d51d,_0x38b09c)),_0x17d51d[_0x28d0b2(0xd8)][_0x28d0b2(0x3b2)](_0xdd90c[_0x28d0b2(0x26e)](0x1))[_0x28d0b2(0x462)](_0x1ecab2=>this[_0x28d0b2(0xe6)][_0x28d0b2(0x28e)](_0x28d0b2(0x211),_0x1ecab2)),_0x17d51d[_0x28d0b2(0x22e)][_0x28d0b2(0x3b2)](_0xdd90c['take'](0x1))[_0x28d0b2(0x462)](()=>{this['_onConnectionOpen'](_0x17d51d);}),_0x17d51d[_0x28d0b2(0x249)]['pipe'](_0xdd90c['take'](0x1))[_0x28d0b2(0x462)](_0x5427dc=>{const _0x1f73f8=_0x28d0b2;this[_0x1f73f8(0xe6)]['debug'](_0x1f73f8(0x3aa),_0x1f73f8(0x149),_0x5427dc),this['_onConnectionFailed']();});}}catch(_0x5006e5){this['_logService'][_0x28d0b2(0x28e)](_0x5006e5),this[_0x28d0b2(0x1b9)]();}}[_0x184c40(0x48c)](_0x1fcba9){const _0x3e19cd=_0x184c40;this['_logService'][_0x3e19cd(0x2b2)]('[CollaborationSessionService]',_0x3e19cd(0x476)),_0x1fcba9[_0x3e19cd(0x17d)]({'cmd':_0x2ae438[_0x3e19cd(0x485)]}),this[_0x3e19cd(0x327)]();}[_0x184c40(0x2bd)](){const _0x1efe2d=_0x184c40;window['addEventListener'](_0x1efe2d(0x455),()=>this[_0x1efe2d(0x346)]());}[_0x184c40(0x346)](){const _0x32d26a=_0x184c40;this[_0x32d26a(0x3c6)]=!0x1,this[_0x32d26a(0x301)]=null,this[_0x32d26a(0x475)]['next'](_0x17c413[_0x32d26a(0x1dd)]),this[_0x32d26a(0x3e1)][_0x32d26a(0x2d2)](null),this['_clearTimeoutTimer'](),this[_0x32d26a(0x28a)]();}[_0x184c40(0x1b9)](){const _0x347d8d=_0x184c40;var _0x2d72a5;this['_onOffline'](),this[_0x347d8d(0x352)]<((_0x2d72a5=this['_configService'][_0x347d8d(0xfb)](_0x1fe909))!=null?_0x2d72a5:0x3)?(this[_0x347d8d(0x4a3)]['show']({'key':_0x347d8d(0x28f),'type':_0x516637[_0x347d8d(0x1ac)][_0x347d8d(0xc8)],'content':this[_0x347d8d(0x2b4)]['t'](_0x347d8d(0x1c3))}),this['_tryReconnect']()):this[_0x347d8d(0x4a3)][_0x347d8d(0x1be)]({'key':'collaboration-session-retry','type':_0x516637[_0x347d8d(0x1ac)][_0x347d8d(0x3af)],'content':this['_localeService']['t'](_0x347d8d(0x324))});}[_0x184c40(0x2fd)](){const _0x1f8628=_0x184c40,_0x87472d=()=>{const _0xc3b545=_0x2bb3;this[_0xc3b545(0x3c0)]||this['reconnect']();},_0x185447=()=>{const _0x39f6cb=_0x2bb3;this['_socket']||document[_0x39f6cb(0x3e8)]==='hidden'||this['reconnect']();};window[_0x1f8628(0x349)](_0x1f8628(0x45d),_0x87472d),document[_0x1f8628(0x349)](_0x1f8628(0x4b2),_0x185447);}[_0x184c40(0x3a6)](){const _0x240ab3=_0x184c40;var _0x21a4f3;const _0x32dbf=this[_0x240ab3(0x352)],_0x62bb61=this['_configService'][_0x240ab3(0xfb)](_0x5a4b90),_0x4b6ce4=_0x32dbf===0x0?0x0:((_0x21a4f3=_0x62bb61==null?void 0x0:_0x62bb61[_0x240ab3(0x3f4)])!=null?_0x21a4f3:0x4e20)*0x2**_0x32dbf;this['_retryConnectingTimer']=window[_0x240ab3(0x231)](()=>{const _0x46f898=_0x240ab3;clearTimeout(this[_0x46f898(0x185)]),this[_0x46f898(0x185)]=null,this['_tryEnsureSocket']();},_0x4b6ce4),this['_retryCount']+=0x1;}[_0x184c40(0x402)](_0x3155c0,_0x1a648f){const _0x1c1496=_0x184c40,{cmd:_0x387107}=_0x1a648f;_0x387107===_0x2ae438[_0x1c1496(0x485)]&&!this[_0x1c1496(0x3c6)]&&(_0x3155c0[_0x1c1496(0x3a5)]=_0x1a648f[_0x1c1496(0xe3)]['memberID'],this[_0x1c1496(0x3e1)][_0x1c1496(0x2d2)](_0x3155c0),this[_0x1c1496(0x475)][_0x1c1496(0x2d2)](_0x17c413['ONLINE']),this[_0x1c1496(0x3c6)]=!0x0,this[_0x1c1496(0x301)]=null),_0x387107===_0x2ae438[_0x1c1496(0x3b6)]&&this['_clearTimeoutTimer'](),this['_rescheduleHeartbeat']();}[_0x184c40(0x327)](){const _0x141bc4=_0x184c40;var _0x39b5da;this[_0x141bc4(0x28a)](),this[_0x141bc4(0x227)]=window[_0x141bc4(0x231)](()=>this[_0x141bc4(0x464)](),(_0x39b5da=this['_configService'][_0x141bc4(0xfb)](_0x446ff7))!=null?_0x39b5da:0x7530);}[_0x184c40(0x464)](){const _0x5d86af=_0x184c40;this[_0x5d86af(0x3c0)]['send']({'cmd':_0x2ae438['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x4c2e40=_0x184c40;var _0x3dc5ae;this[_0x4c2e40(0x10b)]=window['setTimeout'](()=>this[_0x4c2e40(0x1b9)](),(_0x3dc5ae=this[_0x4c2e40(0x140)][_0x4c2e40(0xfb)](_0xe2e447))!=null?_0x3dc5ae:0x4e20);}['_clearHeartbeatTimer'](){const _0x4760ab=_0x184c40;this[_0x4760ab(0x227)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x4760ab(0x227)]=null);}[_0x184c40(0x11b)](){const _0x9c44ab=_0x184c40;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x9c44ab(0x10b)]),this[_0x9c44ab(0x10b)]=null);}},_0xff46cc[_0x184c40(0xef)]=_0x136850([_0x1af999(0x0,_0x16d562['Inject'](_0x16d562['Injector'])),_0x1af999(0x1,_0x16d562[_0x184c40(0x1e9)](_0x16d562['LocaleService'])),_0x1af999(0x2,_0x5f2673[_0x184c40(0x16f)]),_0x1af999(0x3,_0x16d562[_0x184c40(0x31a)]),_0x1af999(0x4,_0x16d562[_0x184c40(0x317)]),_0x1af999(0x5,_0x4606ff)],_0xff46cc[_0x184c40(0xef)]);var _0x2e70dc=Object['defineProperty'],_0x7af65f=Object[_0x184c40(0x34e)],_0x3bdc44=(_0x1f6b52,_0x411505,_0x334f19,_0x53fa09)=>{const _0x485cf3=_0x184c40;for(var _0x23eb6b=_0x53fa09>0x1?void 0x0:_0x53fa09?_0x7af65f(_0x411505,_0x334f19):_0x411505,_0x8e235e=_0x1f6b52[_0x485cf3(0x3bc)]-0x1,_0x5ae6c6;_0x8e235e>=0x0;_0x8e235e--)(_0x5ae6c6=_0x1f6b52[_0x8e235e])&&(_0x23eb6b=(_0x53fa09?_0x5ae6c6(_0x411505,_0x334f19,_0x23eb6b):_0x5ae6c6(_0x23eb6b))||_0x23eb6b);return _0x53fa09&&_0x23eb6b&&_0x2e70dc(_0x411505,_0x334f19,_0x23eb6b),_0x23eb6b;},_0x5011ad=(_0x2c0a45,_0x5b9f12)=>(_0x43692d,_0x2aec0a)=>_0x5b9f12(_0x43692d,_0x2aec0a,_0x2c0a45);let _0x190714=class{constructor(_0x484109,_0x3e36b5,_0x253a50){const _0x216933=_0x184c40;this['_injector']=_0x484109,this['_transformService']=_0x3e36b5,this[_0x216933(0x1d4)]=_0x253a50;}[_0x184c40(0x47a)](_0x16a530){const _0x4ef252=_0x184c40;this[_0x4ef252(0x339)](_0x16a530),this['_transformPreviousActiveRange'](_0x16a530);}[_0x184c40(0x230)](_0x36df47){const _0x4b804c=_0x184c40,{unitID:_0x2af767}=_0x36df47,_0x40577e=this['_renderManagerService'][_0x4b804c(0x251)](_0x2af767)['with'](_0x123d63[_0x4b804c(0x44a)]),{redoCache:_0x18c400}=_0x40577e[_0x4b804c(0x46f)]();if(_0x18c400[_0x4b804c(0x3bc)]===0x0)return _0x36df47;let _0x5d63b9=_0x16d562[_0x4b804c(0x1df)]['deepClone'](_0x36df47[_0x4b804c(0x15e)][0x0]);for(let _0x8692d6=0x0;_0x8692d6<_0x18c400[_0x4b804c(0x3bc)];_0x8692d6++){const _0x3d7977={'id':_0x4b804c(0x2ca),'params':{..._0x18c400[_0x8692d6]}},_0xa5a4c9=this[_0x4b804c(0x186)][_0x4b804c(0x479)](_0x5d63b9,_0x3d7977,!0x1);if(_0x1f42e3['isTransformMutationFailure'](_0xa5a4c9))throw _0xa5a4c9[_0x4b804c(0x28e)];_0x5d63b9=_0xa5a4c9['m1Prime'];}return{..._0x16d562[_0x4b804c(0x1df)][_0x4b804c(0x29a)](_0x36df47),'mutations':[_0x5d63b9]};}[_0x184c40(0x339)](_0x252fc7){const _0x2fc673=_0x184c40,{unitID:_0x46db42}=_0x252fc7,_0x3dbd7d=this[_0x2fc673(0x1d4)]['getRenderById'](_0x46db42)[_0x2fc673(0x4d6)](_0x123d63[_0x2fc673(0x44a)]),{undoCache:_0xce823d,redoCache:_0x1a964f}=_0x3dbd7d[_0x2fc673(0x46f)]();if(_0xce823d[_0x2fc673(0x3bc)]===0x0||_0x1a964f[_0x2fc673(0x3bc)]===0x0)return;const _0x247ea2=[],_0x874201=[];let _0x4717b2=_0x16d562['Tools'][_0x2fc673(0x29a)](_0x252fc7[_0x2fc673(0x15e)][0x0]),_0x4cd39e=_0x16d562[_0x2fc673(0x1df)]['deepClone'](_0x252fc7[_0x2fc673(0x15e)][0x0]);for(let _0x41e4d1=_0xce823d['length']-0x1;_0x41e4d1>=0x0;_0x41e4d1--){const _0x24b56f={'id':_0x2fc673(0x2ca),'params':{..._0xce823d[_0x41e4d1]}},_0x1b23a6={'id':'doc.mutation.rich-text-editing','params':{..._0x1a964f[_0x41e4d1]}},_0x5b7b73=this[_0x2fc673(0x186)][_0x2fc673(0x479)](_0x4717b2,_0x24b56f,!0x1),_0x2c1ce4=this[_0x2fc673(0x186)]['transformMutation'](_0x4cd39e,_0x1b23a6,!0x1);if(_0x1f42e3[_0x2fc673(0x392)](_0x5b7b73))throw _0x5b7b73[_0x2fc673(0x28e)];if(_0x1f42e3[_0x2fc673(0x392)](_0x2c1ce4))throw _0x2c1ce4['error'];_0x247ea2[_0x2fc673(0x170)](_0x5b7b73[_0x2fc673(0x22b)]['params']),_0x874201[_0x2fc673(0x170)](_0x2c1ce4[_0x2fc673(0x22b)][_0x2fc673(0x290)]),_0x4717b2=_0x5b7b73[_0x2fc673(0x3b7)],_0x4cd39e=_0x2c1ce4[_0x2fc673(0x3b7)];}_0x3dbd7d[_0x2fc673(0x229)]({'undoCache':_0x247ea2,'redoCache':_0x874201});}['_transformPreviousActiveRange'](_0x3ae592){const _0x461b92=_0x184c40,{unitID:_0x4b5c68}=_0x3ae592,_0x114c93=this['_renderManagerService'][_0x461b92(0x251)](_0x4b5c68)[_0x461b92(0x4d6)](_0x123d63[_0x461b92(0x44a)]),_0x28200b=_0x114c93[_0x461b92(0x44c)]();if(_0x28200b==null)return;const _0xfd5e7d=[{'id':_0x461b92(0x2ca),'params':{'unitId':_0x3ae592['unitID'],'actions':null,'textRanges':[_0x28200b]}}],_0x44e86a=this['_transformService'][_0x461b92(0x49b)](_0x3ae592,_0xfd5e7d);if(!_0x1f42e3[_0x461b92(0x2c7)](_0x44e86a))throw _0x44e86a[_0x461b92(0x28e)];const _0x5c5e80=_0x44e86a['m2Prime'][0x0][_0x461b92(0x290)]['textRanges'];Array['isArray'](_0x5c5e80)&&_0x5c5e80[_0x461b92(0x3bc)]&&_0x114c93[_0x461b92(0x37b)](_0x5c5e80[0x0]);}};_0x190714=_0x3bdc44([_0x5011ad(0x0,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x5011ad(0x1,_0x1f42e3[_0x184c40(0x254)]),_0x5011ad(0x2,_0x4c937c[_0x184c40(0x25a)])],_0x190714);var _0x4f6fff=Object[_0x184c40(0x471)],_0x2890ad=Object['getOwnPropertyDescriptor'],_0x38e988=(_0x29a8c1,_0x178b6b,_0x183dbe,_0x5c1c46)=>{const _0x3c912e=_0x184c40;for(var _0xcefad7=_0x5c1c46>0x1?void 0x0:_0x5c1c46?_0x2890ad(_0x178b6b,_0x183dbe):_0x178b6b,_0x9349bb=_0x29a8c1[_0x3c912e(0x3bc)]-0x1,_0x4ae236;_0x9349bb>=0x0;_0x9349bb--)(_0x4ae236=_0x29a8c1[_0x9349bb])&&(_0xcefad7=(_0x5c1c46?_0x4ae236(_0x178b6b,_0x183dbe,_0xcefad7):_0x4ae236(_0xcefad7))||_0xcefad7);return _0x5c1c46&&_0xcefad7&&_0x4f6fff(_0x178b6b,_0x183dbe,_0xcefad7),_0xcefad7;},_0x1a5686=(_0x52f40c,_0x1d7833)=>(_0x308c70,_0x22695e)=>_0x1d7833(_0x308c70,_0x22695e,_0x52f40c);_0xff46cc[_0x184c40(0x205)]=class extends _0x16d562[_0x184c40(0x15c)]{constructor(_0x18e114,_0x2c6188,_0x49ae7b,_0x50d9bc,_0x47e756){const _0x182664=_0x184c40;super(),_0x1fbb55(this,_0x182664(0x157),new Map()),_0x1fbb55(this,_0x182664(0x240),new Map()),_0x1fbb55(this,_0x182664(0x18d),!0x1),(this[_0x182664(0x140)]=_0x18e114,this[_0x182664(0x3ff)]=_0x2c6188,this[_0x182664(0xfd)]=_0x49ae7b,this[_0x182664(0x2b4)]=_0x50d9bc,this[_0x182664(0x223)]=_0x47e756,this[_0x182664(0xea)]());}[_0x184c40(0x2d4)](){this['_disabled']=!0x0;}[_0x184c40(0x2a0)](){const _0x3e1cbd=_0x184c40;this[_0x3e1cbd(0x18d)]=!0x1;}[_0x184c40(0x35a)](){const _0x471754=_0x184c40;this[_0x471754(0x191)]()[_0x471754(0xbf)](()=>super['dispose']());}async['loadOfflineData'](_0x5b8f27){const _0x421c27=_0x184c40;return this[_0x421c27(0x18d)]?null:this[_0x421c27(0x3ff)]['getItem'](_0x379367(_0x5b8f27));}async[_0x184c40(0x196)](_0x3f7dd2,_0x173c09){const _0x3a52dc=_0x184c40;return!!this[_0x3a52dc(0x3ff)]['setItem'](_0x3f7dd2,_0x173c09);}[_0x184c40(0x2c1)](_0x4e60c1,_0x1f7266,_0x5e8ff9,_0x40886b){const _0x547404=_0x184c40,_0x5d4280=this['_revisionService'][_0x547404(0x43e)](_0x4e60c1);this[_0x547404(0x157)][_0x547404(0x355)](_0x4e60c1,{'unitID':_0x4e60c1,'type':_0x1f7266,'awaitingChangeset':_0x5e8ff9,'mutations':_0x40886b,'rev':_0x5d4280}),this[_0x547404(0x240)]['has'](_0x4e60c1)||this[_0x547404(0x37d)](_0x4e60c1);}[_0x184c40(0x37d)](_0x18110a){const _0xff54f5=_0x184c40,_0x1b1728=this[_0xff54f5(0x39c)]();_0x1b1728===0x0?this[_0xff54f5(0x179)](_0x18110a):this['_saveTaskMap']['set'](_0x18110a,setTimeout(()=>this[_0xff54f5(0x179)](_0x18110a),_0x1b1728));}[_0x184c40(0x39c)](){const _0x112e39=_0x184c40;var _0x20d4e5;return(_0x20d4e5=this[_0x112e39(0x140)][_0x112e39(0xfb)](_0x103e56))!=null?_0x20d4e5:0x3e8;}['_saveCache'](_0x463b7b){const _0x34e91b=_0x184c40,_0x5e681b=this[_0x34e91b(0x240)][_0x34e91b(0x3d9)](_0x463b7b);return _0x5e681b!==void 0x0&&window[_0x34e91b(0x2b7)](_0x5e681b),this[_0x34e91b(0x3ff)][_0x34e91b(0x380)](_0x379367(_0x463b7b),this[_0x34e91b(0x157)][_0x34e91b(0x3d9)](_0x463b7b))[_0x34e91b(0xbf)](()=>this[_0x34e91b(0x240)][_0x34e91b(0x2c9)](_0x463b7b));}async[_0x184c40(0x191)](){const _0x5b952e=_0x184c40,_0x159c72=[];this[_0x5b952e(0x240)][_0x5b952e(0x284)]((_0x5a0a1c,_0x33ba2b)=>{const _0x1e4139=_0x5b952e;window['clearTimeout'](_0x5a0a1c),_0x159c72[_0x1e4139(0x250)](this[_0x1e4139(0x179)](_0x33ba2b)[_0x1e4139(0xbf)](()=>{const _0xfa1745=_0x1e4139;this['_saveTaskMap'][_0xfa1745(0x2c9)](_0x33ba2b);}));}),await Promise[_0x5b952e(0x3a4)](_0x159c72);}[_0x184c40(0xea)](){const _0x33cddf=_0x184c40;this[_0x33cddf(0xce)](this[_0x33cddf(0xfd)]['registerBeforeClose'](()=>{const _0x387048=_0x33cddf;if(this['_saveTaskMap'][_0x387048(0x36a)])return this['_localeService']['t'](_0x387048(0x10d));}));}},_0xff46cc[_0x184c40(0x205)]=_0x38e988([_0x1a5686(0x0,_0x16d562[_0x184c40(0x317)]),_0x1a5686(0x1,_0x16d562[_0x184c40(0x2c5)]),_0x1a5686(0x2,_0x5f2673[_0x184c40(0x33e)]),_0x1a5686(0x3,_0x16d562['Inject'](_0x16d562[_0x184c40(0x42c)])),_0x1a5686(0x4,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3[_0x184c40(0x3a3)]))],_0xff46cc['LocalCacheService']);function _0x379367(_0x5ec01a){const _0x494ee7=_0x184c40;return _0x494ee7(0x18f)+_0x5ec01a;}var _0x2d724e=Object[_0x184c40(0x471)],_0xf42862=Object['getOwnPropertyDescriptor'],_0x193f45=(_0x50a67e,_0x1c5f63,_0x3e0b18,_0x264641)=>{const _0x10f3a9=_0x184c40;for(var _0xef15b8=_0x264641>0x1?void 0x0:_0x264641?_0xf42862(_0x1c5f63,_0x3e0b18):_0x1c5f63,_0x15485a=_0x50a67e[_0x10f3a9(0x3bc)]-0x1,_0x32c445;_0x15485a>=0x0;_0x15485a--)(_0x32c445=_0x50a67e[_0x15485a])&&(_0xef15b8=(_0x264641?_0x32c445(_0x1c5f63,_0x3e0b18,_0xef15b8):_0x32c445(_0xef15b8))||_0xef15b8);return _0x264641&&_0xef15b8&&_0x2d724e(_0x1c5f63,_0x3e0b18,_0xef15b8),_0xef15b8;},_0x2d4dd6=(_0x428b13,_0x549ac7)=>(_0x33a8f9,_0x44942c)=>_0x549ac7(_0x33a8f9,_0x44942c,_0x428b13);function _0x13ecfd(_0x2cb25d){const _0xc601d0=_0x184c40,{unitID:_0x399148,mutations:_0xfd5117}=_0x2cb25d;return{'unitId':_0x399148,'subUnitId':_0xfd5117[0x0][_0xc601d0(0x290)][_0xc601d0(0x3fb)]};}let _0x11c95c=class{constructor(_0xe044d9,_0x45baa0,_0x513d32){const _0x3a18c5=_0x184c40;this[_0x3a18c5(0x183)]=_0xe044d9,this[_0x3a18c5(0x186)]=_0x45baa0,this[_0x3a18c5(0x435)]=_0x513d32;}[_0x184c40(0x2f1)](_0xc9b77d){const _0x40b46a=_0x184c40;var _0x40c81b,_0x496a69,_0x4ec98e,_0x5e5b01;const _0x40e8c5=this[_0x40b46a(0x183)][_0x40b46a(0x3d9)](_0x30fd53['SheetsSelectionsService']),{unitId:_0x59d969,subUnitId:_0xfcbeaf}=_0x13ecfd(_0xc9b77d),_0x5e8942=_0x40e8c5[_0x40b46a(0x12a)](_0x59d969)[_0x40b46a(0x2c8)](),_0x40052c=(_0x496a69=(_0x40c81b=this[_0x40b46a(0x435)][_0x40b46a(0x487)](_0x59d969))==null?void 0x0:_0x40c81b[_0x40b46a(0x1f6)]())==null?void 0x0:_0x496a69['getSheetId']();if(_0x5e8942[_0x40b46a(0x3bc)]===0x0||!_0x59d969||!_0xfcbeaf)return;const _0x376c3f=[{'id':_0x30fd53[_0x40b46a(0x465)]['id'],'params':{'unitId':_0x59d969,'subUnitId':_0x40052c,'selections':_0x16d562[_0x40b46a(0x1df)]['deepClone'](_0x5e8942)}}],_0x355496=this[_0x40b46a(0x186)][_0x40b46a(0x49b)](_0xc9b77d,_0x376c3f);if(!_0x1f42e3[_0x40b46a(0x2c7)](_0x355496))throw _0x355496['error'];const _0x2999b2=(_0x5e5b01=(_0x4ec98e=_0x355496[_0x40b46a(0x22b)][0x0])==null?void 0x0:_0x4ec98e[_0x40b46a(0x290)])==null?void 0x0:_0x5e5b01[_0x40b46a(0x437)];Array[_0x40b46a(0x2ee)](_0x2999b2)&&_0x2999b2[_0x40b46a(0x3bc)]&&this[_0x40b46a(0x183)][_0x40b46a(0x3d9)](_0x16d562[_0x40b46a(0x156)])[_0x40b46a(0x2d5)](_0x30fd53[_0x40b46a(0x465)]['id'],{'unitId':_0x59d969,'subUnitId':_0x40052c,'selections':_0x2999b2});}};_0x11c95c=_0x193f45([_0x2d4dd6(0x0,_0x16d562['Inject'](_0x16d562['Injector'])),_0x2d4dd6(0x1,_0x1f42e3[_0x184c40(0x254)]),_0x2d4dd6(0x2,_0x16d562[_0x184c40(0x466)])],_0x11c95c);const _0x110502=_0x16d562['createIdentifier']('univer-pro.collaboration-client.single-active-unit-service');var _0x2fccbf=(_0x58bef6=>(_0x58bef6[_0x58bef6[_0x184c40(0x141)]=0x0]=_0x184c40(0x141),_0x58bef6[_0x58bef6[_0x184c40(0x2b6)]=0x1]='OTHER_CLIENTS_EDITING',_0x58bef6))(_0x2fccbf||{});const _0x366d0e=0x7530,_0x724989='ACTIVE_UNIT_EVENT_CHANNEL';class _0x569ce6 extends _0x16d562[_0x184c40(0x15c)]{constructor(){const _0x46bbf5=_0x184c40;super(),_0x1fbb55(this,_0x46bbf5(0x422),_0x16d562['Tools'][_0x46bbf5(0x128)]()),_0x1fbb55(this,_0x46bbf5(0x3e2),new Set()),_0x1fbb55(this,_0x46bbf5(0x123),new Map()),_0x1fbb55(this,_0x46bbf5(0x19e),null),_0x1fbb55(this,_0x46bbf5(0x4da),new Map()),_0x1fbb55(this,_0x46bbf5(0x3f9),new Map()),this[_0x46bbf5(0x2d7)]();}['dispose'](){const _0x1b8647=_0x184c40;super[_0x1b8647(0x35a)](),this[_0x1b8647(0x4da)]['forEach']((_0x50b97e,_0x238674)=>this[_0x1b8647(0x20e)](_0x238674)),this['_heartbeatTimer']&&window[_0x1b8647(0x101)](this['_heartbeatTimer']);}[_0x184c40(0x31d)](_0x38bccb){const _0x2996f9=_0x184c40;return this[_0x2996f9(0x17f)](_0x38bccb)['pipe'](_0x1f1780['distinctUntilChanged']());}[_0x184c40(0x4b7)](_0x2dfac0){const _0x36c674=_0x184c40;this[_0x36c674(0x3e2)][_0x36c674(0x36a)]===0x0&&this[_0x36c674(0x27d)](),this[_0x36c674(0x3e2)][_0x36c674(0x279)](_0x2dfac0),this[_0x36c674(0x3f8)]({'type':0x0,'memberID':this[_0x36c674(0x422)],'unitIDs':[_0x2dfac0],'isForwarded':!0x1});}[_0x184c40(0x274)](_0x585ff5){const _0x238b18=_0x184c40;this[_0x238b18(0x3e2)]['delete'](_0x585ff5),this['_selfUnitIDs'][_0x238b18(0x36a)]===0x0&&this[_0x238b18(0x19e)]&&window[_0x238b18(0x101)](this['_heartbeatTimer']);}['_init'](){const _0x2f222a=_0x184c40;this[_0x2f222a(0xce)](_0x16d562[_0x2f222a(0x228)](_0x1f1780['fromEvent'](window,'storage')[_0x2f222a(0x462)](_0x2f4e5a=>{const _0x467a9d=_0x2f222a;if(_0x2f4e5a[_0x467a9d(0xd9)]!==_0x724989||!_0x2f4e5a[_0x467a9d(0x214)])return;const _0x15fd2b=JSON[_0x467a9d(0xf2)](_0x2f4e5a[_0x467a9d(0x214)]);this[_0x467a9d(0x232)](_0x15fd2b);}))),window[_0x2f222a(0x349)](_0x2f222a(0x308),()=>this[_0x2f222a(0x3f8)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x184c40(0x232)](_0x1a95d4){const _0x4d319d=_0x184c40;switch(_0x1a95d4[_0x4d319d(0x340)]){case 0x0:this[_0x4d319d(0x2c0)](_0x1a95d4);break;case 0x1:this['_handleLeaveEvent'](_0x1a95d4);break;case 0x2:this['_handleHeartbeatEvent'](_0x1a95d4);break;}}[_0x184c40(0x2c0)](_0x2a2537){const _0x12878e=_0x184c40,{unitIDs:_0x30ee96,memberID:_0x3bf222,isForwarded:_0x22bf56}=_0x2a2537;_0x30ee96[_0x12878e(0x284)](_0x1f7e6d=>{const _0x59f5eb=_0x12878e;if(!_0x22bf56&&this[_0x59f5eb(0x123)][_0x59f5eb(0x4c2)](_0x1f7e6d)&&this[_0x59f5eb(0x17f)](_0x1f7e6d)['next'](0x1),!this[_0x59f5eb(0x123)][_0x59f5eb(0x4c2)](_0x1f7e6d)||!this['_unitOnClients'][_0x59f5eb(0x3d9)](_0x1f7e6d)[_0x59f5eb(0x4c2)](_0x3bf222)){const _0x50969a=this['_unitOnClients'][_0x59f5eb(0x3d9)](_0x1f7e6d)||new Set();_0x50969a[_0x59f5eb(0x279)](_0x3bf222),this['_unitOnClients']['set'](_0x1f7e6d,_0x50969a),this['_scheduleClearOtherTimer'](_0x3bf222);}}),_0x22bf56||this[_0x12878e(0x3f8)]({'type':0x0,'memberID':this[_0x12878e(0x422)],'unitIDs':[...this[_0x12878e(0x3e2)]],'isForwarded':!0x0});}[_0x184c40(0x213)](_0x4873fc){const _0x2b6663=_0x184c40;this['_removeClearOtherTimer'](_0x4873fc);const _0x181326=window[_0x2b6663(0x231)](()=>{const _0x2734c0=_0x2b6663;this[_0x2734c0(0x123)][_0x2734c0(0x284)](_0x2931b5=>{const _0x258eea=_0x2734c0;_0x2931b5[_0x258eea(0x2c9)](_0x4873fc);});},_0x366d0e*0x2);this[_0x2b6663(0x4da)][_0x2b6663(0x355)](_0x4873fc,_0x181326);}[_0x184c40(0x20e)](_0x5d5d64){const _0x40b3d9=_0x184c40;if(this[_0x40b3d9(0x4da)]['has'](_0x5d5d64)){const _0x100cc8=this[_0x40b3d9(0x4da)]['get'](_0x5d5d64);_0x100cc8&&window[_0x40b3d9(0x2b7)](_0x100cc8),this['_clearOtherTimers'][_0x40b3d9(0x355)](_0x5d5d64,null);}}[_0x184c40(0x177)](_0x5a587d){const _0x24ebab=_0x184c40,{memberID:_0xdb7064,unitIDs:_0xa6fa62}=_0x5a587d;_0xa6fa62[_0x24ebab(0x284)](_0xb44ad6=>{const _0x1dc3ef=_0x24ebab;var _0x476bb6;const _0x372c6a=this['_unitOnClients'][_0x1dc3ef(0x3d9)](_0xb44ad6);_0x372c6a&&(_0x372c6a[_0x1dc3ef(0x2c9)](_0xdb7064),(_0x476bb6=this['_ensureSubject'](_0xb44ad6))==null||_0x476bb6[_0x1dc3ef(0x2d2)](_0x372c6a[_0x1dc3ef(0x36a)]===0x0?0x0:0x1));}),this[_0x24ebab(0x20e)](_0xdb7064);}['_handleHeartbeatEvent'](_0x4d463a){const _0x455444=_0x184c40;this[_0x455444(0x213)](_0x4d463a[_0x455444(0x3a5)]);}[_0x184c40(0x3f8)](_0x4409c3){const _0x20efe1=_0x184c40;localStorage['setItem'](_0x724989,JSON[_0x20efe1(0x313)](_0x4409c3));}[_0x184c40(0x27d)](){const _0xa8c4de=_0x184c40;this[_0xa8c4de(0x19e)]=window[_0xa8c4de(0x417)](()=>{const _0x1df830=_0xa8c4de;this[_0x1df830(0x3f8)]({'type':0x2,'memberID':this[_0x1df830(0x422)]});},_0x366d0e);}[_0x184c40(0x17f)](_0x366ae3){const _0x46f310=_0x184c40;return this['_unitStatus'][_0x46f310(0x4c2)](_0x366ae3)||this['_unitStatus']['set'](_0x366ae3,new _0x1f1780['BehaviorSubject'](0x0)),this[_0x46f310(0x3f9)][_0x46f310(0x3d9)](_0x366ae3);}}function _0xf68256(_0x48e32f){const _0x4de73c=_0x184c40;let _0x1d6d4f='';for(const _0x161681 of _0x48e32f){const {startOffset:_0x8cd816,endOffset:_0x48ec6c,isActive:_0x138103}=_0x161681;_0x1d6d4f[_0x4de73c(0x3bc)]&&(_0x1d6d4f+=','),_0x1d6d4f+=_0x8cd816+':'+_0x48ec6c+':'+(_0x138103?'1':'0');}return _0x1d6d4f;}function _0x197fec(_0x225348){const _0x1973a7=_0x184c40,_0x67b4c0=_0x225348[_0x1973a7(0x48a)](','),_0x28ae12=[];for(const _0x318b3c of _0x67b4c0){const [_0x10df0c,_0x5881d8,_0x211d44]=_0x318b3c[_0x1973a7(0x48a)](':');_0x28ae12[_0x1973a7(0x250)]({'startOffset':Number(_0x10df0c),'endOffset':Number(_0x5881d8),'collapsed':_0x10df0c===_0x5881d8,'isActive':_0x211d44==='1'});}return _0x28ae12[_0x1973a7(0x181)](_0x230116=>_0x230116[_0x1973a7(0x13b)])||(_0x28ae12[0x0]['isActive']=!0x0),_0x28ae12;}class _0x126509 extends _0x16d562[_0x184c40(0x204)]{constructor(){const _0xf68cdf=_0x184c40;super(...arguments),_0x1fbb55(this,'_collabCursorState$',new _0x1f1780[(_0xf68cdf(0x2f0))](null)),_0x1fbb55(this,_0xf68cdf(0x408),this['_collabCursorState$'][_0xf68cdf(0x376)]());}[_0x184c40(0x3d1)](_0x29326e){const {unitID:_0x1531b9,memberID:_0x274d43,textRanges:_0x52d89c}=_0x29326e,_0x5bb1ae=_0xf68256(_0x52d89c),_0x44f4b5={'unitID':_0x1531b9,'memberID':_0x274d43,'selection':_0x5bb1ae};this['_collabCursorState$']['next'](_0x44f4b5);}}var _0x17b97b=Object[_0x184c40(0x471)],_0x1cfedc=Object['getOwnPropertyDescriptor'],_0x400753=(_0x483f4a,_0x1ea830,_0x330cbf,_0x559de7)=>{const _0x2c0122=_0x184c40;for(var _0x2e87f4=_0x559de7>0x1?void 0x0:_0x559de7?_0x1cfedc(_0x1ea830,_0x330cbf):_0x1ea830,_0x15ebf2=_0x483f4a[_0x2c0122(0x3bc)]-0x1,_0x1d63bb;_0x15ebf2>=0x0;_0x15ebf2--)(_0x1d63bb=_0x483f4a[_0x15ebf2])&&(_0x2e87f4=(_0x559de7?_0x1d63bb(_0x1ea830,_0x330cbf,_0x2e87f4):_0x1d63bb(_0x2e87f4))||_0x2e87f4);return _0x559de7&&_0x2e87f4&&_0x17b97b(_0x1ea830,_0x330cbf,_0x2e87f4),_0x2e87f4;},_0x3fd77b=(_0x454e7f,_0x557768)=>(_0x34eff8,_0x22e2cb)=>_0x557768(_0x34eff8,_0x22e2cb,_0x454e7f);let _0x480601=class{constructor(_0x1f3434,_0x39cbec){const _0x44a2fa=_0x184c40;this[_0x44a2fa(0x183)]=_0x1f3434,this[_0x44a2fa(0x186)]=_0x39cbec;}[_0x184c40(0x2f1)](_0x53f0fb){const _0x1ec4df=_0x184c40;var _0x4e1d1b;const _0x496df6=this[_0x1ec4df(0x183)][_0x1ec4df(0x3d9)](_0x412f6a[_0x1ec4df(0x323)]),_0x29e080=(_0x4e1d1b=_0x496df6[_0x1ec4df(0x396)]())!=null?_0x4e1d1b:[];if(_0x29e080[_0x1ec4df(0x3bc)]===0x0)return;const _0x5bd027=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x53f0fb['unitID'],'actions':null,'textRanges':_0x29e080}}],_0x498c0c=this[_0x1ec4df(0x186)][_0x1ec4df(0x49b)](_0x53f0fb,_0x5bd027);if(!_0x1f42e3[_0x1ec4df(0x2c7)](_0x498c0c))throw _0x498c0c[_0x1ec4df(0x28e)];const _0x17ea18=_0x498c0c[_0x1ec4df(0x22b)][0x0][_0x1ec4df(0x290)][_0x1ec4df(0x1ae)];Array[_0x1ec4df(0x2ee)](_0x17ea18)&&_0x17ea18[_0x1ec4df(0x3bc)]&&_0x496df6[_0x1ec4df(0x411)](_0x17ea18,!0x1);}};_0x480601=_0x400753([_0x3fd77b(0x0,_0x16d562['Inject'](_0x16d562[_0x184c40(0x3a2)])),_0x3fd77b(0x1,_0x1f42e3[_0x184c40(0x254)])],_0x480601);const _0xfb0af4=new Set([_0x30fd53['InsertSheetMutation']['id']]);function _0x47b1ec(_0x40b89c,_0x4b461d,_0x4fa686,_0x186fe7,_0x5b4f0f){const _0x2a0b02=_0x184c40;var _0xe89c81,_0x1cd0f6,_0x5bd57b,_0x136735;const _0x1657bc=[];for(const _0x15bff1 of _0x40b89c)if(_0xfb0af4['has'](_0x15bff1['id'])){if(_0x1657bc[_0x2a0b02(0x3bc)]>0x0)break;_0x1657bc[_0x2a0b02(0x250)](_0x15bff1);break;}else _0x1657bc['push'](_0x15bff1);const _0x4a9d53=(_0x1cd0f6=(_0xe89c81=_0x5b4f0f[_0x2a0b02(0x203)]())==null?void 0x0:_0xe89c81['userID'])!=null?_0x1cd0f6:_0x2a0b02(0x271),_0x40ef14=(_0x136735=(_0x5bd57b=_0x5b4f0f[_0x2a0b02(0x203)]())==null?void 0x0:_0x5bd57b[_0x2a0b02(0x3a5)])!=null?_0x136735:_0x2a0b02(0x271);return{'changeset':{'unitID':_0x4b461d,'type':_0x1f42e3['mapDocumentTypeToUniverType'](_0x4fa686[_0x2a0b02(0x448)](_0x4b461d)),'baseRev':_0x186fe7['getCurrentRevOfUnit'](_0x4b461d),'revision':0x0,'userID':_0x4a9d53,'memberID':_0x40ef14,'mutations':_0x1657bc},'pendingMutations':_0x40b89c[_0x2a0b02(0x2c4)](_0x1657bc['length'])};}function _0x4d9781(_0x2c4670,_0x3b4d4f,_0x4d9976,_0x554258,_0x7ff11c){const _0x487ae=_0x184c40;var _0x3f8d93,_0xa64695,_0x384466,_0x2c3dfd;const _0xf178c0=[_0x2c4670[_0x487ae(0x36b)]((_0x37420e,_0x171403)=>{const _0x131f9a=_0x487ae;var _0xc9dc73;const {id:_0x2c54e3}=_0x37420e,{id:_0x38e17b,type:_0x3e4220}=_0x171403,_0x2325f7=(_0xc9dc73=_0x37420e[_0x131f9a(0x290)])!=null?_0xc9dc73:{'actions':null},_0x2d61c7=_0x171403[_0x131f9a(0x290)];if(_0x2c54e3&&_0x2c54e3!==_0x38e17b)throw new Error(_0x131f9a(0x297)+_0x2c54e3+'\x20-\x20'+_0x38e17b+'.');return{..._0x37420e,'id':_0x38e17b,'type':_0x3e4220,'params':{'unitId':_0x2d61c7[_0x131f9a(0x354)],'textRanges':_0x2d61c7[_0x131f9a(0x1ae)],'actions':_0x16d562[_0x131f9a(0x363)]['compose'](_0x2325f7[_0x131f9a(0x277)],_0x2d61c7[_0x131f9a(0x277)])}};},{})],_0x4c4bf0=(_0xa64695=(_0x3f8d93=_0x7ff11c['getCurrentUser']())==null?void 0x0:_0x3f8d93[_0x487ae(0x43a)])!=null?_0xa64695:_0x487ae(0x271),_0x3a7fd6=(_0x2c3dfd=(_0x384466=_0x7ff11c[_0x487ae(0x203)]())==null?void 0x0:_0x384466[_0x487ae(0x3a5)])!=null?_0x2c3dfd:_0x487ae(0x271);return{'changeset':{'unitID':_0x3b4d4f,'type':_0x1f42e3[_0x487ae(0x39a)](_0x4d9976[_0x487ae(0x448)](_0x3b4d4f)),'baseRev':_0x554258[_0x487ae(0x43e)](_0x3b4d4f),'revision':0x0,'userID':_0x4c4bf0,'memberID':_0x3a7fd6,'mutations':_0xf178c0},'pendingMutations':[]};}const _0x41b285={'id':_0x30fd53[_0x184c40(0x2ac)]['id'],'type':_0x16d562['CommandType']['MUTATION'],'params':{}};var _0x261cc5=Object['defineProperty'],_0x5ce599=Object[_0x184c40(0x34e)],_0x31579c=(_0x5b9499,_0x240321,_0x5af81e,_0x5b7045)=>{const _0x2213a4=_0x184c40;for(var _0xba488d=_0x5b7045>0x1?void 0x0:_0x5b7045?_0x5ce599(_0x240321,_0x5af81e):_0x240321,_0xc103b4=_0x5b9499[_0x2213a4(0x3bc)]-0x1,_0x805f3e;_0xc103b4>=0x0;_0xc103b4--)(_0x805f3e=_0x5b9499[_0xc103b4])&&(_0xba488d=(_0x5b7045?_0x805f3e(_0x240321,_0x5af81e,_0xba488d):_0x805f3e(_0xba488d))||_0xba488d);return _0x5b7045&&_0xba488d&&_0x261cc5(_0x240321,_0x5af81e,_0xba488d),_0xba488d;},_0x5e28d2=(_0x55c7a8,_0x47c4f4)=>(_0x3a4dd7,_0x1dfa06)=>_0x47c4f4(_0x3a4dd7,_0x1dfa06,_0x55c7a8),_0x55c585=(_0x328500=>(_0x328500['NOT_COLLAB']='not_collab',_0x328500[_0x184c40(0x42b)]=_0x184c40(0xeb),_0x328500[_0x184c40(0x117)]='pending',_0x328500[_0x184c40(0xc9)]=_0x184c40(0x2b0),_0x328500[_0x184c40(0xdb)]=_0x184c40(0x372),_0x328500[_0x184c40(0x2ea)]='fetch_missing',_0x328500['CONFLICT']=_0x184c40(0x403),_0x328500[_0x184c40(0x1dd)]=_0x184c40(0x455),_0x328500))(_0x55c585||{});class _0x17ed36{constructor(_0xca6653,_0x128f6a,_0x5e7a3f,_0xf5570a,_0x485852,_0x28711b,_0x54a450,_0x57cbcf,_0x11249c){const _0x27dfa9=_0x184c40;_0x1fbb55(this,_0x27dfa9(0x2de),null),_0x1fbb55(this,_0x27dfa9(0xb7),[]),(this[_0x27dfa9(0x445)]=_0xca6653,this[_0x27dfa9(0x340)]=_0x128f6a,this['_handler']=_0x485852,this[_0x27dfa9(0x3da)]=_0x28711b,this[_0x27dfa9(0x23f)]=_0x54a450,this['_revisionService']=_0x57cbcf,this[_0x27dfa9(0x103)]=_0x11249c,this[_0x27dfa9(0x2de)]=_0x5e7a3f,this[_0x27dfa9(0xb7)]=_0xf5570a);}['_checkMissing'](_0x51705e){const _0x56255c=_0x184c40,_0x5c4828=this[_0x56255c(0x223)][_0x56255c(0x43e)](this[_0x56255c(0x445)]);return _0x51705e[_0x56255c(0xb8)]>_0x5c4828+0x1?(this[_0x56255c(0x1fc)][_0x56255c(0x2ef)]({'from':_0x5c4828,'to':_0x51705e['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x185962){const _0x53e87e=_0x184c40;this['_undoRedoService'][_0x53e87e(0x356)](this[_0x53e87e(0x445)],_0x185962);}['_transformSelections'](_0xb1905c){const _0x5068a3=_0x184c40;var _0x2e712c,_0x1492fb;(_0x1492fb=(_0x2e712c=this['_handler'])[_0x5068a3(0xe7)])==null||_0x1492fb[_0x5068a3(0x3f3)](_0x2e712c,_0xb1905c);}[_0x184c40(0x4b5)](_0x242f30){const _0x25b821=_0x184c40;var _0xeab3a2,_0x4f77cf;return(_0x4f77cf=(_0xeab3a2=this[_0x25b821(0x1fc)])[_0x25b821(0xd3)])==null?void 0x0:_0x4f77cf[_0x25b821(0x3f3)](_0xeab3a2,_0x242f30);}['_transformRemoteChangesetByIMECache'](_0x55b404){const _0x135251=_0x184c40;var _0x4e5c0b,_0x508f94,_0x763522;return(_0x763522=(_0x508f94=(_0x4e5c0b=this[_0x135251(0x1fc)])[_0x135251(0x194)])==null?void 0x0:_0x508f94[_0x135251(0x3f3)](_0x4e5c0b,_0x55b404))!=null?_0x763522:_0x55b404;}['_syncEditingCollabCursor'](_0x5a5f7b){const _0x23dfa2=_0x184c40;var _0x2e0e1b,_0x29c0af;if(this[_0x23dfa2(0x340)]===_0x55b5ea[_0x23dfa2(0x2f5)]){const {unitID:_0x57040a,mutations:_0x27dbc2,memberID:_0x4ad22d}=_0x5a5f7b,_0x247c92=_0x27dbc2[0x0][_0x23dfa2(0x290)][_0x23dfa2(0x1ae)];Array[_0x23dfa2(0x2ee)](_0x247c92)&&_0x247c92[_0x23dfa2(0x3bc)]>0x0&&((_0x29c0af=(_0x2e0e1b=this[_0x23dfa2(0x1fc)])[_0x23dfa2(0x266)])==null||_0x29c0af[_0x23dfa2(0x3f3)](_0x2e0e1b,{'unitID':_0x57040a,'memberID':_0x4ad22d,'textRanges':_0x247c92}));}}[_0x184c40(0x208)](){const _0x346ba1=_0x184c40;this[_0x346ba1(0x103)]['updateOfflineData'](this[_0x346ba1(0x445)],this['type'],this[_0x346ba1(0x2de)],this[_0x346ba1(0xb7)]);}['_getCurrentRevision'](){const _0x3b5033=_0x184c40;return this[_0x3b5033(0x223)][_0x3b5033(0x43e)](this[_0x3b5033(0x445)]);}[_0x184c40(0x23e)](){const _0x5cc5be=_0x184c40;this[_0x5cc5be(0x223)][_0x5cc5be(0x295)](this['unitID']);}[_0x184c40(0x2f8)](_0x5ab35f){const _0x51ac36=_0x184c40;var _0x26a4b8;const _0x48687b=this[_0x51ac36(0x15f)](_0x5ab35f),_0x1df721=_0x16d562[_0x51ac36(0x175)](_0x48687b[_0x51ac36(0x15e)],this['_commandService'],{'fromCollab':!0x0});if(!_0x1df721[_0x51ac36(0x4d8)])throw _0x1df721['error']instanceof Error?_0x1df721[_0x51ac36(0x28e)]:new Error((_0x26a4b8=_0x1df721[_0x51ac36(0x28e)])!=null?_0x26a4b8:'[CollaborationState]:\x20apply\x20error!');this[_0x51ac36(0x4b5)](_0x48687b),this[_0x51ac36(0x4a5)](_0x5ab35f),this[_0x51ac36(0x404)](_0x48687b),this['_syncEditingCollabCursor'](_0x48687b),this[_0x51ac36(0x23e)]();}}let _0x45dea1=class extends _0x17ed36{constructor(_0x48e134,_0x19a313,_0xe209cb,_0x3d4880,_0x4c0203,_0x4f7819,_0x363033,_0x28f86f,_0x505b6f,_0x3c5e7d){const _0x352555=_0x184c40;super(_0x48e134,_0x19a313,null,[],_0xe209cb,_0x28f86f,_0x363033,_0x3d4880,_0x4c0203),_0x1fbb55(this,'status',_0x352555(0xeb)),(this[_0x352555(0x183)]=_0x4f7819,this[_0x352555(0xe6)]=_0x505b6f,this[_0x352555(0x186)]=_0x3c5e7d);}[_0x184c40(0x390)](_0x2d2ef6){const _0x5de80c=_0x184c40,_0x3212c3=this[_0x5de80c(0x183)][_0x5de80c(0x1d5)](_0x3d2df7,this[_0x5de80c(0x445)],this[_0x5de80c(0x340)],[_0x2d2ef6],this['_handler']);return _0x3212c3['_schedule'](),_0x3212c3[_0x5de80c(0x208)](),_0x3212c3;}[_0x184c40(0x114)](_0x5687b1){const _0x5ca941=_0x184c40;if(this[_0x5ca941(0x47b)](_0x5687b1))return this['_injector'][_0x5ca941(0x1d5)](_0x325f53,this['unitID'],this[_0x5ca941(0x340)],null,[],null,[_0x5687b1],this[_0x5ca941(0x1fc)]);try{const _0x2a3b21=this['_transformService'][_0x5ca941(0x49b)](_0x5687b1,[_0x41b285]);if(_0x1f42e3[_0x5ca941(0x2c7)](_0x2a3b21)){const {c1Prime:_0x3e0d71}=_0x2a3b21;return this['_executeRemoteChangeset'](_0x3e0d71),this;}throw _0x2a3b21[_0x5ca941(0x28e)];}catch(_0x3ef2f4){return this[_0x5ca941(0xe6)]['error'](_0x3ef2f4),this['_onConflict'](!0x1);}}[_0x184c40(0x3f6)](_0x413790){const _0x37b522=_0x184c40;return this[_0x37b522(0x183)][_0x37b522(0x1d5)](_0x6d3d79,this['unitID'],this[_0x37b522(0x340)],null,[],this[_0x37b522(0x1fc)],_0x413790);}[_0x184c40(0x3f2)](){const _0x63f402=_0x184c40;throw new Error(_0x63f402(0x360));}[_0x184c40(0x3e3)](){const _0xaba574=_0x184c40;throw new Error(_0xaba574(0x44f));}[_0x184c40(0x2df)](){const _0x4fec0d=_0x184c40;return this['_injector'][_0x4fec0d(0x1d5)](_0x48d8c3,this[_0x4fec0d(0x445)],this[_0x4fec0d(0x340)],null,[],this[_0x4fec0d(0x1fc)]);}[_0x184c40(0x4c1)](){return this;}[_0x184c40(0x1b3)](){const _0x19c548=_0x184c40;throw new Error(_0x19c548(0x144));}[_0x184c40(0x46b)](){const _0x2b5e07=_0x184c40,_0x3ad9a1=this[_0x2b5e07(0x223)][_0x2b5e07(0x43e)](this[_0x2b5e07(0x445)]);return this[_0x2b5e07(0x1fc)][_0x2b5e07(0x2ef)]({'from':_0x3ad9a1,'to':0x0}),this['_injector'][_0x2b5e07(0x1d5)](_0x325f53,this['unitID'],this[_0x2b5e07(0x340)],null,[],null,[],this[_0x2b5e07(0x1fc)]);}};_0x45dea1=_0x31579c([_0x5e28d2(0x3,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3[_0x184c40(0x3a3)])),_0x5e28d2(0x4,_0x16d562[_0x184c40(0x1e9)](_0xff46cc[_0x184c40(0x205)])),_0x5e28d2(0x5,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x5e28d2(0x6,_0x16d562['IUndoRedoService']),_0x5e28d2(0x7,_0x16d562['ICommandService']),_0x5e28d2(0x8,_0x16d562[_0x184c40(0x31a)]),_0x5e28d2(0x9,_0x1f42e3[_0x184c40(0x254)])],_0x45dea1);let _0x3d2df7=class extends _0x17ed36{constructor(_0x39610e,_0x16ca92,_0xaf716c,_0x434c7e,_0xddf02c,_0x3d89ae,_0x1f0403,_0x1a9f30,_0x1f906b,_0xd019c8,_0x14fe23,_0x488afa,_0x3e43ea,_0x50998d){const _0x33177c=_0x184c40;super(_0x39610e,_0x16ca92,null,_0xaf716c,_0x434c7e,_0xd019c8,_0x50998d,_0x3d89ae,_0x1f0403),_0x1fbb55(this,_0x33177c(0x362),_0x33177c(0x39e)),_0x1fbb55(this,_0x33177c(0x456),null),_0x1fbb55(this,_0x33177c(0x3f5),null),(this[_0x33177c(0x183)]=_0xddf02c,this[_0x33177c(0xcb)]=_0x1a9f30,this[_0x33177c(0xe6)]=_0x1f906b,this[_0x33177c(0x140)]=_0x14fe23,this['_transformService']=_0x488afa,this[_0x33177c(0x1b5)]=_0x3e43ea);}['appendMutation'](_0x2d5088){const _0xe86fd1=_0x184c40;return this['_pendingMutations'][_0xe86fd1(0x250)](_0x2d5088),this[_0xe86fd1(0x208)](),this;}[_0x184c40(0x114)](_0x39c975){const _0x319138=_0x184c40;if(this[_0x319138(0x47b)](_0x39c975))return this['_clearScheduledTask'](),this[_0x319138(0x183)][_0x319138(0x1d5)](_0x325f53,this[_0x319138(0x445)],this[_0x319138(0x340)],null,this[_0x319138(0xb7)],null,[_0x39c975],this['_handler']);try{const _0x5a1ec8=this[_0x319138(0x186)]['transformMutationsWithChangeset'](_0x39c975,this['_pendingMutations']);if(_0x1f42e3[_0x319138(0x2c7)](_0x5a1ec8)){const {c1Prime:_0x2387a1,m2Prime:_0x139b8b}=_0x5a1ec8;this[_0x319138(0x2f8)](_0x2387a1);const _0x49b30a=this[_0x319138(0x183)][_0x319138(0x1d5)](_0x3d2df7,this[_0x319138(0x445)],this[_0x319138(0x340)],_0x139b8b,this[_0x319138(0x1fc)]);return this[_0x319138(0x389)](),_0x49b30a[_0x319138(0x1a3)](this[_0x319138(0x456)]?Math[_0x319138(0x3ea)](0x0,new Date()[_0x319138(0x1b4)]()-this[_0x319138(0x456)]):this['_getSendChangesetTimeout']()),_0x49b30a;}throw _0x5a1ec8[_0x319138(0x28e)];}catch(_0x1a65d1){return this[_0x319138(0xe6)][_0x319138(0x28e)](_0x1a65d1),this[_0x319138(0x3f6)](!0x1);}}[_0x184c40(0x3f2)](){const _0x491c12=_0x184c40;throw new Error(_0x491c12(0x399));}[_0x184c40(0x3e3)](){const _0x57a9ea=_0x184c40;throw new Error(_0x57a9ea(0x4c8));}[_0x184c40(0x2df)](){const _0x47f825=_0x184c40;return this[_0x47f825(0x389)](),this[_0x47f825(0x183)][_0x47f825(0x1d5)](_0x48d8c3,this['unitID'],this[_0x47f825(0x340)],null,this[_0x47f825(0xb7)],this['_handler']);}[_0x184c40(0x4c1)](){return this;}[_0x184c40(0x1a3)](_0x32752b){const _0x234b01=_0x184c40,_0x3da695=_0x32752b!=null?_0x32752b:this[_0x234b01(0xf4)]();this[_0x234b01(0x456)]=new Date()[_0x234b01(0x1b4)](),this[_0x234b01(0x3f5)]=window['setTimeout'](()=>{const _0x55fdca=_0x234b01;this[_0x55fdca(0x389)]();let _0x160e1e=null;switch(this['type']){case _0x55b5ea[_0x55fdca(0x1ce)]:{_0x160e1e=_0x47b1ec(this[_0x55fdca(0xb7)],this['unitID'],this[_0x55fdca(0x1b5)],this[_0x55fdca(0x223)],this[_0x55fdca(0xcb)]);break;}case _0x55b5ea[_0x55fdca(0x2f5)]:{this[_0x55fdca(0xb7)][_0x55fdca(0x22d)](_0x3073b1=>_0x3073b1['id']===_0x412f6a[_0x55fdca(0x264)]['id'])?_0x160e1e=_0x4d9781(this[_0x55fdca(0xb7)],this[_0x55fdca(0x445)],this[_0x55fdca(0x1b5)],this[_0x55fdca(0x223)],this[_0x55fdca(0xcb)]):_0x160e1e=_0x47b1ec(this[_0x55fdca(0xb7)],this[_0x55fdca(0x445)],this[_0x55fdca(0x1b5)],this[_0x55fdca(0x223)],this[_0x55fdca(0xcb)]);break;}default:throw new Error(_0x55fdca(0x121)+this[_0x55fdca(0x340)]+'\x20in\x20_schedule.');}const {changeset:_0x4f2039,pendingMutations:_0x2b45d1}=_0x160e1e;this[_0x55fdca(0x1fc)][_0x55fdca(0x285)](_0x4f2039);const _0x5a9f00=_0x2b45d1['length']?this[_0x55fdca(0x183)][_0x55fdca(0x1d5)](_0x4fc9fe,this[_0x55fdca(0x445)],this[_0x55fdca(0x340)],_0x4f2039,_0x2b45d1,this[_0x55fdca(0x1fc)]):this[_0x55fdca(0x183)][_0x55fdca(0x1d5)](_0x4fcfbe,this[_0x55fdca(0x445)],this['type'],_0x4f2039,this[_0x55fdca(0x1fc)]);_0x5a9f00[_0x55fdca(0x208)](),this['_handler']['onStateChange'](this,_0x5a9f00);},_0x3da695);}[_0x184c40(0xf4)](){const _0x8b1af1=_0x184c40;var _0x9a703;const _0x25651a=this[_0x8b1af1(0x140)][_0x8b1af1(0xfb)](_0x5a4b90);return(_0x9a703=_0x25651a==null?void 0x0:_0x25651a[_0x8b1af1(0x293)])!=null?_0x9a703:0x7d0;}[_0x184c40(0x1b3)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x464a78=_0x184c40;this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this[_0x464a78(0x3f5)]=null);}[_0x184c40(0x3f6)](_0x114a5d){const _0x4020d2=_0x184c40;return this[_0x4020d2(0x389)](),this['_injector'][_0x4020d2(0x1d5)](_0x6d3d79,this[_0x4020d2(0x445)],this[_0x4020d2(0x340)],null,this[_0x4020d2(0xb7)],this[_0x4020d2(0x1fc)],_0x114a5d);}};_0x3d2df7=_0x31579c([_0x5e28d2(0x4,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x5e28d2(0x5,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3[_0x184c40(0x3a3)])),_0x5e28d2(0x6,_0x16d562['Inject'](_0xff46cc[_0x184c40(0x205)])),_0x5e28d2(0x7,_0x16d562['Inject'](_0x19c6b5)),_0x5e28d2(0x8,_0x16d562[_0x184c40(0x31a)]),_0x5e28d2(0x9,_0x16d562[_0x184c40(0x156)]),_0x5e28d2(0xa,_0x16d562[_0x184c40(0x317)]),_0x5e28d2(0xb,_0x1f42e3['ITransformService']),_0x5e28d2(0xc,_0x16d562[_0x184c40(0x466)]),_0x5e28d2(0xd,_0x16d562[_0x184c40(0x342)])],_0x3d2df7);let _0x4fcfbe=class extends _0x17ed36{constructor(_0x180aa0,_0x33318f,_0x6e5d79,_0xfc2c49,_0x1b5182,_0x113f40,_0x257361,_0x2cf5af,_0x212d80,_0x868962,_0x12a0b6){const _0x143afd=_0x184c40;super(_0x180aa0,_0x33318f,_0x6e5d79,[],_0xfc2c49,_0x2cf5af,_0x12a0b6,_0x113f40,_0x257361),_0x1fbb55(this,'status',_0x143afd(0x2b0)),(this[_0x143afd(0x183)]=_0x1b5182,this[_0x143afd(0xe6)]=_0x212d80,this[_0x143afd(0x186)]=_0x868962);}[_0x184c40(0x390)](_0x189b3f){const _0x1cb917=_0x184c40,_0x2e9496=this[_0x1cb917(0x183)][_0x1cb917(0x1d5)](_0x4fc9fe,this[_0x1cb917(0x445)],this[_0x1cb917(0x340)],this['_awaitingChangeset'],[_0x189b3f],this[_0x1cb917(0x1fc)]);return _0x2e9496[_0x1cb917(0x208)](),_0x2e9496;}['onRemoteChangeset'](_0x5b91e8){const _0x5749c5=_0x184c40;if(this[_0x5749c5(0x47b)](_0x5b91e8))return this[_0x5749c5(0x183)][_0x5749c5(0x1d5)](_0x325f53,this[_0x5749c5(0x445)],this[_0x5749c5(0x340)],this['_awaitingChangeset'],[],null,[_0x5b91e8],this[_0x5749c5(0x1fc)]);try{const _0x12b313=this['_transformService'][_0x5749c5(0x3de)]([_0x5b91e8],[this[_0x5749c5(0x2de)]],!0x1);if(_0x1f42e3[_0x5749c5(0x169)](_0x12b313)){const {c1Prime:_0x157fa2,c2Prime:_0x5766b9}=_0x12b313;this[_0x5749c5(0x2f8)](_0x157fa2[0x0]),_0x5766b9[0x0]['baseRev']=this['_getCurrentRevision']();const _0x1ded52=this['_injector'][_0x5749c5(0x1d5)](_0x4fcfbe,this['unitID'],this['type'],_0x5766b9[0x0],this[_0x5749c5(0x1fc)]);return _0x1ded52[_0x5749c5(0x208)](),_0x1ded52;}return this[_0x5749c5(0x3f6)](!0x1);}catch(_0x527a02){return this[_0x5749c5(0xe6)][_0x5749c5(0x28e)](_0x527a02),this[_0x5749c5(0x3f6)](!0x1);}}['onRemoteAck'](_0x596407){const _0x586e45=_0x184c40,_0x595e88=this[_0x586e45(0x223)]['getCurrentRevOfUnit'](this['unitID']);if(_0x596407[_0x586e45(0xb8)]<_0x595e88-0x1)return this;if(this[_0x586e45(0x47b)](_0x596407))return this[_0x586e45(0x183)]['createInstance'](_0x325f53,this['unitID'],this['type'],null,[],this[_0x586e45(0x2de)],[],this[_0x586e45(0x1fc)]);this[_0x586e45(0x23e)]();const _0x242e85=this[_0x586e45(0x183)][_0x586e45(0x1d5)](_0x45dea1,this[_0x586e45(0x445)],this['type'],this['_handler']);return _0x242e85[_0x586e45(0x208)](),_0x242e85;}['onRemoteRej'](_0x187ed1){const _0x397074=_0x184c40;return this[_0x397074(0x3f6)](!!(_0x187ed1!=null&&_0x187ed1['isPermissionRej']));}['toggleOffline'](){const _0x2dcfac=_0x184c40;return this[_0x2dcfac(0x183)][_0x2dcfac(0x1d5)](_0x48d8c3,this['unitID'],this[_0x2dcfac(0x340)],this[_0x2dcfac(0x2de)],[],this[_0x2dcfac(0x1fc)]);}[_0x184c40(0x4c1)](){return this;}[_0x184c40(0x1b3)](){const _0x4cdb1a=_0x184c40;this['_handler'][_0x4cdb1a(0x285)](this[_0x4cdb1a(0x2de)]);}[_0x184c40(0x3f6)](_0x2e436b){const _0x26a4a2=_0x184c40;return this[_0x26a4a2(0x183)][_0x26a4a2(0x1d5)](_0x6d3d79,this[_0x26a4a2(0x445)],this[_0x26a4a2(0x340)],this[_0x26a4a2(0x2de)],[],this['_handler'],_0x2e436b);}};_0x4fcfbe=_0x31579c([_0x5e28d2(0x4,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x5e28d2(0x5,_0x16d562['Inject'](_0x1f42e3[_0x184c40(0x3a3)])),_0x5e28d2(0x6,_0x16d562['Inject'](_0xff46cc['LocalCacheService'])),_0x5e28d2(0x7,_0x16d562[_0x184c40(0x156)]),_0x5e28d2(0x8,_0x16d562['ILogService']),_0x5e28d2(0x9,_0x1f42e3[_0x184c40(0x254)]),_0x5e28d2(0xa,_0x16d562['IUndoRedoService'])],_0x4fcfbe);let _0x4fc9fe=class extends _0x17ed36{constructor(_0xe7261f,_0x24f5a0,_0x1eb86e,_0x1cb9df,_0x16585b,_0x26eba9,_0x5de7c6,_0x1e5ca4,_0x27c0be,_0x578668,_0x2a5e91,_0x33f7cc){const _0x12e1af=_0x184c40;super(_0xe7261f,_0x24f5a0,_0x1eb86e,_0x1cb9df,_0x16585b,_0x27c0be,_0x33f7cc,_0x5de7c6,_0x1e5ca4),_0x1fbb55(this,_0x12e1af(0x362),_0x12e1af(0x372)),(this[_0x12e1af(0x183)]=_0x26eba9,this['_logService']=_0x578668,this['_transformService']=_0x2a5e91);}['appendMutation'](_0x40bf97){const _0x560fc1=_0x184c40;return this[_0x560fc1(0xb7)][_0x560fc1(0x250)](_0x40bf97),this;}[_0x184c40(0x114)](_0x3958d4){const _0x3be90f=_0x184c40;if(this[_0x3be90f(0x47b)](_0x3958d4))return this[_0x3be90f(0x183)][_0x3be90f(0x1d5)](_0x325f53,this[_0x3be90f(0x445)],this[_0x3be90f(0x340)],this[_0x3be90f(0x2de)],this[_0x3be90f(0xb7)],null,[_0x3958d4],this['_handler']);try{const _0x1b2e35=this[_0x3be90f(0x186)][_0x3be90f(0x3de)]([_0x3958d4],[this[_0x3be90f(0x2de)]],!0x1);if(_0x1f42e3['isTransformChangesetsSuccess'](_0x1b2e35)){const {c1Prime:_0x187a75,c2Prime:_0x2c10e6}=_0x1b2e35,_0x4b245a=this[_0x3be90f(0x186)][_0x3be90f(0x49b)](_0x187a75[0x0],this['_pendingMutations']);if(_0x1f42e3['isTransformMutationsWithChangesetSuccess'](_0x4b245a)){const {c1Prime:_0x176840,m2Prime:_0x1869ee}=_0x4b245a;return this['_executeRemoteChangeset'](_0x176840),_0x2c10e6[0x0][_0x3be90f(0xed)]=this['_getCurrentRevision'](),this['_injector'][_0x3be90f(0x1d5)](_0x4fc9fe,this[_0x3be90f(0x445)],this['type'],_0x2c10e6[0x0],_0x1869ee,this['_handler']);}throw _0x4b245a[_0x3be90f(0x28e)];}throw _0x1b2e35['error'];}catch(_0x5f10ba){return this[_0x3be90f(0xe6)][_0x3be90f(0x28e)](_0x5f10ba),this[_0x3be90f(0x3f6)](!0x1);}}[_0x184c40(0x3f2)](_0x1787bc){const _0x3f8a58=_0x184c40;if(this[_0x3f8a58(0x47b)](_0x1787bc))return this[_0x3f8a58(0x183)][_0x3f8a58(0x1d5)](_0x325f53,this[_0x3f8a58(0x445)],this['type'],null,this[_0x3f8a58(0xb7)],this[_0x3f8a58(0x2de)],[],this['_handler']);this['_incrementRevisionNumber']();const _0xe1df85=this['_injector'][_0x3f8a58(0x1d5)](_0x3d2df7,this['unitID'],this[_0x3f8a58(0x340)],this[_0x3f8a58(0xb7)],this[_0x3f8a58(0x1fc)]);return _0xe1df85[_0x3f8a58(0x1a3)](),_0xe1df85['_updateLocalCache'](),_0xe1df85;}['onRemoteRej'](_0xb5bdf0){const _0x341e68=_0x184c40;return this[_0x341e68(0x3f6)](!!(_0xb5bdf0!=null&&_0xb5bdf0['isPermissionRej']));}[_0x184c40(0x2df)](){const _0x5894e6=_0x184c40;return this[_0x5894e6(0x183)][_0x5894e6(0x1d5)](_0x48d8c3,this[_0x5894e6(0x445)],this[_0x5894e6(0x340)],this[_0x5894e6(0x2de)],this['_pendingMutations'],this[_0x5894e6(0x1fc)]);}['toggleOnline'](){return this;}[_0x184c40(0x1b3)](){const _0x3e03c9=_0x184c40;this[_0x3e03c9(0x1fc)]['onSendChangeset'](this[_0x3e03c9(0x2de)]);}[_0x184c40(0x3f6)](_0x49a99){const _0x561f13=_0x184c40;return this[_0x561f13(0x183)][_0x561f13(0x1d5)](_0x6d3d79,this[_0x561f13(0x445)],this[_0x561f13(0x340)],null,this['_pendingMutations'],this[_0x561f13(0x1fc)],_0x49a99);}};_0x4fc9fe=_0x31579c([_0x5e28d2(0x5,_0x16d562['Inject'](_0x16d562[_0x184c40(0x3a2)])),_0x5e28d2(0x6,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3[_0x184c40(0x3a3)])),_0x5e28d2(0x7,_0x16d562[_0x184c40(0x1e9)](_0xff46cc['LocalCacheService'])),_0x5e28d2(0x8,_0x16d562[_0x184c40(0x156)]),_0x5e28d2(0x9,_0x16d562['ILogService']),_0x5e28d2(0xa,_0x1f42e3['ITransformService']),_0x5e28d2(0xb,_0x16d562[_0x184c40(0x342)])],_0x4fc9fe);let _0x6d3d79=class extends _0x17ed36{constructor(_0x550c65,_0x19b509,_0x496bcc,_0x1117a2,_0xe4f1f4,_0x1d73ff=!0x1,_0x1368b4,_0xe0733e,_0xd68d1b,_0x5430cb,_0x2cdbaa,_0x2fd9f2,_0xb35af3){const _0x2fc9c8=_0x184c40;super(_0x550c65,_0x19b509,_0x496bcc,_0x1117a2,_0xe4f1f4,_0xe0733e,_0xd68d1b,_0x2cdbaa,_0x5430cb),_0x1fbb55(this,'status','conflict'),(this[_0x2fc9c8(0x4bb)]=_0x1d73ff,this['_permissionService']=_0x1368b4,this[_0x2fc9c8(0x2b4)]=_0x2fd9f2,this['_notificationService']=_0xb35af3,this[_0x2fc9c8(0x1e1)](),this[_0x2fc9c8(0x24f)](),this[_0x2fc9c8(0x4de)]());}[_0x184c40(0x390)](){return this;}[_0x184c40(0x114)](){return this;}['onRemoteAck'](){return this;}[_0x184c40(0x3e3)](){return this;}[_0x184c40(0x2df)](){return this;}[_0x184c40(0x4c1)](){return this;}['resend'](){const _0x261ca1=_0x184c40;throw new Error(_0x261ca1(0x2cf));}[_0x184c40(0x24f)](){const _0x3abec8=_0x184c40;this[_0x3abec8(0x103)][_0x3abec8(0x2c1)](this[_0x3abec8(0x445)],this['type'],null,[]);}[_0x184c40(0x1e1)](){const _0x14d149=_0x184c40;this[_0x14d149(0x4bb)]?this[_0x14d149(0x25c)][_0x14d149(0x1be)]({'title':this[_0x14d149(0x2b4)]['t'](_0x14d149(0x180)),'content':this[_0x14d149(0x2b4)]['t'](_0x14d149(0xc6)),'type':_0x14d149(0x28e),'duration':0x0}):this[_0x14d149(0x25c)][_0x14d149(0x1be)]({'title':this['_localeService']['t'](_0x14d149(0x12f)),'content':this[_0x14d149(0x2b4)]['t'](_0x14d149(0x333)),'type':_0x14d149(0x28e),'duration':0x0});}[_0x184c40(0x4de)](){const _0x15dd45=_0x184c40;this[_0x15dd45(0x1e2)][_0x15dd45(0x302)](new _0x30fd53['WorkbookEditablePermission'](this[_0x15dd45(0x445)])['id'],!0x1);}};_0x6d3d79=_0x31579c([_0x5e28d2(0x6,_0x16d562[_0x184c40(0x1e9)](_0x16d562['IPermissionService'])),_0x5e28d2(0x7,_0x16d562[_0x184c40(0x156)]),_0x5e28d2(0x8,_0x16d562['IUndoRedoService']),_0x5e28d2(0x9,_0x16d562[_0x184c40(0x1e9)](_0xff46cc[_0x184c40(0x205)])),_0x5e28d2(0xa,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3[_0x184c40(0x3a3)])),_0x5e28d2(0xb,_0x16d562['Inject'](_0x16d562[_0x184c40(0x42c)])),_0x5e28d2(0xc,_0x5f2673[_0x184c40(0x3be)])],_0x6d3d79);let _0x48d8c3=class extends _0x17ed36{constructor(_0x4fa5ae,_0x2f4996,_0x3898f3,_0x23ef59,_0x302a93,_0x31a15d,_0x2ab803,_0x511e87,_0x2f3a2f,_0x16995a){const _0x2b7bda=_0x184c40;super(_0x4fa5ae,_0x2f4996,_0x3898f3,_0x23ef59,_0x302a93,_0x2f3a2f,_0x16995a,_0x2ab803,_0x511e87),_0x1fbb55(this,'status',_0x2b7bda(0x455)),this[_0x2b7bda(0x183)]=_0x31a15d;}[_0x184c40(0x390)](_0x377eb){const _0x7a208b=_0x184c40;return this[_0x7a208b(0xb7)][_0x7a208b(0x250)](_0x377eb),this['_updateLocalCache'](),this;}[_0x184c40(0x114)](_0x1517c1){const _0x3abc23=_0x184c40;throw new Error(_0x3abc23(0x136));}['onRemoteAck'](){const _0x1f6133=_0x184c40;throw new Error(_0x1f6133(0x22c));}[_0x184c40(0x3e3)](){const _0x1aeeea=_0x184c40;throw new Error(_0x1aeeea(0x14b));}[_0x184c40(0x2df)](){return this;}[_0x184c40(0x4c1)](){const _0x45a61e=_0x184c40,{_injector:_0x4b9bb4,_pendingMutations:_0xe5e885,_awaitingChangeset:_0x15847a,unitID:_0x3647ad,_handler:_0x37a382,type:_0x5c8c6a}=this,_0x3f33fc=_0x4bca3b(_0x4b9bb4,_0x3647ad,_0x5c8c6a,_0x15847a,_0xe5e885,_0x37a382);return _0x3f33fc instanceof _0x3d2df7?_0x3f33fc[_0x45a61e(0x1a3)]():(_0x3f33fc instanceof _0x4fc9fe||_0x3f33fc instanceof _0x4fcfbe)&&_0x3f33fc[_0x45a61e(0x1b3)](),_0x3f33fc;}[_0x184c40(0x1b3)](){const _0x55c990=_0x184c40;throw new Error(_0x55c990(0x12c));}};_0x48d8c3=_0x31579c([_0x5e28d2(0x5,_0x16d562[_0x184c40(0x1e9)](_0x16d562['Injector'])),_0x5e28d2(0x6,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3[_0x184c40(0x3a3)])),_0x5e28d2(0x7,_0x16d562[_0x184c40(0x1e9)](_0xff46cc[_0x184c40(0x205)])),_0x5e28d2(0x8,_0x16d562['ICommandService']),_0x5e28d2(0x9,_0x16d562['IUndoRedoService'])],_0x48d8c3);let _0x325f53=class extends _0x17ed36{constructor(_0x4b880b,_0x23f6df,_0x397bab,_0x1c7214,_0x34dca3,_0x43a7a8,_0x330637,_0x3bde57,_0x20a50a,_0x4d288f,_0x286c08,_0x4c742c,_0x2482c0,_0x299b72){const _0x1591fa=_0x184c40;super(_0x4b880b,_0x23f6df,_0x397bab,_0x1c7214,_0x330637,_0x4c742c,_0x2482c0,_0x20a50a,_0x4d288f),_0x1fbb55(this,_0x1591fa(0x362),_0x1591fa(0x1dc)),(this[_0x1591fa(0x11a)]=_0x34dca3,this[_0x1591fa(0x33d)]=_0x43a7a8,this['_injector']=_0x3bde57,this[_0x1591fa(0xe6)]=_0x286c08,this['_transformService']=_0x299b72);}[_0x184c40(0x382)](_0x311975){const _0x309d05=_0x184c40;try{const _0x2c3c97=[..._0x311975,...this['_queuedRemoteChangesets']],_0x430833=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']][_0x309d05(0x1fa)](_0x373834=>!!_0x373834);let _0x38d738,_0x2ca4fd;if(_0x430833[_0x309d05(0x3bc)]){const _0x9498e3=this['_transformService'][_0x309d05(0x3de)](_0x2c3c97,_0x430833,!0x1);if(!_0x1f42e3[_0x309d05(0x169)](_0x9498e3))throw _0x9498e3[_0x309d05(0x28e)];_0x38d738=_0x9498e3[_0x309d05(0x272)],_0x2ca4fd=_0x9498e3[_0x309d05(0x436)];}else _0x38d738=_0x2c3c97,_0x2ca4fd=[];let _0x246609=this['_pendingMutations'];_0x38d738[_0x309d05(0x284)](_0x4d1c1d=>{const _0x1ea432=_0x309d05;let _0x4e6d1c;if(_0x246609[_0x1ea432(0x3bc)]){const _0x4d9052=this[_0x1ea432(0x186)][_0x1ea432(0x49b)](_0x4d1c1d,_0x246609);if(!_0x1f42e3['isTransformMutationsWithChangesetSuccess'](_0x4d9052))throw _0x4d9052[_0x1ea432(0x28e)];_0x4e6d1c=_0x4d9052[_0x1ea432(0x272)],_0x246609=_0x4d9052[_0x1ea432(0x22b)];}else _0x4e6d1c=_0x4d1c1d;this[_0x1ea432(0x2f8)](_0x4e6d1c);}),this[_0x309d05(0x11a)]&&this[_0x309d05(0x23e)](),this[_0x309d05(0x2de)]&&_0x2ca4fd[_0x309d05(0x3bc)]&&(_0x2ca4fd[0x0][_0x309d05(0xed)]=this[_0x309d05(0x18b)]());let _0x5483c2;if(this[_0x309d05(0x2de)]&&_0x246609[_0x309d05(0x3bc)]!==0x0)_0x5483c2=this['_injector']['createInstance'](_0x4fc9fe,this[_0x309d05(0x445)],this[_0x309d05(0x340)],_0x2ca4fd[0x0],_0x246609,this['_handler']);else{if(this[_0x309d05(0x2de)]&&_0x246609['length']===0x0)_0x2ca4fd[0x0][_0x309d05(0xed)]=this['_getCurrentRevision'](),_0x5483c2=this[_0x309d05(0x183)][_0x309d05(0x1d5)](_0x4fcfbe,this[_0x309d05(0x445)],this[_0x309d05(0x340)],_0x2ca4fd[0x0],this[_0x309d05(0x1fc)]);else{if(_0x246609['length']!==0x0){const _0x5bb2bd=this[_0x309d05(0x183)][_0x309d05(0x1d5)](_0x3d2df7,this['unitID'],this['type'],_0x246609,this[_0x309d05(0x1fc)]);_0x5bb2bd[_0x309d05(0x1a3)](),_0x5483c2=_0x5bb2bd;}else _0x5483c2=this['_injector'][_0x309d05(0x1d5)](_0x45dea1,this['unitID'],this[_0x309d05(0x340)],this['_handler']);}}return _0x5483c2[_0x309d05(0x208)](),_0x5483c2;}catch(_0xeafa4a){return this[_0x309d05(0xe6)][_0x309d05(0x28e)](_0x309d05(0x2e0),_0x309d05(0x1d1),_0xeafa4a),this[_0x309d05(0x183)][_0x309d05(0x1d5)](_0x6d3d79,this['unitID'],this[_0x309d05(0x340)],this[_0x309d05(0x2de)],this[_0x309d05(0xb7)],this['_handler'],!0x1);}}[_0x184c40(0x1b3)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x184c40(0x390)](_0x59ca34){const _0x313ab9=_0x184c40;return this[_0x313ab9(0xb7)][_0x313ab9(0x250)](_0x59ca34),this;}[_0x184c40(0x114)](_0x520ebf){const _0x3fcf83=_0x184c40;return this[_0x3fcf83(0x33d)][_0x3fcf83(0x250)](_0x520ebf),this;}[_0x184c40(0x3f2)](_0x533ce7){const _0x3d00cb=_0x184c40;if(this['_awaitingChangeset'])return this['_acknowledgedAwaitingChangeset']=this['_awaitingChangeset'],this['_awaitingChangeset']=null,this;throw new Error(_0x3d00cb(0x498));}[_0x184c40(0x3e3)](_0x16339d){const _0x2cce19=_0x184c40;return this[_0x2cce19(0x3f6)](!!(_0x16339d!=null&&_0x16339d[_0x2cce19(0x3df)]));}[_0x184c40(0x2df)](){const _0x293e98=_0x184c40;return this[_0x293e98(0x183)][_0x293e98(0x1d5)](_0x48d8c3,this[_0x293e98(0x445)],this[_0x293e98(0x340)],this[_0x293e98(0x2de)],this[_0x293e98(0xb7)],this[_0x293e98(0x1fc)]);}[_0x184c40(0x4c1)](){return this;}[_0x184c40(0x3f6)](_0x568111){const _0x197428=_0x184c40;return this['_injector']['createInstance'](_0x6d3d79,this['unitID'],this[_0x197428(0x340)],this[_0x197428(0x2de)],this[_0x197428(0xb7)],this[_0x197428(0x1fc)],_0x568111);}};_0x325f53=_0x31579c([_0x5e28d2(0x7,_0x16d562[_0x184c40(0x1e9)](_0x16d562['Injector'])),_0x5e28d2(0x8,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3[_0x184c40(0x3a3)])),_0x5e28d2(0x9,_0x16d562[_0x184c40(0x1e9)](_0xff46cc[_0x184c40(0x205)])),_0x5e28d2(0xa,_0x16d562[_0x184c40(0x31a)]),_0x5e28d2(0xb,_0x16d562[_0x184c40(0x156)]),_0x5e28d2(0xc,_0x16d562['IUndoRedoService']),_0x5e28d2(0xd,_0x1f42e3[_0x184c40(0x254)])],_0x325f53);function _0x4bca3b(_0x4d2dc8,_0x28c8d4,_0x2d580e,_0x4f8bbb,_0x2cef72,_0xab5e76){const _0x500a3d=_0x184c40;return _0x4f8bbb&&_0x2cef72[_0x500a3d(0x3bc)]?_0x4d2dc8['createInstance'](_0x4fc9fe,_0x28c8d4,_0x2d580e,_0x4f8bbb,_0x2cef72,_0xab5e76):_0x4f8bbb?_0x4d2dc8[_0x500a3d(0x1d5)](_0x4fcfbe,_0x28c8d4,_0x2d580e,_0x4f8bbb,_0xab5e76):_0x2cef72['length']?_0x4d2dc8[_0x500a3d(0x1d5)](_0x3d2df7,_0x28c8d4,_0x2d580e,_0x2cef72,_0xab5e76):_0x4d2dc8[_0x500a3d(0x1d5)](_0x45dea1,_0x28c8d4,_0x2d580e,_0xab5e76);}var _0x2cc415=Object[_0x184c40(0x471)],_0x31f00c=Object['getOwnPropertyDescriptor'],_0xd3d40c=(_0xd9c299,_0x4fbc9f,_0x3acec3,_0x4add05)=>{for(var _0x3b18e6=_0x4add05>0x1?void 0x0:_0x4add05?_0x31f00c(_0x4fbc9f,_0x3acec3):_0x4fbc9f,_0x133199=_0xd9c299['length']-0x1,_0x3c749f;_0x133199>=0x0;_0x133199--)(_0x3c749f=_0xd9c299[_0x133199])&&(_0x3b18e6=(_0x4add05?_0x3c749f(_0x4fbc9f,_0x3acec3,_0x3b18e6):_0x3c749f(_0x3b18e6))||_0x3b18e6);return _0x4add05&&_0x3b18e6&&_0x2cc415(_0x4fbc9f,_0x3acec3,_0x3b18e6),_0x3b18e6;},_0x1f40b1=(_0x27556c,_0x53e731)=>(_0x167b1b,_0x339de3)=>_0x53e731(_0x167b1b,_0x339de3,_0x27556c);_0xff46cc['CollaborationEntity']=class extends _0x16d562[_0x184c40(0x204)]{constructor(_0x543717,_0x1a3d1e,_0xbf0c4d,_0x5a571a,_0xa31302,_0x12b7ab,_0x57932e,_0x51f419,_0x324ff8,_0x17601d,_0x32050f,_0x51e82f,_0x524ff7){const _0x4497be=_0x184c40;super(),_0x1fbb55(this,_0x4497be(0x3d2),new _0x1f1780[(_0x4497be(0x2f0))](null)),_0x1fbb55(this,_0x4497be(0x1ee),this[_0x4497be(0x3d2)]['asObservable']()),_0x1fbb55(this,_0x4497be(0x421)),_0x1fbb55(this,_0x4497be(0x49c),!0x1),_0x1fbb55(this,'status$',this[_0x4497be(0x1ee)][_0x4497be(0x3b2)](_0x1f1780[_0x4497be(0x3ed)](_0x4b0614=>_0x4b0614?_0x4b0614[_0x4497be(0x362)]:_0x55c585[_0x4497be(0x1dd)]),_0x1f1780['shareReplay'](0x1))),_0x1fbb55(this,'_transitionLocked',!0x1),_0x1fbb55(this,_0x4497be(0x1d3),[]),(this['unitID']=_0x543717,this[_0x4497be(0x351)]=_0x1a3d1e,this[_0x4497be(0x316)]=_0xbf0c4d,this[_0x4497be(0x183)]=_0x5a571a,this[_0x4497be(0x103)]=_0xa31302,this[_0x4497be(0x20f)]=_0x12b7ab,this[_0x4497be(0x2b4)]=_0x57932e,this[_0x4497be(0x223)]=_0x51f419,this[_0x4497be(0xe6)]=_0x324ff8,this['_commandService']=_0x17601d,this[_0x4497be(0x4a3)]=_0x32050f,this[_0x4497be(0x1e2)]=_0x51e82f,this['_singleActiveUnitService']=_0x524ff7);}get['state'](){const _0x39c007=_0x184c40;return this[_0x39c007(0x421)];}async[_0x184c40(0x3e6)](){if(this['state'])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x184c40(0x257)](){const _0xcf680c=_0x184c40;return this['_collaborationPaused']=!0x0,_0x16d562[_0xcf680c(0x228)](()=>{const _0x109105=_0xcf680c;this[_0x109105(0x49c)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x5b7593){const _0x488ac5=_0x184c40;this[_0x488ac5(0x421)]=_0x5b7593,this[_0x488ac5(0x3d2)]['next'](_0x5b7593);}async[_0x184c40(0x2d7)](){const _0x259657=_0x184c40;var _0x464548;this[_0x259657(0x490)](await this[_0x259657(0x4e2)]()),this[_0x259657(0x276)]&&((_0x464548=this[_0x259657(0x276)])==null||_0x464548[_0x259657(0x4b7)](this['unitID']),this['disposeWithMe'](this['_singleActiveUnitService'][_0x259657(0x31d)](this[_0x259657(0x445)])['subscribe'](_0x183d9b=>{const _0x2a03cc=_0x259657;this[_0x2a03cc(0xe6)][_0x2a03cc(0x2b2)](_0x2a03cc(0x35f),'editing\x20status\x20changed\x20to',_0x183d9b),_0x183d9b===_0x2fccbf[_0x2a03cc(0x2b6)]?(this[_0x2a03cc(0x4a3)][_0x2a03cc(0x1be)]({'content':this[_0x2a03cc(0x2b4)]['t']('collaboration.single-unit.warning'),'type':_0x516637[_0x2a03cc(0x1ac)][_0x2a03cc(0xc8)]}),this[_0x2a03cc(0x1e2)]['updatePermissionPoint'](new _0x30fd53['WorkbookEditablePermission'](this[_0x2a03cc(0x445)])['id'],!0x1)):this['_permissionService']['updatePermissionPoint'](new _0x30fd53[(_0x2a03cc(0x4cc))](this[_0x2a03cc(0x445)])['id'],!0x0);})));let _0x4e9669=!0x1;return this[_0x259657(0xce)](this[_0x259657(0x351)]['sessionStatus$'][_0x259657(0x462)](_0x5061cb=>{const _0x278159=_0x259657;_0x5061cb===_0x17c413['ONLINE']?this[_0x278159(0x209)](_0x4e9669):_0x5061cb===_0x17c413['OFFLINE']&&(_0x4e9669=!0x0,this[_0x278159(0xe5)]());})),this[_0x259657(0xce)](this[_0x259657(0x351)][_0x259657(0x30c)][_0x259657(0x462)](_0xbd2d39=>{const _0x2ece36=_0x259657;try{switch(_0xbd2d39[_0x2ece36(0x150)]){case _0x1f42e3[_0x2ece36(0x336)]['NEW_CHANGESETS']:{this[_0x2ece36(0x201)](_0x1f42e3[_0x2ece36(0x26c)](_0xbd2d39['data']));break;}case _0x1f42e3[_0x2ece36(0x336)][_0x2ece36(0x47e)]:{this[_0x2ece36(0x492)](_0xbd2d39['data']);break;}case _0x1f42e3[_0x2ece36(0x336)]['CHANGESET_REJ']:{this[_0x2ece36(0x151)]();break;}case _0x1f42e3[_0x2ece36(0x336)]['PSEUDO_FETCH_MISSING_RESULT']:{this['_onFetchMissResult'](_0xbd2d39['data'][_0x2ece36(0x361)][_0x2ece36(0x3ed)](_0xe5df3a=>_0x1f42e3['parseProtocolChangeset'](_0xe5df3a)));break;}case _0x1f42e3[_0x2ece36(0x336)]['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x4c2bb5){throw console[_0x2ece36(0x28e)]('Error\x20on\x20receiving\x20event',_0x4c2bb5),_0x4c2bb5;}})),this[_0x259657(0x421)];}[_0x184c40(0xd2)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x3104a7=_0x184c40;if(this[_0x3104a7(0x26b)])throw new Error(_0x3104a7(0x212));this[_0x3104a7(0x26b)]=!0x0;}[_0x184c40(0x4ca)](_0x5f5898){const _0x46291b=_0x184c40;this[_0x46291b(0x46e)](),this['_updateState'](this[_0x46291b(0x421)][_0x46291b(0x390)](_0x5f5898)),this['_unlockTransition']();}[_0x184c40(0x201)](_0x104dea){const _0x35257f=_0x184c40;if(!(_0x104dea[_0x35257f(0xb8)]<=this[_0x35257f(0x223)][_0x35257f(0x43e)](this[_0x35257f(0x445)]))){if(this[_0x35257f(0x49c)]){this[_0x35257f(0x1d3)][_0x35257f(0x250)](_0x104dea);return;}this[_0x35257f(0x147)](_0x104dea);}}[_0x184c40(0x21c)](){const _0x41876c=_0x184c40;this[_0x41876c(0x1d3)][_0x41876c(0x284)](_0x305f94=>this['_applyRemoteChangeset'](_0x305f94)),this[_0x41876c(0x1d3)]=[];}[_0x184c40(0x147)](_0x243f83){const _0x1e4483=_0x184c40,_0x4bbd6f=this['_compressMutationService']['interceptor'][_0x1e4483(0x3d5)](this[_0x1e4483(0x20f)][_0x1e4483(0x420)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x243f83[_0x1e4483(0x15e)],null)||_0x243f83[_0x1e4483(0x15e)],_0x4ca9ab={..._0x243f83,'mutations':_0x4bbd6f};this[_0x1e4483(0x46e)](),this['_updateState'](this[_0x1e4483(0x421)][_0x1e4483(0x114)](_0x4ca9ab)),this[_0x1e4483(0xd2)]();}[_0x184c40(0x492)](_0x5234c7){const _0xb43987=_0x184c40;this[_0xb43987(0x46e)](),this['_updateState'](this[_0xb43987(0x421)]['onRemoteAck'](_0x5234c7)),this[_0xb43987(0xd2)]();}[_0x184c40(0x151)](_0x283d6f){const _0x5b2098=_0x184c40;this[_0x5b2098(0x46e)](),this['_updateState'](this[_0x5b2098(0x421)][_0x5b2098(0x3e3)](_0x283d6f)),this[_0x5b2098(0xd2)]();}[_0x184c40(0x48b)](_0x5e1d18){const _0xfdff12=_0x184c40;if(!(this[_0xfdff12(0x421)]instanceof _0x325f53))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x57776f=_0x5e1d18[_0xfdff12(0x3ed)](_0x282417=>{const _0x5b59f4=_0xfdff12,_0x385722=this[_0x5b59f4(0x20f)]['interceptor'][_0x5b59f4(0x3d5)](this[_0x5b59f4(0x20f)][_0x5b59f4(0x420)][_0x5b59f4(0x16d)]()['COMPRESS_MUTATION_APPLY'])(_0x282417['mutations'],null)||_0x282417[_0x5b59f4(0x15e)];return{..._0x282417,'mutations':_0x385722};});this[_0xfdff12(0x46e)](),this[_0xfdff12(0x490)](this[_0xfdff12(0x421)][_0xfdff12(0x382)](_0x57776f)),this[_0xfdff12(0xd2)]();}[_0x184c40(0xe5)](){const _0x1b0c46=_0x184c40;this['_lockTransition'](),this['_updateState'](this[_0x1b0c46(0x421)]['toggleOffline']()),this[_0x1b0c46(0xd2)]();}['_toggleOnline'](_0x2c076d=!0x1){const _0x16a63e=_0x184c40;this[_0x16a63e(0x46e)](),this[_0x16a63e(0x490)](this['_state']['toggleOnline']()),this[_0x16a63e(0xd2)]();const _0x4a96c4=this[_0x16a63e(0x421)];_0x2c076d&&_0x4a96c4 instanceof _0x45dea1&&(this['_lockTransition'](),this[_0x16a63e(0x490)](_0x4a96c4['fetchMiss']()),this['_unlockTransition']());}async[_0x184c40(0x4e2)](){return new Promise(_0x71b25=>{const _0x529930=_0x2bb3;this[_0x529930(0x351)]['sessionStatus$']['pipe'](_0x1f1780['take'](0x1))['subscribe'](async _0x34eb80=>{const _0x1c1ded=_0x529930;_0x71b25(await this['_createInitialStateImpl'](_0x34eb80===_0x17c413[_0x1c1ded(0x273)]));});});}[_0x184c40(0x113)](){const _0x2de00b=this['unitID'];return{'onStateChange':(_0x27ffdf,_0x2945f6)=>{const _0xf534cb=_0x2bb3;if(_0x27ffdf!==this[_0xf534cb(0x421)])throw new Error(_0xf534cb(0x23b)+_0x27ffdf[_0xf534cb(0x362)]+_0xf534cb(0x1aa)+_0x2945f6[_0xf534cb(0x362)]+'\x0aCurrent:\x20'+this['_state'][_0xf534cb(0x362)]);this[_0xf534cb(0x490)](_0x2945f6);},'onSendChangeset':_0x720748=>{const _0x22c235=_0x2bb3,_0x154218={'eventID':_0x1f42e3['CollaborationEvent'][_0x22c235(0x4e0)],'data':{'unitID':_0x720748['unitID'],'unitType':this['_type'],'changeset':_0x720748,'memberID':this[_0x22c235(0x351)]['getMemberID']()}};this['session'][_0x22c235(0x17d)](_0x154218,this[_0x22c235(0x445)]);},'onMissingChangesets':({from:_0x5880db,to:_0xebbdd2})=>{const _0x5d0d21=_0x2bb3;this[_0x5d0d21(0xe6)][_0x5d0d21(0x2b2)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x5880db+'\x20to\x20'+_0xebbdd2);const _0x12797c={'eventID':_0x1f42e3['CollaborationEvent'][_0x5d0d21(0x430)],'data':{'unitID':_0x2de00b,'unitType':this[_0x5d0d21(0x316)],'from':_0x5880db,'to':_0xebbdd2}};this[_0x5d0d21(0x351)][_0x5d0d21(0x17d)](_0x12797c,this[_0x5d0d21(0x445)]);}};}async[_0x184c40(0x27a)](_0x47f4f9){const _0x16f8eb=_0x184c40;var _0x195f27,_0x2a1576;const _0x29db56=await this[_0x16f8eb(0x103)][_0x16f8eb(0x45f)](this[_0x16f8eb(0x445)]),_0x3f02ad=(_0x195f27=_0x29db56==null?void 0x0:_0x29db56[_0x16f8eb(0x15e)])!=null?_0x195f27:[],_0x48ce53=(_0x2a1576=_0x29db56==null?void 0x0:_0x29db56['awaitingChangeset'])!=null?_0x2a1576:null,_0x128892=this[_0x16f8eb(0x445)];try{this[_0x16f8eb(0x1b0)](_0x48ce53,_0x3f02ad);}catch(_0x1498f3){this[_0x16f8eb(0xe6)][_0x16f8eb(0x28e)](_0x1498f3);}const _0x4b6dd3=this['_createHandler']();if(_0x47f4f9){const _0x2b1233=_0x4bca3b(this[_0x16f8eb(0x183)],_0x128892,this[_0x16f8eb(0x316)],_0x48ce53,_0x3f02ad,_0x4b6dd3);return _0x2b1233 instanceof _0x3d2df7?_0x2b1233[_0x16f8eb(0x1a3)]():(_0x2b1233 instanceof _0x4fc9fe||_0x2b1233 instanceof _0x4fcfbe)&&_0x2b1233['resend'](),_0x2b1233;}return this['_injector']['createInstance'](_0x48d8c3,_0x128892,this[_0x16f8eb(0x316)],_0x48ce53,_0x3f02ad,_0x4b6dd3);}['_replayCachedMutations'](_0x4f18dd,_0x57ee92){const _0x416289=_0x184c40;var _0x4cb5b0,_0x331334;const _0xeb08db=this[_0x416289(0x20f)][_0x416289(0x420)][_0x416289(0x3d5)](this[_0x416289(0x20f)]['interceptor'][_0x416289(0x16d)]()[_0x416289(0x47f)]);(_0x4cb5b0=_0xeb08db((_0x4f18dd==null?void 0x0:_0x4f18dd[_0x416289(0x15e)])||[],null))==null||_0x4cb5b0[_0x416289(0x284)](_0x2ffb7e=>this[_0x416289(0x3da)][_0x416289(0x2d5)](_0x2ffb7e['id'],_0x2ffb7e['params'])),(_0x331334=_0xeb08db(_0x57ee92||[],null))==null||_0x331334['forEach'](_0x22f02e=>this[_0x416289(0x3da)][_0x416289(0x2d5)](_0x22f02e['id'],_0x22f02e['params']));}},_0xff46cc[_0x184c40(0x4ba)]=_0xd3d40c([_0x1f40b1(0x3,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x1f40b1(0x4,_0x16d562[_0x184c40(0x1e9)](_0xff46cc['LocalCacheService'])),_0x1f40b1(0x5,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3[_0x184c40(0x202)])),_0x1f40b1(0x6,_0x16d562['Inject'](_0x16d562['LocaleService'])),_0x1f40b1(0x7,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3['RevisionService'])),_0x1f40b1(0x8,_0x16d562[_0x184c40(0x31a)]),_0x1f40b1(0x9,_0x16d562[_0x184c40(0x156)]),_0x1f40b1(0xa,_0x5f2673[_0x184c40(0x16f)]),_0x1f40b1(0xb,_0x16d562[_0x184c40(0x3c2)]),_0x1f40b1(0xc,_0x16d562[_0x184c40(0x139)](_0x110502))],_0xff46cc[_0x184c40(0x4ba)]),_0xff46cc[_0x184c40(0x2c6)]=class extends _0xff46cc['CollaborationEntity']{constructor(_0x44415b,_0x58479b,_0xfb1d35,_0x5691a3,_0x332ef8,_0x524968,_0x5e4716,_0x53b34b,_0x5a8baf,_0x43479f,_0x239759,_0x5b27dd,_0x372b9a,_0x197a23,_0x148f0a,_0x9f9831,_0xf86b5){const _0x2e4438=_0x184c40;super(_0x44415b,_0xfb1d35,_0x58479b,_0x5691a3,_0x332ef8,_0x524968,_0x5e4716,_0x53b34b,_0x372b9a,_0x197a23,_0x148f0a,_0x9f9831,_0xf86b5),this['unitID']=_0x44415b,this[_0x2e4438(0x340)]=_0x58479b,this[_0x2e4438(0x4ce)]=_0x5a8baf,this[_0x2e4438(0x21d)]=_0x43479f,this['_docTransformSelectionsService']=_0x239759,this[_0x2e4438(0x195)]=_0x5b27dd;}[_0x184c40(0x113)](){const _0x290a8a=_0x184c40,_0x23f65a=super[_0x290a8a(0x113)]();return _0x23f65a[_0x290a8a(0xd3)]=_0x22a2cf=>this['_docTransformIMECacheService'][_0x290a8a(0x47a)](_0x22a2cf),_0x23f65a['onTransformSelections']=_0x2a00e8=>this[_0x290a8a(0x486)][_0x290a8a(0x2f1)](_0x2a00e8),_0x23f65a[_0x290a8a(0x266)]=_0x34be81=>this['_docSyncEditingCollabCursorService'][_0x290a8a(0x3d1)](_0x34be81),_0x23f65a[_0x290a8a(0x194)]=_0x37b692=>this[_0x290a8a(0x21d)][_0x290a8a(0x230)](_0x37b692),_0x23f65a;}async['_init'](){const _0x29e4ec=_0x184c40,_0x3118b4=await super['_init']();return this[_0x29e4ec(0xce)](this[_0x29e4ec(0x3da)][_0x29e4ec(0x398)]((_0x3a7cfa,_0x589420)=>{const _0x1925a0=_0x29e4ec;if(_0x3a7cfa[_0x1925a0(0x340)]!==_0x16d562['CommandType']['MUTATION']||_0x589420!=null&&_0x589420[_0x1925a0(0x414)]||_0x589420!=null&&_0x589420[_0x1925a0(0x14e)])return;const _0x495c88=_0x3a7cfa['params'];if((_0x495c88==null?void 0x0:_0x495c88[_0x1925a0(0x354)])!==this[_0x1925a0(0x445)])return;let _0x113af9=_0x3a7cfa;if(_0x113af9['id']===_0x412f6a[_0x1925a0(0x264)]['id']){const _0x662270=_0x113af9[_0x1925a0(0x290)];_0x113af9={'id':_0x412f6a['RichTextEditingMutation']['id'],'type':_0x16d562[_0x1925a0(0x4e4)][_0x1925a0(0x1bd)],'params':{'unitId':_0x662270[_0x1925a0(0x354)],'actions':_0x662270[_0x1925a0(0x277)],'textRanges':null}};}const _0x38376b=this[_0x1925a0(0x20f)][_0x1925a0(0x420)][_0x1925a0(0x3d5)](this[_0x1925a0(0x20f)]['interceptor'][_0x1925a0(0x16d)]()['COMPRESS_MUTATION_SEND'])([_0x113af9],null)||[_0x113af9];this['_onLocalMutation'](_0x38376b[0x0]);})),_0x3118b4;}},_0xff46cc['DocCollaborationEntity']=_0xd3d40c([_0x1f40b1(0x3,_0x16d562[_0x184c40(0x1e9)](_0x16d562['Injector'])),_0x1f40b1(0x4,_0x16d562[_0x184c40(0x1e9)](_0xff46cc[_0x184c40(0x205)])),_0x1f40b1(0x5,_0x16d562['Inject'](_0x1f42e3[_0x184c40(0x202)])),_0x1f40b1(0x6,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x42c)])),_0x1f40b1(0x7,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3[_0x184c40(0x3a3)])),_0x1f40b1(0x8,_0x16d562['Inject'](_0x123d63[_0x184c40(0x48d)])),_0x1f40b1(0x9,_0x16d562[_0x184c40(0x1e9)](_0x190714)),_0x1f40b1(0xa,_0x16d562[_0x184c40(0x1e9)](_0x480601)),_0x1f40b1(0xb,_0x16d562['Inject'](_0x126509)),_0x1f40b1(0xc,_0x16d562[_0x184c40(0x31a)]),_0x1f40b1(0xd,_0x16d562[_0x184c40(0x156)]),_0x1f40b1(0xe,_0x5f2673[_0x184c40(0x16f)]),_0x1f40b1(0xf,_0x16d562[_0x184c40(0x3c2)]),_0x1f40b1(0x10,_0x16d562['Optional'](_0x110502))],_0xff46cc[_0x184c40(0x2c6)]),_0xff46cc['SheetCollaborationEntity']=class extends _0xff46cc[_0x184c40(0x4ba)]{constructor(_0xa29f96,_0x3edd8e,_0x4ae1b9,_0x1e23fb,_0x1b2702,_0x25ea95,_0x457baa,_0x44f069,_0x38e409,_0x15f3cc,_0x823431,_0x26bfdd,_0x50e3e2,_0x41128d){const _0x2c8da8=_0x184c40;super(_0xa29f96,_0x4ae1b9,_0x3edd8e,_0x1e23fb,_0x1b2702,_0x25ea95,_0x457baa,_0x44f069,_0x15f3cc,_0x823431,_0x26bfdd,_0x50e3e2,_0x41128d),this[_0x2c8da8(0x445)]=_0xa29f96,this[_0x2c8da8(0x340)]=_0x3edd8e,this[_0x2c8da8(0x275)]=_0x38e409;}[_0x184c40(0x113)](){const _0x3924dd=_0x184c40,_0x929d08=super[_0x3924dd(0x113)]();return _0x929d08['onTransformSelections']=_0x1e28b3=>this[_0x3924dd(0x275)][_0x3924dd(0x2f1)](_0x1e28b3),_0x929d08;}async[_0x184c40(0x2d7)](){const _0x38f5be=_0x184c40,_0x4296e0=await super[_0x38f5be(0x2d7)]();return this[_0x38f5be(0xce)](this[_0x38f5be(0x3da)][_0x38f5be(0x398)]((_0x5620b7,_0xbe8855)=>{const _0x1b2fd5=_0x38f5be;if(_0x5620b7[_0x1b2fd5(0x340)]!==_0x16d562['CommandType'][_0x1b2fd5(0x1bd)]||_0xbe8855!=null&&_0xbe8855['fromCollab']||_0xbe8855!=null&&_0xbe8855[_0x1b2fd5(0x14e)])return;const _0x5b8778=_0x5620b7[_0x1b2fd5(0x290)];if((_0x5b8778==null?void 0x0:_0x5b8778[_0x1b2fd5(0x354)])!==this[_0x1b2fd5(0x445)])return;const _0x4ab1be=_0x5620b7,_0x29396c=this[_0x1b2fd5(0x20f)][_0x1b2fd5(0x420)][_0x1b2fd5(0x3d5)](this[_0x1b2fd5(0x20f)][_0x1b2fd5(0x420)][_0x1b2fd5(0x16d)]()[_0x1b2fd5(0x412)])([_0x4ab1be],null)||[_0x4ab1be];this[_0x1b2fd5(0x4ca)](_0x29396c[0x0]);})),_0x4296e0;}},_0xff46cc['SheetCollaborationEntity']=_0xd3d40c([_0x1f40b1(0x3,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x1f40b1(0x4,_0x16d562[_0x184c40(0x1e9)](_0xff46cc[_0x184c40(0x205)])),_0x1f40b1(0x5,_0x16d562['Inject'](_0x1f42e3['CompressMutationService'])),_0x1f40b1(0x6,_0x16d562['Inject'](_0x16d562[_0x184c40(0x42c)])),_0x1f40b1(0x7,_0x16d562['Inject'](_0x1f42e3[_0x184c40(0x3a3)])),_0x1f40b1(0x8,_0x16d562['Inject'](_0x11c95c)),_0x1f40b1(0x9,_0x16d562[_0x184c40(0x31a)]),_0x1f40b1(0xa,_0x16d562[_0x184c40(0x156)]),_0x1f40b1(0xb,_0x5f2673['IMessageService']),_0x1f40b1(0xc,_0x16d562['IPermissionService']),_0x1f40b1(0xd,_0x16d562['Optional'](_0x110502))],_0xff46cc[_0x184c40(0x23c)]);var _0x12a2cc=Object[_0x184c40(0x471)],_0x4db3ba=Object[_0x184c40(0x34e)],_0x587650=(_0x5835f1,_0x4fb974,_0x24aef5,_0x420c5a)=>{const _0x5bd49b=_0x184c40;for(var _0x2f3f7c=_0x420c5a>0x1?void 0x0:_0x420c5a?_0x4db3ba(_0x4fb974,_0x24aef5):_0x4fb974,_0x285a2e=_0x5835f1[_0x5bd49b(0x3bc)]-0x1,_0x48f2b5;_0x285a2e>=0x0;_0x285a2e--)(_0x48f2b5=_0x5835f1[_0x285a2e])&&(_0x2f3f7c=(_0x420c5a?_0x48f2b5(_0x4fb974,_0x24aef5,_0x2f3f7c):_0x48f2b5(_0x2f3f7c))||_0x2f3f7c);return _0x420c5a&&_0x2f3f7c&&_0x12a2cc(_0x4fb974,_0x24aef5,_0x2f3f7c),_0x2f3f7c;},_0x22e5b7=(_0x4b3bbb,_0x4c905d)=>(_0x384729,_0x2a131c)=>_0x4c905d(_0x384729,_0x2a131c,_0x4b3bbb);_0xff46cc[_0x184c40(0x42f)]=class extends _0x16d562['RxDisposable']{constructor(_0x3680bc,_0x2eeef2,_0x2cfe43){const _0xbd53ae=_0x184c40;super(),_0x1fbb55(this,_0xbd53ae(0x1c2),new Map()),_0x1fbb55(this,_0xbd53ae(0x335),new _0x1f1780[(_0xbd53ae(0x193))]()),(this[_0xbd53ae(0x183)]=_0x3680bc,this['_collabSessionService']=_0x2eeef2,this[_0xbd53ae(0x1b5)]=_0x2cfe43,this[_0xbd53ae(0x2d7)]());}['dispose'](){const _0x44611e=_0x184c40;super[_0x44611e(0x35a)](),this[_0x44611e(0x1c2)][_0x44611e(0x284)](_0x8fd706=>_0x8fd706[_0x44611e(0x35a)]()),this[_0x44611e(0x1c2)][_0x44611e(0x460)]();}[_0x184c40(0x14c)](_0x1d38ae){const _0x3cfe5e=_0x184c40;var _0x4a353d;return(_0x4a353d=this[_0x3cfe5e(0x1c2)]['get'](_0x1d38ae))!=null?_0x4a353d:null;}[_0x184c40(0x2c2)](_0x534a4f){const _0x45456d=_0x184c40,_0x59a76a=this[_0x45456d(0x14c)](_0x534a4f);return _0x59a76a?_0x1f1780['of'](_0x59a76a):this[_0x45456d(0x335)][_0x45456d(0x3b2)](_0xdd90c[_0x45456d(0x1fa)](_0xc98d61=>_0xc98d61[_0x45456d(0x445)]===_0x534a4f));}[_0x184c40(0x2d7)](){const _0x5b487b=_0x184c40;this[_0x5b487b(0x1b5)]['getTypeOfUnitAdded$'](_0x16d562[_0x5b487b(0x1f9)][_0x5b487b(0x1ce)])[_0x5b487b(0x3b2)](_0x1f1780[_0x5b487b(0x2e1)](this[_0x5b487b(0x3fd)]),_0xdd90c[_0x5b487b(0x46d)](0x10))[_0x5b487b(0x462)](async _0x3895db=>{const _0x22c528=_0x5b487b,_0x40e8f6=_0x3895db[_0x22c528(0x17e)](),_0x194764=await this[_0x22c528(0x366)](_0x40e8f6,_0x55b5ea[_0x22c528(0x1ce)]);this[_0x22c528(0x1c2)]['set'](_0x40e8f6,_0x194764);}),this[_0x5b487b(0x1b5)]['getTypeOfUnitAdded$'](_0x16d562[_0x5b487b(0x1f9)][_0x5b487b(0x2f5)])[_0x5b487b(0x3b2)](_0x1f1780['takeUntil'](this[_0x5b487b(0x3fd)]),_0xdd90c[_0x5b487b(0x46d)](0x10))['pipe'](_0xdd90c['filter'](_0x580db3=>!_0x580db3[_0x5b487b(0x17e)]()[_0x5b487b(0x28c)]('__')))[_0x5b487b(0x462)](async _0x87c5ca=>{const _0x33bb8e=_0x5b487b,_0x596ab3=_0x87c5ca[_0x33bb8e(0x17e)](),_0x33c1f5=await this[_0x33bb8e(0x366)](_0x596ab3,_0x55b5ea[_0x33bb8e(0x2f5)]);this[_0x33bb8e(0x1c2)][_0x33bb8e(0x355)](_0x596ab3,_0x33c1f5);}),_0x1f1780[_0x5b487b(0x2dd)](this[_0x5b487b(0x1b5)][_0x5b487b(0x40c)](_0x16d562[_0x5b487b(0x1f9)]['UNIVER_SHEET']),this[_0x5b487b(0x1b5)][_0x5b487b(0x40c)](_0x16d562[_0x5b487b(0x1f9)]['UNIVER_DOC']))[_0x5b487b(0x3b2)](_0x1f1780[_0x5b487b(0x2e1)](this[_0x5b487b(0x3fd)]))[_0x5b487b(0x462)](_0x42a163=>{const _0x3059c2=_0x5b487b,_0x50d00f=_0x42a163[_0x3059c2(0x17e)](),_0x526361=this[_0x3059c2(0x1c2)][_0x3059c2(0x3d9)](_0x50d00f);_0x526361&&(_0x526361[_0x3059c2(0x35a)](),this['_entities'][_0x3059c2(0x2c9)](_0x50d00f));});}async[_0x184c40(0x366)](_0x13ff07,_0x4f2ce1){const _0x37784e=_0x184c40,_0x306673=await this[_0x37784e(0x315)][_0x37784e(0x371)](_0x13ff07),_0x48f95f=this[_0x37784e(0x183)][_0x37784e(0x1d5)](this[_0x37784e(0x163)](_0x4f2ce1),_0x13ff07,_0x4f2ce1,_0x306673);return await _0x48f95f[_0x37784e(0x3e6)](),this[_0x37784e(0x335)]['next'](_0x48f95f),_0x48f95f;}['_getCtorByUniverType'](_0x1b3d12){const _0x5aef6d=_0x184c40;switch(_0x1b3d12){case _0x55b5ea['UNIVER_DOC']:return _0xff46cc[_0x5aef6d(0x2c6)];case _0x55b5ea['UNIVER_SHEET']:return _0xff46cc[_0x5aef6d(0x23c)];default:throw new Error(_0x5aef6d(0x306)+_0x1b3d12);}}},_0xff46cc[_0x184c40(0x42f)]=_0x587650([_0x22e5b7(0x0,_0x16d562['Inject'](_0x16d562[_0x184c40(0x3a2)])),_0x22e5b7(0x1,_0x16d562[_0x184c40(0x1e9)](_0xff46cc[_0x184c40(0xef)])),_0x22e5b7(0x2,_0x16d562['IUniverInstanceService'])],_0xff46cc[_0x184c40(0x42f)]);const _0x534db6=['purple300',_0x184c40(0x375),'verdancy600','red300',_0x184c40(0x31f),_0x184c40(0x19d)];class _0x3974b0 extends _0x16d562[_0x184c40(0x15c)]{constructor(){const _0xc661b3=_0x184c40;super(...arguments),_0x1fbb55(this,_0xc661b3(0x1cf),new Map()),_0x1fbb55(this,_0xc661b3(0x3c4),0x0);}[_0x184c40(0x370)](_0x254255){const _0x5dfad3=_0x184c40;if(this[_0x5dfad3(0x1cf)][_0x5dfad3(0x4c2)](_0x254255))return this[_0x5dfad3(0x1cf)][_0x5dfad3(0x3d9)](_0x254255);const _0x4afca6=_0x534db6[this[_0x5dfad3(0x3c4)]];return this[_0x5dfad3(0x3c4)]=(this[_0x5dfad3(0x3c4)]+0x1)%_0x534db6[_0x5dfad3(0x3bc)],this['_assignedColors'][_0x5dfad3(0x355)](_0x254255,_0x4afca6),_0x4afca6;}}var _0x5f5799=Object['defineProperty'],_0x3ab348=Object['getOwnPropertyDescriptor'],_0x52f2d6=(_0x39247d,_0x57d2e8,_0x1c30ac,_0x3efe8)=>{for(var _0xf24015=_0x3efe8>0x1?void 0x0:_0x3efe8?_0x3ab348(_0x57d2e8,_0x1c30ac):_0x57d2e8,_0x32e610=_0x39247d['length']-0x1,_0x2562e2;_0x32e610>=0x0;_0x32e610--)(_0x2562e2=_0x39247d[_0x32e610])&&(_0xf24015=(_0x3efe8?_0x2562e2(_0x57d2e8,_0x1c30ac,_0xf24015):_0x2562e2(_0xf24015))||_0xf24015);return _0x3efe8&&_0xf24015&&_0x5f5799(_0x57d2e8,_0x1c30ac,_0xf24015),_0xf24015;},_0x56c90f=(_0x2b7de2,_0x352a0f)=>(_0x4600e6,_0x47b8a2)=>_0x352a0f(_0x4600e6,_0x47b8a2,_0x2b7de2);const _0x15e3cf=0x12c,_0x474e62=0x64;let _0x55a301=class extends _0x16d562[_0x184c40(0x204)]{constructor(_0x54b9a1,_0x1f53c1,_0x279240,_0x249491,_0x302eb1,_0x451da8,_0x194c95,_0x5ac4a7,_0x1f29d9){const _0x23f13c=_0x184c40;super(),_0x1fbb55(this,_0x23f13c(0x341),!0x1),_0x1fbb55(this,_0x23f13c(0x2d7),!0x1),_0x1fbb55(this,_0x23f13c(0x350),new _0x1f1780[(_0x23f13c(0x2f0))](new Map())),_0x1fbb55(this,_0x23f13c(0x199),this[_0x23f13c(0x350)][_0x23f13c(0x376)]()),_0x1fbb55(this,_0x23f13c(0x2a9),new _0x1f1780[(_0x23f13c(0x2f0))]([])),_0x1fbb55(this,_0x23f13c(0x461),this[_0x23f13c(0x2a9)][_0x23f13c(0x3b2)](_0x1f1780[_0x23f13c(0x385)](_0x15e3cf))),_0x1fbb55(this,'_updateLocalCursor',_0x16d562[_0x23f13c(0x495)](_0x440850=>{const _0x5ef589=_0x23f13c,_0x1262d6={'eventID':_0x1f42e3['CollaborationEvent'][_0x5ef589(0x3cd)],'data':{'unitID':this[_0x5ef589(0x445)],'memberID':this[_0x5ef589(0x19a)][_0x5ef589(0x330)](),'selection':_0xf68256(_0x440850)}};this['_session']['send'](_0x1262d6,this[_0x5ef589(0x445)]);},_0x474e62)),(this['unitID']=_0x54b9a1,this['_session']=_0x1f53c1,this['_injector']=_0x279240,this['_colorAssignService']=_0x249491,this[_0x23f13c(0xcb)]=_0x302eb1,this[_0x23f13c(0x432)]=_0x451da8,this[_0x23f13c(0x186)]=_0x194c95,this[_0x23f13c(0x1b5)]=_0x5ac4a7,this['_commandService']=_0x1f29d9);}get[_0x184c40(0x12d)](){const _0xea300e=_0x184c40;return this[_0xea300e(0x350)]['getValue']();}get[_0x184c40(0x292)](){const _0xe42670=_0x184c40;return this[_0xe42670(0x2a9)]['getValue']();}['dispose'](){const _0x2c4b09=_0x184c40;super[_0x2c4b09(0x35a)](),this[_0x2c4b09(0x350)][_0x2c4b09(0x2d2)](new Map()),this[_0x2c4b09(0x350)][_0x2c4b09(0x12e)](),this[_0x2c4b09(0x2a9)][_0x2c4b09(0x2d2)]([]),this[_0x2c4b09(0x2a9)][_0x2c4b09(0x12e)]();}['init'](){const _0x49d2bb=_0x184c40;this['_init']||(this[_0x49d2bb(0x2d7)]=!0x0,this[_0x49d2bb(0x19a)][_0x49d2bb(0x11f)][_0x49d2bb(0x3b2)](_0x1f1780[_0x49d2bb(0x2e1)](this[_0x49d2bb(0x3fd)]))['subscribe'](_0x2af603=>{const _0x10a7d2=_0x49d2bb;_0x2af603===_0x17c413['ONLINE']?this[_0x10a7d2(0x209)]():this['_toggleOffline']();}),this['_session'][_0x49d2bb(0x30c)][_0x49d2bb(0x3b2)](_0x1f1780[_0x49d2bb(0x2e1)](this['dispose$']))[_0x49d2bb(0x462)](_0x38f8de=>{const _0x53c9a2=_0x49d2bb,_0xe24136=_0x38f8de[_0x53c9a2(0x150)];_0xe24136===_0x1f42e3[_0x53c9a2(0x336)][_0x53c9a2(0x3cd)]&&this[_0x53c9a2(0x268)](_0x38f8de),_0xe24136===_0x1f42e3['CollaborationEvent'][_0x53c9a2(0xf7)]&&this[_0x53c9a2(0x1ff)](_0x38f8de);}),this[_0x49d2bb(0xce)](this[_0x49d2bb(0x3da)][_0x49d2bb(0x398)](_0xf11599=>{const _0xd80420=_0x49d2bb,_0x45cf67=_0xf11599[_0xd80420(0x290)];_0x45cf67!=null&&this['_online']&&_0xf11599['id']===_0x412f6a[_0xd80420(0x33a)]['id']&&_0x45cf67['unitId']===this[_0xd80420(0x445)]&&_0x45cf67['isEditing']===!0x1&&this[_0xd80420(0x187)](_0x45cf67[_0xd80420(0x1da)]);})),this[_0x49d2bb(0x432)][_0x49d2bb(0x408)][_0x49d2bb(0x3b2)](_0x1f1780[_0x49d2bb(0x2e1)](this[_0x49d2bb(0x3fd)]))[_0x49d2bb(0x462)](_0x304197=>{const _0x23f982=_0x49d2bb;if((_0x304197==null?void 0x0:_0x304197[_0x23f982(0x445)])!==this['unitID'])return;const _0xeb03da={'eventID':_0x1f42e3[_0x23f982(0x336)][_0x23f982(0x3cd)],'data':_0x304197};this[_0x23f982(0x268)](_0xeb03da);}),this[_0x49d2bb(0xce)](this['_commandService']['onCommandExecuted'](_0x4a903b=>{const _0x8aa7ed=_0x49d2bb;if(_0x4a903b[_0x8aa7ed(0x290)]==null)return;const _0x105f0a=_0x4a903b[_0x8aa7ed(0x290)];if(_0x4a903b['id']!==_0x412f6a[_0x8aa7ed(0x264)]['id']||_0x105f0a['unitId']!==this[_0x8aa7ed(0x445)])return;const _0x25bebb={'id':_0x8aa7ed(0x2ca),'params':_0x105f0a},_0xeec174=this['cursorInfo'];for(const [_0x289a0c,_0x151cec]of _0xeec174){const _0x4ffde7={'id':_0x8aa7ed(0x2ca),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x151cec['ranges']}},_0x1f2b8a=this[_0x8aa7ed(0x186)]['transformMutation'](_0x25bebb,_0x4ffde7,!0x1);if(_0x1f42e3['isTransformMutationFailure'](_0x1f2b8a))throw _0x1f2b8a[_0x8aa7ed(0x28e)];_0xeec174[_0x8aa7ed(0x355)](_0x289a0c,{..._0x151cec,'ranges':_0x1f2b8a[_0x8aa7ed(0x22b)]['params'][_0x8aa7ed(0x1ae)]});}queueMicrotask(()=>{const _0x5a5115=_0x8aa7ed;this[_0x5a5115(0x350)][_0x5a5115(0x2d2)](_0xeec174);});})));}[_0x184c40(0x268)](_0x5dd40c){const _0x5d6ab2=_0x184c40;var _0x428952,_0x4f209b;const {memberID:_0x2e9f93,selection:_0x2002d2}=_0x5dd40c[_0x5d6ab2(0xe3)],_0x45adce=_0x197fec(_0x2002d2),_0x4e2cf1=(_0x4f209b=(_0x428952=this['_memberService'][_0x5d6ab2(0x3b4)](this[_0x5d6ab2(0x445)],_0x2e9f93))==null?void 0x0:_0x428952['name'])!=null?_0x4f209b:_0x5d6ab2(0x1f8),_0x19a271={'color':this['_colorAssignService'][_0x5d6ab2(0x370)](_0x2e9f93),'name':_0x4e2cf1,'ranges':_0x45adce},_0x5ad1fe=this[_0x5d6ab2(0x12d)];_0x5ad1fe['set'](_0x2e9f93,_0x19a271),this[_0x5d6ab2(0x350)][_0x5d6ab2(0x2d2)](_0x5ad1fe);}[_0x184c40(0x1ff)](_0x1cf7ee){const _0x10e84c=_0x184c40,{memberID:_0xb289e}=_0x1cf7ee['data'],_0xae7c05=this[_0x10e84c(0x12d)];_0xae7c05[_0x10e84c(0x2c9)](_0xb289e),this[_0x10e84c(0x350)][_0x10e84c(0x2d2)](_0xae7c05);}[_0x184c40(0x209)](){const _0x1db30c=_0x184c40;var _0x433cc5;if(this[_0x1db30c(0x341)]=!0x0,((_0x433cc5=this[_0x1db30c(0x1b5)][_0x1db30c(0x3eb)]())==null?void 0x0:_0x433cc5['getUnitId']())!==this[_0x1db30c(0x445)])return;const _0x2d5914=this['_injector']['get'](_0x412f6a[_0x1db30c(0x323)])[_0x1db30c(0x396)]();Array['isArray'](_0x2d5914)&&_0x2d5914[_0x1db30c(0x3bc)]>0x0&&this[_0x1db30c(0x187)](_0x2d5914);}['_toggleOffline'](){this['_online']=!0x1;}};_0x55a301=_0x52f2d6([_0x56c90f(0x2,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x56c90f(0x3,_0x16d562[_0x184c40(0x1e9)](_0x3974b0)),_0x56c90f(0x4,_0x16d562[_0x184c40(0x1e9)](_0x19c6b5)),_0x56c90f(0x5,_0x16d562[_0x184c40(0x1e9)](_0x126509)),_0x56c90f(0x6,_0x1f42e3[_0x184c40(0x254)]),_0x56c90f(0x7,_0x16d562[_0x184c40(0x466)]),_0x56c90f(0x8,_0x16d562[_0x184c40(0x156)])],_0x55a301);var _0x3a5471=Object['defineProperty'],_0x5c1c06=Object[_0x184c40(0x34e)],_0x4613d9=(_0x57ac72,_0x1b9432,_0x2b63c6,_0x4794e7)=>{for(var _0x55a869=_0x4794e7>0x1?void 0x0:_0x4794e7?_0x5c1c06(_0x1b9432,_0x2b63c6):_0x1b9432,_0x181609=_0x57ac72['length']-0x1,_0x39f2c3;_0x181609>=0x0;_0x181609--)(_0x39f2c3=_0x57ac72[_0x181609])&&(_0x55a869=(_0x4794e7?_0x39f2c3(_0x1b9432,_0x2b63c6,_0x55a869):_0x39f2c3(_0x55a869))||_0x55a869);return _0x4794e7&&_0x55a869&&_0x3a5471(_0x1b9432,_0x2b63c6,_0x55a869),_0x55a869;},_0x10cb01=(_0x2d14a8,_0x2ef2d8)=>(_0x11e3e5,_0x249a59)=>_0x2ef2d8(_0x11e3e5,_0x249a59,_0x2d14a8);const _0x203721=0x12c,_0x2522f9=0x64,_0x22dd7e=()=>{let _0x10ec77=[],_0x199774=!0x1;return _0x282bb7=>{const _0x171dcc=_0x2bb3;_0x10ec77[_0x171dcc(0x250)](_0x282bb7),_0x199774||(_0x199774=!0x0,setTimeout(()=>{const _0x4e2d88=_0x171dcc;_0x10ec77[_0x4e2d88(0x284)](_0x45135f=>_0x45135f()),_0x10ec77=[],_0x199774=!0x1;}));};};let _0x537a93=class extends _0x16d562[_0x184c40(0x204)]{constructor(_0x3ddd5f,_0x49420b,_0x38b9ff,_0x83fbf,_0x2a6341,_0x58eeff,_0x47789c,_0x12df98){const _0x3f6067=_0x184c40;super(),_0x1fbb55(this,_0x3f6067(0x341),!0x1),_0x1fbb55(this,'_init',!0x1),_0x1fbb55(this,'_cursorInfo$',new _0x1f1780['BehaviorSubject'](new Map())),_0x1fbb55(this,_0x3f6067(0x199),this[_0x3f6067(0x350)][_0x3f6067(0x376)]()),_0x1fbb55(this,'_roomMembers$',new _0x1f1780[(_0x3f6067(0x2f0))]([])),_0x1fbb55(this,_0x3f6067(0x461),this[_0x3f6067(0x2a9)][_0x3f6067(0x3b2)](_0x1f1780[_0x3f6067(0x385)](_0x203721))),_0x1fbb55(this,_0x3f6067(0x187),_0x16d562[_0x3f6067(0x495)]((_0x39d202,_0x3077ad)=>{const _0x1fe99a=_0x3f6067,_0x137440={'eventID':_0x1f42e3['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x1fe99a(0x19a)][_0x1fe99a(0x330)](),'selection':_0x5b77fa['serializeRangeWithSheet'](_0x39d202,_0x3077ad[_0x1fe99a(0x33b)])}};this[_0x1fe99a(0x19a)][_0x1fe99a(0x17d)](_0x137440,this[_0x1fe99a(0x445)]);},_0x2522f9)),(this['unitID']=_0x3ddd5f,this[_0x3f6067(0x19a)]=_0x49420b,this['_injector']=_0x38b9ff,this['_colorAssignService']=_0x83fbf,this['_memberService']=_0x2a6341,this[_0x3f6067(0x1b5)]=_0x58eeff,this[_0x3f6067(0x3da)]=_0x47789c,this[_0x3f6067(0x2fe)]=_0x12df98);}get['cursorInfo'](){const _0x3bb3fe=_0x184c40;return this[_0x3bb3fe(0x350)][_0x3bb3fe(0x22f)]();}get[_0x184c40(0x292)](){const _0x5b75bf=_0x184c40;return this[_0x5b75bf(0x2a9)]['getValue']();}[_0x184c40(0x35a)](){const _0x53a737=_0x184c40;super['dispose'](),this['_cursorInfo$'][_0x53a737(0x2d2)](new Map()),this['_cursorInfo$']['complete'](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x53a737(0x12e)]();}[_0x184c40(0x3e6)](){const _0x5d3f49=_0x184c40;this['_init']||(this[_0x5d3f49(0x2d7)]=!0x0,this[_0x5d3f49(0x19a)][_0x5d3f49(0x11f)]['pipe'](_0x1f1780[_0x5d3f49(0x2e1)](this[_0x5d3f49(0x3fd)]))['subscribe'](_0x2f8a0e=>{const _0x3170b4=_0x5d3f49;_0x2f8a0e===_0x17c413['ONLINE']?this[_0x3170b4(0x209)]():this['_toggleOffline']();}),this[_0x5d3f49(0x19a)][_0x5d3f49(0x30c)]['pipe'](_0x1f1780[_0x5d3f49(0x2e1)](this['dispose$']))[_0x5d3f49(0x462)](_0x415444=>{const _0x375fa4=_0x5d3f49,_0x5eb376=_0x415444['eventID'];_0x5eb376===_0x1f42e3[_0x375fa4(0x336)]['UPDATE_CURSOR']&&this[_0x375fa4(0x268)](_0x415444),_0x5eb376===_0x1f42e3[_0x375fa4(0x336)][_0x375fa4(0xf7)]&&this[_0x375fa4(0x1ff)](_0x415444);}),this[_0x5d3f49(0x161)](),this['disposeWithMe'](this['_commandService'][_0x5d3f49(0x398)](_0x22ccbb=>{const _0x8568ee=_0x5d3f49;if(this[_0x8568ee(0x341)]&&_0x22ccbb['id']===_0x30fd53['SetSelectionsOperation']['id']&&_0x22ccbb['params'][_0x8568ee(0x354)]===this[_0x8568ee(0x445)]){const _0x58a6b7=_0x22ccbb['params'];this[_0x8568ee(0x187)](_0x58a6b7[_0x8568ee(0x3fb)],_0x58a6b7[_0x8568ee(0x437)][0x0]);}})));}[_0x184c40(0x268)](_0x245a2a){const _0x2994ff=_0x184c40;var _0x1d7a79,_0x592498;const {memberID:_0x45bbeb,selection:_0xc61204}=_0x245a2a[_0x2994ff(0xe3)],{sheetName:_0x2b0428,range:_0x2d18df}=_0x5b77fa[_0x2994ff(0x39d)](_0xc61204),_0x2550f3={'name':(_0x592498=(_0x1d7a79=this[_0x2994ff(0xcb)][_0x2994ff(0x3b4)](this[_0x2994ff(0x445)],_0x45bbeb))==null?void 0x0:_0x1d7a79[_0x2994ff(0x2d8)])!=null?_0x592498:_0x2994ff(0x1f8),'range':this[_0x2994ff(0x450)](_0x2b0428,_0x2d18df),'sheetID':_0x2b0428,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x45bbeb),'selection':_0xc61204},_0x41a8b8=this[_0x2994ff(0x12d)];_0x41a8b8[_0x2994ff(0x355)](_0x45bbeb,_0x2550f3),this['_cursorInfo$'][_0x2994ff(0x2d2)](_0x41a8b8);}[_0x184c40(0x1ff)](_0x31d88c){const _0x596bd0=_0x184c40,{memberID:_0x419a1b}=_0x31d88c[_0x596bd0(0xe3)],_0x3d7f4a=this[_0x596bd0(0x12d)];_0x3d7f4a[_0x596bd0(0x2c9)](_0x419a1b),this[_0x596bd0(0x350)][_0x596bd0(0x2d2)](_0x3d7f4a);}[_0x184c40(0x450)](_0x5e9866,_0xd0a73c){const _0x3dad37=_0x184c40;var _0x33b68e,_0xc85faa;const _0x25517b=(_0xc85faa=(_0x33b68e=this[_0x3dad37(0x1b5)][_0x3dad37(0x3c5)](this['unitID']))==null?void 0x0:_0x33b68e[_0x3dad37(0x130)](_0x5e9866))==null?void 0x0:_0xc85faa[_0x3dad37(0x256)]();return(_0x25517b==null?void 0x0:_0x25517b[_0x3dad37(0x2a2)](_0x2afae4=>_0x16d562[_0x3dad37(0x379)]['contains'](_0x2afae4,_0xd0a73c)))||_0xd0a73c;}[_0x184c40(0x161)](){const _0x5d9fc1=_0x184c40,_0xad2f0=new _0x16d562['DisposableCollection'](),_0x10c524=_0x22dd7e(),_0xf74809=()=>{_0xad2f0['dispose']();const _0x2a5def=(_0xb7fc9c,_0x1de733,_0x1622a7,_0x34f505)=>{const _0x21ef70=_0x2bb3;let _0x3276f3=[];switch(_0xb7fc9c['id']){case _0x30fd53[_0x21ef70(0x4e1)][_0x21ef70(0x40a)]:{_0x3276f3=_0x30fd53['handleDeleteRangeMoveLeft'](_0xb7fc9c,_0x34f505);break;}case _0x30fd53[_0x21ef70(0x4e1)][_0x21ef70(0x397)]:{_0x3276f3=_0x30fd53['handleDeleteRangeMoveUp'](_0xb7fc9c,_0x34f505);break;}case _0x30fd53[_0x21ef70(0x4e1)][_0x21ef70(0x3d0)]:{_0x3276f3=_0x30fd53[_0x21ef70(0x415)](_0xb7fc9c,_0x34f505);break;}case _0x30fd53['EffectRefRangId'][_0x21ef70(0x36e)]:{_0x3276f3=_0x30fd53[_0x21ef70(0x4cd)](_0xb7fc9c,_0x34f505);break;}case _0x30fd53['EffectRefRangId'][_0x21ef70(0x259)]:{_0x3276f3=_0x30fd53['handleInsertRangeMoveRight'](_0xb7fc9c,_0x34f505);break;}case _0x30fd53[_0x21ef70(0x4e1)][_0x21ef70(0x2ed)]:{_0x3276f3=_0x30fd53[_0x21ef70(0x2da)](_0xb7fc9c,_0x34f505);break;}case _0x30fd53[_0x21ef70(0x4e1)][_0x21ef70(0x1f4)]:{_0x3276f3=_0x30fd53['handleMoveRange'](_0xb7fc9c,_0x34f505);break;}case _0x30fd53['EffectRefRangId']['RemoveColCommandId']:{_0x3276f3=_0x30fd53[_0x21ef70(0xff)](_0xb7fc9c,_0x34f505);break;}case _0x30fd53[_0x21ef70(0x4e1)][_0x21ef70(0x220)]:{_0x3276f3=_0x30fd53[_0x21ef70(0x481)](_0xb7fc9c,_0x34f505);break;}}const _0x40b0df=_0x30fd53[_0x21ef70(0x1b2)](_0x3276f3,_0x34f505),_0x2aaf8c=this[_0x21ef70(0x12d)][_0x21ef70(0x3d9)](_0x1de733);if(_0x2aaf8c&&_0x40b0df){const _0x7d7e4d={..._0x2aaf8c,'range':_0x40b0df};this['cursorInfo']['set'](_0x1de733,_0x7d7e4d),_0x10c524(()=>{const _0x448244=this['_refRangeService']['registerRefRange'](_0x40b0df,_0x39ceb4=>(_0x448244['dispose'](),_0x2a5def(_0x39ceb4,_0x1de733,_0x1622a7,_0x40b0df)));_0xad2f0['add'](_0x448244);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x7c5060,_0x52154d)=>{const _0x26611d=_0x2bb3,{range:_0xa5151c,sheetID:_0x14230a}=_0x7c5060,_0x190765=this[_0x26611d(0x2fe)][_0x26611d(0x218)](_0xa5151c,_0x7b1904=>(_0x190765[_0x26611d(0x35a)](),_0x2a5def(_0x7b1904,_0x52154d,_0x14230a,_0xa5151c)));_0xad2f0[_0x26611d(0x279)](_0x190765);});};this[_0x5d9fc1(0xce)](_0x16d562[_0x5d9fc1(0x228)](this[_0x5d9fc1(0x350)][_0x5d9fc1(0x462)](()=>{_0xf74809();})));}[_0x184c40(0x209)](){const _0x547e5d=_0x184c40;var _0xd7bdc8,_0x5ef0f5;if(this['_online']=!0x0,((_0xd7bdc8=this[_0x547e5d(0x1b5)][_0x547e5d(0x3eb)]())==null?void 0x0:_0xd7bdc8[_0x547e5d(0x17e)]())!==this['unitID'])return;const _0x1fb3d4=(_0x5ef0f5=this['_injector'][_0x547e5d(0x3d9)](_0x30fd53[_0x547e5d(0x2e4)])['getCurrentSelections']())==null?void 0x0:_0x5ef0f5[0x0],_0x536fb2=this[_0x547e5d(0x1b5)][_0x547e5d(0x3a8)](_0x16d562[_0x547e5d(0x1f9)][_0x547e5d(0x1ce)])[_0x547e5d(0x1f6)]();_0x1fb3d4&&_0x536fb2&&this[_0x547e5d(0x187)](_0x536fb2['getSheetId'](),_0x1fb3d4);}[_0x184c40(0xe5)](){const _0x57e5e0=_0x184c40;this[_0x57e5e0(0x341)]=!0x1;}};_0x537a93=_0x4613d9([_0x10cb01(0x2,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x10cb01(0x3,_0x16d562[_0x184c40(0x1e9)](_0x3974b0)),_0x10cb01(0x4,_0x16d562[_0x184c40(0x1e9)](_0x19c6b5)),_0x10cb01(0x5,_0x16d562['IUniverInstanceService']),_0x10cb01(0x6,_0x16d562['ICommandService']),_0x10cb01(0x7,_0x16d562[_0x184c40(0x1e9)](_0x30fd53[_0x184c40(0x1fe)]))],_0x537a93);var _0x1bef67=Object[_0x184c40(0x471)],_0xcf7bb0=Object['getOwnPropertyDescriptor'],_0x414922=(_0x583f09,_0x25d5d3,_0x5cebc1,_0x3a3e70)=>{const _0x30df43=_0x184c40;for(var _0x16aeb6=_0x3a3e70>0x1?void 0x0:_0x3a3e70?_0xcf7bb0(_0x25d5d3,_0x5cebc1):_0x25d5d3,_0x5e8407=_0x583f09[_0x30df43(0x3bc)]-0x1,_0x4f1512;_0x5e8407>=0x0;_0x5e8407--)(_0x4f1512=_0x583f09[_0x5e8407])&&(_0x16aeb6=(_0x3a3e70?_0x4f1512(_0x25d5d3,_0x5cebc1,_0x16aeb6):_0x4f1512(_0x16aeb6))||_0x16aeb6);return _0x3a3e70&&_0x16aeb6&&_0x1bef67(_0x25d5d3,_0x5cebc1,_0x16aeb6),_0x16aeb6;},_0x21acac=(_0x21a7d0,_0x3a40b2)=>(_0x265f5f,_0x75f6a6)=>_0x3a40b2(_0x265f5f,_0x75f6a6,_0x21a7d0);let _0x5ca174=class extends _0x16d562[_0x184c40(0x204)]{constructor(_0x454cf8,_0x54f1bd,_0x4166d8){const _0x422879=_0x184c40;super(),_0x1fbb55(this,_0x422879(0x1c2),new Map()),_0x1fbb55(this,_0x422879(0x335),new _0x1f1780[(_0x422879(0x193))]()),(this[_0x422879(0x1b5)]=_0x454cf8,this[_0x422879(0x183)]=_0x54f1bd,this[_0x422879(0x315)]=_0x4166d8,this[_0x422879(0x2d7)]());}[_0x184c40(0x35a)](){const _0x50e95c=_0x184c40;super['dispose'](),this[_0x50e95c(0x335)][_0x50e95c(0x12e)](),this['_entities'][_0x50e95c(0x284)](_0x3cbfe4=>_0x3cbfe4['dispose']());}[_0x184c40(0x3d3)](_0x3ee4fc){const _0x195847=_0x184c40;return this[_0x195847(0x1c2)][_0x195847(0x4c2)](_0x3ee4fc)?this[_0x195847(0x1c2)][_0x195847(0x3d9)](_0x3ee4fc)[_0x195847(0x199)]:this[_0x195847(0x335)]['pipe'](_0x1f1780[_0x195847(0x1fa)](_0x1c0760=>_0x1c0760[_0x195847(0x445)]===_0x3ee4fc),_0x1f1780[_0x195847(0x234)](_0x4c80be=>_0x4c80be['cursorInfo$']));}[_0x184c40(0x2d7)](){const _0x13ba00=_0x184c40;this[_0x13ba00(0x1b5)]['getTypeOfUnitAdded$'](_0x16d562[_0x13ba00(0x1f9)][_0x13ba00(0x1ce)])[_0x13ba00(0x3b2)](_0x1f1780[_0x13ba00(0x2e1)](this['dispose$']))[_0x13ba00(0x462)](async _0x5d8060=>{const _0x4ad7f0=_0x13ba00,_0x18cdd7=_0x5d8060[_0x4ad7f0(0x17e)](),_0x703750=await this[_0x4ad7f0(0x364)](_0x18cdd7);this[_0x4ad7f0(0x335)][_0x4ad7f0(0x2d2)](_0x703750),this[_0x4ad7f0(0x1c2)]['set'](_0x18cdd7,_0x703750);}),this['_univerInstanceService'][_0x13ba00(0x304)](_0x16d562['UniverInstanceType'][_0x13ba00(0x2f5)])[_0x13ba00(0x3b2)](_0x1f1780[_0x13ba00(0x2e1)](this['dispose$']))[_0x13ba00(0x3b2)](_0x1f1780['filter'](_0x328c50=>!_0x328c50[_0x13ba00(0x17e)]()['startsWith']('__')))['subscribe'](async _0x37a5e3=>{const _0x2d73a3=_0x13ba00,_0x1b43a0=_0x37a5e3[_0x2d73a3(0x17e)](),_0x2c51b5=await this['_startDocCollabCursor'](_0x1b43a0);this['_entityInit$'][_0x2d73a3(0x2d2)](_0x2c51b5),this['_entities'][_0x2d73a3(0x355)](_0x1b43a0,_0x2c51b5);}),_0x1f1780[_0x13ba00(0x2dd)](this[_0x13ba00(0x1b5)][_0x13ba00(0x40c)](_0x16d562[_0x13ba00(0x1f9)][_0x13ba00(0x2f5)]),this[_0x13ba00(0x1b5)][_0x13ba00(0x40c)](_0x16d562[_0x13ba00(0x1f9)][_0x13ba00(0x1ce)]))['pipe'](_0x1f1780['takeUntil'](this[_0x13ba00(0x3fd)]))[_0x13ba00(0x462)](_0x50f7e7=>{const _0x3fdb1e=_0x13ba00,_0x68084e=_0x50f7e7[_0x3fdb1e(0x17e)](),_0x8499a8=this[_0x3fdb1e(0x1c2)][_0x3fdb1e(0x3d9)](_0x68084e);_0x8499a8&&(_0x8499a8['dispose'](),this[_0x3fdb1e(0x1c2)][_0x3fdb1e(0x2c9)](_0x68084e));});}async['_startSheetCollabCursor'](_0x145d56){const _0x4c638c=_0x184c40,_0x412ad3=await this[_0x4c638c(0x315)][_0x4c638c(0x371)](_0x145d56),_0x1e7cf7=this[_0x4c638c(0x183)][_0x4c638c(0x1d5)](_0x537a93,_0x145d56,_0x412ad3);return _0x1e7cf7['init'](),_0x1e7cf7;}async['_startDocCollabCursor'](_0x475763){const _0x129f79=_0x184c40,_0x10e80f=await this[_0x129f79(0x315)][_0x129f79(0x371)](_0x475763),_0x29a2cd=this[_0x129f79(0x183)]['createInstance'](_0x55a301,_0x475763,_0x10e80f);return _0x29a2cd[_0x129f79(0x3e6)](),_0x29a2cd;}};_0x5ca174=_0x414922([_0x21acac(0x0,_0x16d562[_0x184c40(0x466)]),_0x21acac(0x1,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x21acac(0x2,_0x16d562[_0x184c40(0x1e9)](_0xff46cc[_0x184c40(0xef)]))],_0x5ca174);const _0x3feec9=0x14,_0x5bc6d3=0xc8,_0x4b6da6=0x4,_0x1067ea=0x5;function _0x1a47b0(_0x215420,_0x42e9cb){const _0x1110ab=_0x184c40;let {radius:_0x48b5db,width:_0x22123f,height:_0x3642fb}=_0x42e9cb;_0x48b5db=_0x48b5db!=null?_0x48b5db:0x0,_0x22123f=_0x22123f!=null?_0x22123f:0x1e,_0x3642fb=_0x3642fb!=null?_0x3642fb:0x1e;let _0x34684f=0x0,_0x178186=0x0,_0x58d4fd=0x0;_0x34684f=_0x178186=_0x58d4fd=Math[_0x1110ab(0x124)](_0x48b5db,_0x22123f/0x2,_0x3642fb/0x2),_0x215420[_0x1110ab(0x45a)](),_0x215420[_0x1110ab(0x2d1)](_0x34684f,0x0),_0x215420[_0x1110ab(0x37e)](_0x22123f-_0x178186,0x0),_0x215420[_0x1110ab(0x43d)](_0x22123f-_0x178186,_0x178186,_0x178186,Math['PI']*0x3/0x2,0x0,!0x1),_0x215420[_0x1110ab(0x37e)](_0x22123f,_0x3642fb-_0x58d4fd),_0x215420[_0x1110ab(0x43d)](_0x22123f-_0x58d4fd,_0x3642fb-_0x58d4fd,_0x58d4fd,0x0,Math['PI']/0x2,!0x1),_0x215420[_0x1110ab(0x37e)](0x0,_0x3642fb),_0x215420['lineTo'](0x0,_0x34684f),_0x215420[_0x1110ab(0x43d)](_0x34684f,_0x34684f,_0x34684f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x215420[_0x1110ab(0x43f)](),_0x42e9cb['fill']&&(_0x215420[_0x1110ab(0x378)](),_0x215420[_0x1110ab(0x24b)]=_0x42e9cb[_0x1110ab(0x3ad)],_0x42e9cb[_0x1110ab(0x1e5)]===_0x1110ab(0x109)?_0x215420[_0x1110ab(0x3ad)](_0x1110ab(0x109)):_0x215420[_0x1110ab(0x3ad)](),_0x215420[_0x1110ab(0x119)]());}class _0x431bce extends _0x4c937c[_0x184c40(0x18e)]{constructor(_0xc9d8cd,_0x2197e9){const _0x1c38c6=_0x184c40;super(_0xc9d8cd,_0x2197e9),_0x1fbb55(this,_0x1c38c6(0x39b)),_0x1fbb55(this,'text'),(this['color']=_0x2197e9==null?void 0x0:_0x2197e9[_0x1c38c6(0x39b)],this[_0x1c38c6(0x1af)]=_0x2197e9==null?void 0x0:_0x2197e9[_0x1c38c6(0x1af)]);}static[_0x184c40(0xcc)](_0x514c20,_0x3ddc67){const _0x4aed6c=_0x184c40,{text:_0x421ff1,color:_0xa10f50}=_0x3ddc67;_0x514c20[_0x4aed6c(0x378)](),_0x514c20[_0x4aed6c(0x2eb)]=_0x4aed6c(0x447);const _0x3da500=_0x514c20[_0x4aed6c(0x14d)](_0x421ff1)[_0x4aed6c(0xc2)],_0x185280=Math[_0x4aed6c(0x124)](_0x3da500+0x2*_0x4b6da6,_0x5bc6d3);_0x1a47b0(_0x514c20,{'height':_0x3feec9,'radius':0x4,'width':_0x185280,'fill':_0xa10f50,'evented':!0x1}),_0x514c20[_0x4aed6c(0x24b)]=_0x4aed6c(0x32d);const _0x5d3efc=_0x4b6da6,_0xdad31f=_0x3feec9-_0x1067ea,_0x38ece8=_0x5bc6d3-0x2*_0x4b6da6;if(_0x3da500>_0x38ece8){let _0x3c6618='',_0x2cdec6=0x0;for(const _0x4a2ce7 of _0x421ff1){const _0x3ad39d=_0x514c20['measureText'](_0x4a2ce7)[_0x4aed6c(0xc2)];if(_0x2cdec6+_0x3ad39d<=_0x38ece8-_0x514c20[_0x4aed6c(0x14d)]('...')[_0x4aed6c(0xc2)])_0x3c6618+=_0x4a2ce7,_0x2cdec6+=_0x3ad39d;else{_0x3c6618+=_0x4aed6c(0x221);break;}}_0x514c20[_0x4aed6c(0x2ad)](_0x3c6618,_0x5d3efc,_0xdad31f);}else _0x514c20['fillText'](_0x421ff1,_0x5d3efc,_0xdad31f);_0x514c20[_0x4aed6c(0x119)]();}[_0x184c40(0x4e3)](_0x4b2fcb){const _0x51ba26=_0x184c40;_0x431bce[_0x51ba26(0xcc)](_0x4b2fcb,this);}}const _0x9cdef='collab-text-anchor-',_0x4b0093=_0x184c40(0x429),_0xd48d=_0x184c40(0x423),_0x3c254c=0x6,_0x53e878=1.5,_0x38d287=0x4,_0x8cde03=1.5,_0x21f2e0=_0x184c40(0x21f);class _0x30125d{constructor(_0x2e6045,_0x43355f,_0x41c201,_0x4312d3){const _0x76f167=_0x184c40;_0x1fbb55(this,_0x76f167(0x1bc),[]),_0x1fbb55(this,'_anchor',null),_0x1fbb55(this,_0x76f167(0x29d),null),_0x1fbb55(this,_0x76f167(0x4a4),null),_0x1fbb55(this,_0x76f167(0x4d0),null),_0x1fbb55(this,_0x76f167(0x2ba),null),(this[_0x76f167(0x4aa)]=_0x2e6045,this[_0x76f167(0x47d)]=_0x43355f,this['_docSkeleton']=_0x41c201,this[_0x76f167(0x1c0)]=_0x4312d3,this[_0x76f167(0x18c)]());}set[_0x184c40(0x3e9)](_0x54da06){const _0x3fe180=_0x184c40;_0x54da06?(this[_0x3fe180(0x4a4)]&&this['_anchorDot'][_0x3fe180(0xc4)](),this[_0x3fe180(0x29d)]&&this[_0x3fe180(0x29d)][_0x3fe180(0x1be)]()):(this[_0x3fe180(0x4a4)]&&this[_0x3fe180(0x4a4)][_0x3fe180(0x1be)](),this[_0x3fe180(0x29d)]&&this['_textBubble'][_0x3fe180(0xc4)]());}[_0x184c40(0x35a)](){const _0x232f5d=_0x184c40;for(const _0x2903e6 of this[_0x232f5d(0x1bc)])_0x2903e6[_0x232f5d(0x35a)]();this[_0x232f5d(0x29d)]&&this['_textBubble']['dispose'](),this[_0x232f5d(0x4a4)]&&this[_0x232f5d(0x4a4)][_0x232f5d(0x35a)](),this[_0x232f5d(0x1fd)]&&this['_anchor']['dispose'](),this[_0x232f5d(0x2ba)]&&this['_eventUnsubscribe']();}['_render'](){const _0x3f3f9e=_0x184c40;var _0x16552b;const {_docSkeleton:_0x1e3675,_document:_0x52af00}=this,{color:_0x5d5dfb,name:_0x701b29,ranges:_0x32aa2f}=this['_cursor'],_0x300263=_0x52af00[_0x3f3f9e(0x108)](),{docsLeft:_0x235b1b,docsTop:_0x1c82ec}=_0x300263,_0xb87a9b=new _0x123d63[(_0x3f3f9e(0x13a))](_0x300263,_0x1e3675);for(const {startOffset:_0x466cb7,endOffset:_0x3c399b,collapsed:_0x50601d,isActive:_0x28c9d3}of _0x32aa2f){const _0x2733fb=_0x1e3675[_0x3f3f9e(0x310)](_0x466cb7),_0x23ad9d=_0x1e3675[_0x3f3f9e(0x310)](_0x3c399b);if(_0x28c9d3){const {contentBoxPointGroup:_0xa6e3b1}=_0xb87a9b[_0x3f3f9e(0x2ae)](_0x23ad9d,_0x23ad9d);if(_0xa6e3b1[_0x3f3f9e(0x3bc)]===0x0)continue;this[_0x3f3f9e(0x4d3)](_0x5d5dfb,_0xa6e3b1,_0x235b1b,_0x1c82ec,_0x701b29),this[_0x3f3f9e(0x2ba)]=this['_handleHover']();}if(!_0x50601d&&_0x2733fb&&_0x23ad9d){if(_0x123d63[_0x3f3f9e(0x241)](_0x2733fb,_0x23ad9d)){const _0x96f995=new _0x123d63[(_0x3f3f9e(0x41c))](_0x300263,_0x1e3675),{pointGroup:_0x561cfe}=(_0x16552b=_0x96f995[_0x3f3f9e(0x2ae)](_0x2733fb,_0x23ad9d))!=null?_0x16552b:{};if(_0x561cfe==null||_0x561cfe[_0x3f3f9e(0x3bc)]===0x0)continue;this[_0x3f3f9e(0x1c5)](_0x5d5dfb,_0x561cfe,_0x235b1b,_0x1c82ec);}else{const {contentBoxPointGroup:_0x1140de}=_0xb87a9b[_0x3f3f9e(0x2ae)](_0x2733fb,_0x23ad9d);if(_0x1140de[_0x3f3f9e(0x3bc)]===0x0)continue;this[_0x3f3f9e(0x299)](_0x5d5dfb,_0x1140de,_0x235b1b,_0x1c82ec);}}}}[_0x184c40(0x4d3)](_0x5f1fbe,_0x4b34ad,_0x275ed5,_0xc35597,_0x3b9ea7){const _0x2b638c=_0x184c40,_0x3d5943=this[_0x2b638c(0x225)](_0x4b34ad),{left:_0x54889f,top:_0x11ec3c,height:_0x177e79}=_0x3d5943,_0x5033ec=this[_0x2b638c(0xbb)](),_0x488b20=_0x8cde03/_0x5033ec,_0x54ea85=new _0x4c937c['Rect'](_0x9cdef+_0x16d562[_0x2b638c(0x1df)][_0x2b638c(0x128)](_0x3c254c),{'left':_0x54889f+_0x275ed5-_0x488b20,'top':_0x11ec3c+_0xc35597,'height':_0x177e79,'width':_0x53e878,'fill':_0x5f1fbe||_0x4c937c['getColor'](_0x16d562[_0x2b638c(0x1c1)][_0x2b638c(0x40d)],0x0),'strokeWidth':_0x488b20,'stroke':_0x21f2e0,'evented':!0x0});this['_anchor']=_0x54ea85,this[_0x2b638c(0x47d)][_0x2b638c(0x1c6)](_0x54ea85,_0x123d63[_0x2b638c(0xe4)]);const _0x1cf60a=new _0x4c937c[(_0x2b638c(0x3b1))](_0x9cdef+_0x16d562[_0x2b638c(0x1df)][_0x2b638c(0x128)](_0x3c254c),{'left':_0x54889f+_0x275ed5-_0x488b20,'top':_0x11ec3c+_0xc35597-_0x38d287/0x2,'height':_0x38d287,'width':_0x38d287,'fill':_0x5f1fbe||_0x4c937c[_0x2b638c(0x164)](_0x16d562[_0x2b638c(0x1c1)][_0x2b638c(0x40d)],0x0),'strokeWidth':0x0,'stroke':_0x5f1fbe||_0x4c937c['getColor'](_0x16d562[_0x2b638c(0x1c1)]['black'],0x0),'evented':!0x1});this[_0x2b638c(0x4a4)]=_0x1cf60a,this[_0x2b638c(0x47d)][_0x2b638c(0x1c6)](_0x1cf60a,_0x123d63[_0x2b638c(0xe4)]);const _0x2943b2=new _0x431bce(_0x9cdef+_0x16d562['Tools'][_0x2b638c(0x128)](_0x3c254c),{'left':_0x54889f+_0x275ed5-_0x488b20,'top':_0x11ec3c+_0xc35597-_0x3feec9,'text':_0x3b9ea7,'color':_0x5f1fbe});this['_textBubble']=_0x2943b2,this[_0x2b638c(0x47d)]['addObject'](_0x2943b2,_0x123d63[_0x2b638c(0xe4)]),this['_hover']=!0x1;}[_0x184c40(0x4af)](){const _0x3eb65f=_0x184c40,_0x131548=this['_anchor'][_0x3eb65f(0x37c)][_0x3eb65f(0x4ad)](()=>{const _0x20342b=_0x3eb65f;this[_0x20342b(0x3e9)]=!0x0;}),_0xb978a9=this['_anchor'][_0x3eb65f(0x1f7)][_0x3eb65f(0x4ad)](()=>{const _0x44d84d=_0x3eb65f;this[_0x44d84d(0x4d0)]&&clearTimeout(this[_0x44d84d(0x4d0)]),this[_0x44d84d(0x4d0)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x379837=_0x3eb65f;_0x131548['unsubscribe'](),_0xb978a9[_0x379837(0x260)]();};}['_drawTextRange'](_0x54b2c3,_0x180a02,_0x383068,_0x1ceff5){const _0x3cefcd=_0x184c40,_0x3eb5a9=new _0x16d562[(_0x3cefcd(0x483))](_0x54b2c3)[_0x3cefcd(0x4bd)](0.2)[_0x3cefcd(0x131)](),_0x36dc99=new _0x4c937c[(_0x3cefcd(0x106))](_0x4b0093+_0x16d562[_0x3cefcd(0x1df)][_0x3cefcd(0x128)](_0x3c254c),{'pointsGroup':_0x180a02,'fill':_0x3eb5a9||_0x4c937c[_0x3cefcd(0x164)](_0x16d562[_0x3cefcd(0x1c1)]['black'],0.2),'left':_0x383068,'top':_0x1ceff5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3cefcd(0x1bc)][_0x3cefcd(0x250)](_0x36dc99),this['_scene'][_0x3cefcd(0x1c6)](_0x36dc99,_0x123d63['TEXT_RANGE_LAYER_INDEX']);}[_0x184c40(0x1c5)](_0x416923,_0x54e4e5,_0x577ef4,_0x1050f1){const _0x5b7af6=_0x184c40,_0x55e31f=new _0x16d562[(_0x5b7af6(0x483))](_0x416923)[_0x5b7af6(0x4bd)](0.2)[_0x5b7af6(0x131)](),_0x1aa4ea=new _0x4c937c[(_0x5b7af6(0x106))](_0xd48d+_0x16d562[_0x5b7af6(0x1df)][_0x5b7af6(0x128)](_0x3c254c),{'pointsGroup':_0x54e4e5,'fill':_0x55e31f||_0x4c937c[_0x5b7af6(0x164)](_0x16d562[_0x5b7af6(0x1c1)][_0x5b7af6(0x40d)],0.2),'left':_0x577ef4,'top':_0x1050f1,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x5b7af6(0x250)](_0x1aa4ea),this[_0x5b7af6(0x47d)][_0x5b7af6(0x1c6)](_0x1aa4ea,_0x123d63['TEXT_RANGE_LAYER_INDEX']);}[_0x184c40(0x225)](_0x3c2d9e){const _0x13197f=_0x3c2d9e[0x0],_0x2b30a8=_0x13197f[0x0],_0x20ad67=_0x13197f[0x2],{x:_0x381b5c,y:_0x2b91b3}=_0x2b30a8,{x:_0x1e8fc9,y:_0x4d41c4}=_0x20ad67;return{'left':_0x381b5c,'top':_0x2b91b3,'width':_0x1e8fc9-_0x381b5c,'height':_0x4d41c4-_0x2b91b3};}[_0x184c40(0xbb)](){const _0x48ab8e=_0x184c40,{scaleX:_0x35747b,scaleY:_0x51c6eb}=this[_0x48ab8e(0x47d)][_0x48ab8e(0x3ac)]();return Math[_0x48ab8e(0x3ea)](_0x35747b,_0x51c6eb);}}var _0x39a38b=Object['defineProperty'],_0x35c223=Object[_0x184c40(0x34e)],_0x2554c4=(_0x41f33e,_0x52b003,_0x3a44dd,_0x44a173)=>{const _0x3a79ec=_0x184c40;for(var _0x5780a3=_0x44a173>0x1?void 0x0:_0x44a173?_0x35c223(_0x52b003,_0x3a44dd):_0x52b003,_0x300898=_0x41f33e[_0x3a79ec(0x3bc)]-0x1,_0x1ad033;_0x300898>=0x0;_0x300898--)(_0x1ad033=_0x41f33e[_0x300898])&&(_0x5780a3=(_0x44a173?_0x1ad033(_0x52b003,_0x3a44dd,_0x5780a3):_0x1ad033(_0x5780a3))||_0x5780a3);return _0x44a173&&_0x5780a3&&_0x39a38b(_0x52b003,_0x3a44dd,_0x5780a3),_0x5780a3;},_0x7a50a4=(_0x2f9514,_0x513c1c)=>(_0x9d13f8,_0x38de99)=>_0x513c1c(_0x9d13f8,_0x38de99,_0x2f9514);let _0x228f1a=class extends _0x16d562[_0x184c40(0x204)]{constructor(_0x5a5a56,_0xee60ff,_0x275eac,_0x1fc132,_0x4c5d04){const _0x510c1e=_0x184c40;super(),_0x1fbb55(this,_0x510c1e(0x373),[]),_0x1fbb55(this,_0x510c1e(0x1d2),[]),(this[_0x510c1e(0x35c)]=_0x5a5a56,this[_0x510c1e(0x2a7)]=_0xee60ff,this[_0x510c1e(0x41d)]=_0x275eac,this[_0x510c1e(0x3da)]=_0x1fc132,this[_0x510c1e(0x17a)]=_0x4c5d04,this[_0x510c1e(0x2d7)]());}[_0x184c40(0x2d7)](){const _0x25caaa=_0x184c40,_0x3c9a4c=this[_0x25caaa(0x35c)][_0x25caaa(0x354)],_0xdca705=this[_0x25caaa(0x2a7)];this[_0x25caaa(0xce)](_0x1f1780[_0x25caaa(0x111)]([this[_0x25caaa(0x41d)][_0x25caaa(0x3d3)](_0x3c9a4c),this['_themeService'][_0x25caaa(0x15b)]])[_0x25caaa(0x3b2)](_0xdd90c['map'](([_0xd9f20e,_0x325f29])=>({'skeleton':_0xdca705[_0x25caaa(0x3cb)](),'cursors':[..._0xd9f20e[_0x25caaa(0xb4)]()][_0x25caaa(0x28d)](_0x40f67a=>({..._0x40f67a,'color':_0x325f29[_0x40f67a[_0x25caaa(0x39b)]]}))})))['subscribe'](_0x758080=>{const _0x23dea0=_0x25caaa;if(this[_0x23dea0(0x3bb)](),_0x758080){const {skeleton:_0x32262c,cursors:_0x4958ad}=_0x758080;this[_0x23dea0(0x3ce)](_0x32262c,_0x4958ad);}})),this[_0x25caaa(0x26d)](),this['_initCommandExecutedListener']();}[_0x184c40(0x3ce)](_0x2f57f3,_0x299527){const _0x5623d3=_0x184c40,{scene:_0x3595e6,mainComponent:_0x4a4fb0}=this[_0x5623d3(0x35c)],_0xb67093=_0x299527[_0x5623d3(0x3ed)](_0x227db6=>new _0x30125d(_0x227db6,_0x3595e6,_0x2f57f3,_0x4a4fb0));this[_0x5623d3(0x373)]=_0xb67093,this[_0x5623d3(0x1d2)]=_0x299527;}[_0x184c40(0x2e6)](){const _0x22042e=_0x184c40;this[_0x22042e(0x3bb)]();const {scene:_0x5cb825,mainComponent:_0x2b95a5}=this['_context'],_0x53c4c5=this[_0x22042e(0x2a7)][_0x22042e(0x3cb)](),_0x28906c=this[_0x22042e(0x1d2)][_0x22042e(0x3ed)](_0x374c42=>new _0x30125d(_0x374c42,_0x5cb825,_0x53c4c5,_0x2b95a5));this[_0x22042e(0x373)]=_0x28906c;}['_removeCollabCursors'](){const _0x33b01b=_0x184c40;this['_cursorShapes'][_0x33b01b(0x284)](_0x2bd716=>_0x2bd716[_0x33b01b(0x35a)]()),this[_0x33b01b(0x373)]=[];}[_0x184c40(0x269)](){const _0x260441=_0x184c40,_0x40e678=[_0x123d63[_0x260441(0x34b)]['id']];this[_0x260441(0xce)](this[_0x260441(0x3da)]['onCommandExecuted'](_0xf8991c=>{const _0x36b25b=_0x260441;_0x40e678[_0x36b25b(0x439)](_0xf8991c['id'])&&_0xf8991c[_0x36b25b(0x290)][_0x36b25b(0x354)]===this['_context'][_0x36b25b(0x354)]&&this[_0x36b25b(0x2e6)]();}));}[_0x184c40(0x26d)](){const _0x3e3adc=_0x184c40;this[_0x3e3adc(0xce)](_0x16d562[_0x3e3adc(0x15a)](this[_0x3e3adc(0x35c)][_0x3e3adc(0x38a)][_0x3e3adc(0x1b7)])[_0x3e3adc(0x3b2)](_0xdd90c[_0x3e3adc(0x1fa)](_0x19d118=>_0x19d118[_0x3e3adc(0x340)]===_0x4c937c[_0x3e3adc(0x1d7)][_0x3e3adc(0x45c)]),_0xdd90c['throttleTime'](0x10))[_0x3e3adc(0x462)](()=>{const _0x345933=_0x3e3adc;this[_0x345933(0x2e6)]();}));}};_0x228f1a=_0x2554c4([_0x7a50a4(0x1,_0x16d562[_0x184c40(0x1e9)](_0x412f6a[_0x184c40(0x33c)])),_0x7a50a4(0x2,_0x16d562[_0x184c40(0x1e9)](_0x5ca174)),_0x7a50a4(0x3,_0x16d562[_0x184c40(0x156)]),_0x7a50a4(0x4,_0x16d562['Inject'](_0x16d562[_0x184c40(0x1b6)]))],_0x228f1a);const _0x5f114c=0x1,_0x3ce3ae=1.5;class _0x3ac695 extends _0x4c937c['Shape']{constructor(_0x3408ec,_0x2a302f){const _0x137aa4=_0x184c40;super(_0x3408ec,_0x2a302f),_0x1fbb55(this,_0x137aa4(0xc3)),_0x1fbb55(this,_0x137aa4(0x2a3),!0x1),_0x1fbb55(this,'_range'),_0x1fbb55(this,_0x137aa4(0x1d8),''),_0x1fbb55(this,_0x137aa4(0xb9),'top'),_0x1fbb55(this,_0x137aa4(0x148)),(_0x2a302f&&this['setShapeProps'](_0x2a302f),this[_0x137aa4(0x37c)][_0x137aa4(0x4ad)](()=>this[_0x137aa4(0x491)]({'hovered':!0x0})),this[_0x137aa4(0x1f7)][_0x137aa4(0x4ad)](()=>this[_0x137aa4(0x491)]({'hovered':!0x1})));}['setShapeProps'](_0xd89d20){const _0x57cfc0=_0x184c40;var _0x23b22d,_0x3d0c94,_0x553588,_0x3c0ce9,_0x32e369,_0x5205ca;this[_0x57cfc0(0xc3)]=(_0x23b22d=_0xd89d20[_0x57cfc0(0x39b)])!=null?_0x23b22d:this[_0x57cfc0(0xc3)],this[_0x57cfc0(0x2a3)]=(_0x3d0c94=_0xd89d20[_0x57cfc0(0xd5)])!=null?_0x3d0c94:this['_hovered'],this[_0x57cfc0(0xfa)]=(_0x553588=_0xd89d20[_0x57cfc0(0x33b)])!=null?_0x553588:this['_range'],this[_0x57cfc0(0x1d8)]=(_0x3c0ce9=_0xd89d20[_0x57cfc0(0x2d8)])!=null?_0x3c0ce9:this[_0x57cfc0(0x1d8)],this[_0x57cfc0(0xb9)]=(_0x32e369=_0xd89d20[_0x57cfc0(0x142)])!=null?_0x32e369:this['_labelPosition'],this[_0x57cfc0(0x148)]=(_0x5205ca=_0xd89d20['backgroundColor'])!=null?_0x5205ca:this[_0x57cfc0(0x148)],this[_0x57cfc0(0x4a7)]({'width':_0xd89d20[_0x57cfc0(0xc2)],'height':_0xd89d20[_0x57cfc0(0xe0)]});}[_0x184c40(0xba)](_0x26c2bd){const _0x1ae21f=_0x184c40,{row:_0x52722f,column:_0x5a8350}=_0x26c2bd;if(_0x52722f>=this[_0x1ae21f(0xfa)][_0x1ae21f(0x4ae)]&&_0x52722f<=this['_range']['endRow']&&_0x5a8350>=this[_0x1ae21f(0xfa)][_0x1ae21f(0x4d1)]&&_0x5a8350<=this[_0x1ae21f(0xfa)][_0x1ae21f(0x270)]){this[_0x1ae21f(0x491)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x363bef){return!0x1;}[_0x184c40(0x4e3)](_0x305296){const _0x55deb8=_0x184c40;_0x4c937c['Rect'][_0x55deb8(0xcc)](_0x305296,{'width':this[_0x55deb8(0xc2)],'height':this[_0x55deb8(0xe0)],'strokeWidth':_0x3ce3ae,'stroke':this[_0x55deb8(0xc3)],'evented':!0x1,'fill':this[_0x55deb8(0x148)]}),this[_0x55deb8(0x2a3)]&&(_0x305296[_0x55deb8(0x378)](),_0x305296[_0x55deb8(0x42a)](0x1,0x0,0x0,0x1,this[_0x55deb8(0xc2)],this[_0x55deb8(0xb9)]===_0x55deb8(0x288)?0x0:-_0x3feec9),_0x431bce[_0x55deb8(0xcc)](_0x305296,{'text':this[_0x55deb8(0x1d8)],'color':this[_0x55deb8(0xc3)]}),_0x305296[_0x55deb8(0x119)]());}}var _0x1db7d2=Object[_0x184c40(0x471)],_0x3c2ad4=Object['getOwnPropertyDescriptor'],_0x557fd5=(_0x506d34,_0x1e8936,_0x4ad9a5,_0x5eebb2)=>{for(var _0x10fca8=_0x5eebb2>0x1?void 0x0:_0x5eebb2?_0x3c2ad4(_0x1e8936,_0x4ad9a5):_0x1e8936,_0x4fd460=_0x506d34['length']-0x1,_0xcbb5f5;_0x4fd460>=0x0;_0x4fd460--)(_0xcbb5f5=_0x506d34[_0x4fd460])&&(_0x10fca8=(_0x5eebb2?_0xcbb5f5(_0x1e8936,_0x4ad9a5,_0x10fca8):_0xcbb5f5(_0x10fca8))||_0x10fca8);return _0x5eebb2&&_0x10fca8&&_0x1db7d2(_0x1e8936,_0x4ad9a5,_0x10fca8),_0x10fca8;},_0x5a2985=(_0x2426ee,_0x4b9224)=>(_0x57ea58,_0x29320b)=>_0x4b9224(_0x57ea58,_0x29320b,_0x2426ee);const _0x58fcec=0x1389;let _0x323648=class extends _0x16d562[_0x184c40(0x204)]{constructor(_0x13d6a8,_0x5ab56,_0x27bc0d,_0x23d2e4){const _0x13ab1a=_0x184c40;super(),_0x1fbb55(this,_0x13ab1a(0x1d2),new Set()),_0x1fbb55(this,_0x13ab1a(0x431),null),(this[_0x13ab1a(0x35c)]=_0x13d6a8,this['_sheetSkeletonManagerService']=_0x5ab56,this[_0x13ab1a(0x41d)]=_0x27bc0d,this[_0x13ab1a(0x17a)]=_0x23d2e4,this['_init']());}[_0x184c40(0x2d7)](){const _0x3d3abb=_0x184c40;this['_sheetSkeletonManagerService'][_0x3d3abb(0x480)][_0x3d3abb(0x3b2)](_0xdd90c[_0x3d3abb(0x2e1)](this[_0x3d3abb(0x3fd)]),_0xdd90c[_0x3d3abb(0x234)](_0x42e93d=>{const _0x3d52d5=_0x3d3abb;if(_0x42e93d){const _0x328932=_0x42e93d[_0x3d52d5(0x21a)];return _0x1f1780['combineLatest'](this[_0x3d52d5(0x41d)][_0x3d52d5(0x3d3)](this[_0x3d52d5(0x35c)]['unitId']),this[_0x3d52d5(0x17a)]['currentTheme$'])[_0x3d52d5(0x3b2)](_0xdd90c[_0x3d52d5(0x3ed)](([_0x40f7f3,_0x55689e])=>{const _0x3b7f02=_0x3d52d5,_0x3c6864=new Map();return _0x40f7f3[_0x3b7f02(0x284)]((_0x15c240,_0x591ce0)=>{const _0x374996=_0x3b7f02;if(_0x15c240[_0x374996(0x210)]===_0x328932){const _0xd72272={..._0x15c240};_0xd72272['color']=_0x55689e[_0x15c240['color']],_0x3c6864[_0x374996(0x355)](_0x591ce0,_0xd72272);}}),{'skeleton':_0x42e93d,'cursors':_0x3c6864};}));}return _0x1f1780['of']({'skeleton':null,'cursors':new Map()});}))[_0x3d3abb(0x462)](({skeleton:_0xf1b05b,cursors:_0x58ea77})=>{const _0x2f9164=_0x3d3abb;this[_0x2f9164(0x3bb)](),_0xf1b05b&&this[_0x2f9164(0x3ce)](_0xf1b05b,_0x58ea77);}),this[_0x3d3abb(0x36f)][_0x3d3abb(0x480)][_0x3d3abb(0x462)](_0x27791d=>{const _0x4bf986=_0x3d3abb;if(_0x27791d==null)return;const {skeleton:_0x4fddb4}=_0x27791d,{scene:_0x2f5630}=this[_0x4bf986(0x35c)];_0x2f5630[_0x4bf986(0x1e3)][_0x4bf986(0x4ad)](_0x16d562[_0x4bf986(0x495)](_0x111336=>{const _0x246d6d=_0x4bf986;var _0x196b7f,_0xabd1ed;const {offsetX:_0x210700,offsetY:_0x14ee21}=_0x111336,{x:_0x41f26a,y:_0x39c2da}=_0x2f5630[_0x246d6d(0x2bc)](_0x4c937c[_0x246d6d(0x365)][_0x246d6d(0xfc)]([_0x210700,_0x14ee21])),{scaleX:_0x397fbf,scaleY:_0x4a2d9b}=_0x2f5630['getAncestorScale'](),_0x14fa09=_0x2f5630['getViewport'](_0x3f2b28[_0x246d6d(0x2bf)][_0x246d6d(0x236)]),_0xa69b9a=_0x2f5630[_0x246d6d(0x347)](_0x4c937c[_0x246d6d(0x365)][_0x246d6d(0xfc)]([_0x41f26a,_0x39c2da]),_0x14fa09),_0xe6ec7d=_0x4fddb4[_0x246d6d(0x159)](_0x210700,_0x14ee21,_0x397fbf,_0x4a2d9b,_0xa69b9a);((_0x196b7f=this[_0x246d6d(0x431)])==null?void 0x0:_0x196b7f[_0x246d6d(0xbd)])===_0xe6ec7d[_0x246d6d(0xbd)]&&((_0xabd1ed=this[_0x246d6d(0x431)])==null?void 0x0:_0xabd1ed[_0x246d6d(0x291)])===_0xe6ec7d[_0x246d6d(0x291)]||this['_cursors'][_0x246d6d(0x284)](_0x12c215=>{_0x12c215['onMouseMove'](_0xe6ec7d);});},0x64));});}[_0x184c40(0x3ce)](_0x447f94,_0x4ad29a){const _0x14e097=_0x184c40;var _0x3efd42;const _0x5a0fd0=(_0x3efd42=this['_sheetSkeletonManagerService'][_0x14e097(0x244)]())==null?void 0x0:_0x3efd42['skeleton'];if(!_0x5a0fd0)return;const _0x36beb2=this[_0x14e097(0x28b)]();if(!_0x36beb2)return;this[_0x14e097(0x1d2)][_0x14e097(0x284)](_0x4328b9=>{const _0x1cf7fe=_0x14e097;_0x4328b9[_0x1cf7fe(0x1ef)]();});const {scene:_0x56f2a2}=_0x36beb2,_0x1bef65=_0x12a03a(Array['from'](_0x4ad29a[_0x14e097(0xb4)]()))['map'](_0xe8bd3a=>{const _0x4aa232=_0x14e097,{color:_0x1af361,range:_0x451f86,name:_0x1e66db,selection:_0xd08408,sheetID:_0x1afc0d}=_0xe8bd3a,{startColumn:_0x277a3b,startRow:_0x1a859b,endColumn:_0x338832,endRow:_0xa61d2d}=_0x451f86,_0x4e40f6=_0x3f2b28[_0x4aa232(0x36c)](_0x1a859b,_0x277a3b,_0x56f2a2,_0x5a0fd0),_0x54b5cb=_0x3f2b28[_0x4aa232(0x36c)](_0xa61d2d,_0x338832,_0x56f2a2,_0x5a0fd0),{columnHeaderHeightAndMarginTop:_0x507d3c}=_0x5a0fd0,{startX:_0x2f9109,startY:_0x93a902}=_0x4e40f6,{endX:_0x38cef3,endY:_0x5f3a80}=_0x54b5cb,_0x4119aa=_0x38cef3-_0x2f9109,_0x4e5b47=_0x5f3a80-_0x93a902,_0x5387d9={'labelPosition':_0x93a902-_0x507d3c>=_0x3feec9?_0x4aa232(0x3bd):_0x4aa232(0x288),'sheetID':_0x1afc0d,'range':_0x451f86,'color':_0x1af361,'name':_0x1e66db,'selection':_0xd08408,'left':_0x2f9109,'top':_0x93a902,'width':_0x4119aa,'height':_0x4e5b47,'evented':!0x1,'zIndex':_0x58fcec};return new _0x3ac695(_0x1e66db,_0x5387d9);});_0x56f2a2[_0x14e097(0x391)](_0x1bef65,_0x5f114c),this['_cursors']=new Set(_0x1bef65);}[_0x184c40(0x3bb)](){const _0x19a2b9=_0x184c40;var _0x48aa50;(_0x48aa50=this[_0x19a2b9(0x1d2)])==null||_0x48aa50[_0x19a2b9(0x284)](_0x1c413f=>_0x1c413f['dispose']());}[_0x184c40(0x28b)](){const _0x2e1c50=_0x184c40;return _0x3f2b28[_0x2e1c50(0x13c)](this[_0x2e1c50(0x35c)]['unit'],this[_0x2e1c50(0x35c)]);}};_0x323648=_0x557fd5([_0x5a2985(0x1,_0x16d562[_0x184c40(0x1e9)](_0x3f2b28[_0x184c40(0x3fc)])),_0x5a2985(0x2,_0x16d562[_0x184c40(0x1e9)](_0x5ca174)),_0x5a2985(0x3,_0x16d562['Inject'](_0x16d562[_0x184c40(0x1b6)]))],_0x323648);function _0x12a03a(_0x3b9604){const _0x47d640=_0x184c40,_0x4942bb=new Map();return _0x3b9604['forEach'](_0x114150=>{const _0x594e08=_0x2bb3;if(_0x4942bb[_0x594e08(0x4c2)](_0x114150[_0x594e08(0x478)])){const _0x289e40=_0x4942bb[_0x594e08(0x3d9)](_0x114150[_0x594e08(0x478)]);_0x289e40[_0x594e08(0x2d8)]+=',\x20'+_0x114150['name'];}else _0x4942bb[_0x594e08(0x355)](_0x114150[_0x594e08(0x478)],_0x114150);}),Array['from'](_0x4942bb[_0x47d640(0xb4)]());}var _0xb0f4a8=function(){const _0x48db17=_0x184c40;return _0xb0f4a8=Object[_0x48db17(0x4a1)]||function(_0xeb8f7b){const _0x3ed019=_0x48db17;for(var _0x2d4798,_0x3b2ed3=0x1,_0x198ab1=arguments[_0x3ed019(0x3bc)];_0x3b2ed3<_0x198ab1;_0x3b2ed3++){_0x2d4798=arguments[_0x3b2ed3];for(var _0x4587ed in _0x2d4798)Object[_0x3ed019(0x25b)][_0x3ed019(0x3b3)][_0x3ed019(0x3f3)](_0x2d4798,_0x4587ed)&&(_0xeb8f7b[_0x4587ed]=_0x2d4798[_0x4587ed]);}return _0xeb8f7b;},_0xb0f4a8['apply'](this,arguments);},_0x53fbb1=function(_0x81826a,_0x5f5045){const _0x46c85c=_0x184c40;var _0x4042e8={};for(var _0xa1ef3c in _0x81826a)Object[_0x46c85c(0x25b)][_0x46c85c(0x3b3)][_0x46c85c(0x3f3)](_0x81826a,_0xa1ef3c)&&_0x5f5045[_0x46c85c(0x13d)](_0xa1ef3c)<0x0&&(_0x4042e8[_0xa1ef3c]=_0x81826a[_0xa1ef3c]);if(_0x81826a!=null&&typeof Object[_0x46c85c(0x10e)]==_0x46c85c(0x1e7)){for(var _0x22d80c=0x0,_0xa1ef3c=Object['getOwnPropertySymbols'](_0x81826a);_0x22d80c<_0xa1ef3c[_0x46c85c(0x3bc)];_0x22d80c++)_0x5f5045['indexOf'](_0xa1ef3c[_0x22d80c])<0x0&&Object[_0x46c85c(0x25b)][_0x46c85c(0x31e)][_0x46c85c(0x3f3)](_0x81826a,_0xa1ef3c[_0x22d80c])&&(_0x4042e8[_0xa1ef3c[_0x22d80c]]=_0x81826a[_0xa1ef3c[_0x22d80c]]);}return _0x4042e8;},_0x155c14=_0x53f0ab['forwardRef'](function(_0x2dc288,_0x2b8d3d){const _0x5e7530=_0x184c40;var _0x4bbe8d=_0x2dc288[_0x5e7530(0x30a)],_0x5700d3=_0x2dc288['id'],_0x4ef794=_0x2dc288[_0x5e7530(0x1a1)],_0x57ac3a=_0x2dc288[_0x5e7530(0xd1)],_0x94cf39=_0x53fbb1(_0x2dc288,[_0x5e7530(0x30a),'id',_0x5e7530(0x1a1),_0x5e7530(0xd1)]),_0x2c13b5=_0x5e7530(0x134)[_0x5e7530(0xc0)](_0x5700d3,'\x20')[_0x5e7530(0xc0)](_0x4ef794||'')['trim'](),_0x496edf=_0x53f0ab[_0x5e7530(0x16a)]('_'[_0x5e7530(0xc0)](_0x1b8175()));return _0x2a30c6(_0x4bbe8d,''[_0x5e7530(0xc0)](_0x5700d3),{'defIds':_0x4bbe8d[_0x5e7530(0x4cf)],'idSuffix':_0x496edf[_0x5e7530(0x3bf)]},_0xb0f4a8({'ref':_0x2b8d3d,'className':_0x2c13b5},_0x94cf39),_0x57ac3a);});function _0x2a30c6(_0x14af37,_0x252efa,_0x4aa1a4,_0x35cae8,_0x2d4f51){const _0x418105=_0x184c40;return _0x53f0ab[_0x418105(0x309)](_0x14af37[_0x418105(0x30b)],_0xb0f4a8(_0xb0f4a8({'key':_0x252efa},_0xd7fb42(_0x14af37,_0x4aa1a4,_0x2d4f51)),_0x35cae8),(_0x214b19(_0x14af37,_0x4aa1a4)[_0x418105(0x286)]||[])['map'](function(_0x44b623,_0x1156c7){const _0x570724=_0x418105;return _0x2a30c6(_0x44b623,''['concat'](_0x252efa,'-')['concat'](_0x14af37[_0x570724(0x30b)],'-')['concat'](_0x1156c7),_0x4aa1a4,void 0x0,_0x2d4f51);}));}function _0xd7fb42(_0x5c8cca,_0x3b2904,_0x4fd4dd){const _0x50afde=_0x184c40;var _0x19e8c2=_0xb0f4a8({},_0x5c8cca[_0x50afde(0xcd)]);_0x4fd4dd!=null&&_0x4fd4dd[_0x50afde(0x3b8)]&&_0x19e8c2[_0x50afde(0x3ad)]===_0x50afde(0x3b8)&&(_0x19e8c2['fill']=_0x4fd4dd[_0x50afde(0x3b8)]);var _0x740cdb=_0x3b2904[_0x50afde(0x4cf)];return!_0x740cdb||_0x740cdb['length']===0x0||(_0x5c8cca['tag']==='use'&&_0x19e8c2[_0x50afde(0x215)]&&(_0x19e8c2[_0x50afde(0x215)]=_0x19e8c2[_0x50afde(0x215)]+_0x3b2904['idSuffix']),Object[_0x50afde(0x388)](_0x19e8c2)[_0x50afde(0x284)](function(_0x1f1c7c){const _0x313511=_0x50afde;var _0x359056=_0x1f1c7c[0x0],_0x403f7b=_0x1f1c7c[0x1];typeof _0x403f7b==_0x313511(0xb5)&&(_0x19e8c2[_0x359056]=_0x403f7b[_0x313511(0x3d6)](/url\(#(.*)\)/,_0x313511(0x3dc)[_0x313511(0xc0)](_0x3b2904[_0x313511(0x2ce)],')')));})),_0x19e8c2;}function _0x214b19(_0x4714a5,_0x14730b){const _0x50e667=_0x184c40;var _0x2f6e4f,_0x4eaeec=_0x14730b[_0x50e667(0x4cf)];return!_0x4eaeec||_0x4eaeec[_0x50e667(0x3bc)]===0x0?_0x4714a5:_0x4714a5[_0x50e667(0x30b)]===_0x50e667(0x1b8)&&(!((_0x2f6e4f=_0x4714a5[_0x50e667(0x286)])===null||_0x2f6e4f===void 0x0)&&_0x2f6e4f[_0x50e667(0x3bc)])?_0xb0f4a8(_0xb0f4a8({},_0x4714a5),{'children':_0x4714a5[_0x50e667(0x286)][_0x50e667(0x3ed)](function(_0xcc9a87){const _0x5830b3=_0x50e667;return typeof _0xcc9a87[_0x5830b3(0xcd)]['id']==_0x5830b3(0xb5)&&_0x4eaeec&&_0x4eaeec['indexOf'](_0xcc9a87[_0x5830b3(0xcd)]['id'])>-0x1?_0xb0f4a8(_0xb0f4a8({},_0xcc9a87),{'attrs':_0xb0f4a8(_0xb0f4a8({},_0xcc9a87[_0x5830b3(0xcd)]),{'id':_0xcc9a87[_0x5830b3(0xcd)]['id']+_0x14730b['idSuffix']})}):_0xcc9a87;})}):_0x4714a5;}function _0x1b8175(){const _0x15b8bb=_0x184c40;return Math[_0x15b8bb(0x41e)]()['toString'](0x24)[_0x15b8bb(0x4c5)](0x2,0x8);}_0x155c14['displayName']='UniverIcon';var _0x37e9b1={'tag':_0x184c40(0x2f6),'attrs':{'fill':_0x184c40(0x458),'viewBox':_0x184c40(0x247),'width':_0x184c40(0x4dd),'height':_0x184c40(0x4dd)},'children':[{'tag':'g','attrs':{'clipPath':_0x184c40(0xf8)},'children':[{'tag':_0x184c40(0x129),'attrs':{'stroke':_0x184c40(0x27c),'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':_0x184c40(0x39f),'strokeLinejoin':_0x184c40(0x39f),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x184c40(0x368),'attrs':{'id':_0x184c40(0xf1)},'children':[{'tag':_0x184c40(0x129),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x184c40(0xf1)]},_0x28bfcd=_0x53f0ab[_0x184c40(0x4a8)](function(_0x5e1ef7,_0x4b33f0){const _0x29e680=_0x184c40;return _0x53f0ab[_0x29e680(0x309)](_0x155c14,Object[_0x29e680(0x4a1)]({},_0x5e1ef7,{'id':_0x29e680(0x3b9),'ref':_0x4b33f0,'icon':_0x37e9b1}));});_0x28bfcd['displayName']='OffLineSingle';var _0x43cd60={'tag':'svg','attrs':{'fill':_0x184c40(0x458),'viewBox':'0\x200\x2017\x2016','width':_0x184c40(0x4dd),'height':_0x184c40(0x4dd)},'children':[{'tag':'g','attrs':{'clipPath':_0x184c40(0x2e3)},'children':[{'tag':'path','attrs':{'stroke':_0x184c40(0x27c),'d':_0x184c40(0xbc),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x184c40(0x1b8),'attrs':{},'children':[{'tag':_0x184c40(0x368),'attrs':{'id':_0x184c40(0x424)},'children':[{'tag':'path','attrs':{'fill':_0x184c40(0x2d3),'d':_0x184c40(0x328),'transform':_0x184c40(0x155)}}]}]}],'defIds':[_0x184c40(0x424)]},_0x4868ce=_0x53f0ab[_0x184c40(0x4a8)](function(_0x4fe0ab,_0x5f46af){const _0x5208d2=_0x184c40;return _0x53f0ab[_0x5208d2(0x309)](_0x155c14,Object[_0x5208d2(0x4a1)]({},_0x4fe0ab,{'id':_0x5208d2(0x3cc),'ref':_0x5f46af,'icon':_0x43cd60}));});_0x4868ce[_0x184c40(0x283)]=_0x184c40(0x467);const _0x300896={'onlineStatusIcon':'univer-online-status-icon','onlineStatusTitle':_0x184c40(0x219),'onlineStatus':_0x184c40(0x3ba),'online':_0x184c40(0x3cf),'offline':'univer-offline'};function _0x38977f(_0x1ec3b0){const _0x3f9d01=_0x184c40;switch(_0x1ec3b0){case _0x55c585[_0x3f9d01(0x1dd)]:return _0x3f9d01(0x463);case _0x55c585[_0x3f9d01(0x2cc)]:return _0x3f9d01(0x100);case _0x55c585[_0x3f9d01(0x2ea)]:return'collabStatus.fetchMiss';case _0x55c585[_0x3f9d01(0x318)]:return _0x3f9d01(0x102);case _0x55c585['PENDING']:case _0x55c585[_0x3f9d01(0xc9)]:case _0x55c585[_0x3f9d01(0xdb)]:return _0x3f9d01(0x173);case _0x55c585[_0x3f9d01(0x42b)]:return _0x3f9d01(0x4c0);}}function _0x25575c(_0x5a6d4f){const _0x2dcde4=_0x184c40,{status$:_0x27bc4f}=_0x5a6d4f,_0x657c90=_0x5f2673['useObservable'](_0x27bc4f,_0x55c585[_0x2dcde4(0x318)]),_0x3b9ec9=_0x16d562[_0x2dcde4(0x3e4)](_0x16d562['LocaleService']),_0x796924=_0x16d562[_0x2dcde4(0x3e4)](_0xff46cc[_0x2dcde4(0xef)]),_0x55b595=_0x657c90!==_0x55c585[_0x2dcde4(0x1dd)],_0x210d8e=_0x3b9ec9['t'](_0x38977f(_0x657c90)),_0x367cea=_0x290bfa(_0x300896['onlineStatus'],{[_0x300896[_0x2dcde4(0x45d)]]:_0x55b595,[_0x300896[_0x2dcde4(0x455)]]:!_0x55b595}),_0x50d9f6=_0x55b595?_0x53f0ab[_0x2dcde4(0x309)](_0x4868ce,null):_0x53f0ab['createElement'](_0x28bfcd,null),_0x1d9985=_0x53f0ab['useCallback'](()=>{const _0x360e92=_0x2dcde4;_0x55b595||_0x796924[_0x360e92(0x34f)]();},[_0x55b595,_0x796924]);function _0x334cd3(){const _0x118a93=_0x2dcde4;return _0x53f0ab[_0x118a93(0x309)]('div',{'className':_0x367cea,'onClick':_0x1d9985},_0x53f0ab['createElement'](_0x118a93(0x4a6),{'className':_0x300896[_0x118a93(0x11e)]},_0x50d9f6),_0x53f0ab[_0x118a93(0x309)](_0x118a93(0x4a6),{'className':_0x300896['onlineStatusTitle']},_0x210d8e));}return _0x55b595?_0x334cd3():_0x53f0ab[_0x2dcde4(0x309)](_0x516637[_0x2dcde4(0x278)],{'title':_0x3b9ec9['t'](_0x2dcde4(0x489))},_0x334cd3());}var _0x365493=Object['defineProperty'],_0x16947a=Object['getOwnPropertyDescriptor'],_0x4a97d3=(_0x4d5294,_0x474809,_0xb4d8f2,_0x8faabc)=>{const _0x3f7603=_0x184c40;for(var _0x2c9a98=_0x8faabc>0x1?void 0x0:_0x8faabc?_0x16947a(_0x474809,_0xb4d8f2):_0x474809,_0x281ab0=_0x4d5294[_0x3f7603(0x3bc)]-0x1,_0x508aed;_0x281ab0>=0x0;_0x281ab0--)(_0x508aed=_0x4d5294[_0x281ab0])&&(_0x2c9a98=(_0x8faabc?_0x508aed(_0x474809,_0xb4d8f2,_0x2c9a98):_0x508aed(_0x2c9a98))||_0x2c9a98);return _0x8faabc&&_0x2c9a98&&_0x365493(_0x474809,_0xb4d8f2,_0x2c9a98),_0x2c9a98;},_0x17bd14=(_0x3f79d3,_0x218ac0)=>(_0x22b1eb,_0x2aae5f)=>_0x218ac0(_0x22b1eb,_0x2aae5f,_0x3f79d3);_0xff46cc[_0x184c40(0x207)]=class extends _0x16d562[_0x184c40(0x15c)]{constructor(_0x371957,_0x41c1c4,_0x17e3ac,_0x5b5196){const _0x26d5a3=_0x184c40;super(),_0x1fbb55(this,_0x26d5a3(0x475),new _0x1f1780[(_0x26d5a3(0x2f0))](_0x55c585[_0x26d5a3(0x318)])),(this[_0x26d5a3(0x1b5)]=_0x371957,this[_0x26d5a3(0x1a8)]=_0x41c1c4,this[_0x26d5a3(0x183)]=_0x17e3ac,this['_collaborationController']=_0x5b5196,this[_0x26d5a3(0x253)](),this[_0x26d5a3(0x15d)]());}['_initStatusListener'](){const _0x377d0f=_0x184c40;this['disposeWithMe'](this[_0x377d0f(0x1b5)][_0x377d0f(0x320)][_0x377d0f(0x3b2)](_0x1f1780[_0x377d0f(0x234)](()=>{const _0x5e380f=_0x377d0f,_0x5b5500=this[_0x5e380f(0x1b5)][_0x5e380f(0x3eb)]();return _0x5b5500?this[_0x5e380f(0x25f)][_0x5e380f(0x2c2)](_0x5b5500[_0x5e380f(0x17e)]()):_0x1f1780['of'](null);}),_0x1f1780[_0x377d0f(0x234)](_0x1b1843=>_0x1b1843?_0x1b1843[_0x377d0f(0x2a6)]:_0x1f1780['of'](_0x55c585[_0x377d0f(0x318)])))[_0x377d0f(0x462)](_0x24c816=>{const _0x3ba6f0=_0x377d0f;this[_0x3ba6f0(0x475)][_0x3ba6f0(0x2d2)](_0x24c816);}));}[_0x184c40(0x253)](){const _0x415587=_0x184c40;this[_0x415587(0xce)](this[_0x415587(0x1a8)][_0x415587(0x248)](_0x5f2673['BuiltInUIPart']['HEADER_MENU'],()=>_0x16d562[_0x415587(0x2ab)](_0x26410d({'status$':this[_0x415587(0x475)][_0x415587(0x376)]()}),this['_injector'])));}},_0xff46cc['DesktopCollaborationStatusDisplayController']=_0x4a97d3([_0x17bd14(0x0,_0x16d562[_0x184c40(0x466)]),_0x17bd14(0x1,_0x5f2673[_0x184c40(0x200)]),_0x17bd14(0x2,_0x16d562['Inject'](_0x16d562[_0x184c40(0x3a2)])),_0x17bd14(0x3,_0x16d562[_0x184c40(0x1e9)](_0xff46cc['CollaborationController']))],_0xff46cc[_0x184c40(0x207)]);function _0x26410d(_0x29cf55){const {status$:_0x4e7525}=_0x29cf55;return function(){return _0x53f0ab['createElement'](_0x25575c,{'status$':_0x4e7525});};}const _0x3c63e6=_0x16d562[_0x184c40(0xcf)](_0x184c40(0x1bf));var _0x5d73ab=Object[_0x184c40(0x471)],_0x31a230=Object[_0x184c40(0x34e)],_0x417000=(_0x2a4986,_0x4063b1,_0x4d803c,_0x2ba14f)=>{for(var _0x32ae20=_0x2ba14f>0x1?void 0x0:_0x2ba14f?_0x31a230(_0x4063b1,_0x4d803c):_0x4063b1,_0x54901e=_0x2a4986['length']-0x1,_0x4b4da4;_0x54901e>=0x0;_0x54901e--)(_0x4b4da4=_0x2a4986[_0x54901e])&&(_0x32ae20=(_0x2ba14f?_0x4b4da4(_0x4063b1,_0x4d803c,_0x32ae20):_0x4b4da4(_0x32ae20))||_0x32ae20);return _0x2ba14f&&_0x32ae20&&_0x5d73ab(_0x4063b1,_0x4d803c,_0x32ae20),_0x32ae20;},_0x35cb3f=(_0x4525b4,_0x4e6b24)=>(_0x1f3390,_0x5e54ec)=>_0x4e6b24(_0x1f3390,_0x5e54ec,_0x4525b4);_0xff46cc[_0x184c40(0x400)]=class extends _0x16d562[_0x184c40(0x204)]{constructor(_0x32d565,_0x462246,_0x509f9e,_0x16e9a2,_0x2ca2f7,_0x17d0d2){const _0x285e36=_0x184c40;super(),this[_0x285e36(0x20b)]=_0x32d565,this[_0x285e36(0xe6)]=_0x462246,this[_0x285e36(0x3da)]=_0x509f9e,this[_0x285e36(0x103)]=_0x16e9a2,this[_0x285e36(0x1b1)]=_0x2ca2f7,_0x17d0d2?_0x17d0d2==null||_0x17d0d2[_0x285e36(0x49d)]()[_0x285e36(0xbf)](()=>this[_0x285e36(0x2d7)]()):(this[_0x285e36(0xe6)]['debug'](_0x285e36(0x14a),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x285e36(0x2d7)]());}async[_0x184c40(0x2d7)](){const _0x22f29c=_0x184c40,_0x3a6d80=this[_0x22f29c(0x20b)][_0x22f29c(0x2aa)](_0x22f29c(0xd6)),_0x13067f=this[_0x22f29c(0x20b)]['getParam'](_0x22f29c(0x340));if(!_0x3a6d80||!_0x13067f){this['_logService'][_0x22f29c(0x2b2)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x13067f)){case _0x55b5ea[_0x22f29c(0x1ce)]:{const _0x435e0a=await this[_0x22f29c(0x237)](_0x3a6d80);this[_0x22f29c(0x16e)](_0x435e0a);break;}case _0x55b5ea[_0x22f29c(0x2f5)]:{await this[_0x22f29c(0x2bb)](_0x3a6d80);break;}default:{this[_0x22f29c(0xe6)]['error'](_0x22f29c(0x14a),_0x22f29c(0x104));break;}}}async['_setupSubUnitSync'](_0xbabe89){const _0x44f9d3=_0x184c40;await this[_0x44f9d3(0x21b)](_0xbabe89),_0xbabe89[_0x44f9d3(0x3a9)][_0x44f9d3(0x3b2)](_0x1f1780[_0x44f9d3(0x2e1)](this[_0x44f9d3(0x3fd)]))[_0x44f9d3(0x462)](_0x16f5ad=>{const _0x4c9c8a=_0x44f9d3;_0x16f5ad&&this[_0x4c9c8a(0x1a0)](_0x16f5ad);}),this[_0x44f9d3(0x20b)][_0x44f9d3(0x162)][_0x44f9d3(0x3b2)](_0x1f1780[_0x44f9d3(0x2e1)](this['dispose$']))[_0x44f9d3(0x462)](()=>this['_updateSubUnitFromURLParams'](_0xbabe89));}[_0x184c40(0x1a0)](_0x99cd92,_0x46ad2b=!0x1){const _0x33093d=_0x184c40,_0x2f8945=this['_urlService'][_0x33093d(0x2aa)](_0x33093d(0x374));_0x99cd92[_0x33093d(0xec)]()!==_0x2f8945&&this[_0x33093d(0x20b)][_0x33093d(0xe2)](_0x33093d(0x374),_0x99cd92[_0x33093d(0xec)](),_0x46ad2b);}async[_0x184c40(0x21b)](_0x5a3604){const _0x1022a8=_0x184c40;var _0x3cac80;const _0x45acaf=this[_0x1022a8(0x20b)]['getParam'](_0x1022a8(0x374));if(!_0x45acaf||!_0x5a3604[_0x1022a8(0x130)](_0x45acaf)){const _0x39d6b1=_0x5a3604[_0x1022a8(0x158)]()[0x0],_0x5a4679=_0x5a3604[_0x1022a8(0x130)](_0x39d6b1);if(!_0x5a4679)return;this[_0x1022a8(0x1a0)](_0x5a4679,!0x0),await this[_0x1022a8(0x3da)][_0x1022a8(0x2d5)](_0x30fd53[_0x1022a8(0x406)]['id'],{'unitId':_0x5a3604[_0x1022a8(0x17e)](),'subUnitId':_0x39d6b1});return;}((_0x3cac80=_0x5a3604[_0x1022a8(0x1f6)]())==null?void 0x0:_0x3cac80[_0x1022a8(0xec)]())!==_0x45acaf&&await this[_0x1022a8(0x3da)][_0x1022a8(0x2d5)](_0x30fd53[_0x1022a8(0x406)]['id'],{'unitId':_0x5a3604[_0x1022a8(0x17e)](),'subUnitId':_0x45acaf});}async['_loadSheet'](_0x37e6e9){const _0x43b144=_0x184c40;let _0xae5f9f=0x0;const _0x766142=await this['_localCacheService'][_0x43b144(0x45f)](_0x37e6e9);return _0x766142&&(_0x766142[_0x43b144(0x344)]||_0x766142['mutations'][_0x43b144(0x3bc)]!==0x0)&&(_0xae5f9f=_0x766142[_0x43b144(0x407)]),_0xae5f9f===0x0&&this[_0x43b144(0xe6)][_0x43b144(0x2b2)]('[DataLoaderController]',_0x43b144(0x166)),this[_0x43b144(0x1b1)][_0x43b144(0x40e)](_0x37e6e9,_0xae5f9f);}async[_0x184c40(0x2bb)](_0x5949b5){const _0x55b26c=_0x184c40;let _0x3c3abb=0x0;const _0x562e9b=await this['_localCacheService'][_0x55b26c(0x45f)](_0x5949b5);return _0x562e9b&&(_0x562e9b[_0x55b26c(0x344)]||_0x562e9b[_0x55b26c(0x15e)][_0x55b26c(0x3bc)]!==0x0)&&(_0x3c3abb=_0x562e9b['rev']),_0x3c3abb===0x0&&this[_0x55b26c(0xe6)]['debug']('[DataLoaderController]',_0x55b26c(0x166)),this[_0x55b26c(0x1b1)][_0x55b26c(0x383)](_0x5949b5,_0x3c3abb);}},_0xff46cc[_0x184c40(0x400)]=_0x417000([_0x35cb3f(0x0,_0x3c63e6),_0x35cb3f(0x1,_0x16d562[_0x184c40(0x31a)]),_0x35cb3f(0x2,_0x16d562[_0x184c40(0x156)]),_0x35cb3f(0x3,_0x16d562[_0x184c40(0x1e9)](_0xff46cc[_0x184c40(0x205)])),_0x35cb3f(0x4,_0x16d562[_0x184c40(0x1e9)](_0x1f42e3[_0x184c40(0x3b5)])),_0x35cb3f(0x5,_0x16d562['Optional'](_0x2c05f2['IRemoteInstanceService']))],_0xff46cc['DataLoaderController']);var _0x41466f=Object[_0x184c40(0x471)],_0x4aabc9=Object['getOwnPropertyDescriptor'],_0xea3ff0=(_0x47bcb2,_0xc782dc,_0x248be1,_0x20daa3)=>{for(var _0x5385cc=_0x20daa3>0x1?void 0x0:_0x20daa3?_0x4aabc9(_0xc782dc,_0x248be1):_0xc782dc,_0x2119e4=_0x47bcb2['length']-0x1,_0x2c85fa;_0x2119e4>=0x0;_0x2119e4--)(_0x2c85fa=_0x47bcb2[_0x2119e4])&&(_0x5385cc=(_0x20daa3?_0x2c85fa(_0xc782dc,_0x248be1,_0x5385cc):_0x2c85fa(_0x5385cc))||_0x5385cc);return _0x20daa3&&_0x5385cc&&_0x41466f(_0xc782dc,_0x248be1,_0x5385cc),_0x5385cc;},_0x14151e=(_0x355f37,_0x18b27a)=>(_0x21ffa2,_0xb5637e)=>_0x18b27a(_0x21ffa2,_0xb5637e,_0x355f37);const _0x302e83=_0x184c40(0x11d),_0x2c00a0=_0x184c40(0x27e);let _0x47a8b6=class extends _0x16d562[_0x184c40(0x15c)]{constructor(_0x380070,_0x4a799c){const _0x27ba01=_0x184c40;super(),this['_univerInstanceService']=_0x380070,this['_configService']=_0x4a799c,this[_0x27ba01(0x2d7)]();}[_0x184c40(0x2d7)](){const _0xdf3dcb=_0x184c40;this['disposeWithMe'](this[_0xdf3dcb(0x1b5)]['focused$'][_0xdf3dcb(0x462)](()=>{const _0x2e20d7=_0xdf3dcb;var _0xacc147;const _0xda8db2=this[_0x2e20d7(0x1b5)][_0x2e20d7(0x3eb)]();let _0x122806=(_0xacc147=this[_0x2e20d7(0x140)][_0x2e20d7(0xfb)](_0x302e83))!=null?_0xacc147:_0x2c00a0;_0xda8db2 instanceof _0x16d562[_0x2e20d7(0x24c)]&&(_0x122806=_0xda8db2[_0x2e20d7(0x2d8)]),document['title']=_0x122806;}));}};_0x47a8b6=_0xea3ff0([_0x14151e(0x0,_0x16d562[_0x184c40(0x466)]),_0x14151e(0x1,_0x16d562[_0x184c40(0x317)])],_0x47a8b6);var _0x59c68b=Object[_0x184c40(0x471)],_0x289b54=Object[_0x184c40(0x34e)],_0x1f4ef8=(_0x5256df,_0x84d28e,_0x563320,_0x23a2b6)=>{const _0x31dd94=_0x184c40;for(var _0x10d296=_0x23a2b6>0x1?void 0x0:_0x23a2b6?_0x289b54(_0x84d28e,_0x563320):_0x84d28e,_0x138d71=_0x5256df[_0x31dd94(0x3bc)]-0x1,_0x229a12;_0x138d71>=0x0;_0x138d71--)(_0x229a12=_0x5256df[_0x138d71])&&(_0x10d296=(_0x23a2b6?_0x229a12(_0x84d28e,_0x563320,_0x10d296):_0x229a12(_0x10d296))||_0x10d296);return _0x23a2b6&&_0x10d296&&_0x59c68b(_0x84d28e,_0x563320,_0x10d296),_0x10d296;},_0xe24ad9=(_0x3ada02,_0x8eac6b)=>(_0x219751,_0x1c0e23)=>_0x8eac6b(_0x219751,_0x1c0e23,_0x3ada02);let _0x46c8bd=class{constructor(_0x362a23,_0x33f76f,_0x808ee0){const _0x1c2087=_0x184c40;this[_0x1c2087(0x140)]=_0x362a23,this[_0x1c2087(0x19b)]=_0x33f76f,this[_0x1c2087(0x387)]=_0x808ee0,this[_0x1c2087(0x3e6)]();}[_0x184c40(0x3e6)](){const _0x24cd47=_0x184c40;this[_0x24cd47(0x19b)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x19b33f,_0x32dfcd)=>_0x32dfcd(_0x19b33f)[_0x24cd47(0x3b2)](_0x1f1780[_0x24cd47(0x171)](async _0x1635cf=>{const _0x184f31=_0x24cd47,_0x581d5a=_0x1635cf;if(_0x581d5a[_0x184f31(0x362)]===0x191&&window[_0x184f31(0x4b0)](this[_0x184f31(0x387)]['t']('auth.needGotoLoginAlert'))){const _0x41499b=window[_0x184f31(0x120)](window[_0x184f31(0x3d7)][_0x184f31(0x4be)]);window[_0x184f31(0x3d7)][_0x184f31(0x4be)]=this[_0x184f31(0x2fa)]()+_0x184f31(0x37f)+_0x41499b;}return _0x581d5a;}))});}[_0x184c40(0x2fa)](){const _0x3a6ec8=_0x184c40;var _0x83a9d6,_0x3f40fb;const _0x5907ac=this[_0x3a6ec8(0x140)][_0x3a6ec8(0xfb)](_0x465855),_0x37b311=this[_0x3a6ec8(0x140)][_0x3a6ec8(0xfb)](_0x5a4b90);return(_0x3f40fb=(_0x83a9d6=_0x37b311==null?void 0x0:_0x37b311['loginUrlKey'])!=null?_0x83a9d6:_0x5907ac)!=null?_0x3f40fb:_0x514271;}};_0x46c8bd=_0x1f4ef8([_0xe24ad9(0x0,_0x16d562[_0x184c40(0x317)]),_0xe24ad9(0x1,_0x16d562[_0x184c40(0x1e9)](_0x494277['HTTPService'])),_0xe24ad9(0x2,_0x16d562['Inject'](_0x16d562[_0x184c40(0x42c)]))],_0x46c8bd);var _0x429807=Object[_0x184c40(0x471)],_0x1f86d8=Object[_0x184c40(0x34e)],_0x15bfb5=(_0x573d64,_0x5e731e,_0x5c7a69,_0x292dac)=>{const _0x59b06b=_0x184c40;for(var _0x190ead=_0x292dac>0x1?void 0x0:_0x292dac?_0x1f86d8(_0x5e731e,_0x5c7a69):_0x5e731e,_0x16b5d3=_0x573d64[_0x59b06b(0x3bc)]-0x1,_0x42842a;_0x16b5d3>=0x0;_0x16b5d3--)(_0x42842a=_0x573d64[_0x16b5d3])&&(_0x190ead=(_0x292dac?_0x42842a(_0x5e731e,_0x5c7a69,_0x190ead):_0x42842a(_0x190ead))||_0x190ead);return _0x292dac&&_0x190ead&&_0x429807(_0x5e731e,_0x5c7a69,_0x190ead),_0x190ead;},_0x55f8bb=(_0x43c09f,_0x2acf53)=>(_0x392f21,_0x105d1e)=>_0x2acf53(_0x392f21,_0x105d1e,_0x43c09f);const _0x1f03d7=_0x184c40(0x4c9),_0x5ea1ff=_0x184c40(0x484);_0xff46cc['AuthzIoHttpService']=class extends _0x16d562[_0x184c40(0x15c)]{constructor(_0x5c1be8,_0x21ba21){const _0x2ed632=_0x184c40;super(),this['_HTTPService']=_0x5c1be8,this[_0x2ed632(0x140)]=_0x21ba21,this[_0x2ed632(0x469)]();}[_0x184c40(0x469)](){const _0x5621b4=_0x184c40,_0x2a1324=this;this[_0x5621b4(0xce)](this[_0x5621b4(0x115)][_0x5621b4(0x2cd)]({'priority':0x3e7,'interceptor':_0x494277[_0x5621b4(0x319)]({'isMatch'(_0x103819){const _0x3474d6=_0x5621b4;var _0x321dd8;if(_0x103819[_0x3474d6(0x3ab)]===_0x3474d6(0x45b)&&((_0x321dd8=_0x103819['requestParams'])!=null&&_0x321dd8[_0x3474d6(0xd7)])){const {objectID:_0x5f8165,objectType:_0x4bcbc3}=_0x103819[_0x3474d6(0x38d)]['body']||{};if(!_0x5f8165||_0x4bcbc3===void 0x0)return!0x1;const _0x198c4d=_0x2a1324[_0x3474d6(0x477)]()+'/'+_0x4bcbc3+_0x3474d6(0x137)+_0x5f8165+_0x3474d6(0xde);if(_0x103819[_0x3474d6(0x413)]===_0x198c4d)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x209e1a){const _0x108599=_0x5621b4;var _0x1273dd;return(_0x1273dd=_0x209e1a[_0x108599(0x38d)])==null?void 0x0:_0x1273dd['body'];},'mergeParamsToRequest'(_0x17658e,_0x57276e){const _0x417601=_0x5621b4,_0x1489c4=_0x2a1324['_getAPIPrefixPath']()+_0x417601(0x3f1),_0x440b8c=_0x17658e['reduce']((_0x4ef167,_0x539f09)=>{const _0x1e7570=_0x417601,{unitID:_0x4cee98,objectID:_0x38669c,objectType:_0x1daef3,actions:_0x2a908b}=_0x539f09;return _0x4ef167[_0x4cee98]||(_0x4ef167[_0x4cee98]={}),_0x4ef167[_0x4cee98][_0x38669c]||(_0x4ef167[_0x4cee98][_0x38669c]={'objectID':_0x38669c,'objectType':_0x1daef3,'actions':[]}),_0x4ef167[_0x4cee98][_0x38669c][_0x1e7570(0x277)][_0x1e7570(0x250)](..._0x2a908b),_0x4ef167;},{}),_0x20eada=[];for(const _0x453819 in _0x440b8c)for(const _0x4ba856 in _0x440b8c[_0x453819]){const {actions:_0x46f799,objectType:_0x5ae6e5}=_0x440b8c[_0x453819][_0x4ba856],_0x7dddf7=[...new Set(_0x46f799)];_0x20eada['push']({'unitID':_0x453819,'objectID':_0x4ba856,'objectType':_0x5ae6e5,'actions':_0x7dddf7});}return new _0x494277[(_0x417601(0x122))]('POST',_0x1489c4,{'headers':_0x57276e[_0x417601(0x280)],'withCredentials':_0x57276e[_0x417601(0x41f)],'responseType':_0x57276e[_0x417601(0x1a6)],'body':{'requests':_0x20eada}});}},{'distributeResult'(_0x28dcbb,_0x50edd4){const _0x876a12=_0x5621b4,{objectActions:_0x29824e}=_0x28dcbb;return _0x50edd4[_0x876a12(0x3ed)](_0x42cd13=>{const _0x35a365=_0x876a12,{unitID:_0xebfe3a,objectID:_0x1841ee,actions:_0x47d429}=_0x42cd13,_0x509425=_0x29824e[_0x35a365(0x2a2)](_0x5d1b60=>_0x5d1b60[_0x35a365(0x445)]===_0xebfe3a&&_0x5d1b60[_0x35a365(0x1a4)]===_0x1841ee),_0x47d2bd=_0x47d429['map'](_0x3ed1cf=>_0x509425==null?void 0x0:_0x509425[_0x35a365(0x277)][_0x35a365(0x2a2)](_0x185250=>_0x185250[_0x35a365(0x35b)]===_0x3ed1cf))[_0x35a365(0x1fa)](_0xbd97fb=>!!_0xbd97fb);return{'config':_0x42cd13,'result':{'actions':_0x47d2bd,'error':_0x28dcbb[_0x35a365(0x28e)]}};});}})}));}[_0x184c40(0x477)](){const _0x525a7c=_0x184c40;var _0x356b2f,_0x21d34c;const _0x421474=this[_0x525a7c(0x140)][_0x525a7c(0xfb)](_0x1f03d7),_0x396a2e=this[_0x525a7c(0x140)][_0x525a7c(0xfb)](_0x5a4b90);return(_0x21d34c=(_0x356b2f=_0x396a2e==null?void 0x0:_0x396a2e[_0x525a7c(0x35e)])!=null?_0x356b2f:_0x421474)!=null?_0x21d34c:_0x5ea1ff;}async[_0x184c40(0x233)](_0x1a404e){const _0x19d691=_0x184c40,_0x3591a3=this[_0x19d691(0x477)]()+'/'+_0x1a404e[_0x19d691(0x242)]+_0x19d691(0x4d4);return(await this[_0x19d691(0x115)][_0x19d691(0x46a)](_0x3591a3,{'body':_0x1a404e}))['body'][_0x19d691(0x1a4)]||'';}async['list'](_0x1c340c){const _0x20d108=_0x184c40,_0x47df44=this[_0x20d108(0x477)]()+_0x20d108(0x1cd);return(await this['_HTTPService'][_0x20d108(0x46a)](_0x47df44,{'body':_0x1c340c}))[_0x20d108(0xd7)][_0x20d108(0x245)];}async['update'](_0x2d18d7){const _0x63137f=_0x184c40,_0x4ce70d=this[_0x63137f(0x477)]()+'/'+_0x2d18d7['objectType']+_0x63137f(0x137)+_0x2d18d7[_0x63137f(0x1a4)];await this['_HTTPService'][_0x63137f(0x1f1)](_0x4ce70d,{'body':_0x2d18d7});}async[_0x184c40(0x449)](_0x4d36f7){const _0x423470=_0x184c40,_0x333048=this[_0x423470(0x477)]()+'/'+_0x4d36f7['objectType']+_0x423470(0x137)+_0x4d36f7[_0x423470(0x1a4)]+_0x423470(0xde);return(await this[_0x423470(0x115)][_0x423470(0x46a)](_0x333048,{'body':_0x4d36f7}))[_0x423470(0xd7)][_0x423470(0x277)];}async[_0x184c40(0x224)](_0x32bef0){const _0x185fa5=_0x184c40,_0xcbca50=this[_0x185fa5(0x477)]()+_0x185fa5(0x3f1);return(await this[_0x185fa5(0x115)][_0x185fa5(0x46a)](_0xcbca50,{'body':{'requests':_0x32bef0}}))[_0x185fa5(0xd7)][_0x185fa5(0x30f)];}async['listRoles'](_0x526042){const _0x220468=_0x184c40,_0x4014a1=this[_0x220468(0x477)]()+'/'+_0x526042[_0x220468(0x242)]+_0x220468(0x118),_0xf10a3c=await this[_0x220468(0x115)][_0x220468(0x46a)](_0x4014a1,{'body':_0x526042});return{'roles':_0xf10a3c[_0x220468(0xd7)][_0x220468(0x3f7)],'actions':_0xf10a3c['body']['actions']};}async[_0x184c40(0x410)](_0x4bd569){const _0x1eace4=_0x184c40,_0xd1451=this[_0x1eace4(0x477)]()+_0x1eace4(0xf0);await this[_0x1eace4(0x115)][_0x1eace4(0x2c9)](_0xd1451,{'params':{'collaboratorID':_0x4bd569[_0x1eace4(0x17b)],'objectID':_0x4bd569['objectID'],'unitID':_0x4bd569['unitID']}});}async[_0x184c40(0x217)](_0x439879){const _0x104280=_0x184c40,_0x31a787=this[_0x104280(0x477)]()+_0x104280(0xf0);await this['_HTTPService'][_0x104280(0x27b)](_0x31a787,{'body':_0x439879});}async[_0x184c40(0xc1)](_0x328e4b){const _0x27ebce=_0x184c40,_0x520ab1=this[_0x27ebce(0x477)]()+_0x27ebce(0xf0);await this[_0x27ebce(0x115)]['post'](_0x520ab1,{'body':_0x328e4b});}async[_0x184c40(0x2e5)](_0x263149){const _0x32ff82=_0x184c40,_0x1ebdb6=this[_0x32ff82(0x477)]()+'/collaborator';return(await this[_0x32ff82(0x115)][_0x32ff82(0x3d9)](_0x1ebdb6,{'params':{'objectID':_0x263149['objectID'],'unitID':_0x263149[_0x32ff82(0x445)]}}))[_0x32ff82(0xd7)][_0x32ff82(0xdc)];}async[_0x184c40(0x153)](_0x23560c){const _0x239c2c=_0x184c40,_0x1c4db5=this[_0x239c2c(0x477)]()+'/collaborator';await this['_HTTPService'][_0x239c2c(0x1f1)](_0x1c4db5,{'body':_0x23560c});}},_0xff46cc['AuthzIoHttpService']=_0x15bfb5([_0x55f8bb(0x0,_0x16d562[_0x184c40(0x1e9)](_0x494277[_0x184c40(0x265)])),_0x55f8bb(0x1,_0x16d562[_0x184c40(0x1e9)](_0x16d562['IConfigService']))],_0xff46cc['AuthzIoHttpService']);var _0x2258ca=Object['defineProperty'],_0x4cf5fd=Object[_0x184c40(0x34e)],_0x3d212c=(_0x500630,_0x4ed7a9,_0xcb6366,_0x14747c)=>{for(var _0x3dd055=_0x14747c>0x1?void 0x0:_0x14747c?_0x4cf5fd(_0x4ed7a9,_0xcb6366):_0x4ed7a9,_0x1b5559=_0x500630['length']-0x1,_0x14993c;_0x1b5559>=0x0;_0x1b5559--)(_0x14993c=_0x500630[_0x1b5559])&&(_0x3dd055=(_0x14747c?_0x14993c(_0x4ed7a9,_0xcb6366,_0x3dd055):_0x14993c(_0x3dd055))||_0x3dd055);return _0x14747c&&_0x3dd055&&_0x2258ca(_0x4ed7a9,_0xcb6366,_0x3dd055),_0x3dd055;},_0x46c961=(_0x32c562,_0x5049b3)=>(_0x58c6fd,_0x1c88c7)=>_0x5049b3(_0x58c6fd,_0x1c88c7,_0x32c562);let _0x583d32=class{constructor(_0x42281c){const _0x22a02f=_0x184c40;this[_0x22a02f(0x19b)]=_0x42281c,this[_0x22a02f(0x425)]();}[_0x184c40(0x425)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x2d4bf6,_0x2708c9)=>{const _0x421cce=_0x2bb3,_0x204858=_0x2d4bf6['headers'],_0xecac5a=_0x2aaf28[_0x421cce(0x43b)]();return _0xecac5a&&_0x204858[_0x421cce(0x355)](_0x421cce(0x135),_0xecac5a),_0x2708c9(_0x2d4bf6);}});}};_0x583d32=_0x3d212c([_0x46c961(0x0,_0x16d562[_0x184c40(0x1e9)](_0x494277[_0x184c40(0x265)]))],_0x583d32);var _0x17101b=Object['defineProperty'],_0x4a9f5f=Object[_0x184c40(0x34e)],_0x1e9521=(_0x5e5811,_0x4c1cb1,_0x92ee2e,_0x38c84c)=>{const _0xa00552=_0x184c40;for(var _0x4d7d2c=_0x38c84c>0x1?void 0x0:_0x38c84c?_0x4a9f5f(_0x4c1cb1,_0x92ee2e):_0x4c1cb1,_0x315f39=_0x5e5811[_0xa00552(0x3bc)]-0x1,_0x342cb3;_0x315f39>=0x0;_0x315f39--)(_0x342cb3=_0x5e5811[_0x315f39])&&(_0x4d7d2c=(_0x38c84c?_0x342cb3(_0x4c1cb1,_0x92ee2e,_0x4d7d2c):_0x342cb3(_0x4d7d2c))||_0x4d7d2c);return _0x38c84c&&_0x4d7d2c&&_0x17101b(_0x4c1cb1,_0x92ee2e,_0x4d7d2c),_0x4d7d2c;},_0x545264=(_0xcce98c,_0x8f83bb)=>(_0x1154a6,_0x3382ba)=>_0x8f83bb(_0x1154a6,_0x3382ba,_0xcce98c);const _0x44b9b0=[_0x184c40(0x18a),_0x184c40(0x3c8),'image/jpg',_0x184c40(0x1d0),_0x184c40(0x4ab)],_0x36eb18=0x5*0x400*0x400,_0xb07d0e=_0x184c40(0x2a5),_0x809917='/universer-api/stream/file/upload',_0x2e6c63=_0x184c40(0x198),_0x3adfdf=_0x184c40(0x452);_0xff46cc[_0x184c40(0x42d)]=class{constructor(_0x74ca42,_0x4b9e9e,_0x231a59){const _0x4d9c39=_0x184c40;_0x1fbb55(this,'_waitCount',0x0),_0x1fbb55(this,_0x4d9c39(0x1ba),new _0x1f1780[(_0x4d9c39(0x193))]()),_0x1fbb55(this,_0x4d9c39(0x116),this['_change$']),_0x1fbb55(this,'_imageSourceCache',new Map()),(this[_0x4d9c39(0x19b)]=_0x74ca42,this['_configService']=_0x4b9e9e,this['_univerInstanceService']=_0x231a59);}[_0x184c40(0x192)](_0x5b5717){const _0x500bf0=_0x184c40;this[_0x500bf0(0x2f2)]=_0x5b5717,this[_0x500bf0(0x1ba)]['next'](_0x5b5717);}[_0x184c40(0x35d)](_0x3ca339,_0x5dcbea){const _0x4f39c4=_0x184c40;if(_0x5dcbea===_0x33ea92[_0x4f39c4(0x2b5)][_0x4f39c4(0x11c)]){const _0x1b580c=new Image();return _0x1b580c[_0x4f39c4(0x497)]=_0x3ca339,_0x1b580c;}return this[_0x4f39c4(0x345)]['get'](_0x3ca339);}['addImageSourceCache'](_0x31e765,_0x33c51c,_0x364dcf){const _0x1a573d=_0x184c40;_0x33c51c===_0x33ea92[_0x1a573d(0x2b5)]['BASE64']||_0x364dcf==null||this['_imageSourceCache'][_0x1a573d(0x355)](_0x31e765,_0x364dcf);}async['getImage'](_0x14853e){const _0x49596a=_0x184c40;try{const _0x75ffec=this[_0x49596a(0x384)](this['_getSignURL'](),''+_0x14853e),_0x4a0ebc=(await this[_0x49596a(0x19b)][_0x49596a(0x3d9)](_0x75ffec))[_0x49596a(0xd7)];if(_0x4a0ebc[_0x49596a(0x28e)]&&_0x4a0ebc[_0x49596a(0x28e)]['code']===_0x4803e2['OK']){const _0x4c542f=new URL(_0x4a0ebc['url'],this[_0x49596a(0x1f0)]())[_0x49596a(0x174)]();return Promise[_0x49596a(0x47c)](_0x4c542f);}return Promise[_0x49596a(0x258)](_0x4a0ebc[_0x49596a(0x28e)]);}catch(_0x40d3dd){return Promise['reject'](_0x40d3dd);}}async[_0x184c40(0x226)](_0xb9c662){const _0x5c3426=_0x184c40;let _0x3ec525='';if(!_0x44b9b0[_0x5c3426(0x439)](_0xb9c662[_0x5c3426(0x340)]))return this[_0x5c3426(0x48e)](),Promise[_0x5c3426(0x258)](new Error(_0x33ea92[_0x5c3426(0x49a)][_0x5c3426(0x261)]));if(_0xb9c662[_0x5c3426(0x36a)]>_0x36eb18)return this[_0x5c3426(0x48e)](),Promise[_0x5c3426(0x258)](new Error(_0x33ea92['ImageUploadStatusType'][_0x5c3426(0x16b)]));try{const _0x361c4e=new FormData();_0x361c4e[_0x5c3426(0xd0)](_0x5c3426(0x22a),_0xb9c662);const _0x6175ca=this[_0x5c3426(0x1b5)]['getFocusedUnit'](),_0x3ba3f1=_0x6175ca==null?void 0x0:_0x6175ca[_0x5c3426(0x17e)]();if(!_0x3ba3f1)throw new Error(_0x5c3426(0x1fb));const _0x1f3de4=this[_0x5c3426(0x1f2)]()+_0x5c3426(0x44b)+_0xb9c662[_0x5c3426(0x36a)][_0x5c3426(0x174)]()+'&source='+_0x4a0f51['UnitEmbedded']+_0x5c3426(0x3fe)+encodeURIComponent(_0x3ba3f1),_0x2a7e30=await(await fetch(_0x1f3de4,{'method':_0x5c3426(0x45b),'body':_0x361c4e}))[_0x5c3426(0x3ca)]();if(typeof _0x2a7e30[_0x5c3426(0x1c9)]!=_0x5c3426(0xb5))return this[_0x5c3426(0x48e)](),Promise[_0x5c3426(0x258)](new Error(_0x33ea92[_0x5c3426(0x49a)][_0x5c3426(0x189)]));_0x3ec525=_0x2a7e30[_0x5c3426(0x1c9)];}catch{return this[_0x5c3426(0x48e)](),Promise['reject'](new Error(_0x33ea92[_0x5c3426(0x49a)][_0x5c3426(0x189)]));}return new Promise((_0x2840ef,_0x4a7f21)=>{const _0x441d9d=_0x5c3426,_0x5ebab4=new FileReader();_0x5ebab4[_0x441d9d(0x470)](_0xb9c662),_0x5ebab4['onload']=_0x4a0edd=>{const _0x3fc2c5=_0x441d9d;var _0x4a77e3;const _0x3d0bd0=(_0x4a77e3=_0x4a0edd[_0x3fc2c5(0x2fc)])==null?void 0x0:_0x4a77e3['result'];if(_0x3d0bd0==null){this[_0x3fc2c5(0x48e)](),_0x4a7f21(new Error(_0x33ea92[_0x3fc2c5(0x49a)][_0x3fc2c5(0x189)]));return;}const _0xe150b2=_0x16d562[_0x3fc2c5(0x1df)][_0x3fc2c5(0x128)](0x6);_0x2840ef({'imageId':_0xe150b2,'imageSourceType':_0x33ea92[_0x3fc2c5(0x2b5)]['UUID'],'source':_0x3ec525,'base64Cache':_0x3d0bd0,'status':_0x33ea92['ImageUploadStatusType'][_0x3fc2c5(0x246)]}),this['_decreaseWaiting']();};});}[_0x184c40(0x1f2)](){const _0x518042=_0x184c40;var _0x401697,_0x38c238;const _0x52649e=this[_0x518042(0x140)][_0x518042(0xfb)](_0xb07d0e),_0x566e35=this[_0x518042(0x140)]['getConfig'](_0x5a4b90);return(_0x38c238=(_0x401697=_0x566e35==null?void 0x0:_0x566e35['uploadFileServerUrl'])!=null?_0x401697:_0x52649e)!=null?_0x38c238:_0x809917;}[_0x184c40(0x4b8)](){const _0x365127=_0x184c40;var _0x1449be,_0x3804ba;const _0x470061=this[_0x365127(0x140)][_0x365127(0xfb)](_0x2e6c63),_0x288c25=this[_0x365127(0x140)][_0x365127(0xfb)](_0x5a4b90);return(_0x3804ba=(_0x1449be=_0x288c25==null?void 0x0:_0x288c25[_0x365127(0x34a)])!=null?_0x1449be:_0x470061)!=null?_0x3804ba:_0x3adfdf;}[_0x184c40(0x1f0)](){const _0x72ec95=_0x184c40;var _0x13f2a9;const _0x3ff998=this['_configService'][_0x72ec95(0xfb)](_0x5a4b90);return(_0x13f2a9=_0x3ff998==null?void 0x0:_0x3ff998[_0x72ec95(0x3fa)])!=null?_0x13f2a9:location['origin'];}[_0x184c40(0x384)](_0x361a3d,_0x45093c){const _0x175797=_0x184c40;return _0x361a3d[_0x175797(0x3d6)](_0x175797(0x494),_0x45093c);}[_0x184c40(0x48e)](){const _0x1bb3e9=_0x184c40;this[_0x1bb3e9(0x2f2)]-=0x1,this['_change$'][_0x1bb3e9(0x2d2)](this[_0x1bb3e9(0x2f2)]);}},_0xff46cc[_0x184c40(0x42d)]=_0x1e9521([_0x545264(0x0,_0x16d562[_0x184c40(0x1e9)](_0x494277[_0x184c40(0x265)])),_0x545264(0x1,_0x16d562['IConfigService']),_0x545264(0x2,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x466)]))],_0xff46cc[_0x184c40(0x42d)]);var _0x2d56cb=Object[_0x184c40(0x471)],_0x2dceb3=Object[_0x184c40(0x34e)],_0x19f015=(_0x3d01b7,_0x8e7348,_0x3fc15f,_0x13d49e)=>{const _0xc28795=_0x184c40;for(var _0x131064=_0x13d49e>0x1?void 0x0:_0x13d49e?_0x2dceb3(_0x8e7348,_0x3fc15f):_0x8e7348,_0x28287d=_0x3d01b7[_0xc28795(0x3bc)]-0x1,_0x5732db;_0x28287d>=0x0;_0x28287d--)(_0x5732db=_0x3d01b7[_0x28287d])&&(_0x131064=(_0x13d49e?_0x5732db(_0x8e7348,_0x3fc15f,_0x131064):_0x5732db(_0x131064))||_0x131064);return _0x13d49e&&_0x131064&&_0x2d56cb(_0x8e7348,_0x3fc15f,_0x131064),_0x131064;},_0x4a96d3=(_0x168be7,_0x4dfa1e)=>(_0x1eb36e,_0x4da2e8)=>_0x4dfa1e(_0x1eb36e,_0x4da2e8,_0x168be7);let _0x152d7d=class extends _0x16d562['RxDisposable']{constructor(_0x2fc9cf,_0x803090,_0x187ecc,_0x20f3c5,_0xe330f0){const _0x20a4bd=_0x184c40;super(),this['_injector']=_0x2fc9cf,this[_0x20a4bd(0x1b5)]=_0x803090,this[_0x20a4bd(0x1e2)]=_0x187ecc,this[_0x20a4bd(0x2f7)]=_0x20f3c5,this[_0x20a4bd(0x2b4)]=_0xe330f0,this[_0x20a4bd(0x176)](),this[_0x20a4bd(0x3a7)]();}[_0x184c40(0x3a7)](){const _0x1640a7=_0x184c40,_0x5b285e=async _0x3e7b3f=>{const _0xb99575=_0x2bb3;(await this[_0xb99575(0x2f7)][_0xb99575(0x371)](_0x3e7b3f))['event$']['pipe'](_0xdd90c[_0xb99575(0x1fa)](_0x5d3948=>_0x5d3948[_0xb99575(0x150)]===_0x1f42e3[_0xb99575(0x336)]['SHOULD_CLOSE_CONN']),_0xdd90c[_0xb99575(0x2e1)](this[_0xb99575(0x3fd)]))['subscribe'](_0x1a451a=>{const _0x3e1715=_0xb99575,_0x58ea73=_0x1a451a,{reason:_0x704311}=_0x58ea73[_0x3e1715(0xe3)];this[_0x3e1715(0x183)][_0x3e1715(0x3d9)](_0x5f2673[_0x3e1715(0x16f)])[_0x3e1715(0x1be)]({'type':_0x516637[_0x3e1715(0x1ac)][_0x3e1715(0x3af)],'content':this[_0x3e1715(0x2b4)]['t'](_0x3e1715(0x2d0))+'('+_0x704311+')'}),this[_0x3e1715(0x1e2)][_0x3e1715(0x302)](new _0x30fd53['WorkbookEditablePermission'](_0x3e7b3f)['id'],!0x1),this['_collaborationSessionService'][_0x3e1715(0x3a1)](_0x3e7b3f);});};_0x1f1780[_0x1640a7(0x2dd)](this['_univerInstanceService'][_0x1640a7(0x304)](_0x16d562[_0x1640a7(0x1f9)][_0x1640a7(0x1ce)]),this[_0x1640a7(0x1b5)][_0x1640a7(0x304)](_0x16d562[_0x1640a7(0x1f9)][_0x1640a7(0x2f5)]))['pipe'](_0xdd90c[_0x1640a7(0x3ed)](_0x5e8290=>_0x5e8290[_0x1640a7(0x17e)]()),_0xdd90c[_0x1640a7(0x1fa)](_0x5ac5ba=>!_0x16d562[_0x1640a7(0x457)](_0x5ac5ba)),_0xdd90c[_0x1640a7(0x2e1)](this[_0x1640a7(0x3fd)]))[_0x1640a7(0x462)](_0x5f150c=>{_0x5b285e(_0x5f150c);});}[_0x184c40(0x176)](){const _0x3e0336=_0x184c40,_0x467040=async _0x9f9b6e=>{const _0x4dbb56=_0x2bb3;(await this[_0x4dbb56(0x2f7)][_0x4dbb56(0x371)](_0x9f9b6e))['event$']['pipe'](_0xdd90c[_0x4dbb56(0x1fa)](_0x59c33e=>_0x59c33e[_0x4dbb56(0x150)]===_0x1f42e3[_0x4dbb56(0x336)][_0x4dbb56(0x3c1)]),_0xdd90c[_0x4dbb56(0x2e1)](this[_0x4dbb56(0x3fd)]))[_0x4dbb56(0x462)](_0x4aa431=>{const _0x9d216a=_0x4dbb56,_0x27fd0c=_0x4aa431,{objectId:_0x160acc}=_0x27fd0c[_0x9d216a(0xe3)],_0x51f36a=this[_0x9d216a(0x183)]['get'](_0x3f2b28[_0x9d216a(0x338)]);_0x160acc===_0x9f9b6e?_0x51f36a[_0x9d216a(0x25d)](_0x9f9b6e):_0x51f36a[_0x9d216a(0x4df)](_0x9f9b6e,_0x160acc);});};_0x1f1780[_0x3e0336(0x2dd)](this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x16d562[_0x3e0336(0x1f9)]['UNIVER_SHEET']),this[_0x3e0336(0x1b5)][_0x3e0336(0x304)](_0x16d562[_0x3e0336(0x1f9)]['UNIVER_DOC']))[_0x3e0336(0x3b2)](_0xdd90c[_0x3e0336(0x3ed)](_0x2af413=>_0x2af413[_0x3e0336(0x17e)]()),_0xdd90c[_0x3e0336(0x1fa)](_0x58d7db=>!_0x16d562['isInternalEditorID'](_0x58d7db)),_0xdd90c[_0x3e0336(0x2e1)](this[_0x3e0336(0x3fd)]))['subscribe'](_0x424f5a=>{_0x467040(_0x424f5a);});}};_0x152d7d=_0x19f015([_0x4a96d3(0x0,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x4a96d3(0x1,_0x16d562[_0x184c40(0x466)]),_0x4a96d3(0x2,_0x16d562[_0x184c40(0x3c2)]),_0x4a96d3(0x3,_0x16d562[_0x184c40(0x1e9)](_0xff46cc[_0x184c40(0xef)])),_0x4a96d3(0x4,_0x16d562['Inject'](_0x16d562[_0x184c40(0x42c)]))],_0x152d7d);var _0xd62127=Object[_0x184c40(0x471)],_0x334b3c=Object[_0x184c40(0x34e)],_0x132656=(_0x243ebc,_0x228479,_0x33684c,_0x4614a7)=>{const _0x446709=_0x184c40;for(var _0x35a6d3=_0x4614a7>0x1?void 0x0:_0x4614a7?_0x334b3c(_0x228479,_0x33684c):_0x228479,_0x2d1a12=_0x243ebc[_0x446709(0x3bc)]-0x1,_0x15c6e3;_0x2d1a12>=0x0;_0x2d1a12--)(_0x15c6e3=_0x243ebc[_0x2d1a12])&&(_0x35a6d3=(_0x4614a7?_0x15c6e3(_0x228479,_0x33684c,_0x35a6d3):_0x15c6e3(_0x35a6d3))||_0x35a6d3);return _0x4614a7&&_0x35a6d3&&_0xd62127(_0x228479,_0x33684c,_0x35a6d3),_0x35a6d3;},_0x5d4344=(_0x488e33,_0x2da8e8)=>(_0x38943b,_0x11a92c)=>_0x2da8e8(_0x38943b,_0x11a92c,_0x488e33);_0xff46cc['SnapshotServerOverHTTPService']=class{constructor(_0x81d9f0,_0x170c1e){const _0x4a3d5e=_0x184c40;this[_0x4a3d5e(0x140)]=_0x81d9f0,this[_0x4a3d5e(0x19b)]=_0x170c1e;}async[_0x184c40(0x446)](_0x580462,_0x1dcd0b){const _0x5a4f1f=_0x184c40;var _0x1e1fae;const {unitID:_0xe9b5da,type:_0x307f74,revision:_0x1334a4=0x0}=_0x1dcd0b,_0x1295eb=this['_getSnapshotAPIPrefix']()+'/'+_0x307f74+_0x5a4f1f(0x459)+_0xe9b5da+_0x5a4f1f(0x20a)+_0x1334a4,_0xfca970=(await this['_httpService'][_0x5a4f1f(0x3d9)](_0x1295eb))[_0x5a4f1f(0xd7)],_0x1180ef=(_0x1e1fae=_0xfca970[_0x5a4f1f(0x38c)])==null?void 0x0:_0x1e1fae['workbook'];if(_0x1180ef){const _0x4c9c6f=_0x1180ef==null?void 0x0:_0x1180ef[_0x5a4f1f(0x474)],_0x437c69=_0x1f42e3[_0x5a4f1f(0x3dd)][_0x5a4f1f(0x4c7)](_0x1f42e3[_0x5a4f1f(0x300)](_0x4c9c6f));_0x1180ef[_0x5a4f1f(0x474)]=_0x437c69,Object['entries'](_0x1180ef['sheets'])[_0x5a4f1f(0x284)](([,_0x32bade])=>{const _0x172a5e=_0x5a4f1f,_0xd1dc38=_0x32bade[_0x172a5e(0x474)],_0x3f1b3f=_0x1f42e3[_0x172a5e(0x3dd)]['encode'](_0x1f42e3[_0x172a5e(0x300)](_0xd1dc38));_0x32bade[_0x172a5e(0x474)]=_0x3f1b3f;});}return _0xfca970;}async[_0x184c40(0x32e)](_0x780d14,_0x49cfc2){const _0x3f6b3f=_0x184c40,{unitID:_0x391df6,type:_0x275e3b,blockID:_0x2624e6}=_0x49cfc2,_0x30045d=this[_0x3f6b3f(0xc7)]()+'/'+_0x275e3b+'/unit/'+_0x391df6+'/block/'+_0x2624e6;return(await this['_httpService']['get'](_0x30045d))[_0x3f6b3f(0xd7)];}async['getDeserializedSheetBlock'](_0x47e7fc,_0x422f58){const _0x1876c0=_0x184c40,{unitID:_0x1ca6df,type:_0xde5eef,blockID:_0x5bb3ec}=_0x422f58,_0x25bb7c=this[_0x1876c0(0xc7)]()+_0x1876c0(0x2ff)+_0xde5eef+_0x1876c0(0x459)+_0x1ca6df+'/block/'+_0x5bb3ec;return(await this[_0x1876c0(0x19b)][_0x1876c0(0x3d9)](_0x25bb7c))[_0x1876c0(0xd7)];}async[_0x184c40(0x143)](_0x2a6165,_0x3f7044){const _0x2c9a91=_0x184c40,{unitID:_0x30bdbd,type:_0x518104,from:_0x3eef7d,to:_0x2e883f}=_0x3f7044,_0x16133a=this[_0x2c9a91(0xc7)]()+'/'+_0x518104+_0x2c9a91(0x459)+_0x30bdbd+_0x2c9a91(0x38f)+_0x3eef7d+'&to='+_0x2e883f;return(await this[_0x2c9a91(0x19b)][_0x2c9a91(0x3d9)](_0x16133a))[_0x2c9a91(0xd7)];}[_0x184c40(0x314)](){const _0x56207e=_0x184c40;var _0x6f222b;return(_0x6f222b=this[_0x56207e(0x140)][_0x56207e(0xfb)](_0x2d7a77))!=null?_0x6f222b:this[_0x56207e(0xc7)]();}[_0x184c40(0xc7)](){const _0x4575dc=_0x184c40;var _0x3d7e4e,_0x520bcd;const _0x13a4d0=this['_configService']['getConfig'](_0x3521ea),_0x534f0d=this['_configService'][_0x4575dc(0xfb)](_0x5a4b90);return(_0x520bcd=(_0x3d7e4e=_0x534f0d==null?void 0x0:_0x534f0d['snapshotServerUrl'])!=null?_0x3d7e4e:_0x13a4d0)!=null?_0x520bcd:_0x43d0da;}async[_0x184c40(0x243)](_0xc8c784,_0x3d4c7d){const _0xbfe003=_0x184c40,_0x8c7420=_0xbfe003(0x238)+_0x3d4c7d[_0xbfe003(0x340)]+_0xbfe003(0x459)+_0x3d4c7d[_0xbfe003(0x445)]+_0xbfe003(0x38b);return(await this[_0xbfe003(0x19b)][_0xbfe003(0x3d9)](_0x8c7420,{'params':{'resourceId':JSON[_0xbfe003(0x313)](_0x3d4c7d[_0xbfe003(0x482)])}}))[_0xbfe003(0xd7)];}[_0x184c40(0xf9)](){const _0x599c5c=_0x184c40;throw new Error(_0x599c5c(0x26f));}[_0x184c40(0x37a)](){const _0x1612d7=_0x184c40;throw new Error(_0x1612d7(0x26f));}[_0x184c40(0x3ec)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x184c40(0xc5)](){const _0x3ce90e=_0x184c40;throw new Error(_0x3ce90e(0x26f));}},_0xff46cc[_0x184c40(0x41b)]=_0x132656([_0x5d4344(0x0,_0x16d562[_0x184c40(0x317)]),_0x5d4344(0x1,_0x16d562[_0x184c40(0x1e9)](_0x494277[_0x184c40(0x265)]))],_0xff46cc[_0x184c40(0x41b)]);var _0x5c0486=Object[_0x184c40(0x471)],_0x117254=Object['getOwnPropertyDescriptor'],_0x5951a6=(_0x29a043,_0x4ea5c1,_0x2a7ff1,_0xc1b8c3)=>{const _0xf00d35=_0x184c40;for(var _0x21d5a2=_0xc1b8c3>0x1?void 0x0:_0xc1b8c3?_0x117254(_0x4ea5c1,_0x2a7ff1):_0x4ea5c1,_0x19568e=_0x29a043[_0xf00d35(0x3bc)]-0x1,_0x5a5066;_0x19568e>=0x0;_0x19568e--)(_0x5a5066=_0x29a043[_0x19568e])&&(_0x21d5a2=(_0xc1b8c3?_0x5a5066(_0x4ea5c1,_0x2a7ff1,_0x21d5a2):_0x5a5066(_0x21d5a2))||_0x21d5a2);return _0xc1b8c3&&_0x21d5a2&&_0x5c0486(_0x4ea5c1,_0x2a7ff1,_0x21d5a2),_0x21d5a2;},_0x250842=(_0x5c425b,_0x39f12c)=>(_0x339e06,_0x34f74c)=>_0x39f12c(_0x339e06,_0x34f74c,_0x5c425b);let _0x9851b4=class extends _0x16d562[_0x184c40(0x343)]{constructor(_0x22c777,_0x50c3ee,_0x49bb91,_0x34353c,_0x289cb3){const _0x3c015a=_0x184c40;super(_0x22c777,_0x50c3ee,_0x49bb91),this[_0x3c015a(0x186)]=_0x34353c,this[_0x3c015a(0xe6)]=_0x289cb3;}[_0x184c40(0x356)](_0x395fbc,_0x11e604){const _0x152ff3=_0x184c40,_0x430940=this[_0x152ff3(0x3ef)](_0x395fbc);if(_0x430940)try{const _0x17c78e=this[_0x152ff3(0x2b9)](_0x430940,_0x11e604);this['_substituteUndoStack'](_0x395fbc,_0x17c78e);}catch(_0x683b2){this[_0x152ff3(0xe6)][_0x152ff3(0x28e)]('[CollaborationUndoRedoService]',_0x683b2),this[_0x152ff3(0x2b1)](_0x395fbc);}const _0x25ee1b=this[_0x152ff3(0x2d6)](_0x395fbc);if(_0x25ee1b)try{const _0xa12c54=this[_0x152ff3(0x2b9)](_0x25ee1b,_0x11e604);this[_0x152ff3(0x303)](_0x395fbc,_0xa12c54);}catch(_0x503dcb){this[_0x152ff3(0xe6)][_0x152ff3(0x28e)](_0x503dcb),this[_0x152ff3(0x24d)](_0x395fbc);}}[_0x184c40(0x2b1)](_0x5e7bcd){const _0x41b78c=_0x184c40,_0x29f548=this[_0x41b78c(0x3ef)](_0x5e7bcd);_0x29f548&&(_0x29f548[_0x41b78c(0x3bc)]=0x0,this[_0x41b78c(0xca)]());}['_clearRedo'](_0x55b60a){const _0x3ec06a=_0x184c40,_0xd65141=this['_getRedoStack'](_0x55b60a);_0xd65141&&(_0xd65141[_0x3ec06a(0x3bc)]=0x0,this[_0x3ec06a(0xca)]());}['_substituteUndoStack'](_0x2eda47,_0x46e70c){const _0x40b4da=_0x184c40;this[_0x40b4da(0x394)][_0x40b4da(0x355)](_0x2eda47,_0x46e70c),this[_0x40b4da(0xca)]();}['_substituteRedoStack'](_0x25aaad,_0x28fb14){const _0x337b77=_0x184c40;this[_0x337b77(0x31b)][_0x337b77(0x355)](_0x25aaad,_0x28fb14),this[_0x337b77(0xca)]();}[_0x184c40(0x2b9)](_0x26f4be,_0x59252f){const _0xdaf536=_0x184c40,_0x2b7790=[];let _0x4b38ec=_0x59252f,_0xc242f3=_0x59252f;for(let _0x556735=_0x26f4be[_0xdaf536(0x3bc)]-0x1;_0x556735>=0x0;_0x556735--){const {unitID:_0x2abac2,undoMutations:_0x220655,redoMutations:_0x15875c}=_0x26f4be[_0x556735],_0x2d4ff8=this[_0xdaf536(0x186)][_0xdaf536(0x49b)](_0x4b38ec,_0x220655),_0x3b97a3=this[_0xdaf536(0x186)][_0xdaf536(0x49b)](_0xc242f3,_0x15875c);if(_0x1f42e3['isTransformMutationsWithChangesetFailure'](_0x2d4ff8)||_0x1f42e3[_0xdaf536(0x4cb)](_0x3b97a3)){this[_0xdaf536(0xe6)]['error'](_0xdaf536(0x27f),_0xdaf536(0x132),_0x2d4ff8,_0x3b97a3);break;}_0x4b38ec=_0x2d4ff8[_0xdaf536(0x272)],_0xc242f3=_0x3b97a3[_0xdaf536(0x272)],_0x2b7790[_0xdaf536(0x250)]({'unitID':_0x2abac2,'undoMutations':_0x2d4ff8[_0xdaf536(0x22b)],'redoMutations':_0x3b97a3[_0xdaf536(0x22b)]});}return _0x2b7790[_0xdaf536(0x426)]();}};_0x9851b4=_0x5951a6([_0x250842(0x0,_0x16d562[_0x184c40(0x466)]),_0x250842(0x1,_0x16d562[_0x184c40(0x156)]),_0x250842(0x2,_0x16d562[_0x184c40(0x1e8)]),_0x250842(0x3,_0x1f42e3[_0x184c40(0x254)]),_0x250842(0x4,_0x16d562[_0x184c40(0x31a)])],_0x9851b4);class _0x2b1751 extends _0x16d562['RxDisposable']{constructor(){const _0x22857e=_0x184c40;super(),_0x1fbb55(this,'urlChange$'),this[_0x22857e(0x162)]=_0x1f1780[_0x22857e(0x34d)](window,_0x22857e(0xf6))[_0x22857e(0x3b2)](_0x1f1780['takeUntil'](this[_0x22857e(0x3fd)]),_0x1f1780[_0x22857e(0x2fb)](0x1),_0x1f1780[_0x22857e(0x29b)](void 0x0));}[_0x184c40(0xe2)](_0x5b004a,_0x7759bc,_0x59e045=!0x1){const _0x57a9a6=_0x184c40,_0x459438=new URL(window['location'][_0x57a9a6(0x4be)]);_0x459438[_0x57a9a6(0x146)][_0x57a9a6(0x355)](_0x5b004a,_0x7759bc),_0x59e045?window[_0x57a9a6(0xf5)][_0x57a9a6(0x206)]('','',_0x459438['toString']()):window[_0x57a9a6(0xf5)]['pushState']('','',_0x459438[_0x57a9a6(0x174)]());}[_0x184c40(0x326)](_0x2c91fe,_0x2e0444=!0x1){const _0x1c273c=_0x184c40,_0x47ae16=new URL(window['location']['href']);_0x47ae16[_0x1c273c(0x146)][_0x1c273c(0x2c9)](_0x2c91fe),_0x2e0444?window[_0x1c273c(0xf5)][_0x1c273c(0x206)]('','',_0x47ae16[_0x1c273c(0x174)]()):window[_0x1c273c(0xf5)]['pushState']('','',_0x47ae16[_0x1c273c(0x174)]());}['getParam'](_0x36886c){const _0x5e064c=_0x184c40;var _0xb2ba8f;return(_0xb2ba8f=new URL(window[_0x5e064c(0x3d7)][_0x5e064c(0x4be)])[_0x5e064c(0x146)][_0x5e064c(0x3d9)](_0x36886c))!=null?_0xb2ba8f:void 0x0;}}var _0x398c7c=Object[_0x184c40(0x471)],_0x36bf56=Object[_0x184c40(0x34e)],_0x26a7e1=(_0x456abe,_0x16a5cb,_0x44707f)=>_0x16a5cb in _0x456abe?_0x398c7c(_0x456abe,_0x16a5cb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44707f}):_0x456abe[_0x16a5cb]=_0x44707f,_0x29e8a8=(_0x3e05cc,_0x482161,_0x2567a6,_0x2c04c7)=>{const _0x284e55=_0x184c40;for(var _0x436065=_0x2c04c7>0x1?void 0x0:_0x2c04c7?_0x36bf56(_0x482161,_0x2567a6):_0x482161,_0xc8ed7f=_0x3e05cc[_0x284e55(0x3bc)]-0x1,_0x41b971;_0xc8ed7f>=0x0;_0xc8ed7f--)(_0x41b971=_0x3e05cc[_0xc8ed7f])&&(_0x436065=(_0x2c04c7?_0x41b971(_0x482161,_0x2567a6,_0x436065):_0x41b971(_0x436065))||_0x436065);return _0x2c04c7&&_0x436065&&_0x398c7c(_0x482161,_0x2567a6,_0x436065),_0x436065;},_0x27b2f2=(_0x4d980d,_0x49c437)=>(_0x326037,_0x4f2c31)=>_0x49c437(_0x326037,_0x4f2c31,_0x4d980d),_0x114457=(_0x23e5dc,_0x31ff59,_0x20c5a8)=>_0x26a7e1(_0x23e5dc,_0x31ff59+'',_0x20c5a8);const _0x5287c3=_0x184c40(0x442);_0xff46cc[_0x184c40(0x29e)]=class extends _0x16d562[_0x184c40(0x17c)]{constructor(_0x16ead7=_0x17a026,_0x1662c,_0x4fe4ed,_0x26465e,_0x36f8fe){const _0x55d55d=_0x184c40;super(),this['_config']=_0x16ead7,this[_0x55d55d(0xe6)]=_0x1662c,this['_renderManagerService']=_0x4fe4ed,this[_0x55d55d(0x183)]=_0x26465e,this[_0x55d55d(0x140)]=_0x36f8fe;const {..._0x43b4cd}=this[_0x55d55d(0x4c3)];this[_0x55d55d(0x140)][_0x55d55d(0x1ab)](_0x5a4b90,_0x43b4cd);}[_0x184c40(0x289)](){const _0xbbf0a2=_0x184c40;this[_0xbbf0a2(0xd4)](),_0x16d562['touchDependencies'](this[_0xbbf0a2(0x183)],[[_0x5ca174],[_0xff46cc['DataLoaderController']],[_0x152d7d]]);}[_0x184c40(0x154)](){const _0x6d0015=_0x184c40;_0x16d562[_0x6d0015(0x29f)](this[_0x6d0015(0x183)],[[_0x47a8b6]]);}[_0x184c40(0x30e)](){const _0x17045e=_0x184c40;this[_0x17045e(0x2f9)]();}[_0x184c40(0xd4)](){const _0x14e6ea=_0x184c40;var _0x1ff8e3,_0x542204,_0x58ccda,_0x1a4c5a;this[_0x14e6ea(0x183)][_0x14e6ea(0x4c2)](_0x16d562[_0x14e6ea(0x342)])&&this[_0x14e6ea(0xe6)][_0x14e6ea(0x28e)]('[UniverCollaborationClientPlugin]','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x7e6ade=[[_0x16d562[_0x14e6ea(0x342)],{'useClass':_0x9851b4}],[_0xff46cc[_0x14e6ea(0xef)]],[_0x3974b0],[_0x494277[_0x14e6ea(0x265)]],[_0x3c63e6,{'useClass':_0x2b1751}],[_0x19c6b5],[_0xff46cc[_0x14e6ea(0x205)]],[_0x494277['WebSocketService']],[_0x11c95c],[_0x480601],[_0x190714],[_0x126509],[_0x46c8bd],[_0x583d32],[_0xd11c7b],[_0x152d7d],[_0x4606ff,{'useClass':(_0x542204=(_0x1ff8e3=this[_0x14e6ea(0x4c3)])==null?void 0x0:_0x1ff8e3[_0x14e6ea(0x1ca)])!=null?_0x542204:_0xff46cc[_0x14e6ea(0x16c)]}],[_0x494277[_0x14e6ea(0x433)],{'useClass':_0x494277['XHRHTTPImplementation']}],[_0x1f42e3[_0x14e6ea(0x145)],{'useClass':_0xff46cc[_0x14e6ea(0x41b)]}],[_0x16d562[_0x14e6ea(0x1c4)],{'useClass':_0xff46cc['AuthzIoHttpService']}],[_0x33ea92[_0x14e6ea(0x434)],{'useClass':_0xff46cc[_0x14e6ea(0x42d)]}],[_0xff46cc[_0x14e6ea(0x42f)]],[_0xff46cc[_0x14e6ea(0x400)]],[_0xff46cc[_0x14e6ea(0x207)]],[_0x47a8b6],[_0x5ca174]];(_0x58ccda=this[_0x14e6ea(0x4c3)])!=null&&_0x58ccda[_0x14e6ea(0x428)]&&_0x7e6ade[_0x14e6ea(0x250)]([_0x110502,{'useClass':_0x569ce6}]),_0x7e6ade=_0x16d562['mergeOverrideWithDependencies'](_0x7e6ade,(_0x1a4c5a=this[_0x14e6ea(0x4c3)])==null?void 0x0:_0x1a4c5a[_0x14e6ea(0x416)]),_0x7e6ade[_0x14e6ea(0x284)](_0x12482f=>this[_0x14e6ea(0x183)][_0x14e6ea(0x279)](_0x12482f)),this[_0x14e6ea(0x386)]();}['_registerRenderDependencies'](){const _0x1fb658=_0x184c40;this[_0x1fb658(0xce)](this[_0x1fb658(0x1d4)]['registerRenderModule'](_0x16d562[_0x1fb658(0x1f9)]['UNIVER_DOC'],[_0x228f1a])),this[_0x1fb658(0xce)](this[_0x1fb658(0x1d4)][_0x1fb658(0x331)](_0x16d562['UniverInstanceType'][_0x1fb658(0x1ce)],[_0x323648]));}[_0x184c40(0x386)](){const _0x1d2ea2=_0x184c40;var _0x57f1d2,_0xa66937;this[_0x1d2ea2(0x183)][_0x1d2ea2(0x3d9)](_0x494277['HTTPService'])['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x494277[_0x1d2ea2(0x1a7)]({'maxParallel':0x6})}),this[_0x1d2ea2(0x183)]['get'](_0x583d32),(_0x57f1d2=this[_0x1d2ea2(0x4c3)])!=null&&_0x57f1d2[_0x1d2ea2(0x31c)]||this['_injector'][_0x1d2ea2(0x3d9)](_0xff46cc['LocalCacheService'])[_0x1d2ea2(0x2d4)](),(_0xa66937=this[_0x1d2ea2(0x4c3)])!=null&&_0xa66937[_0x1d2ea2(0x20d)]&&this[_0x1d2ea2(0x183)]['get'](_0x46c8bd),this[_0x1d2ea2(0x183)][_0x1d2ea2(0x3d9)](_0xff46cc[_0x1d2ea2(0x42f)]),this[_0x1d2ea2(0x183)][_0x1d2ea2(0x4c2)](_0xff46cc['DesktopCollaborationStatusDisplayController'])&&this['_injector'][_0x1d2ea2(0x3d9)](_0xff46cc[_0x1d2ea2(0x207)]);}},_0x114457(_0xff46cc[_0x184c40(0x29e)],_0x184c40(0x3ee),_0x5287c3),_0xff46cc['UniverCollaborationClientPlugin']=_0x29e8a8([_0x16d562[_0x184c40(0x4dc)](_0x1f42e3['UniverCollaborationPlugin']),_0x27b2f2(0x1,_0x16d562[_0x184c40(0x31a)]),_0x27b2f2(0x2,_0x4c937c['IRenderManagerService']),_0x27b2f2(0x3,_0x16d562[_0x184c40(0x1e9)](_0x16d562[_0x184c40(0x3a2)])),_0x27b2f2(0x4,_0x16d562[_0x184c40(0x317)])],_0xff46cc['UniverCollaborationClientPlugin']),_0xff46cc['AUTHZ_URL_KEY']=_0x1f03d7,_0xff46cc[_0x184c40(0x419)]=_0x13fd55,_0xff46cc['COLLAB_WEB_SOCKET_URL_KEY']=_0x306eb0,_0xff46cc[_0x184c40(0x23d)]=_0x55c585,_0xff46cc[_0x184c40(0x255)]=_0x25575c,_0xff46cc[_0x184c40(0x10c)]=_0xd11c7b,_0xff46cc['HEARTBEAT_INTERVAL_KEY']=_0x446ff7,_0xff46cc[_0x184c40(0x1e6)]=_0xe2e447,_0xff46cc[_0x184c40(0x443)]=_0x4606ff,_0xff46cc['IURLService']=_0x3c63e6,_0xff46cc[_0x184c40(0x235)]=_0x103e56,_0xff46cc[_0x184c40(0x2e9)]=_0x465855,_0xff46cc[_0x184c40(0x4bc)]=_0x1fe909,_0xff46cc[_0x184c40(0x34c)]=_0x142850,_0xff46cc[_0x184c40(0x45e)]=_0x3521ea,_0xff46cc['SNAPSHOT_URL_KEY']=_0x2d7a77,_0xff46cc[_0x184c40(0x2e8)]=_0x17c413,_0xff46cc['SheetCollabCursorShape']=_0x3ac695,_0xff46cc[_0x184c40(0x20c)]=_0x2b1751,_0xff46cc[_0x184c40(0x32b)]=_0x3f3a5c,_0xff46cc['serializeCombRequest']=_0xa22d57,Object[_0x184c40(0x471)](_0xff46cc,Symbol['toStringTag'],{'value':_0x184c40(0x4a2)});}));function _0x2bb3(_0x3aa228,_0x11a0ca){const _0x3a29b6=_0x3a29();return _0x2bb3=function(_0x2bb32d,_0x1de174){_0x2bb32d=_0x2bb32d-0xb3;let _0x491588=_0x3a29b6[_0x2bb32d];return _0x491588;},_0x2bb3(_0x3aa228,_0x11a0ca);}function _0x3a29(){const _0x43dd41=['DataLoaderController','/universer-api/snapshot','_onMessage','conflict','_transformSelections','liveShareNewHost','SetWorksheetActivateCommand','rev','collabCursorState$','_sessions','DeleteRangeMoveLeftCommandId','_onUserLeave','getTypeOfUnitDisposed$','black','loadSheet','_clearCollaborationTimeoutTimer','deleteCollaborator','replaceTextRanges','COMPRESS_MUTATION_SEND','url','fromCollab','handleInsertCol','override','setInterval','UniverDocs','COLLAB_SUBMIT_CHANGESET_URL_KEY','_sessionStatus$','SnapshotServerOverHTTPService','NodePositionConvertToRectRange','_collabCursorController','random','withCredentials','interceptor','_state','_id','collab-rect-range-','on-line-single_clip0_910_349','_initRequestHeader','reverse','session.room-full','enableSingleActiveInstanceLock','collab-text-range-','transform','SYNCED','LocaleService','ImageIoService','createSocket','CollaborationController','FETCH_MISSING','_lastPointer','_syncEditingCollabCursorService','IHTTPImplementation','IImageIoService','_instanceService','c2Prime','selections','UniverUi','includes','userID','getAttachHeader','COMMENT_UPDATE','arc','getCurrentRevOfUnit','closePath','CONNECTOR_DATA_TOO_LARGE','INTERNAL_ERROR','UNIVER_COLLABORATION_CLIENT_PLUGIN','ICollaborationSocketService','@univerjs/ui','unitID','getUnitOnRev','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getUnitType','allowed','DocIMEInputManagerService','?size=','getActiveRange','collaboration_new_changeset','setCurrentUser','[SyncedState]:\x20received\x20rejection.','_getMergeRange','telemetry\x20info\x20is\x20not\x20initialized','/universer-api/file/{fileID}/sign-url','_snapshotServerService','@univerjs-pro/collaboration','offline','_scheduleTimestamp','isInternalEditorID','none','/unit/','beginPath','POST','resize','online','SNAPSHOT_SERVER_URL_KEY','loadOfflineData','clear','roomMembers$','subscribe','collabStatus.offline','_sendHeartbeat','SetSelectionsOperation','IUniverInstanceService','OnLineSingle','UniverCollaboration','_initMergeInterceptor','post','fetchMiss','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','delay','_lockTransition','getUndoRedoMutationParamsCache','readAsDataURL','defineProperty','operators','1884860dXsfJT','originalMeta','_status$','socket\x20open.','_getAPIPrefixPath','selection','transformMutation','transformIMECache','_checkMissing','resolve','_scene','CHANGESET_ACK','COMPRESS_MUTATION_APPLY','currentSkeleton$','handleIRemoveRow','resourceIDs','ColorKit','/universer-api/authz','HELLO','_docTransformSelectionsService','getUnit','1588896ehQkBl','collab-client.tooltip.reconnect','split','_onFetchMissResult','_onConnectionOpen','DocStateChangeManagerService','_decreaseWaiting','_socketMessageSubscription','_updateState','setShapeProps','_onRemoteACK','HEARTBEAT_TIMEOUT','{fileID}','debounce','_onJoinRoomEvent','src','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','WebSocketService','ImageUploadStatusType','transformMutationsWithChangeset','_collaborationPaused','whenReady','HttpExport','commentUpdateEvent','sessionStatus','assign','Module','_messageService','_anchorDot','_transformUndoredo','div','transformByState','forwardRef','LEAVE','_cursor','image/bmp','members','subscribeEvent','startRow','_handleHover','confirm','RECV','visibilitychange','exports','LICENSE_IMPORT_SIZE_EXCEEDED','_transformIMECache','UniverDesign','editingUnit','_getSignURL','_telemetryInfo','CollaborationEntity','_isPermissionRej','RETRY_CONNECTING_MAX_COUNT_KEY','setAlpha','href','socket$','collabStatus.synced','toggleOnline','has','_config','@univerjs/docs-ui','substring','ALREADY_EXISTS','encode','[PendingState]:\x20received\x20rejection.','AUTHZ_URL_KEY','_onLocalMutation','isTransformMutationsWithChangesetFailure','WorkbookEditablePermission','handleInsertRangeMoveDown','_docStateChangeManagerService','defIds','_hideTimer','startColumn','rxjs','_drawAnchor','/object','NEW_CHANGESETS','with','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','result','APPLY_PERMISSION_DENIED','_clearOtherTimers','UserManagerService','DependentOn','1em','_disableEditing','refreshPermission','SUBMIT_CHANGESET','EffectRefRangId','_createInitialState','_draw','CommandType','LICENSE_EXPORT_SIZE_EXCEEDED','values','string','YUUMI_RATE_OVER_LIMIT','_pendingMutations','revision','_labelPosition','onMouseMove','_getScale','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','column','FAIL','then','concat','createCollaborator','width','_color','hide','copyFileMeta','permission.content','_getAPIPrefix','Warning','AWAITING','_updateStatus','_memberService','drawWith','attrs','disposeWithMe','createIdentifier','append','extend','_unlockTransition','onTransformIME','_registerDependencies','hovered','unit','body','error$','key','@univerjs/rpc','AWAITING_WITH_PENDING','collaborators','_scheduleCollaborationTimeoutTimer','/allowed','UniverEngineRender','height','1585523jKYXjY','setParam','data','TEXT_RANGE_LAYER_INDEX','_toggleOffline','_logService','onTransformSelections','newCsEvent','roomInfos','_setupBeforeClosingHandler','synced','getSheetId','baseRev','removeMember','CollaborationSessionService','/collaborator','off-line-single_clip0_910_343','parse','updateCursorEvent','_getSendChangesetTimeout','history','popstate','USERS_LEAVE','url(#off-line-single_clip0_910_343)','saveSnapshot','_range','getConfig','FromArray','_beforeCloseService','RETRY_CONNECTING_MAX_COUNT','handleIRemoveCol','collabStatus.conflict','clearInterval','collabStatus.notCollab','_localCacheService','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_startTelemetryCollaborationNewChangeset','RegularPolygon','@univerjs/design','getOffsetConfig','evenodd','@univerjs/core','_timeoutTimer','CommentService','collaboration-client.offline-data-not-saved','getOwnPropertySymbols','UniverNetwork','PERMISSION_DENIED','combineLatest','PSEUDO_FETCH_MISSING_RESULT','_createHandler','onRemoteChangeset','_HTTPService','change$','PENDING','/role','restore','_acknowledgedAwaitingChangeset','_clearTimeoutTimer','BASE64','DEFAULT_FILE_NAME','onlineStatusIcon','sessionStatus$','encodeURIComponent','[PendingState]:\x20unhandled\x20univer\x20type:\x20','HTTPRequest','_unitOnClients','min','cmd','@univerjs/engine-formula','capture','generateRandomId','path','getWorkbookSelections','react','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','cursorInfo','complete','conflict.title','getSheetBySheetId','toRgbString','transformStack\x20failed!','UniverSheets','univerjs-icon\x20univerjs-icon-','x-univer-host','[OfflineState]:\x20received\x20changeset.','/object/','startTime','Optional','NodePositionConvertToCursor','isActive','getSheetObject','indexOf','UniverRpc','@univerjs/docs','_configService','NO_OTHER_CLIENTS_EDITING','labelPosition','fetchMissingChangesets','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','ISnapshotServerService','searchParams','_applyRemoteChangeset','_backgroundColor','socket\x20close','[DataLoaderController]','[OfflineState]:\x20received\x20rejection.','getCollabEntity','measureText','onlyLocal','@univerjs/engine-render','eventID','_onRemoteRejected','collaboration-client.config','putCollaborators','onReady','translate(.97)','ICommandService','_cachedData','getUnhiddenWorksheets','getCellPositionByOffset','fromEventSubject','currentTheme$','Disposable','_initStatusListener','mutations','_transformRemoteChangesetByIMECache','LIVESHARE_NEW_HOST','_onRefRangeChange','urlChange$','_getCtorByUniverType','getColor','clsx','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','UniverDocsUi','LIVESHARE_TERMINATE','isTransformChangesetsSuccess','useRef','ERROR_EXCEED_SIZE','CollaborationSocketService','getInterceptPoints','_setupSubUnitSync','IMessageService','unshift','concatMap','SNAPSHOT_URL_KEY','collabStatus.syncing','toString','sequenceExecute','_initUnitPermissionChange','_handleLeaveEvent','UNIVER_PROJECT','_saveCache','_themeService','collaboratorID','Plugin','send','getUnitId','_ensureSubject','permission.title','some','rxjs/operators','_injector','duration','_retryConnectingTimer','_transformService','_updateLocalCursor','_removeRoom','ERROR_IMAGE','image/png','_getCurrentRevision','_render','_disabled','Shape','unit-cache-','permissionRejEvent','exhaustSavingTask','setWaitCount','Subject','onTransformRemoteChangesetByIMECache','_docSyncEditingCollabCursorService','saveOfflineData','SNAPSHOT_HAS_BEEN_REMOVED','EXCHANGE_SIGN_URL_SERVER_URL_KEY','cursorInfo$','_session','_httpService','LICENSE_DISTRO_REJECTED','gold400','_heartbeatTimer','MSG_FOR_ERROR','_updateURLWithCurrentState','className','_unitID','_schedule','objectID','updatePermissionObjEvent','responseType','ThresholdInterceptorFactory','_uiPartsService','_commentUpdate$','\x0aAfter:\x20','setConfig','MessageType','session.collaboration-timeout','textRanges','text','_replayCachedMutations','_snapshotService','runRefRangeMutations','resend','getTime','_univerInstanceService','ThemeService','onTransformChange$','defs','_onConnectionFailed','_change$','routeKey','_shapes','MUTATION','show','uni.network.url-service','_document','COLORS','_entities','session.will-retry','IAuthzIoService','_drawRectRange','addObject','9261785cyrBaS','joinEvent','FileId','socketService','_tryEnsureSocket','symbol','/-/object/list','UNIVER_SHEET','_assignedColors','image/gif','failed\x20to\x20apply\x20missed\x20changesets!','_cursors','_remoteChangesetQueue','_renderManagerService','createInstance','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_name','_onRecvEvent','ranges','3656838uETFZp','fetch_missing','OFFLINE','csRejEvent','Tools','APPLY_REJECT','_showConflictNotification','_permissionService','onPointerMove$','LIVESHARE_FETCH_OPERATIONS','fillRule','HEARTBEAT_TIMEOUT_KEY','function','IContextService','Inject','amd','submit\x20changeset\x20error!','connection\x20error','_submitChangeset','state$','makeDirty','_getDownloadEndpointURL','put','_getUploadFileURL','SEND_CHANGESET_TIMEOUT','MoveRangeCommandId','object','getActiveSheet','onPointerLeave$','Unknown\x20user','UniverInstanceType','filter','unitId\x20is\x20not\x20found','_handler','_anchor','RefRangeService','_onCursorDelete','IUIPartsService','_onRemoteChangeset','CompressMutationService','getCurrentUser','RxDisposable','LocalCacheService','replaceState','DesktopCollaborationStatusDisplayController','_updateLocalCache','_toggleOnline','/rev/','_urlService','WebURLService','enableAuthServer','_removeClearOtherTimer','_compressMutationService','sheetID','[CollaborationSessionService]:\x20socket\x20error','[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.','_scheduleClearOtherTimer','newValue','xlink:href','_userManagerService','updateCollaborator','registerRefRange','univer-online-status-title','sheetId','_updateSubUnitFromURLParams','_exhaustRemoteChangesetQueue','_docTransformIMECacheService','YUUMI_UNABLE_LOAD_URL','rgba(255,\x20255,\x20255,\x200.01)','RemoveRowCommandId','...','_onUserJoin','_revisionService','batchAllowed','_getAnchorBounding','saveImage','_sendHeartbeatTimer','toDisposable','setUndoRedoMutationParamsCache','file','m2Prime','[OfflineState]:\x20received\x20acknowledgement.','every','open$','getValue','transformRemoteChangeset','setTimeout','_handleEvent','create','switchMap','LOCAL_CACHE_INTERVAL_KEY','VIEW_MAIN','_loadSheet','/universer-api/snapshot/','LOCAL_CACHE_INTERVAL','6781397pUPypC','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','SheetCollaborationEntity','CollaborationStatus','_incrementRevisionNumber','_undoRedoService','_saveTaskMap','isValidRectRange','objectType','getResourcesRequest','getCurrent','objects','SUCCUSS','0\x200\x2016\x2016','registerComponent','close$','_joinRoom','fillStyle','Workbook','_clearRedo','UniverCollaborationClient','_clearLocalCache','push','getRenderById','UNRECOGNIZED','_initStatusComponent','ITransformService','CollaborationStatusDisplay','getMergeData','pauseCollaboration','reject','InsertRangeMoveRightCommandId','IRenderManagerService','prototype','_notificationService','initWorkbookPermissionChange','LICENSE_MAX_UNITS_EXCEEDED','_collaborationController','unsubscribe','ERROR_IMAGE_TYPE','_throwTelemetryCollaborationNewChangeset','JOIN','RichTextEditingMutation','HTTPService','onSyncEditingCollabCursor','3034509rweYHo','_onCursorUpdate','_initCommandExecutedListener','SNAPSHOT_INVALID_SNAPSHOT','_transitionLocked','parseProtocolChangeset','_initResize','take','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','endColumn','unknown','c1Prime','ONLINE','disposeUnit','_sheetTransformSelectionsService','_singleActiveUnitService','actions','Tooltip','add','_createInitialStateImpl','patch','currentColor','_scheduleHeartbeat','Univer','[CollaborationUndoRedoService]','headers','APPLY_REVISION_CONFILICT','message$','displayName','forEach','onSendChangeset','children','YUUMI_SUBSCRIPTION_NOT_FOUND','bottom','onStarting','_clearHeartbeatTimer','_getSheetObject','startsWith','flatMap','error','collaboration-session-retry','params','row','roomMembers','sendChangesetTimeout','_event$','incrementRevOfUnit','now','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','UNIVER_UNKNOWN','_drawTextRange','deepClone','mapTo','UNIVER_SLIDE','_textBubble','UniverCollaborationClientPlugin','touchDependencies','enableLocalCache','UnitSnapshot','find','_hovered','joinRsp','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','status$','_docSkeletonManagerService','React','_roomMembers$','getParam','connectInjector','EmptyMutation','fillText','getRangePointData','collabWebSocketUrl','awaiting','_clearUndo','debug','UniverTelemetry','_localeService','ImageSourceType','OTHER_CLIENTS_EDITING','clearTimeout','_telemetryService','_transformStack','_eventUnsubscribe','_loadDoc','getRelativeToViewportCoord','_listenToOfflineEvent','@univerjs/telemetry','VIEWPORT_KEY','_handleJoinEvent','updateOfflineData','getCollabEntity$','close','slice','ILocalStorageService','DocCollaborationEntity','isTransformMutationsWithChangesetSuccess','getCurrentSelections','delete','doc.mutation.rich-text-editing','updateMember','CONFLICT','registerHTTPInterceptor','idSuffix','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','collaboration.closeRoom','moveTo','next','#fff','disableLocalCache','executeCommand','_getRedoStack','_init','name','_commentService','handleInsertRow','TOO_MANY_REQUESTS','_socketService','merge','_awaitingChangeset','toggleOffline','[FetchMissState]','takeUntil','stopTime','url(#on-line-single_clip0_910_349)','SheetsSelectionsService','listCollaborators','_refreshCollabCursors','UNAUTHENTICATED','SessionStatus','LOGIN_URL_KEY','FETCH_MISS','font','DisposableCollection','InsertRowCommandId','isArray','onMissingChangesets','BehaviorSubject','transformSelections','_waitCount','LIVESHARE_OPERATION','_stopTelemetryCollaborationNewChangeset','UNIVER_DOC','svg','_collaborationSessionService','_executeRemoteChangeset','_registerRenderDependencies','_getLoginPath','shareReplay','target','_listenToOnlineEvent','_refRangeService','/block/','b64DecodeUnicode','_candidateSocket','updatePermissionPoint','_substituteRedoStack','getTypeOfUnitAdded$','UniverSheetsUi','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','SHOULD_CLOSE_CONN','unload','createElement','icon','tag','event$','@univerjs/sheets-ui','onRendered','objectActions','findNodePositionByCharIndex','APPLY_NON_SEQUENTIAL_REVISION','collaMsg','stringify','_getSnapshotAPIPrefix','_collabSessionService','_type','IConfigService','NOT_COLLAB','MergeInterceptorFactory','ILogService','_redoStacks','enableOfflineEditing','getUnitStatus$','propertyIsEnumerable','blue400','focused$','_collaborationTimeoutTimer','parseChangesetToProtocol','DocSelectionManagerService','session.connection-failed','NOT_FOUND','removeParam','_rescheduleHeartbeat','M0\x200H16V16H0z','HttpImport','@univerjs-pro/license','deserializeToCombResponse','[CollaborationSession]','#FFF','getSheetBlock','infoRsp','getMemberID','registerRenderModule','UNDEFINED','conflict.content','COMPLETION_FINISHED','_entityInit$','CollaborationEvent','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','SheetPermissionInitController','_transformUndoRedoStack','SetTextSelectionsOperation','range','DocSkeletonManagerService','_queuedRemoteChangesets','IBeforeCloseService','UniverCore','type','_online','IUndoRedoService','LocalUndoRedoService','awaitingChangeset','_imageSourceCache','_onOffline','getVpScrollXYInfoByPosToVp','onCommentUpdate','addEventListener','signUrlServerUrl','SetDocZoomRatioOperation','SEND_CHANGESET_TIMEOUT_KEY','fromEvent','getOwnPropertyDescriptor','reconnect','_cursorInfo$','session','_retryCount','USERS_ENTER','unitId','set','transformUndoRedo','CollaborationSession','ITelemetryService','COLLAB_SUBMIT_CHANGESET_URL','dispose','action','_context','getImageSourceCache','authzUrl','[CollaborationEntity]','[SyncedState]:\x20received\x20acknowledgement.','changesets','status','JSONX','_startSheetCollabCursor','Vector2','_startCollaboration','save\x20fail\x20reason\x20is\x20','clipPath','JOINING','size','reduce','getCoordByCell','IDLE','InsertRangeMoveDownCommandId','_sheetSkeletonManagerService','assignAColorForMemberID','requireSession','awaiting_with_pending','_cursorShapes','subunit','jiqing500','asObservable','INGEST','save','Rectangle','saveSheetBlock','setActiveRange','onPointerEnter$','_scheduleSaving','lineTo','?url=','setItem','apply','onMissedChangesetFetched','loadDoc','_replaceFileID','debounceTime','_initModules','localeService','entries','_clearScheduledTask','engine','/resources','snapshot','requestParams','catch','/fetchmissing?from=','appendMutation','addObjects','isTransformMutationFailure','_shouldReportTelemetry','_undoStacks','_roomMembers','getDocRanges','DeleteRangeMoveUpCommandId','onCommandExecuted','[PendingState]:\x20received\x20acknowledgement.','mapDocumentTypeToUniverType','color','_getSaveTimeout','deserializeRangeWithSheet','pending','round','code','closeSession','Injector','RevisionService','all','memberID','_tryReconnect','_initCloseConn','getCurrentUnitForType','activeSheet$','[CollaborationSessionService]','method','getAncestorScale','fill','UniverDrawing','Error','CHANGESET_REJ','Rect','pipe','hasOwnProperty','getMember','SnapshotService','HEARTBEAT','m1Prime','colorChannel1','off-line-single','univer-online-status','_removeCollabCursors','length','top','INotificationService','current','_socket','UPDATE_PERMISSION_OBJ','IPermissionService','_members','_colorIndex','getUniverSheetInstance','_socketReady','YUUMI_URL_COL_OUT_OF_RANGE','image/jpeg','liveShareOperation','json','getSkeleton','on-line-single','UPDATE_CURSOR','_updateCollabCursors','univer-online','InsertColCommandId','syncEditingCollabCursor','_state$','getCollabCursors$','@univerjs/network','fetchThroughInterceptors','replace','location','collabSubmitChangesetUrl','get','_commandService','LIVESHARE_REQUEST_HOST','url(#$1','textEncoder','transformChangesets','isPermissionRej','_createSocket','_socket$','_selfUnitIDs','onRemoteRej','useDependency','UnitEmbedded','init','INVALID_ARGUMENT','visibilityState','_hover','max','getFocusedUnit','saveChangeset','map','pluginName','_getUndoStack','_initEventListeners','/-/object/-/batch_allowed','onRemoteAck','call','retryConnectingInterval','_sendingTimer','_onConflict','roles','_send','_unitStatus','downloadEndpointUrl','subUnitId','SheetSkeletonManagerService','dispose$','&assign=','_localStorageService'];_0x3a29=function(){return _0x43dd41;};return _0x3a29();}