@univerjs-pro/collaboration-client 0.4.0-alpha.1 → 0.4.0-alpha.2

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 _0x205f(_0x1cd471,_0x2b5be6){const _0x35a20a=_0x35a2();return _0x205f=function(_0x205ffa,_0x2ca731){_0x205ffa=_0x205ffa-0x8b;let _0x174981=_0x35a20a[_0x205ffa];return _0x174981;},_0x205f(_0x1cd471,_0x2b5be6);}function _0x35a2(){const _0xac9352=['Vector2','submit\x20changeset\x20error!','revision','allowed','_snapshotService','socket\x20close','catch','onStateChange','/rev/','error','_collaborationTimeoutTimer','JOINING','contains','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','[SyncedState]:\x20received\x20rejection.','switchMap','OffLineSingle','url(#on-line-single_clip0_910_349)','roomMembers$','isTransformMutationFailure','HEADER_MENU','focused$','_roomMembers$','some','_userManagerService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','editingUnit','src','runRefRangeMutations','_entityInit$','@univerjs/design','parseProtocolChangeset','Injector','defineProperty','NO_OTHER_CLIENTS_EDITING','disposeWithMe','_handleJoinEvent','_setupSubUnitSync','removeParam','ILocalStorageService','LOCAL_CACHE_INTERVAL_KEY','url(#off-line-single_clip0_910_343)','_docTransformSelectionsService','transformStack\x20failed!','_transformUndoRedoStack','React','selections','row','_singleActiveUnitService','_event$','_incrementRevisionNumber','rxjs','compose','onRemoteAck','onPointerEnter$','[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.','getSheetBySheetId','&source=','reconnect','USERS_ENTER','_entities','_ensureSubject','signUrlServerUrl','_initEventListeners','_exhaustRemoteChangesetQueue','apply','CONFLICT','not_collab','get','updateMember','COLORS','mergeOverrideWithDependencies','_initUnitPermissionChange','current','COMPRESS_MUTATION_SEND','/universer-api/stream/file/upload','UNIVER_SLIDE','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','collabCursorState$','getUnit','_socketService','getUnitType','COLLAB_WEB_SOCKET_URL_KEY','UPDATE_PERMISSION_OBJ','[OfflineState]:\x20received\x20acknowledgement.','getSheetId','lineTo','_shapes','round','BASE64','getOwnPropertySymbols','_clearHeartbeatTimer','UniverCore','UniverEngineRender','handleMoveRange','putCollaborators','getSheetObject','onPointerLeave$','SetDocZoomRatioOperation','CHANGESET_REVISION_CONFILICT','_id','VIEWPORT_KEY','_revisionService','UniverLicense','concatMap','_transformService','getImage','history','setWaitCount','IContextService','onSendChangeset','hasOwnProperty','put','EffectRefRangId','AuthzIoHttpService','getCollabEntity$','[SyncedState]:\x20received\x20acknowledgement.','getColor','_updateStatus','_clearUndo','LIVESHARE_NEW_HOST','_removeRoom','top','_handleEvent','drawWith','/universer-api/snapshot/','indexOf','TOO_MANY_REQUESTS','_applyRemoteChangeset','onTransformIME','_toggleOffline','startRow','_redoStacks','onCommandExecuted','[PendingState]:\x20received\x20rejection.','fillStyle','UniverRpc','HEARTBEAT','IMessageService','_socketMessageSubscription','result','_loadDoc','_sessionStatus$','_backgroundColor','SetSelectionsOperation','getMergeData','sequenceExecute','getCollabEntity','UniverCollaboration','mapDocumentTypeToUniverType','_scheduleTimestamp','toRgbString','action','transformMutationsWithChangeset','clearInterval','cursorInfo$','COMPRESS_MUTATION_APPLY','getCurrentUser','HttpImport','useRef','_logService','_sendHeartbeat','_fetchMissChangesets','_config','transformRemoteChangeset','json','isActive','_removeClearOtherTimer','open$','collaboration_new_changeset','_candidateSocket','CONNECTOR_DATA_TOO_LARGE','_updateSubUnitFromURLParams','subscribeEvent','FAIL','color','2072568Fyydzk','transform','@univerjs-pro/collaboration','_socket','makeDirty','show','PENDING','_stopTelemetryCollaborationNewChangeset','uploadFileServerUrl','_members','@univerjs/rpc','OnLineSingle','touchDependencies','/allowed','YUUMI_URL_COL_OUT_OF_RANGE','_handleLeaveEvent','collaboration-client.offline-data-not-saved','event$','isTransformMutationsWithChangesetSuccess','actions','@univerjs-pro/license','collabStatus.offline','listRoles','colorChannel1','fill','ERROR_IMAGE_TYPE','MessageType','UniverCollaborationClientPlugin','column','UniverInstanceType','status','_undoRedoService','transformSelections','flatMap','setAlpha','shareReplay','telemetry\x20info\x20is\x20not\x20initialized','ISnapshotServerService','_joinRoom','session.collaboration-timeout','_textBubble','MergeInterceptorFactory','Optional','_socket$','save','DeleteRangeMoveUpCommandId','NOT_FOUND','\x20-\x20','fromEventSubject','onRemoteChangeset','_colorAssignService','getOwnPropertyDescriptor','LocalUndoRedoService','deleteCollaborator','5UvEEuQ','AWAITING','_listenToOnlineEvent','evenodd','_color','permission.title','_commentService','@univerjs/ui','CollaborationEntity','UniverSheetsUi','newCsEvent','univer-pro.collaboration-client-socket-service','onTransformRemoteChangesetByIMECache','collaboration.closeRoom','getRenderById','transformMutation','_showConflictNotification','_state$','socket\x20open.','RemoveColCommandId','COLLAB_WEB_SOCKET_URL','@univerjs/telemetry','WebSocketService','_permissionService','DocStateChangeManagerService','getDeserializedSheetBlock','NodePositionConvertToCursor','setParam','_colorIndex','then','forEach','_sheetTransformSelectionsService','userID','getResourcesRequest','resend','FETCH_MISSING','reverse','_sendingTimer','max','onlineStatusTitle','parse','getMemberID','_updateCollabCursors','_retryConnectingTimer','_memberService','getTime','function','rev','INGEST','mapTo','onCommentUpdate','sessionStatus$','_lastPointer','Plugin','_context','CollaborationSessionService','getItem','_draw','className','_checkMissing','YUUMI_RATE_OVER_LIMIT','socket$','liveShareOperation','clearTimeout','NOT_COLLAB','_getSendChangesetTimeout','UserManagerService','origin','COMMENT_UPDATE','_transformSelections','message$','_disabled','filter','isPermissionRej','originalMeta','HEARTBEAT_TIMEOUT','_transformStack','ranges','_onRemoteChangeset','TRANSFORM_CHANGE_OBSERVABLE_TYPE','IBeforeCloseService','getUniverSheetInstance','_getSignURL','measureText','csRejEvent','assign','\x0aCurrent:\x20','amd','key','setInterval','_registerRenderDependencies','c1Prime','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_collabSessionService','parseChangesetToProtocol','enableSingleActiveInstanceLock','collab-text-range-','CollaborationStatus','add','_getUndoStack','createIdentifier','UNIVER_SHEET','DocSelectionManagerService','trim','status$','MoveRangeCommandId','INTERNAL_ERROR','_getAPIPrefixPath','joinEvent','_executeRemoteChangeset','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_updateLocalCache','loadDoc','Univer','_getSnapshotAPIPrefix','off-line-single_clip0_910_343','activeSheet$','rxjs/operators','_unitOnClients','with','merge','ERROR_EXCEED_SIZE','objectID','[OfflineState]:\x20received\x20rejection.','image/bmp','_timeoutTimer','unshift','getMember','replaceState','_anchorDot','LICENSE_DISTRO_REJECTED','incrementRevOfUnit','UNRECOGNIZED','symbol','ACTIVE_UNIT_EVENT_CHANNEL','findNodePositionByCharIndex','IRemoteInstanceService','_getCtorByUniverType','&to=','_substituteUndoStack','takeUntil','transformIMECache','roomMembers','params','getParam','_labelPosition','ImageIoService','fillText','_cursors','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_drawRectRange','append','@univerjs/engine-formula','SYNCED','_startCollaboration','UniverUi','_session','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','currentColor','clear','_beforeCloseService','_transformPreviousActiveRange','UniverDocs','children','OTHER_CLIENTS_EDITING','UNIVER_PROJECT','doc.mutation.rich-text-editing','_initResize','_drawTextRange','SNAPSHOT_HAS_BEEN_REMOVED','moveTo','@univerjs/docs-ui','icon','from','collaboration-client.config','resourceIDs','IAuthzIoService','/role','height','_univerInstanceService','SNAPSHOT_URL_KEY','synced','backgroundColor','APPLY_PERMISSION_DENIED','VIEW_MAIN','enableAuthServer','COLLAB_SUBMIT_CHANGESET_URL_KEY','fromCollab','conflict.title','SnapshotService','[PendingState]:\x20unhandled\x20univer\x20type:\x20','session.will-retry','exports','debug','_onConnectionOpen','HEARTBEAT_INTERVAL_KEY','generateRandomId','subscribe','includes','/unit/','Inject','\x20to\x20','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','encode','text','_initMergeInterceptor','_onCursorUpdate','PERMISSION_DENIED','_disableEditing','UniverTelemetry','distinctUntilChanged','_saveCache','getCurrentUnitForType','collabStatus.conflict','@univerjs/drawing','CollaborationSocketService','call','readAsDataURL','LIVESHARE_TERMINATE','SheetCollaborationEntity','_getCurrentRevision','_type','toString','CollaborationEvent','_http','InsertRangeMoveRightCommandId','_unitStatus','RevisionService','state$','@univerjs/docs','ColorKit','offline','shouldCloseConn','selection','_updateState','PERMISSION_REJ','COMPLETION_FINISHED','/object/','transformChangesets','DocSkeletonManagerService','_initCloseConn','_getAnchorBounding','_updateURLWithCurrentState','assignAColorForMemberID','eventID','DesktopCollaborationStatusDisplayController','handleInsertRangeMoveRight','unit-cache-','_scheduleCollaborationTimeoutTimer','CollaborationController','SEND_CHANGESET_TIMEOUT','beginPath','currentSkeleton$','getActiveSheet','_startTelemetryCollaborationNewChangeset','bottom','getImageSourceCache','min','_scheduleSaving','length','_waitForHeartbeatResponse','createSocket','restore','connection\x20error','unitId\x20is\x20not\x20found','localeService','change$','_getSheetObject','useDependency','storage','_imageSourceCache','_saveTaskMap','failed\x20to\x20apply\x20missed\x20changesets!','UNIVER_DOC','_tryEnsureSocket','unsubscribe','_createInitialStateImpl','textEncoder','onlyLocal','_toggleOnline','Subject','LICENSE_MAX_UNITS_EXCEEDED','onReady','isArray','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','saveImage','createCollaborator','getSkeleton','_remoteChangesetQueue','_httpService','_cachedData','getFocusedUnit','/object','onMouseMove','capture','[CollaborationSessionService]','image/gif','_range','getSheetBlock','_urlService','body','LocaleService','startTime','/universer-api/comb','updateCursorEvent','_handleHeartbeatEvent','number','error$','_setupBeforeClosingHandler','_heartbeatTimer','DEFAULT_FILE_NAME','_handler','addImageSourceCache','visibilitychange','textRanges','univer-pro.collaboration-client.single-active-unit-service','getDocRanges','loginUrlKey','engine','onMissedChangesetFetched','forwardRef','useObservable','_transformRemoteChangesetByIMECache','_snapshotServerService','_startDocCollabCursor','InsertRangeMoveDownCommandId','use','div','_change$','collabStatus.fetchMiss','Undefined','1em','ALREADY_EXISTS','[UniverCollaborationClientPlugin]','_name','_initStatusComponent','fillRule','/universer-api/authz','arc','UPDATE_CURSOR','url(#$1','0\x200\x2016\x2016','ONLINE','/resources','Error\x20on\x20receiving\x20event','conflict.content','off-line-single','_selfUnitIDs','m2Prime','_collaborationSessionService','memberID','prototype','registerRenderModule','extend','USERS_LEAVE','[PendingState]:\x20received\x20acknowledgement.','_telemetryInfo','handleDeleteRangeMoveUp','/universer-api/oidc/authpage','478386SHBiRZ','collaboratorID','asObservable','enableLocalCache','operators','updatePermissionObjEvent','throttleTime','getValue','DocCollaborationEntity','replaceTextRanges','AWAITING_WITH_PENDING','toggleOffline','_clearScheduledTask','m1Prime','_getAPIPrefix','values','SnapshotServerOverHTTPService','handleDeleteRangeMoveLeft','useCallback','reject','ThemeService','gold400','univer-online-status','_loadSheet','post','isValidRectRange','withCredentials','cmd','_init','_onRemoteRejected','getCurrentSelections','_cursorShapes','save\x20fail\x20reason\x20is\x20','_syncEditingCollabCursor','_pendingMutations','loadOfflineData','collabStatus.syncing','getTypeOfUnitDisposed$','ILogService','startColumn','hovered','...','SUCCUSS','awaitingChangeset','setCurrentUser','tag','_retryCount','getAncestorScale','onlineStatus','_cursorInfo$','black','UNIVER_UNKNOWN','session','_collaborationController','onPointerMove$','\x0aAfter:\x20','_state','/universer-api/file/{fileID}/sign-url','registerHTTPInterceptor','unitId','x-univer-host','PSEUDO_FETCH_MISSING_RESULT','list','visibilityState','onTransformSelections','ITransformService','toggleOnline','_schedule','isEditing','_getRedoStack','getWorkbookSelections','UniverDrawing','Tools','disposeUnit','_clearTimeoutTimer','/universer-api/snapshot','fetching\x20missing\x20changesets\x20from\x20','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','replace','_onConflict','debounce','724829zyVcjH','_onUserLeave','_createInitialState','univer-online-status-title','_registerDependencies','HTTPService','UnitSnapshot','getUnitOnRev','SheetCollabCursorShape','getActiveRange','IDLE','_eventUnsubscribe','Warning','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','HELLO','_commentUpdate$','onRemoteRej','_createSocket','LIVESHARE_REQUEST_HOST','WorkbookEditablePermission','_tryReconnect','getInterceptPoints','init','CollaborationStatusDisplay','ImageUploadStatusType','_listenToOfflineEvent','sessionStatus','listCollaborators','_scene','_createHandler','onMissingChangesets','clipPath','split','online','APPLY_REVISION_CONFILICT','InsertColCommandId','transformByState','session.room-full','_transitionLocked','getCellPositionByOffset','getVpScrollXYInfoByPosToVp','now','resize','M0\x200H16V16H0z','updateOfflineData','sheetID','_socketReady','15430gJZpIg','getUnitId','executeCommand','@univerjs/sheets-ui','deepClone','RemoveRowCommandId','idSuffix','@univerjs/engine-render','create','SheetsSelectionsService','concat','appendMutation','_localeService','_ws','_compressMutationService','_getLoginPath','joinRsp','SNAPSHOT_INVALID_SNAPSHOT','push','objectType','UNKNOWN_CMD','LOGIN_URL_KEY','_initStatusListener','DisposableCollection','close$','onload','_assignedColors','addObject','awaiting','_onRefRangeChange','SheetPermissionInitController','_initModules','LICENSE_EXPORT_SIZE_EXCEEDED','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','collaboration-session-retry','_online','csAckEvent','DependentOn','searchParams','_startSheetCollabCursor','displayName','_onMessage','_getUploadFileURL','image/jpeg','getOffsetConfig','collab-text-anchor-','setUndoRedoMutationParamsCache','onStarting','INVALID_ARGUMENT','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','#fff','target','_cursor','commentUpdate$','isInternalEditorID','setTimeout','_onRecvEvent','CollaborationSession','_onLocalMutation','BehaviorSubject','registerComponent','unitID','ITelemetryService','Workbook','ThresholdInterceptorFactory','FileId','RETRY_CONNECTING_MAX_COUNT','[FetchMissState]','_drawAnchor','stopTime','_onUserJoin','LIVESHARE_FETCH_OPERATIONS','CHANGESET_ACK','font','LEAVE','IConfigService','subUnitId','getUnitStatus$','RichTextEditingMutation','data','sheetId','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','requireSession','SUBMIT_CHANGESET','IPermissionService','_onFetchMissResult','_awaitingChangeset','isTransformChangesetsSuccess','/collaborator','?size=','serializeRangeWithSheet','_collabCursorController','_initCommandExecutedListener','onTransformChange$','AUTHZ_URL_KEY','_onRemoteACK','_onOffline','next','complete','_queuedRemoteChangesets','every','all','INotificationService','201MEjFbv','href','_HTTPService','string','_removeCollabCursors','_onJoinRoomEvent','_updateLocalCursor','DataLoaderController','_clearOtherTimers','unknown','has','on-line-single_clip0_910_349','_scheduleClearOtherTimer','url','set','_lockTransition','APPLY_NON_SEQUENTIAL_REVISION','_decreaseWaiting','_render','permission.content','stringify','_isPermissionRej','CompressMutationService','title','entries','getConfig','_instanceService','_onCombEvent','DeleteRangeMoveLeftCommandId','removeMember','_uiPartsService','_docTransformIMECacheService','_configService','attrs','defIds','CommandType','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','dispose$','getCollabCursors$','requestParams','_replayCachedMutations','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','registerBeforeClose','UnitEmbedded','ws://127.0.0.1:8000/universer-api/comb/connect','Error','exhaustSavingTask','IUniverInstanceService','verdancy600','deserializeToCombResponse','updateCollaborator','map','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','path','fetch_missing','fetchThroughInterceptors','xlink:href','UNKNOWN_CODE','handleIRemoveCol','confirm','_hideTimer','_collaborationPaused','code','_undoStacks','workbook','_getMergeRange','createElement','_scheduleHeartbeat','_sendHeartbeatTimer','setActiveRange','_sheetSkeletonManagerService','b64DecodeUnicode','image/png','_messageService','updatePermissionPoint','_transformUndoredo','closePath','collaMsg','?url=','fetchMiss','univer-online','name','urlChange$','_syncEditingCollabCursorService','conflict','UNAUTHENTICATED','substring','NEW_CHANGESETS','@univerjs/core','HttpExport','transformUndoRedo','_localCacheService','downloadEndpointUrl','YUUMI_UNABLE_LOAD_URL','_sessions','saveChangeset','endColumn','CHANGESET_REJ','_onCursorDelete','isTransformMutationsWithChangesetFailure','_status$','_rescheduleHeartbeat','take','saveSheetBlock','patch','toDisposable','0\x200\x2017\x2016','sendChangesetTimeout','WebURLService','IUndoRedoService','_commandService','SEND_CHANGESET_TIMEOUT_KEY','[DataLoaderController]','file','OFFLINE','rgba(255,\x20255,\x20255,\x200.01)','currentTheme$','collabSubmitChangesetUrl','TEXT_RANGE_LAYER_INDEX','5055198PTScwc','state','socketService','[OfflineState]:\x20received\x20changeset.','RefRangeService','_handleHover','purple300','_send','loadSheet','UUID','type','_waitCount','IImageIoService','sheets','registerOnClose','_replaceFileID','XHRHTTPImplementation','_docStateChangeManagerService','triggerDblclick','_unlockTransition','_getScale','IURLService','_roomMembers','subunit','_initRequestHeader','headers','encodeURIComponent','SetWorksheetActivateCommand','createInstance','FromArray','APPLY_REJECT','_renderManagerService','LIVESHARE_OPERATION','syncEditingCollabCursor','_injector','_unitID','_anchor','red300','range','addObjects','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','@univerjs/sheets','objects','_clearRedo','getCurrentRevOfUnit','initWorkbookPermissionChange','resolve','LocalCacheService','pending','getUndoRedoMutationParamsCache','SHOULD_CLOSE_CONN','YUUMI_SUBSCRIPTION_NOT_FOUND','collaborators','whenReady','IRenderManagerService','defs','RECV','_hover','UniverIcon','_collabCursorState$','changesets','snapshotServerUrl','2033160guWDaB','fetchMissingChangesets','saveSnapshot','JOIN','send','c2Prime','hide','_transformIMECache','dispose','slice','_getDownloadEndpointURL','onSyncEditingCollabCursor','UniverDocsUi','#FFF','getRangePointData','unit','closeSession','_throwTelemetryCollaborationNewChangeset','LICENSE_IMPORT_SIZE_EXCEEDED','ERROR_IMAGE','jiqing500','delete','POST','[CollaborationSession]','RxDisposable','setShapeProps','size','_telemetryService','none','newValue','batchAllowed','width','ICommandService','_refreshCollabCursors','location','UniverNetwork','responseType','find','_onConnectionFailed','_docSkeletonManagerService','Module','fromEvent','/-/object/-/batch_allowed','Disposable','reduce','RETRY_CONNECTING_MAX_COUNT_KEY','_shouldReportTelemetry','[CollaborationEntity]','/block/','_hovered','ImageSourceType','@univerjs/network','routeKey','pipe','close','IUIPartsService','handleIRemoveRow','_refRangeService','setItem','baseRev','interceptor','_notificationService','_localStorageService','addEventListener','HEARTBEAT_TIMEOUT_KEY','18526446oxIQFI','react','debounceTime','cursorInfo','collab-client.tooltip.reconnect','_themeService','pluginName','MSG_FOR_ERROR','RegularPolygon','getTypeOfUnitAdded$','ICollaborationSocketService','authzUrl','getCurrent','mutations','SNAPSHOT_SERVER_URL_KEY','commentUpdateEvent','members','collabStatus.notCollab','startsWith','translate(.97)','Rect','delay','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_acknowledgedAwaitingChangeset','_getSaveTimeout','MUTATION','awaiting_with_pending'];_0x35a2=function(){return _0xac9352;};return _0x35a2();}(function(_0xaaf93a,_0x1be2ef){const _0xb017e9=_0x205f,_0x3b8de9=_0xaaf93a();while(!![]){try{const _0x15eb8a=parseInt(_0xb017e9(0x17c))/0x1+parseInt(_0xb017e9(0x1fc))/0x2*(-parseInt(_0xb017e9(0x263))/0x3)+-parseInt(_0xb017e9(0x424))/0x4*(parseInt(_0xb017e9(0x45a))/0x5)+-parseInt(_0xb017e9(0x2da))/0x6+parseInt(_0xb017e9(0x1cd))/0x7+-parseInt(_0xb017e9(0x318))/0x8+parseInt(_0xb017e9(0x359))/0x9;if(_0x15eb8a===_0x1be2ef)break;else _0x3b8de9['push'](_0x3b8de9['shift']());}catch(_0x51dff6){_0x3b8de9['push'](_0x3b8de9['shift']());}}}(_0x35a2,0x7c31e),function(_0x14cc72,_0x2e82e4){const _0x1e02bc=_0x205f;typeof exports=='object'&&typeof module<'u'?_0x2e82e4(exports,require(_0x1e02bc(0x2bb)),require(_0x1e02bc(0x3a7)),require('rxjs/operators'),require(_0x1e02bc(0x392)),require(_0x1e02bc(0x461)),require(_0x1e02bc(0x34b)),require(_0x1e02bc(0x426)),require(_0x1e02bc(0x46f)),require(_0x1e02bc(0xfa)),require(_0x1e02bc(0xc0)),require(_0x1e02bc(0x303)),require(_0x1e02bc(0x203)),require(_0x1e02bc(0xeb)),require(_0x1e02bc(0xac)),require('@univerjs/sheets-ui'),require(_0x1e02bc(0x35a)),require(_0x1e02bc(0x42e)),require(_0x1e02bc(0x438))):typeof define==_0x1e02bc(0x488)&&define[_0x1e02bc(0x4b1)]?define([_0x1e02bc(0xd5),_0x1e02bc(0x2bb),_0x1e02bc(0x3a7),_0x1e02bc(0x4cf),'@univerjs/design',_0x1e02bc(0x461),_0x1e02bc(0x34b),_0x1e02bc(0x426),_0x1e02bc(0x46f),_0x1e02bc(0xfa),_0x1e02bc(0xc0),_0x1e02bc(0x303),_0x1e02bc(0x203),_0x1e02bc(0xeb),'@univerjs/engine-formula',_0x1e02bc(0x1ff),_0x1e02bc(0x35a),_0x1e02bc(0x42e),_0x1e02bc(0x438)],_0x2e82e4):(_0x14cc72=typeof globalThis<'u'?globalThis:_0x14cc72||self,_0x2e82e4(_0x14cc72['UniverCollaborationClient']={},_0x14cc72[_0x1e02bc(0x3d0)],_0x14cc72[_0x1e02bc(0x3a7)],_0x14cc72[_0x1e02bc(0x3a7)][_0x1e02bc(0x180)],_0x14cc72['UniverDesign'],_0x14cc72[_0x1e02bc(0xaf)],_0x14cc72[_0x1e02bc(0x33b)],_0x14cc72[_0x1e02bc(0x408)],_0x14cc72[_0x1e02bc(0xe6)],_0x14cc72[_0x1e02bc(0xb7)],_0x14cc72[_0x1e02bc(0x324)],_0x14cc72['UniverSheets'],_0x14cc72[_0x1e02bc(0x3d1)],_0x14cc72[_0x1e02bc(0x1c3)],_0x14cc72['UniverEngineFormula'],_0x14cc72[_0x1e02bc(0x463)],_0x14cc72[_0x1e02bc(0x3a1)],_0x14cc72[_0x1e02bc(0x3fc)],_0x14cc72[_0x1e02bc(0x3db)]));}(this,function(_0x4c8f94,_0x20df93,_0x284d0,_0x3e7ea3,_0x3206ad,_0x40b1aa,_0x581b3b,_0x55cc56,_0x54d2b5,_0x280e9c,_0x3b39ef,_0x5dce24,_0x1ff35a,_0x1e0c7c,_0x32a48b,_0xf53409,_0x3aba2d,_0x264084,_0x505c0c){'use strict';const _0x144fb0=_0x205f;var _0x9fada5=Object[_0x144fb0(0x395)],_0x209389=(_0x9c03e3,_0x590012,_0x2d0dea)=>_0x590012 in _0x9c03e3?_0x9fada5(_0x9c03e3,_0x590012,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d0dea}):_0x9c03e3[_0x590012]=_0x2d0dea,_0x3e782f=(_0x2eb10d,_0x7b904e,_0x278d31)=>_0x209389(_0x2eb10d,typeof _0x7b904e!=_0x144fb0(0x99)?_0x7b904e+'':_0x7b904e,_0x278d31);const _0x241bd8=_0x144fb0(0x367),_0x534440=_0x144fb0(0x1c7),_0xa047ec=_0x144fb0(0xc9),_0x456d0e=_0x144fb0(0x10f),_0x3c9b9d=_0x144fb0(0x46e),_0x6d4581=_0x144fb0(0x28f),_0x4ffc98='HEARTBEAT_INTERVAL',_0x16ecf3=_0x144fb0(0x4a5),_0x30e871=_0x144fb0(0x23e),_0x1a11f9='LOCAL_CACHE_INTERVAL',_0x546840='COLLAB_SUBMIT_CHANGESET_URL',_0xa3e801=_0x144fb0(0x144),_0x57c1a6=_0x144fb0(0x211),_0x4650cd=_0x144fb0(0x17b);var _0xe677c3=(_0x4c1893=>(_0x4c1893[_0x4c1893['UNDEFINED']=0x0]='UNDEFINED',_0x4c1893[_0x4c1893['OK']=0x1]='OK',_0x4c1893[_0x4c1893[_0x144fb0(0x4c4)]=0x2]=_0x144fb0(0x4c4),_0x4c1893[_0x4c1893[_0x144fb0(0xe4)]=0x3]=_0x144fb0(0xe4),_0x4c1893[_0x4c1893[_0x144fb0(0x452)]=0x4]=_0x144fb0(0x452),_0x4c1893[_0x4c1893['UNAUTHENTICATED']=0x5]=_0x144fb0(0x2b8),_0x4c1893[_0x4c1893[_0x144fb0(0x161)]=0x6]=_0x144fb0(0x161),_0x4c1893[_0x4c1893[_0x144fb0(0x22c)]=0x7]=_0x144fb0(0x22c),_0x4c1893[_0x4c1893[_0x144fb0(0x3f3)]=0x8]=_0x144fb0(0x3f3),_0x4c1893[_0x4c1893[_0x144fb0(0x101)]=0x9]='COMPLETION_FINISHED',_0x4c1893[_0x4c1893['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x144fb0(0x3d7),_0x4c1893[_0x4c1893[_0x144fb0(0x20d)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4c1893[_0x4c1893[_0x144fb0(0xbe)]=0x1772]=_0x144fb0(0xbe),_0x4c1893[_0x4c1893['APPLY_REJECT']=0x1b59]=_0x144fb0(0x2f8),_0x4c1893[_0x4c1893[_0x144fb0(0x273)]=0x1b5a]=_0x144fb0(0x273),_0x4c1893[_0x4c1893[_0x144fb0(0x1ef)]=0x1b5b]=_0x144fb0(0x1ef),_0x4c1893[_0x4c1893[_0x144fb0(0xcc)]=0x1b5c]=_0x144fb0(0xcc),_0x4c1893[_0x4c1893['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x144fb0(0x41f),_0x4c1893[_0x4c1893[_0x144fb0(0x12e)]=0x2329]=_0x144fb0(0x12e),_0x4c1893[_0x4c1893[_0x144fb0(0xa9)]=0x232a]=_0x144fb0(0xa9),_0x4c1893[_0x4c1893[_0x144fb0(0x32a)]=0x232b]=_0x144fb0(0x32a),_0x4c1893[_0x4c1893[_0x144fb0(0x21c)]=0x232c]=_0x144fb0(0x21c),_0x4c1893[_0x4c1893[_0x144fb0(0x96)]=0x232d]=_0x144fb0(0x96),_0x4c1893[_0x4c1893[_0x144fb0(0x2c0)]=0x2711]=_0x144fb0(0x2c0),_0x4c1893[_0x4c1893[_0x144fb0(0x432)]=0x2712]=_0x144fb0(0x432),_0x4c1893[_0x4c1893[_0x144fb0(0x496)]=0x2713]=_0x144fb0(0x496),_0x4c1893[_0x4c1893['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x144fb0(0x30d),_0x4c1893[_0x4c1893[_0x144fb0(0x98)]=-0x1]=_0x144fb0(0x98),_0x4c1893))(_0xe677c3||{}),_0x3dff5a=(_0x4244cc=>(_0x4244cc[_0x4244cc['UNIVER_UNKNOWN']=0x0]=_0x144fb0(0x1af),_0x4244cc[_0x4244cc[_0x144fb0(0x126)]=0x1]=_0x144fb0(0x126),_0x4244cc[_0x4244cc[_0x144fb0(0x4bf)]=0x2]=_0x144fb0(0x4bf),_0x4244cc[_0x4244cc[_0x144fb0(0x3c0)]=0x3]='UNIVER_SLIDE',_0x4244cc[_0x4244cc[_0x144fb0(0xba)]=0x4]=_0x144fb0(0xba),_0x4244cc[_0x4244cc['UNRECOGNIZED']=-0x1]=_0x144fb0(0x98),_0x4244cc))(_0x3dff5a||{}),_0x360af6=(_0x56f7b9=>(_0x56f7b9[_0x56f7b9['UNKNOWN_CMD']=0x0]=_0x144fb0(0x210),_0x56f7b9[_0x56f7b9[_0x144fb0(0x1db)]=0x1]=_0x144fb0(0x1db),_0x56f7b9[_0x56f7b9[_0x144fb0(0x31b)]=0x2]=_0x144fb0(0x31b),_0x56f7b9[_0x56f7b9[_0x144fb0(0x246)]=0x3]='LEAVE',_0x56f7b9[_0x56f7b9[_0x144fb0(0x48a)]=0x4]='INGEST',_0x56f7b9[_0x56f7b9[_0x144fb0(0x3fd)]=0x5]=_0x144fb0(0x3fd),_0x56f7b9[_0x56f7b9['RECV']=0x6]=_0x144fb0(0x312),_0x56f7b9[_0x56f7b9[_0x144fb0(0x98)]=-0x1]=_0x144fb0(0x98),_0x56f7b9))(_0x360af6||{}),_0x535ff4=(_0x115204=>(_0x115204[_0x115204[_0x144fb0(0x29c)]=0x0]='UNKNOWN_CODE',_0x115204[_0x115204['OK']=0x1]='OK',_0x115204[_0x115204[_0x144fb0(0x422)]=0x2]=_0x144fb0(0x422),_0x115204[_0x115204[_0x144fb0(0x98)]=-0x1]=_0x144fb0(0x98),_0x115204))(_0x535ff4||{}),_0x1b99f2=(_0x279b4b=>(_0x279b4b[_0x279b4b[_0x144fb0(0x15f)]=0x0]=_0x144fb0(0x15f),_0x279b4b[_0x279b4b[_0x144fb0(0x412)]=0x1]='HttpImport',_0x279b4b[_0x279b4b[_0x144fb0(0x2bc)]=0x2]=_0x144fb0(0x2bc),_0x279b4b[_0x279b4b[_0x144fb0(0x28e)]=0x3]=_0x144fb0(0x28e),_0x279b4b[_0x279b4b[_0x144fb0(0x1d3)]=0x4]='UnitSnapshot',_0x279b4b[_0x279b4b[_0x144fb0(0x98)]=-0x1]=_0x144fb0(0x98),_0x279b4b))(_0x1b99f2||{});const _0x53057b=_0x144fb0(0xc3),_0x391b0e={};function _0x441743(_0x2cae97){const _0x2d67de=_0x144fb0;var _0x1b4ba0,_0x57f02d,_0x422203,_0x1808ab;const _0x5b8748=_0x2cae97['data'],_0x4c3953=JSON[_0x2d67de(0x482)](_0x5b8748);switch(_0x4c3953[_0x2d67de(0x197)]){case _0x360af6[_0x2d67de(0x3fd)]:case _0x360af6[_0x2d67de(0x1db)]:{const _0x4d31d6=_0x4c3953['infoRsp'];return{..._0x4c3953,'data':_0x4d31d6,'cmd':_0x4c3953[_0x2d67de(0x197)]};}case _0x360af6[_0x2d67de(0x31b)]:{const _0xf7b7f2=_0x4c3953[_0x2d67de(0x20c)];return{..._0x4c3953,'data':_0xf7b7f2,'cmd':_0x4c3953[_0x2d67de(0x197)]};}case _0x360af6[_0x2d67de(0x312)]:{const _0x36e19a=_0x4c3953[_0x2d67de(0x2b0)];switch(_0x36e19a[_0x2d67de(0x109)]){case _0x55cc56[_0x2d67de(0xf4)][_0x2d67de(0x100)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':(_0x1b4ba0=_0x36e19a['permissionRejEvent'])==null?void 0x0:_0x1b4ba0['cs']},'cmd':_0x4c3953['cmd']};case _0x55cc56['CollaborationEvent'][_0x2d67de(0x244)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':(_0x57f02d=_0x36e19a[_0x2d67de(0x220)])==null?void 0x0:_0x57f02d['cs']},'cmd':_0x4c3953[_0x2d67de(0x197)]};case _0x55cc56['CollaborationEvent'][_0x2d67de(0x2ba)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':(_0x422203=_0x36e19a[_0x2d67de(0x464)])==null?void 0x0:_0x422203['cs']},'cmd':_0x4c3953[_0x2d67de(0x197)]};case _0x55cc56['CollaborationEvent'][_0x2d67de(0x2c4)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':(_0x1808ab=_0x36e19a[_0x2d67de(0x4ae)])==null?void 0x0:_0x1808ab['cs']},'cmd':_0x4c3953['cmd']};case _0x55cc56['CollaborationEvent'][_0x2d67de(0x168)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':_0x36e19a[_0x2d67de(0x145)]},'cmd':_0x4c3953[_0x2d67de(0x197)]};case _0x55cc56[_0x2d67de(0xf4)][_0x2d67de(0x3af)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':_0x36e19a[_0x2d67de(0x4c6)]},'cmd':_0x4c3953[_0x2d67de(0x197)]};case _0x55cc56[_0x2d67de(0xf4)][_0x2d67de(0x177)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':_0x36e19a['leaveEvent']},'cmd':_0x4c3953[_0x2d67de(0x197)]};case _0x55cc56[_0x2d67de(0xf4)][_0x2d67de(0x3ec)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':_0x36e19a['liveShareNewHost']},'cmd':_0x4c3953[_0x2d67de(0x197)]};case _0x55cc56[_0x2d67de(0xf4)][_0x2d67de(0x243)]:case _0x55cc56['CollaborationEvent'][_0x2d67de(0x2fa)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':_0x36e19a[_0x2d67de(0x498)]},'cmd':_0x4c3953[_0x2d67de(0x197)]};case _0x55cc56[_0x2d67de(0xf4)][_0x2d67de(0xef)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':_0x36e19a['liveShareNewHost']},'cmd':_0x4c3953[_0x2d67de(0x197)]};case _0x55cc56[_0x2d67de(0xf4)][_0x2d67de(0x360)]:return{..._0x4c3953,'data':_0x36e19a,'cmd':_0x4c3953['cmd']};case _0x55cc56[_0x2d67de(0xf4)][_0x2d67de(0x49e)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':_0x36e19a[_0x2d67de(0x368)]},'cmd':_0x4c3953[_0x2d67de(0x197)]};case _0x55cc56['CollaborationEvent'][_0x2d67de(0x3c7)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':_0x36e19a[_0x2d67de(0x181)]},'cmd':_0x4c3953[_0x2d67de(0x197)]};case _0x55cc56[_0x2d67de(0xf4)][_0x2d67de(0x30c)]:return{..._0x4c3953,'data':{..._0x36e19a,'data':_0x36e19a[_0x2d67de(0xfd)]},'cmd':_0x4c3953[_0x2d67de(0x197)]};default:return _0x4c3953;}}default:return _0x4c3953;}}function _0x2d1c74(_0x34338d){const _0x3b40e3=_0x144fb0;switch(_0x34338d[_0x3b40e3(0x197)]){case _0x360af6[_0x3b40e3(0x3fd)]:case _0x360af6['HELLO']:return JSON['stringify']({'cmd':_0x34338d[_0x3b40e3(0x197)],'routeKey':_0x34338d[_0x3b40e3(0x34c)]});case _0x360af6['INGEST']:{let _0x5d7663;switch(_0x34338d[_0x3b40e3(0x24b)][_0x3b40e3(0x109)]){case _0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0x168)]:{_0x5d7663={'eventID':_0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0x168)],'updateCursorEvent':_0x34338d['data']['data']};break;}case _0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0x177)]:{_0x5d7663={'eventID':_0x55cc56[_0x3b40e3(0xf4)]['USERS_LEAVE'],'leaveEvent':_0x34338d[_0x3b40e3(0x24b)][_0x3b40e3(0x24b)]};break;}case _0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0x3af)]:{_0x5d7663={'eventID':_0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0x3af)],'joinEvent':_0x34338d['data'][_0x3b40e3(0x24b)]};break;}case _0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0x3ec)]:{_0x5d7663={'eventID':_0x55cc56[_0x3b40e3(0xf4)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x34338d[_0x3b40e3(0x24b)]['data']};break;}case _0x55cc56['CollaborationEvent'][_0x3b40e3(0x2fa)]:{_0x5d7663={'eventID':_0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0x2fa)],'liveShareOperation':_0x34338d[_0x3b40e3(0x24b)]['data']};break;}case _0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0xef)]:{_0x5d7663={'eventID':_0x55cc56['CollaborationEvent'][_0x3b40e3(0xef)],'liveShareTerminate':_0x34338d['data'][_0x3b40e3(0x24b)]};break;}case _0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0x1df)]:{_0x5d7663={'eventID':_0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0x1df)],'liveShareRequestHost':_0x34338d[_0x3b40e3(0x24b)][_0x3b40e3(0x24b)]};break;}case _0x55cc56[_0x3b40e3(0xf4)][_0x3b40e3(0x243)]:{_0x5d7663={'eventID':_0x55cc56[_0x3b40e3(0xf4)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x5d7663={'eventID':_0x34338d[_0x3b40e3(0x24b)][_0x3b40e3(0x109)]};}return JSON[_0x3b40e3(0x277)]({'cmd':_0x34338d[_0x3b40e3(0x197)],'routeKey':_0x34338d['routeKey'],'collaMsg':_0x5d7663});}case _0x360af6[_0x3b40e3(0x31b)]:return JSON[_0x3b40e3(0x277)]({'cmd':_0x34338d[_0x3b40e3(0x197)],'routeKey':_0x34338d[_0x3b40e3(0x34c)],'joinReq':_0x34338d[_0x3b40e3(0x24b)]});case _0x360af6[_0x3b40e3(0x246)]:return JSON[_0x3b40e3(0x277)]({'cmd':_0x34338d['cmd'],'routeKey':_0x34338d[_0x3b40e3(0x34c)],'leaveReq':_0x34338d[_0x3b40e3(0x24b)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var _0x200581=Object['defineProperty'],_0x3b1e79=Object[_0x144fb0(0x457)],_0x1d5d6c=(_0x55666f,_0x1e7702,_0x3cb725,_0x336d24)=>{const _0x8e164=_0x144fb0;for(var _0x175df0=_0x336d24>0x1?void 0x0:_0x336d24?_0x3b1e79(_0x1e7702,_0x3cb725):_0x1e7702,_0x32902d=_0x55666f[_0x8e164(0x118)]-0x1,_0x382969;_0x32902d>=0x0;_0x32902d--)(_0x382969=_0x55666f[_0x32902d])&&(_0x175df0=(_0x336d24?_0x382969(_0x1e7702,_0x3cb725,_0x175df0):_0x382969(_0x175df0))||_0x175df0);return _0x336d24&&_0x175df0&&_0x200581(_0x1e7702,_0x3cb725,_0x175df0),_0x175df0;},_0x1f3355=(_0x2cdb0b,_0x37a813)=>(_0x281d8,_0x598df0)=>_0x37a813(_0x281d8,_0x598df0,_0x2cdb0b);const _0x194337=_0x20df93[_0x144fb0(0x4be)](_0x144fb0(0x465));function _0x4c0dff(_0xcbc0fe,_0x3da153,_0x1045b9){return _0xcbc0fe+'/'+_0x3da153+'/unit/'+_0x1045b9+'/new_changes';}_0x4c8f94[_0x144fb0(0xec)]=class extends _0x20df93[_0x144fb0(0x343)]{constructor(_0x28ba54,_0x1b7352,_0x200361,_0x2f37e6,_0x5a7054){const _0x354ea7=_0x144fb0;super(),this['_http']=_0x28ba54,this[_0x354ea7(0x209)]=_0x1b7352,this[_0x354ea7(0x283)]=_0x200361,this[_0x354ea7(0x414)]=_0x2f37e6,this[_0x354ea7(0x158)]=_0x5a7054;}[_0x144fb0(0x11a)](_0xaa3c1){const _0x88f0de=_0x144fb0,_0x2503b8=this[_0x88f0de(0x209)][_0x88f0de(0x11a)](_0xaa3c1);if(!_0x2503b8)throw new Error(_0x88f0de(0x131));const _0x354ad9=new _0x20df93[(_0x88f0de(0x213))](),_0x1fe6b6=new _0x284d0[(_0x88f0de(0x12d))]();_0x354ad9['add'](_0x2503b8['close$'][_0x88f0de(0xda)](_0x33f3c3=>_0x1fe6b6[_0x88f0de(0x25d)](_0x33f3c3))),_0x354ad9[_0x88f0de(0x4bc)](_0x20df93[_0x88f0de(0x2cc)](()=>_0x1fe6b6[_0x88f0de(0x25e)]()));const _0x4af016=new _0x284d0[(_0x88f0de(0x12d))]();_0x354ad9[_0x88f0de(0x4bc)](_0x2503b8[_0x88f0de(0x148)]['subscribe'](_0x5db899=>_0x4af016[_0x88f0de(0x25d)](_0x5db899))),_0x354ad9[_0x88f0de(0x4bc)](_0x20df93['toDisposable'](()=>_0x4af016[_0x88f0de(0x25e)]()));const _0x56a8fa=new _0x284d0[(_0x88f0de(0x12d))]();_0x354ad9[_0x88f0de(0x4bc)](_0x2503b8[_0x88f0de(0x4a0)][_0x88f0de(0xda)](_0x1974f3=>{const _0x54f469=_0x88f0de,_0x5b742c=_0x441743(_0x1974f3);_0x56a8fa[_0x54f469(0x25d)](_0x5b742c);})),_0x354ad9[_0x88f0de(0x4bc)](_0x20df93[_0x88f0de(0x2cc)](()=>_0x56a8fa[_0x88f0de(0x25e)]()));let _0x38d7bf;const _0x3664da=()=>{const _0x4a0682=_0x88f0de;_0x4af016[_0x4a0682(0x25d)](new Event(_0x4a0682(0x11c))),_0x1fe6b6['next'](new CloseEvent(_0x4a0682(0x11c))),_0x38d7bf['close']();};return _0x38d7bf={'memberID':'','close$':_0x1fe6b6[_0x88f0de(0x17e)](),'error$':_0x4af016['asObservable'](),'open$':_0x2503b8[_0x88f0de(0x41c)],'message$':_0x56a8fa[_0x88f0de(0x17e)](),'send':_0x7f6304=>{const _0x577491=_0x88f0de;if(_0x7f6304[_0x577491(0x197)]===_0x360af6[_0x577491(0x48a)]){if(_0x7f6304[_0x577491(0x24b)][_0x577491(0x109)]===_0x55cc56[_0x577491(0xf4)][_0x577491(0x24f)]){this['_submitChangeset'](_0x38d7bf,_0x7f6304['data'])[_0x577491(0x37a)](_0x43254e=>{const _0x401c74=_0x577491;this[_0x401c74(0x414)][_0x401c74(0x37d)](_0x43254e),_0x3664da();});return;}if(_0x7f6304[_0x577491(0x24b)][_0x577491(0x109)]===_0x55cc56['CollaborationEvent'][_0x577491(0x47d)]){const _0x123eb3=_0x7f6304[_0x577491(0x24b)];this['_fetchMissChangesets'](_0x123eb3)[_0x577491(0x477)](_0x11b203=>{const _0x9d1ecf=_0x577491;_0x56a8fa[_0x9d1ecf(0x25d)]({'cmd':_0x360af6[_0x9d1ecf(0x312)],'code':_0x535ff4['OK'],'routeKey':_0x123eb3[_0x9d1ecf(0x24b)][_0x9d1ecf(0x239)],'routeType':'','data':{'eventID':_0x55cc56[_0x9d1ecf(0xf4)][_0x9d1ecf(0x1b9)],'data':{'changesets':_0x11b203}}});})[_0x577491(0x37a)](_0x39dfad=>{const _0x145868=_0x577491;this['_logService'][_0x145868(0x37d)](_0x39dfad),_0x3664da();});return;}}_0x2503b8[_0x577491(0x31c)](_0x2d1c74(_0x7f6304));},'close':()=>{const _0x16e6e1=_0x88f0de;_0x2503b8[_0x16e6e1(0x34e)](),_0x354ad9[_0x16e6e1(0x320)]();}},_0x38d7bf;}async['_submitChangeset'](_0x315386,_0x4f4fd1){const _0xa47fd4=_0x144fb0;var _0x5a59dd,_0x4ad031;const {unitType:_0x392d9a,unitID:_0x4bf2fb,changeset:_0x36580b}=_0x4f4fd1[_0xa47fd4(0x24b)],_0x5500aa={'unitID':_0x4bf2fb,'memberID':_0x315386['memberID'],'type':_0x392d9a,'changeset':_0x55cc56[_0xa47fd4(0x4b8)](_0x36580b)},_0x368f0b=this[_0xa47fd4(0x283)][_0xa47fd4(0x27c)](_0x546840),_0x409f29=this[_0xa47fd4(0x283)]['getConfig'](_0x53057b),_0x8c9bf0=_0x4c0dff((_0x4ad031=(_0x5a59dd=_0x409f29==null?void 0x0:_0x409f29[_0xa47fd4(0x2d8)])!=null?_0x5a59dd:_0x368f0b)!=null?_0x4ad031:_0xa3e801,_0x392d9a,_0x4bf2fb);try{await this[_0xa47fd4(0xf5)][_0xa47fd4(0x194)](_0x8c9bf0,{'body':_0x5500aa});}catch(_0x3322c2){throw this[_0xa47fd4(0x414)][_0xa47fd4(0x37d)](_0xa47fd4(0x32f),_0xa47fd4(0x375)),_0x3322c2;}}async[_0x144fb0(0x416)](_0x1c190b){const _0x3283e9=_0x144fb0,{unitID:_0x51953f,from:_0x5e0eca,to:_0xe276aa,unitType:_0x467e0e}=_0x1c190b[_0x3283e9(0x24b)];return(await this[_0x3283e9(0x158)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x51953f,'type':_0x467e0e,'from':_0x5e0eca,'to':_0xe276aa}))[_0x3283e9(0x316)];}},_0x4c8f94[_0x144fb0(0xec)]=_0x1d5d6c([_0x1f3355(0x0,_0x20df93[_0x144fb0(0xdd)](_0x581b3b[_0x144fb0(0x1d2)])),_0x1f3355(0x1,_0x20df93[_0x144fb0(0xdd)](_0x581b3b[_0x144fb0(0x470)])),_0x1f3355(0x2,_0x20df93[_0x144fb0(0x247)]),_0x1f3355(0x3,_0x20df93[_0x144fb0(0x1a2)]),_0x1f3355(0x4,_0x55cc56[_0x144fb0(0x449)])],_0x4c8f94[_0x144fb0(0xec)]);const _0x4ca916=_0x144fb0(0x41d);function _0x4edee0(_0xf1a9a6){const _0x4c1307=_0x144fb0;return JSON[_0x4c1307(0x277)](_0xf1a9a6)['length'];}class _0x2d13b9{constructor(){const _0x631508=_0x144fb0;_0x3e782f(this,'_commentUpdate$',new _0x284d0[(_0x631508(0x12d))]()),_0x3e782f(this,_0x631508(0x231),this[_0x631508(0x1dc)][_0x631508(0x17e)]());}['onCommentUpdate'](_0x43db49){const _0x385d0f=_0x144fb0;this['_commentUpdate$'][_0x385d0f(0x25d)](_0x43db49);}}var _0x36dca0=Object[_0x144fb0(0x395)],_0x6fcddb=Object[_0x144fb0(0x457)],_0x4a5349=(_0x36050b,_0x134a15,_0x58e2d8,_0x22d4ea)=>{const _0x119772=_0x144fb0;for(var _0x1a69ff=_0x22d4ea>0x1?void 0x0:_0x22d4ea?_0x6fcddb(_0x134a15,_0x58e2d8):_0x134a15,_0x201d9f=_0x36050b[_0x119772(0x118)]-0x1,_0x5a5f5b;_0x201d9f>=0x0;_0x201d9f--)(_0x5a5f5b=_0x36050b[_0x201d9f])&&(_0x1a69ff=(_0x22d4ea?_0x5a5f5b(_0x134a15,_0x58e2d8,_0x1a69ff):_0x5a5f5b(_0x1a69ff))||_0x1a69ff);return _0x22d4ea&&_0x1a69ff&&_0x36dca0(_0x134a15,_0x58e2d8,_0x1a69ff),_0x1a69ff;},_0x2bfd12=(_0x323b0c,_0x1a92b1)=>(_0x201cd6,_0x410610)=>_0x1a92b1(_0x201cd6,_0x410610,_0x323b0c);let _0x513006=class extends _0x20df93[_0x144fb0(0x343)]{constructor(_0x3f713b,_0x4be1ca){const _0x23cfa9=_0x144fb0;super(),_0x3e782f(this,_0x23cfa9(0x2f0),new Map()),(this[_0x23cfa9(0xc8)]=_0x3f713b,this[_0x23cfa9(0x38c)]=_0x4be1ca,this[_0x23cfa9(0x397)](_0x20df93[_0x23cfa9(0x2cc)](_0x284d0['merge'](this[_0x23cfa9(0xc8)][_0x23cfa9(0x1a1)](_0x20df93['UniverInstanceType'][_0x23cfa9(0x4bf)])[_0x23cfa9(0x34d)](_0x3e7ea3[_0x23cfa9(0x296)](_0x1e4ce4=>_0x1e4ce4[_0x23cfa9(0x1fd)]())),this['_univerInstanceService'][_0x23cfa9(0x1a1)](_0x20df93[_0x23cfa9(0x441)][_0x23cfa9(0x126)])[_0x23cfa9(0x34d)](_0x3e7ea3[_0x23cfa9(0x296)](_0x55819b=>_0x55819b[_0x23cfa9(0x1fd)]())),this['_univerInstanceService'][_0x23cfa9(0x1a1)](_0x20df93[_0x23cfa9(0x441)][_0x23cfa9(0x3c0)])[_0x23cfa9(0x34d)](_0x3e7ea3['map'](_0x2bf633=>_0x2bf633[_0x23cfa9(0x1fd)]())))[_0x23cfa9(0xda)](_0x337113=>this[_0x23cfa9(0x3ed)](_0x337113)))));}[_0x144fb0(0x1a8)](_0x4a8911){const _0x324697=_0x144fb0;this[_0x324697(0x38c)]['setCurrentUser'](_0x4a8911);}['getCurrentUser'](){const _0x3052b3=_0x144fb0;return this[_0x3052b3(0x38c)][_0x3052b3(0x411)]();}[_0x144fb0(0x3b9)](_0x5c5c91,_0x4c1dcf){const _0x494e1d=_0x144fb0;let _0x5e52c7=this[_0x494e1d(0x2f0)]['get'](_0x5c5c91);_0x5e52c7||(_0x5e52c7=new _0x52019b(),this[_0x494e1d(0x2f0)][_0x494e1d(0x271)](_0x5c5c91,_0x5e52c7)),_0x5e52c7[_0x494e1d(0x3b9)](_0x4c1dcf);}[_0x144fb0(0x280)](_0xc80015,_0x1736c3){const _0x3c60c9=_0x144fb0,_0x4d0466=this['_roomMembers'][_0x3c60c9(0x3b8)](_0xc80015);_0x4d0466&&_0x4d0466['removeMember'](_0x1736c3);}['getRoom'](_0x3b4abf){const _0x549e49=_0x144fb0;return this[_0x549e49(0x2f0)]['get'](_0x3b4abf);}[_0x144fb0(0x93)](_0x3b0006,_0x13e39b){const _0x4fe92e=_0x144fb0,_0x5afdc7=this[_0x4fe92e(0x2f0)][_0x4fe92e(0x3b8)](_0x3b0006);if(_0x5afdc7)return _0x5afdc7[_0x4fe92e(0x93)](_0x13e39b);}['_removeRoom'](_0xd1c992){const _0x40090c=_0x144fb0,_0x482b35=this['_roomMembers'][_0x40090c(0x3b8)](_0xd1c992);_0x482b35&&(_0x482b35[_0x40090c(0x320)](),this[_0x40090c(0x2f0)]['delete'](_0xd1c992));}[_0x144fb0(0x320)](){const _0x45af9e=_0x144fb0;this['_roomMembers'][_0x45af9e(0x478)](_0x434eed=>_0x434eed[_0x45af9e(0x320)]()),this[_0x45af9e(0x2f0)][_0x45af9e(0xb4)]();}};_0x513006=_0x4a5349([_0x2bfd12(0x0,_0x20df93['IUniverInstanceService']),_0x2bfd12(0x1,_0x20df93['Inject'](_0x20df93[_0x144fb0(0x49c)]))],_0x513006);class _0x52019b extends _0x20df93[_0x144fb0(0x343)]{constructor(){const _0x475173=_0x144fb0;super(...arguments),_0x3e782f(this,_0x475173(0x42d),new Map());}[_0x144fb0(0x320)](){const _0xd40c4b=_0x144fb0;this['_members'][_0xd40c4b(0xb4)]();}[_0x144fb0(0x3b9)](_0x1163c3){const _0x4ab0bc=_0x144fb0;this[_0x4ab0bc(0x42d)][_0x4ab0bc(0x271)](_0x1163c3[_0x4ab0bc(0x173)],_0x1163c3);}[_0x144fb0(0x280)](_0x5922e0){const _0x1cabcf=_0x144fb0;this[_0x1cabcf(0x42d)][_0x1cabcf(0x32d)](_0x5922e0);}[_0x144fb0(0x93)](_0x306614){const _0x194c98=_0x144fb0;return this[_0x194c98(0x42d)][_0x194c98(0x3b8)](_0x306614);}}var _0x3616b3=Object['defineProperty'],_0x15632b=Object['getOwnPropertyDescriptor'],_0x107985=(_0x466821,_0x2d022e,_0x5b7248,_0x3e599d)=>{for(var _0x54156f=_0x3e599d>0x1?void 0x0:_0x3e599d?_0x15632b(_0x2d022e,_0x5b7248):_0x2d022e,_0x5babda=_0x466821['length']-0x1,_0xdc89d9;_0x5babda>=0x0;_0x5babda--)(_0xdc89d9=_0x466821[_0x5babda])&&(_0x54156f=(_0x3e599d?_0xdc89d9(_0x2d022e,_0x5b7248,_0x54156f):_0xdc89d9(_0x54156f))||_0x54156f);return _0x3e599d&&_0x54156f&&_0x3616b3(_0x2d022e,_0x5b7248,_0x54156f),_0x54156f;},_0x17aa41=(_0x22c98b,_0x13245e)=>(_0x4711a0,_0xfc9967)=>_0x13245e(_0x4711a0,_0xfc9967,_0x22c98b),_0x4d48e1=(_0x59bcbb=>(_0x59bcbb[_0x59bcbb[_0x144fb0(0x1d7)]=0x0]=_0x144fb0(0x1d7),_0x59bcbb[_0x59bcbb[_0x144fb0(0x37f)]=0x1]=_0x144fb0(0x37f),_0x59bcbb[_0x59bcbb['OFFLINE']=0x2]=_0x144fb0(0x2d5),_0x59bcbb[_0x59bcbb[_0x144fb0(0x16b)]=0x3]=_0x144fb0(0x16b),_0x59bcbb))(_0x4d48e1||{});_0x4c8f94['CollaborationSession']=class extends _0x20df93[_0x144fb0(0x330)]{constructor(_0x339a8b,_0x1db55b,_0x22fc74,_0x527125,_0xd7a384,_0x3fc79e,_0x2d8b31,_0x199426,_0x31e1e1,_0x107e1e){const _0x3a67cf=_0x144fb0;super(),_0x3e782f(this,_0x3a67cf(0x402),new _0x284d0['BehaviorSubject'](0x0)),_0x3e782f(this,_0x3a67cf(0x48d),this[_0x3a67cf(0x402)][_0x3a67cf(0x17e)]()),_0x3e782f(this,_0x3a67cf(0x3a5),new _0x284d0[(_0x3a67cf(0x12d))]()),_0x3e782f(this,_0x3a67cf(0x435),this[_0x3a67cf(0x3a5)][_0x3a67cf(0x17e)]()),_0x3e782f(this,_0x3a67cf(0x427)),_0x3e782f(this,_0x3a67cf(0x3ff)),_0x3e782f(this,_0x3a67cf(0x37e)),_0x3e782f(this,_0x3a67cf(0x346),!0x1),_0x3e782f(this,_0x3a67cf(0x179),null),(this['_unitID']=_0x339a8b,this[_0x3a67cf(0x414)]=_0x22fc74,this[_0x3a67cf(0xb5)]=_0x527125,this[_0x3a67cf(0x2ac)]=_0xd7a384,this[_0x3a67cf(0x283)]=_0x3fc79e,this['_localeService']=_0x2d8b31,this[_0x3a67cf(0x486)]=_0x199426,this[_0x3a67cf(0x460)]=_0x31e1e1,this[_0x3a67cf(0x333)]=_0x107e1e,this[_0x3a67cf(0x346)]=!!this['_telemetryService'],_0x1db55b['pipe'](_0x284d0[_0x3a67cf(0xa0)](this['dispose$']))['subscribe'](_0x4ff9be=>{const _0x4eb460=_0x3a67cf;var _0x2263da;typeof _0x4ff9be>'u'||(this['_socket']=_0x4ff9be,_0x4ff9be?(this[_0x4eb460(0x44a)](_0x4ff9be),this[_0x4eb460(0x3ff)]=_0x4ff9be[_0x4eb460(0x4a0)][_0x4eb460(0xda)](_0xbbeaae=>{const _0x2c495f=_0x4eb460;_0xbbeaae[_0x2c495f(0x34c)]===this[_0x2c495f(0x2fd)]&&this['_onCombEvent'](_0xbbeaae);})):(this[_0x4eb460(0x329)](),this[_0x4eb460(0x402)][_0x4eb460(0x25d)](0x2),(_0x2263da=this[_0x4eb460(0x3ff)])==null||_0x2263da[_0x4eb460(0x128)](),this[_0x4eb460(0x3ff)]=null));}),this[_0x3a67cf(0x397)](this[_0x3a67cf(0xb5)][_0x3a67cf(0x2e8)](()=>{const _0x10afca=_0x3a67cf;var _0x2dc313;(_0x2dc313=this[_0x10afca(0x427)])==null||_0x2dc313[_0x10afca(0x31c)]({'cmd':_0x360af6[_0x10afca(0x246)],'data':{'roomID':this[_0x10afca(0x2fd)]}});})));}get[_0x144fb0(0x1e7)](){const _0x30a150=_0x144fb0;return this['_sessionStatus$'][_0x30a150(0x183)]();}[_0x144fb0(0x483)](){const _0x37247b=_0x144fb0;var _0x425387,_0xd9c009;return(_0xd9c009=(_0x425387=this[_0x37247b(0x427)])==null?void 0x0:_0x425387[_0x37247b(0x173)])!=null?_0xd9c009:null;}[_0x144fb0(0x320)](){const _0x190e52=_0x144fb0;super['dispose'](),this['dispose$']['next'](),this['dispose$'][_0x190e52(0x25e)]();}['close'](){const _0x401f87=_0x144fb0;var _0x4ab8fa,_0x156c4e;this[_0x401f87(0x329)](),(_0x4ab8fa=this[_0x401f87(0x427)])==null||_0x4ab8fa[_0x401f87(0x31c)]({'cmd':_0x360af6[_0x401f87(0x246)],'data':{'roomID':this[_0x401f87(0x2fd)]}}),(_0x156c4e=this[_0x401f87(0x427)])==null||_0x156c4e[_0x401f87(0x34e)](),this[_0x401f87(0x3a5)]['complete'](),this['_sessionStatus$'][_0x401f87(0x25e)](),this[_0x401f87(0x320)]();}[_0x144fb0(0x27e)](_0x5b57c6){const _0x328944=_0x144fb0;_0x5b57c6[_0x328944(0x197)]===_0x360af6['JOIN']?this['_onJoinRoomEvent'](_0x5b57c6):_0x5b57c6['cmd']===_0x360af6[_0x328944(0x312)]&&this['_onRecvEvent'](_0x5b57c6);}[_0x144fb0(0x44a)](_0x439683){const _0x197cba=_0x144fb0;this[_0x197cba(0x402)][_0x197cba(0x25d)](0x1),_0x439683[_0x197cba(0x31c)]({'cmd':_0x360af6[_0x197cba(0x31b)],'routeKey':this[_0x197cba(0x2fd)],'routeType':'','data':{'rooms':[{'roomID':this[_0x197cba(0x2fd)]}]}});}[_0x144fb0(0x268)](_0x58fd86){const _0x96166d=_0x144fb0;var _0xd4354c;if(_0x58fd86['code']===_0x535ff4[_0x96166d(0x422)]){this[_0x96166d(0x2ac)]['show']({'type':_0x3206ad['MessageType'][_0x96166d(0x1d9)],'content':this[_0x96166d(0x208)]['t'](_0x96166d(0x1f2))}),this[_0x96166d(0x402)][_0x96166d(0x25d)](0x2);return;}this[_0x96166d(0x402)][_0x96166d(0x25d)](0x3);const _0x4bc1d8=(_0xd4354c=_0x58fd86['data']['roomInfos'][this[_0x96166d(0x2fd)]])==null?void 0x0:_0xd4354c[_0x96166d(0x369)];_0x4bc1d8&&_0x4bc1d8['forEach'](_0x19b0fc=>this[_0x96166d(0x486)][_0x96166d(0x3b9)](this[_0x96166d(0x2fd)],_0x19b0fc));}[_0x144fb0(0x234)](_0x290f2e){const _0x3f65df=_0x144fb0;try{const _0x4ced66=_0x290f2e[_0x3f65df(0x24b)];switch(_0x4ced66[_0x3f65df(0x109)]){case _0x55cc56['CollaborationEvent'][_0x3f65df(0x3af)]:this[_0x3f65df(0x242)](_0x4ced66),this[_0x3f65df(0x3a5)][_0x3f65df(0x25d)](_0x4ced66);break;case _0x55cc56[_0x3f65df(0xf4)][_0x3f65df(0x177)]:this['_onUserLeave'](_0x4ced66),this['_event$'][_0x3f65df(0x25d)](_0x4ced66);break;case _0x55cc56['CollaborationEvent'][_0x3f65df(0x244)]:this[_0x3f65df(0x42b)](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x3f65df(0x25d)](_0x4ced66);break;case _0x55cc56['CollaborationEvent'][_0x3f65df(0x360)]:this[_0x3f65df(0x414)][_0x3f65df(0x37d)](_0x3f65df(0x19c)+JSON['stringify'](_0x4ced66)),this[_0x3f65df(0x3a5)]['next'](_0x4ced66);break;case _0x55cc56['CollaborationEvent']['COMMENT_UPDATE']:this[_0x3f65df(0x460)][_0x3f65df(0x48c)](_0x4ced66[_0x3f65df(0x24b)]),this['_event$']['next'](_0x4ced66);break;default:this[_0x3f65df(0x3a5)][_0x3f65df(0x25d)](_0x4ced66);}}catch(_0x538996){this[_0x3f65df(0x414)][_0x3f65df(0x37d)](_0x538996,_0x290f2e);}}[_0x144fb0(0x242)](_0x1dca12){const _0x5d0524=_0x144fb0;this['_memberService'][_0x5d0524(0x3b9)](this[_0x5d0524(0x2fd)],_0x1dca12[_0x5d0524(0x24b)]);}[_0x144fb0(0x1ce)](_0x5ed030){const _0x3127c8=_0x144fb0;this[_0x3127c8(0x486)][_0x3127c8(0x280)](this['_unitID'],_0x5ed030['data'][_0x3127c8(0x173)]);}async['send'](_0x5043a2,_0x34d0b5){const _0x49acf6=_0x144fb0;if(this['sessionStatus']!==0x3||!this[_0x49acf6(0x427)])throw new Error(_0x49acf6(0x38d));try{_0x5043a2[_0x49acf6(0x109)]===_0x55cc56['CollaborationEvent'][_0x49acf6(0x24f)]&&(this[_0x49acf6(0x10d)](),this[_0x49acf6(0x113)](_0x5043a2)),this[_0x49acf6(0x427)]['send']({'cmd':_0x360af6['INGEST'],'routeKey':_0x34d0b5,'routeType':'','data':_0x5043a2});}catch(_0x5697ee){this[_0x49acf6(0x414)]['error'](_0x5697ee);}}[_0x144fb0(0x10d)](){const _0x19c144=_0x144fb0;var _0xbd3e1;this[_0x19c144(0x37e)]=window[_0x19c144(0x233)](()=>{const _0x4cd42a=_0x19c144;this[_0x4cd42a(0x37e)]=null,this[_0x4cd42a(0x2ac)]['show']({'type':_0x3206ad['MessageType']['Error'],'content':this[_0x4cd42a(0x208)]['t'](_0x4cd42a(0x44b))});},(_0xbd3e1=this[_0x19c144(0x283)][_0x19c144(0x27c)](_0x16ecf3))!=null?_0xbd3e1:0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0x3bb628=_0x144fb0;this[_0x3bb628(0x37e)]&&(clearTimeout(this[_0x3bb628(0x37e)]),this[_0x3bb628(0x37e)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x3d1d53){const _0x16e7cd=_0x144fb0;if(!this[_0x16e7cd(0x346)])return;const {data:_0x4e6b93}=_0x3d1d53,{unitID:_0x14a4ad,changeset:_0xca276c}=_0x4e6b93,{mutations:_0x33c3e4,type:_0x4e53fb}=_0xca276c;this[_0x16e7cd(0x179)]={'unitId':_0x14a4ad,'type':_0x4e53fb,'startTime':performance[_0x16e7cd(0x1f6)](),'stopTime':0x0,'duration':0x0,'size':_0x4edee0(_0x33c3e4)};}[_0x144fb0(0x42b)](){const _0x1ae2a6=_0x144fb0;if(this[_0x1ae2a6(0x346)]){if(!this[_0x1ae2a6(0x179)]){this[_0x1ae2a6(0x414)][_0x1ae2a6(0x37d)](_0x1ae2a6(0x32f),_0x1ae2a6(0x448));return;}this[_0x1ae2a6(0x179)][_0x1ae2a6(0x241)]=performance['now'](),this[_0x1ae2a6(0x179)]['duration']=this['_telemetryInfo'][_0x1ae2a6(0x241)]-this['_telemetryInfo'][_0x1ae2a6(0x143)],this[_0x1ae2a6(0x333)][_0x1ae2a6(0x13b)](_0x4ca916,this[_0x1ae2a6(0x179)]),this[_0x1ae2a6(0x179)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){this['_telemetryInfo']=null;}},_0x4c8f94[_0x144fb0(0x235)]=_0x107985([_0x17aa41(0x2,_0x20df93[_0x144fb0(0x1a2)]),_0x17aa41(0x3,_0x40b1aa['IBeforeCloseService']),_0x17aa41(0x4,_0x40b1aa[_0x144fb0(0x3fe)]),_0x17aa41(0x5,_0x20df93['IConfigService']),_0x17aa41(0x6,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x142)])),_0x17aa41(0x7,_0x20df93[_0x144fb0(0xdd)](_0x513006)),_0x17aa41(0x8,_0x20df93['Inject'](_0x2d13b9)),_0x17aa41(0x9,_0x20df93[_0x144fb0(0x44e)](_0x54d2b5[_0x144fb0(0x23a)]))],_0x4c8f94['CollaborationSession']);var _0xd7b217=Object[_0x144fb0(0x395)],_0x1a1139=Object[_0x144fb0(0x457)],_0x5e97e1=(_0x4b3695,_0x10dbf7,_0x274041,_0x541ece)=>{const _0x5465c0=_0x144fb0;for(var _0x163f41=_0x541ece>0x1?void 0x0:_0x541ece?_0x1a1139(_0x10dbf7,_0x274041):_0x10dbf7,_0x2edf98=_0x4b3695[_0x5465c0(0x118)]-0x1,_0x2f75f7;_0x2edf98>=0x0;_0x2edf98--)(_0x2f75f7=_0x4b3695[_0x2edf98])&&(_0x163f41=(_0x541ece?_0x2f75f7(_0x10dbf7,_0x274041,_0x163f41):_0x2f75f7(_0x163f41))||_0x163f41);return _0x541ece&&_0x163f41&&_0xd7b217(_0x10dbf7,_0x274041,_0x163f41),_0x163f41;},_0x3a1e06=(_0x15d17d,_0x439b21)=>(_0x3ca2db,_0x4a3852)=>_0x439b21(_0x3ca2db,_0x4a3852,_0x15d17d);_0x4c8f94[_0x144fb0(0x491)]=class extends _0x20df93['Disposable']{constructor(_0x23ff0e,_0x58d011,_0x31b136,_0x3a8932,_0x3f6763,_0xfa4077){const _0x167b76=_0x144fb0;super(),_0x3e782f(this,'_socket$',new _0x284d0['BehaviorSubject'](void 0x0)),_0x3e782f(this,_0x167b76(0x497),this[_0x167b76(0x44f)][_0x167b76(0x17e)]()),_0x3e782f(this,_0x167b76(0x41e),null),_0x3e782f(this,'_sessions',new Map()),_0x3e782f(this,'_status$',new _0x284d0[(_0x167b76(0x237))](_0x4d48e1[_0x167b76(0x1d7)])),_0x3e782f(this,_0x167b76(0x4c2),this[_0x167b76(0x2c7)][_0x167b76(0x17e)]()),_0x3e782f(this,_0x167b76(0x1fb),!0x1),_0x3e782f(this,'_retryConnectingTimer'),_0x3e782f(this,'_retryCount',0x0),_0x3e782f(this,_0x167b76(0x2a7)),_0x3e782f(this,'_timeoutTimer'),(this[_0x167b76(0x2fc)]=_0x23ff0e,this[_0x167b76(0x208)]=_0x58d011,this[_0x167b76(0x2ac)]=_0x31b136,this[_0x167b76(0x414)]=_0x3a8932,this['_configService']=_0x3f6763,this[_0x167b76(0x3c4)]=_0xfa4077,this[_0x167b76(0x3b3)]());}get[_0x144fb0(0x427)](){const _0x20033d=_0x144fb0;return this[_0x20033d(0x44f)][_0x20033d(0x183)]();}[_0x144fb0(0x3b3)](){const _0x713295=_0x144fb0;this['_listenToOfflineEvent'](),this[_0x713295(0x45c)]();}['dispose'](){const _0x181dc5=_0x144fb0;super[_0x181dc5(0x320)](),this[_0x181dc5(0x2c1)][_0x181dc5(0x478)](_0x33dee0=>_0x33dee0[_0x181dc5(0x320)]()),this[_0x181dc5(0x2c1)]['clear'](),this[_0x181dc5(0x2c7)][_0x181dc5(0x25e)]();}async[_0x144fb0(0x24e)](_0x3031f7){const _0x34748a=_0x144fb0;if(this[_0x34748a(0x2c1)][_0x34748a(0x26d)](_0x3031f7))return this[_0x34748a(0x2c1)][_0x34748a(0x3b8)](_0x3031f7);this['_tryEnsureSocket']();const _0x30909d=this['_injector'][_0x34748a(0x2f6)](_0x4c8f94['CollaborationSession'],_0x3031f7,this[_0x34748a(0x44f)]['asObservable']());return this[_0x34748a(0x2c1)]['set'](_0x3031f7,_0x30909d),_0x30909d;}[_0x144fb0(0x328)](_0x286823){const _0xff6a2f=_0x144fb0;var _0x594f11;const _0x31f123=this[_0xff6a2f(0x2c1)]['get'](_0x286823);_0x31f123&&(this[_0xff6a2f(0x2c1)][_0xff6a2f(0x32d)](_0x286823),_0x31f123[_0xff6a2f(0x34e)]()),this[_0xff6a2f(0x2c1)][_0xff6a2f(0x332)]||(_0x594f11=this['_socket'])==null||_0x594f11[_0xff6a2f(0x34e)]();}[_0x144fb0(0x3ae)](){const _0x7ba4cf=_0x144fb0;this[_0x7ba4cf(0x1aa)]=0x0,this[_0x7ba4cf(0x485)]!=null&&(clearTimeout(this[_0x7ba4cf(0x485)]),this[_0x7ba4cf(0x485)]=null),this[_0x7ba4cf(0x1e1)]();}[_0x144fb0(0x1de)](){const _0x512c2c=_0x144fb0;var _0x349ba7,_0x23bb65;const _0x37a932=this[_0x512c2c(0x283)]['getConfig'](_0x3c9b9d),_0x45dc3d=this[_0x512c2c(0x283)][_0x512c2c(0x27c)](_0x53057b),_0x23d16c=(_0x23bb65=(_0x349ba7=_0x45dc3d==null?void 0x0:_0x45dc3d['collabWebSocketUrl'])!=null?_0x349ba7:_0x37a932)!=null?_0x23bb65:_0x6d4581,_0x5eddb8=this[_0x512c2c(0x3c4)][_0x512c2c(0x11a)](_0x23d16c);return this[_0x512c2c(0x41e)]=_0x5eddb8,_0x5eddb8;}[_0x144fb0(0x127)](){const _0x40ea6d=_0x144fb0;var _0x75cc3b,_0x2e53be;try{const _0x5b2db9=(_0x2e53be=(_0x75cc3b=this[_0x40ea6d(0x427)])!=null?_0x75cc3b:this[_0x40ea6d(0x41e)])!=null?_0x2e53be:this[_0x40ea6d(0x1de)]();if(_0x5b2db9){const _0x33ba45=_0x5b2db9[_0x40ea6d(0x31c)];_0x5b2db9[_0x40ea6d(0x31c)]=_0x1667de=>(this['_rescheduleHeartbeat'](),_0x33ba45[_0x40ea6d(0x3b5)](_0x5b2db9,[_0x1667de])),_0x5b2db9[_0x40ea6d(0x4a0)]['subscribe'](_0x375bc9=>this[_0x40ea6d(0x225)](_0x5b2db9,_0x375bc9)),_0x5b2db9[_0x40ea6d(0x148)][_0x40ea6d(0x34d)](_0x3e7ea3[_0x40ea6d(0x2c9)](0x1))[_0x40ea6d(0xda)](_0x1f870a=>this[_0x40ea6d(0x414)][_0x40ea6d(0x37d)]('[CollaborationSessionService]:\x20socket\x20error',_0x1f870a)),_0x5b2db9['open$'][_0x40ea6d(0x34d)](_0x3e7ea3[_0x40ea6d(0x2c9)](0x1))[_0x40ea6d(0xda)](()=>{const _0x1bd87e=_0x40ea6d;this[_0x1bd87e(0xd7)](_0x5b2db9);}),_0x5b2db9[_0x40ea6d(0x214)][_0x40ea6d(0x34d)](_0x3e7ea3['take'](0x1))[_0x40ea6d(0xda)](_0x5980a9=>{const _0xe76264=_0x40ea6d;this[_0xe76264(0x414)][_0xe76264(0xd6)](_0xe76264(0x13c),_0xe76264(0x379),_0x5980a9),this[_0xe76264(0x33e)]();});}}catch(_0x518eab){this[_0x40ea6d(0x414)][_0x40ea6d(0x37d)](_0x518eab),this[_0x40ea6d(0x33e)]();}}[_0x144fb0(0xd7)](_0x3fac52){const _0x5e5cb6=_0x144fb0;this[_0x5e5cb6(0x414)][_0x5e5cb6(0xd6)](_0x5e5cb6(0x13c),_0x5e5cb6(0x46c)),_0x3fac52[_0x5e5cb6(0x31c)]({'cmd':_0x360af6[_0x5e5cb6(0x1db)]}),this[_0x5e5cb6(0x2c8)]();}[_0x144fb0(0x1e6)](){const _0x542271=_0x144fb0;window['addEventListener'](_0x542271(0xfc),()=>this[_0x542271(0x25c)]());}[_0x144fb0(0x25c)](){const _0x4d0086=_0x144fb0;this['_socketReady']=!0x1,this[_0x4d0086(0x41e)]=null,this[_0x4d0086(0x2c7)][_0x4d0086(0x25d)](_0x4d48e1['OFFLINE']),this[_0x4d0086(0x44f)][_0x4d0086(0x25d)](null),this[_0x4d0086(0x1c6)](),this[_0x4d0086(0x3cf)]();}[_0x144fb0(0x33e)](){const _0x539acd=_0x144fb0;var _0x58986d;this['_onOffline'](),this[_0x539acd(0x1aa)]<((_0x58986d=this['_configService'][_0x539acd(0x27c)](_0x30e871))!=null?_0x58986d:0x3)?(this[_0x539acd(0x2ac)][_0x539acd(0x429)]({'key':_0x539acd(0x21e),'type':_0x3206ad[_0x539acd(0x43e)]['Warning'],'content':this[_0x539acd(0x208)]['t'](_0x539acd(0xd4))}),this[_0x539acd(0x1e1)]()):this[_0x539acd(0x2ac)]['show']({'key':_0x539acd(0x21e),'type':_0x3206ad['MessageType'][_0x539acd(0x290)],'content':this[_0x539acd(0x208)]['t']('session.connection-failed')});}[_0x144fb0(0x45c)](){const _0x22af28=_0x144fb0,_0x5d86c5=()=>{const _0x4c3b14=_0x205f;this[_0x4c3b14(0x427)]||this[_0x4c3b14(0x3ae)]();},_0x429d0d=()=>{const _0x39f218=_0x205f;this[_0x39f218(0x427)]||document[_0x39f218(0x1bb)]==='hidden'||this[_0x39f218(0x3ae)]();};window[_0x22af28(0x357)](_0x22af28(0x1ee),_0x5d86c5),document['addEventListener'](_0x22af28(0x14e),_0x429d0d);}[_0x144fb0(0x1e1)](){const _0x47bc01=_0x144fb0;var _0x1e6504;const _0x51d06a=this['_retryCount'],_0x4c4881=this['_configService'][_0x47bc01(0x27c)](_0x53057b),_0x516188=_0x51d06a===0x0?0x0:((_0x1e6504=_0x4c4881==null?void 0x0:_0x4c4881['retryConnectingInterval'])!=null?_0x1e6504:0x4e20)*0x2**_0x51d06a;this['_retryConnectingTimer']=window[_0x47bc01(0x233)](()=>{const _0x4d32b0=_0x47bc01;clearTimeout(this[_0x4d32b0(0x485)]),this['_retryConnectingTimer']=null,this[_0x4d32b0(0x127)]();},_0x516188),this['_retryCount']+=0x1;}['_onMessage'](_0x5cb69a,_0x41f06f){const _0x5f1523=_0x144fb0,{cmd:_0x2fb57f}=_0x41f06f;_0x2fb57f===_0x360af6[_0x5f1523(0x1db)]&&!this[_0x5f1523(0x1fb)]&&(_0x5cb69a[_0x5f1523(0x173)]=_0x41f06f[_0x5f1523(0x24b)][_0x5f1523(0x173)],this[_0x5f1523(0x44f)][_0x5f1523(0x25d)](_0x5cb69a),this['_status$']['next'](_0x4d48e1[_0x5f1523(0x16b)]),this['_socketReady']=!0x0,this['_candidateSocket']=null),_0x2fb57f===_0x360af6[_0x5f1523(0x3fd)]&&this[_0x5f1523(0x1c6)](),this[_0x5f1523(0x2c8)]();}[_0x144fb0(0x2c8)](){const _0x54a887=_0x144fb0;var _0x25a571;this[_0x54a887(0x3cf)](),this['_sendHeartbeatTimer']=window[_0x54a887(0x233)](()=>this[_0x54a887(0x415)](),(_0x25a571=this[_0x54a887(0x283)][_0x54a887(0x27c)](_0x4ffc98))!=null?_0x25a571:0x7530);}[_0x144fb0(0x415)](){const _0x31ea07=_0x144fb0;this[_0x31ea07(0x427)][_0x31ea07(0x31c)]({'cmd':_0x360af6[_0x31ea07(0x3fd)]}),this[_0x31ea07(0x119)]();}[_0x144fb0(0x119)](){const _0x242d84=_0x144fb0;var _0x349d23;this[_0x242d84(0x91)]=window[_0x242d84(0x233)](()=>this[_0x242d84(0x33e)](),(_0x349d23=this[_0x242d84(0x283)][_0x242d84(0x27c)](_0x16ecf3))!=null?_0x349d23:0x4e20);}[_0x144fb0(0x3cf)](){const _0x4e2e68=_0x144fb0;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x4e2e68(0x2a7)]),this[_0x4e2e68(0x2a7)]=null);}[_0x144fb0(0x1c6)](){const _0x293a1f=_0x144fb0;this[_0x293a1f(0x91)]!=null&&(clearTimeout(this[_0x293a1f(0x91)]),this[_0x293a1f(0x91)]=null);}},_0x4c8f94[_0x144fb0(0x491)]=_0x5e97e1([_0x3a1e06(0x0,_0x20df93[_0x144fb0(0xdd)](_0x20df93['Injector'])),_0x3a1e06(0x1,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x142)])),_0x3a1e06(0x2,_0x40b1aa[_0x144fb0(0x3fe)]),_0x3a1e06(0x3,_0x20df93[_0x144fb0(0x1a2)]),_0x3a1e06(0x4,_0x20df93[_0x144fb0(0x247)]),_0x3a1e06(0x5,_0x194337)],_0x4c8f94[_0x144fb0(0x491)]);var _0x41606f=Object[_0x144fb0(0x395)],_0x433de5=Object[_0x144fb0(0x457)],_0x5a7070=(_0xec2c06,_0x31c124,_0x3fa4af,_0x495a0a)=>{const _0x412585=_0x144fb0;for(var _0x20a617=_0x495a0a>0x1?void 0x0:_0x495a0a?_0x433de5(_0x31c124,_0x3fa4af):_0x31c124,_0x310e97=_0xec2c06[_0x412585(0x118)]-0x1,_0x2d2cc9;_0x310e97>=0x0;_0x310e97--)(_0x2d2cc9=_0xec2c06[_0x310e97])&&(_0x20a617=(_0x495a0a?_0x2d2cc9(_0x31c124,_0x3fa4af,_0x20a617):_0x2d2cc9(_0x20a617))||_0x20a617);return _0x495a0a&&_0x20a617&&_0x41606f(_0x31c124,_0x3fa4af,_0x20a617),_0x20a617;},_0x1f1028=(_0x56cb26,_0x5b2a4e)=>(_0x37d7bc,_0x1faabd)=>_0x5b2a4e(_0x37d7bc,_0x1faabd,_0x56cb26);let _0x57c1cf=class{constructor(_0x7e20d3,_0x5f0003,_0x54bfe1){const _0x5a3c0e=_0x144fb0;this[_0x5a3c0e(0x2fc)]=_0x7e20d3,this[_0x5a3c0e(0x3dd)]=_0x5f0003,this[_0x5a3c0e(0x2f9)]=_0x54bfe1;}[_0x144fb0(0xa1)](_0x214703){const _0x4faaeb=_0x144fb0;this[_0x4faaeb(0x3a0)](_0x214703),this[_0x4faaeb(0xb6)](_0x214703);}[_0x144fb0(0x418)](_0x461f88){const _0xfcea0d=_0x144fb0,{unitID:_0x2895a0}=_0x461f88,_0x52ef49=this[_0xfcea0d(0x2f9)][_0xfcea0d(0x468)](_0x2895a0)[_0xfcea0d(0x8b)](_0x3b39ef['DocIMEInputManagerService']),{redoCache:_0x1b97f0}=_0x52ef49[_0xfcea0d(0x30b)]();if(_0x1b97f0[_0xfcea0d(0x118)]===0x0)return _0x461f88;let _0x38f67e=_0x20df93[_0xfcea0d(0x1c4)][_0xfcea0d(0x200)](_0x461f88[_0xfcea0d(0x366)][0x0]);for(let _0x56d24d=0x0;_0x56d24d<_0x1b97f0[_0xfcea0d(0x118)];_0x56d24d++){const _0x1c641f={'id':_0xfcea0d(0xbb),'params':{..._0x1b97f0[_0x56d24d]}},_0x516417=this[_0xfcea0d(0x3dd)][_0xfcea0d(0x469)](_0x38f67e,_0x1c641f,!0x1);if(_0x55cc56[_0xfcea0d(0x387)](_0x516417))throw _0x516417['error'];_0x38f67e=_0x516417[_0xfcea0d(0x189)];}return{..._0x20df93[_0xfcea0d(0x1c4)][_0xfcea0d(0x200)](_0x461f88),'mutations':[_0x38f67e]};}[_0x144fb0(0x3a0)](_0x4e30cf){const _0x272453=_0x144fb0,{unitID:_0x23bac7}=_0x4e30cf,_0x536310=this[_0x272453(0x2f9)][_0x272453(0x468)](_0x23bac7)[_0x272453(0x8b)](_0x3b39ef['DocIMEInputManagerService']),{undoCache:_0x539302,redoCache:_0x18cceb}=_0x536310['getUndoRedoMutationParamsCache']();if(_0x539302['length']===0x0||_0x18cceb[_0x272453(0x118)]===0x0)return;const _0x5f009e=[],_0x20dc90=[];let _0x4e34d3=_0x20df93['Tools'][_0x272453(0x200)](_0x4e30cf[_0x272453(0x366)][0x0]),_0x1fe011=_0x20df93[_0x272453(0x1c4)]['deepClone'](_0x4e30cf[_0x272453(0x366)][0x0]);for(let _0x4e7604=_0x539302['length']-0x1;_0x4e7604>=0x0;_0x4e7604--){const _0x129931={'id':'doc.mutation.rich-text-editing','params':{..._0x539302[_0x4e7604]}},_0x561031={'id':'doc.mutation.rich-text-editing','params':{..._0x18cceb[_0x4e7604]}},_0x584d17=this[_0x272453(0x3dd)][_0x272453(0x469)](_0x4e34d3,_0x129931,!0x1),_0x670229=this[_0x272453(0x3dd)]['transformMutation'](_0x1fe011,_0x561031,!0x1);if(_0x55cc56[_0x272453(0x387)](_0x584d17))throw _0x584d17[_0x272453(0x37d)];if(_0x55cc56['isTransformMutationFailure'](_0x670229))throw _0x670229[_0x272453(0x37d)];_0x5f009e['unshift'](_0x584d17[_0x272453(0x171)][_0x272453(0xa3)]),_0x20dc90[_0x272453(0x92)](_0x670229[_0x272453(0x171)][_0x272453(0xa3)]),_0x4e34d3=_0x584d17[_0x272453(0x189)],_0x1fe011=_0x670229[_0x272453(0x189)];}_0x536310[_0x272453(0x22a)]({'undoCache':_0x5f009e,'redoCache':_0x20dc90});}[_0x144fb0(0xb6)](_0x1d7531){const _0x3ea6ce=_0x144fb0,{unitID:_0xd39cfa}=_0x1d7531,_0x35d8ba=this[_0x3ea6ce(0x2f9)]['getRenderById'](_0xd39cfa)[_0x3ea6ce(0x8b)](_0x3b39ef['DocIMEInputManagerService']),_0x1966b2=_0x35d8ba[_0x3ea6ce(0x1d6)]();if(_0x1966b2==null)return;const _0x495c86=[{'id':_0x3ea6ce(0xbb),'params':{'unitId':_0x1d7531[_0x3ea6ce(0x239)],'actions':null,'textRanges':[_0x1966b2]}}],_0x4bcc58=this[_0x3ea6ce(0x3dd)]['transformMutationsWithChangeset'](_0x1d7531,_0x495c86);if(!_0x55cc56[_0x3ea6ce(0x436)](_0x4bcc58))throw _0x4bcc58[_0x3ea6ce(0x37d)];const _0x3552ef=_0x4bcc58[_0x3ea6ce(0x171)][0x0][_0x3ea6ce(0xa3)][_0x3ea6ce(0x14f)];Array[_0x3ea6ce(0x130)](_0x3552ef)&&_0x3552ef[_0x3ea6ce(0x118)]&&_0x35d8ba[_0x3ea6ce(0x2a8)](_0x3552ef[0x0]);}};_0x57c1cf=_0x5a7070([_0x1f1028(0x0,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x394)])),_0x1f1028(0x1,_0x55cc56[_0x144fb0(0x1bd)]),_0x1f1028(0x2,_0x1ff35a[_0x144fb0(0x310)])],_0x57c1cf);var _0x42022a=Object[_0x144fb0(0x395)],_0x259491=Object[_0x144fb0(0x457)],_0x2d0945=(_0x169bf1,_0x596778,_0x1406c2,_0x418e1d)=>{const _0x3be2dd=_0x144fb0;for(var _0x4de9cd=_0x418e1d>0x1?void 0x0:_0x418e1d?_0x259491(_0x596778,_0x1406c2):_0x596778,_0x11cdb0=_0x169bf1[_0x3be2dd(0x118)]-0x1,_0x23510c;_0x11cdb0>=0x0;_0x11cdb0--)(_0x23510c=_0x169bf1[_0x11cdb0])&&(_0x4de9cd=(_0x418e1d?_0x23510c(_0x596778,_0x1406c2,_0x4de9cd):_0x23510c(_0x4de9cd))||_0x4de9cd);return _0x418e1d&&_0x4de9cd&&_0x42022a(_0x596778,_0x1406c2,_0x4de9cd),_0x4de9cd;},_0x52e744=(_0x2914c1,_0x1813f1)=>(_0x3266f7,_0x338bac)=>_0x1813f1(_0x3266f7,_0x338bac,_0x2914c1);_0x4c8f94[_0x144fb0(0x309)]=class extends _0x20df93[_0x144fb0(0x343)]{constructor(_0x34d4d5,_0xd124fe,_0x576cc9,_0x4222da,_0xc94ee){const _0xeeeee7=_0x144fb0;super(),_0x3e782f(this,_0xeeeee7(0x137),new Map()),_0x3e782f(this,'_saveTaskMap',new Map()),_0x3e782f(this,'_disabled',!0x1),(this[_0xeeeee7(0x283)]=_0x34d4d5,this['_localStorageService']=_0xd124fe,this[_0xeeeee7(0xb5)]=_0x576cc9,this[_0xeeeee7(0x208)]=_0x4222da,this[_0xeeeee7(0x3da)]=_0xc94ee,this[_0xeeeee7(0x149)]());}['disableLocalCache'](){const _0x4cf6a4=_0x144fb0;this[_0x4cf6a4(0x4a1)]=!0x0;}[_0x144fb0(0x17f)](){this['_disabled']=!0x1;}[_0x144fb0(0x320)](){const _0x38be92=_0x144fb0;this['exhaustSavingTask']()[_0x38be92(0x477)](()=>super['dispose']());}async[_0x144fb0(0x19f)](_0x46bcc5){const _0x456fa5=_0x144fb0;return this[_0x456fa5(0x4a1)]?null:this[_0x456fa5(0x356)][_0x456fa5(0x492)](_0x4e6216(_0x46bcc5));}async['saveOfflineData'](_0x269e5c,_0x5bf1a6){const _0x4e67c9=_0x144fb0;return!!this[_0x4e67c9(0x356)][_0x4e67c9(0x352)](_0x269e5c,_0x5bf1a6);}[_0x144fb0(0x1f9)](_0x48ef59,_0x4ae530,_0x78b834,_0x36a1ae){const _0x404f59=_0x144fb0,_0x167e4e=this[_0x404f59(0x3da)][_0x404f59(0x306)](_0x48ef59);this[_0x404f59(0x137)]['set'](_0x48ef59,{'unitID':_0x48ef59,'type':_0x4ae530,'awaitingChangeset':_0x78b834,'mutations':_0x36a1ae,'rev':_0x167e4e}),this['_saveTaskMap'][_0x404f59(0x26d)](_0x48ef59)||this['_scheduleSaving'](_0x48ef59);}[_0x144fb0(0x117)](_0x49dee9){const _0x462972=_0x144fb0,_0x5b2e92=this[_0x462972(0x371)]();_0x5b2e92===0x0?this[_0x462972(0xe8)](_0x49dee9):this[_0x462972(0x124)]['set'](_0x49dee9,setTimeout(()=>this[_0x462972(0xe8)](_0x49dee9),_0x5b2e92));}['_getSaveTimeout'](){const _0x665233=_0x144fb0;var _0x149604;return(_0x149604=this[_0x665233(0x283)][_0x665233(0x27c)](_0x1a11f9))!=null?_0x149604:0x3e8;}['_saveCache'](_0x2b3225){const _0x1f8f30=_0x144fb0,_0xe386c4=this[_0x1f8f30(0x124)]['get'](_0x2b3225);return _0xe386c4!==void 0x0&&window[_0x1f8f30(0x499)](_0xe386c4),this[_0x1f8f30(0x356)][_0x1f8f30(0x352)](_0x4e6216(_0x2b3225),this['_cachedData'][_0x1f8f30(0x3b8)](_0x2b3225))[_0x1f8f30(0x477)](()=>this['_saveTaskMap'][_0x1f8f30(0x32d)](_0x2b3225));}async[_0x144fb0(0x291)](){const _0x3d6149=_0x144fb0,_0x59d6a4=[];this['_saveTaskMap'][_0x3d6149(0x478)]((_0x126dda,_0x40defb)=>{const _0x2e7850=_0x3d6149;window[_0x2e7850(0x499)](_0x126dda),_0x59d6a4['push'](this['_saveCache'](_0x40defb)[_0x2e7850(0x477)](()=>{const _0x30ca49=_0x2e7850;this[_0x30ca49(0x124)]['delete'](_0x40defb);}));}),await Promise[_0x3d6149(0x261)](_0x59d6a4);}[_0x144fb0(0x149)](){const _0x21997d=_0x144fb0;this[_0x21997d(0x397)](this[_0x21997d(0xb5)][_0x21997d(0x28d)](()=>{const _0x835bd8=_0x21997d;if(this[_0x835bd8(0x124)][_0x835bd8(0x332)])return this[_0x835bd8(0x208)]['t'](_0x835bd8(0x434));}));}},_0x4c8f94[_0x144fb0(0x309)]=_0x2d0945([_0x52e744(0x0,_0x20df93[_0x144fb0(0x247)]),_0x52e744(0x1,_0x20df93[_0x144fb0(0x39b)]),_0x52e744(0x2,_0x40b1aa[_0x144fb0(0x4aa)]),_0x52e744(0x3,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x142)])),_0x52e744(0x4,_0x20df93[_0x144fb0(0xdd)](_0x55cc56['RevisionService']))],_0x4c8f94[_0x144fb0(0x309)]);function _0x4e6216(_0x323508){const _0x3fec98=_0x144fb0;return _0x3fec98(0x10c)+_0x323508;}var _0x36203a=Object[_0x144fb0(0x395)],_0x28bed0=Object['getOwnPropertyDescriptor'],_0x5346ba=(_0x3c45af,_0x1e5a8f,_0x59d943,_0x470666)=>{for(var _0x3be351=_0x470666>0x1?void 0x0:_0x470666?_0x28bed0(_0x1e5a8f,_0x59d943):_0x1e5a8f,_0x5c0d4f=_0x3c45af['length']-0x1,_0x407781;_0x5c0d4f>=0x0;_0x5c0d4f--)(_0x407781=_0x3c45af[_0x5c0d4f])&&(_0x3be351=(_0x470666?_0x407781(_0x1e5a8f,_0x59d943,_0x3be351):_0x407781(_0x3be351))||_0x3be351);return _0x470666&&_0x3be351&&_0x36203a(_0x1e5a8f,_0x59d943,_0x3be351),_0x3be351;},_0x19640e=(_0x19ed08,_0x48d9f4)=>(_0x3d1cf7,_0x417120)=>_0x48d9f4(_0x3d1cf7,_0x417120,_0x19ed08);function _0x3d6113(_0x361437){const _0x241a68=_0x144fb0,{unitID:_0x3e5ab5,mutations:_0xb95c5d}=_0x361437;return{'unitId':_0x3e5ab5,'subUnitId':_0xb95c5d[0x0][_0x241a68(0xa3)][_0x241a68(0x248)]};}let _0x44b9f8=class{constructor(_0x5528cd,_0x3c340,_0x51fb68){const _0x15cb50=_0x144fb0;this[_0x15cb50(0x2fc)]=_0x5528cd,this[_0x15cb50(0x3dd)]=_0x3c340,this['_instanceService']=_0x51fb68;}[_0x144fb0(0x444)](_0x2251c5){const _0x4e7f95=_0x144fb0;var _0x3b9d15,_0x28811b,_0x316c2e,_0x149751;const _0x1c9a04=this[_0x4e7f95(0x2fc)]['get'](_0x5dce24[_0x4e7f95(0x205)]),{unitId:_0x346a10,subUnitId:_0x2136c3}=_0x3d6113(_0x2251c5),_0xa5f302=_0x1c9a04[_0x4e7f95(0x1c2)](_0x346a10)['getCurrentSelections'](),_0x2ee500=(_0x28811b=(_0x3b9d15=this[_0x4e7f95(0x27d)][_0x4e7f95(0x3c3)](_0x346a10))==null?void 0x0:_0x3b9d15[_0x4e7f95(0x112)]())==null?void 0x0:_0x28811b[_0x4e7f95(0x3c9)]();if(_0xa5f302[_0x4e7f95(0x118)]===0x0||!_0x346a10||!_0x2136c3)return;const _0x3207bd=[{'id':_0x5dce24['SetSelectionsOperation']['id'],'params':{'unitId':_0x346a10,'subUnitId':_0x2ee500,'selections':_0x20df93[_0x4e7f95(0x1c4)][_0x4e7f95(0x200)](_0xa5f302)}}],_0x2ea90a=this['_transformService'][_0x4e7f95(0x40d)](_0x2251c5,_0x3207bd);if(!_0x55cc56[_0x4e7f95(0x436)](_0x2ea90a))throw _0x2ea90a[_0x4e7f95(0x37d)];const _0x317474=(_0x149751=(_0x316c2e=_0x2ea90a['m2Prime'][0x0])==null?void 0x0:_0x316c2e[_0x4e7f95(0xa3)])==null?void 0x0:_0x149751[_0x4e7f95(0x3a2)];Array[_0x4e7f95(0x130)](_0x317474)&&_0x317474[_0x4e7f95(0x118)]&&this[_0x4e7f95(0x2fc)][_0x4e7f95(0x3b8)](_0x20df93[_0x4e7f95(0x338)])[_0x4e7f95(0x1fe)](_0x5dce24['SetSelectionsOperation']['id'],{'unitId':_0x346a10,'subUnitId':_0x2ee500,'selections':_0x317474});}};_0x44b9f8=_0x5346ba([_0x19640e(0x0,_0x20df93[_0x144fb0(0xdd)](_0x20df93['Injector'])),_0x19640e(0x1,_0x55cc56[_0x144fb0(0x1bd)]),_0x19640e(0x2,_0x20df93['IUniverInstanceService'])],_0x44b9f8);const _0x3977df=_0x20df93[_0x144fb0(0x4be)](_0x144fb0(0x150));var _0x4b0976=(_0x2395f0=>(_0x2395f0[_0x2395f0[_0x144fb0(0x396)]=0x0]=_0x144fb0(0x396),_0x2395f0[_0x2395f0[_0x144fb0(0xb9)]=0x1]=_0x144fb0(0xb9),_0x2395f0))(_0x4b0976||{});const _0x38a4d4=0x7530,_0x2a1472=_0x144fb0(0x9a);class _0x4e8c93 extends _0x20df93[_0x144fb0(0x343)]{constructor(){const _0x3ff4b7=_0x144fb0;super(),_0x3e782f(this,_0x3ff4b7(0x3d8),_0x20df93[_0x3ff4b7(0x1c4)][_0x3ff4b7(0xd9)]()),_0x3e782f(this,'_selfUnitIDs',new Set()),_0x3e782f(this,_0x3ff4b7(0x4d0),new Map()),_0x3e782f(this,_0x3ff4b7(0x14a),null),_0x3e782f(this,'_clearOtherTimers',new Map()),_0x3e782f(this,_0x3ff4b7(0xf7),new Map()),this[_0x3ff4b7(0x198)]();}[_0x144fb0(0x320)](){const _0x5e8b7a=_0x144fb0;super[_0x5e8b7a(0x320)](),this[_0x5e8b7a(0x26b)][_0x5e8b7a(0x478)]((_0x55ffdc,_0x1a4e65)=>this[_0x5e8b7a(0x41b)](_0x1a4e65)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x5e8b7a(0x14a)]);}[_0x144fb0(0x249)](_0x421d39){const _0x264ba9=_0x144fb0;return this[_0x264ba9(0x3b1)](_0x421d39)[_0x264ba9(0x34d)](_0x284d0[_0x264ba9(0xe7)]());}[_0x144fb0(0x38e)](_0x2d4a40){const _0x3143f1=_0x144fb0;this[_0x3143f1(0x170)][_0x3143f1(0x332)]===0x0&&this['_scheduleHeartbeat'](),this[_0x3143f1(0x170)][_0x3143f1(0x4bc)](_0x2d4a40),this[_0x3143f1(0x2e1)]({'type':0x0,'memberID':this[_0x3143f1(0x3d8)],'unitIDs':[_0x2d4a40],'isForwarded':!0x1});}[_0x144fb0(0x1c5)](_0x5b1f9c){const _0x1dbcc7=_0x144fb0;this['_selfUnitIDs'][_0x1dbcc7(0x32d)](_0x5b1f9c),this['_selfUnitIDs'][_0x1dbcc7(0x332)]===0x0&&this[_0x1dbcc7(0x14a)]&&window[_0x1dbcc7(0x40e)](this[_0x1dbcc7(0x14a)]);}[_0x144fb0(0x198)](){const _0x233d60=_0x144fb0;this[_0x233d60(0x397)](_0x20df93[_0x233d60(0x2cc)](_0x284d0[_0x233d60(0x341)](window,_0x233d60(0x122))[_0x233d60(0xda)](_0x3c047d=>{const _0x28391e=_0x233d60;if(_0x3c047d[_0x28391e(0x4b2)]!==_0x2a1472||!_0x3c047d[_0x28391e(0x335)])return;const _0x3f8b17=JSON['parse'](_0x3c047d[_0x28391e(0x335)]);this[_0x28391e(0x3ef)](_0x3f8b17);}))),window[_0x233d60(0x357)]('unload',()=>this[_0x233d60(0x2e1)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x233d60(0xc2)](this[_0x233d60(0x170)])}));}['_handleEvent'](_0x458f51){const _0x18de1f=_0x144fb0;switch(_0x458f51[_0x18de1f(0x2e4)]){case 0x0:this[_0x18de1f(0x398)](_0x458f51);break;case 0x1:this['_handleLeaveEvent'](_0x458f51);break;case 0x2:this[_0x18de1f(0x146)](_0x458f51);break;}}[_0x144fb0(0x398)](_0x592685){const _0x148251=_0x144fb0,{unitIDs:_0x1ae5a2,memberID:_0x442521,isForwarded:_0x34a660}=_0x592685;_0x1ae5a2[_0x148251(0x478)](_0x1c2121=>{const _0x1101f2=_0x148251;if(!_0x34a660&&this[_0x1101f2(0x4d0)][_0x1101f2(0x26d)](_0x1c2121)&&this[_0x1101f2(0x3b1)](_0x1c2121)[_0x1101f2(0x25d)](0x1),!this[_0x1101f2(0x4d0)]['has'](_0x1c2121)||!this[_0x1101f2(0x4d0)]['get'](_0x1c2121)[_0x1101f2(0x26d)](_0x442521)){const _0x1ca759=this['_unitOnClients'][_0x1101f2(0x3b8)](_0x1c2121)||new Set();_0x1ca759[_0x1101f2(0x4bc)](_0x442521),this[_0x1101f2(0x4d0)][_0x1101f2(0x271)](_0x1c2121,_0x1ca759),this['_scheduleClearOtherTimer'](_0x442521);}}),_0x34a660||this[_0x148251(0x2e1)]({'type':0x0,'memberID':this[_0x148251(0x3d8)],'unitIDs':[...this[_0x148251(0x170)]],'isForwarded':!0x0});}[_0x144fb0(0x26f)](_0x4292a3){const _0x5a5831=_0x144fb0;this[_0x5a5831(0x41b)](_0x4292a3);const _0x5530d3=window[_0x5a5831(0x233)](()=>{const _0x556307=_0x5a5831;this[_0x556307(0x4d0)][_0x556307(0x478)](_0x7bd165=>{_0x7bd165['delete'](_0x4292a3);});},_0x38a4d4*0x2);this[_0x5a5831(0x26b)]['set'](_0x4292a3,_0x5530d3);}[_0x144fb0(0x41b)](_0x522dd2){const _0x175ef2=_0x144fb0;if(this[_0x175ef2(0x26b)][_0x175ef2(0x26d)](_0x522dd2)){const _0x17ea2c=this[_0x175ef2(0x26b)][_0x175ef2(0x3b8)](_0x522dd2);_0x17ea2c&&window[_0x175ef2(0x499)](_0x17ea2c),this['_clearOtherTimers'][_0x175ef2(0x271)](_0x522dd2,null);}}[_0x144fb0(0x433)](_0x7bcc7){const _0x271750=_0x144fb0,{memberID:_0x8d4e57,unitIDs:_0x33b15d}=_0x7bcc7;_0x33b15d[_0x271750(0x478)](_0x2258ce=>{const _0x404db8=_0x271750;var _0x37eada;const _0x51ef96=this[_0x404db8(0x4d0)][_0x404db8(0x3b8)](_0x2258ce);_0x51ef96&&(_0x51ef96[_0x404db8(0x32d)](_0x8d4e57),(_0x37eada=this[_0x404db8(0x3b1)](_0x2258ce))==null||_0x37eada['next'](_0x51ef96[_0x404db8(0x332)]===0x0?0x0:0x1));}),this[_0x271750(0x41b)](_0x8d4e57);}[_0x144fb0(0x146)](_0xaca352){this['_scheduleClearOtherTimer'](_0xaca352['memberID']);}[_0x144fb0(0x2e1)](_0x32c198){const _0x3da8a8=_0x144fb0;localStorage[_0x3da8a8(0x352)](_0x2a1472,JSON['stringify'](_0x32c198));}[_0x144fb0(0x2a6)](){const _0x68d7a4=_0x144fb0;this[_0x68d7a4(0x14a)]=window[_0x68d7a4(0x4b3)](()=>{const _0x460048=_0x68d7a4;this[_0x460048(0x2e1)]({'type':0x2,'memberID':this['_id']});},_0x38a4d4);}[_0x144fb0(0x3b1)](_0x50997d){const _0x31e7a2=_0x144fb0;return this['_unitStatus'][_0x31e7a2(0x26d)](_0x50997d)||this[_0x31e7a2(0xf7)][_0x31e7a2(0x271)](_0x50997d,new _0x284d0['BehaviorSubject'](0x0)),this[_0x31e7a2(0xf7)][_0x31e7a2(0x3b8)](_0x50997d);}}function _0x3f4458(_0x47b606){let _0x32135e='';for(const _0x446d5b of _0x47b606){const {startOffset:_0x45623d,endOffset:_0x5c86bc,isActive:_0xdbda74}=_0x446d5b;_0x32135e['length']&&(_0x32135e+=','),_0x32135e+=_0x45623d+':'+_0x5c86bc+':'+(_0xdbda74?'1':'0');}return _0x32135e;}function _0x161949(_0x2439b3){const _0x1499a8=_0x144fb0,_0x51caba=_0x2439b3[_0x1499a8(0x1ed)](','),_0x5e55fa=[];for(const _0x540b0e of _0x51caba){const [_0x445b2d,_0x8d223f,_0x5b07b3]=_0x540b0e[_0x1499a8(0x1ed)](':');_0x5e55fa[_0x1499a8(0x20e)]({'startOffset':Number(_0x445b2d),'endOffset':Number(_0x8d223f),'collapsed':_0x445b2d===_0x8d223f,'isActive':_0x5b07b3==='1'});}return _0x5e55fa[_0x1499a8(0x38b)](_0xc2ff73=>_0xc2ff73[_0x1499a8(0x41a)])||(_0x5e55fa[0x0][_0x1499a8(0x41a)]=!0x0),_0x5e55fa;}class _0x1ab040 extends _0x20df93[_0x144fb0(0x330)]{constructor(){const _0x421e5e=_0x144fb0;super(...arguments),_0x3e782f(this,_0x421e5e(0x315),new _0x284d0['BehaviorSubject'](null)),_0x3e782f(this,_0x421e5e(0x3c2),this['_collabCursorState$']['asObservable']());}['syncEditingCollabCursor'](_0x55ac7d){const _0x3bef4b=_0x144fb0,{unitID:_0x23f105,memberID:_0x54c391,textRanges:_0x3faf70}=_0x55ac7d,_0x2a5bcb=_0x3f4458(_0x3faf70),_0x58cec9={'unitID':_0x23f105,'memberID':_0x54c391,'selection':_0x2a5bcb};this[_0x3bef4b(0x315)][_0x3bef4b(0x25d)](_0x58cec9);}}var _0x200748=Object[_0x144fb0(0x395)],_0x55e961=Object[_0x144fb0(0x457)],_0x685b19=(_0x494042,_0x40950d,_0x2910d7,_0x1a41bd)=>{const _0x1e5f26=_0x144fb0;for(var _0x3e292f=_0x1a41bd>0x1?void 0x0:_0x1a41bd?_0x55e961(_0x40950d,_0x2910d7):_0x40950d,_0x4533b7=_0x494042[_0x1e5f26(0x118)]-0x1,_0xf0bdeb;_0x4533b7>=0x0;_0x4533b7--)(_0xf0bdeb=_0x494042[_0x4533b7])&&(_0x3e292f=(_0x1a41bd?_0xf0bdeb(_0x40950d,_0x2910d7,_0x3e292f):_0xf0bdeb(_0x3e292f))||_0x3e292f);return _0x1a41bd&&_0x3e292f&&_0x200748(_0x40950d,_0x2910d7,_0x3e292f),_0x3e292f;},_0xffb6da=(_0xf9a897,_0x1ed911)=>(_0x210079,_0x3bd43c)=>_0x1ed911(_0x210079,_0x3bd43c,_0xf9a897);let _0x5d5342=class{constructor(_0x5d013f,_0x3cb73c){const _0x85085a=_0x144fb0;this[_0x85085a(0x2fc)]=_0x5d013f,this[_0x85085a(0x3dd)]=_0x3cb73c;}['transformSelections'](_0x3ebab5){const _0x3ac7e8=_0x144fb0;var _0x1060d4;const _0x1f517a=this[_0x3ac7e8(0x2fc)]['get'](_0x280e9c[_0x3ac7e8(0x4c0)]),_0x5958d9=(_0x1060d4=_0x1f517a[_0x3ac7e8(0x151)]())!=null?_0x1060d4:[];if(_0x5958d9[_0x3ac7e8(0x118)]===0x0)return;const _0x372fc4=[{'id':_0x3ac7e8(0xbb),'params':{'unitId':_0x3ebab5[_0x3ac7e8(0x239)],'actions':null,'textRanges':_0x5958d9}}],_0x25abe2=this[_0x3ac7e8(0x3dd)][_0x3ac7e8(0x40d)](_0x3ebab5,_0x372fc4);if(!_0x55cc56['isTransformMutationsWithChangesetSuccess'](_0x25abe2))throw _0x25abe2[_0x3ac7e8(0x37d)];const _0x10c295=_0x25abe2[_0x3ac7e8(0x171)][0x0][_0x3ac7e8(0xa3)][_0x3ac7e8(0x14f)];Array['isArray'](_0x10c295)&&_0x10c295[_0x3ac7e8(0x118)]&&_0x1f517a[_0x3ac7e8(0x185)](_0x10c295,!0x1);}};_0x5d5342=_0x685b19([_0xffb6da(0x0,_0x20df93['Inject'](_0x20df93[_0x144fb0(0x394)])),_0xffb6da(0x1,_0x55cc56['ITransformService'])],_0x5d5342);const _0x2abaea=new Set([_0x5dce24['InsertSheetMutation']['id']]);function _0x2d1d58(_0x1c8bc4,_0x239988,_0x5c9756,_0x1bb0ea,_0x4be355){const _0x45a20f=_0x144fb0;var _0x1e1926,_0x4febd1,_0x2db92d,_0x137cd6;const _0x38756a=[];for(const _0x6cc84a of _0x1c8bc4)if(_0x2abaea[_0x45a20f(0x26d)](_0x6cc84a['id'])){if(_0x38756a['length']>0x0)break;_0x38756a[_0x45a20f(0x20e)](_0x6cc84a);break;}else _0x38756a[_0x45a20f(0x20e)](_0x6cc84a);const _0x4b4ae9=(_0x4febd1=(_0x1e1926=_0x4be355['getCurrentUser']())==null?void 0x0:_0x1e1926[_0x45a20f(0x47a)])!=null?_0x4febd1:_0x45a20f(0x26c),_0x191bb7=(_0x137cd6=(_0x2db92d=_0x4be355[_0x45a20f(0x411)]())==null?void 0x0:_0x2db92d[_0x45a20f(0x173)])!=null?_0x137cd6:'unknown';return{'changeset':{'unitID':_0x239988,'type':_0x55cc56[_0x45a20f(0x409)](_0x5c9756[_0x45a20f(0x3c5)](_0x239988)),'baseRev':_0x1bb0ea[_0x45a20f(0x306)](_0x239988),'revision':0x0,'userID':_0x4b4ae9,'memberID':_0x191bb7,'mutations':_0x38756a},'pendingMutations':_0x1c8bc4[_0x45a20f(0x321)](_0x38756a[_0x45a20f(0x118)])};}function _0x5db712(_0x223bdd,_0x9b982d,_0x33ca99,_0x28d65d,_0x34a989){const _0x23b032=_0x144fb0;var _0x5aa663,_0xa089f9,_0x533909,_0x35f261;const _0x46cfbb=[_0x223bdd[_0x23b032(0x344)]((_0x4ef8a1,_0x4c34b7)=>{const _0x5afe96=_0x23b032;var _0x1859f3;const {id:_0x34a3d5}=_0x4ef8a1,{id:_0x38ff4e,type:_0x1703b9}=_0x4c34b7,_0x31d8b6=(_0x1859f3=_0x4ef8a1['params'])!=null?_0x1859f3:{'actions':null},_0x11db53=_0x4c34b7[_0x5afe96(0xa3)];if(_0x34a3d5&&_0x34a3d5!==_0x38ff4e)throw new Error(_0x5afe96(0x36f)+_0x34a3d5+_0x5afe96(0x453)+_0x38ff4e+'.');return{..._0x4ef8a1,'id':_0x38ff4e,'type':_0x1703b9,'params':{'unitId':_0x11db53[_0x5afe96(0x1b7)],'textRanges':_0x11db53[_0x5afe96(0x14f)],'actions':_0x20df93['JSONX'][_0x5afe96(0x3a8)](_0x31d8b6[_0x5afe96(0x437)],_0x11db53[_0x5afe96(0x437)])}};},{})],_0x12f3b4=(_0xa089f9=(_0x5aa663=_0x34a989[_0x23b032(0x411)]())==null?void 0x0:_0x5aa663[_0x23b032(0x47a)])!=null?_0xa089f9:_0x23b032(0x26c),_0x134845=(_0x35f261=(_0x533909=_0x34a989[_0x23b032(0x411)]())==null?void 0x0:_0x533909['memberID'])!=null?_0x35f261:_0x23b032(0x26c);return{'changeset':{'unitID':_0x9b982d,'type':_0x55cc56[_0x23b032(0x409)](_0x33ca99[_0x23b032(0x3c5)](_0x9b982d)),'baseRev':_0x28d65d[_0x23b032(0x306)](_0x9b982d),'revision':0x0,'userID':_0x12f3b4,'memberID':_0x134845,'mutations':_0x46cfbb},'pendingMutations':[]};}const _0x5d6206={'id':_0x5dce24['EmptyMutation']['id'],'type':_0x20df93[_0x144fb0(0x286)][_0x144fb0(0x372)],'params':{}};var _0x93857f=Object[_0x144fb0(0x395)],_0xf89646=Object['getOwnPropertyDescriptor'],_0x5a9e03=(_0x53dfb8,_0x244ee6,_0x55733d,_0x22565d)=>{const _0x291838=_0x144fb0;for(var _0x34be70=_0x22565d>0x1?void 0x0:_0x22565d?_0xf89646(_0x244ee6,_0x55733d):_0x244ee6,_0x2a44d4=_0x53dfb8[_0x291838(0x118)]-0x1,_0x2a9f46;_0x2a44d4>=0x0;_0x2a44d4--)(_0x2a9f46=_0x53dfb8[_0x2a44d4])&&(_0x34be70=(_0x22565d?_0x2a9f46(_0x244ee6,_0x55733d,_0x34be70):_0x2a9f46(_0x34be70))||_0x34be70);return _0x22565d&&_0x34be70&&_0x93857f(_0x244ee6,_0x55733d,_0x34be70),_0x34be70;},_0xbe94c7=(_0xe1d3f2,_0x2943a2)=>(_0x1f5dd7,_0x192447)=>_0x2943a2(_0x1f5dd7,_0x192447,_0xe1d3f2),_0x5d3e7e=(_0x36b4f9=>(_0x36b4f9[_0x144fb0(0x49a)]=_0x144fb0(0x3b7),_0x36b4f9[_0x144fb0(0xad)]=_0x144fb0(0xca),_0x36b4f9[_0x144fb0(0x42a)]='pending',_0x36b4f9['AWAITING']=_0x144fb0(0x218),_0x36b4f9[_0x144fb0(0x186)]=_0x144fb0(0x373),_0x36b4f9['FETCH_MISS']=_0x144fb0(0x299),_0x36b4f9[_0x144fb0(0x3b6)]='conflict',_0x36b4f9[_0x144fb0(0x2d5)]=_0x144fb0(0xfc),_0x36b4f9))(_0x5d3e7e||{});class _0x30b9a8{constructor(_0x1a048f,_0x188b07,_0x2036d0,_0x24b1df,_0x3ea776,_0x4ee268,_0x4ac303,_0x4e09f6,_0xdf7702){const _0x3c52f3=_0x144fb0;_0x3e782f(this,_0x3c52f3(0x252),null),_0x3e782f(this,_0x3c52f3(0x19e),[]),(this[_0x3c52f3(0x239)]=_0x1a048f,this[_0x3c52f3(0x2e4)]=_0x188b07,this['_handler']=_0x3ea776,this[_0x3c52f3(0x2d1)]=_0x4ee268,this[_0x3c52f3(0x443)]=_0x4ac303,this['_revisionService']=_0x4e09f6,this[_0x3c52f3(0x2be)]=_0xdf7702,this[_0x3c52f3(0x252)]=_0x2036d0,this[_0x3c52f3(0x19e)]=_0x24b1df);}[_0x144fb0(0x495)](_0x141103){const _0x55959e=_0x144fb0,_0xcd15a1=this[_0x55959e(0x3da)][_0x55959e(0x306)](this[_0x55959e(0x239)]);return _0x141103[_0x55959e(0x376)]>_0xcd15a1+0x1?(this[_0x55959e(0x14c)][_0x55959e(0x1eb)]({'from':_0xcd15a1,'to':_0x141103[_0x55959e(0x376)]-0x1}),!0x0):!0x1;}[_0x144fb0(0x2ae)](_0x7392dd){const _0x485e1d=_0x144fb0;this['_undoRedoService'][_0x485e1d(0x2bd)](this[_0x485e1d(0x239)],_0x7392dd);}[_0x144fb0(0x49f)](_0xcd3ab2){const _0x415f58=_0x144fb0;var _0x1624b5,_0x17a4cf;(_0x17a4cf=(_0x1624b5=this[_0x415f58(0x14c)])[_0x415f58(0x1bc)])==null||_0x17a4cf[_0x415f58(0xed)](_0x1624b5,_0xcd3ab2);}['_transformIMECache'](_0x209538){const _0x2c5205=_0x144fb0;var _0x56e9ba,_0x37c08e;return(_0x37c08e=(_0x56e9ba=this[_0x2c5205(0x14c)])['onTransformIME'])==null?void 0x0:_0x37c08e[_0x2c5205(0xed)](_0x56e9ba,_0x209538);}[_0x144fb0(0x157)](_0x5ac663){const _0x48b27b=_0x144fb0;var _0x322606,_0x1851ab,_0x15196e;return(_0x15196e=(_0x1851ab=(_0x322606=this[_0x48b27b(0x14c)])[_0x48b27b(0x466)])==null?void 0x0:_0x1851ab[_0x48b27b(0xed)](_0x322606,_0x5ac663))!=null?_0x15196e:_0x5ac663;}['_syncEditingCollabCursor'](_0x11c5a5){const _0x16e741=_0x144fb0;var _0x39443b,_0x5b443d;if(this['type']===_0x3dff5a['UNIVER_DOC']){const {unitID:_0x6f5db7,mutations:_0x40b717,memberID:_0x41b1f8}=_0x11c5a5,_0x4a63be=_0x40b717[0x0][_0x16e741(0xa3)][_0x16e741(0x14f)];Array[_0x16e741(0x130)](_0x4a63be)&&_0x4a63be['length']>0x0&&((_0x5b443d=(_0x39443b=this['_handler'])[_0x16e741(0x323)])==null||_0x5b443d[_0x16e741(0xed)](_0x39443b,{'unitID':_0x6f5db7,'memberID':_0x41b1f8,'textRanges':_0x4a63be}));}}[_0x144fb0(0x4c9)](){const _0x1dd248=_0x144fb0;this[_0x1dd248(0x2be)]['updateOfflineData'](this[_0x1dd248(0x239)],this[_0x1dd248(0x2e4)],this[_0x1dd248(0x252)],this['_pendingMutations']);}[_0x144fb0(0xf1)](){const _0x441b64=_0x144fb0;return this['_revisionService'][_0x441b64(0x306)](this[_0x441b64(0x239)]);}[_0x144fb0(0x3a6)](){const _0x345973=_0x144fb0;this[_0x345973(0x3da)][_0x345973(0x97)](this[_0x345973(0x239)]);}[_0x144fb0(0x4c7)](_0x5c665e){const _0x38aa9c=_0x144fb0;var _0x1d0b1d;const _0x3a5eea=this[_0x38aa9c(0x157)](_0x5c665e),_0x480c78=_0x20df93[_0x38aa9c(0x406)](_0x3a5eea[_0x38aa9c(0x366)],this[_0x38aa9c(0x2d1)],{'fromCollab':!0x0});if(!_0x480c78[_0x38aa9c(0x400)])throw _0x480c78['error']instanceof Error?_0x480c78[_0x38aa9c(0x37d)]:new Error((_0x1d0b1d=_0x480c78[_0x38aa9c(0x37d)])!=null?_0x1d0b1d:'[CollaborationState]:\x20apply\x20error!');this[_0x38aa9c(0x31f)](_0x3a5eea),this[_0x38aa9c(0x2ae)](_0x5c665e),this[_0x38aa9c(0x49f)](_0x3a5eea),this[_0x38aa9c(0x19d)](_0x3a5eea),this['_incrementRevisionNumber']();}}let _0x495f7c=class extends _0x30b9a8{constructor(_0x5b75a2,_0x4780f,_0x5ab34d,_0x5eb4ee,_0x2e7fa8,_0x18a268,_0x52492c,_0x38a729,_0x5234d4,_0x49d50e){const _0x57f06b=_0x144fb0;super(_0x5b75a2,_0x4780f,null,[],_0x5ab34d,_0x38a729,_0x52492c,_0x5eb4ee,_0x2e7fa8),_0x3e782f(this,_0x57f06b(0x442),_0x57f06b(0xca)),(this['_injector']=_0x18a268,this[_0x57f06b(0x414)]=_0x5234d4,this[_0x57f06b(0x3dd)]=_0x49d50e);}[_0x144fb0(0x207)](_0x4bd9da){const _0x4a8553=_0x144fb0,_0x4834f5=this[_0x4a8553(0x2fc)][_0x4a8553(0x2f6)](_0x4ae15d,this[_0x4a8553(0x239)],this[_0x4a8553(0x2e4)],[_0x4bd9da],this[_0x4a8553(0x14c)]);return _0x4834f5[_0x4a8553(0x1bf)](),_0x4834f5['_updateLocalCache'](),_0x4834f5;}[_0x144fb0(0x455)](_0x4cd558){const _0x5cab6d=_0x144fb0;if(this[_0x5cab6d(0x495)](_0x4cd558))return this[_0x5cab6d(0x2fc)][_0x5cab6d(0x2f6)](_0x4b3f93,this['unitID'],this[_0x5cab6d(0x2e4)],null,[],null,[_0x4cd558],this[_0x5cab6d(0x14c)]);try{const _0x145a0c=this[_0x5cab6d(0x3dd)][_0x5cab6d(0x40d)](_0x4cd558,[_0x5d6206]);if(_0x55cc56[_0x5cab6d(0x436)](_0x145a0c)){const {c1Prime:_0x1ef66d}=_0x145a0c;return this[_0x5cab6d(0x4c7)](_0x1ef66d),this;}throw _0x145a0c[_0x5cab6d(0x37d)];}catch(_0x1c24e2){return this[_0x5cab6d(0x414)]['error'](_0x1c24e2),this[_0x5cab6d(0x1cb)](!0x1);}}[_0x144fb0(0x1cb)](_0x43f967){const _0x58e727=_0x144fb0;return this[_0x58e727(0x2fc)][_0x58e727(0x2f6)](_0x3a479a,this['unitID'],this[_0x58e727(0x2e4)],null,[],this[_0x58e727(0x14c)],_0x43f967);}[_0x144fb0(0x3a9)](){const _0x250c76=_0x144fb0;throw new Error(_0x250c76(0x3e8));}[_0x144fb0(0x1dd)](){const _0x3ccb32=_0x144fb0;throw new Error(_0x3ccb32(0x382));}['toggleOffline'](){const _0x5e67f6=_0x144fb0;return this[_0x5e67f6(0x2fc)][_0x5e67f6(0x2f6)](_0x44c69c,this[_0x5e67f6(0x239)],this['type'],null,[],this[_0x5e67f6(0x14c)]);}[_0x144fb0(0x1be)](){return this;}['resend'](){const _0x37dce7=_0x144fb0;throw new Error(_0x37dce7(0x381));}[_0x144fb0(0x2b2)](){const _0x472cce=_0x144fb0,_0x1b0411=this[_0x472cce(0x3da)]['getCurrentRevOfUnit'](this[_0x472cce(0x239)]);return this['_handler']['onMissingChangesets']({'from':_0x1b0411,'to':0x0}),this[_0x472cce(0x2fc)][_0x472cce(0x2f6)](_0x4b3f93,this[_0x472cce(0x239)],this[_0x472cce(0x2e4)],null,[],null,[],this['_handler']);}};_0x495f7c=_0x5a9e03([_0xbe94c7(0x3,_0x20df93[_0x144fb0(0xdd)](_0x55cc56[_0x144fb0(0xf8)])),_0xbe94c7(0x4,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94[_0x144fb0(0x309)])),_0xbe94c7(0x5,_0x20df93[_0x144fb0(0xdd)](_0x20df93['Injector'])),_0xbe94c7(0x6,_0x20df93['IUndoRedoService']),_0xbe94c7(0x7,_0x20df93[_0x144fb0(0x338)]),_0xbe94c7(0x8,_0x20df93[_0x144fb0(0x1a2)]),_0xbe94c7(0x9,_0x55cc56[_0x144fb0(0x1bd)])],_0x495f7c);let _0x4ae15d=class extends _0x30b9a8{constructor(_0xfc9c48,_0x4f9211,_0x45a696,_0x40ddc9,_0x2f8160,_0x293e0a,_0x1f6bb9,_0x2826e4,_0x30f7e7,_0x194172,_0x1d9832,_0x13b700,_0xc0ba4d,_0xac1adc){const _0x454566=_0x144fb0;super(_0xfc9c48,_0x4f9211,null,_0x45a696,_0x40ddc9,_0x194172,_0xac1adc,_0x293e0a,_0x1f6bb9),_0x3e782f(this,_0x454566(0x442),_0x454566(0x30a)),_0x3e782f(this,'_scheduleTimestamp',null),_0x3e782f(this,_0x454566(0x47f),null),(this[_0x454566(0x2fc)]=_0x2f8160,this['_memberService']=_0x2826e4,this[_0x454566(0x414)]=_0x30f7e7,this[_0x454566(0x283)]=_0x1d9832,this[_0x454566(0x3dd)]=_0x13b700,this[_0x454566(0xc8)]=_0xc0ba4d);}['appendMutation'](_0x3e7b0b){const _0x4ad403=_0x144fb0;return this[_0x4ad403(0x19e)][_0x4ad403(0x20e)](_0x3e7b0b),this['_updateLocalCache'](),this;}[_0x144fb0(0x455)](_0x30b42a){const _0x222013=_0x144fb0;if(this[_0x222013(0x495)](_0x30b42a))return this[_0x222013(0x188)](),this['_injector'][_0x222013(0x2f6)](_0x4b3f93,this[_0x222013(0x239)],this['type'],null,this['_pendingMutations'],null,[_0x30b42a],this[_0x222013(0x14c)]);try{const _0x54b529=this['_transformService'][_0x222013(0x40d)](_0x30b42a,this[_0x222013(0x19e)]);if(_0x55cc56[_0x222013(0x436)](_0x54b529)){const {c1Prime:_0x4f89fd,m2Prime:_0x59bc93}=_0x54b529;this[_0x222013(0x4c7)](_0x4f89fd);const _0x182de3=this[_0x222013(0x2fc)][_0x222013(0x2f6)](_0x4ae15d,this[_0x222013(0x239)],this[_0x222013(0x2e4)],_0x59bc93,this[_0x222013(0x14c)]);return this[_0x222013(0x188)](),_0x182de3['_schedule'](this[_0x222013(0x40a)]?Math[_0x222013(0x480)](0x0,new Date()[_0x222013(0x487)]()-this[_0x222013(0x40a)]):this[_0x222013(0x49b)]()),_0x182de3;}throw _0x54b529[_0x222013(0x37d)];}catch(_0x371883){return this[_0x222013(0x414)][_0x222013(0x37d)](_0x371883),this[_0x222013(0x1cb)](!0x1);}}['onRemoteAck'](){const _0x3944f7=_0x144fb0;throw new Error(_0x3944f7(0x178));}[_0x144fb0(0x1dd)](){const _0x127ff6=_0x144fb0;throw new Error(_0x127ff6(0x3fa));}[_0x144fb0(0x187)](){const _0x323e67=_0x144fb0;return this[_0x323e67(0x188)](),this[_0x323e67(0x2fc)][_0x323e67(0x2f6)](_0x44c69c,this[_0x323e67(0x239)],this[_0x323e67(0x2e4)],null,this[_0x323e67(0x19e)],this[_0x323e67(0x14c)]);}[_0x144fb0(0x1be)](){return this;}['_schedule'](_0xb749a0){const _0x46cc8a=_0x144fb0,_0x579139=_0xb749a0!=null?_0xb749a0:this[_0x46cc8a(0x49b)]();this['_scheduleTimestamp']=new Date()[_0x46cc8a(0x487)](),this[_0x46cc8a(0x47f)]=window[_0x46cc8a(0x233)](()=>{const _0x107238=_0x46cc8a;this[_0x107238(0x188)]();let _0x53a063=null;switch(this['type']){case _0x3dff5a[_0x107238(0x4bf)]:{_0x53a063=_0x2d1d58(this['_pendingMutations'],this['unitID'],this[_0x107238(0xc8)],this[_0x107238(0x3da)],this[_0x107238(0x486)]);break;}case _0x3dff5a[_0x107238(0x126)]:{this['_pendingMutations'][_0x107238(0x260)](_0x46e4c8=>_0x46e4c8['id']===_0x280e9c['RichTextEditingMutation']['id'])?_0x53a063=_0x5db712(this['_pendingMutations'],this[_0x107238(0x239)],this[_0x107238(0xc8)],this['_revisionService'],this[_0x107238(0x486)]):_0x53a063=_0x2d1d58(this[_0x107238(0x19e)],this[_0x107238(0x239)],this[_0x107238(0xc8)],this['_revisionService'],this['_memberService']);break;}default:throw new Error(_0x107238(0xd3)+this['type']+'\x20in\x20_schedule.');}const {changeset:_0x421a85,pendingMutations:_0x5d9ed4}=_0x53a063;this[_0x107238(0x14c)][_0x107238(0x3e2)](_0x421a85);const _0x4bf139=_0x5d9ed4[_0x107238(0x118)]?this[_0x107238(0x2fc)]['createInstance'](_0x189a45,this[_0x107238(0x239)],this[_0x107238(0x2e4)],_0x421a85,_0x5d9ed4,this[_0x107238(0x14c)]):this[_0x107238(0x2fc)][_0x107238(0x2f6)](_0xaa98f9,this[_0x107238(0x239)],this['type'],_0x421a85,this['_handler']);_0x4bf139['_updateLocalCache'](),this[_0x107238(0x14c)][_0x107238(0x37b)](this,_0x4bf139);},_0x579139);}[_0x144fb0(0x49b)](){const _0xeebdae=_0x144fb0;var _0x6a2b32;const _0x1e229e=this[_0xeebdae(0x283)][_0xeebdae(0x27c)](_0x53057b);return(_0x6a2b32=_0x1e229e==null?void 0x0:_0x1e229e[_0xeebdae(0x2ce)])!=null?_0x6a2b32:0x7d0;}[_0x144fb0(0x47c)](){const _0x504d88=_0x144fb0;throw new Error(_0x504d88(0x1da));}[_0x144fb0(0x188)](){const _0x1e9d01=_0x144fb0;this[_0x1e9d01(0x47f)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x1e9d01(0x47f)]=null);}[_0x144fb0(0x1cb)](_0x59a011){const _0x2a6871=_0x144fb0;return this[_0x2a6871(0x188)](),this[_0x2a6871(0x2fc)][_0x2a6871(0x2f6)](_0x3a479a,this[_0x2a6871(0x239)],this['type'],null,this['_pendingMutations'],this['_handler'],_0x59a011);}};_0x4ae15d=_0x5a9e03([_0xbe94c7(0x4,_0x20df93['Inject'](_0x20df93[_0x144fb0(0x394)])),_0xbe94c7(0x5,_0x20df93[_0x144fb0(0xdd)](_0x55cc56['RevisionService'])),_0xbe94c7(0x6,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94[_0x144fb0(0x309)])),_0xbe94c7(0x7,_0x20df93[_0x144fb0(0xdd)](_0x513006)),_0xbe94c7(0x8,_0x20df93[_0x144fb0(0x1a2)]),_0xbe94c7(0x9,_0x20df93[_0x144fb0(0x338)]),_0xbe94c7(0xa,_0x20df93[_0x144fb0(0x247)]),_0xbe94c7(0xb,_0x55cc56[_0x144fb0(0x1bd)]),_0xbe94c7(0xc,_0x20df93['IUniverInstanceService']),_0xbe94c7(0xd,_0x20df93[_0x144fb0(0x2d0)])],_0x4ae15d);let _0xaa98f9=class extends _0x30b9a8{constructor(_0x68c213,_0x235837,_0x24f98a,_0x86b4a8,_0x1ecdbd,_0x2c2db0,_0x1672e0,_0x1ea546,_0x4a9c37,_0x49bb20,_0x35d97b){const _0x9b380c=_0x144fb0;super(_0x68c213,_0x235837,_0x24f98a,[],_0x86b4a8,_0x1ea546,_0x35d97b,_0x2c2db0,_0x1672e0),_0x3e782f(this,'status','awaiting'),(this[_0x9b380c(0x2fc)]=_0x1ecdbd,this[_0x9b380c(0x414)]=_0x4a9c37,this[_0x9b380c(0x3dd)]=_0x49bb20);}[_0x144fb0(0x207)](_0x430f8a){const _0x295b09=_0x144fb0,_0x207c72=this[_0x295b09(0x2fc)]['createInstance'](_0x189a45,this[_0x295b09(0x239)],this[_0x295b09(0x2e4)],this[_0x295b09(0x252)],[_0x430f8a],this['_handler']);return _0x207c72[_0x295b09(0x4c9)](),_0x207c72;}[_0x144fb0(0x455)](_0x2da277){const _0x53ab86=_0x144fb0;if(this[_0x53ab86(0x495)](_0x2da277))return this[_0x53ab86(0x2fc)][_0x53ab86(0x2f6)](_0x4b3f93,this[_0x53ab86(0x239)],this[_0x53ab86(0x2e4)],this[_0x53ab86(0x252)],[],null,[_0x2da277],this[_0x53ab86(0x14c)]);try{const _0x5b6470=this[_0x53ab86(0x3dd)][_0x53ab86(0x103)]([_0x2da277],[this['_awaitingChangeset']],!0x1);if(_0x55cc56['isTransformChangesetsSuccess'](_0x5b6470)){const {c1Prime:_0x35938f,c2Prime:_0x1362b1}=_0x5b6470;this[_0x53ab86(0x4c7)](_0x35938f[0x0]),_0x1362b1[0x0]['baseRev']=this[_0x53ab86(0xf1)]();const _0x3d75a9=this[_0x53ab86(0x2fc)][_0x53ab86(0x2f6)](_0xaa98f9,this[_0x53ab86(0x239)],this['type'],_0x1362b1[0x0],this[_0x53ab86(0x14c)]);return _0x3d75a9[_0x53ab86(0x4c9)](),_0x3d75a9;}return this[_0x53ab86(0x1cb)](!0x1);}catch(_0x211dca){return this[_0x53ab86(0x414)][_0x53ab86(0x37d)](_0x211dca),this[_0x53ab86(0x1cb)](!0x1);}}[_0x144fb0(0x3a9)](_0x45fb9e){const _0x7d7614=_0x144fb0,_0xe04933=this[_0x7d7614(0x3da)]['getCurrentRevOfUnit'](this[_0x7d7614(0x239)]);if(_0x45fb9e[_0x7d7614(0x376)]<_0xe04933-0x1)return this;if(this[_0x7d7614(0x495)](_0x45fb9e))return this[_0x7d7614(0x2fc)][_0x7d7614(0x2f6)](_0x4b3f93,this[_0x7d7614(0x239)],this[_0x7d7614(0x2e4)],null,[],this[_0x7d7614(0x252)],[],this[_0x7d7614(0x14c)]);this[_0x7d7614(0x3a6)]();const _0x2b29e4=this[_0x7d7614(0x2fc)]['createInstance'](_0x495f7c,this[_0x7d7614(0x239)],this[_0x7d7614(0x2e4)],this[_0x7d7614(0x14c)]);return _0x2b29e4[_0x7d7614(0x4c9)](),_0x2b29e4;}[_0x144fb0(0x1dd)](_0x3d3ac2){const _0x4b49b9=_0x144fb0;return this[_0x4b49b9(0x1cb)](!!(_0x3d3ac2!=null&&_0x3d3ac2['isPermissionRej']));}['toggleOffline'](){const _0x5025d4=_0x144fb0;return this[_0x5025d4(0x2fc)]['createInstance'](_0x44c69c,this['unitID'],this[_0x5025d4(0x2e4)],this[_0x5025d4(0x252)],[],this[_0x5025d4(0x14c)]);}[_0x144fb0(0x1be)](){return this;}[_0x144fb0(0x47c)](){const _0x1fce4c=_0x144fb0;this[_0x1fce4c(0x14c)]['onSendChangeset'](this[_0x1fce4c(0x252)]);}[_0x144fb0(0x1cb)](_0x2a70f9){const _0x3cceaf=_0x144fb0;return this[_0x3cceaf(0x2fc)][_0x3cceaf(0x2f6)](_0x3a479a,this[_0x3cceaf(0x239)],this[_0x3cceaf(0x2e4)],this[_0x3cceaf(0x252)],[],this[_0x3cceaf(0x14c)],_0x2a70f9);}};_0xaa98f9=_0x5a9e03([_0xbe94c7(0x4,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x394)])),_0xbe94c7(0x5,_0x20df93[_0x144fb0(0xdd)](_0x55cc56[_0x144fb0(0xf8)])),_0xbe94c7(0x6,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94[_0x144fb0(0x309)])),_0xbe94c7(0x7,_0x20df93['ICommandService']),_0xbe94c7(0x8,_0x20df93['ILogService']),_0xbe94c7(0x9,_0x55cc56[_0x144fb0(0x1bd)]),_0xbe94c7(0xa,_0x20df93[_0x144fb0(0x2d0)])],_0xaa98f9);let _0x189a45=class extends _0x30b9a8{constructor(_0x4444de,_0x287ad0,_0x12835b,_0xda9b76,_0x30320b,_0x54a5cc,_0x37cb9c,_0x32d081,_0x23ff32,_0x17bb82,_0x5a9524,_0x5b496a){const _0x5b87bc=_0x144fb0;super(_0x4444de,_0x287ad0,_0x12835b,_0xda9b76,_0x30320b,_0x23ff32,_0x5b496a,_0x37cb9c,_0x32d081),_0x3e782f(this,_0x5b87bc(0x442),_0x5b87bc(0x373)),(this[_0x5b87bc(0x2fc)]=_0x54a5cc,this[_0x5b87bc(0x414)]=_0x17bb82,this[_0x5b87bc(0x3dd)]=_0x5a9524);}['appendMutation'](_0x3576bc){const _0x355f3e=_0x144fb0;return this[_0x355f3e(0x19e)][_0x355f3e(0x20e)](_0x3576bc),this;}[_0x144fb0(0x455)](_0x39edf9){const _0x21fe74=_0x144fb0;if(this[_0x21fe74(0x495)](_0x39edf9))return this[_0x21fe74(0x2fc)][_0x21fe74(0x2f6)](_0x4b3f93,this[_0x21fe74(0x239)],this[_0x21fe74(0x2e4)],this[_0x21fe74(0x252)],this['_pendingMutations'],null,[_0x39edf9],this[_0x21fe74(0x14c)]);try{const _0x1af28b=this[_0x21fe74(0x3dd)][_0x21fe74(0x103)]([_0x39edf9],[this[_0x21fe74(0x252)]],!0x1);if(_0x55cc56['isTransformChangesetsSuccess'](_0x1af28b)){const {c1Prime:_0x1b9969,c2Prime:_0x260a0f}=_0x1af28b,_0x55ee10=this[_0x21fe74(0x3dd)]['transformMutationsWithChangeset'](_0x1b9969[0x0],this['_pendingMutations']);if(_0x55cc56[_0x21fe74(0x436)](_0x55ee10)){const {c1Prime:_0x3cf2d7,m2Prime:_0x3c12bc}=_0x55ee10;return this['_executeRemoteChangeset'](_0x3cf2d7),_0x260a0f[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x21fe74(0x2fc)][_0x21fe74(0x2f6)](_0x189a45,this[_0x21fe74(0x239)],this['type'],_0x260a0f[0x0],_0x3c12bc,this['_handler']);}throw _0x55ee10[_0x21fe74(0x37d)];}throw _0x1af28b['error'];}catch(_0xac2b1f){return this[_0x21fe74(0x414)][_0x21fe74(0x37d)](_0xac2b1f),this['_onConflict'](!0x1);}}[_0x144fb0(0x3a9)](_0x359646){const _0x5ebebc=_0x144fb0;if(this[_0x5ebebc(0x495)](_0x359646))return this[_0x5ebebc(0x2fc)][_0x5ebebc(0x2f6)](_0x4b3f93,this[_0x5ebebc(0x239)],this[_0x5ebebc(0x2e4)],null,this[_0x5ebebc(0x19e)],this['_awaitingChangeset'],[],this['_handler']);this[_0x5ebebc(0x3a6)]();const _0x23ce71=this['_injector'][_0x5ebebc(0x2f6)](_0x4ae15d,this['unitID'],this[_0x5ebebc(0x2e4)],this[_0x5ebebc(0x19e)],this['_handler']);return _0x23ce71['_schedule'](),_0x23ce71[_0x5ebebc(0x4c9)](),_0x23ce71;}[_0x144fb0(0x1dd)](_0x326747){const _0x127368=_0x144fb0;return this[_0x127368(0x1cb)](!!(_0x326747!=null&&_0x326747['isPermissionRej']));}[_0x144fb0(0x187)](){const _0x2c43c5=_0x144fb0;return this[_0x2c43c5(0x2fc)][_0x2c43c5(0x2f6)](_0x44c69c,this['unitID'],this[_0x2c43c5(0x2e4)],this[_0x2c43c5(0x252)],this[_0x2c43c5(0x19e)],this[_0x2c43c5(0x14c)]);}[_0x144fb0(0x1be)](){return this;}[_0x144fb0(0x47c)](){const _0x911442=_0x144fb0;this[_0x911442(0x14c)][_0x911442(0x3e2)](this[_0x911442(0x252)]);}[_0x144fb0(0x1cb)](_0x59131e){const _0x55bf3e=_0x144fb0;return this[_0x55bf3e(0x2fc)]['createInstance'](_0x3a479a,this[_0x55bf3e(0x239)],this[_0x55bf3e(0x2e4)],null,this[_0x55bf3e(0x19e)],this['_handler'],_0x59131e);}};_0x189a45=_0x5a9e03([_0xbe94c7(0x5,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x394)])),_0xbe94c7(0x6,_0x20df93[_0x144fb0(0xdd)](_0x55cc56['RevisionService'])),_0xbe94c7(0x7,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94['LocalCacheService'])),_0xbe94c7(0x8,_0x20df93[_0x144fb0(0x338)]),_0xbe94c7(0x9,_0x20df93[_0x144fb0(0x1a2)]),_0xbe94c7(0xa,_0x55cc56[_0x144fb0(0x1bd)]),_0xbe94c7(0xb,_0x20df93[_0x144fb0(0x2d0)])],_0x189a45);let _0x3a479a=class extends _0x30b9a8{constructor(_0x19f694,_0x33e6ea,_0x10cb9,_0x45bdd2,_0xdf6a70,_0xedb9d5=!0x1,_0x15c050,_0x624746,_0x1f89a1,_0x177e52,_0x2dbc1c,_0x4cf587,_0x375196){const _0x4f6571=_0x144fb0;super(_0x19f694,_0x33e6ea,_0x10cb9,_0x45bdd2,_0xdf6a70,_0x624746,_0x1f89a1,_0x2dbc1c,_0x177e52),_0x3e782f(this,'status',_0x4f6571(0x2b7)),(this[_0x4f6571(0x278)]=_0xedb9d5,this[_0x4f6571(0x471)]=_0x15c050,this[_0x4f6571(0x208)]=_0x4cf587,this['_notificationService']=_0x375196,this[_0x4f6571(0x46a)](),this['_clearLocalCache'](),this[_0x4f6571(0xe5)]());}[_0x144fb0(0x207)](){return this;}[_0x144fb0(0x455)](){return this;}[_0x144fb0(0x3a9)](){return this;}[_0x144fb0(0x1dd)](){return this;}[_0x144fb0(0x187)](){return this;}[_0x144fb0(0x1be)](){return this;}[_0x144fb0(0x47c)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x1b83fe=_0x144fb0;this[_0x1b83fe(0x2be)][_0x1b83fe(0x1f9)](this[_0x1b83fe(0x239)],this[_0x1b83fe(0x2e4)],null,[]);}[_0x144fb0(0x46a)](){const _0x3ecb97=_0x144fb0;this[_0x3ecb97(0x278)]?this[_0x3ecb97(0x355)]['show']({'title':this[_0x3ecb97(0x208)]['t'](_0x3ecb97(0x45f)),'content':this[_0x3ecb97(0x208)]['t'](_0x3ecb97(0x276)),'type':_0x3ecb97(0x37d),'duration':0x0}):this['_notificationService'][_0x3ecb97(0x429)]({'title':this['_localeService']['t'](_0x3ecb97(0xd1)),'content':this[_0x3ecb97(0x208)]['t'](_0x3ecb97(0x16e)),'type':_0x3ecb97(0x37d),'duration':0x0});}['_disableEditing'](){const _0xc4459=_0x144fb0;this[_0xc4459(0x471)][_0xc4459(0x2ad)](new _0x5dce24['WorkbookEditablePermission'](this[_0xc4459(0x239)])['id'],!0x1);}};_0x3a479a=_0x5a9e03([_0xbe94c7(0x6,_0x20df93[_0x144fb0(0xdd)](_0x20df93['IPermissionService'])),_0xbe94c7(0x7,_0x20df93[_0x144fb0(0x338)]),_0xbe94c7(0x8,_0x20df93[_0x144fb0(0x2d0)]),_0xbe94c7(0x9,_0x20df93['Inject'](_0x4c8f94[_0x144fb0(0x309)])),_0xbe94c7(0xa,_0x20df93['Inject'](_0x55cc56[_0x144fb0(0xf8)])),_0xbe94c7(0xb,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x142)])),_0xbe94c7(0xc,_0x40b1aa[_0x144fb0(0x262)])],_0x3a479a);let _0x44c69c=class extends _0x30b9a8{constructor(_0x53a563,_0x1f39dc,_0x29e24f,_0x5990e3,_0x8d3d19,_0x1726bc,_0x3c5a75,_0x38c7b4,_0x169e9d,_0x149db1){const _0x98c94e=_0x144fb0;super(_0x53a563,_0x1f39dc,_0x29e24f,_0x5990e3,_0x8d3d19,_0x169e9d,_0x149db1,_0x3c5a75,_0x38c7b4),_0x3e782f(this,_0x98c94e(0x442),_0x98c94e(0xfc)),this['_injector']=_0x1726bc;}[_0x144fb0(0x207)](_0x460c22){const _0x9af5cd=_0x144fb0;return this[_0x9af5cd(0x19e)][_0x9af5cd(0x20e)](_0x460c22),this[_0x9af5cd(0x4c9)](),this;}['onRemoteChangeset'](_0x40d47d){const _0x483197=_0x144fb0;throw new Error(_0x483197(0x2dd));}['onRemoteAck'](){const _0x2725fe=_0x144fb0;throw new Error(_0x2725fe(0x3c8));}[_0x144fb0(0x1dd)](){const _0x2fcdd6=_0x144fb0;throw new Error(_0x2fcdd6(0x8f));}[_0x144fb0(0x187)](){return this;}[_0x144fb0(0x1be)](){const _0x43bec5=_0x144fb0,{_injector:_0x2f761f,_pendingMutations:_0x201a1b,_awaitingChangeset:_0x422767,unitID:_0x5ed830,_handler:_0x17e7a7,type:_0x590114}=this,_0x2a0c00=_0x45d61b(_0x2f761f,_0x5ed830,_0x590114,_0x422767,_0x201a1b,_0x17e7a7);return _0x2a0c00 instanceof _0x4ae15d?_0x2a0c00[_0x43bec5(0x1bf)]():(_0x2a0c00 instanceof _0x189a45||_0x2a0c00 instanceof _0xaa98f9)&&_0x2a0c00['resend'](),_0x2a0c00;}[_0x144fb0(0x47c)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x44c69c=_0x5a9e03([_0xbe94c7(0x5,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x394)])),_0xbe94c7(0x6,_0x20df93['Inject'](_0x55cc56[_0x144fb0(0xf8)])),_0xbe94c7(0x7,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94[_0x144fb0(0x309)])),_0xbe94c7(0x8,_0x20df93[_0x144fb0(0x338)]),_0xbe94c7(0x9,_0x20df93['IUndoRedoService'])],_0x44c69c);let _0x4b3f93=class extends _0x30b9a8{constructor(_0x4c65f5,_0x2c913f,_0x1745c7,_0x495a59,_0x4cddba,_0x426b4e,_0xc9fe0f,_0x18fdc7,_0x246b70,_0x347280,_0x518caf,_0x1b4aa8,_0x2ff5c6,_0x5b90b9){const _0x3a7861=_0x144fb0;super(_0x4c65f5,_0x2c913f,_0x1745c7,_0x495a59,_0xc9fe0f,_0x1b4aa8,_0x2ff5c6,_0x246b70,_0x347280),_0x3e782f(this,_0x3a7861(0x442),_0x3a7861(0x299)),(this[_0x3a7861(0x370)]=_0x4cddba,this[_0x3a7861(0x25f)]=_0x426b4e,this[_0x3a7861(0x2fc)]=_0x18fdc7,this[_0x3a7861(0x414)]=_0x518caf,this[_0x3a7861(0x3dd)]=_0x5b90b9);}[_0x144fb0(0x154)](_0x7a6749){const _0x2ec899=_0x144fb0;try{const _0x4ea29a=[..._0x7a6749,...this['_queuedRemoteChangesets']],_0x459e4d=[this[_0x2ec899(0x252)]||this['_acknowledgedAwaitingChangeset']][_0x2ec899(0x4a2)](_0x8c44da=>!!_0x8c44da);let _0x492b16,_0x1c1356;if(_0x459e4d[_0x2ec899(0x118)]){const _0x2a1166=this['_transformService']['transformChangesets'](_0x4ea29a,_0x459e4d,!0x1);if(!_0x55cc56[_0x2ec899(0x253)](_0x2a1166))throw _0x2a1166['error'];_0x492b16=_0x2a1166['c1Prime'],_0x1c1356=_0x2a1166[_0x2ec899(0x31d)];}else _0x492b16=_0x4ea29a,_0x1c1356=[];let _0x3a711f=this[_0x2ec899(0x19e)];_0x492b16['forEach'](_0xb7c60=>{const _0x262893=_0x2ec899;let _0x299e2b;if(_0x3a711f[_0x262893(0x118)]){const _0x3513f9=this[_0x262893(0x3dd)][_0x262893(0x40d)](_0xb7c60,_0x3a711f);if(!_0x55cc56['isTransformMutationsWithChangesetSuccess'](_0x3513f9))throw _0x3513f9[_0x262893(0x37d)];_0x299e2b=_0x3513f9[_0x262893(0x4b5)],_0x3a711f=_0x3513f9['m2Prime'];}else _0x299e2b=_0xb7c60;this[_0x262893(0x4c7)](_0x299e2b);}),this['_acknowledgedAwaitingChangeset']&&this['_incrementRevisionNumber'](),this[_0x2ec899(0x252)]&&_0x1c1356['length']&&(_0x1c1356[0x0][_0x2ec899(0x353)]=this['_getCurrentRevision']());let _0x183d2e;if(this[_0x2ec899(0x252)]&&_0x3a711f['length']!==0x0)_0x183d2e=this[_0x2ec899(0x2fc)][_0x2ec899(0x2f6)](_0x189a45,this[_0x2ec899(0x239)],this[_0x2ec899(0x2e4)],_0x1c1356[0x0],_0x3a711f,this[_0x2ec899(0x14c)]);else{if(this[_0x2ec899(0x252)]&&_0x3a711f[_0x2ec899(0x118)]===0x0)_0x1c1356[0x0][_0x2ec899(0x353)]=this[_0x2ec899(0xf1)](),_0x183d2e=this[_0x2ec899(0x2fc)][_0x2ec899(0x2f6)](_0xaa98f9,this['unitID'],this[_0x2ec899(0x2e4)],_0x1c1356[0x0],this[_0x2ec899(0x14c)]);else{if(_0x3a711f['length']!==0x0){const _0x275ecb=this[_0x2ec899(0x2fc)][_0x2ec899(0x2f6)](_0x4ae15d,this['unitID'],this['type'],_0x3a711f,this[_0x2ec899(0x14c)]);_0x275ecb['_schedule'](),_0x183d2e=_0x275ecb;}else _0x183d2e=this[_0x2ec899(0x2fc)][_0x2ec899(0x2f6)](_0x495f7c,this[_0x2ec899(0x239)],this[_0x2ec899(0x2e4)],this['_handler']);}}return _0x183d2e[_0x2ec899(0x4c9)](),_0x183d2e;}catch(_0x5f579a){return this[_0x2ec899(0x414)][_0x2ec899(0x37d)](_0x2ec899(0x23f),_0x2ec899(0x125),_0x5f579a),this[_0x2ec899(0x2fc)][_0x2ec899(0x2f6)](_0x3a479a,this[_0x2ec899(0x239)],this[_0x2ec899(0x2e4)],this[_0x2ec899(0x252)],this[_0x2ec899(0x19e)],this['_handler'],!0x1);}}[_0x144fb0(0x47c)](){const _0x553373=_0x144fb0;throw new Error(_0x553373(0x24d));}[_0x144fb0(0x207)](_0x3a62ec){const _0x31ae72=_0x144fb0;return this[_0x31ae72(0x19e)][_0x31ae72(0x20e)](_0x3a62ec),this;}[_0x144fb0(0x455)](_0xc2b436){const _0x380e38=_0x144fb0;return this[_0x380e38(0x25f)][_0x380e38(0x20e)](_0xc2b436),this;}[_0x144fb0(0x3a9)](_0x47330d){const _0x17b600=_0x144fb0;if(this[_0x17b600(0x252)])return this['_acknowledgedAwaitingChangeset']=this[_0x17b600(0x252)],this[_0x17b600(0x252)]=null,this;throw new Error(_0x17b600(0x4b6));}[_0x144fb0(0x1dd)](_0x18dda3){const _0x545def=_0x144fb0;return this['_onConflict'](!!(_0x18dda3!=null&&_0x18dda3[_0x545def(0x4a3)]));}[_0x144fb0(0x187)](){const _0x1c4321=_0x144fb0;return this['_injector'][_0x1c4321(0x2f6)](_0x44c69c,this[_0x1c4321(0x239)],this[_0x1c4321(0x2e4)],this[_0x1c4321(0x252)],this['_pendingMutations'],this['_handler']);}['toggleOnline'](){return this;}[_0x144fb0(0x1cb)](_0x39e4d7){const _0x4682f4=_0x144fb0;return this[_0x4682f4(0x2fc)][_0x4682f4(0x2f6)](_0x3a479a,this[_0x4682f4(0x239)],this['type'],this[_0x4682f4(0x252)],this[_0x4682f4(0x19e)],this[_0x4682f4(0x14c)],_0x39e4d7);}};_0x4b3f93=_0x5a9e03([_0xbe94c7(0x7,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x394)])),_0xbe94c7(0x8,_0x20df93['Inject'](_0x55cc56['RevisionService'])),_0xbe94c7(0x9,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94[_0x144fb0(0x309)])),_0xbe94c7(0xa,_0x20df93[_0x144fb0(0x1a2)]),_0xbe94c7(0xb,_0x20df93[_0x144fb0(0x338)]),_0xbe94c7(0xc,_0x20df93[_0x144fb0(0x2d0)]),_0xbe94c7(0xd,_0x55cc56['ITransformService'])],_0x4b3f93);function _0x45d61b(_0x3ef9d3,_0x344fce,_0x3fe061,_0x2252b3,_0x1c3ed7,_0x56f451){const _0x12f44a=_0x144fb0;return _0x2252b3&&_0x1c3ed7[_0x12f44a(0x118)]?_0x3ef9d3[_0x12f44a(0x2f6)](_0x189a45,_0x344fce,_0x3fe061,_0x2252b3,_0x1c3ed7,_0x56f451):_0x2252b3?_0x3ef9d3[_0x12f44a(0x2f6)](_0xaa98f9,_0x344fce,_0x3fe061,_0x2252b3,_0x56f451):_0x1c3ed7[_0x12f44a(0x118)]?_0x3ef9d3['createInstance'](_0x4ae15d,_0x344fce,_0x3fe061,_0x1c3ed7,_0x56f451):_0x3ef9d3[_0x12f44a(0x2f6)](_0x495f7c,_0x344fce,_0x3fe061,_0x56f451);}var _0x3ca8e2=Object[_0x144fb0(0x395)],_0x5e34a8=Object['getOwnPropertyDescriptor'],_0x50fae8=(_0x413929,_0x23f399,_0x25444c,_0x594cd8)=>{const _0x6e401=_0x144fb0;for(var _0x41df72=_0x594cd8>0x1?void 0x0:_0x594cd8?_0x5e34a8(_0x23f399,_0x25444c):_0x23f399,_0x4a9602=_0x413929[_0x6e401(0x118)]-0x1,_0x55308d;_0x4a9602>=0x0;_0x4a9602--)(_0x55308d=_0x413929[_0x4a9602])&&(_0x41df72=(_0x594cd8?_0x55308d(_0x23f399,_0x25444c,_0x41df72):_0x55308d(_0x41df72))||_0x41df72);return _0x594cd8&&_0x41df72&&_0x3ca8e2(_0x23f399,_0x25444c,_0x41df72),_0x41df72;},_0x7d90d4=(_0x4a9aa3,_0x3028bf)=>(_0x4aca87,_0x34e615)=>_0x3028bf(_0x4aca87,_0x34e615,_0x4a9aa3);_0x4c8f94['CollaborationEntity']=class extends _0x20df93[_0x144fb0(0x330)]{constructor(_0x2e21b1,_0x1b2dce,_0x5c040f,_0x3c5bb6,_0x872e44,_0x232715,_0x57ed90,_0x8262f9,_0x1cfdad,_0x4ad183,_0x4573fd,_0x39e44f,_0x1d83af){const _0x4e16af=_0x144fb0;super(),_0x3e782f(this,_0x4e16af(0x46b),new _0x284d0[(_0x4e16af(0x237))](null)),_0x3e782f(this,_0x4e16af(0xf9),this['_state$'][_0x4e16af(0x17e)]()),_0x3e782f(this,_0x4e16af(0x1b4)),_0x3e782f(this,_0x4e16af(0x2a0),!0x1),_0x3e782f(this,_0x4e16af(0x4c2),this[_0x4e16af(0xf9)][_0x4e16af(0x34d)](_0x284d0[_0x4e16af(0x296)](_0x7a1e60=>_0x7a1e60?_0x7a1e60[_0x4e16af(0x442)]:_0x5d3e7e[_0x4e16af(0x2d5)]),_0x284d0[_0x4e16af(0x447)](0x1))),_0x3e782f(this,'_transitionLocked',!0x1),_0x3e782f(this,_0x4e16af(0x135),[]),(this[_0x4e16af(0x239)]=_0x2e21b1,this[_0x4e16af(0x1b0)]=_0x1b2dce,this[_0x4e16af(0xf2)]=_0x5c040f,this[_0x4e16af(0x2fc)]=_0x3c5bb6,this[_0x4e16af(0x2be)]=_0x872e44,this[_0x4e16af(0x20a)]=_0x232715,this['_localeService']=_0x57ed90,this[_0x4e16af(0x3da)]=_0x8262f9,this[_0x4e16af(0x414)]=_0x1cfdad,this[_0x4e16af(0x2d1)]=_0x4ad183,this[_0x4e16af(0x2ac)]=_0x4573fd,this[_0x4e16af(0x471)]=_0x39e44f,this[_0x4e16af(0x3a4)]=_0x1d83af);}get[_0x144fb0(0x2db)](){const _0x652911=_0x144fb0;return this[_0x652911(0x1b4)];}async['init'](){const _0x42e3a2=_0x144fb0;if(this['state'])throw new Error(_0x42e3a2(0xb1));await this[_0x42e3a2(0x198)]();}['pauseCollaboration'](){const _0x47e531=_0x144fb0;return this[_0x47e531(0x2a0)]=!0x0,_0x20df93['toDisposable'](()=>{const _0x19afca=_0x47e531;this[_0x19afca(0x2a0)]=!0x1,this[_0x19afca(0x3b4)]();});}['_updateState'](_0x35792a){const _0x2cede7=_0x144fb0;this[_0x2cede7(0x1b4)]=_0x35792a,this[_0x2cede7(0x46b)]['next'](_0x35792a);}async[_0x144fb0(0x198)](){const _0x24898e=_0x144fb0;var _0x578025;this['_updateState'](await this[_0x24898e(0x1cf)]()),this[_0x24898e(0x3a4)]&&((_0x578025=this[_0x24898e(0x3a4)])==null||_0x578025[_0x24898e(0x38e)](this[_0x24898e(0x239)]),this[_0x24898e(0x397)](this[_0x24898e(0x3a4)]['getUnitStatus$'](this[_0x24898e(0x239)])[_0x24898e(0xda)](_0xbdd597=>{const _0x135032=_0x24898e;this['_logService']['debug'](_0x135032(0x347),'editing\x20status\x20changed\x20to',_0xbdd597),_0xbdd597===_0x4b0976[_0x135032(0xb9)]?(this['_messageService'][_0x135032(0x429)]({'content':this['_localeService']['t']('collaboration.single-unit.warning'),'type':_0x3206ad[_0x135032(0x43e)]['Warning']}),this[_0x135032(0x471)][_0x135032(0x2ad)](new _0x5dce24['WorkbookEditablePermission'](this[_0x135032(0x239)])['id'],!0x1)):this['_permissionService'][_0x135032(0x2ad)](new _0x5dce24[(_0x135032(0x1e0))](this[_0x135032(0x239)])['id'],!0x0);})));let _0x420089=!0x1;return this[_0x24898e(0x397)](this['session'][_0x24898e(0x48d)]['subscribe'](_0x1eafac=>{const _0x2e3ef5=_0x24898e;_0x1eafac===_0x4d48e1[_0x2e3ef5(0x16b)]?this['_toggleOnline'](_0x420089):_0x1eafac===_0x4d48e1['OFFLINE']&&(_0x420089=!0x0,this['_toggleOffline']());})),this[_0x24898e(0x397)](this[_0x24898e(0x1b0)][_0x24898e(0x435)][_0x24898e(0xda)](_0x3b739b=>{const _0x112d0b=_0x24898e;try{switch(_0x3b739b[_0x112d0b(0x109)]){case _0x55cc56[_0x112d0b(0xf4)][_0x112d0b(0x2ba)]:{this[_0x112d0b(0x4a8)](_0x55cc56['parseProtocolChangeset'](_0x3b739b[_0x112d0b(0x24b)]));break;}case _0x55cc56[_0x112d0b(0xf4)][_0x112d0b(0x244)]:{this[_0x112d0b(0x25b)](_0x3b739b[_0x112d0b(0x24b)]);break;}case _0x55cc56['CollaborationEvent']['CHANGESET_REJ']:{this['_onRemoteRejected']();break;}case _0x55cc56[_0x112d0b(0xf4)]['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x112d0b(0x251)](_0x3b739b[_0x112d0b(0x24b)][_0x112d0b(0x316)][_0x112d0b(0x296)](_0xd57277=>_0x55cc56[_0x112d0b(0x393)](_0xd57277)));break;}case _0x55cc56[_0x112d0b(0xf4)][_0x112d0b(0x100)]:this[_0x112d0b(0x199)]({'isPermissionRej':!0x0});}}catch(_0x54660f){throw console[_0x112d0b(0x37d)](_0x112d0b(0x16d),_0x54660f),_0x54660f;}})),this[_0x24898e(0x1b4)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x3517b0=_0x144fb0;if(this[_0x3517b0(0x1f3)])throw new Error(_0x3517b0(0x3ab));this[_0x3517b0(0x1f3)]=!0x0;}['_onLocalMutation'](_0x2a5e13){const _0x3cf2a8=_0x144fb0;this[_0x3cf2a8(0x272)](),this[_0x3cf2a8(0xff)](this[_0x3cf2a8(0x1b4)]['appendMutation'](_0x2a5e13)),this[_0x3cf2a8(0x2ed)]();}[_0x144fb0(0x4a8)](_0x232a10){const _0x52e4e5=_0x144fb0;if(!(_0x232a10[_0x52e4e5(0x376)]<=this[_0x52e4e5(0x3da)]['getCurrentRevOfUnit'](this['unitID']))){if(this['_collaborationPaused']){this[_0x52e4e5(0x135)][_0x52e4e5(0x20e)](_0x232a10);return;}this[_0x52e4e5(0x3f4)](_0x232a10);}}[_0x144fb0(0x3b4)](){const _0x2f10ea=_0x144fb0;this['_remoteChangesetQueue'][_0x2f10ea(0x478)](_0x4a5f2a=>this[_0x2f10ea(0x3f4)](_0x4a5f2a)),this[_0x2f10ea(0x135)]=[];}[_0x144fb0(0x3f4)](_0x433cde){const _0xa1561f=_0x144fb0,_0x10bc2f=this[_0xa1561f(0x20a)][_0xa1561f(0x354)][_0xa1561f(0x29a)](this[_0xa1561f(0x20a)][_0xa1561f(0x354)][_0xa1561f(0x1e2)]()['COMPRESS_MUTATION_APPLY'])(_0x433cde[_0xa1561f(0x366)],null)||_0x433cde[_0xa1561f(0x366)],_0x17b4f3={..._0x433cde,'mutations':_0x10bc2f};this[_0xa1561f(0x272)](),this[_0xa1561f(0xff)](this[_0xa1561f(0x1b4)]['onRemoteChangeset'](_0x17b4f3)),this['_unlockTransition']();}[_0x144fb0(0x25b)](_0x1a2dab){const _0x12e293=_0x144fb0;this[_0x12e293(0x272)](),this[_0x12e293(0xff)](this[_0x12e293(0x1b4)]['onRemoteAck'](_0x1a2dab)),this[_0x12e293(0x2ed)]();}['_onRemoteRejected'](_0x2d09c9){const _0x166ed8=_0x144fb0;this[_0x166ed8(0x272)](),this['_updateState'](this[_0x166ed8(0x1b4)]['onRemoteRej'](_0x2d09c9)),this['_unlockTransition']();}[_0x144fb0(0x251)](_0x3e3eda){const _0x352326=_0x144fb0;if(!(this[_0x352326(0x1b4)]instanceof _0x4b3f93))throw new TypeError(_0x352326(0x297));const _0x17f07c=_0x3e3eda[_0x352326(0x296)](_0x4090cd=>{const _0x1c3633=_0x352326,_0x2a3a30=this[_0x1c3633(0x20a)][_0x1c3633(0x354)][_0x1c3633(0x29a)](this[_0x1c3633(0x20a)]['interceptor']['getInterceptPoints']()[_0x1c3633(0x410)])(_0x4090cd[_0x1c3633(0x366)],null)||_0x4090cd[_0x1c3633(0x366)];return{..._0x4090cd,'mutations':_0x2a3a30};});this[_0x352326(0x272)](),this[_0x352326(0xff)](this['_state'][_0x352326(0x154)](_0x17f07c)),this[_0x352326(0x2ed)]();}[_0x144fb0(0x3f6)](){const _0x596957=_0x144fb0;this[_0x596957(0x272)](),this[_0x596957(0xff)](this['_state'][_0x596957(0x187)]()),this[_0x596957(0x2ed)]();}[_0x144fb0(0x12c)](_0x5aead1=!0x1){const _0x4922da=_0x144fb0;this[_0x4922da(0x272)](),this[_0x4922da(0xff)](this[_0x4922da(0x1b4)]['toggleOnline']()),this[_0x4922da(0x2ed)]();const _0x10d5ee=this[_0x4922da(0x1b4)];_0x5aead1&&_0x10d5ee instanceof _0x495f7c&&(this[_0x4922da(0x272)](),this[_0x4922da(0xff)](_0x10d5ee[_0x4922da(0x2b2)]()),this[_0x4922da(0x2ed)]());}async[_0x144fb0(0x1cf)](){return new Promise(_0x38d8ee=>{const _0x93a23=_0x205f;this[_0x93a23(0x1b0)]['sessionStatus$']['pipe'](_0x284d0[_0x93a23(0x2c9)](0x1))['subscribe'](async _0x3ca3eb=>{const _0x6c7f94=_0x93a23;_0x38d8ee(await this[_0x6c7f94(0x129)](_0x3ca3eb===_0x4d48e1[_0x6c7f94(0x16b)]));});});}[_0x144fb0(0x1ea)](){const _0x5e67e2=_0x144fb0,_0x12ede7=this[_0x5e67e2(0x239)];return{'onStateChange':(_0x2964c4,_0x5dabe8)=>{const _0x55a0f4=_0x5e67e2;if(_0x2964c4!==this[_0x55a0f4(0x1b4)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x2964c4['status']+_0x55a0f4(0x1b3)+_0x5dabe8['status']+_0x55a0f4(0x4b0)+this[_0x55a0f4(0x1b4)][_0x55a0f4(0x442)]);this['_updateState'](_0x5dabe8);},'onSendChangeset':_0x42115d=>{const _0x4f16d5=_0x5e67e2,_0x3c435c={'eventID':_0x55cc56[_0x4f16d5(0xf4)][_0x4f16d5(0x24f)],'data':{'unitID':_0x42115d[_0x4f16d5(0x239)],'unitType':this[_0x4f16d5(0xf2)],'changeset':_0x42115d,'memberID':this[_0x4f16d5(0x1b0)][_0x4f16d5(0x483)]()}};this[_0x4f16d5(0x1b0)][_0x4f16d5(0x31c)](_0x3c435c,this[_0x4f16d5(0x239)]);},'onMissingChangesets':({from:_0x23acee,to:_0x23bb18})=>{const _0xf29b29=_0x5e67e2;this[_0xf29b29(0x414)][_0xf29b29(0xd6)](_0xf29b29(0x347),_0xf29b29(0x1c8)+_0x23acee+_0xf29b29(0xde)+_0x23bb18);const _0x10aab0={'eventID':_0x55cc56[_0xf29b29(0xf4)][_0xf29b29(0x47d)],'data':{'unitID':_0x12ede7,'unitType':this[_0xf29b29(0xf2)],'from':_0x23acee,'to':_0x23bb18}};this[_0xf29b29(0x1b0)][_0xf29b29(0x31c)](_0x10aab0,this[_0xf29b29(0x239)]);}};}async['_createInitialStateImpl'](_0x2ea5b9){const _0x56454b=_0x144fb0;var _0x3a89fa,_0x578c23;const _0x156aaf=await this[_0x56454b(0x2be)][_0x56454b(0x19f)](this[_0x56454b(0x239)]),_0x44342d=(_0x3a89fa=_0x156aaf==null?void 0x0:_0x156aaf[_0x56454b(0x366)])!=null?_0x3a89fa:[],_0x1e0d37=(_0x578c23=_0x156aaf==null?void 0x0:_0x156aaf[_0x56454b(0x1a7)])!=null?_0x578c23:null,_0x3706c9=this[_0x56454b(0x239)];try{this[_0x56454b(0x28b)](_0x1e0d37,_0x44342d);}catch(_0x20be1e){this[_0x56454b(0x414)][_0x56454b(0x37d)](_0x20be1e);}const _0x52285d=this[_0x56454b(0x1ea)]();if(_0x2ea5b9){const _0x1176ed=_0x45d61b(this[_0x56454b(0x2fc)],_0x3706c9,this[_0x56454b(0xf2)],_0x1e0d37,_0x44342d,_0x52285d);return _0x1176ed instanceof _0x4ae15d?_0x1176ed[_0x56454b(0x1bf)]():(_0x1176ed instanceof _0x189a45||_0x1176ed instanceof _0xaa98f9)&&_0x1176ed[_0x56454b(0x47c)](),_0x1176ed;}return this[_0x56454b(0x2fc)][_0x56454b(0x2f6)](_0x44c69c,_0x3706c9,this[_0x56454b(0xf2)],_0x1e0d37,_0x44342d,_0x52285d);}['_replayCachedMutations'](_0x39d754,_0x2e4533){const _0x446b4a=_0x144fb0;var _0x1680fd,_0x4f1ba9;const _0x243060=this[_0x446b4a(0x20a)][_0x446b4a(0x354)][_0x446b4a(0x29a)](this[_0x446b4a(0x20a)][_0x446b4a(0x354)][_0x446b4a(0x1e2)]()[_0x446b4a(0x410)]);(_0x1680fd=_0x243060((_0x39d754==null?void 0x0:_0x39d754[_0x446b4a(0x366)])||[],null))==null||_0x1680fd[_0x446b4a(0x478)](_0x4c7c7b=>this[_0x446b4a(0x2d1)]['executeCommand'](_0x4c7c7b['id'],_0x4c7c7b[_0x446b4a(0xa3)])),(_0x4f1ba9=_0x243060(_0x2e4533||[],null))==null||_0x4f1ba9[_0x446b4a(0x478)](_0x1dda46=>this[_0x446b4a(0x2d1)][_0x446b4a(0x1fe)](_0x1dda46['id'],_0x1dda46[_0x446b4a(0xa3)]));}},_0x4c8f94[_0x144fb0(0x462)]=_0x50fae8([_0x7d90d4(0x3,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x394)])),_0x7d90d4(0x4,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94['LocalCacheService'])),_0x7d90d4(0x5,_0x20df93['Inject'](_0x55cc56['CompressMutationService'])),_0x7d90d4(0x6,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x142)])),_0x7d90d4(0x7,_0x20df93[_0x144fb0(0xdd)](_0x55cc56[_0x144fb0(0xf8)])),_0x7d90d4(0x8,_0x20df93['ILogService']),_0x7d90d4(0x9,_0x20df93['ICommandService']),_0x7d90d4(0xa,_0x40b1aa[_0x144fb0(0x3fe)]),_0x7d90d4(0xb,_0x20df93[_0x144fb0(0x250)]),_0x7d90d4(0xc,_0x20df93[_0x144fb0(0x44e)](_0x3977df))],_0x4c8f94['CollaborationEntity']),_0x4c8f94[_0x144fb0(0x184)]=class extends _0x4c8f94[_0x144fb0(0x462)]{constructor(_0x509115,_0x11206,_0x11c7b4,_0x2e746d,_0x489ab0,_0x363197,_0x59e25e,_0x4664be,_0x220ff6,_0x48ffbd,_0x3c6dfd,_0x3f4da0,_0x4b1dd7,_0x52c051,_0x1015a0,_0x10a105,_0x28838e){const _0x4b9297=_0x144fb0;super(_0x509115,_0x11c7b4,_0x11206,_0x2e746d,_0x489ab0,_0x363197,_0x59e25e,_0x4664be,_0x4b1dd7,_0x52c051,_0x1015a0,_0x10a105,_0x28838e),this[_0x4b9297(0x239)]=_0x509115,this[_0x4b9297(0x2e4)]=_0x11206,this[_0x4b9297(0x2eb)]=_0x220ff6,this['_docTransformIMECacheService']=_0x48ffbd,this[_0x4b9297(0x39e)]=_0x3c6dfd,this['_docSyncEditingCollabCursorService']=_0x3f4da0;}[_0x144fb0(0x1ea)](){const _0x22286f=_0x144fb0,_0x164995=super[_0x22286f(0x1ea)]();return _0x164995[_0x22286f(0x3f5)]=_0x40317c=>this[_0x22286f(0x282)][_0x22286f(0xa1)](_0x40317c),_0x164995[_0x22286f(0x1bc)]=_0x516618=>this['_docTransformSelectionsService'][_0x22286f(0x444)](_0x516618),_0x164995[_0x22286f(0x323)]=_0x5ac22c=>this['_docSyncEditingCollabCursorService'][_0x22286f(0x2fb)](_0x5ac22c),_0x164995['onTransformRemoteChangesetByIMECache']=_0xb5119b=>this['_docTransformIMECacheService'][_0x22286f(0x418)](_0xb5119b),_0x164995;}async[_0x144fb0(0x198)](){const _0x109e82=_0x144fb0,_0x5c9a4f=await super['_init']();return this['disposeWithMe'](this[_0x109e82(0x2d1)]['onCommandExecuted']((_0x28e13f,_0x294fa2)=>{const _0x272dc5=_0x109e82;if(_0x28e13f[_0x272dc5(0x2e4)]!==_0x20df93[_0x272dc5(0x286)][_0x272dc5(0x372)]||_0x294fa2!=null&&_0x294fa2[_0x272dc5(0xd0)]||_0x294fa2!=null&&_0x294fa2['onlyLocal'])return;const _0x1d44da=_0x28e13f[_0x272dc5(0xa3)];if((_0x1d44da==null?void 0x0:_0x1d44da[_0x272dc5(0x1b7)])!==this['unitID'])return;let _0x22bde4=_0x28e13f;if(_0x22bde4['id']===_0x280e9c[_0x272dc5(0x24a)]['id']){const _0x4148fa=_0x22bde4['params'];_0x22bde4={'id':_0x280e9c[_0x272dc5(0x24a)]['id'],'type':_0x20df93['CommandType'][_0x272dc5(0x372)],'params':{'unitId':_0x4148fa[_0x272dc5(0x1b7)],'actions':_0x4148fa[_0x272dc5(0x437)],'textRanges':null}};}const _0x43ff3f=this[_0x272dc5(0x20a)][_0x272dc5(0x354)][_0x272dc5(0x29a)](this['_compressMutationService'][_0x272dc5(0x354)][_0x272dc5(0x1e2)]()[_0x272dc5(0x3be)])([_0x22bde4],null)||[_0x22bde4];this[_0x272dc5(0x236)](_0x43ff3f[0x0]);})),_0x5c9a4f;}},_0x4c8f94[_0x144fb0(0x184)]=_0x50fae8([_0x7d90d4(0x3,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x394)])),_0x7d90d4(0x4,_0x20df93['Inject'](_0x4c8f94[_0x144fb0(0x309)])),_0x7d90d4(0x5,_0x20df93[_0x144fb0(0xdd)](_0x55cc56[_0x144fb0(0x279)])),_0x7d90d4(0x6,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x142)])),_0x7d90d4(0x7,_0x20df93[_0x144fb0(0xdd)](_0x55cc56[_0x144fb0(0xf8)])),_0x7d90d4(0x8,_0x20df93[_0x144fb0(0xdd)](_0x3b39ef[_0x144fb0(0x472)])),_0x7d90d4(0x9,_0x20df93['Inject'](_0x57c1cf)),_0x7d90d4(0xa,_0x20df93['Inject'](_0x5d5342)),_0x7d90d4(0xb,_0x20df93['Inject'](_0x1ab040)),_0x7d90d4(0xc,_0x20df93[_0x144fb0(0x1a2)]),_0x7d90d4(0xd,_0x20df93[_0x144fb0(0x338)]),_0x7d90d4(0xe,_0x40b1aa[_0x144fb0(0x3fe)]),_0x7d90d4(0xf,_0x20df93[_0x144fb0(0x250)]),_0x7d90d4(0x10,_0x20df93[_0x144fb0(0x44e)](_0x3977df))],_0x4c8f94['DocCollaborationEntity']),_0x4c8f94[_0x144fb0(0xf0)]=class extends _0x4c8f94[_0x144fb0(0x462)]{constructor(_0x525b5b,_0x4430e2,_0x5f5a7f,_0x150a21,_0x1b89ab,_0x4d0c50,_0x606082,_0x51145c,_0x531640,_0x498954,_0x87211c,_0x175082,_0x528859,_0x6028a4){const _0x50c9b7=_0x144fb0;super(_0x525b5b,_0x5f5a7f,_0x4430e2,_0x150a21,_0x1b89ab,_0x4d0c50,_0x606082,_0x51145c,_0x498954,_0x87211c,_0x175082,_0x528859,_0x6028a4),this[_0x50c9b7(0x239)]=_0x525b5b,this[_0x50c9b7(0x2e4)]=_0x4430e2,this[_0x50c9b7(0x479)]=_0x531640;}[_0x144fb0(0x1ea)](){const _0x5f3b0a=_0x144fb0,_0x59a48f=super[_0x5f3b0a(0x1ea)]();return _0x59a48f[_0x5f3b0a(0x1bc)]=_0xf9b5e6=>this[_0x5f3b0a(0x479)]['transformSelections'](_0xf9b5e6),_0x59a48f;}async[_0x144fb0(0x198)](){const _0x1901ed=_0x144fb0,_0x458cf8=await super[_0x1901ed(0x198)]();return this[_0x1901ed(0x397)](this['_commandService'][_0x1901ed(0x3f9)]((_0x384c87,_0x5ce854)=>{const _0x717be5=_0x1901ed;if(_0x384c87[_0x717be5(0x2e4)]!==_0x20df93[_0x717be5(0x286)]['MUTATION']||_0x5ce854!=null&&_0x5ce854['fromCollab']||_0x5ce854!=null&&_0x5ce854[_0x717be5(0x12b)])return;const _0x27d218=_0x384c87['params'];if((_0x27d218==null?void 0x0:_0x27d218['unitId'])!==this['unitID'])return;const _0x40b1ce=_0x384c87,_0x3af6c1=this[_0x717be5(0x20a)][_0x717be5(0x354)][_0x717be5(0x29a)](this[_0x717be5(0x20a)][_0x717be5(0x354)][_0x717be5(0x1e2)]()['COMPRESS_MUTATION_SEND'])([_0x40b1ce],null)||[_0x40b1ce];this[_0x717be5(0x236)](_0x3af6c1[0x0]);})),_0x458cf8;}},_0x4c8f94['SheetCollaborationEntity']=_0x50fae8([_0x7d90d4(0x3,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x394)])),_0x7d90d4(0x4,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94[_0x144fb0(0x309)])),_0x7d90d4(0x5,_0x20df93['Inject'](_0x55cc56[_0x144fb0(0x279)])),_0x7d90d4(0x6,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x142)])),_0x7d90d4(0x7,_0x20df93[_0x144fb0(0xdd)](_0x55cc56['RevisionService'])),_0x7d90d4(0x8,_0x20df93[_0x144fb0(0xdd)](_0x44b9f8)),_0x7d90d4(0x9,_0x20df93[_0x144fb0(0x1a2)]),_0x7d90d4(0xa,_0x20df93[_0x144fb0(0x338)]),_0x7d90d4(0xb,_0x40b1aa[_0x144fb0(0x3fe)]),_0x7d90d4(0xc,_0x20df93['IPermissionService']),_0x7d90d4(0xd,_0x20df93[_0x144fb0(0x44e)](_0x3977df))],_0x4c8f94[_0x144fb0(0xf0)]);var _0x580d17=Object[_0x144fb0(0x395)],_0x1b4e22=Object['getOwnPropertyDescriptor'],_0x4ad47c=(_0x3f3454,_0xc525c7,_0x2aa651,_0x5973cc)=>{const _0x5731a0=_0x144fb0;for(var _0x58a3d6=_0x5973cc>0x1?void 0x0:_0x5973cc?_0x1b4e22(_0xc525c7,_0x2aa651):_0xc525c7,_0x3be75a=_0x3f3454[_0x5731a0(0x118)]-0x1,_0x4dcf61;_0x3be75a>=0x0;_0x3be75a--)(_0x4dcf61=_0x3f3454[_0x3be75a])&&(_0x58a3d6=(_0x5973cc?_0x4dcf61(_0xc525c7,_0x2aa651,_0x58a3d6):_0x4dcf61(_0x58a3d6))||_0x58a3d6);return _0x5973cc&&_0x58a3d6&&_0x580d17(_0xc525c7,_0x2aa651,_0x58a3d6),_0x58a3d6;},_0x2d5c8c=(_0x1ecc57,_0x515767)=>(_0x4caa98,_0x4e38b6)=>_0x515767(_0x4caa98,_0x4e38b6,_0x1ecc57);_0x4c8f94[_0x144fb0(0x10e)]=class extends _0x20df93[_0x144fb0(0x330)]{constructor(_0x5d3df1,_0xb25b73,_0x4fbbac){const _0x5a61c3=_0x144fb0;super(),_0x3e782f(this,_0x5a61c3(0x3b0),new Map()),_0x3e782f(this,_0x5a61c3(0x391),new _0x284d0[(_0x5a61c3(0x12d))]()),(this[_0x5a61c3(0x2fc)]=_0x5d3df1,this[_0x5a61c3(0x4b7)]=_0xb25b73,this[_0x5a61c3(0xc8)]=_0x4fbbac,this['_init']());}[_0x144fb0(0x320)](){const _0x51bd7b=_0x144fb0;super[_0x51bd7b(0x320)](),this[_0x51bd7b(0x3b0)][_0x51bd7b(0x478)](_0x597664=>_0x597664[_0x51bd7b(0x320)]()),this[_0x51bd7b(0x3b0)][_0x51bd7b(0xb4)]();}[_0x144fb0(0x407)](_0x220dd9){const _0x42e738=_0x144fb0;var _0x20f3f0;return(_0x20f3f0=this[_0x42e738(0x3b0)]['get'](_0x220dd9))!=null?_0x20f3f0:null;}['getCollabEntity$'](_0x5e432d){const _0xb9c35d=_0x144fb0,_0xebbdb0=this[_0xb9c35d(0x407)](_0x5e432d);return _0xebbdb0?_0x284d0['of'](_0xebbdb0):this[_0xb9c35d(0x391)][_0xb9c35d(0x34d)](_0x3e7ea3['filter'](_0x5789f0=>_0x5789f0['unitID']===_0x5e432d));}[_0x144fb0(0x198)](){const _0x48d0c0=_0x144fb0;this[_0x48d0c0(0xc8)][_0x48d0c0(0x362)](_0x20df93['UniverInstanceType'][_0x48d0c0(0x4bf)])[_0x48d0c0(0x34d)](_0x284d0['takeUntil'](this[_0x48d0c0(0x288)]),_0x3e7ea3[_0x48d0c0(0x36e)](0x10))['subscribe'](async _0xc2fece=>{const _0x4c7017=_0x48d0c0,_0x1d8ee1=_0xc2fece[_0x4c7017(0x1fd)](),_0x110663=await this[_0x4c7017(0xae)](_0x1d8ee1,_0x3dff5a[_0x4c7017(0x4bf)]);this[_0x4c7017(0x3b0)]['set'](_0x1d8ee1,_0x110663);}),this[_0x48d0c0(0xc8)][_0x48d0c0(0x362)](_0x20df93[_0x48d0c0(0x441)][_0x48d0c0(0x126)])['pipe'](_0x284d0[_0x48d0c0(0xa0)](this[_0x48d0c0(0x288)]),_0x3e7ea3[_0x48d0c0(0x36e)](0x10))[_0x48d0c0(0x34d)](_0x3e7ea3[_0x48d0c0(0x4a2)](_0x3b553a=>!_0x3b553a['getUnitId']()['startsWith']('__')))[_0x48d0c0(0xda)](async _0x395fb5=>{const _0x2cdca9=_0x48d0c0,_0x34b517=_0x395fb5[_0x2cdca9(0x1fd)](),_0x13701d=await this[_0x2cdca9(0xae)](_0x34b517,_0x3dff5a['UNIVER_DOC']);this[_0x2cdca9(0x3b0)][_0x2cdca9(0x271)](_0x34b517,_0x13701d);}),_0x284d0[_0x48d0c0(0x8c)](this['_univerInstanceService'][_0x48d0c0(0x1a1)](_0x20df93['UniverInstanceType']['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x20df93[_0x48d0c0(0x441)][_0x48d0c0(0x126)]))[_0x48d0c0(0x34d)](_0x284d0[_0x48d0c0(0xa0)](this[_0x48d0c0(0x288)]))[_0x48d0c0(0xda)](_0x187256=>{const _0x27491d=_0x48d0c0,_0x44e134=_0x187256['getUnitId'](),_0x5b12c8=this['_entities'][_0x27491d(0x3b8)](_0x44e134);_0x5b12c8&&(_0x5b12c8['dispose'](),this[_0x27491d(0x3b0)][_0x27491d(0x32d)](_0x44e134));});}async[_0x144fb0(0xae)](_0x2c89e1,_0x49bbec){const _0x3d9943=_0x144fb0,_0xf778be=await this[_0x3d9943(0x4b7)][_0x3d9943(0x24e)](_0x2c89e1),_0x48e8df=this['_injector']['createInstance'](this[_0x3d9943(0x9d)](_0x49bbec),_0x2c89e1,_0x49bbec,_0xf778be);return await _0x48e8df[_0x3d9943(0x1e3)](),this[_0x3d9943(0x391)][_0x3d9943(0x25d)](_0x48e8df),_0x48e8df;}[_0x144fb0(0x9d)](_0x4904ad){const _0x5a6a4b=_0x144fb0;switch(_0x4904ad){case _0x3dff5a[_0x5a6a4b(0x126)]:return _0x4c8f94[_0x5a6a4b(0x184)];case _0x3dff5a[_0x5a6a4b(0x4bf)]:return _0x4c8f94[_0x5a6a4b(0xf0)];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x4904ad);}}},_0x4c8f94['CollaborationController']=_0x4ad47c([_0x2d5c8c(0x0,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x394)])),_0x2d5c8c(0x1,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94[_0x144fb0(0x491)])),_0x2d5c8c(0x2,_0x20df93[_0x144fb0(0x292)])],_0x4c8f94[_0x144fb0(0x10e)]);const _0x21fa97=[_0x144fb0(0x2e0),_0x144fb0(0x32c),_0x144fb0(0x293),_0x144fb0(0x2ff),'blue400',_0x144fb0(0x191)];class _0x402c47 extends _0x20df93[_0x144fb0(0x343)]{constructor(){const _0x3c2de3=_0x144fb0;super(...arguments),_0x3e782f(this,_0x3c2de3(0x216),new Map()),_0x3e782f(this,_0x3c2de3(0x476),0x0);}[_0x144fb0(0x108)](_0xd82e66){const _0xdcb706=_0x144fb0;if(this[_0xdcb706(0x216)][_0xdcb706(0x26d)](_0xd82e66))return this[_0xdcb706(0x216)][_0xdcb706(0x3b8)](_0xd82e66);const _0x1cebc1=_0x21fa97[this[_0xdcb706(0x476)]];return this[_0xdcb706(0x476)]=(this[_0xdcb706(0x476)]+0x1)%_0x21fa97['length'],this['_assignedColors'][_0xdcb706(0x271)](_0xd82e66,_0x1cebc1),_0x1cebc1;}}var _0x27aec5=Object[_0x144fb0(0x395)],_0x37e27b=Object[_0x144fb0(0x457)],_0x4f4570=(_0x33464f,_0x3cbbc7,_0x22ca74,_0x599821)=>{const _0x34fb4e=_0x144fb0;for(var _0x41b97b=_0x599821>0x1?void 0x0:_0x599821?_0x37e27b(_0x3cbbc7,_0x22ca74):_0x3cbbc7,_0x438542=_0x33464f[_0x34fb4e(0x118)]-0x1,_0x398add;_0x438542>=0x0;_0x438542--)(_0x398add=_0x33464f[_0x438542])&&(_0x41b97b=(_0x599821?_0x398add(_0x3cbbc7,_0x22ca74,_0x41b97b):_0x398add(_0x41b97b))||_0x41b97b);return _0x599821&&_0x41b97b&&_0x27aec5(_0x3cbbc7,_0x22ca74,_0x41b97b),_0x41b97b;},_0x49c543=(_0x36d098,_0x5f05c1)=>(_0x4cad2e,_0x94d3fb)=>_0x5f05c1(_0x4cad2e,_0x94d3fb,_0x36d098);const _0x36fcce=0x12c,_0x44e139=0x64;let _0x46da6f=class extends _0x20df93[_0x144fb0(0x330)]{constructor(_0x3ec57d,_0x2c9125,_0x2da59b,_0x34d8e8,_0x16cd10,_0x43755d,_0x7d1ea6,_0x148872,_0x4e9d87){const _0x43b025=_0x144fb0;super(),_0x3e782f(this,_0x43b025(0x21f),!0x1),_0x3e782f(this,_0x43b025(0x198),!0x1),_0x3e782f(this,'_cursorInfo$',new _0x284d0[(_0x43b025(0x237))](new Map())),_0x3e782f(this,_0x43b025(0x40f),this[_0x43b025(0x1ad)][_0x43b025(0x17e)]()),_0x3e782f(this,_0x43b025(0x38a),new _0x284d0[(_0x43b025(0x237))]([])),_0x3e782f(this,_0x43b025(0x386),this['_roomMembers$']['pipe'](_0x284d0[_0x43b025(0x35b)](_0x36fcce))),_0x3e782f(this,_0x43b025(0x269),_0x20df93[_0x43b025(0x1cc)](_0xde08d7=>{const _0x281110=_0x43b025,_0x54f8aa={'eventID':_0x55cc56[_0x281110(0xf4)][_0x281110(0x168)],'data':{'unitID':this[_0x281110(0x239)],'memberID':this[_0x281110(0xb0)][_0x281110(0x483)](),'selection':_0x3f4458(_0xde08d7)}};this[_0x281110(0xb0)]['send'](_0x54f8aa,this[_0x281110(0x239)]);},_0x44e139)),(this[_0x43b025(0x239)]=_0x3ec57d,this[_0x43b025(0xb0)]=_0x2c9125,this[_0x43b025(0x2fc)]=_0x2da59b,this[_0x43b025(0x456)]=_0x34d8e8,this[_0x43b025(0x486)]=_0x16cd10,this[_0x43b025(0x2b6)]=_0x43755d,this[_0x43b025(0x3dd)]=_0x7d1ea6,this[_0x43b025(0xc8)]=_0x148872,this[_0x43b025(0x2d1)]=_0x4e9d87);}get[_0x144fb0(0x35c)](){const _0x5e8aeb=_0x144fb0;return this[_0x5e8aeb(0x1ad)][_0x5e8aeb(0x183)]();}get[_0x144fb0(0xa2)](){const _0x3d4725=_0x144fb0;return this[_0x3d4725(0x38a)][_0x3d4725(0x183)]();}['dispose'](){const _0x21841c=_0x144fb0;super[_0x21841c(0x320)](),this['_cursorInfo$']['next'](new Map()),this[_0x21841c(0x1ad)][_0x21841c(0x25e)](),this[_0x21841c(0x38a)][_0x21841c(0x25d)]([]),this[_0x21841c(0x38a)][_0x21841c(0x25e)]();}[_0x144fb0(0x1e3)](){const _0x5cbd47=_0x144fb0;this[_0x5cbd47(0x198)]||(this[_0x5cbd47(0x198)]=!0x0,this['_session'][_0x5cbd47(0x48d)][_0x5cbd47(0x34d)](_0x284d0[_0x5cbd47(0xa0)](this[_0x5cbd47(0x288)]))['subscribe'](_0x3110a5=>{const _0x8eff8b=_0x5cbd47;_0x3110a5===_0x4d48e1['ONLINE']?this[_0x8eff8b(0x12c)]():this['_toggleOffline']();}),this['_session']['event$'][_0x5cbd47(0x34d)](_0x284d0['takeUntil'](this[_0x5cbd47(0x288)]))[_0x5cbd47(0xda)](_0x44c92d=>{const _0x79d2b8=_0x5cbd47,_0x5db569=_0x44c92d[_0x79d2b8(0x109)];_0x5db569===_0x55cc56[_0x79d2b8(0xf4)][_0x79d2b8(0x168)]&&this[_0x79d2b8(0xe3)](_0x44c92d),_0x5db569===_0x55cc56[_0x79d2b8(0xf4)][_0x79d2b8(0x177)]&&this[_0x79d2b8(0x2c5)](_0x44c92d);}),this['disposeWithMe'](this[_0x5cbd47(0x2d1)]['onCommandExecuted'](_0x37b129=>{const _0x3df3b8=_0x5cbd47,_0x251f31=_0x37b129[_0x3df3b8(0xa3)];_0x251f31!=null&&this[_0x3df3b8(0x21f)]&&_0x37b129['id']===_0x280e9c['SetTextSelectionsOperation']['id']&&_0x251f31[_0x3df3b8(0x1b7)]===this['unitID']&&_0x251f31[_0x3df3b8(0x1c0)]===!0x1&&this[_0x3df3b8(0x269)](_0x251f31['ranges']);})),this[_0x5cbd47(0x2b6)]['collabCursorState$'][_0x5cbd47(0x34d)](_0x284d0['takeUntil'](this[_0x5cbd47(0x288)]))['subscribe'](_0xe1dbbf=>{const _0xffae94=_0x5cbd47;if((_0xe1dbbf==null?void 0x0:_0xe1dbbf['unitID'])!==this[_0xffae94(0x239)])return;const _0xed4fe0={'eventID':_0x55cc56[_0xffae94(0xf4)][_0xffae94(0x168)],'data':_0xe1dbbf};this['_onCursorUpdate'](_0xed4fe0);}),this['disposeWithMe'](this[_0x5cbd47(0x2d1)][_0x5cbd47(0x3f9)](_0x42952d=>{const _0x1f6c9f=_0x5cbd47;if(_0x42952d[_0x1f6c9f(0xa3)]==null)return;const _0x55adb8=_0x42952d[_0x1f6c9f(0xa3)];if(_0x42952d['id']!==_0x280e9c[_0x1f6c9f(0x24a)]['id']||_0x55adb8[_0x1f6c9f(0x1b7)]!==this[_0x1f6c9f(0x239)])return;const _0xf573cf={'id':'doc.mutation.rich-text-editing','params':_0x55adb8},_0x48d87d=this[_0x1f6c9f(0x35c)];for(const [_0x4675e5,_0x5ac168]of _0x48d87d){const _0x41ba56={'id':_0x1f6c9f(0xbb),'params':{'unitId':this[_0x1f6c9f(0x239)],'actions':null,'textRanges':_0x5ac168[_0x1f6c9f(0x4a7)]}},_0x36064d=this[_0x1f6c9f(0x3dd)][_0x1f6c9f(0x469)](_0xf573cf,_0x41ba56,!0x1);if(_0x55cc56['isTransformMutationFailure'](_0x36064d))throw _0x36064d[_0x1f6c9f(0x37d)];_0x48d87d[_0x1f6c9f(0x271)](_0x4675e5,{..._0x5ac168,'ranges':_0x36064d['m2Prime'][_0x1f6c9f(0xa3)][_0x1f6c9f(0x14f)]});}queueMicrotask(()=>{const _0x5f4aa5=_0x1f6c9f;this[_0x5f4aa5(0x1ad)][_0x5f4aa5(0x25d)](_0x48d87d);});})));}[_0x144fb0(0xe3)](_0x48a64f){const _0x5525ee=_0x144fb0;var _0x12af10,_0x538bcb;const {memberID:_0x54cb83,selection:_0x4be0e4}=_0x48a64f[_0x5525ee(0x24b)],_0x4f82ee=_0x161949(_0x4be0e4),_0x327b4d=(_0x538bcb=(_0x12af10=this[_0x5525ee(0x486)][_0x5525ee(0x93)](this['unitID'],_0x54cb83))==null?void 0x0:_0x12af10[_0x5525ee(0x2b4)])!=null?_0x538bcb:'Unknown\x20user',_0x3b401c={'color':this['_colorAssignService'][_0x5525ee(0x108)](_0x54cb83),'name':_0x327b4d,'ranges':_0x4f82ee},_0x46bffc=this[_0x5525ee(0x35c)];_0x46bffc[_0x5525ee(0x271)](_0x54cb83,_0x3b401c),this['_cursorInfo$'][_0x5525ee(0x25d)](_0x46bffc);}[_0x144fb0(0x2c5)](_0x437b7b){const _0x1a87e2=_0x144fb0,{memberID:_0x50174a}=_0x437b7b[_0x1a87e2(0x24b)],_0x102bf6=this[_0x1a87e2(0x35c)];_0x102bf6[_0x1a87e2(0x32d)](_0x50174a),this[_0x1a87e2(0x1ad)][_0x1a87e2(0x25d)](_0x102bf6);}[_0x144fb0(0x12c)](){const _0x375d1d=_0x144fb0;var _0x108117;if(this[_0x375d1d(0x21f)]=!0x0,((_0x108117=this[_0x375d1d(0xc8)][_0x375d1d(0x138)]())==null?void 0x0:_0x108117[_0x375d1d(0x1fd)]())!==this[_0x375d1d(0x239)])return;const _0x554577=this[_0x375d1d(0x2fc)][_0x375d1d(0x3b8)](_0x280e9c['DocSelectionManagerService'])[_0x375d1d(0x151)]();Array[_0x375d1d(0x130)](_0x554577)&&_0x554577[_0x375d1d(0x118)]>0x0&&this['_updateLocalCursor'](_0x554577);}[_0x144fb0(0x3f6)](){this['_online']=!0x1;}};_0x46da6f=_0x4f4570([_0x49c543(0x2,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x394)])),_0x49c543(0x3,_0x20df93[_0x144fb0(0xdd)](_0x402c47)),_0x49c543(0x4,_0x20df93[_0x144fb0(0xdd)](_0x513006)),_0x49c543(0x5,_0x20df93[_0x144fb0(0xdd)](_0x1ab040)),_0x49c543(0x6,_0x55cc56[_0x144fb0(0x1bd)]),_0x49c543(0x7,_0x20df93[_0x144fb0(0x292)]),_0x49c543(0x8,_0x20df93[_0x144fb0(0x338)])],_0x46da6f);var _0x4ff2f8=Object[_0x144fb0(0x395)],_0x67a454=Object[_0x144fb0(0x457)],_0x3afc70=(_0x2c641a,_0x2fb6b2,_0x5106ad,_0x173b75)=>{const _0x3bf8b4=_0x144fb0;for(var _0x1315e2=_0x173b75>0x1?void 0x0:_0x173b75?_0x67a454(_0x2fb6b2,_0x5106ad):_0x2fb6b2,_0x5506b3=_0x2c641a[_0x3bf8b4(0x118)]-0x1,_0x57910f;_0x5506b3>=0x0;_0x5506b3--)(_0x57910f=_0x2c641a[_0x5506b3])&&(_0x1315e2=(_0x173b75?_0x57910f(_0x2fb6b2,_0x5106ad,_0x1315e2):_0x57910f(_0x1315e2))||_0x1315e2);return _0x173b75&&_0x1315e2&&_0x4ff2f8(_0x2fb6b2,_0x5106ad,_0x1315e2),_0x1315e2;},_0x3a353f=(_0x1caee8,_0xad3109)=>(_0x27ea51,_0x2e359f)=>_0xad3109(_0x27ea51,_0x2e359f,_0x1caee8);const _0x59d817=0x12c,_0x127e9c=0x64,_0x2b8a0f=()=>{let _0x469057=[],_0x4d1f26=!0x1;return _0x1a6209=>{const _0x3e4469=_0x205f;_0x469057[_0x3e4469(0x20e)](_0x1a6209),_0x4d1f26||(_0x4d1f26=!0x0,setTimeout(()=>{_0x469057['forEach'](_0x4750a5=>_0x4750a5()),_0x469057=[],_0x4d1f26=!0x1;}));};};let _0x3e98cd=class extends _0x20df93['RxDisposable']{constructor(_0x78fe8f,_0x420fcc,_0x4e3dd3,_0x527424,_0x3b2cb0,_0x316997,_0x25cbd2,_0xbb591c){const _0x1e7891=_0x144fb0;super(),_0x3e782f(this,_0x1e7891(0x21f),!0x1),_0x3e782f(this,_0x1e7891(0x198),!0x1),_0x3e782f(this,_0x1e7891(0x1ad),new _0x284d0[(_0x1e7891(0x237))](new Map())),_0x3e782f(this,'cursorInfo$',this['_cursorInfo$'][_0x1e7891(0x17e)]()),_0x3e782f(this,_0x1e7891(0x38a),new _0x284d0[(_0x1e7891(0x237))]([])),_0x3e782f(this,_0x1e7891(0x386),this[_0x1e7891(0x38a)]['pipe'](_0x284d0[_0x1e7891(0x35b)](_0x59d817))),_0x3e782f(this,_0x1e7891(0x269),_0x20df93[_0x1e7891(0x1cc)]((_0x4810aa,_0x3b7c20)=>{const _0x4801af=_0x1e7891,_0x26f166={'eventID':_0x55cc56['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x4801af(0x239)],'memberID':this[_0x4801af(0xb0)]['getMemberID'](),'selection':_0x32a48b[_0x4801af(0x256)](_0x4810aa,_0x3b7c20[_0x4801af(0x300)])}};this[_0x4801af(0xb0)][_0x4801af(0x31c)](_0x26f166,this[_0x4801af(0x239)]);},_0x127e9c)),(this['unitID']=_0x78fe8f,this[_0x1e7891(0xb0)]=_0x420fcc,this[_0x1e7891(0x2fc)]=_0x4e3dd3,this['_colorAssignService']=_0x527424,this[_0x1e7891(0x486)]=_0x3b2cb0,this[_0x1e7891(0xc8)]=_0x316997,this[_0x1e7891(0x2d1)]=_0x25cbd2,this[_0x1e7891(0x351)]=_0xbb591c);}get[_0x144fb0(0x35c)](){const _0x3cd244=_0x144fb0;return this[_0x3cd244(0x1ad)][_0x3cd244(0x183)]();}get[_0x144fb0(0xa2)](){const _0x2aea31=_0x144fb0;return this[_0x2aea31(0x38a)][_0x2aea31(0x183)]();}[_0x144fb0(0x320)](){const _0x36c98e=_0x144fb0;super[_0x36c98e(0x320)](),this[_0x36c98e(0x1ad)]['next'](new Map()),this[_0x36c98e(0x1ad)]['complete'](),this[_0x36c98e(0x38a)]['next']([]),this[_0x36c98e(0x38a)][_0x36c98e(0x25e)]();}['init'](){const _0x4ae208=_0x144fb0;this['_init']||(this[_0x4ae208(0x198)]=!0x0,this[_0x4ae208(0xb0)]['sessionStatus$']['pipe'](_0x284d0['takeUntil'](this[_0x4ae208(0x288)]))['subscribe'](_0x22ef43=>{const _0x4c7825=_0x4ae208;_0x22ef43===_0x4d48e1[_0x4c7825(0x16b)]?this[_0x4c7825(0x12c)]():this[_0x4c7825(0x3f6)]();}),this['_session'][_0x4ae208(0x435)][_0x4ae208(0x34d)](_0x284d0[_0x4ae208(0xa0)](this[_0x4ae208(0x288)]))[_0x4ae208(0xda)](_0x4567b7=>{const _0x16b794=_0x4ae208,_0x4f316c=_0x4567b7[_0x16b794(0x109)];_0x4f316c===_0x55cc56['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x4567b7),_0x4f316c===_0x55cc56[_0x16b794(0xf4)]['USERS_LEAVE']&&this[_0x16b794(0x2c5)](_0x4567b7);}),this['_onRefRangeChange'](),this[_0x4ae208(0x397)](this[_0x4ae208(0x2d1)][_0x4ae208(0x3f9)](_0x2447f7=>{const _0x45723a=_0x4ae208;if(this[_0x45723a(0x21f)]&&_0x2447f7['id']===_0x5dce24[_0x45723a(0x404)]['id']&&_0x2447f7[_0x45723a(0xa3)]['unitId']===this['unitID']){const _0x5d38fd=_0x2447f7['params'];this['_updateLocalCursor'](_0x5d38fd[_0x45723a(0x248)],_0x5d38fd[_0x45723a(0x3a2)][0x0]);}})));}[_0x144fb0(0xe3)](_0x467f28){const _0xc2ed9f=_0x144fb0;var _0x14a1bf,_0x27ec99;const {memberID:_0x48ab5d,selection:_0x460bcb}=_0x467f28[_0xc2ed9f(0x24b)],{sheetName:_0x5b605b,range:_0x1d1053}=_0x32a48b['deserializeRangeWithSheet'](_0x460bcb),_0x38ae03={'name':(_0x27ec99=(_0x14a1bf=this['_memberService'][_0xc2ed9f(0x93)](this[_0xc2ed9f(0x239)],_0x48ab5d))==null?void 0x0:_0x14a1bf['name'])!=null?_0x27ec99:'Unknown\x20user','range':this[_0xc2ed9f(0x2a4)](_0x5b605b,_0x1d1053),'sheetID':_0x5b605b,'color':this[_0xc2ed9f(0x456)][_0xc2ed9f(0x108)](_0x48ab5d),'selection':_0x460bcb},_0x5e28f5=this[_0xc2ed9f(0x35c)];_0x5e28f5['set'](_0x48ab5d,_0x38ae03),this[_0xc2ed9f(0x1ad)][_0xc2ed9f(0x25d)](_0x5e28f5);}[_0x144fb0(0x2c5)](_0x58d173){const _0x41044e=_0x144fb0,{memberID:_0x8b28d7}=_0x58d173[_0x41044e(0x24b)],_0x58b6b6=this[_0x41044e(0x35c)];_0x58b6b6['delete'](_0x8b28d7),this[_0x41044e(0x1ad)][_0x41044e(0x25d)](_0x58b6b6);}['_getMergeRange'](_0x51dcb2,_0x2d4d4a){const _0x24ca19=_0x144fb0;var _0x3ecb15,_0x7d021c;const _0x3684fc=(_0x7d021c=(_0x3ecb15=this['_univerInstanceService'][_0x24ca19(0x4ab)](this['unitID']))==null?void 0x0:_0x3ecb15[_0x24ca19(0x3ac)](_0x51dcb2))==null?void 0x0:_0x7d021c[_0x24ca19(0x405)]();return(_0x3684fc==null?void 0x0:_0x3684fc[_0x24ca19(0x33d)](_0x2a500d=>_0x20df93['Rectangle'][_0x24ca19(0x380)](_0x2a500d,_0x2d4d4a)))||_0x2d4d4a;}[_0x144fb0(0x219)](){const _0x26bd86=_0x144fb0,_0x514a08=new _0x20df93[(_0x26bd86(0x213))](),_0x255e61=_0x2b8a0f(),_0x288360=()=>{const _0x130014=_0x26bd86;_0x514a08[_0x130014(0x320)]();const _0x56594f=(_0x105f9c,_0x412185,_0x3765e9,_0x4e884f)=>{const _0x5c2db1=_0x130014;let _0xce39b0=[];switch(_0x105f9c['id']){case _0x5dce24[_0x5c2db1(0x3e5)][_0x5c2db1(0x27f)]:{_0xce39b0=_0x5dce24[_0x5c2db1(0x18d)](_0x105f9c,_0x4e884f);break;}case _0x5dce24[_0x5c2db1(0x3e5)][_0x5c2db1(0x451)]:{_0xce39b0=_0x5dce24[_0x5c2db1(0x17a)](_0x105f9c,_0x4e884f);break;}case _0x5dce24[_0x5c2db1(0x3e5)][_0x5c2db1(0x1f0)]:{_0xce39b0=_0x5dce24['handleInsertCol'](_0x105f9c,_0x4e884f);break;}case _0x5dce24['EffectRefRangId'][_0x5c2db1(0x15a)]:{_0xce39b0=_0x5dce24['handleInsertRangeMoveDown'](_0x105f9c,_0x4e884f);break;}case _0x5dce24[_0x5c2db1(0x3e5)][_0x5c2db1(0xf6)]:{_0xce39b0=_0x5dce24[_0x5c2db1(0x10b)](_0x105f9c,_0x4e884f);break;}case _0x5dce24[_0x5c2db1(0x3e5)]['InsertRowCommandId']:{_0xce39b0=_0x5dce24['handleInsertRow'](_0x105f9c,_0x4e884f);break;}case _0x5dce24[_0x5c2db1(0x3e5)][_0x5c2db1(0x4c3)]:{_0xce39b0=_0x5dce24[_0x5c2db1(0x3d2)](_0x105f9c,_0x4e884f);break;}case _0x5dce24[_0x5c2db1(0x3e5)][_0x5c2db1(0x46d)]:{_0xce39b0=_0x5dce24[_0x5c2db1(0x29d)](_0x105f9c,_0x4e884f);break;}case _0x5dce24['EffectRefRangId'][_0x5c2db1(0x201)]:{_0xce39b0=_0x5dce24[_0x5c2db1(0x350)](_0x105f9c,_0x4e884f);break;}}const _0x1bd80d=_0x5dce24[_0x5c2db1(0x390)](_0xce39b0,_0x4e884f),_0x1006cc=this[_0x5c2db1(0x35c)]['get'](_0x412185);if(_0x1006cc&&_0x1bd80d){const _0x35e4b5={..._0x1006cc,'range':_0x1bd80d};this['cursorInfo'][_0x5c2db1(0x271)](_0x412185,_0x35e4b5),_0x255e61(()=>{const _0x13262e=_0x5c2db1,_0x4c8c1c=this['_refRangeService']['registerRefRange'](_0x1bd80d,_0x11f209=>(_0x4c8c1c['dispose'](),_0x56594f(_0x11f209,_0x412185,_0x3765e9,_0x1bd80d)));_0x514a08[_0x13262e(0x4bc)](_0x4c8c1c);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x130014(0x478)]((_0x5ce4ce,_0x365d10)=>{const _0x268200=_0x130014,{range:_0x4ea229,sheetID:_0x704232}=_0x5ce4ce,_0x1c1bab=this[_0x268200(0x351)]['registerRefRange'](_0x4ea229,_0x2fd954=>(_0x1c1bab[_0x268200(0x320)](),_0x56594f(_0x2fd954,_0x365d10,_0x704232,_0x4ea229)));_0x514a08[_0x268200(0x4bc)](_0x1c1bab);});};this[_0x26bd86(0x397)](_0x20df93['toDisposable'](this[_0x26bd86(0x1ad)][_0x26bd86(0xda)](()=>{_0x288360();})));}[_0x144fb0(0x12c)](){const _0x14ce03=_0x144fb0;var _0x42fe64,_0x188513;if(this[_0x14ce03(0x21f)]=!0x0,((_0x42fe64=this['_univerInstanceService'][_0x14ce03(0x138)]())==null?void 0x0:_0x42fe64[_0x14ce03(0x1fd)]())!==this[_0x14ce03(0x239)])return;const _0x416942=(_0x188513=this[_0x14ce03(0x2fc)][_0x14ce03(0x3b8)](_0x5dce24[_0x14ce03(0x205)])[_0x14ce03(0x19a)]())==null?void 0x0:_0x188513[0x0],_0x2b136b=this[_0x14ce03(0xc8)][_0x14ce03(0xe9)](_0x20df93[_0x14ce03(0x441)][_0x14ce03(0x4bf)])['getActiveSheet']();_0x416942&&_0x2b136b&&this[_0x14ce03(0x269)](_0x2b136b[_0x14ce03(0x3c9)](),_0x416942);}[_0x144fb0(0x3f6)](){const _0x1851cd=_0x144fb0;this[_0x1851cd(0x21f)]=!0x1;}};_0x3e98cd=_0x3afc70([_0x3a353f(0x2,_0x20df93[_0x144fb0(0xdd)](_0x20df93['Injector'])),_0x3a353f(0x3,_0x20df93[_0x144fb0(0xdd)](_0x402c47)),_0x3a353f(0x4,_0x20df93[_0x144fb0(0xdd)](_0x513006)),_0x3a353f(0x5,_0x20df93[_0x144fb0(0x292)]),_0x3a353f(0x6,_0x20df93[_0x144fb0(0x338)]),_0x3a353f(0x7,_0x20df93['Inject'](_0x5dce24[_0x144fb0(0x2de)]))],_0x3e98cd);var _0x559282=Object[_0x144fb0(0x395)],_0x4e272a=Object[_0x144fb0(0x457)],_0x20c5d1=(_0x3ce7a2,_0x264e06,_0x51f37c,_0x5ba8cc)=>{const _0x4474b9=_0x144fb0;for(var _0x26cb65=_0x5ba8cc>0x1?void 0x0:_0x5ba8cc?_0x4e272a(_0x264e06,_0x51f37c):_0x264e06,_0x172b64=_0x3ce7a2[_0x4474b9(0x118)]-0x1,_0x3ab2ff;_0x172b64>=0x0;_0x172b64--)(_0x3ab2ff=_0x3ce7a2[_0x172b64])&&(_0x26cb65=(_0x5ba8cc?_0x3ab2ff(_0x264e06,_0x51f37c,_0x26cb65):_0x3ab2ff(_0x26cb65))||_0x26cb65);return _0x5ba8cc&&_0x26cb65&&_0x559282(_0x264e06,_0x51f37c,_0x26cb65),_0x26cb65;},_0x590907=(_0x4ddc65,_0x211168)=>(_0x1b1d32,_0x2a136b)=>_0x211168(_0x1b1d32,_0x2a136b,_0x4ddc65);let _0x297695=class extends _0x20df93[_0x144fb0(0x330)]{constructor(_0x179c82,_0x351185,_0x55cedf){const _0x5e53a5=_0x144fb0;super(),_0x3e782f(this,_0x5e53a5(0x3b0),new Map()),_0x3e782f(this,_0x5e53a5(0x391),new _0x284d0[(_0x5e53a5(0x12d))]()),(this[_0x5e53a5(0xc8)]=_0x179c82,this['_injector']=_0x351185,this[_0x5e53a5(0x4b7)]=_0x55cedf,this[_0x5e53a5(0x198)]());}[_0x144fb0(0x320)](){const _0x165c19=_0x144fb0;super[_0x165c19(0x320)](),this[_0x165c19(0x391)]['complete'](),this[_0x165c19(0x3b0)][_0x165c19(0x478)](_0x707ae0=>_0x707ae0['dispose']());}[_0x144fb0(0x289)](_0xdcbb03){const _0x2d8748=_0x144fb0;return this[_0x2d8748(0x3b0)][_0x2d8748(0x26d)](_0xdcbb03)?this[_0x2d8748(0x3b0)][_0x2d8748(0x3b8)](_0xdcbb03)[_0x2d8748(0x40f)]:this[_0x2d8748(0x391)][_0x2d8748(0x34d)](_0x284d0[_0x2d8748(0x4a2)](_0x3939b4=>_0x3939b4['unitID']===_0xdcbb03),_0x284d0[_0x2d8748(0x383)](_0x3dde71=>_0x3dde71['cursorInfo$']));}[_0x144fb0(0x198)](){const _0x5a7c2a=_0x144fb0;this[_0x5a7c2a(0xc8)][_0x5a7c2a(0x362)](_0x20df93[_0x5a7c2a(0x441)][_0x5a7c2a(0x4bf)])['pipe'](_0x284d0[_0x5a7c2a(0xa0)](this[_0x5a7c2a(0x288)]))[_0x5a7c2a(0xda)](async _0x3f3815=>{const _0x47493=_0x5a7c2a,_0x33f6c9=_0x3f3815[_0x47493(0x1fd)](),_0x3aee7f=await this[_0x47493(0x223)](_0x33f6c9);this['_entityInit$']['next'](_0x3aee7f),this[_0x47493(0x3b0)][_0x47493(0x271)](_0x33f6c9,_0x3aee7f);}),this[_0x5a7c2a(0xc8)][_0x5a7c2a(0x362)](_0x20df93[_0x5a7c2a(0x441)]['UNIVER_DOC'])[_0x5a7c2a(0x34d)](_0x284d0[_0x5a7c2a(0xa0)](this['dispose$']))[_0x5a7c2a(0x34d)](_0x284d0[_0x5a7c2a(0x4a2)](_0x25edad=>!_0x25edad['getUnitId']()[_0x5a7c2a(0x36b)]('__')))[_0x5a7c2a(0xda)](async _0xa67bf6=>{const _0x32e03e=_0x5a7c2a,_0x1b8d3f=_0xa67bf6[_0x32e03e(0x1fd)](),_0x522506=await this[_0x32e03e(0x159)](_0x1b8d3f);this[_0x32e03e(0x391)][_0x32e03e(0x25d)](_0x522506),this['_entities'][_0x32e03e(0x271)](_0x1b8d3f,_0x522506);}),_0x284d0[_0x5a7c2a(0x8c)](this[_0x5a7c2a(0xc8)][_0x5a7c2a(0x1a1)](_0x20df93[_0x5a7c2a(0x441)][_0x5a7c2a(0x126)]),this[_0x5a7c2a(0xc8)][_0x5a7c2a(0x1a1)](_0x20df93[_0x5a7c2a(0x441)][_0x5a7c2a(0x4bf)]))[_0x5a7c2a(0x34d)](_0x284d0['takeUntil'](this[_0x5a7c2a(0x288)]))[_0x5a7c2a(0xda)](_0x3d41d0=>{const _0x55b6f2=_0x5a7c2a,_0x4c4e98=_0x3d41d0['getUnitId'](),_0x19f066=this[_0x55b6f2(0x3b0)][_0x55b6f2(0x3b8)](_0x4c4e98);_0x19f066&&(_0x19f066[_0x55b6f2(0x320)](),this[_0x55b6f2(0x3b0)][_0x55b6f2(0x32d)](_0x4c4e98));});}async['_startSheetCollabCursor'](_0x4274ae){const _0xc9f24c=_0x144fb0,_0x26bf5b=await this[_0xc9f24c(0x4b7)][_0xc9f24c(0x24e)](_0x4274ae),_0x5be08a=this[_0xc9f24c(0x2fc)][_0xc9f24c(0x2f6)](_0x3e98cd,_0x4274ae,_0x26bf5b);return _0x5be08a[_0xc9f24c(0x1e3)](),_0x5be08a;}async[_0x144fb0(0x159)](_0xb415a){const _0x180436=_0x144fb0,_0x2cedb4=await this[_0x180436(0x4b7)][_0x180436(0x24e)](_0xb415a),_0x113bdf=this['_injector'][_0x180436(0x2f6)](_0x46da6f,_0xb415a,_0x2cedb4);return _0x113bdf[_0x180436(0x1e3)](),_0x113bdf;}};_0x297695=_0x20c5d1([_0x590907(0x0,_0x20df93[_0x144fb0(0x292)]),_0x590907(0x1,_0x20df93[_0x144fb0(0xdd)](_0x20df93['Injector'])),_0x590907(0x2,_0x20df93['Inject'](_0x4c8f94['CollaborationSessionService']))],_0x297695);const _0x6a963a=0x14,_0x2bd738=0xc8,_0x19fa35=0x4,_0x4d6665=0x5;function _0x9a4a7c(_0x3fde36,_0x2dfd92){const _0x5567b4=_0x144fb0;let {radius:_0x2562d8,width:_0x27cf61,height:_0x466dac}=_0x2dfd92;_0x2562d8=_0x2562d8!=null?_0x2562d8:0x0,_0x27cf61=_0x27cf61!=null?_0x27cf61:0x1e,_0x466dac=_0x466dac!=null?_0x466dac:0x1e;let _0x54cfc8=0x0,_0x212237=0x0,_0x16975e=0x0;_0x54cfc8=_0x212237=_0x16975e=Math[_0x5567b4(0x116)](_0x2562d8,_0x27cf61/0x2,_0x466dac/0x2),_0x3fde36[_0x5567b4(0x110)](),_0x3fde36[_0x5567b4(0xbf)](_0x54cfc8,0x0),_0x3fde36[_0x5567b4(0x3ca)](_0x27cf61-_0x212237,0x0),_0x3fde36[_0x5567b4(0x167)](_0x27cf61-_0x212237,_0x212237,_0x212237,Math['PI']*0x3/0x2,0x0,!0x1),_0x3fde36[_0x5567b4(0x3ca)](_0x27cf61,_0x466dac-_0x16975e),_0x3fde36[_0x5567b4(0x167)](_0x27cf61-_0x16975e,_0x466dac-_0x16975e,_0x16975e,0x0,Math['PI']/0x2,!0x1),_0x3fde36[_0x5567b4(0x3ca)](0x0,_0x466dac),_0x3fde36[_0x5567b4(0x3ca)](0x0,_0x54cfc8),_0x3fde36['arc'](_0x54cfc8,_0x54cfc8,_0x54cfc8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3fde36[_0x5567b4(0x2af)](),_0x2dfd92[_0x5567b4(0x43c)]&&(_0x3fde36[_0x5567b4(0x450)](),_0x3fde36[_0x5567b4(0x3fb)]=_0x2dfd92['fill'],_0x2dfd92[_0x5567b4(0x165)]===_0x5567b4(0x45d)?_0x3fde36[_0x5567b4(0x43c)](_0x5567b4(0x45d)):_0x3fde36[_0x5567b4(0x43c)](),_0x3fde36[_0x5567b4(0x11b)]());}class _0x33c884 extends _0x1ff35a['Shape']{constructor(_0x1bae8e,_0x2f354d){const _0x8f2ea1=_0x144fb0;super(_0x1bae8e,_0x2f354d),_0x3e782f(this,_0x8f2ea1(0x423)),_0x3e782f(this,_0x8f2ea1(0xe1)),(this[_0x8f2ea1(0x423)]=_0x2f354d==null?void 0x0:_0x2f354d[_0x8f2ea1(0x423)],this[_0x8f2ea1(0xe1)]=_0x2f354d==null?void 0x0:_0x2f354d[_0x8f2ea1(0xe1)]);}static[_0x144fb0(0x3f0)](_0x4e13e8,_0x2ab5a9){const _0x579a86=_0x144fb0,{text:_0x6a5f71,color:_0x42a0e4}=_0x2ab5a9;_0x4e13e8[_0x579a86(0x450)](),_0x4e13e8[_0x579a86(0x245)]=_0x579a86(0x4c8);const _0x37a24b=_0x4e13e8[_0x579a86(0x4ad)](_0x6a5f71)[_0x579a86(0x337)],_0x4644c2=Math['min'](_0x37a24b+0x2*_0x19fa35,_0x2bd738);_0x9a4a7c(_0x4e13e8,{'height':_0x6a963a,'radius':0x4,'width':_0x4644c2,'fill':_0x42a0e4,'evented':!0x1}),_0x4e13e8[_0x579a86(0x3fb)]=_0x579a86(0x325);const _0x116b6a=_0x19fa35,_0x4fce19=_0x6a963a-_0x4d6665,_0x38e57e=_0x2bd738-0x2*_0x19fa35;if(_0x37a24b>_0x38e57e){let _0x238b0a='',_0x4e6bd7=0x0;for(const _0x16c289 of _0x6a5f71){const _0x4ca74e=_0x4e13e8[_0x579a86(0x4ad)](_0x16c289)[_0x579a86(0x337)];if(_0x4e6bd7+_0x4ca74e<=_0x38e57e-_0x4e13e8[_0x579a86(0x4ad)](_0x579a86(0x1a5))[_0x579a86(0x337)])_0x238b0a+=_0x16c289,_0x4e6bd7+=_0x4ca74e;else{_0x238b0a+=_0x579a86(0x1a5);break;}}_0x4e13e8[_0x579a86(0xa7)](_0x238b0a,_0x116b6a,_0x4fce19);}else _0x4e13e8['fillText'](_0x6a5f71,_0x116b6a,_0x4fce19);_0x4e13e8[_0x579a86(0x11b)]();}[_0x144fb0(0x493)](_0x192bfb){const _0x4b3e01=_0x144fb0;_0x33c884[_0x4b3e01(0x3f0)](_0x192bfb,this);}}const _0x4367a0=_0x144fb0(0x229),_0xcbdac6=_0x144fb0(0x4ba),_0x5768f1='collab-rect-range-',_0x246196=0x6,_0x370a2d=1.5,_0x3e448a=0x4,_0x539f7e=1.5,_0x362036=_0x144fb0(0x2d6);class _0x2226fc{constructor(_0x19303d,_0x1a1ed4,_0x5e7f93,_0x3c9817){const _0x38e537=_0x144fb0;_0x3e782f(this,_0x38e537(0x3cb),[]),_0x3e782f(this,_0x38e537(0x2fe),null),_0x3e782f(this,_0x38e537(0x44c),null),_0x3e782f(this,_0x38e537(0x95),null),_0x3e782f(this,_0x38e537(0x29f),null),_0x3e782f(this,_0x38e537(0x1d8),null),(this['_cursor']=_0x19303d,this[_0x38e537(0x1e9)]=_0x1a1ed4,this['_docSkeleton']=_0x5e7f93,this['_document']=_0x3c9817,this[_0x38e537(0x275)]());}set[_0x144fb0(0x313)](_0x2740f0){const _0x552596=_0x144fb0;_0x2740f0?(this[_0x552596(0x95)]&&this[_0x552596(0x95)][_0x552596(0x31e)](),this[_0x552596(0x44c)]&&this[_0x552596(0x44c)]['show']()):(this[_0x552596(0x95)]&&this[_0x552596(0x95)][_0x552596(0x429)](),this[_0x552596(0x44c)]&&this[_0x552596(0x44c)]['hide']());}[_0x144fb0(0x320)](){const _0x10a00f=_0x144fb0;for(const _0x33e90f of this['_shapes'])_0x33e90f['dispose']();this[_0x10a00f(0x44c)]&&this[_0x10a00f(0x44c)]['dispose'](),this[_0x10a00f(0x95)]&&this[_0x10a00f(0x95)]['dispose'](),this[_0x10a00f(0x2fe)]&&this[_0x10a00f(0x2fe)][_0x10a00f(0x320)](),this[_0x10a00f(0x1d8)]&&this['_eventUnsubscribe']();}['_render'](){const _0x28f382=_0x144fb0;var _0x3e3fd9;const {_docSkeleton:_0x1020e3,_document:_0x2730ca}=this,{color:_0x5bd645,name:_0x287c6f,ranges:_0x11d6af}=this[_0x28f382(0x230)],_0x3eee8a=_0x2730ca[_0x28f382(0x228)](),{docsLeft:_0x88fb2c,docsTop:_0xc27d33}=_0x3eee8a,_0xd48055=new _0x3b39ef[(_0x28f382(0x474))](_0x3eee8a,_0x1020e3);for(const {startOffset:_0x23bba7,endOffset:_0x18ff3b,collapsed:_0x3420a7,isActive:_0x1ede37}of _0x11d6af){const _0x2ae635=_0x1020e3['findNodePositionByCharIndex'](_0x23bba7),_0xfdc105=_0x1020e3[_0x28f382(0x9b)](_0x18ff3b);if(_0x1ede37){const {contentBoxPointGroup:_0x168c17}=_0xd48055['getRangePointData'](_0xfdc105,_0xfdc105);if(_0x168c17[_0x28f382(0x118)]===0x0)continue;this['_drawAnchor'](_0x5bd645,_0x168c17,_0x88fb2c,_0xc27d33,_0x287c6f),this[_0x28f382(0x1d8)]=this[_0x28f382(0x2df)]();}if(!_0x3420a7&&_0x2ae635&&_0xfdc105){if(_0x3b39ef[_0x28f382(0x195)](_0x2ae635,_0xfdc105)){const _0x3de491=new _0x3b39ef['NodePositionConvertToRectRange'](_0x3eee8a,_0x1020e3),{pointGroup:_0x598988}=(_0x3e3fd9=_0x3de491[_0x28f382(0x326)](_0x2ae635,_0xfdc105))!=null?_0x3e3fd9:{};if(_0x598988==null||_0x598988['length']===0x0)continue;this[_0x28f382(0xaa)](_0x5bd645,_0x598988,_0x88fb2c,_0xc27d33);}else{const {contentBoxPointGroup:_0x3d5fd0}=_0xd48055['getRangePointData'](_0x2ae635,_0xfdc105);if(_0x3d5fd0[_0x28f382(0x118)]===0x0)continue;this[_0x28f382(0xbd)](_0x5bd645,_0x3d5fd0,_0x88fb2c,_0xc27d33);}}}}[_0x144fb0(0x240)](_0x3543f3,_0x5de9dc,_0xaa8797,_0x42e931,_0x118f77){const _0x19d380=_0x144fb0,_0x482299=this[_0x19d380(0x106)](_0x5de9dc),{left:_0x63b11e,top:_0x59340a,height:_0x568c1c}=_0x482299,_0x3c15fa=this['_getScale'](),_0xe79e6d=_0x539f7e/_0x3c15fa,_0xf1d915=new _0x1ff35a[(_0x19d380(0x36d))](_0x4367a0+_0x20df93[_0x19d380(0x1c4)][_0x19d380(0xd9)](_0x246196),{'left':_0x63b11e+_0xaa8797-_0xe79e6d,'top':_0x59340a+_0x42e931,'height':_0x568c1c,'width':_0x370a2d,'fill':_0x3543f3||_0x1ff35a['getColor'](_0x20df93[_0x19d380(0x3ba)]['black'],0x0),'strokeWidth':_0xe79e6d,'stroke':_0x362036,'evented':!0x0});this[_0x19d380(0x2fe)]=_0xf1d915,this['_scene'][_0x19d380(0x217)](_0xf1d915,_0x3b39ef[_0x19d380(0x2d9)]);const _0x4a2f91=new _0x1ff35a['Rect'](_0x4367a0+_0x20df93[_0x19d380(0x1c4)]['generateRandomId'](_0x246196),{'left':_0x63b11e+_0xaa8797-_0xe79e6d,'top':_0x59340a+_0x42e931-_0x3e448a/0x2,'height':_0x3e448a,'width':_0x3e448a,'fill':_0x3543f3||_0x1ff35a['getColor'](_0x20df93[_0x19d380(0x3ba)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x3543f3||_0x1ff35a['getColor'](_0x20df93['COLORS'][_0x19d380(0x1ae)],0x0),'evented':!0x1});this[_0x19d380(0x95)]=_0x4a2f91,this['_scene'][_0x19d380(0x217)](_0x4a2f91,_0x3b39ef[_0x19d380(0x2d9)]);const _0x3a9414=new _0x33c884(_0x4367a0+_0x20df93[_0x19d380(0x1c4)][_0x19d380(0xd9)](_0x246196),{'left':_0x63b11e+_0xaa8797-_0xe79e6d,'top':_0x59340a+_0x42e931-_0x6a963a,'text':_0x118f77,'color':_0x3543f3});this[_0x19d380(0x44c)]=_0x3a9414,this[_0x19d380(0x1e9)]['addObject'](_0x3a9414,_0x3b39ef[_0x19d380(0x2d9)]),this[_0x19d380(0x313)]=!0x1;}[_0x144fb0(0x2df)](){const _0x5600db=_0x144fb0,_0x4d12d9=this['_anchor']['onPointerEnter$'][_0x5600db(0x421)](()=>{const _0xd29e37=_0x5600db;this[_0xd29e37(0x313)]=!0x0;}),_0x452fed=this[_0x5600db(0x2fe)]['onPointerLeave$'][_0x5600db(0x421)](()=>{const _0x2dbbc3=_0x5600db;this['_hideTimer']&&clearTimeout(this[_0x2dbbc3(0x29f)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x4bac66=_0x5600db;_0x4d12d9['unsubscribe'](),_0x452fed[_0x4bac66(0x128)]();};}[_0x144fb0(0xbd)](_0x19c170,_0x260e6d,_0x5ab8e1,_0x3802ae){const _0x285078=_0x144fb0,_0x3b25e8=new _0x20df93[(_0x285078(0xfb))](_0x19c170)[_0x285078(0x446)](0.2)[_0x285078(0x40b)](),_0xefdcd7=new _0x1ff35a[(_0x285078(0x361))](_0xcbdac6+_0x20df93['Tools']['generateRandomId'](_0x246196),{'pointsGroup':_0x260e6d,'fill':_0x3b25e8||_0x1ff35a[_0x285078(0x3e9)](_0x20df93[_0x285078(0x3ba)]['black'],0.2),'left':_0x5ab8e1,'top':_0x3802ae,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x285078(0x3cb)][_0x285078(0x20e)](_0xefdcd7),this[_0x285078(0x1e9)][_0x285078(0x217)](_0xefdcd7,_0x3b39ef['TEXT_RANGE_LAYER_INDEX']);}[_0x144fb0(0xaa)](_0x554b2d,_0x442bf8,_0x4b270c,_0x5c1239){const _0x32f0e6=_0x144fb0,_0x82351c=new _0x20df93[(_0x32f0e6(0xfb))](_0x554b2d)['setAlpha'](0.2)[_0x32f0e6(0x40b)](),_0x2d7e4c=new _0x1ff35a[(_0x32f0e6(0x361))](_0x5768f1+_0x20df93[_0x32f0e6(0x1c4)][_0x32f0e6(0xd9)](_0x246196),{'pointsGroup':_0x442bf8,'fill':_0x82351c||_0x1ff35a[_0x32f0e6(0x3e9)](_0x20df93[_0x32f0e6(0x3ba)][_0x32f0e6(0x1ae)],0.2),'left':_0x4b270c,'top':_0x5c1239,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x32f0e6(0x3cb)]['push'](_0x2d7e4c),this[_0x32f0e6(0x1e9)][_0x32f0e6(0x217)](_0x2d7e4c,_0x3b39ef[_0x32f0e6(0x2d9)]);}[_0x144fb0(0x106)](_0x2c1b26){const _0x18f771=_0x2c1b26[0x0],_0x4581e1=_0x18f771[0x0],_0x30012a=_0x18f771[0x2],{x:_0x3c1f1e,y:_0x505c94}=_0x4581e1,{x:_0x98c3d3,y:_0x41b7c6}=_0x30012a;return{'left':_0x3c1f1e,'top':_0x505c94,'width':_0x98c3d3-_0x3c1f1e,'height':_0x41b7c6-_0x505c94};}[_0x144fb0(0x2ee)](){const _0x2c256e=_0x144fb0,{scaleX:_0x2e769,scaleY:_0x2228f0}=this[_0x2c256e(0x1e9)]['getAncestorScale']();return Math[_0x2c256e(0x480)](_0x2e769,_0x2228f0);}}var _0x3f67c7=Object[_0x144fb0(0x395)],_0xe0a14a=Object[_0x144fb0(0x457)],_0x1ef824=(_0x59c59f,_0xcc0cbc,_0x502f93,_0x1181ec)=>{for(var _0x25a407=_0x1181ec>0x1?void 0x0:_0x1181ec?_0xe0a14a(_0xcc0cbc,_0x502f93):_0xcc0cbc,_0x3cc871=_0x59c59f['length']-0x1,_0x3c5459;_0x3cc871>=0x0;_0x3cc871--)(_0x3c5459=_0x59c59f[_0x3cc871])&&(_0x25a407=(_0x1181ec?_0x3c5459(_0xcc0cbc,_0x502f93,_0x25a407):_0x3c5459(_0x25a407))||_0x25a407);return _0x1181ec&&_0x25a407&&_0x3f67c7(_0xcc0cbc,_0x502f93,_0x25a407),_0x25a407;},_0x3779a3=(_0x5285ce,_0x8477c9)=>(_0x312c76,_0x5237af)=>_0x8477c9(_0x312c76,_0x5237af,_0x5285ce);let _0x10cc5e=class extends _0x20df93[_0x144fb0(0x330)]{constructor(_0x422035,_0x5ce52d,_0x47fed1,_0x1b4b27,_0x54cecb){const _0x3edd62=_0x144fb0;super(),_0x3e782f(this,_0x3edd62(0x19b),[]),_0x3e782f(this,_0x3edd62(0xa8),[]),(this[_0x3edd62(0x490)]=_0x422035,this[_0x3edd62(0x33f)]=_0x5ce52d,this['_collabCursorController']=_0x47fed1,this[_0x3edd62(0x2d1)]=_0x1b4b27,this[_0x3edd62(0x35e)]=_0x54cecb,this['_init']());}['_init'](){const _0xd13a25=_0x144fb0,_0x2de294=this['_context'][_0xd13a25(0x1b7)],_0x565b24=this[_0xd13a25(0x33f)];this['disposeWithMe'](_0x284d0['combineLatest']([this[_0xd13a25(0x257)]['getCollabCursors$'](_0x2de294),this[_0xd13a25(0x35e)][_0xd13a25(0x2d7)]])[_0xd13a25(0x34d)](_0x3e7ea3[_0xd13a25(0x296)](([_0x3f4eda,_0x2154b1])=>({'skeleton':_0x565b24[_0xd13a25(0x134)](),'cursors':[..._0x3f4eda[_0xd13a25(0x18b)]()][_0xd13a25(0x445)](_0x388456=>({..._0x388456,'color':_0x2154b1[_0x388456[_0xd13a25(0x423)]]}))})))[_0xd13a25(0xda)](_0x3274f8=>{const _0x24b995=_0xd13a25;if(this[_0x24b995(0x267)](),_0x3274f8){const {skeleton:_0xc1898b,cursors:_0x5e3c36}=_0x3274f8;this[_0x24b995(0x484)](_0xc1898b,_0x5e3c36);}})),this[_0xd13a25(0xbc)](),this[_0xd13a25(0x258)]();}[_0x144fb0(0x484)](_0x2dbc72,_0x3fbeba){const _0x31e732=_0x144fb0,{scene:_0x2fa01d,mainComponent:_0x3f40a9}=this['_context'],_0x266686=_0x3fbeba[_0x31e732(0x296)](_0x4945df=>new _0x2226fc(_0x4945df,_0x2fa01d,_0x2dbc72,_0x3f40a9));this[_0x31e732(0x19b)]=_0x266686,this[_0x31e732(0xa8)]=_0x3fbeba;}[_0x144fb0(0x339)](){const _0xb9aa16=_0x144fb0;this[_0xb9aa16(0x267)]();const {scene:_0x2eb3ad,mainComponent:_0x3a641f}=this['_context'],_0x3ad12d=this[_0xb9aa16(0x33f)][_0xb9aa16(0x134)](),_0x39f0df=this['_cursors'][_0xb9aa16(0x296)](_0x46144a=>new _0x2226fc(_0x46144a,_0x2eb3ad,_0x3ad12d,_0x3a641f));this[_0xb9aa16(0x19b)]=_0x39f0df;}[_0x144fb0(0x267)](){const _0x53fa5a=_0x144fb0;this['_cursorShapes'][_0x53fa5a(0x478)](_0x48f554=>_0x48f554[_0x53fa5a(0x320)]()),this[_0x53fa5a(0x19b)]=[];}[_0x144fb0(0x258)](){const _0x4130a4=_0x144fb0,_0x2577d1=[_0x3b39ef[_0x4130a4(0x3d6)]['id']];this['disposeWithMe'](this['_commandService'][_0x4130a4(0x3f9)](_0x45b2b6=>{const _0x5d064b=_0x4130a4;_0x2577d1[_0x5d064b(0xdb)](_0x45b2b6['id'])&&_0x45b2b6[_0x5d064b(0xa3)][_0x5d064b(0x1b7)]===this[_0x5d064b(0x490)]['unitId']&&this[_0x5d064b(0x339)]();}));}['_initResize'](){const _0x35bb09=_0x144fb0;this['disposeWithMe'](_0x20df93[_0x35bb09(0x454)](this['_context'][_0x35bb09(0x153)][_0x35bb09(0x259)])[_0x35bb09(0x34d)](_0x3e7ea3[_0x35bb09(0x4a2)](_0x18f770=>_0x18f770['type']===_0x1ff35a[_0x35bb09(0x4a9)][_0x35bb09(0x1f7)]),_0x3e7ea3[_0x35bb09(0x182)](0x10))[_0x35bb09(0xda)](()=>{const _0x5e832c=_0x35bb09;this[_0x5e832c(0x339)]();}));}};_0x10cc5e=_0x1ef824([_0x3779a3(0x1,_0x20df93[_0x144fb0(0xdd)](_0x280e9c[_0x144fb0(0x104)])),_0x3779a3(0x2,_0x20df93[_0x144fb0(0xdd)](_0x297695)),_0x3779a3(0x3,_0x20df93[_0x144fb0(0x338)]),_0x3779a3(0x4,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x190)]))],_0x10cc5e);const _0x48b74e=0x1,_0x507eb3=1.5;class _0x128851 extends _0x1ff35a['Shape']{constructor(_0x5caf59,_0x431e21){const _0x114d10=_0x144fb0;super(_0x5caf59,_0x431e21),_0x3e782f(this,_0x114d10(0x45e)),_0x3e782f(this,_0x114d10(0x349),!0x1),_0x3e782f(this,_0x114d10(0x13e)),_0x3e782f(this,_0x114d10(0x163),''),_0x3e782f(this,_0x114d10(0xa5),_0x114d10(0x3ee)),_0x3e782f(this,'_backgroundColor'),(_0x431e21&&this[_0x114d10(0x331)](_0x431e21),this[_0x114d10(0x3aa)][_0x114d10(0x421)](()=>this[_0x114d10(0x331)]({'hovered':!0x0})),this[_0x114d10(0x3d5)]['subscribeEvent'](()=>this[_0x114d10(0x331)]({'hovered':!0x1})));}['setShapeProps'](_0x22d4bf){const _0x2f7ca0=_0x144fb0;var _0x4a5994,_0x1c3b32,_0x59e4ba,_0x2905bd,_0xa57f20,_0x30358f;this['_color']=(_0x4a5994=_0x22d4bf[_0x2f7ca0(0x423)])!=null?_0x4a5994:this[_0x2f7ca0(0x45e)],this[_0x2f7ca0(0x349)]=(_0x1c3b32=_0x22d4bf[_0x2f7ca0(0x1a4)])!=null?_0x1c3b32:this['_hovered'],this[_0x2f7ca0(0x13e)]=(_0x59e4ba=_0x22d4bf['range'])!=null?_0x59e4ba:this[_0x2f7ca0(0x13e)],this[_0x2f7ca0(0x163)]=(_0x2905bd=_0x22d4bf[_0x2f7ca0(0x2b4)])!=null?_0x2905bd:this[_0x2f7ca0(0x163)],this['_labelPosition']=(_0xa57f20=_0x22d4bf['labelPosition'])!=null?_0xa57f20:this[_0x2f7ca0(0xa5)],this['_backgroundColor']=(_0x30358f=_0x22d4bf[_0x2f7ca0(0xcb)])!=null?_0x30358f:this[_0x2f7ca0(0x403)],this[_0x2f7ca0(0x1f1)]({'width':_0x22d4bf[_0x2f7ca0(0x337)],'height':_0x22d4bf['height']});}[_0x144fb0(0x13a)](_0x162336){const _0x4c68a4=_0x144fb0,{row:_0x9a4ade,column:_0x3a718e}=_0x162336;if(_0x9a4ade>=this[_0x4c68a4(0x13e)][_0x4c68a4(0x3f7)]&&_0x9a4ade<=this['_range']['endRow']&&_0x3a718e>=this[_0x4c68a4(0x13e)][_0x4c68a4(0x1a3)]&&_0x3a718e<=this[_0x4c68a4(0x13e)][_0x4c68a4(0x2c3)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x4c68a4(0x331)]({'hovered':!0x1});}[_0x144fb0(0x2ec)](_0x206db8){return!0x1;}[_0x144fb0(0x493)](_0x487660){const _0x5151c7=_0x144fb0;_0x1ff35a[_0x5151c7(0x36d)][_0x5151c7(0x3f0)](_0x487660,{'width':this['width'],'height':this[_0x5151c7(0xc7)],'strokeWidth':_0x507eb3,'stroke':this[_0x5151c7(0x45e)],'evented':!0x1,'fill':this[_0x5151c7(0x403)]}),this[_0x5151c7(0x349)]&&(_0x487660[_0x5151c7(0x450)](),_0x487660[_0x5151c7(0x425)](0x1,0x0,0x0,0x1,this[_0x5151c7(0x337)],this['_labelPosition']===_0x5151c7(0x114)?0x0:-_0x6a963a),_0x33c884[_0x5151c7(0x3f0)](_0x487660,{'text':this[_0x5151c7(0x163)],'color':this[_0x5151c7(0x45e)]}),_0x487660['restore']());}}var _0x51061b=Object['defineProperty'],_0x329e73=Object[_0x144fb0(0x457)],_0x422072=(_0xc26b50,_0x55be7d,_0x212c58,_0x13fecd)=>{const _0x5092fd=_0x144fb0;for(var _0x5bddb0=_0x13fecd>0x1?void 0x0:_0x13fecd?_0x329e73(_0x55be7d,_0x212c58):_0x55be7d,_0x1ec9eb=_0xc26b50[_0x5092fd(0x118)]-0x1,_0x462609;_0x1ec9eb>=0x0;_0x1ec9eb--)(_0x462609=_0xc26b50[_0x1ec9eb])&&(_0x5bddb0=(_0x13fecd?_0x462609(_0x55be7d,_0x212c58,_0x5bddb0):_0x462609(_0x5bddb0))||_0x5bddb0);return _0x13fecd&&_0x5bddb0&&_0x51061b(_0x55be7d,_0x212c58,_0x5bddb0),_0x5bddb0;},_0x31e32c=(_0x27483e,_0x42d326)=>(_0x157829,_0x3eed61)=>_0x42d326(_0x157829,_0x3eed61,_0x27483e);const _0x5c43d8=0x1389;let _0x2b682d=class extends _0x20df93[_0x144fb0(0x330)]{constructor(_0x1b3d26,_0x14ac3a,_0xeb011c,_0x3df875){const _0x3dc08f=_0x144fb0;super(),_0x3e782f(this,_0x3dc08f(0xa8),new Set()),_0x3e782f(this,_0x3dc08f(0x48e),null),(this[_0x3dc08f(0x490)]=_0x1b3d26,this[_0x3dc08f(0x2a9)]=_0x14ac3a,this[_0x3dc08f(0x257)]=_0xeb011c,this[_0x3dc08f(0x35e)]=_0x3df875,this[_0x3dc08f(0x198)]());}[_0x144fb0(0x198)](){const _0x202771=_0x144fb0;this['_sheetSkeletonManagerService'][_0x202771(0x111)][_0x202771(0x34d)](_0x3e7ea3[_0x202771(0xa0)](this[_0x202771(0x288)]),_0x3e7ea3[_0x202771(0x383)](_0x4aa6e6=>{const _0x4bed3a=_0x202771;if(_0x4aa6e6){const _0x46ce9f=_0x4aa6e6[_0x4bed3a(0x24c)];return _0x284d0['combineLatest'](this[_0x4bed3a(0x257)][_0x4bed3a(0x289)](this[_0x4bed3a(0x490)][_0x4bed3a(0x1b7)]),this[_0x4bed3a(0x35e)][_0x4bed3a(0x2d7)])['pipe'](_0x3e7ea3[_0x4bed3a(0x296)](([_0x437b82,_0x18c478])=>{const _0x5e07db=_0x4bed3a,_0x423e74=new Map();return _0x437b82[_0x5e07db(0x478)]((_0x2deacc,_0x470fa9)=>{const _0x5cebab=_0x5e07db;if(_0x2deacc[_0x5cebab(0x1fa)]===_0x46ce9f){const _0x299fb3={..._0x2deacc};_0x299fb3[_0x5cebab(0x423)]=_0x18c478[_0x2deacc[_0x5cebab(0x423)]],_0x423e74[_0x5cebab(0x271)](_0x470fa9,_0x299fb3);}}),{'skeleton':_0x4aa6e6,'cursors':_0x423e74};}));}return _0x284d0['of']({'skeleton':null,'cursors':new Map()});}))[_0x202771(0xda)](({skeleton:_0x375a76,cursors:_0x4299aa})=>{const _0x2526e2=_0x202771;this[_0x2526e2(0x267)](),_0x375a76&&this[_0x2526e2(0x484)](_0x375a76,_0x4299aa);}),this[_0x202771(0x2a9)][_0x202771(0x111)]['subscribe'](_0x29f50b=>{const _0x46e10b=_0x202771;if(_0x29f50b==null)return;const {skeleton:_0x2ad333}=_0x29f50b,{scene:_0x584f0a}=this[_0x46e10b(0x490)];_0x584f0a[_0x46e10b(0x1b2)][_0x46e10b(0x421)](_0x20df93[_0x46e10b(0x1cc)](_0x2bc3eb=>{const _0x5425dd=_0x46e10b;var _0x45c014,_0x13ba17;const {offsetX:_0x5cce99,offsetY:_0x4afbdc}=_0x2bc3eb,{x:_0x326f61,y:_0x1804c8}=_0x584f0a['getRelativeToViewportCoord'](_0x1ff35a[_0x5425dd(0x374)]['FromArray']([_0x5cce99,_0x4afbdc])),{scaleX:_0x4a2470,scaleY:_0x5cce14}=_0x584f0a[_0x5425dd(0x1ab)](),_0xac8f02=_0x584f0a['getViewport'](_0xf53409[_0x5425dd(0x3d9)][_0x5425dd(0xcd)]),_0xe53e04=_0x584f0a[_0x5425dd(0x1f5)](_0x1ff35a['Vector2'][_0x5425dd(0x2f7)]([_0x326f61,_0x1804c8]),_0xac8f02),_0x542821=_0x2ad333[_0x5425dd(0x1f4)](_0x5cce99,_0x4afbdc,_0x4a2470,_0x5cce14,_0xe53e04);((_0x45c014=this[_0x5425dd(0x48e)])==null?void 0x0:_0x45c014['column'])===_0x542821[_0x5425dd(0x440)]&&((_0x13ba17=this[_0x5425dd(0x48e)])==null?void 0x0:_0x13ba17[_0x5425dd(0x3a3)])===_0x542821[_0x5425dd(0x3a3)]||this[_0x5425dd(0xa8)][_0x5425dd(0x478)](_0x4aeb67=>{_0x4aeb67['onMouseMove'](_0x542821);});},0x64));});}[_0x144fb0(0x484)](_0x3cb232,_0x7e2ee8){const _0x2918ec=_0x144fb0;var _0x4ff0c7;const _0x539ec7=(_0x4ff0c7=this[_0x2918ec(0x2a9)][_0x2918ec(0x365)]())==null?void 0x0:_0x4ff0c7['skeleton'];if(!_0x539ec7)return;const _0x44189f=this[_0x2918ec(0x120)]();if(!_0x44189f)return;this['_cursors'][_0x2918ec(0x478)](_0x46a3fd=>{const _0x14a0be=_0x2918ec;_0x46a3fd[_0x14a0be(0x428)]();});const {scene:_0x15c3f4}=_0x44189f,_0x1e0e31=_0x52ee29(Array['from'](_0x7e2ee8[_0x2918ec(0x18b)]()))[_0x2918ec(0x296)](_0x172b47=>{const _0x4810b2=_0x2918ec,{color:_0x452de0,range:_0x2811d4,name:_0x31c213,selection:_0x5cf537,sheetID:_0x5211f8}=_0x172b47,{startColumn:_0xeae94b,startRow:_0x4e1091,endColumn:_0x468181,endRow:_0x3bdb6a}=_0x2811d4,_0x3aadcb=_0xf53409['getCoordByCell'](_0x4e1091,_0xeae94b,_0x15c3f4,_0x539ec7),_0x598ae8=_0xf53409['getCoordByCell'](_0x3bdb6a,_0x468181,_0x15c3f4,_0x539ec7),{columnHeaderHeightAndMarginTop:_0x6a1f}=_0x539ec7,{startX:_0x5c8196,startY:_0x45b235}=_0x3aadcb,{endX:_0x17c5ae,endY:_0x2aad38}=_0x598ae8,_0x409b72=_0x17c5ae-_0x5c8196,_0x3aea2d=_0x2aad38-_0x45b235,_0x325a3f={'labelPosition':_0x45b235-_0x6a1f>=_0x6a963a?_0x4810b2(0x3ee):_0x4810b2(0x114),'sheetID':_0x5211f8,'range':_0x2811d4,'color':_0x452de0,'name':_0x31c213,'selection':_0x5cf537,'left':_0x5c8196,'top':_0x45b235,'width':_0x409b72,'height':_0x3aea2d,'evented':!0x1,'zIndex':_0x5c43d8};return new _0x128851(_0x31c213,_0x325a3f);});_0x15c3f4[_0x2918ec(0x301)](_0x1e0e31,_0x48b74e),this[_0x2918ec(0xa8)]=new Set(_0x1e0e31);}[_0x144fb0(0x267)](){const _0x1d9402=_0x144fb0;var _0x107a23;(_0x107a23=this[_0x1d9402(0xa8)])==null||_0x107a23[_0x1d9402(0x478)](_0x48af9b=>_0x48af9b['dispose']());}[_0x144fb0(0x120)](){const _0x23c6f8=_0x144fb0;return _0xf53409[_0x23c6f8(0x3d4)](this[_0x23c6f8(0x490)][_0x23c6f8(0x327)],this[_0x23c6f8(0x490)]);}};_0x2b682d=_0x422072([_0x31e32c(0x1,_0x20df93[_0x144fb0(0xdd)](_0xf53409['SheetSkeletonManagerService'])),_0x31e32c(0x2,_0x20df93[_0x144fb0(0xdd)](_0x297695)),_0x31e32c(0x3,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x190)]))],_0x2b682d);function _0x52ee29(_0x595d3d){const _0x3d4cf8=_0x144fb0,_0xad3298=new Map();return _0x595d3d[_0x3d4cf8(0x478)](_0x5d5a57=>{const _0x1a2fa0=_0x3d4cf8;if(_0xad3298[_0x1a2fa0(0x26d)](_0x5d5a57[_0x1a2fa0(0xfe)])){const _0x24c2c7=_0xad3298[_0x1a2fa0(0x3b8)](_0x5d5a57[_0x1a2fa0(0xfe)]);_0x24c2c7[_0x1a2fa0(0x2b4)]+=',\x20'+_0x5d5a57[_0x1a2fa0(0x2b4)];}else _0xad3298['set'](_0x5d5a57['selection'],_0x5d5a57);}),Array[_0x3d4cf8(0xc2)](_0xad3298[_0x3d4cf8(0x18b)]());}var _0x91d0b4=function(){const _0xb722ed=_0x144fb0;return _0x91d0b4=Object[_0xb722ed(0x4af)]||function(_0x37d64c){const _0x580431=_0xb722ed;for(var _0x29ed61,_0x50e2f0=0x1,_0x57a756=arguments['length'];_0x50e2f0<_0x57a756;_0x50e2f0++){_0x29ed61=arguments[_0x50e2f0];for(var _0x2da96e in _0x29ed61)Object['prototype'][_0x580431(0x3e3)][_0x580431(0xed)](_0x29ed61,_0x2da96e)&&(_0x37d64c[_0x2da96e]=_0x29ed61[_0x2da96e]);}return _0x37d64c;},_0x91d0b4['apply'](this,arguments);},_0x1cf045=function(_0x15f11d,_0x699583){const _0x3fefd4=_0x144fb0;var _0x3a72e7={};for(var _0x53375b in _0x15f11d)Object[_0x3fefd4(0x174)][_0x3fefd4(0x3e3)]['call'](_0x15f11d,_0x53375b)&&_0x699583[_0x3fefd4(0x3f2)](_0x53375b)<0x0&&(_0x3a72e7[_0x53375b]=_0x15f11d[_0x53375b]);if(_0x15f11d!=null&&typeof Object[_0x3fefd4(0x3ce)]==_0x3fefd4(0x488)){for(var _0x6df6bc=0x0,_0x53375b=Object[_0x3fefd4(0x3ce)](_0x15f11d);_0x6df6bc<_0x53375b['length'];_0x6df6bc++)_0x699583[_0x3fefd4(0x3f2)](_0x53375b[_0x6df6bc])<0x0&&Object[_0x3fefd4(0x174)]['propertyIsEnumerable'][_0x3fefd4(0xed)](_0x15f11d,_0x53375b[_0x6df6bc])&&(_0x3a72e7[_0x53375b[_0x6df6bc]]=_0x15f11d[_0x53375b[_0x6df6bc]]);}return _0x3a72e7;},_0x56942f=_0x3aba2d[_0x144fb0(0x155)](function(_0x43ce35,_0x2b3ba5){const _0x7dd2eb=_0x144fb0;var _0xf3518f=_0x43ce35[_0x7dd2eb(0xc1)],_0x2f7217=_0x43ce35['id'],_0x23546f=_0x43ce35[_0x7dd2eb(0x494)],_0x326441=_0x43ce35[_0x7dd2eb(0x176)],_0x42f17b=_0x1cf045(_0x43ce35,['icon','id',_0x7dd2eb(0x494),_0x7dd2eb(0x176)]),_0xec41ed='univerjs-icon\x20univerjs-icon-'['concat'](_0x2f7217,'\x20')['concat'](_0x23546f||'')[_0x7dd2eb(0x4c1)](),_0xc9542d=_0x3aba2d[_0x7dd2eb(0x413)]('_'[_0x7dd2eb(0x206)](_0x331e33()));return _0x45c417(_0xf3518f,''[_0x7dd2eb(0x206)](_0x2f7217),{'defIds':_0xf3518f[_0x7dd2eb(0x285)],'idSuffix':_0xc9542d[_0x7dd2eb(0x3bd)]},_0x91d0b4({'ref':_0x2b3ba5,'className':_0xec41ed},_0x42f17b),_0x326441);});function _0x45c417(_0x3a0cc7,_0x2446fa,_0x368763,_0x4d9126,_0x14d4db){const _0x26b5c3=_0x144fb0;return _0x3aba2d['createElement'](_0x3a0cc7[_0x26b5c3(0x1a9)],_0x91d0b4(_0x91d0b4({'key':_0x2446fa},_0x2c7df2(_0x3a0cc7,_0x368763,_0x14d4db)),_0x4d9126),(_0x1fffcc(_0x3a0cc7,_0x368763)[_0x26b5c3(0xb8)]||[])[_0x26b5c3(0x296)](function(_0x187c08,_0x103894){const _0x5840f9=_0x26b5c3;return _0x45c417(_0x187c08,''[_0x5840f9(0x206)](_0x2446fa,'-')[_0x5840f9(0x206)](_0x3a0cc7[_0x5840f9(0x1a9)],'-')[_0x5840f9(0x206)](_0x103894),_0x368763,void 0x0,_0x14d4db);}));}function _0x2c7df2(_0x5ab37f,_0x4159e5,_0x40e2a2){const _0x52a1c0=_0x144fb0;var _0x11bfa3=_0x91d0b4({},_0x5ab37f[_0x52a1c0(0x284)]);_0x40e2a2!=null&&_0x40e2a2['colorChannel1']&&_0x11bfa3[_0x52a1c0(0x43c)]==='colorChannel1'&&(_0x11bfa3['fill']=_0x40e2a2[_0x52a1c0(0x43b)]);var _0x35c121=_0x4159e5[_0x52a1c0(0x285)];return!_0x35c121||_0x35c121[_0x52a1c0(0x118)]===0x0||(_0x5ab37f[_0x52a1c0(0x1a9)]===_0x52a1c0(0x15b)&&_0x11bfa3['xlink:href']&&(_0x11bfa3[_0x52a1c0(0x29b)]=_0x11bfa3['xlink:href']+_0x4159e5[_0x52a1c0(0x202)]),Object[_0x52a1c0(0x27b)](_0x11bfa3)[_0x52a1c0(0x478)](function(_0x84098d){const _0x121e60=_0x52a1c0;var _0x28b65b=_0x84098d[0x0],_0x207cbb=_0x84098d[0x1];typeof _0x207cbb==_0x121e60(0x266)&&(_0x11bfa3[_0x28b65b]=_0x207cbb['replace'](/url\(#(.*)\)/,_0x121e60(0x169)[_0x121e60(0x206)](_0x4159e5[_0x121e60(0x202)],')')));})),_0x11bfa3;}function _0x1fffcc(_0x459f34,_0x25876f){const _0x349b99=_0x144fb0;var _0x171f99,_0x4f4f38=_0x25876f[_0x349b99(0x285)];return!_0x4f4f38||_0x4f4f38[_0x349b99(0x118)]===0x0?_0x459f34:_0x459f34[_0x349b99(0x1a9)]==='defs'&&(!((_0x171f99=_0x459f34['children'])===null||_0x171f99===void 0x0)&&_0x171f99['length'])?_0x91d0b4(_0x91d0b4({},_0x459f34),{'children':_0x459f34[_0x349b99(0xb8)][_0x349b99(0x296)](function(_0x1b51d2){const _0x34ef7c=_0x349b99;return typeof _0x1b51d2['attrs']['id']==_0x34ef7c(0x266)&&_0x4f4f38&&_0x4f4f38[_0x34ef7c(0x3f2)](_0x1b51d2[_0x34ef7c(0x284)]['id'])>-0x1?_0x91d0b4(_0x91d0b4({},_0x1b51d2),{'attrs':_0x91d0b4(_0x91d0b4({},_0x1b51d2[_0x34ef7c(0x284)]),{'id':_0x1b51d2['attrs']['id']+_0x25876f[_0x34ef7c(0x202)]})}):_0x1b51d2;})}):_0x459f34;}function _0x331e33(){const _0x4240ba=_0x144fb0;return Math['random']()[_0x4240ba(0xf3)](0x24)[_0x4240ba(0x2b9)](0x2,0x8);}_0x56942f[_0x144fb0(0x224)]=_0x144fb0(0x314);var _0x7d1cc0={'tag':'svg','attrs':{'fill':_0x144fb0(0x334),'viewBox':_0x144fb0(0x16a),'width':_0x144fb0(0x160),'height':_0x144fb0(0x160)},'children':[{'tag':'g','attrs':{'clipPath':_0x144fb0(0x39d)},'children':[{'tag':_0x144fb0(0x298),'attrs':{'stroke':'currentColor','d':_0x144fb0(0x22d),'strokeLinecap':_0x144fb0(0x3cc),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x144fb0(0x311),'attrs':{},'children':[{'tag':_0x144fb0(0x1ec),'attrs':{'id':_0x144fb0(0x4cd)},'children':[{'tag':_0x144fb0(0x298),'attrs':{'fill':'#fff','d':_0x144fb0(0x1f8)}}]}]}],'defIds':[_0x144fb0(0x4cd)]},_0x24e843=_0x3aba2d[_0x144fb0(0x155)](function(_0x2ad54b,_0x539e6b){const _0x408788=_0x144fb0;return _0x3aba2d['createElement'](_0x56942f,Object['assign']({},_0x2ad54b,{'id':_0x408788(0x16f),'ref':_0x539e6b,'icon':_0x7d1cc0}));});_0x24e843['displayName']=_0x144fb0(0x384);var _0x55150c={'tag':'svg','attrs':{'fill':_0x144fb0(0x334),'viewBox':_0x144fb0(0x2cd),'width':_0x144fb0(0x160),'height':_0x144fb0(0x160)},'children':[{'tag':'g','attrs':{'clipPath':_0x144fb0(0x385)},'children':[{'tag':_0x144fb0(0x298),'attrs':{'stroke':_0x144fb0(0xb3),'d':_0x144fb0(0x3c1),'strokeLinecap':_0x144fb0(0x3cc),'strokeLinejoin':_0x144fb0(0x3cc),'strokeWidth':1.2}}]},{'tag':_0x144fb0(0x311),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x144fb0(0x26e)},'children':[{'tag':'path','attrs':{'fill':_0x144fb0(0x22e),'d':_0x144fb0(0x1f8),'transform':_0x144fb0(0x36c)}}]}]}],'defIds':['on-line-single_clip0_910_349']},_0x440894=_0x3aba2d[_0x144fb0(0x155)](function(_0x4411ce,_0x420bf2){const _0x51a461=_0x144fb0;return _0x3aba2d[_0x51a461(0x2a5)](_0x56942f,Object[_0x51a461(0x4af)]({},_0x4411ce,{'id':'on-line-single','ref':_0x420bf2,'icon':_0x55150c}));});_0x440894['displayName']=_0x144fb0(0x42f);function _0x1be222(_0x50b79){const _0x3baf17=_0x144fb0;var _0x3674ce,_0x522fde,_0x192cec='';if(typeof _0x50b79==_0x3baf17(0x266)||typeof _0x50b79==_0x3baf17(0x147))_0x192cec+=_0x50b79;else{if(typeof _0x50b79=='object'){if(Array['isArray'](_0x50b79)){var _0x202e0b=_0x50b79['length'];for(_0x3674ce=0x0;_0x3674ce<_0x202e0b;_0x3674ce++)_0x50b79[_0x3674ce]&&(_0x522fde=_0x1be222(_0x50b79[_0x3674ce]))&&(_0x192cec&&(_0x192cec+='\x20'),_0x192cec+=_0x522fde);}else{for(_0x522fde in _0x50b79)_0x50b79[_0x522fde]&&(_0x192cec&&(_0x192cec+='\x20'),_0x192cec+=_0x522fde);}}}return _0x192cec;}function _0x1903e1(){const _0x3534cc=_0x144fb0;for(var _0x27a966,_0x4d3944,_0x316ca4=0x0,_0x565b21='',_0x33bb34=arguments[_0x3534cc(0x118)];_0x316ca4<_0x33bb34;_0x316ca4++)(_0x27a966=arguments[_0x316ca4])&&(_0x4d3944=_0x1be222(_0x27a966))&&(_0x565b21&&(_0x565b21+='\x20'),_0x565b21+=_0x4d3944);return _0x565b21;}const _0x399c3a={'onlineStatusIcon':'univer-online-status-icon','onlineStatusTitle':_0x144fb0(0x1d0),'onlineStatus':_0x144fb0(0x192),'online':_0x144fb0(0x2b3),'offline':'univer-offline'};function _0x228f66(_0x465fb3){const _0x4cd96a=_0x144fb0;switch(_0x465fb3){case _0x5d3e7e[_0x4cd96a(0x2d5)]:return _0x4cd96a(0x439);case _0x5d3e7e[_0x4cd96a(0x3b6)]:return _0x4cd96a(0xea);case _0x5d3e7e['FETCH_MISS']:return _0x4cd96a(0x15e);case _0x5d3e7e[_0x4cd96a(0x49a)]:return _0x4cd96a(0x36a);case _0x5d3e7e[_0x4cd96a(0x42a)]:case _0x5d3e7e[_0x4cd96a(0x45b)]:case _0x5d3e7e['AWAITING_WITH_PENDING']:return _0x4cd96a(0x1a0);case _0x5d3e7e[_0x4cd96a(0xad)]:return'collabStatus.synced';}}function _0x2b690e(_0x18b400){const _0x27b52a=_0x144fb0,{status$:_0x1ce113}=_0x18b400,_0xd2fe6b=_0x40b1aa[_0x27b52a(0x156)](_0x1ce113,_0x5d3e7e[_0x27b52a(0x49a)]),_0x5063f3=_0x20df93[_0x27b52a(0x121)](_0x20df93[_0x27b52a(0x142)]),_0x2109e4=_0x20df93[_0x27b52a(0x121)](_0x4c8f94['CollaborationSessionService']),_0x1dc3dd=_0xd2fe6b!==_0x5d3e7e[_0x27b52a(0x2d5)],_0x450fbc=_0x5063f3['t'](_0x228f66(_0xd2fe6b)),_0x40c386=_0x1903e1(_0x399c3a[_0x27b52a(0x1ac)],{[_0x399c3a['online']]:_0x1dc3dd,[_0x399c3a[_0x27b52a(0xfc)]]:!_0x1dc3dd}),_0x5f3427=_0x1dc3dd?_0x3aba2d[_0x27b52a(0x2a5)](_0x440894,null):_0x3aba2d[_0x27b52a(0x2a5)](_0x24e843,null),_0x4e2478=_0x3aba2d[_0x27b52a(0x18e)](()=>{const _0x33214a=_0x27b52a;_0x1dc3dd||_0x2109e4[_0x33214a(0x3ae)]();},[_0x1dc3dd,_0x2109e4]);function _0x2a19e9(){const _0x174431=_0x27b52a;return _0x3aba2d['createElement'](_0x174431(0x15c),{'className':_0x40c386,'onClick':_0x4e2478},_0x3aba2d[_0x174431(0x2a5)]('div',{'className':_0x399c3a['onlineStatusIcon']},_0x5f3427),_0x3aba2d[_0x174431(0x2a5)](_0x174431(0x15c),{'className':_0x399c3a[_0x174431(0x481)]},_0x450fbc));}return _0x1dc3dd?_0x2a19e9():_0x3aba2d[_0x27b52a(0x2a5)](_0x3206ad['Tooltip'],{'title':_0x5063f3['t'](_0x27b52a(0x35d))},_0x2a19e9());}var _0x411e26=Object[_0x144fb0(0x395)],_0x57182c=Object[_0x144fb0(0x457)],_0x163779=(_0x29e75b,_0xf3c63c,_0x9b7993,_0x1834d8)=>{const _0x584536=_0x144fb0;for(var _0x3ad572=_0x1834d8>0x1?void 0x0:_0x1834d8?_0x57182c(_0xf3c63c,_0x9b7993):_0xf3c63c,_0x52a939=_0x29e75b[_0x584536(0x118)]-0x1,_0x5acd43;_0x52a939>=0x0;_0x52a939--)(_0x5acd43=_0x29e75b[_0x52a939])&&(_0x3ad572=(_0x1834d8?_0x5acd43(_0xf3c63c,_0x9b7993,_0x3ad572):_0x5acd43(_0x3ad572))||_0x3ad572);return _0x1834d8&&_0x3ad572&&_0x411e26(_0xf3c63c,_0x9b7993,_0x3ad572),_0x3ad572;},_0x1f5215=(_0x16e36a,_0x39c6fb)=>(_0x3da3af,_0x28b6c4)=>_0x39c6fb(_0x3da3af,_0x28b6c4,_0x16e36a);_0x4c8f94[_0x144fb0(0x10a)]=class extends _0x20df93[_0x144fb0(0x343)]{constructor(_0x3ba1a0,_0x3e247e,_0x164e5e,_0x3f30d9){const _0x3081c9=_0x144fb0;super(),_0x3e782f(this,'_status$',new _0x284d0[(_0x3081c9(0x237))](_0x5d3e7e[_0x3081c9(0x49a)])),(this['_univerInstanceService']=_0x3ba1a0,this[_0x3081c9(0x281)]=_0x3e247e,this[_0x3081c9(0x2fc)]=_0x164e5e,this[_0x3081c9(0x1b1)]=_0x3f30d9,this[_0x3081c9(0x164)](),this[_0x3081c9(0x212)]());}[_0x144fb0(0x212)](){const _0x3e1ccd=_0x144fb0;this[_0x3e1ccd(0x397)](this[_0x3e1ccd(0xc8)][_0x3e1ccd(0x389)][_0x3e1ccd(0x34d)](_0x284d0[_0x3e1ccd(0x383)](()=>{const _0x45e0cc=_0x3e1ccd,_0x4fe0e6=this[_0x45e0cc(0xc8)][_0x45e0cc(0x138)]();return _0x4fe0e6?this['_collaborationController'][_0x45e0cc(0x3e7)](_0x4fe0e6[_0x45e0cc(0x1fd)]()):_0x284d0['of'](null);}),_0x284d0['switchMap'](_0x3988b0=>_0x3988b0?_0x3988b0[_0x3e1ccd(0x4c2)]:_0x284d0['of'](_0x5d3e7e[_0x3e1ccd(0x49a)])))[_0x3e1ccd(0xda)](_0x1852ac=>{const _0x2ca603=_0x3e1ccd;this[_0x2ca603(0x2c7)][_0x2ca603(0x25d)](_0x1852ac);}));}[_0x144fb0(0x164)](){const _0x33c00c=_0x144fb0;this['disposeWithMe'](this[_0x33c00c(0x281)][_0x33c00c(0x238)](_0x40b1aa['BuiltInUIPart'][_0x33c00c(0x388)],()=>_0x20df93['connectInjector'](_0x169888({'status$':this[_0x33c00c(0x2c7)]['asObservable']()}),this['_injector'])));}},_0x4c8f94[_0x144fb0(0x10a)]=_0x163779([_0x1f5215(0x0,_0x20df93[_0x144fb0(0x292)]),_0x1f5215(0x1,_0x40b1aa[_0x144fb0(0x34f)]),_0x1f5215(0x2,_0x20df93[_0x144fb0(0xdd)](_0x20df93['Injector'])),_0x1f5215(0x3,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94[_0x144fb0(0x10e)]))],_0x4c8f94[_0x144fb0(0x10a)]);function _0x169888(_0x5ea02d){const {status$:_0x530eb9}=_0x5ea02d;return function(){const _0x1593af=_0x205f;return _0x3aba2d[_0x1593af(0x2a5)](_0x2b690e,{'status$':_0x530eb9});};}const _0x22cd46=_0x20df93[_0x144fb0(0x4be)]('uni.network.url-service');var _0x511cd4=Object[_0x144fb0(0x395)],_0x3b5697=Object['getOwnPropertyDescriptor'],_0x1a4390=(_0x5da5be,_0x17ebdc,_0x4f14eb,_0x550185)=>{const _0x274c53=_0x144fb0;for(var _0x237705=_0x550185>0x1?void 0x0:_0x550185?_0x3b5697(_0x17ebdc,_0x4f14eb):_0x17ebdc,_0x59e404=_0x5da5be[_0x274c53(0x118)]-0x1,_0x31f1a1;_0x59e404>=0x0;_0x59e404--)(_0x31f1a1=_0x5da5be[_0x59e404])&&(_0x237705=(_0x550185?_0x31f1a1(_0x17ebdc,_0x4f14eb,_0x237705):_0x31f1a1(_0x237705))||_0x237705);return _0x550185&&_0x237705&&_0x511cd4(_0x17ebdc,_0x4f14eb,_0x237705),_0x237705;},_0x1d6a92=(_0x11a5e6,_0x5286bd)=>(_0x1dff7b,_0x20029f)=>_0x5286bd(_0x1dff7b,_0x20029f,_0x11a5e6);_0x4c8f94['DataLoaderController']=class extends _0x20df93['RxDisposable']{constructor(_0x23c613,_0x39f1b1,_0x491d5f,_0x38fbbd,_0x4ecc4a,_0x5075fd){const _0xc658c4=_0x144fb0;super(),this[_0xc658c4(0x140)]=_0x23c613,this[_0xc658c4(0x414)]=_0x39f1b1,this[_0xc658c4(0x2d1)]=_0x491d5f,this['_localCacheService']=_0x38fbbd,this[_0xc658c4(0x378)]=_0x4ecc4a,_0x5075fd?_0x5075fd==null||_0x5075fd[_0xc658c4(0x30f)]()['then'](()=>this[_0xc658c4(0x198)]()):(this['_logService'][_0xc658c4(0xd6)](_0xc658c4(0x2d3),_0xc658c4(0x302)),this['_init']());}async[_0x144fb0(0x198)](){const _0x25285e=_0x144fb0,_0x397ac2=this[_0x25285e(0x140)][_0x25285e(0xa4)](_0x25285e(0x327)),_0x5a8b86=this['_urlService'][_0x25285e(0xa4)](_0x25285e(0x2e4));if(!_0x397ac2||!_0x5a8b86){this[_0x25285e(0x414)]['debug'](_0x25285e(0x2d3),_0x25285e(0xb2));return;}switch(Number(_0x5a8b86)){case _0x3dff5a[_0x25285e(0x4bf)]:{const _0x4e20be=await this[_0x25285e(0x193)](_0x397ac2);this[_0x25285e(0x399)](_0x4e20be);break;}case _0x3dff5a[_0x25285e(0x126)]:{await this[_0x25285e(0x401)](_0x397ac2);break;}default:{this['_logService'][_0x25285e(0x37d)](_0x25285e(0x2d3),_0x25285e(0x21d));break;}}}async[_0x144fb0(0x399)](_0x3e7b32){const _0x281413=_0x144fb0;await this['_updateSubUnitFromURLParams'](_0x3e7b32),_0x3e7b32[_0x281413(0x4ce)][_0x281413(0x34d)](_0x284d0[_0x281413(0xa0)](this[_0x281413(0x288)]))[_0x281413(0xda)](_0x31b897=>{const _0x318050=_0x281413;_0x31b897&&this[_0x318050(0x107)](_0x31b897);}),this[_0x281413(0x140)][_0x281413(0x2b5)][_0x281413(0x34d)](_0x284d0[_0x281413(0xa0)](this['dispose$']))[_0x281413(0xda)](()=>this[_0x281413(0x420)](_0x3e7b32));}[_0x144fb0(0x107)](_0x10c1c0,_0x15a970=!0x1){const _0x285a81=_0x144fb0,_0xc97224=this[_0x285a81(0x140)]['getParam'](_0x285a81(0x2f1));_0x10c1c0['getSheetId']()!==_0xc97224&&this[_0x285a81(0x140)][_0x285a81(0x475)](_0x285a81(0x2f1),_0x10c1c0[_0x285a81(0x3c9)](),_0x15a970);}async[_0x144fb0(0x420)](_0x2ee0b3){const _0x2b484a=_0x144fb0;var _0xcb510;const _0x35aa08=this[_0x2b484a(0x140)][_0x2b484a(0xa4)](_0x2b484a(0x2f1));if(!_0x35aa08||!_0x2ee0b3[_0x2b484a(0x3ac)](_0x35aa08)){const _0x2d7dc9=_0x2ee0b3['getUnhiddenWorksheets']()[0x0],_0x20f96b=_0x2ee0b3[_0x2b484a(0x3ac)](_0x2d7dc9);if(!_0x20f96b)return;this[_0x2b484a(0x107)](_0x20f96b,!0x0),await this[_0x2b484a(0x2d1)][_0x2b484a(0x1fe)](_0x5dce24[_0x2b484a(0x2f5)]['id'],{'unitId':_0x2ee0b3[_0x2b484a(0x1fd)](),'subUnitId':_0x2d7dc9});return;}((_0xcb510=_0x2ee0b3[_0x2b484a(0x112)]())==null?void 0x0:_0xcb510['getSheetId']())!==_0x35aa08&&await this[_0x2b484a(0x2d1)][_0x2b484a(0x1fe)](_0x5dce24[_0x2b484a(0x2f5)]['id'],{'unitId':_0x2ee0b3[_0x2b484a(0x1fd)](),'subUnitId':_0x35aa08});}async[_0x144fb0(0x193)](_0x28c9aa){const _0x2d1ec3=_0x144fb0;let _0x4c6318=0x0;const _0x38517d=await this['_localCacheService'][_0x2d1ec3(0x19f)](_0x28c9aa);return _0x38517d&&(_0x38517d[_0x2d1ec3(0x1a7)]||_0x38517d[_0x2d1ec3(0x366)][_0x2d1ec3(0x118)]!==0x0)&&(_0x4c6318=_0x38517d[_0x2d1ec3(0x489)]),_0x4c6318===0x0&&this['_logService'][_0x2d1ec3(0xd6)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x2d1ec3(0x378)][_0x2d1ec3(0x2e2)](_0x28c9aa,_0x4c6318);}async['_loadDoc'](_0x33ad0f){const _0x1d4439=_0x144fb0;let _0x5b9df9=0x0;const _0x671769=await this[_0x1d4439(0x2be)][_0x1d4439(0x19f)](_0x33ad0f);return _0x671769&&(_0x671769[_0x1d4439(0x1a7)]||_0x671769[_0x1d4439(0x366)][_0x1d4439(0x118)]!==0x0)&&(_0x5b9df9=_0x671769['rev']),_0x5b9df9===0x0&&this[_0x1d4439(0x414)][_0x1d4439(0xd6)](_0x1d4439(0x2d3),_0x1d4439(0xdf)),this[_0x1d4439(0x378)][_0x1d4439(0x4ca)](_0x33ad0f,_0x5b9df9);}},_0x4c8f94[_0x144fb0(0x26a)]=_0x1a4390([_0x1d6a92(0x0,_0x22cd46),_0x1d6a92(0x1,_0x20df93['ILogService']),_0x1d6a92(0x2,_0x20df93[_0x144fb0(0x338)]),_0x1d6a92(0x3,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94['LocalCacheService'])),_0x1d6a92(0x4,_0x20df93[_0x144fb0(0xdd)](_0x55cc56[_0x144fb0(0xd2)])),_0x1d6a92(0x5,_0x20df93['Optional'](_0x264084[_0x144fb0(0x9c)]))],_0x4c8f94[_0x144fb0(0x26a)]);var _0x10ee22=Object[_0x144fb0(0x395)],_0x227796=Object['getOwnPropertyDescriptor'],_0x46bf57=(_0x30d6e1,_0x5a14fd,_0x2fe9ad,_0x47a47a)=>{const _0x854a98=_0x144fb0;for(var _0x2e0719=_0x47a47a>0x1?void 0x0:_0x47a47a?_0x227796(_0x5a14fd,_0x2fe9ad):_0x5a14fd,_0x31015a=_0x30d6e1[_0x854a98(0x118)]-0x1,_0x39a107;_0x31015a>=0x0;_0x31015a--)(_0x39a107=_0x30d6e1[_0x31015a])&&(_0x2e0719=(_0x47a47a?_0x39a107(_0x5a14fd,_0x2fe9ad,_0x2e0719):_0x39a107(_0x2e0719))||_0x2e0719);return _0x47a47a&&_0x2e0719&&_0x10ee22(_0x5a14fd,_0x2fe9ad,_0x2e0719),_0x2e0719;},_0x242d4f=(_0xbd353f,_0x4f42e1)=>(_0x3347fb,_0x5ee391)=>_0x4f42e1(_0x3347fb,_0x5ee391,_0xbd353f);const _0x46017c=_0x144fb0(0x14b),_0x236086=_0x144fb0(0x4cb);let _0x43a9b6=class extends _0x20df93[_0x144fb0(0x343)]{constructor(_0x566e65,_0x239f15){const _0x742028=_0x144fb0;super(),this['_univerInstanceService']=_0x566e65,this[_0x742028(0x283)]=_0x239f15,this[_0x742028(0x198)]();}['_init'](){const _0x209d0c=_0x144fb0;this[_0x209d0c(0x397)](this['_univerInstanceService']['focused$'][_0x209d0c(0xda)](()=>{const _0x4bf121=_0x209d0c;var _0x47f8e7;const _0x4a4d04=this['_univerInstanceService']['getFocusedUnit']();let _0x2fe8a5=(_0x47f8e7=this['_configService'][_0x4bf121(0x27c)](_0x46017c))!=null?_0x47f8e7:_0x236086;_0x4a4d04 instanceof _0x20df93[_0x4bf121(0x23b)]&&(_0x2fe8a5=_0x4a4d04[_0x4bf121(0x2b4)]),document[_0x4bf121(0x27a)]=_0x2fe8a5;}));}};_0x43a9b6=_0x46bf57([_0x242d4f(0x0,_0x20df93[_0x144fb0(0x292)]),_0x242d4f(0x1,_0x20df93['IConfigService'])],_0x43a9b6);var _0x50acde=Object['defineProperty'],_0x12c026=Object[_0x144fb0(0x457)],_0x15b921=(_0x33be9f,_0x7bf847,_0x5712d4,_0x4c0f4b)=>{const _0x51c902=_0x144fb0;for(var _0x23bbc8=_0x4c0f4b>0x1?void 0x0:_0x4c0f4b?_0x12c026(_0x7bf847,_0x5712d4):_0x7bf847,_0x3dbb22=_0x33be9f[_0x51c902(0x118)]-0x1,_0x503a38;_0x3dbb22>=0x0;_0x3dbb22--)(_0x503a38=_0x33be9f[_0x3dbb22])&&(_0x23bbc8=(_0x4c0f4b?_0x503a38(_0x7bf847,_0x5712d4,_0x23bbc8):_0x503a38(_0x23bbc8))||_0x23bbc8);return _0x4c0f4b&&_0x23bbc8&&_0x50acde(_0x7bf847,_0x5712d4,_0x23bbc8),_0x23bbc8;},_0x190cb9=(_0x3b5f5d,_0xf40c8e)=>(_0x524b77,_0x325cf3)=>_0xf40c8e(_0x524b77,_0x325cf3,_0x3b5f5d);let _0x41e9e1=class{constructor(_0x50bf6d,_0xd3a75f,_0x4b2c61){const _0x2250f9=_0x144fb0;this[_0x2250f9(0x283)]=_0x50bf6d,this['_httpService']=_0xd3a75f,this[_0x2250f9(0x11e)]=_0x4b2c61,this['init']();}[_0x144fb0(0x1e3)](){const _0xa81698=_0x144fb0;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x125135,_0x3dac08)=>_0x3dac08(_0x125135)[_0xa81698(0x34d)](_0x284d0[_0xa81698(0x3dc)](async _0x489a00=>{const _0x57c7f3=_0xa81698,_0x45de62=_0x489a00;if(_0x45de62['status']===0x191&&window[_0x57c7f3(0x29e)](this[_0x57c7f3(0x11e)]['t']('auth.needGotoLoginAlert'))){const _0x351991=window[_0x57c7f3(0x2f4)](window[_0x57c7f3(0x33a)][_0x57c7f3(0x264)]);window[_0x57c7f3(0x33a)][_0x57c7f3(0x264)]=this[_0x57c7f3(0x20b)]()+_0x57c7f3(0x2b1)+_0x351991;}return _0x45de62;}))});}[_0x144fb0(0x20b)](){const _0x4f5354=_0x144fb0;var _0x52ab99,_0x2c655d;const _0x9caad8=this[_0x4f5354(0x283)]['getConfig'](_0x57c1a6),_0x4d1253=this[_0x4f5354(0x283)][_0x4f5354(0x27c)](_0x53057b);return(_0x2c655d=(_0x52ab99=_0x4d1253==null?void 0x0:_0x4d1253[_0x4f5354(0x152)])!=null?_0x52ab99:_0x9caad8)!=null?_0x2c655d:_0x4650cd;}};_0x41e9e1=_0x15b921([_0x190cb9(0x0,_0x20df93['IConfigService']),_0x190cb9(0x1,_0x20df93[_0x144fb0(0xdd)](_0x581b3b[_0x144fb0(0x1d2)])),_0x190cb9(0x2,_0x20df93['Inject'](_0x20df93[_0x144fb0(0x142)]))],_0x41e9e1);var _0x34262b=Object['defineProperty'],_0x1b36e0=Object[_0x144fb0(0x457)],_0x3de421=(_0xba31d0,_0x5183c7,_0x25ab26,_0x5f2473)=>{for(var _0x18cdeb=_0x5f2473>0x1?void 0x0:_0x5f2473?_0x1b36e0(_0x5183c7,_0x25ab26):_0x5183c7,_0x76efb7=_0xba31d0['length']-0x1,_0x598d3d;_0x76efb7>=0x0;_0x76efb7--)(_0x598d3d=_0xba31d0[_0x76efb7])&&(_0x18cdeb=(_0x5f2473?_0x598d3d(_0x5183c7,_0x25ab26,_0x18cdeb):_0x598d3d(_0x18cdeb))||_0x18cdeb);return _0x5f2473&&_0x18cdeb&&_0x34262b(_0x5183c7,_0x25ab26,_0x18cdeb),_0x18cdeb;},_0x5e23e6=(_0xc88a67,_0xd9e06c)=>(_0x3b9651,_0x5519f1)=>_0xd9e06c(_0x3b9651,_0x5519f1,_0xc88a67);const _0x3a861f='AUTHZ_URL_KEY',_0x504a28=_0x144fb0(0x166);_0x4c8f94[_0x144fb0(0x3e6)]=class extends _0x20df93[_0x144fb0(0x343)]{constructor(_0x36e83b,_0x158c53){const _0x730b29=_0x144fb0;super(),this['_HTTPService']=_0x36e83b,this[_0x730b29(0x283)]=_0x158c53,this[_0x730b29(0xe2)]();}[_0x144fb0(0xe2)](){const _0x14b301=_0x144fb0,_0x16f4cd=this;this[_0x14b301(0x397)](this[_0x14b301(0x265)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x581b3b[_0x14b301(0x44d)]({'isMatch'(_0x43e7e4){const _0x510fe0=_0x14b301;var _0x4f4358;if(_0x43e7e4['method']===_0x510fe0(0x32e)&&((_0x4f4358=_0x43e7e4[_0x510fe0(0x28a)])!=null&&_0x4f4358['body'])){const {objectID:_0x274807,objectType:_0x45a868}=_0x43e7e4[_0x510fe0(0x28a)][_0x510fe0(0x141)]||{};if(!_0x274807||_0x45a868===void 0x0)return!0x1;const _0x38d77d=_0x16f4cd['_getAPIPrefixPath']()+'/'+_0x45a868+'/object/'+_0x274807+'/allowed';if(_0x43e7e4[_0x510fe0(0x270)]===_0x38d77d)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x52a74e){const _0x10683f=_0x14b301;var _0x1a67d0;return(_0x1a67d0=_0x52a74e[_0x10683f(0x28a)])==null?void 0x0:_0x1a67d0['body'];},'mergeParamsToRequest'(_0x352ee7,_0x4e8c36){const _0x4dcba1=_0x14b301,_0x4bbc76=_0x16f4cd[_0x4dcba1(0x4c5)]()+_0x4dcba1(0x342),_0x2f303e=_0x352ee7['reduce']((_0x404dda,_0x3cfd56)=>{const _0xb0b101=_0x4dcba1,{unitID:_0x4ad487,objectID:_0x277325,objectType:_0x38ec69,actions:_0x15c5a9}=_0x3cfd56;return _0x404dda[_0x4ad487]||(_0x404dda[_0x4ad487]={}),_0x404dda[_0x4ad487][_0x277325]||(_0x404dda[_0x4ad487][_0x277325]={'objectID':_0x277325,'objectType':_0x38ec69,'actions':[]}),_0x404dda[_0x4ad487][_0x277325][_0xb0b101(0x437)][_0xb0b101(0x20e)](..._0x15c5a9),_0x404dda;},{}),_0x4210d7=[];for(const _0x6ea60e in _0x2f303e)for(const _0x5263cd in _0x2f303e[_0x6ea60e]){const {actions:_0x2953e7,objectType:_0x3549da}=_0x2f303e[_0x6ea60e][_0x5263cd],_0xf7411c=[...new Set(_0x2953e7)];_0x4210d7[_0x4dcba1(0x20e)]({'unitID':_0x6ea60e,'objectID':_0x5263cd,'objectType':_0x3549da,'actions':_0xf7411c});}return new _0x581b3b['HTTPRequest'](_0x4dcba1(0x32e),_0x4bbc76,{'headers':_0x4e8c36[_0x4dcba1(0x2f3)],'withCredentials':_0x4e8c36[_0x4dcba1(0x196)],'responseType':_0x4e8c36[_0x4dcba1(0x33c)],'body':{'requests':_0x4210d7}});}},{'distributeResult'(_0x3c3866,_0x7b9d41){const _0x386760=_0x14b301,{objectActions:_0x442684}=_0x3c3866;return _0x7b9d41[_0x386760(0x296)](_0x156ef3=>{const _0x9cd127=_0x386760,{unitID:_0x1f22d8,objectID:_0x4dce63,actions:_0x261d49}=_0x156ef3,_0x3d2ca6=_0x442684[_0x9cd127(0x33d)](_0x592353=>_0x592353[_0x9cd127(0x239)]===_0x1f22d8&&_0x592353[_0x9cd127(0x8e)]===_0x4dce63),_0x23ca85=_0x261d49[_0x9cd127(0x296)](_0x4a0fd7=>_0x3d2ca6==null?void 0x0:_0x3d2ca6['actions'][_0x9cd127(0x33d)](_0xe88b3=>_0xe88b3[_0x9cd127(0x40c)]===_0x4a0fd7))['filter'](_0x5d6c6f=>!!_0x5d6c6f);return{'config':_0x156ef3,'result':{'actions':_0x23ca85,'error':_0x3c3866[_0x9cd127(0x37d)]}};});}})}));}['_getAPIPrefixPath'](){const _0x5531ab=_0x144fb0;var _0x191134,_0x5061b4;const _0x499f7d=this[_0x5531ab(0x283)][_0x5531ab(0x27c)](_0x3a861f),_0x47fd54=this['_configService']['getConfig'](_0x53057b);return(_0x5061b4=(_0x191134=_0x47fd54==null?void 0x0:_0x47fd54[_0x5531ab(0x364)])!=null?_0x191134:_0x499f7d)!=null?_0x5061b4:_0x504a28;}async[_0x144fb0(0x204)](_0x4b1f15){const _0x18a2b7=_0x144fb0,_0x1aac24=this[_0x18a2b7(0x4c5)]()+'/'+_0x4b1f15[_0x18a2b7(0x20f)]+_0x18a2b7(0x139);return(await this[_0x18a2b7(0x265)]['post'](_0x1aac24,{'body':_0x4b1f15}))[_0x18a2b7(0x141)]['objectID']||'';}async[_0x144fb0(0x1ba)](_0x63bc6d){const _0x5bb6b1=_0x144fb0,_0x2a4221=this[_0x5bb6b1(0x4c5)]()+'/-/object/list';return(await this[_0x5bb6b1(0x265)]['post'](_0x2a4221,{'body':_0x63bc6d}))['body'][_0x5bb6b1(0x304)];}async['update'](_0x164db6){const _0x5523b6=_0x144fb0,_0x50aeaf=this['_getAPIPrefixPath']()+'/'+_0x164db6[_0x5523b6(0x20f)]+_0x5523b6(0x102)+_0x164db6[_0x5523b6(0x8e)];await this['_HTTPService']['put'](_0x50aeaf,{'body':_0x164db6});}async[_0x144fb0(0x377)](_0x322c7d){const _0x3bb201=_0x144fb0,_0x482337=this[_0x3bb201(0x4c5)]()+'/'+_0x322c7d['objectType']+_0x3bb201(0x102)+_0x322c7d[_0x3bb201(0x8e)]+_0x3bb201(0x431);return(await this[_0x3bb201(0x265)][_0x3bb201(0x194)](_0x482337,{'body':_0x322c7d}))[_0x3bb201(0x141)][_0x3bb201(0x437)];}async[_0x144fb0(0x336)](_0x189b6d){const _0x2476f9=_0x144fb0,_0x4d9198=this[_0x2476f9(0x4c5)]()+_0x2476f9(0x342);return(await this[_0x2476f9(0x265)][_0x2476f9(0x194)](_0x4d9198,{'body':{'requests':_0x189b6d}}))[_0x2476f9(0x141)]['objectActions'];}async[_0x144fb0(0x43a)](_0x45246){const _0x2394c1=_0x144fb0,_0x320318=this[_0x2394c1(0x4c5)]()+'/'+_0x45246[_0x2394c1(0x20f)]+_0x2394c1(0xc6),_0x13b2c2=await this[_0x2394c1(0x265)][_0x2394c1(0x194)](_0x320318,{'body':_0x45246});return{'roles':_0x13b2c2['body']['roles'],'actions':_0x13b2c2[_0x2394c1(0x141)]['actions']};}async[_0x144fb0(0x459)](_0xd9b1a7){const _0x1160de=_0x144fb0,_0xf50c55=this[_0x1160de(0x4c5)]()+_0x1160de(0x254);await this[_0x1160de(0x265)][_0x1160de(0x32d)](_0xf50c55,{'params':{'collaboratorID':_0xd9b1a7[_0x1160de(0x17d)],'objectID':_0xd9b1a7['objectID'],'unitID':_0xd9b1a7[_0x1160de(0x239)]}});}async[_0x144fb0(0x295)](_0x4899a8){const _0x5bba01=_0x144fb0,_0x5f4af7=this['_getAPIPrefixPath']()+_0x5bba01(0x254);await this[_0x5bba01(0x265)][_0x5bba01(0x2cb)](_0x5f4af7,{'body':_0x4899a8});}async[_0x144fb0(0x133)](_0x1479eb){const _0x39c8d6=_0x144fb0,_0xe02dd5=this['_getAPIPrefixPath']()+_0x39c8d6(0x254);await this[_0x39c8d6(0x265)]['post'](_0xe02dd5,{'body':_0x1479eb});}async[_0x144fb0(0x1e8)](_0xf4e5c0){const _0xc14ae=_0x144fb0,_0x2da585=this[_0xc14ae(0x4c5)]()+_0xc14ae(0x254);return(await this[_0xc14ae(0x265)][_0xc14ae(0x3b8)](_0x2da585,{'params':{'objectID':_0xf4e5c0[_0xc14ae(0x8e)],'unitID':_0xf4e5c0[_0xc14ae(0x239)]}}))['body'][_0xc14ae(0x30e)];}async[_0x144fb0(0x3d3)](_0x2c6a7b){const _0x27e198=_0x144fb0,_0x1a227a=this['_getAPIPrefixPath']()+_0x27e198(0x254);await this[_0x27e198(0x265)][_0x27e198(0x3e4)](_0x1a227a,{'body':_0x2c6a7b});}},_0x4c8f94[_0x144fb0(0x3e6)]=_0x3de421([_0x5e23e6(0x0,_0x20df93['Inject'](_0x581b3b['HTTPService'])),_0x5e23e6(0x1,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x247)]))],_0x4c8f94[_0x144fb0(0x3e6)]);var _0x2f1633=Object[_0x144fb0(0x395)],_0x487f89=Object[_0x144fb0(0x457)],_0xf681d2=(_0x119721,_0x519d1a,_0x32a687,_0x3ae782)=>{const _0x5b3aab=_0x144fb0;for(var _0x3d0218=_0x3ae782>0x1?void 0x0:_0x3ae782?_0x487f89(_0x519d1a,_0x32a687):_0x519d1a,_0x15bd58=_0x119721[_0x5b3aab(0x118)]-0x1,_0x3c7b01;_0x15bd58>=0x0;_0x15bd58--)(_0x3c7b01=_0x119721[_0x15bd58])&&(_0x3d0218=(_0x3ae782?_0x3c7b01(_0x519d1a,_0x32a687,_0x3d0218):_0x3c7b01(_0x3d0218))||_0x3d0218);return _0x3ae782&&_0x3d0218&&_0x2f1633(_0x519d1a,_0x32a687,_0x3d0218),_0x3d0218;},_0x48ed7f=(_0x461283,_0x53e969)=>(_0x11865e,_0x303ad6)=>_0x53e969(_0x11865e,_0x303ad6,_0x461283);let _0x223987=class{constructor(_0x5517b0){this['_httpService']=_0x5517b0,this['_initRequestHeader']();}[_0x144fb0(0x2f2)](){const _0x42c89b=_0x144fb0;this[_0x42c89b(0x136)][_0x42c89b(0x1b6)]({'interceptor':(_0x4f1e44,_0x462e74)=>{const _0xc9c223=_0x42c89b,_0x2fb2d4=_0x4f1e44[_0xc9c223(0x2f3)],_0x2fab00=_0x505c0c['getAttachHeader']();return _0x2fab00&&_0x2fb2d4[_0xc9c223(0x271)](_0xc9c223(0x1b8),_0x2fab00),_0x462e74(_0x4f1e44);}});}};_0x223987=_0xf681d2([_0x48ed7f(0x0,_0x20df93[_0x144fb0(0xdd)](_0x581b3b[_0x144fb0(0x1d2)]))],_0x223987);var _0x32f01a=Object['defineProperty'],_0x3d807f=Object['getOwnPropertyDescriptor'],_0x42aa89=(_0x155419,_0x1243eb,_0xc4b188,_0x438f9b)=>{for(var _0x8ceaa0=_0x438f9b>0x1?void 0x0:_0x438f9b?_0x3d807f(_0x1243eb,_0xc4b188):_0x1243eb,_0x47baa0=_0x155419['length']-0x1,_0x131a52;_0x47baa0>=0x0;_0x47baa0--)(_0x131a52=_0x155419[_0x47baa0])&&(_0x8ceaa0=(_0x438f9b?_0x131a52(_0x1243eb,_0xc4b188,_0x8ceaa0):_0x131a52(_0x8ceaa0))||_0x8ceaa0);return _0x438f9b&&_0x8ceaa0&&_0x32f01a(_0x1243eb,_0xc4b188,_0x8ceaa0),_0x8ceaa0;},_0x41e24=(_0x2e8970,_0xa6eb8e)=>(_0x2f1039,_0x1f652c)=>_0xa6eb8e(_0x2f1039,_0x1f652c,_0x2e8970);const _0x1716d5=[_0x144fb0(0x2ab),_0x144fb0(0x227),'image/jpg',_0x144fb0(0x13d),_0x144fb0(0x90)],_0x10e387=0x5*0x400*0x400,_0xc05462=_0x144fb0(0x1c9),_0xb984cf=_0x144fb0(0x3bf),_0x1c4578='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_0xb9f95c=_0x144fb0(0x1b5);_0x4c8f94['ImageIoService']=class{constructor(_0x2d4e99,_0x55909b,_0x584a9e){const _0x20af37=_0x144fb0;_0x3e782f(this,_0x20af37(0x2e5),0x0),_0x3e782f(this,_0x20af37(0x15d),new _0x284d0['Subject']()),_0x3e782f(this,_0x20af37(0x11f),this[_0x20af37(0x15d)]),_0x3e782f(this,_0x20af37(0x123),new Map()),(this['_httpService']=_0x2d4e99,this['_configService']=_0x55909b,this[_0x20af37(0xc8)]=_0x584a9e);}[_0x144fb0(0x3e0)](_0x28abfe){const _0x17cca3=_0x144fb0;this[_0x17cca3(0x2e5)]=_0x28abfe,this[_0x17cca3(0x15d)]['next'](_0x28abfe);}[_0x144fb0(0x115)](_0x44dfc0,_0x44a871){const _0x56f6f9=_0x144fb0;if(_0x44a871===_0x1e0c7c[_0x56f6f9(0x34a)]['BASE64']){const _0x4600d3=new Image();return _0x4600d3[_0x56f6f9(0x38f)]=_0x44dfc0,_0x4600d3;}return this['_imageSourceCache']['get'](_0x44dfc0);}[_0x144fb0(0x14d)](_0xcae7a7,_0x5e2553,_0xef26ef){const _0x2097ce=_0x144fb0;_0x5e2553===_0x1e0c7c[_0x2097ce(0x34a)][_0x2097ce(0x3cd)]||_0xef26ef==null||this[_0x2097ce(0x123)][_0x2097ce(0x271)](_0xcae7a7,_0xef26ef);}async[_0x144fb0(0x3de)](_0x10922d){const _0x44f51e=_0x144fb0;try{const _0x1d8684=this['_replaceFileID'](this[_0x44f51e(0x4ac)](),''+_0x10922d),_0x4c8e26=(await this['_httpService'][_0x44f51e(0x3b8)](_0x1d8684))[_0x44f51e(0x141)];if(_0x4c8e26[_0x44f51e(0x37d)]&&_0x4c8e26[_0x44f51e(0x37d)][_0x44f51e(0x2a1)]===_0xe677c3['OK']){const _0x2029be=new URL(_0x4c8e26['url'],this[_0x44f51e(0x322)]())[_0x44f51e(0xf3)]();return Promise[_0x44f51e(0x308)](_0x2029be);}return Promise[_0x44f51e(0x18f)](_0x4c8e26[_0x44f51e(0x37d)]);}catch(_0xdbdcd8){return Promise[_0x44f51e(0x18f)](_0xdbdcd8);}}async[_0x144fb0(0x132)](_0x1f5499){const _0x54e1e5=_0x144fb0;let _0x7a3bea='';if(!_0x1716d5[_0x54e1e5(0xdb)](_0x1f5499['type']))return this[_0x54e1e5(0x274)](),Promise[_0x54e1e5(0x18f)](new Error(_0x1e0c7c[_0x54e1e5(0x1e5)][_0x54e1e5(0x43d)]));if(_0x1f5499[_0x54e1e5(0x332)]>_0x10e387)return this[_0x54e1e5(0x274)](),Promise[_0x54e1e5(0x18f)](new Error(_0x1e0c7c['ImageUploadStatusType'][_0x54e1e5(0x8d)]));try{const _0x13edfb=new FormData();_0x13edfb[_0x54e1e5(0xab)](_0x54e1e5(0x2d4),_0x1f5499);const _0x3d461f=this[_0x54e1e5(0xc8)][_0x54e1e5(0x138)](),_0x1f0a00=_0x3d461f==null?void 0x0:_0x3d461f[_0x54e1e5(0x1fd)]();if(!_0x1f0a00)throw new Error(_0x54e1e5(0x11d));const _0x2240b2=this[_0x54e1e5(0x226)]()+_0x54e1e5(0x255)+_0x1f5499['size'][_0x54e1e5(0xf3)]()+_0x54e1e5(0x3ad)+_0x1b99f2['UnitEmbedded']+'&assign='+encodeURIComponent(_0x1f0a00),_0x35d298=await(await fetch(_0x2240b2,{'method':_0x54e1e5(0x32e),'body':_0x13edfb}))[_0x54e1e5(0x419)]();if(typeof _0x35d298[_0x54e1e5(0x23d)]!='string')return this[_0x54e1e5(0x274)](),Promise['reject'](new Error(_0x1e0c7c[_0x54e1e5(0x1e5)][_0x54e1e5(0x32b)]));_0x7a3bea=_0x35d298[_0x54e1e5(0x23d)];}catch{return this['_decreaseWaiting'](),Promise[_0x54e1e5(0x18f)](new Error(_0x1e0c7c[_0x54e1e5(0x1e5)][_0x54e1e5(0x32b)]));}return new Promise((_0x14ae7e,_0x32ca12)=>{const _0xc4a5cf=_0x54e1e5,_0x33c06c=new FileReader();_0x33c06c[_0xc4a5cf(0xee)](_0x1f5499),_0x33c06c[_0xc4a5cf(0x215)]=_0x29974f=>{const _0x134b74=_0xc4a5cf;var _0x4fb0ca;const _0x660394=(_0x4fb0ca=_0x29974f[_0x134b74(0x22f)])==null?void 0x0:_0x4fb0ca[_0x134b74(0x400)];if(_0x660394==null){this['_decreaseWaiting'](),_0x32ca12(new Error(_0x1e0c7c[_0x134b74(0x1e5)][_0x134b74(0x32b)]));return;}const _0x32b1e0=_0x20df93[_0x134b74(0x1c4)]['generateRandomId'](0x6);_0x14ae7e({'imageId':_0x32b1e0,'imageSourceType':_0x1e0c7c[_0x134b74(0x34a)][_0x134b74(0x2e3)],'source':_0x7a3bea,'base64Cache':_0x660394,'status':_0x1e0c7c['ImageUploadStatusType'][_0x134b74(0x1a6)]}),this['_decreaseWaiting']();};});}[_0x144fb0(0x226)](){const _0x33289d=_0x144fb0;var _0xd2e3fe,_0x516071;const _0x3a371d=this[_0x33289d(0x283)]['getConfig'](_0xc05462),_0xa0dd75=this[_0x33289d(0x283)][_0x33289d(0x27c)](_0x53057b);return(_0x516071=(_0xd2e3fe=_0xa0dd75==null?void 0x0:_0xa0dd75[_0x33289d(0x42c)])!=null?_0xd2e3fe:_0x3a371d)!=null?_0x516071:_0xb984cf;}['_getSignURL'](){const _0x59d22f=_0x144fb0;var _0x3c4709,_0x3abb08;const _0x19727d=this[_0x59d22f(0x283)][_0x59d22f(0x27c)](_0x1c4578),_0x1ffeca=this[_0x59d22f(0x283)][_0x59d22f(0x27c)](_0x53057b);return(_0x3abb08=(_0x3c4709=_0x1ffeca==null?void 0x0:_0x1ffeca[_0x59d22f(0x3b2)])!=null?_0x3c4709:_0x19727d)!=null?_0x3abb08:_0xb9f95c;}[_0x144fb0(0x322)](){const _0x34170b=_0x144fb0;var _0x3f77b3;const _0x136293=this[_0x34170b(0x283)]['getConfig'](_0x53057b);return(_0x3f77b3=_0x136293==null?void 0x0:_0x136293[_0x34170b(0x2bf)])!=null?_0x3f77b3:location[_0x34170b(0x49d)];}[_0x144fb0(0x2e9)](_0x56ddf5,_0x4bdc53){const _0x5cd504=_0x144fb0;return _0x56ddf5[_0x5cd504(0x1ca)]('{fileID}',_0x4bdc53);}['_decreaseWaiting'](){const _0xeb3d67=_0x144fb0;this[_0xeb3d67(0x2e5)]-=0x1,this[_0xeb3d67(0x15d)][_0xeb3d67(0x25d)](this[_0xeb3d67(0x2e5)]);}},_0x4c8f94[_0x144fb0(0xa6)]=_0x42aa89([_0x41e24(0x0,_0x20df93['Inject'](_0x581b3b[_0x144fb0(0x1d2)])),_0x41e24(0x1,_0x20df93[_0x144fb0(0x247)]),_0x41e24(0x2,_0x20df93[_0x144fb0(0xdd)](_0x20df93['IUniverInstanceService']))],_0x4c8f94[_0x144fb0(0xa6)]);var _0x228763=Object[_0x144fb0(0x395)],_0x45d606=Object[_0x144fb0(0x457)],_0x87968c=(_0x1dcf2e,_0x606c14,_0x295a80,_0x34dc2a)=>{const _0x59fa02=_0x144fb0;for(var _0x110865=_0x34dc2a>0x1?void 0x0:_0x34dc2a?_0x45d606(_0x606c14,_0x295a80):_0x606c14,_0x49c970=_0x1dcf2e[_0x59fa02(0x118)]-0x1,_0x43f7b9;_0x49c970>=0x0;_0x49c970--)(_0x43f7b9=_0x1dcf2e[_0x49c970])&&(_0x110865=(_0x34dc2a?_0x43f7b9(_0x606c14,_0x295a80,_0x110865):_0x43f7b9(_0x110865))||_0x110865);return _0x34dc2a&&_0x110865&&_0x228763(_0x606c14,_0x295a80,_0x110865),_0x110865;},_0xf205a2=(_0x12af0d,_0x20f2a3)=>(_0x29aef1,_0x24f880)=>_0x20f2a3(_0x29aef1,_0x24f880,_0x12af0d);let _0x55aa0a=class extends _0x20df93[_0x144fb0(0x330)]{constructor(_0x217912,_0x2bf750,_0x175d09,_0x3a8f74,_0x402d73){const _0x7ddccb=_0x144fb0;super(),this[_0x7ddccb(0x2fc)]=_0x217912,this[_0x7ddccb(0xc8)]=_0x2bf750,this['_permissionService']=_0x175d09,this['_collaborationSessionService']=_0x3a8f74,this[_0x7ddccb(0x208)]=_0x402d73,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0x144fb0(0x105)](){const _0x43083a=_0x144fb0,_0x1f4f25=async _0x227719=>{const _0x5ad353=_0x205f;(await this[_0x5ad353(0x172)][_0x5ad353(0x24e)](_0x227719))[_0x5ad353(0x435)][_0x5ad353(0x34d)](_0x3e7ea3['filter'](_0x581574=>_0x581574['eventID']===_0x55cc56[_0x5ad353(0xf4)][_0x5ad353(0x30c)]),_0x3e7ea3['takeUntil'](this[_0x5ad353(0x288)]))[_0x5ad353(0xda)](_0x16ec44=>{const _0xa8e7e2=_0x5ad353,_0x33d4cb=_0x16ec44,{reason:_0x4266d6}=_0x33d4cb['data'];this[_0xa8e7e2(0x2fc)][_0xa8e7e2(0x3b8)](_0x40b1aa[_0xa8e7e2(0x3fe)])[_0xa8e7e2(0x429)]({'type':_0x3206ad[_0xa8e7e2(0x43e)][_0xa8e7e2(0x290)],'content':this[_0xa8e7e2(0x208)]['t'](_0xa8e7e2(0x467))+'('+_0x4266d6+')'}),this[_0xa8e7e2(0x471)][_0xa8e7e2(0x2ad)](new _0x5dce24[(_0xa8e7e2(0x1e0))](_0x227719)['id'],!0x1),this[_0xa8e7e2(0x172)][_0xa8e7e2(0x328)](_0x227719);});};_0x284d0[_0x43083a(0x8c)](this[_0x43083a(0xc8)]['getTypeOfUnitAdded$'](_0x20df93[_0x43083a(0x441)][_0x43083a(0x4bf)]),this['_univerInstanceService'][_0x43083a(0x362)](_0x20df93[_0x43083a(0x441)][_0x43083a(0x126)]))[_0x43083a(0x34d)](_0x3e7ea3[_0x43083a(0x296)](_0x4d6863=>_0x4d6863[_0x43083a(0x1fd)]()),_0x3e7ea3[_0x43083a(0x4a2)](_0x33627f=>!_0x20df93[_0x43083a(0x232)](_0x33627f)),_0x3e7ea3[_0x43083a(0xa0)](this[_0x43083a(0x288)]))[_0x43083a(0xda)](_0x56fa2c=>{_0x1f4f25(_0x56fa2c);});}[_0x144fb0(0x3bc)](){const _0x495002=_0x144fb0,_0x1d774a=async _0x22836f=>{const _0x4085de=_0x205f;(await this[_0x4085de(0x172)]['requireSession'](_0x22836f))[_0x4085de(0x435)][_0x4085de(0x34d)](_0x3e7ea3[_0x4085de(0x4a2)](_0xfe690e=>_0xfe690e[_0x4085de(0x109)]===_0x55cc56['CollaborationEvent'][_0x4085de(0x3c7)]),_0x3e7ea3[_0x4085de(0xa0)](this['dispose$']))[_0x4085de(0xda)](_0x54ad15=>{const _0x788d88=_0x4085de,_0x5d676c=_0x54ad15,{objectId:_0x1ea4bb}=_0x5d676c[_0x788d88(0x24b)],_0x31e916=this[_0x788d88(0x2fc)][_0x788d88(0x3b8)](_0xf53409[_0x788d88(0x21a)]);_0x1ea4bb===_0x22836f?_0x31e916[_0x788d88(0x307)](_0x22836f):_0x31e916['refreshPermission'](_0x22836f,_0x1ea4bb);});};_0x284d0[_0x495002(0x8c)](this[_0x495002(0xc8)][_0x495002(0x362)](_0x20df93[_0x495002(0x441)][_0x495002(0x4bf)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x20df93['UniverInstanceType'][_0x495002(0x126)]))[_0x495002(0x34d)](_0x3e7ea3[_0x495002(0x296)](_0x4eeb14=>_0x4eeb14[_0x495002(0x1fd)]()),_0x3e7ea3[_0x495002(0x4a2)](_0x5d8f73=>!_0x20df93['isInternalEditorID'](_0x5d8f73)),_0x3e7ea3[_0x495002(0xa0)](this[_0x495002(0x288)]))[_0x495002(0xda)](_0x390992=>{_0x1d774a(_0x390992);});}};_0x55aa0a=_0x87968c([_0xf205a2(0x0,_0x20df93['Inject'](_0x20df93[_0x144fb0(0x394)])),_0xf205a2(0x1,_0x20df93[_0x144fb0(0x292)]),_0xf205a2(0x2,_0x20df93['IPermissionService']),_0xf205a2(0x3,_0x20df93[_0x144fb0(0xdd)](_0x4c8f94[_0x144fb0(0x491)])),_0xf205a2(0x4,_0x20df93[_0x144fb0(0xdd)](_0x20df93[_0x144fb0(0x142)]))],_0x55aa0a);var _0x1bd018=Object[_0x144fb0(0x395)],_0x2126a9=Object['getOwnPropertyDescriptor'],_0x3a7afd=(_0x2adccb,_0x3e9f45,_0x1a9f20,_0xc00ca0)=>{const _0x7ce8fc=_0x144fb0;for(var _0x464c4d=_0xc00ca0>0x1?void 0x0:_0xc00ca0?_0x2126a9(_0x3e9f45,_0x1a9f20):_0x3e9f45,_0x514e8b=_0x2adccb[_0x7ce8fc(0x118)]-0x1,_0x11f70d;_0x514e8b>=0x0;_0x514e8b--)(_0x11f70d=_0x2adccb[_0x514e8b])&&(_0x464c4d=(_0xc00ca0?_0x11f70d(_0x3e9f45,_0x1a9f20,_0x464c4d):_0x11f70d(_0x464c4d))||_0x464c4d);return _0xc00ca0&&_0x464c4d&&_0x1bd018(_0x3e9f45,_0x1a9f20,_0x464c4d),_0x464c4d;},_0x5bc719=(_0x4d9acc,_0x4eb48c)=>(_0x220477,_0x3d20eb)=>_0x4eb48c(_0x220477,_0x3d20eb,_0x4d9acc);_0x4c8f94['SnapshotServerOverHTTPService']=class{constructor(_0x3ef5ac,_0x3e8f33){const _0x1c0850=_0x144fb0;this[_0x1c0850(0x283)]=_0x3ef5ac,this[_0x1c0850(0x136)]=_0x3e8f33;}async[_0x144fb0(0x1d4)](_0x3a7380,_0x30e7b3){const _0x319b13=_0x144fb0;var _0x2aeae3;const {unitID:_0xf27c49,type:_0x386234,revision:_0x3bb868=0x0}=_0x30e7b3,_0x2281cc=this[_0x319b13(0x4cc)]()+'/'+_0x386234+_0x319b13(0xdc)+_0xf27c49+_0x319b13(0x37c)+_0x3bb868,_0xf0db0a=(await this[_0x319b13(0x136)][_0x319b13(0x3b8)](_0x2281cc))[_0x319b13(0x141)],_0x1e23fb=(_0x2aeae3=_0xf0db0a['snapshot'])==null?void 0x0:_0x2aeae3[_0x319b13(0x2a3)];if(_0x1e23fb){const _0x141121=_0x1e23fb==null?void 0x0:_0x1e23fb[_0x319b13(0x4a4)],_0x54aad0=_0x55cc56[_0x319b13(0x12a)][_0x319b13(0xe0)](_0x55cc56[_0x319b13(0x2aa)](_0x141121));_0x1e23fb[_0x319b13(0x4a4)]=_0x54aad0,Object[_0x319b13(0x27b)](_0x1e23fb[_0x319b13(0x2e7)])[_0x319b13(0x478)](([,_0x90d0aa])=>{const _0x3abfe4=_0x319b13,_0x520e31=_0x90d0aa['originalMeta'],_0x1a930a=_0x55cc56[_0x3abfe4(0x12a)]['encode'](_0x55cc56[_0x3abfe4(0x2aa)](_0x520e31));_0x90d0aa[_0x3abfe4(0x4a4)]=_0x1a930a;});}return _0xf0db0a;}async[_0x144fb0(0x13f)](_0x4f597b,_0x4d4c6f){const _0x271e44=_0x144fb0,{unitID:_0xeffba9,type:_0x510739,blockID:_0x165a91}=_0x4d4c6f,_0x4bfb6e=this[_0x271e44(0x18a)]()+'/'+_0x510739+_0x271e44(0xdc)+_0xeffba9+'/block/'+_0x165a91;return(await this['_httpService'][_0x271e44(0x3b8)](_0x4bfb6e))[_0x271e44(0x141)];}async[_0x144fb0(0x473)](_0xaa1599,_0x440ad2){const _0x4b47ea=_0x144fb0,{unitID:_0x34bfa4,type:_0xbd8be3,blockID:_0x164a90}=_0x440ad2,_0x3fdd0b=this['_getAPIPrefix']()+'/block/'+_0xbd8be3+_0x4b47ea(0xdc)+_0x34bfa4+_0x4b47ea(0x348)+_0x164a90;return(await this[_0x4b47ea(0x136)]['get'](_0x3fdd0b))[_0x4b47ea(0x141)];}async[_0x144fb0(0x319)](_0x59b7aa,_0x2f4d80){const _0x29e603=_0x144fb0,{unitID:_0x3a804b,type:_0x5cd2e2,from:_0x26ddc0,to:_0x302102}=_0x2f4d80,_0x28f96a=this['_getAPIPrefix']()+'/'+_0x5cd2e2+_0x29e603(0xdc)+_0x3a804b+'/fetchmissing?from='+_0x26ddc0+_0x29e603(0x9e)+_0x302102;return(await this[_0x29e603(0x136)][_0x29e603(0x3b8)](_0x28f96a))[_0x29e603(0x141)];}[_0x144fb0(0x4cc)](){const _0x5d325c=_0x144fb0;var _0x2f2397;return(_0x2f2397=this[_0x5d325c(0x283)][_0x5d325c(0x27c)](_0xa047ec))!=null?_0x2f2397:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x12462a=_0x144fb0;var _0x2e7eb2,_0x15ec5c;const _0x42f22b=this[_0x12462a(0x283)][_0x12462a(0x27c)](_0x241bd8),_0x11f91d=this['_configService']['getConfig'](_0x53057b);return(_0x15ec5c=(_0x2e7eb2=_0x11f91d==null?void 0x0:_0x11f91d[_0x12462a(0x317)])!=null?_0x2e7eb2:_0x42f22b)!=null?_0x15ec5c:_0x534440;}async[_0x144fb0(0x47b)](_0x289c75,_0x595f94){const _0x135966=_0x144fb0,_0x3ae35b=_0x135966(0x3f1)+_0x595f94[_0x135966(0x2e4)]+_0x135966(0xdc)+_0x595f94[_0x135966(0x239)]+_0x135966(0x16c);return(await this[_0x135966(0x136)][_0x135966(0x3b8)](_0x3ae35b,{'params':{'resourceId':JSON['stringify'](_0x595f94[_0x135966(0xc4)])}}))[_0x135966(0x141)];}[_0x144fb0(0x31a)](){const _0x3ba35e=_0x144fb0;throw new Error(_0x3ba35e(0x287));}[_0x144fb0(0x2ca)](){const _0x58b893=_0x144fb0;throw new Error(_0x58b893(0x287));}[_0x144fb0(0x2c2)](){const _0x139d14=_0x144fb0;throw new Error(_0x139d14(0x287));}['copyFileMeta'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},_0x4c8f94[_0x144fb0(0x18c)]=_0x3a7afd([_0x5bc719(0x0,_0x20df93[_0x144fb0(0x247)]),_0x5bc719(0x1,_0x20df93[_0x144fb0(0xdd)](_0x581b3b[_0x144fb0(0x1d2)]))],_0x4c8f94[_0x144fb0(0x18c)]);var _0x88636f=Object['defineProperty'],_0x4b560=Object['getOwnPropertyDescriptor'],_0x296bb7=(_0x341d48,_0x4438a5,_0x67d0cc,_0xd6b680)=>{const _0x32a916=_0x144fb0;for(var _0x3452e7=_0xd6b680>0x1?void 0x0:_0xd6b680?_0x4b560(_0x4438a5,_0x67d0cc):_0x4438a5,_0x3259fc=_0x341d48[_0x32a916(0x118)]-0x1,_0x429e3c;_0x3259fc>=0x0;_0x3259fc--)(_0x429e3c=_0x341d48[_0x3259fc])&&(_0x3452e7=(_0xd6b680?_0x429e3c(_0x4438a5,_0x67d0cc,_0x3452e7):_0x429e3c(_0x3452e7))||_0x3452e7);return _0xd6b680&&_0x3452e7&&_0x88636f(_0x4438a5,_0x67d0cc,_0x3452e7),_0x3452e7;},_0x16bd9b=(_0x251060,_0x2bfa19)=>(_0x80c268,_0x3dd044)=>_0x2bfa19(_0x80c268,_0x3dd044,_0x251060);let _0x2dc26f=class extends _0x20df93[_0x144fb0(0x458)]{constructor(_0x2eb6c4,_0x21a1bb,_0x2870be,_0x5a7eb2,_0x274548){const _0x197923=_0x144fb0;super(_0x2eb6c4,_0x21a1bb,_0x2870be),this[_0x197923(0x3dd)]=_0x5a7eb2,this[_0x197923(0x414)]=_0x274548;}[_0x144fb0(0x2bd)](_0x469ecb,_0x279b2b){const _0x5d966b=_0x144fb0,_0x273b0e=this['_getUndoStack'](_0x469ecb);if(_0x273b0e)try{const _0x56b123=this[_0x5d966b(0x4a6)](_0x273b0e,_0x279b2b);this[_0x5d966b(0x9f)](_0x469ecb,_0x56b123);}catch(_0x4bde80){this[_0x5d966b(0x414)]['error']('[CollaborationUndoRedoService]',_0x4bde80),this[_0x5d966b(0x3eb)](_0x469ecb);}const _0x1f3256=this[_0x5d966b(0x1c1)](_0x469ecb);if(_0x1f3256)try{const _0x2f09ac=this['_transformStack'](_0x1f3256,_0x279b2b);this['_substituteRedoStack'](_0x469ecb,_0x2f09ac);}catch(_0x5498a3){this['_logService'][_0x5d966b(0x37d)](_0x5498a3),this['_clearRedo'](_0x469ecb);}}[_0x144fb0(0x3eb)](_0x35ee75){const _0x42a041=_0x144fb0,_0x28670e=this[_0x42a041(0x4bd)](_0x35ee75);_0x28670e&&(_0x28670e[_0x42a041(0x118)]=0x0,this[_0x42a041(0x3ea)]());}[_0x144fb0(0x305)](_0x26cacb){const _0x48c403=_0x144fb0,_0x406d8e=this['_getRedoStack'](_0x26cacb);_0x406d8e&&(_0x406d8e['length']=0x0,this[_0x48c403(0x3ea)]());}[_0x144fb0(0x9f)](_0x3daf28,_0x3060fd){const _0x2ab639=_0x144fb0;this[_0x2ab639(0x2a2)][_0x2ab639(0x271)](_0x3daf28,_0x3060fd),this[_0x2ab639(0x3ea)]();}['_substituteRedoStack'](_0x3c46e8,_0x5a5b4f){const _0x6625e0=_0x144fb0;this[_0x6625e0(0x3f8)][_0x6625e0(0x271)](_0x3c46e8,_0x5a5b4f),this['_updateStatus']();}[_0x144fb0(0x4a6)](_0x4440a1,_0x1ce351){const _0xbf4c6c=_0x144fb0,_0x35cb53=[];let _0x2fdcc1=_0x1ce351,_0x1f0c19=_0x1ce351;for(let _0x3903cf=_0x4440a1['length']-0x1;_0x3903cf>=0x0;_0x3903cf--){const {unitID:_0x4c7ce5,undoMutations:_0x308717,redoMutations:_0x5462cd}=_0x4440a1[_0x3903cf],_0x50a949=this[_0xbf4c6c(0x3dd)][_0xbf4c6c(0x40d)](_0x2fdcc1,_0x308717),_0x411642=this[_0xbf4c6c(0x3dd)][_0xbf4c6c(0x40d)](_0x1f0c19,_0x5462cd);if(_0x55cc56[_0xbf4c6c(0x2c6)](_0x50a949)||_0x55cc56['isTransformMutationsWithChangesetFailure'](_0x411642)){this[_0xbf4c6c(0x414)][_0xbf4c6c(0x37d)]('[CollaborationUndoRedoService]',_0xbf4c6c(0x39f),_0x50a949,_0x411642);break;}_0x2fdcc1=_0x50a949[_0xbf4c6c(0x4b5)],_0x1f0c19=_0x411642['c1Prime'],_0x35cb53[_0xbf4c6c(0x20e)]({'unitID':_0x4c7ce5,'undoMutations':_0x50a949[_0xbf4c6c(0x171)],'redoMutations':_0x411642[_0xbf4c6c(0x171)]});}return _0x35cb53[_0xbf4c6c(0x47e)]();}};_0x2dc26f=_0x296bb7([_0x16bd9b(0x0,_0x20df93[_0x144fb0(0x292)]),_0x16bd9b(0x1,_0x20df93[_0x144fb0(0x338)]),_0x16bd9b(0x2,_0x20df93[_0x144fb0(0x3e1)]),_0x16bd9b(0x3,_0x55cc56['ITransformService']),_0x16bd9b(0x4,_0x20df93['ILogService'])],_0x2dc26f);class _0x3b6a43 extends _0x20df93[_0x144fb0(0x330)]{constructor(){const _0x2b1eae=_0x144fb0;super(),_0x3e782f(this,'urlChange$'),this[_0x2b1eae(0x2b5)]=_0x284d0[_0x2b1eae(0x341)](window,'popstate')[_0x2b1eae(0x34d)](_0x284d0[_0x2b1eae(0xa0)](this[_0x2b1eae(0x288)]),_0x284d0[_0x2b1eae(0x447)](0x1),_0x284d0[_0x2b1eae(0x48b)](void 0x0));}[_0x144fb0(0x475)](_0x1204b2,_0x48ce2e,_0x45659b=!0x1){const _0x323768=_0x144fb0,_0x18ac61=new URL(window['location'][_0x323768(0x264)]);_0x18ac61[_0x323768(0x222)][_0x323768(0x271)](_0x1204b2,_0x48ce2e),_0x45659b?window[_0x323768(0x3df)][_0x323768(0x94)]('','',_0x18ac61[_0x323768(0xf3)]()):window[_0x323768(0x3df)]['pushState']('','',_0x18ac61[_0x323768(0xf3)]());}[_0x144fb0(0x39a)](_0x25633d,_0x4c1afd=!0x1){const _0x262621=_0x144fb0,_0x4e2b10=new URL(window[_0x262621(0x33a)][_0x262621(0x264)]);_0x4e2b10[_0x262621(0x222)][_0x262621(0x32d)](_0x25633d),_0x4c1afd?window[_0x262621(0x3df)][_0x262621(0x94)]('','',_0x4e2b10['toString']()):window['history']['pushState']('','',_0x4e2b10[_0x262621(0xf3)]());}[_0x144fb0(0xa4)](_0x192707){const _0x48c1f5=_0x144fb0;var _0xff231b;return(_0xff231b=new URL(window[_0x48c1f5(0x33a)][_0x48c1f5(0x264)])[_0x48c1f5(0x222)][_0x48c1f5(0x3b8)](_0x192707))!=null?_0xff231b:void 0x0;}}var _0x300a5f=Object[_0x144fb0(0x395)],_0x35ad9d=Object['getOwnPropertyDescriptor'],_0x29a0a1=(_0xfffcea,_0x363bfe,_0x10d1c4)=>_0x363bfe in _0xfffcea?_0x300a5f(_0xfffcea,_0x363bfe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10d1c4}):_0xfffcea[_0x363bfe]=_0x10d1c4,_0x15cc85=(_0xd6f816,_0x153f65,_0x152004,_0x2d8899)=>{for(var _0x36d9aa=_0x2d8899>0x1?void 0x0:_0x2d8899?_0x35ad9d(_0x153f65,_0x152004):_0x153f65,_0x5953cf=_0xd6f816['length']-0x1,_0x3f1dbe;_0x5953cf>=0x0;_0x5953cf--)(_0x3f1dbe=_0xd6f816[_0x5953cf])&&(_0x36d9aa=(_0x2d8899?_0x3f1dbe(_0x153f65,_0x152004,_0x36d9aa):_0x3f1dbe(_0x36d9aa))||_0x36d9aa);return _0x2d8899&&_0x36d9aa&&_0x300a5f(_0x153f65,_0x152004,_0x36d9aa),_0x36d9aa;},_0x4ce01d=(_0x29e613,_0x24e2f7)=>(_0x24a3ca,_0x173df2)=>_0x24e2f7(_0x24a3ca,_0x173df2,_0x29e613),_0x48b619=(_0x3f7dba,_0xefe5be,_0x318fa2)=>_0x29a0a1(_0x3f7dba,_0xefe5be+'',_0x318fa2);const _0xbcfb1a='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x4c8f94[_0x144fb0(0x43f)]=class extends _0x20df93[_0x144fb0(0x48f)]{constructor(_0x479590=_0x391b0e,_0x4c51b8,_0x1c32a2,_0x3f9f96,_0x35f07c){const _0x4b8da3=_0x144fb0;super(),this[_0x4b8da3(0x417)]=_0x479590,this['_logService']=_0x4c51b8,this[_0x4b8da3(0x2f9)]=_0x1c32a2,this[_0x4b8da3(0x2fc)]=_0x3f9f96,this[_0x4b8da3(0x283)]=_0x35f07c;const {..._0x3012f8}=this[_0x4b8da3(0x417)];this[_0x4b8da3(0x283)]['setConfig'](_0x53057b,_0x3012f8);}[_0x144fb0(0x22b)](){const _0x5585f4=_0x144fb0;this['_registerDependencies'](),_0x20df93['touchDependencies'](this[_0x5585f4(0x2fc)],[[_0x297695],[_0x4c8f94[_0x5585f4(0x26a)]],[_0x55aa0a]]);}[_0x144fb0(0x12f)](){const _0x54fd81=_0x144fb0;_0x20df93[_0x54fd81(0x430)](this['_injector'],[[_0x43a9b6]]);}['onRendered'](){const _0x35ab15=_0x144fb0;this[_0x35ab15(0x4b4)]();}[_0x144fb0(0x1d1)](){const _0x1d1141=_0x144fb0;var _0x9f257,_0x5ed578,_0x260d2b,_0x5dc5c5;this[_0x1d1141(0x2fc)][_0x1d1141(0x26d)](_0x20df93[_0x1d1141(0x2d0)])&&this['_logService']['error'](_0x1d1141(0x162),_0x1d1141(0x28c));let _0x11d1e2=[[_0x20df93[_0x1d1141(0x2d0)],{'useClass':_0x2dc26f}],[_0x4c8f94[_0x1d1141(0x491)]],[_0x402c47],[_0x581b3b[_0x1d1141(0x1d2)]],[_0x22cd46,{'useClass':_0x3b6a43}],[_0x513006],[_0x4c8f94[_0x1d1141(0x309)]],[_0x581b3b['WebSocketService']],[_0x44b9f8],[_0x5d5342],[_0x57c1cf],[_0x1ab040],[_0x41e9e1],[_0x223987],[_0x2d13b9],[_0x55aa0a],[_0x194337,{'useClass':(_0x5ed578=(_0x9f257=this[_0x1d1141(0x417)])==null?void 0x0:_0x9f257[_0x1d1141(0x2dc)])!=null?_0x5ed578:_0x4c8f94[_0x1d1141(0xec)]}],[_0x581b3b['IHTTPImplementation'],{'useClass':_0x581b3b[_0x1d1141(0x2ea)]}],[_0x55cc56[_0x1d1141(0x449)],{'useClass':_0x4c8f94[_0x1d1141(0x18c)]}],[_0x20df93[_0x1d1141(0xc5)],{'useClass':_0x4c8f94['AuthzIoHttpService']}],[_0x1e0c7c[_0x1d1141(0x2e6)],{'useClass':_0x4c8f94[_0x1d1141(0xa6)]}],[_0x4c8f94[_0x1d1141(0x10e)]],[_0x4c8f94[_0x1d1141(0x26a)]],[_0x4c8f94[_0x1d1141(0x10a)]],[_0x43a9b6],[_0x297695]];(_0x260d2b=this[_0x1d1141(0x417)])!=null&&_0x260d2b[_0x1d1141(0x4b9)]&&_0x11d1e2[_0x1d1141(0x20e)]([_0x3977df,{'useClass':_0x4e8c93}]),_0x11d1e2=_0x20df93[_0x1d1141(0x3bb)](_0x11d1e2,(_0x5dc5c5=this[_0x1d1141(0x417)])==null?void 0x0:_0x5dc5c5['override']),_0x11d1e2[_0x1d1141(0x478)](_0x4e2f9e=>this[_0x1d1141(0x2fc)][_0x1d1141(0x4bc)](_0x4e2f9e)),this[_0x1d1141(0x21b)]();}[_0x144fb0(0x4b4)](){const _0x14b5ee=_0x144fb0;this['disposeWithMe'](this['_renderManagerService'][_0x14b5ee(0x175)](_0x20df93[_0x14b5ee(0x441)]['UNIVER_DOC'],[_0x10cc5e])),this['disposeWithMe'](this['_renderManagerService'][_0x14b5ee(0x175)](_0x20df93[_0x14b5ee(0x441)][_0x14b5ee(0x4bf)],[_0x2b682d]));}[_0x144fb0(0x21b)](){const _0x3b88c8=_0x144fb0;var _0x5a253e,_0x27df84;this[_0x3b88c8(0x2fc)][_0x3b88c8(0x3b8)](_0x581b3b['HTTPService'])['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x581b3b[_0x3b88c8(0x23c)]({'maxParallel':0x6})}),this['_injector'][_0x3b88c8(0x3b8)](_0x223987),(_0x5a253e=this[_0x3b88c8(0x417)])!=null&&_0x5a253e['enableOfflineEditing']||this[_0x3b88c8(0x2fc)]['get'](_0x4c8f94[_0x3b88c8(0x309)])['disableLocalCache'](),(_0x27df84=this[_0x3b88c8(0x417)])!=null&&_0x27df84[_0x3b88c8(0xce)]&&this[_0x3b88c8(0x2fc)][_0x3b88c8(0x3b8)](_0x41e9e1),this[_0x3b88c8(0x2fc)][_0x3b88c8(0x3b8)](_0x4c8f94[_0x3b88c8(0x10e)]),this['_injector'][_0x3b88c8(0x26d)](_0x4c8f94[_0x3b88c8(0x10a)])&&this[_0x3b88c8(0x2fc)][_0x3b88c8(0x3b8)](_0x4c8f94[_0x3b88c8(0x10a)]);}},_0x48b619(_0x4c8f94[_0x144fb0(0x43f)],_0x144fb0(0x35f),_0xbcfb1a),_0x4c8f94[_0x144fb0(0x43f)]=_0x15cc85([_0x20df93[_0x144fb0(0x221)](_0x55cc56['UniverCollaborationPlugin']),_0x4ce01d(0x1,_0x20df93[_0x144fb0(0x1a2)]),_0x4ce01d(0x2,_0x1ff35a[_0x144fb0(0x310)]),_0x4ce01d(0x3,_0x20df93['Inject'](_0x20df93[_0x144fb0(0x394)])),_0x4ce01d(0x4,_0x20df93[_0x144fb0(0x247)])],_0x4c8f94[_0x144fb0(0x43f)]),_0x4c8f94[_0x144fb0(0x25a)]=_0x3a861f,_0x4c8f94[_0x144fb0(0xcf)]=_0x546840,_0x4c8f94[_0x144fb0(0x3c6)]=_0x3c9b9d,_0x4c8f94[_0x144fb0(0x4bb)]=_0x5d3e7e,_0x4c8f94[_0x144fb0(0x1e4)]=_0x2b690e,_0x4c8f94['CommentService']=_0x2d13b9,_0x4c8f94[_0x144fb0(0xd8)]=_0x4ffc98,_0x4c8f94[_0x144fb0(0x358)]=_0x16ecf3,_0x4c8f94[_0x144fb0(0x363)]=_0x194337,_0x4c8f94[_0x144fb0(0x2ef)]=_0x22cd46,_0x4c8f94[_0x144fb0(0x39c)]=_0x1a11f9,_0x4c8f94[_0x144fb0(0x211)]=_0x57c1a6,_0x4c8f94[_0x144fb0(0x345)]=_0x30e871,_0x4c8f94[_0x144fb0(0x2d2)]=_0x456d0e,_0x4c8f94[_0x144fb0(0x367)]=_0x241bd8,_0x4c8f94[_0x144fb0(0xc9)]=_0xa047ec,_0x4c8f94['SessionStatus']=_0x4d48e1,_0x4c8f94[_0x144fb0(0x1d5)]=_0x128851,_0x4c8f94[_0x144fb0(0x2cf)]=_0x3b6a43,_0x4c8f94[_0x144fb0(0x294)]=_0x441743,_0x4c8f94['serializeCombRequest']=_0x2d1c74,Object[_0x144fb0(0x395)](_0x4c8f94,Symbol['toStringTag'],{'value':_0x144fb0(0x340)});}));
1
+ function _0x4048(_0x4f6efb,_0x1511eb){const _0x1d6e7e=_0x1d6e();return _0x4048=function(_0x404800,_0x3fb5c0){_0x404800=_0x404800-0x13e;let _0x4dc134=_0x1d6e7e[_0x404800];return _0x4dc134;},_0x4048(_0x4f6efb,_0x1511eb);}(function(_0x2bb60f,_0x138631){const _0x8c794a=_0x4048,_0x140614=_0x2bb60f();while(!![]){try{const _0x3733d5=parseInt(_0x8c794a(0x36a))/0x1+-parseInt(_0x8c794a(0x41e))/0x2+-parseInt(_0x8c794a(0x3e1))/0x3*(parseInt(_0x8c794a(0x34a))/0x4)+-parseInt(_0x8c794a(0x459))/0x5*(-parseInt(_0x8c794a(0x238))/0x6)+parseInt(_0x8c794a(0x20c))/0x7+-parseInt(_0x8c794a(0x32c))/0x8+parseInt(_0x8c794a(0x336))/0x9;if(_0x3733d5===_0x138631)break;else _0x140614['push'](_0x140614['shift']());}catch(_0x2f7811){_0x140614['push'](_0x140614['shift']());}}}(_0x1d6e,0x51028),function(_0x3971f2,_0xa4463c){const _0x72df76=_0x4048;typeof exports==_0x72df76(0x1c3)&&typeof module<'u'?_0xa4463c(exports,require(_0x72df76(0x265)),require('rxjs'),require('rxjs/operators'),require('@univerjs/design'),require(_0x72df76(0x532)),require('@univerjs/network'),require('@univerjs-pro/collaboration'),require(_0x72df76(0x169)),require('@univerjs/docs'),require(_0x72df76(0x162)),require(_0x72df76(0x262)),require(_0x72df76(0x2b8)),require(_0x72df76(0x22d)),require('@univerjs/engine-formula'),require(_0x72df76(0x35c)),require(_0x72df76(0x24e)),require(_0x72df76(0x319)),require(_0x72df76(0x19a))):typeof define==_0x72df76(0x3c8)&&define['amd']?define(['exports',_0x72df76(0x265),_0x72df76(0x435),_0x72df76(0x334),'@univerjs/design',_0x72df76(0x532),_0x72df76(0x4c2),'@univerjs-pro/collaboration',_0x72df76(0x169),_0x72df76(0x4e3),_0x72df76(0x162),_0x72df76(0x262),'@univerjs/engine-render','@univerjs/drawing',_0x72df76(0x463),_0x72df76(0x35c),_0x72df76(0x24e),'@univerjs/rpc',_0x72df76(0x19a)],_0xa4463c):(_0x3971f2=typeof globalThis<'u'?globalThis:_0x3971f2||self,_0xa4463c(_0x3971f2[_0x72df76(0x47f)]={},_0x3971f2['UniverCore'],_0x3971f2[_0x72df76(0x435)],_0x3971f2[_0x72df76(0x435)][_0x72df76(0x2a0)],_0x3971f2[_0x72df76(0x36f)],_0x3971f2[_0x72df76(0x54b)],_0x3971f2[_0x72df76(0x4b8)],_0x3971f2[_0x72df76(0x15c)],_0x3971f2[_0x72df76(0x2c1)],_0x3971f2['UniverDocs'],_0x3971f2[_0x72df76(0x25c)],_0x3971f2[_0x72df76(0x303)],_0x3971f2[_0x72df76(0x393)],_0x3971f2[_0x72df76(0x4ba)],_0x3971f2[_0x72df76(0x2d9)],_0x3971f2[_0x72df76(0x2db)],_0x3971f2[_0x72df76(0x51b)],_0x3971f2[_0x72df76(0x40c)],_0x3971f2[_0x72df76(0x269)]));}(this,function(_0x2e2c4a,_0x2d1395,_0x4c5465,_0x52321c,_0xbe50fe,_0x40eb02,_0x418c7b,_0x4ac4e1,_0x4bbe20,_0xe08b87,_0x52fc42,_0x44e81f,_0xc3204c,_0x4be0fa,_0x47b6e7,_0x400492,_0x405593,_0x16a2ca,_0x1aae09){'use strict';const _0x21a661=_0x4048;var _0xff7daf=Object['defineProperty'],_0x4fee83=(_0x1b771c,_0x1bc2b6,_0x3a078b)=>_0x1bc2b6 in _0x1b771c?_0xff7daf(_0x1b771c,_0x1bc2b6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a078b}):_0x1b771c[_0x1bc2b6]=_0x3a078b,_0x55c95f=(_0x58daa7,_0x3ef8c8,_0x24df37)=>_0x4fee83(_0x58daa7,typeof _0x3ef8c8!='symbol'?_0x3ef8c8+'':_0x3ef8c8,_0x24df37);const _0x54d801=_0x21a661(0x321),_0x4cac16=_0x21a661(0x537),_0x5fb444=_0x21a661(0x240),_0x3dec9b='SEND_CHANGESET_TIMEOUT',_0x2532aa=_0x21a661(0x490),_0x214e09=_0x21a661(0x1eb),_0x3b53e6='HEARTBEAT_INTERVAL',_0x310b36=_0x21a661(0x1c5),_0x952aa8=_0x21a661(0x561),_0x42e20f=_0x21a661(0x430),_0x5f51a0=_0x21a661(0x34c),_0x4eac68=_0x21a661(0x22e),_0x106063='LOGIN_URL_KEY',_0x23644b=_0x21a661(0x372);var _0x3c1982=(_0x4df830=>(_0x4df830[_0x4df830[_0x21a661(0x18a)]=0x0]=_0x21a661(0x18a),_0x4df830[_0x4df830['OK']=0x1]='OK',_0x4df830[_0x4df830['INTERNAL_ERROR']=0x2]=_0x21a661(0x361),_0x4df830[_0x4df830[_0x21a661(0x27a)]=0x3]=_0x21a661(0x27a),_0x4df830[_0x4df830[_0x21a661(0x3a8)]=0x4]=_0x21a661(0x3a8),_0x4df830[_0x4df830['UNAUTHENTICATED']=0x5]=_0x21a661(0x4c6),_0x4df830[_0x4df830[_0x21a661(0x551)]=0x6]=_0x21a661(0x551),_0x4df830[_0x4df830[_0x21a661(0x552)]=0x7]='INVALID_ARGUMENT',_0x4df830[_0x4df830[_0x21a661(0x4b0)]=0x8]=_0x21a661(0x4b0),_0x4df830[_0x4df830[_0x21a661(0x52a)]=0x9]=_0x21a661(0x52a),_0x4df830[_0x4df830[_0x21a661(0x17c)]=0x1389]=_0x21a661(0x17c),_0x4df830[_0x4df830[_0x21a661(0x266)]=0x1771]=_0x21a661(0x266),_0x4df830[_0x4df830[_0x21a661(0x294)]=0x1772]=_0x21a661(0x294),_0x4df830[_0x4df830[_0x21a661(0x2a1)]=0x1773]=_0x21a661(0x2a1),_0x4df830[_0x4df830[_0x21a661(0x3ce)]=0x1b59]=_0x21a661(0x3ce),_0x4df830[_0x4df830[_0x21a661(0x466)]=0x1b5a]=_0x21a661(0x466),_0x4df830[_0x4df830[_0x21a661(0x1dc)]=0x1b5b]=_0x21a661(0x1dc),_0x4df830[_0x4df830['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x21a661(0x4a8),_0x4df830[_0x4df830['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x4df830[_0x4df830[_0x21a661(0x49b)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x4df830[_0x4df830[_0x21a661(0x1f7)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x4df830[_0x4df830[_0x21a661(0x398)]=0x232a]=_0x21a661(0x398),_0x4df830[_0x4df830[_0x21a661(0x2d1)]=0x232b]=_0x21a661(0x2d1),_0x4df830[_0x4df830[_0x21a661(0x275)]=0x232c]=_0x21a661(0x275),_0x4df830[_0x4df830[_0x21a661(0x43d)]=0x232d]=_0x21a661(0x43d),_0x4df830[_0x4df830[_0x21a661(0x257)]=0x2711]=_0x21a661(0x257),_0x4df830[_0x4df830[_0x21a661(0x1e1)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x4df830[_0x4df830[_0x21a661(0x57e)]=0x2713]=_0x21a661(0x57e),_0x4df830[_0x4df830[_0x21a661(0x54a)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4df830[_0x4df830[_0x21a661(0x3a2)]=-0x1]='UNRECOGNIZED',_0x4df830))(_0x3c1982||{}),_0x2a040f=(_0x36fceb=>(_0x36fceb[_0x36fceb[_0x21a661(0x4dd)]=0x0]='UNIVER_UNKNOWN',_0x36fceb[_0x36fceb[_0x21a661(0x4ef)]=0x1]=_0x21a661(0x4ef),_0x36fceb[_0x36fceb[_0x21a661(0x196)]=0x2]=_0x21a661(0x196),_0x36fceb[_0x36fceb[_0x21a661(0x3d2)]=0x3]=_0x21a661(0x3d2),_0x36fceb[_0x36fceb[_0x21a661(0x4a2)]=0x4]=_0x21a661(0x4a2),_0x36fceb[_0x36fceb[_0x21a661(0x3a2)]=-0x1]='UNRECOGNIZED',_0x36fceb))(_0x2a040f||{}),_0x520af9=(_0x1009d5=>(_0x1009d5[_0x1009d5[_0x21a661(0x373)]=0x0]=_0x21a661(0x373),_0x1009d5[_0x1009d5[_0x21a661(0x2bc)]=0x1]=_0x21a661(0x2bc),_0x1009d5[_0x1009d5['JOIN']=0x2]=_0x21a661(0x215),_0x1009d5[_0x1009d5[_0x21a661(0x52b)]=0x3]='LEAVE',_0x1009d5[_0x1009d5[_0x21a661(0x35f)]=0x4]=_0x21a661(0x35f),_0x1009d5[_0x1009d5[_0x21a661(0x497)]=0x5]='HEARTBEAT',_0x1009d5[_0x1009d5['RECV']=0x6]='RECV',_0x1009d5[_0x1009d5[_0x21a661(0x3a2)]=-0x1]='UNRECOGNIZED',_0x1009d5))(_0x520af9||{}),_0x36791b=(_0x36b296=>(_0x36b296[_0x36b296['UNKNOWN_CODE']=0x0]=_0x21a661(0x1fe),_0x36b296[_0x36b296['OK']=0x1]='OK',_0x36b296[_0x36b296['FAIL']=0x2]=_0x21a661(0x33b),_0x36b296[_0x36b296['UNRECOGNIZED']=-0x1]=_0x21a661(0x3a2),_0x36b296))(_0x36791b||{}),_0x4d8db5=(_0x2e4f1a=>(_0x2e4f1a[_0x2e4f1a[_0x21a661(0x567)]=0x0]='Undefined',_0x2e4f1a[_0x2e4f1a[_0x21a661(0x2c9)]=0x1]=_0x21a661(0x2c9),_0x2e4f1a[_0x2e4f1a[_0x21a661(0x324)]=0x2]=_0x21a661(0x324),_0x2e4f1a[_0x2e4f1a['UnitEmbedded']=0x3]=_0x21a661(0x318),_0x2e4f1a[_0x2e4f1a[_0x21a661(0x449)]=0x4]=_0x21a661(0x449),_0x2e4f1a[_0x2e4f1a['UNRECOGNIZED']=-0x1]=_0x21a661(0x3a2),_0x2e4f1a))(_0x4d8db5||{});const _0x3839b7=_0x21a661(0x450),_0x122b1e={};function _0x5eb50e(_0x16515c){const _0x41ea0e=_0x21a661;var _0x52d435,_0x4325a9,_0xe42151,_0x293364;const _0x3680f8=_0x16515c[_0x41ea0e(0x3ff)],_0x4a2a92=JSON[_0x41ea0e(0x1a2)](_0x3680f8);switch(_0x4a2a92[_0x41ea0e(0x1d9)]){case _0x520af9['HEARTBEAT']:case _0x520af9[_0x41ea0e(0x2bc)]:{const _0x5eb9df=_0x4a2a92[_0x41ea0e(0x4b9)];return{..._0x4a2a92,'data':_0x5eb9df,'cmd':_0x4a2a92['cmd']};}case _0x520af9['JOIN']:{const _0x26c664=_0x4a2a92[_0x41ea0e(0x399)];return{..._0x4a2a92,'data':_0x26c664,'cmd':_0x4a2a92['cmd']};}case _0x520af9[_0x41ea0e(0x3fd)]:{const _0x22561b=_0x4a2a92['collaMsg'];switch(_0x22561b[_0x41ea0e(0x148)]){case _0x4ac4e1[_0x41ea0e(0x185)][_0x41ea0e(0x387)]:return{..._0x4a2a92,'data':{..._0x22561b,'data':(_0x52d435=_0x22561b[_0x41ea0e(0x440)])==null?void 0x0:_0x52d435['cs']},'cmd':_0x4a2a92[_0x41ea0e(0x1d9)]};case _0x4ac4e1['CollaborationEvent'][_0x41ea0e(0x386)]:return{..._0x4a2a92,'data':{..._0x22561b,'data':(_0x4325a9=_0x22561b['csAckEvent'])==null?void 0x0:_0x4325a9['cs']},'cmd':_0x4a2a92[_0x41ea0e(0x1d9)]};case _0x4ac4e1[_0x41ea0e(0x185)][_0x41ea0e(0x4ff)]:return{..._0x4a2a92,'data':{..._0x22561b,'data':(_0xe42151=_0x22561b[_0x41ea0e(0x2be)])==null?void 0x0:_0xe42151['cs']},'cmd':_0x4a2a92[_0x41ea0e(0x1d9)]};case _0x4ac4e1['CollaborationEvent'][_0x41ea0e(0x2e3)]:return{..._0x4a2a92,'data':{..._0x22561b,'data':(_0x293364=_0x22561b[_0x41ea0e(0x1ae)])==null?void 0x0:_0x293364['cs']},'cmd':_0x4a2a92[_0x41ea0e(0x1d9)]};case _0x4ac4e1['CollaborationEvent'][_0x41ea0e(0x41b)]:return{..._0x4a2a92,'data':{..._0x22561b,'data':_0x22561b['updateCursorEvent']},'cmd':_0x4a2a92['cmd']};case _0x4ac4e1[_0x41ea0e(0x185)]['USERS_ENTER']:return{..._0x4a2a92,'data':{..._0x22561b,'data':_0x22561b[_0x41ea0e(0x30b)]},'cmd':_0x4a2a92[_0x41ea0e(0x1d9)]};case _0x4ac4e1[_0x41ea0e(0x185)][_0x41ea0e(0x2f5)]:return{..._0x4a2a92,'data':{..._0x22561b,'data':_0x22561b['leaveEvent']},'cmd':_0x4a2a92['cmd']};case _0x4ac4e1['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x4a2a92,'data':{..._0x22561b,'data':_0x22561b[_0x41ea0e(0x243)]},'cmd':_0x4a2a92[_0x41ea0e(0x1d9)]};case _0x4ac4e1[_0x41ea0e(0x185)][_0x41ea0e(0x403)]:case _0x4ac4e1[_0x41ea0e(0x185)][_0x41ea0e(0x388)]:return{..._0x4a2a92,'data':{..._0x22561b,'data':_0x22561b[_0x41ea0e(0x44a)]},'cmd':_0x4a2a92[_0x41ea0e(0x1d9)]};case _0x4ac4e1[_0x41ea0e(0x185)]['LIVESHARE_TERMINATE']:return{..._0x4a2a92,'data':{..._0x22561b,'data':_0x22561b[_0x41ea0e(0x243)]},'cmd':_0x4a2a92['cmd']};case _0x4ac4e1[_0x41ea0e(0x185)][_0x41ea0e(0x462)]:return{..._0x4a2a92,'data':_0x22561b,'cmd':_0x4a2a92[_0x41ea0e(0x1d9)]};case _0x4ac4e1[_0x41ea0e(0x185)][_0x41ea0e(0x211)]:return{..._0x4a2a92,'data':{..._0x22561b,'data':_0x22561b[_0x41ea0e(0x16e)]},'cmd':_0x4a2a92[_0x41ea0e(0x1d9)]};case _0x4ac4e1['CollaborationEvent'][_0x41ea0e(0x2d8)]:return{..._0x4a2a92,'data':{..._0x22561b,'data':_0x22561b[_0x41ea0e(0x50d)]},'cmd':_0x4a2a92[_0x41ea0e(0x1d9)]};case _0x4ac4e1['CollaborationEvent'][_0x41ea0e(0x18c)]:return{..._0x4a2a92,'data':{..._0x22561b,'data':_0x22561b[_0x41ea0e(0x367)]},'cmd':_0x4a2a92[_0x41ea0e(0x1d9)]};default:return _0x4a2a92;}}default:return _0x4a2a92;}}function _0x421da1(_0xaaf0a9){const _0x48ebb7=_0x21a661;switch(_0xaaf0a9[_0x48ebb7(0x1d9)]){case _0x520af9[_0x48ebb7(0x497)]:case _0x520af9[_0x48ebb7(0x2bc)]:return JSON['stringify']({'cmd':_0xaaf0a9[_0x48ebb7(0x1d9)],'routeKey':_0xaaf0a9[_0x48ebb7(0x2cf)]});case _0x520af9[_0x48ebb7(0x35f)]:{let _0x2d498c;switch(_0xaaf0a9['data'][_0x48ebb7(0x148)]){case _0x4ac4e1[_0x48ebb7(0x185)][_0x48ebb7(0x41b)]:{_0x2d498c={'eventID':_0x4ac4e1[_0x48ebb7(0x185)]['UPDATE_CURSOR'],'updateCursorEvent':_0xaaf0a9['data'][_0x48ebb7(0x3ff)]};break;}case _0x4ac4e1[_0x48ebb7(0x185)]['USERS_LEAVE']:{_0x2d498c={'eventID':_0x4ac4e1[_0x48ebb7(0x185)][_0x48ebb7(0x2f5)],'leaveEvent':_0xaaf0a9[_0x48ebb7(0x3ff)][_0x48ebb7(0x3ff)]};break;}case _0x4ac4e1[_0x48ebb7(0x185)][_0x48ebb7(0x231)]:{_0x2d498c={'eventID':_0x4ac4e1[_0x48ebb7(0x185)][_0x48ebb7(0x231)],'joinEvent':_0xaaf0a9[_0x48ebb7(0x3ff)]['data']};break;}case _0x4ac4e1[_0x48ebb7(0x185)][_0x48ebb7(0x35d)]:{_0x2d498c={'eventID':_0x4ac4e1[_0x48ebb7(0x185)][_0x48ebb7(0x35d)],'liveShareNewHost':_0xaaf0a9['data'][_0x48ebb7(0x3ff)]};break;}case _0x4ac4e1[_0x48ebb7(0x185)]['LIVESHARE_OPERATION']:{_0x2d498c={'eventID':_0x4ac4e1[_0x48ebb7(0x185)][_0x48ebb7(0x388)],'liveShareOperation':_0xaaf0a9[_0x48ebb7(0x3ff)][_0x48ebb7(0x3ff)]};break;}case _0x4ac4e1[_0x48ebb7(0x185)][_0x48ebb7(0x516)]:{_0x2d498c={'eventID':_0x4ac4e1[_0x48ebb7(0x185)][_0x48ebb7(0x516)],'liveShareTerminate':_0xaaf0a9['data'][_0x48ebb7(0x3ff)]};break;}case _0x4ac4e1[_0x48ebb7(0x185)]['LIVESHARE_REQUEST_HOST']:{_0x2d498c={'eventID':_0x4ac4e1[_0x48ebb7(0x185)][_0x48ebb7(0x184)],'liveShareRequestHost':_0xaaf0a9[_0x48ebb7(0x3ff)][_0x48ebb7(0x3ff)]};break;}case _0x4ac4e1[_0x48ebb7(0x185)][_0x48ebb7(0x403)]:{_0x2d498c={'eventID':_0x4ac4e1[_0x48ebb7(0x185)][_0x48ebb7(0x403)]};break;}default:_0x2d498c={'eventID':_0xaaf0a9[_0x48ebb7(0x3ff)][_0x48ebb7(0x148)]};}return JSON[_0x48ebb7(0x250)]({'cmd':_0xaaf0a9[_0x48ebb7(0x1d9)],'routeKey':_0xaaf0a9['routeKey'],'collaMsg':_0x2d498c});}case _0x520af9[_0x48ebb7(0x215)]:return JSON[_0x48ebb7(0x250)]({'cmd':_0xaaf0a9[_0x48ebb7(0x1d9)],'routeKey':_0xaaf0a9[_0x48ebb7(0x2cf)],'joinReq':_0xaaf0a9[_0x48ebb7(0x3ff)]});case _0x520af9[_0x48ebb7(0x52b)]:return JSON[_0x48ebb7(0x250)]({'cmd':_0xaaf0a9[_0x48ebb7(0x1d9)],'routeKey':_0xaaf0a9[_0x48ebb7(0x2cf)],'leaveReq':_0xaaf0a9[_0x48ebb7(0x3ff)]});default:throw new Error(_0x48ebb7(0x356));}}var _0x35dcc0=Object[_0x21a661(0x1a6)],_0x455e0c=Object[_0x21a661(0x1c8)],_0x229c20=(_0x2192d9,_0x2f9e8b,_0x1913cc,_0x2243e8)=>{const _0x15b547=_0x21a661;for(var _0x3cd1de=_0x2243e8>0x1?void 0x0:_0x2243e8?_0x455e0c(_0x2f9e8b,_0x1913cc):_0x2f9e8b,_0x250595=_0x2192d9[_0x15b547(0x396)]-0x1,_0x4ec2dd;_0x250595>=0x0;_0x250595--)(_0x4ec2dd=_0x2192d9[_0x250595])&&(_0x3cd1de=(_0x2243e8?_0x4ec2dd(_0x2f9e8b,_0x1913cc,_0x3cd1de):_0x4ec2dd(_0x3cd1de))||_0x3cd1de);return _0x2243e8&&_0x3cd1de&&_0x35dcc0(_0x2f9e8b,_0x1913cc,_0x3cd1de),_0x3cd1de;},_0x224605=(_0x5b2e02,_0x3791f3)=>(_0x2391f1,_0x57f169)=>_0x3791f3(_0x2391f1,_0x57f169,_0x5b2e02);const _0x3a776a=_0x2d1395[_0x21a661(0x56d)](_0x21a661(0x3fc));function _0x5e627e(_0x54a5b9,_0x54f500,_0x399be2){const _0x2ddc04=_0x21a661;return _0x54a5b9+'/'+_0x54f500+'/unit/'+_0x399be2+_0x2ddc04(0x3e0);}_0x2e2c4a['CollaborationSocketService']=class extends _0x2d1395['Disposable']{constructor(_0x50b87a,_0x26b2dc,_0x157171,_0x546c50,_0x21675d){const _0x40c987=_0x21a661;super(),this[_0x40c987(0x526)]=_0x50b87a,this[_0x40c987(0x40b)]=_0x26b2dc,this[_0x40c987(0x3ee)]=_0x157171,this[_0x40c987(0x546)]=_0x546c50,this[_0x40c987(0x216)]=_0x21675d;}[_0x21a661(0x173)](_0x592ad1){const _0x5bcc63=_0x21a661,_0x2aa141=this[_0x5bcc63(0x40b)]['createSocket'](_0x592ad1);if(!_0x2aa141)throw new Error(_0x5bcc63(0x522));const _0x340351=new _0x2d1395['DisposableCollection'](),_0x371a04=new _0x4c5465[(_0x5bcc63(0x394))]();_0x340351['add'](_0x2aa141['close$'][_0x5bcc63(0x417)](_0x58cf23=>_0x371a04[_0x5bcc63(0x3e9)](_0x58cf23))),_0x340351['add'](_0x2d1395[_0x5bcc63(0x553)](()=>_0x371a04['complete']()));const _0xeff35a=new _0x4c5465[(_0x5bcc63(0x394))]();_0x340351[_0x5bcc63(0x18d)](_0x2aa141['error$'][_0x5bcc63(0x417)](_0xb56ea7=>_0xeff35a[_0x5bcc63(0x3e9)](_0xb56ea7))),_0x340351[_0x5bcc63(0x18d)](_0x2d1395[_0x5bcc63(0x553)](()=>_0xeff35a[_0x5bcc63(0x4b1)]()));const _0x1f96d7=new _0x4c5465['Subject']();_0x340351['add'](_0x2aa141['message$']['subscribe'](_0x512be2=>{const _0x1a383b=_0x5eb50e(_0x512be2);_0x1f96d7['next'](_0x1a383b);})),_0x340351[_0x5bcc63(0x18d)](_0x2d1395[_0x5bcc63(0x553)](()=>_0x1f96d7[_0x5bcc63(0x4b1)]()));let _0x3ff562;const _0x2fedf0=()=>{const _0x4d2b46=_0x5bcc63;_0xeff35a['next'](new Event('connection\x20error')),_0x371a04[_0x4d2b46(0x3e9)](new CloseEvent(_0x4d2b46(0x175))),_0x3ff562['close']();};return _0x3ff562={'memberID':'','close$':_0x371a04[_0x5bcc63(0x1c2)](),'error$':_0xeff35a[_0x5bcc63(0x1c2)](),'open$':_0x2aa141[_0x5bcc63(0x3d3)],'message$':_0x1f96d7['asObservable'](),'send':_0x2668b7=>{const _0x1e94f3=_0x5bcc63;if(_0x2668b7[_0x1e94f3(0x1d9)]===_0x520af9[_0x1e94f3(0x35f)]){if(_0x2668b7['data'][_0x1e94f3(0x148)]===_0x4ac4e1['CollaborationEvent'][_0x1e94f3(0x520)]){this[_0x1e94f3(0x47e)](_0x3ff562,_0x2668b7[_0x1e94f3(0x3ff)])['catch'](_0x191c72=>{const _0x2970d1=_0x1e94f3;this['_logService'][_0x2970d1(0x3f4)](_0x191c72),_0x2fedf0();});return;}if(_0x2668b7[_0x1e94f3(0x3ff)]['eventID']===_0x4ac4e1[_0x1e94f3(0x185)]['FETCH_MISSING']){const _0x1f04f5=_0x2668b7['data'];this[_0x1e94f3(0x4db)](_0x1f04f5)[_0x1e94f3(0x25e)](_0x1141f3=>{const _0x4da988=_0x1e94f3;_0x1f96d7['next']({'cmd':_0x520af9[_0x4da988(0x3fd)],'code':_0x36791b['OK'],'routeKey':_0x1f04f5[_0x4da988(0x3ff)][_0x4da988(0x3ea)],'routeType':'','data':{'eventID':_0x4ac4e1[_0x4da988(0x185)][_0x4da988(0x3f2)],'data':{'changesets':_0x1141f3}}});})['catch'](_0x17b042=>{const _0x36fb7f=_0x1e94f3;this[_0x36fb7f(0x546)]['error'](_0x17b042),_0x2fedf0();});return;}}_0x2aa141[_0x1e94f3(0x39a)](_0x421da1(_0x2668b7));},'close':()=>{const _0x129a22=_0x5bcc63;_0x2aa141[_0x129a22(0x33f)](),_0x340351[_0x129a22(0x51d)]();}},_0x3ff562;}async[_0x21a661(0x47e)](_0x1beaa0,_0x171681){const _0x33861e=_0x21a661;var _0x3d3159,_0x39ccdb;const {unitType:_0x1693c8,unitID:_0x1a0690,changeset:_0x186874}=_0x171681[_0x33861e(0x3ff)],_0x1b9d0c={'unitID':_0x1a0690,'memberID':_0x1beaa0[_0x33861e(0x525)],'type':_0x1693c8,'changeset':_0x4ac4e1[_0x33861e(0x31f)](_0x186874)},_0x3aaecb=this[_0x33861e(0x3ee)][_0x33861e(0x3d9)](_0x5f51a0),_0x36e6bf=this[_0x33861e(0x3ee)][_0x33861e(0x3d9)](_0x3839b7),_0x5a6ab5=_0x5e627e((_0x39ccdb=(_0x3d3159=_0x36e6bf==null?void 0x0:_0x36e6bf[_0x33861e(0x4c0)])!=null?_0x3d3159:_0x3aaecb)!=null?_0x39ccdb:_0x4eac68,_0x1693c8,_0x1a0690);try{await this[_0x33861e(0x526)][_0x33861e(0x43f)](_0x5a6ab5,{'body':_0x1b9d0c});}catch(_0x1489ca){throw this['_logService'][_0x33861e(0x3f4)]('[CollaborationSession]',_0x33861e(0x3c2)),_0x1489ca;}}async['_fetchMissChangesets'](_0x1be9de){const _0x54a980=_0x21a661,{unitID:_0x2f0f40,from:_0x3fe722,to:_0x1cbc19,unitType:_0x38ba25}=_0x1be9de[_0x54a980(0x3ff)];return(await this[_0x54a980(0x216)][_0x54a980(0x42f)]({'metadata':void 0x0},{'unitID':_0x2f0f40,'type':_0x38ba25,'from':_0x3fe722,'to':_0x1cbc19}))[_0x54a980(0x486)];}},_0x2e2c4a[_0x21a661(0x535)]=_0x229c20([_0x224605(0x0,_0x2d1395['Inject'](_0x418c7b[_0x21a661(0x157)])),_0x224605(0x1,_0x2d1395['Inject'](_0x418c7b[_0x21a661(0x467)])),_0x224605(0x2,_0x2d1395[_0x21a661(0x21e)]),_0x224605(0x3,_0x2d1395[_0x21a661(0x52d)]),_0x224605(0x4,_0x4ac4e1[_0x21a661(0x1ee)])],_0x2e2c4a[_0x21a661(0x535)]);const _0xf40093='collaboration_new_changeset';function _0x34dcc1(_0x5087b9){const _0x48b1fb=_0x21a661;return JSON[_0x48b1fb(0x250)](_0x5087b9)[_0x48b1fb(0x396)];}class _0x2df9dc{constructor(){const _0x20d3f9=_0x21a661;_0x55c95f(this,_0x20d3f9(0x554),new _0x4c5465['Subject']()),_0x55c95f(this,_0x20d3f9(0x1f4),this[_0x20d3f9(0x554)]['asObservable']());}[_0x21a661(0x3c1)](_0x32252e){const _0x8770b5=_0x21a661;this[_0x8770b5(0x554)][_0x8770b5(0x3e9)](_0x32252e);}}var _0x4cb52d=Object['defineProperty'],_0x277815=Object[_0x21a661(0x1c8)],_0x29c803=(_0x5b82a2,_0x54621c,_0x2e5d82,_0xe36d5f)=>{const _0x259201=_0x21a661;for(var _0x21c17c=_0xe36d5f>0x1?void 0x0:_0xe36d5f?_0x277815(_0x54621c,_0x2e5d82):_0x54621c,_0x10f3b5=_0x5b82a2[_0x259201(0x396)]-0x1,_0x1fb54f;_0x10f3b5>=0x0;_0x10f3b5--)(_0x1fb54f=_0x5b82a2[_0x10f3b5])&&(_0x21c17c=(_0xe36d5f?_0x1fb54f(_0x54621c,_0x2e5d82,_0x21c17c):_0x1fb54f(_0x21c17c))||_0x21c17c);return _0xe36d5f&&_0x21c17c&&_0x4cb52d(_0x54621c,_0x2e5d82,_0x21c17c),_0x21c17c;},_0x13ca54=(_0x32d471,_0x34c516)=>(_0x331b2b,_0x4f00df)=>_0x34c516(_0x331b2b,_0x4f00df,_0x32d471);let _0xb6854f=class extends _0x2d1395[_0x21a661(0x508)]{constructor(_0x3547e0,_0x609bfc){const _0x1c1563=_0x21a661;super(),_0x55c95f(this,_0x1c1563(0x325),new Map()),(this['_univerInstanceService']=_0x3547e0,this['_userManagerService']=_0x609bfc,this[_0x1c1563(0x3e2)](_0x2d1395['toDisposable'](_0x4c5465[_0x1c1563(0x1ad)](this[_0x1c1563(0x455)][_0x1c1563(0x268)](_0x2d1395['UniverInstanceType']['UNIVER_SHEET'])[_0x1c1563(0x219)](_0x52321c[_0x1c1563(0x500)](_0x5b94e3=>_0x5b94e3[_0x1c1563(0x1f1)]())),this[_0x1c1563(0x455)]['getTypeOfUnitDisposed$'](_0x2d1395[_0x1c1563(0x21c)]['UNIVER_DOC'])[_0x1c1563(0x219)](_0x52321c[_0x1c1563(0x500)](_0x9d586=>_0x9d586[_0x1c1563(0x1f1)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x2d1395['UniverInstanceType'][_0x1c1563(0x3d2)])['pipe'](_0x52321c['map'](_0x5c4468=>_0x5c4468[_0x1c1563(0x1f1)]())))['subscribe'](_0x5d5af6=>this[_0x1c1563(0x4bd)](_0x5d5af6)))));}['setCurrentUser'](_0x2603a7){const _0x2f1d77=_0x21a661;this[_0x2f1d77(0x48b)][_0x2f1d77(0x35b)](_0x2603a7);}[_0x21a661(0x3b1)](){const _0x43850e=_0x21a661;return this[_0x43850e(0x48b)]['getCurrentUser']();}[_0x21a661(0x45b)](_0x3a3c5d,_0x12eebe){const _0x3b2997=_0x21a661;let _0x23a0b6=this['_roomMembers'][_0x3b2997(0x2e5)](_0x3a3c5d);_0x23a0b6||(_0x23a0b6=new _0x3c8d1d(),this[_0x3b2997(0x325)][_0x3b2997(0x4f1)](_0x3a3c5d,_0x23a0b6)),_0x23a0b6['updateMember'](_0x12eebe);}['removeMember'](_0xde9619,_0x56a097){const _0x15781a=_0x21a661,_0x2784e7=this['_roomMembers'][_0x15781a(0x2e5)](_0xde9619);_0x2784e7&&_0x2784e7['removeMember'](_0x56a097);}['getRoom'](_0x2915bb){const _0x4e61ff=_0x21a661;return this['_roomMembers'][_0x4e61ff(0x2e5)](_0x2915bb);}[_0x21a661(0x261)](_0x6d0d5f,_0x47c4a1){const _0x8d8f09=_0x21a661,_0x2ef4ce=this[_0x8d8f09(0x325)][_0x8d8f09(0x2e5)](_0x6d0d5f);if(_0x2ef4ce)return _0x2ef4ce['getMember'](_0x47c4a1);}[_0x21a661(0x4bd)](_0x121cf4){const _0x3c7d79=_0x21a661,_0x555815=this[_0x3c7d79(0x325)][_0x3c7d79(0x2e5)](_0x121cf4);_0x555815&&(_0x555815[_0x3c7d79(0x51d)](),this[_0x3c7d79(0x325)]['delete'](_0x121cf4));}[_0x21a661(0x51d)](){const _0x226f92=_0x21a661;this['_roomMembers'][_0x226f92(0x492)](_0x73d73c=>_0x73d73c['dispose']()),this[_0x226f92(0x325)][_0x226f92(0x53e)]();}};_0xb6854f=_0x29c803([_0x13ca54(0x0,_0x2d1395['IUniverInstanceService']),_0x13ca54(0x1,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395[_0x21a661(0x1c6)]))],_0xb6854f);class _0x3c8d1d extends _0x2d1395[_0x21a661(0x508)]{constructor(){super(...arguments),_0x55c95f(this,'_members',new Map());}[_0x21a661(0x51d)](){const _0x56d1e4=_0x21a661;this[_0x56d1e4(0x3a4)][_0x56d1e4(0x53e)]();}[_0x21a661(0x45b)](_0x768178){const _0x27d72d=_0x21a661;this[_0x27d72d(0x3a4)][_0x27d72d(0x4f1)](_0x768178[_0x27d72d(0x525)],_0x768178);}['removeMember'](_0x1efa8b){const _0x515582=_0x21a661;this[_0x515582(0x3a4)][_0x515582(0x464)](_0x1efa8b);}[_0x21a661(0x261)](_0x229e1f){const _0x4df6f3=_0x21a661;return this[_0x4df6f3(0x3a4)][_0x4df6f3(0x2e5)](_0x229e1f);}}var _0x1bc1ef=Object[_0x21a661(0x1a6)],_0x1060cf=Object['getOwnPropertyDescriptor'],_0x2cd548=(_0x72f84f,_0xb332d,_0x1114c9,_0x264a2d)=>{const _0xd52f98=_0x21a661;for(var _0x5681f1=_0x264a2d>0x1?void 0x0:_0x264a2d?_0x1060cf(_0xb332d,_0x1114c9):_0xb332d,_0x3acbeb=_0x72f84f[_0xd52f98(0x396)]-0x1,_0x3034ef;_0x3acbeb>=0x0;_0x3acbeb--)(_0x3034ef=_0x72f84f[_0x3acbeb])&&(_0x5681f1=(_0x264a2d?_0x3034ef(_0xb332d,_0x1114c9,_0x5681f1):_0x3034ef(_0x5681f1))||_0x5681f1);return _0x264a2d&&_0x5681f1&&_0x1bc1ef(_0xb332d,_0x1114c9,_0x5681f1),_0x5681f1;},_0x96d6a8=(_0x4d0d7c,_0x1f925e)=>(_0x599f11,_0xa416d6)=>_0x1f925e(_0x599f11,_0xa416d6,_0x4d0d7c),_0x1173b7=(_0x4f7ed2=>(_0x4f7ed2[_0x4f7ed2['IDLE']=0x0]='IDLE',_0x4f7ed2[_0x4f7ed2[_0x21a661(0x362)]=0x1]=_0x21a661(0x362),_0x4f7ed2[_0x4f7ed2[_0x21a661(0x1af)]=0x2]=_0x21a661(0x1af),_0x4f7ed2[_0x4f7ed2[_0x21a661(0x341)]=0x3]=_0x21a661(0x341),_0x4f7ed2))(_0x1173b7||{});_0x2e2c4a['CollaborationSession']=class extends _0x2d1395[_0x21a661(0x2b4)]{constructor(_0x4f6f75,_0xc98320,_0x40fe7a,_0x21ba37,_0x39197e,_0x4a7547,_0x247a73,_0x257b37,_0x32231b,_0x441a41){const _0x550139=_0x21a661;super(),_0x55c95f(this,_0x550139(0x2ba),new _0x4c5465[(_0x550139(0x2d6))](0x0)),_0x55c95f(this,_0x550139(0x38b),this[_0x550139(0x2ba)][_0x550139(0x1c2)]()),_0x55c95f(this,_0x550139(0x279),new _0x4c5465['Subject']()),_0x55c95f(this,_0x550139(0x1b2),this[_0x550139(0x279)][_0x550139(0x1c2)]()),_0x55c95f(this,_0x550139(0x23f)),_0x55c95f(this,_0x550139(0x44c)),_0x55c95f(this,_0x550139(0x469)),_0x55c95f(this,'_shouldReportTelemetry',!0x1),_0x55c95f(this,_0x550139(0x2ed),null),(this[_0x550139(0x2b2)]=_0x4f6f75,this['_logService']=_0x40fe7a,this[_0x550139(0x19d)]=_0x21ba37,this[_0x550139(0x20f)]=_0x39197e,this[_0x550139(0x3ee)]=_0x4a7547,this[_0x550139(0x51a)]=_0x247a73,this[_0x550139(0x326)]=_0x257b37,this[_0x550139(0x2c3)]=_0x32231b,this[_0x550139(0x183)]=_0x441a41,this[_0x550139(0x55a)]=!!this['_telemetryService'],_0xc98320[_0x550139(0x219)](_0x4c5465[_0x550139(0x30f)](this[_0x550139(0x3f0)]))[_0x550139(0x417)](_0x1f907c=>{const _0x4d08cf=_0x550139;var _0x376b2a;typeof _0x1f907c>'u'||(this['_socket']=_0x1f907c,_0x1f907c?(this[_0x4d08cf(0x1bf)](_0x1f907c),this['_socketMessageSubscription']=_0x1f907c[_0x4d08cf(0x165)][_0x4d08cf(0x417)](_0x249da8=>{const _0x2cdc4b=_0x4d08cf;_0x249da8[_0x2cdc4b(0x2cf)]===this[_0x2cdc4b(0x2b2)]&&this[_0x2cdc4b(0x14d)](_0x249da8);})):(this[_0x4d08cf(0x465)](),this[_0x4d08cf(0x2ba)][_0x4d08cf(0x3e9)](0x2),(_0x376b2a=this[_0x4d08cf(0x44c)])==null||_0x376b2a['unsubscribe'](),this[_0x4d08cf(0x44c)]=null));}),this[_0x550139(0x3e2)](this[_0x550139(0x19d)][_0x550139(0x43c)](()=>{const _0x3bb8ef=_0x550139;var _0x35389b;(_0x35389b=this['_socket'])==null||_0x35389b[_0x3bb8ef(0x39a)]({'cmd':_0x520af9[_0x3bb8ef(0x52b)],'data':{'roomID':this[_0x3bb8ef(0x2b2)]}});})));}get[_0x21a661(0x2b5)](){const _0xe1e3a4=_0x21a661;return this[_0xe1e3a4(0x2ba)][_0xe1e3a4(0x182)]();}[_0x21a661(0x577)](){const _0xaf255f=_0x21a661;var _0x382db7,_0x392a59;return(_0x392a59=(_0x382db7=this[_0xaf255f(0x23f)])==null?void 0x0:_0x382db7[_0xaf255f(0x525)])!=null?_0x392a59:null;}[_0x21a661(0x51d)](){const _0x1a97d3=_0x21a661;super[_0x1a97d3(0x51d)](),this[_0x1a97d3(0x3f0)][_0x1a97d3(0x3e9)](),this[_0x1a97d3(0x3f0)][_0x1a97d3(0x4b1)]();}[_0x21a661(0x33f)](){const _0x250ae7=_0x21a661;var _0x3dff12,_0x2de695;this[_0x250ae7(0x465)](),(_0x3dff12=this[_0x250ae7(0x23f)])==null||_0x3dff12[_0x250ae7(0x39a)]({'cmd':_0x520af9[_0x250ae7(0x52b)],'data':{'roomID':this[_0x250ae7(0x2b2)]}}),(_0x2de695=this[_0x250ae7(0x23f)])==null||_0x2de695[_0x250ae7(0x33f)](),this['_event$'][_0x250ae7(0x4b1)](),this[_0x250ae7(0x2ba)][_0x250ae7(0x4b1)](),this[_0x250ae7(0x51d)]();}['_onCombEvent'](_0x18d66f){const _0x3f2f43=_0x21a661;_0x18d66f[_0x3f2f43(0x1d9)]===_0x520af9[_0x3f2f43(0x215)]?this['_onJoinRoomEvent'](_0x18d66f):_0x18d66f[_0x3f2f43(0x1d9)]===_0x520af9[_0x3f2f43(0x3fd)]&&this[_0x3f2f43(0x355)](_0x18d66f);}[_0x21a661(0x1bf)](_0x2107a5){const _0x153909=_0x21a661;this[_0x153909(0x2ba)][_0x153909(0x3e9)](0x1),_0x2107a5[_0x153909(0x39a)]({'cmd':_0x520af9[_0x153909(0x215)],'routeKey':this[_0x153909(0x2b2)],'routeType':'','data':{'rooms':[{'roomID':this[_0x153909(0x2b2)]}]}});}['_onJoinRoomEvent'](_0x1138b9){const _0x1cdf8d=_0x21a661;var _0x4d1908;if(_0x1138b9[_0x1cdf8d(0x272)]===_0x36791b[_0x1cdf8d(0x33b)]){this[_0x1cdf8d(0x20f)][_0x1cdf8d(0x4b5)]({'type':_0xbe50fe[_0x1cdf8d(0x352)][_0x1cdf8d(0x23b)],'content':this[_0x1cdf8d(0x51a)]['t'](_0x1cdf8d(0x517))}),this[_0x1cdf8d(0x2ba)]['next'](0x2);return;}this['_sessionStatus$']['next'](0x3);const _0xed4c15=(_0x4d1908=_0x1138b9['data'][_0x1cdf8d(0x53c)][this[_0x1cdf8d(0x2b2)]])==null?void 0x0:_0x4d1908[_0x1cdf8d(0x2c6)];_0xed4c15&&_0xed4c15['forEach'](_0x1213ff=>this['_memberService'][_0x1cdf8d(0x45b)](this[_0x1cdf8d(0x2b2)],_0x1213ff));}[_0x21a661(0x355)](_0x53bda1){const _0x118b79=_0x21a661;try{const _0x298e84=_0x53bda1['data'];switch(_0x298e84['eventID']){case _0x4ac4e1[_0x118b79(0x185)]['USERS_ENTER']:this['_onUserJoin'](_0x298e84),this[_0x118b79(0x279)]['next'](_0x298e84);break;case _0x4ac4e1['CollaborationEvent']['USERS_LEAVE']:this[_0x118b79(0x39d)](_0x298e84),this[_0x118b79(0x279)][_0x118b79(0x3e9)](_0x298e84);break;case _0x4ac4e1[_0x118b79(0x185)]['CHANGESET_ACK']:this[_0x118b79(0x308)](),this[_0x118b79(0x3b6)](),this[_0x118b79(0x279)]['next'](_0x298e84);break;case _0x4ac4e1[_0x118b79(0x185)][_0x118b79(0x462)]:this[_0x118b79(0x546)][_0x118b79(0x3f4)](_0x118b79(0x3ef)+JSON[_0x118b79(0x250)](_0x298e84)),this[_0x118b79(0x279)][_0x118b79(0x3e9)](_0x298e84);break;case _0x4ac4e1[_0x118b79(0x185)][_0x118b79(0x211)]:this['_commentService'][_0x118b79(0x3c1)](_0x298e84['data']),this[_0x118b79(0x279)][_0x118b79(0x3e9)](_0x298e84);break;default:this[_0x118b79(0x279)][_0x118b79(0x3e9)](_0x298e84);}}catch(_0x1cb702){this['_logService'][_0x118b79(0x3f4)](_0x1cb702,_0x53bda1);}}[_0x21a661(0x548)](_0x54b7a3){const _0x2c67e6=_0x21a661;this[_0x2c67e6(0x326)][_0x2c67e6(0x45b)](this[_0x2c67e6(0x2b2)],_0x54b7a3[_0x2c67e6(0x3ff)]);}[_0x21a661(0x39d)](_0x39acc6){const _0x580f7f=_0x21a661;this[_0x580f7f(0x326)][_0x580f7f(0x2e2)](this['_unitID'],_0x39acc6[_0x580f7f(0x3ff)][_0x580f7f(0x525)]);}async['send'](_0xdf43c2,_0x1f6cc9){const _0x134f8f=_0x21a661;if(this['sessionStatus']!==0x3||!this[_0x134f8f(0x23f)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0xdf43c2[_0x134f8f(0x148)]===_0x4ac4e1['CollaborationEvent'][_0x134f8f(0x520)]&&(this[_0x134f8f(0x2ae)](),this['_startTelemetryCollaborationNewChangeset'](_0xdf43c2)),this[_0x134f8f(0x23f)]['send']({'cmd':_0x520af9['INGEST'],'routeKey':_0x1f6cc9,'routeType':'','data':_0xdf43c2});}catch(_0x24af93){this[_0x134f8f(0x546)][_0x134f8f(0x3f4)](_0x24af93);}}['_scheduleCollaborationTimeoutTimer'](){const _0x532919=_0x21a661;var _0x24abd8;this['_collaborationTimeoutTimer']=window[_0x532919(0x20b)](()=>{const _0x119112=_0x532919;this[_0x119112(0x469)]=null,this['_messageService'][_0x119112(0x4b5)]({'type':_0xbe50fe['MessageType']['Error'],'content':this[_0x119112(0x51a)]['t'](_0x119112(0x4fa))});},(_0x24abd8=this['_configService'][_0x532919(0x3d9)](_0x310b36))!=null?_0x24abd8:0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0x2ae685=_0x21a661;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x2ae685(0x469)]),this[_0x2ae685(0x469)]=null);}[_0x21a661(0x1ba)](_0x114099){const _0x38dc8d=_0x21a661;if(!this[_0x38dc8d(0x55a)])return;const {data:_0x483571}=_0x114099,{unitID:_0x2916a8,changeset:_0x32cd9c}=_0x483571,{mutations:_0x3a4175,type:_0x4999ab}=_0x32cd9c;this[_0x38dc8d(0x2ed)]={'unitId':_0x2916a8,'type':_0x4999ab,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x34dcc1(_0x3a4175)};}[_0x21a661(0x308)](){const _0x3c4fe0=_0x21a661;if(this[_0x3c4fe0(0x55a)]){if(!this['_telemetryInfo']){this[_0x3c4fe0(0x546)][_0x3c4fe0(0x3f4)](_0x3c4fe0(0x251),_0x3c4fe0(0x187));return;}this[_0x3c4fe0(0x2ed)]['stopTime']=performance[_0x3c4fe0(0x3f6)](),this[_0x3c4fe0(0x2ed)]['duration']=this[_0x3c4fe0(0x2ed)][_0x3c4fe0(0x3b0)]-this[_0x3c4fe0(0x2ed)][_0x3c4fe0(0x476)],this[_0x3c4fe0(0x183)][_0x3c4fe0(0x1e9)](_0xf40093,this[_0x3c4fe0(0x2ed)]),this[_0x3c4fe0(0x2ed)]=null;}}[_0x21a661(0x465)](){const _0x3e883b=_0x21a661;this[_0x3e883b(0x2ed)]=null;}},_0x2e2c4a[_0x21a661(0x179)]=_0x2cd548([_0x96d6a8(0x2,_0x2d1395[_0x21a661(0x52d)]),_0x96d6a8(0x3,_0x40eb02[_0x21a661(0x217)]),_0x96d6a8(0x4,_0x40eb02[_0x21a661(0x152)]),_0x96d6a8(0x5,_0x2d1395['IConfigService']),_0x96d6a8(0x6,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395['LocaleService'])),_0x96d6a8(0x7,_0x2d1395[_0x21a661(0x2f7)](_0xb6854f)),_0x96d6a8(0x8,_0x2d1395[_0x21a661(0x2f7)](_0x2df9dc)),_0x96d6a8(0x9,_0x2d1395[_0x21a661(0x4cc)](_0x4bbe20['ITelemetryService']))],_0x2e2c4a[_0x21a661(0x179)]);var _0x163f8f=Object[_0x21a661(0x1a6)],_0x4c4949=Object[_0x21a661(0x1c8)],_0x52e291=(_0x8e3e8d,_0x2d4c39,_0x445b8c,_0x23faca)=>{for(var _0xee7dcd=_0x23faca>0x1?void 0x0:_0x23faca?_0x4c4949(_0x2d4c39,_0x445b8c):_0x2d4c39,_0x1b453f=_0x8e3e8d['length']-0x1,_0x2336d8;_0x1b453f>=0x0;_0x1b453f--)(_0x2336d8=_0x8e3e8d[_0x1b453f])&&(_0xee7dcd=(_0x23faca?_0x2336d8(_0x2d4c39,_0x445b8c,_0xee7dcd):_0x2336d8(_0xee7dcd))||_0xee7dcd);return _0x23faca&&_0xee7dcd&&_0x163f8f(_0x2d4c39,_0x445b8c,_0xee7dcd),_0xee7dcd;},_0x213aa4=(_0x26192e,_0x547297)=>(_0x13b96a,_0x49ee39)=>_0x547297(_0x13b96a,_0x49ee39,_0x26192e);_0x2e2c4a[_0x21a661(0x2e4)]=class extends _0x2d1395[_0x21a661(0x508)]{constructor(_0x1cdcf6,_0x542e92,_0x514e21,_0x3e0ab4,_0x1ba1c2,_0x50a562){const _0x1b805e=_0x21a661;super(),_0x55c95f(this,'_socket$',new _0x4c5465['BehaviorSubject'](void 0x0)),_0x55c95f(this,_0x1b805e(0x43a),this['_socket$'][_0x1b805e(0x1c2)]()),_0x55c95f(this,_0x1b805e(0x337),null),_0x55c95f(this,_0x1b805e(0x1e5),new Map()),_0x55c95f(this,_0x1b805e(0x253),new _0x4c5465[(_0x1b805e(0x2d6))](_0x1173b7[_0x1b805e(0x1ca)])),_0x55c95f(this,_0x1b805e(0x3cc),this[_0x1b805e(0x253)][_0x1b805e(0x1c2)]()),_0x55c95f(this,_0x1b805e(0x521),!0x1),_0x55c95f(this,_0x1b805e(0x572)),_0x55c95f(this,'_retryCount',0x0),_0x55c95f(this,_0x1b805e(0x2b1)),_0x55c95f(this,_0x1b805e(0x52f)),(this[_0x1b805e(0x3b8)]=_0x1cdcf6,this[_0x1b805e(0x51a)]=_0x542e92,this['_messageService']=_0x514e21,this[_0x1b805e(0x546)]=_0x3e0ab4,this['_configService']=_0x1ba1c2,this[_0x1b805e(0x47c)]=_0x50a562,this[_0x1b805e(0x43b)]());}get[_0x21a661(0x23f)](){const _0x35bb28=_0x21a661;return this[_0x35bb28(0x3bc)][_0x35bb28(0x182)]();}[_0x21a661(0x43b)](){const _0x29c22f=_0x21a661;this[_0x29c22f(0x2d2)](),this['_listenToOnlineEvent']();}[_0x21a661(0x51d)](){const _0x2522d4=_0x21a661;super['dispose'](),this[_0x2522d4(0x1e5)][_0x2522d4(0x492)](_0x887326=>_0x887326['dispose']()),this[_0x2522d4(0x1e5)][_0x2522d4(0x53e)](),this[_0x2522d4(0x253)][_0x2522d4(0x4b1)]();}async[_0x21a661(0x557)](_0x4b74bd){const _0x9c5451=_0x21a661;if(this[_0x9c5451(0x1e5)][_0x9c5451(0x397)](_0x4b74bd))return this[_0x9c5451(0x1e5)][_0x9c5451(0x2e5)](_0x4b74bd);this[_0x9c5451(0x1bb)]();const _0x5cde71=this[_0x9c5451(0x3b8)][_0x9c5451(0x3e5)](_0x2e2c4a[_0x9c5451(0x179)],_0x4b74bd,this[_0x9c5451(0x3bc)][_0x9c5451(0x1c2)]());return this[_0x9c5451(0x1e5)][_0x9c5451(0x4f1)](_0x4b74bd,_0x5cde71),_0x5cde71;}['closeSession'](_0x3bd670){const _0x2215e1=_0x21a661;var _0x234856;const _0x540c83=this[_0x2215e1(0x1e5)][_0x2215e1(0x2e5)](_0x3bd670);_0x540c83&&(this[_0x2215e1(0x1e5)][_0x2215e1(0x464)](_0x3bd670),_0x540c83[_0x2215e1(0x33f)]()),this[_0x2215e1(0x1e5)][_0x2215e1(0x39e)]||(_0x234856=this[_0x2215e1(0x23f)])==null||_0x234856['close']();}[_0x21a661(0x32a)](){const _0x5221a3=_0x21a661;this[_0x5221a3(0x4f8)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x5221a3(0x572)]),this[_0x5221a3(0x572)]=null),this['_tryReconnect']();}[_0x21a661(0x200)](){const _0x447c61=_0x21a661;var _0x3cc8b7,_0x24871e;const _0x4e29ff=this['_configService'][_0x447c61(0x3d9)](_0x2532aa),_0x30d158=this[_0x447c61(0x3ee)]['getConfig'](_0x3839b7),_0x48c3e3=(_0x24871e=(_0x3cc8b7=_0x30d158==null?void 0x0:_0x30d158['collabWebSocketUrl'])!=null?_0x3cc8b7:_0x4e29ff)!=null?_0x24871e:_0x214e09,_0x45ccd9=this['_socketService'][_0x447c61(0x173)](_0x48c3e3);return this[_0x447c61(0x337)]=_0x45ccd9,_0x45ccd9;}['_tryEnsureSocket'](){const _0x26cdcc=_0x21a661;var _0x99de52,_0x1fa473;try{const _0x112b39=(_0x1fa473=(_0x99de52=this['_socket'])!=null?_0x99de52:this['_candidateSocket'])!=null?_0x1fa473:this[_0x26cdcc(0x200)]();if(_0x112b39){const _0x107a1b=_0x112b39[_0x26cdcc(0x39a)];_0x112b39[_0x26cdcc(0x39a)]=_0x28ecb2=>(this[_0x26cdcc(0x1c9)](),_0x107a1b['apply'](_0x112b39,[_0x28ecb2])),_0x112b39['message$'][_0x26cdcc(0x417)](_0x121f35=>this['_onMessage'](_0x112b39,_0x121f35)),_0x112b39[_0x26cdcc(0x17e)][_0x26cdcc(0x219)](_0x52321c[_0x26cdcc(0x4a7)](0x1))['subscribe'](_0xe761c2=>this[_0x26cdcc(0x546)]['error'](_0x26cdcc(0x159),_0xe761c2)),_0x112b39[_0x26cdcc(0x3d3)][_0x26cdcc(0x219)](_0x52321c[_0x26cdcc(0x4a7)](0x1))[_0x26cdcc(0x417)](()=>{const _0x57e41d=_0x26cdcc;this[_0x57e41d(0x37f)](_0x112b39);}),_0x112b39['close$'][_0x26cdcc(0x219)](_0x52321c[_0x26cdcc(0x4a7)](0x1))['subscribe'](_0x22f991=>{const _0x310c20=_0x26cdcc;this[_0x310c20(0x546)]['debug'](_0x310c20(0x472),_0x310c20(0x1e7),_0x22f991),this['_onConnectionFailed']();});}}catch(_0x462eba){this['_logService'][_0x26cdcc(0x3f4)](_0x462eba),this['_onConnectionFailed']();}}[_0x21a661(0x37f)](_0x18208f){const _0x33e004=_0x21a661;this[_0x33e004(0x546)][_0x33e004(0x299)]('[CollaborationSessionService]','socket\x20open.'),_0x18208f['send']({'cmd':_0x520af9[_0x33e004(0x2bc)]}),this['_rescheduleHeartbeat']();}[_0x21a661(0x2d2)](){const _0x133062=_0x21a661;window[_0x133062(0x258)]('offline',()=>this[_0x133062(0x377)]());}[_0x21a661(0x377)](){const _0x2aa5bb=_0x21a661;this['_socketReady']=!0x1,this[_0x2aa5bb(0x337)]=null,this[_0x2aa5bb(0x253)]['next'](_0x1173b7[_0x2aa5bb(0x1af)]),this[_0x2aa5bb(0x3bc)][_0x2aa5bb(0x3e9)](null),this[_0x2aa5bb(0x4f9)](),this[_0x2aa5bb(0x42a)]();}[_0x21a661(0x193)](){const _0x5e96db=_0x21a661;var _0x2bed11;this[_0x5e96db(0x377)](),this['_retryCount']<((_0x2bed11=this[_0x5e96db(0x3ee)][_0x5e96db(0x3d9)](_0x952aa8))!=null?_0x2bed11:0x3)?(this[_0x5e96db(0x20f)]['show']({'key':_0x5e96db(0x4bc),'type':_0xbe50fe['MessageType'][_0x5e96db(0x23b)],'content':this[_0x5e96db(0x51a)]['t'](_0x5e96db(0x559))}),this[_0x5e96db(0x359)]()):this['_messageService']['show']({'key':_0x5e96db(0x4bc),'type':_0xbe50fe[_0x5e96db(0x352)][_0x5e96db(0x310)],'content':this[_0x5e96db(0x51a)]['t']('session.connection-failed')});}[_0x21a661(0x4cb)](){const _0x47c63c=_0x21a661,_0x267902=()=>{const _0x437ae4=_0x4048;this['_socket']||this[_0x437ae4(0x32a)]();},_0x42ef5a=()=>{const _0x3d71ba=_0x4048;this['_socket']||document['visibilityState']===_0x3d71ba(0x317)||this[_0x3d71ba(0x32a)]();};window['addEventListener'](_0x47c63c(0x190),_0x267902),document[_0x47c63c(0x258)](_0x47c63c(0x46d),_0x42ef5a);}[_0x21a661(0x359)](){const _0x2e9469=_0x21a661;var _0x11d71a;const _0x47ed72=this[_0x2e9469(0x4f8)],_0xbe8085=this[_0x2e9469(0x3ee)][_0x2e9469(0x3d9)](_0x3839b7),_0x469362=_0x47ed72===0x0?0x0:((_0x11d71a=_0xbe8085==null?void 0x0:_0xbe8085['retryConnectingInterval'])!=null?_0x11d71a:0x4e20)*0x2**_0x47ed72;this[_0x2e9469(0x572)]=window[_0x2e9469(0x20b)](()=>{const _0xa0064c=_0x2e9469;clearTimeout(this[_0xa0064c(0x572)]),this[_0xa0064c(0x572)]=null,this['_tryEnsureSocket']();},_0x469362),this[_0x2e9469(0x4f8)]+=0x1;}[_0x21a661(0x45f)](_0x2804af,_0x398358){const _0x5d0633=_0x21a661,{cmd:_0x2df86a}=_0x398358;_0x2df86a===_0x520af9[_0x5d0633(0x2bc)]&&!this[_0x5d0633(0x521)]&&(_0x2804af[_0x5d0633(0x525)]=_0x398358[_0x5d0633(0x3ff)][_0x5d0633(0x525)],this[_0x5d0633(0x3bc)][_0x5d0633(0x3e9)](_0x2804af),this[_0x5d0633(0x253)][_0x5d0633(0x3e9)](_0x1173b7[_0x5d0633(0x341)]),this[_0x5d0633(0x521)]=!0x0,this[_0x5d0633(0x337)]=null),_0x2df86a===_0x520af9[_0x5d0633(0x497)]&&this[_0x5d0633(0x4f9)](),this[_0x5d0633(0x1c9)]();}[_0x21a661(0x1c9)](){const _0x1a11ab=_0x21a661;var _0x10c39d;this[_0x1a11ab(0x42a)](),this[_0x1a11ab(0x2b1)]=window[_0x1a11ab(0x20b)](()=>this[_0x1a11ab(0x1fd)](),(_0x10c39d=this[_0x1a11ab(0x3ee)][_0x1a11ab(0x3d9)](_0x3b53e6))!=null?_0x10c39d:0x7530);}['_sendHeartbeat'](){const _0x237699=_0x21a661;this[_0x237699(0x23f)][_0x237699(0x39a)]({'cmd':_0x520af9['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x21a661(0x485)](){const _0x4a87ec=_0x21a661;var _0x1894c1;this[_0x4a87ec(0x52f)]=window[_0x4a87ec(0x20b)](()=>this[_0x4a87ec(0x193)](),(_0x1894c1=this[_0x4a87ec(0x3ee)]['getConfig'](_0x310b36))!=null?_0x1894c1:0x4e20);}[_0x21a661(0x42a)](){const _0x37f7f7=_0x21a661;this[_0x37f7f7(0x2b1)]!=null&&(clearTimeout(this[_0x37f7f7(0x2b1)]),this[_0x37f7f7(0x2b1)]=null);}[_0x21a661(0x4f9)](){const _0x570d3c=_0x21a661;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x570d3c(0x52f)]),this[_0x570d3c(0x52f)]=null);}},_0x2e2c4a[_0x21a661(0x2e4)]=_0x52e291([_0x213aa4(0x0,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395['Injector'])),_0x213aa4(0x1,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395[_0x21a661(0x177)])),_0x213aa4(0x2,_0x40eb02[_0x21a661(0x152)]),_0x213aa4(0x3,_0x2d1395[_0x21a661(0x52d)]),_0x213aa4(0x4,_0x2d1395[_0x21a661(0x21e)]),_0x213aa4(0x5,_0x3a776a)],_0x2e2c4a[_0x21a661(0x2e4)]);for(var _0x1b314e=[],_0x115897=0x0;_0x115897<0x100;++_0x115897)_0x1b314e['push']((_0x115897+0x100)[_0x21a661(0x329)](0x10)[_0x21a661(0x206)](0x1));function _0x5c0b84(_0x43387f,_0x4979cd=0x0){const _0x335766=_0x21a661;return(_0x1b314e[_0x43387f[_0x4979cd+0x0]]+_0x1b314e[_0x43387f[_0x4979cd+0x1]]+_0x1b314e[_0x43387f[_0x4979cd+0x2]]+_0x1b314e[_0x43387f[_0x4979cd+0x3]]+'-'+_0x1b314e[_0x43387f[_0x4979cd+0x4]]+_0x1b314e[_0x43387f[_0x4979cd+0x5]]+'-'+_0x1b314e[_0x43387f[_0x4979cd+0x6]]+_0x1b314e[_0x43387f[_0x4979cd+0x7]]+'-'+_0x1b314e[_0x43387f[_0x4979cd+0x8]]+_0x1b314e[_0x43387f[_0x4979cd+0x9]]+'-'+_0x1b314e[_0x43387f[_0x4979cd+0xa]]+_0x1b314e[_0x43387f[_0x4979cd+0xb]]+_0x1b314e[_0x43387f[_0x4979cd+0xc]]+_0x1b314e[_0x43387f[_0x4979cd+0xd]]+_0x1b314e[_0x43387f[_0x4979cd+0xe]]+_0x1b314e[_0x43387f[_0x4979cd+0xf]])[_0x335766(0x452)]();}var _0x2a8705,_0x557402=new Uint8Array(0x10);function _0xf13b45(){const _0x2c9aa3=_0x21a661;if(!_0x2a8705&&(_0x2a8705=typeof crypto<'u'&&crypto[_0x2c9aa3(0x571)]&&crypto['getRandomValues'][_0x2c9aa3(0x1e0)](crypto),!_0x2a8705))throw new Error(_0x2c9aa3(0x140));return _0x2a8705(_0x557402);}var _0x1c6c67=typeof crypto<'u'&&crypto[_0x21a661(0x4a9)]&&crypto['randomUUID'][_0x21a661(0x1e0)](crypto);const _0xd43b61={'randomUUID':_0x1c6c67};function _0x3af69b(_0x584142,_0x3b20bf,_0x242e08){const _0x111387=_0x21a661;if(_0xd43b61[_0x111387(0x4a9)]&&!_0x3b20bf&&!_0x584142)return _0xd43b61['randomUUID']();_0x584142=_0x584142||{};var _0x5a47b5=_0x584142['random']||(_0x584142[_0x111387(0x160)]||_0xf13b45)();return _0x5a47b5[0x6]=_0x5a47b5[0x6]&0xf|0x40,_0x5a47b5[0x8]=_0x5a47b5[0x8]&0x3f|0x80,_0x5c0b84(_0x5a47b5);}var _0x1a099a=Object[_0x21a661(0x1a6)],_0x1b5c50=Object[_0x21a661(0x1c8)],_0x11018b=(_0x54a030,_0x4758c5,_0x2cbd56,_0x5c15dc)=>{const _0x14bccb=_0x21a661;for(var _0x45e72b=_0x5c15dc>0x1?void 0x0:_0x5c15dc?_0x1b5c50(_0x4758c5,_0x2cbd56):_0x4758c5,_0x1f76f6=_0x54a030[_0x14bccb(0x396)]-0x1,_0x34c244;_0x1f76f6>=0x0;_0x1f76f6--)(_0x34c244=_0x54a030[_0x1f76f6])&&(_0x45e72b=(_0x5c15dc?_0x34c244(_0x4758c5,_0x2cbd56,_0x45e72b):_0x34c244(_0x45e72b))||_0x45e72b);return _0x5c15dc&&_0x45e72b&&_0x1a099a(_0x4758c5,_0x2cbd56,_0x45e72b),_0x45e72b;},_0x402d32=(_0x28917f,_0x25551d)=>(_0x51d876,_0x3119a3)=>_0x25551d(_0x51d876,_0x3119a3,_0x28917f);let _0x1a0241=class{constructor(_0x3d6d5f,_0x94a193,_0xc78e44){const _0x406676=_0x21a661;this[_0x406676(0x3b8)]=_0x3d6d5f,this[_0x406676(0x1b1)]=_0x94a193,this[_0x406676(0x2f9)]=_0xc78e44;}[_0x21a661(0x1a7)](_0x18cd5e){const _0x441b51=_0x21a661;this[_0x441b51(0x406)](_0x18cd5e),this['_transformPreviousActiveRange'](_0x18cd5e);}['transformRemoteChangeset'](_0x5246ea){const _0xe25d4=_0x21a661,{unitID:_0x15dff0}=_0x5246ea,_0xb43cb0=this[_0xe25d4(0x2f9)][_0xe25d4(0x4d2)](_0x15dff0)[_0xe25d4(0x2a6)](_0x52fc42[_0xe25d4(0x332)]),{redoCache:_0x1bca6a}=_0xb43cb0[_0xe25d4(0x1ed)]();if(_0x1bca6a[_0xe25d4(0x396)]===0x0)return _0x5246ea;let _0xcd61c8=_0x2d1395[_0xe25d4(0x344)][_0xe25d4(0x207)](_0x5246ea[_0xe25d4(0x32b)][0x0]);for(let _0x1e8c73=0x0;_0x1e8c73<_0x1bca6a[_0xe25d4(0x396)];_0x1e8c73++){const _0x68bafe={'id':_0xe25d4(0x28b),'params':{..._0x1bca6a[_0x1e8c73]}},_0x1d7c80=this['_transformService'][_0xe25d4(0x496)](_0xcd61c8,_0x68bafe,!0x1);if(_0x4ac4e1['isTransformMutationFailure'](_0x1d7c80))throw _0x1d7c80[_0xe25d4(0x3f4)];_0xcd61c8=_0x1d7c80['m1Prime'];}return{..._0x2d1395['Tools']['deepClone'](_0x5246ea),'mutations':[_0xcd61c8]};}[_0x21a661(0x406)](_0x408f71){const _0xcbbbf9=_0x21a661,{unitID:_0x4061dc}=_0x408f71,_0xd17bbf=this[_0xcbbbf9(0x2f9)][_0xcbbbf9(0x4d2)](_0x4061dc)[_0xcbbbf9(0x2a6)](_0x52fc42['DocIMEInputManagerService']),{undoCache:_0x9a9d2b,redoCache:_0x56c68e}=_0xd17bbf[_0xcbbbf9(0x1ed)]();if(_0x9a9d2b[_0xcbbbf9(0x396)]===0x0||_0x56c68e[_0xcbbbf9(0x396)]===0x0)return;const _0x5919fb=[],_0x18a416=[];let _0x3194d9=_0x2d1395[_0xcbbbf9(0x344)][_0xcbbbf9(0x207)](_0x408f71[_0xcbbbf9(0x32b)][0x0]),_0x2d7b04=_0x2d1395[_0xcbbbf9(0x344)][_0xcbbbf9(0x207)](_0x408f71[_0xcbbbf9(0x32b)][0x0]);for(let _0x347ed8=_0x9a9d2b[_0xcbbbf9(0x396)]-0x1;_0x347ed8>=0x0;_0x347ed8--){const _0x3e0539={'id':_0xcbbbf9(0x28b),'params':{..._0x9a9d2b[_0x347ed8]}},_0x51a19b={'id':_0xcbbbf9(0x28b),'params':{..._0x56c68e[_0x347ed8]}},_0x776ac8=this['_transformService'][_0xcbbbf9(0x496)](_0x3194d9,_0x3e0539,!0x1),_0x380fb5=this[_0xcbbbf9(0x1b1)]['transformMutation'](_0x2d7b04,_0x51a19b,!0x1);if(_0x4ac4e1['isTransformMutationFailure'](_0x776ac8))throw _0x776ac8[_0xcbbbf9(0x3f4)];if(_0x4ac4e1['isTransformMutationFailure'](_0x380fb5))throw _0x380fb5[_0xcbbbf9(0x3f4)];_0x5919fb[_0xcbbbf9(0x47a)](_0x776ac8['m2Prime']['params']),_0x18a416[_0xcbbbf9(0x47a)](_0x380fb5[_0xcbbbf9(0x348)][_0xcbbbf9(0x2b6)]),_0x3194d9=_0x776ac8['m1Prime'],_0x2d7b04=_0x380fb5['m1Prime'];}_0xd17bbf[_0xcbbbf9(0x46e)]({'undoCache':_0x5919fb,'redoCache':_0x18a416});}['_transformPreviousActiveRange'](_0x1a161c){const _0x5cf8b1=_0x21a661,{unitID:_0x20abcb}=_0x1a161c,_0x457603=this['_renderManagerService']['getRenderById'](_0x20abcb)[_0x5cf8b1(0x2a6)](_0x52fc42['DocIMEInputManagerService']),_0x49a5b5=_0x457603['getActiveRange']();if(_0x49a5b5==null)return;const _0xbbd42e=[{'id':_0x5cf8b1(0x28b),'params':{'unitId':_0x1a161c[_0x5cf8b1(0x3ea)],'actions':null,'textRanges':[_0x49a5b5]}}],_0x1be10f=this[_0x5cf8b1(0x1b1)][_0x5cf8b1(0x4d1)](_0x1a161c,_0xbbd42e);if(!_0x4ac4e1[_0x5cf8b1(0x56c)](_0x1be10f))throw _0x1be10f[_0x5cf8b1(0x3f4)];const _0x3b414d=_0x1be10f[_0x5cf8b1(0x348)][0x0][_0x5cf8b1(0x2b6)]['textRanges'];Array[_0x5cf8b1(0x1be)](_0x3b414d)&&_0x3b414d[_0x5cf8b1(0x396)]&&_0x457603[_0x5cf8b1(0x33e)](_0x3b414d[0x0]);}};_0x1a0241=_0x11018b([_0x402d32(0x0,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395[_0x21a661(0x45c)])),_0x402d32(0x1,_0x4ac4e1['ITransformService']),_0x402d32(0x2,_0xc3204c['IRenderManagerService'])],_0x1a0241);var _0x472f08=Object[_0x21a661(0x1a6)],_0x3ca56e=Object['getOwnPropertyDescriptor'],_0x347fb1=(_0x4ac72c,_0x305782,_0x10a2db,_0x459fa4)=>{const _0x11e5ee=_0x21a661;for(var _0x45eab5=_0x459fa4>0x1?void 0x0:_0x459fa4?_0x3ca56e(_0x305782,_0x10a2db):_0x305782,_0x390d54=_0x4ac72c[_0x11e5ee(0x396)]-0x1,_0x1c8c23;_0x390d54>=0x0;_0x390d54--)(_0x1c8c23=_0x4ac72c[_0x390d54])&&(_0x45eab5=(_0x459fa4?_0x1c8c23(_0x305782,_0x10a2db,_0x45eab5):_0x1c8c23(_0x45eab5))||_0x45eab5);return _0x459fa4&&_0x45eab5&&_0x472f08(_0x305782,_0x10a2db,_0x45eab5),_0x45eab5;},_0x315cb2=(_0x494f89,_0x190229)=>(_0x388dff,_0x2e09e5)=>_0x190229(_0x388dff,_0x2e09e5,_0x494f89);_0x2e2c4a[_0x21a661(0x4b6)]=class extends _0x2d1395[_0x21a661(0x508)]{constructor(_0x328aa5,_0x427f76,_0x120656,_0x32723c,_0x3bf235){const _0x3f4202=_0x21a661;super(),_0x55c95f(this,_0x3f4202(0x237),new Map()),_0x55c95f(this,_0x3f4202(0x54e),new Map()),_0x55c95f(this,'_disabled',!0x1),(this['_configService']=_0x328aa5,this[_0x3f4202(0x3dd)]=_0x427f76,this[_0x3f4202(0x19d)]=_0x120656,this['_localeService']=_0x32723c,this[_0x3f4202(0x375)]=_0x3bf235,this[_0x3f4202(0x538)]());}[_0x21a661(0x405)](){const _0x118163=_0x21a661;this[_0x118163(0x3d0)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}[_0x21a661(0x51d)](){const _0x25dd9c=_0x21a661;this[_0x25dd9c(0x424)]()[_0x25dd9c(0x25e)](()=>super[_0x25dd9c(0x51d)]());}async[_0x21a661(0x357)](_0x3ee7df){const _0x275171=_0x21a661;return this[_0x275171(0x3d0)]?null:this[_0x275171(0x3dd)][_0x275171(0x423)](_0x4dd0e8(_0x3ee7df));}async['saveOfflineData'](_0x5f37ee,_0x546298){const _0xb6dae2=_0x21a661;return!!this[_0xb6dae2(0x3dd)]['setItem'](_0x5f37ee,_0x546298);}[_0x21a661(0x3e8)](_0x42fe3b,_0x5b332b,_0x495afb,_0x522f16){const _0x4c40aa=_0x21a661,_0x558daa=this[_0x4c40aa(0x375)][_0x4c40aa(0x54c)](_0x42fe3b);this[_0x4c40aa(0x237)][_0x4c40aa(0x4f1)](_0x42fe3b,{'unitID':_0x42fe3b,'type':_0x5b332b,'awaitingChangeset':_0x495afb,'mutations':_0x522f16,'rev':_0x558daa}),this['_saveTaskMap']['has'](_0x42fe3b)||this['_scheduleSaving'](_0x42fe3b);}[_0x21a661(0x2f0)](_0x159a30){const _0x15996b=_0x21a661,_0x49410d=this[_0x15996b(0x3bf)]();_0x49410d===0x0?this['_saveCache'](_0x159a30):this[_0x15996b(0x54e)][_0x15996b(0x4f1)](_0x159a30,setTimeout(()=>this[_0x15996b(0x565)](_0x159a30),_0x49410d));}[_0x21a661(0x3bf)](){const _0x10b3c8=_0x21a661;var _0x410c87;return(_0x410c87=this['_configService'][_0x10b3c8(0x3d9)](_0x42e20f))!=null?_0x410c87:0x3e8;}[_0x21a661(0x565)](_0x47da0f){const _0x5123c5=_0x21a661,_0x5e1522=this['_saveTaskMap'][_0x5123c5(0x2e5)](_0x47da0f);return _0x5e1522!==void 0x0&&window[_0x5123c5(0x40d)](_0x5e1522),this[_0x5123c5(0x3dd)][_0x5123c5(0x1c0)](_0x4dd0e8(_0x47da0f),this[_0x5123c5(0x237)][_0x5123c5(0x2e5)](_0x47da0f))[_0x5123c5(0x25e)](()=>this['_saveTaskMap'][_0x5123c5(0x464)](_0x47da0f));}async[_0x21a661(0x424)](){const _0x350079=_0x21a661,_0x255cca=[];this[_0x350079(0x54e)][_0x350079(0x492)]((_0xc19d1,_0x1685a9)=>{const _0x36e057=_0x350079;window[_0x36e057(0x40d)](_0xc19d1),_0x255cca[_0x36e057(0x48a)](this['_saveCache'](_0x1685a9)['then'](()=>{const _0x51b199=_0x36e057;this[_0x51b199(0x54e)][_0x51b199(0x464)](_0x1685a9);}));}),await Promise[_0x350079(0x564)](_0x255cca);}[_0x21a661(0x538)](){const _0x5a906b=_0x21a661;this[_0x5a906b(0x3e2)](this[_0x5a906b(0x19d)][_0x5a906b(0x36c)](()=>{const _0xf2ebaa=_0x5a906b;if(this['_saveTaskMap'][_0xf2ebaa(0x39e)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}},_0x2e2c4a[_0x21a661(0x4b6)]=_0x347fb1([_0x315cb2(0x0,_0x2d1395[_0x21a661(0x21e)]),_0x315cb2(0x1,_0x2d1395['ILocalStorageService']),_0x315cb2(0x2,_0x40eb02[_0x21a661(0x217)]),_0x315cb2(0x3,_0x2d1395['Inject'](_0x2d1395[_0x21a661(0x177)])),_0x315cb2(0x4,_0x2d1395['Inject'](_0x4ac4e1['RevisionService']))],_0x2e2c4a[_0x21a661(0x4b6)]);function _0x4dd0e8(_0xa83edc){const _0x328d5a=_0x21a661;return _0x328d5a(0x218)+_0xa83edc;}var _0x582800=Object[_0x21a661(0x1a6)],_0x21ce33=Object[_0x21a661(0x1c8)],_0x49d1b5=(_0x3fb360,_0x384acf,_0x4243ee,_0x584417)=>{const _0x40f4c5=_0x21a661;for(var _0x300799=_0x584417>0x1?void 0x0:_0x584417?_0x21ce33(_0x384acf,_0x4243ee):_0x384acf,_0xb475a3=_0x3fb360[_0x40f4c5(0x396)]-0x1,_0xdde1cd;_0xb475a3>=0x0;_0xb475a3--)(_0xdde1cd=_0x3fb360[_0xb475a3])&&(_0x300799=(_0x584417?_0xdde1cd(_0x384acf,_0x4243ee,_0x300799):_0xdde1cd(_0x300799))||_0x300799);return _0x584417&&_0x300799&&_0x582800(_0x384acf,_0x4243ee,_0x300799),_0x300799;},_0x29b27f=(_0x27ad2b,_0x43770f)=>(_0xde197d,_0x226ffe)=>_0x43770f(_0xde197d,_0x226ffe,_0x27ad2b);function _0x10a71a(_0x3f9011){const {unitID:_0x1245c8,mutations:_0x97f1e8}=_0x3f9011;return{'unitId':_0x1245c8,'subUnitId':_0x97f1e8[0x0]['params']['subUnitId']};}let _0x2175b2=class{constructor(_0x1095aa,_0x50a7b9,_0x168cf1){const _0x1afd6c=_0x21a661;this[_0x1afd6c(0x3b8)]=_0x1095aa,this['_transformService']=_0x50a7b9,this[_0x1afd6c(0x209)]=_0x168cf1;}[_0x21a661(0x256)](_0x262ed8){const _0x5d4642=_0x21a661;var _0x4a70ad,_0x517db5,_0x2839b0,_0x3908a4;const _0x484ddf=this[_0x5d4642(0x3b8)][_0x5d4642(0x2e5)](_0x44e81f[_0x5d4642(0x28e)]),{unitId:_0x14bd7c,subUnitId:_0x45dcf6}=_0x10a71a(_0x262ed8),_0x3a32f0=_0x484ddf['getWorkbookSelections'](_0x14bd7c)['getCurrentSelections'](),_0x5a8724=(_0x517db5=(_0x4a70ad=this[_0x5d4642(0x209)]['getUnit'](_0x14bd7c))==null?void 0x0:_0x4a70ad['getActiveSheet']())==null?void 0x0:_0x517db5[_0x5d4642(0x57c)]();if(_0x3a32f0[_0x5d4642(0x396)]===0x0||!_0x14bd7c||!_0x45dcf6)return;const _0x5c18f7=[{'id':_0x44e81f[_0x5d4642(0x411)]['id'],'params':{'unitId':_0x14bd7c,'subUnitId':_0x5a8724,'selections':_0x2d1395[_0x5d4642(0x344)][_0x5d4642(0x207)](_0x3a32f0)}}],_0xfd1e69=this[_0x5d4642(0x1b1)][_0x5d4642(0x4d1)](_0x262ed8,_0x5c18f7);if(!_0x4ac4e1['isTransformMutationsWithChangesetSuccess'](_0xfd1e69))throw _0xfd1e69[_0x5d4642(0x3f4)];const _0x510562=(_0x3908a4=(_0x2839b0=_0xfd1e69[_0x5d4642(0x348)][0x0])==null?void 0x0:_0x2839b0[_0x5d4642(0x2b6)])==null?void 0x0:_0x3908a4[_0x5d4642(0x18f)];Array['isArray'](_0x510562)&&_0x510562['length']&&this[_0x5d4642(0x3b8)][_0x5d4642(0x2e5)](_0x2d1395[_0x5d4642(0x568)])[_0x5d4642(0x457)](_0x44e81f[_0x5d4642(0x411)]['id'],{'unitId':_0x14bd7c,'subUnitId':_0x5a8724,'selections':_0x510562});}};_0x2175b2=_0x49d1b5([_0x29b27f(0x0,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395['Injector'])),_0x29b27f(0x1,_0x4ac4e1[_0x21a661(0x509)]),_0x29b27f(0x2,_0x2d1395[_0x21a661(0x2fa)])],_0x2175b2);const _0x26f002=_0x2d1395[_0x21a661(0x56d)](_0x21a661(0x28d));var _0x33e3f3=(_0x1e8b7f=>(_0x1e8b7f[_0x1e8b7f[_0x21a661(0x579)]=0x0]=_0x21a661(0x579),_0x1e8b7f[_0x1e8b7f['OTHER_CLIENTS_EDITING']=0x1]=_0x21a661(0x1b7),_0x1e8b7f))(_0x33e3f3||{});const _0x18fed8=0x7530,_0xc91387=_0x21a661(0x3d8);class _0x238745 extends _0x2d1395[_0x21a661(0x508)]{constructor(){const _0x36f0d3=_0x21a661;super(),_0x55c95f(this,_0x36f0d3(0x539),_0x2d1395['Tools'][_0x36f0d3(0x241)]()),_0x55c95f(this,_0x36f0d3(0x2af),new Set()),_0x55c95f(this,_0x36f0d3(0x477),new Map()),_0x55c95f(this,_0x36f0d3(0x225),null),_0x55c95f(this,_0x36f0d3(0x3ac),new Map()),_0x55c95f(this,_0x36f0d3(0x349),new Map()),this[_0x36f0d3(0x447)]();}['dispose'](){const _0x306ab3=_0x21a661;super['dispose'](),this[_0x306ab3(0x3ac)][_0x306ab3(0x492)]((_0x12cf9f,_0x1ff21f)=>this[_0x306ab3(0x4fe)](_0x1ff21f)),this[_0x306ab3(0x225)]&&window['clearInterval'](this[_0x306ab3(0x225)]);}[_0x21a661(0x189)](_0x4efd19){return this['_ensureSubject'](_0x4efd19)['pipe'](_0x4c5465['distinctUntilChanged']());}[_0x21a661(0x456)](_0x3cd31d){const _0xf8999a=_0x21a661;this[_0xf8999a(0x2af)][_0xf8999a(0x39e)]===0x0&&this[_0xf8999a(0x23a)](),this[_0xf8999a(0x2af)][_0xf8999a(0x18d)](_0x3cd31d),this[_0xf8999a(0x533)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x3cd31d],'isForwarded':!0x1});}[_0x21a661(0x170)](_0x49518e){const _0x3577fb=_0x21a661;this[_0x3577fb(0x2af)][_0x3577fb(0x464)](_0x49518e),this[_0x3577fb(0x2af)]['size']===0x0&&this[_0x3577fb(0x225)]&&window[_0x3577fb(0x230)](this[_0x3577fb(0x225)]);}[_0x21a661(0x447)](){const _0x229922=_0x21a661;this[_0x229922(0x3e2)](_0x2d1395[_0x229922(0x553)](_0x4c5465[_0x229922(0x232)](window,_0x229922(0x3c9))['subscribe'](_0x2317b8=>{const _0x588b40=_0x229922;if(_0x2317b8['key']!==_0xc91387||!_0x2317b8['newValue'])return;const _0x19915b=JSON['parse'](_0x2317b8[_0x588b40(0x1a5)]);this[_0x588b40(0x2ac)](_0x19915b);}))),window['addEventListener']('unload',()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x229922(0x156)](this[_0x229922(0x2af)])}));}[_0x21a661(0x2ac)](_0x4981a7){const _0x4bc7b7=_0x21a661;switch(_0x4981a7[_0x4bc7b7(0x547)]){case 0x0:this['_handleJoinEvent'](_0x4981a7);break;case 0x1:this[_0x4bc7b7(0x573)](_0x4981a7);break;case 0x2:this[_0x4bc7b7(0x570)](_0x4981a7);break;}}[_0x21a661(0x419)](_0x5d1c61){const _0x574dca=_0x21a661,{unitIDs:_0x42bfc8,memberID:_0x19e1df,isForwarded:_0x364dc8}=_0x5d1c61;_0x42bfc8[_0x574dca(0x492)](_0x56e623=>{const _0x21e986=_0x574dca;if(!_0x364dc8&&this['_unitOnClients'][_0x21e986(0x397)](_0x56e623)&&this[_0x21e986(0x2de)](_0x56e623)[_0x21e986(0x3e9)](0x1),!this[_0x21e986(0x477)][_0x21e986(0x397)](_0x56e623)||!this[_0x21e986(0x477)][_0x21e986(0x2e5)](_0x56e623)[_0x21e986(0x397)](_0x19e1df)){const _0x7c97f2=this[_0x21e986(0x477)][_0x21e986(0x2e5)](_0x56e623)||new Set();_0x7c97f2[_0x21e986(0x18d)](_0x19e1df),this[_0x21e986(0x477)][_0x21e986(0x4f1)](_0x56e623,_0x7c97f2),this[_0x21e986(0x4b7)](_0x19e1df);}}),_0x364dc8||this[_0x574dca(0x533)]({'type':0x0,'memberID':this[_0x574dca(0x539)],'unitIDs':[...this[_0x574dca(0x2af)]],'isForwarded':!0x0});}[_0x21a661(0x4b7)](_0xd8439e){const _0x123250=_0x21a661;this[_0x123250(0x4fe)](_0xd8439e);const _0x213c0e=window['setTimeout'](()=>{const _0x3aa0f4=_0x123250;this[_0x3aa0f4(0x477)]['forEach'](_0x37e609=>{const _0x5344fc=_0x3aa0f4;_0x37e609[_0x5344fc(0x464)](_0xd8439e);});},_0x18fed8*0x2);this[_0x123250(0x3ac)]['set'](_0xd8439e,_0x213c0e);}[_0x21a661(0x4fe)](_0x4b8718){const _0x2ce0ee=_0x21a661;if(this[_0x2ce0ee(0x3ac)]['has'](_0x4b8718)){const _0x49a693=this['_clearOtherTimers']['get'](_0x4b8718);_0x49a693&&window[_0x2ce0ee(0x40d)](_0x49a693),this[_0x2ce0ee(0x3ac)][_0x2ce0ee(0x4f1)](_0x4b8718,null);}}[_0x21a661(0x573)](_0x5c11bf){const _0x1b4312=_0x21a661,{memberID:_0x26992c,unitIDs:_0x2a210b}=_0x5c11bf;_0x2a210b[_0x1b4312(0x492)](_0x4701dd=>{const _0x5af6a0=_0x1b4312;var _0x3a8183;const _0x56b24a=this[_0x5af6a0(0x477)][_0x5af6a0(0x2e5)](_0x4701dd);_0x56b24a&&(_0x56b24a[_0x5af6a0(0x464)](_0x26992c),(_0x3a8183=this[_0x5af6a0(0x2de)](_0x4701dd))==null||_0x3a8183[_0x5af6a0(0x3e9)](_0x56b24a[_0x5af6a0(0x39e)]===0x0?0x0:0x1));}),this[_0x1b4312(0x4fe)](_0x26992c);}[_0x21a661(0x570)](_0x93c030){const _0xe595dc=_0x21a661;this['_scheduleClearOtherTimer'](_0x93c030[_0xe595dc(0x525)]);}[_0x21a661(0x533)](_0x2f89a1){const _0x5c7162=_0x21a661;localStorage[_0x5c7162(0x1c0)](_0xc91387,JSON[_0x5c7162(0x250)](_0x2f89a1));}[_0x21a661(0x23a)](){const _0x3e3d19=_0x21a661;this[_0x3e3d19(0x225)]=window['setInterval'](()=>{const _0x8add52=_0x3e3d19;this['_send']({'type':0x2,'memberID':this[_0x8add52(0x539)]});},_0x18fed8);}['_ensureSubject'](_0x401d02){const _0x25a439=_0x21a661;return this[_0x25a439(0x349)][_0x25a439(0x397)](_0x401d02)||this['_unitStatus'][_0x25a439(0x4f1)](_0x401d02,new _0x4c5465[(_0x25a439(0x2d6))](0x0)),this['_unitStatus'][_0x25a439(0x2e5)](_0x401d02);}}function _0x41e3af(_0x5f94d3){let _0xfc801d='';for(const _0x29d0a8 of _0x5f94d3){const {startOffset:_0xf0ff7b,endOffset:_0x9b3e1,isActive:_0x497b6c}=_0x29d0a8;_0xfc801d['length']&&(_0xfc801d+=','),_0xfc801d+=_0xf0ff7b+':'+_0x9b3e1+':'+(_0x497b6c?'1':'0');}return _0xfc801d;}function _0x16d02e(_0x2e965){const _0x150cc4=_0x21a661,_0x105afb=_0x2e965[_0x150cc4(0x284)](','),_0x4e7b4c=[];for(const _0x2702b7 of _0x105afb){const [_0x9c2fb4,_0x55838e,_0x517471]=_0x2702b7['split'](':');_0x4e7b4c[_0x150cc4(0x48a)]({'startOffset':Number(_0x9c2fb4),'endOffset':Number(_0x55838e),'collapsed':_0x9c2fb4===_0x55838e,'isActive':_0x517471==='1'});}return _0x4e7b4c[_0x150cc4(0x350)](_0x300cde=>_0x300cde[_0x150cc4(0x50e)])||(_0x4e7b4c[0x0][_0x150cc4(0x50e)]=!0x0),_0x4e7b4c;}class _0x58e167 extends _0x2d1395['RxDisposable']{constructor(){const _0x4a9109=_0x21a661;super(...arguments),_0x55c95f(this,_0x4a9109(0x18e),new _0x4c5465[(_0x4a9109(0x2d6))](null)),_0x55c95f(this,_0x4a9109(0x414),this[_0x4a9109(0x18e)]['asObservable']());}[_0x21a661(0x149)](_0x563d50){const _0x36aad9=_0x21a661,{unitID:_0x3ffcda,memberID:_0x568d3c,textRanges:_0x36f0f4}=_0x563d50,_0x2a8463=_0x41e3af(_0x36f0f4),_0x2ccd8d={'unitID':_0x3ffcda,'memberID':_0x568d3c,'selection':_0x2a8463};this[_0x36aad9(0x18e)][_0x36aad9(0x3e9)](_0x2ccd8d);}}var _0x49e000=Object[_0x21a661(0x1a6)],_0x5309b2=Object[_0x21a661(0x1c8)],_0x455914=(_0x417ea1,_0x534dce,_0x4444af,_0x3639bd)=>{const _0x5c9617=_0x21a661;for(var _0x4282bc=_0x3639bd>0x1?void 0x0:_0x3639bd?_0x5309b2(_0x534dce,_0x4444af):_0x534dce,_0x4ad578=_0x417ea1[_0x5c9617(0x396)]-0x1,_0x12b0f1;_0x4ad578>=0x0;_0x4ad578--)(_0x12b0f1=_0x417ea1[_0x4ad578])&&(_0x4282bc=(_0x3639bd?_0x12b0f1(_0x534dce,_0x4444af,_0x4282bc):_0x12b0f1(_0x4282bc))||_0x4282bc);return _0x3639bd&&_0x4282bc&&_0x49e000(_0x534dce,_0x4444af,_0x4282bc),_0x4282bc;},_0xf34f8f=(_0x53ebbb,_0x58b66a)=>(_0x7f7840,_0x2b5186)=>_0x58b66a(_0x7f7840,_0x2b5186,_0x53ebbb);let _0x5cd5ce=class{constructor(_0x574590,_0x3e870a){const _0x3df82e=_0x21a661;this['_injector']=_0x574590,this[_0x3df82e(0x1b1)]=_0x3e870a;}[_0x21a661(0x256)](_0x5197f2){const _0x15b54f=_0x21a661;var _0x49a35f;const _0x2ecea8=this[_0x15b54f(0x3b8)]['get'](_0xe08b87[_0x15b54f(0x54f)]),_0x4aa1d2=(_0x49a35f=_0x2ecea8[_0x15b54f(0x523)]())!=null?_0x49a35f:[];if(_0x4aa1d2[_0x15b54f(0x396)]===0x0)return;const _0x578568=[{'id':_0x15b54f(0x28b),'params':{'unitId':_0x5197f2[_0x15b54f(0x3ea)],'actions':null,'textRanges':_0x4aa1d2}}],_0x183386=this['_transformService'][_0x15b54f(0x4d1)](_0x5197f2,_0x578568);if(!_0x4ac4e1[_0x15b54f(0x56c)](_0x183386))throw _0x183386[_0x15b54f(0x3f4)];const _0x2cfabc=_0x183386[_0x15b54f(0x348)][0x0]['params']['textRanges'];Array[_0x15b54f(0x1be)](_0x2cfabc)&&_0x2cfabc['length']&&_0x2ecea8[_0x15b54f(0x2bf)](_0x2cfabc,!0x1);}};_0x5cd5ce=_0x455914([_0xf34f8f(0x0,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395[_0x21a661(0x45c)])),_0xf34f8f(0x1,_0x4ac4e1[_0x21a661(0x509)])],_0x5cd5ce);const _0x199aa8=new Set([_0x44e81f['InsertSheetMutation']['id']]);function _0x3bea4c(_0x4291e1,_0x393b9c,_0x1a4722,_0x107b66,_0x174c2d){const _0x357b5e=_0x21a661;var _0x38d97a,_0x2a96ae,_0x3aee00,_0x192db6;const _0x12c5e0=[];for(const _0x706401 of _0x4291e1)if(_0x199aa8[_0x357b5e(0x397)](_0x706401['id'])){if(_0x12c5e0['length']>0x0)break;_0x12c5e0[_0x357b5e(0x48a)](_0x706401);break;}else _0x12c5e0[_0x357b5e(0x48a)](_0x706401);const _0x3e38b2=(_0x2a96ae=(_0x38d97a=_0x174c2d[_0x357b5e(0x3b1)]())==null?void 0x0:_0x38d97a['userID'])!=null?_0x2a96ae:'unknown',_0x383903=(_0x192db6=(_0x3aee00=_0x174c2d[_0x357b5e(0x3b1)]())==null?void 0x0:_0x3aee00[_0x357b5e(0x525)])!=null?_0x192db6:_0x357b5e(0x4ae);return{'changeset':{'unitID':_0x393b9c,'type':_0x4ac4e1['mapDocumentTypeToUniverType'](_0x1a4722[_0x357b5e(0x51c)](_0x393b9c)),'baseRev':_0x107b66['getCurrentRevOfUnit'](_0x393b9c),'revision':0x0,'userID':_0x3e38b2,'memberID':_0x383903,'mutations':_0x12c5e0},'pendingMutations':_0x4291e1[_0x357b5e(0x206)](_0x12c5e0['length'])};}function _0x43ea61(_0x5de235,_0x46a98d,_0x5cce62,_0x16f679,_0xb9c5c8){const _0x4cb224=_0x21a661;var _0x15ec59,_0x45b0fc,_0x351e94,_0x3376f0;const _0x18957e=[_0x5de235[_0x4cb224(0x384)]((_0x362675,_0x4f7e79)=>{const _0x4d621c=_0x4cb224;var _0x4a27ad;const {id:_0x49a27e}=_0x362675,{id:_0x2d64e6,type:_0x352c28}=_0x4f7e79,_0x1bada9=(_0x4a27ad=_0x362675[_0x4d621c(0x2b6)])!=null?_0x4a27ad:{'actions':null},_0xc40e27=_0x4f7e79['params'];if(_0x49a27e&&_0x49a27e!==_0x2d64e6)throw new Error(_0x4d621c(0x39f)+_0x49a27e+'\x20-\x20'+_0x2d64e6+'.');return{..._0x362675,'id':_0x2d64e6,'type':_0x352c28,'params':{'unitId':_0xc40e27[_0x4d621c(0x3e4)],'textRanges':_0xc40e27[_0x4d621c(0x381)],'actions':_0x2d1395[_0x4d621c(0x210)][_0x4d621c(0x4d7)](_0x1bada9[_0x4d621c(0x42d)],_0xc40e27[_0x4d621c(0x42d)])}};},{})],_0x405a8b=(_0x45b0fc=(_0x15ec59=_0xb9c5c8['getCurrentUser']())==null?void 0x0:_0x15ec59[_0x4cb224(0x506)])!=null?_0x45b0fc:_0x4cb224(0x4ae),_0x51f972=(_0x3376f0=(_0x351e94=_0xb9c5c8[_0x4cb224(0x3b1)]())==null?void 0x0:_0x351e94['memberID'])!=null?_0x3376f0:'unknown';return{'changeset':{'unitID':_0x46a98d,'type':_0x4ac4e1[_0x4cb224(0x3ab)](_0x5cce62[_0x4cb224(0x51c)](_0x46a98d)),'baseRev':_0x16f679[_0x4cb224(0x54c)](_0x46a98d),'revision':0x0,'userID':_0x405a8b,'memberID':_0x51f972,'mutations':_0x18957e},'pendingMutations':[]};}const _0x262a42={'id':_0x44e81f['EmptyMutation']['id'],'type':_0x2d1395['CommandType'][_0x21a661(0x236)],'params':{}};var _0x265107=Object['defineProperty'],_0x2928bf=Object[_0x21a661(0x1c8)],_0x54505b=(_0xdcd8d6,_0x307aac,_0x534bdf,_0x35d790)=>{const _0x5e841a=_0x21a661;for(var _0xf6e027=_0x35d790>0x1?void 0x0:_0x35d790?_0x2928bf(_0x307aac,_0x534bdf):_0x307aac,_0x222ab3=_0xdcd8d6[_0x5e841a(0x396)]-0x1,_0x2bff62;_0x222ab3>=0x0;_0x222ab3--)(_0x2bff62=_0xdcd8d6[_0x222ab3])&&(_0xf6e027=(_0x35d790?_0x2bff62(_0x307aac,_0x534bdf,_0xf6e027):_0x2bff62(_0xf6e027))||_0xf6e027);return _0x35d790&&_0xf6e027&&_0x265107(_0x307aac,_0x534bdf,_0xf6e027),_0xf6e027;},_0x1de32c=(_0x1463b3,_0x3aebee)=>(_0x481840,_0x2f5f4b)=>_0x3aebee(_0x481840,_0x2f5f4b,_0x1463b3),_0x27b30b=(_0x5975e6=>(_0x5975e6['NOT_COLLAB']=_0x21a661(0x197),_0x5975e6[_0x21a661(0x244)]=_0x21a661(0x448),_0x5975e6[_0x21a661(0x3d4)]=_0x21a661(0x15a),_0x5975e6[_0x21a661(0x2dc)]=_0x21a661(0x374),_0x5975e6['AWAITING_WITH_PENDING']=_0x21a661(0x4ec),_0x5975e6[_0x21a661(0x27d)]=_0x21a661(0x37d),_0x5975e6[_0x21a661(0x21b)]='conflict',_0x5975e6[_0x21a661(0x1af)]=_0x21a661(0x328),_0x5975e6))(_0x27b30b||{});class _0x5dc26a{constructor(_0x3d8310,_0x1985c7,_0x3cdde7,_0x54d541,_0x563a5e,_0x536ac1,_0x17e97a,_0x48e0f7,_0x1dc629){const _0x213f0a=_0x21a661;_0x55c95f(this,_0x213f0a(0x2b9),null),_0x55c95f(this,_0x213f0a(0x365),[]),(this['unitID']=_0x3d8310,this[_0x213f0a(0x547)]=_0x1985c7,this[_0x213f0a(0x2d3)]=_0x563a5e,this[_0x213f0a(0x22b)]=_0x536ac1,this['_undoRedoService']=_0x17e97a,this['_revisionService']=_0x48e0f7,this['_localCacheService']=_0x1dc629,this[_0x213f0a(0x2b9)]=_0x3cdde7,this[_0x213f0a(0x365)]=_0x54d541);}['_checkMissing'](_0x19424f){const _0x59b914=_0x21a661,_0x88638c=this[_0x59b914(0x375)]['getCurrentRevOfUnit'](this[_0x59b914(0x3ea)]);return _0x19424f['revision']>_0x88638c+0x1?(this['_handler']['onMissingChangesets']({'from':_0x88638c,'to':_0x19424f['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x24dc87){const _0x59ed44=_0x21a661;this[_0x59ed44(0x25f)][_0x59ed44(0x4fd)](this['unitID'],_0x24dc87);}[_0x21a661(0x451)](_0x247751){const _0x1f74e0=_0x21a661;var _0x9787d2,_0x5a314c;(_0x5a314c=(_0x9787d2=this[_0x1f74e0(0x2d3)])[_0x1f74e0(0x431)])==null||_0x5a314c[_0x1f74e0(0x4d5)](_0x9787d2,_0x247751);}[_0x21a661(0x425)](_0x125025){const _0x51fbb6=_0x21a661;var _0x15de54,_0x56931b;return(_0x56931b=(_0x15de54=this['_handler'])[_0x51fbb6(0x420)])==null?void 0x0:_0x56931b[_0x51fbb6(0x4d5)](_0x15de54,_0x125025);}['_transformRemoteChangesetByIMECache'](_0x1ca838){const _0x1c8c77=_0x21a661;var _0x46c41c,_0x85e356,_0xbc3254;return(_0xbc3254=(_0x85e356=(_0x46c41c=this[_0x1c8c77(0x2d3)])[_0x1c8c77(0x2cc)])==null?void 0x0:_0x85e356[_0x1c8c77(0x4d5)](_0x46c41c,_0x1ca838))!=null?_0xbc3254:_0x1ca838;}[_0x21a661(0x24a)](_0xaac7a){const _0x5c8c0f=_0x21a661;var _0x11f2fc,_0x5c0e91;if(this[_0x5c8c0f(0x547)]===_0x2a040f[_0x5c8c0f(0x4ef)]){const {unitID:_0xce2cdc,mutations:_0x11cc5b,memberID:_0x489b67}=_0xaac7a,_0x1202ef=_0x11cc5b[0x0][_0x5c8c0f(0x2b6)][_0x5c8c0f(0x381)];Array[_0x5c8c0f(0x1be)](_0x1202ef)&&_0x1202ef[_0x5c8c0f(0x396)]>0x0&&((_0x5c0e91=(_0x11f2fc=this[_0x5c8c0f(0x2d3)])[_0x5c8c0f(0x4c1)])==null||_0x5c0e91['call'](_0x11f2fc,{'unitID':_0xce2cdc,'memberID':_0x489b67,'textRanges':_0x1202ef}));}}['_updateLocalCache'](){const _0xf18b07=_0x21a661;this[_0xf18b07(0x3bb)]['updateOfflineData'](this[_0xf18b07(0x3ea)],this[_0xf18b07(0x547)],this[_0xf18b07(0x2b9)],this[_0xf18b07(0x365)]);}[_0x21a661(0x1e2)](){const _0x63a3c0=_0x21a661;return this[_0x63a3c0(0x375)][_0x63a3c0(0x54c)](this[_0x63a3c0(0x3ea)]);}[_0x21a661(0x32e)](){const _0x56be1e=_0x21a661;this['_revisionService'][_0x56be1e(0x4d0)](this['unitID']);}[_0x21a661(0x2d0)](_0x39a116){const _0x54824d=_0x21a661;var _0x105549;const _0x5e7ac9=this['_transformRemoteChangesetByIMECache'](_0x39a116),_0x35b8e3=_0x2d1395[_0x54824d(0x4fb)](_0x5e7ac9['mutations'],this[_0x54824d(0x22b)],{'fromCollab':!0x0});if(!_0x35b8e3[_0x54824d(0x444)])throw _0x35b8e3['error']instanceof Error?_0x35b8e3[_0x54824d(0x3f4)]:new Error((_0x105549=_0x35b8e3[_0x54824d(0x3f4)])!=null?_0x105549:_0x54824d(0x227));this[_0x54824d(0x425)](_0x5e7ac9),this['_transformUndoredo'](_0x39a116),this[_0x54824d(0x451)](_0x5e7ac9),this[_0x54824d(0x24a)](_0x5e7ac9),this[_0x54824d(0x32e)]();}}let _0x54742=class extends _0x5dc26a{constructor(_0x5a1007,_0x3a7e9a,_0x1d3a0,_0x9dbac,_0x3378bb,_0x6b493c,_0xdf3f88,_0x886e29,_0x219963,_0x31ac76){const _0x28f524=_0x21a661;super(_0x5a1007,_0x3a7e9a,null,[],_0x1d3a0,_0x886e29,_0xdf3f88,_0x9dbac,_0x3378bb),_0x55c95f(this,'status',_0x28f524(0x448)),(this['_injector']=_0x6b493c,this['_logService']=_0x219963,this['_transformService']=_0x31ac76);}[_0x21a661(0x309)](_0x278e23){const _0x55dade=_0x21a661,_0x5c22c8=this[_0x55dade(0x3b8)][_0x55dade(0x3e5)](_0x18d3ad,this[_0x55dade(0x3ea)],this[_0x55dade(0x547)],[_0x278e23],this[_0x55dade(0x2d3)]);return _0x5c22c8['_schedule'](),_0x5c22c8[_0x55dade(0x242)](),_0x5c22c8;}[_0x21a661(0x4f3)](_0x594eac){const _0x1a7187=_0x21a661;if(this[_0x1a7187(0x2e0)](_0x594eac))return this['_injector'][_0x1a7187(0x3e5)](_0x43e583,this[_0x1a7187(0x3ea)],this['type'],null,[],null,[_0x594eac],this[_0x1a7187(0x2d3)]);try{const _0x499892=this[_0x1a7187(0x1b1)]['transformMutationsWithChangeset'](_0x594eac,[_0x262a42]);if(_0x4ac4e1['isTransformMutationsWithChangesetSuccess'](_0x499892)){const {c1Prime:_0x19897c}=_0x499892;return this['_executeRemoteChangeset'](_0x19897c),this;}throw _0x499892[_0x1a7187(0x3f4)];}catch(_0x367449){return this[_0x1a7187(0x546)][_0x1a7187(0x3f4)](_0x367449),this[_0x1a7187(0x2aa)](!0x1);}}[_0x21a661(0x2aa)](_0x3cbea1){const _0x3bacdc=_0x21a661;return this[_0x3bacdc(0x3b8)][_0x3bacdc(0x3e5)](_0x4194f8,this['unitID'],this['type'],null,[],this[_0x3bacdc(0x2d3)],_0x3cbea1);}['onRemoteAck'](){const _0x186ef2=_0x21a661;throw new Error(_0x186ef2(0x16d));}[_0x21a661(0x15f)](){const _0x2cef64=_0x21a661;throw new Error(_0x2cef64(0x30c));}['toggleOffline'](){const _0x179f26=_0x21a661;return this[_0x179f26(0x3b8)][_0x179f26(0x3e5)](_0x3b2047,this[_0x179f26(0x3ea)],this[_0x179f26(0x547)],null,[],this[_0x179f26(0x2d3)]);}[_0x21a661(0x3cf)](){return this;}[_0x21a661(0x19f)](){const _0x1cd27b=_0x21a661;throw new Error(_0x1cd27b(0x2a8));}['fetchMiss'](){const _0xa23753=_0x21a661,_0x4b32c0=this[_0xa23753(0x375)][_0xa23753(0x54c)](this['unitID']);return this[_0xa23753(0x2d3)][_0xa23753(0x2c5)]({'from':_0x4b32c0,'to':0x0}),this[_0xa23753(0x3b8)][_0xa23753(0x3e5)](_0x43e583,this[_0xa23753(0x3ea)],this[_0xa23753(0x547)],null,[],null,[],this[_0xa23753(0x2d3)]);}};_0x54742=_0x54505b([_0x1de32c(0x3,_0x2d1395[_0x21a661(0x2f7)](_0x4ac4e1[_0x21a661(0x528)])),_0x1de32c(0x4,_0x2d1395['Inject'](_0x2e2c4a[_0x21a661(0x4b6)])),_0x1de32c(0x5,_0x2d1395['Inject'](_0x2d1395['Injector'])),_0x1de32c(0x6,_0x2d1395[_0x21a661(0x1a4)]),_0x1de32c(0x7,_0x2d1395[_0x21a661(0x568)]),_0x1de32c(0x8,_0x2d1395[_0x21a661(0x52d)]),_0x1de32c(0x9,_0x4ac4e1[_0x21a661(0x509)])],_0x54742);let _0x18d3ad=class extends _0x5dc26a{constructor(_0x4992cf,_0x3de7e6,_0x341c5,_0x16df45,_0x383ac1,_0x3fd26f,_0x177fa3,_0x1fabfe,_0x582375,_0x4ca5e9,_0x2939ae,_0x28a4c7,_0x5384b0,_0x5a9525){const _0x59a4bc=_0x21a661;super(_0x4992cf,_0x3de7e6,null,_0x341c5,_0x16df45,_0x4ca5e9,_0x5a9525,_0x3fd26f,_0x177fa3),_0x55c95f(this,_0x59a4bc(0x468),_0x59a4bc(0x15a)),_0x55c95f(this,_0x59a4bc(0x436),null),_0x55c95f(this,'_sendingTimer',null),(this[_0x59a4bc(0x3b8)]=_0x383ac1,this[_0x59a4bc(0x326)]=_0x1fabfe,this[_0x59a4bc(0x546)]=_0x582375,this[_0x59a4bc(0x3ee)]=_0x2939ae,this[_0x59a4bc(0x1b1)]=_0x28a4c7,this[_0x59a4bc(0x455)]=_0x5384b0);}[_0x21a661(0x309)](_0x10ff02){const _0x247607=_0x21a661;return this[_0x247607(0x365)][_0x247607(0x48a)](_0x10ff02),this[_0x247607(0x242)](),this;}[_0x21a661(0x4f3)](_0xa4be5f){const _0x3d8419=_0x21a661;if(this[_0x3d8419(0x2e0)](_0xa4be5f))return this[_0x3d8419(0x1df)](),this[_0x3d8419(0x3b8)][_0x3d8419(0x3e5)](_0x43e583,this[_0x3d8419(0x3ea)],this[_0x3d8419(0x547)],null,this[_0x3d8419(0x365)],null,[_0xa4be5f],this[_0x3d8419(0x2d3)]);try{const _0x38c758=this['_transformService'][_0x3d8419(0x4d1)](_0xa4be5f,this[_0x3d8419(0x365)]);if(_0x4ac4e1['isTransformMutationsWithChangesetSuccess'](_0x38c758)){const {c1Prime:_0x49e617,m2Prime:_0x17c9c9}=_0x38c758;this[_0x3d8419(0x2d0)](_0x49e617);const _0x15eb12=this[_0x3d8419(0x3b8)][_0x3d8419(0x3e5)](_0x18d3ad,this[_0x3d8419(0x3ea)],this['type'],_0x17c9c9,this[_0x3d8419(0x2d3)]);return this[_0x3d8419(0x1df)](),_0x15eb12[_0x3d8419(0x575)](this[_0x3d8419(0x436)]?Math[_0x3d8419(0x233)](0x0,new Date()['getTime']()-this[_0x3d8419(0x436)]):this[_0x3d8419(0x55c)]()),_0x15eb12;}throw _0x38c758[_0x3d8419(0x3f4)];}catch(_0x4805f5){return this['_logService'][_0x3d8419(0x3f4)](_0x4805f5),this['_onConflict'](!0x1);}}[_0x21a661(0x510)](){const _0x46f7ce=_0x21a661;throw new Error(_0x46f7ce(0x178));}['onRemoteRej'](){const _0x46ebcb=_0x21a661;throw new Error(_0x46ebcb(0x4ac));}[_0x21a661(0x302)](){const _0x307d17=_0x21a661;return this['_clearScheduledTask'](),this['_injector'][_0x307d17(0x3e5)](_0x3b2047,this[_0x307d17(0x3ea)],this['type'],null,this[_0x307d17(0x365)],this[_0x307d17(0x2d3)]);}[_0x21a661(0x3cf)](){return this;}[_0x21a661(0x575)](_0x4aba67){const _0x35aee7=_0x21a661,_0xf61e2c=_0x4aba67!=null?_0x4aba67:this[_0x35aee7(0x55c)]();this[_0x35aee7(0x436)]=new Date()[_0x35aee7(0x3c7)](),this[_0x35aee7(0x358)]=window[_0x35aee7(0x20b)](()=>{const _0x38edc6=_0x35aee7;this[_0x38edc6(0x1df)]();let _0x4d10ce=null;switch(this['type']){case _0x2a040f[_0x38edc6(0x196)]:{_0x4d10ce=_0x3bea4c(this[_0x38edc6(0x365)],this[_0x38edc6(0x3ea)],this['_univerInstanceService'],this[_0x38edc6(0x375)],this['_memberService']);break;}case _0x2a040f[_0x38edc6(0x4ef)]:{this[_0x38edc6(0x365)][_0x38edc6(0x4f6)](_0x366b83=>_0x366b83['id']===_0xe08b87[_0x38edc6(0x53a)]['id'])?_0x4d10ce=_0x43ea61(this['_pendingMutations'],this[_0x38edc6(0x3ea)],this[_0x38edc6(0x455)],this['_revisionService'],this[_0x38edc6(0x326)]):_0x4d10ce=_0x3bea4c(this[_0x38edc6(0x365)],this['unitID'],this[_0x38edc6(0x455)],this[_0x38edc6(0x375)],this[_0x38edc6(0x326)]);break;}default:throw new Error(_0x38edc6(0x370)+this[_0x38edc6(0x547)]+'\x20in\x20_schedule.');}const {changeset:_0x4d258b,pendingMutations:_0x17334d}=_0x4d10ce;this[_0x38edc6(0x2d3)]['onSendChangeset'](_0x4d258b);const _0x410fb9=_0x17334d[_0x38edc6(0x396)]?this['_injector'][_0x38edc6(0x3e5)](_0x5e3d91,this[_0x38edc6(0x3ea)],this['type'],_0x4d258b,_0x17334d,this[_0x38edc6(0x2d3)]):this[_0x38edc6(0x3b8)]['createInstance'](_0x430898,this[_0x38edc6(0x3ea)],this[_0x38edc6(0x547)],_0x4d258b,this[_0x38edc6(0x2d3)]);_0x410fb9[_0x38edc6(0x242)](),this[_0x38edc6(0x2d3)][_0x38edc6(0x401)](this,_0x410fb9);},_0xf61e2c);}['_getSendChangesetTimeout'](){const _0x3f63d9=_0x21a661;var _0x3c03d9;const _0x2dfdc2=this[_0x3f63d9(0x3ee)]['getConfig'](_0x3839b7);return(_0x3c03d9=_0x2dfdc2==null?void 0x0:_0x2dfdc2['sendChangesetTimeout'])!=null?_0x3c03d9:0x7d0;}['resend'](){const _0x49c71c=_0x21a661;throw new Error(_0x49c71c(0x471));}[_0x21a661(0x1df)](){const _0x150824=_0x21a661;this[_0x150824(0x358)]!=null&&(clearTimeout(this[_0x150824(0x358)]),this[_0x150824(0x358)]=null);}[_0x21a661(0x2aa)](_0x47654f){const _0xd2df15=_0x21a661;return this[_0xd2df15(0x1df)](),this[_0xd2df15(0x3b8)][_0xd2df15(0x3e5)](_0x4194f8,this[_0xd2df15(0x3ea)],this[_0xd2df15(0x547)],null,this[_0xd2df15(0x365)],this[_0xd2df15(0x2d3)],_0x47654f);}};_0x18d3ad=_0x54505b([_0x1de32c(0x4,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395['Injector'])),_0x1de32c(0x5,_0x2d1395[_0x21a661(0x2f7)](_0x4ac4e1[_0x21a661(0x528)])),_0x1de32c(0x6,_0x2d1395[_0x21a661(0x2f7)](_0x2e2c4a['LocalCacheService'])),_0x1de32c(0x7,_0x2d1395['Inject'](_0xb6854f)),_0x1de32c(0x8,_0x2d1395[_0x21a661(0x52d)]),_0x1de32c(0x9,_0x2d1395[_0x21a661(0x568)]),_0x1de32c(0xa,_0x2d1395[_0x21a661(0x21e)]),_0x1de32c(0xb,_0x4ac4e1[_0x21a661(0x509)]),_0x1de32c(0xc,_0x2d1395[_0x21a661(0x2fa)]),_0x1de32c(0xd,_0x2d1395[_0x21a661(0x1a4)])],_0x18d3ad);let _0x430898=class extends _0x5dc26a{constructor(_0x227e7d,_0x1d13f7,_0x16e0ca,_0x18a3c0,_0x451f42,_0x159fd5,_0x5967ff,_0x4c08ac,_0x6179e,_0x73da6e,_0x13fdc7){const _0x40f31c=_0x21a661;super(_0x227e7d,_0x1d13f7,_0x16e0ca,[],_0x18a3c0,_0x4c08ac,_0x13fdc7,_0x159fd5,_0x5967ff),_0x55c95f(this,_0x40f31c(0x468),'awaiting'),(this['_injector']=_0x451f42,this['_logService']=_0x6179e,this['_transformService']=_0x73da6e);}[_0x21a661(0x309)](_0x17f858){const _0x462141=_0x21a661,_0x462995=this['_injector'][_0x462141(0x3e5)](_0x5e3d91,this['unitID'],this[_0x462141(0x547)],this[_0x462141(0x2b9)],[_0x17f858],this[_0x462141(0x2d3)]);return _0x462995['_updateLocalCache'](),_0x462995;}[_0x21a661(0x4f3)](_0x33d8be){const _0x36100d=_0x21a661;if(this[_0x36100d(0x2e0)](_0x33d8be))return this[_0x36100d(0x3b8)][_0x36100d(0x3e5)](_0x43e583,this['unitID'],this[_0x36100d(0x547)],this[_0x36100d(0x2b9)],[],null,[_0x33d8be],this['_handler']);try{const _0x5fe760=this[_0x36100d(0x1b1)][_0x36100d(0x505)]([_0x33d8be],[this[_0x36100d(0x2b9)]],!0x1);if(_0x4ac4e1[_0x36100d(0x49e)](_0x5fe760)){const {c1Prime:_0x20ad66,c2Prime:_0x4ccf80}=_0x5fe760;this['_executeRemoteChangeset'](_0x20ad66[0x0]),_0x4ccf80[0x0][_0x36100d(0x45e)]=this[_0x36100d(0x1e2)]();const _0xfc4bc4=this[_0x36100d(0x3b8)]['createInstance'](_0x430898,this[_0x36100d(0x3ea)],this[_0x36100d(0x547)],_0x4ccf80[0x0],this[_0x36100d(0x2d3)]);return _0xfc4bc4['_updateLocalCache'](),_0xfc4bc4;}return this[_0x36100d(0x2aa)](!0x1);}catch(_0x335f99){return this[_0x36100d(0x546)][_0x36100d(0x3f4)](_0x335f99),this['_onConflict'](!0x1);}}[_0x21a661(0x510)](_0x3aab30){const _0x573b39=_0x21a661,_0x1c3f1c=this[_0x573b39(0x375)][_0x573b39(0x54c)](this['unitID']);if(_0x3aab30[_0x573b39(0x1ec)]<_0x1c3f1c-0x1)return this;if(this['_checkMissing'](_0x3aab30))return this[_0x573b39(0x3b8)][_0x573b39(0x3e5)](_0x43e583,this[_0x573b39(0x3ea)],this[_0x573b39(0x547)],null,[],this[_0x573b39(0x2b9)],[],this[_0x573b39(0x2d3)]);this['_incrementRevisionNumber']();const _0x48f1dd=this['_injector'][_0x573b39(0x3e5)](_0x54742,this[_0x573b39(0x3ea)],this['type'],this['_handler']);return _0x48f1dd['_updateLocalCache'](),_0x48f1dd;}['onRemoteRej'](_0x4c00a6){const _0x43aaf0=_0x21a661;return this[_0x43aaf0(0x2aa)](!!(_0x4c00a6!=null&&_0x4c00a6[_0x43aaf0(0x1b6)]));}['toggleOffline'](){const _0x466cbf=_0x21a661;return this[_0x466cbf(0x3b8)][_0x466cbf(0x3e5)](_0x3b2047,this[_0x466cbf(0x3ea)],this[_0x466cbf(0x547)],this[_0x466cbf(0x2b9)],[],this[_0x466cbf(0x2d3)]);}[_0x21a661(0x3cf)](){return this;}[_0x21a661(0x19f)](){const _0x2f709f=_0x21a661;this['_handler'][_0x2f709f(0x38c)](this[_0x2f709f(0x2b9)]);}[_0x21a661(0x2aa)](_0x371fc1){const _0x2be851=_0x21a661;return this[_0x2be851(0x3b8)]['createInstance'](_0x4194f8,this['unitID'],this[_0x2be851(0x547)],this[_0x2be851(0x2b9)],[],this[_0x2be851(0x2d3)],_0x371fc1);}};_0x430898=_0x54505b([_0x1de32c(0x4,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395['Injector'])),_0x1de32c(0x5,_0x2d1395[_0x21a661(0x2f7)](_0x4ac4e1[_0x21a661(0x528)])),_0x1de32c(0x6,_0x2d1395[_0x21a661(0x2f7)](_0x2e2c4a['LocalCacheService'])),_0x1de32c(0x7,_0x2d1395[_0x21a661(0x568)]),_0x1de32c(0x8,_0x2d1395[_0x21a661(0x52d)]),_0x1de32c(0x9,_0x4ac4e1[_0x21a661(0x509)]),_0x1de32c(0xa,_0x2d1395[_0x21a661(0x1a4)])],_0x430898);let _0x5e3d91=class extends _0x5dc26a{constructor(_0x3b338f,_0x35c46e,_0x27bfaa,_0x486cc7,_0x4a80bd,_0x4e0fd8,_0x4341de,_0x2fda39,_0xa8824c,_0x23a3cb,_0x14c00d,_0x43f5eb){const _0x2397bb=_0x21a661;super(_0x3b338f,_0x35c46e,_0x27bfaa,_0x486cc7,_0x4a80bd,_0xa8824c,_0x43f5eb,_0x4341de,_0x2fda39),_0x55c95f(this,_0x2397bb(0x468),_0x2397bb(0x4ec)),(this[_0x2397bb(0x3b8)]=_0x4e0fd8,this[_0x2397bb(0x546)]=_0x23a3cb,this[_0x2397bb(0x1b1)]=_0x14c00d);}['appendMutation'](_0x36150e){const _0x386d78=_0x21a661;return this[_0x386d78(0x365)][_0x386d78(0x48a)](_0x36150e),this;}[_0x21a661(0x4f3)](_0x5afa27){const _0x5eb2f9=_0x21a661;if(this[_0x5eb2f9(0x2e0)](_0x5afa27))return this[_0x5eb2f9(0x3b8)][_0x5eb2f9(0x3e5)](_0x43e583,this['unitID'],this[_0x5eb2f9(0x547)],this[_0x5eb2f9(0x2b9)],this[_0x5eb2f9(0x365)],null,[_0x5afa27],this[_0x5eb2f9(0x2d3)]);try{const _0x209f8a=this[_0x5eb2f9(0x1b1)][_0x5eb2f9(0x505)]([_0x5afa27],[this['_awaitingChangeset']],!0x1);if(_0x4ac4e1[_0x5eb2f9(0x49e)](_0x209f8a)){const {c1Prime:_0x539521,c2Prime:_0x3ad234}=_0x209f8a,_0x11635d=this[_0x5eb2f9(0x1b1)][_0x5eb2f9(0x4d1)](_0x539521[0x0],this[_0x5eb2f9(0x365)]);if(_0x4ac4e1[_0x5eb2f9(0x56c)](_0x11635d)){const {c1Prime:_0x2e1d49,m2Prime:_0x4e2540}=_0x11635d;return this[_0x5eb2f9(0x2d0)](_0x2e1d49),_0x3ad234[0x0][_0x5eb2f9(0x45e)]=this[_0x5eb2f9(0x1e2)](),this[_0x5eb2f9(0x3b8)][_0x5eb2f9(0x3e5)](_0x5e3d91,this[_0x5eb2f9(0x3ea)],this['type'],_0x3ad234[0x0],_0x4e2540,this[_0x5eb2f9(0x2d3)]);}throw _0x11635d[_0x5eb2f9(0x3f4)];}throw _0x209f8a['error'];}catch(_0x35e230){return this[_0x5eb2f9(0x546)]['error'](_0x35e230),this[_0x5eb2f9(0x2aa)](!0x1);}}[_0x21a661(0x510)](_0x1898dc){const _0x190416=_0x21a661;if(this['_checkMissing'](_0x1898dc))return this[_0x190416(0x3b8)]['createInstance'](_0x43e583,this[_0x190416(0x3ea)],this[_0x190416(0x547)],null,this[_0x190416(0x365)],this[_0x190416(0x2b9)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x1ff65f=this['_injector'][_0x190416(0x3e5)](_0x18d3ad,this[_0x190416(0x3ea)],this[_0x190416(0x547)],this[_0x190416(0x365)],this[_0x190416(0x2d3)]);return _0x1ff65f[_0x190416(0x575)](),_0x1ff65f[_0x190416(0x242)](),_0x1ff65f;}[_0x21a661(0x15f)](_0x436f40){const _0x4567cd=_0x21a661;return this[_0x4567cd(0x2aa)](!!(_0x436f40!=null&&_0x436f40['isPermissionRej']));}[_0x21a661(0x302)](){const _0x5d0754=_0x21a661;return this[_0x5d0754(0x3b8)][_0x5d0754(0x3e5)](_0x3b2047,this[_0x5d0754(0x3ea)],this['type'],this[_0x5d0754(0x2b9)],this[_0x5d0754(0x365)],this[_0x5d0754(0x2d3)]);}[_0x21a661(0x3cf)](){return this;}[_0x21a661(0x19f)](){const _0x4f8317=_0x21a661;this['_handler'][_0x4f8317(0x38c)](this['_awaitingChangeset']);}['_onConflict'](_0x5f2087){const _0x380912=_0x21a661;return this['_injector']['createInstance'](_0x4194f8,this[_0x380912(0x3ea)],this['type'],null,this[_0x380912(0x365)],this[_0x380912(0x2d3)],_0x5f2087);}};_0x5e3d91=_0x54505b([_0x1de32c(0x5,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395[_0x21a661(0x45c)])),_0x1de32c(0x6,_0x2d1395[_0x21a661(0x2f7)](_0x4ac4e1[_0x21a661(0x528)])),_0x1de32c(0x7,_0x2d1395[_0x21a661(0x2f7)](_0x2e2c4a[_0x21a661(0x4b6)])),_0x1de32c(0x8,_0x2d1395[_0x21a661(0x568)]),_0x1de32c(0x9,_0x2d1395['ILogService']),_0x1de32c(0xa,_0x4ac4e1[_0x21a661(0x509)]),_0x1de32c(0xb,_0x2d1395[_0x21a661(0x1a4)])],_0x5e3d91);let _0x4194f8=class extends _0x5dc26a{constructor(_0x47f96f,_0x35ff4e,_0x32243b,_0x464e46,_0x2e0554,_0x4c54ab=!0x1,_0x60b6e1,_0x45f2b0,_0x2b3cd0,_0x296d60,_0x171a9a,_0x35a869,_0x3ca5d2){const _0xeb217e=_0x21a661;super(_0x47f96f,_0x35ff4e,_0x32243b,_0x464e46,_0x2e0554,_0x45f2b0,_0x2b3cd0,_0x171a9a,_0x296d60),_0x55c95f(this,_0xeb217e(0x468),_0xeb217e(0x24b)),(this[_0xeb217e(0x214)]=_0x4c54ab,this['_permissionService']=_0x60b6e1,this['_localeService']=_0x35a869,this[_0xeb217e(0x400)]=_0x3ca5d2,this[_0xeb217e(0x2a7)](),this[_0xeb217e(0x306)](),this['_disableEditing']());}[_0x21a661(0x309)](){return this;}[_0x21a661(0x4f3)](){return this;}[_0x21a661(0x510)](){return this;}[_0x21a661(0x15f)](){return this;}[_0x21a661(0x302)](){return this;}[_0x21a661(0x3cf)](){return this;}[_0x21a661(0x19f)](){const _0x12d612=_0x21a661;throw new Error(_0x12d612(0x176));}['_clearLocalCache'](){const _0x268046=_0x21a661;this[_0x268046(0x3bb)][_0x268046(0x3e8)](this['unitID'],this['type'],null,[]);}['_showConflictNotification'](){const _0x40da0b=_0x21a661;this[_0x40da0b(0x214)]?this[_0x40da0b(0x400)][_0x40da0b(0x4b5)]({'title':this[_0x40da0b(0x51a)]['t'](_0x40da0b(0x346)),'content':this[_0x40da0b(0x51a)]['t'](_0x40da0b(0x280)),'type':'error','duration':0x0}):this[_0x40da0b(0x400)]['show']({'title':this[_0x40da0b(0x51a)]['t'](_0x40da0b(0x1c4)),'content':this[_0x40da0b(0x51a)]['t'](_0x40da0b(0x248)),'type':'error','duration':0x0});}[_0x21a661(0x29f)](){const _0x3c5c14=_0x21a661;this[_0x3c5c14(0x4e0)]['updatePermissionPoint'](new _0x44e81f[(_0x3c5c14(0x28a))](this['unitID'])['id'],!0x1);}};_0x4194f8=_0x54505b([_0x1de32c(0x6,_0x2d1395['Inject'](_0x2d1395[_0x21a661(0x2f2)])),_0x1de32c(0x7,_0x2d1395[_0x21a661(0x568)]),_0x1de32c(0x8,_0x2d1395[_0x21a661(0x1a4)]),_0x1de32c(0x9,_0x2d1395[_0x21a661(0x2f7)](_0x2e2c4a[_0x21a661(0x4b6)])),_0x1de32c(0xa,_0x2d1395[_0x21a661(0x2f7)](_0x4ac4e1[_0x21a661(0x528)])),_0x1de32c(0xb,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395[_0x21a661(0x177)])),_0x1de32c(0xc,_0x40eb02[_0x21a661(0x2ee)])],_0x4194f8);let _0x3b2047=class extends _0x5dc26a{constructor(_0x6e59c1,_0x370dec,_0x2ac0e7,_0x35e07b,_0x16bb07,_0x33e671,_0x2f5780,_0x160cf4,_0x1a9493,_0x3c66fd){const _0x367a05=_0x21a661;super(_0x6e59c1,_0x370dec,_0x2ac0e7,_0x35e07b,_0x16bb07,_0x1a9493,_0x3c66fd,_0x2f5780,_0x160cf4),_0x55c95f(this,_0x367a05(0x468),'offline'),this['_injector']=_0x33e671;}[_0x21a661(0x309)](_0x54b869){const _0x113703=_0x21a661;return this[_0x113703(0x365)][_0x113703(0x48a)](_0x54b869),this[_0x113703(0x242)](),this;}[_0x21a661(0x4f3)](_0x44b66d){const _0x1b84de=_0x21a661;throw new Error(_0x1b84de(0x2ef));}[_0x21a661(0x510)](){const _0x346075=_0x21a661;throw new Error(_0x346075(0x461));}['onRemoteRej'](){const _0x4ea3b5=_0x21a661;throw new Error(_0x4ea3b5(0x3a1));}[_0x21a661(0x302)](){return this;}[_0x21a661(0x3cf)](){const _0xd60fd5=_0x21a661,{_injector:_0x1f9b6e,_pendingMutations:_0x1bd6aa,_awaitingChangeset:_0xf7d18a,unitID:_0x58941c,_handler:_0x19fe5f,type:_0x48c914}=this,_0xc032cd=_0x263026(_0x1f9b6e,_0x58941c,_0x48c914,_0xf7d18a,_0x1bd6aa,_0x19fe5f);return _0xc032cd instanceof _0x18d3ad?_0xc032cd[_0xd60fd5(0x575)]():(_0xc032cd instanceof _0x5e3d91||_0xc032cd instanceof _0x430898)&&_0xc032cd[_0xd60fd5(0x19f)](),_0xc032cd;}[_0x21a661(0x19f)](){const _0x141c20=_0x21a661;throw new Error(_0x141c20(0x413));}};_0x3b2047=_0x54505b([_0x1de32c(0x5,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395['Injector'])),_0x1de32c(0x6,_0x2d1395[_0x21a661(0x2f7)](_0x4ac4e1[_0x21a661(0x528)])),_0x1de32c(0x7,_0x2d1395[_0x21a661(0x2f7)](_0x2e2c4a[_0x21a661(0x4b6)])),_0x1de32c(0x8,_0x2d1395['ICommandService']),_0x1de32c(0x9,_0x2d1395[_0x21a661(0x1a4)])],_0x3b2047);let _0x43e583=class extends _0x5dc26a{constructor(_0x922423,_0x1c1016,_0x34303a,_0x584c0c,_0x3f4f7b,_0x1bc782,_0x2cea1e,_0x2bd08d,_0x262776,_0x5a9955,_0x398e8d,_0x3738a6,_0x2acb59,_0x1cb36a){const _0x4d3f79=_0x21a661;super(_0x922423,_0x1c1016,_0x34303a,_0x584c0c,_0x2cea1e,_0x3738a6,_0x2acb59,_0x262776,_0x5a9955),_0x55c95f(this,_0x4d3f79(0x468),_0x4d3f79(0x37d)),(this[_0x4d3f79(0x4b4)]=_0x3f4f7b,this[_0x4d3f79(0x499)]=_0x1bc782,this[_0x4d3f79(0x3b8)]=_0x2bd08d,this[_0x4d3f79(0x546)]=_0x398e8d,this[_0x4d3f79(0x1b1)]=_0x1cb36a);}['onMissedChangesetFetched'](_0x3925c7){const _0x5e0e25=_0x21a661;try{const _0x572e72=[..._0x3925c7,...this[_0x5e0e25(0x499)]],_0x435c18=[this[_0x5e0e25(0x2b9)]||this[_0x5e0e25(0x4b4)]]['filter'](_0x298041=>!!_0x298041);let _0x23324a,_0x511924;if(_0x435c18[_0x5e0e25(0x396)]){const _0xbb7082=this[_0x5e0e25(0x1b1)]['transformChangesets'](_0x572e72,_0x435c18,!0x1);if(!_0x4ac4e1[_0x5e0e25(0x49e)](_0xbb7082))throw _0xbb7082[_0x5e0e25(0x3f4)];_0x23324a=_0xbb7082[_0x5e0e25(0x23e)],_0x511924=_0xbb7082[_0x5e0e25(0x481)];}else _0x23324a=_0x572e72,_0x511924=[];let _0x328190=this[_0x5e0e25(0x365)];_0x23324a[_0x5e0e25(0x492)](_0x1268c6=>{const _0x3a6035=_0x5e0e25;let _0x402c38;if(_0x328190[_0x3a6035(0x396)]){const _0x109dcf=this[_0x3a6035(0x1b1)][_0x3a6035(0x4d1)](_0x1268c6,_0x328190);if(!_0x4ac4e1[_0x3a6035(0x56c)](_0x109dcf))throw _0x109dcf[_0x3a6035(0x3f4)];_0x402c38=_0x109dcf[_0x3a6035(0x23e)],_0x328190=_0x109dcf[_0x3a6035(0x348)];}else _0x402c38=_0x1268c6;this['_executeRemoteChangeset'](_0x402c38);}),this[_0x5e0e25(0x4b4)]&&this[_0x5e0e25(0x32e)](),this['_awaitingChangeset']&&_0x511924['length']&&(_0x511924[0x0][_0x5e0e25(0x45e)]=this['_getCurrentRevision']());let _0x3ac83a;if(this[_0x5e0e25(0x2b9)]&&_0x328190['length']!==0x0)_0x3ac83a=this['_injector']['createInstance'](_0x5e3d91,this[_0x5e0e25(0x3ea)],this['type'],_0x511924[0x0],_0x328190,this[_0x5e0e25(0x2d3)]);else{if(this[_0x5e0e25(0x2b9)]&&_0x328190['length']===0x0)_0x511924[0x0][_0x5e0e25(0x45e)]=this['_getCurrentRevision'](),_0x3ac83a=this[_0x5e0e25(0x3b8)][_0x5e0e25(0x3e5)](_0x430898,this['unitID'],this[_0x5e0e25(0x547)],_0x511924[0x0],this['_handler']);else{if(_0x328190['length']!==0x0){const _0xd72cc2=this['_injector'][_0x5e0e25(0x3e5)](_0x18d3ad,this[_0x5e0e25(0x3ea)],this[_0x5e0e25(0x547)],_0x328190,this[_0x5e0e25(0x2d3)]);_0xd72cc2[_0x5e0e25(0x575)](),_0x3ac83a=_0xd72cc2;}else _0x3ac83a=this[_0x5e0e25(0x3b8)]['createInstance'](_0x54742,this[_0x5e0e25(0x3ea)],this[_0x5e0e25(0x547)],this[_0x5e0e25(0x2d3)]);}}return _0x3ac83a[_0x5e0e25(0x242)](),_0x3ac83a;}catch(_0x3fde2f){return this[_0x5e0e25(0x546)][_0x5e0e25(0x3f4)](_0x5e0e25(0x29c),_0x5e0e25(0x1b0),_0x3fde2f),this[_0x5e0e25(0x3b8)]['createInstance'](_0x4194f8,this[_0x5e0e25(0x3ea)],this[_0x5e0e25(0x547)],this[_0x5e0e25(0x2b9)],this[_0x5e0e25(0x365)],this[_0x5e0e25(0x2d3)],!0x1);}}['resend'](){const _0x1e4d69=_0x21a661;throw new Error(_0x1e4d69(0x1d0));}[_0x21a661(0x309)](_0x75d0c7){const _0x58653c=_0x21a661;return this[_0x58653c(0x365)]['push'](_0x75d0c7),this;}[_0x21a661(0x4f3)](_0x2b23f7){const _0x387567=_0x21a661;return this[_0x387567(0x499)][_0x387567(0x48a)](_0x2b23f7),this;}['onRemoteAck'](_0x4dd26c){const _0x272916=_0x21a661;if(this[_0x272916(0x2b9)])return this[_0x272916(0x4b4)]=this[_0x272916(0x2b9)],this[_0x272916(0x2b9)]=null,this;throw new Error(_0x272916(0x429));}[_0x21a661(0x15f)](_0x386310){const _0x4dce8e=_0x21a661;return this[_0x4dce8e(0x2aa)](!!(_0x386310!=null&&_0x386310['isPermissionRej']));}['toggleOffline'](){const _0x56c076=_0x21a661;return this[_0x56c076(0x3b8)][_0x56c076(0x3e5)](_0x3b2047,this['unitID'],this[_0x56c076(0x547)],this[_0x56c076(0x2b9)],this[_0x56c076(0x365)],this[_0x56c076(0x2d3)]);}['toggleOnline'](){return this;}[_0x21a661(0x2aa)](_0x1e3c95){const _0x344af3=_0x21a661;return this['_injector'][_0x344af3(0x3e5)](_0x4194f8,this[_0x344af3(0x3ea)],this[_0x344af3(0x547)],this[_0x344af3(0x2b9)],this[_0x344af3(0x365)],this[_0x344af3(0x2d3)],_0x1e3c95);}};_0x43e583=_0x54505b([_0x1de32c(0x7,_0x2d1395['Inject'](_0x2d1395[_0x21a661(0x45c)])),_0x1de32c(0x8,_0x2d1395[_0x21a661(0x2f7)](_0x4ac4e1[_0x21a661(0x528)])),_0x1de32c(0x9,_0x2d1395[_0x21a661(0x2f7)](_0x2e2c4a[_0x21a661(0x4b6)])),_0x1de32c(0xa,_0x2d1395['ILogService']),_0x1de32c(0xb,_0x2d1395[_0x21a661(0x568)]),_0x1de32c(0xc,_0x2d1395[_0x21a661(0x1a4)]),_0x1de32c(0xd,_0x4ac4e1[_0x21a661(0x509)])],_0x43e583);function _0x263026(_0x2f7321,_0x3bfcdd,_0x2c578e,_0x4b6eb4,_0x5b3886,_0x11b7db){const _0x546c8d=_0x21a661;return _0x4b6eb4&&_0x5b3886[_0x546c8d(0x396)]?_0x2f7321['createInstance'](_0x5e3d91,_0x3bfcdd,_0x2c578e,_0x4b6eb4,_0x5b3886,_0x11b7db):_0x4b6eb4?_0x2f7321[_0x546c8d(0x3e5)](_0x430898,_0x3bfcdd,_0x2c578e,_0x4b6eb4,_0x11b7db):_0x5b3886[_0x546c8d(0x396)]?_0x2f7321[_0x546c8d(0x3e5)](_0x18d3ad,_0x3bfcdd,_0x2c578e,_0x5b3886,_0x11b7db):_0x2f7321[_0x546c8d(0x3e5)](_0x54742,_0x3bfcdd,_0x2c578e,_0x11b7db);}var _0x595903=Object[_0x21a661(0x1a6)],_0x375430=Object[_0x21a661(0x1c8)],_0x20efbf=(_0x5578e0,_0x553ab6,_0x5bd1e6,_0xe32d12)=>{for(var _0x16ab70=_0xe32d12>0x1?void 0x0:_0xe32d12?_0x375430(_0x553ab6,_0x5bd1e6):_0x553ab6,_0x306abd=_0x5578e0['length']-0x1,_0x53f65b;_0x306abd>=0x0;_0x306abd--)(_0x53f65b=_0x5578e0[_0x306abd])&&(_0x16ab70=(_0xe32d12?_0x53f65b(_0x553ab6,_0x5bd1e6,_0x16ab70):_0x53f65b(_0x16ab70))||_0x16ab70);return _0xe32d12&&_0x16ab70&&_0x595903(_0x553ab6,_0x5bd1e6,_0x16ab70),_0x16ab70;},_0x30b431=(_0x1c414f,_0x5043f8)=>(_0x51e5cd,_0x5a9edc)=>_0x5043f8(_0x51e5cd,_0x5a9edc,_0x1c414f);_0x2e2c4a['CollaborationEntity']=class extends _0x2d1395['RxDisposable']{constructor(_0x442ef8,_0x3fb145,_0x372fbe,_0x574c2a,_0x5bdd51,_0x5603f4,_0x23700d,_0x588dcb,_0x531366,_0x443a62,_0x2d5819,_0x494062,_0x4c14f3){const _0x3055a4=_0x21a661;super(),_0x55c95f(this,_0x3055a4(0x502),new _0x4c5465[(_0x3055a4(0x2d6))](null)),_0x55c95f(this,'state$',this[_0x3055a4(0x502)]['asObservable']()),_0x55c95f(this,'_state'),_0x55c95f(this,_0x3055a4(0x3df),!0x1),_0x55c95f(this,_0x3055a4(0x4f4),''),_0x55c95f(this,_0x3055a4(0x550),0x0),_0x55c95f(this,_0x3055a4(0x3cc),this[_0x3055a4(0x52e)][_0x3055a4(0x219)](_0x4c5465[_0x3055a4(0x500)](_0x15c0de=>_0x15c0de?_0x15c0de[_0x3055a4(0x468)]:_0x27b30b[_0x3055a4(0x1af)]),_0x4c5465[_0x3055a4(0x201)](0x1))),_0x55c95f(this,_0x3055a4(0x364),!0x1),_0x55c95f(this,_0x3055a4(0x3be),[]),(this[_0x3055a4(0x3ea)]=_0x442ef8,this['session']=_0x3fb145,this['_type']=_0x372fbe,this[_0x3055a4(0x3b8)]=_0x574c2a,this['_localCacheService']=_0x5bdd51,this[_0x3055a4(0x141)]=_0x5603f4,this[_0x3055a4(0x51a)]=_0x23700d,this[_0x3055a4(0x375)]=_0x588dcb,this[_0x3055a4(0x546)]=_0x531366,this['_commandService']=_0x443a62,this[_0x3055a4(0x20f)]=_0x2d5819,this[_0x3055a4(0x4e0)]=_0x494062,this[_0x3055a4(0x22c)]=_0x4c14f3);}get[_0x21a661(0x55d)](){const _0x4196dd=_0x21a661;return this[_0x4196dd(0x38d)];}async[_0x21a661(0x50c)](){const _0xd1cedc=_0x21a661;if(this['state'])throw new Error(_0xd1cedc(0x246));await this[_0xd1cedc(0x447)]();}[_0x21a661(0x16b)](){const _0x10fcd5=_0x21a661;return this[_0x10fcd5(0x3df)]=!0x0,_0x2d1395['toDisposable'](()=>{const _0x18baa6=_0x10fcd5;this[_0x18baa6(0x3df)]=!0x1,this[_0x18baa6(0x1bc)]();});}[_0x21a661(0x3a7)](_0x2c08fb){const _0x111d69=_0x21a661;this[_0x111d69(0x38d)]=_0x2c08fb,this[_0x111d69(0x502)][_0x111d69(0x3e9)](_0x2c08fb);}async[_0x21a661(0x447)](){const _0x5ba1fe=_0x21a661;var _0x1fda4b;this['_updateState'](await this['_createInitialState']()),this[_0x5ba1fe(0x22c)]&&((_0x1fda4b=this['_singleActiveUnitService'])==null||_0x1fda4b['editingUnit'](this[_0x5ba1fe(0x3ea)]),this[_0x5ba1fe(0x3e2)](this[_0x5ba1fe(0x22c)][_0x5ba1fe(0x189)](this['unitID'])[_0x5ba1fe(0x417)](_0x29e1a1=>{const _0x10a699=_0x5ba1fe;this['_logService'][_0x10a699(0x299)](_0x10a699(0x4f5),_0x10a699(0x376),_0x29e1a1),_0x29e1a1===_0x33e3f3[_0x10a699(0x1b7)]?(this['_messageService'][_0x10a699(0x4b5)]({'content':this['_localeService']['t'](_0x10a699(0x147)),'type':_0xbe50fe[_0x10a699(0x352)]['Warning']}),this[_0x10a699(0x4e0)][_0x10a699(0x392)](new _0x44e81f[(_0x10a699(0x28a))](this[_0x10a699(0x3ea)])['id'],!0x1)):this['_permissionService'][_0x10a699(0x392)](new _0x44e81f[(_0x10a699(0x28a))](this[_0x10a699(0x3ea)])['id'],!0x0);})));let _0x190987=!0x1;return this[_0x5ba1fe(0x3e2)](this[_0x5ba1fe(0x1b4)]['sessionStatus$'][_0x5ba1fe(0x417)](_0x488ab6=>{const _0x59b353=_0x5ba1fe;_0x488ab6===_0x1173b7[_0x59b353(0x341)]?this[_0x59b353(0x4d3)](_0x190987):_0x488ab6===_0x1173b7[_0x59b353(0x1af)]&&(_0x190987=!0x0,this[_0x59b353(0x52c)]());})),this[_0x5ba1fe(0x3e2)](this[_0x5ba1fe(0x1b4)][_0x5ba1fe(0x1b2)]['subscribe'](_0x1497b9=>{const _0x44d3af=_0x5ba1fe;try{switch(_0x1497b9['eventID']){case _0x4ac4e1[_0x44d3af(0x185)][_0x44d3af(0x4ff)]:{this[_0x44d3af(0x1d1)](_0x4ac4e1[_0x44d3af(0x2ce)](_0x1497b9[_0x44d3af(0x3ff)]));break;}case _0x4ac4e1[_0x44d3af(0x185)][_0x44d3af(0x386)]:{this[_0x44d3af(0x205)](_0x1497b9[_0x44d3af(0x3ff)]);break;}case _0x4ac4e1[_0x44d3af(0x185)][_0x44d3af(0x2e3)]:{this[_0x44d3af(0x2f1)]();break;}case _0x4ac4e1[_0x44d3af(0x185)][_0x44d3af(0x3f2)]:{this[_0x44d3af(0x512)](_0x1497b9[_0x44d3af(0x3ff)][_0x44d3af(0x486)][_0x44d3af(0x500)](_0x3d6a20=>_0x4ac4e1[_0x44d3af(0x2ce)](_0x3d6a20)));break;}case _0x4ac4e1[_0x44d3af(0x185)][_0x44d3af(0x387)]:this[_0x44d3af(0x2f1)]({'isPermissionRej':!0x0});}}catch(_0xab793f){throw console['error']('Error\x20on\x20receiving\x20event',_0xab793f),_0xab793f;}})),this[_0x5ba1fe(0x38d)];}[_0x21a661(0x428)](){const _0x5b8b7b=_0x21a661;this[_0x5b8b7b(0x364)]=!0x1;}['_lockTransition'](){const _0x35f184=_0x21a661;if(this['_transitionLocked'])throw new Error(_0x35f184(0x421));this[_0x35f184(0x364)]=!0x0;}[_0x21a661(0x19b)](_0x115a60){const _0x5b42c5=_0x21a661;this[_0x5b42c5(0x26c)](),this[_0x5b42c5(0x3a7)](this[_0x5b42c5(0x38d)][_0x5b42c5(0x309)](_0x115a60)),this[_0x5b42c5(0x428)]();}[_0x21a661(0x1d1)](_0x28ac19){const _0x10dce3=_0x21a661;if(!(_0x28ac19['revision']<=this['_revisionService'][_0x10dce3(0x54c)](this['unitID']))){if(this[_0x10dce3(0x3df)]){this[_0x10dce3(0x3be)][_0x10dce3(0x48a)](_0x28ac19);return;}this[_0x10dce3(0x433)](_0x28ac19);}}['_exhaustRemoteChangesetQueue'](){const _0x460d3f=_0x21a661;this[_0x460d3f(0x3be)][_0x460d3f(0x492)](_0x4f13e8=>this[_0x460d3f(0x433)](_0x4f13e8)),this[_0x460d3f(0x3be)]=[];}[_0x21a661(0x433)](_0xe4b835){const _0x43bc7e=_0x21a661,_0x2d4a9b=this[_0x43bc7e(0x141)][_0x43bc7e(0x16f)]['fetchThroughInterceptors'](this[_0x43bc7e(0x141)][_0x43bc7e(0x16f)][_0x43bc7e(0x56a)]()['COMPRESS_MUTATION_APPLY'])(_0xe4b835['mutations'],null)||_0xe4b835[_0x43bc7e(0x32b)],_0x5b4c5e={..._0xe4b835,'mutations':_0x2d4a9b};this[_0x43bc7e(0x26c)](),this['_updateState'](this[_0x43bc7e(0x38d)][_0x43bc7e(0x4f3)](_0x5b4c5e)),this['_unlockTransition']();}['_onRemoteACK'](_0x47d3e9){const _0x174fed=_0x21a661;this[_0x174fed(0x26c)](),this[_0x174fed(0x3a7)](this[_0x174fed(0x38d)]['onRemoteAck'](_0x47d3e9)),this[_0x174fed(0x428)]();}['_onRemoteRejected'](_0x11e16d){const _0x225a36=_0x21a661;this['_lockTransition'](),this[_0x225a36(0x3a7)](this[_0x225a36(0x38d)][_0x225a36(0x15f)](_0x11e16d)),this[_0x225a36(0x428)]();}['_onFetchMissResult'](_0x36736d){const _0x2ed70f=_0x21a661;if(!(this[_0x2ed70f(0x38d)]instanceof _0x43e583))throw new TypeError(_0x2ed70f(0x437));const _0x41ef84=_0x36736d[_0x2ed70f(0x500)](_0x399aa7=>{const _0x200484=_0x2ed70f,_0x17ff57=this['_compressMutationService']['interceptor'][_0x200484(0x2d5)](this[_0x200484(0x141)]['interceptor'][_0x200484(0x56a)]()[_0x200484(0x263)])(_0x399aa7[_0x200484(0x32b)],null)||_0x399aa7[_0x200484(0x32b)];return{..._0x399aa7,'mutations':_0x17ff57};});this['_lockTransition'](),this[_0x2ed70f(0x3a7)](this[_0x2ed70f(0x38d)][_0x2ed70f(0x174)](_0x41ef84)),this[_0x2ed70f(0x428)]();}[_0x21a661(0x52c)](){const _0x2f7648=_0x21a661;this[_0x2f7648(0x26c)](),this[_0x2f7648(0x3a7)](this[_0x2f7648(0x38d)][_0x2f7648(0x302)]()),this[_0x2f7648(0x428)]();}[_0x21a661(0x4d3)](_0x3cd01e=!0x1){const _0x4d3e20=_0x21a661;this[_0x4d3e20(0x26c)](),this['_updateState'](this['_state']['toggleOnline']()),this['_unlockTransition']();const _0x7f5a65=this[_0x4d3e20(0x38d)];_0x3cd01e&&_0x7f5a65 instanceof _0x54742&&(this[_0x4d3e20(0x26c)](),this[_0x4d3e20(0x3a7)](_0x7f5a65[_0x4d3e20(0x286)]()),this['_unlockTransition']());}async[_0x21a661(0x2c0)](){return new Promise(_0x23433e=>{const _0x37c38c=_0x4048;this[_0x37c38c(0x1b4)][_0x37c38c(0x38b)][_0x37c38c(0x219)](_0x4c5465['take'](0x1))[_0x37c38c(0x417)](async _0x596dcd=>{const _0x1b6462=_0x37c38c;_0x23433e(await this['_createInitialStateImpl'](_0x596dcd===_0x1173b7[_0x1b6462(0x341)]));});});}['_createHandler'](){const _0x45269d=this['unitID'];return{'onStateChange':(_0x2afe44,_0x3a4f14)=>{const _0x2c5593=_0x4048;if(_0x2afe44!==this['_state'])throw new Error(_0x2c5593(0x34b)+_0x2afe44[_0x2c5593(0x468)]+_0x2c5593(0x17b)+_0x3a4f14[_0x2c5593(0x468)]+'\x0aCurrent:\x20'+this[_0x2c5593(0x38d)][_0x2c5593(0x468)]);this['_updateState'](_0x3a4f14);},'onSendChangeset':_0x5a1aab=>{const _0x2f5e1c=_0x4048;_0x5a1aab[_0x2f5e1c(0x4e5)]||(_0x5a1aab[_0x2f5e1c(0x4e5)]=this[_0x2f5e1c(0x4f4)],_0x5a1aab['reqId']=++this[_0x2f5e1c(0x550)]);const _0x13cbe3={'eventID':_0x4ac4e1[_0x2f5e1c(0x185)][_0x2f5e1c(0x520)],'data':{'unitID':_0x5a1aab[_0x2f5e1c(0x3ea)],'unitType':this[_0x2f5e1c(0x1d8)],'changeset':_0x5a1aab,'memberID':this[_0x2f5e1c(0x1b4)][_0x2f5e1c(0x577)]()}};this[_0x2f5e1c(0x1b4)][_0x2f5e1c(0x39a)](_0x13cbe3,this['unitID']);},'onMissingChangesets':({from:_0x975d69,to:_0x3dcd66})=>{const _0x3b450a=_0x4048;this[_0x3b450a(0x546)][_0x3b450a(0x299)]('[CollaborationEntity]',_0x3b450a(0x164)+_0x975d69+_0x3b450a(0x3d6)+_0x3dcd66);const _0xff8dbf={'eventID':_0x4ac4e1[_0x3b450a(0x185)]['FETCH_MISSING'],'data':{'unitID':_0x45269d,'unitType':this[_0x3b450a(0x1d8)],'from':_0x975d69,'to':_0x3dcd66}};this[_0x3b450a(0x1b4)][_0x3b450a(0x39a)](_0xff8dbf,this[_0x3b450a(0x3ea)]);}};}async[_0x21a661(0x311)](_0x4a0b51){const _0xb60b11=_0x21a661;var _0x3bd956,_0x36cbe4;const _0xeaeb93=await this[_0xb60b11(0x3bb)]['loadOfflineData'](this['unitID']),_0x286df0=(_0x3bd956=_0xeaeb93==null?void 0x0:_0xeaeb93['mutations'])!=null?_0x3bd956:[],_0x1ebe6d=(_0x36cbe4=_0xeaeb93==null?void 0x0:_0xeaeb93[_0xb60b11(0x24f)])!=null?_0x36cbe4:null,_0x24bf3d=!!(_0x1ebe6d!=null&&_0x1ebe6d[_0xb60b11(0x4e5)])&&!!(_0x1ebe6d!=null&&_0x1ebe6d[_0xb60b11(0x379)]);this[_0xb60b11(0x4f4)]=_0x24bf3d?_0x1ebe6d[_0xb60b11(0x4e5)]:_0x3af69b(),this[_0xb60b11(0x550)]=_0x24bf3d?_0x1ebe6d[_0xb60b11(0x379)]:0x0;const _0x2b99d2=this['unitID'];try{this[_0xb60b11(0x4d8)](_0x1ebe6d,_0x286df0);}catch(_0x37f001){this[_0xb60b11(0x546)][_0xb60b11(0x3f4)](_0x37f001);}const _0x57525e=this[_0xb60b11(0x142)]();if(_0x4a0b51){const _0x1e975a=_0x263026(this[_0xb60b11(0x3b8)],_0x2b99d2,this[_0xb60b11(0x1d8)],_0x1ebe6d,_0x286df0,_0x57525e);return _0x1e975a instanceof _0x18d3ad?_0x1e975a[_0xb60b11(0x575)]():(_0x1e975a instanceof _0x5e3d91||_0x1e975a instanceof _0x430898)&&_0x1e975a[_0xb60b11(0x19f)](),_0x1e975a;}return this[_0xb60b11(0x3b8)]['createInstance'](_0x3b2047,_0x2b99d2,this[_0xb60b11(0x1d8)],_0x1ebe6d,_0x286df0,_0x57525e);}[_0x21a661(0x4d8)](_0x2041ff,_0x26072d){const _0x5ba5f0=_0x21a661;var _0x3319b0,_0x1ddf4d;const _0x52d003=this[_0x5ba5f0(0x141)]['interceptor']['fetchThroughInterceptors'](this[_0x5ba5f0(0x141)][_0x5ba5f0(0x16f)][_0x5ba5f0(0x56a)]()[_0x5ba5f0(0x263)]);(_0x3319b0=_0x52d003((_0x2041ff==null?void 0x0:_0x2041ff[_0x5ba5f0(0x32b)])||[],null))==null||_0x3319b0[_0x5ba5f0(0x492)](_0x1f701c=>this[_0x5ba5f0(0x22b)]['executeCommand'](_0x1f701c['id'],_0x1f701c[_0x5ba5f0(0x2b6)])),(_0x1ddf4d=_0x52d003(_0x26072d||[],null))==null||_0x1ddf4d[_0x5ba5f0(0x492)](_0x2c7540=>this[_0x5ba5f0(0x22b)][_0x5ba5f0(0x457)](_0x2c7540['id'],_0x2c7540[_0x5ba5f0(0x2b6)]));}},_0x2e2c4a['CollaborationEntity']=_0x20efbf([_0x30b431(0x3,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395[_0x21a661(0x45c)])),_0x30b431(0x4,_0x2d1395['Inject'](_0x2e2c4a[_0x21a661(0x4b6)])),_0x30b431(0x5,_0x2d1395[_0x21a661(0x2f7)](_0x4ac4e1['CompressMutationService'])),_0x30b431(0x6,_0x2d1395['Inject'](_0x2d1395[_0x21a661(0x177)])),_0x30b431(0x7,_0x2d1395['Inject'](_0x4ac4e1['RevisionService'])),_0x30b431(0x8,_0x2d1395['ILogService']),_0x30b431(0x9,_0x2d1395[_0x21a661(0x568)]),_0x30b431(0xa,_0x40eb02[_0x21a661(0x152)]),_0x30b431(0xb,_0x2d1395[_0x21a661(0x2f2)]),_0x30b431(0xc,_0x2d1395[_0x21a661(0x4cc)](_0x26f002))],_0x2e2c4a[_0x21a661(0x4eb)]),_0x2e2c4a['DocCollaborationEntity']=class extends _0x2e2c4a[_0x21a661(0x4eb)]{constructor(_0x4ac814,_0xa089c5,_0x1ddc16,_0x5d671c,_0x3c5c84,_0x126caa,_0x4013fd,_0x48205b,_0x4d8d82,_0x5c458f,_0x9e6a24,_0x2e161a,_0x429f86,_0x34b19c,_0x23a6d2,_0xa693cb,_0x5ec3e5){const _0x2f467a=_0x21a661;super(_0x4ac814,_0x1ddc16,_0xa089c5,_0x5d671c,_0x3c5c84,_0x126caa,_0x4013fd,_0x48205b,_0x429f86,_0x34b19c,_0x23a6d2,_0xa693cb,_0x5ec3e5),this[_0x2f467a(0x3ea)]=_0x4ac814,this[_0x2f467a(0x547)]=_0xa089c5,this[_0x2f467a(0x1a1)]=_0x4d8d82,this[_0x2f467a(0x3c6)]=_0x5c458f,this[_0x2f467a(0x291)]=_0x9e6a24,this[_0x2f467a(0x1ce)]=_0x2e161a;}[_0x21a661(0x142)](){const _0x4c147a=_0x21a661,_0x3bf776=super[_0x4c147a(0x142)]();return _0x3bf776[_0x4c147a(0x420)]=_0x17ff08=>this[_0x4c147a(0x3c6)][_0x4c147a(0x1a7)](_0x17ff08),_0x3bf776['onTransformSelections']=_0x2f2fb3=>this[_0x4c147a(0x291)][_0x4c147a(0x256)](_0x2f2fb3),_0x3bf776[_0x4c147a(0x4c1)]=_0x5eaee2=>this[_0x4c147a(0x1ce)]['syncEditingCollabCursor'](_0x5eaee2),_0x3bf776[_0x4c147a(0x2cc)]=_0x5ccf73=>this[_0x4c147a(0x3c6)]['transformRemoteChangeset'](_0x5ccf73),_0x3bf776;}async[_0x21a661(0x447)](){const _0x218dbe=_0x21a661,_0x1f2281=await super[_0x218dbe(0x447)]();return this[_0x218dbe(0x3e2)](this[_0x218dbe(0x22b)][_0x218dbe(0x46a)]((_0xd94342,_0x426f86)=>{const _0x32412b=_0x218dbe;if(_0xd94342['type']!==_0x2d1395['CommandType'][_0x32412b(0x236)]||_0x426f86!=null&&_0x426f86[_0x32412b(0x4e2)]||_0x426f86!=null&&_0x426f86['onlyLocal'])return;const _0x584cdc=_0xd94342['params'];if((_0x584cdc==null?void 0x0:_0x584cdc['unitId'])!==this['unitID'])return;let _0x3d2b5f=_0xd94342;if(_0x3d2b5f['id']===_0xe08b87[_0x32412b(0x53a)]['id']){const _0x4a9ea2=_0x3d2b5f[_0x32412b(0x2b6)];_0x3d2b5f={'id':_0xe08b87[_0x32412b(0x53a)]['id'],'type':_0x2d1395[_0x32412b(0x31a)][_0x32412b(0x236)],'params':{'unitId':_0x4a9ea2[_0x32412b(0x3e4)],'actions':_0x4a9ea2['actions'],'textRanges':null}};}const _0x3c78a8=this[_0x32412b(0x141)][_0x32412b(0x16f)][_0x32412b(0x2d5)](this[_0x32412b(0x141)][_0x32412b(0x16f)][_0x32412b(0x56a)]()[_0x32412b(0x383)])([_0x3d2b5f],null)||[_0x3d2b5f];this[_0x32412b(0x19b)](_0x3c78a8[0x0]);})),_0x1f2281;}},_0x2e2c4a[_0x21a661(0x493)]=_0x20efbf([_0x30b431(0x3,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395[_0x21a661(0x45c)])),_0x30b431(0x4,_0x2d1395[_0x21a661(0x2f7)](_0x2e2c4a[_0x21a661(0x4b6)])),_0x30b431(0x5,_0x2d1395[_0x21a661(0x2f7)](_0x4ac4e1['CompressMutationService'])),_0x30b431(0x6,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395[_0x21a661(0x177)])),_0x30b431(0x7,_0x2d1395[_0x21a661(0x2f7)](_0x4ac4e1[_0x21a661(0x528)])),_0x30b431(0x8,_0x2d1395[_0x21a661(0x2f7)](_0x52fc42[_0x21a661(0x335)])),_0x30b431(0x9,_0x2d1395['Inject'](_0x1a0241)),_0x30b431(0xa,_0x2d1395[_0x21a661(0x2f7)](_0x5cd5ce)),_0x30b431(0xb,_0x2d1395['Inject'](_0x58e167)),_0x30b431(0xc,_0x2d1395[_0x21a661(0x52d)]),_0x30b431(0xd,_0x2d1395[_0x21a661(0x568)]),_0x30b431(0xe,_0x40eb02[_0x21a661(0x152)]),_0x30b431(0xf,_0x2d1395[_0x21a661(0x2f2)]),_0x30b431(0x10,_0x2d1395[_0x21a661(0x4cc)](_0x26f002))],_0x2e2c4a[_0x21a661(0x493)]),_0x2e2c4a['SheetCollaborationEntity']=class extends _0x2e2c4a[_0x21a661(0x4eb)]{constructor(_0x478102,_0x48ec30,_0x3e88ab,_0x42d6e9,_0x1e6c1e,_0x1c6974,_0x288155,_0x479c80,_0x3ff1e8,_0x561e3a,_0x1ad109,_0x39a0e3,_0x477655,_0x3af811){const _0x255a2a=_0x21a661;super(_0x478102,_0x3e88ab,_0x48ec30,_0x42d6e9,_0x1e6c1e,_0x1c6974,_0x288155,_0x479c80,_0x561e3a,_0x1ad109,_0x39a0e3,_0x477655,_0x3af811),this['unitID']=_0x478102,this[_0x255a2a(0x547)]=_0x48ec30,this[_0x255a2a(0x26a)]=_0x3ff1e8;}[_0x21a661(0x142)](){const _0x420eab=_0x21a661,_0x27b292=super[_0x420eab(0x142)]();return _0x27b292[_0x420eab(0x431)]=_0x4123ca=>this[_0x420eab(0x26a)]['transformSelections'](_0x4123ca),_0x27b292;}async[_0x21a661(0x447)](){const _0x47a2e6=_0x21a661,_0x52d80=await super[_0x47a2e6(0x447)]();return this[_0x47a2e6(0x3e2)](this[_0x47a2e6(0x22b)][_0x47a2e6(0x46a)]((_0x3763c0,_0x2364c7)=>{const _0x33d32b=_0x47a2e6;if(_0x3763c0[_0x33d32b(0x547)]!==_0x2d1395['CommandType']['MUTATION']||_0x2364c7!=null&&_0x2364c7[_0x33d32b(0x4e2)]||_0x2364c7!=null&&_0x2364c7[_0x33d32b(0x4d6)])return;const _0xd0e4f6=_0x3763c0[_0x33d32b(0x2b6)];if((_0xd0e4f6==null?void 0x0:_0xd0e4f6[_0x33d32b(0x3e4)])!==this[_0x33d32b(0x3ea)])return;const _0x52b99e=_0x3763c0,_0x3a9454=this['_compressMutationService'][_0x33d32b(0x16f)][_0x33d32b(0x2d5)](this[_0x33d32b(0x141)][_0x33d32b(0x16f)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x52b99e],null)||[_0x52b99e];this[_0x33d32b(0x19b)](_0x3a9454[0x0]);})),_0x52d80;}},_0x2e2c4a['SheetCollaborationEntity']=_0x20efbf([_0x30b431(0x3,_0x2d1395['Inject'](_0x2d1395[_0x21a661(0x45c)])),_0x30b431(0x4,_0x2d1395[_0x21a661(0x2f7)](_0x2e2c4a[_0x21a661(0x4b6)])),_0x30b431(0x5,_0x2d1395[_0x21a661(0x2f7)](_0x4ac4e1['CompressMutationService'])),_0x30b431(0x6,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395['LocaleService'])),_0x30b431(0x7,_0x2d1395[_0x21a661(0x2f7)](_0x4ac4e1['RevisionService'])),_0x30b431(0x8,_0x2d1395[_0x21a661(0x2f7)](_0x2175b2)),_0x30b431(0x9,_0x2d1395['ILogService']),_0x30b431(0xa,_0x2d1395[_0x21a661(0x568)]),_0x30b431(0xb,_0x40eb02[_0x21a661(0x152)]),_0x30b431(0xc,_0x2d1395[_0x21a661(0x2f2)]),_0x30b431(0xd,_0x2d1395['Optional'](_0x26f002))],_0x2e2c4a[_0x21a661(0x56e)]);var _0x174c6a=Object[_0x21a661(0x1a6)],_0xf6a9dd=Object[_0x21a661(0x1c8)],_0x4eeca5=(_0xaff49f,_0x339774,_0x573e50,_0x325646)=>{const _0x1a3feb=_0x21a661;for(var _0x31f63f=_0x325646>0x1?void 0x0:_0x325646?_0xf6a9dd(_0x339774,_0x573e50):_0x339774,_0x239068=_0xaff49f[_0x1a3feb(0x396)]-0x1,_0x59ca1f;_0x239068>=0x0;_0x239068--)(_0x59ca1f=_0xaff49f[_0x239068])&&(_0x31f63f=(_0x325646?_0x59ca1f(_0x339774,_0x573e50,_0x31f63f):_0x59ca1f(_0x31f63f))||_0x31f63f);return _0x325646&&_0x31f63f&&_0x174c6a(_0x339774,_0x573e50,_0x31f63f),_0x31f63f;},_0x225858=(_0x32ae5c,_0x39b500)=>(_0x53f709,_0x14edcd)=>_0x39b500(_0x53f709,_0x14edcd,_0x32ae5c);_0x2e2c4a[_0x21a661(0x15d)]=class extends _0x2d1395[_0x21a661(0x2b4)]{constructor(_0x8377c1,_0x4ab0a1,_0xc78a7c){const _0xefd762=_0x21a661;super(),_0x55c95f(this,_0xefd762(0x38a),new Map()),_0x55c95f(this,_0xefd762(0x2dd),new _0x4c5465['Subject']()),(this['_injector']=_0x8377c1,this[_0xefd762(0x3c0)]=_0x4ab0a1,this[_0xefd762(0x455)]=_0xc78a7c,this[_0xefd762(0x447)]());}[_0x21a661(0x51d)](){const _0x485d2b=_0x21a661;super[_0x485d2b(0x51d)](),this[_0x485d2b(0x38a)][_0x485d2b(0x492)](_0x411229=>_0x411229[_0x485d2b(0x51d)]()),this[_0x485d2b(0x38a)][_0x485d2b(0x53e)]();}[_0x21a661(0x44f)](_0x409a9c){var _0x589a0b;return(_0x589a0b=this['_entities']['get'](_0x409a9c))!=null?_0x589a0b:null;}[_0x21a661(0x288)](_0x26aa39){const _0x2772db=_0x21a661,_0x4be79a=this[_0x2772db(0x44f)](_0x26aa39);return _0x4be79a?_0x4c5465['of'](_0x4be79a):this[_0x2772db(0x2dd)][_0x2772db(0x219)](_0x52321c[_0x2772db(0x2ca)](_0xbc5b2f=>_0xbc5b2f[_0x2772db(0x3ea)]===_0x26aa39));}[_0x21a661(0x447)](){const _0x3c35be=_0x21a661;this['_univerInstanceService'][_0x3c35be(0x2fd)](_0x2d1395[_0x3c35be(0x21c)]['UNIVER_SHEET'])['pipe'](_0x4c5465[_0x3c35be(0x30f)](this[_0x3c35be(0x3f0)]),_0x52321c[_0x3c35be(0x402)](0x10))[_0x3c35be(0x417)](async _0x3f6b24=>{const _0x516461=_0x3c35be,_0x5a1174=_0x3f6b24[_0x516461(0x1f1)](),_0x366904=await this['_startCollaboration'](_0x5a1174,_0x2a040f[_0x516461(0x196)]);this[_0x516461(0x38a)][_0x516461(0x4f1)](_0x5a1174,_0x366904);}),this[_0x3c35be(0x455)][_0x3c35be(0x2fd)](_0x2d1395[_0x3c35be(0x21c)]['UNIVER_DOC'])[_0x3c35be(0x219)](_0x4c5465[_0x3c35be(0x30f)](this[_0x3c35be(0x3f0)]),_0x52321c['delay'](0x10))['pipe'](_0x52321c[_0x3c35be(0x2ca)](_0x447030=>!_0x447030[_0x3c35be(0x1f1)]()[_0x3c35be(0x4f2)]('__')))[_0x3c35be(0x417)](async _0x7a09c3=>{const _0x469fb4=_0x3c35be,_0x29e200=_0x7a09c3[_0x469fb4(0x1f1)](),_0x3e5b4c=await this[_0x469fb4(0x345)](_0x29e200,_0x2a040f[_0x469fb4(0x4ef)]);this['_entities'][_0x469fb4(0x4f1)](_0x29e200,_0x3e5b4c);}),_0x4c5465['merge'](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x2d1395['UniverInstanceType']['UNIVER_SHEET']),this[_0x3c35be(0x455)][_0x3c35be(0x268)](_0x2d1395[_0x3c35be(0x21c)][_0x3c35be(0x4ef)]))[_0x3c35be(0x219)](_0x4c5465['takeUntil'](this[_0x3c35be(0x3f0)]))[_0x3c35be(0x417)](_0x4979e0=>{const _0x4f8344=_0x3c35be,_0x4e79ed=_0x4979e0[_0x4f8344(0x1f1)](),_0x16929b=this[_0x4f8344(0x38a)][_0x4f8344(0x2e5)](_0x4e79ed);_0x16929b&&(_0x16929b[_0x4f8344(0x51d)](),this[_0x4f8344(0x38a)][_0x4f8344(0x464)](_0x4e79ed));});}async[_0x21a661(0x345)](_0x34c172,_0x58f7d1){const _0x50521d=_0x21a661,_0x3af435=await this[_0x50521d(0x3c0)][_0x50521d(0x557)](_0x34c172),_0x17805c=this[_0x50521d(0x3b8)][_0x50521d(0x3e5)](this['_getCtorByUniverType'](_0x58f7d1),_0x34c172,_0x58f7d1,_0x3af435);return await _0x17805c[_0x50521d(0x50c)](),this[_0x50521d(0x2dd)][_0x50521d(0x3e9)](_0x17805c),_0x17805c;}['_getCtorByUniverType'](_0x3cc3a9){const _0x130042=_0x21a661;switch(_0x3cc3a9){case _0x2a040f['UNIVER_DOC']:return _0x2e2c4a['DocCollaborationEntity'];case _0x2a040f[_0x130042(0x196)]:return _0x2e2c4a[_0x130042(0x56e)];default:throw new Error(_0x130042(0x327)+_0x3cc3a9);}}},_0x2e2c4a['CollaborationController']=_0x4eeca5([_0x225858(0x0,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395['Injector'])),_0x225858(0x1,_0x2d1395['Inject'](_0x2e2c4a['CollaborationSessionService'])),_0x225858(0x2,_0x2d1395[_0x21a661(0x2fa)])],_0x2e2c4a[_0x21a661(0x15d)]);const _0x36a773=[_0x21a661(0x57a),'jiqing500',_0x21a661(0x479),_0x21a661(0x29e),_0x21a661(0x270),_0x21a661(0x1fc)];class _0x1e582d extends _0x2d1395[_0x21a661(0x508)]{constructor(){const _0x207118=_0x21a661;super(...arguments),_0x55c95f(this,_0x207118(0x34e),new Map()),_0x55c95f(this,_0x207118(0x3b7),0x0);}[_0x21a661(0x35e)](_0x4d954e){const _0x4e7955=_0x21a661;if(this['_assignedColors'][_0x4e7955(0x397)](_0x4d954e))return this[_0x4e7955(0x34e)][_0x4e7955(0x2e5)](_0x4d954e);const _0x5e82ce=_0x36a773[this['_colorIndex']];return this[_0x4e7955(0x3b7)]=(this[_0x4e7955(0x3b7)]+0x1)%_0x36a773[_0x4e7955(0x396)],this[_0x4e7955(0x34e)][_0x4e7955(0x4f1)](_0x4d954e,_0x5e82ce),_0x5e82ce;}}var _0x991883=Object[_0x21a661(0x1a6)],_0x2888d7=Object[_0x21a661(0x1c8)],_0x1444aa=(_0x4b7e79,_0x423437,_0x5b8a72,_0xb0ce95)=>{const _0x5740df=_0x21a661;for(var _0x500cbd=_0xb0ce95>0x1?void 0x0:_0xb0ce95?_0x2888d7(_0x423437,_0x5b8a72):_0x423437,_0x1d5dbd=_0x4b7e79[_0x5740df(0x396)]-0x1,_0x4d6773;_0x1d5dbd>=0x0;_0x1d5dbd--)(_0x4d6773=_0x4b7e79[_0x1d5dbd])&&(_0x500cbd=(_0xb0ce95?_0x4d6773(_0x423437,_0x5b8a72,_0x500cbd):_0x4d6773(_0x500cbd))||_0x500cbd);return _0xb0ce95&&_0x500cbd&&_0x991883(_0x423437,_0x5b8a72,_0x500cbd),_0x500cbd;},_0x140225=(_0x20ae02,_0x15b997)=>(_0x575440,_0x1f2c91)=>_0x15b997(_0x575440,_0x1f2c91,_0x20ae02);const _0x4f9d62=0x12c,_0x53dc05=0x64;let _0x35eb76=class extends _0x2d1395[_0x21a661(0x2b4)]{constructor(_0x3478b7,_0x59c1f0,_0x5806d6,_0x38c2d5,_0x483e26,_0x530379,_0x2a971a,_0x571c7a,_0xb9137d){const _0x3075a1=_0x21a661;super(),_0x55c95f(this,_0x3075a1(0x22f),!0x1),_0x55c95f(this,_0x3075a1(0x447),!0x1),_0x55c95f(this,_0x3075a1(0x338),new _0x4c5465[(_0x3075a1(0x2d6))](new Map())),_0x55c95f(this,_0x3075a1(0x2a4),this['_cursorInfo$']['asObservable']()),_0x55c95f(this,_0x3075a1(0x3af),new _0x4c5465['BehaviorSubject']([])),_0x55c95f(this,_0x3075a1(0x483),this['_roomMembers$'][_0x3075a1(0x219)](_0x4c5465['debounceTime'](_0x4f9d62))),_0x55c95f(this,_0x3075a1(0x29a),_0x2d1395[_0x3075a1(0x274)](_0x20502b=>{const _0x57f5b7=_0x3075a1,_0x5054fd={'eventID':_0x4ac4e1['CollaborationEvent'][_0x57f5b7(0x41b)],'data':{'unitID':this[_0x57f5b7(0x3ea)],'memberID':this['_session']['getMemberID'](),'selection':_0x41e3af(_0x20502b)}};this['_session'][_0x57f5b7(0x39a)](_0x5054fd,this[_0x57f5b7(0x3ea)]);},_0x53dc05)),(this[_0x3075a1(0x3ea)]=_0x3478b7,this[_0x3075a1(0x4e1)]=_0x59c1f0,this[_0x3075a1(0x3b8)]=_0x5806d6,this['_colorAssignService']=_0x38c2d5,this[_0x3075a1(0x326)]=_0x483e26,this[_0x3075a1(0x1cf)]=_0x530379,this[_0x3075a1(0x1b1)]=_0x2a971a,this[_0x3075a1(0x455)]=_0x571c7a,this['_commandService']=_0xb9137d);}get[_0x21a661(0x307)](){return this['_cursorInfo$']['getValue']();}get[_0x21a661(0x3db)](){const _0x39f03c=_0x21a661;return this[_0x39f03c(0x3af)][_0x39f03c(0x182)]();}[_0x21a661(0x51d)](){const _0x5c6200=_0x21a661;super[_0x5c6200(0x51d)](),this[_0x5c6200(0x338)]['next'](new Map()),this['_cursorInfo$'][_0x5c6200(0x4b1)](),this[_0x5c6200(0x3af)][_0x5c6200(0x3e9)]([]),this[_0x5c6200(0x3af)][_0x5c6200(0x4b1)]();}[_0x21a661(0x50c)](){const _0x1006ff=_0x21a661;this[_0x1006ff(0x447)]||(this[_0x1006ff(0x447)]=!0x0,this[_0x1006ff(0x4e1)][_0x1006ff(0x38b)]['pipe'](_0x4c5465[_0x1006ff(0x30f)](this[_0x1006ff(0x3f0)]))[_0x1006ff(0x417)](_0x42f153=>{const _0x175ed2=_0x1006ff;_0x42f153===_0x1173b7[_0x175ed2(0x341)]?this['_toggleOnline']():this[_0x175ed2(0x52c)]();}),this[_0x1006ff(0x4e1)][_0x1006ff(0x1b2)][_0x1006ff(0x219)](_0x4c5465[_0x1006ff(0x30f)](this[_0x1006ff(0x3f0)]))[_0x1006ff(0x417)](_0x560cfd=>{const _0x54b091=_0x1006ff,_0x20ccdc=_0x560cfd[_0x54b091(0x148)];_0x20ccdc===_0x4ac4e1[_0x54b091(0x185)][_0x54b091(0x41b)]&&this[_0x54b091(0x282)](_0x560cfd),_0x20ccdc===_0x4ac4e1[_0x54b091(0x185)]['USERS_LEAVE']&&this[_0x54b091(0x1b3)](_0x560cfd);}),this[_0x1006ff(0x3e2)](this[_0x1006ff(0x22b)][_0x1006ff(0x46a)](_0x3e03c5=>{const _0x366d93=_0x1006ff,_0x145c98=_0x3e03c5[_0x366d93(0x2b6)];_0x145c98!=null&&this[_0x366d93(0x22f)]&&_0x3e03c5['id']===_0xe08b87['SetTextSelectionsOperation']['id']&&_0x145c98[_0x366d93(0x3e4)]===this[_0x366d93(0x3ea)]&&_0x145c98['isEditing']===!0x1&&this['_updateLocalCursor'](_0x145c98[_0x366d93(0x3aa)]);})),this[_0x1006ff(0x1cf)][_0x1006ff(0x414)]['pipe'](_0x4c5465[_0x1006ff(0x30f)](this[_0x1006ff(0x3f0)]))[_0x1006ff(0x417)](_0x5d5077=>{const _0x5d95c9=_0x1006ff;if((_0x5d5077==null?void 0x0:_0x5d5077[_0x5d95c9(0x3ea)])!==this['unitID'])return;const _0x280ba5={'eventID':_0x4ac4e1[_0x5d95c9(0x185)][_0x5d95c9(0x41b)],'data':_0x5d5077};this[_0x5d95c9(0x282)](_0x280ba5);}),this[_0x1006ff(0x3e2)](this['_commandService'][_0x1006ff(0x46a)](_0x41c8d6=>{const _0x4c2ac5=_0x1006ff;if(_0x41c8d6[_0x4c2ac5(0x2b6)]==null)return;const _0x5622ad=_0x41c8d6[_0x4c2ac5(0x2b6)];if(_0x41c8d6['id']!==_0xe08b87[_0x4c2ac5(0x53a)]['id']||_0x5622ad[_0x4c2ac5(0x3e4)]!==this[_0x4c2ac5(0x3ea)])return;const _0x4bf48d={'id':_0x4c2ac5(0x28b),'params':_0x5622ad},_0x28782b=this['cursorInfo'];for(const [_0xf6f03f,_0x57358c]of _0x28782b){const _0x5807b9={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x4c2ac5(0x3ea)],'actions':null,'textRanges':_0x57358c[_0x4c2ac5(0x3aa)]}},_0x4d0b89=this[_0x4c2ac5(0x1b1)][_0x4c2ac5(0x496)](_0x4bf48d,_0x5807b9,!0x1);if(_0x4ac4e1[_0x4c2ac5(0x36d)](_0x4d0b89))throw _0x4d0b89[_0x4c2ac5(0x3f4)];_0x28782b[_0x4c2ac5(0x4f1)](_0xf6f03f,{..._0x57358c,'ranges':_0x4d0b89[_0x4c2ac5(0x348)][_0x4c2ac5(0x2b6)]['textRanges']});}queueMicrotask(()=>{const _0x21aeb0=_0x4c2ac5;this[_0x21aeb0(0x338)][_0x21aeb0(0x3e9)](_0x28782b);});})));}[_0x21a661(0x282)](_0x243773){const _0x2abf7a=_0x21a661;var _0x379a8f,_0x3aebf6;const {memberID:_0x8794ac,selection:_0x57feca}=_0x243773[_0x2abf7a(0x3ff)],_0x44b62c=_0x16d02e(_0x57feca),_0x7927ef=(_0x3aebf6=(_0x379a8f=this[_0x2abf7a(0x326)][_0x2abf7a(0x261)](this[_0x2abf7a(0x3ea)],_0x8794ac))==null?void 0x0:_0x379a8f[_0x2abf7a(0x46c)])!=null?_0x3aebf6:_0x2abf7a(0x3fb),_0xc924b={'color':this[_0x2abf7a(0x418)]['assignAColorForMemberID'](_0x8794ac),'name':_0x7927ef,'ranges':_0x44b62c},_0x4b1160=this[_0x2abf7a(0x307)];_0x4b1160[_0x2abf7a(0x4f1)](_0x8794ac,_0xc924b),this['_cursorInfo$'][_0x2abf7a(0x3e9)](_0x4b1160);}['_onCursorDelete'](_0x160797){const _0x5d6ca6=_0x21a661,{memberID:_0x219f90}=_0x160797['data'],_0x3d83a6=this['cursorInfo'];_0x3d83a6[_0x5d6ca6(0x464)](_0x219f90),this[_0x5d6ca6(0x338)]['next'](_0x3d83a6);}['_toggleOnline'](){const _0x34b74a=_0x21a661;var _0x2c6190;if(this[_0x34b74a(0x22f)]=!0x0,((_0x2c6190=this[_0x34b74a(0x455)]['getFocusedUnit']())==null?void 0x0:_0x2c6190[_0x34b74a(0x1f1)]())!==this['unitID'])return;const _0x57b947=this[_0x34b74a(0x3b8)]['get'](_0xe08b87[_0x34b74a(0x54f)])[_0x34b74a(0x523)]();Array[_0x34b74a(0x1be)](_0x57b947)&&_0x57b947[_0x34b74a(0x396)]>0x0&&this[_0x34b74a(0x29a)](_0x57b947);}[_0x21a661(0x52c)](){const _0x4c10a4=_0x21a661;this[_0x4c10a4(0x22f)]=!0x1;}};_0x35eb76=_0x1444aa([_0x140225(0x2,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395['Injector'])),_0x140225(0x3,_0x2d1395[_0x21a661(0x2f7)](_0x1e582d)),_0x140225(0x4,_0x2d1395[_0x21a661(0x2f7)](_0xb6854f)),_0x140225(0x5,_0x2d1395[_0x21a661(0x2f7)](_0x58e167)),_0x140225(0x6,_0x4ac4e1['ITransformService']),_0x140225(0x7,_0x2d1395[_0x21a661(0x2fa)]),_0x140225(0x8,_0x2d1395[_0x21a661(0x568)])],_0x35eb76);var _0x19fdf8=Object[_0x21a661(0x1a6)],_0x2b5c9f=Object[_0x21a661(0x1c8)],_0x5ad893=(_0x323898,_0x4893ce,_0x471de1,_0xb617b4)=>{const _0x3e1f8c=_0x21a661;for(var _0x2e3d62=_0xb617b4>0x1?void 0x0:_0xb617b4?_0x2b5c9f(_0x4893ce,_0x471de1):_0x4893ce,_0x1d63fd=_0x323898[_0x3e1f8c(0x396)]-0x1,_0x3267bc;_0x1d63fd>=0x0;_0x1d63fd--)(_0x3267bc=_0x323898[_0x1d63fd])&&(_0x2e3d62=(_0xb617b4?_0x3267bc(_0x4893ce,_0x471de1,_0x2e3d62):_0x3267bc(_0x2e3d62))||_0x2e3d62);return _0xb617b4&&_0x2e3d62&&_0x19fdf8(_0x4893ce,_0x471de1,_0x2e3d62),_0x2e3d62;},_0x1109de=(_0x1e3edf,_0xed48ae)=>(_0x21ac5f,_0x4a6812)=>_0xed48ae(_0x21ac5f,_0x4a6812,_0x1e3edf);const _0x22317c=0x12c,_0xff86b0=0x64,_0xb58277=()=>{let _0x3c5287=[],_0x2f8bac=!0x1;return _0x8ea607=>{const _0xf4c44c=_0x4048;_0x3c5287[_0xf4c44c(0x48a)](_0x8ea607),_0x2f8bac||(_0x2f8bac=!0x0,setTimeout(()=>{const _0xb42d6f=_0xf4c44c;_0x3c5287[_0xb42d6f(0x492)](_0xa2221d=>_0xa2221d()),_0x3c5287=[],_0x2f8bac=!0x1;}));};};let _0x593c1d=class extends _0x2d1395['RxDisposable']{constructor(_0xc375b6,_0x4e6cc3,_0x535630,_0x5b8f78,_0x33ae35,_0x332cce,_0xf33a6e,_0xb45c8c){const _0x27df78=_0x21a661;super(),_0x55c95f(this,'_online',!0x1),_0x55c95f(this,'_init',!0x1),_0x55c95f(this,_0x27df78(0x338),new _0x4c5465[(_0x27df78(0x2d6))](new Map())),_0x55c95f(this,_0x27df78(0x2a4),this[_0x27df78(0x338)][_0x27df78(0x1c2)]()),_0x55c95f(this,'_roomMembers$',new _0x4c5465[(_0x27df78(0x2d6))]([])),_0x55c95f(this,_0x27df78(0x483),this[_0x27df78(0x3af)][_0x27df78(0x219)](_0x4c5465[_0x27df78(0x41c)](_0x22317c))),_0x55c95f(this,'_updateLocalCursor',_0x2d1395[_0x27df78(0x274)]((_0x5544c9,_0x1a6502)=>{const _0x53cdb5=_0x27df78,_0x274f17={'eventID':_0x4ac4e1[_0x53cdb5(0x185)][_0x53cdb5(0x41b)],'data':{'unitID':this[_0x53cdb5(0x3ea)],'memberID':this[_0x53cdb5(0x4e1)][_0x53cdb5(0x577)](),'selection':_0x47b6e7[_0x53cdb5(0x158)](_0x5544c9,_0x1a6502[_0x53cdb5(0x371)])}};this[_0x53cdb5(0x4e1)][_0x53cdb5(0x39a)](_0x274f17,this[_0x53cdb5(0x3ea)]);},_0xff86b0)),(this[_0x27df78(0x3ea)]=_0xc375b6,this[_0x27df78(0x4e1)]=_0x4e6cc3,this[_0x27df78(0x3b8)]=_0x535630,this[_0x27df78(0x418)]=_0x5b8f78,this[_0x27df78(0x326)]=_0x33ae35,this[_0x27df78(0x455)]=_0x332cce,this['_commandService']=_0xf33a6e,this[_0x27df78(0x527)]=_0xb45c8c);}get[_0x21a661(0x307)](){const _0x5aab17=_0x21a661;return this[_0x5aab17(0x338)][_0x5aab17(0x182)]();}get[_0x21a661(0x3db)](){const _0x2a29f9=_0x21a661;return this[_0x2a29f9(0x3af)][_0x2a29f9(0x182)]();}['dispose'](){const _0x4352be=_0x21a661;super[_0x4352be(0x51d)](),this[_0x4352be(0x338)][_0x4352be(0x3e9)](new Map()),this['_cursorInfo$'][_0x4352be(0x4b1)](),this['_roomMembers$'][_0x4352be(0x3e9)]([]),this[_0x4352be(0x3af)][_0x4352be(0x4b1)]();}['init'](){const _0x12bf2f=_0x21a661;this[_0x12bf2f(0x447)]||(this[_0x12bf2f(0x447)]=!0x0,this[_0x12bf2f(0x4e1)][_0x12bf2f(0x38b)][_0x12bf2f(0x219)](_0x4c5465['takeUntil'](this['dispose$']))[_0x12bf2f(0x417)](_0x437d70=>{const _0xb66af=_0x12bf2f;_0x437d70===_0x1173b7[_0xb66af(0x341)]?this['_toggleOnline']():this[_0xb66af(0x52c)]();}),this[_0x12bf2f(0x4e1)][_0x12bf2f(0x1b2)]['pipe'](_0x4c5465[_0x12bf2f(0x30f)](this[_0x12bf2f(0x3f0)]))[_0x12bf2f(0x417)](_0x54a15f=>{const _0x2d7f26=_0x12bf2f,_0x40cea4=_0x54a15f['eventID'];_0x40cea4===_0x4ac4e1[_0x2d7f26(0x185)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x54a15f),_0x40cea4===_0x4ac4e1[_0x2d7f26(0x185)][_0x2d7f26(0x2f5)]&&this[_0x2d7f26(0x1b3)](_0x54a15f);}),this[_0x12bf2f(0x569)](),this[_0x12bf2f(0x3e2)](this[_0x12bf2f(0x22b)][_0x12bf2f(0x46a)](_0x386a45=>{const _0x4787b4=_0x12bf2f;if(this[_0x4787b4(0x22f)]&&_0x386a45['id']===_0x44e81f['SetSelectionsOperation']['id']&&_0x386a45[_0x4787b4(0x2b6)][_0x4787b4(0x3e4)]===this[_0x4787b4(0x3ea)]){const _0x3a4255=_0x386a45['params'];this[_0x4787b4(0x29a)](_0x3a4255[_0x4787b4(0x13f)],_0x3a4255['selections'][0x0]);}})));}[_0x21a661(0x282)](_0x36c449){const _0x3e13fe=_0x21a661;var _0x4a4c9c,_0x1280fe;const {memberID:_0x1e9ac4,selection:_0x454120}=_0x36c449[_0x3e13fe(0x3ff)],{sheetName:_0x2dd687,range:_0x206bda}=_0x47b6e7[_0x3e13fe(0x1d3)](_0x454120),_0x3a7716={'name':(_0x1280fe=(_0x4a4c9c=this[_0x3e13fe(0x326)][_0x3e13fe(0x261)](this[_0x3e13fe(0x3ea)],_0x1e9ac4))==null?void 0x0:_0x4a4c9c[_0x3e13fe(0x46c)])!=null?_0x1280fe:_0x3e13fe(0x3fb),'range':this[_0x3e13fe(0x541)](_0x2dd687,_0x206bda),'sheetID':_0x2dd687,'color':this[_0x3e13fe(0x418)]['assignAColorForMemberID'](_0x1e9ac4),'selection':_0x454120},_0x67f3e6=this[_0x3e13fe(0x307)];_0x67f3e6[_0x3e13fe(0x4f1)](_0x1e9ac4,_0x3a7716),this['_cursorInfo$'][_0x3e13fe(0x3e9)](_0x67f3e6);}[_0x21a661(0x1b3)](_0x2fcb05){const _0x3c12bc=_0x21a661,{memberID:_0x388243}=_0x2fcb05['data'],_0x2ca17d=this[_0x3c12bc(0x307)];_0x2ca17d[_0x3c12bc(0x464)](_0x388243),this[_0x3c12bc(0x338)][_0x3c12bc(0x3e9)](_0x2ca17d);}['_getMergeRange'](_0x10a356,_0x193abe){const _0x3f6e69=_0x21a661;var _0x5676d4,_0x2955fa;const _0x28dfc3=(_0x2955fa=(_0x5676d4=this[_0x3f6e69(0x455)][_0x3f6e69(0x3a0)](this[_0x3f6e69(0x3ea)]))==null?void 0x0:_0x5676d4[_0x3f6e69(0x1e8)](_0x10a356))==null?void 0x0:_0x2955fa[_0x3f6e69(0x4a0)]();return(_0x28dfc3==null?void 0x0:_0x28dfc3[_0x3f6e69(0x203)](_0x56400f=>_0x2d1395[_0x3f6e69(0x16c)][_0x3f6e69(0x25b)](_0x56400f,_0x193abe)))||_0x193abe;}[_0x21a661(0x569)](){const _0x427846=_0x21a661,_0x4f84f3=new _0x2d1395[(_0x427846(0x213))](),_0x55727c=_0xb58277(),_0x52a76d=()=>{const _0x15187a=_0x427846;_0x4f84f3['dispose']();const _0x4349fc=(_0x58f357,_0x276dd6,_0x317bf2,_0x4ecd1b)=>{const _0x31606c=_0x4048;let _0x4e4469=[];switch(_0x58f357['id']){case _0x44e81f[_0x31606c(0x223)][_0x31606c(0x369)]:{_0x4e4469=_0x44e81f['handleDeleteRangeMoveLeft'](_0x58f357,_0x4ecd1b);break;}case _0x44e81f[_0x31606c(0x223)][_0x31606c(0x1a8)]:{_0x4e4469=_0x44e81f[_0x31606c(0x4d4)](_0x58f357,_0x4ecd1b);break;}case _0x44e81f[_0x31606c(0x223)][_0x31606c(0x43e)]:{_0x4e4469=_0x44e81f[_0x31606c(0x354)](_0x58f357,_0x4ecd1b);break;}case _0x44e81f[_0x31606c(0x223)][_0x31606c(0x4c4)]:{_0x4e4469=_0x44e81f[_0x31606c(0x2b7)](_0x58f357,_0x4ecd1b);break;}case _0x44e81f[_0x31606c(0x223)][_0x31606c(0x1ac)]:{_0x4e4469=_0x44e81f[_0x31606c(0x17a)](_0x58f357,_0x4ecd1b);break;}case _0x44e81f['EffectRefRangId'][_0x31606c(0x41d)]:{_0x4e4469=_0x44e81f[_0x31606c(0x4be)](_0x58f357,_0x4ecd1b);break;}case _0x44e81f[_0x31606c(0x223)]['MoveRangeCommandId']:{_0x4e4469=_0x44e81f[_0x31606c(0x290)](_0x58f357,_0x4ecd1b);break;}case _0x44e81f[_0x31606c(0x223)]['RemoveColCommandId']:{_0x4e4469=_0x44e81f['handleIRemoveCol'](_0x58f357,_0x4ecd1b);break;}case _0x44e81f['EffectRefRangId'][_0x31606c(0x4c7)]:{_0x4e4469=_0x44e81f[_0x31606c(0x273)](_0x58f357,_0x4ecd1b);break;}}const _0x369f2d=_0x44e81f[_0x31606c(0x1ff)](_0x4e4469,_0x4ecd1b),_0xf46be5=this['cursorInfo'][_0x31606c(0x2e5)](_0x276dd6);if(_0xf46be5&&_0x369f2d){const _0x4cd48a={..._0xf46be5,'range':_0x369f2d};this['cursorInfo']['set'](_0x276dd6,_0x4cd48a),_0x55727c(()=>{const _0x255d3e=_0x31606c,_0x3e92dd=this['_refRangeService']['registerRefRange'](_0x369f2d,_0x213efb=>(_0x3e92dd[_0x255d3e(0x51d)](),_0x4349fc(_0x213efb,_0x276dd6,_0x317bf2,_0x369f2d)));_0x4f84f3['add'](_0x3e92dd);});}return{'redos':[],'undos':[]};};this[_0x15187a(0x307)][_0x15187a(0x492)]((_0x11c1ac,_0x1c1dae)=>{const _0x5b01aa=_0x15187a,{range:_0x3d0b13,sheetID:_0x328304}=_0x11c1ac,_0x225151=this[_0x5b01aa(0x527)][_0x5b01aa(0x1cb)](_0x3d0b13,_0x68d15f=>(_0x225151[_0x5b01aa(0x51d)](),_0x4349fc(_0x68d15f,_0x1c1dae,_0x328304,_0x3d0b13)));_0x4f84f3[_0x5b01aa(0x18d)](_0x225151);});};this[_0x427846(0x3e2)](_0x2d1395[_0x427846(0x553)](this[_0x427846(0x338)][_0x427846(0x417)](()=>{_0x52a76d();})));}[_0x21a661(0x4d3)](){const _0x5320df=_0x21a661;var _0x31b5a8,_0x524286;if(this[_0x5320df(0x22f)]=!0x0,((_0x31b5a8=this[_0x5320df(0x455)][_0x5320df(0x49f)]())==null?void 0x0:_0x31b5a8['getUnitId']())!==this[_0x5320df(0x3ea)])return;const _0x485dd4=(_0x524286=this[_0x5320df(0x3b8)][_0x5320df(0x2e5)](_0x44e81f[_0x5320df(0x28e)])[_0x5320df(0x460)]())==null?void 0x0:_0x524286[0x0],_0x2ab099=this[_0x5320df(0x455)][_0x5320df(0x264)](_0x2d1395[_0x5320df(0x21c)][_0x5320df(0x196)])[_0x5320df(0x380)]();_0x485dd4&&_0x2ab099&&this[_0x5320df(0x29a)](_0x2ab099[_0x5320df(0x57c)](),_0x485dd4);}[_0x21a661(0x52c)](){this['_online']=!0x1;}};_0x593c1d=_0x5ad893([_0x1109de(0x2,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395['Injector'])),_0x1109de(0x3,_0x2d1395[_0x21a661(0x2f7)](_0x1e582d)),_0x1109de(0x4,_0x2d1395['Inject'](_0xb6854f)),_0x1109de(0x5,_0x2d1395[_0x21a661(0x2fa)]),_0x1109de(0x6,_0x2d1395[_0x21a661(0x568)]),_0x1109de(0x7,_0x2d1395[_0x21a661(0x2f7)](_0x44e81f[_0x21a661(0x271)]))],_0x593c1d);var _0x137517=Object[_0x21a661(0x1a6)],_0x3eea23=Object[_0x21a661(0x1c8)],_0x10e68e=(_0x206150,_0x310fb7,_0x24ddb8,_0x26456)=>{for(var _0x3f91b3=_0x26456>0x1?void 0x0:_0x26456?_0x3eea23(_0x310fb7,_0x24ddb8):_0x310fb7,_0x1773a8=_0x206150['length']-0x1,_0x52f491;_0x1773a8>=0x0;_0x1773a8--)(_0x52f491=_0x206150[_0x1773a8])&&(_0x3f91b3=(_0x26456?_0x52f491(_0x310fb7,_0x24ddb8,_0x3f91b3):_0x52f491(_0x3f91b3))||_0x3f91b3);return _0x26456&&_0x3f91b3&&_0x137517(_0x310fb7,_0x24ddb8,_0x3f91b3),_0x3f91b3;},_0x5c2579=(_0xa2c95c,_0x141271)=>(_0x2dc5cf,_0x332b31)=>_0x141271(_0x2dc5cf,_0x332b31,_0xa2c95c);let _0x4ad65f=class extends _0x2d1395[_0x21a661(0x2b4)]{constructor(_0x364bea,_0x38eb57,_0x3eaa1f){const _0x3a742d=_0x21a661;super(),_0x55c95f(this,_0x3a742d(0x38a),new Map()),_0x55c95f(this,_0x3a742d(0x2dd),new _0x4c5465[(_0x3a742d(0x394))]()),(this['_univerInstanceService']=_0x364bea,this[_0x3a742d(0x3b8)]=_0x38eb57,this[_0x3a742d(0x3c0)]=_0x3eaa1f,this['_init']());}['dispose'](){const _0x4ec120=_0x21a661;super[_0x4ec120(0x51d)](),this['_entityInit$']['complete'](),this[_0x4ec120(0x38a)][_0x4ec120(0x492)](_0x36b5ce=>_0x36b5ce['dispose']());}[_0x21a661(0x166)](_0x584c68){const _0x2dc516=_0x21a661;return this['_entities'][_0x2dc516(0x397)](_0x584c68)?this[_0x2dc516(0x38a)]['get'](_0x584c68)[_0x2dc516(0x2a4)]:this['_entityInit$'][_0x2dc516(0x219)](_0x4c5465[_0x2dc516(0x2ca)](_0x339067=>_0x339067[_0x2dc516(0x3ea)]===_0x584c68),_0x4c5465[_0x2dc516(0x23c)](_0x4e74b0=>_0x4e74b0['cursorInfo$']));}[_0x21a661(0x447)](){const _0x3e445b=_0x21a661;this[_0x3e445b(0x455)][_0x3e445b(0x2fd)](_0x2d1395['UniverInstanceType'][_0x3e445b(0x196)])['pipe'](_0x4c5465[_0x3e445b(0x30f)](this[_0x3e445b(0x3f0)]))['subscribe'](async _0x50524d=>{const _0x40f33f=_0x3e445b,_0x414836=_0x50524d[_0x40f33f(0x1f1)](),_0x59c91a=await this[_0x40f33f(0x21f)](_0x414836);this['_entityInit$'][_0x40f33f(0x3e9)](_0x59c91a),this[_0x40f33f(0x38a)][_0x40f33f(0x4f1)](_0x414836,_0x59c91a);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2d1395[_0x3e445b(0x21c)][_0x3e445b(0x4ef)])[_0x3e445b(0x219)](_0x4c5465[_0x3e445b(0x30f)](this[_0x3e445b(0x3f0)]))[_0x3e445b(0x219)](_0x4c5465[_0x3e445b(0x2ca)](_0x363829=>!_0x363829[_0x3e445b(0x1f1)]()[_0x3e445b(0x4f2)]('__')))[_0x3e445b(0x417)](async _0x25595b=>{const _0x6e118e=_0x3e445b,_0x3b49b4=_0x25595b[_0x6e118e(0x1f1)](),_0x556275=await this[_0x6e118e(0x151)](_0x3b49b4);this[_0x6e118e(0x2dd)][_0x6e118e(0x3e9)](_0x556275),this[_0x6e118e(0x38a)]['set'](_0x3b49b4,_0x556275);}),_0x4c5465[_0x3e445b(0x1ad)](this[_0x3e445b(0x455)][_0x3e445b(0x268)](_0x2d1395['UniverInstanceType'][_0x3e445b(0x4ef)]),this[_0x3e445b(0x455)][_0x3e445b(0x268)](_0x2d1395[_0x3e445b(0x21c)][_0x3e445b(0x196)]))[_0x3e445b(0x219)](_0x4c5465[_0x3e445b(0x30f)](this[_0x3e445b(0x3f0)]))[_0x3e445b(0x417)](_0x5c5ba=>{const _0x23bb1a=_0x3e445b,_0x3c83cc=_0x5c5ba[_0x23bb1a(0x1f1)](),_0x230686=this[_0x23bb1a(0x38a)]['get'](_0x3c83cc);_0x230686&&(_0x230686[_0x23bb1a(0x51d)](),this[_0x23bb1a(0x38a)][_0x23bb1a(0x464)](_0x3c83cc));});}async[_0x21a661(0x21f)](_0x31173e){const _0x487b85=_0x21a661,_0x3337b0=await this[_0x487b85(0x3c0)]['requireSession'](_0x31173e),_0x26879d=this[_0x487b85(0x3b8)][_0x487b85(0x3e5)](_0x593c1d,_0x31173e,_0x3337b0);return _0x26879d[_0x487b85(0x50c)](),_0x26879d;}async[_0x21a661(0x151)](_0x5a7126){const _0x5158ff=_0x21a661,_0x1ec826=await this[_0x5158ff(0x3c0)][_0x5158ff(0x557)](_0x5a7126),_0x16288d=this[_0x5158ff(0x3b8)][_0x5158ff(0x3e5)](_0x35eb76,_0x5a7126,_0x1ec826);return _0x16288d[_0x5158ff(0x50c)](),_0x16288d;}};_0x4ad65f=_0x10e68e([_0x5c2579(0x0,_0x2d1395['IUniverInstanceService']),_0x5c2579(0x1,_0x2d1395['Inject'](_0x2d1395['Injector'])),_0x5c2579(0x2,_0x2d1395[_0x21a661(0x2f7)](_0x2e2c4a[_0x21a661(0x2e4)]))],_0x4ad65f);const _0xfc6dc6=0x14,_0x127e6a=0xc8,_0x538c93=0x4,_0x48f38a=0x5;function _0x37098c(_0x5d7cf0,_0x3b4965){const _0x16abaf=_0x21a661;let {radius:_0x4612fa,width:_0x4cb11f,height:_0x57bb44}=_0x3b4965;_0x4612fa=_0x4612fa!=null?_0x4612fa:0x0,_0x4cb11f=_0x4cb11f!=null?_0x4cb11f:0x1e,_0x57bb44=_0x57bb44!=null?_0x57bb44:0x1e;let _0x349e59=0x0,_0x3a6419=0x0,_0x285ea7=0x0;_0x349e59=_0x3a6419=_0x285ea7=Math[_0x16abaf(0x57b)](_0x4612fa,_0x4cb11f/0x2,_0x57bb44/0x2),_0x5d7cf0[_0x16abaf(0x3a5)](),_0x5d7cf0['moveTo'](_0x349e59,0x0),_0x5d7cf0[_0x16abaf(0x26b)](_0x4cb11f-_0x3a6419,0x0),_0x5d7cf0['arc'](_0x4cb11f-_0x3a6419,_0x3a6419,_0x3a6419,Math['PI']*0x3/0x2,0x0,!0x1),_0x5d7cf0[_0x16abaf(0x26b)](_0x4cb11f,_0x57bb44-_0x285ea7),_0x5d7cf0[_0x16abaf(0x503)](_0x4cb11f-_0x285ea7,_0x57bb44-_0x285ea7,_0x285ea7,0x0,Math['PI']/0x2,!0x1),_0x5d7cf0[_0x16abaf(0x26b)](0x0,_0x57bb44),_0x5d7cf0[_0x16abaf(0x26b)](0x0,_0x349e59),_0x5d7cf0[_0x16abaf(0x503)](_0x349e59,_0x349e59,_0x349e59,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5d7cf0[_0x16abaf(0x145)](),_0x3b4965[_0x16abaf(0x39b)]&&(_0x5d7cf0['save'](),_0x5d7cf0['fillStyle']=_0x3b4965[_0x16abaf(0x39b)],_0x3b4965[_0x16abaf(0x4ee)]===_0x16abaf(0x168)?_0x5d7cf0[_0x16abaf(0x39b)](_0x16abaf(0x168)):_0x5d7cf0[_0x16abaf(0x39b)](),_0x5d7cf0['restore']());}class _0x491d6e extends _0xc3204c['Shape']{constructor(_0x20eb4f,_0x93cc71){const _0x1582c6=_0x21a661;super(_0x20eb4f,_0x93cc71),_0x55c95f(this,_0x1582c6(0x239)),_0x55c95f(this,_0x1582c6(0x53b)),(this[_0x1582c6(0x239)]=_0x93cc71==null?void 0x0:_0x93cc71[_0x1582c6(0x239)],this[_0x1582c6(0x53b)]=_0x93cc71==null?void 0x0:_0x93cc71['text']);}static[_0x21a661(0x560)](_0x1e67f6,_0x527065){const _0x53a123=_0x21a661,{text:_0x198236,color:_0x298d5a}=_0x527065;_0x1e67f6[_0x53a123(0x1b5)](),_0x1e67f6[_0x53a123(0x14b)]=_0x53a123(0x252);const _0x35df8c=_0x1e67f6[_0x53a123(0x40a)](_0x198236)[_0x53a123(0x2f6)],_0x570a5d=Math[_0x53a123(0x57b)](_0x35df8c+0x2*_0x538c93,_0x127e6a);_0x37098c(_0x1e67f6,{'height':_0xfc6dc6,'radius':0x4,'width':_0x570a5d,'fill':_0x298d5a,'evented':!0x1}),_0x1e67f6[_0x53a123(0x24c)]='#FFF';const _0x541980=_0x538c93,_0x518729=_0xfc6dc6-_0x48f38a,_0x2f751f=_0x127e6a-0x2*_0x538c93;if(_0x35df8c>_0x2f751f){let _0x43eac4='',_0x433435=0x0;for(const _0x5bbccb of _0x198236){const _0x5b608a=_0x1e67f6['measureText'](_0x5bbccb)[_0x53a123(0x2f6)];if(_0x433435+_0x5b608a<=_0x2f751f-_0x1e67f6[_0x53a123(0x40a)]('...')[_0x53a123(0x2f6)])_0x43eac4+=_0x5bbccb,_0x433435+=_0x5b608a;else{_0x43eac4+=_0x53a123(0x54d);break;}}_0x1e67f6[_0x53a123(0x558)](_0x43eac4,_0x541980,_0x518729);}else _0x1e67f6[_0x53a123(0x558)](_0x198236,_0x541980,_0x518729);_0x1e67f6[_0x53a123(0x17f)]();}[_0x21a661(0x2b3)](_0x9a1d34){_0x491d6e['drawWith'](_0x9a1d34,this);}}const _0x61ba09=_0x21a661(0x4a1),_0x1dffef=_0x21a661(0x191),_0x24ddbb=_0x21a661(0x4e7),_0x3b43b4=0x6,_0x430318=1.5,_0xf7d28f=0x4,_0x127eaf=1.5,_0x1d243c=_0x21a661(0x3de);class _0x5473fe{constructor(_0x57911f,_0x918640,_0x5c2074,_0x48330c){const _0x33a8f0=_0x21a661;_0x55c95f(this,_0x33a8f0(0x536),[]),_0x55c95f(this,_0x33a8f0(0x2b0),null),_0x55c95f(this,_0x33a8f0(0x3f3),null),_0x55c95f(this,'_anchorDot',null),_0x55c95f(this,_0x33a8f0(0x1fb),null),_0x55c95f(this,'_eventUnsubscribe',null),(this[_0x33a8f0(0x2df)]=_0x57911f,this['_scene']=_0x918640,this[_0x33a8f0(0x409)]=_0x5c2074,this[_0x33a8f0(0x4fc)]=_0x48330c,this[_0x33a8f0(0x2c2)]());}set[_0x21a661(0x531)](_0x5ef101){const _0x452963=_0x21a661;_0x5ef101?(this[_0x452963(0x489)]&&this[_0x452963(0x489)]['hide'](),this['_textBubble']&&this[_0x452963(0x3f3)][_0x452963(0x4b5)]()):(this[_0x452963(0x489)]&&this[_0x452963(0x489)][_0x452963(0x4b5)](),this[_0x452963(0x3f3)]&&this['_textBubble'][_0x452963(0x2f4)]());}['dispose'](){const _0x39ded2=_0x21a661;for(const _0x53b90c of this[_0x39ded2(0x536)])_0x53b90c[_0x39ded2(0x51d)]();this[_0x39ded2(0x3f3)]&&this['_textBubble']['dispose'](),this[_0x39ded2(0x489)]&&this[_0x39ded2(0x489)][_0x39ded2(0x51d)](),this['_anchor']&&this['_anchor'][_0x39ded2(0x51d)](),this[_0x39ded2(0x181)]&&this['_eventUnsubscribe']();}[_0x21a661(0x2c2)](){const _0x1c05e0=_0x21a661;var _0x450402;const {_docSkeleton:_0x3b2388,_document:_0x289583}=this,{color:_0x4c2cc4,name:_0x3f530c,ranges:_0x22af78}=this[_0x1c05e0(0x2df)],_0x1b688b=_0x289583[_0x1c05e0(0x347)](),{docsLeft:_0x49d337,docsTop:_0x2a6db1}=_0x1b688b,_0x498d31=new _0x52fc42[(_0x1c05e0(0x36e))](_0x1b688b,_0x3b2388);for(const {startOffset:_0x55165c,endOffset:_0x53a796,collapsed:_0x5496c2,isActive:_0x3e2b7c}of _0x22af78){const _0x2be88a=_0x3b2388[_0x1c05e0(0x443)](_0x55165c),_0x4b0fea=_0x3b2388[_0x1c05e0(0x443)](_0x53a796);if(_0x3e2b7c){const {contentBoxPointGroup:_0x559cf7}=_0x498d31['getRangePointData'](_0x4b0fea,_0x4b0fea);if(_0x559cf7['length']===0x0)continue;this[_0x1c05e0(0x305)](_0x4c2cc4,_0x559cf7,_0x49d337,_0x2a6db1,_0x3f530c),this[_0x1c05e0(0x181)]=this[_0x1c05e0(0x1d7)]();}if(!_0x5496c2&&_0x2be88a&&_0x4b0fea){if(_0x52fc42[_0x1c05e0(0x1ef)](_0x2be88a,_0x4b0fea)){const _0x2c7458=new _0x52fc42['NodePositionConvertToRectRange'](_0x1b688b,_0x3b2388),{pointGroup:_0x14a89b}=(_0x450402=_0x2c7458[_0x1c05e0(0x3e7)](_0x2be88a,_0x4b0fea))!=null?_0x450402:{};if(_0x14a89b==null||_0x14a89b[_0x1c05e0(0x396)]===0x0)continue;this[_0x1c05e0(0x222)](_0x4c2cc4,_0x14a89b,_0x49d337,_0x2a6db1);}else{const {contentBoxPointGroup:_0xdcfc3f}=_0x498d31[_0x1c05e0(0x3e7)](_0x2be88a,_0x4b0fea);if(_0xdcfc3f['length']===0x0)continue;this[_0x1c05e0(0x3c4)](_0x4c2cc4,_0xdcfc3f,_0x49d337,_0x2a6db1);}}}}[_0x21a661(0x305)](_0x4154e4,_0x3ccafa,_0x4f80b5,_0x63700e,_0x563ae2){const _0x5b49e2=_0x21a661,_0x8f0be6=this[_0x5b49e2(0x20d)](_0x3ccafa),{left:_0x52d244,top:_0x5a09d5,height:_0x550ed8}=_0x8f0be6,_0x4592cc=this[_0x5b49e2(0x3da)](),_0x42d19e=_0x127eaf/_0x4592cc,_0x3d1c84=new _0xc3204c[(_0x5b49e2(0x2a9))](_0x61ba09+_0x2d1395[_0x5b49e2(0x344)]['generateRandomId'](_0x3b43b4),{'left':_0x52d244+_0x4f80b5-_0x42d19e,'top':_0x5a09d5+_0x63700e,'height':_0x550ed8,'width':_0x430318,'fill':_0x4154e4||_0xc3204c[_0x5b49e2(0x34f)](_0x2d1395[_0x5b49e2(0x4ce)]['black'],0x0),'strokeWidth':_0x42d19e,'stroke':_0x1d243c,'evented':!0x0});this[_0x5b49e2(0x2b0)]=_0x3d1c84,this[_0x5b49e2(0x4ab)][_0x5b49e2(0x540)](_0x3d1c84,_0x52fc42[_0x5b49e2(0x442)]);const _0x51122e=new _0xc3204c[(_0x5b49e2(0x2a9))](_0x61ba09+_0x2d1395[_0x5b49e2(0x344)][_0x5b49e2(0x241)](_0x3b43b4),{'left':_0x52d244+_0x4f80b5-_0x42d19e,'top':_0x5a09d5+_0x63700e-_0xf7d28f/0x2,'height':_0xf7d28f,'width':_0xf7d28f,'fill':_0x4154e4||_0xc3204c[_0x5b49e2(0x34f)](_0x2d1395[_0x5b49e2(0x4ce)][_0x5b49e2(0x35a)],0x0),'strokeWidth':0x0,'stroke':_0x4154e4||_0xc3204c[_0x5b49e2(0x34f)](_0x2d1395['COLORS'][_0x5b49e2(0x35a)],0x0),'evented':!0x1});this['_anchorDot']=_0x51122e,this[_0x5b49e2(0x4ab)][_0x5b49e2(0x540)](_0x51122e,_0x52fc42[_0x5b49e2(0x442)]);const _0x559093=new _0x491d6e(_0x61ba09+_0x2d1395[_0x5b49e2(0x344)][_0x5b49e2(0x241)](_0x3b43b4),{'left':_0x52d244+_0x4f80b5-_0x42d19e,'top':_0x5a09d5+_0x63700e-_0xfc6dc6,'text':_0x563ae2,'color':_0x4154e4});this[_0x5b49e2(0x3f3)]=_0x559093,this[_0x5b49e2(0x4ab)]['addObject'](_0x559093,_0x52fc42[_0x5b49e2(0x442)]),this[_0x5b49e2(0x531)]=!0x1;}['_handleHover'](){const _0x443139=_0x21a661,_0x3da30a=this[_0x443139(0x2b0)]['onPointerEnter$']['subscribeEvent'](()=>{const _0x5580ee=_0x443139;this[_0x5580ee(0x531)]=!0x0;}),_0x3c7587=this[_0x443139(0x2b0)][_0x443139(0x494)]['subscribeEvent'](()=>{const _0xbfc74=_0x443139;this[_0xbfc74(0x1fb)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x57b5d9=_0xbfc74;this[_0x57b5d9(0x531)]=!0x1;},0x7d0);});return()=>{const _0x2f7000=_0x443139;_0x3da30a[_0x2f7000(0x3eb)](),_0x3c7587['unsubscribe']();};}[_0x21a661(0x3c4)](_0x507d19,_0x1a3285,_0x1da869,_0x1d4fe1){const _0x45bb50=_0x21a661,_0x271123=new _0x2d1395[(_0x45bb50(0x513))](_0x507d19)[_0x45bb50(0x3b3)](0.2)[_0x45bb50(0x29d)](),_0x53c4f6=new _0xc3204c[(_0x45bb50(0x3f8))](_0x1dffef+_0x2d1395[_0x45bb50(0x344)][_0x45bb50(0x241)](_0x3b43b4),{'pointsGroup':_0x1a3285,'fill':_0x271123||_0xc3204c['getColor'](_0x2d1395[_0x45bb50(0x4ce)]['black'],0.2),'left':_0x1da869,'top':_0x1d4fe1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x45bb50(0x536)]['push'](_0x53c4f6),this[_0x45bb50(0x4ab)][_0x45bb50(0x540)](_0x53c4f6,_0x52fc42['TEXT_RANGE_LAYER_INDEX']);}[_0x21a661(0x222)](_0x396bb3,_0x50c356,_0x145c4f,_0x314859){const _0x2c07e9=_0x21a661,_0x1f40a4=new _0x2d1395[(_0x2c07e9(0x513))](_0x396bb3)[_0x2c07e9(0x3b3)](0.2)[_0x2c07e9(0x29d)](),_0x1fda17=new _0xc3204c[(_0x2c07e9(0x3f8))](_0x24ddbb+_0x2d1395[_0x2c07e9(0x344)][_0x2c07e9(0x241)](_0x3b43b4),{'pointsGroup':_0x50c356,'fill':_0x1f40a4||_0xc3204c[_0x2c07e9(0x34f)](_0x2d1395['COLORS'][_0x2c07e9(0x35a)],0.2),'left':_0x145c4f,'top':_0x314859,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x1fda17),this[_0x2c07e9(0x4ab)][_0x2c07e9(0x540)](_0x1fda17,_0x52fc42['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x5e9c9c){const _0x4b6ec0=_0x5e9c9c[0x0],_0x1006c8=_0x4b6ec0[0x0],_0x37660d=_0x4b6ec0[0x2],{x:_0x260caf,y:_0x3ceb66}=_0x1006c8,{x:_0x9592aa,y:_0x267a46}=_0x37660d;return{'left':_0x260caf,'top':_0x3ceb66,'width':_0x9592aa-_0x260caf,'height':_0x267a46-_0x3ceb66};}[_0x21a661(0x3da)](){const _0x176cf4=_0x21a661,{scaleX:_0x36efd0,scaleY:_0x1c44ba}=this[_0x176cf4(0x4ab)][_0x176cf4(0x482)]();return Math['max'](_0x36efd0,_0x1c44ba);}}var _0x148ecd=Object[_0x21a661(0x1a6)],_0x59cae7=Object['getOwnPropertyDescriptor'],_0x3430cf=(_0x26505c,_0x594272,_0x4ecdbc,_0x3d2907)=>{const _0x519935=_0x21a661;for(var _0x8565f3=_0x3d2907>0x1?void 0x0:_0x3d2907?_0x59cae7(_0x594272,_0x4ecdbc):_0x594272,_0x477dd7=_0x26505c[_0x519935(0x396)]-0x1,_0x4d01c1;_0x477dd7>=0x0;_0x477dd7--)(_0x4d01c1=_0x26505c[_0x477dd7])&&(_0x8565f3=(_0x3d2907?_0x4d01c1(_0x594272,_0x4ecdbc,_0x8565f3):_0x4d01c1(_0x8565f3))||_0x8565f3);return _0x3d2907&&_0x8565f3&&_0x148ecd(_0x594272,_0x4ecdbc,_0x8565f3),_0x8565f3;},_0x49f68c=(_0x209b34,_0x326dd8)=>(_0x526041,_0x4a017c)=>_0x326dd8(_0x526041,_0x4a017c,_0x209b34);let _0xb9f9ac=class extends _0x2d1395[_0x21a661(0x2b4)]{constructor(_0x2d1fb9,_0x42c873,_0x1f7c0e,_0x5dc635,_0x2b6673){const _0x5e0596=_0x21a661;super(),_0x55c95f(this,_0x5e0596(0x378),[]),_0x55c95f(this,_0x5e0596(0x289),[]),(this['_context']=_0x2d1fb9,this[_0x5e0596(0x473)]=_0x42c873,this[_0x5e0596(0x518)]=_0x1f7c0e,this[_0x5e0596(0x22b)]=_0x5dc635,this['_themeService']=_0x2b6673,this[_0x5e0596(0x447)]());}['_init'](){const _0x52fb3e=_0x21a661,_0x4e9717=this['_context'][_0x52fb3e(0x3e4)],_0x15b765=this[_0x52fb3e(0x473)];this[_0x52fb3e(0x3e2)](_0x4c5465[_0x52fb3e(0x1f9)]([this[_0x52fb3e(0x518)][_0x52fb3e(0x166)](_0x4e9717),this[_0x52fb3e(0x21d)][_0x52fb3e(0x366)]])[_0x52fb3e(0x219)](_0x52321c[_0x52fb3e(0x500)](([_0x57d383,_0x665bcd])=>({'skeleton':_0x15b765[_0x52fb3e(0x2e8)](),'cursors':[..._0x57d383[_0x52fb3e(0x30a)]()]['flatMap'](_0x520e84=>({..._0x520e84,'color':_0x665bcd[_0x520e84[_0x52fb3e(0x239)]]}))})))[_0x52fb3e(0x417)](_0x435cfa=>{const _0x339bfa=_0x52fb3e;if(this[_0x339bfa(0x199)](),_0x435cfa){const {skeleton:_0x239082,cursors:_0x5d0999}=_0x435cfa;this[_0x339bfa(0x301)](_0x239082,_0x5d0999);}})),this[_0x52fb3e(0x580)](),this['_initCommandExecutedListener']();}[_0x21a661(0x301)](_0x913ef5,_0x5ab0f7){const _0x100027=_0x21a661,{scene:_0x33e77e,mainComponent:_0x5d5cff}=this[_0x100027(0x3a9)],_0x5f0342=_0x5ab0f7['map'](_0xd7559d=>new _0x5473fe(_0xd7559d,_0x33e77e,_0x913ef5,_0x5d5cff));this[_0x100027(0x378)]=_0x5f0342,this[_0x100027(0x289)]=_0x5ab0f7;}['_refreshCollabCursors'](){const _0x11fcee=_0x21a661;this['_removeCollabCursors']();const {scene:_0x23b6dc,mainComponent:_0x1dcdd8}=this[_0x11fcee(0x3a9)],_0x760677=this['_docSkeletonManagerService'][_0x11fcee(0x2e8)](),_0xbae5d2=this[_0x11fcee(0x289)][_0x11fcee(0x500)](_0xe3b1d7=>new _0x5473fe(_0xe3b1d7,_0x23b6dc,_0x760677,_0x1dcdd8));this[_0x11fcee(0x378)]=_0xbae5d2;}[_0x21a661(0x199)](){const _0x18f987=_0x21a661;this[_0x18f987(0x378)][_0x18f987(0x492)](_0x5cbad9=>_0x5cbad9[_0x18f987(0x51d)]()),this[_0x18f987(0x378)]=[];}[_0x21a661(0x574)](){const _0x582c0d=_0x21a661,_0x50a74c=[_0x52fc42[_0x582c0d(0x21a)]['id']];this[_0x582c0d(0x3e2)](this['_commandService']['onCommandExecuted'](_0x89045d=>{const _0x58620c=_0x582c0d;_0x50a74c['includes'](_0x89045d['id'])&&_0x89045d[_0x58620c(0x2b6)]['unitId']===this['_context']['unitId']&&this[_0x58620c(0x297)]();}));}[_0x21a661(0x580)](){const _0x46d2fe=_0x21a661;this[_0x46d2fe(0x3e2)](_0x2d1395[_0x46d2fe(0x453)](this[_0x46d2fe(0x3a9)][_0x46d2fe(0x277)]['onTransformChange$'])[_0x46d2fe(0x219)](_0x52321c[_0x46d2fe(0x2ca)](_0x257a38=>_0x257a38[_0x46d2fe(0x547)]===_0xc3204c[_0x46d2fe(0x4c9)][_0x46d2fe(0x53f)]),_0x52321c[_0x46d2fe(0x3ec)](0x10))['subscribe'](()=>{const _0x327b6d=_0x46d2fe;this[_0x327b6d(0x297)]();}));}};_0xb9f9ac=_0x3430cf([_0x49f68c(0x1,_0x2d1395[_0x21a661(0x2f7)](_0xe08b87[_0x21a661(0x276)])),_0x49f68c(0x2,_0x2d1395[_0x21a661(0x2f7)](_0x4ad65f)),_0x49f68c(0x3,_0x2d1395[_0x21a661(0x568)]),_0x49f68c(0x4,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395['ThemeService']))],_0xb9f9ac);const _0xaabb49=0x1,_0x1bdf5b=1.5;class _0x4b4e22 extends _0xc3204c['Shape']{constructor(_0x18fb44,_0x3aeb03){const _0xa39c30=_0x21a661;super(_0x18fb44,_0x3aeb03),_0x55c95f(this,_0xa39c30(0x507)),_0x55c95f(this,_0xa39c30(0x545),!0x1),_0x55c95f(this,'_range'),_0x55c95f(this,_0xa39c30(0x53d),''),_0x55c95f(this,_0xa39c30(0x27f),_0xa39c30(0x2c7)),_0x55c95f(this,_0xa39c30(0x2e9)),(_0x3aeb03&&this[_0xa39c30(0x3a6)](_0x3aeb03),this[_0xa39c30(0x204)][_0xa39c30(0x20e)](()=>this[_0xa39c30(0x3a6)]({'hovered':!0x0})),this[_0xa39c30(0x494)]['subscribeEvent'](()=>this[_0xa39c30(0x3a6)]({'hovered':!0x1})));}['setShapeProps'](_0x35b395){const _0x309a6d=_0x21a661;var _0x221634,_0x4872df,_0x25a517,_0x349b3d,_0x2e5eb8,_0x541332;this[_0x309a6d(0x507)]=(_0x221634=_0x35b395[_0x309a6d(0x239)])!=null?_0x221634:this[_0x309a6d(0x507)],this[_0x309a6d(0x545)]=(_0x4872df=_0x35b395[_0x309a6d(0x20a)])!=null?_0x4872df:this['_hovered'],this[_0x309a6d(0x202)]=(_0x25a517=_0x35b395[_0x309a6d(0x371)])!=null?_0x25a517:this[_0x309a6d(0x202)],this[_0x309a6d(0x53d)]=(_0x349b3d=_0x35b395['name'])!=null?_0x349b3d:this['_name'],this[_0x309a6d(0x27f)]=(_0x2e5eb8=_0x35b395[_0x309a6d(0x33d)])!=null?_0x2e5eb8:this[_0x309a6d(0x27f)],this[_0x309a6d(0x2e9)]=(_0x541332=_0x35b395[_0x309a6d(0x23d)])!=null?_0x541332:this[_0x309a6d(0x2e9)],this[_0x309a6d(0x47d)]({'width':_0x35b395[_0x309a6d(0x2f6)],'height':_0x35b395[_0x309a6d(0x28f)]});}[_0x21a661(0x32f)](_0x417f24){const _0x2822db=_0x21a661,{row:_0x111123,column:_0x505b0a}=_0x417f24;if(_0x111123>=this[_0x2822db(0x202)][_0x2822db(0x524)]&&_0x111123<=this[_0x2822db(0x202)][_0x2822db(0x514)]&&_0x505b0a>=this[_0x2822db(0x202)][_0x2822db(0x515)]&&_0x505b0a<=this[_0x2822db(0x202)][_0x2822db(0x408)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x2822db(0x3a6)]({'hovered':!0x1});}['triggerDblclick'](_0x14f5f7){return!0x1;}[_0x21a661(0x2b3)](_0x222b30){const _0x21e68d=_0x21a661;_0xc3204c[_0x21e68d(0x2a9)][_0x21e68d(0x560)](_0x222b30,{'width':this[_0x21e68d(0x2f6)],'height':this[_0x21e68d(0x28f)],'strokeWidth':_0x1bdf5b,'stroke':this[_0x21e68d(0x507)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x21e68d(0x545)]&&(_0x222b30[_0x21e68d(0x1b5)](),_0x222b30['transform'](0x1,0x0,0x0,0x1,this[_0x21e68d(0x2f6)],this['_labelPosition']===_0x21e68d(0x37b)?0x0:-_0xfc6dc6),_0x491d6e[_0x21e68d(0x560)](_0x222b30,{'text':this[_0x21e68d(0x53d)],'color':this['_color']}),_0x222b30[_0x21e68d(0x17f)]());}}var _0x2ca7fb=Object[_0x21a661(0x1a6)],_0x51f989=Object[_0x21a661(0x1c8)],_0xeb70f=(_0x5998bd,_0x37c1c1,_0x4d6486,_0x52672f)=>{const _0x4313c6=_0x21a661;for(var _0x4a0919=_0x52672f>0x1?void 0x0:_0x52672f?_0x51f989(_0x37c1c1,_0x4d6486):_0x37c1c1,_0x3ba7d7=_0x5998bd[_0x4313c6(0x396)]-0x1,_0x2782fb;_0x3ba7d7>=0x0;_0x3ba7d7--)(_0x2782fb=_0x5998bd[_0x3ba7d7])&&(_0x4a0919=(_0x52672f?_0x2782fb(_0x37c1c1,_0x4d6486,_0x4a0919):_0x2782fb(_0x4a0919))||_0x4a0919);return _0x52672f&&_0x4a0919&&_0x2ca7fb(_0x37c1c1,_0x4d6486,_0x4a0919),_0x4a0919;},_0x2cada9=(_0x574cab,_0x19c6c3)=>(_0x1e5325,_0x2e2e16)=>_0x19c6c3(_0x1e5325,_0x2e2e16,_0x574cab);const _0x334ee9=0x1389;let _0x2189a9=class extends _0x2d1395['RxDisposable']{constructor(_0x28ae32,_0xed7312,_0x35c1b8,_0x533cd2){const _0x1c30ba=_0x21a661;super(),_0x55c95f(this,_0x1c30ba(0x289),new Set()),_0x55c95f(this,_0x1c30ba(0x501),null),(this[_0x1c30ba(0x3a9)]=_0x28ae32,this[_0x1c30ba(0x3ba)]=_0xed7312,this[_0x1c30ba(0x518)]=_0x35c1b8,this['_themeService']=_0x533cd2,this[_0x1c30ba(0x447)]());}[_0x21a661(0x447)](){const _0x387d46=_0x21a661;this['_sheetSkeletonManagerService'][_0x387d46(0x16a)]['pipe'](_0x52321c[_0x387d46(0x30f)](this[_0x387d46(0x3f0)]),_0x52321c[_0x387d46(0x23c)](_0x550c94=>{const _0x54ddb3=_0x387d46;if(_0x550c94){const _0x291fac=_0x550c94['sheetId'];return _0x4c5465[_0x54ddb3(0x1f9)](this['_collabCursorController'][_0x54ddb3(0x166)](this[_0x54ddb3(0x3a9)][_0x54ddb3(0x3e4)]),this[_0x54ddb3(0x21d)][_0x54ddb3(0x366)])[_0x54ddb3(0x219)](_0x52321c['map'](([_0x1a6d1a,_0x163700])=>{const _0x26a401=_0x54ddb3,_0x55e77e=new Map();return _0x1a6d1a[_0x26a401(0x492)]((_0x2ab239,_0x3cc41c)=>{const _0x1c5bf5=_0x26a401;if(_0x2ab239[_0x1c5bf5(0x363)]===_0x291fac){const _0x5e04bf={..._0x2ab239};_0x5e04bf['color']=_0x163700[_0x2ab239[_0x1c5bf5(0x239)]],_0x55e77e['set'](_0x3cc41c,_0x5e04bf);}}),{'skeleton':_0x550c94,'cursors':_0x55e77e};}));}return _0x4c5465['of']({'skeleton':null,'cursors':new Map()});}))[_0x387d46(0x417)](({skeleton:_0x2fceef,cursors:_0x2a964a})=>{const _0x41f072=_0x387d46;this['_removeCollabCursors'](),_0x2fceef&&this[_0x41f072(0x301)](_0x2fceef,_0x2a964a);}),this[_0x387d46(0x3ba)][_0x387d46(0x16a)][_0x387d46(0x417)](_0x219aa3=>{const _0x4e8727=_0x387d46;if(_0x219aa3==null)return;const {skeleton:_0x353fc0}=_0x219aa3,{scene:_0x1358cc}=this[_0x4e8727(0x3a9)];_0x1358cc[_0x4e8727(0x1e4)][_0x4e8727(0x20e)](_0x2d1395[_0x4e8727(0x274)](_0xd9e078=>{const _0x5f2b41=_0x4e8727;var _0x48026f,_0x3c6326;const {offsetX:_0x2cbd51,offsetY:_0x10c94c}=_0xd9e078,{x:_0x247456,y:_0xafde92}=_0x1358cc[_0x5f2b41(0x1fa)](_0xc3204c[_0x5f2b41(0x38e)][_0x5f2b41(0x495)]([_0x2cbd51,_0x10c94c])),{scaleX:_0x3d00d2,scaleY:_0x1a57a2}=_0x1358cc[_0x5f2b41(0x482)](),_0x164f7a=_0x1358cc[_0x5f2b41(0x1c7)](_0x400492[_0x5f2b41(0x31d)]['VIEW_MAIN']),_0x49c275=_0x1358cc['getVpScrollXYInfoByPosToVp'](_0xc3204c['Vector2'][_0x5f2b41(0x495)]([_0x247456,_0xafde92]),_0x164f7a),_0x1f006c=_0x353fc0[_0x5f2b41(0x3b4)](_0x2cbd51,_0x10c94c,_0x3d00d2,_0x1a57a2,_0x49c275);((_0x48026f=this['_lastPointer'])==null?void 0x0:_0x48026f[_0x5f2b41(0x1d5)])===_0x1f006c[_0x5f2b41(0x1d5)]&&((_0x3c6326=this['_lastPointer'])==null?void 0x0:_0x3c6326[_0x5f2b41(0x1cd)])===_0x1f006c[_0x5f2b41(0x1cd)]||this['_cursors']['forEach'](_0x370631=>{const _0x592fab=_0x5f2b41;_0x370631[_0x592fab(0x32f)](_0x1f006c);});},0x64));});}['_updateCollabCursors'](_0x2e3f65,_0x300ab8){const _0x2c2583=_0x21a661;var _0x191b81;const _0x3f20bd=(_0x191b81=this[_0x2c2583(0x3ba)][_0x2c2583(0x24d)]())==null?void 0x0:_0x191b81[_0x2c2583(0x221)];if(!_0x3f20bd)return;const _0x11d120=this[_0x2c2583(0x26f)]();if(!_0x11d120)return;this[_0x2c2583(0x289)][_0x2c2583(0x492)](_0x38163b=>{_0x38163b['makeDirty']();});const {scene:_0x367319}=_0x11d120,_0xbb0d75=_0x5ea6cc(Array[_0x2c2583(0x156)](_0x300ab8['values']()))[_0x2c2583(0x500)](_0x54c1d1=>{const _0xeaa0a9=_0x2c2583,{color:_0x590265,range:_0x1ab1ae,name:_0x1ed635,selection:_0x3a01fb,sheetID:_0x4b77c9}=_0x54c1d1,{startColumn:_0x4acddc,startRow:_0x3b7a22,endColumn:_0xf69d38,endRow:_0x553bf1}=_0x1ab1ae,_0x1113ce=_0x400492['getCoordByCell'](_0x3b7a22,_0x4acddc,_0x367319,_0x3f20bd),_0x404b91=_0x400492[_0xeaa0a9(0x1f6)](_0x553bf1,_0xf69d38,_0x367319,_0x3f20bd),{columnHeaderHeightAndMarginTop:_0x3b66cb}=_0x3f20bd,{startX:_0x2f2067,startY:_0x1aecaa}=_0x1113ce,{endX:_0x245bd,endY:_0x13fa60}=_0x404b91,_0xeaa6cc=_0x245bd-_0x2f2067,_0x308f51=_0x13fa60-_0x1aecaa,_0x3daeec={'labelPosition':_0x1aecaa-_0x3b66cb>=_0xfc6dc6?_0xeaa0a9(0x2c7):_0xeaa0a9(0x37b),'sheetID':_0x4b77c9,'range':_0x1ab1ae,'color':_0x590265,'name':_0x1ed635,'selection':_0x3a01fb,'left':_0x2f2067,'top':_0x1aecaa,'width':_0xeaa6cc,'height':_0x308f51,'evented':!0x1,'zIndex':_0x334ee9};return new _0x4b4e22(_0x1ed635,_0x3daeec);});_0x367319['addObjects'](_0xbb0d75,_0xaabb49),this[_0x2c2583(0x289)]=new Set(_0xbb0d75);}['_removeCollabCursors'](){const _0x205c8c=_0x21a661;var _0x675472;(_0x675472=this[_0x205c8c(0x289)])==null||_0x675472[_0x205c8c(0x492)](_0xbd7d7a=>_0xbd7d7a[_0x205c8c(0x51d)]());}[_0x21a661(0x26f)](){const _0x5c19f7=_0x21a661;return _0x400492[_0x5c19f7(0x29b)](this[_0x5c19f7(0x3a9)][_0x5c19f7(0x37e)],this[_0x5c19f7(0x3a9)]);}};_0x2189a9=_0xeb70f([_0x2cada9(0x1,_0x2d1395['Inject'](_0x400492[_0x21a661(0x1da)])),_0x2cada9(0x2,_0x2d1395['Inject'](_0x4ad65f)),_0x2cada9(0x3,_0x2d1395['Inject'](_0x2d1395[_0x21a661(0x407)]))],_0x2189a9);function _0x5ea6cc(_0x1472dc){const _0x11801a=_0x21a661,_0xf4251a=new Map();return _0x1472dc[_0x11801a(0x492)](_0x33d3d3=>{const _0x3abf1d=_0x11801a;if(_0xf4251a['has'](_0x33d3d3[_0x3abf1d(0x27b)])){const _0x52dafe=_0xf4251a[_0x3abf1d(0x2e5)](_0x33d3d3[_0x3abf1d(0x27b)]);_0x52dafe[_0x3abf1d(0x46c)]+=',\x20'+_0x33d3d3[_0x3abf1d(0x46c)];}else _0xf4251a[_0x3abf1d(0x4f1)](_0x33d3d3['selection'],_0x33d3d3);}),Array[_0x11801a(0x156)](_0xf4251a[_0x11801a(0x30a)]());}var _0x150c17=function(){const _0x42e4b1=_0x21a661;return _0x150c17=Object[_0x42e4b1(0x333)]||function(_0x1b3fee){const _0x497d66=_0x42e4b1;for(var _0x1702db,_0x2c0e5c=0x1,_0x2b2ec2=arguments[_0x497d66(0x396)];_0x2c0e5c<_0x2b2ec2;_0x2c0e5c++){_0x1702db=arguments[_0x2c0e5c];for(var _0x2d71b0 in _0x1702db)Object[_0x497d66(0x4f7)]['hasOwnProperty'][_0x497d66(0x4d5)](_0x1702db,_0x2d71b0)&&(_0x1b3fee[_0x2d71b0]=_0x1702db[_0x2d71b0]);}return _0x1b3fee;},_0x150c17['apply'](this,arguments);},_0x27677c=function(_0x235ca4,_0x2bc1c0){const _0x4860ad=_0x21a661;var _0x31518a={};for(var _0x51cc31 in _0x235ca4)Object[_0x4860ad(0x4f7)][_0x4860ad(0x4a4)][_0x4860ad(0x4d5)](_0x235ca4,_0x51cc31)&&_0x2bc1c0['indexOf'](_0x51cc31)<0x0&&(_0x31518a[_0x51cc31]=_0x235ca4[_0x51cc31]);if(_0x235ca4!=null&&typeof Object[_0x4860ad(0x34d)]==_0x4860ad(0x3c8)){for(var _0x308c83=0x0,_0x51cc31=Object[_0x4860ad(0x34d)](_0x235ca4);_0x308c83<_0x51cc31[_0x4860ad(0x396)];_0x308c83++)_0x2bc1c0[_0x4860ad(0x267)](_0x51cc31[_0x308c83])<0x0&&Object[_0x4860ad(0x4f7)][_0x4860ad(0x1ea)][_0x4860ad(0x4d5)](_0x235ca4,_0x51cc31[_0x308c83])&&(_0x31518a[_0x51cc31[_0x308c83]]=_0x235ca4[_0x51cc31[_0x308c83]]);}return _0x31518a;},_0x5b0e4b=_0x405593[_0x21a661(0x27e)](function(_0x24a33c,_0x65be95){const _0x4c7990=_0x21a661;var _0x39eb29=_0x24a33c[_0x4c7990(0x46b)],_0x6ba36=_0x24a33c['id'],_0x3a2493=_0x24a33c['className'],_0x582fc7=_0x24a33c[_0x4c7990(0x1f2)],_0x267074=_0x27677c(_0x24a33c,[_0x4c7990(0x46b),'id',_0x4c7990(0x25a),_0x4c7990(0x1f2)]),_0x569c0d=_0x4c7990(0x519)[_0x4c7990(0x1d2)](_0x6ba36,'\x20')['concat'](_0x3a2493||'')['trim'](),_0x135784=_0x405593[_0x4c7990(0x55f)]('_'[_0x4c7990(0x1d2)](_0x4cd257()));return _0x3df0f4(_0x39eb29,''[_0x4c7990(0x1d2)](_0x6ba36),{'defIds':_0x39eb29['defIds'],'idSuffix':_0x135784[_0x4c7990(0x2ad)]},_0x150c17({'ref':_0x65be95,'className':_0x569c0d},_0x267074),_0x582fc7);});function _0x3df0f4(_0x8aa221,_0x1f135f,_0x4da92a,_0x43e83c,_0x3ec07a){const _0x4b6ca1=_0x21a661;return _0x405593[_0x4b6ca1(0x555)](_0x8aa221[_0x4b6ca1(0x57f)],_0x150c17(_0x150c17({'key':_0x1f135f},_0xbab349(_0x8aa221,_0x4da92a,_0x3ec07a)),_0x43e83c),(_0x512815(_0x8aa221,_0x4da92a)[_0x4b6ca1(0x4bb)]||[])[_0x4b6ca1(0x500)](function(_0x5b5f71,_0x496cea){const _0x526791=_0x4b6ca1;return _0x3df0f4(_0x5b5f71,''['concat'](_0x1f135f,'-')[_0x526791(0x1d2)](_0x8aa221[_0x526791(0x57f)],'-')['concat'](_0x496cea),_0x4da92a,void 0x0,_0x3ec07a);}));}function _0xbab349(_0x38eaf1,_0x3f27fe,_0x3e2639){const _0x1a3b96=_0x21a661;var _0xb94a2a=_0x150c17({},_0x38eaf1[_0x1a3b96(0x404)]);_0x3e2639!=null&&_0x3e2639[_0x1a3b96(0x1f5)]&&_0xb94a2a[_0x1a3b96(0x39b)]===_0x1a3b96(0x1f5)&&(_0xb94a2a[_0x1a3b96(0x39b)]=_0x3e2639[_0x1a3b96(0x1f5)]);var _0x318311=_0x3f27fe['defIds'];return!_0x318311||_0x318311[_0x1a3b96(0x396)]===0x0||(_0x38eaf1[_0x1a3b96(0x57f)]===_0x1a3b96(0x161)&&_0xb94a2a[_0x1a3b96(0x2a2)]&&(_0xb94a2a[_0x1a3b96(0x2a2)]=_0xb94a2a[_0x1a3b96(0x2a2)]+_0x3f27fe[_0x1a3b96(0x434)]),Object['entries'](_0xb94a2a)['forEach'](function(_0x42e161){const _0x5cbd96=_0x1a3b96;var _0x31d948=_0x42e161[0x0],_0x3e7275=_0x42e161[0x1];typeof _0x3e7275==_0x5cbd96(0x395)&&(_0xb94a2a[_0x31d948]=_0x3e7275[_0x5cbd96(0x293)](/url\(#(.*)\)/,'url(#$1'[_0x5cbd96(0x1d2)](_0x3f27fe[_0x5cbd96(0x434)],')')));})),_0xb94a2a;}function _0x512815(_0x3c98ec,_0x4f3c36){const _0x366af3=_0x21a661;var _0x4569f1,_0x55863f=_0x4f3c36[_0x366af3(0x220)];return!_0x55863f||_0x55863f[_0x366af3(0x396)]===0x0?_0x3c98ec:_0x3c98ec[_0x366af3(0x57f)]===_0x366af3(0x2d7)&&(!((_0x4569f1=_0x3c98ec['children'])===null||_0x4569f1===void 0x0)&&_0x4569f1['length'])?_0x150c17(_0x150c17({},_0x3c98ec),{'children':_0x3c98ec['children'][_0x366af3(0x500)](function(_0x5e9f2f){const _0x2c7bf7=_0x366af3;return typeof _0x5e9f2f[_0x2c7bf7(0x404)]['id']==_0x2c7bf7(0x395)&&_0x55863f&&_0x55863f['indexOf'](_0x5e9f2f[_0x2c7bf7(0x404)]['id'])>-0x1?_0x150c17(_0x150c17({},_0x5e9f2f),{'attrs':_0x150c17(_0x150c17({},_0x5e9f2f[_0x2c7bf7(0x404)]),{'id':_0x5e9f2f[_0x2c7bf7(0x404)]['id']+_0x4f3c36[_0x2c7bf7(0x434)]})}):_0x5e9f2f;})}):_0x3c98ec;}function _0x4cd257(){const _0x2c2f35=_0x21a661;return Math[_0x2c2f35(0x44d)]()[_0x2c2f35(0x329)](0x24)['substring'](0x2,0x8);}_0x5b0e4b[_0x21a661(0x1cc)]='UniverIcon';var _0x3e0da0={'tag':_0x21a661(0x33a),'attrs':{'fill':'none','viewBox':_0x21a661(0x1db),'width':_0x21a661(0x254),'height':_0x21a661(0x254)},'children':[{'tag':'g','attrs':{'clipPath':_0x21a661(0x46f)},'children':[{'tag':_0x21a661(0x3d1),'attrs':{'stroke':'currentColor','d':_0x21a661(0x454),'strokeLinecap':_0x21a661(0x314),'strokeLinejoin':_0x21a661(0x314),'strokeWidth':1.2}}]},{'tag':_0x21a661(0x2d7),'attrs':{},'children':[{'tag':_0x21a661(0x198),'attrs':{'id':_0x21a661(0x146)},'children':[{'tag':_0x21a661(0x3d1),'attrs':{'fill':_0x21a661(0x26e),'d':_0x21a661(0x340)}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0x4c8237=_0x405593[_0x21a661(0x27e)](function(_0x1ef54d,_0x159b7c){const _0x11a418=_0x21a661;return _0x405593[_0x11a418(0x555)](_0x5b0e4b,Object[_0x11a418(0x333)]({},_0x1ef54d,{'id':_0x11a418(0x475),'ref':_0x159b7c,'icon':_0x3e0da0}));});_0x4c8237[_0x21a661(0x1cc)]=_0x21a661(0x3cb);var _0x5de415={'tag':_0x21a661(0x33a),'attrs':{'fill':_0x21a661(0x50f),'viewBox':_0x21a661(0x2bb),'width':'1em','height':_0x21a661(0x254)},'children':[{'tag':'g','attrs':{'clipPath':_0x21a661(0x153)},'children':[{'tag':_0x21a661(0x3d1),'attrs':{'stroke':_0x21a661(0x1e3),'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':_0x21a661(0x314),'strokeLinejoin':_0x21a661(0x314),'strokeWidth':1.2}}]},{'tag':_0x21a661(0x2d7),'attrs':{},'children':[{'tag':_0x21a661(0x198),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x21a661(0x3d1),'attrs':{'fill':_0x21a661(0x26e),'d':'M0\x200H16V16H0z','transform':_0x21a661(0x3f1)}}]}]}],'defIds':[_0x21a661(0x4c8)]},_0x19acbc=_0x405593[_0x21a661(0x27e)](function(_0x33b0bf,_0x53427a){const _0x13fcef=_0x21a661;return _0x405593['createElement'](_0x5b0e4b,Object[_0x13fcef(0x333)]({},_0x33b0bf,{'id':_0x13fcef(0x488),'ref':_0x53427a,'icon':_0x5de415}));});_0x19acbc['displayName']='OnLineSingle';function _0x2dda5b(_0x134a7d){const _0x4c1046=_0x21a661;var _0x1421cc,_0x1c7343,_0x3064d4='';if(typeof _0x134a7d==_0x4c1046(0x395)||typeof _0x134a7d==_0x4c1046(0x4aa))_0x3064d4+=_0x134a7d;else{if(typeof _0x134a7d==_0x4c1046(0x1c3)){if(Array[_0x4c1046(0x1be)](_0x134a7d)){var _0x812ff=_0x134a7d[_0x4c1046(0x396)];for(_0x1421cc=0x0;_0x1421cc<_0x812ff;_0x1421cc++)_0x134a7d[_0x1421cc]&&(_0x1c7343=_0x2dda5b(_0x134a7d[_0x1421cc]))&&(_0x3064d4&&(_0x3064d4+='\x20'),_0x3064d4+=_0x1c7343);}else{for(_0x1c7343 in _0x134a7d)_0x134a7d[_0x1c7343]&&(_0x3064d4&&(_0x3064d4+='\x20'),_0x3064d4+=_0x1c7343);}}}return _0x3064d4;}function _0x3f0633(){for(var _0x20ba3d,_0x5f0f2b,_0x4db85d=0x0,_0x50f555='',_0x8000c8=arguments['length'];_0x4db85d<_0x8000c8;_0x4db85d++)(_0x20ba3d=arguments[_0x4db85d])&&(_0x5f0f2b=_0x2dda5b(_0x20ba3d))&&(_0x50f555&&(_0x50f555+='\x20'),_0x50f555+=_0x5f0f2b);return _0x50f555;}const _0x7a8a10={'onlineStatusIcon':_0x21a661(0x51e),'onlineStatusTitle':_0x21a661(0x41a),'onlineStatus':_0x21a661(0x438),'online':_0x21a661(0x320),'offline':_0x21a661(0x285)};function _0x24eb8c(_0x3bce43){const _0x14dba7=_0x21a661;switch(_0x3bce43){case _0x27b30b['OFFLINE']:return _0x14dba7(0x3ad);case _0x27b30b['CONFLICT']:return'collabStatus.conflict';case _0x27b30b['FETCH_MISS']:return _0x14dba7(0x295);case _0x27b30b[_0x14dba7(0x224)]:return'collabStatus.notCollab';case _0x27b30b[_0x14dba7(0x3d4)]:case _0x27b30b[_0x14dba7(0x2dc)]:case _0x27b30b['AWAITING_WITH_PENDING']:return _0x14dba7(0x1dd);case _0x27b30b['SYNCED']:return _0x14dba7(0x368);}}function _0x538cc1(_0x5012d9){const _0x148dd5=_0x21a661,{status$:_0x2d9e11}=_0x5012d9,_0x3ef8f8=_0x40eb02[_0x148dd5(0x192)](_0x2d9e11,_0x27b30b[_0x148dd5(0x224)]),_0x37036e=_0x2d1395[_0x148dd5(0x4f0)](_0x2d1395['LocaleService']),_0x44935a=_0x2d1395[_0x148dd5(0x4f0)](_0x2e2c4a['CollaborationSessionService']),_0x3859e2=_0x3ef8f8!==_0x27b30b['OFFLINE'],_0x15de67=_0x37036e['t'](_0x24eb8c(_0x3ef8f8)),_0xf80270=_0x3f0633(_0x7a8a10['onlineStatus'],{[_0x7a8a10[_0x148dd5(0x190)]]:_0x3859e2,[_0x7a8a10[_0x148dd5(0x328)]]:!_0x3859e2}),_0x5c81f1=_0x3859e2?_0x405593['createElement'](_0x19acbc,null):_0x405593[_0x148dd5(0x555)](_0x4c8237,null),_0x13810d=_0x405593[_0x148dd5(0x3f7)](()=>{const _0x1e5bf1=_0x148dd5;_0x3859e2||_0x44935a[_0x1e5bf1(0x32a)]();},[_0x3859e2,_0x44935a]);function _0xee5e44(){const _0x538938=_0x148dd5;return _0x405593[_0x538938(0x555)](_0x538938(0x41f),{'className':_0xf80270,'onClick':_0x13810d},_0x405593[_0x538938(0x555)](_0x538938(0x41f),{'className':_0x7a8a10['onlineStatusIcon']},_0x5c81f1),_0x405593['createElement'](_0x538938(0x41f),{'className':_0x7a8a10[_0x538938(0x51f)]},_0x15de67));}return _0x3859e2?_0xee5e44():_0x405593['createElement'](_0xbe50fe[_0x148dd5(0x31e)],{'title':_0x37036e['t'](_0x148dd5(0x4ad))},_0xee5e44());}var _0x4a7c97=Object['defineProperty'],_0x2ea607=Object['getOwnPropertyDescriptor'],_0x2a7922=(_0x57b102,_0x55c189,_0x446949,_0x542f05)=>{const _0x42e0b2=_0x21a661;for(var _0x105609=_0x542f05>0x1?void 0x0:_0x542f05?_0x2ea607(_0x55c189,_0x446949):_0x55c189,_0xe49c5e=_0x57b102[_0x42e0b2(0x396)]-0x1,_0x2b20de;_0xe49c5e>=0x0;_0xe49c5e--)(_0x2b20de=_0x57b102[_0xe49c5e])&&(_0x105609=(_0x542f05?_0x2b20de(_0x55c189,_0x446949,_0x105609):_0x2b20de(_0x105609))||_0x105609);return _0x542f05&&_0x105609&&_0x4a7c97(_0x55c189,_0x446949,_0x105609),_0x105609;},_0x32d354=(_0x56f543,_0x1a5b46)=>(_0x553be2,_0x2ca68a)=>_0x1a5b46(_0x553be2,_0x2ca68a,_0x56f543);_0x2e2c4a[_0x21a661(0x4dc)]=class extends _0x2d1395[_0x21a661(0x508)]{constructor(_0xc07c89,_0x3c5488,_0x50dca5,_0x48525c){const _0x2ad383=_0x21a661;super(),_0x55c95f(this,_0x2ad383(0x253),new _0x4c5465[(_0x2ad383(0x2d6))](_0x27b30b[_0x2ad383(0x224)])),(this[_0x2ad383(0x455)]=_0xc07c89,this['_uiPartsService']=_0x3c5488,this['_injector']=_0x50dca5,this['_collaborationController']=_0x48525c,this[_0x2ad383(0x18b)](),this[_0x2ad383(0x2fb)]());}[_0x21a661(0x2fb)](){const _0x34b9b9=_0x21a661;this[_0x34b9b9(0x3e2)](this[_0x34b9b9(0x455)][_0x34b9b9(0x188)]['pipe'](_0x4c5465[_0x34b9b9(0x23c)](()=>{const _0x4dbbe7=_0x34b9b9,_0x4a7b6a=this[_0x4dbbe7(0x455)][_0x4dbbe7(0x49f)]();return _0x4a7b6a?this[_0x4dbbe7(0x4e6)][_0x4dbbe7(0x288)](_0x4a7b6a[_0x4dbbe7(0x1f1)]()):_0x4c5465['of'](null);}),_0x4c5465[_0x34b9b9(0x23c)](_0x145ad4=>_0x145ad4?_0x145ad4['status$']:_0x4c5465['of'](_0x27b30b[_0x34b9b9(0x224)])))['subscribe'](_0x359b5b=>{const _0x368ba0=_0x34b9b9;this[_0x368ba0(0x253)][_0x368ba0(0x3e9)](_0x359b5b);}));}[_0x21a661(0x18b)](){const _0x5cf820=_0x21a661;this['disposeWithMe'](this[_0x5cf820(0x27c)]['registerComponent'](_0x40eb02['BuiltInUIPart'][_0x5cf820(0x32d)],()=>_0x2d1395[_0x5cf820(0x4b3)](_0x102c7f({'status$':this[_0x5cf820(0x253)][_0x5cf820(0x1c2)]()}),this[_0x5cf820(0x3b8)])));}},_0x2e2c4a[_0x21a661(0x4dc)]=_0x2a7922([_0x32d354(0x0,_0x2d1395['IUniverInstanceService']),_0x32d354(0x1,_0x40eb02[_0x21a661(0x49c)]),_0x32d354(0x2,_0x2d1395['Inject'](_0x2d1395[_0x21a661(0x45c)])),_0x32d354(0x3,_0x2d1395[_0x21a661(0x2f7)](_0x2e2c4a[_0x21a661(0x15d)]))],_0x2e2c4a[_0x21a661(0x4dc)]);function _0x102c7f(_0x1f4ac4){const {status$:_0xab3c93}=_0x1f4ac4;return function(){return _0x405593['createElement'](_0x538cc1,{'status$':_0xab3c93});};}const _0x39ce60=_0x2d1395['createIdentifier'](_0x21a661(0x4ed));var _0x484f86=Object[_0x21a661(0x1a6)],_0x11e242=Object[_0x21a661(0x1c8)],_0x3fd322=(_0x2c0d17,_0x1e1652,_0x5a89bb,_0x4a7f42)=>{for(var _0xe1c31b=_0x4a7f42>0x1?void 0x0:_0x4a7f42?_0x11e242(_0x1e1652,_0x5a89bb):_0x1e1652,_0xdada54=_0x2c0d17['length']-0x1,_0xf03fa4;_0xdada54>=0x0;_0xdada54--)(_0xf03fa4=_0x2c0d17[_0xdada54])&&(_0xe1c31b=(_0x4a7f42?_0xf03fa4(_0x1e1652,_0x5a89bb,_0xe1c31b):_0xf03fa4(_0xe1c31b))||_0xe1c31b);return _0x4a7f42&&_0xe1c31b&&_0x484f86(_0x1e1652,_0x5a89bb,_0xe1c31b),_0xe1c31b;},_0x52d178=(_0x547c1e,_0x4ae72c)=>(_0x4b612c,_0x479549)=>_0x4ae72c(_0x4b612c,_0x479549,_0x547c1e);_0x2e2c4a[_0x21a661(0x3c5)]=class extends _0x2d1395[_0x21a661(0x2b4)]{constructor(_0x29fcaf,_0x2bbb24,_0x355a17,_0x30e904,_0x43a4b0,_0x16191f){const _0x5b7947=_0x21a661;super(),this[_0x5b7947(0x1ab)]=_0x29fcaf,this[_0x5b7947(0x546)]=_0x2bbb24,this['_commandService']=_0x355a17,this[_0x5b7947(0x3bb)]=_0x30e904,this[_0x5b7947(0x3f9)]=_0x43a4b0,_0x16191f?_0x16191f==null||_0x16191f[_0x5b7947(0x22a)]()[_0x5b7947(0x25e)](()=>this[_0x5b7947(0x447)]()):(this[_0x5b7947(0x546)][_0x5b7947(0x299)](_0x5b7947(0x3fe),_0x5b7947(0x48d)),this[_0x5b7947(0x447)]());}async[_0x21a661(0x447)](){const _0x445b3a=_0x21a661,_0x817599=this['_urlService'][_0x445b3a(0x360)](_0x445b3a(0x37e)),_0x30278f=this['_urlService']['getParam']('type');if(!_0x817599||!_0x30278f){this['_logService']['debug'](_0x445b3a(0x3fe),_0x445b3a(0x15e));return;}switch(Number(_0x30278f)){case _0x2a040f[_0x445b3a(0x196)]:{const _0x4335b2=await this['_loadSheet'](_0x817599);this[_0x445b3a(0x4e9)](_0x4335b2);break;}case _0x2a040f['UNIVER_DOC']:{await this[_0x445b3a(0x2cb)](_0x817599);break;}default:{this['_logService'][_0x445b3a(0x3f4)](_0x445b3a(0x3fe),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x21a661(0x4e9)](_0x207e2c){const _0xe9357c=_0x21a661;await this[_0xe9357c(0x39c)](_0x207e2c),_0x207e2c[_0xe9357c(0x30e)][_0xe9357c(0x219)](_0x4c5465[_0xe9357c(0x30f)](this[_0xe9357c(0x3f0)]))[_0xe9357c(0x417)](_0x59f9e7=>{const _0x4fc319=_0xe9357c;_0x59f9e7&&this[_0x4fc319(0x25d)](_0x59f9e7);}),this[_0xe9357c(0x1ab)][_0xe9357c(0x3b5)][_0xe9357c(0x219)](_0x4c5465[_0xe9357c(0x30f)](this[_0xe9357c(0x3f0)]))[_0xe9357c(0x417)](()=>this['_updateSubUnitFromURLParams'](_0x207e2c));}['_updateURLWithCurrentState'](_0x402e20,_0x50d6df=!0x1){const _0x199bc7=_0x21a661,_0x1d452d=this[_0x199bc7(0x1ab)]['getParam']('subunit');_0x402e20['getSheetId']()!==_0x1d452d&&this['_urlService'][_0x199bc7(0x1f3)](_0x199bc7(0x180),_0x402e20['getSheetId'](),_0x50d6df);}async[_0x21a661(0x39c)](_0x291534){const _0x5423cd=_0x21a661;var _0x4e8955;const _0x315d2c=this[_0x5423cd(0x1ab)][_0x5423cd(0x360)]('subunit');if(!_0x315d2c||!_0x291534[_0x5423cd(0x1e8)](_0x315d2c)){const _0x3a8555=_0x291534[_0x5423cd(0x576)]()[0x0],_0x17cff4=_0x291534['getSheetBySheetId'](_0x3a8555);if(!_0x17cff4)return;this[_0x5423cd(0x25d)](_0x17cff4,!0x0),await this[_0x5423cd(0x22b)][_0x5423cd(0x457)](_0x44e81f[_0x5423cd(0x283)]['id'],{'unitId':_0x291534[_0x5423cd(0x1f1)](),'subUnitId':_0x3a8555});return;}((_0x4e8955=_0x291534[_0x5423cd(0x380)]())==null?void 0x0:_0x4e8955['getSheetId']())!==_0x315d2c&&await this[_0x5423cd(0x22b)][_0x5423cd(0x457)](_0x44e81f[_0x5423cd(0x283)]['id'],{'unitId':_0x291534['getUnitId'](),'subUnitId':_0x315d2c});}async['_loadSheet'](_0x297cda){const _0x1159c1=_0x21a661;let _0x212a98=0x0;const _0x182995=await this['_localCacheService'][_0x1159c1(0x357)](_0x297cda);return _0x182995&&(_0x182995[_0x1159c1(0x24f)]||_0x182995[_0x1159c1(0x32b)][_0x1159c1(0x396)]!==0x0)&&(_0x212a98=_0x182995[_0x1159c1(0x1a0)]),_0x212a98===0x0&&this[_0x1159c1(0x546)][_0x1159c1(0x299)](_0x1159c1(0x3fe),_0x1159c1(0x534)),this[_0x1159c1(0x3f9)]['loadSheet'](_0x297cda,_0x212a98);}async[_0x21a661(0x2cb)](_0xa5c00b){const _0x1b2fbe=_0x21a661;let _0x79f0ec=0x0;const _0x1a83e2=await this[_0x1b2fbe(0x3bb)]['loadOfflineData'](_0xa5c00b);return _0x1a83e2&&(_0x1a83e2['awaitingChangeset']||_0x1a83e2[_0x1b2fbe(0x32b)][_0x1b2fbe(0x396)]!==0x0)&&(_0x79f0ec=_0x1a83e2[_0x1b2fbe(0x1a0)]),_0x79f0ec===0x0&&this[_0x1b2fbe(0x546)]['debug'](_0x1b2fbe(0x3fe),_0x1b2fbe(0x534)),this[_0x1b2fbe(0x3f9)][_0x1b2fbe(0x312)](_0xa5c00b,_0x79f0ec);}},_0x2e2c4a[_0x21a661(0x3c5)]=_0x3fd322([_0x52d178(0x0,_0x39ce60),_0x52d178(0x1,_0x2d1395[_0x21a661(0x52d)]),_0x52d178(0x2,_0x2d1395[_0x21a661(0x568)]),_0x52d178(0x3,_0x2d1395[_0x21a661(0x2f7)](_0x2e2c4a['LocalCacheService'])),_0x52d178(0x4,_0x2d1395[_0x21a661(0x2f7)](_0x4ac4e1[_0x21a661(0x49d)])),_0x52d178(0x5,_0x2d1395[_0x21a661(0x4cc)](_0x16a2ca[_0x21a661(0x415)]))],_0x2e2c4a[_0x21a661(0x3c5)]);var _0x32bd8a=Object[_0x21a661(0x1a6)],_0x3d447c=Object[_0x21a661(0x1c8)],_0x2df8d3=(_0x177447,_0x2d2146,_0x2791b3,_0x13e009)=>{const _0x4a47ca=_0x21a661;for(var _0x311eb4=_0x13e009>0x1?void 0x0:_0x13e009?_0x3d447c(_0x2d2146,_0x2791b3):_0x2d2146,_0x14ae2b=_0x177447[_0x4a47ca(0x396)]-0x1,_0x3260ac;_0x14ae2b>=0x0;_0x14ae2b--)(_0x3260ac=_0x177447[_0x14ae2b])&&(_0x311eb4=(_0x13e009?_0x3260ac(_0x2d2146,_0x2791b3,_0x311eb4):_0x3260ac(_0x311eb4))||_0x311eb4);return _0x13e009&&_0x311eb4&&_0x32bd8a(_0x2d2146,_0x2791b3,_0x311eb4),_0x311eb4;},_0x3a6afa=(_0x2c8b1f,_0x39a6db)=>(_0x1b00e5,_0x2edd41)=>_0x39a6db(_0x1b00e5,_0x2edd41,_0x2c8b1f);const _0x526831=_0x21a661(0x529),_0x1507f5=_0x21a661(0x445);let _0x261e7a=class extends _0x2d1395[_0x21a661(0x508)]{constructor(_0x50ccef,_0x23afc5){const _0x3aa478=_0x21a661;super(),this['_univerInstanceService']=_0x50ccef,this[_0x3aa478(0x3ee)]=_0x23afc5,this[_0x3aa478(0x447)]();}[_0x21a661(0x447)](){const _0x1bc27d=_0x21a661;this[_0x1bc27d(0x3e2)](this[_0x1bc27d(0x455)][_0x1bc27d(0x188)][_0x1bc27d(0x417)](()=>{const _0x1d9c38=_0x1bc27d;var _0x556fd5;const _0x1db64b=this[_0x1d9c38(0x455)][_0x1d9c38(0x49f)]();let _0xc062ab=(_0x556fd5=this[_0x1d9c38(0x3ee)][_0x1d9c38(0x3d9)](_0x526831))!=null?_0x556fd5:_0x1507f5;_0x1db64b instanceof _0x2d1395[_0x1d9c38(0x42c)]&&(_0xc062ab=_0x1db64b[_0x1d9c38(0x46c)]),document[_0x1d9c38(0x1c1)]=_0xc062ab;}));}};_0x261e7a=_0x2df8d3([_0x3a6afa(0x0,_0x2d1395['IUniverInstanceService']),_0x3a6afa(0x1,_0x2d1395[_0x21a661(0x21e)])],_0x261e7a);var _0x311876=Object[_0x21a661(0x1a6)],_0x12bd0e=Object[_0x21a661(0x1c8)],_0x4eb43b=(_0x5b5b8c,_0x45ab41,_0xc0aacb,_0x5f1a52)=>{const _0x55222f=_0x21a661;for(var _0x104114=_0x5f1a52>0x1?void 0x0:_0x5f1a52?_0x12bd0e(_0x45ab41,_0xc0aacb):_0x45ab41,_0x35a27f=_0x5b5b8c[_0x55222f(0x396)]-0x1,_0x8e666e;_0x35a27f>=0x0;_0x35a27f--)(_0x8e666e=_0x5b5b8c[_0x35a27f])&&(_0x104114=(_0x5f1a52?_0x8e666e(_0x45ab41,_0xc0aacb,_0x104114):_0x8e666e(_0x104114))||_0x104114);return _0x5f1a52&&_0x104114&&_0x311876(_0x45ab41,_0xc0aacb,_0x104114),_0x104114;},_0x54b758=(_0x598c5b,_0x451d87)=>(_0x3eb51c,_0x59a70a)=>_0x451d87(_0x3eb51c,_0x59a70a,_0x598c5b);let _0x4df9ad=class{constructor(_0x1fca82,_0x4b6bb4,_0x4d8d0a){const _0x37067b=_0x21a661;this[_0x37067b(0x3ee)]=_0x1fca82,this['_httpService']=_0x4b6bb4,this[_0x37067b(0x432)]=_0x4d8d0a,this[_0x37067b(0x50c)]();}[_0x21a661(0x50c)](){const _0x309b18=_0x21a661;this[_0x309b18(0x4ca)][_0x309b18(0x15b)]({'priority':0x1,'interceptor':(_0x683374,_0x2793ee)=>_0x2793ee(_0x683374)[_0x309b18(0x219)](_0x4c5465['concatMap'](async _0x4e5f71=>{const _0x470d49=_0x309b18,_0x49c321=_0x4e5f71;if(_0x49c321[_0x470d49(0x468)]===0x191&&window[_0x470d49(0x4b2)](this[_0x470d49(0x432)]['t'](_0x470d49(0x1aa)))){const _0x14faa3=window['encodeURIComponent'](window[_0x470d49(0x2da)][_0x470d49(0x313)]);window[_0x470d49(0x2da)][_0x470d49(0x313)]=this[_0x470d49(0x4da)]()+_0x470d49(0x4c5)+_0x14faa3;}return _0x49c321;}))});}[_0x21a661(0x4da)](){const _0x5b7803=_0x21a661;var _0x1d07f3,_0x523969;const _0x1457f7=this[_0x5b7803(0x3ee)]['getConfig'](_0x106063),_0x6783b2=this[_0x5b7803(0x3ee)][_0x5b7803(0x3d9)](_0x3839b7);return(_0x523969=(_0x1d07f3=_0x6783b2==null?void 0x0:_0x6783b2[_0x5b7803(0x412)])!=null?_0x1d07f3:_0x1457f7)!=null?_0x523969:_0x23644b;}};_0x4df9ad=_0x4eb43b([_0x54b758(0x0,_0x2d1395[_0x21a661(0x21e)]),_0x54b758(0x1,_0x2d1395[_0x21a661(0x2f7)](_0x418c7b[_0x21a661(0x157)])),_0x54b758(0x2,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395[_0x21a661(0x177)]))],_0x4df9ad);var _0x24d9c4=Object[_0x21a661(0x1a6)],_0x39b71d=Object[_0x21a661(0x1c8)],_0x1df006=(_0x1092c5,_0x3013bb,_0x4b4ad2,_0x2a08f2)=>{const _0x2763f9=_0x21a661;for(var _0x3767be=_0x2a08f2>0x1?void 0x0:_0x2a08f2?_0x39b71d(_0x3013bb,_0x4b4ad2):_0x3013bb,_0x2e5e52=_0x1092c5[_0x2763f9(0x396)]-0x1,_0x2755fe;_0x2e5e52>=0x0;_0x2e5e52--)(_0x2755fe=_0x1092c5[_0x2e5e52])&&(_0x3767be=(_0x2a08f2?_0x2755fe(_0x3013bb,_0x4b4ad2,_0x3767be):_0x2755fe(_0x3767be))||_0x3767be);return _0x2a08f2&&_0x3767be&&_0x24d9c4(_0x3013bb,_0x4b4ad2,_0x3767be),_0x3767be;},_0x3e475c=(_0x5f3da1,_0x14cd56)=>(_0x1cc304,_0x2aa865)=>_0x14cd56(_0x1cc304,_0x2aa865,_0x5f3da1);const _0x26fa82=_0x21a661(0x50a),_0xc186a=_0x21a661(0x446);_0x2e2c4a['AuthzIoHttpService']=class extends _0x2d1395[_0x21a661(0x508)]{constructor(_0x57ccdd,_0x348922){const _0x54e0d4=_0x21a661;super(),this[_0x54e0d4(0x44e)]=_0x57ccdd,this[_0x54e0d4(0x3ee)]=_0x348922,this[_0x54e0d4(0x458)]();}[_0x21a661(0x458)](){const _0x318d29=_0x21a661,_0x1ea07a=this;this[_0x318d29(0x3e2)](this[_0x318d29(0x44e)][_0x318d29(0x15b)]({'priority':0x3e7,'interceptor':_0x418c7b[_0x318d29(0x247)]({'isMatch'(_0x4e5d95){const _0x3d89fc=_0x318d29;var _0x2b0182;if(_0x4e5d95[_0x3d89fc(0x3b9)]===_0x3d89fc(0x4e8)&&((_0x2b0182=_0x4e5d95[_0x3d89fc(0x491)])!=null&&_0x2b0182[_0x3d89fc(0x226)])){const {objectID:_0x4ea0a8,objectType:_0x433287}=_0x4e5d95[_0x3d89fc(0x491)]['body']||{};if(!_0x4ea0a8||_0x433287===void 0x0)return!0x1;const _0x233433=_0x1ea07a['_getAPIPrefixPath']()+'/'+_0x433287+'/object/'+_0x4ea0a8+'/allowed';if(_0x4e5d95[_0x3d89fc(0x439)]===_0x233433)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x56a574){const _0x4668d4=_0x318d29;var _0x2649dc;return(_0x2649dc=_0x56a574[_0x4668d4(0x491)])==null?void 0x0:_0x2649dc[_0x4668d4(0x226)];},'mergeParamsToRequest'(_0xc1005c,_0x46172e){const _0x44bfe0=_0x318d29,_0x366cda=_0x1ea07a[_0x44bfe0(0x422)]()+_0x44bfe0(0x42e),_0x456255=_0xc1005c[_0x44bfe0(0x384)]((_0x38b12e,_0x279b26)=>{const _0x157653=_0x44bfe0,{unitID:_0x59b6e8,objectID:_0x8647e4,objectType:_0x38a395,actions:_0x15775c}=_0x279b26;return _0x38b12e[_0x59b6e8]||(_0x38b12e[_0x59b6e8]={}),_0x38b12e[_0x59b6e8][_0x8647e4]||(_0x38b12e[_0x59b6e8][_0x8647e4]={'objectID':_0x8647e4,'objectType':_0x38a395,'actions':[]}),_0x38b12e[_0x59b6e8][_0x8647e4]['actions'][_0x157653(0x48a)](..._0x15775c),_0x38b12e;},{}),_0x53ac39=[];for(const _0x561ee4 in _0x456255)for(const _0x463e5a in _0x456255[_0x561ee4]){const {actions:_0x3d9d69,objectType:_0x7d8e41}=_0x456255[_0x561ee4][_0x463e5a],_0x5aaf16=[...new Set(_0x3d9d69)];_0x53ac39[_0x44bfe0(0x48a)]({'unitID':_0x561ee4,'objectID':_0x463e5a,'objectType':_0x7d8e41,'actions':_0x5aaf16});}return new _0x418c7b[(_0x44bfe0(0x304))]('POST',_0x366cda,{'headers':_0x46172e[_0x44bfe0(0x212)],'withCredentials':_0x46172e['withCredentials'],'responseType':_0x46172e[_0x44bfe0(0x410)],'body':{'requests':_0x53ac39}});}},{'distributeResult'(_0xca3945,_0x11dea9){const _0x3e0191=_0x318d29,{objectActions:_0x37c50c}=_0xca3945;return _0x11dea9[_0x3e0191(0x500)](_0x232a62=>{const _0x348174=_0x3e0191,{unitID:_0x145603,objectID:_0x216167,actions:_0x1fe7d8}=_0x232a62,_0x475215=_0x37c50c[_0x348174(0x203)](_0x1e4060=>_0x1e4060[_0x348174(0x3ea)]===_0x145603&&_0x1e4060['objectID']===_0x216167),_0x20b658=_0x1fe7d8[_0x348174(0x500)](_0x2be64f=>_0x475215==null?void 0x0:_0x475215['actions'][_0x348174(0x203)](_0x1a8736=>_0x1a8736[_0x348174(0x44b)]===_0x2be64f))[_0x348174(0x2ca)](_0x156b48=>!!_0x156b48);return{'config':_0x232a62,'result':{'actions':_0x20b658,'error':_0xca3945[_0x348174(0x3f4)]}};});}})}));}[_0x21a661(0x422)](){const _0x271775=_0x21a661;var _0x4b4f66,_0x3ef2c7;const _0x4c62f1=this[_0x271775(0x3ee)][_0x271775(0x3d9)](_0x26fa82),_0x215a3f=this['_configService'][_0x271775(0x3d9)](_0x3839b7);return(_0x3ef2c7=(_0x4b4f66=_0x215a3f==null?void 0x0:_0x215a3f['authzUrl'])!=null?_0x4b4f66:_0x4c62f1)!=null?_0x3ef2c7:_0xc186a;}async[_0x21a661(0x484)](_0x321dc9){const _0x404c4a=_0x21a661,_0x4d8fec=this[_0x404c4a(0x422)]()+'/'+_0x321dc9['objectType']+_0x404c4a(0x228);return(await this[_0x404c4a(0x44e)][_0x404c4a(0x43f)](_0x4d8fec,{'body':_0x321dc9}))[_0x404c4a(0x226)][_0x404c4a(0x316)]||'';}async[_0x21a661(0x4e4)](_0x3c4ada){const _0x5c88ae=_0x21a661,_0xb3f761=this['_getAPIPrefixPath']()+_0x5c88ae(0x4cd);return(await this[_0x5c88ae(0x44e)][_0x5c88ae(0x43f)](_0xb3f761,{'body':_0x3c4ada}))['body'][_0x5c88ae(0x487)];}async[_0x21a661(0x19e)](_0x2f4c28){const _0x12f236=_0x21a661,_0x27b1fd=this[_0x12f236(0x422)]()+'/'+_0x2f4c28[_0x12f236(0x55e)]+_0x12f236(0x562)+_0x2f4c28['objectID'];await this[_0x12f236(0x44e)]['put'](_0x27b1fd,{'body':_0x2f4c28});}async[_0x21a661(0x563)](_0x5bfb19){const _0x5180f0=_0x21a661,_0x87e5ac=this[_0x5180f0(0x422)]()+'/'+_0x5bfb19['objectType']+_0x5180f0(0x562)+_0x5bfb19['objectID']+'/allowed';return(await this[_0x5180f0(0x44e)][_0x5180f0(0x43f)](_0x87e5ac,{'body':_0x5bfb19}))['body']['actions'];}async['batchAllowed'](_0x41627a){const _0x75a45=_0x21a661,_0x9c63f8=this['_getAPIPrefixPath']()+_0x75a45(0x42e);return(await this[_0x75a45(0x44e)][_0x75a45(0x43f)](_0x9c63f8,{'body':{'requests':_0x41627a}}))[_0x75a45(0x226)][_0x75a45(0x1a3)];}async['listRoles'](_0x57d70b){const _0x41b04a=_0x21a661,_0xf34b67=this[_0x41b04a(0x422)]()+'/'+_0x57d70b['objectType']+_0x41b04a(0x14a),_0x2dc8bd=await this['_HTTPService'][_0x41b04a(0x43f)](_0xf34b67,{'body':_0x57d70b});return{'roles':_0x2dc8bd[_0x41b04a(0x226)]['roles'],'actions':_0x2dc8bd[_0x41b04a(0x226)][_0x41b04a(0x42d)]};}async['deleteCollaborator'](_0x300a44){const _0x365099=_0x21a661,_0x490cf9=this[_0x365099(0x422)]()+_0x365099(0x48c);await this[_0x365099(0x44e)][_0x365099(0x464)](_0x490cf9,{'params':{'collaboratorID':_0x300a44[_0x365099(0x3a3)],'objectID':_0x300a44[_0x365099(0x316)],'unitID':_0x300a44[_0x365099(0x3ea)]}});}async[_0x21a661(0x14c)](_0x4a9b1f){const _0x39bf90=_0x21a661,_0x46f6d3=this[_0x39bf90(0x422)]()+_0x39bf90(0x48c);await this['_HTTPService']['patch'](_0x46f6d3,{'body':_0x4a9b1f});}async['createCollaborator'](_0x1aef99){const _0x2adc34=_0x21a661,_0x16a395=this[_0x2adc34(0x422)]()+'/collaborator';await this[_0x2adc34(0x44e)]['post'](_0x16a395,{'body':_0x1aef99});}async[_0x21a661(0x1de)](_0x1f2288){const _0x44e5d0=_0x21a661,_0x2239aa=this['_getAPIPrefixPath']()+_0x44e5d0(0x48c);return(await this['_HTTPService'][_0x44e5d0(0x2e5)](_0x2239aa,{'params':{'objectID':_0x1f2288[_0x44e5d0(0x316)],'unitID':_0x1f2288[_0x44e5d0(0x3ea)]}}))[_0x44e5d0(0x226)][_0x44e5d0(0x1b9)];}async[_0x21a661(0x556)](_0x25982c){const _0x3d8aa9=_0x21a661,_0x310a77=this[_0x3d8aa9(0x422)]()+_0x3d8aa9(0x48c);await this[_0x3d8aa9(0x44e)]['put'](_0x310a77,{'body':_0x25982c});}},_0x2e2c4a[_0x21a661(0x42b)]=_0x1df006([_0x3e475c(0x0,_0x2d1395['Inject'](_0x418c7b[_0x21a661(0x157)])),_0x3e475c(0x1,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395[_0x21a661(0x21e)]))],_0x2e2c4a['AuthzIoHttpService']);var _0x493f2d=Object[_0x21a661(0x1a6)],_0x18b2e1=Object[_0x21a661(0x1c8)],_0xe54048=(_0x23e2ed,_0x1ba346,_0xfb0665,_0x4db581)=>{const _0x2d69cc=_0x21a661;for(var _0x3d2493=_0x4db581>0x1?void 0x0:_0x4db581?_0x18b2e1(_0x1ba346,_0xfb0665):_0x1ba346,_0x122a1f=_0x23e2ed[_0x2d69cc(0x396)]-0x1,_0x41e560;_0x122a1f>=0x0;_0x122a1f--)(_0x41e560=_0x23e2ed[_0x122a1f])&&(_0x3d2493=(_0x4db581?_0x41e560(_0x1ba346,_0xfb0665,_0x3d2493):_0x41e560(_0x3d2493))||_0x3d2493);return _0x4db581&&_0x3d2493&&_0x493f2d(_0x1ba346,_0xfb0665,_0x3d2493),_0x3d2493;},_0x40a963=(_0x3ac158,_0x446dc1)=>(_0x44fa2a,_0x3b95cd)=>_0x446dc1(_0x44fa2a,_0x3b95cd,_0x3ac158);let _0x4b2757=class{constructor(_0x46aae0){const _0xfbb55a=_0x21a661;this[_0xfbb55a(0x4ca)]=_0x46aae0,this[_0xfbb55a(0x2fc)]();}[_0x21a661(0x2fc)](){const _0x9abdae=_0x21a661;this[_0x9abdae(0x4ca)][_0x9abdae(0x15b)]({'interceptor':(_0x6aecc1,_0x120ab3)=>{const _0x473252=_0x9abdae,_0x22b981=_0x6aecc1[_0x473252(0x212)],_0x71e7a=_0x1aae09[_0x473252(0x172)]();return _0x71e7a&&_0x22b981[_0x473252(0x4f1)](_0x473252(0x19c),_0x71e7a),_0x120ab3(_0x6aecc1);}});}};_0x4b2757=_0xe54048([_0x40a963(0x0,_0x2d1395[_0x21a661(0x2f7)](_0x418c7b[_0x21a661(0x157)]))],_0x4b2757);var _0x30e54e=Object[_0x21a661(0x1a6)],_0x5ec731=Object['getOwnPropertyDescriptor'],_0x38d1fb=(_0x43366c,_0x4ee2a1,_0x6a6c8c,_0x2ce9c1)=>{const _0x2f3ba0=_0x21a661;for(var _0x381eee=_0x2ce9c1>0x1?void 0x0:_0x2ce9c1?_0x5ec731(_0x4ee2a1,_0x6a6c8c):_0x4ee2a1,_0x2c935a=_0x43366c[_0x2f3ba0(0x396)]-0x1,_0x5767c1;_0x2c935a>=0x0;_0x2c935a--)(_0x5767c1=_0x43366c[_0x2c935a])&&(_0x381eee=(_0x2ce9c1?_0x5767c1(_0x4ee2a1,_0x6a6c8c,_0x381eee):_0x5767c1(_0x381eee))||_0x381eee);return _0x2ce9c1&&_0x381eee&&_0x30e54e(_0x4ee2a1,_0x6a6c8c,_0x381eee),_0x381eee;},_0x5639fa=(_0x2c3a7b,_0x49b777)=>(_0x22a1da,_0x209131)=>_0x49b777(_0x22a1da,_0x209131,_0x2c3a7b);const _0x11f719=[_0x21a661(0x229),_0x21a661(0x2f8),_0x21a661(0x56f),_0x21a661(0x31c),'image/bmp'],_0x1c4ab7=0x5*0x400*0x400,_0x260c16=_0x21a661(0x544),_0x2a45a4=_0x21a661(0x143),_0xdaf5e7='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_0x30bb11=_0x21a661(0x4cf);_0x2e2c4a['ImageIoService']=class{constructor(_0x3e87a5,_0x1b7497,_0x57fac6){const _0x4b2c2b=_0x21a661;_0x55c95f(this,_0x4b2c2b(0x48e),0x0),_0x55c95f(this,_0x4b2c2b(0x4c3),new _0x4c5465['Subject']()),_0x55c95f(this,_0x4b2c2b(0x3d7),this[_0x4b2c2b(0x4c3)]),_0x55c95f(this,_0x4b2c2b(0x1f0),new Map()),(this[_0x4b2c2b(0x4ca)]=_0x3e87a5,this['_configService']=_0x1b7497,this[_0x4b2c2b(0x455)]=_0x57fac6);}['setWaitCount'](_0x224ff3){const _0xd28bfd=_0x21a661;this[_0xd28bfd(0x48e)]=_0x224ff3,this[_0xd28bfd(0x4c3)][_0xd28bfd(0x3e9)](_0x224ff3);}['getImageSourceCache'](_0x5afa10,_0x1b0c42){const _0x55508d=_0x21a661;if(_0x1b0c42===_0x4be0fa['ImageSourceType'][_0x55508d(0x2fe)]){const _0x32d203=new Image();return _0x32d203['src']=_0x5afa10,_0x32d203;}return this[_0x55508d(0x1f0)][_0x55508d(0x2e5)](_0x5afa10);}['addImageSourceCache'](_0x1b1ad7,_0x220861,_0x30a32f){const _0x2d86be=_0x21a661;_0x220861===_0x4be0fa[_0x2d86be(0x249)][_0x2d86be(0x2fe)]||_0x30a32f==null||this['_imageSourceCache'][_0x2d86be(0x4f1)](_0x1b1ad7,_0x30a32f);}async['getImage'](_0x8da6ea){const _0x4fc989=_0x21a661;try{const _0x438912=this[_0x4fc989(0x208)](this['_getSignURL'](),''+_0x8da6ea),_0x1dbcdd=(await this[_0x4fc989(0x4ca)][_0x4fc989(0x2e5)](_0x438912))[_0x4fc989(0x226)];if(_0x1dbcdd[_0x4fc989(0x3f4)]&&_0x1dbcdd[_0x4fc989(0x3f4)]['code']===_0x3c1982['OK']){const _0x30f1ce=new URL(_0x1dbcdd['url'],this[_0x4fc989(0x330)]())[_0x4fc989(0x329)]();return Promise[_0x4fc989(0x144)](_0x30f1ce);}return Promise[_0x4fc989(0x38f)](_0x1dbcdd[_0x4fc989(0x3f4)]);}catch(_0x176bde){return Promise[_0x4fc989(0x38f)](_0x176bde);}}async['saveImage'](_0x4c91c){const _0x1761c1=_0x21a661;let _0x1a8cfd='';if(!_0x11f719[_0x1761c1(0x260)](_0x4c91c[_0x1761c1(0x547)]))return this['_decreaseWaiting'](),Promise[_0x1761c1(0x38f)](new Error(_0x4be0fa[_0x1761c1(0x194)][_0x1761c1(0x2a5)]));if(_0x4c91c[_0x1761c1(0x39e)]>_0x1c4ab7)return this[_0x1761c1(0x47b)](),Promise[_0x1761c1(0x38f)](new Error(_0x4be0fa[_0x1761c1(0x194)][_0x1761c1(0x37a)]));try{const _0x3cf670=new FormData();_0x3cf670[_0x1761c1(0x155)](_0x1761c1(0x441),_0x4c91c);const _0x87380f=this['_univerInstanceService']['getFocusedUnit'](),_0x59b1d2=_0x87380f==null?void 0x0:_0x87380f[_0x1761c1(0x1f1)]();if(!_0x59b1d2)throw new Error(_0x1761c1(0x171));const _0x4ad1cb=this[_0x1761c1(0x48f)]()+_0x1761c1(0x4bf)+_0x4c91c[_0x1761c1(0x39e)]['toString']()+_0x1761c1(0x287)+_0x4d8db5[_0x1761c1(0x318)]+_0x1761c1(0x3dc)+encodeURIComponent(_0x59b1d2),_0x2e010f=await(await fetch(_0x4ad1cb,{'method':_0x1761c1(0x4e8),'body':_0x3cf670}))[_0x1761c1(0x298)]();if(typeof _0x2e010f['FileId']!=_0x1761c1(0x395))return this[_0x1761c1(0x47b)](),Promise[_0x1761c1(0x38f)](new Error(_0x4be0fa['ImageUploadStatusType'][_0x1761c1(0x504)]));_0x1a8cfd=_0x2e010f[_0x1761c1(0x4a6)];}catch{return this[_0x1761c1(0x47b)](),Promise[_0x1761c1(0x38f)](new Error(_0x4be0fa[_0x1761c1(0x194)][_0x1761c1(0x504)]));}return new Promise((_0x4af9b0,_0x3cabae)=>{const _0x56d032=_0x1761c1,_0x2bdb09=new FileReader();_0x2bdb09[_0x56d032(0x549)](_0x4c91c),_0x2bdb09[_0x56d032(0x163)]=_0x10d441=>{const _0x2520d7=_0x56d032;var _0xc21c9d;const _0x11d01d=(_0xc21c9d=_0x10d441[_0x2520d7(0x40f)])==null?void 0x0:_0xc21c9d[_0x2520d7(0x444)];if(_0x11d01d==null){this[_0x2520d7(0x47b)](),_0x3cabae(new Error(_0x4be0fa[_0x2520d7(0x194)][_0x2520d7(0x504)]));return;}const _0x340ce8=_0x2d1395['Tools'][_0x2520d7(0x241)](0x6);_0x4af9b0({'imageId':_0x340ce8,'imageSourceType':_0x4be0fa[_0x2520d7(0x249)][_0x2520d7(0x30d)],'source':_0x1a8cfd,'base64Cache':_0x11d01d,'status':_0x4be0fa['ImageUploadStatusType']['SUCCUSS']}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x2a1a6f=_0x21a661;var _0xee7c2b,_0x58fe59;const _0x57b002=this[_0x2a1a6f(0x3ee)]['getConfig'](_0x260c16),_0x3a1ca8=this[_0x2a1a6f(0x3ee)]['getConfig'](_0x3839b7);return(_0x58fe59=(_0xee7c2b=_0x3a1ca8==null?void 0x0:_0x3a1ca8[_0x2a1a6f(0x315)])!=null?_0xee7c2b:_0x57b002)!=null?_0x58fe59:_0x2a45a4;}[_0x21a661(0x322)](){const _0x4bc617=_0x21a661;var _0x48e0ce,_0x3ab9b2;const _0x50b28a=this[_0x4bc617(0x3ee)][_0x4bc617(0x3d9)](_0xdaf5e7),_0x56b437=this[_0x4bc617(0x3ee)][_0x4bc617(0x3d9)](_0x3839b7);return(_0x3ab9b2=(_0x48e0ce=_0x56b437==null?void 0x0:_0x56b437[_0x4bc617(0x4de)])!=null?_0x48e0ce:_0x50b28a)!=null?_0x3ab9b2:_0x30bb11;}[_0x21a661(0x330)](){const _0x3a567f=_0x21a661;var _0x2e9df4;const _0x30a2d6=this[_0x3a567f(0x3ee)][_0x3a567f(0x3d9)](_0x3839b7);return(_0x2e9df4=_0x30a2d6==null?void 0x0:_0x30a2d6[_0x3a567f(0x3d5)])!=null?_0x2e9df4:location[_0x3a567f(0x45a)];}[_0x21a661(0x208)](_0x299e42,_0x3e647d){const _0x59d62e=_0x21a661;return _0x299e42['replace'](_0x59d62e(0x578),_0x3e647d);}['_decreaseWaiting'](){const _0x541fb4=_0x21a661;this['_waitCount']-=0x1,this[_0x541fb4(0x4c3)]['next'](this[_0x541fb4(0x48e)]);}},_0x2e2c4a['ImageIoService']=_0x38d1fb([_0x5639fa(0x0,_0x2d1395['Inject'](_0x418c7b[_0x21a661(0x157)])),_0x5639fa(0x1,_0x2d1395[_0x21a661(0x21e)]),_0x5639fa(0x2,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395[_0x21a661(0x2fa)]))],_0x2e2c4a[_0x21a661(0x1a9)]);var _0xddb607=Object[_0x21a661(0x1a6)],_0x4e43b8=Object[_0x21a661(0x1c8)],_0x513843=(_0x34f657,_0x5bb6d4,_0x595b6b,_0x2935cd)=>{const _0x43bdcd=_0x21a661;for(var _0x2cabde=_0x2935cd>0x1?void 0x0:_0x2935cd?_0x4e43b8(_0x5bb6d4,_0x595b6b):_0x5bb6d4,_0x536ee2=_0x34f657[_0x43bdcd(0x396)]-0x1,_0xce17dd;_0x536ee2>=0x0;_0x536ee2--)(_0xce17dd=_0x34f657[_0x536ee2])&&(_0x2cabde=(_0x2935cd?_0xce17dd(_0x5bb6d4,_0x595b6b,_0x2cabde):_0xce17dd(_0x2cabde))||_0x2cabde);return _0x2935cd&&_0x2cabde&&_0xddb607(_0x5bb6d4,_0x595b6b,_0x2cabde),_0x2cabde;},_0xd7655f=(_0x1d436f,_0x90e147)=>(_0x704f2b,_0x4bbde8)=>_0x90e147(_0x704f2b,_0x4bbde8,_0x1d436f);let _0x3c52b1=class extends _0x2d1395[_0x21a661(0x2b4)]{constructor(_0x589ef9,_0x10ce8a,_0x9645c1,_0x5b1415,_0x1a8551){const _0x5bbce8=_0x21a661;super(),this['_injector']=_0x589ef9,this[_0x5bbce8(0x455)]=_0x10ce8a,this[_0x5bbce8(0x4e0)]=_0x9645c1,this['_collaborationSessionService']=_0x5b1415,this[_0x5bbce8(0x51a)]=_0x1a8551,this[_0x5bbce8(0x4df)](),this[_0x5bbce8(0x2c8)]();}[_0x21a661(0x2c8)](){const _0x1fe2f4=_0x21a661,_0x130637=async _0x4659e1=>{const _0x3d09e5=_0x4048;(await this[_0x3d09e5(0x2eb)][_0x3d09e5(0x557)](_0x4659e1))[_0x3d09e5(0x1b2)]['pipe'](_0x52321c['filter'](_0x48e79b=>_0x48e79b[_0x3d09e5(0x148)]===_0x4ac4e1[_0x3d09e5(0x185)][_0x3d09e5(0x18c)]),_0x52321c[_0x3d09e5(0x30f)](this['dispose$']))[_0x3d09e5(0x417)](_0x33e4d0=>{const _0x275bf8=_0x3d09e5,_0x135caf=_0x33e4d0,{reason:_0x1f2012}=_0x135caf[_0x275bf8(0x3ff)];this[_0x275bf8(0x3b8)]['get'](_0x40eb02[_0x275bf8(0x152)])[_0x275bf8(0x4b5)]({'type':_0xbe50fe[_0x275bf8(0x352)][_0x275bf8(0x310)],'content':this[_0x275bf8(0x51a)]['t'](_0x275bf8(0x331))+'('+_0x1f2012+')'}),this[_0x275bf8(0x4e0)][_0x275bf8(0x392)](new _0x44e81f['WorkbookEditablePermission'](_0x4659e1)['id'],!0x1),this[_0x275bf8(0x2eb)][_0x275bf8(0x385)](_0x4659e1);});};_0x4c5465[_0x1fe2f4(0x1ad)](this[_0x1fe2f4(0x455)][_0x1fe2f4(0x2fd)](_0x2d1395[_0x1fe2f4(0x21c)]['UNIVER_SHEET']),this[_0x1fe2f4(0x455)][_0x1fe2f4(0x2fd)](_0x2d1395[_0x1fe2f4(0x21c)][_0x1fe2f4(0x4ef)]))[_0x1fe2f4(0x219)](_0x52321c[_0x1fe2f4(0x500)](_0x368c89=>_0x368c89[_0x1fe2f4(0x1f1)]()),_0x52321c[_0x1fe2f4(0x2ca)](_0x5be31e=>!_0x2d1395[_0x1fe2f4(0x498)](_0x5be31e)),_0x52321c[_0x1fe2f4(0x30f)](this[_0x1fe2f4(0x3f0)]))['subscribe'](_0x14792b=>{_0x130637(_0x14792b);});}[_0x21a661(0x4df)](){const _0x5abeeb=_0x21a661,_0x107f6e=async _0x4e15a3=>{const _0x3acb67=_0x4048;(await this[_0x3acb67(0x2eb)][_0x3acb67(0x557)](_0x4e15a3))['event$'][_0x3acb67(0x219)](_0x52321c[_0x3acb67(0x2ca)](_0x2ddfdd=>_0x2ddfdd[_0x3acb67(0x148)]===_0x4ac4e1[_0x3acb67(0x185)][_0x3acb67(0x2d8)]),_0x52321c[_0x3acb67(0x30f)](this['dispose$']))['subscribe'](_0x3fee2e=>{const _0x2525de=_0x3acb67,_0x29bc69=_0x3fee2e,{objectId:_0x40fdb6}=_0x29bc69[_0x2525de(0x3ff)],_0x243b0e=this['_injector'][_0x2525de(0x2e5)](_0x400492[_0x2525de(0x3cd)]);_0x40fdb6===_0x4e15a3?_0x243b0e[_0x2525de(0x195)](_0x4e15a3):_0x243b0e['refreshPermission'](_0x4e15a3,_0x40fdb6);});};_0x4c5465[_0x5abeeb(0x1ad)](this[_0x5abeeb(0x455)][_0x5abeeb(0x2fd)](_0x2d1395[_0x5abeeb(0x21c)][_0x5abeeb(0x196)]),this[_0x5abeeb(0x455)][_0x5abeeb(0x2fd)](_0x2d1395[_0x5abeeb(0x21c)][_0x5abeeb(0x4ef)]))[_0x5abeeb(0x219)](_0x52321c[_0x5abeeb(0x500)](_0xea240c=>_0xea240c[_0x5abeeb(0x1f1)]()),_0x52321c['filter'](_0x4e22ed=>!_0x2d1395[_0x5abeeb(0x498)](_0x4e22ed)),_0x52321c[_0x5abeeb(0x30f)](this[_0x5abeeb(0x3f0)]))[_0x5abeeb(0x417)](_0x293a60=>{_0x107f6e(_0x293a60);});}};_0x3c52b1=_0x513843([_0xd7655f(0x0,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395[_0x21a661(0x45c)])),_0xd7655f(0x1,_0x2d1395[_0x21a661(0x2fa)]),_0xd7655f(0x2,_0x2d1395[_0x21a661(0x2f2)]),_0xd7655f(0x3,_0x2d1395['Inject'](_0x2e2c4a[_0x21a661(0x2e4)])),_0xd7655f(0x4,_0x2d1395['Inject'](_0x2d1395['LocaleService']))],_0x3c52b1);var _0x5e8c55=Object[_0x21a661(0x1a6)],_0x2d3c3f=Object['getOwnPropertyDescriptor'],_0x76ba8a=(_0x2c8122,_0x1e868c,_0x36bdfe,_0x40bd2b)=>{const _0x3bc6c9=_0x21a661;for(var _0x54313e=_0x40bd2b>0x1?void 0x0:_0x40bd2b?_0x2d3c3f(_0x1e868c,_0x36bdfe):_0x1e868c,_0x314cbd=_0x2c8122[_0x3bc6c9(0x396)]-0x1,_0x24f1ff;_0x314cbd>=0x0;_0x314cbd--)(_0x24f1ff=_0x2c8122[_0x314cbd])&&(_0x54313e=(_0x40bd2b?_0x24f1ff(_0x1e868c,_0x36bdfe,_0x54313e):_0x24f1ff(_0x54313e))||_0x54313e);return _0x40bd2b&&_0x54313e&&_0x5e8c55(_0x1e868c,_0x36bdfe,_0x54313e),_0x54313e;},_0x94714c=(_0xf43364,_0x3dfb35)=>(_0x5c67f4,_0x3b1485)=>_0x3dfb35(_0x5c67f4,_0x3b1485,_0xf43364);_0x2e2c4a[_0x21a661(0x14e)]=class{constructor(_0x86cebe,_0xe28f9d){const _0x1fb3c5=_0x21a661;this[_0x1fb3c5(0x3ee)]=_0x86cebe,this['_httpService']=_0xe28f9d;}async[_0x21a661(0x245)](_0x5ab1fc,_0x3e7d06){const _0x4c483d=_0x21a661;var _0x83538e;const {unitID:_0x12a353,type:_0x3d6916,revision:_0x2cc6e6=0x0}=_0x3e7d06,_0x33f4dd=this[_0x4c483d(0x2e6)]()+'/'+_0x3d6916+_0x4c483d(0x342)+_0x12a353+'/rev/'+_0x2cc6e6,_0x331a32=(await this[_0x4c483d(0x4ca)][_0x4c483d(0x2e5)](_0x33f4dd))[_0x4c483d(0x226)],_0x541905=(_0x83538e=_0x331a32['snapshot'])==null?void 0x0:_0x83538e[_0x4c483d(0x470)];if(_0x541905){const _0x387bcf=_0x541905==null?void 0x0:_0x541905['originalMeta'],_0x99dc22=_0x4ac4e1[_0x4c483d(0x234)][_0x4c483d(0x292)](_0x4ac4e1[_0x4c483d(0x28c)](_0x387bcf));_0x541905[_0x4c483d(0x26d)]=_0x99dc22,Object[_0x4c483d(0x2c4)](_0x541905[_0x4c483d(0x4ea)])['forEach'](([,_0x2dc1b2])=>{const _0x5d2967=_0x4c483d,_0x38468d=_0x2dc1b2[_0x5d2967(0x26d)],_0x9fb242=_0x4ac4e1['textEncoder'][_0x5d2967(0x292)](_0x4ac4e1['b64DecodeUnicode'](_0x38468d));_0x2dc1b2[_0x5d2967(0x26d)]=_0x9fb242;});}return _0x331a32;}async[_0x21a661(0x3f5)](_0x4fbd61,_0x408bec){const _0x307abb=_0x21a661,{unitID:_0x4c433d,type:_0x19f176,blockID:_0x4589e7}=_0x408bec,_0xc71cff=this[_0x307abb(0x167)]()+'/'+_0x19f176+_0x307abb(0x342)+_0x4c433d+_0x307abb(0x2a3)+_0x4589e7;return(await this[_0x307abb(0x4ca)][_0x307abb(0x2e5)](_0xc71cff))[_0x307abb(0x226)];}async[_0x21a661(0x278)](_0x15a2df,_0xd411ac){const _0x2ec787=_0x21a661,{unitID:_0x49d7e5,type:_0x3462d0,blockID:_0x3291ba}=_0xd411ac,_0x55c5ad=this[_0x2ec787(0x167)]()+'/block/'+_0x3462d0+'/unit/'+_0x49d7e5+_0x2ec787(0x2a3)+_0x3291ba;return(await this['_httpService'][_0x2ec787(0x2e5)](_0x55c5ad))[_0x2ec787(0x226)];}async[_0x21a661(0x42f)](_0x41ca7a,_0x15c797){const _0x140789=_0x21a661,{unitID:_0x5d4550,type:_0x278ede,from:_0x13ed5e,to:_0x44265c}=_0x15c797,_0xbe0e70=this[_0x140789(0x167)]()+'/'+_0x278ede+_0x140789(0x342)+_0x5d4550+_0x140789(0x426)+_0x13ed5e+_0x140789(0x1d4)+_0x44265c;return(await this[_0x140789(0x4ca)]['get'](_0xbe0e70))[_0x140789(0x226)];}['_getSnapshotAPIPrefix'](){const _0x9f7cb2=_0x21a661;var _0x14620f;return(_0x14620f=this[_0x9f7cb2(0x3ee)][_0x9f7cb2(0x3d9)](_0x5fb444))!=null?_0x14620f:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x1caf94=_0x21a661;var _0x22a507,_0x5532ec;const _0x3a9a24=this[_0x1caf94(0x3ee)]['getConfig'](_0x54d801),_0x222c8d=this['_configService']['getConfig'](_0x3839b7);return(_0x5532ec=(_0x22a507=_0x222c8d==null?void 0x0:_0x222c8d[_0x1caf94(0x17d)])!=null?_0x22a507:_0x3a9a24)!=null?_0x5532ec:_0x4cac16;}async[_0x21a661(0x2e1)](_0x45e92f,_0xab6bb8){const _0x1c91a1=_0x21a661,_0x2bd5ec=_0x1c91a1(0x566)+_0xab6bb8[_0x1c91a1(0x547)]+_0x1c91a1(0x342)+_0xab6bb8[_0x1c91a1(0x3ea)]+_0x1c91a1(0x2ea);return(await this[_0x1c91a1(0x4ca)][_0x1c91a1(0x2e5)](_0x2bd5ec,{'params':{'resourceId':JSON[_0x1c91a1(0x250)](_0xab6bb8[_0x1c91a1(0x391)])}}))[_0x1c91a1(0x226)];}[_0x21a661(0x56b)](){const _0x4dd6e1=_0x21a661;throw new Error(_0x4dd6e1(0x382));}[_0x21a661(0x530)](){const _0x1d61a7=_0x21a661;throw new Error(_0x1d61a7(0x382));}['saveChangeset'](){const _0x5ab46e=_0x21a661;throw new Error(_0x5ab46e(0x382));}[_0x21a661(0x3ed)](){const _0x211a1a=_0x21a661;throw new Error(_0x211a1a(0x382));}[_0x21a661(0x2bd)](){const _0x129703=_0x21a661;throw new Error(_0x129703(0x382));}},_0x2e2c4a[_0x21a661(0x14e)]=_0x76ba8a([_0x94714c(0x0,_0x2d1395[_0x21a661(0x21e)]),_0x94714c(0x1,_0x2d1395[_0x21a661(0x2f7)](_0x418c7b[_0x21a661(0x157)]))],_0x2e2c4a[_0x21a661(0x14e)]);var _0x363ff8=Object[_0x21a661(0x1a6)],_0x1a859f=Object[_0x21a661(0x1c8)],_0x2afded=(_0x43059c,_0x396bd8,_0x59217b,_0x4193bb)=>{const _0x4425cf=_0x21a661;for(var _0x25c4ef=_0x4193bb>0x1?void 0x0:_0x4193bb?_0x1a859f(_0x396bd8,_0x59217b):_0x396bd8,_0x177d0a=_0x43059c[_0x4425cf(0x396)]-0x1,_0x486631;_0x177d0a>=0x0;_0x177d0a--)(_0x486631=_0x43059c[_0x177d0a])&&(_0x25c4ef=(_0x4193bb?_0x486631(_0x396bd8,_0x59217b,_0x25c4ef):_0x486631(_0x25c4ef))||_0x25c4ef);return _0x4193bb&&_0x25c4ef&&_0x363ff8(_0x396bd8,_0x59217b,_0x25c4ef),_0x25c4ef;},_0x40e1e6=(_0x2115aa,_0x2b53d7)=>(_0x55e2ee,_0x4dead7)=>_0x2b53d7(_0x55e2ee,_0x4dead7,_0x2115aa);let _0x31356a=class extends _0x2d1395[_0x21a661(0x154)]{constructor(_0x2733b2,_0x49eb7e,_0x140743,_0x2c94be,_0x2a2128){const _0x413dac=_0x21a661;super(_0x2733b2,_0x49eb7e,_0x140743),this['_transformService']=_0x2c94be,this[_0x413dac(0x546)]=_0x2a2128;}[_0x21a661(0x4fd)](_0x2c97ea,_0x340f96){const _0x31e1c5=_0x21a661,_0x126a63=this[_0x31e1c5(0x186)](_0x2c97ea);if(_0x126a63)try{const _0x406a66=this[_0x31e1c5(0x55b)](_0x126a63,_0x340f96);this[_0x31e1c5(0x1f8)](_0x2c97ea,_0x406a66);}catch(_0x550a00){this['_logService'][_0x31e1c5(0x3f4)](_0x31e1c5(0x2d4),_0x550a00),this[_0x31e1c5(0x300)](_0x2c97ea);}const _0x428a36=this[_0x31e1c5(0x3fa)](_0x2c97ea);if(_0x428a36)try{const _0x571ee2=this[_0x31e1c5(0x55b)](_0x428a36,_0x340f96);this[_0x31e1c5(0x474)](_0x2c97ea,_0x571ee2);}catch(_0x2d6f26){this[_0x31e1c5(0x546)]['error'](_0x2d6f26),this[_0x31e1c5(0x343)](_0x2c97ea);}}[_0x21a661(0x300)](_0x586534){const _0x53bbcd=_0x21a661,_0x55bcea=this[_0x53bbcd(0x186)](_0x586534);_0x55bcea&&(_0x55bcea[_0x53bbcd(0x396)]=0x0,this[_0x53bbcd(0x1e6)]());}['_clearRedo'](_0xafa6b1){const _0x378f39=_0x21a661,_0x27a24e=this['_getRedoStack'](_0xafa6b1);_0x27a24e&&(_0x27a24e['length']=0x0,this[_0x378f39(0x1e6)]());}[_0x21a661(0x1f8)](_0x366b2c,_0x29fee6){const _0x5c1e28=_0x21a661;this[_0x5c1e28(0x2e7)][_0x5c1e28(0x4f1)](_0x366b2c,_0x29fee6),this[_0x5c1e28(0x1e6)]();}[_0x21a661(0x474)](_0x2bd43a,_0x338a01){const _0x2fe3bd=_0x21a661;this['_redoStacks'][_0x2fe3bd(0x4f1)](_0x2bd43a,_0x338a01),this['_updateStatus']();}[_0x21a661(0x55b)](_0x16365b,_0x358cad){const _0x244afc=_0x21a661,_0x4f57c2=[];let _0x47be04=_0x358cad,_0x66c999=_0x358cad;for(let _0x5cf5f8=_0x16365b[_0x244afc(0x396)]-0x1;_0x5cf5f8>=0x0;_0x5cf5f8--){const {unitID:_0x128577,undoMutations:_0x19d190,redoMutations:_0x52e940}=_0x16365b[_0x5cf5f8],_0x52fe6d=this[_0x244afc(0x1b1)]['transformMutationsWithChangeset'](_0x47be04,_0x19d190),_0x5738cb=this[_0x244afc(0x1b1)][_0x244afc(0x4d1)](_0x66c999,_0x52e940);if(_0x4ac4e1[_0x244afc(0x3e3)](_0x52fe6d)||_0x4ac4e1[_0x244afc(0x3e3)](_0x5738cb)){this[_0x244afc(0x546)][_0x244afc(0x3f4)](_0x244afc(0x2d4),_0x244afc(0x427),_0x52fe6d,_0x5738cb);break;}_0x47be04=_0x52fe6d[_0x244afc(0x23e)],_0x66c999=_0x5738cb[_0x244afc(0x23e)],_0x4f57c2['push']({'unitID':_0x128577,'undoMutations':_0x52fe6d[_0x244afc(0x348)],'redoMutations':_0x5738cb[_0x244afc(0x348)]});}return _0x4f57c2[_0x244afc(0x3b2)]();}};_0x31356a=_0x2afded([_0x40e1e6(0x0,_0x2d1395['IUniverInstanceService']),_0x40e1e6(0x1,_0x2d1395['ICommandService']),_0x40e1e6(0x2,_0x2d1395['IContextService']),_0x40e1e6(0x3,_0x4ac4e1[_0x21a661(0x509)]),_0x40e1e6(0x4,_0x2d1395[_0x21a661(0x52d)])],_0x31356a);class _0x17512f extends _0x2d1395['RxDisposable']{constructor(){const _0x5d54c0=_0x21a661;super(),_0x55c95f(this,'urlChange$'),this['urlChange$']=_0x4c5465['fromEvent'](window,_0x5d54c0(0x2ff))[_0x5d54c0(0x219)](_0x4c5465[_0x5d54c0(0x30f)](this['dispose$']),_0x4c5465[_0x5d54c0(0x201)](0x1),_0x4c5465[_0x5d54c0(0x478)](void 0x0));}['setParam'](_0x5d6c10,_0x508eb1,_0x5ca674=!0x1){const _0x175795=_0x21a661,_0x312063=new URL(window['location']['href']);_0x312063[_0x175795(0x390)][_0x175795(0x4f1)](_0x5d6c10,_0x508eb1),_0x5ca674?window['history']['replaceState']('','',_0x312063[_0x175795(0x329)]()):window[_0x175795(0x235)]['pushState']('','',_0x312063[_0x175795(0x329)]());}[_0x21a661(0x4d9)](_0x583eb9,_0x28fc92=!0x1){const _0x54748c=_0x21a661,_0x88b756=new URL(window['location'][_0x54748c(0x313)]);_0x88b756[_0x54748c(0x390)][_0x54748c(0x464)](_0x583eb9),_0x28fc92?window[_0x54748c(0x235)][_0x54748c(0x3c3)]('','',_0x88b756[_0x54748c(0x329)]()):window[_0x54748c(0x235)]['pushState']('','',_0x88b756[_0x54748c(0x329)]());}[_0x21a661(0x360)](_0x2e0e1a){const _0x2eb1ef=_0x21a661;var _0x4b331a;return(_0x4b331a=new URL(window[_0x2eb1ef(0x2da)][_0x2eb1ef(0x313)])['searchParams']['get'](_0x2e0e1a))!=null?_0x4b331a:void 0x0;}}var _0x3c7a30=Object[_0x21a661(0x1a6)],_0x32c6c7=Object[_0x21a661(0x1c8)],_0x55e896=(_0x2908b6,_0x2fd678,_0x5422fc)=>_0x2fd678 in _0x2908b6?_0x3c7a30(_0x2908b6,_0x2fd678,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5422fc}):_0x2908b6[_0x2fd678]=_0x5422fc,_0x49af0f=(_0x4c4fdd,_0x5c0da2,_0x2094fa,_0x4edff8)=>{for(var _0x1b3d15=_0x4edff8>0x1?void 0x0:_0x4edff8?_0x32c6c7(_0x5c0da2,_0x2094fa):_0x5c0da2,_0x30f569=_0x4c4fdd['length']-0x1,_0x50f29a;_0x30f569>=0x0;_0x30f569--)(_0x50f29a=_0x4c4fdd[_0x30f569])&&(_0x1b3d15=(_0x4edff8?_0x50f29a(_0x5c0da2,_0x2094fa,_0x1b3d15):_0x50f29a(_0x1b3d15))||_0x1b3d15);return _0x4edff8&&_0x1b3d15&&_0x3c7a30(_0x5c0da2,_0x2094fa,_0x1b3d15),_0x1b3d15;},_0x37a4ff=(_0x3dc33b,_0x1da164)=>(_0xa092a2,_0x3c4b88)=>_0x1da164(_0xa092a2,_0x3c4b88,_0x3dc33b),_0xe33158=(_0x175162,_0x1e70e7,_0x1c78de)=>_0x55e896(_0x175162,_0x1e70e7+'',_0x1c78de);const _0x5a22eb=_0x21a661(0x150);_0x2e2c4a[_0x21a661(0x2f3)]=class extends _0x2d1395['Plugin']{constructor(_0x52842a=_0x122b1e,_0x15bb18,_0x3def4b,_0x4518bb,_0x5bbdea){const _0x3248d2=_0x21a661;super(),this[_0x3248d2(0x2ec)]=_0x52842a,this['_logService']=_0x15bb18,this['_renderManagerService']=_0x3def4b,this[_0x3248d2(0x3b8)]=_0x4518bb,this[_0x3248d2(0x3ee)]=_0x5bbdea;const {..._0x3cc9fb}=this[_0x3248d2(0x2ec)];this[_0x3248d2(0x3ee)][_0x3248d2(0x353)](_0x3839b7,_0x3cc9fb);}[_0x21a661(0x3bd)](){const _0x6302a1=_0x21a661;this['_registerDependencies'](),_0x2d1395[_0x6302a1(0x2cd)](this[_0x6302a1(0x3b8)],[[_0x4ad65f],[_0x2e2c4a[_0x6302a1(0x3c5)]],[_0x3c52b1]]);}[_0x21a661(0x4af)](){const _0x296d14=_0x21a661;_0x2d1395['touchDependencies'](this[_0x296d14(0x3b8)],[[_0x261e7a]]);}[_0x21a661(0x2ab)](){const _0x37bd98=_0x21a661;this[_0x37bd98(0x281)]();}[_0x21a661(0x296)](){const _0x342407=_0x21a661;var _0xbc8593,_0xf854f7,_0x5e88fe,_0x426bd9;this[_0x342407(0x3b8)][_0x342407(0x397)](_0x2d1395[_0x342407(0x1a4)])&&this[_0x342407(0x546)][_0x342407(0x3f4)](_0x342407(0x3ae),_0x342407(0x36b));let _0x1ab9fb=[[_0x2d1395['IUndoRedoService'],{'useClass':_0x31356a}],[_0x2e2c4a[_0x342407(0x2e4)]],[_0x1e582d],[_0x418c7b['HTTPService']],[_0x39ce60,{'useClass':_0x17512f}],[_0xb6854f],[_0x2e2c4a[_0x342407(0x4b6)]],[_0x418c7b[_0x342407(0x467)]],[_0x2175b2],[_0x5cd5ce],[_0x1a0241],[_0x58e167],[_0x4df9ad],[_0x4b2757],[_0x2df9dc],[_0x3c52b1],[_0x3a776a,{'useClass':(_0xf854f7=(_0xbc8593=this[_0x342407(0x2ec)])==null?void 0x0:_0xbc8593[_0x342407(0x4a3)])!=null?_0xf854f7:_0x2e2c4a[_0x342407(0x535)]}],[_0x418c7b[_0x342407(0x416)],{'useClass':_0x418c7b[_0x342407(0x45d)]}],[_0x4ac4e1[_0x342407(0x1ee)],{'useClass':_0x2e2c4a[_0x342407(0x14e)]}],[_0x2d1395[_0x342407(0x57d)],{'useClass':_0x2e2c4a[_0x342407(0x42b)]}],[_0x4be0fa['IImageIoService'],{'useClass':_0x2e2c4a[_0x342407(0x1a9)]}],[_0x2e2c4a[_0x342407(0x15d)]],[_0x2e2c4a['DataLoaderController']],[_0x2e2c4a[_0x342407(0x4dc)]],[_0x261e7a],[_0x4ad65f]];(_0x5e88fe=this[_0x342407(0x2ec)])!=null&&_0x5e88fe[_0x342407(0x323)]&&_0x1ab9fb[_0x342407(0x48a)]([_0x26f002,{'useClass':_0x238745}]),_0x1ab9fb=_0x2d1395[_0x342407(0x1b8)](_0x1ab9fb,(_0x426bd9=this[_0x342407(0x2ec)])==null?void 0x0:_0x426bd9[_0x342407(0x339)]),_0x1ab9fb['forEach'](_0x421300=>this[_0x342407(0x3b8)][_0x342407(0x18d)](_0x421300)),this['_initModules']();}['_registerRenderDependencies'](){const _0x515b53=_0x21a661;this[_0x515b53(0x3e2)](this[_0x515b53(0x2f9)][_0x515b53(0x1d6)](_0x2d1395['UniverInstanceType']['UNIVER_DOC'],[_0xb9f9ac])),this[_0x515b53(0x3e2)](this[_0x515b53(0x2f9)][_0x515b53(0x1d6)](_0x2d1395[_0x515b53(0x21c)][_0x515b53(0x196)],[_0x2189a9]));}[_0x21a661(0x1bd)](){const _0x35c370=_0x21a661;var _0x3a1d4d,_0x59b96e;this['_injector'][_0x35c370(0x2e5)](_0x418c7b[_0x35c370(0x157)])[_0x35c370(0x15b)]({'priority':0x14,'interceptor':_0x418c7b[_0x35c370(0x542)]({'maxParallel':0x6})}),this['_injector']['get'](_0x4b2757),(_0x3a1d4d=this['_config'])!=null&&_0x3a1d4d[_0x35c370(0x49a)]||this[_0x35c370(0x3b8)][_0x35c370(0x2e5)](_0x2e2c4a[_0x35c370(0x4b6)])[_0x35c370(0x405)](),(_0x59b96e=this[_0x35c370(0x2ec)])!=null&&_0x59b96e['enableAuthServer']&&this[_0x35c370(0x3b8)][_0x35c370(0x2e5)](_0x4df9ad),this[_0x35c370(0x3b8)][_0x35c370(0x2e5)](_0x2e2c4a[_0x35c370(0x15d)]),this[_0x35c370(0x3b8)]['has'](_0x2e2c4a[_0x35c370(0x4dc)])&&this['_injector'][_0x35c370(0x2e5)](_0x2e2c4a[_0x35c370(0x4dc)]);}},_0xe33158(_0x2e2c4a[_0x21a661(0x2f3)],_0x21a661(0x31b),_0x5a22eb),_0x2e2c4a[_0x21a661(0x2f3)]=_0x49af0f([_0x2d1395[_0x21a661(0x3e6)](_0x4ac4e1['UniverCollaborationPlugin']),_0x37a4ff(0x1,_0x2d1395[_0x21a661(0x52d)]),_0x37a4ff(0x2,_0xc3204c[_0x21a661(0x511)]),_0x37a4ff(0x3,_0x2d1395[_0x21a661(0x2f7)](_0x2d1395[_0x21a661(0x45c)])),_0x37a4ff(0x4,_0x2d1395['IConfigService'])],_0x2e2c4a[_0x21a661(0x2f3)]),_0x2e2c4a['AUTHZ_URL_KEY']=_0x26fa82,_0x2e2c4a[_0x21a661(0x351)]=_0x5f51a0,_0x2e2c4a[_0x21a661(0x50b)]=_0x2532aa,_0x2e2c4a['CollaborationStatus']=_0x27b30b,_0x2e2c4a[_0x21a661(0x40e)]=_0x538cc1,_0x2e2c4a[_0x21a661(0x4a5)]=_0x2df9dc,_0x2e2c4a[_0x21a661(0x37c)]=_0x3b53e6,_0x2e2c4a['HEARTBEAT_TIMEOUT_KEY']=_0x310b36,_0x2e2c4a['ICollaborationSocketService']=_0x3a776a,_0x2e2c4a[_0x21a661(0x3ca)]=_0x39ce60,_0x2e2c4a[_0x21a661(0x13e)]=_0x42e20f,_0x2e2c4a[_0x21a661(0x389)]=_0x106063,_0x2e2c4a[_0x21a661(0x14f)]=_0x952aa8,_0x2e2c4a[_0x21a661(0x255)]=_0x3dec9b,_0x2e2c4a[_0x21a661(0x321)]=_0x54d801,_0x2e2c4a['SNAPSHOT_URL_KEY']=_0x5fb444,_0x2e2c4a['SessionStatus']=_0x1173b7,_0x2e2c4a[_0x21a661(0x480)]=_0x4b4e22,_0x2e2c4a[_0x21a661(0x543)]=_0x17512f,_0x2e2c4a['deserializeToCombResponse']=_0x5eb50e,_0x2e2c4a[_0x21a661(0x259)]=_0x421da1,Object['defineProperty'](_0x2e2c4a,Symbol['toStringTag'],{'value':_0x21a661(0x33c)});}));function _0x1d6e(){const _0x50b304=['startTime','_unitOnClients','mapTo','verdancy600','unshift','_decreaseWaiting','_socketService','transformByState','_submitChangeset','UniverCollaborationClient','SheetCollabCursorShape','c2Prime','getAncestorScale','roomMembers$','create','_waitForHeartbeatResponse','changesets','objects','on-line-single','_anchorDot','push','_userManagerService','/collaborator','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_waitCount','_getUploadFileURL','COLLAB_WEB_SOCKET_URL','requestParams','forEach','DocCollaborationEntity','onPointerLeave$','FromArray','transformMutation','HEARTBEAT','isInternalEditorID','_queuedRemoteChangesets','enableOfflineEditing','CONNECTOR_DATA_TOO_LARGE','IUIPartsService','SnapshotService','isTransformChangesetsSuccess','getFocusedUnit','getMergeData','collab-text-anchor-','UNIVER_PROJECT','socketService','hasOwnProperty','CommentService','FileId','take','APPLY_PERMISSION_DENIED','randomUUID','number','_scene','[PendingState]:\x20received\x20rejection.','collab-client.tooltip.reconnect','unknown','onReady','TOO_MANY_REQUESTS','complete','confirm','connectInjector','_acknowledgedAwaitingChangeset','show','LocalCacheService','_scheduleClearOtherTimer','UniverNetwork','infoRsp','UniverDrawing','children','collaboration-session-retry','_removeRoom','handleInsertRow','?size=','collabSubmitChangesetUrl','onSyncEditingCollabCursor','@univerjs/network','_change$','InsertRangeMoveDownCommandId','?url=','UNAUTHENTICATED','RemoveRowCommandId','on-line-single_clip0_910_349','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_httpService','_listenToOnlineEvent','Optional','/-/object/list','COLORS','/universer-api/file/{fileID}/sign-url','incrementRevOfUnit','transformMutationsWithChangeset','getRenderById','_toggleOnline','handleDeleteRangeMoveUp','call','onlyLocal','compose','_replayCachedMutations','removeParam','_getLoginPath','_fetchMissChangesets','DesktopCollaborationStatusDisplayController','UNIVER_UNKNOWN','signUrlServerUrl','_initUnitPermissionChange','_permissionService','_session','fromCollab','@univerjs/docs','list','sid','_collaborationController','collab-rect-range-','POST','_setupSubUnitSync','sheets','CollaborationEntity','awaiting_with_pending','uni.network.url-service','fillRule','UNIVER_DOC','useDependency','set','startsWith','onRemoteChangeset','_changesetSessionId','[CollaborationEntity]','every','prototype','_retryCount','_clearTimeoutTimer','session.collaboration-timeout','sequenceExecute','_document','transformUndoRedo','_removeClearOtherTimer','NEW_CHANGESETS','map','_lastPointer','_state$','arc','ERROR_IMAGE','transformChangesets','userID','_color','Disposable','ITransformService','AUTHZ_URL_KEY','COLLAB_WEB_SOCKET_URL_KEY','init','updatePermissionObjEvent','isActive','none','onRemoteAck','IRenderManagerService','_onFetchMissResult','ColorKit','endRow','startColumn','LIVESHARE_TERMINATE','session.room-full','_collabCursorController','univerjs-icon\x20univerjs-icon-','_localeService','React','getUnitType','dispose','univer-online-status-icon','onlineStatusTitle','SUBMIT_CHANGESET','_socketReady','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','getDocRanges','startRow','memberID','_http','_refRangeService','RevisionService','DEFAULT_FILE_NAME','COMPLETION_FINISHED','LEAVE','_toggleOffline','ILogService','state$','_timeoutTimer','saveSheetBlock','_hover','@univerjs/ui','_send','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','CollaborationSocketService','_shapes','/universer-api/snapshot','_setupBeforeClosingHandler','_id','RichTextEditingMutation','text','roomInfos','_name','clear','resize','addObject','_getMergeRange','ThresholdInterceptorFactory','WebURLService','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_hovered','_logService','type','_onUserJoin','readAsDataURL','YUUMI_SUBSCRIPTION_NOT_FOUND','UniverUi','getCurrentRevOfUnit','...','_saveTaskMap','DocSelectionManagerService','_changesetReqId','ALREADY_EXISTS','INVALID_ARGUMENT','toDisposable','_commentUpdate$','createElement','putCollaborators','requireSession','fillText','session.will-retry','_shouldReportTelemetry','_transformStack','_getSendChangesetTimeout','state','objectType','useRef','drawWith','RETRY_CONNECTING_MAX_COUNT','/object/','allowed','all','_saveCache','/universer-api/snapshot/','Undefined','ICommandService','_onRefRangeChange','getInterceptPoints','saveSnapshot','isTransformMutationsWithChangesetSuccess','createIdentifier','SheetCollaborationEntity','image/jpg','_handleHeartbeatEvent','getRandomValues','_retryConnectingTimer','_handleLeaveEvent','_initCommandExecutedListener','_schedule','getUnhiddenWorksheets','getMemberID','{fileID}','NO_OTHER_CLIENTS_EDITING','purple300','min','getSheetId','IAuthzIoService','YUUMI_RATE_OVER_LIMIT','tag','_initResize','LOCAL_CACHE_INTERVAL_KEY','subUnitId','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','_compressMutationService','_createHandler','/universer-api/stream/file/upload','resolve','closePath','off-line-single_clip0_910_343','collaboration.single-unit.warning','eventID','syncEditingCollabCursor','/role','font','updateCollaborator','_onCombEvent','SnapshotServerOverHTTPService','RETRY_CONNECTING_MAX_COUNT_KEY','UNIVER_COLLABORATION_CLIENT_PLUGIN','_startDocCollabCursor','IMessageService','url(#on-line-single_clip0_910_349)','LocalUndoRedoService','append','from','HTTPService','serializeRangeWithSheet','[CollaborationSessionService]:\x20socket\x20error','pending','registerHTTPInterceptor','UniverCollaboration','CollaborationController','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','onRemoteRej','rng','use','@univerjs/docs-ui','onload','fetching\x20missing\x20changesets\x20from\x20','message$','getCollabCursors$','_getAPIPrefix','evenodd','@univerjs/telemetry','currentSkeleton$','pauseCollaboration','Rectangle','[SyncedState]:\x20received\x20acknowledgement.','commentUpdateEvent','interceptor','disposeUnit','unitId\x20is\x20not\x20found','getAttachHeader','createSocket','onMissedChangesetFetched','connection\x20error','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','LocaleService','[PendingState]:\x20received\x20acknowledgement.','CollaborationSession','handleInsertRangeMoveRight','\x0aAfter:\x20','CHANGESET_REVISION_CONFILICT','snapshotServerUrl','error$','restore','subunit','_eventUnsubscribe','getValue','_telemetryService','LIVESHARE_REQUEST_HOST','CollaborationEvent','_getUndoStack','telemetry\x20info\x20is\x20not\x20initialized','focused$','getUnitStatus$','UNDEFINED','_initStatusComponent','SHOULD_CLOSE_CONN','add','_collabCursorState$','selections','online','collab-text-range-','useObservable','_onConnectionFailed','ImageUploadStatusType','initWorkbookPermissionChange','UNIVER_SHEET','not_collab','clipPath','_removeCollabCursors','@univerjs-pro/license','_onLocalMutation','x-univer-host','_beforeCloseService','update','resend','rev','_docStateChangeManagerService','parse','objectActions','IUndoRedoService','newValue','defineProperty','transformIMECache','DeleteRangeMoveUpCommandId','ImageIoService','auth.needGotoLoginAlert','_urlService','InsertRangeMoveRightCommandId','merge','csRejEvent','OFFLINE','failed\x20to\x20apply\x20missed\x20changesets!','_transformService','event$','_onCursorDelete','session','save','isPermissionRej','OTHER_CLIENTS_EDITING','mergeOverrideWithDependencies','collaborators','_startTelemetryCollaborationNewChangeset','_tryEnsureSocket','_exhaustRemoteChangesetQueue','_initModules','isArray','_joinRoom','setItem','title','asObservable','object','conflict.title','HEARTBEAT_TIMEOUT','UserManagerService','getViewport','getOwnPropertyDescriptor','_rescheduleHeartbeat','IDLE','registerRefRange','displayName','row','_docSyncEditingCollabCursorService','_syncEditingCollabCursorService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_onRemoteChangeset','concat','deserializeRangeWithSheet','&to=','column','registerRenderModule','_handleHover','_type','cmd','SheetSkeletonManagerService','0\x200\x2016\x2016','APPLY_REVISION_CONFILICT','collabStatus.syncing','listCollaborators','_clearScheduledTask','bind','YUUMI_URL_COL_OUT_OF_RANGE','_getCurrentRevision','currentColor','onPointerMove$','_sessions','_updateStatus','socket\x20close','getSheetBySheetId','capture','propertyIsEnumerable','ws://127.0.0.1:8000/universer-api/comb/connect','revision','getUndoRedoMutationParamsCache','ISnapshotServerService','isValidRectRange','_imageSourceCache','getUnitId','extend','setParam','commentUpdate$','colorChannel1','getCoordByCell','LICENSE_MAX_UNITS_EXCEEDED','_substituteUndoStack','combineLatest','getRelativeToViewportCoord','_hideTimer','gold400','_sendHeartbeat','UNKNOWN_CODE','runRefRangeMutations','_createSocket','shareReplay','_range','find','onPointerEnter$','_onRemoteACK','slice','deepClone','_replaceFileID','_instanceService','hovered','setTimeout','2251823XMurUW','_getAnchorBounding','subscribeEvent','_messageService','JSONX','COMMENT_UPDATE','headers','DisposableCollection','_isPermissionRej','JOIN','_snapshotServerService','IBeforeCloseService','unit-cache-','pipe','SetDocZoomRatioOperation','CONFLICT','UniverInstanceType','_themeService','IConfigService','_startSheetCollabCursor','defIds','skeleton','_drawRectRange','EffectRefRangId','NOT_COLLAB','_heartbeatTimer','body','[CollaborationState]:\x20apply\x20error!','/object','image/png','whenReady','_commandService','_singleActiveUnitService','@univerjs/drawing','/universer-api/comb','_online','clearInterval','USERS_ENTER','fromEvent','max','textEncoder','history','MUTATION','_cachedData','12uWRZoY','color','_scheduleHeartbeat','Warning','switchMap','backgroundColor','c1Prime','_socket','SNAPSHOT_URL_KEY','generateRandomId','_updateLocalCache','liveShareNewHost','SYNCED','getUnitOnRev','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','MergeInterceptorFactory','conflict.content','ImageSourceType','_syncEditingCollabCursor','conflict','fillStyle','getCurrent','react','awaitingChangeset','stringify','[CollaborationSession]','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_status$','1em','SEND_CHANGESET_TIMEOUT_KEY','transformSelections','YUUMI_UNABLE_LOAD_URL','addEventListener','serializeCombRequest','className','contains','UniverDocsUi','_updateURLWithCurrentState','then','_undoRedoService','includes','getMember','@univerjs/sheets','COMPRESS_MUTATION_APPLY','getCurrentUnitForType','@univerjs/core','SNAPSHOT_INVALID_SNAPSHOT','indexOf','getTypeOfUnitDisposed$','UniverLicense','_sheetTransformSelectionsService','lineTo','_lockTransition','originalMeta','#fff','_getSheetObject','blue400','RefRangeService','code','handleIRemoveRow','debounce','LICENSE_EXPORT_SIZE_EXCEEDED','DocSkeletonManagerService','engine','getDeserializedSheetBlock','_event$','PERMISSION_DENIED','selection','_uiPartsService','FETCH_MISS','forwardRef','_labelPosition','permission.content','_registerRenderDependencies','_onCursorUpdate','SetWorksheetActivateCommand','split','univer-offline','fetchMiss','&source=','getCollabEntity$','_cursors','WorkbookEditablePermission','doc.mutation.rich-text-editing','b64DecodeUnicode','univer-pro.collaboration-client.single-active-unit-service','SheetsSelectionsService','height','handleMoveRange','_docTransformSelectionsService','encode','replace','SNAPSHOT_HAS_BEEN_REMOVED','collabStatus.fetchMiss','_registerDependencies','_refreshCollabCursors','json','debug','_updateLocalCursor','getSheetObject','[FetchMissState]','toRgbString','red300','_disableEditing','operators','ENSURE_SNAPSHOT_EXECUTION','xlink:href','/block/','cursorInfo$','ERROR_IMAGE_TYPE','with','_showConflictNotification','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','Rect','_onConflict','onRendered','_handleEvent','current','_scheduleCollaborationTimeoutTimer','_selfUnitIDs','_anchor','_sendHeartbeatTimer','_unitID','_draw','RxDisposable','sessionStatus','params','handleInsertRangeMoveDown','@univerjs/engine-render','_awaitingChangeset','_sessionStatus$','0\x200\x2017\x2016','HELLO','getLatestCsReqIdBySid','newCsEvent','replaceTextRanges','_createInitialState','UniverTelemetry','_render','_commentService','entries','onMissingChangesets','members','top','_initCloseConn','HttpImport','filter','_loadDoc','onTransformRemoteChangesetByIMECache','touchDependencies','parseProtocolChangeset','routeKey','_executeRemoteChangeset','LICENSE_IMPORT_SIZE_EXCEEDED','_listenToOfflineEvent','_handler','[CollaborationUndoRedoService]','fetchThroughInterceptors','BehaviorSubject','defs','UPDATE_PERMISSION_OBJ','UniverEngineFormula','location','UniverSheetsUi','AWAITING','_entityInit$','_ensureSubject','_cursor','_checkMissing','getResourcesRequest','removeMember','CHANGESET_REJ','CollaborationSessionService','get','_getSnapshotAPIPrefix','_undoStacks','getSkeleton','_backgroundColor','/resources','_collaborationSessionService','_config','_telemetryInfo','INotificationService','[OfflineState]:\x20received\x20changeset.','_scheduleSaving','_onRemoteRejected','IPermissionService','UniverCollaborationClientPlugin','hide','USERS_LEAVE','width','Inject','image/jpeg','_renderManagerService','IUniverInstanceService','_initStatusListener','_initRequestHeader','getTypeOfUnitAdded$','BASE64','popstate','_clearUndo','_updateCollabCursors','toggleOffline','UniverSheets','HTTPRequest','_drawAnchor','_clearLocalCache','cursorInfo','_stopTelemetryCollaborationNewChangeset','appendMutation','values','joinEvent','[SyncedState]:\x20received\x20rejection.','UUID','activeSheet$','takeUntil','Error','_createInitialStateImpl','loadDoc','href','round','uploadFileServerUrl','objectID','hidden','UnitEmbedded','@univerjs/rpc','CommandType','pluginName','image/gif','VIEWPORT_KEY','Tooltip','parseChangesetToProtocol','univer-online','SNAPSHOT_SERVER_URL_KEY','_getSignURL','enableSingleActiveInstanceLock','HttpExport','_roomMembers','_memberService','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','offline','toString','reconnect','mutations','234312MsyGAq','HEADER_MENU','_incrementRevisionNumber','onMouseMove','_getDownloadEndpointURL','collaboration.closeRoom','DocIMEInputManagerService','assign','rxjs/operators','DocStateChangeManagerService','3166776ulhHmG','_candidateSocket','_cursorInfo$','override','svg','FAIL','Module','labelPosition','setActiveRange','close','M0\x200H16V16H0z','ONLINE','/unit/','_clearRedo','Tools','_startCollaboration','permission.title','getOffsetConfig','m2Prime','_unitStatus','154232uIJpHH','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','COLLAB_SUBMIT_CHANGESET_URL','getOwnPropertySymbols','_assignedColors','getColor','some','COLLAB_SUBMIT_CHANGESET_URL_KEY','MessageType','setConfig','handleInsertCol','_onRecvEvent','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','loadOfflineData','_sendingTimer','_tryReconnect','black','setCurrentUser','@univerjs/sheets-ui','LIVESHARE_NEW_HOST','assignAColorForMemberID','INGEST','getParam','INTERNAL_ERROR','JOINING','sheetID','_transitionLocked','_pendingMutations','currentTheme$','shouldCloseConn','collabStatus.synced','DeleteRangeMoveLeftCommandId','545387KlSkIM','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','registerBeforeClose','isTransformMutationFailure','NodePositionConvertToCursor','UniverDesign','[PendingState]:\x20unhandled\x20univer\x20type:\x20','range','/universer-api/oidc/authpage','UNKNOWN_CMD','awaiting','_revisionService','editing\x20status\x20changed\x20to','_onOffline','_cursorShapes','reqId','ERROR_EXCEED_SIZE','bottom','HEARTBEAT_INTERVAL_KEY','fetch_missing','unit','_onConnectionOpen','getActiveSheet','textRanges','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','COMPRESS_MUTATION_SEND','reduce','closeSession','CHANGESET_ACK','PERMISSION_REJ','LIVESHARE_OPERATION','LOGIN_URL_KEY','_entities','sessionStatus$','onSendChangeset','_state','Vector2','reject','searchParams','resourceIDs','updatePermissionPoint','UniverEngineRender','Subject','string','length','has','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','joinRsp','send','fill','_updateSubUnitFromURLParams','_onUserLeave','size','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getUniverSheetInstance','[OfflineState]:\x20received\x20rejection.','UNRECOGNIZED','collaboratorID','_members','beginPath','setShapeProps','_updateState','NOT_FOUND','_context','ranges','mapDocumentTypeToUniverType','_clearOtherTimers','collabStatus.offline','[UniverCollaborationClientPlugin]','_roomMembers$','stopTime','getCurrentUser','reverse','setAlpha','getCellPositionByOffset','urlChange$','_clearCollaborationTimeoutTimer','_colorIndex','_injector','method','_sheetSkeletonManagerService','_localCacheService','_socket$','onStarting','_remoteChangesetQueue','_getSaveTimeout','_collabSessionService','onCommentUpdate','submit\x20changeset\x20error!','replaceState','_drawTextRange','DataLoaderController','_docTransformIMECacheService','getTime','function','storage','IURLService','OffLineSingle','status$','SheetPermissionInitController','APPLY_REJECT','toggleOnline','_disabled','path','UNIVER_SLIDE','open$','PENDING','downloadEndpointUrl','\x20to\x20','change$','ACTIVE_UNIT_EVENT_CHANNEL','getConfig','_getScale','roomMembers','&assign=','_localStorageService','rgba(255,\x20255,\x20255,\x200.01)','_collaborationPaused','/new_changes','39thiNmx','disposeWithMe','isTransformMutationsWithChangesetFailure','unitId','createInstance','DependentOn','getRangePointData','updateOfflineData','next','unitID','unsubscribe','throttleTime','copyFileMeta','_configService','save\x20fail\x20reason\x20is\x20','dispose$','translate(.97)','PSEUDO_FETCH_MISSING_RESULT','_textBubble','error','getSheetBlock','now','useCallback','RegularPolygon','_snapshotService','_getRedoStack','Unknown\x20user','univer-pro.collaboration-client-socket-service','RECV','[DataLoaderController]','data','_notificationService','onStateChange','delay','LIVESHARE_FETCH_OPERATIONS','attrs','disableLocalCache','_transformUndoRedoStack','ThemeService','endColumn','_docSkeleton','measureText','_ws','UniverRpc','clearTimeout','CollaborationStatusDisplay','target','responseType','SetSelectionsOperation','loginUrlKey','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','collabCursorState$','IRemoteInstanceService','IHTTPImplementation','subscribe','_colorAssignService','_handleJoinEvent','univer-online-status-title','UPDATE_CURSOR','debounceTime','InsertRowCommandId','884238YZRlHM','div','onTransformIME','[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.','_getAPIPrefixPath','getItem','exhaustSavingTask','_transformIMECache','/fetchmissing?from=','transformStack\x20failed!','_unlockTransition','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_clearHeartbeatTimer','AuthzIoHttpService','Workbook','actions','/-/object/-/batch_allowed','fetchMissingChangesets','LOCAL_CACHE_INTERVAL','onTransformSelections','localeService','_applyRemoteChangeset','idSuffix','rxjs','_scheduleTimestamp','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','univer-online-status','url','socket$','_initEventListeners','registerOnClose','LICENSE_DISTRO_REJECTED','InsertColCommandId','post','permissionRejEvent','file','TEXT_RANGE_LAYER_INDEX','findNodePositionByCharIndex','result','Univer','/universer-api/authz','_init','synced','UnitSnapshot','liveShareOperation','action','_socketMessageSubscription','random','_HTTPService','getCollabEntity','collaboration-client.config','_transformSelections','toLowerCase','fromEventSubject','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','_univerInstanceService','editingUnit','executeCommand','_initMergeInterceptor','213845DWLWoh','origin','updateMember','Injector','XHRHTTPImplementation','baseRev','_onMessage','getCurrentSelections','[OfflineState]:\x20received\x20acknowledgement.','MSG_FOR_ERROR','@univerjs/engine-formula','delete','_throwTelemetryCollaborationNewChangeset','APPLY_NON_SEQUENTIAL_REVISION','WebSocketService','status','_collaborationTimeoutTimer','onCommandExecuted','icon','name','visibilitychange','setUndoRedoMutationParamsCache','url(#off-line-single_clip0_910_343)','workbook','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationSessionService]','_docSkeletonManagerService','_substituteRedoStack','off-line-single'];_0x1d6e=function(){return _0x50b304;};return _0x1d6e();}