@univerjs-pro/collaboration-client 0.4.0 → 0.4.1-nightly.202410201605
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/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +17 -17
package/lib/umd/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function _0x5581(){const _0x10a4d3=['split','_instanceService','_notificationService','subscribe','registerHTTPInterceptor','XHRHTTPImplementation','close','size','string','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_getSnapshotAPIPrefix','SheetSkeletonManagerService','clearTimeout','_toggleOffline','icon','USERS_ENTER','get','_getUndoStack','CHANGESET_ACK','from','operators','YUUMI_UNABLE_LOAD_URL','Undefined','isInternalEditorID','USERS_LEAVE','getActiveSheet','RECV','_collaborationPaused','_registerRenderDependencies','colorChannel1','getCellPositionByOffset','permission.content','_replaceFileID','file','BuiltInUIPart','YUUMI_SUBSCRIPTION_NOT_FOUND','[UniverCollaborationClientPlugin]','activeSheet$','_selfUnitIDs','FromArray','trim','getRenderById','JOIN','updateCursorEvent','arc','error','_showConflictNotification','reqId','complete','key','ImageSourceType','clipPath','SNAPSHOT_URL_KEY','Optional','CONFLICT','appendMutation','RETRY_CONNECTING_MAX_COUNT_KEY','COLLAB_SUBMIT_CHANGESET_URL','ThresholdInterceptorFactory','unshift','_stopTelemetryCollaborationNewChangeset','mapDocumentTypeToUniverType','setParam','ThemeService','UUID','cursorInfo$','DesktopCollaborationStatusDisplayController','mapTo','serializeCombRequest','@univerjs/sheets-ui','collaboration.closeRoom','enableAuthServer','getAncestorScale','LIVESHARE_FETCH_OPERATIONS','skeleton','update','focused$','getCollabCursors$','sheets','[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.','_colorIndex','permissionRejEvent','asObservable','_getAPIPrefix','_initModules','NOT_FOUND','_backgroundColor','_getCtorByUniverType','makeDirty','path','push','IPermissionService','_decreaseWaiting','getImage','_onUserLeave','collab-rect-range-','getImageSourceCache','getUnhiddenWorksheets','ERROR_EXCEED_SIZE','_remoteChangesetQueue','handleIRemoveRow','createSocket','csAckEvent','concat','FETCH_MISS','listRoles','getParam','getUnitStatus$','saveSheetBlock','_config','53992NrAwgP','SNAPSHOT_SERVER_URL_KEY','JOINING','connectInjector','history','InsertRowCommandId','error$','getMember','_getSheetObject','BehaviorSubject','loginUrlKey','status','addEventListener','129caCVeu','_color','replace','CollaborationStatus','_socket$','body','purple300','_HTTPService','collaboration-client.offline-data-not-saved','PERMISSION_REJ','UnitEmbedded','rxjs/operators','delay','MergeInterceptorFactory','_changesetReqId','defIds','[CollaborationSessionService]:\x20socket\x20error','\x0aAfter:\x20','_handleHover','/allowed','_collaborationSessionService','baseRev','_refreshCollabCursors','take','_urlService','_getAPIPrefixPath','getRangePointData','UniverNetwork','NO_OTHER_CLIENTS_EDITING','headers','searchParams','_sessionStatus$','&assign=','routeKey','EffectRefRangId','isValidRectRange','AWAITING','transform','onStateChange','startRow','collab-text-anchor-','handleMoveRange','@univerjs/engine-formula','className','TEXT_RANGE_LAYER_INDEX','Shape','getVpScrollXYInfoByPosToVp','InsertSheetMutation','uploadFileServerUrl','_beforeCloseService','_disableEditing','xlink:href','APPLY_NON_SEQUENTIAL_REVISION','2719381EmVRQG','VIEWPORT_KEY','Injector','session','_socketService','_onRefRangeChange','post','UniverSheetsUi','snapshotServerUrl','onPointerEnter$','labelPosition','_initMergeInterceptor','sheetId','removeMember','/universer-api/stream/file/upload','_status$','_themeService','_shapes','socket$','div','isTransformMutationFailure','_substituteRedoStack','findNodePositionByCharIndex','_clearHeartbeatTimer','range','_cursors','downloadEndpointUrl','_univerInstanceService','includes','UNRECOGNIZED','onCommentUpdate','FileId','_commentUpdate$','getRandomValues','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_change$','onRemoteRej','updateMember','_onConnectionOpen','_unitID','createCollaborator','getTime','forwardRef','_docTransformSelectionsService','_clearCollaborationTimeoutTimer','add','UNIVER_UNKNOWN','addObjects','_shouldReportTelemetry','userID','_updateLocalCursor','prototype','_undoStacks','CollaborationEvent','merge','_initCommandExecutedListener','parse','synced','\x0aCurrent:\x20','HTTPService','origin','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','conflict.title','_uiPartsService','registerRenderModule','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','[CollaborationSessionService]','_initStatusListener','_docSkeletonManagerService','_entityInit$','_scheduleClearOtherTimer','lineTo','getFocusedUnit','debounce','rev','Tools','deleteCollaborator','image/png','LIVESHARE_OPERATION','Rectangle','onMouseMove','FAIL','UniverSheets','objectType','forEach','url(#$1','_clearOtherTimers','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','originalMeta','[OfflineState]:\x20received\x20changeset.','_incrementRevisionNumber','rng','members','length','COLORS','_transformService','handleInsertRangeMoveRight','UPDATE_PERMISSION_OBJ','_commandService','SNAPSHOT_HAS_BEEN_REMOVED','not_collab','transformSelections','backgroundColor','/unit/','getTypeOfUnitDisposed$','amd','_exhaustRemoteChangesetQueue','_sendHeartbeat','registerRefRange','UniverInstanceType','editingUnit','transformStack\x20failed!','rgba(255,\x20255,\x20255,\x200.01)','closePath','@univerjs/telemetry','_cursorInfo$','APPLY_DUPLICATED','_listenToOfflineEvent','_anchorDot','setInterval','SheetsSelectionsService','8920uYDwJU','socket\x20open.','number','PENDING','onSyncEditingCollabCursor','assign','failed\x20to\x20apply\x20missed\x20changesets!','roles','IRenderManagerService','_removeCollabCursors','fill','commentUpdateEvent','fillRule','attrs','_clearRedo','ISnapshotServerService','min','INGEST','_saveCache','IDLE','CollaborationSessionService','defs','substring','@univerjs-pro/license','_waitCount','_updateCollabCursors','socketService','LocalUndoRedoService','getColor','1em','_substituteUndoStack','WebSocketService','dispose$','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','reject','listCollaborators','round','/collaborator','onload','[CollaborationEntity]','c1Prime','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','subUnitId','drawWith','_getDownloadEndpointURL','fillText','closeSession','_localCacheService','collaboration-session-retry','allowed','_hideTimer','SEND_CHANGESET_TIMEOUT','clearInterval','_docSyncEditingCollabCursorService','_injector','_localStorageService','CollaborationSession','_onUserJoin','onSendChangeset','getTypeOfUnitAdded$','message$','collabWebSocketUrl','saveImage','show','collaboration-client.config','transformUndoRedo','isPermissionRej','COMPRESS_MUTATION_APPLY','toggleOffline','HttpExport','getUnitId','Error\x20on\x20receiving\x20event','COMPLETION_FINISHED','debounceTime','with','syncEditingCollabCursor','_startDocCollabCursor','UniverDrawing','find','transformChangesets','_onMessage','unsubscribe','image/jpg','off-line-single_clip0_910_343','_drawRectRange','&to=','_updateSubUnitFromURLParams','COLLAB_WEB_SOCKET_URL_KEY','cursorInfo','UNIVER_DOC','_transformSelections','_cachedData','_unitOnClients','_heartbeatTimer','NodePositionConvertToCursor','INTERNAL_ERROR','unitId','APPLY_REVISION_CONFILICT','_logService','LICENSE_EXPORT_SIZE_EXCEEDED','WebURLService','_drawAnchor','Warning','blue400','sequenceExecute','_createInitialStateImpl','DocIMEInputManagerService','CONNECTOR_DATA_TOO_LARGE','_anchor','_scheduleTimestamp','deepClone','_onConnectionFailed','verdancy600','getOwnPropertySymbols','Module','COMMENT_UPDATE','[CollaborationUndoRedoService]','initWorkbookPermissionChange','univer-offline','shouldCloseConn','m2Prime','subscribeEvent','text','batchAllowed','black','ICollaborationSocketService','concatMap','_replayCachedMutations','revision','loadOfflineData','_state$','ICommandService','LEAVE','_socket','_lastPointer','_type','/block/','_tryEnsureSocket','toString','_textBubble','[FetchMissState]','gold400','Subject','ERROR_IMAGE','Error','currentSkeleton$','has','memberID','Inject','/fetchmissing?from=','isActive','_eventUnsubscribe','children','531378omaGHE','_sessions','parseProtocolChangeset','_retryCount','InsertColCommandId','retryConnectingInterval','unit-cache-','on-line-single','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','unit','getCurrentUnitForType','_messageService','@univerjs/ui','create','_labelPosition','getCollabEntity$','NOT_COLLAB','_undoRedoService','measureText','UniverUi','params','roomMembers','currentTheme$','onTransformSelections','getRelativeToViewportCoord','currentColor','compose','_redoStacks','liveShareOperation','_initEventListeners','_startTelemetryCollaborationNewChangeset','OffLineSingle','LOGIN_URL_KEY','localeService','UniverCollaboration','unitId\x20is\x20not\x20found','_pendingMutations','_changesetSessionId','_event$','/-/object/-/batch_allowed','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_cursor','onMissedChangesetFetched','saveOfflineData','_range','generateRandomId','DependentOn','_onCursorDelete','propertyIsEnumerable','awaiting','react','_createInitialState','_startSheetCollabCursor','ALREADY_EXISTS','\x20in\x20_schedule.','LocaleService','sessionStatus$','mutations','onlineStatusIcon','exhaustSavingTask','apply','submit\x20changeset\x20error!','getSheetBySheetId','_waitForHeartbeatResponse','getCurrentUser','target','toRgbString','@univerjs/sheets','addImageSourceCache','UniverTelemetry','shareReplay','_saveTaskMap','setAlpha','withCredentials','HttpImport','putCollaborators','resize','fromEventSubject','CollaborationController','doc.mutation.rich-text-editing','@univerjs/network','_sheetTransformSelectionsService','PERMISSION_DENIED','LIVESHARE_REQUEST_HOST','getCurrentSelections','fetchThroughInterceptors','_syncEditingCollabCursorService','session.connection-failed','textEncoder','object','stopTime','_listenToOnlineEvent','enableSingleActiveInstanceLock','_revisionService','_rescheduleHeartbeat','session.will-retry','hasOwnProperty','filter','@univerjs/design','init','{fileID}','_executeRemoteChangeset','_roomMembers','_onFetchMissResult','_timeoutTimer','toggleOnline','collab-text-range-','SYNCED','authzUrl','sendChangesetTimeout','_removeClearOtherTimer','UNIVER_SLIDE','bind','useDependency','switchMap','IContextService','getUnitOnRev','conflict','updatePermissionPoint','getValue','createElement','debug','_assignedColors','put','none','symbol','onTransformIME','_toggleOnline','workbook','EmptyMutation','confirm','_loadDoc','transformByState','pauseCollaboration','getActiveRange','AWAITING_WITH_PENDING','svg','_isPermissionRej','_tryReconnect','_getUploadFileURL','objectID','/universer-api/snapshot/','use','getViewport','actions','image/jpeg','now','LICENSE_DISTRO_REJECTED','selection','getUnit','_submitChangeset','_collabCursorController','_updateURLWithCurrentState','/object/','onTransformChange$','_loadSheet','_renderManagerService','getCollabEntity','endRow','session.room-full','popstate','takeUntil','_singleActiveUnitService','9JBQPpJ','_scheduleCollaborationTimeoutTimer','extend','SEND_CHANGESET_TIMEOUT_KEY','joinRsp','result','column','/universer-api/file/{fileID}/sign-url','map','EXCHANGE_SIGN_URL_SERVER_URL_KEY','off-line-single','exports','BASE64','fromCollab','_transformUndoRedoStack','_initRequestHeader','onPointerLeave$','selections','change$','SnapshotServerOverHTTPService','transformMutation','fetchMiss','UniverCollaborationClient','_imageSourceCache','pushState','_joinRoom','requireSession','_members','CommentService','SetDocZoomRatioOperation','INVALID_ARGUMENT','_sendingTimer','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','fetching\x20missing\x20changesets\x20from\x20','_getScale','getOffsetConfig','roomInfos','_name','reverse','assignAColorForMemberID','&source=','onRendered','SetSelectionsOperation','b64DecodeUnicode','getCoordByCell','getResourcesRequest','collabStatus.conflict','onReady','eventID','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_initCloseConn','_scheduleSaving','socket\x20close','_roomMembers$','UniverDesign','setTimeout','save','evenodd','_snapshotService','_clearScheduledTask','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','set','NodePositionConvertToRectRange','getUnitType','data','?url=','url(#on-line-single_clip0_910_349)','pipe','setWaitCount','HEARTBEAT_INTERVAL_KEY','width','SetTextSelectionsOperation','...','_render','[DataLoaderController]','_onConflict','@univerjs-pro/collaboration','0\x200\x2017\x2016','APPLY_PERMISSION_DENIED','replaceState','getCurrentRevOfUnit','_initUnitPermissionChange','connection\x20error','createInstance','collaboration.single-unit.warning','_draw','online','_commentService','IUndoRedoService','fetch_missing','restore','random','setUndoRedoMutationParamsCache','_docSkeleton','values','event$','on-line-single_clip0_910_349','updateOfflineData','_onJoinRoomEvent','ACTIVE_UNIT_EVENT_CHANNEL','_localeService','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','_http','IUniverInstanceService','LOCAL_CACHE_INTERVAL_KEY','\x20to\x20','_hover','isTransformMutationsWithChangesetFailure','_collaborationController','getLatestCsReqIdBySid','ranges','_checkMissing','_updateState','getAttachHeader','newValue','_telemetryService','LIVESHARE_NEW_HOST','RegularPolygon','@univerjs/docs-ui','_online','/universer-api/authz','location','getSkeleton','fetchMissingChangesets','UNKNOWN_CMD','editing\x20status\x20changed\x20to','@univerjs/docs','ENSURE_SNAPSHOT_EXECUTION','objectActions','_applyRemoteChangeset','_clearUndo','duration','_removeRoom','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_transformPreviousActiveRange','_onOffline','conflict.content','_hovered','onMissingChangesets','_memberService','SUBMIT_CHANGESET','contains','setCurrentUser','bottom','_onCursorUpdate','docStateChange$','_onCombEvent','name','open$','_disabled','subunit','UNIVER_SHEET','HELLO','changesets','close$','_updateLocalCache','handleIRemoveCol','_userManagerService','sid','addObject','_transformUndoredo','FETCH_MISSING','[CollaborationSession]','_awaitingChangeset','_session','univerjs-icon\x20univerjs-icon-','updateCollaborator','_syncEditingCollabCursor','_httpService','saveChangeset','sheetID','_docTransformIMECacheService','distinctUntilChanged','hovered','offline','Rect','_handleJoinEvent','DeleteRangeMoveUpCommandId','setConfig','setShapeProps','_getSaveTimeout','CollaborationStatusDisplay','_setupBeforeClosingHandler','getCurrent','_createSocket','rxjs','univer-pro.collaboration-client.single-active-unit-service','next','OFFLINE','@univerjs/drawing','_candidateSocket','/rev/','collabCursorState$','_permissionService','RxDisposable','top','_retryConnectingTimer','reduce','@univerjs/core','getInterceptPoints','_transformIMECache','CHANGESET_REJ','interceptor','_compressMutationService','auth.needGotoLoginAlert','_refRangeService','_handleHeartbeatEvent','_configService','getMergeData','_initResize','UNIVER_PROJECT','_ws','Disposable','_getSendChangesetTimeout','WorkbookEditablePermission','unitID','stringify','_sendHeartbeatTimer','tag','registerBeforeClose','setActiveRange','href','[OfflineState]:\x20received\x20acknowledgement.','IMessageService','unknown','DisposableCollection','/resources','encodeURIComponent','title','_createHandler','_transformRemoteChangesetByIMECache','pending','_scheduleHeartbeat','onRemoteAck','ILogService','Unknown\x20user','_handleLeaveEvent','YUUMI_URL_COL_OUT_OF_RANGE','jiqing500','Univer','ColorKit','getConfig','max','_send','textRanges','then','IConfigService','fromEvent','handleDeleteRangeMoveUp','disableLocalCache','pluginName','RichTextEditingMutation','touchDependencies','displayName','enableOfflineEditing','sessionStatus','onCommandExecuted','triggerDblclick','transformIMECache','_getCurrentRevision','_collaborationTimeoutTimer','useCallback','send','HEADER_MENU','_socketReady','UserManagerService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','objects','UPDATE_CURSOR','_collabCursorState$','startColumn','PSEUDO_FETCH_MISSING_RESULT','onStarting','_handler','MUTATION','transformRemoteChangeset','VIEW_MAIN','_getRedoStack','_scene','setItem','_onLocalMutation','SetWorksheetActivateCommand','CommandType','_state','DEFAULT_FILE_NAME','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','fillStyle','DocSkeletonManagerService','useObservable','getDocRanges','_socketMessageSubscription','font','toDisposable','status$','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[CollaborationState]:\x20apply\x20error!','HEARTBEAT_TIMEOUT','type','2194400wPXsdq','createIdentifier','toLowerCase','DataLoaderController','executeCommand','MoveRangeCommandId','newCsEvent','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','ImageIoService','_initStatusComponent','@univerjs/rpc','randomUUID','RemoveRowCommandId','_sheetSkeletonManagerService','SessionStatus','_acknowledgedAwaitingChangeset','function','_onRemoteACK','getMemberID','hidden','disposeWithMe','readAsDataURL','UniverCollaborationClientPlugin','_ensureSubject','IURLService','_colorAssignService','/new_changes','isArray','onRemoteChangeset','liveShareNewHost','resourceIDs','slice','DocSelectionManagerService','dispose','_transitionLocked','isTransformChangesetsSuccess','NEW_CHANGESETS','_unlockTransition','RevisionService','_fetchMissChangesets','getUndoRedoMutationParamsCache','_init','_getAnchorBounding','updatePermissionObjEvent','\x20-\x20','some','OnLineSingle','getSheetBlock','catch','image/gif','entries','_transformStack','[OfflineState]:\x20received\x20rejection.','ITransformService','getOwnPropertyDescriptor','_collabSessionService','useRef','InsertRangeMoveRightCommandId','UNIVER_COLLABORATION_CLIENT_PLUGIN','LocalCacheService','_context','CHANGESET_REVISION_CONFILICT','row','@univerjs/engine-render','CollaborationSocketService','idSuffix','[PendingState]:\x20received\x20rejection.','runRefRangeMutations','_getSignURL','COMPRESS_MUTATION_SEND','m1Prime','call','SheetCollaborationEntity','collaboratorID','_updateStatus','POST','841386ivTeaO','isTransformMutationsWithChangesetSuccess','requestParams','MSG_FOR_ERROR','UNDEFINED','[SyncedState]:\x20received\x20rejection.','_snapshotServerService','IAuthzIoService','resend','univer-pro.collaboration-client-socket-service','_id','SnapshotService','AUTHZ_URL_KEY','getItem','_lockTransition','current','_cursorShapes','HEARTBEAT','onlineStatusTitle','delete','IUIPartsService','indexOf','combineLatest','awaiting_with_pending','univer-online-status-title','ITelemetryService','loadSheet','UNKNOWN_CODE','_queuedRemoteChangesets','1338zZADED','_entities','ImageUploadStatusType','storage','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','getUniverSheetInstance','roomMembers$','whenReady','_telemetryInfo','getRoom','univer-online-status','_clearTimeoutTimer','_onRemoteRejected','OTHER_CLIENTS_EDITING','code','_docStateChangeManagerService','disposeUnit','urlChange$','transformMutationsWithChangeset','UniverDocs','#FFF','Plugin','height','list','MessageType','deserializeRangeWithSheet','mergeOverrideWithDependencies','collaboration_new_changeset','color','LICENSE_IMPORT_SIZE_EXCEEDED','joinEvent','_getMergeRange','AuthzIoHttpService','method','engine','startsWith','onPointerMove$','M0\x200H16V16H0z','SheetCollabCursorShape','_unitStatus','SHOULD_CLOSE_CONN','CollaborationEntity','ONLINE','_getLoginPath','state$','UniverEngineRender','_clearLocalCache','onTransformRemoteChangesetByIMECache','/-/object/list','reconnect','getSheetId','onlyLocal','ILocalStorageService','_drawTextRange','Tooltip','_schedule','encode','flatMap','awaitingChangeset','_startCollaboration','DocCollaborationEntity','1387664NCyxwq','defineProperty','LICENSE_MAX_UNITS_EXCEEDED','cmd','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_setupSubUnitSync','saveSnapshot','LIVESHARE_TERMINATE','_throwTelemetryCollaborationNewChangeset','collabStatus.fetchMiss','_onRecvEvent','_handleEvent'];_0x5581=function(){return _0x10a4d3;};return _0x5581();}function _0x2d25(_0xe26e1d,_0x14bae4){const _0x5581d8=_0x5581();return _0x2d25=function(_0x2d2585,_0x32236a){_0x2d2585=_0x2d2585-0x68;let _0x20131a=_0x5581d8[_0x2d2585];return _0x20131a;},_0x2d25(_0xe26e1d,_0x14bae4);}(function(_0x3fa6a2,_0x5ed810){const _0x1aceab=_0x2d25,_0x73d6b6=_0x3fa6a2();while(!![]){try{const _0x2a8a8b=-parseInt(_0x1aceab(0x170))/0x1+-parseInt(_0x1aceab(0x389))/0x2+-parseInt(_0x1aceab(0x46b))/0x3*(-parseInt(_0x1aceab(0x45e))/0x4)+-parseInt(_0x1aceab(0xd7))/0x5*(-parseInt(_0x1aceab(0x3a6))/0x6)+parseInt(_0x1aceab(0x4a0))/0x7+parseInt(_0x1aceab(0x3e3))/0x8*(-parseInt(_0x1aceab(0x213))/0x9)+parseInt(_0x1aceab(0x33d))/0xa;if(_0x2a8a8b===_0x5ed810)break;else _0x73d6b6['push'](_0x73d6b6['shift']());}catch(_0x2c2188){_0x73d6b6['push'](_0x73d6b6['shift']());}}}(_0x5581,0x70760),function(_0x508118,_0x5d0095){const _0x5b92fd=_0x2d25;typeof exports==_0x5b92fd(0x1c9)&&typeof module<'u'?_0x5d0095(exports,require(_0x5b92fd(0x2d9)),require(_0x5b92fd(0x2cc)),require(_0x5b92fd(0x476)),require(_0x5b92fd(0x1d2)),require('@univerjs/ui'),require(_0x5b92fd(0x1c0)),require(_0x5b92fd(0x25f)),require('@univerjs/telemetry'),require(_0x5b92fd(0x289)),require(_0x5b92fd(0x1b3)),require('@univerjs/engine-render'),require(_0x5b92fd(0x291)),require(_0x5b92fd(0x2d0)),require(_0x5b92fd(0x495)),require('@univerjs/sheets-ui'),require(_0x5b92fd(0x1a2)),require(_0x5b92fd(0x347)),require(_0x5b92fd(0xee))):typeof define==_0x5b92fd(0x34d)&&define[_0x5b92fd(0xc7)]?define([_0x5b92fd(0x21e),'@univerjs/core','rxjs',_0x5b92fd(0x476),'@univerjs/design',_0x5b92fd(0x17c),_0x5b92fd(0x1c0),_0x5b92fd(0x25f),_0x5b92fd(0xd0),_0x5b92fd(0x289),_0x5b92fd(0x1b3),_0x5b92fd(0x37c),_0x5b92fd(0x291),_0x5b92fd(0x2d0),_0x5b92fd(0x495),_0x5b92fd(0x435),'react',_0x5b92fd(0x347),'@univerjs-pro/license'],_0x5d0095):(_0x508118=typeof globalThis<'u'?globalThis:_0x508118||self,_0x5d0095(_0x508118[_0x5b92fd(0x229)]={},_0x508118['UniverCore'],_0x508118[_0x5b92fd(0x2cc)],_0x508118[_0x5b92fd(0x2cc)][_0x5b92fd(0x404)],_0x508118[_0x5b92fd(0x249)],_0x508118[_0x5b92fd(0x183)],_0x508118[_0x5b92fd(0x486)],_0x508118[_0x5b92fd(0x192)],_0x508118[_0x5b92fd(0x1b5)],_0x508118['UniverDocsUi'],_0x508118[_0x5b92fd(0xb0)],_0x508118[_0x5b92fd(0x3d3)],_0x508118[_0x5b92fd(0x3b9)],_0x508118[_0x5b92fd(0x124)],_0x508118['UniverEngineFormula'],_0x508118[_0x5b92fd(0x4a7)],_0x508118['React'],_0x508118['UniverRpc'],_0x508118['UniverLicense']));}(this,function(_0x594fe1,_0x2c7fed,_0x1fc547,_0x2eca2e,_0x4d689c,_0x4b403d,_0x4893ce,_0x2856d7,_0x15ef2d,_0x21cef1,_0x244249,_0x180dc9,_0x7ac583,_0x48fa70,_0x172d10,_0x3f13ec,_0x18f464,_0x214b0d,_0x3cd408){'use strict';const _0x291ba3=_0x2d25;var _0x215d66=Object[_0x291ba3(0x3e4)],_0x412f35=(_0x13200a,_0x51bbca,_0x581086)=>_0x51bbca in _0x13200a?_0x215d66(_0x13200a,_0x51bbca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x581086}):_0x13200a[_0x51bbca]=_0x581086,_0x24cbc7=(_0x4469c5,_0x2ba6da,_0x30809e)=>_0x412f35(_0x4469c5,typeof _0x2ba6da!=_0x291ba3(0x1ed)?_0x2ba6da+'':_0x2ba6da,_0x30809e);const _0x2e8c6c='SNAPSHOT_SERVER_URL_KEY',_0x5dad33='/universer-api/snapshot',_0x5615fb=_0x291ba3(0x424),_0xf30628=_0x291ba3(0x10a),_0x8abbe0='COLLAB_WEB_SOCKET_URL',_0x30eb17='ws://127.0.0.1:8000/universer-api/comb/connect',_0x16f4d4='HEARTBEAT_INTERVAL',_0x56c1a7=_0x291ba3(0x33b),_0x42be50='RETRY_CONNECTING_MAX_COUNT',_0x3085a4='LOCAL_CACHE_INTERVAL',_0x16814e=_0x291ba3(0x429),_0x7001e1='/universer-api/comb',_0x52fcac='LOGIN_URL_KEY',_0x18b7b1='/universer-api/oidc/authpage';var _0x2bbf52=(_0x3695ae=>(_0x3695ae[_0x3695ae[_0x291ba3(0x38d)]=0x0]='UNDEFINED',_0x3695ae[_0x3695ae['OK']=0x1]='OK',_0x3695ae[_0x3695ae['INTERNAL_ERROR']=0x2]=_0x291ba3(0x136),_0x3695ae[_0x3695ae[_0x291ba3(0x1c2)]=0x3]=_0x291ba3(0x1c2),_0x3695ae[_0x3695ae[_0x291ba3(0x445)]=0x4]=_0x291ba3(0x445),_0x3695ae[_0x3695ae['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x3695ae[_0x3695ae[_0x291ba3(0x1a5)]=0x6]=_0x291ba3(0x1a5),_0x3695ae[_0x3695ae[_0x291ba3(0x231)]=0x7]=_0x291ba3(0x231),_0x3695ae[_0x3695ae['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x3695ae[_0x3695ae[_0x291ba3(0x11f)]=0x9]=_0x291ba3(0x11f),_0x3695ae[_0x3695ae[_0x291ba3(0x37a)]=0x1389]=_0x291ba3(0x37a),_0x3695ae[_0x3695ae['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x3695ae[_0x3695ae['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x291ba3(0xc1),_0x3695ae[_0x3695ae['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x291ba3(0x292),_0x3695ae[_0x3695ae['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x3695ae[_0x3695ae[_0x291ba3(0x49f)]=0x1b5a]=_0x291ba3(0x49f),_0x3695ae[_0x3695ae[_0x291ba3(0x138)]=0x1b5b]=_0x291ba3(0x138),_0x3695ae[_0x3695ae['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x291ba3(0x261),_0x3695ae[_0x3695ae[_0x291ba3(0xd2)]=0x1b5d]=_0x291ba3(0xd2),_0x3695ae[_0x3695ae['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x291ba3(0x142),_0x3695ae[_0x3695ae[_0x291ba3(0x3e5)]=0x2329]=_0x291ba3(0x3e5),_0x3695ae[_0x3695ae[_0x291ba3(0x244)]=0x232a]=_0x291ba3(0x244),_0x3695ae[_0x3695ae[_0x291ba3(0x3c3)]=0x232b]=_0x291ba3(0x3c3),_0x3695ae[_0x3695ae['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x291ba3(0x13a),_0x3695ae[_0x3695ae[_0x291ba3(0x203)]=0x232d]=_0x291ba3(0x203),_0x3695ae[_0x3695ae[_0x291ba3(0x405)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x3695ae[_0x3695ae[_0x291ba3(0x300)]=0x2712]=_0x291ba3(0x300),_0x3695ae[_0x3695ae['YUUMI_RATE_OVER_LIMIT']=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x3695ae[_0x3695ae[_0x291ba3(0x413)]=0x2714]=_0x291ba3(0x413),_0x3695ae[_0x3695ae[_0x291ba3(0x7b)]=-0x1]=_0x291ba3(0x7b),_0x3695ae))(_0x2bbf52||{}),_0x4cd70d=(_0x2fb581=>(_0x2fb581[_0x2fb581[_0x291ba3(0x8c)]=0x0]=_0x291ba3(0x8c),_0x2fb581[_0x2fb581[_0x291ba3(0x130)]=0x1]='UNIVER_DOC',_0x2fb581[_0x2fb581[_0x291ba3(0x2aa)]=0x2]=_0x291ba3(0x2aa),_0x2fb581[_0x2fb581['UNIVER_SLIDE']=0x3]=_0x291ba3(0x1df),_0x2fb581[_0x2fb581[_0x291ba3(0x2e5)]=0x4]=_0x291ba3(0x2e5),_0x2fb581[_0x2fb581[_0x291ba3(0x7b)]=-0x1]=_0x291ba3(0x7b),_0x2fb581))(_0x4cd70d||{}),_0x153a81=(_0x2a9b05=>(_0x2a9b05[_0x2a9b05[_0x291ba3(0x28f)]=0x0]=_0x291ba3(0x28f),_0x2a9b05[_0x2a9b05[_0x291ba3(0x2ab)]=0x1]=_0x291ba3(0x2ab),_0x2a9b05[_0x2a9b05[_0x291ba3(0x41a)]=0x2]='JOIN',_0x2a9b05[_0x2a9b05[_0x291ba3(0x15b)]=0x3]=_0x291ba3(0x15b),_0x2a9b05[_0x2a9b05[_0x291ba3(0xe8)]=0x4]=_0x291ba3(0xe8),_0x2a9b05[_0x2a9b05[_0x291ba3(0x39a)]=0x5]='HEARTBEAT',_0x2a9b05[_0x2a9b05[_0x291ba3(0x40a)]=0x6]=_0x291ba3(0x40a),_0x2a9b05[_0x2a9b05[_0x291ba3(0x7b)]=-0x1]=_0x291ba3(0x7b),_0x2a9b05))(_0x153a81||{}),_0xb7a022=(_0x360f39=>(_0x360f39[_0x360f39[_0x291ba3(0x3a4)]=0x0]='UNKNOWN_CODE',_0x360f39[_0x360f39['OK']=0x1]='OK',_0x360f39[_0x360f39[_0x291ba3(0xaf)]=0x2]=_0x291ba3(0xaf),_0x360f39[_0x360f39[_0x291ba3(0x7b)]=-0x1]=_0x291ba3(0x7b),_0x360f39))(_0xb7a022||{}),_0x1c10fa=(_0x26a863=>(_0x26a863[_0x26a863['Undefined']=0x0]=_0x291ba3(0x406),_0x26a863[_0x26a863['HttpImport']=0x1]=_0x291ba3(0x1ba),_0x26a863[_0x26a863[_0x291ba3(0x11c)]=0x2]='HttpExport',_0x26a863[_0x26a863[_0x291ba3(0x475)]=0x3]=_0x291ba3(0x475),_0x26a863[_0x26a863['UnitSnapshot']=0x4]='UnitSnapshot',_0x26a863[_0x26a863[_0x291ba3(0x7b)]=-0x1]=_0x291ba3(0x7b),_0x26a863))(_0x1c10fa||{});const _0x229401=_0x291ba3(0x117),_0x357162={};function _0xd87005(_0x55e76e){const _0xa343fa=_0x291ba3;var _0x575db1,_0x1dfb69,_0x97ae0f,_0x2ef5d7;const _0x3f0c17=_0x55e76e[_0xa343fa(0x253)],_0x3edb54=JSON['parse'](_0x3f0c17);switch(_0x3edb54[_0xa343fa(0x3e6)]){case _0x153a81[_0xa343fa(0x39a)]:case _0x153a81['HELLO']:{const _0x3d4d04=_0x3edb54['infoRsp'];return{..._0x3edb54,'data':_0x3d4d04,'cmd':_0x3edb54[_0xa343fa(0x3e6)]};}case _0x153a81[_0xa343fa(0x41a)]:{const _0x4ebb5f=_0x3edb54[_0xa343fa(0x217)];return{..._0x3edb54,'data':_0x4ebb5f,'cmd':_0x3edb54['cmd']};}case _0x153a81[_0xa343fa(0x40a)]:{const _0x470201=_0x3edb54['collaMsg'];switch(_0x470201[_0xa343fa(0x243)]){case _0x2856d7[_0xa343fa(0x93)][_0xa343fa(0x474)]:return{..._0x3edb54,'data':{..._0x470201,'data':(_0x575db1=_0x470201[_0xa343fa(0x441)])==null?void 0x0:_0x575db1['cs']},'cmd':_0x3edb54['cmd']};case _0x2856d7[_0xa343fa(0x93)][_0xa343fa(0x402)]:return{..._0x3edb54,'data':{..._0x470201,'data':(_0x1dfb69=_0x470201[_0xa343fa(0x456)])==null?void 0x0:_0x1dfb69['cs']},'cmd':_0x3edb54['cmd']};case _0x2856d7['CollaborationEvent']['NEW_CHANGESETS']:return{..._0x3edb54,'data':{..._0x470201,'data':(_0x97ae0f=_0x470201[_0xa343fa(0x343)])==null?void 0x0:_0x97ae0f['cs']},'cmd':_0x3edb54[_0xa343fa(0x3e6)]};case _0x2856d7[_0xa343fa(0x93)][_0xa343fa(0x2dc)]:return{..._0x3edb54,'data':{..._0x470201,'data':(_0x2ef5d7=_0x470201['csRejEvent'])==null?void 0x0:_0x2ef5d7['cs']},'cmd':_0x3edb54['cmd']};case _0x2856d7['CollaborationEvent'][_0xa343fa(0x31f)]:return{..._0x3edb54,'data':{..._0x470201,'data':_0x470201[_0xa343fa(0x41b)]},'cmd':_0x3edb54['cmd']};case _0x2856d7[_0xa343fa(0x93)][_0xa343fa(0x3ff)]:return{..._0x3edb54,'data':{..._0x470201,'data':_0x470201[_0xa343fa(0x3c4)]},'cmd':_0x3edb54[_0xa343fa(0x3e6)]};case _0x2856d7[_0xa343fa(0x93)]['USERS_LEAVE']:return{..._0x3edb54,'data':{..._0x470201,'data':_0x470201['leaveEvent']},'cmd':_0x3edb54['cmd']};case _0x2856d7['CollaborationEvent'][_0xa343fa(0x287)]:return{..._0x3edb54,'data':{..._0x470201,'data':_0x470201[_0xa343fa(0x35a)]},'cmd':_0x3edb54[_0xa343fa(0x3e6)]};case _0x2856d7[_0xa343fa(0x93)][_0xa343fa(0x439)]:case _0x2856d7[_0xa343fa(0x93)][_0xa343fa(0xac)]:return{..._0x3edb54,'data':{..._0x470201,'data':_0x470201[_0xa343fa(0x18c)]},'cmd':_0x3edb54['cmd']};case _0x2856d7[_0xa343fa(0x93)][_0xa343fa(0x3ea)]:return{..._0x3edb54,'data':{..._0x470201,'data':_0x470201[_0xa343fa(0x35a)]},'cmd':_0x3edb54[_0xa343fa(0x3e6)]};case _0x2856d7[_0xa343fa(0x93)][_0xa343fa(0x38c)]:return{..._0x3edb54,'data':_0x470201,'cmd':_0x3edb54[_0xa343fa(0x3e6)]};case _0x2856d7['CollaborationEvent'][_0xa343fa(0x14a)]:return{..._0x3edb54,'data':{..._0x470201,'data':_0x470201[_0xa343fa(0xe2)]},'cmd':_0x3edb54[_0xa343fa(0x3e6)]};case _0x2856d7[_0xa343fa(0x93)][_0xa343fa(0xbf)]:return{..._0x3edb54,'data':{..._0x470201,'data':_0x470201[_0xa343fa(0x368)]},'cmd':_0x3edb54['cmd']};case _0x2856d7[_0xa343fa(0x93)][_0xa343fa(0x3ce)]:return{..._0x3edb54,'data':{..._0x470201,'data':_0x470201[_0xa343fa(0x14e)]},'cmd':_0x3edb54[_0xa343fa(0x3e6)]};default:return _0x3edb54;}}default:return _0x3edb54;}}function _0x8a6853(_0x170204){const _0x2f18bc=_0x291ba3;switch(_0x170204[_0x2f18bc(0x3e6)]){case _0x153a81[_0x2f18bc(0x39a)]:case _0x153a81['HELLO']:return JSON[_0x2f18bc(0x2eb)]({'cmd':_0x170204['cmd'],'routeKey':_0x170204['routeKey']});case _0x153a81[_0x2f18bc(0xe8)]:{let _0x484327;switch(_0x170204[_0x2f18bc(0x253)]['eventID']){case _0x2856d7[_0x2f18bc(0x93)]['UPDATE_CURSOR']:{_0x484327={'eventID':_0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0x31f)],'updateCursorEvent':_0x170204[_0x2f18bc(0x253)][_0x2f18bc(0x253)]};break;}case _0x2856d7['CollaborationEvent'][_0x2f18bc(0x408)]:{_0x484327={'eventID':_0x2856d7['CollaborationEvent']['USERS_LEAVE'],'leaveEvent':_0x170204[_0x2f18bc(0x253)][_0x2f18bc(0x253)]};break;}case _0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0x3ff)]:{_0x484327={'eventID':_0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0x3ff)],'joinEvent':_0x170204[_0x2f18bc(0x253)][_0x2f18bc(0x253)]};break;}case _0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0x287)]:{_0x484327={'eventID':_0x2856d7['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x170204[_0x2f18bc(0x253)][_0x2f18bc(0x253)]};break;}case _0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0xac)]:{_0x484327={'eventID':_0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0xac)],'liveShareOperation':_0x170204[_0x2f18bc(0x253)][_0x2f18bc(0x253)]};break;}case _0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0x3ea)]:{_0x484327={'eventID':_0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0x3ea)],'liveShareTerminate':_0x170204[_0x2f18bc(0x253)][_0x2f18bc(0x253)]};break;}case _0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0x1c3)]:{_0x484327={'eventID':_0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0x1c3)],'liveShareRequestHost':_0x170204['data'][_0x2f18bc(0x253)]};break;}case _0x2856d7[_0x2f18bc(0x93)][_0x2f18bc(0x439)]:{_0x484327={'eventID':_0x2856d7['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x484327={'eventID':_0x170204[_0x2f18bc(0x253)][_0x2f18bc(0x243)]};}return JSON[_0x2f18bc(0x2eb)]({'cmd':_0x170204[_0x2f18bc(0x3e6)],'routeKey':_0x170204[_0x2f18bc(0x48c)],'collaMsg':_0x484327});}case _0x153a81['JOIN']:return JSON[_0x2f18bc(0x2eb)]({'cmd':_0x170204[_0x2f18bc(0x3e6)],'routeKey':_0x170204[_0x2f18bc(0x48c)],'joinReq':_0x170204['data']});case _0x153a81[_0x2f18bc(0x15b)]:return JSON[_0x2f18bc(0x2eb)]({'cmd':_0x170204['cmd'],'routeKey':_0x170204[_0x2f18bc(0x48c)],'leaveReq':_0x170204[_0x2f18bc(0x253)]});default:throw new Error(_0x2f18bc(0x9b));}}var _0x40b90e=Object[_0x291ba3(0x3e4)],_0x50755b=Object[_0x291ba3(0x373)],_0x70ba07=(_0x1f13e2,_0x33cdcf,_0x48e4db,_0x4aabe8)=>{const _0x5ecb4b=_0x291ba3;for(var _0x39fac6=_0x4aabe8>0x1?void 0x0:_0x4aabe8?_0x50755b(_0x33cdcf,_0x48e4db):_0x33cdcf,_0x367e47=_0x1f13e2[_0x5ecb4b(0xbb)]-0x1,_0x1ba9ba;_0x367e47>=0x0;_0x367e47--)(_0x1ba9ba=_0x1f13e2[_0x367e47])&&(_0x39fac6=(_0x4aabe8?_0x1ba9ba(_0x33cdcf,_0x48e4db,_0x39fac6):_0x1ba9ba(_0x39fac6))||_0x39fac6);return _0x4aabe8&&_0x39fac6&&_0x40b90e(_0x33cdcf,_0x48e4db,_0x39fac6),_0x39fac6;},_0x2ca0b1=(_0x52f114,_0x26ef2b)=>(_0x2659f9,_0x3ecfb4)=>_0x26ef2b(_0x2659f9,_0x3ecfb4,_0x52f114);const _0x268546=_0x2c7fed[_0x291ba3(0x33e)](_0x291ba3(0x392));function _0x31d6b1(_0x52f470,_0x9c5ba0,_0x562ffc){const _0x43f2cf=_0x291ba3;return _0x52f470+'/'+_0x9c5ba0+'/unit/'+_0x562ffc+_0x43f2cf(0x357);}_0x594fe1[_0x291ba3(0x37d)]=class extends _0x2c7fed[_0x291ba3(0x2e7)]{constructor(_0x33b555,_0x4aaac9,_0x4448cc,_0x111e88,_0x34feb2){const _0x2c5d95=_0x291ba3;super(),this['_http']=_0x33b555,this[_0x2c5d95(0x2e6)]=_0x4aaac9,this[_0x2c5d95(0x2e2)]=_0x4448cc,this[_0x2c5d95(0x139)]=_0x111e88,this[_0x2c5d95(0x38f)]=_0x34feb2;}['createSocket'](_0x1020a9){const _0x48ae37=_0x291ba3,_0x123743=this[_0x48ae37(0x2e6)][_0x48ae37(0x455)](_0x1020a9);if(!_0x123743)throw new Error(_0x48ae37(0x80));const _0x1d4a9b=new _0x2c7fed[(_0x48ae37(0x2f4))](),_0x1989f9=new _0x1fc547[(_0x48ae37(0x165))]();_0x1d4a9b[_0x48ae37(0x8b)](_0x123743[_0x48ae37(0x2ad)][_0x48ae37(0x3f2)](_0x2268ec=>_0x1989f9[_0x48ae37(0x2ce)](_0x2268ec))),_0x1d4a9b['add'](_0x2c7fed['toDisposable'](()=>_0x1989f9[_0x48ae37(0x420)]()));const _0x40212c=new _0x1fc547[(_0x48ae37(0x165))]();_0x1d4a9b[_0x48ae37(0x8b)](_0x123743[_0x48ae37(0x464)]['subscribe'](_0x2ba614=>_0x40212c[_0x48ae37(0x2ce)](_0x2ba614))),_0x1d4a9b[_0x48ae37(0x8b)](_0x2c7fed[_0x48ae37(0x337)](()=>_0x40212c[_0x48ae37(0x420)]()));const _0xa0c637=new _0x1fc547[(_0x48ae37(0x165))]();_0x1d4a9b[_0x48ae37(0x8b)](_0x123743[_0x48ae37(0x113)][_0x48ae37(0x3f2)](_0xca01c0=>{const _0x36c937=_0x48ae37,_0xeb208=_0xd87005(_0xca01c0);_0xa0c637[_0x36c937(0x2ce)](_0xeb208);})),_0x1d4a9b[_0x48ae37(0x8b)](_0x2c7fed[_0x48ae37(0x337)](()=>_0xa0c637[_0x48ae37(0x420)]()));let _0x25d2bb;const _0x187a88=()=>{const _0xca204f=_0x48ae37;_0x40212c['next'](new Event(_0xca204f(0x265))),_0x1989f9[_0xca204f(0x2ce)](new CloseEvent(_0xca204f(0x265))),_0x25d2bb[_0xca204f(0x3f5)]();};return _0x25d2bb={'memberID':'','close$':_0x1989f9[_0x48ae37(0x442)](),'error$':_0x40212c[_0x48ae37(0x442)](),'open$':_0x123743[_0x48ae37(0x2a7)],'message$':_0xa0c637[_0x48ae37(0x442)](),'send':_0x4d9e18=>{const _0x328f32=_0x48ae37;if(_0x4d9e18[_0x328f32(0x3e6)]===_0x153a81[_0x328f32(0xe8)]){if(_0x4d9e18[_0x328f32(0x253)][_0x328f32(0x243)]===_0x2856d7[_0x328f32(0x93)][_0x328f32(0x29f)]){this[_0x328f32(0x206)](_0x25d2bb,_0x4d9e18[_0x328f32(0x253)])[_0x328f32(0x36d)](_0x3edace=>{const _0x2f7691=_0x328f32;this['_logService'][_0x2f7691(0x41d)](_0x3edace),_0x187a88();});return;}if(_0x4d9e18[_0x328f32(0x253)][_0x328f32(0x243)]===_0x2856d7[_0x328f32(0x93)]['FETCH_MISSING']){const _0x5c9521=_0x4d9e18[_0x328f32(0x253)];this[_0x328f32(0x364)](_0x5c9521)[_0x328f32(0x308)](_0x19890c=>{const _0x4bee1a=_0x328f32;_0xa0c637[_0x4bee1a(0x2ce)]({'cmd':_0x153a81[_0x4bee1a(0x40a)],'code':_0xb7a022['OK'],'routeKey':_0x5c9521['data']['unitID'],'routeType':'','data':{'eventID':_0x2856d7['CollaborationEvent'][_0x4bee1a(0x322)],'data':{'changesets':_0x19890c}}});})[_0x328f32(0x36d)](_0x411704=>{const _0x1ac132=_0x328f32;this[_0x1ac132(0x139)]['error'](_0x411704),_0x187a88();});return;}}_0x123743['send'](_0x8a6853(_0x4d9e18));},'close':()=>{_0x123743['close'](),_0x1d4a9b['dispose']();}},_0x25d2bb;}async[_0x291ba3(0x206)](_0x140e6d,_0x45c5c4){const _0x1a26cd=_0x291ba3;var _0x4eba44,_0x291b81;const {unitType:_0x3ceecf,unitID:_0x34b315,changeset:_0x298954}=_0x45c5c4[_0x1a26cd(0x253)],_0x346887={'unitID':_0x34b315,'memberID':_0x140e6d['memberID'],'type':_0x3ceecf,'changeset':_0x2856d7['parseChangesetToProtocol'](_0x298954)},_0x2a82a7=this[_0x1a26cd(0x2e2)][_0x1a26cd(0x304)](_0x16814e),_0xf7ec4e=this[_0x1a26cd(0x2e2)][_0x1a26cd(0x304)](_0x229401),_0x24b3d7=_0x31d6b1((_0x291b81=(_0x4eba44=_0xf7ec4e==null?void 0x0:_0xf7ec4e['collabSubmitChangesetUrl'])!=null?_0x4eba44:_0x2a82a7)!=null?_0x291b81:_0x7001e1,_0x3ceecf,_0x34b315);try{await this[_0x1a26cd(0x279)][_0x1a26cd(0x4a6)](_0x24b3d7,{'body':_0x346887});}catch(_0x1c2c52){throw this[_0x1a26cd(0x139)]['error']('[CollaborationSession]',_0x1a26cd(0x1ad)),_0x1c2c52;}}async[_0x291ba3(0x364)](_0x2b0db0){const _0x5535e8=_0x291ba3,{unitID:_0xaf04ca,from:_0x2dde98,to:_0x4bcbad,unitType:_0x20a425}=_0x2b0db0[_0x5535e8(0x253)];return(await this['_snapshotServerService'][_0x5535e8(0x28e)]({'metadata':void 0x0},{'unitID':_0xaf04ca,'type':_0x20a425,'from':_0x2dde98,'to':_0x4bcbad}))[_0x5535e8(0x2ac)];}},_0x594fe1[_0x291ba3(0x37d)]=_0x70ba07([_0x2ca0b1(0x0,_0x2c7fed['Inject'](_0x4893ce[_0x291ba3(0x99)])),_0x2ca0b1(0x1,_0x2c7fed[_0x291ba3(0x16b)](_0x4893ce[_0x291ba3(0xf6)])),_0x2ca0b1(0x2,_0x2c7fed[_0x291ba3(0x309)]),_0x2ca0b1(0x3,_0x2c7fed['ILogService']),_0x2ca0b1(0x4,_0x2856d7[_0x291ba3(0xe6)])],_0x594fe1[_0x291ba3(0x37d)]);const _0x447475=_0x291ba3(0x3c1);function _0x11e35a(_0x34b605){const _0x1d0d2a=_0x291ba3;return JSON['stringify'](_0x34b605)[_0x1d0d2a(0xbb)];}class _0x1ab0de{constructor(){const _0x3d3345=_0x291ba3;_0x24cbc7(this,_0x3d3345(0x7e),new _0x1fc547[(_0x3d3345(0x165))]()),_0x24cbc7(this,'commentUpdate$',this[_0x3d3345(0x7e)]['asObservable']());}[_0x291ba3(0x7c)](_0x113af5){const _0xa4e03d=_0x291ba3;this[_0xa4e03d(0x7e)][_0xa4e03d(0x2ce)](_0x113af5);}}var _0x27ba10=Object[_0x291ba3(0x3e4)],_0xed637d=Object[_0x291ba3(0x373)],_0x4bacb4=(_0x2f7940,_0x19ec8b,_0x2c15e5,_0x375ca2)=>{for(var _0x3a122d=_0x375ca2>0x1?void 0x0:_0x375ca2?_0xed637d(_0x19ec8b,_0x2c15e5):_0x19ec8b,_0x4c87f5=_0x2f7940['length']-0x1,_0x1a4650;_0x4c87f5>=0x0;_0x4c87f5--)(_0x1a4650=_0x2f7940[_0x4c87f5])&&(_0x3a122d=(_0x375ca2?_0x1a4650(_0x19ec8b,_0x2c15e5,_0x3a122d):_0x1a4650(_0x3a122d))||_0x3a122d);return _0x375ca2&&_0x3a122d&&_0x27ba10(_0x19ec8b,_0x2c15e5,_0x3a122d),_0x3a122d;},_0x45a087=(_0x2b0ec9,_0x2eda3b)=>(_0xc13a8,_0xf6646a)=>_0x2eda3b(_0xc13a8,_0xf6646a,_0x2b0ec9);let _0x4d411d=class extends _0x2c7fed['Disposable']{constructor(_0x1d3508,_0xfc2339){const _0x3afb10=_0x291ba3;super(),_0x24cbc7(this,'_roomMembers',new Map()),(this['_univerInstanceService']=_0x1d3508,this[_0x3afb10(0x2b0)]=_0xfc2339,this[_0x3afb10(0x351)](_0x2c7fed['toDisposable'](_0x1fc547[_0x3afb10(0x94)](this[_0x3afb10(0x79)][_0x3afb10(0xc6)](_0x2c7fed[_0x3afb10(0xcb)][_0x3afb10(0x2aa)])[_0x3afb10(0x256)](_0x2eca2e[_0x3afb10(0x21b)](_0x43f1d1=>_0x43f1d1[_0x3afb10(0x11d)]())),this['_univerInstanceService'][_0x3afb10(0xc6)](_0x2c7fed['UniverInstanceType'][_0x3afb10(0x130)])['pipe'](_0x2eca2e[_0x3afb10(0x21b)](_0x25793d=>_0x25793d[_0x3afb10(0x11d)]())),this['_univerInstanceService'][_0x3afb10(0xc6)](_0x2c7fed[_0x3afb10(0xcb)]['UNIVER_SLIDE'])['pipe'](_0x2eca2e[_0x3afb10(0x21b)](_0x12e08d=>_0x12e08d[_0x3afb10(0x11d)]())))[_0x3afb10(0x3f2)](_0x2d13b8=>this[_0x3afb10(0x297)](_0x2d13b8)))));}[_0x291ba3(0x2a1)](_0x215ed3){const _0x229f7e=_0x291ba3;this[_0x229f7e(0x2b0)][_0x229f7e(0x2a1)](_0x215ed3);}[_0x291ba3(0x1b0)](){const _0x16a4ee=_0x291ba3;return this[_0x16a4ee(0x2b0)]['getCurrentUser']();}['updateMember'](_0x7b86ef,_0x976c2c){const _0x525218=_0x291ba3;let _0x3b973c=this[_0x525218(0x1d6)][_0x525218(0x400)](_0x7b86ef);_0x3b973c||(_0x3b973c=new _0x31de47(),this[_0x525218(0x1d6)][_0x525218(0x250)](_0x7b86ef,_0x3b973c)),_0x3b973c[_0x525218(0x83)](_0x976c2c);}[_0x291ba3(0x6b)](_0x46c1f0,_0x333ca4){const _0x142279=_0x291ba3,_0x3b47b0=this['_roomMembers']['get'](_0x46c1f0);_0x3b47b0&&_0x3b47b0[_0x142279(0x6b)](_0x333ca4);}[_0x291ba3(0x3af)](_0x291cf6){const _0x4c157a=_0x291ba3;return this[_0x4c157a(0x1d6)]['get'](_0x291cf6);}[_0x291ba3(0x465)](_0x40ce48,_0x26e9c9){const _0x21e591=_0x291ba3,_0x2ff027=this[_0x21e591(0x1d6)][_0x21e591(0x400)](_0x40ce48);if(_0x2ff027)return _0x2ff027[_0x21e591(0x465)](_0x26e9c9);}['_removeRoom'](_0x412d3f){const _0x4ae231=_0x291ba3,_0x51eb33=this['_roomMembers'][_0x4ae231(0x400)](_0x412d3f);_0x51eb33&&(_0x51eb33['dispose'](),this[_0x4ae231(0x1d6)]['delete'](_0x412d3f));}[_0x291ba3(0x35e)](){const _0x3e84f2=_0x291ba3;this[_0x3e84f2(0x1d6)][_0x3e84f2(0xb2)](_0x435192=>_0x435192['dispose']()),this['_roomMembers']['clear']();}};_0x4d411d=_0x4bacb4([_0x45a087(0x0,_0x2c7fed['IUniverInstanceService']),_0x45a087(0x1,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x31c)]))],_0x4d411d);class _0x31de47 extends _0x2c7fed[_0x291ba3(0x2e7)]{constructor(){const _0x1cf9db=_0x291ba3;super(...arguments),_0x24cbc7(this,_0x1cf9db(0x22e),new Map());}['dispose'](){const _0x467dba=_0x291ba3;this[_0x467dba(0x22e)]['clear']();}['updateMember'](_0x5f494b){const _0x4872fc=_0x291ba3;this[_0x4872fc(0x22e)][_0x4872fc(0x250)](_0x5f494b['memberID'],_0x5f494b);}[_0x291ba3(0x6b)](_0x4d63ca){const _0x5dbc8a=_0x291ba3;this[_0x5dbc8a(0x22e)]['delete'](_0x4d63ca);}[_0x291ba3(0x465)](_0x5e4cc8){const _0x4a5f5b=_0x291ba3;return this['_members'][_0x4a5f5b(0x400)](_0x5e4cc8);}}var _0x392bd0=Object[_0x291ba3(0x3e4)],_0x14bb27=Object['getOwnPropertyDescriptor'],_0x4d1096=(_0x2e1c8f,_0x3e1c5e,_0x10186c,_0x233704)=>{const _0x31c986=_0x291ba3;for(var _0x2dd305=_0x233704>0x1?void 0x0:_0x233704?_0x14bb27(_0x3e1c5e,_0x10186c):_0x3e1c5e,_0xb72ad1=_0x2e1c8f[_0x31c986(0xbb)]-0x1,_0xa3ce3b;_0xb72ad1>=0x0;_0xb72ad1--)(_0xa3ce3b=_0x2e1c8f[_0xb72ad1])&&(_0x2dd305=(_0x233704?_0xa3ce3b(_0x3e1c5e,_0x10186c,_0x2dd305):_0xa3ce3b(_0x2dd305))||_0x2dd305);return _0x233704&&_0x2dd305&&_0x392bd0(_0x3e1c5e,_0x10186c,_0x2dd305),_0x2dd305;},_0x54ef2b=(_0x33159d,_0xeabd56)=>(_0x455334,_0x22d25e)=>_0xeabd56(_0x455334,_0x22d25e,_0x33159d),_0x11a57f=(_0x2cb805=>(_0x2cb805[_0x2cb805[_0x291ba3(0xea)]=0x0]=_0x291ba3(0xea),_0x2cb805[_0x2cb805[_0x291ba3(0x460)]=0x1]='JOINING',_0x2cb805[_0x2cb805[_0x291ba3(0x2cf)]=0x2]=_0x291ba3(0x2cf),_0x2cb805[_0x2cb805['ONLINE']=0x3]=_0x291ba3(0x3d0),_0x2cb805))(_0x11a57f||{});_0x594fe1['CollaborationSession']=class extends _0x2c7fed['RxDisposable']{constructor(_0x5b5513,_0x4b2255,_0x4e1dba,_0x47c9e6,_0xab58b,_0x314785,_0x585ebd,_0x5ee6d1,_0x3eec1,_0x3ff1c9){const _0x8c12aa=_0x291ba3;super(),_0x24cbc7(this,_0x8c12aa(0x48a),new _0x1fc547[(_0x8c12aa(0x467))](0x0)),_0x24cbc7(this,_0x8c12aa(0x1a8),this[_0x8c12aa(0x48a)][_0x8c12aa(0x442)]()),_0x24cbc7(this,_0x8c12aa(0x196),new _0x1fc547[(_0x8c12aa(0x165))]()),_0x24cbc7(this,_0x8c12aa(0x272),this[_0x8c12aa(0x196)][_0x8c12aa(0x442)]()),_0x24cbc7(this,_0x8c12aa(0x15c)),_0x24cbc7(this,_0x8c12aa(0x335)),_0x24cbc7(this,'_collaborationTimeoutTimer'),_0x24cbc7(this,_0x8c12aa(0x8e),!0x1),_0x24cbc7(this,_0x8c12aa(0x3ae),null),(this[_0x8c12aa(0x85)]=_0x5b5513,this[_0x8c12aa(0x139)]=_0x4e1dba,this[_0x8c12aa(0x49c)]=_0x47c9e6,this[_0x8c12aa(0x17b)]=_0xab58b,this[_0x8c12aa(0x2e2)]=_0x314785,this[_0x8c12aa(0x277)]=_0x585ebd,this[_0x8c12aa(0x29e)]=_0x5ee6d1,this[_0x8c12aa(0x26a)]=_0x3eec1,this['_telemetryService']=_0x3ff1c9,this['_shouldReportTelemetry']=!!this[_0x8c12aa(0x286)],_0x4b2255[_0x8c12aa(0x256)](_0x1fc547[_0x8c12aa(0x211)](this['dispose$']))[_0x8c12aa(0x3f2)](_0x55d40d=>{const _0x14eb27=_0x8c12aa;var _0x510c54;typeof _0x55d40d>'u'||(this[_0x14eb27(0x15c)]=_0x55d40d,_0x55d40d?(this[_0x14eb27(0x22c)](_0x55d40d),this[_0x14eb27(0x335)]=_0x55d40d[_0x14eb27(0x113)][_0x14eb27(0x3f2)](_0x588875=>{const _0x74de32=_0x14eb27;_0x588875[_0x74de32(0x48c)]===this[_0x74de32(0x85)]&&this[_0x74de32(0x2a5)](_0x588875);})):(this[_0x14eb27(0x3eb)](),this[_0x14eb27(0x48a)][_0x14eb27(0x2ce)](0x2),(_0x510c54=this[_0x14eb27(0x335)])==null||_0x510c54[_0x14eb27(0x128)](),this['_socketMessageSubscription']=null));}),this[_0x8c12aa(0x351)](this['_beforeCloseService']['registerOnClose'](()=>{const _0x431eb9=_0x8c12aa;var _0x55d841;(_0x55d841=this[_0x431eb9(0x15c)])==null||_0x55d841[_0x431eb9(0x319)]({'cmd':_0x153a81['LEAVE'],'data':{'roomID':this[_0x431eb9(0x85)]}});})));}get[_0x291ba3(0x312)](){const _0x4f46e2=_0x291ba3;return this[_0x4f46e2(0x48a)][_0x4f46e2(0x1e7)]();}[_0x291ba3(0x34f)](){const _0x5d3e56=_0x291ba3;var _0x5909cf,_0x16b790;return(_0x16b790=(_0x5909cf=this[_0x5d3e56(0x15c)])==null?void 0x0:_0x5909cf[_0x5d3e56(0x16a)])!=null?_0x16b790:null;}['dispose'](){const _0x56c955=_0x291ba3;super[_0x56c955(0x35e)](),this[_0x56c955(0xf7)][_0x56c955(0x2ce)](),this[_0x56c955(0xf7)]['complete']();}['close'](){const _0x10eef0=_0x291ba3;var _0xd06b82,_0xb74229;this[_0x10eef0(0x3eb)](),(_0xd06b82=this[_0x10eef0(0x15c)])==null||_0xd06b82[_0x10eef0(0x319)]({'cmd':_0x153a81[_0x10eef0(0x15b)],'data':{'roomID':this[_0x10eef0(0x85)]}}),(_0xb74229=this[_0x10eef0(0x15c)])==null||_0xb74229[_0x10eef0(0x3f5)](),this[_0x10eef0(0x196)]['complete'](),this[_0x10eef0(0x48a)][_0x10eef0(0x420)](),this[_0x10eef0(0x35e)]();}['_onCombEvent'](_0x332467){const _0x3e0780=_0x291ba3;_0x332467[_0x3e0780(0x3e6)]===_0x153a81[_0x3e0780(0x41a)]?this['_onJoinRoomEvent'](_0x332467):_0x332467[_0x3e0780(0x3e6)]===_0x153a81[_0x3e0780(0x40a)]&&this[_0x3e0780(0x3ed)](_0x332467);}[_0x291ba3(0x22c)](_0x5968d0){const _0x1077ab=_0x291ba3;this[_0x1077ab(0x48a)]['next'](0x1),_0x5968d0[_0x1077ab(0x319)]({'cmd':_0x153a81['JOIN'],'routeKey':this[_0x1077ab(0x85)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x291ba3(0x275)](_0x4419f5){const _0x1e1bef=_0x291ba3;var _0x464ebc;if(_0x4419f5[_0x1e1bef(0x3b4)]===_0xb7a022[_0x1e1bef(0xaf)]){this[_0x1e1bef(0x17b)][_0x1e1bef(0x116)]({'type':_0x4d689c[_0x1e1bef(0x3be)]['Warning'],'content':this['_localeService']['t'](_0x1e1bef(0x20f))}),this[_0x1e1bef(0x48a)][_0x1e1bef(0x2ce)](0x2);return;}this[_0x1e1bef(0x48a)][_0x1e1bef(0x2ce)](0x3);const _0x2ec711=(_0x464ebc=_0x4419f5[_0x1e1bef(0x253)][_0x1e1bef(0x237)][this[_0x1e1bef(0x85)]])==null?void 0x0:_0x464ebc[_0x1e1bef(0xba)];_0x2ec711&&_0x2ec711[_0x1e1bef(0xb2)](_0x3181b8=>this['_memberService']['updateMember'](this[_0x1e1bef(0x85)],_0x3181b8));}[_0x291ba3(0x3ed)](_0x4d9d22){const _0xbd600c=_0x291ba3;try{const _0x95bec4=_0x4d9d22['data'];switch(_0x95bec4[_0xbd600c(0x243)]){case _0x2856d7['CollaborationEvent'][_0xbd600c(0x3ff)]:this[_0xbd600c(0x110)](_0x95bec4),this[_0xbd600c(0x196)][_0xbd600c(0x2ce)](_0x95bec4);break;case _0x2856d7[_0xbd600c(0x93)][_0xbd600c(0x408)]:this['_onUserLeave'](_0x95bec4),this[_0xbd600c(0x196)][_0xbd600c(0x2ce)](_0x95bec4);break;case _0x2856d7['CollaborationEvent'][_0xbd600c(0x402)]:this[_0xbd600c(0x42c)](),this['_clearCollaborationTimeoutTimer'](),this[_0xbd600c(0x196)][_0xbd600c(0x2ce)](_0x95bec4);break;case _0x2856d7[_0xbd600c(0x93)][_0xbd600c(0x38c)]:this[_0xbd600c(0x139)][_0xbd600c(0x41d)]('save\x20fail\x20reason\x20is\x20'+JSON[_0xbd600c(0x2eb)](_0x95bec4)),this[_0xbd600c(0x196)][_0xbd600c(0x2ce)](_0x95bec4);break;case _0x2856d7[_0xbd600c(0x93)][_0xbd600c(0x14a)]:this[_0xbd600c(0x26a)][_0xbd600c(0x7c)](_0x95bec4[_0xbd600c(0x253)]),this[_0xbd600c(0x196)][_0xbd600c(0x2ce)](_0x95bec4);break;default:this[_0xbd600c(0x196)][_0xbd600c(0x2ce)](_0x95bec4);}}catch(_0x98a960){this['_logService'][_0xbd600c(0x41d)](_0x98a960,_0x4d9d22);}}[_0x291ba3(0x110)](_0x1f3462){const _0x3755b0=_0x291ba3;this[_0x3755b0(0x29e)][_0x3755b0(0x83)](this[_0x3755b0(0x85)],_0x1f3462[_0x3755b0(0x253)]);}[_0x291ba3(0x44e)](_0x2ce0e8){const _0x14a971=_0x291ba3;this[_0x14a971(0x29e)][_0x14a971(0x6b)](this[_0x14a971(0x85)],_0x2ce0e8[_0x14a971(0x253)]['memberID']);}async['send'](_0x19df46,_0xcf669){const _0x1e5c81=_0x291ba3;if(this[_0x1e5c81(0x312)]!==0x3||!this[_0x1e5c81(0x15c)])throw new Error(_0x1e5c81(0x3f9));try{_0x19df46[_0x1e5c81(0x243)]===_0x2856d7['CollaborationEvent'][_0x1e5c81(0x29f)]&&(this[_0x1e5c81(0x214)](),this['_startTelemetryCollaborationNewChangeset'](_0x19df46)),this[_0x1e5c81(0x15c)]['send']({'cmd':_0x153a81['INGEST'],'routeKey':_0xcf669,'routeType':'','data':_0x19df46});}catch(_0x537c59){this[_0x1e5c81(0x139)][_0x1e5c81(0x41d)](_0x537c59);}}[_0x291ba3(0x214)](){const _0x14b670=_0x291ba3;var _0x10a27c;this[_0x14b670(0x317)]=window[_0x14b670(0x24a)](()=>{const _0x2125cc=_0x14b670;this[_0x2125cc(0x317)]=null,this[_0x2125cc(0x17b)][_0x2125cc(0x116)]({'type':_0x4d689c[_0x2125cc(0x3be)][_0x2125cc(0x167)],'content':this[_0x2125cc(0x277)]['t']('session.collaboration-timeout')});},(_0x10a27c=this[_0x14b670(0x2e2)]['getConfig'](_0x56c1a7))!=null?_0x10a27c:0x4e20);}[_0x291ba3(0x8a)](){const _0x3d6761=_0x291ba3;this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x3d6761(0x317)]=null);}[_0x291ba3(0x18e)](_0x31cfa6){const _0xa1cf9c=_0x291ba3;if(!this[_0xa1cf9c(0x8e)])return;const {data:_0x1c471}=_0x31cfa6,{unitID:_0x9869a4,changeset:_0x16b2b8}=_0x1c471,{mutations:_0x157679,type:_0x3e56f9}=_0x16b2b8;this[_0xa1cf9c(0x3ae)]={'unitId':_0x9869a4,'type':_0x3e56f9,'startTime':performance[_0xa1cf9c(0x202)](),'stopTime':0x0,'duration':0x0,'size':_0x11e35a(_0x157679)};}[_0x291ba3(0x42c)](){const _0xce2d56=_0x291ba3;if(this[_0xce2d56(0x8e)]){if(!this[_0xce2d56(0x3ae)]){this['_logService'][_0xce2d56(0x41d)](_0xce2d56(0x2b5),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0xce2d56(0x3ae)][_0xce2d56(0x1ca)]=performance[_0xce2d56(0x202)](),this[_0xce2d56(0x3ae)][_0xce2d56(0x296)]=this[_0xce2d56(0x3ae)][_0xce2d56(0x1ca)]-this[_0xce2d56(0x3ae)]['startTime'],this[_0xce2d56(0x286)]['capture'](_0x447475,this['_telemetryInfo']),this['_telemetryInfo']=null;}}[_0x291ba3(0x3eb)](){const _0x18ecd5=_0x291ba3;this[_0x18ecd5(0x3ae)]=null;}},_0x594fe1[_0x291ba3(0x10f)]=_0x4d1096([_0x54ef2b(0x2,_0x2c7fed[_0x291ba3(0x2fd)]),_0x54ef2b(0x3,_0x4b403d['IBeforeCloseService']),_0x54ef2b(0x4,_0x4b403d[_0x291ba3(0x2f2)]),_0x54ef2b(0x5,_0x2c7fed[_0x291ba3(0x309)]),_0x54ef2b(0x6,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x1a7)])),_0x54ef2b(0x7,_0x2c7fed['Inject'](_0x4d411d)),_0x54ef2b(0x8,_0x2c7fed[_0x291ba3(0x16b)](_0x1ab0de)),_0x54ef2b(0x9,_0x2c7fed[_0x291ba3(0x425)](_0x15ef2d[_0x291ba3(0x3a2)]))],_0x594fe1[_0x291ba3(0x10f)]);var _0x5459d7=Object[_0x291ba3(0x3e4)],_0x2f5612=Object['getOwnPropertyDescriptor'],_0x248764=(_0x290a03,_0x12c65b,_0x3f418f,_0x147132)=>{const _0x1ceee1=_0x291ba3;for(var _0x481c92=_0x147132>0x1?void 0x0:_0x147132?_0x2f5612(_0x12c65b,_0x3f418f):_0x12c65b,_0x41965b=_0x290a03[_0x1ceee1(0xbb)]-0x1,_0xc30ad9;_0x41965b>=0x0;_0x41965b--)(_0xc30ad9=_0x290a03[_0x41965b])&&(_0x481c92=(_0x147132?_0xc30ad9(_0x12c65b,_0x3f418f,_0x481c92):_0xc30ad9(_0x481c92))||_0x481c92);return _0x147132&&_0x481c92&&_0x5459d7(_0x12c65b,_0x3f418f,_0x481c92),_0x481c92;},_0x4d099e=(_0x13174f,_0x9d8cc9)=>(_0x58910e,_0x85c007)=>_0x9d8cc9(_0x58910e,_0x85c007,_0x13174f);_0x594fe1[_0x291ba3(0xeb)]=class extends _0x2c7fed[_0x291ba3(0x2e7)]{constructor(_0x2c1d99,_0x1852bb,_0x41155b,_0x49b093,_0x356a1b,_0x1e236e){const _0x3709dc=_0x291ba3;super(),_0x24cbc7(this,'_socket$',new _0x1fc547[(_0x3709dc(0x467))](void 0x0)),_0x24cbc7(this,_0x3709dc(0x70),this[_0x3709dc(0x46f)][_0x3709dc(0x442)]()),_0x24cbc7(this,_0x3709dc(0x2d1),null),_0x24cbc7(this,'_sessions',new Map()),_0x24cbc7(this,_0x3709dc(0x6d),new _0x1fc547[(_0x3709dc(0x467))](_0x11a57f['IDLE'])),_0x24cbc7(this,_0x3709dc(0x338),this[_0x3709dc(0x6d)]['asObservable']()),_0x24cbc7(this,'_socketReady',!0x1),_0x24cbc7(this,_0x3709dc(0x2d7)),_0x24cbc7(this,_0x3709dc(0x173),0x0),_0x24cbc7(this,'_sendHeartbeatTimer'),_0x24cbc7(this,_0x3709dc(0x1d8)),(this['_injector']=_0x2c1d99,this[_0x3709dc(0x277)]=_0x1852bb,this[_0x3709dc(0x17b)]=_0x41155b,this['_logService']=_0x49b093,this['_configService']=_0x356a1b,this[_0x3709dc(0x4a4)]=_0x1e236e,this[_0x3709dc(0x18d)]());}get['_socket'](){const _0x50efe2=_0x291ba3;return this[_0x50efe2(0x46f)][_0x50efe2(0x1e7)]();}['_initEventListeners'](){const _0x5bc9b3=_0x291ba3;this[_0x5bc9b3(0xd3)](),this[_0x5bc9b3(0x1cb)]();}[_0x291ba3(0x35e)](){const _0x42c35b=_0x291ba3;super[_0x42c35b(0x35e)](),this[_0x42c35b(0x171)][_0x42c35b(0xb2)](_0x5aa856=>_0x5aa856['dispose']()),this['_sessions']['clear'](),this[_0x42c35b(0x6d)][_0x42c35b(0x420)]();}async[_0x291ba3(0x22d)](_0x3423a3){const _0x33fa73=_0x291ba3;if(this[_0x33fa73(0x171)][_0x33fa73(0x169)](_0x3423a3))return this['_sessions'][_0x33fa73(0x400)](_0x3423a3);this[_0x33fa73(0x160)]();const _0x1d3e3f=this[_0x33fa73(0x10d)][_0x33fa73(0x266)](_0x594fe1[_0x33fa73(0x10f)],_0x3423a3,this[_0x33fa73(0x46f)][_0x33fa73(0x442)]());return this[_0x33fa73(0x171)][_0x33fa73(0x250)](_0x3423a3,_0x1d3e3f),_0x1d3e3f;}[_0x291ba3(0x105)](_0x4e6cb6){const _0x3b6607=_0x291ba3;var _0xcdfecd;const _0x1f8f0e=this['_sessions'][_0x3b6607(0x400)](_0x4e6cb6);_0x1f8f0e&&(this[_0x3b6607(0x171)][_0x3b6607(0x39c)](_0x4e6cb6),_0x1f8f0e[_0x3b6607(0x3f5)]()),this['_sessions'][_0x3b6607(0x3f6)]||(_0xcdfecd=this[_0x3b6607(0x15c)])==null||_0xcdfecd[_0x3b6607(0x3f5)]();}[_0x291ba3(0x3d7)](){const _0x3681dc=_0x291ba3;this[_0x3681dc(0x173)]=0x0,this[_0x3681dc(0x2d7)]!=null&&(clearTimeout(this[_0x3681dc(0x2d7)]),this[_0x3681dc(0x2d7)]=null),this['_tryReconnect']();}[_0x291ba3(0x2cb)](){const _0x44e354=_0x291ba3;var _0x2e13c1,_0x47f217;const _0x4e72c9=this[_0x44e354(0x2e2)][_0x44e354(0x304)](_0x8abbe0),_0x1fd35c=this[_0x44e354(0x2e2)]['getConfig'](_0x229401),_0x32e70e=(_0x47f217=(_0x2e13c1=_0x1fd35c==null?void 0x0:_0x1fd35c[_0x44e354(0x114)])!=null?_0x2e13c1:_0x4e72c9)!=null?_0x47f217:_0x30eb17,_0x1f5983=this[_0x44e354(0x4a4)]['createSocket'](_0x32e70e);return this[_0x44e354(0x2d1)]=_0x1f5983,_0x1f5983;}[_0x291ba3(0x160)](){const _0x56bc0c=_0x291ba3;var _0x4fd25e,_0x18ba9d;try{const _0x3685e6=(_0x18ba9d=(_0x4fd25e=this[_0x56bc0c(0x15c)])!=null?_0x4fd25e:this[_0x56bc0c(0x2d1)])!=null?_0x18ba9d:this[_0x56bc0c(0x2cb)]();if(_0x3685e6){const _0x40596d=_0x3685e6['send'];_0x3685e6[_0x56bc0c(0x319)]=_0xb0d463=>(this[_0x56bc0c(0x1ce)](),_0x40596d[_0x56bc0c(0x1ac)](_0x3685e6,[_0xb0d463])),_0x3685e6[_0x56bc0c(0x113)][_0x56bc0c(0x3f2)](_0x8f4ec9=>this[_0x56bc0c(0x127)](_0x3685e6,_0x8f4ec9)),_0x3685e6[_0x56bc0c(0x464)][_0x56bc0c(0x256)](_0x2eca2e[_0x56bc0c(0x482)](0x1))[_0x56bc0c(0x3f2)](_0x27e2f9=>this[_0x56bc0c(0x139)][_0x56bc0c(0x41d)](_0x56bc0c(0x47b),_0x27e2f9)),_0x3685e6['open$']['pipe'](_0x2eca2e[_0x56bc0c(0x482)](0x1))[_0x56bc0c(0x3f2)](()=>{const _0x201782=_0x56bc0c;this[_0x201782(0x84)](_0x3685e6);}),_0x3685e6['close$'][_0x56bc0c(0x256)](_0x2eca2e[_0x56bc0c(0x482)](0x1))['subscribe'](_0x468a0d=>{const _0x5c4a0c=_0x56bc0c;this[_0x5c4a0c(0x139)][_0x5c4a0c(0x1e9)](_0x5c4a0c(0xa0),_0x5c4a0c(0x247),_0x468a0d),this[_0x5c4a0c(0x146)]();});}}catch(_0x365ea3){this[_0x56bc0c(0x139)][_0x56bc0c(0x41d)](_0x365ea3),this[_0x56bc0c(0x146)]();}}['_onConnectionOpen'](_0x4933bd){const _0x5653b3=_0x291ba3;this[_0x5653b3(0x139)]['debug'](_0x5653b3(0xa0),_0x5653b3(0xd8)),_0x4933bd[_0x5653b3(0x319)]({'cmd':_0x153a81[_0x5653b3(0x2ab)]}),this[_0x5653b3(0x1ce)]();}[_0x291ba3(0xd3)](){window['addEventListener']('offline',()=>this['_onOffline']());}[_0x291ba3(0x29a)](){const _0x292b61=_0x291ba3;this[_0x292b61(0x31b)]=!0x1,this[_0x292b61(0x2d1)]=null,this[_0x292b61(0x6d)]['next'](_0x11a57f[_0x292b61(0x2cf)]),this[_0x292b61(0x46f)][_0x292b61(0x2ce)](null),this[_0x292b61(0x3b1)](),this[_0x292b61(0x75)]();}['_onConnectionFailed'](){const _0xe08242=_0x291ba3;var _0x285dab;this['_onOffline'](),this[_0xe08242(0x173)]<((_0x285dab=this[_0xe08242(0x2e2)][_0xe08242(0x304)](_0x42be50))!=null?_0x285dab:0x3)?(this[_0xe08242(0x17b)][_0xe08242(0x116)]({'key':_0xe08242(0x107),'type':_0x4d689c[_0xe08242(0x3be)][_0xe08242(0x13d)],'content':this[_0xe08242(0x277)]['t'](_0xe08242(0x1cf))}),this[_0xe08242(0x1fa)]()):this[_0xe08242(0x17b)][_0xe08242(0x116)]({'key':_0xe08242(0x107),'type':_0x4d689c[_0xe08242(0x3be)][_0xe08242(0x167)],'content':this[_0xe08242(0x277)]['t'](_0xe08242(0x1c7))});}[_0x291ba3(0x1cb)](){const _0xdf4a02=_0x291ba3,_0x1137ec=()=>{const _0x1b29b4=_0x2d25;this[_0x1b29b4(0x15c)]||this[_0x1b29b4(0x3d7)]();},_0x475782=()=>{const _0x1b3126=_0x2d25;this[_0x1b3126(0x15c)]||document['visibilityState']===_0x1b3126(0x350)||this[_0x1b3126(0x3d7)]();};window[_0xdf4a02(0x46a)](_0xdf4a02(0x269),_0x1137ec),document[_0xdf4a02(0x46a)]('visibilitychange',_0x475782);}[_0x291ba3(0x1fa)](){const _0x1555b4=_0x291ba3;var _0x3597a4;const _0x619cfb=this[_0x1555b4(0x173)],_0x4f3a4c=this[_0x1555b4(0x2e2)]['getConfig'](_0x229401),_0x126423=_0x619cfb===0x0?0x0:((_0x3597a4=_0x4f3a4c==null?void 0x0:_0x4f3a4c[_0x1555b4(0x175)])!=null?_0x3597a4:0x4e20)*0x2**_0x619cfb;this[_0x1555b4(0x2d7)]=window[_0x1555b4(0x24a)](()=>{const _0x4aa4ec=_0x1555b4;clearTimeout(this[_0x4aa4ec(0x2d7)]),this[_0x4aa4ec(0x2d7)]=null,this[_0x4aa4ec(0x160)]();},_0x126423),this[_0x1555b4(0x173)]+=0x1;}[_0x291ba3(0x127)](_0x1ac3f8,_0x2b6f01){const _0x3630c9=_0x291ba3,{cmd:_0x4b3957}=_0x2b6f01;_0x4b3957===_0x153a81[_0x3630c9(0x2ab)]&&!this[_0x3630c9(0x31b)]&&(_0x1ac3f8[_0x3630c9(0x16a)]=_0x2b6f01[_0x3630c9(0x253)][_0x3630c9(0x16a)],this[_0x3630c9(0x46f)][_0x3630c9(0x2ce)](_0x1ac3f8),this['_status$'][_0x3630c9(0x2ce)](_0x11a57f[_0x3630c9(0x3d0)]),this[_0x3630c9(0x31b)]=!0x0,this[_0x3630c9(0x2d1)]=null),_0x4b3957===_0x153a81['HEARTBEAT']&&this[_0x3630c9(0x3b1)](),this[_0x3630c9(0x1ce)]();}[_0x291ba3(0x1ce)](){const _0x4b62ea=_0x291ba3;var _0x47dd57;this[_0x4b62ea(0x75)](),this['_sendHeartbeatTimer']=window[_0x4b62ea(0x24a)](()=>this[_0x4b62ea(0xc9)](),(_0x47dd57=this[_0x4b62ea(0x2e2)][_0x4b62ea(0x304)](_0x16f4d4))!=null?_0x47dd57:0x7530);}[_0x291ba3(0xc9)](){const _0x2720b9=_0x291ba3;this[_0x2720b9(0x15c)]['send']({'cmd':_0x153a81[_0x2720b9(0x39a)]}),this[_0x2720b9(0x1af)]();}[_0x291ba3(0x1af)](){const _0xc72f38=_0x291ba3;var _0x50cc13;this[_0xc72f38(0x1d8)]=window[_0xc72f38(0x24a)](()=>this[_0xc72f38(0x146)](),(_0x50cc13=this[_0xc72f38(0x2e2)]['getConfig'](_0x56c1a7))!=null?_0x50cc13:0x4e20);}['_clearHeartbeatTimer'](){const _0x245a08=_0x291ba3;this[_0x245a08(0x2ec)]!=null&&(clearTimeout(this[_0x245a08(0x2ec)]),this[_0x245a08(0x2ec)]=null);}[_0x291ba3(0x3b1)](){const _0x45263d=_0x291ba3;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x45263d(0x1d8)]),this[_0x45263d(0x1d8)]=null);}},_0x594fe1['CollaborationSessionService']=_0x248764([_0x4d099e(0x0,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x4d099e(0x1,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x1a7)])),_0x4d099e(0x2,_0x4b403d['IMessageService']),_0x4d099e(0x3,_0x2c7fed[_0x291ba3(0x2fd)]),_0x4d099e(0x4,_0x2c7fed[_0x291ba3(0x309)]),_0x4d099e(0x5,_0x268546)],_0x594fe1[_0x291ba3(0xeb)]);for(var _0x41d1ae=[],_0x339f29=0x0;_0x339f29<0x100;++_0x339f29)_0x41d1ae[_0x291ba3(0x44a)]((_0x339f29+0x100)[_0x291ba3(0x161)](0x10)['slice'](0x1));function _0x5a63bb(_0x555a28,_0x527ac0=0x0){const _0x5356c9=_0x291ba3;return(_0x41d1ae[_0x555a28[_0x527ac0+0x0]]+_0x41d1ae[_0x555a28[_0x527ac0+0x1]]+_0x41d1ae[_0x555a28[_0x527ac0+0x2]]+_0x41d1ae[_0x555a28[_0x527ac0+0x3]]+'-'+_0x41d1ae[_0x555a28[_0x527ac0+0x4]]+_0x41d1ae[_0x555a28[_0x527ac0+0x5]]+'-'+_0x41d1ae[_0x555a28[_0x527ac0+0x6]]+_0x41d1ae[_0x555a28[_0x527ac0+0x7]]+'-'+_0x41d1ae[_0x555a28[_0x527ac0+0x8]]+_0x41d1ae[_0x555a28[_0x527ac0+0x9]]+'-'+_0x41d1ae[_0x555a28[_0x527ac0+0xa]]+_0x41d1ae[_0x555a28[_0x527ac0+0xb]]+_0x41d1ae[_0x555a28[_0x527ac0+0xc]]+_0x41d1ae[_0x555a28[_0x527ac0+0xd]]+_0x41d1ae[_0x555a28[_0x527ac0+0xe]]+_0x41d1ae[_0x555a28[_0x527ac0+0xf]])[_0x5356c9(0x33f)]();}var _0x253a7d,_0x3c7c72=new Uint8Array(0x10);function _0x53a2f5(){const _0x56a472=_0x291ba3;if(!_0x253a7d&&(_0x253a7d=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x56a472(0x7f)]['bind'](crypto),!_0x253a7d))throw new Error(_0x56a472(0x278));return _0x253a7d(_0x3c7c72);}var _0x2560a7=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x291ba3(0x348)][_0x291ba3(0x1e0)](crypto);const _0x41af28={'randomUUID':_0x2560a7};function _0x2e2226(_0x37d8a7,_0x42d0ec,_0xbaa4c){const _0xf31ef9=_0x291ba3;if(_0x41af28[_0xf31ef9(0x348)]&&!_0x42d0ec&&!_0x37d8a7)return _0x41af28[_0xf31ef9(0x348)]();_0x37d8a7=_0x37d8a7||{};var _0x7ea660=_0x37d8a7[_0xf31ef9(0x26e)]||(_0x37d8a7[_0xf31ef9(0xb9)]||_0x53a2f5)();return _0x7ea660[0x6]=_0x7ea660[0x6]&0xf|0x40,_0x7ea660[0x8]=_0x7ea660[0x8]&0x3f|0x80,_0x5a63bb(_0x7ea660);}var _0x551cd4=Object[_0x291ba3(0x3e4)],_0x5d5de5=Object[_0x291ba3(0x373)],_0x2e8d7d=(_0x448adb,_0x540d12,_0xb27598,_0x3f2b75)=>{for(var _0x19a359=_0x3f2b75>0x1?void 0x0:_0x3f2b75?_0x5d5de5(_0x540d12,_0xb27598):_0x540d12,_0x400f7f=_0x448adb['length']-0x1,_0x3385fb;_0x400f7f>=0x0;_0x400f7f--)(_0x3385fb=_0x448adb[_0x400f7f])&&(_0x19a359=(_0x3f2b75?_0x3385fb(_0x540d12,_0xb27598,_0x19a359):_0x3385fb(_0x19a359))||_0x19a359);return _0x3f2b75&&_0x19a359&&_0x551cd4(_0x540d12,_0xb27598,_0x19a359),_0x19a359;},_0x4d3149=(_0x3bf7b3,_0x563ad3)=>(_0x4484f3,_0x585da4)=>_0x563ad3(_0x4484f3,_0x585da4,_0x3bf7b3);let _0x5bc594=class{constructor(_0x2400e7,_0x2473ed,_0x2ccc43){const _0x4c25ff=_0x291ba3;this[_0x4c25ff(0x10d)]=_0x2400e7,this['_transformService']=_0x2473ed,this[_0x4c25ff(0x20c)]=_0x2ccc43;}[_0x291ba3(0x315)](_0x5810f1){const _0x5cc501=_0x291ba3;this[_0x5cc501(0x221)](_0x5810f1),this[_0x5cc501(0x299)](_0x5810f1);}[_0x291ba3(0x326)](_0x332bf2){const _0x12c2f6=_0x291ba3,{unitID:_0x4d7c64}=_0x332bf2,_0x118d27=this[_0x12c2f6(0x20c)]['getRenderById'](_0x4d7c64)['with'](_0x21cef1[_0x12c2f6(0x141)]),{redoCache:_0x1a82c4}=_0x118d27[_0x12c2f6(0x365)]();if(_0x1a82c4[_0x12c2f6(0xbb)]===0x0)return _0x332bf2;let _0x59ce1f=_0x2c7fed[_0x12c2f6(0xa9)]['deepClone'](_0x332bf2[_0x12c2f6(0x1a9)][0x0]);for(let _0x18b723=0x0;_0x18b723<_0x1a82c4['length'];_0x18b723++){const _0x456b1c={'id':_0x12c2f6(0x1bf),'params':{..._0x1a82c4[_0x18b723]}},_0x4893ed=this[_0x12c2f6(0xbd)][_0x12c2f6(0x227)](_0x59ce1f,_0x456b1c,!0x1);if(_0x2856d7[_0x12c2f6(0x72)](_0x4893ed))throw _0x4893ed[_0x12c2f6(0x41d)];_0x59ce1f=_0x4893ed[_0x12c2f6(0x383)];}return{..._0x2c7fed['Tools']['deepClone'](_0x332bf2),'mutations':[_0x59ce1f]};}['_transformUndoRedoStack'](_0xc883bd){const _0x4c14f7=_0x291ba3,{unitID:_0x374b1b}=_0xc883bd,_0x6aa86c=this[_0x4c14f7(0x20c)][_0x4c14f7(0x419)](_0x374b1b)[_0x4c14f7(0x121)](_0x21cef1[_0x4c14f7(0x141)]),{undoCache:_0x37fe88,redoCache:_0x347d5d}=_0x6aa86c[_0x4c14f7(0x365)]();if(_0x37fe88['length']===0x0||_0x347d5d['length']===0x0)return;const _0x1b1343=[],_0x33c05e=[];let _0x47d2f2=_0x2c7fed[_0x4c14f7(0xa9)][_0x4c14f7(0x145)](_0xc883bd[_0x4c14f7(0x1a9)][0x0]),_0x468641=_0x2c7fed['Tools'][_0x4c14f7(0x145)](_0xc883bd[_0x4c14f7(0x1a9)][0x0]);for(let _0x282e63=_0x37fe88[_0x4c14f7(0xbb)]-0x1;_0x282e63>=0x0;_0x282e63--){const _0x4f51ed={'id':_0x4c14f7(0x1bf),'params':{..._0x37fe88[_0x282e63]}},_0x45a3bb={'id':_0x4c14f7(0x1bf),'params':{..._0x347d5d[_0x282e63]}},_0xc2a57c=this[_0x4c14f7(0xbd)][_0x4c14f7(0x227)](_0x47d2f2,_0x4f51ed,!0x1),_0x2b98b2=this['_transformService'][_0x4c14f7(0x227)](_0x468641,_0x45a3bb,!0x1);if(_0x2856d7[_0x4c14f7(0x72)](_0xc2a57c))throw _0xc2a57c[_0x4c14f7(0x41d)];if(_0x2856d7[_0x4c14f7(0x72)](_0x2b98b2))throw _0x2b98b2['error'];_0x1b1343[_0x4c14f7(0x42b)](_0xc2a57c['m2Prime'][_0x4c14f7(0x184)]),_0x33c05e['unshift'](_0x2b98b2['m2Prime'][_0x4c14f7(0x184)]),_0x47d2f2=_0xc2a57c['m1Prime'],_0x468641=_0x2b98b2['m1Prime'];}_0x6aa86c[_0x4c14f7(0x26f)]({'undoCache':_0x1b1343,'redoCache':_0x33c05e});}[_0x291ba3(0x299)](_0x26e081){const _0x3e2302=_0x291ba3,{unitID:_0x362298}=_0x26e081,_0x3c5705=this[_0x3e2302(0x20c)][_0x3e2302(0x419)](_0x362298)[_0x3e2302(0x121)](_0x21cef1[_0x3e2302(0x141)]),_0x45dfec=_0x3c5705[_0x3e2302(0x1f6)]();if(_0x45dfec==null)return;const _0x5ddfc2=[{'id':_0x3e2302(0x1bf),'params':{'unitId':_0x26e081[_0x3e2302(0x2ea)],'actions':null,'textRanges':[_0x45dfec]}}],_0x22e863=this['_transformService'][_0x3e2302(0x3b8)](_0x26e081,_0x5ddfc2);if(!_0x2856d7[_0x3e2302(0x38a)](_0x22e863))throw _0x22e863['error'];const _0x3eb6cc=_0x22e863[_0x3e2302(0x14f)][0x0]['params'][_0x3e2302(0x307)];Array[_0x3e2302(0x358)](_0x3eb6cc)&&_0x3eb6cc[_0x3e2302(0xbb)]&&_0x3c5705[_0x3e2302(0x2ef)](_0x3eb6cc[0x0]);}};_0x5bc594=_0x2e8d7d([_0x4d3149(0x0,_0x2c7fed['Inject'](_0x2c7fed[_0x291ba3(0x4a2)])),_0x4d3149(0x1,_0x2856d7[_0x291ba3(0x372)]),_0x4d3149(0x2,_0x180dc9['IRenderManagerService'])],_0x5bc594);var _0x1f2393=Object[_0x291ba3(0x3e4)],_0x351ad6=Object[_0x291ba3(0x373)],_0x418e78=(_0x1be24b,_0x259072,_0x96f942,_0x429805)=>{const _0x6ef026=_0x291ba3;for(var _0x407c80=_0x429805>0x1?void 0x0:_0x429805?_0x351ad6(_0x259072,_0x96f942):_0x259072,_0x5312a8=_0x1be24b[_0x6ef026(0xbb)]-0x1,_0x54e20d;_0x5312a8>=0x0;_0x5312a8--)(_0x54e20d=_0x1be24b[_0x5312a8])&&(_0x407c80=(_0x429805?_0x54e20d(_0x259072,_0x96f942,_0x407c80):_0x54e20d(_0x407c80))||_0x407c80);return _0x429805&&_0x407c80&&_0x1f2393(_0x259072,_0x96f942,_0x407c80),_0x407c80;},_0x2ceaef=(_0x4e0927,_0x5a013d)=>(_0x2d90ee,_0x2b5447)=>_0x5a013d(_0x2d90ee,_0x2b5447,_0x4e0927);_0x594fe1[_0x291ba3(0x378)]=class extends _0x2c7fed[_0x291ba3(0x2e7)]{constructor(_0xaa294c,_0x6996c4,_0x2a1ea1,_0x3797b8,_0x2cc7f5){const _0x5286bd=_0x291ba3;super(),_0x24cbc7(this,_0x5286bd(0x132),new Map()),_0x24cbc7(this,_0x5286bd(0x1b7),new Map()),_0x24cbc7(this,_0x5286bd(0x2a8),!0x1),(this[_0x5286bd(0x2e2)]=_0xaa294c,this[_0x5286bd(0x10e)]=_0x6996c4,this[_0x5286bd(0x49c)]=_0x2a1ea1,this['_localeService']=_0x3797b8,this['_revisionService']=_0x2cc7f5,this[_0x5286bd(0x2c9)]());}['disableLocalCache'](){const _0x347ae7=_0x291ba3;this[_0x347ae7(0x2a8)]=!0x0;}['enableLocalCache'](){const _0x5093b6=_0x291ba3;this[_0x5093b6(0x2a8)]=!0x1;}[_0x291ba3(0x35e)](){const _0x3726cb=_0x291ba3;this[_0x3726cb(0x1ab)]()[_0x3726cb(0x308)](()=>super[_0x3726cb(0x35e)]());}async['loadOfflineData'](_0x2fabf4){const _0x4c68a2=_0x291ba3;return this[_0x4c68a2(0x2a8)]?null:this[_0x4c68a2(0x10e)][_0x4c68a2(0x396)](_0x2d83a1(_0x2fabf4));}async[_0x291ba3(0x19b)](_0x5e501a,_0x4afa43){const _0x2ec6f5=_0x291ba3;return!!this['_localStorageService'][_0x2ec6f5(0x32a)](_0x5e501a,_0x4afa43);}[_0x291ba3(0x274)](_0x1e8b3c,_0x3cedca,_0x2ce7bb,_0x1ab20b){const _0x45d467=_0x291ba3,_0x5dc1e0=this['_revisionService'][_0x45d467(0x263)](_0x1e8b3c);this[_0x45d467(0x132)][_0x45d467(0x250)](_0x1e8b3c,{'unitID':_0x1e8b3c,'type':_0x3cedca,'awaitingChangeset':_0x2ce7bb,'mutations':_0x1ab20b,'rev':_0x5dc1e0}),this[_0x45d467(0x1b7)]['has'](_0x1e8b3c)||this[_0x45d467(0x246)](_0x1e8b3c);}['_scheduleSaving'](_0x240590){const _0xd74776=_0x291ba3,_0x52dd77=this[_0xd74776(0x2c7)]();_0x52dd77===0x0?this['_saveCache'](_0x240590):this[_0xd74776(0x1b7)][_0xd74776(0x250)](_0x240590,setTimeout(()=>this['_saveCache'](_0x240590),_0x52dd77));}[_0x291ba3(0x2c7)](){const _0x2b0105=_0x291ba3;var _0x46fa6a;return(_0x46fa6a=this[_0x2b0105(0x2e2)][_0x2b0105(0x304)](_0x3085a4))!=null?_0x46fa6a:0x3e8;}['_saveCache'](_0x1f299c){const _0x3ae7ec=_0x291ba3,_0x5971ed=this['_saveTaskMap'][_0x3ae7ec(0x400)](_0x1f299c);return _0x5971ed!==void 0x0&&window['clearTimeout'](_0x5971ed),this['_localStorageService'][_0x3ae7ec(0x32a)](_0x2d83a1(_0x1f299c),this['_cachedData'][_0x3ae7ec(0x400)](_0x1f299c))[_0x3ae7ec(0x308)](()=>this[_0x3ae7ec(0x1b7)][_0x3ae7ec(0x39c)](_0x1f299c));}async[_0x291ba3(0x1ab)](){const _0x3c10fa=_0x291ba3,_0x1b6e3a=[];this[_0x3c10fa(0x1b7)][_0x3c10fa(0xb2)]((_0x19368a,_0x523a7d)=>{const _0x1f36d4=_0x3c10fa;window[_0x1f36d4(0x3fc)](_0x19368a),_0x1b6e3a[_0x1f36d4(0x44a)](this[_0x1f36d4(0xe9)](_0x523a7d)[_0x1f36d4(0x308)](()=>{const _0x156ea4=_0x1f36d4;this[_0x156ea4(0x1b7)]['delete'](_0x523a7d);}));}),await Promise['all'](_0x1b6e3a);}['_setupBeforeClosingHandler'](){const _0x2a0efd=_0x291ba3;this['disposeWithMe'](this[_0x2a0efd(0x49c)][_0x2a0efd(0x2ee)](()=>{const _0x58a976=_0x2a0efd;if(this['_saveTaskMap'][_0x58a976(0x3f6)])return this[_0x58a976(0x277)]['t'](_0x58a976(0x473));}));}},_0x594fe1[_0x291ba3(0x378)]=_0x418e78([_0x2ceaef(0x0,_0x2c7fed['IConfigService']),_0x2ceaef(0x1,_0x2c7fed[_0x291ba3(0x3da)]),_0x2ceaef(0x2,_0x4b403d['IBeforeCloseService']),_0x2ceaef(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x1a7)])),_0x2ceaef(0x4,_0x2c7fed['Inject'](_0x2856d7[_0x291ba3(0x363)]))],_0x594fe1[_0x291ba3(0x378)]);function _0x2d83a1(_0x2ea9b7){const _0x4071da=_0x291ba3;return _0x4071da(0x176)+_0x2ea9b7;}var _0x10da0b=Object[_0x291ba3(0x3e4)],_0x96a46a=Object[_0x291ba3(0x373)],_0x562d84=(_0xcc9740,_0x3edce7,_0x4d0997,_0x423703)=>{const _0x4d912f=_0x291ba3;for(var _0x1b48ab=_0x423703>0x1?void 0x0:_0x423703?_0x96a46a(_0x3edce7,_0x4d0997):_0x3edce7,_0x38eb99=_0xcc9740[_0x4d912f(0xbb)]-0x1,_0xc80501;_0x38eb99>=0x0;_0x38eb99--)(_0xc80501=_0xcc9740[_0x38eb99])&&(_0x1b48ab=(_0x423703?_0xc80501(_0x3edce7,_0x4d0997,_0x1b48ab):_0xc80501(_0x1b48ab))||_0x1b48ab);return _0x423703&&_0x1b48ab&&_0x10da0b(_0x3edce7,_0x4d0997,_0x1b48ab),_0x1b48ab;},_0x50614c=(_0x4137b4,_0x25d10e)=>(_0x1d44a9,_0x569dd8)=>_0x25d10e(_0x1d44a9,_0x569dd8,_0x4137b4);function _0x3212ce(_0x827278){const _0x20ed57=_0x291ba3,{unitID:_0x3e39f1,mutations:_0x4fa7e6}=_0x827278;return{'unitId':_0x3e39f1,'subUnitId':_0x4fa7e6[0x0]['params'][_0x20ed57(0x101)]};}let _0x1b1a48=class{constructor(_0x355a34,_0x30661b,_0x4533a2){const _0x127bea=_0x291ba3;this[_0x127bea(0x10d)]=_0x355a34,this['_transformService']=_0x30661b,this['_instanceService']=_0x4533a2;}[_0x291ba3(0xc3)](_0x449a5d){const _0x2c6326=_0x291ba3;var _0x2a8ba8,_0x540909,_0x2217e6,_0x2e7b8c;const _0x1217b0=this[_0x2c6326(0x10d)][_0x2c6326(0x400)](_0x244249['SheetsSelectionsService']),{unitId:_0x1c0d3c,subUnitId:_0x558730}=_0x3212ce(_0x449a5d),_0x3ff168=_0x1217b0['getWorkbookSelections'](_0x1c0d3c)[_0x2c6326(0x1c4)](),_0x53113f=(_0x540909=(_0x2a8ba8=this[_0x2c6326(0x3f0)][_0x2c6326(0x205)](_0x1c0d3c))==null?void 0x0:_0x2a8ba8['getActiveSheet']())==null?void 0x0:_0x540909[_0x2c6326(0x3d8)]();if(_0x3ff168['length']===0x0||!_0x1c0d3c||!_0x558730)return;const _0x16c53d=[{'id':_0x244249[_0x2c6326(0x23d)]['id'],'params':{'unitId':_0x1c0d3c,'subUnitId':_0x53113f,'selections':_0x2c7fed['Tools']['deepClone'](_0x3ff168)}}],_0x2630cd=this[_0x2c6326(0xbd)][_0x2c6326(0x3b8)](_0x449a5d,_0x16c53d);if(!_0x2856d7[_0x2c6326(0x38a)](_0x2630cd))throw _0x2630cd[_0x2c6326(0x41d)];const _0x264a48=(_0x2e7b8c=(_0x2217e6=_0x2630cd['m2Prime'][0x0])==null?void 0x0:_0x2217e6['params'])==null?void 0x0:_0x2e7b8c[_0x2c6326(0x224)];Array['isArray'](_0x264a48)&&_0x264a48[_0x2c6326(0xbb)]&&this['_injector']['get'](_0x2c7fed['ICommandService'])[_0x2c6326(0x341)](_0x244249[_0x2c6326(0x23d)]['id'],{'unitId':_0x1c0d3c,'subUnitId':_0x53113f,'selections':_0x264a48});}};_0x1b1a48=_0x562d84([_0x50614c(0x0,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x50614c(0x1,_0x2856d7[_0x291ba3(0x372)]),_0x50614c(0x2,_0x2c7fed[_0x291ba3(0x27a)])],_0x1b1a48);const _0x4ba495=_0x2c7fed[_0x291ba3(0x33e)](_0x291ba3(0x2cd));var _0x16b602=(_0x33236a=>(_0x33236a[_0x33236a[_0x291ba3(0x487)]=0x0]=_0x291ba3(0x487),_0x33236a[_0x33236a[_0x291ba3(0x3b3)]=0x1]=_0x291ba3(0x3b3),_0x33236a))(_0x16b602||{});const _0x47ecfb=0x7530,_0x22d271=_0x291ba3(0x276);class _0x1986bf extends _0x2c7fed[_0x291ba3(0x2e7)]{constructor(){const _0x47b155=_0x291ba3;super(),_0x24cbc7(this,_0x47b155(0x393),_0x2c7fed[_0x47b155(0xa9)]['generateRandomId']()),_0x24cbc7(this,_0x47b155(0x416),new Set()),_0x24cbc7(this,_0x47b155(0x133),new Map()),_0x24cbc7(this,_0x47b155(0x134),null),_0x24cbc7(this,_0x47b155(0xb4),new Map()),_0x24cbc7(this,'_unitStatus',new Map()),this[_0x47b155(0x366)]();}['dispose'](){const _0x327a68=_0x291ba3;super['dispose'](),this[_0x327a68(0xb4)][_0x327a68(0xb2)]((_0x2977b9,_0x4c255b)=>this[_0x327a68(0x1de)](_0x4c255b)),this[_0x327a68(0x134)]&&window[_0x327a68(0x10b)](this[_0x327a68(0x134)]);}[_0x291ba3(0x45b)](_0x65c10a){const _0x3924ab=_0x291ba3;return this[_0x3924ab(0x354)](_0x65c10a)[_0x3924ab(0x256)](_0x1fc547[_0x3924ab(0x2bf)]());}['editingUnit'](_0x582f03){const _0x20366c=_0x291ba3;this[_0x20366c(0x416)][_0x20366c(0x3f6)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x20366c(0x8b)](_0x582f03),this[_0x20366c(0x306)]({'type':0x0,'memberID':this[_0x20366c(0x393)],'unitIDs':[_0x582f03],'isForwarded':!0x1});}[_0x291ba3(0x3b6)](_0x2406b1){const _0x4c2ed3=_0x291ba3;this[_0x4c2ed3(0x416)][_0x4c2ed3(0x39c)](_0x2406b1),this[_0x4c2ed3(0x416)][_0x4c2ed3(0x3f6)]===0x0&&this[_0x4c2ed3(0x134)]&&window[_0x4c2ed3(0x10b)](this[_0x4c2ed3(0x134)]);}[_0x291ba3(0x366)](){const _0x350f48=_0x291ba3;this['disposeWithMe'](_0x2c7fed[_0x350f48(0x337)](_0x1fc547[_0x350f48(0x30a)](window,_0x350f48(0x3a9))[_0x350f48(0x3f2)](_0x5306e8=>{const _0x3f01c8=_0x350f48;if(_0x5306e8[_0x3f01c8(0x421)]!==_0x22d271||!_0x5306e8['newValue'])return;const _0xc6cd88=JSON[_0x3f01c8(0x96)](_0x5306e8[_0x3f01c8(0x285)]);this['_handleEvent'](_0xc6cd88);}))),window[_0x350f48(0x46a)]('unload',()=>this[_0x350f48(0x306)]({'type':0x1,'memberID':this[_0x350f48(0x393)],'unitIDs':Array[_0x350f48(0x403)](this[_0x350f48(0x416)])}));}[_0x291ba3(0x3ee)](_0xd63a41){const _0x1259c4=_0x291ba3;switch(_0xd63a41['type']){case 0x0:this[_0x1259c4(0x2c3)](_0xd63a41);break;case 0x1:this[_0x1259c4(0x2ff)](_0xd63a41);break;case 0x2:this[_0x1259c4(0x2e1)](_0xd63a41);break;}}[_0x291ba3(0x2c3)](_0x3292d3){const _0x559788=_0x291ba3,{unitIDs:_0x4e30fa,memberID:_0x20c74c,isForwarded:_0x32e25e}=_0x3292d3;_0x4e30fa[_0x559788(0xb2)](_0x5dcaee=>{const _0xbccd9b=_0x559788;if(!_0x32e25e&&this[_0xbccd9b(0x133)][_0xbccd9b(0x169)](_0x5dcaee)&&this['_ensureSubject'](_0x5dcaee)['next'](0x1),!this[_0xbccd9b(0x133)][_0xbccd9b(0x169)](_0x5dcaee)||!this['_unitOnClients'][_0xbccd9b(0x400)](_0x5dcaee)[_0xbccd9b(0x169)](_0x20c74c)){const _0x44468e=this[_0xbccd9b(0x133)][_0xbccd9b(0x400)](_0x5dcaee)||new Set();_0x44468e[_0xbccd9b(0x8b)](_0x20c74c),this[_0xbccd9b(0x133)][_0xbccd9b(0x250)](_0x5dcaee,_0x44468e),this[_0xbccd9b(0xa4)](_0x20c74c);}}),_0x32e25e||this[_0x559788(0x306)]({'type':0x0,'memberID':this[_0x559788(0x393)],'unitIDs':[...this[_0x559788(0x416)]],'isForwarded':!0x0});}[_0x291ba3(0xa4)](_0x55be74){const _0x5771b9=_0x291ba3;this['_removeClearOtherTimer'](_0x55be74);const _0x2d5e67=window[_0x5771b9(0x24a)](()=>{const _0x20c6a8=_0x5771b9;this[_0x20c6a8(0x133)]['forEach'](_0x53f392=>{const _0x316982=_0x20c6a8;_0x53f392[_0x316982(0x39c)](_0x55be74);});},_0x47ecfb*0x2);this['_clearOtherTimers'][_0x5771b9(0x250)](_0x55be74,_0x2d5e67);}['_removeClearOtherTimer'](_0x58c662){const _0x90e82e=_0x291ba3;if(this['_clearOtherTimers']['has'](_0x58c662)){const _0x52107c=this['_clearOtherTimers']['get'](_0x58c662);_0x52107c&&window[_0x90e82e(0x3fc)](_0x52107c),this[_0x90e82e(0xb4)][_0x90e82e(0x250)](_0x58c662,null);}}[_0x291ba3(0x2ff)](_0x350031){const _0x5dc376=_0x291ba3,{memberID:_0xc8245f,unitIDs:_0x340273}=_0x350031;_0x340273['forEach'](_0x1c7cbb=>{const _0x4b0f41=_0x2d25;var _0x652aa7;const _0x498743=this[_0x4b0f41(0x133)][_0x4b0f41(0x400)](_0x1c7cbb);_0x498743&&(_0x498743[_0x4b0f41(0x39c)](_0xc8245f),(_0x652aa7=this['_ensureSubject'](_0x1c7cbb))==null||_0x652aa7['next'](_0x498743[_0x4b0f41(0x3f6)]===0x0?0x0:0x1));}),this[_0x5dc376(0x1de)](_0xc8245f);}[_0x291ba3(0x2e1)](_0x21af7b){const _0x52533e=_0x291ba3;this[_0x52533e(0xa4)](_0x21af7b[_0x52533e(0x16a)]);}['_send'](_0x4e1273){const _0x2a8079=_0x291ba3;localStorage[_0x2a8079(0x32a)](_0x22d271,JSON['stringify'](_0x4e1273));}[_0x291ba3(0x2fb)](){const _0x2e79c9=_0x291ba3;this['_heartbeatTimer']=window[_0x2e79c9(0xd5)](()=>{const _0x20d38b=_0x2e79c9;this[_0x20d38b(0x306)]({'type':0x2,'memberID':this[_0x20d38b(0x393)]});},_0x47ecfb);}[_0x291ba3(0x354)](_0xc6241d){const _0x184801=_0x291ba3;return this[_0x184801(0x3cd)][_0x184801(0x169)](_0xc6241d)||this[_0x184801(0x3cd)][_0x184801(0x250)](_0xc6241d,new _0x1fc547[(_0x184801(0x467))](0x0)),this['_unitStatus'][_0x184801(0x400)](_0xc6241d);}}function _0x5a4515(_0x3bf076){let _0x4de61e='';for(const _0x36f738 of _0x3bf076){const {startOffset:_0x8f3ce5,endOffset:_0x3dde83,isActive:_0x1597d3}=_0x36f738;_0x4de61e['length']&&(_0x4de61e+=','),_0x4de61e+=_0x8f3ce5+':'+_0x3dde83+':'+(_0x1597d3?'1':'0');}return _0x4de61e;}function _0x3a9cc2(_0x509607){const _0x3e4bc1=_0x291ba3,_0x1f9423=_0x509607[_0x3e4bc1(0x3ef)](','),_0x483d68=[];for(const _0x5293ca of _0x1f9423){const [_0x95fcb7,_0x5ee31e,_0x3f1be6]=_0x5293ca[_0x3e4bc1(0x3ef)](':');_0x483d68['push']({'startOffset':Number(_0x95fcb7),'endOffset':Number(_0x5ee31e),'collapsed':_0x95fcb7===_0x5ee31e,'isActive':_0x3f1be6==='1'});}return _0x483d68[_0x3e4bc1(0x36a)](_0x4ce219=>_0x4ce219[_0x3e4bc1(0x16d)])||(_0x483d68[0x0][_0x3e4bc1(0x16d)]=!0x0),_0x483d68;}class _0x2f34a3 extends _0x2c7fed[_0x291ba3(0x2d5)]{constructor(){const _0x3b6696=_0x291ba3;super(...arguments),_0x24cbc7(this,'_collabCursorState$',new _0x1fc547[(_0x3b6696(0x467))](null)),_0x24cbc7(this,_0x3b6696(0x2d3),this[_0x3b6696(0x320)][_0x3b6696(0x442)]());}[_0x291ba3(0x122)](_0x4e2a77){const _0x2b86eb=_0x291ba3,{unitID:_0x1d161f,memberID:_0x4c2296,textRanges:_0x5ae8e4}=_0x4e2a77,_0x584f3f=_0x5a4515(_0x5ae8e4),_0x453179={'unitID':_0x1d161f,'memberID':_0x4c2296,'selection':_0x584f3f};this[_0x2b86eb(0x320)][_0x2b86eb(0x2ce)](_0x453179);}}var _0x556053=Object['defineProperty'],_0x18b2b3=Object[_0x291ba3(0x373)],_0x57f39a=(_0x5b274b,_0x1529f1,_0x156031,_0x16d1fe)=>{const _0x5a1f8c=_0x291ba3;for(var _0x11513c=_0x16d1fe>0x1?void 0x0:_0x16d1fe?_0x18b2b3(_0x1529f1,_0x156031):_0x1529f1,_0x3b3291=_0x5b274b[_0x5a1f8c(0xbb)]-0x1,_0x2837c8;_0x3b3291>=0x0;_0x3b3291--)(_0x2837c8=_0x5b274b[_0x3b3291])&&(_0x11513c=(_0x16d1fe?_0x2837c8(_0x1529f1,_0x156031,_0x11513c):_0x2837c8(_0x11513c))||_0x11513c);return _0x16d1fe&&_0x11513c&&_0x556053(_0x1529f1,_0x156031,_0x11513c),_0x11513c;},_0xaf4576=(_0x4397d6,_0x44afaf)=>(_0x5a1882,_0x523b70)=>_0x44afaf(_0x5a1882,_0x523b70,_0x4397d6);let _0x4bc5bd=class{constructor(_0x1f9a93,_0x26f42a){this['_injector']=_0x1f9a93,this['_transformService']=_0x26f42a;}[_0x291ba3(0xc3)](_0x49be5b){const _0x4df270=_0x291ba3;var _0x191308;const _0x75dee5=this[_0x4df270(0x10d)][_0x4df270(0x400)](_0x7ac583[_0x4df270(0x35d)]),_0x523926=(_0x191308=_0x75dee5[_0x4df270(0x334)]())!=null?_0x191308:[];if(_0x523926[_0x4df270(0xbb)]===0x0)return;const _0x193c0d=[{'id':_0x4df270(0x1bf),'params':{'unitId':_0x49be5b[_0x4df270(0x2ea)],'actions':null,'textRanges':_0x523926}}],_0x31f206=this[_0x4df270(0xbd)]['transformMutationsWithChangeset'](_0x49be5b,_0x193c0d);if(!_0x2856d7['isTransformMutationsWithChangesetSuccess'](_0x31f206))throw _0x31f206[_0x4df270(0x41d)];const _0x1fc84a=_0x31f206[_0x4df270(0x14f)][0x0][_0x4df270(0x184)][_0x4df270(0x307)];Array[_0x4df270(0x358)](_0x1fc84a)&&_0x1fc84a[_0x4df270(0xbb)]&&_0x75dee5['replaceTextRanges'](_0x1fc84a,!0x1);}};_0x4bc5bd=_0x57f39a([_0xaf4576(0x0,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0xaf4576(0x1,_0x2856d7[_0x291ba3(0x372)])],_0x4bc5bd);const _0x287e60=new Set([_0x244249[_0x291ba3(0x49a)]['id']]);function _0x542440(_0x279dec,_0x145e46,_0x3328bb,_0x158ecd,_0x6cf261){const _0x24789d=_0x291ba3;var _0x3a1747,_0x2df442,_0x2ccb25,_0x37029d;const _0x4e5b28=[];for(const _0x49591 of _0x279dec)if(_0x287e60[_0x24789d(0x169)](_0x49591['id'])){if(_0x4e5b28[_0x24789d(0xbb)]>0x0)break;_0x4e5b28['push'](_0x49591);break;}else _0x4e5b28[_0x24789d(0x44a)](_0x49591);const _0x2e9374=(_0x2df442=(_0x3a1747=_0x6cf261[_0x24789d(0x1b0)]())==null?void 0x0:_0x3a1747[_0x24789d(0x8f)])!=null?_0x2df442:'unknown',_0xb2bb7f=(_0x37029d=(_0x2ccb25=_0x6cf261[_0x24789d(0x1b0)]())==null?void 0x0:_0x2ccb25['memberID'])!=null?_0x37029d:_0x24789d(0x2f3);return{'changeset':{'unitID':_0x145e46,'type':_0x2856d7['mapDocumentTypeToUniverType'](_0x3328bb[_0x24789d(0x252)](_0x145e46)),'baseRev':_0x158ecd[_0x24789d(0x263)](_0x145e46),'revision':0x0,'userID':_0x2e9374,'memberID':_0xb2bb7f,'mutations':_0x4e5b28},'pendingMutations':_0x279dec[_0x24789d(0x35c)](_0x4e5b28[_0x24789d(0xbb)])};}function _0x5235fe(_0x3db2ba,_0x21215a,_0x5c9dea,_0x5d6cc5,_0x3c7d84){const _0x2b61d4=_0x291ba3;var _0x19d3e4,_0x37b2d2,_0x1f0330,_0x5753b0;const _0x29ec18=[_0x3db2ba['reduce']((_0x4c6d06,_0x31c4f2)=>{const _0x52ae9d=_0x2d25;var _0x19e22f;const {id:_0x3ba781}=_0x4c6d06,{id:_0x27f815,type:_0x531d45}=_0x31c4f2,_0x28f927=(_0x19e22f=_0x4c6d06[_0x52ae9d(0x184)])!=null?_0x19e22f:{'actions':null},_0xf1fcb7=_0x31c4f2[_0x52ae9d(0x184)];if(_0x3ba781&&_0x3ba781!==_0x27f815)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x3ba781+_0x52ae9d(0x369)+_0x27f815+'.');return{..._0x4c6d06,'id':_0x27f815,'type':_0x531d45,'params':{'unitId':_0xf1fcb7[_0x52ae9d(0x137)],'textRanges':_0xf1fcb7[_0x52ae9d(0x307)],'actions':_0x2c7fed['JSONX'][_0x52ae9d(0x18a)](_0x28f927['actions'],_0xf1fcb7['actions'])}};},{})],_0x5118e4=(_0x37b2d2=(_0x19d3e4=_0x3c7d84[_0x2b61d4(0x1b0)]())==null?void 0x0:_0x19d3e4[_0x2b61d4(0x8f)])!=null?_0x37b2d2:'unknown',_0x17985a=(_0x5753b0=(_0x1f0330=_0x3c7d84[_0x2b61d4(0x1b0)]())==null?void 0x0:_0x1f0330[_0x2b61d4(0x16a)])!=null?_0x5753b0:_0x2b61d4(0x2f3);return{'changeset':{'unitID':_0x21215a,'type':_0x2856d7[_0x2b61d4(0x42d)](_0x5c9dea[_0x2b61d4(0x252)](_0x21215a)),'baseRev':_0x5d6cc5[_0x2b61d4(0x263)](_0x21215a),'revision':0x0,'userID':_0x5118e4,'memberID':_0x17985a,'mutations':_0x29ec18},'pendingMutations':[]};}const _0x5abf1f={'id':_0x244249[_0x291ba3(0x1f1)]['id'],'type':_0x2c7fed['CommandType'][_0x291ba3(0x325)],'params':{}};var _0x105459=Object[_0x291ba3(0x3e4)],_0x50986=Object[_0x291ba3(0x373)],_0x428496=(_0x47b892,_0x2daf2a,_0xdbadbe,_0x89985f)=>{const _0x5e5dfd=_0x291ba3;for(var _0x571f7b=_0x89985f>0x1?void 0x0:_0x89985f?_0x50986(_0x2daf2a,_0xdbadbe):_0x2daf2a,_0x39ea56=_0x47b892[_0x5e5dfd(0xbb)]-0x1,_0x578888;_0x39ea56>=0x0;_0x39ea56--)(_0x578888=_0x47b892[_0x39ea56])&&(_0x571f7b=(_0x89985f?_0x578888(_0x2daf2a,_0xdbadbe,_0x571f7b):_0x578888(_0x571f7b))||_0x571f7b);return _0x89985f&&_0x571f7b&&_0x105459(_0x2daf2a,_0xdbadbe,_0x571f7b),_0x571f7b;},_0x4d1e63=(_0x2e49b0,_0x5dc1ea)=>(_0x4a8fb9,_0x43e90a)=>_0x5dc1ea(_0x4a8fb9,_0x43e90a,_0x2e49b0),_0x5b6195=(_0x153984=>(_0x153984[_0x291ba3(0x180)]=_0x291ba3(0xc2),_0x153984[_0x291ba3(0x1db)]=_0x291ba3(0x97),_0x153984[_0x291ba3(0xda)]=_0x291ba3(0x2fa),_0x153984[_0x291ba3(0x48f)]=_0x291ba3(0x1a1),_0x153984['AWAITING_WITH_PENDING']=_0x291ba3(0x3a0),_0x153984[_0x291ba3(0x458)]=_0x291ba3(0x26c),_0x153984[_0x291ba3(0x426)]='conflict',_0x153984['OFFLINE']=_0x291ba3(0x2c1),_0x153984))(_0x5b6195||{});class _0x4d1d97{constructor(_0xd710ca,_0x1a5267,_0x11636a,_0xb9085c,_0x4c2bfa,_0x4f3978,_0x1f82c7,_0x582ce7,_0x191683){const _0x5ef4cf=_0x291ba3;_0x24cbc7(this,_0x5ef4cf(0x2b6),null),_0x24cbc7(this,'_pendingMutations',[]),(this['unitID']=_0xd710ca,this[_0x5ef4cf(0x33c)]=_0x1a5267,this['_handler']=_0x4c2bfa,this[_0x5ef4cf(0xc0)]=_0x4f3978,this['_undoRedoService']=_0x1f82c7,this[_0x5ef4cf(0x1cd)]=_0x582ce7,this[_0x5ef4cf(0x106)]=_0x191683,this[_0x5ef4cf(0x2b6)]=_0x11636a,this[_0x5ef4cf(0x194)]=_0xb9085c);}[_0x291ba3(0x282)](_0xed25d6){const _0x1ddfd6=_0x291ba3,_0x6a9360=this[_0x1ddfd6(0x1cd)][_0x1ddfd6(0x263)](this[_0x1ddfd6(0x2ea)]);return _0xed25d6[_0x1ddfd6(0x157)]>_0x6a9360+0x1?(this[_0x1ddfd6(0x324)][_0x1ddfd6(0x29d)]({'from':_0x6a9360,'to':_0xed25d6['revision']-0x1}),!0x0):!0x1;}[_0x291ba3(0x2b3)](_0x948d63){const _0x10c2ca=_0x291ba3;this[_0x10c2ca(0x181)][_0x10c2ca(0x118)](this[_0x10c2ca(0x2ea)],_0x948d63);}[_0x291ba3(0x131)](_0x53ca8e){const _0x14330a=_0x291ba3;var _0x6a8a55,_0x16fad5;(_0x16fad5=(_0x6a8a55=this[_0x14330a(0x324)])[_0x14330a(0x187)])==null||_0x16fad5[_0x14330a(0x384)](_0x6a8a55,_0x53ca8e);}[_0x291ba3(0x2db)](_0x27eed0){const _0x19b0b8=_0x291ba3;var _0x5c2b4c,_0x43e6ce;return(_0x43e6ce=(_0x5c2b4c=this[_0x19b0b8(0x324)])[_0x19b0b8(0x1ee)])==null?void 0x0:_0x43e6ce[_0x19b0b8(0x384)](_0x5c2b4c,_0x27eed0);}[_0x291ba3(0x2f9)](_0x22dae6){const _0xd69a12=_0x291ba3;var _0x368bcf,_0x4be4e7,_0x5543c7;return(_0x5543c7=(_0x4be4e7=(_0x368bcf=this[_0xd69a12(0x324)])[_0xd69a12(0x3d5)])==null?void 0x0:_0x4be4e7[_0xd69a12(0x384)](_0x368bcf,_0x22dae6))!=null?_0x5543c7:_0x22dae6;}[_0x291ba3(0x2ba)](_0x30aa89){const _0x5f31d4=_0x291ba3;var _0x102fb2,_0x1d9ef2;if(this[_0x5f31d4(0x33c)]===_0x4cd70d['UNIVER_DOC']){const {unitID:_0x40c90f,mutations:_0x51868d,memberID:_0xc11e2b}=_0x30aa89,_0x454153=_0x51868d[0x0][_0x5f31d4(0x184)]['textRanges'];Array['isArray'](_0x454153)&&_0x454153['length']>0x0&&((_0x1d9ef2=(_0x102fb2=this[_0x5f31d4(0x324)])[_0x5f31d4(0xdb)])==null||_0x1d9ef2[_0x5f31d4(0x384)](_0x102fb2,{'unitID':_0x40c90f,'memberID':_0xc11e2b,'textRanges':_0x454153}));}}['_updateLocalCache'](){const _0xf03584=_0x291ba3;this[_0xf03584(0x106)]['updateOfflineData'](this[_0xf03584(0x2ea)],this['type'],this[_0xf03584(0x2b6)],this['_pendingMutations']);}[_0x291ba3(0x316)](){const _0x5aa533=_0x291ba3;return this[_0x5aa533(0x1cd)][_0x5aa533(0x263)](this[_0x5aa533(0x2ea)]);}['_incrementRevisionNumber'](){const _0x123a70=_0x291ba3;this['_revisionService']['incrementRevOfUnit'](this[_0x123a70(0x2ea)]);}['_executeRemoteChangeset'](_0x47e053){const _0x5ad7cf=_0x291ba3;var _0x413e32;const _0x120101=this[_0x5ad7cf(0x2f9)](_0x47e053),_0x3dbaf1=_0x2c7fed[_0x5ad7cf(0x13f)](_0x120101[_0x5ad7cf(0x1a9)],this[_0x5ad7cf(0xc0)],{'fromCollab':!0x0});if(!_0x3dbaf1[_0x5ad7cf(0x218)])throw _0x3dbaf1['error']instanceof Error?_0x3dbaf1[_0x5ad7cf(0x41d)]:new Error((_0x413e32=_0x3dbaf1[_0x5ad7cf(0x41d)])!=null?_0x413e32:_0x5ad7cf(0x33a));this[_0x5ad7cf(0x2db)](_0x120101),this[_0x5ad7cf(0x2b3)](_0x47e053),this[_0x5ad7cf(0x131)](_0x120101),this[_0x5ad7cf(0x2ba)](_0x120101),this[_0x5ad7cf(0xb8)]();}}let _0x157452=class extends _0x4d1d97{constructor(_0x4bdbf6,_0x24d772,_0x166aab,_0x281f95,_0x3c7b7d,_0x1ebc76,_0x55468d,_0x548bc1,_0x472ca0,_0x369a8e){const _0x30bac6=_0x291ba3;super(_0x4bdbf6,_0x24d772,null,[],_0x166aab,_0x548bc1,_0x55468d,_0x281f95,_0x3c7b7d),_0x24cbc7(this,_0x30bac6(0x469),'synced'),(this[_0x30bac6(0x10d)]=_0x1ebc76,this[_0x30bac6(0x139)]=_0x472ca0,this[_0x30bac6(0xbd)]=_0x369a8e);}[_0x291ba3(0x427)](_0x579085){const _0x324724=_0x291ba3,_0x3c9bd7=this[_0x324724(0x10d)][_0x324724(0x266)](_0x571839,this[_0x324724(0x2ea)],this[_0x324724(0x33c)],[_0x579085],this[_0x324724(0x324)]);return _0x3c9bd7[_0x324724(0x3dd)](),_0x3c9bd7[_0x324724(0x2ae)](),_0x3c9bd7;}[_0x291ba3(0x359)](_0x13bedc){const _0x5b965b=_0x291ba3;if(this['_checkMissing'](_0x13bedc))return this[_0x5b965b(0x10d)][_0x5b965b(0x266)](_0x3feb1e,this['unitID'],this[_0x5b965b(0x33c)],null,[],null,[_0x13bedc],this[_0x5b965b(0x324)]);try{const _0x5d9f11=this[_0x5b965b(0xbd)][_0x5b965b(0x3b8)](_0x13bedc,[_0x5abf1f]);if(_0x2856d7[_0x5b965b(0x38a)](_0x5d9f11)){const {c1Prime:_0x5ba223}=_0x5d9f11;return this[_0x5b965b(0x1d5)](_0x5ba223),this;}throw _0x5d9f11[_0x5b965b(0x41d)];}catch(_0x34c268){return this[_0x5b965b(0x139)][_0x5b965b(0x41d)](_0x34c268),this['_onConflict'](!0x1);}}[_0x291ba3(0x25e)](_0x779231){const _0x550d82=_0x291ba3;return this[_0x550d82(0x10d)][_0x550d82(0x266)](_0x55ee11,this[_0x550d82(0x2ea)],this[_0x550d82(0x33c)],null,[],this[_0x550d82(0x324)],_0x779231);}[_0x291ba3(0x2fc)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x40ae69=_0x291ba3;throw new Error(_0x40ae69(0x38e));}['toggleOffline'](){const _0x534772=_0x291ba3;return this['_injector'][_0x534772(0x266)](_0x2b854c,this['unitID'],this[_0x534772(0x33c)],null,[],this[_0x534772(0x324)]);}[_0x291ba3(0x1d9)](){return this;}[_0x291ba3(0x391)](){const _0x483d7c=_0x291ba3;throw new Error(_0x483d7c(0x330));}[_0x291ba3(0x228)](){const _0x40ee86=_0x291ba3,_0x174fa7=this[_0x40ee86(0x1cd)][_0x40ee86(0x263)](this[_0x40ee86(0x2ea)]);return this[_0x40ee86(0x324)][_0x40ee86(0x29d)]({'from':_0x174fa7,'to':0x0}),this[_0x40ee86(0x10d)]['createInstance'](_0x3feb1e,this[_0x40ee86(0x2ea)],this['type'],null,[],null,[],this[_0x40ee86(0x324)]);}};_0x157452=_0x428496([_0x4d1e63(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7[_0x291ba3(0x363)])),_0x4d1e63(0x4,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1[_0x291ba3(0x378)])),_0x4d1e63(0x5,_0x2c7fed['Inject'](_0x2c7fed[_0x291ba3(0x4a2)])),_0x4d1e63(0x6,_0x2c7fed['IUndoRedoService']),_0x4d1e63(0x7,_0x2c7fed[_0x291ba3(0x15a)]),_0x4d1e63(0x8,_0x2c7fed[_0x291ba3(0x2fd)]),_0x4d1e63(0x9,_0x2856d7['ITransformService'])],_0x157452);let _0x571839=class extends _0x4d1d97{constructor(_0x1f3d52,_0x5b01c5,_0x3a8df7,_0x16f98b,_0x42ef4c,_0x28e75d,_0x36c4ee,_0x406631,_0x45933d,_0x285591,_0x3ade0d,_0x3da333,_0x23ca6a,_0x417bb7){const _0x23c5a7=_0x291ba3;super(_0x1f3d52,_0x5b01c5,null,_0x3a8df7,_0x16f98b,_0x285591,_0x417bb7,_0x28e75d,_0x36c4ee),_0x24cbc7(this,_0x23c5a7(0x469),'pending'),_0x24cbc7(this,'_scheduleTimestamp',null),_0x24cbc7(this,_0x23c5a7(0x232),null),(this[_0x23c5a7(0x10d)]=_0x42ef4c,this[_0x23c5a7(0x29e)]=_0x406631,this[_0x23c5a7(0x139)]=_0x45933d,this['_configService']=_0x3ade0d,this[_0x23c5a7(0xbd)]=_0x3da333,this[_0x23c5a7(0x79)]=_0x23ca6a);}[_0x291ba3(0x427)](_0x173d37){const _0x3cf8c9=_0x291ba3;return this[_0x3cf8c9(0x194)][_0x3cf8c9(0x44a)](_0x173d37),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0xe4ef31){const _0x33e8ca=_0x291ba3;if(this[_0x33e8ca(0x282)](_0xe4ef31))return this[_0x33e8ca(0x24e)](),this[_0x33e8ca(0x10d)][_0x33e8ca(0x266)](_0x3feb1e,this[_0x33e8ca(0x2ea)],this[_0x33e8ca(0x33c)],null,this[_0x33e8ca(0x194)],null,[_0xe4ef31],this[_0x33e8ca(0x324)]);try{const _0xff9694=this[_0x33e8ca(0xbd)][_0x33e8ca(0x3b8)](_0xe4ef31,this[_0x33e8ca(0x194)]);if(_0x2856d7[_0x33e8ca(0x38a)](_0xff9694)){const {c1Prime:_0x25c0e1,m2Prime:_0x147f2c}=_0xff9694;this[_0x33e8ca(0x1d5)](_0x25c0e1);const _0x29a5ad=this[_0x33e8ca(0x10d)]['createInstance'](_0x571839,this[_0x33e8ca(0x2ea)],this[_0x33e8ca(0x33c)],_0x147f2c,this['_handler']);return this[_0x33e8ca(0x24e)](),_0x29a5ad['_schedule'](this[_0x33e8ca(0x144)]?Math[_0x33e8ca(0x305)](0x0,new Date()['getTime']()-this[_0x33e8ca(0x144)]):this[_0x33e8ca(0x2e8)]()),_0x29a5ad;}throw _0xff9694['error'];}catch(_0x5a734d){return this[_0x33e8ca(0x139)][_0x33e8ca(0x41d)](_0x5a734d),this['_onConflict'](!0x1);}}[_0x291ba3(0x2fc)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x291ba3(0x82)](){const _0x14cdb3=_0x291ba3;throw new Error(_0x14cdb3(0x37f));}['toggleOffline'](){const _0x3c2e75=_0x291ba3;return this[_0x3c2e75(0x24e)](),this['_injector'][_0x3c2e75(0x266)](_0x2b854c,this[_0x3c2e75(0x2ea)],this[_0x3c2e75(0x33c)],null,this[_0x3c2e75(0x194)],this[_0x3c2e75(0x324)]);}[_0x291ba3(0x1d9)](){return this;}['_schedule'](_0x2b7001){const _0x5d43f8=_0x291ba3,_0x20519e=_0x2b7001!=null?_0x2b7001:this[_0x5d43f8(0x2e8)]();this[_0x5d43f8(0x144)]=new Date()[_0x5d43f8(0x87)](),this[_0x5d43f8(0x232)]=window['setTimeout'](()=>{const _0x17c098=_0x5d43f8;this[_0x17c098(0x24e)]();let _0x289e55=null;switch(this[_0x17c098(0x33c)]){case _0x4cd70d[_0x17c098(0x2aa)]:{_0x289e55=_0x542440(this[_0x17c098(0x194)],this[_0x17c098(0x2ea)],this['_univerInstanceService'],this['_revisionService'],this[_0x17c098(0x29e)]);break;}case _0x4cd70d['UNIVER_DOC']:{this[_0x17c098(0x194)]['every'](_0x182948=>_0x182948['id']===_0x7ac583[_0x17c098(0x30e)]['id'])?_0x289e55=_0x5235fe(this['_pendingMutations'],this[_0x17c098(0x2ea)],this[_0x17c098(0x79)],this[_0x17c098(0x1cd)],this['_memberService']):_0x289e55=_0x542440(this[_0x17c098(0x194)],this[_0x17c098(0x2ea)],this['_univerInstanceService'],this[_0x17c098(0x1cd)],this[_0x17c098(0x29e)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x17c098(0x33c)]+_0x17c098(0x1a6));}const {changeset:_0x4c8634,pendingMutations:_0x33d42e}=_0x289e55;this[_0x17c098(0x324)][_0x17c098(0x111)](_0x4c8634);const _0x5e69be=_0x33d42e[_0x17c098(0xbb)]?this[_0x17c098(0x10d)][_0x17c098(0x266)](_0x3d3aee,this[_0x17c098(0x2ea)],this[_0x17c098(0x33c)],_0x4c8634,_0x33d42e,this[_0x17c098(0x324)]):this[_0x17c098(0x10d)]['createInstance'](_0x56fd74,this[_0x17c098(0x2ea)],this[_0x17c098(0x33c)],_0x4c8634,this[_0x17c098(0x324)]);_0x5e69be[_0x17c098(0x2ae)](),this[_0x17c098(0x324)][_0x17c098(0x491)](this,_0x5e69be);},_0x20519e);}[_0x291ba3(0x2e8)](){const _0x56c441=_0x291ba3;var _0x21bb9d;const _0x4413e4=this['_configService'][_0x56c441(0x304)](_0x229401);return(_0x21bb9d=_0x4413e4==null?void 0x0:_0x4413e4[_0x56c441(0x1dd)])!=null?_0x21bb9d:0x7d0;}[_0x291ba3(0x391)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x291ba3(0x24e)](){const _0x8629c6=_0x291ba3;this[_0x8629c6(0x232)]!=null&&(clearTimeout(this[_0x8629c6(0x232)]),this[_0x8629c6(0x232)]=null);}[_0x291ba3(0x25e)](_0x4c763d){const _0x18450d=_0x291ba3;return this[_0x18450d(0x24e)](),this[_0x18450d(0x10d)][_0x18450d(0x266)](_0x55ee11,this[_0x18450d(0x2ea)],this['type'],null,this[_0x18450d(0x194)],this['_handler'],_0x4c763d);}};_0x571839=_0x428496([_0x4d1e63(0x4,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed['Injector'])),_0x4d1e63(0x5,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7[_0x291ba3(0x363)])),_0x4d1e63(0x6,_0x2c7fed['Inject'](_0x594fe1[_0x291ba3(0x378)])),_0x4d1e63(0x7,_0x2c7fed['Inject'](_0x4d411d)),_0x4d1e63(0x8,_0x2c7fed['ILogService']),_0x4d1e63(0x9,_0x2c7fed[_0x291ba3(0x15a)]),_0x4d1e63(0xa,_0x2c7fed[_0x291ba3(0x309)]),_0x4d1e63(0xb,_0x2856d7['ITransformService']),_0x4d1e63(0xc,_0x2c7fed[_0x291ba3(0x27a)]),_0x4d1e63(0xd,_0x2c7fed[_0x291ba3(0x26b)])],_0x571839);let _0x56fd74=class extends _0x4d1d97{constructor(_0x5c90a0,_0xec94d8,_0xabb68e,_0x3c6cb7,_0x465b38,_0x484365,_0x219be3,_0x49227c,_0x3f1bd4,_0xf06e52,_0x2049db){const _0x1760ac=_0x291ba3;super(_0x5c90a0,_0xec94d8,_0xabb68e,[],_0x3c6cb7,_0x49227c,_0x2049db,_0x484365,_0x219be3),_0x24cbc7(this,_0x1760ac(0x469),_0x1760ac(0x1a1)),(this[_0x1760ac(0x10d)]=_0x465b38,this[_0x1760ac(0x139)]=_0x3f1bd4,this['_transformService']=_0xf06e52);}[_0x291ba3(0x427)](_0x56069f){const _0x387f74=_0x291ba3,_0x1d2050=this[_0x387f74(0x10d)]['createInstance'](_0x3d3aee,this['unitID'],this[_0x387f74(0x33c)],this[_0x387f74(0x2b6)],[_0x56069f],this[_0x387f74(0x324)]);return _0x1d2050[_0x387f74(0x2ae)](),_0x1d2050;}[_0x291ba3(0x359)](_0x3a0bd7){const _0x32e228=_0x291ba3;if(this['_checkMissing'](_0x3a0bd7))return this[_0x32e228(0x10d)][_0x32e228(0x266)](_0x3feb1e,this[_0x32e228(0x2ea)],this[_0x32e228(0x33c)],this['_awaitingChangeset'],[],null,[_0x3a0bd7],this['_handler']);try{const _0x2f3b6d=this[_0x32e228(0xbd)][_0x32e228(0x126)]([_0x3a0bd7],[this[_0x32e228(0x2b6)]],!0x1);if(_0x2856d7[_0x32e228(0x360)](_0x2f3b6d)){const {c1Prime:_0x595cc3,c2Prime:_0x32ecee}=_0x2f3b6d;this[_0x32e228(0x1d5)](_0x595cc3[0x0]),_0x32ecee[0x0]['baseRev']=this[_0x32e228(0x316)]();const _0x2408c1=this[_0x32e228(0x10d)][_0x32e228(0x266)](_0x56fd74,this[_0x32e228(0x2ea)],this[_0x32e228(0x33c)],_0x32ecee[0x0],this[_0x32e228(0x324)]);return _0x2408c1[_0x32e228(0x2ae)](),_0x2408c1;}return this[_0x32e228(0x25e)](!0x1);}catch(_0x166a73){return this['_logService'][_0x32e228(0x41d)](_0x166a73),this[_0x32e228(0x25e)](!0x1);}}[_0x291ba3(0x2fc)](_0x3889d5){const _0x151ad4=_0x291ba3,_0x3c65f0=this[_0x151ad4(0x1cd)][_0x151ad4(0x263)](this[_0x151ad4(0x2ea)]);if(_0x3889d5[_0x151ad4(0x157)]<_0x3c65f0-0x1)return this;if(this[_0x151ad4(0x282)](_0x3889d5))return this[_0x151ad4(0x10d)][_0x151ad4(0x266)](_0x3feb1e,this[_0x151ad4(0x2ea)],this[_0x151ad4(0x33c)],null,[],this['_awaitingChangeset'],[],this[_0x151ad4(0x324)]);this[_0x151ad4(0xb8)]();const _0x5b5982=this['_injector'][_0x151ad4(0x266)](_0x157452,this[_0x151ad4(0x2ea)],this[_0x151ad4(0x33c)],this[_0x151ad4(0x324)]);return _0x5b5982[_0x151ad4(0x2ae)](),_0x5b5982;}[_0x291ba3(0x82)](_0x366bad){const _0x56bbc0=_0x291ba3;return this['_onConflict'](!!(_0x366bad!=null&&_0x366bad[_0x56bbc0(0x119)]));}['toggleOffline'](){const _0x23a23c=_0x291ba3;return this['_injector']['createInstance'](_0x2b854c,this[_0x23a23c(0x2ea)],this['type'],this[_0x23a23c(0x2b6)],[],this[_0x23a23c(0x324)]);}[_0x291ba3(0x1d9)](){return this;}[_0x291ba3(0x391)](){const _0x11d71e=_0x291ba3;this['_handler']['onSendChangeset'](this[_0x11d71e(0x2b6)]);}[_0x291ba3(0x25e)](_0x4ed196){const _0x5a1f9d=_0x291ba3;return this['_injector'][_0x5a1f9d(0x266)](_0x55ee11,this[_0x5a1f9d(0x2ea)],this[_0x5a1f9d(0x33c)],this['_awaitingChangeset'],[],this['_handler'],_0x4ed196);}};_0x56fd74=_0x428496([_0x4d1e63(0x4,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x4d1e63(0x5,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7['RevisionService'])),_0x4d1e63(0x6,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1['LocalCacheService'])),_0x4d1e63(0x7,_0x2c7fed[_0x291ba3(0x15a)]),_0x4d1e63(0x8,_0x2c7fed['ILogService']),_0x4d1e63(0x9,_0x2856d7[_0x291ba3(0x372)]),_0x4d1e63(0xa,_0x2c7fed[_0x291ba3(0x26b)])],_0x56fd74);let _0x3d3aee=class extends _0x4d1d97{constructor(_0x2ca5b8,_0xd1ec8a,_0x40c39b,_0x4c8de4,_0x545961,_0x492fa1,_0x2e7c44,_0xc911e0,_0x290984,_0x5b35b5,_0x147667,_0x3e47db){const _0x29afb9=_0x291ba3;super(_0x2ca5b8,_0xd1ec8a,_0x40c39b,_0x4c8de4,_0x545961,_0x290984,_0x3e47db,_0x2e7c44,_0xc911e0),_0x24cbc7(this,'status',_0x29afb9(0x3a0)),(this['_injector']=_0x492fa1,this['_logService']=_0x5b35b5,this[_0x29afb9(0xbd)]=_0x147667);}[_0x291ba3(0x427)](_0x2dda45){const _0x98f84a=_0x291ba3;return this['_pendingMutations'][_0x98f84a(0x44a)](_0x2dda45),this;}[_0x291ba3(0x359)](_0x1fc705){const _0x258efc=_0x291ba3;if(this['_checkMissing'](_0x1fc705))return this['_injector'][_0x258efc(0x266)](_0x3feb1e,this[_0x258efc(0x2ea)],this[_0x258efc(0x33c)],this[_0x258efc(0x2b6)],this['_pendingMutations'],null,[_0x1fc705],this['_handler']);try{const _0x42f967=this['_transformService']['transformChangesets']([_0x1fc705],[this[_0x258efc(0x2b6)]],!0x1);if(_0x2856d7[_0x258efc(0x360)](_0x42f967)){const {c1Prime:_0x1e6440,c2Prime:_0x597c65}=_0x42f967,_0x32116e=this[_0x258efc(0xbd)][_0x258efc(0x3b8)](_0x1e6440[0x0],this['_pendingMutations']);if(_0x2856d7[_0x258efc(0x38a)](_0x32116e)){const {c1Prime:_0x2f77c8,m2Prime:_0x13f79a}=_0x32116e;return this[_0x258efc(0x1d5)](_0x2f77c8),_0x597c65[0x0][_0x258efc(0x480)]=this[_0x258efc(0x316)](),this[_0x258efc(0x10d)][_0x258efc(0x266)](_0x3d3aee,this['unitID'],this['type'],_0x597c65[0x0],_0x13f79a,this[_0x258efc(0x324)]);}throw _0x32116e[_0x258efc(0x41d)];}throw _0x42f967[_0x258efc(0x41d)];}catch(_0x4097b2){return this[_0x258efc(0x139)]['error'](_0x4097b2),this['_onConflict'](!0x1);}}[_0x291ba3(0x2fc)](_0x3f3677){const _0x1e01bc=_0x291ba3;if(this['_checkMissing'](_0x3f3677))return this['_injector'][_0x1e01bc(0x266)](_0x3feb1e,this[_0x1e01bc(0x2ea)],this[_0x1e01bc(0x33c)],null,this['_pendingMutations'],this[_0x1e01bc(0x2b6)],[],this[_0x1e01bc(0x324)]);this['_incrementRevisionNumber']();const _0xf5921d=this['_injector']['createInstance'](_0x571839,this[_0x1e01bc(0x2ea)],this[_0x1e01bc(0x33c)],this['_pendingMutations'],this[_0x1e01bc(0x324)]);return _0xf5921d[_0x1e01bc(0x3dd)](),_0xf5921d[_0x1e01bc(0x2ae)](),_0xf5921d;}[_0x291ba3(0x82)](_0x209498){const _0x494064=_0x291ba3;return this[_0x494064(0x25e)](!!(_0x209498!=null&&_0x209498[_0x494064(0x119)]));}[_0x291ba3(0x11b)](){const _0x4fe95a=_0x291ba3;return this[_0x4fe95a(0x10d)][_0x4fe95a(0x266)](_0x2b854c,this[_0x4fe95a(0x2ea)],this[_0x4fe95a(0x33c)],this['_awaitingChangeset'],this[_0x4fe95a(0x194)],this['_handler']);}[_0x291ba3(0x1d9)](){return this;}[_0x291ba3(0x391)](){const _0x631add=_0x291ba3;this[_0x631add(0x324)][_0x631add(0x111)](this[_0x631add(0x2b6)]);}[_0x291ba3(0x25e)](_0x38cac7){const _0x15100e=_0x291ba3;return this['_injector'][_0x15100e(0x266)](_0x55ee11,this[_0x15100e(0x2ea)],this['type'],null,this[_0x15100e(0x194)],this[_0x15100e(0x324)],_0x38cac7);}};_0x3d3aee=_0x428496([_0x4d1e63(0x5,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x4d1e63(0x6,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7[_0x291ba3(0x363)])),_0x4d1e63(0x7,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1[_0x291ba3(0x378)])),_0x4d1e63(0x8,_0x2c7fed['ICommandService']),_0x4d1e63(0x9,_0x2c7fed[_0x291ba3(0x2fd)]),_0x4d1e63(0xa,_0x2856d7[_0x291ba3(0x372)]),_0x4d1e63(0xb,_0x2c7fed[_0x291ba3(0x26b)])],_0x3d3aee);let _0x55ee11=class extends _0x4d1d97{constructor(_0x178047,_0x45a5ba,_0x270f2e,_0x108a93,_0x2dc6bf,_0x2a5d0c=!0x1,_0xa79901,_0x347a0c,_0x5a025b,_0x188747,_0x469e28,_0x57e278,_0x28207e){const _0xe40bfc=_0x291ba3;super(_0x178047,_0x45a5ba,_0x270f2e,_0x108a93,_0x2dc6bf,_0x347a0c,_0x5a025b,_0x469e28,_0x188747),_0x24cbc7(this,_0xe40bfc(0x469),_0xe40bfc(0x1e5)),(this['_isPermissionRej']=_0x2a5d0c,this[_0xe40bfc(0x2d4)]=_0xa79901,this['_localeService']=_0x57e278,this[_0xe40bfc(0x3f1)]=_0x28207e,this[_0xe40bfc(0x41e)](),this[_0xe40bfc(0x3d4)](),this[_0xe40bfc(0x49d)]());}['appendMutation'](){return this;}[_0x291ba3(0x359)](){return this;}[_0x291ba3(0x2fc)](){return this;}[_0x291ba3(0x82)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x291ba3(0x391)](){const _0x3fd8bc=_0x291ba3;throw new Error(_0x3fd8bc(0x24f));}[_0x291ba3(0x3d4)](){const _0x57e4e0=_0x291ba3;this['_localCacheService'][_0x57e4e0(0x274)](this[_0x57e4e0(0x2ea)],this[_0x57e4e0(0x33c)],null,[]);}['_showConflictNotification'](){const _0x1d83ef=_0x291ba3;this[_0x1d83ef(0x1f9)]?this[_0x1d83ef(0x3f1)][_0x1d83ef(0x116)]({'title':this[_0x1d83ef(0x277)]['t']('permission.title'),'content':this[_0x1d83ef(0x277)]['t'](_0x1d83ef(0x40f)),'type':_0x1d83ef(0x41d),'duration':0x0}):this[_0x1d83ef(0x3f1)][_0x1d83ef(0x116)]({'title':this['_localeService']['t'](_0x1d83ef(0x9c)),'content':this[_0x1d83ef(0x277)]['t'](_0x1d83ef(0x29b)),'type':_0x1d83ef(0x41d),'duration':0x0});}['_disableEditing'](){const _0x275a60=_0x291ba3;this[_0x275a60(0x2d4)][_0x275a60(0x1e6)](new _0x244249[(_0x275a60(0x2e9))](this[_0x275a60(0x2ea)])['id'],!0x1);}};_0x55ee11=_0x428496([_0x4d1e63(0x6,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed['IPermissionService'])),_0x4d1e63(0x7,_0x2c7fed[_0x291ba3(0x15a)]),_0x4d1e63(0x8,_0x2c7fed[_0x291ba3(0x26b)]),_0x4d1e63(0x9,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1[_0x291ba3(0x378)])),_0x4d1e63(0xa,_0x2c7fed['Inject'](_0x2856d7['RevisionService'])),_0x4d1e63(0xb,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x1a7)])),_0x4d1e63(0xc,_0x4b403d['INotificationService'])],_0x55ee11);let _0x2b854c=class extends _0x4d1d97{constructor(_0x1ceb5e,_0x29eb7d,_0x1f269b,_0x4ea222,_0x48135a,_0x5d8f5f,_0x42b532,_0xbc2b49,_0x366603,_0x2bbb47){const _0x5f4346=_0x291ba3;super(_0x1ceb5e,_0x29eb7d,_0x1f269b,_0x4ea222,_0x48135a,_0x366603,_0x2bbb47,_0x42b532,_0xbc2b49),_0x24cbc7(this,_0x5f4346(0x469),'offline'),this[_0x5f4346(0x10d)]=_0x5d8f5f;}['appendMutation'](_0x43b301){const _0x15b432=_0x291ba3;return this['_pendingMutations'][_0x15b432(0x44a)](_0x43b301),this[_0x15b432(0x2ae)](),this;}[_0x291ba3(0x359)](_0x201e09){const _0x394b04=_0x291ba3;throw new Error(_0x394b04(0xb7));}['onRemoteAck'](){const _0x3c0204=_0x291ba3;throw new Error(_0x3c0204(0x2f1));}[_0x291ba3(0x82)](){const _0x2b3406=_0x291ba3;throw new Error(_0x2b3406(0x371));}[_0x291ba3(0x11b)](){return this;}[_0x291ba3(0x1d9)](){const _0x39c753=_0x291ba3,{_injector:_0x1639a3,_pendingMutations:_0x3a0c31,_awaitingChangeset:_0x3ae867,unitID:_0x20616e,_handler:_0x19e64a,type:_0x5047b6}=this,_0x4c6db7=_0x1b045c(_0x1639a3,_0x20616e,_0x5047b6,_0x3ae867,_0x3a0c31,_0x19e64a);return _0x4c6db7 instanceof _0x571839?_0x4c6db7[_0x39c753(0x3dd)]():(_0x4c6db7 instanceof _0x3d3aee||_0x4c6db7 instanceof _0x56fd74)&&_0x4c6db7['resend'](),_0x4c6db7;}['resend'](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x2b854c=_0x428496([_0x4d1e63(0x5,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed['Injector'])),_0x4d1e63(0x6,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7['RevisionService'])),_0x4d1e63(0x7,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1[_0x291ba3(0x378)])),_0x4d1e63(0x8,_0x2c7fed['ICommandService']),_0x4d1e63(0x9,_0x2c7fed[_0x291ba3(0x26b)])],_0x2b854c);let _0x3feb1e=class extends _0x4d1d97{constructor(_0x1f6502,_0x2ff155,_0x16d0dd,_0x4807d2,_0x3e971c,_0x2c2900,_0x252e07,_0x5d5d75,_0x57ebb7,_0x5d6363,_0x549340,_0x1b2350,_0xba0d0e,_0x209e24){const _0x55ee3c=_0x291ba3;super(_0x1f6502,_0x2ff155,_0x16d0dd,_0x4807d2,_0x252e07,_0x1b2350,_0xba0d0e,_0x57ebb7,_0x5d6363),_0x24cbc7(this,'status',_0x55ee3c(0x26c)),(this[_0x55ee3c(0x34c)]=_0x3e971c,this[_0x55ee3c(0x3a5)]=_0x2c2900,this[_0x55ee3c(0x10d)]=_0x5d5d75,this[_0x55ee3c(0x139)]=_0x549340,this[_0x55ee3c(0xbd)]=_0x209e24);}[_0x291ba3(0x19a)](_0x5013ee){const _0x167301=_0x291ba3;try{const _0x57f43c=[..._0x5013ee,...this[_0x167301(0x3a5)]],_0x937558=[this[_0x167301(0x2b6)]||this[_0x167301(0x34c)]][_0x167301(0x1d1)](_0x5df8e3=>!!_0x5df8e3);let _0x21cbca,_0x461e7d;if(_0x937558['length']){const _0x2279dd=this['_transformService'][_0x167301(0x126)](_0x57f43c,_0x937558,!0x1);if(!_0x2856d7['isTransformChangesetsSuccess'](_0x2279dd))throw _0x2279dd[_0x167301(0x41d)];_0x21cbca=_0x2279dd['c1Prime'],_0x461e7d=_0x2279dd['c2Prime'];}else _0x21cbca=_0x57f43c,_0x461e7d=[];let _0x3a880d=this[_0x167301(0x194)];_0x21cbca[_0x167301(0xb2)](_0x23f0b7=>{const _0x4db7bd=_0x167301;let _0x7f30d2;if(_0x3a880d['length']){const _0xb3acae=this[_0x4db7bd(0xbd)][_0x4db7bd(0x3b8)](_0x23f0b7,_0x3a880d);if(!_0x2856d7[_0x4db7bd(0x38a)](_0xb3acae))throw _0xb3acae[_0x4db7bd(0x41d)];_0x7f30d2=_0xb3acae[_0x4db7bd(0xff)],_0x3a880d=_0xb3acae['m2Prime'];}else _0x7f30d2=_0x23f0b7;this[_0x4db7bd(0x1d5)](_0x7f30d2);}),this[_0x167301(0x34c)]&&this[_0x167301(0xb8)](),this['_awaitingChangeset']&&_0x461e7d[_0x167301(0xbb)]&&(_0x461e7d[0x0][_0x167301(0x480)]=this[_0x167301(0x316)]());let _0x22d259;if(this[_0x167301(0x2b6)]&&_0x3a880d[_0x167301(0xbb)]!==0x0)_0x22d259=this[_0x167301(0x10d)][_0x167301(0x266)](_0x3d3aee,this['unitID'],this[_0x167301(0x33c)],_0x461e7d[0x0],_0x3a880d,this[_0x167301(0x324)]);else{if(this[_0x167301(0x2b6)]&&_0x3a880d[_0x167301(0xbb)]===0x0)_0x461e7d[0x0][_0x167301(0x480)]=this[_0x167301(0x316)](),_0x22d259=this[_0x167301(0x10d)][_0x167301(0x266)](_0x56fd74,this['unitID'],this[_0x167301(0x33c)],_0x461e7d[0x0],this[_0x167301(0x324)]);else{if(_0x3a880d['length']!==0x0){const _0x29f87c=this[_0x167301(0x10d)][_0x167301(0x266)](_0x571839,this[_0x167301(0x2ea)],this[_0x167301(0x33c)],_0x3a880d,this[_0x167301(0x324)]);_0x29f87c['_schedule'](),_0x22d259=_0x29f87c;}else _0x22d259=this[_0x167301(0x10d)][_0x167301(0x266)](_0x157452,this[_0x167301(0x2ea)],this[_0x167301(0x33c)],this[_0x167301(0x324)]);}}return _0x22d259[_0x167301(0x2ae)](),_0x22d259;}catch(_0x3d7a97){return this[_0x167301(0x139)][_0x167301(0x41d)](_0x167301(0x163),_0x167301(0xdd),_0x3d7a97),this[_0x167301(0x10d)][_0x167301(0x266)](_0x55ee11,this[_0x167301(0x2ea)],this[_0x167301(0x33c)],this[_0x167301(0x2b6)],this[_0x167301(0x194)],this[_0x167301(0x324)],!0x1);}}[_0x291ba3(0x391)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x291ba3(0x427)](_0x226f98){return this['_pendingMutations']['push'](_0x226f98),this;}[_0x291ba3(0x359)](_0x287ddf){const _0x3abda2=_0x291ba3;return this[_0x3abda2(0x3a5)][_0x3abda2(0x44a)](_0x287ddf),this;}[_0x291ba3(0x2fc)](_0x3bdae8){const _0x49cad6=_0x291ba3;if(this['_awaitingChangeset'])return this['_acknowledgedAwaitingChangeset']=this['_awaitingChangeset'],this[_0x49cad6(0x2b6)]=null,this;throw new Error(_0x49cad6(0xf8));}[_0x291ba3(0x82)](_0x5b501d){const _0x2dedef=_0x291ba3;return this['_onConflict'](!!(_0x5b501d!=null&&_0x5b501d[_0x2dedef(0x119)]));}[_0x291ba3(0x11b)](){const _0xd77321=_0x291ba3;return this[_0xd77321(0x10d)][_0xd77321(0x266)](_0x2b854c,this[_0xd77321(0x2ea)],this[_0xd77321(0x33c)],this['_awaitingChangeset'],this[_0xd77321(0x194)],this[_0xd77321(0x324)]);}[_0x291ba3(0x1d9)](){return this;}[_0x291ba3(0x25e)](_0x3661cc){const _0x2b8125=_0x291ba3;return this[_0x2b8125(0x10d)][_0x2b8125(0x266)](_0x55ee11,this['unitID'],this['type'],this[_0x2b8125(0x2b6)],this['_pendingMutations'],this[_0x2b8125(0x324)],_0x3661cc);}};_0x3feb1e=_0x428496([_0x4d1e63(0x7,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x4d1e63(0x8,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7[_0x291ba3(0x363)])),_0x4d1e63(0x9,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1[_0x291ba3(0x378)])),_0x4d1e63(0xa,_0x2c7fed['ILogService']),_0x4d1e63(0xb,_0x2c7fed[_0x291ba3(0x15a)]),_0x4d1e63(0xc,_0x2c7fed[_0x291ba3(0x26b)]),_0x4d1e63(0xd,_0x2856d7[_0x291ba3(0x372)])],_0x3feb1e);function _0x1b045c(_0x816506,_0xe61136,_0x55c6d5,_0x31e232,_0x5a2eb3,_0x26484b){const _0x33f613=_0x291ba3;return _0x31e232&&_0x5a2eb3['length']?_0x816506['createInstance'](_0x3d3aee,_0xe61136,_0x55c6d5,_0x31e232,_0x5a2eb3,_0x26484b):_0x31e232?_0x816506['createInstance'](_0x56fd74,_0xe61136,_0x55c6d5,_0x31e232,_0x26484b):_0x5a2eb3[_0x33f613(0xbb)]?_0x816506['createInstance'](_0x571839,_0xe61136,_0x55c6d5,_0x5a2eb3,_0x26484b):_0x816506['createInstance'](_0x157452,_0xe61136,_0x55c6d5,_0x26484b);}var _0x556dd5=Object[_0x291ba3(0x3e4)],_0x10b9c3=Object[_0x291ba3(0x373)],_0x4282cb=(_0x569a10,_0x33fa98,_0x4bd662,_0x4e441e)=>{for(var _0x1c8dd4=_0x4e441e>0x1?void 0x0:_0x4e441e?_0x10b9c3(_0x33fa98,_0x4bd662):_0x33fa98,_0x12dfb7=_0x569a10['length']-0x1,_0x29eb00;_0x12dfb7>=0x0;_0x12dfb7--)(_0x29eb00=_0x569a10[_0x12dfb7])&&(_0x1c8dd4=(_0x4e441e?_0x29eb00(_0x33fa98,_0x4bd662,_0x1c8dd4):_0x29eb00(_0x1c8dd4))||_0x1c8dd4);return _0x4e441e&&_0x1c8dd4&&_0x556dd5(_0x33fa98,_0x4bd662,_0x1c8dd4),_0x1c8dd4;},_0x285850=(_0x3b44c0,_0x57dd9c)=>(_0x2059a7,_0x5bb9a2)=>_0x57dd9c(_0x2059a7,_0x5bb9a2,_0x3b44c0);_0x594fe1[_0x291ba3(0x3cf)]=class extends _0x2c7fed[_0x291ba3(0x2d5)]{constructor(_0x479d22,_0x2bfbe7,_0x7d6b99,_0x715356,_0x40b17,_0x701c9b,_0x515192,_0x5b5dbe,_0x4b1c96,_0x45300c,_0x1397e8,_0x170d9f,_0x2dd3cd){const _0x2e1180=_0x291ba3;super(),_0x24cbc7(this,'_state$',new _0x1fc547[(_0x2e1180(0x467))](null)),_0x24cbc7(this,_0x2e1180(0x3d2),this[_0x2e1180(0x159)][_0x2e1180(0x442)]()),_0x24cbc7(this,_0x2e1180(0x32e)),_0x24cbc7(this,_0x2e1180(0x40b),!0x1),_0x24cbc7(this,_0x2e1180(0x195),''),_0x24cbc7(this,_0x2e1180(0x479),0x0),_0x24cbc7(this,_0x2e1180(0x338),this['state$']['pipe'](_0x1fc547['map'](_0x3b96f5=>_0x3b96f5?_0x3b96f5[_0x2e1180(0x469)]:_0x5b6195[_0x2e1180(0x2cf)]),_0x1fc547['shareReplay'](0x1))),_0x24cbc7(this,_0x2e1180(0x35f),!0x1),_0x24cbc7(this,_0x2e1180(0x453),[]),(this[_0x2e1180(0x2ea)]=_0x479d22,this['session']=_0x2bfbe7,this[_0x2e1180(0x15e)]=_0x7d6b99,this[_0x2e1180(0x10d)]=_0x715356,this[_0x2e1180(0x106)]=_0x40b17,this[_0x2e1180(0x2de)]=_0x701c9b,this[_0x2e1180(0x277)]=_0x515192,this['_revisionService']=_0x5b5dbe,this[_0x2e1180(0x139)]=_0x4b1c96,this[_0x2e1180(0xc0)]=_0x45300c,this[_0x2e1180(0x17b)]=_0x1397e8,this[_0x2e1180(0x2d4)]=_0x170d9f,this[_0x2e1180(0x212)]=_0x2dd3cd);}get['state'](){const _0x4bd5de=_0x291ba3;return this[_0x4bd5de(0x32e)];}async[_0x291ba3(0x1d3)](){const _0x549e98=_0x291ba3;if(this['state'])throw new Error(_0x549e98(0x100));await this[_0x549e98(0x366)]();}[_0x291ba3(0x1f5)](){const _0x46d10d=_0x291ba3;return this[_0x46d10d(0x40b)]=!0x0,_0x2c7fed[_0x46d10d(0x337)](()=>{const _0x442c66=_0x46d10d;this[_0x442c66(0x40b)]=!0x1,this[_0x442c66(0xc8)]();});}[_0x291ba3(0x283)](_0x3f2211){const _0x138ce2=_0x291ba3;this[_0x138ce2(0x32e)]=_0x3f2211,this['_state$'][_0x138ce2(0x2ce)](_0x3f2211);}async[_0x291ba3(0x366)](){const _0x328d8d=_0x291ba3;var _0x51bda8;this[_0x328d8d(0x283)](await this[_0x328d8d(0x1a3)]()),this[_0x328d8d(0x212)]&&((_0x51bda8=this[_0x328d8d(0x212)])==null||_0x51bda8[_0x328d8d(0xcc)](this[_0x328d8d(0x2ea)]),this[_0x328d8d(0x351)](this[_0x328d8d(0x212)][_0x328d8d(0x45b)](this['unitID'])['subscribe'](_0x6a7571=>{const _0x588de3=_0x328d8d;this[_0x588de3(0x139)]['debug'](_0x588de3(0xfe),_0x588de3(0x290),_0x6a7571),_0x6a7571===_0x16b602[_0x588de3(0x3b3)]?(this[_0x588de3(0x17b)][_0x588de3(0x116)]({'content':this[_0x588de3(0x277)]['t'](_0x588de3(0x267)),'type':_0x4d689c[_0x588de3(0x3be)][_0x588de3(0x13d)]}),this[_0x588de3(0x2d4)][_0x588de3(0x1e6)](new _0x244249[(_0x588de3(0x2e9))](this['unitID'])['id'],!0x1)):this[_0x588de3(0x2d4)][_0x588de3(0x1e6)](new _0x244249[(_0x588de3(0x2e9))](this['unitID'])['id'],!0x0);})));let _0x29071a=!0x1;return this[_0x328d8d(0x351)](this['session'][_0x328d8d(0x1a8)][_0x328d8d(0x3f2)](_0x159564=>{const _0x53a627=_0x328d8d;_0x159564===_0x11a57f[_0x53a627(0x3d0)]?this[_0x53a627(0x1ef)](_0x29071a):_0x159564===_0x11a57f[_0x53a627(0x2cf)]&&(_0x29071a=!0x0,this[_0x53a627(0x3fd)]());})),this['disposeWithMe'](this[_0x328d8d(0x4a3)][_0x328d8d(0x272)][_0x328d8d(0x3f2)](_0x412c35=>{const _0x33f6b9=_0x328d8d;try{switch(_0x412c35[_0x33f6b9(0x243)]){case _0x2856d7[_0x33f6b9(0x93)][_0x33f6b9(0x361)]:{this['_onRemoteChangeset'](_0x2856d7[_0x33f6b9(0x172)](_0x412c35[_0x33f6b9(0x253)]));break;}case _0x2856d7[_0x33f6b9(0x93)]['CHANGESET_ACK']:{this[_0x33f6b9(0x34e)](_0x412c35[_0x33f6b9(0x253)]);break;}case _0x2856d7[_0x33f6b9(0x93)]['CHANGESET_REJ']:{this[_0x33f6b9(0x3b2)]();break;}case _0x2856d7['CollaborationEvent'][_0x33f6b9(0x322)]:{this[_0x33f6b9(0x1d7)](_0x412c35[_0x33f6b9(0x253)][_0x33f6b9(0x2ac)][_0x33f6b9(0x21b)](_0xf69f90=>_0x2856d7[_0x33f6b9(0x172)](_0xf69f90)));break;}case _0x2856d7[_0x33f6b9(0x93)]['PERMISSION_REJ']:this[_0x33f6b9(0x3b2)]({'isPermissionRej':!0x0});}}catch(_0x52c441){throw console[_0x33f6b9(0x41d)](_0x33f6b9(0x11e),_0x52c441),_0x52c441;}})),this[_0x328d8d(0x32e)];}[_0x291ba3(0x362)](){const _0x20a6a9=_0x291ba3;this[_0x20a6a9(0x35f)]=!0x1;}[_0x291ba3(0x397)](){const _0x588bdd=_0x291ba3;if(this[_0x588bdd(0x35f)])throw new Error(_0x588bdd(0x43f));this[_0x588bdd(0x35f)]=!0x0;}[_0x291ba3(0x32b)](_0x44e0d6){const _0x40dcec=_0x291ba3;this[_0x40dcec(0x397)](),this[_0x40dcec(0x283)](this['_state'][_0x40dcec(0x427)](_0x44e0d6)),this[_0x40dcec(0x362)]();}['_onRemoteChangeset'](_0x2def24){const _0x7dbf3c=_0x291ba3;if(!(_0x2def24[_0x7dbf3c(0x157)]<=this['_revisionService']['getCurrentRevOfUnit'](this[_0x7dbf3c(0x2ea)]))){if(this[_0x7dbf3c(0x40b)]){this[_0x7dbf3c(0x453)]['push'](_0x2def24);return;}this[_0x7dbf3c(0x294)](_0x2def24);}}[_0x291ba3(0xc8)](){const _0x8c4cd0=_0x291ba3;this[_0x8c4cd0(0x453)][_0x8c4cd0(0xb2)](_0x4ac537=>this[_0x8c4cd0(0x294)](_0x4ac537)),this[_0x8c4cd0(0x453)]=[];}[_0x291ba3(0x294)](_0x3c4520){const _0x1807dd=_0x291ba3,_0x5a312e=this[_0x1807dd(0x2de)][_0x1807dd(0x2dd)][_0x1807dd(0x1c5)](this[_0x1807dd(0x2de)][_0x1807dd(0x2dd)][_0x1807dd(0x2da)]()[_0x1807dd(0x11a)])(_0x3c4520['mutations'],null)||_0x3c4520['mutations'],_0x2a5d86={..._0x3c4520,'mutations':_0x5a312e};this[_0x1807dd(0x397)](),this[_0x1807dd(0x283)](this[_0x1807dd(0x32e)][_0x1807dd(0x359)](_0x2a5d86)),this[_0x1807dd(0x362)]();}[_0x291ba3(0x34e)](_0x4a40a4){const _0x4e79cf=_0x291ba3;this[_0x4e79cf(0x397)](),this[_0x4e79cf(0x283)](this[_0x4e79cf(0x32e)]['onRemoteAck'](_0x4a40a4)),this[_0x4e79cf(0x362)]();}[_0x291ba3(0x3b2)](_0x162a38){const _0x83ce98=_0x291ba3;this[_0x83ce98(0x397)](),this[_0x83ce98(0x283)](this[_0x83ce98(0x32e)][_0x83ce98(0x82)](_0x162a38)),this['_unlockTransition']();}[_0x291ba3(0x1d7)](_0x4386ce){const _0xf00c0e=_0x291ba3;if(!(this[_0xf00c0e(0x32e)]instanceof _0x3feb1e))throw new TypeError(_0xf00c0e(0x344));const _0x4822ac=_0x4386ce[_0xf00c0e(0x21b)](_0x233f85=>{const _0xb5fb32=_0xf00c0e,_0xb3f245=this['_compressMutationService']['interceptor'][_0xb5fb32(0x1c5)](this[_0xb5fb32(0x2de)]['interceptor'][_0xb5fb32(0x2da)]()[_0xb5fb32(0x11a)])(_0x233f85[_0xb5fb32(0x1a9)],null)||_0x233f85[_0xb5fb32(0x1a9)];return{..._0x233f85,'mutations':_0xb3f245};});this[_0xf00c0e(0x397)](),this['_updateState'](this[_0xf00c0e(0x32e)][_0xf00c0e(0x19a)](_0x4822ac)),this[_0xf00c0e(0x362)]();}[_0x291ba3(0x3fd)](){const _0x3f1c46=_0x291ba3;this[_0x3f1c46(0x397)](),this['_updateState'](this['_state'][_0x3f1c46(0x11b)]()),this[_0x3f1c46(0x362)]();}[_0x291ba3(0x1ef)](_0x8734b4=!0x1){const _0x38b0cc=_0x291ba3;this['_lockTransition'](),this[_0x38b0cc(0x283)](this[_0x38b0cc(0x32e)][_0x38b0cc(0x1d9)]()),this[_0x38b0cc(0x362)]();const _0x45c755=this[_0x38b0cc(0x32e)];_0x8734b4&&_0x45c755 instanceof _0x157452&&(this[_0x38b0cc(0x397)](),this[_0x38b0cc(0x283)](_0x45c755[_0x38b0cc(0x228)]()),this[_0x38b0cc(0x362)]());}async['_createInitialState'](){return new Promise(_0x16dba5=>{const _0x39727b=_0x2d25;this['session'][_0x39727b(0x1a8)][_0x39727b(0x256)](_0x1fc547[_0x39727b(0x482)](0x1))[_0x39727b(0x3f2)](async _0x5c02e4=>{const _0x476d45=_0x39727b;_0x16dba5(await this[_0x476d45(0x140)](_0x5c02e4===_0x11a57f['ONLINE']));});});}[_0x291ba3(0x2f8)](){const _0x2c1f59=_0x291ba3,_0x19a772=this[_0x2c1f59(0x2ea)];return{'onStateChange':(_0x225600,_0x43f1a5)=>{const _0x5261b5=_0x2c1f59;if(_0x225600!==this[_0x5261b5(0x32e)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x225600[_0x5261b5(0x469)]+_0x5261b5(0x47c)+_0x43f1a5[_0x5261b5(0x469)]+_0x5261b5(0x98)+this[_0x5261b5(0x32e)][_0x5261b5(0x469)]);this[_0x5261b5(0x283)](_0x43f1a5);},'onSendChangeset':_0x26d436=>{const _0xc06380=_0x2c1f59;_0x26d436[_0xc06380(0x2b1)]||(_0x26d436[_0xc06380(0x2b1)]=this['_changesetSessionId'],_0x26d436[_0xc06380(0x41f)]=++this[_0xc06380(0x479)]);const _0x888c27={'eventID':_0x2856d7[_0xc06380(0x93)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x26d436['unitID'],'unitType':this[_0xc06380(0x15e)],'changeset':_0x26d436,'memberID':this[_0xc06380(0x4a3)][_0xc06380(0x34f)]()}};this[_0xc06380(0x4a3)]['send'](_0x888c27,this[_0xc06380(0x2ea)]);},'onMissingChangesets':({from:_0x246e64,to:_0x1b3de8})=>{const _0x910e47=_0x2c1f59;this['_logService'][_0x910e47(0x1e9)](_0x910e47(0xfe),_0x910e47(0x234)+_0x246e64+_0x910e47(0x27c)+_0x1b3de8);const _0xdd9f51={'eventID':_0x2856d7[_0x910e47(0x93)][_0x910e47(0x2b4)],'data':{'unitID':_0x19a772,'unitType':this[_0x910e47(0x15e)],'from':_0x246e64,'to':_0x1b3de8}};this[_0x910e47(0x4a3)][_0x910e47(0x319)](_0xdd9f51,this[_0x910e47(0x2ea)]);}};}async[_0x291ba3(0x140)](_0x5303a8){const _0x2fd8b8=_0x291ba3;var _0x44b519,_0x26b5a3;const _0x30514b=await this[_0x2fd8b8(0x106)][_0x2fd8b8(0x158)](this[_0x2fd8b8(0x2ea)]),_0xe755f4=(_0x44b519=_0x30514b==null?void 0x0:_0x30514b['mutations'])!=null?_0x44b519:[],_0xf753c2=(_0x26b5a3=_0x30514b==null?void 0x0:_0x30514b['awaitingChangeset'])!=null?_0x26b5a3:null,_0x2359cc=!!(_0xf753c2!=null&&_0xf753c2['sid'])&&!!(_0xf753c2!=null&&_0xf753c2[_0x2fd8b8(0x41f)]);this[_0x2fd8b8(0x195)]=_0x2359cc?_0xf753c2[_0x2fd8b8(0x2b1)]:_0x2e2226(),this[_0x2fd8b8(0x479)]=_0x2359cc?_0xf753c2[_0x2fd8b8(0x41f)]:0x0;const _0xaf0869=this[_0x2fd8b8(0x2ea)];try{this['_replayCachedMutations'](_0xf753c2,_0xe755f4);}catch(_0x49475c){this[_0x2fd8b8(0x139)][_0x2fd8b8(0x41d)](_0x49475c);}const _0x519b2e=this[_0x2fd8b8(0x2f8)]();if(_0x5303a8){const _0xf457b6=_0x1b045c(this['_injector'],_0xaf0869,this['_type'],_0xf753c2,_0xe755f4,_0x519b2e);return _0xf457b6 instanceof _0x571839?_0xf457b6[_0x2fd8b8(0x3dd)]():(_0xf457b6 instanceof _0x3d3aee||_0xf457b6 instanceof _0x56fd74)&&_0xf457b6['resend'](),_0xf457b6;}return this[_0x2fd8b8(0x10d)]['createInstance'](_0x2b854c,_0xaf0869,this[_0x2fd8b8(0x15e)],_0xf753c2,_0xe755f4,_0x519b2e);}[_0x291ba3(0x156)](_0x3791a9,_0x508afa){const _0x1fe137=_0x291ba3;var _0x5dc07e,_0x5c246a;const _0x5afab8=this[_0x1fe137(0x2de)]['interceptor']['fetchThroughInterceptors'](this[_0x1fe137(0x2de)][_0x1fe137(0x2dd)][_0x1fe137(0x2da)]()[_0x1fe137(0x11a)]);(_0x5dc07e=_0x5afab8((_0x3791a9==null?void 0x0:_0x3791a9[_0x1fe137(0x1a9)])||[],null))==null||_0x5dc07e[_0x1fe137(0xb2)](_0x2128fd=>this[_0x1fe137(0xc0)][_0x1fe137(0x341)](_0x2128fd['id'],_0x2128fd[_0x1fe137(0x184)])),(_0x5c246a=_0x5afab8(_0x508afa||[],null))==null||_0x5c246a['forEach'](_0x5caacf=>this[_0x1fe137(0xc0)]['executeCommand'](_0x5caacf['id'],_0x5caacf['params']));}},_0x594fe1[_0x291ba3(0x3cf)]=_0x4282cb([_0x285850(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x285850(0x4,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1[_0x291ba3(0x378)])),_0x285850(0x5,_0x2c7fed['Inject'](_0x2856d7['CompressMutationService'])),_0x285850(0x6,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x1a7)])),_0x285850(0x7,_0x2c7fed['Inject'](_0x2856d7['RevisionService'])),_0x285850(0x8,_0x2c7fed[_0x291ba3(0x2fd)]),_0x285850(0x9,_0x2c7fed['ICommandService']),_0x285850(0xa,_0x4b403d[_0x291ba3(0x2f2)]),_0x285850(0xb,_0x2c7fed[_0x291ba3(0x44b)]),_0x285850(0xc,_0x2c7fed[_0x291ba3(0x425)](_0x4ba495))],_0x594fe1['CollaborationEntity']),_0x594fe1['DocCollaborationEntity']=class extends _0x594fe1[_0x291ba3(0x3cf)]{constructor(_0xad519e,_0x3b5b5c,_0x5e1577,_0x271635,_0x163848,_0x34ea38,_0x34ef15,_0x440302,_0x4c9918,_0x247443,_0x13e485,_0x2082a7,_0x1c4c07,_0x7f9f64,_0x360e7d,_0x46810a,_0x51876b){const _0x582641=_0x291ba3;super(_0xad519e,_0x5e1577,_0x3b5b5c,_0x271635,_0x163848,_0x34ea38,_0x34ef15,_0x440302,_0x1c4c07,_0x7f9f64,_0x360e7d,_0x46810a,_0x51876b),this[_0x582641(0x2ea)]=_0xad519e,this[_0x582641(0x33c)]=_0x3b5b5c,this[_0x582641(0x3b5)]=_0x4c9918,this[_0x582641(0x2be)]=_0x247443,this[_0x582641(0x89)]=_0x13e485,this[_0x582641(0x10c)]=_0x2082a7;}['_createHandler'](){const _0x52be6b=_0x291ba3,_0x9cb5e4=super[_0x52be6b(0x2f8)]();return _0x9cb5e4['onTransformIME']=_0x5eac25=>this[_0x52be6b(0x2be)][_0x52be6b(0x315)](_0x5eac25),_0x9cb5e4['onTransformSelections']=_0x2bd05a=>this[_0x52be6b(0x89)][_0x52be6b(0xc3)](_0x2bd05a),_0x9cb5e4[_0x52be6b(0xdb)]=_0xcde52a=>this[_0x52be6b(0x10c)][_0x52be6b(0x122)](_0xcde52a),_0x9cb5e4[_0x52be6b(0x3d5)]=_0x31242d=>this[_0x52be6b(0x2be)][_0x52be6b(0x326)](_0x31242d),_0x9cb5e4;}async[_0x291ba3(0x366)](){const _0x1128f2=_0x291ba3,_0x24e597=await super[_0x1128f2(0x366)]();return this[_0x1128f2(0x3b5)][_0x1128f2(0x2a4)]['pipe'](_0x1fc547[_0x1128f2(0x211)](this[_0x1128f2(0xf7)]))['subscribe'](_0x314525=>{const _0x181d0e=_0x1128f2;if(_0x314525==null)return;const {unitId:_0x1a9b4e,redoState:_0x2cc9f1,commandId:_0x3ab0ec}=_0x314525;if(_0x1a9b4e!==this['unitID'])return;const _0x3b192d={'id':_0x3ab0ec,'type':_0x2c7fed['CommandType']['MUTATION'],'params':{'unitId':_0x1a9b4e,'actions':_0x2cc9f1[_0x181d0e(0x200)],'textRanges':null}};this[_0x181d0e(0x32b)](_0x3b192d);}),_0x24e597;}},_0x594fe1[_0x291ba3(0x3e2)]=_0x4282cb([_0x285850(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x285850(0x4,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1['LocalCacheService'])),_0x285850(0x5,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7['CompressMutationService'])),_0x285850(0x6,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x1a7)])),_0x285850(0x7,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7['RevisionService'])),_0x285850(0x8,_0x2c7fed[_0x291ba3(0x16b)](_0x21cef1['DocStateChangeManagerService'])),_0x285850(0x9,_0x2c7fed[_0x291ba3(0x16b)](_0x5bc594)),_0x285850(0xa,_0x2c7fed[_0x291ba3(0x16b)](_0x4bc5bd)),_0x285850(0xb,_0x2c7fed[_0x291ba3(0x16b)](_0x2f34a3)),_0x285850(0xc,_0x2c7fed[_0x291ba3(0x2fd)]),_0x285850(0xd,_0x2c7fed['ICommandService']),_0x285850(0xe,_0x4b403d[_0x291ba3(0x2f2)]),_0x285850(0xf,_0x2c7fed[_0x291ba3(0x44b)]),_0x285850(0x10,_0x2c7fed['Optional'](_0x4ba495))],_0x594fe1['DocCollaborationEntity']),_0x594fe1['SheetCollaborationEntity']=class extends _0x594fe1[_0x291ba3(0x3cf)]{constructor(_0x3c689e,_0x362635,_0x5a02d3,_0x357f34,_0x132311,_0x37ce4e,_0x35eb22,_0xc428a7,_0x3a4e39,_0xced3ce,_0x53d195,_0x4f56e5,_0x15812c,_0x1b5e40){const _0x1a8d8f=_0x291ba3;super(_0x3c689e,_0x5a02d3,_0x362635,_0x357f34,_0x132311,_0x37ce4e,_0x35eb22,_0xc428a7,_0xced3ce,_0x53d195,_0x4f56e5,_0x15812c,_0x1b5e40),this['unitID']=_0x3c689e,this[_0x1a8d8f(0x33c)]=_0x362635,this['_sheetTransformSelectionsService']=_0x3a4e39;}[_0x291ba3(0x2f8)](){const _0x1ccee8=_0x291ba3,_0x3992a4=super[_0x1ccee8(0x2f8)]();return _0x3992a4[_0x1ccee8(0x187)]=_0x1e26e8=>this[_0x1ccee8(0x1c1)][_0x1ccee8(0xc3)](_0x1e26e8),_0x3992a4;}async['_init'](){const _0x1070da=_0x291ba3,_0x3845bc=await super['_init']();return this[_0x1070da(0x351)](this[_0x1070da(0xc0)][_0x1070da(0x313)]((_0x5b6686,_0x29ec6f)=>{const _0x563517=_0x1070da;if(_0x5b6686['type']!==_0x2c7fed[_0x563517(0x32d)]['MUTATION']||_0x29ec6f!=null&&_0x29ec6f[_0x563517(0x220)]||_0x29ec6f!=null&&_0x29ec6f[_0x563517(0x3d9)])return;const _0x3b4a4f=_0x5b6686[_0x563517(0x184)];if((_0x3b4a4f==null?void 0x0:_0x3b4a4f[_0x563517(0x137)])!==this[_0x563517(0x2ea)])return;const _0x17f530=_0x5b6686,_0x205acb=this[_0x563517(0x2de)][_0x563517(0x2dd)][_0x563517(0x1c5)](this[_0x563517(0x2de)]['interceptor']['getInterceptPoints']()[_0x563517(0x382)])([_0x17f530],null)||[_0x17f530];this[_0x563517(0x32b)](_0x205acb[0x0]);})),_0x3845bc;}},_0x594fe1[_0x291ba3(0x385)]=_0x4282cb([_0x285850(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x285850(0x4,_0x2c7fed['Inject'](_0x594fe1[_0x291ba3(0x378)])),_0x285850(0x5,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7['CompressMutationService'])),_0x285850(0x6,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x1a7)])),_0x285850(0x7,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7[_0x291ba3(0x363)])),_0x285850(0x8,_0x2c7fed['Inject'](_0x1b1a48)),_0x285850(0x9,_0x2c7fed[_0x291ba3(0x2fd)]),_0x285850(0xa,_0x2c7fed[_0x291ba3(0x15a)]),_0x285850(0xb,_0x4b403d['IMessageService']),_0x285850(0xc,_0x2c7fed[_0x291ba3(0x44b)]),_0x285850(0xd,_0x2c7fed[_0x291ba3(0x425)](_0x4ba495))],_0x594fe1[_0x291ba3(0x385)]);var _0x32e6da=Object[_0x291ba3(0x3e4)],_0x11b293=Object[_0x291ba3(0x373)],_0x55b4f7=(_0x422a27,_0x3c29e8,_0x31bdc2,_0x4c3e59)=>{const _0x3e863b=_0x291ba3;for(var _0x3b904b=_0x4c3e59>0x1?void 0x0:_0x4c3e59?_0x11b293(_0x3c29e8,_0x31bdc2):_0x3c29e8,_0x1bf0b7=_0x422a27[_0x3e863b(0xbb)]-0x1,_0x4778b3;_0x1bf0b7>=0x0;_0x1bf0b7--)(_0x4778b3=_0x422a27[_0x1bf0b7])&&(_0x3b904b=(_0x4c3e59?_0x4778b3(_0x3c29e8,_0x31bdc2,_0x3b904b):_0x4778b3(_0x3b904b))||_0x3b904b);return _0x4c3e59&&_0x3b904b&&_0x32e6da(_0x3c29e8,_0x31bdc2,_0x3b904b),_0x3b904b;},_0x4e156a=(_0x4d3fbe,_0x24d879)=>(_0x5b1c2c,_0x23a798)=>_0x24d879(_0x5b1c2c,_0x23a798,_0x4d3fbe);_0x594fe1['CollaborationController']=class extends _0x2c7fed['RxDisposable']{constructor(_0x57d1cc,_0x3c36d2,_0x202510){const _0x3e1eb2=_0x291ba3;super(),_0x24cbc7(this,_0x3e1eb2(0x3a7),new Map()),_0x24cbc7(this,_0x3e1eb2(0xa3),new _0x1fc547[(_0x3e1eb2(0x165))]()),(this[_0x3e1eb2(0x10d)]=_0x57d1cc,this['_collabSessionService']=_0x3c36d2,this[_0x3e1eb2(0x79)]=_0x202510,this['_init']());}['dispose'](){const _0x313b91=_0x291ba3;super[_0x313b91(0x35e)](),this[_0x313b91(0x3a7)]['forEach'](_0x4241f1=>_0x4241f1['dispose']()),this[_0x313b91(0x3a7)]['clear']();}['getCollabEntity'](_0x222beb){const _0x56d7f6=_0x291ba3;var _0x26106f;return(_0x26106f=this[_0x56d7f6(0x3a7)][_0x56d7f6(0x400)](_0x222beb))!=null?_0x26106f:null;}[_0x291ba3(0x17f)](_0x46db4e){const _0x319b5f=_0x291ba3,_0xa0c71d=this[_0x319b5f(0x20d)](_0x46db4e);return _0xa0c71d?_0x1fc547['of'](_0xa0c71d):this[_0x319b5f(0xa3)]['pipe'](_0x2eca2e[_0x319b5f(0x1d1)](_0x53fcbc=>_0x53fcbc[_0x319b5f(0x2ea)]===_0x46db4e));}[_0x291ba3(0x366)](){const _0x358e28=_0x291ba3;this[_0x358e28(0x79)][_0x358e28(0x112)](_0x2c7fed[_0x358e28(0xcb)]['UNIVER_SHEET'])[_0x358e28(0x256)](_0x1fc547[_0x358e28(0x211)](this[_0x358e28(0xf7)]),_0x2eca2e[_0x358e28(0x477)](0x10))[_0x358e28(0x3f2)](async _0x3ae660=>{const _0x2a90a6=_0x358e28,_0x5983af=_0x3ae660[_0x2a90a6(0x11d)](),_0x3ad4cb=await this[_0x2a90a6(0x3e1)](_0x5983af,_0x4cd70d['UNIVER_SHEET']);this[_0x2a90a6(0x3a7)]['set'](_0x5983af,_0x3ad4cb);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2c7fed['UniverInstanceType'][_0x358e28(0x130)])['pipe'](_0x1fc547[_0x358e28(0x211)](this[_0x358e28(0xf7)]),_0x2eca2e[_0x358e28(0x477)](0x10))['pipe'](_0x2eca2e['filter'](_0x10108a=>!_0x10108a[_0x358e28(0x11d)]()['startsWith']('__')))[_0x358e28(0x3f2)](async _0x5f3b02=>{const _0x4e7443=_0x358e28,_0x4e7e0b=_0x5f3b02[_0x4e7443(0x11d)](),_0x55fd25=await this['_startCollaboration'](_0x4e7e0b,_0x4cd70d['UNIVER_DOC']);this[_0x4e7443(0x3a7)][_0x4e7443(0x250)](_0x4e7e0b,_0x55fd25);}),_0x1fc547[_0x358e28(0x94)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x2c7fed['UniverInstanceType'][_0x358e28(0x2aa)]),this['_univerInstanceService'][_0x358e28(0xc6)](_0x2c7fed[_0x358e28(0xcb)][_0x358e28(0x130)]))[_0x358e28(0x256)](_0x1fc547[_0x358e28(0x211)](this[_0x358e28(0xf7)]))[_0x358e28(0x3f2)](_0x3ada6=>{const _0x4f75e8=_0x358e28,_0x372c68=_0x3ada6['getUnitId'](),_0x246156=this['_entities']['get'](_0x372c68);_0x246156&&(_0x246156[_0x4f75e8(0x35e)](),this[_0x4f75e8(0x3a7)][_0x4f75e8(0x39c)](_0x372c68));});}async[_0x291ba3(0x3e1)](_0x5aff0b,_0x28eeff){const _0x2413da=_0x291ba3,_0x50bd03=await this[_0x2413da(0x374)][_0x2413da(0x22d)](_0x5aff0b),_0x40d2a1=this['_injector'][_0x2413da(0x266)](this[_0x2413da(0x447)](_0x28eeff),_0x5aff0b,_0x28eeff,_0x50bd03);return await _0x40d2a1[_0x2413da(0x1d3)](),this['_entityInit$'][_0x2413da(0x2ce)](_0x40d2a1),_0x40d2a1;}[_0x291ba3(0x447)](_0x26957a){const _0x2bd9b7=_0x291ba3;switch(_0x26957a){case _0x4cd70d[_0x2bd9b7(0x130)]:return _0x594fe1[_0x2bd9b7(0x3e2)];case _0x4cd70d[_0x2bd9b7(0x2aa)]:return _0x594fe1[_0x2bd9b7(0x385)];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x26957a);}}},_0x594fe1[_0x291ba3(0x1be)]=_0x55b4f7([_0x4e156a(0x0,_0x2c7fed['Inject'](_0x2c7fed[_0x291ba3(0x4a2)])),_0x4e156a(0x1,_0x2c7fed['Inject'](_0x594fe1[_0x291ba3(0xeb)])),_0x4e156a(0x2,_0x2c7fed[_0x291ba3(0x27a)])],_0x594fe1[_0x291ba3(0x1be)]);const _0x1b14e2=[_0x291ba3(0x471),_0x291ba3(0x301),_0x291ba3(0x147),'red300',_0x291ba3(0x13e),_0x291ba3(0x164)];class _0x45b0e2 extends _0x2c7fed[_0x291ba3(0x2e7)]{constructor(){const _0x35d32b=_0x291ba3;super(...arguments),_0x24cbc7(this,_0x35d32b(0x1ea),new Map()),_0x24cbc7(this,'_colorIndex',0x0);}[_0x291ba3(0x23a)](_0x5e3fab){const _0x56925c=_0x291ba3;if(this[_0x56925c(0x1ea)]['has'](_0x5e3fab))return this[_0x56925c(0x1ea)][_0x56925c(0x400)](_0x5e3fab);const _0xb861b8=_0x1b14e2[this['_colorIndex']];return this[_0x56925c(0x440)]=(this[_0x56925c(0x440)]+0x1)%_0x1b14e2[_0x56925c(0xbb)],this[_0x56925c(0x1ea)][_0x56925c(0x250)](_0x5e3fab,_0xb861b8),_0xb861b8;}}var _0x4d5309=Object[_0x291ba3(0x3e4)],_0x912570=Object[_0x291ba3(0x373)],_0x4da21f=(_0x50c57b,_0x26b836,_0x1ac3c1,_0xc3f8d1)=>{for(var _0x4fdb5b=_0xc3f8d1>0x1?void 0x0:_0xc3f8d1?_0x912570(_0x26b836,_0x1ac3c1):_0x26b836,_0x2176c1=_0x50c57b['length']-0x1,_0x57cf3d;_0x2176c1>=0x0;_0x2176c1--)(_0x57cf3d=_0x50c57b[_0x2176c1])&&(_0x4fdb5b=(_0xc3f8d1?_0x57cf3d(_0x26b836,_0x1ac3c1,_0x4fdb5b):_0x57cf3d(_0x4fdb5b))||_0x4fdb5b);return _0xc3f8d1&&_0x4fdb5b&&_0x4d5309(_0x26b836,_0x1ac3c1,_0x4fdb5b),_0x4fdb5b;},_0x4082bf=(_0x2d8f4b,_0x43a858)=>(_0x27a223,_0x34d061)=>_0x43a858(_0x27a223,_0x34d061,_0x2d8f4b);const _0x540883=0x12c,_0x5d04f6=0x64;let _0x45d401=class extends _0x2c7fed[_0x291ba3(0x2d5)]{constructor(_0x32468a,_0x30d459,_0xdfe3c,_0x487141,_0x13d86d,_0x33f617,_0x41a4c8,_0x53e094,_0x57f906){const _0x3bae90=_0x291ba3;super(),_0x24cbc7(this,_0x3bae90(0x28a),!0x1),_0x24cbc7(this,'_init',!0x1),_0x24cbc7(this,'_cursorInfo$',new _0x1fc547[(_0x3bae90(0x467))](new Map())),_0x24cbc7(this,'cursorInfo$',this['_cursorInfo$']['asObservable']()),_0x24cbc7(this,_0x3bae90(0x248),new _0x1fc547[(_0x3bae90(0x467))]([])),_0x24cbc7(this,'roomMembers$',this['_roomMembers$'][_0x3bae90(0x256)](_0x1fc547[_0x3bae90(0x120)](_0x540883))),_0x24cbc7(this,_0x3bae90(0x90),_0x2c7fed[_0x3bae90(0xa7)](_0x443910=>{const _0x2e74c9=_0x3bae90,_0x18057f={'eventID':_0x2856d7['CollaborationEvent'][_0x2e74c9(0x31f)],'data':{'unitID':this[_0x2e74c9(0x2ea)],'memberID':this['_session'][_0x2e74c9(0x34f)](),'selection':_0x5a4515(_0x443910)}};this[_0x2e74c9(0x2b7)][_0x2e74c9(0x319)](_0x18057f,this[_0x2e74c9(0x2ea)]);},_0x5d04f6)),(this[_0x3bae90(0x2ea)]=_0x32468a,this[_0x3bae90(0x2b7)]=_0x30d459,this[_0x3bae90(0x10d)]=_0xdfe3c,this[_0x3bae90(0x356)]=_0x487141,this[_0x3bae90(0x29e)]=_0x13d86d,this[_0x3bae90(0x1c6)]=_0x33f617,this[_0x3bae90(0xbd)]=_0x41a4c8,this[_0x3bae90(0x79)]=_0x53e094,this[_0x3bae90(0xc0)]=_0x57f906);}get[_0x291ba3(0x12f)](){const _0x3a4414=_0x291ba3;return this[_0x3a4414(0xd1)][_0x3a4414(0x1e7)]();}get['roomMembers'](){const _0x4b6d15=_0x291ba3;return this[_0x4b6d15(0x248)][_0x4b6d15(0x1e7)]();}['dispose'](){const _0x2699f0=_0x291ba3;super[_0x2699f0(0x35e)](),this[_0x2699f0(0xd1)]['next'](new Map()),this[_0x2699f0(0xd1)][_0x2699f0(0x420)](),this[_0x2699f0(0x248)]['next']([]),this[_0x2699f0(0x248)][_0x2699f0(0x420)]();}[_0x291ba3(0x1d3)](){const _0x45ed7f=_0x291ba3;this[_0x45ed7f(0x366)]||(this[_0x45ed7f(0x366)]=!0x0,this['_session'][_0x45ed7f(0x1a8)]['pipe'](_0x1fc547[_0x45ed7f(0x211)](this[_0x45ed7f(0xf7)]))[_0x45ed7f(0x3f2)](_0x472fad=>{const _0x4accc8=_0x45ed7f;_0x472fad===_0x11a57f['ONLINE']?this[_0x4accc8(0x1ef)]():this[_0x4accc8(0x3fd)]();}),this['_session'][_0x45ed7f(0x272)][_0x45ed7f(0x256)](_0x1fc547['takeUntil'](this[_0x45ed7f(0xf7)]))[_0x45ed7f(0x3f2)](_0x1e2e14=>{const _0x35f404=_0x45ed7f,_0x14e9bf=_0x1e2e14[_0x35f404(0x243)];_0x14e9bf===_0x2856d7[_0x35f404(0x93)][_0x35f404(0x31f)]&&this[_0x35f404(0x2a3)](_0x1e2e14),_0x14e9bf===_0x2856d7[_0x35f404(0x93)][_0x35f404(0x408)]&&this[_0x35f404(0x19f)](_0x1e2e14);}),this['disposeWithMe'](this[_0x45ed7f(0xc0)][_0x45ed7f(0x313)](_0x3f579d=>{const _0x16475f=_0x45ed7f,_0x1db874=_0x3f579d['params'];_0x1db874!=null&&this['_online']&&_0x3f579d['id']===_0x7ac583[_0x16475f(0x25a)]['id']&&_0x1db874['unitId']===this[_0x16475f(0x2ea)]&&_0x1db874['isEditing']===!0x1&&this[_0x16475f(0x90)](_0x1db874[_0x16475f(0x281)]);})),this[_0x45ed7f(0x1c6)][_0x45ed7f(0x2d3)]['pipe'](_0x1fc547[_0x45ed7f(0x211)](this[_0x45ed7f(0xf7)]))[_0x45ed7f(0x3f2)](_0x41b9ea=>{const _0x110b22=_0x45ed7f;if((_0x41b9ea==null?void 0x0:_0x41b9ea[_0x110b22(0x2ea)])!==this[_0x110b22(0x2ea)])return;const _0x45d5ec={'eventID':_0x2856d7[_0x110b22(0x93)][_0x110b22(0x31f)],'data':_0x41b9ea};this[_0x110b22(0x2a3)](_0x45d5ec);}),this[_0x45ed7f(0x351)](this[_0x45ed7f(0xc0)][_0x45ed7f(0x313)](_0x361007=>{const _0x4a7717=_0x45ed7f;if(_0x361007[_0x4a7717(0x184)]==null)return;const _0x5dcd73=_0x361007['params'];if(_0x361007['id']!==_0x7ac583[_0x4a7717(0x30e)]['id']||_0x5dcd73[_0x4a7717(0x137)]!==this[_0x4a7717(0x2ea)])return;const _0x127dd0={'id':_0x4a7717(0x1bf),'params':_0x5dcd73},_0x12a308=this[_0x4a7717(0x12f)];for(const [_0x1711b0,_0x4503f6]of _0x12a308){const _0x14ec54={'id':_0x4a7717(0x1bf),'params':{'unitId':this[_0x4a7717(0x2ea)],'actions':null,'textRanges':_0x4503f6[_0x4a7717(0x281)]}},_0x11b68e=this[_0x4a7717(0xbd)][_0x4a7717(0x227)](_0x127dd0,_0x14ec54,!0x1);if(_0x2856d7[_0x4a7717(0x72)](_0x11b68e))throw _0x11b68e['error'];_0x12a308['set'](_0x1711b0,{..._0x4503f6,'ranges':_0x11b68e['m2Prime'][_0x4a7717(0x184)][_0x4a7717(0x307)]});}queueMicrotask(()=>{const _0x3f14e1=_0x4a7717;this[_0x3f14e1(0xd1)]['next'](_0x12a308);});})));}['_onCursorUpdate'](_0x83cc14){const _0x6d3e16=_0x291ba3;var _0x52266f,_0x3cbdc4;const {memberID:_0x3596e0,selection:_0x5886b8}=_0x83cc14[_0x6d3e16(0x253)],_0x5f24bf=_0x3a9cc2(_0x5886b8),_0x178a04=(_0x3cbdc4=(_0x52266f=this[_0x6d3e16(0x29e)][_0x6d3e16(0x465)](this[_0x6d3e16(0x2ea)],_0x3596e0))==null?void 0x0:_0x52266f[_0x6d3e16(0x2a6)])!=null?_0x3cbdc4:_0x6d3e16(0x2fe),_0x7a675c={'color':this[_0x6d3e16(0x356)][_0x6d3e16(0x23a)](_0x3596e0),'name':_0x178a04,'ranges':_0x5f24bf},_0x4fbd27=this[_0x6d3e16(0x12f)];_0x4fbd27[_0x6d3e16(0x250)](_0x3596e0,_0x7a675c),this[_0x6d3e16(0xd1)][_0x6d3e16(0x2ce)](_0x4fbd27);}['_onCursorDelete'](_0x4e47cd){const _0x581f98=_0x291ba3,{memberID:_0x5bc1c3}=_0x4e47cd[_0x581f98(0x253)],_0x219a25=this[_0x581f98(0x12f)];_0x219a25[_0x581f98(0x39c)](_0x5bc1c3),this[_0x581f98(0xd1)][_0x581f98(0x2ce)](_0x219a25);}[_0x291ba3(0x1ef)](){const _0x2f6ce8=_0x291ba3;var _0x25b948;if(this[_0x2f6ce8(0x28a)]=!0x0,((_0x25b948=this['_univerInstanceService'][_0x2f6ce8(0xa6)]())==null?void 0x0:_0x25b948[_0x2f6ce8(0x11d)]())!==this[_0x2f6ce8(0x2ea)])return;const _0x392a32=this[_0x2f6ce8(0x10d)][_0x2f6ce8(0x400)](_0x7ac583[_0x2f6ce8(0x35d)])[_0x2f6ce8(0x334)]();Array[_0x2f6ce8(0x358)](_0x392a32)&&_0x392a32[_0x2f6ce8(0xbb)]>0x0&&this[_0x2f6ce8(0x90)](_0x392a32);}[_0x291ba3(0x3fd)](){const _0x3fb1f8=_0x291ba3;this[_0x3fb1f8(0x28a)]=!0x1;}};_0x45d401=_0x4da21f([_0x4082bf(0x2,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x4082bf(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x45b0e2)),_0x4082bf(0x4,_0x2c7fed['Inject'](_0x4d411d)),_0x4082bf(0x5,_0x2c7fed['Inject'](_0x2f34a3)),_0x4082bf(0x6,_0x2856d7[_0x291ba3(0x372)]),_0x4082bf(0x7,_0x2c7fed[_0x291ba3(0x27a)]),_0x4082bf(0x8,_0x2c7fed[_0x291ba3(0x15a)])],_0x45d401);var _0x2f30f7=Object[_0x291ba3(0x3e4)],_0x1de566=Object['getOwnPropertyDescriptor'],_0x3c30d3=(_0x5aeddc,_0x262de5,_0x173c16,_0x1ecfd5)=>{for(var _0x524f76=_0x1ecfd5>0x1?void 0x0:_0x1ecfd5?_0x1de566(_0x262de5,_0x173c16):_0x262de5,_0x1d0b63=_0x5aeddc['length']-0x1,_0x4defe3;_0x1d0b63>=0x0;_0x1d0b63--)(_0x4defe3=_0x5aeddc[_0x1d0b63])&&(_0x524f76=(_0x1ecfd5?_0x4defe3(_0x262de5,_0x173c16,_0x524f76):_0x4defe3(_0x524f76))||_0x524f76);return _0x1ecfd5&&_0x524f76&&_0x2f30f7(_0x262de5,_0x173c16,_0x524f76),_0x524f76;},_0x5a668f=(_0x12f690,_0x529a7d)=>(_0x38913b,_0x37d4e6)=>_0x529a7d(_0x38913b,_0x37d4e6,_0x12f690);const _0x3f4ae5=0x12c,_0x5aa6a7=0x64,_0x28d91a=()=>{let _0xe8c96b=[],_0x1714cd=!0x1;return _0x365f74=>{const _0xf8e15c=_0x2d25;_0xe8c96b[_0xf8e15c(0x44a)](_0x365f74),_0x1714cd||(_0x1714cd=!0x0,setTimeout(()=>{_0xe8c96b['forEach'](_0x319f30=>_0x319f30()),_0xe8c96b=[],_0x1714cd=!0x1;}));};};let _0xba4728=class extends _0x2c7fed[_0x291ba3(0x2d5)]{constructor(_0x353b2d,_0x3bd780,_0x41cd2c,_0x503b2a,_0x2e1c9f,_0x5eeaf2,_0x5388b4,_0x51122d){const _0x2287da=_0x291ba3;super(),_0x24cbc7(this,_0x2287da(0x28a),!0x1),_0x24cbc7(this,_0x2287da(0x366),!0x1),_0x24cbc7(this,_0x2287da(0xd1),new _0x1fc547['BehaviorSubject'](new Map())),_0x24cbc7(this,_0x2287da(0x431),this[_0x2287da(0xd1)]['asObservable']()),_0x24cbc7(this,_0x2287da(0x248),new _0x1fc547[(_0x2287da(0x467))]([])),_0x24cbc7(this,_0x2287da(0x3ac),this[_0x2287da(0x248)]['pipe'](_0x1fc547['debounceTime'](_0x3f4ae5))),_0x24cbc7(this,'_updateLocalCursor',_0x2c7fed[_0x2287da(0xa7)]((_0x1b92f5,_0x207c66)=>{const _0x1627b7=_0x2287da,_0x247f43={'eventID':_0x2856d7[_0x1627b7(0x93)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x1627b7(0x2b7)]['getMemberID'](),'selection':_0x172d10['serializeRangeWithSheet'](_0x1b92f5,_0x207c66[_0x1627b7(0x76)])}};this['_session']['send'](_0x247f43,this['unitID']);},_0x5aa6a7)),(this['unitID']=_0x353b2d,this[_0x2287da(0x2b7)]=_0x3bd780,this['_injector']=_0x41cd2c,this[_0x2287da(0x356)]=_0x503b2a,this['_memberService']=_0x2e1c9f,this['_univerInstanceService']=_0x5eeaf2,this[_0x2287da(0xc0)]=_0x5388b4,this[_0x2287da(0x2e0)]=_0x51122d);}get[_0x291ba3(0x12f)](){const _0x5caca4=_0x291ba3;return this[_0x5caca4(0xd1)]['getValue']();}get[_0x291ba3(0x185)](){const _0x33f764=_0x291ba3;return this[_0x33f764(0x248)][_0x33f764(0x1e7)]();}[_0x291ba3(0x35e)](){const _0x4837b4=_0x291ba3;super[_0x4837b4(0x35e)](),this[_0x4837b4(0xd1)][_0x4837b4(0x2ce)](new Map()),this['_cursorInfo$'][_0x4837b4(0x420)](),this[_0x4837b4(0x248)][_0x4837b4(0x2ce)]([]),this[_0x4837b4(0x248)][_0x4837b4(0x420)]();}[_0x291ba3(0x1d3)](){const _0x440dc4=_0x291ba3;this['_init']||(this[_0x440dc4(0x366)]=!0x0,this[_0x440dc4(0x2b7)][_0x440dc4(0x1a8)][_0x440dc4(0x256)](_0x1fc547[_0x440dc4(0x211)](this[_0x440dc4(0xf7)]))[_0x440dc4(0x3f2)](_0x16cda3=>{const _0x56f58d=_0x440dc4;_0x16cda3===_0x11a57f['ONLINE']?this[_0x56f58d(0x1ef)]():this[_0x56f58d(0x3fd)]();}),this[_0x440dc4(0x2b7)][_0x440dc4(0x272)][_0x440dc4(0x256)](_0x1fc547['takeUntil'](this[_0x440dc4(0xf7)]))[_0x440dc4(0x3f2)](_0x2bbe82=>{const _0x5416f8=_0x440dc4,_0x1f6135=_0x2bbe82[_0x5416f8(0x243)];_0x1f6135===_0x2856d7['CollaborationEvent'][_0x5416f8(0x31f)]&&this[_0x5416f8(0x2a3)](_0x2bbe82),_0x1f6135===_0x2856d7[_0x5416f8(0x93)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x2bbe82);}),this[_0x440dc4(0x4a5)](),this['disposeWithMe'](this[_0x440dc4(0xc0)][_0x440dc4(0x313)](_0x439735=>{const _0x1b1f53=_0x440dc4;if(this['_online']&&_0x439735['id']===_0x244249[_0x1b1f53(0x23d)]['id']&&_0x439735[_0x1b1f53(0x184)][_0x1b1f53(0x137)]===this['unitID']){const _0x602691=_0x439735['params'];this[_0x1b1f53(0x90)](_0x602691[_0x1b1f53(0x101)],_0x602691['selections'][0x0]);}})));}['_onCursorUpdate'](_0x47d7d5){const _0x34c703=_0x291ba3;var _0x5d911e,_0x3aa192;const {memberID:_0x4274c9,selection:_0x2f726b}=_0x47d7d5[_0x34c703(0x253)],{sheetName:_0x61e311,range:_0x533220}=_0x172d10[_0x34c703(0x3bf)](_0x2f726b),_0x52cc60={'name':(_0x3aa192=(_0x5d911e=this[_0x34c703(0x29e)][_0x34c703(0x465)](this[_0x34c703(0x2ea)],_0x4274c9))==null?void 0x0:_0x5d911e['name'])!=null?_0x3aa192:_0x34c703(0x2fe),'range':this[_0x34c703(0x3c5)](_0x61e311,_0x533220),'sheetID':_0x61e311,'color':this[_0x34c703(0x356)][_0x34c703(0x23a)](_0x4274c9),'selection':_0x2f726b},_0x264bfb=this['cursorInfo'];_0x264bfb[_0x34c703(0x250)](_0x4274c9,_0x52cc60),this[_0x34c703(0xd1)][_0x34c703(0x2ce)](_0x264bfb);}['_onCursorDelete'](_0x5a5a20){const _0xca7e9a=_0x291ba3,{memberID:_0x3f9dce}=_0x5a5a20['data'],_0x56e8e6=this[_0xca7e9a(0x12f)];_0x56e8e6[_0xca7e9a(0x39c)](_0x3f9dce),this['_cursorInfo$'][_0xca7e9a(0x2ce)](_0x56e8e6);}[_0x291ba3(0x3c5)](_0x5d561b,_0x49fdac){const _0x50e718=_0x291ba3;var _0x3b7775,_0x5ca2ce;const _0x375961=(_0x5ca2ce=(_0x3b7775=this[_0x50e718(0x79)][_0x50e718(0x3ab)](this[_0x50e718(0x2ea)]))==null?void 0x0:_0x3b7775[_0x50e718(0x1ae)](_0x5d561b))==null?void 0x0:_0x5ca2ce[_0x50e718(0x2e3)]();return(_0x375961==null?void 0x0:_0x375961[_0x50e718(0x125)](_0x4b8f76=>_0x2c7fed[_0x50e718(0xad)][_0x50e718(0x2a0)](_0x4b8f76,_0x49fdac)))||_0x49fdac;}['_onRefRangeChange'](){const _0x3efc49=_0x291ba3,_0x1dffac=new _0x2c7fed['DisposableCollection'](),_0x1e1f22=_0x28d91a(),_0x11b6ae=()=>{const _0x3a3b60=_0x2d25;_0x1dffac[_0x3a3b60(0x35e)]();const _0x46e4db=(_0x11a43c,_0x28d5a0,_0x760262,_0x3b519b)=>{const _0x27134c=_0x3a3b60;let _0x598469=[];switch(_0x11a43c['id']){case _0x244249['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0x598469=_0x244249['handleDeleteRangeMoveLeft'](_0x11a43c,_0x3b519b);break;}case _0x244249[_0x27134c(0x48d)][_0x27134c(0x2c4)]:{_0x598469=_0x244249[_0x27134c(0x30b)](_0x11a43c,_0x3b519b);break;}case _0x244249[_0x27134c(0x48d)][_0x27134c(0x174)]:{_0x598469=_0x244249['handleInsertCol'](_0x11a43c,_0x3b519b);break;}case _0x244249[_0x27134c(0x48d)]['InsertRangeMoveDownCommandId']:{_0x598469=_0x244249['handleInsertRangeMoveDown'](_0x11a43c,_0x3b519b);break;}case _0x244249['EffectRefRangId'][_0x27134c(0x376)]:{_0x598469=_0x244249[_0x27134c(0xbe)](_0x11a43c,_0x3b519b);break;}case _0x244249[_0x27134c(0x48d)][_0x27134c(0x463)]:{_0x598469=_0x244249['handleInsertRow'](_0x11a43c,_0x3b519b);break;}case _0x244249[_0x27134c(0x48d)][_0x27134c(0x342)]:{_0x598469=_0x244249[_0x27134c(0x494)](_0x11a43c,_0x3b519b);break;}case _0x244249['EffectRefRangId']['RemoveColCommandId']:{_0x598469=_0x244249[_0x27134c(0x2af)](_0x11a43c,_0x3b519b);break;}case _0x244249[_0x27134c(0x48d)][_0x27134c(0x349)]:{_0x598469=_0x244249[_0x27134c(0x454)](_0x11a43c,_0x3b519b);break;}}const _0x5c9f58=_0x244249[_0x27134c(0x380)](_0x598469,_0x3b519b),_0x39b63c=this['cursorInfo'][_0x27134c(0x400)](_0x28d5a0);if(_0x39b63c&&_0x5c9f58){const _0x1abc85={..._0x39b63c,'range':_0x5c9f58};this[_0x27134c(0x12f)][_0x27134c(0x250)](_0x28d5a0,_0x1abc85),_0x1e1f22(()=>{const _0x4b673f=_0x27134c,_0x3a1e10=this[_0x4b673f(0x2e0)][_0x4b673f(0xca)](_0x5c9f58,_0x590696=>(_0x3a1e10[_0x4b673f(0x35e)](),_0x46e4db(_0x590696,_0x28d5a0,_0x760262,_0x5c9f58)));_0x1dffac[_0x4b673f(0x8b)](_0x3a1e10);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x3a3b60(0xb2)]((_0x1071f0,_0x5bb3a4)=>{const _0x3c4053=_0x3a3b60,{range:_0x358082,sheetID:_0x102f0b}=_0x1071f0,_0x33c23e=this['_refRangeService'][_0x3c4053(0xca)](_0x358082,_0x3ac13e=>(_0x33c23e[_0x3c4053(0x35e)](),_0x46e4db(_0x3ac13e,_0x5bb3a4,_0x102f0b,_0x358082)));_0x1dffac[_0x3c4053(0x8b)](_0x33c23e);});};this[_0x3efc49(0x351)](_0x2c7fed[_0x3efc49(0x337)](this['_cursorInfo$']['subscribe'](()=>{_0x11b6ae();})));}[_0x291ba3(0x1ef)](){const _0x5abd8e=_0x291ba3;var _0x1b28ff,_0x2b925d;if(this['_online']=!0x0,((_0x1b28ff=this[_0x5abd8e(0x79)]['getFocusedUnit']())==null?void 0x0:_0x1b28ff[_0x5abd8e(0x11d)]())!==this[_0x5abd8e(0x2ea)])return;const _0x1b6b41=(_0x2b925d=this[_0x5abd8e(0x10d)][_0x5abd8e(0x400)](_0x244249[_0x5abd8e(0xd6)])[_0x5abd8e(0x1c4)]())==null?void 0x0:_0x2b925d[0x0],_0x502f7e=this[_0x5abd8e(0x79)][_0x5abd8e(0x17a)](_0x2c7fed[_0x5abd8e(0xcb)][_0x5abd8e(0x2aa)])[_0x5abd8e(0x409)]();_0x1b6b41&&_0x502f7e&&this[_0x5abd8e(0x90)](_0x502f7e['getSheetId'](),_0x1b6b41);}['_toggleOffline'](){const _0xea14ee=_0x291ba3;this[_0xea14ee(0x28a)]=!0x1;}};_0xba4728=_0x3c30d3([_0x5a668f(0x2,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x5a668f(0x3,_0x2c7fed['Inject'](_0x45b0e2)),_0x5a668f(0x4,_0x2c7fed['Inject'](_0x4d411d)),_0x5a668f(0x5,_0x2c7fed[_0x291ba3(0x27a)]),_0x5a668f(0x6,_0x2c7fed['ICommandService']),_0x5a668f(0x7,_0x2c7fed[_0x291ba3(0x16b)](_0x244249['RefRangeService']))],_0xba4728);var _0xe0d908=Object['defineProperty'],_0x576920=Object[_0x291ba3(0x373)],_0x3afca8=(_0x4edb78,_0x10775f,_0x4508d4,_0x2d1b5a)=>{const _0x22b76d=_0x291ba3;for(var _0x5f4084=_0x2d1b5a>0x1?void 0x0:_0x2d1b5a?_0x576920(_0x10775f,_0x4508d4):_0x10775f,_0x297fda=_0x4edb78[_0x22b76d(0xbb)]-0x1,_0x5bd9c9;_0x297fda>=0x0;_0x297fda--)(_0x5bd9c9=_0x4edb78[_0x297fda])&&(_0x5f4084=(_0x2d1b5a?_0x5bd9c9(_0x10775f,_0x4508d4,_0x5f4084):_0x5bd9c9(_0x5f4084))||_0x5f4084);return _0x2d1b5a&&_0x5f4084&&_0xe0d908(_0x10775f,_0x4508d4,_0x5f4084),_0x5f4084;},_0x59e0d1=(_0x1007ca,_0x53094a)=>(_0x389344,_0x312136)=>_0x53094a(_0x389344,_0x312136,_0x1007ca);let _0x47d88=class extends _0x2c7fed[_0x291ba3(0x2d5)]{constructor(_0x5518e9,_0xab01d9,_0x1c6ebb){const _0x3b6de8=_0x291ba3;super(),_0x24cbc7(this,_0x3b6de8(0x3a7),new Map()),_0x24cbc7(this,'_entityInit$',new _0x1fc547[(_0x3b6de8(0x165))]()),(this[_0x3b6de8(0x79)]=_0x5518e9,this[_0x3b6de8(0x10d)]=_0xab01d9,this[_0x3b6de8(0x374)]=_0x1c6ebb,this[_0x3b6de8(0x366)]());}[_0x291ba3(0x35e)](){const _0x2f687e=_0x291ba3;super['dispose'](),this['_entityInit$'][_0x2f687e(0x420)](),this[_0x2f687e(0x3a7)][_0x2f687e(0xb2)](_0x532d1a=>_0x532d1a[_0x2f687e(0x35e)]());}['getCollabCursors$'](_0x805631){const _0x54d3e7=_0x291ba3;return this[_0x54d3e7(0x3a7)][_0x54d3e7(0x169)](_0x805631)?this['_entities']['get'](_0x805631)[_0x54d3e7(0x431)]:this[_0x54d3e7(0xa3)][_0x54d3e7(0x256)](_0x1fc547[_0x54d3e7(0x1d1)](_0x37d84a=>_0x37d84a['unitID']===_0x805631),_0x1fc547[_0x54d3e7(0x1e2)](_0x3e9380=>_0x3e9380['cursorInfo$']));}['_init'](){const _0x3ad44b=_0x291ba3;this[_0x3ad44b(0x79)][_0x3ad44b(0x112)](_0x2c7fed[_0x3ad44b(0xcb)][_0x3ad44b(0x2aa)])[_0x3ad44b(0x256)](_0x1fc547[_0x3ad44b(0x211)](this[_0x3ad44b(0xf7)]))[_0x3ad44b(0x3f2)](async _0x3480be=>{const _0x3b9bee=_0x3ad44b,_0x37b08f=_0x3480be['getUnitId'](),_0x1ad32c=await this[_0x3b9bee(0x1a4)](_0x37b08f);this[_0x3b9bee(0xa3)]['next'](_0x1ad32c),this[_0x3b9bee(0x3a7)]['set'](_0x37b08f,_0x1ad32c);}),this[_0x3ad44b(0x79)]['getTypeOfUnitAdded$'](_0x2c7fed['UniverInstanceType']['UNIVER_DOC'])[_0x3ad44b(0x256)](_0x1fc547[_0x3ad44b(0x211)](this[_0x3ad44b(0xf7)]))[_0x3ad44b(0x256)](_0x1fc547['filter'](_0xb63c78=>!_0xb63c78['getUnitId']()[_0x3ad44b(0x3c9)]('__')))[_0x3ad44b(0x3f2)](async _0x31633e=>{const _0x20c831=_0x3ad44b,_0x5ed5b7=_0x31633e[_0x20c831(0x11d)](),_0x2dfa9f=await this['_startDocCollabCursor'](_0x5ed5b7);this[_0x20c831(0xa3)][_0x20c831(0x2ce)](_0x2dfa9f),this[_0x20c831(0x3a7)][_0x20c831(0x250)](_0x5ed5b7,_0x2dfa9f);}),_0x1fc547[_0x3ad44b(0x94)](this['_univerInstanceService'][_0x3ad44b(0xc6)](_0x2c7fed['UniverInstanceType'][_0x3ad44b(0x130)]),this[_0x3ad44b(0x79)]['getTypeOfUnitDisposed$'](_0x2c7fed[_0x3ad44b(0xcb)][_0x3ad44b(0x2aa)]))['pipe'](_0x1fc547[_0x3ad44b(0x211)](this[_0x3ad44b(0xf7)]))[_0x3ad44b(0x3f2)](_0x595bf3=>{const _0x3a85f8=_0x3ad44b,_0x124ee3=_0x595bf3['getUnitId'](),_0x3f772f=this[_0x3a85f8(0x3a7)][_0x3a85f8(0x400)](_0x124ee3);_0x3f772f&&(_0x3f772f[_0x3a85f8(0x35e)](),this[_0x3a85f8(0x3a7)][_0x3a85f8(0x39c)](_0x124ee3));});}async['_startSheetCollabCursor'](_0x468d96){const _0x567cfd=_0x291ba3,_0x12330c=await this[_0x567cfd(0x374)][_0x567cfd(0x22d)](_0x468d96),_0x1dbb14=this[_0x567cfd(0x10d)][_0x567cfd(0x266)](_0xba4728,_0x468d96,_0x12330c);return _0x1dbb14[_0x567cfd(0x1d3)](),_0x1dbb14;}async[_0x291ba3(0x123)](_0x7c047a){const _0x16d523=_0x291ba3,_0x5f5b47=await this[_0x16d523(0x374)][_0x16d523(0x22d)](_0x7c047a),_0x4fe3c8=this[_0x16d523(0x10d)]['createInstance'](_0x45d401,_0x7c047a,_0x5f5b47);return _0x4fe3c8[_0x16d523(0x1d3)](),_0x4fe3c8;}};_0x47d88=_0x3afca8([_0x59e0d1(0x0,_0x2c7fed[_0x291ba3(0x27a)]),_0x59e0d1(0x1,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x59e0d1(0x2,_0x2c7fed['Inject'](_0x594fe1[_0x291ba3(0xeb)]))],_0x47d88);const _0x34a5d2=0x14,_0x3b3c2c=0xc8,_0xf37e8f=0x4,_0xf24552=0x5;function _0x5bd8ab(_0x1b6ae3,_0x566ac8){const _0x49ec46=_0x291ba3;let {radius:_0x217ef4,width:_0x17f06b,height:_0x561bf7}=_0x566ac8;_0x217ef4=_0x217ef4!=null?_0x217ef4:0x0,_0x17f06b=_0x17f06b!=null?_0x17f06b:0x1e,_0x561bf7=_0x561bf7!=null?_0x561bf7:0x1e;let _0x21bacc=0x0,_0xa3ff30=0x0,_0x301c76=0x0;_0x21bacc=_0xa3ff30=_0x301c76=Math[_0x49ec46(0xe7)](_0x217ef4,_0x17f06b/0x2,_0x561bf7/0x2),_0x1b6ae3['beginPath'](),_0x1b6ae3['moveTo'](_0x21bacc,0x0),_0x1b6ae3[_0x49ec46(0xa5)](_0x17f06b-_0xa3ff30,0x0),_0x1b6ae3[_0x49ec46(0x41c)](_0x17f06b-_0xa3ff30,_0xa3ff30,_0xa3ff30,Math['PI']*0x3/0x2,0x0,!0x1),_0x1b6ae3['lineTo'](_0x17f06b,_0x561bf7-_0x301c76),_0x1b6ae3[_0x49ec46(0x41c)](_0x17f06b-_0x301c76,_0x561bf7-_0x301c76,_0x301c76,0x0,Math['PI']/0x2,!0x1),_0x1b6ae3[_0x49ec46(0xa5)](0x0,_0x561bf7),_0x1b6ae3[_0x49ec46(0xa5)](0x0,_0x21bacc),_0x1b6ae3[_0x49ec46(0x41c)](_0x21bacc,_0x21bacc,_0x21bacc,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1b6ae3[_0x49ec46(0xcf)](),_0x566ac8[_0x49ec46(0xe1)]&&(_0x1b6ae3[_0x49ec46(0x24b)](),_0x1b6ae3[_0x49ec46(0x331)]=_0x566ac8['fill'],_0x566ac8[_0x49ec46(0xe3)]===_0x49ec46(0x24c)?_0x1b6ae3[_0x49ec46(0xe1)](_0x49ec46(0x24c)):_0x1b6ae3[_0x49ec46(0xe1)](),_0x1b6ae3['restore']());}class _0xcb27d6 extends _0x180dc9[_0x291ba3(0x498)]{constructor(_0xee0783,_0x34ffc1){const _0x58838c=_0x291ba3;super(_0xee0783,_0x34ffc1),_0x24cbc7(this,_0x58838c(0x3c2)),_0x24cbc7(this,_0x58838c(0x151)),(this[_0x58838c(0x3c2)]=_0x34ffc1==null?void 0x0:_0x34ffc1['color'],this[_0x58838c(0x151)]=_0x34ffc1==null?void 0x0:_0x34ffc1[_0x58838c(0x151)]);}static['drawWith'](_0xd9750f,_0x26dbec){const _0x301fcb=_0x291ba3,{text:_0x3df19c,color:_0x59a744}=_0x26dbec;_0xd9750f[_0x301fcb(0x24b)](),_0xd9750f[_0x301fcb(0x336)]=_0x301fcb(0x31d);const _0x2ffbfa=_0xd9750f[_0x301fcb(0x182)](_0x3df19c)[_0x301fcb(0x259)],_0x105519=Math[_0x301fcb(0xe7)](_0x2ffbfa+0x2*_0xf37e8f,_0x3b3c2c);_0x5bd8ab(_0xd9750f,{'height':_0x34a5d2,'radius':0x4,'width':_0x105519,'fill':_0x59a744,'evented':!0x1}),_0xd9750f['fillStyle']=_0x301fcb(0x3ba);const _0x110cea=_0xf37e8f,_0x5b81e2=_0x34a5d2-_0xf24552,_0x5169b5=_0x3b3c2c-0x2*_0xf37e8f;if(_0x2ffbfa>_0x5169b5){let _0x4ad2af='',_0x17edd4=0x0;for(const _0x29b343 of _0x3df19c){const _0x418af8=_0xd9750f[_0x301fcb(0x182)](_0x29b343)[_0x301fcb(0x259)];if(_0x17edd4+_0x418af8<=_0x5169b5-_0xd9750f[_0x301fcb(0x182)](_0x301fcb(0x25b))['width'])_0x4ad2af+=_0x29b343,_0x17edd4+=_0x418af8;else{_0x4ad2af+=_0x301fcb(0x25b);break;}}_0xd9750f['fillText'](_0x4ad2af,_0x110cea,_0x5b81e2);}else _0xd9750f[_0x301fcb(0x104)](_0x3df19c,_0x110cea,_0x5b81e2);_0xd9750f[_0x301fcb(0x26d)]();}[_0x291ba3(0x268)](_0x267ce2){const _0xeb58a4=_0x291ba3;_0xcb27d6[_0xeb58a4(0x102)](_0x267ce2,this);}}const _0x5e78d2=_0x291ba3(0x493),_0x1b93c8=_0x291ba3(0x1da),_0x1ad5bd=_0x291ba3(0x44f),_0x341708=0x6,_0x4f64da=1.5,_0x34ee2d=0x4,_0x5532b8=1.5,_0x3f4aa8=_0x291ba3(0xce);class _0x1ac9b5{constructor(_0x24a690,_0x2c69d0,_0x4898f2,_0x8647e9){const _0x47b0dc=_0x291ba3;_0x24cbc7(this,_0x47b0dc(0x6f),[]),_0x24cbc7(this,'_anchor',null),_0x24cbc7(this,'_textBubble',null),_0x24cbc7(this,_0x47b0dc(0xd4),null),_0x24cbc7(this,'_hideTimer',null),_0x24cbc7(this,_0x47b0dc(0x16e),null),(this[_0x47b0dc(0x199)]=_0x24a690,this[_0x47b0dc(0x329)]=_0x2c69d0,this[_0x47b0dc(0x270)]=_0x4898f2,this['_document']=_0x8647e9,this[_0x47b0dc(0x25c)]());}set[_0x291ba3(0x27d)](_0x2894de){const _0x9cb90=_0x291ba3;_0x2894de?(this[_0x9cb90(0xd4)]&&this[_0x9cb90(0xd4)]['hide'](),this[_0x9cb90(0x162)]&&this[_0x9cb90(0x162)][_0x9cb90(0x116)]()):(this[_0x9cb90(0xd4)]&&this[_0x9cb90(0xd4)][_0x9cb90(0x116)](),this[_0x9cb90(0x162)]&&this[_0x9cb90(0x162)]['hide']());}['dispose'](){const _0x5ef317=_0x291ba3;for(const _0x3e72bc of this[_0x5ef317(0x6f)])_0x3e72bc[_0x5ef317(0x35e)]();this[_0x5ef317(0x162)]&&this[_0x5ef317(0x162)][_0x5ef317(0x35e)](),this[_0x5ef317(0xd4)]&&this[_0x5ef317(0xd4)][_0x5ef317(0x35e)](),this[_0x5ef317(0x143)]&&this[_0x5ef317(0x143)][_0x5ef317(0x35e)](),this['_eventUnsubscribe']&&this[_0x5ef317(0x16e)]();}[_0x291ba3(0x25c)](){const _0x9b36c9=_0x291ba3;var _0x1d17ae;const {_docSkeleton:_0x388180,_document:_0x4baa88}=this,{color:_0x520c99,name:_0x2c9c3e,ranges:_0x1b9aac}=this[_0x9b36c9(0x199)],_0x408890=_0x4baa88[_0x9b36c9(0x236)](),{docsLeft:_0x39673e,docsTop:_0x384fc1}=_0x408890,_0x20df9b=new _0x21cef1[(_0x9b36c9(0x135))](_0x408890,_0x388180);for(const {startOffset:_0x2fd13b,endOffset:_0x44b26f,collapsed:_0xbd55,isActive:_0x24ca69}of _0x1b9aac){const _0x2dbe0a=_0x388180[_0x9b36c9(0x74)](_0x2fd13b),_0x9f607b=_0x388180['findNodePositionByCharIndex'](_0x44b26f);if(_0x24ca69){const {contentBoxPointGroup:_0x2ef866}=_0x20df9b[_0x9b36c9(0x485)](_0x9f607b,_0x9f607b);if(_0x2ef866[_0x9b36c9(0xbb)]===0x0)continue;this['_drawAnchor'](_0x520c99,_0x2ef866,_0x39673e,_0x384fc1,_0x2c9c3e),this[_0x9b36c9(0x16e)]=this[_0x9b36c9(0x47d)]();}if(!_0xbd55&&_0x2dbe0a&&_0x9f607b){if(_0x21cef1[_0x9b36c9(0x48e)](_0x2dbe0a,_0x9f607b)){const _0xcb116b=new _0x21cef1[(_0x9b36c9(0x251))](_0x408890,_0x388180),{pointGroup:_0x4f45ac}=(_0x1d17ae=_0xcb116b['getRangePointData'](_0x2dbe0a,_0x9f607b))!=null?_0x1d17ae:{};if(_0x4f45ac==null||_0x4f45ac[_0x9b36c9(0xbb)]===0x0)continue;this[_0x9b36c9(0x12b)](_0x520c99,_0x4f45ac,_0x39673e,_0x384fc1);}else{const {contentBoxPointGroup:_0x469ae1}=_0x20df9b[_0x9b36c9(0x485)](_0x2dbe0a,_0x9f607b);if(_0x469ae1[_0x9b36c9(0xbb)]===0x0)continue;this[_0x9b36c9(0x3db)](_0x520c99,_0x469ae1,_0x39673e,_0x384fc1);}}}}[_0x291ba3(0x13c)](_0x419219,_0x1d4700,_0x35aa04,_0x542985,_0x28fc5f){const _0x3a1865=_0x291ba3,_0x516a7a=this[_0x3a1865(0x367)](_0x1d4700),{left:_0x4ab370,top:_0x31431b,height:_0x3d3b18}=_0x516a7a,_0x56531c=this[_0x3a1865(0x235)](),_0x327317=_0x5532b8/_0x56531c,_0x73465e=new _0x180dc9['Rect'](_0x5e78d2+_0x2c7fed[_0x3a1865(0xa9)][_0x3a1865(0x19d)](_0x341708),{'left':_0x4ab370+_0x35aa04-_0x327317,'top':_0x31431b+_0x542985,'height':_0x3d3b18,'width':_0x4f64da,'fill':_0x419219||_0x180dc9[_0x3a1865(0xf3)](_0x2c7fed['COLORS'][_0x3a1865(0x153)],0x0),'strokeWidth':_0x327317,'stroke':_0x3f4aa8,'evented':!0x0});this[_0x3a1865(0x143)]=_0x73465e,this[_0x3a1865(0x329)][_0x3a1865(0x2b2)](_0x73465e,_0x21cef1['TEXT_RANGE_LAYER_INDEX']);const _0x676fdb=new _0x180dc9[(_0x3a1865(0x2c2))](_0x5e78d2+_0x2c7fed['Tools'][_0x3a1865(0x19d)](_0x341708),{'left':_0x4ab370+_0x35aa04-_0x327317,'top':_0x31431b+_0x542985-_0x34ee2d/0x2,'height':_0x34ee2d,'width':_0x34ee2d,'fill':_0x419219||_0x180dc9['getColor'](_0x2c7fed[_0x3a1865(0xbc)][_0x3a1865(0x153)],0x0),'strokeWidth':0x0,'stroke':_0x419219||_0x180dc9[_0x3a1865(0xf3)](_0x2c7fed[_0x3a1865(0xbc)][_0x3a1865(0x153)],0x0),'evented':!0x1});this[_0x3a1865(0xd4)]=_0x676fdb,this[_0x3a1865(0x329)][_0x3a1865(0x2b2)](_0x676fdb,_0x21cef1[_0x3a1865(0x497)]);const _0x283af7=new _0xcb27d6(_0x5e78d2+_0x2c7fed['Tools']['generateRandomId'](_0x341708),{'left':_0x4ab370+_0x35aa04-_0x327317,'top':_0x31431b+_0x542985-_0x34a5d2,'text':_0x28fc5f,'color':_0x419219});this[_0x3a1865(0x162)]=_0x283af7,this['_scene'][_0x3a1865(0x2b2)](_0x283af7,_0x21cef1['TEXT_RANGE_LAYER_INDEX']),this[_0x3a1865(0x27d)]=!0x1;}[_0x291ba3(0x47d)](){const _0x6e7036=_0x291ba3,_0x115249=this['_anchor'][_0x6e7036(0x4a9)][_0x6e7036(0x150)](()=>{const _0x56ae3f=_0x6e7036;this[_0x56ae3f(0x27d)]=!0x0;}),_0x19a83e=this[_0x6e7036(0x143)][_0x6e7036(0x223)][_0x6e7036(0x150)](()=>{const _0x25f9cd=_0x6e7036;this['_hideTimer']&&clearTimeout(this[_0x25f9cd(0x109)]),this[_0x25f9cd(0x109)]=setTimeout(()=>{const _0x47b37b=_0x25f9cd;this[_0x47b37b(0x27d)]=!0x1;},0x7d0);});return()=>{_0x115249['unsubscribe'](),_0x19a83e['unsubscribe']();};}[_0x291ba3(0x3db)](_0xf966db,_0x4d17f8,_0x2d3469,_0x20afe9){const _0x9a9b05=_0x291ba3,_0x239cae=new _0x2c7fed[(_0x9a9b05(0x303))](_0xf966db)['setAlpha'](0.2)[_0x9a9b05(0x1b2)](),_0x5ae95b=new _0x180dc9[(_0x9a9b05(0x288))](_0x1b93c8+_0x2c7fed[_0x9a9b05(0xa9)][_0x9a9b05(0x19d)](_0x341708),{'pointsGroup':_0x4d17f8,'fill':_0x239cae||_0x180dc9[_0x9a9b05(0xf3)](_0x2c7fed[_0x9a9b05(0xbc)]['black'],0.2),'left':_0x2d3469,'top':_0x20afe9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x9a9b05(0x6f)][_0x9a9b05(0x44a)](_0x5ae95b),this[_0x9a9b05(0x329)][_0x9a9b05(0x2b2)](_0x5ae95b,_0x21cef1[_0x9a9b05(0x497)]);}['_drawRectRange'](_0x496563,_0x465318,_0x8b8dfa,_0x1d99e8){const _0x2cd3e9=_0x291ba3,_0x301e5c=new _0x2c7fed['ColorKit'](_0x496563)[_0x2cd3e9(0x1b8)](0.2)[_0x2cd3e9(0x1b2)](),_0x176c32=new _0x180dc9[(_0x2cd3e9(0x288))](_0x1ad5bd+_0x2c7fed[_0x2cd3e9(0xa9)]['generateRandomId'](_0x341708),{'pointsGroup':_0x465318,'fill':_0x301e5c||_0x180dc9['getColor'](_0x2c7fed[_0x2cd3e9(0xbc)][_0x2cd3e9(0x153)],0.2),'left':_0x8b8dfa,'top':_0x1d99e8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2cd3e9(0x6f)]['push'](_0x176c32),this[_0x2cd3e9(0x329)]['addObject'](_0x176c32,_0x21cef1[_0x2cd3e9(0x497)]);}[_0x291ba3(0x367)](_0x28e05c){const _0x3c6577=_0x28e05c[0x0],_0x11edc7=_0x3c6577[0x0],_0x573524=_0x3c6577[0x2],{x:_0x3d8342,y:_0x5ad13b}=_0x11edc7,{x:_0x17ab07,y:_0x4e3309}=_0x573524;return{'left':_0x3d8342,'top':_0x5ad13b,'width':_0x17ab07-_0x3d8342,'height':_0x4e3309-_0x5ad13b};}[_0x291ba3(0x235)](){const _0x39cb04=_0x291ba3,{scaleX:_0xced2a3,scaleY:_0x317d8d}=this['_scene'][_0x39cb04(0x438)]();return Math[_0x39cb04(0x305)](_0xced2a3,_0x317d8d);}}var _0x12f19f=Object['defineProperty'],_0x58d1eb=Object[_0x291ba3(0x373)],_0x2557a9=(_0x10b01a,_0x4ce9b7,_0x324a84,_0x36ca4a)=>{const _0x3dc407=_0x291ba3;for(var _0x18ffcc=_0x36ca4a>0x1?void 0x0:_0x36ca4a?_0x58d1eb(_0x4ce9b7,_0x324a84):_0x4ce9b7,_0x3f065a=_0x10b01a[_0x3dc407(0xbb)]-0x1,_0xd71299;_0x3f065a>=0x0;_0x3f065a--)(_0xd71299=_0x10b01a[_0x3f065a])&&(_0x18ffcc=(_0x36ca4a?_0xd71299(_0x4ce9b7,_0x324a84,_0x18ffcc):_0xd71299(_0x18ffcc))||_0x18ffcc);return _0x36ca4a&&_0x18ffcc&&_0x12f19f(_0x4ce9b7,_0x324a84,_0x18ffcc),_0x18ffcc;},_0x32a4e8=(_0x3ce41f,_0x144cf3)=>(_0x2d19ea,_0x52b723)=>_0x144cf3(_0x2d19ea,_0x52b723,_0x3ce41f);let _0x2d5972=class extends _0x2c7fed[_0x291ba3(0x2d5)]{constructor(_0x4c673a,_0x283c47,_0x532a3d,_0x24f905,_0x418140){const _0x1da996=_0x291ba3;super(),_0x24cbc7(this,_0x1da996(0x399),[]),_0x24cbc7(this,_0x1da996(0x77),[]),(this[_0x1da996(0x379)]=_0x4c673a,this['_docSkeletonManagerService']=_0x283c47,this['_collabCursorController']=_0x532a3d,this[_0x1da996(0xc0)]=_0x24f905,this['_themeService']=_0x418140,this[_0x1da996(0x366)]());}['_init'](){const _0x18aa5a=_0x291ba3,_0x169580=this['_context'][_0x18aa5a(0x137)],_0x196d0b=this[_0x18aa5a(0xa2)];this[_0x18aa5a(0x351)](_0x1fc547[_0x18aa5a(0x39f)]([this[_0x18aa5a(0x207)][_0x18aa5a(0x43d)](_0x169580),this['_themeService'][_0x18aa5a(0x186)]])['pipe'](_0x2eca2e[_0x18aa5a(0x21b)](([_0x34f21f,_0x5cfffd])=>({'skeleton':_0x196d0b['getSkeleton'](),'cursors':[..._0x34f21f['values']()][_0x18aa5a(0x3df)](_0x3f0911=>({..._0x3f0911,'color':_0x5cfffd[_0x3f0911['color']]}))})))[_0x18aa5a(0x3f2)](_0xa45e38=>{if(this['_removeCollabCursors'](),_0xa45e38){const {skeleton:_0x5de936,cursors:_0x11749f}=_0xa45e38;this['_updateCollabCursors'](_0x5de936,_0x11749f);}})),this[_0x18aa5a(0x2e4)](),this[_0x18aa5a(0x95)]();}[_0x291ba3(0xf0)](_0x574621,_0x251470){const _0x38b761=_0x291ba3,{scene:_0x59d589,mainComponent:_0x58e99}=this[_0x38b761(0x379)],_0x34cff6=_0x251470[_0x38b761(0x21b)](_0x181f2e=>new _0x1ac9b5(_0x181f2e,_0x59d589,_0x574621,_0x58e99));this['_cursorShapes']=_0x34cff6,this[_0x38b761(0x77)]=_0x251470;}[_0x291ba3(0x481)](){const _0x3db8a5=_0x291ba3;this[_0x3db8a5(0xe0)]();const {scene:_0x2d87ec,mainComponent:_0x5d0580}=this[_0x3db8a5(0x379)],_0x3ac1c2=this['_docSkeletonManagerService'][_0x3db8a5(0x28d)](),_0x32e08c=this['_cursors'][_0x3db8a5(0x21b)](_0x2ee3c2=>new _0x1ac9b5(_0x2ee3c2,_0x2d87ec,_0x3ac1c2,_0x5d0580));this[_0x3db8a5(0x399)]=_0x32e08c;}[_0x291ba3(0xe0)](){const _0x152ee0=_0x291ba3;this[_0x152ee0(0x399)][_0x152ee0(0xb2)](_0x3cb4ae=>_0x3cb4ae[_0x152ee0(0x35e)]()),this[_0x152ee0(0x399)]=[];}[_0x291ba3(0x95)](){const _0x49474f=_0x291ba3,_0x1f811e=[_0x21cef1[_0x49474f(0x230)]['id']];this[_0x49474f(0x351)](this[_0x49474f(0xc0)][_0x49474f(0x313)](_0x149127=>{const _0x4fc4b1=_0x49474f;_0x1f811e['includes'](_0x149127['id'])&&_0x149127[_0x4fc4b1(0x184)][_0x4fc4b1(0x137)]===this['_context'][_0x4fc4b1(0x137)]&&this[_0x4fc4b1(0x481)]();}));}[_0x291ba3(0x2e4)](){const _0x102cd2=_0x291ba3;this[_0x102cd2(0x351)](_0x2c7fed[_0x102cd2(0x1bd)](this[_0x102cd2(0x379)][_0x102cd2(0x3c8)][_0x102cd2(0x20a)])[_0x102cd2(0x256)](_0x2eca2e['filter'](_0x4b8c5b=>_0x4b8c5b[_0x102cd2(0x33c)]===_0x180dc9[_0x102cd2(0x298)][_0x102cd2(0x1bc)]),_0x2eca2e['throttleTime'](0x10))[_0x102cd2(0x3f2)](()=>{const _0xa9994d=_0x102cd2;this[_0xa9994d(0x481)]();}));}};_0x2d5972=_0x2557a9([_0x32a4e8(0x1,_0x2c7fed['Inject'](_0x7ac583[_0x291ba3(0x332)])),_0x32a4e8(0x2,_0x2c7fed[_0x291ba3(0x16b)](_0x47d88)),_0x32a4e8(0x3,_0x2c7fed[_0x291ba3(0x15a)]),_0x32a4e8(0x4,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x42f)]))],_0x2d5972);const _0xe6c732=0x1,_0x52413b=1.5;class _0x54131f extends _0x180dc9[_0x291ba3(0x498)]{constructor(_0x11cac9,_0x796d02){const _0x1a4433=_0x291ba3;super(_0x11cac9,_0x796d02),_0x24cbc7(this,_0x1a4433(0x46c)),_0x24cbc7(this,_0x1a4433(0x29c),!0x1),_0x24cbc7(this,_0x1a4433(0x19c)),_0x24cbc7(this,_0x1a4433(0x238),''),_0x24cbc7(this,_0x1a4433(0x17e),_0x1a4433(0x2d6)),_0x24cbc7(this,_0x1a4433(0x446)),(_0x796d02&&this[_0x1a4433(0x2c6)](_0x796d02),this[_0x1a4433(0x4a9)][_0x1a4433(0x150)](()=>this[_0x1a4433(0x2c6)]({'hovered':!0x0})),this[_0x1a4433(0x223)][_0x1a4433(0x150)](()=>this[_0x1a4433(0x2c6)]({'hovered':!0x1})));}[_0x291ba3(0x2c6)](_0x35675c){const _0x2d28af=_0x291ba3;var _0x495808,_0x1c64b0,_0x35bdef,_0x524d0a,_0x7936f6,_0x3004b3;this[_0x2d28af(0x46c)]=(_0x495808=_0x35675c[_0x2d28af(0x3c2)])!=null?_0x495808:this['_color'],this[_0x2d28af(0x29c)]=(_0x1c64b0=_0x35675c[_0x2d28af(0x2c0)])!=null?_0x1c64b0:this['_hovered'],this[_0x2d28af(0x19c)]=(_0x35bdef=_0x35675c['range'])!=null?_0x35bdef:this[_0x2d28af(0x19c)],this['_name']=(_0x524d0a=_0x35675c[_0x2d28af(0x2a6)])!=null?_0x524d0a:this[_0x2d28af(0x238)],this[_0x2d28af(0x17e)]=(_0x7936f6=_0x35675c[_0x2d28af(0x68)])!=null?_0x7936f6:this[_0x2d28af(0x17e)],this['_backgroundColor']=(_0x3004b3=_0x35675c[_0x2d28af(0xc4)])!=null?_0x3004b3:this[_0x2d28af(0x446)],this[_0x2d28af(0x1f4)]({'width':_0x35675c[_0x2d28af(0x259)],'height':_0x35675c[_0x2d28af(0x3bc)]});}[_0x291ba3(0xae)](_0x4e7f42){const _0x4eeb2a=_0x291ba3,{row:_0x4c2e71,column:_0x24807d}=_0x4e7f42;if(_0x4c2e71>=this['_range'][_0x4eeb2a(0x492)]&&_0x4c2e71<=this[_0x4eeb2a(0x19c)][_0x4eeb2a(0x20e)]&&_0x24807d>=this[_0x4eeb2a(0x19c)][_0x4eeb2a(0x321)]&&_0x24807d<=this['_range']['endColumn']){this[_0x4eeb2a(0x2c6)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x291ba3(0x314)](_0x2802af){return!0x1;}[_0x291ba3(0x268)](_0x459434){const _0x3ea3ff=_0x291ba3;_0x180dc9[_0x3ea3ff(0x2c2)][_0x3ea3ff(0x102)](_0x459434,{'width':this[_0x3ea3ff(0x259)],'height':this['height'],'strokeWidth':_0x52413b,'stroke':this[_0x3ea3ff(0x46c)],'evented':!0x1,'fill':this[_0x3ea3ff(0x446)]}),this[_0x3ea3ff(0x29c)]&&(_0x459434[_0x3ea3ff(0x24b)](),_0x459434[_0x3ea3ff(0x490)](0x1,0x0,0x0,0x1,this[_0x3ea3ff(0x259)],this[_0x3ea3ff(0x17e)]===_0x3ea3ff(0x2a2)?0x0:-_0x34a5d2),_0xcb27d6['drawWith'](_0x459434,{'text':this[_0x3ea3ff(0x238)],'color':this[_0x3ea3ff(0x46c)]}),_0x459434['restore']());}}var _0x501e5d=Object['defineProperty'],_0x266d1d=Object[_0x291ba3(0x373)],_0xcbb32f=(_0x26d599,_0x5a0241,_0x2ef03f,_0x392a29)=>{for(var _0x44abb3=_0x392a29>0x1?void 0x0:_0x392a29?_0x266d1d(_0x5a0241,_0x2ef03f):_0x5a0241,_0x3b6938=_0x26d599['length']-0x1,_0x3a9b59;_0x3b6938>=0x0;_0x3b6938--)(_0x3a9b59=_0x26d599[_0x3b6938])&&(_0x44abb3=(_0x392a29?_0x3a9b59(_0x5a0241,_0x2ef03f,_0x44abb3):_0x3a9b59(_0x44abb3))||_0x44abb3);return _0x392a29&&_0x44abb3&&_0x501e5d(_0x5a0241,_0x2ef03f,_0x44abb3),_0x44abb3;},_0x418f93=(_0x2ffc52,_0x1d4885)=>(_0x308794,_0x382ca8)=>_0x1d4885(_0x308794,_0x382ca8,_0x2ffc52);const _0x2116ef=0x1389;let _0x56e595=class extends _0x2c7fed['RxDisposable']{constructor(_0x5b1aa0,_0x1689d6,_0x1838a5,_0x443980){const _0x4172f8=_0x291ba3;super(),_0x24cbc7(this,'_cursors',new Set()),_0x24cbc7(this,_0x4172f8(0x15d),null),(this[_0x4172f8(0x379)]=_0x5b1aa0,this[_0x4172f8(0x34a)]=_0x1689d6,this[_0x4172f8(0x207)]=_0x1838a5,this[_0x4172f8(0x6e)]=_0x443980,this[_0x4172f8(0x366)]());}[_0x291ba3(0x366)](){const _0x42b4b1=_0x291ba3;this[_0x42b4b1(0x34a)][_0x42b4b1(0x168)][_0x42b4b1(0x256)](_0x2eca2e[_0x42b4b1(0x211)](this[_0x42b4b1(0xf7)]),_0x2eca2e[_0x42b4b1(0x1e2)](_0x2c252c=>{const _0x3fb844=_0x42b4b1;if(_0x2c252c){const _0x153fb7=_0x2c252c[_0x3fb844(0x6a)];return _0x1fc547[_0x3fb844(0x39f)](this[_0x3fb844(0x207)][_0x3fb844(0x43d)](this['_context']['unitId']),this[_0x3fb844(0x6e)][_0x3fb844(0x186)])['pipe'](_0x2eca2e[_0x3fb844(0x21b)](([_0xd744b6,_0x26bfe4])=>{const _0x159c97=_0x3fb844,_0x1f28fc=new Map();return _0xd744b6[_0x159c97(0xb2)]((_0x2f90f8,_0x4445c4)=>{const _0x5e308e=_0x159c97;if(_0x2f90f8[_0x5e308e(0x2bd)]===_0x153fb7){const _0x10e522={..._0x2f90f8};_0x10e522[_0x5e308e(0x3c2)]=_0x26bfe4[_0x2f90f8['color']],_0x1f28fc[_0x5e308e(0x250)](_0x4445c4,_0x10e522);}}),{'skeleton':_0x2c252c,'cursors':_0x1f28fc};}));}return _0x1fc547['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x367ffe,cursors:_0x192262})=>{const _0x5548d3=_0x42b4b1;this[_0x5548d3(0xe0)](),_0x367ffe&&this[_0x5548d3(0xf0)](_0x367ffe,_0x192262);}),this[_0x42b4b1(0x34a)][_0x42b4b1(0x168)]['subscribe'](_0x1765bd=>{const _0x21fb1e=_0x42b4b1;if(_0x1765bd==null)return;const {skeleton:_0x1bef7c}=_0x1765bd,{scene:_0x298957}=this[_0x21fb1e(0x379)];_0x298957[_0x21fb1e(0x3ca)][_0x21fb1e(0x150)](_0x2c7fed[_0x21fb1e(0xa7)](_0x27a62f=>{const _0x13d6aa=_0x21fb1e;var _0x25fcea,_0x4429d6;const {offsetX:_0x470880,offsetY:_0x2ee81b}=_0x27a62f,{x:_0x46bd52,y:_0x2e7e8c}=_0x298957[_0x13d6aa(0x188)](_0x180dc9['Vector2'][_0x13d6aa(0x417)]([_0x470880,_0x2ee81b])),{scaleX:_0x2107a6,scaleY:_0x244558}=_0x298957[_0x13d6aa(0x438)](),_0x29d74c=_0x298957[_0x13d6aa(0x1ff)](_0x3f13ec[_0x13d6aa(0x4a1)][_0x13d6aa(0x327)]),_0x498c6f=_0x298957[_0x13d6aa(0x499)](_0x180dc9['Vector2']['FromArray']([_0x46bd52,_0x2e7e8c]),_0x29d74c),_0x83b5a9=_0x1bef7c[_0x13d6aa(0x40e)](_0x470880,_0x2ee81b,_0x2107a6,_0x244558,_0x498c6f);((_0x25fcea=this[_0x13d6aa(0x15d)])==null?void 0x0:_0x25fcea[_0x13d6aa(0x219)])===_0x83b5a9[_0x13d6aa(0x219)]&&((_0x4429d6=this[_0x13d6aa(0x15d)])==null?void 0x0:_0x4429d6[_0x13d6aa(0x37b)])===_0x83b5a9['row']||this['_cursors'][_0x13d6aa(0xb2)](_0x35f326=>{const _0x3ebfff=_0x13d6aa;_0x35f326[_0x3ebfff(0xae)](_0x83b5a9);});},0x64));});}[_0x291ba3(0xf0)](_0x31f27a,_0x5a44e5){const _0x4d9220=_0x291ba3;var _0x34ed4b;const _0x4001f5=(_0x34ed4b=this[_0x4d9220(0x34a)][_0x4d9220(0x2ca)]())==null?void 0x0:_0x34ed4b[_0x4d9220(0x43a)];if(!_0x4001f5)return;const _0x3a34a2=this[_0x4d9220(0x466)]();if(!_0x3a34a2)return;this[_0x4d9220(0x77)][_0x4d9220(0xb2)](_0x4a73e8=>{const _0x24ccbd=_0x4d9220;_0x4a73e8[_0x24ccbd(0x448)]();});const {scene:_0x5e8b9a}=_0x3a34a2,_0x25b731=_0x4a8764(Array[_0x4d9220(0x403)](_0x5a44e5[_0x4d9220(0x271)]()))[_0x4d9220(0x21b)](_0x579500=>{const _0x3e2ff1=_0x4d9220,{color:_0x55878c,range:_0x3ae6c7,name:_0x24abf0,selection:_0x2c4da9,sheetID:_0x1e9ed1}=_0x579500,{startColumn:_0x14b072,startRow:_0x277a14,endColumn:_0x55041c,endRow:_0xda1dce}=_0x3ae6c7,_0x3a86f8=_0x3f13ec[_0x3e2ff1(0x23f)](_0x277a14,_0x14b072,_0x5e8b9a,_0x4001f5),_0x1a0189=_0x3f13ec['getCoordByCell'](_0xda1dce,_0x55041c,_0x5e8b9a,_0x4001f5),{columnHeaderHeightAndMarginTop:_0x572984}=_0x4001f5,{startX:_0x5d2408,startY:_0x35ae8b}=_0x3a86f8,{endX:_0x115ece,endY:_0x33862a}=_0x1a0189,_0x431064=_0x115ece-_0x5d2408,_0x3734e3=_0x33862a-_0x35ae8b,_0x38837c={'labelPosition':_0x35ae8b-_0x572984>=_0x34a5d2?_0x3e2ff1(0x2d6):_0x3e2ff1(0x2a2),'sheetID':_0x1e9ed1,'range':_0x3ae6c7,'color':_0x55878c,'name':_0x24abf0,'selection':_0x2c4da9,'left':_0x5d2408,'top':_0x35ae8b,'width':_0x431064,'height':_0x3734e3,'evented':!0x1,'zIndex':_0x2116ef};return new _0x54131f(_0x24abf0,_0x38837c);});_0x5e8b9a[_0x4d9220(0x8d)](_0x25b731,_0xe6c732),this[_0x4d9220(0x77)]=new Set(_0x25b731);}[_0x291ba3(0xe0)](){const _0x2ef330=_0x291ba3;var _0x557577;(_0x557577=this[_0x2ef330(0x77)])==null||_0x557577['forEach'](_0x18989=>_0x18989[_0x2ef330(0x35e)]());}[_0x291ba3(0x466)](){const _0x2a5954=_0x291ba3;return _0x3f13ec['getSheetObject'](this[_0x2a5954(0x379)][_0x2a5954(0x179)],this[_0x2a5954(0x379)]);}};_0x56e595=_0xcbb32f([_0x418f93(0x1,_0x2c7fed[_0x291ba3(0x16b)](_0x3f13ec[_0x291ba3(0x3fb)])),_0x418f93(0x2,_0x2c7fed[_0x291ba3(0x16b)](_0x47d88)),_0x418f93(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x42f)]))],_0x56e595);function _0x4a8764(_0x49ff6b){const _0x45901d=_0x291ba3,_0x3555a2=new Map();return _0x49ff6b[_0x45901d(0xb2)](_0xdb352d=>{const _0x3791ec=_0x45901d;if(_0x3555a2[_0x3791ec(0x169)](_0xdb352d[_0x3791ec(0x204)])){const _0x4ece57=_0x3555a2[_0x3791ec(0x400)](_0xdb352d[_0x3791ec(0x204)]);_0x4ece57[_0x3791ec(0x2a6)]+=',\x20'+_0xdb352d[_0x3791ec(0x2a6)];}else _0x3555a2[_0x3791ec(0x250)](_0xdb352d[_0x3791ec(0x204)],_0xdb352d);}),Array['from'](_0x3555a2[_0x45901d(0x271)]());}var _0x513779=function(){const _0x5f29fd=_0x291ba3;return _0x513779=Object[_0x5f29fd(0xdc)]||function(_0x4937b3){const _0x51db1c=_0x5f29fd;for(var _0x532646,_0x4dcc45=0x1,_0x5dd634=arguments[_0x51db1c(0xbb)];_0x4dcc45<_0x5dd634;_0x4dcc45++){_0x532646=arguments[_0x4dcc45];for(var _0x38de18 in _0x532646)Object['prototype']['hasOwnProperty']['call'](_0x532646,_0x38de18)&&(_0x4937b3[_0x38de18]=_0x532646[_0x38de18]);}return _0x4937b3;},_0x513779['apply'](this,arguments);},_0x413aa7=function(_0x5c3abe,_0x4e5b64){const _0x1b2c74=_0x291ba3;var _0x211526={};for(var _0x1e0a86 in _0x5c3abe)Object[_0x1b2c74(0x91)][_0x1b2c74(0x1d0)][_0x1b2c74(0x384)](_0x5c3abe,_0x1e0a86)&&_0x4e5b64[_0x1b2c74(0x39e)](_0x1e0a86)<0x0&&(_0x211526[_0x1e0a86]=_0x5c3abe[_0x1e0a86]);if(_0x5c3abe!=null&&typeof Object[_0x1b2c74(0x148)]==_0x1b2c74(0x34d)){for(var _0x164bab=0x0,_0x1e0a86=Object[_0x1b2c74(0x148)](_0x5c3abe);_0x164bab<_0x1e0a86[_0x1b2c74(0xbb)];_0x164bab++)_0x4e5b64[_0x1b2c74(0x39e)](_0x1e0a86[_0x164bab])<0x0&&Object[_0x1b2c74(0x91)][_0x1b2c74(0x1a0)]['call'](_0x5c3abe,_0x1e0a86[_0x164bab])&&(_0x211526[_0x1e0a86[_0x164bab]]=_0x5c3abe[_0x1e0a86[_0x164bab]]);}return _0x211526;},_0x5079ab=_0x18f464[_0x291ba3(0x88)](function(_0xd1606e,_0x35a29c){const _0x283310=_0x291ba3;var _0x5c58be=_0xd1606e[_0x283310(0x3fe)],_0x4e2a53=_0xd1606e['id'],_0x446574=_0xd1606e[_0x283310(0x496)],_0x1ca785=_0xd1606e[_0x283310(0x215)],_0x3fd017=_0x413aa7(_0xd1606e,['icon','id',_0x283310(0x496),'extend']),_0x5a6a3b=_0x283310(0x2b8)[_0x283310(0x457)](_0x4e2a53,'\x20')[_0x283310(0x457)](_0x446574||'')[_0x283310(0x418)](),_0x2a731e=_0x18f464[_0x283310(0x375)]('_'[_0x283310(0x457)](_0x44e9c6()));return _0x3c663b(_0x5c58be,''[_0x283310(0x457)](_0x4e2a53),{'defIds':_0x5c58be[_0x283310(0x47a)],'idSuffix':_0x2a731e[_0x283310(0x398)]},_0x513779({'ref':_0x35a29c,'className':_0x5a6a3b},_0x3fd017),_0x1ca785);});function _0x3c663b(_0x1f8364,_0x5a164a,_0x1e52d7,_0x36088f,_0x5c1765){const _0x459a36=_0x291ba3;return _0x18f464[_0x459a36(0x1e8)](_0x1f8364['tag'],_0x513779(_0x513779({'key':_0x5a164a},_0x158d39(_0x1f8364,_0x1e52d7,_0x5c1765)),_0x36088f),(_0x4a8638(_0x1f8364,_0x1e52d7)[_0x459a36(0x16f)]||[])[_0x459a36(0x21b)](function(_0x502b1e,_0x2cf348){const _0x33d481=_0x459a36;return _0x3c663b(_0x502b1e,''[_0x33d481(0x457)](_0x5a164a,'-')['concat'](_0x1f8364[_0x33d481(0x2ed)],'-')[_0x33d481(0x457)](_0x2cf348),_0x1e52d7,void 0x0,_0x5c1765);}));}function _0x158d39(_0xbcebf5,_0x42516c,_0x1e6573){const _0x4cbd82=_0x291ba3;var _0x3cbe2e=_0x513779({},_0xbcebf5[_0x4cbd82(0xe4)]);_0x1e6573!=null&&_0x1e6573[_0x4cbd82(0x40d)]&&_0x3cbe2e[_0x4cbd82(0xe1)]===_0x4cbd82(0x40d)&&(_0x3cbe2e['fill']=_0x1e6573['colorChannel1']);var _0x217193=_0x42516c['defIds'];return!_0x217193||_0x217193[_0x4cbd82(0xbb)]===0x0||(_0xbcebf5['tag']===_0x4cbd82(0x1fe)&&_0x3cbe2e[_0x4cbd82(0x49e)]&&(_0x3cbe2e[_0x4cbd82(0x49e)]=_0x3cbe2e[_0x4cbd82(0x49e)]+_0x42516c[_0x4cbd82(0x37e)]),Object[_0x4cbd82(0x36f)](_0x3cbe2e)[_0x4cbd82(0xb2)](function(_0x538d63){const _0x5b4a7d=_0x4cbd82;var _0x3d4574=_0x538d63[0x0],_0x5a2653=_0x538d63[0x1];typeof _0x5a2653==_0x5b4a7d(0x3f7)&&(_0x3cbe2e[_0x3d4574]=_0x5a2653[_0x5b4a7d(0x46d)](/url\(#(.*)\)/,_0x5b4a7d(0xb3)[_0x5b4a7d(0x457)](_0x42516c[_0x5b4a7d(0x37e)],')')));})),_0x3cbe2e;}function _0x4a8638(_0x45ad17,_0x1c9197){const _0x739f21=_0x291ba3;var _0x4565b0,_0x390568=_0x1c9197['defIds'];return!_0x390568||_0x390568[_0x739f21(0xbb)]===0x0?_0x45ad17:_0x45ad17[_0x739f21(0x2ed)]===_0x739f21(0xec)&&(!((_0x4565b0=_0x45ad17['children'])===null||_0x4565b0===void 0x0)&&_0x4565b0[_0x739f21(0xbb)])?_0x513779(_0x513779({},_0x45ad17),{'children':_0x45ad17[_0x739f21(0x16f)]['map'](function(_0xb6ed3b){const _0x116ffa=_0x739f21;return typeof _0xb6ed3b[_0x116ffa(0xe4)]['id']==_0x116ffa(0x3f7)&&_0x390568&&_0x390568[_0x116ffa(0x39e)](_0xb6ed3b[_0x116ffa(0xe4)]['id'])>-0x1?_0x513779(_0x513779({},_0xb6ed3b),{'attrs':_0x513779(_0x513779({},_0xb6ed3b[_0x116ffa(0xe4)]),{'id':_0xb6ed3b['attrs']['id']+_0x1c9197[_0x116ffa(0x37e)]})}):_0xb6ed3b;})}):_0x45ad17;}function _0x44e9c6(){const _0x562437=_0x291ba3;return Math[_0x562437(0x26e)]()['toString'](0x24)[_0x562437(0xed)](0x2,0x8);}_0x5079ab[_0x291ba3(0x310)]='UniverIcon';var _0x526a20={'tag':_0x291ba3(0x1f8),'attrs':{'fill':_0x291ba3(0x1ec),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x291ba3(0xf4)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x291ba3(0x449),'attrs':{'stroke':_0x291ba3(0x189),'d':_0x291ba3(0xb5),'strokeLinecap':'round','strokeLinejoin':_0x291ba3(0xfb),'strokeWidth':1.2}}]},{'tag':_0x291ba3(0xec),'attrs':{},'children':[{'tag':_0x291ba3(0x423),'attrs':{'id':_0x291ba3(0x12a)},'children':[{'tag':_0x291ba3(0x449),'attrs':{'fill':'#fff','d':_0x291ba3(0x3cb)}}]}]}],'defIds':[_0x291ba3(0x12a)]},_0x5eee6c=_0x18f464[_0x291ba3(0x88)](function(_0x57b830,_0x21c743){const _0x1be698=_0x291ba3;return _0x18f464['createElement'](_0x5079ab,Object[_0x1be698(0xdc)]({},_0x57b830,{'id':_0x1be698(0x21d),'ref':_0x21c743,'icon':_0x526a20}));});_0x5eee6c[_0x291ba3(0x310)]=_0x291ba3(0x18f);var _0x1c6981={'tag':_0x291ba3(0x1f8),'attrs':{'fill':'none','viewBox':_0x291ba3(0x260),'width':'1em','height':_0x291ba3(0xf4)},'children':[{'tag':'g','attrs':{'clipPath':_0x291ba3(0x255)},'children':[{'tag':_0x291ba3(0x449),'attrs':{'stroke':_0x291ba3(0x189),'d':_0x291ba3(0x233),'strokeLinecap':_0x291ba3(0xfb),'strokeLinejoin':_0x291ba3(0xfb),'strokeWidth':1.2}}]},{'tag':_0x291ba3(0xec),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x291ba3(0x3cb),'transform':'translate(.97)'}}]}]}],'defIds':[_0x291ba3(0x273)]},_0x44b724=_0x18f464['forwardRef'](function(_0x3ac275,_0x453630){const _0x4eff99=_0x291ba3;return _0x18f464[_0x4eff99(0x1e8)](_0x5079ab,Object[_0x4eff99(0xdc)]({},_0x3ac275,{'id':_0x4eff99(0x177),'ref':_0x453630,'icon':_0x1c6981}));});_0x44b724['displayName']=_0x291ba3(0x36b);function _0x3618fd(_0x2fcbc8){const _0x4aaa6b=_0x291ba3;var _0xf3e3b8,_0x3fe12f,_0x3ec107='';if(typeof _0x2fcbc8==_0x4aaa6b(0x3f7)||typeof _0x2fcbc8==_0x4aaa6b(0xd9))_0x3ec107+=_0x2fcbc8;else{if(typeof _0x2fcbc8=='object'){if(Array[_0x4aaa6b(0x358)](_0x2fcbc8)){var _0x13eaaf=_0x2fcbc8[_0x4aaa6b(0xbb)];for(_0xf3e3b8=0x0;_0xf3e3b8<_0x13eaaf;_0xf3e3b8++)_0x2fcbc8[_0xf3e3b8]&&(_0x3fe12f=_0x3618fd(_0x2fcbc8[_0xf3e3b8]))&&(_0x3ec107&&(_0x3ec107+='\x20'),_0x3ec107+=_0x3fe12f);}else{for(_0x3fe12f in _0x2fcbc8)_0x2fcbc8[_0x3fe12f]&&(_0x3ec107&&(_0x3ec107+='\x20'),_0x3ec107+=_0x3fe12f);}}}return _0x3ec107;}function _0x42303b(){for(var _0xb237ad,_0x22d5e3,_0x3d9189=0x0,_0x24fce4='',_0xb641f8=arguments['length'];_0x3d9189<_0xb641f8;_0x3d9189++)(_0xb237ad=arguments[_0x3d9189])&&(_0x22d5e3=_0x3618fd(_0xb237ad))&&(_0x24fce4&&(_0x24fce4+='\x20'),_0x24fce4+=_0x22d5e3);return _0x24fce4;}const _0x4b4c5c={'onlineStatusIcon':'univer-online-status-icon','onlineStatusTitle':_0x291ba3(0x3a1),'onlineStatus':_0x291ba3(0x3b0),'online':'univer-online','offline':_0x291ba3(0x14d)};function _0x45e6da(_0x1fda2d){const _0x59fc4e=_0x291ba3;switch(_0x1fda2d){case _0x5b6195[_0x59fc4e(0x2cf)]:return'collabStatus.offline';case _0x5b6195[_0x59fc4e(0x426)]:return _0x59fc4e(0x241);case _0x5b6195[_0x59fc4e(0x458)]:return _0x59fc4e(0x3ec);case _0x5b6195[_0x59fc4e(0x180)]:return'collabStatus.notCollab';case _0x5b6195[_0x59fc4e(0xda)]:case _0x5b6195[_0x59fc4e(0x48f)]:case _0x5b6195[_0x59fc4e(0x1f7)]:return'collabStatus.syncing';case _0x5b6195['SYNCED']:return'collabStatus.synced';}}function _0x3603b1(_0x2afe92){const _0x51854b=_0x291ba3,{status$:_0x517037}=_0x2afe92,_0x3418c2=_0x4b403d[_0x51854b(0x333)](_0x517037,_0x5b6195[_0x51854b(0x180)]),_0x10d4e9=_0x2c7fed[_0x51854b(0x1e1)](_0x2c7fed[_0x51854b(0x1a7)]),_0x992728=_0x2c7fed[_0x51854b(0x1e1)](_0x594fe1['CollaborationSessionService']),_0x124254=_0x3418c2!==_0x5b6195[_0x51854b(0x2cf)],_0x58c067=_0x10d4e9['t'](_0x45e6da(_0x3418c2)),_0x2400c7=_0x42303b(_0x4b4c5c['onlineStatus'],{[_0x4b4c5c[_0x51854b(0x269)]]:_0x124254,[_0x4b4c5c['offline']]:!_0x124254}),_0x26f5c7=_0x124254?_0x18f464[_0x51854b(0x1e8)](_0x44b724,null):_0x18f464[_0x51854b(0x1e8)](_0x5eee6c,null),_0x120cc6=_0x18f464[_0x51854b(0x318)](()=>{const _0x403cf1=_0x51854b;_0x124254||_0x992728[_0x403cf1(0x3d7)]();},[_0x124254,_0x992728]);function _0x5f3d35(){const _0x34c5be=_0x51854b;return _0x18f464[_0x34c5be(0x1e8)](_0x34c5be(0x71),{'className':_0x2400c7,'onClick':_0x120cc6},_0x18f464[_0x34c5be(0x1e8)]('div',{'className':_0x4b4c5c[_0x34c5be(0x1aa)]},_0x26f5c7),_0x18f464[_0x34c5be(0x1e8)]('div',{'className':_0x4b4c5c[_0x34c5be(0x39b)]},_0x58c067));}return _0x124254?_0x5f3d35():_0x18f464['createElement'](_0x4d689c[_0x51854b(0x3dc)],{'title':_0x10d4e9['t']('collab-client.tooltip.reconnect')},_0x5f3d35());}var _0x1bcc55=Object[_0x291ba3(0x3e4)],_0x12a26c=Object[_0x291ba3(0x373)],_0x27207c=(_0x42d3f0,_0x513ff5,_0x139d6c,_0x93c2ec)=>{const _0x295751=_0x291ba3;for(var _0x24f36e=_0x93c2ec>0x1?void 0x0:_0x93c2ec?_0x12a26c(_0x513ff5,_0x139d6c):_0x513ff5,_0xf470e0=_0x42d3f0[_0x295751(0xbb)]-0x1,_0x5779fc;_0xf470e0>=0x0;_0xf470e0--)(_0x5779fc=_0x42d3f0[_0xf470e0])&&(_0x24f36e=(_0x93c2ec?_0x5779fc(_0x513ff5,_0x139d6c,_0x24f36e):_0x5779fc(_0x24f36e))||_0x24f36e);return _0x93c2ec&&_0x24f36e&&_0x1bcc55(_0x513ff5,_0x139d6c,_0x24f36e),_0x24f36e;},_0x5e989c=(_0x25faeb,_0xec88cb)=>(_0x1f0756,_0x519394)=>_0xec88cb(_0x1f0756,_0x519394,_0x25faeb);_0x594fe1[_0x291ba3(0x432)]=class extends _0x2c7fed['Disposable']{constructor(_0x5f2bf4,_0x363343,_0x56d0a1,_0x2b6c5a){const _0x4aab57=_0x291ba3;super(),_0x24cbc7(this,_0x4aab57(0x6d),new _0x1fc547[(_0x4aab57(0x467))](_0x5b6195[_0x4aab57(0x180)])),(this[_0x4aab57(0x79)]=_0x5f2bf4,this[_0x4aab57(0x9d)]=_0x363343,this['_injector']=_0x56d0a1,this[_0x4aab57(0x27f)]=_0x2b6c5a,this[_0x4aab57(0x346)](),this[_0x4aab57(0xa1)]());}['_initStatusListener'](){const _0x84492=_0x291ba3;this['disposeWithMe'](this[_0x84492(0x79)][_0x84492(0x43c)][_0x84492(0x256)](_0x1fc547['switchMap'](()=>{const _0x1933a3=_0x84492,_0x13951b=this[_0x1933a3(0x79)][_0x1933a3(0xa6)]();return _0x13951b?this[_0x1933a3(0x27f)][_0x1933a3(0x17f)](_0x13951b[_0x1933a3(0x11d)]()):_0x1fc547['of'](null);}),_0x1fc547[_0x84492(0x1e2)](_0x274cf1=>_0x274cf1?_0x274cf1['status$']:_0x1fc547['of'](_0x5b6195[_0x84492(0x180)])))['subscribe'](_0x314b55=>{const _0x19bc1f=_0x84492;this[_0x19bc1f(0x6d)]['next'](_0x314b55);}));}['_initStatusComponent'](){const _0x43d190=_0x291ba3;this[_0x43d190(0x351)](this[_0x43d190(0x9d)]['registerComponent'](_0x4b403d[_0x43d190(0x412)][_0x43d190(0x31a)],()=>_0x2c7fed[_0x43d190(0x461)](_0x6545f3({'status$':this['_status$'][_0x43d190(0x442)]()}),this[_0x43d190(0x10d)])));}},_0x594fe1['DesktopCollaborationStatusDisplayController']=_0x27207c([_0x5e989c(0x0,_0x2c7fed[_0x291ba3(0x27a)]),_0x5e989c(0x1,_0x4b403d[_0x291ba3(0x39d)]),_0x5e989c(0x2,_0x2c7fed['Inject'](_0x2c7fed[_0x291ba3(0x4a2)])),_0x5e989c(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1[_0x291ba3(0x1be)]))],_0x594fe1[_0x291ba3(0x432)]);function _0x6545f3(_0x5412dc){const {status$:_0x3b5dfb}=_0x5412dc;return function(){return _0x18f464['createElement'](_0x3603b1,{'status$':_0x3b5dfb});};}const _0x47e3f7=_0x2c7fed[_0x291ba3(0x33e)]('uni.network.url-service');var _0x28c600=Object[_0x291ba3(0x3e4)],_0x20ead4=Object['getOwnPropertyDescriptor'],_0x311fac=(_0x187596,_0x435c34,_0x187cef,_0x10c0bb)=>{const _0x518fc8=_0x291ba3;for(var _0x2fa654=_0x10c0bb>0x1?void 0x0:_0x10c0bb?_0x20ead4(_0x435c34,_0x187cef):_0x435c34,_0xe0563e=_0x187596[_0x518fc8(0xbb)]-0x1,_0x4e17d4;_0xe0563e>=0x0;_0xe0563e--)(_0x4e17d4=_0x187596[_0xe0563e])&&(_0x2fa654=(_0x10c0bb?_0x4e17d4(_0x435c34,_0x187cef,_0x2fa654):_0x4e17d4(_0x2fa654))||_0x2fa654);return _0x10c0bb&&_0x2fa654&&_0x28c600(_0x435c34,_0x187cef,_0x2fa654),_0x2fa654;},_0x2444ed=(_0x59c500,_0x3f0dd4)=>(_0x1a2b42,_0x50dff1)=>_0x3f0dd4(_0x1a2b42,_0x50dff1,_0x59c500);_0x594fe1['DataLoaderController']=class extends _0x2c7fed[_0x291ba3(0x2d5)]{constructor(_0x4389e3,_0x99b4c,_0x235280,_0x13db5a,_0x470453,_0x1d4ddb){const _0x31f833=_0x291ba3;super(),this['_urlService']=_0x4389e3,this[_0x31f833(0x139)]=_0x99b4c,this['_commandService']=_0x235280,this[_0x31f833(0x106)]=_0x13db5a,this[_0x31f833(0x24d)]=_0x470453,_0x1d4ddb?_0x1d4ddb==null||_0x1d4ddb[_0x31f833(0x3ad)]()['then'](()=>this[_0x31f833(0x366)]()):(this['_logService'][_0x31f833(0x1e9)]('[DataLoaderController]',_0x31f833(0x9f)),this['_init']());}async[_0x291ba3(0x366)](){const _0x2b50d6=_0x291ba3,_0x17b442=this['_urlService'][_0x2b50d6(0x45a)]('unit'),_0x4ecdb6=this[_0x2b50d6(0x483)][_0x2b50d6(0x45a)](_0x2b50d6(0x33c));if(!_0x17b442||!_0x4ecdb6){this[_0x2b50d6(0x139)]['debug'](_0x2b50d6(0x25d),_0x2b50d6(0x3e7));return;}switch(Number(_0x4ecdb6)){case _0x4cd70d[_0x2b50d6(0x2aa)]:{const _0x20ea77=await this[_0x2b50d6(0x20b)](_0x17b442);this[_0x2b50d6(0x3e8)](_0x20ea77);break;}case _0x4cd70d[_0x2b50d6(0x130)]:{await this[_0x2b50d6(0x1f3)](_0x17b442);break;}default:{this['_logService'][_0x2b50d6(0x41d)]('[DataLoaderController]',_0x2b50d6(0x198));break;}}}async[_0x291ba3(0x3e8)](_0x63e48d){const _0x5d2245=_0x291ba3;await this[_0x5d2245(0x12d)](_0x63e48d),_0x63e48d[_0x5d2245(0x415)][_0x5d2245(0x256)](_0x1fc547['takeUntil'](this[_0x5d2245(0xf7)]))[_0x5d2245(0x3f2)](_0xeb0028=>{const _0x3f7fca=_0x5d2245;_0xeb0028&&this[_0x3f7fca(0x208)](_0xeb0028);}),this[_0x5d2245(0x483)][_0x5d2245(0x3b7)][_0x5d2245(0x256)](_0x1fc547['takeUntil'](this[_0x5d2245(0xf7)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x63e48d));}[_0x291ba3(0x208)](_0x20fa2c,_0x30047a=!0x1){const _0x373259=_0x291ba3,_0x2cf208=this['_urlService'][_0x373259(0x45a)](_0x373259(0x2a9));_0x20fa2c[_0x373259(0x3d8)]()!==_0x2cf208&&this[_0x373259(0x483)][_0x373259(0x42e)](_0x373259(0x2a9),_0x20fa2c[_0x373259(0x3d8)](),_0x30047a);}async['_updateSubUnitFromURLParams'](_0x541028){const _0xac578b=_0x291ba3;var _0x2ee61c;const _0x4f2341=this['_urlService'][_0xac578b(0x45a)](_0xac578b(0x2a9));if(!_0x4f2341||!_0x541028[_0xac578b(0x1ae)](_0x4f2341)){const _0x425a0a=_0x541028[_0xac578b(0x451)]()[0x0],_0x19bf52=_0x541028[_0xac578b(0x1ae)](_0x425a0a);if(!_0x19bf52)return;this[_0xac578b(0x208)](_0x19bf52,!0x0),await this['_commandService'][_0xac578b(0x341)](_0x244249[_0xac578b(0x32c)]['id'],{'unitId':_0x541028[_0xac578b(0x11d)](),'subUnitId':_0x425a0a});return;}((_0x2ee61c=_0x541028[_0xac578b(0x409)]())==null?void 0x0:_0x2ee61c[_0xac578b(0x3d8)]())!==_0x4f2341&&await this['_commandService'][_0xac578b(0x341)](_0x244249[_0xac578b(0x32c)]['id'],{'unitId':_0x541028[_0xac578b(0x11d)](),'subUnitId':_0x4f2341});}async[_0x291ba3(0x20b)](_0x1ce6f2){const _0xe83a03=_0x291ba3;let _0x109636=0x0;const _0x597f8a=await this[_0xe83a03(0x106)][_0xe83a03(0x158)](_0x1ce6f2);return _0x597f8a&&(_0x597f8a['awaitingChangeset']||_0x597f8a[_0xe83a03(0x1a9)][_0xe83a03(0xbb)]!==0x0)&&(_0x109636=_0x597f8a[_0xe83a03(0xa8)]),_0x109636===0x0&&this[_0xe83a03(0x139)][_0xe83a03(0x1e9)](_0xe83a03(0x25d),_0xe83a03(0x178)),this['_snapshotService'][_0xe83a03(0x3a3)](_0x1ce6f2,_0x109636);}async[_0x291ba3(0x1f3)](_0x51fbfa){const _0x1d492e=_0x291ba3;let _0x50c161=0x0;const _0xae207b=await this[_0x1d492e(0x106)][_0x1d492e(0x158)](_0x51fbfa);return _0xae207b&&(_0xae207b[_0x1d492e(0x3e0)]||_0xae207b[_0x1d492e(0x1a9)][_0x1d492e(0xbb)]!==0x0)&&(_0x50c161=_0xae207b[_0x1d492e(0xa8)]),_0x50c161===0x0&&this[_0x1d492e(0x139)]['debug'](_0x1d492e(0x25d),_0x1d492e(0x178)),this[_0x1d492e(0x24d)]['loadDoc'](_0x51fbfa,_0x50c161);}},_0x594fe1[_0x291ba3(0x340)]=_0x311fac([_0x2444ed(0x0,_0x47e3f7),_0x2444ed(0x1,_0x2c7fed[_0x291ba3(0x2fd)]),_0x2444ed(0x2,_0x2c7fed['ICommandService']),_0x2444ed(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1[_0x291ba3(0x378)])),_0x2444ed(0x4,_0x2c7fed[_0x291ba3(0x16b)](_0x2856d7[_0x291ba3(0x394)])),_0x2444ed(0x5,_0x2c7fed[_0x291ba3(0x425)](_0x214b0d['IRemoteInstanceService']))],_0x594fe1['DataLoaderController']);var _0x14f78c=Object[_0x291ba3(0x3e4)],_0x2888a7=Object[_0x291ba3(0x373)],_0x3d5547=(_0x14cec8,_0x46de64,_0x1b6bd0,_0x577cd4)=>{const _0x16eb8a=_0x291ba3;for(var _0x2495da=_0x577cd4>0x1?void 0x0:_0x577cd4?_0x2888a7(_0x46de64,_0x1b6bd0):_0x46de64,_0x37d385=_0x14cec8[_0x16eb8a(0xbb)]-0x1,_0x37809c;_0x37d385>=0x0;_0x37d385--)(_0x37809c=_0x14cec8[_0x37d385])&&(_0x2495da=(_0x577cd4?_0x37809c(_0x46de64,_0x1b6bd0,_0x2495da):_0x37809c(_0x2495da))||_0x2495da);return _0x577cd4&&_0x2495da&&_0x14f78c(_0x46de64,_0x1b6bd0,_0x2495da),_0x2495da;},_0x268554=(_0x2577f0,_0xb246b0)=>(_0x184418,_0x11056d)=>_0xb246b0(_0x184418,_0x11056d,_0x2577f0);const _0x1bc910=_0x291ba3(0x32f),_0x45252c=_0x291ba3(0x302);let _0x19c2c9=class extends _0x2c7fed['Disposable']{constructor(_0x4e9971,_0x41b69c){const _0x3c196e=_0x291ba3;super(),this['_univerInstanceService']=_0x4e9971,this['_configService']=_0x41b69c,this[_0x3c196e(0x366)]();}[_0x291ba3(0x366)](){const _0x2ef1e1=_0x291ba3;this[_0x2ef1e1(0x351)](this['_univerInstanceService'][_0x2ef1e1(0x43c)][_0x2ef1e1(0x3f2)](()=>{const _0x3df928=_0x2ef1e1;var _0x214c97;const _0x51997f=this[_0x3df928(0x79)][_0x3df928(0xa6)]();let _0x8b000f=(_0x214c97=this[_0x3df928(0x2e2)][_0x3df928(0x304)](_0x1bc910))!=null?_0x214c97:_0x45252c;_0x51997f instanceof _0x2c7fed['Workbook']&&(_0x8b000f=_0x51997f[_0x3df928(0x2a6)]),document[_0x3df928(0x2f7)]=_0x8b000f;}));}};_0x19c2c9=_0x3d5547([_0x268554(0x0,_0x2c7fed[_0x291ba3(0x27a)]),_0x268554(0x1,_0x2c7fed[_0x291ba3(0x309)])],_0x19c2c9);var _0x503f9d=Object[_0x291ba3(0x3e4)],_0x95abd6=Object[_0x291ba3(0x373)],_0x3519ff=(_0x30865e,_0x2ba075,_0x3e67d7,_0x26b469)=>{for(var _0x2ea2f6=_0x26b469>0x1?void 0x0:_0x26b469?_0x95abd6(_0x2ba075,_0x3e67d7):_0x2ba075,_0x13fc8a=_0x30865e['length']-0x1,_0x43e9eb;_0x13fc8a>=0x0;_0x13fc8a--)(_0x43e9eb=_0x30865e[_0x13fc8a])&&(_0x2ea2f6=(_0x26b469?_0x43e9eb(_0x2ba075,_0x3e67d7,_0x2ea2f6):_0x43e9eb(_0x2ea2f6))||_0x2ea2f6);return _0x26b469&&_0x2ea2f6&&_0x503f9d(_0x2ba075,_0x3e67d7,_0x2ea2f6),_0x2ea2f6;},_0x559668=(_0x4b9fce,_0x2438ec)=>(_0x18dbd4,_0x55fd21)=>_0x2438ec(_0x18dbd4,_0x55fd21,_0x4b9fce);let _0x1d743a=class{constructor(_0x12e0b3,_0x4a9e62,_0x203997){const _0x58eb6e=_0x291ba3;this[_0x58eb6e(0x2e2)]=_0x12e0b3,this[_0x58eb6e(0x2bb)]=_0x4a9e62,this[_0x58eb6e(0x191)]=_0x203997,this[_0x58eb6e(0x1d3)]();}[_0x291ba3(0x1d3)](){const _0x384ef3=_0x291ba3;this[_0x384ef3(0x2bb)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x5a5cdb,_0x253a78)=>_0x253a78(_0x5a5cdb)[_0x384ef3(0x256)](_0x1fc547[_0x384ef3(0x155)](async _0x19bf5a=>{const _0x4ecb4e=_0x384ef3,_0x3ed286=_0x19bf5a;if(_0x3ed286[_0x4ecb4e(0x469)]===0x191&&window[_0x4ecb4e(0x1f2)](this[_0x4ecb4e(0x191)]['t'](_0x4ecb4e(0x2df)))){const _0x986881=window[_0x4ecb4e(0x2f6)](window[_0x4ecb4e(0x28c)][_0x4ecb4e(0x2f0)]);window['location'][_0x4ecb4e(0x2f0)]=this[_0x4ecb4e(0x3d1)]()+_0x4ecb4e(0x254)+_0x986881;}return _0x3ed286;}))});}['_getLoginPath'](){const _0x11a95a=_0x291ba3;var _0x28c116,_0x3b3eb1;const _0x26539f=this[_0x11a95a(0x2e2)]['getConfig'](_0x52fcac),_0x1cd042=this[_0x11a95a(0x2e2)][_0x11a95a(0x304)](_0x229401);return(_0x3b3eb1=(_0x28c116=_0x1cd042==null?void 0x0:_0x1cd042[_0x11a95a(0x468)])!=null?_0x28c116:_0x26539f)!=null?_0x3b3eb1:_0x18b7b1;}};_0x1d743a=_0x3519ff([_0x559668(0x0,_0x2c7fed[_0x291ba3(0x309)]),_0x559668(0x1,_0x2c7fed['Inject'](_0x4893ce[_0x291ba3(0x99)])),_0x559668(0x2,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x1a7)]))],_0x1d743a);var _0x5e8f44=Object[_0x291ba3(0x3e4)],_0x375008=Object['getOwnPropertyDescriptor'],_0x3c247c=(_0x29aef5,_0x4ee5d7,_0x1e6479,_0x1378e2)=>{const _0x168eaf=_0x291ba3;for(var _0x430a40=_0x1378e2>0x1?void 0x0:_0x1378e2?_0x375008(_0x4ee5d7,_0x1e6479):_0x4ee5d7,_0x1f5de0=_0x29aef5[_0x168eaf(0xbb)]-0x1,_0x26bce3;_0x1f5de0>=0x0;_0x1f5de0--)(_0x26bce3=_0x29aef5[_0x1f5de0])&&(_0x430a40=(_0x1378e2?_0x26bce3(_0x4ee5d7,_0x1e6479,_0x430a40):_0x26bce3(_0x430a40))||_0x430a40);return _0x1378e2&&_0x430a40&&_0x5e8f44(_0x4ee5d7,_0x1e6479,_0x430a40),_0x430a40;},_0x5e3316=(_0x370081,_0x297ae)=>(_0x16b61,_0x4820d8)=>_0x297ae(_0x16b61,_0x4820d8,_0x370081);const _0x54f2cb=_0x291ba3(0x395),_0x40d131=_0x291ba3(0x28b);_0x594fe1[_0x291ba3(0x3c6)]=class extends _0x2c7fed[_0x291ba3(0x2e7)]{constructor(_0x242f36,_0x531705){const _0x349687=_0x291ba3;super(),this[_0x349687(0x472)]=_0x242f36,this[_0x349687(0x2e2)]=_0x531705,this[_0x349687(0x69)]();}[_0x291ba3(0x69)](){const _0x58771a=_0x291ba3,_0x1b3d7c=this;this[_0x58771a(0x351)](this[_0x58771a(0x472)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x4893ce[_0x58771a(0x478)]({'isMatch'(_0x5541e7){const _0x23b729=_0x58771a;var _0x5af42b;if(_0x5541e7[_0x23b729(0x3c7)]===_0x23b729(0x388)&&((_0x5af42b=_0x5541e7[_0x23b729(0x38b)])!=null&&_0x5af42b['body'])){const {objectID:_0x435334,objectType:_0x53fe90}=_0x5541e7['requestParams'][_0x23b729(0x470)]||{};if(!_0x435334||_0x53fe90===void 0x0)return!0x1;const _0x1aae1c=_0x1b3d7c[_0x23b729(0x484)]()+'/'+_0x53fe90+_0x23b729(0x209)+_0x435334+_0x23b729(0x47e);if(_0x5541e7['url']===_0x1aae1c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x23bae2){const _0xae4956=_0x58771a;var _0x27b231;return(_0x27b231=_0x23bae2[_0xae4956(0x38b)])==null?void 0x0:_0x27b231[_0xae4956(0x470)];},'mergeParamsToRequest'(_0x53b691,_0x409a5b){const _0xb8d872=_0x58771a,_0x2091b8=_0x1b3d7c['_getAPIPrefixPath']()+_0xb8d872(0x197),_0xfdd35e=_0x53b691[_0xb8d872(0x2d8)]((_0x38dc0d,_0x4f18f3)=>{const {unitID:_0x1952e2,objectID:_0x5c3db7,objectType:_0x40670e,actions:_0x4a37ac}=_0x4f18f3;return _0x38dc0d[_0x1952e2]||(_0x38dc0d[_0x1952e2]={}),_0x38dc0d[_0x1952e2][_0x5c3db7]||(_0x38dc0d[_0x1952e2][_0x5c3db7]={'objectID':_0x5c3db7,'objectType':_0x40670e,'actions':[]}),_0x38dc0d[_0x1952e2][_0x5c3db7]['actions']['push'](..._0x4a37ac),_0x38dc0d;},{}),_0x45c07d=[];for(const _0x258267 in _0xfdd35e)for(const _0xbdcc69 in _0xfdd35e[_0x258267]){const {actions:_0x18d8b3,objectType:_0x629a7e}=_0xfdd35e[_0x258267][_0xbdcc69],_0x1a5179=[...new Set(_0x18d8b3)];_0x45c07d['push']({'unitID':_0x258267,'objectID':_0xbdcc69,'objectType':_0x629a7e,'actions':_0x1a5179});}return new _0x4893ce['HTTPRequest']('POST',_0x2091b8,{'headers':_0x409a5b['headers'],'withCredentials':_0x409a5b[_0xb8d872(0x1b9)],'responseType':_0x409a5b['responseType'],'body':{'requests':_0x45c07d}});}},{'distributeResult'(_0x2098d9,_0x4b6eb3){const _0x4b9e2c=_0x58771a,{objectActions:_0x26d303}=_0x2098d9;return _0x4b6eb3[_0x4b9e2c(0x21b)](_0x103c6c=>{const _0x2c7f68=_0x4b9e2c,{unitID:_0x188373,objectID:_0x3fb41d,actions:_0x500617}=_0x103c6c,_0x7e8462=_0x26d303['find'](_0xcfc40=>_0xcfc40[_0x2c7f68(0x2ea)]===_0x188373&&_0xcfc40[_0x2c7f68(0x1fc)]===_0x3fb41d),_0x1f13b1=_0x500617[_0x2c7f68(0x21b)](_0x315926=>_0x7e8462==null?void 0x0:_0x7e8462[_0x2c7f68(0x200)][_0x2c7f68(0x125)](_0x129775=>_0x129775['action']===_0x315926))[_0x2c7f68(0x1d1)](_0x5ef4c9=>!!_0x5ef4c9);return{'config':_0x103c6c,'result':{'actions':_0x1f13b1,'error':_0x2098d9[_0x2c7f68(0x41d)]}};});}})}));}[_0x291ba3(0x484)](){const _0x37f2b5=_0x291ba3;var _0x1a20bd,_0x4b0f13;const _0x21fb55=this[_0x37f2b5(0x2e2)][_0x37f2b5(0x304)](_0x54f2cb),_0x29863c=this[_0x37f2b5(0x2e2)][_0x37f2b5(0x304)](_0x229401);return(_0x4b0f13=(_0x1a20bd=_0x29863c==null?void 0x0:_0x29863c[_0x37f2b5(0x1dc)])!=null?_0x1a20bd:_0x21fb55)!=null?_0x4b0f13:_0x40d131;}async[_0x291ba3(0x17d)](_0x11a915){const _0x5a01ba=_0x291ba3,_0x2bebec=this[_0x5a01ba(0x484)]()+'/'+_0x11a915['objectType']+'/object';return(await this['_HTTPService'][_0x5a01ba(0x4a6)](_0x2bebec,{'body':_0x11a915}))[_0x5a01ba(0x470)][_0x5a01ba(0x1fc)]||'';}async[_0x291ba3(0x3bd)](_0x148861){const _0x3aab37=_0x291ba3,_0x5bd14e=this[_0x3aab37(0x484)]()+_0x3aab37(0x3d6);return(await this[_0x3aab37(0x472)]['post'](_0x5bd14e,{'body':_0x148861}))[_0x3aab37(0x470)][_0x3aab37(0x31e)];}async[_0x291ba3(0x43b)](_0x585ab3){const _0x611949=_0x291ba3,_0xeaa9ee=this[_0x611949(0x484)]()+'/'+_0x585ab3[_0x611949(0xb1)]+_0x611949(0x209)+_0x585ab3['objectID'];await this[_0x611949(0x472)][_0x611949(0x1eb)](_0xeaa9ee,{'body':_0x585ab3});}async[_0x291ba3(0x108)](_0x3267ff){const _0x2605de=_0x291ba3,_0x259456=this['_getAPIPrefixPath']()+'/'+_0x3267ff['objectType']+_0x2605de(0x209)+_0x3267ff[_0x2605de(0x1fc)]+_0x2605de(0x47e);return(await this['_HTTPService']['post'](_0x259456,{'body':_0x3267ff}))[_0x2605de(0x470)]['actions'];}async[_0x291ba3(0x152)](_0x56fa4c){const _0x3dc0e0=_0x291ba3,_0x39304c=this[_0x3dc0e0(0x484)]()+_0x3dc0e0(0x197);return(await this[_0x3dc0e0(0x472)]['post'](_0x39304c,{'body':{'requests':_0x56fa4c}}))['body'][_0x3dc0e0(0x293)];}async[_0x291ba3(0x459)](_0x3a0b6c){const _0x47c402=_0x291ba3,_0x3eb163=this[_0x47c402(0x484)]()+'/'+_0x3a0b6c[_0x47c402(0xb1)]+'/role',_0x4942fd=await this[_0x47c402(0x472)][_0x47c402(0x4a6)](_0x3eb163,{'body':_0x3a0b6c});return{'roles':_0x4942fd[_0x47c402(0x470)][_0x47c402(0xde)],'actions':_0x4942fd['body'][_0x47c402(0x200)]};}async[_0x291ba3(0xaa)](_0x2cc480){const _0x31b660=_0x291ba3,_0x211cb8=this[_0x31b660(0x484)]()+_0x31b660(0xfc);await this[_0x31b660(0x472)][_0x31b660(0x39c)](_0x211cb8,{'params':{'collaboratorID':_0x2cc480[_0x31b660(0x386)],'objectID':_0x2cc480[_0x31b660(0x1fc)],'unitID':_0x2cc480[_0x31b660(0x2ea)]}});}async[_0x291ba3(0x2b9)](_0x1e73a5){const _0x5ee192=_0x291ba3,_0x3ca6ce=this[_0x5ee192(0x484)]()+'/collaborator';await this[_0x5ee192(0x472)]['patch'](_0x3ca6ce,{'body':_0x1e73a5});}async[_0x291ba3(0x86)](_0x226d46){const _0x5ddef7=_0x291ba3,_0x170b4d=this[_0x5ddef7(0x484)]()+_0x5ddef7(0xfc);await this[_0x5ddef7(0x472)][_0x5ddef7(0x4a6)](_0x170b4d,{'body':_0x226d46});}async[_0x291ba3(0xfa)](_0x2e6cf7){const _0x4855b9=_0x291ba3,_0x1a38a7=this[_0x4855b9(0x484)]()+_0x4855b9(0xfc);return(await this[_0x4855b9(0x472)][_0x4855b9(0x400)](_0x1a38a7,{'params':{'objectID':_0x2e6cf7[_0x4855b9(0x1fc)],'unitID':_0x2e6cf7[_0x4855b9(0x2ea)]}}))['body']['collaborators'];}async[_0x291ba3(0x1bb)](_0x5c32fb){const _0x1fbe54=_0x291ba3,_0x178a5b=this[_0x1fbe54(0x484)]()+_0x1fbe54(0xfc);await this[_0x1fbe54(0x472)][_0x1fbe54(0x1eb)](_0x178a5b,{'body':_0x5c32fb});}},_0x594fe1['AuthzIoHttpService']=_0x3c247c([_0x5e3316(0x0,_0x2c7fed[_0x291ba3(0x16b)](_0x4893ce[_0x291ba3(0x99)])),_0x5e3316(0x1,_0x2c7fed['Inject'](_0x2c7fed['IConfigService']))],_0x594fe1['AuthzIoHttpService']);var _0x3e03f2=Object[_0x291ba3(0x3e4)],_0x5b8a91=Object['getOwnPropertyDescriptor'],_0x21906d=(_0xb6a741,_0x29d5b2,_0x213252,_0x4e74da)=>{const _0x41a687=_0x291ba3;for(var _0x66882e=_0x4e74da>0x1?void 0x0:_0x4e74da?_0x5b8a91(_0x29d5b2,_0x213252):_0x29d5b2,_0x4ecf4e=_0xb6a741[_0x41a687(0xbb)]-0x1,_0x531003;_0x4ecf4e>=0x0;_0x4ecf4e--)(_0x531003=_0xb6a741[_0x4ecf4e])&&(_0x66882e=(_0x4e74da?_0x531003(_0x29d5b2,_0x213252,_0x66882e):_0x531003(_0x66882e))||_0x66882e);return _0x4e74da&&_0x66882e&&_0x3e03f2(_0x29d5b2,_0x213252,_0x66882e),_0x66882e;},_0x3b716c=(_0x4c7650,_0x447a23)=>(_0x2349fb,_0x100aea)=>_0x447a23(_0x2349fb,_0x100aea,_0x4c7650);let _0x58fe3e=class{constructor(_0x2d6d01){const _0x3d2fbb=_0x291ba3;this[_0x3d2fbb(0x2bb)]=_0x2d6d01,this[_0x3d2fbb(0x222)]();}[_0x291ba3(0x222)](){const _0x4ff525=_0x291ba3;this[_0x4ff525(0x2bb)][_0x4ff525(0x3f3)]({'interceptor':(_0x36b4df,_0x3e7f94)=>{const _0x1c8299=_0x4ff525,_0x188cf1=_0x36b4df[_0x1c8299(0x488)],_0x43aa9d=_0x3cd408[_0x1c8299(0x284)]();return _0x43aa9d&&_0x188cf1['set']('x-univer-host',_0x43aa9d),_0x3e7f94(_0x36b4df);}});}};_0x58fe3e=_0x21906d([_0x3b716c(0x0,_0x2c7fed['Inject'](_0x4893ce['HTTPService']))],_0x58fe3e);var _0x21de1c=Object[_0x291ba3(0x3e4)],_0x5ce4f6=Object[_0x291ba3(0x373)],_0x291374=(_0x210712,_0x36e102,_0x5c20a7,_0x3b3cda)=>{const _0x1858d5=_0x291ba3;for(var _0x2eb671=_0x3b3cda>0x1?void 0x0:_0x3b3cda?_0x5ce4f6(_0x36e102,_0x5c20a7):_0x36e102,_0x243997=_0x210712[_0x1858d5(0xbb)]-0x1,_0x46fb25;_0x243997>=0x0;_0x243997--)(_0x46fb25=_0x210712[_0x243997])&&(_0x2eb671=(_0x3b3cda?_0x46fb25(_0x36e102,_0x5c20a7,_0x2eb671):_0x46fb25(_0x2eb671))||_0x2eb671);return _0x3b3cda&&_0x2eb671&&_0x21de1c(_0x36e102,_0x5c20a7,_0x2eb671),_0x2eb671;},_0x52249d=(_0x143edb,_0x5e465d)=>(_0x536132,_0x6467a7)=>_0x5e465d(_0x536132,_0x6467a7,_0x143edb);const _0x1b239b=[_0x291ba3(0xab),_0x291ba3(0x201),_0x291ba3(0x129),_0x291ba3(0x36e),'image/bmp'],_0x1b0f14=0x5*0x400*0x400,_0x201da9=_0x291ba3(0x3f8),_0x46508c=_0x291ba3(0x6c),_0x1a95b2=_0x291ba3(0x21c),_0x2b939c=_0x291ba3(0x21a);_0x594fe1[_0x291ba3(0x345)]=class{constructor(_0x278291,_0x4ebae0,_0x24ad16){const _0x192cc4=_0x291ba3;_0x24cbc7(this,_0x192cc4(0xef),0x0),_0x24cbc7(this,_0x192cc4(0x81),new _0x1fc547[(_0x192cc4(0x165))]()),_0x24cbc7(this,_0x192cc4(0x225),this['_change$']),_0x24cbc7(this,_0x192cc4(0x22a),new Map()),(this[_0x192cc4(0x2bb)]=_0x278291,this[_0x192cc4(0x2e2)]=_0x4ebae0,this['_univerInstanceService']=_0x24ad16);}[_0x291ba3(0x257)](_0x3dbcef){const _0xe4fdde=_0x291ba3;this[_0xe4fdde(0xef)]=_0x3dbcef,this[_0xe4fdde(0x81)][_0xe4fdde(0x2ce)](_0x3dbcef);}[_0x291ba3(0x450)](_0x1e3fdb,_0x2e50c9){const _0x4d8bc2=_0x291ba3;if(_0x2e50c9===_0x48fa70['ImageSourceType'][_0x4d8bc2(0x21f)]){const _0x1c2eb6=new Image();return _0x1c2eb6['src']=_0x1e3fdb,_0x1c2eb6;}return this[_0x4d8bc2(0x22a)]['get'](_0x1e3fdb);}[_0x291ba3(0x1b4)](_0x49be77,_0x168470,_0x3b3c35){const _0x32b1e4=_0x291ba3;_0x168470===_0x48fa70[_0x32b1e4(0x422)][_0x32b1e4(0x21f)]||_0x3b3c35==null||this[_0x32b1e4(0x22a)][_0x32b1e4(0x250)](_0x49be77,_0x3b3c35);}async[_0x291ba3(0x44d)](_0x12664e){const _0x1e9e08=_0x291ba3;try{const _0x11dc35=this[_0x1e9e08(0x410)](this['_getSignURL'](),''+_0x12664e),_0x122d0d=(await this[_0x1e9e08(0x2bb)][_0x1e9e08(0x400)](_0x11dc35))[_0x1e9e08(0x470)];if(_0x122d0d[_0x1e9e08(0x41d)]&&_0x122d0d[_0x1e9e08(0x41d)][_0x1e9e08(0x3b4)]===_0x2bbf52['OK']){const _0x4dcd6c=new URL(_0x122d0d['url'],this[_0x1e9e08(0x103)]())['toString']();return Promise['resolve'](_0x4dcd6c);}return Promise[_0x1e9e08(0xf9)](_0x122d0d[_0x1e9e08(0x41d)]);}catch(_0x2f7814){return Promise[_0x1e9e08(0xf9)](_0x2f7814);}}async[_0x291ba3(0x115)](_0x3f2656){const _0xa66327=_0x291ba3;let _0x3de089='';if(!_0x1b239b[_0xa66327(0x7a)](_0x3f2656['type']))return this[_0xa66327(0x44c)](),Promise[_0xa66327(0xf9)](new Error(_0x48fa70[_0xa66327(0x3a8)]['ERROR_IMAGE_TYPE']));if(_0x3f2656['size']>_0x1b0f14)return this[_0xa66327(0x44c)](),Promise[_0xa66327(0xf9)](new Error(_0x48fa70[_0xa66327(0x3a8)][_0xa66327(0x452)]));try{const _0x1be302=new FormData();_0x1be302['append'](_0xa66327(0x411),_0x3f2656);const _0x4af192=this[_0xa66327(0x79)]['getFocusedUnit'](),_0x4ecf50=_0x4af192==null?void 0x0:_0x4af192['getUnitId']();if(!_0x4ecf50)throw new Error(_0xa66327(0x193));const _0x386c30=this[_0xa66327(0x1fb)]()+'?size='+_0x3f2656[_0xa66327(0x3f6)][_0xa66327(0x161)]()+_0xa66327(0x23b)+_0x1c10fa[_0xa66327(0x475)]+_0xa66327(0x48b)+encodeURIComponent(_0x4ecf50),_0x2de774=await(await fetch(_0x386c30,{'method':_0xa66327(0x388),'body':_0x1be302}))['json']();if(typeof _0x2de774[_0xa66327(0x7d)]!=_0xa66327(0x3f7))return this[_0xa66327(0x44c)](),Promise[_0xa66327(0xf9)](new Error(_0x48fa70['ImageUploadStatusType']['ERROR_IMAGE']));_0x3de089=_0x2de774['FileId'];}catch{return this[_0xa66327(0x44c)](),Promise[_0xa66327(0xf9)](new Error(_0x48fa70['ImageUploadStatusType'][_0xa66327(0x166)]));}return new Promise((_0x59a907,_0x13a22f)=>{const _0x397902=_0xa66327,_0x42db11=new FileReader();_0x42db11[_0x397902(0x352)](_0x3f2656),_0x42db11[_0x397902(0xfd)]=_0x842c4a=>{const _0x117188=_0x397902;var _0x4ba400;const _0x753605=(_0x4ba400=_0x842c4a[_0x117188(0x1b1)])==null?void 0x0:_0x4ba400[_0x117188(0x218)];if(_0x753605==null){this['_decreaseWaiting'](),_0x13a22f(new Error(_0x48fa70[_0x117188(0x3a8)][_0x117188(0x166)]));return;}const _0x1c0436=_0x2c7fed[_0x117188(0xa9)]['generateRandomId'](0x6);_0x59a907({'imageId':_0x1c0436,'imageSourceType':_0x48fa70['ImageSourceType'][_0x117188(0x430)],'source':_0x3de089,'base64Cache':_0x753605,'status':_0x48fa70[_0x117188(0x3a8)]['SUCCUSS']}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x3b2ac0=_0x291ba3;var _0x150f2a,_0x316ca2;const _0x53d7c9=this[_0x3b2ac0(0x2e2)][_0x3b2ac0(0x304)](_0x201da9),_0x5ef0b7=this[_0x3b2ac0(0x2e2)][_0x3b2ac0(0x304)](_0x229401);return(_0x316ca2=(_0x150f2a=_0x5ef0b7==null?void 0x0:_0x5ef0b7[_0x3b2ac0(0x49b)])!=null?_0x150f2a:_0x53d7c9)!=null?_0x316ca2:_0x46508c;}[_0x291ba3(0x381)](){const _0x5586f1=_0x291ba3;var _0x2e3b06,_0x47d6fb;const _0x2e0a4b=this['_configService'][_0x5586f1(0x304)](_0x1a95b2),_0x4fe1ea=this[_0x5586f1(0x2e2)]['getConfig'](_0x229401);return(_0x47d6fb=(_0x2e3b06=_0x4fe1ea==null?void 0x0:_0x4fe1ea['signUrlServerUrl'])!=null?_0x2e3b06:_0x2e0a4b)!=null?_0x47d6fb:_0x2b939c;}['_getDownloadEndpointURL'](){const _0x560ae2=_0x291ba3;var _0x7e9649;const _0x5deb2d=this[_0x560ae2(0x2e2)][_0x560ae2(0x304)](_0x229401);return(_0x7e9649=_0x5deb2d==null?void 0x0:_0x5deb2d[_0x560ae2(0x78)])!=null?_0x7e9649:location[_0x560ae2(0x9a)];}[_0x291ba3(0x410)](_0x449049,_0x10e107){const _0x5d25c2=_0x291ba3;return _0x449049['replace'](_0x5d25c2(0x1d4),_0x10e107);}[_0x291ba3(0x44c)](){const _0x106473=_0x291ba3;this[_0x106473(0xef)]-=0x1,this[_0x106473(0x81)][_0x106473(0x2ce)](this[_0x106473(0xef)]);}},_0x594fe1[_0x291ba3(0x345)]=_0x291374([_0x52249d(0x0,_0x2c7fed[_0x291ba3(0x16b)](_0x4893ce[_0x291ba3(0x99)])),_0x52249d(0x1,_0x2c7fed[_0x291ba3(0x309)]),_0x52249d(0x2,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x27a)]))],_0x594fe1[_0x291ba3(0x345)]);var _0x20e8a4=Object['defineProperty'],_0x13026d=Object[_0x291ba3(0x373)],_0x8c420d=(_0x35981f,_0x238df8,_0x1f76f7,_0x1a3970)=>{const _0xcea19=_0x291ba3;for(var _0x295af0=_0x1a3970>0x1?void 0x0:_0x1a3970?_0x13026d(_0x238df8,_0x1f76f7):_0x238df8,_0x55726f=_0x35981f[_0xcea19(0xbb)]-0x1,_0x120f85;_0x55726f>=0x0;_0x55726f--)(_0x120f85=_0x35981f[_0x55726f])&&(_0x295af0=(_0x1a3970?_0x120f85(_0x238df8,_0x1f76f7,_0x295af0):_0x120f85(_0x295af0))||_0x295af0);return _0x1a3970&&_0x295af0&&_0x20e8a4(_0x238df8,_0x1f76f7,_0x295af0),_0x295af0;},_0x158fe5=(_0x236c51,_0x19a3b6)=>(_0x1c138f,_0x234c70)=>_0x19a3b6(_0x1c138f,_0x234c70,_0x236c51);let _0x21a916=class extends _0x2c7fed['RxDisposable']{constructor(_0xcd5117,_0x3f8ad0,_0x5b8ff4,_0x14ce77,_0x824d25){const _0x495c82=_0x291ba3;super(),this[_0x495c82(0x10d)]=_0xcd5117,this[_0x495c82(0x79)]=_0x3f8ad0,this[_0x495c82(0x2d4)]=_0x5b8ff4,this[_0x495c82(0x47f)]=_0x14ce77,this[_0x495c82(0x277)]=_0x824d25,this[_0x495c82(0x264)](),this[_0x495c82(0x245)]();}[_0x291ba3(0x245)](){const _0x49a534=_0x291ba3,_0x17acf9=async _0x469ff9=>{const _0x594b25=_0x2d25;(await this[_0x594b25(0x47f)][_0x594b25(0x22d)](_0x469ff9))[_0x594b25(0x272)][_0x594b25(0x256)](_0x2eca2e[_0x594b25(0x1d1)](_0x1ec6c0=>_0x1ec6c0['eventID']===_0x2856d7[_0x594b25(0x93)]['SHOULD_CLOSE_CONN']),_0x2eca2e[_0x594b25(0x211)](this[_0x594b25(0xf7)]))[_0x594b25(0x3f2)](_0x317179=>{const _0x45d11c=_0x594b25,_0x309913=_0x317179,{reason:_0x336000}=_0x309913[_0x45d11c(0x253)];this[_0x45d11c(0x10d)][_0x45d11c(0x400)](_0x4b403d[_0x45d11c(0x2f2)])[_0x45d11c(0x116)]({'type':_0x4d689c[_0x45d11c(0x3be)]['Error'],'content':this[_0x45d11c(0x277)]['t'](_0x45d11c(0x436))+'('+_0x336000+')'}),this[_0x45d11c(0x2d4)]['updatePermissionPoint'](new _0x244249[(_0x45d11c(0x2e9))](_0x469ff9)['id'],!0x1),this[_0x45d11c(0x47f)][_0x45d11c(0x105)](_0x469ff9);});};_0x1fc547[_0x49a534(0x94)](this['_univerInstanceService'][_0x49a534(0x112)](_0x2c7fed[_0x49a534(0xcb)][_0x49a534(0x2aa)]),this[_0x49a534(0x79)][_0x49a534(0x112)](_0x2c7fed['UniverInstanceType'][_0x49a534(0x130)]))[_0x49a534(0x256)](_0x2eca2e[_0x49a534(0x21b)](_0x1bdb86=>_0x1bdb86[_0x49a534(0x11d)]()),_0x2eca2e[_0x49a534(0x1d1)](_0x5e7738=>!_0x2c7fed[_0x49a534(0x407)](_0x5e7738)),_0x2eca2e['takeUntil'](this['dispose$']))['subscribe'](_0x2c3df0=>{_0x17acf9(_0x2c3df0);});}[_0x291ba3(0x264)](){const _0x5466f7=_0x291ba3,_0x50483c=async _0x3608b4=>{const _0x3728a1=_0x2d25;(await this[_0x3728a1(0x47f)]['requireSession'](_0x3608b4))[_0x3728a1(0x272)][_0x3728a1(0x256)](_0x2eca2e[_0x3728a1(0x1d1)](_0x4d2acf=>_0x4d2acf[_0x3728a1(0x243)]===_0x2856d7['CollaborationEvent'][_0x3728a1(0xbf)]),_0x2eca2e[_0x3728a1(0x211)](this['dispose$']))[_0x3728a1(0x3f2)](_0x3abb10=>{const _0x5298fb=_0x3728a1,_0x5cc8e6=_0x3abb10,{objectId:_0x1481ef}=_0x5cc8e6[_0x5298fb(0x253)],_0x583f14=this['_injector'][_0x5298fb(0x400)](_0x3f13ec['SheetPermissionInitController']);_0x1481ef===_0x3608b4?_0x583f14[_0x5298fb(0x14c)](_0x3608b4):_0x583f14['refreshPermission'](_0x3608b4,_0x1481ef);});};_0x1fc547[_0x5466f7(0x94)](this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2c7fed['UniverInstanceType'][_0x5466f7(0x2aa)]),this[_0x5466f7(0x79)][_0x5466f7(0x112)](_0x2c7fed[_0x5466f7(0xcb)][_0x5466f7(0x130)]))['pipe'](_0x2eca2e[_0x5466f7(0x21b)](_0x44b026=>_0x44b026[_0x5466f7(0x11d)]()),_0x2eca2e['filter'](_0x445e84=>!_0x2c7fed[_0x5466f7(0x407)](_0x445e84)),_0x2eca2e[_0x5466f7(0x211)](this[_0x5466f7(0xf7)]))[_0x5466f7(0x3f2)](_0x3111a6=>{_0x50483c(_0x3111a6);});}};_0x21a916=_0x8c420d([_0x158fe5(0x0,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x4a2)])),_0x158fe5(0x1,_0x2c7fed[_0x291ba3(0x27a)]),_0x158fe5(0x2,_0x2c7fed[_0x291ba3(0x44b)]),_0x158fe5(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x594fe1[_0x291ba3(0xeb)])),_0x158fe5(0x4,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed[_0x291ba3(0x1a7)]))],_0x21a916);var _0x48d406=Object[_0x291ba3(0x3e4)],_0x46a0f=Object[_0x291ba3(0x373)],_0x52b411=(_0x3da9e2,_0x713417,_0x5096e1,_0x29b176)=>{const _0x86e61c=_0x291ba3;for(var _0x2a98af=_0x29b176>0x1?void 0x0:_0x29b176?_0x46a0f(_0x713417,_0x5096e1):_0x713417,_0x4d9d5a=_0x3da9e2[_0x86e61c(0xbb)]-0x1,_0x1576fc;_0x4d9d5a>=0x0;_0x4d9d5a--)(_0x1576fc=_0x3da9e2[_0x4d9d5a])&&(_0x2a98af=(_0x29b176?_0x1576fc(_0x713417,_0x5096e1,_0x2a98af):_0x1576fc(_0x2a98af))||_0x2a98af);return _0x29b176&&_0x2a98af&&_0x48d406(_0x713417,_0x5096e1,_0x2a98af),_0x2a98af;},_0x476027=(_0x19abc5,_0x26d0e3)=>(_0x2ea956,_0x5c56e6)=>_0x26d0e3(_0x2ea956,_0x5c56e6,_0x19abc5);_0x594fe1[_0x291ba3(0x226)]=class{constructor(_0x34d0bc,_0x450861){const _0x50cd0b=_0x291ba3;this[_0x50cd0b(0x2e2)]=_0x34d0bc,this[_0x50cd0b(0x2bb)]=_0x450861;}async[_0x291ba3(0x1e4)](_0x59b267,_0x53c7f9){const _0x2b3e63=_0x291ba3;var _0x181510;const {unitID:_0x3e431f,type:_0x3017f5,revision:_0x4ecc18=0x0}=_0x53c7f9,_0xa6173f=this[_0x2b3e63(0x3fa)]()+'/'+_0x3017f5+'/unit/'+_0x3e431f+_0x2b3e63(0x2d2)+_0x4ecc18,_0x1a9142=(await this[_0x2b3e63(0x2bb)][_0x2b3e63(0x400)](_0xa6173f))[_0x2b3e63(0x470)],_0x421fc2=(_0x181510=_0x1a9142['snapshot'])==null?void 0x0:_0x181510[_0x2b3e63(0x1f0)];if(_0x421fc2){const _0x3f98ef=_0x421fc2==null?void 0x0:_0x421fc2[_0x2b3e63(0xb6)],_0x2fb4d5=_0x2856d7[_0x2b3e63(0x1c8)][_0x2b3e63(0x3de)](_0x2856d7[_0x2b3e63(0x23e)](_0x3f98ef));_0x421fc2[_0x2b3e63(0xb6)]=_0x2fb4d5,Object[_0x2b3e63(0x36f)](_0x421fc2[_0x2b3e63(0x43e)])[_0x2b3e63(0xb2)](([,_0x109d06])=>{const _0x415c82=_0x2b3e63,_0x24df03=_0x109d06[_0x415c82(0xb6)],_0x4f4cd7=_0x2856d7[_0x415c82(0x1c8)][_0x415c82(0x3de)](_0x2856d7[_0x415c82(0x23e)](_0x24df03));_0x109d06[_0x415c82(0xb6)]=_0x4f4cd7;});}return _0x1a9142;}async[_0x291ba3(0x36c)](_0x47d20b,_0x1c34c6){const _0x14cc3e=_0x291ba3,{unitID:_0x5c219f,type:_0x5ad923,blockID:_0x285e2f}=_0x1c34c6,_0x13b859=this[_0x14cc3e(0x443)]()+'/'+_0x5ad923+_0x14cc3e(0xc5)+_0x5c219f+_0x14cc3e(0x15f)+_0x285e2f;return(await this['_httpService']['get'](_0x13b859))[_0x14cc3e(0x470)];}async['getDeserializedSheetBlock'](_0x2882c1,_0x33dbd1){const _0x254fd7=_0x291ba3,{unitID:_0x525c36,type:_0x1986a7,blockID:_0x4ab1d2}=_0x33dbd1,_0x590194=this[_0x254fd7(0x443)]()+_0x254fd7(0x15f)+_0x1986a7+_0x254fd7(0xc5)+_0x525c36+_0x254fd7(0x15f)+_0x4ab1d2;return(await this['_httpService'][_0x254fd7(0x400)](_0x590194))[_0x254fd7(0x470)];}async['fetchMissingChangesets'](_0x36d326,_0x443e4e){const _0x2c4965=_0x291ba3,{unitID:_0x23d8c7,type:_0xfd0bdb,from:_0xd694ee,to:_0x5b2221}=_0x443e4e,_0x2f8bd5=this[_0x2c4965(0x443)]()+'/'+_0xfd0bdb+'/unit/'+_0x23d8c7+_0x2c4965(0x16c)+_0xd694ee+_0x2c4965(0x12c)+_0x5b2221;return(await this[_0x2c4965(0x2bb)][_0x2c4965(0x400)](_0x2f8bd5))[_0x2c4965(0x470)];}[_0x291ba3(0x3fa)](){const _0x1b8c65=_0x291ba3;var _0x4e9a6c;return(_0x4e9a6c=this[_0x1b8c65(0x2e2)]['getConfig'](_0x5615fb))!=null?_0x4e9a6c:this['_getAPIPrefix']();}[_0x291ba3(0x443)](){const _0x1f7d34=_0x291ba3;var _0x3067da,_0x356452;const _0x552fbe=this['_configService']['getConfig'](_0x2e8c6c),_0x938458=this[_0x1f7d34(0x2e2)]['getConfig'](_0x229401);return(_0x356452=(_0x3067da=_0x938458==null?void 0x0:_0x938458[_0x1f7d34(0x4a8)])!=null?_0x3067da:_0x552fbe)!=null?_0x356452:_0x5dad33;}async[_0x291ba3(0x240)](_0xa4eced,_0x1ab9e6){const _0xe6464b=_0x291ba3,_0x5123a9=_0xe6464b(0x1fd)+_0x1ab9e6[_0xe6464b(0x33c)]+'/unit/'+_0x1ab9e6[_0xe6464b(0x2ea)]+_0xe6464b(0x2f5);return(await this[_0xe6464b(0x2bb)]['get'](_0x5123a9,{'params':{'resourceId':JSON['stringify'](_0x1ab9e6[_0xe6464b(0x35b)])}}))['body'];}[_0x291ba3(0x3e9)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x291ba3(0x45c)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x291ba3(0x2bc)](){const _0x1b141f=_0x291ba3;throw new Error(_0x1b141f(0x3aa));}['copyFileMeta'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x291ba3(0x280)](){const _0x1e584f=_0x291ba3;throw new Error(_0x1e584f(0x3aa));}},_0x594fe1[_0x291ba3(0x226)]=_0x52b411([_0x476027(0x0,_0x2c7fed[_0x291ba3(0x309)]),_0x476027(0x1,_0x2c7fed[_0x291ba3(0x16b)](_0x4893ce[_0x291ba3(0x99)]))],_0x594fe1['SnapshotServerOverHTTPService']);var _0x4c71f5=Object[_0x291ba3(0x3e4)],_0x336fbd=Object[_0x291ba3(0x373)],_0x1d418b=(_0x5e214b,_0x1daccf,_0x254a4e,_0x232231)=>{const _0x171aad=_0x291ba3;for(var _0x509f95=_0x232231>0x1?void 0x0:_0x232231?_0x336fbd(_0x1daccf,_0x254a4e):_0x1daccf,_0x3fb44d=_0x5e214b[_0x171aad(0xbb)]-0x1,_0x4adb6b;_0x3fb44d>=0x0;_0x3fb44d--)(_0x4adb6b=_0x5e214b[_0x3fb44d])&&(_0x509f95=(_0x232231?_0x4adb6b(_0x1daccf,_0x254a4e,_0x509f95):_0x4adb6b(_0x509f95))||_0x509f95);return _0x232231&&_0x509f95&&_0x4c71f5(_0x1daccf,_0x254a4e,_0x509f95),_0x509f95;},_0x228c44=(_0x102fe4,_0xd32d7)=>(_0x1a7ca1,_0x58aeb0)=>_0xd32d7(_0x1a7ca1,_0x58aeb0,_0x102fe4);let _0x2e9e74=class extends _0x2c7fed[_0x291ba3(0xf2)]{constructor(_0x702e82,_0x26df0a,_0x9a6ea6,_0x2a9de1,_0x4218e7){const _0x229eca=_0x291ba3;super(_0x702e82,_0x26df0a,_0x9a6ea6),this[_0x229eca(0xbd)]=_0x2a9de1,this[_0x229eca(0x139)]=_0x4218e7;}['transformUndoRedo'](_0x2603e7,_0x2fe06f){const _0x2e692d=_0x291ba3,_0x1e52c6=this[_0x2e692d(0x401)](_0x2603e7);if(_0x1e52c6)try{const _0x2e7b07=this[_0x2e692d(0x370)](_0x1e52c6,_0x2fe06f);this[_0x2e692d(0xf5)](_0x2603e7,_0x2e7b07);}catch(_0x21c017){this[_0x2e692d(0x139)][_0x2e692d(0x41d)](_0x2e692d(0x14b),_0x21c017),this['_clearUndo'](_0x2603e7);}const _0x9cb764=this['_getRedoStack'](_0x2603e7);if(_0x9cb764)try{const _0x3b15f4=this[_0x2e692d(0x370)](_0x9cb764,_0x2fe06f);this['_substituteRedoStack'](_0x2603e7,_0x3b15f4);}catch(_0x1093a1){this[_0x2e692d(0x139)]['error'](_0x1093a1),this[_0x2e692d(0xe5)](_0x2603e7);}}[_0x291ba3(0x295)](_0x4a117b){const _0x9d4b2a=_0x291ba3,_0xa0dff2=this['_getUndoStack'](_0x4a117b);_0xa0dff2&&(_0xa0dff2[_0x9d4b2a(0xbb)]=0x0,this[_0x9d4b2a(0x387)]());}['_clearRedo'](_0x38bb25){const _0x4e30c2=_0x291ba3,_0x381987=this[_0x4e30c2(0x328)](_0x38bb25);_0x381987&&(_0x381987['length']=0x0,this[_0x4e30c2(0x387)]());}[_0x291ba3(0xf5)](_0x303d97,_0x1bf0bd){const _0x237f1b=_0x291ba3;this[_0x237f1b(0x92)]['set'](_0x303d97,_0x1bf0bd),this[_0x237f1b(0x387)]();}[_0x291ba3(0x73)](_0x2c0ec2,_0x486819){const _0x36360e=_0x291ba3;this[_0x36360e(0x18b)]['set'](_0x2c0ec2,_0x486819),this['_updateStatus']();}[_0x291ba3(0x370)](_0x11b5eb,_0x4cdecf){const _0x6ef308=_0x291ba3,_0x4f2735=[];let _0x32a8c2=_0x4cdecf,_0x4c1501=_0x4cdecf;for(let _0x479f3c=_0x11b5eb[_0x6ef308(0xbb)]-0x1;_0x479f3c>=0x0;_0x479f3c--){const {unitID:_0x588d9d,undoMutations:_0x2d644e,redoMutations:_0x1f71d8}=_0x11b5eb[_0x479f3c],_0x484f41=this[_0x6ef308(0xbd)][_0x6ef308(0x3b8)](_0x32a8c2,_0x2d644e),_0x1fbddc=this[_0x6ef308(0xbd)][_0x6ef308(0x3b8)](_0x4c1501,_0x1f71d8);if(_0x2856d7[_0x6ef308(0x27e)](_0x484f41)||_0x2856d7[_0x6ef308(0x27e)](_0x1fbddc)){this[_0x6ef308(0x139)][_0x6ef308(0x41d)](_0x6ef308(0x14b),_0x6ef308(0xcd),_0x484f41,_0x1fbddc);break;}_0x32a8c2=_0x484f41[_0x6ef308(0xff)],_0x4c1501=_0x1fbddc['c1Prime'],_0x4f2735[_0x6ef308(0x44a)]({'unitID':_0x588d9d,'undoMutations':_0x484f41['m2Prime'],'redoMutations':_0x1fbddc['m2Prime']});}return _0x4f2735[_0x6ef308(0x239)]();}};_0x2e9e74=_0x1d418b([_0x228c44(0x0,_0x2c7fed['IUniverInstanceService']),_0x228c44(0x1,_0x2c7fed['ICommandService']),_0x228c44(0x2,_0x2c7fed[_0x291ba3(0x1e3)]),_0x228c44(0x3,_0x2856d7[_0x291ba3(0x372)]),_0x228c44(0x4,_0x2c7fed[_0x291ba3(0x2fd)])],_0x2e9e74);class _0x246e60 extends _0x2c7fed[_0x291ba3(0x2d5)]{constructor(){const _0x23489f=_0x291ba3;super(),_0x24cbc7(this,_0x23489f(0x3b7)),this[_0x23489f(0x3b7)]=_0x1fc547['fromEvent'](window,_0x23489f(0x210))[_0x23489f(0x256)](_0x1fc547[_0x23489f(0x211)](this['dispose$']),_0x1fc547[_0x23489f(0x1b6)](0x1),_0x1fc547[_0x23489f(0x433)](void 0x0));}[_0x291ba3(0x42e)](_0x1c55cd,_0x493a26,_0x117619=!0x1){const _0x3a49e8=_0x291ba3,_0x40187f=new URL(window['location'][_0x3a49e8(0x2f0)]);_0x40187f[_0x3a49e8(0x489)][_0x3a49e8(0x250)](_0x1c55cd,_0x493a26),_0x117619?window[_0x3a49e8(0x462)][_0x3a49e8(0x262)]('','',_0x40187f[_0x3a49e8(0x161)]()):window[_0x3a49e8(0x462)]['pushState']('','',_0x40187f[_0x3a49e8(0x161)]());}['removeParam'](_0x22d721,_0x29d46d=!0x1){const _0x4b5d98=_0x291ba3,_0x3f3714=new URL(window['location'][_0x4b5d98(0x2f0)]);_0x3f3714[_0x4b5d98(0x489)]['delete'](_0x22d721),_0x29d46d?window[_0x4b5d98(0x462)][_0x4b5d98(0x262)]('','',_0x3f3714[_0x4b5d98(0x161)]()):window['history'][_0x4b5d98(0x22b)]('','',_0x3f3714[_0x4b5d98(0x161)]());}['getParam'](_0x30998f){const _0x1ecc33=_0x291ba3;var _0x9c06f2;return(_0x9c06f2=new URL(window[_0x1ecc33(0x28c)]['href'])[_0x1ecc33(0x489)][_0x1ecc33(0x400)](_0x30998f))!=null?_0x9c06f2:void 0x0;}}var _0x7d33a9=Object[_0x291ba3(0x3e4)],_0x5f0b76=Object['getOwnPropertyDescriptor'],_0x24f583=(_0xd52bd,_0x45a562,_0x4cb988)=>_0x45a562 in _0xd52bd?_0x7d33a9(_0xd52bd,_0x45a562,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4cb988}):_0xd52bd[_0x45a562]=_0x4cb988,_0x513ffe=(_0x4ad2fe,_0x497a77,_0x245908,_0x1d7335)=>{const _0x2ea7e4=_0x291ba3;for(var _0x46ae35=_0x1d7335>0x1?void 0x0:_0x1d7335?_0x5f0b76(_0x497a77,_0x245908):_0x497a77,_0x2d1c77=_0x4ad2fe[_0x2ea7e4(0xbb)]-0x1,_0x5b37fd;_0x2d1c77>=0x0;_0x2d1c77--)(_0x5b37fd=_0x4ad2fe[_0x2d1c77])&&(_0x46ae35=(_0x1d7335?_0x5b37fd(_0x497a77,_0x245908,_0x46ae35):_0x5b37fd(_0x46ae35))||_0x46ae35);return _0x1d7335&&_0x46ae35&&_0x7d33a9(_0x497a77,_0x245908,_0x46ae35),_0x46ae35;},_0x481692=(_0x36db3c,_0x367bcf)=>(_0x3fac56,_0x583759)=>_0x367bcf(_0x3fac56,_0x583759,_0x36db3c),_0x690ac=(_0x32fbc7,_0x342c05,_0x156943)=>_0x24f583(_0x32fbc7,_0x342c05+'',_0x156943);const _0x1b58ab=_0x291ba3(0x377);_0x594fe1[_0x291ba3(0x353)]=class extends _0x2c7fed[_0x291ba3(0x3bb)]{constructor(_0x425ba8=_0x357162,_0x264aef,_0x3ae44c,_0x466b5f,_0x2ea3b0){const _0x16c8e1=_0x291ba3;super(),this[_0x16c8e1(0x45d)]=_0x425ba8,this['_logService']=_0x264aef,this[_0x16c8e1(0x20c)]=_0x3ae44c,this[_0x16c8e1(0x10d)]=_0x466b5f,this['_configService']=_0x2ea3b0;const {..._0x15947d}=this[_0x16c8e1(0x45d)];this[_0x16c8e1(0x2e2)][_0x16c8e1(0x2c5)](_0x229401,_0x15947d);}[_0x291ba3(0x323)](){const _0x1ac39d=_0x291ba3;this['_registerDependencies'](),_0x2c7fed[_0x1ac39d(0x30f)](this[_0x1ac39d(0x10d)],[[_0x47d88],[_0x594fe1[_0x1ac39d(0x340)]],[_0x21a916]]);}[_0x291ba3(0x242)](){const _0x97ba46=_0x291ba3;_0x2c7fed['touchDependencies'](this[_0x97ba46(0x10d)],[[_0x19c2c9]]);}[_0x291ba3(0x23c)](){const _0x481700=_0x291ba3;this[_0x481700(0x40c)]();}['_registerDependencies'](){const _0x44f6b9=_0x291ba3;var _0x2f1b8c,_0x2433bc,_0x550e74,_0x346bd2;this[_0x44f6b9(0x10d)][_0x44f6b9(0x169)](_0x2c7fed[_0x44f6b9(0x26b)])&&this[_0x44f6b9(0x139)][_0x44f6b9(0x41d)](_0x44f6b9(0x414),_0x44f6b9(0x339));let _0x3bb3cc=[[_0x2c7fed[_0x44f6b9(0x26b)],{'useClass':_0x2e9e74}],[_0x594fe1[_0x44f6b9(0xeb)]],[_0x45b0e2],[_0x4893ce['HTTPService']],[_0x47e3f7,{'useClass':_0x246e60}],[_0x4d411d],[_0x594fe1[_0x44f6b9(0x378)]],[_0x4893ce[_0x44f6b9(0xf6)]],[_0x1b1a48],[_0x4bc5bd],[_0x5bc594],[_0x2f34a3],[_0x1d743a],[_0x58fe3e],[_0x1ab0de],[_0x21a916],[_0x268546,{'useClass':(_0x2433bc=(_0x2f1b8c=this[_0x44f6b9(0x45d)])==null?void 0x0:_0x2f1b8c[_0x44f6b9(0xf1)])!=null?_0x2433bc:_0x594fe1[_0x44f6b9(0x37d)]}],[_0x4893ce['IHTTPImplementation'],{'useClass':_0x4893ce[_0x44f6b9(0x3f4)]}],[_0x2856d7[_0x44f6b9(0xe6)],{'useClass':_0x594fe1[_0x44f6b9(0x226)]}],[_0x2c7fed[_0x44f6b9(0x390)],{'useClass':_0x594fe1[_0x44f6b9(0x3c6)]}],[_0x48fa70['IImageIoService'],{'useClass':_0x594fe1[_0x44f6b9(0x345)]}],[_0x594fe1[_0x44f6b9(0x1be)]],[_0x594fe1[_0x44f6b9(0x340)]],[_0x594fe1[_0x44f6b9(0x432)]],[_0x19c2c9],[_0x47d88]];(_0x550e74=this['_config'])!=null&&_0x550e74[_0x44f6b9(0x1cc)]&&_0x3bb3cc[_0x44f6b9(0x44a)]([_0x4ba495,{'useClass':_0x1986bf}]),_0x3bb3cc=_0x2c7fed[_0x44f6b9(0x3c0)](_0x3bb3cc,(_0x346bd2=this[_0x44f6b9(0x45d)])==null?void 0x0:_0x346bd2['override']),_0x3bb3cc[_0x44f6b9(0xb2)](_0x4ae71b=>this['_injector'][_0x44f6b9(0x8b)](_0x4ae71b)),this[_0x44f6b9(0x444)]();}[_0x291ba3(0x40c)](){const _0x255ae7=_0x291ba3;this[_0x255ae7(0x351)](this[_0x255ae7(0x20c)][_0x255ae7(0x9e)](_0x2c7fed[_0x255ae7(0xcb)]['UNIVER_DOC'],[_0x2d5972])),this[_0x255ae7(0x351)](this[_0x255ae7(0x20c)]['registerRenderModule'](_0x2c7fed[_0x255ae7(0xcb)][_0x255ae7(0x2aa)],[_0x56e595]));}[_0x291ba3(0x444)](){const _0x18654a=_0x291ba3;var _0x207fc1,_0x4b3a91;this['_injector'][_0x18654a(0x400)](_0x4893ce['HTTPService'])[_0x18654a(0x3f3)]({'priority':0x14,'interceptor':_0x4893ce[_0x18654a(0x42a)]({'maxParallel':0x6})}),this['_injector']['get'](_0x58fe3e),(_0x207fc1=this['_config'])!=null&&_0x207fc1[_0x18654a(0x311)]||this[_0x18654a(0x10d)][_0x18654a(0x400)](_0x594fe1['LocalCacheService'])[_0x18654a(0x30c)](),(_0x4b3a91=this[_0x18654a(0x45d)])!=null&&_0x4b3a91[_0x18654a(0x437)]&&this[_0x18654a(0x10d)][_0x18654a(0x400)](_0x1d743a),this[_0x18654a(0x10d)]['get'](_0x594fe1[_0x18654a(0x1be)]),this[_0x18654a(0x10d)]['has'](_0x594fe1[_0x18654a(0x432)])&&this['_injector'][_0x18654a(0x400)](_0x594fe1[_0x18654a(0x432)]);}},_0x690ac(_0x594fe1[_0x291ba3(0x353)],_0x291ba3(0x30d),_0x1b58ab),_0x594fe1['UniverCollaborationClientPlugin']=_0x513ffe([_0x2c7fed[_0x291ba3(0x19e)](_0x2856d7['UniverCollaborationPlugin']),_0x481692(0x1,_0x2c7fed[_0x291ba3(0x2fd)]),_0x481692(0x2,_0x180dc9[_0x291ba3(0xdf)]),_0x481692(0x3,_0x2c7fed[_0x291ba3(0x16b)](_0x2c7fed['Injector'])),_0x481692(0x4,_0x2c7fed[_0x291ba3(0x309)])],_0x594fe1[_0x291ba3(0x353)]),_0x594fe1[_0x291ba3(0x395)]=_0x54f2cb,_0x594fe1['COLLAB_SUBMIT_CHANGESET_URL_KEY']=_0x16814e,_0x594fe1[_0x291ba3(0x12e)]=_0x8abbe0,_0x594fe1[_0x291ba3(0x46e)]=_0x5b6195,_0x594fe1[_0x291ba3(0x2c8)]=_0x3603b1,_0x594fe1[_0x291ba3(0x22f)]=_0x1ab0de,_0x594fe1[_0x291ba3(0x258)]=_0x16f4d4,_0x594fe1['HEARTBEAT_TIMEOUT_KEY']=_0x56c1a7,_0x594fe1[_0x291ba3(0x154)]=_0x268546,_0x594fe1[_0x291ba3(0x355)]=_0x47e3f7,_0x594fe1[_0x291ba3(0x27b)]=_0x3085a4,_0x594fe1[_0x291ba3(0x190)]=_0x52fcac,_0x594fe1[_0x291ba3(0x428)]=_0x42be50,_0x594fe1[_0x291ba3(0x216)]=_0xf30628,_0x594fe1[_0x291ba3(0x45f)]=_0x2e8c6c,_0x594fe1[_0x291ba3(0x424)]=_0x5615fb,_0x594fe1[_0x291ba3(0x34b)]=_0x11a57f,_0x594fe1[_0x291ba3(0x3cc)]=_0x54131f,_0x594fe1[_0x291ba3(0x13b)]=_0x246e60,_0x594fe1['deserializeToCombResponse']=_0xd87005,_0x594fe1[_0x291ba3(0x434)]=_0x8a6853,Object[_0x291ba3(0x3e4)](_0x594fe1,Symbol['toStringTag'],{'value':_0x291ba3(0x149)});}));
|
1
|
+
function _0x2385(_0xf57dc4,_0x4cba3b){const _0x5405f6=_0x5405();return _0x2385=function(_0x238520,_0x28d91f){_0x238520=_0x238520-0x171;let _0x3ac4b3=_0x5405f6[_0x238520];return _0x3ac4b3;},_0x2385(_0xf57dc4,_0x4cba3b);}(function(_0x530249,_0x198b8c){const _0x2385c6=_0x2385,_0x51008d=_0x530249();while(!![]){try{const _0x3575a9=-parseInt(_0x2385c6(0x3b4))/0x1*(parseInt(_0x2385c6(0x34f))/0x2)+-parseInt(_0x2385c6(0x275))/0x3*(parseInt(_0x2385c6(0x246))/0x4)+parseInt(_0x2385c6(0x5b9))/0x5+parseInt(_0x2385c6(0x411))/0x6+parseInt(_0x2385c6(0x472))/0x7+-parseInt(_0x2385c6(0x2f8))/0x8*(-parseInt(_0x2385c6(0x27b))/0x9)+-parseInt(_0x2385c6(0x177))/0xa;if(_0x3575a9===_0x198b8c)break;else _0x51008d['push'](_0x51008d['shift']());}catch(_0x519e6e){_0x51008d['push'](_0x51008d['shift']());}}}(_0x5405,0x19ee1),function(_0x1e67b9,_0x1a521b){const _0x298b76=_0x2385;typeof exports=='object'&&typeof module<'u'?_0x1a521b(exports,require('@univerjs/core'),require('rxjs'),require(_0x298b76(0x1a3)),require(_0x298b76(0x46d)),require(_0x298b76(0x2bd)),require(_0x298b76(0x230)),require(_0x298b76(0x46f)),require(_0x298b76(0x55f)),require(_0x298b76(0x506)),require(_0x298b76(0x3e0)),require(_0x298b76(0x4b1)),require(_0x298b76(0x55d)),require(_0x298b76(0x1aa)),require(_0x298b76(0x333)),require('@univerjs/sheets-ui'),require(_0x298b76(0x56e)),require(_0x298b76(0x2db)),require('@univerjs-pro/license')):typeof define==_0x298b76(0x4c3)&&define['amd']?define(['exports','@univerjs/core',_0x298b76(0x355),_0x298b76(0x1a3),_0x298b76(0x46d),_0x298b76(0x2bd),_0x298b76(0x230),_0x298b76(0x46f),_0x298b76(0x55f),_0x298b76(0x506),_0x298b76(0x3e0),_0x298b76(0x4b1),'@univerjs/docs','@univerjs/drawing','@univerjs/engine-formula',_0x298b76(0x18d),_0x298b76(0x56e),_0x298b76(0x2db),_0x298b76(0x2fc)],_0x1a521b):(_0x1e67b9=typeof globalThis<'u'?globalThis:_0x1e67b9||self,_0x1a521b(_0x1e67b9[_0x298b76(0x34b)]={},_0x1e67b9[_0x298b76(0x4cd)],_0x1e67b9[_0x298b76(0x355)],_0x1e67b9[_0x298b76(0x355)][_0x298b76(0x2a2)],_0x1e67b9[_0x298b76(0x19b)],_0x1e67b9[_0x298b76(0x4b0)],_0x1e67b9[_0x298b76(0x1d0)],_0x1e67b9[_0x298b76(0x2e1)],_0x1e67b9[_0x298b76(0x48e)],_0x1e67b9['UniverDocsUi'],_0x1e67b9[_0x298b76(0x189)],_0x1e67b9[_0x298b76(0x40f)],_0x1e67b9[_0x298b76(0x428)],_0x1e67b9['UniverDrawing'],_0x1e67b9[_0x298b76(0x521)],_0x1e67b9[_0x298b76(0x4dd)],_0x1e67b9[_0x298b76(0x502)],_0x1e67b9[_0x298b76(0x5ab)],_0x1e67b9['UniverLicense']));}(this,function(_0x54acb7,_0x528f81,_0x45efe7,_0x77a07,_0x3c796f,_0x4e4b95,_0x3935c6,_0x24131a,_0x239bca,_0x43faad,_0x2b9a61,_0x1e9711,_0x5a172a,_0x2a1abf,_0x27b67c,_0xafca37,_0x15c846,_0x5ec517,_0x2347dd){'use strict';const _0x9e1cf0=_0x2385;var _0x26d7ff=Object[_0x9e1cf0(0x188)],_0x1df757=(_0x1398e0,_0x5637ae,_0x3d3852)=>_0x5637ae in _0x1398e0?_0x26d7ff(_0x1398e0,_0x5637ae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d3852}):_0x1398e0[_0x5637ae]=_0x3d3852,_0x2f1a44=(_0x140150,_0x2e0b2d,_0x1e2687)=>_0x1df757(_0x140150,typeof _0x2e0b2d!=_0x9e1cf0(0x35e)?_0x2e0b2d+'':_0x2e0b2d,_0x1e2687);const _0x12764c=_0x9e1cf0(0x28c),_0x38bb79=_0x9e1cf0(0x57e),_0x4d3e59='SNAPSHOT_URL_KEY',_0x4ddabd=_0x9e1cf0(0x2c6),_0x3b3a99=_0x9e1cf0(0x2ec),_0x5aacc9=_0x9e1cf0(0x1b7),_0x462377=_0x9e1cf0(0x23a),_0xab758c=_0x9e1cf0(0x1ff),_0x5733f0='RETRY_CONNECTING_MAX_COUNT',_0x4ca5c9=_0x9e1cf0(0x18a),_0x2579f6=_0x9e1cf0(0x2b0),_0x39c45a='/universer-api/comb',_0x45f04f=_0x9e1cf0(0x19c),_0x1733b2='/universer-api/oidc/authpage';var _0x360e3c=(_0x16eedd=>(_0x16eedd[_0x16eedd[_0x9e1cf0(0x2d6)]=0x0]=_0x9e1cf0(0x2d6),_0x16eedd[_0x16eedd['OK']=0x1]='OK',_0x16eedd[_0x16eedd['INTERNAL_ERROR']=0x2]=_0x9e1cf0(0x383),_0x16eedd[_0x16eedd[_0x9e1cf0(0x228)]=0x3]='PERMISSION_DENIED',_0x16eedd[_0x16eedd[_0x9e1cf0(0x338)]=0x4]='NOT_FOUND',_0x16eedd[_0x16eedd[_0x9e1cf0(0x42b)]=0x5]=_0x9e1cf0(0x42b),_0x16eedd[_0x16eedd[_0x9e1cf0(0x198)]=0x6]=_0x9e1cf0(0x198),_0x16eedd[_0x16eedd[_0x9e1cf0(0x492)]=0x7]=_0x9e1cf0(0x492),_0x16eedd[_0x16eedd[_0x9e1cf0(0x3f0)]=0x8]=_0x9e1cf0(0x3f0),_0x16eedd[_0x16eedd['COMPLETION_FINISHED']=0x9]=_0x9e1cf0(0x2b4),_0x16eedd[_0x16eedd[_0x9e1cf0(0x373)]=0x1389]=_0x9e1cf0(0x373),_0x16eedd[_0x16eedd[_0x9e1cf0(0x2e4)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x16eedd[_0x16eedd[_0x9e1cf0(0x55c)]=0x1772]=_0x9e1cf0(0x55c),_0x16eedd[_0x16eedd['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x9e1cf0(0x217),_0x16eedd[_0x16eedd[_0x9e1cf0(0x3ce)]=0x1b59]=_0x9e1cf0(0x3ce),_0x16eedd[_0x16eedd['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x9e1cf0(0x303),_0x16eedd[_0x16eedd[_0x9e1cf0(0x17d)]=0x1b5b]=_0x9e1cf0(0x17d),_0x16eedd[_0x16eedd['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x16eedd[_0x16eedd['APPLY_DUPLICATED']=0x1b5d]=_0x9e1cf0(0x21f),_0x16eedd[_0x16eedd['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x9e1cf0(0x20d),_0x16eedd[_0x16eedd[_0x9e1cf0(0x468)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x16eedd[_0x16eedd[_0x9e1cf0(0x534)]=0x232a]=_0x9e1cf0(0x534),_0x16eedd[_0x16eedd[_0x9e1cf0(0x212)]=0x232b]=_0x9e1cf0(0x212),_0x16eedd[_0x16eedd['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x9e1cf0(0x1ed),_0x16eedd[_0x16eedd['LICENSE_DISTRO_REJECTED']=0x232d]=_0x9e1cf0(0x346),_0x16eedd[_0x16eedd[_0x9e1cf0(0x291)]=0x2711]=_0x9e1cf0(0x291),_0x16eedd[_0x16eedd['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x16eedd[_0x16eedd[_0x9e1cf0(0x1a0)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x16eedd[_0x16eedd[_0x9e1cf0(0x2e9)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x16eedd[_0x16eedd[_0x9e1cf0(0x404)]=-0x1]=_0x9e1cf0(0x404),_0x16eedd))(_0x360e3c||{}),_0x23035c=(_0x309829=>(_0x309829[_0x309829[_0x9e1cf0(0x403)]=0x0]=_0x9e1cf0(0x403),_0x309829[_0x309829[_0x9e1cf0(0x4aa)]=0x1]=_0x9e1cf0(0x4aa),_0x309829[_0x309829['UNIVER_SHEET']=0x2]=_0x9e1cf0(0x488),_0x309829[_0x309829[_0x9e1cf0(0x53d)]=0x3]=_0x9e1cf0(0x53d),_0x309829[_0x309829[_0x9e1cf0(0x4a3)]=0x4]='UNIVER_PROJECT',_0x309829[_0x309829[_0x9e1cf0(0x404)]=-0x1]=_0x9e1cf0(0x404),_0x309829))(_0x23035c||{}),_0x1909b2=(_0x1fc872=>(_0x1fc872[_0x1fc872[_0x9e1cf0(0x39d)]=0x0]=_0x9e1cf0(0x39d),_0x1fc872[_0x1fc872[_0x9e1cf0(0x445)]=0x1]=_0x9e1cf0(0x445),_0x1fc872[_0x1fc872[_0x9e1cf0(0x28b)]=0x2]=_0x9e1cf0(0x28b),_0x1fc872[_0x1fc872['LEAVE']=0x3]='LEAVE',_0x1fc872[_0x1fc872[_0x9e1cf0(0x31c)]=0x4]=_0x9e1cf0(0x31c),_0x1fc872[_0x1fc872[_0x9e1cf0(0x548)]=0x5]='HEARTBEAT',_0x1fc872[_0x1fc872[_0x9e1cf0(0x30c)]=0x6]=_0x9e1cf0(0x30c),_0x1fc872[_0x1fc872[_0x9e1cf0(0x404)]=-0x1]='UNRECOGNIZED',_0x1fc872))(_0x1909b2||{}),_0x3894af=(_0x3b1fc2=>(_0x3b1fc2[_0x3b1fc2[_0x9e1cf0(0x1dc)]=0x0]='UNKNOWN_CODE',_0x3b1fc2[_0x3b1fc2['OK']=0x1]='OK',_0x3b1fc2[_0x3b1fc2['FAIL']=0x2]='FAIL',_0x3b1fc2[_0x3b1fc2['UNRECOGNIZED']=-0x1]=_0x9e1cf0(0x404),_0x3b1fc2))(_0x3894af||{}),_0x3ddf59=(_0x2006d7=>(_0x2006d7[_0x2006d7['Undefined']=0x0]=_0x9e1cf0(0x29d),_0x2006d7[_0x2006d7[_0x9e1cf0(0x4b8)]=0x1]=_0x9e1cf0(0x4b8),_0x2006d7[_0x2006d7[_0x9e1cf0(0x4c8)]=0x2]=_0x9e1cf0(0x4c8),_0x2006d7[_0x2006d7[_0x9e1cf0(0x208)]=0x3]=_0x9e1cf0(0x208),_0x2006d7[_0x2006d7[_0x9e1cf0(0x1c8)]=0x4]=_0x9e1cf0(0x1c8),_0x2006d7[_0x2006d7[_0x9e1cf0(0x404)]=-0x1]=_0x9e1cf0(0x404),_0x2006d7))(_0x3ddf59||{});const _0x9e8977=_0x9e1cf0(0x487),_0x1686b4={};function _0x293f32(_0x4f1873){const _0xc9ae00=_0x9e1cf0;var _0x1eafa8,_0x1ec40e,_0x5700b9,_0x425b38;const _0x433b5a=_0x4f1873[_0xc9ae00(0x1f9)],_0x3f65c4=JSON[_0xc9ae00(0x584)](_0x433b5a);switch(_0x3f65c4['cmd']){case _0x1909b2[_0xc9ae00(0x548)]:case _0x1909b2[_0xc9ae00(0x445)]:{const _0x4d8391=_0x3f65c4[_0xc9ae00(0x493)];return{..._0x3f65c4,'data':_0x4d8391,'cmd':_0x3f65c4[_0xc9ae00(0x354)]};}case _0x1909b2['JOIN']:{const _0x2488d5=_0x3f65c4[_0xc9ae00(0x24e)];return{..._0x3f65c4,'data':_0x2488d5,'cmd':_0x3f65c4[_0xc9ae00(0x354)]};}case _0x1909b2[_0xc9ae00(0x30c)]:{const _0x46b09d=_0x3f65c4[_0xc9ae00(0x589)];switch(_0x46b09d[_0xc9ae00(0x1c6)]){case _0x24131a[_0xc9ae00(0x190)][_0xc9ae00(0x593)]:return{..._0x3f65c4,'data':{..._0x46b09d,'data':(_0x1eafa8=_0x46b09d[_0xc9ae00(0x51e)])==null?void 0x0:_0x1eafa8['cs']},'cmd':_0x3f65c4[_0xc9ae00(0x354)]};case _0x24131a[_0xc9ae00(0x190)][_0xc9ae00(0x4f0)]:return{..._0x3f65c4,'data':{..._0x46b09d,'data':(_0x1ec40e=_0x46b09d['csAckEvent'])==null?void 0x0:_0x1ec40e['cs']},'cmd':_0x3f65c4[_0xc9ae00(0x354)]};case _0x24131a['CollaborationEvent'][_0xc9ae00(0x44d)]:return{..._0x3f65c4,'data':{..._0x46b09d,'data':(_0x5700b9=_0x46b09d[_0xc9ae00(0x386)])==null?void 0x0:_0x5700b9['cs']},'cmd':_0x3f65c4[_0xc9ae00(0x354)]};case _0x24131a[_0xc9ae00(0x190)][_0xc9ae00(0x248)]:return{..._0x3f65c4,'data':{..._0x46b09d,'data':(_0x425b38=_0x46b09d['csRejEvent'])==null?void 0x0:_0x425b38['cs']},'cmd':_0x3f65c4[_0xc9ae00(0x354)]};case _0x24131a[_0xc9ae00(0x190)][_0xc9ae00(0x3fd)]:return{..._0x3f65c4,'data':{..._0x46b09d,'data':_0x46b09d[_0xc9ae00(0x36b)]},'cmd':_0x3f65c4[_0xc9ae00(0x354)]};case _0x24131a[_0xc9ae00(0x190)][_0xc9ae00(0x497)]:return{..._0x3f65c4,'data':{..._0x46b09d,'data':_0x46b09d['joinEvent']},'cmd':_0x3f65c4[_0xc9ae00(0x354)]};case _0x24131a[_0xc9ae00(0x190)][_0xc9ae00(0x429)]:return{..._0x3f65c4,'data':{..._0x46b09d,'data':_0x46b09d[_0xc9ae00(0x591)]},'cmd':_0x3f65c4[_0xc9ae00(0x354)]};case _0x24131a['CollaborationEvent'][_0xc9ae00(0x549)]:return{..._0x3f65c4,'data':{..._0x46b09d,'data':_0x46b09d[_0xc9ae00(0x18b)]},'cmd':_0x3f65c4[_0xc9ae00(0x354)]};case _0x24131a[_0xc9ae00(0x190)][_0xc9ae00(0x37c)]:case _0x24131a[_0xc9ae00(0x190)][_0xc9ae00(0x524)]:return{..._0x3f65c4,'data':{..._0x46b09d,'data':_0x46b09d[_0xc9ae00(0x350)]},'cmd':_0x3f65c4[_0xc9ae00(0x354)]};case _0x24131a['CollaborationEvent'][_0xc9ae00(0x560)]:return{..._0x3f65c4,'data':{..._0x46b09d,'data':_0x46b09d[_0xc9ae00(0x18b)]},'cmd':_0x3f65c4[_0xc9ae00(0x354)]};case _0x24131a['CollaborationEvent'][_0xc9ae00(0x456)]:return{..._0x3f65c4,'data':_0x46b09d,'cmd':_0x3f65c4['cmd']};case _0x24131a[_0xc9ae00(0x190)][_0xc9ae00(0x44b)]:return{..._0x3f65c4,'data':{..._0x46b09d,'data':_0x46b09d[_0xc9ae00(0x459)]},'cmd':_0x3f65c4['cmd']};case _0x24131a[_0xc9ae00(0x190)][_0xc9ae00(0x2ae)]:return{..._0x3f65c4,'data':{..._0x46b09d,'data':_0x46b09d[_0xc9ae00(0x535)]},'cmd':_0x3f65c4[_0xc9ae00(0x354)]};case _0x24131a[_0xc9ae00(0x190)]['SHOULD_CLOSE_CONN']:return{..._0x3f65c4,'data':{..._0x46b09d,'data':_0x46b09d[_0xc9ae00(0x2cc)]},'cmd':_0x3f65c4['cmd']};default:return _0x3f65c4;}}default:return _0x3f65c4;}}function _0x3a44bc(_0xa50200){const _0x372a2b=_0x9e1cf0;switch(_0xa50200[_0x372a2b(0x354)]){case _0x1909b2[_0x372a2b(0x548)]:case _0x1909b2[_0x372a2b(0x445)]:return JSON[_0x372a2b(0x401)]({'cmd':_0xa50200[_0x372a2b(0x354)],'routeKey':_0xa50200['routeKey']});case _0x1909b2[_0x372a2b(0x31c)]:{let _0x3ee0c7;switch(_0xa50200[_0x372a2b(0x1f9)][_0x372a2b(0x1c6)]){case _0x24131a[_0x372a2b(0x190)][_0x372a2b(0x3fd)]:{_0x3ee0c7={'eventID':_0x24131a[_0x372a2b(0x190)][_0x372a2b(0x3fd)],'updateCursorEvent':_0xa50200[_0x372a2b(0x1f9)]['data']};break;}case _0x24131a[_0x372a2b(0x190)][_0x372a2b(0x429)]:{_0x3ee0c7={'eventID':_0x24131a['CollaborationEvent'][_0x372a2b(0x429)],'leaveEvent':_0xa50200['data'][_0x372a2b(0x1f9)]};break;}case _0x24131a[_0x372a2b(0x190)][_0x372a2b(0x497)]:{_0x3ee0c7={'eventID':_0x24131a['CollaborationEvent'][_0x372a2b(0x497)],'joinEvent':_0xa50200['data']['data']};break;}case _0x24131a[_0x372a2b(0x190)]['LIVESHARE_NEW_HOST']:{_0x3ee0c7={'eventID':_0x24131a['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0xa50200[_0x372a2b(0x1f9)]['data']};break;}case _0x24131a[_0x372a2b(0x190)][_0x372a2b(0x524)]:{_0x3ee0c7={'eventID':_0x24131a[_0x372a2b(0x190)][_0x372a2b(0x524)],'liveShareOperation':_0xa50200['data'][_0x372a2b(0x1f9)]};break;}case _0x24131a[_0x372a2b(0x190)][_0x372a2b(0x560)]:{_0x3ee0c7={'eventID':_0x24131a['CollaborationEvent']['LIVESHARE_TERMINATE'],'liveShareTerminate':_0xa50200['data'][_0x372a2b(0x1f9)]};break;}case _0x24131a[_0x372a2b(0x190)]['LIVESHARE_REQUEST_HOST']:{_0x3ee0c7={'eventID':_0x24131a[_0x372a2b(0x190)][_0x372a2b(0x5a3)],'liveShareRequestHost':_0xa50200[_0x372a2b(0x1f9)][_0x372a2b(0x1f9)]};break;}case _0x24131a['CollaborationEvent'][_0x372a2b(0x37c)]:{_0x3ee0c7={'eventID':_0x24131a[_0x372a2b(0x190)][_0x372a2b(0x37c)]};break;}default:_0x3ee0c7={'eventID':_0xa50200[_0x372a2b(0x1f9)][_0x372a2b(0x1c6)]};}return JSON[_0x372a2b(0x401)]({'cmd':_0xa50200[_0x372a2b(0x354)],'routeKey':_0xa50200[_0x372a2b(0x477)],'collaMsg':_0x3ee0c7});}case _0x1909b2[_0x372a2b(0x28b)]:return JSON['stringify']({'cmd':_0xa50200[_0x372a2b(0x354)],'routeKey':_0xa50200[_0x372a2b(0x477)],'joinReq':_0xa50200['data']});case _0x1909b2['LEAVE']:return JSON[_0x372a2b(0x401)]({'cmd':_0xa50200['cmd'],'routeKey':_0xa50200[_0x372a2b(0x477)],'leaveReq':_0xa50200[_0x372a2b(0x1f9)]});default:throw new Error(_0x372a2b(0x4f3));}}var _0x3fc207=Object['defineProperty'],_0x2af7fb=Object[_0x9e1cf0(0x484)],_0x3c14c1=(_0x322434,_0x43a92c,_0x51c4e1,_0x249abf)=>{const _0x506481=_0x9e1cf0;for(var _0x19ace1=_0x249abf>0x1?void 0x0:_0x249abf?_0x2af7fb(_0x43a92c,_0x51c4e1):_0x43a92c,_0x105aaf=_0x322434[_0x506481(0x4e5)]-0x1,_0x94fd18;_0x105aaf>=0x0;_0x105aaf--)(_0x94fd18=_0x322434[_0x105aaf])&&(_0x19ace1=(_0x249abf?_0x94fd18(_0x43a92c,_0x51c4e1,_0x19ace1):_0x94fd18(_0x19ace1))||_0x19ace1);return _0x249abf&&_0x19ace1&&_0x3fc207(_0x43a92c,_0x51c4e1,_0x19ace1),_0x19ace1;},_0x2e465d=(_0xb2b4e7,_0x302643)=>(_0x44dec5,_0x738229)=>_0x302643(_0x44dec5,_0x738229,_0xb2b4e7);const _0x5bfc53=_0x528f81[_0x9e1cf0(0x553)]('univer-pro.collaboration-client-socket-service');function _0x30ba94(_0x50909c,_0x27e582,_0x19cf5c){const _0x50405b=_0x9e1cf0;return _0x50909c+'/'+_0x27e582+_0x50405b(0x261)+_0x19cf5c+_0x50405b(0x458);}_0x54acb7[_0x9e1cf0(0x39b)]=class extends _0x528f81['Disposable']{constructor(_0x41931c,_0x2e266b,_0x6ed42f,_0x347951,_0x1c89ed){const _0x3c3a55=_0x9e1cf0;super(),this[_0x3c3a55(0x483)]=_0x41931c,this[_0x3c3a55(0x2eb)]=_0x2e266b,this[_0x3c3a55(0x2c8)]=_0x6ed42f,this[_0x3c3a55(0x186)]=_0x347951,this[_0x3c3a55(0x385)]=_0x1c89ed;}[_0x9e1cf0(0x1f1)](_0x3561d2){const _0x4677d0=_0x9e1cf0,_0x4985d5=this[_0x4677d0(0x2eb)][_0x4677d0(0x1f1)](_0x3561d2);if(!_0x4985d5)throw new Error(_0x4677d0(0x35f));const _0x3a5de6=new _0x528f81[(_0x4677d0(0x1b2))](),_0x1d8b11=new _0x45efe7[(_0x4677d0(0x57c))]();_0x3a5de6['add'](_0x4985d5[_0x4677d0(0x3a2)]['subscribe'](_0x36e98a=>_0x1d8b11[_0x4677d0(0x542)](_0x36e98a))),_0x3a5de6[_0x4677d0(0x2a1)](_0x528f81[_0x4677d0(0x4b2)](()=>_0x1d8b11[_0x4677d0(0x5a4)]()));const _0x36ea9f=new _0x45efe7[(_0x4677d0(0x57c))]();_0x3a5de6['add'](_0x4985d5[_0x4677d0(0x4a6)][_0x4677d0(0x24b)](_0x1aba16=>_0x36ea9f[_0x4677d0(0x542)](_0x1aba16))),_0x3a5de6[_0x4677d0(0x2a1)](_0x528f81[_0x4677d0(0x4b2)](()=>_0x36ea9f['complete']()));const _0x323e39=new _0x45efe7[(_0x4677d0(0x57c))]();_0x3a5de6[_0x4677d0(0x2a1)](_0x4985d5[_0x4677d0(0x3de)]['subscribe'](_0x47e7fa=>{const _0x38d097=_0x293f32(_0x47e7fa);_0x323e39['next'](_0x38d097);})),_0x3a5de6[_0x4677d0(0x2a1)](_0x528f81[_0x4677d0(0x4b2)](()=>_0x323e39[_0x4677d0(0x5a4)]()));let _0x36fc36;const _0x40104d=()=>{const _0x52c440=_0x4677d0;_0x36ea9f[_0x52c440(0x542)](new Event(_0x52c440(0x2cf))),_0x1d8b11['next'](new CloseEvent(_0x52c440(0x2cf))),_0x36fc36[_0x52c440(0x304)]();};return _0x36fc36={'memberID':'','close$':_0x1d8b11['asObservable'](),'error$':_0x36ea9f[_0x4677d0(0x518)](),'open$':_0x4985d5[_0x4677d0(0x512)],'message$':_0x323e39['asObservable'](),'send':_0xabd23f=>{const _0x56ec35=_0x4677d0;if(_0xabd23f[_0x56ec35(0x354)]===_0x1909b2[_0x56ec35(0x31c)]){if(_0xabd23f[_0x56ec35(0x1f9)][_0x56ec35(0x1c6)]===_0x24131a[_0x56ec35(0x190)][_0x56ec35(0x461)]){this[_0x56ec35(0x3cd)](_0x36fc36,_0xabd23f[_0x56ec35(0x1f9)])['catch'](_0x406e41=>{const _0x23935d=_0x56ec35;this[_0x23935d(0x186)][_0x23935d(0x1b9)](_0x406e41),_0x40104d();});return;}if(_0xabd23f[_0x56ec35(0x1f9)][_0x56ec35(0x1c6)]===_0x24131a[_0x56ec35(0x190)]['FETCH_MISSING']){const _0x36e9e0=_0xabd23f[_0x56ec35(0x1f9)];this[_0x56ec35(0x274)](_0x36e9e0)[_0x56ec35(0x4a7)](_0x21f27f=>{const _0x40dac6=_0x56ec35;_0x323e39[_0x40dac6(0x542)]({'cmd':_0x1909b2[_0x40dac6(0x30c)],'code':_0x3894af['OK'],'routeKey':_0x36e9e0[_0x40dac6(0x1f9)]['unitID'],'routeType':'','data':{'eventID':_0x24131a[_0x40dac6(0x190)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x21f27f}}});})[_0x56ec35(0x28a)](_0x10dd72=>{const _0x51fd9a=_0x56ec35;this[_0x51fd9a(0x186)][_0x51fd9a(0x1b9)](_0x10dd72),_0x40104d();});return;}}_0x4985d5[_0x56ec35(0x1de)](_0x3a44bc(_0xabd23f));},'close':()=>{const _0x3ec1a6=_0x4677d0;_0x4985d5[_0x3ec1a6(0x304)](),_0x3a5de6[_0x3ec1a6(0x32c)]();}},_0x36fc36;}async[_0x9e1cf0(0x3cd)](_0x38fa1c,_0x1522ca){const _0x2c7577=_0x9e1cf0;var _0x213dc4,_0x1d43f4;const {unitType:_0x5aabed,unitID:_0x3f4cee,changeset:_0x708a09}=_0x1522ca['data'],_0x3a4b5d={'unitID':_0x3f4cee,'memberID':_0x38fa1c[_0x2c7577(0x3fe)],'type':_0x5aabed,'changeset':_0x24131a['parseChangesetToProtocol'](_0x708a09)},_0x37d18f=this['_configService']['getConfig'](_0x2579f6),_0x50ed65=this['_configService'][_0x2c7577(0x33d)](_0x9e8977),_0x2c11d7=_0x30ba94((_0x1d43f4=(_0x213dc4=_0x50ed65==null?void 0x0:_0x50ed65[_0x2c7577(0x3ef)])!=null?_0x213dc4:_0x37d18f)!=null?_0x1d43f4:_0x39c45a,_0x5aabed,_0x3f4cee);try{await this[_0x2c7577(0x483)]['post'](_0x2c11d7,{'body':_0x3a4b5d});}catch(_0x436e61){throw this[_0x2c7577(0x186)]['error'](_0x2c7577(0x36f),_0x2c7577(0x47d)),_0x436e61;}}async[_0x9e1cf0(0x274)](_0xaa547c){const _0x5e9591=_0x9e1cf0,{unitID:_0x801f6a,from:_0x4cb824,to:_0x587298,unitType:_0x49526d}=_0xaa547c['data'];return(await this['_snapshotServerService'][_0x5e9591(0x25d)]({'metadata':void 0x0},{'unitID':_0x801f6a,'type':_0x49526d,'from':_0x4cb824,'to':_0x587298}))['changesets'];}},_0x54acb7['CollaborationSocketService']=_0x3c14c1([_0x2e465d(0x0,_0x528f81[_0x9e1cf0(0x201)](_0x3935c6[_0x9e1cf0(0x446)])),_0x2e465d(0x1,_0x528f81[_0x9e1cf0(0x201)](_0x3935c6['WebSocketService'])),_0x2e465d(0x2,_0x528f81[_0x9e1cf0(0x1e6)]),_0x2e465d(0x3,_0x528f81[_0x9e1cf0(0x360)]),_0x2e465d(0x4,_0x24131a[_0x9e1cf0(0x2c9)])],_0x54acb7[_0x9e1cf0(0x39b)]);const _0x52c7b0=_0x9e1cf0(0x240);function _0x25adab(_0x48d8bf){const _0x1098cc=_0x9e1cf0;return JSON[_0x1098cc(0x401)](_0x48d8bf)['length'];}class _0x89fc0b{constructor(){const _0x5c80b1=_0x9e1cf0;_0x2f1a44(this,_0x5c80b1(0x1fd),new _0x45efe7[(_0x5c80b1(0x57c))]()),_0x2f1a44(this,_0x5c80b1(0x598),this['_commentUpdate$'][_0x5c80b1(0x518)]());}[_0x9e1cf0(0x294)](_0x4bf3df){const _0x306f60=_0x9e1cf0;this[_0x306f60(0x1fd)][_0x306f60(0x542)](_0x4bf3df);}}var _0x3e1fcd=Object[_0x9e1cf0(0x188)],_0x537225=Object[_0x9e1cf0(0x484)],_0x13417b=(_0x36f33e,_0x1b21b8,_0x1cbeae,_0x4c6253)=>{const _0x14c8a0=_0x9e1cf0;for(var _0x50ab69=_0x4c6253>0x1?void 0x0:_0x4c6253?_0x537225(_0x1b21b8,_0x1cbeae):_0x1b21b8,_0x125717=_0x36f33e[_0x14c8a0(0x4e5)]-0x1,_0x413db7;_0x125717>=0x0;_0x125717--)(_0x413db7=_0x36f33e[_0x125717])&&(_0x50ab69=(_0x4c6253?_0x413db7(_0x1b21b8,_0x1cbeae,_0x50ab69):_0x413db7(_0x50ab69))||_0x50ab69);return _0x4c6253&&_0x50ab69&&_0x3e1fcd(_0x1b21b8,_0x1cbeae,_0x50ab69),_0x50ab69;},_0x513e9d=(_0x54bb39,_0x3b4d34)=>(_0x2bc35a,_0x3d04a3)=>_0x3b4d34(_0x2bc35a,_0x3d04a3,_0x54bb39);let _0x2a4af8=class extends _0x528f81['Disposable']{constructor(_0x4976c6,_0x1cf4b1){const _0x1411ba=_0x9e1cf0;super(),_0x2f1a44(this,'_roomMembers',new Map()),(this['_univerInstanceService']=_0x4976c6,this[_0x1411ba(0x2f3)]=_0x1cf4b1,this[_0x1411ba(0x17c)](_0x528f81[_0x1411ba(0x4b2)](_0x45efe7[_0x1411ba(0x3a3)](this[_0x1411ba(0x48d)][_0x1411ba(0x544)](_0x528f81[_0x1411ba(0x3b6)]['UNIVER_SHEET'])[_0x1411ba(0x4ff)](_0x77a07['map'](_0x54915b=>_0x54915b[_0x1411ba(0x4bc)]())),this[_0x1411ba(0x48d)][_0x1411ba(0x544)](_0x528f81[_0x1411ba(0x3b6)][_0x1411ba(0x4aa)])[_0x1411ba(0x4ff)](_0x77a07[_0x1411ba(0x222)](_0x507d21=>_0x507d21[_0x1411ba(0x4bc)]())),this[_0x1411ba(0x48d)][_0x1411ba(0x544)](_0x528f81[_0x1411ba(0x3b6)][_0x1411ba(0x53d)])[_0x1411ba(0x4ff)](_0x77a07[_0x1411ba(0x222)](_0x2e5c29=>_0x2e5c29[_0x1411ba(0x4bc)]())))[_0x1411ba(0x24b)](_0x11c026=>this['_removeRoom'](_0x11c026)))));}[_0x9e1cf0(0x30d)](_0x55d77b){const _0x5c0f4e=_0x9e1cf0;this[_0x5c0f4e(0x2f3)][_0x5c0f4e(0x30d)](_0x55d77b);}[_0x9e1cf0(0x1ba)](){const _0x43cac3=_0x9e1cf0;return this[_0x43cac3(0x2f3)][_0x43cac3(0x1ba)]();}[_0x9e1cf0(0x2d2)](_0x37f3be,_0x249b98){const _0x1f5321=_0x9e1cf0;let _0x2d25a1=this[_0x1f5321(0x56d)][_0x1f5321(0x3fa)](_0x37f3be);_0x2d25a1||(_0x2d25a1=new _0x68b75e(),this[_0x1f5321(0x56d)][_0x1f5321(0x35c)](_0x37f3be,_0x2d25a1)),_0x2d25a1[_0x1f5321(0x2d2)](_0x249b98);}[_0x9e1cf0(0x415)](_0x475343,_0x54a10a){const _0x2db56b=_0x9e1cf0,_0x22fb83=this[_0x2db56b(0x56d)]['get'](_0x475343);_0x22fb83&&_0x22fb83[_0x2db56b(0x415)](_0x54a10a);}[_0x9e1cf0(0x575)](_0xce7f6e){const _0x29f0a6=_0x9e1cf0;return this[_0x29f0a6(0x56d)][_0x29f0a6(0x3fa)](_0xce7f6e);}[_0x9e1cf0(0x38d)](_0xe0c7bc,_0x263e1f){const _0x283bab=_0x9e1cf0,_0x144b2f=this[_0x283bab(0x56d)][_0x283bab(0x3fa)](_0xe0c7bc);if(_0x144b2f)return _0x144b2f['getMember'](_0x263e1f);}[_0x9e1cf0(0x4b4)](_0x55d652){const _0x53475f=_0x9e1cf0,_0x4a3f03=this[_0x53475f(0x56d)][_0x53475f(0x3fa)](_0x55d652);_0x4a3f03&&(_0x4a3f03[_0x53475f(0x32c)](),this[_0x53475f(0x56d)][_0x53475f(0x52f)](_0x55d652));}['dispose'](){const _0x322f4e=_0x9e1cf0;this[_0x322f4e(0x56d)][_0x322f4e(0x4af)](_0x540d43=>_0x540d43['dispose']()),this[_0x322f4e(0x56d)][_0x322f4e(0x510)]();}};_0x2a4af8=_0x13417b([_0x513e9d(0x0,_0x528f81[_0x9e1cf0(0x57f)]),_0x513e9d(0x1,_0x528f81[_0x9e1cf0(0x201)](_0x528f81[_0x9e1cf0(0x3e7)]))],_0x2a4af8);class _0x68b75e extends _0x528f81['Disposable']{constructor(){const _0x3a46c8=_0x9e1cf0;super(...arguments),_0x2f1a44(this,_0x3a46c8(0x1db),new Map());}[_0x9e1cf0(0x32c)](){const _0x5928f4=_0x9e1cf0;this['_members'][_0x5928f4(0x510)]();}[_0x9e1cf0(0x2d2)](_0x314fa9){const _0x4ae094=_0x9e1cf0;this[_0x4ae094(0x1db)]['set'](_0x314fa9[_0x4ae094(0x3fe)],_0x314fa9);}[_0x9e1cf0(0x415)](_0x3d5cfa){const _0x34ece4=_0x9e1cf0;this['_members'][_0x34ece4(0x52f)](_0x3d5cfa);}[_0x9e1cf0(0x38d)](_0x6ced43){const _0x11a21c=_0x9e1cf0;return this[_0x11a21c(0x1db)][_0x11a21c(0x3fa)](_0x6ced43);}}var _0x36a111=Object['defineProperty'],_0x5d567f=Object[_0x9e1cf0(0x484)],_0x3e1c6e=(_0xda38c4,_0x1cade0,_0x415f15,_0x230024)=>{const _0x43fce3=_0x9e1cf0;for(var _0x2a1e45=_0x230024>0x1?void 0x0:_0x230024?_0x5d567f(_0x1cade0,_0x415f15):_0x1cade0,_0x4022c4=_0xda38c4[_0x43fce3(0x4e5)]-0x1,_0x27b87d;_0x4022c4>=0x0;_0x4022c4--)(_0x27b87d=_0xda38c4[_0x4022c4])&&(_0x2a1e45=(_0x230024?_0x27b87d(_0x1cade0,_0x415f15,_0x2a1e45):_0x27b87d(_0x2a1e45))||_0x2a1e45);return _0x230024&&_0x2a1e45&&_0x36a111(_0x1cade0,_0x415f15,_0x2a1e45),_0x2a1e45;},_0x3eacc8=(_0x43ef3f,_0x675b11)=>(_0x5d218c,_0x458c50)=>_0x675b11(_0x5d218c,_0x458c50,_0x43ef3f),_0x3b6a56=(_0x5d84db=>(_0x5d84db[_0x5d84db[_0x9e1cf0(0x2cb)]=0x0]='IDLE',_0x5d84db[_0x5d84db[_0x9e1cf0(0x244)]=0x1]=_0x9e1cf0(0x244),_0x5d84db[_0x5d84db[_0x9e1cf0(0x269)]=0x2]='OFFLINE',_0x5d84db[_0x5d84db[_0x9e1cf0(0x5a9)]=0x3]='ONLINE',_0x5d84db))(_0x3b6a56||{});_0x54acb7[_0x9e1cf0(0x48a)]=class extends _0x528f81[_0x9e1cf0(0x3c2)]{constructor(_0x350038,_0x1c2c5a,_0x2fc659,_0xc8a781,_0x59bb61,_0x71d348,_0x472b9f,_0x62ae36,_0x4dc07d,_0x570f79){const _0x234b3c=_0x9e1cf0;super(),_0x2f1a44(this,_0x234b3c(0x420),new _0x45efe7[(_0x234b3c(0x500))](0x0)),_0x2f1a44(this,_0x234b3c(0x577),this['_sessionStatus$'][_0x234b3c(0x518)]()),_0x2f1a44(this,_0x234b3c(0x4d2),new _0x45efe7[(_0x234b3c(0x57c))]()),_0x2f1a44(this,_0x234b3c(0x36e),this[_0x234b3c(0x4d2)][_0x234b3c(0x518)]()),_0x2f1a44(this,_0x234b3c(0x285)),_0x2f1a44(this,'_socketMessageSubscription'),_0x2f1a44(this,_0x234b3c(0x388)),_0x2f1a44(this,'_shouldReportTelemetry',!0x1),_0x2f1a44(this,_0x234b3c(0x4e2),null),(this[_0x234b3c(0x3e6)]=_0x350038,this['_logService']=_0x2fc659,this[_0x234b3c(0x490)]=_0xc8a781,this[_0x234b3c(0x41c)]=_0x59bb61,this[_0x234b3c(0x2c8)]=_0x71d348,this[_0x234b3c(0x3cc)]=_0x472b9f,this[_0x234b3c(0x22a)]=_0x62ae36,this[_0x234b3c(0x290)]=_0x4dc07d,this[_0x234b3c(0x1c7)]=_0x570f79,this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x1c2c5a[_0x234b3c(0x4ff)](_0x45efe7[_0x234b3c(0x1d6)](this[_0x234b3c(0x195)]))[_0x234b3c(0x24b)](_0x4e9e9e=>{const _0xa98d46=_0x234b3c;var _0x3577db;typeof _0x4e9e9e>'u'||(this[_0xa98d46(0x285)]=_0x4e9e9e,_0x4e9e9e?(this['_joinRoom'](_0x4e9e9e),this[_0xa98d46(0x501)]=_0x4e9e9e[_0xa98d46(0x3de)][_0xa98d46(0x24b)](_0x3260fb=>{const _0x37a56b=_0xa98d46;_0x3260fb[_0x37a56b(0x477)]===this['_unitID']&&this[_0x37a56b(0x47a)](_0x3260fb);})):(this[_0xa98d46(0x352)](),this[_0xa98d46(0x420)]['next'](0x2),(_0x3577db=this[_0xa98d46(0x501)])==null||_0x3577db[_0xa98d46(0x541)](),this[_0xa98d46(0x501)]=null));}),this[_0x234b3c(0x17c)](this[_0x234b3c(0x490)]['registerOnClose'](()=>{const _0x116925=_0x234b3c;var _0x38ad8f;(_0x38ad8f=this[_0x116925(0x285)])==null||_0x38ad8f[_0x116925(0x1de)]({'cmd':_0x1909b2[_0x116925(0x2a8)],'data':{'roomID':this[_0x116925(0x3e6)]}});})));}get[_0x9e1cf0(0x5ac)](){return this['_sessionStatus$']['getValue']();}[_0x9e1cf0(0x49d)](){const _0x1321fa=_0x9e1cf0;var _0x4d5425,_0x866b8;return(_0x866b8=(_0x4d5425=this[_0x1321fa(0x285)])==null?void 0x0:_0x4d5425[_0x1321fa(0x3fe)])!=null?_0x866b8:null;}['dispose'](){const _0x44b941=_0x9e1cf0;super[_0x44b941(0x32c)](),this[_0x44b941(0x195)][_0x44b941(0x542)](),this['dispose$']['complete']();}[_0x9e1cf0(0x304)](){const _0x28e98e=_0x9e1cf0;var _0x2d26ce,_0x675257;this[_0x28e98e(0x352)](),(_0x2d26ce=this[_0x28e98e(0x285)])==null||_0x2d26ce[_0x28e98e(0x1de)]({'cmd':_0x1909b2[_0x28e98e(0x2a8)],'data':{'roomID':this[_0x28e98e(0x3e6)]}}),(_0x675257=this[_0x28e98e(0x285)])==null||_0x675257[_0x28e98e(0x304)](),this[_0x28e98e(0x4d2)][_0x28e98e(0x5a4)](),this[_0x28e98e(0x420)][_0x28e98e(0x5a4)](),this['dispose']();}[_0x9e1cf0(0x47a)](_0x49075c){const _0x48327b=_0x9e1cf0;_0x49075c[_0x48327b(0x354)]===_0x1909b2[_0x48327b(0x28b)]?this[_0x48327b(0x56b)](_0x49075c):_0x49075c[_0x48327b(0x354)]===_0x1909b2[_0x48327b(0x30c)]&&this[_0x48327b(0x3f8)](_0x49075c);}[_0x9e1cf0(0x3eb)](_0x5e0454){const _0x4140d6=_0x9e1cf0;this['_sessionStatus$'][_0x4140d6(0x542)](0x1),_0x5e0454[_0x4140d6(0x1de)]({'cmd':_0x1909b2[_0x4140d6(0x28b)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x4140d6(0x3e6)]}]}});}[_0x9e1cf0(0x56b)](_0x57c496){const _0x11574f=_0x9e1cf0;var _0x3cd005;if(_0x57c496[_0x11574f(0x3d4)]===_0x3894af['FAIL']){this[_0x11574f(0x41c)][_0x11574f(0x2e2)]({'type':_0x3c796f[_0x11574f(0x3b3)][_0x11574f(0x23b)],'content':this['_localeService']['t'](_0x11574f(0x4fa))}),this[_0x11574f(0x420)]['next'](0x2);return;}this[_0x11574f(0x420)]['next'](0x3);const _0xc26e4=(_0x3cd005=_0x57c496[_0x11574f(0x1f9)][_0x11574f(0x3b1)][this[_0x11574f(0x3e6)]])==null?void 0x0:_0x3cd005['members'];_0xc26e4&&_0xc26e4[_0x11574f(0x4af)](_0x3e8369=>this[_0x11574f(0x22a)][_0x11574f(0x2d2)](this['_unitID'],_0x3e8369));}[_0x9e1cf0(0x3f8)](_0x430f53){const _0x1a1841=_0x9e1cf0;try{const _0xe1b36e=_0x430f53[_0x1a1841(0x1f9)];switch(_0xe1b36e['eventID']){case _0x24131a[_0x1a1841(0x190)]['USERS_ENTER']:this[_0x1a1841(0x46b)](_0xe1b36e),this['_event$']['next'](_0xe1b36e);break;case _0x24131a[_0x1a1841(0x190)][_0x1a1841(0x429)]:this[_0x1a1841(0x4fd)](_0xe1b36e),this[_0x1a1841(0x4d2)][_0x1a1841(0x542)](_0xe1b36e);break;case _0x24131a[_0x1a1841(0x190)][_0x1a1841(0x4f0)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x1a1841(0x1d1)](),this[_0x1a1841(0x4d2)]['next'](_0xe1b36e);break;case _0x24131a['CollaborationEvent'][_0x1a1841(0x456)]:this['_logService'][_0x1a1841(0x1b9)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0xe1b36e)),this[_0x1a1841(0x4d2)][_0x1a1841(0x542)](_0xe1b36e);break;case _0x24131a['CollaborationEvent'][_0x1a1841(0x44b)]:this['_commentService']['onCommentUpdate'](_0xe1b36e[_0x1a1841(0x1f9)]),this[_0x1a1841(0x4d2)][_0x1a1841(0x542)](_0xe1b36e);break;default:this[_0x1a1841(0x4d2)][_0x1a1841(0x542)](_0xe1b36e);}}catch(_0x348950){this[_0x1a1841(0x186)][_0x1a1841(0x1b9)](_0x348950,_0x430f53);}}[_0x9e1cf0(0x46b)](_0x77ff69){const _0x43e669=_0x9e1cf0;this[_0x43e669(0x22a)][_0x43e669(0x2d2)](this[_0x43e669(0x3e6)],_0x77ff69[_0x43e669(0x1f9)]);}[_0x9e1cf0(0x4fd)](_0x447dda){const _0x3eb840=_0x9e1cf0;this[_0x3eb840(0x22a)][_0x3eb840(0x415)](this[_0x3eb840(0x3e6)],_0x447dda[_0x3eb840(0x1f9)][_0x3eb840(0x3fe)]);}async[_0x9e1cf0(0x1de)](_0x152d2b,_0x2f3101){const _0x4142ae=_0x9e1cf0;if(this['sessionStatus']!==0x3||!this[_0x4142ae(0x285)])throw new Error(_0x4142ae(0x5b1));try{_0x152d2b[_0x4142ae(0x1c6)]===_0x24131a[_0x4142ae(0x190)][_0x4142ae(0x461)]&&(this[_0x4142ae(0x271)](),this['_startTelemetryCollaborationNewChangeset'](_0x152d2b)),this[_0x4142ae(0x285)]['send']({'cmd':_0x1909b2[_0x4142ae(0x31c)],'routeKey':_0x2f3101,'routeType':'','data':_0x152d2b});}catch(_0x4a8e6a){this['_logService'][_0x4142ae(0x1b9)](_0x4a8e6a);}}[_0x9e1cf0(0x271)](){const _0x284a7a=_0x9e1cf0;var _0x303445;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x2f3d5a=_0x2385;this['_collaborationTimeoutTimer']=null,this['_messageService']['show']({'type':_0x3c796f[_0x2f3d5a(0x3b3)][_0x2f3d5a(0x54d)],'content':this[_0x2f3d5a(0x3cc)]['t'](_0x2f3d5a(0x236))});},(_0x303445=this[_0x284a7a(0x2c8)][_0x284a7a(0x33d)](_0xab758c))!=null?_0x303445:0x4e20);}[_0x9e1cf0(0x1d1)](){const _0x2c9fac=_0x9e1cf0;this[_0x2c9fac(0x388)]&&(clearTimeout(this[_0x2c9fac(0x388)]),this[_0x2c9fac(0x388)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x16942c){const _0x1b4ebb=_0x9e1cf0;if(!this[_0x1b4ebb(0x46c)])return;const {data:_0x24e589}=_0x16942c,{unitID:_0x4a04db,changeset:_0x4f5a5d}=_0x24e589,{mutations:_0x5ba500,type:_0x77fc90}=_0x4f5a5d;this[_0x1b4ebb(0x4e2)]={'unitId':_0x4a04db,'type':_0x77fc90,'startTime':performance[_0x1b4ebb(0x380)](),'stopTime':0x0,'duration':0x0,'size':_0x25adab(_0x5ba500)};}[_0x9e1cf0(0x281)](){const _0x4544b8=_0x9e1cf0;if(this[_0x4544b8(0x46c)]){if(!this[_0x4544b8(0x4e2)]){this[_0x4544b8(0x186)][_0x4544b8(0x1b9)](_0x4544b8(0x36f),'telemetry\x20info\x20is\x20not\x20initialized');return;}this['_telemetryInfo'][_0x4544b8(0x436)]=performance[_0x4544b8(0x380)](),this['_telemetryInfo'][_0x4544b8(0x363)]=this['_telemetryInfo']['stopTime']-this[_0x4544b8(0x4e2)][_0x4544b8(0x45b)],this[_0x4544b8(0x1c7)][_0x4544b8(0x495)](_0x52c7b0,this['_telemetryInfo']),this[_0x4544b8(0x4e2)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x263b79=_0x9e1cf0;this[_0x263b79(0x4e2)]=null;}},_0x54acb7[_0x9e1cf0(0x48a)]=_0x3e1c6e([_0x3eacc8(0x2,_0x528f81[_0x9e1cf0(0x360)]),_0x3eacc8(0x3,_0x4e4b95[_0x9e1cf0(0x465)]),_0x3eacc8(0x4,_0x4e4b95['IMessageService']),_0x3eacc8(0x5,_0x528f81[_0x9e1cf0(0x1e6)]),_0x3eacc8(0x6,_0x528f81[_0x9e1cf0(0x201)](_0x528f81['LocaleService'])),_0x3eacc8(0x7,_0x528f81[_0x9e1cf0(0x201)](_0x2a4af8)),_0x3eacc8(0x8,_0x528f81[_0x9e1cf0(0x201)](_0x89fc0b)),_0x3eacc8(0x9,_0x528f81['Optional'](_0x239bca[_0x9e1cf0(0x3ed)]))],_0x54acb7[_0x9e1cf0(0x48a)]);var _0x35e477=Object['defineProperty'],_0xe6db7a=Object[_0x9e1cf0(0x484)],_0x38584f=(_0x22a7e4,_0x1d59dc,_0x21e914,_0xf76d86)=>{for(var _0x4d48ad=_0xf76d86>0x1?void 0x0:_0xf76d86?_0xe6db7a(_0x1d59dc,_0x21e914):_0x1d59dc,_0x152ae4=_0x22a7e4['length']-0x1,_0x345117;_0x152ae4>=0x0;_0x152ae4--)(_0x345117=_0x22a7e4[_0x152ae4])&&(_0x4d48ad=(_0xf76d86?_0x345117(_0x1d59dc,_0x21e914,_0x4d48ad):_0x345117(_0x4d48ad))||_0x4d48ad);return _0xf76d86&&_0x4d48ad&&_0x35e477(_0x1d59dc,_0x21e914,_0x4d48ad),_0x4d48ad;},_0x1c942f=(_0x1a6ccc,_0x27e29f)=>(_0x472b0d,_0x537847)=>_0x27e29f(_0x472b0d,_0x537847,_0x1a6ccc);_0x54acb7[_0x9e1cf0(0x3c9)]=class extends _0x528f81[_0x9e1cf0(0x255)]{constructor(_0x28eba8,_0x5ef059,_0xe8d42a,_0x749166,_0x2cec7f,_0x56a67d){const _0x4c0b8f=_0x9e1cf0;super(),_0x2f1a44(this,_0x4c0b8f(0x203),new _0x45efe7[(_0x4c0b8f(0x500))](void 0x0)),_0x2f1a44(this,_0x4c0b8f(0x330),this['_socket$'][_0x4c0b8f(0x518)]()),_0x2f1a44(this,_0x4c0b8f(0x225),null),_0x2f1a44(this,_0x4c0b8f(0x43b),new Map()),_0x2f1a44(this,_0x4c0b8f(0x4e4),new _0x45efe7[(_0x4c0b8f(0x500))](_0x3b6a56['IDLE'])),_0x2f1a44(this,_0x4c0b8f(0x376),this[_0x4c0b8f(0x4e4)][_0x4c0b8f(0x518)]()),_0x2f1a44(this,_0x4c0b8f(0x204),!0x1),_0x2f1a44(this,'_retryConnectingTimer'),_0x2f1a44(this,'_retryCount',0x0),_0x2f1a44(this,_0x4c0b8f(0x301)),_0x2f1a44(this,'_timeoutTimer'),(this[_0x4c0b8f(0x314)]=_0x28eba8,this[_0x4c0b8f(0x3cc)]=_0x5ef059,this[_0x4c0b8f(0x41c)]=_0xe8d42a,this[_0x4c0b8f(0x186)]=_0x749166,this[_0x4c0b8f(0x2c8)]=_0x2cec7f,this[_0x4c0b8f(0x3c1)]=_0x56a67d,this['_initEventListeners']());}get[_0x9e1cf0(0x285)](){const _0x415a71=_0x9e1cf0;return this[_0x415a71(0x203)]['getValue']();}[_0x9e1cf0(0x522)](){const _0x7a71d3=_0x9e1cf0;this['_listenToOfflineEvent'](),this[_0x7a71d3(0x299)]();}[_0x9e1cf0(0x32c)](){const _0x339cf1=_0x9e1cf0;super[_0x339cf1(0x32c)](),this[_0x339cf1(0x43b)][_0x339cf1(0x4af)](_0x3920f4=>_0x3920f4['dispose']()),this[_0x339cf1(0x43b)][_0x339cf1(0x510)](),this[_0x339cf1(0x4e4)][_0x339cf1(0x5a4)]();}async[_0x9e1cf0(0x564)](_0x4684e7){const _0x21b7d5=_0x9e1cf0;if(this[_0x21b7d5(0x43b)][_0x21b7d5(0x54b)](_0x4684e7))return this[_0x21b7d5(0x43b)][_0x21b7d5(0x3fa)](_0x4684e7);this[_0x21b7d5(0x469)]();const _0x23a11b=this[_0x21b7d5(0x314)][_0x21b7d5(0x3b5)](_0x54acb7['CollaborationSession'],_0x4684e7,this[_0x21b7d5(0x203)]['asObservable']());return this[_0x21b7d5(0x43b)][_0x21b7d5(0x35c)](_0x4684e7,_0x23a11b),_0x23a11b;}[_0x9e1cf0(0x58c)](_0x1eec78){const _0x491604=_0x9e1cf0;var _0x3b0720;const _0x5604f1=this[_0x491604(0x43b)][_0x491604(0x3fa)](_0x1eec78);_0x5604f1&&(this[_0x491604(0x43b)][_0x491604(0x52f)](_0x1eec78),_0x5604f1[_0x491604(0x304)]()),this[_0x491604(0x43b)][_0x491604(0x519)]||(_0x3b0720=this[_0x491604(0x285)])==null||_0x3b0720[_0x491604(0x304)]();}[_0x9e1cf0(0x431)](){const _0x56dce6=_0x9e1cf0;this['_retryCount']=0x0,this[_0x56dce6(0x325)]!=null&&(clearTimeout(this[_0x56dce6(0x325)]),this[_0x56dce6(0x325)]=null),this['_tryReconnect']();}[_0x9e1cf0(0x4e3)](){const _0xe70c5c=_0x9e1cf0;var _0x165b58,_0x3c0570;const _0x279f3c=this[_0xe70c5c(0x2c8)][_0xe70c5c(0x33d)](_0x3b3a99),_0x49665b=this['_configService'][_0xe70c5c(0x33d)](_0x9e8977),_0x4a91f2=(_0x3c0570=(_0x165b58=_0x49665b==null?void 0x0:_0x49665b[_0xe70c5c(0x320)])!=null?_0x165b58:_0x279f3c)!=null?_0x3c0570:_0x5aacc9,_0x292dfc=this[_0xe70c5c(0x3c1)]['createSocket'](_0x4a91f2);return this[_0xe70c5c(0x225)]=_0x292dfc,_0x292dfc;}[_0x9e1cf0(0x469)](){const _0x1242b2=_0x9e1cf0;var _0x135abb,_0x2d18fb;try{const _0xdc33f7=(_0x2d18fb=(_0x135abb=this[_0x1242b2(0x285)])!=null?_0x135abb:this[_0x1242b2(0x225)])!=null?_0x2d18fb:this[_0x1242b2(0x4e3)]();if(_0xdc33f7){const _0x3b80a7=_0xdc33f7['send'];_0xdc33f7[_0x1242b2(0x1de)]=_0xb71fba=>(this[_0x1242b2(0x3c0)](),_0x3b80a7[_0x1242b2(0x2c3)](_0xdc33f7,[_0xb71fba])),_0xdc33f7[_0x1242b2(0x3de)][_0x1242b2(0x24b)](_0x8bc95b=>this['_onMessage'](_0xdc33f7,_0x8bc95b)),_0xdc33f7[_0x1242b2(0x4a6)][_0x1242b2(0x4ff)](_0x77a07['take'](0x1))[_0x1242b2(0x24b)](_0x52ec6f=>this[_0x1242b2(0x186)][_0x1242b2(0x1b9)](_0x1242b2(0x1b0),_0x52ec6f)),_0xdc33f7[_0x1242b2(0x512)][_0x1242b2(0x4ff)](_0x77a07['take'](0x1))[_0x1242b2(0x24b)](()=>{const _0x252b23=_0x1242b2;this[_0x252b23(0x313)](_0xdc33f7);}),_0xdc33f7['close$'][_0x1242b2(0x4ff)](_0x77a07[_0x1242b2(0x3d7)](0x1))[_0x1242b2(0x24b)](_0x347da6=>{const _0x443088=_0x1242b2;this[_0x443088(0x186)][_0x443088(0x1fc)](_0x443088(0x257),_0x443088(0x39f),_0x347da6),this[_0x443088(0x21a)]();});}}catch(_0x2b8cc3){this['_logService'][_0x1242b2(0x1b9)](_0x2b8cc3),this[_0x1242b2(0x21a)]();}}[_0x9e1cf0(0x313)](_0x257c25){const _0x41af89=_0x9e1cf0;this[_0x41af89(0x186)][_0x41af89(0x1fc)]('[CollaborationSessionService]',_0x41af89(0x368)),_0x257c25[_0x41af89(0x1de)]({'cmd':_0x1909b2[_0x41af89(0x445)]}),this[_0x41af89(0x3c0)]();}['_listenToOfflineEvent'](){const _0x27f9f8=_0x9e1cf0;window[_0x27f9f8(0x457)](_0x27f9f8(0x45e),()=>this['_onOffline']());}[_0x9e1cf0(0x4de)](){const _0x597da7=_0x9e1cf0;this[_0x597da7(0x204)]=!0x1,this[_0x597da7(0x225)]=null,this['_status$']['next'](_0x3b6a56[_0x597da7(0x269)]),this[_0x597da7(0x203)]['next'](null),this[_0x597da7(0x536)](),this[_0x597da7(0x3a7)]();}[_0x9e1cf0(0x21a)](){const _0x359c77=_0x9e1cf0;var _0x4cc3bf;this['_onOffline'](),this[_0x359c77(0x218)]<((_0x4cc3bf=this[_0x359c77(0x2c8)]['getConfig'](_0x5733f0))!=null?_0x4cc3bf:0x3)?(this[_0x359c77(0x41c)][_0x359c77(0x2e2)]({'key':_0x359c77(0x4e0),'type':_0x3c796f['MessageType'][_0x359c77(0x23b)],'content':this[_0x359c77(0x3cc)]['t'](_0x359c77(0x590))}),this['_tryReconnect']()):this[_0x359c77(0x41c)]['show']({'key':_0x359c77(0x4e0),'type':_0x3c796f['MessageType'][_0x359c77(0x54d)],'content':this[_0x359c77(0x3cc)]['t'](_0x359c77(0x191))});}['_listenToOnlineEvent'](){const _0x38bd98=_0x9e1cf0,_0x555c14=()=>{const _0x10f389=_0x2385;this[_0x10f389(0x285)]||this[_0x10f389(0x431)]();},_0x1835e1=()=>{const _0x43ce95=_0x2385;this[_0x43ce95(0x285)]||document[_0x43ce95(0x3dc)]===_0x43ce95(0x23c)||this['reconnect']();};window[_0x38bd98(0x457)](_0x38bd98(0x58e),_0x555c14),document[_0x38bd98(0x457)](_0x38bd98(0x193),_0x1835e1);}[_0x9e1cf0(0x233)](){const _0x19b861=_0x9e1cf0;var _0x3ba633;const _0x204272=this['_retryCount'],_0xa25943=this[_0x19b861(0x2c8)][_0x19b861(0x33d)](_0x9e8977),_0x8dbb4c=_0x204272===0x0?0x0:((_0x3ba633=_0xa25943==null?void 0x0:_0xa25943['retryConnectingInterval'])!=null?_0x3ba633:0x4e20)*0x2**_0x204272;this[_0x19b861(0x325)]=window['setTimeout'](()=>{const _0x3e721d=_0x19b861;clearTimeout(this[_0x3e721d(0x325)]),this[_0x3e721d(0x325)]=null,this[_0x3e721d(0x469)]();},_0x8dbb4c),this['_retryCount']+=0x1;}['_onMessage'](_0x2e7694,_0x20b56f){const _0x13287d=_0x9e1cf0,{cmd:_0x39cd01}=_0x20b56f;_0x39cd01===_0x1909b2[_0x13287d(0x445)]&&!this[_0x13287d(0x204)]&&(_0x2e7694[_0x13287d(0x3fe)]=_0x20b56f[_0x13287d(0x1f9)][_0x13287d(0x3fe)],this['_socket$'][_0x13287d(0x542)](_0x2e7694),this[_0x13287d(0x4e4)][_0x13287d(0x542)](_0x3b6a56[_0x13287d(0x5a9)]),this[_0x13287d(0x204)]=!0x0,this[_0x13287d(0x225)]=null),_0x39cd01===_0x1909b2[_0x13287d(0x548)]&&this[_0x13287d(0x536)](),this[_0x13287d(0x3c0)]();}[_0x9e1cf0(0x3c0)](){const _0x5a4d7b=_0x9e1cf0;var _0xb81468;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window[_0x5a4d7b(0x2ee)](()=>this[_0x5a4d7b(0x59b)](),(_0xb81468=this[_0x5a4d7b(0x2c8)][_0x5a4d7b(0x33d)](_0x462377))!=null?_0xb81468:0x7530);}[_0x9e1cf0(0x59b)](){const _0x550c06=_0x9e1cf0;this[_0x550c06(0x285)][_0x550c06(0x1de)]({'cmd':_0x1909b2[_0x550c06(0x548)]}),this[_0x550c06(0x516)]();}[_0x9e1cf0(0x516)](){const _0x16d2c7=_0x9e1cf0;var _0x2b765b;this[_0x16d2c7(0x322)]=window[_0x16d2c7(0x2ee)](()=>this[_0x16d2c7(0x21a)](),(_0x2b765b=this['_configService'][_0x16d2c7(0x33d)](_0xab758c))!=null?_0x2b765b:0x4e20);}[_0x9e1cf0(0x3a7)](){const _0x102f00=_0x9e1cf0;this[_0x102f00(0x301)]!=null&&(clearTimeout(this[_0x102f00(0x301)]),this[_0x102f00(0x301)]=null);}['_clearTimeoutTimer'](){const _0x1da183=_0x9e1cf0;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x1da183(0x322)]),this[_0x1da183(0x322)]=null);}},_0x54acb7['CollaborationSessionService']=_0x38584f([_0x1c942f(0x0,_0x528f81[_0x9e1cf0(0x201)](_0x528f81['Injector'])),_0x1c942f(0x1,_0x528f81[_0x9e1cf0(0x201)](_0x528f81[_0x9e1cf0(0x4b3)])),_0x1c942f(0x2,_0x4e4b95[_0x9e1cf0(0x5b4)]),_0x1c942f(0x3,_0x528f81[_0x9e1cf0(0x360)]),_0x1c942f(0x4,_0x528f81[_0x9e1cf0(0x1e6)]),_0x1c942f(0x5,_0x5bfc53)],_0x54acb7[_0x9e1cf0(0x3c9)]);for(var _0x98d506=[],_0x22e631=0x0;_0x22e631<0x100;++_0x22e631)_0x98d506[_0x9e1cf0(0x202)]((_0x22e631+0x100)[_0x9e1cf0(0x43e)](0x10)[_0x9e1cf0(0x566)](0x1));function _0x83166d(_0x3372e4,_0x3ded8e=0x0){const _0x444b28=_0x9e1cf0;return(_0x98d506[_0x3372e4[_0x3ded8e+0x0]]+_0x98d506[_0x3372e4[_0x3ded8e+0x1]]+_0x98d506[_0x3372e4[_0x3ded8e+0x2]]+_0x98d506[_0x3372e4[_0x3ded8e+0x3]]+'-'+_0x98d506[_0x3372e4[_0x3ded8e+0x4]]+_0x98d506[_0x3372e4[_0x3ded8e+0x5]]+'-'+_0x98d506[_0x3372e4[_0x3ded8e+0x6]]+_0x98d506[_0x3372e4[_0x3ded8e+0x7]]+'-'+_0x98d506[_0x3372e4[_0x3ded8e+0x8]]+_0x98d506[_0x3372e4[_0x3ded8e+0x9]]+'-'+_0x98d506[_0x3372e4[_0x3ded8e+0xa]]+_0x98d506[_0x3372e4[_0x3ded8e+0xb]]+_0x98d506[_0x3372e4[_0x3ded8e+0xc]]+_0x98d506[_0x3372e4[_0x3ded8e+0xd]]+_0x98d506[_0x3372e4[_0x3ded8e+0xe]]+_0x98d506[_0x3372e4[_0x3ded8e+0xf]])[_0x444b28(0x256)]();}var _0x1a1727,_0x2a942a=new Uint8Array(0x10);function _0x51160d(){const _0x39c91b=_0x9e1cf0;if(!_0x1a1727&&(_0x1a1727=typeof crypto<'u'&&crypto[_0x39c91b(0x466)]&&crypto[_0x39c91b(0x466)][_0x39c91b(0x334)](crypto),!_0x1a1727))throw new Error(_0x39c91b(0x318));return _0x1a1727(_0x2a942a);}var _0xa9de28=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x9e1cf0(0x4f9)][_0x9e1cf0(0x334)](crypto);const _0x25d373={'randomUUID':_0xa9de28};function _0x20909d(_0x5bab66,_0x336c94,_0x339b32){const _0x10d669=_0x9e1cf0;if(_0x25d373[_0x10d669(0x4f9)]&&!_0x336c94&&!_0x5bab66)return _0x25d373[_0x10d669(0x4f9)]();_0x5bab66=_0x5bab66||{};var _0x79823a=_0x5bab66[_0x10d669(0x293)]||(_0x5bab66[_0x10d669(0x4bd)]||_0x51160d)();return _0x79823a[0x6]=_0x79823a[0x6]&0xf|0x40,_0x79823a[0x8]=_0x79823a[0x8]&0x3f|0x80,_0x83166d(_0x79823a);}var _0x5b60a4=Object[_0x9e1cf0(0x188)],_0x1e4363=Object['getOwnPropertyDescriptor'],_0xfe76c5=(_0x5047fa,_0x3076a4,_0x1139e6,_0x34bd5a)=>{const _0x1c8783=_0x9e1cf0;for(var _0x1f1fb3=_0x34bd5a>0x1?void 0x0:_0x34bd5a?_0x1e4363(_0x3076a4,_0x1139e6):_0x3076a4,_0x5e7468=_0x5047fa[_0x1c8783(0x4e5)]-0x1,_0x3334bf;_0x5e7468>=0x0;_0x5e7468--)(_0x3334bf=_0x5047fa[_0x5e7468])&&(_0x1f1fb3=(_0x34bd5a?_0x3334bf(_0x3076a4,_0x1139e6,_0x1f1fb3):_0x3334bf(_0x1f1fb3))||_0x1f1fb3);return _0x34bd5a&&_0x1f1fb3&&_0x5b60a4(_0x3076a4,_0x1139e6,_0x1f1fb3),_0x1f1fb3;},_0xf3b2a3=(_0x1cec9e,_0x4f6382)=>(_0x30fa6b,_0x88b928)=>_0x4f6382(_0x30fa6b,_0x88b928,_0x1cec9e);let _0x482640=class{constructor(_0x4afddf,_0xd1a7d5,_0x3ce818){const _0x42f03d=_0x9e1cf0;this[_0x42f03d(0x314)]=_0x4afddf,this[_0x42f03d(0x467)]=_0xd1a7d5,this[_0x42f03d(0x3a9)]=_0x3ce818;}[_0x9e1cf0(0x36c)](_0x52e2e5){const _0x1f0181=_0x9e1cf0;this[_0x1f0181(0x54a)](_0x52e2e5),this[_0x1f0181(0x5ae)](_0x52e2e5);}['transformRemoteChangeset'](_0x4852d4){const _0xfa3a28=_0x9e1cf0,{unitID:_0x2880b6}=_0x4852d4,_0x1cea7a=this[_0xfa3a28(0x3a9)][_0xfa3a28(0x24c)](_0x2880b6)['with'](_0x43faad['DocIMEInputManagerService']),{redoCache:_0x58f9ae}=_0x1cea7a['getUndoRedoMutationParamsCache']();if(_0x58f9ae[_0xfa3a28(0x4e5)]===0x0)return _0x4852d4;let _0x628789=_0x528f81['Tools'][_0xfa3a28(0x49e)](_0x4852d4[_0xfa3a28(0x43c)][0x0]);for(let _0x42e1e2=0x0;_0x42e1e2<_0x58f9ae[_0xfa3a28(0x4e5)];_0x42e1e2++){const _0x39d304={'id':'doc.mutation.rich-text-editing','params':{..._0x58f9ae[_0x42e1e2]}},_0x1371a0=this[_0xfa3a28(0x467)]['transformMutation'](_0x628789,_0x39d304,!0x1);if(_0x24131a[_0xfa3a28(0x28f)](_0x1371a0))throw _0x1371a0[_0xfa3a28(0x1b9)];_0x628789=_0x1371a0[_0xfa3a28(0x31d)];}return{..._0x528f81[_0xfa3a28(0x33c)][_0xfa3a28(0x49e)](_0x4852d4),'mutations':[_0x628789]};}[_0x9e1cf0(0x54a)](_0x121035){const _0x68f1df=_0x9e1cf0,{unitID:_0x4ea098}=_0x121035,_0x53ebb0=this[_0x68f1df(0x3a9)][_0x68f1df(0x24c)](_0x4ea098)['with'](_0x43faad[_0x68f1df(0x2ed)]),{undoCache:_0x3fd293,redoCache:_0x3619cf}=_0x53ebb0[_0x68f1df(0x496)]();if(_0x3fd293[_0x68f1df(0x4e5)]===0x0||_0x3619cf[_0x68f1df(0x4e5)]===0x0)return;const _0x5bda54=[],_0x2d61a6=[];let _0x5ba39c=_0x528f81[_0x68f1df(0x33c)][_0x68f1df(0x49e)](_0x121035['mutations'][0x0]),_0x4f43f6=_0x528f81['Tools']['deepClone'](_0x121035[_0x68f1df(0x43c)][0x0]);for(let _0x4deb37=_0x3fd293[_0x68f1df(0x4e5)]-0x1;_0x4deb37>=0x0;_0x4deb37--){const _0x5605b9={'id':_0x68f1df(0x56f),'params':{..._0x3fd293[_0x4deb37]}},_0x2dd441={'id':'doc.mutation.rich-text-editing','params':{..._0x3619cf[_0x4deb37]}},_0x24a4b6=this['_transformService']['transformMutation'](_0x5ba39c,_0x5605b9,!0x1),_0x570676=this[_0x68f1df(0x467)][_0x68f1df(0x3fc)](_0x4f43f6,_0x2dd441,!0x1);if(_0x24131a['isTransformMutationFailure'](_0x24a4b6))throw _0x24a4b6[_0x68f1df(0x1b9)];if(_0x24131a['isTransformMutationFailure'](_0x570676))throw _0x570676[_0x68f1df(0x1b9)];_0x5bda54[_0x68f1df(0x4c1)](_0x24a4b6[_0x68f1df(0x3ba)][_0x68f1df(0x2f0)]),_0x2d61a6['unshift'](_0x570676[_0x68f1df(0x3ba)][_0x68f1df(0x2f0)]),_0x5ba39c=_0x24a4b6[_0x68f1df(0x31d)],_0x4f43f6=_0x570676['m1Prime'];}_0x53ebb0[_0x68f1df(0x22c)]({'undoCache':_0x5bda54,'redoCache':_0x2d61a6});}['_transformPreviousActiveRange'](_0x3a8c9f){const _0x10c922=_0x9e1cf0,{unitID:_0x4e753f}=_0x3a8c9f,_0x5a223b=this[_0x10c922(0x3a9)][_0x10c922(0x24c)](_0x4e753f)[_0x10c922(0x3f5)](_0x43faad['DocIMEInputManagerService']),_0x5ab648=_0x5a223b['getActiveRange']();if(_0x5ab648==null)return;const _0x27bb62=[{'id':_0x10c922(0x56f),'params':{'unitId':_0x3a8c9f[_0x10c922(0x17e)],'actions':null,'textRanges':[_0x5ab648]}}],_0x1085fd=this['_transformService'][_0x10c922(0x267)](_0x3a8c9f,_0x27bb62);if(!_0x24131a[_0x10c922(0x223)](_0x1085fd))throw _0x1085fd[_0x10c922(0x1b9)];const _0x1ea47=_0x1085fd['m2Prime'][0x0][_0x10c922(0x2f0)]['textRanges'];Array['isArray'](_0x1ea47)&&_0x1ea47['length']&&_0x5a223b[_0x10c922(0x357)](_0x1ea47[0x0]);}};_0x482640=_0xfe76c5([_0xf3b2a3(0x0,_0x528f81['Inject'](_0x528f81[_0x9e1cf0(0x4a5)])),_0xf3b2a3(0x1,_0x24131a[_0x9e1cf0(0x2a7)]),_0xf3b2a3(0x2,_0x1e9711[_0x9e1cf0(0x48b)])],_0x482640);var _0x1187b6=Object[_0x9e1cf0(0x188)],_0x56aa2f=Object[_0x9e1cf0(0x484)],_0x550b1c=(_0x23f35c,_0x32a2c0,_0x476ba8,_0x563ccd)=>{const _0x56b48c=_0x9e1cf0;for(var _0x4248ec=_0x563ccd>0x1?void 0x0:_0x563ccd?_0x56aa2f(_0x32a2c0,_0x476ba8):_0x32a2c0,_0x4defd5=_0x23f35c[_0x56b48c(0x4e5)]-0x1,_0x10f37a;_0x4defd5>=0x0;_0x4defd5--)(_0x10f37a=_0x23f35c[_0x4defd5])&&(_0x4248ec=(_0x563ccd?_0x10f37a(_0x32a2c0,_0x476ba8,_0x4248ec):_0x10f37a(_0x4248ec))||_0x4248ec);return _0x563ccd&&_0x4248ec&&_0x1187b6(_0x32a2c0,_0x476ba8,_0x4248ec),_0x4248ec;},_0x5edcdc=(_0x5dffa9,_0x44b66c)=>(_0x482425,_0x869cee)=>_0x44b66c(_0x482425,_0x869cee,_0x5dffa9);_0x54acb7[_0x9e1cf0(0x297)]=class extends _0x528f81['Disposable']{constructor(_0x9ae809,_0x469f9c,_0x506acb,_0x18b129,_0x257e19){const _0x2e8f5a=_0x9e1cf0;super(),_0x2f1a44(this,_0x2e8f5a(0x35b),new Map()),_0x2f1a44(this,'_saveTaskMap',new Map()),_0x2f1a44(this,_0x2e8f5a(0x434),!0x1),(this[_0x2e8f5a(0x2c8)]=_0x9ae809,this['_localStorageService']=_0x469f9c,this[_0x2e8f5a(0x490)]=_0x506acb,this[_0x2e8f5a(0x3cc)]=_0x18b129,this[_0x2e8f5a(0x19f)]=_0x257e19,this[_0x2e8f5a(0x43d)]());}[_0x9e1cf0(0x5b2)](){const _0x1e4b85=_0x9e1cf0;this[_0x1e4b85(0x434)]=!0x0;}[_0x9e1cf0(0x309)](){this['_disabled']=!0x1;}['dispose'](){const _0x1608bf=_0x9e1cf0;this[_0x1608bf(0x302)]()['then'](()=>super[_0x1608bf(0x32c)]());}async[_0x9e1cf0(0x252)](_0x4c94fe){return this['_disabled']?null:this['_localStorageService']['getItem'](_0x3e4a2f(_0x4c94fe));}async['saveOfflineData'](_0x255ae5,_0x3a60de){const _0x2c4403=_0x9e1cf0;return!!this['_localStorageService'][_0x2c4403(0x2d3)](_0x255ae5,_0x3a60de);}['updateOfflineData'](_0x1c544e,_0xabb5e8,_0x3d8eed,_0x556492){const _0x5947bb=_0x9e1cf0,_0x45b357=this[_0x5947bb(0x19f)]['getCurrentRevOfUnit'](_0x1c544e);this['_cachedData'][_0x5947bb(0x35c)](_0x1c544e,{'unitID':_0x1c544e,'type':_0xabb5e8,'awaitingChangeset':_0x3d8eed,'mutations':_0x556492,'rev':_0x45b357}),this['_saveTaskMap']['has'](_0x1c544e)||this['_scheduleSaving'](_0x1c544e);}[_0x9e1cf0(0x550)](_0x4841db){const _0x5476c8=_0x9e1cf0,_0x53f8ad=this[_0x5476c8(0x38b)]();_0x53f8ad===0x0?this['_saveCache'](_0x4841db):this['_saveTaskMap'][_0x5476c8(0x35c)](_0x4841db,setTimeout(()=>this[_0x5476c8(0x356)](_0x4841db),_0x53f8ad));}[_0x9e1cf0(0x38b)](){const _0x477b7f=_0x9e1cf0;var _0x347986;return(_0x347986=this[_0x477b7f(0x2c8)][_0x477b7f(0x33d)](_0x4ca5c9))!=null?_0x347986:0x3e8;}[_0x9e1cf0(0x356)](_0x1cb1ed){const _0x23d16f=_0x9e1cf0,_0x705fed=this['_saveTaskMap'][_0x23d16f(0x3fa)](_0x1cb1ed);return _0x705fed!==void 0x0&&window[_0x23d16f(0x44f)](_0x705fed),this[_0x23d16f(0x47b)][_0x23d16f(0x2d3)](_0x3e4a2f(_0x1cb1ed),this[_0x23d16f(0x35b)][_0x23d16f(0x3fa)](_0x1cb1ed))[_0x23d16f(0x4a7)](()=>this[_0x23d16f(0x479)][_0x23d16f(0x52f)](_0x1cb1ed));}async[_0x9e1cf0(0x302)](){const _0x96fad1=_0x9e1cf0,_0x593259=[];this[_0x96fad1(0x479)][_0x96fad1(0x4af)]((_0x1a8e8f,_0x1451ed)=>{const _0x5b3bd2=_0x96fad1;window[_0x5b3bd2(0x44f)](_0x1a8e8f),_0x593259[_0x5b3bd2(0x202)](this[_0x5b3bd2(0x356)](_0x1451ed)[_0x5b3bd2(0x4a7)](()=>{const _0x538342=_0x5b3bd2;this[_0x538342(0x479)][_0x538342(0x52f)](_0x1451ed);}));}),await Promise[_0x96fad1(0x321)](_0x593259);}[_0x9e1cf0(0x43d)](){const _0x317681=_0x9e1cf0;this[_0x317681(0x17c)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x545528=_0x317681;if(this[_0x545528(0x479)][_0x545528(0x519)])return this[_0x545528(0x3cc)]['t'](_0x545528(0x224));}));}},_0x54acb7['LocalCacheService']=_0x550b1c([_0x5edcdc(0x0,_0x528f81['IConfigService']),_0x5edcdc(0x1,_0x528f81[_0x9e1cf0(0x528)]),_0x5edcdc(0x2,_0x4e4b95[_0x9e1cf0(0x465)]),_0x5edcdc(0x3,_0x528f81[_0x9e1cf0(0x201)](_0x528f81[_0x9e1cf0(0x4b3)])),_0x5edcdc(0x4,_0x528f81[_0x9e1cf0(0x201)](_0x24131a['RevisionService']))],_0x54acb7[_0x9e1cf0(0x297)]);function _0x3e4a2f(_0xf24383){const _0x6370dd=_0x9e1cf0;return _0x6370dd(0x2ea)+_0xf24383;}var _0x52b202=Object[_0x9e1cf0(0x188)],_0x50199b=Object[_0x9e1cf0(0x484)],_0x3477a1=(_0x599743,_0x3c9975,_0x15173c,_0x4eff07)=>{const _0x1a5dcd=_0x9e1cf0;for(var _0x470d20=_0x4eff07>0x1?void 0x0:_0x4eff07?_0x50199b(_0x3c9975,_0x15173c):_0x3c9975,_0x186724=_0x599743[_0x1a5dcd(0x4e5)]-0x1,_0x4e3feb;_0x186724>=0x0;_0x186724--)(_0x4e3feb=_0x599743[_0x186724])&&(_0x470d20=(_0x4eff07?_0x4e3feb(_0x3c9975,_0x15173c,_0x470d20):_0x4e3feb(_0x470d20))||_0x470d20);return _0x4eff07&&_0x470d20&&_0x52b202(_0x3c9975,_0x15173c,_0x470d20),_0x470d20;},_0x48ca86=(_0x19c6d1,_0x537ed3)=>(_0x59799a,_0x20e2a1)=>_0x537ed3(_0x59799a,_0x20e2a1,_0x19c6d1);function _0x438c3b(_0x5a83ea){const _0x71ffd=_0x9e1cf0,{unitID:_0x369681,mutations:_0x383ace}=_0x5a83ea;return{'unitId':_0x369681,'subUnitId':_0x383ace[0x0]['params'][_0x71ffd(0x335)]};}let _0x31a637=class{constructor(_0x5bdaa4,_0x487f1d,_0xcd12c8){const _0x5f37=_0x9e1cf0;this[_0x5f37(0x314)]=_0x5bdaa4,this[_0x5f37(0x467)]=_0x487f1d,this[_0x5f37(0x4d0)]=_0xcd12c8;}[_0x9e1cf0(0x531)](_0x579f43){const _0x353c10=_0x9e1cf0;var _0x41789e,_0x97ebb,_0x4d3511,_0x54f243;const _0x32ebb7=this[_0x353c10(0x314)][_0x353c10(0x3fa)](_0x2b9a61[_0x353c10(0x1ae)]),{unitId:_0x20f959,subUnitId:_0x50de6a}=_0x438c3b(_0x579f43),_0x508e4d=_0x32ebb7[_0x353c10(0x42d)](_0x20f959)['getCurrentSelections'](),_0x4d70ec=(_0x97ebb=(_0x41789e=this[_0x353c10(0x4d0)]['getUnit'](_0x20f959))==null?void 0x0:_0x41789e[_0x353c10(0x26c)]())==null?void 0x0:_0x97ebb['getSheetId']();if(_0x508e4d[_0x353c10(0x4e5)]===0x0||!_0x20f959||!_0x50de6a)return;const _0x1e7e30=[{'id':_0x2b9a61[_0x353c10(0x462)]['id'],'params':{'unitId':_0x20f959,'subUnitId':_0x4d70ec,'selections':_0x528f81['Tools'][_0x353c10(0x49e)](_0x508e4d)}}],_0x3dcd59=this[_0x353c10(0x467)][_0x353c10(0x267)](_0x579f43,_0x1e7e30);if(!_0x24131a[_0x353c10(0x223)](_0x3dcd59))throw _0x3dcd59[_0x353c10(0x1b9)];const _0xfdacad=(_0x54f243=(_0x4d3511=_0x3dcd59[_0x353c10(0x3ba)][0x0])==null?void 0x0:_0x4d3511[_0x353c10(0x2f0)])==null?void 0x0:_0x54f243[_0x353c10(0x2ce)];if(Array['isArray'](_0xfdacad)&&_0xfdacad[_0x353c10(0x4e5)]){if(_0xfdacad[_0x353c10(0x4e5)]===_0x1e7e30[0x0][_0x353c10(0x2f0)][_0x353c10(0x2ce)]['length']&&_0xfdacad[_0x353c10(0x33f)]((_0x4049b9,_0xc741f6)=>_0x528f81['Rectangle']['equals'](_0x4049b9[_0x353c10(0x3ca)],_0x1e7e30[0x0]['params'][_0x353c10(0x2ce)][_0xc741f6]['range'])))return;this['_injector'][_0x353c10(0x3fa)](_0x528f81[_0x353c10(0x54f)])[_0x353c10(0x406)](_0x2b9a61[_0x353c10(0x462)]['id'],{'unitId':_0x20f959,'subUnitId':_0x4d70ec,'selections':_0xfdacad});}}};_0x31a637=_0x3477a1([_0x48ca86(0x0,_0x528f81['Inject'](_0x528f81[_0x9e1cf0(0x4a5)])),_0x48ca86(0x1,_0x24131a[_0x9e1cf0(0x2a7)]),_0x48ca86(0x2,_0x528f81[_0x9e1cf0(0x57f)])],_0x31a637);const _0x5c5006=_0x528f81[_0x9e1cf0(0x553)](_0x9e1cf0(0x5ba));var _0x31385e=(_0x3a8507=>(_0x3a8507[_0x3a8507[_0x9e1cf0(0x1d9)]=0x0]=_0x9e1cf0(0x1d9),_0x3a8507[_0x3a8507[_0x9e1cf0(0x1ab)]=0x1]=_0x9e1cf0(0x1ab),_0x3a8507))(_0x31385e||{});const _0x5cae0c=0x7530,_0x608031='ACTIVE_UNIT_EVENT_CHANNEL';class _0x26afb3 extends _0x528f81[_0x9e1cf0(0x255)]{constructor(){const _0x4a2a6a=_0x9e1cf0;super(),_0x2f1a44(this,'_id',_0x528f81[_0x4a2a6a(0x33c)][_0x4a2a6a(0x2d7)]()),_0x2f1a44(this,_0x4a2a6a(0x2c0),new Set()),_0x2f1a44(this,_0x4a2a6a(0x3e2),new Map()),_0x2f1a44(this,'_heartbeatTimer',null),_0x2f1a44(this,_0x4a2a6a(0x1a9),new Map()),_0x2f1a44(this,'_unitStatus',new Map()),this[_0x4a2a6a(0x37b)]();}[_0x9e1cf0(0x32c)](){const _0xce3445=_0x9e1cf0;super[_0xce3445(0x32c)](),this[_0xce3445(0x1a9)][_0xce3445(0x4af)]((_0xc0838a,_0x52fc51)=>this['_removeClearOtherTimer'](_0x52fc51)),this[_0xce3445(0x279)]&&window[_0xce3445(0x26f)](this[_0xce3445(0x279)]);}[_0x9e1cf0(0x3be)](_0x4d9671){const _0x29fcbe=_0x9e1cf0;return this[_0x29fcbe(0x419)](_0x4d9671)[_0x29fcbe(0x4ff)](_0x45efe7[_0x29fcbe(0x547)]());}[_0x9e1cf0(0x234)](_0x435640){const _0x55aed7=_0x9e1cf0;this[_0x55aed7(0x2c0)][_0x55aed7(0x519)]===0x0&&this[_0x55aed7(0x530)](),this[_0x55aed7(0x2c0)][_0x55aed7(0x2a1)](_0x435640),this['_send']({'type':0x0,'memberID':this[_0x55aed7(0x551)],'unitIDs':[_0x435640],'isForwarded':!0x1});}['disposeUnit'](_0x11c430){const _0x192a78=_0x9e1cf0;this[_0x192a78(0x2c0)][_0x192a78(0x52f)](_0x11c430),this[_0x192a78(0x2c0)]['size']===0x0&&this[_0x192a78(0x279)]&&window[_0x192a78(0x26f)](this[_0x192a78(0x279)]);}[_0x9e1cf0(0x37b)](){const _0x59b5de=_0x9e1cf0;this[_0x59b5de(0x17c)](_0x528f81[_0x59b5de(0x4b2)](_0x45efe7[_0x59b5de(0x253)](window,'storage')[_0x59b5de(0x24b)](_0xde6637=>{const _0xb6dfca=_0x59b5de;if(_0xde6637['key']!==_0x608031||!_0xde6637['newValue'])return;const _0x266408=JSON[_0xb6dfca(0x584)](_0xde6637[_0xb6dfca(0x362)]);this[_0xb6dfca(0x237)](_0x266408);}))),window[_0x59b5de(0x457)]('unload',()=>this[_0x59b5de(0x2e8)]({'type':0x1,'memberID':this[_0x59b5de(0x551)],'unitIDs':Array[_0x59b5de(0x250)](this['_selfUnitIDs'])}));}[_0x9e1cf0(0x237)](_0x5e7acb){const _0xbdc2f6=_0x9e1cf0;switch(_0x5e7acb['type']){case 0x0:this['_handleJoinEvent'](_0x5e7acb);break;case 0x1:this[_0xbdc2f6(0x42a)](_0x5e7acb);break;case 0x2:this['_handleHeartbeatEvent'](_0x5e7acb);break;}}[_0x9e1cf0(0x365)](_0xf141e1){const _0x46c09d=_0x9e1cf0,{unitIDs:_0x448c78,memberID:_0x677710,isForwarded:_0x36bdd4}=_0xf141e1;_0x448c78[_0x46c09d(0x4af)](_0x10d081=>{const _0x535b0a=_0x46c09d;if(!_0x36bdd4&&this[_0x535b0a(0x3e2)][_0x535b0a(0x54b)](_0x10d081)&&this['_ensureSubject'](_0x10d081)[_0x535b0a(0x542)](0x1),!this[_0x535b0a(0x3e2)][_0x535b0a(0x54b)](_0x10d081)||!this[_0x535b0a(0x3e2)][_0x535b0a(0x3fa)](_0x10d081)['has'](_0x677710)){const _0x36ec2d=this[_0x535b0a(0x3e2)][_0x535b0a(0x3fa)](_0x10d081)||new Set();_0x36ec2d[_0x535b0a(0x2a1)](_0x677710),this['_unitOnClients']['set'](_0x10d081,_0x36ec2d),this[_0x535b0a(0x4fb)](_0x677710);}}),_0x36bdd4||this['_send']({'type':0x0,'memberID':this[_0x46c09d(0x551)],'unitIDs':[...this[_0x46c09d(0x2c0)]],'isForwarded':!0x0});}[_0x9e1cf0(0x4fb)](_0x4efe25){const _0x47387a=_0x9e1cf0;this[_0x47387a(0x2f9)](_0x4efe25);const _0x44ed5e=window[_0x47387a(0x2ee)](()=>{const _0x566c15=_0x47387a;this[_0x566c15(0x3e2)][_0x566c15(0x4af)](_0x2e3bc2=>{const _0x4bb0e6=_0x566c15;_0x2e3bc2[_0x4bb0e6(0x52f)](_0x4efe25);});},_0x5cae0c*0x2);this[_0x47387a(0x1a9)]['set'](_0x4efe25,_0x44ed5e);}[_0x9e1cf0(0x2f9)](_0x29d4fd){const _0x13e3bd=_0x9e1cf0;if(this['_clearOtherTimers'][_0x13e3bd(0x54b)](_0x29d4fd)){const _0x176452=this[_0x13e3bd(0x1a9)][_0x13e3bd(0x3fa)](_0x29d4fd);_0x176452&&window['clearTimeout'](_0x176452),this[_0x13e3bd(0x1a9)][_0x13e3bd(0x35c)](_0x29d4fd,null);}}[_0x9e1cf0(0x42a)](_0x3fbd92){const _0x1cae69=_0x9e1cf0,{memberID:_0x37ed1d,unitIDs:_0x480521}=_0x3fbd92;_0x480521['forEach'](_0x4a2528=>{const _0x4dbb5b=_0x2385;var _0x32bdd7;const _0x22c49a=this['_unitOnClients'][_0x4dbb5b(0x3fa)](_0x4a2528);_0x22c49a&&(_0x22c49a[_0x4dbb5b(0x52f)](_0x37ed1d),(_0x32bdd7=this['_ensureSubject'](_0x4a2528))==null||_0x32bdd7[_0x4dbb5b(0x542)](_0x22c49a[_0x4dbb5b(0x519)]===0x0?0x0:0x1));}),this[_0x1cae69(0x2f9)](_0x37ed1d);}[_0x9e1cf0(0x40b)](_0x2c0195){const _0x3887a0=_0x9e1cf0;this['_scheduleClearOtherTimer'](_0x2c0195[_0x3887a0(0x3fe)]);}[_0x9e1cf0(0x2e8)](_0x4e5ba3){const _0x13996d=_0x9e1cf0;localStorage[_0x13996d(0x2d3)](_0x608031,JSON['stringify'](_0x4e5ba3));}['_scheduleHeartbeat'](){const _0x57f510=_0x9e1cf0;this[_0x57f510(0x279)]=window[_0x57f510(0x1c0)](()=>{const _0x46058b=_0x57f510;this[_0x46058b(0x2e8)]({'type':0x2,'memberID':this[_0x46058b(0x551)]});},_0x5cae0c);}['_ensureSubject'](_0x443508){const _0x25991d=_0x9e1cf0;return this[_0x25991d(0x513)][_0x25991d(0x54b)](_0x443508)||this[_0x25991d(0x513)][_0x25991d(0x35c)](_0x443508,new _0x45efe7['BehaviorSubject'](0x0)),this[_0x25991d(0x513)][_0x25991d(0x3fa)](_0x443508);}}function _0x4cd343(_0x5dd816){const _0x26b3ad=_0x9e1cf0;let _0x59e094='';for(const _0x43ef27 of _0x5dd816){const {startOffset:_0x516077,endOffset:_0x32477e,isActive:_0x3fc468}=_0x43ef27;_0x59e094[_0x26b3ad(0x4e5)]&&(_0x59e094+=','),_0x59e094+=_0x516077+':'+_0x32477e+':'+(_0x3fc468?'1':'0');}return _0x59e094;}function _0x10549a(_0x57f0b4){const _0x5c0eb3=_0x9e1cf0,_0x273ac2=_0x57f0b4[_0x5c0eb3(0x45c)](','),_0x2b0587=[];for(const _0x5afd22 of _0x273ac2){const [_0x8ecca1,_0xad0ff1,_0x20ad63]=_0x5afd22[_0x5c0eb3(0x45c)](':');_0x2b0587[_0x5c0eb3(0x202)]({'startOffset':Number(_0x8ecca1),'endOffset':Number(_0xad0ff1),'collapsed':_0x8ecca1===_0xad0ff1,'isActive':_0x20ad63==='1'});}return _0x2b0587[_0x5c0eb3(0x1a1)](_0x4e6278=>_0x4e6278[_0x5c0eb3(0x3da)])||(_0x2b0587[0x0][_0x5c0eb3(0x3da)]=!0x0),_0x2b0587;}class _0x33d78d extends _0x528f81[_0x9e1cf0(0x3c2)]{constructor(){const _0x4bfc19=_0x9e1cf0;super(...arguments),_0x2f1a44(this,_0x4bfc19(0x2b6),new _0x45efe7[(_0x4bfc19(0x500))](null)),_0x2f1a44(this,_0x4bfc19(0x55a),this['_collabCursorState$'][_0x4bfc19(0x518)]());}['syncEditingCollabCursor'](_0x48c920){const _0x346de5=_0x9e1cf0,{unitID:_0x31578b,memberID:_0x4cefc3,textRanges:_0x9c18e3}=_0x48c920,_0x11315a=_0x4cd343(_0x9c18e3),_0x4f88d1={'unitID':_0x31578b,'memberID':_0x4cefc3,'selection':_0x11315a};this[_0x346de5(0x2b6)]['next'](_0x4f88d1);}}var _0x5127d1=Object['defineProperty'],_0x356a9c=Object[_0x9e1cf0(0x484)],_0xa70f7=(_0x4d9943,_0x3a6f23,_0x47e71f,_0x5227cc)=>{for(var _0x3cf663=_0x5227cc>0x1?void 0x0:_0x5227cc?_0x356a9c(_0x3a6f23,_0x47e71f):_0x3a6f23,_0x4c146d=_0x4d9943['length']-0x1,_0x3bc16c;_0x4c146d>=0x0;_0x4c146d--)(_0x3bc16c=_0x4d9943[_0x4c146d])&&(_0x3cf663=(_0x5227cc?_0x3bc16c(_0x3a6f23,_0x47e71f,_0x3cf663):_0x3bc16c(_0x3cf663))||_0x3cf663);return _0x5227cc&&_0x3cf663&&_0x5127d1(_0x3a6f23,_0x47e71f,_0x3cf663),_0x3cf663;},_0xc9d466=(_0x4a4cbe,_0x41ee70)=>(_0x4c232b,_0x38c7f7)=>_0x41ee70(_0x4c232b,_0x38c7f7,_0x4a4cbe);let _0x533631=class{constructor(_0x12e4b7,_0xb6735a){const _0x2a30c1=_0x9e1cf0;this[_0x2a30c1(0x314)]=_0x12e4b7,this[_0x2a30c1(0x467)]=_0xb6735a;}[_0x9e1cf0(0x531)](_0x4836f9){const _0x3cc29a=_0x9e1cf0;var _0x15d27e;const _0x3b5840=this[_0x3cc29a(0x314)][_0x3cc29a(0x3fa)](_0x5a172a[_0x3cc29a(0x5af)]),_0x11ecfa=(_0x15d27e=_0x3b5840[_0x3cc29a(0x20a)]())!=null?_0x15d27e:[];if(_0x11ecfa[_0x3cc29a(0x4e5)]===0x0)return;const _0x3e5fc2=[{'id':_0x3cc29a(0x56f),'params':{'unitId':_0x4836f9[_0x3cc29a(0x17e)],'actions':null,'textRanges':_0x11ecfa}}],_0x56c834=this[_0x3cc29a(0x467)]['transformMutationsWithChangeset'](_0x4836f9,_0x3e5fc2);if(!_0x24131a[_0x3cc29a(0x223)](_0x56c834))throw _0x56c834[_0x3cc29a(0x1b9)];const _0x12abe8=_0x56c834['m2Prime'][0x0]['params'][_0x3cc29a(0x172)];Array[_0x3cc29a(0x51d)](_0x12abe8)&&_0x12abe8[_0x3cc29a(0x4e5)]&&_0x3b5840[_0x3cc29a(0x1fb)](_0x12abe8,!0x1);}};_0x533631=_0xa70f7([_0xc9d466(0x0,_0x528f81[_0x9e1cf0(0x201)](_0x528f81[_0x9e1cf0(0x4a5)])),_0xc9d466(0x1,_0x24131a[_0x9e1cf0(0x2a7)])],_0x533631);const _0x5e2223=new Set([_0x2b9a61[_0x9e1cf0(0x38a)]['id']]);function _0x3c0a95(_0xb3544d,_0x14dc2e,_0x3b3df6,_0x3d89aa,_0x551f66){const _0x49a2a2=_0x9e1cf0;var _0x1f1b44,_0x12cb80,_0xba7e9d,_0x5480b6;const _0x30503e=[];for(const _0x5ef856 of _0xb3544d)if(_0x5e2223[_0x49a2a2(0x54b)](_0x5ef856['id'])){if(_0x30503e[_0x49a2a2(0x4e5)]>0x0)break;_0x30503e[_0x49a2a2(0x202)](_0x5ef856);break;}else _0x30503e['push'](_0x5ef856);const _0x5c00cb=(_0x12cb80=(_0x1f1b44=_0x551f66[_0x49a2a2(0x1ba)]())==null?void 0x0:_0x1f1b44[_0x49a2a2(0x509)])!=null?_0x12cb80:_0x49a2a2(0x4f4),_0x6df97c=(_0x5480b6=(_0xba7e9d=_0x551f66[_0x49a2a2(0x1ba)]())==null?void 0x0:_0xba7e9d[_0x49a2a2(0x3fe)])!=null?_0x5480b6:'unknown';return{'changeset':{'unitID':_0x14dc2e,'type':_0x24131a[_0x49a2a2(0x554)](_0x3b3df6[_0x49a2a2(0x32a)](_0x14dc2e)),'baseRev':_0x3d89aa['getCurrentRevOfUnit'](_0x14dc2e),'revision':0x0,'userID':_0x5c00cb,'memberID':_0x6df97c,'mutations':_0x30503e},'pendingMutations':_0xb3544d[_0x49a2a2(0x566)](_0x30503e[_0x49a2a2(0x4e5)])};}function _0xbbe290(_0x567b2f,_0x3dad59,_0x36d18a,_0x24e5f7,_0xe596a){const _0x40ffaf=_0x9e1cf0;var _0x17b6c1,_0x3cdb01,_0x28d830,_0x2bd231;const _0x253b09=[_0x567b2f[_0x40ffaf(0x37f)]((_0x223c02,_0x4fecee)=>{const _0x54e12b=_0x40ffaf;var _0xda7502;const {id:_0x3db844}=_0x223c02,{id:_0xb0079d,type:_0xb7c7b6}=_0x4fecee,_0x4872c5=(_0xda7502=_0x223c02['params'])!=null?_0xda7502:{'actions':null},_0x2946f8=_0x4fecee[_0x54e12b(0x2f0)];if(_0x3db844&&_0x3db844!==_0xb0079d)throw new Error(_0x54e12b(0x2b5)+_0x3db844+_0x54e12b(0x53c)+_0xb0079d+'.');return{..._0x223c02,'id':_0xb0079d,'type':_0xb7c7b6,'params':{'unitId':_0x2946f8[_0x54e12b(0x4c0)],'textRanges':_0x2946f8[_0x54e12b(0x172)],'actions':_0x528f81[_0x54e12b(0x4c9)][_0x54e12b(0x215)](_0x4872c5[_0x54e12b(0x3ad)],_0x2946f8['actions'])}};},{})],_0x4a0f38=(_0x3cdb01=(_0x17b6c1=_0xe596a[_0x40ffaf(0x1ba)]())==null?void 0x0:_0x17b6c1['userID'])!=null?_0x3cdb01:_0x40ffaf(0x4f4),_0x5c5f3f=(_0x2bd231=(_0x28d830=_0xe596a[_0x40ffaf(0x1ba)]())==null?void 0x0:_0x28d830[_0x40ffaf(0x3fe)])!=null?_0x2bd231:_0x40ffaf(0x4f4);return{'changeset':{'unitID':_0x3dad59,'type':_0x24131a[_0x40ffaf(0x554)](_0x36d18a[_0x40ffaf(0x32a)](_0x3dad59)),'baseRev':_0x24e5f7[_0x40ffaf(0x2e3)](_0x3dad59),'revision':0x0,'userID':_0x4a0f38,'memberID':_0x5c5f3f,'mutations':_0x253b09},'pendingMutations':[]};}const _0xff03b9={'id':_0x2b9a61[_0x9e1cf0(0x2e0)]['id'],'type':_0x528f81[_0x9e1cf0(0x272)][_0x9e1cf0(0x211)],'params':{}};var _0x5b64c7=Object[_0x9e1cf0(0x188)],_0xd6dd3b=Object[_0x9e1cf0(0x484)],_0x51d991=(_0x80ea0d,_0x38d620,_0x5e7439,_0x1160fc)=>{const _0x421885=_0x9e1cf0;for(var _0x46f0df=_0x1160fc>0x1?void 0x0:_0x1160fc?_0xd6dd3b(_0x38d620,_0x5e7439):_0x38d620,_0x14de68=_0x80ea0d[_0x421885(0x4e5)]-0x1,_0x4294a5;_0x14de68>=0x0;_0x14de68--)(_0x4294a5=_0x80ea0d[_0x14de68])&&(_0x46f0df=(_0x1160fc?_0x4294a5(_0x38d620,_0x5e7439,_0x46f0df):_0x4294a5(_0x46f0df))||_0x46f0df);return _0x1160fc&&_0x46f0df&&_0x5b64c7(_0x38d620,_0x5e7439,_0x46f0df),_0x46f0df;},_0x13d018=(_0x3f0903,_0x50a65a)=>(_0x48875a,_0x54ea8a)=>_0x50a65a(_0x48875a,_0x54ea8a,_0x3f0903),_0x3fa463=(_0x337b6c=>(_0x337b6c[_0x9e1cf0(0x3c6)]=_0x9e1cf0(0x508),_0x337b6c[_0x9e1cf0(0x5a7)]=_0x9e1cf0(0x2f1),_0x337b6c['PENDING']=_0x9e1cf0(0x329),_0x337b6c[_0x9e1cf0(0x4ba)]=_0x9e1cf0(0x34e),_0x337b6c[_0x9e1cf0(0x3c5)]=_0x9e1cf0(0x4ad),_0x337b6c[_0x9e1cf0(0x2b7)]=_0x9e1cf0(0x3b8),_0x337b6c[_0x9e1cf0(0x3c8)]=_0x9e1cf0(0x555),_0x337b6c[_0x9e1cf0(0x269)]=_0x9e1cf0(0x45e),_0x337b6c))(_0x3fa463||{});class _0x3bc216{constructor(_0x5bf715,_0x208a41,_0x13bac7,_0x564c2b,_0x1ce8fe,_0x224a17,_0x4ed5f4,_0x2b478a,_0x54c25e){const _0x229d66=_0x9e1cf0;_0x2f1a44(this,_0x229d66(0x343),null),_0x2f1a44(this,_0x229d66(0x2c5),[]),(this[_0x229d66(0x17e)]=_0x5bf715,this[_0x229d66(0x5b7)]=_0x208a41,this[_0x229d66(0x20c)]=_0x1ce8fe,this[_0x229d66(0x58a)]=_0x224a17,this[_0x229d66(0x24d)]=_0x4ed5f4,this[_0x229d66(0x19f)]=_0x2b478a,this[_0x229d66(0x438)]=_0x54c25e,this[_0x229d66(0x343)]=_0x13bac7,this[_0x229d66(0x2c5)]=_0x564c2b);}['_checkMissing'](_0x4bf2a1){const _0x425919=_0x9e1cf0,_0x5d4aeb=this[_0x425919(0x19f)]['getCurrentRevOfUnit'](this[_0x425919(0x17e)]);return _0x4bf2a1[_0x425919(0x397)]>_0x5d4aeb+0x1?(this['_handler'][_0x425919(0x4ea)]({'from':_0x5d4aeb,'to':_0x4bf2a1[_0x425919(0x397)]-0x1}),!0x0):!0x1;}[_0x9e1cf0(0x3cb)](_0x628897){const _0x4b61df=_0x9e1cf0;this[_0x4b61df(0x24d)][_0x4b61df(0x498)](this[_0x4b61df(0x17e)],_0x628897);}[_0x9e1cf0(0x19e)](_0x52d4b7){const _0x1aa060=_0x9e1cf0;var _0x431d6c,_0x569c52;(_0x569c52=(_0x431d6c=this['_handler'])[_0x1aa060(0x4d9)])==null||_0x569c52[_0x1aa060(0x1af)](_0x431d6c,_0x52d4b7);}[_0x9e1cf0(0x242)](_0x59a634){const _0x261d8f=_0x9e1cf0;var _0x4bf18c,_0x24567d;return(_0x24567d=(_0x4bf18c=this[_0x261d8f(0x20c)])[_0x261d8f(0x4e7)])==null?void 0x0:_0x24567d[_0x261d8f(0x1af)](_0x4bf18c,_0x59a634);}['_transformRemoteChangesetByIMECache'](_0xdde723){const _0xaf0a9c=_0x9e1cf0;var _0x47a94b,_0x12448d,_0x3d2b9c;return(_0x3d2b9c=(_0x12448d=(_0x47a94b=this[_0xaf0a9c(0x20c)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x12448d[_0xaf0a9c(0x1af)](_0x47a94b,_0xdde723))!=null?_0x3d2b9c:_0xdde723;}[_0x9e1cf0(0x52b)](_0x17a1df){const _0x14685e=_0x9e1cf0;var _0x1ddf6d,_0x2710e7;if(this[_0x14685e(0x5b7)]===_0x23035c[_0x14685e(0x4aa)]){const {unitID:_0x5af7a7,mutations:_0x2816c1,memberID:_0x1d01ed}=_0x17a1df,_0x100316=_0x2816c1[0x0][_0x14685e(0x2f0)][_0x14685e(0x172)];Array['isArray'](_0x100316)&&_0x100316[_0x14685e(0x4e5)]>0x0&&((_0x2710e7=(_0x1ddf6d=this[_0x14685e(0x20c)])[_0x14685e(0x392)])==null||_0x2710e7['call'](_0x1ddf6d,{'unitID':_0x5af7a7,'memberID':_0x1d01ed,'textRanges':_0x100316}));}}[_0x9e1cf0(0x1dd)](){const _0x98b6a2=_0x9e1cf0;this[_0x98b6a2(0x438)][_0x98b6a2(0x433)](this['unitID'],this[_0x98b6a2(0x5b7)],this['_awaitingChangeset'],this[_0x98b6a2(0x2c5)]);}[_0x9e1cf0(0x300)](){const _0x47df99=_0x9e1cf0;return this['_revisionService'][_0x47df99(0x2e3)](this[_0x47df99(0x17e)]);}[_0x9e1cf0(0x1c3)](){const _0x39a820=_0x9e1cf0;this[_0x39a820(0x19f)][_0x39a820(0x1b5)](this['unitID']);}['_executeRemoteChangeset'](_0x1d50c0){const _0x5bda71=_0x9e1cf0;var _0x1d6f8d;const _0x22d908=this[_0x5bda71(0x578)](_0x1d50c0),_0x36c79c=_0x528f81[_0x5bda71(0x37e)](_0x22d908['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x36c79c[_0x5bda71(0x42f)])throw _0x36c79c['error']instanceof Error?_0x36c79c['error']:new Error((_0x1d6f8d=_0x36c79c[_0x5bda71(0x1b9)])!=null?_0x1d6f8d:_0x5bda71(0x221));this[_0x5bda71(0x242)](_0x22d908),this[_0x5bda71(0x3cb)](_0x1d50c0),this[_0x5bda71(0x19e)](_0x22d908),this[_0x5bda71(0x52b)](_0x22d908),this['_incrementRevisionNumber']();}}let _0xb426fd=class extends _0x3bc216{constructor(_0x78534e,_0xe7ef03,_0x4f7631,_0x28fcf3,_0x4c4ef8,_0x223563,_0x377aa1,_0xaa0b2e,_0x5603d5,_0x5d2ddb){const _0x2fdc51=_0x9e1cf0;super(_0x78534e,_0xe7ef03,null,[],_0x4f7631,_0xaa0b2e,_0x377aa1,_0x28fcf3,_0x4c4ef8),_0x2f1a44(this,_0x2fdc51(0x43f),'synced'),(this['_injector']=_0x223563,this[_0x2fdc51(0x186)]=_0x5603d5,this['_transformService']=_0x5d2ddb);}[_0x9e1cf0(0x216)](_0x27a801){const _0x49f526=_0x9e1cf0,_0x45e893=this[_0x49f526(0x314)][_0x49f526(0x3b5)](_0x233585,this[_0x49f526(0x17e)],this[_0x49f526(0x5b7)],[_0x27a801],this[_0x49f526(0x20c)]);return _0x45e893[_0x49f526(0x1e0)](),_0x45e893[_0x49f526(0x1dd)](),_0x45e893;}[_0x9e1cf0(0x34a)](_0x23aad5){const _0x3a1434=_0x9e1cf0;if(this[_0x3a1434(0x174)](_0x23aad5))return this[_0x3a1434(0x314)][_0x3a1434(0x3b5)](_0x448470,this[_0x3a1434(0x17e)],this['type'],null,[],null,[_0x23aad5],this[_0x3a1434(0x20c)]);try{const _0x5ae775=this[_0x3a1434(0x467)][_0x3a1434(0x267)](_0x23aad5,[_0xff03b9]);if(_0x24131a[_0x3a1434(0x223)](_0x5ae775)){const {c1Prime:_0x2b8a6d}=_0x5ae775;return this[_0x3a1434(0x450)](_0x2b8a6d),this;}throw _0x5ae775['error'];}catch(_0x5a16fd){return this[_0x3a1434(0x186)][_0x3a1434(0x1b9)](_0x5a16fd),this['_onConflict'](!0x1);}}[_0x9e1cf0(0x559)](_0x28f1d4){const _0x9d6a00=_0x9e1cf0;return this[_0x9d6a00(0x314)][_0x9d6a00(0x3b5)](_0x35774b,this['unitID'],this['type'],null,[],this[_0x9d6a00(0x20c)],_0x28f1d4);}[_0x9e1cf0(0x540)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x9e1cf0(0x21c)](){const _0xe19ca4=_0x9e1cf0;throw new Error(_0xe19ca4(0x532));}[_0x9e1cf0(0x40c)](){const _0x2f4aba=_0x9e1cf0;return this[_0x2f4aba(0x314)]['createInstance'](_0x21f035,this['unitID'],this[_0x2f4aba(0x5b7)],null,[],this[_0x2f4aba(0x20c)]);}[_0x9e1cf0(0x3a6)](){return this;}[_0x9e1cf0(0x430)](){const _0x580d4e=_0x9e1cf0;throw new Error(_0x580d4e(0x59f));}[_0x9e1cf0(0x523)](){const _0x25db1a=_0x9e1cf0,_0x6fbc11=this[_0x25db1a(0x19f)]['getCurrentRevOfUnit'](this[_0x25db1a(0x17e)]);return this[_0x25db1a(0x20c)][_0x25db1a(0x4ea)]({'from':_0x6fbc11,'to':0x0}),this[_0x25db1a(0x314)][_0x25db1a(0x3b5)](_0x448470,this['unitID'],this[_0x25db1a(0x5b7)],null,[],null,[],this['_handler']);}};_0xb426fd=_0x51d991([_0x13d018(0x3,_0x528f81['Inject'](_0x24131a[_0x9e1cf0(0x402)])),_0x13d018(0x4,_0x528f81[_0x9e1cf0(0x201)](_0x54acb7['LocalCacheService'])),_0x13d018(0x5,_0x528f81[_0x9e1cf0(0x201)](_0x528f81[_0x9e1cf0(0x4a5)])),_0x13d018(0x6,_0x528f81[_0x9e1cf0(0x3e9)]),_0x13d018(0x7,_0x528f81[_0x9e1cf0(0x54f)]),_0x13d018(0x8,_0x528f81[_0x9e1cf0(0x360)]),_0x13d018(0x9,_0x24131a['ITransformService'])],_0xb426fd);let _0x233585=class extends _0x3bc216{constructor(_0x45b4aa,_0x14ad3c,_0x1246b3,_0x4ae35f,_0x37d4a0,_0x4f06ec,_0x4ba6b0,_0x2aa0c9,_0x4fc8ff,_0x37071c,_0x29b45c,_0x8dcaf2,_0x3f5bfc,_0xb7207b){const _0x359525=_0x9e1cf0;super(_0x45b4aa,_0x14ad3c,null,_0x1246b3,_0x4ae35f,_0x37071c,_0xb7207b,_0x4f06ec,_0x4ba6b0),_0x2f1a44(this,'status',_0x359525(0x329)),_0x2f1a44(this,'_scheduleTimestamp',null),_0x2f1a44(this,_0x359525(0x25b),null),(this['_injector']=_0x37d4a0,this[_0x359525(0x22a)]=_0x2aa0c9,this[_0x359525(0x186)]=_0x4fc8ff,this[_0x359525(0x2c8)]=_0x29b45c,this[_0x359525(0x467)]=_0x8dcaf2,this[_0x359525(0x48d)]=_0x3f5bfc);}[_0x9e1cf0(0x216)](_0x23a54c){const _0x8de511=_0x9e1cf0;return this[_0x8de511(0x2c5)][_0x8de511(0x202)](_0x23a54c),this[_0x8de511(0x1dd)](),this;}[_0x9e1cf0(0x34a)](_0xca15d1){const _0x1078c1=_0x9e1cf0;if(this[_0x1078c1(0x174)](_0xca15d1))return this['_clearScheduledTask'](),this['_injector'][_0x1078c1(0x3b5)](_0x448470,this[_0x1078c1(0x17e)],this['type'],null,this[_0x1078c1(0x2c5)],null,[_0xca15d1],this[_0x1078c1(0x20c)]);try{const _0x30b3dc=this[_0x1078c1(0x467)][_0x1078c1(0x267)](_0xca15d1,this[_0x1078c1(0x2c5)]);if(_0x24131a[_0x1078c1(0x223)](_0x30b3dc)){const {c1Prime:_0xcd1d12,m2Prime:_0x16e700}=_0x30b3dc;this[_0x1078c1(0x450)](_0xcd1d12);const _0xe52404=this[_0x1078c1(0x314)][_0x1078c1(0x3b5)](_0x233585,this[_0x1078c1(0x17e)],this[_0x1078c1(0x5b7)],_0x16e700,this[_0x1078c1(0x20c)]);return this[_0x1078c1(0x326)](),_0xe52404[_0x1078c1(0x1e0)](this[_0x1078c1(0x310)]?Math['max'](0x0,new Date()[_0x1078c1(0x214)]()-this['_scheduleTimestamp']):this[_0x1078c1(0x517)]()),_0xe52404;}throw _0x30b3dc[_0x1078c1(0x1b9)];}catch(_0x49a57e){return this['_logService'][_0x1078c1(0x1b9)](_0x49a57e),this[_0x1078c1(0x559)](!0x1);}}[_0x9e1cf0(0x540)](){const _0x400a51=_0x9e1cf0;throw new Error(_0x400a51(0x597));}[_0x9e1cf0(0x21c)](){const _0x50ef1d=_0x9e1cf0;throw new Error(_0x50ef1d(0x3e4));}['toggleOffline'](){const _0x4268f4=_0x9e1cf0;return this[_0x4268f4(0x326)](),this['_injector'][_0x4268f4(0x3b5)](_0x21f035,this[_0x4268f4(0x17e)],this[_0x4268f4(0x5b7)],null,this[_0x4268f4(0x2c5)],this[_0x4268f4(0x20c)]);}[_0x9e1cf0(0x3a6)](){return this;}[_0x9e1cf0(0x1e0)](_0x5f7652){const _0x2db6fa=_0x9e1cf0,_0xe9d575=_0x5f7652!=null?_0x5f7652:this[_0x2db6fa(0x517)]();this['_scheduleTimestamp']=new Date()[_0x2db6fa(0x214)](),this['_sendingTimer']=window[_0x2db6fa(0x2ee)](()=>{const _0x2625e3=_0x2db6fa;this[_0x2625e3(0x326)]();let _0x255829=null;switch(this[_0x2625e3(0x5b7)]){case _0x23035c[_0x2625e3(0x488)]:{_0x255829=_0x3c0a95(this['_pendingMutations'],this[_0x2625e3(0x17e)],this[_0x2625e3(0x48d)],this[_0x2625e3(0x19f)],this['_memberService']);break;}case _0x23035c[_0x2625e3(0x4aa)]:{this['_pendingMutations'][_0x2625e3(0x33f)](_0x4d419d=>_0x4d419d['id']===_0x5a172a[_0x2625e3(0x4b5)]['id'])?_0x255829=_0xbbe290(this[_0x2625e3(0x2c5)],this[_0x2625e3(0x17e)],this['_univerInstanceService'],this[_0x2625e3(0x19f)],this[_0x2625e3(0x22a)]):_0x255829=_0x3c0a95(this['_pendingMutations'],this['unitID'],this[_0x2625e3(0x48d)],this['_revisionService'],this['_memberService']);break;}default:throw new Error(_0x2625e3(0x449)+this[_0x2625e3(0x5b7)]+_0x2625e3(0x227));}const {changeset:_0x642542,pendingMutations:_0x1b865d}=_0x255829;this['_handler'][_0x2625e3(0x3ff)](_0x642542);const _0x13a3f1=_0x1b865d['length']?this['_injector']['createInstance'](_0x218196,this[_0x2625e3(0x17e)],this[_0x2625e3(0x5b7)],_0x642542,_0x1b865d,this[_0x2625e3(0x20c)]):this[_0x2625e3(0x314)][_0x2625e3(0x3b5)](_0x5a9631,this[_0x2625e3(0x17e)],this[_0x2625e3(0x5b7)],_0x642542,this[_0x2625e3(0x20c)]);_0x13a3f1['_updateLocalCache'](),this[_0x2625e3(0x20c)][_0x2625e3(0x57b)](this,_0x13a3f1);},_0xe9d575);}[_0x9e1cf0(0x517)](){const _0x4c87a8=_0x9e1cf0;var _0x2779b9;const _0x54abe0=this[_0x4c87a8(0x2c8)]['getConfig'](_0x9e8977);return(_0x2779b9=_0x54abe0==null?void 0x0:_0x54abe0[_0x4c87a8(0x1bb)])!=null?_0x2779b9:0x7d0;}[_0x9e1cf0(0x430)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x592cb2=_0x9e1cf0;this[_0x592cb2(0x25b)]!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}[_0x9e1cf0(0x559)](_0x769b36){const _0x5b445f=_0x9e1cf0;return this[_0x5b445f(0x326)](),this[_0x5b445f(0x314)][_0x5b445f(0x3b5)](_0x35774b,this[_0x5b445f(0x17e)],this[_0x5b445f(0x5b7)],null,this[_0x5b445f(0x2c5)],this[_0x5b445f(0x20c)],_0x769b36);}};_0x233585=_0x51d991([_0x13d018(0x4,_0x528f81[_0x9e1cf0(0x201)](_0x528f81[_0x9e1cf0(0x4a5)])),_0x13d018(0x5,_0x528f81[_0x9e1cf0(0x201)](_0x24131a[_0x9e1cf0(0x402)])),_0x13d018(0x6,_0x528f81[_0x9e1cf0(0x201)](_0x54acb7[_0x9e1cf0(0x297)])),_0x13d018(0x7,_0x528f81['Inject'](_0x2a4af8)),_0x13d018(0x8,_0x528f81[_0x9e1cf0(0x360)]),_0x13d018(0x9,_0x528f81[_0x9e1cf0(0x54f)]),_0x13d018(0xa,_0x528f81[_0x9e1cf0(0x1e6)]),_0x13d018(0xb,_0x24131a[_0x9e1cf0(0x2a7)]),_0x13d018(0xc,_0x528f81[_0x9e1cf0(0x57f)]),_0x13d018(0xd,_0x528f81[_0x9e1cf0(0x3e9)])],_0x233585);let _0x5a9631=class extends _0x3bc216{constructor(_0xce1644,_0x40a1d2,_0x5d676a,_0x2649c6,_0x460843,_0x5dfc11,_0x242e37,_0x2dbfc8,_0x1341ea,_0x44f6dc,_0x59e665){const _0x248b1e=_0x9e1cf0;super(_0xce1644,_0x40a1d2,_0x5d676a,[],_0x2649c6,_0x2dbfc8,_0x59e665,_0x5dfc11,_0x242e37),_0x2f1a44(this,_0x248b1e(0x43f),_0x248b1e(0x34e)),(this['_injector']=_0x460843,this[_0x248b1e(0x186)]=_0x1341ea,this['_transformService']=_0x44f6dc);}[_0x9e1cf0(0x216)](_0xfbd52a){const _0x2da107=_0x9e1cf0,_0x2710df=this['_injector'][_0x2da107(0x3b5)](_0x218196,this[_0x2da107(0x17e)],this[_0x2da107(0x5b7)],this[_0x2da107(0x343)],[_0xfbd52a],this[_0x2da107(0x20c)]);return _0x2710df[_0x2da107(0x1dd)](),_0x2710df;}[_0x9e1cf0(0x34a)](_0x7426d3){const _0x54ce60=_0x9e1cf0;if(this[_0x54ce60(0x174)](_0x7426d3))return this['_injector'][_0x54ce60(0x3b5)](_0x448470,this['unitID'],this[_0x54ce60(0x5b7)],this[_0x54ce60(0x343)],[],null,[_0x7426d3],this[_0x54ce60(0x20c)]);try{const _0x1cf77b=this[_0x54ce60(0x467)][_0x54ce60(0x3d0)]([_0x7426d3],[this[_0x54ce60(0x343)]],!0x1);if(_0x24131a[_0x54ce60(0x4f7)](_0x1cf77b)){const {c1Prime:_0x588c60,c2Prime:_0x5091a1}=_0x1cf77b;this[_0x54ce60(0x450)](_0x588c60[0x0]),_0x5091a1[0x0][_0x54ce60(0x52a)]=this[_0x54ce60(0x300)]();const _0x218a26=this[_0x54ce60(0x314)][_0x54ce60(0x3b5)](_0x5a9631,this['unitID'],this['type'],_0x5091a1[0x0],this[_0x54ce60(0x20c)]);return _0x218a26[_0x54ce60(0x1dd)](),_0x218a26;}return this[_0x54ce60(0x559)](!0x1);}catch(_0x3fdb68){return this[_0x54ce60(0x186)]['error'](_0x3fdb68),this[_0x54ce60(0x559)](!0x1);}}[_0x9e1cf0(0x540)](_0x41bd54){const _0x41c612=_0x9e1cf0,_0x9ca7c8=this[_0x41c612(0x19f)][_0x41c612(0x2e3)](this[_0x41c612(0x17e)]);if(_0x41bd54['revision']<_0x9ca7c8-0x1)return this;if(this['_checkMissing'](_0x41bd54))return this[_0x41c612(0x314)][_0x41c612(0x3b5)](_0x448470,this[_0x41c612(0x17e)],this[_0x41c612(0x5b7)],null,[],this['_awaitingChangeset'],[],this[_0x41c612(0x20c)]);this[_0x41c612(0x1c3)]();const _0xe5c36d=this[_0x41c612(0x314)]['createInstance'](_0xb426fd,this[_0x41c612(0x17e)],this['type'],this['_handler']);return _0xe5c36d[_0x41c612(0x1dd)](),_0xe5c36d;}['onRemoteRej'](_0x2d70bb){const _0x5855ec=_0x9e1cf0;return this[_0x5855ec(0x559)](!!(_0x2d70bb!=null&&_0x2d70bb[_0x5855ec(0x2be)]));}[_0x9e1cf0(0x40c)](){const _0x2c912f=_0x9e1cf0;return this['_injector'][_0x2c912f(0x3b5)](_0x21f035,this[_0x2c912f(0x17e)],this[_0x2c912f(0x5b7)],this['_awaitingChangeset'],[],this[_0x2c912f(0x20c)]);}[_0x9e1cf0(0x3a6)](){return this;}[_0x9e1cf0(0x430)](){const _0xe1b8f8=_0x9e1cf0;this[_0xe1b8f8(0x20c)][_0xe1b8f8(0x3ff)](this[_0xe1b8f8(0x343)]);}[_0x9e1cf0(0x559)](_0x456cbc){const _0x569259=_0x9e1cf0;return this[_0x569259(0x314)][_0x569259(0x3b5)](_0x35774b,this[_0x569259(0x17e)],this['type'],this[_0x569259(0x343)],[],this[_0x569259(0x20c)],_0x456cbc);}};_0x5a9631=_0x51d991([_0x13d018(0x4,_0x528f81[_0x9e1cf0(0x201)](_0x528f81['Injector'])),_0x13d018(0x5,_0x528f81[_0x9e1cf0(0x201)](_0x24131a[_0x9e1cf0(0x402)])),_0x13d018(0x6,_0x528f81[_0x9e1cf0(0x201)](_0x54acb7[_0x9e1cf0(0x297)])),_0x13d018(0x7,_0x528f81[_0x9e1cf0(0x54f)]),_0x13d018(0x8,_0x528f81[_0x9e1cf0(0x360)]),_0x13d018(0x9,_0x24131a[_0x9e1cf0(0x2a7)]),_0x13d018(0xa,_0x528f81[_0x9e1cf0(0x3e9)])],_0x5a9631);let _0x218196=class extends _0x3bc216{constructor(_0x341d75,_0x3aa3ca,_0x3a1e5a,_0x5d615d,_0x22b66c,_0xf1b391,_0xc00a34,_0x46e846,_0x34fa8d,_0x5cabe5,_0xaba1ce,_0x5f18f7){const _0x456f80=_0x9e1cf0;super(_0x341d75,_0x3aa3ca,_0x3a1e5a,_0x5d615d,_0x22b66c,_0x34fa8d,_0x5f18f7,_0xc00a34,_0x46e846),_0x2f1a44(this,'status',_0x456f80(0x4ad)),(this[_0x456f80(0x314)]=_0xf1b391,this['_logService']=_0x5cabe5,this[_0x456f80(0x467)]=_0xaba1ce);}[_0x9e1cf0(0x216)](_0x52f724){const _0x1370ec=_0x9e1cf0;return this[_0x1370ec(0x2c5)][_0x1370ec(0x202)](_0x52f724),this;}[_0x9e1cf0(0x34a)](_0x203767){const _0x344431=_0x9e1cf0;if(this[_0x344431(0x174)](_0x203767))return this[_0x344431(0x314)][_0x344431(0x3b5)](_0x448470,this[_0x344431(0x17e)],this[_0x344431(0x5b7)],this[_0x344431(0x343)],this[_0x344431(0x2c5)],null,[_0x203767],this[_0x344431(0x20c)]);try{const _0x30db62=this[_0x344431(0x467)]['transformChangesets']([_0x203767],[this[_0x344431(0x343)]],!0x1);if(_0x24131a[_0x344431(0x4f7)](_0x30db62)){const {c1Prime:_0x6538b4,c2Prime:_0x4cbe61}=_0x30db62,_0x475589=this[_0x344431(0x467)][_0x344431(0x267)](_0x6538b4[0x0],this[_0x344431(0x2c5)]);if(_0x24131a[_0x344431(0x223)](_0x475589)){const {c1Prime:_0x2bbcb4,m2Prime:_0xa80b6b}=_0x475589;return this['_executeRemoteChangeset'](_0x2bbcb4),_0x4cbe61[0x0][_0x344431(0x52a)]=this[_0x344431(0x300)](),this[_0x344431(0x314)][_0x344431(0x3b5)](_0x218196,this[_0x344431(0x17e)],this[_0x344431(0x5b7)],_0x4cbe61[0x0],_0xa80b6b,this[_0x344431(0x20c)]);}throw _0x475589[_0x344431(0x1b9)];}throw _0x30db62['error'];}catch(_0x2663a3){return this[_0x344431(0x186)][_0x344431(0x1b9)](_0x2663a3),this['_onConflict'](!0x1);}}[_0x9e1cf0(0x540)](_0x5a5948){const _0x5046f4=_0x9e1cf0;if(this[_0x5046f4(0x174)](_0x5a5948))return this[_0x5046f4(0x314)]['createInstance'](_0x448470,this[_0x5046f4(0x17e)],this[_0x5046f4(0x5b7)],null,this[_0x5046f4(0x2c5)],this[_0x5046f4(0x343)],[],this['_handler']);this[_0x5046f4(0x1c3)]();const _0x2634fe=this[_0x5046f4(0x314)][_0x5046f4(0x3b5)](_0x233585,this[_0x5046f4(0x17e)],this[_0x5046f4(0x5b7)],this[_0x5046f4(0x2c5)],this[_0x5046f4(0x20c)]);return _0x2634fe[_0x5046f4(0x1e0)](),_0x2634fe[_0x5046f4(0x1dd)](),_0x2634fe;}[_0x9e1cf0(0x21c)](_0xdf2ec){const _0x13c489=_0x9e1cf0;return this[_0x13c489(0x559)](!!(_0xdf2ec!=null&&_0xdf2ec[_0x13c489(0x2be)]));}[_0x9e1cf0(0x40c)](){const _0x3dcede=_0x9e1cf0;return this[_0x3dcede(0x314)][_0x3dcede(0x3b5)](_0x21f035,this['unitID'],this[_0x3dcede(0x5b7)],this[_0x3dcede(0x343)],this[_0x3dcede(0x2c5)],this[_0x3dcede(0x20c)]);}[_0x9e1cf0(0x3a6)](){return this;}['resend'](){const _0x1a3122=_0x9e1cf0;this[_0x1a3122(0x20c)][_0x1a3122(0x3ff)](this[_0x1a3122(0x343)]);}['_onConflict'](_0x55910f){const _0x1a2f7c=_0x9e1cf0;return this[_0x1a2f7c(0x314)][_0x1a2f7c(0x3b5)](_0x35774b,this['unitID'],this[_0x1a2f7c(0x5b7)],null,this[_0x1a2f7c(0x2c5)],this[_0x1a2f7c(0x20c)],_0x55910f);}};_0x218196=_0x51d991([_0x13d018(0x5,_0x528f81[_0x9e1cf0(0x201)](_0x528f81[_0x9e1cf0(0x4a5)])),_0x13d018(0x6,_0x528f81[_0x9e1cf0(0x201)](_0x24131a[_0x9e1cf0(0x402)])),_0x13d018(0x7,_0x528f81['Inject'](_0x54acb7[_0x9e1cf0(0x297)])),_0x13d018(0x8,_0x528f81[_0x9e1cf0(0x54f)]),_0x13d018(0x9,_0x528f81[_0x9e1cf0(0x360)]),_0x13d018(0xa,_0x24131a[_0x9e1cf0(0x2a7)]),_0x13d018(0xb,_0x528f81[_0x9e1cf0(0x3e9)])],_0x218196);let _0x35774b=class extends _0x3bc216{constructor(_0x1bfd6d,_0x425184,_0x9b0b8b,_0x204fed,_0x1f3475,_0xf3d6f9=!0x1,_0x266e03,_0xc08441,_0x363f8b,_0x4bc4fa,_0x2502ea,_0x3ab0d9,_0x3e08bc){const _0x35be0e=_0x9e1cf0;super(_0x1bfd6d,_0x425184,_0x9b0b8b,_0x204fed,_0x1f3475,_0xc08441,_0x363f8b,_0x2502ea,_0x4bc4fa),_0x2f1a44(this,_0x35be0e(0x43f),'conflict'),(this[_0x35be0e(0x226)]=_0xf3d6f9,this[_0x35be0e(0x23d)]=_0x266e03,this['_localeService']=_0x3ab0d9,this[_0x35be0e(0x421)]=_0x3e08bc,this['_showConflictNotification'](),this[_0x35be0e(0x1ec)](),this[_0x35be0e(0x292)]());}[_0x9e1cf0(0x216)](){return this;}[_0x9e1cf0(0x34a)](){return this;}['onRemoteAck'](){return this;}[_0x9e1cf0(0x21c)](){return this;}[_0x9e1cf0(0x40c)](){return this;}['toggleOnline'](){return this;}[_0x9e1cf0(0x430)](){const _0x4e825a=_0x9e1cf0;throw new Error(_0x4e825a(0x1a8));}[_0x9e1cf0(0x1ec)](){const _0x1fc54e=_0x9e1cf0;this[_0x1fc54e(0x438)][_0x1fc54e(0x433)](this[_0x1fc54e(0x17e)],this[_0x1fc54e(0x5b7)],null,[]);}[_0x9e1cf0(0x396)](){const _0x217aec=_0x9e1cf0;this['_isPermissionRej']?this[_0x217aec(0x421)][_0x217aec(0x2e2)]({'title':this[_0x217aec(0x3cc)]['t']('permission.title'),'content':this['_localeService']['t'](_0x217aec(0x2ef)),'type':'error','duration':0x0}):this['_notificationService'][_0x217aec(0x2e2)]({'title':this[_0x217aec(0x3cc)]['t'](_0x217aec(0x3f3)),'content':this[_0x217aec(0x3cc)]['t']('conflict.content'),'type':_0x217aec(0x1b9),'duration':0x0});}[_0x9e1cf0(0x292)](){const _0x3d207f=_0x9e1cf0;this['_permissionService'][_0x3d207f(0x1a2)](new _0x2b9a61['WorkbookEditablePermission'](this[_0x3d207f(0x17e)])['id'],!0x1);}};_0x35774b=_0x51d991([_0x13d018(0x6,_0x528f81[_0x9e1cf0(0x201)](_0x528f81[_0x9e1cf0(0x395)])),_0x13d018(0x7,_0x528f81['ICommandService']),_0x13d018(0x8,_0x528f81['IUndoRedoService']),_0x13d018(0x9,_0x528f81[_0x9e1cf0(0x201)](_0x54acb7[_0x9e1cf0(0x297)])),_0x13d018(0xa,_0x528f81['Inject'](_0x24131a[_0x9e1cf0(0x402)])),_0x13d018(0xb,_0x528f81[_0x9e1cf0(0x201)](_0x528f81[_0x9e1cf0(0x4b3)])),_0x13d018(0xc,_0x4e4b95['INotificationService'])],_0x35774b);let _0x21f035=class extends _0x3bc216{constructor(_0x568460,_0x2a90db,_0xbb28c0,_0x3f1e50,_0x235209,_0x2cd305,_0x426c1a,_0x3267db,_0x470a07,_0x9a68b3){const _0xef0898=_0x9e1cf0;super(_0x568460,_0x2a90db,_0xbb28c0,_0x3f1e50,_0x235209,_0x470a07,_0x9a68b3,_0x426c1a,_0x3267db),_0x2f1a44(this,'status',_0xef0898(0x45e)),this[_0xef0898(0x314)]=_0x2cd305;}[_0x9e1cf0(0x216)](_0x15a875){const _0xfeae1e=_0x9e1cf0;return this[_0xfeae1e(0x2c5)]['push'](_0x15a875),this['_updateLocalCache'](),this;}[_0x9e1cf0(0x34a)](_0x535b6c){const _0x548ea7=_0x9e1cf0;throw new Error(_0x548ea7(0x55b));}[_0x9e1cf0(0x540)](){const _0x5c10e2=_0x9e1cf0;throw new Error(_0x5c10e2(0x194));}[_0x9e1cf0(0x21c)](){const _0x40c4a2=_0x9e1cf0;throw new Error(_0x40c4a2(0x400));}[_0x9e1cf0(0x40c)](){return this;}[_0x9e1cf0(0x3a6)](){const _0x435f02=_0x9e1cf0,{_injector:_0x4d933d,_pendingMutations:_0x120b34,_awaitingChangeset:_0x3f0401,unitID:_0x1ddc4f,_handler:_0x54238c,type:_0x51d5b2}=this,_0x2b9c16=_0x5218a1(_0x4d933d,_0x1ddc4f,_0x51d5b2,_0x3f0401,_0x120b34,_0x54238c);return _0x2b9c16 instanceof _0x233585?_0x2b9c16[_0x435f02(0x1e0)]():(_0x2b9c16 instanceof _0x218196||_0x2b9c16 instanceof _0x5a9631)&&_0x2b9c16['resend'](),_0x2b9c16;}[_0x9e1cf0(0x430)](){const _0x1de94b=_0x9e1cf0;throw new Error(_0x1de94b(0x4e9));}};_0x21f035=_0x51d991([_0x13d018(0x5,_0x528f81['Inject'](_0x528f81['Injector'])),_0x13d018(0x6,_0x528f81['Inject'](_0x24131a[_0x9e1cf0(0x402)])),_0x13d018(0x7,_0x528f81['Inject'](_0x54acb7[_0x9e1cf0(0x297)])),_0x13d018(0x8,_0x528f81['ICommandService']),_0x13d018(0x9,_0x528f81[_0x9e1cf0(0x3e9)])],_0x21f035);let _0x448470=class extends _0x3bc216{constructor(_0x5c1bad,_0x53fb14,_0x529d86,_0x1d1594,_0x4a6a2d,_0x1610a8,_0x542214,_0x2bd98c,_0x1a1655,_0x534f24,_0x4ca91d,_0x2c68bf,_0x4e9a09,_0x3873a6){const _0x330bc7=_0x9e1cf0;super(_0x5c1bad,_0x53fb14,_0x529d86,_0x1d1594,_0x542214,_0x2c68bf,_0x4e9a09,_0x1a1655,_0x534f24),_0x2f1a44(this,_0x330bc7(0x43f),_0x330bc7(0x3b8)),(this[_0x330bc7(0x31e)]=_0x4a6a2d,this['_queuedRemoteChangesets']=_0x1610a8,this['_injector']=_0x2bd98c,this[_0x330bc7(0x186)]=_0x4ca91d,this[_0x330bc7(0x467)]=_0x3873a6);}[_0x9e1cf0(0x27a)](_0x2de450){const _0x552c0c=_0x9e1cf0;try{const _0x375c51=[..._0x2de450,...this[_0x552c0c(0x3b7)]],_0x303add=[this['_awaitingChangeset']||this[_0x552c0c(0x31e)]][_0x552c0c(0x26a)](_0x2c8dbb=>!!_0x2c8dbb);let _0x4c22d2,_0x3f2816;if(_0x303add[_0x552c0c(0x4e5)]){const _0x2b692b=this['_transformService'][_0x552c0c(0x3d0)](_0x375c51,_0x303add,!0x1);if(!_0x24131a[_0x552c0c(0x4f7)](_0x2b692b))throw _0x2b692b[_0x552c0c(0x1b9)];_0x4c22d2=_0x2b692b[_0x552c0c(0x568)],_0x3f2816=_0x2b692b[_0x552c0c(0x533)];}else _0x4c22d2=_0x375c51,_0x3f2816=[];let _0x46f6c0=this[_0x552c0c(0x2c5)];_0x4c22d2[_0x552c0c(0x4af)](_0x471cfd=>{const _0x442190=_0x552c0c;let _0x8ce673;if(_0x46f6c0[_0x442190(0x4e5)]){const _0x49068e=this['_transformService'][_0x442190(0x267)](_0x471cfd,_0x46f6c0);if(!_0x24131a['isTransformMutationsWithChangesetSuccess'](_0x49068e))throw _0x49068e[_0x442190(0x1b9)];_0x8ce673=_0x49068e[_0x442190(0x568)],_0x46f6c0=_0x49068e[_0x442190(0x3ba)];}else _0x8ce673=_0x471cfd;this[_0x442190(0x450)](_0x8ce673);}),this[_0x552c0c(0x31e)]&&this[_0x552c0c(0x1c3)](),this[_0x552c0c(0x343)]&&_0x3f2816[_0x552c0c(0x4e5)]&&(_0x3f2816[0x0][_0x552c0c(0x52a)]=this[_0x552c0c(0x300)]());let _0x15cfca;if(this[_0x552c0c(0x343)]&&_0x46f6c0[_0x552c0c(0x4e5)]!==0x0)_0x15cfca=this[_0x552c0c(0x314)]['createInstance'](_0x218196,this[_0x552c0c(0x17e)],this['type'],_0x3f2816[0x0],_0x46f6c0,this['_handler']);else{if(this['_awaitingChangeset']&&_0x46f6c0[_0x552c0c(0x4e5)]===0x0)_0x3f2816[0x0]['baseRev']=this[_0x552c0c(0x300)](),_0x15cfca=this[_0x552c0c(0x314)][_0x552c0c(0x3b5)](_0x5a9631,this[_0x552c0c(0x17e)],this[_0x552c0c(0x5b7)],_0x3f2816[0x0],this['_handler']);else{if(_0x46f6c0[_0x552c0c(0x4e5)]!==0x0){const _0x54d8ef=this[_0x552c0c(0x314)][_0x552c0c(0x3b5)](_0x233585,this[_0x552c0c(0x17e)],this['type'],_0x46f6c0,this[_0x552c0c(0x20c)]);_0x54d8ef['_schedule'](),_0x15cfca=_0x54d8ef;}else _0x15cfca=this[_0x552c0c(0x314)][_0x552c0c(0x3b5)](_0xb426fd,this[_0x552c0c(0x17e)],this[_0x552c0c(0x5b7)],this[_0x552c0c(0x20c)]);}}return _0x15cfca['_updateLocalCache'](),_0x15cfca;}catch(_0x485e18){return this[_0x552c0c(0x186)][_0x552c0c(0x1b9)](_0x552c0c(0x199),_0x552c0c(0x1ce),_0x485e18),this[_0x552c0c(0x314)][_0x552c0c(0x3b5)](_0x35774b,this[_0x552c0c(0x17e)],this['type'],this[_0x552c0c(0x343)],this[_0x552c0c(0x2c5)],this['_handler'],!0x1);}}[_0x9e1cf0(0x430)](){const _0x2a3523=_0x9e1cf0;throw new Error(_0x2a3523(0x44e));}[_0x9e1cf0(0x216)](_0x1570d9){const _0x5daeb8=_0x9e1cf0;return this['_pendingMutations'][_0x5daeb8(0x202)](_0x1570d9),this;}[_0x9e1cf0(0x34a)](_0x4fa668){const _0x5690fe=_0x9e1cf0;return this[_0x5690fe(0x3b7)][_0x5690fe(0x202)](_0x4fa668),this;}[_0x9e1cf0(0x540)](_0x41e5a5){const _0x57589c=_0x9e1cf0;if(this[_0x57589c(0x343)])return this['_acknowledgedAwaitingChangeset']=this['_awaitingChangeset'],this['_awaitingChangeset']=null,this;throw new Error(_0x57589c(0x59e));}[_0x9e1cf0(0x21c)](_0x3ea4f0){const _0x34b787=_0x9e1cf0;return this[_0x34b787(0x559)](!!(_0x3ea4f0!=null&&_0x3ea4f0['isPermissionRej']));}[_0x9e1cf0(0x40c)](){const _0x1c9b79=_0x9e1cf0;return this[_0x1c9b79(0x314)][_0x1c9b79(0x3b5)](_0x21f035,this[_0x1c9b79(0x17e)],this[_0x1c9b79(0x5b7)],this[_0x1c9b79(0x343)],this[_0x1c9b79(0x2c5)],this[_0x1c9b79(0x20c)]);}['toggleOnline'](){return this;}[_0x9e1cf0(0x559)](_0x1dd1db){const _0x1040ad=_0x9e1cf0;return this[_0x1040ad(0x314)][_0x1040ad(0x3b5)](_0x35774b,this[_0x1040ad(0x17e)],this[_0x1040ad(0x5b7)],this[_0x1040ad(0x343)],this['_pendingMutations'],this[_0x1040ad(0x20c)],_0x1dd1db);}};_0x448470=_0x51d991([_0x13d018(0x7,_0x528f81[_0x9e1cf0(0x201)](_0x528f81[_0x9e1cf0(0x4a5)])),_0x13d018(0x8,_0x528f81[_0x9e1cf0(0x201)](_0x24131a[_0x9e1cf0(0x402)])),_0x13d018(0x9,_0x528f81[_0x9e1cf0(0x201)](_0x54acb7['LocalCacheService'])),_0x13d018(0xa,_0x528f81[_0x9e1cf0(0x360)]),_0x13d018(0xb,_0x528f81['ICommandService']),_0x13d018(0xc,_0x528f81['IUndoRedoService']),_0x13d018(0xd,_0x24131a[_0x9e1cf0(0x2a7)])],_0x448470);function _0x5218a1(_0x1f90ad,_0x23cadf,_0x49604b,_0x238bdc,_0x36e799,_0x155f09){const _0x3af99b=_0x9e1cf0;return _0x238bdc&&_0x36e799[_0x3af99b(0x4e5)]?_0x1f90ad[_0x3af99b(0x3b5)](_0x218196,_0x23cadf,_0x49604b,_0x238bdc,_0x36e799,_0x155f09):_0x238bdc?_0x1f90ad[_0x3af99b(0x3b5)](_0x5a9631,_0x23cadf,_0x49604b,_0x238bdc,_0x155f09):_0x36e799[_0x3af99b(0x4e5)]?_0x1f90ad['createInstance'](_0x233585,_0x23cadf,_0x49604b,_0x36e799,_0x155f09):_0x1f90ad['createInstance'](_0xb426fd,_0x23cadf,_0x49604b,_0x155f09);}var _0x52091a=Object[_0x9e1cf0(0x188)],_0x2f5d14=Object[_0x9e1cf0(0x484)],_0x3b2cae=(_0x3cfecc,_0x46fb6b,_0x433845,_0x2c3185)=>{const _0x1c59a5=_0x9e1cf0;for(var _0x345dbe=_0x2c3185>0x1?void 0x0:_0x2c3185?_0x2f5d14(_0x46fb6b,_0x433845):_0x46fb6b,_0x223449=_0x3cfecc[_0x1c59a5(0x4e5)]-0x1,_0x73f832;_0x223449>=0x0;_0x223449--)(_0x73f832=_0x3cfecc[_0x223449])&&(_0x345dbe=(_0x2c3185?_0x73f832(_0x46fb6b,_0x433845,_0x345dbe):_0x73f832(_0x345dbe))||_0x345dbe);return _0x2c3185&&_0x345dbe&&_0x52091a(_0x46fb6b,_0x433845,_0x345dbe),_0x345dbe;},_0x5a5e6b=(_0x4d1d82,_0x2a8e0b)=>(_0x43321f,_0x19d372)=>_0x2a8e0b(_0x43321f,_0x19d372,_0x4d1d82);_0x54acb7['CollaborationEntity']=class extends _0x528f81[_0x9e1cf0(0x3c2)]{constructor(_0x3a5bde,_0x483c93,_0x1a3221,_0x59aaf8,_0x31f536,_0x5d4890,_0x2f770c,_0xb15297,_0x209f68,_0x451fa4,_0x4b1f0d,_0x24ece9,_0x3bff75){const _0x850a0e=_0x9e1cf0;super(),_0x2f1a44(this,_0x850a0e(0x1ef),new _0x45efe7['BehaviorSubject'](null)),_0x2f1a44(this,_0x850a0e(0x18c),this[_0x850a0e(0x1ef)][_0x850a0e(0x518)]()),_0x2f1a44(this,_0x850a0e(0x50b)),_0x2f1a44(this,_0x850a0e(0x2b9),!0x1),_0x2f1a44(this,'_changesetSessionId',''),_0x2f1a44(this,_0x850a0e(0x1a5),0x0),_0x2f1a44(this,'status$',this['state$'][_0x850a0e(0x4ff)](_0x45efe7['map'](_0x6ecb02=>_0x6ecb02?_0x6ecb02[_0x850a0e(0x43f)]:_0x3fa463[_0x850a0e(0x269)]),_0x45efe7[_0x850a0e(0x2cd)](0x1))),_0x2f1a44(this,'_transitionLocked',!0x1),_0x2f1a44(this,'_remoteChangesetQueue',[]),(this[_0x850a0e(0x17e)]=_0x3a5bde,this[_0x850a0e(0x505)]=_0x483c93,this['_type']=_0x1a3221,this[_0x850a0e(0x314)]=_0x59aaf8,this[_0x850a0e(0x438)]=_0x31f536,this['_compressMutationService']=_0x5d4890,this['_localeService']=_0x2f770c,this[_0x850a0e(0x19f)]=_0xb15297,this[_0x850a0e(0x186)]=_0x209f68,this[_0x850a0e(0x58a)]=_0x451fa4,this['_messageService']=_0x4b1f0d,this[_0x850a0e(0x23d)]=_0x24ece9,this[_0x850a0e(0x351)]=_0x3bff75);}get['state'](){return this['_state'];}async['init'](){const _0x2a64a4=_0x9e1cf0;if(this[_0x2a64a4(0x581)])throw new Error(_0x2a64a4(0x56c));await this['_init']();}['pauseCollaboration'](){const _0x16941b=_0x9e1cf0;return this['_collaborationPaused']=!0x0,_0x528f81[_0x16941b(0x4b2)](()=>{const _0x32b588=_0x16941b;this[_0x32b588(0x2b9)]=!0x1,this[_0x32b588(0x4c5)]();});}[_0x9e1cf0(0x50c)](_0x2bcd88){const _0x4fecef=_0x9e1cf0;this[_0x4fecef(0x50b)]=_0x2bcd88,this[_0x4fecef(0x1ef)]['next'](_0x2bcd88);}async['_init'](){const _0x3664cd=_0x9e1cf0;var _0x1e4a2d;this[_0x3664cd(0x50c)](await this[_0x3664cd(0x2ad)]()),this[_0x3664cd(0x351)]&&((_0x1e4a2d=this[_0x3664cd(0x351)])==null||_0x1e4a2d[_0x3664cd(0x234)](this[_0x3664cd(0x17e)]),this[_0x3664cd(0x17c)](this[_0x3664cd(0x351)][_0x3664cd(0x3be)](this['unitID'])[_0x3664cd(0x24b)](_0x4e6f62=>{const _0x351e0c=_0x3664cd;this['_logService']['debug'](_0x351e0c(0x44a),_0x351e0c(0x4df),_0x4e6f62),_0x4e6f62===_0x31385e[_0x351e0c(0x1ab)]?(this[_0x351e0c(0x41c)][_0x351e0c(0x2e2)]({'content':this[_0x351e0c(0x3cc)]['t']('collaboration.single-unit.warning'),'type':_0x3c796f['MessageType'][_0x351e0c(0x23b)]}),this['_permissionService'][_0x351e0c(0x1a2)](new _0x2b9a61[(_0x351e0c(0x258))](this['unitID'])['id'],!0x1)):this[_0x351e0c(0x23d)][_0x351e0c(0x1a2)](new _0x2b9a61['WorkbookEditablePermission'](this[_0x351e0c(0x17e)])['id'],!0x0);})));let _0x295112=!0x1;return this[_0x3664cd(0x17c)](this[_0x3664cd(0x505)][_0x3664cd(0x577)][_0x3664cd(0x24b)](_0x38b3bf=>{const _0x3f33e7=_0x3664cd;_0x38b3bf===_0x3b6a56[_0x3f33e7(0x5a9)]?this[_0x3f33e7(0x34d)](_0x295112):_0x38b3bf===_0x3b6a56['OFFLINE']&&(_0x295112=!0x0,this[_0x3f33e7(0x5b5)]());})),this['disposeWithMe'](this[_0x3664cd(0x505)][_0x3664cd(0x36e)][_0x3664cd(0x24b)](_0x47e228=>{const _0x1c3778=_0x3664cd;try{switch(_0x47e228[_0x1c3778(0x1c6)]){case _0x24131a['CollaborationEvent'][_0x1c3778(0x44d)]:{this[_0x1c3778(0x251)](_0x24131a[_0x1c3778(0x4ef)](_0x47e228['data']));break;}case _0x24131a[_0x1c3778(0x190)]['CHANGESET_ACK']:{this[_0x1c3778(0x4db)](_0x47e228[_0x1c3778(0x1f9)]);break;}case _0x24131a[_0x1c3778(0x190)][_0x1c3778(0x248)]:{this[_0x1c3778(0x3cf)]();break;}case _0x24131a[_0x1c3778(0x190)][_0x1c3778(0x247)]:{this['_onFetchMissResult'](_0x47e228[_0x1c3778(0x1f9)][_0x1c3778(0x3d2)][_0x1c3778(0x222)](_0x40f596=>_0x24131a[_0x1c3778(0x4ef)](_0x40f596)));break;}case _0x24131a['CollaborationEvent'][_0x1c3778(0x593)]:this[_0x1c3778(0x3cf)]({'isPermissionRej':!0x0});}}catch(_0x22e067){throw console[_0x1c3778(0x1b9)](_0x1c3778(0x2d5),_0x22e067),_0x22e067;}})),this[_0x3664cd(0x50b)];}[_0x9e1cf0(0x2b3)](){const _0x150bee=_0x9e1cf0;this[_0x150bee(0x485)]=!0x1;}[_0x9e1cf0(0x414)](){const _0x366b50=_0x9e1cf0;if(this[_0x366b50(0x485)])throw new Error(_0x366b50(0x196));this[_0x366b50(0x485)]=!0x0;}[_0x9e1cf0(0x284)](_0x260761){const _0x5dfd99=_0x9e1cf0;this[_0x5dfd99(0x414)](),this[_0x5dfd99(0x50c)](this[_0x5dfd99(0x50b)][_0x5dfd99(0x216)](_0x260761)),this[_0x5dfd99(0x2b3)]();}['_onRemoteChangeset'](_0xb4ba96){const _0x5d45d3=_0x9e1cf0;if(!(_0xb4ba96['revision']<=this[_0x5d45d3(0x19f)]['getCurrentRevOfUnit'](this['unitID']))){if(this[_0x5d45d3(0x2b9)]){this[_0x5d45d3(0x2aa)][_0x5d45d3(0x202)](_0xb4ba96);return;}this[_0x5d45d3(0x286)](_0xb4ba96);}}[_0x9e1cf0(0x4c5)](){const _0x56e081=_0x9e1cf0;this[_0x56e081(0x2aa)][_0x56e081(0x4af)](_0x32fae7=>this['_applyRemoteChangeset'](_0x32fae7)),this['_remoteChangesetQueue']=[];}[_0x9e1cf0(0x286)](_0x33cf72){const _0x513772=_0x9e1cf0,_0x8add76=this[_0x513772(0x38f)][_0x513772(0x1f3)][_0x513772(0x499)](this['_compressMutationService'][_0x513772(0x1f3)][_0x513772(0x2b1)]()[_0x513772(0x1b3)])(_0x33cf72[_0x513772(0x43c)],null)||_0x33cf72[_0x513772(0x43c)],_0xea0239={..._0x33cf72,'mutations':_0x8add76};this['_lockTransition'](),this[_0x513772(0x50c)](this[_0x513772(0x50b)][_0x513772(0x34a)](_0xea0239)),this[_0x513772(0x2b3)]();}[_0x9e1cf0(0x4db)](_0x173484){const _0x421304=_0x9e1cf0;this['_lockTransition'](),this[_0x421304(0x50c)](this[_0x421304(0x50b)][_0x421304(0x540)](_0x173484)),this[_0x421304(0x2b3)]();}[_0x9e1cf0(0x3cf)](_0x4d0780){const _0x3070e3=_0x9e1cf0;this['_lockTransition'](),this[_0x3070e3(0x50c)](this[_0x3070e3(0x50b)][_0x3070e3(0x21c)](_0x4d0780)),this['_unlockTransition']();}[_0x9e1cf0(0x207)](_0xd15a2e){const _0x16af32=_0x9e1cf0;if(!(this['_state']instanceof _0x448470))throw new TypeError(_0x16af32(0x5ad));const _0x3b8dfb=_0xd15a2e[_0x16af32(0x222)](_0x24f768=>{const _0x569bb1=_0x16af32,_0x1e3bde=this['_compressMutationService'][_0x569bb1(0x1f3)][_0x569bb1(0x499)](this['_compressMutationService'][_0x569bb1(0x1f3)][_0x569bb1(0x2b1)]()[_0x569bb1(0x1b3)])(_0x24f768[_0x569bb1(0x43c)],null)||_0x24f768[_0x569bb1(0x43c)];return{..._0x24f768,'mutations':_0x1e3bde};});this[_0x16af32(0x414)](),this['_updateState'](this[_0x16af32(0x50b)][_0x16af32(0x27a)](_0x3b8dfb)),this[_0x16af32(0x2b3)]();}['_toggleOffline'](){const _0xdae3f4=_0x9e1cf0;this[_0xdae3f4(0x414)](),this[_0xdae3f4(0x50c)](this[_0xdae3f4(0x50b)][_0xdae3f4(0x40c)]()),this['_unlockTransition']();}[_0x9e1cf0(0x34d)](_0x3bd8ef=!0x1){const _0x57a190=_0x9e1cf0;this[_0x57a190(0x414)](),this['_updateState'](this[_0x57a190(0x50b)][_0x57a190(0x3a6)]()),this[_0x57a190(0x2b3)]();const _0x23ee8f=this[_0x57a190(0x50b)];_0x3bd8ef&&_0x23ee8f instanceof _0xb426fd&&(this[_0x57a190(0x414)](),this['_updateState'](_0x23ee8f[_0x57a190(0x523)]()),this[_0x57a190(0x2b3)]());}async[_0x9e1cf0(0x2ad)](){return new Promise(_0x50ba69=>{const _0x38a553=_0x2385;this['session']['sessionStatus$'][_0x38a553(0x4ff)](_0x45efe7[_0x38a553(0x3d7)](0x1))[_0x38a553(0x24b)](async _0x535a5d=>{const _0x31a5fe=_0x38a553;_0x50ba69(await this['_createInitialStateImpl'](_0x535a5d===_0x3b6a56[_0x31a5fe(0x5a9)]));});});}['_createHandler'](){const _0x3899bd=_0x9e1cf0,_0x10b993=this[_0x3899bd(0x17e)];return{'onStateChange':(_0x5b3b2f,_0x25ea6a)=>{const _0x22c2b8=_0x3899bd;if(_0x5b3b2f!==this['_state'])throw new Error(_0x22c2b8(0x24a)+_0x5b3b2f[_0x22c2b8(0x43f)]+_0x22c2b8(0x52e)+_0x25ea6a['status']+_0x22c2b8(0x367)+this[_0x22c2b8(0x50b)][_0x22c2b8(0x43f)]);this[_0x22c2b8(0x50c)](_0x25ea6a);},'onSendChangeset':_0x456060=>{const _0x411b72=_0x3899bd;_0x456060[_0x411b72(0x2b8)]||(_0x456060['sid']=this[_0x411b72(0x324)],_0x456060['reqId']=++this[_0x411b72(0x1a5)]);const _0x4467b8={'eventID':_0x24131a['CollaborationEvent'][_0x411b72(0x461)],'data':{'unitID':_0x456060[_0x411b72(0x17e)],'unitType':this[_0x411b72(0x526)],'changeset':_0x456060,'memberID':this[_0x411b72(0x505)]['getMemberID']()}};this[_0x411b72(0x505)][_0x411b72(0x1de)](_0x4467b8,this[_0x411b72(0x17e)]);},'onMissingChangesets':({from:_0x42c7da,to:_0x4ea302})=>{const _0x3001bc=_0x3899bd;this['_logService'][_0x3001bc(0x1fc)](_0x3001bc(0x44a),_0x3001bc(0x296)+_0x42c7da+_0x3001bc(0x289)+_0x4ea302);const _0x165005={'eventID':_0x24131a[_0x3001bc(0x190)][_0x3001bc(0x319)],'data':{'unitID':_0x10b993,'unitType':this[_0x3001bc(0x526)],'from':_0x42c7da,'to':_0x4ea302}};this['session']['send'](_0x165005,this[_0x3001bc(0x17e)]);}};}async['_createInitialStateImpl'](_0x2cfb1d){const _0x8abc31=_0x9e1cf0;var _0x4ee7af,_0x14b438;const _0x1b2cee=await this[_0x8abc31(0x438)]['loadOfflineData'](this[_0x8abc31(0x17e)]),_0x401667=(_0x4ee7af=_0x1b2cee==null?void 0x0:_0x1b2cee[_0x8abc31(0x43c)])!=null?_0x4ee7af:[],_0x204d6e=(_0x14b438=_0x1b2cee==null?void 0x0:_0x1b2cee['awaitingChangeset'])!=null?_0x14b438:null,_0x1c0566=!!(_0x204d6e!=null&&_0x204d6e['sid'])&&!!(_0x204d6e!=null&&_0x204d6e[_0x8abc31(0x53a)]);this['_changesetSessionId']=_0x1c0566?_0x204d6e['sid']:_0x20909d(),this[_0x8abc31(0x1a5)]=_0x1c0566?_0x204d6e[_0x8abc31(0x53a)]:0x0;const _0x4ef230=this[_0x8abc31(0x17e)];try{this[_0x8abc31(0x353)](_0x204d6e,_0x401667);}catch(_0x250c69){this[_0x8abc31(0x186)][_0x8abc31(0x1b9)](_0x250c69);}const _0x32dbf5=this[_0x8abc31(0x268)]();if(_0x2cfb1d){const _0x16fa7f=_0x5218a1(this[_0x8abc31(0x314)],_0x4ef230,this[_0x8abc31(0x526)],_0x204d6e,_0x401667,_0x32dbf5);return _0x16fa7f instanceof _0x233585?_0x16fa7f[_0x8abc31(0x1e0)]():(_0x16fa7f instanceof _0x218196||_0x16fa7f instanceof _0x5a9631)&&_0x16fa7f['resend'](),_0x16fa7f;}return this[_0x8abc31(0x314)][_0x8abc31(0x3b5)](_0x21f035,_0x4ef230,this[_0x8abc31(0x526)],_0x204d6e,_0x401667,_0x32dbf5);}[_0x9e1cf0(0x353)](_0x35be6e,_0x24afa9){const _0x18c05a=_0x9e1cf0;var _0x51d2d0,_0x1f93a5;const _0x146c56=this[_0x18c05a(0x38f)][_0x18c05a(0x1f3)][_0x18c05a(0x499)](this[_0x18c05a(0x38f)][_0x18c05a(0x1f3)]['getInterceptPoints']()[_0x18c05a(0x1b3)]);(_0x51d2d0=_0x146c56((_0x35be6e==null?void 0x0:_0x35be6e[_0x18c05a(0x43c)])||[],null))==null||_0x51d2d0['forEach'](_0xe6d8a9=>this['_commandService'][_0x18c05a(0x406)](_0xe6d8a9['id'],_0xe6d8a9['params'])),(_0x1f93a5=_0x146c56(_0x24afa9||[],null))==null||_0x1f93a5['forEach'](_0x32f094=>this[_0x18c05a(0x58a)]['executeCommand'](_0x32f094['id'],_0x32f094[_0x18c05a(0x2f0)]));}},_0x54acb7[_0x9e1cf0(0x4fe)]=_0x3b2cae([_0x5a5e6b(0x3,_0x528f81[_0x9e1cf0(0x201)](_0x528f81[_0x9e1cf0(0x4a5)])),_0x5a5e6b(0x4,_0x528f81[_0x9e1cf0(0x201)](_0x54acb7[_0x9e1cf0(0x297)])),_0x5a5e6b(0x5,_0x528f81[_0x9e1cf0(0x201)](_0x24131a['CompressMutationService'])),_0x5a5e6b(0x6,_0x528f81['Inject'](_0x528f81[_0x9e1cf0(0x4b3)])),_0x5a5e6b(0x7,_0x528f81[_0x9e1cf0(0x201)](_0x24131a[_0x9e1cf0(0x402)])),_0x5a5e6b(0x8,_0x528f81[_0x9e1cf0(0x360)]),_0x5a5e6b(0x9,_0x528f81['ICommandService']),_0x5a5e6b(0xa,_0x4e4b95[_0x9e1cf0(0x5b4)]),_0x5a5e6b(0xb,_0x528f81[_0x9e1cf0(0x395)]),_0x5a5e6b(0xc,_0x528f81[_0x9e1cf0(0x1d3)](_0x5c5006))],_0x54acb7[_0x9e1cf0(0x4fe)]),_0x54acb7[_0x9e1cf0(0x2f5)]=class extends _0x54acb7[_0x9e1cf0(0x4fe)]{constructor(_0x570841,_0x5d6ab3,_0x52b198,_0x49c833,_0x739983,_0x5c41e6,_0x25ca5d,_0x4a3306,_0xa46a25,_0x3ed86e,_0x1f4085,_0x329bd5,_0x2268c3,_0x35443d,_0x9e3630,_0x1866ed,_0x591272){const _0x13979b=_0x9e1cf0;super(_0x570841,_0x52b198,_0x5d6ab3,_0x49c833,_0x739983,_0x5c41e6,_0x25ca5d,_0x4a3306,_0x2268c3,_0x35443d,_0x9e3630,_0x1866ed,_0x591272),this[_0x13979b(0x17e)]=_0x570841,this[_0x13979b(0x5b7)]=_0x5d6ab3,this[_0x13979b(0x574)]=_0xa46a25,this['_docTransformIMECacheService']=_0x3ed86e,this['_docTransformSelectionsService']=_0x1f4085,this[_0x13979b(0x3ec)]=_0x329bd5;}[_0x9e1cf0(0x268)](){const _0x3f2805=_0x9e1cf0,_0x53e127=super[_0x3f2805(0x268)]();return _0x53e127[_0x3f2805(0x4e7)]=_0x314f64=>this[_0x3f2805(0x4a8)][_0x3f2805(0x36c)](_0x314f64),_0x53e127[_0x3f2805(0x4d9)]=_0x3e0017=>this[_0x3f2805(0x2fe)]['transformSelections'](_0x3e0017),_0x53e127[_0x3f2805(0x392)]=_0x463f0f=>this[_0x3f2805(0x3ec)][_0x3f2805(0x3e1)](_0x463f0f),_0x53e127[_0x3f2805(0x22f)]=_0x1d8375=>this[_0x3f2805(0x4a8)][_0x3f2805(0x3c4)](_0x1d8375),_0x53e127;}async[_0x9e1cf0(0x37b)](){const _0x26cb1e=_0x9e1cf0,_0x5d3c9b=await super['_init']();return this[_0x26cb1e(0x574)][_0x26cb1e(0x327)]['pipe'](_0x45efe7[_0x26cb1e(0x1d6)](this[_0x26cb1e(0x195)]))[_0x26cb1e(0x24b)](_0x37ef9a=>{const _0x3167f7=_0x26cb1e;if(_0x37ef9a==null)return;const {unitId:_0x1d886f,redoState:_0x2eed73,commandId:_0x420828}=_0x37ef9a;if(_0x1d886f!==this[_0x3167f7(0x17e)])return;const _0x1924dd={'id':_0x420828,'type':_0x528f81[_0x3167f7(0x272)][_0x3167f7(0x211)],'params':{'unitId':_0x1d886f,'actions':_0x2eed73[_0x3167f7(0x3ad)],'textRanges':null}};this[_0x3167f7(0x284)](_0x1924dd);}),_0x5d3c9b;}},_0x54acb7[_0x9e1cf0(0x2f5)]=_0x3b2cae([_0x5a5e6b(0x3,_0x528f81['Inject'](_0x528f81[_0x9e1cf0(0x4a5)])),_0x5a5e6b(0x4,_0x528f81[_0x9e1cf0(0x201)](_0x54acb7[_0x9e1cf0(0x297)])),_0x5a5e6b(0x5,_0x528f81[_0x9e1cf0(0x201)](_0x24131a[_0x9e1cf0(0x26e)])),_0x5a5e6b(0x6,_0x528f81['Inject'](_0x528f81[_0x9e1cf0(0x4b3)])),_0x5a5e6b(0x7,_0x528f81[_0x9e1cf0(0x201)](_0x24131a[_0x9e1cf0(0x402)])),_0x5a5e6b(0x8,_0x528f81['Inject'](_0x43faad[_0x9e1cf0(0x1d4)])),_0x5a5e6b(0x9,_0x528f81[_0x9e1cf0(0x201)](_0x482640)),_0x5a5e6b(0xa,_0x528f81['Inject'](_0x533631)),_0x5a5e6b(0xb,_0x528f81[_0x9e1cf0(0x201)](_0x33d78d)),_0x5a5e6b(0xc,_0x528f81['ILogService']),_0x5a5e6b(0xd,_0x528f81[_0x9e1cf0(0x54f)]),_0x5a5e6b(0xe,_0x4e4b95[_0x9e1cf0(0x5b4)]),_0x5a5e6b(0xf,_0x528f81[_0x9e1cf0(0x395)]),_0x5a5e6b(0x10,_0x528f81[_0x9e1cf0(0x1d3)](_0x5c5006))],_0x54acb7[_0x9e1cf0(0x2f5)]),_0x54acb7[_0x9e1cf0(0x298)]=class extends _0x54acb7[_0x9e1cf0(0x4fe)]{constructor(_0x525c15,_0x5df7bf,_0x39d9ce,_0x48e053,_0x1572bc,_0x45b2ce,_0x5b39da,_0x27ff37,_0x3652f9,_0x39376f,_0x38a12b,_0x3d8adb,_0x2775cf,_0x6cca14){const _0x1a11ee=_0x9e1cf0;super(_0x525c15,_0x39d9ce,_0x5df7bf,_0x48e053,_0x1572bc,_0x45b2ce,_0x5b39da,_0x27ff37,_0x39376f,_0x38a12b,_0x3d8adb,_0x2775cf,_0x6cca14),this['unitID']=_0x525c15,this['type']=_0x5df7bf,this[_0x1a11ee(0x2dd)]=_0x3652f9;}['_createHandler'](){const _0x181a02=_0x9e1cf0,_0x4557d0=super[_0x181a02(0x268)]();return _0x4557d0['onTransformSelections']=_0x34a73a=>this['_sheetTransformSelectionsService'][_0x181a02(0x531)](_0x34a73a),_0x4557d0;}async[_0x9e1cf0(0x37b)](){const _0x4ceed8=_0x9e1cf0,_0x5d5c59=await super[_0x4ceed8(0x37b)]();return this[_0x4ceed8(0x17c)](this[_0x4ceed8(0x58a)][_0x4ceed8(0x1be)]((_0x16a7f4,_0x3d7d4e)=>{const _0x134dc4=_0x4ceed8;if(_0x16a7f4[_0x134dc4(0x5b7)]!==_0x528f81[_0x134dc4(0x272)][_0x134dc4(0x211)]||_0x3d7d4e!=null&&_0x3d7d4e['fromCollab']||_0x3d7d4e!=null&&_0x3d7d4e['onlyLocal'])return;const _0x281e37=_0x16a7f4[_0x134dc4(0x2f0)];if((_0x281e37==null?void 0x0:_0x281e37[_0x134dc4(0x4c0)])!==this[_0x134dc4(0x17e)])return;const _0xa8ed41=_0x16a7f4,_0x2e14f1=this[_0x134dc4(0x38f)][_0x134dc4(0x1f3)][_0x134dc4(0x499)](this['_compressMutationService'][_0x134dc4(0x1f3)][_0x134dc4(0x2b1)]()[_0x134dc4(0x36a)])([_0xa8ed41],null)||[_0xa8ed41];this[_0x134dc4(0x284)](_0x2e14f1[0x0]);})),_0x5d5c59;}},_0x54acb7[_0x9e1cf0(0x298)]=_0x3b2cae([_0x5a5e6b(0x3,_0x528f81[_0x9e1cf0(0x201)](_0x528f81[_0x9e1cf0(0x4a5)])),_0x5a5e6b(0x4,_0x528f81[_0x9e1cf0(0x201)](_0x54acb7[_0x9e1cf0(0x297)])),_0x5a5e6b(0x5,_0x528f81[_0x9e1cf0(0x201)](_0x24131a[_0x9e1cf0(0x26e)])),_0x5a5e6b(0x6,_0x528f81['Inject'](_0x528f81[_0x9e1cf0(0x4b3)])),_0x5a5e6b(0x7,_0x528f81[_0x9e1cf0(0x201)](_0x24131a[_0x9e1cf0(0x402)])),_0x5a5e6b(0x8,_0x528f81['Inject'](_0x31a637)),_0x5a5e6b(0x9,_0x528f81[_0x9e1cf0(0x360)]),_0x5a5e6b(0xa,_0x528f81['ICommandService']),_0x5a5e6b(0xb,_0x4e4b95['IMessageService']),_0x5a5e6b(0xc,_0x528f81[_0x9e1cf0(0x395)]),_0x5a5e6b(0xd,_0x528f81[_0x9e1cf0(0x1d3)](_0x5c5006))],_0x54acb7[_0x9e1cf0(0x298)]);var _0xbc650c=Object[_0x9e1cf0(0x188)],_0x1d6f43=Object[_0x9e1cf0(0x484)],_0x3d4fb7=(_0x2e62a6,_0x450cf0,_0x30b6fb,_0x4db8dc)=>{const _0x2f8914=_0x9e1cf0;for(var _0x4e49f0=_0x4db8dc>0x1?void 0x0:_0x4db8dc?_0x1d6f43(_0x450cf0,_0x30b6fb):_0x450cf0,_0x5a576e=_0x2e62a6[_0x2f8914(0x4e5)]-0x1,_0x15ee1f;_0x5a576e>=0x0;_0x5a576e--)(_0x15ee1f=_0x2e62a6[_0x5a576e])&&(_0x4e49f0=(_0x4db8dc?_0x15ee1f(_0x450cf0,_0x30b6fb,_0x4e49f0):_0x15ee1f(_0x4e49f0))||_0x4e49f0);return _0x4db8dc&&_0x4e49f0&&_0xbc650c(_0x450cf0,_0x30b6fb,_0x4e49f0),_0x4e49f0;},_0x318341=(_0x5ee113,_0x27e7fe)=>(_0x51df47,_0x106f46)=>_0x27e7fe(_0x51df47,_0x106f46,_0x5ee113);_0x54acb7[_0x9e1cf0(0x408)]=class extends _0x528f81[_0x9e1cf0(0x3c2)]{constructor(_0x295802,_0x3f8e84,_0x9dd013){const _0x3ba638=_0x9e1cf0;super(),_0x2f1a44(this,_0x3ba638(0x594),new Map()),_0x2f1a44(this,'_entityInit$',new _0x45efe7[(_0x3ba638(0x57c))]()),(this[_0x3ba638(0x314)]=_0x295802,this[_0x3ba638(0x337)]=_0x3f8e84,this['_univerInstanceService']=_0x9dd013,this['_init']());}['dispose'](){const _0x204b8f=_0x9e1cf0;super['dispose'](),this[_0x204b8f(0x594)][_0x204b8f(0x4af)](_0x42b76d=>_0x42b76d['dispose']()),this[_0x204b8f(0x594)]['clear']();}['getCollabEntity'](_0x12ec89){const _0x2906fc=_0x9e1cf0;var _0xfdbc2;return(_0xfdbc2=this['_entities'][_0x2906fc(0x3fa)](_0x12ec89))!=null?_0xfdbc2:null;}[_0x9e1cf0(0x38c)](_0x902624){const _0x522e23=_0x9e1cf0,_0x4e59d2=this[_0x522e23(0x238)](_0x902624);return _0x4e59d2?_0x45efe7['of'](_0x4e59d2):this[_0x522e23(0x59a)]['pipe'](_0x77a07['filter'](_0x5e9a99=>_0x5e9a99[_0x522e23(0x17e)]===_0x902624));}[_0x9e1cf0(0x37b)](){const _0x5d9936=_0x9e1cf0;this[_0x5d9936(0x48d)][_0x5d9936(0x3d6)](_0x528f81[_0x5d9936(0x3b6)][_0x5d9936(0x488)])[_0x5d9936(0x4ff)](_0x45efe7[_0x5d9936(0x1d6)](this['dispose$']),_0x77a07[_0x5d9936(0x3f9)](0x10))['subscribe'](async _0x379adc=>{const _0x4715a3=_0x5d9936,_0x1a1c5b=_0x379adc[_0x4715a3(0x4bc)](),_0x5c2c50=await this['_startCollaboration'](_0x1a1c5b,_0x23035c[_0x4715a3(0x488)]);this[_0x4715a3(0x594)][_0x4715a3(0x35c)](_0x1a1c5b,_0x5c2c50);}),this['_univerInstanceService'][_0x5d9936(0x3d6)](_0x528f81[_0x5d9936(0x3b6)][_0x5d9936(0x4aa)])[_0x5d9936(0x4ff)](_0x45efe7[_0x5d9936(0x1d6)](this[_0x5d9936(0x195)]),_0x77a07[_0x5d9936(0x3f9)](0x10))['pipe'](_0x77a07[_0x5d9936(0x26a)](_0x3d6f66=>!_0x3d6f66['getUnitId']()['startsWith']('__')))[_0x5d9936(0x24b)](async _0x146b45=>{const _0x1ba742=_0x5d9936,_0x46c888=_0x146b45[_0x1ba742(0x4bc)](),_0x572fc8=await this[_0x1ba742(0x307)](_0x46c888,_0x23035c[_0x1ba742(0x4aa)]);this[_0x1ba742(0x594)][_0x1ba742(0x35c)](_0x46c888,_0x572fc8);}),_0x45efe7[_0x5d9936(0x3a3)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x528f81[_0x5d9936(0x3b6)][_0x5d9936(0x488)]),this[_0x5d9936(0x48d)][_0x5d9936(0x544)](_0x528f81['UniverInstanceType'][_0x5d9936(0x4aa)]))[_0x5d9936(0x4ff)](_0x45efe7[_0x5d9936(0x1d6)](this['dispose$']))[_0x5d9936(0x24b)](_0x1b4254=>{const _0x82045a=_0x5d9936,_0x329e27=_0x1b4254['getUnitId'](),_0x1ad5f5=this[_0x82045a(0x594)][_0x82045a(0x3fa)](_0x329e27);_0x1ad5f5&&(_0x1ad5f5[_0x82045a(0x32c)](),this['_entities']['delete'](_0x329e27));});}async[_0x9e1cf0(0x307)](_0x223863,_0x22218b){const _0x4bc1a1=_0x9e1cf0,_0x5d70db=await this[_0x4bc1a1(0x337)][_0x4bc1a1(0x564)](_0x223863),_0x3b824b=this[_0x4bc1a1(0x314)][_0x4bc1a1(0x3b5)](this['_getCtorByUniverType'](_0x22218b),_0x223863,_0x22218b,_0x5d70db);return await _0x3b824b['init'](),this['_entityInit$'][_0x4bc1a1(0x542)](_0x3b824b),_0x3b824b;}[_0x9e1cf0(0x2e6)](_0x198af0){const _0x386737=_0x9e1cf0;switch(_0x198af0){case _0x23035c[_0x386737(0x4aa)]:return _0x54acb7[_0x386737(0x2f5)];case _0x23035c[_0x386737(0x488)]:return _0x54acb7[_0x386737(0x298)];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x198af0);}}},_0x54acb7[_0x9e1cf0(0x408)]=_0x3d4fb7([_0x318341(0x0,_0x528f81['Inject'](_0x528f81[_0x9e1cf0(0x4a5)])),_0x318341(0x1,_0x528f81[_0x9e1cf0(0x201)](_0x54acb7['CollaborationSessionService'])),_0x318341(0x2,_0x528f81['IUniverInstanceService'])],_0x54acb7[_0x9e1cf0(0x408)]);const _0x54ec49=[_0x9e1cf0(0x52d),_0x9e1cf0(0x3aa),_0x9e1cf0(0x2e7),_0x9e1cf0(0x37d),_0x9e1cf0(0x263),'gold400'];class _0x3698cd extends _0x528f81[_0x9e1cf0(0x255)]{constructor(){const _0x23f691=_0x9e1cf0;super(...arguments),_0x2f1a44(this,'_assignedColors',new Map()),_0x2f1a44(this,_0x23f691(0x20b),0x0);}[_0x9e1cf0(0x454)](_0xb6a496){const _0x497858=_0x9e1cf0;if(this[_0x497858(0x1a4)][_0x497858(0x54b)](_0xb6a496))return this['_assignedColors'][_0x497858(0x3fa)](_0xb6a496);const _0x2a846d=_0x54ec49[this[_0x497858(0x20b)]];return this[_0x497858(0x20b)]=(this[_0x497858(0x20b)]+0x1)%_0x54ec49[_0x497858(0x4e5)],this['_assignedColors'][_0x497858(0x35c)](_0xb6a496,_0x2a846d),_0x2a846d;}}var _0x4ed837=Object[_0x9e1cf0(0x188)],_0x3725d2=Object[_0x9e1cf0(0x484)],_0xabd6c8=(_0x303838,_0x397abd,_0x73aaf7,_0x55d297)=>{const _0x1bcfb2=_0x9e1cf0;for(var _0x4b185c=_0x55d297>0x1?void 0x0:_0x55d297?_0x3725d2(_0x397abd,_0x73aaf7):_0x397abd,_0x35c392=_0x303838[_0x1bcfb2(0x4e5)]-0x1,_0x3f9671;_0x35c392>=0x0;_0x35c392--)(_0x3f9671=_0x303838[_0x35c392])&&(_0x4b185c=(_0x55d297?_0x3f9671(_0x397abd,_0x73aaf7,_0x4b185c):_0x3f9671(_0x4b185c))||_0x4b185c);return _0x55d297&&_0x4b185c&&_0x4ed837(_0x397abd,_0x73aaf7,_0x4b185c),_0x4b185c;},_0x772793=(_0x4febb4,_0x11b888)=>(_0x1c95c6,_0x597697)=>_0x11b888(_0x1c95c6,_0x597697,_0x4febb4);const _0x397a07=0x12c,_0x3f982e=0x64;let _0xc56c3b=class extends _0x528f81['RxDisposable']{constructor(_0x4c468f,_0x3d4849,_0x26bee2,_0x3434f6,_0x6dde7f,_0x29c7f6,_0xd028ff,_0x3ca7a6,_0x2285e5){const _0xb2d1e4=_0x9e1cf0;super(),_0x2f1a44(this,_0xb2d1e4(0x573),!0x1),_0x2f1a44(this,_0xb2d1e4(0x37b),!0x1),_0x2f1a44(this,_0xb2d1e4(0x543),new _0x45efe7[(_0xb2d1e4(0x500))](new Map())),_0x2f1a44(this,_0xb2d1e4(0x1d2),this['_cursorInfo$'][_0xb2d1e4(0x518)]()),_0x2f1a44(this,_0xb2d1e4(0x379),new _0x45efe7[(_0xb2d1e4(0x500))]([])),_0x2f1a44(this,_0xb2d1e4(0x389),this[_0xb2d1e4(0x379)][_0xb2d1e4(0x4ff)](_0x45efe7[_0xb2d1e4(0x1e5)](_0x397a07))),_0x2f1a44(this,_0xb2d1e4(0x48c),_0x528f81['debounce'](_0x2c56df=>{const _0x3931c6=_0xb2d1e4,_0xa45a35={'eventID':_0x24131a[_0x3931c6(0x190)][_0x3931c6(0x3fd)],'data':{'unitID':this[_0x3931c6(0x17e)],'memberID':this[_0x3931c6(0x587)]['getMemberID'](),'selection':_0x4cd343(_0x2c56df)}};this[_0x3931c6(0x587)][_0x3931c6(0x1de)](_0xa45a35,this['unitID']);},_0x3f982e)),(this[_0xb2d1e4(0x17e)]=_0x4c468f,this['_session']=_0x3d4849,this[_0xb2d1e4(0x314)]=_0x26bee2,this[_0xb2d1e4(0x41a)]=_0x3434f6,this[_0xb2d1e4(0x22a)]=_0x6dde7f,this[_0xb2d1e4(0x3ae)]=_0x29c7f6,this['_transformService']=_0xd028ff,this[_0xb2d1e4(0x48d)]=_0x3ca7a6,this[_0xb2d1e4(0x58a)]=_0x2285e5);}get[_0x9e1cf0(0x345)](){const _0x4a0682=_0x9e1cf0;return this[_0x4a0682(0x543)]['getValue']();}get['roomMembers'](){const _0x253a7c=_0x9e1cf0;return this['_roomMembers$'][_0x253a7c(0x54e)]();}[_0x9e1cf0(0x32c)](){const _0x2f2f38=_0x9e1cf0;super[_0x2f2f38(0x32c)](),this[_0x2f2f38(0x543)]['next'](new Map()),this[_0x2f2f38(0x543)][_0x2f2f38(0x5a4)](),this[_0x2f2f38(0x379)][_0x2f2f38(0x542)]([]),this[_0x2f2f38(0x379)][_0x2f2f38(0x5a4)]();}[_0x9e1cf0(0x1ee)](){const _0x3e3e15=_0x9e1cf0;this['_init']||(this[_0x3e3e15(0x37b)]=!0x0,this[_0x3e3e15(0x587)][_0x3e3e15(0x577)]['pipe'](_0x45efe7[_0x3e3e15(0x1d6)](this[_0x3e3e15(0x195)]))[_0x3e3e15(0x24b)](_0x8b52a8=>{const _0x1e7c59=_0x3e3e15;_0x8b52a8===_0x3b6a56['ONLINE']?this[_0x1e7c59(0x34d)]():this['_toggleOffline']();}),this[_0x3e3e15(0x587)][_0x3e3e15(0x36e)]['pipe'](_0x45efe7[_0x3e3e15(0x1d6)](this[_0x3e3e15(0x195)]))[_0x3e3e15(0x24b)](_0x357dd6=>{const _0x1ee7d2=_0x3e3e15,_0x553c70=_0x357dd6[_0x1ee7d2(0x1c6)];_0x553c70===_0x24131a[_0x1ee7d2(0x190)]['UPDATE_CURSOR']&&this[_0x1ee7d2(0x56a)](_0x357dd6),_0x553c70===_0x24131a[_0x1ee7d2(0x190)]['USERS_LEAVE']&&this[_0x1ee7d2(0x3ea)](_0x357dd6);}),this[_0x3e3e15(0x17c)](this[_0x3e3e15(0x58a)][_0x3e3e15(0x1be)](_0x3978f1=>{const _0x1b5b25=_0x3e3e15,_0x3c8445=_0x3978f1['params'];_0x3c8445!=null&&this['_online']&&_0x3978f1['id']===_0x5a172a[_0x1b5b25(0x595)]['id']&&_0x3c8445[_0x1b5b25(0x4c0)]===this[_0x1b5b25(0x17e)]&&_0x3c8445[_0x1b5b25(0x3a0)]===!0x1&&this[_0x1b5b25(0x48c)](_0x3c8445[_0x1b5b25(0x30f)]);})),this['_syncEditingCollabCursorService'][_0x3e3e15(0x55a)][_0x3e3e15(0x4ff)](_0x45efe7['takeUntil'](this[_0x3e3e15(0x195)]))[_0x3e3e15(0x24b)](_0x41dc31=>{const _0x132d1d=_0x3e3e15;if((_0x41dc31==null?void 0x0:_0x41dc31['unitID'])!==this['unitID'])return;const _0x3c4452={'eventID':_0x24131a[_0x132d1d(0x190)][_0x132d1d(0x3fd)],'data':_0x41dc31};this['_onCursorUpdate'](_0x3c4452);}),this[_0x3e3e15(0x17c)](this[_0x3e3e15(0x58a)][_0x3e3e15(0x1be)](_0x51ec19=>{const _0x3d857c=_0x3e3e15;if(_0x51ec19[_0x3d857c(0x2f0)]==null)return;const _0x536c93=_0x51ec19[_0x3d857c(0x2f0)];if(_0x51ec19['id']!==_0x5a172a['RichTextEditingMutation']['id']||_0x536c93[_0x3d857c(0x4c0)]!==this[_0x3d857c(0x17e)])return;const _0x2d2d10={'id':'doc.mutation.rich-text-editing','params':_0x536c93},_0x1d87ac=this[_0x3d857c(0x345)];for(const [_0x5a7b39,_0x30ff54]of _0x1d87ac){const _0x1fbd01={'id':_0x3d857c(0x56f),'params':{'unitId':this[_0x3d857c(0x17e)],'actions':null,'textRanges':_0x30ff54[_0x3d857c(0x30f)]}},_0xab551d=this[_0x3d857c(0x467)][_0x3d857c(0x3fc)](_0x2d2d10,_0x1fbd01,!0x1);if(_0x24131a['isTransformMutationFailure'](_0xab551d))throw _0xab551d['error'];_0x1d87ac[_0x3d857c(0x35c)](_0x5a7b39,{..._0x30ff54,'ranges':_0xab551d[_0x3d857c(0x3ba)][_0x3d857c(0x2f0)][_0x3d857c(0x172)]});}queueMicrotask(()=>{const _0x27539f=_0x3d857c;this[_0x27539f(0x543)]['next'](_0x1d87ac);});})));}[_0x9e1cf0(0x56a)](_0x37fc44){const _0x6a7a=_0x9e1cf0;var _0xc84b38,_0x17eb28;const {memberID:_0x5cdbb6,selection:_0xb73d3c}=_0x37fc44[_0x6a7a(0x1f9)],_0x50428e=_0x10549a(_0xb73d3c),_0x5e8537=(_0x17eb28=(_0xc84b38=this[_0x6a7a(0x22a)][_0x6a7a(0x38d)](this[_0x6a7a(0x17e)],_0x5cdbb6))==null?void 0x0:_0xc84b38[_0x6a7a(0x398)])!=null?_0x17eb28:'Unknown\x20user',_0x24268f={'color':this[_0x6a7a(0x41a)][_0x6a7a(0x454)](_0x5cdbb6),'name':_0x5e8537,'ranges':_0x50428e},_0xe1c981=this['cursorInfo'];_0xe1c981['set'](_0x5cdbb6,_0x24268f),this[_0x6a7a(0x543)][_0x6a7a(0x542)](_0xe1c981);}['_onCursorDelete'](_0x3f53e3){const _0x31de4f=_0x9e1cf0,{memberID:_0xf3f90e}=_0x3f53e3[_0x31de4f(0x1f9)],_0x57d745=this['cursorInfo'];_0x57d745[_0x31de4f(0x52f)](_0xf3f90e),this[_0x31de4f(0x543)][_0x31de4f(0x542)](_0x57d745);}[_0x9e1cf0(0x34d)](){const _0x5dc7f7=_0x9e1cf0;var _0x240560;if(this[_0x5dc7f7(0x573)]=!0x0,((_0x240560=this[_0x5dc7f7(0x48d)][_0x5dc7f7(0x1c5)]())==null?void 0x0:_0x240560[_0x5dc7f7(0x4bc)]())!==this['unitID'])return;const _0x24912e=this[_0x5dc7f7(0x314)]['get'](_0x5a172a['DocSelectionManagerService'])['getDocRanges']();Array[_0x5dc7f7(0x51d)](_0x24912e)&&_0x24912e[_0x5dc7f7(0x4e5)]>0x0&&this[_0x5dc7f7(0x48c)](_0x24912e);}[_0x9e1cf0(0x5b5)](){const _0x1d989a=_0x9e1cf0;this[_0x1d989a(0x573)]=!0x1;}};_0xc56c3b=_0xabd6c8([_0x772793(0x2,_0x528f81['Inject'](_0x528f81[_0x9e1cf0(0x4a5)])),_0x772793(0x3,_0x528f81['Inject'](_0x3698cd)),_0x772793(0x4,_0x528f81[_0x9e1cf0(0x201)](_0x2a4af8)),_0x772793(0x5,_0x528f81[_0x9e1cf0(0x201)](_0x33d78d)),_0x772793(0x6,_0x24131a['ITransformService']),_0x772793(0x7,_0x528f81[_0x9e1cf0(0x57f)]),_0x772793(0x8,_0x528f81[_0x9e1cf0(0x54f)])],_0xc56c3b);var _0xd822a1=Object['defineProperty'],_0x15ef5e=Object[_0x9e1cf0(0x484)],_0x3f5fe9=(_0x11d2e8,_0x587095,_0xc15d68,_0x5a38d8)=>{const _0x40545f=_0x9e1cf0;for(var _0x1bc263=_0x5a38d8>0x1?void 0x0:_0x5a38d8?_0x15ef5e(_0x587095,_0xc15d68):_0x587095,_0x2cd9e7=_0x11d2e8[_0x40545f(0x4e5)]-0x1,_0x134c51;_0x2cd9e7>=0x0;_0x2cd9e7--)(_0x134c51=_0x11d2e8[_0x2cd9e7])&&(_0x1bc263=(_0x5a38d8?_0x134c51(_0x587095,_0xc15d68,_0x1bc263):_0x134c51(_0x1bc263))||_0x1bc263);return _0x5a38d8&&_0x1bc263&&_0xd822a1(_0x587095,_0xc15d68,_0x1bc263),_0x1bc263;},_0x44e8c0=(_0x10161f,_0x1c52ad)=>(_0x9e90ac,_0x5bb576)=>_0x1c52ad(_0x9e90ac,_0x5bb576,_0x10161f);const _0x946958=0x12c,_0x2ad414=0x64,_0x230c79=()=>{let _0x520f21=[],_0x1d9c7d=!0x1;return _0x11fb90=>{const _0x24f023=_0x2385;_0x520f21[_0x24f023(0x202)](_0x11fb90),_0x1d9c7d||(_0x1d9c7d=!0x0,setTimeout(()=>{const _0x5e4178=_0x24f023;_0x520f21[_0x5e4178(0x4af)](_0xabb12c=>_0xabb12c()),_0x520f21=[],_0x1d9c7d=!0x1;}));};};let _0x5658ad=class extends _0x528f81[_0x9e1cf0(0x3c2)]{constructor(_0x32752d,_0x344677,_0x3532a9,_0x511e48,_0x2bdcf1,_0x44f04c,_0x1f765d,_0x3e8c0c){const _0x7b5bad=_0x9e1cf0;super(),_0x2f1a44(this,'_online',!0x1),_0x2f1a44(this,_0x7b5bad(0x37b),!0x1),_0x2f1a44(this,_0x7b5bad(0x543),new _0x45efe7['BehaviorSubject'](new Map())),_0x2f1a44(this,_0x7b5bad(0x1d2),this[_0x7b5bad(0x543)][_0x7b5bad(0x518)]()),_0x2f1a44(this,_0x7b5bad(0x379),new _0x45efe7[(_0x7b5bad(0x500))]([])),_0x2f1a44(this,_0x7b5bad(0x389),this[_0x7b5bad(0x379)][_0x7b5bad(0x4ff)](_0x45efe7[_0x7b5bad(0x1e5)](_0x946958))),_0x2f1a44(this,_0x7b5bad(0x48c),_0x528f81[_0x7b5bad(0x27d)]((_0x4d7205,_0x1cf8e3)=>{const _0x20df2d=_0x7b5bad,_0x300cf0={'eventID':_0x24131a[_0x20df2d(0x190)][_0x20df2d(0x3fd)],'data':{'unitID':this['unitID'],'memberID':this[_0x20df2d(0x587)]['getMemberID'](),'selection':_0x27b67c[_0x20df2d(0x328)](_0x4d7205,_0x1cf8e3['range'])}};this[_0x20df2d(0x587)][_0x20df2d(0x1de)](_0x300cf0,this[_0x20df2d(0x17e)]);},_0x2ad414)),(this[_0x7b5bad(0x17e)]=_0x32752d,this[_0x7b5bad(0x587)]=_0x344677,this[_0x7b5bad(0x314)]=_0x3532a9,this['_colorAssignService']=_0x511e48,this['_memberService']=_0x2bdcf1,this[_0x7b5bad(0x48d)]=_0x44f04c,this['_commandService']=_0x1f765d,this['_refRangeService']=_0x3e8c0c);}get[_0x9e1cf0(0x345)](){const _0x229194=_0x9e1cf0;return this[_0x229194(0x543)][_0x229194(0x54e)]();}get[_0x9e1cf0(0x231)](){const _0x3405d6=_0x9e1cf0;return this[_0x3405d6(0x379)][_0x3405d6(0x54e)]();}[_0x9e1cf0(0x32c)](){const _0x3e9d35=_0x9e1cf0;super[_0x3e9d35(0x32c)](),this[_0x3e9d35(0x543)][_0x3e9d35(0x542)](new Map()),this['_cursorInfo$'][_0x3e9d35(0x5a4)](),this[_0x3e9d35(0x379)][_0x3e9d35(0x542)]([]),this[_0x3e9d35(0x379)][_0x3e9d35(0x5a4)]();}[_0x9e1cf0(0x1ee)](){const _0x173726=_0x9e1cf0;this[_0x173726(0x37b)]||(this['_init']=!0x0,this[_0x173726(0x587)]['sessionStatus$'][_0x173726(0x4ff)](_0x45efe7[_0x173726(0x1d6)](this['dispose$']))['subscribe'](_0xb016d0=>{const _0x68857=_0x173726;_0xb016d0===_0x3b6a56['ONLINE']?this[_0x68857(0x34d)]():this['_toggleOffline']();}),this[_0x173726(0x587)][_0x173726(0x36e)][_0x173726(0x4ff)](_0x45efe7[_0x173726(0x1d6)](this[_0x173726(0x195)]))[_0x173726(0x24b)](_0x2c7fc4=>{const _0x16eecb=_0x173726,_0x2d538b=_0x2c7fc4[_0x16eecb(0x1c6)];_0x2d538b===_0x24131a[_0x16eecb(0x190)][_0x16eecb(0x3fd)]&&this[_0x16eecb(0x56a)](_0x2c7fc4),_0x2d538b===_0x24131a[_0x16eecb(0x190)][_0x16eecb(0x429)]&&this['_onCursorDelete'](_0x2c7fc4);}),this[_0x173726(0x57a)](),this['disposeWithMe'](this[_0x173726(0x58a)]['onCommandExecuted'](_0x424947=>{const _0x3ca188=_0x173726;if(this['_online']&&_0x424947['id']===_0x2b9a61[_0x3ca188(0x462)]['id']&&_0x424947[_0x3ca188(0x2f0)]['unitId']===this[_0x3ca188(0x17e)]){const _0x4c6a55=_0x424947[_0x3ca188(0x2f0)];this['_updateLocalCursor'](_0x4c6a55[_0x3ca188(0x335)],_0x4c6a55[_0x3ca188(0x2ce)][0x0]);}})));}['_onCursorUpdate'](_0x4d9ab2){const _0x4214a0=_0x9e1cf0;var _0x4ca3d9,_0x154364;const {memberID:_0x473632,selection:_0x1dc991}=_0x4d9ab2[_0x4214a0(0x1f9)],{sheetName:_0x390de3,range:_0x37fdc5}=_0x27b67c[_0x4214a0(0x3d8)](_0x1dc991),_0x102a7f={'name':(_0x154364=(_0x4ca3d9=this['_memberService'][_0x4214a0(0x38d)](this[_0x4214a0(0x17e)],_0x473632))==null?void 0x0:_0x4ca3d9['name'])!=null?_0x154364:_0x4214a0(0x46a),'range':this['_getMergeRange'](_0x390de3,_0x37fdc5),'sheetID':_0x390de3,'color':this[_0x4214a0(0x41a)][_0x4214a0(0x454)](_0x473632),'selection':_0x1dc991},_0x4453ca=this['cursorInfo'];_0x4453ca['set'](_0x473632,_0x102a7f),this[_0x4214a0(0x543)][_0x4214a0(0x542)](_0x4453ca);}[_0x9e1cf0(0x3ea)](_0x3e72d9){const _0x1a8056=_0x9e1cf0,{memberID:_0x3d0fc4}=_0x3e72d9[_0x1a8056(0x1f9)],_0x732865=this[_0x1a8056(0x345)];_0x732865['delete'](_0x3d0fc4),this[_0x1a8056(0x543)]['next'](_0x732865);}[_0x9e1cf0(0x32b)](_0x297ac6,_0x215c81){const _0x5a9d21=_0x9e1cf0;var _0x5aa6fb,_0x488ca9;const _0x3e46af=(_0x488ca9=(_0x5aa6fb=this[_0x5a9d21(0x48d)][_0x5a9d21(0x4a4)](this[_0x5a9d21(0x17e)]))==null?void 0x0:_0x5aa6fb['getSheetBySheetId'](_0x297ac6))==null?void 0x0:_0x488ca9[_0x5a9d21(0x1bd)]();return(_0x3e46af==null?void 0x0:_0x3e46af[_0x5a9d21(0x29e)](_0x45c86f=>_0x528f81[_0x5a9d21(0x323)]['contains'](_0x45c86f,_0x215c81)))||_0x215c81;}['_onRefRangeChange'](){const _0x3b1e2=_0x9e1cf0,_0xcfd613=new _0x528f81[(_0x3b1e2(0x1b2))](),_0x3f94ce=_0x230c79(),_0x4b0d9e=()=>{const _0x5c27f7=_0x3b1e2;_0xcfd613[_0x5c27f7(0x32c)]();const _0xb8385f=(_0x4980c2,_0x92015b,_0x4c1634,_0x55273c)=>{const _0x30e3c1=_0x5c27f7;let _0x3f0064=[];switch(_0x4980c2['id']){case _0x2b9a61[_0x30e3c1(0x25c)][_0x30e3c1(0x30e)]:{_0x3f0064=_0x2b9a61[_0x30e3c1(0x3b2)](_0x4980c2,_0x55273c);break;}case _0x2b9a61['EffectRefRangId'][_0x30e3c1(0x2de)]:{_0x3f0064=_0x2b9a61[_0x30e3c1(0x463)](_0x4980c2,_0x55273c);break;}case _0x2b9a61[_0x30e3c1(0x25c)]['InsertColCommandId']:{_0x3f0064=_0x2b9a61[_0x30e3c1(0x35d)](_0x4980c2,_0x55273c);break;}case _0x2b9a61[_0x30e3c1(0x25c)][_0x30e3c1(0x4a0)]:{_0x3f0064=_0x2b9a61['handleInsertRangeMoveDown'](_0x4980c2,_0x55273c);break;}case _0x2b9a61[_0x30e3c1(0x25c)][_0x30e3c1(0x39a)]:{_0x3f0064=_0x2b9a61[_0x30e3c1(0x31f)](_0x4980c2,_0x55273c);break;}case _0x2b9a61['EffectRefRangId'][_0x30e3c1(0x3a4)]:{_0x3f0064=_0x2b9a61[_0x30e3c1(0x273)](_0x4980c2,_0x55273c);break;}case _0x2b9a61['EffectRefRangId']['MoveRangeCommandId']:{_0x3f0064=_0x2b9a61[_0x30e3c1(0x47c)](_0x4980c2,_0x55273c);break;}case _0x2b9a61[_0x30e3c1(0x25c)][_0x30e3c1(0x26b)]:{_0x3f0064=_0x2b9a61[_0x30e3c1(0x435)](_0x4980c2,_0x55273c);break;}case _0x2b9a61[_0x30e3c1(0x25c)][_0x30e3c1(0x17b)]:{_0x3f0064=_0x2b9a61[_0x30e3c1(0x567)](_0x4980c2,_0x55273c);break;}}const _0x57c1f0=_0x2b9a61[_0x30e3c1(0x311)](_0x3f0064,_0x55273c),_0x2b94bb=this[_0x30e3c1(0x345)][_0x30e3c1(0x3fa)](_0x92015b);if(_0x2b94bb&&_0x57c1f0){const _0x5a5f72={..._0x2b94bb,'range':_0x57c1f0};this['cursorInfo'][_0x30e3c1(0x35c)](_0x92015b,_0x5a5f72),_0x3f94ce(()=>{const _0x359a5c=_0x30e3c1,_0x42e287=this[_0x359a5c(0x520)][_0x359a5c(0x20e)](_0x57c1f0,_0x1eb421=>(_0x42e287[_0x359a5c(0x32c)](),_0xb8385f(_0x1eb421,_0x92015b,_0x4c1634,_0x57c1f0)));_0xcfd613[_0x359a5c(0x2a1)](_0x42e287);});}return{'redos':[],'undos':[]};};this[_0x5c27f7(0x345)]['forEach']((_0x426132,_0x27d075)=>{const _0x564478=_0x5c27f7,{range:_0x4263f5,sheetID:_0x2a4eb0}=_0x426132,_0x1dee4e=this[_0x564478(0x520)][_0x564478(0x20e)](_0x4263f5,_0x589c2b=>(_0x1dee4e[_0x564478(0x32c)](),_0xb8385f(_0x589c2b,_0x27d075,_0x2a4eb0,_0x4263f5)));_0xcfd613['add'](_0x1dee4e);});};this['disposeWithMe'](_0x528f81[_0x3b1e2(0x4b2)](this[_0x3b1e2(0x543)]['subscribe'](()=>{_0x4b0d9e();})));}[_0x9e1cf0(0x34d)](){const _0x19bade=_0x9e1cf0;var _0x16dfe8,_0x1efb9d;if(this[_0x19bade(0x573)]=!0x0,((_0x16dfe8=this['_univerInstanceService'][_0x19bade(0x1c5)]())==null?void 0x0:_0x16dfe8[_0x19bade(0x4bc)]())!==this['unitID'])return;const _0xcb5ad7=(_0x1efb9d=this['_injector'][_0x19bade(0x3fa)](_0x2b9a61[_0x19bade(0x1ae)])[_0x19bade(0x262)]())==null?void 0x0:_0x1efb9d[0x0],_0x6ee6c9=this[_0x19bade(0x48d)][_0x19bade(0x563)](_0x528f81[_0x19bade(0x3b6)][_0x19bade(0x488)])[_0x19bade(0x26c)]();_0xcb5ad7&&_0x6ee6c9&&this[_0x19bade(0x48c)](_0x6ee6c9[_0x19bade(0x40a)](),_0xcb5ad7);}['_toggleOffline'](){const _0x9ee487=_0x9e1cf0;this[_0x9ee487(0x573)]=!0x1;}};_0x5658ad=_0x3f5fe9([_0x44e8c0(0x2,_0x528f81[_0x9e1cf0(0x201)](_0x528f81['Injector'])),_0x44e8c0(0x3,_0x528f81[_0x9e1cf0(0x201)](_0x3698cd)),_0x44e8c0(0x4,_0x528f81[_0x9e1cf0(0x201)](_0x2a4af8)),_0x44e8c0(0x5,_0x528f81['IUniverInstanceService']),_0x44e8c0(0x6,_0x528f81[_0x9e1cf0(0x54f)]),_0x44e8c0(0x7,_0x528f81[_0x9e1cf0(0x201)](_0x2b9a61[_0x9e1cf0(0x417)]))],_0x5658ad);var _0x7846b=Object[_0x9e1cf0(0x188)],_0x49b4c3=Object[_0x9e1cf0(0x484)],_0x377292=(_0x4464fe,_0x449f81,_0x4a6c0f,_0x454954)=>{const _0x30ce47=_0x9e1cf0;for(var _0x40142f=_0x454954>0x1?void 0x0:_0x454954?_0x49b4c3(_0x449f81,_0x4a6c0f):_0x449f81,_0x1e0add=_0x4464fe[_0x30ce47(0x4e5)]-0x1,_0x1c1a97;_0x1e0add>=0x0;_0x1e0add--)(_0x1c1a97=_0x4464fe[_0x1e0add])&&(_0x40142f=(_0x454954?_0x1c1a97(_0x449f81,_0x4a6c0f,_0x40142f):_0x1c1a97(_0x40142f))||_0x40142f);return _0x454954&&_0x40142f&&_0x7846b(_0x449f81,_0x4a6c0f,_0x40142f),_0x40142f;},_0x38361b=(_0x1024de,_0x287053)=>(_0x3ad933,_0x1c15c9)=>_0x287053(_0x3ad933,_0x1c15c9,_0x1024de);let _0x1981fb=class extends _0x528f81['RxDisposable']{constructor(_0x381d0d,_0x41d4ca,_0x2d320b){const _0x4e633a=_0x9e1cf0;super(),_0x2f1a44(this,'_entities',new Map()),_0x2f1a44(this,_0x4e633a(0x59a),new _0x45efe7[(_0x4e633a(0x57c))]()),(this[_0x4e633a(0x48d)]=_0x381d0d,this[_0x4e633a(0x314)]=_0x41d4ca,this['_collabSessionService']=_0x2d320b,this[_0x4e633a(0x37b)]());}['dispose'](){const _0x2c2b4d=_0x9e1cf0;super['dispose'](),this['_entityInit$'][_0x2c2b4d(0x5a4)](),this[_0x2c2b4d(0x594)]['forEach'](_0x4724e8=>_0x4724e8[_0x2c2b4d(0x32c)]());}[_0x9e1cf0(0x5a8)](_0x28be6a){const _0x46aef3=_0x9e1cf0;return this['_entities'][_0x46aef3(0x54b)](_0x28be6a)?this['_entities'][_0x46aef3(0x3fa)](_0x28be6a)['cursorInfo$']:this[_0x46aef3(0x59a)][_0x46aef3(0x4ff)](_0x45efe7[_0x46aef3(0x26a)](_0x2994e4=>_0x2994e4[_0x46aef3(0x17e)]===_0x28be6a),_0x45efe7[_0x46aef3(0x4d7)](_0x2d2866=>_0x2d2866[_0x46aef3(0x1d2)]));}[_0x9e1cf0(0x37b)](){const _0x174bc8=_0x9e1cf0;this[_0x174bc8(0x48d)][_0x174bc8(0x3d6)](_0x528f81[_0x174bc8(0x3b6)]['UNIVER_SHEET'])[_0x174bc8(0x4ff)](_0x45efe7[_0x174bc8(0x1d6)](this[_0x174bc8(0x195)]))[_0x174bc8(0x24b)](async _0x4aa074=>{const _0x38a35e=_0x174bc8,_0x39617b=_0x4aa074['getUnitId'](),_0x4a1ca5=await this[_0x38a35e(0x364)](_0x39617b);this['_entityInit$']['next'](_0x4a1ca5),this['_entities'][_0x38a35e(0x35c)](_0x39617b,_0x4a1ca5);}),this[_0x174bc8(0x48d)][_0x174bc8(0x3d6)](_0x528f81[_0x174bc8(0x3b6)][_0x174bc8(0x4aa)])[_0x174bc8(0x4ff)](_0x45efe7[_0x174bc8(0x1d6)](this['dispose$']))['pipe'](_0x45efe7['filter'](_0x409831=>!_0x409831['getUnitId']()['startsWith']('__')))['subscribe'](async _0x28a71f=>{const _0x55912e=_0x174bc8,_0x154806=_0x28a71f[_0x55912e(0x4bc)](),_0x5031c5=await this[_0x55912e(0x254)](_0x154806);this[_0x55912e(0x59a)][_0x55912e(0x542)](_0x5031c5),this['_entities'][_0x55912e(0x35c)](_0x154806,_0x5031c5);}),_0x45efe7[_0x174bc8(0x3a3)](this[_0x174bc8(0x48d)]['getTypeOfUnitDisposed$'](_0x528f81[_0x174bc8(0x3b6)][_0x174bc8(0x4aa)]),this[_0x174bc8(0x48d)][_0x174bc8(0x544)](_0x528f81[_0x174bc8(0x3b6)][_0x174bc8(0x488)]))['pipe'](_0x45efe7['takeUntil'](this[_0x174bc8(0x195)]))[_0x174bc8(0x24b)](_0x4ce810=>{const _0x44b2dd=_0x174bc8,_0x42d38e=_0x4ce810[_0x44b2dd(0x4bc)](),_0xd40c25=this[_0x44b2dd(0x594)][_0x44b2dd(0x3fa)](_0x42d38e);_0xd40c25&&(_0xd40c25[_0x44b2dd(0x32c)](),this[_0x44b2dd(0x594)][_0x44b2dd(0x52f)](_0x42d38e));});}async[_0x9e1cf0(0x364)](_0x46992b){const _0x390911=_0x9e1cf0,_0x19f4f7=await this[_0x390911(0x337)][_0x390911(0x564)](_0x46992b),_0x19b163=this[_0x390911(0x314)][_0x390911(0x3b5)](_0x5658ad,_0x46992b,_0x19f4f7);return _0x19b163[_0x390911(0x1ee)](),_0x19b163;}async[_0x9e1cf0(0x254)](_0x48da60){const _0x4c1e85=_0x9e1cf0,_0x25e357=await this[_0x4c1e85(0x337)][_0x4c1e85(0x564)](_0x48da60),_0x3e245b=this[_0x4c1e85(0x314)]['createInstance'](_0xc56c3b,_0x48da60,_0x25e357);return _0x3e245b[_0x4c1e85(0x1ee)](),_0x3e245b;}};_0x1981fb=_0x377292([_0x38361b(0x0,_0x528f81[_0x9e1cf0(0x57f)]),_0x38361b(0x1,_0x528f81[_0x9e1cf0(0x201)](_0x528f81[_0x9e1cf0(0x4a5)])),_0x38361b(0x2,_0x528f81['Inject'](_0x54acb7[_0x9e1cf0(0x3c9)]))],_0x1981fb);const _0x264b2f=0x14,_0x46a587=0xc8,_0xd59fca=0x4,_0x2da2d6=0x5;function _0x2c62de(_0x14d74d,_0x4d01e5){const _0x473c66=_0x9e1cf0;let {radius:_0x35d992,width:_0x4961db,height:_0x573572}=_0x4d01e5;_0x35d992=_0x35d992!=null?_0x35d992:0x0,_0x4961db=_0x4961db!=null?_0x4961db:0x1e,_0x573572=_0x573572!=null?_0x573572:0x1e;let _0x4b28d2=0x0,_0x301af8=0x0,_0x4ba092=0x0;_0x4b28d2=_0x301af8=_0x4ba092=Math['min'](_0x35d992,_0x4961db/0x2,_0x573572/0x2),_0x14d74d['beginPath'](),_0x14d74d['moveTo'](_0x4b28d2,0x0),_0x14d74d[_0x473c66(0x4fc)](_0x4961db-_0x301af8,0x0),_0x14d74d['arc'](_0x4961db-_0x301af8,_0x301af8,_0x301af8,Math['PI']*0x3/0x2,0x0,!0x1),_0x14d74d[_0x473c66(0x4fc)](_0x4961db,_0x573572-_0x4ba092),_0x14d74d[_0x473c66(0x339)](_0x4961db-_0x4ba092,_0x573572-_0x4ba092,_0x4ba092,0x0,Math['PI']/0x2,!0x1),_0x14d74d[_0x473c66(0x4fc)](0x0,_0x573572),_0x14d74d['lineTo'](0x0,_0x4b28d2),_0x14d74d[_0x473c66(0x339)](_0x4b28d2,_0x4b28d2,_0x4b28d2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x14d74d[_0x473c66(0x361)](),_0x4d01e5[_0x473c66(0x413)]&&(_0x14d74d[_0x473c66(0x235)](),_0x14d74d[_0x473c66(0x49c)]=_0x4d01e5[_0x473c66(0x413)],_0x4d01e5[_0x473c66(0x1cc)]===_0x473c66(0x425)?_0x14d74d[_0x473c66(0x413)](_0x473c66(0x425)):_0x14d74d[_0x473c66(0x413)](),_0x14d74d[_0x473c66(0x572)]());}class _0x2132be extends _0x1e9711[_0x9e1cf0(0x3a5)]{constructor(_0x4b7a4c,_0x367dc6){const _0x23c925=_0x9e1cf0;super(_0x4b7a4c,_0x367dc6),_0x2f1a44(this,_0x23c925(0x2c4)),_0x2f1a44(this,'text'),(this['color']=_0x367dc6==null?void 0x0:_0x367dc6[_0x23c925(0x2c4)],this[_0x23c925(0x33b)]=_0x367dc6==null?void 0x0:_0x367dc6[_0x23c925(0x33b)]);}static[_0x9e1cf0(0x53e)](_0x4b23a3,_0x5dab90){const _0x3af669=_0x9e1cf0,{text:_0xee33fa,color:_0x264d61}=_0x5dab90;_0x4b23a3['save'](),_0x4b23a3[_0x3af669(0x378)]=_0x3af669(0x5bb);const _0x46d0e0=_0x4b23a3[_0x3af669(0x173)](_0xee33fa)[_0x3af669(0x2a5)],_0x31e6df=Math[_0x3af669(0x2e5)](_0x46d0e0+0x2*_0xd59fca,_0x46a587);_0x2c62de(_0x4b23a3,{'height':_0x264b2f,'radius':0x4,'width':_0x31e6df,'fill':_0x264d61,'evented':!0x1}),_0x4b23a3['fillStyle']='#FFF';const _0x287613=_0xd59fca,_0x1f6de5=_0x264b2f-_0x2da2d6,_0x2e4878=_0x46a587-0x2*_0xd59fca;if(_0x46d0e0>_0x2e4878){let _0x11f0dd='',_0x3be29d=0x0;for(const _0x2223cf of _0xee33fa){const _0xff60b2=_0x4b23a3[_0x3af669(0x173)](_0x2223cf)['width'];if(_0x3be29d+_0xff60b2<=_0x2e4878-_0x4b23a3[_0x3af669(0x173)](_0x3af669(0x229))[_0x3af669(0x2a5)])_0x11f0dd+=_0x2223cf,_0x3be29d+=_0xff60b2;else{_0x11f0dd+=_0x3af669(0x229);break;}}_0x4b23a3[_0x3af669(0x441)](_0x11f0dd,_0x287613,_0x1f6de5);}else _0x4b23a3[_0x3af669(0x441)](_0xee33fa,_0x287613,_0x1f6de5);_0x4b23a3['restore']();}[_0x9e1cf0(0x41b)](_0x9ff71f){const _0x35af6f=_0x9e1cf0;_0x2132be[_0x35af6f(0x53e)](_0x9ff71f,this);}}const _0x499f34=_0x9e1cf0(0x416),_0xeb55f5=_0x9e1cf0(0x53b),_0x287ea9='collab-rect-range-',_0x2f08ce=0x6,_0x322686=1.5,_0x14ce4b=0x4,_0x28ceaf=1.5,_0x5731a6=_0x9e1cf0(0x4da);class _0x31c7de{constructor(_0x7f177f,_0x589603,_0x482706,_0x522ee3){const _0x511569=_0x9e1cf0;_0x2f1a44(this,_0x511569(0x59c),[]),_0x2f1a44(this,'_anchor',null),_0x2f1a44(this,'_textBubble',null),_0x2f1a44(this,_0x511569(0x588),null),_0x2f1a44(this,'_hideTimer',null),_0x2f1a44(this,_0x511569(0x51b),null),(this[_0x511569(0x40e)]=_0x7f177f,this[_0x511569(0x3d9)]=_0x589603,this[_0x511569(0x2a3)]=_0x482706,this['_document']=_0x522ee3,this[_0x511569(0x1cf)]());}set[_0x9e1cf0(0x491)](_0x1ee901){const _0x517bd4=_0x9e1cf0;_0x1ee901?(this[_0x517bd4(0x588)]&&this['_anchorDot'][_0x517bd4(0x2d9)](),this[_0x517bd4(0x1d8)]&&this[_0x517bd4(0x1d8)][_0x517bd4(0x2e2)]()):(this[_0x517bd4(0x588)]&&this[_0x517bd4(0x588)][_0x517bd4(0x2e2)](),this[_0x517bd4(0x1d8)]&&this['_textBubble'][_0x517bd4(0x2d9)]());}[_0x9e1cf0(0x32c)](){const _0x3d346d=_0x9e1cf0;for(const _0x400001 of this[_0x3d346d(0x59c)])_0x400001[_0x3d346d(0x32c)]();this[_0x3d346d(0x1d8)]&&this[_0x3d346d(0x1d8)][_0x3d346d(0x32c)](),this[_0x3d346d(0x588)]&&this[_0x3d346d(0x588)][_0x3d346d(0x32c)](),this['_anchor']&&this[_0x3d346d(0x2ff)][_0x3d346d(0x32c)](),this[_0x3d346d(0x51b)]&&this['_eventUnsubscribe']();}[_0x9e1cf0(0x1cf)](){const _0x314129=_0x9e1cf0;var _0x18c6b8;const {_docSkeleton:_0x5bdcb6,_document:_0x7a956c}=this,{color:_0x25da52,name:_0x37e4dc,ranges:_0x29df02}=this['_cursor'],_0x43e46b=_0x7a956c[_0x314129(0x50e)](),{docsLeft:_0xbcee68,docsTop:_0x25ff3e}=_0x43e46b,_0x58d496=new _0x43faad[(_0x314129(0x4ce))](_0x43e46b,_0x5bdcb6);for(const {startOffset:_0x2170e0,endOffset:_0x51740d,collapsed:_0x336918,isActive:_0x46e9cd}of _0x29df02){const _0x165435=_0x5bdcb6['findNodePositionByCharIndex'](_0x2170e0),_0x4fb57f=_0x5bdcb6[_0x314129(0x2c2)](_0x51740d);if(_0x46e9cd){const {contentBoxPointGroup:_0x553c2f}=_0x58d496['getRangePointData'](_0x4fb57f,_0x4fb57f);if(_0x553c2f['length']===0x0)continue;this[_0x314129(0x1b6)](_0x25da52,_0x553c2f,_0xbcee68,_0x25ff3e,_0x37e4dc),this[_0x314129(0x51b)]=this[_0x314129(0x31a)]();}if(!_0x336918&&_0x165435&&_0x4fb57f){if(_0x43faad[_0x314129(0x407)](_0x165435,_0x4fb57f)){const _0x42e19c=new _0x43faad[(_0x314129(0x4ca))](_0x43e46b,_0x5bdcb6),{pointGroup:_0x3a50fb}=(_0x18c6b8=_0x42e19c['getRangePointData'](_0x165435,_0x4fb57f))!=null?_0x18c6b8:{};if(_0x3a50fb==null||_0x3a50fb[_0x314129(0x4e5)]===0x0)continue;this[_0x314129(0x583)](_0x25da52,_0x3a50fb,_0xbcee68,_0x25ff3e);}else{const {contentBoxPointGroup:_0x29100f}=_0x58d496[_0x314129(0x423)](_0x165435,_0x4fb57f);if(_0x29100f[_0x314129(0x4e5)]===0x0)continue;this['_drawTextRange'](_0x25da52,_0x29100f,_0xbcee68,_0x25ff3e);}}}}[_0x9e1cf0(0x1b6)](_0x45a39a,_0x592e12,_0x2ee2f2,_0x417aaa,_0x54a4a0){const _0x4f3e9b=_0x9e1cf0,_0x49ca9b=this[_0x4f3e9b(0x1c4)](_0x592e12),{left:_0x53a5da,top:_0x2065e9,height:_0x368e94}=_0x49ca9b,_0x5cd92f=this[_0x4f3e9b(0x586)](),_0x1cd572=_0x28ceaf/_0x5cd92f,_0x5189c5=new _0x1e9711[(_0x4f3e9b(0x29a))](_0x499f34+_0x528f81[_0x4f3e9b(0x33c)][_0x4f3e9b(0x2d7)](_0x2f08ce),{'left':_0x53a5da+_0x2ee2f2-_0x1cd572,'top':_0x2065e9+_0x417aaa,'height':_0x368e94,'width':_0x322686,'fill':_0x45a39a||_0x1e9711[_0x4f3e9b(0x556)](_0x528f81[_0x4f3e9b(0x444)][_0x4f3e9b(0x283)],0x0),'strokeWidth':_0x1cd572,'stroke':_0x5731a6,'evented':!0x0});this[_0x4f3e9b(0x2ff)]=_0x5189c5,this['_scene'][_0x4f3e9b(0x220)](_0x5189c5,_0x43faad[_0x4f3e9b(0x1f5)]);const _0x202879=new _0x1e9711[(_0x4f3e9b(0x29a))](_0x499f34+_0x528f81[_0x4f3e9b(0x33c)][_0x4f3e9b(0x2d7)](_0x2f08ce),{'left':_0x53a5da+_0x2ee2f2-_0x1cd572,'top':_0x2065e9+_0x417aaa-_0x14ce4b/0x2,'height':_0x14ce4b,'width':_0x14ce4b,'fill':_0x45a39a||_0x1e9711[_0x4f3e9b(0x556)](_0x528f81[_0x4f3e9b(0x444)][_0x4f3e9b(0x283)],0x0),'strokeWidth':0x0,'stroke':_0x45a39a||_0x1e9711['getColor'](_0x528f81[_0x4f3e9b(0x444)][_0x4f3e9b(0x283)],0x0),'evented':!0x1});this['_anchorDot']=_0x202879,this[_0x4f3e9b(0x3d9)][_0x4f3e9b(0x220)](_0x202879,_0x43faad[_0x4f3e9b(0x1f5)]);const _0x1ecbf9=new _0x2132be(_0x499f34+_0x528f81[_0x4f3e9b(0x33c)][_0x4f3e9b(0x2d7)](_0x2f08ce),{'left':_0x53a5da+_0x2ee2f2-_0x1cd572,'top':_0x2065e9+_0x417aaa-_0x264b2f,'text':_0x54a4a0,'color':_0x45a39a});this[_0x4f3e9b(0x1d8)]=_0x1ecbf9,this[_0x4f3e9b(0x3d9)]['addObject'](_0x1ecbf9,_0x43faad[_0x4f3e9b(0x1f5)]),this[_0x4f3e9b(0x491)]=!0x1;}[_0x9e1cf0(0x31a)](){const _0x3d83a8=_0x9e1cf0,_0x22e6ef=this[_0x3d83a8(0x2ff)][_0x3d83a8(0x31b)][_0x3d83a8(0x50f)](()=>{this['_hover']=!0x0;}),_0x10a045=this['_anchor'][_0x3d83a8(0x1b8)]['subscribeEvent'](()=>{const _0x32b199=_0x3d83a8;this['_hideTimer']&&clearTimeout(this[_0x32b199(0x184)]),this['_hideTimer']=setTimeout(()=>{const _0x2341da=_0x32b199;this[_0x2341da(0x491)]=!0x1;},0x7d0);});return()=>{const _0x2fabe0=_0x3d83a8;_0x22e6ef[_0x2fabe0(0x541)](),_0x10a045[_0x2fabe0(0x541)]();};}[_0x9e1cf0(0x40d)](_0x3f7b37,_0x2dde39,_0x3f2a86,_0x141367){const _0x1402fb=_0x9e1cf0,_0x185f84=new _0x528f81[(_0x1402fb(0x2ac))](_0x3f7b37)[_0x1402fb(0x539)](0.2)[_0x1402fb(0x59d)](),_0x1c7ffa=new _0x1e9711[(_0x1402fb(0x460))](_0xeb55f5+_0x528f81[_0x1402fb(0x33c)][_0x1402fb(0x2d7)](_0x2f08ce),{'pointsGroup':_0x2dde39,'fill':_0x185f84||_0x1e9711[_0x1402fb(0x556)](_0x528f81['COLORS'][_0x1402fb(0x283)],0.2),'left':_0x3f2a86,'top':_0x141367,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1402fb(0x202)](_0x1c7ffa),this[_0x1402fb(0x3d9)]['addObject'](_0x1c7ffa,_0x43faad[_0x1402fb(0x1f5)]);}['_drawRectRange'](_0x224149,_0xbaeea1,_0x39cffd,_0x255cb1){const _0x1b05dd=_0x9e1cf0,_0x55276c=new _0x528f81[(_0x1b05dd(0x2ac))](_0x224149)[_0x1b05dd(0x539)](0.2)[_0x1b05dd(0x59d)](),_0x2dc388=new _0x1e9711['RegularPolygon'](_0x287ea9+_0x528f81[_0x1b05dd(0x33c)][_0x1b05dd(0x2d7)](_0x2f08ce),{'pointsGroup':_0xbaeea1,'fill':_0x55276c||_0x1e9711['getColor'](_0x528f81[_0x1b05dd(0x444)]['black'],0.2),'left':_0x39cffd,'top':_0x255cb1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1b05dd(0x59c)][_0x1b05dd(0x202)](_0x2dc388),this[_0x1b05dd(0x3d9)][_0x1b05dd(0x220)](_0x2dc388,_0x43faad['TEXT_RANGE_LAYER_INDEX']);}[_0x9e1cf0(0x1c4)](_0x390b5d){const _0x2b9384=_0x390b5d[0x0],_0x2c51dc=_0x2b9384[0x0],_0x161df9=_0x2b9384[0x2],{x:_0x1ab30d,y:_0x528067}=_0x2c51dc,{x:_0x54ffba,y:_0x2afa46}=_0x161df9;return{'left':_0x1ab30d,'top':_0x528067,'width':_0x54ffba-_0x1ab30d,'height':_0x2afa46-_0x528067};}[_0x9e1cf0(0x586)](){const _0x13f6c8=_0x9e1cf0,{scaleX:_0x2c9f4b,scaleY:_0x445ac0}=this[_0x13f6c8(0x3d9)][_0x13f6c8(0x503)]();return Math[_0x13f6c8(0x3bc)](_0x2c9f4b,_0x445ac0);}}var _0x54bba8=Object[_0x9e1cf0(0x188)],_0x2495ea=Object['getOwnPropertyDescriptor'],_0x1d0b4b=(_0x51e7e7,_0x575b21,_0x43ca02,_0x37e1f6)=>{const _0x26b2ec=_0x9e1cf0;for(var _0x2474fb=_0x37e1f6>0x1?void 0x0:_0x37e1f6?_0x2495ea(_0x575b21,_0x43ca02):_0x575b21,_0x200cf1=_0x51e7e7[_0x26b2ec(0x4e5)]-0x1,_0x4d25d8;_0x200cf1>=0x0;_0x200cf1--)(_0x4d25d8=_0x51e7e7[_0x200cf1])&&(_0x2474fb=(_0x37e1f6?_0x4d25d8(_0x575b21,_0x43ca02,_0x2474fb):_0x4d25d8(_0x2474fb))||_0x2474fb);return _0x37e1f6&&_0x2474fb&&_0x54bba8(_0x575b21,_0x43ca02,_0x2474fb),_0x2474fb;},_0x1880c2=(_0x56563c,_0x503917)=>(_0x3603ea,_0x2f4130)=>_0x503917(_0x3603ea,_0x2f4130,_0x56563c);let _0x10aca7=class extends _0x528f81[_0x9e1cf0(0x3c2)]{constructor(_0x329851,_0x21ad89,_0x414906,_0x3caf30,_0x4ec40e){const _0x6cdacb=_0x9e1cf0;super(),_0x2f1a44(this,_0x6cdacb(0x205),[]),_0x2f1a44(this,_0x6cdacb(0x4ae),[]),(this[_0x6cdacb(0x507)]=_0x329851,this[_0x6cdacb(0x316)]=_0x21ad89,this[_0x6cdacb(0x3f2)]=_0x414906,this[_0x6cdacb(0x58a)]=_0x3caf30,this[_0x6cdacb(0x371)]=_0x4ec40e,this[_0x6cdacb(0x37b)]());}[_0x9e1cf0(0x37b)](){const _0x3e6315=_0x9e1cf0,_0x317717=this[_0x3e6315(0x507)][_0x3e6315(0x4c0)],_0x15ac97=this[_0x3e6315(0x316)];this[_0x3e6315(0x17c)](_0x45efe7['combineLatest']([this[_0x3e6315(0x3f2)][_0x3e6315(0x5a8)](_0x317717),this['_themeService'][_0x3e6315(0x34c)]])[_0x3e6315(0x4ff)](_0x77a07[_0x3e6315(0x222)](([_0x1aac4e,_0x543343])=>({'skeleton':_0x15ac97['getSkeleton'](),'cursors':[..._0x1aac4e[_0x3e6315(0x305)]()]['flatMap'](_0x3a5672=>({..._0x3a5672,'color':_0x543343[_0x3a5672[_0x3e6315(0x2c4)]]}))})))[_0x3e6315(0x24b)](_0x53ea2b=>{const _0x1b0722=_0x3e6315;if(this[_0x1b0722(0x3ab)](),_0x53ea2b){const {skeleton:_0xa054b0,cursors:_0x52da35}=_0x53ea2b;this[_0x1b0722(0x2c7)](_0xa054b0,_0x52da35);}})),this['_initResize'](),this[_0x3e6315(0x375)]();}[_0x9e1cf0(0x2c7)](_0x3f2dd4,_0x18efe3){const _0x5d6664=_0x9e1cf0,{scene:_0x1c6926,mainComponent:_0x464cfb}=this[_0x5d6664(0x507)],_0x238dec=_0x18efe3[_0x5d6664(0x222)](_0xdc362e=>new _0x31c7de(_0xdc362e,_0x1c6926,_0x3f2dd4,_0x464cfb));this[_0x5d6664(0x205)]=_0x238dec,this[_0x5d6664(0x4ae)]=_0x18efe3;}[_0x9e1cf0(0x1ca)](){const _0x42cfed=_0x9e1cf0;this[_0x42cfed(0x3ab)]();const {scene:_0x389fa6,mainComponent:_0x3deb7c}=this['_context'],_0x4b511f=this[_0x42cfed(0x316)][_0x42cfed(0x2da)](),_0x42c894=this[_0x42cfed(0x4ae)][_0x42cfed(0x222)](_0x263b85=>new _0x31c7de(_0x263b85,_0x389fa6,_0x4b511f,_0x3deb7c));this[_0x42cfed(0x205)]=_0x42c894;}['_removeCollabCursors'](){const _0x2db685=_0x9e1cf0;this[_0x2db685(0x205)][_0x2db685(0x4af)](_0x17be19=>_0x17be19[_0x2db685(0x32c)]()),this[_0x2db685(0x205)]=[];}['_initCommandExecutedListener'](){const _0x1f9ea3=_0x9e1cf0,_0x11c89f=[_0x43faad['SetDocZoomRatioOperation']['id']];this[_0x1f9ea3(0x17c)](this[_0x1f9ea3(0x58a)][_0x1f9ea3(0x1be)](_0x187f8c=>{const _0x27e21c=_0x1f9ea3;_0x11c89f['includes'](_0x187f8c['id'])&&_0x187f8c['params']['unitId']===this[_0x27e21c(0x507)][_0x27e21c(0x4c0)]&&this[_0x27e21c(0x1ca)]();}));}[_0x9e1cf0(0x58d)](){const _0x5b504f=_0x9e1cf0;this[_0x5b504f(0x17c)](_0x528f81[_0x5b504f(0x394)](this[_0x5b504f(0x507)]['engine'][_0x5b504f(0x29b)])[_0x5b504f(0x4ff)](_0x77a07[_0x5b504f(0x26a)](_0x255336=>_0x255336[_0x5b504f(0x5b7)]===_0x1e9711[_0x5b504f(0x22d)][_0x5b504f(0x308)]),_0x77a07[_0x5b504f(0x39e)](0x10))[_0x5b504f(0x24b)](()=>{const _0x2eff0f=_0x5b504f;this[_0x2eff0f(0x1ca)]();}));}};_0x10aca7=_0x1d0b4b([_0x1880c2(0x1,_0x528f81[_0x9e1cf0(0x201)](_0x5a172a[_0x9e1cf0(0x210)])),_0x1880c2(0x2,_0x528f81[_0x9e1cf0(0x201)](_0x1981fb)),_0x1880c2(0x3,_0x528f81['ICommandService']),_0x1880c2(0x4,_0x528f81[_0x9e1cf0(0x201)](_0x528f81[_0x9e1cf0(0x372)]))],_0x10aca7);const _0x43e2bb=0x1,_0x3e6a05=1.5;class _0x4132f9 extends _0x1e9711[_0x9e1cf0(0x3a5)]{constructor(_0x43eee8,_0x17a296){const _0x147437=_0x9e1cf0;super(_0x43eee8,_0x17a296),_0x2f1a44(this,_0x147437(0x440)),_0x2f1a44(this,_0x147437(0x514),!0x1),_0x2f1a44(this,'_range'),_0x2f1a44(this,_0x147437(0x55e),''),_0x2f1a44(this,_0x147437(0x478),_0x147437(0x243)),_0x2f1a44(this,_0x147437(0x241)),(_0x17a296&&this[_0x147437(0x4d6)](_0x17a296),this['onPointerEnter$'][_0x147437(0x50f)](()=>this[_0x147437(0x4d6)]({'hovered':!0x0})),this[_0x147437(0x1b8)][_0x147437(0x50f)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x9e1cf0(0x4d6)](_0x15fa41){const _0x460749=_0x9e1cf0;var _0xfee487,_0x1d24b8,_0x3a5b1c,_0x45b1dd,_0xec9cf3,_0xefe4d;this[_0x460749(0x440)]=(_0xfee487=_0x15fa41[_0x460749(0x2c4)])!=null?_0xfee487:this['_color'],this[_0x460749(0x514)]=(_0x1d24b8=_0x15fa41[_0x460749(0x33e)])!=null?_0x1d24b8:this[_0x460749(0x514)],this[_0x460749(0x41f)]=(_0x3a5b1c=_0x15fa41[_0x460749(0x3ca)])!=null?_0x3a5b1c:this['_range'],this[_0x460749(0x55e)]=(_0x45b1dd=_0x15fa41[_0x460749(0x398)])!=null?_0x45b1dd:this[_0x460749(0x55e)],this[_0x460749(0x478)]=(_0xec9cf3=_0x15fa41[_0x460749(0x3bf)])!=null?_0xec9cf3:this[_0x460749(0x478)],this[_0x460749(0x241)]=(_0xefe4d=_0x15fa41['backgroundColor'])!=null?_0xefe4d:this[_0x460749(0x241)],this['transformByState']({'width':_0x15fa41[_0x460749(0x2a5)],'height':_0x15fa41[_0x460749(0x276)]});}[_0x9e1cf0(0x412)](_0x1e1a6c){const _0x3b11c9=_0x9e1cf0,{row:_0x5ffe11,column:_0x364fd2}=_0x1e1a6c;if(_0x5ffe11>=this[_0x3b11c9(0x41f)][_0x3b11c9(0x4e8)]&&_0x5ffe11<=this[_0x3b11c9(0x41f)][_0x3b11c9(0x2bc)]&&_0x364fd2>=this[_0x3b11c9(0x41f)][_0x3b11c9(0x5b0)]&&_0x364fd2<=this[_0x3b11c9(0x41f)][_0x3b11c9(0x32e)]){this[_0x3b11c9(0x4d6)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x9e1cf0(0x439)](_0x29d014){return!0x1;}[_0x9e1cf0(0x41b)](_0x52ec36){const _0x2ebc54=_0x9e1cf0;_0x1e9711[_0x2ebc54(0x29a)][_0x2ebc54(0x53e)](_0x52ec36,{'width':this[_0x2ebc54(0x2a5)],'height':this[_0x2ebc54(0x276)],'strokeWidth':_0x3e6a05,'stroke':this[_0x2ebc54(0x440)],'evented':!0x1,'fill':this[_0x2ebc54(0x241)]}),this[_0x2ebc54(0x514)]&&(_0x52ec36['save'](),_0x52ec36[_0x2ebc54(0x1e7)](0x1,0x0,0x0,0x1,this[_0x2ebc54(0x2a5)],this['_labelPosition']==='bottom'?0x0:-_0x264b2f),_0x2132be['drawWith'](_0x52ec36,{'text':this['_name'],'color':this[_0x2ebc54(0x440)]}),_0x52ec36[_0x2ebc54(0x572)]());}}var _0x550780=Object[_0x9e1cf0(0x188)],_0x1b1ab7=Object[_0x9e1cf0(0x484)],_0x32343a=(_0x3279da,_0x2256b3,_0x2361f8,_0x2c57e6)=>{const _0x3fcc2b=_0x9e1cf0;for(var _0x430d6f=_0x2c57e6>0x1?void 0x0:_0x2c57e6?_0x1b1ab7(_0x2256b3,_0x2361f8):_0x2256b3,_0x249a72=_0x3279da[_0x3fcc2b(0x4e5)]-0x1,_0x5796c9;_0x249a72>=0x0;_0x249a72--)(_0x5796c9=_0x3279da[_0x249a72])&&(_0x430d6f=(_0x2c57e6?_0x5796c9(_0x2256b3,_0x2361f8,_0x430d6f):_0x5796c9(_0x430d6f))||_0x430d6f);return _0x2c57e6&&_0x430d6f&&_0x550780(_0x2256b3,_0x2361f8,_0x430d6f),_0x430d6f;},_0x117fe4=(_0x17194e,_0x257d85)=>(_0x33c9c6,_0x5423c1)=>_0x257d85(_0x33c9c6,_0x5423c1,_0x17194e);const _0x540f07=0x1389;let _0xa8f5ae=class extends _0x528f81['RxDisposable']{constructor(_0x35d6a8,_0x57f4f6,_0x146ffe,_0x52ebef){const _0xb0aba7=_0x9e1cf0;super(),_0x2f1a44(this,_0xb0aba7(0x4ae),new Set()),_0x2f1a44(this,_0xb0aba7(0x2f6),null),(this[_0xb0aba7(0x507)]=_0x35d6a8,this[_0xb0aba7(0x576)]=_0x57f4f6,this[_0xb0aba7(0x3f2)]=_0x146ffe,this[_0xb0aba7(0x371)]=_0x52ebef,this[_0xb0aba7(0x37b)]());}[_0x9e1cf0(0x37b)](){const _0x471e0e=_0x9e1cf0;this[_0x471e0e(0x576)][_0x471e0e(0x187)]['pipe'](_0x77a07[_0x471e0e(0x1d6)](this[_0x471e0e(0x195)]),_0x77a07['switchMap'](_0x3b6084=>{const _0xe8176f=_0x471e0e;if(_0x3b6084){const _0x25d9a5=_0x3b6084['sheetId'];return _0x45efe7[_0xe8176f(0x2bb)](this['_collabCursorController'][_0xe8176f(0x5a8)](this['_context'][_0xe8176f(0x4c0)]),this[_0xe8176f(0x371)][_0xe8176f(0x34c)])[_0xe8176f(0x4ff)](_0x77a07[_0xe8176f(0x222)](([_0x4116a7,_0x42d736])=>{const _0x326351=new Map();return _0x4116a7['forEach']((_0x223be3,_0x51f65c)=>{const _0x1e1e90=_0x2385;if(_0x223be3[_0x1e1e90(0x455)]===_0x25d9a5){const _0x2ad0c4={..._0x223be3};_0x2ad0c4['color']=_0x42d736[_0x223be3[_0x1e1e90(0x2c4)]],_0x326351[_0x1e1e90(0x35c)](_0x51f65c,_0x2ad0c4);}}),{'skeleton':_0x3b6084,'cursors':_0x326351};}));}return _0x45efe7['of']({'skeleton':null,'cursors':new Map()});}))[_0x471e0e(0x24b)](({skeleton:_0x3f8452,cursors:_0x2bb18a})=>{const _0x2dbf1c=_0x471e0e;this[_0x2dbf1c(0x3ab)](),_0x3f8452&&this[_0x2dbf1c(0x2c7)](_0x3f8452,_0x2bb18a);}),this[_0x471e0e(0x576)][_0x471e0e(0x187)]['subscribe'](_0x13fc41=>{const _0x143e5f=_0x471e0e;if(_0x13fc41==null)return;const {skeleton:_0x2530e6}=_0x13fc41,{scene:_0x5168ab}=this['_context'];_0x5168ab[_0x143e5f(0x239)]['subscribeEvent'](_0x528f81[_0x143e5f(0x27d)](_0x4bcaaf=>{const _0x23fb77=_0x143e5f;var _0x16affe,_0x2c5032;const {offsetX:_0x46d34b,offsetY:_0x8b0cb2}=_0x4bcaaf,{x:_0x26715f,y:_0x2fc791}=_0x5168ab['getRelativeToViewportCoord'](_0x1e9711[_0x23fb77(0x27f)][_0x23fb77(0x24f)]([_0x46d34b,_0x8b0cb2])),{scaleX:_0x5c9081,scaleY:_0x403ef4}=_0x5168ab[_0x23fb77(0x503)](),_0x1129f7=_0x5168ab[_0x23fb77(0x5a1)](_0xafca37[_0x23fb77(0x2d4)]['VIEW_MAIN']),_0x119f7c=_0x5168ab[_0x23fb77(0x489)](_0x1e9711[_0x23fb77(0x27f)][_0x23fb77(0x24f)]([_0x26715f,_0x2fc791]),_0x1129f7),_0x221c61=_0x2530e6[_0x23fb77(0x3f1)](_0x46d34b,_0x8b0cb2,_0x5c9081,_0x403ef4,_0x119f7c);((_0x16affe=this['_lastPointer'])==null?void 0x0:_0x16affe['column'])===_0x221c61[_0x23fb77(0x28d)]&&((_0x2c5032=this[_0x23fb77(0x2f6)])==null?void 0x0:_0x2c5032[_0x23fb77(0x51a)])===_0x221c61['row']||this['_cursors'][_0x23fb77(0x4af)](_0x3b0eeb=>{const _0x4d917d=_0x23fb77;_0x3b0eeb[_0x4d917d(0x412)](_0x221c61);});},0x64));});}[_0x9e1cf0(0x2c7)](_0x1930c3,_0x24dfc8){const _0x15cfab=_0x9e1cf0;var _0x28e192;const _0x18ad98=(_0x28e192=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x28e192[_0x15cfab(0x2f7)];if(!_0x18ad98)return;const _0x38f775=this['_getSheetObject']();if(!_0x38f775)return;this[_0x15cfab(0x4ae)][_0x15cfab(0x4af)](_0x10902f=>{const _0x67c3bd=_0x15cfab;_0x10902f[_0x67c3bd(0x558)]();});const {scene:_0x1bfebe}=_0x38f775,_0x54c5af=_0x2cf8f9(Array[_0x15cfab(0x250)](_0x24dfc8[_0x15cfab(0x305)]()))[_0x15cfab(0x222)](_0x358c4a=>{const _0x1352be=_0x15cfab,{color:_0x2d987e,range:_0x4e75aa,name:_0x741c90,selection:_0x3ca2fc,sheetID:_0x501707}=_0x358c4a,{startColumn:_0x3e2f17,startRow:_0x20e328,endColumn:_0x4f0acc,endRow:_0x1af6c6}=_0x4e75aa,_0x1290ef=_0xafca37[_0x1352be(0x18f)](_0x20e328,_0x3e2f17,_0x1bfebe,_0x18ad98),_0x31457e=_0xafca37[_0x1352be(0x18f)](_0x1af6c6,_0x4f0acc,_0x1bfebe,_0x18ad98),{columnHeaderHeightAndMarginTop:_0x37a9c6}=_0x18ad98,{startX:_0x2d21fd,startY:_0x4648e9}=_0x1290ef,{endX:_0x4a2cc1,endY:_0x406eda}=_0x31457e,_0x16fc81=_0x4a2cc1-_0x2d21fd,_0xcf814d=_0x406eda-_0x4648e9,_0x4563b6={'labelPosition':_0x4648e9-_0x37a9c6>=_0x264b2f?'top':_0x1352be(0x1f4),'sheetID':_0x501707,'range':_0x4e75aa,'color':_0x2d987e,'name':_0x741c90,'selection':_0x3ca2fc,'left':_0x2d21fd,'top':_0x4648e9,'width':_0x16fc81,'height':_0xcf814d,'evented':!0x1,'zIndex':_0x540f07};return new _0x4132f9(_0x741c90,_0x4563b6);});_0x1bfebe['addObjects'](_0x54c5af,_0x43e2bb),this[_0x15cfab(0x4ae)]=new Set(_0x54c5af);}['_removeCollabCursors'](){const _0x5af48a=_0x9e1cf0;var _0x296c03;(_0x296c03=this[_0x5af48a(0x4ae)])==null||_0x296c03[_0x5af48a(0x4af)](_0x1e281c=>_0x1e281c[_0x5af48a(0x32c)]());}[_0x9e1cf0(0x37a)](){const _0x5b28ba=_0x9e1cf0;return _0xafca37[_0x5b28ba(0x181)](this[_0x5b28ba(0x507)]['unit'],this[_0x5b28ba(0x507)]);}};_0xa8f5ae=_0x32343a([_0x117fe4(0x1,_0x528f81['Inject'](_0xafca37[_0x9e1cf0(0x3af)])),_0x117fe4(0x2,_0x528f81[_0x9e1cf0(0x201)](_0x1981fb)),_0x117fe4(0x3,_0x528f81[_0x9e1cf0(0x201)](_0x528f81['ThemeService']))],_0xa8f5ae);function _0x2cf8f9(_0x1a37c7){const _0x318d44=_0x9e1cf0,_0x49b2b7=new Map();return _0x1a37c7[_0x318d44(0x4af)](_0x40e756=>{const _0xe06c31=_0x318d44;if(_0x49b2b7[_0xe06c31(0x54b)](_0x40e756[_0xe06c31(0x249)])){const _0x1d940b=_0x49b2b7[_0xe06c31(0x3fa)](_0x40e756[_0xe06c31(0x249)]);_0x1d940b[_0xe06c31(0x398)]+=',\x20'+_0x40e756[_0xe06c31(0x398)];}else _0x49b2b7['set'](_0x40e756['selection'],_0x40e756);}),Array[_0x318d44(0x250)](_0x49b2b7[_0x318d44(0x305)]());}var _0x1495a3=function(){const _0xf764cd=_0x9e1cf0;return _0x1495a3=Object['assign']||function(_0x45ebbd){const _0x2b943c=_0x2385;for(var _0x1c0a69,_0x3f2f81=0x1,_0x1eeb73=arguments['length'];_0x3f2f81<_0x1eeb73;_0x3f2f81++){_0x1c0a69=arguments[_0x3f2f81];for(var _0xa0d830 in _0x1c0a69)Object[_0x2b943c(0x48f)][_0x2b943c(0x1a7)][_0x2b943c(0x1af)](_0x1c0a69,_0xa0d830)&&(_0x45ebbd[_0xa0d830]=_0x1c0a69[_0xa0d830]);}return _0x45ebbd;},_0x1495a3[_0xf764cd(0x2c3)](this,arguments);},_0x4d358f=function(_0x18b013,_0x19c60d){const _0x1be6a5=_0x9e1cf0;var _0x5097b7={};for(var _0x2b2768 in _0x18b013)Object[_0x1be6a5(0x48f)][_0x1be6a5(0x1a7)][_0x1be6a5(0x1af)](_0x18b013,_0x2b2768)&&_0x19c60d[_0x1be6a5(0x25e)](_0x2b2768)<0x0&&(_0x5097b7[_0x2b2768]=_0x18b013[_0x2b2768]);if(_0x18b013!=null&&typeof Object[_0x1be6a5(0x561)]==_0x1be6a5(0x4c3)){for(var _0x3685ae=0x0,_0x2b2768=Object[_0x1be6a5(0x561)](_0x18b013);_0x3685ae<_0x2b2768[_0x1be6a5(0x4e5)];_0x3685ae++)_0x19c60d[_0x1be6a5(0x25e)](_0x2b2768[_0x3685ae])<0x0&&Object['prototype'][_0x1be6a5(0x4be)]['call'](_0x18b013,_0x2b2768[_0x3685ae])&&(_0x5097b7[_0x2b2768[_0x3685ae]]=_0x18b013[_0x2b2768[_0x3685ae]]);}return _0x5097b7;},_0x1bd800=_0x15c846[_0x9e1cf0(0x49b)](function(_0x91478c,_0xe53a67){const _0x1ea2a6=_0x9e1cf0;var _0x1b294c=_0x91478c[_0x1ea2a6(0x381)],_0x543e7e=_0x91478c['id'],_0x367074=_0x91478c[_0x1ea2a6(0x387)],_0x545583=_0x91478c['extend'],_0x83b8d7=_0x4d358f(_0x91478c,[_0x1ea2a6(0x381),'id',_0x1ea2a6(0x387),_0x1ea2a6(0x504)]),_0x22c90e=_0x1ea2a6(0x3d5)['concat'](_0x543e7e,'\x20')[_0x1ea2a6(0x213)](_0x367074||'')['trim'](),_0x30fad2=_0x15c846['useRef']('_'[_0x1ea2a6(0x213)](_0x1fecb0()));return _0x515695(_0x1b294c,''[_0x1ea2a6(0x213)](_0x543e7e),{'defIds':_0x1b294c[_0x1ea2a6(0x1e3)],'idSuffix':_0x30fad2[_0x1ea2a6(0x266)]},_0x1495a3({'ref':_0xe53a67,'className':_0x22c90e},_0x83b8d7),_0x545583);});function _0x515695(_0x219dad,_0x316d88,_0x4c2b82,_0x2de6e6,_0xbdf321){const _0xc473a2=_0x9e1cf0;return _0x15c846['createElement'](_0x219dad[_0xc473a2(0x232)],_0x1495a3(_0x1495a3({'key':_0x316d88},_0x31d610(_0x219dad,_0x4c2b82,_0xbdf321)),_0x2de6e6),(_0x4df30c(_0x219dad,_0x4c2b82)[_0xc473a2(0x175)]||[])[_0xc473a2(0x222)](function(_0x47f94b,_0x276eae){const _0x50554b=_0xc473a2;return _0x515695(_0x47f94b,''[_0x50554b(0x213)](_0x316d88,'-')[_0x50554b(0x213)](_0x219dad[_0x50554b(0x232)],'-')[_0x50554b(0x213)](_0x276eae),_0x4c2b82,void 0x0,_0xbdf321);}));}function _0x31d610(_0x44128c,_0xde176d,_0xd82bd8){const _0x2383a7=_0x9e1cf0;var _0x11bb7c=_0x1495a3({},_0x44128c[_0x2383a7(0x20f)]);_0xd82bd8!=null&&_0xd82bd8[_0x2383a7(0x4a9)]&&_0x11bb7c[_0x2383a7(0x413)]===_0x2383a7(0x4a9)&&(_0x11bb7c[_0x2383a7(0x413)]=_0xd82bd8[_0x2383a7(0x4a9)]);var _0x4429c3=_0xde176d[_0x2383a7(0x1e3)];return!_0x4429c3||_0x4429c3[_0x2383a7(0x4e5)]===0x0||(_0x44128c['tag']===_0x2383a7(0x2af)&&_0x11bb7c[_0x2383a7(0x3ac)]&&(_0x11bb7c[_0x2383a7(0x3ac)]=_0x11bb7c[_0x2383a7(0x3ac)]+_0xde176d[_0x2383a7(0x557)]),Object[_0x2383a7(0x47e)](_0x11bb7c)[_0x2383a7(0x4af)](function(_0xf3d2bc){const _0x2fa71d=_0x2383a7;var _0x5c9a6c=_0xf3d2bc[0x0],_0x58eb82=_0xf3d2bc[0x1];typeof _0x58eb82==_0x2fa71d(0x571)&&(_0x11bb7c[_0x5c9a6c]=_0x58eb82[_0x2fa71d(0x1f7)](/url\(#(.*)\)/,_0x2fa71d(0x28e)[_0x2fa71d(0x213)](_0xde176d[_0x2fa71d(0x557)],')')));})),_0x11bb7c;}function _0x4df30c(_0x2cb947,_0x4aae3e){const _0x429f0a=_0x9e1cf0;var _0x307387,_0x25b0cc=_0x4aae3e[_0x429f0a(0x1e3)];return!_0x25b0cc||_0x25b0cc['length']===0x0?_0x2cb947:_0x2cb947[_0x429f0a(0x232)]===_0x429f0a(0x476)&&(!((_0x307387=_0x2cb947[_0x429f0a(0x175)])===null||_0x307387===void 0x0)&&_0x307387[_0x429f0a(0x4e5)])?_0x1495a3(_0x1495a3({},_0x2cb947),{'children':_0x2cb947['children'][_0x429f0a(0x222)](function(_0x175f15){const _0x20f7e3=_0x429f0a;return typeof _0x175f15[_0x20f7e3(0x20f)]['id']==_0x20f7e3(0x571)&&_0x25b0cc&&_0x25b0cc[_0x20f7e3(0x25e)](_0x175f15[_0x20f7e3(0x20f)]['id'])>-0x1?_0x1495a3(_0x1495a3({},_0x175f15),{'attrs':_0x1495a3(_0x1495a3({},_0x175f15[_0x20f7e3(0x20f)]),{'id':_0x175f15[_0x20f7e3(0x20f)]['id']+_0x4aae3e[_0x20f7e3(0x557)]})}):_0x175f15;})}):_0x2cb947;}function _0x1fecb0(){const _0x57980a=_0x9e1cf0;return Math['random']()['toString'](0x24)[_0x57980a(0x4d3)](0x2,0x8);}_0x1bd800[_0x9e1cf0(0x4a2)]='UniverIcon';var _0x183307={'tag':_0x9e1cf0(0x1cb),'attrs':{'fill':_0x9e1cf0(0x390),'viewBox':'0\x200\x2016\x2016','width':_0x9e1cf0(0x4c6),'height':_0x9e1cf0(0x4c6)},'children':[{'tag':'g','attrs':{'clipPath':_0x9e1cf0(0x46e)},'children':[{'tag':_0x9e1cf0(0x527),'attrs':{'stroke':_0x9e1cf0(0x288),'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':'round','strokeLinejoin':_0x9e1cf0(0x3dd),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x9e1cf0(0x183)},'children':[{'tag':_0x9e1cf0(0x527),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x9e1cf0(0x183)]},_0x315d08=_0x15c846[_0x9e1cf0(0x49b)](function(_0x26dd9c,_0x4de146){const _0x38429a=_0x9e1cf0;return _0x15c846[_0x38429a(0x4ee)](_0x1bd800,Object[_0x38429a(0x1e4)]({},_0x26dd9c,{'id':'off-line-single','ref':_0x4de146,'icon':_0x183307}));});_0x315d08[_0x9e1cf0(0x4a2)]=_0x9e1cf0(0x482);var _0x119944={'tag':_0x9e1cf0(0x1cb),'attrs':{'fill':'none','viewBox':_0x9e1cf0(0x545),'width':_0x9e1cf0(0x4c6),'height':_0x9e1cf0(0x4c6)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x9e1cf0(0x527),'attrs':{'stroke':_0x9e1cf0(0x288),'d':_0x9e1cf0(0x4ec),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x9e1cf0(0x476),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x9e1cf0(0x494)},'children':[{'tag':_0x9e1cf0(0x527),'attrs':{'fill':_0x9e1cf0(0x32d),'d':_0x9e1cf0(0x1c9),'transform':_0x9e1cf0(0x219)}}]}]}],'defIds':['on-line-single_clip0_910_349']},_0x533fdb=_0x15c846['forwardRef'](function(_0x3717b1,_0x3b0879){const _0x473dce=_0x9e1cf0;return _0x15c846[_0x473dce(0x4ee)](_0x1bd800,Object[_0x473dce(0x1e4)]({},_0x3717b1,{'id':_0x473dce(0x2a9),'ref':_0x3b0879,'icon':_0x119944}));});_0x533fdb[_0x9e1cf0(0x4a2)]=_0x9e1cf0(0x179);function _0x1eb8fe(_0x38161c){const _0x383375=_0x9e1cf0;var _0x1fb334,_0x514475,_0x409dd5='';if(typeof _0x38161c=='string'||typeof _0x38161c==_0x383375(0x448))_0x409dd5+=_0x38161c;else{if(typeof _0x38161c=='object'){if(Array[_0x383375(0x51d)](_0x38161c)){var _0x3ebac3=_0x38161c[_0x383375(0x4e5)];for(_0x1fb334=0x0;_0x1fb334<_0x3ebac3;_0x1fb334++)_0x38161c[_0x1fb334]&&(_0x514475=_0x1eb8fe(_0x38161c[_0x1fb334]))&&(_0x409dd5&&(_0x409dd5+='\x20'),_0x409dd5+=_0x514475);}else{for(_0x514475 in _0x38161c)_0x38161c[_0x514475]&&(_0x409dd5&&(_0x409dd5+='\x20'),_0x409dd5+=_0x514475);}}}return _0x409dd5;}function _0x553d9d(){for(var _0x10076c,_0x2da3dc,_0x1bd03c=0x0,_0x12f8f0='',_0x54f2a1=arguments['length'];_0x1bd03c<_0x54f2a1;_0x1bd03c++)(_0x10076c=arguments[_0x1bd03c])&&(_0x2da3dc=_0x1eb8fe(_0x10076c))&&(_0x12f8f0&&(_0x12f8f0+='\x20'),_0x12f8f0+=_0x2da3dc);return _0x12f8f0;}const _0x1a5465={'onlineStatusIcon':_0x9e1cf0(0x1d7),'onlineStatusTitle':_0x9e1cf0(0x315),'onlineStatus':_0x9e1cf0(0x39c),'online':_0x9e1cf0(0x4eb),'offline':_0x9e1cf0(0x23e)};function _0x4a845d(_0x37f8d0){const _0x421f43=_0x9e1cf0;switch(_0x37f8d0){case _0x3fa463[_0x421f43(0x269)]:return _0x421f43(0x3a8);case _0x3fa463[_0x421f43(0x3c8)]:return'collabStatus.conflict';case _0x3fa463[_0x421f43(0x2b7)]:return _0x421f43(0x525);case _0x3fa463[_0x421f43(0x3c6)]:return _0x421f43(0x22e);case _0x3fa463['PENDING']:case _0x3fa463[_0x421f43(0x4ba)]:case _0x3fa463[_0x421f43(0x3c5)]:return _0x421f43(0x22b);case _0x3fa463[_0x421f43(0x5a7)]:return _0x421f43(0x2df);}}function _0x2f9a7f(_0x5e310a){const _0x2eb3cd=_0x9e1cf0,{status$:_0x2a827a}=_0x5e310a,_0x24cf90=_0x4e4b95[_0x2eb3cd(0x29c)](_0x2a827a,_0x3fa463['NOT_COLLAB']),_0xa873f=_0x528f81['useDependency'](_0x528f81['LocaleService']),_0x1a887a=_0x528f81[_0x2eb3cd(0x4c4)](_0x54acb7[_0x2eb3cd(0x3c9)]),_0x179d45=_0x24cf90!==_0x3fa463[_0x2eb3cd(0x269)],_0x36ff94=_0xa873f['t'](_0x4a845d(_0x24cf90)),_0x354eea=_0x553d9d(_0x1a5465[_0x2eb3cd(0x49a)],{[_0x1a5465['online']]:_0x179d45,[_0x1a5465['offline']]:!_0x179d45}),_0x29716d=_0x179d45?_0x15c846[_0x2eb3cd(0x4ee)](_0x533fdb,null):_0x15c846[_0x2eb3cd(0x4ee)](_0x315d08,null),_0x4b2584=_0x15c846[_0x2eb3cd(0x3c7)](()=>{_0x179d45||_0x1a887a['reconnect']();},[_0x179d45,_0x1a887a]);function _0x5a2ff7(){const _0x313ccf=_0x2eb3cd;return _0x15c846[_0x313ccf(0x4ee)](_0x313ccf(0x54c),{'className':_0x354eea,'onClick':_0x4b2584},_0x15c846[_0x313ccf(0x4ee)](_0x313ccf(0x54c),{'className':_0x1a5465[_0x313ccf(0x2a4)]},_0x29716d),_0x15c846[_0x313ccf(0x4ee)](_0x313ccf(0x54c),{'className':_0x1a5465[_0x313ccf(0x366)]},_0x36ff94));}return _0x179d45?_0x5a2ff7():_0x15c846['createElement'](_0x3c796f[_0x2eb3cd(0x277)],{'title':_0xa873f['t']('collab-client.tooltip.reconnect')},_0x5a2ff7());}var _0x27732a=Object[_0x9e1cf0(0x188)],_0x1b0671=Object['getOwnPropertyDescriptor'],_0x356b83=(_0x4577c6,_0x23afa5,_0x56b5a2,_0x37d80a)=>{for(var _0x46d168=_0x37d80a>0x1?void 0x0:_0x37d80a?_0x1b0671(_0x23afa5,_0x56b5a2):_0x23afa5,_0x12e74b=_0x4577c6['length']-0x1,_0x35151d;_0x12e74b>=0x0;_0x12e74b--)(_0x35151d=_0x4577c6[_0x12e74b])&&(_0x46d168=(_0x37d80a?_0x35151d(_0x23afa5,_0x56b5a2,_0x46d168):_0x35151d(_0x46d168))||_0x46d168);return _0x37d80a&&_0x46d168&&_0x27732a(_0x23afa5,_0x56b5a2,_0x46d168),_0x46d168;},_0x575a24=(_0x44be12,_0x4fa35b)=>(_0x3c240c,_0x50bce9)=>_0x4fa35b(_0x3c240c,_0x50bce9,_0x44be12);_0x54acb7[_0x9e1cf0(0x287)]=class extends _0x528f81[_0x9e1cf0(0x255)]{constructor(_0x2187a6,_0x571ece,_0x125af1,_0x5662a8){const _0x397294=_0x9e1cf0;super(),_0x2f1a44(this,_0x397294(0x4e4),new _0x45efe7[(_0x397294(0x500))](_0x3fa463[_0x397294(0x3c6)])),(this[_0x397294(0x48d)]=_0x2187a6,this[_0x397294(0x278)]=_0x571ece,this[_0x397294(0x314)]=_0x125af1,this[_0x397294(0x23f)]=_0x5662a8,this[_0x397294(0x422)](),this['_initStatusListener']());}[_0x9e1cf0(0x426)](){const _0x394b2e=_0x9e1cf0;this['disposeWithMe'](this[_0x394b2e(0x48d)][_0x394b2e(0x4d4)]['pipe'](_0x45efe7['switchMap'](()=>{const _0x25b88f=_0x394b2e,_0x2b4c75=this[_0x25b88f(0x48d)][_0x25b88f(0x1c5)]();return _0x2b4c75?this[_0x25b88f(0x23f)][_0x25b88f(0x38c)](_0x2b4c75[_0x25b88f(0x4bc)]()):_0x45efe7['of'](null);}),_0x45efe7[_0x394b2e(0x4d7)](_0x2e44bb=>_0x2e44bb?_0x2e44bb['status$']:_0x45efe7['of'](_0x3fa463['NOT_COLLAB'])))['subscribe'](_0x5d9dba=>{const _0x470d07=_0x394b2e;this[_0x470d07(0x4e4)][_0x470d07(0x542)](_0x5d9dba);}));}['_initStatusComponent'](){const _0x24b35f=_0x9e1cf0;this[_0x24b35f(0x17c)](this['_uiPartsService'][_0x24b35f(0x45a)](_0x4e4b95[_0x24b35f(0x2ca)][_0x24b35f(0x1fa)],()=>_0x528f81[_0x24b35f(0x1bf)](_0x3c84e4({'status$':this['_status$'][_0x24b35f(0x518)]()}),this[_0x24b35f(0x314)])));}},_0x54acb7[_0x9e1cf0(0x287)]=_0x356b83([_0x575a24(0x0,_0x528f81['IUniverInstanceService']),_0x575a24(0x1,_0x4e4b95[_0x9e1cf0(0x2a6)]),_0x575a24(0x2,_0x528f81[_0x9e1cf0(0x201)](_0x528f81[_0x9e1cf0(0x4a5)])),_0x575a24(0x3,_0x528f81[_0x9e1cf0(0x201)](_0x54acb7[_0x9e1cf0(0x408)]))],_0x54acb7[_0x9e1cf0(0x287)]);function _0x3c84e4(_0x4a7b6f){const {status$:_0x43b3cc}=_0x4a7b6f;return function(){const _0x55f287=_0x2385;return _0x15c846[_0x55f287(0x4ee)](_0x2f9a7f,{'status$':_0x43b3cc});};}const _0x1e7c58=_0x528f81[_0x9e1cf0(0x553)](_0x9e1cf0(0x464));var _0x1feea8=Object[_0x9e1cf0(0x188)],_0x53ee7b=Object[_0x9e1cf0(0x484)],_0x3afe46=(_0x2011a8,_0x2c849e,_0x25c8f8,_0x45abce)=>{const _0x47c603=_0x9e1cf0;for(var _0x3e0fc0=_0x45abce>0x1?void 0x0:_0x45abce?_0x53ee7b(_0x2c849e,_0x25c8f8):_0x2c849e,_0x1d47a1=_0x2011a8[_0x47c603(0x4e5)]-0x1,_0x35447c;_0x1d47a1>=0x0;_0x1d47a1--)(_0x35447c=_0x2011a8[_0x1d47a1])&&(_0x3e0fc0=(_0x45abce?_0x35447c(_0x2c849e,_0x25c8f8,_0x3e0fc0):_0x35447c(_0x3e0fc0))||_0x3e0fc0);return _0x45abce&&_0x3e0fc0&&_0x1feea8(_0x2c849e,_0x25c8f8,_0x3e0fc0),_0x3e0fc0;},_0x5c867c=(_0x145669,_0x4da57d)=>(_0x32df03,_0x4793ed)=>_0x4da57d(_0x32df03,_0x4793ed,_0x145669);_0x54acb7[_0x9e1cf0(0x260)]=class extends _0x528f81['RxDisposable']{constructor(_0x3bb778,_0x3649da,_0x2a91f1,_0x45c127,_0xcd95c9,_0x535329){const _0x391f92=_0x9e1cf0;super(),this[_0x391f92(0x2fa)]=_0x3bb778,this[_0x391f92(0x186)]=_0x3649da,this['_commandService']=_0x2a91f1,this[_0x391f92(0x438)]=_0x45c127,this[_0x391f92(0x443)]=_0xcd95c9,_0x535329?_0x535329==null||_0x535329[_0x391f92(0x51f)]()[_0x391f92(0x4a7)](()=>this[_0x391f92(0x37b)]()):(this['_logService']['debug'](_0x391f92(0x3f7),_0x391f92(0x3f6)),this[_0x391f92(0x37b)]());}async[_0x9e1cf0(0x37b)](){const _0x775f4=_0x9e1cf0,_0x267054=this['_urlService'][_0x775f4(0x399)](_0x775f4(0x358)),_0x3dcbdd=this['_urlService']['getParam'](_0x775f4(0x5b7));if(!_0x267054||!_0x3dcbdd){this[_0x775f4(0x186)][_0x775f4(0x1fc)](_0x775f4(0x3f7),_0x775f4(0x3bd));return;}switch(Number(_0x3dcbdd)){case _0x23035c['UNIVER_SHEET']:{const _0x40b7fc=await this[_0x775f4(0x4f5)](_0x267054);this[_0x775f4(0x49f)](_0x40b7fc);break;}case _0x23035c[_0x775f4(0x4aa)]:{await this[_0x775f4(0x424)](_0x267054);break;}default:{this['_logService'][_0x775f4(0x1b9)](_0x775f4(0x3f7),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x9e1cf0(0x49f)](_0x38af1f){const _0x1bd3b6=_0x9e1cf0;await this[_0x1bd3b6(0x1cd)](_0x38af1f),_0x38af1f[_0x1bd3b6(0x38e)][_0x1bd3b6(0x4ff)](_0x45efe7[_0x1bd3b6(0x1d6)](this[_0x1bd3b6(0x195)]))[_0x1bd3b6(0x24b)](_0x3c5984=>{const _0x15f592=_0x1bd3b6;_0x3c5984&&this[_0x15f592(0x192)](_0x3c5984);}),this['_urlService']['urlChange$'][_0x1bd3b6(0x4ff)](_0x45efe7['takeUntil'](this[_0x1bd3b6(0x195)]))[_0x1bd3b6(0x24b)](()=>this[_0x1bd3b6(0x1cd)](_0x38af1f));}['_updateURLWithCurrentState'](_0x18d4b1,_0x2bd36e=!0x1){const _0x3464c9=_0x9e1cf0,_0x435cfb=this[_0x3464c9(0x2fa)]['getParam']('subunit');_0x18d4b1[_0x3464c9(0x40a)]()!==_0x435cfb&&this[_0x3464c9(0x2fa)]['setParam'](_0x3464c9(0x470),_0x18d4b1[_0x3464c9(0x40a)](),_0x2bd36e);}async[_0x9e1cf0(0x1cd)](_0x59df03){const _0x178068=_0x9e1cf0;var _0x55ddca;const _0x35f6f2=this[_0x178068(0x2fa)][_0x178068(0x399)](_0x178068(0x470));if(!_0x35f6f2||!_0x59df03['getSheetBySheetId'](_0x35f6f2)){const _0x2eb555=_0x59df03[_0x178068(0x585)]()[0x0],_0x472090=_0x59df03[_0x178068(0x3ee)](_0x2eb555);if(!_0x472090)return;this[_0x178068(0x192)](_0x472090,!0x0),await this[_0x178068(0x58a)][_0x178068(0x406)](_0x2b9a61[_0x178068(0x582)]['id'],{'unitId':_0x59df03[_0x178068(0x4bc)](),'subUnitId':_0x2eb555});return;}((_0x55ddca=_0x59df03[_0x178068(0x26c)]())==null?void 0x0:_0x55ddca['getSheetId']())!==_0x35f6f2&&await this[_0x178068(0x58a)][_0x178068(0x406)](_0x2b9a61[_0x178068(0x582)]['id'],{'unitId':_0x59df03[_0x178068(0x4bc)](),'subUnitId':_0x35f6f2});}async[_0x9e1cf0(0x4f5)](_0xc206ae){const _0x5ea414=_0x9e1cf0;let _0x305a9a=0x0;const _0x5e181c=await this['_localCacheService']['loadOfflineData'](_0xc206ae);return _0x5e181c&&(_0x5e181c[_0x5ea414(0x2d0)]||_0x5e181c['mutations'][_0x5ea414(0x4e5)]!==0x0)&&(_0x305a9a=_0x5e181c['rev']),_0x305a9a===0x0&&this[_0x5ea414(0x186)][_0x5ea414(0x1fc)](_0x5ea414(0x3f7),_0x5ea414(0x599)),this[_0x5ea414(0x443)]['loadSheet'](_0xc206ae,_0x305a9a);}async['_loadDoc'](_0x20b819){const _0x4c0f81=_0x9e1cf0;let _0x18b1f1=0x0;const _0x3c4eb1=await this[_0x4c0f81(0x438)][_0x4c0f81(0x252)](_0x20b819);return _0x3c4eb1&&(_0x3c4eb1[_0x4c0f81(0x2d0)]||_0x3c4eb1[_0x4c0f81(0x43c)][_0x4c0f81(0x4e5)]!==0x0)&&(_0x18b1f1=_0x3c4eb1[_0x4c0f81(0x4d5)]),_0x18b1f1===0x0&&this[_0x4c0f81(0x186)]['debug'](_0x4c0f81(0x3f7),_0x4c0f81(0x599)),this[_0x4c0f81(0x443)][_0x4c0f81(0x5b8)](_0x20b819,_0x18b1f1);}},_0x54acb7[_0x9e1cf0(0x260)]=_0x3afe46([_0x5c867c(0x0,_0x1e7c58),_0x5c867c(0x1,_0x528f81[_0x9e1cf0(0x360)]),_0x5c867c(0x2,_0x528f81[_0x9e1cf0(0x54f)]),_0x5c867c(0x3,_0x528f81[_0x9e1cf0(0x201)](_0x54acb7['LocalCacheService'])),_0x5c867c(0x4,_0x528f81[_0x9e1cf0(0x201)](_0x24131a['SnapshotService'])),_0x5c867c(0x5,_0x528f81['Optional'](_0x5ec517[_0x9e1cf0(0x432)]))],_0x54acb7[_0x9e1cf0(0x260)]);var _0xb15543=Object[_0x9e1cf0(0x188)],_0x2c98ef=Object[_0x9e1cf0(0x484)],_0x2176ba=(_0x55aefb,_0x1225c4,_0x426519,_0xc807d1)=>{for(var _0x385e94=_0xc807d1>0x1?void 0x0:_0xc807d1?_0x2c98ef(_0x1225c4,_0x426519):_0x1225c4,_0x1c89ac=_0x55aefb['length']-0x1,_0x5b3746;_0x1c89ac>=0x0;_0x1c89ac--)(_0x5b3746=_0x55aefb[_0x1c89ac])&&(_0x385e94=(_0xc807d1?_0x5b3746(_0x1225c4,_0x426519,_0x385e94):_0x5b3746(_0x385e94))||_0x385e94);return _0xc807d1&&_0x385e94&&_0xb15543(_0x1225c4,_0x426519,_0x385e94),_0x385e94;},_0x5d896c=(_0x37cf47,_0x55fe7c)=>(_0x5d96a2,_0x52082c)=>_0x55fe7c(_0x5d96a2,_0x52082c,_0x37cf47);const _0x14672a=_0x9e1cf0(0x1e9),_0x597b11=_0x9e1cf0(0x452);let _0x29d311=class extends _0x528f81[_0x9e1cf0(0x255)]{constructor(_0x3bb050,_0x3aabc9){const _0x3cdcde=_0x9e1cf0;super(),this['_univerInstanceService']=_0x3bb050,this['_configService']=_0x3aabc9,this[_0x3cdcde(0x37b)]();}['_init'](){const _0x36da02=_0x9e1cf0;this[_0x36da02(0x17c)](this[_0x36da02(0x48d)][_0x36da02(0x4d4)]['subscribe'](()=>{const _0x2bf178=_0x36da02;var _0x227032;const _0x16819b=this[_0x2bf178(0x48d)][_0x2bf178(0x1c5)]();let _0x443f03=(_0x227032=this[_0x2bf178(0x2c8)]['getConfig'](_0x14672a))!=null?_0x227032:_0x597b11;_0x16819b instanceof _0x528f81[_0x2bf178(0x36d)]&&(_0x443f03=_0x16819b[_0x2bf178(0x398)]),document[_0x2bf178(0x5a0)]=_0x443f03;}));}};_0x29d311=_0x2176ba([_0x5d896c(0x0,_0x528f81['IUniverInstanceService']),_0x5d896c(0x1,_0x528f81['IConfigService'])],_0x29d311);var _0x126a51=Object['defineProperty'],_0x1ae907=Object[_0x9e1cf0(0x484)],_0x10fa5f=(_0x367cf3,_0x22ea98,_0x314893,_0x1aa4cf)=>{const _0x93870f=_0x9e1cf0;for(var _0x33a28f=_0x1aa4cf>0x1?void 0x0:_0x1aa4cf?_0x1ae907(_0x22ea98,_0x314893):_0x22ea98,_0x159f64=_0x367cf3[_0x93870f(0x4e5)]-0x1,_0x3b37d8;_0x159f64>=0x0;_0x159f64--)(_0x3b37d8=_0x367cf3[_0x159f64])&&(_0x33a28f=(_0x1aa4cf?_0x3b37d8(_0x22ea98,_0x314893,_0x33a28f):_0x3b37d8(_0x33a28f))||_0x33a28f);return _0x1aa4cf&&_0x33a28f&&_0x126a51(_0x22ea98,_0x314893,_0x33a28f),_0x33a28f;},_0x48104f=(_0x12f96b,_0x41d708)=>(_0x2e9157,_0x44ae28)=>_0x41d708(_0x2e9157,_0x44ae28,_0x12f96b);let _0x1bb405=class{constructor(_0x28f811,_0x1526d3,_0x44abfb){const _0x52e158=_0x9e1cf0;this[_0x52e158(0x2c8)]=_0x28f811,this[_0x52e158(0x17f)]=_0x1526d3,this[_0x52e158(0x30a)]=_0x44abfb,this[_0x52e158(0x1ee)]();}[_0x9e1cf0(0x1ee)](){const _0x58b2ee=_0x9e1cf0;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x1dc819,_0xa4927e)=>_0xa4927e(_0x1dc819)['pipe'](_0x45efe7[_0x58b2ee(0x1b4)](async _0x26ba95=>{const _0x500b10=_0x58b2ee,_0x15e6c7=_0x26ba95;if(_0x15e6c7[_0x500b10(0x43f)]===0x191&&window[_0x500b10(0x511)](this[_0x500b10(0x30a)]['t']('auth.needGotoLoginAlert'))){const _0x5abe74=window[_0x500b10(0x4bb)](window[_0x500b10(0x33a)][_0x500b10(0x17a)]);window['location'][_0x500b10(0x17a)]=this[_0x500b10(0x481)]()+_0x500b10(0x58b)+_0x5abe74;}return _0x15e6c7;}))});}['_getLoginPath'](){const _0x389ab0=_0x9e1cf0;var _0x41b6bb,_0x374fda;const _0x26862b=this[_0x389ab0(0x2c8)][_0x389ab0(0x33d)](_0x45f04f),_0x1be0c1=this[_0x389ab0(0x2c8)]['getConfig'](_0x9e8977);return(_0x374fda=(_0x41b6bb=_0x1be0c1==null?void 0x0:_0x1be0c1[_0x389ab0(0x42c)])!=null?_0x41b6bb:_0x26862b)!=null?_0x374fda:_0x1733b2;}};_0x1bb405=_0x10fa5f([_0x48104f(0x0,_0x528f81[_0x9e1cf0(0x1e6)]),_0x48104f(0x1,_0x528f81[_0x9e1cf0(0x201)](_0x3935c6[_0x9e1cf0(0x446)])),_0x48104f(0x2,_0x528f81['Inject'](_0x528f81[_0x9e1cf0(0x4b3)]))],_0x1bb405);var _0x479b68=Object[_0x9e1cf0(0x188)],_0x4427e6=Object[_0x9e1cf0(0x484)],_0x4f7d35=(_0x1259c7,_0x3446ce,_0x2d2020,_0x18c36d)=>{const _0x3f86a0=_0x9e1cf0;for(var _0x545523=_0x18c36d>0x1?void 0x0:_0x18c36d?_0x4427e6(_0x3446ce,_0x2d2020):_0x3446ce,_0xbdf5be=_0x1259c7[_0x3f86a0(0x4e5)]-0x1,_0xc0adb5;_0xbdf5be>=0x0;_0xbdf5be--)(_0xc0adb5=_0x1259c7[_0xbdf5be])&&(_0x545523=(_0x18c36d?_0xc0adb5(_0x3446ce,_0x2d2020,_0x545523):_0xc0adb5(_0x545523))||_0x545523);return _0x18c36d&&_0x545523&&_0x479b68(_0x3446ce,_0x2d2020,_0x545523),_0x545523;},_0x2c15ed=(_0x27fdef,_0x4f348d)=>(_0x5d6e45,_0x4b126c)=>_0x4f348d(_0x5d6e45,_0x4b126c,_0x27fdef);const _0xea25df=_0x9e1cf0(0x206),_0xc920c0=_0x9e1cf0(0x332);_0x54acb7[_0x9e1cf0(0x50d)]=class extends _0x528f81[_0x9e1cf0(0x255)]{constructor(_0x51a39b,_0xaab3b){const _0xc93c22=_0x9e1cf0;super(),this[_0xc93c22(0x1a6)]=_0x51a39b,this['_configService']=_0xaab3b,this[_0xc93c22(0x344)]();}[_0x9e1cf0(0x344)](){const _0x339ced=_0x9e1cf0,_0x138184=this;this[_0x339ced(0x17c)](this[_0x339ced(0x1a6)][_0x339ced(0x579)]({'priority':0x3e7,'interceptor':_0x3935c6[_0x339ced(0x30b)]({'isMatch'(_0x4e49ff){const _0x1b702a=_0x339ced;var _0xd6d141;if(_0x4e49ff[_0x1b702a(0x2fd)]==='POST'&&((_0xd6d141=_0x4e49ff['requestParams'])!=null&&_0xd6d141[_0x1b702a(0x3db)])){const {objectID:_0x2fd028,objectType:_0x3d350a}=_0x4e49ff[_0x1b702a(0x270)]['body']||{};if(!_0x2fd028||_0x3d350a===void 0x0)return!0x1;const _0x31ee96=_0x138184[_0x1b702a(0x1c1)]()+'/'+_0x3d350a+_0x1b702a(0x359)+_0x2fd028+_0x1b702a(0x2d8);if(_0x4e49ff[_0x1b702a(0x4c2)]===_0x31ee96)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x12120e){const _0x1847e0=_0x339ced;var _0x3a15db;return(_0x3a15db=_0x12120e[_0x1847e0(0x270)])==null?void 0x0:_0x3a15db[_0x1847e0(0x3db)];},'mergeParamsToRequest'(_0x3f5d49,_0x1f0edc){const _0x5c7548=_0x339ced,_0x3866c1=_0x138184[_0x5c7548(0x1c1)]()+_0x5c7548(0x45f),_0x386dda=_0x3f5d49['reduce']((_0x3361bd,_0x29370c)=>{const _0xf26d97=_0x5c7548,{unitID:_0x1532db,objectID:_0x13e5fd,objectType:_0x13991b,actions:_0x7a353f}=_0x29370c;return _0x3361bd[_0x1532db]||(_0x3361bd[_0x1532db]={}),_0x3361bd[_0x1532db][_0x13e5fd]||(_0x3361bd[_0x1532db][_0x13e5fd]={'objectID':_0x13e5fd,'objectType':_0x13991b,'actions':[]}),_0x3361bd[_0x1532db][_0x13e5fd]['actions'][_0xf26d97(0x202)](..._0x7a353f),_0x3361bd;},{}),_0xa928c2=[];for(const _0x5b63d6 in _0x386dda)for(const _0x5bd144 in _0x386dda[_0x5b63d6]){const {actions:_0x368888,objectType:_0x4408c2}=_0x386dda[_0x5b63d6][_0x5bd144],_0x25332c=[...new Set(_0x368888)];_0xa928c2[_0x5c7548(0x202)]({'unitID':_0x5b63d6,'objectID':_0x5bd144,'objectType':_0x4408c2,'actions':_0x25332c});}return new _0x3935c6[(_0x5c7548(0x529))]('POST',_0x3866c1,{'headers':_0x1f0edc[_0x5c7548(0x580)],'withCredentials':_0x1f0edc[_0x5c7548(0x515)],'responseType':_0x1f0edc[_0x5c7548(0x259)],'body':{'requests':_0xa928c2}});}},{'distributeResult'(_0xf5c56a,_0x10d80e){const _0x174793=_0x339ced,{objectActions:_0x3da074}=_0xf5c56a;return _0x10d80e[_0x174793(0x222)](_0x1d34b7=>{const _0x2323ea=_0x174793,{unitID:_0x2e2d6a,objectID:_0x7e9338,actions:_0x5e351f}=_0x1d34b7,_0x47448b=_0x3da074[_0x2323ea(0x29e)](_0x35f2c5=>_0x35f2c5['unitID']===_0x2e2d6a&&_0x35f2c5[_0x2323ea(0x200)]===_0x7e9338),_0x1ad20f=_0x5e351f[_0x2323ea(0x222)](_0x2ffd20=>_0x47448b==null?void 0x0:_0x47448b[_0x2323ea(0x3ad)]['find'](_0xa0bcc6=>_0xa0bcc6[_0x2323ea(0x52c)]===_0x2ffd20))[_0x2323ea(0x26a)](_0x3df7ad=>!!_0x3df7ad);return{'config':_0x1d34b7,'result':{'actions':_0x1ad20f,'error':_0xf5c56a[_0x2323ea(0x1b9)]}};});}})}));}[_0x9e1cf0(0x1c1)](){const _0x61ed1f=_0x9e1cf0;var _0x251693,_0xf7f367;const _0xb8ddc2=this[_0x61ed1f(0x2c8)][_0x61ed1f(0x33d)](_0xea25df),_0x391a7c=this[_0x61ed1f(0x2c8)]['getConfig'](_0x9e8977);return(_0xf7f367=(_0x251693=_0x391a7c==null?void 0x0:_0x391a7c[_0x61ed1f(0x4c7)])!=null?_0x251693:_0xb8ddc2)!=null?_0xf7f367:_0xc920c0;}async[_0x9e1cf0(0x43a)](_0x4bc7bb){const _0xe0c92=_0x9e1cf0,_0x1dd907=this['_getAPIPrefixPath']()+'/'+_0x4bc7bb['objectType']+'/object';return(await this[_0xe0c92(0x1a6)][_0xe0c92(0x552)](_0x1dd907,{'body':_0x4bc7bb}))[_0xe0c92(0x3db)][_0xe0c92(0x200)]||'';}async[_0x9e1cf0(0x592)](_0x17271d){const _0x303d74=_0x9e1cf0,_0x4e352f=this[_0x303d74(0x1c1)]()+'/-/object/list';return(await this[_0x303d74(0x1a6)][_0x303d74(0x552)](_0x4e352f,{'body':_0x17271d}))['body'][_0x303d74(0x4b7)];}async[_0x9e1cf0(0x180)](_0x1f552c){const _0xa2f6d0=_0x9e1cf0,_0xcda90e=this['_getAPIPrefixPath']()+'/'+_0x1f552c['objectType']+'/object/'+_0x1f552c[_0xa2f6d0(0x200)];await this[_0xa2f6d0(0x1a6)]['put'](_0xcda90e,{'body':_0x1f552c});}async[_0x9e1cf0(0x4dc)](_0x268529){const _0x575862=_0x9e1cf0,_0x233fa5=this[_0x575862(0x1c1)]()+'/'+_0x268529['objectType']+_0x575862(0x359)+_0x268529[_0x575862(0x200)]+'/allowed';return(await this[_0x575862(0x1a6)][_0x575862(0x552)](_0x233fa5,{'body':_0x268529}))[_0x575862(0x3db)]['actions'];}async['batchAllowed'](_0x22cd63){const _0x1e00c1=_0x9e1cf0,_0x3178cf=this[_0x1e00c1(0x1c1)]()+_0x1e00c1(0x45f);return(await this[_0x1e00c1(0x1a6)][_0x1e00c1(0x552)](_0x3178cf,{'body':{'requests':_0x22cd63}}))[_0x1e00c1(0x3db)][_0x1e00c1(0x342)];}async[_0x9e1cf0(0x471)](_0xdd8f44){const _0x4d288a=_0x9e1cf0,_0x26527a=this[_0x4d288a(0x1c1)]()+'/'+_0xdd8f44[_0x4d288a(0x474)]+_0x4d288a(0x2ba),_0xadcbd0=await this[_0x4d288a(0x1a6)][_0x4d288a(0x552)](_0x26527a,{'body':_0xdd8f44});return{'roles':_0xadcbd0['body'][_0x4d288a(0x51c)],'actions':_0xadcbd0[_0x4d288a(0x3db)][_0x4d288a(0x3ad)]};}async[_0x9e1cf0(0x3e5)](_0x1e0fd4){const _0x3ea77c=_0x9e1cf0,_0x4b9d5b=this[_0x3ea77c(0x1c1)]()+_0x3ea77c(0x178);await this['_HTTPService'][_0x3ea77c(0x52f)](_0x4b9d5b,{'params':{'collaboratorID':_0x1e0fd4[_0x3ea77c(0x4bf)],'objectID':_0x1e0fd4[_0x3ea77c(0x200)],'unitID':_0x1e0fd4['unitID']}});}async[_0x9e1cf0(0x442)](_0x3d2550){const _0x51661=_0x9e1cf0,_0x40aeee=this['_getAPIPrefixPath']()+_0x51661(0x178);await this['_HTTPService'][_0x51661(0x5b6)](_0x40aeee,{'body':_0x3d2550});}async[_0x9e1cf0(0x453)](_0x25dc66){const _0x2796a4=_0x9e1cf0,_0x1ad76c=this['_getAPIPrefixPath']()+_0x2796a4(0x178);await this['_HTTPService']['post'](_0x1ad76c,{'body':_0x25dc66});}async[_0x9e1cf0(0x570)](_0x21818c){const _0x4db69f=_0x9e1cf0,_0xea7413=this[_0x4db69f(0x1c1)]()+'/collaborator';return(await this[_0x4db69f(0x1a6)]['get'](_0xea7413,{'params':{'objectID':_0x21818c[_0x4db69f(0x200)],'unitID':_0x21818c['unitID']}}))[_0x4db69f(0x3db)][_0x4db69f(0x176)];}async['putCollaborators'](_0x143876){const _0x975fa1=_0x9e1cf0,_0x97c98a=this[_0x975fa1(0x1c1)]()+'/collaborator';await this[_0x975fa1(0x1a6)]['put'](_0x97c98a,{'body':_0x143876});}},_0x54acb7[_0x9e1cf0(0x50d)]=_0x4f7d35([_0x2c15ed(0x0,_0x528f81['Inject'](_0x3935c6[_0x9e1cf0(0x446)])),_0x2c15ed(0x1,_0x528f81[_0x9e1cf0(0x201)](_0x528f81[_0x9e1cf0(0x1e6)]))],_0x54acb7[_0x9e1cf0(0x50d)]);var _0x3de52e=Object[_0x9e1cf0(0x188)],_0x4f7551=Object['getOwnPropertyDescriptor'],_0x44c406=(_0xe87390,_0x1f8f87,_0x2c5f00,_0x549c5b)=>{const _0x28615f=_0x9e1cf0;for(var _0x4ca48a=_0x549c5b>0x1?void 0x0:_0x549c5b?_0x4f7551(_0x1f8f87,_0x2c5f00):_0x1f8f87,_0x572f2f=_0xe87390[_0x28615f(0x4e5)]-0x1,_0x58040b;_0x572f2f>=0x0;_0x572f2f--)(_0x58040b=_0xe87390[_0x572f2f])&&(_0x4ca48a=(_0x549c5b?_0x58040b(_0x1f8f87,_0x2c5f00,_0x4ca48a):_0x58040b(_0x4ca48a))||_0x4ca48a);return _0x549c5b&&_0x4ca48a&&_0x3de52e(_0x1f8f87,_0x2c5f00,_0x4ca48a),_0x4ca48a;},_0x3a9e0a=(_0x107dc1,_0x28641d)=>(_0x33e471,_0x5127dd)=>_0x28641d(_0x33e471,_0x5127dd,_0x107dc1);let _0x1760d0=class{constructor(_0x20bec6){const _0x19ba0b=_0x9e1cf0;this[_0x19ba0b(0x17f)]=_0x20bec6,this[_0x19ba0b(0x171)]();}['_initRequestHeader'](){const _0x1543fc=_0x9e1cf0;this[_0x1543fc(0x17f)][_0x1543fc(0x579)]({'interceptor':(_0x34fdbc,_0x247b99)=>{const _0x37b7a4=_0x1543fc,_0x1682d3=_0x34fdbc[_0x37b7a4(0x580)],_0x3987e3=_0x2347dd[_0x37b7a4(0x374)]();return _0x3987e3&&_0x1682d3[_0x37b7a4(0x35c)]('x-univer-host',_0x3987e3),_0x247b99(_0x34fdbc);}});}};_0x1760d0=_0x44c406([_0x3a9e0a(0x0,_0x528f81[_0x9e1cf0(0x201)](_0x3935c6[_0x9e1cf0(0x446)]))],_0x1760d0);var _0x5c6314=Object[_0x9e1cf0(0x188)],_0x4fafd3=Object[_0x9e1cf0(0x484)],_0x3f9ec0=(_0x148c89,_0x94d848,_0x8f8e89,_0x38e87e)=>{const _0x1daaf2=_0x9e1cf0;for(var _0x5b5ae0=_0x38e87e>0x1?void 0x0:_0x38e87e?_0x4fafd3(_0x94d848,_0x8f8e89):_0x94d848,_0x2dcf0a=_0x148c89[_0x1daaf2(0x4e5)]-0x1,_0xeba696;_0x2dcf0a>=0x0;_0x2dcf0a--)(_0xeba696=_0x148c89[_0x2dcf0a])&&(_0x5b5ae0=(_0x38e87e?_0xeba696(_0x94d848,_0x8f8e89,_0x5b5ae0):_0xeba696(_0x5b5ae0))||_0x5b5ae0);return _0x38e87e&&_0x5b5ae0&&_0x5c6314(_0x94d848,_0x8f8e89,_0x5b5ae0),_0x5b5ae0;},_0x50d1cc=(_0xaf19d3,_0x28a47c)=>(_0x255234,_0x229e90)=>_0x28a47c(_0x255234,_0x229e90,_0xaf19d3);const _0x533600=['image/png','image/jpeg','image/jpg','image/gif',_0x9e1cf0(0x4e6)],_0xc4dee3=0x5*0x400*0x400,_0x24859f=_0x9e1cf0(0x4ed),_0x45d059=_0x9e1cf0(0x447),_0x38045d='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_0x450d36='/universer-api/file/{fileID}/sign-url';_0x54acb7[_0x9e1cf0(0x393)]=class{constructor(_0x568478,_0x147139,_0x15bb8b){const _0x522da8=_0x9e1cf0;_0x2f1a44(this,_0x522da8(0x29f),0x0),_0x2f1a44(this,'_change$',new _0x45efe7[(_0x522da8(0x57c))]()),_0x2f1a44(this,_0x522da8(0x3b9),this['_change$']),_0x2f1a44(this,_0x522da8(0x4f2),new Map()),(this['_httpService']=_0x568478,this[_0x522da8(0x2c8)]=_0x147139,this[_0x522da8(0x48d)]=_0x15bb8b);}[_0x9e1cf0(0x437)](_0x35f85f){const _0x399fe2=_0x9e1cf0;this['_waitCount']=_0x35f85f,this[_0x399fe2(0x473)]['next'](_0x35f85f);}[_0x9e1cf0(0x475)](_0x5dd2d7,_0x43811f){const _0x5b67c0=_0x9e1cf0;if(_0x43811f===_0x2a1abf[_0x5b67c0(0x349)]['BASE64']){const _0x447227=new Image();return _0x447227['src']=_0x5dd2d7,_0x447227;}return this[_0x5b67c0(0x4f2)]['get'](_0x5dd2d7);}['addImageSourceCache'](_0x46f830,_0x2f973a,_0x865339){const _0x4daab0=_0x9e1cf0;_0x2f973a===_0x2a1abf[_0x4daab0(0x349)]['BASE64']||_0x865339==null||this[_0x4daab0(0x4f2)][_0x4daab0(0x35c)](_0x46f830,_0x865339);}async[_0x9e1cf0(0x282)](_0x109f68){const _0x18a135=_0x9e1cf0;try{const _0x55f471=this['_replaceFileID'](this[_0x18a135(0x562)](),''+_0x109f68),_0x2841da=(await this[_0x18a135(0x17f)][_0x18a135(0x3fa)](_0x55f471))[_0x18a135(0x3db)];if(_0x2841da[_0x18a135(0x1b9)]&&_0x2841da[_0x18a135(0x1b9)][_0x18a135(0x3d4)]===_0x360e3c['OK']){const _0x12866d=new URL(_0x2841da[_0x18a135(0x4c2)],this[_0x18a135(0x384)]())[_0x18a135(0x43e)]();return Promise[_0x18a135(0x27c)](_0x12866d);}return Promise['reject'](_0x2841da[_0x18a135(0x1b9)]);}catch(_0x5770cd){return Promise['reject'](_0x5770cd);}}async[_0x9e1cf0(0x4cf)](_0x769e8){const _0x1b0f7f=_0x9e1cf0;let _0x3b312c='';if(!_0x533600[_0x1b0f7f(0x5aa)](_0x769e8[_0x1b0f7f(0x5b7)]))return this[_0x1b0f7f(0x3fb)](),Promise[_0x1b0f7f(0x538)](new Error(_0x2a1abf[_0x1b0f7f(0x4d8)]['ERROR_IMAGE_TYPE']));if(_0x769e8[_0x1b0f7f(0x519)]>_0xc4dee3)return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x2a1abf[_0x1b0f7f(0x4d8)][_0x1b0f7f(0x1c2)]));try{const _0x1a1ce1=new FormData();_0x1a1ce1[_0x1b0f7f(0x35a)](_0x1b0f7f(0x47f),_0x769e8);const _0xf648f4=this[_0x1b0f7f(0x48d)][_0x1b0f7f(0x1c5)](),_0x1d7554=_0xf648f4==null?void 0x0:_0xf648f4[_0x1b0f7f(0x4bc)]();if(!_0x1d7554)throw new Error(_0x1b0f7f(0x2f2));const _0x5b8f15=this[_0x1b0f7f(0x312)]()+_0x1b0f7f(0x1fe)+_0x769e8[_0x1b0f7f(0x519)]['toString']()+_0x1b0f7f(0x4b9)+_0x3ddf59[_0x1b0f7f(0x208)]+_0x1b0f7f(0x25a)+encodeURIComponent(_0x1d7554),_0x3d4a63=await(await fetch(_0x5b8f15,{'method':_0x1b0f7f(0x1b1),'body':_0x1a1ce1}))[_0x1b0f7f(0x182)]();if(typeof _0x3d4a63[_0x1b0f7f(0x1da)]!='string')return this[_0x1b0f7f(0x3fb)](),Promise['reject'](new Error(_0x2a1abf[_0x1b0f7f(0x4d8)]['ERROR_IMAGE']));_0x3b312c=_0x3d4a63[_0x1b0f7f(0x1da)];}catch{return this[_0x1b0f7f(0x3fb)](),Promise['reject'](new Error(_0x2a1abf[_0x1b0f7f(0x4d8)]['ERROR_IMAGE']));}return new Promise((_0x19fda0,_0x201931)=>{const _0x1bc5eb=_0x1b0f7f,_0xda6045=new FileReader();_0xda6045[_0x1bc5eb(0x370)](_0x769e8),_0xda6045[_0x1bc5eb(0x306)]=_0x292d4c=>{const _0x27f79a=_0x1bc5eb;var _0xad52d7;const _0x4ead31=(_0xad52d7=_0x292d4c[_0x27f79a(0x565)])==null?void 0x0:_0xad52d7[_0x27f79a(0x42f)];if(_0x4ead31==null){this[_0x27f79a(0x3fb)](),_0x201931(new Error(_0x2a1abf['ImageUploadStatusType'][_0x27f79a(0x21e)]));return;}const _0x42e736=_0x528f81[_0x27f79a(0x33c)][_0x27f79a(0x2d7)](0x6);_0x19fda0({'imageId':_0x42e736,'imageSourceType':_0x2a1abf[_0x27f79a(0x349)][_0x27f79a(0x3b0)],'source':_0x3b312c,'base64Cache':_0x4ead31,'status':_0x2a1abf[_0x27f79a(0x4d8)][_0x27f79a(0x4a1)]}),this[_0x27f79a(0x3fb)]();};});}[_0x9e1cf0(0x312)](){const _0x4b822d=_0x9e1cf0;var _0x1df90d,_0x51d0b6;const _0x2b0c66=this['_configService'][_0x4b822d(0x33d)](_0x24859f),_0x1e089b=this[_0x4b822d(0x2c8)][_0x4b822d(0x33d)](_0x9e8977);return(_0x51d0b6=(_0x1df90d=_0x1e089b==null?void 0x0:_0x1e089b[_0x4b822d(0x3d3)])!=null?_0x1df90d:_0x2b0c66)!=null?_0x51d0b6:_0x45d059;}[_0x9e1cf0(0x562)](){const _0x3ed999=_0x9e1cf0;var _0x8796f9,_0x4c8d57;const _0x1696f4=this[_0x3ed999(0x2c8)][_0x3ed999(0x33d)](_0x38045d),_0x229876=this[_0x3ed999(0x2c8)][_0x3ed999(0x33d)](_0x9e8977);return(_0x4c8d57=(_0x8796f9=_0x229876==null?void 0x0:_0x229876[_0x3ed999(0x1bc)])!=null?_0x8796f9:_0x1696f4)!=null?_0x4c8d57:_0x450d36;}[_0x9e1cf0(0x384)](){const _0x259f5a=_0x9e1cf0;var _0xfc4ec9;const _0x3624a2=this[_0x259f5a(0x2c8)]['getConfig'](_0x9e8977);return(_0xfc4ec9=_0x3624a2==null?void 0x0:_0x3624a2[_0x259f5a(0x265)])!=null?_0xfc4ec9:location[_0x259f5a(0x4b6)];}['_replaceFileID'](_0x27af40,_0xd7efff){return _0x27af40['replace']('{fileID}',_0xd7efff);}[_0x9e1cf0(0x3fb)](){const _0x1efcbe=_0x9e1cf0;this['_waitCount']-=0x1,this[_0x1efcbe(0x473)][_0x1efcbe(0x542)](this[_0x1efcbe(0x29f)]);}},_0x54acb7[_0x9e1cf0(0x393)]=_0x3f9ec0([_0x50d1cc(0x0,_0x528f81[_0x9e1cf0(0x201)](_0x3935c6[_0x9e1cf0(0x446)])),_0x50d1cc(0x1,_0x528f81['IConfigService']),_0x50d1cc(0x2,_0x528f81[_0x9e1cf0(0x201)](_0x528f81[_0x9e1cf0(0x57f)]))],_0x54acb7[_0x9e1cf0(0x393)]);var _0x43f584=Object[_0x9e1cf0(0x188)],_0x29c6f3=Object['getOwnPropertyDescriptor'],_0x57d5ca=(_0x7345f1,_0x26b910,_0xdc01a1,_0x493cfc)=>{for(var _0x567746=_0x493cfc>0x1?void 0x0:_0x493cfc?_0x29c6f3(_0x26b910,_0xdc01a1):_0x26b910,_0x48bd8b=_0x7345f1['length']-0x1,_0x5b7b9c;_0x48bd8b>=0x0;_0x48bd8b--)(_0x5b7b9c=_0x7345f1[_0x48bd8b])&&(_0x567746=(_0x493cfc?_0x5b7b9c(_0x26b910,_0xdc01a1,_0x567746):_0x5b7b9c(_0x567746))||_0x567746);return _0x493cfc&&_0x567746&&_0x43f584(_0x26b910,_0xdc01a1,_0x567746),_0x567746;},_0x501712=(_0x5bba6f,_0x497fa0)=>(_0x3258f4,_0x2df041)=>_0x497fa0(_0x3258f4,_0x2df041,_0x5bba6f);let _0x3c5a17=class extends _0x528f81[_0x9e1cf0(0x3c2)]{constructor(_0x4500c2,_0x41be47,_0x4846b1,_0x5badd6,_0x1dd728){const _0x380fb1=_0x9e1cf0;super(),this[_0x380fb1(0x314)]=_0x4500c2,this[_0x380fb1(0x48d)]=_0x41be47,this[_0x380fb1(0x23d)]=_0x4846b1,this[_0x380fb1(0x2fb)]=_0x5badd6,this['_localeService']=_0x1dd728,this[_0x380fb1(0x4cb)](),this[_0x380fb1(0x1ea)]();}[_0x9e1cf0(0x1ea)](){const _0x5bcb3c=_0x9e1cf0,_0x1f18ee=async _0x36ad5c=>{const _0x1a3e6c=_0x2385;(await this[_0x1a3e6c(0x2fb)][_0x1a3e6c(0x564)](_0x36ad5c))[_0x1a3e6c(0x36e)][_0x1a3e6c(0x4ff)](_0x77a07['filter'](_0x484311=>_0x484311[_0x1a3e6c(0x1c6)]===_0x24131a[_0x1a3e6c(0x190)][_0x1a3e6c(0x26d)]),_0x77a07['takeUntil'](this[_0x1a3e6c(0x195)]))[_0x1a3e6c(0x24b)](_0x2e425d=>{const _0x2c056a=_0x1a3e6c,_0x22a179=_0x2e425d,{reason:_0x3da55a}=_0x22a179[_0x2c056a(0x1f9)];this['_injector'][_0x2c056a(0x3fa)](_0x4e4b95[_0x2c056a(0x5b4)])[_0x2c056a(0x2e2)]({'type':_0x3c796f[_0x2c056a(0x3b3)][_0x2c056a(0x54d)],'content':this[_0x2c056a(0x3cc)]['t']('collaboration.closeRoom')+'('+_0x3da55a+')'}),this['_permissionService'][_0x2c056a(0x1a2)](new _0x2b9a61['WorkbookEditablePermission'](_0x36ad5c)['id'],!0x1),this[_0x2c056a(0x2fb)][_0x2c056a(0x58c)](_0x36ad5c);});};_0x45efe7[_0x5bcb3c(0x3a3)](this[_0x5bcb3c(0x48d)][_0x5bcb3c(0x3d6)](_0x528f81[_0x5bcb3c(0x3b6)][_0x5bcb3c(0x488)]),this[_0x5bcb3c(0x48d)][_0x5bcb3c(0x3d6)](_0x528f81[_0x5bcb3c(0x3b6)]['UNIVER_DOC']))[_0x5bcb3c(0x4ff)](_0x77a07[_0x5bcb3c(0x222)](_0x551c49=>_0x551c49[_0x5bcb3c(0x4bc)]()),_0x77a07[_0x5bcb3c(0x26a)](_0x93cdd0=>!_0x528f81[_0x5bcb3c(0x596)](_0x93cdd0)),_0x77a07[_0x5bcb3c(0x1d6)](this[_0x5bcb3c(0x195)]))[_0x5bcb3c(0x24b)](_0x1ed8ef=>{_0x1f18ee(_0x1ed8ef);});}[_0x9e1cf0(0x4cb)](){const _0x401acd=_0x9e1cf0,_0x2452d3=async _0x8525ff=>{const _0x4dc320=_0x2385;(await this[_0x4dc320(0x2fb)][_0x4dc320(0x564)](_0x8525ff))['event$'][_0x4dc320(0x4ff)](_0x77a07[_0x4dc320(0x26a)](_0x363e25=>_0x363e25[_0x4dc320(0x1c6)]===_0x24131a[_0x4dc320(0x190)][_0x4dc320(0x2ae)]),_0x77a07[_0x4dc320(0x1d6)](this[_0x4dc320(0x195)]))[_0x4dc320(0x24b)](_0x4e5a9b=>{const _0x5c4d10=_0x4dc320,_0x518f79=_0x4e5a9b,{objectId:_0x15737f}=_0x518f79['data'],_0x2749f2=this[_0x5c4d10(0x314)][_0x5c4d10(0x3fa)](_0xafca37[_0x5c4d10(0x382)]);_0x15737f===_0x8525ff?_0x2749f2[_0x5c4d10(0x1e8)](_0x8525ff):_0x2749f2[_0x5c4d10(0x4e1)](_0x8525ff,_0x15737f);});};_0x45efe7[_0x401acd(0x3a3)](this['_univerInstanceService'][_0x401acd(0x3d6)](_0x528f81[_0x401acd(0x3b6)][_0x401acd(0x488)]),this[_0x401acd(0x48d)][_0x401acd(0x3d6)](_0x528f81[_0x401acd(0x3b6)][_0x401acd(0x4aa)]))[_0x401acd(0x4ff)](_0x77a07[_0x401acd(0x222)](_0x19ef74=>_0x19ef74[_0x401acd(0x4bc)]()),_0x77a07[_0x401acd(0x26a)](_0x16243f=>!_0x528f81[_0x401acd(0x596)](_0x16243f)),_0x77a07[_0x401acd(0x1d6)](this['dispose$']))['subscribe'](_0x82cc62=>{_0x2452d3(_0x82cc62);});}};_0x3c5a17=_0x57d5ca([_0x501712(0x0,_0x528f81[_0x9e1cf0(0x201)](_0x528f81['Injector'])),_0x501712(0x1,_0x528f81[_0x9e1cf0(0x57f)]),_0x501712(0x2,_0x528f81[_0x9e1cf0(0x395)]),_0x501712(0x3,_0x528f81[_0x9e1cf0(0x201)](_0x54acb7[_0x9e1cf0(0x3c9)])),_0x501712(0x4,_0x528f81[_0x9e1cf0(0x201)](_0x528f81['LocaleService']))],_0x3c5a17);var _0x199e9f=Object['defineProperty'],_0x5bab6b=Object[_0x9e1cf0(0x484)],_0x471e8b=(_0x47bc74,_0x2b7031,_0x479bd8,_0x1b66ec)=>{const _0x5dcf19=_0x9e1cf0;for(var _0x1d8ebd=_0x1b66ec>0x1?void 0x0:_0x1b66ec?_0x5bab6b(_0x2b7031,_0x479bd8):_0x2b7031,_0x9f40e=_0x47bc74[_0x5dcf19(0x4e5)]-0x1,_0x1c6188;_0x9f40e>=0x0;_0x9f40e--)(_0x1c6188=_0x47bc74[_0x9f40e])&&(_0x1d8ebd=(_0x1b66ec?_0x1c6188(_0x2b7031,_0x479bd8,_0x1d8ebd):_0x1c6188(_0x1d8ebd))||_0x1d8ebd);return _0x1b66ec&&_0x1d8ebd&&_0x199e9f(_0x2b7031,_0x479bd8,_0x1d8ebd),_0x1d8ebd;},_0x5057c6=(_0x5757e2,_0x7703b2)=>(_0x46b49d,_0x460131)=>_0x7703b2(_0x46b49d,_0x460131,_0x5757e2);_0x54acb7[_0x9e1cf0(0x2bf)]=class{constructor(_0x4257fd,_0x56aa75){this['_configService']=_0x4257fd,this['_httpService']=_0x56aa75;}async[_0x9e1cf0(0x53f)](_0x4dd3b5,_0x142d34){const _0x4fba70=_0x9e1cf0;var _0x273d59;const {unitID:_0x4844c1,type:_0xccab94,revision:_0x13198a=0x0}=_0x142d34,_0xea4d6c=this['_getSnapshotAPIPrefix']()+'/'+_0xccab94+_0x4fba70(0x261)+_0x4844c1+'/rev/'+_0x13198a,_0x575633=(await this[_0x4fba70(0x17f)]['get'](_0xea4d6c))[_0x4fba70(0x3db)],_0x428779=(_0x273d59=_0x575633[_0x4fba70(0x348)])==null?void 0x0:_0x273d59[_0x4fba70(0x41d)];if(_0x428779){const _0x4c0ccc=_0x428779==null?void 0x0:_0x428779['originalMeta'],_0xd7be36=_0x24131a['textEncoder'][_0x4fba70(0x264)](_0x24131a[_0x4fba70(0x5b3)](_0x4c0ccc));_0x428779['originalMeta']=_0xd7be36,Object[_0x4fba70(0x47e)](_0x428779[_0x4fba70(0x377)])[_0x4fba70(0x4af)](([,_0x341285])=>{const _0x2fdfa1=_0x4fba70,_0x28f570=_0x341285['originalMeta'],_0x1f8fa=_0x24131a[_0x2fdfa1(0x1f2)][_0x2fdfa1(0x264)](_0x24131a[_0x2fdfa1(0x5b3)](_0x28f570));_0x341285[_0x2fdfa1(0x19d)]=_0x1f8fa;});}return _0x575633;}async[_0x9e1cf0(0x1f0)](_0x46f46d,_0x2c63de){const _0x251b1f=_0x9e1cf0,{unitID:_0x476f1e,type:_0x4c7195,blockID:_0x3b316f}=_0x2c63de,_0x41f58a=this['_getAPIPrefix']()+'/'+_0x4c7195+'/unit/'+_0x476f1e+_0x251b1f(0x18e)+_0x3b316f;return(await this[_0x251b1f(0x17f)][_0x251b1f(0x3fa)](_0x41f58a))['body'];}async['getDeserializedSheetBlock'](_0x3d05b6,_0x27c4d9){const _0x36f7e6=_0x9e1cf0,{unitID:_0x137eed,type:_0x17f742,blockID:_0x22fee0}=_0x27c4d9,_0x546b80=this['_getAPIPrefix']()+'/block/'+_0x17f742+_0x36f7e6(0x261)+_0x137eed+_0x36f7e6(0x18e)+_0x22fee0;return(await this[_0x36f7e6(0x17f)][_0x36f7e6(0x3fa)](_0x546b80))[_0x36f7e6(0x3db)];}async[_0x9e1cf0(0x25d)](_0x3980c7,_0x3ac21a){const _0x5633dc=_0x9e1cf0,{unitID:_0x35b76c,type:_0x1f64ff,from:_0x180918,to:_0x49ee83}=_0x3ac21a,_0x1d5489=this[_0x5633dc(0x209)]()+'/'+_0x1f64ff+_0x5633dc(0x261)+_0x35b76c+_0x5633dc(0x3c3)+_0x180918+_0x5633dc(0x295)+_0x49ee83;return(await this[_0x5633dc(0x17f)][_0x5633dc(0x3fa)](_0x1d5489))[_0x5633dc(0x3db)];}['_getSnapshotAPIPrefix'](){const _0x3ff3ba=_0x9e1cf0;var _0x43c425;return(_0x43c425=this['_configService'][_0x3ff3ba(0x33d)](_0x4d3e59))!=null?_0x43c425:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x55f59d=_0x9e1cf0;var _0x26ce4c,_0x4bd0ac;const _0x402e4b=this[_0x55f59d(0x2c8)][_0x55f59d(0x33d)](_0x12764c),_0x84d304=this['_configService']['getConfig'](_0x9e8977);return(_0x4bd0ac=(_0x26ce4c=_0x84d304==null?void 0x0:_0x84d304[_0x55f59d(0x2ab)])!=null?_0x26ce4c:_0x402e4b)!=null?_0x4bd0ac:_0x38bb79;}async[_0x9e1cf0(0x331)](_0x74e3dd,_0x439767){const _0x31e3e3=_0x9e1cf0,_0x472c43=_0x31e3e3(0x480)+_0x439767[_0x31e3e3(0x5b7)]+'/unit/'+_0x439767[_0x31e3e3(0x17e)]+_0x31e3e3(0x537);return(await this[_0x31e3e3(0x17f)]['get'](_0x472c43,{'params':{'resourceId':JSON[_0x31e3e3(0x401)](_0x439767['resourceIDs'])}}))[_0x31e3e3(0x3db)];}[_0x9e1cf0(0x25f)](){const _0x53e33e=_0x9e1cf0;throw new Error(_0x53e33e(0x3a1));}[_0x9e1cf0(0x391)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x9e1cf0(0x5a5)](){const _0x12d6e2=_0x9e1cf0;throw new Error(_0x12d6e2(0x3a1));}[_0x9e1cf0(0x336)](){const _0xc13f7a=_0x9e1cf0;throw new Error(_0xc13f7a(0x3a1));}[_0x9e1cf0(0x410)](){const _0x2027c6=_0x9e1cf0;throw new Error(_0x2027c6(0x3a1));}},_0x54acb7[_0x9e1cf0(0x2bf)]=_0x471e8b([_0x5057c6(0x0,_0x528f81[_0x9e1cf0(0x1e6)]),_0x5057c6(0x1,_0x528f81[_0x9e1cf0(0x201)](_0x3935c6[_0x9e1cf0(0x446)]))],_0x54acb7[_0x9e1cf0(0x2bf)]);var _0x4655c9=Object['defineProperty'],_0x2418e8=Object[_0x9e1cf0(0x484)],_0x331430=(_0x4432f9,_0x73129b,_0x5b78b5,_0x3b74bb)=>{const _0x2b8f45=_0x9e1cf0;for(var _0x2b9cf1=_0x3b74bb>0x1?void 0x0:_0x3b74bb?_0x2418e8(_0x73129b,_0x5b78b5):_0x73129b,_0x4d1042=_0x4432f9[_0x2b8f45(0x4e5)]-0x1,_0x15b46c;_0x4d1042>=0x0;_0x4d1042--)(_0x15b46c=_0x4432f9[_0x4d1042])&&(_0x2b9cf1=(_0x3b74bb?_0x15b46c(_0x73129b,_0x5b78b5,_0x2b9cf1):_0x15b46c(_0x2b9cf1))||_0x2b9cf1);return _0x3b74bb&&_0x2b9cf1&&_0x4655c9(_0x73129b,_0x5b78b5,_0x2b9cf1),_0x2b9cf1;},_0x5d4e4f=(_0x51476e,_0x47126d)=>(_0x4b59fb,_0x133c2c)=>_0x47126d(_0x4b59fb,_0x133c2c,_0x51476e);let _0x6a8258=class extends _0x528f81['LocalUndoRedoService']{constructor(_0x33f199,_0x229351,_0x5eadfc,_0x4dcdcd,_0x1f349b){const _0x346c16=_0x9e1cf0;super(_0x33f199,_0x229351,_0x5eadfc),this[_0x346c16(0x467)]=_0x4dcdcd,this[_0x346c16(0x186)]=_0x1f349b;}[_0x9e1cf0(0x498)](_0x504e7f,_0x5176c0){const _0x1116d9=_0x9e1cf0,_0x102e6b=this['_getUndoStack'](_0x504e7f);if(_0x102e6b)try{const _0xe650e3=this[_0x1116d9(0x4d1)](_0x102e6b,_0x5176c0);this['_substituteUndoStack'](_0x504e7f,_0xe650e3);}catch(_0x51f49e){this[_0x1116d9(0x186)][_0x1116d9(0x1b9)](_0x1116d9(0x4f6),_0x51f49e),this[_0x1116d9(0x19a)](_0x504e7f);}const _0x282615=this[_0x1116d9(0x2f4)](_0x504e7f);if(_0x282615)try{const _0x2f0060=this['_transformStack'](_0x282615,_0x5176c0);this['_substituteRedoStack'](_0x504e7f,_0x2f0060);}catch(_0x12a107){this[_0x1116d9(0x186)]['error'](_0x12a107),this[_0x1116d9(0x45d)](_0x504e7f);}}['_clearUndo'](_0x37466b){const _0x5382e6=_0x9e1cf0,_0x2e966f=this[_0x5382e6(0x42e)](_0x37466b);_0x2e966f&&(_0x2e966f[_0x5382e6(0x4e5)]=0x0,this['_updateStatus']());}[_0x9e1cf0(0x45d)](_0x46c6b5){const _0x125ed7=_0x9e1cf0,_0x2fe65e=this[_0x125ed7(0x2f4)](_0x46c6b5);_0x2fe65e&&(_0x2fe65e[_0x125ed7(0x4e5)]=0x0,this[_0x125ed7(0x4f1)]());}[_0x9e1cf0(0x427)](_0x2ed3b3,_0x63c6d){const _0x1a4bf6=_0x9e1cf0;this[_0x1a4bf6(0x546)][_0x1a4bf6(0x35c)](_0x2ed3b3,_0x63c6d),this['_updateStatus']();}[_0x9e1cf0(0x1df)](_0xce9cf4,_0x3ceb44){const _0x2481fe=_0x9e1cf0;this['_redoStacks'][_0x2481fe(0x35c)](_0xce9cf4,_0x3ceb44),this['_updateStatus']();}[_0x9e1cf0(0x4d1)](_0x285aee,_0x35ca2f){const _0x1a2524=_0x9e1cf0,_0x1b91d8=[];let _0x1d6d84=_0x35ca2f,_0x235914=_0x35ca2f;for(let _0x387ea2=_0x285aee[_0x1a2524(0x4e5)]-0x1;_0x387ea2>=0x0;_0x387ea2--){const {unitID:_0x3c0294,undoMutations:_0xa2a0e8,redoMutations:_0x373278}=_0x285aee[_0x387ea2],_0x154144=this[_0x1a2524(0x467)][_0x1a2524(0x267)](_0x1d6d84,_0xa2a0e8),_0xe47439=this[_0x1a2524(0x467)][_0x1a2524(0x267)](_0x235914,_0x373278);if(_0x24131a[_0x1a2524(0x4f8)](_0x154144)||_0x24131a['isTransformMutationsWithChangesetFailure'](_0xe47439)){this[_0x1a2524(0x186)][_0x1a2524(0x1b9)](_0x1a2524(0x4f6),_0x1a2524(0x57d),_0x154144,_0xe47439);break;}_0x1d6d84=_0x154144['c1Prime'],_0x235914=_0xe47439['c1Prime'],_0x1b91d8[_0x1a2524(0x202)]({'unitID':_0x3c0294,'undoMutations':_0x154144[_0x1a2524(0x3ba)],'redoMutations':_0xe47439[_0x1a2524(0x3ba)]});}return _0x1b91d8[_0x1a2524(0x50a)]();}};_0x6a8258=_0x331430([_0x5d4e4f(0x0,_0x528f81[_0x9e1cf0(0x57f)]),_0x5d4e4f(0x1,_0x528f81[_0x9e1cf0(0x54f)]),_0x5d4e4f(0x2,_0x528f81[_0x9e1cf0(0x245)]),_0x5d4e4f(0x3,_0x24131a['ITransformService']),_0x5d4e4f(0x4,_0x528f81[_0x9e1cf0(0x360)])],_0x6a8258);class _0x535fad extends _0x528f81[_0x9e1cf0(0x3c2)]{constructor(){const _0x495c4a=_0x9e1cf0;super(),_0x2f1a44(this,_0x495c4a(0x1d5)),this[_0x495c4a(0x1d5)]=_0x45efe7[_0x495c4a(0x253)](window,'popstate')['pipe'](_0x45efe7[_0x495c4a(0x1d6)](this[_0x495c4a(0x195)]),_0x45efe7[_0x495c4a(0x2cd)](0x1),_0x45efe7[_0x495c4a(0x44c)](void 0x0));}['setParam'](_0x104a42,_0x23fc6e,_0x5cd41d=!0x1){const _0x497c10=_0x9e1cf0,_0xf2b49b=new URL(window[_0x497c10(0x33a)][_0x497c10(0x17a)]);_0xf2b49b[_0x497c10(0x569)][_0x497c10(0x35c)](_0x104a42,_0x23fc6e),_0x5cd41d?window[_0x497c10(0x486)][_0x497c10(0x347)]('','',_0xf2b49b['toString']()):window[_0x497c10(0x486)][_0x497c10(0x3e3)]('','',_0xf2b49b['toString']());}[_0x9e1cf0(0x2a0)](_0x154907,_0x48a4b1=!0x1){const _0x385aa8=_0x9e1cf0,_0x205bad=new URL(window[_0x385aa8(0x33a)][_0x385aa8(0x17a)]);_0x205bad['searchParams'][_0x385aa8(0x52f)](_0x154907),_0x48a4b1?window[_0x385aa8(0x486)][_0x385aa8(0x347)]('','',_0x205bad[_0x385aa8(0x43e)]()):window[_0x385aa8(0x486)]['pushState']('','',_0x205bad['toString']());}[_0x9e1cf0(0x399)](_0x588bf6){const _0x41cef7=_0x9e1cf0;var _0x5d17fa;return(_0x5d17fa=new URL(window[_0x41cef7(0x33a)][_0x41cef7(0x17a)])[_0x41cef7(0x569)]['get'](_0x588bf6))!=null?_0x5d17fa:void 0x0;}}var _0x3eb5f3=Object[_0x9e1cf0(0x188)],_0x36421e=Object[_0x9e1cf0(0x484)],_0x306925=(_0x3f2c0e,_0x47a042,_0x5cc79c)=>_0x47a042 in _0x3f2c0e?_0x3eb5f3(_0x3f2c0e,_0x47a042,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5cc79c}):_0x3f2c0e[_0x47a042]=_0x5cc79c,_0x3be2cb=(_0x5ed030,_0x290c70,_0x432a5d,_0x56b13d)=>{const _0x5b0cf3=_0x9e1cf0;for(var _0x463d90=_0x56b13d>0x1?void 0x0:_0x56b13d?_0x36421e(_0x290c70,_0x432a5d):_0x290c70,_0x28306a=_0x5ed030[_0x5b0cf3(0x4e5)]-0x1,_0x29cad6;_0x28306a>=0x0;_0x28306a--)(_0x29cad6=_0x5ed030[_0x28306a])&&(_0x463d90=(_0x56b13d?_0x29cad6(_0x290c70,_0x432a5d,_0x463d90):_0x29cad6(_0x463d90))||_0x463d90);return _0x56b13d&&_0x463d90&&_0x3eb5f3(_0x290c70,_0x432a5d,_0x463d90),_0x463d90;},_0x1b987c=(_0x2b21db,_0x12b29b)=>(_0x434cd3,_0x1f3e9e)=>_0x12b29b(_0x434cd3,_0x1f3e9e,_0x2b21db),_0x2fc3b6=(_0xb09c8c,_0x567975,_0x111838)=>_0x306925(_0xb09c8c,_0x567975+'',_0x111838);const _0x2092ad=_0x9e1cf0(0x3e8);_0x54acb7[_0x9e1cf0(0x451)]=class extends _0x528f81[_0x9e1cf0(0x418)]{constructor(_0x4c5fdf=_0x1686b4,_0x2c5024,_0x506275,_0x598120,_0x53e992){const _0x545772=_0x9e1cf0;super(),this[_0x545772(0x405)]=_0x4c5fdf,this[_0x545772(0x186)]=_0x2c5024,this[_0x545772(0x3a9)]=_0x506275,this[_0x545772(0x314)]=_0x598120,this[_0x545772(0x2c8)]=_0x53e992;const {..._0xd12f49}=this[_0x545772(0x405)];this[_0x545772(0x2c8)][_0x545772(0x4cc)](_0x9e8977,_0xd12f49);}[_0x9e1cf0(0x1e2)](){const _0x1dd5da=_0x9e1cf0;this['_registerDependencies'](),_0x528f81[_0x1dd5da(0x21d)](this[_0x1dd5da(0x314)],[[_0x1981fb],[_0x54acb7[_0x1dd5da(0x260)]],[_0x3c5a17]]);}[_0x9e1cf0(0x3d1)](){const _0x1af7de=_0x9e1cf0;_0x528f81[_0x1af7de(0x21d)](this[_0x1af7de(0x314)],[[_0x29d311]]);}[_0x9e1cf0(0x3f4)](){const _0x4c356e=_0x9e1cf0;this[_0x4c356e(0x1eb)]();}[_0x9e1cf0(0x1ad)](){const _0x2c2407=_0x9e1cf0;var _0x5aca05,_0x10af5d,_0x3bd338,_0x567e10;this[_0x2c2407(0x314)]['has'](_0x528f81[_0x2c2407(0x3e9)])&&this[_0x2c2407(0x186)][_0x2c2407(0x1b9)](_0x2c2407(0x2b2),_0x2c2407(0x3df));let _0xa6861c=[[_0x528f81[_0x2c2407(0x3e9)],{'useClass':_0x6a8258}],[_0x54acb7['CollaborationSessionService']],[_0x3698cd],[_0x3935c6[_0x2c2407(0x446)]],[_0x1e7c58,{'useClass':_0x535fad}],[_0x2a4af8],[_0x54acb7['LocalCacheService']],[_0x3935c6[_0x2c2407(0x2dc)]],[_0x31a637],[_0x533631],[_0x482640],[_0x33d78d],[_0x1bb405],[_0x1760d0],[_0x89fc0b],[_0x3c5a17],[_0x5bfc53,{'useClass':(_0x10af5d=(_0x5aca05=this[_0x2c2407(0x405)])==null?void 0x0:_0x5aca05[_0x2c2407(0x4ac)])!=null?_0x10af5d:_0x54acb7[_0x2c2407(0x39b)]}],[_0x3935c6[_0x2c2407(0x369)],{'useClass':_0x3935c6[_0x2c2407(0x2c1)]}],[_0x24131a[_0x2c2407(0x2c9)],{'useClass':_0x54acb7[_0x2c2407(0x2bf)]}],[_0x528f81['IAuthzIoService'],{'useClass':_0x54acb7[_0x2c2407(0x50d)]}],[_0x2a1abf[_0x2c2407(0x1ac)],{'useClass':_0x54acb7[_0x2c2407(0x393)]}],[_0x54acb7['CollaborationController']],[_0x54acb7[_0x2c2407(0x260)]],[_0x54acb7[_0x2c2407(0x287)]],[_0x29d311],[_0x1981fb]];(_0x3bd338=this['_config'])!=null&&_0x3bd338['enableSingleActiveInstanceLock']&&_0xa6861c[_0x2c2407(0x202)]([_0x5c5006,{'useClass':_0x26afb3}]),_0xa6861c=_0x528f81[_0x2c2407(0x27e)](_0xa6861c,(_0x567e10=this[_0x2c2407(0x405)])==null?void 0x0:_0x567e10['override']),_0xa6861c[_0x2c2407(0x4af)](_0x2b29d4=>this[_0x2c2407(0x314)][_0x2c2407(0x2a1)](_0x2b29d4)),this[_0x2c2407(0x32f)]();}[_0x9e1cf0(0x1eb)](){const _0x510179=_0x9e1cf0;this[_0x510179(0x17c)](this['_renderManagerService']['registerRenderModule'](_0x528f81[_0x510179(0x3b6)][_0x510179(0x4aa)],[_0x10aca7])),this['disposeWithMe'](this[_0x510179(0x3a9)][_0x510179(0x280)](_0x528f81['UniverInstanceType'][_0x510179(0x488)],[_0xa8f5ae]));}[_0x9e1cf0(0x32f)](){const _0x34b8ca=_0x9e1cf0;var _0x12272a,_0xe293dc;this[_0x34b8ca(0x314)]['get'](_0x3935c6[_0x34b8ca(0x446)])[_0x34b8ca(0x579)]({'priority':0x14,'interceptor':_0x3935c6[_0x34b8ca(0x1e1)]({'maxParallel':0x6})}),this[_0x34b8ca(0x314)][_0x34b8ca(0x3fa)](_0x1760d0),(_0x12272a=this[_0x34b8ca(0x405)])!=null&&_0x12272a['enableOfflineEditing']||this['_injector'][_0x34b8ca(0x3fa)](_0x54acb7[_0x34b8ca(0x297)])['disableLocalCache'](),(_0xe293dc=this[_0x34b8ca(0x405)])!=null&&_0xe293dc['enableAuthServer']&&this[_0x34b8ca(0x314)][_0x34b8ca(0x3fa)](_0x1bb405),this[_0x34b8ca(0x314)][_0x34b8ca(0x3fa)](_0x54acb7[_0x34b8ca(0x408)]),this[_0x34b8ca(0x314)][_0x34b8ca(0x54b)](_0x54acb7['DesktopCollaborationStatusDisplayController'])&&this['_injector']['get'](_0x54acb7['DesktopCollaborationStatusDisplayController']);}},_0x2fc3b6(_0x54acb7[_0x9e1cf0(0x451)],_0x9e1cf0(0x340),_0x2092ad),_0x54acb7['UniverCollaborationClientPlugin']=_0x3be2cb([_0x528f81[_0x9e1cf0(0x3bb)](_0x24131a[_0x9e1cf0(0x5a2)]),_0x1b987c(0x1,_0x528f81[_0x9e1cf0(0x360)]),_0x1b987c(0x2,_0x1e9711['IRenderManagerService']),_0x1b987c(0x3,_0x528f81[_0x9e1cf0(0x201)](_0x528f81[_0x9e1cf0(0x4a5)])),_0x1b987c(0x4,_0x528f81[_0x9e1cf0(0x1e6)])],_0x54acb7[_0x9e1cf0(0x451)]),_0x54acb7[_0x9e1cf0(0x206)]=_0xea25df,_0x54acb7[_0x9e1cf0(0x185)]=_0x2579f6,_0x54acb7['COLLAB_WEB_SOCKET_URL_KEY']=_0x3b3a99,_0x54acb7[_0x9e1cf0(0x2d1)]=_0x3fa463,_0x54acb7['CollaborationStatusDisplay']=_0x2f9a7f,_0x54acb7[_0x9e1cf0(0x197)]=_0x89fc0b,_0x54acb7[_0x9e1cf0(0x409)]=_0x462377,_0x54acb7[_0x9e1cf0(0x5a6)]=_0xab758c,_0x54acb7[_0x9e1cf0(0x41e)]=_0x5bfc53,_0x54acb7[_0x9e1cf0(0x1f6)]=_0x1e7c58,_0x54acb7[_0x9e1cf0(0x317)]=_0x4ca5c9,_0x54acb7[_0x9e1cf0(0x19c)]=_0x45f04f,_0x54acb7['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x5733f0,_0x54acb7['SEND_CHANGESET_TIMEOUT_KEY']=_0x4ddabd,_0x54acb7[_0x9e1cf0(0x28c)]=_0x12764c,_0x54acb7['SNAPSHOT_URL_KEY']=_0x4d3e59,_0x54acb7['SessionStatus']=_0x3b6a56,_0x54acb7[_0x9e1cf0(0x341)]=_0x4132f9,_0x54acb7[_0x9e1cf0(0x21b)]=_0x535fad,_0x54acb7[_0x9e1cf0(0x58f)]=_0x293f32,_0x54acb7[_0x9e1cf0(0x1f8)]=_0x3a44bc,Object[_0x9e1cf0(0x188)](_0x54acb7,Symbol['toStringTag'],{'value':_0x9e1cf0(0x4ab)});}));function _0x5405(){const _0x1fc513=['LICENSE_MAX_UNITS_EXCEEDED','_tryEnsureSocket','Unknown\x20user','_onUserJoin','_shouldReportTelemetry','@univerjs/design','url(#off-line-single_clip0_910_343)','@univerjs-pro/collaboration','subunit','listRoles','478954gyFVKA','_change$','objectType','getImageSourceCache','defs','routeKey','_labelPosition','_saveTaskMap','_onCombEvent','_localStorageService','handleMoveRange','submit\x20changeset\x20error!','entries','file','/universer-api/snapshot/','_getLoginPath','OffLineSingle','_http','getOwnPropertyDescriptor','_transitionLocked','history','collaboration-client.config','UNIVER_SHEET','getVpScrollXYInfoByPosToVp','CollaborationSession','IRenderManagerService','_updateLocalCursor','_univerInstanceService','UniverTelemetry','prototype','_beforeCloseService','_hover','INVALID_ARGUMENT','infoRsp','on-line-single_clip0_910_349','capture','getUndoRedoMutationParamsCache','USERS_ENTER','transformUndoRedo','fetchThroughInterceptors','onlineStatus','forwardRef','fillStyle','getMemberID','deepClone','_setupSubUnitSync','InsertRangeMoveDownCommandId','SUCCUSS','displayName','UNIVER_PROJECT','getUniverSheetInstance','Injector','error$','then','_docTransformIMECacheService','colorChannel1','UNIVER_DOC','Module','socketService','awaiting_with_pending','_cursors','forEach','UniverUi','@univerjs/engine-render','toDisposable','LocaleService','_removeRoom','RichTextEditingMutation','origin','objects','HttpImport','&source=','AWAITING','encodeURIComponent','getUnitId','rng','propertyIsEnumerable','collaboratorID','unitId','unshift','url','function','useDependency','_exhaustRemoteChangesetQueue','1em','authzUrl','HttpExport','JSONX','NodePositionConvertToRectRange','_initUnitPermissionChange','setConfig','UniverCore','NodePositionConvertToCursor','saveImage','_instanceService','_transformStack','_event$','substring','focused$','rev','setShapeProps','switchMap','ImageUploadStatusType','onTransformSelections','rgba(255,\x20255,\x20255,\x200.01)','_onRemoteACK','allowed','UniverSheetsUi','_onOffline','editing\x20status\x20changed\x20to','collaboration-session-retry','refreshPermission','_telemetryInfo','_createSocket','_status$','length','image/bmp','onTransformIME','startRow','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','onMissingChangesets','univer-online','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','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','createElement','parseProtocolChangeset','CHANGESET_ACK','_updateStatus','_imageSourceCache','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','unknown','_loadSheet','[CollaborationUndoRedoService]','isTransformChangesetsSuccess','isTransformMutationsWithChangesetFailure','randomUUID','session.room-full','_scheduleClearOtherTimer','lineTo','_onUserLeave','CollaborationEntity','pipe','BehaviorSubject','_socketMessageSubscription','React','getAncestorScale','extend','session','@univerjs/docs-ui','_context','not_collab','userID','reverse','_state','_updateState','AuthzIoHttpService','getOffsetConfig','subscribeEvent','clear','confirm','open$','_unitStatus','_hovered','withCredentials','_waitForHeartbeatResponse','_getSendChangesetTimeout','asObservable','size','row','_eventUnsubscribe','roles','isArray','permissionRejEvent','whenReady','_refRangeService','UniverEngineFormula','_initEventListeners','fetchMiss','LIVESHARE_OPERATION','collabStatus.fetchMiss','_type','path','ILocalStorageService','HTTPRequest','baseRev','_syncEditingCollabCursor','action','purple300','\x0aAfter:\x20','delete','_scheduleHeartbeat','transformSelections','[SyncedState]:\x20received\x20rejection.','c2Prime','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','updatePermissionObjEvent','_clearTimeoutTimer','/resources','reject','setAlpha','reqId','collab-text-range-','\x20-\x20','UNIVER_SLIDE','drawWith','getUnitOnRev','onRemoteAck','unsubscribe','next','_cursorInfo$','getTypeOfUnitDisposed$','0\x200\x2017\x2016','_undoStacks','distinctUntilChanged','HEARTBEAT','LIVESHARE_NEW_HOST','_transformUndoRedoStack','has','div','Error','getValue','ICommandService','_scheduleSaving','_id','post','createIdentifier','mapDocumentTypeToUniverType','conflict','getColor','idSuffix','makeDirty','_onConflict','collabCursorState$','[OfflineState]:\x20received\x20changeset.','SNAPSHOT_HAS_BEEN_REMOVED','@univerjs/docs','_name','@univerjs/telemetry','LIVESHARE_TERMINATE','getOwnPropertySymbols','_getSignURL','getCurrentUnitForType','requireSession','target','slice','handleIRemoveRow','c1Prime','searchParams','_onCursorUpdate','_onJoinRoomEvent','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_roomMembers','react','doc.mutation.rich-text-editing','listCollaborators','string','restore','_online','_docStateChangeManagerService','getRoom','_sheetSkeletonManagerService','sessionStatus$','_transformRemoteChangesetByIMECache','registerHTTPInterceptor','_onRefRangeChange','onStateChange','Subject','transformStack\x20failed!','/universer-api/snapshot','IUniverInstanceService','headers','state','SetWorksheetActivateCommand','_drawRectRange','parse','getUnhiddenWorksheets','_getScale','_session','_anchorDot','collaMsg','_commandService','?url=','closeSession','_initResize','online','deserializeToCombResponse','session.will-retry','leaveEvent','list','PERMISSION_REJ','_entities','SetTextSelectionsOperation','isInternalEditorID','[PendingState]:\x20received\x20acknowledgement.','commentUpdate$','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_entityInit$','_sendHeartbeat','_shapes','toRgbString','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','title','getViewport','UniverCollaborationPlugin','LIVESHARE_REQUEST_HOST','complete','saveChangeset','HEARTBEAT_TIMEOUT_KEY','SYNCED','getCollabCursors$','ONLINE','includes','UniverRpc','sessionStatus','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_transformPreviousActiveRange','DocSelectionManagerService','startColumn','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','disableLocalCache','b64DecodeUnicode','IMessageService','_toggleOffline','patch','type','loadDoc','11025PuPfFU','univer-pro.collaboration-client.single-active-unit-service','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_initRequestHeader','textRanges','measureText','_checkMissing','children','collaborators','1012540sowCbe','/collaborator','OnLineSingle','href','RemoveRowCommandId','disposeWithMe','APPLY_REVISION_CONFILICT','unitID','_httpService','update','getSheetObject','json','off-line-single_clip0_910_343','_hideTimer','COLLAB_SUBMIT_CHANGESET_URL_KEY','_logService','currentSkeleton$','defineProperty','UniverSheets','LOCAL_CACHE_INTERVAL','liveShareNewHost','state$','@univerjs/sheets-ui','/block/','getCoordByCell','CollaborationEvent','session.connection-failed','_updateURLWithCurrentState','visibilitychange','[OfflineState]:\x20received\x20acknowledgement.','dispose$','[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.','CommentService','ALREADY_EXISTS','[FetchMissState]','_clearUndo','UniverDesign','LOGIN_URL_KEY','originalMeta','_transformSelections','_revisionService','YUUMI_RATE_OVER_LIMIT','some','updatePermissionPoint','rxjs/operators','_assignedColors','_changesetReqId','_HTTPService','hasOwnProperty','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_clearOtherTimers','@univerjs/drawing','OTHER_CLIENTS_EDITING','IImageIoService','_registerDependencies','SheetsSelectionsService','call','[CollaborationSessionService]:\x20socket\x20error','POST','DisposableCollection','COMPRESS_MUTATION_APPLY','concatMap','incrementRevOfUnit','_drawAnchor','ws://127.0.0.1:8000/universer-api/comb/connect','onPointerLeave$','error','getCurrentUser','sendChangesetTimeout','signUrlServerUrl','getMergeData','onCommandExecuted','connectInjector','setInterval','_getAPIPrefixPath','ERROR_EXCEED_SIZE','_incrementRevisionNumber','_getAnchorBounding','getFocusedUnit','eventID','_telemetryService','UnitSnapshot','M0\x200H16V16H0z','_refreshCollabCursors','svg','fillRule','_updateSubUnitFromURLParams','failed\x20to\x20apply\x20missed\x20changesets!','_render','UniverNetwork','_clearCollaborationTimeoutTimer','cursorInfo$','Optional','DocStateChangeManagerService','urlChange$','takeUntil','univer-online-status-icon','_textBubble','NO_OTHER_CLIENTS_EDITING','FileId','_members','UNKNOWN_CODE','_updateLocalCache','send','_substituteRedoStack','_schedule','ThresholdInterceptorFactory','onStarting','defIds','assign','debounceTime','IConfigService','transform','initWorkbookPermissionChange','DEFAULT_FILE_NAME','_initCloseConn','_registerRenderDependencies','_clearLocalCache','LICENSE_EXPORT_SIZE_EXCEEDED','init','_state$','getSheetBlock','createSocket','textEncoder','interceptor','bottom','TEXT_RANGE_LAYER_INDEX','IURLService','replace','serializeCombRequest','data','HEADER_MENU','replaceTextRanges','debug','_commentUpdate$','?size=','HEARTBEAT_TIMEOUT','objectID','Inject','push','_socket$','_socketReady','_cursorShapes','AUTHZ_URL_KEY','_onFetchMissResult','UnitEmbedded','_getAPIPrefix','getDocRanges','_colorIndex','_handler','CONNECTOR_DATA_TOO_LARGE','registerRefRange','attrs','DocSkeletonManagerService','MUTATION','LICENSE_IMPORT_SIZE_EXCEEDED','concat','getTime','compose','appendMutation','ENSURE_SNAPSHOT_EXECUTION','_retryCount','translate(.97)','_onConnectionFailed','WebURLService','onRemoteRej','touchDependencies','ERROR_IMAGE','APPLY_DUPLICATED','addObject','[CollaborationState]:\x20apply\x20error!','map','isTransformMutationsWithChangesetSuccess','collaboration-client.offline-data-not-saved','_candidateSocket','_isPermissionRej','\x20in\x20_schedule.','PERMISSION_DENIED','...','_memberService','collabStatus.syncing','setUndoRedoMutationParamsCache','TRANSFORM_CHANGE_OBSERVABLE_TYPE','collabStatus.notCollab','onTransformRemoteChangesetByIMECache','@univerjs/network','roomMembers','tag','_tryReconnect','editingUnit','save','session.collaboration-timeout','_handleEvent','getCollabEntity','onPointerMove$','HEARTBEAT_INTERVAL','Warning','hidden','_permissionService','univer-offline','_collaborationController','collaboration_new_changeset','_backgroundColor','_transformIMECache','top','JOINING','IContextService','4khrhfj','PSEUDO_FETCH_MISSING_RESULT','CHANGESET_REJ','selection','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','subscribe','getRenderById','_undoRedoService','joinRsp','FromArray','from','_onRemoteChangeset','loadOfflineData','fromEvent','_startDocCollabCursor','Disposable','toLowerCase','[CollaborationSessionService]','WorkbookEditablePermission','responseType','&assign=','_sendingTimer','EffectRefRangId','fetchMissingChangesets','indexOf','saveSnapshot','DataLoaderController','/unit/','getCurrentSelections','blue400','encode','downloadEndpointUrl','current','transformMutationsWithChangeset','_createHandler','OFFLINE','filter','RemoveColCommandId','getActiveSheet','SHOULD_CLOSE_CONN','CompressMutationService','clearInterval','requestParams','_scheduleCollaborationTimeoutTimer','CommandType','handleInsertRow','_fetchMissChangesets','66003ESfUge','height','Tooltip','_uiPartsService','_heartbeatTimer','onMissedChangesetFetched','243QyWOkc','resolve','debounce','mergeOverrideWithDependencies','Vector2','registerRenderModule','_stopTelemetryCollaborationNewChangeset','getImage','black','_onLocalMutation','_socket','_applyRemoteChangeset','DesktopCollaborationStatusDisplayController','currentColor','\x20to\x20','catch','JOIN','SNAPSHOT_SERVER_URL_KEY','column','url(#$1','isTransformMutationFailure','_commentService','YUUMI_UNABLE_LOAD_URL','_disableEditing','random','onCommentUpdate','&to=','fetching\x20missing\x20changesets\x20from\x20','LocalCacheService','SheetCollaborationEntity','_listenToOnlineEvent','Rect','onTransformChange$','useObservable','Undefined','find','_waitCount','removeParam','add','operators','_docSkeleton','onlineStatusIcon','width','IUIPartsService','ITransformService','LEAVE','on-line-single','_remoteChangesetQueue','snapshotServerUrl','ColorKit','_createInitialState','UPDATE_PERMISSION_OBJ','use','COLLAB_SUBMIT_CHANGESET_URL','getInterceptPoints','[UniverCollaborationClientPlugin]','_unlockTransition','COMPLETION_FINISHED','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_collabCursorState$','FETCH_MISS','sid','_collaborationPaused','/role','combineLatest','endRow','@univerjs/ui','isPermissionRej','SnapshotServerOverHTTPService','_selfUnitIDs','XHRHTTPImplementation','findNodePositionByCharIndex','apply','color','_pendingMutations','SEND_CHANGESET_TIMEOUT','_updateCollabCursors','_configService','ISnapshotServerService','BuiltInUIPart','IDLE','shouldCloseConn','shareReplay','selections','connection\x20error','awaitingChangeset','CollaborationStatus','updateMember','setItem','VIEWPORT_KEY','Error\x20on\x20receiving\x20event','UNDEFINED','generateRandomId','/allowed','hide','getSkeleton','@univerjs/rpc','WebSocketService','_sheetTransformSelectionsService','DeleteRangeMoveUpCommandId','collabStatus.synced','EmptyMutation','UniverCollaboration','show','getCurrentRevOfUnit','SNAPSHOT_INVALID_SNAPSHOT','min','_getCtorByUniverType','verdancy600','_send','YUUMI_SUBSCRIPTION_NOT_FOUND','unit-cache-','_ws','COLLAB_WEB_SOCKET_URL','DocIMEInputManagerService','setTimeout','permission.content','params','synced','unitId\x20is\x20not\x20found','_userManagerService','_getRedoStack','DocCollaborationEntity','_lastPointer','skeleton','32472MFgxuF','_removeClearOtherTimer','_urlService','_collaborationSessionService','@univerjs-pro/license','method','_docTransformSelectionsService','_anchor','_getCurrentRevision','_sendHeartbeatTimer','exhaustSavingTask','APPLY_NON_SEQUENTIAL_REVISION','close','values','onload','_startCollaboration','resize','enableLocalCache','localeService','MergeInterceptorFactory','RECV','setCurrentUser','DeleteRangeMoveLeftCommandId','ranges','_scheduleTimestamp','runRefRangeMutations','_getUploadFileURL','_onConnectionOpen','_injector','univer-online-status-title','_docSkeletonManagerService','LOCAL_CACHE_INTERVAL_KEY','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','FETCH_MISSING','_handleHover','onPointerEnter$','INGEST','m1Prime','_acknowledgedAwaitingChangeset','handleInsertRangeMoveRight','collabWebSocketUrl','all','_timeoutTimer','Rectangle','_changesetSessionId','_retryConnectingTimer','_clearScheduledTask','docStateChange$','serializeRangeWithSheet','pending','getUnitType','_getMergeRange','dispose','#fff','endColumn','_initModules','socket$','getResourcesRequest','/universer-api/authz','@univerjs/engine-formula','bind','subUnitId','copyFileMeta','_collabSessionService','NOT_FOUND','arc','location','text','Tools','getConfig','hovered','every','pluginName','SheetCollabCursorShape','objectActions','_awaitingChangeset','_initMergeInterceptor','cursorInfo','LICENSE_DISTRO_REJECTED','replaceState','snapshot','ImageSourceType','onRemoteChangeset','UniverCollaborationClient','currentTheme$','_toggleOnline','awaiting','6TfAWEE','liveShareOperation','_singleActiveUnitService','_throwTelemetryCollaborationNewChangeset','_replayCachedMutations','cmd','rxjs','_saveCache','setActiveRange','unit','/object/','append','_cachedData','set','handleInsertCol','symbol','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','ILogService','closePath','newValue','duration','_startSheetCollabCursor','_handleJoinEvent','onlineStatusTitle','\x0aCurrent:\x20','socket\x20open.','IHTTPImplementation','COMPRESS_MUTATION_SEND','updateCursorEvent','transformIMECache','Workbook','event$','[CollaborationSession]','readAsDataURL','_themeService','ThemeService','CHANGESET_REVISION_CONFILICT','getAttachHeader','_initCommandExecutedListener','status$','sheets','font','_roomMembers$','_getSheetObject','_init','LIVESHARE_FETCH_OPERATIONS','red300','sequenceExecute','reduce','now','icon','SheetPermissionInitController','INTERNAL_ERROR','_getDownloadEndpointURL','_snapshotServerService','newCsEvent','className','_collaborationTimeoutTimer','roomMembers$','InsertSheetMutation','_getSaveTimeout','getCollabEntity$','getMember','activeSheet$','_compressMutationService','none','saveSheetBlock','onSyncEditingCollabCursor','ImageIoService','fromEventSubject','IPermissionService','_showConflictNotification','revision','name','getParam','InsertRangeMoveRightCommandId','CollaborationSocketService','univer-online-status','UNKNOWN_CMD','throttleTime','socket\x20close','isEditing','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','close$','merge','InsertRowCommandId','Shape','toggleOnline','_clearHeartbeatTimer','collabStatus.offline','_renderManagerService','jiqing500','_removeCollabCursors','xlink:href','actions','_syncEditingCollabCursorService','SheetSkeletonManagerService','UUID','roomInfos','handleDeleteRangeMoveLeft','MessageType','8467XmUkBC','createInstance','UniverInstanceType','_queuedRemoteChangesets','fetch_missing','change$','m2Prime','DependentOn','max','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getUnitStatus$','labelPosition','_rescheduleHeartbeat','_socketService','RxDisposable','/fetchmissing?from=','transformRemoteChangeset','AWAITING_WITH_PENDING','NOT_COLLAB','useCallback','CONFLICT','CollaborationSessionService','range','_transformUndoredo','_localeService','_submitChangeset','APPLY_REJECT','_onRemoteRejected','transformChangesets','onReady','changesets','uploadFileServerUrl','code','univerjs-icon\x20univerjs-icon-','getTypeOfUnitAdded$','take','deserializeRangeWithSheet','_scene','isActive','body','visibilityState','round','message$','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','@univerjs/sheets','syncEditingCollabCursor','_unitOnClients','pushState','[PendingState]:\x20received\x20rejection.','deleteCollaborator','_unitID','UserManagerService','UNIVER_COLLABORATION_CLIENT_PLUGIN','IUndoRedoService','_onCursorDelete','_joinRoom','_docSyncEditingCollabCursorService','ITelemetryService','getSheetBySheetId','collabSubmitChangesetUrl','TOO_MANY_REQUESTS','getCellPositionByOffset','_collabCursorController','conflict.title','onRendered','with','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','[DataLoaderController]','_onRecvEvent','delay','get','_decreaseWaiting','transformMutation','UPDATE_CURSOR','memberID','onSendChangeset','[OfflineState]:\x20received\x20rejection.','stringify','RevisionService','UNIVER_UNKNOWN','UNRECOGNIZED','_config','executeCommand','isValidRectRange','CollaborationController','HEARTBEAT_INTERVAL_KEY','getSheetId','_handleHeartbeatEvent','toggleOffline','_drawTextRange','_cursor','UniverEngineRender','getLatestCsReqIdBySid','447870OuSwwk','onMouseMove','fill','_lockTransition','removeMember','collab-text-anchor-','RefRangeService','Plugin','_ensureSubject','_colorAssignService','_draw','_messageService','workbook','ICollaborationSocketService','_range','_sessionStatus$','_notificationService','_initStatusComponent','getRangePointData','_loadDoc','evenodd','_initStatusListener','_substituteUndoStack','UniverDocs','USERS_LEAVE','_handleLeaveEvent','UNAUTHENTICATED','loginUrlKey','getWorkbookSelections','_getUndoStack','result','resend','reconnect','IRemoteInstanceService','updateOfflineData','_disabled','handleIRemoveCol','stopTime','setWaitCount','_localCacheService','triggerDblclick','create','_sessions','mutations','_setupBeforeClosingHandler','toString','status','_color','fillText','updateCollaborator','_snapshotService','COLORS','HELLO','HTTPService','/universer-api/stream/file/upload','number','[PendingState]:\x20unhandled\x20univer\x20type:\x20','[CollaborationEntity]','COMMENT_UPDATE','mapTo','NEW_CHANGESETS','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','clearTimeout','_executeRemoteChangeset','UniverCollaborationClientPlugin','Univer','createCollaborator','assignAColorForMemberID','sheetID','MSG_FOR_ERROR','addEventListener','/new_changes','commentUpdateEvent','registerComponent','startTime','split','_clearRedo','offline','/-/object/-/batch_allowed','RegularPolygon','SUBMIT_CHANGESET','SetSelectionsOperation','handleDeleteRangeMoveUp','uni.network.url-service','IBeforeCloseService','getRandomValues','_transformService'];_0x5405=function(){return _0x1fc513;};return _0x5405();}
|