@univerjs-pro/collaboration-client 0.4.1-nightly.202410241606 → 0.4.1-nightly.202410251606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2e84(_0x42267f,_0x1c5e5f){const _0x5d3b74=_0x5d3b();return _0x2e84=function(_0x2e84ec,_0x2ce822){_0x2e84ec=_0x2e84ec-0x10d;let _0x256ccf=_0x5d3b74[_0x2e84ec];return _0x256ccf;},_0x2e84(_0x42267f,_0x1c5e5f);}function _0x5d3b(){const _0x2209ec=['_getSnapshotAPIPrefix','_collaborationSessionService','_getAnchorBounding','startColumn','useCallback','disableLocalCache','_sessionStatus$','registerRefRange','setConfig','NOT_FOUND','toString','extend','sessionStatus','/-/object/-/batch_allowed','_onJoinRoomEvent','_setupSubUnitSync','_type','commentUpdateEvent','_isPermissionRej','_collaborationController','map','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','SNAPSHOT_SERVER_URL_KEY','setInterval','reqId','makeDirty','@univerjs/network','startRow','attrs','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','c1Prime','_range','generateRandomId','pipe','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[CollaborationSessionService]:\x20socket\x20error','_state','_anchorDot','univer-offline','_docStateChangeManagerService','_clearOtherTimers','_onUserLeave','[OfflineState]:\x20received\x20acknowledgement.','ISnapshotServerService','xlink:href','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','send','AUTHZ_URL_KEY','fetchThroughInterceptors','HttpExport','rgba(255,\x20255,\x20255,\x200.01)','runRefRangeMutations','_hover','_onLocalMutation','Univer','RxDisposable','color','DataLoaderController','_telemetryService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','FAIL','_applyRemoteChangeset','FileId','params','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','permissionRejEvent','operators','_resendTimeout','_registerRenderDependencies','univerjs-icon\x20univerjs-icon-','_collabSessionService','UniverInstanceType','socket\x20close','headers','visibilitychange','exhaustSavingTask','DeleteRangeMoveUpCommandId','permission.title','pauseCollaboration','handleInsertRangeMoveDown','[PendingState]:\x20unhandled\x20univer\x20type:\x20','length','/unit/','onCommentUpdate','AWAITING_WITH_PENDING','_transformPreviousActiveRange','ranges','urlChange$','SheetCollabCursorShape','width','_lockTransition','icon','currentSkeleton$','IUIPartsService','sessionStatus$','IImageIoService','/allowed','WorkbookEditablePermission','combineLatest','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','fillStyle','_onRemoteACK','_sendingTimer','setParam','_clearLocalCache','randomUUID','getRenderById','not_collab','_userManagerService','unload','_urlService','delete','YUUMI_SUBSCRIPTION_NOT_FOUND','/universer-api/snapshot/','COMMENT_UPDATE','_socketReady','moveTo','1em','_onMessage','collaboration-session-retry','indexOf','editing\x20status\x20changed\x20to','_docTransformSelectionsService','responseType','_cachedData','dispose$','_getSaveTimeout','complete','InsertRangeMoveRightCommandId','permission.content','min','currentColor','RevisionService','_remoteChangesetQueue','Plugin','_retryCount','_clearScheduledTask','off-line-single','_incrementRevisionNumber','_getAPIPrefix','location','shareReplay','visibilityState','colorChannel1','Disposable','collab-text-anchor-','unitId','getDeserializedSheetBlock','Vector2','transformUndoRedo','enableAuthServer','UniverNetwork','all','objectID','isTransformMutationsWithChangesetSuccess','getVpScrollXYInfoByPosToVp','rng','registerOnClose','_onRemoteChangeset','selection','_collaborationTimeoutTimer','_messageService','COLLAB_SUBMIT_CHANGESET_URL_KEY','close$','_onCombEvent','_listenToOnlineEvent','_updateCollabCursors','height','NEW_CHANGESETS','_updateState','_disableEditing','concat','url','unit-cache-','POST','0\x200\x2017\x2016','_onRecvEvent','getCurrentRevOfUnit','newValue','json','_injector','clipPath','getSheetBySheetId','UNKNOWN_CODE','SetWorksheetActivateCommand','setActiveRange','rxjs','APPLY_PERMISSION_DENIED','SheetPermissionInitController','Module','_waitCount','IConfigService','LICENSE_IMPORT_SIZE_EXCEEDED','_changesetSessionId','updateOfflineData','getWorkbookSelections','_clearUndo','SheetSkeletonManagerService','deserializeToCombResponse','translate(.97)','ERROR_IMAGE_TYPE','get','CONFLICT','/object/','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','getSheetObject','_pendingMutations','_entities','_handleEvent','COLORS','WebURLService','BuiltInUIPart','getActiveSheet','COLLAB_WEB_SOCKET_URL_KEY','_onConflict','FETCH_MISSING','saveSnapshot','Tooltip','_name','subscribe','_exhaustRemoteChangesetQueue','getCurrentSelections','LIVESHARE_REQUEST_HOST','UniverUi','OFFLINE','setTimeout','_onFetchMissResult','transformChangesets','_initMergeInterceptor','DOC_RANGE_TYPE','parseChangesetToProtocol','cmd','leaveEvent','roomMembers','DocSkeletonManagerService','UniverEngineRender','sid','HEARTBEAT_TIMEOUT_KEY','shouldCloseConn','SetSelectionsOperation','none','HttpImport','RegularPolygon','_clearCollaborationTimeoutTimer','state','getSkeleton','handleIRemoveCol','univer-online-status-title','transformMutation','clearTimeout','take','AuthzIoHttpService','_startTelemetryCollaborationNewChangeset','_retryConnectingTimer','_socketMessageSubscription','set','cursorInfo$','_context','getInterceptPoints','#fff','_commentService','eventID','startsWith','fetching\x20missing\x20changesets\x20from\x20','UNAUTHENTICATED','synced','fillText','tag','getViewport','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','removeMember','beginPath','memberID','ERROR_EXCEED_SIZE','onSendChangeset','&source=','_createHandler','append','mergeOverrideWithDependencies','Injector','onMissingChangesets','defs','/universer-api/file/{fileID}/sign-url','getUndoRedoMutationParamsCache','session','HEARTBEAT_INTERVAL','measureText','getCellPositionByOffset','loginUrlKey','ImageSourceType','call','replaceTextRanges','ThemeService','UNRECOGNIZED','/object','_heartbeatTimer','textEncoder','_send','_toggleOnline','_localStorageService','lineTo','debounceTime','_updateLocalCursor','removeParam','TEXT_RANGE_LAYER_INDEX','_onRemoteRejected','[CollaborationSession]','?size=','_updateSubUnitFromURLParams','_memberService','_notificationService','registerBeforeClose','getDocRanges','save','pending','_docSkeletonManagerService','getUnitStatus$','ImageUploadStatusType','UPDATE_CURSOR','_clearRedo','reconnect','onRemoteChangeset','setWaitCount','_transformUndoRedoStack','fromCollab','SEND_CHANGESET_TIMEOUT','_drawAnchor','getMemberID','_roomMembers','AWAITING','stringify','_scheduleTimestamp','_saveCache','debounce','reverse','@univerjs/engine-render','collabStatus.conflict','stopTime','onReady','_executeRemoteChangeset','delay','_checkMissing','Error','[UniverCollaborationClientPlugin]','Shape','16393910JtKfSB','HEADER_MENU','UniverCollaboration','@univerjs/telemetry','objectType','getValue','UniverCollaborationClientPlugin','#FFF','handleIRemoveRow','onPointerLeave$','searchParams','update','_commandService','LocalCacheService','_sessions','localeService','univer-online-status-icon','_handleJoinEvent','getSheetBlock','forEach','Rectangle','_event$','SheetCollaborationEntity','updateCollaborator','getSheetId','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','_colorIndex','batchAllowed','href','originalMeta','amd','_online','closeSession','sheetID','src','ReplaySubject','unit','error','XHRHTTPImplementation','sendChangesetTimeout','getRangePointData','getOffsetConfig','propertyIsEnumerable','SYNCED','onlineStatusTitle','size','_shapes','_toggleOffline','_getDownloadEndpointURL','_onCursorDelete','collaborators','14IyeaGX','_onOffline','_getSendChangesetTimeout','_beforeCloseService','UNIVER_DOC','message$','@univerjs/docs-ui','CollaborationStatusDisplay','UniverSheets','_joinRoom','_loadDoc','_transformSelections','_singleActiveUnitService','toggleOnline','function','merge','hide','getTime','IDLE','COLLAB_SUBMIT_CHANGESET_URL','hovered','_throwTelemetryCollaborationNewChangeset','snapshot','resolve','mutations','SnapshotServerOverHTTPService','allowed','getUnit','HTTPService','name','LocaleService','fetchMiss','image/jpg','getColor','result','status','getLatestCsReqIdBySid','onRemoteRetry','RECT','@univerjs/sheets','cursorInfo','rev','deleteCollaborator','getCurrentUser','createElement','number','toDisposable','_HTTPService','_transformIMECache','DocIMEInputManagerService','DesktopCollaborationStatusDisplayController','onlyLocal','APPLY_REJECT','hasOwnProperty','syncEditingCollabCursor','ThresholdInterceptorFactory','M0\x200H16V16H0z','ITelemetryService','failed\x20to\x20apply\x20missed\x20changesets!','image/bmp','LIVESHARE_FETCH_OPERATIONS','_onRemoteRetry','_id','purple300','session.connection-failed','textRanges','IBeforeCloseService','_syncEditingCollabCursorService','Optional','max','USERS_LEAVE','isPermissionRej','LIVESHARE_NEW_HOST','addObject','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','[SyncedState]:\x20received\x20rejection.','_refRangeService','replaceState','getCollabEntity$','_sender','_updateURLWithCurrentState','connectInjector','values','RETRY_CONNECTING_MAX_COUNT_KEY','DependentOn','_scheduleSaving','getTypeOfUnitDisposed$','MoveRangeCommandId','rxjs/operators','ImageIoService','engine','_registerDependencies','_backgroundColor','useDependency','[OfflineState]:\x20received\x20rejection.','_getAPIPrefixPath','_initModules','LIVESHARE_TERMINATE','_sheetSkeletonManagerService','_transitionLocked','BASE64','collabCursorState$','children','_updateStatus','onTransformSelections','DeleteRangeMoveLeftCommandId','_snapshotService','filter','column','[CollaborationEntity]','@univerjs/engine-formula','DocCollaborationEntity','_session','IPermissionService','Unknown\x20user','sheets','ONLINE','ws://127.0.0.1:8000/universer-api/comb/connect','debug','disposeUnit','onMouseMove','_onRefRangeChange','react','CollaborationSocketService','ICommandService','UnitSnapshot','getMember','text','MessageType','font','infoRsp','_onConnectionFailed','Warning','INVALID_ARGUMENT','_getRedoStack','createSocket','IUniverInstanceService','onRemoteAck','_docSkeleton','_compressMutationService','INotificationService','_getScale','HELLO','UniverDocsUi','_unitStatus','unitID','RECV','LICENSE_EXPORT_SIZE_EXCEEDED','_socket$','handleInsertRow','onload','on-line-single','_colorAssignService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformIME','body','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','clearInterval','NodePositionConvertToRectRange','requestParams','@univerjs-pro/license','ILocalStorageService','JOIN','commentUpdate$','verdancy600','enableOfflineEditing','_getUploadFileURL','updateCursorEvent','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_clearTimeoutTimer','[DataLoaderController]','_themeService','_anchor','deepClone','SHOULD_CLOSE_CONN','_socketService','onStateChange','@univerjs/drawing','_syncEditingCollabCursor','UniverDesign','fill','_sheetTransformSelectionsService','CHANGESET_REJ','baseRev','_unlockTransition','SNAPSHOT_INVALID_SNAPSHOT','_draw','getUnitId','onRemoteRej','FETCH_MISS','entries','every','\x0aCurrent:\x20','_tryReconnect','duration','_instanceService','svg','onMissedChangesetFetched','_members','TOO_MANY_REQUESTS','_roomMembers$','_socket','fromEvent','resize','_rescheduleHeartbeat','TEXT','asObservable','patch','&assign=','UNKNOWN_CMD','_handleHeartbeatEvent','assignAColorForMemberID','VIEW_MAIN','\x20to\x20','UNDEFINED','switchMap','collabStatus.notCollab','collaboration-client.config','some','_scene','_localeService','RefRangeService','split','throttleTime','b64DecodeUnicode','ERROR_IMAGE','range','touchDependencies','endRow','show','getUnitOnRev','isTransformChangesetsSuccess','listRoles','assign','getMergeData','conflict.content','NO_OTHER_CLIENTS_EDITING','isTransformMutationsWithChangesetFailure','auth.needGotoLoginAlert','PERMISSION_REJ','_initResize','INTERNAL_ERROR','encode','session.will-retry','pushState','HEARTBEAT_TIMEOUT','_transformService','_stopTelemetryCollaborationNewChangeset','[OfflineState]:\x20received\x20changeset.','setAlpha','LOCAL_CACHE_INTERVAL','univer-online-status','_docTransformIMECacheService','mapDocumentTypeToUniverType','then','@univerjs/rpc','EmptyMutation','routeKey','isEditing','MSG_FOR_ERROR','getCollabCursors$','resend','RichTextEditingMutation','disposeWithMe','pluginName','HEARTBEAT_INTERVAL_KEY','find','updatePermissionObjEvent','_getCurrentRevision','PENDING','withCredentials','backgroundColor','dispose','USERS_ENTER','members','HEARTBEAT','from','UNIVER_SHEET','getCoordByCell','unsubscribe','DisposableCollection','/block/','[CollaborationUndoRedoService]','_timeoutTimer','_permissionService','toStringTag','addEventListener','InsertColCommandId','displayName','UniverCollaborationClient','SNAPSHOT_HAS_BEEN_REMOVED','updateMember','_refreshCollabCursors','OTHER_CLIENTS_EDITING','next','@univerjs/core','offline','_cursorShapes','enableSingleActiveInstanceLock','UNIVER_SLIDE','drawWith','subscribeEvent','awaitingChangeset','_updateLocalCache','_queuedRemoteChangesets','CollaborationEvent','_startDocCollabCursor','_change$','_initStatusListener','getTypeOfUnitAdded$','CHANGESET_REVISION_CONFILICT','Undefined','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','error$','JOINING','_render','push','unitId\x20is\x20not\x20found','2531394sdSCns','replace','_replaceFileID','_transformRemoteChangesetByIMECache','CHANGESET_ACK','Rect','COMPLETION_FINISHED','IURLService','_handleHover','_collabCursorState$','_drawRectRange','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','catch','collab-text-range-','CollaborationController','BehaviorSubject','/collaborator','getCollabEntity','joinEvent','_initStatusComponent','socketService','registerHTTPInterceptor','UniverDrawing','&to=','conflict','_entityInit$','url(#on-line-single_clip0_910_349)','socket$','uploadFileServerUrl','selections','IMessageService','appendMutation','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_removeRoom','requireSession','/universer-api/snapshot','socket\x20open.','_onUserJoin','transformIMECache','InsertRangeMoveDownCommandId','CollaborationSession','_resendTimer','getAncestorScale','_disabled','enableLocalCache','whenReady','@univerjs-pro/collaboration','_saveTaskMap','LICENSE_DISTRO_REJECTED','_collaborationPaused','handleInsertCol','UniverSheetsUi','_snapshotServerService','INGEST','_selfUnitIDs','target','_unitOnClients','createInstance','collabWebSocketUrl','handleDeleteRangeMoveLeft','_getSheetObject','defineProperty','55464bUqYkq','deserializeRangeWithSheet','objectActions','SUBMIT_CHANGESET','_cursorInfo$','unshift','_onConnectionOpen','row','DEFAULT_FILE_NAME','equals','prototype','red300','_awaitingChangeset','_univerInstanceService','getAttachHeader','LocalUndoRedoService','_telemetryInfo','resourceIDs','fetch_missing','_startSheetCollabCursor','_labelPosition','handleDeleteRangeMoveUp','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_redoStacks','getResourcesRequest','UNIVER_PROJECT','status$','toLowerCase','Tools','PSEUDO_FETCH_MISSING_RESULT','[CollaborationSessionService]','UniverTelemetry','m2Prime','submit\x20changeset\x20error!','off-line-single_clip0_910_343','UniverCore','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_transformStack','uni.network.url-service','interceptor','getOwnPropertyDescriptor','_undoStacks','IAuthzIoService','editingUnit','csAckEvent','_onCursorUpdate','APPLY_REVISION_CONFILICT','override','saveOfflineData','code','ACTIVE_UNIT_EVENT_CHANNEL','event$','_textBubble','string','_decreaseWaiting','defIds','image/gif','roomMembers$','CommentService','SNAPSHOT_URL_KEY','toRgbString','Subject','authzUrl','49571vBEvBv','UnitEmbedded','DocSelectionManagerService','objects','list','_scheduleCollaborationTimeoutTimer','toggleOffline','apply','subUnitId','online','@univerjs/design','/new_changes','docStateChange$','_setupBeforeClosingHandler','now','getRoom','_eventUnsubscribe','reduce','_status$','image/png','liveShareNewHost','isTransformMutationFailure','isArray','getUnitType','_http','_lastPointer','triggerDblclick','getRandomValues','round','_logService','_createSocket','[PendingState]:\x20received\x20rejection.','focused$','{fileID}','has','create','_renderManagerService','use','@univerjs/ui','_candidateSocket','gold400','c2Prime','CompressMutationService','_fetchMissChangesets','onStarting','_replayCachedMutations','object','parseProtocolChangeset','CONNECTOR_DATA_TOO_LARGE','transformSelections','collaboration.single-unit.warning','updatePermissionPoint','_startCollaboration','collab-client.tooltip.reconnect','_hideTimer','RemoveRowCommandId','history','_ensureSubject','_hovered','incrementRevOfUnit','state$','CommandType','_state$','_collabCursorController','handleInsertRangeMoveRight','init','_getMergeRange','SetTextSelectionsOperation','method','ILogService','...','/universer-api/oidc/authpage','saveSheetBlock','@univerjs/docs','snapshotServerUrl','_getLoginPath','5933216FtFYUi','CollaborationSessionService','executeCommand','collaboration_new_changeset','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','onCommandExecuted','bottom','NOT_COLLAB','getItem','UNIVER_COLLABORATION_CLIENT_PLUGIN','583930JxLBTy','origin','awaiting_with_pending','actions','YUUMI_RATE_OVER_LIMIT','IUndoRedoService','getCurrentUnitForType','copyFileMeta','close','slice','_handler','117lShFmf','labelPosition','?url=','CollaborationEntity','_schedule','COMPRESS_MUTATION_APPLY','startTime','_sendHeartbeat','black','_imageSourceCache','_initCloseConn','LICENSE_MAX_UNITS_EXCEEDED','_undoRedoService','random','collaboration.closeRoom','useObservable','getFocusedUnit','_transformUndoredo','compose','m1Prime','_scheduleClearOtherTimer','revision','arc','post','restore','loadOfflineData','parse','serializeRangeWithSheet','55419pVJVbv','hidden','_initCommandExecutedListener','setCurrentUser','findNodePositionByCharIndex','UniverEngineFormula','createIdentifier','_getCtorByUniverType','WebSocketService','HTTPRequest','_getSignURL','MUTATION','_unitID','_configService','_cursors','_removeClearOtherTimer','createCollaborator','CHANGESET_SHOULD_RETRY','_shouldReportTelemetry','_resendWithTimeout','6renPvh','isActive','userID','Inject','_clearHeartbeatTimer','takeUntil','subunit','unknown','readAsDataURL','LIVESHARE_OPERATION','transform','_revisionService','SheetsSelectionsService','onlineStatusIcon','transformMutationsWithChangeset','FromArray','getParam','activeSheet$','/universer-api/authz','with','clear','collaMsg','saveImage','getConfig','collabStatus.synced','LEAVE','_removeCollabCursors','@univerjs/sheets-ui','_httpService','_scheduleHeartbeat','YUUMI_URL_COL_OUT_OF_RANGE','file','workbook','collaboratorID','_assignedColors','EffectRefRangId','UniverRpc','_cursor','_config','_tryEnsureSocket','_showConflictNotification','_acknowledgedAwaitingChangeset','reject','onTransformRemoteChangesetByIMECache','ITransformService','setShapeProps','\x0aAfter:\x20','/-/object/list','put','path','transformRemoteChangeset','setItem','YUUMI_UNABLE_LOAD_URL','_handleLeaveEvent','NodePositionConvertToCursor','_substituteUndoStack','UniverDocs','IRenderManagerService','evenodd','_listenToOfflineEvent','_changesetReqId','_createInitialStateImpl','_drawTextRange','confirm','ENSURE_SNAPSHOT_EXECUTION','_localCacheService','[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.','div','isInternalEditorID','_init','_commentUpdate$','connection\x20error','[PendingState]:\x20received\x20acknowledgement.','_createInitialState','on-line-single_clip0_910_349','top','idSuffix','sequenceExecute','doc.mutation.rich-text-editing','PERMISSION_DENIED','type','UNIVER_UNKNOWN','popstate','UPDATE_PERMISSION_OBJ','_color','add','_uiPartsService','SnapshotService','_sendHeartbeatTimer','title','forwardRef','fetchMissingChangesets','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_initUnitPermissionChange','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','collabStatus.syncing','newCsEvent','downloadEndpointUrl','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_ws','data','_submitChangeset','className'];_0x5d3b=function(){return _0x2209ec;};return _0x5d3b();}(function(_0x41111f,_0x433206){const _0x862764=_0x2e84,_0x89433f=_0x41111f();while(!![]){try{const _0x14504b=parseInt(_0x862764(0x37a))/0x1*(parseInt(_0x862764(0x1bf))/0x2)+parseInt(_0x862764(0x3db))/0x3*(parseInt(_0x862764(0x33b))/0x4)+-parseInt(_0x862764(0x3d0))/0x5*(-parseInt(_0x862764(0x40b))/0x6)+parseInt(_0x862764(0x3f7))/0x7+parseInt(_0x862764(0x3c6))/0x8+parseInt(_0x862764(0x2fd))/0x9+-parseInt(_0x862764(0x18c))/0xa;if(_0x14504b===_0x433206)break;else _0x89433f['push'](_0x89433f['shift']());}catch(_0x57bd6f){_0x89433f['push'](_0x89433f['shift']());}}}(_0x5d3b,0x60ae1),function(_0x14fb8d,_0x55e4c4){const _0x2261e3=_0x2e84;typeof exports==_0x2261e3(0x3a8)&&typeof module<'u'?_0x55e4c4(exports,require(_0x2261e3(0x2e6)),require(_0x2261e3(0x52c)),require(_0x2261e3(0x217)),require(_0x2261e3(0x384)),require(_0x2261e3(0x3a0)),require(_0x2261e3(0x48c)),require('@univerjs-pro/collaboration'),require(_0x2261e3(0x18f)),require(_0x2261e3(0x1c5)),require(_0x2261e3(0x1e6)),require(_0x2261e3(0x182)),require(_0x2261e3(0x3c3)),require('@univerjs/drawing'),require(_0x2261e3(0x22d)),require(_0x2261e3(0x426)),require(_0x2261e3(0x239)),require(_0x2261e3(0x2be)),require('@univerjs-pro/license')):typeof define==_0x2261e3(0x1cd)&&define[_0x2261e3(0x1aa)]?define(['exports','@univerjs/core',_0x2261e3(0x52c),_0x2261e3(0x217),_0x2261e3(0x384),_0x2261e3(0x3a0),_0x2261e3(0x48c),_0x2261e3(0x32b),_0x2261e3(0x18f),_0x2261e3(0x1c5),_0x2261e3(0x1e6),_0x2261e3(0x182),_0x2261e3(0x3c3),_0x2261e3(0x270),'@univerjs/engine-formula',_0x2261e3(0x426),_0x2261e3(0x239),_0x2261e3(0x2be),_0x2261e3(0x25f)],_0x55e4c4):(_0x14fb8d=typeof globalThis<'u'?globalThis:_0x14fb8d||self,_0x55e4c4(_0x14fb8d[_0x2261e3(0x2e0)]={},_0x14fb8d[_0x2261e3(0x35e)],_0x14fb8d[_0x2261e3(0x52c)],_0x14fb8d[_0x2261e3(0x52c)][_0x2261e3(0x4b4)],_0x14fb8d[_0x2261e3(0x272)],_0x14fb8d[_0x2261e3(0x112)],_0x14fb8d[_0x2261e3(0x509)],_0x14fb8d[_0x2261e3(0x18e)],_0x14fb8d[_0x2261e3(0x35a)],_0x14fb8d[_0x2261e3(0x24e)],_0x14fb8d[_0x2261e3(0x1c7)],_0x14fb8d[_0x2261e3(0x11e)],_0x14fb8d[_0x2261e3(0x443)],_0x14fb8d[_0x2261e3(0x313)],_0x14fb8d[_0x2261e3(0x3fc)],_0x14fb8d[_0x2261e3(0x330)],_0x14fb8d['React'],_0x14fb8d[_0x2261e3(0x42f)],_0x14fb8d['UniverLicense']));}(this,function(_0x27845d,_0x3223aa,_0x41acaa,_0xe02055,_0x4d822f,_0x19d837,_0x339579,_0x502235,_0x1f2e1d,_0x143e31,_0x4f46f0,_0x20af9e,_0xba5a96,_0x52582d,_0x5a0816,_0x166b0e,_0x214003,_0x3a8f53,_0x295b37){'use strict';const _0x182123=_0x2e84;var _0x568af0=Object[_0x182123(0x33a)],_0x31d935=(_0x537cfb,_0x2658f8,_0x37f1a5)=>_0x2658f8 in _0x537cfb?_0x568af0(_0x537cfb,_0x2658f8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37f1a5}):_0x537cfb[_0x2658f8]=_0x37f1a5,_0x571923=(_0x6db92d,_0x11bb22,_0x47de97)=>_0x31d935(_0x6db92d,typeof _0x11bb22!='symbol'?_0x11bb22+'':_0x11bb22,_0x47de97);const _0x393c92='SNAPSHOT_SERVER_URL_KEY',_0x272feb=_0x182123(0x320),_0x236963=_0x182123(0x376),_0x3a6e9c=_0x182123(0x178),_0x59775a='COLLAB_WEB_SOCKET_URL',_0x4207c4=_0x182123(0x234),_0x4c4485=_0x182123(0x150),_0x3cbca8=_0x182123(0x2b4),_0x433296='RETRY_CONNECTING_MAX_COUNT',_0x45a061=_0x182123(0x2b9),_0x19bb96=_0x182123(0x1d2),_0x2abe08='/universer-api/comb',_0x4f9925='LOGIN_URL_KEY',_0x2c9aef=_0x182123(0x3c1);var _0x471d59=(_0x2d7d08=>(_0x2d7d08[_0x2d7d08[_0x182123(0x295)]=0x0]=_0x182123(0x295),_0x2d7d08[_0x2d7d08['OK']=0x1]='OK',_0x2d7d08[_0x2d7d08[_0x182123(0x2b0)]=0x2]='INTERNAL_ERROR',_0x2d7d08[_0x2d7d08[_0x182123(0x45a)]=0x3]=_0x182123(0x45a),_0x2d7d08[_0x2d7d08[_0x182123(0x47b)]=0x4]=_0x182123(0x47b),_0x2d7d08[_0x2d7d08[_0x182123(0x13b)]=0x5]=_0x182123(0x13b),_0x2d7d08[_0x2d7d08['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x2d7d08[_0x2d7d08['INVALID_ARGUMENT']=0x7]=_0x182123(0x244),_0x2d7d08[_0x2d7d08[_0x182123(0x286)]=0x8]=_0x182123(0x286),_0x2d7d08[_0x2d7d08[_0x182123(0x303)]=0x9]='COMPLETION_FINISHED',_0x2d7d08[_0x2d7d08[_0x182123(0x2f5)]=0x1389]=_0x182123(0x2f5),_0x2d7d08[_0x2d7d08['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x182123(0x278),_0x2d7d08[_0x2d7d08[_0x182123(0x2e1)]=0x1772]=_0x182123(0x2e1),_0x2d7d08[_0x2d7d08[_0x182123(0x44b)]=0x1773]=_0x182123(0x44b),_0x2d7d08[_0x2d7d08[_0x182123(0x1f3)]=0x1b59]='APPLY_REJECT',_0x2d7d08[_0x2d7d08['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2d7d08[_0x2d7d08[_0x182123(0x369)]=0x1b5b]=_0x182123(0x369),_0x2d7d08[_0x2d7d08[_0x182123(0x52d)]=0x1b5c]=_0x182123(0x52d),_0x2d7d08[_0x2d7d08['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x2d7d08[_0x2d7d08[_0x182123(0x3aa)]=0x1f41]=_0x182123(0x3aa),_0x2d7d08[_0x2d7d08['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x182123(0x3e6),_0x2d7d08[_0x2d7d08['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x182123(0x209),_0x2d7d08[_0x2d7d08[_0x182123(0x532)]=0x232b]=_0x182123(0x532),_0x2d7d08[_0x2d7d08[_0x182123(0x252)]=0x232c]=_0x182123(0x252),_0x2d7d08[_0x2d7d08[_0x182123(0x32d)]=0x232d]=_0x182123(0x32d),_0x2d7d08[_0x2d7d08['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x182123(0x43f),_0x2d7d08[_0x2d7d08[_0x182123(0x429)]=0x2712]=_0x182123(0x429),_0x2d7d08[_0x2d7d08[_0x182123(0x3d4)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x2d7d08[_0x2d7d08[_0x182123(0x4e2)]=0x2714]=_0x182123(0x4e2),_0x2d7d08[_0x2d7d08[_0x182123(0x158)]=-0x1]=_0x182123(0x158),_0x2d7d08))(_0x471d59||{}),_0x33d988=(_0x4227bc=>(_0x4227bc[_0x4227bc[_0x182123(0x45c)]=0x0]=_0x182123(0x45c),_0x4227bc[_0x4227bc['UNIVER_DOC']=0x1]=_0x182123(0x1c3),_0x4227bc[_0x4227bc[_0x182123(0x2d4)]=0x2]=_0x182123(0x2d4),_0x4227bc[_0x4227bc[_0x182123(0x2ea)]=0x3]=_0x182123(0x2ea),_0x4227bc[_0x4227bc['UNIVER_PROJECT']=0x4]=_0x182123(0x354),_0x4227bc[_0x4227bc['UNRECOGNIZED']=-0x1]=_0x182123(0x158),_0x4227bc))(_0x33d988||{}),_0x3b310c=(_0x441a87=>(_0x441a87[_0x441a87[_0x182123(0x290)]=0x0]=_0x182123(0x290),_0x441a87[_0x441a87[_0x182123(0x24d)]=0x1]=_0x182123(0x24d),_0x441a87[_0x441a87['JOIN']=0x2]=_0x182123(0x261),_0x441a87[_0x441a87[_0x182123(0x424)]=0x3]=_0x182123(0x424),_0x441a87[_0x441a87['INGEST']=0x4]=_0x182123(0x332),_0x441a87[_0x441a87[_0x182123(0x2d2)]=0x5]=_0x182123(0x2d2),_0x441a87[_0x441a87[_0x182123(0x251)]=0x6]=_0x182123(0x251),_0x441a87[_0x441a87[_0x182123(0x158)]=-0x1]=_0x182123(0x158),_0x441a87))(_0x3b310c||{}),_0x3b585e=(_0x18586f=>(_0x18586f[_0x18586f[_0x182123(0x529)]=0x0]=_0x182123(0x529),_0x18586f[_0x18586f['OK']=0x1]='OK',_0x18586f[_0x18586f['FAIL']=0x2]=_0x182123(0x4ae),_0x18586f[_0x18586f[_0x182123(0x158)]=-0x1]=_0x182123(0x158),_0x18586f))(_0x3b585e||{}),_0x46d5bd=(_0x4d5d68=>(_0x4d5d68[_0x4d5d68['Undefined']=0x0]=_0x182123(0x2f6),_0x4d5d68[_0x4d5d68[_0x182123(0x124)]=0x1]='HttpImport',_0x4d5d68[_0x4d5d68[_0x182123(0x4a3)]=0x2]=_0x182123(0x4a3),_0x4d5d68[_0x4d5d68[_0x182123(0x37b)]=0x3]=_0x182123(0x37b),_0x4d5d68[_0x4d5d68[_0x182123(0x23c)]=0x4]=_0x182123(0x23c),_0x4d5d68[_0x4d5d68[_0x182123(0x158)]=-0x1]='UNRECOGNIZED',_0x4d5d68))(_0x46d5bd||{});const _0x183913=_0x182123(0x298),_0x2e3dd5={};function _0x534327(_0x57015){const _0x37c5df=_0x182123;var _0x8e5072,_0x229180,_0x1c9c30,_0xe70ec1,_0xf9c0af;const _0x5021fe=_0x57015[_0x37c5df(0x46f)],_0x480c0b=JSON[_0x37c5df(0x3f5)](_0x5021fe);switch(_0x480c0b['cmd']){case _0x3b310c['HEARTBEAT']:case _0x3b310c['HELLO']:{const _0x10d712=_0x480c0b[_0x37c5df(0x241)];return{..._0x480c0b,'data':_0x10d712,'cmd':_0x480c0b[_0x37c5df(0x11a)]};}case _0x3b310c[_0x37c5df(0x261)]:{const _0x12e46f=_0x480c0b['joinRsp'];return{..._0x480c0b,'data':_0x12e46f,'cmd':_0x480c0b[_0x37c5df(0x11a)]};}case _0x3b310c[_0x37c5df(0x251)]:{const _0x56f4df=_0x480c0b[_0x37c5df(0x420)];switch(_0x56f4df[_0x37c5df(0x138)]){case _0x502235[_0x37c5df(0x2f0)][_0x37c5df(0x2ae)]:return{..._0x480c0b,'data':{..._0x56f4df,'data':(_0x8e5072=_0x56f4df[_0x37c5df(0x4b3)])==null?void 0x0:_0x8e5072['cs']},'cmd':_0x480c0b[_0x37c5df(0x11a)]};case _0x502235[_0x37c5df(0x2f0)][_0x37c5df(0x301)]:return{..._0x480c0b,'data':{..._0x56f4df,'data':(_0x229180=_0x56f4df[_0x37c5df(0x367)])==null?void 0x0:_0x229180['cs']},'cmd':_0x480c0b[_0x37c5df(0x11a)]};case _0x502235[_0x37c5df(0x2f0)][_0x37c5df(0x51a)]:return{..._0x480c0b,'data':{..._0x56f4df,'data':(_0x1c9c30=_0x56f4df[_0x37c5df(0x46b)])==null?void 0x0:_0x1c9c30['cs']},'cmd':_0x480c0b[_0x37c5df(0x11a)]};case _0x502235[_0x37c5df(0x2f0)]['CHANGESET_REJ']:return{..._0x480c0b,'data':{..._0x56f4df,'data':(_0xe70ec1=_0x56f4df['csRejEvent'])==null?void 0x0:_0xe70ec1['cs']},'cmd':_0x480c0b[_0x37c5df(0x11a)]};case _0x502235[_0x37c5df(0x2f0)][_0x37c5df(0x408)]:return{..._0x480c0b,'data':{..._0x56f4df,'data':(_0xf9c0af=_0x56f4df['csShouldRetryEvent'])==null?void 0x0:_0xf9c0af['cs']},'cmd':_0x480c0b['cmd']};case _0x502235['CollaborationEvent'][_0x37c5df(0x171)]:return{..._0x480c0b,'data':{..._0x56f4df,'data':_0x56f4df[_0x37c5df(0x266)]},'cmd':_0x480c0b['cmd']};case _0x502235[_0x37c5df(0x2f0)][_0x37c5df(0x2d0)]:return{..._0x480c0b,'data':{..._0x56f4df,'data':_0x56f4df[_0x37c5df(0x30f)]},'cmd':_0x480c0b['cmd']};case _0x502235[_0x37c5df(0x2f0)][_0x37c5df(0x205)]:return{..._0x480c0b,'data':{..._0x56f4df,'data':_0x56f4df[_0x37c5df(0x11b)]},'cmd':_0x480c0b[_0x37c5df(0x11a)]};case _0x502235[_0x37c5df(0x2f0)]['LIVESHARE_NEW_HOST']:return{..._0x480c0b,'data':{..._0x56f4df,'data':_0x56f4df[_0x37c5df(0x38e)]},'cmd':_0x480c0b[_0x37c5df(0x11a)]};case _0x502235[_0x37c5df(0x2f0)][_0x37c5df(0x1fb)]:case _0x502235['CollaborationEvent']['LIVESHARE_OPERATION']:return{..._0x480c0b,'data':{..._0x56f4df,'data':_0x56f4df['liveShareOperation']},'cmd':_0x480c0b['cmd']};case _0x502235[_0x37c5df(0x2f0)]['LIVESHARE_TERMINATE']:return{..._0x480c0b,'data':{..._0x56f4df,'data':_0x56f4df[_0x37c5df(0x38e)]},'cmd':_0x480c0b[_0x37c5df(0x11a)]};case _0x502235[_0x37c5df(0x2f0)]['MSG_FOR_ERROR']:return{..._0x480c0b,'data':_0x56f4df,'cmd':_0x480c0b[_0x37c5df(0x11a)]};case _0x502235[_0x37c5df(0x2f0)][_0x37c5df(0x4e4)]:return{..._0x480c0b,'data':{..._0x56f4df,'data':_0x56f4df[_0x37c5df(0x483)]},'cmd':_0x480c0b[_0x37c5df(0x11a)]};case _0x502235[_0x37c5df(0x2f0)][_0x37c5df(0x45e)]:return{..._0x480c0b,'data':{..._0x56f4df,'data':_0x56f4df[_0x37c5df(0x2ca)]},'cmd':_0x480c0b['cmd']};case _0x502235[_0x37c5df(0x2f0)][_0x37c5df(0x26d)]:return{..._0x480c0b,'data':{..._0x56f4df,'data':_0x56f4df[_0x37c5df(0x121)]},'cmd':_0x480c0b[_0x37c5df(0x11a)]};default:return _0x480c0b;}}default:return _0x480c0b;}}function _0x5f417a(_0x3dba5f){const _0xc0aebe=_0x182123;switch(_0x3dba5f['cmd']){case _0x3b310c[_0xc0aebe(0x2d2)]:case _0x3b310c[_0xc0aebe(0x24d)]:return JSON[_0xc0aebe(0x17d)]({'cmd':_0x3dba5f[_0xc0aebe(0x11a)],'routeKey':_0x3dba5f[_0xc0aebe(0x2c0)]});case _0x3b310c[_0xc0aebe(0x332)]:{let _0x9e71b0;switch(_0x3dba5f[_0xc0aebe(0x46f)][_0xc0aebe(0x138)]){case _0x502235[_0xc0aebe(0x2f0)]['UPDATE_CURSOR']:{_0x9e71b0={'eventID':_0x502235['CollaborationEvent'][_0xc0aebe(0x171)],'updateCursorEvent':_0x3dba5f[_0xc0aebe(0x46f)][_0xc0aebe(0x46f)]};break;}case _0x502235['CollaborationEvent'][_0xc0aebe(0x205)]:{_0x9e71b0={'eventID':_0x502235[_0xc0aebe(0x2f0)][_0xc0aebe(0x205)],'leaveEvent':_0x3dba5f[_0xc0aebe(0x46f)][_0xc0aebe(0x46f)]};break;}case _0x502235[_0xc0aebe(0x2f0)][_0xc0aebe(0x2d0)]:{_0x9e71b0={'eventID':_0x502235['CollaborationEvent'][_0xc0aebe(0x2d0)],'joinEvent':_0x3dba5f[_0xc0aebe(0x46f)][_0xc0aebe(0x46f)]};break;}case _0x502235['CollaborationEvent'][_0xc0aebe(0x207)]:{_0x9e71b0={'eventID':_0x502235[_0xc0aebe(0x2f0)][_0xc0aebe(0x207)],'liveShareNewHost':_0x3dba5f[_0xc0aebe(0x46f)][_0xc0aebe(0x46f)]};break;}case _0x502235['CollaborationEvent'][_0xc0aebe(0x414)]:{_0x9e71b0={'eventID':_0x502235[_0xc0aebe(0x2f0)][_0xc0aebe(0x414)],'liveShareOperation':_0x3dba5f[_0xc0aebe(0x46f)][_0xc0aebe(0x46f)]};break;}case _0x502235[_0xc0aebe(0x2f0)][_0xc0aebe(0x220)]:{_0x9e71b0={'eventID':_0x502235[_0xc0aebe(0x2f0)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x3dba5f[_0xc0aebe(0x46f)][_0xc0aebe(0x46f)]};break;}case _0x502235[_0xc0aebe(0x2f0)]['LIVESHARE_REQUEST_HOST']:{_0x9e71b0={'eventID':_0x502235[_0xc0aebe(0x2f0)][_0xc0aebe(0x111)],'liveShareRequestHost':_0x3dba5f[_0xc0aebe(0x46f)][_0xc0aebe(0x46f)]};break;}case _0x502235[_0xc0aebe(0x2f0)]['LIVESHARE_FETCH_OPERATIONS']:{_0x9e71b0={'eventID':_0x502235['CollaborationEvent'][_0xc0aebe(0x1fb)]};break;}default:_0x9e71b0={'eventID':_0x3dba5f[_0xc0aebe(0x46f)][_0xc0aebe(0x138)]};}return JSON[_0xc0aebe(0x17d)]({'cmd':_0x3dba5f[_0xc0aebe(0x11a)],'routeKey':_0x3dba5f[_0xc0aebe(0x2c0)],'collaMsg':_0x9e71b0});}case _0x3b310c[_0xc0aebe(0x261)]:return JSON[_0xc0aebe(0x17d)]({'cmd':_0x3dba5f[_0xc0aebe(0x11a)],'routeKey':_0x3dba5f[_0xc0aebe(0x2c0)],'joinReq':_0x3dba5f[_0xc0aebe(0x46f)]});case _0x3b310c['LEAVE']:return JSON[_0xc0aebe(0x17d)]({'cmd':_0x3dba5f[_0xc0aebe(0x11a)],'routeKey':_0x3dba5f[_0xc0aebe(0x2c0)],'leaveReq':_0x3dba5f[_0xc0aebe(0x46f)]});default:throw new Error(_0xc0aebe(0x467));}}var _0x4d517f=Object[_0x182123(0x33a)],_0x15b502=Object['getOwnPropertyDescriptor'],_0x2cf211=(_0x5e1809,_0x107066,_0x5badf6,_0x4f92e1)=>{for(var _0x20ce48=_0x4f92e1>0x1?void 0x0:_0x4f92e1?_0x15b502(_0x107066,_0x5badf6):_0x107066,_0x20f65e=_0x5e1809['length']-0x1,_0x110d9f;_0x20f65e>=0x0;_0x20f65e--)(_0x110d9f=_0x5e1809[_0x20f65e])&&(_0x20ce48=(_0x4f92e1?_0x110d9f(_0x107066,_0x5badf6,_0x20ce48):_0x110d9f(_0x20ce48))||_0x20ce48);return _0x4f92e1&&_0x20ce48&&_0x4d517f(_0x107066,_0x5badf6,_0x20ce48),_0x20ce48;},_0x1c5fdc=(_0x1836c3,_0x312bf6)=>(_0x1d96f8,_0x273ff7)=>_0x312bf6(_0x1d96f8,_0x273ff7,_0x1836c3);const _0x46719b=_0x3223aa[_0x182123(0x3fd)]('univer-pro.collaboration-client-socket-service');function _0x5eda5c(_0x5274fd,_0xe1e415,_0x5185c8){const _0x28a431=_0x182123;return _0x5274fd+'/'+_0xe1e415+_0x28a431(0x4c4)+_0x5185c8+_0x28a431(0x385);}_0x27845d[_0x182123(0x23a)]=class extends _0x3223aa[_0x182123(0x502)]{constructor(_0x114755,_0x2029c9,_0x4cfdd4,_0x4fe2c3,_0x3227c3){const _0x333587=_0x182123;super(),this[_0x333587(0x392)]=_0x114755,this['_ws']=_0x2029c9,this[_0x333587(0x404)]=_0x4cfdd4,this['_logService']=_0x4fe2c3,this[_0x333587(0x331)]=_0x3227c3;}[_0x182123(0x246)](_0x4153e7){const _0x363043=_0x182123,_0x543d86=this[_0x363043(0x46e)][_0x363043(0x246)](_0x4153e7);if(!_0x543d86)throw new Error(_0x363043(0x351));const _0x27c15e=new _0x3223aa[(_0x363043(0x2d7))](),_0x5a95b8=new _0x41acaa[(_0x363043(0x378))]();_0x27c15e[_0x363043(0x460)](_0x543d86[_0x363043(0x515)]['subscribe'](_0x136819=>_0x5a95b8[_0x363043(0x2e5)](_0x136819))),_0x27c15e[_0x363043(0x460)](_0x3223aa[_0x363043(0x1ed)](()=>_0x5a95b8[_0x363043(0x4f1)]()));const _0x1a4177=new _0x41acaa[(_0x363043(0x378))]();_0x27c15e[_0x363043(0x460)](_0x543d86['error$'][_0x363043(0x10e)](_0x4b363f=>_0x1a4177[_0x363043(0x2e5)](_0x4b363f))),_0x27c15e[_0x363043(0x460)](_0x3223aa[_0x363043(0x1ed)](()=>_0x1a4177[_0x363043(0x4f1)]()));const _0x1a936f=new _0x41acaa['Subject']();_0x27c15e[_0x363043(0x460)](_0x543d86['message$'][_0x363043(0x10e)](_0x3cecee=>{const _0x20fa2f=_0x363043,_0x1e159f=_0x534327(_0x3cecee);_0x1a936f[_0x20fa2f(0x2e5)](_0x1e159f);})),_0x27c15e['add'](_0x3223aa[_0x363043(0x1ed)](()=>_0x1a936f['complete']()));let _0x468251;const _0x199d7b=()=>{const _0x5479f2=_0x363043;_0x1a4177[_0x5479f2(0x2e5)](new Event(_0x5479f2(0x452))),_0x5a95b8[_0x5479f2(0x2e5)](new CloseEvent('connection\x20error')),_0x468251[_0x5479f2(0x3d8)]();};return _0x468251={'memberID':'','close$':_0x5a95b8['asObservable'](),'error$':_0x1a4177['asObservable'](),'open$':_0x543d86['open$'],'message$':_0x1a936f[_0x363043(0x28d)](),'send':_0x2d6fa9=>{const _0xc75f94=_0x363043;if(_0x2d6fa9[_0xc75f94(0x11a)]===_0x3b310c[_0xc75f94(0x332)]){if(_0x2d6fa9[_0xc75f94(0x46f)][_0xc75f94(0x138)]===_0x502235[_0xc75f94(0x2f0)][_0xc75f94(0x33e)]){this[_0xc75f94(0x470)](_0x468251,_0x2d6fa9['data'])[_0xc75f94(0x309)](_0x221939=>{const _0x252744=_0xc75f94;this[_0x252744(0x397)][_0x252744(0x1b1)](_0x221939),_0x199d7b();});return;}if(_0x2d6fa9[_0xc75f94(0x46f)]['eventID']===_0x502235['CollaborationEvent']['FETCH_MISSING']){const _0x55a37f=_0x2d6fa9['data'];this[_0xc75f94(0x3a5)](_0x55a37f)['then'](_0x367c7e=>{const _0xc539a6=_0xc75f94;_0x1a936f['next']({'cmd':_0x3b310c[_0xc539a6(0x251)],'code':_0x3b585e['OK'],'routeKey':_0x55a37f[_0xc539a6(0x46f)][_0xc539a6(0x250)],'routeType':'','data':{'eventID':_0x502235[_0xc539a6(0x2f0)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x367c7e}}});})[_0xc75f94(0x309)](_0x479919=>{const _0x4a5d65=_0xc75f94;this[_0x4a5d65(0x397)][_0x4a5d65(0x1b1)](_0x479919),_0x199d7b();});return;}}_0x543d86['send'](_0x5f417a(_0x2d6fa9));},'close':()=>{const _0x56ec66=_0x363043;_0x543d86[_0x56ec66(0x3d8)](),_0x27c15e[_0x56ec66(0x2cf)]();}},_0x468251;}async[_0x182123(0x470)](_0x43432e,_0x26776b){const _0x570ea9=_0x182123;var _0x4cd2b4,_0xf8e697;const {unitType:_0x54f56a,unitID:_0x1b2190,changeset:_0x482120}=_0x26776b[_0x570ea9(0x46f)],_0x56a117={'unitID':_0x1b2190,'memberID':_0x43432e[_0x570ea9(0x143)],'type':_0x54f56a,'changeset':_0x502235[_0x570ea9(0x119)](_0x482120)},_0x5a2b29=this['_configService'][_0x570ea9(0x422)](_0x19bb96),_0x2ebb43=this[_0x570ea9(0x404)][_0x570ea9(0x422)](_0x183913),_0x3a3991=_0x5eda5c((_0xf8e697=(_0x4cd2b4=_0x2ebb43==null?void 0x0:_0x2ebb43['collabSubmitChangesetUrl'])!=null?_0x4cd2b4:_0x5a2b29)!=null?_0xf8e697:_0x2abe08,_0x54f56a,_0x1b2190);try{await this[_0x570ea9(0x392)][_0x570ea9(0x3f2)](_0x3a3991,{'body':_0x56a117});}catch(_0x365765){throw this['_logService'][_0x570ea9(0x1b1)](_0x570ea9(0x165),_0x570ea9(0x35c)),_0x365765;}}async[_0x182123(0x3a5)](_0x480409){const _0xc765ac=_0x182123,{unitID:_0x2bca9a,from:_0x583156,to:_0x3533f2,unitType:_0x5215a4}=_0x480409[_0xc765ac(0x46f)];return(await this[_0xc765ac(0x331)][_0xc765ac(0x466)]({'metadata':void 0x0},{'unitID':_0x2bca9a,'type':_0x5215a4,'from':_0x583156,'to':_0x3533f2}))['changesets'];}},_0x27845d['CollaborationSocketService']=_0x2cf211([_0x1c5fdc(0x0,_0x3223aa[_0x182123(0x40e)](_0x339579['HTTPService'])),_0x1c5fdc(0x1,_0x3223aa[_0x182123(0x40e)](_0x339579['WebSocketService'])),_0x1c5fdc(0x2,_0x3223aa['IConfigService']),_0x1c5fdc(0x3,_0x3223aa[_0x182123(0x3bf)]),_0x1c5fdc(0x4,_0x502235[_0x182123(0x49d)])],_0x27845d[_0x182123(0x23a)]);const _0x54a6f6=_0x182123(0x3c9);function _0x119580(_0x199c31){return JSON['stringify'](_0x199c31)['length'];}class _0x49bccd{constructor(){const _0x36e925=_0x182123;_0x571923(this,_0x36e925(0x451),new _0x41acaa[(_0x36e925(0x378))]()),_0x571923(this,_0x36e925(0x262),this[_0x36e925(0x451)][_0x36e925(0x28d)]());}[_0x182123(0x4c5)](_0xeb4445){const _0x42e27e=_0x182123;this[_0x42e27e(0x451)][_0x42e27e(0x2e5)](_0xeb4445);}}var _0xf7a24f=Object[_0x182123(0x33a)],_0x3b02f5=Object[_0x182123(0x363)],_0x435e60=(_0x607516,_0x460ba6,_0x25ef4e,_0x142c86)=>{const _0x42fbfc=_0x182123;for(var _0xf18858=_0x142c86>0x1?void 0x0:_0x142c86?_0x3b02f5(_0x460ba6,_0x25ef4e):_0x460ba6,_0xf6fbac=_0x607516[_0x42fbfc(0x4c3)]-0x1,_0x61680f;_0xf6fbac>=0x0;_0xf6fbac--)(_0x61680f=_0x607516[_0xf6fbac])&&(_0xf18858=(_0x142c86?_0x61680f(_0x460ba6,_0x25ef4e,_0xf18858):_0x61680f(_0xf18858))||_0xf18858);return _0x142c86&&_0xf18858&&_0xf7a24f(_0x460ba6,_0x25ef4e,_0xf18858),_0xf18858;},_0x13a2d3=(_0x361f74,_0x49b065)=>(_0x1f459e,_0x47480f)=>_0x49b065(_0x1f459e,_0x47480f,_0x361f74);let _0x842f02=class extends _0x3223aa[_0x182123(0x502)]{constructor(_0xb3bb0b,_0x2fb76a){const _0x2ab351=_0x182123;super(),_0x571923(this,_0x2ab351(0x17b),new Map()),(this[_0x2ab351(0x348)]=_0xb3bb0b,this['_userManagerService']=_0x2fb76a,this['disposeWithMe'](_0x3223aa[_0x2ab351(0x1ed)](_0x41acaa[_0x2ab351(0x1ce)](this[_0x2ab351(0x348)][_0x2ab351(0x215)](_0x3223aa['UniverInstanceType']['UNIVER_SHEET'])[_0x2ab351(0x493)](_0xe02055[_0x2ab351(0x486)](_0x5b75da=>_0x5b75da[_0x2ab351(0x27a)]())),this[_0x2ab351(0x348)][_0x2ab351(0x215)](_0x3223aa[_0x2ab351(0x4b9)][_0x2ab351(0x1c3)])['pipe'](_0xe02055[_0x2ab351(0x486)](_0x3a091a=>_0x3a091a['getUnitId']())),this[_0x2ab351(0x348)][_0x2ab351(0x215)](_0x3223aa[_0x2ab351(0x4b9)][_0x2ab351(0x2ea)])[_0x2ab351(0x493)](_0xe02055[_0x2ab351(0x486)](_0x341254=>_0x341254[_0x2ab351(0x27a)]())))[_0x2ab351(0x10e)](_0x857a43=>this[_0x2ab351(0x31e)](_0x857a43)))));}[_0x182123(0x3fa)](_0x4e294a){const _0x14d98=_0x182123;this['_userManagerService'][_0x14d98(0x3fa)](_0x4e294a);}[_0x182123(0x1ea)](){const _0x2c963f=_0x182123;return this[_0x2c963f(0x4de)][_0x2c963f(0x1ea)]();}[_0x182123(0x2e2)](_0x50c0bc,_0x571797){const _0x2b1dad=_0x182123;let _0x18ff09=this[_0x2b1dad(0x17b)][_0x2b1dad(0x53b)](_0x50c0bc);_0x18ff09||(_0x18ff09=new _0x57c204(),this['_roomMembers'][_0x2b1dad(0x132)](_0x50c0bc,_0x18ff09)),_0x18ff09[_0x2b1dad(0x2e2)](_0x571797);}[_0x182123(0x141)](_0x127e34,_0x4976e1){const _0x2aa77b=_0x182123,_0x2a1170=this[_0x2aa77b(0x17b)][_0x2aa77b(0x53b)](_0x127e34);_0x2a1170&&_0x2a1170['removeMember'](_0x4976e1);}[_0x182123(0x389)](_0x147401){const _0x277fc1=_0x182123;return this['_roomMembers'][_0x277fc1(0x53b)](_0x147401);}['getMember'](_0x5333a8,_0x3dd7d5){const _0x44a5d6=_0x182123,_0xb64e3d=this[_0x44a5d6(0x17b)][_0x44a5d6(0x53b)](_0x5333a8);if(_0xb64e3d)return _0xb64e3d['getMember'](_0x3dd7d5);}[_0x182123(0x31e)](_0x295ef0){const _0xfe1e44=_0x182123,_0x34e878=this['_roomMembers'][_0xfe1e44(0x53b)](_0x295ef0);_0x34e878&&(_0x34e878[_0xfe1e44(0x2cf)](),this['_roomMembers'][_0xfe1e44(0x4e1)](_0x295ef0));}[_0x182123(0x2cf)](){const _0x4afc74=_0x182123;this['_roomMembers'][_0x4afc74(0x19f)](_0x2a6054=>_0x2a6054['dispose']()),this[_0x4afc74(0x17b)][_0x4afc74(0x41f)]();}};_0x842f02=_0x435e60([_0x13a2d3(0x0,_0x3223aa['IUniverInstanceService']),_0x13a2d3(0x1,_0x3223aa['Inject'](_0x3223aa['UserManagerService']))],_0x842f02);class _0x57c204 extends _0x3223aa[_0x182123(0x502)]{constructor(){super(...arguments),_0x571923(this,'_members',new Map());}['dispose'](){const _0x56f77d=_0x182123;this[_0x56f77d(0x285)]['clear']();}[_0x182123(0x2e2)](_0x1b0a54){const _0x2fc5d3=_0x182123;this[_0x2fc5d3(0x285)]['set'](_0x1b0a54['memberID'],_0x1b0a54);}['removeMember'](_0x526137){const _0x5effa8=_0x182123;this['_members'][_0x5effa8(0x4e1)](_0x526137);}[_0x182123(0x23d)](_0x43164a){const _0xcc98c3=_0x182123;return this[_0xcc98c3(0x285)][_0xcc98c3(0x53b)](_0x43164a);}}var _0x59332e=Object[_0x182123(0x33a)],_0x26eec4=Object[_0x182123(0x363)],_0x33d1a8=(_0x282027,_0x5a67b5,_0x47fd6b,_0x40b495)=>{const _0x55e64a=_0x182123;for(var _0x1a5a54=_0x40b495>0x1?void 0x0:_0x40b495?_0x26eec4(_0x5a67b5,_0x47fd6b):_0x5a67b5,_0x5b6e56=_0x282027[_0x55e64a(0x4c3)]-0x1,_0x292e5a;_0x5b6e56>=0x0;_0x5b6e56--)(_0x292e5a=_0x282027[_0x5b6e56])&&(_0x1a5a54=(_0x40b495?_0x292e5a(_0x5a67b5,_0x47fd6b,_0x1a5a54):_0x292e5a(_0x1a5a54))||_0x1a5a54);return _0x40b495&&_0x1a5a54&&_0x59332e(_0x5a67b5,_0x47fd6b,_0x1a5a54),_0x1a5a54;},_0x586890=(_0x45f7fb,_0x5d6ed7)=>(_0x45a9e5,_0x293749)=>_0x5d6ed7(_0x45a9e5,_0x293749,_0x45f7fb),_0x49249e=(_0x387f57=>(_0x387f57[_0x387f57['IDLE']=0x0]='IDLE',_0x387f57[_0x387f57[_0x182123(0x2f9)]=0x1]=_0x182123(0x2f9),_0x387f57[_0x387f57[_0x182123(0x113)]=0x2]='OFFLINE',_0x387f57[_0x387f57[_0x182123(0x233)]=0x3]='ONLINE',_0x387f57))(_0x49249e||{});_0x27845d[_0x182123(0x325)]=class extends _0x3223aa[_0x182123(0x4a9)]{constructor(_0x199de9,_0xbbd97d,_0xa89a31,_0x2f8413,_0x4e9067,_0x429c22,_0x2a9a48,_0x31f9ce,_0x393a4d,_0x38055f){const _0x3ebb20=_0x182123;super(),_0x571923(this,_0x3ebb20(0x478),new _0x41acaa[(_0x3ebb20(0x30c))](0x0)),_0x571923(this,_0x3ebb20(0x4d0),this[_0x3ebb20(0x478)][_0x3ebb20(0x28d)]()),_0x571923(this,_0x3ebb20(0x1a1),new _0x41acaa[(_0x3ebb20(0x378))]()),_0x571923(this,_0x3ebb20(0x36e),this[_0x3ebb20(0x1a1)][_0x3ebb20(0x28d)]()),_0x571923(this,_0x3ebb20(0x288)),_0x571923(this,_0x3ebb20(0x131)),_0x571923(this,_0x3ebb20(0x512)),_0x571923(this,'_shouldReportTelemetry',!0x1),_0x571923(this,'_telemetryInfo',null),(this[_0x3ebb20(0x403)]=_0x199de9,this['_logService']=_0xa89a31,this[_0x3ebb20(0x1c2)]=_0x2f8413,this[_0x3ebb20(0x513)]=_0x4e9067,this[_0x3ebb20(0x404)]=_0x429c22,this['_localeService']=_0x2a9a48,this['_memberService']=_0x31f9ce,this[_0x3ebb20(0x137)]=_0x393a4d,this[_0x3ebb20(0x4ac)]=_0x38055f,this[_0x3ebb20(0x409)]=!!this['_telemetryService'],_0xbbd97d['pipe'](_0x41acaa[_0x3ebb20(0x410)](this[_0x3ebb20(0x4ef)]))[_0x3ebb20(0x10e)](_0x95a830=>{const _0x354028=_0x3ebb20;var _0x3c3b60;typeof _0x95a830>'u'||(this['_socket']=_0x95a830,_0x95a830?(this[_0x354028(0x1c8)](_0x95a830),this[_0x354028(0x131)]=_0x95a830[_0x354028(0x1c4)][_0x354028(0x10e)](_0x5cf9ce=>{const _0x46b324=_0x354028;_0x5cf9ce['routeKey']===this[_0x46b324(0x403)]&&this[_0x46b324(0x516)](_0x5cf9ce);})):(this[_0x354028(0x1d4)](),this[_0x354028(0x478)][_0x354028(0x2e5)](0x2),(_0x3c3b60=this[_0x354028(0x131)])==null||_0x3c3b60[_0x354028(0x2d6)](),this[_0x354028(0x131)]=null));}),this[_0x3ebb20(0x2c6)](this[_0x3ebb20(0x1c2)][_0x3ebb20(0x50f)](()=>{const _0x193410=_0x3ebb20;var _0x5e9926;(_0x5e9926=this[_0x193410(0x288)])==null||_0x5e9926[_0x193410(0x4a0)]({'cmd':_0x3b310c[_0x193410(0x424)],'data':{'roomID':this[_0x193410(0x403)]}});})));}get['sessionStatus'](){const _0x3c75df=_0x182123;return this[_0x3c75df(0x478)][_0x3c75df(0x191)]();}[_0x182123(0x17a)](){const _0x1ac663=_0x182123;var _0x19a0b4,_0x1174f2;return(_0x1174f2=(_0x19a0b4=this[_0x1ac663(0x288)])==null?void 0x0:_0x19a0b4['memberID'])!=null?_0x1174f2:null;}[_0x182123(0x2cf)](){const _0x3d1e9e=_0x182123;super[_0x3d1e9e(0x2cf)](),this['dispose$'][_0x3d1e9e(0x2e5)](),this['dispose$'][_0x3d1e9e(0x4f1)]();}[_0x182123(0x3d8)](){const _0x391fee=_0x182123;var _0x11719a,_0x22c361;this[_0x391fee(0x1d4)](),(_0x11719a=this[_0x391fee(0x288)])==null||_0x11719a['send']({'cmd':_0x3b310c[_0x391fee(0x424)],'data':{'roomID':this[_0x391fee(0x403)]}}),(_0x22c361=this[_0x391fee(0x288)])==null||_0x22c361[_0x391fee(0x3d8)](),this[_0x391fee(0x1a1)]['complete'](),this[_0x391fee(0x478)][_0x391fee(0x4f1)](),this[_0x391fee(0x2cf)]();}[_0x182123(0x516)](_0x218c39){const _0x45052e=_0x182123;_0x218c39['cmd']===_0x3b310c['JOIN']?this[_0x45052e(0x480)](_0x218c39):_0x218c39[_0x45052e(0x11a)]===_0x3b310c[_0x45052e(0x251)]&&this[_0x45052e(0x522)](_0x218c39);}['_joinRoom'](_0x565193){const _0x5589b2=_0x182123;this[_0x5589b2(0x478)][_0x5589b2(0x2e5)](0x1),_0x565193[_0x5589b2(0x4a0)]({'cmd':_0x3b310c['JOIN'],'routeKey':this[_0x5589b2(0x403)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5589b2(0x403)]}]}});}[_0x182123(0x480)](_0x4b19a6){const _0x5042e2=_0x182123;var _0x495064;if(_0x4b19a6['code']===_0x3b585e[_0x5042e2(0x4ae)]){this[_0x5042e2(0x513)]['show']({'type':_0x4d822f[_0x5042e2(0x23f)]['Warning'],'content':this[_0x5042e2(0x29b)]['t']('session.room-full')}),this[_0x5042e2(0x478)][_0x5042e2(0x2e5)](0x2);return;}this[_0x5042e2(0x478)][_0x5042e2(0x2e5)](0x3);const _0x48b7d4=(_0x495064=_0x4b19a6[_0x5042e2(0x46f)]['roomInfos'][this['_unitID']])==null?void 0x0:_0x495064[_0x5042e2(0x2d1)];_0x48b7d4&&_0x48b7d4[_0x5042e2(0x19f)](_0x5e4756=>this[_0x5042e2(0x168)][_0x5042e2(0x2e2)](this[_0x5042e2(0x403)],_0x5e4756));}[_0x182123(0x522)](_0x337567){const _0x100729=_0x182123;try{const _0x50adfd=_0x337567[_0x100729(0x46f)];switch(_0x50adfd[_0x100729(0x138)]){case _0x502235[_0x100729(0x2f0)]['USERS_ENTER']:this[_0x100729(0x322)](_0x50adfd),this[_0x100729(0x1a1)][_0x100729(0x2e5)](_0x50adfd);break;case _0x502235[_0x100729(0x2f0)][_0x100729(0x205)]:this[_0x100729(0x49b)](_0x50adfd),this['_event$']['next'](_0x50adfd);break;case _0x502235['CollaborationEvent'][_0x100729(0x301)]:case _0x502235[_0x100729(0x2f0)][_0x100729(0x408)]:this[_0x100729(0x2b6)](),this[_0x100729(0x126)](),this[_0x100729(0x1a1)][_0x100729(0x2e5)](_0x50adfd);break;case _0x502235['CollaborationEvent'][_0x100729(0x2c2)]:this[_0x100729(0x397)][_0x100729(0x1b1)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x50adfd)),this['_event$'][_0x100729(0x2e5)](_0x50adfd);break;case _0x502235[_0x100729(0x2f0)][_0x100729(0x4e4)]:this[_0x100729(0x137)]['onCommentUpdate'](_0x50adfd[_0x100729(0x46f)]),this[_0x100729(0x1a1)][_0x100729(0x2e5)](_0x50adfd);break;default:this[_0x100729(0x1a1)][_0x100729(0x2e5)](_0x50adfd);}}catch(_0x429bdb){this[_0x100729(0x397)][_0x100729(0x1b1)](_0x429bdb,_0x337567);}}['_onUserJoin'](_0x38df63){const _0x458782=_0x182123;this[_0x458782(0x168)][_0x458782(0x2e2)](this['_unitID'],_0x38df63[_0x458782(0x46f)]);}[_0x182123(0x49b)](_0x1d4102){const _0x13ab65=_0x182123;this[_0x13ab65(0x168)][_0x13ab65(0x141)](this[_0x13ab65(0x403)],_0x1d4102['data'][_0x13ab65(0x143)]);}async[_0x182123(0x4a0)](_0x583f19,_0x22c325){const _0x5774b0=_0x182123;if(this[_0x5774b0(0x47e)]!==0x3||!this[_0x5774b0(0x288)])throw new Error(_0x5774b0(0x35f));try{_0x583f19['eventID']===_0x502235['CollaborationEvent'][_0x5774b0(0x33e)]&&(this[_0x5774b0(0x37f)](),this[_0x5774b0(0x12f)](_0x583f19)),this[_0x5774b0(0x288)][_0x5774b0(0x4a0)]({'cmd':_0x3b310c[_0x5774b0(0x332)],'routeKey':_0x22c325,'routeType':'','data':_0x583f19});}catch(_0x4210a3){this[_0x5774b0(0x397)][_0x5774b0(0x1b1)](_0x4210a3);}}[_0x182123(0x37f)](){const _0x446fcc=_0x182123;var _0x2b1569;this[_0x446fcc(0x512)]=window[_0x446fcc(0x114)](()=>{const _0x1fa3df=_0x446fcc;this[_0x1fa3df(0x512)]=null,this[_0x1fa3df(0x513)][_0x1fa3df(0x2a4)]({'type':_0x4d822f['MessageType'][_0x1fa3df(0x189)],'content':this['_localeService']['t']('session.collaboration-timeout')});},(_0x2b1569=this[_0x446fcc(0x404)][_0x446fcc(0x422)](_0x3cbca8))!=null?_0x2b1569:0x4e20);}[_0x182123(0x126)](){const _0x1566ee=_0x182123;this[_0x1566ee(0x512)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x1566ee(0x512)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x241de9){const _0x20ab79=_0x182123;if(!this[_0x20ab79(0x409)])return;const {data:_0x249b73}=_0x241de9,{unitID:_0x27f09b,changeset:_0x5d75bf}=_0x249b73,{mutations:_0x106e49,type:_0x3982f1}=_0x5d75bf;this[_0x20ab79(0x34b)]={'unitId':_0x27f09b,'type':_0x3982f1,'startTime':performance[_0x20ab79(0x388)](),'stopTime':0x0,'duration':0x0,'size':_0x119580(_0x106e49)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x114948=_0x182123;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this[_0x114948(0x397)][_0x114948(0x1b1)](_0x114948(0x165),'telemetry\x20info\x20is\x20not\x20initialized');return;}this['_telemetryInfo'][_0x114948(0x184)]=performance[_0x114948(0x388)](),this[_0x114948(0x34b)][_0x114948(0x281)]=this[_0x114948(0x34b)][_0x114948(0x184)]-this['_telemetryInfo'][_0x114948(0x3e1)],this['_telemetryService']['capture'](_0x54a6f6,this[_0x114948(0x34b)]),this[_0x114948(0x34b)]=null;}}[_0x182123(0x1d4)](){const _0x4b46fc=_0x182123;this[_0x4b46fc(0x34b)]=null;}},_0x27845d['CollaborationSession']=_0x33d1a8([_0x586890(0x2,_0x3223aa[_0x182123(0x3bf)]),_0x586890(0x3,_0x19d837[_0x182123(0x201)]),_0x586890(0x4,_0x19d837[_0x182123(0x31b)]),_0x586890(0x5,_0x3223aa[_0x182123(0x531)]),_0x586890(0x6,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x1dd)])),_0x586890(0x7,_0x3223aa[_0x182123(0x40e)](_0x842f02)),_0x586890(0x8,_0x3223aa[_0x182123(0x40e)](_0x49bccd)),_0x586890(0x9,_0x3223aa[_0x182123(0x203)](_0x1f2e1d[_0x182123(0x1f8)]))],_0x27845d[_0x182123(0x325)]);var _0x10c237=Object[_0x182123(0x33a)],_0x29bf7b=Object[_0x182123(0x363)],_0x45d297=(_0x5c628d,_0x248111,_0x52dbf2,_0x4be6fe)=>{const _0x47604f=_0x182123;for(var _0xe19056=_0x4be6fe>0x1?void 0x0:_0x4be6fe?_0x29bf7b(_0x248111,_0x52dbf2):_0x248111,_0x1ab4db=_0x5c628d[_0x47604f(0x4c3)]-0x1,_0x43970;_0x1ab4db>=0x0;_0x1ab4db--)(_0x43970=_0x5c628d[_0x1ab4db])&&(_0xe19056=(_0x4be6fe?_0x43970(_0x248111,_0x52dbf2,_0xe19056):_0x43970(_0xe19056))||_0xe19056);return _0x4be6fe&&_0xe19056&&_0x10c237(_0x248111,_0x52dbf2,_0xe19056),_0xe19056;},_0x1f5bc9=(_0xf09904,_0x1bd31c)=>(_0x5dd923,_0x1c48c0)=>_0x1bd31c(_0x5dd923,_0x1c48c0,_0xf09904);_0x27845d[_0x182123(0x3c7)]=class extends _0x3223aa[_0x182123(0x502)]{constructor(_0x218897,_0x3ae422,_0x1d001d,_0x428d8b,_0x5e880e,_0x1ac519){const _0x530136=_0x182123;super(),_0x571923(this,_0x530136(0x253),new _0x41acaa[(_0x530136(0x30c))](void 0x0)),_0x571923(this,_0x530136(0x318),this[_0x530136(0x253)][_0x530136(0x28d)]()),_0x571923(this,_0x530136(0x3a1),null),_0x571923(this,_0x530136(0x19a),new Map()),_0x571923(this,'_status$',new _0x41acaa[(_0x530136(0x30c))](_0x49249e[_0x530136(0x1d1)])),_0x571923(this,_0x530136(0x355),this[_0x530136(0x38c)][_0x530136(0x28d)]()),_0x571923(this,_0x530136(0x4e5),!0x1),_0x571923(this,_0x530136(0x130)),_0x571923(this,'_retryCount',0x0),_0x571923(this,_0x530136(0x463)),_0x571923(this,_0x530136(0x2da)),(this[_0x530136(0x526)]=_0x218897,this[_0x530136(0x29b)]=_0x3ae422,this[_0x530136(0x513)]=_0x1d001d,this[_0x530136(0x397)]=_0x428d8b,this[_0x530136(0x404)]=_0x5e880e,this[_0x530136(0x26e)]=_0x1ac519,this['_initEventListeners']());}get[_0x182123(0x288)](){return this['_socket$']['getValue']();}['_initEventListeners'](){const _0x63b7f7=_0x182123;this[_0x63b7f7(0x446)](),this[_0x63b7f7(0x517)]();}[_0x182123(0x2cf)](){const _0x32e019=_0x182123;super[_0x32e019(0x2cf)](),this[_0x32e019(0x19a)]['forEach'](_0x330b07=>_0x330b07[_0x32e019(0x2cf)]()),this['_sessions']['clear'](),this['_status$'][_0x32e019(0x4f1)]();}async['requireSession'](_0x34101b){const _0x2af858=_0x182123;if(this[_0x2af858(0x19a)][_0x2af858(0x39c)](_0x34101b))return this[_0x2af858(0x19a)][_0x2af858(0x53b)](_0x34101b);this['_tryEnsureSocket']();const _0x40f939=this[_0x2af858(0x526)][_0x2af858(0x336)](_0x27845d[_0x2af858(0x325)],_0x34101b,this[_0x2af858(0x253)][_0x2af858(0x28d)]());return this[_0x2af858(0x19a)][_0x2af858(0x132)](_0x34101b,_0x40f939),_0x40f939;}[_0x182123(0x1ac)](_0x736bb6){const _0x1f3a75=_0x182123;var _0x47ca85;const _0x2a51fe=this['_sessions'][_0x1f3a75(0x53b)](_0x736bb6);_0x2a51fe&&(this['_sessions'][_0x1f3a75(0x4e1)](_0x736bb6),_0x2a51fe[_0x1f3a75(0x3d8)]()),this[_0x1f3a75(0x19a)][_0x1f3a75(0x1b9)]||(_0x47ca85=this[_0x1f3a75(0x288)])==null||_0x47ca85[_0x1f3a75(0x3d8)]();}['reconnect'](){const _0x317584=_0x182123;this[_0x317584(0x4f9)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x317584(0x130)]),this[_0x317584(0x130)]=null),this['_tryReconnect']();}[_0x182123(0x398)](){const _0x566dae=_0x182123;var _0x5a40fa,_0x139c90;const _0x5d3301=this['_configService']['getConfig'](_0x59775a),_0x272262=this[_0x566dae(0x404)][_0x566dae(0x422)](_0x183913),_0x3391d1=(_0x139c90=(_0x5a40fa=_0x272262==null?void 0x0:_0x272262[_0x566dae(0x337)])!=null?_0x5a40fa:_0x5d3301)!=null?_0x139c90:_0x4207c4,_0xbc9087=this[_0x566dae(0x26e)][_0x566dae(0x246)](_0x3391d1);return this[_0x566dae(0x3a1)]=_0xbc9087,_0xbc9087;}[_0x182123(0x432)](){const _0x12fb01=_0x182123;var _0xb24845,_0x1d4ebb;try{const _0x481f88=(_0x1d4ebb=(_0xb24845=this['_socket'])!=null?_0xb24845:this[_0x12fb01(0x3a1)])!=null?_0x1d4ebb:this['_createSocket']();if(_0x481f88){const _0x3ce52d=_0x481f88[_0x12fb01(0x4a0)];_0x481f88[_0x12fb01(0x4a0)]=_0x12baa8=>(this[_0x12fb01(0x28b)](),_0x3ce52d[_0x12fb01(0x381)](_0x481f88,[_0x12baa8])),_0x481f88['message$']['subscribe'](_0x48938a=>this[_0x12fb01(0x4e8)](_0x481f88,_0x48938a)),_0x481f88[_0x12fb01(0x2f8)][_0x12fb01(0x493)](_0xe02055[_0x12fb01(0x12d)](0x1))['subscribe'](_0x256198=>this[_0x12fb01(0x397)]['error'](_0x12fb01(0x495),_0x256198)),_0x481f88['open$'][_0x12fb01(0x493)](_0xe02055['take'](0x1))[_0x12fb01(0x10e)](()=>{this['_onConnectionOpen'](_0x481f88);}),_0x481f88[_0x12fb01(0x515)][_0x12fb01(0x493)](_0xe02055[_0x12fb01(0x12d)](0x1))[_0x12fb01(0x10e)](_0x84aed6=>{const _0x60bd16=_0x12fb01;this[_0x60bd16(0x397)][_0x60bd16(0x235)](_0x60bd16(0x359),_0x60bd16(0x4ba),_0x84aed6),this[_0x60bd16(0x242)]();});}}catch(_0x23e302){this[_0x12fb01(0x397)][_0x12fb01(0x1b1)](_0x23e302),this[_0x12fb01(0x242)]();}}[_0x182123(0x341)](_0x23976a){const _0xc331df=_0x182123;this[_0xc331df(0x397)][_0xc331df(0x235)](_0xc331df(0x359),_0xc331df(0x321)),_0x23976a['send']({'cmd':_0x3b310c['HELLO']}),this[_0xc331df(0x28b)]();}['_listenToOfflineEvent'](){const _0x205fd0=_0x182123;window[_0x205fd0(0x2dd)](_0x205fd0(0x2e7),()=>this[_0x205fd0(0x1c0)]());}[_0x182123(0x1c0)](){const _0x33b65a=_0x182123;this[_0x33b65a(0x4e5)]=!0x1,this[_0x33b65a(0x3a1)]=null,this[_0x33b65a(0x38c)][_0x33b65a(0x2e5)](_0x49249e[_0x33b65a(0x113)]),this[_0x33b65a(0x253)]['next'](null),this[_0x33b65a(0x268)](),this[_0x33b65a(0x40f)]();}['_onConnectionFailed'](){const _0x43fa37=_0x182123;var _0x2be112;this['_onOffline'](),this[_0x43fa37(0x4f9)]<((_0x2be112=this['_configService'][_0x43fa37(0x422)](_0x433296))!=null?_0x2be112:0x3)?(this[_0x43fa37(0x513)][_0x43fa37(0x2a4)]({'key':_0x43fa37(0x4e9),'type':_0x4d822f[_0x43fa37(0x23f)]['Warning'],'content':this['_localeService']['t'](_0x43fa37(0x2b2))}),this['_tryReconnect']()):this[_0x43fa37(0x513)][_0x43fa37(0x2a4)]({'key':'collaboration-session-retry','type':_0x4d822f[_0x43fa37(0x23f)][_0x43fa37(0x189)],'content':this[_0x43fa37(0x29b)]['t'](_0x43fa37(0x1ff))});}[_0x182123(0x517)](){const _0xb169c2=_0x182123,_0x186557=()=>{const _0x37a20b=_0x2e84;this[_0x37a20b(0x288)]||this[_0x37a20b(0x173)]();},_0x52a9c8=()=>{const _0x5d68a8=_0x2e84;this[_0x5d68a8(0x288)]||document[_0x5d68a8(0x500)]===_0x5d68a8(0x3f8)||this[_0x5d68a8(0x173)]();};window['addEventListener'](_0xb169c2(0x383),_0x186557),document[_0xb169c2(0x2dd)](_0xb169c2(0x4bc),_0x52a9c8);}[_0x182123(0x280)](){const _0xf0e3e9=_0x182123;var _0x35a23c;const _0x503afa=this[_0xf0e3e9(0x4f9)],_0x329067=this[_0xf0e3e9(0x404)]['getConfig'](_0x183913),_0x369c73=_0x503afa===0x0?0x0:((_0x35a23c=_0x329067==null?void 0x0:_0x329067['retryConnectingInterval'])!=null?_0x35a23c:0x4e20)*0x2**_0x503afa;this[_0xf0e3e9(0x130)]=window[_0xf0e3e9(0x114)](()=>{const _0x1d22e9=_0xf0e3e9;clearTimeout(this[_0x1d22e9(0x130)]),this['_retryConnectingTimer']=null,this[_0x1d22e9(0x432)]();},_0x369c73),this[_0xf0e3e9(0x4f9)]+=0x1;}['_onMessage'](_0x100f44,_0x4c987d){const _0x558db5=_0x182123,{cmd:_0x4d4228}=_0x4c987d;_0x4d4228===_0x3b310c['HELLO']&&!this['_socketReady']&&(_0x100f44[_0x558db5(0x143)]=_0x4c987d[_0x558db5(0x46f)][_0x558db5(0x143)],this[_0x558db5(0x253)][_0x558db5(0x2e5)](_0x100f44),this[_0x558db5(0x38c)]['next'](_0x49249e[_0x558db5(0x233)]),this['_socketReady']=!0x0,this['_candidateSocket']=null),_0x4d4228===_0x3b310c[_0x558db5(0x2d2)]&&this[_0x558db5(0x268)](),this[_0x558db5(0x28b)]();}[_0x182123(0x28b)](){const _0x28d517=_0x182123;var _0x312cd6;this[_0x28d517(0x40f)](),this[_0x28d517(0x463)]=window[_0x28d517(0x114)](()=>this['_sendHeartbeat'](),(_0x312cd6=this[_0x28d517(0x404)]['getConfig'](_0x4c4485))!=null?_0x312cd6:0x7530);}[_0x182123(0x3e2)](){const _0x3af236=_0x182123;this[_0x3af236(0x288)][_0x3af236(0x4a0)]({'cmd':_0x3b310c[_0x3af236(0x2d2)]}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x22bf42=_0x182123;var _0xe15b8d;this[_0x22bf42(0x2da)]=window['setTimeout'](()=>this[_0x22bf42(0x242)](),(_0xe15b8d=this[_0x22bf42(0x404)][_0x22bf42(0x422)](_0x3cbca8))!=null?_0xe15b8d:0x4e20);}[_0x182123(0x40f)](){const _0x2922e3=_0x182123;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x2922e3(0x463)]),this[_0x2922e3(0x463)]=null);}[_0x182123(0x268)](){const _0x524315=_0x182123;this[_0x524315(0x2da)]!=null&&(clearTimeout(this[_0x524315(0x2da)]),this[_0x524315(0x2da)]=null);}},_0x27845d[_0x182123(0x3c7)]=_0x45d297([_0x1f5bc9(0x0,_0x3223aa[_0x182123(0x40e)](_0x3223aa['Injector'])),_0x1f5bc9(0x1,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x1dd)])),_0x1f5bc9(0x2,_0x19d837[_0x182123(0x31b)]),_0x1f5bc9(0x3,_0x3223aa['ILogService']),_0x1f5bc9(0x4,_0x3223aa[_0x182123(0x531)]),_0x1f5bc9(0x5,_0x46719b)],_0x27845d['CollaborationSessionService']);for(var _0x1f7466=[],_0x128f66=0x0;_0x128f66<0x100;++_0x128f66)_0x1f7466['push']((_0x128f66+0x100)['toString'](0x10)[_0x182123(0x3d9)](0x1));function _0x42c94d(_0x3be53e,_0xb35e35=0x0){const _0x22b650=_0x182123;return(_0x1f7466[_0x3be53e[_0xb35e35+0x0]]+_0x1f7466[_0x3be53e[_0xb35e35+0x1]]+_0x1f7466[_0x3be53e[_0xb35e35+0x2]]+_0x1f7466[_0x3be53e[_0xb35e35+0x3]]+'-'+_0x1f7466[_0x3be53e[_0xb35e35+0x4]]+_0x1f7466[_0x3be53e[_0xb35e35+0x5]]+'-'+_0x1f7466[_0x3be53e[_0xb35e35+0x6]]+_0x1f7466[_0x3be53e[_0xb35e35+0x7]]+'-'+_0x1f7466[_0x3be53e[_0xb35e35+0x8]]+_0x1f7466[_0x3be53e[_0xb35e35+0x9]]+'-'+_0x1f7466[_0x3be53e[_0xb35e35+0xa]]+_0x1f7466[_0x3be53e[_0xb35e35+0xb]]+_0x1f7466[_0x3be53e[_0xb35e35+0xc]]+_0x1f7466[_0x3be53e[_0xb35e35+0xd]]+_0x1f7466[_0x3be53e[_0xb35e35+0xe]]+_0x1f7466[_0x3be53e[_0xb35e35+0xf]])[_0x22b650(0x356)]();}var _0x388b50,_0x2b1c3a=new Uint8Array(0x10);function _0x18f5b4(){const _0x16fbaf=_0x182123;if(!_0x388b50&&(_0x388b50=typeof crypto<'u'&&crypto[_0x16fbaf(0x395)]&&crypto[_0x16fbaf(0x395)]['bind'](crypto),!_0x388b50))throw new Error(_0x16fbaf(0x4b2));return _0x388b50(_0x2b1c3a);}var _0x103dfa=typeof crypto<'u'&&crypto[_0x182123(0x4db)]&&crypto[_0x182123(0x4db)]['bind'](crypto);const _0x1bab01={'randomUUID':_0x103dfa};function _0x3a1d6d(_0x4e3ce6,_0x97c934,_0x4388ac){const _0x4eefe6=_0x182123;if(_0x1bab01[_0x4eefe6(0x4db)]&&!_0x97c934&&!_0x4e3ce6)return _0x1bab01['randomUUID']();_0x4e3ce6=_0x4e3ce6||{};var _0x332fd8=_0x4e3ce6[_0x4eefe6(0x3e8)]||(_0x4e3ce6[_0x4eefe6(0x50e)]||_0x18f5b4)();return _0x332fd8[0x6]=_0x332fd8[0x6]&0xf|0x40,_0x332fd8[0x8]=_0x332fd8[0x8]&0x3f|0x80,_0x42c94d(_0x332fd8);}var _0x44295c=Object[_0x182123(0x33a)],_0x1cd2f9=Object['getOwnPropertyDescriptor'],_0x469088=(_0x2b7517,_0x4266d3,_0x5ec156,_0x2020c5)=>{const _0x21d036=_0x182123;for(var _0x2cd913=_0x2020c5>0x1?void 0x0:_0x2020c5?_0x1cd2f9(_0x4266d3,_0x5ec156):_0x4266d3,_0x324e8a=_0x2b7517[_0x21d036(0x4c3)]-0x1,_0x48eed1;_0x324e8a>=0x0;_0x324e8a--)(_0x48eed1=_0x2b7517[_0x324e8a])&&(_0x2cd913=(_0x2020c5?_0x48eed1(_0x4266d3,_0x5ec156,_0x2cd913):_0x48eed1(_0x2cd913))||_0x2cd913);return _0x2020c5&&_0x2cd913&&_0x44295c(_0x4266d3,_0x5ec156,_0x2cd913),_0x2cd913;},_0x31c4ff=(_0xa10b50,_0xdd77ee)=>(_0x32e40d,_0x1139f0)=>_0xdd77ee(_0x32e40d,_0x1139f0,_0xa10b50);let _0x136308=class{constructor(_0x324d97,_0xcc2537,_0x48f698){const _0x2d0221=_0x182123;this['_injector']=_0x324d97,this[_0x2d0221(0x2b5)]=_0xcc2537,this['_renderManagerService']=_0x48f698;}['transformIMECache'](_0x3aee32){const _0x24d02d=_0x182123;this[_0x24d02d(0x176)](_0x3aee32),this[_0x24d02d(0x4c7)](_0x3aee32);}[_0x182123(0x43d)](_0x2fbde0){const _0x388a1f=_0x182123,{unitID:_0x50af25}=_0x2fbde0,_0x47f848=this[_0x388a1f(0x39e)]['getRenderById'](_0x50af25)[_0x388a1f(0x41e)](_0x143e31[_0x388a1f(0x1f0)]),{redoCache:_0x5e5f4a}=_0x47f848[_0x388a1f(0x14e)]();if(_0x5e5f4a[_0x388a1f(0x4c3)]===0x0)return _0x2fbde0;let _0x1fe2a3=_0x3223aa[_0x388a1f(0x357)][_0x388a1f(0x26c)](_0x2fbde0[_0x388a1f(0x1d7)][0x0]);for(let _0x5c03fb=0x0;_0x5c03fb<_0x5e5f4a[_0x388a1f(0x4c3)];_0x5c03fb++){const _0x489c02={'id':'doc.mutation.rich-text-editing','params':{..._0x5e5f4a[_0x5c03fb]}},_0x10064c=this[_0x388a1f(0x2b5)][_0x388a1f(0x12b)](_0x1fe2a3,_0x489c02,!0x1);if(_0x502235[_0x388a1f(0x38f)](_0x10064c))throw _0x10064c[_0x388a1f(0x1b1)];_0x1fe2a3=_0x10064c['m1Prime'];}return{..._0x3223aa[_0x388a1f(0x357)][_0x388a1f(0x26c)](_0x2fbde0),'mutations':[_0x1fe2a3]};}[_0x182123(0x176)](_0x2e8dae){const _0x3e6434=_0x182123,{unitID:_0x4e6fe9}=_0x2e8dae,_0xd818ed=this[_0x3e6434(0x39e)]['getRenderById'](_0x4e6fe9)['with'](_0x143e31[_0x3e6434(0x1f0)]),{undoCache:_0x25f6b,redoCache:_0x2b2dc5}=_0xd818ed[_0x3e6434(0x14e)]();if(_0x25f6b[_0x3e6434(0x4c3)]===0x0||_0x2b2dc5[_0x3e6434(0x4c3)]===0x0)return;const _0x259ca8=[],_0x1a4d98=[];let _0x1e60f4=_0x3223aa[_0x3e6434(0x357)][_0x3e6434(0x26c)](_0x2e8dae[_0x3e6434(0x1d7)][0x0]),_0x43852c=_0x3223aa[_0x3e6434(0x357)][_0x3e6434(0x26c)](_0x2e8dae[_0x3e6434(0x1d7)][0x0]);for(let _0x21a30b=_0x25f6b[_0x3e6434(0x4c3)]-0x1;_0x21a30b>=0x0;_0x21a30b--){const _0x741361={'id':_0x3e6434(0x459),'params':{..._0x25f6b[_0x21a30b]}},_0x4d4abf={'id':_0x3e6434(0x459),'params':{..._0x2b2dc5[_0x21a30b]}},_0x1f6804=this[_0x3e6434(0x2b5)][_0x3e6434(0x12b)](_0x1e60f4,_0x741361,!0x1),_0x3c1ba1=this['_transformService'][_0x3e6434(0x12b)](_0x43852c,_0x4d4abf,!0x1);if(_0x502235['isTransformMutationFailure'](_0x1f6804))throw _0x1f6804[_0x3e6434(0x1b1)];if(_0x502235[_0x3e6434(0x38f)](_0x3c1ba1))throw _0x3c1ba1[_0x3e6434(0x1b1)];_0x259ca8[_0x3e6434(0x340)](_0x1f6804[_0x3e6434(0x35b)][_0x3e6434(0x4b1)]),_0x1a4d98[_0x3e6434(0x340)](_0x3c1ba1[_0x3e6434(0x35b)][_0x3e6434(0x4b1)]),_0x1e60f4=_0x1f6804[_0x3e6434(0x3ee)],_0x43852c=_0x3c1ba1[_0x3e6434(0x3ee)];}_0xd818ed['setUndoRedoMutationParamsCache']({'undoCache':_0x259ca8,'redoCache':_0x1a4d98});}[_0x182123(0x4c7)](_0x282670){const _0x54d67b=_0x182123,{unitID:_0xbc4e33}=_0x282670,_0x26b4dd=this['_renderManagerService'][_0x54d67b(0x4dc)](_0xbc4e33)[_0x54d67b(0x41e)](_0x143e31[_0x54d67b(0x1f0)]),_0x466181=_0x26b4dd['getActiveRange']();if(_0x466181==null)return;const _0x384846=[{'id':_0x54d67b(0x459),'params':{'unitId':_0x282670[_0x54d67b(0x250)],'actions':null,'textRanges':[_0x466181]}}],_0x290646=this[_0x54d67b(0x2b5)]['transformMutationsWithChangeset'](_0x282670,_0x384846);if(!_0x502235[_0x54d67b(0x50c)](_0x290646))throw _0x290646[_0x54d67b(0x1b1)];const _0x4ff9e9=_0x290646['m2Prime'][0x0][_0x54d67b(0x4b1)][_0x54d67b(0x200)];Array[_0x54d67b(0x390)](_0x4ff9e9)&&_0x4ff9e9[_0x54d67b(0x4c3)]&&_0x26b4dd[_0x54d67b(0x52b)](_0x4ff9e9[0x0]);}};_0x136308=_0x469088([_0x31c4ff(0x0,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x31c4ff(0x1,_0x502235[_0x182123(0x437)]),_0x31c4ff(0x2,_0x20af9e[_0x182123(0x444)])],_0x136308);var _0x2b58df=Object[_0x182123(0x33a)],_0x552587=Object[_0x182123(0x363)],_0x539554=(_0x50d781,_0x4cf7d4,_0x1ecc0d,_0x39ab9f)=>{const _0x14c97=_0x182123;for(var _0x525939=_0x39ab9f>0x1?void 0x0:_0x39ab9f?_0x552587(_0x4cf7d4,_0x1ecc0d):_0x4cf7d4,_0x607460=_0x50d781[_0x14c97(0x4c3)]-0x1,_0x5c3ff8;_0x607460>=0x0;_0x607460--)(_0x5c3ff8=_0x50d781[_0x607460])&&(_0x525939=(_0x39ab9f?_0x5c3ff8(_0x4cf7d4,_0x1ecc0d,_0x525939):_0x5c3ff8(_0x525939))||_0x525939);return _0x39ab9f&&_0x525939&&_0x2b58df(_0x4cf7d4,_0x1ecc0d,_0x525939),_0x525939;},_0x2539ed=(_0x344fa2,_0x49449e)=>(_0x5196bf,_0x583f76)=>_0x49449e(_0x5196bf,_0x583f76,_0x344fa2);_0x27845d['LocalCacheService']=class extends _0x3223aa[_0x182123(0x502)]{constructor(_0x58e9a8,_0x504503,_0x13e5b3,_0x2c96bc,_0x28cb04){const _0x33e2ff=_0x182123;super(),_0x571923(this,_0x33e2ff(0x4ee),new Map()),_0x571923(this,_0x33e2ff(0x32c),new Map()),_0x571923(this,_0x33e2ff(0x328),!0x1),(this[_0x33e2ff(0x404)]=_0x58e9a8,this[_0x33e2ff(0x15e)]=_0x504503,this[_0x33e2ff(0x1c2)]=_0x13e5b3,this['_localeService']=_0x2c96bc,this[_0x33e2ff(0x416)]=_0x28cb04,this[_0x33e2ff(0x387)]());}[_0x182123(0x477)](){const _0x191c0c=_0x182123;this[_0x191c0c(0x328)]=!0x0;}[_0x182123(0x329)](){const _0x5c68e7=_0x182123;this[_0x5c68e7(0x328)]=!0x1;}[_0x182123(0x2cf)](){const _0x1251d6=_0x182123;this[_0x1251d6(0x4bd)]()[_0x1251d6(0x2bd)](()=>super[_0x1251d6(0x2cf)]());}async['loadOfflineData'](_0x37b2c8){const _0x35e2f8=_0x182123;return this[_0x35e2f8(0x328)]?null:this[_0x35e2f8(0x15e)][_0x35e2f8(0x3ce)](_0x315929(_0x37b2c8));}async[_0x182123(0x36b)](_0x564865,_0x56aa56){const _0x4c44da=_0x182123;return!!this[_0x4c44da(0x15e)][_0x4c44da(0x43e)](_0x564865,_0x56aa56);}['updateOfflineData'](_0x266aaa,_0x22cc3f,_0xa237f7,_0x4c17cc){const _0xdc2d5c=_0x182123,_0x5077b8=this[_0xdc2d5c(0x416)][_0xdc2d5c(0x523)](_0x266aaa);this[_0xdc2d5c(0x4ee)][_0xdc2d5c(0x132)](_0x266aaa,{'unitID':_0x266aaa,'type':_0x22cc3f,'awaitingChangeset':_0xa237f7,'mutations':_0x4c17cc,'rev':_0x5077b8}),this['_saveTaskMap'][_0xdc2d5c(0x39c)](_0x266aaa)||this[_0xdc2d5c(0x214)](_0x266aaa);}[_0x182123(0x214)](_0x294696){const _0x554b27=_0x182123,_0x1f880d=this[_0x554b27(0x4f0)]();_0x1f880d===0x0?this[_0x554b27(0x17f)](_0x294696):this['_saveTaskMap'][_0x554b27(0x132)](_0x294696,setTimeout(()=>this[_0x554b27(0x17f)](_0x294696),_0x1f880d));}['_getSaveTimeout'](){const _0x22f63c=_0x182123;var _0x185a4b;return(_0x185a4b=this[_0x22f63c(0x404)][_0x22f63c(0x422)](_0x45a061))!=null?_0x185a4b:0x3e8;}[_0x182123(0x17f)](_0x1da429){const _0x56a63c=_0x182123,_0x4cd3ab=this[_0x56a63c(0x32c)][_0x56a63c(0x53b)](_0x1da429);return _0x4cd3ab!==void 0x0&&window[_0x56a63c(0x12c)](_0x4cd3ab),this[_0x56a63c(0x15e)][_0x56a63c(0x43e)](_0x315929(_0x1da429),this[_0x56a63c(0x4ee)][_0x56a63c(0x53b)](_0x1da429))[_0x56a63c(0x2bd)](()=>this[_0x56a63c(0x32c)][_0x56a63c(0x4e1)](_0x1da429));}async[_0x182123(0x4bd)](){const _0x284868=_0x182123,_0x29bbaa=[];this[_0x284868(0x32c)]['forEach']((_0x3efae1,_0x1228b4)=>{window['clearTimeout'](_0x3efae1),_0x29bbaa['push'](this['_saveCache'](_0x1228b4)['then'](()=>{const _0x330c8d=_0x2e84;this[_0x330c8d(0x32c)]['delete'](_0x1228b4);}));}),await Promise[_0x284868(0x50a)](_0x29bbaa);}[_0x182123(0x387)](){const _0x486516=_0x182123;this[_0x486516(0x2c6)](this[_0x486516(0x1c2)][_0x486516(0x16a)](()=>{const _0x3b3ef7=_0x486516;if(this[_0x3b3ef7(0x32c)][_0x3b3ef7(0x1b9)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}},_0x27845d[_0x182123(0x199)]=_0x539554([_0x2539ed(0x0,_0x3223aa[_0x182123(0x531)]),_0x2539ed(0x1,_0x3223aa[_0x182123(0x260)]),_0x2539ed(0x2,_0x19d837[_0x182123(0x201)]),_0x2539ed(0x3,_0x3223aa['Inject'](_0x3223aa[_0x182123(0x1dd)])),_0x2539ed(0x4,_0x3223aa[_0x182123(0x40e)](_0x502235[_0x182123(0x4f6)]))],_0x27845d[_0x182123(0x199)]);function _0x315929(_0xd2183e){const _0x162202=_0x182123;return _0x162202(0x51f)+_0xd2183e;}var _0x397c3f=Object[_0x182123(0x33a)],_0x17013d=Object[_0x182123(0x363)],_0x2748ee=(_0x51c885,_0x461d6f,_0x54777c,_0x212a96)=>{const _0x13d6a8=_0x182123;for(var _0x460cd1=_0x212a96>0x1?void 0x0:_0x212a96?_0x17013d(_0x461d6f,_0x54777c):_0x461d6f,_0x29664d=_0x51c885[_0x13d6a8(0x4c3)]-0x1,_0x5bf44c;_0x29664d>=0x0;_0x29664d--)(_0x5bf44c=_0x51c885[_0x29664d])&&(_0x460cd1=(_0x212a96?_0x5bf44c(_0x461d6f,_0x54777c,_0x460cd1):_0x5bf44c(_0x460cd1))||_0x460cd1);return _0x212a96&&_0x460cd1&&_0x397c3f(_0x461d6f,_0x54777c,_0x460cd1),_0x460cd1;},_0x80f75a=(_0x1d94c6,_0x2b5dcf)=>(_0x2a478f,_0x2f1bad)=>_0x2b5dcf(_0x2a478f,_0x2f1bad,_0x1d94c6);function _0x56a38a(_0x59efac){const _0x642e29=_0x182123,{unitID:_0x10cedc,mutations:_0x420ea0}=_0x59efac;return{'unitId':_0x10cedc,'subUnitId':_0x420ea0[0x0]['params'][_0x642e29(0x382)]};}let _0x38921c=class{constructor(_0x243aa1,_0xf5a176,_0x8d15df){const _0x2db6d7=_0x182123;this['_injector']=_0x243aa1,this[_0x2db6d7(0x2b5)]=_0xf5a176,this[_0x2db6d7(0x282)]=_0x8d15df;}[_0x182123(0x3ab)](_0xbf0d09){const _0x56cdee=_0x182123;var _0x585df7,_0x5f0cbd,_0x206295,_0x36bea5;const _0x1ef6d1=this['_injector'][_0x56cdee(0x53b)](_0x4f46f0[_0x56cdee(0x417)]),{unitId:_0x4053ab,subUnitId:_0x134501}=_0x56a38a(_0xbf0d09),_0x3a87f3=_0x1ef6d1[_0x56cdee(0x535)](_0x4053ab)[_0x56cdee(0x110)](),_0x30210f=(_0x5f0cbd=(_0x585df7=this[_0x56cdee(0x282)][_0x56cdee(0x1da)](_0x4053ab))==null?void 0x0:_0x585df7['getActiveSheet']())==null?void 0x0:_0x5f0cbd[_0x56cdee(0x1a4)]();if(_0x3a87f3[_0x56cdee(0x4c3)]===0x0||!_0x4053ab||!_0x134501)return;const _0x8952aa=[{'id':_0x4f46f0['SetSelectionsOperation']['id'],'params':{'unitId':_0x4053ab,'subUnitId':_0x30210f,'selections':_0x3223aa[_0x56cdee(0x357)]['deepClone'](_0x3a87f3)}}],_0x25319e=this['_transformService'][_0x56cdee(0x419)](_0xbf0d09,_0x8952aa);if(!_0x502235['isTransformMutationsWithChangesetSuccess'](_0x25319e))throw _0x25319e['error'];const _0x2d2d7d=(_0x36bea5=(_0x206295=_0x25319e[_0x56cdee(0x35b)][0x0])==null?void 0x0:_0x206295[_0x56cdee(0x4b1)])==null?void 0x0:_0x36bea5['selections'];if(Array['isArray'](_0x2d2d7d)&&_0x2d2d7d['length']){if(_0x2d2d7d[_0x56cdee(0x4c3)]===_0x8952aa[0x0][_0x56cdee(0x4b1)][_0x56cdee(0x31a)][_0x56cdee(0x4c3)]&&_0x2d2d7d['every']((_0x2904ad,_0x2e574d)=>_0x3223aa[_0x56cdee(0x1a0)][_0x56cdee(0x344)](_0x2904ad[_0x56cdee(0x2a1)],_0x8952aa[0x0]['params'][_0x56cdee(0x31a)][_0x2e574d][_0x56cdee(0x2a1)])))return;this[_0x56cdee(0x526)][_0x56cdee(0x53b)](_0x3223aa[_0x56cdee(0x23b)])[_0x56cdee(0x3c8)](_0x4f46f0['SetSelectionsOperation']['id'],{'unitId':_0x4053ab,'subUnitId':_0x30210f,'selections':_0x2d2d7d});}}};_0x38921c=_0x2748ee([_0x80f75a(0x0,_0x3223aa['Inject'](_0x3223aa[_0x182123(0x14a)])),_0x80f75a(0x1,_0x502235['ITransformService']),_0x80f75a(0x2,_0x3223aa[_0x182123(0x247)])],_0x38921c);const _0x49a942=_0x3223aa['createIdentifier']('univer-pro.collaboration-client.single-active-unit-service');var _0x10b66f=(_0x59d38d=>(_0x59d38d[_0x59d38d[_0x182123(0x2ab)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x59d38d[_0x59d38d['OTHER_CLIENTS_EDITING']=0x1]=_0x182123(0x2e4),_0x59d38d))(_0x10b66f||{});const _0x5e694=0x7530,_0x2f8e31=_0x182123(0x36d);class _0x5e3f39 extends _0x3223aa[_0x182123(0x502)]{constructor(){const _0x1a32dd=_0x182123;super(),_0x571923(this,_0x1a32dd(0x1fd),_0x3223aa[_0x1a32dd(0x357)][_0x1a32dd(0x492)]()),_0x571923(this,_0x1a32dd(0x333),new Set()),_0x571923(this,_0x1a32dd(0x335),new Map()),_0x571923(this,'_heartbeatTimer',null),_0x571923(this,_0x1a32dd(0x49a),new Map()),_0x571923(this,_0x1a32dd(0x24f),new Map()),this[_0x1a32dd(0x450)]();}[_0x182123(0x2cf)](){const _0x1cd26c=_0x182123;super[_0x1cd26c(0x2cf)](),this[_0x1cd26c(0x49a)][_0x1cd26c(0x19f)]((_0x433353,_0x3a4950)=>this[_0x1cd26c(0x406)](_0x3a4950)),this['_heartbeatTimer']&&window[_0x1cd26c(0x25c)](this['_heartbeatTimer']);}[_0x182123(0x16f)](_0x343531){const _0x3bf87e=_0x182123;return this['_ensureSubject'](_0x343531)[_0x3bf87e(0x493)](_0x41acaa['distinctUntilChanged']());}[_0x182123(0x366)](_0x41398f){const _0x39559c=_0x182123;this[_0x39559c(0x333)][_0x39559c(0x1b9)]===0x0&&this[_0x39559c(0x428)](),this[_0x39559c(0x333)][_0x39559c(0x460)](_0x41398f),this[_0x39559c(0x15c)]({'type':0x0,'memberID':this[_0x39559c(0x1fd)],'unitIDs':[_0x41398f],'isForwarded':!0x1});}[_0x182123(0x236)](_0x4539ef){const _0x407641=_0x182123;this[_0x407641(0x333)][_0x407641(0x4e1)](_0x4539ef),this['_selfUnitIDs'][_0x407641(0x1b9)]===0x0&&this[_0x407641(0x15a)]&&window[_0x407641(0x25c)](this[_0x407641(0x15a)]);}[_0x182123(0x450)](){const _0x10e7c5=_0x182123;this[_0x10e7c5(0x2c6)](_0x3223aa[_0x10e7c5(0x1ed)](_0x41acaa[_0x10e7c5(0x289)](window,'storage')['subscribe'](_0x26b158=>{const _0xba1b2=_0x10e7c5;if(_0x26b158['key']!==_0x2f8e31||!_0x26b158[_0xba1b2(0x524)])return;const _0xf86bb9=JSON[_0xba1b2(0x3f5)](_0x26b158[_0xba1b2(0x524)]);this[_0xba1b2(0x542)](_0xf86bb9);}))),window[_0x10e7c5(0x2dd)](_0x10e7c5(0x4df),()=>this['_send']({'type':0x1,'memberID':this[_0x10e7c5(0x1fd)],'unitIDs':Array[_0x10e7c5(0x2d3)](this[_0x10e7c5(0x333)])}));}[_0x182123(0x542)](_0x46d756){const _0x43b1c3=_0x182123;switch(_0x46d756[_0x43b1c3(0x45b)]){case 0x0:this['_handleJoinEvent'](_0x46d756);break;case 0x1:this[_0x43b1c3(0x440)](_0x46d756);break;case 0x2:this['_handleHeartbeatEvent'](_0x46d756);break;}}[_0x182123(0x19d)](_0x5c03a4){const _0x487d7b=_0x182123,{unitIDs:_0x5b2e50,memberID:_0x25d542,isForwarded:_0x61b04b}=_0x5c03a4;_0x5b2e50[_0x487d7b(0x19f)](_0x5d4bb9=>{const _0x57b9a4=_0x487d7b;if(!_0x61b04b&&this['_unitOnClients']['has'](_0x5d4bb9)&&this[_0x57b9a4(0x3b3)](_0x5d4bb9)['next'](0x1),!this[_0x57b9a4(0x335)]['has'](_0x5d4bb9)||!this[_0x57b9a4(0x335)][_0x57b9a4(0x53b)](_0x5d4bb9)[_0x57b9a4(0x39c)](_0x25d542)){const _0x19c331=this['_unitOnClients']['get'](_0x5d4bb9)||new Set();_0x19c331[_0x57b9a4(0x460)](_0x25d542),this[_0x57b9a4(0x335)][_0x57b9a4(0x132)](_0x5d4bb9,_0x19c331),this['_scheduleClearOtherTimer'](_0x25d542);}}),_0x61b04b||this[_0x487d7b(0x15c)]({'type':0x0,'memberID':this[_0x487d7b(0x1fd)],'unitIDs':[...this[_0x487d7b(0x333)]],'isForwarded':!0x0});}[_0x182123(0x3ef)](_0x521a03){const _0x52cb3f=_0x182123;this[_0x52cb3f(0x406)](_0x521a03);const _0x5c9f78=window[_0x52cb3f(0x114)](()=>{const _0x24bb81=_0x52cb3f;this[_0x24bb81(0x335)][_0x24bb81(0x19f)](_0x10a0bb=>{const _0x514ab0=_0x24bb81;_0x10a0bb[_0x514ab0(0x4e1)](_0x521a03);});},_0x5e694*0x2);this[_0x52cb3f(0x49a)][_0x52cb3f(0x132)](_0x521a03,_0x5c9f78);}[_0x182123(0x406)](_0x3769e1){const _0x1a8d32=_0x182123;if(this['_clearOtherTimers']['has'](_0x3769e1)){const _0x2fe493=this[_0x1a8d32(0x49a)][_0x1a8d32(0x53b)](_0x3769e1);_0x2fe493&&window[_0x1a8d32(0x12c)](_0x2fe493),this['_clearOtherTimers'][_0x1a8d32(0x132)](_0x3769e1,null);}}[_0x182123(0x440)](_0x102eea){const _0x25637d=_0x182123,{memberID:_0x324444,unitIDs:_0x10d673}=_0x102eea;_0x10d673['forEach'](_0x457f2c=>{const _0x22e0fc=_0x2e84;var _0x4bfc85;const _0x2578a8=this[_0x22e0fc(0x335)]['get'](_0x457f2c);_0x2578a8&&(_0x2578a8[_0x22e0fc(0x4e1)](_0x324444),(_0x4bfc85=this[_0x22e0fc(0x3b3)](_0x457f2c))==null||_0x4bfc85[_0x22e0fc(0x2e5)](_0x2578a8['size']===0x0?0x0:0x1));}),this[_0x25637d(0x406)](_0x324444);}[_0x182123(0x291)](_0x336d2f){const _0x222a13=_0x182123;this[_0x222a13(0x3ef)](_0x336d2f[_0x222a13(0x143)]);}['_send'](_0x28b318){const _0x5c4e3d=_0x182123;localStorage[_0x5c4e3d(0x43e)](_0x2f8e31,JSON[_0x5c4e3d(0x17d)](_0x28b318));}['_scheduleHeartbeat'](){const _0x728e70=_0x182123;this[_0x728e70(0x15a)]=window[_0x728e70(0x489)](()=>{const _0x493fd3=_0x728e70;this[_0x493fd3(0x15c)]({'type':0x2,'memberID':this[_0x493fd3(0x1fd)]});},_0x5e694);}[_0x182123(0x3b3)](_0x35e7ed){const _0x5b05b8=_0x182123;return this[_0x5b05b8(0x24f)]['has'](_0x35e7ed)||this['_unitStatus'][_0x5b05b8(0x132)](_0x35e7ed,new _0x41acaa['BehaviorSubject'](0x0)),this[_0x5b05b8(0x24f)][_0x5b05b8(0x53b)](_0x35e7ed);}}function _0x3f97d6(_0x453f07){const _0x5325e8=_0x182123;let _0x53f9d0='';for(const _0x57c05c of _0x453f07){const {startOffset:_0x26bb5b,endOffset:_0x20a990,isActive:_0x55a672,rangeType:_0x80c497,segmentId:_0x2070ca,segmentPage:_0x4c2583}=_0x57c05c;_0x53f9d0[_0x5325e8(0x4c3)]&&(_0x53f9d0+=','),_0x53f9d0+=_0x26bb5b+':'+_0x20a990+':'+(_0x55a672?'1':'0')+':'+_0x80c497+':'+_0x2070ca+':'+_0x4c2583;}return _0x53f9d0;}function _0x50953f(_0x97c81e){const _0x69bddc=_0x182123,_0x3b7a8e=_0x97c81e[_0x69bddc(0x29d)](','),_0x581c21=[];for(const _0xeed28b of _0x3b7a8e){const [_0x538e41,_0x2f5773,_0x58bac0,_0x2ac9f,_0x4f34d5,_0x2fd1c7]=_0xeed28b['split'](':');_0x581c21[_0x69bddc(0x2fb)]({'startOffset':Number(_0x538e41),'endOffset':Number(_0x2f5773),'collapsed':_0x538e41===_0x2f5773,'isActive':_0x58bac0==='1','rangeType':_0x2ac9f===_0x3223aa[_0x69bddc(0x118)][_0x69bddc(0x28c)]?_0x3223aa[_0x69bddc(0x118)][_0x69bddc(0x28c)]:_0x3223aa[_0x69bddc(0x118)][_0x69bddc(0x1e5)],'segmentId':typeof _0x4f34d5=='string'?String(_0x4f34d5):'','segmentPage':Number(_0x2fd1c7!=null?_0x2fd1c7:-0x1)});}return _0x581c21[_0x69bddc(0x299)](_0x125cde=>_0x125cde[_0x69bddc(0x40c)])||(_0x581c21[0x0][_0x69bddc(0x40c)]=!0x0),_0x581c21;}class _0x729593 extends _0x3223aa[_0x182123(0x4a9)]{constructor(){const _0x143e4b=_0x182123;super(...arguments),_0x571923(this,_0x143e4b(0x306),new _0x41acaa[(_0x143e4b(0x30c))](null)),_0x571923(this,_0x143e4b(0x224),this['_collabCursorState$'][_0x143e4b(0x28d)]());}['syncEditingCollabCursor'](_0x435ce7){const _0x19952f=_0x182123,{unitID:_0xd307d4,memberID:_0x53dc5d,textRanges:_0x2dadc6}=_0x435ce7,_0x539fe6=_0x3f97d6(_0x2dadc6);if(_0x539fe6==='')return;const _0xe99946={'unitID':_0xd307d4,'memberID':_0x53dc5d,'selection':_0x539fe6};this[_0x19952f(0x306)][_0x19952f(0x2e5)](_0xe99946);}}var _0x481209=Object[_0x182123(0x33a)],_0x323727=Object[_0x182123(0x363)],_0x57c6b6=(_0x2fc8ac,_0x343b0f,_0x5b1191,_0x17c072)=>{const _0x37cabf=_0x182123;for(var _0x4bf2cf=_0x17c072>0x1?void 0x0:_0x17c072?_0x323727(_0x343b0f,_0x5b1191):_0x343b0f,_0x517ab2=_0x2fc8ac[_0x37cabf(0x4c3)]-0x1,_0x1488a0;_0x517ab2>=0x0;_0x517ab2--)(_0x1488a0=_0x2fc8ac[_0x517ab2])&&(_0x4bf2cf=(_0x17c072?_0x1488a0(_0x343b0f,_0x5b1191,_0x4bf2cf):_0x1488a0(_0x4bf2cf))||_0x4bf2cf);return _0x17c072&&_0x4bf2cf&&_0x481209(_0x343b0f,_0x5b1191,_0x4bf2cf),_0x4bf2cf;},_0x420ea3=(_0x5af437,_0x16d921)=>(_0x20596e,_0xe6f5c8)=>_0x16d921(_0x20596e,_0xe6f5c8,_0x5af437);let _0x427d95=class{constructor(_0x260e1e,_0x1315b4){const _0x5e64a4=_0x182123;this['_injector']=_0x260e1e,this[_0x5e64a4(0x2b5)]=_0x1315b4;}['transformSelections'](_0x228802){const _0x189fa7=_0x182123;var _0x203683;const _0x59a93a=this['_injector'][_0x189fa7(0x53b)](_0xba5a96[_0x189fa7(0x37c)]),_0x3a5168=(_0x203683=_0x59a93a[_0x189fa7(0x16b)]())!=null?_0x203683:[];if(_0x3a5168[_0x189fa7(0x4c3)]===0x0)return;const _0x379af4=[{'id':_0x189fa7(0x459),'params':{'unitId':_0x228802[_0x189fa7(0x250)],'actions':null,'textRanges':_0x3a5168}}],_0x25ff24=this[_0x189fa7(0x2b5)][_0x189fa7(0x419)](_0x228802,_0x379af4);if(!_0x502235[_0x189fa7(0x50c)](_0x25ff24))throw _0x25ff24['error'];const _0xd6a626=_0x25ff24[_0x189fa7(0x35b)][0x0][_0x189fa7(0x4b1)][_0x189fa7(0x200)];Array[_0x189fa7(0x390)](_0xd6a626)&&_0xd6a626[_0x189fa7(0x4c3)]&&_0x59a93a[_0x189fa7(0x156)](_0xd6a626,!0x1);}};_0x427d95=_0x57c6b6([_0x420ea3(0x0,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x420ea3(0x1,_0x502235[_0x182123(0x437)])],_0x427d95);const _0x52bc54=new Set([_0x4f46f0['InsertSheetMutation']['id']]);function _0xf32e12(_0x5cd5ce,_0x5bc6de,_0x70b94f,_0x4ebf2d,_0x3eeed9){const _0x1ee050=_0x182123;var _0x58736d,_0x55e41f,_0x28bac9,_0x5171fb;const _0x179e7a=[];for(const _0x4e204b of _0x5cd5ce)if(_0x52bc54[_0x1ee050(0x39c)](_0x4e204b['id'])){if(_0x179e7a[_0x1ee050(0x4c3)]>0x0)break;_0x179e7a['push'](_0x4e204b);break;}else _0x179e7a[_0x1ee050(0x2fb)](_0x4e204b);const _0x3820fc=(_0x55e41f=(_0x58736d=_0x3eeed9[_0x1ee050(0x1ea)]())==null?void 0x0:_0x58736d[_0x1ee050(0x40d)])!=null?_0x55e41f:_0x1ee050(0x412),_0x51eb0b=(_0x5171fb=(_0x28bac9=_0x3eeed9[_0x1ee050(0x1ea)]())==null?void 0x0:_0x28bac9[_0x1ee050(0x143)])!=null?_0x5171fb:_0x1ee050(0x412);return{'changeset':{'unitID':_0x5bc6de,'type':_0x502235['mapDocumentTypeToUniverType'](_0x70b94f['getUnitType'](_0x5bc6de)),'baseRev':_0x4ebf2d['getCurrentRevOfUnit'](_0x5bc6de),'revision':0x0,'userID':_0x3820fc,'memberID':_0x51eb0b,'mutations':_0x179e7a},'pendingMutations':_0x5cd5ce[_0x1ee050(0x3d9)](_0x179e7a[_0x1ee050(0x4c3)])};}function _0x55afc1(_0x23c7e6,_0x4c187c,_0x9cb60e,_0x2ce35e,_0x5cf5d0){const _0x49f362=_0x182123;var _0x2ece65,_0x3640ee,_0x13dc11,_0x28966d;const _0x29ece8=[_0x23c7e6['reduce']((_0xae9ddd,_0x3eb3da)=>{const _0x310d0e=_0x2e84;var _0xfe124e;const {id:_0x44e71a}=_0xae9ddd,{id:_0x20c9f1,type:_0x3b0de0}=_0x3eb3da,_0x168206=(_0xfe124e=_0xae9ddd[_0x310d0e(0x4b1)])!=null?_0xfe124e:{'actions':null},_0x532a72=_0x3eb3da['params'];if(_0x44e71a&&_0x44e71a!==_0x20c9f1)throw new Error(_0x310d0e(0x25b)+_0x44e71a+'\x20-\x20'+_0x20c9f1+'.');return{..._0xae9ddd,'id':_0x20c9f1,'type':_0x3b0de0,'params':{'unitId':_0x532a72['unitId'],'textRanges':_0x532a72[_0x310d0e(0x200)],'actions':_0x3223aa['JSONX'][_0x310d0e(0x3ed)](_0x168206[_0x310d0e(0x3d3)],_0x532a72[_0x310d0e(0x3d3)])}};},{})],_0x23b9f2=(_0x3640ee=(_0x2ece65=_0x5cf5d0[_0x49f362(0x1ea)]())==null?void 0x0:_0x2ece65['userID'])!=null?_0x3640ee:_0x49f362(0x412),_0x31f3c3=(_0x28966d=(_0x13dc11=_0x5cf5d0[_0x49f362(0x1ea)]())==null?void 0x0:_0x13dc11[_0x49f362(0x143)])!=null?_0x28966d:_0x49f362(0x412);return{'changeset':{'unitID':_0x4c187c,'type':_0x502235[_0x49f362(0x2bc)](_0x9cb60e[_0x49f362(0x391)](_0x4c187c)),'baseRev':_0x2ce35e[_0x49f362(0x523)](_0x4c187c),'revision':0x0,'userID':_0x23b9f2,'memberID':_0x31f3c3,'mutations':_0x29ece8},'pendingMutations':[]};}function _0x2a7aaf(_0x5d3fda,_0x128ec5){const _0x24c66d=_0x182123,_0x4b7986=new _0x41acaa[(_0x24c66d(0x1af))](0x1);return setTimeout(()=>_0x4b7986[_0x24c66d(0x2e5)](_0x128ec5),_0x5d3fda),_0x4b7986[_0x24c66d(0x28d)]()[_0x24c66d(0x493)](_0x41acaa[_0x24c66d(0x12d)](0x1));}const _0x13fae9={'id':_0x4f46f0[_0x182123(0x2bf)]['id'],'type':_0x3223aa[_0x182123(0x3b7)][_0x182123(0x402)],'params':{}};var _0x150d16=Object[_0x182123(0x33a)],_0x236e1d=Object[_0x182123(0x363)],_0x1554a8=(_0x2f27af,_0xd76bc6,_0x159f6a,_0x57e92b)=>{const _0x3de4f7=_0x182123;for(var _0x3162c3=_0x57e92b>0x1?void 0x0:_0x57e92b?_0x236e1d(_0xd76bc6,_0x159f6a):_0xd76bc6,_0xd89335=_0x2f27af[_0x3de4f7(0x4c3)]-0x1,_0x20bb1b;_0xd89335>=0x0;_0xd89335--)(_0x20bb1b=_0x2f27af[_0xd89335])&&(_0x3162c3=(_0x57e92b?_0x20bb1b(_0xd76bc6,_0x159f6a,_0x3162c3):_0x20bb1b(_0x3162c3))||_0x3162c3);return _0x57e92b&&_0x3162c3&&_0x150d16(_0xd76bc6,_0x159f6a,_0x3162c3),_0x3162c3;},_0x21c084=(_0x36dc13,_0x3d3312)=>(_0x483551,_0x593b9b)=>_0x3d3312(_0x483551,_0x593b9b,_0x36dc13),_0x12b363=(_0x567518=>(_0x567518[_0x182123(0x3cd)]=_0x182123(0x4dd),_0x567518[_0x182123(0x1b7)]=_0x182123(0x13c),_0x567518[_0x182123(0x2cc)]=_0x182123(0x16d),_0x567518[_0x182123(0x17c)]='awaiting',_0x567518[_0x182123(0x4c6)]=_0x182123(0x3d2),_0x567518['FETCH_MISS']=_0x182123(0x34d),_0x567518['CONFLICT']=_0x182123(0x315),_0x567518[_0x182123(0x113)]=_0x182123(0x2e7),_0x567518))(_0x12b363||{});const _0x130aab=0xea60;class _0x1396d0{constructor(_0x543fb4,_0x3fd47f,_0x135e05,_0x20352f,_0x1af01d,_0x5375a8,_0x1b54a0,_0xaceb41,_0x578235){const _0x5e0a6e=_0x182123;_0x571923(this,_0x5e0a6e(0x347),null),_0x571923(this,'_pendingMutations',[]),(this[_0x5e0a6e(0x250)]=_0x543fb4,this[_0x5e0a6e(0x45b)]=_0x3fd47f,this[_0x5e0a6e(0x3da)]=_0x1af01d,this['_commandService']=_0x5375a8,this[_0x5e0a6e(0x3e7)]=_0x1b54a0,this[_0x5e0a6e(0x416)]=_0xaceb41,this[_0x5e0a6e(0x44c)]=_0x578235,this['_awaitingChangeset']=_0x135e05,this[_0x5e0a6e(0x540)]=_0x20352f);}[_0x182123(0x188)](_0x36ed9f){const _0x2e8371=_0x182123,_0x1fc845=this[_0x2e8371(0x416)][_0x2e8371(0x523)](this['unitID']);return _0x36ed9f[_0x2e8371(0x3f0)]>_0x1fc845+0x1?(this['_handler'][_0x2e8371(0x14b)]({'from':_0x1fc845,'to':_0x36ed9f[_0x2e8371(0x3f0)]-0x1}),!0x0):!0x1;}[_0x182123(0x3ec)](_0x4de3ed){const _0x553cf9=_0x182123;this[_0x553cf9(0x3e7)][_0x553cf9(0x507)](this[_0x553cf9(0x250)],_0x4de3ed);}[_0x182123(0x1ca)](_0x5170b4){const _0x542fdb=_0x182123;var _0x4dfd2a,_0x3419de;(_0x3419de=(_0x4dfd2a=this['_handler'])[_0x542fdb(0x227)])==null||_0x3419de[_0x542fdb(0x155)](_0x4dfd2a,_0x5170b4);}[_0x182123(0x1ef)](_0x34423b){const _0x3bc2be=_0x182123;var _0x5c22bb,_0x54192d;return(_0x54192d=(_0x5c22bb=this[_0x3bc2be(0x3da)])[_0x3bc2be(0x259)])==null?void 0x0:_0x54192d[_0x3bc2be(0x155)](_0x5c22bb,_0x34423b);}['_transformRemoteChangesetByIMECache'](_0x3b3f79){const _0x4382dd=_0x182123;var _0x3e57a8,_0x1e98ee,_0x8c847d;return(_0x8c847d=(_0x1e98ee=(_0x3e57a8=this[_0x4382dd(0x3da)])[_0x4382dd(0x436)])==null?void 0x0:_0x1e98ee[_0x4382dd(0x155)](_0x3e57a8,_0x3b3f79))!=null?_0x8c847d:_0x3b3f79;}[_0x182123(0x271)](_0xd0e5f7){const _0x2bbdc9=_0x182123;var _0x481097,_0x1f308d;if(this[_0x2bbdc9(0x45b)]===_0x33d988[_0x2bbdc9(0x1c3)]){const {unitID:_0x345163,mutations:_0x4b5f3d,memberID:_0x1db184}=_0xd0e5f7,_0x281219=_0x4b5f3d[0x0][_0x2bbdc9(0x4b1)]['textRanges'];Array[_0x2bbdc9(0x390)](_0x281219)&&_0x281219[_0x2bbdc9(0x4c3)]>0x0&&((_0x1f308d=(_0x481097=this[_0x2bbdc9(0x3da)])['onSyncEditingCollabCursor'])==null||_0x1f308d[_0x2bbdc9(0x155)](_0x481097,{'unitID':_0x345163,'memberID':_0x1db184,'textRanges':_0x281219}));}}[_0x182123(0x2ee)](){const _0x31b9eb=_0x182123;this[_0x31b9eb(0x44c)][_0x31b9eb(0x534)](this[_0x31b9eb(0x250)],this[_0x31b9eb(0x45b)],this[_0x31b9eb(0x347)],this[_0x31b9eb(0x540)]);}[_0x182123(0x2cb)](){const _0x1e396c=_0x182123;return this[_0x1e396c(0x416)][_0x1e396c(0x523)](this['unitID']);}['_incrementRevisionNumber'](){const _0x2ff21f=_0x182123;this[_0x2ff21f(0x416)][_0x2ff21f(0x3b5)](this['unitID']);}[_0x182123(0x186)](_0x50419a){const _0x54079b=_0x182123;var _0x18a042;const _0x4e4947=this[_0x54079b(0x300)](_0x50419a),_0x32e57c=_0x3223aa[_0x54079b(0x458)](_0x4e4947[_0x54079b(0x1d7)],this[_0x54079b(0x198)],{'fromCollab':!0x0});if(!_0x32e57c[_0x54079b(0x1e1)])throw _0x32e57c['error']instanceof Error?_0x32e57c[_0x54079b(0x1b1)]:new Error((_0x18a042=_0x32e57c[_0x54079b(0x1b1)])!=null?_0x18a042:'[CollaborationState]:\x20apply\x20error!');this[_0x54079b(0x1ef)](_0x4e4947),this[_0x54079b(0x3ec)](_0x50419a),this['_transformSelections'](_0x4e4947),this[_0x54079b(0x271)](_0x4e4947),this[_0x54079b(0x4fc)]();}}let _0x1aa61f=class extends _0x1396d0{constructor(_0x17d468,_0x474f84,_0x1f7ef3,_0xc50144,_0x31bb0b,_0x11f791,_0x58e14a,_0xf5988a,_0xd22566,_0x4788c9){const _0x182a88=_0x182123;super(_0x17d468,_0x474f84,null,[],_0x1f7ef3,_0xf5988a,_0x58e14a,_0xc50144,_0x31bb0b),_0x571923(this,'status',_0x182a88(0x13c)),(this[_0x182a88(0x526)]=_0x11f791,this[_0x182a88(0x397)]=_0xd22566,this[_0x182a88(0x2b5)]=_0x4788c9);}[_0x182123(0x31c)](_0x5d4c17){const _0x49af97=_0x182123,_0x1fc00a=this['_injector'][_0x49af97(0x336)](_0x102544,this[_0x49af97(0x250)],this['type'],[_0x5d4c17],this['_handler']);return _0x1fc00a['_schedule'](),_0x1fc00a['_updateLocalCache'](),_0x1fc00a;}['onRemoteChangeset'](_0x156dc7){const _0xe612a8=_0x182123;if(this[_0xe612a8(0x188)](_0x156dc7))return this[_0xe612a8(0x526)][_0xe612a8(0x336)](_0x395c69,this[_0xe612a8(0x250)],this[_0xe612a8(0x45b)],null,[],null,[_0x156dc7],this[_0xe612a8(0x3da)]);try{const _0x2e4a9b=this[_0xe612a8(0x2b5)][_0xe612a8(0x419)](_0x156dc7,[_0x13fae9]);if(_0x502235['isTransformMutationsWithChangesetSuccess'](_0x2e4a9b)){const {c1Prime:_0x3c2275}=_0x2e4a9b;return this[_0xe612a8(0x186)](_0x3c2275),this;}throw _0x2e4a9b['error'];}catch(_0x402ce7){return this[_0xe612a8(0x397)][_0xe612a8(0x1b1)](_0x402ce7),this[_0xe612a8(0x548)](!0x1);}}[_0x182123(0x548)](_0x15570d){const _0x280b84=_0x182123;return this[_0x280b84(0x526)]['createInstance'](_0x4bc3b9,this['unitID'],this[_0x280b84(0x45b)],null,[],this[_0x280b84(0x3da)],_0x15570d);}[_0x182123(0x248)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x182123(0x27b)](){const _0x352635=_0x182123;throw new Error(_0x352635(0x20a));}[_0x182123(0x1e4)](){return this;}[_0x182123(0x380)](){const _0xb9f59c=_0x182123;return this[_0xb9f59c(0x526)][_0xb9f59c(0x336)](_0x2db763,this[_0xb9f59c(0x250)],this[_0xb9f59c(0x45b)],null,[],this[_0xb9f59c(0x3da)]);}[_0x182123(0x1cc)](){return this;}['resend'](){const _0x3a3dc7=_0x182123;throw new Error(_0x3a3dc7(0x258));}['fetchMiss'](){const _0x243f60=_0x182123,_0x2e9e31=this[_0x243f60(0x416)][_0x243f60(0x523)](this[_0x243f60(0x250)]);return this[_0x243f60(0x3da)]['onMissingChangesets']({'from':_0x2e9e31,'to':0x0}),this['_injector']['createInstance'](_0x395c69,this['unitID'],this['type'],null,[],null,[],this[_0x243f60(0x3da)]);}};_0x1aa61f=_0x1554a8([_0x21c084(0x3,_0x3223aa['Inject'](_0x502235[_0x182123(0x4f6)])),_0x21c084(0x4,_0x3223aa[_0x182123(0x40e)](_0x27845d[_0x182123(0x199)])),_0x21c084(0x5,_0x3223aa[_0x182123(0x40e)](_0x3223aa['Injector'])),_0x21c084(0x6,_0x3223aa['IUndoRedoService']),_0x21c084(0x7,_0x3223aa[_0x182123(0x23b)]),_0x21c084(0x8,_0x3223aa[_0x182123(0x3bf)]),_0x21c084(0x9,_0x502235[_0x182123(0x437)])],_0x1aa61f);let _0x102544=class extends _0x1396d0{constructor(_0x3ce64c,_0x5b4edf,_0x2faec4,_0x308410,_0x41cd97,_0x2735aa,_0x268d21,_0x380c85,_0x5b66e0,_0x540f44,_0x10d21c,_0x521afe,_0x534e58,_0x43ade8){const _0x476d0f=_0x182123;super(_0x3ce64c,_0x5b4edf,null,_0x2faec4,_0x308410,_0x540f44,_0x43ade8,_0x2735aa,_0x268d21),_0x571923(this,_0x476d0f(0x1e2),'pending'),_0x571923(this,_0x476d0f(0x17e),null),_0x571923(this,_0x476d0f(0x4d8),null),(this[_0x476d0f(0x526)]=_0x41cd97,this['_memberService']=_0x380c85,this[_0x476d0f(0x397)]=_0x5b66e0,this['_configService']=_0x10d21c,this[_0x476d0f(0x2b5)]=_0x521afe,this[_0x476d0f(0x348)]=_0x534e58);}[_0x182123(0x31c)](_0x39cbfa){const _0x16914c=_0x182123;return this[_0x16914c(0x540)][_0x16914c(0x2fb)](_0x39cbfa),this['_updateLocalCache'](),this;}[_0x182123(0x174)](_0x1c17bb){const _0x115a33=_0x182123;if(this[_0x115a33(0x188)](_0x1c17bb))return this[_0x115a33(0x4fa)](),this[_0x115a33(0x526)][_0x115a33(0x336)](_0x395c69,this[_0x115a33(0x250)],this[_0x115a33(0x45b)],null,this[_0x115a33(0x540)],null,[_0x1c17bb],this[_0x115a33(0x3da)]);try{const _0x347d1f=this[_0x115a33(0x2b5)][_0x115a33(0x419)](_0x1c17bb,this['_pendingMutations']);if(_0x502235[_0x115a33(0x50c)](_0x347d1f)){const {c1Prime:_0x332493,m2Prime:_0x3f5177}=_0x347d1f;this[_0x115a33(0x186)](_0x332493);const _0x2b43c6=this['_injector']['createInstance'](_0x102544,this[_0x115a33(0x250)],this[_0x115a33(0x45b)],_0x3f5177,this[_0x115a33(0x3da)]);return this[_0x115a33(0x4fa)](),_0x2b43c6['_schedule'](this[_0x115a33(0x17e)]?Math[_0x115a33(0x204)](0x0,new Date()[_0x115a33(0x1d0)]()-this[_0x115a33(0x17e)]):this['_getSendChangesetTimeout']()),_0x2b43c6;}throw _0x347d1f[_0x115a33(0x1b1)];}catch(_0x421f10){return this[_0x115a33(0x397)][_0x115a33(0x1b1)](_0x421f10),this[_0x115a33(0x548)](!0x1);}}[_0x182123(0x248)](){const _0x819d4b=_0x182123;throw new Error(_0x819d4b(0x453));}[_0x182123(0x27b)](){const _0x242aa8=_0x182123;throw new Error(_0x242aa8(0x399));}[_0x182123(0x1e4)](){return this;}[_0x182123(0x380)](){const _0x3deaed=_0x182123;return this[_0x3deaed(0x4fa)](),this[_0x3deaed(0x526)]['createInstance'](_0x2db763,this[_0x3deaed(0x250)],this[_0x3deaed(0x45b)],null,this[_0x3deaed(0x540)],this[_0x3deaed(0x3da)]);}[_0x182123(0x1cc)](){return this;}[_0x182123(0x3df)](_0x250a44){const _0x90aa16=_0x182123,_0x4102fb=_0x250a44!=null?_0x250a44:this[_0x90aa16(0x1c1)]();this[_0x90aa16(0x17e)]=new Date()['getTime'](),this[_0x90aa16(0x4d8)]=window['setTimeout'](()=>{const _0x58552c=_0x90aa16;this['_clearScheduledTask']();let _0x4d620b=null;switch(this[_0x58552c(0x45b)]){case _0x33d988[_0x58552c(0x2d4)]:{_0x4d620b=_0xf32e12(this[_0x58552c(0x540)],this['unitID'],this[_0x58552c(0x348)],this[_0x58552c(0x416)],this[_0x58552c(0x168)]);break;}case _0x33d988[_0x58552c(0x1c3)]:{this[_0x58552c(0x540)][_0x58552c(0x27e)](_0x3f28e6=>_0x3f28e6['id']===_0xba5a96['RichTextEditingMutation']['id'])?_0x4d620b=_0x55afc1(this[_0x58552c(0x540)],this[_0x58552c(0x250)],this[_0x58552c(0x348)],this[_0x58552c(0x416)],this['_memberService']):_0x4d620b=_0xf32e12(this['_pendingMutations'],this[_0x58552c(0x250)],this['_univerInstanceService'],this['_revisionService'],this[_0x58552c(0x168)]);break;}default:throw new Error(_0x58552c(0x4c2)+this[_0x58552c(0x45b)]+'\x20in\x20_schedule.');}const {changeset:_0x23e99b,pendingMutations:_0x5939b1}=_0x4d620b;this[_0x58552c(0x3da)][_0x58552c(0x145)](_0x23e99b);const _0x4097cb=_0x5939b1[_0x58552c(0x4c3)]?this[_0x58552c(0x526)][_0x58552c(0x336)](_0x25aaf0,this[_0x58552c(0x250)],this[_0x58552c(0x45b)],_0x23e99b,_0x5939b1,this['_handler'],void 0x0):this[_0x58552c(0x526)][_0x58552c(0x336)](_0x2f78ca,this[_0x58552c(0x250)],this[_0x58552c(0x45b)],_0x23e99b,this[_0x58552c(0x3da)]);_0x4097cb[_0x58552c(0x2ee)](),this[_0x58552c(0x3da)][_0x58552c(0x26f)](this,_0x4097cb);},_0x4102fb);}[_0x182123(0x1c1)](){const _0x52c3c5=_0x182123;var _0x5434e7;const _0x5cf856=this[_0x52c3c5(0x404)][_0x52c3c5(0x422)](_0x183913);return(_0x5434e7=_0x5cf856==null?void 0x0:_0x5cf856[_0x52c3c5(0x1b3)])!=null?_0x5434e7:0x7d0;}['resend'](){const _0x3ef4c5=_0x182123;throw new Error(_0x3ef4c5(0x487));}[_0x182123(0x4fa)](){const _0x5f52b9=_0x182123;this[_0x5f52b9(0x4d8)]!=null&&(clearTimeout(this[_0x5f52b9(0x4d8)]),this[_0x5f52b9(0x4d8)]=null);}[_0x182123(0x548)](_0x5da786){const _0x5bcb09=_0x182123;return this[_0x5bcb09(0x4fa)](),this[_0x5bcb09(0x526)][_0x5bcb09(0x336)](_0x4bc3b9,this[_0x5bcb09(0x250)],this[_0x5bcb09(0x45b)],null,this[_0x5bcb09(0x540)],this[_0x5bcb09(0x3da)],_0x5da786);}};_0x102544=_0x1554a8([_0x21c084(0x4,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x21c084(0x5,_0x3223aa['Inject'](_0x502235['RevisionService'])),_0x21c084(0x6,_0x3223aa[_0x182123(0x40e)](_0x27845d[_0x182123(0x199)])),_0x21c084(0x7,_0x3223aa[_0x182123(0x40e)](_0x842f02)),_0x21c084(0x8,_0x3223aa[_0x182123(0x3bf)]),_0x21c084(0x9,_0x3223aa['ICommandService']),_0x21c084(0xa,_0x3223aa['IConfigService']),_0x21c084(0xb,_0x502235[_0x182123(0x437)]),_0x21c084(0xc,_0x3223aa[_0x182123(0x247)]),_0x21c084(0xd,_0x3223aa[_0x182123(0x3d5)])],_0x102544);let _0x2f78ca=class extends _0x1396d0{constructor(_0x386821,_0x5c5b7e,_0x3b5e19,_0x1a98e9,_0x5349bb,_0xfbc501,_0x150d17,_0x35bb45,_0x46f6dd,_0x5b8789,_0x2c2d99){const _0x4ee3df=_0x182123;super(_0x386821,_0x5c5b7e,_0x3b5e19,[],_0x1a98e9,_0x35bb45,_0x2c2d99,_0xfbc501,_0x150d17),_0x571923(this,'status','awaiting'),_0x571923(this,_0x4ee3df(0x4b5),0x0),_0x571923(this,_0x4ee3df(0x326)),_0x571923(this,_0x4ee3df(0x20e)),(this[_0x4ee3df(0x526)]=_0x5349bb,this[_0x4ee3df(0x397)]=_0x46f6dd,this[_0x4ee3df(0x2b5)]=_0x5b8789);}['appendMutation'](_0x5661fc){const _0x49fcc2=_0x182123;this[_0x49fcc2(0x4fa)]();const _0x4f2217=this[_0x49fcc2(0x526)][_0x49fcc2(0x336)](_0x25aaf0,this['unitID'],this[_0x49fcc2(0x45b)],this[_0x49fcc2(0x347)],[_0x5661fc],this['_handler'],this[_0x49fcc2(0x326)]);return _0x4f2217['_updateLocalCache'](),_0x4f2217;}[_0x182123(0x174)](_0x2d049d){const _0x40a107=_0x182123;if(this[_0x40a107(0x188)](_0x2d049d))return this[_0x40a107(0x4fa)](),this[_0x40a107(0x526)][_0x40a107(0x336)](_0x395c69,this[_0x40a107(0x250)],this['type'],this[_0x40a107(0x347)],[],null,[_0x2d049d],this['_handler']);try{const _0xa7c884=this[_0x40a107(0x2b5)][_0x40a107(0x116)]([_0x2d049d],[this[_0x40a107(0x347)]],!0x1);if(_0x502235[_0x40a107(0x2a6)](_0xa7c884)){const {c1Prime:_0x389359,c2Prime:_0x1464b1}=_0xa7c884;this[_0x40a107(0x186)](_0x389359[0x0]),_0x1464b1[0x0][_0x40a107(0x276)]=this[_0x40a107(0x2cb)](),this['_clearScheduledTask']();const _0x2a4375=this[_0x40a107(0x526)]['createInstance'](_0x2f78ca,this[_0x40a107(0x250)],this[_0x40a107(0x45b)],_0x1464b1[0x0],this[_0x40a107(0x3da)]);return _0x2a4375[_0x40a107(0x2ee)](),_0x2a4375;}return this[_0x40a107(0x548)](!0x1);}catch(_0x4ac9da){return this[_0x40a107(0x397)]['error'](_0x4ac9da),this[_0x40a107(0x548)](!0x1);}}[_0x182123(0x248)](_0x534fd2){const _0xcaa355=_0x182123;this[_0xcaa355(0x4fa)]();const _0x871aa=this[_0xcaa355(0x416)][_0xcaa355(0x523)](this[_0xcaa355(0x250)]);if(_0x534fd2[_0xcaa355(0x3f0)]<_0x871aa-0x1)return this;if(this[_0xcaa355(0x188)](_0x534fd2))return this['_injector'][_0xcaa355(0x336)](_0x395c69,this[_0xcaa355(0x250)],this[_0xcaa355(0x45b)],null,[],this[_0xcaa355(0x347)],[],this[_0xcaa355(0x3da)]);this[_0xcaa355(0x4fc)]();const _0x4f5398=this[_0xcaa355(0x526)][_0xcaa355(0x336)](_0x1aa61f,this[_0xcaa355(0x250)],this[_0xcaa355(0x45b)],this['_handler']);return _0x4f5398['_updateLocalCache'](),_0x4f5398;}['onRemoteRej'](_0x30e08d){const _0xc365e7=_0x182123;return this[_0xc365e7(0x548)](!!(_0x30e08d!=null&&_0x30e08d[_0xc365e7(0x206)]));}[_0x182123(0x1e4)](_0x25c13f){const _0x3465fe=_0x182123;return this[_0x3465fe(0x4b5)]>_0x130aab?this[_0x3465fe(0x380)]():(this[_0x3465fe(0x326)]=_0x2a7aaf(this[_0x3465fe(0x4b5)],{'timeout':this['_resendTimeout'],'reqId':_0x25c13f[_0x3465fe(0x48a)]}),this[_0x3465fe(0x20e)]=this[_0x3465fe(0x326)]['subscribe'](({reqId:_0x47f0fb,timeout:_0x3ec700})=>{this['_resendWithTimeout'](_0x47f0fb,_0x3ec700);}),this);}[_0x182123(0x380)](){const _0x5bc0d2=_0x182123;return this[_0x5bc0d2(0x4fa)](),this[_0x5bc0d2(0x526)][_0x5bc0d2(0x336)](_0x2db763,this['unitID'],this[_0x5bc0d2(0x45b)],this['_awaitingChangeset'],[],this[_0x5bc0d2(0x3da)]);}[_0x182123(0x1cc)](){return this;}[_0x182123(0x2c4)](){const _0x2381bc=_0x182123;this[_0x2381bc(0x3da)][_0x2381bc(0x145)](this[_0x2381bc(0x347)]);}[_0x182123(0x548)](_0x589620){const _0x52c937=_0x182123;return this['_clearScheduledTask'](),this[_0x52c937(0x526)][_0x52c937(0x336)](_0x4bc3b9,this['unitID'],this[_0x52c937(0x45b)],this[_0x52c937(0x347)],[],this[_0x52c937(0x3da)],_0x589620);}[_0x182123(0x40a)](_0x3d2490,_0x5c40a8){const _0x4bda58=_0x182123;var _0x497034;_0x3d2490===((_0x497034=this[_0x4bda58(0x347)])==null?void 0x0:_0x497034['reqId'])&&(this[_0x4bda58(0x2c4)](),this[_0x4bda58(0x4b5)]=_0x5c40a8===0x0?0x3e8:_0x5c40a8*0x2);}[_0x182123(0x4fa)](){const _0x2653e3=_0x182123;var _0x1f8fc1;(_0x1f8fc1=this[_0x2653e3(0x20e)])==null||_0x1f8fc1[_0x2653e3(0x2d6)](),this['_resendTimeout']=0x0;}};_0x2f78ca=_0x1554a8([_0x21c084(0x4,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x21c084(0x5,_0x3223aa[_0x182123(0x40e)](_0x502235['RevisionService'])),_0x21c084(0x6,_0x3223aa[_0x182123(0x40e)](_0x27845d[_0x182123(0x199)])),_0x21c084(0x7,_0x3223aa[_0x182123(0x23b)]),_0x21c084(0x8,_0x3223aa[_0x182123(0x3bf)]),_0x21c084(0x9,_0x502235[_0x182123(0x437)]),_0x21c084(0xa,_0x3223aa[_0x182123(0x3d5)])],_0x2f78ca);let _0x25aaf0=class extends _0x1396d0{constructor(_0x513992,_0x17fb97,_0x39dff6,_0x32e1a3,_0x1232a2,_0x213437,_0x98bef3,_0x40cf4d,_0x36ce57,_0x3ff003,_0x3943e7,_0x5dda10,_0x3b3e68){const _0x44924b=_0x182123;super(_0x513992,_0x17fb97,_0x39dff6,_0x32e1a3,_0x1232a2,_0x3ff003,_0x3b3e68,_0x40cf4d,_0x36ce57),_0x571923(this,_0x44924b(0x1e2),_0x44924b(0x3d2)),_0x571923(this,_0x44924b(0x4b5),0x0),_0x571923(this,_0x44924b(0x326)),_0x571923(this,_0x44924b(0x20e)),(this[_0x44924b(0x526)]=_0x98bef3,this['_logService']=_0x3943e7,this['_transformService']=_0x5dda10,_0x213437&&(this[_0x44924b(0x326)]=_0x213437,this[_0x44924b(0x20e)]=this[_0x44924b(0x326)][_0x44924b(0x10e)](({reqId:_0x279663,timeout:_0x3a25b4})=>{const _0x33311a=_0x44924b;this[_0x33311a(0x40a)](_0x279663,_0x3a25b4);})));}[_0x182123(0x31c)](_0x32715c){const _0x26c380=_0x182123;return this[_0x26c380(0x540)][_0x26c380(0x2fb)](_0x32715c),this;}[_0x182123(0x174)](_0x3687e9){const _0x46d386=_0x182123;if(this['_checkMissing'](_0x3687e9))return this[_0x46d386(0x4fa)](),this[_0x46d386(0x526)][_0x46d386(0x336)](_0x395c69,this[_0x46d386(0x250)],this[_0x46d386(0x45b)],this[_0x46d386(0x347)],this[_0x46d386(0x540)],null,[_0x3687e9],this[_0x46d386(0x3da)]);try{const _0xc35fdc=this[_0x46d386(0x2b5)]['transformChangesets']([_0x3687e9],[this['_awaitingChangeset']],!0x1);if(_0x502235['isTransformChangesetsSuccess'](_0xc35fdc)){const {c1Prime:_0x2c935e,c2Prime:_0x11d409}=_0xc35fdc,_0x370c8e=this['_transformService']['transformMutationsWithChangeset'](_0x2c935e[0x0],this[_0x46d386(0x540)]);if(_0x502235['isTransformMutationsWithChangesetSuccess'](_0x370c8e)){const {c1Prime:_0x1517f7,m2Prime:_0x36dc32}=_0x370c8e;return this['_executeRemoteChangeset'](_0x1517f7),_0x11d409[0x0][_0x46d386(0x276)]=this[_0x46d386(0x2cb)](),this[_0x46d386(0x4fa)](),this['_injector'][_0x46d386(0x336)](_0x25aaf0,this[_0x46d386(0x250)],this['type'],_0x11d409[0x0],_0x36dc32,this[_0x46d386(0x3da)],void 0x0);}throw _0x370c8e['error'];}throw _0xc35fdc[_0x46d386(0x1b1)];}catch(_0x5b250d){return this[_0x46d386(0x397)]['error'](_0x5b250d),this[_0x46d386(0x548)](!0x1);}}[_0x182123(0x248)](_0x22d390){const _0x7eb753=_0x182123;if(this['_clearScheduledTask'](),this[_0x7eb753(0x188)](_0x22d390))return this[_0x7eb753(0x526)][_0x7eb753(0x336)](_0x395c69,this[_0x7eb753(0x250)],this[_0x7eb753(0x45b)],null,this[_0x7eb753(0x540)],this[_0x7eb753(0x347)],[],this[_0x7eb753(0x3da)]);this[_0x7eb753(0x4fc)]();const _0x3781b3=this['_injector'][_0x7eb753(0x336)](_0x102544,this['unitID'],this[_0x7eb753(0x45b)],this['_pendingMutations'],this[_0x7eb753(0x3da)]);return _0x3781b3[_0x7eb753(0x3df)](),_0x3781b3['_updateLocalCache'](),_0x3781b3;}[_0x182123(0x27b)](_0x4298c9){const _0xd0a894=_0x182123;return this[_0xd0a894(0x548)](!!(_0x4298c9!=null&&_0x4298c9[_0xd0a894(0x206)]));}[_0x182123(0x1e4)](_0x21b741){const _0x9243b4=_0x182123;return this[_0x9243b4(0x4b5)]>_0x130aab?this[_0x9243b4(0x380)]():(this['_resendTimer']=_0x2a7aaf(this['_resendTimeout'],{'timeout':this[_0x9243b4(0x4b5)],'reqId':_0x21b741[_0x9243b4(0x48a)]}),this[_0x9243b4(0x20e)]=this[_0x9243b4(0x326)]['subscribe'](({reqId:_0x433a2f,timeout:_0x359f8f})=>{const _0x1b680b=_0x9243b4;this[_0x1b680b(0x40a)](_0x433a2f,_0x359f8f);}),this);}[_0x182123(0x380)](){const _0x3e40a4=_0x182123;return this[_0x3e40a4(0x4fa)](),this[_0x3e40a4(0x526)]['createInstance'](_0x2db763,this[_0x3e40a4(0x250)],this[_0x3e40a4(0x45b)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x3e40a4(0x3da)]);}['toggleOnline'](){return this;}[_0x182123(0x2c4)](){const _0x5349ae=_0x182123;this[_0x5349ae(0x3da)][_0x5349ae(0x145)](this[_0x5349ae(0x347)]);}['_onConflict'](_0x30b8e0){const _0x34b5ce=_0x182123;return this[_0x34b5ce(0x4fa)](),this[_0x34b5ce(0x526)][_0x34b5ce(0x336)](_0x4bc3b9,this[_0x34b5ce(0x250)],this['type'],null,this[_0x34b5ce(0x540)],this[_0x34b5ce(0x3da)],_0x30b8e0);}[_0x182123(0x40a)](_0x4b4924,_0x46888a){const _0x865343=_0x182123;var _0x18e496;_0x4b4924===((_0x18e496=this[_0x865343(0x347)])==null?void 0x0:_0x18e496[_0x865343(0x48a)])&&(this[_0x865343(0x2c4)](),this[_0x865343(0x4b5)]=_0x46888a===0x0?0x3e8:_0x46888a*0x2);}[_0x182123(0x4fa)](){const _0x538fce=_0x182123;var _0x47dcad;(_0x47dcad=this['_sender'])==null||_0x47dcad['unsubscribe'](),this[_0x538fce(0x4b5)]=0x0;}};_0x25aaf0=_0x1554a8([_0x21c084(0x6,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x21c084(0x7,_0x3223aa[_0x182123(0x40e)](_0x502235[_0x182123(0x4f6)])),_0x21c084(0x8,_0x3223aa['Inject'](_0x27845d[_0x182123(0x199)])),_0x21c084(0x9,_0x3223aa[_0x182123(0x23b)]),_0x21c084(0xa,_0x3223aa[_0x182123(0x3bf)]),_0x21c084(0xb,_0x502235[_0x182123(0x437)]),_0x21c084(0xc,_0x3223aa[_0x182123(0x3d5)])],_0x25aaf0);let _0x4bc3b9=class extends _0x1396d0{constructor(_0x4e4154,_0x43a233,_0x5d53cd,_0x514342,_0x2c0c40,_0x5c854e=!0x1,_0x590f04,_0x34975e,_0x1995cb,_0x323495,_0x20698e,_0x405ada,_0x594d4f){const _0x4381b0=_0x182123;super(_0x4e4154,_0x43a233,_0x5d53cd,_0x514342,_0x2c0c40,_0x34975e,_0x1995cb,_0x20698e,_0x323495),_0x571923(this,_0x4381b0(0x1e2),_0x4381b0(0x315)),(this['_isPermissionRej']=_0x5c854e,this[_0x4381b0(0x2db)]=_0x590f04,this[_0x4381b0(0x29b)]=_0x405ada,this[_0x4381b0(0x169)]=_0x594d4f,this[_0x4381b0(0x433)](),this[_0x4381b0(0x4da)](),this[_0x4381b0(0x51c)]());}[_0x182123(0x31c)](){return this;}['onRemoteChangeset'](){return this;}[_0x182123(0x248)](){return this;}[_0x182123(0x27b)](){return this;}[_0x182123(0x1e4)](){return this;}[_0x182123(0x380)](){return this;}[_0x182123(0x1cc)](){return this;}[_0x182123(0x2c4)](){const _0x187c01=_0x182123;throw new Error(_0x187c01(0x3ca));}[_0x182123(0x4da)](){const _0x30212d=_0x182123;this[_0x30212d(0x44c)]['updateOfflineData'](this[_0x30212d(0x250)],this[_0x30212d(0x45b)],null,[]);}['_showConflictNotification'](){const _0x44c02d=_0x182123;this[_0x44c02d(0x484)]?this[_0x44c02d(0x169)][_0x44c02d(0x2a4)]({'title':this[_0x44c02d(0x29b)]['t'](_0x44c02d(0x4bf)),'content':this[_0x44c02d(0x29b)]['t'](_0x44c02d(0x4f3)),'type':'error','duration':0x0}):this[_0x44c02d(0x169)][_0x44c02d(0x2a4)]({'title':this[_0x44c02d(0x29b)]['t']('conflict.title'),'content':this[_0x44c02d(0x29b)]['t'](_0x44c02d(0x2aa)),'type':_0x44c02d(0x1b1),'duration':0x0});}[_0x182123(0x51c)](){const _0x3c4429=_0x182123;this[_0x3c4429(0x2db)][_0x3c4429(0x3ad)](new _0x4f46f0['WorkbookEditablePermission'](this[_0x3c4429(0x250)])['id'],!0x1);}};_0x4bc3b9=_0x1554a8([_0x21c084(0x6,_0x3223aa[_0x182123(0x40e)](_0x3223aa['IPermissionService'])),_0x21c084(0x7,_0x3223aa[_0x182123(0x23b)]),_0x21c084(0x8,_0x3223aa['IUndoRedoService']),_0x21c084(0x9,_0x3223aa[_0x182123(0x40e)](_0x27845d['LocalCacheService'])),_0x21c084(0xa,_0x3223aa[_0x182123(0x40e)](_0x502235[_0x182123(0x4f6)])),_0x21c084(0xb,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x1dd)])),_0x21c084(0xc,_0x19d837[_0x182123(0x24b)])],_0x4bc3b9);let _0x2db763=class extends _0x1396d0{constructor(_0x485ad1,_0x33d62b,_0x523aa4,_0x16bcdb,_0x1fbefa,_0x3ac656,_0x5475fb,_0x193f3c,_0x58edc1,_0x2ba23f){const _0xbf5d92=_0x182123;super(_0x485ad1,_0x33d62b,_0x523aa4,_0x16bcdb,_0x1fbefa,_0x58edc1,_0x2ba23f,_0x5475fb,_0x193f3c),_0x571923(this,_0xbf5d92(0x1e2),_0xbf5d92(0x2e7)),this[_0xbf5d92(0x526)]=_0x3ac656;}[_0x182123(0x31c)](_0x398f48){const _0x3a00e2=_0x182123;return this[_0x3a00e2(0x540)][_0x3a00e2(0x2fb)](_0x398f48),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x50653a){const _0xe0302f=_0x182123;throw new Error(_0xe0302f(0x2b7));}[_0x182123(0x248)](){const _0x57fe3c=_0x182123;throw new Error(_0x57fe3c(0x49c));}[_0x182123(0x27b)](){const _0x353896=_0x182123;throw new Error(_0x353896(0x21d));}[_0x182123(0x1e4)](){return this;}['toggleOffline'](){return this;}[_0x182123(0x1cc)](){const _0x1e40f6=_0x182123,{_injector:_0x43025e,_pendingMutations:_0x3de2d0,_awaitingChangeset:_0x57011a,unitID:_0x34d2ef,_handler:_0x17f55e,type:_0xefab7d}=this,_0x1fcbcd=_0x4c6e73(_0x43025e,_0x34d2ef,_0xefab7d,_0x57011a,_0x3de2d0,_0x17f55e);return _0x1fcbcd instanceof _0x102544?_0x1fcbcd['_schedule']():(_0x1fcbcd instanceof _0x25aaf0||_0x1fcbcd instanceof _0x2f78ca)&&_0x1fcbcd[_0x1e40f6(0x2c4)](),_0x1fcbcd;}[_0x182123(0x2c4)](){const _0x4cbbe4=_0x182123;throw new Error(_0x4cbbe4(0x49f));}};_0x2db763=_0x1554a8([_0x21c084(0x5,_0x3223aa['Inject'](_0x3223aa[_0x182123(0x14a)])),_0x21c084(0x6,_0x3223aa[_0x182123(0x40e)](_0x502235['RevisionService'])),_0x21c084(0x7,_0x3223aa['Inject'](_0x27845d[_0x182123(0x199)])),_0x21c084(0x8,_0x3223aa['ICommandService']),_0x21c084(0x9,_0x3223aa['IUndoRedoService'])],_0x2db763);let _0x395c69=class extends _0x1396d0{constructor(_0x4a60ef,_0x35235c,_0x377d75,_0x4f7d53,_0x3c91a5,_0x57ee11,_0x314114,_0x49d8a5,_0x5c5ec0,_0x8282d8,_0x5684df,_0x434d22,_0x20b41f,_0x35aef8){const _0x5e5ba7=_0x182123;super(_0x4a60ef,_0x35235c,_0x377d75,_0x4f7d53,_0x314114,_0x434d22,_0x20b41f,_0x5c5ec0,_0x8282d8),_0x571923(this,_0x5e5ba7(0x1e2),'fetch_missing'),(this[_0x5e5ba7(0x434)]=_0x3c91a5,this[_0x5e5ba7(0x2ef)]=_0x57ee11,this[_0x5e5ba7(0x526)]=_0x49d8a5,this[_0x5e5ba7(0x397)]=_0x5684df,this['_transformService']=_0x35aef8);}[_0x182123(0x284)](_0x5f1968){const _0x4fcb7c=_0x182123;try{const _0x3dc117=[..._0x5f1968,...this[_0x4fcb7c(0x2ef)]],_0x2f3cef=[this['_awaitingChangeset']||this[_0x4fcb7c(0x434)]][_0x4fcb7c(0x22a)](_0x3a5dd5=>!!_0x3a5dd5);let _0x1b7e00,_0x950c72;if(_0x2f3cef[_0x4fcb7c(0x4c3)]){const _0x28452c=this[_0x4fcb7c(0x2b5)][_0x4fcb7c(0x116)](_0x3dc117,_0x2f3cef,!0x1);if(!_0x502235[_0x4fcb7c(0x2a6)](_0x28452c))throw _0x28452c['error'];_0x1b7e00=_0x28452c['c1Prime'],_0x950c72=_0x28452c[_0x4fcb7c(0x3a3)];}else _0x1b7e00=_0x3dc117,_0x950c72=[];let _0x513f2b=this['_pendingMutations'];_0x1b7e00[_0x4fcb7c(0x19f)](_0x1cd755=>{const _0x49642f=_0x4fcb7c;let _0x41bb48;if(_0x513f2b[_0x49642f(0x4c3)]){const _0x241be3=this['_transformService'][_0x49642f(0x419)](_0x1cd755,_0x513f2b);if(!_0x502235[_0x49642f(0x50c)](_0x241be3))throw _0x241be3['error'];_0x41bb48=_0x241be3[_0x49642f(0x490)],_0x513f2b=_0x241be3[_0x49642f(0x35b)];}else _0x41bb48=_0x1cd755;this['_executeRemoteChangeset'](_0x41bb48);}),this['_acknowledgedAwaitingChangeset']&&this[_0x4fcb7c(0x4fc)](),this[_0x4fcb7c(0x347)]&&_0x950c72[_0x4fcb7c(0x4c3)]&&(_0x950c72[0x0][_0x4fcb7c(0x276)]=this['_getCurrentRevision']());let _0x421756;if(this[_0x4fcb7c(0x347)]&&_0x513f2b[_0x4fcb7c(0x4c3)]!==0x0)_0x421756=this[_0x4fcb7c(0x526)][_0x4fcb7c(0x336)](_0x25aaf0,this[_0x4fcb7c(0x250)],this['type'],_0x950c72[0x0],_0x513f2b,this[_0x4fcb7c(0x3da)],void 0x0);else{if(this[_0x4fcb7c(0x347)]&&_0x513f2b[_0x4fcb7c(0x4c3)]===0x0)_0x950c72[0x0][_0x4fcb7c(0x276)]=this['_getCurrentRevision'](),_0x421756=this[_0x4fcb7c(0x526)][_0x4fcb7c(0x336)](_0x2f78ca,this['unitID'],this[_0x4fcb7c(0x45b)],_0x950c72[0x0],this['_handler']);else{if(_0x513f2b[_0x4fcb7c(0x4c3)]!==0x0){const _0x382b84=this[_0x4fcb7c(0x526)][_0x4fcb7c(0x336)](_0x102544,this[_0x4fcb7c(0x250)],this[_0x4fcb7c(0x45b)],_0x513f2b,this['_handler']);_0x382b84[_0x4fcb7c(0x3df)](),_0x421756=_0x382b84;}else _0x421756=this[_0x4fcb7c(0x526)]['createInstance'](_0x1aa61f,this[_0x4fcb7c(0x250)],this[_0x4fcb7c(0x45b)],this['_handler']);}}return _0x421756[_0x4fcb7c(0x2ee)](),_0x421756;}catch(_0x533535){return this[_0x4fcb7c(0x397)][_0x4fcb7c(0x1b1)]('[FetchMissState]',_0x4fcb7c(0x1f9),_0x533535),this[_0x4fcb7c(0x526)][_0x4fcb7c(0x336)](_0x4bc3b9,this[_0x4fcb7c(0x250)],this[_0x4fcb7c(0x45b)],this[_0x4fcb7c(0x347)],this[_0x4fcb7c(0x540)],this[_0x4fcb7c(0x3da)],!0x1);}}[_0x182123(0x2c4)](){const _0x3c43d5=_0x182123;throw new Error(_0x3c43d5(0x53e));}[_0x182123(0x31c)](_0xf92f8c){const _0x5a1cee=_0x182123;return this[_0x5a1cee(0x540)][_0x5a1cee(0x2fb)](_0xf92f8c),this;}[_0x182123(0x174)](_0x3f3e69){const _0x1a367e=_0x182123;return this[_0x1a367e(0x2ef)][_0x1a367e(0x2fb)](_0x3f3e69),this;}[_0x182123(0x248)](_0x339aa3){const _0x3301a1=_0x182123;if(this[_0x3301a1(0x347)])return this['_acknowledgedAwaitingChangeset']=this['_awaitingChangeset'],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x182123(0x27b)](_0x30670a){const _0x12271f=_0x182123;return this['_onConflict'](!!(_0x30670a!=null&&_0x30670a[_0x12271f(0x206)]));}[_0x182123(0x1e4)](){return this;}[_0x182123(0x380)](){const _0x2b508c=_0x182123;return this[_0x2b508c(0x526)][_0x2b508c(0x336)](_0x2db763,this[_0x2b508c(0x250)],this[_0x2b508c(0x45b)],this[_0x2b508c(0x347)],this[_0x2b508c(0x540)],this[_0x2b508c(0x3da)]);}[_0x182123(0x1cc)](){return this;}['_onConflict'](_0x226953){const _0x26092b=_0x182123;return this[_0x26092b(0x526)][_0x26092b(0x336)](_0x4bc3b9,this['unitID'],this['type'],this[_0x26092b(0x347)],this[_0x26092b(0x540)],this['_handler'],_0x226953);}};_0x395c69=_0x1554a8([_0x21c084(0x7,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x21c084(0x8,_0x3223aa['Inject'](_0x502235[_0x182123(0x4f6)])),_0x21c084(0x9,_0x3223aa[_0x182123(0x40e)](_0x27845d[_0x182123(0x199)])),_0x21c084(0xa,_0x3223aa[_0x182123(0x3bf)]),_0x21c084(0xb,_0x3223aa[_0x182123(0x23b)]),_0x21c084(0xc,_0x3223aa[_0x182123(0x3d5)]),_0x21c084(0xd,_0x502235['ITransformService'])],_0x395c69);function _0x4c6e73(_0x1d0197,_0x39f2d6,_0xd2b9d3,_0x2e56e6,_0xe4d716,_0x5165c1){const _0x365016=_0x182123;return _0x2e56e6&&_0xe4d716[_0x365016(0x4c3)]?_0x1d0197['createInstance'](_0x25aaf0,_0x39f2d6,_0xd2b9d3,_0x2e56e6,_0xe4d716,_0x5165c1,void 0x0):_0x2e56e6?_0x1d0197['createInstance'](_0x2f78ca,_0x39f2d6,_0xd2b9d3,_0x2e56e6,_0x5165c1):_0xe4d716[_0x365016(0x4c3)]?_0x1d0197[_0x365016(0x336)](_0x102544,_0x39f2d6,_0xd2b9d3,_0xe4d716,_0x5165c1):_0x1d0197[_0x365016(0x336)](_0x1aa61f,_0x39f2d6,_0xd2b9d3,_0x5165c1);}var _0x374abf=Object['defineProperty'],_0xa2bc3d=Object[_0x182123(0x363)],_0x1024b6=(_0x30e4be,_0x284c93,_0x9254a9,_0x4038b5)=>{for(var _0x167466=_0x4038b5>0x1?void 0x0:_0x4038b5?_0xa2bc3d(_0x284c93,_0x9254a9):_0x284c93,_0x504871=_0x30e4be['length']-0x1,_0x4bd8d9;_0x504871>=0x0;_0x504871--)(_0x4bd8d9=_0x30e4be[_0x504871])&&(_0x167466=(_0x4038b5?_0x4bd8d9(_0x284c93,_0x9254a9,_0x167466):_0x4bd8d9(_0x167466))||_0x167466);return _0x4038b5&&_0x167466&&_0x374abf(_0x284c93,_0x9254a9,_0x167466),_0x167466;},_0x359239=(_0x519746,_0x54af50)=>(_0x3a7c84,_0xf75938)=>_0x54af50(_0x3a7c84,_0xf75938,_0x519746);_0x27845d[_0x182123(0x3de)]=class extends _0x3223aa[_0x182123(0x4a9)]{constructor(_0x457864,_0x2617a8,_0x3b5f04,_0x30d44b,_0x346659,_0x4fa2e7,_0x393416,_0x1adf53,_0x1b4b5d,_0x576bfc,_0x112fec,_0x4c0ea1,_0xd78248){const _0x2d57d6=_0x182123;super(),_0x571923(this,_0x2d57d6(0x3b8),new _0x41acaa[(_0x2d57d6(0x30c))](null)),_0x571923(this,_0x2d57d6(0x3b6),this[_0x2d57d6(0x3b8)][_0x2d57d6(0x28d)]()),_0x571923(this,_0x2d57d6(0x496)),_0x571923(this,_0x2d57d6(0x32e),!0x1),_0x571923(this,_0x2d57d6(0x533),''),_0x571923(this,_0x2d57d6(0x447),0x0),_0x571923(this,'status$',this[_0x2d57d6(0x3b6)]['pipe'](_0x41acaa[_0x2d57d6(0x486)](_0x3689d3=>_0x3689d3?_0x3689d3['status']:_0x12b363[_0x2d57d6(0x113)]),_0x41acaa[_0x2d57d6(0x4ff)](0x1))),_0x571923(this,_0x2d57d6(0x222),!0x1),_0x571923(this,_0x2d57d6(0x4f7),[]),(this['unitID']=_0x457864,this['session']=_0x2617a8,this[_0x2d57d6(0x482)]=_0x3b5f04,this['_injector']=_0x30d44b,this[_0x2d57d6(0x44c)]=_0x346659,this[_0x2d57d6(0x24a)]=_0x4fa2e7,this[_0x2d57d6(0x29b)]=_0x393416,this[_0x2d57d6(0x416)]=_0x1adf53,this[_0x2d57d6(0x397)]=_0x1b4b5d,this['_commandService']=_0x576bfc,this['_messageService']=_0x112fec,this[_0x2d57d6(0x2db)]=_0x4c0ea1,this[_0x2d57d6(0x1cb)]=_0xd78248);}get[_0x182123(0x127)](){const _0x1cb876=_0x182123;return this[_0x1cb876(0x496)];}async['init'](){const _0x19a474=_0x182123;if(this['state'])throw new Error(_0x19a474(0x4d5));await this[_0x19a474(0x450)]();}[_0x182123(0x4c0)](){const _0x136f7f=_0x182123;return this[_0x136f7f(0x32e)]=!0x0,_0x3223aa[_0x136f7f(0x1ed)](()=>{const _0x4463c3=_0x136f7f;this[_0x4463c3(0x32e)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x182123(0x51b)](_0x2efaf8){const _0x4823db=_0x182123;this[_0x4823db(0x496)]=_0x2efaf8,this[_0x4823db(0x3b8)]['next'](_0x2efaf8);}async[_0x182123(0x450)](){const _0x90f377=_0x182123;var _0x22826f;this[_0x90f377(0x51b)](await this[_0x90f377(0x454)]()),this['_singleActiveUnitService']&&((_0x22826f=this[_0x90f377(0x1cb)])==null||_0x22826f[_0x90f377(0x366)](this['unitID']),this[_0x90f377(0x2c6)](this[_0x90f377(0x1cb)][_0x90f377(0x16f)](this['unitID'])['subscribe'](_0x4c8425=>{const _0x33c9d9=_0x90f377;this[_0x33c9d9(0x397)][_0x33c9d9(0x235)]('[CollaborationEntity]',_0x33c9d9(0x4eb),_0x4c8425),_0x4c8425===_0x10b66f[_0x33c9d9(0x2e4)]?(this[_0x33c9d9(0x513)][_0x33c9d9(0x2a4)]({'content':this['_localeService']['t'](_0x33c9d9(0x3ac)),'type':_0x4d822f['MessageType'][_0x33c9d9(0x243)]}),this[_0x33c9d9(0x2db)]['updatePermissionPoint'](new _0x4f46f0[(_0x33c9d9(0x4d3))](this[_0x33c9d9(0x250)])['id'],!0x1)):this['_permissionService'][_0x33c9d9(0x3ad)](new _0x4f46f0['WorkbookEditablePermission'](this[_0x33c9d9(0x250)])['id'],!0x0);})));let _0x5e5c07=!0x1;return this[_0x90f377(0x2c6)](this[_0x90f377(0x14f)]['sessionStatus$']['subscribe'](_0x31c3a4=>{const _0x3d773c=_0x90f377;_0x31c3a4===_0x49249e['ONLINE']?this[_0x3d773c(0x15d)](_0x5e5c07):_0x31c3a4===_0x49249e[_0x3d773c(0x113)]&&(_0x5e5c07=!0x0,this[_0x3d773c(0x1bb)]());})),this['disposeWithMe'](this[_0x90f377(0x14f)]['event$'][_0x90f377(0x10e)](_0x8d4d39=>{const _0x2cc13b=_0x90f377;try{switch(_0x8d4d39['eventID']){case _0x502235[_0x2cc13b(0x2f0)][_0x2cc13b(0x51a)]:{this['_onRemoteChangeset'](_0x502235[_0x2cc13b(0x3a9)](_0x8d4d39[_0x2cc13b(0x46f)]));break;}case _0x502235['CollaborationEvent']['CHANGESET_ACK']:{this['_onRemoteACK'](_0x8d4d39['data']);break;}case _0x502235[_0x2cc13b(0x2f0)][_0x2cc13b(0x275)]:{this[_0x2cc13b(0x164)]();break;}case _0x502235[_0x2cc13b(0x2f0)][_0x2cc13b(0x408)]:{this[_0x2cc13b(0x1fc)](_0x8d4d39[_0x2cc13b(0x46f)]);break;}case _0x502235['CollaborationEvent'][_0x2cc13b(0x358)]:{this['_onFetchMissResult'](_0x8d4d39[_0x2cc13b(0x46f)]['changesets'][_0x2cc13b(0x486)](_0xd7e92f=>_0x502235[_0x2cc13b(0x3a9)](_0xd7e92f)));break;}case _0x502235['CollaborationEvent'][_0x2cc13b(0x2ae)]:this[_0x2cc13b(0x164)]({'isPermissionRej':!0x0});}}catch(_0x3a32b0){throw console[_0x2cc13b(0x1b1)]('Error\x20on\x20receiving\x20event',_0x3a32b0),_0x3a32b0;}})),this[_0x90f377(0x496)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x182123(0x4cc)](){const _0x1ff8ae=_0x182123;if(this[_0x1ff8ae(0x222)])throw new Error(_0x1ff8ae(0x44d));this[_0x1ff8ae(0x222)]=!0x0;}[_0x182123(0x4a7)](_0x364329){const _0x499764=_0x182123;this[_0x499764(0x4cc)](),this[_0x499764(0x51b)](this[_0x499764(0x496)][_0x499764(0x31c)](_0x364329)),this[_0x499764(0x277)]();}[_0x182123(0x510)](_0x464c6f){const _0x141eaf=_0x182123;if(!(_0x464c6f[_0x141eaf(0x3f0)]<=this[_0x141eaf(0x416)][_0x141eaf(0x523)](this[_0x141eaf(0x250)]))){if(this[_0x141eaf(0x32e)]){this[_0x141eaf(0x4f7)][_0x141eaf(0x2fb)](_0x464c6f);return;}this[_0x141eaf(0x4af)](_0x464c6f);}}[_0x182123(0x10f)](){const _0x593a1a=_0x182123;this[_0x593a1a(0x4f7)][_0x593a1a(0x19f)](_0xe0996a=>this[_0x593a1a(0x4af)](_0xe0996a)),this[_0x593a1a(0x4f7)]=[];}[_0x182123(0x4af)](_0x1d134d){const _0x28009d=_0x182123,_0x1e77e5=this['_compressMutationService'][_0x28009d(0x362)][_0x28009d(0x4a2)](this[_0x28009d(0x24a)][_0x28009d(0x362)]['getInterceptPoints']()[_0x28009d(0x3e0)])(_0x1d134d[_0x28009d(0x1d7)],null)||_0x1d134d[_0x28009d(0x1d7)],_0x46098e={..._0x1d134d,'mutations':_0x1e77e5};this['_lockTransition'](),this[_0x28009d(0x51b)](this[_0x28009d(0x496)][_0x28009d(0x174)](_0x46098e)),this[_0x28009d(0x277)]();}[_0x182123(0x4d7)](_0x240445){const _0x5c96d5=_0x182123;this[_0x5c96d5(0x4cc)](),this[_0x5c96d5(0x51b)](this[_0x5c96d5(0x496)][_0x5c96d5(0x248)](_0x240445)),this[_0x5c96d5(0x277)]();}['_onRemoteRejected'](_0x4efc55){const _0x3fa350=_0x182123;this['_lockTransition'](),this[_0x3fa350(0x51b)](this[_0x3fa350(0x496)]['onRemoteRej'](_0x4efc55)),this[_0x3fa350(0x277)]();}[_0x182123(0x1fc)](_0x3cf63d){const _0x4eb52b=_0x182123;this[_0x4eb52b(0x4cc)](),this[_0x4eb52b(0x51b)](this[_0x4eb52b(0x496)][_0x4eb52b(0x1e4)](_0x3cf63d)),this[_0x4eb52b(0x277)]();}[_0x182123(0x115)](_0x1fcc30){const _0x548cc1=_0x182123;if(!(this[_0x548cc1(0x496)]instanceof _0x395c69))throw new TypeError(_0x548cc1(0x267));const _0x1d9602=_0x1fcc30['map'](_0x5be66a=>{const _0x3102b5=_0x548cc1,_0x43714e=this['_compressMutationService']['interceptor'][_0x3102b5(0x4a2)](this[_0x3102b5(0x24a)][_0x3102b5(0x362)]['getInterceptPoints']()[_0x3102b5(0x3e0)])(_0x5be66a[_0x3102b5(0x1d7)],null)||_0x5be66a['mutations'];return{..._0x5be66a,'mutations':_0x43714e};});this[_0x548cc1(0x4cc)](),this[_0x548cc1(0x51b)](this[_0x548cc1(0x496)][_0x548cc1(0x284)](_0x1d9602)),this[_0x548cc1(0x277)]();}['_toggleOffline'](){const _0xf14a9=_0x182123;this[_0xf14a9(0x4cc)](),this[_0xf14a9(0x51b)](this['_state']['toggleOffline']()),this[_0xf14a9(0x277)]();}[_0x182123(0x15d)](_0x24f4e4=!0x1){const _0x37be4b=_0x182123;this[_0x37be4b(0x4cc)](),this[_0x37be4b(0x51b)](this[_0x37be4b(0x496)][_0x37be4b(0x1cc)]()),this[_0x37be4b(0x277)]();const _0x371900=this[_0x37be4b(0x496)];_0x24f4e4&&_0x371900 instanceof _0x1aa61f&&(this[_0x37be4b(0x4cc)](),this[_0x37be4b(0x51b)](_0x371900[_0x37be4b(0x1de)]()),this[_0x37be4b(0x277)]());}async[_0x182123(0x454)](){return new Promise(_0x36724c=>{const _0x273b19=_0x2e84;this['session'][_0x273b19(0x4d0)][_0x273b19(0x493)](_0x41acaa[_0x273b19(0x12d)](0x1))[_0x273b19(0x10e)](async _0x4d6472=>{const _0x4108d1=_0x273b19;_0x36724c(await this[_0x4108d1(0x448)](_0x4d6472===_0x49249e[_0x4108d1(0x233)]));});});}['_createHandler'](){const _0x1c4a8e=_0x182123,_0x4056d9=this[_0x1c4a8e(0x250)];return{'onStateChange':(_0x43aa9d,_0x2b4f87)=>{const _0x24ea46=_0x1c4a8e;if(_0x43aa9d!==this[_0x24ea46(0x496)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x43aa9d[_0x24ea46(0x1e2)]+_0x24ea46(0x439)+_0x2b4f87[_0x24ea46(0x1e2)]+_0x24ea46(0x27f)+this[_0x24ea46(0x496)]['status']);this[_0x24ea46(0x51b)](_0x2b4f87);},'onSendChangeset':_0x3876d6=>{const _0x107d79=_0x1c4a8e;_0x3876d6[_0x107d79(0x11f)]||(_0x3876d6[_0x107d79(0x11f)]=this[_0x107d79(0x533)],_0x3876d6[_0x107d79(0x48a)]=++this['_changesetReqId']);const _0x3a4629={'eventID':_0x502235[_0x107d79(0x2f0)][_0x107d79(0x33e)],'data':{'unitID':_0x3876d6['unitID'],'unitType':this[_0x107d79(0x482)],'changeset':_0x3876d6,'memberID':this[_0x107d79(0x14f)][_0x107d79(0x17a)]()}};this['session']['send'](_0x3a4629,this[_0x107d79(0x250)]);},'onMissingChangesets':({from:_0x50f52b,to:_0x2632c0})=>{const _0xf8a5bf=_0x1c4a8e;this[_0xf8a5bf(0x397)]['debug'](_0xf8a5bf(0x22c),_0xf8a5bf(0x13a)+_0x50f52b+_0xf8a5bf(0x294)+_0x2632c0);const _0x5a6437={'eventID':_0x502235[_0xf8a5bf(0x2f0)][_0xf8a5bf(0x549)],'data':{'unitID':_0x4056d9,'unitType':this['_type'],'from':_0x50f52b,'to':_0x2632c0}};this['session'][_0xf8a5bf(0x4a0)](_0x5a6437,this[_0xf8a5bf(0x250)]);}};}async[_0x182123(0x448)](_0x552e5d){const _0x21ec7a=_0x182123;var _0x26dcf4,_0x4638cd;const _0x2e8154=await this[_0x21ec7a(0x44c)]['loadOfflineData'](this['unitID']),_0x3ad397=(_0x26dcf4=_0x2e8154==null?void 0x0:_0x2e8154[_0x21ec7a(0x1d7)])!=null?_0x26dcf4:[],_0x5c062f=(_0x4638cd=_0x2e8154==null?void 0x0:_0x2e8154[_0x21ec7a(0x2ed)])!=null?_0x4638cd:null,_0x40e6ac=!!(_0x5c062f!=null&&_0x5c062f[_0x21ec7a(0x11f)])&&!!(_0x5c062f!=null&&_0x5c062f['reqId']);this[_0x21ec7a(0x533)]=_0x40e6ac?_0x5c062f[_0x21ec7a(0x11f)]:_0x3a1d6d(),this[_0x21ec7a(0x447)]=_0x40e6ac?_0x5c062f[_0x21ec7a(0x48a)]:0x0;const _0x347732=this[_0x21ec7a(0x250)];try{this[_0x21ec7a(0x3a7)](_0x5c062f,_0x3ad397);}catch(_0x1bec3f){this[_0x21ec7a(0x397)][_0x21ec7a(0x1b1)](_0x1bec3f);}const _0x55c1bd=this['_createHandler']();if(_0x552e5d){const _0x18587c=_0x4c6e73(this[_0x21ec7a(0x526)],_0x347732,this[_0x21ec7a(0x482)],_0x5c062f,_0x3ad397,_0x55c1bd);return _0x18587c instanceof _0x102544?_0x18587c[_0x21ec7a(0x3df)]():(_0x18587c instanceof _0x25aaf0||_0x18587c instanceof _0x2f78ca)&&_0x18587c['resend'](),_0x18587c;}return this[_0x21ec7a(0x526)]['createInstance'](_0x2db763,_0x347732,this[_0x21ec7a(0x482)],_0x5c062f,_0x3ad397,_0x55c1bd);}[_0x182123(0x3a7)](_0x53c141,_0x49323f){const _0x3aa543=_0x182123;var _0x46639a,_0x48c2eb;const _0x5f02a8=this[_0x3aa543(0x24a)][_0x3aa543(0x362)][_0x3aa543(0x4a2)](this[_0x3aa543(0x24a)]['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x46639a=_0x5f02a8((_0x53c141==null?void 0x0:_0x53c141[_0x3aa543(0x1d7)])||[],null))==null||_0x46639a[_0x3aa543(0x19f)](_0x25a4ee=>this[_0x3aa543(0x198)][_0x3aa543(0x3c8)](_0x25a4ee['id'],_0x25a4ee[_0x3aa543(0x4b1)])),(_0x48c2eb=_0x5f02a8(_0x49323f||[],null))==null||_0x48c2eb['forEach'](_0x2899a1=>this['_commandService']['executeCommand'](_0x2899a1['id'],_0x2899a1[_0x3aa543(0x4b1)]));}},_0x27845d[_0x182123(0x3de)]=_0x1024b6([_0x359239(0x3,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x359239(0x4,_0x3223aa[_0x182123(0x40e)](_0x27845d[_0x182123(0x199)])),_0x359239(0x5,_0x3223aa[_0x182123(0x40e)](_0x502235['CompressMutationService'])),_0x359239(0x6,_0x3223aa[_0x182123(0x40e)](_0x3223aa['LocaleService'])),_0x359239(0x7,_0x3223aa[_0x182123(0x40e)](_0x502235[_0x182123(0x4f6)])),_0x359239(0x8,_0x3223aa[_0x182123(0x3bf)]),_0x359239(0x9,_0x3223aa[_0x182123(0x23b)]),_0x359239(0xa,_0x19d837[_0x182123(0x31b)]),_0x359239(0xb,_0x3223aa[_0x182123(0x230)]),_0x359239(0xc,_0x3223aa[_0x182123(0x203)](_0x49a942))],_0x27845d[_0x182123(0x3de)]),_0x27845d[_0x182123(0x22e)]=class extends _0x27845d[_0x182123(0x3de)]{constructor(_0x1a5d0e,_0x1d5abb,_0x163c5a,_0x3c26bf,_0x49d569,_0x2e2b4e,_0x238150,_0x7410c7,_0xa7359e,_0x2bb6a8,_0x51c817,_0x19808b,_0x5682c7,_0x14b635,_0x5a355f,_0x2243a0,_0x237295){const _0x567dbb=_0x182123;super(_0x1a5d0e,_0x163c5a,_0x1d5abb,_0x3c26bf,_0x49d569,_0x2e2b4e,_0x238150,_0x7410c7,_0x5682c7,_0x14b635,_0x5a355f,_0x2243a0,_0x237295),this['unitID']=_0x1a5d0e,this['type']=_0x1d5abb,this[_0x567dbb(0x499)]=_0xa7359e,this['_docTransformIMECacheService']=_0x2bb6a8,this[_0x567dbb(0x4ec)]=_0x51c817,this['_docSyncEditingCollabCursorService']=_0x19808b;}[_0x182123(0x147)](){const _0x54fec9=_0x182123,_0x428113=super[_0x54fec9(0x147)]();return _0x428113['onTransformIME']=_0x83edff=>this[_0x54fec9(0x2bb)][_0x54fec9(0x323)](_0x83edff),_0x428113['onTransformSelections']=_0x51520b=>this[_0x54fec9(0x4ec)]['transformSelections'](_0x51520b),_0x428113['onSyncEditingCollabCursor']=_0x5c39a1=>this['_docSyncEditingCollabCursorService'][_0x54fec9(0x1f5)](_0x5c39a1),_0x428113[_0x54fec9(0x436)]=_0x55a503=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x55a503),_0x428113;}async[_0x182123(0x450)](){const _0x56533b=_0x182123,_0x3f7db3=await super[_0x56533b(0x450)]();return this[_0x56533b(0x499)][_0x56533b(0x386)]['pipe'](_0x41acaa[_0x56533b(0x410)](this[_0x56533b(0x4ef)]))['subscribe'](_0x53c183=>{const _0x20f806=_0x56533b;if(_0x53c183==null)return;const {unitId:_0x3744bf,redoState:_0x206738,commandId:_0x124ec7}=_0x53c183;if(_0x3744bf!==this[_0x20f806(0x250)])return;const _0x559808={'id':_0x124ec7,'type':_0x3223aa[_0x20f806(0x3b7)]['MUTATION'],'params':{'unitId':_0x3744bf,'actions':_0x206738[_0x20f806(0x3d3)],'textRanges':null}};this[_0x20f806(0x4a7)](_0x559808);}),_0x3f7db3;}},_0x27845d[_0x182123(0x22e)]=_0x1024b6([_0x359239(0x3,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x359239(0x4,_0x3223aa['Inject'](_0x27845d[_0x182123(0x199)])),_0x359239(0x5,_0x3223aa[_0x182123(0x40e)](_0x502235['CompressMutationService'])),_0x359239(0x6,_0x3223aa[_0x182123(0x40e)](_0x3223aa['LocaleService'])),_0x359239(0x7,_0x3223aa[_0x182123(0x40e)](_0x502235[_0x182123(0x4f6)])),_0x359239(0x8,_0x3223aa[_0x182123(0x40e)](_0x143e31['DocStateChangeManagerService'])),_0x359239(0x9,_0x3223aa['Inject'](_0x136308)),_0x359239(0xa,_0x3223aa['Inject'](_0x427d95)),_0x359239(0xb,_0x3223aa[_0x182123(0x40e)](_0x729593)),_0x359239(0xc,_0x3223aa['ILogService']),_0x359239(0xd,_0x3223aa[_0x182123(0x23b)]),_0x359239(0xe,_0x19d837[_0x182123(0x31b)]),_0x359239(0xf,_0x3223aa[_0x182123(0x230)]),_0x359239(0x10,_0x3223aa['Optional'](_0x49a942))],_0x27845d[_0x182123(0x22e)]),_0x27845d[_0x182123(0x1a2)]=class extends _0x27845d[_0x182123(0x3de)]{constructor(_0x1d8e3f,_0x368fc8,_0xf70dc6,_0x30ced6,_0x1227ed,_0x5b3ba3,_0xe05699,_0x1f347d,_0x44c65e,_0xccd9c,_0x462327,_0x1e49e1,_0x5eed94,_0x35b894){const _0x11ea48=_0x182123;super(_0x1d8e3f,_0xf70dc6,_0x368fc8,_0x30ced6,_0x1227ed,_0x5b3ba3,_0xe05699,_0x1f347d,_0xccd9c,_0x462327,_0x1e49e1,_0x5eed94,_0x35b894),this['unitID']=_0x1d8e3f,this['type']=_0x368fc8,this[_0x11ea48(0x274)]=_0x44c65e;}[_0x182123(0x147)](){const _0x1cccf7=_0x182123,_0x100950=super[_0x1cccf7(0x147)]();return _0x100950[_0x1cccf7(0x227)]=_0x26cec9=>this[_0x1cccf7(0x274)]['transformSelections'](_0x26cec9),_0x100950;}async[_0x182123(0x450)](){const _0x19b7ab=_0x182123,_0x263029=await super[_0x19b7ab(0x450)]();return this['disposeWithMe'](this['_commandService'][_0x19b7ab(0x3cb)]((_0x32a360,_0x4f1b63)=>{const _0xfd4f20=_0x19b7ab;if(_0x32a360[_0xfd4f20(0x45b)]!==_0x3223aa[_0xfd4f20(0x3b7)][_0xfd4f20(0x402)]||_0x4f1b63!=null&&_0x4f1b63[_0xfd4f20(0x177)]||_0x4f1b63!=null&&_0x4f1b63[_0xfd4f20(0x1f2)])return;const _0x2803f8=_0x32a360[_0xfd4f20(0x4b1)];if((_0x2803f8==null?void 0x0:_0x2803f8[_0xfd4f20(0x504)])!==this['unitID'])return;const _0x1e810a=_0x32a360,_0x5e4915=this[_0xfd4f20(0x24a)][_0xfd4f20(0x362)]['fetchThroughInterceptors'](this[_0xfd4f20(0x24a)]['interceptor'][_0xfd4f20(0x135)]()['COMPRESS_MUTATION_SEND'])([_0x1e810a],null)||[_0x1e810a];this[_0xfd4f20(0x4a7)](_0x5e4915[0x0]);})),_0x263029;}},_0x27845d[_0x182123(0x1a2)]=_0x1024b6([_0x359239(0x3,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x359239(0x4,_0x3223aa[_0x182123(0x40e)](_0x27845d['LocalCacheService'])),_0x359239(0x5,_0x3223aa[_0x182123(0x40e)](_0x502235[_0x182123(0x3a4)])),_0x359239(0x6,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x1dd)])),_0x359239(0x7,_0x3223aa[_0x182123(0x40e)](_0x502235[_0x182123(0x4f6)])),_0x359239(0x8,_0x3223aa[_0x182123(0x40e)](_0x38921c)),_0x359239(0x9,_0x3223aa[_0x182123(0x3bf)]),_0x359239(0xa,_0x3223aa[_0x182123(0x23b)]),_0x359239(0xb,_0x19d837['IMessageService']),_0x359239(0xc,_0x3223aa['IPermissionService']),_0x359239(0xd,_0x3223aa[_0x182123(0x203)](_0x49a942))],_0x27845d[_0x182123(0x1a2)]);var _0x1415ce=Object['defineProperty'],_0x18d57b=Object['getOwnPropertyDescriptor'],_0x584090=(_0x581125,_0x32d3ae,_0x528ced,_0x2890ec)=>{const _0x321ece=_0x182123;for(var _0x51c0a1=_0x2890ec>0x1?void 0x0:_0x2890ec?_0x18d57b(_0x32d3ae,_0x528ced):_0x32d3ae,_0x46119e=_0x581125[_0x321ece(0x4c3)]-0x1,_0xc47ed9;_0x46119e>=0x0;_0x46119e--)(_0xc47ed9=_0x581125[_0x46119e])&&(_0x51c0a1=(_0x2890ec?_0xc47ed9(_0x32d3ae,_0x528ced,_0x51c0a1):_0xc47ed9(_0x51c0a1))||_0x51c0a1);return _0x2890ec&&_0x51c0a1&&_0x1415ce(_0x32d3ae,_0x528ced,_0x51c0a1),_0x51c0a1;},_0x1419e4=(_0x81fe9c,_0x58a4f6)=>(_0x261810,_0x310653)=>_0x58a4f6(_0x261810,_0x310653,_0x81fe9c);_0x27845d[_0x182123(0x30b)]=class extends _0x3223aa[_0x182123(0x4a9)]{constructor(_0x5e5c48,_0x175edc,_0x372841){const _0x2e047b=_0x182123;super(),_0x571923(this,_0x2e047b(0x541),new Map()),_0x571923(this,'_entityInit$',new _0x41acaa[(_0x2e047b(0x378))]()),(this[_0x2e047b(0x526)]=_0x5e5c48,this['_collabSessionService']=_0x175edc,this[_0x2e047b(0x348)]=_0x372841,this[_0x2e047b(0x450)]());}[_0x182123(0x2cf)](){const _0x32a8af=_0x182123;super[_0x32a8af(0x2cf)](),this['_entities']['forEach'](_0x299aba=>_0x299aba[_0x32a8af(0x2cf)]()),this[_0x32a8af(0x541)][_0x32a8af(0x41f)]();}[_0x182123(0x30e)](_0x1c95b9){const _0x171dc3=_0x182123;var _0x2c0d54;return(_0x2c0d54=this[_0x171dc3(0x541)][_0x171dc3(0x53b)](_0x1c95b9))!=null?_0x2c0d54:null;}[_0x182123(0x20d)](_0x5d5a95){const _0x599796=_0x182123,_0x300b34=this[_0x599796(0x30e)](_0x5d5a95);return _0x300b34?_0x41acaa['of'](_0x300b34):this['_entityInit$'][_0x599796(0x493)](_0xe02055[_0x599796(0x22a)](_0x1692f9=>_0x1692f9[_0x599796(0x250)]===_0x5d5a95));}['_init'](){const _0x57e370=_0x182123;this[_0x57e370(0x348)][_0x57e370(0x2f4)](_0x3223aa['UniverInstanceType'][_0x57e370(0x2d4)])[_0x57e370(0x493)](_0x41acaa[_0x57e370(0x410)](this[_0x57e370(0x4ef)]),_0xe02055['delay'](0x10))[_0x57e370(0x10e)](async _0x47f032=>{const _0x3371fa=_0x57e370,_0x44353d=_0x47f032[_0x3371fa(0x27a)](),_0x12d12f=await this[_0x3371fa(0x3ae)](_0x44353d,_0x33d988[_0x3371fa(0x2d4)]);this[_0x3371fa(0x541)][_0x3371fa(0x132)](_0x44353d,_0x12d12f);}),this[_0x57e370(0x348)][_0x57e370(0x2f4)](_0x3223aa[_0x57e370(0x4b9)]['UNIVER_DOC'])[_0x57e370(0x493)](_0x41acaa[_0x57e370(0x410)](this[_0x57e370(0x4ef)]),_0xe02055[_0x57e370(0x187)](0x10))[_0x57e370(0x493)](_0xe02055[_0x57e370(0x22a)](_0x1da4db=>!_0x1da4db[_0x57e370(0x27a)]()[_0x57e370(0x139)]('__')))[_0x57e370(0x10e)](async _0x251403=>{const _0x1c9dd1=_0x57e370,_0x3dd56c=_0x251403[_0x1c9dd1(0x27a)](),_0x228f98=await this[_0x1c9dd1(0x3ae)](_0x3dd56c,_0x33d988[_0x1c9dd1(0x1c3)]);this[_0x1c9dd1(0x541)]['set'](_0x3dd56c,_0x228f98);}),_0x41acaa[_0x57e370(0x1ce)](this[_0x57e370(0x348)][_0x57e370(0x215)](_0x3223aa[_0x57e370(0x4b9)][_0x57e370(0x2d4)]),this[_0x57e370(0x348)]['getTypeOfUnitDisposed$'](_0x3223aa[_0x57e370(0x4b9)][_0x57e370(0x1c3)]))[_0x57e370(0x493)](_0x41acaa[_0x57e370(0x410)](this[_0x57e370(0x4ef)]))[_0x57e370(0x10e)](_0x2aba9d=>{const _0x4f509f=_0x57e370,_0x48e578=_0x2aba9d[_0x4f509f(0x27a)](),_0x37995f=this['_entities'][_0x4f509f(0x53b)](_0x48e578);_0x37995f&&(_0x37995f['dispose'](),this[_0x4f509f(0x541)][_0x4f509f(0x4e1)](_0x48e578));});}async[_0x182123(0x3ae)](_0x3dce2e,_0xca6b5a){const _0x1ba124=_0x182123,_0x365f90=await this[_0x1ba124(0x4b8)]['requireSession'](_0x3dce2e),_0x5e182d=this[_0x1ba124(0x526)]['createInstance'](this['_getCtorByUniverType'](_0xca6b5a),_0x3dce2e,_0xca6b5a,_0x365f90);return await _0x5e182d[_0x1ba124(0x3bb)](),this[_0x1ba124(0x316)][_0x1ba124(0x2e5)](_0x5e182d),_0x5e182d;}[_0x182123(0x3fe)](_0x4a707e){const _0x26e8cf=_0x182123;switch(_0x4a707e){case _0x33d988[_0x26e8cf(0x1c3)]:return _0x27845d[_0x26e8cf(0x22e)];case _0x33d988['UNIVER_SHEET']:return _0x27845d[_0x26e8cf(0x1a2)];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x4a707e);}}},_0x27845d['CollaborationController']=_0x584090([_0x1419e4(0x0,_0x3223aa['Inject'](_0x3223aa['Injector'])),_0x1419e4(0x1,_0x3223aa[_0x182123(0x40e)](_0x27845d[_0x182123(0x3c7)])),_0x1419e4(0x2,_0x3223aa[_0x182123(0x247)])],_0x27845d[_0x182123(0x30b)]);const _0x426140=[_0x182123(0x1fe),'jiqing500',_0x182123(0x263),_0x182123(0x346),'blue400',_0x182123(0x3a2)];class _0x38c784 extends _0x3223aa[_0x182123(0x502)]{constructor(){const _0x4172d2=_0x182123;super(...arguments),_0x571923(this,_0x4172d2(0x42d),new Map()),_0x571923(this,_0x4172d2(0x1a6),0x0);}[_0x182123(0x292)](_0x393f2b){const _0x51eb69=_0x182123;if(this['_assignedColors'][_0x51eb69(0x39c)](_0x393f2b))return this['_assignedColors'][_0x51eb69(0x53b)](_0x393f2b);const _0x16ae7d=_0x426140[this[_0x51eb69(0x1a6)]];return this[_0x51eb69(0x1a6)]=(this[_0x51eb69(0x1a6)]+0x1)%_0x426140[_0x51eb69(0x4c3)],this[_0x51eb69(0x42d)]['set'](_0x393f2b,_0x16ae7d),_0x16ae7d;}}var _0x315e40=Object[_0x182123(0x33a)],_0xee615=Object[_0x182123(0x363)],_0x4748e3=(_0x17b4d8,_0x199da5,_0x39ee66,_0x2fdd71)=>{for(var _0x2fe7b1=_0x2fdd71>0x1?void 0x0:_0x2fdd71?_0xee615(_0x199da5,_0x39ee66):_0x199da5,_0x1bf8e5=_0x17b4d8['length']-0x1,_0x7f2182;_0x1bf8e5>=0x0;_0x1bf8e5--)(_0x7f2182=_0x17b4d8[_0x1bf8e5])&&(_0x2fe7b1=(_0x2fdd71?_0x7f2182(_0x199da5,_0x39ee66,_0x2fe7b1):_0x7f2182(_0x2fe7b1))||_0x2fe7b1);return _0x2fdd71&&_0x2fe7b1&&_0x315e40(_0x199da5,_0x39ee66,_0x2fe7b1),_0x2fe7b1;},_0xf5c277=(_0x51a2f9,_0x403cab)=>(_0x1b56e8,_0x509067)=>_0x403cab(_0x1b56e8,_0x509067,_0x51a2f9);const _0x1af703=0x12c,_0x4ff0db=0x64;let _0x4e93fc=class extends _0x3223aa[_0x182123(0x4a9)]{constructor(_0xb51cbb,_0xd04235,_0x4766f5,_0x45b27f,_0xd7ff7a,_0x110e06,_0x3998a7,_0x41c8a5,_0x3bfc97){const _0x2b3c4e=_0x182123;super(),_0x571923(this,_0x2b3c4e(0x1ab),!0x1),_0x571923(this,_0x2b3c4e(0x450),!0x1),_0x571923(this,'_cursorInfo$',new _0x41acaa[(_0x2b3c4e(0x30c))](new Map())),_0x571923(this,'cursorInfo$',this['_cursorInfo$'][_0x2b3c4e(0x28d)]()),_0x571923(this,'_roomMembers$',new _0x41acaa['BehaviorSubject']([])),_0x571923(this,'roomMembers$',this[_0x2b3c4e(0x287)][_0x2b3c4e(0x493)](_0x41acaa[_0x2b3c4e(0x160)](_0x1af703))),_0x571923(this,_0x2b3c4e(0x161),_0x3223aa[_0x2b3c4e(0x180)](_0x5e14ab=>{const _0xa2fb66=_0x2b3c4e,_0x3a883a={'eventID':_0x502235['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0xa2fb66(0x250)],'memberID':this[_0xa2fb66(0x22f)][_0xa2fb66(0x17a)](),'selection':_0x3f97d6(_0x5e14ab)}};this['_session'][_0xa2fb66(0x4a0)](_0x3a883a,this[_0xa2fb66(0x250)]);},_0x4ff0db)),(this[_0x2b3c4e(0x250)]=_0xb51cbb,this[_0x2b3c4e(0x22f)]=_0xd04235,this[_0x2b3c4e(0x526)]=_0x4766f5,this[_0x2b3c4e(0x257)]=_0x45b27f,this['_memberService']=_0xd7ff7a,this['_syncEditingCollabCursorService']=_0x110e06,this[_0x2b3c4e(0x2b5)]=_0x3998a7,this[_0x2b3c4e(0x348)]=_0x41c8a5,this[_0x2b3c4e(0x198)]=_0x3bfc97);}get['cursorInfo'](){const _0x102075=_0x182123;return this[_0x102075(0x33f)]['getValue']();}get[_0x182123(0x11c)](){const _0x3d6845=_0x182123;return this['_roomMembers$'][_0x3d6845(0x191)]();}[_0x182123(0x2cf)](){const _0x1a4054=_0x182123;super[_0x1a4054(0x2cf)](),this[_0x1a4054(0x33f)][_0x1a4054(0x2e5)](new Map()),this['_cursorInfo$'][_0x1a4054(0x4f1)](),this[_0x1a4054(0x287)][_0x1a4054(0x2e5)]([]),this[_0x1a4054(0x287)][_0x1a4054(0x4f1)]();}[_0x182123(0x3bb)](){const _0x3b133f=_0x182123;this[_0x3b133f(0x450)]||(this['_init']=!0x0,this[_0x3b133f(0x22f)][_0x3b133f(0x4d0)][_0x3b133f(0x493)](_0x41acaa[_0x3b133f(0x410)](this[_0x3b133f(0x4ef)]))[_0x3b133f(0x10e)](_0x1ddfc2=>{const _0x38424d=_0x3b133f;_0x1ddfc2===_0x49249e[_0x38424d(0x233)]?this[_0x38424d(0x15d)]():this['_toggleOffline']();}),this[_0x3b133f(0x22f)][_0x3b133f(0x36e)][_0x3b133f(0x493)](_0x41acaa[_0x3b133f(0x410)](this[_0x3b133f(0x4ef)]))[_0x3b133f(0x10e)](_0x542757=>{const _0x5ed2dd=_0x3b133f,_0x548422=_0x542757[_0x5ed2dd(0x138)];_0x548422===_0x502235[_0x5ed2dd(0x2f0)][_0x5ed2dd(0x171)]&&this[_0x5ed2dd(0x368)](_0x542757),_0x548422===_0x502235['CollaborationEvent'][_0x5ed2dd(0x205)]&&this['_onCursorDelete'](_0x542757);}),this[_0x3b133f(0x2c6)](this[_0x3b133f(0x198)][_0x3b133f(0x3cb)](_0x459de0=>{const _0x171cf0=_0x3b133f,_0xa0a259=_0x459de0[_0x171cf0(0x4b1)];_0xa0a259!=null&&this[_0x171cf0(0x1ab)]&&_0x459de0['id']===_0xba5a96[_0x171cf0(0x3bd)]['id']&&_0xa0a259[_0x171cf0(0x504)]===this[_0x171cf0(0x250)]&&_0xa0a259[_0x171cf0(0x2c1)]===!0x1&&_0xa0a259[_0x171cf0(0x4c8)]['length']>0x0&&this[_0x171cf0(0x161)](_0xa0a259[_0x171cf0(0x4c8)]);})),this[_0x3b133f(0x202)]['collabCursorState$'][_0x3b133f(0x493)](_0x41acaa['takeUntil'](this[_0x3b133f(0x4ef)]))['subscribe'](_0x142452=>{const _0x20d944=_0x3b133f;if((_0x142452==null?void 0x0:_0x142452['unitID'])!==this['unitID'])return;const _0x50a6d0={'eventID':_0x502235[_0x20d944(0x2f0)][_0x20d944(0x171)],'data':_0x142452};this['_onCursorUpdate'](_0x50a6d0);}),this[_0x3b133f(0x2c6)](this[_0x3b133f(0x198)][_0x3b133f(0x3cb)](_0x56e278=>{const _0x1f5eab=_0x3b133f;if(_0x56e278['params']==null)return;const _0x164422=_0x56e278['params'];if(_0x56e278['id']!==_0xba5a96[_0x1f5eab(0x2c5)]['id']||_0x164422[_0x1f5eab(0x504)]!==this[_0x1f5eab(0x250)])return;const _0x44311a={'id':'doc.mutation.rich-text-editing','params':_0x164422},_0x26dbaf=this['cursorInfo'];for(const [_0x391961,_0x7339e5]of _0x26dbaf){const _0x469eea={'id':_0x1f5eab(0x459),'params':{'unitId':this[_0x1f5eab(0x250)],'actions':null,'textRanges':_0x7339e5[_0x1f5eab(0x4c8)]}},_0x5da8d1=this[_0x1f5eab(0x2b5)][_0x1f5eab(0x12b)](_0x44311a,_0x469eea,!0x1);if(_0x502235['isTransformMutationFailure'](_0x5da8d1))throw _0x5da8d1[_0x1f5eab(0x1b1)];_0x26dbaf[_0x1f5eab(0x132)](_0x391961,{..._0x7339e5,'ranges':_0x5da8d1['m2Prime']['params'][_0x1f5eab(0x200)]});}queueMicrotask(()=>{const _0x59cafa=_0x1f5eab;this[_0x59cafa(0x33f)][_0x59cafa(0x2e5)](_0x26dbaf);});})));}[_0x182123(0x368)](_0x262623){const _0x672fea=_0x182123;var _0x38c7b8,_0x46ba7e;const {memberID:_0x5704a8,selection:_0x4f8006}=_0x262623[_0x672fea(0x46f)],_0x72f5fc=_0x50953f(_0x4f8006),_0x133f97=(_0x46ba7e=(_0x38c7b8=this['_memberService']['getMember'](this[_0x672fea(0x250)],_0x5704a8))==null?void 0x0:_0x38c7b8[_0x672fea(0x1dc)])!=null?_0x46ba7e:_0x672fea(0x231),_0xc65c70={'color':this[_0x672fea(0x257)]['assignAColorForMemberID'](_0x5704a8),'name':_0x133f97,'ranges':_0x72f5fc},_0x10cf0f=this[_0x672fea(0x1e7)];_0x10cf0f['set'](_0x5704a8,_0xc65c70),this['_cursorInfo$'][_0x672fea(0x2e5)](_0x10cf0f);}[_0x182123(0x1bd)](_0x34b1e5){const _0x30cf43=_0x182123,{memberID:_0x1a37da}=_0x34b1e5['data'],_0x8f5041=this['cursorInfo'];_0x8f5041[_0x30cf43(0x4e1)](_0x1a37da),this[_0x30cf43(0x33f)]['next'](_0x8f5041);}['_toggleOnline'](){const _0x1a5c96=_0x182123;var _0x467ffc;if(this[_0x1a5c96(0x1ab)]=!0x0,((_0x467ffc=this[_0x1a5c96(0x348)]['getFocusedUnit']())==null?void 0x0:_0x467ffc[_0x1a5c96(0x27a)]())!==this[_0x1a5c96(0x250)])return;const _0xa11cb8=this[_0x1a5c96(0x526)][_0x1a5c96(0x53b)](_0xba5a96['DocSelectionManagerService'])[_0x1a5c96(0x16b)]();Array[_0x1a5c96(0x390)](_0xa11cb8)&&_0xa11cb8['length']>0x0&&this[_0x1a5c96(0x161)](_0xa11cb8);}[_0x182123(0x1bb)](){const _0x3729bc=_0x182123;this[_0x3729bc(0x1ab)]=!0x1;}};_0x4e93fc=_0x4748e3([_0xf5c277(0x2,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0xf5c277(0x3,_0x3223aa[_0x182123(0x40e)](_0x38c784)),_0xf5c277(0x4,_0x3223aa['Inject'](_0x842f02)),_0xf5c277(0x5,_0x3223aa[_0x182123(0x40e)](_0x729593)),_0xf5c277(0x6,_0x502235[_0x182123(0x437)]),_0xf5c277(0x7,_0x3223aa['IUniverInstanceService']),_0xf5c277(0x8,_0x3223aa[_0x182123(0x23b)])],_0x4e93fc);var _0xad9777=Object[_0x182123(0x33a)],_0x520d7d=Object['getOwnPropertyDescriptor'],_0x15a9ce=(_0x271bc0,_0x3b49de,_0x222853,_0x3cb137)=>{const _0x41735e=_0x182123;for(var _0x5d9b0d=_0x3cb137>0x1?void 0x0:_0x3cb137?_0x520d7d(_0x3b49de,_0x222853):_0x3b49de,_0x4c8b0a=_0x271bc0[_0x41735e(0x4c3)]-0x1,_0x4a8a13;_0x4c8b0a>=0x0;_0x4c8b0a--)(_0x4a8a13=_0x271bc0[_0x4c8b0a])&&(_0x5d9b0d=(_0x3cb137?_0x4a8a13(_0x3b49de,_0x222853,_0x5d9b0d):_0x4a8a13(_0x5d9b0d))||_0x5d9b0d);return _0x3cb137&&_0x5d9b0d&&_0xad9777(_0x3b49de,_0x222853,_0x5d9b0d),_0x5d9b0d;},_0x145b1e=(_0x5de507,_0x599931)=>(_0x47b05d,_0x5d3e76)=>_0x599931(_0x47b05d,_0x5d3e76,_0x5de507);const _0x4b297d=0x12c,_0x2a13cd=0x64,_0x5e2f8a=()=>{let _0x52a098=[],_0x270d7c=!0x1;return _0x394e0b=>{_0x52a098['push'](_0x394e0b),_0x270d7c||(_0x270d7c=!0x0,setTimeout(()=>{const _0x2ecb27=_0x2e84;_0x52a098[_0x2ecb27(0x19f)](_0x1b7012=>_0x1b7012()),_0x52a098=[],_0x270d7c=!0x1;}));};};let _0x378a71=class extends _0x3223aa[_0x182123(0x4a9)]{constructor(_0x2b0910,_0x2ba034,_0x18fd6d,_0x358aa8,_0x475a7,_0xf96252,_0x192872,_0x18e822){const _0x1f718b=_0x182123;super(),_0x571923(this,_0x1f718b(0x1ab),!0x1),_0x571923(this,_0x1f718b(0x450),!0x1),_0x571923(this,_0x1f718b(0x33f),new _0x41acaa['BehaviorSubject'](new Map())),_0x571923(this,_0x1f718b(0x133),this[_0x1f718b(0x33f)]['asObservable']()),_0x571923(this,_0x1f718b(0x287),new _0x41acaa[(_0x1f718b(0x30c))]([])),_0x571923(this,_0x1f718b(0x374),this[_0x1f718b(0x287)][_0x1f718b(0x493)](_0x41acaa[_0x1f718b(0x160)](_0x4b297d))),_0x571923(this,_0x1f718b(0x161),_0x3223aa[_0x1f718b(0x180)]((_0x11101,_0x1ef7f7)=>{const _0x5b521b=_0x1f718b,_0x2c4362={'eventID':_0x502235[_0x5b521b(0x2f0)][_0x5b521b(0x171)],'data':{'unitID':this[_0x5b521b(0x250)],'memberID':this[_0x5b521b(0x22f)][_0x5b521b(0x17a)](),'selection':_0x5a0816[_0x5b521b(0x3f6)](_0x11101,_0x1ef7f7[_0x5b521b(0x2a1)])}};this[_0x5b521b(0x22f)][_0x5b521b(0x4a0)](_0x2c4362,this[_0x5b521b(0x250)]);},_0x2a13cd)),(this[_0x1f718b(0x250)]=_0x2b0910,this[_0x1f718b(0x22f)]=_0x2ba034,this[_0x1f718b(0x526)]=_0x18fd6d,this[_0x1f718b(0x257)]=_0x358aa8,this['_memberService']=_0x475a7,this[_0x1f718b(0x348)]=_0xf96252,this[_0x1f718b(0x198)]=_0x192872,this[_0x1f718b(0x20b)]=_0x18e822);}get[_0x182123(0x1e7)](){const _0xe9e788=_0x182123;return this[_0xe9e788(0x33f)][_0xe9e788(0x191)]();}get[_0x182123(0x11c)](){const _0x393275=_0x182123;return this['_roomMembers$'][_0x393275(0x191)]();}[_0x182123(0x2cf)](){const _0x2d02a1=_0x182123;super['dispose'](),this[_0x2d02a1(0x33f)][_0x2d02a1(0x2e5)](new Map()),this['_cursorInfo$'][_0x2d02a1(0x4f1)](),this[_0x2d02a1(0x287)][_0x2d02a1(0x2e5)]([]),this[_0x2d02a1(0x287)][_0x2d02a1(0x4f1)]();}[_0x182123(0x3bb)](){const _0x17c340=_0x182123;this['_init']||(this[_0x17c340(0x450)]=!0x0,this[_0x17c340(0x22f)][_0x17c340(0x4d0)][_0x17c340(0x493)](_0x41acaa['takeUntil'](this[_0x17c340(0x4ef)]))['subscribe'](_0x34673d=>{const _0x48d20f=_0x17c340;_0x34673d===_0x49249e[_0x48d20f(0x233)]?this[_0x48d20f(0x15d)]():this[_0x48d20f(0x1bb)]();}),this[_0x17c340(0x22f)]['event$'][_0x17c340(0x493)](_0x41acaa[_0x17c340(0x410)](this[_0x17c340(0x4ef)]))[_0x17c340(0x10e)](_0x57245c=>{const _0x27745=_0x17c340,_0x52c203=_0x57245c[_0x27745(0x138)];_0x52c203===_0x502235[_0x27745(0x2f0)]['UPDATE_CURSOR']&&this[_0x27745(0x368)](_0x57245c),_0x52c203===_0x502235['CollaborationEvent'][_0x27745(0x205)]&&this[_0x27745(0x1bd)](_0x57245c);}),this[_0x17c340(0x238)](),this[_0x17c340(0x2c6)](this[_0x17c340(0x198)][_0x17c340(0x3cb)](_0x5d771c=>{const _0x51b4ac=_0x17c340;if(this[_0x51b4ac(0x1ab)]&&_0x5d771c['id']===_0x4f46f0[_0x51b4ac(0x122)]['id']&&_0x5d771c['params']['unitId']===this[_0x51b4ac(0x250)]){const _0x4e516b=_0x5d771c[_0x51b4ac(0x4b1)];this[_0x51b4ac(0x161)](_0x4e516b[_0x51b4ac(0x382)],_0x4e516b[_0x51b4ac(0x31a)][0x0]);}})));}[_0x182123(0x368)](_0x4f6b7c){const _0x3d6caa=_0x182123;var _0x120e37,_0x283a45;const {memberID:_0x2da24e,selection:_0x590101}=_0x4f6b7c['data'],{sheetName:_0x6dfd26,range:_0x568e1e}=_0x5a0816[_0x3d6caa(0x33c)](_0x590101),_0x55ca1e={'name':(_0x283a45=(_0x120e37=this['_memberService'][_0x3d6caa(0x23d)](this[_0x3d6caa(0x250)],_0x2da24e))==null?void 0x0:_0x120e37[_0x3d6caa(0x1dc)])!=null?_0x283a45:'Unknown\x20user','range':this[_0x3d6caa(0x3bc)](_0x6dfd26,_0x568e1e),'sheetID':_0x6dfd26,'color':this[_0x3d6caa(0x257)][_0x3d6caa(0x292)](_0x2da24e),'selection':_0x590101},_0x1cbe6d=this[_0x3d6caa(0x1e7)];_0x1cbe6d[_0x3d6caa(0x132)](_0x2da24e,_0x55ca1e),this[_0x3d6caa(0x33f)]['next'](_0x1cbe6d);}[_0x182123(0x1bd)](_0x1108ad){const _0x35e677=_0x182123,{memberID:_0x2e5deb}=_0x1108ad[_0x35e677(0x46f)],_0x1725a3=this['cursorInfo'];_0x1725a3[_0x35e677(0x4e1)](_0x2e5deb),this[_0x35e677(0x33f)][_0x35e677(0x2e5)](_0x1725a3);}[_0x182123(0x3bc)](_0x477f62,_0x3975e6){const _0x540dd4=_0x182123;var _0x58b570,_0x507874;const _0x1ea4b6=(_0x507874=(_0x58b570=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x540dd4(0x250)]))==null?void 0x0:_0x58b570['getSheetBySheetId'](_0x477f62))==null?void 0x0:_0x507874[_0x540dd4(0x2a9)]();return(_0x1ea4b6==null?void 0x0:_0x1ea4b6[_0x540dd4(0x2c9)](_0x36aa89=>_0x3223aa[_0x540dd4(0x1a0)]['contains'](_0x36aa89,_0x3975e6)))||_0x3975e6;}[_0x182123(0x238)](){const _0x51d79b=_0x182123,_0x3741f5=new _0x3223aa[(_0x51d79b(0x2d7))](),_0x165289=_0x5e2f8a(),_0x2aadc3=()=>{const _0x4adb5d=_0x51d79b;_0x3741f5[_0x4adb5d(0x2cf)]();const _0x11ec76=(_0x5d8172,_0x466a3b,_0x552f9b,_0x2d4715)=>{const _0x807d71=_0x4adb5d;let _0x4911f1=[];switch(_0x5d8172['id']){case _0x4f46f0[_0x807d71(0x42e)][_0x807d71(0x228)]:{_0x4911f1=_0x4f46f0[_0x807d71(0x338)](_0x5d8172,_0x2d4715);break;}case _0x4f46f0[_0x807d71(0x42e)][_0x807d71(0x4be)]:{_0x4911f1=_0x4f46f0[_0x807d71(0x350)](_0x5d8172,_0x2d4715);break;}case _0x4f46f0['EffectRefRangId'][_0x807d71(0x2de)]:{_0x4911f1=_0x4f46f0[_0x807d71(0x32f)](_0x5d8172,_0x2d4715);break;}case _0x4f46f0[_0x807d71(0x42e)][_0x807d71(0x324)]:{_0x4911f1=_0x4f46f0[_0x807d71(0x4c1)](_0x5d8172,_0x2d4715);break;}case _0x4f46f0[_0x807d71(0x42e)][_0x807d71(0x4f2)]:{_0x4911f1=_0x4f46f0[_0x807d71(0x3ba)](_0x5d8172,_0x2d4715);break;}case _0x4f46f0[_0x807d71(0x42e)]['InsertRowCommandId']:{_0x4911f1=_0x4f46f0[_0x807d71(0x254)](_0x5d8172,_0x2d4715);break;}case _0x4f46f0['EffectRefRangId'][_0x807d71(0x216)]:{_0x4911f1=_0x4f46f0['handleMoveRange'](_0x5d8172,_0x2d4715);break;}case _0x4f46f0[_0x807d71(0x42e)]['RemoveColCommandId']:{_0x4911f1=_0x4f46f0[_0x807d71(0x129)](_0x5d8172,_0x2d4715);break;}case _0x4f46f0['EffectRefRangId'][_0x807d71(0x3b1)]:{_0x4911f1=_0x4f46f0[_0x807d71(0x194)](_0x5d8172,_0x2d4715);break;}}const _0x1916b4=_0x4f46f0[_0x807d71(0x4a5)](_0x4911f1,_0x2d4715),_0x5e09ac=this[_0x807d71(0x1e7)][_0x807d71(0x53b)](_0x466a3b);if(_0x5e09ac&&_0x1916b4){const _0x943404={..._0x5e09ac,'range':_0x1916b4};this[_0x807d71(0x1e7)]['set'](_0x466a3b,_0x943404),_0x165289(()=>{const _0xb4c76c=_0x807d71,_0x2807dd=this[_0xb4c76c(0x20b)]['registerRefRange'](_0x1916b4,_0x465353=>(_0x2807dd[_0xb4c76c(0x2cf)](),_0x11ec76(_0x465353,_0x466a3b,_0x552f9b,_0x1916b4)));_0x3741f5['add'](_0x2807dd);});}return{'redos':[],'undos':[]};};this[_0x4adb5d(0x1e7)][_0x4adb5d(0x19f)]((_0x14237c,_0x12ca51)=>{const _0x1121dc=_0x4adb5d,{range:_0x5a787d,sheetID:_0x64d227}=_0x14237c,_0x38eeaf=this[_0x1121dc(0x20b)][_0x1121dc(0x479)](_0x5a787d,_0x17792b=>(_0x38eeaf[_0x1121dc(0x2cf)](),_0x11ec76(_0x17792b,_0x12ca51,_0x64d227,_0x5a787d)));_0x3741f5[_0x1121dc(0x460)](_0x38eeaf);});};this[_0x51d79b(0x2c6)](_0x3223aa[_0x51d79b(0x1ed)](this[_0x51d79b(0x33f)][_0x51d79b(0x10e)](()=>{_0x2aadc3();})));}[_0x182123(0x15d)](){const _0x3012c7=_0x182123;var _0x3ab972,_0x51a1be;if(this[_0x3012c7(0x1ab)]=!0x0,((_0x3ab972=this[_0x3012c7(0x348)][_0x3012c7(0x3eb)]())==null?void 0x0:_0x3ab972[_0x3012c7(0x27a)]())!==this[_0x3012c7(0x250)])return;const _0x99770f=(_0x51a1be=this[_0x3012c7(0x526)]['get'](_0x4f46f0['SheetsSelectionsService'])[_0x3012c7(0x110)]())==null?void 0x0:_0x51a1be[0x0],_0x2b404e=this['_univerInstanceService'][_0x3012c7(0x3d6)](_0x3223aa[_0x3012c7(0x4b9)]['UNIVER_SHEET'])[_0x3012c7(0x546)]();_0x99770f&&_0x2b404e&&this[_0x3012c7(0x161)](_0x2b404e[_0x3012c7(0x1a4)](),_0x99770f);}[_0x182123(0x1bb)](){const _0x1295e0=_0x182123;this[_0x1295e0(0x1ab)]=!0x1;}};_0x378a71=_0x15a9ce([_0x145b1e(0x2,_0x3223aa[_0x182123(0x40e)](_0x3223aa['Injector'])),_0x145b1e(0x3,_0x3223aa[_0x182123(0x40e)](_0x38c784)),_0x145b1e(0x4,_0x3223aa[_0x182123(0x40e)](_0x842f02)),_0x145b1e(0x5,_0x3223aa['IUniverInstanceService']),_0x145b1e(0x6,_0x3223aa[_0x182123(0x23b)]),_0x145b1e(0x7,_0x3223aa[_0x182123(0x40e)](_0x4f46f0[_0x182123(0x29c)]))],_0x378a71);var _0x587293=Object['defineProperty'],_0x4be11b=Object[_0x182123(0x363)],_0x30b390=(_0x1accd9,_0x3705a8,_0x39ce4f,_0x26914b)=>{const _0x155fc7=_0x182123;for(var _0x19c4da=_0x26914b>0x1?void 0x0:_0x26914b?_0x4be11b(_0x3705a8,_0x39ce4f):_0x3705a8,_0x1ade64=_0x1accd9[_0x155fc7(0x4c3)]-0x1,_0x64e1ab;_0x1ade64>=0x0;_0x1ade64--)(_0x64e1ab=_0x1accd9[_0x1ade64])&&(_0x19c4da=(_0x26914b?_0x64e1ab(_0x3705a8,_0x39ce4f,_0x19c4da):_0x64e1ab(_0x19c4da))||_0x19c4da);return _0x26914b&&_0x19c4da&&_0x587293(_0x3705a8,_0x39ce4f,_0x19c4da),_0x19c4da;},_0x4c4519=(_0x41907f,_0x597690)=>(_0x1d0c88,_0x31ae47)=>_0x597690(_0x1d0c88,_0x31ae47,_0x41907f);let _0x5a312c=class extends _0x3223aa[_0x182123(0x4a9)]{constructor(_0x350f2e,_0x3a460e,_0x2428a7){const _0x4c1a1e=_0x182123;super(),_0x571923(this,_0x4c1a1e(0x541),new Map()),_0x571923(this,_0x4c1a1e(0x316),new _0x41acaa[(_0x4c1a1e(0x378))]()),(this[_0x4c1a1e(0x348)]=_0x350f2e,this['_injector']=_0x3a460e,this[_0x4c1a1e(0x4b8)]=_0x2428a7,this[_0x4c1a1e(0x450)]());}[_0x182123(0x2cf)](){const _0x4f1b2e=_0x182123;super[_0x4f1b2e(0x2cf)](),this[_0x4f1b2e(0x316)][_0x4f1b2e(0x4f1)](),this[_0x4f1b2e(0x541)][_0x4f1b2e(0x19f)](_0x3abba0=>_0x3abba0[_0x4f1b2e(0x2cf)]());}['getCollabCursors$'](_0x303103){const _0x2c91f1=_0x182123;return this[_0x2c91f1(0x541)][_0x2c91f1(0x39c)](_0x303103)?this[_0x2c91f1(0x541)][_0x2c91f1(0x53b)](_0x303103)[_0x2c91f1(0x133)]:this[_0x2c91f1(0x316)][_0x2c91f1(0x493)](_0x41acaa['filter'](_0x5182ae=>_0x5182ae[_0x2c91f1(0x250)]===_0x303103),_0x41acaa[_0x2c91f1(0x296)](_0x5a144c=>_0x5a144c[_0x2c91f1(0x133)]));}[_0x182123(0x450)](){const _0x5a4cf6=_0x182123;this[_0x5a4cf6(0x348)]['getTypeOfUnitAdded$'](_0x3223aa[_0x5a4cf6(0x4b9)][_0x5a4cf6(0x2d4)])[_0x5a4cf6(0x493)](_0x41acaa[_0x5a4cf6(0x410)](this['dispose$']))['subscribe'](async _0x46718c=>{const _0x44837b=_0x5a4cf6,_0x583e4e=_0x46718c['getUnitId'](),_0x492b89=await this['_startSheetCollabCursor'](_0x583e4e);this[_0x44837b(0x316)][_0x44837b(0x2e5)](_0x492b89),this[_0x44837b(0x541)][_0x44837b(0x132)](_0x583e4e,_0x492b89);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x3223aa[_0x5a4cf6(0x4b9)][_0x5a4cf6(0x1c3)])[_0x5a4cf6(0x493)](_0x41acaa[_0x5a4cf6(0x410)](this['dispose$']))['pipe'](_0x41acaa[_0x5a4cf6(0x22a)](_0x532e8a=>!_0x532e8a['getUnitId']()[_0x5a4cf6(0x139)]('__')))['subscribe'](async _0xcd13d6=>{const _0x3d06f8=_0x5a4cf6,_0xc90c29=_0xcd13d6[_0x3d06f8(0x27a)](),_0x3f01db=await this[_0x3d06f8(0x2f1)](_0xc90c29);this['_entityInit$'][_0x3d06f8(0x2e5)](_0x3f01db),this[_0x3d06f8(0x541)][_0x3d06f8(0x132)](_0xc90c29,_0x3f01db);}),_0x41acaa['merge'](this[_0x5a4cf6(0x348)]['getTypeOfUnitDisposed$'](_0x3223aa[_0x5a4cf6(0x4b9)][_0x5a4cf6(0x1c3)]),this['_univerInstanceService'][_0x5a4cf6(0x215)](_0x3223aa['UniverInstanceType']['UNIVER_SHEET']))['pipe'](_0x41acaa[_0x5a4cf6(0x410)](this[_0x5a4cf6(0x4ef)]))[_0x5a4cf6(0x10e)](_0x5cc57a=>{const _0x49dbd0=_0x5a4cf6,_0x2e4934=_0x5cc57a[_0x49dbd0(0x27a)](),_0x1564a5=this['_entities'][_0x49dbd0(0x53b)](_0x2e4934);_0x1564a5&&(_0x1564a5[_0x49dbd0(0x2cf)](),this[_0x49dbd0(0x541)][_0x49dbd0(0x4e1)](_0x2e4934));});}async[_0x182123(0x34e)](_0x11c167){const _0x3e8ce1=_0x182123,_0x2f2bd3=await this[_0x3e8ce1(0x4b8)][_0x3e8ce1(0x31f)](_0x11c167),_0xdcb088=this[_0x3e8ce1(0x526)][_0x3e8ce1(0x336)](_0x378a71,_0x11c167,_0x2f2bd3);return _0xdcb088[_0x3e8ce1(0x3bb)](),_0xdcb088;}async[_0x182123(0x2f1)](_0xe36000){const _0x4215e7=_0x182123,_0x242304=await this['_collabSessionService'][_0x4215e7(0x31f)](_0xe36000),_0x1b28fb=this[_0x4215e7(0x526)][_0x4215e7(0x336)](_0x4e93fc,_0xe36000,_0x242304);return _0x1b28fb[_0x4215e7(0x3bb)](),_0x1b28fb;}};_0x5a312c=_0x30b390([_0x4c4519(0x0,_0x3223aa['IUniverInstanceService']),_0x4c4519(0x1,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x4c4519(0x2,_0x3223aa[_0x182123(0x40e)](_0x27845d[_0x182123(0x3c7)]))],_0x5a312c);const _0x1644b8=0x14,_0x472a36=0xc8,_0x2e9517=0x4,_0x2ac4a0=0x5;function _0x48b699(_0x28ec5,_0x2f5cec){const _0x29dab7=_0x182123;let {radius:_0x82ad77,width:_0x1d2c6c,height:_0x1b1309}=_0x2f5cec;_0x82ad77=_0x82ad77!=null?_0x82ad77:0x0,_0x1d2c6c=_0x1d2c6c!=null?_0x1d2c6c:0x1e,_0x1b1309=_0x1b1309!=null?_0x1b1309:0x1e;let _0x7f1c3a=0x0,_0x166fec=0x0,_0xc305d6=0x0;_0x7f1c3a=_0x166fec=_0xc305d6=Math[_0x29dab7(0x4f4)](_0x82ad77,_0x1d2c6c/0x2,_0x1b1309/0x2),_0x28ec5[_0x29dab7(0x142)](),_0x28ec5[_0x29dab7(0x4e6)](_0x7f1c3a,0x0),_0x28ec5['lineTo'](_0x1d2c6c-_0x166fec,0x0),_0x28ec5[_0x29dab7(0x3f1)](_0x1d2c6c-_0x166fec,_0x166fec,_0x166fec,Math['PI']*0x3/0x2,0x0,!0x1),_0x28ec5['lineTo'](_0x1d2c6c,_0x1b1309-_0xc305d6),_0x28ec5['arc'](_0x1d2c6c-_0xc305d6,_0x1b1309-_0xc305d6,_0xc305d6,0x0,Math['PI']/0x2,!0x1),_0x28ec5[_0x29dab7(0x15f)](0x0,_0x1b1309),_0x28ec5[_0x29dab7(0x15f)](0x0,_0x7f1c3a),_0x28ec5[_0x29dab7(0x3f1)](_0x7f1c3a,_0x7f1c3a,_0x7f1c3a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x28ec5['closePath'](),_0x2f5cec[_0x29dab7(0x273)]&&(_0x28ec5['save'](),_0x28ec5[_0x29dab7(0x4d6)]=_0x2f5cec[_0x29dab7(0x273)],_0x2f5cec['fillRule']===_0x29dab7(0x445)?_0x28ec5['fill'](_0x29dab7(0x445)):_0x28ec5[_0x29dab7(0x273)](),_0x28ec5['restore']());}class _0x2638fd extends _0x20af9e[_0x182123(0x18b)]{constructor(_0x303f77,_0x501ead){const _0x19930f=_0x182123;super(_0x303f77,_0x501ead),_0x571923(this,_0x19930f(0x4aa)),_0x571923(this,_0x19930f(0x23e)),(this[_0x19930f(0x4aa)]=_0x501ead==null?void 0x0:_0x501ead['color'],this[_0x19930f(0x23e)]=_0x501ead==null?void 0x0:_0x501ead[_0x19930f(0x23e)]);}static[_0x182123(0x2eb)](_0x55bd6a,_0x1fa3bd){const _0x3e40b6=_0x182123,{text:_0x5c8f65,color:_0x4beb27}=_0x1fa3bd;_0x55bd6a['save'](),_0x55bd6a[_0x3e40b6(0x240)]=_0x3e40b6(0x308);const _0x1167ae=_0x55bd6a[_0x3e40b6(0x151)](_0x5c8f65)['width'],_0x9851f6=Math[_0x3e40b6(0x4f4)](_0x1167ae+0x2*_0x2e9517,_0x472a36);_0x48b699(_0x55bd6a,{'height':_0x1644b8,'radius':0x4,'width':_0x9851f6,'fill':_0x4beb27,'evented':!0x1}),_0x55bd6a[_0x3e40b6(0x4d6)]=_0x3e40b6(0x193);const _0x208609=_0x2e9517,_0x237b77=_0x1644b8-_0x2ac4a0,_0x4d7545=_0x472a36-0x2*_0x2e9517;if(_0x1167ae>_0x4d7545){let _0x2a649a='',_0x38f233=0x0;for(const _0x5b9567 of _0x5c8f65){const _0x52fbeb=_0x55bd6a[_0x3e40b6(0x151)](_0x5b9567)[_0x3e40b6(0x4cb)];if(_0x38f233+_0x52fbeb<=_0x4d7545-_0x55bd6a[_0x3e40b6(0x151)](_0x3e40b6(0x3c0))[_0x3e40b6(0x4cb)])_0x2a649a+=_0x5b9567,_0x38f233+=_0x52fbeb;else{_0x2a649a+=_0x3e40b6(0x3c0);break;}}_0x55bd6a['fillText'](_0x2a649a,_0x208609,_0x237b77);}else _0x55bd6a[_0x3e40b6(0x13d)](_0x5c8f65,_0x208609,_0x237b77);_0x55bd6a[_0x3e40b6(0x3f3)]();}['_draw'](_0x49c5ab){const _0x5d07af=_0x182123;_0x2638fd[_0x5d07af(0x2eb)](_0x49c5ab,this);}}const _0xa09b78=_0x182123(0x503),_0x220923=_0x182123(0x30a),_0x49d278='collab-rect-range-',_0x4f5268=0x6,_0x10763e=1.5,_0x123d39=0x4,_0x24f666=1.5,_0xf41ed5=_0x182123(0x4a4);class _0x82fb2b{constructor(_0x372eb6,_0x2fd342,_0x567f34,_0x59957d){const _0x44fc16=_0x182123;_0x571923(this,'_shapes',[]),_0x571923(this,_0x44fc16(0x26b),null),_0x571923(this,_0x44fc16(0x36f),null),_0x571923(this,_0x44fc16(0x497),null),_0x571923(this,_0x44fc16(0x3b0),null),_0x571923(this,_0x44fc16(0x38a),null),(this[_0x44fc16(0x430)]=_0x372eb6,this[_0x44fc16(0x29a)]=_0x2fd342,this[_0x44fc16(0x249)]=_0x567f34,this['_document']=_0x59957d,this[_0x44fc16(0x2fa)]());}set[_0x182123(0x4a6)](_0x58270d){const _0x259058=_0x182123;_0x58270d?(this[_0x259058(0x497)]&&this[_0x259058(0x497)][_0x259058(0x1cf)](),this[_0x259058(0x36f)]&&this[_0x259058(0x36f)][_0x259058(0x2a4)]()):(this[_0x259058(0x497)]&&this['_anchorDot'][_0x259058(0x2a4)](),this[_0x259058(0x36f)]&&this[_0x259058(0x36f)]['hide']());}[_0x182123(0x2cf)](){const _0x5e5c89=_0x182123;for(const _0x1fe124 of this[_0x5e5c89(0x1ba)])_0x1fe124[_0x5e5c89(0x2cf)]();this[_0x5e5c89(0x36f)]&&this[_0x5e5c89(0x36f)][_0x5e5c89(0x2cf)](),this[_0x5e5c89(0x497)]&&this[_0x5e5c89(0x497)][_0x5e5c89(0x2cf)](),this[_0x5e5c89(0x26b)]&&this[_0x5e5c89(0x26b)][_0x5e5c89(0x2cf)](),this['_eventUnsubscribe']&&this[_0x5e5c89(0x38a)]();}[_0x182123(0x2fa)](){const _0x3ef61b=_0x182123;var _0x3a90df;const {_docSkeleton:_0x2c47d6,_document:_0x210154}=this,{color:_0x17348d,name:_0x291dc8,ranges:_0x36fc57}=this[_0x3ef61b(0x430)],_0x232cb1=_0x210154[_0x3ef61b(0x1b5)](),{docsLeft:_0x47f80d,docsTop:_0x103ea8}=_0x232cb1,_0x214d87=new _0x143e31[(_0x3ef61b(0x441))](_0x232cb1,_0x2c47d6);for(const {startOffset:_0xa002ac,endOffset:_0x40afcd,rangeType:_0x28a145,segmentId:_0x5b504b,segmentPage:_0x4c92e6,collapsed:_0x1b0590,isActive:_0x545754}of _0x36fc57){const _0x4a65e2=_0x2c47d6[_0x3ef61b(0x3fb)](_0xa002ac,!0x0,_0x5b504b,_0x4c92e6);let _0x311b7d=_0x2c47d6['findNodePositionByCharIndex'](_0x40afcd,!0x0,_0x5b504b,_0x4c92e6);if(_0x311b7d==null&&(_0x311b7d=_0x2c47d6['findNodePositionByCharIndex'](_0x40afcd-0x1,!0x1,_0x5b504b,_0x4c92e6)),_0x545754){const {contentBoxPointGroup:_0x3b052f}=_0x214d87[_0x3ef61b(0x1b4)](_0x311b7d,_0x311b7d);if(_0x3b052f['length']===0x0)continue;this[_0x3ef61b(0x179)](_0x17348d,_0x3b052f,_0x47f80d,_0x103ea8,_0x291dc8),this[_0x3ef61b(0x38a)]=this[_0x3ef61b(0x305)]();}if(!_0x1b0590&&_0x4a65e2&&_0x311b7d){if(_0x28a145===_0x3223aa[_0x3ef61b(0x118)][_0x3ef61b(0x1e5)]){const _0x3592e8=new _0x143e31[(_0x3ef61b(0x25d))](_0x232cb1,_0x2c47d6),{pointGroup:_0x374777}=(_0x3a90df=_0x3592e8[_0x3ef61b(0x1b4)](_0x4a65e2,_0x311b7d))!=null?_0x3a90df:{};if(_0x374777==null||_0x374777[_0x3ef61b(0x4c3)]===0x0)continue;this[_0x3ef61b(0x307)](_0x17348d,_0x374777,_0x47f80d,_0x103ea8);}else{const {borderBoxPointGroup:_0x4fa6f7}=_0x214d87[_0x3ef61b(0x1b4)](_0x4a65e2,_0x311b7d);if(_0x4fa6f7[_0x3ef61b(0x4c3)]===0x0)continue;this[_0x3ef61b(0x449)](_0x17348d,_0x4fa6f7,_0x47f80d,_0x103ea8);}}}}[_0x182123(0x179)](_0x4d3cfe,_0xad873a,_0x26d6d4,_0x292911,_0x4103c8){const _0x4eb7b3=_0x182123,_0x4be662=this[_0x4eb7b3(0x474)](_0xad873a),{left:_0x44aedd,top:_0x31fa54,height:_0x20308e}=_0x4be662,_0x28ff83=this[_0x4eb7b3(0x24c)](),_0x25f333=_0x24f666/_0x28ff83,_0x308a24=new _0x20af9e[(_0x4eb7b3(0x302))](_0xa09b78+_0x3223aa[_0x4eb7b3(0x357)][_0x4eb7b3(0x492)](_0x4f5268),{'left':_0x44aedd+_0x26d6d4-_0x25f333,'top':_0x31fa54+_0x292911,'height':_0x20308e,'width':_0x10763e,'fill':_0x4d3cfe||_0x20af9e['getColor'](_0x3223aa[_0x4eb7b3(0x543)]['black'],0x0),'strokeWidth':_0x25f333,'stroke':_0xf41ed5,'evented':!0x0});this[_0x4eb7b3(0x26b)]=_0x308a24,this['_scene']['addObject'](_0x308a24,_0x143e31[_0x4eb7b3(0x163)]);const _0x5709f3=new _0x20af9e[(_0x4eb7b3(0x302))](_0xa09b78+_0x3223aa['Tools'][_0x4eb7b3(0x492)](_0x4f5268),{'left':_0x44aedd+_0x26d6d4-_0x25f333,'top':_0x31fa54+_0x292911-_0x123d39/0x2,'height':_0x123d39,'width':_0x123d39,'fill':_0x4d3cfe||_0x20af9e['getColor'](_0x3223aa[_0x4eb7b3(0x543)][_0x4eb7b3(0x3e3)],0x0),'strokeWidth':0x0,'stroke':_0x4d3cfe||_0x20af9e['getColor'](_0x3223aa[_0x4eb7b3(0x543)]['black'],0x0),'evented':!0x1});this[_0x4eb7b3(0x497)]=_0x5709f3,this[_0x4eb7b3(0x29a)][_0x4eb7b3(0x208)](_0x5709f3,_0x143e31[_0x4eb7b3(0x163)]);const _0x376baa=new _0x2638fd(_0xa09b78+_0x3223aa[_0x4eb7b3(0x357)][_0x4eb7b3(0x492)](_0x4f5268),{'left':_0x44aedd+_0x26d6d4-_0x25f333,'top':_0x31fa54+_0x292911-_0x1644b8,'text':_0x4103c8,'color':_0x4d3cfe});this[_0x4eb7b3(0x36f)]=_0x376baa,this[_0x4eb7b3(0x29a)][_0x4eb7b3(0x208)](_0x376baa,_0x143e31[_0x4eb7b3(0x163)]),this['_hover']=!0x1;}[_0x182123(0x305)](){const _0x1f52c9=_0x182123,_0xbbf8cd=this[_0x1f52c9(0x26b)]['onPointerEnter$'][_0x1f52c9(0x2ec)](()=>{const _0x4dd646=_0x1f52c9;this[_0x4dd646(0x4a6)]=!0x0;}),_0x2b8845=this[_0x1f52c9(0x26b)]['onPointerLeave$'][_0x1f52c9(0x2ec)](()=>{const _0x42fa24=_0x1f52c9;this[_0x42fa24(0x3b0)]&&clearTimeout(this[_0x42fa24(0x3b0)]),this[_0x42fa24(0x3b0)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x7828d=_0x1f52c9;_0xbbf8cd[_0x7828d(0x2d6)](),_0x2b8845[_0x7828d(0x2d6)]();};}[_0x182123(0x449)](_0x5cbadb,_0x1cf17b,_0x2d24c0,_0x15c85a){const _0x1b8406=_0x182123,_0xb1cd14=new _0x3223aa['ColorKit'](_0x5cbadb)['setAlpha'](0.2)[_0x1b8406(0x377)](),_0x30430d=new _0x20af9e[(_0x1b8406(0x125))](_0x220923+_0x3223aa[_0x1b8406(0x357)][_0x1b8406(0x492)](_0x4f5268),{'pointsGroup':_0x1cf17b,'fill':_0xb1cd14||_0x20af9e[_0x1b8406(0x1e0)](_0x3223aa['COLORS'][_0x1b8406(0x3e3)],0.2),'left':_0x2d24c0,'top':_0x15c85a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1b8406(0x1ba)][_0x1b8406(0x2fb)](_0x30430d),this['_scene'][_0x1b8406(0x208)](_0x30430d,_0x143e31[_0x1b8406(0x163)]);}[_0x182123(0x307)](_0x1c5db9,_0x1a7d42,_0x8662d0,_0x42d2f7){const _0x36057f=_0x182123,_0x5f2a90=new _0x3223aa['ColorKit'](_0x1c5db9)[_0x36057f(0x2b8)](0.2)[_0x36057f(0x377)](),_0x4235e1=new _0x20af9e[(_0x36057f(0x125))](_0x49d278+_0x3223aa[_0x36057f(0x357)][_0x36057f(0x492)](_0x4f5268),{'pointsGroup':_0x1a7d42,'fill':_0x5f2a90||_0x20af9e[_0x36057f(0x1e0)](_0x3223aa[_0x36057f(0x543)][_0x36057f(0x3e3)],0.2),'left':_0x8662d0,'top':_0x42d2f7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x36057f(0x1ba)][_0x36057f(0x2fb)](_0x4235e1),this[_0x36057f(0x29a)][_0x36057f(0x208)](_0x4235e1,_0x143e31['TEXT_RANGE_LAYER_INDEX']);}[_0x182123(0x474)](_0x27cb15){const _0x330101=_0x27cb15[0x0],_0x163397=_0x330101[0x0],_0x1ea400=_0x330101[0x2],{x:_0xb97791,y:_0x408187}=_0x163397,{x:_0x25396f,y:_0x464530}=_0x1ea400;return{'left':_0xb97791,'top':_0x408187,'width':_0x25396f-_0xb97791,'height':_0x464530-_0x408187};}[_0x182123(0x24c)](){const _0x1abd44=_0x182123,{scaleX:_0x1444d5,scaleY:_0x2945f1}=this['_scene'][_0x1abd44(0x327)]();return Math[_0x1abd44(0x204)](_0x1444d5,_0x2945f1);}}var _0x12dd7a=Object[_0x182123(0x33a)],_0x1505d8=Object[_0x182123(0x363)],_0x523706=(_0x161bfa,_0x4e03cb,_0x366f8a,_0x458edd)=>{const _0x364a46=_0x182123;for(var _0x4f5a18=_0x458edd>0x1?void 0x0:_0x458edd?_0x1505d8(_0x4e03cb,_0x366f8a):_0x4e03cb,_0x523a29=_0x161bfa[_0x364a46(0x4c3)]-0x1,_0x85f9be;_0x523a29>=0x0;_0x523a29--)(_0x85f9be=_0x161bfa[_0x523a29])&&(_0x4f5a18=(_0x458edd?_0x85f9be(_0x4e03cb,_0x366f8a,_0x4f5a18):_0x85f9be(_0x4f5a18))||_0x4f5a18);return _0x458edd&&_0x4f5a18&&_0x12dd7a(_0x4e03cb,_0x366f8a,_0x4f5a18),_0x4f5a18;},_0x478a1f=(_0x44c410,_0x12c21d)=>(_0x22d14b,_0x29dbdd)=>_0x12c21d(_0x22d14b,_0x29dbdd,_0x44c410);let _0x505fb8=class extends _0x3223aa[_0x182123(0x4a9)]{constructor(_0x42cd0e,_0x473d49,_0x2c4641,_0x3e4e1f,_0x1a2f96){const _0x3fca12=_0x182123;super(),_0x571923(this,_0x3fca12(0x2e8),[]),_0x571923(this,'_cursors',[]),(this[_0x3fca12(0x134)]=_0x42cd0e,this['_docSkeletonManagerService']=_0x473d49,this[_0x3fca12(0x3b9)]=_0x2c4641,this[_0x3fca12(0x198)]=_0x3e4e1f,this[_0x3fca12(0x26a)]=_0x1a2f96,this[_0x3fca12(0x450)]());}[_0x182123(0x450)](){const _0xdde325=_0x182123,_0x9b7358=this[_0xdde325(0x134)]['unitId'],_0x3e33e6=this['_docSkeletonManagerService'];this['disposeWithMe'](_0x41acaa[_0xdde325(0x4d4)]([this[_0xdde325(0x3b9)][_0xdde325(0x2c3)](_0x9b7358),this[_0xdde325(0x26a)]['currentTheme$']])[_0xdde325(0x493)](_0xe02055[_0xdde325(0x486)](([_0x1da1a8,_0x654228])=>({'skeleton':_0x3e33e6[_0xdde325(0x128)](),'cursors':[..._0x1da1a8[_0xdde325(0x211)]()]['flatMap'](_0x47e88b=>({..._0x47e88b,'color':_0x654228[_0x47e88b[_0xdde325(0x4aa)]]}))})))[_0xdde325(0x10e)](_0x4576db=>{if(this['_removeCollabCursors'](),_0x4576db){const {skeleton:_0x104f99,cursors:_0x12a104}=_0x4576db;this['_updateCollabCursors'](_0x104f99,_0x12a104);}})),this[_0xdde325(0x2af)](),this[_0xdde325(0x3f9)]();}[_0x182123(0x518)](_0x3ccdbf,_0x3ff0d9){const _0x3a4321=_0x182123,{scene:_0x64c329,mainComponent:_0x491fbb}=this[_0x3a4321(0x134)],_0x174d39=_0x3ff0d9['map'](_0x806bd9=>new _0x82fb2b(_0x806bd9,_0x64c329,_0x3ccdbf,_0x491fbb));this['_cursorShapes']=_0x174d39,this[_0x3a4321(0x405)]=_0x3ff0d9;}[_0x182123(0x2e3)](){const _0x3b6bc7=_0x182123;this[_0x3b6bc7(0x425)]();const {scene:_0x3f12e5,mainComponent:_0x127d55}=this['_context'],_0x411963=this[_0x3b6bc7(0x16e)]['getSkeleton'](),_0x98370c=this[_0x3b6bc7(0x405)][_0x3b6bc7(0x486)](_0x231db1=>new _0x82fb2b(_0x231db1,_0x3f12e5,_0x411963,_0x127d55));this[_0x3b6bc7(0x2e8)]=_0x98370c;}[_0x182123(0x425)](){const _0x599c0a=_0x182123;this['_cursorShapes'][_0x599c0a(0x19f)](_0xafeb8f=>_0xafeb8f[_0x599c0a(0x2cf)]()),this[_0x599c0a(0x2e8)]=[];}[_0x182123(0x3f9)](){const _0x20e4fb=_0x182123,_0x489f9e=[_0x143e31['SetDocZoomRatioOperation']['id']];this[_0x20e4fb(0x2c6)](this[_0x20e4fb(0x198)][_0x20e4fb(0x3cb)](_0x5180be=>{const _0x296c8b=_0x20e4fb;_0x489f9e['includes'](_0x5180be['id'])&&_0x5180be[_0x296c8b(0x4b1)][_0x296c8b(0x504)]===this[_0x296c8b(0x134)]['unitId']&&this[_0x296c8b(0x2e3)]();}));}[_0x182123(0x2af)](){const _0x163737=_0x182123;this[_0x163737(0x2c6)](_0x3223aa['fromEventSubject'](this[_0x163737(0x134)][_0x163737(0x219)]['onTransformChange$'])['pipe'](_0xe02055[_0x163737(0x22a)](_0x161852=>_0x161852[_0x163737(0x45b)]===_0x20af9e['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x163737(0x28a)]),_0xe02055[_0x163737(0x29e)](0x10))[_0x163737(0x10e)](()=>{const _0x36218e=_0x163737;this[_0x36218e(0x2e3)]();}));}};_0x505fb8=_0x523706([_0x478a1f(0x1,_0x3223aa[_0x182123(0x40e)](_0xba5a96[_0x182123(0x11d)])),_0x478a1f(0x2,_0x3223aa['Inject'](_0x5a312c)),_0x478a1f(0x3,_0x3223aa[_0x182123(0x23b)]),_0x478a1f(0x4,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x157)]))],_0x505fb8);const _0x439998=0x1,_0x1fa5ec=1.5;class _0x3ce3f1 extends _0x20af9e['Shape']{constructor(_0x9d39ae,_0x12d02c){const _0xa69663=_0x182123;super(_0x9d39ae,_0x12d02c),_0x571923(this,'_color'),_0x571923(this,'_hovered',!0x1),_0x571923(this,'_range'),_0x571923(this,_0xa69663(0x10d),''),_0x571923(this,_0xa69663(0x34f),_0xa69663(0x456)),_0x571923(this,_0xa69663(0x21b)),(_0x12d02c&&this['setShapeProps'](_0x12d02c),this['onPointerEnter$'][_0xa69663(0x2ec)](()=>this[_0xa69663(0x438)]({'hovered':!0x0})),this[_0xa69663(0x195)][_0xa69663(0x2ec)](()=>this[_0xa69663(0x438)]({'hovered':!0x1})));}[_0x182123(0x438)](_0x1cb6f1){const _0x17be3e=_0x182123;var _0x2d9ec7,_0x1be3ae,_0x5a1a4c,_0x5c5039,_0xb7e9e2,_0x46dafe;this[_0x17be3e(0x45f)]=(_0x2d9ec7=_0x1cb6f1[_0x17be3e(0x4aa)])!=null?_0x2d9ec7:this[_0x17be3e(0x45f)],this[_0x17be3e(0x3b4)]=(_0x1be3ae=_0x1cb6f1[_0x17be3e(0x1d3)])!=null?_0x1be3ae:this['_hovered'],this[_0x17be3e(0x491)]=(_0x5a1a4c=_0x1cb6f1[_0x17be3e(0x2a1)])!=null?_0x5a1a4c:this[_0x17be3e(0x491)],this[_0x17be3e(0x10d)]=(_0x5c5039=_0x1cb6f1['name'])!=null?_0x5c5039:this[_0x17be3e(0x10d)],this[_0x17be3e(0x34f)]=(_0xb7e9e2=_0x1cb6f1[_0x17be3e(0x3dc)])!=null?_0xb7e9e2:this[_0x17be3e(0x34f)],this[_0x17be3e(0x21b)]=(_0x46dafe=_0x1cb6f1[_0x17be3e(0x2ce)])!=null?_0x46dafe:this[_0x17be3e(0x21b)],this['transformByState']({'width':_0x1cb6f1[_0x17be3e(0x4cb)],'height':_0x1cb6f1[_0x17be3e(0x519)]});}[_0x182123(0x237)](_0x50388e){const _0x55600c=_0x182123,{row:_0x4e037b,column:_0x2adf0b}=_0x50388e;if(_0x4e037b>=this[_0x55600c(0x491)][_0x55600c(0x48d)]&&_0x4e037b<=this[_0x55600c(0x491)][_0x55600c(0x2a3)]&&_0x2adf0b>=this[_0x55600c(0x491)][_0x55600c(0x475)]&&_0x2adf0b<=this[_0x55600c(0x491)]['endColumn']){this[_0x55600c(0x438)]({'hovered':!0x0});return;}this[_0x55600c(0x438)]({'hovered':!0x1});}[_0x182123(0x394)](_0x13f5c2){return!0x1;}[_0x182123(0x279)](_0x59ffec){const _0x5ced94=_0x182123;_0x20af9e[_0x5ced94(0x302)][_0x5ced94(0x2eb)](_0x59ffec,{'width':this[_0x5ced94(0x4cb)],'height':this[_0x5ced94(0x519)],'strokeWidth':_0x1fa5ec,'stroke':this[_0x5ced94(0x45f)],'evented':!0x1,'fill':this[_0x5ced94(0x21b)]}),this[_0x5ced94(0x3b4)]&&(_0x59ffec[_0x5ced94(0x16c)](),_0x59ffec[_0x5ced94(0x415)](0x1,0x0,0x0,0x1,this[_0x5ced94(0x4cb)],this[_0x5ced94(0x34f)]===_0x5ced94(0x3cc)?0x0:-_0x1644b8),_0x2638fd['drawWith'](_0x59ffec,{'text':this[_0x5ced94(0x10d)],'color':this[_0x5ced94(0x45f)]}),_0x59ffec[_0x5ced94(0x3f3)]());}}var _0xc6b1f3=Object['defineProperty'],_0x5dbfc5=Object[_0x182123(0x363)],_0x4f6e4e=(_0x53290f,_0x442efa,_0x4929ab,_0x506b28)=>{const _0x39a004=_0x182123;for(var _0x5452d2=_0x506b28>0x1?void 0x0:_0x506b28?_0x5dbfc5(_0x442efa,_0x4929ab):_0x442efa,_0x4f7149=_0x53290f[_0x39a004(0x4c3)]-0x1,_0x3868d6;_0x4f7149>=0x0;_0x4f7149--)(_0x3868d6=_0x53290f[_0x4f7149])&&(_0x5452d2=(_0x506b28?_0x3868d6(_0x442efa,_0x4929ab,_0x5452d2):_0x3868d6(_0x5452d2))||_0x5452d2);return _0x506b28&&_0x5452d2&&_0xc6b1f3(_0x442efa,_0x4929ab,_0x5452d2),_0x5452d2;},_0x23dd3d=(_0x4ba0a8,_0x103d29)=>(_0x7eaf9e,_0x4d3e74)=>_0x103d29(_0x7eaf9e,_0x4d3e74,_0x4ba0a8);const _0x352e51=0x1389;let _0x5db2cc=class extends _0x3223aa[_0x182123(0x4a9)]{constructor(_0x405a2c,_0x4d5cc3,_0x1e7f3f,_0x160311){const _0x341cfe=_0x182123;super(),_0x571923(this,_0x341cfe(0x405),new Set()),_0x571923(this,'_lastPointer',null),(this['_context']=_0x405a2c,this[_0x341cfe(0x221)]=_0x4d5cc3,this[_0x341cfe(0x3b9)]=_0x1e7f3f,this[_0x341cfe(0x26a)]=_0x160311,this['_init']());}[_0x182123(0x450)](){const _0x546787=_0x182123;this[_0x546787(0x221)][_0x546787(0x4ce)][_0x546787(0x493)](_0xe02055['takeUntil'](this[_0x546787(0x4ef)]),_0xe02055['switchMap'](_0x90c7c2=>{const _0x5c94fe=_0x546787;if(_0x90c7c2){const _0x5e1335=_0x90c7c2['sheetId'];return _0x41acaa[_0x5c94fe(0x4d4)](this[_0x5c94fe(0x3b9)]['getCollabCursors$'](this[_0x5c94fe(0x134)][_0x5c94fe(0x504)]),this[_0x5c94fe(0x26a)]['currentTheme$'])[_0x5c94fe(0x493)](_0xe02055['map'](([_0x5e0e78,_0x16e828])=>{const _0x5d9fa4=new Map();return _0x5e0e78['forEach']((_0x1b4335,_0x39e7f9)=>{const _0x5b2526=_0x2e84;if(_0x1b4335[_0x5b2526(0x1ad)]===_0x5e1335){const _0x4e0bf0={..._0x1b4335};_0x4e0bf0['color']=_0x16e828[_0x1b4335[_0x5b2526(0x4aa)]],_0x5d9fa4['set'](_0x39e7f9,_0x4e0bf0);}}),{'skeleton':_0x90c7c2,'cursors':_0x5d9fa4};}));}return _0x41acaa['of']({'skeleton':null,'cursors':new Map()});}))[_0x546787(0x10e)](({skeleton:_0x1ef679,cursors:_0x2e0895})=>{const _0xe26e3e=_0x546787;this[_0xe26e3e(0x425)](),_0x1ef679&&this[_0xe26e3e(0x518)](_0x1ef679,_0x2e0895);}),this[_0x546787(0x221)][_0x546787(0x4ce)][_0x546787(0x10e)](_0x5c7b7a=>{const _0x2b31c2=_0x546787;if(_0x5c7b7a==null)return;const {skeleton:_0x279fe5}=_0x5c7b7a,{scene:_0x5278d3}=this[_0x2b31c2(0x134)];_0x5278d3['onPointerMove$']['subscribeEvent'](_0x3223aa[_0x2b31c2(0x180)](_0x34ae1f=>{const _0x48e387=_0x2b31c2;var _0x2948bf,_0xd6c952;const {offsetX:_0x2f9bb3,offsetY:_0x2d14c7}=_0x34ae1f,{x:_0x1c3a4d,y:_0x56bc7a}=_0x5278d3['getRelativeToViewportCoord'](_0x20af9e[_0x48e387(0x506)][_0x48e387(0x41a)]([_0x2f9bb3,_0x2d14c7])),{scaleX:_0x21d038,scaleY:_0x34d082}=_0x5278d3['getAncestorScale'](),_0x193089=_0x5278d3[_0x48e387(0x13f)](_0x166b0e['VIEWPORT_KEY'][_0x48e387(0x293)]),_0x354a87=_0x5278d3[_0x48e387(0x50d)](_0x20af9e['Vector2']['FromArray']([_0x1c3a4d,_0x56bc7a]),_0x193089),_0x2a2b53=_0x279fe5[_0x48e387(0x152)](_0x2f9bb3,_0x2d14c7,_0x21d038,_0x34d082,_0x354a87);((_0x2948bf=this[_0x48e387(0x393)])==null?void 0x0:_0x2948bf[_0x48e387(0x22b)])===_0x2a2b53[_0x48e387(0x22b)]&&((_0xd6c952=this[_0x48e387(0x393)])==null?void 0x0:_0xd6c952[_0x48e387(0x342)])===_0x2a2b53['row']||this[_0x48e387(0x405)]['forEach'](_0x218b19=>{const _0x224c6c=_0x48e387;_0x218b19[_0x224c6c(0x237)](_0x2a2b53);});},0x64));});}[_0x182123(0x518)](_0x427632,_0x10a800){const _0x151a86=_0x182123;var _0xde96f5;const _0x5ab6e2=(_0xde96f5=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0xde96f5['skeleton'];if(!_0x5ab6e2)return;const _0x75957b=this[_0x151a86(0x339)]();if(!_0x75957b)return;this[_0x151a86(0x405)][_0x151a86(0x19f)](_0x3c2202=>{const _0x40a7f2=_0x151a86;_0x3c2202[_0x40a7f2(0x48b)]();});const {scene:_0x1f9b2d}=_0x75957b,_0xa83278=_0x5165d3(Array[_0x151a86(0x2d3)](_0x10a800[_0x151a86(0x211)]()))['map'](_0x1f5642=>{const _0xf80d65=_0x151a86,{color:_0x5e0bd6,range:_0x428c7c,name:_0x369d4c,selection:_0x22c61c,sheetID:_0x4ac5a0}=_0x1f5642,{startColumn:_0x51caea,startRow:_0x34644a,endColumn:_0x1cd9bd,endRow:_0x5d43da}=_0x428c7c,_0x12f7a4=_0x166b0e[_0xf80d65(0x2d5)](_0x34644a,_0x51caea,_0x1f9b2d,_0x5ab6e2),_0x25a724=_0x166b0e['getCoordByCell'](_0x5d43da,_0x1cd9bd,_0x1f9b2d,_0x5ab6e2),{columnHeaderHeightAndMarginTop:_0x309eb2}=_0x5ab6e2,{startX:_0x360aca,startY:_0x3572c4}=_0x12f7a4,{endX:_0x54339a,endY:_0x52137d}=_0x25a724,_0x4836fe=_0x54339a-_0x360aca,_0x3f67a4=_0x52137d-_0x3572c4,_0x4f9624={'labelPosition':_0x3572c4-_0x309eb2>=_0x1644b8?_0xf80d65(0x456):_0xf80d65(0x3cc),'sheetID':_0x4ac5a0,'range':_0x428c7c,'color':_0x5e0bd6,'name':_0x369d4c,'selection':_0x22c61c,'left':_0x360aca,'top':_0x3572c4,'width':_0x4836fe,'height':_0x3f67a4,'evented':!0x1,'zIndex':_0x352e51};return new _0x3ce3f1(_0x369d4c,_0x4f9624);});_0x1f9b2d['addObjects'](_0xa83278,_0x439998),this['_cursors']=new Set(_0xa83278);}['_removeCollabCursors'](){const _0x543643=_0x182123;var _0x1f4079;(_0x1f4079=this['_cursors'])==null||_0x1f4079[_0x543643(0x19f)](_0xcccd7=>_0xcccd7[_0x543643(0x2cf)]());}[_0x182123(0x339)](){const _0x26bdb3=_0x182123;return _0x166b0e[_0x26bdb3(0x53f)](this[_0x26bdb3(0x134)][_0x26bdb3(0x1b0)],this['_context']);}};_0x5db2cc=_0x4f6e4e([_0x23dd3d(0x1,_0x3223aa[_0x182123(0x40e)](_0x166b0e[_0x182123(0x537)])),_0x23dd3d(0x2,_0x3223aa[_0x182123(0x40e)](_0x5a312c)),_0x23dd3d(0x3,_0x3223aa[_0x182123(0x40e)](_0x3223aa['ThemeService']))],_0x5db2cc);function _0x5165d3(_0x35f846){const _0x5efcb7=_0x182123,_0x49fb2b=new Map();return _0x35f846[_0x5efcb7(0x19f)](_0x1127d6=>{const _0x125c83=_0x5efcb7;if(_0x49fb2b[_0x125c83(0x39c)](_0x1127d6[_0x125c83(0x511)])){const _0x1d5753=_0x49fb2b[_0x125c83(0x53b)](_0x1127d6[_0x125c83(0x511)]);_0x1d5753[_0x125c83(0x1dc)]+=',\x20'+_0x1127d6[_0x125c83(0x1dc)];}else _0x49fb2b[_0x125c83(0x132)](_0x1127d6[_0x125c83(0x511)],_0x1127d6);}),Array[_0x5efcb7(0x2d3)](_0x49fb2b[_0x5efcb7(0x211)]());}var _0x5f461b=function(){const _0x16fa23=_0x182123;return _0x5f461b=Object[_0x16fa23(0x2a8)]||function(_0x1d1337){const _0x247c92=_0x16fa23;for(var _0x2c64c6,_0x310a71=0x1,_0x15aebf=arguments[_0x247c92(0x4c3)];_0x310a71<_0x15aebf;_0x310a71++){_0x2c64c6=arguments[_0x310a71];for(var _0x4be68d in _0x2c64c6)Object[_0x247c92(0x345)][_0x247c92(0x1f4)][_0x247c92(0x155)](_0x2c64c6,_0x4be68d)&&(_0x1d1337[_0x4be68d]=_0x2c64c6[_0x4be68d]);}return _0x1d1337;},_0x5f461b[_0x16fa23(0x381)](this,arguments);},_0x447b80=function(_0x3dc823,_0x322a9d){const _0x50e940=_0x182123;var _0x182d96={};for(var _0x25a147 in _0x3dc823)Object[_0x50e940(0x345)][_0x50e940(0x1f4)][_0x50e940(0x155)](_0x3dc823,_0x25a147)&&_0x322a9d['indexOf'](_0x25a147)<0x0&&(_0x182d96[_0x25a147]=_0x3dc823[_0x25a147]);if(_0x3dc823!=null&&typeof Object['getOwnPropertySymbols']==_0x50e940(0x1cd)){for(var _0x7c8bee=0x0,_0x25a147=Object['getOwnPropertySymbols'](_0x3dc823);_0x7c8bee<_0x25a147[_0x50e940(0x4c3)];_0x7c8bee++)_0x322a9d[_0x50e940(0x4ea)](_0x25a147[_0x7c8bee])<0x0&&Object[_0x50e940(0x345)][_0x50e940(0x1b6)][_0x50e940(0x155)](_0x3dc823,_0x25a147[_0x7c8bee])&&(_0x182d96[_0x25a147[_0x7c8bee]]=_0x3dc823[_0x25a147[_0x7c8bee]]);}return _0x182d96;},_0x5dbde6=_0x214003[_0x182123(0x465)](function(_0x55aa0f,_0x4f31ac){const _0x22ed4e=_0x182123;var _0x574864=_0x55aa0f[_0x22ed4e(0x4cd)],_0x422708=_0x55aa0f['id'],_0x1c0eff=_0x55aa0f[_0x22ed4e(0x471)],_0x1c8a16=_0x55aa0f[_0x22ed4e(0x47d)],_0x412b07=_0x447b80(_0x55aa0f,[_0x22ed4e(0x4cd),'id','className',_0x22ed4e(0x47d)]),_0x135b15=_0x22ed4e(0x4b7)[_0x22ed4e(0x51d)](_0x422708,'\x20')[_0x22ed4e(0x51d)](_0x1c0eff||'')['trim'](),_0x3452d0=_0x214003['useRef']('_'[_0x22ed4e(0x51d)](_0x3cdd0a()));return _0x426b5b(_0x574864,''[_0x22ed4e(0x51d)](_0x422708),{'defIds':_0x574864[_0x22ed4e(0x372)],'idSuffix':_0x3452d0['current']},_0x5f461b({'ref':_0x4f31ac,'className':_0x135b15},_0x412b07),_0x1c8a16);});function _0x426b5b(_0x587045,_0xc66b9f,_0xfb09c1,_0x261afb,_0x522c97){const _0x40d4f4=_0x182123;return _0x214003[_0x40d4f4(0x1eb)](_0x587045[_0x40d4f4(0x13e)],_0x5f461b(_0x5f461b({'key':_0xc66b9f},_0x54fea7(_0x587045,_0xfb09c1,_0x522c97)),_0x261afb),(_0x4e0f94(_0x587045,_0xfb09c1)[_0x40d4f4(0x225)]||[])[_0x40d4f4(0x486)](function(_0x37049a,_0x8ff223){const _0x4b6088=_0x40d4f4;return _0x426b5b(_0x37049a,''[_0x4b6088(0x51d)](_0xc66b9f,'-')['concat'](_0x587045[_0x4b6088(0x13e)],'-')[_0x4b6088(0x51d)](_0x8ff223),_0xfb09c1,void 0x0,_0x522c97);}));}function _0x54fea7(_0x43fc5b,_0x3c1646,_0x4148f8){const _0x7aee7b=_0x182123;var _0x49411d=_0x5f461b({},_0x43fc5b[_0x7aee7b(0x48e)]);_0x4148f8!=null&&_0x4148f8['colorChannel1']&&_0x49411d[_0x7aee7b(0x273)]===_0x7aee7b(0x501)&&(_0x49411d[_0x7aee7b(0x273)]=_0x4148f8[_0x7aee7b(0x501)]);var _0x240776=_0x3c1646[_0x7aee7b(0x372)];return!_0x240776||_0x240776[_0x7aee7b(0x4c3)]===0x0||(_0x43fc5b['tag']===_0x7aee7b(0x39f)&&_0x49411d[_0x7aee7b(0x49e)]&&(_0x49411d[_0x7aee7b(0x49e)]=_0x49411d[_0x7aee7b(0x49e)]+_0x3c1646[_0x7aee7b(0x457)]),Object[_0x7aee7b(0x27d)](_0x49411d)[_0x7aee7b(0x19f)](function(_0x36a844){const _0xa51e72=_0x7aee7b;var _0x1fa5ff=_0x36a844[0x0],_0x1478ef=_0x36a844[0x1];typeof _0x1478ef==_0xa51e72(0x370)&&(_0x49411d[_0x1fa5ff]=_0x1478ef[_0xa51e72(0x2fe)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3c1646[_0xa51e72(0x457)],')')));})),_0x49411d;}function _0x4e0f94(_0x6c19de,_0x39a0ff){const _0xa2d1f=_0x182123;var _0x17e51f,_0x92257e=_0x39a0ff[_0xa2d1f(0x372)];return!_0x92257e||_0x92257e[_0xa2d1f(0x4c3)]===0x0?_0x6c19de:_0x6c19de[_0xa2d1f(0x13e)]==='defs'&&(!((_0x17e51f=_0x6c19de[_0xa2d1f(0x225)])===null||_0x17e51f===void 0x0)&&_0x17e51f[_0xa2d1f(0x4c3)])?_0x5f461b(_0x5f461b({},_0x6c19de),{'children':_0x6c19de[_0xa2d1f(0x225)][_0xa2d1f(0x486)](function(_0x4ab054){const _0x5c910d=_0xa2d1f;return typeof _0x4ab054[_0x5c910d(0x48e)]['id']==_0x5c910d(0x370)&&_0x92257e&&_0x92257e[_0x5c910d(0x4ea)](_0x4ab054[_0x5c910d(0x48e)]['id'])>-0x1?_0x5f461b(_0x5f461b({},_0x4ab054),{'attrs':_0x5f461b(_0x5f461b({},_0x4ab054[_0x5c910d(0x48e)]),{'id':_0x4ab054[_0x5c910d(0x48e)]['id']+_0x39a0ff[_0x5c910d(0x457)]})}):_0x4ab054;})}):_0x6c19de;}function _0x3cdd0a(){const _0xedfe3=_0x182123;return Math[_0xedfe3(0x3e8)]()[_0xedfe3(0x47c)](0x24)['substring'](0x2,0x8);}_0x5dbde6[_0x182123(0x2df)]='UniverIcon';var _0x3d9b92={'tag':_0x182123(0x283),'attrs':{'fill':_0x182123(0x123),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x182123(0x4e7)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x182123(0x43c),'attrs':{'stroke':_0x182123(0x4f5),'d':_0x182123(0x1a5),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x182123(0x14c),'attrs':{},'children':[{'tag':_0x182123(0x527),'attrs':{'id':_0x182123(0x35d)},'children':[{'tag':_0x182123(0x43c),'attrs':{'fill':_0x182123(0x136),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0x254f0c=_0x214003[_0x182123(0x465)](function(_0x18d568,_0x51ff5d){const _0x1d9e8c=_0x182123;return _0x214003['createElement'](_0x5dbde6,Object[_0x1d9e8c(0x2a8)]({},_0x18d568,{'id':_0x1d9e8c(0x4fb),'ref':_0x51ff5d,'icon':_0x3d9b92}));});_0x254f0c[_0x182123(0x2df)]='OffLineSingle';var _0x5b01fe={'tag':_0x182123(0x283),'attrs':{'fill':_0x182123(0x123),'viewBox':_0x182123(0x521),'width':_0x182123(0x4e7),'height':_0x182123(0x4e7)},'children':[{'tag':'g','attrs':{'clipPath':_0x182123(0x317)},'children':[{'tag':_0x182123(0x43c),'attrs':{'stroke':'currentColor','d':'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','strokeLinecap':_0x182123(0x396),'strokeLinejoin':_0x182123(0x396),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x182123(0x527),'attrs':{'id':_0x182123(0x455)},'children':[{'tag':_0x182123(0x43c),'attrs':{'fill':_0x182123(0x136),'d':_0x182123(0x1f7),'transform':_0x182123(0x539)}}]}]}],'defIds':[_0x182123(0x455)]},_0x28a210=_0x214003[_0x182123(0x465)](function(_0x509fe6,_0x48ab5c){const _0x43eb57=_0x182123;return _0x214003[_0x43eb57(0x1eb)](_0x5dbde6,Object[_0x43eb57(0x2a8)]({},_0x509fe6,{'id':_0x43eb57(0x256),'ref':_0x48ab5c,'icon':_0x5b01fe}));});_0x28a210[_0x182123(0x2df)]='OnLineSingle';function _0x27f3e2(_0x5cee29){const _0x2de83f=_0x182123;var _0x69835e,_0x260a20,_0x1c65d='';if(typeof _0x5cee29==_0x2de83f(0x370)||typeof _0x5cee29==_0x2de83f(0x1ec))_0x1c65d+=_0x5cee29;else{if(typeof _0x5cee29==_0x2de83f(0x3a8)){if(Array[_0x2de83f(0x390)](_0x5cee29)){var _0x54e574=_0x5cee29[_0x2de83f(0x4c3)];for(_0x69835e=0x0;_0x69835e<_0x54e574;_0x69835e++)_0x5cee29[_0x69835e]&&(_0x260a20=_0x27f3e2(_0x5cee29[_0x69835e]))&&(_0x1c65d&&(_0x1c65d+='\x20'),_0x1c65d+=_0x260a20);}else{for(_0x260a20 in _0x5cee29)_0x5cee29[_0x260a20]&&(_0x1c65d&&(_0x1c65d+='\x20'),_0x1c65d+=_0x260a20);}}}return _0x1c65d;}function _0x948078(){for(var _0x32683b,_0x57e6dd,_0x1f53c0=0x0,_0x3cb33b='',_0x36d932=arguments['length'];_0x1f53c0<_0x36d932;_0x1f53c0++)(_0x32683b=arguments[_0x1f53c0])&&(_0x57e6dd=_0x27f3e2(_0x32683b))&&(_0x3cb33b&&(_0x3cb33b+='\x20'),_0x3cb33b+=_0x57e6dd);return _0x3cb33b;}const _0x230ead={'onlineStatusIcon':_0x182123(0x19c),'onlineStatusTitle':_0x182123(0x12a),'onlineStatus':_0x182123(0x2ba),'online':'univer-online','offline':_0x182123(0x498)};function _0x1db336(_0x204309){const _0x5cc106=_0x182123;switch(_0x204309){case _0x12b363[_0x5cc106(0x113)]:return'collabStatus.offline';case _0x12b363[_0x5cc106(0x53c)]:return _0x5cc106(0x183);case _0x12b363[_0x5cc106(0x27c)]:return'collabStatus.fetchMiss';case _0x12b363['NOT_COLLAB']:return _0x5cc106(0x297);case _0x12b363[_0x5cc106(0x17c)]:case _0x12b363['AWAITING_WITH_PENDING']:return _0x5cc106(0x46a);case _0x12b363['SYNCED']:case _0x12b363[_0x5cc106(0x2cc)]:return _0x5cc106(0x423);}}function _0x2411f5(_0x2ae134){const _0x41926c=_0x182123,{status$:_0x5b967a}=_0x2ae134,_0x26ad83=_0x19d837[_0x41926c(0x3ea)](_0x5b967a,_0x12b363[_0x41926c(0x3cd)]),_0x591369=_0x3223aa[_0x41926c(0x21c)](_0x3223aa[_0x41926c(0x1dd)]),_0x3248a9=_0x3223aa[_0x41926c(0x21c)](_0x27845d[_0x41926c(0x3c7)]),_0x5ba00a=_0x26ad83!==_0x12b363[_0x41926c(0x113)],_0x4b5994=_0x591369['t'](_0x1db336(_0x26ad83)),_0x160d7d=_0x948078(_0x230ead['onlineStatus'],{[_0x230ead[_0x41926c(0x383)]]:_0x5ba00a,[_0x230ead[_0x41926c(0x2e7)]]:!_0x5ba00a}),_0x4f5524=_0x5ba00a?_0x214003[_0x41926c(0x1eb)](_0x28a210,null):_0x214003[_0x41926c(0x1eb)](_0x254f0c,null),_0x2ed184=_0x214003[_0x41926c(0x476)](()=>{const _0x4d5a8d=_0x41926c;_0x5ba00a||_0x3248a9[_0x4d5a8d(0x173)]();},[_0x5ba00a,_0x3248a9]);function _0x153f19(){const _0x2073fe=_0x41926c;return _0x214003[_0x2073fe(0x1eb)](_0x2073fe(0x44e),{'className':_0x160d7d,'onClick':_0x2ed184},_0x214003[_0x2073fe(0x1eb)](_0x2073fe(0x44e),{'className':_0x230ead[_0x2073fe(0x418)]},_0x4f5524),_0x214003[_0x2073fe(0x1eb)](_0x2073fe(0x44e),{'className':_0x230ead[_0x2073fe(0x1b8)]},_0x4b5994));}return _0x5ba00a?_0x153f19():_0x214003['createElement'](_0x4d822f[_0x41926c(0x54b)],{'title':_0x591369['t'](_0x41926c(0x3af))},_0x153f19());}var _0x105dad=Object['defineProperty'],_0x23c216=Object[_0x182123(0x363)],_0x2fa50f=(_0xa6ce8c,_0x5690aa,_0x511857,_0x502aa2)=>{for(var _0x45118d=_0x502aa2>0x1?void 0x0:_0x502aa2?_0x23c216(_0x5690aa,_0x511857):_0x5690aa,_0x47740c=_0xa6ce8c['length']-0x1,_0x2eae11;_0x47740c>=0x0;_0x47740c--)(_0x2eae11=_0xa6ce8c[_0x47740c])&&(_0x45118d=(_0x502aa2?_0x2eae11(_0x5690aa,_0x511857,_0x45118d):_0x2eae11(_0x45118d))||_0x45118d);return _0x502aa2&&_0x45118d&&_0x105dad(_0x5690aa,_0x511857,_0x45118d),_0x45118d;},_0xcb855f=(_0x4aea8a,_0x4dbee9)=>(_0x4f6218,_0x29f71e)=>_0x4dbee9(_0x4f6218,_0x29f71e,_0x4aea8a);_0x27845d[_0x182123(0x1f1)]=class extends _0x3223aa['Disposable']{constructor(_0x3b4a58,_0x291b9d,_0x3d209c,_0x291045){const _0x495781=_0x182123;super(),_0x571923(this,_0x495781(0x38c),new _0x41acaa['BehaviorSubject'](_0x12b363[_0x495781(0x3cd)])),(this[_0x495781(0x348)]=_0x3b4a58,this[_0x495781(0x461)]=_0x291b9d,this[_0x495781(0x526)]=_0x3d209c,this['_collaborationController']=_0x291045,this[_0x495781(0x310)](),this[_0x495781(0x2f3)]());}[_0x182123(0x2f3)](){const _0xe40934=_0x182123;this[_0xe40934(0x2c6)](this[_0xe40934(0x348)][_0xe40934(0x39a)][_0xe40934(0x493)](_0x41acaa[_0xe40934(0x296)](()=>{const _0xfd5a84=_0xe40934,_0x3347fa=this[_0xfd5a84(0x348)][_0xfd5a84(0x3eb)]();return _0x3347fa?this[_0xfd5a84(0x485)][_0xfd5a84(0x20d)](_0x3347fa[_0xfd5a84(0x27a)]()):_0x41acaa['of'](null);}),_0x41acaa[_0xe40934(0x296)](_0x5883ca=>_0x5883ca?_0x5883ca[_0xe40934(0x355)]:_0x41acaa['of'](_0x12b363[_0xe40934(0x3cd)])))[_0xe40934(0x10e)](_0x5eac32=>{const _0x18e876=_0xe40934;this['_status$'][_0x18e876(0x2e5)](_0x5eac32);}));}[_0x182123(0x310)](){const _0xe437b8=_0x182123;this[_0xe437b8(0x2c6)](this[_0xe437b8(0x461)]['registerComponent'](_0x19d837[_0xe437b8(0x545)][_0xe437b8(0x18d)],()=>_0x3223aa[_0xe437b8(0x210)](_0x17ce55({'status$':this[_0xe437b8(0x38c)]['asObservable']()}),this[_0xe437b8(0x526)])));}},_0x27845d[_0x182123(0x1f1)]=_0x2fa50f([_0xcb855f(0x0,_0x3223aa[_0x182123(0x247)]),_0xcb855f(0x1,_0x19d837[_0x182123(0x4cf)]),_0xcb855f(0x2,_0x3223aa['Inject'](_0x3223aa[_0x182123(0x14a)])),_0xcb855f(0x3,_0x3223aa['Inject'](_0x27845d['CollaborationController']))],_0x27845d['DesktopCollaborationStatusDisplayController']);function _0x17ce55(_0x3a2b17){const {status$:_0x5757d0}=_0x3a2b17;return function(){return _0x214003['createElement'](_0x2411f5,{'status$':_0x5757d0});};}const _0x38ca16=_0x3223aa[_0x182123(0x3fd)](_0x182123(0x361));var _0x2ca898=Object[_0x182123(0x33a)],_0x39d556=Object['getOwnPropertyDescriptor'],_0x3844bd=(_0x25d695,_0x33a198,_0x1777ea,_0xc9c7c7)=>{const _0x32630f=_0x182123;for(var _0x3458fa=_0xc9c7c7>0x1?void 0x0:_0xc9c7c7?_0x39d556(_0x33a198,_0x1777ea):_0x33a198,_0x1cf546=_0x25d695[_0x32630f(0x4c3)]-0x1,_0x18952f;_0x1cf546>=0x0;_0x1cf546--)(_0x18952f=_0x25d695[_0x1cf546])&&(_0x3458fa=(_0xc9c7c7?_0x18952f(_0x33a198,_0x1777ea,_0x3458fa):_0x18952f(_0x3458fa))||_0x3458fa);return _0xc9c7c7&&_0x3458fa&&_0x2ca898(_0x33a198,_0x1777ea,_0x3458fa),_0x3458fa;},_0x3f404c=(_0x3bb32b,_0x36b503)=>(_0x30eb2d,_0x3ab042)=>_0x36b503(_0x30eb2d,_0x3ab042,_0x3bb32b);_0x27845d[_0x182123(0x4ab)]=class extends _0x3223aa[_0x182123(0x4a9)]{constructor(_0x3c0fd0,_0x15b350,_0x3bcbfb,_0x3dc405,_0x37f618,_0x33407f){const _0x5c51ef=_0x182123;super(),this[_0x5c51ef(0x4e0)]=_0x3c0fd0,this['_logService']=_0x15b350,this[_0x5c51ef(0x198)]=_0x3bcbfb,this[_0x5c51ef(0x44c)]=_0x3dc405,this[_0x5c51ef(0x229)]=_0x37f618,_0x33407f?_0x33407f==null||_0x33407f[_0x5c51ef(0x32a)]()[_0x5c51ef(0x2bd)](()=>this[_0x5c51ef(0x450)]()):(this[_0x5c51ef(0x397)]['debug'](_0x5c51ef(0x269),_0x5c51ef(0x2f7)),this[_0x5c51ef(0x450)]());}async[_0x182123(0x450)](){const _0x2cf7b4=_0x182123,_0x3f1115=this[_0x2cf7b4(0x4e0)]['getParam'](_0x2cf7b4(0x1b0)),_0x447428=this[_0x2cf7b4(0x4e0)]['getParam'](_0x2cf7b4(0x45b));if(!_0x3f1115||!_0x447428){this[_0x2cf7b4(0x397)][_0x2cf7b4(0x235)](_0x2cf7b4(0x269),_0x2cf7b4(0x4ad));return;}switch(Number(_0x447428)){case _0x33d988[_0x2cf7b4(0x2d4)]:{const _0x112330=await this['_loadSheet'](_0x3f1115);this[_0x2cf7b4(0x481)](_0x112330);break;}case _0x33d988['UNIVER_DOC']:{await this[_0x2cf7b4(0x1c9)](_0x3f1115);break;}default:{this[_0x2cf7b4(0x397)][_0x2cf7b4(0x1b1)](_0x2cf7b4(0x269),_0x2cf7b4(0x494));break;}}}async[_0x182123(0x481)](_0x57de0c){const _0x4e0cf7=_0x182123;await this[_0x4e0cf7(0x167)](_0x57de0c),_0x57de0c[_0x4e0cf7(0x41c)]['pipe'](_0x41acaa[_0x4e0cf7(0x410)](this[_0x4e0cf7(0x4ef)]))[_0x4e0cf7(0x10e)](_0xa1e247=>{_0xa1e247&&this['_updateURLWithCurrentState'](_0xa1e247);}),this[_0x4e0cf7(0x4e0)]['urlChange$'][_0x4e0cf7(0x493)](_0x41acaa[_0x4e0cf7(0x410)](this[_0x4e0cf7(0x4ef)]))[_0x4e0cf7(0x10e)](()=>this[_0x4e0cf7(0x167)](_0x57de0c));}[_0x182123(0x20f)](_0x21e3af,_0x3370d4=!0x1){const _0x25b6e9=_0x182123,_0x5dfdc9=this[_0x25b6e9(0x4e0)][_0x25b6e9(0x41b)]('subunit');_0x21e3af[_0x25b6e9(0x1a4)]()!==_0x5dfdc9&&this[_0x25b6e9(0x4e0)]['setParam']('subunit',_0x21e3af['getSheetId'](),_0x3370d4);}async[_0x182123(0x167)](_0x14b774){const _0x503297=_0x182123;var _0x54bf39;const _0x4e4b53=this[_0x503297(0x4e0)]['getParam'](_0x503297(0x411));if(!_0x4e4b53||!_0x14b774['getSheetBySheetId'](_0x4e4b53)){const _0x5d49ba=_0x14b774['getUnhiddenWorksheets']()[0x0],_0x17b609=_0x14b774[_0x503297(0x528)](_0x5d49ba);if(!_0x17b609)return;this['_updateURLWithCurrentState'](_0x17b609,!0x0),await this[_0x503297(0x198)][_0x503297(0x3c8)](_0x4f46f0[_0x503297(0x52a)]['id'],{'unitId':_0x14b774[_0x503297(0x27a)](),'subUnitId':_0x5d49ba});return;}((_0x54bf39=_0x14b774[_0x503297(0x546)]())==null?void 0x0:_0x54bf39[_0x503297(0x1a4)]())!==_0x4e4b53&&await this[_0x503297(0x198)][_0x503297(0x3c8)](_0x4f46f0[_0x503297(0x52a)]['id'],{'unitId':_0x14b774[_0x503297(0x27a)](),'subUnitId':_0x4e4b53});}async['_loadSheet'](_0x4ca1c3){const _0x187674=_0x182123;let _0x1292c1=0x0;const _0x383cf4=await this[_0x187674(0x44c)][_0x187674(0x3f4)](_0x4ca1c3);return _0x383cf4&&(_0x383cf4['awaitingChangeset']||_0x383cf4[_0x187674(0x1d7)][_0x187674(0x4c3)]!==0x0)&&(_0x1292c1=_0x383cf4[_0x187674(0x1e8)]),_0x1292c1===0x0&&this[_0x187674(0x397)][_0x187674(0x235)](_0x187674(0x269),_0x187674(0x140)),this[_0x187674(0x229)]['loadSheet'](_0x4ca1c3,_0x1292c1);}async['_loadDoc'](_0x1b75c8){const _0x152f82=_0x182123;let _0x1e4a6e=0x0;const _0x5ecd4c=await this['_localCacheService']['loadOfflineData'](_0x1b75c8);return _0x5ecd4c&&(_0x5ecd4c[_0x152f82(0x2ed)]||_0x5ecd4c[_0x152f82(0x1d7)][_0x152f82(0x4c3)]!==0x0)&&(_0x1e4a6e=_0x5ecd4c[_0x152f82(0x1e8)]),_0x1e4a6e===0x0&&this[_0x152f82(0x397)][_0x152f82(0x235)](_0x152f82(0x269),_0x152f82(0x140)),this[_0x152f82(0x229)]['loadDoc'](_0x1b75c8,_0x1e4a6e);}},_0x27845d[_0x182123(0x4ab)]=_0x3844bd([_0x3f404c(0x0,_0x38ca16),_0x3f404c(0x1,_0x3223aa['ILogService']),_0x3f404c(0x2,_0x3223aa[_0x182123(0x23b)]),_0x3f404c(0x3,_0x3223aa[_0x182123(0x40e)](_0x27845d['LocalCacheService'])),_0x3f404c(0x4,_0x3223aa[_0x182123(0x40e)](_0x502235[_0x182123(0x462)])),_0x3f404c(0x5,_0x3223aa[_0x182123(0x203)](_0x3a8f53['IRemoteInstanceService']))],_0x27845d[_0x182123(0x4ab)]);var _0x1b1932=Object[_0x182123(0x33a)],_0x268bed=Object[_0x182123(0x363)],_0x4f8dbe=(_0x16f4e6,_0x369d99,_0x202484,_0x43002a)=>{const _0x5d78c1=_0x182123;for(var _0x214027=_0x43002a>0x1?void 0x0:_0x43002a?_0x268bed(_0x369d99,_0x202484):_0x369d99,_0x1dec83=_0x16f4e6[_0x5d78c1(0x4c3)]-0x1,_0x3c35b6;_0x1dec83>=0x0;_0x1dec83--)(_0x3c35b6=_0x16f4e6[_0x1dec83])&&(_0x214027=(_0x43002a?_0x3c35b6(_0x369d99,_0x202484,_0x214027):_0x3c35b6(_0x214027))||_0x214027);return _0x43002a&&_0x214027&&_0x1b1932(_0x369d99,_0x202484,_0x214027),_0x214027;},_0x1c1cc4=(_0x3ac2b9,_0x5aefa1)=>(_0x42aa69,_0x5b4b9f)=>_0x5aefa1(_0x42aa69,_0x5b4b9f,_0x3ac2b9);const _0x4d4398=_0x182123(0x343),_0x3f4d2b=_0x182123(0x4a8);let _0x552a78=class extends _0x3223aa[_0x182123(0x502)]{constructor(_0x2d8eaf,_0xcd65f0){const _0x135203=_0x182123;super(),this[_0x135203(0x348)]=_0x2d8eaf,this[_0x135203(0x404)]=_0xcd65f0,this['_init']();}['_init'](){const _0x30e9ae=_0x182123;this[_0x30e9ae(0x2c6)](this['_univerInstanceService']['focused$'][_0x30e9ae(0x10e)](()=>{const _0xb2df5e=_0x30e9ae;var _0x466fb8;const _0x35ef76=this['_univerInstanceService'][_0xb2df5e(0x3eb)]();let _0x56a098=(_0x466fb8=this[_0xb2df5e(0x404)]['getConfig'](_0x4d4398))!=null?_0x466fb8:_0x3f4d2b;_0x35ef76 instanceof _0x3223aa['Workbook']&&(_0x56a098=_0x35ef76[_0xb2df5e(0x1dc)]),document[_0xb2df5e(0x464)]=_0x56a098;}));}};_0x552a78=_0x4f8dbe([_0x1c1cc4(0x0,_0x3223aa['IUniverInstanceService']),_0x1c1cc4(0x1,_0x3223aa['IConfigService'])],_0x552a78);var _0x1fcf30=Object[_0x182123(0x33a)],_0x58a579=Object[_0x182123(0x363)],_0x51a21b=(_0xbe907f,_0x51f7f8,_0x1e720b,_0x5d067a)=>{const _0x5388c6=_0x182123;for(var _0x248ff1=_0x5d067a>0x1?void 0x0:_0x5d067a?_0x58a579(_0x51f7f8,_0x1e720b):_0x51f7f8,_0x51a801=_0xbe907f[_0x5388c6(0x4c3)]-0x1,_0x4d8e47;_0x51a801>=0x0;_0x51a801--)(_0x4d8e47=_0xbe907f[_0x51a801])&&(_0x248ff1=(_0x5d067a?_0x4d8e47(_0x51f7f8,_0x1e720b,_0x248ff1):_0x4d8e47(_0x248ff1))||_0x248ff1);return _0x5d067a&&_0x248ff1&&_0x1fcf30(_0x51f7f8,_0x1e720b,_0x248ff1),_0x248ff1;},_0x1e24c7=(_0x29538c,_0x32a46e)=>(_0x207f8c,_0x386733)=>_0x32a46e(_0x207f8c,_0x386733,_0x29538c);let _0x363794=class{constructor(_0x4d0271,_0x4d8ff2,_0x258566){const _0x44c3a6=_0x182123;this[_0x44c3a6(0x404)]=_0x4d0271,this[_0x44c3a6(0x427)]=_0x4d8ff2,this[_0x44c3a6(0x19b)]=_0x258566,this['init']();}[_0x182123(0x3bb)](){const _0x35559a=_0x182123;this[_0x35559a(0x427)][_0x35559a(0x312)]({'priority':0x1,'interceptor':(_0x3830a5,_0x3b6798)=>_0x3b6798(_0x3830a5)[_0x35559a(0x493)](_0x41acaa['concatMap'](async _0x48f4fc=>{const _0x3e7166=_0x35559a,_0x4c1d56=_0x48f4fc;if(_0x4c1d56[_0x3e7166(0x1e2)]===0x191&&window[_0x3e7166(0x44a)](this['localeService']['t'](_0x3e7166(0x2ad)))){const _0x514a6e=window['encodeURIComponent'](window['location']['href']);window[_0x3e7166(0x4fe)][_0x3e7166(0x1a8)]=this[_0x3e7166(0x3c5)]()+_0x3e7166(0x3dd)+_0x514a6e;}return _0x4c1d56;}))});}[_0x182123(0x3c5)](){const _0x361c9e=_0x182123;var _0x8a34b4,_0x238a5c;const _0x5e4ec2=this[_0x361c9e(0x404)][_0x361c9e(0x422)](_0x4f9925),_0x8dcba6=this[_0x361c9e(0x404)]['getConfig'](_0x183913);return(_0x238a5c=(_0x8a34b4=_0x8dcba6==null?void 0x0:_0x8dcba6[_0x361c9e(0x153)])!=null?_0x8a34b4:_0x5e4ec2)!=null?_0x238a5c:_0x2c9aef;}};_0x363794=_0x51a21b([_0x1e24c7(0x0,_0x3223aa[_0x182123(0x531)]),_0x1e24c7(0x1,_0x3223aa['Inject'](_0x339579[_0x182123(0x1db)])),_0x1e24c7(0x2,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x1dd)]))],_0x363794);var _0x5da921=Object[_0x182123(0x33a)],_0x8a7bb4=Object['getOwnPropertyDescriptor'],_0x590cd8=(_0x2ccf15,_0xb4c0e,_0x4029a3,_0x274a53)=>{const _0x4fb8f8=_0x182123;for(var _0x5061ae=_0x274a53>0x1?void 0x0:_0x274a53?_0x8a7bb4(_0xb4c0e,_0x4029a3):_0xb4c0e,_0x4bbfc7=_0x2ccf15[_0x4fb8f8(0x4c3)]-0x1,_0x61c186;_0x4bbfc7>=0x0;_0x4bbfc7--)(_0x61c186=_0x2ccf15[_0x4bbfc7])&&(_0x5061ae=(_0x274a53?_0x61c186(_0xb4c0e,_0x4029a3,_0x5061ae):_0x61c186(_0x5061ae))||_0x5061ae);return _0x274a53&&_0x5061ae&&_0x5da921(_0xb4c0e,_0x4029a3,_0x5061ae),_0x5061ae;},_0x5efb7a=(_0x292527,_0x3fb37c)=>(_0x11da9c,_0x5aee98)=>_0x3fb37c(_0x11da9c,_0x5aee98,_0x292527);const _0x7c1155=_0x182123(0x4a1),_0x1f5102=_0x182123(0x41d);_0x27845d[_0x182123(0x12e)]=class extends _0x3223aa[_0x182123(0x502)]{constructor(_0x2e8099,_0x91de9f){const _0x1f049c=_0x182123;super(),this[_0x1f049c(0x1ee)]=_0x2e8099,this['_configService']=_0x91de9f,this[_0x1f049c(0x117)]();}[_0x182123(0x117)](){const _0x42321c=_0x182123,_0x1dd750=this;this['disposeWithMe'](this['_HTTPService'][_0x42321c(0x312)]({'priority':0x3e7,'interceptor':_0x339579['MergeInterceptorFactory']({'isMatch'(_0x1ea988){const _0x515c14=_0x42321c;var _0x4ac249;if(_0x1ea988[_0x515c14(0x3be)]===_0x515c14(0x520)&&((_0x4ac249=_0x1ea988[_0x515c14(0x25e)])!=null&&_0x4ac249[_0x515c14(0x25a)])){const {objectID:_0x2cf1ec,objectType:_0x106862}=_0x1ea988[_0x515c14(0x25e)]['body']||{};if(!_0x2cf1ec||_0x106862===void 0x0)return!0x1;const _0x2c147f=_0x1dd750['_getAPIPrefixPath']()+'/'+_0x106862+_0x515c14(0x53d)+_0x2cf1ec+_0x515c14(0x4d2);if(_0x1ea988[_0x515c14(0x51e)]===_0x2c147f)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1fdc43){const _0x2fcd00=_0x42321c;var _0x259435;return(_0x259435=_0x1fdc43[_0x2fcd00(0x25e)])==null?void 0x0:_0x259435[_0x2fcd00(0x25a)];},'mergeParamsToRequest'(_0x3a2755,_0x5babca){const _0x211309=_0x42321c,_0x54b7bd=_0x1dd750['_getAPIPrefixPath']()+_0x211309(0x47f),_0x5c5944=_0x3a2755[_0x211309(0x38b)]((_0x5b1f31,_0x11e106)=>{const _0x101171=_0x211309,{unitID:_0x1874f7,objectID:_0x2bd3af,objectType:_0x2d3716,actions:_0x1f5402}=_0x11e106;return _0x5b1f31[_0x1874f7]||(_0x5b1f31[_0x1874f7]={}),_0x5b1f31[_0x1874f7][_0x2bd3af]||(_0x5b1f31[_0x1874f7][_0x2bd3af]={'objectID':_0x2bd3af,'objectType':_0x2d3716,'actions':[]}),_0x5b1f31[_0x1874f7][_0x2bd3af][_0x101171(0x3d3)][_0x101171(0x2fb)](..._0x1f5402),_0x5b1f31;},{}),_0x245fc6=[];for(const _0x26fcca in _0x5c5944)for(const _0x523c72 in _0x5c5944[_0x26fcca]){const {actions:_0x3a2ebe,objectType:_0x451eba}=_0x5c5944[_0x26fcca][_0x523c72],_0xbbb8b4=[...new Set(_0x3a2ebe)];_0x245fc6[_0x211309(0x2fb)]({'unitID':_0x26fcca,'objectID':_0x523c72,'objectType':_0x451eba,'actions':_0xbbb8b4});}return new _0x339579[(_0x211309(0x400))](_0x211309(0x520),_0x54b7bd,{'headers':_0x5babca[_0x211309(0x4bb)],'withCredentials':_0x5babca[_0x211309(0x2cd)],'responseType':_0x5babca[_0x211309(0x4ed)],'body':{'requests':_0x245fc6}});}},{'distributeResult'(_0x152e16,_0x5d0d45){const _0x256e87=_0x42321c,{objectActions:_0x1bb21f}=_0x152e16;return _0x5d0d45[_0x256e87(0x486)](_0x224858=>{const _0x1e6fc6=_0x256e87,{unitID:_0x32b9af,objectID:_0x1a13e1,actions:_0x259565}=_0x224858,_0x554074=_0x1bb21f[_0x1e6fc6(0x2c9)](_0x13a5a6=>_0x13a5a6['unitID']===_0x32b9af&&_0x13a5a6[_0x1e6fc6(0x50b)]===_0x1a13e1),_0x294149=_0x259565[_0x1e6fc6(0x486)](_0x50be48=>_0x554074==null?void 0x0:_0x554074[_0x1e6fc6(0x3d3)][_0x1e6fc6(0x2c9)](_0x1a6680=>_0x1a6680['action']===_0x50be48))['filter'](_0xcddb5f=>!!_0xcddb5f);return{'config':_0x224858,'result':{'actions':_0x294149,'error':_0x152e16[_0x1e6fc6(0x1b1)]}};});}})}));}['_getAPIPrefixPath'](){const _0x3aee21=_0x182123;var _0x41db49,_0x388c8f;const _0x1f73d7=this['_configService']['getConfig'](_0x7c1155),_0xfdb9d0=this['_configService'][_0x3aee21(0x422)](_0x183913);return(_0x388c8f=(_0x41db49=_0xfdb9d0==null?void 0x0:_0xfdb9d0[_0x3aee21(0x379)])!=null?_0x41db49:_0x1f73d7)!=null?_0x388c8f:_0x1f5102;}async[_0x182123(0x39d)](_0x5e4adc){const _0x481f0d=_0x182123,_0x326c6a=this[_0x481f0d(0x21e)]()+'/'+_0x5e4adc['objectType']+_0x481f0d(0x159);return(await this['_HTTPService'][_0x481f0d(0x3f2)](_0x326c6a,{'body':_0x5e4adc}))[_0x481f0d(0x25a)][_0x481f0d(0x50b)]||'';}async[_0x182123(0x37e)](_0x9a5951){const _0x1b2208=_0x182123,_0xa29360=this['_getAPIPrefixPath']()+_0x1b2208(0x43a);return(await this['_HTTPService'][_0x1b2208(0x3f2)](_0xa29360,{'body':_0x9a5951}))[_0x1b2208(0x25a)][_0x1b2208(0x37d)];}async[_0x182123(0x197)](_0x4a3c30){const _0x22517c=_0x182123,_0x3f945a=this[_0x22517c(0x21e)]()+'/'+_0x4a3c30[_0x22517c(0x190)]+'/object/'+_0x4a3c30[_0x22517c(0x50b)];await this['_HTTPService']['put'](_0x3f945a,{'body':_0x4a3c30});}async[_0x182123(0x1d9)](_0x2bb9d5){const _0x4bc00a=_0x182123,_0x1960aa=this[_0x4bc00a(0x21e)]()+'/'+_0x2bb9d5[_0x4bc00a(0x190)]+_0x4bc00a(0x53d)+_0x2bb9d5['objectID']+'/allowed';return(await this[_0x4bc00a(0x1ee)][_0x4bc00a(0x3f2)](_0x1960aa,{'body':_0x2bb9d5}))[_0x4bc00a(0x25a)][_0x4bc00a(0x3d3)];}async[_0x182123(0x1a7)](_0x17c8cf){const _0x4d71a1=_0x182123,_0x63b516=this['_getAPIPrefixPath']()+_0x4d71a1(0x47f);return(await this[_0x4d71a1(0x1ee)]['post'](_0x63b516,{'body':{'requests':_0x17c8cf}}))[_0x4d71a1(0x25a)][_0x4d71a1(0x33d)];}async[_0x182123(0x2a7)](_0x771009){const _0x583bcb=_0x182123,_0x2af882=this['_getAPIPrefixPath']()+'/'+_0x771009[_0x583bcb(0x190)]+'/role',_0x160bff=await this['_HTTPService'][_0x583bcb(0x3f2)](_0x2af882,{'body':_0x771009});return{'roles':_0x160bff[_0x583bcb(0x25a)]['roles'],'actions':_0x160bff[_0x583bcb(0x25a)]['actions']};}async[_0x182123(0x1e9)](_0x73c8be){const _0x4b4606=_0x182123,_0x212d5b=this['_getAPIPrefixPath']()+_0x4b4606(0x30d);await this[_0x4b4606(0x1ee)][_0x4b4606(0x4e1)](_0x212d5b,{'params':{'collaboratorID':_0x73c8be[_0x4b4606(0x42c)],'objectID':_0x73c8be[_0x4b4606(0x50b)],'unitID':_0x73c8be[_0x4b4606(0x250)]}});}async[_0x182123(0x1a3)](_0x2cca78){const _0x1fc402=_0x182123,_0xa746bb=this['_getAPIPrefixPath']()+_0x1fc402(0x30d);await this[_0x1fc402(0x1ee)][_0x1fc402(0x28e)](_0xa746bb,{'body':_0x2cca78});}async[_0x182123(0x407)](_0xd1ac86){const _0x3750d1=_0x182123,_0x578326=this[_0x3750d1(0x21e)]()+_0x3750d1(0x30d);await this['_HTTPService'][_0x3750d1(0x3f2)](_0x578326,{'body':_0xd1ac86});}async['listCollaborators'](_0x310404){const _0x39e812=_0x182123,_0x1c6494=this['_getAPIPrefixPath']()+_0x39e812(0x30d);return(await this[_0x39e812(0x1ee)]['get'](_0x1c6494,{'params':{'objectID':_0x310404[_0x39e812(0x50b)],'unitID':_0x310404['unitID']}}))[_0x39e812(0x25a)][_0x39e812(0x1be)];}async['putCollaborators'](_0x3575eb){const _0x2ca41c=_0x182123,_0x35b983=this[_0x2ca41c(0x21e)]()+_0x2ca41c(0x30d);await this['_HTTPService'][_0x2ca41c(0x43b)](_0x35b983,{'body':_0x3575eb});}},_0x27845d[_0x182123(0x12e)]=_0x590cd8([_0x5efb7a(0x0,_0x3223aa[_0x182123(0x40e)](_0x339579['HTTPService'])),_0x5efb7a(0x1,_0x3223aa[_0x182123(0x40e)](_0x3223aa['IConfigService']))],_0x27845d[_0x182123(0x12e)]);var _0x19c729=Object[_0x182123(0x33a)],_0x57938f=Object['getOwnPropertyDescriptor'],_0x3b29f3=(_0xa3bbf9,_0xeb6a0e,_0x4bf672,_0x49de67)=>{const _0x5890c7=_0x182123;for(var _0x44688e=_0x49de67>0x1?void 0x0:_0x49de67?_0x57938f(_0xeb6a0e,_0x4bf672):_0xeb6a0e,_0x49e27c=_0xa3bbf9[_0x5890c7(0x4c3)]-0x1,_0x512e08;_0x49e27c>=0x0;_0x49e27c--)(_0x512e08=_0xa3bbf9[_0x49e27c])&&(_0x44688e=(_0x49de67?_0x512e08(_0xeb6a0e,_0x4bf672,_0x44688e):_0x512e08(_0x44688e))||_0x44688e);return _0x49de67&&_0x44688e&&_0x19c729(_0xeb6a0e,_0x4bf672,_0x44688e),_0x44688e;},_0x42f128=(_0x11ef6b,_0x6c474f)=>(_0x7cde58,_0x331b7b)=>_0x6c474f(_0x7cde58,_0x331b7b,_0x11ef6b);let _0x166d8=class{constructor(_0x24cefe){const _0x3239f0=_0x182123;this[_0x3239f0(0x427)]=_0x24cefe,this['_initRequestHeader']();}['_initRequestHeader'](){const _0x212e05=_0x182123;this[_0x212e05(0x427)]['registerHTTPInterceptor']({'interceptor':(_0x1a784e,_0x175740)=>{const _0x48fa2f=_0x212e05,_0x434bf9=_0x1a784e[_0x48fa2f(0x4bb)],_0x1096c1=_0x295b37[_0x48fa2f(0x349)]();return _0x1096c1&&_0x434bf9[_0x48fa2f(0x132)]('x-univer-host',_0x1096c1),_0x175740(_0x1a784e);}});}};_0x166d8=_0x3b29f3([_0x42f128(0x0,_0x3223aa[_0x182123(0x40e)](_0x339579[_0x182123(0x1db)]))],_0x166d8);var _0x485ff5=Object[_0x182123(0x33a)],_0xc74483=Object['getOwnPropertyDescriptor'],_0xdd0be5=(_0x4a128f,_0x5e899a,_0x2ec6c7,_0x3a5508)=>{const _0x5c3644=_0x182123;for(var _0x1d0961=_0x3a5508>0x1?void 0x0:_0x3a5508?_0xc74483(_0x5e899a,_0x2ec6c7):_0x5e899a,_0x1a0f8a=_0x4a128f[_0x5c3644(0x4c3)]-0x1,_0x20acf8;_0x1a0f8a>=0x0;_0x1a0f8a--)(_0x20acf8=_0x4a128f[_0x1a0f8a])&&(_0x1d0961=(_0x3a5508?_0x20acf8(_0x5e899a,_0x2ec6c7,_0x1d0961):_0x20acf8(_0x1d0961))||_0x1d0961);return _0x3a5508&&_0x1d0961&&_0x485ff5(_0x5e899a,_0x2ec6c7,_0x1d0961),_0x1d0961;},_0x4d3ad8=(_0x1161c9,_0x3adb81)=>(_0x3e3046,_0x5409f2)=>_0x3adb81(_0x3e3046,_0x5409f2,_0x1161c9);const _0x35c98f=[_0x182123(0x38d),'image/jpeg',_0x182123(0x1df),_0x182123(0x373),_0x182123(0x1fa)],_0x2398a1=0x5*0x400*0x400,_0x4226fe=_0x182123(0x48f),_0x210700='/universer-api/stream/file/upload',_0x827300=_0x182123(0x31d),_0x17409e=_0x182123(0x14d);_0x27845d[_0x182123(0x218)]=class{constructor(_0x297485,_0x21e4d7,_0x2eebeb){const _0x1d9019=_0x182123;_0x571923(this,_0x1d9019(0x530),0x0),_0x571923(this,_0x1d9019(0x2f2),new _0x41acaa[(_0x1d9019(0x378))]()),_0x571923(this,'change$',this[_0x1d9019(0x2f2)]),_0x571923(this,_0x1d9019(0x3e4),new Map()),(this[_0x1d9019(0x427)]=_0x297485,this[_0x1d9019(0x404)]=_0x21e4d7,this['_univerInstanceService']=_0x2eebeb);}[_0x182123(0x175)](_0x11e7f8){const _0x34ad97=_0x182123;this[_0x34ad97(0x530)]=_0x11e7f8,this[_0x34ad97(0x2f2)]['next'](_0x11e7f8);}['getImageSourceCache'](_0x566a8d,_0x18305e){const _0xafe0f6=_0x182123;if(_0x18305e===_0x52582d[_0xafe0f6(0x154)][_0xafe0f6(0x223)]){const _0x22ff0a=new Image();return _0x22ff0a[_0xafe0f6(0x1ae)]=_0x566a8d,_0x22ff0a;}return this[_0xafe0f6(0x3e4)][_0xafe0f6(0x53b)](_0x566a8d);}['addImageSourceCache'](_0x16ecec,_0x2d3060,_0x2bfc97){const _0x46bdb1=_0x182123;_0x2d3060===_0x52582d[_0x46bdb1(0x154)][_0x46bdb1(0x223)]||_0x2bfc97==null||this['_imageSourceCache'][_0x46bdb1(0x132)](_0x16ecec,_0x2bfc97);}async['getImage'](_0x6c5a16){const _0x5146ce=_0x182123;try{const _0x581943=this[_0x5146ce(0x2ff)](this[_0x5146ce(0x401)](),''+_0x6c5a16),_0x59d545=(await this[_0x5146ce(0x427)][_0x5146ce(0x53b)](_0x581943))[_0x5146ce(0x25a)];if(_0x59d545['error']&&_0x59d545[_0x5146ce(0x1b1)][_0x5146ce(0x36c)]===_0x471d59['OK']){const _0x458115=new URL(_0x59d545[_0x5146ce(0x51e)],this[_0x5146ce(0x1bc)]())[_0x5146ce(0x47c)]();return Promise[_0x5146ce(0x1d6)](_0x458115);}return Promise[_0x5146ce(0x435)](_0x59d545[_0x5146ce(0x1b1)]);}catch(_0x24c699){return Promise[_0x5146ce(0x435)](_0x24c699);}}async[_0x182123(0x421)](_0x517a27){const _0x4bd82a=_0x182123;let _0x76ff94='';if(!_0x35c98f['includes'](_0x517a27[_0x4bd82a(0x45b)]))return this[_0x4bd82a(0x371)](),Promise[_0x4bd82a(0x435)](new Error(_0x52582d['ImageUploadStatusType'][_0x4bd82a(0x53a)]));if(_0x517a27['size']>_0x2398a1)return this[_0x4bd82a(0x371)](),Promise[_0x4bd82a(0x435)](new Error(_0x52582d[_0x4bd82a(0x170)][_0x4bd82a(0x144)]));try{const _0x2f7792=new FormData();_0x2f7792[_0x4bd82a(0x148)](_0x4bd82a(0x42a),_0x517a27);const _0x5ce2c8=this[_0x4bd82a(0x348)][_0x4bd82a(0x3eb)](),_0xb7540e=_0x5ce2c8==null?void 0x0:_0x5ce2c8['getUnitId']();if(!_0xb7540e)throw new Error(_0x4bd82a(0x2fc));const _0x43f46f=this[_0x4bd82a(0x265)]()+_0x4bd82a(0x166)+_0x517a27[_0x4bd82a(0x1b9)][_0x4bd82a(0x47c)]()+_0x4bd82a(0x146)+_0x46d5bd[_0x4bd82a(0x37b)]+_0x4bd82a(0x28f)+encodeURIComponent(_0xb7540e),_0x1efaaf=await(await fetch(_0x43f46f,{'method':_0x4bd82a(0x520),'body':_0x2f7792}))[_0x4bd82a(0x525)]();if(typeof _0x1efaaf[_0x4bd82a(0x4b0)]!=_0x4bd82a(0x370))return this[_0x4bd82a(0x371)](),Promise[_0x4bd82a(0x435)](new Error(_0x52582d[_0x4bd82a(0x170)][_0x4bd82a(0x2a0)]));_0x76ff94=_0x1efaaf[_0x4bd82a(0x4b0)];}catch{return this[_0x4bd82a(0x371)](),Promise['reject'](new Error(_0x52582d[_0x4bd82a(0x170)][_0x4bd82a(0x2a0)]));}return new Promise((_0xd903f,_0x29b8cd)=>{const _0x5dcb7e=_0x4bd82a,_0x2e9990=new FileReader();_0x2e9990[_0x5dcb7e(0x413)](_0x517a27),_0x2e9990[_0x5dcb7e(0x255)]=_0x445304=>{const _0x2dd7c1=_0x5dcb7e;var _0x1e4e5d;const _0x38c938=(_0x1e4e5d=_0x445304[_0x2dd7c1(0x334)])==null?void 0x0:_0x1e4e5d[_0x2dd7c1(0x1e1)];if(_0x38c938==null){this[_0x2dd7c1(0x371)](),_0x29b8cd(new Error(_0x52582d[_0x2dd7c1(0x170)][_0x2dd7c1(0x2a0)]));return;}const _0x3cafe7=_0x3223aa[_0x2dd7c1(0x357)][_0x2dd7c1(0x492)](0x6);_0xd903f({'imageId':_0x3cafe7,'imageSourceType':_0x52582d[_0x2dd7c1(0x154)]['UUID'],'source':_0x76ff94,'base64Cache':_0x38c938,'status':_0x52582d[_0x2dd7c1(0x170)]['SUCCUSS']}),this[_0x2dd7c1(0x371)]();};});}[_0x182123(0x265)](){const _0x400673=_0x182123;var _0x17fb58,_0x5c187a;const _0x3f8416=this[_0x400673(0x404)][_0x400673(0x422)](_0x4226fe),_0x4001c9=this['_configService'][_0x400673(0x422)](_0x183913);return(_0x5c187a=(_0x17fb58=_0x4001c9==null?void 0x0:_0x4001c9[_0x400673(0x319)])!=null?_0x17fb58:_0x3f8416)!=null?_0x5c187a:_0x210700;}[_0x182123(0x401)](){const _0x20c044=_0x182123;var _0x5cd24d,_0x2fc61d;const _0x5ecb65=this[_0x20c044(0x404)][_0x20c044(0x422)](_0x827300),_0x57c87b=this[_0x20c044(0x404)][_0x20c044(0x422)](_0x183913);return(_0x2fc61d=(_0x5cd24d=_0x57c87b==null?void 0x0:_0x57c87b['signUrlServerUrl'])!=null?_0x5cd24d:_0x5ecb65)!=null?_0x2fc61d:_0x17409e;}[_0x182123(0x1bc)](){const _0x3837f0=_0x182123;var _0x4d9b63;const _0x55f43f=this['_configService']['getConfig'](_0x183913);return(_0x4d9b63=_0x55f43f==null?void 0x0:_0x55f43f[_0x3837f0(0x46c)])!=null?_0x4d9b63:location[_0x3837f0(0x3d1)];}['_replaceFileID'](_0x51f7cd,_0x1254a7){const _0x2bcae3=_0x182123;return _0x51f7cd[_0x2bcae3(0x2fe)](_0x2bcae3(0x39b),_0x1254a7);}[_0x182123(0x371)](){const _0x2cdcd3=_0x182123;this[_0x2cdcd3(0x530)]-=0x1,this[_0x2cdcd3(0x2f2)][_0x2cdcd3(0x2e5)](this['_waitCount']);}},_0x27845d['ImageIoService']=_0xdd0be5([_0x4d3ad8(0x0,_0x3223aa[_0x182123(0x40e)](_0x339579[_0x182123(0x1db)])),_0x4d3ad8(0x1,_0x3223aa[_0x182123(0x531)]),_0x4d3ad8(0x2,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x247)]))],_0x27845d[_0x182123(0x218)]);var _0x4ae40f=Object[_0x182123(0x33a)],_0x1ffff8=Object['getOwnPropertyDescriptor'],_0x3f3602=(_0x3e3368,_0x37688e,_0x55d79e,_0x6208e3)=>{const _0x58d1da=_0x182123;for(var _0x159f87=_0x6208e3>0x1?void 0x0:_0x6208e3?_0x1ffff8(_0x37688e,_0x55d79e):_0x37688e,_0xc1bfe4=_0x3e3368[_0x58d1da(0x4c3)]-0x1,_0x5ad13c;_0xc1bfe4>=0x0;_0xc1bfe4--)(_0x5ad13c=_0x3e3368[_0xc1bfe4])&&(_0x159f87=(_0x6208e3?_0x5ad13c(_0x37688e,_0x55d79e,_0x159f87):_0x5ad13c(_0x159f87))||_0x159f87);return _0x6208e3&&_0x159f87&&_0x4ae40f(_0x37688e,_0x55d79e,_0x159f87),_0x159f87;},_0x1dc197=(_0x515c5d,_0x368917)=>(_0x35f1e9,_0x3304c3)=>_0x368917(_0x35f1e9,_0x3304c3,_0x515c5d);let _0x43ea2b=class extends _0x3223aa['RxDisposable']{constructor(_0x3a7b96,_0x14960d,_0x26888d,_0x59f53c,_0x3f3a62){const _0x4400c6=_0x182123;super(),this[_0x4400c6(0x526)]=_0x3a7b96,this[_0x4400c6(0x348)]=_0x14960d,this[_0x4400c6(0x2db)]=_0x26888d,this[_0x4400c6(0x473)]=_0x59f53c,this[_0x4400c6(0x29b)]=_0x3f3a62,this[_0x4400c6(0x468)](),this[_0x4400c6(0x3e5)]();}[_0x182123(0x3e5)](){const _0xcf63a9=_0x182123,_0x1f5357=async _0x2d7eba=>{const _0x2aef18=_0x2e84;(await this[_0x2aef18(0x473)][_0x2aef18(0x31f)](_0x2d7eba))[_0x2aef18(0x36e)]['pipe'](_0xe02055[_0x2aef18(0x22a)](_0x5103bd=>_0x5103bd[_0x2aef18(0x138)]===_0x502235['CollaborationEvent'][_0x2aef18(0x26d)]),_0xe02055['takeUntil'](this[_0x2aef18(0x4ef)]))[_0x2aef18(0x10e)](_0x1a8d9a=>{const _0xc638d7=_0x2aef18,_0x5c48cb=_0x1a8d9a,{reason:_0x219f3c}=_0x5c48cb['data'];this[_0xc638d7(0x526)][_0xc638d7(0x53b)](_0x19d837[_0xc638d7(0x31b)])[_0xc638d7(0x2a4)]({'type':_0x4d822f[_0xc638d7(0x23f)][_0xc638d7(0x189)],'content':this[_0xc638d7(0x29b)]['t'](_0xc638d7(0x3e9))+'('+_0x219f3c+')'}),this[_0xc638d7(0x2db)][_0xc638d7(0x3ad)](new _0x4f46f0[(_0xc638d7(0x4d3))](_0x2d7eba)['id'],!0x1),this[_0xc638d7(0x473)]['closeSession'](_0x2d7eba);});};_0x41acaa[_0xcf63a9(0x1ce)](this[_0xcf63a9(0x348)][_0xcf63a9(0x2f4)](_0x3223aa[_0xcf63a9(0x4b9)][_0xcf63a9(0x2d4)]),this[_0xcf63a9(0x348)][_0xcf63a9(0x2f4)](_0x3223aa[_0xcf63a9(0x4b9)]['UNIVER_DOC']))[_0xcf63a9(0x493)](_0xe02055['map'](_0x514629=>_0x514629[_0xcf63a9(0x27a)]()),_0xe02055[_0xcf63a9(0x22a)](_0x56f822=>!_0x3223aa[_0xcf63a9(0x44f)](_0x56f822)),_0xe02055[_0xcf63a9(0x410)](this[_0xcf63a9(0x4ef)]))['subscribe'](_0x37dcc7=>{_0x1f5357(_0x37dcc7);});}[_0x182123(0x468)](){const _0x3f3102=_0x182123,_0x4bdc46=async _0x614c44=>{const _0x345352=_0x2e84;(await this[_0x345352(0x473)][_0x345352(0x31f)](_0x614c44))['event$'][_0x345352(0x493)](_0xe02055[_0x345352(0x22a)](_0x336656=>_0x336656[_0x345352(0x138)]===_0x502235['CollaborationEvent'][_0x345352(0x45e)]),_0xe02055['takeUntil'](this['dispose$']))[_0x345352(0x10e)](_0x248b2e=>{const _0x4549eb=_0x345352,_0x42279b=_0x248b2e,{objectId:_0x566da3}=_0x42279b['data'],_0x8b943c=this[_0x4549eb(0x526)][_0x4549eb(0x53b)](_0x166b0e[_0x4549eb(0x52e)]);_0x566da3===_0x614c44?_0x8b943c['initWorkbookPermissionChange'](_0x614c44):_0x8b943c['refreshPermission'](_0x614c44,_0x566da3);});};_0x41acaa[_0x3f3102(0x1ce)](this[_0x3f3102(0x348)][_0x3f3102(0x2f4)](_0x3223aa['UniverInstanceType'][_0x3f3102(0x2d4)]),this[_0x3f3102(0x348)][_0x3f3102(0x2f4)](_0x3223aa[_0x3f3102(0x4b9)][_0x3f3102(0x1c3)]))[_0x3f3102(0x493)](_0xe02055[_0x3f3102(0x486)](_0x5e05eb=>_0x5e05eb[_0x3f3102(0x27a)]()),_0xe02055['filter'](_0x4daedb=>!_0x3223aa[_0x3f3102(0x44f)](_0x4daedb)),_0xe02055[_0x3f3102(0x410)](this[_0x3f3102(0x4ef)]))[_0x3f3102(0x10e)](_0x13cc8c=>{_0x4bdc46(_0x13cc8c);});}};_0x43ea2b=_0x3f3602([_0x1dc197(0x0,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x1dc197(0x1,_0x3223aa[_0x182123(0x247)]),_0x1dc197(0x2,_0x3223aa[_0x182123(0x230)]),_0x1dc197(0x3,_0x3223aa[_0x182123(0x40e)](_0x27845d[_0x182123(0x3c7)])),_0x1dc197(0x4,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x1dd)]))],_0x43ea2b);var _0x5d672a=Object[_0x182123(0x33a)],_0xb3aca2=Object[_0x182123(0x363)],_0xf13c4d=(_0x46eadb,_0x9acfb7,_0x3ac021,_0x43d9e8)=>{const _0x2f93e5=_0x182123;for(var _0x27c22e=_0x43d9e8>0x1?void 0x0:_0x43d9e8?_0xb3aca2(_0x9acfb7,_0x3ac021):_0x9acfb7,_0x42855d=_0x46eadb[_0x2f93e5(0x4c3)]-0x1,_0x5bdfe4;_0x42855d>=0x0;_0x42855d--)(_0x5bdfe4=_0x46eadb[_0x42855d])&&(_0x27c22e=(_0x43d9e8?_0x5bdfe4(_0x9acfb7,_0x3ac021,_0x27c22e):_0x5bdfe4(_0x27c22e))||_0x27c22e);return _0x43d9e8&&_0x27c22e&&_0x5d672a(_0x9acfb7,_0x3ac021,_0x27c22e),_0x27c22e;},_0x31b075=(_0x1717e9,_0x24f408)=>(_0x458fe5,_0x2bc302)=>_0x24f408(_0x458fe5,_0x2bc302,_0x1717e9);_0x27845d[_0x182123(0x1d8)]=class{constructor(_0x44a751,_0x24fbbf){const _0x223bf2=_0x182123;this[_0x223bf2(0x404)]=_0x44a751,this[_0x223bf2(0x427)]=_0x24fbbf;}async[_0x182123(0x2a5)](_0x227e9b,_0x35ef63){const _0x499ccb=_0x182123;var _0x45aad3;const {unitID:_0x11b4b4,type:_0x11ef48,revision:_0x46cf3b=0x0}=_0x35ef63,_0x2a0fea=this[_0x499ccb(0x472)]()+'/'+_0x11ef48+_0x499ccb(0x4c4)+_0x11b4b4+'/rev/'+_0x46cf3b,_0x342c1c=(await this['_httpService']['get'](_0x2a0fea))[_0x499ccb(0x25a)],_0x3e9189=(_0x45aad3=_0x342c1c[_0x499ccb(0x1d5)])==null?void 0x0:_0x45aad3[_0x499ccb(0x42b)];if(_0x3e9189){const _0x21438a=_0x3e9189==null?void 0x0:_0x3e9189[_0x499ccb(0x1a9)],_0x38c131=_0x502235[_0x499ccb(0x15b)][_0x499ccb(0x2b1)](_0x502235[_0x499ccb(0x29f)](_0x21438a));_0x3e9189[_0x499ccb(0x1a9)]=_0x38c131,Object[_0x499ccb(0x27d)](_0x3e9189[_0x499ccb(0x232)])[_0x499ccb(0x19f)](([,_0xd93589])=>{const _0x5dd18c=_0x499ccb,_0x2f7e44=_0xd93589[_0x5dd18c(0x1a9)],_0x524c70=_0x502235[_0x5dd18c(0x15b)]['encode'](_0x502235[_0x5dd18c(0x29f)](_0x2f7e44));_0xd93589[_0x5dd18c(0x1a9)]=_0x524c70;});}return _0x342c1c;}async[_0x182123(0x19e)](_0x669319,_0x1072f2){const _0x2b8915=_0x182123,{unitID:_0x4b4e85,type:_0x50e025,blockID:_0x545f05}=_0x1072f2,_0x348945=this['_getAPIPrefix']()+'/'+_0x50e025+_0x2b8915(0x4c4)+_0x4b4e85+_0x2b8915(0x2d8)+_0x545f05;return(await this['_httpService']['get'](_0x348945))[_0x2b8915(0x25a)];}async[_0x182123(0x505)](_0x405300,_0x27b584){const _0x51d076=_0x182123,{unitID:_0x1e9b0c,type:_0xbbc49e,blockID:_0x3f65aa}=_0x27b584,_0x253c6b=this[_0x51d076(0x4fd)]()+_0x51d076(0x2d8)+_0xbbc49e+_0x51d076(0x4c4)+_0x1e9b0c+_0x51d076(0x2d8)+_0x3f65aa;return(await this[_0x51d076(0x427)]['get'](_0x253c6b))[_0x51d076(0x25a)];}async[_0x182123(0x466)](_0x108061,_0x1abc06){const _0x463e29=_0x182123,{unitID:_0x694f91,type:_0x19a54e,from:_0x24dd97,to:_0x2e32f8}=_0x1abc06,_0x46b53e=this[_0x463e29(0x4fd)]()+'/'+_0x19a54e+_0x463e29(0x4c4)+_0x694f91+'/fetchmissing?from='+_0x24dd97+_0x463e29(0x314)+_0x2e32f8;return(await this[_0x463e29(0x427)]['get'](_0x46b53e))['body'];}[_0x182123(0x472)](){const _0x5e3c8e=_0x182123;var _0x41e67a;return(_0x41e67a=this[_0x5e3c8e(0x404)][_0x5e3c8e(0x422)](_0x236963))!=null?_0x41e67a:this[_0x5e3c8e(0x4fd)]();}[_0x182123(0x4fd)](){const _0xa26b6=_0x182123;var _0x30ec01,_0x2867f3;const _0x25d3ba=this[_0xa26b6(0x404)][_0xa26b6(0x422)](_0x393c92),_0xf28105=this[_0xa26b6(0x404)][_0xa26b6(0x422)](_0x183913);return(_0x2867f3=(_0x30ec01=_0xf28105==null?void 0x0:_0xf28105[_0xa26b6(0x3c4)])!=null?_0x30ec01:_0x25d3ba)!=null?_0x2867f3:_0x272feb;}async[_0x182123(0x353)](_0x16df92,_0xb747b8){const _0x539ee4=_0x182123,_0x30904d=_0x539ee4(0x4e3)+_0xb747b8['type']+_0x539ee4(0x4c4)+_0xb747b8[_0x539ee4(0x250)]+'/resources';return(await this[_0x539ee4(0x427)]['get'](_0x30904d,{'params':{'resourceId':JSON[_0x539ee4(0x17d)](_0xb747b8[_0x539ee4(0x34c)])}}))[_0x539ee4(0x25a)];}[_0x182123(0x54a)](){const _0x5ca3cb=_0x182123;throw new Error(_0x5ca3cb(0x46d));}[_0x182123(0x3c2)](){const _0x40fd0b=_0x182123;throw new Error(_0x40fd0b(0x46d));}['saveChangeset'](){const _0x1f14b6=_0x182123;throw new Error(_0x1f14b6(0x46d));}[_0x182123(0x3d7)](){const _0x1faab6=_0x182123;throw new Error(_0x1faab6(0x46d));}[_0x182123(0x1e3)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},_0x27845d[_0x182123(0x1d8)]=_0xf13c4d([_0x31b075(0x0,_0x3223aa[_0x182123(0x531)]),_0x31b075(0x1,_0x3223aa[_0x182123(0x40e)](_0x339579[_0x182123(0x1db)]))],_0x27845d['SnapshotServerOverHTTPService']);var _0x499f86=Object[_0x182123(0x33a)],_0xcc87ce=Object[_0x182123(0x363)],_0x2b1f8b=(_0x3a641f,_0x20a87e,_0x387e1c,_0x5039b1)=>{const _0x59cbd8=_0x182123;for(var _0x277c46=_0x5039b1>0x1?void 0x0:_0x5039b1?_0xcc87ce(_0x20a87e,_0x387e1c):_0x20a87e,_0xb79389=_0x3a641f[_0x59cbd8(0x4c3)]-0x1,_0x184d1c;_0xb79389>=0x0;_0xb79389--)(_0x184d1c=_0x3a641f[_0xb79389])&&(_0x277c46=(_0x5039b1?_0x184d1c(_0x20a87e,_0x387e1c,_0x277c46):_0x184d1c(_0x277c46))||_0x277c46);return _0x5039b1&&_0x277c46&&_0x499f86(_0x20a87e,_0x387e1c,_0x277c46),_0x277c46;},_0x4613f3=(_0x27e7db,_0x587d44)=>(_0x4a6f04,_0x2c06a5)=>_0x587d44(_0x4a6f04,_0x2c06a5,_0x27e7db);let _0x3fef04=class extends _0x3223aa[_0x182123(0x34a)]{constructor(_0x41f826,_0x12bd55,_0xcde3fa,_0x3855bd,_0x56e194){const _0x2f341b=_0x182123;super(_0x41f826,_0x12bd55,_0xcde3fa),this[_0x2f341b(0x2b5)]=_0x3855bd,this[_0x2f341b(0x397)]=_0x56e194;}[_0x182123(0x507)](_0x3f1b3a,_0xb465b6){const _0x35cf0c=_0x182123,_0x292641=this['_getUndoStack'](_0x3f1b3a);if(_0x292641)try{const _0x210b86=this['_transformStack'](_0x292641,_0xb465b6);this[_0x35cf0c(0x442)](_0x3f1b3a,_0x210b86);}catch(_0x3e43ca){this[_0x35cf0c(0x397)][_0x35cf0c(0x1b1)](_0x35cf0c(0x2d9),_0x3e43ca),this[_0x35cf0c(0x536)](_0x3f1b3a);}const _0x52cf8e=this['_getRedoStack'](_0x3f1b3a);if(_0x52cf8e)try{const _0x1f12ee=this[_0x35cf0c(0x360)](_0x52cf8e,_0xb465b6);this['_substituteRedoStack'](_0x3f1b3a,_0x1f12ee);}catch(_0x258a53){this['_logService'][_0x35cf0c(0x1b1)](_0x258a53),this[_0x35cf0c(0x172)](_0x3f1b3a);}}['_clearUndo'](_0x4e88e4){const _0x23c9ed=_0x182123,_0x288a73=this['_getUndoStack'](_0x4e88e4);_0x288a73&&(_0x288a73[_0x23c9ed(0x4c3)]=0x0,this[_0x23c9ed(0x226)]());}[_0x182123(0x172)](_0x94b7f2){const _0x2845c2=_0x182123,_0x146fee=this[_0x2845c2(0x245)](_0x94b7f2);_0x146fee&&(_0x146fee[_0x2845c2(0x4c3)]=0x0,this[_0x2845c2(0x226)]());}['_substituteUndoStack'](_0x2c5c09,_0x3c68a5){const _0x233ab9=_0x182123;this[_0x233ab9(0x364)][_0x233ab9(0x132)](_0x2c5c09,_0x3c68a5),this[_0x233ab9(0x226)]();}['_substituteRedoStack'](_0x45b25e,_0x137145){const _0x24fcc3=_0x182123;this[_0x24fcc3(0x352)]['set'](_0x45b25e,_0x137145),this[_0x24fcc3(0x226)]();}[_0x182123(0x360)](_0x351074,_0x197e05){const _0x3aa782=_0x182123,_0x44f303=[];let _0x215a39=_0x197e05,_0x5d83b9=_0x197e05;for(let _0x15b91c=_0x351074[_0x3aa782(0x4c3)]-0x1;_0x15b91c>=0x0;_0x15b91c--){const {unitID:_0x34f258,undoMutations:_0x1a9b48,redoMutations:_0x5b7077}=_0x351074[_0x15b91c],_0x3230a9=this[_0x3aa782(0x2b5)]['transformMutationsWithChangeset'](_0x215a39,_0x1a9b48),_0x806b25=this[_0x3aa782(0x2b5)][_0x3aa782(0x419)](_0x5d83b9,_0x5b7077);if(_0x502235[_0x3aa782(0x2ac)](_0x3230a9)||_0x502235[_0x3aa782(0x2ac)](_0x806b25)){this[_0x3aa782(0x397)][_0x3aa782(0x1b1)](_0x3aa782(0x2d9),'transformStack\x20failed!',_0x3230a9,_0x806b25);break;}_0x215a39=_0x3230a9['c1Prime'],_0x5d83b9=_0x806b25[_0x3aa782(0x490)],_0x44f303[_0x3aa782(0x2fb)]({'unitID':_0x34f258,'undoMutations':_0x3230a9[_0x3aa782(0x35b)],'redoMutations':_0x806b25['m2Prime']});}return _0x44f303[_0x3aa782(0x181)]();}};_0x3fef04=_0x2b1f8b([_0x4613f3(0x0,_0x3223aa[_0x182123(0x247)]),_0x4613f3(0x1,_0x3223aa[_0x182123(0x23b)]),_0x4613f3(0x2,_0x3223aa['IContextService']),_0x4613f3(0x3,_0x502235['ITransformService']),_0x4613f3(0x4,_0x3223aa[_0x182123(0x3bf)])],_0x3fef04);class _0x2bc96c extends _0x3223aa[_0x182123(0x4a9)]{constructor(){const _0x22b354=_0x182123;super(),_0x571923(this,_0x22b354(0x4c9)),this[_0x22b354(0x4c9)]=_0x41acaa[_0x22b354(0x289)](window,_0x22b354(0x45d))[_0x22b354(0x493)](_0x41acaa['takeUntil'](this[_0x22b354(0x4ef)]),_0x41acaa[_0x22b354(0x4ff)](0x1),_0x41acaa['mapTo'](void 0x0));}[_0x182123(0x4d9)](_0x299c3e,_0xb3efe0,_0x1eb78e=!0x1){const _0xa3bab6=_0x182123,_0x2c5621=new URL(window['location'][_0xa3bab6(0x1a8)]);_0x2c5621[_0xa3bab6(0x196)][_0xa3bab6(0x132)](_0x299c3e,_0xb3efe0),_0x1eb78e?window['history'][_0xa3bab6(0x20c)]('','',_0x2c5621[_0xa3bab6(0x47c)]()):window[_0xa3bab6(0x3b2)][_0xa3bab6(0x2b3)]('','',_0x2c5621[_0xa3bab6(0x47c)]());}[_0x182123(0x162)](_0x3d3f7a,_0x3c1c08=!0x1){const _0xcbf406=_0x182123,_0x3385a3=new URL(window[_0xcbf406(0x4fe)][_0xcbf406(0x1a8)]);_0x3385a3[_0xcbf406(0x196)][_0xcbf406(0x4e1)](_0x3d3f7a),_0x3c1c08?window[_0xcbf406(0x3b2)]['replaceState']('','',_0x3385a3['toString']()):window[_0xcbf406(0x3b2)][_0xcbf406(0x2b3)]('','',_0x3385a3[_0xcbf406(0x47c)]());}['getParam'](_0x253563){const _0x559827=_0x182123;var _0xa26f63;return(_0xa26f63=new URL(window[_0x559827(0x4fe)][_0x559827(0x1a8)])['searchParams'][_0x559827(0x53b)](_0x253563))!=null?_0xa26f63:void 0x0;}}var _0x4c6d00=Object['defineProperty'],_0x149662=Object[_0x182123(0x363)],_0x1bfb12=(_0x4aa515,_0x3f9da0,_0x4b95ec)=>_0x3f9da0 in _0x4aa515?_0x4c6d00(_0x4aa515,_0x3f9da0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b95ec}):_0x4aa515[_0x3f9da0]=_0x4b95ec,_0x52e9e1=(_0x19e468,_0x517659,_0x2b2f0f,_0x2068a4)=>{const _0x16a56a=_0x182123;for(var _0x55732a=_0x2068a4>0x1?void 0x0:_0x2068a4?_0x149662(_0x517659,_0x2b2f0f):_0x517659,_0x16b662=_0x19e468[_0x16a56a(0x4c3)]-0x1,_0x3355f1;_0x16b662>=0x0;_0x16b662--)(_0x3355f1=_0x19e468[_0x16b662])&&(_0x55732a=(_0x2068a4?_0x3355f1(_0x517659,_0x2b2f0f,_0x55732a):_0x3355f1(_0x55732a))||_0x55732a);return _0x2068a4&&_0x55732a&&_0x4c6d00(_0x517659,_0x2b2f0f,_0x55732a),_0x55732a;},_0x6f30fa=(_0x4b4f01,_0x130b18)=>(_0x4471d3,_0x58eb13)=>_0x130b18(_0x4471d3,_0x58eb13,_0x4b4f01),_0x20c02a=(_0x2ef62b,_0x52eed1,_0x45e938)=>_0x1bfb12(_0x2ef62b,_0x52eed1+'',_0x45e938);const _0x208b06=_0x182123(0x3cf);_0x27845d[_0x182123(0x192)]=class extends _0x3223aa[_0x182123(0x4f8)]{constructor(_0x4ea33d=_0x2e3dd5,_0x2289d2,_0x9703b,_0x309ec5,_0x2bb00f){const _0x4a8f4c=_0x182123;super(),this['_config']=_0x4ea33d,this['_logService']=_0x2289d2,this[_0x4a8f4c(0x39e)]=_0x9703b,this[_0x4a8f4c(0x526)]=_0x309ec5,this[_0x4a8f4c(0x404)]=_0x2bb00f;const {..._0x14f75f}=this[_0x4a8f4c(0x431)];this['_configService'][_0x4a8f4c(0x47a)](_0x183913,_0x14f75f);}[_0x182123(0x3a6)](){const _0x52f988=_0x182123;this[_0x52f988(0x21a)](),_0x3223aa[_0x52f988(0x2a2)](this[_0x52f988(0x526)],[[_0x5a312c],[_0x27845d[_0x52f988(0x4ab)]],[_0x43ea2b]]);}[_0x182123(0x185)](){_0x3223aa['touchDependencies'](this['_injector'],[[_0x552a78]]);}['onRendered'](){const _0x1be77a=_0x182123;this[_0x1be77a(0x4b6)]();}[_0x182123(0x21a)](){const _0xc72a21=_0x182123;var _0x1de2ee,_0x5ac1bc,_0x138bb1,_0x2007cc;this['_injector'][_0xc72a21(0x39c)](_0x3223aa[_0xc72a21(0x3d5)])&&this[_0xc72a21(0x397)][_0xc72a21(0x1b1)](_0xc72a21(0x18a),_0xc72a21(0x469));let _0x10c6e9=[[_0x3223aa[_0xc72a21(0x3d5)],{'useClass':_0x3fef04}],[_0x27845d[_0xc72a21(0x3c7)]],[_0x38c784],[_0x339579[_0xc72a21(0x1db)]],[_0x38ca16,{'useClass':_0x2bc96c}],[_0x842f02],[_0x27845d[_0xc72a21(0x199)]],[_0x339579[_0xc72a21(0x3ff)]],[_0x38921c],[_0x427d95],[_0x136308],[_0x729593],[_0x363794],[_0x166d8],[_0x49bccd],[_0x43ea2b],[_0x46719b,{'useClass':(_0x5ac1bc=(_0x1de2ee=this[_0xc72a21(0x431)])==null?void 0x0:_0x1de2ee[_0xc72a21(0x311)])!=null?_0x5ac1bc:_0x27845d['CollaborationSocketService']}],[_0x339579['IHTTPImplementation'],{'useClass':_0x339579[_0xc72a21(0x1b2)]}],[_0x502235[_0xc72a21(0x49d)],{'useClass':_0x27845d[_0xc72a21(0x1d8)]}],[_0x3223aa[_0xc72a21(0x365)],{'useClass':_0x27845d['AuthzIoHttpService']}],[_0x52582d[_0xc72a21(0x4d1)],{'useClass':_0x27845d[_0xc72a21(0x218)]}],[_0x27845d[_0xc72a21(0x30b)]],[_0x27845d[_0xc72a21(0x4ab)]],[_0x27845d['DesktopCollaborationStatusDisplayController']],[_0x552a78],[_0x5a312c]];(_0x138bb1=this[_0xc72a21(0x431)])!=null&&_0x138bb1[_0xc72a21(0x2e9)]&&_0x10c6e9[_0xc72a21(0x2fb)]([_0x49a942,{'useClass':_0x5e3f39}]),_0x10c6e9=_0x3223aa[_0xc72a21(0x149)](_0x10c6e9,(_0x2007cc=this['_config'])==null?void 0x0:_0x2007cc[_0xc72a21(0x36a)]),_0x10c6e9[_0xc72a21(0x19f)](_0x347d91=>this[_0xc72a21(0x526)]['add'](_0x347d91)),this[_0xc72a21(0x21f)]();}[_0x182123(0x4b6)](){const _0x2ed397=_0x182123;this[_0x2ed397(0x2c6)](this[_0x2ed397(0x39e)]['registerRenderModule'](_0x3223aa['UniverInstanceType'][_0x2ed397(0x1c3)],[_0x505fb8])),this[_0x2ed397(0x2c6)](this[_0x2ed397(0x39e)]['registerRenderModule'](_0x3223aa['UniverInstanceType'][_0x2ed397(0x2d4)],[_0x5db2cc]));}['_initModules'](){const _0x5cae4d=_0x182123;var _0x5608bd,_0x4521a4;this[_0x5cae4d(0x526)][_0x5cae4d(0x53b)](_0x339579[_0x5cae4d(0x1db)])[_0x5cae4d(0x312)]({'priority':0x14,'interceptor':_0x339579[_0x5cae4d(0x1f6)]({'maxParallel':0x6})}),this[_0x5cae4d(0x526)][_0x5cae4d(0x53b)](_0x166d8),(_0x5608bd=this[_0x5cae4d(0x431)])!=null&&_0x5608bd[_0x5cae4d(0x264)]||this[_0x5cae4d(0x526)]['get'](_0x27845d['LocalCacheService'])['disableLocalCache'](),(_0x4521a4=this[_0x5cae4d(0x431)])!=null&&_0x4521a4[_0x5cae4d(0x508)]&&this[_0x5cae4d(0x526)]['get'](_0x363794),this[_0x5cae4d(0x526)]['get'](_0x27845d[_0x5cae4d(0x30b)]),this[_0x5cae4d(0x526)][_0x5cae4d(0x39c)](_0x27845d[_0x5cae4d(0x1f1)])&&this[_0x5cae4d(0x526)][_0x5cae4d(0x53b)](_0x27845d['DesktopCollaborationStatusDisplayController']);}},_0x20c02a(_0x27845d['UniverCollaborationClientPlugin'],_0x182123(0x2c7),_0x208b06),_0x27845d[_0x182123(0x192)]=_0x52e9e1([_0x3223aa[_0x182123(0x213)](_0x502235['UniverCollaborationPlugin']),_0x6f30fa(0x1,_0x3223aa['ILogService']),_0x6f30fa(0x2,_0x20af9e[_0x182123(0x444)]),_0x6f30fa(0x3,_0x3223aa['Inject'](_0x3223aa[_0x182123(0x14a)])),_0x6f30fa(0x4,_0x3223aa['IConfigService'])],_0x27845d[_0x182123(0x192)]),_0x27845d['AUTHZ_URL_KEY']=_0x7c1155,_0x27845d[_0x182123(0x514)]=_0x19bb96,_0x27845d[_0x182123(0x547)]=_0x59775a,_0x27845d['CollaborationStatus']=_0x12b363,_0x27845d[_0x182123(0x1c6)]=_0x2411f5,_0x27845d[_0x182123(0x375)]=_0x49bccd,_0x27845d[_0x182123(0x2c8)]=_0x4c4485,_0x27845d[_0x182123(0x120)]=_0x3cbca8,_0x27845d['ICollaborationSocketService']=_0x46719b,_0x27845d[_0x182123(0x304)]=_0x38ca16,_0x27845d['LOCAL_CACHE_INTERVAL_KEY']=_0x45a061,_0x27845d['LOGIN_URL_KEY']=_0x4f9925,_0x27845d[_0x182123(0x212)]=_0x433296,_0x27845d['SEND_CHANGESET_TIMEOUT_KEY']=_0x3a6e9c,_0x27845d[_0x182123(0x488)]=_0x393c92,_0x27845d[_0x182123(0x376)]=_0x236963,_0x27845d['SessionStatus']=_0x49249e,_0x27845d[_0x182123(0x4ca)]=_0x3ce3f1,_0x27845d[_0x182123(0x544)]=_0x2bc96c,_0x27845d[_0x182123(0x538)]=_0x534327,_0x27845d['serializeCombRequest']=_0x5f417a,Object[_0x182123(0x33a)](_0x27845d,Symbol[_0x182123(0x2dc)],{'value':_0x182123(0x52f)});}));
1
+ function _0x104b(_0x2122b3,_0x268242){const _0xbff20d=_0xbff2();return _0x104b=function(_0x104bc7,_0x364e19){_0x104bc7=_0x104bc7-0xf7;let _0x4f26fc=_0xbff20d[_0x104bc7];return _0x4f26fc;},_0x104b(_0x2122b3,_0x268242);}function _0xbff2(){const _0x4a46ea=['_syncEditingCollabCursorService','ERROR_IMAGE_TYPE','[CollaborationEntity]','ranges','subUnitId','UserManagerService','getAncestorScale','useObservable','/universer-api/authz','_shouldReportTelemetry','result','EXCHANGE_SIGN_URL_SERVER_URL_KEY','DependentOn','_retryConnectingTimer','_incrementRevisionNumber','column','0\x200\x2017\x2016','_colorIndex','red300','getActiveRange','_docTransformSelectionsService','IBeforeCloseService','LOCAL_CACHE_INTERVAL_KEY','post','_setupSubUnitSync','89221vvSrUU','forEach','transform','_cursorInfo$','RevisionService','UniverDocsUi','SetWorksheetActivateCommand','_getAnchorBounding','UNIVER_PROJECT','SheetsSelectionsService','snapshotServerUrl','exhaustSavingTask','sheetID','/block/','APPLY_NON_SEQUENTIAL_REVISION','executeCommand','getUnitStatus$','replace','indexOf','close','pipe','collabWebSocketUrl','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','hovered','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','initWorkbookPermissionChange','unitId\x20is\x20not\x20found','unshift','PERMISSION_REJ','ENSURE_SNAPSHOT_EXECUTION','cmd','YUUMI_URL_COL_OUT_OF_RANGE','ALREADY_EXISTS','[CollaborationSessionService]:\x20socket\x20error','UniverSheets','LIVESHARE_TERMINATE','localeService','isActive','_lockTransition','PERMISSION_DENIED','MessageType','RETRY_CONNECTING_MAX_COUNT_KEY','generateRandomId','findNodePositionByCharIndex','_init','HEARTBEAT_INTERVAL_KEY','take','session.room-full','touchDependencies','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_transformSelections','_beforeCloseService','isTransformChangesetsSuccess','IRenderManagerService','_sheetSkeletonManagerService','onRemoteRej','_revisionService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','session','currentTheme$','_pendingMutations','action','_onRefRangeChange','_loadSheet','currentColor','_disableEditing','_undoRedoService','registerRefRange','[SyncedState]:\x20received\x20acknowledgement.','svg','connection\x20error','Rect','Plugin','LIVESHARE_OPERATION','onTransformSelections','@univerjs/design','UniverCollaborationClientPlugin','UniverLicense','LIVESHARE_REQUEST_HOST','_listenToOfflineEvent','CHANGESET_SHOULD_RETRY','2046919mqgKlf','getCollabEntity','_shapes','_context','disposeUnit','subunit','memberID','switchMap','distinctUntilChanged','catch','subscribeEvent','concat','onload','_sessionStatus$','_entities','getUnitType','getCollabEntity$','restore','TOO_MANY_REQUESTS','_telemetryInfo','_clearCollaborationTimeoutTimer','clearTimeout','getItem','_clearOtherTimers','error$','@univerjs/docs-ui','getImageSourceCache','UNIVER_SLIDE','_onFetchMissResult','fetchThroughInterceptors','div','?url=','replaceState','push','registerBeforeClose','_sendHeartbeatTimer','cursorInfo','@univerjs/sheets-ui','pushState','getFocusedUnit','stopTime','_retryCount','status$','assignAColorForMemberID','closeSession','univer-pro.collaboration-client-socket-service','[UniverCollaborationClientPlugin]','prototype','_clearScheduledTask','_selfUnitIDs','createElement','with','collaborators','CommentService','FETCH_MISSING','_onCursorUpdate','roomInfos','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','UniverInstanceType','_isPermissionRej','_rescheduleHeartbeat','routeKey','_onRecvEvent','DocSelectionManagerService','#fff','1em','updateCollaborator','mutations','_registerDependencies','selection','map','POST','saveOfflineData','_type','ImageSourceType','hide','getUnitOnRev','SNAPSHOT_URL_KEY','setShapeProps','image/png','_startSheetCollabCursor','unitId','_transformUndoRedoStack','transformSelections','Optional','_getDownloadEndpointURL','_clearLocalCache','substring','_urlService','getSheetBySheetId','getCoordByCell','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','attrs','startsWith','awaiting_with_pending','addEventListener','sendChangesetTimeout','onSendChangeset','SetDocZoomRatioOperation','ILogService','_drawTextRange','_localStorageService','reverse','_anchorDot','entries','headers','_candidateSocket','/rev/','objectType','handleInsertRangeMoveRight','getSheetObject','conflict','loadOfflineData','_getSignURL','commentUpdate$','ERROR_EXCEED_SIZE','_initModules','NOT_FOUND','@univerjs-pro/collaboration','fromEvent','INotificationService','hasOwnProperty','loginUrlKey','_logService','defIds','append','MergeInterceptorFactory','setShowComponents','c2Prime','@univerjs/rpc','data','_sendingTimer','_collabCursorController','clear','\x20to\x20','fillRule','_collabCursorState$','getOwnPropertyDescriptor','members','_updateState','@univerjs/engine-render','setActiveRange','SEND_CHANGESET_TIMEOUT_KEY','apply','Univer','_onRemoteRejected','getSheetId','UNIVER_UNKNOWN','propertyIsEnumerable','pending','AWAITING','unsubscribe','_updateLocalCache','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','TEXT','transformChangesets','SheetSkeletonManagerService','_event$','string','call','ThemeService','deserializeRangeWithSheet','UNRECOGNIZED','_color','measureText','Inject','getColor','open$','_commandService','UniverCollaborationPlugin','json','Error','endColumn','_onJoinRoomEvent','resend','updateOfflineData','_onLocalMutation','_userManagerService','[OfflineState]:\x20received\x20acknowledgement.','LOGIN_URL_KEY','/universer-api/snapshot','CONNECTOR_DATA_TOO_LARGE','setAlpha','InsertSheetMutation','fetch_missing','SnapshotServerOverHTTPService','_sender','duration','beginPath','replaceTextRanges','8jKTklT','_onConflict','COLORS','[OfflineState]:\x20received\x20changeset.','_localCacheService','?size=','_getCtorByUniverType','some','shareReplay','_updateSubUnitFromURLParams','put','COMPLETION_FINISHED','OFFLINE','_onUserJoin','_handleEvent','UNKNOWN_CMD','ONLINE','Subject','LICENSE_EXPORT_SIZE_EXCEEDED','length','onRemoteRetry','_syncEditingCollabCursor','requestParams','Disposable','UUID','_unlockTransition','_collabSessionService','BuiltInUIPart','IPermissionService','objectActions','name','IContextService','handleInsertRangeMoveDown','synced','IDLE','SNAPSHOT_SERVER_URL_KEY','_clearTimeoutTimer','UNIVER_COLLABORATION_CLIENT_PLUGIN','IAuthzIoService','_drawAnchor','enableAuthServer','LocaleService','APPLY_PERMISSION_DENIED','_hover','fromEventSubject','addImageSourceCache','COMMENT_UPDATE','url(#off-line-single_clip0_910_343)','SessionStatus','closePath','/object','ThresholdInterceptorFactory','getCurrent','rng','LEAVE','SYNCED','onMissingChangesets','Undefined','SheetCollaborationEntity','reqId','getSkeleton','useRef','_scheduleHeartbeat','roomMembers','_memberService','getUniverSheetInstance','target','_renderManagerService','_disabled','_onMessage','RECV','loadDoc','dispose','authzUrl','TEXT_RANGE_LAYER_INDEX','add','getDeserializedSheetBlock','CompressMutationService','_unitStatus','resourceIDs','_socket$','APPLY_REVISION_CONFILICT','267tLQMFp','PSEUDO_FETCH_MISSING_RESULT','/-/object/-/batch_allowed','/object/','assign','visibilitychange','getMergeData','onMouseMove','removeMember','combineLatest','onTransformIME','image/jpeg','_scheduleSaving','idSuffix','@univerjs/network','asObservable','rgba(255,\x20255,\x20255,\x200.01)','defs','_toggleOffline','@univerjs/drawing','serializeRangeWithSheet','UniverIcon','M0\x200H16V16H0z','_initStatusComponent','_collaborationPaused','createSocket','mergeOverrideWithDependencies','includes','rxjs','_scene','_ws','activeSheet$','onlineStatus','body','FileId','VIEWPORT_KEY','number','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','UnitEmbedded','_assignedColors','_changesetReqId','toString','_exhaustRemoteChangesetQueue','isTransformMutationsWithChangesetSuccess','_tryEnsureSocket','RxDisposable','LocalUndoRedoService','243zrNxPj','RETRY_CONNECTING_MAX_COUNT','deepClone','getRoom','BASE64','setCurrentUser','setUndoRedoMutationParamsCache','MUTATION','NEW_CHANGESETS','throttleTime','_getUndoStack','{fileID}','_transformIMECache','textRanges','CollaborationStatus','AWAITING_WITH_PENDING','transformMutation','onReady','transformRemoteChangeset','HTTPRequest','deleteCollaborator','_hovered','UNDEFINED','isEditing','IHTTPImplementation','_cursors','rev','updatePermissionObjEvent','XHRHTTPImplementation','getRenderById','YUUMI_UNABLE_LOAD_URL','registerRenderModule','UniverCore','_onConnectionOpen','dispose$','HEARTBEAT_TIMEOUT_KEY','collaboration.closeRoom','CollaborationSessionService','LIVESHARE_FETCH_OPERATIONS','/universer-api/oidc/authpage','[OfflineState]:\x20received\x20rejection.','_univerInstanceService','&assign=','USERS_ENTER','_injector','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','MSG_FOR_ERROR','location','ImageUploadStatusType','actions','searchParams','row','_resendTimeout','userID','ws://127.0.0.1:8000/universer-api/comb/connect','getActiveSheet','_registerRenderDependencies','getOffsetConfig','onRemoteChangeset','_createInitialStateImpl','displayName','collabStatus.offline','SUBMIT_CHANGESET','csRejEvent','round','react','_scheduleTimestamp','IUndoRedoService','_roomMembers','_hideTimer','UniverRpc','lineTo','title','none','498556RPHspx','handleIRemoveCol','urlChange$','JOINING','m1Prime','collaMsg','endRow','disposeWithMe','@univerjs/docs','collab-rect-range-','_clearUndo','sequenceExecute','_removeCollabCursors','OnLineSingle','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','copyFileMeta','reduce','_members','InsertRangeMoveRightCommandId','ITransformService','getUnhiddenWorksheets','icon','SEND_CHANGESET_TIMEOUT','_docSkeletonManagerService','collabSubmitChangesetUrl','joinRsp','listCollaborators','onStateChange','CommandType','sid','transformUndoRedo','selections','_onCombEvent','/unit/','_messageService','_eventUnsubscribe','_http','from','[DataLoaderController]','params','_getAPIPrefix','history','patch','_transitionLocked','code','_snapshotServerService','_instanceService','onSyncEditingCollabCursor','next','handleInsertRow','getMember','CollaborationEvent','UPDATE_CURSOR','drawWith','Rectangle','_initCloseConn','_render','getMemberID','parse','129660swlLKw','newCsEvent','collaboration-client.offline-data-not-saved','on-line-single','getCurrentRevOfUnit','delay','_collaborationSessionService','_refreshCollabCursors','_getLoginPath','bottom','univer-online-status-title','_docStateChangeManagerService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','DataLoaderController','_transformService','override','CONFLICT','_drawRectRange','type','WorkbookEditablePermission','_checkMissing','342uDXAsF','permissionRejEvent','JSONX','onMissedChangesetFetched','_themeService','EmptyMutation','INTERNAL_ERROR','#FFF','NO_OTHER_CLIENTS_EDITING','get','DEFAULT_FILE_NAME','file','_lastPointer','online','_transformStack','_queuedRemoteChangesets','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','commentUpdateEvent','YUUMI_RATE_OVER_LIMIT','updatePermissionPoint','_getSaveTimeout','_httpService','_resendTimer','_waitCount','_snapshotService','backgroundColor','filter','_handler','setItem','newValue','Workbook','merge','univer-online','getUnit','subscribe','roomMembers$','collab-text-range-','getLatestCsReqIdBySid','downloadEndpointUrl','_unitID','defineProperty','_getSnapshotAPIPrefix','_HTTPService','toDisposable','COMPRESS_MUTATION_SEND','JOIN','set','_docTransformIMECacheService','tag','hidden','\x0aAfter:\x20','_createInitialState','_updateURLWithCurrentState','HTTPService','@univerjs-pro/license','CHANGESET_ACK','PENDING','socket\x20open.','_clearHeartbeatTimer','@univerjs/telemetry','delete','_startTelemetryCollaborationNewChangeset','SnapshotService','_applyRemoteChangeset','Injector','exports','origin','LICENSE_MAX_UNITS_EXCEEDED','_cursor','IUniverInstanceService','_onOffline','_document','NOT_COLLAB','_createHandler','RECT','_send','getResourcesRequest','trim','uploadFileServerUrl','objectID','amd','getCurrentUser','SUCCUSS','getVpScrollXYInfoByPosToVp','_id','liveShareOperation','_remoteChangesetQueue','colorChannel1','ICommandService','font','_singleActiveUnitService','isPermissionRej','univer-pro.collaboration-client.single-active-unit-service','[CollaborationState]:\x20apply\x20error!','_cursorShapes','INVALID_ARGUMENT','_substituteRedoStack','mapDocumentTypeToUniverType','IConfigService','createCollaborator','getAttachHeader','onTransformRemoteChangesetByIMECache','_initCommandExecutedListener','\x20-\x20','SNAPSHOT_INVALID_SNAPSHOT','signUrlServerUrl','transformByState','toStringTag','collabCursorState$','...','createIdentifier','InsertRowCommandId','onlyLocal','state$','SheetCollabCursorShape','onlineStatusIcon','_undoStacks','baseRev','awaitingChangeset','message$','CollaborationController','debug','/role','_online','DOC_RANGE_TYPE','className','loadSheet','requireSession','sheetId','compose','_state','UniverEngineRender','syncEditingCollabCursor','_joinRoom','_updateCollabCursors','VIEW_MAIN','saveSheetBlock','DocSkeletonManagerService','_removeRoom','COLLAB_WEB_SOCKET_URL_KEY','_refRangeService','close$','_updateLocalCursor','_scheduleClearOtherTimer','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','collaboratorID','path','getTypeOfUnitDisposed$','AUTHZ_URL_KEY','INGEST','disableLocalCache','getConfig','/allowed','debounceTime','_initMergeInterceptor','isInternalEditorID','RemoveColCommandId','handleDeleteRangeMoveLeft','unknown','_changesetSessionId','storage','_sendHeartbeat','_compressMutationService','getParam','_setupBeforeClosingHandler','COMPRESS_MUTATION_APPLY','socket$','transformMutationsWithChangeset','_commentUpdate$','/new_changes','_ensureSubject','m2Prime','collaboration.single-unit.warning','url','FromArray','_getAPIPrefixPath','_colorAssignService','now','IUIPartsService','_collaborationController','confirm','getRandomValues','_onRemoteChangeset','getOwnPropertySymbols','onPointerMove$','MoveRangeCommandId','conflict.title','_updateStatus','show','isTransformMutationFailure','SHOULD_CLOSE_CONN','UniverDocs','_telemetryService','_uiPartsService','fill','/universer-api/snapshot/','_range','status','fillStyle','onStarting','_sessions','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_stopTelemetryCollaborationNewChangeset','getRelativeToViewportCoord','takeUntil','shouldCloseConn','updateMember','off-line-single','_fetchMissChangesets','HttpImport','_getMergeRange','@univerjs/core','split','HEARTBEAT','allowed','contains','black','_state$','UniverDrawing','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','COLLAB_SUBMIT_CHANGESET_URL','text','failed\x20to\x20apply\x20missed\x20changesets!','ITelemetryService','resize','onCommentUpdate','DocCollaborationEntity','_awaitingChangeset','makeDirty','pauseCollaboration','jiqing500','arc','socketService','src','DesktopCollaborationStatusDisplayController','toRgbString','telemetry\x20info\x20is\x20not\x20initialized','_handleHover','min','RefRangeService','LIVESHARE_NEW_HOST','onTransformChange$','_collaborationTimeoutTimer','appendMutation','href','deserializeToCombResponse','setTimeout','APPLY_DUPLICATED','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_config','getCurrentUnitForType','_docSkeleton','_resendWithTimeout','saveSnapshot','_redoStacks','BehaviorSubject','sessionStatus$','LOCAL_CACHE_INTERVAL','_substituteUndoStack','event$','_initUnitPermissionChange','_onRemoteACK','doc.mutation.rich-text-editing','univer-offline','AuthzIoHttpService','interceptor','reconnect','init','_permissionService','getTypeOfUnitAdded$','_commentService','handleInsertCol','randomUUID','Unknown\x20user','current','toggleOffline','addObject','collab-text-anchor-','cursorInfo$','_unitOnClients','_status$','_anchor','IRemoteInstanceService','encode','max','_throwTelemetryCollaborationNewChangeset','_onCursorDelete','getUnitId','COLLAB_SUBMIT_CHANGESET_URL_KEY','RichTextEditingMutation','_transformPreviousActiveRange','editing\x20status\x20changed\x20to','_transformRemoteChangesetByIMECache','collabStatus.synced','focused$','_saveTaskMap','_getRedoStack','permission.title','getTime','offline','send','editingUnit','_entityInit$','FAIL','LICENSE_IMPORT_SIZE_EXCEEDED','_showConflictNotification','getInterceptPoints','setConfig','_tryReconnect','collabStatus.syncing','capture','values','_socketMessageSubscription','removeParam','_replaceFileID','NodePositionConvertToRectRange','getWorkbookSelections','originalMeta','getCurrentSelections','blue400','[SyncedState]:\x20received\x20rejection.','_scheduleCollaborationTimeoutTimer','_sheetTransformSelectionsService','color','UNIVER_DOC','top','onPointerLeave$','UNIVER_SHEET','has','registerComponent','moveTo','stringify','Warning','sessionStatus','CollaborationSession','FETCH_MISS','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','extend','then','HELLO','_saveCache','_backgroundColor','_executeRemoteChangeset','_handleLeaveEvent','_loadDoc','height','WebSocketService','fetchMiss','_handleJoinEvent','_draw','pluginName','_configService','csShouldRetryEvent','isArray','xlink:href','30230XCGVLQ','csAckEvent','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_getSheetObject','getRangePointData','RegularPolygon','InsertRangeMoveDownCommandId','awaiting','LocalCacheService','_roomMembers$','on-line-single_clip0_910_349','OTHER_CLIENTS_EDITING','_listenToOnlineEvent','ColorKit','UnitSnapshot','batchAllowed','popstate','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','leaveEvent','off-line-single_clip0_910_343','size','ReplaySubject','USERS_LEAVE','Shape','DocIMEInputManagerService','UNKNOWN_CODE','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','setParam','_timeoutTimer','_docSyncEditingCollabCursorService','_notificationService','url(#$1','univerjs-icon\x20univerjs-icon-','toggleOnline','triggerDblclick','HttpExport','transformIMECache','_removeClearOtherTimer','_imageSourceCache','_textBubble','unit-cache-','saveImage','_socket','find','enableSingleActiveInstanceLock','rxjs/operators','registerHTTPInterceptor','slice','SetSelectionsOperation','YUUMI_SUBSCRIPTION_NOT_FOUND','serializeCombRequest','_acknowledgedAwaitingChangeset','UniverDesign','ERROR_IMAGE','transformStack\x20failed!','APPLY_REJECT','_replayCachedMutations','onCommandExecuted','_onRemoteRetry','/collaborator','startRow','permission.content','skeleton','CollaborationEntity','collaboration-client.config','/universer-api/stream/file/upload','@univerjs/ui','submit\x20changeset\x20error!','onlineStatusTitle','fetchMissingChangesets','ILocalStorageService','getCollabCursors$','every','clipPath','_localeService','\x0aCurrent:\x20','width','onRemoteAck','CHANGESET_REVISION_CONFILICT','session.will-retry','DisposableCollection','[FetchMissState]','EffectRefRangId','25156QiIKzc','WebURLService','responseType','function','LICENSE_DISTRO_REJECTED','conflict.content','clearInterval','getSheetBlock','10566512nJLHZR','fillText','_heartbeatTimer','&source=','collaboration-session-retry','revision','flatMap','_onConnectionFailed','collabStatus.fetchMiss','retryConnectingInterval','putCollaborators','debounce','_startCollaboration','_getUploadFileURL','_initRequestHeader','createInstance','\x20in\x20_schedule.','textEncoder','random','onPointerEnter$','_labelPosition','_name','error','TRANSFORM_CHANGE_OBSERVABLE_TYPE','startColumn','COLLAB_WEB_SOCKET_URL','mapTo','reject','Tools','IMessageService','_submitChangeset','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getDocRanges','_initStatusListener','CollaborationSocketService','image/gif','useDependency','getImage','_session','object','SNAPSHOT_HAS_BEEN_REMOVED','IURLService','DocStateChangeManagerService','_socketReady','ISnapshotServerService','children','univer-online-status-icon','[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.','_cachedData','_getSendChangesetTimeout','MemberService','range','unitID','_change$','c1Prime','_toggleOnline','_decreaseWaiting','UPDATE_PERMISSION_OBJ','evenodd','getValue','ImageIoService','unit','_getScale','incrementRevOfUnit','roles','_initEventListeners','uni.network.url-service','_schedule','startTime','_handleHeartbeatEvent','complete','NodePositionConvertToCursor','eventID','currentSkeleton$','session.connection-failed'];_0xbff2=function(){return _0x4a46ea;};return _0xbff2();}(function(_0x1fb65d,_0x2310bb){const _0x4da5fb=_0x104b,_0x24a6f8=_0x1fb65d();while(!![]){try{const _0x5afa2d=-parseInt(_0x4da5fb(0x3b6))/0x1+-parseInt(_0x4da5fb(0x144))/0x2+-parseInt(_0x4da5fb(0x517))/0x3*(parseInt(_0x4da5fb(0x34a))/0x4)+-parseInt(_0x4da5fb(0x2f7))/0x5*(-parseInt(_0x4da5fb(0x194))/0x6)+parseInt(_0x4da5fb(0x407))/0x7*(-parseInt(_0x4da5fb(0x4c5))/0x8)+-parseInt(_0x4da5fb(0xfa))/0x9*(-parseInt(_0x4da5fb(0x17f))/0xa)+parseInt(_0x4da5fb(0x352))/0xb;if(_0x5afa2d===_0x2310bb)break;else _0x24a6f8['push'](_0x24a6f8['shift']());}catch(_0x36a750){_0x24a6f8['push'](_0x24a6f8['shift']());}}}(_0xbff2,0x71713),function(_0xc4a269,_0x629c67){const _0x415de0=_0x104b;typeof exports=='object'&&typeof module<'u'?_0x629c67(exports,require('@univerjs/core'),require('rxjs'),require('rxjs/operators'),require('@univerjs/design'),require('@univerjs/ui'),require(_0x415de0(0x525)),require('@univerjs-pro/collaboration'),require(_0x415de0(0x1cf)),require(_0x415de0(0x420)),require('@univerjs/sheets'),require(_0x415de0(0x493)),require('@univerjs/docs'),require(_0x415de0(0x52a)),require('@univerjs/engine-formula'),require(_0x415de0(0x42c)),require(_0x415de0(0x13b)),require(_0x415de0(0x488)),require(_0x415de0(0x1ca))):typeof define==_0x415de0(0x34d)&&define[_0x415de0(0x1e4)]?define([_0x415de0(0x1d5),_0x415de0(0x267),_0x415de0(0x533),_0x415de0(0x324),_0x415de0(0x401),_0x415de0(0x339),'@univerjs/network',_0x415de0(0x47d),_0x415de0(0x1cf),_0x415de0(0x420),'@univerjs/sheets',_0x415de0(0x493),_0x415de0(0x14c),'@univerjs/drawing','@univerjs/engine-formula','@univerjs/sheets-ui','react',_0x415de0(0x488),_0x415de0(0x1ca)],_0x629c67):(_0xc4a269=typeof globalThis<'u'?globalThis:_0xc4a269||self,_0x629c67(_0xc4a269['UniverCollaborationClient']={},_0xc4a269[_0x415de0(0x11a)],_0xc4a269[_0x415de0(0x533)],_0xc4a269['rxjs']['operators'],_0xc4a269[_0x415de0(0x32b)],_0xc4a269['UniverUi'],_0xc4a269['UniverNetwork'],_0xc4a269['UniverCollaboration'],_0xc4a269['UniverTelemetry'],_0xc4a269[_0x415de0(0x3bb)],_0xc4a269[_0x415de0(0x3d8)],_0xc4a269[_0x415de0(0x217)],_0xc4a269[_0x415de0(0x253)],_0xc4a269[_0x415de0(0x26e)],_0xc4a269['UniverEngineFormula'],_0xc4a269['UniverSheetsUi'],_0xc4a269['React'],_0xc4a269[_0x415de0(0x140)],_0xc4a269[_0x415de0(0x403)]));}(this,function(_0x3b52c4,_0x58b389,_0x4655d9,_0x5d8a56,_0x145b31,_0x4d3c2b,_0x57b255,_0x5e5ab1,_0x41321d,_0x24db92,_0x2d2223,_0x1c7683,_0x124506,_0x1031ad,_0x4be577,_0x85ae1c,_0x4bfab6,_0x2df961,_0x278106){'use strict';const _0xb893b1=_0x104b;var _0x23760a=Object['defineProperty'],_0x338c1d=(_0x1f5507,_0x5b4aa6,_0x24ad37)=>_0x5b4aa6 in _0x1f5507?_0x23760a(_0x1f5507,_0x5b4aa6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24ad37}):_0x1f5507[_0x5b4aa6]=_0x24ad37,_0xf1fe43=(_0x2e0c54,_0x144ba0,_0x5f3932)=>_0x338c1d(_0x2e0c54,typeof _0x144ba0!='symbol'?_0x144ba0+'':_0x144ba0,_0x5f3932);const _0x408d14=_0xb893b1(0x4e8),_0xa386f8=_0xb893b1(0x4bb),_0x1b06ee=_0xb893b1(0x454),_0x4e1696=_0xb893b1(0x15a),_0x4766f5=_0xb893b1(0x36b),_0x5b23cf=_0xb893b1(0x130),_0x407e6e='HEARTBEAT_INTERVAL',_0x3ceb27='HEARTBEAT_TIMEOUT',_0x1f388f=_0xb893b1(0xfb),_0x2c3e4f=_0xb893b1(0x295),_0x8b953d=_0xb893b1(0x270),_0x4889a4='/universer-api/comb',_0x42bb89=_0xb893b1(0x4ba),_0x3aa700=_0xb893b1(0x121);var _0x423190=(_0x3cfe32=>(_0x3cfe32[_0x3cfe32[_0xb893b1(0x110)]=0x0]='UNDEFINED',_0x3cfe32[_0x3cfe32['OK']=0x1]='OK',_0x3cfe32[_0x3cfe32[_0xb893b1(0x19a)]=0x2]='INTERNAL_ERROR',_0x3cfe32[_0x3cfe32[_0xb893b1(0x3dd)]=0x3]=_0xb893b1(0x3dd),_0x3cfe32[_0x3cfe32[_0xb893b1(0x47c)]=0x4]='NOT_FOUND',_0x3cfe32[_0x3cfe32['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x3cfe32[_0x3cfe32[_0xb893b1(0x3d6)]=0x6]='ALREADY_EXISTS',_0x3cfe32[_0x3cfe32[_0xb893b1(0x1f3)]=0x7]='INVALID_ARGUMENT',_0x3cfe32[_0x3cfe32[_0xb893b1(0x419)]=0x8]=_0xb893b1(0x419),_0x3cfe32[_0x3cfe32[_0xb893b1(0x4d0)]=0x9]=_0xb893b1(0x4d0),_0x3cfe32[_0x3cfe32[_0xb893b1(0x345)]=0x1389]=_0xb893b1(0x345),_0x3cfe32[_0x3cfe32[_0xb893b1(0x1fc)]=0x1771]=_0xb893b1(0x1fc),_0x3cfe32[_0x3cfe32[_0xb893b1(0x37a)]=0x1772]=_0xb893b1(0x37a),_0x3cfe32[_0x3cfe32[_0xb893b1(0x3d3)]=0x1773]=_0xb893b1(0x3d3),_0x3cfe32[_0x3cfe32['APPLY_REJECT']=0x1b59]=_0xb893b1(0x32e),_0x3cfe32[_0x3cfe32[_0xb893b1(0x3c4)]=0x1b5a]=_0xb893b1(0x3c4),_0x3cfe32[_0x3cfe32['APPLY_REVISION_CONFILICT']=0x1b5b]=_0xb893b1(0x516),_0x3cfe32[_0x3cfe32['APPLY_PERMISSION_DENIED']=0x1b5c]=_0xb893b1(0x4ef),_0x3cfe32[_0x3cfe32[_0xb893b1(0x28b)]=0x1b5d]=_0xb893b1(0x28b),_0x3cfe32[_0x3cfe32['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0xb893b1(0x4bc),_0x3cfe32[_0x3cfe32[_0xb893b1(0x1d7)]=0x2329]=_0xb893b1(0x1d7),_0x3cfe32[_0x3cfe32['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0xb893b1(0x4a0),_0x3cfe32[_0x3cfe32[_0xb893b1(0x2c4)]=0x232b]=_0xb893b1(0x2c4),_0x3cfe32[_0x3cfe32[_0xb893b1(0x4d7)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x3cfe32[_0x3cfe32[_0xb893b1(0x34e)]=0x232d]=_0xb893b1(0x34e),_0x3cfe32[_0x3cfe32[_0xb893b1(0x118)]=0x2711]=_0xb893b1(0x118),_0x3cfe32[_0x3cfe32['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0xb893b1(0x3d5),_0x3cfe32[_0x3cfe32['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0xb893b1(0x1a6),_0x3cfe32[_0x3cfe32[_0xb893b1(0x328)]=0x2714]=_0xb893b1(0x328),_0x3cfe32[_0x3cfe32[_0xb893b1(0x4a9)]=-0x1]=_0xb893b1(0x4a9),_0x3cfe32))(_0x423190||{}),_0x2e214d=(_0x31ebe6=>(_0x31ebe6[_0x31ebe6[_0xb893b1(0x49a)]=0x0]=_0xb893b1(0x49a),_0x31ebe6[_0x31ebe6[_0xb893b1(0x2d8)]=0x1]=_0xb893b1(0x2d8),_0x31ebe6[_0x31ebe6[_0xb893b1(0x2db)]=0x2]=_0xb893b1(0x2db),_0x31ebe6[_0x31ebe6[_0xb893b1(0x422)]=0x3]=_0xb893b1(0x422),_0x31ebe6[_0x31ebe6[_0xb893b1(0x3be)]=0x4]=_0xb893b1(0x3be),_0x31ebe6[_0x31ebe6[_0xb893b1(0x4a9)]=-0x1]=_0xb893b1(0x4a9),_0x31ebe6))(_0x2e214d||{}),_0x4a723e=(_0x5f5414=>(_0x5f5414[_0x5f5414[_0xb893b1(0x4d4)]=0x0]=_0xb893b1(0x4d4),_0x5f5414[_0x5f5414[_0xb893b1(0x2e7)]=0x1]='HELLO',_0x5f5414[_0x5f5414['JOIN']=0x2]=_0xb893b1(0x1c1),_0x5f5414[_0x5f5414['LEAVE']=0x3]='LEAVE',_0x5f5414[_0x5f5414[_0xb893b1(0x229)]=0x4]='INGEST',_0x5f5414[_0x5f5414[_0xb893b1(0x269)]=0x5]='HEARTBEAT',_0x5f5414[_0x5f5414[_0xb893b1(0x50b)]=0x6]=_0xb893b1(0x50b),_0x5f5414[_0x5f5414[_0xb893b1(0x4a9)]=-0x1]=_0xb893b1(0x4a9),_0x5f5414))(_0x4a723e||{}),_0x46d5b1=(_0x345e8f=>(_0x345e8f[_0x345e8f[_0xb893b1(0x310)]=0x0]=_0xb893b1(0x310),_0x345e8f[_0x345e8f['OK']=0x1]='OK',_0x345e8f[_0x345e8f[_0xb893b1(0x2c3)]=0x2]=_0xb893b1(0x2c3),_0x345e8f[_0x345e8f[_0xb893b1(0x4a9)]=-0x1]=_0xb893b1(0x4a9),_0x345e8f))(_0x46d5b1||{}),_0x1ca33e=(_0x4dbcca=>(_0x4dbcca[_0x4dbcca[_0xb893b1(0x4fe)]=0x0]='Undefined',_0x4dbcca[_0x4dbcca[_0xb893b1(0x265)]=0x1]=_0xb893b1(0x265),_0x4dbcca[_0x4dbcca['HttpExport']=0x2]=_0xb893b1(0x31a),_0x4dbcca[_0x4dbcca[_0xb893b1(0x53d)]=0x3]='UnitEmbedded',_0x4dbcca[_0x4dbcca[_0xb893b1(0x305)]=0x4]=_0xb893b1(0x305),_0x4dbcca[_0x4dbcca[_0xb893b1(0x4a9)]=-0x1]=_0xb893b1(0x4a9),_0x4dbcca))(_0x1ca33e||{});const _0x271aa0=_0xb893b1(0x337),_0x43c313={};function _0x2039f7(_0x24b21b){const _0x241072=_0xb893b1;var _0x310223,_0x341a29,_0x58bfe6,_0x512254,_0x268ac2;const _0x1d5b12=_0x24b21b[_0x241072(0x489)],_0x1c4ed0=JSON[_0x241072(0x17e)](_0x1d5b12);switch(_0x1c4ed0['cmd']){case _0x4a723e[_0x241072(0x269)]:case _0x4a723e['HELLO']:{const _0x3301a0=_0x1c4ed0['infoRsp'];return{..._0x1c4ed0,'data':_0x3301a0,'cmd':_0x1c4ed0['cmd']};}case _0x4a723e['JOIN']:{const _0x1024f0=_0x1c4ed0[_0x241072(0x15d)];return{..._0x1c4ed0,'data':_0x1024f0,'cmd':_0x1c4ed0[_0x241072(0x3d4)]};}case _0x4a723e['RECV']:{const _0x40c7ef=_0x1c4ed0[_0x241072(0x149)];switch(_0x40c7ef[_0x241072(0x39a)]){case _0x5e5ab1['CollaborationEvent'][_0x241072(0x3d2)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':(_0x310223=_0x40c7ef[_0x241072(0x195)])==null?void 0x0:_0x310223['cs']},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1['CollaborationEvent'][_0x241072(0x1cb)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':(_0x341a29=_0x40c7ef[_0x241072(0x2f8)])==null?void 0x0:_0x341a29['cs']},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1[_0x241072(0x177)][_0x241072(0x102)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':(_0x58bfe6=_0x40c7ef[_0x241072(0x180)])==null?void 0x0:_0x58bfe6['cs']},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1['CollaborationEvent']['CHANGESET_REJ']:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':(_0x512254=_0x40c7ef[_0x241072(0x139)])==null?void 0x0:_0x512254['cs']},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1['CollaborationEvent'][_0x241072(0x406)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':(_0x268ac2=_0x40c7ef[_0x241072(0x2f4)])==null?void 0x0:_0x268ac2['cs']},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1[_0x241072(0x177)][_0x241072(0x178)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':_0x40c7ef['updateCursorEvent']},'cmd':_0x1c4ed0['cmd']};case _0x5e5ab1[_0x241072(0x177)][_0x241072(0x125)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':_0x40c7ef['joinEvent']},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1[_0x241072(0x177)][_0x241072(0x30d)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':_0x40c7ef[_0x241072(0x309)]},'cmd':_0x1c4ed0['cmd']};case _0x5e5ab1['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':_0x40c7ef['liveShareNewHost']},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1[_0x241072(0x177)][_0x241072(0x120)]:case _0x5e5ab1[_0x241072(0x177)][_0x241072(0x3ff)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':_0x40c7ef[_0x241072(0x1e9)]},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1[_0x241072(0x177)][_0x241072(0x3d9)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':_0x40c7ef['liveShareNewHost']},'cmd':_0x1c4ed0['cmd']};case _0x5e5ab1['CollaborationEvent'][_0x241072(0x128)]:return{..._0x1c4ed0,'data':_0x40c7ef,'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1[_0x241072(0x177)][_0x241072(0x4f3)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':_0x40c7ef[_0x241072(0x1a5)]},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1[_0x241072(0x177)][_0x241072(0x38b)]:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':_0x40c7ef[_0x241072(0x115)]},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};case _0x5e5ab1[_0x241072(0x177)]['SHOULD_CLOSE_CONN']:return{..._0x1c4ed0,'data':{..._0x40c7ef,'data':_0x40c7ef[_0x241072(0x261)]},'cmd':_0x1c4ed0[_0x241072(0x3d4)]};default:return _0x1c4ed0;}}default:return _0x1c4ed0;}}function _0x5355af(_0x594084){const _0xb2ec59=_0xb893b1;switch(_0x594084[_0xb2ec59(0x3d4)]){case _0x4a723e['HEARTBEAT']:case _0x4a723e[_0xb2ec59(0x2e7)]:return JSON[_0xb2ec59(0x2df)]({'cmd':_0x594084[_0xb2ec59(0x3d4)],'routeKey':_0x594084['routeKey']});case _0x4a723e['INGEST']:{let _0x55588a;switch(_0x594084['data'][_0xb2ec59(0x39a)]){case _0x5e5ab1[_0xb2ec59(0x177)]['UPDATE_CURSOR']:{_0x55588a={'eventID':_0x5e5ab1[_0xb2ec59(0x177)]['UPDATE_CURSOR'],'updateCursorEvent':_0x594084['data'][_0xb2ec59(0x489)]};break;}case _0x5e5ab1[_0xb2ec59(0x177)][_0xb2ec59(0x30d)]:{_0x55588a={'eventID':_0x5e5ab1[_0xb2ec59(0x177)][_0xb2ec59(0x30d)],'leaveEvent':_0x594084[_0xb2ec59(0x489)][_0xb2ec59(0x489)]};break;}case _0x5e5ab1[_0xb2ec59(0x177)][_0xb2ec59(0x125)]:{_0x55588a={'eventID':_0x5e5ab1[_0xb2ec59(0x177)]['USERS_ENTER'],'joinEvent':_0x594084[_0xb2ec59(0x489)]['data']};break;}case _0x5e5ab1[_0xb2ec59(0x177)][_0xb2ec59(0x284)]:{_0x55588a={'eventID':_0x5e5ab1['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x594084[_0xb2ec59(0x489)][_0xb2ec59(0x489)]};break;}case _0x5e5ab1['CollaborationEvent'][_0xb2ec59(0x3ff)]:{_0x55588a={'eventID':_0x5e5ab1[_0xb2ec59(0x177)][_0xb2ec59(0x3ff)],'liveShareOperation':_0x594084[_0xb2ec59(0x489)]['data']};break;}case _0x5e5ab1['CollaborationEvent'][_0xb2ec59(0x3d9)]:{_0x55588a={'eventID':_0x5e5ab1[_0xb2ec59(0x177)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x594084[_0xb2ec59(0x489)][_0xb2ec59(0x489)]};break;}case _0x5e5ab1[_0xb2ec59(0x177)][_0xb2ec59(0x404)]:{_0x55588a={'eventID':_0x5e5ab1[_0xb2ec59(0x177)][_0xb2ec59(0x404)],'liveShareRequestHost':_0x594084['data'][_0xb2ec59(0x489)]};break;}case _0x5e5ab1[_0xb2ec59(0x177)]['LIVESHARE_FETCH_OPERATIONS']:{_0x55588a={'eventID':_0x5e5ab1['CollaborationEvent'][_0xb2ec59(0x120)]};break;}default:_0x55588a={'eventID':_0x594084[_0xb2ec59(0x489)][_0xb2ec59(0x39a)]};}return JSON[_0xb2ec59(0x2df)]({'cmd':_0x594084[_0xb2ec59(0x3d4)],'routeKey':_0x594084[_0xb2ec59(0x444)],'collaMsg':_0x55588a});}case _0x4a723e['JOIN']:return JSON[_0xb2ec59(0x2df)]({'cmd':_0x594084[_0xb2ec59(0x3d4)],'routeKey':_0x594084[_0xb2ec59(0x444)],'joinReq':_0x594084['data']});case _0x4a723e[_0xb2ec59(0x4fb)]:return JSON['stringify']({'cmd':_0x594084[_0xb2ec59(0x3d4)],'routeKey':_0x594084['routeKey'],'leaveReq':_0x594084['data']});default:throw new Error(_0xb2ec59(0x311));}}var _0x429d68=Object[_0xb893b1(0x1bc)],_0x451b4e=Object[_0xb893b1(0x490)],_0x569bc7=(_0x8013fc,_0x422d9b,_0x51bc04,_0x2c1f0c)=>{for(var _0x22be47=_0x2c1f0c>0x1?void 0x0:_0x2c1f0c?_0x451b4e(_0x422d9b,_0x51bc04):_0x422d9b,_0x37646d=_0x8013fc['length']-0x1,_0x1dbfb4;_0x37646d>=0x0;_0x37646d--)(_0x1dbfb4=_0x8013fc[_0x37646d])&&(_0x22be47=(_0x2c1f0c?_0x1dbfb4(_0x422d9b,_0x51bc04,_0x22be47):_0x1dbfb4(_0x22be47))||_0x22be47);return _0x2c1f0c&&_0x22be47&&_0x429d68(_0x422d9b,_0x51bc04,_0x22be47),_0x22be47;},_0x1a1cf9=(_0x106340,_0x4f6382)=>(_0x4efc16,_0x287bb5)=>_0x4f6382(_0x4efc16,_0x287bb5,_0x106340);const _0x383a5a=_0x58b389[_0xb893b1(0x202)](_0xb893b1(0x434));function _0x16a608(_0xeaf40e,_0x44416d,_0x1980be){const _0x57b6c8=_0xb893b1;return _0xeaf40e+'/'+_0x44416d+'/unit/'+_0x1980be+_0x57b6c8(0x23d);}_0x3b52c4['CollaborationSocketService']=class extends _0x58b389[_0xb893b1(0x4dc)]{constructor(_0x572150,_0x2e0a9e,_0x127bc9,_0x2f38dd,_0xaa33a9){const _0x602962=_0xb893b1;super(),this[_0x602962(0x168)]=_0x572150,this[_0x602962(0x535)]=_0x2e0a9e,this[_0x602962(0x2f3)]=_0x127bc9,this[_0x602962(0x482)]=_0x2f38dd,this[_0x602962(0x171)]=_0xaa33a9;}['createSocket'](_0x281bcc){const _0x148c4b=_0xb893b1,_0x296f7b=this[_0x148c4b(0x535)][_0x148c4b(0x530)](_0x281bcc);if(!_0x296f7b)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x3d892b=new _0x58b389[(_0x148c4b(0x347))](),_0x5d30e2=new _0x4655d9[(_0x148c4b(0x4d6))]();_0x3d892b[_0x148c4b(0x510)](_0x296f7b[_0x148c4b(0x221)][_0x148c4b(0x1b6)](_0xb540a4=>_0x5d30e2[_0x148c4b(0x174)](_0xb540a4))),_0x3d892b[_0x148c4b(0x510)](_0x58b389[_0x148c4b(0x1bf)](()=>_0x5d30e2[_0x148c4b(0x398)]()));const _0x4b7553=new _0x4655d9[(_0x148c4b(0x4d6))]();_0x3d892b['add'](_0x296f7b['error$']['subscribe'](_0xb7a804=>_0x4b7553[_0x148c4b(0x174)](_0xb7a804))),_0x3d892b[_0x148c4b(0x510)](_0x58b389['toDisposable'](()=>_0x4b7553['complete']()));const _0x5d5324=new _0x4655d9[(_0x148c4b(0x4d6))]();_0x3d892b['add'](_0x296f7b[_0x148c4b(0x20b)][_0x148c4b(0x1b6)](_0x439c87=>{const _0x33cd71=_0x148c4b,_0xa97be=_0x2039f7(_0x439c87);_0x5d5324[_0x33cd71(0x174)](_0xa97be);})),_0x3d892b[_0x148c4b(0x510)](_0x58b389[_0x148c4b(0x1bf)](()=>_0x5d5324[_0x148c4b(0x398)]()));let _0x26fb48;const _0x21069c=()=>{const _0xa0084b=_0x148c4b;_0x4b7553[_0xa0084b(0x174)](new Event('connection\x20error')),_0x5d30e2[_0xa0084b(0x174)](new CloseEvent(_0xa0084b(0x3fc))),_0x26fb48[_0xa0084b(0x3c9)]();};return _0x26fb48={'memberID':'','close$':_0x5d30e2[_0x148c4b(0x526)](),'error$':_0x4b7553[_0x148c4b(0x526)](),'open$':_0x296f7b[_0x148c4b(0x4ae)],'message$':_0x5d5324[_0x148c4b(0x526)](),'send':_0x25e98a=>{const _0x257e04=_0x148c4b;if(_0x25e98a['cmd']===_0x4a723e[_0x257e04(0x229)]){if(_0x25e98a['data'][_0x257e04(0x39a)]===_0x5e5ab1[_0x257e04(0x177)][_0x257e04(0x138)]){this[_0x257e04(0x370)](_0x26fb48,_0x25e98a[_0x257e04(0x489)])[_0x257e04(0x410)](_0x4c8d25=>{const _0x5e83f1=_0x257e04;this[_0x5e83f1(0x482)]['error'](_0x4c8d25),_0x21069c();});return;}if(_0x25e98a[_0x257e04(0x489)][_0x257e04(0x39a)]===_0x5e5ab1[_0x257e04(0x177)]['FETCH_MISSING']){const _0x49d598=_0x25e98a[_0x257e04(0x489)];this[_0x257e04(0x264)](_0x49d598)[_0x257e04(0x2e6)](_0x5dd2c4=>{const _0x4dc24d=_0x257e04;_0x5d5324['next']({'cmd':_0x4a723e[_0x4dc24d(0x50b)],'code':_0x46d5b1['OK'],'routeKey':_0x49d598[_0x4dc24d(0x489)][_0x4dc24d(0x386)],'routeType':'','data':{'eventID':_0x5e5ab1['CollaborationEvent'][_0x4dc24d(0x518)],'data':{'changesets':_0x5dd2c4}}});})['catch'](_0x204b9a=>{const _0x205243=_0x257e04;this[_0x205243(0x482)][_0x205243(0x368)](_0x204b9a),_0x21069c();});return;}}_0x296f7b[_0x257e04(0x2c0)](_0x5355af(_0x25e98a));},'close':()=>{const _0x3c25b=_0x148c4b;_0x296f7b[_0x3c25b(0x3c9)](),_0x3d892b[_0x3c25b(0x50d)]();}},_0x26fb48;}async['_submitChangeset'](_0xbed478,_0x3c06a1){const _0x24e115=_0xb893b1;var _0x290d3f,_0x4f1888;const {unitType:_0x349b39,unitID:_0x381285,changeset:_0x16bcf5}=_0x3c06a1['data'],_0x49623a={'unitID':_0x381285,'memberID':_0xbed478['memberID'],'type':_0x349b39,'changeset':_0x5e5ab1['parseChangesetToProtocol'](_0x16bcf5)},_0x23923e=this[_0x24e115(0x2f3)][_0x24e115(0x22b)](_0x8b953d),_0x24a819=this[_0x24e115(0x2f3)][_0x24e115(0x22b)](_0x271aa0),_0x1cfec5=_0x16a608((_0x4f1888=(_0x290d3f=_0x24a819==null?void 0x0:_0x24a819[_0x24e115(0x15c)])!=null?_0x290d3f:_0x23923e)!=null?_0x4f1888:_0x4889a4,_0x349b39,_0x381285);try{await this[_0x24e115(0x168)][_0x24e115(0x3b4)](_0x1cfec5,{'body':_0x49623a});}catch(_0x313973){throw this[_0x24e115(0x482)][_0x24e115(0x368)]('[CollaborationSession]',_0x24e115(0x33a)),_0x313973;}}async[_0xb893b1(0x264)](_0x3c7703){const _0x418af0=_0xb893b1,{unitID:_0x2d649b,from:_0xd8e62f,to:_0x36253a,unitType:_0x59925b}=_0x3c7703[_0x418af0(0x489)];return(await this[_0x418af0(0x171)][_0x418af0(0x33c)]({'metadata':void 0x0},{'unitID':_0x2d649b,'type':_0x59925b,'from':_0xd8e62f,'to':_0x36253a}))['changesets'];}},_0x3b52c4['CollaborationSocketService']=_0x569bc7([_0x1a1cf9(0x0,_0x58b389[_0xb893b1(0x4ac)](_0x57b255[_0xb893b1(0x1c9)])),_0x1a1cf9(0x1,_0x58b389[_0xb893b1(0x4ac)](_0x57b255['WebSocketService'])),_0x1a1cf9(0x2,_0x58b389['IConfigService']),_0x1a1cf9(0x3,_0x58b389[_0xb893b1(0x46a)]),_0x1a1cf9(0x4,_0x5e5ab1[_0xb893b1(0x37e)])],_0x3b52c4[_0xb893b1(0x374)]);const _0x4850e4='collaboration_new_changeset';function _0x39a529(_0x2521c5){const _0x32fcfe=_0xb893b1;return JSON[_0x32fcfe(0x2df)](_0x2521c5)[_0x32fcfe(0x4d8)];}class _0x5efdb3{constructor(){const _0x16be3c=_0xb893b1;_0xf1fe43(this,'_commentUpdate$',new _0x4655d9[(_0x16be3c(0x4d6))]()),_0xf1fe43(this,_0x16be3c(0x479),this[_0x16be3c(0x23c)]['asObservable']());}[_0xb893b1(0x275)](_0x204230){const _0x532f8d=_0xb893b1;this['_commentUpdate$'][_0x532f8d(0x174)](_0x204230);}}var _0x24e6ca=Object[_0xb893b1(0x1bc)],_0x1e17ea=Object[_0xb893b1(0x490)],_0x271ff4=(_0x42cb20,_0x25f741,_0x2ebe2a,_0x2e01b3)=>{const _0x1aab41=_0xb893b1;for(var _0x451c7d=_0x2e01b3>0x1?void 0x0:_0x2e01b3?_0x1e17ea(_0x25f741,_0x2ebe2a):_0x25f741,_0x164501=_0x42cb20[_0x1aab41(0x4d8)]-0x1,_0x21f327;_0x164501>=0x0;_0x164501--)(_0x21f327=_0x42cb20[_0x164501])&&(_0x451c7d=(_0x2e01b3?_0x21f327(_0x25f741,_0x2ebe2a,_0x451c7d):_0x21f327(_0x451c7d))||_0x451c7d);return _0x2e01b3&&_0x451c7d&&_0x24e6ca(_0x25f741,_0x2ebe2a,_0x451c7d),_0x451c7d;},_0xb9ed1f=(_0x2af9be,_0x4c1074)=>(_0x3d587f,_0x168184)=>_0x4c1074(_0x3d587f,_0x168184,_0x2af9be);_0x3b52c4[_0xb893b1(0x384)]=class extends _0x58b389['Disposable']{constructor(_0x2d1d36,_0x1941f4){const _0xd7a5c3=_0xb893b1;super(),_0xf1fe43(this,'_roomMembers',new Map()),(this[_0xd7a5c3(0x123)]=_0x2d1d36,this[_0xd7a5c3(0x4b8)]=_0x1941f4,this['disposeWithMe'](_0x58b389['toDisposable'](_0x4655d9[_0xd7a5c3(0x1b3)](this[_0xd7a5c3(0x123)]['getTypeOfUnitDisposed$'](_0x58b389[_0xd7a5c3(0x441)][_0xd7a5c3(0x2db)])[_0xd7a5c3(0x3ca)](_0x5d8a56['map'](_0x30285a=>_0x30285a[_0xd7a5c3(0x2b3)]())),this['_univerInstanceService'][_0xd7a5c3(0x227)](_0x58b389[_0xd7a5c3(0x441)][_0xd7a5c3(0x2d8)])[_0xd7a5c3(0x3ca)](_0x5d8a56[_0xd7a5c3(0x44d)](_0x54b2f9=>_0x54b2f9['getUnitId']())),this[_0xd7a5c3(0x123)][_0xd7a5c3(0x227)](_0x58b389[_0xd7a5c3(0x441)][_0xd7a5c3(0x422)])[_0xd7a5c3(0x3ca)](_0x5d8a56[_0xd7a5c3(0x44d)](_0x48e3f9=>_0x48e3f9[_0xd7a5c3(0x2b3)]())))[_0xd7a5c3(0x1b6)](_0x9be6a=>this[_0xd7a5c3(0x21e)](_0x9be6a)))));}[_0xb893b1(0xff)](_0x29c8b7){const _0x28c021=_0xb893b1;this[_0x28c021(0x4b8)][_0x28c021(0xff)](_0x29c8b7);}[_0xb893b1(0x1e5)](){const _0x7a2193=_0xb893b1;return this[_0x7a2193(0x4b8)]['getCurrentUser']();}['updateMember'](_0x499613,_0x1b2dd4){const _0x5b35c6=_0xb893b1;let _0x33f394=this[_0x5b35c6(0x13e)]['get'](_0x499613);_0x33f394||(_0x33f394=new _0x3b3adf(),this[_0x5b35c6(0x13e)][_0x5b35c6(0x1c2)](_0x499613,_0x33f394)),_0x33f394[_0x5b35c6(0x262)](_0x1b2dd4);}[_0xb893b1(0x51f)](_0x38b966,_0x7c4ded){const _0x1f84e8=_0xb893b1,_0x4a4781=this[_0x1f84e8(0x13e)][_0x1f84e8(0x19d)](_0x38b966);_0x4a4781&&_0x4a4781['removeMember'](_0x7c4ded);}[_0xb893b1(0xfd)](_0x51890b){const _0x203e2d=_0xb893b1;return this['_roomMembers'][_0x203e2d(0x19d)](_0x51890b);}[_0xb893b1(0x176)](_0x1d67f8,_0x1ef9ea){const _0x1ae487=_0xb893b1,_0x7841b8=this['_roomMembers'][_0x1ae487(0x19d)](_0x1d67f8);if(_0x7841b8)return _0x7841b8['getMember'](_0x1ef9ea);}['_removeRoom'](_0x4a8373){const _0x2ee660=_0xb893b1,_0x17dad1=this['_roomMembers']['get'](_0x4a8373);_0x17dad1&&(_0x17dad1[_0x2ee660(0x50d)](),this[_0x2ee660(0x13e)]['delete'](_0x4a8373));}['dispose'](){const _0x50406b=_0xb893b1;this[_0x50406b(0x13e)][_0x50406b(0x3b7)](_0x4e9e33=>_0x4e9e33[_0x50406b(0x50d)]()),this['_roomMembers']['clear']();}},_0x3b52c4[_0xb893b1(0x384)]=_0x271ff4([_0xb9ed1f(0x0,_0x58b389[_0xb893b1(0x1d9)]),_0xb9ed1f(0x1,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x3a2)]))],_0x3b52c4[_0xb893b1(0x384)]);class _0x3b3adf extends _0x58b389['Disposable']{constructor(){const _0x521c66=_0xb893b1;super(...arguments),_0xf1fe43(this,_0x521c66(0x155),new Map());}['dispose'](){const _0x32d3e3=_0xb893b1;this[_0x32d3e3(0x155)][_0x32d3e3(0x48c)]();}[_0xb893b1(0x262)](_0x1b2ec3){const _0x63dc6c=_0xb893b1;this[_0x63dc6c(0x155)][_0x63dc6c(0x1c2)](_0x1b2ec3[_0x63dc6c(0x40d)],_0x1b2ec3);}[_0xb893b1(0x51f)](_0x547328){const _0x24c36a=_0xb893b1;this[_0x24c36a(0x155)][_0x24c36a(0x1d0)](_0x547328);}[_0xb893b1(0x176)](_0x1c186f){const _0x278661=_0xb893b1;return this[_0x278661(0x155)][_0x278661(0x19d)](_0x1c186f);}['getAllMembers'](){const _0xb48f6c=_0xb893b1;return Array[_0xb48f6c(0x169)](this[_0xb48f6c(0x155)][_0xb48f6c(0x2cb)]());}}var _0x4494f3=Object[_0xb893b1(0x1bc)],_0x602435=Object[_0xb893b1(0x490)],_0x182935=(_0x4ec2de,_0x2a1162,_0x1f8156,_0x4a93e3)=>{for(var _0x5dd4cd=_0x4a93e3>0x1?void 0x0:_0x4a93e3?_0x602435(_0x2a1162,_0x1f8156):_0x2a1162,_0x416d76=_0x4ec2de['length']-0x1,_0x5b4e3f;_0x416d76>=0x0;_0x416d76--)(_0x5b4e3f=_0x4ec2de[_0x416d76])&&(_0x5dd4cd=(_0x4a93e3?_0x5b4e3f(_0x2a1162,_0x1f8156,_0x5dd4cd):_0x5b4e3f(_0x5dd4cd))||_0x5dd4cd);return _0x4a93e3&&_0x5dd4cd&&_0x4494f3(_0x2a1162,_0x1f8156,_0x5dd4cd),_0x5dd4cd;},_0x569dd2=(_0x345c3f,_0x3d07fb)=>(_0x4cd30e,_0x40cc28)=>_0x3d07fb(_0x4cd30e,_0x40cc28,_0x345c3f),_0x442957=(_0x36139e=>(_0x36139e[_0x36139e[_0xb893b1(0x4e7)]=0x0]=_0xb893b1(0x4e7),_0x36139e[_0x36139e[_0xb893b1(0x147)]=0x1]=_0xb893b1(0x147),_0x36139e[_0x36139e[_0xb893b1(0x4d1)]=0x2]=_0xb893b1(0x4d1),_0x36139e[_0x36139e[_0xb893b1(0x4d5)]=0x3]='ONLINE',_0x36139e))(_0x442957||{});_0x3b52c4['CollaborationSession']=class extends _0x58b389[_0xb893b1(0xf8)]{constructor(_0x41b849,_0x226b10,_0x15bf5c,_0x4ebe5d,_0x5f007d,_0x3e0e57,_0x16690a,_0x44ce4b,_0x536b9d,_0x3f93f2){const _0x40905e=_0xb893b1;super(),_0xf1fe43(this,'_sessionStatus$',new _0x4655d9[(_0x40905e(0x293))](0x0)),_0xf1fe43(this,'sessionStatus$',this['_sessionStatus$'][_0x40905e(0x526)]()),_0xf1fe43(this,_0x40905e(0x4a4),new _0x4655d9[(_0x40905e(0x4d6))]()),_0xf1fe43(this,_0x40905e(0x297),this[_0x40905e(0x4a4)][_0x40905e(0x526)]()),_0xf1fe43(this,_0x40905e(0x321)),_0xf1fe43(this,'_socketMessageSubscription'),_0xf1fe43(this,'_collaborationTimeoutTimer'),_0xf1fe43(this,_0x40905e(0x3a6),!0x1),_0xf1fe43(this,_0x40905e(0x41a),null),(this['_unitID']=_0x41b849,this[_0x40905e(0x482)]=_0x15bf5c,this[_0x40905e(0x3e9)]=_0x4ebe5d,this['_messageService']=_0x5f007d,this[_0x40905e(0x2f3)]=_0x3e0e57,this[_0x40905e(0x341)]=_0x16690a,this['_memberService']=_0x44ce4b,this['_commentService']=_0x536b9d,this[_0x40905e(0x254)]=_0x3f93f2,this[_0x40905e(0x3a6)]=!!this[_0x40905e(0x254)],_0x226b10[_0x40905e(0x3ca)](_0x4655d9['takeUntil'](this[_0x40905e(0x11c)]))['subscribe'](_0xe205a3=>{const _0xc6fb29=_0x40905e;var _0x530164;typeof _0xe205a3>'u'||(this[_0xc6fb29(0x321)]=_0xe205a3,_0xe205a3?(this[_0xc6fb29(0x219)](_0xe205a3),this[_0xc6fb29(0x2cc)]=_0xe205a3[_0xc6fb29(0x20b)][_0xc6fb29(0x1b6)](_0x4210d3=>{const _0x248909=_0xc6fb29;_0x4210d3['routeKey']===this[_0x248909(0x1bb)]&&this[_0x248909(0x164)](_0x4210d3);})):(this[_0xc6fb29(0x2b1)](),this[_0xc6fb29(0x414)]['next'](0x2),(_0x530164=this[_0xc6fb29(0x2cc)])==null||_0x530164[_0xc6fb29(0x49e)](),this[_0xc6fb29(0x2cc)]=null));}),this['disposeWithMe'](this[_0x40905e(0x3e9)]['registerOnClose'](()=>{const _0x269e77=_0x40905e;var _0x5787d8;(_0x5787d8=this[_0x269e77(0x321)])==null||_0x5787d8[_0x269e77(0x2c0)]({'cmd':_0x4a723e[_0x269e77(0x4fb)],'data':{'roomID':this[_0x269e77(0x1bb)]}});})));}get[_0xb893b1(0x2e1)](){const _0x25ba6c=_0xb893b1;return this[_0x25ba6c(0x414)][_0x25ba6c(0x38d)]();}['getMemberID'](){const _0x46a4e7=_0xb893b1;var _0x154834,_0x59c7aa;return(_0x59c7aa=(_0x154834=this['_socket'])==null?void 0x0:_0x154834[_0x46a4e7(0x40d)])!=null?_0x59c7aa:null;}[_0xb893b1(0x50d)](){const _0x3a959d=_0xb893b1;super['dispose'](),this['dispose$']['next'](),this[_0x3a959d(0x11c)][_0x3a959d(0x398)]();}[_0xb893b1(0x3c9)](){const _0x4af2c7=_0xb893b1;var _0x31ab14,_0x35d70b;this[_0x4af2c7(0x2b1)](),(_0x31ab14=this[_0x4af2c7(0x321)])==null||_0x31ab14[_0x4af2c7(0x2c0)]({'cmd':_0x4a723e[_0x4af2c7(0x4fb)],'data':{'roomID':this[_0x4af2c7(0x1bb)]}}),(_0x35d70b=this[_0x4af2c7(0x321)])==null||_0x35d70b[_0x4af2c7(0x3c9)](),this[_0x4af2c7(0x4a4)][_0x4af2c7(0x398)](),this[_0x4af2c7(0x414)]['complete'](),this[_0x4af2c7(0x50d)]();}[_0xb893b1(0x164)](_0x30d097){const _0x31bae5=_0xb893b1;_0x30d097['cmd']===_0x4a723e['JOIN']?this[_0x31bae5(0x4b4)](_0x30d097):_0x30d097[_0x31bae5(0x3d4)]===_0x4a723e[_0x31bae5(0x50b)]&&this['_onRecvEvent'](_0x30d097);}[_0xb893b1(0x219)](_0x10a465){const _0x31e612=_0xb893b1;this[_0x31e612(0x414)][_0x31e612(0x174)](0x1),_0x10a465[_0x31e612(0x2c0)]({'cmd':_0x4a723e['JOIN'],'routeKey':this[_0x31e612(0x1bb)],'routeType':'','data':{'rooms':[{'roomID':this[_0x31e612(0x1bb)]}]}});}[_0xb893b1(0x4b4)](_0xe90dab){const _0xbf64dd=_0xb893b1;var _0x5be484;if(_0xe90dab[_0xbf64dd(0x170)]===_0x46d5b1[_0xbf64dd(0x2c3)]){this[_0xbf64dd(0x166)][_0xbf64dd(0x250)]({'type':_0x145b31[_0xbf64dd(0x3de)]['Warning'],'content':this[_0xbf64dd(0x341)]['t'](_0xbf64dd(0x3e5))}),this[_0xbf64dd(0x414)][_0xbf64dd(0x174)](0x2);return;}this[_0xbf64dd(0x414)][_0xbf64dd(0x174)](0x3);const _0x2cfa59=(_0x5be484=_0xe90dab['data'][_0xbf64dd(0x43f)][this[_0xbf64dd(0x1bb)]])==null?void 0x0:_0x5be484[_0xbf64dd(0x491)];_0x2cfa59&&_0x2cfa59[_0xbf64dd(0x3b7)](_0x26730d=>this[_0xbf64dd(0x505)][_0xbf64dd(0x262)](this['_unitID'],_0x26730d));}[_0xb893b1(0x445)](_0x4d5f05){const _0x48196d=_0xb893b1;try{const _0x33b608=_0x4d5f05['data'];switch(_0x33b608['eventID']){case _0x5e5ab1['CollaborationEvent'][_0x48196d(0x125)]:this[_0x48196d(0x4d2)](_0x33b608),this['_event$']['next'](_0x33b608);break;case _0x5e5ab1['CollaborationEvent'][_0x48196d(0x30d)]:this['_onUserLeave'](_0x33b608),this['_event$'][_0x48196d(0x174)](_0x33b608);break;case _0x5e5ab1['CollaborationEvent']['CHANGESET_ACK']:case _0x5e5ab1[_0x48196d(0x177)][_0x48196d(0x406)]:this[_0x48196d(0x25e)](),this['_clearCollaborationTimeoutTimer'](),this[_0x48196d(0x4a4)][_0x48196d(0x174)](_0x33b608);break;case _0x5e5ab1[_0x48196d(0x177)]['MSG_FOR_ERROR']:this['_logService'][_0x48196d(0x368)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x48196d(0x2df)](_0x33b608)),this['_event$'][_0x48196d(0x174)](_0x33b608);break;case _0x5e5ab1[_0x48196d(0x177)][_0x48196d(0x4f3)]:this[_0x48196d(0x2a2)][_0x48196d(0x275)](_0x33b608[_0x48196d(0x489)]),this[_0x48196d(0x4a4)][_0x48196d(0x174)](_0x33b608);break;default:this[_0x48196d(0x4a4)][_0x48196d(0x174)](_0x33b608);}}catch(_0x2936f7){this[_0x48196d(0x482)][_0x48196d(0x368)](_0x2936f7,_0x4d5f05);}}[_0xb893b1(0x4d2)](_0x4fbece){const _0x5c5a4a=_0xb893b1;this[_0x5c5a4a(0x505)][_0x5c5a4a(0x262)](this[_0x5c5a4a(0x1bb)],_0x4fbece[_0x5c5a4a(0x489)]);}['_onUserLeave'](_0xa62dd1){const _0x14722c=_0xb893b1;this[_0x14722c(0x505)][_0x14722c(0x51f)](this[_0x14722c(0x1bb)],_0xa62dd1[_0x14722c(0x489)][_0x14722c(0x40d)]);}async['send'](_0x1c1dfc,_0x1ef13d){const _0x3024ac=_0xb893b1;if(this[_0x3024ac(0x2e1)]!==0x3||!this[_0x3024ac(0x321)])throw new Error(_0x3024ac(0x3e7));try{_0x1c1dfc[_0x3024ac(0x39a)]===_0x5e5ab1[_0x3024ac(0x177)][_0x3024ac(0x138)]&&(this[_0x3024ac(0x2d5)](),this[_0x3024ac(0x1d1)](_0x1c1dfc)),this[_0x3024ac(0x321)]['send']({'cmd':_0x4a723e[_0x3024ac(0x229)],'routeKey':_0x1ef13d,'routeType':'','data':_0x1c1dfc});}catch(_0x410eec){this[_0x3024ac(0x482)]['error'](_0x410eec);}}[_0xb893b1(0x2d5)](){const _0x5a4204=_0xb893b1;var _0x38841b;this[_0x5a4204(0x286)]=window['setTimeout'](()=>{const _0x2186cc=_0x5a4204;this[_0x2186cc(0x286)]=null,this['_messageService'][_0x2186cc(0x250)]({'type':_0x145b31[_0x2186cc(0x3de)][_0x2186cc(0x4b2)],'content':this[_0x2186cc(0x341)]['t']('session.collaboration-timeout')});},(_0x38841b=this['_configService'][_0x5a4204(0x22b)](_0x3ceb27))!=null?_0x38841b:0x4e20);}[_0xb893b1(0x41b)](){this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}[_0xb893b1(0x1d1)](_0x5dde85){const _0x36abf5=_0xb893b1;if(!this[_0x36abf5(0x3a6)])return;const {data:_0x392b8f}=_0x5dde85,{unitID:_0x217229,changeset:_0x4d9b32}=_0x392b8f,{mutations:_0x3a0bfc,type:_0x185974}=_0x4d9b32;this[_0x36abf5(0x41a)]={'unitId':_0x217229,'type':_0x185974,'startTime':performance[_0x36abf5(0x245)](),'stopTime':0x0,'duration':0x0,'size':_0x39a529(_0x3a0bfc)};}[_0xb893b1(0x25e)](){const _0x496a52=_0xb893b1;if(this[_0x496a52(0x3a6)]){if(!this[_0x496a52(0x41a)]){this['_logService'][_0x496a52(0x368)]('[CollaborationSession]',_0x496a52(0x280));return;}this['_telemetryInfo']['stopTime']=performance[_0x496a52(0x245)](),this[_0x496a52(0x41a)][_0x496a52(0x4c2)]=this[_0x496a52(0x41a)][_0x496a52(0x42f)]-this[_0x496a52(0x41a)][_0x496a52(0x396)],this['_telemetryService'][_0x496a52(0x2ca)](_0x4850e4,this['_telemetryInfo']),this['_telemetryInfo']=null;}}[_0xb893b1(0x2b1)](){const _0x21cb3b=_0xb893b1;this[_0x21cb3b(0x41a)]=null;}},_0x3b52c4[_0xb893b1(0x2e2)]=_0x182935([_0x569dd2(0x2,_0x58b389['ILogService']),_0x569dd2(0x3,_0x4d3c2b['IBeforeCloseService']),_0x569dd2(0x4,_0x4d3c2b[_0xb893b1(0x36f)]),_0x569dd2(0x5,_0x58b389[_0xb893b1(0x1f6)]),_0x569dd2(0x6,_0x58b389[_0xb893b1(0x4ac)](_0x58b389['LocaleService'])),_0x569dd2(0x7,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4['MemberService'])),_0x569dd2(0x8,_0x58b389[_0xb893b1(0x4ac)](_0x5efdb3)),_0x569dd2(0x9,_0x58b389[_0xb893b1(0x45b)](_0x41321d[_0xb893b1(0x273)]))],_0x3b52c4[_0xb893b1(0x2e2)]);var _0x4ceb08=Object[_0xb893b1(0x1bc)],_0x215fe4=Object[_0xb893b1(0x490)],_0x3d5111=(_0x5a8a47,_0x5af8d5,_0x3cca27,_0x5c69b8)=>{const _0xc6deb6=_0xb893b1;for(var _0x55cfc4=_0x5c69b8>0x1?void 0x0:_0x5c69b8?_0x215fe4(_0x5af8d5,_0x3cca27):_0x5af8d5,_0x336bc7=_0x5a8a47[_0xc6deb6(0x4d8)]-0x1,_0x458c92;_0x336bc7>=0x0;_0x336bc7--)(_0x458c92=_0x5a8a47[_0x336bc7])&&(_0x55cfc4=(_0x5c69b8?_0x458c92(_0x5af8d5,_0x3cca27,_0x55cfc4):_0x458c92(_0x55cfc4))||_0x55cfc4);return _0x5c69b8&&_0x55cfc4&&_0x4ceb08(_0x5af8d5,_0x3cca27,_0x55cfc4),_0x55cfc4;},_0x2a101f=(_0x1ac9b6,_0x5ee826)=>(_0x37daa0,_0x5083b0)=>_0x5ee826(_0x37daa0,_0x5083b0,_0x1ac9b6);_0x3b52c4[_0xb893b1(0x11f)]=class extends _0x58b389[_0xb893b1(0x4dc)]{constructor(_0x588007,_0x599c57,_0x514ce5,_0x54d13,_0x375c9b,_0x3b4db2){const _0x541cd2=_0xb893b1;super(),_0xf1fe43(this,_0x541cd2(0x515),new _0x4655d9['BehaviorSubject'](void 0x0)),_0xf1fe43(this,_0x541cd2(0x23a),this['_socket$']['asObservable']()),_0xf1fe43(this,_0x541cd2(0x471),null),_0xf1fe43(this,'_sessions',new Map()),_0xf1fe43(this,_0x541cd2(0x2ac),new _0x4655d9[(_0x541cd2(0x293))](_0x442957[_0x541cd2(0x4e7)])),_0xf1fe43(this,_0x541cd2(0x431),this[_0x541cd2(0x2ac)][_0x541cd2(0x526)]()),_0xf1fe43(this,_0x541cd2(0x37d),!0x1),_0xf1fe43(this,'_retryConnectingTimer'),_0xf1fe43(this,_0x541cd2(0x430),0x0),_0xf1fe43(this,'_sendHeartbeatTimer'),_0xf1fe43(this,_0x541cd2(0x313)),(this[_0x541cd2(0x126)]=_0x588007,this[_0x541cd2(0x341)]=_0x599c57,this['_messageService']=_0x514ce5,this[_0x541cd2(0x482)]=_0x54d13,this[_0x541cd2(0x2f3)]=_0x375c9b,this['_socketService']=_0x3b4db2,this[_0x541cd2(0x393)]());}get[_0xb893b1(0x321)](){const _0x27aa55=_0xb893b1;return this[_0x27aa55(0x515)][_0x27aa55(0x38d)]();}[_0xb893b1(0x393)](){const _0x1b2caf=_0xb893b1;this['_listenToOfflineEvent'](),this[_0x1b2caf(0x303)]();}['dispose'](){const _0x5aa4d6=_0xb893b1;super[_0x5aa4d6(0x50d)](),this[_0x5aa4d6(0x25c)][_0x5aa4d6(0x3b7)](_0xd8a5a4=>_0xd8a5a4[_0x5aa4d6(0x50d)]()),this['_sessions'][_0x5aa4d6(0x48c)](),this[_0x5aa4d6(0x2ac)]['complete']();}async[_0xb893b1(0x213)](_0x41909d){const _0x50047c=_0xb893b1;if(this[_0x50047c(0x25c)]['has'](_0x41909d))return this[_0x50047c(0x25c)][_0x50047c(0x19d)](_0x41909d);this['_tryEnsureSocket']();const _0x3feeb8=this[_0x50047c(0x126)][_0x50047c(0x361)](_0x3b52c4[_0x50047c(0x2e2)],_0x41909d,this[_0x50047c(0x515)][_0x50047c(0x526)]());return this[_0x50047c(0x25c)]['set'](_0x41909d,_0x3feeb8),_0x3feeb8;}['closeSession'](_0x51bdaa){const _0x5182c1=_0xb893b1;var _0x353ccc;const _0xdbe59c=this[_0x5182c1(0x25c)][_0x5182c1(0x19d)](_0x51bdaa);_0xdbe59c&&(this[_0x5182c1(0x25c)]['delete'](_0x51bdaa),_0xdbe59c[_0x5182c1(0x3c9)]()),this[_0x5182c1(0x25c)]['size']||(_0x353ccc=this[_0x5182c1(0x321)])==null||_0x353ccc[_0x5182c1(0x3c9)]();}[_0xb893b1(0x29e)](){const _0x57fc9e=_0xb893b1;this[_0x57fc9e(0x430)]=0x0,this[_0x57fc9e(0x3aa)]!=null&&(clearTimeout(this[_0x57fc9e(0x3aa)]),this['_retryConnectingTimer']=null),this[_0x57fc9e(0x2c8)]();}['_createSocket'](){const _0x200836=_0xb893b1;var _0x1251c2,_0x1ab8e2;const _0x10a885=this['_configService'][_0x200836(0x22b)](_0x4766f5),_0x2df255=this[_0x200836(0x2f3)][_0x200836(0x22b)](_0x271aa0),_0x532a47=(_0x1ab8e2=(_0x1251c2=_0x2df255==null?void 0x0:_0x2df255[_0x200836(0x3cb)])!=null?_0x1251c2:_0x10a885)!=null?_0x1ab8e2:_0x5b23cf,_0xf2991a=this['_socketService'][_0x200836(0x530)](_0x532a47);return this[_0x200836(0x471)]=_0xf2991a,_0xf2991a;}['_tryEnsureSocket'](){const _0x25e522=_0xb893b1;var _0x12e603,_0x16ad69;try{const _0x5473cb=(_0x16ad69=(_0x12e603=this['_socket'])!=null?_0x12e603:this[_0x25e522(0x471)])!=null?_0x16ad69:this['_createSocket']();if(_0x5473cb){const _0x4ff774=_0x5473cb[_0x25e522(0x2c0)];_0x5473cb['send']=_0x5e92df=>(this[_0x25e522(0x443)](),_0x4ff774['apply'](_0x5473cb,[_0x5e92df])),_0x5473cb[_0x25e522(0x20b)][_0x25e522(0x1b6)](_0x2459f8=>this['_onMessage'](_0x5473cb,_0x2459f8)),_0x5473cb[_0x25e522(0x41f)][_0x25e522(0x3ca)](_0x5d8a56[_0x25e522(0x3e4)](0x1))[_0x25e522(0x1b6)](_0x50c0bf=>this['_logService'][_0x25e522(0x368)](_0x25e522(0x3d7),_0x50c0bf)),_0x5473cb[_0x25e522(0x4ae)][_0x25e522(0x3ca)](_0x5d8a56[_0x25e522(0x3e4)](0x1))['subscribe'](()=>{const _0x72ed01=_0x25e522;this[_0x72ed01(0x11b)](_0x5473cb);}),_0x5473cb[_0x25e522(0x221)][_0x25e522(0x3ca)](_0x5d8a56['take'](0x1))[_0x25e522(0x1b6)](_0x4fe56=>{const _0x2f5f32=_0x25e522;this[_0x2f5f32(0x482)]['debug']('[CollaborationSessionService]','socket\x20close',_0x4fe56),this[_0x2f5f32(0x359)]();});}}catch(_0x17a3bc){this['_logService'][_0x25e522(0x368)](_0x17a3bc),this['_onConnectionFailed']();}}[_0xb893b1(0x11b)](_0x3749bc){const _0x4c9a8d=_0xb893b1;this[_0x4c9a8d(0x482)][_0x4c9a8d(0x20d)]('[CollaborationSessionService]',_0x4c9a8d(0x1cd)),_0x3749bc[_0x4c9a8d(0x2c0)]({'cmd':_0x4a723e[_0x4c9a8d(0x2e7)]}),this[_0x4c9a8d(0x443)]();}[_0xb893b1(0x405)](){const _0x5282c7=_0xb893b1;window[_0x5282c7(0x466)](_0x5282c7(0x2bf),()=>this['_onOffline']());}[_0xb893b1(0x1da)](){const _0x3fbd7e=_0xb893b1;this[_0x3fbd7e(0x37d)]=!0x1,this[_0x3fbd7e(0x471)]=null,this[_0x3fbd7e(0x2ac)][_0x3fbd7e(0x174)](_0x442957[_0x3fbd7e(0x4d1)]),this['_socket$'][_0x3fbd7e(0x174)](null),this[_0x3fbd7e(0x4e9)](),this[_0x3fbd7e(0x1ce)]();}[_0xb893b1(0x359)](){const _0x2d1f95=_0xb893b1;var _0x1c1140;this[_0x2d1f95(0x1da)](),this[_0x2d1f95(0x430)]<((_0x1c1140=this[_0x2d1f95(0x2f3)][_0x2d1f95(0x22b)](_0x1f388f))!=null?_0x1c1140:0x3)?(this['_messageService']['show']({'key':_0x2d1f95(0x356),'type':_0x145b31[_0x2d1f95(0x3de)][_0x2d1f95(0x2e0)],'content':this['_localeService']['t'](_0x2d1f95(0x346))}),this[_0x2d1f95(0x2c8)]()):this[_0x2d1f95(0x166)][_0x2d1f95(0x250)]({'key':_0x2d1f95(0x356),'type':_0x145b31[_0x2d1f95(0x3de)][_0x2d1f95(0x4b2)],'content':this[_0x2d1f95(0x341)]['t'](_0x2d1f95(0x39c))});}[_0xb893b1(0x303)](){const _0xc7936b=_0xb893b1,_0x283e7e=()=>{const _0x3786f9=_0x104b;this[_0x3786f9(0x321)]||this[_0x3786f9(0x29e)]();},_0x681cc7=()=>{const _0x10938c=_0x104b;this['_socket']||document['visibilityState']===_0x10938c(0x1c5)||this[_0x10938c(0x29e)]();};window['addEventListener']('online',_0x283e7e),document[_0xc7936b(0x466)](_0xc7936b(0x51c),_0x681cc7);}['_tryReconnect'](){const _0x3576f0=_0xb893b1;var _0x103a30;const _0x5ec46a=this[_0x3576f0(0x430)],_0x47a347=this[_0x3576f0(0x2f3)][_0x3576f0(0x22b)](_0x271aa0),_0x396b50=_0x5ec46a===0x0?0x0:((_0x103a30=_0x47a347==null?void 0x0:_0x47a347[_0x3576f0(0x35b)])!=null?_0x103a30:0x4e20)*0x2**_0x5ec46a;this[_0x3576f0(0x3aa)]=window[_0x3576f0(0x28a)](()=>{const _0x24ab5b=_0x3576f0;clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null,this[_0x24ab5b(0xf7)]();},_0x396b50),this[_0x3576f0(0x430)]+=0x1;}[_0xb893b1(0x50a)](_0x343ce,_0x1524c7){const _0x21cb98=_0xb893b1,{cmd:_0x3e2f59}=_0x1524c7;_0x3e2f59===_0x4a723e[_0x21cb98(0x2e7)]&&!this[_0x21cb98(0x37d)]&&(_0x343ce[_0x21cb98(0x40d)]=_0x1524c7['data']['memberID'],this['_socket$']['next'](_0x343ce),this['_status$'][_0x21cb98(0x174)](_0x442957[_0x21cb98(0x4d5)]),this[_0x21cb98(0x37d)]=!0x0,this[_0x21cb98(0x471)]=null),_0x3e2f59===_0x4a723e[_0x21cb98(0x269)]&&this[_0x21cb98(0x4e9)](),this[_0x21cb98(0x443)]();}[_0xb893b1(0x443)](){const _0x2947a4=_0xb893b1;var _0x4f1883;this[_0x2947a4(0x1ce)](),this[_0x2947a4(0x42a)]=window[_0x2947a4(0x28a)](()=>this[_0x2947a4(0x235)](),(_0x4f1883=this[_0x2947a4(0x2f3)][_0x2947a4(0x22b)](_0x407e6e))!=null?_0x4f1883:0x7530);}[_0xb893b1(0x235)](){const _0x355fad=_0xb893b1;this[_0x355fad(0x321)][_0x355fad(0x2c0)]({'cmd':_0x4a723e[_0x355fad(0x269)]}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x24b24f=_0xb893b1;var _0x3e83b1;this[_0x24b24f(0x313)]=window[_0x24b24f(0x28a)](()=>this[_0x24b24f(0x359)](),(_0x3e83b1=this['_configService'][_0x24b24f(0x22b)](_0x3ceb27))!=null?_0x3e83b1:0x4e20);}[_0xb893b1(0x1ce)](){const _0x510c10=_0xb893b1;this[_0x510c10(0x42a)]!=null&&(clearTimeout(this[_0x510c10(0x42a)]),this['_sendHeartbeatTimer']=null);}[_0xb893b1(0x4e9)](){const _0x3e115a=_0xb893b1;this[_0x3e115a(0x313)]!=null&&(clearTimeout(this[_0x3e115a(0x313)]),this[_0x3e115a(0x313)]=null);}},_0x3b52c4[_0xb893b1(0x11f)]=_0x3d5111([_0x2a101f(0x0,_0x58b389[_0xb893b1(0x4ac)](_0x58b389['Injector'])),_0x2a101f(0x1,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x4ee)])),_0x2a101f(0x2,_0x4d3c2b['IMessageService']),_0x2a101f(0x3,_0x58b389[_0xb893b1(0x46a)]),_0x2a101f(0x4,_0x58b389[_0xb893b1(0x1f6)]),_0x2a101f(0x5,_0x383a5a)],_0x3b52c4[_0xb893b1(0x11f)]);for(var _0x4c2442=[],_0x564fde=0x0;_0x564fde<0x100;++_0x564fde)_0x4c2442['push']((_0x564fde+0x100)['toString'](0x10)[_0xb893b1(0x326)](0x1));function _0x42aa3c(_0x37b4cb,_0x3cbb73=0x0){return(_0x4c2442[_0x37b4cb[_0x3cbb73+0x0]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0x1]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0x2]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0x3]]+'-'+_0x4c2442[_0x37b4cb[_0x3cbb73+0x4]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0x5]]+'-'+_0x4c2442[_0x37b4cb[_0x3cbb73+0x6]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0x7]]+'-'+_0x4c2442[_0x37b4cb[_0x3cbb73+0x8]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0x9]]+'-'+_0x4c2442[_0x37b4cb[_0x3cbb73+0xa]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0xb]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0xc]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0xd]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0xe]]+_0x4c2442[_0x37b4cb[_0x3cbb73+0xf]])['toLowerCase']();}var _0x5147ba,_0x87bb7=new Uint8Array(0x10);function _0x13f9d7(){const _0x129b16=_0xb893b1;if(!_0x5147ba&&(_0x5147ba=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x129b16(0x249)]['bind'](crypto),!_0x5147ba))throw new Error(_0x129b16(0x2e4));return _0x5147ba(_0x87bb7);}var _0x416451=typeof crypto<'u'&&crypto[_0xb893b1(0x2a4)]&&crypto['randomUUID']['bind'](crypto);const _0x391cc3={'randomUUID':_0x416451};function _0x3b5e61(_0x275992,_0x3df3bd,_0x51fd9e){const _0x11667e=_0xb893b1;if(_0x391cc3[_0x11667e(0x2a4)]&&!_0x3df3bd&&!_0x275992)return _0x391cc3[_0x11667e(0x2a4)]();_0x275992=_0x275992||{};var _0x2fae71=_0x275992['random']||(_0x275992[_0x11667e(0x4fa)]||_0x13f9d7)();return _0x2fae71[0x6]=_0x2fae71[0x6]&0xf|0x40,_0x2fae71[0x8]=_0x2fae71[0x8]&0x3f|0x80,_0x42aa3c(_0x2fae71);}var _0x1c52a5=Object[_0xb893b1(0x1bc)],_0xc788f0=Object[_0xb893b1(0x490)],_0xa359cd=(_0x55709b,_0x5dffc0,_0x11219f,_0x4697f4)=>{const _0x3e0807=_0xb893b1;for(var _0x26c98e=_0x4697f4>0x1?void 0x0:_0x4697f4?_0xc788f0(_0x5dffc0,_0x11219f):_0x5dffc0,_0x4e738b=_0x55709b[_0x3e0807(0x4d8)]-0x1,_0x13885e;_0x4e738b>=0x0;_0x4e738b--)(_0x13885e=_0x55709b[_0x4e738b])&&(_0x26c98e=(_0x4697f4?_0x13885e(_0x5dffc0,_0x11219f,_0x26c98e):_0x13885e(_0x26c98e))||_0x26c98e);return _0x4697f4&&_0x26c98e&&_0x1c52a5(_0x5dffc0,_0x11219f,_0x26c98e),_0x26c98e;},_0x26a354=(_0x466ea2,_0x2acd00)=>(_0x392894,_0x5697e9)=>_0x2acd00(_0x392894,_0x5697e9,_0x466ea2);let _0x3f6990=class{constructor(_0x1fcbb6,_0x416160,_0x57941b){const _0x3eeaad=_0xb893b1;this['_injector']=_0x1fcbb6,this[_0x3eeaad(0x18d)]=_0x416160,this[_0x3eeaad(0x508)]=_0x57941b;}[_0xb893b1(0x31b)](_0x22d337){const _0x160157=_0xb893b1;this[_0x160157(0x459)](_0x22d337),this[_0x160157(0x2b6)](_0x22d337);}[_0xb893b1(0x10c)](_0x5d6a58){const _0x194a73=_0xb893b1,{unitID:_0x3ee50b}=_0x5d6a58,_0x43dcb4=this[_0x194a73(0x508)][_0x194a73(0x117)](_0x3ee50b)[_0x194a73(0x43a)](_0x24db92[_0x194a73(0x30f)]),{redoCache:_0x12025e}=_0x43dcb4['getUndoRedoMutationParamsCache']();if(_0x12025e[_0x194a73(0x4d8)]===0x0)return _0x5d6a58;let _0x9a2349=_0x58b389[_0x194a73(0x36e)]['deepClone'](_0x5d6a58[_0x194a73(0x44a)][0x0]);for(let _0x305f42=0x0;_0x305f42<_0x12025e[_0x194a73(0x4d8)];_0x305f42++){const _0x4ab098={'id':_0x194a73(0x29a),'params':{..._0x12025e[_0x305f42]}},_0x271540=this[_0x194a73(0x18d)][_0x194a73(0x10a)](_0x9a2349,_0x4ab098,!0x1);if(_0x5e5ab1[_0x194a73(0x251)](_0x271540))throw _0x271540[_0x194a73(0x368)];_0x9a2349=_0x271540['m1Prime'];}return{..._0x58b389[_0x194a73(0x36e)]['deepClone'](_0x5d6a58),'mutations':[_0x9a2349]};}[_0xb893b1(0x459)](_0x5def7c){const _0x4f7407=_0xb893b1,{unitID:_0x5c4082}=_0x5def7c,_0x56ca3d=this[_0x4f7407(0x508)][_0x4f7407(0x117)](_0x5c4082)[_0x4f7407(0x43a)](_0x24db92[_0x4f7407(0x30f)]),{undoCache:_0x1724c4,redoCache:_0x1774ea}=_0x56ca3d['getUndoRedoMutationParamsCache']();if(_0x1724c4['length']===0x0||_0x1774ea[_0x4f7407(0x4d8)]===0x0)return;const _0x2d7312=[],_0xf0a60=[];let _0x276b15=_0x58b389[_0x4f7407(0x36e)][_0x4f7407(0xfc)](_0x5def7c[_0x4f7407(0x44a)][0x0]),_0x55fc27=_0x58b389[_0x4f7407(0x36e)][_0x4f7407(0xfc)](_0x5def7c['mutations'][0x0]);for(let _0x44b0a5=_0x1724c4[_0x4f7407(0x4d8)]-0x1;_0x44b0a5>=0x0;_0x44b0a5--){const _0x392ab5={'id':_0x4f7407(0x29a),'params':{..._0x1724c4[_0x44b0a5]}},_0x5d5801={'id':_0x4f7407(0x29a),'params':{..._0x1774ea[_0x44b0a5]}},_0x197182=this[_0x4f7407(0x18d)][_0x4f7407(0x10a)](_0x276b15,_0x392ab5,!0x1),_0xd768a3=this[_0x4f7407(0x18d)][_0x4f7407(0x10a)](_0x55fc27,_0x5d5801,!0x1);if(_0x5e5ab1[_0x4f7407(0x251)](_0x197182))throw _0x197182[_0x4f7407(0x368)];if(_0x5e5ab1[_0x4f7407(0x251)](_0xd768a3))throw _0xd768a3['error'];_0x2d7312['unshift'](_0x197182[_0x4f7407(0x23f)][_0x4f7407(0x16b)]),_0xf0a60[_0x4f7407(0x3d1)](_0xd768a3[_0x4f7407(0x23f)][_0x4f7407(0x16b)]),_0x276b15=_0x197182[_0x4f7407(0x148)],_0x55fc27=_0xd768a3[_0x4f7407(0x148)];}_0x56ca3d[_0x4f7407(0x100)]({'undoCache':_0x2d7312,'redoCache':_0xf0a60});}[_0xb893b1(0x2b6)](_0x54cfb3){const _0x149683=_0xb893b1,{unitID:_0x36f0af}=_0x54cfb3,_0x4613b2=this[_0x149683(0x508)]['getRenderById'](_0x36f0af)[_0x149683(0x43a)](_0x24db92[_0x149683(0x30f)]),_0x47c20d=_0x4613b2[_0x149683(0x3b0)]();if(_0x47c20d==null)return;const _0x4d4598=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x54cfb3[_0x149683(0x386)],'actions':null,'textRanges':[_0x47c20d]}}],_0x44c55b=this[_0x149683(0x18d)]['transformMutationsWithChangeset'](_0x54cfb3,_0x4d4598);if(!_0x5e5ab1[_0x149683(0x542)](_0x44c55b))throw _0x44c55b['error'];const _0x88f3d7=_0x44c55b['m2Prime'][0x0][_0x149683(0x16b)][_0x149683(0x107)];Array['isArray'](_0x88f3d7)&&_0x88f3d7[_0x149683(0x4d8)]&&_0x4613b2[_0x149683(0x494)](_0x88f3d7[0x0]);}};_0x3f6990=_0xa359cd([_0x26a354(0x0,_0x58b389['Inject'](_0x58b389[_0xb893b1(0x1d4)])),_0x26a354(0x1,_0x5e5ab1[_0xb893b1(0x157)]),_0x26a354(0x2,_0x1c7683[_0xb893b1(0x3eb)])],_0x3f6990);var _0x339399=Object['defineProperty'],_0x547bb6=Object[_0xb893b1(0x490)],_0x355595=(_0x1eb734,_0x223a96,_0x46d747,_0x559e73)=>{const _0x1d460e=_0xb893b1;for(var _0x50b9ed=_0x559e73>0x1?void 0x0:_0x559e73?_0x547bb6(_0x223a96,_0x46d747):_0x223a96,_0x1b1c11=_0x1eb734[_0x1d460e(0x4d8)]-0x1,_0x2c595c;_0x1b1c11>=0x0;_0x1b1c11--)(_0x2c595c=_0x1eb734[_0x1b1c11])&&(_0x50b9ed=(_0x559e73?_0x2c595c(_0x223a96,_0x46d747,_0x50b9ed):_0x2c595c(_0x50b9ed))||_0x50b9ed);return _0x559e73&&_0x50b9ed&&_0x339399(_0x223a96,_0x46d747,_0x50b9ed),_0x50b9ed;},_0x4c8609=(_0x3801bf,_0x5d9796)=>(_0x1edb2c,_0x389000)=>_0x5d9796(_0x1edb2c,_0x389000,_0x3801bf);_0x3b52c4[_0xb893b1(0x2ff)]=class extends _0x58b389[_0xb893b1(0x4dc)]{constructor(_0x46f8b6,_0x3c7b2a,_0x549342,_0x7a63c4,_0x2d99f3){const _0x2fef9c=_0xb893b1;super(),_0xf1fe43(this,'_cachedData',new Map()),_0xf1fe43(this,_0x2fef9c(0x2bb),new Map()),_0xf1fe43(this,_0x2fef9c(0x509),!0x1),(this['_configService']=_0x46f8b6,this[_0x2fef9c(0x46c)]=_0x3c7b2a,this[_0x2fef9c(0x3e9)]=_0x549342,this[_0x2fef9c(0x341)]=_0x7a63c4,this[_0x2fef9c(0x3ee)]=_0x2d99f3,this[_0x2fef9c(0x238)]());}['disableLocalCache'](){const _0xa51a56=_0xb893b1;this[_0xa51a56(0x509)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}[_0xb893b1(0x50d)](){const _0x160dc9=_0xb893b1;this[_0x160dc9(0x3c1)]()[_0x160dc9(0x2e6)](()=>super[_0x160dc9(0x50d)]());}async[_0xb893b1(0x477)](_0x16f631){const _0x24fe05=_0xb893b1;return this['_disabled']?null:this[_0x24fe05(0x46c)][_0x24fe05(0x41d)](_0x2979de(_0x16f631));}async[_0xb893b1(0x44f)](_0x3ce048,_0xc10511){const _0x3ca68a=_0xb893b1;return!!this[_0x3ca68a(0x46c)][_0x3ca68a(0x1b0)](_0x3ce048,_0xc10511);}[_0xb893b1(0x4b6)](_0x142f26,_0x2a076e,_0x312ca2,_0x30eb4d){const _0x53dc8b=_0xb893b1,_0x56b733=this['_revisionService'][_0x53dc8b(0x183)](_0x142f26);this[_0x53dc8b(0x382)][_0x53dc8b(0x1c2)](_0x142f26,{'unitID':_0x142f26,'type':_0x2a076e,'awaitingChangeset':_0x312ca2,'mutations':_0x30eb4d,'rev':_0x56b733}),this[_0x53dc8b(0x2bb)]['has'](_0x142f26)||this['_scheduleSaving'](_0x142f26);}[_0xb893b1(0x523)](_0x4b97f6){const _0x3f180b=_0xb893b1,_0x4dc79a=this[_0x3f180b(0x1a8)]();_0x4dc79a===0x0?this[_0x3f180b(0x2e8)](_0x4b97f6):this['_saveTaskMap'][_0x3f180b(0x1c2)](_0x4b97f6,setTimeout(()=>this['_saveCache'](_0x4b97f6),_0x4dc79a));}[_0xb893b1(0x1a8)](){const _0x1492ef=_0xb893b1;var _0x43448a;return(_0x43448a=this['_configService'][_0x1492ef(0x22b)](_0x2c3e4f))!=null?_0x43448a:0x3e8;}[_0xb893b1(0x2e8)](_0x7f6f05){const _0x11d802=_0xb893b1,_0x26ae9f=this[_0x11d802(0x2bb)][_0x11d802(0x19d)](_0x7f6f05);return _0x26ae9f!==void 0x0&&window['clearTimeout'](_0x26ae9f),this[_0x11d802(0x46c)][_0x11d802(0x1b0)](_0x2979de(_0x7f6f05),this[_0x11d802(0x382)]['get'](_0x7f6f05))[_0x11d802(0x2e6)](()=>this['_saveTaskMap']['delete'](_0x7f6f05));}async[_0xb893b1(0x3c1)](){const _0x19b76f=_0xb893b1,_0x117165=[];this['_saveTaskMap'][_0x19b76f(0x3b7)]((_0x394326,_0x579ad1)=>{const _0x3ce038=_0x19b76f;window[_0x3ce038(0x41c)](_0x394326),_0x117165[_0x3ce038(0x428)](this['_saveCache'](_0x579ad1)[_0x3ce038(0x2e6)](()=>{const _0x125d17=_0x3ce038;this[_0x125d17(0x2bb)][_0x125d17(0x1d0)](_0x579ad1);}));}),await Promise['all'](_0x117165);}[_0xb893b1(0x238)](){const _0x5214c7=_0xb893b1;this[_0x5214c7(0x14b)](this[_0x5214c7(0x3e9)][_0x5214c7(0x429)](()=>{const _0x5010c1=_0x5214c7;if(this[_0x5010c1(0x2bb)][_0x5010c1(0x30b)])return this[_0x5010c1(0x341)]['t'](_0x5010c1(0x181));}));}},_0x3b52c4[_0xb893b1(0x2ff)]=_0x355595([_0x4c8609(0x0,_0x58b389[_0xb893b1(0x1f6)]),_0x4c8609(0x1,_0x58b389[_0xb893b1(0x33d)]),_0x4c8609(0x2,_0x4d3c2b[_0xb893b1(0x3b2)]),_0x4c8609(0x3,_0x58b389['Inject'](_0x58b389[_0xb893b1(0x4ee)])),_0x4c8609(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1[_0xb893b1(0x3ba)]))],_0x3b52c4[_0xb893b1(0x2ff)]);function _0x2979de(_0x1ad460){const _0x4a27fe=_0xb893b1;return _0x4a27fe(0x31f)+_0x1ad460;}var _0x3cef23=Object[_0xb893b1(0x1bc)],_0x33fdab=Object['getOwnPropertyDescriptor'],_0x5b7fd5=(_0x4e88e1,_0x12bd3b,_0x5dba19,_0x2885b2)=>{const _0x39f737=_0xb893b1;for(var _0x14495e=_0x2885b2>0x1?void 0x0:_0x2885b2?_0x33fdab(_0x12bd3b,_0x5dba19):_0x12bd3b,_0x5c023b=_0x4e88e1[_0x39f737(0x4d8)]-0x1,_0x109c0f;_0x5c023b>=0x0;_0x5c023b--)(_0x109c0f=_0x4e88e1[_0x5c023b])&&(_0x14495e=(_0x2885b2?_0x109c0f(_0x12bd3b,_0x5dba19,_0x14495e):_0x109c0f(_0x14495e))||_0x14495e);return _0x2885b2&&_0x14495e&&_0x3cef23(_0x12bd3b,_0x5dba19,_0x14495e),_0x14495e;},_0x190b9f=(_0x31a930,_0x5db587)=>(_0x494cc2,_0xaa7555)=>_0x5db587(_0x494cc2,_0xaa7555,_0x31a930);function _0x177346(_0xb73a5f){const _0x455349=_0xb893b1,{unitID:_0x285811,mutations:_0x1fc123}=_0xb73a5f;return{'unitId':_0x285811,'subUnitId':_0x1fc123[0x0][_0x455349(0x16b)][_0x455349(0x3a1)]};}let _0xc29e66=class{constructor(_0x44bc31,_0x3607dd,_0x3e717f){const _0x19f61b=_0xb893b1;this[_0x19f61b(0x126)]=_0x44bc31,this[_0x19f61b(0x18d)]=_0x3607dd,this[_0x19f61b(0x172)]=_0x3e717f;}[_0xb893b1(0x45a)](_0x57331e){const _0x29d140=_0xb893b1;var _0x118a2b,_0x2cbacf,_0xe92552,_0x1a751e;const _0x59c4c0=this[_0x29d140(0x126)][_0x29d140(0x19d)](_0x2d2223[_0x29d140(0x3bf)]),{unitId:_0x35fa3a,subUnitId:_0x1f94a1}=_0x177346(_0x57331e),_0x380012=_0x59c4c0[_0x29d140(0x2d0)](_0x35fa3a)[_0x29d140(0x2d2)](),_0x562231=(_0x2cbacf=(_0x118a2b=this['_instanceService'][_0x29d140(0x1b5)](_0x35fa3a))==null?void 0x0:_0x118a2b[_0x29d140(0x131)]())==null?void 0x0:_0x2cbacf[_0x29d140(0x499)]();if(_0x380012['length']===0x0||!_0x35fa3a||!_0x1f94a1)return;const _0xd5282f=[{'id':_0x2d2223[_0x29d140(0x327)]['id'],'params':{'unitId':_0x35fa3a,'subUnitId':_0x562231,'selections':_0x58b389[_0x29d140(0x36e)][_0x29d140(0xfc)](_0x380012)}}],_0x464293=this['_transformService'][_0x29d140(0x23b)](_0x57331e,_0xd5282f);if(!_0x5e5ab1[_0x29d140(0x542)](_0x464293))throw _0x464293[_0x29d140(0x368)];const _0xc4b002=(_0x1a751e=(_0xe92552=_0x464293[_0x29d140(0x23f)][0x0])==null?void 0x0:_0xe92552[_0x29d140(0x16b)])==null?void 0x0:_0x1a751e[_0x29d140(0x163)];if(Array['isArray'](_0xc4b002)&&_0xc4b002['length']){if(_0xc4b002[_0x29d140(0x4d8)]===_0xd5282f[0x0][_0x29d140(0x16b)][_0x29d140(0x163)][_0x29d140(0x4d8)]&&_0xc4b002[_0x29d140(0x33f)]((_0x1530ce,_0x592ba4)=>_0x58b389[_0x29d140(0x17a)]['equals'](_0x1530ce[_0x29d140(0x385)],_0xd5282f[0x0]['params']['selections'][_0x592ba4][_0x29d140(0x385)])))return;this[_0x29d140(0x126)][_0x29d140(0x19d)](_0x58b389[_0x29d140(0x1ec)])[_0x29d140(0x3c5)](_0x2d2223['SetSelectionsOperation']['id'],{'unitId':_0x35fa3a,'subUnitId':_0x562231,'selections':_0xc4b002});}}};_0xc29e66=_0x5b7fd5([_0x190b9f(0x0,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x190b9f(0x1,_0x5e5ab1[_0xb893b1(0x157)]),_0x190b9f(0x2,_0x58b389['IUniverInstanceService'])],_0xc29e66);const _0x8f0d7b=_0x58b389[_0xb893b1(0x202)](_0xb893b1(0x1f0));var _0x213bfc=(_0x19db94=>(_0x19db94[_0x19db94[_0xb893b1(0x19c)]=0x0]=_0xb893b1(0x19c),_0x19db94[_0x19db94[_0xb893b1(0x302)]=0x1]=_0xb893b1(0x302),_0x19db94))(_0x213bfc||{});const _0x2eb60d=0x7530,_0x251c86='ACTIVE_UNIT_EVENT_CHANNEL';class _0x300a07 extends _0x58b389[_0xb893b1(0x4dc)]{constructor(){const _0xc4a03c=_0xb893b1;super(),_0xf1fe43(this,'_id',_0x58b389[_0xc4a03c(0x36e)][_0xc4a03c(0x3e0)]()),_0xf1fe43(this,_0xc4a03c(0x438),new Set()),_0xf1fe43(this,'_unitOnClients',new Map()),_0xf1fe43(this,_0xc4a03c(0x354),null),_0xf1fe43(this,_0xc4a03c(0x41e),new Map()),_0xf1fe43(this,_0xc4a03c(0x513),new Map()),this[_0xc4a03c(0x3e2)]();}[_0xb893b1(0x50d)](){const _0x42a5c0=_0xb893b1;super[_0x42a5c0(0x50d)](),this[_0x42a5c0(0x41e)]['forEach']((_0x158cd0,_0x230fc0)=>this['_removeClearOtherTimer'](_0x230fc0)),this[_0x42a5c0(0x354)]&&window[_0x42a5c0(0x350)](this['_heartbeatTimer']);}[_0xb893b1(0x3c6)](_0x3ba10f){const _0x14bd89=_0xb893b1;return this['_ensureSubject'](_0x3ba10f)[_0x14bd89(0x3ca)](_0x4655d9[_0x14bd89(0x40f)]());}[_0xb893b1(0x2c1)](_0x45e95f){const _0x59c258=_0xb893b1;this[_0x59c258(0x438)][_0x59c258(0x30b)]===0x0&&this[_0x59c258(0x503)](),this[_0x59c258(0x438)][_0x59c258(0x510)](_0x45e95f),this[_0x59c258(0x1df)]({'type':0x0,'memberID':this[_0x59c258(0x1e8)],'unitIDs':[_0x45e95f],'isForwarded':!0x1});}[_0xb893b1(0x40b)](_0x290bc8){const _0x3e112d=_0xb893b1;this[_0x3e112d(0x438)][_0x3e112d(0x1d0)](_0x290bc8),this[_0x3e112d(0x438)]['size']===0x0&&this[_0x3e112d(0x354)]&&window['clearInterval'](this[_0x3e112d(0x354)]);}[_0xb893b1(0x3e2)](){const _0x17bf92=_0xb893b1;this['disposeWithMe'](_0x58b389[_0x17bf92(0x1bf)](_0x4655d9[_0x17bf92(0x47e)](window,_0x17bf92(0x234))[_0x17bf92(0x1b6)](_0x7d65f9=>{const _0x2a4de8=_0x17bf92;if(_0x7d65f9['key']!==_0x251c86||!_0x7d65f9[_0x2a4de8(0x1b1)])return;const _0x38cea2=JSON[_0x2a4de8(0x17e)](_0x7d65f9[_0x2a4de8(0x1b1)]);this[_0x2a4de8(0x4d3)](_0x38cea2);}))),window[_0x17bf92(0x466)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x17bf92(0x1e8)],'unitIDs':Array[_0x17bf92(0x169)](this[_0x17bf92(0x438)])}));}[_0xb893b1(0x4d3)](_0x1e2ab9){const _0x5c4bf1=_0xb893b1;switch(_0x1e2ab9[_0x5c4bf1(0x191)]){case 0x0:this[_0x5c4bf1(0x2f0)](_0x1e2ab9);break;case 0x1:this[_0x5c4bf1(0x2eb)](_0x1e2ab9);break;case 0x2:this[_0x5c4bf1(0x397)](_0x1e2ab9);break;}}[_0xb893b1(0x2f0)](_0x1ab537){const _0x1c1a69=_0xb893b1,{unitIDs:_0x1e8a2c,memberID:_0x36567e,isForwarded:_0x499d83}=_0x1ab537;_0x1e8a2c[_0x1c1a69(0x3b7)](_0x2ebd5b=>{const _0x10e5dd=_0x1c1a69;if(!_0x499d83&&this[_0x10e5dd(0x2ab)]['has'](_0x2ebd5b)&&this[_0x10e5dd(0x23e)](_0x2ebd5b)[_0x10e5dd(0x174)](0x1),!this['_unitOnClients'][_0x10e5dd(0x2dc)](_0x2ebd5b)||!this['_unitOnClients'][_0x10e5dd(0x19d)](_0x2ebd5b)[_0x10e5dd(0x2dc)](_0x36567e)){const _0x1bb71a=this['_unitOnClients']['get'](_0x2ebd5b)||new Set();_0x1bb71a[_0x10e5dd(0x510)](_0x36567e),this[_0x10e5dd(0x2ab)][_0x10e5dd(0x1c2)](_0x2ebd5b,_0x1bb71a),this[_0x10e5dd(0x223)](_0x36567e);}}),_0x499d83||this[_0x1c1a69(0x1df)]({'type':0x0,'memberID':this[_0x1c1a69(0x1e8)],'unitIDs':[...this[_0x1c1a69(0x438)]],'isForwarded':!0x0});}[_0xb893b1(0x223)](_0x4a1d71){const _0x23f1f5=_0xb893b1;this['_removeClearOtherTimer'](_0x4a1d71);const _0xce9cf5=window[_0x23f1f5(0x28a)](()=>{const _0x1ce98c=_0x23f1f5;this[_0x1ce98c(0x2ab)][_0x1ce98c(0x3b7)](_0x3b23ba=>{const _0x42bbf4=_0x1ce98c;_0x3b23ba[_0x42bbf4(0x1d0)](_0x4a1d71);});},_0x2eb60d*0x2);this['_clearOtherTimers']['set'](_0x4a1d71,_0xce9cf5);}[_0xb893b1(0x31c)](_0x4c80e5){const _0x17776f=_0xb893b1;if(this[_0x17776f(0x41e)][_0x17776f(0x2dc)](_0x4c80e5)){const _0x463452=this[_0x17776f(0x41e)]['get'](_0x4c80e5);_0x463452&&window[_0x17776f(0x41c)](_0x463452),this[_0x17776f(0x41e)]['set'](_0x4c80e5,null);}}[_0xb893b1(0x2eb)](_0x190bb5){const _0x5dcc6a=_0xb893b1,{memberID:_0x206ecb,unitIDs:_0x87a1bd}=_0x190bb5;_0x87a1bd[_0x5dcc6a(0x3b7)](_0x1afbbe=>{const _0xb0246a=_0x5dcc6a;var _0x24e003;const _0x180c17=this[_0xb0246a(0x2ab)][_0xb0246a(0x19d)](_0x1afbbe);_0x180c17&&(_0x180c17[_0xb0246a(0x1d0)](_0x206ecb),(_0x24e003=this[_0xb0246a(0x23e)](_0x1afbbe))==null||_0x24e003[_0xb0246a(0x174)](_0x180c17[_0xb0246a(0x30b)]===0x0?0x0:0x1));}),this[_0x5dcc6a(0x31c)](_0x206ecb);}[_0xb893b1(0x397)](_0x35a274){const _0x2459a3=_0xb893b1;this[_0x2459a3(0x223)](_0x35a274[_0x2459a3(0x40d)]);}[_0xb893b1(0x1df)](_0x32b653){const _0x52c490=_0xb893b1;localStorage[_0x52c490(0x1b0)](_0x251c86,JSON['stringify'](_0x32b653));}[_0xb893b1(0x503)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x51d48b=_0x104b;this[_0x51d48b(0x1df)]({'type':0x2,'memberID':this['_id']});},_0x2eb60d);}[_0xb893b1(0x23e)](_0x1b97f1){const _0x2ad913=_0xb893b1;return this[_0x2ad913(0x513)][_0x2ad913(0x2dc)](_0x1b97f1)||this['_unitStatus'][_0x2ad913(0x1c2)](_0x1b97f1,new _0x4655d9[(_0x2ad913(0x293))](0x0)),this[_0x2ad913(0x513)][_0x2ad913(0x19d)](_0x1b97f1);}}function _0x21cb6a(_0x4f0ba9){const _0x5e141a=_0xb893b1;let _0x57df5e='';for(const _0x479886 of _0x4f0ba9){const {startOffset:_0x489fc9,endOffset:_0x2c4730,isActive:_0x150159,rangeType:_0x2236be,segmentId:_0x32ec7f,segmentPage:_0x528c7d}=_0x479886;_0x57df5e[_0x5e141a(0x4d8)]&&(_0x57df5e+=','),_0x57df5e+=_0x489fc9+':'+_0x2c4730+':'+(_0x150159?'1':'0')+':'+_0x2236be+':'+_0x32ec7f+':'+_0x528c7d;}return _0x57df5e;}function _0x1f2f83(_0x25c8ff){const _0xf5f2cd=_0xb893b1,_0x159299=_0x25c8ff[_0xf5f2cd(0x268)](','),_0x40afe6=[];for(const _0xd4405e of _0x159299){const [_0x5a9efb,_0x2b3614,_0x36854e,_0x2d223a,_0x1bd001,_0x84bd46]=_0xd4405e[_0xf5f2cd(0x268)](':');_0x40afe6[_0xf5f2cd(0x428)]({'startOffset':Number(_0x5a9efb),'endOffset':Number(_0x2b3614),'collapsed':_0x5a9efb===_0x2b3614,'isActive':_0x36854e==='1','rangeType':_0x2d223a===_0x58b389[_0xf5f2cd(0x210)][_0xf5f2cd(0x4a1)]?_0x58b389['DOC_RANGE_TYPE'][_0xf5f2cd(0x4a1)]:_0x58b389[_0xf5f2cd(0x210)][_0xf5f2cd(0x1de)],'segmentId':typeof _0x1bd001==_0xf5f2cd(0x4a5)?String(_0x1bd001):'','segmentPage':Number(_0x84bd46!=null?_0x84bd46:-0x1)});}return _0x40afe6[_0xf5f2cd(0x4cc)](_0x4c9275=>_0x4c9275[_0xf5f2cd(0x3db)])||(_0x40afe6[0x0][_0xf5f2cd(0x3db)]=!0x0),_0x40afe6;}class _0x195ff7 extends _0x58b389[_0xb893b1(0xf8)]{constructor(){const _0x4401fd=_0xb893b1;super(...arguments),_0xf1fe43(this,_0x4401fd(0x48f),new _0x4655d9['BehaviorSubject'](null)),_0xf1fe43(this,_0x4401fd(0x200),this[_0x4401fd(0x48f)][_0x4401fd(0x526)]());}[_0xb893b1(0x218)](_0x1db877){const _0x304d9e=_0xb893b1,{unitID:_0x17aba9,memberID:_0x1b865e,textRanges:_0x5dc486}=_0x1db877,_0x26d0ac=_0x21cb6a(_0x5dc486);if(_0x26d0ac==='')return;const _0x343407={'unitID':_0x17aba9,'memberID':_0x1b865e,'selection':_0x26d0ac};this[_0x304d9e(0x48f)][_0x304d9e(0x174)](_0x343407);}}var _0x40c4bf=Object[_0xb893b1(0x1bc)],_0x4c003f=Object[_0xb893b1(0x490)],_0x2f1a9c=(_0x3da58a,_0xf8056a,_0x332920,_0x3c3d8f)=>{const _0x4fb626=_0xb893b1;for(var _0x17a8cb=_0x3c3d8f>0x1?void 0x0:_0x3c3d8f?_0x4c003f(_0xf8056a,_0x332920):_0xf8056a,_0x58197a=_0x3da58a[_0x4fb626(0x4d8)]-0x1,_0x16feb2;_0x58197a>=0x0;_0x58197a--)(_0x16feb2=_0x3da58a[_0x58197a])&&(_0x17a8cb=(_0x3c3d8f?_0x16feb2(_0xf8056a,_0x332920,_0x17a8cb):_0x16feb2(_0x17a8cb))||_0x17a8cb);return _0x3c3d8f&&_0x17a8cb&&_0x40c4bf(_0xf8056a,_0x332920,_0x17a8cb),_0x17a8cb;},_0x44f171=(_0x37920c,_0x347172)=>(_0x263462,_0x2fda39)=>_0x347172(_0x263462,_0x2fda39,_0x37920c);let _0x5dda6a=class{constructor(_0x424c3c,_0x3faa53){const _0x3e223b=_0xb893b1;this[_0x3e223b(0x126)]=_0x424c3c,this[_0x3e223b(0x18d)]=_0x3faa53;}[_0xb893b1(0x45a)](_0x570384){const _0x589ddd=_0xb893b1;var _0xb4782a;const _0x401b42=this['_injector'][_0x589ddd(0x19d)](_0x124506[_0x589ddd(0x446)]),_0x5e1b76=(_0xb4782a=_0x401b42['getDocRanges']())!=null?_0xb4782a:[];if(_0x5e1b76[_0x589ddd(0x4d8)]===0x0)return;const _0x520438=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x570384[_0x589ddd(0x386)],'actions':null,'textRanges':_0x5e1b76}}],_0x1dffb7=this[_0x589ddd(0x18d)][_0x589ddd(0x23b)](_0x570384,_0x520438);if(!_0x5e5ab1[_0x589ddd(0x542)](_0x1dffb7))throw _0x1dffb7['error'];const _0x156a2b=_0x1dffb7[_0x589ddd(0x23f)][0x0]['params'][_0x589ddd(0x107)];Array[_0x589ddd(0x2f5)](_0x156a2b)&&_0x156a2b[_0x589ddd(0x4d8)]&&_0x401b42[_0x589ddd(0x4c4)](_0x156a2b,!0x1);}};_0x5dda6a=_0x2f1a9c([_0x44f171(0x0,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x44f171(0x1,_0x5e5ab1[_0xb893b1(0x157)])],_0x5dda6a);const _0x588cf6=new Set([_0x2d2223[_0xb893b1(0x4be)]['id']]);function _0x58c083(_0x2cb26a,_0x27049c,_0x120071,_0x19e5e9,_0x174cfe){const _0x5dfceb=_0xb893b1;var _0x35fb7e,_0x4f2ea4,_0x469651,_0x3503ea;const _0xd09651=[];for(const _0x1f5830 of _0x2cb26a)if(_0x588cf6['has'](_0x1f5830['id'])){if(_0xd09651[_0x5dfceb(0x4d8)]>0x0)break;_0xd09651[_0x5dfceb(0x428)](_0x1f5830);break;}else _0xd09651[_0x5dfceb(0x428)](_0x1f5830);const _0x5ec30c=(_0x4f2ea4=(_0x35fb7e=_0x174cfe[_0x5dfceb(0x1e5)]())==null?void 0x0:_0x35fb7e[_0x5dfceb(0x12f)])!=null?_0x4f2ea4:_0x5dfceb(0x232),_0x24900e=(_0x3503ea=(_0x469651=_0x174cfe[_0x5dfceb(0x1e5)]())==null?void 0x0:_0x469651[_0x5dfceb(0x40d)])!=null?_0x3503ea:'unknown';return{'changeset':{'unitID':_0x27049c,'type':_0x5e5ab1[_0x5dfceb(0x1f5)](_0x120071[_0x5dfceb(0x416)](_0x27049c)),'baseRev':_0x19e5e9[_0x5dfceb(0x183)](_0x27049c),'revision':0x0,'userID':_0x5ec30c,'memberID':_0x24900e,'mutations':_0xd09651},'pendingMutations':_0x2cb26a[_0x5dfceb(0x326)](_0xd09651[_0x5dfceb(0x4d8)])};}function _0x18e68a(_0x5e7f8a,_0x236ccb,_0x4da64e,_0x13bd58,_0x2ea901){const _0x59484b=_0xb893b1;var _0x13b031,_0x57b1bd,_0x317446,_0x5ddbf0;const _0x5e49ff=[_0x5e7f8a[_0x59484b(0x154)]((_0x1308d2,_0x2df746)=>{const _0x99d19a=_0x59484b;var _0x43064d;const {id:_0x1098a4}=_0x1308d2,{id:_0x10e2d4,type:_0x8a0809}=_0x2df746,_0x4eae07=(_0x43064d=_0x1308d2[_0x99d19a(0x16b)])!=null?_0x43064d:{'actions':null},_0x3bf7da=_0x2df746['params'];if(_0x1098a4&&_0x1098a4!==_0x10e2d4)throw new Error(_0x99d19a(0x152)+_0x1098a4+_0x99d19a(0x1fb)+_0x10e2d4+'.');return{..._0x1308d2,'id':_0x10e2d4,'type':_0x8a0809,'params':{'unitId':_0x3bf7da[_0x99d19a(0x458)],'textRanges':_0x3bf7da[_0x99d19a(0x107)],'actions':_0x58b389[_0x99d19a(0x196)][_0x99d19a(0x215)](_0x4eae07['actions'],_0x3bf7da[_0x99d19a(0x12b)])}};},{})],_0x501489=(_0x57b1bd=(_0x13b031=_0x2ea901[_0x59484b(0x1e5)]())==null?void 0x0:_0x13b031[_0x59484b(0x12f)])!=null?_0x57b1bd:'unknown',_0x4d7f75=(_0x5ddbf0=(_0x317446=_0x2ea901[_0x59484b(0x1e5)]())==null?void 0x0:_0x317446['memberID'])!=null?_0x5ddbf0:_0x59484b(0x232);return{'changeset':{'unitID':_0x236ccb,'type':_0x5e5ab1[_0x59484b(0x1f5)](_0x4da64e[_0x59484b(0x416)](_0x236ccb)),'baseRev':_0x13bd58[_0x59484b(0x183)](_0x236ccb),'revision':0x0,'userID':_0x501489,'memberID':_0x4d7f75,'mutations':_0x5e49ff},'pendingMutations':[]};}function _0x415a18(_0x1f5837,_0x89a87){const _0x3e2cee=_0xb893b1,_0x12f581=new _0x4655d9[(_0x3e2cee(0x30c))](0x1);return setTimeout(()=>_0x12f581['next'](_0x89a87),_0x1f5837),_0x12f581[_0x3e2cee(0x526)]()[_0x3e2cee(0x3ca)](_0x4655d9[_0x3e2cee(0x3e4)](0x1));}const _0x3f51fa={'id':_0x2d2223[_0xb893b1(0x199)]['id'],'type':_0x58b389[_0xb893b1(0x160)][_0xb893b1(0x101)],'params':{}};var _0x161c84=Object['defineProperty'],_0x2128b6=Object[_0xb893b1(0x490)],_0x4ca299=(_0x4c0a1c,_0x385731,_0x26359e,_0x4b6fbb)=>{for(var _0x1ac25e=_0x4b6fbb>0x1?void 0x0:_0x4b6fbb?_0x2128b6(_0x385731,_0x26359e):_0x385731,_0x16663d=_0x4c0a1c['length']-0x1,_0x479fce;_0x16663d>=0x0;_0x16663d--)(_0x479fce=_0x4c0a1c[_0x16663d])&&(_0x1ac25e=(_0x4b6fbb?_0x479fce(_0x385731,_0x26359e,_0x1ac25e):_0x479fce(_0x1ac25e))||_0x1ac25e);return _0x4b6fbb&&_0x1ac25e&&_0x161c84(_0x385731,_0x26359e,_0x1ac25e),_0x1ac25e;},_0x37d25f=(_0x2a144e,_0x7f6ce6)=>(_0x43001d,_0x1a8f79)=>_0x7f6ce6(_0x43001d,_0x1a8f79,_0x2a144e),_0x512cbd=(_0x1f4a6a=>(_0x1f4a6a[_0xb893b1(0x1dc)]='not_collab',_0x1f4a6a[_0xb893b1(0x4fc)]=_0xb893b1(0x4e6),_0x1f4a6a[_0xb893b1(0x1cc)]=_0xb893b1(0x49c),_0x1f4a6a[_0xb893b1(0x49d)]=_0xb893b1(0x2fe),_0x1f4a6a[_0xb893b1(0x109)]=_0xb893b1(0x465),_0x1f4a6a[_0xb893b1(0x2e3)]=_0xb893b1(0x4bf),_0x1f4a6a[_0xb893b1(0x18f)]=_0xb893b1(0x476),_0x1f4a6a['OFFLINE']='offline',_0x1f4a6a))(_0x512cbd||{});const _0x19da4c=0xea60;class _0x389d41{constructor(_0x296b1c,_0xc80d68,_0x1cc099,_0x17b23a,_0x6ebad9,_0x55ba54,_0x21ca26,_0x1cddd2,_0x30c0d8){const _0x6395a7=_0xb893b1;_0xf1fe43(this,_0x6395a7(0x277),null),_0xf1fe43(this,_0x6395a7(0x3f2),[]),(this[_0x6395a7(0x386)]=_0x296b1c,this[_0x6395a7(0x191)]=_0xc80d68,this[_0x6395a7(0x1af)]=_0x6ebad9,this['_commandService']=_0x55ba54,this[_0x6395a7(0x3f8)]=_0x21ca26,this[_0x6395a7(0x3ee)]=_0x1cddd2,this[_0x6395a7(0x4c9)]=_0x30c0d8,this[_0x6395a7(0x277)]=_0x1cc099,this[_0x6395a7(0x3f2)]=_0x17b23a);}[_0xb893b1(0x193)](_0x46a0a2){const _0x1d11cc=_0xb893b1,_0x421dc2=this[_0x1d11cc(0x3ee)][_0x1d11cc(0x183)](this['unitID']);return _0x46a0a2[_0x1d11cc(0x357)]>_0x421dc2+0x1?(this[_0x1d11cc(0x1af)][_0x1d11cc(0x4fd)]({'from':_0x421dc2,'to':_0x46a0a2[_0x1d11cc(0x357)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0xa2f934){const _0x49a6ef=_0xb893b1;this[_0x49a6ef(0x3f8)][_0x49a6ef(0x162)](this[_0x49a6ef(0x386)],_0xa2f934);}[_0xb893b1(0x3e8)](_0x1e9c0c){const _0x1c8139=_0xb893b1;var _0x5786e4,_0x477785;(_0x477785=(_0x5786e4=this[_0x1c8139(0x1af)])[_0x1c8139(0x400)])==null||_0x477785[_0x1c8139(0x4a6)](_0x5786e4,_0x1e9c0c);}[_0xb893b1(0x106)](_0x22c169){const _0x5222cd=_0xb893b1;var _0x54cc98,_0xaa6c6a;return(_0xaa6c6a=(_0x54cc98=this[_0x5222cd(0x1af)])['onTransformIME'])==null?void 0x0:_0xaa6c6a['call'](_0x54cc98,_0x22c169);}[_0xb893b1(0x2b8)](_0x141b6b){const _0x269ed3=_0xb893b1;var _0x3bb7b3,_0x50aabd,_0x4d640f;return(_0x4d640f=(_0x50aabd=(_0x3bb7b3=this['_handler'])[_0x269ed3(0x1f9)])==null?void 0x0:_0x50aabd[_0x269ed3(0x4a6)](_0x3bb7b3,_0x141b6b))!=null?_0x4d640f:_0x141b6b;}[_0xb893b1(0x4da)](_0x4bd64d){const _0x4bb854=_0xb893b1;var _0x5f1786,_0x52cf10;if(this[_0x4bb854(0x191)]===_0x2e214d[_0x4bb854(0x2d8)]){const {unitID:_0x3c5a30,mutations:_0x4efd3f,memberID:_0x4a229c}=_0x4bd64d,_0x5f4038=_0x4efd3f[0x0][_0x4bb854(0x16b)][_0x4bb854(0x107)];Array[_0x4bb854(0x2f5)](_0x5f4038)&&_0x5f4038[_0x4bb854(0x4d8)]>0x0&&((_0x52cf10=(_0x5f1786=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x52cf10[_0x4bb854(0x4a6)](_0x5f1786,{'unitID':_0x3c5a30,'memberID':_0x4a229c,'textRanges':_0x5f4038}));}}[_0xb893b1(0x49f)](){const _0x1360fa=_0xb893b1;this['_localCacheService'][_0x1360fa(0x4b6)](this[_0x1360fa(0x386)],this[_0x1360fa(0x191)],this['_awaitingChangeset'],this[_0x1360fa(0x3f2)]);}['_getCurrentRevision'](){const _0x43f839=_0xb893b1;return this[_0x43f839(0x3ee)][_0x43f839(0x183)](this[_0x43f839(0x386)]);}['_incrementRevisionNumber'](){const _0x4c5869=_0xb893b1;this['_revisionService'][_0x4c5869(0x391)](this['unitID']);}['_executeRemoteChangeset'](_0x20782e){const _0x2bd828=_0xb893b1;var _0x4f9e71;const _0x1ae21a=this[_0x2bd828(0x2b8)](_0x20782e),_0xe52009=_0x58b389[_0x2bd828(0x14f)](_0x1ae21a[_0x2bd828(0x44a)],this[_0x2bd828(0x4af)],{'fromCollab':!0x0});if(!_0xe52009[_0x2bd828(0x3a7)])throw _0xe52009['error']instanceof Error?_0xe52009['error']:new Error((_0x4f9e71=_0xe52009[_0x2bd828(0x368)])!=null?_0x4f9e71:_0x2bd828(0x1f1));this[_0x2bd828(0x106)](_0x1ae21a),this['_transformUndoredo'](_0x20782e),this['_transformSelections'](_0x1ae21a),this[_0x2bd828(0x4da)](_0x1ae21a),this[_0x2bd828(0x3ab)]();}}let _0x433904=class extends _0x389d41{constructor(_0x2ed4d1,_0x22289,_0x79da,_0xfb74e0,_0x2d5db8,_0x3fcd4f,_0x1f371f,_0x30da53,_0x38b8c4,_0x2e68d8){const _0x2de6d7=_0xb893b1;super(_0x2ed4d1,_0x22289,null,[],_0x79da,_0x30da53,_0x1f371f,_0xfb74e0,_0x2d5db8),_0xf1fe43(this,'status',_0x2de6d7(0x4e6)),(this[_0x2de6d7(0x126)]=_0x3fcd4f,this[_0x2de6d7(0x482)]=_0x38b8c4,this['_transformService']=_0x2e68d8);}[_0xb893b1(0x287)](_0xea6493){const _0x258109=_0xb893b1,_0x244492=this[_0x258109(0x126)][_0x258109(0x361)](_0x48d3b9,this['unitID'],this[_0x258109(0x191)],[_0xea6493],this[_0x258109(0x1af)]);return _0x244492[_0x258109(0x395)](),_0x244492[_0x258109(0x49f)](),_0x244492;}[_0xb893b1(0x134)](_0x2af064){const _0xfe69a0=_0xb893b1;if(this['_checkMissing'](_0x2af064))return this[_0xfe69a0(0x126)][_0xfe69a0(0x361)](_0x58bc8e,this[_0xfe69a0(0x386)],this[_0xfe69a0(0x191)],null,[],null,[_0x2af064],this[_0xfe69a0(0x1af)]);try{const _0x21f20f=this[_0xfe69a0(0x18d)][_0xfe69a0(0x23b)](_0x2af064,[_0x3f51fa]);if(_0x5e5ab1[_0xfe69a0(0x542)](_0x21f20f)){const {c1Prime:_0x4b5334}=_0x21f20f;return this[_0xfe69a0(0x2ea)](_0x4b5334),this;}throw _0x21f20f[_0xfe69a0(0x368)];}catch(_0x24575e){return this[_0xfe69a0(0x482)][_0xfe69a0(0x368)](_0x24575e),this[_0xfe69a0(0x4c6)](!0x1);}}[_0xb893b1(0x4c6)](_0x4cc126){const _0x29d77=_0xb893b1;return this['_injector']['createInstance'](_0x5d6332,this[_0x29d77(0x386)],this['type'],null,[],this[_0x29d77(0x1af)],_0x4cc126);}[_0xb893b1(0x344)](){const _0x5c23ff=_0xb893b1;throw new Error(_0x5c23ff(0x3fa));}[_0xb893b1(0x3ed)](){const _0x54923b=_0xb893b1;throw new Error(_0x54923b(0x2d4));}[_0xb893b1(0x4d9)](){return this;}['toggleOffline'](){const _0x1bf8b8=_0xb893b1;return this[_0x1bf8b8(0x126)]['createInstance'](_0x19fad0,this['unitID'],this['type'],null,[],this['_handler']);}[_0xb893b1(0x318)](){return this;}[_0xb893b1(0x4b5)](){const _0xc4c4a3=_0xb893b1;throw new Error(_0xc4c4a3(0x440));}[_0xb893b1(0x2ef)](){const _0xa3c77e=_0xb893b1,_0x277015=this[_0xa3c77e(0x3ee)]['getCurrentRevOfUnit'](this[_0xa3c77e(0x386)]);return this[_0xa3c77e(0x1af)][_0xa3c77e(0x4fd)]({'from':_0x277015,'to':0x0}),this[_0xa3c77e(0x126)]['createInstance'](_0x58bc8e,this[_0xa3c77e(0x386)],this[_0xa3c77e(0x191)],null,[],null,[],this[_0xa3c77e(0x1af)]);}};_0x433904=_0x4ca299([_0x37d25f(0x3,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1[_0xb893b1(0x3ba)])),_0x37d25f(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4[_0xb893b1(0x2ff)])),_0x37d25f(0x5,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x37d25f(0x6,_0x58b389[_0xb893b1(0x13d)]),_0x37d25f(0x7,_0x58b389[_0xb893b1(0x1ec)]),_0x37d25f(0x8,_0x58b389[_0xb893b1(0x46a)]),_0x37d25f(0x9,_0x5e5ab1[_0xb893b1(0x157)])],_0x433904);let _0x48d3b9=class extends _0x389d41{constructor(_0x373d84,_0x51ad34,_0x4d699c,_0x46e6b7,_0x31a545,_0x7102f8,_0x509c8f,_0x4658ad,_0x4b039a,_0x3d2fd3,_0x4de98b,_0x363f8b,_0x1e0d3d,_0xb3f5ce){const _0x548a74=_0xb893b1;super(_0x373d84,_0x51ad34,null,_0x4d699c,_0x46e6b7,_0x3d2fd3,_0xb3f5ce,_0x7102f8,_0x509c8f),_0xf1fe43(this,_0x548a74(0x259),'pending'),_0xf1fe43(this,_0x548a74(0x13c),null),_0xf1fe43(this,_0x548a74(0x48a),null),(this[_0x548a74(0x126)]=_0x31a545,this[_0x548a74(0x505)]=_0x4658ad,this[_0x548a74(0x482)]=_0x4b039a,this[_0x548a74(0x2f3)]=_0x4de98b,this['_transformService']=_0x363f8b,this[_0x548a74(0x123)]=_0x1e0d3d);}[_0xb893b1(0x287)](_0x217fb6){const _0xdc97eb=_0xb893b1;return this[_0xdc97eb(0x3f2)][_0xdc97eb(0x428)](_0x217fb6),this[_0xdc97eb(0x49f)](),this;}[_0xb893b1(0x134)](_0x4d37d9){const _0x1c4336=_0xb893b1;if(this[_0x1c4336(0x193)](_0x4d37d9))return this[_0x1c4336(0x437)](),this[_0x1c4336(0x126)][_0x1c4336(0x361)](_0x58bc8e,this[_0x1c4336(0x386)],this[_0x1c4336(0x191)],null,this['_pendingMutations'],null,[_0x4d37d9],this['_handler']);try{const _0x2a7c42=this['_transformService'][_0x1c4336(0x23b)](_0x4d37d9,this[_0x1c4336(0x3f2)]);if(_0x5e5ab1['isTransformMutationsWithChangesetSuccess'](_0x2a7c42)){const {c1Prime:_0x595f26,m2Prime:_0x44fccc}=_0x2a7c42;this[_0x1c4336(0x2ea)](_0x595f26);const _0x39f47d=this[_0x1c4336(0x126)][_0x1c4336(0x361)](_0x48d3b9,this[_0x1c4336(0x386)],this[_0x1c4336(0x191)],_0x44fccc,this['_handler']);return this[_0x1c4336(0x437)](),_0x39f47d[_0x1c4336(0x395)](this[_0x1c4336(0x13c)]?Math['max'](0x0,new Date()[_0x1c4336(0x2be)]()-this[_0x1c4336(0x13c)]):this[_0x1c4336(0x383)]()),_0x39f47d;}throw _0x2a7c42['error'];}catch(_0x186920){return this[_0x1c4336(0x482)][_0x1c4336(0x368)](_0x186920),this[_0x1c4336(0x4c6)](!0x1);}}[_0xb893b1(0x344)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0xb893b1(0x3ed)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0xb893b1(0x4d9)](){return this;}[_0xb893b1(0x2a7)](){const _0x2afbb5=_0xb893b1;return this[_0x2afbb5(0x437)](),this[_0x2afbb5(0x126)]['createInstance'](_0x19fad0,this[_0x2afbb5(0x386)],this[_0x2afbb5(0x191)],null,this['_pendingMutations'],this[_0x2afbb5(0x1af)]);}[_0xb893b1(0x318)](){return this;}[_0xb893b1(0x395)](_0x2c00a5){const _0x3d1cbb=_0xb893b1,_0x54f011=_0x2c00a5!=null?_0x2c00a5:this[_0x3d1cbb(0x383)]();this[_0x3d1cbb(0x13c)]=new Date()[_0x3d1cbb(0x2be)](),this[_0x3d1cbb(0x48a)]=window['setTimeout'](()=>{const _0x133075=_0x3d1cbb;this[_0x133075(0x437)]();let _0x5c5b15=null;switch(this[_0x133075(0x191)]){case _0x2e214d[_0x133075(0x2db)]:{_0x5c5b15=_0x58c083(this[_0x133075(0x3f2)],this['unitID'],this[_0x133075(0x123)],this[_0x133075(0x3ee)],this[_0x133075(0x505)]);break;}case _0x2e214d[_0x133075(0x2d8)]:{this[_0x133075(0x3f2)][_0x133075(0x33f)](_0x1e9e1b=>_0x1e9e1b['id']===_0x124506[_0x133075(0x2b5)]['id'])?_0x5c5b15=_0x18e68a(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x133075(0x3ee)],this[_0x133075(0x505)]):_0x5c5b15=_0x58c083(this['_pendingMutations'],this[_0x133075(0x386)],this[_0x133075(0x123)],this[_0x133075(0x3ee)],this['_memberService']);break;}default:throw new Error(_0x133075(0x2f9)+this[_0x133075(0x191)]+_0x133075(0x362));}const {changeset:_0xef270e,pendingMutations:_0x1ad185}=_0x5c5b15;this[_0x133075(0x1af)]['onSendChangeset'](_0xef270e);const _0x292080=_0x1ad185[_0x133075(0x4d8)]?this[_0x133075(0x126)][_0x133075(0x361)](_0x5115be,this[_0x133075(0x386)],this['type'],_0xef270e,_0x1ad185,this[_0x133075(0x1af)],void 0x0):this[_0x133075(0x126)][_0x133075(0x361)](_0x5943fe,this[_0x133075(0x386)],this[_0x133075(0x191)],_0xef270e,this[_0x133075(0x1af)]);_0x292080['_updateLocalCache'](),this[_0x133075(0x1af)][_0x133075(0x15f)](this,_0x292080);},_0x54f011);}[_0xb893b1(0x383)](){const _0x56b2c2=_0xb893b1;var _0x15d303;const _0x46abd6=this[_0x56b2c2(0x2f3)][_0x56b2c2(0x22b)](_0x271aa0);return(_0x15d303=_0x46abd6==null?void 0x0:_0x46abd6[_0x56b2c2(0x467)])!=null?_0x15d303:0x7d0;}[_0xb893b1(0x4b5)](){const _0x599726=_0xb893b1;throw new Error(_0x599726(0x3ce));}[_0xb893b1(0x437)](){const _0x24d7c8=_0xb893b1;this[_0x24d7c8(0x48a)]!=null&&(clearTimeout(this[_0x24d7c8(0x48a)]),this[_0x24d7c8(0x48a)]=null);}[_0xb893b1(0x4c6)](_0x5e64eb){const _0x51dea1=_0xb893b1;return this[_0x51dea1(0x437)](),this[_0x51dea1(0x126)][_0x51dea1(0x361)](_0x5d6332,this['unitID'],this[_0x51dea1(0x191)],null,this[_0x51dea1(0x3f2)],this[_0x51dea1(0x1af)],_0x5e64eb);}};_0x48d3b9=_0x4ca299([_0x37d25f(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x37d25f(0x5,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1['RevisionService'])),_0x37d25f(0x6,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4['LocalCacheService'])),_0x37d25f(0x7,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4[_0xb893b1(0x384)])),_0x37d25f(0x8,_0x58b389[_0xb893b1(0x46a)]),_0x37d25f(0x9,_0x58b389['ICommandService']),_0x37d25f(0xa,_0x58b389[_0xb893b1(0x1f6)]),_0x37d25f(0xb,_0x5e5ab1[_0xb893b1(0x157)]),_0x37d25f(0xc,_0x58b389['IUniverInstanceService']),_0x37d25f(0xd,_0x58b389[_0xb893b1(0x13d)])],_0x48d3b9);let _0x5943fe=class extends _0x389d41{constructor(_0x56b67f,_0x190afd,_0x57c1e9,_0x17edd4,_0x50a108,_0x4e16e3,_0x442b94,_0xc0110c,_0x3e7da4,_0x1ca6dd,_0x5d52c9){const _0x14c465=_0xb893b1;super(_0x56b67f,_0x190afd,_0x57c1e9,[],_0x17edd4,_0xc0110c,_0x5d52c9,_0x4e16e3,_0x442b94),_0xf1fe43(this,_0x14c465(0x259),_0x14c465(0x2fe)),_0xf1fe43(this,'_resendTimeout',0x0),_0xf1fe43(this,_0x14c465(0x1aa)),_0xf1fe43(this,_0x14c465(0x4c1)),(this[_0x14c465(0x126)]=_0x50a108,this[_0x14c465(0x482)]=_0x3e7da4,this[_0x14c465(0x18d)]=_0x1ca6dd);}[_0xb893b1(0x287)](_0x418882){const _0x262877=_0xb893b1;this['_clearScheduledTask']();const _0x53ab3d=this['_injector'][_0x262877(0x361)](_0x5115be,this[_0x262877(0x386)],this[_0x262877(0x191)],this[_0x262877(0x277)],[_0x418882],this[_0x262877(0x1af)],this['_resendTimer']);return _0x53ab3d[_0x262877(0x49f)](),_0x53ab3d;}[_0xb893b1(0x134)](_0xb8b4e0){const _0x4cccf2=_0xb893b1;if(this[_0x4cccf2(0x193)](_0xb8b4e0))return this[_0x4cccf2(0x437)](),this[_0x4cccf2(0x126)][_0x4cccf2(0x361)](_0x58bc8e,this['unitID'],this[_0x4cccf2(0x191)],this[_0x4cccf2(0x277)],[],null,[_0xb8b4e0],this[_0x4cccf2(0x1af)]);try{const _0x1371f9=this['_transformService'][_0x4cccf2(0x4a2)]([_0xb8b4e0],[this[_0x4cccf2(0x277)]],!0x1);if(_0x5e5ab1[_0x4cccf2(0x3ea)](_0x1371f9)){const {c1Prime:_0x365b80,c2Prime:_0x37344d}=_0x1371f9;this[_0x4cccf2(0x2ea)](_0x365b80[0x0]),_0x37344d[0x0]['baseRev']=this['_getCurrentRevision'](),this['_clearScheduledTask']();const _0x4e9a8e=this[_0x4cccf2(0x126)][_0x4cccf2(0x361)](_0x5943fe,this[_0x4cccf2(0x386)],this[_0x4cccf2(0x191)],_0x37344d[0x0],this[_0x4cccf2(0x1af)]);return _0x4e9a8e[_0x4cccf2(0x49f)](),_0x4e9a8e;}return this[_0x4cccf2(0x4c6)](!0x1);}catch(_0x18c11f){return this[_0x4cccf2(0x482)][_0x4cccf2(0x368)](_0x18c11f),this[_0x4cccf2(0x4c6)](!0x1);}}[_0xb893b1(0x344)](_0x71afc8){const _0x2d9ddf=_0xb893b1;this[_0x2d9ddf(0x437)]();const _0x65a2ee=this[_0x2d9ddf(0x3ee)]['getCurrentRevOfUnit'](this[_0x2d9ddf(0x386)]);if(_0x71afc8[_0x2d9ddf(0x357)]<_0x65a2ee-0x1)return this;if(this[_0x2d9ddf(0x193)](_0x71afc8))return this['_injector'][_0x2d9ddf(0x361)](_0x58bc8e,this['unitID'],this[_0x2d9ddf(0x191)],null,[],this['_awaitingChangeset'],[],this[_0x2d9ddf(0x1af)]);this['_incrementRevisionNumber']();const _0x4b157e=this[_0x2d9ddf(0x126)][_0x2d9ddf(0x361)](_0x433904,this[_0x2d9ddf(0x386)],this[_0x2d9ddf(0x191)],this['_handler']);return _0x4b157e[_0x2d9ddf(0x49f)](),_0x4b157e;}[_0xb893b1(0x3ed)](_0x34438f){const _0x682298=_0xb893b1;return this['_onConflict'](!!(_0x34438f!=null&&_0x34438f[_0x682298(0x1ef)]));}[_0xb893b1(0x4d9)](_0x23ba40){const _0x4afe54=_0xb893b1;return this[_0x4afe54(0x12e)]>_0x19da4c?this[_0x4afe54(0x2a7)]():(this[_0x4afe54(0x1aa)]=_0x415a18(this[_0x4afe54(0x12e)],{'timeout':this['_resendTimeout'],'reqId':_0x23ba40[_0x4afe54(0x500)]}),this[_0x4afe54(0x4c1)]=this['_resendTimer'][_0x4afe54(0x1b6)](({reqId:_0x35001e,timeout:_0x5c884e})=>{const _0x1e068f=_0x4afe54;this[_0x1e068f(0x290)](_0x35001e,_0x5c884e);}),this);}['toggleOffline'](){const _0x2e1ac6=_0xb893b1;return this[_0x2e1ac6(0x437)](),this[_0x2e1ac6(0x126)][_0x2e1ac6(0x361)](_0x19fad0,this[_0x2e1ac6(0x386)],this[_0x2e1ac6(0x191)],this[_0x2e1ac6(0x277)],[],this[_0x2e1ac6(0x1af)]);}[_0xb893b1(0x318)](){return this;}['resend'](){const _0x461628=_0xb893b1;this['_handler'][_0x461628(0x468)](this[_0x461628(0x277)]);}[_0xb893b1(0x4c6)](_0x3b91a1){const _0x1712db=_0xb893b1;return this[_0x1712db(0x437)](),this[_0x1712db(0x126)][_0x1712db(0x361)](_0x5d6332,this[_0x1712db(0x386)],this[_0x1712db(0x191)],this['_awaitingChangeset'],[],this[_0x1712db(0x1af)],_0x3b91a1);}['_resendWithTimeout'](_0xdcfca1,_0x1c694a){const _0x2b6726=_0xb893b1;var _0x21fb22;_0xdcfca1===((_0x21fb22=this[_0x2b6726(0x277)])==null?void 0x0:_0x21fb22[_0x2b6726(0x500)])&&(this[_0x2b6726(0x4b5)](),this[_0x2b6726(0x12e)]=_0x1c694a===0x0?0x3e8:_0x1c694a*0x2);}[_0xb893b1(0x437)](){const _0x2f6a06=_0xb893b1;var _0x676017;(_0x676017=this['_sender'])==null||_0x676017['unsubscribe'](),this[_0x2f6a06(0x12e)]=0x0;}};_0x5943fe=_0x4ca299([_0x37d25f(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x37d25f(0x5,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1[_0xb893b1(0x3ba)])),_0x37d25f(0x6,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4[_0xb893b1(0x2ff)])),_0x37d25f(0x7,_0x58b389[_0xb893b1(0x1ec)]),_0x37d25f(0x8,_0x58b389[_0xb893b1(0x46a)]),_0x37d25f(0x9,_0x5e5ab1[_0xb893b1(0x157)]),_0x37d25f(0xa,_0x58b389[_0xb893b1(0x13d)])],_0x5943fe);let _0x5115be=class extends _0x389d41{constructor(_0x4411c1,_0x1f1ccd,_0x4dd248,_0x572d87,_0x5704d2,_0x17bce4,_0x10d485,_0x132d35,_0x279750,_0x2e2eea,_0x128a4a,_0x4ec7e6,_0x2163a9){const _0x2ddd26=_0xb893b1;super(_0x4411c1,_0x1f1ccd,_0x4dd248,_0x572d87,_0x5704d2,_0x2e2eea,_0x2163a9,_0x132d35,_0x279750),_0xf1fe43(this,_0x2ddd26(0x259),_0x2ddd26(0x465)),_0xf1fe43(this,'_resendTimeout',0x0),_0xf1fe43(this,_0x2ddd26(0x1aa)),_0xf1fe43(this,_0x2ddd26(0x4c1)),(this[_0x2ddd26(0x126)]=_0x10d485,this[_0x2ddd26(0x482)]=_0x128a4a,this[_0x2ddd26(0x18d)]=_0x4ec7e6,_0x17bce4&&(this[_0x2ddd26(0x1aa)]=_0x17bce4,this[_0x2ddd26(0x4c1)]=this[_0x2ddd26(0x1aa)][_0x2ddd26(0x1b6)](({reqId:_0xf2c91d,timeout:_0x30d854})=>{this['_resendWithTimeout'](_0xf2c91d,_0x30d854);})));}[_0xb893b1(0x287)](_0x17e8d4){const _0x3e16a3=_0xb893b1;return this[_0x3e16a3(0x3f2)][_0x3e16a3(0x428)](_0x17e8d4),this;}[_0xb893b1(0x134)](_0x40955e){const _0x3ba287=_0xb893b1;if(this[_0x3ba287(0x193)](_0x40955e))return this['_clearScheduledTask'](),this[_0x3ba287(0x126)][_0x3ba287(0x361)](_0x58bc8e,this[_0x3ba287(0x386)],this[_0x3ba287(0x191)],this[_0x3ba287(0x277)],this[_0x3ba287(0x3f2)],null,[_0x40955e],this[_0x3ba287(0x1af)]);try{const _0x5218f5=this[_0x3ba287(0x18d)][_0x3ba287(0x4a2)]([_0x40955e],[this[_0x3ba287(0x277)]],!0x1);if(_0x5e5ab1['isTransformChangesetsSuccess'](_0x5218f5)){const {c1Prime:_0x45593e,c2Prime:_0x131c97}=_0x5218f5,_0x181a73=this['_transformService']['transformMutationsWithChangeset'](_0x45593e[0x0],this[_0x3ba287(0x3f2)]);if(_0x5e5ab1['isTransformMutationsWithChangesetSuccess'](_0x181a73)){const {c1Prime:_0x3ee5e5,m2Prime:_0x4cfcf1}=_0x181a73;return this[_0x3ba287(0x2ea)](_0x3ee5e5),_0x131c97[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x3ba287(0x437)](),this['_injector'][_0x3ba287(0x361)](_0x5115be,this[_0x3ba287(0x386)],this[_0x3ba287(0x191)],_0x131c97[0x0],_0x4cfcf1,this[_0x3ba287(0x1af)],void 0x0);}throw _0x181a73[_0x3ba287(0x368)];}throw _0x5218f5['error'];}catch(_0x1a515e){return this[_0x3ba287(0x482)][_0x3ba287(0x368)](_0x1a515e),this[_0x3ba287(0x4c6)](!0x1);}}['onRemoteAck'](_0x5c50b0){const _0x31c997=_0xb893b1;if(this[_0x31c997(0x437)](),this[_0x31c997(0x193)](_0x5c50b0))return this[_0x31c997(0x126)]['createInstance'](_0x58bc8e,this['unitID'],this[_0x31c997(0x191)],null,this['_pendingMutations'],this[_0x31c997(0x277)],[],this[_0x31c997(0x1af)]);this[_0x31c997(0x3ab)]();const _0x1c102e=this[_0x31c997(0x126)][_0x31c997(0x361)](_0x48d3b9,this[_0x31c997(0x386)],this[_0x31c997(0x191)],this[_0x31c997(0x3f2)],this['_handler']);return _0x1c102e[_0x31c997(0x395)](),_0x1c102e[_0x31c997(0x49f)](),_0x1c102e;}[_0xb893b1(0x3ed)](_0x1524df){const _0x59898a=_0xb893b1;return this[_0x59898a(0x4c6)](!!(_0x1524df!=null&&_0x1524df[_0x59898a(0x1ef)]));}[_0xb893b1(0x4d9)](_0x897f1){const _0x329a56=_0xb893b1;return this[_0x329a56(0x12e)]>_0x19da4c?this['toggleOffline']():(this[_0x329a56(0x1aa)]=_0x415a18(this[_0x329a56(0x12e)],{'timeout':this[_0x329a56(0x12e)],'reqId':_0x897f1[_0x329a56(0x500)]}),this['_sender']=this['_resendTimer'][_0x329a56(0x1b6)](({reqId:_0x2a69a6,timeout:_0x374044})=>{this['_resendWithTimeout'](_0x2a69a6,_0x374044);}),this);}[_0xb893b1(0x2a7)](){const _0x496550=_0xb893b1;return this[_0x496550(0x437)](),this[_0x496550(0x126)][_0x496550(0x361)](_0x19fad0,this['unitID'],this[_0x496550(0x191)],this[_0x496550(0x277)],this[_0x496550(0x3f2)],this[_0x496550(0x1af)]);}[_0xb893b1(0x318)](){return this;}[_0xb893b1(0x4b5)](){const _0x5c9613=_0xb893b1;this[_0x5c9613(0x1af)]['onSendChangeset'](this[_0x5c9613(0x277)]);}[_0xb893b1(0x4c6)](_0x2f3002){const _0x388f20=_0xb893b1;return this['_clearScheduledTask'](),this[_0x388f20(0x126)]['createInstance'](_0x5d6332,this[_0x388f20(0x386)],this[_0x388f20(0x191)],null,this[_0x388f20(0x3f2)],this['_handler'],_0x2f3002);}[_0xb893b1(0x290)](_0x382702,_0x5848c2){const _0x59c73a=_0xb893b1;var _0x18e3df;_0x382702===((_0x18e3df=this[_0x59c73a(0x277)])==null?void 0x0:_0x18e3df['reqId'])&&(this[_0x59c73a(0x4b5)](),this[_0x59c73a(0x12e)]=_0x5848c2===0x0?0x3e8:_0x5848c2*0x2);}[_0xb893b1(0x437)](){const _0x2a588b=_0xb893b1;var _0x524546;(_0x524546=this[_0x2a588b(0x4c1)])==null||_0x524546[_0x2a588b(0x49e)](),this['_resendTimeout']=0x0;}};_0x5115be=_0x4ca299([_0x37d25f(0x6,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x37d25f(0x7,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1[_0xb893b1(0x3ba)])),_0x37d25f(0x8,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4[_0xb893b1(0x2ff)])),_0x37d25f(0x9,_0x58b389[_0xb893b1(0x1ec)]),_0x37d25f(0xa,_0x58b389[_0xb893b1(0x46a)]),_0x37d25f(0xb,_0x5e5ab1['ITransformService']),_0x37d25f(0xc,_0x58b389[_0xb893b1(0x13d)])],_0x5115be);let _0x5d6332=class extends _0x389d41{constructor(_0x470299,_0x3ea108,_0x1d6416,_0x33b061,_0x37b63c,_0x88529a=!0x1,_0x8937e8,_0x2cc0ae,_0x44824a,_0x13aeeb,_0x45b852,_0x23fd6c,_0x2434e9){const _0x4f35b8=_0xb893b1;super(_0x470299,_0x3ea108,_0x1d6416,_0x33b061,_0x37b63c,_0x2cc0ae,_0x44824a,_0x45b852,_0x13aeeb),_0xf1fe43(this,_0x4f35b8(0x259),_0x4f35b8(0x476)),(this[_0x4f35b8(0x442)]=_0x88529a,this[_0x4f35b8(0x2a0)]=_0x8937e8,this[_0x4f35b8(0x341)]=_0x23fd6c,this[_0x4f35b8(0x315)]=_0x2434e9,this[_0x4f35b8(0x2c5)](),this[_0x4f35b8(0x45d)](),this[_0x4f35b8(0x3f7)]());}[_0xb893b1(0x287)](){return this;}[_0xb893b1(0x134)](){return this;}[_0xb893b1(0x344)](){return this;}[_0xb893b1(0x3ed)](){return this;}[_0xb893b1(0x4d9)](){return this;}[_0xb893b1(0x2a7)](){return this;}[_0xb893b1(0x318)](){return this;}[_0xb893b1(0x4b5)](){const _0x4d1396=_0xb893b1;throw new Error(_0x4d1396(0x25d));}[_0xb893b1(0x45d)](){const _0x2d37a5=_0xb893b1;this['_localCacheService'][_0x2d37a5(0x4b6)](this['unitID'],this[_0x2d37a5(0x191)],null,[]);}[_0xb893b1(0x2c5)](){const _0x2b03bc=_0xb893b1;this[_0x2b03bc(0x442)]?this[_0x2b03bc(0x315)][_0x2b03bc(0x250)]({'title':this[_0x2b03bc(0x341)]['t'](_0x2b03bc(0x2bd)),'content':this[_0x2b03bc(0x341)]['t'](_0x2b03bc(0x334)),'type':_0x2b03bc(0x368),'duration':0x0}):this[_0x2b03bc(0x315)]['show']({'title':this['_localeService']['t'](_0x2b03bc(0x24e)),'content':this[_0x2b03bc(0x341)]['t'](_0x2b03bc(0x34f)),'type':'error','duration':0x0});}['_disableEditing'](){const _0x9c1fb5=_0xb893b1;this[_0x9c1fb5(0x2a0)][_0x9c1fb5(0x1a7)](new _0x2d2223[(_0x9c1fb5(0x192))](this[_0x9c1fb5(0x386)])['id'],!0x1);}};_0x5d6332=_0x4ca299([_0x37d25f(0x6,_0x58b389['Inject'](_0x58b389[_0xb893b1(0x4e1)])),_0x37d25f(0x7,_0x58b389['ICommandService']),_0x37d25f(0x8,_0x58b389[_0xb893b1(0x13d)]),_0x37d25f(0x9,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4[_0xb893b1(0x2ff)])),_0x37d25f(0xa,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1[_0xb893b1(0x3ba)])),_0x37d25f(0xb,_0x58b389['Inject'](_0x58b389[_0xb893b1(0x4ee)])),_0x37d25f(0xc,_0x4d3c2b[_0xb893b1(0x47f)])],_0x5d6332);let _0x19fad0=class extends _0x389d41{constructor(_0x5e9382,_0x4480f9,_0x430dca,_0x15c2c1,_0x29d19a,_0xd78782,_0x31d6ba,_0x253211,_0x1ddf64,_0x2746c9){const _0x185abd=_0xb893b1;super(_0x5e9382,_0x4480f9,_0x430dca,_0x15c2c1,_0x29d19a,_0x1ddf64,_0x2746c9,_0x31d6ba,_0x253211),_0xf1fe43(this,'status',_0x185abd(0x2bf)),this[_0x185abd(0x126)]=_0xd78782;}['appendMutation'](_0x16b867){const _0x581373=_0xb893b1;return this[_0x581373(0x3f2)]['push'](_0x16b867),this[_0x581373(0x49f)](),this;}[_0xb893b1(0x134)](_0x52069d){const _0x44ffcd=_0xb893b1;throw new Error(_0x44ffcd(0x4c8));}[_0xb893b1(0x344)](){const _0x15093c=_0xb893b1;throw new Error(_0x15093c(0x4b9));}[_0xb893b1(0x3ed)](){const _0x135ea2=_0xb893b1;throw new Error(_0x135ea2(0x122));}['onRemoteRetry'](){return this;}[_0xb893b1(0x2a7)](){return this;}['toggleOnline'](){const _0x1fff81=_0xb893b1,{_injector:_0x12b952,_pendingMutations:_0x5218bb,_awaitingChangeset:_0x1a1fc7,unitID:_0x571ba8,_handler:_0x51a39e,type:_0x571c72}=this,_0x2a4bdf=_0x434480(_0x12b952,_0x571ba8,_0x571c72,_0x1a1fc7,_0x5218bb,_0x51a39e);return _0x2a4bdf instanceof _0x48d3b9?_0x2a4bdf[_0x1fff81(0x395)]():(_0x2a4bdf instanceof _0x5115be||_0x2a4bdf instanceof _0x5943fe)&&_0x2a4bdf[_0x1fff81(0x4b5)](),_0x2a4bdf;}[_0xb893b1(0x4b5)](){const _0x381b4d=_0xb893b1;throw new Error(_0x381b4d(0x3ef));}};_0x19fad0=_0x4ca299([_0x37d25f(0x5,_0x58b389['Inject'](_0x58b389[_0xb893b1(0x1d4)])),_0x37d25f(0x6,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1[_0xb893b1(0x3ba)])),_0x37d25f(0x7,_0x58b389['Inject'](_0x3b52c4[_0xb893b1(0x2ff)])),_0x37d25f(0x8,_0x58b389[_0xb893b1(0x1ec)]),_0x37d25f(0x9,_0x58b389[_0xb893b1(0x13d)])],_0x19fad0);let _0x58bc8e=class extends _0x389d41{constructor(_0x14d234,_0x21e389,_0x1d2ac7,_0x4e905a,_0x28c3ca,_0x4da5db,_0x3f8bb7,_0x188271,_0x62cf8,_0x5d87be,_0x154bd9,_0x53bd15,_0x2a2f36,_0x2cdbd5){const _0x56399f=_0xb893b1;super(_0x14d234,_0x21e389,_0x1d2ac7,_0x4e905a,_0x3f8bb7,_0x53bd15,_0x2a2f36,_0x62cf8,_0x5d87be),_0xf1fe43(this,_0x56399f(0x259),'fetch_missing'),(this[_0x56399f(0x32a)]=_0x28c3ca,this[_0x56399f(0x1a3)]=_0x4da5db,this[_0x56399f(0x126)]=_0x188271,this[_0x56399f(0x482)]=_0x154bd9,this[_0x56399f(0x18d)]=_0x2cdbd5);}[_0xb893b1(0x197)](_0x484853){const _0x2efd75=_0xb893b1;try{const _0x266cb5=[..._0x484853,...this[_0x2efd75(0x1a3)]],_0x31eb6c=[this[_0x2efd75(0x277)]||this[_0x2efd75(0x32a)]]['filter'](_0x438969=>!!_0x438969);let _0x71880a,_0x338ccd;if(_0x31eb6c[_0x2efd75(0x4d8)]){const _0x210dd2=this[_0x2efd75(0x18d)][_0x2efd75(0x4a2)](_0x266cb5,_0x31eb6c,!0x1);if(!_0x5e5ab1['isTransformChangesetsSuccess'](_0x210dd2))throw _0x210dd2['error'];_0x71880a=_0x210dd2['c1Prime'],_0x338ccd=_0x210dd2[_0x2efd75(0x487)];}else _0x71880a=_0x266cb5,_0x338ccd=[];let _0x4f6f1e=this[_0x2efd75(0x3f2)];_0x71880a['forEach'](_0x211207=>{const _0x3070cd=_0x2efd75;let _0x44e24b;if(_0x4f6f1e[_0x3070cd(0x4d8)]){const _0x532482=this[_0x3070cd(0x18d)]['transformMutationsWithChangeset'](_0x211207,_0x4f6f1e);if(!_0x5e5ab1[_0x3070cd(0x542)](_0x532482))throw _0x532482[_0x3070cd(0x368)];_0x44e24b=_0x532482['c1Prime'],_0x4f6f1e=_0x532482['m2Prime'];}else _0x44e24b=_0x211207;this[_0x3070cd(0x2ea)](_0x44e24b);}),this[_0x2efd75(0x32a)]&&this[_0x2efd75(0x3ab)](),this['_awaitingChangeset']&&_0x338ccd[_0x2efd75(0x4d8)]&&(_0x338ccd[0x0][_0x2efd75(0x209)]=this['_getCurrentRevision']());let _0x2c52fb;if(this[_0x2efd75(0x277)]&&_0x4f6f1e[_0x2efd75(0x4d8)]!==0x0)_0x2c52fb=this[_0x2efd75(0x126)][_0x2efd75(0x361)](_0x5115be,this[_0x2efd75(0x386)],this[_0x2efd75(0x191)],_0x338ccd[0x0],_0x4f6f1e,this[_0x2efd75(0x1af)],void 0x0);else{if(this[_0x2efd75(0x277)]&&_0x4f6f1e[_0x2efd75(0x4d8)]===0x0)_0x338ccd[0x0][_0x2efd75(0x209)]=this['_getCurrentRevision'](),_0x2c52fb=this[_0x2efd75(0x126)][_0x2efd75(0x361)](_0x5943fe,this[_0x2efd75(0x386)],this['type'],_0x338ccd[0x0],this[_0x2efd75(0x1af)]);else{if(_0x4f6f1e[_0x2efd75(0x4d8)]!==0x0){const _0x560cc0=this[_0x2efd75(0x126)][_0x2efd75(0x361)](_0x48d3b9,this['unitID'],this[_0x2efd75(0x191)],_0x4f6f1e,this[_0x2efd75(0x1af)]);_0x560cc0[_0x2efd75(0x395)](),_0x2c52fb=_0x560cc0;}else _0x2c52fb=this[_0x2efd75(0x126)]['createInstance'](_0x433904,this[_0x2efd75(0x386)],this[_0x2efd75(0x191)],this[_0x2efd75(0x1af)]);}}return _0x2c52fb[_0x2efd75(0x49f)](),_0x2c52fb;}catch(_0x54ae82){return this[_0x2efd75(0x482)][_0x2efd75(0x368)](_0x2efd75(0x348),_0x2efd75(0x272),_0x54ae82),this[_0x2efd75(0x126)][_0x2efd75(0x361)](_0x5d6332,this[_0x2efd75(0x386)],this[_0x2efd75(0x191)],this[_0x2efd75(0x277)],this[_0x2efd75(0x3f2)],this[_0x2efd75(0x1af)],!0x1);}}[_0xb893b1(0x4b5)](){const _0x465d5c=_0xb893b1;throw new Error(_0x465d5c(0x18b));}[_0xb893b1(0x287)](_0x34861f){const _0x1ef7d5=_0xb893b1;return this[_0x1ef7d5(0x3f2)]['push'](_0x34861f),this;}[_0xb893b1(0x134)](_0x34f73c){const _0x2ae5e5=_0xb893b1;return this[_0x2ae5e5(0x1a3)]['push'](_0x34f73c),this;}[_0xb893b1(0x344)](_0x5098d9){const _0x4298bd=_0xb893b1;if(this['_awaitingChangeset'])return this['_acknowledgedAwaitingChangeset']=this[_0x4298bd(0x277)],this[_0x4298bd(0x277)]=null,this;throw new Error(_0x4298bd(0x127));}[_0xb893b1(0x3ed)](_0x66b129){return this['_onConflict'](!!(_0x66b129!=null&&_0x66b129['isPermissionRej']));}[_0xb893b1(0x4d9)](){return this;}['toggleOffline'](){const _0x3bfe2e=_0xb893b1;return this[_0x3bfe2e(0x126)][_0x3bfe2e(0x361)](_0x19fad0,this['unitID'],this[_0x3bfe2e(0x191)],this[_0x3bfe2e(0x277)],this[_0x3bfe2e(0x3f2)],this[_0x3bfe2e(0x1af)]);}[_0xb893b1(0x318)](){return this;}[_0xb893b1(0x4c6)](_0x1e14fe){const _0xb3d45b=_0xb893b1;return this['_injector'][_0xb3d45b(0x361)](_0x5d6332,this[_0xb3d45b(0x386)],this[_0xb3d45b(0x191)],this['_awaitingChangeset'],this[_0xb3d45b(0x3f2)],this[_0xb3d45b(0x1af)],_0x1e14fe);}};_0x58bc8e=_0x4ca299([_0x37d25f(0x7,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x37d25f(0x8,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1[_0xb893b1(0x3ba)])),_0x37d25f(0x9,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4['LocalCacheService'])),_0x37d25f(0xa,_0x58b389[_0xb893b1(0x46a)]),_0x37d25f(0xb,_0x58b389['ICommandService']),_0x37d25f(0xc,_0x58b389[_0xb893b1(0x13d)]),_0x37d25f(0xd,_0x5e5ab1[_0xb893b1(0x157)])],_0x58bc8e);function _0x434480(_0x23727d,_0x255c53,_0x3886fd,_0x2a73db,_0x445d43,_0x219a7d){const _0x4ab05a=_0xb893b1;return _0x2a73db&&_0x445d43[_0x4ab05a(0x4d8)]?_0x23727d[_0x4ab05a(0x361)](_0x5115be,_0x255c53,_0x3886fd,_0x2a73db,_0x445d43,_0x219a7d,void 0x0):_0x2a73db?_0x23727d[_0x4ab05a(0x361)](_0x5943fe,_0x255c53,_0x3886fd,_0x2a73db,_0x219a7d):_0x445d43[_0x4ab05a(0x4d8)]?_0x23727d[_0x4ab05a(0x361)](_0x48d3b9,_0x255c53,_0x3886fd,_0x445d43,_0x219a7d):_0x23727d['createInstance'](_0x433904,_0x255c53,_0x3886fd,_0x219a7d);}var _0x480999=Object[_0xb893b1(0x1bc)],_0x35bee9=Object[_0xb893b1(0x490)],_0x8c54e8=(_0x1696f6,_0x5c2534,_0x5dcea1,_0x2d043d)=>{for(var _0x4a08ce=_0x2d043d>0x1?void 0x0:_0x2d043d?_0x35bee9(_0x5c2534,_0x5dcea1):_0x5c2534,_0x250cb2=_0x1696f6['length']-0x1,_0x2fbc34;_0x250cb2>=0x0;_0x250cb2--)(_0x2fbc34=_0x1696f6[_0x250cb2])&&(_0x4a08ce=(_0x2d043d?_0x2fbc34(_0x5c2534,_0x5dcea1,_0x4a08ce):_0x2fbc34(_0x4a08ce))||_0x4a08ce);return _0x2d043d&&_0x4a08ce&&_0x480999(_0x5c2534,_0x5dcea1,_0x4a08ce),_0x4a08ce;},_0x4f9c72=(_0x41e757,_0x36391f)=>(_0x6ab247,_0x3021e6)=>_0x36391f(_0x6ab247,_0x3021e6,_0x41e757);_0x3b52c4[_0xb893b1(0x336)]=class extends _0x58b389[_0xb893b1(0xf8)]{constructor(_0x2c4dfd,_0x3f558c,_0x563df8,_0x1aa4f3,_0x4cd10b,_0x467b5d,_0x4a03f1,_0x3dc0b8,_0x4657bd,_0x52cf69,_0x3d1458,_0xf8e3a1,_0x40f147){const _0x2b5915=_0xb893b1;super(),_0xf1fe43(this,'_state$',new _0x4655d9[(_0x2b5915(0x293))](null)),_0xf1fe43(this,'state$',this[_0x2b5915(0x26d)][_0x2b5915(0x526)]()),_0xf1fe43(this,_0x2b5915(0x216)),_0xf1fe43(this,_0x2b5915(0x52f),!0x1),_0xf1fe43(this,_0x2b5915(0x233),''),_0xf1fe43(this,_0x2b5915(0x53f),0x0),_0xf1fe43(this,_0x2b5915(0x431),this[_0x2b5915(0x205)][_0x2b5915(0x3ca)](_0x4655d9[_0x2b5915(0x44d)](_0x12b64d=>_0x12b64d?_0x12b64d[_0x2b5915(0x259)]:_0x512cbd[_0x2b5915(0x4d1)]),_0x4655d9[_0x2b5915(0x4cd)](0x1))),_0xf1fe43(this,_0x2b5915(0x16f),!0x1),_0xf1fe43(this,_0x2b5915(0x1ea),[]),(this[_0x2b5915(0x386)]=_0x2c4dfd,this[_0x2b5915(0x3f0)]=_0x3f558c,this[_0x2b5915(0x450)]=_0x563df8,this[_0x2b5915(0x126)]=_0x1aa4f3,this[_0x2b5915(0x4c9)]=_0x4cd10b,this[_0x2b5915(0x236)]=_0x467b5d,this['_localeService']=_0x4a03f1,this[_0x2b5915(0x3ee)]=_0x3dc0b8,this[_0x2b5915(0x482)]=_0x4657bd,this[_0x2b5915(0x4af)]=_0x52cf69,this['_messageService']=_0x3d1458,this['_permissionService']=_0xf8e3a1,this[_0x2b5915(0x1ee)]=_0x40f147);}get['state'](){return this['_state'];}async[_0xb893b1(0x29f)](){const _0xb78d6e=_0xb893b1;if(this['state'])throw new Error(_0xb78d6e(0x26f));await this[_0xb78d6e(0x3e2)]();}[_0xb893b1(0x279)](){const _0x1c48e2=_0xb893b1;return this[_0x1c48e2(0x52f)]=!0x0,_0x58b389[_0x1c48e2(0x1bf)](()=>{const _0x1b4499=_0x1c48e2;this[_0x1b4499(0x52f)]=!0x1,this[_0x1b4499(0x541)]();});}['_updateState'](_0x38fb79){const _0x4b256b=_0xb893b1;this[_0x4b256b(0x216)]=_0x38fb79,this[_0x4b256b(0x26d)]['next'](_0x38fb79);}async[_0xb893b1(0x3e2)](){const _0x253b56=_0xb893b1;var _0x362046;this['_updateState'](await this[_0x253b56(0x1c7)]()),this['_singleActiveUnitService']&&((_0x362046=this[_0x253b56(0x1ee)])==null||_0x362046[_0x253b56(0x2c1)](this[_0x253b56(0x386)]),this[_0x253b56(0x14b)](this[_0x253b56(0x1ee)][_0x253b56(0x3c6)](this[_0x253b56(0x386)])[_0x253b56(0x1b6)](_0x3b2d3d=>{const _0x580424=_0x253b56;this[_0x580424(0x482)][_0x580424(0x20d)](_0x580424(0x39f),_0x580424(0x2b7),_0x3b2d3d),_0x3b2d3d===_0x213bfc[_0x580424(0x302)]?(this[_0x580424(0x166)][_0x580424(0x250)]({'content':this[_0x580424(0x341)]['t'](_0x580424(0x240)),'type':_0x145b31[_0x580424(0x3de)][_0x580424(0x2e0)]}),this['_permissionService'][_0x580424(0x1a7)](new _0x2d2223[(_0x580424(0x192))](this['unitID'])['id'],!0x1),this['_permissionService'][_0x580424(0x486)](!0x1)):(this[_0x580424(0x2a0)][_0x580424(0x1a7)](new _0x2d2223['WorkbookEditablePermission'](this['unitID'])['id'],!0x0),this[_0x580424(0x2a0)][_0x580424(0x486)](!0x0));})));let _0x53becd=!0x1;return this[_0x253b56(0x14b)](this['session'][_0x253b56(0x294)][_0x253b56(0x1b6)](_0x2e00aa=>{const _0x1075f2=_0x253b56;_0x2e00aa===_0x442957[_0x1075f2(0x4d5)]?this[_0x1075f2(0x389)](_0x53becd):_0x2e00aa===_0x442957[_0x1075f2(0x4d1)]&&(_0x53becd=!0x0,this[_0x1075f2(0x529)]());})),this[_0x253b56(0x14b)](this[_0x253b56(0x3f0)][_0x253b56(0x297)][_0x253b56(0x1b6)](_0x447ea6=>{const _0x5abf36=_0x253b56;try{switch(_0x447ea6[_0x5abf36(0x39a)]){case _0x5e5ab1[_0x5abf36(0x177)][_0x5abf36(0x102)]:{this[_0x5abf36(0x24a)](_0x5e5ab1['parseProtocolChangeset'](_0x447ea6['data']));break;}case _0x5e5ab1['CollaborationEvent'][_0x5abf36(0x1cb)]:{this[_0x5abf36(0x299)](_0x447ea6[_0x5abf36(0x489)]);break;}case _0x5e5ab1['CollaborationEvent']['CHANGESET_REJ']:{this['_onRemoteRejected']();break;}case _0x5e5ab1[_0x5abf36(0x177)][_0x5abf36(0x406)]:{this[_0x5abf36(0x331)](_0x447ea6[_0x5abf36(0x489)]);break;}case _0x5e5ab1['CollaborationEvent'][_0x5abf36(0x518)]:{this[_0x5abf36(0x423)](_0x447ea6[_0x5abf36(0x489)]['changesets'][_0x5abf36(0x44d)](_0x5d0fc5=>_0x5e5ab1['parseProtocolChangeset'](_0x5d0fc5)));break;}case _0x5e5ab1[_0x5abf36(0x177)]['PERMISSION_REJ']:this[_0x5abf36(0x498)]({'isPermissionRej':!0x0});}}catch(_0x4a010b){throw console['error']('Error\x20on\x20receiving\x20event',_0x4a010b),_0x4a010b;}})),this['_state'];}[_0xb893b1(0x4de)](){const _0x495d48=_0xb893b1;this[_0x495d48(0x16f)]=!0x1;}[_0xb893b1(0x3dc)](){const _0x23b2a4=_0xb893b1;if(this[_0x23b2a4(0x16f)])throw new Error(_0x23b2a4(0x381));this[_0x23b2a4(0x16f)]=!0x0;}[_0xb893b1(0x4b7)](_0xfe4d3a){const _0x4c478f=_0xb893b1;this['_lockTransition'](),this[_0x4c478f(0x492)](this[_0x4c478f(0x216)][_0x4c478f(0x287)](_0xfe4d3a)),this[_0x4c478f(0x4de)]();}[_0xb893b1(0x24a)](_0x20bc7c){const _0x24a17e=_0xb893b1;if(!(_0x20bc7c[_0x24a17e(0x357)]<=this[_0x24a17e(0x3ee)][_0x24a17e(0x183)](this[_0x24a17e(0x386)]))){if(this[_0x24a17e(0x52f)]){this[_0x24a17e(0x1ea)][_0x24a17e(0x428)](_0x20bc7c);return;}this[_0x24a17e(0x1d3)](_0x20bc7c);}}[_0xb893b1(0x541)](){const _0xbdb061=_0xb893b1;this[_0xbdb061(0x1ea)][_0xbdb061(0x3b7)](_0x20f2ef=>this[_0xbdb061(0x1d3)](_0x20f2ef)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x4e05a0){const _0x5c3d84=_0xb893b1,_0x435c11=this[_0x5c3d84(0x236)]['interceptor'][_0x5c3d84(0x424)](this[_0x5c3d84(0x236)][_0x5c3d84(0x29d)][_0x5c3d84(0x2c6)]()[_0x5c3d84(0x239)])(_0x4e05a0['mutations'],null)||_0x4e05a0[_0x5c3d84(0x44a)],_0x4315c2={..._0x4e05a0,'mutations':_0x435c11};this['_lockTransition'](),this['_updateState'](this[_0x5c3d84(0x216)]['onRemoteChangeset'](_0x4315c2)),this['_unlockTransition']();}['_onRemoteACK'](_0xab9c13){const _0x58f529=_0xb893b1;this[_0x58f529(0x3dc)](),this[_0x58f529(0x492)](this[_0x58f529(0x216)][_0x58f529(0x344)](_0xab9c13)),this[_0x58f529(0x4de)]();}[_0xb893b1(0x498)](_0xff8a47){const _0x30b161=_0xb893b1;this[_0x30b161(0x3dc)](),this[_0x30b161(0x492)](this[_0x30b161(0x216)]['onRemoteRej'](_0xff8a47)),this[_0x30b161(0x4de)]();}[_0xb893b1(0x331)](_0x115cda){const _0x47386e=_0xb893b1;this[_0x47386e(0x3dc)](),this['_updateState'](this[_0x47386e(0x216)][_0x47386e(0x4d9)](_0x115cda)),this[_0x47386e(0x4de)]();}[_0xb893b1(0x423)](_0x326390){const _0x166354=_0xb893b1;if(!(this[_0x166354(0x216)]instanceof _0x58bc8e))throw new TypeError(_0x166354(0x462));const _0x26105c=_0x326390[_0x166354(0x44d)](_0x1b50eb=>{const _0x319111=_0x166354,_0x54d19f=this[_0x319111(0x236)]['interceptor'][_0x319111(0x424)](this[_0x319111(0x236)][_0x319111(0x29d)][_0x319111(0x2c6)]()['COMPRESS_MUTATION_APPLY'])(_0x1b50eb[_0x319111(0x44a)],null)||_0x1b50eb[_0x319111(0x44a)];return{..._0x1b50eb,'mutations':_0x54d19f};});this['_lockTransition'](),this['_updateState'](this['_state'][_0x166354(0x197)](_0x26105c)),this[_0x166354(0x4de)]();}[_0xb893b1(0x529)](){const _0x5e65b8=_0xb893b1;this[_0x5e65b8(0x3dc)](),this[_0x5e65b8(0x492)](this[_0x5e65b8(0x216)][_0x5e65b8(0x2a7)]()),this[_0x5e65b8(0x4de)]();}['_toggleOnline'](_0x363d54=!0x1){const _0x21c940=_0xb893b1;this[_0x21c940(0x3dc)](),this[_0x21c940(0x492)](this[_0x21c940(0x216)][_0x21c940(0x318)]()),this['_unlockTransition']();const _0x1128bb=this['_state'];_0x363d54&&_0x1128bb instanceof _0x433904&&(this['_lockTransition'](),this[_0x21c940(0x492)](_0x1128bb[_0x21c940(0x2ef)]()),this[_0x21c940(0x4de)]());}async['_createInitialState'](){return new Promise(_0x150dec=>{const _0x365fa7=_0x104b;this['session']['sessionStatus$'][_0x365fa7(0x3ca)](_0x4655d9['take'](0x1))[_0x365fa7(0x1b6)](async _0x519461=>{const _0x4831c5=_0x365fa7;_0x150dec(await this[_0x4831c5(0x135)](_0x519461===_0x442957[_0x4831c5(0x4d5)]));});});}[_0xb893b1(0x1dd)](){const _0x2b3232=_0xb893b1,_0x216401=this[_0x2b3232(0x386)];return{'onStateChange':(_0x188d32,_0xafe37a)=>{const _0x324b05=_0x2b3232;if(_0x188d32!==this['_state'])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x188d32[_0x324b05(0x259)]+_0x324b05(0x1c6)+_0xafe37a[_0x324b05(0x259)]+_0x324b05(0x342)+this[_0x324b05(0x216)][_0x324b05(0x259)]);this['_updateState'](_0xafe37a);},'onSendChangeset':_0x254540=>{const _0x122425=_0x2b3232;_0x254540[_0x122425(0x161)]||(_0x254540[_0x122425(0x161)]=this[_0x122425(0x233)],_0x254540[_0x122425(0x500)]=++this[_0x122425(0x53f)]);const _0x16f268={'eventID':_0x5e5ab1[_0x122425(0x177)][_0x122425(0x138)],'data':{'unitID':_0x254540[_0x122425(0x386)],'unitType':this[_0x122425(0x450)],'changeset':_0x254540,'memberID':this[_0x122425(0x3f0)][_0x122425(0x17d)]()}};this['session'][_0x122425(0x2c0)](_0x16f268,this['unitID']);},'onMissingChangesets':({from:_0x3a6e19,to:_0x21dff3})=>{const _0x5a0706=_0x2b3232;this['_logService'][_0x5a0706(0x20d)](_0x5a0706(0x39f),'fetching\x20missing\x20changesets\x20from\x20'+_0x3a6e19+_0x5a0706(0x48d)+_0x21dff3);const _0x13354f={'eventID':_0x5e5ab1[_0x5a0706(0x177)][_0x5a0706(0x43d)],'data':{'unitID':_0x216401,'unitType':this[_0x5a0706(0x450)],'from':_0x3a6e19,'to':_0x21dff3}};this[_0x5a0706(0x3f0)][_0x5a0706(0x2c0)](_0x13354f,this['unitID']);}};}async[_0xb893b1(0x135)](_0x4739c9){const _0x15f77f=_0xb893b1;var _0x508a2b,_0x2c2fc8;const _0x45898d=await this[_0x15f77f(0x4c9)][_0x15f77f(0x477)](this[_0x15f77f(0x386)]),_0x2b8f7b=(_0x508a2b=_0x45898d==null?void 0x0:_0x45898d[_0x15f77f(0x44a)])!=null?_0x508a2b:[],_0x36077b=(_0x2c2fc8=_0x45898d==null?void 0x0:_0x45898d[_0x15f77f(0x20a)])!=null?_0x2c2fc8:null,_0x48559a=!!(_0x36077b!=null&&_0x36077b[_0x15f77f(0x161)])&&!!(_0x36077b!=null&&_0x36077b[_0x15f77f(0x500)]);this[_0x15f77f(0x233)]=_0x48559a?_0x36077b[_0x15f77f(0x161)]:_0x3b5e61(),this[_0x15f77f(0x53f)]=_0x48559a?_0x36077b[_0x15f77f(0x500)]:0x0;const _0x43a162=this[_0x15f77f(0x386)];try{this[_0x15f77f(0x32f)](_0x36077b,_0x2b8f7b);}catch(_0x11ba28){this[_0x15f77f(0x482)]['error'](_0x11ba28);}const _0x5566c1=this['_createHandler']();if(_0x4739c9){const _0x6eba4f=_0x434480(this[_0x15f77f(0x126)],_0x43a162,this[_0x15f77f(0x450)],_0x36077b,_0x2b8f7b,_0x5566c1);return _0x6eba4f instanceof _0x48d3b9?_0x6eba4f[_0x15f77f(0x395)]():(_0x6eba4f instanceof _0x5115be||_0x6eba4f instanceof _0x5943fe)&&_0x6eba4f[_0x15f77f(0x4b5)](),_0x6eba4f;}return this[_0x15f77f(0x126)][_0x15f77f(0x361)](_0x19fad0,_0x43a162,this[_0x15f77f(0x450)],_0x36077b,_0x2b8f7b,_0x5566c1);}[_0xb893b1(0x32f)](_0x4f7312,_0x20555a){const _0x47b942=_0xb893b1;var _0x4946c9,_0x6d7a21;const _0x3d3265=this[_0x47b942(0x236)]['interceptor'][_0x47b942(0x424)](this['_compressMutationService'][_0x47b942(0x29d)][_0x47b942(0x2c6)]()[_0x47b942(0x239)]);(_0x4946c9=_0x3d3265((_0x4f7312==null?void 0x0:_0x4f7312[_0x47b942(0x44a)])||[],null))==null||_0x4946c9[_0x47b942(0x3b7)](_0x3c6371=>this['_commandService']['executeCommand'](_0x3c6371['id'],_0x3c6371['params'])),(_0x6d7a21=_0x3d3265(_0x20555a||[],null))==null||_0x6d7a21[_0x47b942(0x3b7)](_0x477436=>this[_0x47b942(0x4af)][_0x47b942(0x3c5)](_0x477436['id'],_0x477436[_0x47b942(0x16b)]));}},_0x3b52c4[_0xb893b1(0x336)]=_0x8c54e8([_0x4f9c72(0x3,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x4f9c72(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4[_0xb893b1(0x2ff)])),_0x4f9c72(0x5,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1[_0xb893b1(0x512)])),_0x4f9c72(0x6,_0x58b389['Inject'](_0x58b389[_0xb893b1(0x4ee)])),_0x4f9c72(0x7,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1[_0xb893b1(0x3ba)])),_0x4f9c72(0x8,_0x58b389[_0xb893b1(0x46a)]),_0x4f9c72(0x9,_0x58b389[_0xb893b1(0x1ec)]),_0x4f9c72(0xa,_0x4d3c2b['IMessageService']),_0x4f9c72(0xb,_0x58b389[_0xb893b1(0x4e1)]),_0x4f9c72(0xc,_0x58b389[_0xb893b1(0x45b)](_0x8f0d7b))],_0x3b52c4[_0xb893b1(0x336)]),_0x3b52c4[_0xb893b1(0x276)]=class extends _0x3b52c4[_0xb893b1(0x336)]{constructor(_0x4af2aa,_0x284e07,_0x1c77d9,_0x3d27d2,_0x3f0c20,_0x4da130,_0x591fe3,_0x1c7f30,_0x5ac23d,_0x5d1d99,_0x15d056,_0x33659d,_0x21a497,_0x327442,_0x27cf40,_0x3849eb,_0x35105a){const _0x22ec5e=_0xb893b1;super(_0x4af2aa,_0x1c77d9,_0x284e07,_0x3d27d2,_0x3f0c20,_0x4da130,_0x591fe3,_0x1c7f30,_0x21a497,_0x327442,_0x27cf40,_0x3849eb,_0x35105a),this[_0x22ec5e(0x386)]=_0x4af2aa,this[_0x22ec5e(0x191)]=_0x284e07,this[_0x22ec5e(0x18a)]=_0x5ac23d,this[_0x22ec5e(0x1c3)]=_0x5d1d99,this[_0x22ec5e(0x3b1)]=_0x15d056,this[_0x22ec5e(0x314)]=_0x33659d;}[_0xb893b1(0x1dd)](){const _0x96d01e=_0xb893b1,_0x6d5081=super[_0x96d01e(0x1dd)]();return _0x6d5081[_0x96d01e(0x521)]=_0x388509=>this[_0x96d01e(0x1c3)][_0x96d01e(0x31b)](_0x388509),_0x6d5081[_0x96d01e(0x400)]=_0x59b3d9=>this['_docTransformSelectionsService'][_0x96d01e(0x45a)](_0x59b3d9),_0x6d5081[_0x96d01e(0x173)]=_0x5270ad=>this[_0x96d01e(0x314)][_0x96d01e(0x218)](_0x5270ad),_0x6d5081['onTransformRemoteChangesetByIMECache']=_0xbd92f=>this[_0x96d01e(0x1c3)][_0x96d01e(0x10c)](_0xbd92f),_0x6d5081;}async[_0xb893b1(0x3e2)](){const _0x18492e=_0xb893b1,_0x266393=await super[_0x18492e(0x3e2)]();return this[_0x18492e(0x18a)]['docStateChange$'][_0x18492e(0x3ca)](_0x4655d9[_0x18492e(0x260)](this[_0x18492e(0x11c)]))[_0x18492e(0x1b6)](_0x7e640=>{const _0x135863=_0x18492e;if(_0x7e640==null)return;const {unitId:_0x15e240,redoState:_0x44036f,commandId:_0x4ebccd}=_0x7e640;if(_0x15e240!==this['unitID'])return;const _0x4940d7={'id':_0x4ebccd,'type':_0x58b389[_0x135863(0x160)][_0x135863(0x101)],'params':{'unitId':_0x15e240,'actions':_0x44036f[_0x135863(0x12b)],'textRanges':null}};this[_0x135863(0x4b7)](_0x4940d7);}),_0x266393;}},_0x3b52c4[_0xb893b1(0x276)]=_0x8c54e8([_0x4f9c72(0x3,_0x58b389[_0xb893b1(0x4ac)](_0x58b389['Injector'])),_0x4f9c72(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4[_0xb893b1(0x2ff)])),_0x4f9c72(0x5,_0x58b389['Inject'](_0x5e5ab1['CompressMutationService'])),_0x4f9c72(0x6,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x4ee)])),_0x4f9c72(0x7,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1[_0xb893b1(0x3ba)])),_0x4f9c72(0x8,_0x58b389[_0xb893b1(0x4ac)](_0x24db92[_0xb893b1(0x37c)])),_0x4f9c72(0x9,_0x58b389[_0xb893b1(0x4ac)](_0x3f6990)),_0x4f9c72(0xa,_0x58b389[_0xb893b1(0x4ac)](_0x5dda6a)),_0x4f9c72(0xb,_0x58b389[_0xb893b1(0x4ac)](_0x195ff7)),_0x4f9c72(0xc,_0x58b389[_0xb893b1(0x46a)]),_0x4f9c72(0xd,_0x58b389['ICommandService']),_0x4f9c72(0xe,_0x4d3c2b['IMessageService']),_0x4f9c72(0xf,_0x58b389['IPermissionService']),_0x4f9c72(0x10,_0x58b389[_0xb893b1(0x45b)](_0x8f0d7b))],_0x3b52c4[_0xb893b1(0x276)]),_0x3b52c4[_0xb893b1(0x4ff)]=class extends _0x3b52c4['CollaborationEntity']{constructor(_0xcb4700,_0xaae16e,_0x606e94,_0x8ba2b1,_0x5dfb87,_0x3c45e3,_0x1cf71b,_0xee56fa,_0x5ef210,_0x41824f,_0x2aad12,_0x56b339,_0x365817,_0x3d5cbf){const _0x59465a=_0xb893b1;super(_0xcb4700,_0x606e94,_0xaae16e,_0x8ba2b1,_0x5dfb87,_0x3c45e3,_0x1cf71b,_0xee56fa,_0x41824f,_0x2aad12,_0x56b339,_0x365817,_0x3d5cbf),this['unitID']=_0xcb4700,this[_0x59465a(0x191)]=_0xaae16e,this[_0x59465a(0x2d6)]=_0x5ef210;}['_createHandler'](){const _0x14f543=_0xb893b1,_0x55e8bd=super[_0x14f543(0x1dd)]();return _0x55e8bd[_0x14f543(0x400)]=_0x1cee35=>this[_0x14f543(0x2d6)][_0x14f543(0x45a)](_0x1cee35),_0x55e8bd;}async[_0xb893b1(0x3e2)](){const _0x16df4e=_0xb893b1,_0x18db9b=await super[_0x16df4e(0x3e2)]();return this[_0x16df4e(0x14b)](this['_commandService'][_0x16df4e(0x330)]((_0x1bdedf,_0x5e20d7)=>{const _0x171805=_0x16df4e;if(_0x1bdedf['type']!==_0x58b389[_0x171805(0x160)][_0x171805(0x101)]||_0x5e20d7!=null&&_0x5e20d7['fromCollab']||_0x5e20d7!=null&&_0x5e20d7[_0x171805(0x204)])return;const _0x39646e=_0x1bdedf[_0x171805(0x16b)];if((_0x39646e==null?void 0x0:_0x39646e['unitId'])!==this[_0x171805(0x386)])return;const _0x3a94ef=_0x1bdedf,_0x4dc929=this[_0x171805(0x236)][_0x171805(0x29d)][_0x171805(0x424)](this[_0x171805(0x236)][_0x171805(0x29d)][_0x171805(0x2c6)]()[_0x171805(0x1c0)])([_0x3a94ef],null)||[_0x3a94ef];this[_0x171805(0x4b7)](_0x4dc929[0x0]);})),_0x18db9b;}},_0x3b52c4[_0xb893b1(0x4ff)]=_0x8c54e8([_0x4f9c72(0x3,_0x58b389[_0xb893b1(0x4ac)](_0x58b389['Injector'])),_0x4f9c72(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4['LocalCacheService'])),_0x4f9c72(0x5,_0x58b389[_0xb893b1(0x4ac)](_0x5e5ab1['CompressMutationService'])),_0x4f9c72(0x6,_0x58b389[_0xb893b1(0x4ac)](_0x58b389['LocaleService'])),_0x4f9c72(0x7,_0x58b389['Inject'](_0x5e5ab1[_0xb893b1(0x3ba)])),_0x4f9c72(0x8,_0x58b389['Inject'](_0xc29e66)),_0x4f9c72(0x9,_0x58b389[_0xb893b1(0x46a)]),_0x4f9c72(0xa,_0x58b389[_0xb893b1(0x1ec)]),_0x4f9c72(0xb,_0x4d3c2b[_0xb893b1(0x36f)]),_0x4f9c72(0xc,_0x58b389[_0xb893b1(0x4e1)]),_0x4f9c72(0xd,_0x58b389[_0xb893b1(0x45b)](_0x8f0d7b))],_0x3b52c4[_0xb893b1(0x4ff)]);var _0x86f81b=Object[_0xb893b1(0x1bc)],_0x515fc6=Object[_0xb893b1(0x490)],_0x3dcf79=(_0xed00fc,_0x37fa68,_0x111e1e,_0x8efa5b)=>{const _0x50ff93=_0xb893b1;for(var _0x375774=_0x8efa5b>0x1?void 0x0:_0x8efa5b?_0x515fc6(_0x37fa68,_0x111e1e):_0x37fa68,_0x3419cb=_0xed00fc[_0x50ff93(0x4d8)]-0x1,_0x390de3;_0x3419cb>=0x0;_0x3419cb--)(_0x390de3=_0xed00fc[_0x3419cb])&&(_0x375774=(_0x8efa5b?_0x390de3(_0x37fa68,_0x111e1e,_0x375774):_0x390de3(_0x375774))||_0x375774);return _0x8efa5b&&_0x375774&&_0x86f81b(_0x37fa68,_0x111e1e,_0x375774),_0x375774;},_0x4d4811=(_0x19211c,_0x42da98)=>(_0x450e72,_0x4545a3)=>_0x42da98(_0x450e72,_0x4545a3,_0x19211c);_0x3b52c4[_0xb893b1(0x20c)]=class extends _0x58b389[_0xb893b1(0xf8)]{constructor(_0x150ef2,_0x2d1a66,_0x2dfca2){const _0x12cc14=_0xb893b1;super(),_0xf1fe43(this,_0x12cc14(0x415),new Map()),_0xf1fe43(this,_0x12cc14(0x2c2),new _0x4655d9[(_0x12cc14(0x4d6))]()),(this[_0x12cc14(0x126)]=_0x150ef2,this[_0x12cc14(0x4df)]=_0x2d1a66,this['_univerInstanceService']=_0x2dfca2,this['_init']());}[_0xb893b1(0x50d)](){const _0x3fcddb=_0xb893b1;super[_0x3fcddb(0x50d)](),this['_entities']['forEach'](_0x2a09c2=>_0x2a09c2[_0x3fcddb(0x50d)]()),this['_entities'][_0x3fcddb(0x48c)]();}[_0xb893b1(0x408)](_0x44e419){const _0x73de04=_0xb893b1;var _0x42a041;return(_0x42a041=this[_0x73de04(0x415)]['get'](_0x44e419))!=null?_0x42a041:null;}[_0xb893b1(0x417)](_0x45f8fa){const _0x1198d2=_0xb893b1,_0x53cb53=this[_0x1198d2(0x408)](_0x45f8fa);return _0x53cb53?_0x4655d9['of'](_0x53cb53):this[_0x1198d2(0x2c2)]['pipe'](_0x5d8a56[_0x1198d2(0x1ae)](_0x3c6cb3=>_0x3c6cb3[_0x1198d2(0x386)]===_0x45f8fa));}[_0xb893b1(0x3e2)](){const _0x3ca99c=_0xb893b1;this['_univerInstanceService'][_0x3ca99c(0x2a1)](_0x58b389['UniverInstanceType']['UNIVER_SHEET'])[_0x3ca99c(0x3ca)](_0x4655d9[_0x3ca99c(0x260)](this[_0x3ca99c(0x11c)]),_0x5d8a56[_0x3ca99c(0x184)](0x10))['subscribe'](async _0x37aca6=>{const _0x44bf77=_0x3ca99c,_0xb3646e=_0x37aca6[_0x44bf77(0x2b3)](),_0x5220ef=await this[_0x44bf77(0x35e)](_0xb3646e,_0x2e214d[_0x44bf77(0x2db)]);this[_0x44bf77(0x415)]['set'](_0xb3646e,_0x5220ef);}),this[_0x3ca99c(0x123)][_0x3ca99c(0x2a1)](_0x58b389[_0x3ca99c(0x441)]['UNIVER_DOC'])[_0x3ca99c(0x3ca)](_0x4655d9['takeUntil'](this['dispose$']),_0x5d8a56['delay'](0x10))[_0x3ca99c(0x3ca)](_0x5d8a56[_0x3ca99c(0x1ae)](_0x6af365=>!_0x6af365['getUnitId']()[_0x3ca99c(0x464)]('__')))[_0x3ca99c(0x1b6)](async _0x980388=>{const _0x381116=_0x3ca99c,_0x3ce3b3=_0x980388['getUnitId'](),_0x535dc7=await this['_startCollaboration'](_0x3ce3b3,_0x2e214d[_0x381116(0x2d8)]);this[_0x381116(0x415)][_0x381116(0x1c2)](_0x3ce3b3,_0x535dc7);}),_0x4655d9[_0x3ca99c(0x1b3)](this[_0x3ca99c(0x123)][_0x3ca99c(0x227)](_0x58b389[_0x3ca99c(0x441)][_0x3ca99c(0x2db)]),this[_0x3ca99c(0x123)][_0x3ca99c(0x227)](_0x58b389[_0x3ca99c(0x441)]['UNIVER_DOC']))[_0x3ca99c(0x3ca)](_0x4655d9[_0x3ca99c(0x260)](this[_0x3ca99c(0x11c)]))[_0x3ca99c(0x1b6)](_0x68c979=>{const _0x1111d1=_0x3ca99c,_0x23a6e2=_0x68c979['getUnitId'](),_0x5b1f9a=this[_0x1111d1(0x415)][_0x1111d1(0x19d)](_0x23a6e2);_0x5b1f9a&&(_0x5b1f9a[_0x1111d1(0x50d)](),this[_0x1111d1(0x415)]['delete'](_0x23a6e2));});}async[_0xb893b1(0x35e)](_0x37a83b,_0x4ff5ac){const _0x723263=_0xb893b1,_0x1086c5=await this['_collabSessionService'][_0x723263(0x213)](_0x37a83b),_0x4b4810=this[_0x723263(0x126)][_0x723263(0x361)](this[_0x723263(0x4cb)](_0x4ff5ac),_0x37a83b,_0x4ff5ac,_0x1086c5);return await _0x4b4810[_0x723263(0x29f)](),this[_0x723263(0x2c2)][_0x723263(0x174)](_0x4b4810),_0x4b4810;}[_0xb893b1(0x4cb)](_0x42aadd){const _0xb4ca48=_0xb893b1;switch(_0x42aadd){case _0x2e214d['UNIVER_DOC']:return _0x3b52c4[_0xb4ca48(0x276)];case _0x2e214d[_0xb4ca48(0x2db)]:return _0x3b52c4[_0xb4ca48(0x4ff)];default:throw new Error(_0xb4ca48(0x224)+_0x42aadd);}}},_0x3b52c4['CollaborationController']=_0x3dcf79([_0x4d4811(0x0,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x4d4811(0x1,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4[_0xb893b1(0x11f)])),_0x4d4811(0x2,_0x58b389[_0xb893b1(0x1d9)])],_0x3b52c4[_0xb893b1(0x20c)]);const _0x4d0793=['purple300',_0xb893b1(0x27a),'verdancy600',_0xb893b1(0x3af),_0xb893b1(0x2d3),'gold400'];class _0x15453c extends _0x58b389[_0xb893b1(0x4dc)]{constructor(){const _0x368216=_0xb893b1;super(...arguments),_0xf1fe43(this,'_assignedColors',new Map()),_0xf1fe43(this,_0x368216(0x3ae),0x0);}['assignAColorForMemberID'](_0x1a6b44){const _0x31af22=_0xb893b1;if(this['_assignedColors'][_0x31af22(0x2dc)](_0x1a6b44))return this[_0x31af22(0x53e)][_0x31af22(0x19d)](_0x1a6b44);const _0x1b6a6f=_0x4d0793[this[_0x31af22(0x3ae)]];return this[_0x31af22(0x3ae)]=(this[_0x31af22(0x3ae)]+0x1)%_0x4d0793[_0x31af22(0x4d8)],this[_0x31af22(0x53e)][_0x31af22(0x1c2)](_0x1a6b44,_0x1b6a6f),_0x1b6a6f;}}var _0x327a6d=Object['defineProperty'],_0x5917ba=Object[_0xb893b1(0x490)],_0x56694=(_0x2b3956,_0x39f9f0,_0x55576f,_0x135bfe)=>{for(var _0xfd29ca=_0x135bfe>0x1?void 0x0:_0x135bfe?_0x5917ba(_0x39f9f0,_0x55576f):_0x39f9f0,_0x15f444=_0x2b3956['length']-0x1,_0x5f1fe1;_0x15f444>=0x0;_0x15f444--)(_0x5f1fe1=_0x2b3956[_0x15f444])&&(_0xfd29ca=(_0x135bfe?_0x5f1fe1(_0x39f9f0,_0x55576f,_0xfd29ca):_0x5f1fe1(_0xfd29ca))||_0xfd29ca);return _0x135bfe&&_0xfd29ca&&_0x327a6d(_0x39f9f0,_0x55576f,_0xfd29ca),_0xfd29ca;},_0x4d1c02=(_0x2ba362,_0x159937)=>(_0x4edc87,_0x155c80)=>_0x159937(_0x4edc87,_0x155c80,_0x2ba362);const _0x40af2e=0x12c,_0x471a29=0x64;let _0x386a8f=class extends _0x58b389['RxDisposable']{constructor(_0x18bc49,_0x4d94af,_0x178207,_0x5a5715,_0x434410,_0x5c2a27,_0x356457,_0x102c21,_0x88482){const _0x53585b=_0xb893b1;super(),_0xf1fe43(this,_0x53585b(0x20f),!0x1),_0xf1fe43(this,_0x53585b(0x3e2),!0x1),_0xf1fe43(this,_0x53585b(0x3b9),new _0x4655d9['BehaviorSubject'](new Map())),_0xf1fe43(this,_0x53585b(0x2aa),this[_0x53585b(0x3b9)][_0x53585b(0x526)]()),_0xf1fe43(this,_0x53585b(0x300),new _0x4655d9['BehaviorSubject']([])),_0xf1fe43(this,_0x53585b(0x1b7),this[_0x53585b(0x300)][_0x53585b(0x3ca)](_0x4655d9[_0x53585b(0x22d)](_0x40af2e))),_0xf1fe43(this,_0x53585b(0x222),_0x58b389[_0x53585b(0x35d)](_0x24e24c=>{const _0x3e71b3=_0x53585b,_0x154c67={'eventID':_0x5e5ab1[_0x3e71b3(0x177)][_0x3e71b3(0x178)],'data':{'unitID':this['unitID'],'memberID':this[_0x3e71b3(0x378)][_0x3e71b3(0x17d)](),'selection':_0x21cb6a(_0x24e24c)}};this['_session'][_0x3e71b3(0x2c0)](_0x154c67,this['unitID']);},_0x471a29)),(this[_0x53585b(0x386)]=_0x18bc49,this[_0x53585b(0x378)]=_0x4d94af,this[_0x53585b(0x126)]=_0x178207,this['_colorAssignService']=_0x5a5715,this['_memberService']=_0x434410,this[_0x53585b(0x39d)]=_0x5c2a27,this[_0x53585b(0x18d)]=_0x356457,this[_0x53585b(0x123)]=_0x102c21,this[_0x53585b(0x4af)]=_0x88482);}get[_0xb893b1(0x42b)](){const _0x36b536=_0xb893b1;return this['_cursorInfo$'][_0x36b536(0x38d)]();}get[_0xb893b1(0x504)](){const _0x49f353=_0xb893b1;return this[_0x49f353(0x300)][_0x49f353(0x38d)]();}[_0xb893b1(0x50d)](){const _0x4fc92b=_0xb893b1;super[_0x4fc92b(0x50d)](),this[_0x4fc92b(0x3b9)]['next'](new Map()),this[_0x4fc92b(0x3b9)][_0x4fc92b(0x398)](),this['_roomMembers$'][_0x4fc92b(0x174)]([]),this[_0x4fc92b(0x300)][_0x4fc92b(0x398)]();}[_0xb893b1(0x29f)](){const _0x345393=_0xb893b1;this[_0x345393(0x3e2)]||(this[_0x345393(0x3e2)]=!0x0,this[_0x345393(0x378)][_0x345393(0x294)]['pipe'](_0x4655d9[_0x345393(0x260)](this['dispose$']))[_0x345393(0x1b6)](_0x3e26e6=>{const _0x23fdb0=_0x345393;_0x3e26e6===_0x442957[_0x23fdb0(0x4d5)]?this[_0x23fdb0(0x389)]():this[_0x23fdb0(0x529)]();}),this[_0x345393(0x378)][_0x345393(0x297)][_0x345393(0x3ca)](_0x4655d9[_0x345393(0x260)](this[_0x345393(0x11c)]))[_0x345393(0x1b6)](_0x4bdc1e=>{const _0x2b48ce=_0x345393,_0x1320b5=_0x4bdc1e['eventID'];_0x1320b5===_0x5e5ab1[_0x2b48ce(0x177)][_0x2b48ce(0x178)]&&this['_onCursorUpdate'](_0x4bdc1e),_0x1320b5===_0x5e5ab1[_0x2b48ce(0x177)]['USERS_LEAVE']&&this[_0x2b48ce(0x2b2)](_0x4bdc1e);}),this[_0x345393(0x14b)](this['_commandService'][_0x345393(0x330)](_0x1b38ab=>{const _0x1cc6f9=_0x345393,_0x28f4e1=_0x1b38ab[_0x1cc6f9(0x16b)];_0x28f4e1!=null&&this['_online']&&_0x1b38ab['id']===_0x124506['SetTextSelectionsOperation']['id']&&_0x28f4e1[_0x1cc6f9(0x458)]===this[_0x1cc6f9(0x386)]&&_0x28f4e1[_0x1cc6f9(0x111)]===!0x1&&_0x28f4e1[_0x1cc6f9(0x3a0)][_0x1cc6f9(0x4d8)]>0x0&&this[_0x1cc6f9(0x222)](_0x28f4e1[_0x1cc6f9(0x3a0)]);})),this[_0x345393(0x39d)][_0x345393(0x200)]['pipe'](_0x4655d9['takeUntil'](this['dispose$']))[_0x345393(0x1b6)](_0x20bedc=>{const _0xdbf375=_0x345393;if((_0x20bedc==null?void 0x0:_0x20bedc[_0xdbf375(0x386)])!==this['unitID'])return;const _0x5063f9={'eventID':_0x5e5ab1[_0xdbf375(0x177)][_0xdbf375(0x178)],'data':_0x20bedc};this[_0xdbf375(0x43e)](_0x5063f9);}),this[_0x345393(0x14b)](this[_0x345393(0x4af)][_0x345393(0x330)](_0x44132b=>{const _0x255cfa=_0x345393;if(_0x44132b['params']==null)return;const _0x345d11=_0x44132b[_0x255cfa(0x16b)];if(_0x44132b['id']!==_0x124506['RichTextEditingMutation']['id']||_0x345d11[_0x255cfa(0x458)]!==this[_0x255cfa(0x386)])return;const _0x4a1094={'id':_0x255cfa(0x29a),'params':_0x345d11},_0x165b27=this[_0x255cfa(0x42b)];for(const [_0x1b05bf,_0x4037e4]of _0x165b27){const _0x3763f3={'id':_0x255cfa(0x29a),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x4037e4['ranges']}},_0xd33252=this[_0x255cfa(0x18d)][_0x255cfa(0x10a)](_0x4a1094,_0x3763f3,!0x1);if(_0x5e5ab1[_0x255cfa(0x251)](_0xd33252))throw _0xd33252[_0x255cfa(0x368)];_0x165b27['set'](_0x1b05bf,{..._0x4037e4,'ranges':_0xd33252[_0x255cfa(0x23f)][_0x255cfa(0x16b)][_0x255cfa(0x107)]});}queueMicrotask(()=>{const _0x168517=_0x255cfa;this[_0x168517(0x3b9)]['next'](_0x165b27);});})));}[_0xb893b1(0x43e)](_0x1d6a64){const _0x5006f3=_0xb893b1;var _0x419db6,_0x10e16c;const {memberID:_0x32dc18,selection:_0x573626}=_0x1d6a64[_0x5006f3(0x489)],_0xe35178=_0x1f2f83(_0x573626),_0x226703=(_0x10e16c=(_0x419db6=this['_memberService'][_0x5006f3(0x176)](this[_0x5006f3(0x386)],_0x32dc18))==null?void 0x0:_0x419db6[_0x5006f3(0x4e3)])!=null?_0x10e16c:'Unknown\x20user',_0x18daa1={'color':this[_0x5006f3(0x244)][_0x5006f3(0x432)](_0x32dc18),'name':_0x226703,'ranges':_0xe35178},_0x321114=this[_0x5006f3(0x42b)];_0x321114[_0x5006f3(0x1c2)](_0x32dc18,_0x18daa1),this['_cursorInfo$'][_0x5006f3(0x174)](_0x321114);}[_0xb893b1(0x2b2)](_0x52804f){const _0x276096=_0xb893b1,{memberID:_0x4a7175}=_0x52804f[_0x276096(0x489)],_0xd806d4=this[_0x276096(0x42b)];_0xd806d4[_0x276096(0x1d0)](_0x4a7175),this[_0x276096(0x3b9)][_0x276096(0x174)](_0xd806d4);}[_0xb893b1(0x389)](){const _0x237091=_0xb893b1;var _0x2ce5fa;if(this[_0x237091(0x20f)]=!0x0,((_0x2ce5fa=this[_0x237091(0x123)][_0x237091(0x42e)]())==null?void 0x0:_0x2ce5fa[_0x237091(0x2b3)]())!==this[_0x237091(0x386)])return;const _0x238567=this['_injector']['get'](_0x124506[_0x237091(0x446)])[_0x237091(0x372)]();Array['isArray'](_0x238567)&&_0x238567[_0x237091(0x4d8)]>0x0&&this[_0x237091(0x222)](_0x238567);}[_0xb893b1(0x529)](){const _0x21f1f3=_0xb893b1;this[_0x21f1f3(0x20f)]=!0x1;}};_0x386a8f=_0x56694([_0x4d1c02(0x2,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x4d1c02(0x3,_0x58b389[_0xb893b1(0x4ac)](_0x15453c)),_0x4d1c02(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4[_0xb893b1(0x384)])),_0x4d1c02(0x5,_0x58b389[_0xb893b1(0x4ac)](_0x195ff7)),_0x4d1c02(0x6,_0x5e5ab1[_0xb893b1(0x157)]),_0x4d1c02(0x7,_0x58b389[_0xb893b1(0x1d9)]),_0x4d1c02(0x8,_0x58b389['ICommandService'])],_0x386a8f);var _0x50abc1=Object[_0xb893b1(0x1bc)],_0x2c30a8=Object[_0xb893b1(0x490)],_0x289486=(_0x15e53b,_0x269759,_0x9e527a,_0x33959f)=>{const _0x176f6f=_0xb893b1;for(var _0x2121b0=_0x33959f>0x1?void 0x0:_0x33959f?_0x2c30a8(_0x269759,_0x9e527a):_0x269759,_0x3ea9d7=_0x15e53b[_0x176f6f(0x4d8)]-0x1,_0x1c9cb4;_0x3ea9d7>=0x0;_0x3ea9d7--)(_0x1c9cb4=_0x15e53b[_0x3ea9d7])&&(_0x2121b0=(_0x33959f?_0x1c9cb4(_0x269759,_0x9e527a,_0x2121b0):_0x1c9cb4(_0x2121b0))||_0x2121b0);return _0x33959f&&_0x2121b0&&_0x50abc1(_0x269759,_0x9e527a,_0x2121b0),_0x2121b0;},_0x112696=(_0x5bcc7e,_0xb79314)=>(_0x5f0d93,_0x570346)=>_0xb79314(_0x5f0d93,_0x570346,_0x5bcc7e);const _0x6a7583=0x12c,_0x14ffa7=0x64,_0x44bb56=()=>{let _0x2b64c9=[],_0x496a58=!0x1;return _0x5bee35=>{const _0x4b8f0e=_0x104b;_0x2b64c9[_0x4b8f0e(0x428)](_0x5bee35),_0x496a58||(_0x496a58=!0x0,setTimeout(()=>{const _0x33f136=_0x4b8f0e;_0x2b64c9[_0x33f136(0x3b7)](_0x2365e9=>_0x2365e9()),_0x2b64c9=[],_0x496a58=!0x1;}));};};let _0x1592bf=class extends _0x58b389[_0xb893b1(0xf8)]{constructor(_0x37cd4d,_0x116857,_0x11ef49,_0x5d60fc,_0x3f1a89,_0x1f2cfb,_0x430df8,_0x306ec2){const _0x3bc466=_0xb893b1;super(),_0xf1fe43(this,_0x3bc466(0x20f),!0x1),_0xf1fe43(this,_0x3bc466(0x3e2),!0x1),_0xf1fe43(this,_0x3bc466(0x3b9),new _0x4655d9['BehaviorSubject'](new Map())),_0xf1fe43(this,_0x3bc466(0x2aa),this[_0x3bc466(0x3b9)]['asObservable']()),_0xf1fe43(this,_0x3bc466(0x300),new _0x4655d9['BehaviorSubject']([])),_0xf1fe43(this,_0x3bc466(0x1b7),this[_0x3bc466(0x300)][_0x3bc466(0x3ca)](_0x4655d9[_0x3bc466(0x22d)](_0x6a7583))),_0xf1fe43(this,_0x3bc466(0x222),_0x58b389[_0x3bc466(0x35d)]((_0x3fd098,_0x226f42)=>{const _0x187544=_0x3bc466,_0x1d224e={'eventID':_0x5e5ab1['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x187544(0x386)],'memberID':this[_0x187544(0x378)][_0x187544(0x17d)](),'selection':_0x4be577[_0x187544(0x52b)](_0x3fd098,_0x226f42[_0x187544(0x385)])}};this[_0x187544(0x378)]['send'](_0x1d224e,this['unitID']);},_0x14ffa7)),(this['unitID']=_0x37cd4d,this['_session']=_0x116857,this[_0x3bc466(0x126)]=_0x11ef49,this[_0x3bc466(0x244)]=_0x5d60fc,this[_0x3bc466(0x505)]=_0x3f1a89,this[_0x3bc466(0x123)]=_0x1f2cfb,this['_commandService']=_0x430df8,this[_0x3bc466(0x220)]=_0x306ec2);}get[_0xb893b1(0x42b)](){const _0x1ea22b=_0xb893b1;return this['_cursorInfo$'][_0x1ea22b(0x38d)]();}get[_0xb893b1(0x504)](){const _0x4a5519=_0xb893b1;return this[_0x4a5519(0x300)][_0x4a5519(0x38d)]();}['dispose'](){const _0x4e7bbc=_0xb893b1;super[_0x4e7bbc(0x50d)](),this[_0x4e7bbc(0x3b9)][_0x4e7bbc(0x174)](new Map()),this['_cursorInfo$'][_0x4e7bbc(0x398)](),this[_0x4e7bbc(0x300)]['next']([]),this[_0x4e7bbc(0x300)][_0x4e7bbc(0x398)]();}[_0xb893b1(0x29f)](){const _0x200998=_0xb893b1;this[_0x200998(0x3e2)]||(this['_init']=!0x0,this[_0x200998(0x378)][_0x200998(0x294)][_0x200998(0x3ca)](_0x4655d9[_0x200998(0x260)](this['dispose$']))[_0x200998(0x1b6)](_0x262334=>{const _0xb204d9=_0x200998;_0x262334===_0x442957[_0xb204d9(0x4d5)]?this[_0xb204d9(0x389)]():this[_0xb204d9(0x529)]();}),this['_session']['event$'][_0x200998(0x3ca)](_0x4655d9[_0x200998(0x260)](this['dispose$']))[_0x200998(0x1b6)](_0x3179bd=>{const _0x43c6d9=_0x200998,_0x1aacf9=_0x3179bd[_0x43c6d9(0x39a)];_0x1aacf9===_0x5e5ab1[_0x43c6d9(0x177)][_0x43c6d9(0x178)]&&this[_0x43c6d9(0x43e)](_0x3179bd),_0x1aacf9===_0x5e5ab1[_0x43c6d9(0x177)][_0x43c6d9(0x30d)]&&this['_onCursorDelete'](_0x3179bd);}),this['_onRefRangeChange'](),this[_0x200998(0x14b)](this[_0x200998(0x4af)][_0x200998(0x330)](_0x15ad57=>{const _0xcfeff8=_0x200998;if(this['_online']&&_0x15ad57['id']===_0x2d2223[_0xcfeff8(0x327)]['id']&&_0x15ad57['params'][_0xcfeff8(0x458)]===this['unitID']){const _0x127573=_0x15ad57[_0xcfeff8(0x16b)];this[_0xcfeff8(0x222)](_0x127573['subUnitId'],_0x127573['selections'][0x0]);}})));}[_0xb893b1(0x43e)](_0x7024c8){const _0x3a8073=_0xb893b1;var _0x4f0f8d,_0x2036b5;const {memberID:_0x23ce69,selection:_0x5763b1}=_0x7024c8['data'],{sheetName:_0x2bf308,range:_0x2c2ce3}=_0x4be577[_0x3a8073(0x4a8)](_0x5763b1),_0x45251d={'name':(_0x2036b5=(_0x4f0f8d=this[_0x3a8073(0x505)][_0x3a8073(0x176)](this[_0x3a8073(0x386)],_0x23ce69))==null?void 0x0:_0x4f0f8d['name'])!=null?_0x2036b5:_0x3a8073(0x2a5),'range':this[_0x3a8073(0x266)](_0x2bf308,_0x2c2ce3),'sheetID':_0x2bf308,'color':this[_0x3a8073(0x244)][_0x3a8073(0x432)](_0x23ce69),'selection':_0x5763b1},_0x1b2c67=this[_0x3a8073(0x42b)];_0x1b2c67[_0x3a8073(0x1c2)](_0x23ce69,_0x45251d),this[_0x3a8073(0x3b9)][_0x3a8073(0x174)](_0x1b2c67);}[_0xb893b1(0x2b2)](_0x5883ef){const _0x284d56=_0xb893b1,{memberID:_0x581ef8}=_0x5883ef[_0x284d56(0x489)],_0x1b1e7b=this[_0x284d56(0x42b)];_0x1b1e7b[_0x284d56(0x1d0)](_0x581ef8),this[_0x284d56(0x3b9)]['next'](_0x1b1e7b);}[_0xb893b1(0x266)](_0x25e736,_0x225808){const _0x568a84=_0xb893b1;var _0x41f507,_0x3f4a0f;const _0x38fb34=(_0x3f4a0f=(_0x41f507=this[_0x568a84(0x123)][_0x568a84(0x506)](this[_0x568a84(0x386)]))==null?void 0x0:_0x41f507['getSheetBySheetId'](_0x25e736))==null?void 0x0:_0x3f4a0f[_0x568a84(0x51d)]();return(_0x38fb34==null?void 0x0:_0x38fb34[_0x568a84(0x322)](_0x15af29=>_0x58b389[_0x568a84(0x17a)][_0x568a84(0x26b)](_0x15af29,_0x225808)))||_0x225808;}[_0xb893b1(0x3f4)](){const _0x5239d8=_0xb893b1,_0x25993a=new _0x58b389['DisposableCollection'](),_0x426f93=_0x44bb56(),_0x324734=()=>{const _0x248b73=_0x104b;_0x25993a[_0x248b73(0x50d)]();const _0x4148c3=(_0x12348c,_0x203030,_0x33f36a,_0x8ba849)=>{const _0xd6c80d=_0x248b73;let _0x33bb02=[];switch(_0x12348c['id']){case _0x2d2223['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0x33bb02=_0x2d2223[_0xd6c80d(0x231)](_0x12348c,_0x8ba849);break;}case _0x2d2223[_0xd6c80d(0x349)]['DeleteRangeMoveUpCommandId']:{_0x33bb02=_0x2d2223['handleDeleteRangeMoveUp'](_0x12348c,_0x8ba849);break;}case _0x2d2223['EffectRefRangId']['InsertColCommandId']:{_0x33bb02=_0x2d2223[_0xd6c80d(0x2a3)](_0x12348c,_0x8ba849);break;}case _0x2d2223[_0xd6c80d(0x349)][_0xd6c80d(0x2fd)]:{_0x33bb02=_0x2d2223[_0xd6c80d(0x4e5)](_0x12348c,_0x8ba849);break;}case _0x2d2223['EffectRefRangId'][_0xd6c80d(0x156)]:{_0x33bb02=_0x2d2223[_0xd6c80d(0x474)](_0x12348c,_0x8ba849);break;}case _0x2d2223[_0xd6c80d(0x349)][_0xd6c80d(0x203)]:{_0x33bb02=_0x2d2223[_0xd6c80d(0x175)](_0x12348c,_0x8ba849);break;}case _0x2d2223[_0xd6c80d(0x349)][_0xd6c80d(0x24d)]:{_0x33bb02=_0x2d2223['handleMoveRange'](_0x12348c,_0x8ba849);break;}case _0x2d2223['EffectRefRangId'][_0xd6c80d(0x230)]:{_0x33bb02=_0x2d2223[_0xd6c80d(0x145)](_0x12348c,_0x8ba849);break;}case _0x2d2223['EffectRefRangId']['RemoveRowCommandId']:{_0x33bb02=_0x2d2223['handleIRemoveRow'](_0x12348c,_0x8ba849);break;}}const _0x27b80c=_0x2d2223['runRefRangeMutations'](_0x33bb02,_0x8ba849),_0x4725f7=this['cursorInfo'][_0xd6c80d(0x19d)](_0x203030);if(_0x4725f7&&_0x27b80c){const _0x3f15b3={..._0x4725f7,'range':_0x27b80c};this[_0xd6c80d(0x42b)][_0xd6c80d(0x1c2)](_0x203030,_0x3f15b3),_0x426f93(()=>{const _0x1b4959=_0xd6c80d,_0x53a3c4=this['_refRangeService'][_0x1b4959(0x3f9)](_0x27b80c,_0x5de78c=>(_0x53a3c4['dispose'](),_0x4148c3(_0x5de78c,_0x203030,_0x33f36a,_0x27b80c)));_0x25993a[_0x1b4959(0x510)](_0x53a3c4);});}return{'redos':[],'undos':[]};};this[_0x248b73(0x42b)][_0x248b73(0x3b7)]((_0xb16c0c,_0x5b4cea)=>{const _0x5ce585=_0x248b73,{range:_0x178918,sheetID:_0x19ae7d}=_0xb16c0c,_0x10e65e=this[_0x5ce585(0x220)][_0x5ce585(0x3f9)](_0x178918,_0x119f2b=>(_0x10e65e[_0x5ce585(0x50d)](),_0x4148c3(_0x119f2b,_0x5b4cea,_0x19ae7d,_0x178918)));_0x25993a[_0x5ce585(0x510)](_0x10e65e);});};this[_0x5239d8(0x14b)](_0x58b389[_0x5239d8(0x1bf)](this[_0x5239d8(0x3b9)][_0x5239d8(0x1b6)](()=>{_0x324734();})));}['_toggleOnline'](){const _0x1ae2f9=_0xb893b1;var _0x398610,_0x1cb184;if(this[_0x1ae2f9(0x20f)]=!0x0,((_0x398610=this['_univerInstanceService'][_0x1ae2f9(0x42e)]())==null?void 0x0:_0x398610[_0x1ae2f9(0x2b3)]())!==this['unitID'])return;const _0x1acd8d=(_0x1cb184=this[_0x1ae2f9(0x126)][_0x1ae2f9(0x19d)](_0x2d2223[_0x1ae2f9(0x3bf)])[_0x1ae2f9(0x2d2)]())==null?void 0x0:_0x1cb184[0x0],_0x1858f2=this[_0x1ae2f9(0x123)][_0x1ae2f9(0x28e)](_0x58b389[_0x1ae2f9(0x441)][_0x1ae2f9(0x2db)])[_0x1ae2f9(0x131)]();_0x1acd8d&&_0x1858f2&&this[_0x1ae2f9(0x222)](_0x1858f2[_0x1ae2f9(0x499)](),_0x1acd8d);}[_0xb893b1(0x529)](){const _0x2ba3a6=_0xb893b1;this[_0x2ba3a6(0x20f)]=!0x1;}};_0x1592bf=_0x289486([_0x112696(0x2,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x112696(0x3,_0x58b389[_0xb893b1(0x4ac)](_0x15453c)),_0x112696(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4['MemberService'])),_0x112696(0x5,_0x58b389[_0xb893b1(0x1d9)]),_0x112696(0x6,_0x58b389[_0xb893b1(0x1ec)]),_0x112696(0x7,_0x58b389[_0xb893b1(0x4ac)](_0x2d2223[_0xb893b1(0x283)]))],_0x1592bf);var _0x26c483=Object[_0xb893b1(0x1bc)],_0x514642=Object[_0xb893b1(0x490)],_0x359791=(_0x4a5b86,_0xf08346,_0x502fb5,_0x49bb80)=>{const _0x56f617=_0xb893b1;for(var _0x3caf3d=_0x49bb80>0x1?void 0x0:_0x49bb80?_0x514642(_0xf08346,_0x502fb5):_0xf08346,_0x5d3ad7=_0x4a5b86[_0x56f617(0x4d8)]-0x1,_0x1388ef;_0x5d3ad7>=0x0;_0x5d3ad7--)(_0x1388ef=_0x4a5b86[_0x5d3ad7])&&(_0x3caf3d=(_0x49bb80?_0x1388ef(_0xf08346,_0x502fb5,_0x3caf3d):_0x1388ef(_0x3caf3d))||_0x3caf3d);return _0x49bb80&&_0x3caf3d&&_0x26c483(_0xf08346,_0x502fb5,_0x3caf3d),_0x3caf3d;},_0x2373ff=(_0x194547,_0x38eaaa)=>(_0x658b71,_0x35baf2)=>_0x38eaaa(_0x658b71,_0x35baf2,_0x194547);let _0x57bda6=class extends _0x58b389[_0xb893b1(0xf8)]{constructor(_0x27c78a,_0x2e7fd0,_0x5e3d13){const _0x45f664=_0xb893b1;super(),_0xf1fe43(this,_0x45f664(0x415),new Map()),_0xf1fe43(this,_0x45f664(0x2c2),new _0x4655d9[(_0x45f664(0x4d6))]()),(this[_0x45f664(0x123)]=_0x27c78a,this[_0x45f664(0x126)]=_0x2e7fd0,this['_collabSessionService']=_0x5e3d13,this[_0x45f664(0x3e2)]());}[_0xb893b1(0x50d)](){const _0x46fb15=_0xb893b1;super['dispose'](),this['_entityInit$'][_0x46fb15(0x398)](),this[_0x46fb15(0x415)][_0x46fb15(0x3b7)](_0x448e18=>_0x448e18[_0x46fb15(0x50d)]());}['getCollabCursors$'](_0x4a2cb7){const _0xb69b4b=_0xb893b1;return this[_0xb69b4b(0x415)]['has'](_0x4a2cb7)?this[_0xb69b4b(0x415)][_0xb69b4b(0x19d)](_0x4a2cb7)[_0xb69b4b(0x2aa)]:this[_0xb69b4b(0x2c2)][_0xb69b4b(0x3ca)](_0x4655d9[_0xb69b4b(0x1ae)](_0x201c32=>_0x201c32['unitID']===_0x4a2cb7),_0x4655d9[_0xb69b4b(0x40e)](_0x5b5f9e=>_0x5b5f9e[_0xb69b4b(0x2aa)]));}[_0xb893b1(0x3e2)](){const _0x78f675=_0xb893b1;this[_0x78f675(0x123)][_0x78f675(0x2a1)](_0x58b389[_0x78f675(0x441)][_0x78f675(0x2db)])[_0x78f675(0x3ca)](_0x4655d9[_0x78f675(0x260)](this[_0x78f675(0x11c)]))['subscribe'](async _0x2325bd=>{const _0x55ef6e=_0x78f675,_0x599759=_0x2325bd[_0x55ef6e(0x2b3)](),_0x17ac20=await this['_startSheetCollabCursor'](_0x599759);this[_0x55ef6e(0x2c2)][_0x55ef6e(0x174)](_0x17ac20),this['_entities'][_0x55ef6e(0x1c2)](_0x599759,_0x17ac20);}),this['_univerInstanceService'][_0x78f675(0x2a1)](_0x58b389[_0x78f675(0x441)][_0x78f675(0x2d8)])[_0x78f675(0x3ca)](_0x4655d9[_0x78f675(0x260)](this['dispose$']))[_0x78f675(0x3ca)](_0x4655d9[_0x78f675(0x1ae)](_0x2430c4=>!_0x2430c4[_0x78f675(0x2b3)]()[_0x78f675(0x464)]('__')))[_0x78f675(0x1b6)](async _0x2043d9=>{const _0x4e825d=_0x78f675,_0x5a0c61=_0x2043d9[_0x4e825d(0x2b3)](),_0x51157e=await this['_startDocCollabCursor'](_0x5a0c61);this['_entityInit$'][_0x4e825d(0x174)](_0x51157e),this[_0x4e825d(0x415)]['set'](_0x5a0c61,_0x51157e);}),_0x4655d9[_0x78f675(0x1b3)](this[_0x78f675(0x123)][_0x78f675(0x227)](_0x58b389[_0x78f675(0x441)][_0x78f675(0x2d8)]),this[_0x78f675(0x123)][_0x78f675(0x227)](_0x58b389[_0x78f675(0x441)][_0x78f675(0x2db)]))[_0x78f675(0x3ca)](_0x4655d9[_0x78f675(0x260)](this[_0x78f675(0x11c)]))[_0x78f675(0x1b6)](_0x3bd96b=>{const _0x502359=_0x78f675,_0x264ede=_0x3bd96b[_0x502359(0x2b3)](),_0xa114a7=this[_0x502359(0x415)][_0x502359(0x19d)](_0x264ede);_0xa114a7&&(_0xa114a7[_0x502359(0x50d)](),this[_0x502359(0x415)][_0x502359(0x1d0)](_0x264ede));});}async[_0xb893b1(0x457)](_0x793f63){const _0x2d7d85=_0xb893b1,_0x14e7a8=await this[_0x2d7d85(0x4df)][_0x2d7d85(0x213)](_0x793f63),_0x21ea6f=this[_0x2d7d85(0x126)][_0x2d7d85(0x361)](_0x1592bf,_0x793f63,_0x14e7a8);return _0x21ea6f[_0x2d7d85(0x29f)](),_0x21ea6f;}async['_startDocCollabCursor'](_0x997f8d){const _0x1713e9=_0xb893b1,_0x9601d1=await this[_0x1713e9(0x4df)][_0x1713e9(0x213)](_0x997f8d),_0x20e67b=this['_injector']['createInstance'](_0x386a8f,_0x997f8d,_0x9601d1);return _0x20e67b[_0x1713e9(0x29f)](),_0x20e67b;}};_0x57bda6=_0x359791([_0x2373ff(0x0,_0x58b389[_0xb893b1(0x1d9)]),_0x2373ff(0x1,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x2373ff(0x2,_0x58b389['Inject'](_0x3b52c4['CollaborationSessionService']))],_0x57bda6);const _0x3ffba4=0x14,_0x3313d0=0xc8,_0x2fea2d=0x4,_0x2724a3=0x5;function _0xaae25b(_0x23be39,_0xb3f4d5){const _0x270531=_0xb893b1;let {radius:_0x1df36a,width:_0x366f7e,height:_0xc187b8}=_0xb3f4d5;_0x1df36a=_0x1df36a!=null?_0x1df36a:0x0,_0x366f7e=_0x366f7e!=null?_0x366f7e:0x1e,_0xc187b8=_0xc187b8!=null?_0xc187b8:0x1e;let _0x147a4d=0x0,_0x2597aa=0x0,_0x497175=0x0;_0x147a4d=_0x2597aa=_0x497175=Math[_0x270531(0x282)](_0x1df36a,_0x366f7e/0x2,_0xc187b8/0x2),_0x23be39[_0x270531(0x4c3)](),_0x23be39[_0x270531(0x2de)](_0x147a4d,0x0),_0x23be39[_0x270531(0x141)](_0x366f7e-_0x2597aa,0x0),_0x23be39[_0x270531(0x27b)](_0x366f7e-_0x2597aa,_0x2597aa,_0x2597aa,Math['PI']*0x3/0x2,0x0,!0x1),_0x23be39['lineTo'](_0x366f7e,_0xc187b8-_0x497175),_0x23be39[_0x270531(0x27b)](_0x366f7e-_0x497175,_0xc187b8-_0x497175,_0x497175,0x0,Math['PI']/0x2,!0x1),_0x23be39[_0x270531(0x141)](0x0,_0xc187b8),_0x23be39[_0x270531(0x141)](0x0,_0x147a4d),_0x23be39[_0x270531(0x27b)](_0x147a4d,_0x147a4d,_0x147a4d,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x23be39[_0x270531(0x4f6)](),_0xb3f4d5[_0x270531(0x256)]&&(_0x23be39['save'](),_0x23be39[_0x270531(0x25a)]=_0xb3f4d5[_0x270531(0x256)],_0xb3f4d5[_0x270531(0x48e)]===_0x270531(0x38c)?_0x23be39[_0x270531(0x256)](_0x270531(0x38c)):_0x23be39[_0x270531(0x256)](),_0x23be39[_0x270531(0x418)]());}class _0x4a4a28 extends _0x1c7683[_0xb893b1(0x30e)]{constructor(_0x457368,_0x38bff0){const _0x31a761=_0xb893b1;super(_0x457368,_0x38bff0),_0xf1fe43(this,_0x31a761(0x2d7)),_0xf1fe43(this,_0x31a761(0x271)),(this[_0x31a761(0x2d7)]=_0x38bff0==null?void 0x0:_0x38bff0[_0x31a761(0x2d7)],this[_0x31a761(0x271)]=_0x38bff0==null?void 0x0:_0x38bff0[_0x31a761(0x271)]);}static[_0xb893b1(0x179)](_0x2b189c,_0x3a33fe){const _0x11d7ff=_0xb893b1,{text:_0x7895d8,color:_0x4672df}=_0x3a33fe;_0x2b189c['save'](),_0x2b189c[_0x11d7ff(0x1ed)]=_0x11d7ff(0x28c);const _0x53d0e9=_0x2b189c[_0x11d7ff(0x4ab)](_0x7895d8)[_0x11d7ff(0x343)],_0x1f7489=Math[_0x11d7ff(0x282)](_0x53d0e9+0x2*_0x2fea2d,_0x3313d0);_0xaae25b(_0x2b189c,{'height':_0x3ffba4,'radius':0x4,'width':_0x1f7489,'fill':_0x4672df,'evented':!0x1}),_0x2b189c[_0x11d7ff(0x25a)]=_0x11d7ff(0x19b);const _0x38bc3c=_0x2fea2d,_0x4ba8ee=_0x3ffba4-_0x2724a3,_0x1d4190=_0x3313d0-0x2*_0x2fea2d;if(_0x53d0e9>_0x1d4190){let _0x25a206='',_0x3f3f5a=0x0;for(const _0x269015 of _0x7895d8){const _0x18fd00=_0x2b189c[_0x11d7ff(0x4ab)](_0x269015)[_0x11d7ff(0x343)];if(_0x3f3f5a+_0x18fd00<=_0x1d4190-_0x2b189c[_0x11d7ff(0x4ab)]('...')['width'])_0x25a206+=_0x269015,_0x3f3f5a+=_0x18fd00;else{_0x25a206+=_0x11d7ff(0x201);break;}}_0x2b189c[_0x11d7ff(0x353)](_0x25a206,_0x38bc3c,_0x4ba8ee);}else _0x2b189c[_0x11d7ff(0x353)](_0x7895d8,_0x38bc3c,_0x4ba8ee);_0x2b189c[_0x11d7ff(0x418)]();}[_0xb893b1(0x2f1)](_0x35b63d){const _0x3f2115=_0xb893b1;_0x4a4a28[_0x3f2115(0x179)](_0x35b63d,this);}}const _0x42b098=_0xb893b1(0x2a9),_0x1edbd9=_0xb893b1(0x1b8),_0x3881bd=_0xb893b1(0x14d),_0x19bc83=0x6,_0x36e10f=1.5,_0x235716=0x4,_0x1491cd=1.5,_0x2d6186=_0xb893b1(0x527);class _0x9f90dd{constructor(_0x3f31db,_0x27360a,_0x5a725f,_0x17a6b7){const _0xe1f3ac=_0xb893b1;_0xf1fe43(this,'_shapes',[]),_0xf1fe43(this,_0xe1f3ac(0x2ad),null),_0xf1fe43(this,'_textBubble',null),_0xf1fe43(this,_0xe1f3ac(0x46e),null),_0xf1fe43(this,'_hideTimer',null),_0xf1fe43(this,_0xe1f3ac(0x167),null),(this[_0xe1f3ac(0x1d8)]=_0x3f31db,this[_0xe1f3ac(0x534)]=_0x27360a,this[_0xe1f3ac(0x28f)]=_0x5a725f,this[_0xe1f3ac(0x1db)]=_0x17a6b7,this[_0xe1f3ac(0x17c)]());}set['_hover'](_0x414c3f){const _0x144cb8=_0xb893b1;_0x414c3f?(this[_0x144cb8(0x46e)]&&this['_anchorDot']['hide'](),this[_0x144cb8(0x31e)]&&this[_0x144cb8(0x31e)]['show']()):(this[_0x144cb8(0x46e)]&&this['_anchorDot'][_0x144cb8(0x250)](),this[_0x144cb8(0x31e)]&&this[_0x144cb8(0x31e)][_0x144cb8(0x452)]());}[_0xb893b1(0x50d)](){const _0x5bbebf=_0xb893b1;for(const _0x34901f of this[_0x5bbebf(0x409)])_0x34901f['dispose']();this[_0x5bbebf(0x31e)]&&this['_textBubble']['dispose'](),this['_anchorDot']&&this[_0x5bbebf(0x46e)]['dispose'](),this[_0x5bbebf(0x2ad)]&&this[_0x5bbebf(0x2ad)]['dispose'](),this['_eventUnsubscribe']&&this[_0x5bbebf(0x167)]();}[_0xb893b1(0x17c)](){const _0x66b9fe=_0xb893b1;var _0x5da3ee;const {_docSkeleton:_0x3fa204,_document:_0xe860d6}=this,{color:_0x5fffd,name:_0x24c9a1,ranges:_0x53ea8a}=this[_0x66b9fe(0x1d8)],_0x2103ba=_0xe860d6[_0x66b9fe(0x133)](),{docsLeft:_0x21a3ed,docsTop:_0x46b704}=_0x2103ba,_0x3561e4=new _0x24db92[(_0x66b9fe(0x399))](_0x2103ba,_0x3fa204);for(const {startOffset:_0x510279,endOffset:_0x122e6a,rangeType:_0x47aeab,segmentId:_0x26ed2b,segmentPage:_0x2fc00f,collapsed:_0x4a44bb,isActive:_0x39764c}of _0x53ea8a){const _0x48cf6a=_0x3fa204['findNodePositionByCharIndex'](_0x510279,!0x0,_0x26ed2b,_0x2fc00f);let _0x4d0609=_0x3fa204[_0x66b9fe(0x3e1)](_0x122e6a,!0x0,_0x26ed2b,_0x2fc00f);if(_0x4d0609==null&&(_0x4d0609=_0x3fa204[_0x66b9fe(0x3e1)](_0x122e6a-0x1,!0x1,_0x26ed2b,_0x2fc00f)),_0x39764c){const {contentBoxPointGroup:_0x63ae99}=_0x3561e4['getRangePointData'](_0x4d0609,_0x4d0609);if(_0x63ae99[_0x66b9fe(0x4d8)]===0x0)continue;this[_0x66b9fe(0x4ec)](_0x5fffd,_0x63ae99,_0x21a3ed,_0x46b704,_0x24c9a1),this['_eventUnsubscribe']=this[_0x66b9fe(0x281)]();}if(!_0x4a44bb&&_0x48cf6a&&_0x4d0609){if(_0x47aeab===_0x58b389['DOC_RANGE_TYPE'][_0x66b9fe(0x1de)]){const _0x4a6154=new _0x24db92[(_0x66b9fe(0x2cf))](_0x2103ba,_0x3fa204),{pointGroup:_0x4eafd7}=(_0x5da3ee=_0x4a6154['getRangePointData'](_0x48cf6a,_0x4d0609))!=null?_0x5da3ee:{};if(_0x4eafd7==null||_0x4eafd7[_0x66b9fe(0x4d8)]===0x0)continue;this['_drawRectRange'](_0x5fffd,_0x4eafd7,_0x21a3ed,_0x46b704);}else{const {borderBoxPointGroup:_0x509d21}=_0x3561e4[_0x66b9fe(0x2fb)](_0x48cf6a,_0x4d0609);if(_0x509d21[_0x66b9fe(0x4d8)]===0x0)continue;this[_0x66b9fe(0x46b)](_0x5fffd,_0x509d21,_0x21a3ed,_0x46b704);}}}}[_0xb893b1(0x4ec)](_0x1e310f,_0x595101,_0x3571e3,_0x26314d,_0xe6e956){const _0xa8300d=_0xb893b1,_0x18234f=this[_0xa8300d(0x3bd)](_0x595101),{left:_0xc6347a,top:_0x9f78c9,height:_0x3c5ab6}=_0x18234f,_0x4f376a=this[_0xa8300d(0x390)](),_0x3b4cee=_0x1491cd/_0x4f376a,_0x3bc954=new _0x1c7683[(_0xa8300d(0x3fd))](_0x42b098+_0x58b389[_0xa8300d(0x36e)]['generateRandomId'](_0x19bc83),{'left':_0xc6347a+_0x3571e3-_0x3b4cee,'top':_0x9f78c9+_0x26314d,'height':_0x3c5ab6,'width':_0x36e10f,'fill':_0x1e310f||_0x1c7683[_0xa8300d(0x4ad)](_0x58b389['COLORS'][_0xa8300d(0x26c)],0x0),'strokeWidth':_0x3b4cee,'stroke':_0x2d6186,'evented':!0x0});this[_0xa8300d(0x2ad)]=_0x3bc954,this[_0xa8300d(0x534)][_0xa8300d(0x2a8)](_0x3bc954,_0x24db92[_0xa8300d(0x50f)]);const _0x517e4b=new _0x1c7683[(_0xa8300d(0x3fd))](_0x42b098+_0x58b389[_0xa8300d(0x36e)]['generateRandomId'](_0x19bc83),{'left':_0xc6347a+_0x3571e3-_0x3b4cee,'top':_0x9f78c9+_0x26314d-_0x235716/0x2,'height':_0x235716,'width':_0x235716,'fill':_0x1e310f||_0x1c7683['getColor'](_0x58b389['COLORS'][_0xa8300d(0x26c)],0x0),'strokeWidth':0x0,'stroke':_0x1e310f||_0x1c7683[_0xa8300d(0x4ad)](_0x58b389[_0xa8300d(0x4c7)]['black'],0x0),'evented':!0x1});this[_0xa8300d(0x46e)]=_0x517e4b,this[_0xa8300d(0x534)][_0xa8300d(0x2a8)](_0x517e4b,_0x24db92[_0xa8300d(0x50f)]);const _0x13d48a=new _0x4a4a28(_0x42b098+_0x58b389['Tools'][_0xa8300d(0x3e0)](_0x19bc83),{'left':_0xc6347a+_0x3571e3-_0x3b4cee,'top':_0x9f78c9+_0x26314d-_0x3ffba4,'text':_0xe6e956,'color':_0x1e310f});this[_0xa8300d(0x31e)]=_0x13d48a,this[_0xa8300d(0x534)][_0xa8300d(0x2a8)](_0x13d48a,_0x24db92[_0xa8300d(0x50f)]),this[_0xa8300d(0x4f0)]=!0x1;}[_0xb893b1(0x281)](){const _0x2d8aad=_0xb893b1,_0x5536fe=this[_0x2d8aad(0x2ad)][_0x2d8aad(0x365)][_0x2d8aad(0x411)](()=>{const _0x17fc86=_0x2d8aad;this[_0x17fc86(0x4f0)]=!0x0;}),_0x5e24a0=this[_0x2d8aad(0x2ad)][_0x2d8aad(0x2da)][_0x2d8aad(0x411)](()=>{const _0x307780=_0x2d8aad;this[_0x307780(0x13f)]&&clearTimeout(this[_0x307780(0x13f)]),this[_0x307780(0x13f)]=setTimeout(()=>{const _0x209eb0=_0x307780;this[_0x209eb0(0x4f0)]=!0x1;},0x7d0);});return()=>{const _0x1c4628=_0x2d8aad;_0x5536fe['unsubscribe'](),_0x5e24a0[_0x1c4628(0x49e)]();};}['_drawTextRange'](_0x4bfc48,_0x543f5e,_0x1fea8c,_0x5a6469){const _0x514391=_0xb893b1,_0x113fca=new _0x58b389[(_0x514391(0x304))](_0x4bfc48)[_0x514391(0x4bd)](0.2)[_0x514391(0x27f)](),_0x16a807=new _0x1c7683[(_0x514391(0x2fc))](_0x1edbd9+_0x58b389['Tools'][_0x514391(0x3e0)](_0x19bc83),{'pointsGroup':_0x543f5e,'fill':_0x113fca||_0x1c7683[_0x514391(0x4ad)](_0x58b389[_0x514391(0x4c7)][_0x514391(0x26c)],0.2),'left':_0x1fea8c,'top':_0x5a6469,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x16a807),this[_0x514391(0x534)][_0x514391(0x2a8)](_0x16a807,_0x24db92[_0x514391(0x50f)]);}[_0xb893b1(0x190)](_0x5b14d9,_0x177d8a,_0x20935b,_0x3a741e){const _0x5cfd80=_0xb893b1,_0x26669a=new _0x58b389['ColorKit'](_0x5b14d9)[_0x5cfd80(0x4bd)](0.2)[_0x5cfd80(0x27f)](),_0x43b512=new _0x1c7683['RegularPolygon'](_0x3881bd+_0x58b389['Tools'][_0x5cfd80(0x3e0)](_0x19bc83),{'pointsGroup':_0x177d8a,'fill':_0x26669a||_0x1c7683['getColor'](_0x58b389[_0x5cfd80(0x4c7)][_0x5cfd80(0x26c)],0.2),'left':_0x20935b,'top':_0x3a741e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5cfd80(0x409)][_0x5cfd80(0x428)](_0x43b512),this[_0x5cfd80(0x534)][_0x5cfd80(0x2a8)](_0x43b512,_0x24db92[_0x5cfd80(0x50f)]);}[_0xb893b1(0x3bd)](_0x573da8){const _0x5415d6=_0x573da8[0x0],_0x3eb5aa=_0x5415d6[0x0],_0x226101=_0x5415d6[0x2],{x:_0x1059f3,y:_0x52bd78}=_0x3eb5aa,{x:_0x12ab16,y:_0x193658}=_0x226101;return{'left':_0x1059f3,'top':_0x52bd78,'width':_0x12ab16-_0x1059f3,'height':_0x193658-_0x52bd78};}[_0xb893b1(0x390)](){const _0x586935=_0xb893b1,{scaleX:_0x15c066,scaleY:_0x35c12f}=this[_0x586935(0x534)][_0x586935(0x3a3)]();return Math[_0x586935(0x2b0)](_0x15c066,_0x35c12f);}}var _0x15bf26=Object[_0xb893b1(0x1bc)],_0x2ffbbb=Object['getOwnPropertyDescriptor'],_0x18bba1=(_0x5f1f83,_0x25e403,_0x43962b,_0x4e6cbe)=>{const _0x2dabbb=_0xb893b1;for(var _0x1cc3dc=_0x4e6cbe>0x1?void 0x0:_0x4e6cbe?_0x2ffbbb(_0x25e403,_0x43962b):_0x25e403,_0x153dac=_0x5f1f83[_0x2dabbb(0x4d8)]-0x1,_0x513217;_0x153dac>=0x0;_0x153dac--)(_0x513217=_0x5f1f83[_0x153dac])&&(_0x1cc3dc=(_0x4e6cbe?_0x513217(_0x25e403,_0x43962b,_0x1cc3dc):_0x513217(_0x1cc3dc))||_0x1cc3dc);return _0x4e6cbe&&_0x1cc3dc&&_0x15bf26(_0x25e403,_0x43962b,_0x1cc3dc),_0x1cc3dc;},_0x5b8f78=(_0x1419fc,_0x5ba7ea)=>(_0xc2c5e0,_0x1ce505)=>_0x5ba7ea(_0xc2c5e0,_0x1ce505,_0x1419fc);let _0x4f4454=class extends _0x58b389[_0xb893b1(0xf8)]{constructor(_0x35db8e,_0x3108bc,_0x514ef4,_0x36fff3,_0x581c6d){const _0x9d441c=_0xb893b1;super(),_0xf1fe43(this,'_cursorShapes',[]),_0xf1fe43(this,_0x9d441c(0x113),[]),(this['_context']=_0x35db8e,this[_0x9d441c(0x15b)]=_0x3108bc,this['_collabCursorController']=_0x514ef4,this['_commandService']=_0x36fff3,this['_themeService']=_0x581c6d,this[_0x9d441c(0x3e2)]());}['_init'](){const _0x64d5bb=_0xb893b1,_0x5553f6=this[_0x64d5bb(0x40a)][_0x64d5bb(0x458)],_0x2f4b78=this['_docSkeletonManagerService'];this[_0x64d5bb(0x14b)](_0x4655d9[_0x64d5bb(0x520)]([this[_0x64d5bb(0x48b)][_0x64d5bb(0x33e)](_0x5553f6),this[_0x64d5bb(0x198)][_0x64d5bb(0x3f1)]])[_0x64d5bb(0x3ca)](_0x5d8a56[_0x64d5bb(0x44d)](([_0x467acf,_0xc5d49b])=>({'skeleton':_0x2f4b78[_0x64d5bb(0x501)](),'cursors':[..._0x467acf['values']()][_0x64d5bb(0x358)](_0x549594=>({..._0x549594,'color':_0xc5d49b[_0x549594[_0x64d5bb(0x2d7)]]}))})))['subscribe'](_0x160418=>{const _0x553cea=_0x64d5bb;if(this[_0x553cea(0x150)](),_0x160418){const {skeleton:_0x109b8b,cursors:_0x5909ce}=_0x160418;this['_updateCollabCursors'](_0x109b8b,_0x5909ce);}})),this['_initResize'](),this[_0x64d5bb(0x1fa)]();}['_updateCollabCursors'](_0x1bc420,_0x3dffa4){const _0x469650=_0xb893b1,{scene:_0x32341a,mainComponent:_0x56f3a5}=this[_0x469650(0x40a)],_0x4925e6=_0x3dffa4[_0x469650(0x44d)](_0x222e11=>new _0x9f90dd(_0x222e11,_0x32341a,_0x1bc420,_0x56f3a5));this[_0x469650(0x1f2)]=_0x4925e6,this[_0x469650(0x113)]=_0x3dffa4;}[_0xb893b1(0x186)](){const _0x777499=_0xb893b1;this['_removeCollabCursors']();const {scene:_0x14aadc,mainComponent:_0x95a974}=this[_0x777499(0x40a)],_0xed9fac=this[_0x777499(0x15b)]['getSkeleton'](),_0x3c3955=this[_0x777499(0x113)][_0x777499(0x44d)](_0x13e6b3=>new _0x9f90dd(_0x13e6b3,_0x14aadc,_0xed9fac,_0x95a974));this[_0x777499(0x1f2)]=_0x3c3955;}[_0xb893b1(0x150)](){const _0x4f7de2=_0xb893b1;this[_0x4f7de2(0x1f2)]['forEach'](_0x1914d4=>_0x1914d4[_0x4f7de2(0x50d)]()),this[_0x4f7de2(0x1f2)]=[];}['_initCommandExecutedListener'](){const _0x2e092c=_0xb893b1,_0x4c2c03=[_0x24db92[_0x2e092c(0x469)]['id']];this['disposeWithMe'](this[_0x2e092c(0x4af)]['onCommandExecuted'](_0x3d6ec0=>{const _0x415735=_0x2e092c;_0x4c2c03[_0x415735(0x532)](_0x3d6ec0['id'])&&_0x3d6ec0[_0x415735(0x16b)][_0x415735(0x458)]===this['_context'][_0x415735(0x458)]&&this[_0x415735(0x186)]();}));}['_initResize'](){const _0x3c21df=_0xb893b1;this['disposeWithMe'](_0x58b389[_0x3c21df(0x4f1)](this[_0x3c21df(0x40a)]['engine'][_0x3c21df(0x285)])[_0x3c21df(0x3ca)](_0x5d8a56[_0x3c21df(0x1ae)](_0x119703=>_0x119703[_0x3c21df(0x191)]===_0x1c7683[_0x3c21df(0x369)][_0x3c21df(0x274)]),_0x5d8a56[_0x3c21df(0x103)](0x10))[_0x3c21df(0x1b6)](()=>{const _0x462284=_0x3c21df;this[_0x462284(0x186)]();}));}};_0x4f4454=_0x18bba1([_0x5b8f78(0x1,_0x58b389['Inject'](_0x124506[_0xb893b1(0x21d)])),_0x5b8f78(0x2,_0x58b389[_0xb893b1(0x4ac)](_0x57bda6)),_0x5b8f78(0x3,_0x58b389[_0xb893b1(0x1ec)]),_0x5b8f78(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x58b389['ThemeService']))],_0x4f4454);const _0x339c5b=0x1,_0xd2bb74=1.5;class _0x5bcf49 extends _0x1c7683['Shape']{constructor(_0x4299d2,_0x4db692){const _0x1063e0=_0xb893b1;super(_0x4299d2,_0x4db692),_0xf1fe43(this,_0x1063e0(0x4aa)),_0xf1fe43(this,_0x1063e0(0x10f),!0x1),_0xf1fe43(this,'_range'),_0xf1fe43(this,'_name',''),_0xf1fe43(this,_0x1063e0(0x366),_0x1063e0(0x2d9)),_0xf1fe43(this,_0x1063e0(0x2e9)),(_0x4db692&&this['setShapeProps'](_0x4db692),this[_0x1063e0(0x365)][_0x1063e0(0x411)](()=>this[_0x1063e0(0x455)]({'hovered':!0x0})),this[_0x1063e0(0x2da)][_0x1063e0(0x411)](()=>this[_0x1063e0(0x455)]({'hovered':!0x1})));}[_0xb893b1(0x455)](_0x32f451){const _0x510471=_0xb893b1;var _0x188933,_0x6704b0,_0x189c50,_0x5d6ac0,_0x41bde5,_0x4a5ab3;this['_color']=(_0x188933=_0x32f451[_0x510471(0x2d7)])!=null?_0x188933:this[_0x510471(0x4aa)],this[_0x510471(0x10f)]=(_0x6704b0=_0x32f451[_0x510471(0x3cd)])!=null?_0x6704b0:this[_0x510471(0x10f)],this['_range']=(_0x189c50=_0x32f451[_0x510471(0x385)])!=null?_0x189c50:this[_0x510471(0x258)],this['_name']=(_0x5d6ac0=_0x32f451[_0x510471(0x4e3)])!=null?_0x5d6ac0:this['_name'],this[_0x510471(0x366)]=(_0x41bde5=_0x32f451['labelPosition'])!=null?_0x41bde5:this[_0x510471(0x366)],this[_0x510471(0x2e9)]=(_0x4a5ab3=_0x32f451[_0x510471(0x1ad)])!=null?_0x4a5ab3:this['_backgroundColor'],this[_0x510471(0x1fe)]({'width':_0x32f451['width'],'height':_0x32f451[_0x510471(0x2ed)]});}['onMouseMove'](_0x471ba3){const _0xeb6b36=_0xb893b1,{row:_0x29fedb,column:_0x124ce3}=_0x471ba3;if(_0x29fedb>=this[_0xeb6b36(0x258)][_0xeb6b36(0x333)]&&_0x29fedb<=this['_range'][_0xeb6b36(0x14a)]&&_0x124ce3>=this[_0xeb6b36(0x258)][_0xeb6b36(0x36a)]&&_0x124ce3<=this['_range'][_0xeb6b36(0x4b3)]){this[_0xeb6b36(0x455)]({'hovered':!0x0});return;}this[_0xeb6b36(0x455)]({'hovered':!0x1});}[_0xb893b1(0x319)](_0x2f4f95){return!0x1;}[_0xb893b1(0x2f1)](_0x1b4028){const _0x4902e2=_0xb893b1;_0x1c7683[_0x4902e2(0x3fd)]['drawWith'](_0x1b4028,{'width':this[_0x4902e2(0x343)],'height':this[_0x4902e2(0x2ed)],'strokeWidth':_0xd2bb74,'stroke':this[_0x4902e2(0x4aa)],'evented':!0x1,'fill':this[_0x4902e2(0x2e9)]}),this[_0x4902e2(0x10f)]&&(_0x1b4028['save'](),_0x1b4028[_0x4902e2(0x3b8)](0x1,0x0,0x0,0x1,this[_0x4902e2(0x343)],this[_0x4902e2(0x366)]===_0x4902e2(0x188)?0x0:-_0x3ffba4),_0x4a4a28[_0x4902e2(0x179)](_0x1b4028,{'text':this[_0x4902e2(0x367)],'color':this['_color']}),_0x1b4028['restore']());}}var _0x2a7393=Object[_0xb893b1(0x1bc)],_0x49f61a=Object[_0xb893b1(0x490)],_0x5dfa9e=(_0x14ccc3,_0x18a926,_0x45c115,_0x5c1824)=>{const _0x4335d7=_0xb893b1;for(var _0x5f4d3d=_0x5c1824>0x1?void 0x0:_0x5c1824?_0x49f61a(_0x18a926,_0x45c115):_0x18a926,_0x13dc63=_0x14ccc3[_0x4335d7(0x4d8)]-0x1,_0x4b5a76;_0x13dc63>=0x0;_0x13dc63--)(_0x4b5a76=_0x14ccc3[_0x13dc63])&&(_0x5f4d3d=(_0x5c1824?_0x4b5a76(_0x18a926,_0x45c115,_0x5f4d3d):_0x4b5a76(_0x5f4d3d))||_0x5f4d3d);return _0x5c1824&&_0x5f4d3d&&_0x2a7393(_0x18a926,_0x45c115,_0x5f4d3d),_0x5f4d3d;},_0x224d52=(_0x3f47e9,_0x5550c8)=>(_0x179b77,_0x1590da)=>_0x5550c8(_0x179b77,_0x1590da,_0x3f47e9);const _0x24516c=0x1389;let _0x3b6e5d=class extends _0x58b389[_0xb893b1(0xf8)]{constructor(_0x125394,_0x3f8949,_0x3cb01c,_0x545875){const _0x498674=_0xb893b1;super(),_0xf1fe43(this,'_cursors',new Set()),_0xf1fe43(this,_0x498674(0x1a0),null),(this[_0x498674(0x40a)]=_0x125394,this['_sheetSkeletonManagerService']=_0x3f8949,this[_0x498674(0x48b)]=_0x3cb01c,this[_0x498674(0x198)]=_0x545875,this[_0x498674(0x3e2)]());}[_0xb893b1(0x3e2)](){const _0x1d631c=_0xb893b1;this[_0x1d631c(0x3ec)][_0x1d631c(0x39b)][_0x1d631c(0x3ca)](_0x5d8a56[_0x1d631c(0x260)](this[_0x1d631c(0x11c)]),_0x5d8a56[_0x1d631c(0x40e)](_0x3d3dd7=>{const _0x5d21c6=_0x1d631c;if(_0x3d3dd7){const _0x25be31=_0x3d3dd7[_0x5d21c6(0x214)];return _0x4655d9[_0x5d21c6(0x520)](this['_collabCursorController']['getCollabCursors$'](this[_0x5d21c6(0x40a)][_0x5d21c6(0x458)]),this['_themeService'][_0x5d21c6(0x3f1)])[_0x5d21c6(0x3ca)](_0x5d8a56[_0x5d21c6(0x44d)](([_0x34465d,_0x52b55c])=>{const _0x70d3e9=_0x5d21c6,_0x1ca21e=new Map();return _0x34465d[_0x70d3e9(0x3b7)]((_0x529b44,_0x332cdd)=>{const _0x14fd31=_0x70d3e9;if(_0x529b44[_0x14fd31(0x3c2)]===_0x25be31){const _0x195a57={..._0x529b44};_0x195a57[_0x14fd31(0x2d7)]=_0x52b55c[_0x529b44['color']],_0x1ca21e[_0x14fd31(0x1c2)](_0x332cdd,_0x195a57);}}),{'skeleton':_0x3d3dd7,'cursors':_0x1ca21e};}));}return _0x4655d9['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5ba477,cursors:_0xf1255c})=>{const _0x28129a=_0x1d631c;this['_removeCollabCursors'](),_0x5ba477&&this[_0x28129a(0x21a)](_0x5ba477,_0xf1255c);}),this[_0x1d631c(0x3ec)][_0x1d631c(0x39b)]['subscribe'](_0x115c7f=>{const _0x24caf7=_0x1d631c;if(_0x115c7f==null)return;const {skeleton:_0x325a12}=_0x115c7f,{scene:_0x4d39a4}=this['_context'];_0x4d39a4[_0x24caf7(0x24c)][_0x24caf7(0x411)](_0x58b389[_0x24caf7(0x35d)](_0x26651f=>{const _0x4e7363=_0x24caf7;var _0x1cf52e,_0x50287a;const {offsetX:_0x50d8a2,offsetY:_0x55eac4}=_0x26651f,{x:_0x1acb22,y:_0x131ca0}=_0x4d39a4[_0x4e7363(0x25f)](_0x1c7683['Vector2']['FromArray']([_0x50d8a2,_0x55eac4])),{scaleX:_0x17d691,scaleY:_0x230a6c}=_0x4d39a4[_0x4e7363(0x3a3)](),_0x1bfa5d=_0x4d39a4['getViewport'](_0x85ae1c[_0x4e7363(0x53a)][_0x4e7363(0x21b)]),_0x52225b=_0x4d39a4[_0x4e7363(0x1e7)](_0x1c7683['Vector2'][_0x4e7363(0x242)]([_0x1acb22,_0x131ca0]),_0x1bfa5d),_0x5bc974=_0x325a12['getCellPositionByOffset'](_0x50d8a2,_0x55eac4,_0x17d691,_0x230a6c,_0x52225b);((_0x1cf52e=this[_0x4e7363(0x1a0)])==null?void 0x0:_0x1cf52e[_0x4e7363(0x3ac)])===_0x5bc974[_0x4e7363(0x3ac)]&&((_0x50287a=this['_lastPointer'])==null?void 0x0:_0x50287a['row'])===_0x5bc974[_0x4e7363(0x12d)]||this[_0x4e7363(0x113)][_0x4e7363(0x3b7)](_0x5aa3e9=>{const _0x2fa879=_0x4e7363;_0x5aa3e9[_0x2fa879(0x51e)](_0x5bc974);});},0x64));});}[_0xb893b1(0x21a)](_0x5288f8,_0xfea825){const _0x4a7713=_0xb893b1;var _0x235ad5;const _0x55d320=(_0x235ad5=this['_sheetSkeletonManagerService'][_0x4a7713(0x4f9)]())==null?void 0x0:_0x235ad5[_0x4a7713(0x335)];if(!_0x55d320)return;const _0x1c0cff=this[_0x4a7713(0x2fa)]();if(!_0x1c0cff)return;this[_0x4a7713(0x113)][_0x4a7713(0x3b7)](_0x1f8c5e=>{const _0xe1a9f0=_0x4a7713;_0x1f8c5e[_0xe1a9f0(0x278)]();});const {scene:_0x145eee}=_0x1c0cff,_0x13a56c=_0x4684f6(Array[_0x4a7713(0x169)](_0xfea825[_0x4a7713(0x2cb)]()))[_0x4a7713(0x44d)](_0x2c0e9e=>{const _0x1ad642=_0x4a7713,{color:_0x415d8b,range:_0x40ab9d,name:_0x510de9,selection:_0x3e18ae,sheetID:_0x39cc12}=_0x2c0e9e,{startColumn:_0x409bf9,startRow:_0x15206c,endColumn:_0xa04b8b,endRow:_0x2f4991}=_0x40ab9d,_0x29f39d=_0x85ae1c[_0x1ad642(0x461)](_0x15206c,_0x409bf9,_0x145eee,_0x55d320),_0x538569=_0x85ae1c[_0x1ad642(0x461)](_0x2f4991,_0xa04b8b,_0x145eee,_0x55d320),{columnHeaderHeightAndMarginTop:_0x1808d4}=_0x55d320,{startX:_0x1c8d3d,startY:_0x47b0ee}=_0x29f39d,{endX:_0x3998e5,endY:_0xb213e2}=_0x538569,_0x1fb0b7=_0x3998e5-_0x1c8d3d,_0x453486=_0xb213e2-_0x47b0ee,_0x2140ab={'labelPosition':_0x47b0ee-_0x1808d4>=_0x3ffba4?_0x1ad642(0x2d9):_0x1ad642(0x188),'sheetID':_0x39cc12,'range':_0x40ab9d,'color':_0x415d8b,'name':_0x510de9,'selection':_0x3e18ae,'left':_0x1c8d3d,'top':_0x47b0ee,'width':_0x1fb0b7,'height':_0x453486,'evented':!0x1,'zIndex':_0x24516c};return new _0x5bcf49(_0x510de9,_0x2140ab);});_0x145eee['addObjects'](_0x13a56c,_0x339c5b),this[_0x4a7713(0x113)]=new Set(_0x13a56c);}[_0xb893b1(0x150)](){const _0x58e589=_0xb893b1;var _0x48ad48;(_0x48ad48=this[_0x58e589(0x113)])==null||_0x48ad48[_0x58e589(0x3b7)](_0x2e28c1=>_0x2e28c1[_0x58e589(0x50d)]());}['_getSheetObject'](){const _0x3ae296=_0xb893b1;return _0x85ae1c[_0x3ae296(0x475)](this[_0x3ae296(0x40a)][_0x3ae296(0x38f)],this[_0x3ae296(0x40a)]);}};_0x3b6e5d=_0x5dfa9e([_0x224d52(0x1,_0x58b389[_0xb893b1(0x4ac)](_0x85ae1c[_0xb893b1(0x4a3)])),_0x224d52(0x2,_0x58b389[_0xb893b1(0x4ac)](_0x57bda6)),_0x224d52(0x3,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x4a7)]))],_0x3b6e5d);function _0x4684f6(_0x56d6a8){const _0x2d4487=_0xb893b1,_0x2160a3=new Map();return _0x56d6a8[_0x2d4487(0x3b7)](_0x1f84cf=>{const _0x343934=_0x2d4487;if(_0x2160a3[_0x343934(0x2dc)](_0x1f84cf[_0x343934(0x44c)])){const _0x33356f=_0x2160a3[_0x343934(0x19d)](_0x1f84cf[_0x343934(0x44c)]);_0x33356f[_0x343934(0x4e3)]+=',\x20'+_0x1f84cf[_0x343934(0x4e3)];}else _0x2160a3[_0x343934(0x1c2)](_0x1f84cf[_0x343934(0x44c)],_0x1f84cf);}),Array['from'](_0x2160a3[_0x2d4487(0x2cb)]());}var _0x355dec=function(){const _0x562818=_0xb893b1;return _0x355dec=Object['assign']||function(_0x373595){const _0x1ed08c=_0x104b;for(var _0x408955,_0x42bf88=0x1,_0x26430e=arguments[_0x1ed08c(0x4d8)];_0x42bf88<_0x26430e;_0x42bf88++){_0x408955=arguments[_0x42bf88];for(var _0x2aaa74 in _0x408955)Object[_0x1ed08c(0x436)]['hasOwnProperty']['call'](_0x408955,_0x2aaa74)&&(_0x373595[_0x2aaa74]=_0x408955[_0x2aaa74]);}return _0x373595;},_0x355dec[_0x562818(0x496)](this,arguments);},_0x2f6ea0=function(_0x137312,_0x18604d){const _0x40f497=_0xb893b1;var _0x22824e={};for(var _0x2cb467 in _0x137312)Object[_0x40f497(0x436)][_0x40f497(0x480)][_0x40f497(0x4a6)](_0x137312,_0x2cb467)&&_0x18604d[_0x40f497(0x3c8)](_0x2cb467)<0x0&&(_0x22824e[_0x2cb467]=_0x137312[_0x2cb467]);if(_0x137312!=null&&typeof Object[_0x40f497(0x24b)]==_0x40f497(0x34d)){for(var _0x29e202=0x0,_0x2cb467=Object['getOwnPropertySymbols'](_0x137312);_0x29e202<_0x2cb467[_0x40f497(0x4d8)];_0x29e202++)_0x18604d['indexOf'](_0x2cb467[_0x29e202])<0x0&&Object[_0x40f497(0x436)][_0x40f497(0x49b)][_0x40f497(0x4a6)](_0x137312,_0x2cb467[_0x29e202])&&(_0x22824e[_0x2cb467[_0x29e202]]=_0x137312[_0x2cb467[_0x29e202]]);}return _0x22824e;},_0x1de426=_0x4bfab6['forwardRef'](function(_0x3d1350,_0x2515ee){const _0x1b0ff3=_0xb893b1;var _0x8a3616=_0x3d1350[_0x1b0ff3(0x159)],_0xc8f30e=_0x3d1350['id'],_0x4203b6=_0x3d1350['className'],_0x5885e5=_0x3d1350['extend'],_0x1d932b=_0x2f6ea0(_0x3d1350,[_0x1b0ff3(0x159),'id',_0x1b0ff3(0x211),_0x1b0ff3(0x2e5)]),_0x26d165=_0x1b0ff3(0x317)['concat'](_0xc8f30e,'\x20')[_0x1b0ff3(0x412)](_0x4203b6||'')[_0x1b0ff3(0x1e1)](),_0x3043bd=_0x4bfab6[_0x1b0ff3(0x502)]('_'[_0x1b0ff3(0x412)](_0x151d00()));return _0x36e689(_0x8a3616,''[_0x1b0ff3(0x412)](_0xc8f30e),{'defIds':_0x8a3616[_0x1b0ff3(0x483)],'idSuffix':_0x3043bd[_0x1b0ff3(0x2a6)]},_0x355dec({'ref':_0x2515ee,'className':_0x26d165},_0x1d932b),_0x5885e5);});function _0x36e689(_0x2cbd21,_0x4cb756,_0x6693bc,_0x5dd57a,_0x47d715){const _0x4a0e14=_0xb893b1;return _0x4bfab6[_0x4a0e14(0x439)](_0x2cbd21[_0x4a0e14(0x1c4)],_0x355dec(_0x355dec({'key':_0x4cb756},_0x3ad62c(_0x2cbd21,_0x6693bc,_0x47d715)),_0x5dd57a),(_0xb45ae8(_0x2cbd21,_0x6693bc)[_0x4a0e14(0x37f)]||[])[_0x4a0e14(0x44d)](function(_0x5e7fab,_0x5593bf){const _0x1886ec=_0x4a0e14;return _0x36e689(_0x5e7fab,''[_0x1886ec(0x412)](_0x4cb756,'-')['concat'](_0x2cbd21[_0x1886ec(0x1c4)],'-')[_0x1886ec(0x412)](_0x5593bf),_0x6693bc,void 0x0,_0x47d715);}));}function _0x3ad62c(_0x351fd8,_0x341f95,_0x406790){const _0x3fa928=_0xb893b1;var _0x3b8a77=_0x355dec({},_0x351fd8['attrs']);_0x406790!=null&&_0x406790['colorChannel1']&&_0x3b8a77[_0x3fa928(0x256)]===_0x3fa928(0x1eb)&&(_0x3b8a77['fill']=_0x406790[_0x3fa928(0x1eb)]);var _0x31d8ce=_0x341f95[_0x3fa928(0x483)];return!_0x31d8ce||_0x31d8ce['length']===0x0||(_0x351fd8[_0x3fa928(0x1c4)]==='use'&&_0x3b8a77[_0x3fa928(0x2f6)]&&(_0x3b8a77[_0x3fa928(0x2f6)]=_0x3b8a77[_0x3fa928(0x2f6)]+_0x341f95[_0x3fa928(0x524)]),Object['entries'](_0x3b8a77)[_0x3fa928(0x3b7)](function(_0x704af){const _0x4ba8a3=_0x3fa928;var _0x739e71=_0x704af[0x0],_0x5e4f32=_0x704af[0x1];typeof _0x5e4f32==_0x4ba8a3(0x4a5)&&(_0x3b8a77[_0x739e71]=_0x5e4f32[_0x4ba8a3(0x3c7)](/url\(#(.*)\)/,_0x4ba8a3(0x316)['concat'](_0x341f95['idSuffix'],')')));})),_0x3b8a77;}function _0xb45ae8(_0x252c58,_0x5a95bf){const _0x13471a=_0xb893b1;var _0x23d34e,_0x39775e=_0x5a95bf[_0x13471a(0x483)];return!_0x39775e||_0x39775e[_0x13471a(0x4d8)]===0x0?_0x252c58:_0x252c58[_0x13471a(0x1c4)]===_0x13471a(0x528)&&(!((_0x23d34e=_0x252c58['children'])===null||_0x23d34e===void 0x0)&&_0x23d34e['length'])?_0x355dec(_0x355dec({},_0x252c58),{'children':_0x252c58['children']['map'](function(_0x3d6aa4){const _0x29e429=_0x13471a;return typeof _0x3d6aa4[_0x29e429(0x463)]['id']=='string'&&_0x39775e&&_0x39775e[_0x29e429(0x3c8)](_0x3d6aa4[_0x29e429(0x463)]['id'])>-0x1?_0x355dec(_0x355dec({},_0x3d6aa4),{'attrs':_0x355dec(_0x355dec({},_0x3d6aa4['attrs']),{'id':_0x3d6aa4['attrs']['id']+_0x5a95bf['idSuffix']})}):_0x3d6aa4;})}):_0x252c58;}function _0x151d00(){const _0x409c11=_0xb893b1;return Math[_0x409c11(0x364)]()[_0x409c11(0x540)](0x24)[_0x409c11(0x45e)](0x2,0x8);}_0x1de426['displayName']=_0xb893b1(0x52c);var _0x371ad2={'tag':_0xb893b1(0x3fb),'attrs':{'fill':_0xb893b1(0x143),'viewBox':'0\x200\x2016\x2016','width':_0xb893b1(0x448),'height':_0xb893b1(0x448)},'children':[{'tag':'g','attrs':{'clipPath':_0xb893b1(0x4f4)},'children':[{'tag':_0xb893b1(0x226),'attrs':{'stroke':'currentColor','d':_0xb893b1(0x1a4),'strokeLinecap':'round','strokeLinejoin':_0xb893b1(0x13a),'strokeWidth':1.2}}]},{'tag':_0xb893b1(0x528),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xb893b1(0x30a)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0xb893b1(0x52d)}}]}]}],'defIds':[_0xb893b1(0x30a)]},_0x3ba4fb=_0x4bfab6['forwardRef'](function(_0x259185,_0x1643c9){const _0xe14036=_0xb893b1;return _0x4bfab6[_0xe14036(0x439)](_0x1de426,Object['assign']({},_0x259185,{'id':_0xe14036(0x263),'ref':_0x1643c9,'icon':_0x371ad2}));});_0x3ba4fb[_0xb893b1(0x136)]='OffLineSingle';var _0x2fd0d8={'tag':_0xb893b1(0x3fb),'attrs':{'fill':_0xb893b1(0x143),'viewBox':_0xb893b1(0x3ad),'width':_0xb893b1(0x448),'height':_0xb893b1(0x448)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0xb893b1(0x226),'attrs':{'stroke':_0xb893b1(0x3f6),'d':'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','strokeLinecap':_0xb893b1(0x13a),'strokeLinejoin':_0xb893b1(0x13a),'strokeWidth':1.2}}]},{'tag':_0xb893b1(0x528),'attrs':{},'children':[{'tag':_0xb893b1(0x340),'attrs':{'id':_0xb893b1(0x301)},'children':[{'tag':_0xb893b1(0x226),'attrs':{'fill':_0xb893b1(0x447),'d':_0xb893b1(0x52d),'transform':'translate(.97)'}}]}]}],'defIds':[_0xb893b1(0x301)]},_0xafb40f=_0x4bfab6['forwardRef'](function(_0x2c6167,_0x4bad1b){const _0x170df7=_0xb893b1;return _0x4bfab6[_0x170df7(0x439)](_0x1de426,Object[_0x170df7(0x51b)]({},_0x2c6167,{'id':_0x170df7(0x182),'ref':_0x4bad1b,'icon':_0x2fd0d8}));});_0xafb40f[_0xb893b1(0x136)]=_0xb893b1(0x151);function _0x1f8512(_0x1aafd1){const _0x42874a=_0xb893b1;var _0x57c00b,_0x6ff5ab,_0x5c6513='';if(typeof _0x1aafd1==_0x42874a(0x4a5)||typeof _0x1aafd1==_0x42874a(0x53b))_0x5c6513+=_0x1aafd1;else{if(typeof _0x1aafd1==_0x42874a(0x379)){if(Array[_0x42874a(0x2f5)](_0x1aafd1)){var _0x4a1f90=_0x1aafd1[_0x42874a(0x4d8)];for(_0x57c00b=0x0;_0x57c00b<_0x4a1f90;_0x57c00b++)_0x1aafd1[_0x57c00b]&&(_0x6ff5ab=_0x1f8512(_0x1aafd1[_0x57c00b]))&&(_0x5c6513&&(_0x5c6513+='\x20'),_0x5c6513+=_0x6ff5ab);}else{for(_0x6ff5ab in _0x1aafd1)_0x1aafd1[_0x6ff5ab]&&(_0x5c6513&&(_0x5c6513+='\x20'),_0x5c6513+=_0x6ff5ab);}}}return _0x5c6513;}function _0x21ba12(){const _0x19bf07=_0xb893b1;for(var _0xcac0a5,_0x4d43d5,_0xf3959c=0x0,_0x1d4e4d='',_0xbd64ea=arguments[_0x19bf07(0x4d8)];_0xf3959c<_0xbd64ea;_0xf3959c++)(_0xcac0a5=arguments[_0xf3959c])&&(_0x4d43d5=_0x1f8512(_0xcac0a5))&&(_0x1d4e4d&&(_0x1d4e4d+='\x20'),_0x1d4e4d+=_0x4d43d5);return _0x1d4e4d;}const _0x2866e3={'onlineStatusIcon':_0xb893b1(0x380),'onlineStatusTitle':_0xb893b1(0x189),'onlineStatus':'univer-online-status','online':_0xb893b1(0x1b4),'offline':_0xb893b1(0x29b)};function _0xddaaf4(_0x2b18a1){const _0x1371d3=_0xb893b1;switch(_0x2b18a1){case _0x512cbd[_0x1371d3(0x4d1)]:return _0x1371d3(0x137);case _0x512cbd[_0x1371d3(0x18f)]:return'collabStatus.conflict';case _0x512cbd['FETCH_MISS']:return _0x1371d3(0x35a);case _0x512cbd[_0x1371d3(0x1dc)]:return'collabStatus.notCollab';case _0x512cbd['AWAITING']:case _0x512cbd[_0x1371d3(0x109)]:return _0x1371d3(0x2c9);case _0x512cbd[_0x1371d3(0x4fc)]:case _0x512cbd[_0x1371d3(0x1cc)]:return _0x1371d3(0x2b9);}}function _0x21b65d(_0x753493){const _0xa4ee66=_0xb893b1,{status$:_0x52179c}=_0x753493,_0x1adf65=_0x4d3c2b[_0xa4ee66(0x3a4)](_0x52179c,_0x512cbd[_0xa4ee66(0x1dc)]),_0x1f8895=_0x58b389[_0xa4ee66(0x376)](_0x58b389[_0xa4ee66(0x4ee)]),_0x49e06e=_0x58b389['useDependency'](_0x3b52c4['CollaborationSessionService']),_0x26b2da=_0x1adf65!==_0x512cbd['OFFLINE'],_0x1611ce=_0x1f8895['t'](_0xddaaf4(_0x1adf65)),_0x267315=_0x21ba12(_0x2866e3[_0xa4ee66(0x537)],{[_0x2866e3[_0xa4ee66(0x1a1)]]:_0x26b2da,[_0x2866e3[_0xa4ee66(0x2bf)]]:!_0x26b2da}),_0x30ba84=_0x26b2da?_0x4bfab6['createElement'](_0xafb40f,null):_0x4bfab6[_0xa4ee66(0x439)](_0x3ba4fb,null),_0x4878cb=_0x4bfab6['useCallback'](()=>{const _0x3e64e3=_0xa4ee66;_0x26b2da||_0x49e06e[_0x3e64e3(0x29e)]();},[_0x26b2da,_0x49e06e]);function _0x1f102c(){const _0x575635=_0xa4ee66;return _0x4bfab6[_0x575635(0x439)](_0x575635(0x425),{'className':_0x267315,'onClick':_0x4878cb},_0x4bfab6[_0x575635(0x439)](_0x575635(0x425),{'className':_0x2866e3[_0x575635(0x207)]},_0x30ba84),_0x4bfab6['createElement']('div',{'className':_0x2866e3[_0x575635(0x33b)]},_0x1611ce));}return _0x26b2da?_0x1f102c():_0x4bfab6[_0xa4ee66(0x439)](_0x145b31['Tooltip'],{'title':_0x1f8895['t']('collab-client.tooltip.reconnect')},_0x1f102c());}var _0x27fbfe=Object[_0xb893b1(0x1bc)],_0x32cb18=Object[_0xb893b1(0x490)],_0x1ad65d=(_0x58326f,_0x235dbc,_0x42063b,_0x1baa09)=>{const _0x53bc21=_0xb893b1;for(var _0x4b7bdf=_0x1baa09>0x1?void 0x0:_0x1baa09?_0x32cb18(_0x235dbc,_0x42063b):_0x235dbc,_0x546587=_0x58326f[_0x53bc21(0x4d8)]-0x1,_0x3561f7;_0x546587>=0x0;_0x546587--)(_0x3561f7=_0x58326f[_0x546587])&&(_0x4b7bdf=(_0x1baa09?_0x3561f7(_0x235dbc,_0x42063b,_0x4b7bdf):_0x3561f7(_0x4b7bdf))||_0x4b7bdf);return _0x1baa09&&_0x4b7bdf&&_0x27fbfe(_0x235dbc,_0x42063b,_0x4b7bdf),_0x4b7bdf;},_0x33a40d=(_0x5747e4,_0x46a765)=>(_0x148c9b,_0x1a163d)=>_0x46a765(_0x148c9b,_0x1a163d,_0x5747e4);_0x3b52c4[_0xb893b1(0x27e)]=class extends _0x58b389['Disposable']{constructor(_0x51b180,_0x50d9e3,_0x5a2226,_0x240153){const _0x33b6f9=_0xb893b1;super(),_0xf1fe43(this,'_status$',new _0x4655d9[(_0x33b6f9(0x293))](_0x512cbd['NOT_COLLAB'])),(this['_univerInstanceService']=_0x51b180,this[_0x33b6f9(0x255)]=_0x50d9e3,this[_0x33b6f9(0x126)]=_0x5a2226,this[_0x33b6f9(0x247)]=_0x240153,this['_initStatusComponent'](),this[_0x33b6f9(0x373)]());}[_0xb893b1(0x373)](){const _0x2141c9=_0xb893b1;this[_0x2141c9(0x14b)](this['_univerInstanceService'][_0x2141c9(0x2ba)]['pipe'](_0x4655d9['switchMap'](()=>{const _0x55bf19=_0x2141c9,_0x28b75b=this[_0x55bf19(0x123)][_0x55bf19(0x42e)]();return _0x28b75b?this['_collaborationController'][_0x55bf19(0x417)](_0x28b75b[_0x55bf19(0x2b3)]()):_0x4655d9['of'](null);}),_0x4655d9['switchMap'](_0x5e425f=>_0x5e425f?_0x5e425f[_0x2141c9(0x431)]:_0x4655d9['of'](_0x512cbd[_0x2141c9(0x1dc)])))[_0x2141c9(0x1b6)](_0x24f2d8=>{const _0x407f0e=_0x2141c9;this[_0x407f0e(0x2ac)][_0x407f0e(0x174)](_0x24f2d8);}));}[_0xb893b1(0x52e)](){const _0x165c27=_0xb893b1;this['disposeWithMe'](this['_uiPartsService'][_0x165c27(0x2dd)](_0x4d3c2b[_0x165c27(0x4e0)]['HEADER_MENU'],()=>_0x58b389['connectInjector'](_0x3caeef({'status$':this['_status$']['asObservable']()}),this[_0x165c27(0x126)])));}},_0x3b52c4['DesktopCollaborationStatusDisplayController']=_0x1ad65d([_0x33a40d(0x0,_0x58b389[_0xb893b1(0x1d9)]),_0x33a40d(0x1,_0x4d3c2b[_0xb893b1(0x246)]),_0x33a40d(0x2,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x33a40d(0x3,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4['CollaborationController']))],_0x3b52c4[_0xb893b1(0x27e)]);function _0x3caeef(_0x29be17){const {status$:_0x59b525}=_0x29be17;return function(){const _0x3601fd=_0x104b;return _0x4bfab6[_0x3601fd(0x439)](_0x21b65d,{'status$':_0x59b525});};}const _0x2272c6=_0x58b389[_0xb893b1(0x202)](_0xb893b1(0x394));var _0x10ba15=Object[_0xb893b1(0x1bc)],_0x252e49=Object[_0xb893b1(0x490)],_0x3545f5=(_0x3eba33,_0x28a54a,_0xdcd09e,_0x494a1b)=>{const _0x59533c=_0xb893b1;for(var _0x798cd5=_0x494a1b>0x1?void 0x0:_0x494a1b?_0x252e49(_0x28a54a,_0xdcd09e):_0x28a54a,_0x501c8c=_0x3eba33[_0x59533c(0x4d8)]-0x1,_0x4a6910;_0x501c8c>=0x0;_0x501c8c--)(_0x4a6910=_0x3eba33[_0x501c8c])&&(_0x798cd5=(_0x494a1b?_0x4a6910(_0x28a54a,_0xdcd09e,_0x798cd5):_0x4a6910(_0x798cd5))||_0x798cd5);return _0x494a1b&&_0x798cd5&&_0x10ba15(_0x28a54a,_0xdcd09e,_0x798cd5),_0x798cd5;},_0x51252f=(_0x3924a0,_0x4d19ef)=>(_0x495a40,_0x839466)=>_0x4d19ef(_0x495a40,_0x839466,_0x3924a0);_0x3b52c4[_0xb893b1(0x18c)]=class extends _0x58b389[_0xb893b1(0xf8)]{constructor(_0x3b4585,_0x16f3cc,_0x3ebf7b,_0x1cc77d,_0x41079a,_0x3e428c){const _0xda570c=_0xb893b1;super(),this[_0xda570c(0x45f)]=_0x3b4585,this['_logService']=_0x16f3cc,this['_commandService']=_0x3ebf7b,this[_0xda570c(0x4c9)]=_0x1cc77d,this[_0xda570c(0x1ac)]=_0x41079a,_0x3e428c?_0x3e428c==null||_0x3e428c['whenReady']()['then'](()=>this[_0xda570c(0x3e2)]()):(this['_logService'][_0xda570c(0x20d)]('[DataLoaderController]',_0xda570c(0x308)),this[_0xda570c(0x3e2)]());}async['_init'](){const _0x3285c4=_0xb893b1,_0x5449ba=this[_0x3285c4(0x45f)]['getParam']('unit'),_0xce7070=this[_0x3285c4(0x45f)]['getParam'](_0x3285c4(0x191));if(!_0x5449ba||!_0xce7070){this[_0x3285c4(0x482)][_0x3285c4(0x20d)](_0x3285c4(0x16a),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0xce7070)){case _0x2e214d[_0x3285c4(0x2db)]:{const _0x14448b=await this[_0x3285c4(0x3f5)](_0x5449ba);this[_0x3285c4(0x3b5)](_0x14448b);break;}case _0x2e214d[_0x3285c4(0x2d8)]:{await this[_0x3285c4(0x2ec)](_0x5449ba);break;}default:{this['_logService'][_0x3285c4(0x368)](_0x3285c4(0x16a),_0x3285c4(0x371));break;}}}async['_setupSubUnitSync'](_0x58b7c8){const _0x3da571=_0xb893b1;await this[_0x3da571(0x4ce)](_0x58b7c8),_0x58b7c8[_0x3da571(0x536)]['pipe'](_0x4655d9[_0x3da571(0x260)](this['dispose$']))[_0x3da571(0x1b6)](_0x2acf3f=>{_0x2acf3f&&this['_updateURLWithCurrentState'](_0x2acf3f);}),this[_0x3da571(0x45f)]['urlChange$'][_0x3da571(0x3ca)](_0x4655d9[_0x3da571(0x260)](this[_0x3da571(0x11c)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x58b7c8));}['_updateURLWithCurrentState'](_0x5f40c3,_0x2096b2=!0x1){const _0x4e9866=_0xb893b1,_0xb0fe61=this['_urlService'][_0x4e9866(0x237)](_0x4e9866(0x40c));_0x5f40c3[_0x4e9866(0x499)]()!==_0xb0fe61&&this[_0x4e9866(0x45f)][_0x4e9866(0x312)](_0x4e9866(0x40c),_0x5f40c3[_0x4e9866(0x499)](),_0x2096b2);}async[_0xb893b1(0x4ce)](_0x4ae09e){const _0x320f3c=_0xb893b1;var _0x3c4d45;const _0x4fa78b=this['_urlService'][_0x320f3c(0x237)](_0x320f3c(0x40c));if(!_0x4fa78b||!_0x4ae09e[_0x320f3c(0x460)](_0x4fa78b)){const _0x102e84=_0x4ae09e[_0x320f3c(0x158)]()[0x0],_0x380c57=_0x4ae09e[_0x320f3c(0x460)](_0x102e84);if(!_0x380c57)return;this[_0x320f3c(0x1c8)](_0x380c57,!0x0),await this[_0x320f3c(0x4af)][_0x320f3c(0x3c5)](_0x2d2223['SetWorksheetActivateCommand']['id'],{'unitId':_0x4ae09e[_0x320f3c(0x2b3)](),'subUnitId':_0x102e84});return;}((_0x3c4d45=_0x4ae09e[_0x320f3c(0x131)]())==null?void 0x0:_0x3c4d45['getSheetId']())!==_0x4fa78b&&await this[_0x320f3c(0x4af)][_0x320f3c(0x3c5)](_0x2d2223[_0x320f3c(0x3bc)]['id'],{'unitId':_0x4ae09e[_0x320f3c(0x2b3)](),'subUnitId':_0x4fa78b});}async['_loadSheet'](_0x451558){const _0x181220=_0xb893b1;let _0x165656=0x0;const _0x3067df=await this[_0x181220(0x4c9)]['loadOfflineData'](_0x451558);return _0x3067df&&(_0x3067df[_0x181220(0x20a)]||_0x3067df[_0x181220(0x44a)]['length']!==0x0)&&(_0x165656=_0x3067df[_0x181220(0x114)]),_0x165656===0x0&&this[_0x181220(0x482)][_0x181220(0x20d)](_0x181220(0x16a),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x181220(0x1ac)][_0x181220(0x212)](_0x451558,_0x165656);}async['_loadDoc'](_0x15f2de){const _0x5b695f=_0xb893b1;let _0x39d408=0x0;const _0x21ca09=await this[_0x5b695f(0x4c9)][_0x5b695f(0x477)](_0x15f2de);return _0x21ca09&&(_0x21ca09[_0x5b695f(0x20a)]||_0x21ca09['mutations'][_0x5b695f(0x4d8)]!==0x0)&&(_0x39d408=_0x21ca09[_0x5b695f(0x114)]),_0x39d408===0x0&&this['_logService'][_0x5b695f(0x20d)](_0x5b695f(0x16a),_0x5b695f(0x53c)),this['_snapshotService'][_0x5b695f(0x50c)](_0x15f2de,_0x39d408);}},_0x3b52c4[_0xb893b1(0x18c)]=_0x3545f5([_0x51252f(0x0,_0x2272c6),_0x51252f(0x1,_0x58b389[_0xb893b1(0x46a)]),_0x51252f(0x2,_0x58b389[_0xb893b1(0x1ec)]),_0x51252f(0x3,_0x58b389['Inject'](_0x3b52c4[_0xb893b1(0x2ff)])),_0x51252f(0x4,_0x58b389['Inject'](_0x5e5ab1[_0xb893b1(0x1d2)])),_0x51252f(0x5,_0x58b389['Optional'](_0x2df961[_0xb893b1(0x2ae)]))],_0x3b52c4[_0xb893b1(0x18c)]);var _0x22a341=Object[_0xb893b1(0x1bc)],_0x542b27=Object['getOwnPropertyDescriptor'],_0xb0312c=(_0x1b90f5,_0x38d35a,_0xbd9b2e,_0x3e032e)=>{const _0x42a47e=_0xb893b1;for(var _0x2ad5b2=_0x3e032e>0x1?void 0x0:_0x3e032e?_0x542b27(_0x38d35a,_0xbd9b2e):_0x38d35a,_0x511a91=_0x1b90f5[_0x42a47e(0x4d8)]-0x1,_0x2341b6;_0x511a91>=0x0;_0x511a91--)(_0x2341b6=_0x1b90f5[_0x511a91])&&(_0x2ad5b2=(_0x3e032e?_0x2341b6(_0x38d35a,_0xbd9b2e,_0x2ad5b2):_0x2341b6(_0x2ad5b2))||_0x2ad5b2);return _0x3e032e&&_0x2ad5b2&&_0x22a341(_0x38d35a,_0xbd9b2e,_0x2ad5b2),_0x2ad5b2;},_0x22e708=(_0x4ac03f,_0x53df28)=>(_0x8012fc,_0xdceb5d)=>_0x53df28(_0x8012fc,_0xdceb5d,_0x4ac03f);const _0x4c6a3a=_0xb893b1(0x19e),_0x2616af=_0xb893b1(0x497);let _0x27d9a8=class extends _0x58b389[_0xb893b1(0x4dc)]{constructor(_0x40c8c3,_0x4059bf){const _0x33e32f=_0xb893b1;super(),this[_0x33e32f(0x123)]=_0x40c8c3,this[_0x33e32f(0x2f3)]=_0x4059bf,this[_0x33e32f(0x3e2)]();}[_0xb893b1(0x3e2)](){const _0x1f32c3=_0xb893b1;this[_0x1f32c3(0x14b)](this[_0x1f32c3(0x123)][_0x1f32c3(0x2ba)][_0x1f32c3(0x1b6)](()=>{const _0x2d74e9=_0x1f32c3;var _0x2041c6;const _0x53f61e=this['_univerInstanceService'][_0x2d74e9(0x42e)]();let _0x5e5a86=(_0x2041c6=this[_0x2d74e9(0x2f3)][_0x2d74e9(0x22b)](_0x4c6a3a))!=null?_0x2041c6:_0x2616af;_0x53f61e instanceof _0x58b389[_0x2d74e9(0x1b2)]&&(_0x5e5a86=_0x53f61e[_0x2d74e9(0x4e3)]),document[_0x2d74e9(0x142)]=_0x5e5a86;}));}};_0x27d9a8=_0xb0312c([_0x22e708(0x0,_0x58b389[_0xb893b1(0x1d9)]),_0x22e708(0x1,_0x58b389[_0xb893b1(0x1f6)])],_0x27d9a8);var _0x3641b0=Object[_0xb893b1(0x1bc)],_0x4d72e1=Object[_0xb893b1(0x490)],_0x5b0302=(_0x4ce6ab,_0x2e0e7c,_0x25fbe0,_0x1fca37)=>{for(var _0x215612=_0x1fca37>0x1?void 0x0:_0x1fca37?_0x4d72e1(_0x2e0e7c,_0x25fbe0):_0x2e0e7c,_0x334976=_0x4ce6ab['length']-0x1,_0x2fb4ea;_0x334976>=0x0;_0x334976--)(_0x2fb4ea=_0x4ce6ab[_0x334976])&&(_0x215612=(_0x1fca37?_0x2fb4ea(_0x2e0e7c,_0x25fbe0,_0x215612):_0x2fb4ea(_0x215612))||_0x215612);return _0x1fca37&&_0x215612&&_0x3641b0(_0x2e0e7c,_0x25fbe0,_0x215612),_0x215612;},_0x1f51cf=(_0x5d6e4b,_0x11a144)=>(_0x527bdb,_0x40afaf)=>_0x11a144(_0x527bdb,_0x40afaf,_0x5d6e4b);let _0x291110=class{constructor(_0x301574,_0x2459ce,_0x4c1cb7){const _0x1048fd=_0xb893b1;this[_0x1048fd(0x2f3)]=_0x301574,this[_0x1048fd(0x1a9)]=_0x2459ce,this[_0x1048fd(0x3da)]=_0x4c1cb7,this[_0x1048fd(0x29f)]();}[_0xb893b1(0x29f)](){const _0x23ba8a=_0xb893b1;this[_0x23ba8a(0x1a9)][_0x23ba8a(0x325)]({'priority':0x1,'interceptor':(_0x5b1916,_0x26f7c0)=>_0x26f7c0(_0x5b1916)[_0x23ba8a(0x3ca)](_0x4655d9['concatMap'](async _0x4a0d3b=>{const _0x2e7575=_0x23ba8a,_0x17235f=_0x4a0d3b;if(_0x17235f[_0x2e7575(0x259)]===0x191&&window[_0x2e7575(0x248)](this[_0x2e7575(0x3da)]['t']('auth.needGotoLoginAlert'))){const _0x1fc35e=window['encodeURIComponent'](window[_0x2e7575(0x129)][_0x2e7575(0x288)]);window[_0x2e7575(0x129)][_0x2e7575(0x288)]=this[_0x2e7575(0x187)]()+_0x2e7575(0x426)+_0x1fc35e;}return _0x17235f;}))});}[_0xb893b1(0x187)](){const _0x1d97ab=_0xb893b1;var _0x567494,_0x45716f;const _0x53ffb7=this[_0x1d97ab(0x2f3)][_0x1d97ab(0x22b)](_0x42bb89),_0x59902b=this[_0x1d97ab(0x2f3)]['getConfig'](_0x271aa0);return(_0x45716f=(_0x567494=_0x59902b==null?void 0x0:_0x59902b[_0x1d97ab(0x481)])!=null?_0x567494:_0x53ffb7)!=null?_0x45716f:_0x3aa700;}};_0x291110=_0x5b0302([_0x1f51cf(0x0,_0x58b389[_0xb893b1(0x1f6)]),_0x1f51cf(0x1,_0x58b389[_0xb893b1(0x4ac)](_0x57b255[_0xb893b1(0x1c9)])),_0x1f51cf(0x2,_0x58b389[_0xb893b1(0x4ac)](_0x58b389['LocaleService']))],_0x291110);var _0x5c3996=Object[_0xb893b1(0x1bc)],_0x120029=Object[_0xb893b1(0x490)],_0x319f6b=(_0x1550f6,_0x4e95f8,_0x290fb5,_0x445a01)=>{const _0x3669a2=_0xb893b1;for(var _0x164c6a=_0x445a01>0x1?void 0x0:_0x445a01?_0x120029(_0x4e95f8,_0x290fb5):_0x4e95f8,_0x451cdd=_0x1550f6[_0x3669a2(0x4d8)]-0x1,_0x223905;_0x451cdd>=0x0;_0x451cdd--)(_0x223905=_0x1550f6[_0x451cdd])&&(_0x164c6a=(_0x445a01?_0x223905(_0x4e95f8,_0x290fb5,_0x164c6a):_0x223905(_0x164c6a))||_0x164c6a);return _0x445a01&&_0x164c6a&&_0x5c3996(_0x4e95f8,_0x290fb5,_0x164c6a),_0x164c6a;},_0x31cc63=(_0x194d00,_0x2b42d9)=>(_0x592128,_0x2063d7)=>_0x2b42d9(_0x592128,_0x2063d7,_0x194d00);const _0x24fd15=_0xb893b1(0x228),_0x2de352=_0xb893b1(0x3a5);_0x3b52c4[_0xb893b1(0x29c)]=class extends _0x58b389['Disposable']{constructor(_0x18390b,_0x55be62){const _0xccab67=_0xb893b1;super(),this[_0xccab67(0x1be)]=_0x18390b,this[_0xccab67(0x2f3)]=_0x55be62,this[_0xccab67(0x22e)]();}[_0xb893b1(0x22e)](){const _0x156a63=_0xb893b1,_0x9a881c=this;this['disposeWithMe'](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x57b255[_0x156a63(0x485)]({'isMatch'(_0xeb633f){const _0x5a21f1=_0x156a63;var _0x501ba1;if(_0xeb633f['method']==='POST'&&((_0x501ba1=_0xeb633f['requestParams'])!=null&&_0x501ba1['body'])){const {objectID:_0x1b5d90,objectType:_0x316145}=_0xeb633f['requestParams'][_0x5a21f1(0x538)]||{};if(!_0x1b5d90||_0x316145===void 0x0)return!0x1;const _0x168b72=_0x9a881c['_getAPIPrefixPath']()+'/'+_0x316145+'/object/'+_0x1b5d90+_0x5a21f1(0x22c);if(_0xeb633f[_0x5a21f1(0x241)]===_0x168b72)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2431cb){const _0x8e6d4d=_0x156a63;var _0x2cb107;return(_0x2cb107=_0x2431cb[_0x8e6d4d(0x4db)])==null?void 0x0:_0x2cb107[_0x8e6d4d(0x538)];},'mergeParamsToRequest'(_0x5c918c,_0xd9b01e){const _0x106ccb=_0x156a63,_0x56be15=_0x9a881c['_getAPIPrefixPath']()+_0x106ccb(0x519),_0x4e0921=_0x5c918c[_0x106ccb(0x154)]((_0x1cb1ed,_0x27aba7)=>{const _0x39b1ef=_0x106ccb,{unitID:_0x4f0b23,objectID:_0xb0545b,objectType:_0x3a6586,actions:_0x4682d4}=_0x27aba7;return _0x1cb1ed[_0x4f0b23]||(_0x1cb1ed[_0x4f0b23]={}),_0x1cb1ed[_0x4f0b23][_0xb0545b]||(_0x1cb1ed[_0x4f0b23][_0xb0545b]={'objectID':_0xb0545b,'objectType':_0x3a6586,'actions':[]}),_0x1cb1ed[_0x4f0b23][_0xb0545b]['actions'][_0x39b1ef(0x428)](..._0x4682d4),_0x1cb1ed;},{}),_0x91d915=[];for(const _0x180880 in _0x4e0921)for(const _0x721a8b in _0x4e0921[_0x180880]){const {actions:_0xc7e313,objectType:_0x5e4b02}=_0x4e0921[_0x180880][_0x721a8b],_0x36a93a=[...new Set(_0xc7e313)];_0x91d915[_0x106ccb(0x428)]({'unitID':_0x180880,'objectID':_0x721a8b,'objectType':_0x5e4b02,'actions':_0x36a93a});}return new _0x57b255[(_0x106ccb(0x10d))](_0x106ccb(0x44e),_0x56be15,{'headers':_0xd9b01e[_0x106ccb(0x470)],'withCredentials':_0xd9b01e['withCredentials'],'responseType':_0xd9b01e[_0x106ccb(0x34c)],'body':{'requests':_0x91d915}});}},{'distributeResult'(_0xfa18b4,_0x5c9927){const _0x4bdd5a=_0x156a63,{objectActions:_0x3bd3d8}=_0xfa18b4;return _0x5c9927[_0x4bdd5a(0x44d)](_0x14977f=>{const _0x1c8a23=_0x4bdd5a,{unitID:_0x40cb99,objectID:_0x3b81db,actions:_0x1c5b6b}=_0x14977f,_0x1d85e4=_0x3bd3d8['find'](_0x47fea6=>_0x47fea6['unitID']===_0x40cb99&&_0x47fea6[_0x1c8a23(0x1e3)]===_0x3b81db),_0x729d6e=_0x1c5b6b[_0x1c8a23(0x44d)](_0x340f7c=>_0x1d85e4==null?void 0x0:_0x1d85e4['actions'][_0x1c8a23(0x322)](_0x2f343a=>_0x2f343a[_0x1c8a23(0x3f3)]===_0x340f7c))['filter'](_0x1c8106=>!!_0x1c8106);return{'config':_0x14977f,'result':{'actions':_0x729d6e,'error':_0xfa18b4['error']}};});}})}));}[_0xb893b1(0x243)](){const _0x39c17d=_0xb893b1;var _0x3ee4be,_0x33627d;const _0x2b358d=this['_configService'][_0x39c17d(0x22b)](_0x24fd15),_0x25b86b=this[_0x39c17d(0x2f3)]['getConfig'](_0x271aa0);return(_0x33627d=(_0x3ee4be=_0x25b86b==null?void 0x0:_0x25b86b[_0x39c17d(0x50e)])!=null?_0x3ee4be:_0x2b358d)!=null?_0x33627d:_0x2de352;}async['create'](_0x5670fc){const _0x3f05aa=_0xb893b1,_0x4fcaec=this[_0x3f05aa(0x243)]()+'/'+_0x5670fc[_0x3f05aa(0x473)]+_0x3f05aa(0x4f7);return(await this['_HTTPService'][_0x3f05aa(0x3b4)](_0x4fcaec,{'body':_0x5670fc}))['body'][_0x3f05aa(0x1e3)]||'';}async['list'](_0x516db6){const _0x2b2cb2=_0xb893b1,_0x5e1b83=this['_getAPIPrefixPath']()+'/-/object/list';return(await this[_0x2b2cb2(0x1be)][_0x2b2cb2(0x3b4)](_0x5e1b83,{'body':_0x516db6}))[_0x2b2cb2(0x538)]['objects'];}async['update'](_0x437c1b){const _0x9b1359=_0xb893b1,_0x143dad=this[_0x9b1359(0x243)]()+'/'+_0x437c1b[_0x9b1359(0x473)]+'/object/'+_0x437c1b[_0x9b1359(0x1e3)];await this[_0x9b1359(0x1be)][_0x9b1359(0x4cf)](_0x143dad,{'body':_0x437c1b});}async[_0xb893b1(0x26a)](_0x1d3034){const _0x1dae0b=_0xb893b1,_0x3099ee=this[_0x1dae0b(0x243)]()+'/'+_0x1d3034[_0x1dae0b(0x473)]+_0x1dae0b(0x51a)+_0x1d3034[_0x1dae0b(0x1e3)]+_0x1dae0b(0x22c);return(await this[_0x1dae0b(0x1be)][_0x1dae0b(0x3b4)](_0x3099ee,{'body':_0x1d3034}))[_0x1dae0b(0x538)][_0x1dae0b(0x12b)];}async[_0xb893b1(0x306)](_0x345b1c){const _0x35d596=_0xb893b1,_0x4cb9e8=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this['_HTTPService'][_0x35d596(0x3b4)](_0x4cb9e8,{'body':{'requests':_0x345b1c}}))[_0x35d596(0x538)][_0x35d596(0x4e2)];}async['listRoles'](_0x6c1d6d){const _0x3e5c7e=_0xb893b1,_0x1d41ad=this['_getAPIPrefixPath']()+'/'+_0x6c1d6d[_0x3e5c7e(0x473)]+_0x3e5c7e(0x20e),_0x518176=await this[_0x3e5c7e(0x1be)][_0x3e5c7e(0x3b4)](_0x1d41ad,{'body':_0x6c1d6d});return{'roles':_0x518176[_0x3e5c7e(0x538)][_0x3e5c7e(0x392)],'actions':_0x518176[_0x3e5c7e(0x538)][_0x3e5c7e(0x12b)]};}async[_0xb893b1(0x10e)](_0x46b988){const _0x64f0c5=_0xb893b1,_0x5a7145=this['_getAPIPrefixPath']()+_0x64f0c5(0x332);await this['_HTTPService']['delete'](_0x5a7145,{'params':{'collaboratorID':_0x46b988[_0x64f0c5(0x225)],'objectID':_0x46b988[_0x64f0c5(0x1e3)],'unitID':_0x46b988[_0x64f0c5(0x386)]}});}async[_0xb893b1(0x449)](_0x3a47ea){const _0x1dcab6=_0xb893b1,_0x5a8a9c=this['_getAPIPrefixPath']()+_0x1dcab6(0x332);await this[_0x1dcab6(0x1be)][_0x1dcab6(0x16e)](_0x5a8a9c,{'body':_0x3a47ea});}async[_0xb893b1(0x1f7)](_0x4d8225){const _0x550474=_0xb893b1,_0x197c44=this[_0x550474(0x243)]()+'/collaborator';await this[_0x550474(0x1be)][_0x550474(0x3b4)](_0x197c44,{'body':_0x4d8225});}async[_0xb893b1(0x15e)](_0x14c653){const _0x2ccd38=_0xb893b1,_0x41253d=this[_0x2ccd38(0x243)]()+_0x2ccd38(0x332);return(await this['_HTTPService'][_0x2ccd38(0x19d)](_0x41253d,{'params':{'objectID':_0x14c653[_0x2ccd38(0x1e3)],'unitID':_0x14c653[_0x2ccd38(0x386)]}}))[_0x2ccd38(0x538)][_0x2ccd38(0x43b)];}async[_0xb893b1(0x35c)](_0x21ac93){const _0x637788=_0xb893b1,_0x3282d7=this[_0x637788(0x243)]()+'/collaborator';await this[_0x637788(0x1be)][_0x637788(0x4cf)](_0x3282d7,{'body':_0x21ac93});}},_0x3b52c4[_0xb893b1(0x29c)]=_0x319f6b([_0x31cc63(0x0,_0x58b389[_0xb893b1(0x4ac)](_0x57b255[_0xb893b1(0x1c9)])),_0x31cc63(0x1,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1f6)]))],_0x3b52c4[_0xb893b1(0x29c)]);var _0x446105=Object[_0xb893b1(0x1bc)],_0x52bdd0=Object[_0xb893b1(0x490)],_0x24ac5c=(_0x2dca7d,_0x122ea8,_0x301408,_0x489109)=>{const _0x429854=_0xb893b1;for(var _0x1664cc=_0x489109>0x1?void 0x0:_0x489109?_0x52bdd0(_0x122ea8,_0x301408):_0x122ea8,_0x33d1ba=_0x2dca7d[_0x429854(0x4d8)]-0x1,_0x35af02;_0x33d1ba>=0x0;_0x33d1ba--)(_0x35af02=_0x2dca7d[_0x33d1ba])&&(_0x1664cc=(_0x489109?_0x35af02(_0x122ea8,_0x301408,_0x1664cc):_0x35af02(_0x1664cc))||_0x1664cc);return _0x489109&&_0x1664cc&&_0x446105(_0x122ea8,_0x301408,_0x1664cc),_0x1664cc;},_0x39e2e7=(_0x54866a,_0x4b41b6)=>(_0x5544b6,_0x46d00b)=>_0x4b41b6(_0x5544b6,_0x46d00b,_0x54866a);let _0x838442=class{constructor(_0x58393a){const _0x18b438=_0xb893b1;this['_httpService']=_0x58393a,this[_0x18b438(0x360)]();}[_0xb893b1(0x360)](){const _0x2e3931=_0xb893b1;this[_0x2e3931(0x1a9)][_0x2e3931(0x325)]({'interceptor':(_0x5875bf,_0x5f1a49)=>{const _0x153331=_0x2e3931,_0x171f51=_0x5875bf[_0x153331(0x470)],_0x241890=_0x278106[_0x153331(0x1f8)]();return _0x241890&&_0x171f51[_0x153331(0x1c2)]('x-univer-host',_0x241890),_0x5f1a49(_0x5875bf);}});}};_0x838442=_0x24ac5c([_0x39e2e7(0x0,_0x58b389['Inject'](_0x57b255[_0xb893b1(0x1c9)]))],_0x838442);var _0x433bed=Object[_0xb893b1(0x1bc)],_0x4039e2=Object['getOwnPropertyDescriptor'],_0x5d370e=(_0x3250d8,_0x306003,_0x76ee0b,_0x584d6b)=>{for(var _0x1f3bf8=_0x584d6b>0x1?void 0x0:_0x584d6b?_0x4039e2(_0x306003,_0x76ee0b):_0x306003,_0x289ef4=_0x3250d8['length']-0x1,_0x52e7d4;_0x289ef4>=0x0;_0x289ef4--)(_0x52e7d4=_0x3250d8[_0x289ef4])&&(_0x1f3bf8=(_0x584d6b?_0x52e7d4(_0x306003,_0x76ee0b,_0x1f3bf8):_0x52e7d4(_0x1f3bf8))||_0x1f3bf8);return _0x584d6b&&_0x1f3bf8&&_0x433bed(_0x306003,_0x76ee0b,_0x1f3bf8),_0x1f3bf8;},_0x178d5a=(_0x11adf6,_0x49d5c9)=>(_0x2b91a1,_0x6ed3e2)=>_0x49d5c9(_0x2b91a1,_0x6ed3e2,_0x11adf6);const _0x337602=[_0xb893b1(0x456),_0xb893b1(0x522),'image/jpg',_0xb893b1(0x375),'image/bmp'],_0x3c08c0=0x5*0x400*0x400,_0x3bf952='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',_0x365192=_0xb893b1(0x338),_0x930f1c=_0xb893b1(0x3a8),_0xbe6f1d='/universer-api/file/{fileID}/sign-url';_0x3b52c4[_0xb893b1(0x38e)]=class{constructor(_0x2edf81,_0x522eff,_0x336776){const _0x40e398=_0xb893b1;_0xf1fe43(this,_0x40e398(0x1ab),0x0),_0xf1fe43(this,_0x40e398(0x387),new _0x4655d9[(_0x40e398(0x4d6))]()),_0xf1fe43(this,'change$',this['_change$']),_0xf1fe43(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x2edf81,this[_0x40e398(0x2f3)]=_0x522eff,this['_univerInstanceService']=_0x336776);}['setWaitCount'](_0x1e303f){const _0x439b3f=_0xb893b1;this[_0x439b3f(0x1ab)]=_0x1e303f,this['_change$'][_0x439b3f(0x174)](_0x1e303f);}[_0xb893b1(0x421)](_0x4f71d5,_0x1d764c){const _0x22bf60=_0xb893b1;if(_0x1d764c===_0x1031ad[_0x22bf60(0x451)][_0x22bf60(0xfe)]){const _0x15dd89=new Image();return _0x15dd89[_0x22bf60(0x27d)]=_0x4f71d5,_0x15dd89;}return this[_0x22bf60(0x31d)][_0x22bf60(0x19d)](_0x4f71d5);}[_0xb893b1(0x4f2)](_0x1ae2c4,_0x506c2e,_0x3f9ae5){const _0x14685c=_0xb893b1;_0x506c2e===_0x1031ad[_0x14685c(0x451)]['BASE64']||_0x3f9ae5==null||this[_0x14685c(0x31d)][_0x14685c(0x1c2)](_0x1ae2c4,_0x3f9ae5);}async[_0xb893b1(0x377)](_0x46b14c){const _0x1a00f2=_0xb893b1;try{const _0x18b18e=this[_0x1a00f2(0x2ce)](this['_getSignURL'](),''+_0x46b14c),_0x1135b7=(await this[_0x1a00f2(0x1a9)][_0x1a00f2(0x19d)](_0x18b18e))['body'];if(_0x1135b7[_0x1a00f2(0x368)]&&_0x1135b7[_0x1a00f2(0x368)][_0x1a00f2(0x170)]===_0x423190['OK']){const _0x3d7b52=new URL(_0x1135b7[_0x1a00f2(0x241)],this[_0x1a00f2(0x45c)]())[_0x1a00f2(0x540)]();return Promise['resolve'](_0x3d7b52);}return Promise[_0x1a00f2(0x36d)](_0x1135b7['error']);}catch(_0x5f4667){return Promise['reject'](_0x5f4667);}}async[_0xb893b1(0x320)](_0x567162){const _0x479862=_0xb893b1;let _0x4ec5c7='';if(!_0x337602[_0x479862(0x532)](_0x567162[_0x479862(0x191)]))return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x1031ad[_0x479862(0x12a)][_0x479862(0x39e)]));if(_0x567162[_0x479862(0x30b)]>_0x3c08c0)return this[_0x479862(0x38a)](),Promise[_0x479862(0x36d)](new Error(_0x1031ad[_0x479862(0x12a)][_0x479862(0x47a)]));try{const _0x3c1855=new FormData();_0x3c1855[_0x479862(0x484)](_0x479862(0x19f),_0x567162);const _0x10fec8=this[_0x479862(0x123)][_0x479862(0x42e)](),_0x3e882f=_0x10fec8==null?void 0x0:_0x10fec8[_0x479862(0x2b3)]();if(!_0x3e882f)throw new Error(_0x479862(0x3d0));const _0x3bd7c6=this[_0x479862(0x35f)]()+_0x479862(0x4ca)+_0x567162['size'][_0x479862(0x540)]()+_0x479862(0x355)+_0x1ca33e[_0x479862(0x53d)]+_0x479862(0x124)+encodeURIComponent(_0x3e882f),_0x32003f=await(await fetch(_0x3bd7c6,{'method':_0x479862(0x44e),'body':_0x3c1855}))[_0x479862(0x4b1)]();if(typeof _0x32003f['FileId']!=_0x479862(0x4a5))return this[_0x479862(0x38a)](),Promise[_0x479862(0x36d)](new Error(_0x1031ad['ImageUploadStatusType']['ERROR_IMAGE']));_0x4ec5c7=_0x32003f[_0x479862(0x539)];}catch{return this[_0x479862(0x38a)](),Promise[_0x479862(0x36d)](new Error(_0x1031ad['ImageUploadStatusType'][_0x479862(0x32c)]));}return new Promise((_0x4efd19,_0x4dfc90)=>{const _0x5b4e11=_0x479862,_0x5cdebd=new FileReader();_0x5cdebd['readAsDataURL'](_0x567162),_0x5cdebd[_0x5b4e11(0x413)]=_0x20cca6=>{const _0x3de17d=_0x5b4e11;var _0xc6444c;const _0x1ddad3=(_0xc6444c=_0x20cca6[_0x3de17d(0x507)])==null?void 0x0:_0xc6444c['result'];if(_0x1ddad3==null){this[_0x3de17d(0x38a)](),_0x4dfc90(new Error(_0x1031ad[_0x3de17d(0x12a)][_0x3de17d(0x32c)]));return;}const _0x33999a=_0x58b389[_0x3de17d(0x36e)]['generateRandomId'](0x6);_0x4efd19({'imageId':_0x33999a,'imageSourceType':_0x1031ad[_0x3de17d(0x451)][_0x3de17d(0x4dd)],'source':_0x4ec5c7,'base64Cache':_0x1ddad3,'status':_0x1031ad['ImageUploadStatusType'][_0x3de17d(0x1e6)]}),this[_0x3de17d(0x38a)]();};});}['_getUploadFileURL'](){const _0x2b824c=_0xb893b1;var _0x35d8c8,_0x5b335b;const _0x34e174=this['_configService']['getConfig'](_0x3bf952),_0x15859a=this[_0x2b824c(0x2f3)][_0x2b824c(0x22b)](_0x271aa0);return(_0x5b335b=(_0x35d8c8=_0x15859a==null?void 0x0:_0x15859a[_0x2b824c(0x1e2)])!=null?_0x35d8c8:_0x34e174)!=null?_0x5b335b:_0x365192;}[_0xb893b1(0x478)](){const _0x1b0356=_0xb893b1;var _0x1d60c8,_0x530954;const _0x11d00d=this[_0x1b0356(0x2f3)][_0x1b0356(0x22b)](_0x930f1c),_0xcea4a6=this[_0x1b0356(0x2f3)][_0x1b0356(0x22b)](_0x271aa0);return(_0x530954=(_0x1d60c8=_0xcea4a6==null?void 0x0:_0xcea4a6[_0x1b0356(0x1fd)])!=null?_0x1d60c8:_0x11d00d)!=null?_0x530954:_0xbe6f1d;}[_0xb893b1(0x45c)](){const _0x58f32e=_0xb893b1;var _0x10006c;const _0x4a4c7a=this['_configService'][_0x58f32e(0x22b)](_0x271aa0);return(_0x10006c=_0x4a4c7a==null?void 0x0:_0x4a4c7a[_0x58f32e(0x1ba)])!=null?_0x10006c:location[_0x58f32e(0x1d6)];}[_0xb893b1(0x2ce)](_0x219b9a,_0x2b635a){const _0x331b89=_0xb893b1;return _0x219b9a[_0x331b89(0x3c7)](_0x331b89(0x105),_0x2b635a);}['_decreaseWaiting'](){const _0x46ef00=_0xb893b1;this[_0x46ef00(0x1ab)]-=0x1,this[_0x46ef00(0x387)][_0x46ef00(0x174)](this['_waitCount']);}},_0x3b52c4[_0xb893b1(0x38e)]=_0x5d370e([_0x178d5a(0x0,_0x58b389[_0xb893b1(0x4ac)](_0x57b255[_0xb893b1(0x1c9)])),_0x178d5a(0x1,_0x58b389[_0xb893b1(0x1f6)]),_0x178d5a(0x2,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d9)]))],_0x3b52c4['ImageIoService']);var _0x251928=Object[_0xb893b1(0x1bc)],_0x30a785=Object[_0xb893b1(0x490)],_0x46292f=(_0x30fee0,_0xa15401,_0x5c5b7c,_0x1a9f6a)=>{const _0x49bb0e=_0xb893b1;for(var _0x1086d8=_0x1a9f6a>0x1?void 0x0:_0x1a9f6a?_0x30a785(_0xa15401,_0x5c5b7c):_0xa15401,_0x4401f4=_0x30fee0[_0x49bb0e(0x4d8)]-0x1,_0x3291de;_0x4401f4>=0x0;_0x4401f4--)(_0x3291de=_0x30fee0[_0x4401f4])&&(_0x1086d8=(_0x1a9f6a?_0x3291de(_0xa15401,_0x5c5b7c,_0x1086d8):_0x3291de(_0x1086d8))||_0x1086d8);return _0x1a9f6a&&_0x1086d8&&_0x251928(_0xa15401,_0x5c5b7c,_0x1086d8),_0x1086d8;},_0x5925ac=(_0x5f4201,_0x1a9a9e)=>(_0x1421c9,_0x5ab925)=>_0x1a9a9e(_0x1421c9,_0x5ab925,_0x5f4201);let _0x22ab42=class extends _0x58b389[_0xb893b1(0xf8)]{constructor(_0x41f3bc,_0x548830,_0x49effd,_0xd8a6fd,_0x1b09cc){const _0x46064c=_0xb893b1;super(),this[_0x46064c(0x126)]=_0x41f3bc,this[_0x46064c(0x123)]=_0x548830,this['_permissionService']=_0x49effd,this[_0x46064c(0x185)]=_0xd8a6fd,this['_localeService']=_0x1b09cc,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0xb893b1(0x17b)](){const _0x33b66f=_0xb893b1,_0x28e339=async _0x28a9a8=>{const _0x626bcb=_0x104b;(await this[_0x626bcb(0x185)]['requireSession'](_0x28a9a8))[_0x626bcb(0x297)][_0x626bcb(0x3ca)](_0x5d8a56['filter'](_0x29a8ad=>_0x29a8ad[_0x626bcb(0x39a)]===_0x5e5ab1['CollaborationEvent'][_0x626bcb(0x252)]),_0x5d8a56[_0x626bcb(0x260)](this['dispose$']))['subscribe'](_0x789f34=>{const _0x4c02c0=_0x626bcb,_0x1db3f1=_0x789f34,{reason:_0x2338bd}=_0x1db3f1['data'];this[_0x4c02c0(0x126)][_0x4c02c0(0x19d)](_0x4d3c2b[_0x4c02c0(0x36f)])['show']({'type':_0x145b31[_0x4c02c0(0x3de)][_0x4c02c0(0x4b2)],'content':this[_0x4c02c0(0x341)]['t'](_0x4c02c0(0x11e))+'('+_0x2338bd+')'}),this[_0x4c02c0(0x2a0)][_0x4c02c0(0x1a7)](new _0x2d2223[(_0x4c02c0(0x192))](_0x28a9a8)['id'],!0x1),this[_0x4c02c0(0x185)][_0x4c02c0(0x433)](_0x28a9a8);});};_0x4655d9[_0x33b66f(0x1b3)](this[_0x33b66f(0x123)]['getTypeOfUnitAdded$'](_0x58b389[_0x33b66f(0x441)][_0x33b66f(0x2db)]),this['_univerInstanceService'][_0x33b66f(0x2a1)](_0x58b389['UniverInstanceType']['UNIVER_DOC']))[_0x33b66f(0x3ca)](_0x5d8a56['map'](_0x44f3cd=>_0x44f3cd[_0x33b66f(0x2b3)]()),_0x5d8a56['filter'](_0x1b5319=>!_0x58b389[_0x33b66f(0x22f)](_0x1b5319)),_0x5d8a56[_0x33b66f(0x260)](this[_0x33b66f(0x11c)]))['subscribe'](_0x2bf260=>{_0x28e339(_0x2bf260);});}[_0xb893b1(0x298)](){const _0x8aafab=_0xb893b1,_0x308792=async _0x5da2e1=>{const _0x1b029c=_0x104b;(await this[_0x1b029c(0x185)][_0x1b029c(0x213)](_0x5da2e1))[_0x1b029c(0x297)]['pipe'](_0x5d8a56[_0x1b029c(0x1ae)](_0x584645=>_0x584645[_0x1b029c(0x39a)]===_0x5e5ab1[_0x1b029c(0x177)][_0x1b029c(0x38b)]),_0x5d8a56['takeUntil'](this[_0x1b029c(0x11c)]))[_0x1b029c(0x1b6)](_0x1933b7=>{const _0x347024=_0x1b029c,_0x322534=_0x1933b7,{objectId:_0x3e359a}=_0x322534[_0x347024(0x489)],_0x50bd1e=this[_0x347024(0x126)][_0x347024(0x19d)](_0x85ae1c['SheetPermissionInitController']);_0x3e359a===_0x5da2e1?_0x50bd1e[_0x347024(0x3cf)](_0x5da2e1):_0x50bd1e['refreshPermission'](_0x5da2e1,_0x3e359a);});};_0x4655d9[_0x8aafab(0x1b3)](this['_univerInstanceService'][_0x8aafab(0x2a1)](_0x58b389[_0x8aafab(0x441)][_0x8aafab(0x2db)]),this[_0x8aafab(0x123)][_0x8aafab(0x2a1)](_0x58b389[_0x8aafab(0x441)]['UNIVER_DOC']))['pipe'](_0x5d8a56[_0x8aafab(0x44d)](_0x2565b6=>_0x2565b6['getUnitId']()),_0x5d8a56[_0x8aafab(0x1ae)](_0x4da069=>!_0x58b389[_0x8aafab(0x22f)](_0x4da069)),_0x5d8a56[_0x8aafab(0x260)](this['dispose$']))[_0x8aafab(0x1b6)](_0x20dd4c=>{_0x308792(_0x20dd4c);});}};_0x22ab42=_0x46292f([_0x5925ac(0x0,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x1d4)])),_0x5925ac(0x1,_0x58b389[_0xb893b1(0x1d9)]),_0x5925ac(0x2,_0x58b389['IPermissionService']),_0x5925ac(0x3,_0x58b389[_0xb893b1(0x4ac)](_0x3b52c4[_0xb893b1(0x11f)])),_0x5925ac(0x4,_0x58b389[_0xb893b1(0x4ac)](_0x58b389[_0xb893b1(0x4ee)]))],_0x22ab42);var _0x25b27b=Object[_0xb893b1(0x1bc)],_0x57c05e=Object['getOwnPropertyDescriptor'],_0x27e37d=(_0x205453,_0x238b01,_0x4de83f,_0x593b66)=>{const _0x1f3869=_0xb893b1;for(var _0x4676cf=_0x593b66>0x1?void 0x0:_0x593b66?_0x57c05e(_0x238b01,_0x4de83f):_0x238b01,_0x4ffb01=_0x205453[_0x1f3869(0x4d8)]-0x1,_0x5d4f16;_0x4ffb01>=0x0;_0x4ffb01--)(_0x5d4f16=_0x205453[_0x4ffb01])&&(_0x4676cf=(_0x593b66?_0x5d4f16(_0x238b01,_0x4de83f,_0x4676cf):_0x5d4f16(_0x4676cf))||_0x4676cf);return _0x593b66&&_0x4676cf&&_0x25b27b(_0x238b01,_0x4de83f,_0x4676cf),_0x4676cf;},_0x41c74b=(_0x3dbf19,_0x240f7e)=>(_0x1ff4ac,_0x3f3d19)=>_0x240f7e(_0x1ff4ac,_0x3f3d19,_0x3dbf19);_0x3b52c4[_0xb893b1(0x4c0)]=class{constructor(_0x168130,_0x29131a){const _0x56a75f=_0xb893b1;this[_0x56a75f(0x2f3)]=_0x168130,this[_0x56a75f(0x1a9)]=_0x29131a;}async[_0xb893b1(0x453)](_0x14e9cb,_0x36183b){const _0x5a4348=_0xb893b1;var _0x31c181;const {unitID:_0x4433c1,type:_0x3db2b8,revision:_0x2bca7b=0x0}=_0x36183b,_0x204ee6=this[_0x5a4348(0x1bd)]()+'/'+_0x3db2b8+_0x5a4348(0x165)+_0x4433c1+_0x5a4348(0x472)+_0x2bca7b,_0x175725=(await this['_httpService']['get'](_0x204ee6))['body'],_0x1dc919=(_0x31c181=_0x175725['snapshot'])==null?void 0x0:_0x31c181['workbook'];if(_0x1dc919){const _0x18417e=_0x1dc919==null?void 0x0:_0x1dc919['originalMeta'],_0x30360f=_0x5e5ab1['textEncoder'][_0x5a4348(0x2af)](_0x5e5ab1['b64DecodeUnicode'](_0x18417e));_0x1dc919[_0x5a4348(0x2d1)]=_0x30360f,Object[_0x5a4348(0x46f)](_0x1dc919['sheets'])[_0x5a4348(0x3b7)](([,_0x6d5772])=>{const _0xfecb52=_0x5a4348,_0x2bbc4e=_0x6d5772[_0xfecb52(0x2d1)],_0x3088e0=_0x5e5ab1[_0xfecb52(0x363)][_0xfecb52(0x2af)](_0x5e5ab1['b64DecodeUnicode'](_0x2bbc4e));_0x6d5772['originalMeta']=_0x3088e0;});}return _0x175725;}async[_0xb893b1(0x351)](_0x563799,_0x38f019){const _0x13b5b6=_0xb893b1,{unitID:_0x16584f,type:_0x155242,blockID:_0x4ad5b0}=_0x38f019,_0x333fcc=this[_0x13b5b6(0x16c)]()+'/'+_0x155242+_0x13b5b6(0x165)+_0x16584f+_0x13b5b6(0x3c3)+_0x4ad5b0;return(await this[_0x13b5b6(0x1a9)]['get'](_0x333fcc))[_0x13b5b6(0x538)];}async[_0xb893b1(0x511)](_0x441fca,_0xe1f8a5){const _0x4c631d=_0xb893b1,{unitID:_0x59fd7d,type:_0x2455c5,blockID:_0x2bf90c}=_0xe1f8a5,_0x3cac77=this[_0x4c631d(0x16c)]()+_0x4c631d(0x3c3)+_0x2455c5+_0x4c631d(0x165)+_0x59fd7d+_0x4c631d(0x3c3)+_0x2bf90c;return(await this[_0x4c631d(0x1a9)][_0x4c631d(0x19d)](_0x3cac77))[_0x4c631d(0x538)];}async[_0xb893b1(0x33c)](_0x2912c6,_0x2a68df){const _0x2617b0=_0xb893b1,{unitID:_0x9b961d,type:_0x333b46,from:_0x5f5bbd,to:_0x1f4d47}=_0x2a68df,_0x1c1c9f=this[_0x2617b0(0x16c)]()+'/'+_0x333b46+_0x2617b0(0x165)+_0x9b961d+'/fetchmissing?from='+_0x5f5bbd+'&to='+_0x1f4d47;return(await this[_0x2617b0(0x1a9)][_0x2617b0(0x19d)](_0x1c1c9f))[_0x2617b0(0x538)];}[_0xb893b1(0x1bd)](){const _0x455834=_0xb893b1;var _0x5ee374;return(_0x5ee374=this['_configService'][_0x455834(0x22b)](_0x1b06ee))!=null?_0x5ee374:this[_0x455834(0x16c)]();}[_0xb893b1(0x16c)](){const _0x2294f3=_0xb893b1;var _0x4258fd,_0x30bc57;const _0x2b8d4f=this[_0x2294f3(0x2f3)][_0x2294f3(0x22b)](_0x408d14),_0x297e58=this[_0x2294f3(0x2f3)]['getConfig'](_0x271aa0);return(_0x30bc57=(_0x4258fd=_0x297e58==null?void 0x0:_0x297e58[_0x2294f3(0x3c0)])!=null?_0x4258fd:_0x2b8d4f)!=null?_0x30bc57:_0xa386f8;}async[_0xb893b1(0x1e0)](_0x25290b,_0x57a4db){const _0x50dd86=_0xb893b1,_0x562e02=_0x50dd86(0x257)+_0x57a4db[_0x50dd86(0x191)]+_0x50dd86(0x165)+_0x57a4db[_0x50dd86(0x386)]+'/resources';return(await this['_httpService'][_0x50dd86(0x19d)](_0x562e02,{'params':{'resourceId':JSON[_0x50dd86(0x2df)](_0x57a4db[_0x50dd86(0x514)])}}))[_0x50dd86(0x538)];}[_0xb893b1(0x291)](){const _0xe3a491=_0xb893b1;throw new Error(_0xe3a491(0x3cc));}[_0xb893b1(0x21c)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){const _0x2b8e1a=_0xb893b1;throw new Error(_0x2b8e1a(0x3cc));}[_0xb893b1(0x153)](){const _0x16bccf=_0xb893b1;throw new Error(_0x16bccf(0x3cc));}[_0xb893b1(0x1b9)](){const _0xb3bc31=_0xb893b1;throw new Error(_0xb3bc31(0x3cc));}},_0x3b52c4[_0xb893b1(0x4c0)]=_0x27e37d([_0x41c74b(0x0,_0x58b389[_0xb893b1(0x1f6)]),_0x41c74b(0x1,_0x58b389['Inject'](_0x57b255[_0xb893b1(0x1c9)]))],_0x3b52c4[_0xb893b1(0x4c0)]);var _0x3bfeef=Object[_0xb893b1(0x1bc)],_0x8afa55=Object[_0xb893b1(0x490)],_0x3a5fb1=(_0xab26d8,_0x2b174f,_0x1b1c0f,_0x25c65b)=>{const _0x15179b=_0xb893b1;for(var _0x39c7f1=_0x25c65b>0x1?void 0x0:_0x25c65b?_0x8afa55(_0x2b174f,_0x1b1c0f):_0x2b174f,_0x2ddc4d=_0xab26d8[_0x15179b(0x4d8)]-0x1,_0x1aca38;_0x2ddc4d>=0x0;_0x2ddc4d--)(_0x1aca38=_0xab26d8[_0x2ddc4d])&&(_0x39c7f1=(_0x25c65b?_0x1aca38(_0x2b174f,_0x1b1c0f,_0x39c7f1):_0x1aca38(_0x39c7f1))||_0x39c7f1);return _0x25c65b&&_0x39c7f1&&_0x3bfeef(_0x2b174f,_0x1b1c0f,_0x39c7f1),_0x39c7f1;},_0x167dbc=(_0x56ded9,_0x20441f)=>(_0x43419f,_0x1161ca)=>_0x20441f(_0x43419f,_0x1161ca,_0x56ded9);let _0x15acce=class extends _0x58b389[_0xb893b1(0xf9)]{constructor(_0x19730b,_0x9e7b74,_0x374c31,_0x45c8e9,_0x256b12){const _0x4613d=_0xb893b1;super(_0x19730b,_0x9e7b74,_0x374c31),this['_transformService']=_0x45c8e9,this[_0x4613d(0x482)]=_0x256b12;}['transformUndoRedo'](_0x1ba37a,_0x2fa3ce){const _0x1afa61=_0xb893b1,_0x3a1d0c=this[_0x1afa61(0x104)](_0x1ba37a);if(_0x3a1d0c)try{const _0x446d3e=this[_0x1afa61(0x1a2)](_0x3a1d0c,_0x2fa3ce);this[_0x1afa61(0x296)](_0x1ba37a,_0x446d3e);}catch(_0x2e0e68){this[_0x1afa61(0x482)]['error']('[CollaborationUndoRedoService]',_0x2e0e68),this[_0x1afa61(0x14e)](_0x1ba37a);}const _0x316780=this[_0x1afa61(0x2bc)](_0x1ba37a);if(_0x316780)try{const _0xcc773=this[_0x1afa61(0x1a2)](_0x316780,_0x2fa3ce);this[_0x1afa61(0x1f4)](_0x1ba37a,_0xcc773);}catch(_0x166455){this[_0x1afa61(0x482)][_0x1afa61(0x368)](_0x166455),this['_clearRedo'](_0x1ba37a);}}[_0xb893b1(0x14e)](_0x68a403){const _0x11617d=_0xb893b1,_0x31dc24=this['_getUndoStack'](_0x68a403);_0x31dc24&&(_0x31dc24[_0x11617d(0x4d8)]=0x0,this['_updateStatus']());}['_clearRedo'](_0x54f605){const _0xd5d4db=_0xb893b1,_0x1833b8=this['_getRedoStack'](_0x54f605);_0x1833b8&&(_0x1833b8['length']=0x0,this[_0xd5d4db(0x24f)]());}['_substituteUndoStack'](_0x5b23b5,_0x53fe6f){const _0x1c5fad=_0xb893b1;this[_0x1c5fad(0x208)]['set'](_0x5b23b5,_0x53fe6f),this[_0x1c5fad(0x24f)]();}[_0xb893b1(0x1f4)](_0x5bdfbc,_0xfe1f70){const _0x564272=_0xb893b1;this[_0x564272(0x292)]['set'](_0x5bdfbc,_0xfe1f70),this['_updateStatus']();}[_0xb893b1(0x1a2)](_0x1f5bec,_0x22ab5c){const _0x2a27a4=_0xb893b1,_0x2dae4d=[];let _0x3d0d23=_0x22ab5c,_0x13b1ed=_0x22ab5c;for(let _0x64daea=_0x1f5bec[_0x2a27a4(0x4d8)]-0x1;_0x64daea>=0x0;_0x64daea--){const {unitID:_0x26639d,undoMutations:_0x25ae3f,redoMutations:_0xb76fe1}=_0x1f5bec[_0x64daea],_0x1d6ecd=this[_0x2a27a4(0x18d)][_0x2a27a4(0x23b)](_0x3d0d23,_0x25ae3f),_0x28a1c8=this[_0x2a27a4(0x18d)][_0x2a27a4(0x23b)](_0x13b1ed,_0xb76fe1);if(_0x5e5ab1['isTransformMutationsWithChangesetFailure'](_0x1d6ecd)||_0x5e5ab1['isTransformMutationsWithChangesetFailure'](_0x28a1c8)){this[_0x2a27a4(0x482)][_0x2a27a4(0x368)]('[CollaborationUndoRedoService]',_0x2a27a4(0x32d),_0x1d6ecd,_0x28a1c8);break;}_0x3d0d23=_0x1d6ecd[_0x2a27a4(0x388)],_0x13b1ed=_0x28a1c8['c1Prime'],_0x2dae4d['push']({'unitID':_0x26639d,'undoMutations':_0x1d6ecd[_0x2a27a4(0x23f)],'redoMutations':_0x28a1c8[_0x2a27a4(0x23f)]});}return _0x2dae4d[_0x2a27a4(0x46d)]();}};_0x15acce=_0x3a5fb1([_0x167dbc(0x0,_0x58b389[_0xb893b1(0x1d9)]),_0x167dbc(0x1,_0x58b389['ICommandService']),_0x167dbc(0x2,_0x58b389[_0xb893b1(0x4e4)]),_0x167dbc(0x3,_0x5e5ab1[_0xb893b1(0x157)]),_0x167dbc(0x4,_0x58b389['ILogService'])],_0x15acce);class _0x46296f extends _0x58b389[_0xb893b1(0xf8)]{constructor(){const _0x141eb2=_0xb893b1;super(),_0xf1fe43(this,_0x141eb2(0x146)),this[_0x141eb2(0x146)]=_0x4655d9[_0x141eb2(0x47e)](window,_0x141eb2(0x307))['pipe'](_0x4655d9['takeUntil'](this[_0x141eb2(0x11c)]),_0x4655d9['shareReplay'](0x1),_0x4655d9[_0x141eb2(0x36c)](void 0x0));}[_0xb893b1(0x312)](_0x1e01f1,_0x2d7eda,_0x4f4e78=!0x1){const _0x392d92=_0xb893b1,_0x10e60a=new URL(window[_0x392d92(0x129)][_0x392d92(0x288)]);_0x10e60a[_0x392d92(0x12c)][_0x392d92(0x1c2)](_0x1e01f1,_0x2d7eda),_0x4f4e78?window['history']['replaceState']('','',_0x10e60a[_0x392d92(0x540)]()):window['history'][_0x392d92(0x42d)]('','',_0x10e60a[_0x392d92(0x540)]());}[_0xb893b1(0x2cd)](_0x46765d,_0xc4153=!0x1){const _0x43b51d=_0xb893b1,_0x558154=new URL(window[_0x43b51d(0x129)]['href']);_0x558154['searchParams'][_0x43b51d(0x1d0)](_0x46765d),_0xc4153?window[_0x43b51d(0x16d)][_0x43b51d(0x427)]('','',_0x558154[_0x43b51d(0x540)]()):window[_0x43b51d(0x16d)][_0x43b51d(0x42d)]('','',_0x558154[_0x43b51d(0x540)]());}[_0xb893b1(0x237)](_0x53714c){const _0x1149e6=_0xb893b1;var _0x5e21b4;return(_0x5e21b4=new URL(window[_0x1149e6(0x129)][_0x1149e6(0x288)])['searchParams'][_0x1149e6(0x19d)](_0x53714c))!=null?_0x5e21b4:void 0x0;}}var _0x23a4ac=Object['defineProperty'],_0x15c16d=Object[_0xb893b1(0x490)],_0x3c8b59=(_0x252484,_0x53b7ab,_0x2364d3)=>_0x53b7ab in _0x252484?_0x23a4ac(_0x252484,_0x53b7ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2364d3}):_0x252484[_0x53b7ab]=_0x2364d3,_0x4af63c=(_0x401af6,_0x5729ba,_0x2e2a3a,_0x50885f)=>{const _0x40026e=_0xb893b1;for(var _0x317a28=_0x50885f>0x1?void 0x0:_0x50885f?_0x15c16d(_0x5729ba,_0x2e2a3a):_0x5729ba,_0x3ecd68=_0x401af6[_0x40026e(0x4d8)]-0x1,_0x22a585;_0x3ecd68>=0x0;_0x3ecd68--)(_0x22a585=_0x401af6[_0x3ecd68])&&(_0x317a28=(_0x50885f?_0x22a585(_0x5729ba,_0x2e2a3a,_0x317a28):_0x22a585(_0x317a28))||_0x317a28);return _0x50885f&&_0x317a28&&_0x23a4ac(_0x5729ba,_0x2e2a3a,_0x317a28),_0x317a28;},_0xcc721c=(_0x28cdc3,_0x5e9966)=>(_0x4f68ac,_0x5492a9)=>_0x5e9966(_0x4f68ac,_0x5492a9,_0x28cdc3),_0x14126f=(_0x54d2d3,_0x1747c4,_0xd8c5ef)=>_0x3c8b59(_0x54d2d3,_0x1747c4+'',_0xd8c5ef);const _0x319ee2=_0xb893b1(0x4ea);_0x3b52c4[_0xb893b1(0x402)]=class extends _0x58b389[_0xb893b1(0x3fe)]{constructor(_0x2c8232=_0x43c313,_0x290a18,_0x493c3c,_0x33c54a,_0x5020cf){const _0x26d96e=_0xb893b1;super(),this[_0x26d96e(0x28d)]=_0x2c8232,this[_0x26d96e(0x482)]=_0x290a18,this[_0x26d96e(0x508)]=_0x493c3c,this['_injector']=_0x33c54a,this[_0x26d96e(0x2f3)]=_0x5020cf;const {..._0x5cd1ed}=this[_0x26d96e(0x28d)];this[_0x26d96e(0x2f3)][_0x26d96e(0x2c7)](_0x271aa0,_0x5cd1ed);}[_0xb893b1(0x25b)](){const _0x64a12f=_0xb893b1;this[_0x64a12f(0x44b)](),_0x58b389[_0x64a12f(0x3e6)](this[_0x64a12f(0x126)],[[_0x57bda6],[_0x3b52c4[_0x64a12f(0x18c)]],[_0x22ab42]]);}[_0xb893b1(0x10b)](){const _0x40745f=_0xb893b1;_0x58b389[_0x40745f(0x3e6)](this[_0x40745f(0x126)],[[_0x27d9a8]]);}['onRendered'](){const _0x4672f9=_0xb893b1;this[_0x4672f9(0x132)]();}[_0xb893b1(0x44b)](){const _0x2739bc=_0xb893b1;var _0x45b97e,_0x34eb75,_0x2dc0e1,_0xadb069;this[_0x2739bc(0x126)][_0x2739bc(0x2dc)](_0x58b389[_0x2739bc(0x13d)])&&this[_0x2739bc(0x482)][_0x2739bc(0x368)](_0x2739bc(0x435),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x2f2f98=[[_0x58b389[_0x2739bc(0x13d)],{'useClass':_0x15acce}],[_0x3b52c4[_0x2739bc(0x11f)]],[_0x15453c],[_0x57b255['HTTPService']],[_0x2272c6,{'useClass':_0x46296f}],[_0x3b52c4[_0x2739bc(0x384)]],[_0x3b52c4['LocalCacheService']],[_0x57b255[_0x2739bc(0x2ee)]],[_0xc29e66],[_0x5dda6a],[_0x3f6990],[_0x195ff7],[_0x291110],[_0x838442],[_0x5efdb3],[_0x22ab42],[_0x383a5a,{'useClass':(_0x34eb75=(_0x45b97e=this[_0x2739bc(0x28d)])==null?void 0x0:_0x45b97e[_0x2739bc(0x27c)])!=null?_0x34eb75:_0x3b52c4[_0x2739bc(0x374)]}],[_0x57b255[_0x2739bc(0x112)],{'useClass':_0x57b255[_0x2739bc(0x116)]}],[_0x5e5ab1[_0x2739bc(0x37e)],{'useClass':_0x3b52c4[_0x2739bc(0x4c0)]}],[_0x58b389[_0x2739bc(0x4eb)],{'useClass':_0x3b52c4[_0x2739bc(0x29c)]}],[_0x1031ad['IImageIoService'],{'useClass':_0x3b52c4[_0x2739bc(0x38e)]}],[_0x3b52c4[_0x2739bc(0x20c)]],[_0x3b52c4['DataLoaderController']],[_0x3b52c4[_0x2739bc(0x27e)]],[_0x27d9a8],[_0x57bda6]];(_0x2dc0e1=this['_config'])!=null&&_0x2dc0e1[_0x2739bc(0x323)]&&_0x2f2f98[_0x2739bc(0x428)]([_0x8f0d7b,{'useClass':_0x300a07}]),_0x2f2f98=_0x58b389[_0x2739bc(0x531)](_0x2f2f98,(_0xadb069=this[_0x2739bc(0x28d)])==null?void 0x0:_0xadb069[_0x2739bc(0x18e)]),_0x2f2f98[_0x2739bc(0x3b7)](_0x26757f=>this['_injector'][_0x2739bc(0x510)](_0x26757f)),this[_0x2739bc(0x47b)]();}[_0xb893b1(0x132)](){const _0x1b29ed=_0xb893b1;this[_0x1b29ed(0x14b)](this[_0x1b29ed(0x508)][_0x1b29ed(0x119)](_0x58b389[_0x1b29ed(0x441)][_0x1b29ed(0x2d8)],[_0x4f4454])),this[_0x1b29ed(0x14b)](this[_0x1b29ed(0x508)][_0x1b29ed(0x119)](_0x58b389[_0x1b29ed(0x441)][_0x1b29ed(0x2db)],[_0x3b6e5d]));}[_0xb893b1(0x47b)](){const _0x16b922=_0xb893b1;var _0x23f9e2,_0x30bb11;this[_0x16b922(0x126)]['get'](_0x57b255[_0x16b922(0x1c9)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x57b255[_0x16b922(0x4f8)]({'maxParallel':0x6})}),this['_injector']['get'](_0x838442),(_0x23f9e2=this[_0x16b922(0x28d)])!=null&&_0x23f9e2['enableOfflineEditing']||this[_0x16b922(0x126)][_0x16b922(0x19d)](_0x3b52c4[_0x16b922(0x2ff)])[_0x16b922(0x22a)](),(_0x30bb11=this['_config'])!=null&&_0x30bb11[_0x16b922(0x4ed)]&&this[_0x16b922(0x126)][_0x16b922(0x19d)](_0x291110),this[_0x16b922(0x126)][_0x16b922(0x19d)](_0x3b52c4[_0x16b922(0x20c)]),this['_injector'][_0x16b922(0x2dc)](_0x3b52c4[_0x16b922(0x27e)])&&this[_0x16b922(0x126)][_0x16b922(0x19d)](_0x3b52c4[_0x16b922(0x27e)]);}},_0x14126f(_0x3b52c4[_0xb893b1(0x402)],_0xb893b1(0x2f2),_0x319ee2),_0x3b52c4['UniverCollaborationClientPlugin']=_0x4af63c([_0x58b389[_0xb893b1(0x3a9)](_0x5e5ab1[_0xb893b1(0x4b0)]),_0xcc721c(0x1,_0x58b389[_0xb893b1(0x46a)]),_0xcc721c(0x2,_0x1c7683['IRenderManagerService']),_0xcc721c(0x3,_0x58b389[_0xb893b1(0x4ac)](_0x58b389['Injector'])),_0xcc721c(0x4,_0x58b389['IConfigService'])],_0x3b52c4[_0xb893b1(0x402)]),_0x3b52c4['AUTHZ_URL_KEY']=_0x24fd15,_0x3b52c4[_0xb893b1(0x2b4)]=_0x8b953d,_0x3b52c4[_0xb893b1(0x21f)]=_0x4766f5,_0x3b52c4[_0xb893b1(0x108)]=_0x512cbd,_0x3b52c4['CollaborationStatusDisplay']=_0x21b65d,_0x3b52c4[_0xb893b1(0x43c)]=_0x5efdb3,_0x3b52c4[_0xb893b1(0x3e3)]=_0x407e6e,_0x3b52c4[_0xb893b1(0x11d)]=_0x3ceb27,_0x3b52c4['ICollaborationSocketService']=_0x383a5a,_0x3b52c4[_0xb893b1(0x37b)]=_0x2272c6,_0x3b52c4[_0xb893b1(0x3b3)]=_0x2c3e4f,_0x3b52c4[_0xb893b1(0x4ba)]=_0x42bb89,_0x3b52c4[_0xb893b1(0x3df)]=_0x1f388f,_0x3b52c4[_0xb893b1(0x495)]=_0x4e1696,_0x3b52c4['SNAPSHOT_SERVER_URL_KEY']=_0x408d14,_0x3b52c4[_0xb893b1(0x454)]=_0x1b06ee,_0x3b52c4[_0xb893b1(0x4f5)]=_0x442957,_0x3b52c4[_0xb893b1(0x206)]=_0x5bcf49,_0x3b52c4[_0xb893b1(0x34b)]=_0x46296f,_0x3b52c4[_0xb893b1(0x289)]=_0x2039f7,_0x3b52c4[_0xb893b1(0x329)]=_0x5355af,Object[_0xb893b1(0x1bc)](_0x3b52c4,Symbol[_0xb893b1(0x1ff)],{'value':'Module'});}));