@univerjs-pro/collaboration-client 0.2.11 → 0.2.12

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 _0x35a8(){const _0x69e97b=['onStarting','ws://127.0.0.1:8000/universer-api/comb/connect','parse','serializeDocRange','rev','src','getCurrent','hasOwnProperty','_localStorageService','_onMessage','_timeoutTimer','_ws','_startDocCollabCursor','filter','_collaborationController','INGEST','_acknowledgedAwaitingChangeset','getOwnPropertySymbols','objectActions','permission.content','onTransformIME','getCurrentUnitForType','title','putCollaborators','updatePermissionPoint','debounceTime','assign','_init','JOINING','combineLatest','href','_createHandler','_name','headers','objectID','SEND_CHANGESET_TIMEOUT','eventID','COLLAB_WEB_SOCKET_URL_KEY','loadDoc','_startSheetCollabCursor','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','m2Prime','jiqing500','setTimeout','unit','stringify','CollaborationSessionService','_unlockTransition','WebSocketService','_onCursorDelete','none','@univerjs/design','compose','DataLoaderController','SYNCED','LIVESHARE_REQUEST_HOST','svg','LICENSE_IMPORT_SIZE_EXCEEDED','_onFetchMissResult','@univerjs-pro/collaboration','_initStatusComponent','&assign=','_clearCollaborationTimeoutTimer','_docSkeletonManagerService','startRow','indexOf','merge','SEND_CHANGESET_TIMEOUT_KEY','event$','LICENSE_EXPORT_SIZE_EXCEEDED','3016sHIbti','collaboration.closeRoom','_commentUpdate$','_collaborationSessionService','setShapeProps','forEach','_refRangeService','blue400','complete','getInterceptPoints','pending','@univerjs/docs','@univerjs/sheets-ui','_remoteChangesetQueue','_event$','@univerjs/drawing','transformIMECache','saveSheetBlock','_scheduleSaving','roles','_drawTextRange','enableAuthServer','getAncestorScale','BASE64','userID','includes','@univerjs/ui','handleInsertRow','className','_status$','SNAPSHOT_HAS_BEEN_REMOVED','_startCollaboration','onlineStatusTitle','_textBubble','/fetchmissing?from=','registerRefRange','backgroundColor','from','UniverCollaboration','close$','c1Prime','Ready','_sessions','_onCombEvent','UNIVER_PROJECT','CHANGESET_REJ','shareReplay','_http','_sendHeartbeatTimer','displayName','@univerjs/sheets','collab-text-anchor-','create','_logService','_range','_state$','on-line-single','CONFLICT','_drawRectRange','_replayCachedMutations','SheetCollabCursorShape','permissionRejEvent','ColorKit','error','interceptor','IMEInputManagerService','Vector2','clearInterval','forwardRef','isInternalEditorID','toStringTag','listCollaborators','black','setCurrentUser','initWorkbookPermissionChange','CollaborationSession','_permissionService','USERS_LEAVE','_docTransformIMECacheService','currentColor','close','unitId\x20is\x20not\x20found','CompressMutationService','SHOULD_CLOSE_CONN','Steady','getValue','map','clipPath','_schedule','{fileID}','target','body','_snapshotService','PENDING','_drawAnchor','mapDocumentTypeToUniverType','size','updatePermissionObjEvent','slice','commentUpdateEvent','_loadSheet','isEditing','_handleHeartbeatEvent','TRANSFORM_CHANGE_OBSERVABLE_TYPE','code','/role','HTTPService','ACTIVE_UNIT_EVENT_CHANNEL','_selfUnitIDs','editingUnit','handleInsertRangeMoveRight','newValue','getUniverSheetInstance','updateOfflineData','FETCH_MISS','Error\x20on\x20receiving\x20event','_initResize','_checkMissing','_showConflictNotification','RemoveRowCommandId','closePath','onlineStatusIcon','onSendChangeset','Inject','_initStatusListener','_themeService','fillText','transformChangesets','InsertSheetMutation','currentSkeleton$','COMPLETION_FINISHED','SNAPSHOT_INVALID_SNAPSHOT','responseType','_collabCursorState$','labelPosition','icon','syncEditingCollabCursor','OnLineSingle','getCurrentRevForDocument','SnapshotServerOverHTTPService','LocalUndoRedoService','onTransformSelections','unsubscribe','MessageType','unshift','_socketReady','HttpImport','toggleOffline','_assignedColors','_getAPIPrefix','DisposableCollection','_clearHeartbeatTimer','session.room-full','_roomMembers$','fetching\x20missing\x20changesets\x20from\x20','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','HEARTBEAT_TIMEOUT_KEY','_fetchMissChangesets','loadOfflineData','/new_changes','_getSheetObject','fill','Injector','csRejEvent','COLORS','_handleLeaveEvent','onMissedChangesetFetched','TEXT_RANGE_LAYER_INDEX','serializeCombRequest','getCollabCursors$','liveShareNewHost','clear','_retryCount','trim','_onRefRangeChange','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','defineProperty','failed\x20to\x20apply\x20missed\x20changesets!','getMergeData','objectType','debounce','_userManagerService','IConfigService','toRgbString','getConfig','auth.needGotoLoginAlert','LIVESHARE_TERMINATE','parseChangesetToProtocol','uni.network.url-service','_handleHover','deserializeRangeWithSheet','Rect','_hovered','isTransformMutationsWithChangesetSuccess','baseRev','values','[CollaborationUndoRedoService]','_onConnectionOpen','_getLoginPath','_handleJoinEvent','onRemoteChangeset','init','COLLAB_SUBMIT_CHANGESET_URL','list','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','ranges','image/gif','actions','_revisionService','some','m1Prime','unitId','_getUploadFileURL','_sheetSkeletonManagerService','getRoom','_setupSubUnitSync','getSheetObject','method','_incrementRevisionNumber','HEARTBEAT_INTERVAL_KEY','ImageSourceType','/object','history','addImageSourceCache','SnapshotService','_getSaveTimeout','[CollaborationEntity]','reverse','UUID','catch','2856aVobzh','conflict.title','path','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_transformRemoteChangesetByIMECache','_univerInstanceService','_updateURLWithCurrentState','purple300','_scheduleTimestamp','snapshot','_initCommandExecutedListener','_anchor','RegularPolygon','MUTATION','[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.','TOO_MANY_REQUESTS','defIds','min','_clearLocalCache','joinEvent','column','on-line-single_clip0_910_349','getUnitOnRev','collabStatus.notCollab','getCurrentSelections','fetchMissingChangesets','unknown','IBeforeCloseService','_waitForHeartbeatResponse','sheetId','LIVESHARE_FETCH_OPERATIONS','OffLineSingle','offline','red300','onTransformRemoteChangesetByIMECache','_scene','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','IPermissionService','&source=','getMemberID','ALREADY_EXISTS','requireSession','onCommentUpdate','UniverRpc','registerRenderModule','_getCtorByUniverType','_onConnectionFailed','div','synced','permission.title','Optional','_HTTPService','getRelativeToViewportCoord','_memberService','saveImage','UniverIcon','_messageService','collab-text-range-','enableOfflineEditing','disableLocalCache','IRenderManagerService','DocStateChangeManagerService','getVpScrollXYInfoByPosToVp','ThresholdInterceptorFactory','urlChange$','colorChannel1','getUnitStatus$','onlyLocal','LifecycleStages','[CollaborationState]:\x20apply\x20error!','subunit','_onUserLeave','AuthzIoHttpService','IContextService','UNIVER_SLIDE','_cursorShapes','UniverSheets','width','awaitingChangeset','ILogService','sessionStatus','Undefined','_scheduleReconnection','transformUndoRedo','updateCursorEvent','loadSheet','gold400','/universer-api/file/{fileID}/sign-url','attrs','UPDATE_PERMISSION_OBJ','ICollaborationSocketService','COMPRESS_MUTATION_SEND','pauseCollaboration','isTransformMutationFailure','getActiveSheet','connectInjector','_clearOtherTimers','connection\x20error','Starting','_disabled','cursorInfo$','getFocusedUnit','LocaleService','beginPath','_shapes','getParam','onStateChange','@univerjs/network','debug','collabStatus.offline','_updateState','drawWith','_hover','univer-online','getSheetId','DesktopCollaborationStatusDisplayController','UniverCollaborationClient','UniverNetwork','throttleTime','_session','getCollabEntity$','_awaitingChangeset','_members','UniverDrawing','newCsEvent','round','1em','_pendingMutations','_transformUndoredo','symbol','concatMap','HEARTBEAT','post','_getSignURL','current','url(#$1','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getViewport','saveChangeset','switchMap','reduce','_isPermissionRej','[DataLoaderController]','registerComponent','_rescheduleHeartbeatEvent','univer-online-status-icon','0\x200\x2016\x2016','isActive','_clearRedo','handleMoveRange','message$','_localeService','YUUMI_URL_COL_OUT_OF_RANGE','SetSelectionsOperation','[SyncedState]:\x20received\x20rejection.','textRanges','lineTo','_sendHeartbeat','_change$','activeSheet$','takeUntil','_singleActiveUnitService','_updateLocalCache','object','_collaborationPaused','_render','EffectRefRangId','_localCacheService','UnitSnapshot','_decreaseWaiting','getUnitType','listRoles','INVALID_ARGUMENT','extend','socket\x20close','_urlService','_getScale','commentUpdate$','deleteCollaborator','JSONX','_toggleOnline','ICommandService','ITransformService','getCurrentUser','PERMISSION_REJ','not_collab','_backgroundColor','CONNECTOR_DATA_TOO_LARGE','@univerjs/core','getResourcesRequest','_scheduleHeartbeat','contains','_waitCount','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_collabCursorController','_type','status','liveShareOperation','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','LOGIN_URL_KEY','\x0aAfter:\x20','distinctUntilChanged','registerBeforeClose','_colorIndex','fromEventSubject','_sendingTimer','dispose$','ImageUploadStatusType','_lockTransition','collaboration.single-unit.warning','image/jpeg','file','fromCollab','push','ERROR_EXCEED_SIZE','INotificationService','update','8500fCyxep','BuiltInUIPart','univer-pro.collaboration-client.single-active-unit-service','addObject','subscribeEvent','AWAITING_WITH_PENDING','state','_entityInit$','selections','_commandService','Error','/-/object/list','HEADER_MENU','then','APPLY_PERMISSION_DENIED','add','APPLY_REJECT','createElement','useRef','selection','Plugin','focused$','_hideTimer','idSuffix','_getUndoStack','font','IDLE','fillStyle','collabStatus.conflict','removeParam','createSocket','_onLocalMutation','AUTHZ_URL_KEY','split','_transformUndoRedoStack','OnLifecycle','getColor','UniverUi','HEARTBEAT_INTERVAL','rxjs','json','_getRedoStack','/universer-api/oidc/authpage','[CollaborationSessionService]','_executeRemoteChangeset','_sheetTransformSelectionsService','createIdentifier','confirm','@univerjs/engine-formula','COMPRESS_MUTATION_APPLY','RETRY_CONNECTING_INTERVAL','next','open$','_registerDependencies','USERS_ENTER','_httpService','APPLY_REVISION_CONFILICT','cmd','HttpExport','getUndoRedoMutationParamsCache','row','verdancy600','univer-online-status','text','_docSyncEditingCollabCursorService','_applyRemoteChangeset','_registerRenderDependencies','788358FHKemo','exports','getOwnPropertyDescriptor','show','_docStateChangeManagerService','_state','url(#on-line-single_clip0_910_349)','hide','transformSelections','_cursorInfo$','_updateLocalCursor','transformRemoteChangeset','b64DecodeUnicode','_socket','getSheetBlock','YUUMI_UNABLE_LOAD_URL','_color','pipe','onSyncEditingCollabCursor','awaiting_with_pending','_setupBeforeClosingHandler','[CollaborationSession]','max','startsWith','univer-pro.collaboration-client-socket-service','[UniverCollaborationClientPlugin]','unit-cache-','endRow','transformMutationsWithChangeset','findNodePositionByCharIndex','InsertRangeMoveDownCommandId','changesets','JOIN','ThemeService','_unitID','UniverCollaborationClientPlugin','_cursor','UNRECOGNIZED','SheetCollaborationEntity','mutations','memberID','mapTo','/universer-api/authz','appendMutation','collabStatus.synced','createCollaborator','_heartbeatTimer','univer-offline','NOT_COLLAB','NEW_CHANGESETS','_config','ISnapshotServerService','UnitEmbedded','status$','collaboratorID','/rev/','XHRHTTPImplementation','BehaviorSubject','InsertColCommandId','IRemoteInstanceService','tag','function','location','_entities','defs','MSG_FOR_ERROR','_cursors','CHANGESET_ACK','getUnitId','NO_OTHER_CLIENTS_EDITING','length','use','_undoRedoService','hovered','Unknown\x20user','YUUMI_SUBSCRIPTION_NOT_FOUND','c2Prime','IUIPartsService','LEAVE','CollaborationSocketService','_socketService','onRemoteRej','restore','updateMember','reject','getCellPositionByOffset','_id','_getAPIPrefixPath','IImageIoService','sheets','M0\x200H16V16H0z','string','toDisposable','isArray','_substituteRedoStack','LIVESHARE_NEW_HOST','leaveEvent','UNIVER_SHEET','CommandType','RemoveColCommandId','subUnitId','getSheetBySheetId','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_onRemoteChangeset','toggleOnline','range','replaceTextRanges','image/png','closeSession','getCoordByCell','_getMergeRange','_removeRoom','online','Warning','getItem','_onUserJoin','_initCloseConn','find','engine','has','_scheduleClearOtherTimer','put','sessionStatus$','amd','YUUMI_RATE_OVER_LIMIT','IAuthzIoService','_saveCache','url','readAsDataURL','measureText','getDocRanges','triggerDblclick','POST','objects','SheetPermissionInitController','[PendingState]:\x20received\x20acknowledgement.','asObservable','/allowed','save\x20fail\x20reason\x20is\x20','conflict','csAckEvent','getUnhiddenWorksheets','_clearUndo','onMouseMove','searchParams','ERROR_IMAGE_TYPE','moveTo','unitID','roomInfos','_uiPartsService','ERROR_IMAGE','onRemoteAck','params','SetDocZoomRatioOperation','_collabSessionService','subscribe','unload','bottom','setParam','UNKNOWN_CODE','UNIVER_COLLABORATION_CLIENT_PLUGIN','UNIVER_DOC','localeService','getWorkbookSelections','378955nHZsSQ','_createInitialState','HEARTBEAT_TIMEOUT','UNKNOWN_CMD','_updateCollabCursors','disposeWithMe','SheetSkeletonManagerService','apply','_joinRoom','ImageIoService','handleDeleteRangeMoveLeft','image/bmp','handleIRemoveCol','7518960MJdFbN','_disableEditing','save','#fff','934493XTecdH','type','66YprRmy','currentTheme$','_commentService','/unit/','1443LgZnrJ','IUniverInstanceService','[PendingState]:\x20received\x20rejection.','univerjs-icon\x20univerjs-icon-','_context','entries','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','CHANGESET_REVISION_CONFILICT','session.collaboration-timeout','pushState','createInstance','textEncoder','fillRule','getTypeOfUnitAdded$','Univer','joinRsp','Disposable','_substituteUndoStack','...','lodash','UniverEngineRender','_toggleOffline','setItem','_socketMessageSubscription','OTHER_CLIENTS_EDITING','SUCCUSS','FileId','toString','_transformPreviousActiveRange','SUBMIT_CHANGESET','NOT_FOUND','withCredentials','editing\x20status\x20changed\x20to','allowed','_unitOnClients','deserializeToCombResponse','handleDeleteRangeMoveUp','top','RETRY_CONNECTING_MAX_COUNT','fetchThroughInterceptors','onPointerLeave$','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','LICENSE_MAX_UNITS_EXCEEDED','session.will-retry','InsertRangeMoveRightCommandId','UniverInstanceType','HTTPRequest','collaboration-client.offline-data-not-saved','onCommandExecuted','_createSocket','exhaustSavingTask','url(#off-line-single_clip0_910_343)','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_anchorDot','_transformService','_submitChangeset','UNIVER_UNKNOWN','incrementRevForDocument','_queuedRemoteChangesets','CollaborationStatusDisplay','_removeCollabCursors','propertyIsEnumerable','get','/-/object/-/batch_allowed','clsx','7432gHrOYB','_refreshCollabCursors','_draw','height','children','storage','FromArray','_exhaustRemoteChangesetQueue','popstate','INTERNAL_ERROR','RxDisposable','encodeURIComponent','clearTimeout','_initModules','SNAPSHOT_URL_KEY','_onRemoteRejected','RECV','_redoStacks','fetch_missing','Workbook','getTypeOfUnitDisposed$','_removeClearOtherTimer','concat','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_beforeCloseService','_imageSourceCache','getMember','translate(.97)','color','_transformIMECache','FETCH_MISSING','_onCursorUpdate','LocalCacheService','cursorInfo','getSkeleton','RefRangeService','data','_transformStack','CollaborationController','_saveTaskMap','UPDATE_CURSOR','_compressMutationService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','revision','transformMutation','RevisionService','UniverDesign','_transitionLocked','UNDEFINED','_tryEnsureSocket','_getCurrentRevision','_handler','operators','_sessionStatus$','arc','onlineStatus','_injector','replaceState','_unitStatus','_getSnapshotAPIPrefix','_replaceFileID','_retryConnectingTimer','_initMergeInterceptor','react','saveSnapshot','_syncEditingCollabCursorService','pluginName','collabCursorState$','isValidRectRange','socketService','delay','routeKey','_transformSelections','WorkbookEditablePermission','_online','socket\x20open.','isTransformChangesetsSuccess','FAIL','_clearTimeoutTimer','/collaborator','_labelPosition','_getSendChangesetTimeout','getCollabEntity','\x20to\x20','NodePositionConvertToRectRange','addEventListener','doc.mutation.rich-text-editing','CommentService','UNAUTHENTICATED','call','_updateSubUnitFromURLParams','_createInitialStateImpl','getOffsetConfig','_notificationService','_undoStacks','HELLO','prototype','parseProtocolChangeset','refreshPermission','collaborators','set','Subject','transformStack\x20failed!','DependentOn','IURLService','name','PSEUDO_FETCH_MISSING_RESULT','all','_onRemoteACK','_socket$','SheetsSelectionsService','send','[CollaborationSessionService]:\x20socket\x20error','isPermissionRej','off-line-single_clip0_910_343','_docTransformSelectionsService','LIVESHARE_OPERATION','delete','collaMsg','_loadDoc','/object/','_roomMembers','flatMap','roomMembers','_onConflict','session','?size=','lodash/debounce','9691sDsMXj','/universer-api/snapshot','CollaborationEvent','batchAllowed','0\x200\x2017\x2016','originalMeta','SetWorksheetActivateCommand','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','VIEWPORT_KEY','IUndoRedoService','RichTextEditingMutation','generateRandomId','_ensureSubject','_renderManagerService','_snapshotServerService','replace','fromEvent','executeCommand','startColumn','useObservable','_eventUnsubscribe','onPointerEnter$','resourceIDs','_handleEvent','action','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','xlink:href','ONLINE','_cachedData','image/jpg','&to=','Shape','DeleteRangeMoveLeftCommandId','VIEW_MAIN','SessionStatus','@univerjs/rpc','makeDirty','OFFLINE','UniverEngineFormula','getImageSourceCache','IMessageService','MergeInterceptorFactory','_updateStatus','SNAPSHOT_SERVER_URL_KEY','registerHTTPInterceptor','_send','take','assignAColorForMemberID','_configService','state$','_collaborationTimeoutTimer','error$','getRangePointData','Tools','dispose','result','resend','_initUnitPermissionChange','isTransformMutationsWithChangesetFailure','[OfflineState]:\x20received\x20changeset.','resolve','_onRecvEvent','deepClone','removeMember','_lastPointer','_onJoinRoomEvent','AWAITING','NodePositionConvertToCursor','requestParams','setActiveRange','_clearScheduledTask','[OfflineState]:\x20received\x20acknowledgement.','onPointerMove$','_colorAssignService'];_0x35a8=function(){return _0x69e97b;};return _0x35a8();}function _0x41fb(_0x38ffd3,_0x30735d){const _0x35a872=_0x35a8();return _0x41fb=function(_0x41fb05,_0x13f88a){_0x41fb05=_0x41fb05-0x1f1;let _0x1fb893=_0x35a872[_0x41fb05];return _0x1fb893;},_0x41fb(_0x38ffd3,_0x30735d);}(function(_0x42b2d1,_0x341e2f){const _0x2d7596=_0x41fb,_0x25d506=_0x42b2d1();while(!![]){try{const _0x373a15=-parseInt(_0x2d7596(0x375))/0x1+-parseInt(_0x2d7596(0x2c0))/0x2+-parseInt(_0x2d7596(0x37b))/0x3*(-parseInt(_0x2d7596(0x3bc))/0x4)+-parseInt(_0x2d7596(0x364))/0x5*(parseInt(_0x2d7596(0x377))/0x6)+-parseInt(_0x2d7596(0x5b2))/0x7*(-parseInt(_0x2d7596(0x4cc))/0x8)+parseInt(_0x2d7596(0x371))/0x9+-parseInt(_0x2d7596(0x27d))/0xa*(-parseInt(_0x2d7596(0x43c))/0xb);if(_0x373a15===_0x341e2f)break;else _0x25d506['push'](_0x25d506['shift']());}catch(_0x4389be){_0x25d506['push'](_0x25d506['shift']());}}}(_0x35a8,0x729b7),function(_0x3550a3,_0x1c5195){const _0x1168f7=_0x41fb;typeof exports==_0x1168f7(0x247)&&typeof module<'u'?_0x1c5195(exports,require('@univerjs/core'),require('@univerjs/sheets'),require(_0x1168f7(0x4b9)),require(_0x1168f7(0x4e6)),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators'),require(_0x1168f7(0x4d7)),require('@univerjs/network'),require('@univerjs/drawing'),require('@univerjs/engine-render'),require(_0x1168f7(0x2ad)),require(_0x1168f7(0x43b)),require('@univerjs/sheets-ui'),require(_0x1168f7(0x3fb)),require(_0x1168f7(0x3bb)),require('@univerjs/rpc')):typeof define=='function'&&define[_0x1168f7(0x33b)]?define([_0x1168f7(0x2c1),_0x1168f7(0x260),_0x1168f7(0x4fe),_0x1168f7(0x4b9),'@univerjs/ui',_0x1168f7(0x4c1),_0x1168f7(0x2a4),'rxjs/operators',_0x1168f7(0x4d7),_0x1168f7(0x20f),_0x1168f7(0x4db),'@univerjs/engine-render','@univerjs/engine-formula',_0x1168f7(0x43b),_0x1168f7(0x4d8),'react',_0x1168f7(0x3bb),_0x1168f7(0x45f)],_0x1c5195):(_0x3550a3=typeof globalThis<'u'?globalThis:_0x3550a3||self,_0x1c5195(_0x3550a3[_0x1168f7(0x218)]={},_0x3550a3['UniverCore'],_0x3550a3[_0x1168f7(0x5fe)],_0x3550a3[_0x1168f7(0x3ea)],_0x3550a3[_0x1168f7(0x2a2)],_0x3550a3[_0x1168f7(0x4f2)],_0x3550a3[_0x1168f7(0x2a4)],_0x3550a3[_0x1168f7(0x2a4)][_0x1168f7(0x3f0)],_0x3550a3['UniverDocs'],_0x3550a3[_0x1168f7(0x219)],_0x3550a3[_0x1168f7(0x21f)],_0x3550a3[_0x1168f7(0x38f)],_0x3550a3[_0x1168f7(0x462)],_0x3550a3[_0x1168f7(0x38e)][_0x1168f7(0x580)],_0x3550a3['UniverSheetsUi'],_0x3550a3['React'],_0x3550a3[_0x1168f7(0x3bb)],_0x3550a3[_0x1168f7(0x5dd)]));}(this,function(_0x2c3354,_0x2015b3,_0x3d1b6a,_0x54ac63,_0x44b766,_0x106736,_0x345abe,_0x2cc613,_0xbcf55e,_0x485f8b,_0x17c816,_0x572a63,_0x3096c0,_0x533449,_0x467ed8,_0x100763,_0x55b2c5,_0x43c42f){'use strict';const _0x3b3960=_0x41fb;var _0x2ef5ef=Object['defineProperty'],_0x2777ef=(_0x3a2c59,_0x13e557,_0x4639e7)=>_0x13e557 in _0x3a2c59?_0x2ef5ef(_0x3a2c59,_0x13e557,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4639e7}):_0x3a2c59[_0x13e557]=_0x4639e7,_0x385cfe=(_0x5722a4,_0x1ac53a,_0x314025)=>_0x2777ef(_0x5722a4,typeof _0x1ac53a!=_0x3b3960(0x225)?_0x1ac53a+'':_0x1ac53a,_0x314025);const _0x2c5950=_0x3b3960(0x467),_0x58a23f=_0x3b3960(0x43d),_0x5648aa=_0x3b3960(0x3ca),_0x5cb8bb=_0x3b3960(0x4a9),_0x332c44='COLLAB_WEB_SOCKET_URL',_0x55e528=_0x3b3960(0x487),_0x879d7e=_0x3b3960(0x2a3),_0x816b9c=_0x3b3960(0x366),_0x11fd51=_0x3b3960(0x2af),_0xb1acb=_0x3b3960(0x3a1),_0x3f1ca0='LOCAL_CACHE_INTERVAL',_0x3c7827=_0x3b3960(0x596),_0x38f1bf='/universer-api/comb',_0x4f5e36=_0x3b3960(0x26b),_0x1df3cc=_0x3b3960(0x2a7);var _0x48be91=(_0x5d546e=>(_0x5d546e[_0x5d546e[_0x3b3960(0x3ec)]=0x0]='UNDEFINED',_0x5d546e[_0x5d546e['OK']=0x1]='OK',_0x5d546e[_0x5d546e[_0x3b3960(0x3c5)]=0x2]=_0x3b3960(0x3c5),_0x5d546e[_0x5d546e['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x5d546e[_0x5d546e[_0x3b3960(0x399)]=0x4]=_0x3b3960(0x399),_0x5d546e[_0x5d546e[_0x3b3960(0x414)]=0x5]=_0x3b3960(0x414),_0x5d546e[_0x5d546e[_0x3b3960(0x5da)]=0x6]='ALREADY_EXISTS',_0x5d546e[_0x5d546e[_0x3b3960(0x250)]=0x7]='INVALID_ARGUMENT',_0x5d546e[_0x5d546e[_0x3b3960(0x5c1)]=0x8]=_0x3b3960(0x5c1),_0x5d546e[_0x5d546e[_0x3b3960(0x54e)]=0x9]=_0x3b3960(0x54e),_0x5d546e[_0x5d546e[_0x3b3960(0x382)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x5d546e[_0x5d546e['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x3b3960(0x54f),_0x5d546e[_0x5d546e[_0x3b3960(0x4ea)]=0x1772]=_0x3b3960(0x4ea),_0x5d546e[_0x5d546e['APPLY_REJECT']=0x1b59]=_0x3b3960(0x28d),_0x5d546e[_0x5d546e['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x5d546e[_0x5d546e[_0x3b3960(0x2b5)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5d546e[_0x5d546e[_0x3b3960(0x28b)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x5d546e[_0x5d546e['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3b3960(0x25f),_0x5d546e[_0x5d546e['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3b3960(0x3a5),_0x5d546e[_0x5d546e[_0x3b3960(0x22c)]=0x232a]=_0x3b3960(0x22c),_0x5d546e[_0x5d546e[_0x3b3960(0x4bf)]=0x232b]=_0x3b3960(0x4bf),_0x5d546e[_0x5d546e[_0x3b3960(0x4cb)]=0x232c]=_0x3b3960(0x4cb),_0x5d546e[_0x5d546e['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x5d546e[_0x5d546e[_0x3b3960(0x2cf)]=0x2711]=_0x3b3960(0x2cf),_0x5d546e[_0x5d546e[_0x3b3960(0x23c)]=0x2712]=_0x3b3960(0x23c),_0x5d546e[_0x5d546e[_0x3b3960(0x33c)]=0x2713]=_0x3b3960(0x33c),_0x5d546e[_0x5d546e[_0x3b3960(0x30b)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x5d546e[_0x5d546e[_0x3b3960(0x2e5)]=-0x1]=_0x3b3960(0x2e5),_0x5d546e))(_0x48be91||{}),_0x32a37d=(_0x3d5e51=>(_0x3d5e51[_0x3d5e51['UNIVER_UNKNOWN']=0x0]=_0x3b3960(0x3b3),_0x3d5e51[_0x3d5e51['UNIVER_DOC']=0x1]=_0x3b3960(0x361),_0x3d5e51[_0x3d5e51['UNIVER_SHEET']=0x2]=_0x3b3960(0x321),_0x3d5e51[_0x3d5e51[_0x3b3960(0x5fc)]=0x3]=_0x3b3960(0x5fc),_0x3d5e51[_0x3d5e51['UNIVER_PROJECT']=0x4]=_0x3b3960(0x4f8),_0x3d5e51[_0x3d5e51[_0x3b3960(0x2e5)]=-0x1]=_0x3b3960(0x2e5),_0x3d5e51))(_0x32a37d||{}),_0x52c13b=(_0x1a8c63=>(_0x1a8c63[_0x1a8c63[_0x3b3960(0x367)]=0x0]='UNKNOWN_CMD',_0x1a8c63[_0x1a8c63['HELLO']=0x1]=_0x3b3960(0x41b),_0x1a8c63[_0x1a8c63[_0x3b3960(0x2e0)]=0x2]='JOIN',_0x1a8c63[_0x1a8c63['LEAVE']=0x3]=_0x3b3960(0x30e),_0x1a8c63[_0x1a8c63['INGEST']=0x4]=_0x3b3960(0x495),_0x1a8c63[_0x1a8c63[_0x3b3960(0x227)]=0x5]=_0x3b3960(0x227),_0x1a8c63[_0x1a8c63[_0x3b3960(0x3cc)]=0x6]='RECV',_0x1a8c63[_0x1a8c63['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x1a8c63))(_0x52c13b||{}),_0x1a4aa5=(_0xc9ed68=>(_0xc9ed68[_0xc9ed68[_0x3b3960(0x35f)]=0x0]=_0x3b3960(0x35f),_0xc9ed68[_0xc9ed68['OK']=0x1]='OK',_0xc9ed68[_0xc9ed68[_0x3b3960(0x409)]=0x2]=_0x3b3960(0x409),_0xc9ed68[_0xc9ed68[_0x3b3960(0x2e5)]=-0x1]='UNRECOGNIZED',_0xc9ed68))(_0x1a4aa5||{}),_0x5d29eb=(_0x243b10=>(_0x243b10[_0x243b10[_0x3b3960(0x1f5)]=0x0]='Undefined',_0x243b10[_0x243b10[_0x3b3960(0x55e)]=0x1]=_0x3b3960(0x55e),_0x243b10[_0x243b10[_0x3b3960(0x2b7)]=0x2]=_0x3b3960(0x2b7),_0x243b10[_0x243b10[_0x3b3960(0x2f4)]=0x3]=_0x3b3960(0x2f4),_0x243b10[_0x243b10[_0x3b3960(0x24c)]=0x4]=_0x3b3960(0x24c),_0x243b10[_0x243b10['UNRECOGNIZED']=-0x1]=_0x3b3960(0x2e5),_0x243b10))(_0x5d29eb||{}),_0xf30dce=Object[_0x3b3960(0x57c)],_0x421ec5=Object[_0x3b3960(0x2c2)],_0x33b66c=(_0x2a233c,_0x53b85b,_0x371f60,_0x24502c)=>{const _0xdffae1=_0x3b3960;for(var _0x37cade=_0x24502c>0x1?void 0x0:_0x24502c?_0x421ec5(_0x53b85b,_0x371f60):_0x53b85b,_0x23cdb9=_0x2a233c[_0xdffae1(0x306)]-0x1,_0xdc36fd;_0x23cdb9>=0x0;_0x23cdb9--)(_0xdc36fd=_0x2a233c[_0x23cdb9])&&(_0x37cade=(_0x24502c?_0xdc36fd(_0x53b85b,_0x371f60,_0x37cade):_0xdc36fd(_0x37cade))||_0x37cade);return _0x24502c&&_0x37cade&&_0xf30dce(_0x53b85b,_0x371f60,_0x37cade),_0x37cade;},_0x1a1067=(_0x972612,_0x25fe23)=>(_0x5a56da,_0x557c6b)=>_0x25fe23(_0x5a56da,_0x557c6b,_0x972612);let _0x25752c=class extends _0x2015b3[_0x3b3960(0x38b)]{constructor(_0x2afb1f,_0x2c3f5f){const _0xc9ab77=_0x3b3960;super(),_0x385cfe(this,'_roomMembers',new Map()),(this[_0xc9ab77(0x5b7)]=_0x2afb1f,this[_0xc9ab77(0x581)]=_0x2c3f5f,this[_0xc9ab77(0x369)](_0x2015b3[_0xc9ab77(0x31c)](_0x345abe[_0xc9ab77(0x4c8)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x2015b3[_0xc9ab77(0x3a8)][_0xc9ab77(0x321)])[_0xc9ab77(0x2d1)](_0x2cc613[_0xc9ab77(0x522)](_0x349564=>_0x349564['getUnitId']())),this[_0xc9ab77(0x5b7)][_0xc9ab77(0x3d0)](_0x2015b3[_0xc9ab77(0x3a8)][_0xc9ab77(0x361)])[_0xc9ab77(0x2d1)](_0x2cc613[_0xc9ab77(0x522)](_0x3ae045=>_0x3ae045[_0xc9ab77(0x304)]())),this[_0xc9ab77(0x5b7)][_0xc9ab77(0x3d0)](_0x2015b3[_0xc9ab77(0x3a8)][_0xc9ab77(0x5fc)])[_0xc9ab77(0x2d1)](_0x2cc613['map'](_0x568993=>_0x568993['getUnitId']())))[_0xc9ab77(0x35b)](_0x4fa9b4=>this[_0xc9ab77(0x32f)](_0x4fa9b4)))));}[_0x3b3960(0x515)](_0x21271b){const _0x561ccc=_0x3b3960;this['_userManagerService'][_0x561ccc(0x515)](_0x21271b);}[_0x3b3960(0x25b)](){const _0x4b4817=_0x3b3960;return this[_0x4b4817(0x581)][_0x4b4817(0x25b)]();}[_0x3b3960(0x313)](_0x250e63,_0x3cb663){const _0x2317c8=_0x3b3960;let _0x3daf4b=this[_0x2317c8(0x435)][_0x2317c8(0x3b9)](_0x250e63);_0x3daf4b||(_0x3daf4b=new _0x23b80c(),this[_0x2317c8(0x435)][_0x2317c8(0x420)](_0x250e63,_0x3daf4b)),_0x3daf4b[_0x2317c8(0x313)](_0x3cb663);}[_0x3b3960(0x47b)](_0x2ddff5,_0x4bc053){const _0xae9904=_0x3b3960,_0x169280=this[_0xae9904(0x435)][_0xae9904(0x3b9)](_0x2ddff5);_0x169280&&_0x169280[_0xae9904(0x47b)](_0x4bc053);}[_0x3b3960(0x5a2)](_0x9cf32d){const _0x44e0b4=_0x3b3960;return this[_0x44e0b4(0x435)][_0x44e0b4(0x3b9)](_0x9cf32d);}[_0x3b3960(0x3d6)](_0x955c6b,_0x51daee){const _0x18a4f5=_0x3b3960,_0xd646f6=this[_0x18a4f5(0x435)][_0x18a4f5(0x3b9)](_0x955c6b);if(_0xd646f6)return _0xd646f6[_0x18a4f5(0x3d6)](_0x51daee);}[_0x3b3960(0x32f)](_0xb84a40){const _0x39e9d0=_0x3b3960,_0x53cbd1=this[_0x39e9d0(0x435)][_0x39e9d0(0x3b9)](_0xb84a40);_0x53cbd1&&(_0x53cbd1[_0x39e9d0(0x472)](),this[_0x39e9d0(0x435)]['delete'](_0xb84a40));}[_0x3b3960(0x472)](){const _0x567e65=_0x3b3960;this[_0x567e65(0x435)][_0x567e65(0x4d1)](_0x5988e2=>_0x5988e2[_0x567e65(0x472)]()),this[_0x567e65(0x435)]['clear']();}};_0x25752c=_0x33b66c([_0x1a1067(0x0,_0x2015b3[_0x3b3960(0x37c)]),_0x1a1067(0x1,_0x2015b3['Inject'](_0x2015b3['UserManagerService']))],_0x25752c);class _0x23b80c extends _0x2015b3[_0x3b3960(0x38b)]{constructor(){const _0xe0fe29=_0x3b3960;super(...arguments),_0x385cfe(this,_0xe0fe29(0x21e),new Map());}['dispose'](){const _0x527e04=_0x3b3960;this[_0x527e04(0x21e)][_0x527e04(0x577)]();}[_0x3b3960(0x313)](_0x4ad660){const _0x10867a=_0x3b3960;this[_0x10867a(0x21e)][_0x10867a(0x420)](_0x4ad660[_0x10867a(0x2e8)],_0x4ad660);}[_0x3b3960(0x47b)](_0x36e19a){const _0x172c77=_0x3b3960;this['_members'][_0x172c77(0x431)](_0x36e19a);}['getMember'](_0x35361b){const _0x34e436=_0x3b3960;return this[_0x34e436(0x21e)][_0x34e436(0x3b9)](_0x35361b);}}function _0x5040c3(_0x1dc420){const _0x53561a=_0x3b3960;var _0x429b64,_0x230381,_0x4f1581,_0xee867;const _0x20a9b3=_0x1dc420[_0x53561a(0x3e0)],_0x311d42=JSON[_0x53561a(0x488)](_0x20a9b3);switch(_0x311d42[_0x53561a(0x2b6)]){case _0x52c13b[_0x53561a(0x227)]:case _0x52c13b[_0x53561a(0x41b)]:{const _0x18781d=_0x311d42['infoRsp'];return{..._0x311d42,'data':_0x18781d,'cmd':_0x311d42[_0x53561a(0x2b6)]};}case _0x52c13b[_0x53561a(0x2e0)]:{const _0x520380=_0x311d42[_0x53561a(0x38a)];return{..._0x311d42,'data':_0x520380,'cmd':_0x311d42['cmd']};}case _0x52c13b[_0x53561a(0x3cc)]:{const _0x3f836a=_0x311d42[_0x53561a(0x432)];switch(_0x3f836a['eventID']){case _0x106736[_0x53561a(0x43e)][_0x53561a(0x25c)]:return{..._0x311d42,'data':{..._0x3f836a,'data':(_0x429b64=_0x3f836a[_0x53561a(0x509)])==null?void 0x0:_0x429b64['cs']},'cmd':_0x311d42['cmd']};case _0x106736['CollaborationEvent'][_0x53561a(0x303)]:return{..._0x311d42,'data':{..._0x3f836a,'data':(_0x230381=_0x3f836a[_0x53561a(0x34c)])==null?void 0x0:_0x230381['cs']},'cmd':_0x311d42['cmd']};case _0x106736[_0x53561a(0x43e)][_0x53561a(0x2f1)]:return{..._0x311d42,'data':{..._0x3f836a,'data':(_0x4f1581=_0x3f836a[_0x53561a(0x220)])==null?void 0x0:_0x4f1581['cs']},'cmd':_0x311d42['cmd']};case _0x106736[_0x53561a(0x43e)][_0x53561a(0x4f9)]:return{..._0x311d42,'data':{..._0x3f836a,'data':(_0xee867=_0x3f836a[_0x53561a(0x56f)])==null?void 0x0:_0xee867['cs']},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736[_0x53561a(0x43e)][_0x53561a(0x3e4)]:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x1f8)]},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736['CollaborationEvent'][_0x53561a(0x2b3)]:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x5c5)]},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736[_0x53561a(0x43e)]['USERS_LEAVE']:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x320)]},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736[_0x53561a(0x43e)][_0x53561a(0x31f)]:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x576)]},'cmd':_0x311d42['cmd']};case _0x106736[_0x53561a(0x43e)]['LIVESHARE_FETCH_OPERATIONS']:case _0x106736[_0x53561a(0x43e)][_0x53561a(0x430)]:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x269)]},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736[_0x53561a(0x43e)]['LIVESHARE_TERMINATE']:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x576)]},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736[_0x53561a(0x43e)][_0x53561a(0x301)]:return{..._0x311d42,'data':_0x3f836a,'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736[_0x53561a(0x43e)]['COMMENT_UPDATE']:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x52f)]},'cmd':_0x311d42['cmd']};case _0x106736[_0x53561a(0x43e)]['UPDATE_PERMISSION_OBJ']:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a[_0x53561a(0x52d)]},'cmd':_0x311d42[_0x53561a(0x2b6)]};case _0x106736['CollaborationEvent'][_0x53561a(0x51f)]:return{..._0x311d42,'data':{..._0x3f836a,'data':_0x3f836a['shouldCloseConn']},'cmd':_0x311d42['cmd']};default:return _0x311d42;}}default:return _0x311d42;}}function _0x5a449f(_0x259d17){const _0x401036=_0x3b3960;switch(_0x259d17['cmd']){case _0x52c13b[_0x401036(0x227)]:case _0x52c13b[_0x401036(0x41b)]:return JSON[_0x401036(0x4b3)]({'cmd':_0x259d17[_0x401036(0x2b6)],'routeKey':_0x259d17[_0x401036(0x403)]});case _0x52c13b['INGEST']:{let _0x48c038;switch(_0x259d17[_0x401036(0x3e0)][_0x401036(0x4aa)]){case _0x106736[_0x401036(0x43e)][_0x401036(0x3e4)]:{_0x48c038={'eventID':_0x106736['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x259d17['data'][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)]['USERS_LEAVE']:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x519)],'leaveEvent':_0x259d17[_0x401036(0x3e0)][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)][_0x401036(0x2b3)]:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x2b3)],'joinEvent':_0x259d17[_0x401036(0x3e0)][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)]['LIVESHARE_NEW_HOST']:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x31f)],'liveShareNewHost':_0x259d17[_0x401036(0x3e0)][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)][_0x401036(0x430)]:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x430)],'liveShareOperation':_0x259d17[_0x401036(0x3e0)][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)][_0x401036(0x586)]:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x586)],'liveShareTerminate':_0x259d17['data'][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)][_0x401036(0x4bd)]:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x4bd)],'liveShareRequestHost':_0x259d17[_0x401036(0x3e0)][_0x401036(0x3e0)]};break;}case _0x106736[_0x401036(0x43e)][_0x401036(0x5d0)]:{_0x48c038={'eventID':_0x106736[_0x401036(0x43e)][_0x401036(0x5d0)]};break;}default:_0x48c038={'eventID':_0x259d17[_0x401036(0x3e0)][_0x401036(0x4aa)]};}return JSON[_0x401036(0x4b3)]({'cmd':_0x259d17['cmd'],'routeKey':_0x259d17['routeKey'],'collaMsg':_0x48c038});}case _0x52c13b['JOIN']:return JSON[_0x401036(0x4b3)]({'cmd':_0x259d17['cmd'],'routeKey':_0x259d17[_0x401036(0x403)],'joinReq':_0x259d17[_0x401036(0x3e0)]});case _0x52c13b[_0x401036(0x30e)]:return JSON[_0x401036(0x4b3)]({'cmd':_0x259d17[_0x401036(0x2b6)],'routeKey':_0x259d17[_0x401036(0x403)],'leaveReq':_0x259d17[_0x401036(0x3e0)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var _0xef4f6b=Object['defineProperty'],_0x12515a=Object[_0x3b3960(0x2c2)],_0x11da3d=(_0x64a6db,_0x32f11d,_0x49d203,_0xe38ad7)=>{const _0x1d5cda=_0x3b3960;for(var _0x1cea5e=_0xe38ad7>0x1?void 0x0:_0xe38ad7?_0x12515a(_0x32f11d,_0x49d203):_0x32f11d,_0x10eba4=_0x64a6db[_0x1d5cda(0x306)]-0x1,_0x4df395;_0x10eba4>=0x0;_0x10eba4--)(_0x4df395=_0x64a6db[_0x10eba4])&&(_0x1cea5e=(_0xe38ad7?_0x4df395(_0x32f11d,_0x49d203,_0x1cea5e):_0x4df395(_0x1cea5e))||_0x1cea5e);return _0xe38ad7&&_0x1cea5e&&_0xef4f6b(_0x32f11d,_0x49d203,_0x1cea5e),_0x1cea5e;},_0x4eb1f1=(_0x732899,_0x29cdfc)=>(_0x3c69b0,_0x3ad534)=>_0x29cdfc(_0x3c69b0,_0x3ad534,_0x732899);const _0x1bd205=_0x2015b3['createIdentifier'](_0x3b3960(0x2d8));function _0x42ed5d(_0x25a30c,_0x12c8cc,_0x225256){const _0x360b01=_0x3b3960;return _0x25a30c+'/'+_0x12c8cc+_0x360b01(0x37a)+_0x225256+_0x360b01(0x56b);}_0x2c3354['CollaborationSocketService']=class{constructor(_0x1d4d5a,_0x394b06,_0xa5d022,_0x3c520e,_0x36a20a){const _0x2fd89b=_0x3b3960;this['_http']=_0x1d4d5a,this[_0x2fd89b(0x491)]=_0x394b06,this[_0x2fd89b(0x46c)]=_0xa5d022,this[_0x2fd89b(0x501)]=_0x3c520e,this[_0x2fd89b(0x44a)]=_0x36a20a;}[_0x3b3960(0x29b)](_0x471cbc){const _0x2b8fc6=_0x3b3960,_0xc6faf0=this[_0x2b8fc6(0x491)][_0x2b8fc6(0x29b)](_0x471cbc);if(!_0xc6faf0)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x6d368e=new _0x2015b3[(_0x2b8fc6(0x562))](),_0x30c477=new _0x345abe['Subject']();_0x6d368e[_0x2b8fc6(0x28c)](_0x2015b3['toDisposable'](_0xc6faf0[_0x2b8fc6(0x4f3)][_0x2b8fc6(0x35b)](_0x5db61b=>_0x30c477[_0x2b8fc6(0x2b0)](_0x5db61b)))),_0x6d368e[_0x2b8fc6(0x28c)](_0x2015b3[_0x2b8fc6(0x31c)](()=>_0x30c477[_0x2b8fc6(0x4d4)]()));const _0x1e1d75=new _0x345abe[(_0x2b8fc6(0x421))]();_0x6d368e[_0x2b8fc6(0x28c)](_0x2015b3['toDisposable'](_0xc6faf0[_0x2b8fc6(0x46f)]['subscribe'](_0x8ad56e=>_0x1e1d75[_0x2b8fc6(0x2b0)](_0x8ad56e)))),_0x6d368e[_0x2b8fc6(0x28c)](_0x2015b3[_0x2b8fc6(0x31c)](()=>_0x1e1d75[_0x2b8fc6(0x4d4)]()));const _0x4cd710=new _0x345abe['Subject']();_0x6d368e[_0x2b8fc6(0x28c)](_0x2015b3[_0x2b8fc6(0x31c)](_0xc6faf0[_0x2b8fc6(0x23a)][_0x2b8fc6(0x35b)](_0x1e35ae=>{const _0x2e041f=_0x2b8fc6,_0x4b9eb3=_0x5040c3(_0x1e35ae);_0x4cd710[_0x2e041f(0x2b0)](_0x4b9eb3);}))),_0x6d368e[_0x2b8fc6(0x28c)](_0x2015b3[_0x2b8fc6(0x31c)](()=>_0x4cd710[_0x2b8fc6(0x4d4)]()));const _0x155322=()=>{const _0x65ea89=_0x2b8fc6;_0x1e1d75[_0x65ea89(0x2b0)](new Event(_0x65ea89(0x205))),_0x30c477[_0x65ea89(0x2b0)](new CloseEvent(_0x65ea89(0x205))),_0x499caa[_0x65ea89(0x51c)]();},_0x499caa={'memberID':'','close$':_0x30c477[_0x2b8fc6(0x348)](),'error$':_0x1e1d75[_0x2b8fc6(0x348)](),'open$':_0xc6faf0[_0x2b8fc6(0x2b1)],'message$':_0x4cd710[_0x2b8fc6(0x348)](),'send':_0x3345c2=>{const _0x474872=_0x2b8fc6;if(_0x3345c2['cmd']===_0x52c13b[_0x474872(0x495)]){if(_0x3345c2['data']['eventID']===_0x106736['CollaborationEvent'][_0x474872(0x398)]){this[_0x474872(0x3b2)](_0x499caa,_0x3345c2[_0x474872(0x3e0)])[_0x474872(0x5b1)](_0x3b2454=>{const _0x574035=_0x474872;this[_0x574035(0x501)][_0x574035(0x50b)](_0x3b2454),_0x155322();});return;}if(_0x3345c2[_0x474872(0x3e0)][_0x474872(0x4aa)]===_0x106736[_0x474872(0x43e)][_0x474872(0x3da)]){const _0x259ca3=_0x3345c2[_0x474872(0x3e0)];this[_0x474872(0x569)](_0x259ca3)[_0x474872(0x28a)](_0x148ed1=>{const _0x309f29=_0x474872;_0x4cd710[_0x309f29(0x2b0)]({'cmd':_0x52c13b[_0x309f29(0x3cc)],'code':_0x1a4aa5['OK'],'routeKey':_0x259ca3[_0x309f29(0x3e0)][_0x309f29(0x353)],'routeType':'','data':{'eventID':_0x106736[_0x309f29(0x43e)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x148ed1}}});})[_0x474872(0x5b1)](_0x2215ac=>{const _0x54c8a3=_0x474872;this[_0x54c8a3(0x501)][_0x54c8a3(0x50b)](_0x2215ac),_0x155322();});return;}}_0xc6faf0['send'](_0x5a449f(_0x3345c2));},'close':()=>{const _0x3ecd3c=_0x2b8fc6;_0xc6faf0[_0x3ecd3c(0x51c)](),_0x6d368e['dispose']();}};return _0x499caa;}async[_0x3b3960(0x3b2)](_0x249623,_0xe3a4d9){const _0x337ffb=_0x3b3960;var _0xe06dc7;const {unitType:_0xa1cd0e,unitID:_0x46aa33,changeset:_0x3c89e7}=_0xe3a4d9[_0x337ffb(0x3e0)],_0x1653ab={'unitID':_0x46aa33,'memberID':_0x249623[_0x337ffb(0x2e8)],'type':_0xa1cd0e,'changeset':_0x106736[_0x337ffb(0x587)](_0x3c89e7)},_0x39d21a=_0x42ed5d((_0xe06dc7=this[_0x337ffb(0x46c)][_0x337ffb(0x584)](_0x3c7827))!=null?_0xe06dc7:_0x38f1bf,_0xa1cd0e,_0x46aa33);try{await this[_0x337ffb(0x4fb)]['post'](_0x39d21a,{'body':_0x1653ab});}catch(_0x20ac1c){throw this[_0x337ffb(0x501)][_0x337ffb(0x50b)](_0x337ffb(0x2d5),'submit\x20changeset\x20error!'),_0x20ac1c;}}async['_fetchMissChangesets'](_0x58b9f6){const _0x369f1e=_0x3b3960,{unitID:_0x2299b6,from:_0x41b6c2,to:_0x36a8b3,unitType:_0x2a7a07}=_0x58b9f6[_0x369f1e(0x3e0)];return(await this[_0x369f1e(0x44a)][_0x369f1e(0x5cb)]({'metadata':void 0x0},{'unitID':_0x2299b6,'type':_0x2a7a07,'from':_0x41b6c2,'to':_0x36a8b3}))[_0x369f1e(0x2df)];}},_0x2c3354[_0x3b3960(0x30f)]=_0x11da3d([_0x4eb1f1(0x0,_0x2015b3['Inject'](_0x485f8b['HTTPService'])),_0x4eb1f1(0x1,_0x2015b3[_0x3b3960(0x547)](_0x485f8b['WebSocketService'])),_0x4eb1f1(0x2,_0x2015b3[_0x3b3960(0x582)]),_0x4eb1f1(0x3,_0x2015b3[_0x3b3960(0x1f3)]),_0x4eb1f1(0x4,_0x106736[_0x3b3960(0x2f3)])],_0x2c3354['CollaborationSocketService']);class _0x3f4b4d{constructor(){const _0x31096c=_0x3b3960;_0x385cfe(this,_0x31096c(0x4ce),new _0x345abe[(_0x31096c(0x421))]()),_0x385cfe(this,_0x31096c(0x255),this[_0x31096c(0x4ce)][_0x31096c(0x348)]());}[_0x3b3960(0x5dc)](_0x5dafd2){this['_commentUpdate$']['next'](_0x5dafd2);}}var _0x54019f=Object['defineProperty'],_0x5d7009=Object[_0x3b3960(0x2c2)],_0x503bad=(_0x9ff261,_0x586e77,_0x213c16,_0x130302)=>{const _0x35f4c0=_0x3b3960;for(var _0x53ed7c=_0x130302>0x1?void 0x0:_0x130302?_0x5d7009(_0x586e77,_0x213c16):_0x586e77,_0x1e07b7=_0x9ff261[_0x35f4c0(0x306)]-0x1,_0x3810d8;_0x1e07b7>=0x0;_0x1e07b7--)(_0x3810d8=_0x9ff261[_0x1e07b7])&&(_0x53ed7c=(_0x130302?_0x3810d8(_0x586e77,_0x213c16,_0x53ed7c):_0x3810d8(_0x53ed7c))||_0x53ed7c);return _0x130302&&_0x53ed7c&&_0x54019f(_0x586e77,_0x213c16,_0x53ed7c),_0x53ed7c;},_0xa0f261=(_0x41fcdc,_0x1848f6)=>(_0x3a439b,_0x102982)=>_0x1848f6(_0x3a439b,_0x102982,_0x41fcdc),_0x510b8a=(_0xb10bbe=>(_0xb10bbe[_0xb10bbe[_0x3b3960(0x297)]=0x0]=_0x3b3960(0x297),_0xb10bbe[_0xb10bbe[_0x3b3960(0x4a2)]=0x1]=_0x3b3960(0x4a2),_0xb10bbe[_0xb10bbe['OFFLINE']=0x2]=_0x3b3960(0x461),_0xb10bbe[_0xb10bbe[_0x3b3960(0x457)]=0x3]='ONLINE',_0xb10bbe))(_0x510b8a||{});_0x2c3354[_0x3b3960(0x517)]=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x146e89,_0x3fe1a9,_0x2d11bb,_0x258316,_0x1c8463,_0x4a78a7,_0x5a1e7b,_0xfe1135,_0x4398e5){const _0x2b74e0=_0x3b3960;super(),_0x385cfe(this,_0x2b74e0(0x3f1),new _0x345abe[(_0x2b74e0(0x2f9))](0x0)),_0x385cfe(this,'sessionStatus$',this['_sessionStatus$']['asObservable']()),_0x385cfe(this,_0x2b74e0(0x4da),new _0x345abe[(_0x2b74e0(0x421))]()),_0x385cfe(this,_0x2b74e0(0x4ca),this['_event$'][_0x2b74e0(0x348)]()),_0x385cfe(this,_0x2b74e0(0x2cd)),_0x385cfe(this,_0x2b74e0(0x392)),_0x385cfe(this,_0x2b74e0(0x46e)),(this[_0x2b74e0(0x2e2)]=_0x146e89,this[_0x2b74e0(0x501)]=_0x2d11bb,this['_beforeCloseService']=_0x258316,this[_0x2b74e0(0x5ea)]=_0x1c8463,this[_0x2b74e0(0x46c)]=_0x4a78a7,this['_localeService']=_0x5a1e7b,this[_0x2b74e0(0x5e7)]=_0xfe1135,this[_0x2b74e0(0x379)]=_0x4398e5,_0x3fe1a9[_0x2b74e0(0x2d1)](_0x2cc613[_0x2b74e0(0x244)](this[_0x2b74e0(0x272)]))[_0x2b74e0(0x35b)](_0x438774=>{const _0x4a825c=_0x2b74e0;var _0x84e43;typeof _0x438774>'u'||(this[_0x4a825c(0x2cd)]=_0x438774,_0x438774?(this[_0x4a825c(0x36c)](_0x438774),this[_0x4a825c(0x392)]=this[_0x4a825c(0x2cd)]['message$'][_0x4a825c(0x35b)](_0x4bf8fb=>{const _0x210549=_0x4a825c;_0x4bf8fb[_0x210549(0x403)]===this[_0x210549(0x2e2)]&&this[_0x210549(0x4f7)](_0x4bf8fb);})):(this[_0x4a825c(0x3f1)][_0x4a825c(0x2b0)](0x2),(_0x84e43=this[_0x4a825c(0x392)])==null||_0x84e43[_0x4a825c(0x55a)](),this[_0x4a825c(0x392)]=null));}),this[_0x2b74e0(0x369)](this[_0x2b74e0(0x3d4)]['registerOnClose'](()=>{const _0xdc3eab=_0x2b74e0;var _0x5e51bb;(_0x5e51bb=this[_0xdc3eab(0x2cd)])==null||_0x5e51bb[_0xdc3eab(0x42b)]({'cmd':_0x52c13b[_0xdc3eab(0x30e)],'data':{'roomID':this[_0xdc3eab(0x2e2)]}});})));}get[_0x3b3960(0x1f4)](){const _0x4065f9=_0x3b3960;return this['_sessionStatus$'][_0x4065f9(0x521)]();}['getMemberID'](){const _0x4b8ace=_0x3b3960;var _0x31de17,_0x2b5af1;return(_0x2b5af1=(_0x31de17=this[_0x4b8ace(0x2cd)])==null?void 0x0:_0x31de17[_0x4b8ace(0x2e8)])!=null?_0x2b5af1:null;}[_0x3b3960(0x472)](){const _0x4c7d0e=_0x3b3960;super[_0x4c7d0e(0x472)](),this[_0x4c7d0e(0x272)][_0x4c7d0e(0x2b0)](),this[_0x4c7d0e(0x272)][_0x4c7d0e(0x4d4)]();}[_0x3b3960(0x51c)](){const _0x5c22d9=_0x3b3960;var _0x1f58ae,_0x22c0c4;(_0x1f58ae=this['_socket'])==null||_0x1f58ae['send']({'cmd':_0x52c13b['LEAVE'],'data':{'roomID':this[_0x5c22d9(0x2e2)]}}),this[_0x5c22d9(0x4da)]['complete'](),this['_sessionStatus$']['complete'](),(_0x22c0c4=this[_0x5c22d9(0x2cd)])==null||_0x22c0c4[_0x5c22d9(0x51c)](),this['dispose']();}[_0x3b3960(0x4f7)](_0x24260f){const _0x400ce3=_0x3b3960;_0x24260f[_0x400ce3(0x2b6)]===_0x52c13b['JOIN']?this['_onJoinRoomEvent'](_0x24260f):_0x24260f[_0x400ce3(0x2b6)]===_0x52c13b[_0x400ce3(0x3cc)]&&this[_0x400ce3(0x479)](_0x24260f);}['_joinRoom'](_0x1744eb){const _0x465af9=_0x3b3960;this[_0x465af9(0x3f1)]['next'](0x1),_0x1744eb[_0x465af9(0x42b)]({'cmd':_0x52c13b[_0x465af9(0x2e0)],'routeKey':this[_0x465af9(0x2e2)],'routeType':'','data':{'rooms':[{'roomID':this[_0x465af9(0x2e2)]}]}});}[_0x3b3960(0x47d)](_0x2fa6f9){const _0x8ed447=_0x3b3960;var _0x23f271;if(_0x2fa6f9[_0x8ed447(0x534)]===_0x1a4aa5[_0x8ed447(0x409)]){this['_messageService'][_0x8ed447(0x2c3)]({'type':_0x54ac63[_0x8ed447(0x55b)]['Warning'],'content':this[_0x8ed447(0x23b)]['t'](_0x8ed447(0x564))}),this[_0x8ed447(0x3f1)][_0x8ed447(0x2b0)](0x2);return;}this[_0x8ed447(0x3f1)][_0x8ed447(0x2b0)](0x3);const _0xfcb624=(_0x23f271=_0x2fa6f9[_0x8ed447(0x3e0)][_0x8ed447(0x354)][this[_0x8ed447(0x2e2)]])==null?void 0x0:_0x23f271['members'];_0xfcb624&&_0xfcb624[_0x8ed447(0x4d1)](_0x255575=>this[_0x8ed447(0x5e7)][_0x8ed447(0x313)](this[_0x8ed447(0x2e2)],_0x255575));}['_onRecvEvent'](_0x3839e0){const _0x15bad5=_0x3b3960;try{const _0x12f9cd=_0x3839e0[_0x15bad5(0x3e0)];switch(_0x12f9cd[_0x15bad5(0x4aa)]){case _0x106736[_0x15bad5(0x43e)][_0x15bad5(0x2b3)]:this[_0x15bad5(0x333)](_0x12f9cd),this[_0x15bad5(0x4da)][_0x15bad5(0x2b0)](_0x12f9cd);break;case _0x106736['CollaborationEvent'][_0x15bad5(0x519)]:this[_0x15bad5(0x5f9)](_0x12f9cd),this[_0x15bad5(0x4da)][_0x15bad5(0x2b0)](_0x12f9cd);break;case _0x106736[_0x15bad5(0x43e)][_0x15bad5(0x303)]:this[_0x15bad5(0x4c4)](),this[_0x15bad5(0x4da)][_0x15bad5(0x2b0)](_0x12f9cd);break;case _0x106736[_0x15bad5(0x43e)]['MSG_FOR_ERROR']:this[_0x15bad5(0x501)][_0x15bad5(0x50b)](_0x15bad5(0x34a)+JSON[_0x15bad5(0x4b3)](_0x12f9cd)),this[_0x15bad5(0x4da)][_0x15bad5(0x2b0)](_0x12f9cd);break;case _0x106736[_0x15bad5(0x43e)]['COMMENT_UPDATE']:this[_0x15bad5(0x379)][_0x15bad5(0x5dc)](_0x12f9cd[_0x15bad5(0x3e0)]),this['_event$']['next'](_0x12f9cd);break;default:this[_0x15bad5(0x4da)]['next'](_0x12f9cd);}}catch(_0x233714){this[_0x15bad5(0x501)][_0x15bad5(0x50b)](_0x233714,_0x3839e0);}}['_onUserJoin'](_0x22fbab){const _0x311966=_0x3b3960;this[_0x311966(0x5e7)][_0x311966(0x313)](this[_0x311966(0x2e2)],_0x22fbab[_0x311966(0x3e0)]);}[_0x3b3960(0x5f9)](_0xe4d99b){const _0x464e47=_0x3b3960;this[_0x464e47(0x5e7)]['removeMember'](this[_0x464e47(0x2e2)],_0xe4d99b[_0x464e47(0x3e0)][_0x464e47(0x2e8)]);}async['send'](_0x229cfd,_0x38a096){const _0xfcbab2=_0x3b3960;if(this[_0xfcbab2(0x1f4)]!==0x3||!this['_socket'])throw new Error(_0xfcbab2(0x26a));try{_0x229cfd[_0xfcbab2(0x4aa)]===_0x106736[_0xfcbab2(0x43e)][_0xfcbab2(0x2f1)]&&this['_scheduleCollaborationTimeoutTimer'](),this['_socket'][_0xfcbab2(0x42b)]({'cmd':_0x52c13b[_0xfcbab2(0x495)],'routeKey':_0x38a096,'routeType':'','data':_0x229cfd});}catch(_0x1495e8){this[_0xfcbab2(0x501)]['error'](_0x1495e8);}}['_scheduleCollaborationTimeoutTimer'](){const _0x213183=_0x3b3960;var _0x15a6a1;this[_0x213183(0x46e)]=window[_0x213183(0x4b1)](()=>{const _0x2e7675=_0x213183;this[_0x2e7675(0x46e)]=null,this[_0x2e7675(0x5ea)][_0x2e7675(0x2c3)]({'type':_0x54ac63['MessageType'][_0x2e7675(0x287)],'content':this[_0x2e7675(0x23b)]['t'](_0x2e7675(0x383))});},(_0x15a6a1=this[_0x213183(0x46c)][_0x213183(0x584)](_0x816b9c))!=null?_0x15a6a1:0x2710);}[_0x3b3960(0x4c4)](){const _0x109ea7=_0x3b3960;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x109ea7(0x46e)]),this[_0x109ea7(0x46e)]=null);}},_0x2c3354[_0x3b3960(0x517)]=_0x503bad([_0xa0f261(0x2,_0x2015b3['ILogService']),_0xa0f261(0x3,_0x44b766[_0x3b3960(0x5cd)]),_0xa0f261(0x4,_0x44b766['IMessageService']),_0xa0f261(0x5,_0x2015b3[_0x3b3960(0x582)]),_0xa0f261(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x20a)])),_0xa0f261(0x7,_0x2015b3[_0x3b3960(0x547)](_0x25752c)),_0xa0f261(0x8,_0x2015b3['Inject'](_0x3f4b4d))],_0x2c3354[_0x3b3960(0x517)]),_0x2c3354['CollaborationSessionService']=class extends _0x2015b3[_0x3b3960(0x38b)]{constructor(_0x1650a4,_0x1c762d,_0x31022f,_0x51f152,_0x1d0076,_0x95890c){const _0x4719dc=_0x3b3960;super(),_0x385cfe(this,'_socket$',new _0x345abe['BehaviorSubject'](void 0x0)),_0x385cfe(this,_0x4719dc(0x4f6),new Map()),_0x385cfe(this,_0x4719dc(0x4e9),new _0x345abe[(_0x4719dc(0x2f9))](0x0)),_0x385cfe(this,_0x4719dc(0x2f5),this['_status$'][_0x4719dc(0x348)]()),_0x385cfe(this,'_socketReady',!0x1),_0x385cfe(this,_0x4719dc(0x4fc)),_0x385cfe(this,_0x4719dc(0x490)),_0x385cfe(this,_0x4719dc(0x3f9)),_0x385cfe(this,_0x4719dc(0x578),0x0),(this['_injector']=_0x1650a4,this[_0x4719dc(0x23b)]=_0x1c762d,this[_0x4719dc(0x5ea)]=_0x31022f,this[_0x4719dc(0x501)]=_0x51f152,this['_configService']=_0x1d0076,this[_0x4719dc(0x310)]=_0x95890c);}get[_0x3b3960(0x2cd)](){const _0xb2bbe6=_0x3b3960;return this['_socket$'][_0xb2bbe6(0x521)]();}[_0x3b3960(0x472)](){const _0x3b4705=_0x3b3960;super['dispose'](),this[_0x3b4705(0x4f6)]['forEach'](_0x2e135d=>_0x2e135d[_0x3b4705(0x472)]()),this[_0x3b4705(0x4f6)][_0x3b4705(0x577)](),this[_0x3b4705(0x4e9)][_0x3b4705(0x4d4)]();}async[_0x3b3960(0x5db)](_0x5837a7){const _0x141567=_0x3b3960;if(this[_0x141567(0x4f6)]['has'](_0x5837a7))return this[_0x141567(0x4f6)][_0x141567(0x3b9)](_0x5837a7);this[_0x141567(0x3ed)]();const _0x382101=this[_0x141567(0x3f4)]['createInstance'](_0x2c3354[_0x141567(0x517)],_0x5837a7,this['_socket$'][_0x141567(0x348)]());return this[_0x141567(0x4f6)][_0x141567(0x420)](_0x5837a7,_0x382101),_0x382101;}[_0x3b3960(0x32c)](_0xa246cc){const _0x2b2959=_0x3b3960;var _0x19c389;const _0x42c4e6=this[_0x2b2959(0x4f6)][_0x2b2959(0x3b9)](_0xa246cc);_0x42c4e6&&(this['_sessions']['delete'](_0xa246cc),_0x42c4e6['close']()),this[_0x2b2959(0x4f6)][_0x2b2959(0x52c)]||(_0x19c389=this[_0x2b2959(0x2cd)])==null||_0x19c389[_0x2b2959(0x51c)]();}[_0x3b3960(0x3ac)](){const _0x35b4c4=_0x3b3960;var _0x51b169;const _0x1d2b7f=(_0x51b169=this[_0x35b4c4(0x46c)][_0x35b4c4(0x584)](_0x332c44))!=null?_0x51b169:_0x55e528;return this['_socketService'][_0x35b4c4(0x29b)](_0x1d2b7f);}['_tryEnsureSocket'](){const _0xbe8e3e=_0x3b3960;try{const _0x462bbe=this[_0xbe8e3e(0x3ac)]();if(_0x462bbe){const _0x1a19ea=_0x462bbe[_0xbe8e3e(0x42b)];_0x462bbe['send']=_0x70c19d=>(this['_rescheduleHeartbeatEvent'](),_0x1a19ea['apply'](_0x462bbe,[_0x70c19d])),_0x462bbe[_0xbe8e3e(0x23a)][_0xbe8e3e(0x35b)](_0x5af25f=>this['_onMessage'](_0x462bbe,_0x5af25f)),_0x462bbe['error$']['pipe'](_0x2cc613[_0xbe8e3e(0x46a)](0x1))[_0xbe8e3e(0x35b)](_0x4ebd7a=>this[_0xbe8e3e(0x501)][_0xbe8e3e(0x50b)](_0xbe8e3e(0x42c),_0x4ebd7a)),_0x462bbe['open$'][_0xbe8e3e(0x2d1)](_0x2cc613['take'](0x1))[_0xbe8e3e(0x35b)](()=>{const _0x1457d5=_0xbe8e3e;this[_0x1457d5(0x591)](_0x462bbe);}),_0x462bbe[_0xbe8e3e(0x4f3)][_0xbe8e3e(0x2d1)](_0x2cc613[_0xbe8e3e(0x46a)](0x1))[_0xbe8e3e(0x35b)](_0x5dfde1=>{const _0xa64dfe=_0xbe8e3e;this[_0xa64dfe(0x501)][_0xa64dfe(0x210)](_0xa64dfe(0x2a8),_0xa64dfe(0x252),_0x5dfde1),this['_onConnectionFailed']();});}}catch(_0x2e532b){this[_0xbe8e3e(0x501)][_0xbe8e3e(0x50b)](_0x2e532b),this[_0xbe8e3e(0x5e0)]();}}[_0x3b3960(0x591)](_0x2ec0f1){const _0x245e91=_0x3b3960;this[_0x245e91(0x501)]['debug']('[CollaborationSessionService]',_0x245e91(0x407)),_0x2ec0f1['send']({'cmd':_0x52c13b['HELLO']}),this['_rescheduleHeartbeatEvent']();}[_0x3b3960(0x5e0)](){const _0x45bf04=_0x3b3960;var _0x10a173;this[_0x45bf04(0x4e9)][_0x45bf04(0x2b0)](0x2),this[_0x45bf04(0x429)][_0x45bf04(0x2b0)](null),this[_0x45bf04(0x40a)](),this['_clearHeartbeatTimer'](),this['_socketReady']=!0x1,this[_0x45bf04(0x578)]<((_0x10a173=this['_configService'][_0x45bf04(0x584)](_0xb1acb))!=null?_0x10a173:0x3)?(this[_0x45bf04(0x1f6)](this[_0x45bf04(0x578)]),this[_0x45bf04(0x578)]+=0x1):this['_messageService'][_0x45bf04(0x2c3)]({'type':_0x54ac63[_0x45bf04(0x55b)][_0x45bf04(0x287)],'content':this[_0x45bf04(0x23b)]['t']('session.connection-failed')});}['_scheduleReconnection'](_0x49d7c3){const _0x54ea8c=_0x3b3960;var _0x2e6056;const _0x56ca26=((_0x2e6056=this['_configService']['getConfig'](_0x11fd51))!=null?_0x2e6056:0x4e20)*0x2**_0x49d7c3;this[_0x54ea8c(0x5ea)][_0x54ea8c(0x2c3)]({'type':_0x54ac63[_0x54ea8c(0x55b)]['Warning'],'content':this[_0x54ea8c(0x23b)]['t'](_0x54ea8c(0x3a6))}),this[_0x54ea8c(0x3f9)]=setTimeout(()=>{const _0x250f44=_0x54ea8c;this['_tryEnsureSocket'](),clearTimeout(this[_0x250f44(0x3f9)]),this[_0x250f44(0x3f9)]=null;},_0x56ca26);}[_0x3b3960(0x234)](){const _0x7c2cca=_0x3b3960;var _0x4d09be;this[_0x7c2cca(0x563)](),this[_0x7c2cca(0x4fc)]=setTimeout(()=>this[_0x7c2cca(0x241)](),(_0x4d09be=this[_0x7c2cca(0x46c)][_0x7c2cca(0x584)](_0x879d7e))!=null?_0x4d09be:0x7530);}[_0x3b3960(0x241)](){const _0xe6f073=_0x3b3960;this[_0xe6f073(0x2cd)]['send']({'cmd':_0x52c13b[_0xe6f073(0x227)]}),this[_0xe6f073(0x5ce)]();}['_waitForHeartbeatResponse'](){const _0x34e3cc=_0x3b3960;var _0x4b912f;this[_0x34e3cc(0x490)]=setTimeout(()=>this[_0x34e3cc(0x5e0)](),(_0x4b912f=this[_0x34e3cc(0x46c)][_0x34e3cc(0x584)](_0x816b9c))!=null?_0x4b912f:0x2710);}[_0x3b3960(0x48f)](_0x5ce4fe,_0xafd618){const _0x5ac593=_0x3b3960,{cmd:_0x48cc24}=_0xafd618;_0x48cc24===_0x52c13b[_0x5ac593(0x41b)]&&!this[_0x5ac593(0x55d)]&&(_0x5ce4fe['memberID']=_0xafd618[_0x5ac593(0x3e0)]['memberID'],this[_0x5ac593(0x429)][_0x5ac593(0x2b0)](_0x5ce4fe),this['_status$'][_0x5ac593(0x2b0)](0x3),this[_0x5ac593(0x55d)]=!0x0),_0x48cc24===_0x52c13b[_0x5ac593(0x227)]&&this[_0x5ac593(0x40a)](),this[_0x5ac593(0x234)]();}[_0x3b3960(0x563)](){const _0x1aeb2b=_0x3b3960;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x1aeb2b(0x4fc)]),this[_0x1aeb2b(0x4fc)]=null);}[_0x3b3960(0x40a)](){const _0x40201a=_0x3b3960;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x40201a(0x490)]),this[_0x40201a(0x490)]=null);}},_0x2c3354[_0x3b3960(0x4b4)]=_0x503bad([_0xa0f261(0x0,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0xa0f261(0x1,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x20a)])),_0xa0f261(0x2,_0x44b766['IMessageService']),_0xa0f261(0x3,_0x2015b3['ILogService']),_0xa0f261(0x4,_0x2015b3[_0x3b3960(0x582)]),_0xa0f261(0x5,_0x1bd205)],_0x2c3354[_0x3b3960(0x4b4)]);var _0x77a193=Object[_0x3b3960(0x57c)],_0x463060=Object['getOwnPropertyDescriptor'],_0x44f983=(_0x134b07,_0x59b8d2,_0x6957d5,_0xeb19d0)=>{for(var _0x5c1e42=_0xeb19d0>0x1?void 0x0:_0xeb19d0?_0x463060(_0x59b8d2,_0x6957d5):_0x59b8d2,_0x953809=_0x134b07['length']-0x1,_0x313460;_0x953809>=0x0;_0x953809--)(_0x313460=_0x134b07[_0x953809])&&(_0x5c1e42=(_0xeb19d0?_0x313460(_0x59b8d2,_0x6957d5,_0x5c1e42):_0x313460(_0x5c1e42))||_0x5c1e42);return _0xeb19d0&&_0x5c1e42&&_0x77a193(_0x59b8d2,_0x6957d5,_0x5c1e42),_0x5c1e42;},_0x3eceb8=(_0xd0e175,_0x48bcbd)=>(_0x1b6cca,_0x31396f)=>_0x48bcbd(_0x1b6cca,_0x31396f,_0xd0e175);_0x2c3354[_0x3b3960(0x3dc)]=class extends _0x2015b3['Disposable']{constructor(_0x25b20d,_0x33e2bc,_0x4b8095,_0x3f6164,_0x4cd67a){const _0x59d32d=_0x3b3960;super(),_0x385cfe(this,'_cachedData',new Map()),_0x385cfe(this,_0x59d32d(0x3e3),new Map()),_0x385cfe(this,_0x59d32d(0x207),!0x1),(this[_0x59d32d(0x46c)]=_0x25b20d,this['_localStorageService']=_0x33e2bc,this['_beforeCloseService']=_0x4b8095,this[_0x59d32d(0x23b)]=_0x3f6164,this['_revisionService']=_0x4cd67a,this[_0x59d32d(0x2d4)]());}[_0x3b3960(0x5ed)](){const _0x2cf7bd=_0x3b3960;this[_0x2cf7bd(0x207)]=!0x0;}['enableLocalCache'](){const _0x35076d=_0x3b3960;this[_0x35076d(0x207)]=!0x1;}['dispose'](){const _0x289e0a=_0x3b3960;this[_0x289e0a(0x3ad)]()['then'](()=>super[_0x289e0a(0x472)]());}async[_0x3b3960(0x56a)](_0x484427){const _0x47cabb=_0x3b3960;return this[_0x47cabb(0x207)]?null:this[_0x47cabb(0x48e)][_0x47cabb(0x332)](_0x1f9b64(_0x484427));}async['saveOfflineData'](_0x26397e,_0xbc1e09){const _0x5cfcf3=_0x3b3960;return!!this[_0x5cfcf3(0x48e)][_0x5cfcf3(0x391)](_0x26397e,_0xbc1e09);}[_0x3b3960(0x53d)](_0x179259,_0x206213,_0x9c2f7f,_0x44c135){const _0x36e5ce=_0x3b3960,_0x4b473b=this[_0x36e5ce(0x59c)]['getCurrentRevForDocument'](_0x179259);this['_cachedData'][_0x36e5ce(0x420)](_0x179259,{'unitID':_0x179259,'type':_0x206213,'awaitingChangeset':_0x9c2f7f,'mutations':_0x44c135,'rev':_0x4b473b}),this[_0x36e5ce(0x3e3)][_0x36e5ce(0x337)](_0x179259)||this[_0x36e5ce(0x4de)](_0x179259);}[_0x3b3960(0x4de)](_0x534ab8){const _0x5bea55=_0x3b3960,_0x2934cd=this[_0x5bea55(0x5ad)]();_0x2934cd===0x0?this['_saveCache'](_0x534ab8):this['_saveTaskMap']['set'](_0x534ab8,setTimeout(()=>this[_0x5bea55(0x33e)](_0x534ab8),_0x2934cd));}[_0x3b3960(0x5ad)](){const _0x1fc311=_0x3b3960;var _0x4b350d;return(_0x4b350d=this[_0x1fc311(0x46c)][_0x1fc311(0x584)](_0x3f1ca0))!=null?_0x4b350d:0x3e8;}[_0x3b3960(0x33e)](_0x174882){const _0x35fc0e=_0x3b3960,_0x158f82=this['_saveTaskMap'][_0x35fc0e(0x3b9)](_0x174882);return _0x158f82!==void 0x0&&window[_0x35fc0e(0x3c8)](_0x158f82),this[_0x35fc0e(0x48e)][_0x35fc0e(0x391)](_0x1f9b64(_0x174882),this[_0x35fc0e(0x458)][_0x35fc0e(0x3b9)](_0x174882))['then'](()=>this[_0x35fc0e(0x3e3)][_0x35fc0e(0x431)](_0x174882));}async['exhaustSavingTask'](){const _0x362adb=_0x3b3960,_0x34ac38=[];this['_saveTaskMap'][_0x362adb(0x4d1)]((_0x372f12,_0x23be35)=>{const _0x21afc4=_0x362adb;window['clearTimeout'](_0x372f12),_0x34ac38[_0x21afc4(0x279)](this[_0x21afc4(0x33e)](_0x23be35)[_0x21afc4(0x28a)](()=>{const _0x54da38=_0x21afc4;this[_0x54da38(0x3e3)][_0x54da38(0x431)](_0x23be35);}));}),await Promise[_0x362adb(0x427)](_0x34ac38);}['_setupBeforeClosingHandler'](){const _0x434396=_0x3b3960;this['disposeWithMe'](this['_beforeCloseService'][_0x434396(0x26e)](()=>{const _0xf3180f=_0x434396;if(this[_0xf3180f(0x3e3)][_0xf3180f(0x52c)])return this[_0xf3180f(0x23b)]['t'](_0xf3180f(0x3aa));}));}},_0x2c3354[_0x3b3960(0x3dc)]=_0x44f983([_0x3eceb8(0x0,_0x2015b3[_0x3b3960(0x582)]),_0x3eceb8(0x1,_0x2015b3['ILocalStorageService']),_0x3eceb8(0x2,_0x44b766[_0x3b3960(0x5cd)]),_0x3eceb8(0x3,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x20a)])),_0x3eceb8(0x4,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x3e9)]))],_0x2c3354[_0x3b3960(0x3dc)]);function _0x1f9b64(_0x51682d){const _0x45f2df=_0x3b3960;return _0x45f2df(0x2da)+_0x51682d;}const _0x55925e=_0x2015b3[_0x3b3960(0x2ab)](_0x3b3960(0x27f));var _0x2d9e3c=(_0x968f93=>(_0x968f93[_0x968f93[_0x3b3960(0x305)]=0x0]=_0x3b3960(0x305),_0x968f93[_0x968f93[_0x3b3960(0x393)]=0x1]=_0x3b3960(0x393),_0x968f93))(_0x2d9e3c||{});const _0x564307=0x7530,_0x1a148e=_0x3b3960(0x537);class _0x200347 extends _0x2015b3[_0x3b3960(0x38b)]{constructor(){const _0x1aa4c2=_0x3b3960;super(),_0x385cfe(this,_0x1aa4c2(0x316),_0x2015b3[_0x1aa4c2(0x471)][_0x1aa4c2(0x447)]()),_0x385cfe(this,_0x1aa4c2(0x538),new Set()),_0x385cfe(this,_0x1aa4c2(0x39d),new Map()),_0x385cfe(this,_0x1aa4c2(0x2ee),null),_0x385cfe(this,'_clearOtherTimers',new Map()),_0x385cfe(this,_0x1aa4c2(0x3f6),new Map()),this[_0x1aa4c2(0x4a1)]();}[_0x3b3960(0x472)](){const _0x178120=_0x3b3960;super['dispose'](),this[_0x178120(0x204)][_0x178120(0x4d1)]((_0x2b24e0,_0x1bd30c)=>this[_0x178120(0x3d1)](_0x1bd30c)),this[_0x178120(0x2ee)]&&window[_0x178120(0x50f)](this['_heartbeatTimer']);}[_0x3b3960(0x5f4)](_0x3f1869){const _0x2493ca=_0x3b3960;return this[_0x2493ca(0x448)](_0x3f1869)['pipe'](_0x345abe[_0x2493ca(0x26d)]());}[_0x3b3960(0x539)](_0x57f170){const _0x6523df=_0x3b3960;this[_0x6523df(0x538)]['size']===0x0&&this[_0x6523df(0x262)](),this['_selfUnitIDs'][_0x6523df(0x28c)](_0x57f170),this[_0x6523df(0x469)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x57f170],'isForwarded':!0x1});}['disposeUnit'](_0x3f28d2){const _0x154043=_0x3b3960;this[_0x154043(0x538)][_0x154043(0x431)](_0x3f28d2),this[_0x154043(0x538)][_0x154043(0x52c)]===0x0&&this['_heartbeatTimer']&&window[_0x154043(0x50f)](this[_0x154043(0x2ee)]);}['_init'](){const _0x3eb890=_0x3b3960;this[_0x3eb890(0x369)](_0x2015b3[_0x3eb890(0x31c)](_0x345abe[_0x3eb890(0x44c)](window,_0x3eb890(0x3c1))[_0x3eb890(0x35b)](_0x3a6b7c=>{const _0x22c92c=_0x3eb890;if(_0x3a6b7c['key']!==_0x1a148e||!_0x3a6b7c[_0x22c92c(0x53b)])return;const _0x2ac098=JSON[_0x22c92c(0x488)](_0x3a6b7c[_0x22c92c(0x53b)]);this[_0x22c92c(0x453)](_0x2ac098);}))),window[_0x3eb890(0x411)](_0x3eb890(0x35c),()=>this['_send']({'type':0x1,'memberID':this[_0x3eb890(0x316)],'unitIDs':Array[_0x3eb890(0x4f1)](this[_0x3eb890(0x538)])}));}[_0x3b3960(0x453)](_0x3370cf){const _0x24e9e0=_0x3b3960;switch(_0x3370cf['type']){case 0x0:this[_0x24e9e0(0x593)](_0x3370cf);break;case 0x1:this[_0x24e9e0(0x571)](_0x3370cf);break;case 0x2:this[_0x24e9e0(0x532)](_0x3370cf);break;}}[_0x3b3960(0x593)](_0x41579a){const _0x21f400=_0x3b3960,{unitIDs:_0xf8b40b,memberID:_0x35cc3c,isForwarded:_0xff0959}=_0x41579a;_0xf8b40b[_0x21f400(0x4d1)](_0x2151e9=>{const _0xf8f2a1=_0x21f400;if(!_0xff0959&&this['_unitOnClients'][_0xf8f2a1(0x337)](_0x2151e9)&&this['_ensureSubject'](_0x2151e9)[_0xf8f2a1(0x2b0)](0x1),!this[_0xf8f2a1(0x39d)][_0xf8f2a1(0x337)](_0x2151e9)||!this[_0xf8f2a1(0x39d)]['get'](_0x2151e9)['has'](_0x35cc3c)){const _0x32eeca=this[_0xf8f2a1(0x39d)][_0xf8f2a1(0x3b9)](_0x2151e9)||new Set();_0x32eeca['add'](_0x35cc3c),this[_0xf8f2a1(0x39d)]['set'](_0x2151e9,_0x32eeca),this['_scheduleClearOtherTimer'](_0x35cc3c);}}),_0xff0959||this[_0x21f400(0x469)]({'type':0x0,'memberID':this[_0x21f400(0x316)],'unitIDs':[...this[_0x21f400(0x538)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x2bbe91){const _0x26e150=_0x3b3960;this[_0x26e150(0x3d1)](_0x2bbe91);const _0x1101cc=window[_0x26e150(0x4b1)](()=>{this['_unitOnClients']['forEach'](_0x149454=>{const _0xb60376=_0x41fb;_0x149454[_0xb60376(0x431)](_0x2bbe91);});},_0x564307*0x2);this[_0x26e150(0x204)][_0x26e150(0x420)](_0x2bbe91,_0x1101cc);}[_0x3b3960(0x3d1)](_0x2b7e93){const _0x1aee61=_0x3b3960;if(this['_clearOtherTimers'][_0x1aee61(0x337)](_0x2b7e93)){const _0x4de246=this[_0x1aee61(0x204)][_0x1aee61(0x3b9)](_0x2b7e93);_0x4de246&&window[_0x1aee61(0x3c8)](_0x4de246),this['_clearOtherTimers'][_0x1aee61(0x420)](_0x2b7e93,null);}}['_handleLeaveEvent'](_0x117f57){const _0x3681c0=_0x3b3960,{memberID:_0x40f25a,unitIDs:_0x3596ef}=_0x117f57;_0x3596ef[_0x3681c0(0x4d1)](_0x50487d=>{const _0xb162e5=_0x3681c0;var _0x92d461;const _0x1819d9=this['_unitOnClients'][_0xb162e5(0x3b9)](_0x50487d);_0x1819d9&&(_0x1819d9[_0xb162e5(0x431)](_0x40f25a),(_0x92d461=this[_0xb162e5(0x448)](_0x50487d))==null||_0x92d461[_0xb162e5(0x2b0)](_0x1819d9[_0xb162e5(0x52c)]===0x0?0x0:0x1));}),this[_0x3681c0(0x3d1)](_0x40f25a);}[_0x3b3960(0x532)](_0x3ec417){const _0x5b0d43=_0x3b3960;this[_0x5b0d43(0x338)](_0x3ec417['memberID']);}[_0x3b3960(0x469)](_0x58640e){const _0xe41dfa=_0x3b3960;localStorage[_0xe41dfa(0x391)](_0x1a148e,JSON['stringify'](_0x58640e));}[_0x3b3960(0x262)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x1feb3f=_0x41fb;this[_0x1feb3f(0x469)]({'type':0x2,'memberID':this['_id']});},_0x564307);}[_0x3b3960(0x448)](_0x44b175){const _0x12d245=_0x3b3960;return this[_0x12d245(0x3f6)][_0x12d245(0x337)](_0x44b175)||this[_0x12d245(0x3f6)]['set'](_0x44b175,new _0x345abe['BehaviorSubject'](0x0)),this[_0x12d245(0x3f6)]['get'](_0x44b175);}}var _0x5a57bf=Object[_0x3b3960(0x57c)],_0x2c7519=Object[_0x3b3960(0x2c2)],_0x5d91a9=(_0x2ad29e,_0x14a13c,_0x5bce75,_0x5d9193)=>{const _0x559a3b=_0x3b3960;for(var _0x1a3af9=_0x5d9193>0x1?void 0x0:_0x5d9193?_0x2c7519(_0x14a13c,_0x5bce75):_0x14a13c,_0x39206e=_0x2ad29e[_0x559a3b(0x306)]-0x1,_0x33dbde;_0x39206e>=0x0;_0x39206e--)(_0x33dbde=_0x2ad29e[_0x39206e])&&(_0x1a3af9=(_0x5d9193?_0x33dbde(_0x14a13c,_0x5bce75,_0x1a3af9):_0x33dbde(_0x1a3af9))||_0x1a3af9);return _0x5d9193&&_0x1a3af9&&_0x5a57bf(_0x14a13c,_0x5bce75,_0x1a3af9),_0x1a3af9;},_0xc5274e=(_0x4d221b,_0x4226cb)=>(_0x41999c,_0x421a84)=>_0x4226cb(_0x41999c,_0x421a84,_0x4d221b);let _0x3d8f9f=class{constructor(_0x50455c,_0x528053){const _0x100b05=_0x3b3960;this[_0x100b05(0x3f4)]=_0x50455c,this[_0x100b05(0x3b1)]=_0x528053;}[_0x3b3960(0x4dc)](_0x16b881){const _0xe5d73f=_0x3b3960;this[_0xe5d73f(0x29f)](_0x16b881),this[_0xe5d73f(0x397)](_0x16b881);}[_0x3b3960(0x2cb)](_0x21645b){const _0x4b6149=_0x3b3960,_0x581298=this[_0x4b6149(0x3f4)]['get'](_0xbcf55e[_0x4b6149(0x50d)]),{redoCache:_0xf73320}=_0x581298[_0x4b6149(0x2b8)]();if(_0xf73320['length']===0x0)return _0x21645b;let _0x560767=_0x2015b3[_0x4b6149(0x471)][_0x4b6149(0x47a)](_0x21645b[_0x4b6149(0x2e7)][0x0]);for(let _0x4338b6=0x0;_0x4338b6<_0xf73320[_0x4b6149(0x306)];_0x4338b6++){const _0x552866={'id':_0x4b6149(0x412),'params':{..._0xf73320[_0x4338b6]}},_0x1f079e=this['_transformService']['transformMutation'](_0x560767,_0x552866,!0x1);if(_0x106736['isTransformMutationFailure'](_0x1f079e))throw _0x1f079e['error'];_0x560767=_0x1f079e[_0x4b6149(0x59e)];}return{..._0x2015b3[_0x4b6149(0x471)][_0x4b6149(0x47a)](_0x21645b),'mutations':[_0x560767]};}[_0x3b3960(0x29f)](_0x421af7){const _0x8d5e99=_0x3b3960,_0x27a6ad=this['_injector'][_0x8d5e99(0x3b9)](_0xbcf55e[_0x8d5e99(0x50d)]),{undoCache:_0x3df1b0,redoCache:_0x2dcd94}=_0x27a6ad[_0x8d5e99(0x2b8)]();if(_0x3df1b0['length']===0x0||_0x2dcd94[_0x8d5e99(0x306)]===0x0)return;const _0x19e4f2=[],_0x303eae=[];let _0x1cdaeb=_0x2015b3[_0x8d5e99(0x471)][_0x8d5e99(0x47a)](_0x421af7['mutations'][0x0]),_0x1f679f=_0x2015b3[_0x8d5e99(0x471)][_0x8d5e99(0x47a)](_0x421af7[_0x8d5e99(0x2e7)][0x0]);for(let _0x3c5ffd=_0x3df1b0['length']-0x1;_0x3c5ffd>=0x0;_0x3c5ffd--){const _0x42bb30={'id':_0x8d5e99(0x412),'params':{..._0x3df1b0[_0x3c5ffd]}},_0x29e4a5={'id':_0x8d5e99(0x412),'params':{..._0x2dcd94[_0x3c5ffd]}},_0x114f6b=this[_0x8d5e99(0x3b1)][_0x8d5e99(0x3e8)](_0x1cdaeb,_0x42bb30,!0x1),_0xeb6c61=this[_0x8d5e99(0x3b1)][_0x8d5e99(0x3e8)](_0x1f679f,_0x29e4a5,!0x1);if(_0x106736[_0x8d5e99(0x201)](_0x114f6b))throw _0x114f6b[_0x8d5e99(0x50b)];if(_0x106736['isTransformMutationFailure'](_0xeb6c61))throw _0xeb6c61[_0x8d5e99(0x50b)];_0x19e4f2['unshift'](_0x114f6b[_0x8d5e99(0x4af)][_0x8d5e99(0x358)]),_0x303eae[_0x8d5e99(0x55c)](_0xeb6c61[_0x8d5e99(0x4af)][_0x8d5e99(0x358)]),_0x1cdaeb=_0x114f6b['m1Prime'],_0x1f679f=_0xeb6c61['m1Prime'];}_0x27a6ad['setUndoRedoMutationParamsCache']({'undoCache':_0x19e4f2,'redoCache':_0x303eae});}[_0x3b3960(0x397)](_0x5c2976){const _0x41a44b=_0x3b3960,_0x3b4eb8=this[_0x41a44b(0x3f4)][_0x41a44b(0x3b9)](_0xbcf55e[_0x41a44b(0x50d)]),_0x13ed3b=_0x3b4eb8['getActiveRange']();if(_0x13ed3b==null)return;const _0x3dd311=[{'id':_0x41a44b(0x412),'params':{'unitId':_0x5c2976[_0x41a44b(0x353)],'actions':null,'textRanges':[_0x13ed3b]}}],_0x479e92=this[_0x41a44b(0x3b1)][_0x41a44b(0x2dc)](_0x5c2976,_0x3dd311);if(!_0x106736[_0x41a44b(0x58d)](_0x479e92))throw _0x479e92[_0x41a44b(0x50b)];const _0x40bc27=_0x479e92[_0x41a44b(0x4af)][0x0][_0x41a44b(0x358)][_0x41a44b(0x23f)];Array['isArray'](_0x40bc27)&&_0x40bc27['length']&&_0x3b4eb8[_0x41a44b(0x481)](_0x40bc27[0x0]);}};_0x3d8f9f=_0x5d91a9([_0xc5274e(0x0,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector'])),_0xc5274e(0x1,_0x106736['ITransformService'])],_0x3d8f9f);var _0x1e0fd3=Object['defineProperty'],_0x47689c=Object['getOwnPropertyDescriptor'],_0x9a1023=(_0x354136,_0x1332f8,_0x1ffe2c,_0x3bae13)=>{const _0xfc5122=_0x3b3960;for(var _0x5a2342=_0x3bae13>0x1?void 0x0:_0x3bae13?_0x47689c(_0x1332f8,_0x1ffe2c):_0x1332f8,_0x1786bc=_0x354136[_0xfc5122(0x306)]-0x1,_0x2d8f28;_0x1786bc>=0x0;_0x1786bc--)(_0x2d8f28=_0x354136[_0x1786bc])&&(_0x5a2342=(_0x3bae13?_0x2d8f28(_0x1332f8,_0x1ffe2c,_0x5a2342):_0x2d8f28(_0x5a2342))||_0x5a2342);return _0x3bae13&&_0x5a2342&&_0x1e0fd3(_0x1332f8,_0x1ffe2c,_0x5a2342),_0x5a2342;},_0x4fd8f2=(_0x19d617,_0x1ab56d)=>(_0x56d045,_0x2f8521)=>_0x1ab56d(_0x56d045,_0x2f8521,_0x19d617);let _0x27cbd7=class{constructor(_0x3c3797,_0x1b304c){const _0x4b4de8=_0x3b3960;this[_0x4b4de8(0x3f4)]=_0x3c3797,this[_0x4b4de8(0x3b1)]=_0x1b304c;}[_0x3b3960(0x2c8)](_0x4bfd25){const _0x3ed5fd=_0x3b3960;var _0x2509d4;const _0xd91344=this[_0x3ed5fd(0x3f4)][_0x3ed5fd(0x3b9)](_0xbcf55e['TextSelectionManagerService']),_0x7017f4=(_0x2509d4=_0xd91344[_0x3ed5fd(0x342)]())!=null?_0x2509d4:[],_0x237ef0=_0x7017f4==null?void 0x0:_0x7017f4['map'](_0xbcf55e[_0x3ed5fd(0x489)]);if(_0x237ef0[_0x3ed5fd(0x306)]===0x0)return;const _0x59ee19=[{'id':_0x3ed5fd(0x412),'params':{'unitId':_0x4bfd25[_0x3ed5fd(0x353)],'actions':null,'textRanges':_0x237ef0}}],_0x4d4bdd=this[_0x3ed5fd(0x3b1)][_0x3ed5fd(0x2dc)](_0x4bfd25,_0x59ee19);if(!_0x106736[_0x3ed5fd(0x58d)](_0x4d4bdd))throw _0x4d4bdd['error'];const _0x50db41=_0x4d4bdd['m2Prime'][0x0][_0x3ed5fd(0x358)][_0x3ed5fd(0x23f)];Array[_0x3ed5fd(0x31d)](_0x50db41)&&_0x50db41[_0x3ed5fd(0x306)]&&_0xd91344[_0x3ed5fd(0x32a)](_0x50db41,!0x1);}};_0x27cbd7=_0x9a1023([_0x4fd8f2(0x0,_0x2015b3['Inject'](_0x2015b3[_0x3b3960(0x56e)])),_0x4fd8f2(0x1,_0x106736[_0x3b3960(0x25a)])],_0x27cbd7);function _0x2763e1(_0x1b02b0){const _0x1f201b=_0x3b3960;let _0x2ace6a='';for(const _0x47b37e of _0x1b02b0){const {startOffset:_0x2be21c,endOffset:_0x28d7d3,isActive:_0x10c66c}=_0x47b37e;_0x2ace6a[_0x1f201b(0x306)]&&(_0x2ace6a+=','),_0x2ace6a+=_0x2be21c+':'+_0x28d7d3+':'+(_0x10c66c?'1':'0');}return _0x2ace6a;}function _0x3d4548(_0x536803){const _0x3bc8e2=_0x3b3960,_0x55f4ab=_0x536803[_0x3bc8e2(0x29e)](','),_0x40db8c=[];for(const _0x750722 of _0x55f4ab){const [_0xac00fe,_0x535265,_0x4ef4f7]=_0x750722[_0x3bc8e2(0x29e)](':');_0x40db8c[_0x3bc8e2(0x279)]({'startOffset':Number(_0xac00fe),'endOffset':Number(_0x535265),'collapsed':_0xac00fe===_0x535265,'isActive':_0x4ef4f7==='1'});}return _0x40db8c[_0x3bc8e2(0x59d)](_0x4d7728=>_0x4d7728[_0x3bc8e2(0x237)])||(_0x40db8c[0x0][_0x3bc8e2(0x237)]=!0x0),_0x40db8c;}class _0x474519 extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(){const _0x52ea1a=_0x3b3960;super(...arguments),_0x385cfe(this,_0x52ea1a(0x551),new _0x345abe[(_0x52ea1a(0x2f9))](null)),_0x385cfe(this,_0x52ea1a(0x3ff),this[_0x52ea1a(0x551)][_0x52ea1a(0x348)]());}[_0x3b3960(0x554)](_0x1c9769){const _0xcb360f=_0x3b3960,{unitID:_0x55262d,memberID:_0x34cbce,textRanges:_0x5ede5c}=_0x1c9769,_0x2ea6e5=_0x2763e1(_0x5ede5c),_0x56ded8={'unitID':_0x55262d,'memberID':_0x34cbce,'selection':_0x2ea6e5};this[_0xcb360f(0x551)][_0xcb360f(0x2b0)](_0x56ded8);}}var _0x301f1c=Object[_0x3b3960(0x57c)],_0x526fda=Object['getOwnPropertyDescriptor'],_0x30f0ed=(_0x1d6b89,_0x33d9fa,_0x3dd736,_0x1498ad)=>{const _0x1c946b=_0x3b3960;for(var _0x6fde78=_0x1498ad>0x1?void 0x0:_0x1498ad?_0x526fda(_0x33d9fa,_0x3dd736):_0x33d9fa,_0x186602=_0x1d6b89[_0x1c946b(0x306)]-0x1,_0x3149e2;_0x186602>=0x0;_0x186602--)(_0x3149e2=_0x1d6b89[_0x186602])&&(_0x6fde78=(_0x1498ad?_0x3149e2(_0x33d9fa,_0x3dd736,_0x6fde78):_0x3149e2(_0x6fde78))||_0x6fde78);return _0x1498ad&&_0x6fde78&&_0x301f1c(_0x33d9fa,_0x3dd736,_0x6fde78),_0x6fde78;},_0x4368d2=(_0xef3e18,_0xa2999d)=>(_0xdc0796,_0x5b631b)=>_0xa2999d(_0xdc0796,_0x5b631b,_0xef3e18);function _0x363e07(_0x1ad963){const _0x2b672b=_0x3b3960,{unitID:_0x555dd8,mutations:_0xcd29f6}=_0x1ad963;return{'unitId':_0x555dd8,'subUnitId':_0xcd29f6[0x0][_0x2b672b(0x358)][_0x2b672b(0x324)]};}let _0x319b0c=class{constructor(_0x407f62,_0x23c1a8){const _0x50b712=_0x3b3960;this['_injector']=_0x407f62,this[_0x50b712(0x3b1)]=_0x23c1a8;}[_0x3b3960(0x2c8)](_0x2aad70){const _0x2f3d65=_0x3b3960;var _0x224307,_0x1b1c91,_0x2002e6;const _0x222f49=this[_0x2f3d65(0x3f4)][_0x2f3d65(0x3b9)](_0x3d1b6a[_0x2f3d65(0x42a)]),{unitId:_0x2049fd,subUnitId:_0x537a59}=_0x363e07(_0x2aad70),_0x561662=_0x222f49[_0x2f3d65(0x363)](_0x2049fd)['getCurrentSelections']();if(_0x561662[_0x2f3d65(0x306)]===0x0||!_0x2049fd||!_0x537a59)return;const _0x6e159b=[{'id':_0x3d1b6a[_0x2f3d65(0x23d)]['id'],'params':{'unitId':_0x2049fd,'subUnitId':_0x537a59,'selections':_0x2015b3[_0x2f3d65(0x471)]['deepClone'](_0x561662)}}],_0xceb172=this[_0x2f3d65(0x3b1)][_0x2f3d65(0x2dc)](_0x2aad70,_0x6e159b);if(!_0x106736['isTransformMutationsWithChangesetSuccess'](_0xceb172))throw _0xceb172[_0x2f3d65(0x50b)];const _0x500377=(_0x2002e6=(_0x1b1c91=(_0x224307=_0xceb172[_0x2f3d65(0x4af)][0x0])==null?void 0x0:_0x224307[_0x2f3d65(0x358)])==null?void 0x0:_0x1b1c91[_0x2f3d65(0x285)])!=null?_0x2002e6:_0x561662;Array[_0x2f3d65(0x31d)](_0x500377)&&_0x500377[_0x2f3d65(0x306)]&&this[_0x2f3d65(0x3f4)][_0x2f3d65(0x3b9)](_0x2015b3[_0x2f3d65(0x259)])[_0x2f3d65(0x44d)](_0x3d1b6a[_0x2f3d65(0x23d)]['id'],{'unitId':_0x2049fd,'subUnitId':_0x537a59,'selections':_0x500377});}};_0x319b0c=_0x30f0ed([_0x4368d2(0x0,_0x2015b3['Inject'](_0x2015b3[_0x3b3960(0x56e)])),_0x4368d2(0x1,_0x106736[_0x3b3960(0x25a)])],_0x319b0c);const _0xa95be5=new Set([_0x3d1b6a[_0x3b3960(0x54c)]['id']]);function _0x3f4fdd(_0x52969a,_0x7d4087,_0x176550,_0x578d2b,_0x16cdbe){const _0x1b7182=_0x3b3960;var _0x1a4466,_0x26528a,_0x3348bd,_0x67ec1c;const _0x2efc69=[];for(const _0x11b0f1 of _0x52969a)if(_0xa95be5[_0x1b7182(0x337)](_0x11b0f1['id'])){if(_0x2efc69[_0x1b7182(0x306)]>0x0)break;_0x2efc69[_0x1b7182(0x279)](_0x11b0f1);break;}else _0x2efc69[_0x1b7182(0x279)](_0x11b0f1);const _0xf8e4bc=(_0x26528a=(_0x1a4466=_0x16cdbe[_0x1b7182(0x25b)]())==null?void 0x0:_0x1a4466['userID'])!=null?_0x26528a:_0x1b7182(0x5cc),_0x5e17c2=(_0x67ec1c=(_0x3348bd=_0x16cdbe[_0x1b7182(0x25b)]())==null?void 0x0:_0x3348bd[_0x1b7182(0x2e8)])!=null?_0x67ec1c:_0x1b7182(0x5cc);return{'changeset':{'unitID':_0x7d4087,'type':_0x106736[_0x1b7182(0x52b)](_0x176550[_0x1b7182(0x24e)](_0x7d4087)),'baseRev':_0x578d2b[_0x1b7182(0x556)](_0x7d4087),'revision':0x0,'userID':_0xf8e4bc,'memberID':_0x5e17c2,'mutations':_0x2efc69},'pendingMutations':_0x52969a[_0x1b7182(0x52e)](_0x2efc69[_0x1b7182(0x306)])};}function _0x54f293(_0x5281d3,_0x313168,_0x57bc8f,_0x515741,_0x25ea2d){const _0x2eb86d=_0x3b3960;var _0xd24528,_0x255b09,_0x5773eb,_0xcb0a25;const _0x5116ac=[_0x5281d3[_0x2eb86d(0x230)]((_0x25e295,_0x9cc2f9)=>{const _0xff81eb=_0x2eb86d;var _0x55f409;const {id:_0x3a7d5c}=_0x25e295,{id:_0x3c6b7a,type:_0x137e1e}=_0x9cc2f9,_0x191674=(_0x55f409=_0x25e295[_0xff81eb(0x358)])!=null?_0x55f409:{'actions':null},_0x2753f8=_0x9cc2f9[_0xff81eb(0x358)];if(_0x3a7d5c&&_0x3a7d5c!==_0x3c6b7a)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x3a7d5c+'\x20-\x20'+_0x3c6b7a+'.');return{..._0x25e295,'id':_0x3c6b7a,'type':_0x137e1e,'params':{'unitId':_0x2753f8['unitId'],'textRanges':_0x2753f8['textRanges'],'actions':_0x2015b3[_0xff81eb(0x257)][_0xff81eb(0x4ba)](_0x191674[_0xff81eb(0x59b)],_0x2753f8[_0xff81eb(0x59b)])}};},{})],_0x45c58e=(_0x255b09=(_0xd24528=_0x25ea2d[_0x2eb86d(0x25b)]())==null?void 0x0:_0xd24528[_0x2eb86d(0x4e4)])!=null?_0x255b09:_0x2eb86d(0x5cc),_0x5eb333=(_0xcb0a25=(_0x5773eb=_0x25ea2d['getCurrentUser']())==null?void 0x0:_0x5773eb['memberID'])!=null?_0xcb0a25:_0x2eb86d(0x5cc);return{'changeset':{'unitID':_0x313168,'type':_0x106736[_0x2eb86d(0x52b)](_0x57bc8f[_0x2eb86d(0x24e)](_0x313168)),'baseRev':_0x515741[_0x2eb86d(0x556)](_0x313168),'revision':0x0,'userID':_0x45c58e,'memberID':_0x5eb333,'mutations':_0x5116ac},'pendingMutations':[]};}const _0x20d280={'id':_0x3d1b6a['EmptyMutation']['id'],'type':_0x2015b3['CommandType']['MUTATION'],'params':{}};var _0x46eabf=Object[_0x3b3960(0x57c)],_0x3297d4=Object[_0x3b3960(0x2c2)],_0x2f90f8=(_0x2f8dc4,_0x1bac49,_0xb8b090,_0x36530f)=>{for(var _0x255bc5=_0x36530f>0x1?void 0x0:_0x36530f?_0x3297d4(_0x1bac49,_0xb8b090):_0x1bac49,_0x471512=_0x2f8dc4['length']-0x1,_0x338967;_0x471512>=0x0;_0x471512--)(_0x338967=_0x2f8dc4[_0x471512])&&(_0x255bc5=(_0x36530f?_0x338967(_0x1bac49,_0xb8b090,_0x255bc5):_0x338967(_0x255bc5))||_0x255bc5);return _0x36530f&&_0x255bc5&&_0x46eabf(_0x1bac49,_0xb8b090,_0x255bc5),_0x255bc5;},_0x108b1a=(_0x3688f6,_0x501da1)=>(_0x4dc955,_0x2dc4de)=>_0x501da1(_0x4dc955,_0x2dc4de,_0x3688f6),_0xe45813=(_0x1c1dbb=>(_0x1c1dbb['NOT_COLLAB']=_0x3b3960(0x25d),_0x1c1dbb['SYNCED']=_0x3b3960(0x5e2),_0x1c1dbb[_0x3b3960(0x529)]='pending',_0x1c1dbb['AWAITING']='awaiting',_0x1c1dbb[_0x3b3960(0x282)]='awaiting_with_pending',_0x1c1dbb['FETCH_MISS']=_0x3b3960(0x3ce),_0x1c1dbb[_0x3b3960(0x505)]=_0x3b3960(0x34b),_0x1c1dbb['OFFLINE']=_0x3b3960(0x5d2),_0x1c1dbb))(_0xe45813||{});class _0x1e4aa1{constructor(_0x2784f3,_0x9b39e2,_0xb319c3,_0xe96531,_0x50b687,_0x425456,_0x520982,_0xe67cb4,_0x38e830){const _0x45a70b=_0x3b3960;_0x385cfe(this,'_awaitingChangeset',null),_0x385cfe(this,_0x45a70b(0x223),[]),(this[_0x45a70b(0x353)]=_0x2784f3,this[_0x45a70b(0x376)]=_0x9b39e2,this[_0x45a70b(0x3ef)]=_0x50b687,this[_0x45a70b(0x286)]=_0x425456,this[_0x45a70b(0x308)]=_0x520982,this[_0x45a70b(0x59c)]=_0xe67cb4,this[_0x45a70b(0x24b)]=_0x38e830,this[_0x45a70b(0x21d)]=_0xb319c3,this[_0x45a70b(0x223)]=_0xe96531);}[_0x3b3960(0x541)](_0x18bf06){const _0x112752=_0x3b3960,_0x32e216=this[_0x112752(0x59c)]['getCurrentRevForDocument'](this[_0x112752(0x353)]);return _0x18bf06[_0x112752(0x3e7)]>_0x32e216+0x1?(this['_handler']['onMissingChangesets']({'from':_0x32e216,'to':_0x18bf06[_0x112752(0x3e7)]-0x1}),!0x0):!0x1;}[_0x3b3960(0x224)](_0x109779){const _0x76d41f=_0x3b3960;this['_undoRedoService']['transformUndoRedo'](this[_0x76d41f(0x353)],_0x109779);}['_transformSelections'](_0x325037){const _0x33e50b=_0x3b3960;var _0x53b124,_0x3eafd7;(_0x3eafd7=(_0x53b124=this['_handler'])['onTransformSelections'])==null||_0x3eafd7[_0x33e50b(0x415)](_0x53b124,_0x325037);}[_0x3b3960(0x3d9)](_0x34f190){const _0x359496=_0x3b3960;var _0x18ebcb,_0xeb5515;return(_0xeb5515=(_0x18ebcb=this['_handler'])[_0x359496(0x49a)])==null?void 0x0:_0xeb5515[_0x359496(0x415)](_0x18ebcb,_0x34f190);}[_0x3b3960(0x5b6)](_0x4c3c23){const _0x12082e=_0x3b3960;var _0x18c2fd,_0x37ff74,_0x393007;return(_0x393007=(_0x37ff74=(_0x18c2fd=this[_0x12082e(0x3ef)])[_0x12082e(0x5d4)])==null?void 0x0:_0x37ff74[_0x12082e(0x415)](_0x18c2fd,_0x4c3c23))!=null?_0x393007:_0x4c3c23;}['_syncEditingCollabCursor'](_0x33fcf2){const _0x13eca0=_0x3b3960;var _0x302d96,_0x3e3ab9;if(this[_0x13eca0(0x376)]===_0x32a37d[_0x13eca0(0x361)]){const {unitID:_0x9c4c33,mutations:_0x396051,memberID:_0x42df38}=_0x33fcf2,_0x533473=_0x396051[0x0][_0x13eca0(0x358)][_0x13eca0(0x23f)];Array[_0x13eca0(0x31d)](_0x533473)&&_0x533473[_0x13eca0(0x306)]>0x0&&((_0x3e3ab9=(_0x302d96=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x3e3ab9[_0x13eca0(0x415)](_0x302d96,{'unitID':_0x9c4c33,'memberID':_0x42df38,'textRanges':_0x533473}));}}[_0x3b3960(0x246)](){const _0x4c04d7=_0x3b3960;this[_0x4c04d7(0x24b)][_0x4c04d7(0x53d)](this[_0x4c04d7(0x353)],this[_0x4c04d7(0x376)],this['_awaitingChangeset'],this[_0x4c04d7(0x223)]);}[_0x3b3960(0x3ee)](){const _0x28f002=_0x3b3960;return this['_revisionService'][_0x28f002(0x556)](this[_0x28f002(0x353)]);}[_0x3b3960(0x5a6)](){const _0x2bcf83=_0x3b3960;this['_revisionService'][_0x2bcf83(0x3b4)](this[_0x2bcf83(0x353)]);}['_executeRemoteChangeset'](_0x58694){const _0x307e51=_0x3b3960;var _0x1bba30;const _0xcc4ef7=this['_transformRemoteChangesetByIMECache'](_0x58694),_0x1c896c=_0x2015b3['sequenceExecute'](_0xcc4ef7[_0x307e51(0x2e7)],this['_commandService'],{'fromCollab':!0x0});if(!_0x1c896c[_0x307e51(0x473)])throw _0x1c896c['error']instanceof Error?_0x1c896c[_0x307e51(0x50b)]:new Error((_0x1bba30=_0x1c896c[_0x307e51(0x50b)])!=null?_0x1bba30:_0x307e51(0x5f7));this['_transformIMECache'](_0xcc4ef7),this['_transformUndoredo'](_0x58694),this[_0x307e51(0x404)](_0xcc4ef7),this['_syncEditingCollabCursor'](_0xcc4ef7),this[_0x307e51(0x5a6)]();}}let _0x51907c=class extends _0x1e4aa1{constructor(_0x5c4b3a,_0x3adbdf,_0x50427f,_0x2e68f,_0x22283f,_0x2cf407,_0x1eacd4,_0x8a3e6f,_0x443de4,_0x5be05a){const _0x54fec9=_0x3b3960;super(_0x5c4b3a,_0x3adbdf,null,[],_0x50427f,_0x8a3e6f,_0x1eacd4,_0x2e68f,_0x22283f),_0x385cfe(this,_0x54fec9(0x268),_0x54fec9(0x5e2)),(this['_injector']=_0x2cf407,this[_0x54fec9(0x501)]=_0x443de4,this['_transformService']=_0x5be05a);}[_0x3b3960(0x2eb)](_0x5201c7){const _0x1f99bf=_0x3b3960,_0xc58ea3=this[_0x1f99bf(0x3f4)][_0x1f99bf(0x385)](_0x977b19,this[_0x1f99bf(0x353)],this[_0x1f99bf(0x376)],[_0x5201c7],this[_0x1f99bf(0x3ef)]);return _0xc58ea3[_0x1f99bf(0x524)](),_0xc58ea3['_updateLocalCache'](),_0xc58ea3;}['onRemoteChangeset'](_0x1c1797){const _0x221146=_0x3b3960;if(this[_0x221146(0x541)](_0x1c1797))return this[_0x221146(0x3f4)][_0x221146(0x385)](_0x1f1e9a,this[_0x221146(0x353)],this[_0x221146(0x376)],null,[],null,[_0x1c1797],this[_0x221146(0x3ef)]);try{const _0x529d69=this[_0x221146(0x3b1)][_0x221146(0x2dc)](_0x1c1797,[_0x20d280]);if(_0x106736[_0x221146(0x58d)](_0x529d69)){const {c1Prime:_0x5040f6}=_0x529d69;return this[_0x221146(0x2a9)](_0x5040f6),this;}throw _0x529d69[_0x221146(0x50b)];}catch(_0x13fcd1){return this['_logService'][_0x221146(0x50b)](_0x13fcd1),this[_0x221146(0x438)](!0x1);}}[_0x3b3960(0x438)](_0x4d2625){const _0x3dba8a=_0x3b3960;return this[_0x3dba8a(0x3f4)][_0x3dba8a(0x385)](_0x3132e7,this[_0x3dba8a(0x353)],this[_0x3dba8a(0x376)],null,[],this['_handler'],_0x4d2625);}[_0x3b3960(0x357)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x594828=_0x3b3960;throw new Error(_0x594828(0x23e));}[_0x3b3960(0x55f)](){const _0x58b95d=_0x3b3960;return this['_injector']['createInstance'](_0x3a6b9d,this[_0x58b95d(0x353)],this[_0x58b95d(0x376)],null,[],this[_0x58b95d(0x3ef)]);}['toggleOnline'](){return this;}[_0x3b3960(0x474)](){const _0x4ebe1a=_0x3b3960;throw new Error(_0x4ebe1a(0x567));}};_0x51907c=_0x2f90f8([_0x108b1a(0x3,_0x2015b3[_0x3b3960(0x547)](_0x106736['RevisionService'])),_0x108b1a(0x4,_0x2015b3[_0x3b3960(0x547)](_0x2c3354['LocalCacheService'])),_0x108b1a(0x5,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x108b1a(0x6,_0x2015b3['IUndoRedoService']),_0x108b1a(0x7,_0x2015b3[_0x3b3960(0x259)]),_0x108b1a(0x8,_0x2015b3['ILogService']),_0x108b1a(0x9,_0x106736[_0x3b3960(0x25a)])],_0x51907c);let _0x977b19=class extends _0x1e4aa1{constructor(_0x35b685,_0x4be914,_0x18da74,_0x2557ac,_0x4c8878,_0x5ba697,_0x1d42d7,_0x2a3993,_0x3e8004,_0x3635bd,_0x1c276f,_0x29def6,_0xd68029,_0x1d7fae){const _0x4a37a9=_0x3b3960;super(_0x35b685,_0x4be914,null,_0x18da74,_0x2557ac,_0x3635bd,_0x1d7fae,_0x5ba697,_0x1d42d7),_0x385cfe(this,'status',_0x4a37a9(0x4d6)),_0x385cfe(this,_0x4a37a9(0x5ba),null),_0x385cfe(this,_0x4a37a9(0x271),null),(this[_0x4a37a9(0x3f4)]=_0x4c8878,this['_memberService']=_0x2a3993,this[_0x4a37a9(0x501)]=_0x3e8004,this[_0x4a37a9(0x46c)]=_0x1c276f,this[_0x4a37a9(0x3b1)]=_0x29def6,this[_0x4a37a9(0x5b7)]=_0xd68029);}[_0x3b3960(0x2eb)](_0x35f912){const _0x5127d1=_0x3b3960;return this['_pendingMutations'][_0x5127d1(0x279)](_0x35f912),this[_0x5127d1(0x246)](),this;}['onRemoteChangeset'](_0x45ea75){const _0x48bb75=_0x3b3960;if(this[_0x48bb75(0x541)](_0x45ea75))return this[_0x48bb75(0x482)](),this['_injector']['createInstance'](_0x1f1e9a,this[_0x48bb75(0x353)],this[_0x48bb75(0x376)],null,this[_0x48bb75(0x223)],null,[_0x45ea75],this[_0x48bb75(0x3ef)]);try{const _0x48c732=this[_0x48bb75(0x3b1)][_0x48bb75(0x2dc)](_0x45ea75,this[_0x48bb75(0x223)]);if(_0x106736[_0x48bb75(0x58d)](_0x48c732)){const {c1Prime:_0x154f9c,m2Prime:_0x5995ae}=_0x48c732;this[_0x48bb75(0x2a9)](_0x154f9c);const _0x10015e=this['_injector']['createInstance'](_0x977b19,this[_0x48bb75(0x353)],this[_0x48bb75(0x376)],_0x5995ae,this[_0x48bb75(0x3ef)]);return this[_0x48bb75(0x482)](),_0x10015e[_0x48bb75(0x524)](this[_0x48bb75(0x5ba)]?Math[_0x48bb75(0x2d6)](0x0,new Date()['getTime']()-this[_0x48bb75(0x5ba)]):this['_getSendChangesetTimeout']()),_0x10015e;}throw _0x48c732[_0x48bb75(0x50b)];}catch(_0x2997e5){return this['_logService']['error'](_0x2997e5),this['_onConflict'](!0x1);}}[_0x3b3960(0x357)](){const _0x17aac2=_0x3b3960;throw new Error(_0x17aac2(0x347));}[_0x3b3960(0x311)](){const _0x242e5f=_0x3b3960;throw new Error(_0x242e5f(0x37d));}[_0x3b3960(0x55f)](){const _0x4b00de=_0x3b3960;return this['_clearScheduledTask'](),this['_injector'][_0x4b00de(0x385)](_0x3a6b9d,this['unitID'],this[_0x4b00de(0x376)],null,this[_0x4b00de(0x223)],this[_0x4b00de(0x3ef)]);}[_0x3b3960(0x328)](){return this;}[_0x3b3960(0x524)](_0x2a8c3b){const _0xec9f20=_0x3b3960;_0x2a8c3b=_0x2a8c3b!=null?_0x2a8c3b:this[_0xec9f20(0x40d)](),this[_0xec9f20(0x5ba)]=new Date()['getTime'](),this[_0xec9f20(0x271)]=setTimeout(()=>{const _0x3ba981=_0xec9f20;this[_0x3ba981(0x482)]();let _0x51113b=null;switch(this[_0x3ba981(0x376)]){case _0x32a37d[_0x3ba981(0x321)]:{_0x51113b=_0x3f4fdd(this[_0x3ba981(0x223)],this[_0x3ba981(0x353)],this[_0x3ba981(0x5b7)],this[_0x3ba981(0x59c)],this[_0x3ba981(0x5e7)]);break;}case _0x32a37d[_0x3ba981(0x361)]:{this[_0x3ba981(0x223)]['every'](_0x4197a6=>_0x4197a6['id']===_0xbcf55e[_0x3ba981(0x446)]['id'])?_0x51113b=_0x54f293(this[_0x3ba981(0x223)],this[_0x3ba981(0x353)],this['_univerInstanceService'],this[_0x3ba981(0x59c)],this['_memberService']):_0x51113b=_0x3f4fdd(this[_0x3ba981(0x223)],this[_0x3ba981(0x353)],this['_univerInstanceService'],this[_0x3ba981(0x59c)],this[_0x3ba981(0x5e7)]);break;}default:throw new Error(_0x3ba981(0x5b5)+this[_0x3ba981(0x376)]+'\x20in\x20_schedule.');}const {changeset:_0x43137e,pendingMutations:_0x573be3}=_0x51113b;this[_0x3ba981(0x3ef)]['onSendChangeset'](_0x43137e);const _0x4c4dd5=_0x573be3[_0x3ba981(0x306)]?this['_injector'][_0x3ba981(0x385)](_0x270522,this['unitID'],this['type'],_0x43137e,_0x573be3,this[_0x3ba981(0x3ef)]):this['_injector'][_0x3ba981(0x385)](_0x25747b,this[_0x3ba981(0x353)],this['type'],_0x43137e,this[_0x3ba981(0x3ef)]);_0x4c4dd5[_0x3ba981(0x246)](),this[_0x3ba981(0x3ef)][_0x3ba981(0x20e)](this,_0x4c4dd5);},_0x2a8c3b);}[_0x3b3960(0x40d)](){const _0x48d198=_0x3b3960;var _0x5c9c27;return(_0x5c9c27=this[_0x48d198(0x46c)][_0x48d198(0x584)](_0x5cb8bb))!=null?_0x5c9c27:0x7d0;}[_0x3b3960(0x474)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x15ca4e=_0x3b3960;this[_0x15ca4e(0x271)]!=null&&(clearTimeout(this[_0x15ca4e(0x271)]),this[_0x15ca4e(0x271)]=null);}[_0x3b3960(0x438)](_0xe0999f){const _0x31d12f=_0x3b3960;return this[_0x31d12f(0x482)](),this['_injector'][_0x31d12f(0x385)](_0x3132e7,this[_0x31d12f(0x353)],this[_0x31d12f(0x376)],null,this[_0x31d12f(0x223)],this[_0x31d12f(0x3ef)],_0xe0999f);}};_0x977b19=_0x2f90f8([_0x108b1a(0x4,_0x2015b3['Inject'](_0x2015b3[_0x3b3960(0x56e)])),_0x108b1a(0x5,_0x2015b3[_0x3b3960(0x547)](_0x106736['RevisionService'])),_0x108b1a(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x108b1a(0x7,_0x2015b3[_0x3b3960(0x547)](_0x25752c)),_0x108b1a(0x8,_0x2015b3['ILogService']),_0x108b1a(0x9,_0x2015b3[_0x3b3960(0x259)]),_0x108b1a(0xa,_0x2015b3[_0x3b3960(0x582)]),_0x108b1a(0xb,_0x106736[_0x3b3960(0x25a)]),_0x108b1a(0xc,_0x2015b3['IUniverInstanceService']),_0x108b1a(0xd,_0x2015b3[_0x3b3960(0x445)])],_0x977b19);let _0x25747b=class extends _0x1e4aa1{constructor(_0x59b3b2,_0x534b93,_0x5686c1,_0x4c09ea,_0x2dcd57,_0x536c0a,_0x55c06d,_0x4390f8,_0x180da1,_0x4495ec,_0x4e0c9e){const _0x47de9d=_0x3b3960;super(_0x59b3b2,_0x534b93,_0x5686c1,[],_0x4c09ea,_0x4390f8,_0x4e0c9e,_0x536c0a,_0x55c06d),_0x385cfe(this,_0x47de9d(0x268),'awaiting'),(this[_0x47de9d(0x3f4)]=_0x2dcd57,this[_0x47de9d(0x501)]=_0x180da1,this[_0x47de9d(0x3b1)]=_0x4495ec);}[_0x3b3960(0x2eb)](_0x5dbee2){const _0x202eba=_0x3b3960,_0x268cfa=this[_0x202eba(0x3f4)][_0x202eba(0x385)](_0x270522,this[_0x202eba(0x353)],this[_0x202eba(0x376)],this[_0x202eba(0x21d)],[_0x5dbee2],this[_0x202eba(0x3ef)]);return _0x268cfa[_0x202eba(0x246)](),_0x268cfa;}[_0x3b3960(0x594)](_0x52b870){const _0x3a831e=_0x3b3960;if(this[_0x3a831e(0x541)](_0x52b870))return this['_injector'][_0x3a831e(0x385)](_0x1f1e9a,this['unitID'],this[_0x3a831e(0x376)],this[_0x3a831e(0x21d)],[],null,[_0x52b870],this[_0x3a831e(0x3ef)]);try{const _0x730f4b=this[_0x3a831e(0x3b1)]['transformChangesets']([_0x52b870],[this[_0x3a831e(0x21d)]],!0x1);if(_0x106736[_0x3a831e(0x408)](_0x730f4b)){const {c1Prime:_0x57a309,c2Prime:_0x382f88}=_0x730f4b;this[_0x3a831e(0x2a9)](_0x57a309[0x0]),_0x382f88[0x0][_0x3a831e(0x58e)]=this[_0x3a831e(0x3ee)]();const _0x49477c=this[_0x3a831e(0x3f4)][_0x3a831e(0x385)](_0x25747b,this[_0x3a831e(0x353)],this[_0x3a831e(0x376)],_0x382f88[0x0],this[_0x3a831e(0x3ef)]);return _0x49477c[_0x3a831e(0x246)](),_0x49477c;}return this[_0x3a831e(0x438)](!0x1);}catch(_0x2c0086){return this['_logService'][_0x3a831e(0x50b)](_0x2c0086),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x36582f){const _0x279192=_0x3b3960,_0x296b73=this[_0x279192(0x59c)][_0x279192(0x556)](this[_0x279192(0x353)]);if(_0x36582f[_0x279192(0x3e7)]<_0x296b73-0x1)return this;if(this[_0x279192(0x541)](_0x36582f))return this[_0x279192(0x3f4)][_0x279192(0x385)](_0x1f1e9a,this[_0x279192(0x353)],this['type'],null,[],this[_0x279192(0x21d)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x2789ff=this[_0x279192(0x3f4)][_0x279192(0x385)](_0x51907c,this[_0x279192(0x353)],this[_0x279192(0x376)],this[_0x279192(0x3ef)]);return _0x2789ff[_0x279192(0x246)](),_0x2789ff;}[_0x3b3960(0x311)](_0x1b973f){const _0x3114f0=_0x3b3960;return this[_0x3114f0(0x438)](!!(_0x1b973f!=null&&_0x1b973f[_0x3114f0(0x42d)]));}['toggleOffline'](){const _0x23c9d5=_0x3b3960;return this['_injector'][_0x23c9d5(0x385)](_0x3a6b9d,this[_0x23c9d5(0x353)],this[_0x23c9d5(0x376)],this[_0x23c9d5(0x21d)],[],this[_0x23c9d5(0x3ef)]);}[_0x3b3960(0x328)](){return this;}[_0x3b3960(0x474)](){const _0x1c2667=_0x3b3960;this[_0x1c2667(0x3ef)][_0x1c2667(0x546)](this[_0x1c2667(0x21d)]);}['_onConflict'](_0x54bd43){const _0x3e70c8=_0x3b3960;return this[_0x3e70c8(0x3f4)][_0x3e70c8(0x385)](_0x3132e7,this[_0x3e70c8(0x353)],this[_0x3e70c8(0x376)],this[_0x3e70c8(0x21d)],[],this[_0x3e70c8(0x3ef)],_0x54bd43);}};_0x25747b=_0x2f90f8([_0x108b1a(0x4,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x108b1a(0x5,_0x2015b3['Inject'](_0x106736[_0x3b3960(0x3e9)])),_0x108b1a(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x108b1a(0x7,_0x2015b3[_0x3b3960(0x259)]),_0x108b1a(0x8,_0x2015b3['ILogService']),_0x108b1a(0x9,_0x106736['ITransformService']),_0x108b1a(0xa,_0x2015b3[_0x3b3960(0x445)])],_0x25747b);let _0x270522=class extends _0x1e4aa1{constructor(_0x200de2,_0x304870,_0xc4d797,_0x5d1b84,_0x181914,_0x47918a,_0x3fa431,_0x37381b,_0x1361dd,_0x37e7c3,_0x51f599,_0x4e44fe){const _0x5035d9=_0x3b3960;super(_0x200de2,_0x304870,_0xc4d797,_0x5d1b84,_0x181914,_0x1361dd,_0x4e44fe,_0x3fa431,_0x37381b),_0x385cfe(this,_0x5035d9(0x268),_0x5035d9(0x2d3)),(this[_0x5035d9(0x3f4)]=_0x47918a,this[_0x5035d9(0x501)]=_0x37e7c3,this[_0x5035d9(0x3b1)]=_0x51f599);}[_0x3b3960(0x2eb)](_0x47fb2a){const _0xcb14f8=_0x3b3960;return this[_0xcb14f8(0x223)][_0xcb14f8(0x279)](_0x47fb2a),this;}[_0x3b3960(0x594)](_0x3e0b84){const _0x966109=_0x3b3960;if(this[_0x966109(0x541)](_0x3e0b84))return this[_0x966109(0x3f4)][_0x966109(0x385)](_0x1f1e9a,this[_0x966109(0x353)],this[_0x966109(0x376)],this[_0x966109(0x21d)],this[_0x966109(0x223)],null,[_0x3e0b84],this['_handler']);try{const _0x389d05=this[_0x966109(0x3b1)][_0x966109(0x54b)]([_0x3e0b84],[this[_0x966109(0x21d)]],!0x1);if(_0x106736[_0x966109(0x408)](_0x389d05)){const {c1Prime:_0x3e3807,c2Prime:_0x4d90ef}=_0x389d05,_0x216120=this[_0x966109(0x3b1)][_0x966109(0x2dc)](_0x3e3807[0x0],this[_0x966109(0x223)]);if(_0x106736[_0x966109(0x58d)](_0x216120)){const {c1Prime:_0x531ffc,m2Prime:_0x10e51c}=_0x216120;return this[_0x966109(0x2a9)](_0x531ffc),_0x4d90ef[0x0][_0x966109(0x58e)]=this[_0x966109(0x3ee)](),this[_0x966109(0x3f4)]['createInstance'](_0x270522,this[_0x966109(0x353)],this[_0x966109(0x376)],_0x4d90ef[0x0],_0x10e51c,this['_handler']);}throw _0x216120[_0x966109(0x50b)];}throw _0x389d05[_0x966109(0x50b)];}catch(_0x483b33){return this[_0x966109(0x501)][_0x966109(0x50b)](_0x483b33),this[_0x966109(0x438)](!0x1);}}[_0x3b3960(0x357)](_0x415def){const _0x556d25=_0x3b3960;if(this[_0x556d25(0x541)](_0x415def))return this['_injector'][_0x556d25(0x385)](_0x1f1e9a,this[_0x556d25(0x353)],this[_0x556d25(0x376)],null,this[_0x556d25(0x223)],this[_0x556d25(0x21d)],[],this['_handler']);this[_0x556d25(0x5a6)]();const _0x2a4101=this[_0x556d25(0x3f4)]['createInstance'](_0x977b19,this[_0x556d25(0x353)],this[_0x556d25(0x376)],this[_0x556d25(0x223)],this['_handler']);return _0x2a4101['_schedule'](),_0x2a4101['_updateLocalCache'](),_0x2a4101;}[_0x3b3960(0x311)](_0x52c661){const _0x6c363d=_0x3b3960;return this[_0x6c363d(0x438)](!!(_0x52c661!=null&&_0x52c661[_0x6c363d(0x42d)]));}[_0x3b3960(0x55f)](){const _0x592168=_0x3b3960;return this[_0x592168(0x3f4)]['createInstance'](_0x3a6b9d,this['unitID'],this['type'],this[_0x592168(0x21d)],this['_pendingMutations'],this[_0x592168(0x3ef)]);}[_0x3b3960(0x328)](){return this;}[_0x3b3960(0x474)](){const _0x362a8c=_0x3b3960;this[_0x362a8c(0x3ef)][_0x362a8c(0x546)](this[_0x362a8c(0x21d)]);}[_0x3b3960(0x438)](_0x11b425){const _0x9c7dff=_0x3b3960;return this[_0x9c7dff(0x3f4)][_0x9c7dff(0x385)](_0x3132e7,this[_0x9c7dff(0x353)],this[_0x9c7dff(0x376)],null,this[_0x9c7dff(0x223)],this[_0x9c7dff(0x3ef)],_0x11b425);}};_0x270522=_0x2f90f8([_0x108b1a(0x5,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x108b1a(0x6,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x3e9)])),_0x108b1a(0x7,_0x2015b3['Inject'](_0x2c3354[_0x3b3960(0x3dc)])),_0x108b1a(0x8,_0x2015b3[_0x3b3960(0x259)]),_0x108b1a(0x9,_0x2015b3[_0x3b3960(0x1f3)]),_0x108b1a(0xa,_0x106736[_0x3b3960(0x25a)]),_0x108b1a(0xb,_0x2015b3[_0x3b3960(0x445)])],_0x270522);let _0x3132e7=class extends _0x1e4aa1{constructor(_0x246c90,_0x5b4db0,_0x221524,_0x4c8d84,_0x340e98,_0x38af2b=!0x1,_0x107f8a,_0x18416f,_0x319aab,_0x5298f1,_0x3be85f,_0x52e731,_0x18c1a8){const _0xd08c46=_0x3b3960;super(_0x246c90,_0x5b4db0,_0x221524,_0x4c8d84,_0x340e98,_0x18416f,_0x319aab,_0x3be85f,_0x5298f1),_0x385cfe(this,'status',_0xd08c46(0x34b)),(this[_0xd08c46(0x231)]=_0x38af2b,this[_0xd08c46(0x518)]=_0x107f8a,this[_0xd08c46(0x23b)]=_0x52e731,this[_0xd08c46(0x419)]=_0x18c1a8,this[_0xd08c46(0x542)](),this['_clearLocalCache'](),this[_0xd08c46(0x372)]());}[_0x3b3960(0x2eb)](){return this;}[_0x3b3960(0x594)](){return this;}[_0x3b3960(0x357)](){return this;}[_0x3b3960(0x311)](){return this;}[_0x3b3960(0x55f)](){return this;}[_0x3b3960(0x328)](){return this;}[_0x3b3960(0x474)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3b3960(0x5c4)](){const _0x3f1fb0=_0x3b3960;this[_0x3f1fb0(0x24b)]['updateOfflineData'](this[_0x3f1fb0(0x353)],this['type'],null,[]);}[_0x3b3960(0x542)](){const _0x39282b=_0x3b3960;this[_0x39282b(0x231)]?this[_0x39282b(0x419)][_0x39282b(0x2c3)]({'title':this[_0x39282b(0x23b)]['t'](_0x39282b(0x5e3)),'content':this[_0x39282b(0x23b)]['t'](_0x39282b(0x499)),'type':_0x39282b(0x50b),'duration':0x0}):this[_0x39282b(0x419)]['show']({'title':this[_0x39282b(0x23b)]['t'](_0x39282b(0x5b3)),'content':this[_0x39282b(0x23b)]['t']('conflict.content'),'type':_0x39282b(0x50b),'duration':0x0});}[_0x3b3960(0x372)](){const _0x2b8702=_0x3b3960;this[_0x2b8702(0x518)][_0x2b8702(0x49e)](new _0x3d1b6a[(_0x2b8702(0x405))](this[_0x2b8702(0x353)])['id'],!0x1);}};_0x3132e7=_0x2f90f8([_0x108b1a(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x5d7)])),_0x108b1a(0x7,_0x2015b3[_0x3b3960(0x259)]),_0x108b1a(0x8,_0x2015b3[_0x3b3960(0x445)]),_0x108b1a(0x9,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x108b1a(0xa,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x3e9)])),_0x108b1a(0xb,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x20a)])),_0x108b1a(0xc,_0x44b766[_0x3b3960(0x27b)])],_0x3132e7);let _0x3a6b9d=class extends _0x1e4aa1{constructor(_0x2be94d,_0x5469cd,_0x110f5d,_0x327270,_0x25dccb,_0x38775a,_0x20c04f,_0x357377,_0x2605f4,_0x34fcf0){const _0x56ccb9=_0x3b3960;super(_0x2be94d,_0x5469cd,_0x110f5d,_0x327270,_0x25dccb,_0x2605f4,_0x34fcf0,_0x20c04f,_0x357377),_0x385cfe(this,_0x56ccb9(0x268),_0x56ccb9(0x5d2)),this[_0x56ccb9(0x3f4)]=_0x38775a;}[_0x3b3960(0x2eb)](_0x1f1839){const _0x2e0b36=_0x3b3960;return this[_0x2e0b36(0x223)][_0x2e0b36(0x279)](_0x1f1839),this['_updateLocalCache'](),this;}[_0x3b3960(0x594)](_0xb38988){const _0x18af3d=_0x3b3960;throw new Error(_0x18af3d(0x477));}[_0x3b3960(0x357)](){const _0x192b6f=_0x3b3960;throw new Error(_0x192b6f(0x483));}[_0x3b3960(0x311)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x3b3960(0x55f)](){return this;}[_0x3b3960(0x328)](){const _0x59250d=_0x3b3960,{_injector:_0x1eef37,_pendingMutations:_0x1864fa,_awaitingChangeset:_0x46a692,unitID:_0x5bf1fa,_handler:_0x4f151d,type:_0x589a39}=this,_0x2d1603=_0x3fc11b(_0x1eef37,_0x5bf1fa,_0x589a39,_0x46a692,_0x1864fa,_0x4f151d);return _0x2d1603 instanceof _0x977b19?_0x2d1603[_0x59250d(0x524)]():(_0x2d1603 instanceof _0x270522||_0x2d1603 instanceof _0x25747b)&&_0x2d1603[_0x59250d(0x474)](),_0x2d1603;}[_0x3b3960(0x474)](){const _0x22b6bf=_0x3b3960;throw new Error(_0x22b6bf(0x3e6));}};_0x3a6b9d=_0x2f90f8([_0x108b1a(0x5,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x108b1a(0x6,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x3e9)])),_0x108b1a(0x7,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x108b1a(0x8,_0x2015b3[_0x3b3960(0x259)]),_0x108b1a(0x9,_0x2015b3[_0x3b3960(0x445)])],_0x3a6b9d);let _0x1f1e9a=class extends _0x1e4aa1{constructor(_0x9ac8a9,_0x379767,_0x22fa3d,_0x478687,_0x5d6755,_0x48921a,_0x4c9cea,_0x3d899e,_0xdcc0ff,_0x56c643,_0x25d718,_0x29e325,_0x1c6c6d,_0x28c2d4){const _0x5d3c1c=_0x3b3960;super(_0x9ac8a9,_0x379767,_0x22fa3d,_0x478687,_0x4c9cea,_0x29e325,_0x1c6c6d,_0xdcc0ff,_0x56c643),_0x385cfe(this,_0x5d3c1c(0x268),_0x5d3c1c(0x3ce)),(this[_0x5d3c1c(0x496)]=_0x5d6755,this[_0x5d3c1c(0x3b5)]=_0x48921a,this[_0x5d3c1c(0x3f4)]=_0x3d899e,this[_0x5d3c1c(0x501)]=_0x25d718,this['_transformService']=_0x28c2d4);}[_0x3b3960(0x572)](_0x42eb38){const _0x431cee=_0x3b3960;try{const _0x529f63=[..._0x42eb38,...this[_0x431cee(0x3b5)]],_0xfa6284=[this[_0x431cee(0x21d)]||this[_0x431cee(0x496)]][_0x431cee(0x493)](_0x2c4566=>!!_0x2c4566);let _0x45660c,_0x442c08;if(_0xfa6284[_0x431cee(0x306)]){const _0x4a2f28=this[_0x431cee(0x3b1)][_0x431cee(0x54b)](_0x529f63,_0xfa6284,!0x1);if(!_0x106736[_0x431cee(0x408)](_0x4a2f28))throw _0x4a2f28[_0x431cee(0x50b)];_0x45660c=_0x4a2f28[_0x431cee(0x4f4)],_0x442c08=_0x4a2f28[_0x431cee(0x30c)];}else _0x45660c=_0x529f63,_0x442c08=[];let _0x253ee3=this[_0x431cee(0x223)];_0x45660c[_0x431cee(0x4d1)](_0x6b1b0d=>{const _0x4a4e4a=_0x431cee;let _0x5cf880;if(_0x253ee3[_0x4a4e4a(0x306)]){const _0x446409=this['_transformService'][_0x4a4e4a(0x2dc)](_0x6b1b0d,_0x253ee3);if(!_0x106736[_0x4a4e4a(0x58d)](_0x446409))throw _0x446409[_0x4a4e4a(0x50b)];_0x5cf880=_0x446409['c1Prime'],_0x253ee3=_0x446409[_0x4a4e4a(0x4af)];}else _0x5cf880=_0x6b1b0d;this[_0x4a4e4a(0x2a9)](_0x5cf880);}),this[_0x431cee(0x496)]&&this[_0x431cee(0x5a6)](),this[_0x431cee(0x21d)]&&_0x442c08[_0x431cee(0x306)]&&(_0x442c08[0x0][_0x431cee(0x58e)]=this[_0x431cee(0x3ee)]());let _0x5f032a;if(this[_0x431cee(0x21d)]&&_0x253ee3[_0x431cee(0x306)]!==0x0)_0x5f032a=this[_0x431cee(0x3f4)]['createInstance'](_0x270522,this['unitID'],this['type'],_0x442c08[0x0],_0x253ee3,this[_0x431cee(0x3ef)]);else{if(this[_0x431cee(0x21d)]&&_0x253ee3['length']===0x0)_0x442c08[0x0][_0x431cee(0x58e)]=this[_0x431cee(0x3ee)](),_0x5f032a=this[_0x431cee(0x3f4)][_0x431cee(0x385)](_0x25747b,this[_0x431cee(0x353)],this[_0x431cee(0x376)],_0x442c08[0x0],this[_0x431cee(0x3ef)]);else{if(_0x253ee3[_0x431cee(0x306)]!==0x0){const _0x3a95d0=this[_0x431cee(0x3f4)][_0x431cee(0x385)](_0x977b19,this['unitID'],this[_0x431cee(0x376)],_0x253ee3,this[_0x431cee(0x3ef)]);_0x3a95d0[_0x431cee(0x524)](),_0x5f032a=_0x3a95d0;}else _0x5f032a=this[_0x431cee(0x3f4)][_0x431cee(0x385)](_0x51907c,this[_0x431cee(0x353)],this['type'],this[_0x431cee(0x3ef)]);}}return _0x5f032a[_0x431cee(0x246)](),_0x5f032a;}catch(_0x257d81){return this[_0x431cee(0x501)][_0x431cee(0x50b)]('[FetchMissState]',_0x431cee(0x57d),_0x257d81),this[_0x431cee(0x3f4)]['createInstance'](_0x3132e7,this[_0x431cee(0x353)],this[_0x431cee(0x376)],this[_0x431cee(0x21d)],this['_pendingMutations'],this[_0x431cee(0x3ef)],!0x1);}}[_0x3b3960(0x474)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3b3960(0x2eb)](_0x3165ff){const _0xf9f57b=_0x3b3960;return this[_0xf9f57b(0x223)][_0xf9f57b(0x279)](_0x3165ff),this;}[_0x3b3960(0x594)](_0x559930){const _0x45bb3a=_0x3b3960;return this[_0x45bb3a(0x3b5)][_0x45bb3a(0x279)](_0x559930),this;}[_0x3b3960(0x357)](_0x24fe6a){const _0xc2ac88=_0x3b3960;if(this[_0xc2ac88(0x21d)])return this['_acknowledgedAwaitingChangeset']=this[_0xc2ac88(0x21d)],this[_0xc2ac88(0x21d)]=null,this;throw new Error(_0xc2ac88(0x3a4));}['onRemoteRej'](_0x4f26bc){const _0x44e31d=_0x3b3960;return this[_0x44e31d(0x438)](!!(_0x4f26bc!=null&&_0x4f26bc[_0x44e31d(0x42d)]));}[_0x3b3960(0x55f)](){const _0x530618=_0x3b3960;return this[_0x530618(0x3f4)]['createInstance'](_0x3a6b9d,this[_0x530618(0x353)],this[_0x530618(0x376)],this[_0x530618(0x21d)],this[_0x530618(0x223)],this[_0x530618(0x3ef)]);}[_0x3b3960(0x328)](){return this;}['_onConflict'](_0x38d4a3){const _0x4b2478=_0x3b3960;return this[_0x4b2478(0x3f4)][_0x4b2478(0x385)](_0x3132e7,this['unitID'],this[_0x4b2478(0x376)],this['_awaitingChangeset'],this[_0x4b2478(0x223)],this[_0x4b2478(0x3ef)],_0x38d4a3);}};_0x1f1e9a=_0x2f90f8([_0x108b1a(0x7,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector'])),_0x108b1a(0x8,_0x2015b3[_0x3b3960(0x547)](_0x106736['RevisionService'])),_0x108b1a(0x9,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x108b1a(0xa,_0x2015b3[_0x3b3960(0x1f3)]),_0x108b1a(0xb,_0x2015b3['ICommandService']),_0x108b1a(0xc,_0x2015b3[_0x3b3960(0x445)]),_0x108b1a(0xd,_0x106736[_0x3b3960(0x25a)])],_0x1f1e9a);function _0x3fc11b(_0x59fabe,_0x3686ff,_0x443260,_0x59dc4f,_0x3444bd,_0x4fa73d){const _0x4ba9d2=_0x3b3960;return _0x59dc4f&&_0x3444bd[_0x4ba9d2(0x306)]?_0x59fabe[_0x4ba9d2(0x385)](_0x270522,_0x3686ff,_0x443260,_0x59dc4f,_0x3444bd,_0x4fa73d):_0x59dc4f?_0x59fabe[_0x4ba9d2(0x385)](_0x25747b,_0x3686ff,_0x443260,_0x59dc4f,_0x4fa73d):_0x3444bd[_0x4ba9d2(0x306)]?_0x59fabe[_0x4ba9d2(0x385)](_0x977b19,_0x3686ff,_0x443260,_0x3444bd,_0x4fa73d):_0x59fabe[_0x4ba9d2(0x385)](_0x51907c,_0x3686ff,_0x443260,_0x4fa73d);}var _0x3e6c42=Object[_0x3b3960(0x57c)],_0xeff16f=Object[_0x3b3960(0x2c2)],_0x525818=(_0x56f830,_0x29e43d,_0x42b0c7,_0x2429e9)=>{const _0x248c89=_0x3b3960;for(var _0x4a5cc4=_0x2429e9>0x1?void 0x0:_0x2429e9?_0xeff16f(_0x29e43d,_0x42b0c7):_0x29e43d,_0x4f4876=_0x56f830[_0x248c89(0x306)]-0x1,_0xf3aa43;_0x4f4876>=0x0;_0x4f4876--)(_0xf3aa43=_0x56f830[_0x4f4876])&&(_0x4a5cc4=(_0x2429e9?_0xf3aa43(_0x29e43d,_0x42b0c7,_0x4a5cc4):_0xf3aa43(_0x4a5cc4))||_0x4a5cc4);return _0x2429e9&&_0x4a5cc4&&_0x3e6c42(_0x29e43d,_0x42b0c7,_0x4a5cc4),_0x4a5cc4;},_0x138926=(_0xe0857d,_0x5d8b01)=>(_0x29184b,_0x179033)=>_0x5d8b01(_0x29184b,_0x179033,_0xe0857d);_0x2c3354[_0x3b3960(0x3e2)]=class extends _0x2015b3['RxDisposable']{constructor(_0x54730b,_0x3e8a01,_0x1d287c){const _0x2bc666=_0x3b3960;super(),_0x385cfe(this,_0x2bc666(0x2ff),new Map()),_0x385cfe(this,_0x2bc666(0x284),new _0x345abe[(_0x2bc666(0x421))]()),(this[_0x2bc666(0x3f4)]=_0x54730b,this[_0x2bc666(0x35a)]=_0x3e8a01,this['_univerInstanceService']=_0x1d287c,this[_0x2bc666(0x4a1)]());}['dispose'](){const _0x876d97=_0x3b3960;super[_0x876d97(0x472)](),this['_entities'][_0x876d97(0x4d1)](_0x20b1fe=>_0x20b1fe[_0x876d97(0x472)]()),this[_0x876d97(0x2ff)][_0x876d97(0x577)]();}[_0x3b3960(0x40e)](_0x474292){const _0x4918d2=_0x3b3960;var _0x2922c4;return(_0x2922c4=this[_0x4918d2(0x2ff)]['get'](_0x474292))!=null?_0x2922c4:null;}[_0x3b3960(0x21c)](_0x3f3e3a){const _0x48ebbf=_0x3b3960,_0x5d6cca=this[_0x48ebbf(0x40e)](_0x3f3e3a);return _0x5d6cca?_0x345abe['of'](_0x5d6cca):this[_0x48ebbf(0x284)][_0x48ebbf(0x2d1)](_0x2cc613[_0x48ebbf(0x493)](_0x174720=>_0x174720['unitID']===_0x3f3e3a));}['_init'](){const _0x533400=_0x3b3960;this[_0x533400(0x5b7)][_0x533400(0x388)](_0x2015b3['UniverInstanceType']['UNIVER_SHEET'])['pipe'](_0x345abe[_0x533400(0x244)](this[_0x533400(0x272)]),_0x2cc613[_0x533400(0x402)](0x10))['subscribe'](async _0xaa0fcb=>{const _0x2bc082=_0x533400,_0x3c8054=_0xaa0fcb['getUnitId'](),_0x2e092d=await this[_0x2bc082(0x4eb)](_0x3c8054,_0x32a37d['UNIVER_SHEET']);this[_0x2bc082(0x2ff)]['set'](_0x3c8054,_0x2e092d);}),this[_0x533400(0x5b7)]['getTypeOfUnitAdded$'](_0x2015b3['UniverInstanceType'][_0x533400(0x361)])['pipe'](_0x345abe[_0x533400(0x244)](this[_0x533400(0x272)]),_0x2cc613['delay'](0x10))[_0x533400(0x2d1)](_0x2cc613[_0x533400(0x493)](_0x28578b=>!_0x28578b[_0x533400(0x304)]()[_0x533400(0x2d7)]('__')))[_0x533400(0x35b)](async _0x4a9fbe=>{const _0x43b755=_0x533400,_0x2d79a0=_0x4a9fbe[_0x43b755(0x304)](),_0x3347bb=await this['_startCollaboration'](_0x2d79a0,_0x32a37d['UNIVER_DOC']);this[_0x43b755(0x2ff)][_0x43b755(0x420)](_0x2d79a0,_0x3347bb);}),_0x345abe['merge'](this[_0x533400(0x5b7)][_0x533400(0x3d0)](_0x2015b3[_0x533400(0x3a8)][_0x533400(0x321)]),this[_0x533400(0x5b7)][_0x533400(0x3d0)](_0x2015b3[_0x533400(0x3a8)]['UNIVER_DOC']))[_0x533400(0x2d1)](_0x345abe[_0x533400(0x244)](this[_0x533400(0x272)]))[_0x533400(0x35b)](_0x269dad=>{const _0x290307=_0x533400,_0x4df1f6=_0x269dad[_0x290307(0x304)](),_0x5b009c=this['_entities'][_0x290307(0x3b9)](_0x4df1f6);_0x5b009c&&(_0x5b009c[_0x290307(0x472)](),this[_0x290307(0x2ff)][_0x290307(0x431)](_0x4df1f6));});}async['_startCollaboration'](_0x404514,_0x1ec39f){const _0x1546c3=_0x3b3960,_0xd6fa9e=await this[_0x1546c3(0x35a)][_0x1546c3(0x5db)](_0x404514),_0x583bc9=this['_injector'][_0x1546c3(0x385)](this[_0x1546c3(0x5df)](_0x1ec39f),_0x404514,_0x1ec39f,_0xd6fa9e);return await _0x583bc9[_0x1546c3(0x595)](),this[_0x1546c3(0x284)][_0x1546c3(0x2b0)](_0x583bc9),_0x583bc9;}[_0x3b3960(0x5df)](_0x4b3c95){const _0x4a99ba=_0x3b3960;switch(_0x4b3c95){case _0x32a37d[_0x4a99ba(0x361)]:return _0x1e6df4;case _0x32a37d['UNIVER_SHEET']:return _0x2c3354[_0x4a99ba(0x2e6)];default:throw new Error(_0x4a99ba(0x5d6)+_0x4b3c95);}}},_0x2c3354[_0x3b3960(0x3e2)]=_0x525818([_0x2015b3[_0x3b3960(0x2a0)](_0x2015b3[_0x3b3960(0x5f6)][_0x3b3960(0x206)],_0x2c3354[_0x3b3960(0x3e2)]),_0x138926(0x0,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector'])),_0x138926(0x1,_0x2015b3[_0x3b3960(0x547)](_0x2c3354['CollaborationSessionService'])),_0x138926(0x2,_0x2015b3['IUniverInstanceService'])],_0x2c3354[_0x3b3960(0x3e2)]);let _0x4e565d=class extends _0x2015b3['RxDisposable']{constructor(_0x1bc658,_0x15f084,_0x1f68c5,_0x42b041,_0x41cc67,_0x8f3450,_0x6ed2d8,_0x440f0b,_0x398b6f,_0x13a1d1,_0x5d9388,_0x360724,_0x57d566){const _0xa95638=_0x3b3960;super(),_0x385cfe(this,_0xa95638(0x503),new _0x345abe[(_0xa95638(0x2f9))](null)),_0x385cfe(this,_0xa95638(0x46d),this['_state$'][_0xa95638(0x348)]()),_0x385cfe(this,_0xa95638(0x2c5)),_0x385cfe(this,'_collaborationPaused',!0x1),_0x385cfe(this,'status$',this[_0xa95638(0x46d)]['pipe'](_0x2cc613[_0xa95638(0x522)](_0x1f58e1=>_0x1f58e1?_0x1f58e1['status']:_0xe45813['OFFLINE']),_0x2cc613[_0xa95638(0x4fa)](0x1))),_0x385cfe(this,_0xa95638(0x3eb),!0x1),_0x385cfe(this,_0xa95638(0x4d9),[]),(this['unitID']=_0x1bc658,this[_0xa95638(0x267)]=_0x15f084,this[_0xa95638(0x21b)]=_0x1f68c5,this[_0xa95638(0x3f4)]=_0x42b041,this[_0xa95638(0x24b)]=_0x41cc67,this[_0xa95638(0x3e5)]=_0x8f3450,this[_0xa95638(0x23b)]=_0x6ed2d8,this['_revisionService']=_0x440f0b,this[_0xa95638(0x501)]=_0x398b6f,this[_0xa95638(0x286)]=_0x13a1d1,this[_0xa95638(0x5ea)]=_0x5d9388,this[_0xa95638(0x518)]=_0x360724,this[_0xa95638(0x245)]=_0x57d566);}get[_0x3b3960(0x283)](){const _0xa9f018=_0x3b3960;return this[_0xa9f018(0x2c5)];}async[_0x3b3960(0x595)](){const _0xe90c86=_0x3b3960;if(this[_0xe90c86(0x283)])throw new Error(_0xe90c86(0x326));await this[_0xe90c86(0x4a1)]();}[_0x3b3960(0x200)](){const _0xd90574=_0x3b3960;return this[_0xd90574(0x248)]=!0x0,_0x2015b3['toDisposable'](()=>{const _0x3340b7=_0xd90574;this[_0x3340b7(0x248)]=!0x1,this[_0x3340b7(0x3c3)]();});}[_0x3b3960(0x212)](_0x264360){const _0x5e06d8=_0x3b3960;this[_0x5e06d8(0x2c5)]=_0x264360,this[_0x5e06d8(0x503)][_0x5e06d8(0x2b0)](_0x264360);}async[_0x3b3960(0x4a1)](){const _0x136bde=_0x3b3960;var _0x1e5797;return this[_0x136bde(0x212)](await this[_0x136bde(0x365)]()),this[_0x136bde(0x245)]&&((_0x1e5797=this['_singleActiveUnitService'])==null||_0x1e5797[_0x136bde(0x539)](this[_0x136bde(0x353)]),this[_0x136bde(0x369)](_0x2015b3['toDisposable'](this['_singleActiveUnitService'][_0x136bde(0x5f4)](this[_0x136bde(0x353)])[_0x136bde(0x35b)](_0x2e38cf=>{const _0x1f1b7b=_0x136bde;this[_0x1f1b7b(0x501)][_0x1f1b7b(0x210)](_0x1f1b7b(0x5ae),_0x1f1b7b(0x39b),_0x2e38cf),_0x2e38cf===_0x2d9e3c[_0x1f1b7b(0x393)]?(this[_0x1f1b7b(0x5ea)][_0x1f1b7b(0x2c3)]({'content':this['_localeService']['t'](_0x1f1b7b(0x275)),'type':_0x54ac63['MessageType'][_0x1f1b7b(0x331)]}),this[_0x1f1b7b(0x518)]['updatePermissionPoint'](new _0x3d1b6a[(_0x1f1b7b(0x405))](this[_0x1f1b7b(0x353)])['id'],!0x1)):this[_0x1f1b7b(0x518)][_0x1f1b7b(0x49e)](new _0x3d1b6a['WorkbookEditablePermission'](this[_0x1f1b7b(0x353)])['id'],!0x0);})))),this['disposeWithMe'](_0x2015b3[_0x136bde(0x31c)](this['_session']['sessionStatus$']['subscribe'](_0x4539da=>{const _0x4566b2=_0x136bde;_0x4539da===_0x510b8a[_0x4566b2(0x457)]?this['_toggleOnline']():_0x4539da===_0x510b8a[_0x4566b2(0x461)]&&this['_toggleOffline']();}))),this[_0x136bde(0x369)](_0x2015b3[_0x136bde(0x31c)](this[_0x136bde(0x21b)][_0x136bde(0x4ca)][_0x136bde(0x35b)](_0x142c95=>{const _0x51e25c=_0x136bde;try{switch(_0x142c95[_0x51e25c(0x4aa)]){case _0x106736[_0x51e25c(0x43e)][_0x51e25c(0x2f1)]:{this[_0x51e25c(0x327)](_0x106736[_0x51e25c(0x41d)](_0x142c95[_0x51e25c(0x3e0)]));break;}case _0x106736[_0x51e25c(0x43e)][_0x51e25c(0x303)]:{this[_0x51e25c(0x428)](_0x142c95[_0x51e25c(0x3e0)]);break;}case _0x106736[_0x51e25c(0x43e)][_0x51e25c(0x4f9)]:{this['_onRemoteRejected']();break;}case _0x106736[_0x51e25c(0x43e)][_0x51e25c(0x426)]:{this[_0x51e25c(0x4c0)](_0x142c95[_0x51e25c(0x3e0)][_0x51e25c(0x2df)][_0x51e25c(0x522)](_0x3584fe=>_0x106736[_0x51e25c(0x41d)](_0x3584fe)));break;}case _0x106736[_0x51e25c(0x43e)]['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x4136f8){throw console[_0x51e25c(0x50b)](_0x51e25c(0x53f),_0x4136f8),_0x4136f8;}}))),this[_0x136bde(0x2c5)];}[_0x3b3960(0x4b5)](){const _0x641a48=_0x3b3960;this[_0x641a48(0x3eb)]=!0x1;}['_lockTransition'](){const _0x18f855=_0x3b3960;if(this[_0x18f855(0x3eb)])throw new Error(_0x18f855(0x5c0));this[_0x18f855(0x3eb)]=!0x0;}[_0x3b3960(0x29c)](_0x349b30){const _0x482cd8=_0x3b3960;this[_0x482cd8(0x274)](),this[_0x482cd8(0x212)](this[_0x482cd8(0x2c5)][_0x482cd8(0x2eb)](_0x349b30)),this[_0x482cd8(0x4b5)]();}[_0x3b3960(0x327)](_0x52550f){const _0x381bba=_0x3b3960;if(!(_0x52550f['revision']<=this[_0x381bba(0x59c)][_0x381bba(0x556)](this[_0x381bba(0x353)]))){if(this[_0x381bba(0x248)]){this['_remoteChangesetQueue']['push'](_0x52550f);return;}this['_applyRemoteChangeset'](_0x52550f);}}[_0x3b3960(0x3c3)](){const _0x1cac59=_0x3b3960;this['_remoteChangesetQueue'][_0x1cac59(0x4d1)](_0x596772=>this['_applyRemoteChangeset'](_0x596772)),this[_0x1cac59(0x4d9)]=[];}[_0x3b3960(0x2be)](_0x28ca20){const _0x2ceedb=_0x3b3960,_0x43211b=this[_0x2ceedb(0x3e5)][_0x2ceedb(0x50c)][_0x2ceedb(0x3a2)](this[_0x2ceedb(0x3e5)][_0x2ceedb(0x50c)][_0x2ceedb(0x4d5)]()[_0x2ceedb(0x2ae)])(_0x28ca20[_0x2ceedb(0x2e7)],null)||_0x28ca20['mutations'],_0x2523e7={..._0x28ca20,'mutations':_0x43211b};this[_0x2ceedb(0x274)](),this[_0x2ceedb(0x212)](this['_state'][_0x2ceedb(0x594)](_0x2523e7)),this['_unlockTransition']();}[_0x3b3960(0x428)](_0x23742b){const _0x2c18d6=_0x3b3960;this[_0x2c18d6(0x274)](),this[_0x2c18d6(0x212)](this[_0x2c18d6(0x2c5)]['onRemoteAck'](_0x23742b)),this[_0x2c18d6(0x4b5)]();}[_0x3b3960(0x3cb)](_0x451759){const _0x448abd=_0x3b3960;this[_0x448abd(0x274)](),this[_0x448abd(0x212)](this[_0x448abd(0x2c5)][_0x448abd(0x311)](_0x451759)),this[_0x448abd(0x4b5)]();}[_0x3b3960(0x4c0)](_0x6e7f9e){const _0x3ad0f1=_0x3b3960;if(!(this[_0x3ad0f1(0x2c5)]instanceof _0x1f1e9a))throw new TypeError(_0x3ad0f1(0x4ae));const _0x47c31e=_0x6e7f9e[_0x3ad0f1(0x522)](_0x6a9dd0=>{const _0x3fef82=_0x3ad0f1,_0x15aab6=this['_compressMutationService'][_0x3fef82(0x50c)][_0x3fef82(0x3a2)](this[_0x3fef82(0x3e5)]['interceptor'][_0x3fef82(0x4d5)]()['COMPRESS_MUTATION_APPLY'])(_0x6a9dd0[_0x3fef82(0x2e7)],null)||_0x6a9dd0[_0x3fef82(0x2e7)];return{..._0x6a9dd0,'mutations':_0x15aab6};});this['_lockTransition'](),this[_0x3ad0f1(0x212)](this[_0x3ad0f1(0x2c5)][_0x3ad0f1(0x572)](_0x47c31e)),this[_0x3ad0f1(0x4b5)]();}['_toggleOffline'](){const _0x21ddb3=_0x3b3960;this[_0x21ddb3(0x274)](),this[_0x21ddb3(0x212)](this['_state']['toggleOffline']()),this[_0x21ddb3(0x4b5)]();}[_0x3b3960(0x258)](){const _0x280939=_0x3b3960;this['_lockTransition'](),this['_updateState'](this[_0x280939(0x2c5)]['toggleOnline']()),this[_0x280939(0x4b5)]();}async[_0x3b3960(0x365)](){return new Promise(_0x4c04d6=>{const _0x543f0f=_0x41fb;this['_session']['sessionStatus$'][_0x543f0f(0x2d1)](_0x2cc613[_0x543f0f(0x46a)](0x1))[_0x543f0f(0x35b)](async _0x50c121=>{const _0x1db049=_0x543f0f;_0x4c04d6(await this[_0x1db049(0x417)](_0x50c121===_0x510b8a[_0x1db049(0x457)]));});});}[_0x3b3960(0x4a5)](){const _0xd572a5=this['unitID'];return{'onStateChange':(_0x450dbe,_0x15d353)=>{const _0x5ab441=_0x41fb;if(_0x450dbe!==this[_0x5ab441(0x2c5)])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x450dbe[_0x5ab441(0x268)]+_0x5ab441(0x26c)+_0x15d353['status']+'\x0aCurrent:\x20'+this[_0x5ab441(0x2c5)][_0x5ab441(0x268)]);this[_0x5ab441(0x212)](_0x15d353);},'onSendChangeset':_0x10a1fc=>{const _0x4d4e72=_0x41fb,_0x38f359={'eventID':_0x106736[_0x4d4e72(0x43e)][_0x4d4e72(0x398)],'data':{'unitID':_0x10a1fc['unitID'],'unitType':this[_0x4d4e72(0x267)],'changeset':_0x10a1fc,'memberID':this['_session']['getMemberID']()}};this[_0x4d4e72(0x21b)][_0x4d4e72(0x42b)](_0x38f359,this[_0x4d4e72(0x353)]);},'onMissingChangesets':({from:_0x488394,to:_0x2bcdd2})=>{const _0x5ccf0e=_0x41fb;this['_logService'][_0x5ccf0e(0x210)](_0x5ccf0e(0x5ae),_0x5ccf0e(0x566)+_0x488394+_0x5ccf0e(0x40f)+_0x2bcdd2);const _0x3ff58b={'eventID':_0x106736['CollaborationEvent'][_0x5ccf0e(0x3da)],'data':{'unitID':_0xd572a5,'unitType':this[_0x5ccf0e(0x267)],'from':_0x488394,'to':_0x2bcdd2}};this[_0x5ccf0e(0x21b)]['send'](_0x3ff58b,this[_0x5ccf0e(0x353)]);}};}async['_createInitialStateImpl'](_0x81fa6c){const _0xa6b1a2=_0x3b3960;var _0xff15c5,_0x2c3e99;const _0x11549b=await this['_localCacheService'][_0xa6b1a2(0x56a)](this[_0xa6b1a2(0x353)]),_0x2b51c1=(_0xff15c5=_0x11549b==null?void 0x0:_0x11549b['mutations'])!=null?_0xff15c5:[],_0x54fd73=(_0x2c3e99=_0x11549b==null?void 0x0:_0x11549b[_0xa6b1a2(0x1f2)])!=null?_0x2c3e99:null,_0x37b269=this[_0xa6b1a2(0x353)];try{this[_0xa6b1a2(0x507)](_0x54fd73,_0x2b51c1);}catch(_0x4d20b9){this[_0xa6b1a2(0x501)][_0xa6b1a2(0x50b)](_0x4d20b9);}const _0x5d7112=this['_createHandler']();if(_0x81fa6c){const _0x2c8601=_0x3fc11b(this['_injector'],_0x37b269,this['_type'],_0x54fd73,_0x2b51c1,_0x5d7112);return _0x2c8601 instanceof _0x977b19?_0x2c8601[_0xa6b1a2(0x524)]():(_0x2c8601 instanceof _0x270522||_0x2c8601 instanceof _0x25747b)&&_0x2c8601[_0xa6b1a2(0x474)](),_0x2c8601;}return this['_injector'][_0xa6b1a2(0x385)](_0x3a6b9d,_0x37b269,this['_type'],_0x54fd73,_0x2b51c1,_0x5d7112);}['_replayCachedMutations'](_0x23a3de,_0xad18d7){const _0x198a30=_0x3b3960;var _0x5668fa,_0x2ab2c5;const _0x3d8df0=this[_0x198a30(0x3e5)][_0x198a30(0x50c)]['fetchThroughInterceptors'](this[_0x198a30(0x3e5)]['interceptor'][_0x198a30(0x4d5)]()[_0x198a30(0x2ae)]);(_0x5668fa=_0x3d8df0((_0x23a3de==null?void 0x0:_0x23a3de['mutations'])||[],null))==null||_0x5668fa[_0x198a30(0x4d1)](_0x503b37=>this['_commandService'][_0x198a30(0x44d)](_0x503b37['id'],_0x503b37['params'])),(_0x2ab2c5=_0x3d8df0(_0xad18d7||[],null))==null||_0x2ab2c5['forEach'](_0x58f152=>this['_commandService'][_0x198a30(0x44d)](_0x58f152['id'],_0x58f152[_0x198a30(0x358)]));}};_0x4e565d=_0x525818([_0x138926(0x3,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector'])),_0x138926(0x4,_0x2015b3['Inject'](_0x2c3354[_0x3b3960(0x3dc)])),_0x138926(0x5,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x51e)])),_0x138926(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x20a)])),_0x138926(0x7,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x3e9)])),_0x138926(0x8,_0x2015b3[_0x3b3960(0x1f3)]),_0x138926(0x9,_0x2015b3[_0x3b3960(0x259)]),_0x138926(0xa,_0x44b766['IMessageService']),_0x138926(0xb,_0x2015b3['IPermissionService']),_0x138926(0xc,_0x2015b3[_0x3b3960(0x5e4)](_0x55925e))],_0x4e565d);let _0x1e6df4=class extends _0x4e565d{constructor(_0x7d5afe,_0x98e30a,_0xee6422,_0x51eea2,_0x52096b,_0x20d1ae,_0x2504c9,_0x334ec7,_0x4ed500,_0x9d6835,_0x2ef582,_0x25acf3,_0x5b858c,_0xd26b74,_0x3f5b41,_0x3f39ac,_0x2a40f2){const _0x3f1f55=_0x3b3960;super(_0x7d5afe,_0x98e30a,_0xee6422,_0x51eea2,_0x52096b,_0x20d1ae,_0x2504c9,_0x334ec7,_0x5b858c,_0xd26b74,_0x3f5b41,_0x3f39ac,_0x2a40f2),this[_0x3f1f55(0x353)]=_0x7d5afe,this[_0x3f1f55(0x376)]=_0x98e30a,this[_0x3f1f55(0x439)]=_0xee6422,this[_0x3f1f55(0x2c4)]=_0x4ed500,this[_0x3f1f55(0x51a)]=_0x9d6835,this[_0x3f1f55(0x42f)]=_0x2ef582,this[_0x3f1f55(0x2bd)]=_0x25acf3;}['_createHandler'](){const _0x336ba9=_0x3b3960,_0x2ecab8=super['_createHandler']();return _0x2ecab8['onTransformIME']=_0x5510e3=>this[_0x336ba9(0x51a)][_0x336ba9(0x4dc)](_0x5510e3),_0x2ecab8[_0x336ba9(0x559)]=_0x8d0130=>this[_0x336ba9(0x42f)][_0x336ba9(0x2c8)](_0x8d0130),_0x2ecab8[_0x336ba9(0x2d2)]=_0x3e3e9f=>this[_0x336ba9(0x2bd)]['syncEditingCollabCursor'](_0x3e3e9f),_0x2ecab8['onTransformRemoteChangesetByIMECache']=_0x28f2d7=>this[_0x336ba9(0x51a)][_0x336ba9(0x2cb)](_0x28f2d7),_0x2ecab8;}async['_init'](){const _0x52d2cd=_0x3b3960,_0x4256ec=await super[_0x52d2cd(0x4a1)]();return this[_0x52d2cd(0x369)](this[_0x52d2cd(0x286)]['onCommandExecuted']((_0x55e828,_0x283ad6)=>{const _0x226a11=_0x52d2cd;if(_0x55e828['type']!==_0x2015b3['CommandType'][_0x226a11(0x5bf)]||_0x283ad6!=null&&_0x283ad6[_0x226a11(0x278)]||_0x283ad6!=null&&_0x283ad6[_0x226a11(0x5f5)])return;const _0x5b36d5=_0x55e828[_0x226a11(0x358)];if((_0x5b36d5==null?void 0x0:_0x5b36d5[_0x226a11(0x59f)])!==this[_0x226a11(0x353)])return;let _0x3eb975=_0x55e828;if(_0x3eb975['id']===_0xbcf55e['RichTextEditingMutation']['id']){const _0xe1ca0b=_0x3eb975[_0x226a11(0x358)];_0x3eb975={'id':_0xbcf55e[_0x226a11(0x446)]['id'],'type':_0x2015b3['CommandType'][_0x226a11(0x5bf)],'params':{'unitId':_0xe1ca0b[_0x226a11(0x59f)],'actions':_0xe1ca0b['actions'],'textRanges':null}};}const _0x30c522=this['_compressMutationService'][_0x226a11(0x50c)]['fetchThroughInterceptors'](this[_0x226a11(0x3e5)][_0x226a11(0x50c)][_0x226a11(0x4d5)]()[_0x226a11(0x1ff)])([_0x3eb975],null)||[_0x3eb975];this['_onLocalMutation'](_0x30c522[0x0]);})),_0x4256ec;}};_0x1e6df4=_0x525818([_0x138926(0x3,_0x2015b3['Inject'](_0x2015b3['Injector'])),_0x138926(0x4,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x138926(0x5,_0x2015b3[_0x3b3960(0x547)](_0x106736['CompressMutationService'])),_0x138926(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x20a)])),_0x138926(0x7,_0x2015b3[_0x3b3960(0x547)](_0x106736['RevisionService'])),_0x138926(0x8,_0x2015b3[_0x3b3960(0x547)](_0xbcf55e[_0x3b3960(0x5ef)])),_0x138926(0x9,_0x2015b3['Inject'](_0x3d8f9f)),_0x138926(0xa,_0x2015b3[_0x3b3960(0x547)](_0x27cbd7)),_0x138926(0xb,_0x2015b3[_0x3b3960(0x547)](_0x474519)),_0x138926(0xc,_0x2015b3['ILogService']),_0x138926(0xd,_0x2015b3[_0x3b3960(0x259)]),_0x138926(0xe,_0x44b766[_0x3b3960(0x464)]),_0x138926(0xf,_0x2015b3[_0x3b3960(0x5d7)]),_0x138926(0x10,_0x2015b3['Optional'](_0x55925e))],_0x1e6df4),_0x2c3354[_0x3b3960(0x2e6)]=class extends _0x4e565d{constructor(_0x2024fe,_0x317641,_0x88a929,_0x57de1a,_0x26b3fc,_0x35070e,_0x490610,_0x56614f,_0x493d04,_0x5a7048,_0x3a672c,_0x1addce,_0x52b3d7,_0x436de1){const _0xf7386=_0x3b3960;super(_0x2024fe,_0x317641,_0x88a929,_0x57de1a,_0x26b3fc,_0x35070e,_0x490610,_0x56614f,_0x5a7048,_0x3a672c,_0x1addce,_0x52b3d7,_0x436de1),this[_0xf7386(0x353)]=_0x2024fe,this[_0xf7386(0x376)]=_0x317641,this['session']=_0x88a929,this[_0xf7386(0x2aa)]=_0x493d04;}[_0x3b3960(0x4a5)](){const _0x36815c=_0x3b3960,_0x510a39=super['_createHandler']();return _0x510a39[_0x36815c(0x559)]=_0x55384c=>this[_0x36815c(0x2aa)][_0x36815c(0x2c8)](_0x55384c),_0x510a39;}async[_0x3b3960(0x4a1)](){const _0x1279ed=_0x3b3960,_0x518288=await super[_0x1279ed(0x4a1)]();return this[_0x1279ed(0x369)](this['_commandService'][_0x1279ed(0x3ab)]((_0x3b66a4,_0x29b15b)=>{const _0x48b0f7=_0x1279ed;if(_0x3b66a4[_0x48b0f7(0x376)]!==_0x2015b3[_0x48b0f7(0x322)][_0x48b0f7(0x5bf)]||_0x29b15b!=null&&_0x29b15b[_0x48b0f7(0x278)]||_0x29b15b!=null&&_0x29b15b[_0x48b0f7(0x5f5)])return;const _0x2ef729=_0x3b66a4[_0x48b0f7(0x358)];if((_0x2ef729==null?void 0x0:_0x2ef729[_0x48b0f7(0x59f)])!==this[_0x48b0f7(0x353)])return;const _0x271117=_0x3b66a4,_0x4925cf=this['_compressMutationService'][_0x48b0f7(0x50c)][_0x48b0f7(0x3a2)](this[_0x48b0f7(0x3e5)][_0x48b0f7(0x50c)][_0x48b0f7(0x4d5)]()[_0x48b0f7(0x1ff)])([_0x271117],null)||[_0x271117];this[_0x48b0f7(0x29c)](_0x4925cf[0x0]);})),_0x518288;}},_0x2c3354[_0x3b3960(0x2e6)]=_0x525818([_0x138926(0x3,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector'])),_0x138926(0x4,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3dc)])),_0x138926(0x5,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x51e)])),_0x138926(0x6,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['LocaleService'])),_0x138926(0x7,_0x2015b3['Inject'](_0x106736[_0x3b3960(0x3e9)])),_0x138926(0x8,_0x2015b3['Inject'](_0x319b0c)),_0x138926(0x9,_0x2015b3[_0x3b3960(0x1f3)]),_0x138926(0xa,_0x2015b3['ICommandService']),_0x138926(0xb,_0x44b766[_0x3b3960(0x464)]),_0x138926(0xc,_0x2015b3[_0x3b3960(0x5d7)]),_0x138926(0xd,_0x2015b3[_0x3b3960(0x5e4)](_0x55925e))],_0x2c3354[_0x3b3960(0x2e6)]);const _0x1905a0=[_0x3b3960(0x5b9),_0x3b3960(0x4b0),_0x3b3960(0x2ba),_0x3b3960(0x5d3),_0x3b3960(0x4d3),_0x3b3960(0x1fa)];class _0x258d12 extends _0x2015b3[_0x3b3960(0x38b)]{constructor(){const _0x3c7c77=_0x3b3960;super(...arguments),_0x385cfe(this,_0x3c7c77(0x560),new Map()),_0x385cfe(this,_0x3c7c77(0x26f),0x0);}[_0x3b3960(0x46b)](_0x2c6fcd){const _0x2aa0a1=_0x3b3960;if(this[_0x2aa0a1(0x560)][_0x2aa0a1(0x337)](_0x2c6fcd))return this['_assignedColors'][_0x2aa0a1(0x3b9)](_0x2c6fcd);const _0x2bbd71=_0x1905a0[this[_0x2aa0a1(0x26f)]];return this[_0x2aa0a1(0x26f)]=(this['_colorIndex']+0x1)%_0x1905a0[_0x2aa0a1(0x306)],this[_0x2aa0a1(0x560)]['set'](_0x2c6fcd,_0x2bbd71),_0x2bbd71;}}var _0x3a2d48=Object[_0x3b3960(0x57c)],_0x206c60=Object['getOwnPropertyDescriptor'],_0x1d4a10=(_0xd092ef,_0x1f86bd,_0x1ddd73,_0x325633)=>{for(var _0x29f94d=_0x325633>0x1?void 0x0:_0x325633?_0x206c60(_0x1f86bd,_0x1ddd73):_0x1f86bd,_0x2f4c3c=_0xd092ef['length']-0x1,_0xba053a;_0x2f4c3c>=0x0;_0x2f4c3c--)(_0xba053a=_0xd092ef[_0x2f4c3c])&&(_0x29f94d=(_0x325633?_0xba053a(_0x1f86bd,_0x1ddd73,_0x29f94d):_0xba053a(_0x29f94d))||_0x29f94d);return _0x325633&&_0x29f94d&&_0x3a2d48(_0x1f86bd,_0x1ddd73,_0x29f94d),_0x29f94d;},_0x37f67e=(_0x3f0ac3,_0x47bfd8)=>(_0x4a6864,_0xe92a8d)=>_0x47bfd8(_0x4a6864,_0xe92a8d,_0x3f0ac3);const _0x5edb86=0x12c,_0x278497=0x64,_0xbdb66f=()=>{let _0xd40d68=[],_0x35c80b=!0x1;return _0x540ca3=>{const _0x3b3054=_0x41fb;_0xd40d68[_0x3b3054(0x279)](_0x540ca3),_0x35c80b||(_0x35c80b=!0x0,setTimeout(()=>{const _0x29114d=_0x3b3054;_0xd40d68[_0x29114d(0x4d1)](_0x48344e=>_0x48344e()),_0xd40d68=[],_0x35c80b=!0x1;}));};};let _0x4fb84c=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x482b48,_0x4605e8,_0x44432b,_0x53ca42,_0x24ed14,_0x2d26f1,_0x52a7af,_0x25f2f2){const _0x565f0b=_0x3b3960;super(),_0x385cfe(this,_0x565f0b(0x406),!0x1),_0x385cfe(this,_0x565f0b(0x4a1),!0x1),_0x385cfe(this,'_cursorInfo$',new _0x345abe[(_0x565f0b(0x2f9))](new Map())),_0x385cfe(this,'cursorInfo$',this[_0x565f0b(0x2c9)][_0x565f0b(0x348)]()),_0x385cfe(this,'_roomMembers$',new _0x345abe[(_0x565f0b(0x2f9))]([])),_0x385cfe(this,'roomMembers$',this[_0x565f0b(0x565)][_0x565f0b(0x2d1)](_0x345abe[_0x565f0b(0x49f)](_0x5edb86))),_0x385cfe(this,_0x565f0b(0x2ca),_0x533449((_0x2fe71b,_0x537d96)=>{const _0x2ab4d2=_0x565f0b,_0x1a2f9b={'eventID':_0x106736[_0x2ab4d2(0x43e)][_0x2ab4d2(0x3e4)],'data':{'unitID':this['unitID'],'memberID':this[_0x2ab4d2(0x21b)][_0x2ab4d2(0x5d9)](),'selection':_0x3096c0['serializeRangeWithSheet'](_0x2fe71b,_0x537d96[_0x2ab4d2(0x329)])}};this['_session'][_0x2ab4d2(0x42b)](_0x1a2f9b,this[_0x2ab4d2(0x353)]);},_0x278497)),(this[_0x565f0b(0x353)]=_0x482b48,this['_session']=_0x4605e8,this[_0x565f0b(0x3f4)]=_0x44432b,this[_0x565f0b(0x485)]=_0x53ca42,this['_memberService']=_0x24ed14,this[_0x565f0b(0x5b7)]=_0x2d26f1,this[_0x565f0b(0x286)]=_0x52a7af,this[_0x565f0b(0x4d2)]=_0x25f2f2);}get[_0x3b3960(0x3dd)](){const _0x7b28cb=_0x3b3960;return this[_0x7b28cb(0x2c9)][_0x7b28cb(0x521)]();}get['roomMembers'](){const _0x7661d2=_0x3b3960;return this[_0x7661d2(0x565)][_0x7661d2(0x521)]();}[_0x3b3960(0x472)](){const _0x64a182=_0x3b3960;super[_0x64a182(0x472)](),this[_0x64a182(0x2c9)][_0x64a182(0x2b0)](new Map()),this[_0x64a182(0x2c9)][_0x64a182(0x4d4)](),this[_0x64a182(0x565)][_0x64a182(0x2b0)]([]),this['_roomMembers$']['complete']();}['init'](){const _0x5b27c6=_0x3b3960;this[_0x5b27c6(0x4a1)]||(this[_0x5b27c6(0x4a1)]=!0x0,this['_session'][_0x5b27c6(0x33a)][_0x5b27c6(0x2d1)](_0x345abe['takeUntil'](this[_0x5b27c6(0x272)]))[_0x5b27c6(0x35b)](_0x432642=>{const _0x53477f=_0x5b27c6;_0x432642===_0x510b8a[_0x53477f(0x457)]?this[_0x53477f(0x258)]():this[_0x53477f(0x390)]();}),this[_0x5b27c6(0x21b)][_0x5b27c6(0x4ca)][_0x5b27c6(0x2d1)](_0x345abe['takeUntil'](this[_0x5b27c6(0x272)]))[_0x5b27c6(0x35b)](_0x594cb0=>{const _0x41c26d=_0x5b27c6,_0x12f894=_0x594cb0[_0x41c26d(0x4aa)];_0x12f894===_0x106736[_0x41c26d(0x43e)][_0x41c26d(0x3e4)]&&this[_0x41c26d(0x3db)](_0x594cb0),_0x12f894===_0x106736['CollaborationEvent']['USERS_LEAVE']&&this[_0x41c26d(0x4b7)](_0x594cb0);}),this[_0x5b27c6(0x57a)](),this[_0x5b27c6(0x369)](this[_0x5b27c6(0x286)][_0x5b27c6(0x3ab)](_0x33e671=>{const _0x237efc=_0x5b27c6;if(this[_0x237efc(0x406)]&&_0x33e671['id']===_0x3d1b6a[_0x237efc(0x23d)]['id']&&_0x33e671['params'][_0x237efc(0x59f)]===this[_0x237efc(0x353)]){const _0x272683=_0x33e671[_0x237efc(0x358)];this[_0x237efc(0x2ca)](_0x272683[_0x237efc(0x324)],_0x272683[_0x237efc(0x285)][0x0]);}})));}[_0x3b3960(0x3db)](_0x501ed5){const _0x5bffc9=_0x3b3960;var _0x2af6f9,_0x22e798;const {memberID:_0x17250e,selection:_0x22ab48}=_0x501ed5[_0x5bffc9(0x3e0)],{sheetName:_0x1dc37b,range:_0x58bde3}=_0x3096c0[_0x5bffc9(0x58a)](_0x22ab48),_0x8d0c74={'name':(_0x22e798=(_0x2af6f9=this['_memberService'][_0x5bffc9(0x3d6)](this[_0x5bffc9(0x353)],_0x17250e))==null?void 0x0:_0x2af6f9[_0x5bffc9(0x425)])!=null?_0x22e798:_0x5bffc9(0x30a),'range':this[_0x5bffc9(0x32e)](_0x1dc37b,_0x58bde3),'sheetID':_0x1dc37b,'color':this['_colorAssignService'][_0x5bffc9(0x46b)](_0x17250e),'selection':_0x22ab48},_0x5de72d=this[_0x5bffc9(0x3dd)];_0x5de72d[_0x5bffc9(0x420)](_0x17250e,_0x8d0c74),this['_cursorInfo$'][_0x5bffc9(0x2b0)](_0x5de72d);}[_0x3b3960(0x4b7)](_0x501190){const _0x298af7=_0x3b3960,{memberID:_0x282877}=_0x501190[_0x298af7(0x3e0)],_0x1b6ace=this[_0x298af7(0x3dd)];_0x1b6ace[_0x298af7(0x431)](_0x282877),this[_0x298af7(0x2c9)][_0x298af7(0x2b0)](_0x1b6ace);}[_0x3b3960(0x32e)](_0x402159,_0x2773ba){const _0x1b91b0=_0x3b3960;var _0x55c77f,_0x1d0daa;const _0x38b569=(_0x1d0daa=(_0x55c77f=this[_0x1b91b0(0x5b7)][_0x1b91b0(0x53c)](this[_0x1b91b0(0x353)]))==null?void 0x0:_0x55c77f['getSheetBySheetId'](_0x402159))==null?void 0x0:_0x1d0daa[_0x1b91b0(0x57e)]();return(_0x38b569==null?void 0x0:_0x38b569[_0x1b91b0(0x335)](_0x414ed5=>_0x2015b3['Rectangle'][_0x1b91b0(0x263)](_0x414ed5,_0x2773ba)))||_0x2773ba;}[_0x3b3960(0x57a)](){const _0x1016ce=_0x3b3960,_0x4dbbba=new _0x2015b3['DisposableCollection'](),_0x3411fc=_0xbdb66f(),_0x3a5c6d=()=>{const _0x7f7aa6=_0x41fb;_0x4dbbba['dispose']();const _0x586792=(_0x4e8ed8,_0x53ad5d,_0x292953,_0x48bbfd)=>{const _0x4586ec=_0x41fb;let _0x2c26c6=[];switch(_0x4e8ed8['id']){case _0x3d1b6a[_0x4586ec(0x24a)][_0x4586ec(0x45c)]:{_0x2c26c6=_0x3d1b6a[_0x4586ec(0x36e)](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)]['DeleteRangeMoveUpCommandId']:{_0x2c26c6=_0x3d1b6a[_0x4586ec(0x39f)](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a['EffectRefRangId'][_0x4586ec(0x2fa)]:{_0x2c26c6=_0x3d1b6a['handleInsertCol'](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)][_0x4586ec(0x2de)]:{_0x2c26c6=_0x3d1b6a['handleInsertRangeMoveDown'](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)][_0x4586ec(0x3a7)]:{_0x2c26c6=_0x3d1b6a[_0x4586ec(0x53a)](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)]['InsertRowCommandId']:{_0x2c26c6=_0x3d1b6a[_0x4586ec(0x4e7)](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)]['MoveRangeCommandId']:{_0x2c26c6=_0x3d1b6a[_0x4586ec(0x239)](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)][_0x4586ec(0x323)]:{_0x2c26c6=_0x3d1b6a[_0x4586ec(0x370)](_0x4e8ed8,_0x48bbfd);break;}case _0x3d1b6a[_0x4586ec(0x24a)][_0x4586ec(0x543)]:{_0x2c26c6=_0x3d1b6a['handleIRemoveRow'](_0x4e8ed8,_0x48bbfd);break;}}const _0x164500=_0x3d1b6a['runRefRangeMutations'](_0x2c26c6,_0x48bbfd),_0x3177f5=this[_0x4586ec(0x3dd)][_0x4586ec(0x3b9)](_0x53ad5d);if(_0x3177f5&&_0x164500){const _0x408897={..._0x3177f5,'range':_0x164500};this['cursorInfo'][_0x4586ec(0x420)](_0x53ad5d,_0x408897),_0x3411fc(()=>{const _0x12661f=_0x4586ec,_0x1647a2=this[_0x12661f(0x4d2)][_0x12661f(0x4ef)](_0x164500,_0x4297b7=>(_0x1647a2[_0x12661f(0x472)](),_0x586792(_0x4297b7,_0x53ad5d,_0x292953,_0x164500)));_0x4dbbba[_0x12661f(0x28c)](_0x1647a2);});}return{'redos':[],'undos':[]};};this[_0x7f7aa6(0x3dd)][_0x7f7aa6(0x4d1)]((_0x42e491,_0x57c202)=>{const _0x12e873=_0x7f7aa6,{range:_0x48127b,sheetID:_0x4e8f10}=_0x42e491,_0x3d4840=this[_0x12e873(0x4d2)]['registerRefRange'](_0x48127b,_0x382b48=>(_0x3d4840[_0x12e873(0x472)](),_0x586792(_0x382b48,_0x57c202,_0x4e8f10,_0x48127b)));_0x4dbbba[_0x12e873(0x28c)](_0x3d4840);});};this['disposeWithMe'](_0x2015b3[_0x1016ce(0x31c)](this[_0x1016ce(0x2c9)]['subscribe'](()=>{_0x3a5c6d();})));}[_0x3b3960(0x258)](){const _0x45b0f0=_0x3b3960;var _0x3f6156,_0x2526cd;if(this[_0x45b0f0(0x406)]=!0x0,((_0x3f6156=this[_0x45b0f0(0x5b7)][_0x45b0f0(0x209)]())==null?void 0x0:_0x3f6156['getUnitId']())!==this[_0x45b0f0(0x353)])return;const _0x350394=(_0x2526cd=this[_0x45b0f0(0x3f4)][_0x45b0f0(0x3b9)](_0x3d1b6a['SheetsSelectionsService'])[_0x45b0f0(0x5ca)]())==null?void 0x0:_0x2526cd[0x0],_0x408c60=this[_0x45b0f0(0x5b7)][_0x45b0f0(0x49b)](_0x2015b3[_0x45b0f0(0x3a8)][_0x45b0f0(0x321)])[_0x45b0f0(0x202)]();_0x350394&&_0x408c60&&this['_updateLocalCursor'](_0x408c60[_0x45b0f0(0x216)](),_0x350394);}['_toggleOffline'](){const _0x263a99=_0x3b3960;this[_0x263a99(0x406)]=!0x1;}};_0x4fb84c=_0x1d4a10([_0x37f67e(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x37f67e(0x3,_0x2015b3[_0x3b3960(0x547)](_0x258d12)),_0x37f67e(0x4,_0x2015b3['Inject'](_0x25752c)),_0x37f67e(0x5,_0x2015b3[_0x3b3960(0x37c)]),_0x37f67e(0x6,_0x2015b3[_0x3b3960(0x259)]),_0x37f67e(0x7,_0x2015b3[_0x3b3960(0x547)](_0x3d1b6a[_0x3b3960(0x3df)]))],_0x4fb84c);var _0x1163c9=Object[_0x3b3960(0x57c)],_0x3ed434=Object[_0x3b3960(0x2c2)],_0x462ee0=(_0x3bdf6f,_0x577983,_0x177ec2,_0x38e2f1)=>{const _0x3cf9f5=_0x3b3960;for(var _0x2f5c18=_0x38e2f1>0x1?void 0x0:_0x38e2f1?_0x3ed434(_0x577983,_0x177ec2):_0x577983,_0x486451=_0x3bdf6f[_0x3cf9f5(0x306)]-0x1,_0x56d101;_0x486451>=0x0;_0x486451--)(_0x56d101=_0x3bdf6f[_0x486451])&&(_0x2f5c18=(_0x38e2f1?_0x56d101(_0x577983,_0x177ec2,_0x2f5c18):_0x56d101(_0x2f5c18))||_0x2f5c18);return _0x38e2f1&&_0x2f5c18&&_0x1163c9(_0x577983,_0x177ec2,_0x2f5c18),_0x2f5c18;},_0x3f3164=(_0x28d239,_0x351153)=>(_0x389a6e,_0x530f0f)=>_0x351153(_0x389a6e,_0x530f0f,_0x28d239);const _0x1ebcb1=0x12c,_0x26764a=0x64;let _0x1d861e=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x5ea786,_0x549c33,_0x2c50fa,_0x2a21ec,_0x452089,_0x35eee4,_0x450366,_0x327c17,_0x108aaa){const _0x459883=_0x3b3960;super(),_0x385cfe(this,_0x459883(0x406),!0x1),_0x385cfe(this,_0x459883(0x4a1),!0x1),_0x385cfe(this,_0x459883(0x2c9),new _0x345abe[(_0x459883(0x2f9))](new Map())),_0x385cfe(this,_0x459883(0x208),this[_0x459883(0x2c9)]['asObservable']()),_0x385cfe(this,'_roomMembers$',new _0x345abe[(_0x459883(0x2f9))]([])),_0x385cfe(this,'roomMembers$',this['_roomMembers$'][_0x459883(0x2d1)](_0x345abe[_0x459883(0x49f)](_0x1ebcb1))),_0x385cfe(this,_0x459883(0x2ca),_0x533449(_0x33153a=>{const _0x33313b=_0x459883,_0x4a1113={'eventID':_0x106736['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x33313b(0x21b)]['getMemberID'](),'selection':_0x2763e1(_0x33153a)}};this[_0x33313b(0x21b)][_0x33313b(0x42b)](_0x4a1113,this[_0x33313b(0x353)]);},_0x26764a)),(this[_0x459883(0x353)]=_0x5ea786,this[_0x459883(0x21b)]=_0x549c33,this['_injector']=_0x2c50fa,this[_0x459883(0x485)]=_0x2a21ec,this[_0x459883(0x5e7)]=_0x452089,this[_0x459883(0x3fd)]=_0x35eee4,this['_transformService']=_0x450366,this[_0x459883(0x5b7)]=_0x327c17,this[_0x459883(0x286)]=_0x108aaa);}get['cursorInfo'](){const _0x17b094=_0x3b3960;return this[_0x17b094(0x2c9)][_0x17b094(0x521)]();}get[_0x3b3960(0x437)](){const _0x5e3c4f=_0x3b3960;return this[_0x5e3c4f(0x565)]['getValue']();}[_0x3b3960(0x472)](){const _0x2c1704=_0x3b3960;super[_0x2c1704(0x472)](),this['_cursorInfo$'][_0x2c1704(0x2b0)](new Map()),this['_cursorInfo$'][_0x2c1704(0x4d4)](),this[_0x2c1704(0x565)][_0x2c1704(0x2b0)]([]),this[_0x2c1704(0x565)][_0x2c1704(0x4d4)]();}[_0x3b3960(0x595)](){const _0x278fd9=_0x3b3960;this[_0x278fd9(0x4a1)]||(this[_0x278fd9(0x4a1)]=!0x0,this[_0x278fd9(0x21b)][_0x278fd9(0x33a)][_0x278fd9(0x2d1)](_0x345abe[_0x278fd9(0x244)](this['dispose$']))[_0x278fd9(0x35b)](_0x54bfb4=>{const _0x5a1ea9=_0x278fd9;_0x54bfb4===_0x510b8a['ONLINE']?this['_toggleOnline']():this[_0x5a1ea9(0x390)]();}),this[_0x278fd9(0x21b)][_0x278fd9(0x4ca)][_0x278fd9(0x2d1)](_0x345abe['takeUntil'](this[_0x278fd9(0x272)]))[_0x278fd9(0x35b)](_0x32cd76=>{const _0x1d89af=_0x278fd9,_0x48308a=_0x32cd76['eventID'];_0x48308a===_0x106736[_0x1d89af(0x43e)][_0x1d89af(0x3e4)]&&this[_0x1d89af(0x3db)](_0x32cd76),_0x48308a===_0x106736[_0x1d89af(0x43e)]['USERS_LEAVE']&&this[_0x1d89af(0x4b7)](_0x32cd76);}),this[_0x278fd9(0x369)](this['_commandService'][_0x278fd9(0x3ab)](_0x6c88eb=>{const _0x2c27a7=_0x278fd9,_0x44d24b=_0x6c88eb[_0x2c27a7(0x358)];_0x44d24b!=null&&this['_online']&&_0x6c88eb['id']===_0xbcf55e['SetTextSelectionsOperation']['id']&&_0x44d24b[_0x2c27a7(0x59f)]===this[_0x2c27a7(0x353)]&&_0x44d24b[_0x2c27a7(0x531)]===!0x1&&this[_0x2c27a7(0x2ca)](_0x44d24b[_0x2c27a7(0x599)]);})),this[_0x278fd9(0x3fd)][_0x278fd9(0x3ff)][_0x278fd9(0x2d1)](_0x345abe[_0x278fd9(0x244)](this['dispose$']))[_0x278fd9(0x35b)](_0x282bb4=>{const _0x29d5ff=_0x278fd9;if((_0x282bb4==null?void 0x0:_0x282bb4[_0x29d5ff(0x353)])!==this[_0x29d5ff(0x353)])return;const _0x10386a={'eventID':_0x106736[_0x29d5ff(0x43e)][_0x29d5ff(0x3e4)],'data':_0x282bb4};this[_0x29d5ff(0x3db)](_0x10386a);}),this['disposeWithMe'](this['_commandService'][_0x278fd9(0x3ab)](_0x38b836=>{const _0x3992b9=_0x278fd9;if(_0x38b836[_0x3992b9(0x358)]==null)return;const _0x18348d=_0x38b836[_0x3992b9(0x358)];if(_0x38b836['id']!==_0xbcf55e[_0x3992b9(0x446)]['id']||_0x18348d[_0x3992b9(0x59f)]!==this[_0x3992b9(0x353)])return;const _0x31daca={'id':'doc.mutation.rich-text-editing','params':_0x18348d},_0x22f34c=this[_0x3992b9(0x3dd)];for(const [_0x4aa401,_0x5cdf64]of _0x22f34c){const _0x31314c={'id':_0x3992b9(0x412),'params':{'unitId':this[_0x3992b9(0x353)],'actions':null,'textRanges':_0x5cdf64[_0x3992b9(0x599)]}},_0x482626=this[_0x3992b9(0x3b1)][_0x3992b9(0x3e8)](_0x31daca,_0x31314c,!0x1);if(_0x106736[_0x3992b9(0x201)](_0x482626))throw _0x482626[_0x3992b9(0x50b)];_0x22f34c[_0x3992b9(0x420)](_0x4aa401,{..._0x5cdf64,'ranges':_0x482626[_0x3992b9(0x4af)][_0x3992b9(0x358)][_0x3992b9(0x23f)]});}queueMicrotask(()=>{const _0x4fd95a=_0x3992b9;this[_0x4fd95a(0x2c9)][_0x4fd95a(0x2b0)](_0x22f34c);});})));}[_0x3b3960(0x3db)](_0x57a90e){const _0x3cae38=_0x3b3960;var _0x12d78c,_0x511926;const {memberID:_0x655aac,selection:_0x5b63be}=_0x57a90e[_0x3cae38(0x3e0)],_0x2c7689=_0x3d4548(_0x5b63be),_0x13e575=(_0x511926=(_0x12d78c=this[_0x3cae38(0x5e7)]['getMember'](this[_0x3cae38(0x353)],_0x655aac))==null?void 0x0:_0x12d78c[_0x3cae38(0x425)])!=null?_0x511926:_0x3cae38(0x30a),_0x4fc502={'color':this[_0x3cae38(0x485)][_0x3cae38(0x46b)](_0x655aac),'name':_0x13e575,'ranges':_0x2c7689},_0x547fab=this[_0x3cae38(0x3dd)];_0x547fab[_0x3cae38(0x420)](_0x655aac,_0x4fc502),this[_0x3cae38(0x2c9)]['next'](_0x547fab);}['_onCursorDelete'](_0x42cac6){const _0x28eed6=_0x3b3960,{memberID:_0x3b6e06}=_0x42cac6['data'],_0x58b63e=this['cursorInfo'];_0x58b63e[_0x28eed6(0x431)](_0x3b6e06),this[_0x28eed6(0x2c9)][_0x28eed6(0x2b0)](_0x58b63e);}[_0x3b3960(0x258)](){const _0x10e593=_0x3b3960;var _0x43989a;if(this[_0x10e593(0x406)]=!0x0,((_0x43989a=this[_0x10e593(0x5b7)]['getFocusedUnit']())==null?void 0x0:_0x43989a[_0x10e593(0x304)]())!==this[_0x10e593(0x353)])return;const _0x24cc7b=this['_injector'][_0x10e593(0x3b9)](_0xbcf55e['TextSelectionManagerService'])[_0x10e593(0x342)](),_0x28bcda=_0x24cc7b==null?void 0x0:_0x24cc7b['map'](_0xbcf55e['serializeDocRange']);Array[_0x10e593(0x31d)](_0x28bcda)&&_0x28bcda[_0x10e593(0x306)]>0x0&&this['_updateLocalCursor'](_0x28bcda);}['_toggleOffline'](){const _0x577d03=_0x3b3960;this[_0x577d03(0x406)]=!0x1;}};_0x1d861e=_0x462ee0([_0x3f3164(0x2,_0x2015b3['Inject'](_0x2015b3[_0x3b3960(0x56e)])),_0x3f3164(0x3,_0x2015b3['Inject'](_0x258d12)),_0x3f3164(0x4,_0x2015b3[_0x3b3960(0x547)](_0x25752c)),_0x3f3164(0x5,_0x2015b3[_0x3b3960(0x547)](_0x474519)),_0x3f3164(0x6,_0x106736[_0x3b3960(0x25a)]),_0x3f3164(0x7,_0x2015b3[_0x3b3960(0x37c)]),_0x3f3164(0x8,_0x2015b3['ICommandService'])],_0x1d861e);var _0x363764=Object[_0x3b3960(0x57c)],_0xf4900c=Object['getOwnPropertyDescriptor'],_0x15ade7=(_0x1f94a9,_0x2f1c22,_0x390163,_0x27574c)=>{const _0x3f8c2d=_0x3b3960;for(var _0x377ca3=_0x27574c>0x1?void 0x0:_0x27574c?_0xf4900c(_0x2f1c22,_0x390163):_0x2f1c22,_0x48df63=_0x1f94a9[_0x3f8c2d(0x306)]-0x1,_0x4b2c4a;_0x48df63>=0x0;_0x48df63--)(_0x4b2c4a=_0x1f94a9[_0x48df63])&&(_0x377ca3=(_0x27574c?_0x4b2c4a(_0x2f1c22,_0x390163,_0x377ca3):_0x4b2c4a(_0x377ca3))||_0x377ca3);return _0x27574c&&_0x377ca3&&_0x363764(_0x2f1c22,_0x390163,_0x377ca3),_0x377ca3;},_0x2478e6=(_0xff3785,_0x18ddb1)=>(_0xd7188b,_0x58d8be)=>_0x18ddb1(_0xd7188b,_0x58d8be,_0xff3785);let _0x2a0bf9=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x5334da,_0x3a2102,_0x34a7cb){const _0x4f24d5=_0x3b3960;super(),_0x385cfe(this,'_entities',new Map()),_0x385cfe(this,_0x4f24d5(0x284),new _0x345abe[(_0x4f24d5(0x421))]()),(this[_0x4f24d5(0x5b7)]=_0x5334da,this[_0x4f24d5(0x3f4)]=_0x3a2102,this[_0x4f24d5(0x35a)]=_0x34a7cb,this[_0x4f24d5(0x4a1)]());}[_0x3b3960(0x472)](){const _0x5143b9=_0x3b3960;super[_0x5143b9(0x472)](),this[_0x5143b9(0x284)][_0x5143b9(0x4d4)](),this[_0x5143b9(0x2ff)]['forEach'](_0x24617c=>_0x24617c[_0x5143b9(0x472)]());}[_0x3b3960(0x575)](_0x45524d){const _0x3a9620=_0x3b3960;return this['_entities'][_0x3a9620(0x337)](_0x45524d)?this['_entities']['get'](_0x45524d)[_0x3a9620(0x208)]:this['_entityInit$'][_0x3a9620(0x2d1)](_0x345abe[_0x3a9620(0x493)](_0x191aa1=>_0x191aa1['unitID']===_0x45524d),_0x345abe['switchMap'](_0x1ba257=>_0x1ba257[_0x3a9620(0x208)]));}['_init'](){const _0x3cae25=_0x3b3960;this[_0x3cae25(0x5b7)][_0x3cae25(0x388)](_0x2015b3[_0x3cae25(0x3a8)][_0x3cae25(0x321)])[_0x3cae25(0x2d1)](_0x345abe[_0x3cae25(0x244)](this[_0x3cae25(0x272)]))[_0x3cae25(0x35b)](async _0x29f3ab=>{const _0x30841d=_0x3cae25,_0x1bf3f5=_0x29f3ab[_0x30841d(0x304)](),_0x5f195a=await this[_0x30841d(0x4ad)](_0x1bf3f5);this['_entityInit$']['next'](_0x5f195a),this[_0x30841d(0x2ff)][_0x30841d(0x420)](_0x1bf3f5,_0x5f195a);}),this[_0x3cae25(0x5b7)]['getTypeOfUnitAdded$'](_0x2015b3[_0x3cae25(0x3a8)][_0x3cae25(0x361)])['pipe'](_0x345abe['takeUntil'](this[_0x3cae25(0x272)]))[_0x3cae25(0x2d1)](_0x345abe[_0x3cae25(0x493)](_0x2d24b4=>!_0x2d24b4['getUnitId']()[_0x3cae25(0x2d7)]('__')))[_0x3cae25(0x35b)](async _0x5a2f0b=>{const _0x3711d1=_0x3cae25,_0x352e7c=_0x5a2f0b['getUnitId'](),_0x54acbd=await this['_startDocCollabCursor'](_0x352e7c);this['_entityInit$'][_0x3711d1(0x2b0)](_0x54acbd),this[_0x3711d1(0x2ff)][_0x3711d1(0x420)](_0x352e7c,_0x54acbd);}),_0x345abe[_0x3cae25(0x4c8)](this['_univerInstanceService'][_0x3cae25(0x3d0)](_0x2015b3[_0x3cae25(0x3a8)][_0x3cae25(0x361)]),this[_0x3cae25(0x5b7)]['getTypeOfUnitDisposed$'](_0x2015b3['UniverInstanceType'][_0x3cae25(0x321)]))[_0x3cae25(0x2d1)](_0x345abe['takeUntil'](this[_0x3cae25(0x272)]))[_0x3cae25(0x35b)](_0x382165=>{const _0x48cf3d=_0x3cae25,_0x57c7fc=_0x382165[_0x48cf3d(0x304)](),_0x4c02b0=this[_0x48cf3d(0x2ff)]['get'](_0x57c7fc);_0x4c02b0&&(_0x4c02b0[_0x48cf3d(0x472)](),this[_0x48cf3d(0x2ff)]['delete'](_0x57c7fc));});}async[_0x3b3960(0x4ad)](_0x599724){const _0x530596=_0x3b3960,_0x12c35e=await this['_collabSessionService'][_0x530596(0x5db)](_0x599724),_0xcad150=this['_injector'][_0x530596(0x385)](_0x4fb84c,_0x599724,_0x12c35e);return _0xcad150['init'](),_0xcad150;}async[_0x3b3960(0x492)](_0x2bc7dc){const _0x5d1ef7=_0x3b3960,_0x504f6d=await this['_collabSessionService']['requireSession'](_0x2bc7dc),_0x2f3218=this[_0x5d1ef7(0x3f4)][_0x5d1ef7(0x385)](_0x1d861e,_0x2bc7dc,_0x504f6d);return _0x2f3218[_0x5d1ef7(0x595)](),_0x2f3218;}};_0x2a0bf9=_0x15ade7([_0x2015b3[_0x3b3960(0x2a0)](_0x2015b3['LifecycleStages'][_0x3b3960(0x206)],_0x2a0bf9),_0x2478e6(0x0,_0x2015b3['IUniverInstanceService']),_0x2478e6(0x1,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x2478e6(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x4b4)]))],_0x2a0bf9);const _0x5c9f4b=0x14,_0x4b792f=0xc8,_0x6aa0fe=0x4,_0x5a936d=0x5;function _0x3dc4d3(_0x254f51,_0x201982){const _0x16c98b=_0x3b3960;let {radius:_0x26b9cb,width:_0x5a1fec,height:_0x26384d}=_0x201982;_0x26b9cb=_0x26b9cb!=null?_0x26b9cb:0x0,_0x5a1fec=_0x5a1fec!=null?_0x5a1fec:0x1e,_0x26384d=_0x26384d!=null?_0x26384d:0x1e;let _0x555dce=0x0,_0xf16623=0x0,_0x5b7101=0x0;_0x555dce=_0xf16623=_0x5b7101=Math[_0x16c98b(0x5c3)](_0x26b9cb,_0x5a1fec/0x2,_0x26384d/0x2),_0x254f51[_0x16c98b(0x20b)](),_0x254f51[_0x16c98b(0x352)](_0x555dce,0x0),_0x254f51['lineTo'](_0x5a1fec-_0xf16623,0x0),_0x254f51[_0x16c98b(0x3f2)](_0x5a1fec-_0xf16623,_0xf16623,_0xf16623,Math['PI']*0x3/0x2,0x0,!0x1),_0x254f51['lineTo'](_0x5a1fec,_0x26384d-_0x5b7101),_0x254f51[_0x16c98b(0x3f2)](_0x5a1fec-_0x5b7101,_0x26384d-_0x5b7101,_0x5b7101,0x0,Math['PI']/0x2,!0x1),_0x254f51[_0x16c98b(0x240)](0x0,_0x26384d),_0x254f51['lineTo'](0x0,_0x555dce),_0x254f51['arc'](_0x555dce,_0x555dce,_0x555dce,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x254f51[_0x16c98b(0x544)](),_0x201982[_0x16c98b(0x56d)]&&(_0x254f51[_0x16c98b(0x373)](),_0x254f51[_0x16c98b(0x298)]=_0x201982[_0x16c98b(0x56d)],_0x201982[_0x16c98b(0x387)]==='evenodd'?_0x254f51[_0x16c98b(0x56d)]('evenodd'):_0x254f51['fill'](),_0x254f51[_0x16c98b(0x312)]());}class _0x4b8b68 extends _0x572a63[_0x3b3960(0x45b)]{constructor(_0x4622ce,_0x5cb4ed){const _0x5a6ab5=_0x3b3960;super(_0x4622ce,_0x5cb4ed),_0x385cfe(this,_0x5a6ab5(0x3d8)),_0x385cfe(this,'text'),(this[_0x5a6ab5(0x3d8)]=_0x5cb4ed==null?void 0x0:_0x5cb4ed[_0x5a6ab5(0x3d8)],this['text']=_0x5cb4ed==null?void 0x0:_0x5cb4ed[_0x5a6ab5(0x2bc)]);}static['drawWith'](_0x79cbbf,_0x3d641a){const _0x1983bd=_0x3b3960,{text:_0x229b41,color:_0x36cc42}=_0x3d641a;_0x79cbbf[_0x1983bd(0x373)](),_0x79cbbf[_0x1983bd(0x296)]=_0x1983bd(0x3af);const _0x24f40c=_0x79cbbf[_0x1983bd(0x341)](_0x229b41)[_0x1983bd(0x1f1)],_0x4ca790=Math[_0x1983bd(0x5c3)](_0x24f40c+0x2*_0x6aa0fe,_0x4b792f);_0x3dc4d3(_0x79cbbf,{'height':_0x5c9f4b,'radius':0x4,'width':_0x4ca790,'fill':_0x36cc42,'evented':!0x1}),_0x79cbbf[_0x1983bd(0x298)]='#FFF';const _0x2e800c=_0x6aa0fe,_0x6da844=_0x5c9f4b-_0x5a936d,_0x3da514=_0x4b792f-0x2*_0x6aa0fe;if(_0x24f40c>_0x3da514){let _0x3bb616='',_0x50c3e9=0x0;for(const _0x46377c of _0x229b41){const _0x404ced=_0x79cbbf['measureText'](_0x46377c)['width'];if(_0x50c3e9+_0x404ced<=_0x3da514-_0x79cbbf[_0x1983bd(0x341)](_0x1983bd(0x38d))['width'])_0x3bb616+=_0x46377c,_0x50c3e9+=_0x404ced;else{_0x3bb616+=_0x1983bd(0x38d);break;}}_0x79cbbf['fillText'](_0x3bb616,_0x2e800c,_0x6da844);}else _0x79cbbf[_0x1983bd(0x54a)](_0x229b41,_0x2e800c,_0x6da844);_0x79cbbf[_0x1983bd(0x312)]();}[_0x3b3960(0x3be)](_0x4ad81f){const _0x2ff865=_0x3b3960;_0x4b8b68[_0x2ff865(0x213)](_0x4ad81f,this);}}const _0x53019b=0x1,_0x3752f5=1.5;class _0x87739a extends _0x572a63[_0x3b3960(0x45b)]{constructor(_0x51fff3,_0x184fc9){const _0x4fd8a2=_0x3b3960;super(_0x51fff3,_0x184fc9),_0x385cfe(this,_0x4fd8a2(0x2d0)),_0x385cfe(this,_0x4fd8a2(0x58c),!0x1),_0x385cfe(this,_0x4fd8a2(0x502)),_0x385cfe(this,'_name',''),_0x385cfe(this,_0x4fd8a2(0x40c),_0x4fd8a2(0x3a0)),_0x385cfe(this,'_backgroundColor'),(_0x184fc9&&this[_0x4fd8a2(0x4d0)](_0x184fc9),this[_0x4fd8a2(0x451)][_0x4fd8a2(0x281)](()=>this[_0x4fd8a2(0x4d0)]({'hovered':!0x0})),this[_0x4fd8a2(0x3a3)][_0x4fd8a2(0x281)](()=>this[_0x4fd8a2(0x4d0)]({'hovered':!0x1})));}['setShapeProps'](_0x4b28ad){const _0x45823a=_0x3b3960;var _0x122e51,_0x495c60,_0x5c0304,_0x5ded68,_0x24d32f,_0x37fdc1;this[_0x45823a(0x2d0)]=(_0x122e51=_0x4b28ad[_0x45823a(0x3d8)])!=null?_0x122e51:this[_0x45823a(0x2d0)],this['_hovered']=(_0x495c60=_0x4b28ad[_0x45823a(0x309)])!=null?_0x495c60:this['_hovered'],this[_0x45823a(0x502)]=(_0x5c0304=_0x4b28ad['range'])!=null?_0x5c0304:this['_range'],this[_0x45823a(0x4a6)]=(_0x5ded68=_0x4b28ad['name'])!=null?_0x5ded68:this['_name'],this[_0x45823a(0x40c)]=(_0x24d32f=_0x4b28ad[_0x45823a(0x552)])!=null?_0x24d32f:this[_0x45823a(0x40c)],this[_0x45823a(0x25e)]=(_0x37fdc1=_0x4b28ad[_0x45823a(0x4f0)])!=null?_0x37fdc1:this[_0x45823a(0x25e)],this['transformByState']({'width':_0x4b28ad['width'],'height':_0x4b28ad['height']});}[_0x3b3960(0x34f)](_0x341985){const _0x48e27c=_0x3b3960,{row:_0xf736ec,column:_0x200231}=_0x341985;if(_0xf736ec>=this[_0x48e27c(0x502)][_0x48e27c(0x4c6)]&&_0xf736ec<=this['_range'][_0x48e27c(0x2db)]&&_0x200231>=this[_0x48e27c(0x502)][_0x48e27c(0x44e)]&&_0x200231<=this[_0x48e27c(0x502)]['endColumn']){this[_0x48e27c(0x4d0)]({'hovered':!0x0});return;}this[_0x48e27c(0x4d0)]({'hovered':!0x1});}[_0x3b3960(0x343)](_0x146f6d){return!0x1;}[_0x3b3960(0x3be)](_0x56bee2){const _0x114f69=_0x3b3960;_0x572a63[_0x114f69(0x58b)]['drawWith'](_0x56bee2,{'width':this[_0x114f69(0x1f1)],'height':this[_0x114f69(0x3bf)],'strokeWidth':_0x3752f5,'stroke':this[_0x114f69(0x2d0)],'evented':!0x1,'fill':this[_0x114f69(0x25e)]}),this['_hovered']&&(_0x56bee2[_0x114f69(0x373)](),_0x56bee2['transform'](0x1,0x0,0x0,0x1,this[_0x114f69(0x1f1)],this['_labelPosition']===_0x114f69(0x35d)?0x0:-_0x5c9f4b),_0x4b8b68['drawWith'](_0x56bee2,{'text':this[_0x114f69(0x4a6)],'color':this[_0x114f69(0x2d0)]}),_0x56bee2[_0x114f69(0x312)]());}}var _0xf000a=Object[_0x3b3960(0x57c)],_0x3a68d3=Object[_0x3b3960(0x2c2)],_0x30e1d9=(_0x3adab1,_0x19727e,_0x4a40aa,_0x329780)=>{const _0x1306fc=_0x3b3960;for(var _0x1174fa=_0x329780>0x1?void 0x0:_0x329780?_0x3a68d3(_0x19727e,_0x4a40aa):_0x19727e,_0x48d10a=_0x3adab1[_0x1306fc(0x306)]-0x1,_0x3ef8c0;_0x48d10a>=0x0;_0x48d10a--)(_0x3ef8c0=_0x3adab1[_0x48d10a])&&(_0x1174fa=(_0x329780?_0x3ef8c0(_0x19727e,_0x4a40aa,_0x1174fa):_0x3ef8c0(_0x1174fa))||_0x1174fa);return _0x329780&&_0x1174fa&&_0xf000a(_0x19727e,_0x4a40aa,_0x1174fa),_0x1174fa;},_0x111fb2=(_0x4b05a4,_0x8a5968)=>(_0x31fa48,_0x42fb79)=>_0x8a5968(_0x31fa48,_0x42fb79,_0x4b05a4);const _0x337777=0x1389;let _0x1928ed=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x3ba791,_0x31d1bb,_0x54c19b,_0x538fd4){const _0x5932a4=_0x3b3960;super(),_0x385cfe(this,_0x5932a4(0x302),new Set()),_0x385cfe(this,_0x5932a4(0x47c),null),(this[_0x5932a4(0x37f)]=_0x3ba791,this['_sheetSkeletonManagerService']=_0x31d1bb,this[_0x5932a4(0x266)]=_0x54c19b,this[_0x5932a4(0x549)]=_0x538fd4,this[_0x5932a4(0x4a1)]());}[_0x3b3960(0x4a1)](){const _0x3de5bb=_0x3b3960;this[_0x3de5bb(0x5a1)][_0x3de5bb(0x54d)][_0x3de5bb(0x2d1)](_0x2cc613[_0x3de5bb(0x244)](this[_0x3de5bb(0x272)]),_0x2cc613[_0x3de5bb(0x22f)](_0x2c9309=>{const _0x2f03ca=_0x3de5bb;if(_0x2c9309){const _0x33ac7e=_0x2c9309[_0x2f03ca(0x5cf)];return _0x345abe[_0x2f03ca(0x4a3)](this['_collabCursorController']['getCollabCursors$'](this[_0x2f03ca(0x37f)][_0x2f03ca(0x59f)]),this['_themeService'][_0x2f03ca(0x378)])[_0x2f03ca(0x2d1)](_0x2cc613[_0x2f03ca(0x522)](([_0x583d37,_0x385bde])=>{const _0x5b1f8f=_0x2f03ca,_0x7e95ff=new Map();return _0x583d37[_0x5b1f8f(0x4d1)]((_0x111c3f,_0x5ea19a)=>{const _0x4b7c73=_0x5b1f8f;if(_0x111c3f['sheetID']===_0x33ac7e){const _0xb48e8c={..._0x111c3f};_0xb48e8c[_0x4b7c73(0x3d8)]=_0x385bde[_0x111c3f['color']],_0x7e95ff[_0x4b7c73(0x420)](_0x5ea19a,_0xb48e8c);}}),{'skeleton':_0x2c9309,'cursors':_0x7e95ff};}));}return _0x345abe['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x44847a,cursors:_0x125307})=>{const _0x3670f1=_0x3de5bb;this['_removeCollabCursors'](),_0x44847a&&this[_0x3670f1(0x368)](_0x44847a,_0x125307);}),this['_sheetSkeletonManagerService'][_0x3de5bb(0x54d)][_0x3de5bb(0x35b)](_0x3b78c1=>{const _0x1fc1d1=_0x3de5bb;if(_0x3b78c1==null)return;const {skeleton:_0x4dd2dd}=_0x3b78c1,{scene:_0x3b595b}=this['_context'];_0x3b595b[_0x1fc1d1(0x484)]['subscribeEvent'](_0x533449(_0x350827=>{const _0x1af75e=_0x1fc1d1;var _0x557412,_0x21ed9c;const {offsetX:_0x54224c,offsetY:_0x13697b}=_0x350827,{x:_0x23fb87,y:_0x23abb8}=_0x3b595b[_0x1af75e(0x5e6)](_0x572a63[_0x1af75e(0x50e)][_0x1af75e(0x3c2)]([_0x54224c,_0x13697b])),{scaleX:_0x544fe6,scaleY:_0x1335e5}=_0x3b595b[_0x1af75e(0x4e2)](),_0x23dd6d=_0x3b595b[_0x1af75e(0x22d)](_0x467ed8[_0x1af75e(0x444)][_0x1af75e(0x45d)]),_0x34cb22=_0x3b595b[_0x1af75e(0x5f0)](_0x572a63[_0x1af75e(0x50e)][_0x1af75e(0x3c2)]([_0x23fb87,_0x23abb8]),_0x23dd6d),_0x41bbae=_0x4dd2dd[_0x1af75e(0x315)](_0x54224c,_0x13697b,_0x544fe6,_0x1335e5,_0x34cb22);((_0x557412=this[_0x1af75e(0x47c)])==null?void 0x0:_0x557412[_0x1af75e(0x5c6)])===_0x41bbae[_0x1af75e(0x5c6)]&&((_0x21ed9c=this[_0x1af75e(0x47c)])==null?void 0x0:_0x21ed9c[_0x1af75e(0x2b9)])===_0x41bbae[_0x1af75e(0x2b9)]||this[_0x1af75e(0x302)][_0x1af75e(0x4d1)](_0x1acd47=>{const _0x2a3ae7=_0x1af75e;_0x1acd47[_0x2a3ae7(0x34f)](_0x41bbae);});},0x64));});}[_0x3b3960(0x368)](_0x49d1ac,_0x3c087a){const _0xf0738=_0x3b3960;var _0x4c9c52;const _0x3c9ef6=(_0x4c9c52=this[_0xf0738(0x5a1)][_0xf0738(0x48c)]())==null?void 0x0:_0x4c9c52['skeleton'];if(!_0x3c9ef6)return;const _0x117cc6=this[_0xf0738(0x56c)]();if(!_0x117cc6)return;this['_cursors'][_0xf0738(0x4d1)](_0x2dbc61=>{const _0x4071df=_0xf0738;_0x2dbc61[_0x4071df(0x460)]();});const {scene:_0x19396c}=_0x117cc6,_0x2d06a5=_0x4d0c83(Array['from'](_0x3c087a['values']()))[_0xf0738(0x522)](_0xaa150d=>{const _0x32ddd3=_0xf0738,{color:_0x1f824f,range:_0x3f48c7,name:_0x3a0a2b,selection:_0x396cc3,sheetID:_0x285bc0}=_0xaa150d,{startColumn:_0x299f04,startRow:_0x42d749,endColumn:_0x17a74c,endRow:_0x543523}=_0x3f48c7,_0x29e056=_0x467ed8[_0x32ddd3(0x32d)](_0x42d749,_0x299f04,_0x19396c,_0x3c9ef6),_0x1fb14b=_0x467ed8[_0x32ddd3(0x32d)](_0x543523,_0x17a74c,_0x19396c,_0x3c9ef6),{columnHeaderHeightAndMarginTop:_0x4777e4}=_0x3c9ef6,{startX:_0x4bef8b,startY:_0x3d3695}=_0x29e056,{endX:_0x115bfd,endY:_0x451d9e}=_0x1fb14b,_0x5de8ef=_0x115bfd-_0x4bef8b,_0x2b94b6=_0x451d9e-_0x3d3695,_0x3721a6={'labelPosition':_0x3d3695-_0x4777e4>=_0x5c9f4b?_0x32ddd3(0x3a0):_0x32ddd3(0x35d),'sheetID':_0x285bc0,'range':_0x3f48c7,'color':_0x1f824f,'name':_0x3a0a2b,'selection':_0x396cc3,'left':_0x4bef8b,'top':_0x3d3695,'width':_0x5de8ef,'height':_0x2b94b6,'evented':!0x1,'zIndex':_0x337777};return new _0x87739a(_0x3a0a2b,_0x3721a6);});_0x19396c['addObjects'](_0x2d06a5,_0x53019b),this[_0xf0738(0x302)]=new Set(_0x2d06a5);}[_0x3b3960(0x3b7)](){const _0x219e51=_0x3b3960;var _0x4df546;(_0x4df546=this[_0x219e51(0x302)])==null||_0x4df546[_0x219e51(0x4d1)](_0x2ef93a=>_0x2ef93a[_0x219e51(0x472)]());}['_getSheetObject'](){const _0x56bde6=_0x3b3960;return _0x467ed8[_0x56bde6(0x5a4)](this[_0x56bde6(0x37f)][_0x56bde6(0x4b2)],this[_0x56bde6(0x37f)]);}};_0x1928ed=_0x30e1d9([_0x111fb2(0x1,_0x2015b3[_0x3b3960(0x547)](_0x467ed8[_0x3b3960(0x36a)])),_0x111fb2(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2a0bf9)),_0x111fb2(0x3,_0x2015b3['Inject'](_0x2015b3[_0x3b3960(0x2e1)]))],_0x1928ed);function _0x4d0c83(_0x40d01e){const _0x2e190a=_0x3b3960,_0x5c7e8f=new Map();return _0x40d01e[_0x2e190a(0x4d1)](_0xe75a93=>{const _0x22c562=_0x2e190a;if(_0x5c7e8f['has'](_0xe75a93['selection'])){const _0x34d303=_0x5c7e8f[_0x22c562(0x3b9)](_0xe75a93[_0x22c562(0x290)]);_0x34d303['name']+=',\x20'+_0xe75a93[_0x22c562(0x425)];}else _0x5c7e8f['set'](_0xe75a93[_0x22c562(0x290)],_0xe75a93);}),Array[_0x2e190a(0x4f1)](_0x5c7e8f[_0x2e190a(0x58f)]());}var _0x2d705d=function(){const _0x19c476=_0x3b3960;return _0x2d705d=Object[_0x19c476(0x4a0)]||function(_0x232eca){const _0x1e3f7a=_0x19c476;for(var _0x5bd294,_0x13c097=0x1,_0x2f9dad=arguments[_0x1e3f7a(0x306)];_0x13c097<_0x2f9dad;_0x13c097++){_0x5bd294=arguments[_0x13c097];for(var _0x2770c1 in _0x5bd294)Object[_0x1e3f7a(0x41c)][_0x1e3f7a(0x48d)]['call'](_0x5bd294,_0x2770c1)&&(_0x232eca[_0x2770c1]=_0x5bd294[_0x2770c1]);}return _0x232eca;},_0x2d705d[_0x19c476(0x36b)](this,arguments);},_0x3ce73d=function(_0x3ffde3,_0x1cd802){const _0x1901cd=_0x3b3960;var _0x36f4e8={};for(var _0x4e4b00 in _0x3ffde3)Object[_0x1901cd(0x41c)]['hasOwnProperty'][_0x1901cd(0x415)](_0x3ffde3,_0x4e4b00)&&_0x1cd802[_0x1901cd(0x4c7)](_0x4e4b00)<0x0&&(_0x36f4e8[_0x4e4b00]=_0x3ffde3[_0x4e4b00]);if(_0x3ffde3!=null&&typeof Object[_0x1901cd(0x497)]==_0x1901cd(0x2fd)){for(var _0x56d6f7=0x0,_0x4e4b00=Object[_0x1901cd(0x497)](_0x3ffde3);_0x56d6f7<_0x4e4b00[_0x1901cd(0x306)];_0x56d6f7++)_0x1cd802[_0x1901cd(0x4c7)](_0x4e4b00[_0x56d6f7])<0x0&&Object[_0x1901cd(0x41c)][_0x1901cd(0x3b8)][_0x1901cd(0x415)](_0x3ffde3,_0x4e4b00[_0x56d6f7])&&(_0x36f4e8[_0x4e4b00[_0x56d6f7]]=_0x3ffde3[_0x4e4b00[_0x56d6f7]]);}return _0x36f4e8;},_0x195f69=_0x100763['forwardRef'](function(_0x24b347,_0x2ccd0c){const _0x4c196c=_0x3b3960;var _0x3b5670=_0x24b347[_0x4c196c(0x553)],_0x4c8c80=_0x24b347['id'],_0x5e342c=_0x24b347[_0x4c196c(0x4e8)],_0x3ac224=_0x24b347[_0x4c196c(0x251)],_0x10ca5a=_0x3ce73d(_0x24b347,[_0x4c196c(0x553),'id',_0x4c196c(0x4e8),_0x4c196c(0x251)]),_0x1d7acd=_0x4c196c(0x37e)[_0x4c196c(0x3d2)](_0x4c8c80,'\x20')[_0x4c196c(0x3d2)](_0x5e342c||'')[_0x4c196c(0x579)](),_0x1ec277=_0x100763[_0x4c196c(0x28f)]('_'[_0x4c196c(0x3d2)](_0x23077b()));return _0x1449f3(_0x3b5670,''[_0x4c196c(0x3d2)](_0x4c8c80),{'defIds':_0x3b5670[_0x4c196c(0x5c2)],'idSuffix':_0x1ec277[_0x4c196c(0x22a)]},_0x2d705d({'ref':_0x2ccd0c,'className':_0x1d7acd},_0x10ca5a),_0x3ac224);});function _0x1449f3(_0x42cb03,_0x347bd1,_0x3dad65,_0x28b567,_0x42d2dc){const _0x3a431b=_0x3b3960;return _0x100763[_0x3a431b(0x28e)](_0x42cb03[_0x3a431b(0x2fc)],_0x2d705d(_0x2d705d({'key':_0x347bd1},_0x4176d2(_0x42cb03,_0x3dad65,_0x42d2dc)),_0x28b567),(_0x2c223b(_0x42cb03,_0x3dad65)[_0x3a431b(0x3c0)]||[])[_0x3a431b(0x522)](function(_0x19c496,_0x34e3bd){const _0x9aec5f=_0x3a431b;return _0x1449f3(_0x19c496,''[_0x9aec5f(0x3d2)](_0x347bd1,'-')[_0x9aec5f(0x3d2)](_0x42cb03[_0x9aec5f(0x2fc)],'-')[_0x9aec5f(0x3d2)](_0x34e3bd),_0x3dad65,void 0x0,_0x42d2dc);}));}function _0x4176d2(_0x42db2d,_0x11faee,_0xe4defa){const _0x516e3c=_0x3b3960;var _0x7c00ec=_0x2d705d({},_0x42db2d['attrs']);_0xe4defa!=null&&_0xe4defa['colorChannel1']&&_0x7c00ec[_0x516e3c(0x56d)]===_0x516e3c(0x5f3)&&(_0x7c00ec[_0x516e3c(0x56d)]=_0xe4defa[_0x516e3c(0x5f3)]);var _0x385546=_0x11faee[_0x516e3c(0x5c2)];return!_0x385546||_0x385546[_0x516e3c(0x306)]===0x0||(_0x42db2d[_0x516e3c(0x2fc)]===_0x516e3c(0x307)&&_0x7c00ec['xlink:href']&&(_0x7c00ec['xlink:href']=_0x7c00ec[_0x516e3c(0x456)]+_0x11faee[_0x516e3c(0x294)]),Object[_0x516e3c(0x380)](_0x7c00ec)[_0x516e3c(0x4d1)](function(_0x470e4b){const _0xc2aa44=_0x516e3c;var _0x3c1b32=_0x470e4b[0x0],_0x315a2b=_0x470e4b[0x1];typeof _0x315a2b=='string'&&(_0x7c00ec[_0x3c1b32]=_0x315a2b[_0xc2aa44(0x44b)](/url\(#(.*)\)/,_0xc2aa44(0x22b)['concat'](_0x11faee['idSuffix'],')')));})),_0x7c00ec;}function _0x2c223b(_0x5bd2f2,_0xf202c7){const _0x5db701=_0x3b3960;var _0x43628f,_0xbe44e1=_0xf202c7[_0x5db701(0x5c2)];return!_0xbe44e1||_0xbe44e1[_0x5db701(0x306)]===0x0?_0x5bd2f2:_0x5bd2f2[_0x5db701(0x2fc)]===_0x5db701(0x300)&&(!((_0x43628f=_0x5bd2f2['children'])===null||_0x43628f===void 0x0)&&_0x43628f['length'])?_0x2d705d(_0x2d705d({},_0x5bd2f2),{'children':_0x5bd2f2[_0x5db701(0x3c0)]['map'](function(_0x1a1f44){const _0x36da79=_0x5db701;return typeof _0x1a1f44[_0x36da79(0x1fc)]['id']=='string'&&_0xbe44e1&&_0xbe44e1['indexOf'](_0x1a1f44[_0x36da79(0x1fc)]['id'])>-0x1?_0x2d705d(_0x2d705d({},_0x1a1f44),{'attrs':_0x2d705d(_0x2d705d({},_0x1a1f44[_0x36da79(0x1fc)]),{'id':_0x1a1f44[_0x36da79(0x1fc)]['id']+_0xf202c7[_0x36da79(0x294)]})}):_0x1a1f44;})}):_0x5bd2f2;}function _0x23077b(){const _0x4861f3=_0x3b3960;return Math['random']()[_0x4861f3(0x396)](0x24)['substring'](0x2,0x8);}_0x195f69[_0x3b3960(0x4fd)]=_0x3b3960(0x5e9);var _0x2eff4c={'tag':_0x3b3960(0x4be),'attrs':{'fill':_0x3b3960(0x4b8),'viewBox':_0x3b3960(0x236),'width':_0x3b3960(0x222),'height':_0x3b3960(0x222)},'children':[{'tag':'g','attrs':{'clipPath':_0x3b3960(0x3ae)},'children':[{'tag':'path','attrs':{'stroke':_0x3b3960(0x51b),'d':_0x3b3960(0x455),'strokeLinecap':_0x3b3960(0x221),'strokeLinejoin':_0x3b3960(0x221),'strokeWidth':1.2}}]},{'tag':_0x3b3960(0x300),'attrs':{},'children':[{'tag':_0x3b3960(0x523),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x3b3960(0x5b4),'attrs':{'fill':_0x3b3960(0x374),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x3b3960(0x42e)]},_0x258e90=_0x100763[_0x3b3960(0x510)](function(_0x14538d,_0x1cbd5f){const _0x8e13bb=_0x3b3960;return _0x100763[_0x8e13bb(0x28e)](_0x195f69,Object[_0x8e13bb(0x4a0)]({},_0x14538d,{'id':'off-line-single','ref':_0x1cbd5f,'icon':_0x2eff4c}));});_0x258e90['displayName']=_0x3b3960(0x5d1);var _0x2ee4b3={'tag':_0x3b3960(0x4be),'attrs':{'fill':_0x3b3960(0x4b8),'viewBox':_0x3b3960(0x440),'width':_0x3b3960(0x222),'height':_0x3b3960(0x222)},'children':[{'tag':'g','attrs':{'clipPath':_0x3b3960(0x2c6)},'children':[{'tag':'path','attrs':{'stroke':_0x3b3960(0x51b),'d':_0x3b3960(0x443),'strokeLinecap':'round','strokeLinejoin':_0x3b3960(0x221),'strokeWidth':1.2}}]},{'tag':_0x3b3960(0x300),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x3b3960(0x374),'d':_0x3b3960(0x31a),'transform':_0x3b3960(0x3d7)}}]}]}],'defIds':[_0x3b3960(0x5c7)]},_0xc787f=_0x100763[_0x3b3960(0x510)](function(_0x275788,_0x49c863){const _0x259352=_0x3b3960;return _0x100763[_0x259352(0x28e)](_0x195f69,Object['assign']({},_0x275788,{'id':_0x259352(0x504),'ref':_0x49c863,'icon':_0x2ee4b3}));});_0xc787f[_0x3b3960(0x4fd)]=_0x3b3960(0x555);const _0x217031={'onlineStatusIcon':_0x3b3960(0x235),'onlineStatusTitle':'univer-online-status-title','onlineStatus':_0x3b3960(0x2bb),'online':_0x3b3960(0x215),'offline':_0x3b3960(0x2ef)};function _0x1ad69b(_0x41c212){const _0x446845=_0x3b3960;switch(_0x41c212){case _0xe45813[_0x446845(0x461)]:return _0x446845(0x211);case _0xe45813[_0x446845(0x505)]:return _0x446845(0x299);case _0xe45813[_0x446845(0x53e)]:return'collabStatus.fetchMiss';case _0xe45813[_0x446845(0x2f0)]:return _0x446845(0x5c9);case _0xe45813['PENDING']:case _0xe45813[_0x446845(0x47e)]:case _0xe45813[_0x446845(0x282)]:return'collabStatus.syncing';case _0xe45813[_0x446845(0x4bc)]:return _0x446845(0x2ec);}}function _0x1c24e3(_0x228cbd){const _0x249605=_0x3b3960,{status$:_0x2d9288}=_0x228cbd,_0x16c4fa=_0x44b766[_0x249605(0x44f)](_0x2d9288,_0xe45813[_0x249605(0x2f0)]),_0xa6a082=_0x2015b3['useDependency'](_0x2015b3[_0x249605(0x20a)]),_0x33a91c=_0x16c4fa!==_0xe45813[_0x249605(0x461)],_0x5168d3=_0xa6a082['t'](_0x1ad69b(_0x16c4fa)),_0x53449a=_0x55b2c5(_0x217031[_0x249605(0x3f3)],{[_0x217031[_0x249605(0x330)]]:_0x33a91c,[_0x217031[_0x249605(0x5d2)]]:!_0x33a91c}),_0x398e2e=_0x33a91c?_0x100763[_0x249605(0x28e)](_0xc787f,null):_0x100763[_0x249605(0x28e)](_0x258e90,null);return _0x100763['createElement'](_0x249605(0x5e1),{'className':_0x53449a},_0x100763[_0x249605(0x28e)](_0x249605(0x5e1),{'className':_0x217031[_0x249605(0x545)]},_0x398e2e),_0x100763[_0x249605(0x28e)](_0x249605(0x5e1),{'className':_0x217031[_0x249605(0x4ec)]},_0x5168d3));}var _0x113116=Object[_0x3b3960(0x57c)],_0x2bc15a=Object[_0x3b3960(0x2c2)],_0x236220=(_0x282d24,_0x16847b,_0x1d1541,_0xda4424)=>{const _0x28cfc0=_0x3b3960;for(var _0x50a0bd=_0xda4424>0x1?void 0x0:_0xda4424?_0x2bc15a(_0x16847b,_0x1d1541):_0x16847b,_0x330701=_0x282d24[_0x28cfc0(0x306)]-0x1,_0x3b254c;_0x330701>=0x0;_0x330701--)(_0x3b254c=_0x282d24[_0x330701])&&(_0x50a0bd=(_0xda4424?_0x3b254c(_0x16847b,_0x1d1541,_0x50a0bd):_0x3b254c(_0x50a0bd))||_0x50a0bd);return _0xda4424&&_0x50a0bd&&_0x113116(_0x16847b,_0x1d1541,_0x50a0bd),_0x50a0bd;},_0x1e57d9=(_0x11eebf,_0x2f7f43)=>(_0x18dc2b,_0x46d599)=>_0x2f7f43(_0x18dc2b,_0x46d599,_0x11eebf);_0x2c3354[_0x3b3960(0x217)]=class extends _0x2015b3['Disposable']{constructor(_0x18acdb,_0x5a055e,_0x33d56d,_0x2d1aa4){const _0x34d341=_0x3b3960;super(),_0x385cfe(this,'_status$',new _0x345abe[(_0x34d341(0x2f9))](_0xe45813['NOT_COLLAB'])),(this['_univerInstanceService']=_0x18acdb,this[_0x34d341(0x355)]=_0x5a055e,this['_injector']=_0x33d56d,this[_0x34d341(0x494)]=_0x2d1aa4,this[_0x34d341(0x4c2)](),this[_0x34d341(0x548)]());}[_0x3b3960(0x4c2)](){const _0x47b71f=_0x3b3960;this[_0x47b71f(0x369)](this[_0x47b71f(0x355)][_0x47b71f(0x233)](_0x44b766[_0x47b71f(0x27e)][_0x47b71f(0x289)],()=>_0x2015b3[_0x47b71f(0x203)](_0x19accd({'status$':this[_0x47b71f(0x4e9)][_0x47b71f(0x348)]()}),this[_0x47b71f(0x3f4)])));}[_0x3b3960(0x548)](){const _0x45b50f=_0x3b3960;this[_0x45b50f(0x369)](_0x2015b3[_0x45b50f(0x31c)](this[_0x45b50f(0x5b7)][_0x45b50f(0x292)][_0x45b50f(0x2d1)](_0x345abe[_0x45b50f(0x22f)](()=>{const _0x2dfd70=_0x45b50f,_0x26870f=this[_0x2dfd70(0x5b7)]['getFocusedUnit']();return _0x26870f?this[_0x2dfd70(0x494)][_0x2dfd70(0x21c)](_0x26870f[_0x2dfd70(0x304)]()):_0x345abe['of'](null);}),_0x345abe['switchMap'](_0x25242c=>_0x25242c?_0x25242c[_0x45b50f(0x2f5)]:_0x345abe['of'](_0xe45813[_0x45b50f(0x2f0)])))[_0x45b50f(0x35b)](_0x26d112=>{const _0x514efd=_0x45b50f;this[_0x514efd(0x4e9)][_0x514efd(0x2b0)](_0x26d112);})));}},_0x2c3354['DesktopCollaborationStatusDisplayController']=_0x236220([_0x2015b3[_0x3b3960(0x2a0)](_0x2015b3[_0x3b3960(0x5f6)][_0x3b3960(0x206)],_0x2c3354[_0x3b3960(0x217)]),_0x1e57d9(0x0,_0x2015b3[_0x3b3960(0x37c)]),_0x1e57d9(0x1,_0x44b766[_0x3b3960(0x30d)]),_0x1e57d9(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector'])),_0x1e57d9(0x3,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x3e2)]))],_0x2c3354['DesktopCollaborationStatusDisplayController']);function _0x19accd(_0x539f8d){const {status$:_0x17a38c}=_0x539f8d;return function(){const _0x1fcfa7=_0x41fb;return _0x100763[_0x1fcfa7(0x28e)](_0x1c24e3,{'status$':_0x17a38c});};}const _0xaa3b19=_0x2015b3['createIdentifier'](_0x3b3960(0x588));var _0x1ae63f=Object[_0x3b3960(0x57c)],_0x1b80a5=Object['getOwnPropertyDescriptor'],_0x1b556a=(_0x111bb8,_0xc28a79,_0xcac6be,_0x22f2b5)=>{const _0x1471f5=_0x3b3960;for(var _0x1d8bdf=_0x22f2b5>0x1?void 0x0:_0x22f2b5?_0x1b80a5(_0xc28a79,_0xcac6be):_0xc28a79,_0x642bd5=_0x111bb8[_0x1471f5(0x306)]-0x1,_0x5a2bc4;_0x642bd5>=0x0;_0x642bd5--)(_0x5a2bc4=_0x111bb8[_0x642bd5])&&(_0x1d8bdf=(_0x22f2b5?_0x5a2bc4(_0xc28a79,_0xcac6be,_0x1d8bdf):_0x5a2bc4(_0x1d8bdf))||_0x1d8bdf);return _0x22f2b5&&_0x1d8bdf&&_0x1ae63f(_0xc28a79,_0xcac6be,_0x1d8bdf),_0x1d8bdf;},_0xa77b75=(_0x544e64,_0x586b75)=>(_0x107cac,_0x3cc651)=>_0x586b75(_0x107cac,_0x3cc651,_0x544e64);_0x2c3354[_0x3b3960(0x4bb)]=class extends _0x2015b3['RxDisposable']{constructor(_0x689a41,_0x9048af,_0x3cd0dd,_0x3fe512,_0x490cc5,_0x4ebbc3){const _0x481543=_0x3b3960;super(),this['_urlService']=_0x689a41,this[_0x481543(0x501)]=_0x9048af,this[_0x481543(0x286)]=_0x3cd0dd,this[_0x481543(0x24b)]=_0x3fe512,this[_0x481543(0x528)]=_0x490cc5,_0x4ebbc3?_0x4ebbc3==null||_0x4ebbc3['whenReady']()[_0x481543(0x28a)](()=>this[_0x481543(0x4a1)]()):(this['_logService']['debug'](_0x481543(0x232),_0x481543(0x57b)),this['_init']());}async[_0x3b3960(0x4a1)](){const _0x234abb=_0x3b3960,_0x43f082=this[_0x234abb(0x253)]['getParam'](_0x234abb(0x4b2)),_0x51280f=this['_urlService'][_0x234abb(0x20d)]('type');if(!_0x43f082||!_0x51280f){this[_0x234abb(0x501)][_0x234abb(0x210)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x51280f)){case _0x32a37d[_0x234abb(0x321)]:{const _0x2822ea=await this[_0x234abb(0x530)](_0x43f082);this[_0x234abb(0x5a3)](_0x2822ea);break;}case _0x32a37d[_0x234abb(0x361)]:{await this[_0x234abb(0x433)](_0x43f082);break;}default:{this['_logService'][_0x234abb(0x50b)](_0x234abb(0x232),_0x234abb(0x265));break;}}}async[_0x3b3960(0x5a3)](_0x1e9819){const _0x57f404=_0x3b3960;await this[_0x57f404(0x416)](_0x1e9819),_0x1e9819[_0x57f404(0x243)][_0x57f404(0x2d1)](_0x345abe[_0x57f404(0x244)](this[_0x57f404(0x272)]))['subscribe'](_0x3d2d3b=>{const _0x503de0=_0x57f404;_0x3d2d3b&&this[_0x503de0(0x5b8)](_0x3d2d3b);}),this[_0x57f404(0x253)][_0x57f404(0x5f2)][_0x57f404(0x2d1)](_0x345abe[_0x57f404(0x244)](this[_0x57f404(0x272)]))[_0x57f404(0x35b)](()=>this[_0x57f404(0x416)](_0x1e9819));}[_0x3b3960(0x5b8)](_0x163a01,_0x362c8e=!0x1){const _0x1c8ceb=_0x3b3960,_0x5e0f72=this[_0x1c8ceb(0x253)][_0x1c8ceb(0x20d)]('subunit');_0x163a01[_0x1c8ceb(0x216)]()!==_0x5e0f72&&this[_0x1c8ceb(0x253)][_0x1c8ceb(0x35e)](_0x1c8ceb(0x5f8),_0x163a01[_0x1c8ceb(0x216)](),_0x362c8e);}async[_0x3b3960(0x416)](_0x19fc37){const _0x224d15=_0x3b3960;var _0x4bd0d5;const _0x5ce432=this['_urlService']['getParam']('subunit');if(!_0x5ce432||!_0x19fc37[_0x224d15(0x325)](_0x5ce432)){const _0x351dc4=_0x19fc37[_0x224d15(0x34d)]()[0x0],_0x34aceb=_0x19fc37[_0x224d15(0x325)](_0x351dc4);if(!_0x34aceb)return;this['_updateURLWithCurrentState'](_0x34aceb,!0x0),await this[_0x224d15(0x286)][_0x224d15(0x44d)](_0x3d1b6a[_0x224d15(0x442)]['id'],{'unitId':_0x19fc37['getUnitId'](),'subUnitId':_0x351dc4});return;}((_0x4bd0d5=_0x19fc37[_0x224d15(0x202)]())==null?void 0x0:_0x4bd0d5[_0x224d15(0x216)]())!==_0x5ce432&&await this['_commandService'][_0x224d15(0x44d)](_0x3d1b6a[_0x224d15(0x442)]['id'],{'unitId':_0x19fc37[_0x224d15(0x304)](),'subUnitId':_0x5ce432});}async[_0x3b3960(0x530)](_0x1684ac){const _0x59bb6d=_0x3b3960;let _0x36febb=0x0;const _0xc931c2=await this[_0x59bb6d(0x24b)][_0x59bb6d(0x56a)](_0x1684ac);return _0xc931c2&&(_0xc931c2[_0x59bb6d(0x1f2)]||_0xc931c2[_0x59bb6d(0x2e7)][_0x59bb6d(0x306)]!==0x0)&&(_0x36febb=_0xc931c2[_0x59bb6d(0x48a)]),_0x36febb===0x0&&this[_0x59bb6d(0x501)][_0x59bb6d(0x210)](_0x59bb6d(0x232),_0x59bb6d(0x598)),this[_0x59bb6d(0x528)][_0x59bb6d(0x1f9)](_0x1684ac,_0x36febb);}async[_0x3b3960(0x433)](_0x10fbcf){const _0x3c8c00=_0x3b3960;let _0x564d0c=0x0;const _0x3af582=await this['_localCacheService']['loadOfflineData'](_0x10fbcf);return _0x3af582&&(_0x3af582[_0x3c8c00(0x1f2)]||_0x3af582[_0x3c8c00(0x2e7)][_0x3c8c00(0x306)]!==0x0)&&(_0x564d0c=_0x3af582[_0x3c8c00(0x48a)]),_0x564d0c===0x0&&this[_0x3c8c00(0x501)][_0x3c8c00(0x210)](_0x3c8c00(0x232),_0x3c8c00(0x598)),this[_0x3c8c00(0x528)][_0x3c8c00(0x4ac)](_0x10fbcf,_0x564d0c);}},_0x2c3354['DataLoaderController']=_0x1b556a([_0x2015b3[_0x3b3960(0x2a0)](_0x2015b3[_0x3b3960(0x5f6)]['Starting'],_0x2c3354[_0x3b3960(0x4bb)]),_0xa77b75(0x0,_0xaa3b19),_0xa77b75(0x1,_0x2015b3[_0x3b3960(0x1f3)]),_0xa77b75(0x2,_0x2015b3[_0x3b3960(0x259)]),_0xa77b75(0x3,_0x2015b3['Inject'](_0x2c3354[_0x3b3960(0x3dc)])),_0xa77b75(0x4,_0x2015b3[_0x3b3960(0x547)](_0x106736[_0x3b3960(0x5ac)])),_0xa77b75(0x5,_0x2015b3['Optional'](_0x43c42f[_0x3b3960(0x2fb)]))],_0x2c3354[_0x3b3960(0x4bb)]);var _0x23c483=Object[_0x3b3960(0x57c)],_0x46f96b=Object[_0x3b3960(0x2c2)],_0x36b7f9=(_0x5a6ecd,_0x2ca6db,_0x1480db,_0x5d172b)=>{const _0x9ac003=_0x3b3960;for(var _0x18a845=_0x5d172b>0x1?void 0x0:_0x5d172b?_0x46f96b(_0x2ca6db,_0x1480db):_0x2ca6db,_0x397fe4=_0x5a6ecd[_0x9ac003(0x306)]-0x1,_0x325ed0;_0x397fe4>=0x0;_0x397fe4--)(_0x325ed0=_0x5a6ecd[_0x397fe4])&&(_0x18a845=(_0x5d172b?_0x325ed0(_0x2ca6db,_0x1480db,_0x18a845):_0x325ed0(_0x18a845))||_0x18a845);return _0x5d172b&&_0x18a845&&_0x23c483(_0x2ca6db,_0x1480db,_0x18a845),_0x18a845;},_0x2a846c=(_0x3f920c,_0x194679)=>(_0x3042c4,_0x3c30e1)=>_0x194679(_0x3042c4,_0x3c30e1,_0x3f920c);const _0x2a4d7b='DEFAULT_FILE_NAME',_0x7f12f0=_0x3b3960(0x389);let _0x25c571=class extends _0x2015b3[_0x3b3960(0x38b)]{constructor(_0x18b053,_0x279a90){const _0x1b7387=_0x3b3960;super(),this[_0x1b7387(0x5b7)]=_0x18b053,this[_0x1b7387(0x46c)]=_0x279a90,this[_0x1b7387(0x4a1)]();}['_init'](){const _0xdf72a9=_0x3b3960;this[_0xdf72a9(0x369)](_0x2015b3[_0xdf72a9(0x31c)](this[_0xdf72a9(0x5b7)][_0xdf72a9(0x292)]['subscribe'](()=>{const _0x43a392=_0xdf72a9;var _0x509c96;const _0x401099=this[_0x43a392(0x5b7)][_0x43a392(0x209)]();let _0x304649=(_0x509c96=this[_0x43a392(0x46c)][_0x43a392(0x584)](_0x2a4d7b))!=null?_0x509c96:_0x7f12f0;_0x401099 instanceof _0x2015b3[_0x43a392(0x3cf)]&&(_0x304649=_0x401099[_0x43a392(0x425)]),document[_0x43a392(0x49c)]=_0x304649;})));}};_0x25c571=_0x36b7f9([_0x2015b3['OnLifecycle'](_0x2015b3['LifecycleStages'][_0x3b3960(0x4f5)],_0x25c571),_0x2a846c(0x0,_0x2015b3[_0x3b3960(0x37c)]),_0x2a846c(0x1,_0x2015b3['IConfigService'])],_0x25c571);var _0xae2fc6=Object[_0x3b3960(0x57c)],_0x492edf=Object['getOwnPropertyDescriptor'],_0x546f93=(_0x1c2ac4,_0x3c1f0d,_0x1e5d75,_0x55ddd1)=>{const _0x3ec883=_0x3b3960;for(var _0x26563c=_0x55ddd1>0x1?void 0x0:_0x55ddd1?_0x492edf(_0x3c1f0d,_0x1e5d75):_0x3c1f0d,_0x42369b=_0x1c2ac4[_0x3ec883(0x306)]-0x1,_0x36a73b;_0x42369b>=0x0;_0x42369b--)(_0x36a73b=_0x1c2ac4[_0x42369b])&&(_0x26563c=(_0x55ddd1?_0x36a73b(_0x3c1f0d,_0x1e5d75,_0x26563c):_0x36a73b(_0x26563c))||_0x26563c);return _0x55ddd1&&_0x26563c&&_0xae2fc6(_0x3c1f0d,_0x1e5d75,_0x26563c),_0x26563c;},_0x485a42=(_0x381a48,_0x4c7769)=>(_0x11b1a6,_0x2fac4e)=>_0x4c7769(_0x11b1a6,_0x2fac4e,_0x381a48);_0x2c3354[_0x3b3960(0x557)]=class{constructor(_0x2d2378,_0x516f52){const _0x5c8250=_0x3b3960;this[_0x5c8250(0x46c)]=_0x2d2378,this[_0x5c8250(0x2b4)]=_0x516f52;}async[_0x3b3960(0x5c8)](_0x433320,_0x22329b){const _0xda93dd=_0x3b3960;var _0x1d1179;const {unitID:_0x2194f3,type:_0x4f79a0,revision:_0x42d20a=0x0}=_0x22329b,_0x18f7ad=this[_0xda93dd(0x3f7)]()+'/'+_0x4f79a0+_0xda93dd(0x37a)+_0x2194f3+_0xda93dd(0x2f7)+_0x42d20a,_0x248026=(await this[_0xda93dd(0x2b4)]['get'](_0x18f7ad))[_0xda93dd(0x527)],_0x3a71d5=(_0x1d1179=_0x248026[_0xda93dd(0x5bb)])==null?void 0x0:_0x1d1179['workbook'];if(_0x3a71d5){const _0x2ea0d8=_0x3a71d5==null?void 0x0:_0x3a71d5[_0xda93dd(0x441)],_0xa457e3=_0x106736[_0xda93dd(0x386)]['encode'](_0x106736[_0xda93dd(0x2cc)](_0x2ea0d8));_0x3a71d5[_0xda93dd(0x441)]=_0xa457e3,Object[_0xda93dd(0x380)](_0x3a71d5[_0xda93dd(0x319)])[_0xda93dd(0x4d1)](([,_0xcffb80])=>{const _0x1c4c0a=_0xda93dd,_0x445534=_0xcffb80[_0x1c4c0a(0x441)],_0x69f281=_0x106736['textEncoder']['encode'](_0x106736[_0x1c4c0a(0x2cc)](_0x445534));_0xcffb80[_0x1c4c0a(0x441)]=_0x69f281;});}return _0x248026;}async[_0x3b3960(0x2ce)](_0x57b3f2,_0xae8057){const _0x46cfc8=_0x3b3960,{unitID:_0x1208dd,type:_0x270c03,blockID:_0x3c108d}=_0xae8057,_0x14938f=this['_getAPIPrefix']()+'/'+_0x270c03+_0x46cfc8(0x37a)+_0x1208dd+'/block/'+_0x3c108d;return(await this[_0x46cfc8(0x2b4)][_0x46cfc8(0x3b9)](_0x14938f))[_0x46cfc8(0x527)];}async['fetchMissingChangesets'](_0x14f7c4,_0xce8a37){const _0x27596c=_0x3b3960,{unitID:_0x446d9f,type:_0x437193,from:_0x18fc60,to:_0x1ca39a}=_0xce8a37,_0x39b17d=this[_0x27596c(0x561)]()+'/'+_0x437193+_0x27596c(0x37a)+_0x446d9f+_0x27596c(0x4ee)+_0x18fc60+_0x27596c(0x45a)+_0x1ca39a;return(await this['_httpService'][_0x27596c(0x3b9)](_0x39b17d))[_0x27596c(0x527)];}[_0x3b3960(0x3f7)](){const _0x1f0512=_0x3b3960;var _0x47557a;return(_0x47557a=this['_configService'][_0x1f0512(0x584)](_0x5648aa))!=null?_0x47557a:this[_0x1f0512(0x561)]();}[_0x3b3960(0x561)](){const _0x40d64c=_0x3b3960;var _0x446053;return(_0x446053=this['_configService'][_0x40d64c(0x584)](_0x2c5950))!=null?_0x446053:_0x58a23f;}async[_0x3b3960(0x261)](_0xcd271c,_0xebf4){const _0x3a5504=_0x3b3960,_0xd20712='/universer-api/snapshot/'+_0xebf4[_0x3a5504(0x376)]+_0x3a5504(0x37a)+_0xebf4['unitID']+'/resources';return(await this[_0x3a5504(0x2b4)][_0x3a5504(0x3b9)](_0xd20712,{'params':{'resourceId':JSON[_0x3a5504(0x4b3)](_0xebf4[_0x3a5504(0x452)])}}))['body'];}[_0x3b3960(0x3fc)](){const _0x2acffe=_0x3b3960;throw new Error(_0x2acffe(0x3d3));}[_0x3b3960(0x4dd)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3b3960(0x22e)](){const _0x3cd4cb=_0x3b3960;throw new Error(_0x3cd4cb(0x3d3));}},_0x2c3354[_0x3b3960(0x557)]=_0x546f93([_0x485a42(0x0,_0x2015b3[_0x3b3960(0x582)]),_0x485a42(0x1,_0x2015b3[_0x3b3960(0x547)](_0x485f8b[_0x3b3960(0x536)]))],_0x2c3354[_0x3b3960(0x557)]);var _0x5f5631=Object[_0x3b3960(0x57c)],_0x56f379=Object['getOwnPropertyDescriptor'],_0x1dae86=(_0x2894fb,_0x30e743,_0x29b936,_0x1fc101)=>{const _0x35a33a=_0x3b3960;for(var _0x2fd3e4=_0x1fc101>0x1?void 0x0:_0x1fc101?_0x56f379(_0x30e743,_0x29b936):_0x30e743,_0x40ec11=_0x2894fb[_0x35a33a(0x306)]-0x1,_0x5048af;_0x40ec11>=0x0;_0x40ec11--)(_0x5048af=_0x2894fb[_0x40ec11])&&(_0x2fd3e4=(_0x1fc101?_0x5048af(_0x30e743,_0x29b936,_0x2fd3e4):_0x5048af(_0x2fd3e4))||_0x2fd3e4);return _0x1fc101&&_0x2fd3e4&&_0x5f5631(_0x30e743,_0x29b936,_0x2fd3e4),_0x2fd3e4;},_0xed0974=(_0x1c1f7d,_0x179065)=>(_0x920726,_0x5ad12d)=>_0x179065(_0x920726,_0x5ad12d,_0x1c1f7d);let _0x448505=class extends _0x2015b3[_0x3b3960(0x558)]{constructor(_0x372dc5,_0xf6675d,_0x220bb3,_0xe4dbb7,_0x4734e5){const _0x121a3a=_0x3b3960;super(_0x372dc5,_0xf6675d,_0x220bb3),this[_0x121a3a(0x3b1)]=_0xe4dbb7,this[_0x121a3a(0x501)]=_0x4734e5;}[_0x3b3960(0x1f7)](_0x41e106,_0x1b69d2){const _0x11dab7=_0x3b3960,_0x111ec4=this[_0x11dab7(0x295)](_0x41e106);if(_0x111ec4)try{const _0x3e625f=this['_transformStack'](_0x111ec4,_0x1b69d2);this[_0x11dab7(0x38c)](_0x41e106,_0x3e625f);}catch(_0xe5be41){this[_0x11dab7(0x501)][_0x11dab7(0x50b)](_0x11dab7(0x590),_0xe5be41),this['_clearUndo'](_0x41e106);}const _0x4b3828=this[_0x11dab7(0x2a6)](_0x41e106);if(_0x4b3828)try{const _0x238b8b=this[_0x11dab7(0x3e1)](_0x4b3828,_0x1b69d2);this[_0x11dab7(0x31e)](_0x41e106,_0x238b8b);}catch(_0x20294d){this['_logService'][_0x11dab7(0x50b)](_0x20294d),this[_0x11dab7(0x238)](_0x41e106);}}[_0x3b3960(0x34e)](_0x2c2d83){const _0x1c25ba=_0x3b3960,_0x57c409=this[_0x1c25ba(0x295)](_0x2c2d83);_0x57c409&&(_0x57c409[_0x1c25ba(0x306)]=0x0,this[_0x1c25ba(0x466)]());}['_clearRedo'](_0x4360d7){const _0x1d222c=this['_getRedoStack'](_0x4360d7);_0x1d222c&&(_0x1d222c['length']=0x0,this['_updateStatus']());}[_0x3b3960(0x38c)](_0x3d7db7,_0x1ffcc3){const _0x3ca071=_0x3b3960;this[_0x3ca071(0x41a)][_0x3ca071(0x420)](_0x3d7db7,_0x1ffcc3),this[_0x3ca071(0x466)]();}[_0x3b3960(0x31e)](_0xd67088,_0x2dd476){const _0x30c03c=_0x3b3960;this[_0x30c03c(0x3cd)][_0x30c03c(0x420)](_0xd67088,_0x2dd476),this[_0x30c03c(0x466)]();}['_transformStack'](_0x11c09e,_0x32fdac){const _0x33c995=_0x3b3960,_0x7a03dc=[];let _0x480782=_0x32fdac,_0x5726ac=_0x32fdac;for(let _0x5e4980=_0x11c09e[_0x33c995(0x306)]-0x1;_0x5e4980>=0x0;_0x5e4980--){const {unitID:_0x197f3b,undoMutations:_0x8af4d5,redoMutations:_0x58e680}=_0x11c09e[_0x5e4980],_0x877ed4=this[_0x33c995(0x3b1)]['transformMutationsWithChangeset'](_0x480782,_0x8af4d5),_0x51dbe6=this[_0x33c995(0x3b1)]['transformMutationsWithChangeset'](_0x5726ac,_0x58e680);if(_0x106736['isTransformMutationsWithChangesetFailure'](_0x877ed4)||_0x106736[_0x33c995(0x476)](_0x51dbe6)){this[_0x33c995(0x501)]['error'](_0x33c995(0x590),_0x33c995(0x422),_0x877ed4,_0x51dbe6);break;}_0x480782=_0x877ed4['c1Prime'],_0x5726ac=_0x51dbe6[_0x33c995(0x4f4)],_0x7a03dc[_0x33c995(0x279)]({'unitID':_0x197f3b,'undoMutations':_0x877ed4['m2Prime'],'redoMutations':_0x51dbe6[_0x33c995(0x4af)]});}return _0x7a03dc[_0x33c995(0x5af)]();}};_0x448505=_0x1dae86([_0xed0974(0x0,_0x2015b3[_0x3b3960(0x37c)]),_0xed0974(0x1,_0x2015b3[_0x3b3960(0x259)]),_0xed0974(0x2,_0x2015b3[_0x3b3960(0x5fb)]),_0xed0974(0x3,_0x106736[_0x3b3960(0x25a)]),_0xed0974(0x4,_0x2015b3['ILogService'])],_0x448505);class _0x3e5f32 extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(){const _0x577438=_0x3b3960;super(),_0x385cfe(this,_0x577438(0x5f2)),this[_0x577438(0x5f2)]=_0x345abe[_0x577438(0x44c)](window,_0x577438(0x3c4))[_0x577438(0x2d1)](_0x345abe[_0x577438(0x244)](this[_0x577438(0x272)]),_0x345abe[_0x577438(0x4fa)](0x1),_0x345abe[_0x577438(0x2e9)](void 0x0));}['setParam'](_0x37253c,_0x11c91c,_0x374288=!0x1){const _0xc12f8b=_0x3b3960,_0x3588fe=new URL(window[_0xc12f8b(0x2fe)][_0xc12f8b(0x4a4)]);_0x3588fe['searchParams'][_0xc12f8b(0x420)](_0x37253c,_0x11c91c),_0x374288?window[_0xc12f8b(0x5aa)][_0xc12f8b(0x3f5)]('','',_0x3588fe[_0xc12f8b(0x396)]()):window[_0xc12f8b(0x5aa)][_0xc12f8b(0x384)]('','',_0x3588fe[_0xc12f8b(0x396)]());}[_0x3b3960(0x29a)](_0x3adc6f,_0x200eb1=!0x1){const _0x5f5054=_0x3b3960,_0x4e1e49=new URL(window[_0x5f5054(0x2fe)][_0x5f5054(0x4a4)]);_0x4e1e49[_0x5f5054(0x350)][_0x5f5054(0x431)](_0x3adc6f),_0x200eb1?window['history'][_0x5f5054(0x3f5)]('','',_0x4e1e49[_0x5f5054(0x396)]()):window[_0x5f5054(0x5aa)][_0x5f5054(0x384)]('','',_0x4e1e49[_0x5f5054(0x396)]());}[_0x3b3960(0x20d)](_0x3a741b){const _0x22a836=_0x3b3960;var _0x80a51e;return(_0x80a51e=new URL(window[_0x22a836(0x2fe)][_0x22a836(0x4a4)])['searchParams'][_0x22a836(0x3b9)](_0x3a741b))!=null?_0x80a51e:void 0x0;}}const _0x131898=_0x3b3960(0x4ff),_0x1f6b36=_0x3b3960(0x5eb),_0x2847ea='collab-rect-range-',_0x4fdd90=0x6,_0x24bd1e=1.5,_0x27743b=0x4,_0x9a8852=1.5,_0x2f10cf='rgba(255,\x20255,\x20255,\x200.01)';class _0x134409{constructor(_0xf8485a,_0x4f1343,_0x488762,_0x1f817f){const _0x2250c8=_0x3b3960;_0x385cfe(this,_0x2250c8(0x20c),[]),_0x385cfe(this,'_anchor',null),_0x385cfe(this,_0x2250c8(0x4ed),null),_0x385cfe(this,_0x2250c8(0x3b0),null),_0x385cfe(this,'_hideTimer',null),_0x385cfe(this,'_eventUnsubscribe',null),(this[_0x2250c8(0x2e4)]=_0xf8485a,this[_0x2250c8(0x5d5)]=_0x4f1343,this['_docSkeleton']=_0x488762,this['_document']=_0x1f817f,this[_0x2250c8(0x249)]());}set[_0x3b3960(0x214)](_0x2a24d5){const _0x367ba0=_0x3b3960;_0x2a24d5?(this['_anchorDot']&&this['_anchorDot'][_0x367ba0(0x2c7)](),this[_0x367ba0(0x4ed)]&&this[_0x367ba0(0x4ed)][_0x367ba0(0x2c3)]()):(this[_0x367ba0(0x3b0)]&&this[_0x367ba0(0x3b0)][_0x367ba0(0x2c3)](),this['_textBubble']&&this[_0x367ba0(0x4ed)]['hide']());}['dispose'](){const _0x21a518=_0x3b3960;for(const _0x5be8bb of this[_0x21a518(0x20c)])_0x5be8bb['dispose']();this[_0x21a518(0x4ed)]&&this[_0x21a518(0x4ed)][_0x21a518(0x472)](),this['_anchorDot']&&this[_0x21a518(0x3b0)]['dispose'](),this[_0x21a518(0x5bd)]&&this[_0x21a518(0x5bd)]['dispose'](),this[_0x21a518(0x450)]&&this[_0x21a518(0x450)]();}[_0x3b3960(0x249)](){const _0x3ec383=_0x3b3960;var _0x521f2;const {_docSkeleton:_0x6843ac,_document:_0x196648}=this,{color:_0x2ced16,name:_0x3324e3,ranges:_0x46f78e}=this[_0x3ec383(0x2e4)],_0x309e21=_0x196648[_0x3ec383(0x418)](),{docsLeft:_0x3af97e,docsTop:_0x45b075}=_0x309e21,_0x3460cf=new _0x572a63[(_0x3ec383(0x47f))](_0x309e21,_0x6843ac);for(const {startOffset:_0x18d93e,endOffset:_0x19e7f2,collapsed:_0x4e3af6,isActive:_0x3eb97e}of _0x46f78e){const _0x4f91f8=_0x6843ac['findNodePositionByCharIndex'](_0x18d93e),_0x10622c=_0x6843ac[_0x3ec383(0x2dd)](_0x19e7f2);if(_0x3eb97e){const {contentBoxPointGroup:_0x6b0489}=_0x3460cf[_0x3ec383(0x470)](_0x10622c,_0x10622c);if(_0x6b0489[_0x3ec383(0x306)]===0x0)continue;this[_0x3ec383(0x52a)](_0x2ced16,_0x6b0489,_0x3af97e,_0x45b075,_0x3324e3),this['_eventUnsubscribe']=this['_handleHover']();}if(!_0x4e3af6&&_0x4f91f8&&_0x10622c){if(_0x572a63[_0x3ec383(0x400)](_0x4f91f8,_0x10622c)){const _0x6c3434=new _0x572a63[(_0x3ec383(0x410))](_0x309e21,_0x6843ac),{pointGroup:_0x2e8480}=(_0x521f2=_0x6c3434[_0x3ec383(0x470)](_0x4f91f8,_0x10622c))!=null?_0x521f2:{};if(_0x2e8480==null||_0x2e8480[_0x3ec383(0x306)]===0x0)continue;this['_drawRectRange'](_0x2ced16,_0x2e8480,_0x3af97e,_0x45b075);}else{const {contentBoxPointGroup:_0x2cf259}=_0x3460cf[_0x3ec383(0x470)](_0x4f91f8,_0x10622c);if(_0x2cf259['length']===0x0)continue;this[_0x3ec383(0x4e0)](_0x2ced16,_0x2cf259,_0x3af97e,_0x45b075);}}}}[_0x3b3960(0x52a)](_0x9177ca,_0x45287a,_0x174623,_0xaeaa31,_0x53a4e4){const _0x4180f7=_0x3b3960,_0x145f82=this['_getAnchorBounding'](_0x45287a),{left:_0x275358,top:_0x3ec727,height:_0x3d619c}=_0x145f82,_0x593238=this[_0x4180f7(0x254)](),_0x4a7218=_0x9a8852/_0x593238,_0x2810aa=new _0x572a63[(_0x4180f7(0x58b))](_0x131898+_0x2015b3[_0x4180f7(0x471)][_0x4180f7(0x447)](_0x4fdd90),{'left':_0x275358+_0x174623-_0x4a7218,'top':_0x3ec727+_0xaeaa31,'height':_0x3d619c,'width':_0x24bd1e,'fill':_0x9177ca||_0x572a63['getColor'](_0x2015b3[_0x4180f7(0x570)][_0x4180f7(0x514)],0x0),'strokeWidth':_0x4a7218,'stroke':_0x2f10cf,'evented':!0x0});this[_0x4180f7(0x5bd)]=_0x2810aa,this['_scene']['addObject'](_0x2810aa,_0x572a63[_0x4180f7(0x573)]);const _0x25e4ba=new _0x572a63['Rect'](_0x131898+_0x2015b3[_0x4180f7(0x471)][_0x4180f7(0x447)](_0x4fdd90),{'left':_0x275358+_0x174623-_0x4a7218,'top':_0x3ec727+_0xaeaa31-_0x27743b/0x2,'height':_0x27743b,'width':_0x27743b,'fill':_0x9177ca||_0x572a63['getColor'](_0x2015b3[_0x4180f7(0x570)][_0x4180f7(0x514)],0x0),'strokeWidth':0x0,'stroke':_0x9177ca||_0x572a63[_0x4180f7(0x2a1)](_0x2015b3[_0x4180f7(0x570)][_0x4180f7(0x514)],0x0),'evented':!0x1});this[_0x4180f7(0x3b0)]=_0x25e4ba,this[_0x4180f7(0x5d5)]['addObject'](_0x25e4ba,_0x572a63[_0x4180f7(0x573)]);const _0x4d2e61=new _0x4b8b68(_0x131898+_0x2015b3['Tools'][_0x4180f7(0x447)](_0x4fdd90),{'left':_0x275358+_0x174623-_0x4a7218,'top':_0x3ec727+_0xaeaa31-_0x5c9f4b,'text':_0x53a4e4,'color':_0x9177ca});this['_textBubble']=_0x4d2e61,this[_0x4180f7(0x5d5)]['addObject'](_0x4d2e61,_0x572a63['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x3b3960(0x589)](){const _0x140389=_0x3b3960,_0x41b6fc=this[_0x140389(0x5bd)][_0x140389(0x451)]['subscribeEvent'](()=>{const _0x3617ff=_0x140389;this[_0x3617ff(0x214)]=!0x0;}),_0x1e7794=this['_anchor']['onPointerLeave$'][_0x140389(0x281)](()=>{const _0x5258f6=_0x140389;this[_0x5258f6(0x293)]&&clearTimeout(this[_0x5258f6(0x293)]),this[_0x5258f6(0x293)]=setTimeout(()=>{const _0x1d231a=_0x5258f6;this[_0x1d231a(0x214)]=!0x1;},0x7d0);});return()=>{const _0x24f117=_0x140389;_0x41b6fc['unsubscribe'](),_0x1e7794[_0x24f117(0x55a)]();};}[_0x3b3960(0x4e0)](_0x56ae32,_0x23f843,_0xad9b4f,_0x5bc09b){const _0x2a793c=_0x3b3960,_0x422466=new _0x2015b3[(_0x2a793c(0x50a))](_0x56ae32)['setAlpha'](0.2)['toRgbString'](),_0xa0a5cb=new _0x572a63[(_0x2a793c(0x5be))](_0x1f6b36+_0x2015b3['Tools'][_0x2a793c(0x447)](_0x4fdd90),{'pointsGroup':_0x23f843,'fill':_0x422466||_0x572a63[_0x2a793c(0x2a1)](_0x2015b3[_0x2a793c(0x570)][_0x2a793c(0x514)],0.2),'left':_0xad9b4f,'top':_0x5bc09b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2a793c(0x20c)][_0x2a793c(0x279)](_0xa0a5cb),this[_0x2a793c(0x5d5)][_0x2a793c(0x280)](_0xa0a5cb,_0x572a63['TEXT_RANGE_LAYER_INDEX']);}[_0x3b3960(0x506)](_0xc983ba,_0x9dd17c,_0x540411,_0x1200ce){const _0x4a5ad4=_0x3b3960,_0x368058=new _0x2015b3[(_0x4a5ad4(0x50a))](_0xc983ba)['setAlpha'](0.2)[_0x4a5ad4(0x583)](),_0x51974a=new _0x572a63['RegularPolygon'](_0x2847ea+_0x2015b3['Tools'][_0x4a5ad4(0x447)](_0x4fdd90),{'pointsGroup':_0x9dd17c,'fill':_0x368058||_0x572a63[_0x4a5ad4(0x2a1)](_0x2015b3[_0x4a5ad4(0x570)][_0x4a5ad4(0x514)],0.2),'left':_0x540411,'top':_0x1200ce,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4a5ad4(0x20c)]['push'](_0x51974a),this[_0x4a5ad4(0x5d5)]['addObject'](_0x51974a,_0x572a63['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x361b49){const _0x48b054=_0x361b49[0x0],_0x555fa=_0x48b054[0x0],_0x16c371=_0x48b054[0x2],{x:_0x45c882,y:_0x573934}=_0x555fa,{x:_0x412f29,y:_0x56d445}=_0x16c371;return{'left':_0x45c882,'top':_0x573934,'width':_0x412f29-_0x45c882,'height':_0x56d445-_0x573934};}[_0x3b3960(0x254)](){const _0x2d6cb5=_0x3b3960,{scaleX:_0x426897,scaleY:_0x58956d}=this[_0x2d6cb5(0x5d5)]['getAncestorScale']();return Math[_0x2d6cb5(0x2d6)](_0x426897,_0x58956d);}}var _0x2366bf=Object[_0x3b3960(0x57c)],_0x5277a2=Object[_0x3b3960(0x2c2)],_0x5e6a89=(_0x10e7e0,_0x268f98,_0x14fad7,_0x5e1925)=>{const _0x231eea=_0x3b3960;for(var _0x3968f3=_0x5e1925>0x1?void 0x0:_0x5e1925?_0x5277a2(_0x268f98,_0x14fad7):_0x268f98,_0x5500dd=_0x10e7e0[_0x231eea(0x306)]-0x1,_0x520403;_0x5500dd>=0x0;_0x5500dd--)(_0x520403=_0x10e7e0[_0x5500dd])&&(_0x3968f3=(_0x5e1925?_0x520403(_0x268f98,_0x14fad7,_0x3968f3):_0x520403(_0x3968f3))||_0x3968f3);return _0x5e1925&&_0x3968f3&&_0x2366bf(_0x268f98,_0x14fad7,_0x3968f3),_0x3968f3;},_0x2b1866=(_0x40bd69,_0x2b5ed6)=>(_0x59d8f1,_0x6d3ede)=>_0x2b5ed6(_0x59d8f1,_0x6d3ede,_0x40bd69);let _0x304928=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x37de76,_0x38ff79,_0x2b92a1,_0x2ac4b0,_0x39246c){const _0x5a57c2=_0x3b3960;super(),_0x385cfe(this,_0x5a57c2(0x5fd),[]),_0x385cfe(this,_0x5a57c2(0x302),[]),(this[_0x5a57c2(0x37f)]=_0x37de76,this[_0x5a57c2(0x4c5)]=_0x38ff79,this['_collabCursorController']=_0x2b92a1,this[_0x5a57c2(0x286)]=_0x2ac4b0,this[_0x5a57c2(0x549)]=_0x39246c,this[_0x5a57c2(0x4a1)]());}[_0x3b3960(0x4a1)](){const _0x59be52=_0x3b3960,_0x288cd3=this[_0x59be52(0x37f)][_0x59be52(0x59f)],_0x2f754f=this[_0x59be52(0x4c5)];this[_0x59be52(0x369)](_0x345abe[_0x59be52(0x4a3)]([this[_0x59be52(0x266)]['getCollabCursors$'](_0x288cd3),this[_0x59be52(0x549)]['currentTheme$']])[_0x59be52(0x2d1)](_0x2cc613[_0x59be52(0x522)](([_0x41dd35,_0xe62def])=>({'skeleton':_0x2f754f[_0x59be52(0x3de)](),'cursors':[..._0x41dd35[_0x59be52(0x58f)]()][_0x59be52(0x436)](_0xeeceb0=>({..._0xeeceb0,'color':_0xe62def[_0xeeceb0[_0x59be52(0x3d8)]]}))})))[_0x59be52(0x35b)](_0x12f15d=>{const _0x3a499b=_0x59be52;if(this[_0x3a499b(0x3b7)](),_0x12f15d){const {skeleton:_0x283c16,cursors:_0x3a4c47}=_0x12f15d;this[_0x3a499b(0x368)](_0x283c16,_0x3a4c47);}})),this[_0x59be52(0x540)](),this[_0x59be52(0x5bc)]();}['_updateCollabCursors'](_0x55e891,_0xb41ff6){const _0x2d8e1e=_0x3b3960,{scene:_0x5ae8fd,mainComponent:_0x1e8c2e}=this[_0x2d8e1e(0x37f)],_0x4fd2f8=_0xb41ff6[_0x2d8e1e(0x522)](_0x344611=>new _0x134409(_0x344611,_0x5ae8fd,_0x55e891,_0x1e8c2e));this['_cursorShapes']=_0x4fd2f8,this[_0x2d8e1e(0x302)]=_0xb41ff6;}[_0x3b3960(0x3bd)](){const _0x2bb8ae=_0x3b3960;this[_0x2bb8ae(0x3b7)]();const {scene:_0x44bf0f,mainComponent:_0x211732}=this[_0x2bb8ae(0x37f)],_0x87f55c=this[_0x2bb8ae(0x4c5)][_0x2bb8ae(0x3de)](),_0x47272b=this[_0x2bb8ae(0x302)]['map'](_0x6b9e44=>new _0x134409(_0x6b9e44,_0x44bf0f,_0x87f55c,_0x211732));this[_0x2bb8ae(0x5fd)]=_0x47272b;}[_0x3b3960(0x3b7)](){const _0x3ee73f=_0x3b3960;this[_0x3ee73f(0x5fd)][_0x3ee73f(0x4d1)](_0x478124=>_0x478124[_0x3ee73f(0x472)]()),this[_0x3ee73f(0x5fd)]=[];}[_0x3b3960(0x5bc)](){const _0x26effe=_0x3b3960,_0x5054e6=[_0xbcf55e[_0x26effe(0x359)]['id']];this['disposeWithMe'](this['_commandService'][_0x26effe(0x3ab)](_0x215a62=>{const _0x52952c=_0x26effe;_0x5054e6[_0x52952c(0x4e5)](_0x215a62['id'])&&_0x215a62[_0x52952c(0x358)]['unitId']===this['_context'][_0x52952c(0x59f)]&&this[_0x52952c(0x3bd)]();}));}[_0x3b3960(0x540)](){const _0x3375ee=_0x3b3960;this[_0x3375ee(0x369)](_0x2015b3[_0x3375ee(0x270)](this[_0x3375ee(0x37f)][_0x3375ee(0x336)]['onTransformChange$'])[_0x3375ee(0x2d1)](_0x2cc613[_0x3375ee(0x493)](_0x464406=>_0x464406[_0x3375ee(0x376)]===_0x572a63[_0x3375ee(0x533)]['resize']),_0x2cc613[_0x3375ee(0x21a)](0x10))[_0x3375ee(0x35b)](()=>{const _0x5ec3b5=_0x3375ee;this[_0x5ec3b5(0x3bd)]();}));}};_0x304928=_0x5e6a89([_0x2015b3[_0x3b3960(0x2a0)](_0x2015b3[_0x3b3960(0x5f6)][_0x3b3960(0x520)],_0x304928),_0x2b1866(0x1,_0x2015b3[_0x3b3960(0x547)](_0xbcf55e['DocSkeletonManagerService'])),_0x2b1866(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2a0bf9)),_0x2b1866(0x3,_0x2015b3[_0x3b3960(0x259)]),_0x2b1866(0x4,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x2e1)]))],_0x304928);var _0x1bd4c8=Object['defineProperty'],_0x23fc68=Object[_0x3b3960(0x2c2)],_0x2a7515=(_0x1408e2,_0x7f2edc,_0x3a6dc8,_0xd35801)=>{const _0x20afb3=_0x3b3960;for(var _0x6407a5=_0xd35801>0x1?void 0x0:_0xd35801?_0x23fc68(_0x7f2edc,_0x3a6dc8):_0x7f2edc,_0x52042d=_0x1408e2[_0x20afb3(0x306)]-0x1,_0x179858;_0x52042d>=0x0;_0x52042d--)(_0x179858=_0x1408e2[_0x52042d])&&(_0x6407a5=(_0xd35801?_0x179858(_0x7f2edc,_0x3a6dc8,_0x6407a5):_0x179858(_0x6407a5))||_0x6407a5);return _0xd35801&&_0x6407a5&&_0x1bd4c8(_0x7f2edc,_0x3a6dc8,_0x6407a5),_0x6407a5;},_0x321032=(_0x224b03,_0x30d43c)=>(_0x52beb6,_0xc30b9f)=>_0x30d43c(_0x52beb6,_0xc30b9f,_0x224b03);let _0x371f23=class{constructor(_0x85b1d5,_0x18d793,_0x2eb116){const _0x3fddf0=_0x3b3960;this[_0x3fddf0(0x46c)]=_0x85b1d5,this[_0x3fddf0(0x2b4)]=_0x18d793,this['localeService']=_0x2eb116,this[_0x3fddf0(0x595)]();}[_0x3b3960(0x595)](){const _0x4d7e53=_0x3b3960;this[_0x4d7e53(0x2b4)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x426f7e,_0xf11e51)=>_0xf11e51(_0x426f7e)['pipe'](_0x345abe[_0x4d7e53(0x226)](async _0x48f09b=>{const _0x2fdf4b=_0x4d7e53,_0x226d7e=_0x48f09b;if(_0x226d7e[_0x2fdf4b(0x268)]===0x191&&window[_0x2fdf4b(0x2ac)](this[_0x2fdf4b(0x362)]['t'](_0x2fdf4b(0x585)))){const _0x2cc7c2=window[_0x2fdf4b(0x3c7)](window['location']['href']);window['location'][_0x2fdf4b(0x4a4)]=this['_getLoginPath']()+'?url='+_0x2cc7c2;}return _0x226d7e;}))});}[_0x3b3960(0x592)](){const _0x1d14ab=_0x3b3960;var _0x124e61;return(_0x124e61=this['_configService'][_0x1d14ab(0x584)](_0x4f5e36))!=null?_0x124e61:_0x1df3cc;}};_0x371f23=_0x2a7515([_0x321032(0x0,_0x2015b3[_0x3b3960(0x582)]),_0x321032(0x1,_0x2015b3[_0x3b3960(0x547)](_0x485f8b[_0x3b3960(0x536)])),_0x321032(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['LocaleService']))],_0x371f23);var _0x32378c=Object['defineProperty'],_0x5a00c5=Object['getOwnPropertyDescriptor'],_0x537450=(_0x3c10f3,_0x147970,_0x478753,_0x124bf8)=>{const _0x53dfcb=_0x3b3960;for(var _0x537970=_0x124bf8>0x1?void 0x0:_0x124bf8?_0x5a00c5(_0x147970,_0x478753):_0x147970,_0x57f49e=_0x3c10f3[_0x53dfcb(0x306)]-0x1,_0x5725af;_0x57f49e>=0x0;_0x57f49e--)(_0x5725af=_0x3c10f3[_0x57f49e])&&(_0x537970=(_0x124bf8?_0x5725af(_0x147970,_0x478753,_0x537970):_0x5725af(_0x537970))||_0x537970);return _0x124bf8&&_0x537970&&_0x32378c(_0x147970,_0x478753,_0x537970),_0x537970;},_0x350d64=(_0x2c6f03,_0x5a1847)=>(_0x5a76cc,_0xbd9cea)=>_0x5a1847(_0x5a76cc,_0xbd9cea,_0x2c6f03);const _0xe6c904=_0x3b3960(0x29d),_0x3dff80=_0x3b3960(0x2ea);_0x2c3354[_0x3b3960(0x5fa)]=class extends _0x2015b3[_0x3b3960(0x38b)]{constructor(_0x2e023c,_0x43f3d4){const _0x502c29=_0x3b3960;super(),this[_0x502c29(0x5e5)]=_0x2e023c,this[_0x502c29(0x46c)]=_0x43f3d4,this[_0x502c29(0x3fa)]();}['_initMergeInterceptor'](){const _0x5ae47d=_0x3b3960,_0x58e0ca=this;this[_0x5ae47d(0x369)](this[_0x5ae47d(0x5e5)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x485f8b[_0x5ae47d(0x465)]({'isMatch'(_0x29bfb){const _0x195fd0=_0x5ae47d;var _0x2d299d;if(_0x29bfb[_0x195fd0(0x5a5)]===_0x195fd0(0x344)&&((_0x2d299d=_0x29bfb[_0x195fd0(0x480)])!=null&&_0x2d299d[_0x195fd0(0x527)])){const {objectID:_0x24abc7,objectType:_0x5a7fec}=_0x29bfb['requestParams'][_0x195fd0(0x527)]||{};if(!_0x24abc7||_0x5a7fec===void 0x0)return!0x1;const _0x3f60cf=_0x58e0ca[_0x195fd0(0x317)]()+'/'+_0x5a7fec+_0x195fd0(0x434)+_0x24abc7+_0x195fd0(0x349);if(_0x29bfb[_0x195fd0(0x33f)]===_0x3f60cf)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x55d12c){const _0x34a85b=_0x5ae47d;var _0xd1ec3f;return(_0xd1ec3f=_0x55d12c[_0x34a85b(0x480)])==null?void 0x0:_0xd1ec3f[_0x34a85b(0x527)];},'mergeParamsToRequest'(_0x70bc5a,_0x2ff0b3){const _0x2ec71b=_0x5ae47d,_0x465ffa=_0x58e0ca['_getAPIPrefixPath']()+_0x2ec71b(0x3ba),_0x3299d0=_0x70bc5a['reduce']((_0x544d4c,_0x4b5f8d)=>{const _0x41ecc2=_0x2ec71b,{unitID:_0x4cccc9,objectID:_0x5c745a,objectType:_0x534eb1,actions:_0x5d9355}=_0x4b5f8d;return _0x544d4c[_0x4cccc9]||(_0x544d4c[_0x4cccc9]={}),_0x544d4c[_0x4cccc9][_0x5c745a]||(_0x544d4c[_0x4cccc9][_0x5c745a]={'objectID':_0x5c745a,'objectType':_0x534eb1,'actions':[]}),_0x544d4c[_0x4cccc9][_0x5c745a][_0x41ecc2(0x59b)][_0x41ecc2(0x279)](..._0x5d9355),_0x544d4c;},{}),_0x3d7d23=[];for(const _0x4bc6bd in _0x3299d0)for(const _0x29178b in _0x3299d0[_0x4bc6bd]){const {actions:_0x123ca0,objectType:_0x150292}=_0x3299d0[_0x4bc6bd][_0x29178b],_0x15434b=[...new Set(_0x123ca0)];_0x3d7d23[_0x2ec71b(0x279)]({'unitID':_0x4bc6bd,'objectID':_0x29178b,'objectType':_0x150292,'actions':_0x15434b});}return new _0x485f8b[(_0x2ec71b(0x3a9))](_0x2ec71b(0x344),_0x465ffa,{'headers':_0x2ff0b3[_0x2ec71b(0x4a7)],'withCredentials':_0x2ff0b3[_0x2ec71b(0x39a)],'responseType':_0x2ff0b3[_0x2ec71b(0x550)],'body':{'requests':_0x3d7d23}});}},{'distributeResult'(_0x36a4f2,_0x324426){const _0x2c11f4=_0x5ae47d,{objectActions:_0x285e82}=_0x36a4f2;return _0x324426[_0x2c11f4(0x522)](_0x329d1e=>{const _0x21d4b1=_0x2c11f4,{unitID:_0x4e147e,objectID:_0x8e6679,actions:_0x33091c}=_0x329d1e,_0x353165=_0x285e82[_0x21d4b1(0x335)](_0xa959f5=>_0xa959f5[_0x21d4b1(0x353)]===_0x4e147e&&_0xa959f5[_0x21d4b1(0x4a8)]===_0x8e6679),_0x5b6a8e=_0x33091c[_0x21d4b1(0x522)](_0x51135e=>_0x353165==null?void 0x0:_0x353165[_0x21d4b1(0x59b)][_0x21d4b1(0x335)](_0x13c9b6=>_0x13c9b6[_0x21d4b1(0x454)]===_0x51135e))[_0x21d4b1(0x493)](_0x3763bc=>!!_0x3763bc);return{'config':_0x329d1e,'result':{'actions':_0x5b6a8e,'error':_0x36a4f2[_0x21d4b1(0x50b)]}};});}})}));}[_0x3b3960(0x317)](){const _0x229a89=_0x3b3960;var _0x24cd2c;return(_0x24cd2c=this[_0x229a89(0x46c)][_0x229a89(0x584)](_0xe6c904))!=null?_0x24cd2c:_0x3dff80;}async[_0x3b3960(0x500)](_0x4acebc){const _0x19f71a=_0x3b3960,_0x3c2029=this[_0x19f71a(0x317)]()+'/'+_0x4acebc['objectType']+_0x19f71a(0x5a9);return(await this['_HTTPService'][_0x19f71a(0x228)](_0x3c2029,{'body':_0x4acebc}))[_0x19f71a(0x527)]['objectID']||'';}async[_0x3b3960(0x597)](_0x45aa40){const _0x24c778=_0x3b3960,_0x4b7a1c=this[_0x24c778(0x317)]()+_0x24c778(0x288);return(await this[_0x24c778(0x5e5)][_0x24c778(0x228)](_0x4b7a1c,{'body':_0x45aa40}))[_0x24c778(0x527)][_0x24c778(0x345)];}async[_0x3b3960(0x27c)](_0xd15edb){const _0x285914=_0x3b3960,_0x2c5b8c=this[_0x285914(0x317)]()+'/'+_0xd15edb[_0x285914(0x57f)]+'/object/'+_0xd15edb[_0x285914(0x4a8)];await this['_HTTPService'][_0x285914(0x339)](_0x2c5b8c,{'body':_0xd15edb});}async[_0x3b3960(0x39c)](_0x58cbfd){const _0x147a20=_0x3b3960,_0x8b69c6=this[_0x147a20(0x317)]()+'/'+_0x58cbfd[_0x147a20(0x57f)]+_0x147a20(0x434)+_0x58cbfd[_0x147a20(0x4a8)]+'/allowed';return(await this[_0x147a20(0x5e5)]['post'](_0x8b69c6,{'body':_0x58cbfd}))[_0x147a20(0x527)]['actions'];}async[_0x3b3960(0x43f)](_0x4b2e19){const _0xe1f6ea=_0x3b3960,_0x50846d=this[_0xe1f6ea(0x317)]()+'/-/object/-/batch_allowed';return(await this['_HTTPService'][_0xe1f6ea(0x228)](_0x50846d,{'body':{'requests':_0x4b2e19}}))[_0xe1f6ea(0x527)][_0xe1f6ea(0x498)];}async[_0x3b3960(0x24f)](_0x301ae7){const _0xfea4fa=_0x3b3960,_0x359c35=this[_0xfea4fa(0x317)]()+'/'+_0x301ae7[_0xfea4fa(0x57f)]+_0xfea4fa(0x535),_0x58ec19=await this[_0xfea4fa(0x5e5)]['post'](_0x359c35,{'body':_0x301ae7});return{'roles':_0x58ec19[_0xfea4fa(0x527)][_0xfea4fa(0x4df)],'actions':_0x58ec19[_0xfea4fa(0x527)][_0xfea4fa(0x59b)]};}async[_0x3b3960(0x256)](_0x4e78c9){const _0x3abe92=_0x3b3960,_0x4bb4ea=this[_0x3abe92(0x317)]()+_0x3abe92(0x40b);await this['_HTTPService'][_0x3abe92(0x431)](_0x4bb4ea,{'params':{'collaboratorID':_0x4e78c9[_0x3abe92(0x2f6)],'objectID':_0x4e78c9[_0x3abe92(0x4a8)],'unitID':_0x4e78c9[_0x3abe92(0x353)]}});}async['updateCollaborator'](_0x5651b1){const _0x28b5b1=_0x3b3960,_0x111c37=this['_getAPIPrefixPath']()+_0x28b5b1(0x40b);await this['_HTTPService']['patch'](_0x111c37,{'body':_0x5651b1});}async[_0x3b3960(0x2ed)](_0x7ced5e){const _0x436121=_0x3b3960,_0x3830f3=this[_0x436121(0x317)]()+'/collaborator';await this[_0x436121(0x5e5)]['post'](_0x3830f3,{'body':_0x7ced5e});}async[_0x3b3960(0x513)](_0x41b8ed){const _0x1629c3=_0x3b3960,_0x2c8114=this['_getAPIPrefixPath']()+'/collaborator';return(await this['_HTTPService'][_0x1629c3(0x3b9)](_0x2c8114,{'params':{'objectID':_0x41b8ed['objectID'],'unitID':_0x41b8ed[_0x1629c3(0x353)]}}))[_0x1629c3(0x527)][_0x1629c3(0x41f)];}async[_0x3b3960(0x49d)](_0xa89641){const _0x395883=_0x3b3960,_0x82c15f=this[_0x395883(0x317)]()+_0x395883(0x40b);await this[_0x395883(0x5e5)][_0x395883(0x339)](_0x82c15f,{'body':_0xa89641});}},_0x2c3354[_0x3b3960(0x5fa)]=_0x537450([_0x350d64(0x0,_0x2015b3['Inject'](_0x485f8b[_0x3b3960(0x536)])),_0x350d64(0x1,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x582)]))],_0x2c3354[_0x3b3960(0x5fa)]);var _0x48f36c=Object[_0x3b3960(0x57c)],_0x2a1827=Object[_0x3b3960(0x2c2)],_0x253b27=(_0x4436cf,_0x1a9590,_0x1687c6,_0x5d8b79)=>{const _0x741cd6=_0x3b3960;for(var _0x3fccae=_0x5d8b79>0x1?void 0x0:_0x5d8b79?_0x2a1827(_0x1a9590,_0x1687c6):_0x1a9590,_0x21b6a3=_0x4436cf[_0x741cd6(0x306)]-0x1,_0x505d62;_0x21b6a3>=0x0;_0x21b6a3--)(_0x505d62=_0x4436cf[_0x21b6a3])&&(_0x3fccae=(_0x5d8b79?_0x505d62(_0x1a9590,_0x1687c6,_0x3fccae):_0x505d62(_0x3fccae))||_0x3fccae);return _0x5d8b79&&_0x3fccae&&_0x48f36c(_0x1a9590,_0x1687c6,_0x3fccae),_0x3fccae;},_0x2a4c33=(_0x492ffe,_0x2914c7)=>(_0x927fd,_0x5526ed)=>_0x2914c7(_0x927fd,_0x5526ed,_0x492ffe);const _0xed7207=[_0x3b3960(0x32b),_0x3b3960(0x276),_0x3b3960(0x459),_0x3b3960(0x59a),_0x3b3960(0x36f)],_0x4fef26=0x5*0x400*0x400,_0x471ff0='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',_0x53c78f='/universer-api/stream/file/upload',_0xe6854b='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_0x5ccb89=_0x3b3960(0x1fb);_0x2c3354[_0x3b3960(0x36d)]=class{constructor(_0x572903,_0x4e256,_0x191c76){const _0x2c4dcb=_0x3b3960;_0x385cfe(this,'_waitCount',0x0),_0x385cfe(this,_0x2c4dcb(0x242),new _0x345abe[(_0x2c4dcb(0x421))]()),_0x385cfe(this,'change$',this[_0x2c4dcb(0x242)]),_0x385cfe(this,_0x2c4dcb(0x3d5),new Map()),(this['_httpService']=_0x572903,this[_0x2c4dcb(0x46c)]=_0x4e256,this[_0x2c4dcb(0x5b7)]=_0x191c76);}['setWaitCount'](_0x5a5474){const _0x6a9da1=_0x3b3960;this[_0x6a9da1(0x264)]=_0x5a5474,this['_change$'][_0x6a9da1(0x2b0)](_0x5a5474);}[_0x3b3960(0x463)](_0x55fa24,_0x37a244){const _0x5bb480=_0x3b3960;if(_0x37a244===_0x17c816['ImageSourceType'][_0x5bb480(0x4e3)]){const _0x2b681a=new Image();return _0x2b681a[_0x5bb480(0x48b)]=_0x55fa24,_0x2b681a;}return this[_0x5bb480(0x3d5)]['get'](_0x55fa24);}[_0x3b3960(0x5ab)](_0x274b47,_0x25ffd7,_0x2bbec4){const _0x54854c=_0x3b3960;_0x25ffd7===_0x17c816['ImageSourceType'][_0x54854c(0x4e3)]||_0x2bbec4==null||this[_0x54854c(0x3d5)]['set'](_0x274b47,_0x2bbec4);}async['getImage'](_0x32791b){const _0x1f0bba=_0x3b3960;try{const _0x4f3ce7=this['_replaceFileID'](this[_0x1f0bba(0x229)](),''+_0x32791b),_0x73cc94=(await this[_0x1f0bba(0x2b4)]['get'](_0x4f3ce7))['body'];return _0x73cc94['error']&&_0x73cc94[_0x1f0bba(0x50b)][_0x1f0bba(0x534)]===_0x48be91['OK']?Promise[_0x1f0bba(0x478)](_0x73cc94[_0x1f0bba(0x33f)]):Promise[_0x1f0bba(0x314)](_0x73cc94[_0x1f0bba(0x50b)]);}catch(_0x367c96){return Promise[_0x1f0bba(0x314)](_0x367c96);}}async[_0x3b3960(0x5e8)](_0x2405ab){const _0xd568c5=_0x3b3960;let _0x50425f='';if(!_0xed7207[_0xd568c5(0x4e5)](_0x2405ab['type']))return this['_decreaseWaiting'](),Promise[_0xd568c5(0x314)](new Error(_0x17c816['ImageUploadStatusType'][_0xd568c5(0x351)]));if(_0x2405ab[_0xd568c5(0x52c)]>_0x4fef26)return this[_0xd568c5(0x24d)](),Promise[_0xd568c5(0x314)](new Error(_0x17c816[_0xd568c5(0x273)][_0xd568c5(0x27a)]));try{const _0x1ddc66=new FormData();_0x1ddc66['append'](_0xd568c5(0x277),_0x2405ab);const _0x1817f9=this[_0xd568c5(0x5b7)][_0xd568c5(0x209)](),_0x5c3cf8=_0x1817f9==null?void 0x0:_0x1817f9[_0xd568c5(0x304)]();if(!_0x5c3cf8)throw new Error(_0xd568c5(0x51d));const _0xbe7567=this[_0xd568c5(0x5a0)]()+_0xd568c5(0x43a)+_0x2405ab['size'][_0xd568c5(0x396)]()+_0xd568c5(0x5d8)+_0x5d29eb['UnitEmbedded']+_0xd568c5(0x4c3)+encodeURIComponent(_0x5c3cf8),_0x46cde4=await(await fetch(_0xbe7567,{'method':_0xd568c5(0x344),'body':_0x1ddc66}))[_0xd568c5(0x2a5)]();if(typeof _0x46cde4[_0xd568c5(0x395)]!=_0xd568c5(0x31b))return this[_0xd568c5(0x24d)](),Promise[_0xd568c5(0x314)](new Error(_0x17c816['ImageUploadStatusType'][_0xd568c5(0x356)]));_0x50425f=_0x46cde4[_0xd568c5(0x395)];}catch{return this[_0xd568c5(0x24d)](),Promise['reject'](new Error(_0x17c816[_0xd568c5(0x273)]['ERROR_IMAGE']));}return new Promise((_0x5e05ab,_0x329a0d)=>{const _0x407fe5=_0xd568c5,_0x29fd8b=new FileReader();_0x29fd8b[_0x407fe5(0x340)](_0x2405ab),_0x29fd8b['onload']=_0x98e739=>{const _0xbb308f=_0x407fe5;var _0x485515;const _0x178f1f=(_0x485515=_0x98e739[_0xbb308f(0x526)])==null?void 0x0:_0x485515[_0xbb308f(0x473)];if(_0x178f1f==null){this[_0xbb308f(0x24d)](),_0x329a0d(new Error(_0x17c816[_0xbb308f(0x273)][_0xbb308f(0x356)]));return;}const _0x11d712=_0x2015b3['Tools'][_0xbb308f(0x447)](0x6);_0x5e05ab({'imageId':_0x11d712,'imageSourceType':_0x17c816[_0xbb308f(0x5a8)][_0xbb308f(0x5b0)],'source':_0x50425f,'base64Cache':_0x178f1f,'status':_0x17c816[_0xbb308f(0x273)][_0xbb308f(0x394)]}),this[_0xbb308f(0x24d)]();};});}['_getUploadFileURL'](){const _0x1bdde8=_0x3b3960;var _0x1b0a77;return(_0x1b0a77=this[_0x1bdde8(0x46c)][_0x1bdde8(0x584)](_0x471ff0))!=null?_0x1b0a77:_0x53c78f;}[_0x3b3960(0x229)](){const _0x5796b5=_0x3b3960;var _0x191f2d;return(_0x191f2d=this[_0x5796b5(0x46c)]['getConfig'](_0xe6854b))!=null?_0x191f2d:_0x5ccb89;}[_0x3b3960(0x3f8)](_0x14c238,_0x4eb377){const _0x3aae55=_0x3b3960;return _0x14c238[_0x3aae55(0x44b)](_0x3aae55(0x525),_0x4eb377);}[_0x3b3960(0x24d)](){const _0x373e33=_0x3b3960;this[_0x373e33(0x264)]-=0x1,this[_0x373e33(0x242)]['next'](this['_waitCount']);}},_0x2c3354[_0x3b3960(0x36d)]=_0x253b27([_0x2a4c33(0x0,_0x2015b3[_0x3b3960(0x547)](_0x485f8b['HTTPService'])),_0x2a4c33(0x1,_0x2015b3[_0x3b3960(0x582)]),_0x2a4c33(0x2,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x37c)]))],_0x2c3354[_0x3b3960(0x36d)]);var _0x3eb043=Object[_0x3b3960(0x57c)],_0x23e8ad=Object[_0x3b3960(0x2c2)],_0x5af5c8=(_0x222a5a,_0x23a248,_0x17f86b,_0x43aa09)=>{const _0x2fb0b6=_0x3b3960;for(var _0x34c7e4=_0x43aa09>0x1?void 0x0:_0x43aa09?_0x23e8ad(_0x23a248,_0x17f86b):_0x23a248,_0x206298=_0x222a5a[_0x2fb0b6(0x306)]-0x1,_0xaa7d9f;_0x206298>=0x0;_0x206298--)(_0xaa7d9f=_0x222a5a[_0x206298])&&(_0x34c7e4=(_0x43aa09?_0xaa7d9f(_0x23a248,_0x17f86b,_0x34c7e4):_0xaa7d9f(_0x34c7e4))||_0x34c7e4);return _0x43aa09&&_0x34c7e4&&_0x3eb043(_0x23a248,_0x17f86b,_0x34c7e4),_0x34c7e4;},_0x2122a9=(_0x3b4a11,_0x130585)=>(_0x270862,_0x35d715)=>_0x130585(_0x270862,_0x35d715,_0x3b4a11);let _0x592c62=class extends _0x2015b3[_0x3b3960(0x3c6)]{constructor(_0x575086,_0x45677b,_0x5995aa,_0xb3de95,_0x2b7796){const _0x54529f=_0x3b3960;super(),this[_0x54529f(0x3f4)]=_0x575086,this[_0x54529f(0x5b7)]=_0x45677b,this[_0x54529f(0x518)]=_0x5995aa,this[_0x54529f(0x4cf)]=_0xb3de95,this[_0x54529f(0x23b)]=_0x2b7796,this[_0x54529f(0x475)](),this[_0x54529f(0x334)]();}[_0x3b3960(0x334)](){const _0x193f9a=_0x3b3960,_0x5e7b8a=async _0x1362e8=>{const _0x55eec9=_0x41fb;(await this[_0x55eec9(0x4cf)]['requireSession'](_0x1362e8))[_0x55eec9(0x4ca)][_0x55eec9(0x2d1)](_0x2cc613[_0x55eec9(0x493)](_0x5e0c65=>_0x5e0c65[_0x55eec9(0x4aa)]===_0x106736[_0x55eec9(0x43e)][_0x55eec9(0x51f)]),_0x2cc613['takeUntil'](this['dispose$']))[_0x55eec9(0x35b)](_0x588bb9=>{const _0x56bdfd=_0x55eec9,_0x50ffda=_0x588bb9,{reason:_0x5b2344}=_0x50ffda[_0x56bdfd(0x3e0)];this[_0x56bdfd(0x3f4)][_0x56bdfd(0x3b9)](_0x44b766['IMessageService'])['show']({'type':_0x54ac63['MessageType'][_0x56bdfd(0x287)],'content':this['_localeService']['t'](_0x56bdfd(0x4cd))+'('+_0x5b2344+')'}),this[_0x56bdfd(0x518)][_0x56bdfd(0x49e)](new _0x3d1b6a['WorkbookEditablePermission'](_0x1362e8)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x1362e8);});};_0x345abe['merge'](this['_univerInstanceService'][_0x193f9a(0x388)](_0x2015b3[_0x193f9a(0x3a8)][_0x193f9a(0x321)]),this[_0x193f9a(0x5b7)][_0x193f9a(0x388)](_0x2015b3[_0x193f9a(0x3a8)][_0x193f9a(0x361)]))[_0x193f9a(0x2d1)](_0x2cc613[_0x193f9a(0x522)](_0x5f2672=>_0x5f2672['getUnitId']()),_0x2cc613[_0x193f9a(0x493)](_0x2017ea=>!_0x2015b3[_0x193f9a(0x511)](_0x2017ea)),_0x2cc613[_0x193f9a(0x244)](this[_0x193f9a(0x272)]))['subscribe'](_0x13c446=>{_0x5e7b8a(_0x13c446);});}[_0x3b3960(0x475)](){const _0x51f85d=_0x3b3960,_0x3ad3aa=async _0x5d27e1=>{const _0x80f832=_0x41fb;(await this[_0x80f832(0x4cf)][_0x80f832(0x5db)](_0x5d27e1))[_0x80f832(0x4ca)][_0x80f832(0x2d1)](_0x2cc613[_0x80f832(0x493)](_0x336cb5=>_0x336cb5[_0x80f832(0x4aa)]===_0x106736[_0x80f832(0x43e)][_0x80f832(0x1fd)]),_0x2cc613[_0x80f832(0x244)](this[_0x80f832(0x272)]))['subscribe'](_0x21f60e=>{const _0x403ce1=_0x80f832,_0x1da38d=_0x21f60e,{objectId:_0x2e6ad7}=_0x1da38d[_0x403ce1(0x3e0)],_0x185542=this['_injector'][_0x403ce1(0x3b9)](_0x467ed8[_0x403ce1(0x346)]);_0x2e6ad7===_0x5d27e1?_0x185542[_0x403ce1(0x516)](_0x5d27e1):_0x185542[_0x403ce1(0x41e)](_0x5d27e1,_0x2e6ad7);});};_0x345abe[_0x51f85d(0x4c8)](this[_0x51f85d(0x5b7)][_0x51f85d(0x388)](_0x2015b3['UniverInstanceType'][_0x51f85d(0x321)]),this[_0x51f85d(0x5b7)][_0x51f85d(0x388)](_0x2015b3['UniverInstanceType']['UNIVER_DOC']))[_0x51f85d(0x2d1)](_0x2cc613[_0x51f85d(0x522)](_0x302e99=>_0x302e99[_0x51f85d(0x304)]()),_0x2cc613[_0x51f85d(0x493)](_0x48c80f=>!_0x2015b3[_0x51f85d(0x511)](_0x48c80f)),_0x2cc613['takeUntil'](this[_0x51f85d(0x272)]))[_0x51f85d(0x35b)](_0x4ce521=>{_0x3ad3aa(_0x4ce521);});}};_0x592c62=_0x5af5c8([_0x2015b3[_0x3b3960(0x2a0)](_0x2015b3[_0x3b3960(0x5f6)]['Starting'],_0x592c62),_0x2122a9(0x0,_0x2015b3[_0x3b3960(0x547)](_0x2015b3[_0x3b3960(0x56e)])),_0x2122a9(0x1,_0x2015b3[_0x3b3960(0x37c)]),_0x2122a9(0x2,_0x2015b3[_0x3b3960(0x5d7)]),_0x2122a9(0x3,_0x2015b3[_0x3b3960(0x547)](_0x2c3354[_0x3b3960(0x4b4)])),_0x2122a9(0x4,_0x2015b3['Inject'](_0x2015b3[_0x3b3960(0x20a)]))],_0x592c62);var _0x2305c0=Object[_0x3b3960(0x57c)],_0x134975=Object[_0x3b3960(0x2c2)],_0x4958cc=(_0x443314,_0xe3f5be,_0x1bdcbc)=>_0xe3f5be in _0x443314?_0x2305c0(_0x443314,_0xe3f5be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1bdcbc}):_0x443314[_0xe3f5be]=_0x1bdcbc,_0xec63d=(_0x2e6bc1,_0x4d1167,_0xc0456d,_0x235160)=>{const _0x22b7b3=_0x3b3960;for(var _0x349a6f=_0x235160>0x1?void 0x0:_0x235160?_0x134975(_0x4d1167,_0xc0456d):_0x4d1167,_0x16562c=_0x2e6bc1[_0x22b7b3(0x306)]-0x1,_0x9572aa;_0x16562c>=0x0;_0x16562c--)(_0x9572aa=_0x2e6bc1[_0x16562c])&&(_0x349a6f=(_0x235160?_0x9572aa(_0x4d1167,_0xc0456d,_0x349a6f):_0x9572aa(_0x349a6f))||_0x349a6f);return _0x235160&&_0x349a6f&&_0x2305c0(_0x4d1167,_0xc0456d,_0x349a6f),_0x349a6f;},_0x4da9df=(_0x18cfd1,_0x570522)=>(_0x1f2207,_0x963a4a)=>_0x570522(_0x1f2207,_0x963a4a,_0x18cfd1),_0x3c3399=(_0x550116,_0x257b9a,_0x5a6b00)=>_0x4958cc(_0x550116,_0x257b9a+'',_0x5a6b00);const _0x16de06=_0x3b3960(0x360);_0x2c3354[_0x3b3960(0x2e3)]=class extends _0x2015b3[_0x3b3960(0x291)]{constructor(_0x1b4484,_0x3786a1,_0x429ae8,_0x207adb){const _0x40c0e6=_0x3b3960;super(),this['_config']=_0x1b4484,this[_0x40c0e6(0x501)]=_0x3786a1,this[_0x40c0e6(0x449)]=_0x429ae8,this[_0x40c0e6(0x3f4)]=_0x207adb;}[_0x3b3960(0x486)](){const _0x29577a=_0x3b3960;this[_0x29577a(0x2b2)]();}['onRendered'](){const _0xb6da62=_0x3b3960;this[_0xb6da62(0x2bf)]();}[_0x3b3960(0x2b2)](){const _0x227833=_0x3b3960;var _0x35970e,_0x1e28f7,_0x47eac0,_0x2b68f0;this['_injector'][_0x227833(0x337)](_0x2015b3[_0x227833(0x445)])&&this[_0x227833(0x501)]['error'](_0x227833(0x2d9),_0x227833(0x381));let _0x56c905=[[_0x2015b3[_0x227833(0x445)],{'useClass':_0x448505}],[_0x2c3354['CollaborationSessionService']],[_0x258d12],[_0x485f8b[_0x227833(0x536)]],[_0xaa3b19,{'useClass':_0x3e5f32}],[_0x25752c],[_0x2c3354[_0x227833(0x3dc)]],[_0x485f8b[_0x227833(0x4b6)]],[_0x319b0c],[_0x27cbd7],[_0x3d8f9f],[_0x474519],[_0x371f23],[_0x3f4b4d],[_0x592c62],[_0x1bd205,{'useClass':(_0x1e28f7=(_0x35970e=this[_0x227833(0x2f2)])==null?void 0x0:_0x35970e[_0x227833(0x401)])!=null?_0x1e28f7:_0x2c3354['CollaborationSocketService']}],[_0x485f8b['IHTTPImplementation'],{'useClass':_0x485f8b[_0x227833(0x2f8)]}],[_0x106736[_0x227833(0x2f3)],{'useClass':_0x2c3354[_0x227833(0x557)]}],[_0x2015b3[_0x227833(0x33d)],{'useClass':_0x2c3354['AuthzIoHttpService']}],[_0x17c816[_0x227833(0x318)],{'useClass':_0x2c3354[_0x227833(0x36d)]}],[_0x2c3354[_0x227833(0x3e2)]],[_0x2c3354[_0x227833(0x4bb)]],[_0x2c3354[_0x227833(0x217)]],[_0x25c571],[_0x2a0bf9]];(_0x47eac0=this[_0x227833(0x2f2)])!=null&&_0x47eac0['enableSingleActiveInstanceLock']&&_0x56c905[_0x227833(0x279)]([_0x55925e,{'useClass':_0x200347}]),_0x56c905=_0x2015b3['mergeOverrideWithDependencies'](_0x56c905,(_0x2b68f0=this[_0x227833(0x2f2)])==null?void 0x0:_0x2b68f0['override']),_0x56c905[_0x227833(0x4d1)](_0xeb21d7=>this[_0x227833(0x3f4)][_0x227833(0x28c)](_0xeb21d7)),this[_0x227833(0x3c9)]();}[_0x3b3960(0x2bf)](){const _0x567c43=_0x3b3960;this['disposeWithMe'](this[_0x567c43(0x449)][_0x567c43(0x5de)](_0x2015b3[_0x567c43(0x3a8)][_0x567c43(0x361)],[_0x304928])),this[_0x567c43(0x369)](this[_0x567c43(0x449)]['registerRenderModule'](_0x2015b3['UniverInstanceType'][_0x567c43(0x321)],[_0x1928ed]));}['_initModules'](){const _0x2165bc=_0x3b3960;var _0x75604e,_0x384ffd;this[_0x2165bc(0x3f4)]['get'](_0x485f8b[_0x2165bc(0x536)])[_0x2165bc(0x468)]({'priority':0x14,'interceptor':_0x485f8b[_0x2165bc(0x5f1)]({'maxParallel':0x6})}),(_0x75604e=this[_0x2165bc(0x2f2)])!=null&&_0x75604e[_0x2165bc(0x5ec)]||this[_0x2165bc(0x3f4)][_0x2165bc(0x3b9)](_0x2c3354[_0x2165bc(0x3dc)])[_0x2165bc(0x5ed)](),(_0x384ffd=this[_0x2165bc(0x2f2)])!=null&&_0x384ffd[_0x2165bc(0x4e1)]&&this[_0x2165bc(0x3f4)][_0x2165bc(0x3b9)](_0x371f23);}},_0x3c3399(_0x2c3354['UniverCollaborationClientPlugin'],_0x3b3960(0x3fe),_0x16de06),_0x2c3354[_0x3b3960(0x2e3)]=_0xec63d([_0x2015b3[_0x3b3960(0x423)](_0x106736['UniverCollaborationPlugin']),_0x4da9df(0x1,_0x2015b3['ILogService']),_0x4da9df(0x2,_0x572a63[_0x3b3960(0x5ee)]),_0x4da9df(0x3,_0x2015b3[_0x3b3960(0x547)](_0x2015b3['Injector']))],_0x2c3354[_0x3b3960(0x2e3)]),_0x2c3354[_0x3b3960(0x29d)]=_0xe6c904,_0x2c3354['COLLAB_SUBMIT_CHANGESET_URL_KEY']=_0x3c7827,_0x2c3354[_0x3b3960(0x4ab)]=_0x332c44,_0x2c3354['CollaborationStatus']=_0xe45813,_0x2c3354[_0x3b3960(0x3b6)]=_0x1c24e3,_0x2c3354[_0x3b3960(0x413)]=_0x3f4b4d,_0x2c3354[_0x3b3960(0x5a7)]=_0x879d7e,_0x2c3354[_0x3b3960(0x568)]=_0x816b9c,_0x2c3354[_0x3b3960(0x1fe)]=_0x1bd205,_0x2c3354[_0x3b3960(0x424)]=_0xaa3b19,_0x2c3354['LOCAL_CACHE_INTERVAL_KEY']=_0x3f1ca0,_0x2c3354[_0x3b3960(0x26b)]=_0x4f5e36,_0x2c3354[_0x3b3960(0x4c9)]=_0x5cb8bb,_0x2c3354[_0x3b3960(0x467)]=_0x2c5950,_0x2c3354[_0x3b3960(0x3ca)]=_0x5648aa,_0x2c3354[_0x3b3960(0x45e)]=_0x510b8a,_0x2c3354[_0x3b3960(0x508)]=_0x87739a,_0x2c3354['WebURLService']=_0x3e5f32,_0x2c3354[_0x3b3960(0x39e)]=_0x5040c3,_0x2c3354[_0x3b3960(0x574)]=_0x5a449f,Object[_0x3b3960(0x57c)](_0x2c3354,Symbol[_0x3b3960(0x512)],{'value':'Module'});}));
1
+ (function(_0x4ff49c,_0x5d9fb8){const _0x438d27=_0x4682,_0x59dd82=_0x4ff49c();while(!![]){try{const _0x5b9d26=-parseInt(_0x438d27(0x37d))/0x1+-parseInt(_0x438d27(0x274))/0x2*(-parseInt(_0x438d27(0x419))/0x3)+-parseInt(_0x438d27(0x258))/0x4+parseInt(_0x438d27(0x52a))/0x5+-parseInt(_0x438d27(0x438))/0x6+-parseInt(_0x438d27(0x22c))/0x7*(parseInt(_0x438d27(0x3ca))/0x8)+-parseInt(_0x438d27(0x361))/0x9*(-parseInt(_0x438d27(0x4f2))/0xa);if(_0x5b9d26===_0x5d9fb8)break;else _0x59dd82['push'](_0x59dd82['shift']());}catch(_0xf2cec8){_0x59dd82['push'](_0x59dd82['shift']());}}}(_0x3f5d,0xb8849),function(_0x5d8562,_0x310846){const _0x2dc644=_0x4682;typeof exports==_0x2dc644(0x279)&&typeof module<'u'?_0x310846(exports,require(_0x2dc644(0x514)),require(_0x2dc644(0x563)),require(_0x2dc644(0x38b)),require('@univerjs/design'),require(_0x2dc644(0x339)),require(_0x2dc644(0x1eb)),require('@univerjs-pro/collaboration'),require(_0x2dc644(0x42e)),require(_0x2dc644(0x4ed)),require(_0x2dc644(0x31a)),require(_0x2dc644(0x50e)),require(_0x2dc644(0x2d8)),require('@univerjs/engine-formula'),require('lodash/debounce'),require(_0x2dc644(0x298)),require(_0x2dc644(0x556)),require('clsx'),require(_0x2dc644(0x4a7))):typeof define=='function'&&define[_0x2dc644(0x3a3)]?define([_0x2dc644(0x1ee),_0x2dc644(0x514),_0x2dc644(0x563),'rxjs/operators','@univerjs/design',_0x2dc644(0x339),_0x2dc644(0x1eb),_0x2dc644(0x23f),_0x2dc644(0x42e),'@univerjs/docs',_0x2dc644(0x31a),_0x2dc644(0x50e),'@univerjs/engine-render',_0x2dc644(0x321),_0x2dc644(0x30c),_0x2dc644(0x298),_0x2dc644(0x556),_0x2dc644(0x2c9),_0x2dc644(0x4a7)],_0x310846):(_0x5d8562=typeof globalThis<'u'?globalThis:_0x5d8562||self,_0x310846(_0x5d8562[_0x2dc644(0x1a5)]={},_0x5d8562['UniverCore'],_0x5d8562[_0x2dc644(0x563)],_0x5d8562[_0x2dc644(0x563)][_0x2dc644(0x2d9)],_0x5d8562[_0x2dc644(0x19e)],_0x5d8562[_0x2dc644(0x522)],_0x5d8562[_0x2dc644(0x4b9)],_0x5d8562[_0x2dc644(0x55f)],_0x5d8562[_0x2dc644(0x272)],_0x5d8562[_0x2dc644(0x320)],_0x5d8562[_0x2dc644(0x3b7)],_0x5d8562[_0x2dc644(0x47b)],_0x5d8562['UniverEngineRender'],_0x5d8562['UniverEngineFormula'],_0x5d8562[_0x2dc644(0x231)][_0x2dc644(0x287)],_0x5d8562['UniverSheetsUi'],_0x5d8562[_0x2dc644(0x49a)],_0x5d8562[_0x2dc644(0x2c9)],_0x5d8562[_0x2dc644(0x331)]));}(this,function(_0x59ce0d,_0x36d396,_0x22cf47,_0x547088,_0x53e1d0,_0x455671,_0x3d1d50,_0x346629,_0x41d467,_0x569fac,_0xdbe912,_0x17128d,_0x54d1da,_0x933578,_0x3179a3,_0x343608,_0x28fb9c,_0x30ff44,_0x5badd8){'use strict';const _0x51d41b=_0x4682;var _0xfef6f1=Object[_0x51d41b(0x215)],_0xa44bdd=(_0x4cf0b4,_0x1c13dd,_0x28a31e)=>_0x1c13dd in _0x4cf0b4?_0xfef6f1(_0x4cf0b4,_0x1c13dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28a31e}):_0x4cf0b4[_0x1c13dd]=_0x28a31e,_0x55fd67=(_0x474007,_0x2841c1,_0xfc9f4e)=>_0xa44bdd(_0x474007,typeof _0x2841c1!=_0x51d41b(0x56b)?_0x2841c1+'':_0x2841c1,_0xfc9f4e);const _0x3ee3ce=_0x51d41b(0x4cf),_0x3fad9d=_0x51d41b(0x2f0),_0x4ad76f='SNAPSHOT_URL_KEY',_0x5d41d3=_0x51d41b(0x546),_0x53dc60='COLLAB_WEB_SOCKET_URL',_0xe402b=_0x51d41b(0x5a7),_0x14d59a=_0x51d41b(0x3d7),_0x1734e8=_0x51d41b(0x3ff),_0x2353ba=_0x51d41b(0x31d),_0xdebb3a='RETRY_CONNECTING_MAX_COUNT',_0x341945=_0x51d41b(0x518),_0x5da533='COLLAB_SUBMIT_CHANGESET_URL',_0x1f38f9=_0x51d41b(0x532),_0x4c6be5='LOGIN_URL_KEY',_0x11abd1='/universer-api/oidc/authpage';var _0x5d72a7=(_0x5cdb5f=>(_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x27d)]=0x0]=_0x51d41b(0x27d),_0x5cdb5f[_0x5cdb5f['OK']=0x1]='OK',_0x5cdb5f[_0x5cdb5f['INTERNAL_ERROR']=0x2]=_0x51d41b(0x2ce),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x562)]=0x3]=_0x51d41b(0x562),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x38f)]=0x4]=_0x51d41b(0x38f),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x3ba)]=0x5]=_0x51d41b(0x3ba),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x3bd)]=0x6]=_0x51d41b(0x3bd),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x3f6)]=0x7]='INVALID_ARGUMENT',_0x5cdb5f[_0x5cdb5f['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x193)]=0x9]='COMPLETION_FINISHED',_0x5cdb5f[_0x5cdb5f['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x51d41b(0x24d),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x466)]=0x1771]=_0x51d41b(0x466),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x22e)]=0x1772]=_0x51d41b(0x22e),_0x5cdb5f[_0x5cdb5f['APPLY_REJECT']=0x1b59]=_0x51d41b(0x232),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x3df)]=0x1b5a]=_0x51d41b(0x3df),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x423)]=0x1b5b]=_0x51d41b(0x423),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x19d)]=0x1b5c]=_0x51d41b(0x19d),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x517)]=0x1f41]=_0x51d41b(0x517),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x3d1)]=0x2329]=_0x51d41b(0x3d1),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x57b)]=0x232a]=_0x51d41b(0x57b),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x2e3)]=0x232b]=_0x51d41b(0x2e3),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x3a1)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x535)]=0x232d]=_0x51d41b(0x535),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x362)]=0x2711]=_0x51d41b(0x362),_0x5cdb5f[_0x5cdb5f['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x429)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x592)]=0x2714]=_0x51d41b(0x592),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x3a5)]=-0x1]=_0x51d41b(0x3a5),_0x5cdb5f))(_0x5d72a7||{}),_0x54451c=(_0x5b14c9=>(_0x5b14c9[_0x5b14c9[_0x51d41b(0x2fe)]=0x0]=_0x51d41b(0x2fe),_0x5b14c9[_0x5b14c9[_0x51d41b(0x43c)]=0x1]=_0x51d41b(0x43c),_0x5b14c9[_0x5b14c9[_0x51d41b(0x1d8)]=0x2]=_0x51d41b(0x1d8),_0x5b14c9[_0x5b14c9[_0x51d41b(0x1cc)]=0x3]='UNIVER_SLIDE',_0x5b14c9[_0x5b14c9[_0x51d41b(0x3dc)]=0x4]=_0x51d41b(0x3dc),_0x5b14c9[_0x5b14c9[_0x51d41b(0x3a5)]=-0x1]=_0x51d41b(0x3a5),_0x5b14c9))(_0x54451c||{}),_0x16a3a1=(_0x467abf=>(_0x467abf[_0x467abf[_0x51d41b(0x1cb)]=0x0]=_0x51d41b(0x1cb),_0x467abf[_0x467abf[_0x51d41b(0x420)]=0x1]='HELLO',_0x467abf[_0x467abf[_0x51d41b(0x4c2)]=0x2]=_0x51d41b(0x4c2),_0x467abf[_0x467abf[_0x51d41b(0x1be)]=0x3]=_0x51d41b(0x1be),_0x467abf[_0x467abf[_0x51d41b(0x37a)]=0x4]=_0x51d41b(0x37a),_0x467abf[_0x467abf[_0x51d41b(0x237)]=0x5]=_0x51d41b(0x237),_0x467abf[_0x467abf['RECV']=0x6]=_0x51d41b(0x1ae),_0x467abf[_0x467abf[_0x51d41b(0x3a5)]=-0x1]=_0x51d41b(0x3a5),_0x467abf))(_0x16a3a1||{}),_0x3368de=(_0x8ba726=>(_0x8ba726[_0x8ba726[_0x51d41b(0x2cd)]=0x0]='UNKNOWN_CODE',_0x8ba726[_0x8ba726['OK']=0x1]='OK',_0x8ba726[_0x8ba726[_0x51d41b(0x456)]=0x2]=_0x51d41b(0x456),_0x8ba726[_0x8ba726['UNRECOGNIZED']=-0x1]=_0x51d41b(0x3a5),_0x8ba726))(_0x3368de||{}),_0x66022a=(_0x36f84c=>(_0x36f84c[_0x36f84c['Undefined']=0x0]=_0x51d41b(0x2f3),_0x36f84c[_0x36f84c[_0x51d41b(0x1c4)]=0x1]=_0x51d41b(0x1c4),_0x36f84c[_0x36f84c['HttpExport']=0x2]=_0x51d41b(0x36c),_0x36f84c[_0x36f84c[_0x51d41b(0x381)]=0x3]=_0x51d41b(0x381),_0x36f84c[_0x36f84c[_0x51d41b(0x2e9)]=0x4]=_0x51d41b(0x2e9),_0x36f84c[_0x36f84c['UNRECOGNIZED']=-0x1]=_0x51d41b(0x3a5),_0x36f84c))(_0x66022a||{});function _0x251ac9(_0x4bb864){const _0x5909c7=_0x51d41b;var _0x14b19c,_0x10746a,_0x54080f,_0x2bdb17;const _0x2be20d=_0x4bb864[_0x5909c7(0x34f)],_0x4b7a2b=JSON['parse'](_0x2be20d);switch(_0x4b7a2b[_0x5909c7(0x266)]){case _0x16a3a1['HEARTBEAT']:case _0x16a3a1[_0x5909c7(0x420)]:{const _0x255e85=_0x4b7a2b['infoRsp'];return{..._0x4b7a2b,'data':_0x255e85,'cmd':_0x4b7a2b[_0x5909c7(0x266)]};}case _0x16a3a1[_0x5909c7(0x4c2)]:{const _0x90c62f=_0x4b7a2b[_0x5909c7(0x5aa)];return{..._0x4b7a2b,'data':_0x90c62f,'cmd':_0x4b7a2b[_0x5909c7(0x266)]};}case _0x16a3a1[_0x5909c7(0x1ae)]:{const _0x50bdfa=_0x4b7a2b[_0x5909c7(0x202)];switch(_0x50bdfa[_0x5909c7(0x1c6)]){case _0x346629['CollaborationEvent'][_0x5909c7(0x1ed)]:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':(_0x14b19c=_0x50bdfa[_0x5909c7(0x2c0)])==null?void 0x0:_0x14b19c['cs']},'cmd':_0x4b7a2b[_0x5909c7(0x266)]};case _0x346629['CollaborationEvent']['CHANGESET_ACK']:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':(_0x10746a=_0x50bdfa['csAckEvent'])==null?void 0x0:_0x10746a['cs']},'cmd':_0x4b7a2b[_0x5909c7(0x266)]};case _0x346629[_0x5909c7(0x2fa)]['NEW_CHANGESETS']:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':(_0x54080f=_0x50bdfa[_0x5909c7(0x3c7)])==null?void 0x0:_0x54080f['cs']},'cmd':_0x4b7a2b[_0x5909c7(0x266)]};case _0x346629[_0x5909c7(0x2fa)][_0x5909c7(0x20a)]:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':(_0x2bdb17=_0x50bdfa[_0x5909c7(0x293)])==null?void 0x0:_0x2bdb17['cs']},'cmd':_0x4b7a2b[_0x5909c7(0x266)]};case _0x346629['CollaborationEvent'][_0x5909c7(0x191)]:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':_0x50bdfa['updateCursorEvent']},'cmd':_0x4b7a2b['cmd']};case _0x346629[_0x5909c7(0x2fa)][_0x5909c7(0x252)]:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':_0x50bdfa[_0x5909c7(0x4a5)]},'cmd':_0x4b7a2b['cmd']};case _0x346629[_0x5909c7(0x2fa)][_0x5909c7(0x50b)]:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':_0x50bdfa['leaveEvent']},'cmd':_0x4b7a2b[_0x5909c7(0x266)]};case _0x346629[_0x5909c7(0x2fa)][_0x5909c7(0x47f)]:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':_0x50bdfa[_0x5909c7(0x433)]},'cmd':_0x4b7a2b['cmd']};case _0x346629[_0x5909c7(0x2fa)][_0x5909c7(0x574)]:case _0x346629[_0x5909c7(0x2fa)]['LIVESHARE_OPERATION']:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':_0x50bdfa['liveShareOperation']},'cmd':_0x4b7a2b[_0x5909c7(0x266)]};case _0x346629[_0x5909c7(0x2fa)][_0x5909c7(0x2d6)]:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':_0x50bdfa[_0x5909c7(0x433)]},'cmd':_0x4b7a2b['cmd']};case _0x346629[_0x5909c7(0x2fa)][_0x5909c7(0x255)]:return{..._0x4b7a2b,'data':_0x50bdfa,'cmd':_0x4b7a2b[_0x5909c7(0x266)]};case _0x346629[_0x5909c7(0x2fa)]['COMMENT_UPDATE']:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':_0x50bdfa[_0x5909c7(0x50f)]},'cmd':_0x4b7a2b[_0x5909c7(0x266)]};case _0x346629['CollaborationEvent'][_0x5909c7(0x425)]:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':_0x50bdfa[_0x5909c7(0x332)]},'cmd':_0x4b7a2b[_0x5909c7(0x266)]};case _0x346629[_0x5909c7(0x2fa)][_0x5909c7(0x408)]:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':_0x50bdfa[_0x5909c7(0x256)]},'cmd':_0x4b7a2b[_0x5909c7(0x266)]};default:return _0x4b7a2b;}}default:return _0x4b7a2b;}}function _0x342ade(_0x28cd68){const _0x867444=_0x51d41b;switch(_0x28cd68['cmd']){case _0x16a3a1[_0x867444(0x237)]:case _0x16a3a1['HELLO']:return JSON[_0x867444(0x54a)]({'cmd':_0x28cd68[_0x867444(0x266)],'routeKey':_0x28cd68[_0x867444(0x401)]});case _0x16a3a1['INGEST']:{let _0x19875d;switch(_0x28cd68[_0x867444(0x34f)][_0x867444(0x1c6)]){case _0x346629[_0x867444(0x2fa)][_0x867444(0x191)]:{_0x19875d={'eventID':_0x346629[_0x867444(0x2fa)][_0x867444(0x191)],'updateCursorEvent':_0x28cd68['data'][_0x867444(0x34f)]};break;}case _0x346629[_0x867444(0x2fa)][_0x867444(0x50b)]:{_0x19875d={'eventID':_0x346629['CollaborationEvent'][_0x867444(0x50b)],'leaveEvent':_0x28cd68[_0x867444(0x34f)][_0x867444(0x34f)]};break;}case _0x346629[_0x867444(0x2fa)]['USERS_ENTER']:{_0x19875d={'eventID':_0x346629['CollaborationEvent'][_0x867444(0x252)],'joinEvent':_0x28cd68[_0x867444(0x34f)][_0x867444(0x34f)]};break;}case _0x346629[_0x867444(0x2fa)][_0x867444(0x47f)]:{_0x19875d={'eventID':_0x346629[_0x867444(0x2fa)][_0x867444(0x47f)],'liveShareNewHost':_0x28cd68[_0x867444(0x34f)][_0x867444(0x34f)]};break;}case _0x346629['CollaborationEvent'][_0x867444(0x3b1)]:{_0x19875d={'eventID':_0x346629[_0x867444(0x2fa)][_0x867444(0x3b1)],'liveShareOperation':_0x28cd68[_0x867444(0x34f)][_0x867444(0x34f)]};break;}case _0x346629[_0x867444(0x2fa)][_0x867444(0x2d6)]:{_0x19875d={'eventID':_0x346629[_0x867444(0x2fa)][_0x867444(0x2d6)],'liveShareTerminate':_0x28cd68['data']['data']};break;}case _0x346629['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:{_0x19875d={'eventID':_0x346629['CollaborationEvent'][_0x867444(0x351)],'liveShareRequestHost':_0x28cd68[_0x867444(0x34f)]['data']};break;}case _0x346629[_0x867444(0x2fa)][_0x867444(0x574)]:{_0x19875d={'eventID':_0x346629['CollaborationEvent'][_0x867444(0x574)]};break;}default:_0x19875d={'eventID':_0x28cd68['data'][_0x867444(0x1c6)]};}return JSON[_0x867444(0x54a)]({'cmd':_0x28cd68['cmd'],'routeKey':_0x28cd68[_0x867444(0x401)],'collaMsg':_0x19875d});}case _0x16a3a1[_0x867444(0x4c2)]:return JSON[_0x867444(0x54a)]({'cmd':_0x28cd68[_0x867444(0x266)],'routeKey':_0x28cd68['routeKey'],'joinReq':_0x28cd68[_0x867444(0x34f)]});case _0x16a3a1[_0x867444(0x1be)]:return JSON['stringify']({'cmd':_0x28cd68[_0x867444(0x266)],'routeKey':_0x28cd68[_0x867444(0x401)],'leaveReq':_0x28cd68['data']});default:throw new Error(_0x867444(0x41f));}}var _0x4a0c11=Object[_0x51d41b(0x215)],_0x199615=Object[_0x51d41b(0x2b7)],_0x426c07=(_0x5132fa,_0x3768ac,_0x2b0921,_0x14e907)=>{for(var _0x18dce1=_0x14e907>0x1?void 0x0:_0x14e907?_0x199615(_0x3768ac,_0x2b0921):_0x3768ac,_0x1e40ce=_0x5132fa['length']-0x1,_0x2e6515;_0x1e40ce>=0x0;_0x1e40ce--)(_0x2e6515=_0x5132fa[_0x1e40ce])&&(_0x18dce1=(_0x14e907?_0x2e6515(_0x3768ac,_0x2b0921,_0x18dce1):_0x2e6515(_0x18dce1))||_0x18dce1);return _0x14e907&&_0x18dce1&&_0x4a0c11(_0x3768ac,_0x2b0921,_0x18dce1),_0x18dce1;},_0x485029=(_0x2a18f0,_0x3e2b6c)=>(_0x3c0a3f,_0x2c06cf)=>_0x3e2b6c(_0x3c0a3f,_0x2c06cf,_0x2a18f0);const _0xe35b0b=_0x36d396[_0x51d41b(0x494)](_0x51d41b(0x233));function _0x2a7dc2(_0x42fdc1,_0x27cea7,_0x51e901){const _0x20e22a=_0x51d41b;return _0x42fdc1+'/'+_0x27cea7+_0x20e22a(0x33f)+_0x51e901+_0x20e22a(0x516);}_0x59ce0d[_0x51d41b(0x551)]=class{constructor(_0x375bb3,_0x46eed2,_0x45524d,_0x3db685,_0x5230d8){const _0x3ced19=_0x51d41b;this['_http']=_0x375bb3,this['_ws']=_0x46eed2,this[_0x3ced19(0x448)]=_0x45524d,this['_logService']=_0x3db685,this[_0x3ced19(0x4af)]=_0x5230d8;}[_0x51d41b(0x1e1)](_0x2b312d){const _0x41f8a9=_0x51d41b,_0x549710=this[_0x41f8a9(0x318)][_0x41f8a9(0x1e1)](_0x2b312d);if(!_0x549710)throw new Error(_0x41f8a9(0x393));const _0x2ac53a=new _0x36d396[(_0x41f8a9(0x3bc))](),_0x2cf5a8=new _0x22cf47[(_0x41f8a9(0x3d9))]();_0x2ac53a[_0x41f8a9(0x5a2)](_0x549710[_0x41f8a9(0x292)][_0x41f8a9(0x200)](_0x506a11=>_0x2cf5a8[_0x41f8a9(0x1d6)](_0x506a11))),_0x2ac53a['add'](_0x36d396[_0x41f8a9(0x1d9)](()=>_0x2cf5a8[_0x41f8a9(0x22a)]()));const _0x8eb089=new _0x22cf47[(_0x41f8a9(0x3d9))]();_0x2ac53a[_0x41f8a9(0x5a2)](_0x549710[_0x41f8a9(0x4b6)]['subscribe'](_0x9acd18=>_0x8eb089['next'](_0x9acd18))),_0x2ac53a[_0x41f8a9(0x5a2)](_0x36d396[_0x41f8a9(0x1d9)](()=>_0x8eb089[_0x41f8a9(0x22a)]()));const _0x2b8dd8=new _0x22cf47[(_0x41f8a9(0x3d9))]();_0x2ac53a[_0x41f8a9(0x5a2)](_0x549710[_0x41f8a9(0x368)][_0x41f8a9(0x200)](_0x23e751=>{const _0x3afd96=_0x251ac9(_0x23e751);_0x2b8dd8['next'](_0x3afd96);})),_0x2ac53a[_0x41f8a9(0x5a2)](_0x36d396['toDisposable'](()=>_0x2b8dd8[_0x41f8a9(0x22a)]()));const _0x243234=()=>{const _0x1a6865=_0x41f8a9;_0x8eb089[_0x1a6865(0x1d6)](new Event(_0x1a6865(0x4e0))),_0x2cf5a8[_0x1a6865(0x1d6)](new CloseEvent(_0x1a6865(0x4e0))),_0x46141e['close']();},_0x46141e={'memberID':'','close$':_0x2cf5a8[_0x41f8a9(0x544)](),'error$':_0x8eb089['asObservable'](),'open$':_0x549710[_0x41f8a9(0x509)],'message$':_0x2b8dd8['asObservable'](),'send':_0x278f6b=>{const _0x15aacf=_0x41f8a9;if(_0x278f6b['cmd']===_0x16a3a1[_0x15aacf(0x37a)]){if(_0x278f6b[_0x15aacf(0x34f)][_0x15aacf(0x1c6)]===_0x346629['CollaborationEvent'][_0x15aacf(0x3a2)]){this[_0x15aacf(0x2fc)](_0x46141e,_0x278f6b[_0x15aacf(0x34f)])[_0x15aacf(0x276)](_0x27229d=>{const _0x423222=_0x15aacf;this['_logService'][_0x423222(0x405)](_0x27229d),_0x243234();});return;}if(_0x278f6b[_0x15aacf(0x34f)]['eventID']===_0x346629['CollaborationEvent'][_0x15aacf(0x568)]){const _0x20db8b=_0x278f6b['data'];this[_0x15aacf(0x409)](_0x20db8b)[_0x15aacf(0x59d)](_0x76c7c0=>{const _0x44856e=_0x15aacf;_0x2b8dd8['next']({'cmd':_0x16a3a1['RECV'],'code':_0x3368de['OK'],'routeKey':_0x20db8b[_0x44856e(0x34f)][_0x44856e(0x35f)],'routeType':'','data':{'eventID':_0x346629['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x76c7c0}}});})[_0x15aacf(0x276)](_0x2ba2ce=>{const _0x158e2c=_0x15aacf;this['_logService'][_0x158e2c(0x405)](_0x2ba2ce),_0x243234();});return;}}_0x549710['send'](_0x342ade(_0x278f6b));},'close':()=>{const _0x3e3bdc=_0x41f8a9;_0x549710[_0x3e3bdc(0x47c)](),_0x2ac53a['dispose']();}};return _0x46141e;}async[_0x51d41b(0x2fc)](_0x2db1f8,_0x1c5851){const _0x5b863f=_0x51d41b;var _0x10745a;const {unitType:_0x5a30af,unitID:_0x2f3450,changeset:_0x2993df}=_0x1c5851[_0x5b863f(0x34f)],_0x1b7add={'unitID':_0x2f3450,'memberID':_0x2db1f8[_0x5b863f(0x264)],'type':_0x5a30af,'changeset':_0x346629[_0x5b863f(0x1dc)](_0x2993df)},_0x561d1a=_0x2a7dc2((_0x10745a=this[_0x5b863f(0x448)]['getConfig'](_0x5da533))!=null?_0x10745a:_0x1f38f9,_0x5a30af,_0x2f3450);try{await this[_0x5b863f(0x2eb)][_0x5b863f(0x51e)](_0x561d1a,{'body':_0x1b7add});}catch(_0x1b6b4c){throw this[_0x5b863f(0x545)]['error'](_0x5b863f(0x593),_0x5b863f(0x2fb)),_0x1b6b4c;}}async[_0x51d41b(0x409)](_0x28a71f){const _0x5c7e58=_0x51d41b,{unitID:_0x542e46,from:_0x2e7d7d,to:_0x2dd03e,unitType:_0x25e765}=_0x28a71f[_0x5c7e58(0x34f)];return(await this[_0x5c7e58(0x4af)][_0x5c7e58(0x2fd)]({'metadata':void 0x0},{'unitID':_0x542e46,'type':_0x25e765,'from':_0x2e7d7d,'to':_0x2dd03e}))[_0x5c7e58(0x2bd)];}},_0x59ce0d[_0x51d41b(0x551)]=_0x426c07([_0x485029(0x0,_0x36d396[_0x51d41b(0x2ae)](_0x3d1d50['HTTPService'])),_0x485029(0x1,_0x36d396[_0x51d41b(0x2ae)](_0x3d1d50[_0x51d41b(0x4fd)])),_0x485029(0x2,_0x36d396[_0x51d41b(0x511)]),_0x485029(0x3,_0x36d396[_0x51d41b(0x495)]),_0x485029(0x4,_0x346629['ISnapshotServerService'])],_0x59ce0d[_0x51d41b(0x551)]);class _0x186531{constructor(){const _0x4c8a1f=_0x51d41b;_0x55fd67(this,_0x4c8a1f(0x26d),new _0x22cf47['Subject']()),_0x55fd67(this,_0x4c8a1f(0x2ba),this[_0x4c8a1f(0x26d)][_0x4c8a1f(0x544)]());}[_0x51d41b(0x1a8)](_0xf68a6e){const _0x5379d3=_0x51d41b;this[_0x5379d3(0x26d)]['next'](_0xf68a6e);}}var _0xffbadd=Object[_0x51d41b(0x215)],_0x1ea5f3=Object[_0x51d41b(0x2b7)],_0x14e67d=(_0xa2e19b,_0x340448,_0x59fdc4,_0x211136)=>{const _0x36cdd2=_0x51d41b;for(var _0x270e80=_0x211136>0x1?void 0x0:_0x211136?_0x1ea5f3(_0x340448,_0x59fdc4):_0x340448,_0x2cf89a=_0xa2e19b[_0x36cdd2(0x392)]-0x1,_0x3a6e1a;_0x2cf89a>=0x0;_0x2cf89a--)(_0x3a6e1a=_0xa2e19b[_0x2cf89a])&&(_0x270e80=(_0x211136?_0x3a6e1a(_0x340448,_0x59fdc4,_0x270e80):_0x3a6e1a(_0x270e80))||_0x270e80);return _0x211136&&_0x270e80&&_0xffbadd(_0x340448,_0x59fdc4,_0x270e80),_0x270e80;},_0x2127f4=(_0x2ca8bc,_0x400b8b)=>(_0x34d8cf,_0x16f4d2)=>_0x400b8b(_0x34d8cf,_0x16f4d2,_0x2ca8bc);let _0x2e1387=class extends _0x36d396[_0x51d41b(0x4f0)]{constructor(_0x374654,_0x9c5f59){const _0x3330ec=_0x51d41b;super(),_0x55fd67(this,_0x3330ec(0x338),new Map()),(this[_0x3330ec(0x273)]=_0x374654,this['_userManagerService']=_0x9c5f59,this[_0x3330ec(0x595)](_0x36d396[_0x3330ec(0x1d9)](_0x22cf47[_0x3330ec(0x4ee)](this[_0x3330ec(0x273)][_0x3330ec(0x505)](_0x36d396[_0x3330ec(0x26a)][_0x3330ec(0x1d8)])[_0x3330ec(0x257)](_0x547088[_0x3330ec(0x565)](_0x540ad6=>_0x540ad6[_0x3330ec(0x4ce)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x36d396[_0x3330ec(0x26a)][_0x3330ec(0x43c)])[_0x3330ec(0x257)](_0x547088[_0x3330ec(0x565)](_0x3ee59c=>_0x3ee59c['getUnitId']())),this[_0x3330ec(0x273)]['getTypeOfUnitDisposed$'](_0x36d396[_0x3330ec(0x26a)]['UNIVER_SLIDE'])[_0x3330ec(0x257)](_0x547088[_0x3330ec(0x565)](_0x2abef1=>_0x2abef1[_0x3330ec(0x4ce)]())))[_0x3330ec(0x200)](_0x4dcf33=>this[_0x3330ec(0x23e)](_0x4dcf33)))));}[_0x51d41b(0x3cc)](_0x4b5bd1){const _0xcca90=_0x51d41b;this['_userManagerService'][_0xcca90(0x3cc)](_0x4b5bd1);}[_0x51d41b(0x26c)](){const _0xd10d00=_0x51d41b;return this['_userManagerService'][_0xd10d00(0x26c)]();}[_0x51d41b(0x1ea)](_0x40e36e,_0x3a0ebc){const _0xcea0f1=_0x51d41b;let _0x3796f8=this[_0xcea0f1(0x338)][_0xcea0f1(0x58c)](_0x40e36e);_0x3796f8||(_0x3796f8=new _0x4d2291(),this[_0xcea0f1(0x338)][_0xcea0f1(0x27f)](_0x40e36e,_0x3796f8)),_0x3796f8[_0xcea0f1(0x1ea)](_0x3a0ebc);}['removeMember'](_0xa5c817,_0xdc3c4e){const _0x4b9e62=_0x51d41b,_0x135c8f=this[_0x4b9e62(0x338)][_0x4b9e62(0x58c)](_0xa5c817);_0x135c8f&&_0x135c8f['removeMember'](_0xdc3c4e);}['getRoom'](_0x58599f){const _0x16e95a=_0x51d41b;return this[_0x16e95a(0x338)][_0x16e95a(0x58c)](_0x58599f);}[_0x51d41b(0x359)](_0x120ede,_0x55b742){const _0x55b137=_0x51d41b,_0x35be94=this[_0x55b137(0x338)][_0x55b137(0x58c)](_0x120ede);if(_0x35be94)return _0x35be94[_0x55b137(0x359)](_0x55b742);}[_0x51d41b(0x23e)](_0x5294b8){const _0x44c695=_0x51d41b,_0x33345d=this[_0x44c695(0x338)]['get'](_0x5294b8);_0x33345d&&(_0x33345d[_0x44c695(0x3cd)](),this[_0x44c695(0x338)]['delete'](_0x5294b8));}['dispose'](){const _0x267629=_0x51d41b;this[_0x267629(0x338)][_0x267629(0x1a9)](_0xd3580f=>_0xd3580f[_0x267629(0x3cd)]()),this[_0x267629(0x338)][_0x267629(0x3a7)]();}};_0x2e1387=_0x14e67d([_0x2127f4(0x0,_0x36d396[_0x51d41b(0x2c5)]),_0x2127f4(0x1,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x1b1)]))],_0x2e1387);class _0x4d2291 extends _0x36d396['Disposable']{constructor(){super(...arguments),_0x55fd67(this,'_members',new Map());}[_0x51d41b(0x3cd)](){const _0x2ebbb5=_0x51d41b;this[_0x2ebbb5(0x2ad)]['clear']();}[_0x51d41b(0x1ea)](_0x3336c7){const _0x144b7a=_0x51d41b;this[_0x144b7a(0x2ad)][_0x144b7a(0x27f)](_0x3336c7['memberID'],_0x3336c7);}[_0x51d41b(0x29e)](_0x5c66e8){const _0x3c8c81=_0x51d41b;this['_members'][_0x3c8c81(0x560)](_0x5c66e8);}['getMember'](_0x27a838){const _0x449789=_0x51d41b;return this[_0x449789(0x2ad)][_0x449789(0x58c)](_0x27a838);}}const _0x59eaff='collaboration_new_changeset';function _0x3f365d(_0x3d6334){const _0x390b1d=_0x51d41b;return JSON[_0x390b1d(0x54a)](_0x3d6334)[_0x390b1d(0x392)];}var _0x55aa98=Object[_0x51d41b(0x215)],_0x3d6d0c=Object[_0x51d41b(0x2b7)],_0x259696=(_0x357711,_0x2f728e,_0x57866d,_0x36090d)=>{const _0x2c9bd1=_0x51d41b;for(var _0x5e6774=_0x36090d>0x1?void 0x0:_0x36090d?_0x3d6d0c(_0x2f728e,_0x57866d):_0x2f728e,_0x3df77a=_0x357711[_0x2c9bd1(0x392)]-0x1,_0xb6c718;_0x3df77a>=0x0;_0x3df77a--)(_0xb6c718=_0x357711[_0x3df77a])&&(_0x5e6774=(_0x36090d?_0xb6c718(_0x2f728e,_0x57866d,_0x5e6774):_0xb6c718(_0x5e6774))||_0x5e6774);return _0x36090d&&_0x5e6774&&_0x55aa98(_0x2f728e,_0x57866d,_0x5e6774),_0x5e6774;},_0x498f7d=(_0x127da6,_0x17715e)=>(_0x54a713,_0x506dbf)=>_0x17715e(_0x54a713,_0x506dbf,_0x127da6),_0x4c781c=(_0x517441=>(_0x517441[_0x517441['IDLE']=0x0]=_0x51d41b(0x3be),_0x517441[_0x517441[_0x51d41b(0x3e2)]=0x1]=_0x51d41b(0x3e2),_0x517441[_0x517441[_0x51d41b(0x588)]=0x2]=_0x51d41b(0x588),_0x517441[_0x517441['ONLINE']=0x3]=_0x51d41b(0x2b3),_0x517441))(_0x4c781c||{});_0x59ce0d['CollaborationSession']=class extends _0x36d396[_0x51d41b(0x480)]{constructor(_0x4d8e94,_0x5b69ef,_0x90d976,_0x2e419c,_0x360073,_0x40d7ec,_0x3d81d9,_0x44df6f,_0x1eb9ac,_0x287108){const _0x35a997=_0x51d41b;super(),_0x55fd67(this,_0x35a997(0x1f9),new _0x22cf47[(_0x35a997(0x482))](0x0)),_0x55fd67(this,'sessionStatus$',this['_sessionStatus$'][_0x35a997(0x544)]()),_0x55fd67(this,_0x35a997(0x349),new _0x22cf47['Subject']()),_0x55fd67(this,_0x35a997(0x1b6),this[_0x35a997(0x349)]['asObservable']()),_0x55fd67(this,'_socket'),_0x55fd67(this,_0x35a997(0x2c2)),_0x55fd67(this,_0x35a997(0x569)),_0x55fd67(this,'_shouldReportTelemetry',!0x1),_0x55fd67(this,'_telemetryInfo',null),(this['_unitID']=_0x4d8e94,this[_0x35a997(0x545)]=_0x90d976,this[_0x35a997(0x524)]=_0x2e419c,this[_0x35a997(0x2a7)]=_0x360073,this[_0x35a997(0x448)]=_0x40d7ec,this[_0x35a997(0x31f)]=_0x3d81d9,this[_0x35a997(0x468)]=_0x44df6f,this[_0x35a997(0x2e5)]=_0x1eb9ac,this[_0x35a997(0x2a6)]=_0x287108,this[_0x35a997(0x23b)]=!!this[_0x35a997(0x2a6)],_0x5b69ef[_0x35a997(0x257)](_0x22cf47['takeUntil'](this['dispose$']))[_0x35a997(0x200)](_0x5e83ef=>{const _0x53fa02=_0x35a997;var _0xb631b1;typeof _0x5e83ef>'u'||(this['_socket']=_0x5e83ef,_0x5e83ef?(this['_joinRoom'](_0x5e83ef),this[_0x53fa02(0x2c2)]=this['_socket'][_0x53fa02(0x368)][_0x53fa02(0x200)](_0x27d30b=>{const _0x43039b=_0x53fa02;_0x27d30b[_0x43039b(0x401)]===this[_0x43039b(0x3f2)]&&this['_onCombEvent'](_0x27d30b);})):(this[_0x53fa02(0x1ec)](),this[_0x53fa02(0x1f9)][_0x53fa02(0x1d6)](0x2),(_0xb631b1=this[_0x53fa02(0x2c2)])==null||_0xb631b1[_0x53fa02(0x1f7)](),this[_0x53fa02(0x2c2)]=null));}),this['disposeWithMe'](this['_beforeCloseService'][_0x35a997(0x265)](()=>{const _0x33fefe=_0x35a997;var _0x342749;(_0x342749=this['_socket'])==null||_0x342749['send']({'cmd':_0x16a3a1[_0x33fefe(0x1be)],'data':{'roomID':this[_0x33fefe(0x3f2)]}});})));}get[_0x51d41b(0x277)](){const _0x38f0d2=_0x51d41b;return this[_0x38f0d2(0x1f9)][_0x38f0d2(0x2b1)]();}[_0x51d41b(0x1fb)](){const _0x4d2cff=_0x51d41b;var _0x394fb2,_0x28afec;return(_0x28afec=(_0x394fb2=this[_0x4d2cff(0x590)])==null?void 0x0:_0x394fb2[_0x4d2cff(0x264)])!=null?_0x28afec:null;}[_0x51d41b(0x3cd)](){const _0x1fca52=_0x51d41b;super[_0x1fca52(0x3cd)](),this[_0x1fca52(0x1b2)][_0x1fca52(0x1d6)](),this[_0x1fca52(0x1b2)][_0x1fca52(0x22a)]();}[_0x51d41b(0x47c)](){const _0x1e24a1=_0x51d41b;var _0x37f430,_0x6e61ae;this[_0x1e24a1(0x1ec)](),(_0x37f430=this[_0x1e24a1(0x590)])==null||_0x37f430[_0x1e24a1(0x4a2)]({'cmd':_0x16a3a1[_0x1e24a1(0x1be)],'data':{'roomID':this['_unitID']}}),(_0x6e61ae=this[_0x1e24a1(0x590)])==null||_0x6e61ae[_0x1e24a1(0x47c)](),this[_0x1e24a1(0x349)][_0x1e24a1(0x22a)](),this[_0x1e24a1(0x1f9)][_0x1e24a1(0x22a)](),this['dispose']();}[_0x51d41b(0x309)](_0x1f6588){const _0x12ccc9=_0x51d41b;_0x1f6588['cmd']===_0x16a3a1['JOIN']?this[_0x12ccc9(0x4a0)](_0x1f6588):_0x1f6588['cmd']===_0x16a3a1[_0x12ccc9(0x1ae)]&&this[_0x12ccc9(0x2b5)](_0x1f6588);}['_joinRoom'](_0x2bba4e){const _0xcbd74c=_0x51d41b;this['_sessionStatus$'][_0xcbd74c(0x1d6)](0x1),_0x2bba4e['send']({'cmd':_0x16a3a1['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0xcbd74c(0x3f2)]}]}});}[_0x51d41b(0x4a0)](_0xa1dc68){const _0x4cad67=_0x51d41b;var _0x2fc564;if(_0xa1dc68[_0x4cad67(0x30d)]===_0x3368de[_0x4cad67(0x456)]){this['_messageService'][_0x4cad67(0x3c3)]({'type':_0x53e1d0[_0x4cad67(0x31b)]['Warning'],'content':this[_0x4cad67(0x31f)]['t']('session.room-full')}),this['_sessionStatus$']['next'](0x2);return;}this[_0x4cad67(0x1f9)][_0x4cad67(0x1d6)](0x3);const _0x2d0856=(_0x2fc564=_0xa1dc68[_0x4cad67(0x34f)][_0x4cad67(0x496)][this['_unitID']])==null?void 0x0:_0x2fc564[_0x4cad67(0x1d1)];_0x2d0856&&_0x2d0856['forEach'](_0x4c45ad=>this[_0x4cad67(0x468)][_0x4cad67(0x1ea)](this[_0x4cad67(0x3f2)],_0x4c45ad));}[_0x51d41b(0x2b5)](_0x203c32){const _0x2458a4=_0x51d41b;try{const _0x43629a=_0x203c32[_0x2458a4(0x34f)];switch(_0x43629a[_0x2458a4(0x1c6)]){case _0x346629['CollaborationEvent'][_0x2458a4(0x252)]:this[_0x2458a4(0x58a)](_0x43629a),this[_0x2458a4(0x349)][_0x2458a4(0x1d6)](_0x43629a);break;case _0x346629[_0x2458a4(0x2fa)][_0x2458a4(0x50b)]:this[_0x2458a4(0x52e)](_0x43629a),this[_0x2458a4(0x349)]['next'](_0x43629a);break;case _0x346629[_0x2458a4(0x2fa)][_0x2458a4(0x44c)]:this[_0x2458a4(0x3ae)](),this[_0x2458a4(0x28a)](),this['_event$']['next'](_0x43629a);break;case _0x346629['CollaborationEvent'][_0x2458a4(0x255)]:this[_0x2458a4(0x545)][_0x2458a4(0x405)](_0x2458a4(0x589)+JSON[_0x2458a4(0x54a)](_0x43629a)),this[_0x2458a4(0x349)][_0x2458a4(0x1d6)](_0x43629a);break;case _0x346629[_0x2458a4(0x2fa)][_0x2458a4(0x1ce)]:this[_0x2458a4(0x2e5)][_0x2458a4(0x1a8)](_0x43629a[_0x2458a4(0x34f)]),this[_0x2458a4(0x349)]['next'](_0x43629a);break;default:this[_0x2458a4(0x349)][_0x2458a4(0x1d6)](_0x43629a);}}catch(_0x3328af){this[_0x2458a4(0x545)]['error'](_0x3328af,_0x203c32);}}['_onUserJoin'](_0x5bb1bb){const _0x544173=_0x51d41b;this['_memberService'][_0x544173(0x1ea)](this[_0x544173(0x3f2)],_0x5bb1bb['data']);}[_0x51d41b(0x52e)](_0x10ea85){const _0x528afb=_0x51d41b;this[_0x528afb(0x468)]['removeMember'](this[_0x528afb(0x3f2)],_0x10ea85[_0x528afb(0x34f)][_0x528afb(0x264)]);}async['send'](_0x3c0ab8,_0x204a1c){const _0x2ea359=_0x51d41b;if(this[_0x2ea359(0x277)]!==0x3||!this['_socket'])throw new Error(_0x2ea359(0x316));try{_0x3c0ab8[_0x2ea359(0x1c6)]===_0x346629[_0x2ea359(0x2fa)][_0x2ea359(0x3a2)]&&(this[_0x2ea359(0x404)](),this['_startTelemetryCollaborationNewChangeset'](_0x3c0ab8)),this['_socket'][_0x2ea359(0x4a2)]({'cmd':_0x16a3a1['INGEST'],'routeKey':_0x204a1c,'routeType':'','data':_0x3c0ab8});}catch(_0x3901c6){this[_0x2ea359(0x545)][_0x2ea359(0x405)](_0x3901c6);}}[_0x51d41b(0x404)](){const _0x4a365a=_0x51d41b;var _0x6892ae;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x1ebdb4=_0x4682;this[_0x1ebdb4(0x569)]=null,this[_0x1ebdb4(0x2a7)][_0x1ebdb4(0x3c3)]({'type':_0x53e1d0[_0x1ebdb4(0x31b)][_0x1ebdb4(0x372)],'content':this[_0x1ebdb4(0x31f)]['t']('session.collaboration-timeout')});},(_0x6892ae=this[_0x4a365a(0x448)]['getConfig'](_0x1734e8))!=null?_0x6892ae:0x2710);}[_0x51d41b(0x28a)](){const _0x451ea5=_0x51d41b;this[_0x451ea5(0x569)]&&(clearTimeout(this[_0x451ea5(0x569)]),this[_0x451ea5(0x569)]=null);}[_0x51d41b(0x25b)](_0x14df7){const _0x35c1a0=_0x51d41b;if(!this['_shouldReportTelemetry'])return;const {data:_0x12efb9}=_0x14df7,{unitID:_0x16695a,changeset:_0x1a5bd1}=_0x12efb9,{mutations:_0x45f03b,type:_0x17a64e}=_0x1a5bd1;this[_0x35c1a0(0x577)]={'unitId':_0x16695a,'type':_0x17a64e,'startTime':performance[_0x35c1a0(0x2ca)](),'stopTime':0x0,'duration':0x0,'size':_0x3f365d(_0x45f03b)};}[_0x51d41b(0x3ae)](){const _0x4f8d1e=_0x51d41b;if(this['_shouldReportTelemetry']){if(!this[_0x4f8d1e(0x577)]){this[_0x4f8d1e(0x545)][_0x4f8d1e(0x405)](_0x4f8d1e(0x593),_0x4f8d1e(0x471));return;}this[_0x4f8d1e(0x577)][_0x4f8d1e(0x4cb)]=performance['now'](),this[_0x4f8d1e(0x577)][_0x4f8d1e(0x2ed)]=this[_0x4f8d1e(0x577)][_0x4f8d1e(0x4cb)]-this['_telemetryInfo']['startTime'],this[_0x4f8d1e(0x2a6)]['capture'](_0x59eaff,this[_0x4f8d1e(0x577)]),this[_0x4f8d1e(0x577)]=null;}}[_0x51d41b(0x1ec)](){this['_telemetryInfo']=null;}},_0x59ce0d[_0x51d41b(0x459)]=_0x259696([_0x498f7d(0x2,_0x36d396[_0x51d41b(0x495)]),_0x498f7d(0x3,_0x455671[_0x51d41b(0x4bd)]),_0x498f7d(0x4,_0x455671[_0x51d41b(0x1c1)]),_0x498f7d(0x5,_0x36d396[_0x51d41b(0x511)]),_0x498f7d(0x6,_0x36d396[_0x51d41b(0x2ae)](_0x36d396['LocaleService'])),_0x498f7d(0x7,_0x36d396[_0x51d41b(0x2ae)](_0x2e1387)),_0x498f7d(0x8,_0x36d396[_0x51d41b(0x2ae)](_0x186531)),_0x498f7d(0x9,_0x36d396[_0x51d41b(0x43f)](_0x41d467[_0x51d41b(0x4db)]))],_0x59ce0d[_0x51d41b(0x459)]);var _0x2672c7=Object[_0x51d41b(0x215)],_0x419071=Object['getOwnPropertyDescriptor'],_0x47a4b6=(_0x4bc559,_0x2f2504,_0x39d589,_0x333032)=>{const _0x456355=_0x51d41b;for(var _0x5684fa=_0x333032>0x1?void 0x0:_0x333032?_0x419071(_0x2f2504,_0x39d589):_0x2f2504,_0x141847=_0x4bc559[_0x456355(0x392)]-0x1,_0x7d45cd;_0x141847>=0x0;_0x141847--)(_0x7d45cd=_0x4bc559[_0x141847])&&(_0x5684fa=(_0x333032?_0x7d45cd(_0x2f2504,_0x39d589,_0x5684fa):_0x7d45cd(_0x5684fa))||_0x5684fa);return _0x333032&&_0x5684fa&&_0x2672c7(_0x2f2504,_0x39d589,_0x5684fa),_0x5684fa;},_0x45a621=(_0x58b721,_0x1c1b95)=>(_0x4091e2,_0x52e84c)=>_0x1c1b95(_0x4091e2,_0x52e84c,_0x58b721);_0x59ce0d[_0x51d41b(0x285)]=class extends _0x36d396[_0x51d41b(0x4f0)]{constructor(_0x5dc1cb,_0x5b5a0e,_0x281407,_0x167cab,_0x38c9f2,_0x28be68){const _0x53c4a2=_0x51d41b;super(),_0x55fd67(this,'_socket$',new _0x22cf47['BehaviorSubject'](void 0x0)),_0x55fd67(this,'socket$',this['_socket$']['asObservable']()),_0x55fd67(this,_0x53c4a2(0x3c2),new Map()),_0x55fd67(this,_0x53c4a2(0x378),new _0x22cf47[(_0x53c4a2(0x482))](_0x4c781c[_0x53c4a2(0x3be)])),_0x55fd67(this,'status$',this[_0x53c4a2(0x378)][_0x53c4a2(0x544)]()),_0x55fd67(this,'_socketReady',!0x1),_0x55fd67(this,_0x53c4a2(0x2ef)),_0x55fd67(this,_0x53c4a2(0x2f7),0x0),_0x55fd67(this,'_sendHeartbeatTimer'),_0x55fd67(this,'_timeoutTimer'),(this[_0x53c4a2(0x2b0)]=_0x5dc1cb,this[_0x53c4a2(0x31f)]=_0x5b5a0e,this['_messageService']=_0x281407,this[_0x53c4a2(0x545)]=_0x167cab,this['_configService']=_0x38c9f2,this[_0x53c4a2(0x312)]=_0x28be68);}get[_0x51d41b(0x590)](){const _0x132cb1=_0x51d41b;return this[_0x132cb1(0x3ab)][_0x132cb1(0x2b1)]();}[_0x51d41b(0x3cd)](){const _0x32d33b=_0x51d41b;super[_0x32d33b(0x3cd)](),this[_0x32d33b(0x3c2)][_0x32d33b(0x1a9)](_0xf9ddf2=>_0xf9ddf2[_0x32d33b(0x3cd)]()),this[_0x32d33b(0x3c2)]['clear'](),this[_0x32d33b(0x378)][_0x32d33b(0x22a)]();}async['requireSession'](_0x7f47d7){const _0x3c436b=_0x51d41b;if(this[_0x3c436b(0x3c2)]['has'](_0x7f47d7))return this[_0x3c436b(0x3c2)][_0x3c436b(0x58c)](_0x7f47d7);this[_0x3c436b(0x1bc)]();const _0x24c4af=this[_0x3c436b(0x2b0)][_0x3c436b(0x2e7)](_0x59ce0d[_0x3c436b(0x459)],_0x7f47d7,this['_socket$'][_0x3c436b(0x544)]());return this[_0x3c436b(0x3c2)]['set'](_0x7f47d7,_0x24c4af),_0x24c4af;}[_0x51d41b(0x1e8)](_0x58bf92){const _0x5d8363=_0x51d41b;var _0x35704d;const _0x350528=this[_0x5d8363(0x3c2)][_0x5d8363(0x58c)](_0x58bf92);_0x350528&&(this[_0x5d8363(0x3c2)][_0x5d8363(0x560)](_0x58bf92),_0x350528[_0x5d8363(0x47c)]()),this['_sessions'][_0x5d8363(0x32c)]||(_0x35704d=this['_socket'])==null||_0x35704d['close']();}[_0x51d41b(0x1df)](){const _0x4e22ae=_0x51d41b;this[_0x4e22ae(0x2f7)]=0x0,this[_0x4e22ae(0x2ef)]!=null&&(clearTimeout(this[_0x4e22ae(0x2ef)]),this[_0x4e22ae(0x2ef)]=null),this[_0x4e22ae(0x1ba)]();}[_0x51d41b(0x290)](){const _0x2cf996=_0x51d41b;var _0x640322;const _0x213d60=(_0x640322=this[_0x2cf996(0x448)][_0x2cf996(0x1a6)](_0x53dc60))!=null?_0x640322:_0xe402b;return this[_0x2cf996(0x312)][_0x2cf996(0x1e1)](_0x213d60);}[_0x51d41b(0x1bc)](){const _0x5f4029=_0x51d41b;try{const _0xdd4814=this[_0x5f4029(0x290)]();if(_0xdd4814){const _0x289e18=_0xdd4814['send'];_0xdd4814[_0x5f4029(0x4a2)]=_0x2f866f=>(this[_0x5f4029(0x45f)](),_0x289e18[_0x5f4029(0x476)](_0xdd4814,[_0x2f866f])),_0xdd4814[_0x5f4029(0x368)][_0x5f4029(0x200)](_0x4c592f=>this['_onMessage'](_0xdd4814,_0x4c592f)),_0xdd4814['error$'][_0x5f4029(0x257)](_0x547088[_0x5f4029(0x4fb)](0x1))[_0x5f4029(0x200)](_0x1d2651=>this[_0x5f4029(0x545)]['error'](_0x5f4029(0x526),_0x1d2651)),_0xdd4814[_0x5f4029(0x509)]['pipe'](_0x547088['take'](0x1))['subscribe'](()=>{const _0x1368e6=_0x5f4029;this[_0x1368e6(0x4a4)](_0xdd4814);}),_0xdd4814['close$']['pipe'](_0x547088[_0x5f4029(0x4fb)](0x1))[_0x5f4029(0x200)](_0x39c8b1=>{const _0x5f2f25=_0x5f4029;this[_0x5f2f25(0x545)][_0x5f2f25(0x45b)](_0x5f2f25(0x440),'socket\x20close',_0x39c8b1),this[_0x5f2f25(0x465)]();});}}catch(_0x542181){this[_0x5f4029(0x545)][_0x5f4029(0x405)](_0x542181),this[_0x5f4029(0x465)]();}}[_0x51d41b(0x4a4)](_0x2b490a){const _0x3923c3=_0x51d41b;this[_0x3923c3(0x545)][_0x3923c3(0x45b)]('[CollaborationSessionService]','socket\x20open.'),_0x2b490a['send']({'cmd':_0x16a3a1['HELLO']}),this[_0x3923c3(0x45f)](),this[_0x3923c3(0x32d)]();}['_listenToOfflineEvent'](){const _0x220145=_0x51d41b,_0x6715af=()=>{const _0x36b329=_0x4682;this[_0x36b329(0x431)](),this[_0x36b329(0x539)](),window[_0x36b329(0x19a)](_0x36b329(0x1b9),_0x6715af);};window[_0x220145(0x42f)](_0x220145(0x1b9),_0x6715af);}[_0x51d41b(0x431)](){const _0x2b4cec=_0x51d41b;this[_0x2b4cec(0x1e0)]=!0x1,this[_0x2b4cec(0x378)][_0x2b4cec(0x1d6)](_0x4c781c['OFFLINE']),this[_0x2b4cec(0x3ab)]['next'](null),this[_0x2b4cec(0x4c7)](),this[_0x2b4cec(0x3f3)]();}['_onConnectionFailed'](){const _0x517d98=_0x51d41b;var _0x32821a;this['_onOffline'](),this[_0x517d98(0x2f7)]<((_0x32821a=this['_configService'][_0x517d98(0x1a6)](_0xdebb3a))!=null?_0x32821a:0x3)?(this['_messageService'][_0x517d98(0x3c3)]({'key':_0x517d98(0x281),'type':_0x53e1d0['MessageType'][_0x517d98(0x42c)],'content':this[_0x517d98(0x31f)]['t'](_0x517d98(0x19c))}),this['_tryReconnect']()):(this[_0x517d98(0x2a7)][_0x517d98(0x3c3)]({'key':'collaboration-session-retry','type':_0x53e1d0[_0x517d98(0x31b)][_0x517d98(0x372)],'content':this[_0x517d98(0x31f)]['t'](_0x517d98(0x455))}),this['_listenToOnlineEvent']());}[_0x51d41b(0x539)](){const _0x129b7f=_0x51d41b,_0x3575a0=()=>{const _0x478806=_0x4682;this['reconnect'](),window[_0x478806(0x19a)](_0x478806(0x2b8),_0x3575a0);};window['addEventListener'](_0x129b7f(0x2b8),_0x3575a0),this[_0x129b7f(0x3ab)][_0x129b7f(0x257)](_0x547088['filter'](_0x2832a1=>!!_0x2832a1),_0x547088[_0x129b7f(0x4fb)](0x1))[_0x129b7f(0x200)](()=>{const _0x5a3808=_0x129b7f;window[_0x5a3808(0x19a)]('online',_0x3575a0);});}[_0x51d41b(0x1ba)](){const _0x3d49ba=_0x51d41b;var _0x2dd649;const _0x42290b=this[_0x3d49ba(0x2f7)],_0xfa3055=_0x42290b===0x0?0x0:((_0x2dd649=this[_0x3d49ba(0x448)][_0x3d49ba(0x1a6)](_0x2353ba))!=null?_0x2dd649:0x4e20)*0x2**_0x42290b;this[_0x3d49ba(0x2ef)]=window['setTimeout'](()=>{const _0x44a906=_0x3d49ba;clearTimeout(this[_0x44a906(0x2ef)]),this[_0x44a906(0x2ef)]=null,this[_0x44a906(0x1bc)]();},_0xfa3055),this[_0x3d49ba(0x2f7)]+=0x1;}[_0x51d41b(0x389)](_0x38b56a,_0xe3369c){const _0x120c1c=_0x51d41b,{cmd:_0x3a5cae}=_0xe3369c;_0x3a5cae===_0x16a3a1[_0x120c1c(0x420)]&&!this[_0x120c1c(0x1e0)]&&(_0x38b56a[_0x120c1c(0x264)]=_0xe3369c[_0x120c1c(0x34f)][_0x120c1c(0x264)],this[_0x120c1c(0x3ab)][_0x120c1c(0x1d6)](_0x38b56a),this['_status$']['next'](_0x4c781c[_0x120c1c(0x2b3)]),this[_0x120c1c(0x1e0)]=!0x0),_0x3a5cae===_0x16a3a1[_0x120c1c(0x237)]&&this['_clearTimeoutTimer'](),this[_0x120c1c(0x45f)]();}['_rescheduleHeartbeat'](){const _0x202748=_0x51d41b;var _0x2b91cb;this[_0x202748(0x3f3)](),this['_sendHeartbeatTimer']=window[_0x202748(0x1a2)](()=>this[_0x202748(0x227)](),(_0x2b91cb=this[_0x202748(0x448)][_0x202748(0x1a6)](_0x14d59a))!=null?_0x2b91cb:0x7530);}['_sendHeartbeat'](){const _0x1fc553=_0x51d41b;this[_0x1fc553(0x590)]['send']({'cmd':_0x16a3a1[_0x1fc553(0x237)]}),this[_0x1fc553(0x29d)]();}[_0x51d41b(0x29d)](){const _0x57f726=_0x51d41b;var _0x2c5a1a;this['_timeoutTimer']=window[_0x57f726(0x1a2)](()=>this['_onConnectionFailed'](),(_0x2c5a1a=this[_0x57f726(0x448)]['getConfig'](_0x1734e8))!=null?_0x2c5a1a:0x2710);}[_0x51d41b(0x3f3)](){const _0x1f9f5f=_0x51d41b;this[_0x1f9f5f(0x2e0)]!=null&&(clearTimeout(this[_0x1f9f5f(0x2e0)]),this['_sendHeartbeatTimer']=null);}[_0x51d41b(0x4c7)](){const _0x149c48=_0x51d41b;this[_0x149c48(0x29b)]!=null&&(clearTimeout(this[_0x149c48(0x29b)]),this['_timeoutTimer']=null);}},_0x59ce0d[_0x51d41b(0x285)]=_0x47a4b6([_0x45a621(0x0,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x45a621(0x1,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x22d)])),_0x45a621(0x2,_0x455671[_0x51d41b(0x1c1)]),_0x45a621(0x3,_0x36d396[_0x51d41b(0x495)]),_0x45a621(0x4,_0x36d396[_0x51d41b(0x511)]),_0x45a621(0x5,_0xe35b0b)],_0x59ce0d[_0x51d41b(0x285)]);var _0x3af560=Object[_0x51d41b(0x215)],_0x1b692d=Object['getOwnPropertyDescriptor'],_0x4b6519=(_0x380ccb,_0x5057ce,_0x372d7e,_0x849dc4)=>{for(var _0xa54565=_0x849dc4>0x1?void 0x0:_0x849dc4?_0x1b692d(_0x5057ce,_0x372d7e):_0x5057ce,_0x5c3e01=_0x380ccb['length']-0x1,_0xbd8d88;_0x5c3e01>=0x0;_0x5c3e01--)(_0xbd8d88=_0x380ccb[_0x5c3e01])&&(_0xa54565=(_0x849dc4?_0xbd8d88(_0x5057ce,_0x372d7e,_0xa54565):_0xbd8d88(_0xa54565))||_0xa54565);return _0x849dc4&&_0xa54565&&_0x3af560(_0x5057ce,_0x372d7e,_0xa54565),_0xa54565;},_0x2a1179=(_0x3b13b0,_0x4f8845)=>(_0x323525,_0x39f9d5)=>_0x4f8845(_0x323525,_0x39f9d5,_0x3b13b0);let _0x3106a2=class{constructor(_0x664f0d,_0x77e894){const _0xec14e2=_0x51d41b;this[_0xec14e2(0x2b0)]=_0x664f0d,this[_0xec14e2(0x376)]=_0x77e894;}[_0x51d41b(0x43e)](_0x318881){const _0x28e7f1=_0x51d41b;this[_0x28e7f1(0x340)](_0x318881),this[_0x28e7f1(0x210)](_0x318881);}['transformRemoteChangeset'](_0x51e547){const _0x58c23d=_0x51d41b,_0x5cfb72=this[_0x58c23d(0x2b0)][_0x58c23d(0x58c)](_0x569fac[_0x58c23d(0x365)]),{redoCache:_0x144b56}=_0x5cfb72['getUndoRedoMutationParamsCache']();if(_0x144b56[_0x58c23d(0x392)]===0x0)return _0x51e547;let _0x47aabb=_0x36d396[_0x58c23d(0x20e)][_0x58c23d(0x2de)](_0x51e547[_0x58c23d(0x533)][0x0]);for(let _0x4d0122=0x0;_0x4d0122<_0x144b56[_0x58c23d(0x392)];_0x4d0122++){const _0x4ab33a={'id':'doc.mutation.rich-text-editing','params':{..._0x144b56[_0x4d0122]}},_0x77f898=this[_0x58c23d(0x376)][_0x58c23d(0x3e9)](_0x47aabb,_0x4ab33a,!0x1);if(_0x346629[_0x58c23d(0x3ec)](_0x77f898))throw _0x77f898[_0x58c23d(0x405)];_0x47aabb=_0x77f898[_0x58c23d(0x503)];}return{..._0x36d396[_0x58c23d(0x20e)][_0x58c23d(0x2de)](_0x51e547),'mutations':[_0x47aabb]};}[_0x51d41b(0x340)](_0x439dd0){const _0x42edb5=_0x51d41b,_0x1a3162=this[_0x42edb5(0x2b0)][_0x42edb5(0x58c)](_0x569fac[_0x42edb5(0x365)]),{undoCache:_0x23beaa,redoCache:_0x479ab9}=_0x1a3162[_0x42edb5(0x4b3)]();if(_0x23beaa[_0x42edb5(0x392)]===0x0||_0x479ab9['length']===0x0)return;const _0x2a2d9b=[],_0x4cc4af=[];let _0x23f59a=_0x36d396['Tools'][_0x42edb5(0x2de)](_0x439dd0[_0x42edb5(0x533)][0x0]),_0x5d4f50=_0x36d396['Tools'][_0x42edb5(0x2de)](_0x439dd0[_0x42edb5(0x533)][0x0]);for(let _0x12163c=_0x23beaa['length']-0x1;_0x12163c>=0x0;_0x12163c--){const _0x54a4dc={'id':_0x42edb5(0x24e),'params':{..._0x23beaa[_0x12163c]}},_0x4a1831={'id':'doc.mutation.rich-text-editing','params':{..._0x479ab9[_0x12163c]}},_0x1b46f9=this[_0x42edb5(0x376)]['transformMutation'](_0x23f59a,_0x54a4dc,!0x1),_0x295d5a=this[_0x42edb5(0x376)][_0x42edb5(0x3e9)](_0x5d4f50,_0x4a1831,!0x1);if(_0x346629['isTransformMutationFailure'](_0x1b46f9))throw _0x1b46f9[_0x42edb5(0x405)];if(_0x346629['isTransformMutationFailure'](_0x295d5a))throw _0x295d5a[_0x42edb5(0x405)];_0x2a2d9b[_0x42edb5(0x584)](_0x1b46f9[_0x42edb5(0x4b5)][_0x42edb5(0x1c3)]),_0x4cc4af[_0x42edb5(0x584)](_0x295d5a[_0x42edb5(0x4b5)][_0x42edb5(0x1c3)]),_0x23f59a=_0x1b46f9['m1Prime'],_0x5d4f50=_0x295d5a[_0x42edb5(0x503)];}_0x1a3162['setUndoRedoMutationParamsCache']({'undoCache':_0x2a2d9b,'redoCache':_0x4cc4af});}[_0x51d41b(0x210)](_0x184e24){const _0x267976=_0x51d41b,_0x4a78c4=this[_0x267976(0x2b0)][_0x267976(0x58c)](_0x569fac['IMEInputManagerService']),_0x19e7e7=_0x4a78c4[_0x267976(0x3f0)]();if(_0x19e7e7==null)return;const _0x52a3cb=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x184e24[_0x267976(0x35f)],'actions':null,'textRanges':[_0x19e7e7]}}],_0x156415=this['_transformService'][_0x267976(0x26e)](_0x184e24,_0x52a3cb);if(!_0x346629['isTransformMutationsWithChangesetSuccess'](_0x156415))throw _0x156415[_0x267976(0x405)];const _0x383f38=_0x156415[_0x267976(0x4b5)][0x0]['params']['textRanges'];Array[_0x267976(0x223)](_0x383f38)&&_0x383f38[_0x267976(0x392)]&&_0x4a78c4['setActiveRange'](_0x383f38[0x0]);}};_0x3106a2=_0x4b6519([_0x2a1179(0x0,_0x36d396['Inject'](_0x36d396[_0x51d41b(0x268)])),_0x2a1179(0x1,_0x346629[_0x51d41b(0x213)])],_0x3106a2);var _0x1945eb=Object[_0x51d41b(0x215)],_0xa5de18=Object[_0x51d41b(0x2b7)],_0x4b8388=(_0x4fc363,_0x548409,_0x222f03,_0x3aa53c)=>{const _0x3efb18=_0x51d41b;for(var _0x29224e=_0x3aa53c>0x1?void 0x0:_0x3aa53c?_0xa5de18(_0x548409,_0x222f03):_0x548409,_0x2ec157=_0x4fc363[_0x3efb18(0x392)]-0x1,_0x292884;_0x2ec157>=0x0;_0x2ec157--)(_0x292884=_0x4fc363[_0x2ec157])&&(_0x29224e=(_0x3aa53c?_0x292884(_0x548409,_0x222f03,_0x29224e):_0x292884(_0x29224e))||_0x29224e);return _0x3aa53c&&_0x29224e&&_0x1945eb(_0x548409,_0x222f03,_0x29224e),_0x29224e;},_0x3c8259=(_0x5410f2,_0x120b86)=>(_0x24618e,_0x1f8753)=>_0x120b86(_0x24618e,_0x1f8753,_0x5410f2);_0x59ce0d[_0x51d41b(0x434)]=class extends _0x36d396[_0x51d41b(0x4f0)]{constructor(_0x110341,_0x41e893,_0x4ef6d9,_0x15a623,_0x3eaa10){const _0x42f784=_0x51d41b;super(),_0x55fd67(this,_0x42f784(0x236),new Map()),_0x55fd67(this,_0x42f784(0x1de),new Map()),_0x55fd67(this,_0x42f784(0x4f9),!0x1),(this[_0x42f784(0x448)]=_0x110341,this[_0x42f784(0x330)]=_0x41e893,this[_0x42f784(0x524)]=_0x4ef6d9,this[_0x42f784(0x31f)]=_0x15a623,this[_0x42f784(0x2c4)]=_0x3eaa10,this['_setupBeforeClosingHandler']());}[_0x51d41b(0x1a0)](){const _0x1bb67a=_0x51d41b;this[_0x1bb67a(0x4f9)]=!0x0;}[_0x51d41b(0x4a8)](){const _0x32042b=_0x51d41b;this[_0x32042b(0x4f9)]=!0x1;}[_0x51d41b(0x3cd)](){const _0x2981c0=_0x51d41b;this[_0x2981c0(0x492)]()[_0x2981c0(0x59d)](()=>super[_0x2981c0(0x3cd)]());}async['loadOfflineData'](_0x5ad95a){const _0x13ad9e=_0x51d41b;return this[_0x13ad9e(0x4f9)]?null:this[_0x13ad9e(0x330)]['getItem'](_0x5c1bdb(_0x5ad95a));}async[_0x51d41b(0x4cd)](_0x2d08a6,_0x51ab22){const _0x639ddc=_0x51d41b;return!!this['_localStorageService'][_0x639ddc(0x56c)](_0x2d08a6,_0x51ab22);}[_0x51d41b(0x34a)](_0x50d5e2,_0x18001e,_0x8e0455,_0x534dbb){const _0x4aa379=_0x51d41b,_0x2095d2=this[_0x4aa379(0x2c4)][_0x4aa379(0x59e)](_0x50d5e2);this[_0x4aa379(0x236)][_0x4aa379(0x27f)](_0x50d5e2,{'unitID':_0x50d5e2,'type':_0x18001e,'awaitingChangeset':_0x8e0455,'mutations':_0x534dbb,'rev':_0x2095d2}),this[_0x4aa379(0x1de)][_0x4aa379(0x58b)](_0x50d5e2)||this[_0x4aa379(0x4c1)](_0x50d5e2);}[_0x51d41b(0x4c1)](_0x2e4849){const _0x2d9fb6=_0x51d41b,_0xc58274=this[_0x2d9fb6(0x32f)]();_0xc58274===0x0?this[_0x2d9fb6(0x380)](_0x2e4849):this[_0x2d9fb6(0x1de)][_0x2d9fb6(0x27f)](_0x2e4849,setTimeout(()=>this[_0x2d9fb6(0x380)](_0x2e4849),_0xc58274));}[_0x51d41b(0x32f)](){const _0x276cb9=_0x51d41b;var _0x19e580;return(_0x19e580=this[_0x276cb9(0x448)][_0x276cb9(0x1a6)](_0x341945))!=null?_0x19e580:0x3e8;}[_0x51d41b(0x380)](_0x321a4c){const _0x57684f=_0x51d41b,_0x43f5fe=this['_saveTaskMap']['get'](_0x321a4c);return _0x43f5fe!==void 0x0&&window[_0x57684f(0x34c)](_0x43f5fe),this[_0x57684f(0x330)][_0x57684f(0x56c)](_0x5c1bdb(_0x321a4c),this[_0x57684f(0x236)]['get'](_0x321a4c))['then'](()=>this[_0x57684f(0x1de)]['delete'](_0x321a4c));}async[_0x51d41b(0x492)](){const _0x19fd3b=_0x51d41b,_0x1b936d=[];this[_0x19fd3b(0x1de)][_0x19fd3b(0x1a9)]((_0x48b20e,_0x2e49b5)=>{const _0x3c4e32=_0x19fd3b;window[_0x3c4e32(0x34c)](_0x48b20e),_0x1b936d[_0x3c4e32(0x3cf)](this[_0x3c4e32(0x380)](_0x2e49b5)[_0x3c4e32(0x59d)](()=>{this['_saveTaskMap']['delete'](_0x2e49b5);}));}),await Promise[_0x19fd3b(0x48f)](_0x1b936d);}['_setupBeforeClosingHandler'](){const _0x13ca86=_0x51d41b;this['disposeWithMe'](this[_0x13ca86(0x524)]['registerBeforeClose'](()=>{const _0x3a9f5a=_0x13ca86;if(this[_0x3a9f5a(0x1de)]['size'])return this[_0x3a9f5a(0x31f)]['t'](_0x3a9f5a(0x490));}));}},_0x59ce0d[_0x51d41b(0x434)]=_0x4b8388([_0x3c8259(0x0,_0x36d396[_0x51d41b(0x511)]),_0x3c8259(0x1,_0x36d396['ILocalStorageService']),_0x3c8259(0x2,_0x455671[_0x51d41b(0x4bd)]),_0x3c8259(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x36d396['LocaleService'])),_0x3c8259(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x527)]))],_0x59ce0d[_0x51d41b(0x434)]);function _0x5c1bdb(_0x234d03){return'unit-cache-'+_0x234d03;}var _0x2dd8e9=Object[_0x51d41b(0x215)],_0x2526c7=Object[_0x51d41b(0x2b7)],_0xcfd0d3=(_0xec5731,_0x1fcf22,_0x16d698,_0x2c1bc2)=>{for(var _0x969719=_0x2c1bc2>0x1?void 0x0:_0x2c1bc2?_0x2526c7(_0x1fcf22,_0x16d698):_0x1fcf22,_0x148cf9=_0xec5731['length']-0x1,_0x45e405;_0x148cf9>=0x0;_0x148cf9--)(_0x45e405=_0xec5731[_0x148cf9])&&(_0x969719=(_0x2c1bc2?_0x45e405(_0x1fcf22,_0x16d698,_0x969719):_0x45e405(_0x969719))||_0x969719);return _0x2c1bc2&&_0x969719&&_0x2dd8e9(_0x1fcf22,_0x16d698,_0x969719),_0x969719;},_0x3b269e=(_0x45b102,_0x5c9b6a)=>(_0x2bbce6,_0x489f4e)=>_0x5c9b6a(_0x2bbce6,_0x489f4e,_0x45b102);function _0x39184d(_0x2f0865){const _0x9f60df=_0x51d41b,{unitID:_0x1150b4,mutations:_0x2db6c6}=_0x2f0865;return{'unitId':_0x1150b4,'subUnitId':_0x2db6c6[0x0][_0x9f60df(0x1c3)][_0x9f60df(0x367)]};}let _0x57d656=class{constructor(_0x1958e3,_0x3a22cc,_0x413eb2){const _0x36b007=_0x51d41b;this['_injector']=_0x1958e3,this[_0x36b007(0x376)]=_0x3a22cc,this[_0x36b007(0x207)]=_0x413eb2;}['transformSelections'](_0x2d69f9){const _0xe01e2b=_0x51d41b;var _0xe4648,_0x3daea6,_0xcdc06b,_0x187095,_0x5e0317;const _0x29e00f=this[_0xe01e2b(0x2b0)][_0xe01e2b(0x58c)](_0xdbe912[_0xe01e2b(0x5ac)]),{unitId:_0x1b33b9,subUnitId:_0x25d086}=_0x39184d(_0x2d69f9),_0x3b13cf=_0x29e00f[_0xe01e2b(0x4de)](_0x1b33b9)[_0xe01e2b(0x462)](),_0x10af9f=(_0x3daea6=(_0xe4648=this[_0xe01e2b(0x207)][_0xe01e2b(0x48e)](_0x1b33b9))==null?void 0x0:_0xe4648[_0xe01e2b(0x25a)]())==null?void 0x0:_0x3daea6['getSheetId']();if(_0x3b13cf['length']===0x0||!_0x1b33b9||!_0x25d086)return;const _0x348ef7=[{'id':_0xdbe912[_0xe01e2b(0x39e)]['id'],'params':{'unitId':_0x1b33b9,'subUnitId':_0x10af9f,'selections':_0x36d396[_0xe01e2b(0x20e)][_0xe01e2b(0x2de)](_0x3b13cf)}}],_0x5ac282=this['_transformService'][_0xe01e2b(0x26e)](_0x2d69f9,_0x348ef7);if(!_0x346629[_0xe01e2b(0x33d)](_0x5ac282))throw _0x5ac282[_0xe01e2b(0x405)];const _0x19de87=(_0x5e0317=(_0x187095=(_0xcdc06b=_0x5ac282['m2Prime'][0x0])==null?void 0x0:_0xcdc06b[_0xe01e2b(0x1c3)])==null?void 0x0:_0x187095[_0xe01e2b(0x216)])!=null?_0x5e0317:_0x3b13cf;Array[_0xe01e2b(0x223)](_0x19de87)&&_0x19de87['length']&&this['_injector'][_0xe01e2b(0x58c)](_0x36d396[_0xe01e2b(0x1d5)])[_0xe01e2b(0x4d0)](_0xdbe912['SetSelectionsOperation']['id'],{'unitId':_0x1b33b9,'subUnitId':_0x25d086,'selections':_0x19de87});}};_0x57d656=_0xcfd0d3([_0x3b269e(0x0,_0x36d396[_0x51d41b(0x2ae)](_0x36d396['Injector'])),_0x3b269e(0x1,_0x346629[_0x51d41b(0x213)]),_0x3b269e(0x2,_0x36d396[_0x51d41b(0x2c5)])],_0x57d656);const _0x33f55f=_0x36d396[_0x51d41b(0x494)](_0x51d41b(0x5a3));var _0x47a42c=(_0x9b1824=>(_0x9b1824[_0x9b1824[_0x51d41b(0x4da)]=0x0]=_0x51d41b(0x4da),_0x9b1824[_0x9b1824['OTHER_CLIENTS_EDITING']=0x1]=_0x51d41b(0x3e8),_0x9b1824))(_0x47a42c||{});const _0x4db7ff=0x7530,_0x216a63=_0x51d41b(0x282);class _0x5cacbb extends _0x36d396[_0x51d41b(0x4f0)]{constructor(){const _0x3b90d7=_0x51d41b;super(),_0x55fd67(this,_0x3b90d7(0x3e1),_0x36d396[_0x3b90d7(0x20e)][_0x3b90d7(0x1e3)]()),_0x55fd67(this,_0x3b90d7(0x1fc),new Set()),_0x55fd67(this,_0x3b90d7(0x415),new Map()),_0x55fd67(this,_0x3b90d7(0x30b),null),_0x55fd67(this,'_clearOtherTimers',new Map()),_0x55fd67(this,_0x3b90d7(0x1b0),new Map()),this[_0x3b90d7(0x571)]();}[_0x51d41b(0x3cd)](){const _0x1613de=_0x51d41b;super[_0x1613de(0x3cd)](),this[_0x1613de(0x4d4)][_0x1613de(0x1a9)]((_0x3af277,_0x4d4538)=>this[_0x1613de(0x585)](_0x4d4538)),this[_0x1613de(0x30b)]&&window[_0x1613de(0x1cd)](this['_heartbeatTimer']);}[_0x51d41b(0x25c)](_0x5a4679){const _0x3151fc=_0x51d41b;return this[_0x3151fc(0x558)](_0x5a4679)[_0x3151fc(0x257)](_0x22cf47[_0x3151fc(0x388)]());}[_0x51d41b(0x416)](_0x1d2103){const _0x568fb8=_0x51d41b;this['_selfUnitIDs'][_0x568fb8(0x32c)]===0x0&&this[_0x568fb8(0x2f1)](),this[_0x568fb8(0x1fc)]['add'](_0x1d2103),this[_0x568fb8(0x44e)]({'type':0x0,'memberID':this[_0x568fb8(0x3e1)],'unitIDs':[_0x1d2103],'isForwarded':!0x1});}[_0x51d41b(0x56d)](_0x1b4dc5){const _0x2d43eb=_0x51d41b;this[_0x2d43eb(0x1fc)][_0x2d43eb(0x560)](_0x1b4dc5),this[_0x2d43eb(0x1fc)][_0x2d43eb(0x32c)]===0x0&&this['_heartbeatTimer']&&window[_0x2d43eb(0x1cd)](this[_0x2d43eb(0x30b)]);}[_0x51d41b(0x571)](){const _0x5d1676=_0x51d41b;this['disposeWithMe'](_0x36d396[_0x5d1676(0x1d9)](_0x22cf47[_0x5d1676(0x2ea)](window,'storage')['subscribe'](_0x200e4e=>{const _0x560d56=_0x5d1676;if(_0x200e4e['key']!==_0x216a63||!_0x200e4e['newValue'])return;const _0x512945=JSON[_0x560d56(0x1ff)](_0x200e4e[_0x560d56(0x2c1)]);this[_0x560d56(0x2c7)](_0x512945);}))),window['addEventListener']('unload',()=>this[_0x5d1676(0x44e)]({'type':0x1,'memberID':this[_0x5d1676(0x3e1)],'unitIDs':Array[_0x5d1676(0x58d)](this['_selfUnitIDs'])}));}[_0x51d41b(0x2c7)](_0x470756){const _0x1cd1a3=_0x51d41b;switch(_0x470756[_0x1cd1a3(0x2cb)]){case 0x0:this[_0x1cd1a3(0x2ab)](_0x470756);break;case 0x1:this['_handleLeaveEvent'](_0x470756);break;case 0x2:this[_0x1cd1a3(0x1a1)](_0x470756);break;}}['_handleJoinEvent'](_0x244bd5){const _0x44edbc=_0x51d41b,{unitIDs:_0x1245bb,memberID:_0x554d09,isForwarded:_0x3c59d7}=_0x244bd5;_0x1245bb['forEach'](_0x4c67a7=>{const _0x4d15e6=_0x4682;if(!_0x3c59d7&&this[_0x4d15e6(0x415)][_0x4d15e6(0x58b)](_0x4c67a7)&&this['_ensureSubject'](_0x4c67a7)[_0x4d15e6(0x1d6)](0x1),!this[_0x4d15e6(0x415)][_0x4d15e6(0x58b)](_0x4c67a7)||!this[_0x4d15e6(0x415)]['get'](_0x4c67a7)[_0x4d15e6(0x58b)](_0x554d09)){const _0x2a3705=this[_0x4d15e6(0x415)]['get'](_0x4c67a7)||new Set();_0x2a3705[_0x4d15e6(0x5a2)](_0x554d09),this['_unitOnClients'][_0x4d15e6(0x27f)](_0x4c67a7,_0x2a3705),this[_0x4d15e6(0x377)](_0x554d09);}}),_0x3c59d7||this[_0x44edbc(0x44e)]({'type':0x0,'memberID':this[_0x44edbc(0x3e1)],'unitIDs':[...this[_0x44edbc(0x1fc)]],'isForwarded':!0x0});}[_0x51d41b(0x377)](_0x1ca2dc){const _0x2af55e=_0x51d41b;this[_0x2af55e(0x585)](_0x1ca2dc);const _0x51b9c9=window[_0x2af55e(0x1a2)](()=>{const _0x4eab9e=_0x2af55e;this[_0x4eab9e(0x415)]['forEach'](_0x4a62e6=>{_0x4a62e6['delete'](_0x1ca2dc);});},_0x4db7ff*0x2);this[_0x2af55e(0x4d4)][_0x2af55e(0x27f)](_0x1ca2dc,_0x51b9c9);}[_0x51d41b(0x585)](_0x3631ab){const _0x4f8ea8=_0x51d41b;if(this[_0x4f8ea8(0x4d4)][_0x4f8ea8(0x58b)](_0x3631ab)){const _0x35aef0=this[_0x4f8ea8(0x4d4)][_0x4f8ea8(0x58c)](_0x3631ab);_0x35aef0&&window['clearTimeout'](_0x35aef0),this['_clearOtherTimers'][_0x4f8ea8(0x27f)](_0x3631ab,null);}}['_handleLeaveEvent'](_0x3cef80){const {memberID:_0x4c7ca6,unitIDs:_0x77aff8}=_0x3cef80;_0x77aff8['forEach'](_0x43ad13=>{const _0x30690=_0x4682;var _0x4005c1;const _0x14d5f6=this['_unitOnClients'][_0x30690(0x58c)](_0x43ad13);_0x14d5f6&&(_0x14d5f6[_0x30690(0x560)](_0x4c7ca6),(_0x4005c1=this[_0x30690(0x558)](_0x43ad13))==null||_0x4005c1[_0x30690(0x1d6)](_0x14d5f6[_0x30690(0x32c)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x4c7ca6);}[_0x51d41b(0x1a1)](_0x7e345){const _0x4a7bab=_0x51d41b;this[_0x4a7bab(0x377)](_0x7e345[_0x4a7bab(0x264)]);}[_0x51d41b(0x44e)](_0x3f0629){const _0x3cb80a=_0x51d41b;localStorage[_0x3cb80a(0x56c)](_0x216a63,JSON['stringify'](_0x3f0629));}[_0x51d41b(0x2f1)](){const _0xe1032e=_0x51d41b;this[_0xe1032e(0x30b)]=window[_0xe1032e(0x500)](()=>{const _0x41116a=_0xe1032e;this[_0x41116a(0x44e)]({'type':0x2,'memberID':this[_0x41116a(0x3e1)]});},_0x4db7ff);}[_0x51d41b(0x558)](_0x387ffa){const _0xc1485d=_0x51d41b;return this[_0xc1485d(0x1b0)][_0xc1485d(0x58b)](_0x387ffa)||this[_0xc1485d(0x1b0)]['set'](_0x387ffa,new _0x22cf47[(_0xc1485d(0x482))](0x0)),this[_0xc1485d(0x1b0)][_0xc1485d(0x58c)](_0x387ffa);}}function _0x31462b(_0x35c2df){let _0x47fcfa='';for(const _0x5d3b2d of _0x35c2df){const {startOffset:_0x10eb1e,endOffset:_0x2f8c9f,isActive:_0x1b367f}=_0x5d3b2d;_0x47fcfa['length']&&(_0x47fcfa+=','),_0x47fcfa+=_0x10eb1e+':'+_0x2f8c9f+':'+(_0x1b367f?'1':'0');}return _0x47fcfa;}function _0x302630(_0x28d564){const _0x5f1b97=_0x51d41b,_0x2515c6=_0x28d564[_0x5f1b97(0x357)](','),_0x20d60c=[];for(const _0x4a478c of _0x2515c6){const [_0x2526d0,_0x4c6a95,_0x2806a]=_0x4a478c[_0x5f1b97(0x357)](':');_0x20d60c['push']({'startOffset':Number(_0x2526d0),'endOffset':Number(_0x4c6a95),'collapsed':_0x2526d0===_0x4c6a95,'isActive':_0x2806a==='1'});}return _0x20d60c[_0x5f1b97(0x24c)](_0x2c4966=>_0x2c4966['isActive'])||(_0x20d60c[0x0][_0x5f1b97(0x467)]=!0x0),_0x20d60c;}class _0xb807fa extends _0x36d396[_0x51d41b(0x480)]{constructor(){const _0x5e91fb=_0x51d41b;super(...arguments),_0x55fd67(this,_0x5e91fb(0x1a4),new _0x22cf47[(_0x5e91fb(0x482))](null)),_0x55fd67(this,_0x5e91fb(0x40b),this[_0x5e91fb(0x1a4)]['asObservable']());}[_0x51d41b(0x2f6)](_0xa0b7ae){const _0x24184d=_0x51d41b,{unitID:_0x432b93,memberID:_0x16a7d2,textRanges:_0x242ad8}=_0xa0b7ae,_0x46b3c9=_0x31462b(_0x242ad8),_0x27c07f={'unitID':_0x432b93,'memberID':_0x16a7d2,'selection':_0x46b3c9};this[_0x24184d(0x1a4)]['next'](_0x27c07f);}}var _0x219c6e=Object[_0x51d41b(0x215)],_0xdea96e=Object[_0x51d41b(0x2b7)],_0xaca3f1=(_0x795f10,_0x51d8d0,_0x18cea2,_0x47b19e)=>{const _0x2122be=_0x51d41b;for(var _0x2a68af=_0x47b19e>0x1?void 0x0:_0x47b19e?_0xdea96e(_0x51d8d0,_0x18cea2):_0x51d8d0,_0x355f56=_0x795f10[_0x2122be(0x392)]-0x1,_0x156cc3;_0x355f56>=0x0;_0x355f56--)(_0x156cc3=_0x795f10[_0x355f56])&&(_0x2a68af=(_0x47b19e?_0x156cc3(_0x51d8d0,_0x18cea2,_0x2a68af):_0x156cc3(_0x2a68af))||_0x2a68af);return _0x47b19e&&_0x2a68af&&_0x219c6e(_0x51d8d0,_0x18cea2,_0x2a68af),_0x2a68af;},_0x31d939=(_0xc42fd4,_0x46763d)=>(_0x44f138,_0x13a106)=>_0x46763d(_0x44f138,_0x13a106,_0xc42fd4);let _0xe78d9a=class{constructor(_0xdc75f3,_0x4656d3){this['_injector']=_0xdc75f3,this['_transformService']=_0x4656d3;}[_0x51d41b(0x3dd)](_0x89c904){const _0x40d0d6=_0x51d41b;var _0x1b7d92;const _0x1be3b5=this['_injector']['get'](_0x569fac[_0x40d0d6(0x35c)]),_0x4277b9=(_0x1b7d92=_0x1be3b5[_0x40d0d6(0x4f4)]())!=null?_0x1b7d92:[],_0x225f62=_0x4277b9==null?void 0x0:_0x4277b9['map'](_0x569fac['serializeDocRange']);if(_0x225f62[_0x40d0d6(0x392)]===0x0)return;const _0x2ea31d=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x89c904[_0x40d0d6(0x35f)],'actions':null,'textRanges':_0x225f62}}],_0x3e7190=this['_transformService']['transformMutationsWithChangeset'](_0x89c904,_0x2ea31d);if(!_0x346629['isTransformMutationsWithChangesetSuccess'](_0x3e7190))throw _0x3e7190[_0x40d0d6(0x405)];const _0x22d3b3=_0x3e7190['m2Prime'][0x0][_0x40d0d6(0x1c3)][_0x40d0d6(0x559)];Array[_0x40d0d6(0x223)](_0x22d3b3)&&_0x22d3b3[_0x40d0d6(0x392)]&&_0x1be3b5[_0x40d0d6(0x4f6)](_0x22d3b3,!0x1);}};_0xe78d9a=_0xaca3f1([_0x31d939(0x0,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x31d939(0x1,_0x346629[_0x51d41b(0x213)])],_0xe78d9a);const _0x17b0f3=new Set([_0xdbe912[_0x51d41b(0x24b)]['id']]);function _0x3a6e6d(_0x2edea0,_0x52bf2a,_0x582439,_0xc2b22f,_0x3b95be){const _0x53cd15=_0x51d41b;var _0x217119,_0x49431c,_0x58ba53,_0x343466;const _0x33049e=[];for(const _0x17af11 of _0x2edea0)if(_0x17b0f3['has'](_0x17af11['id'])){if(_0x33049e[_0x53cd15(0x392)]>0x0)break;_0x33049e[_0x53cd15(0x3cf)](_0x17af11);break;}else _0x33049e[_0x53cd15(0x3cf)](_0x17af11);const _0x196164=(_0x49431c=(_0x217119=_0x3b95be['getCurrentUser']())==null?void 0x0:_0x217119['userID'])!=null?_0x49431c:_0x53cd15(0x39c),_0x53404f=(_0x343466=(_0x58ba53=_0x3b95be['getCurrentUser']())==null?void 0x0:_0x58ba53['memberID'])!=null?_0x343466:_0x53cd15(0x39c);return{'changeset':{'unitID':_0x52bf2a,'type':_0x346629['mapDocumentTypeToUniverType'](_0x582439['getUnitType'](_0x52bf2a)),'baseRev':_0xc2b22f[_0x53cd15(0x59e)](_0x52bf2a),'revision':0x0,'userID':_0x196164,'memberID':_0x53404f,'mutations':_0x33049e},'pendingMutations':_0x2edea0[_0x53cd15(0x28f)](_0x33049e['length'])};}function _0x22032f(_0x29b1be,_0x42dcf1,_0x5c1da2,_0x57c915,_0x1c22f0){const _0x11ff0f=_0x51d41b;var _0x4e31a9,_0x5e97cc,_0xe7c68c,_0x2efda5;const _0x303c4f=[_0x29b1be[_0x11ff0f(0x21b)]((_0xec94,_0x426d10)=>{const _0x3219e8=_0x11ff0f;var _0xb85027;const {id:_0x5322ed}=_0xec94,{id:_0x542495,type:_0x52d171}=_0x426d10,_0x56797a=(_0xb85027=_0xec94[_0x3219e8(0x1c3)])!=null?_0xb85027:{'actions':null},_0x22fdb6=_0x426d10['params'];if(_0x5322ed&&_0x5322ed!==_0x542495)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x5322ed+_0x3219e8(0x2ee)+_0x542495+'.');return{..._0xec94,'id':_0x542495,'type':_0x52d171,'params':{'unitId':_0x22fdb6['unitId'],'textRanges':_0x22fdb6[_0x3219e8(0x559)],'actions':_0x36d396[_0x3219e8(0x3e6)][_0x3219e8(0x36d)](_0x56797a[_0x3219e8(0x583)],_0x22fdb6['actions'])}};},{})],_0x4c9603=(_0x5e97cc=(_0x4e31a9=_0x1c22f0[_0x11ff0f(0x26c)]())==null?void 0x0:_0x4e31a9[_0x11ff0f(0x581)])!=null?_0x5e97cc:_0x11ff0f(0x39c),_0x24b17c=(_0x2efda5=(_0xe7c68c=_0x1c22f0['getCurrentUser']())==null?void 0x0:_0xe7c68c[_0x11ff0f(0x264)])!=null?_0x2efda5:'unknown';return{'changeset':{'unitID':_0x42dcf1,'type':_0x346629[_0x11ff0f(0x347)](_0x5c1da2[_0x11ff0f(0x29f)](_0x42dcf1)),'baseRev':_0x57c915['getCurrentRevForDocument'](_0x42dcf1),'revision':0x0,'userID':_0x4c9603,'memberID':_0x24b17c,'mutations':_0x303c4f},'pendingMutations':[]};}const _0x45cf0d={'id':_0xdbe912[_0x51d41b(0x2bb)]['id'],'type':_0x36d396[_0x51d41b(0x3c4)][_0x51d41b(0x1f5)],'params':{}};var _0x871db3=Object['defineProperty'],_0x402b3c=Object[_0x51d41b(0x2b7)],_0x31d3bb=(_0x4416d4,_0x5201db,_0x3c1c0a,_0x3e6334)=>{const _0x3da059=_0x51d41b;for(var _0x59d69c=_0x3e6334>0x1?void 0x0:_0x3e6334?_0x402b3c(_0x5201db,_0x3c1c0a):_0x5201db,_0x1ba539=_0x4416d4[_0x3da059(0x392)]-0x1,_0x2dba8a;_0x1ba539>=0x0;_0x1ba539--)(_0x2dba8a=_0x4416d4[_0x1ba539])&&(_0x59d69c=(_0x3e6334?_0x2dba8a(_0x5201db,_0x3c1c0a,_0x59d69c):_0x2dba8a(_0x59d69c))||_0x59d69c);return _0x3e6334&&_0x59d69c&&_0x871db3(_0x5201db,_0x3c1c0a,_0x59d69c),_0x59d69c;},_0x32bbd5=(_0x4cc384,_0xad7bea)=>(_0x4aa057,_0x1bad89)=>_0xad7bea(_0x4aa057,_0x1bad89,_0x4cc384),_0xcb53f5=(_0xaee41b=>(_0xaee41b['NOT_COLLAB']=_0x51d41b(0x439),_0xaee41b[_0x51d41b(0x36f)]='synced',_0xaee41b[_0x51d41b(0x4ef)]=_0x51d41b(0x417),_0xaee41b[_0x51d41b(0x515)]=_0x51d41b(0x3c9),_0xaee41b[_0x51d41b(0x4f1)]=_0x51d41b(0x21e),_0xaee41b[_0x51d41b(0x1f8)]=_0x51d41b(0x360),_0xaee41b['CONFLICT']=_0x51d41b(0x3a9),_0xaee41b[_0x51d41b(0x588)]=_0x51d41b(0x1b9),_0xaee41b))(_0xcb53f5||{});class _0x443389{constructor(_0xdf1d33,_0x31696c,_0x434454,_0x240d50,_0x562217,_0x3ac3f1,_0x5b0a80,_0x55d7bb,_0x18df0f){const _0x189f19=_0x51d41b;_0x55fd67(this,_0x189f19(0x47a),null),_0x55fd67(this,'_pendingMutations',[]),(this[_0x189f19(0x35f)]=_0xdf1d33,this[_0x189f19(0x2cb)]=_0x31696c,this['_handler']=_0x562217,this[_0x189f19(0x561)]=_0x3ac3f1,this[_0x189f19(0x228)]=_0x5b0a80,this[_0x189f19(0x2c4)]=_0x55d7bb,this[_0x189f19(0x552)]=_0x18df0f,this['_awaitingChangeset']=_0x434454,this['_pendingMutations']=_0x240d50);}[_0x51d41b(0x398)](_0x5a4184){const _0x2ae467=_0x51d41b,_0x3d741d=this[_0x2ae467(0x2c4)][_0x2ae467(0x59e)](this[_0x2ae467(0x35f)]);return _0x5a4184['revision']>_0x3d741d+0x1?(this['_handler']['onMissingChangesets']({'from':_0x3d741d,'to':_0x5a4184[_0x2ae467(0x384)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x4f5e9f){const _0x229b09=_0x51d41b;this['_undoRedoService']['transformUndoRedo'](this[_0x229b09(0x35f)],_0x4f5e9f);}[_0x51d41b(0x34b)](_0xb6db00){const _0x5a7aa7=_0x51d41b;var _0x2144cf,_0x4cd0b7;(_0x4cd0b7=(_0x2144cf=this[_0x5a7aa7(0x484)])[_0x5a7aa7(0x23c)])==null||_0x4cd0b7['call'](_0x2144cf,_0xb6db00);}[_0x51d41b(0x192)](_0x1750a8){const _0x543a55=_0x51d41b;var _0x1db202,_0x3c6303;return(_0x3c6303=(_0x1db202=this[_0x543a55(0x484)])[_0x543a55(0x20d)])==null?void 0x0:_0x3c6303['call'](_0x1db202,_0x1750a8);}[_0x51d41b(0x3e4)](_0x6031a6){const _0x469b4b=_0x51d41b;var _0x27b728,_0x55f9fa,_0x2150c1;return(_0x2150c1=(_0x55f9fa=(_0x27b728=this['_handler'])[_0x469b4b(0x447)])==null?void 0x0:_0x55f9fa[_0x469b4b(0x267)](_0x27b728,_0x6031a6))!=null?_0x2150c1:_0x6031a6;}[_0x51d41b(0x4f5)](_0x2bb550){const _0x5be9b7=_0x51d41b;var _0x57ccdc,_0x3af2df;if(this['type']===_0x54451c['UNIVER_DOC']){const {unitID:_0x4bf390,mutations:_0x2d6993,memberID:_0x349f38}=_0x2bb550,_0x525442=_0x2d6993[0x0][_0x5be9b7(0x1c3)][_0x5be9b7(0x559)];Array[_0x5be9b7(0x223)](_0x525442)&&_0x525442[_0x5be9b7(0x392)]>0x0&&((_0x3af2df=(_0x57ccdc=this['_handler'])[_0x5be9b7(0x41d)])==null||_0x3af2df['call'](_0x57ccdc,{'unitID':_0x4bf390,'memberID':_0x349f38,'textRanges':_0x525442}));}}[_0x51d41b(0x554)](){const _0x2c3d51=_0x51d41b;this[_0x2c3d51(0x552)][_0x2c3d51(0x34a)](this[_0x2c3d51(0x35f)],this[_0x2c3d51(0x2cb)],this['_awaitingChangeset'],this[_0x2c3d51(0x25e)]);}[_0x51d41b(0x2f9)](){const _0xe2d582=_0x51d41b;return this[_0xe2d582(0x2c4)][_0xe2d582(0x59e)](this['unitID']);}[_0x51d41b(0x46d)](){const _0x29337f=_0x51d41b;this[_0x29337f(0x2c4)][_0x29337f(0x3ad)](this[_0x29337f(0x35f)]);}[_0x51d41b(0x4c3)](_0x417358){const _0x1ba53f=_0x51d41b;var _0x34988e;const _0x2cf8d8=this[_0x1ba53f(0x3e4)](_0x417358),_0x228ebb=_0x36d396[_0x1ba53f(0x5a5)](_0x2cf8d8['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x228ebb[_0x1ba53f(0x54e)])throw _0x228ebb[_0x1ba53f(0x405)]instanceof Error?_0x228ebb[_0x1ba53f(0x405)]:new Error((_0x34988e=_0x228ebb[_0x1ba53f(0x405)])!=null?_0x34988e:_0x1ba53f(0x348));this['_transformIMECache'](_0x2cf8d8),this['_transformUndoredo'](_0x417358),this[_0x1ba53f(0x34b)](_0x2cf8d8),this[_0x1ba53f(0x4f5)](_0x2cf8d8),this[_0x1ba53f(0x46d)]();}}let _0x27c498=class extends _0x443389{constructor(_0x323f48,_0x9a4dcb,_0x4d2c91,_0x57f369,_0xee6eda,_0x46df1d,_0x47df1c,_0x319e2,_0x43db02,_0x1e04d0){const _0x32a977=_0x51d41b;super(_0x323f48,_0x9a4dcb,null,[],_0x4d2c91,_0x319e2,_0x47df1c,_0x57f369,_0xee6eda),_0x55fd67(this,_0x32a977(0x199),_0x32a977(0x4f8)),(this[_0x32a977(0x2b0)]=_0x46df1d,this[_0x32a977(0x545)]=_0x43db02,this[_0x32a977(0x376)]=_0x1e04d0);}[_0x51d41b(0x1f1)](_0x290489){const _0x42db93=_0x51d41b,_0x5ca828=this[_0x42db93(0x2b0)]['createInstance'](_0xe38ae6,this['unitID'],this[_0x42db93(0x2cb)],[_0x290489],this[_0x42db93(0x484)]);return _0x5ca828[_0x42db93(0x1e2)](),_0x5ca828[_0x42db93(0x554)](),_0x5ca828;}[_0x51d41b(0x3f8)](_0x3ac152){const _0x2b3a0b=_0x51d41b;if(this['_checkMissing'](_0x3ac152))return this[_0x2b3a0b(0x2b0)][_0x2b3a0b(0x2e7)](_0x54cd11,this['unitID'],this[_0x2b3a0b(0x2cb)],null,[],null,[_0x3ac152],this[_0x2b3a0b(0x484)]);try{const _0x7bdaf5=this[_0x2b3a0b(0x376)][_0x2b3a0b(0x26e)](_0x3ac152,[_0x45cf0d]);if(_0x346629['isTransformMutationsWithChangesetSuccess'](_0x7bdaf5)){const {c1Prime:_0x100e49}=_0x7bdaf5;return this[_0x2b3a0b(0x4c3)](_0x100e49),this;}throw _0x7bdaf5['error'];}catch(_0x4866d6){return this['_logService'][_0x2b3a0b(0x405)](_0x4866d6),this[_0x2b3a0b(0x52f)](!0x1);}}[_0x51d41b(0x52f)](_0x149ba2){const _0x2933fe=_0x51d41b;return this['_injector'][_0x2933fe(0x2e7)](_0x48e3a8,this[_0x2933fe(0x35f)],this['type'],null,[],this[_0x2933fe(0x484)],_0x149ba2);}[_0x51d41b(0x387)](){const _0xf5ea6a=_0x51d41b;throw new Error(_0xf5ea6a(0x296));}[_0x51d41b(0x1c7)](){const _0x947cba=_0x51d41b;throw new Error(_0x947cba(0x375));}[_0x51d41b(0x39f)](){const _0x5683ea=_0x51d41b;return this[_0x5683ea(0x2b0)]['createInstance'](_0xad8cf9,this['unitID'],this[_0x5683ea(0x2cb)],null,[],this[_0x5683ea(0x484)]);}[_0x51d41b(0x458)](){return this;}['resend'](){const _0x54df75=_0x51d41b;throw new Error(_0x54df75(0x37b));}['fetchMiss'](){const _0x1c343d=_0x51d41b,_0x2a1cd9=this[_0x1c343d(0x2c4)][_0x1c343d(0x59e)](this['unitID']);return this[_0x1c343d(0x484)][_0x1c343d(0x4c5)]({'from':_0x2a1cd9,'to':0x0}),this[_0x1c343d(0x2b0)][_0x1c343d(0x2e7)](_0x54cd11,this[_0x1c343d(0x35f)],this[_0x1c343d(0x2cb)],null,[],null,[],this[_0x1c343d(0x484)]);}};_0x27c498=_0x31d3bb([_0x32bbd5(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x527)])),_0x32bbd5(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x434)])),_0x32bbd5(0x5,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x32bbd5(0x6,_0x36d396[_0x51d41b(0x586)]),_0x32bbd5(0x7,_0x36d396[_0x51d41b(0x1d5)]),_0x32bbd5(0x8,_0x36d396[_0x51d41b(0x495)]),_0x32bbd5(0x9,_0x346629['ITransformService'])],_0x27c498);let _0xe38ae6=class extends _0x443389{constructor(_0x20d090,_0x521eb0,_0x2b6e70,_0x4161f7,_0xed3496,_0x255dd3,_0x18c7f3,_0x2ca2f6,_0x4edf6a,_0x5148ed,_0x528a95,_0x243e7c,_0x47faf7,_0x37978e){const _0x5e8df8=_0x51d41b;super(_0x20d090,_0x521eb0,null,_0x2b6e70,_0x4161f7,_0x5148ed,_0x37978e,_0x255dd3,_0x18c7f3),_0x55fd67(this,_0x5e8df8(0x199),'pending'),_0x55fd67(this,_0x5e8df8(0x2e1),null),_0x55fd67(this,_0x5e8df8(0x3f9),null),(this['_injector']=_0xed3496,this[_0x5e8df8(0x468)]=_0x2ca2f6,this[_0x5e8df8(0x545)]=_0x4edf6a,this[_0x5e8df8(0x448)]=_0x528a95,this[_0x5e8df8(0x376)]=_0x243e7c,this['_univerInstanceService']=_0x47faf7);}[_0x51d41b(0x1f1)](_0xdb3881){const _0x315701=_0x51d41b;return this[_0x315701(0x25e)][_0x315701(0x3cf)](_0xdb3881),this[_0x315701(0x554)](),this;}[_0x51d41b(0x3f8)](_0x4dc06d){const _0x2fa90c=_0x51d41b;if(this[_0x2fa90c(0x398)](_0x4dc06d))return this[_0x2fa90c(0x1a7)](),this[_0x2fa90c(0x2b0)][_0x2fa90c(0x2e7)](_0x54cd11,this[_0x2fa90c(0x35f)],this[_0x2fa90c(0x2cb)],null,this[_0x2fa90c(0x25e)],null,[_0x4dc06d],this[_0x2fa90c(0x484)]);try{const _0x4bf236=this['_transformService'][_0x2fa90c(0x26e)](_0x4dc06d,this[_0x2fa90c(0x25e)]);if(_0x346629[_0x2fa90c(0x33d)](_0x4bf236)){const {c1Prime:_0x3bac8f,m2Prime:_0x6bedd6}=_0x4bf236;this[_0x2fa90c(0x4c3)](_0x3bac8f);const _0xe47cd3=this[_0x2fa90c(0x2b0)][_0x2fa90c(0x2e7)](_0xe38ae6,this[_0x2fa90c(0x35f)],this[_0x2fa90c(0x2cb)],_0x6bedd6,this[_0x2fa90c(0x484)]);return this['_clearScheduledTask'](),_0xe47cd3[_0x2fa90c(0x1e2)](this[_0x2fa90c(0x2e1)]?Math[_0x2fa90c(0x36a)](0x0,new Date()[_0x2fa90c(0x412)]()-this[_0x2fa90c(0x2e1)]):this[_0x2fa90c(0x2bf)]()),_0xe47cd3;}throw _0x4bf236['error'];}catch(_0x55554b){return this[_0x2fa90c(0x545)][_0x2fa90c(0x405)](_0x55554b),this[_0x2fa90c(0x52f)](!0x1);}}[_0x51d41b(0x387)](){const _0x38272c=_0x51d41b;throw new Error(_0x38272c(0x263));}[_0x51d41b(0x1c7)](){const _0x25310e=_0x51d41b;throw new Error(_0x25310e(0x4a1));}[_0x51d41b(0x39f)](){const _0xf244af=_0x51d41b;return this[_0xf244af(0x1a7)](),this[_0xf244af(0x2b0)][_0xf244af(0x2e7)](_0xad8cf9,this[_0xf244af(0x35f)],this[_0xf244af(0x2cb)],null,this[_0xf244af(0x25e)],this[_0xf244af(0x484)]);}[_0x51d41b(0x458)](){return this;}[_0x51d41b(0x1e2)](_0x1c3748){const _0x139a0a=_0x51d41b,_0x3eb339=_0x1c3748!=null?_0x1c3748:this['_getSendChangesetTimeout']();this['_scheduleTimestamp']=new Date()[_0x139a0a(0x412)](),this[_0x139a0a(0x3f9)]=window[_0x139a0a(0x1a2)](()=>{const _0x193051=_0x139a0a;this[_0x193051(0x1a7)]();let _0x30fecf=null;switch(this[_0x193051(0x2cb)]){case _0x54451c[_0x193051(0x1d8)]:{_0x30fecf=_0x3a6e6d(this[_0x193051(0x25e)],this[_0x193051(0x35f)],this[_0x193051(0x273)],this[_0x193051(0x2c4)],this['_memberService']);break;}case _0x54451c['UNIVER_DOC']:{this['_pendingMutations'][_0x193051(0x399)](_0x3ada4e=>_0x3ada4e['id']===_0x569fac[_0x193051(0x4ec)]['id'])?_0x30fecf=_0x22032f(this['_pendingMutations'],this[_0x193051(0x35f)],this['_univerInstanceService'],this[_0x193051(0x2c4)],this[_0x193051(0x468)]):_0x30fecf=_0x3a6e6d(this[_0x193051(0x25e)],this[_0x193051(0x35f)],this[_0x193051(0x273)],this[_0x193051(0x2c4)],this[_0x193051(0x468)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x193051(0x260));}const {changeset:_0x4c52d2,pendingMutations:_0xa728d}=_0x30fecf;this[_0x193051(0x484)]['onSendChangeset'](_0x4c52d2);const _0x448471=_0xa728d['length']?this[_0x193051(0x2b0)][_0x193051(0x2e7)](_0x3d7f52,this[_0x193051(0x35f)],this[_0x193051(0x2cb)],_0x4c52d2,_0xa728d,this[_0x193051(0x484)]):this[_0x193051(0x2b0)][_0x193051(0x2e7)](_0x2fb341,this['unitID'],this['type'],_0x4c52d2,this[_0x193051(0x484)]);_0x448471[_0x193051(0x554)](),this[_0x193051(0x484)]['onStateChange'](this,_0x448471);},_0x3eb339);}[_0x51d41b(0x2bf)](){const _0x493662=_0x51d41b;var _0x20bd5a;return(_0x20bd5a=this[_0x493662(0x448)][_0x493662(0x1a6)](_0x5d41d3))!=null?_0x20bd5a:0x7d0;}[_0x51d41b(0x4bb)](){const _0x3a1e53=_0x51d41b;throw new Error(_0x3a1e53(0x469));}[_0x51d41b(0x1a7)](){const _0x4c6653=_0x51d41b;this[_0x4c6653(0x3f9)]!=null&&(clearTimeout(this[_0x4c6653(0x3f9)]),this[_0x4c6653(0x3f9)]=null);}[_0x51d41b(0x52f)](_0x505ab4){const _0x571949=_0x51d41b;return this['_clearScheduledTask'](),this[_0x571949(0x2b0)][_0x571949(0x2e7)](_0x48e3a8,this[_0x571949(0x35f)],this[_0x571949(0x2cb)],null,this[_0x571949(0x25e)],this[_0x571949(0x484)],_0x505ab4);}};_0xe38ae6=_0x31d3bb([_0x32bbd5(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x32bbd5(0x5,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x527)])),_0x32bbd5(0x6,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x434)])),_0x32bbd5(0x7,_0x36d396[_0x51d41b(0x2ae)](_0x2e1387)),_0x32bbd5(0x8,_0x36d396[_0x51d41b(0x495)]),_0x32bbd5(0x9,_0x36d396[_0x51d41b(0x1d5)]),_0x32bbd5(0xa,_0x36d396['IConfigService']),_0x32bbd5(0xb,_0x346629[_0x51d41b(0x213)]),_0x32bbd5(0xc,_0x36d396[_0x51d41b(0x2c5)]),_0x32bbd5(0xd,_0x36d396['IUndoRedoService'])],_0xe38ae6);let _0x2fb341=class extends _0x443389{constructor(_0x106b56,_0x23537a,_0x2bcd1a,_0x56acc9,_0x1830b3,_0x38f448,_0x48e759,_0x60732f,_0x25fce4,_0x8dc8b1,_0x327f3b){const _0x1f5cd6=_0x51d41b;super(_0x106b56,_0x23537a,_0x2bcd1a,[],_0x56acc9,_0x60732f,_0x327f3b,_0x38f448,_0x48e759),_0x55fd67(this,'status',_0x1f5cd6(0x3c9)),(this[_0x1f5cd6(0x2b0)]=_0x1830b3,this['_logService']=_0x25fce4,this[_0x1f5cd6(0x376)]=_0x8dc8b1);}['appendMutation'](_0x38cde6){const _0x174bc2=_0x51d41b,_0x3155de=this[_0x174bc2(0x2b0)][_0x174bc2(0x2e7)](_0x3d7f52,this['unitID'],this[_0x174bc2(0x2cb)],this['_awaitingChangeset'],[_0x38cde6],this[_0x174bc2(0x484)]);return _0x3155de[_0x174bc2(0x554)](),_0x3155de;}[_0x51d41b(0x3f8)](_0x176770){const _0x1b595f=_0x51d41b;if(this[_0x1b595f(0x398)](_0x176770))return this['_injector'][_0x1b595f(0x2e7)](_0x54cd11,this['unitID'],this[_0x1b595f(0x2cb)],this[_0x1b595f(0x47a)],[],null,[_0x176770],this[_0x1b595f(0x484)]);try{const _0x3669e0=this[_0x1b595f(0x376)][_0x1b595f(0x4a3)]([_0x176770],[this[_0x1b595f(0x47a)]],!0x1);if(_0x346629['isTransformChangesetsSuccess'](_0x3669e0)){const {c1Prime:_0x3e221a,c2Prime:_0x5b92e9}=_0x3669e0;this[_0x1b595f(0x4c3)](_0x3e221a[0x0]),_0x5b92e9[0x0][_0x1b595f(0x38d)]=this['_getCurrentRevision']();const _0x3843f1=this['_injector'][_0x1b595f(0x2e7)](_0x2fb341,this[_0x1b595f(0x35f)],this[_0x1b595f(0x2cb)],_0x5b92e9[0x0],this[_0x1b595f(0x484)]);return _0x3843f1[_0x1b595f(0x554)](),_0x3843f1;}return this[_0x1b595f(0x52f)](!0x1);}catch(_0xdce50d){return this[_0x1b595f(0x545)][_0x1b595f(0x405)](_0xdce50d),this[_0x1b595f(0x52f)](!0x1);}}[_0x51d41b(0x387)](_0x4a5cb4){const _0x391f50=_0x51d41b,_0x3645ed=this[_0x391f50(0x2c4)][_0x391f50(0x59e)](this[_0x391f50(0x35f)]);if(_0x4a5cb4['revision']<_0x3645ed-0x1)return this;if(this[_0x391f50(0x398)](_0x4a5cb4))return this[_0x391f50(0x2b0)][_0x391f50(0x2e7)](_0x54cd11,this['unitID'],this['type'],null,[],this[_0x391f50(0x47a)],[],this[_0x391f50(0x484)]);this['_incrementRevisionNumber']();const _0xa6d8db=this[_0x391f50(0x2b0)][_0x391f50(0x2e7)](_0x27c498,this[_0x391f50(0x35f)],this[_0x391f50(0x2cb)],this[_0x391f50(0x484)]);return _0xa6d8db[_0x391f50(0x554)](),_0xa6d8db;}['onRemoteRej'](_0x36073d){const _0x47ae8e=_0x51d41b;return this['_onConflict'](!!(_0x36073d!=null&&_0x36073d[_0x47ae8e(0x271)]));}['toggleOffline'](){const _0x4cff95=_0x51d41b;return this[_0x4cff95(0x2b0)][_0x4cff95(0x2e7)](_0xad8cf9,this[_0x4cff95(0x35f)],this[_0x4cff95(0x2cb)],this[_0x4cff95(0x47a)],[],this['_handler']);}[_0x51d41b(0x458)](){return this;}[_0x51d41b(0x4bb)](){const _0x28aeb0=_0x51d41b;this[_0x28aeb0(0x484)][_0x28aeb0(0x248)](this[_0x28aeb0(0x47a)]);}[_0x51d41b(0x52f)](_0x5e788d){const _0x4a6e3b=_0x51d41b;return this[_0x4a6e3b(0x2b0)][_0x4a6e3b(0x2e7)](_0x48e3a8,this['unitID'],this[_0x4a6e3b(0x2cb)],this['_awaitingChangeset'],[],this['_handler'],_0x5e788d);}};_0x2fb341=_0x31d3bb([_0x32bbd5(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x32bbd5(0x5,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x527)])),_0x32bbd5(0x6,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x434)])),_0x32bbd5(0x7,_0x36d396[_0x51d41b(0x1d5)]),_0x32bbd5(0x8,_0x36d396[_0x51d41b(0x495)]),_0x32bbd5(0x9,_0x346629['ITransformService']),_0x32bbd5(0xa,_0x36d396[_0x51d41b(0x586)])],_0x2fb341);let _0x3d7f52=class extends _0x443389{constructor(_0x223ae6,_0xa343ad,_0x341743,_0x45cbe4,_0x2cf1cb,_0x20a246,_0x5968a0,_0x419c00,_0x146948,_0x4e8d87,_0x358e33,_0x59068c){const _0xb20d7b=_0x51d41b;super(_0x223ae6,_0xa343ad,_0x341743,_0x45cbe4,_0x2cf1cb,_0x146948,_0x59068c,_0x5968a0,_0x419c00),_0x55fd67(this,_0xb20d7b(0x199),_0xb20d7b(0x21e)),(this[_0xb20d7b(0x2b0)]=_0x20a246,this[_0xb20d7b(0x545)]=_0x4e8d87,this[_0xb20d7b(0x376)]=_0x358e33);}[_0x51d41b(0x1f1)](_0x57bb52){const _0x2a3cc1=_0x51d41b;return this[_0x2a3cc1(0x25e)][_0x2a3cc1(0x3cf)](_0x57bb52),this;}[_0x51d41b(0x3f8)](_0x3c3f7d){const _0xff74c=_0x51d41b;if(this[_0xff74c(0x398)](_0x3c3f7d))return this[_0xff74c(0x2b0)][_0xff74c(0x2e7)](_0x54cd11,this[_0xff74c(0x35f)],this[_0xff74c(0x2cb)],this[_0xff74c(0x47a)],this[_0xff74c(0x25e)],null,[_0x3c3f7d],this[_0xff74c(0x484)]);try{const _0x304bc7=this[_0xff74c(0x376)][_0xff74c(0x4a3)]([_0x3c3f7d],[this['_awaitingChangeset']],!0x1);if(_0x346629['isTransformChangesetsSuccess'](_0x304bc7)){const {c1Prime:_0x401c42,c2Prime:_0x1f842d}=_0x304bc7,_0x2daa78=this[_0xff74c(0x376)]['transformMutationsWithChangeset'](_0x401c42[0x0],this[_0xff74c(0x25e)]);if(_0x346629[_0xff74c(0x33d)](_0x2daa78)){const {c1Prime:_0x4c04e1,m2Prime:_0x340039}=_0x2daa78;return this[_0xff74c(0x4c3)](_0x4c04e1),_0x1f842d[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0xff74c(0x2b0)]['createInstance'](_0x3d7f52,this['unitID'],this[_0xff74c(0x2cb)],_0x1f842d[0x0],_0x340039,this[_0xff74c(0x484)]);}throw _0x2daa78['error'];}throw _0x304bc7[_0xff74c(0x405)];}catch(_0x27e24e){return this[_0xff74c(0x545)]['error'](_0x27e24e),this['_onConflict'](!0x1);}}[_0x51d41b(0x387)](_0x289757){const _0x38ba5f=_0x51d41b;if(this[_0x38ba5f(0x398)](_0x289757))return this[_0x38ba5f(0x2b0)][_0x38ba5f(0x2e7)](_0x54cd11,this['unitID'],this['type'],null,this[_0x38ba5f(0x25e)],this[_0x38ba5f(0x47a)],[],this[_0x38ba5f(0x484)]);this[_0x38ba5f(0x46d)]();const _0x12f135=this[_0x38ba5f(0x2b0)][_0x38ba5f(0x2e7)](_0xe38ae6,this[_0x38ba5f(0x35f)],this[_0x38ba5f(0x2cb)],this[_0x38ba5f(0x25e)],this[_0x38ba5f(0x484)]);return _0x12f135[_0x38ba5f(0x1e2)](),_0x12f135[_0x38ba5f(0x554)](),_0x12f135;}[_0x51d41b(0x1c7)](_0x46db32){const _0x4f6c24=_0x51d41b;return this['_onConflict'](!!(_0x46db32!=null&&_0x46db32[_0x4f6c24(0x271)]));}[_0x51d41b(0x39f)](){const _0x2af397=_0x51d41b;return this[_0x2af397(0x2b0)][_0x2af397(0x2e7)](_0xad8cf9,this['unitID'],this[_0x2af397(0x2cb)],this[_0x2af397(0x47a)],this[_0x2af397(0x25e)],this['_handler']);}[_0x51d41b(0x458)](){return this;}[_0x51d41b(0x4bb)](){const _0x367b19=_0x51d41b;this[_0x367b19(0x484)][_0x367b19(0x248)](this[_0x367b19(0x47a)]);}[_0x51d41b(0x52f)](_0x4e6981){const _0x17e41a=_0x51d41b;return this[_0x17e41a(0x2b0)][_0x17e41a(0x2e7)](_0x48e3a8,this[_0x17e41a(0x35f)],this['type'],null,this[_0x17e41a(0x25e)],this[_0x17e41a(0x484)],_0x4e6981);}};_0x3d7f52=_0x31d3bb([_0x32bbd5(0x5,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x32bbd5(0x6,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x527)])),_0x32bbd5(0x7,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x434)])),_0x32bbd5(0x8,_0x36d396['ICommandService']),_0x32bbd5(0x9,_0x36d396[_0x51d41b(0x495)]),_0x32bbd5(0xa,_0x346629[_0x51d41b(0x213)]),_0x32bbd5(0xb,_0x36d396[_0x51d41b(0x586)])],_0x3d7f52);let _0x48e3a8=class extends _0x443389{constructor(_0x37e269,_0x2f3371,_0xb46adf,_0x3c4826,_0x309735,_0x7dffc4=!0x1,_0x24e48e,_0x5775d6,_0x46769c,_0x46fb95,_0x53e892,_0x4227ff,_0x4ec5ac){const _0x1eeaae=_0x51d41b;super(_0x37e269,_0x2f3371,_0xb46adf,_0x3c4826,_0x309735,_0x5775d6,_0x46769c,_0x53e892,_0x46fb95),_0x55fd67(this,_0x1eeaae(0x199),_0x1eeaae(0x3a9)),(this[_0x1eeaae(0x390)]=_0x7dffc4,this['_permissionService']=_0x24e48e,this[_0x1eeaae(0x31f)]=_0x4227ff,this[_0x1eeaae(0x49f)]=_0x4ec5ac,this[_0x1eeaae(0x426)](),this['_clearLocalCache'](),this['_disableEditing']());}[_0x51d41b(0x1f1)](){return this;}[_0x51d41b(0x3f8)](){return this;}[_0x51d41b(0x387)](){return this;}['onRemoteRej'](){return this;}[_0x51d41b(0x39f)](){return this;}[_0x51d41b(0x458)](){return this;}[_0x51d41b(0x4bb)](){const _0x17c98d=_0x51d41b;throw new Error(_0x17c98d(0x52c));}[_0x51d41b(0x58e)](){const _0x2b344e=_0x51d41b;this[_0x2b344e(0x552)][_0x2b344e(0x34a)](this[_0x2b344e(0x35f)],this[_0x2b344e(0x2cb)],null,[]);}[_0x51d41b(0x426)](){const _0x1045f4=_0x51d41b;this[_0x1045f4(0x390)]?this['_notificationService'][_0x1045f4(0x3c3)]({'title':this[_0x1045f4(0x31f)]['t'](_0x1045f4(0x54b)),'content':this[_0x1045f4(0x31f)]['t'](_0x1045f4(0x481)),'type':_0x1045f4(0x405),'duration':0x0}):this[_0x1045f4(0x49f)][_0x1045f4(0x3c3)]({'title':this['_localeService']['t'](_0x1045f4(0x1e5)),'content':this[_0x1045f4(0x31f)]['t']('conflict.content'),'type':'error','duration':0x0});}['_disableEditing'](){const _0x456706=_0x51d41b;this[_0x456706(0x350)]['updatePermissionPoint'](new _0xdbe912['WorkbookEditablePermission'](this[_0x456706(0x35f)])['id'],!0x1);}};_0x48e3a8=_0x31d3bb([_0x32bbd5(0x6,_0x36d396[_0x51d41b(0x2ae)](_0x36d396['IPermissionService'])),_0x32bbd5(0x7,_0x36d396[_0x51d41b(0x1d5)]),_0x32bbd5(0x8,_0x36d396[_0x51d41b(0x586)]),_0x32bbd5(0x9,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x434)])),_0x32bbd5(0xa,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x527)])),_0x32bbd5(0xb,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x22d)])),_0x32bbd5(0xc,_0x455671[_0x51d41b(0x391)])],_0x48e3a8);let _0xad8cf9=class extends _0x443389{constructor(_0x21427b,_0x9f90c0,_0x497f97,_0x3650dc,_0x37e6d5,_0x3cf90b,_0x46571a,_0x101beb,_0x405521,_0x577c1e){const _0x152502=_0x51d41b;super(_0x21427b,_0x9f90c0,_0x497f97,_0x3650dc,_0x37e6d5,_0x405521,_0x577c1e,_0x46571a,_0x101beb),_0x55fd67(this,_0x152502(0x199),_0x152502(0x1b9)),this[_0x152502(0x2b0)]=_0x3cf90b;}[_0x51d41b(0x1f1)](_0x6ca420){const _0x85e10d=_0x51d41b;return this[_0x85e10d(0x25e)][_0x85e10d(0x3cf)](_0x6ca420),this[_0x85e10d(0x554)](),this;}[_0x51d41b(0x3f8)](_0xb7346e){const _0x3aeff6=_0x51d41b;throw new Error(_0x3aeff6(0x35b));}[_0x51d41b(0x387)](){const _0x1f8053=_0x51d41b;throw new Error(_0x1f8053(0x2c6));}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x51d41b(0x39f)](){return this;}[_0x51d41b(0x458)](){const _0x3d4070=_0x51d41b,{_injector:_0x10e058,_pendingMutations:_0x136f91,_awaitingChangeset:_0x372545,unitID:_0x35a279,_handler:_0x56b34a,type:_0x4288a6}=this,_0x2eb799=_0x14c4f8(_0x10e058,_0x35a279,_0x4288a6,_0x372545,_0x136f91,_0x56b34a);return _0x2eb799 instanceof _0xe38ae6?_0x2eb799[_0x3d4070(0x1e2)]():(_0x2eb799 instanceof _0x3d7f52||_0x2eb799 instanceof _0x2fb341)&&_0x2eb799[_0x3d4070(0x4bb)](),_0x2eb799;}[_0x51d41b(0x4bb)](){const _0x5ee058=_0x51d41b;throw new Error(_0x5ee058(0x1cf));}};_0xad8cf9=_0x31d3bb([_0x32bbd5(0x5,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x32bbd5(0x6,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x527)])),_0x32bbd5(0x7,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x434)])),_0x32bbd5(0x8,_0x36d396[_0x51d41b(0x1d5)]),_0x32bbd5(0x9,_0x36d396['IUndoRedoService'])],_0xad8cf9);let _0x54cd11=class extends _0x443389{constructor(_0x53ccde,_0x5ebcd4,_0x46043b,_0x10f5a8,_0x4942ff,_0x53ffdf,_0x3b8ddf,_0x395a2e,_0x186040,_0x317d88,_0x3bc073,_0x55bfc9,_0x161e97,_0x40c62b){const _0x3f98a0=_0x51d41b;super(_0x53ccde,_0x5ebcd4,_0x46043b,_0x10f5a8,_0x3b8ddf,_0x55bfc9,_0x161e97,_0x186040,_0x317d88),_0x55fd67(this,_0x3f98a0(0x199),'fetch_missing'),(this[_0x3f98a0(0x4ea)]=_0x4942ff,this[_0x3f98a0(0x501)]=_0x53ffdf,this[_0x3f98a0(0x2b0)]=_0x395a2e,this[_0x3f98a0(0x545)]=_0x3bc073,this[_0x3f98a0(0x376)]=_0x40c62b);}[_0x51d41b(0x382)](_0x1e5a0d){const _0x3083d9=_0x51d41b;try{const _0x2e6919=[..._0x1e5a0d,...this['_queuedRemoteChangesets']],_0x32a643=[this[_0x3083d9(0x47a)]||this[_0x3083d9(0x4ea)]][_0x3083d9(0x280)](_0x89ce3d=>!!_0x89ce3d);let _0x239842,_0x55a5ea;if(_0x32a643[_0x3083d9(0x392)]){const _0x519c4c=this[_0x3083d9(0x376)][_0x3083d9(0x4a3)](_0x2e6919,_0x32a643,!0x1);if(!_0x346629[_0x3083d9(0x40f)](_0x519c4c))throw _0x519c4c[_0x3083d9(0x405)];_0x239842=_0x519c4c[_0x3083d9(0x37c)],_0x55a5ea=_0x519c4c[_0x3083d9(0x528)];}else _0x239842=_0x2e6919,_0x55a5ea=[];let _0x4961de=this['_pendingMutations'];_0x239842[_0x3083d9(0x1a9)](_0x40eeba=>{const _0x20b4cf=_0x3083d9;let _0x402bcf;if(_0x4961de[_0x20b4cf(0x392)]){const _0x44f931=this[_0x20b4cf(0x376)][_0x20b4cf(0x26e)](_0x40eeba,_0x4961de);if(!_0x346629[_0x20b4cf(0x33d)](_0x44f931))throw _0x44f931[_0x20b4cf(0x405)];_0x402bcf=_0x44f931[_0x20b4cf(0x37c)],_0x4961de=_0x44f931[_0x20b4cf(0x4b5)];}else _0x402bcf=_0x40eeba;this[_0x20b4cf(0x4c3)](_0x402bcf);}),this[_0x3083d9(0x4ea)]&&this[_0x3083d9(0x46d)](),this['_awaitingChangeset']&&_0x55a5ea[_0x3083d9(0x392)]&&(_0x55a5ea[0x0][_0x3083d9(0x38d)]=this[_0x3083d9(0x2f9)]());let _0x5932b5;if(this[_0x3083d9(0x47a)]&&_0x4961de[_0x3083d9(0x392)]!==0x0)_0x5932b5=this[_0x3083d9(0x2b0)]['createInstance'](_0x3d7f52,this['unitID'],this[_0x3083d9(0x2cb)],_0x55a5ea[0x0],_0x4961de,this[_0x3083d9(0x484)]);else{if(this[_0x3083d9(0x47a)]&&_0x4961de['length']===0x0)_0x55a5ea[0x0][_0x3083d9(0x38d)]=this[_0x3083d9(0x2f9)](),_0x5932b5=this[_0x3083d9(0x2b0)][_0x3083d9(0x2e7)](_0x2fb341,this[_0x3083d9(0x35f)],this[_0x3083d9(0x2cb)],_0x55a5ea[0x0],this['_handler']);else{if(_0x4961de['length']!==0x0){const _0x55ec2e=this[_0x3083d9(0x2b0)][_0x3083d9(0x2e7)](_0xe38ae6,this[_0x3083d9(0x35f)],this[_0x3083d9(0x2cb)],_0x4961de,this[_0x3083d9(0x484)]);_0x55ec2e[_0x3083d9(0x1e2)](),_0x5932b5=_0x55ec2e;}else _0x5932b5=this[_0x3083d9(0x2b0)][_0x3083d9(0x2e7)](_0x27c498,this[_0x3083d9(0x35f)],this['type'],this[_0x3083d9(0x484)]);}}return _0x5932b5[_0x3083d9(0x554)](),_0x5932b5;}catch(_0x11a29b){return this[_0x3083d9(0x545)][_0x3083d9(0x405)](_0x3083d9(0x46e),_0x3083d9(0x573),_0x11a29b),this[_0x3083d9(0x2b0)][_0x3083d9(0x2e7)](_0x48e3a8,this[_0x3083d9(0x35f)],this[_0x3083d9(0x2cb)],this[_0x3083d9(0x47a)],this[_0x3083d9(0x25e)],this['_handler'],!0x1);}}['resend'](){const _0x49bd1c=_0x51d41b;throw new Error(_0x49bd1c(0x519));}[_0x51d41b(0x1f1)](_0x2410bc){const _0x198005=_0x51d41b;return this[_0x198005(0x25e)][_0x198005(0x3cf)](_0x2410bc),this;}[_0x51d41b(0x3f8)](_0x5f509f){const _0x25fb51=_0x51d41b;return this[_0x25fb51(0x501)][_0x25fb51(0x3cf)](_0x5f509f),this;}[_0x51d41b(0x387)](_0x552f29){const _0x5285ef=_0x51d41b;if(this[_0x5285ef(0x47a)])return this[_0x5285ef(0x4ea)]=this['_awaitingChangeset'],this[_0x5285ef(0x47a)]=null,this;throw new Error(_0x5285ef(0x315));}[_0x51d41b(0x1c7)](_0x3e1baf){const _0x3e3595=_0x51d41b;return this[_0x3e3595(0x52f)](!!(_0x3e1baf!=null&&_0x3e1baf[_0x3e3595(0x271)]));}['toggleOffline'](){const _0x1f93f0=_0x51d41b;return this[_0x1f93f0(0x2b0)][_0x1f93f0(0x2e7)](_0xad8cf9,this[_0x1f93f0(0x35f)],this[_0x1f93f0(0x2cb)],this[_0x1f93f0(0x47a)],this[_0x1f93f0(0x25e)],this['_handler']);}[_0x51d41b(0x458)](){return this;}[_0x51d41b(0x52f)](_0x227b3e){const _0x449057=_0x51d41b;return this['_injector'][_0x449057(0x2e7)](_0x48e3a8,this[_0x449057(0x35f)],this[_0x449057(0x2cb)],this['_awaitingChangeset'],this[_0x449057(0x25e)],this[_0x449057(0x484)],_0x227b3e);}};_0x54cd11=_0x31d3bb([_0x32bbd5(0x7,_0x36d396[_0x51d41b(0x2ae)](_0x36d396['Injector'])),_0x32bbd5(0x8,_0x36d396[_0x51d41b(0x2ae)](_0x346629['RevisionService'])),_0x32bbd5(0x9,_0x36d396['Inject'](_0x59ce0d['LocalCacheService'])),_0x32bbd5(0xa,_0x36d396['ILogService']),_0x32bbd5(0xb,_0x36d396[_0x51d41b(0x1d5)]),_0x32bbd5(0xc,_0x36d396['IUndoRedoService']),_0x32bbd5(0xd,_0x346629[_0x51d41b(0x213)])],_0x54cd11);function _0x14c4f8(_0x21df02,_0x5b29a4,_0x323f1e,_0x2f7365,_0x47c05d,_0x145fa0){const _0x256ef1=_0x51d41b;return _0x2f7365&&_0x47c05d[_0x256ef1(0x392)]?_0x21df02['createInstance'](_0x3d7f52,_0x5b29a4,_0x323f1e,_0x2f7365,_0x47c05d,_0x145fa0):_0x2f7365?_0x21df02[_0x256ef1(0x2e7)](_0x2fb341,_0x5b29a4,_0x323f1e,_0x2f7365,_0x145fa0):_0x47c05d[_0x256ef1(0x392)]?_0x21df02[_0x256ef1(0x2e7)](_0xe38ae6,_0x5b29a4,_0x323f1e,_0x47c05d,_0x145fa0):_0x21df02['createInstance'](_0x27c498,_0x5b29a4,_0x323f1e,_0x145fa0);}var _0x4d4e9e=Object['defineProperty'],_0x597287=Object[_0x51d41b(0x2b7)],_0x16cee8=(_0x5234d1,_0x441f42,_0x17a6f5,_0x1aae89)=>{const _0x507ac2=_0x51d41b;for(var _0x4d98b9=_0x1aae89>0x1?void 0x0:_0x1aae89?_0x597287(_0x441f42,_0x17a6f5):_0x441f42,_0x54a3e6=_0x5234d1[_0x507ac2(0x392)]-0x1,_0x957ca5;_0x54a3e6>=0x0;_0x54a3e6--)(_0x957ca5=_0x5234d1[_0x54a3e6])&&(_0x4d98b9=(_0x1aae89?_0x957ca5(_0x441f42,_0x17a6f5,_0x4d98b9):_0x957ca5(_0x4d98b9))||_0x4d98b9);return _0x1aae89&&_0x4d98b9&&_0x4d4e9e(_0x441f42,_0x17a6f5,_0x4d98b9),_0x4d98b9;},_0x26a766=(_0x1f5b25,_0x3560e7)=>(_0x2d3055,_0x15f109)=>_0x3560e7(_0x2d3055,_0x15f109,_0x1f5b25);_0x59ce0d[_0x51d41b(0x44d)]=class extends _0x36d396[_0x51d41b(0x480)]{constructor(_0x4915a1,_0x165b83,_0x216bde,_0x30b6a0,_0x130904,_0x215239,_0x613c1e,_0x5b9ce4,_0x5aead1,_0x3d3d04,_0xdf34e3,_0x208a21,_0xc07643){const _0x194532=_0x51d41b;super(),_0x55fd67(this,_0x194532(0x1fa),new _0x22cf47[(_0x194532(0x482))](null)),_0x55fd67(this,_0x194532(0x3de),this[_0x194532(0x1fa)][_0x194532(0x544)]()),_0x55fd67(this,_0x194532(0x53b)),_0x55fd67(this,_0x194532(0x2b4),!0x1),_0x55fd67(this,_0x194532(0x2a3),this[_0x194532(0x3de)]['pipe'](_0x22cf47['map'](_0x5ab83a=>_0x5ab83a?_0x5ab83a['status']:_0xcb53f5[_0x194532(0x588)]),_0x22cf47[_0x194532(0x566)](0x1))),_0x55fd67(this,_0x194532(0x443),!0x1),_0x55fd67(this,'_remoteChangesetQueue',[]),(this[_0x194532(0x35f)]=_0x4915a1,this[_0x194532(0x57a)]=_0x165b83,this[_0x194532(0x369)]=_0x216bde,this[_0x194532(0x2b0)]=_0x30b6a0,this[_0x194532(0x552)]=_0x130904,this['_compressMutationService']=_0x215239,this[_0x194532(0x31f)]=_0x613c1e,this[_0x194532(0x2c4)]=_0x5b9ce4,this[_0x194532(0x545)]=_0x5aead1,this[_0x194532(0x561)]=_0x3d3d04,this[_0x194532(0x2a7)]=_0xdf34e3,this[_0x194532(0x350)]=_0x208a21,this[_0x194532(0x342)]=_0xc07643);}get[_0x51d41b(0x2a4)](){return this['_state'];}async['init'](){const _0x13be4f=_0x51d41b;if(this[_0x13be4f(0x2a4)])throw new Error(_0x13be4f(0x38a));await this[_0x13be4f(0x571)]();}[_0x51d41b(0x5a8)](){const _0x41a2eb=_0x51d41b;return this[_0x41a2eb(0x2b4)]=!0x0,_0x36d396[_0x41a2eb(0x1d9)](()=>{const _0x5892cc=_0x41a2eb;this[_0x5892cc(0x2b4)]=!0x1,this[_0x5892cc(0x42b)]();});}['_updateState'](_0x222d5a){const _0x1a7622=_0x51d41b;this[_0x1a7622(0x53b)]=_0x222d5a,this[_0x1a7622(0x1fa)][_0x1a7622(0x1d6)](_0x222d5a);}async[_0x51d41b(0x571)](){const _0x28f597=_0x51d41b;var _0x3961e2;this[_0x28f597(0x3d3)](await this[_0x28f597(0x5ab)]()),this[_0x28f597(0x342)]&&((_0x3961e2=this[_0x28f597(0x342)])==null||_0x3961e2[_0x28f597(0x416)](this['unitID']),this[_0x28f597(0x595)](this[_0x28f597(0x342)][_0x28f597(0x25c)](this[_0x28f597(0x35f)])[_0x28f597(0x200)](_0x3e37e6=>{const _0x53b561=_0x28f597;this[_0x53b561(0x545)][_0x53b561(0x45b)](_0x53b561(0x39d),_0x53b561(0x487),_0x3e37e6),_0x3e37e6===_0x47a42c[_0x53b561(0x3e8)]?(this[_0x53b561(0x2a7)][_0x53b561(0x3c3)]({'content':this[_0x53b561(0x31f)]['t'](_0x53b561(0x3d6)),'type':_0x53e1d0[_0x53b561(0x31b)]['Warning']}),this[_0x53b561(0x350)]['updatePermissionPoint'](new _0xdbe912[(_0x53b561(0x47e))](this[_0x53b561(0x35f)])['id'],!0x1)):this['_permissionService'][_0x53b561(0x22f)](new _0xdbe912[(_0x53b561(0x47e))](this[_0x53b561(0x35f)])['id'],!0x0);})));let _0x11dbb4=!0x1;return this[_0x28f597(0x595)](this[_0x28f597(0x57a)][_0x28f597(0x314)][_0x28f597(0x200)](_0x4bb51e=>{const _0x5f1ca2=_0x28f597;_0x4bb51e===_0x4c781c['ONLINE']?this[_0x5f1ca2(0x410)](_0x11dbb4):_0x4bb51e===_0x4c781c['OFFLINE']&&(_0x11dbb4=!0x0,this[_0x5f1ca2(0x49d)]());})),this[_0x28f597(0x595)](this[_0x28f597(0x57a)][_0x28f597(0x1b6)][_0x28f597(0x200)](_0x2c592a=>{const _0x55c5e9=_0x28f597;try{switch(_0x2c592a[_0x55c5e9(0x1c6)]){case _0x346629[_0x55c5e9(0x2fa)][_0x55c5e9(0x4d9)]:{this[_0x55c5e9(0x445)](_0x346629['parseProtocolChangeset'](_0x2c592a[_0x55c5e9(0x34f)]));break;}case _0x346629['CollaborationEvent'][_0x55c5e9(0x44c)]:{this['_onRemoteACK'](_0x2c592a[_0x55c5e9(0x34f)]);break;}case _0x346629[_0x55c5e9(0x2fa)][_0x55c5e9(0x20a)]:{this[_0x55c5e9(0x50d)]();break;}case _0x346629[_0x55c5e9(0x2fa)][_0x55c5e9(0x246)]:{this[_0x55c5e9(0x4fa)](_0x2c592a[_0x55c5e9(0x34f)][_0x55c5e9(0x2bd)]['map'](_0x31aea1=>_0x346629[_0x55c5e9(0x530)](_0x31aea1)));break;}case _0x346629[_0x55c5e9(0x2fa)][_0x55c5e9(0x1ed)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x14bed9){throw console['error'](_0x55c5e9(0x460),_0x14bed9),_0x14bed9;}})),this[_0x28f597(0x53b)];}[_0x51d41b(0x2a2)](){this['_transitionLocked']=!0x1;}[_0x51d41b(0x262)](){const _0x525871=_0x51d41b;if(this['_transitionLocked'])throw new Error(_0x525871(0x4d2));this[_0x525871(0x443)]=!0x0;}[_0x51d41b(0x1f0)](_0xcc7772){const _0x571477=_0x51d41b;this[_0x571477(0x262)](),this[_0x571477(0x3d3)](this[_0x571477(0x53b)][_0x571477(0x1f1)](_0xcc7772)),this[_0x571477(0x2a2)]();}[_0x51d41b(0x445)](_0x284ffa){const _0x575edf=_0x51d41b;if(!(_0x284ffa[_0x575edf(0x384)]<=this[_0x575edf(0x2c4)][_0x575edf(0x59e)](this[_0x575edf(0x35f)]))){if(this[_0x575edf(0x2b4)]){this[_0x575edf(0x53c)][_0x575edf(0x3cf)](_0x284ffa);return;}this[_0x575edf(0x50a)](_0x284ffa);}}[_0x51d41b(0x42b)](){const _0xd18637=_0x51d41b;this['_remoteChangesetQueue'][_0xd18637(0x1a9)](_0x2acaab=>this[_0xd18637(0x50a)](_0x2acaab)),this[_0xd18637(0x53c)]=[];}[_0x51d41b(0x50a)](_0x2b6312){const _0x4b1441=_0x51d41b,_0x45d730=this['_compressMutationService'][_0x4b1441(0x328)][_0x4b1441(0x4c6)](this[_0x4b1441(0x241)][_0x4b1441(0x328)][_0x4b1441(0x2dc)]()[_0x4b1441(0x4fe)])(_0x2b6312[_0x4b1441(0x533)],null)||_0x2b6312[_0x4b1441(0x533)],_0x5b3aa0={..._0x2b6312,'mutations':_0x45d730};this[_0x4b1441(0x262)](),this[_0x4b1441(0x3d3)](this[_0x4b1441(0x53b)][_0x4b1441(0x3f8)](_0x5b3aa0)),this[_0x4b1441(0x2a2)]();}[_0x51d41b(0x33e)](_0x5f0198){const _0x2ccbdf=_0x51d41b;this['_lockTransition'](),this[_0x2ccbdf(0x3d3)](this[_0x2ccbdf(0x53b)][_0x2ccbdf(0x387)](_0x5f0198)),this[_0x2ccbdf(0x2a2)]();}[_0x51d41b(0x50d)](_0x90b86a){const _0x4b86ae=_0x51d41b;this[_0x4b86ae(0x262)](),this['_updateState'](this['_state'][_0x4b86ae(0x1c7)](_0x90b86a)),this['_unlockTransition']();}['_onFetchMissResult'](_0xbeeff4){const _0x64f400=_0x51d41b;if(!(this[_0x64f400(0x53b)]instanceof _0x54cd11))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x2cb1a7=_0xbeeff4[_0x64f400(0x565)](_0x5ee955=>{const _0x2848c1=_0x64f400,_0x30d925=this[_0x2848c1(0x241)][_0x2848c1(0x328)][_0x2848c1(0x4c6)](this[_0x2848c1(0x241)][_0x2848c1(0x328)][_0x2848c1(0x2dc)]()[_0x2848c1(0x4fe)])(_0x5ee955['mutations'],null)||_0x5ee955[_0x2848c1(0x533)];return{..._0x5ee955,'mutations':_0x30d925};});this[_0x64f400(0x262)](),this[_0x64f400(0x3d3)](this[_0x64f400(0x53b)][_0x64f400(0x382)](_0x2cb1a7)),this[_0x64f400(0x2a2)]();}[_0x51d41b(0x49d)](){const _0x591258=_0x51d41b;this[_0x591258(0x262)](),this[_0x591258(0x3d3)](this[_0x591258(0x53b)][_0x591258(0x39f)]()),this[_0x591258(0x2a2)]();}['_toggleOnline'](_0x520120=!0x1){const _0x2f4f12=_0x51d41b;this[_0x2f4f12(0x262)](),this[_0x2f4f12(0x3d3)](this[_0x2f4f12(0x53b)][_0x2f4f12(0x458)]()),this[_0x2f4f12(0x2a2)]();const _0x1ccac2=this[_0x2f4f12(0x53b)];_0x520120&&_0x1ccac2 instanceof _0x27c498&&(this[_0x2f4f12(0x262)](),this[_0x2f4f12(0x3d3)](_0x1ccac2[_0x2f4f12(0x243)]()),this[_0x2f4f12(0x2a2)]());}async[_0x51d41b(0x5ab)](){return new Promise(_0x32b566=>{const _0x302904=_0x4682;this[_0x302904(0x57a)][_0x302904(0x314)][_0x302904(0x257)](_0x22cf47['take'](0x1))['subscribe'](async _0x50ac82=>{const _0x55cb1b=_0x302904;_0x32b566(await this[_0x55cb1b(0x42a)](_0x50ac82===_0x4c781c[_0x55cb1b(0x2b3)]));});});}[_0x51d41b(0x406)](){const _0x4bb004=_0x51d41b,_0x584389=this[_0x4bb004(0x35f)];return{'onStateChange':(_0x18395f,_0x116de2)=>{const _0x2965b7=_0x4bb004;if(_0x18395f!==this[_0x2965b7(0x53b)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x18395f[_0x2965b7(0x199)]+_0x2965b7(0x44a)+_0x116de2['status']+'\x0aCurrent:\x20'+this[_0x2965b7(0x53b)]['status']);this[_0x2965b7(0x3d3)](_0x116de2);},'onSendChangeset':_0x10294e=>{const _0x721456=_0x4bb004,_0x3a8ae1={'eventID':_0x346629[_0x721456(0x2fa)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x10294e[_0x721456(0x35f)],'unitType':this[_0x721456(0x369)],'changeset':_0x10294e,'memberID':this[_0x721456(0x57a)]['getMemberID']()}};this[_0x721456(0x57a)]['send'](_0x3a8ae1,this[_0x721456(0x35f)]);},'onMissingChangesets':({from:_0x45b580,to:_0x3ebcb5})=>{const _0x204c61=_0x4bb004;this[_0x204c61(0x545)][_0x204c61(0x45b)]('[CollaborationEntity]',_0x204c61(0x394)+_0x45b580+'\x20to\x20'+_0x3ebcb5);const _0x392cec={'eventID':_0x346629['CollaborationEvent']['FETCH_MISSING'],'data':{'unitID':_0x584389,'unitType':this[_0x204c61(0x369)],'from':_0x45b580,'to':_0x3ebcb5}};this['session'][_0x204c61(0x4a2)](_0x392cec,this[_0x204c61(0x35f)]);}};}async[_0x51d41b(0x42a)](_0x75d38f){const _0x21099a=_0x51d41b;var _0x5ca550,_0x10f34d;const _0x10eef7=await this[_0x21099a(0x552)][_0x21099a(0x335)](this[_0x21099a(0x35f)]),_0x1deb5d=(_0x5ca550=_0x10eef7==null?void 0x0:_0x10eef7['mutations'])!=null?_0x5ca550:[],_0x5bb847=(_0x10f34d=_0x10eef7==null?void 0x0:_0x10eef7['awaitingChangeset'])!=null?_0x10f34d:null,_0x3ee632=this[_0x21099a(0x35f)];try{this[_0x21099a(0x599)](_0x5bb847,_0x1deb5d);}catch(_0x3411a9){this['_logService'][_0x21099a(0x405)](_0x3411a9);}const _0x41dab3=this[_0x21099a(0x406)]();if(_0x75d38f){const _0x4214a8=_0x14c4f8(this[_0x21099a(0x2b0)],_0x3ee632,this[_0x21099a(0x369)],_0x5bb847,_0x1deb5d,_0x41dab3);return _0x4214a8 instanceof _0xe38ae6?_0x4214a8[_0x21099a(0x1e2)]():(_0x4214a8 instanceof _0x3d7f52||_0x4214a8 instanceof _0x2fb341)&&_0x4214a8[_0x21099a(0x4bb)](),_0x4214a8;}return this['_injector']['createInstance'](_0xad8cf9,_0x3ee632,this[_0x21099a(0x369)],_0x5bb847,_0x1deb5d,_0x41dab3);}[_0x51d41b(0x599)](_0x5140d0,_0x4de57b){const _0x2bb0aa=_0x51d41b;var _0xbfaf7e,_0x4a35bf;const _0x4dfaa1=this[_0x2bb0aa(0x241)][_0x2bb0aa(0x328)][_0x2bb0aa(0x4c6)](this[_0x2bb0aa(0x241)]['interceptor'][_0x2bb0aa(0x2dc)]()[_0x2bb0aa(0x4fe)]);(_0xbfaf7e=_0x4dfaa1((_0x5140d0==null?void 0x0:_0x5140d0['mutations'])||[],null))==null||_0xbfaf7e[_0x2bb0aa(0x1a9)](_0x305c49=>this[_0x2bb0aa(0x561)][_0x2bb0aa(0x4d0)](_0x305c49['id'],_0x305c49[_0x2bb0aa(0x1c3)])),(_0x4a35bf=_0x4dfaa1(_0x4de57b||[],null))==null||_0x4a35bf[_0x2bb0aa(0x1a9)](_0x532bb=>this[_0x2bb0aa(0x561)][_0x2bb0aa(0x4d0)](_0x532bb['id'],_0x532bb['params']));}},_0x59ce0d[_0x51d41b(0x44d)]=_0x16cee8([_0x26a766(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x26a766(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x434)])),_0x26a766(0x5,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x2da)])),_0x26a766(0x6,_0x36d396['Inject'](_0x36d396[_0x51d41b(0x22d)])),_0x26a766(0x7,_0x36d396[_0x51d41b(0x2ae)](_0x346629['RevisionService'])),_0x26a766(0x8,_0x36d396[_0x51d41b(0x495)]),_0x26a766(0x9,_0x36d396[_0x51d41b(0x1d5)]),_0x26a766(0xa,_0x455671[_0x51d41b(0x1c1)]),_0x26a766(0xb,_0x36d396[_0x51d41b(0x326)]),_0x26a766(0xc,_0x36d396[_0x51d41b(0x43f)](_0x33f55f))],_0x59ce0d[_0x51d41b(0x44d)]),_0x59ce0d['DocCollaborationEntity']=class extends _0x59ce0d[_0x51d41b(0x44d)]{constructor(_0x4dcaf7,_0x10fd25,_0x168237,_0x5b2591,_0x41c03c,_0x1bdc13,_0xdd4105,_0x1a6f46,_0x3d1742,_0x2a0f18,_0x608e5e,_0x4a2504,_0x2e3291,_0x1a8d69,_0x3f5131,_0x431eb7,_0x6d7e31){const _0x38555b=_0x51d41b;super(_0x4dcaf7,_0x168237,_0x10fd25,_0x5b2591,_0x41c03c,_0x1bdc13,_0xdd4105,_0x1a6f46,_0x2e3291,_0x1a8d69,_0x3f5131,_0x431eb7,_0x6d7e31),this['unitID']=_0x4dcaf7,this['type']=_0x10fd25,this[_0x38555b(0x473)]=_0x3d1742,this[_0x38555b(0x2ff)]=_0x2a0f18,this[_0x38555b(0x4c0)]=_0x608e5e,this[_0x38555b(0x42d)]=_0x4a2504;}[_0x51d41b(0x406)](){const _0x11d8b2=_0x51d41b,_0x266900=super[_0x11d8b2(0x406)]();return _0x266900['onTransformIME']=_0x264524=>this[_0x11d8b2(0x2ff)][_0x11d8b2(0x43e)](_0x264524),_0x266900[_0x11d8b2(0x23c)]=_0x4877af=>this[_0x11d8b2(0x4c0)]['transformSelections'](_0x4877af),_0x266900['onSyncEditingCollabCursor']=_0x22bec4=>this[_0x11d8b2(0x42d)][_0x11d8b2(0x2f6)](_0x22bec4),_0x266900['onTransformRemoteChangesetByIMECache']=_0x56d6de=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x56d6de),_0x266900;}async['_init'](){const _0x3e31dc=_0x51d41b,_0x387859=await super[_0x3e31dc(0x571)]();return this[_0x3e31dc(0x595)](this[_0x3e31dc(0x561)]['onCommandExecuted']((_0x296ac0,_0x512a6d)=>{const _0x21cc14=_0x3e31dc;if(_0x296ac0['type']!==_0x36d396[_0x21cc14(0x3c4)][_0x21cc14(0x1f5)]||_0x512a6d!=null&&_0x512a6d[_0x21cc14(0x3a0)]||_0x512a6d!=null&&_0x512a6d['onlyLocal'])return;const _0x66fcce=_0x296ac0[_0x21cc14(0x1c3)];if((_0x66fcce==null?void 0x0:_0x66fcce[_0x21cc14(0x19b)])!==this[_0x21cc14(0x35f)])return;let _0x40a8df=_0x296ac0;if(_0x40a8df['id']===_0x569fac[_0x21cc14(0x4ec)]['id']){const _0xd850d0=_0x40a8df[_0x21cc14(0x1c3)];_0x40a8df={'id':_0x569fac[_0x21cc14(0x4ec)]['id'],'type':_0x36d396[_0x21cc14(0x3c4)][_0x21cc14(0x1f5)],'params':{'unitId':_0xd850d0[_0x21cc14(0x19b)],'actions':_0xd850d0[_0x21cc14(0x583)],'textRanges':null}};}const _0x54c4e1=this['_compressMutationService'][_0x21cc14(0x328)][_0x21cc14(0x4c6)](this[_0x21cc14(0x241)][_0x21cc14(0x328)][_0x21cc14(0x2dc)]()[_0x21cc14(0x597)])([_0x40a8df],null)||[_0x40a8df];this[_0x21cc14(0x1f0)](_0x54c4e1[0x0]);})),_0x387859;}},_0x59ce0d[_0x51d41b(0x2d0)]=_0x16cee8([_0x26a766(0x3,_0x36d396['Inject'](_0x36d396[_0x51d41b(0x268)])),_0x26a766(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d['LocalCacheService'])),_0x26a766(0x5,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x2da)])),_0x26a766(0x6,_0x36d396['Inject'](_0x36d396[_0x51d41b(0x22d)])),_0x26a766(0x7,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x527)])),_0x26a766(0x8,_0x36d396[_0x51d41b(0x2ae)](_0x569fac[_0x51d41b(0x27b)])),_0x26a766(0x9,_0x36d396[_0x51d41b(0x2ae)](_0x3106a2)),_0x26a766(0xa,_0x36d396['Inject'](_0xe78d9a)),_0x26a766(0xb,_0x36d396[_0x51d41b(0x2ae)](_0xb807fa)),_0x26a766(0xc,_0x36d396[_0x51d41b(0x495)]),_0x26a766(0xd,_0x36d396[_0x51d41b(0x1d5)]),_0x26a766(0xe,_0x455671[_0x51d41b(0x1c1)]),_0x26a766(0xf,_0x36d396[_0x51d41b(0x326)]),_0x26a766(0x10,_0x36d396[_0x51d41b(0x43f)](_0x33f55f))],_0x59ce0d['DocCollaborationEntity']),_0x59ce0d[_0x51d41b(0x479)]=class extends _0x59ce0d[_0x51d41b(0x44d)]{constructor(_0x1a0748,_0xae3dda,_0x5497fe,_0x3fcafe,_0x3b124d,_0x17d9cc,_0x174c9b,_0x4dd39c,_0x5eecc7,_0x53d413,_0x5ca17a,_0xc1bcf8,_0x260df1,_0x26de11){const _0x103315=_0x51d41b;super(_0x1a0748,_0x5497fe,_0xae3dda,_0x3fcafe,_0x3b124d,_0x17d9cc,_0x174c9b,_0x4dd39c,_0x53d413,_0x5ca17a,_0xc1bcf8,_0x260df1,_0x26de11),this[_0x103315(0x35f)]=_0x1a0748,this[_0x103315(0x2cb)]=_0xae3dda,this['_sheetTransformSelectionsService']=_0x5eecc7;}['_createHandler'](){const _0x5b458f=_0x51d41b,_0x386f48=super[_0x5b458f(0x406)]();return _0x386f48[_0x5b458f(0x23c)]=_0x4144c4=>this[_0x5b458f(0x2a0)][_0x5b458f(0x3dd)](_0x4144c4),_0x386f48;}async['_init'](){const _0x4b1b04=_0x51d41b,_0x50981a=await super[_0x4b1b04(0x571)]();return this[_0x4b1b04(0x595)](this[_0x4b1b04(0x561)][_0x4b1b04(0x1c8)]((_0x20a6a9,_0x551b1e)=>{const _0x582ed5=_0x4b1b04;if(_0x20a6a9[_0x582ed5(0x2cb)]!==_0x36d396['CommandType'][_0x582ed5(0x1f5)]||_0x551b1e!=null&&_0x551b1e[_0x582ed5(0x3a0)]||_0x551b1e!=null&&_0x551b1e[_0x582ed5(0x310)])return;const _0x5d3243=_0x20a6a9['params'];if((_0x5d3243==null?void 0x0:_0x5d3243[_0x582ed5(0x19b)])!==this[_0x582ed5(0x35f)])return;const _0x6f358b=_0x20a6a9,_0x276312=this[_0x582ed5(0x241)]['interceptor'][_0x582ed5(0x4c6)](this['_compressMutationService'][_0x582ed5(0x328)][_0x582ed5(0x2dc)]()[_0x582ed5(0x597)])([_0x6f358b],null)||[_0x6f358b];this['_onLocalMutation'](_0x276312[0x0]);})),_0x50981a;}},_0x59ce0d[_0x51d41b(0x479)]=_0x16cee8([_0x26a766(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x26a766(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x434)])),_0x26a766(0x5,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x2da)])),_0x26a766(0x6,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x22d)])),_0x26a766(0x7,_0x36d396['Inject'](_0x346629[_0x51d41b(0x527)])),_0x26a766(0x8,_0x36d396[_0x51d41b(0x2ae)](_0x57d656)),_0x26a766(0x9,_0x36d396[_0x51d41b(0x495)]),_0x26a766(0xa,_0x36d396[_0x51d41b(0x1d5)]),_0x26a766(0xb,_0x455671[_0x51d41b(0x1c1)]),_0x26a766(0xc,_0x36d396['IPermissionService']),_0x26a766(0xd,_0x36d396[_0x51d41b(0x43f)](_0x33f55f))],_0x59ce0d[_0x51d41b(0x479)]);var _0x280879=Object[_0x51d41b(0x215)],_0x4a61a4=Object[_0x51d41b(0x2b7)],_0x122c2b=(_0x39f088,_0x535709,_0x11ee23,_0x25fc81)=>{for(var _0x4c6ba1=_0x25fc81>0x1?void 0x0:_0x25fc81?_0x4a61a4(_0x535709,_0x11ee23):_0x535709,_0x3cbf25=_0x39f088['length']-0x1,_0x565a52;_0x3cbf25>=0x0;_0x3cbf25--)(_0x565a52=_0x39f088[_0x3cbf25])&&(_0x4c6ba1=(_0x25fc81?_0x565a52(_0x535709,_0x11ee23,_0x4c6ba1):_0x565a52(_0x4c6ba1))||_0x4c6ba1);return _0x25fc81&&_0x4c6ba1&&_0x280879(_0x535709,_0x11ee23,_0x4c6ba1),_0x4c6ba1;},_0x244e31=(_0x4bae1a,_0x589633)=>(_0x53b3e8,_0x2467a4)=>_0x589633(_0x53b3e8,_0x2467a4,_0x4bae1a);_0x59ce0d['CollaborationController']=class extends _0x36d396[_0x51d41b(0x480)]{constructor(_0x487a85,_0x4e126e,_0x4a6c3f){const _0x3af01c=_0x51d41b;super(),_0x55fd67(this,_0x3af01c(0x20f),new Map()),_0x55fd67(this,_0x3af01c(0x21c),new _0x22cf47['Subject']()),(this[_0x3af01c(0x2b0)]=_0x487a85,this[_0x3af01c(0x319)]=_0x4e126e,this['_univerInstanceService']=_0x4a6c3f,this[_0x3af01c(0x571)]());}[_0x51d41b(0x3cd)](){const _0x486444=_0x51d41b;super[_0x486444(0x3cd)](),this[_0x486444(0x20f)][_0x486444(0x1a9)](_0x54d5c3=>_0x54d5c3[_0x486444(0x3cd)]()),this['_entities'][_0x486444(0x3a7)]();}[_0x51d41b(0x510)](_0x13eeb5){const _0x48f170=_0x51d41b;var _0x27035e;return(_0x27035e=this[_0x48f170(0x20f)][_0x48f170(0x58c)](_0x13eeb5))!=null?_0x27035e:null;}[_0x51d41b(0x1d7)](_0x2cf23c){const _0x22466d=_0x51d41b,_0x4e9bfc=this[_0x22466d(0x510)](_0x2cf23c);return _0x4e9bfc?_0x22cf47['of'](_0x4e9bfc):this[_0x22466d(0x21c)][_0x22466d(0x257)](_0x547088['filter'](_0x17d41f=>_0x17d41f[_0x22466d(0x35f)]===_0x2cf23c));}['_init'](){const _0x2915d2=_0x51d41b;this[_0x2915d2(0x273)][_0x2915d2(0x3b6)](_0x36d396[_0x2915d2(0x26a)]['UNIVER_SHEET'])[_0x2915d2(0x257)](_0x22cf47[_0x2915d2(0x5a4)](this[_0x2915d2(0x1b2)]),_0x547088[_0x2915d2(0x587)](0x10))[_0x2915d2(0x200)](async _0x9cdc61=>{const _0x2b75c7=_0x2915d2,_0x57c2e0=_0x9cdc61[_0x2b75c7(0x4ce)](),_0x398e3c=await this[_0x2b75c7(0x1b5)](_0x57c2e0,_0x54451c[_0x2b75c7(0x1d8)]);this[_0x2b75c7(0x20f)][_0x2b75c7(0x27f)](_0x57c2e0,_0x398e3c);}),this[_0x2915d2(0x273)][_0x2915d2(0x3b6)](_0x36d396['UniverInstanceType']['UNIVER_DOC'])[_0x2915d2(0x257)](_0x22cf47[_0x2915d2(0x5a4)](this['dispose$']),_0x547088[_0x2915d2(0x587)](0x10))[_0x2915d2(0x257)](_0x547088[_0x2915d2(0x280)](_0x1eccfd=>!_0x1eccfd[_0x2915d2(0x4ce)]()[_0x2915d2(0x59c)]('__')))[_0x2915d2(0x200)](async _0x151154=>{const _0x5badab=_0x2915d2,_0x49b08f=_0x151154[_0x5badab(0x4ce)](),_0x53650a=await this[_0x5badab(0x1b5)](_0x49b08f,_0x54451c[_0x5badab(0x43c)]);this[_0x5badab(0x20f)][_0x5badab(0x27f)](_0x49b08f,_0x53650a);}),_0x22cf47['merge'](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x36d396[_0x2915d2(0x26a)][_0x2915d2(0x1d8)]),this[_0x2915d2(0x273)][_0x2915d2(0x505)](_0x36d396[_0x2915d2(0x26a)]['UNIVER_DOC']))[_0x2915d2(0x257)](_0x22cf47[_0x2915d2(0x5a4)](this[_0x2915d2(0x1b2)]))[_0x2915d2(0x200)](_0xcb96d8=>{const _0x178512=_0x2915d2,_0x368940=_0xcb96d8[_0x178512(0x4ce)](),_0x416cda=this['_entities'][_0x178512(0x58c)](_0x368940);_0x416cda&&(_0x416cda[_0x178512(0x3cd)](),this[_0x178512(0x20f)][_0x178512(0x560)](_0x368940));});}async['_startCollaboration'](_0x2aea39,_0x3038aa){const _0x3c041e=_0x51d41b,_0x4b9163=await this['_collabSessionService'][_0x3c041e(0x208)](_0x2aea39),_0x21487e=this[_0x3c041e(0x2b0)][_0x3c041e(0x2e7)](this[_0x3c041e(0x325)](_0x3038aa),_0x2aea39,_0x3038aa,_0x4b9163);return await _0x21487e[_0x3c041e(0x46c)](),this['_entityInit$'][_0x3c041e(0x1d6)](_0x21487e),_0x21487e;}['_getCtorByUniverType'](_0x444e4a){const _0x574777=_0x51d41b;switch(_0x444e4a){case _0x54451c[_0x574777(0x43c)]:return _0x59ce0d[_0x574777(0x2d0)];case _0x54451c['UNIVER_SHEET']:return _0x59ce0d['SheetCollaborationEntity'];default:throw new Error(_0x574777(0x1aa)+_0x444e4a);}}},_0x59ce0d[_0x51d41b(0x4e2)]=_0x122c2b([_0x244e31(0x0,_0x36d396['Inject'](_0x36d396[_0x51d41b(0x268)])),_0x244e31(0x1,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x285)])),_0x244e31(0x2,_0x36d396[_0x51d41b(0x2c5)])],_0x59ce0d[_0x51d41b(0x4e2)]);const _0x441c7d=['purple300','jiqing500','verdancy600','red300',_0x51d41b(0x4df),_0x51d41b(0x4f3)];class _0x2f29bf extends _0x36d396[_0x51d41b(0x4f0)]{constructor(){const _0x5a2e96=_0x51d41b;super(...arguments),_0x55fd67(this,_0x5a2e96(0x20c),new Map()),_0x55fd67(this,'_colorIndex',0x0);}[_0x51d41b(0x564)](_0x734049){const _0xde34aa=_0x51d41b;if(this[_0xde34aa(0x20c)][_0xde34aa(0x58b)](_0x734049))return this[_0xde34aa(0x20c)][_0xde34aa(0x58c)](_0x734049);const _0x5b9e4a=_0x441c7d[this[_0xde34aa(0x402)]];return this[_0xde34aa(0x402)]=(this[_0xde34aa(0x402)]+0x1)%_0x441c7d[_0xde34aa(0x392)],this[_0xde34aa(0x20c)][_0xde34aa(0x27f)](_0x734049,_0x5b9e4a),_0x5b9e4a;}}var _0x4614e9=Object[_0x51d41b(0x215)],_0x54f023=Object['getOwnPropertyDescriptor'],_0x5c53ba=(_0x544215,_0x37cce7,_0x5a5d8b,_0x3d8151)=>{const _0x3dc3ba=_0x51d41b;for(var _0x3c88d3=_0x3d8151>0x1?void 0x0:_0x3d8151?_0x54f023(_0x37cce7,_0x5a5d8b):_0x37cce7,_0x4a16ca=_0x544215[_0x3dc3ba(0x392)]-0x1,_0x2c5b99;_0x4a16ca>=0x0;_0x4a16ca--)(_0x2c5b99=_0x544215[_0x4a16ca])&&(_0x3c88d3=(_0x3d8151?_0x2c5b99(_0x37cce7,_0x5a5d8b,_0x3c88d3):_0x2c5b99(_0x3c88d3))||_0x3c88d3);return _0x3d8151&&_0x3c88d3&&_0x4614e9(_0x37cce7,_0x5a5d8b,_0x3c88d3),_0x3c88d3;},_0x13c286=(_0x2b197c,_0xc1ab3d)=>(_0x33d0,_0x1dc8f7)=>_0xc1ab3d(_0x33d0,_0x1dc8f7,_0x2b197c);const _0x34adef=0x12c,_0x2f4198=0x64,_0x2c980a=()=>{let _0x46c9b2=[],_0x47f9cc=!0x1;return _0x3cae6b=>{const _0x5cec84=_0x4682;_0x46c9b2[_0x5cec84(0x3cf)](_0x3cae6b),_0x47f9cc||(_0x47f9cc=!0x0,setTimeout(()=>{const _0x2df6a1=_0x5cec84;_0x46c9b2[_0x2df6a1(0x1a9)](_0x5e9953=>_0x5e9953()),_0x46c9b2=[],_0x47f9cc=!0x1;}));};};let _0x51b76e=class extends _0x36d396[_0x51d41b(0x480)]{constructor(_0x885265,_0x501f6e,_0x5a5723,_0x557c9a,_0xefe18b,_0x35c582,_0x2faf88,_0x4a3a6d){const _0x252044=_0x51d41b;super(),_0x55fd67(this,_0x252044(0x286),!0x1),_0x55fd67(this,_0x252044(0x571),!0x1),_0x55fd67(this,_0x252044(0x323),new _0x22cf47[(_0x252044(0x482))](new Map())),_0x55fd67(this,_0x252044(0x1d0),this[_0x252044(0x323)][_0x252044(0x544)]()),_0x55fd67(this,_0x252044(0x212),new _0x22cf47[(_0x252044(0x482))]([])),_0x55fd67(this,_0x252044(0x251),this[_0x252044(0x212)]['pipe'](_0x22cf47[_0x252044(0x41c)](_0x34adef))),_0x55fd67(this,_0x252044(0x411),_0x3179a3((_0x39f64e,_0x16de51)=>{const _0x5a42fb=_0x252044,_0x1d5c63={'eventID':_0x346629['CollaborationEvent'][_0x5a42fb(0x191)],'data':{'unitID':this['unitID'],'memberID':this[_0x5a42fb(0x598)]['getMemberID'](),'selection':_0x933578[_0x5a42fb(0x3b5)](_0x39f64e,_0x16de51[_0x5a42fb(0x20b)])}};this[_0x5a42fb(0x598)]['send'](_0x1d5c63,this[_0x5a42fb(0x35f)]);},_0x2f4198)),(this[_0x252044(0x35f)]=_0x885265,this['_session']=_0x501f6e,this[_0x252044(0x2b0)]=_0x5a5723,this[_0x252044(0x23d)]=_0x557c9a,this[_0x252044(0x468)]=_0xefe18b,this[_0x252044(0x273)]=_0x35c582,this[_0x252044(0x561)]=_0x2faf88,this[_0x252044(0x4f7)]=_0x4a3a6d);}get['cursorInfo'](){const _0x2a8c83=_0x51d41b;return this[_0x2a8c83(0x323)][_0x2a8c83(0x2b1)]();}get[_0x51d41b(0x358)](){const _0x3da048=_0x51d41b;return this['_roomMembers$'][_0x3da048(0x2b1)]();}[_0x51d41b(0x3cd)](){const _0x34fb8e=_0x51d41b;super[_0x34fb8e(0x3cd)](),this['_cursorInfo$'][_0x34fb8e(0x1d6)](new Map()),this[_0x34fb8e(0x323)][_0x34fb8e(0x22a)](),this[_0x34fb8e(0x212)][_0x34fb8e(0x1d6)]([]),this[_0x34fb8e(0x212)]['complete']();}['init'](){const _0x2e51bd=_0x51d41b;this[_0x2e51bd(0x571)]||(this['_init']=!0x0,this[_0x2e51bd(0x598)][_0x2e51bd(0x314)]['pipe'](_0x22cf47['takeUntil'](this[_0x2e51bd(0x1b2)]))['subscribe'](_0x169d38=>{const _0x2711ca=_0x2e51bd;_0x169d38===_0x4c781c[_0x2711ca(0x2b3)]?this[_0x2711ca(0x410)]():this['_toggleOffline']();}),this[_0x2e51bd(0x598)]['event$'][_0x2e51bd(0x257)](_0x22cf47[_0x2e51bd(0x5a4)](this['dispose$']))[_0x2e51bd(0x200)](_0x248bbd=>{const _0x23ceab=_0x2e51bd,_0x1755ca=_0x248bbd[_0x23ceab(0x1c6)];_0x1755ca===_0x346629[_0x23ceab(0x2fa)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x248bbd),_0x1755ca===_0x346629[_0x23ceab(0x2fa)]['USERS_LEAVE']&&this[_0x23ceab(0x483)](_0x248bbd);}),this[_0x2e51bd(0x1c0)](),this[_0x2e51bd(0x595)](this[_0x2e51bd(0x561)]['onCommandExecuted'](_0xf91874=>{const _0x5f0462=_0x2e51bd;if(this[_0x5f0462(0x286)]&&_0xf91874['id']===_0xdbe912['SetSelectionsOperation']['id']&&_0xf91874[_0x5f0462(0x1c3)][_0x5f0462(0x19b)]===this[_0x5f0462(0x35f)]){const _0x43f10a=_0xf91874['params'];this[_0x5f0462(0x411)](_0x43f10a['subUnitId'],_0x43f10a[_0x5f0462(0x216)][0x0]);}})));}['_onCursorUpdate'](_0x230e0f){const _0x162466=_0x51d41b;var _0x3e0188,_0x397b54;const {memberID:_0x5afd98,selection:_0x17eb51}=_0x230e0f[_0x162466(0x34f)],{sheetName:_0x29b2c8,range:_0x362c3b}=_0x933578[_0x162466(0x3da)](_0x17eb51),_0x378c3e={'name':(_0x397b54=(_0x3e0188=this[_0x162466(0x468)][_0x162466(0x359)](this[_0x162466(0x35f)],_0x5afd98))==null?void 0x0:_0x3e0188[_0x162466(0x346)])!=null?_0x397b54:_0x162466(0x32a),'range':this[_0x162466(0x488)](_0x29b2c8,_0x362c3b),'sheetID':_0x29b2c8,'color':this[_0x162466(0x23d)]['assignAColorForMemberID'](_0x5afd98),'selection':_0x17eb51},_0x7c5be3=this['cursorInfo'];_0x7c5be3[_0x162466(0x27f)](_0x5afd98,_0x378c3e),this[_0x162466(0x323)][_0x162466(0x1d6)](_0x7c5be3);}[_0x51d41b(0x483)](_0x8f78db){const _0x2d3fb7=_0x51d41b,{memberID:_0x5b1a75}=_0x8f78db[_0x2d3fb7(0x34f)],_0x48b8ae=this[_0x2d3fb7(0x324)];_0x48b8ae['delete'](_0x5b1a75),this['_cursorInfo$']['next'](_0x48b8ae);}[_0x51d41b(0x488)](_0x34a81c,_0xb53de0){const _0x2be775=_0x51d41b;var _0x53c99c,_0x8d0cdb;const _0x56279c=(_0x8d0cdb=(_0x53c99c=this[_0x2be775(0x273)]['getUniverSheetInstance'](this[_0x2be775(0x35f)]))==null?void 0x0:_0x53c99c[_0x2be775(0x24f)](_0x34a81c))==null?void 0x0:_0x8d0cdb[_0x2be775(0x538)]();return(_0x56279c==null?void 0x0:_0x56279c[_0x2be775(0x3e3)](_0x59525c=>_0x36d396[_0x2be775(0x3ed)][_0x2be775(0x3c6)](_0x59525c,_0xb53de0)))||_0xb53de0;}[_0x51d41b(0x1c0)](){const _0x3f0bf8=_0x51d41b,_0x3098b7=new _0x36d396['DisposableCollection'](),_0x50d81b=_0x2c980a(),_0x22163c=()=>{const _0x485179=_0x4682;_0x3098b7[_0x485179(0x3cd)]();const _0x287462=(_0x563b9e,_0x3b69f6,_0x427d4d,_0x5c635e)=>{const _0x1cbb6d=_0x485179;let _0x4fc40f=[];switch(_0x563b9e['id']){case _0xdbe912[_0x1cbb6d(0x446)][_0x1cbb6d(0x3b8)]:{_0x4fc40f=_0xdbe912['handleDeleteRangeMoveLeft'](_0x563b9e,_0x5c635e);break;}case _0xdbe912[_0x1cbb6d(0x446)]['DeleteRangeMoveUpCommandId']:{_0x4fc40f=_0xdbe912[_0x1cbb6d(0x51f)](_0x563b9e,_0x5c635e);break;}case _0xdbe912[_0x1cbb6d(0x446)]['InsertColCommandId']:{_0x4fc40f=_0xdbe912[_0x1cbb6d(0x27e)](_0x563b9e,_0x5c635e);break;}case _0xdbe912[_0x1cbb6d(0x446)]['InsertRangeMoveDownCommandId']:{_0x4fc40f=_0xdbe912[_0x1cbb6d(0x30e)](_0x563b9e,_0x5c635e);break;}case _0xdbe912[_0x1cbb6d(0x446)][_0x1cbb6d(0x353)]:{_0x4fc40f=_0xdbe912[_0x1cbb6d(0x2dd)](_0x563b9e,_0x5c635e);break;}case _0xdbe912[_0x1cbb6d(0x446)][_0x1cbb6d(0x1bf)]:{_0x4fc40f=_0xdbe912['handleInsertRow'](_0x563b9e,_0x5c635e);break;}case _0xdbe912['EffectRefRangId']['MoveRangeCommandId']:{_0x4fc40f=_0xdbe912['handleMoveRange'](_0x563b9e,_0x5c635e);break;}case _0xdbe912[_0x1cbb6d(0x446)]['RemoveColCommandId']:{_0x4fc40f=_0xdbe912['handleIRemoveCol'](_0x563b9e,_0x5c635e);break;}case _0xdbe912[_0x1cbb6d(0x446)]['RemoveRowCommandId']:{_0x4fc40f=_0xdbe912[_0x1cbb6d(0x3e0)](_0x563b9e,_0x5c635e);break;}}const _0x42273c=_0xdbe912[_0x1cbb6d(0x5a1)](_0x4fc40f,_0x5c635e),_0x3b7b64=this['cursorInfo']['get'](_0x3b69f6);if(_0x3b7b64&&_0x42273c){const _0x389a24={..._0x3b7b64,'range':_0x42273c};this['cursorInfo'][_0x1cbb6d(0x27f)](_0x3b69f6,_0x389a24),_0x50d81b(()=>{const _0x2009f9=_0x1cbb6d,_0x21a571=this[_0x2009f9(0x4f7)][_0x2009f9(0x1f2)](_0x42273c,_0x5e0ae7=>(_0x21a571['dispose'](),_0x287462(_0x5e0ae7,_0x3b69f6,_0x427d4d,_0x42273c)));_0x3098b7['add'](_0x21a571);});}return{'redos':[],'undos':[]};};this[_0x485179(0x324)][_0x485179(0x1a9)]((_0x57edd9,_0x36fc22)=>{const _0x1e0442=_0x485179,{range:_0x330f0c,sheetID:_0x320684}=_0x57edd9,_0x5310e5=this[_0x1e0442(0x4f7)]['registerRefRange'](_0x330f0c,_0x49ac79=>(_0x5310e5[_0x1e0442(0x3cd)](),_0x287462(_0x49ac79,_0x36fc22,_0x320684,_0x330f0c)));_0x3098b7[_0x1e0442(0x5a2)](_0x5310e5);});};this['disposeWithMe'](_0x36d396[_0x3f0bf8(0x1d9)](this[_0x3f0bf8(0x323)][_0x3f0bf8(0x200)](()=>{_0x22163c();})));}[_0x51d41b(0x410)](){const _0x28f5af=_0x51d41b;var _0x34699a,_0x1e9453;if(this['_online']=!0x0,((_0x34699a=this[_0x28f5af(0x273)][_0x28f5af(0x3ce)]())==null?void 0x0:_0x34699a[_0x28f5af(0x4ce)]())!==this[_0x28f5af(0x35f)])return;const _0x2f204e=(_0x1e9453=this[_0x28f5af(0x2b0)][_0x28f5af(0x58c)](_0xdbe912[_0x28f5af(0x5ac)])[_0x28f5af(0x462)]())==null?void 0x0:_0x1e9453[0x0],_0x2ef96f=this[_0x28f5af(0x273)][_0x28f5af(0x371)](_0x36d396[_0x28f5af(0x26a)][_0x28f5af(0x1d8)])[_0x28f5af(0x25a)]();_0x2f204e&&_0x2ef96f&&this['_updateLocalCursor'](_0x2ef96f[_0x28f5af(0x414)](),_0x2f204e);}[_0x51d41b(0x49d)](){const _0x48b433=_0x51d41b;this[_0x48b433(0x286)]=!0x1;}};_0x51b76e=_0x5c53ba([_0x13c286(0x2,_0x36d396['Inject'](_0x36d396[_0x51d41b(0x268)])),_0x13c286(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x2f29bf)),_0x13c286(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x2e1387)),_0x13c286(0x5,_0x36d396[_0x51d41b(0x2c5)]),_0x13c286(0x6,_0x36d396[_0x51d41b(0x1d5)]),_0x13c286(0x7,_0x36d396['Inject'](_0xdbe912[_0x51d41b(0x3b4)]))],_0x51b76e);var _0x4db1d2=Object['defineProperty'],_0x1ffb31=Object[_0x51d41b(0x2b7)],_0x393a7e=(_0x21ea0e,_0x419897,_0x4c2917,_0x95a461)=>{const _0x542823=_0x51d41b;for(var _0xf59bc6=_0x95a461>0x1?void 0x0:_0x95a461?_0x1ffb31(_0x419897,_0x4c2917):_0x419897,_0x1c9572=_0x21ea0e[_0x542823(0x392)]-0x1,_0x246f89;_0x1c9572>=0x0;_0x1c9572--)(_0x246f89=_0x21ea0e[_0x1c9572])&&(_0xf59bc6=(_0x95a461?_0x246f89(_0x419897,_0x4c2917,_0xf59bc6):_0x246f89(_0xf59bc6))||_0xf59bc6);return _0x95a461&&_0xf59bc6&&_0x4db1d2(_0x419897,_0x4c2917,_0xf59bc6),_0xf59bc6;},_0x5665c8=(_0x303b46,_0x16faa9)=>(_0x17bb9a,_0x16a7bc)=>_0x16faa9(_0x17bb9a,_0x16a7bc,_0x303b46);const _0x2f71fe=0x12c,_0x38e786=0x64;let _0x170182=class extends _0x36d396['RxDisposable']{constructor(_0x5e0f02,_0x533d86,_0x39b355,_0x529e0f,_0x47dc0c,_0xbdcb9d,_0xac8f7f,_0x45410d,_0x75d34f){const _0x2623c9=_0x51d41b;super(),_0x55fd67(this,_0x2623c9(0x286),!0x1),_0x55fd67(this,'_init',!0x1),_0x55fd67(this,_0x2623c9(0x323),new _0x22cf47['BehaviorSubject'](new Map())),_0x55fd67(this,'cursorInfo$',this[_0x2623c9(0x323)][_0x2623c9(0x544)]()),_0x55fd67(this,_0x2623c9(0x212),new _0x22cf47[(_0x2623c9(0x482))]([])),_0x55fd67(this,_0x2623c9(0x251),this[_0x2623c9(0x212)]['pipe'](_0x22cf47['debounceTime'](_0x2f71fe))),_0x55fd67(this,_0x2623c9(0x411),_0x3179a3(_0xe97eec=>{const _0x2e7f8d=_0x2623c9,_0x168b4e={'eventID':_0x346629['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x2e7f8d(0x598)][_0x2e7f8d(0x1fb)](),'selection':_0x31462b(_0xe97eec)}};this['_session'][_0x2e7f8d(0x4a2)](_0x168b4e,this['unitID']);},_0x38e786)),(this[_0x2623c9(0x35f)]=_0x5e0f02,this[_0x2623c9(0x598)]=_0x533d86,this['_injector']=_0x39b355,this[_0x2623c9(0x23d)]=_0x529e0f,this['_memberService']=_0x47dc0c,this[_0x2623c9(0x1d4)]=_0xbdcb9d,this[_0x2623c9(0x376)]=_0xac8f7f,this[_0x2623c9(0x273)]=_0x45410d,this[_0x2623c9(0x561)]=_0x75d34f);}get[_0x51d41b(0x324)](){const _0x364bae=_0x51d41b;return this[_0x364bae(0x323)][_0x364bae(0x2b1)]();}get[_0x51d41b(0x358)](){const _0x1ded85=_0x51d41b;return this[_0x1ded85(0x212)][_0x1ded85(0x2b1)]();}[_0x51d41b(0x3cd)](){const _0x23af4a=_0x51d41b;super[_0x23af4a(0x3cd)](),this['_cursorInfo$'][_0x23af4a(0x1d6)](new Map()),this[_0x23af4a(0x323)]['complete'](),this[_0x23af4a(0x212)][_0x23af4a(0x1d6)]([]),this[_0x23af4a(0x212)][_0x23af4a(0x22a)]();}[_0x51d41b(0x46c)](){const _0x40988f=_0x51d41b;this[_0x40988f(0x571)]||(this[_0x40988f(0x571)]=!0x0,this[_0x40988f(0x598)][_0x40988f(0x314)][_0x40988f(0x257)](_0x22cf47['takeUntil'](this[_0x40988f(0x1b2)]))[_0x40988f(0x200)](_0x5de992=>{const _0x42ff8e=_0x40988f;_0x5de992===_0x4c781c['ONLINE']?this[_0x42ff8e(0x410)]():this[_0x42ff8e(0x49d)]();}),this['_session'][_0x40988f(0x1b6)]['pipe'](_0x22cf47[_0x40988f(0x5a4)](this['dispose$']))[_0x40988f(0x200)](_0xf0bd83=>{const _0x528676=_0x40988f,_0x51ff91=_0xf0bd83['eventID'];_0x51ff91===_0x346629['CollaborationEvent'][_0x528676(0x191)]&&this[_0x528676(0x58f)](_0xf0bd83),_0x51ff91===_0x346629[_0x528676(0x2fa)]['USERS_LEAVE']&&this[_0x528676(0x483)](_0xf0bd83);}),this['disposeWithMe'](this['_commandService'][_0x40988f(0x1c8)](_0x236acf=>{const _0x128584=_0x40988f,_0x3d5b35=_0x236acf[_0x128584(0x1c3)];_0x3d5b35!=null&&this[_0x128584(0x286)]&&_0x236acf['id']===_0x569fac['SetTextSelectionsOperation']['id']&&_0x3d5b35['unitId']===this['unitID']&&_0x3d5b35[_0x128584(0x222)]===!0x1&&this[_0x128584(0x411)](_0x3d5b35['ranges']);})),this[_0x40988f(0x1d4)][_0x40988f(0x40b)][_0x40988f(0x257)](_0x22cf47['takeUntil'](this[_0x40988f(0x1b2)]))[_0x40988f(0x200)](_0x280669=>{const _0x2c4c3c=_0x40988f;if((_0x280669==null?void 0x0:_0x280669[_0x2c4c3c(0x35f)])!==this['unitID'])return;const _0x42fef5={'eventID':_0x346629[_0x2c4c3c(0x2fa)][_0x2c4c3c(0x191)],'data':_0x280669};this[_0x2c4c3c(0x58f)](_0x42fef5);}),this['disposeWithMe'](this[_0x40988f(0x561)][_0x40988f(0x1c8)](_0x4d768c=>{const _0x5b1b3f=_0x40988f;if(_0x4d768c[_0x5b1b3f(0x1c3)]==null)return;const _0x47d97c=_0x4d768c[_0x5b1b3f(0x1c3)];if(_0x4d768c['id']!==_0x569fac[_0x5b1b3f(0x4ec)]['id']||_0x47d97c[_0x5b1b3f(0x19b)]!==this[_0x5b1b3f(0x35f)])return;const _0x3efb26={'id':_0x5b1b3f(0x24e),'params':_0x47d97c},_0x480e82=this['cursorInfo'];for(const [_0x3f27f2,_0x262f64]of _0x480e82){const _0x3c3500={'id':_0x5b1b3f(0x24e),'params':{'unitId':this[_0x5b1b3f(0x35f)],'actions':null,'textRanges':_0x262f64[_0x5b1b3f(0x45c)]}},_0x1913de=this[_0x5b1b3f(0x376)][_0x5b1b3f(0x3e9)](_0x3efb26,_0x3c3500,!0x1);if(_0x346629[_0x5b1b3f(0x3ec)](_0x1913de))throw _0x1913de['error'];_0x480e82[_0x5b1b3f(0x27f)](_0x3f27f2,{..._0x262f64,'ranges':_0x1913de[_0x5b1b3f(0x4b5)][_0x5b1b3f(0x1c3)][_0x5b1b3f(0x559)]});}queueMicrotask(()=>{const _0x558723=_0x5b1b3f;this[_0x558723(0x323)][_0x558723(0x1d6)](_0x480e82);});})));}[_0x51d41b(0x58f)](_0x193f0e){const _0x380cec=_0x51d41b;var _0x16580b,_0x2cc3fd;const {memberID:_0x2bf0c1,selection:_0x4713a8}=_0x193f0e[_0x380cec(0x34f)],_0xdba4bf=_0x302630(_0x4713a8),_0x15ceb0=(_0x2cc3fd=(_0x16580b=this['_memberService'][_0x380cec(0x359)](this[_0x380cec(0x35f)],_0x2bf0c1))==null?void 0x0:_0x16580b[_0x380cec(0x346)])!=null?_0x2cc3fd:'Unknown\x20user',_0x495062={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x2bf0c1),'name':_0x15ceb0,'ranges':_0xdba4bf},_0x229c6e=this[_0x380cec(0x324)];_0x229c6e['set'](_0x2bf0c1,_0x495062),this['_cursorInfo$']['next'](_0x229c6e);}[_0x51d41b(0x483)](_0x316ce9){const _0x5d7963=_0x51d41b,{memberID:_0x381634}=_0x316ce9['data'],_0x319685=this['cursorInfo'];_0x319685[_0x5d7963(0x560)](_0x381634),this[_0x5d7963(0x323)][_0x5d7963(0x1d6)](_0x319685);}['_toggleOnline'](){const _0x2fc286=_0x51d41b;var _0x5f3cb5;if(this[_0x2fc286(0x286)]=!0x0,((_0x5f3cb5=this['_univerInstanceService'][_0x2fc286(0x3ce)]())==null?void 0x0:_0x5f3cb5['getUnitId']())!==this[_0x2fc286(0x35f)])return;const _0x41d46f=this[_0x2fc286(0x2b0)][_0x2fc286(0x58c)](_0x569fac[_0x2fc286(0x35c)])[_0x2fc286(0x4f4)](),_0xed5139=_0x41d46f==null?void 0x0:_0x41d46f[_0x2fc286(0x565)](_0x569fac[_0x2fc286(0x2aa)]);Array[_0x2fc286(0x223)](_0xed5139)&&_0xed5139[_0x2fc286(0x392)]>0x0&&this[_0x2fc286(0x411)](_0xed5139);}['_toggleOffline'](){const _0x587293=_0x51d41b;this[_0x587293(0x286)]=!0x1;}};_0x170182=_0x393a7e([_0x5665c8(0x2,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x5665c8(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x2f29bf)),_0x5665c8(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x2e1387)),_0x5665c8(0x5,_0x36d396['Inject'](_0xb807fa)),_0x5665c8(0x6,_0x346629['ITransformService']),_0x5665c8(0x7,_0x36d396['IUniverInstanceService']),_0x5665c8(0x8,_0x36d396['ICommandService'])],_0x170182);var _0x32aece=Object['defineProperty'],_0xae93e4=Object['getOwnPropertyDescriptor'],_0x18b496=(_0x5d6338,_0x23af54,_0x29b975,_0x27eb16)=>{const _0x2b5205=_0x51d41b;for(var _0x14eadb=_0x27eb16>0x1?void 0x0:_0x27eb16?_0xae93e4(_0x23af54,_0x29b975):_0x23af54,_0x4bdb21=_0x5d6338[_0x2b5205(0x392)]-0x1,_0x55934b;_0x4bdb21>=0x0;_0x4bdb21--)(_0x55934b=_0x5d6338[_0x4bdb21])&&(_0x14eadb=(_0x27eb16?_0x55934b(_0x23af54,_0x29b975,_0x14eadb):_0x55934b(_0x14eadb))||_0x14eadb);return _0x27eb16&&_0x14eadb&&_0x32aece(_0x23af54,_0x29b975,_0x14eadb),_0x14eadb;},_0x447a46=(_0xace37e,_0x56ef5b)=>(_0x2725d0,_0x2c743b)=>_0x56ef5b(_0x2725d0,_0x2c743b,_0xace37e);let _0x566b79=class extends _0x36d396['RxDisposable']{constructor(_0x3887c1,_0x4ecb01,_0x523b61){const _0x55c6e3=_0x51d41b;super(),_0x55fd67(this,_0x55c6e3(0x20f),new Map()),_0x55fd67(this,_0x55c6e3(0x21c),new _0x22cf47['Subject']()),(this[_0x55c6e3(0x273)]=_0x3887c1,this[_0x55c6e3(0x2b0)]=_0x4ecb01,this[_0x55c6e3(0x319)]=_0x523b61,this[_0x55c6e3(0x571)]());}[_0x51d41b(0x3cd)](){const _0x3e55a0=_0x51d41b;super[_0x3e55a0(0x3cd)](),this[_0x3e55a0(0x21c)]['complete'](),this['_entities'][_0x3e55a0(0x1a9)](_0x262583=>_0x262583['dispose']());}[_0x51d41b(0x45d)](_0x567001){const _0x2ac1f3=_0x51d41b;return this['_entities']['has'](_0x567001)?this[_0x2ac1f3(0x20f)][_0x2ac1f3(0x58c)](_0x567001)['cursorInfo$']:this[_0x2ac1f3(0x21c)][_0x2ac1f3(0x257)](_0x22cf47[_0x2ac1f3(0x280)](_0x4563c5=>_0x4563c5['unitID']===_0x567001),_0x22cf47[_0x2ac1f3(0x40c)](_0x1a6432=>_0x1a6432[_0x2ac1f3(0x1d0)]));}[_0x51d41b(0x571)](){const _0x2b367c=_0x51d41b;this[_0x2b367c(0x273)][_0x2b367c(0x3b6)](_0x36d396[_0x2b367c(0x26a)][_0x2b367c(0x1d8)])[_0x2b367c(0x257)](_0x22cf47[_0x2b367c(0x5a4)](this[_0x2b367c(0x1b2)]))[_0x2b367c(0x200)](async _0x5a9d01=>{const _0xea3a9d=_0x2b367c,_0x493838=_0x5a9d01[_0xea3a9d(0x4ce)](),_0x1b2773=await this['_startSheetCollabCursor'](_0x493838);this['_entityInit$'][_0xea3a9d(0x1d6)](_0x1b2773),this['_entities'][_0xea3a9d(0x27f)](_0x493838,_0x1b2773);}),this[_0x2b367c(0x273)][_0x2b367c(0x3b6)](_0x36d396['UniverInstanceType'][_0x2b367c(0x43c)])['pipe'](_0x22cf47[_0x2b367c(0x5a4)](this['dispose$']))[_0x2b367c(0x257)](_0x22cf47[_0x2b367c(0x280)](_0x51fcc9=>!_0x51fcc9['getUnitId']()['startsWith']('__')))[_0x2b367c(0x200)](async _0x20bf83=>{const _0x5bb742=_0x2b367c,_0x2dc985=_0x20bf83[_0x5bb742(0x4ce)](),_0x3b46b5=await this[_0x5bb742(0x49e)](_0x2dc985);this['_entityInit$'][_0x5bb742(0x1d6)](_0x3b46b5),this[_0x5bb742(0x20f)]['set'](_0x2dc985,_0x3b46b5);}),_0x22cf47['merge'](this['_univerInstanceService'][_0x2b367c(0x505)](_0x36d396[_0x2b367c(0x26a)][_0x2b367c(0x43c)]),this['_univerInstanceService'][_0x2b367c(0x505)](_0x36d396[_0x2b367c(0x26a)]['UNIVER_SHEET']))['pipe'](_0x22cf47[_0x2b367c(0x5a4)](this[_0x2b367c(0x1b2)]))[_0x2b367c(0x200)](_0x2560ef=>{const _0x4fa662=_0x2b367c,_0x1a09fc=_0x2560ef['getUnitId'](),_0x2f202d=this[_0x4fa662(0x20f)][_0x4fa662(0x58c)](_0x1a09fc);_0x2f202d&&(_0x2f202d[_0x4fa662(0x3cd)](),this[_0x4fa662(0x20f)][_0x4fa662(0x560)](_0x1a09fc));});}async['_startSheetCollabCursor'](_0x1f0ef0){const _0xd01ffc=_0x51d41b,_0x1ffd2c=await this['_collabSessionService'][_0xd01ffc(0x208)](_0x1f0ef0),_0x376767=this[_0xd01ffc(0x2b0)][_0xd01ffc(0x2e7)](_0x51b76e,_0x1f0ef0,_0x1ffd2c);return _0x376767[_0xd01ffc(0x46c)](),_0x376767;}async['_startDocCollabCursor'](_0x27bae2){const _0x3c1fba=_0x51d41b,_0x26de06=await this[_0x3c1fba(0x319)][_0x3c1fba(0x208)](_0x27bae2),_0x1b3ad5=this[_0x3c1fba(0x2b0)][_0x3c1fba(0x2e7)](_0x170182,_0x27bae2,_0x26de06);return _0x1b3ad5[_0x3c1fba(0x46c)](),_0x1b3ad5;}};_0x566b79=_0x18b496([_0x36d396['OnLifecycle'](_0x36d396[_0x51d41b(0x520)][_0x51d41b(0x4e8)],_0x566b79),_0x447a46(0x0,_0x36d396[_0x51d41b(0x2c5)]),_0x447a46(0x1,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x447a46(0x2,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x285)]))],_0x566b79);const _0x122765=0x14,_0x2b7b13=0xc8,_0x3cb90c=0x4,_0x40980d=0x5;function _0x12fb14(_0x2b8a4b,_0x105480){const _0x1f62f6=_0x51d41b;let {radius:_0x30ad28,width:_0x482f71,height:_0x4f3359}=_0x105480;_0x30ad28=_0x30ad28!=null?_0x30ad28:0x0,_0x482f71=_0x482f71!=null?_0x482f71:0x1e,_0x4f3359=_0x4f3359!=null?_0x4f3359:0x1e;let _0x1112f7=0x0,_0xa08aeb=0x0,_0x53ee0f=0x0;_0x1112f7=_0xa08aeb=_0x53ee0f=Math[_0x1f62f6(0x305)](_0x30ad28,_0x482f71/0x2,_0x4f3359/0x2),_0x2b8a4b[_0x1f62f6(0x542)](),_0x2b8a4b[_0x1f62f6(0x1b8)](_0x1112f7,0x0),_0x2b8a4b[_0x1f62f6(0x1bd)](_0x482f71-_0xa08aeb,0x0),_0x2b8a4b[_0x1f62f6(0x4e1)](_0x482f71-_0xa08aeb,_0xa08aeb,_0xa08aeb,Math['PI']*0x3/0x2,0x0,!0x1),_0x2b8a4b[_0x1f62f6(0x1bd)](_0x482f71,_0x4f3359-_0x53ee0f),_0x2b8a4b[_0x1f62f6(0x4e1)](_0x482f71-_0x53ee0f,_0x4f3359-_0x53ee0f,_0x53ee0f,0x0,Math['PI']/0x2,!0x1),_0x2b8a4b[_0x1f62f6(0x1bd)](0x0,_0x4f3359),_0x2b8a4b[_0x1f62f6(0x1bd)](0x0,_0x1112f7),_0x2b8a4b['arc'](_0x1112f7,_0x1112f7,_0x1112f7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2b8a4b[_0x1f62f6(0x245)](),_0x105480[_0x1f62f6(0x229)]&&(_0x2b8a4b[_0x1f62f6(0x3fc)](),_0x2b8a4b[_0x1f62f6(0x432)]=_0x105480[_0x1f62f6(0x229)],_0x105480[_0x1f62f6(0x307)]===_0x1f62f6(0x206)?_0x2b8a4b['fill']('evenodd'):_0x2b8a4b['fill'](),_0x2b8a4b['restore']());}class _0x5aab28 extends _0x54d1da[_0x51d41b(0x1f4)]{constructor(_0x25a5f2,_0xf87f8a){const _0x5e7d67=_0x51d41b;super(_0x25a5f2,_0xf87f8a),_0x55fd67(this,_0x5e7d67(0x4bc)),_0x55fd67(this,_0x5e7d67(0x3c5)),(this['color']=_0xf87f8a==null?void 0x0:_0xf87f8a[_0x5e7d67(0x4bc)],this[_0x5e7d67(0x3c5)]=_0xf87f8a==null?void 0x0:_0xf87f8a[_0x5e7d67(0x3c5)]);}static['drawWith'](_0x35b6f9,_0x1f2170){const _0x3fe8ec=_0x51d41b,{text:_0x3dea00,color:_0x330b5a}=_0x1f2170;_0x35b6f9['save'](),_0x35b6f9[_0x3fe8ec(0x341)]=_0x3fe8ec(0x2f4);const _0x156288=_0x35b6f9['measureText'](_0x3dea00)[_0x3fe8ec(0x50c)],_0x159969=Math[_0x3fe8ec(0x305)](_0x156288+0x2*_0x3cb90c,_0x2b7b13);_0x12fb14(_0x35b6f9,{'height':_0x122765,'radius':0x4,'width':_0x159969,'fill':_0x330b5a,'evented':!0x1}),_0x35b6f9['fillStyle']=_0x3fe8ec(0x44f);const _0x4a9475=_0x3cb90c,_0x3edb13=_0x122765-_0x40980d,_0x4cc726=_0x2b7b13-0x2*_0x3cb90c;if(_0x156288>_0x4cc726){let _0x239a86='',_0x32daaf=0x0;for(const _0x1afe62 of _0x3dea00){const _0x38bbcc=_0x35b6f9[_0x3fe8ec(0x345)](_0x1afe62)[_0x3fe8ec(0x50c)];if(_0x32daaf+_0x38bbcc<=_0x4cc726-_0x35b6f9['measureText']('...')[_0x3fe8ec(0x50c)])_0x239a86+=_0x1afe62,_0x32daaf+=_0x38bbcc;else{_0x239a86+='...';break;}}_0x35b6f9[_0x3fe8ec(0x2a1)](_0x239a86,_0x4a9475,_0x3edb13);}else _0x35b6f9[_0x3fe8ec(0x2a1)](_0x3dea00,_0x4a9475,_0x3edb13);_0x35b6f9[_0x3fe8ec(0x1bb)]();}[_0x51d41b(0x2d2)](_0x41abc0){const _0x42f685=_0x51d41b;_0x5aab28[_0x42f685(0x1da)](_0x41abc0,this);}}const _0x1b3e1b=0x1,_0x1d5e35=1.5;class _0x21dc68 extends _0x54d1da['Shape']{constructor(_0x101ea8,_0x1c998e){const _0x280a65=_0x51d41b;super(_0x101ea8,_0x1c998e),_0x55fd67(this,_0x280a65(0x253)),_0x55fd67(this,_0x280a65(0x356),!0x1),_0x55fd67(this,_0x280a65(0x1ca)),_0x55fd67(this,_0x280a65(0x553),''),_0x55fd67(this,_0x280a65(0x44b),'top'),_0x55fd67(this,_0x280a65(0x461)),(_0x1c998e&&this[_0x280a65(0x37e)](_0x1c998e),this[_0x280a65(0x594)][_0x280a65(0x3ea)](()=>this[_0x280a65(0x37e)]({'hovered':!0x0})),this[_0x280a65(0x2ec)][_0x280a65(0x3ea)](()=>this[_0x280a65(0x37e)]({'hovered':!0x1})));}[_0x51d41b(0x37e)](_0x2a4fc3){const _0x1d02c0=_0x51d41b;var _0x529561,_0x1cd423,_0x569a76,_0x294a1a,_0xf8ca8f,_0x4531e3;this[_0x1d02c0(0x253)]=(_0x529561=_0x2a4fc3[_0x1d02c0(0x4bc)])!=null?_0x529561:this[_0x1d02c0(0x253)],this[_0x1d02c0(0x356)]=(_0x1cd423=_0x2a4fc3[_0x1d02c0(0x374)])!=null?_0x1cd423:this[_0x1d02c0(0x356)],this[_0x1d02c0(0x1ca)]=(_0x569a76=_0x2a4fc3['range'])!=null?_0x569a76:this[_0x1d02c0(0x1ca)],this[_0x1d02c0(0x553)]=(_0x294a1a=_0x2a4fc3[_0x1d02c0(0x346)])!=null?_0x294a1a:this[_0x1d02c0(0x553)],this['_labelPosition']=(_0xf8ca8f=_0x2a4fc3['labelPosition'])!=null?_0xf8ca8f:this['_labelPosition'],this[_0x1d02c0(0x461)]=(_0x4531e3=_0x2a4fc3[_0x1d02c0(0x4d6)])!=null?_0x4531e3:this[_0x1d02c0(0x461)],this[_0x1d02c0(0x2af)]({'width':_0x2a4fc3[_0x1d02c0(0x50c)],'height':_0x2a4fc3['height']});}[_0x51d41b(0x2bc)](_0x5f1081){const _0x478be7=_0x51d41b,{row:_0x60a85c,column:_0x108393}=_0x5f1081;if(_0x60a85c>=this[_0x478be7(0x1ca)][_0x478be7(0x493)]&&_0x60a85c<=this['_range']['endRow']&&_0x108393>=this[_0x478be7(0x1ca)][_0x478be7(0x230)]&&_0x108393<=this[_0x478be7(0x1ca)][_0x478be7(0x40a)]){this[_0x478be7(0x37e)]({'hovered':!0x0});return;}this[_0x478be7(0x37e)]({'hovered':!0x1});}[_0x51d41b(0x26b)](_0x363ebc){return!0x1;}[_0x51d41b(0x2d2)](_0x49142d){const _0x4db2bb=_0x51d41b;_0x54d1da[_0x4db2bb(0x4d3)][_0x4db2bb(0x1da)](_0x49142d,{'width':this[_0x4db2bb(0x50c)],'height':this['height'],'strokeWidth':_0x1d5e35,'stroke':this[_0x4db2bb(0x253)],'evented':!0x1,'fill':this[_0x4db2bb(0x461)]}),this[_0x4db2bb(0x356)]&&(_0x49142d[_0x4db2bb(0x3fc)](),_0x49142d[_0x4db2bb(0x396)](0x1,0x0,0x0,0x1,this[_0x4db2bb(0x50c)],this['_labelPosition']===_0x4db2bb(0x27a)?0x0:-_0x122765),_0x5aab28[_0x4db2bb(0x1da)](_0x49142d,{'text':this[_0x4db2bb(0x553)],'color':this[_0x4db2bb(0x253)]}),_0x49142d[_0x4db2bb(0x1bb)]());}}var _0x38b7e7=Object['defineProperty'],_0x327d0c=Object[_0x51d41b(0x2b7)],_0x5702e4=(_0x501c2b,_0x3f09f8,_0x89295c,_0x4f2bef)=>{const _0x4612e2=_0x51d41b;for(var _0x1677c0=_0x4f2bef>0x1?void 0x0:_0x4f2bef?_0x327d0c(_0x3f09f8,_0x89295c):_0x3f09f8,_0x24c1ed=_0x501c2b[_0x4612e2(0x392)]-0x1,_0x1bcf39;_0x24c1ed>=0x0;_0x24c1ed--)(_0x1bcf39=_0x501c2b[_0x24c1ed])&&(_0x1677c0=(_0x4f2bef?_0x1bcf39(_0x3f09f8,_0x89295c,_0x1677c0):_0x1bcf39(_0x1677c0))||_0x1677c0);return _0x4f2bef&&_0x1677c0&&_0x38b7e7(_0x3f09f8,_0x89295c,_0x1677c0),_0x1677c0;},_0x19a496=(_0x114a59,_0x505374)=>(_0x803181,_0xb28c72)=>_0x505374(_0x803181,_0xb28c72,_0x114a59);const _0x37131b=0x1389;let _0x47d6dc=class extends _0x36d396[_0x51d41b(0x480)]{constructor(_0x475ae6,_0x5e5f0d,_0x122194,_0x23c4f0){const _0x35f846=_0x51d41b;super(),_0x55fd67(this,'_cursors',new Set()),_0x55fd67(this,'_lastPointer',null),(this[_0x35f846(0x4e4)]=_0x475ae6,this['_sheetSkeletonManagerService']=_0x5e5f0d,this['_collabCursorController']=_0x122194,this[_0x35f846(0x2b9)]=_0x23c4f0,this[_0x35f846(0x571)]());}[_0x51d41b(0x571)](){const _0x4cafe6=_0x51d41b;this[_0x4cafe6(0x304)][_0x4cafe6(0x491)]['pipe'](_0x547088[_0x4cafe6(0x5a4)](this['dispose$']),_0x547088['switchMap'](_0x569dd3=>{const _0x532ff2=_0x4cafe6;if(_0x569dd3){const _0x330211=_0x569dd3[_0x532ff2(0x269)];return _0x22cf47[_0x532ff2(0x548)](this[_0x532ff2(0x1a3)][_0x532ff2(0x45d)](this[_0x532ff2(0x4e4)][_0x532ff2(0x19b)]),this[_0x532ff2(0x2b9)][_0x532ff2(0x4eb)])[_0x532ff2(0x257)](_0x547088[_0x532ff2(0x565)](([_0x16f2b2,_0x2f2170])=>{const _0xf00d19=new Map();return _0x16f2b2['forEach']((_0x580369,_0x6e7df6)=>{const _0x40f428=_0x4682;if(_0x580369[_0x40f428(0x2cf)]===_0x330211){const _0x138330={..._0x580369};_0x138330[_0x40f428(0x4bc)]=_0x2f2170[_0x580369[_0x40f428(0x4bc)]],_0xf00d19[_0x40f428(0x27f)](_0x6e7df6,_0x138330);}}),{'skeleton':_0x569dd3,'cursors':_0xf00d19};}));}return _0x22cf47['of']({'skeleton':null,'cursors':new Map()});}))[_0x4cafe6(0x200)](({skeleton:_0x557ff6,cursors:_0x324b45})=>{const _0x54d268=_0x4cafe6;this[_0x54d268(0x220)](),_0x557ff6&&this[_0x54d268(0x555)](_0x557ff6,_0x324b45);}),this[_0x4cafe6(0x304)][_0x4cafe6(0x491)][_0x4cafe6(0x200)](_0x4b9ff6=>{const _0x1e93d2=_0x4cafe6;if(_0x4b9ff6==null)return;const {skeleton:_0x42d5cc}=_0x4b9ff6,{scene:_0x15c95d}=this[_0x1e93d2(0x4e4)];_0x15c95d[_0x1e93d2(0x55d)]['subscribeEvent'](_0x3179a3(_0x26c0c1=>{const _0x43adce=_0x1e93d2;var _0x490e5c,_0x4bba69;const {offsetX:_0x410bf7,offsetY:_0xf83bd3}=_0x26c0c1,{x:_0x26b5c4,y:_0x27cd77}=_0x15c95d[_0x43adce(0x52b)](_0x54d1da[_0x43adce(0x250)][_0x43adce(0x46a)]([_0x410bf7,_0xf83bd3])),{scaleX:_0x436752,scaleY:_0x38488b}=_0x15c95d[_0x43adce(0x329)](),_0x1c8260=_0x15c95d['getViewport'](_0x343608[_0x43adce(0x46b)][_0x43adce(0x534)]),_0x1de602=_0x15c95d[_0x43adce(0x4b2)](_0x54d1da[_0x43adce(0x250)][_0x43adce(0x46a)]([_0x26b5c4,_0x27cd77]),_0x1c8260),_0x546fcf=_0x42d5cc[_0x43adce(0x21a)](_0x410bf7,_0xf83bd3,_0x436752,_0x38488b,_0x1de602);((_0x490e5c=this[_0x43adce(0x435)])==null?void 0x0:_0x490e5c[_0x43adce(0x53f)])===_0x546fcf[_0x43adce(0x53f)]&&((_0x4bba69=this[_0x43adce(0x435)])==null?void 0x0:_0x4bba69[_0x43adce(0x489)])===_0x546fcf[_0x43adce(0x489)]||this[_0x43adce(0x504)]['forEach'](_0x51523f=>{const _0x9b9d98=_0x43adce;_0x51523f[_0x9b9d98(0x2bc)](_0x546fcf);});},0x64));});}[_0x51d41b(0x555)](_0x4c6159,_0x49456b){const _0x3b85ac=_0x51d41b;var _0x289868;const _0x1f2e22=(_0x289868=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x289868[_0x3b85ac(0x1b3)];if(!_0x1f2e22)return;const _0x5e0c54=this[_0x3b85ac(0x4c8)]();if(!_0x5e0c54)return;this[_0x3b85ac(0x504)][_0x3b85ac(0x1a9)](_0x7e8be1=>{const _0x2c0125=_0x3b85ac;_0x7e8be1[_0x2c0125(0x507)]();});const {scene:_0x130730}=_0x5e0c54,_0x1588be=_0x309a58(Array[_0x3b85ac(0x58d)](_0x49456b[_0x3b85ac(0x235)]()))[_0x3b85ac(0x565)](_0x406cd8=>{const _0x329573=_0x3b85ac,{color:_0x699893,range:_0x55c56c,name:_0x2b095a,selection:_0xdfb7ee,sheetID:_0x3d897e}=_0x406cd8,{startColumn:_0x4957f5,startRow:_0x27524d,endColumn:_0x1771f4,endRow:_0x484d50}=_0x55c56c,_0x2639f3=_0x343608[_0x329573(0x218)](_0x27524d,_0x4957f5,_0x130730,_0x1f2e22),_0x5b1e7c=_0x343608[_0x329573(0x218)](_0x484d50,_0x1771f4,_0x130730,_0x1f2e22),{columnHeaderHeightAndMarginTop:_0x231087}=_0x1f2e22,{startX:_0x1be374,startY:_0xc3b8a7}=_0x2639f3,{endX:_0x38fd03,endY:_0x52c8c1}=_0x5b1e7c,_0x2cbf7a=_0x38fd03-_0x1be374,_0x3ee324=_0x52c8c1-_0xc3b8a7,_0x25187b={'labelPosition':_0xc3b8a7-_0x231087>=_0x122765?_0x329573(0x436):_0x329573(0x27a),'sheetID':_0x3d897e,'range':_0x55c56c,'color':_0x699893,'name':_0x2b095a,'selection':_0xdfb7ee,'left':_0x1be374,'top':_0xc3b8a7,'width':_0x2cbf7a,'height':_0x3ee324,'evented':!0x1,'zIndex':_0x37131b};return new _0x21dc68(_0x2b095a,_0x25187b);});_0x130730[_0x3b85ac(0x541)](_0x1588be,_0x1b3e1b),this[_0x3b85ac(0x504)]=new Set(_0x1588be);}[_0x51d41b(0x220)](){const _0x2862ae=_0x51d41b;var _0x1f4ba1;(_0x1f4ba1=this[_0x2862ae(0x504)])==null||_0x1f4ba1[_0x2862ae(0x1a9)](_0x5d073c=>_0x5d073c[_0x2862ae(0x3cd)]());}['_getSheetObject'](){const _0x245775=_0x51d41b;return _0x343608[_0x245775(0x306)](this[_0x245775(0x4e4)][_0x245775(0x4b4)],this[_0x245775(0x4e4)]);}};_0x47d6dc=_0x5702e4([_0x19a496(0x1,_0x36d396[_0x51d41b(0x2ae)](_0x343608[_0x51d41b(0x3ee)])),_0x19a496(0x2,_0x36d396[_0x51d41b(0x2ae)](_0x566b79)),_0x19a496(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x21f)]))],_0x47d6dc);function _0x309a58(_0xb7985f){const _0x639f4b=_0x51d41b,_0x5a8aef=new Map();return _0xb7985f['forEach'](_0x306686=>{const _0x9df188=_0x4682;if(_0x5a8aef[_0x9df188(0x58b)](_0x306686['selection'])){const _0x4a22b6=_0x5a8aef['get'](_0x306686[_0x9df188(0x2b2)]);_0x4a22b6['name']+=',\x20'+_0x306686[_0x9df188(0x346)];}else _0x5a8aef[_0x9df188(0x27f)](_0x306686[_0x9df188(0x2b2)],_0x306686);}),Array[_0x639f4b(0x58d)](_0x5a8aef[_0x639f4b(0x235)]());}var _0xa5b5de=function(){const _0x493ad9=_0x51d41b;return _0xa5b5de=Object[_0x493ad9(0x219)]||function(_0x5dd564){const _0x27f393=_0x493ad9;for(var _0x2e659c,_0x44dd42=0x1,_0x2c0538=arguments[_0x27f393(0x392)];_0x44dd42<_0x2c0538;_0x44dd42++){_0x2e659c=arguments[_0x44dd42];for(var _0x23828b in _0x2e659c)Object[_0x27f393(0x1e4)][_0x27f393(0x3af)][_0x27f393(0x267)](_0x2e659c,_0x23828b)&&(_0x5dd564[_0x23828b]=_0x2e659c[_0x23828b]);}return _0x5dd564;},_0xa5b5de[_0x493ad9(0x476)](this,arguments);},_0x302be8=function(_0x4cd0b0,_0x144138){const _0x21acdd=_0x51d41b;var _0x4de0a8={};for(var _0x34a1e8 in _0x4cd0b0)Object[_0x21acdd(0x1e4)]['hasOwnProperty']['call'](_0x4cd0b0,_0x34a1e8)&&_0x144138[_0x21acdd(0x2a5)](_0x34a1e8)<0x0&&(_0x4de0a8[_0x34a1e8]=_0x4cd0b0[_0x34a1e8]);if(_0x4cd0b0!=null&&typeof Object[_0x21acdd(0x55a)]==_0x21acdd(0x386)){for(var _0x270d12=0x0,_0x34a1e8=Object[_0x21acdd(0x55a)](_0x4cd0b0);_0x270d12<_0x34a1e8[_0x21acdd(0x392)];_0x270d12++)_0x144138[_0x21acdd(0x2a5)](_0x34a1e8[_0x270d12])<0x0&&Object[_0x21acdd(0x1e4)][_0x21acdd(0x3d8)][_0x21acdd(0x267)](_0x4cd0b0,_0x34a1e8[_0x270d12])&&(_0x4de0a8[_0x34a1e8[_0x270d12]]=_0x4cd0b0[_0x34a1e8[_0x270d12]]);}return _0x4de0a8;},_0xa9974=_0x28fb9c[_0x51d41b(0x28b)](function(_0x2b8bd9,_0x2a0fa5){const _0x228ae1=_0x51d41b;var _0x72d80b=_0x2b8bd9[_0x228ae1(0x475)],_0x2d126f=_0x2b8bd9['id'],_0x2048a2=_0x2b8bd9[_0x228ae1(0x31c)],_0x497f15=_0x2b8bd9[_0x228ae1(0x38e)],_0x533473=_0x302be8(_0x2b8bd9,[_0x228ae1(0x475),'id',_0x228ae1(0x31c),'extend']),_0x3a9852=_0x228ae1(0x3fb)[_0x228ae1(0x1e6)](_0x2d126f,'\x20')['concat'](_0x2048a2||'')['trim'](),_0x2fe9c4=_0x28fb9c[_0x228ae1(0x508)]('_'[_0x228ae1(0x1e6)](_0x58a03a()));return _0x3334b0(_0x72d80b,''[_0x228ae1(0x1e6)](_0x2d126f),{'defIds':_0x72d80b['defIds'],'idSuffix':_0x2fe9c4['current']},_0xa5b5de({'ref':_0x2a0fa5,'className':_0x3a9852},_0x533473),_0x497f15);});function _0x3334b0(_0x12bb1e,_0x430267,_0x4da922,_0x5adaed,_0xfcdbbf){const _0x4249f5=_0x51d41b;return _0x28fb9c[_0x4249f5(0x4dd)](_0x12bb1e['tag'],_0xa5b5de(_0xa5b5de({'key':_0x430267},_0x1eeeba(_0x12bb1e,_0x4da922,_0xfcdbbf)),_0x5adaed),(_0x5ab46b(_0x12bb1e,_0x4da922)['children']||[])[_0x4249f5(0x565)](function(_0x146774,_0x5b15bc){const _0x8d2f76=_0x4249f5;return _0x3334b0(_0x146774,''[_0x8d2f76(0x1e6)](_0x430267,'-')[_0x8d2f76(0x1e6)](_0x12bb1e['tag'],'-')[_0x8d2f76(0x1e6)](_0x5b15bc),_0x4da922,void 0x0,_0xfcdbbf);}));}function _0x1eeeba(_0x5ee044,_0x459152,_0x593067){const _0x4c57fe=_0x51d41b;var _0x118922=_0xa5b5de({},_0x5ee044[_0x4c57fe(0x1e7)]);_0x593067!=null&&_0x593067[_0x4c57fe(0x478)]&&_0x118922[_0x4c57fe(0x229)]===_0x4c57fe(0x478)&&(_0x118922[_0x4c57fe(0x229)]=_0x593067['colorChannel1']);var _0x3a0e43=_0x459152[_0x4c57fe(0x33c)];return!_0x3a0e43||_0x3a0e43['length']===0x0||(_0x5ee044[_0x4c57fe(0x2d3)]==='use'&&_0x118922[_0x4c57fe(0x2a8)]&&(_0x118922[_0x4c57fe(0x2a8)]=_0x118922[_0x4c57fe(0x2a8)]+_0x459152['idSuffix']),Object[_0x4c57fe(0x57e)](_0x118922)[_0x4c57fe(0x1a9)](function(_0x324d62){const _0x25f911=_0x4c57fe;var _0x316c09=_0x324d62[0x0],_0x4a1fd2=_0x324d62[0x1];typeof _0x4a1fd2==_0x25f911(0x40e)&&(_0x118922[_0x316c09]=_0x4a1fd2['replace'](/url\(#(.*)\)/,'url(#$1'[_0x25f911(0x1e6)](_0x459152[_0x25f911(0x308)],')')));})),_0x118922;}function _0x5ab46b(_0x1f7acb,_0x460262){const _0x298e23=_0x51d41b;var _0x36b715,_0x5731eb=_0x460262[_0x298e23(0x33c)];return!_0x5731eb||_0x5731eb[_0x298e23(0x392)]===0x0?_0x1f7acb:_0x1f7acb[_0x298e23(0x2d3)]===_0x298e23(0x4b0)&&(!((_0x36b715=_0x1f7acb[_0x298e23(0x442)])===null||_0x36b715===void 0x0)&&_0x36b715[_0x298e23(0x392)])?_0xa5b5de(_0xa5b5de({},_0x1f7acb),{'children':_0x1f7acb[_0x298e23(0x442)]['map'](function(_0x37e6e2){const _0x288eda=_0x298e23;return typeof _0x37e6e2['attrs']['id']==_0x288eda(0x40e)&&_0x5731eb&&_0x5731eb['indexOf'](_0x37e6e2[_0x288eda(0x1e7)]['id'])>-0x1?_0xa5b5de(_0xa5b5de({},_0x37e6e2),{'attrs':_0xa5b5de(_0xa5b5de({},_0x37e6e2[_0x288eda(0x1e7)]),{'id':_0x37e6e2[_0x288eda(0x1e7)]['id']+_0x460262[_0x288eda(0x308)]})}):_0x37e6e2;})}):_0x1f7acb;}function _0x58a03a(){const _0x2db492=_0x51d41b;return Math['random']()[_0x2db492(0x240)](0x24)[_0x2db492(0x441)](0x2,0x8);}_0xa9974['displayName']='UniverIcon';var _0x36200d={'tag':_0x51d41b(0x47d),'attrs':{'fill':_0x51d41b(0x513),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x51d41b(0x2d4)},'children':[{'tag':'g','attrs':{'clipPath':_0x51d41b(0x506)},'children':[{'tag':_0x51d41b(0x4be),'attrs':{'stroke':_0x51d41b(0x4d5),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x51d41b(0x30a),'strokeLinejoin':_0x51d41b(0x30a),'strokeWidth':1.2}}]},{'tag':_0x51d41b(0x4b0),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x51d41b(0x451)},'children':[{'tag':'path','attrs':{'fill':_0x51d41b(0x46f),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0x53ab85=_0x28fb9c[_0x51d41b(0x28b)](function(_0x5395ff,_0x41c22e){const _0x2d1f7f=_0x51d41b;return _0x28fb9c[_0x2d1f7f(0x4dd)](_0xa9974,Object[_0x2d1f7f(0x219)]({},_0x5395ff,{'id':_0x2d1f7f(0x289),'ref':_0x41c22e,'icon':_0x36200d}));});_0x53ab85[_0x51d41b(0x1ad)]=_0x51d41b(0x4b8);var _0x2f13bf={'tag':'svg','attrs':{'fill':_0x51d41b(0x513),'viewBox':_0x51d41b(0x582),'width':_0x51d41b(0x2d4),'height':_0x51d41b(0x2d4)},'children':[{'tag':'g','attrs':{'clipPath':_0x51d41b(0x299)},'children':[{'tag':_0x51d41b(0x4be),'attrs':{'stroke':_0x51d41b(0x4d5),'d':_0x51d41b(0x226),'strokeLinecap':_0x51d41b(0x30a),'strokeLinejoin':_0x51d41b(0x30a),'strokeWidth':1.2}}]},{'tag':_0x51d41b(0x4b0),'attrs':{},'children':[{'tag':_0x51d41b(0x4ad),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x51d41b(0x4be),'attrs':{'fill':_0x51d41b(0x46f),'d':_0x51d41b(0x2b6),'transform':_0x51d41b(0x209)}}]}]}],'defIds':[_0x51d41b(0x3c8)]},_0x9b7afe=_0x28fb9c[_0x51d41b(0x28b)](function(_0x253b53,_0x280bb4){const _0x7764b7=_0x51d41b;return _0x28fb9c['createElement'](_0xa9974,Object['assign']({},_0x253b53,{'id':_0x7764b7(0x239),'ref':_0x280bb4,'icon':_0x2f13bf}));});_0x9b7afe['displayName']='OnLineSingle';const _0x219ac6={'onlineStatusIcon':_0x51d41b(0x413),'onlineStatusTitle':_0x51d41b(0x4e6),'onlineStatus':_0x51d41b(0x5a6),'online':_0x51d41b(0x56f),'offline':'univer-offline'};function _0x2dceda(_0x294f7a){const _0x252156=_0x51d41b;switch(_0x294f7a){case _0xcb53f5[_0x252156(0x588)]:return _0x252156(0x580);case _0xcb53f5[_0x252156(0x3b3)]:return _0x252156(0x294);case _0xcb53f5[_0x252156(0x1f8)]:return _0x252156(0x4d7);case _0xcb53f5[_0x252156(0x4a9)]:return _0x252156(0x4d1);case _0xcb53f5[_0x252156(0x4ef)]:case _0xcb53f5[_0x252156(0x515)]:case _0xcb53f5['AWAITING_WITH_PENDING']:return _0x252156(0x211);case _0xcb53f5[_0x252156(0x36f)]:return'collabStatus.synced';}}function _0xc902da(_0x3bbc6d){const _0x2f4655=_0x51d41b,{status$:_0x5d8fe9}=_0x3bbc6d,_0x2bf60e=_0x455671[_0x2f4655(0x43b)](_0x5d8fe9,_0xcb53f5[_0x2f4655(0x4a9)]),_0x4a3377=_0x36d396[_0x2f4655(0x270)](_0x36d396['LocaleService']),_0x1d8eef=_0x36d396[_0x2f4655(0x270)](_0x59ce0d[_0x2f4655(0x285)]),_0x5be24a=_0x2bf60e!==_0xcb53f5['OFFLINE'],_0x660ff4=_0x4a3377['t'](_0x2dceda(_0x2bf60e)),_0x172ce8=_0x30ff44(_0x219ac6[_0x2f4655(0x354)],{[_0x219ac6['online']]:_0x5be24a,[_0x219ac6[_0x2f4655(0x1b9)]]:!_0x5be24a}),_0x40e92b=_0x5be24a?_0x28fb9c['createElement'](_0x9b7afe,null):_0x28fb9c['createElement'](_0x53ab85,null),_0x523d20=_0x28fb9c['useCallback'](()=>{const _0x2af022=_0x2f4655;_0x5be24a||_0x1d8eef[_0x2af022(0x1df)]();},[_0x5be24a,_0x1d8eef]);function _0x49ed29(){const _0x592b1b=_0x2f4655;return _0x28fb9c[_0x592b1b(0x4dd)]('div',{'className':_0x172ce8,'onClick':_0x523d20},_0x28fb9c[_0x592b1b(0x4dd)](_0x592b1b(0x18f),{'className':_0x219ac6[_0x592b1b(0x30f)]},_0x40e92b),_0x28fb9c['createElement']('div',{'className':_0x219ac6['onlineStatusTitle']},_0x660ff4));}return _0x5be24a?_0x49ed29():_0x28fb9c[_0x2f4655(0x4dd)](_0x53e1d0[_0x2f4655(0x449)],{'title':_0x4a3377['t'](_0x2f4655(0x512))},_0x49ed29());}var _0x2de791=Object[_0x51d41b(0x215)],_0x5eb9c5=Object[_0x51d41b(0x2b7)],_0x24733f=(_0x4d0e18,_0x126c0d,_0x4dde6a,_0x2ff2bd)=>{for(var _0x31c15c=_0x2ff2bd>0x1?void 0x0:_0x2ff2bd?_0x5eb9c5(_0x126c0d,_0x4dde6a):_0x126c0d,_0x126a9a=_0x4d0e18['length']-0x1,_0x119e87;_0x126a9a>=0x0;_0x126a9a--)(_0x119e87=_0x4d0e18[_0x126a9a])&&(_0x31c15c=(_0x2ff2bd?_0x119e87(_0x126c0d,_0x4dde6a,_0x31c15c):_0x119e87(_0x31c15c))||_0x31c15c);return _0x2ff2bd&&_0x31c15c&&_0x2de791(_0x126c0d,_0x4dde6a,_0x31c15c),_0x31c15c;},_0x45b50d=(_0x1ece68,_0x57886d)=>(_0x5100f2,_0x358cbd)=>_0x57886d(_0x5100f2,_0x358cbd,_0x1ece68);_0x59ce0d[_0x51d41b(0x452)]=class extends _0x36d396['Disposable']{constructor(_0x18a336,_0x4bf3c5,_0x406f70,_0x575dd2){const _0x3e2359=_0x51d41b;super(),_0x55fd67(this,_0x3e2359(0x378),new _0x22cf47[(_0x3e2359(0x482))](_0xcb53f5['NOT_COLLAB'])),(this[_0x3e2359(0x273)]=_0x18a336,this[_0x3e2359(0x3d4)]=_0x4bf3c5,this[_0x3e2359(0x2b0)]=_0x406f70,this[_0x3e2359(0x1c9)]=_0x575dd2,this[_0x3e2359(0x249)](),this[_0x3e2359(0x3b9)]());}[_0x51d41b(0x3b9)](){const _0x542eb7=_0x51d41b;this[_0x542eb7(0x595)](this[_0x542eb7(0x273)][_0x542eb7(0x201)][_0x542eb7(0x257)](_0x22cf47[_0x542eb7(0x40c)](()=>{const _0x32ce01=_0x542eb7,_0x5464e9=this[_0x32ce01(0x273)][_0x32ce01(0x3ce)]();return _0x5464e9?this[_0x32ce01(0x1c9)]['getCollabEntity$'](_0x5464e9[_0x32ce01(0x4ce)]()):_0x22cf47['of'](null);}),_0x22cf47[_0x542eb7(0x40c)](_0xa2b789=>_0xa2b789?_0xa2b789[_0x542eb7(0x2a3)]:_0x22cf47['of'](_0xcb53f5[_0x542eb7(0x4a9)])))[_0x542eb7(0x200)](_0x10250e=>{this['_status$']['next'](_0x10250e);}));}[_0x51d41b(0x249)](){const _0x28b265=_0x51d41b;this[_0x28b265(0x595)](this[_0x28b265(0x3d4)][_0x28b265(0x196)](_0x455671[_0x28b265(0x33a)]['HEADER_MENU'],()=>_0x36d396[_0x28b265(0x39b)](_0x401c32({'status$':this['_status$'][_0x28b265(0x544)]()}),this[_0x28b265(0x2b0)])));}},_0x59ce0d['DesktopCollaborationStatusDisplayController']=_0x24733f([_0x45b50d(0x0,_0x36d396[_0x51d41b(0x2c5)]),_0x45b50d(0x1,_0x455671[_0x51d41b(0x575)]),_0x45b50d(0x2,_0x36d396[_0x51d41b(0x2ae)](_0x36d396['Injector'])),_0x45b50d(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d['CollaborationController']))],_0x59ce0d[_0x51d41b(0x452)]);function _0x401c32(_0x1dd231){const {status$:_0x1be878}=_0x1dd231;return function(){const _0xb6619b=_0x4682;return _0x28fb9c[_0xb6619b(0x4dd)](_0xc902da,{'status$':_0x1be878});};}const _0x56d70c=_0x36d396[_0x51d41b(0x494)](_0x51d41b(0x549));var _0x4b78b1=Object[_0x51d41b(0x215)],_0x3ce1ea=Object[_0x51d41b(0x2b7)],_0x2f1e9e=(_0x32568f,_0x44062e,_0x21a0da,_0x31ee9d)=>{const _0x311293=_0x51d41b;for(var _0x3a419b=_0x31ee9d>0x1?void 0x0:_0x31ee9d?_0x3ce1ea(_0x44062e,_0x21a0da):_0x44062e,_0xe7669c=_0x32568f[_0x311293(0x392)]-0x1,_0x1b6ac7;_0xe7669c>=0x0;_0xe7669c--)(_0x1b6ac7=_0x32568f[_0xe7669c])&&(_0x3a419b=(_0x31ee9d?_0x1b6ac7(_0x44062e,_0x21a0da,_0x3a419b):_0x1b6ac7(_0x3a419b))||_0x3a419b);return _0x31ee9d&&_0x3a419b&&_0x4b78b1(_0x44062e,_0x21a0da,_0x3a419b),_0x3a419b;},_0x19edeb=(_0x5269e3,_0x28b990)=>(_0x3c33ef,_0x9570b4)=>_0x28b990(_0x3c33ef,_0x9570b4,_0x5269e3);_0x59ce0d[_0x51d41b(0x4a6)]=class extends _0x36d396[_0x51d41b(0x480)]{constructor(_0x4ce6b0,_0x481d44,_0x554697,_0x3ff9cf,_0x3d5c36,_0x169033){const _0x3b144c=_0x51d41b;super(),this['_urlService']=_0x4ce6b0,this['_logService']=_0x481d44,this[_0x3b144c(0x561)]=_0x554697,this[_0x3b144c(0x552)]=_0x3ff9cf,this['_snapshotService']=_0x3d5c36,_0x169033?_0x169033==null||_0x169033['whenReady']()[_0x3b144c(0x59d)](()=>this['_init']()):(this[_0x3b144c(0x545)][_0x3b144c(0x45b)](_0x3b144c(0x3f4),_0x3b144c(0x41a)),this['_init']());}async[_0x51d41b(0x571)](){const _0x2028a4=_0x51d41b,_0x5e3fa8=this['_urlService'][_0x2028a4(0x1d3)](_0x2028a4(0x4b4)),_0x39161e=this[_0x2028a4(0x254)][_0x2028a4(0x1d3)](_0x2028a4(0x2cb));if(!_0x5e3fa8||!_0x39161e){this[_0x2028a4(0x545)][_0x2028a4(0x45b)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x39161e)){case _0x54451c[_0x2028a4(0x1d8)]:{const _0x1ad079=await this[_0x2028a4(0x424)](_0x5e3fa8);this[_0x2028a4(0x2d5)](_0x1ad079);break;}case _0x54451c['UNIVER_DOC']:{await this[_0x2028a4(0x22b)](_0x5e3fa8);break;}default:{this[_0x2028a4(0x545)][_0x2028a4(0x405)](_0x2028a4(0x3f4),_0x2028a4(0x373));break;}}}async[_0x51d41b(0x2d5)](_0x5b6bc2){const _0x282e2d=_0x51d41b;await this['_updateSubUnitFromURLParams'](_0x5b6bc2),_0x5b6bc2[_0x282e2d(0x3a6)][_0x282e2d(0x257)](_0x22cf47['takeUntil'](this[_0x282e2d(0x1b2)]))[_0x282e2d(0x200)](_0x2ec7d0=>{const _0x3510c1=_0x282e2d;_0x2ec7d0&&this[_0x3510c1(0x2df)](_0x2ec7d0);}),this[_0x282e2d(0x254)]['urlChange$'][_0x282e2d(0x257)](_0x22cf47[_0x282e2d(0x5a4)](this['dispose$']))[_0x282e2d(0x200)](()=>this[_0x282e2d(0x395)](_0x5b6bc2));}[_0x51d41b(0x2df)](_0x4937d5,_0x2dd53b=!0x1){const _0x348cc6=_0x51d41b,_0x13993f=this[_0x348cc6(0x254)][_0x348cc6(0x1d3)]('subunit');_0x4937d5[_0x348cc6(0x414)]()!==_0x13993f&&this[_0x348cc6(0x254)][_0x348cc6(0x444)](_0x348cc6(0x1ac),_0x4937d5[_0x348cc6(0x414)](),_0x2dd53b);}async[_0x51d41b(0x395)](_0x2a2487){const _0x2f8f42=_0x51d41b;var _0x1f5282;const _0x37d553=this[_0x2f8f42(0x254)][_0x2f8f42(0x1d3)]('subunit');if(!_0x37d553||!_0x2a2487['getSheetBySheetId'](_0x37d553)){const _0x463e90=_0x2a2487['getUnhiddenWorksheets']()[0x0],_0x581f64=_0x2a2487[_0x2f8f42(0x24f)](_0x463e90);if(!_0x581f64)return;this[_0x2f8f42(0x2df)](_0x581f64,!0x0),await this[_0x2f8f42(0x561)][_0x2f8f42(0x4d0)](_0xdbe912[_0x2f8f42(0x53a)]['id'],{'unitId':_0x2a2487[_0x2f8f42(0x4ce)](),'subUnitId':_0x463e90});return;}((_0x1f5282=_0x2a2487['getActiveSheet']())==null?void 0x0:_0x1f5282['getSheetId']())!==_0x37d553&&await this['_commandService'][_0x2f8f42(0x4d0)](_0xdbe912[_0x2f8f42(0x53a)]['id'],{'unitId':_0x2a2487[_0x2f8f42(0x4ce)](),'subUnitId':_0x37d553});}async[_0x51d41b(0x424)](_0x2bdac9){const _0x3a7e14=_0x51d41b;let _0x59ff81=0x0;const _0x58af5f=await this[_0x3a7e14(0x552)][_0x3a7e14(0x335)](_0x2bdac9);return _0x58af5f&&(_0x58af5f[_0x3a7e14(0x523)]||_0x58af5f[_0x3a7e14(0x533)]['length']!==0x0)&&(_0x59ff81=_0x58af5f['rev']),_0x59ff81===0x0&&this[_0x3a7e14(0x545)][_0x3a7e14(0x45b)]('[DataLoaderController]',_0x3a7e14(0x2f5)),this[_0x3a7e14(0x5a9)][_0x3a7e14(0x2e8)](_0x2bdac9,_0x59ff81);}async[_0x51d41b(0x22b)](_0x533651){const _0x5bca69=_0x51d41b;let _0x498a66=0x0;const _0x3b9779=await this[_0x5bca69(0x552)][_0x5bca69(0x335)](_0x533651);return _0x3b9779&&(_0x3b9779[_0x5bca69(0x523)]||_0x3b9779['mutations']['length']!==0x0)&&(_0x498a66=_0x3b9779[_0x5bca69(0x4cc)]),_0x498a66===0x0&&this['_logService'][_0x5bca69(0x45b)](_0x5bca69(0x3f4),_0x5bca69(0x2f5)),this[_0x5bca69(0x5a9)][_0x5bca69(0x27c)](_0x533651,_0x498a66);}},_0x59ce0d[_0x51d41b(0x4a6)]=_0x2f1e9e([_0x36d396['OnLifecycle'](_0x36d396['LifecycleStages'][_0x51d41b(0x4e8)],_0x59ce0d[_0x51d41b(0x4a6)]),_0x19edeb(0x0,_0x56d70c),_0x19edeb(0x1,_0x36d396['ILogService']),_0x19edeb(0x2,_0x36d396['ICommandService']),_0x19edeb(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x434)])),_0x19edeb(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x346629['SnapshotService'])),_0x19edeb(0x5,_0x36d396[_0x51d41b(0x43f)](_0x5badd8['IRemoteInstanceService']))],_0x59ce0d[_0x51d41b(0x4a6)]);var _0x426673=Object[_0x51d41b(0x215)],_0x1aeb69=Object[_0x51d41b(0x2b7)],_0x290f9e=(_0x4fc9d1,_0x2adb18,_0x59e8e4,_0x3f8e9c)=>{const _0x12d859=_0x51d41b;for(var _0x4618c3=_0x3f8e9c>0x1?void 0x0:_0x3f8e9c?_0x1aeb69(_0x2adb18,_0x59e8e4):_0x2adb18,_0x3bab89=_0x4fc9d1[_0x12d859(0x392)]-0x1,_0x34cbf6;_0x3bab89>=0x0;_0x3bab89--)(_0x34cbf6=_0x4fc9d1[_0x3bab89])&&(_0x4618c3=(_0x3f8e9c?_0x34cbf6(_0x2adb18,_0x59e8e4,_0x4618c3):_0x34cbf6(_0x4618c3))||_0x4618c3);return _0x3f8e9c&&_0x4618c3&&_0x426673(_0x2adb18,_0x59e8e4,_0x4618c3),_0x4618c3;},_0x597258=(_0x5b16fc,_0x4cd7f1)=>(_0x271a8f,_0xaf0021)=>_0x4cd7f1(_0x271a8f,_0xaf0021,_0x5b16fc);const _0x1fda7c=_0x51d41b(0x238),_0x11f8d9='Univer';let _0x3b02a7=class extends _0x36d396[_0x51d41b(0x4f0)]{constructor(_0x11dd5d,_0xe94c41){const _0x47a403=_0x51d41b;super(),this[_0x47a403(0x273)]=_0x11dd5d,this[_0x47a403(0x448)]=_0xe94c41,this[_0x47a403(0x571)]();}[_0x51d41b(0x571)](){const _0x99784c=_0x51d41b;this[_0x99784c(0x595)](_0x36d396['toDisposable'](this[_0x99784c(0x273)]['focused$'][_0x99784c(0x200)](()=>{const _0x5914d8=_0x99784c;var _0x540172;const _0xf8f735=this[_0x5914d8(0x273)][_0x5914d8(0x3ce)]();let _0x29253f=(_0x540172=this[_0x5914d8(0x448)][_0x5914d8(0x1a6)](_0x1fda7c))!=null?_0x540172:_0x11f8d9;_0xf8f735 instanceof _0x36d396['Workbook']&&(_0x29253f=_0xf8f735[_0x5914d8(0x346)]),document[_0x5914d8(0x261)]=_0x29253f;})));}};_0x3b02a7=_0x290f9e([_0x36d396['OnLifecycle'](_0x36d396['LifecycleStages'][_0x51d41b(0x3cb)],_0x3b02a7),_0x597258(0x0,_0x36d396[_0x51d41b(0x2c5)]),_0x597258(0x1,_0x36d396[_0x51d41b(0x511)])],_0x3b02a7);var _0x1d8afb=Object['defineProperty'],_0x573777=Object['getOwnPropertyDescriptor'],_0x34fab1=(_0x118e22,_0x392054,_0x343924,_0x5806ca)=>{const _0x103fa3=_0x51d41b;for(var _0x200848=_0x5806ca>0x1?void 0x0:_0x5806ca?_0x573777(_0x392054,_0x343924):_0x392054,_0x1d068c=_0x118e22[_0x103fa3(0x392)]-0x1,_0x4db511;_0x1d068c>=0x0;_0x1d068c--)(_0x4db511=_0x118e22[_0x1d068c])&&(_0x200848=(_0x5806ca?_0x4db511(_0x392054,_0x343924,_0x200848):_0x4db511(_0x200848))||_0x200848);return _0x5806ca&&_0x200848&&_0x1d8afb(_0x392054,_0x343924,_0x200848),_0x200848;},_0x121c3a=(_0x2df711,_0x5ecd2a)=>(_0x5575e5,_0x31d84d)=>_0x5ecd2a(_0x5575e5,_0x31d84d,_0x2df711);_0x59ce0d[_0x51d41b(0x53d)]=class{constructor(_0xf8991c,_0x4890b4){const _0x59b774=_0x51d41b;this[_0x59b774(0x448)]=_0xf8991c,this[_0x59b774(0x463)]=_0x4890b4;}async[_0x51d41b(0x3f7)](_0x263759,_0x1defb2){const _0x5c076e=_0x51d41b;var _0x25cf59;const {unitID:_0x22dad6,type:_0xcc3768,revision:_0x5e3318=0x0}=_0x1defb2,_0x1687a4=this[_0x5c076e(0x302)]()+'/'+_0xcc3768+'/unit/'+_0x22dad6+'/rev/'+_0x5e3318,_0x711e98=(await this[_0x5c076e(0x463)]['get'](_0x1687a4))['body'],_0xdbe65b=(_0x25cf59=_0x711e98[_0x5c076e(0x56a)])==null?void 0x0:_0x25cf59['workbook'];if(_0xdbe65b){const _0xe39029=_0xdbe65b==null?void 0x0:_0xdbe65b[_0x5c076e(0x3b0)],_0x56b89d=_0x346629['textEncoder'][_0x5c076e(0x2cc)](_0x346629[_0x5c076e(0x205)](_0xe39029));_0xdbe65b[_0x5c076e(0x3b0)]=_0x56b89d,Object[_0x5c076e(0x57e)](_0xdbe65b[_0x5c076e(0x407)])[_0x5c076e(0x1a9)](([,_0x3ee12c])=>{const _0x2ddc67=_0x5c076e,_0x4da2f4=_0x3ee12c[_0x2ddc67(0x3b0)],_0x5460fc=_0x346629[_0x2ddc67(0x194)][_0x2ddc67(0x2cc)](_0x346629[_0x2ddc67(0x205)](_0x4da2f4));_0x3ee12c['originalMeta']=_0x5460fc;});}return _0x711e98;}async[_0x51d41b(0x26f)](_0x2936c9,_0x170f59){const _0x250f45=_0x51d41b,{unitID:_0x230e22,type:_0x1d66f9,blockID:_0x40bad3}=_0x170f59,_0x14ea09=this['_getAPIPrefix']()+'/'+_0x1d66f9+_0x250f45(0x33f)+_0x230e22+_0x250f45(0x317)+_0x40bad3;return(await this[_0x250f45(0x463)][_0x250f45(0x58c)](_0x14ea09))['body'];}async[_0x51d41b(0x2fd)](_0x49cfeb,_0x5db543){const _0x3cb929=_0x51d41b,{unitID:_0x115a2c,type:_0x383598,from:_0x3ff438,to:_0x4c4d81}=_0x5db543,_0x47a162=this['_getAPIPrefix']()+'/'+_0x383598+'/unit/'+_0x115a2c+_0x3cb929(0x576)+_0x3ff438+'&to='+_0x4c4d81;return(await this['_httpService'][_0x3cb929(0x58c)](_0x47a162))[_0x3cb929(0x283)];}['_getSnapshotAPIPrefix'](){const _0x47104e=_0x51d41b;var _0x1ce5a1;return(_0x1ce5a1=this[_0x47104e(0x448)][_0x47104e(0x1a6)](_0x4ad76f))!=null?_0x1ce5a1:this[_0x47104e(0x234)]();}[_0x51d41b(0x234)](){const _0x159b1e=_0x51d41b;var _0x151c3a;return(_0x151c3a=this[_0x159b1e(0x448)][_0x159b1e(0x1a6)](_0x3ee3ce))!=null?_0x151c3a:_0x3fad9d;}async[_0x51d41b(0x486)](_0x21b3db,_0x2f7d2a){const _0x3e6ca0=_0x51d41b,_0x2e55ed='/universer-api/snapshot/'+_0x2f7d2a[_0x3e6ca0(0x2cb)]+_0x3e6ca0(0x33f)+_0x2f7d2a[_0x3e6ca0(0x35f)]+_0x3e6ca0(0x550);return(await this['_httpService'][_0x3e6ca0(0x58c)](_0x2e55ed,{'params':{'resourceId':JSON[_0x3e6ca0(0x54a)](_0x2f7d2a[_0x3e6ca0(0x344)])}}))[_0x3e6ca0(0x283)];}[_0x51d41b(0x1c5)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x3da828=_0x51d41b;throw new Error(_0x3da828(0x3a8));}[_0x51d41b(0x499)](){const _0x57ad8d=_0x51d41b;throw new Error(_0x57ad8d(0x3a8));}},_0x59ce0d[_0x51d41b(0x53d)]=_0x34fab1([_0x121c3a(0x0,_0x36d396[_0x51d41b(0x511)]),_0x121c3a(0x1,_0x36d396[_0x51d41b(0x2ae)](_0x3d1d50[_0x51d41b(0x2e6)]))],_0x59ce0d[_0x51d41b(0x53d)]);var _0x52d43d=Object[_0x51d41b(0x215)],_0x15fdd7=Object[_0x51d41b(0x2b7)],_0x360f6e=(_0x21c046,_0x560e48,_0xd81468,_0xde42c7)=>{const _0xf28dc9=_0x51d41b;for(var _0x3b1e0d=_0xde42c7>0x1?void 0x0:_0xde42c7?_0x15fdd7(_0x560e48,_0xd81468):_0x560e48,_0x5be30c=_0x21c046[_0xf28dc9(0x392)]-0x1,_0x121494;_0x5be30c>=0x0;_0x5be30c--)(_0x121494=_0x21c046[_0x5be30c])&&(_0x3b1e0d=(_0xde42c7?_0x121494(_0x560e48,_0xd81468,_0x3b1e0d):_0x121494(_0x3b1e0d))||_0x3b1e0d);return _0xde42c7&&_0x3b1e0d&&_0x52d43d(_0x560e48,_0xd81468,_0x3b1e0d),_0x3b1e0d;},_0x4a5eb8=(_0x4cb172,_0x41c816)=>(_0xe20149,_0x1af2b5)=>_0x41c816(_0xe20149,_0x1af2b5,_0x4cb172);let _0xfd6590=class extends _0x36d396[_0x51d41b(0x430)]{constructor(_0x5377e1,_0x2c883e,_0x23c38b,_0x4976b,_0x48a77a){const _0x32f8d0=_0x51d41b;super(_0x5377e1,_0x2c883e,_0x23c38b),this[_0x32f8d0(0x376)]=_0x4976b,this[_0x32f8d0(0x545)]=_0x48a77a;}[_0x51d41b(0x39a)](_0x5d112a,_0x31f72b){const _0x2b2a41=_0x51d41b,_0x1961cd=this['_getUndoStack'](_0x5d112a);if(_0x1961cd)try{const _0x55d7a8=this['_transformStack'](_0x1961cd,_0x31f72b);this[_0x2b2a41(0x379)](_0x5d112a,_0x55d7a8);}catch(_0x3e8f4e){this[_0x2b2a41(0x545)]['error']('[CollaborationUndoRedoService]',_0x3e8f4e),this[_0x2b2a41(0x334)](_0x5d112a);}const _0x30d410=this[_0x2b2a41(0x278)](_0x5d112a);if(_0x30d410)try{const _0x5551bb=this[_0x2b2a41(0x38c)](_0x30d410,_0x31f72b);this[_0x2b2a41(0x35d)](_0x5d112a,_0x5551bb);}catch(_0xc9d20f){this[_0x2b2a41(0x545)][_0x2b2a41(0x405)](_0xc9d20f),this['_clearRedo'](_0x5d112a);}}['_clearUndo'](_0x59d08e){const _0x10be96=_0x51d41b,_0x5a31dc=this[_0x10be96(0x537)](_0x59d08e);_0x5a31dc&&(_0x5a31dc[_0x10be96(0x392)]=0x0,this[_0x10be96(0x313)]());}[_0x51d41b(0x4e7)](_0x3928c1){const _0x30e4a4=_0x51d41b,_0x5542fb=this[_0x30e4a4(0x278)](_0x3928c1);_0x5542fb&&(_0x5542fb[_0x30e4a4(0x392)]=0x0,this[_0x30e4a4(0x313)]());}[_0x51d41b(0x379)](_0x26828a,_0x2c7634){const _0x35aa40=_0x51d41b;this['_undoStacks'][_0x35aa40(0x27f)](_0x26828a,_0x2c7634),this[_0x35aa40(0x313)]();}[_0x51d41b(0x35d)](_0x16e856,_0x15cd6b){const _0x32d605=_0x51d41b;this[_0x32d605(0x203)][_0x32d605(0x27f)](_0x16e856,_0x15cd6b),this[_0x32d605(0x313)]();}[_0x51d41b(0x38c)](_0x4d1e3e,_0x30ce11){const _0x4f14b9=_0x51d41b,_0x27279c=[];let _0x44337c=_0x30ce11,_0x2fd5dc=_0x30ce11;for(let _0x56b58c=_0x4d1e3e['length']-0x1;_0x56b58c>=0x0;_0x56b58c--){const {unitID:_0x27c1d8,undoMutations:_0x39058a,redoMutations:_0x236101}=_0x4d1e3e[_0x56b58c],_0x2aeb02=this[_0x4f14b9(0x376)][_0x4f14b9(0x26e)](_0x44337c,_0x39058a),_0x54a328=this[_0x4f14b9(0x376)]['transformMutationsWithChangeset'](_0x2fd5dc,_0x236101);if(_0x346629['isTransformMutationsWithChangesetFailure'](_0x2aeb02)||_0x346629[_0x4f14b9(0x4ac)](_0x54a328)){this[_0x4f14b9(0x545)][_0x4f14b9(0x405)](_0x4f14b9(0x428),_0x4f14b9(0x4ff),_0x2aeb02,_0x54a328);break;}_0x44337c=_0x2aeb02['c1Prime'],_0x2fd5dc=_0x54a328[_0x4f14b9(0x37c)],_0x27279c[_0x4f14b9(0x3cf)]({'unitID':_0x27c1d8,'undoMutations':_0x2aeb02[_0x4f14b9(0x4b5)],'redoMutations':_0x54a328[_0x4f14b9(0x4b5)]});}return _0x27279c[_0x4f14b9(0x497)]();}};_0xfd6590=_0x360f6e([_0x4a5eb8(0x0,_0x36d396[_0x51d41b(0x2c5)]),_0x4a5eb8(0x1,_0x36d396[_0x51d41b(0x1d5)]),_0x4a5eb8(0x2,_0x36d396[_0x51d41b(0x34e)]),_0x4a5eb8(0x3,_0x346629[_0x51d41b(0x213)]),_0x4a5eb8(0x4,_0x36d396[_0x51d41b(0x495)])],_0xfd6590);class _0x161740 extends _0x36d396[_0x51d41b(0x480)]{constructor(){const _0x202340=_0x51d41b;super(),_0x55fd67(this,_0x202340(0x2e2)),this[_0x202340(0x2e2)]=_0x22cf47[_0x202340(0x2ea)](window,_0x202340(0x291))[_0x202340(0x257)](_0x22cf47['takeUntil'](this['dispose$']),_0x22cf47[_0x202340(0x566)](0x1),_0x22cf47[_0x202340(0x2be)](void 0x0));}[_0x51d41b(0x444)](_0x1dc77d,_0x1c4092,_0x3756c5=!0x1){const _0x4faa8f=_0x51d41b,_0xb8c591=new URL(window[_0x4faa8f(0x57f)]['href']);_0xb8c591[_0x4faa8f(0x190)][_0x4faa8f(0x27f)](_0x1dc77d,_0x1c4092),_0x3756c5?window[_0x4faa8f(0x3d0)]['replaceState']('','',_0xb8c591[_0x4faa8f(0x240)]()):window[_0x4faa8f(0x3d0)]['pushState']('','',_0xb8c591[_0x4faa8f(0x240)]());}[_0x51d41b(0x336)](_0x26bf11,_0x525eab=!0x1){const _0x3e97d9=_0x51d41b,_0x52ddcd=new URL(window[_0x3e97d9(0x57f)][_0x3e97d9(0x23a)]);_0x52ddcd[_0x3e97d9(0x190)][_0x3e97d9(0x560)](_0x26bf11),_0x525eab?window['history'][_0x3e97d9(0x3c1)]('','',_0x52ddcd[_0x3e97d9(0x240)]()):window['history'][_0x3e97d9(0x454)]('','',_0x52ddcd[_0x3e97d9(0x240)]());}[_0x51d41b(0x1d3)](_0x19f356){const _0xc5c2f1=_0x51d41b;var _0xc369fc;return(_0xc369fc=new URL(window[_0xc5c2f1(0x57f)][_0xc5c2f1(0x23a)])[_0xc5c2f1(0x190)][_0xc5c2f1(0x58c)](_0x19f356))!=null?_0xc369fc:void 0x0;}}const _0x2196c7=_0x51d41b(0x40d),_0x26adf6=_0x51d41b(0x275),_0x19a34b=_0x51d41b(0x567),_0x42126b=0x6,_0x13d6fb=1.5,_0x10d324=0x4,_0x291f02=1.5,_0x490fff=_0x51d41b(0x29a);class _0x4cd564{constructor(_0x5b7454,_0x249123,_0x4a3058,_0x4ccdde){const _0x15ccbb=_0x51d41b;_0x55fd67(this,_0x15ccbb(0x4ae),[]),_0x55fd67(this,'_anchor',null),_0x55fd67(this,'_textBubble',null),_0x55fd67(this,_0x15ccbb(0x437),null),_0x55fd67(this,_0x15ccbb(0x56e),null),_0x55fd67(this,_0x15ccbb(0x301),null),(this[_0x15ccbb(0x327)]=_0x5b7454,this['_scene']=_0x249123,this[_0x15ccbb(0x1fd)]=_0x4a3058,this['_document']=_0x4ccdde,this[_0x15ccbb(0x59a)]());}set[_0x51d41b(0x59b)](_0x47d3c8){const _0x565271=_0x51d41b;_0x47d3c8?(this[_0x565271(0x437)]&&this[_0x565271(0x437)]['hide'](),this[_0x565271(0x2f8)]&&this[_0x565271(0x2f8)][_0x565271(0x3c3)]()):(this['_anchorDot']&&this[_0x565271(0x437)][_0x565271(0x3c3)](),this[_0x565271(0x2f8)]&&this[_0x565271(0x2f8)][_0x565271(0x1b4)]());}['dispose'](){const _0x3de57a=_0x51d41b;for(const _0x2406fa of this[_0x3de57a(0x4ae)])_0x2406fa[_0x3de57a(0x3cd)]();this[_0x3de57a(0x2f8)]&&this[_0x3de57a(0x2f8)][_0x3de57a(0x3cd)](),this[_0x3de57a(0x437)]&&this['_anchorDot'][_0x3de57a(0x3cd)](),this[_0x3de57a(0x28e)]&&this[_0x3de57a(0x28e)]['dispose'](),this[_0x3de57a(0x301)]&&this['_eventUnsubscribe']();}[_0x51d41b(0x59a)](){const _0x39c9e=_0x51d41b;var _0x185602;const {_docSkeleton:_0x350575,_document:_0x350ab0}=this,{color:_0x74a73c,name:_0x2a5e88,ranges:_0x48776d}=this[_0x39c9e(0x327)],_0x132421=_0x350ab0[_0x39c9e(0x4b1)](),{docsLeft:_0x220dc0,docsTop:_0x3b0ea2}=_0x132421,_0xf75941=new _0x54d1da['NodePositionConvertToCursor'](_0x132421,_0x350575);for(const {startOffset:_0xe3bf05,endOffset:_0x4764fe,collapsed:_0x43c91a,isActive:_0x3c2a0c}of _0x48776d){const _0x3007a3=_0x350575['findNodePositionByCharIndex'](_0xe3bf05),_0x2d4243=_0x350575[_0x39c9e(0x4bf)](_0x4764fe);if(_0x3c2a0c){const {contentBoxPointGroup:_0x5c28a2}=_0xf75941[_0x39c9e(0x295)](_0x2d4243,_0x2d4243);if(_0x5c28a2['length']===0x0)continue;this[_0x39c9e(0x2c8)](_0x74a73c,_0x5c28a2,_0x220dc0,_0x3b0ea2,_0x2a5e88),this[_0x39c9e(0x301)]=this[_0x39c9e(0x557)]();}if(!_0x43c91a&&_0x3007a3&&_0x2d4243){if(_0x54d1da['isValidRectRange'](_0x3007a3,_0x2d4243)){const _0x5415e7=new _0x54d1da[(_0x39c9e(0x19f))](_0x132421,_0x350575),{pointGroup:_0x436c7a}=(_0x185602=_0x5415e7[_0x39c9e(0x295)](_0x3007a3,_0x2d4243))!=null?_0x185602:{};if(_0x436c7a==null||_0x436c7a[_0x39c9e(0x392)]===0x0)continue;this[_0x39c9e(0x4ca)](_0x74a73c,_0x436c7a,_0x220dc0,_0x3b0ea2);}else{const {contentBoxPointGroup:_0x25c311}=_0xf75941[_0x39c9e(0x295)](_0x3007a3,_0x2d4243);if(_0x25c311['length']===0x0)continue;this[_0x39c9e(0x4c4)](_0x74a73c,_0x25c311,_0x220dc0,_0x3b0ea2);}}}}[_0x51d41b(0x2c8)](_0x54bc72,_0x8738df,_0x4f55b8,_0x52b442,_0x1a68ee){const _0x4c87e1=_0x51d41b,_0x338d4e=this[_0x4c87e1(0x311)](_0x8738df),{left:_0x4f59c8,top:_0x443717,height:_0x3e19a2}=_0x338d4e,_0x1f1686=this[_0x4c87e1(0x3e5)](),_0x158afc=_0x291f02/_0x1f1686,_0x1fe7b5=new _0x54d1da[(_0x4c87e1(0x4d3))](_0x2196c7+_0x36d396[_0x4c87e1(0x20e)][_0x4c87e1(0x1e3)](_0x42126b),{'left':_0x4f59c8+_0x4f55b8-_0x158afc,'top':_0x443717+_0x52b442,'height':_0x3e19a2,'width':_0x13d6fb,'fill':_0x54bc72||_0x54d1da[_0x4c87e1(0x472)](_0x36d396[_0x4c87e1(0x35e)][_0x4c87e1(0x529)],0x0),'strokeWidth':_0x158afc,'stroke':_0x490fff,'evented':!0x0});this[_0x4c87e1(0x28e)]=_0x1fe7b5,this['_scene'][_0x4c87e1(0x3c0)](_0x1fe7b5,_0x54d1da['TEXT_RANGE_LAYER_INDEX']);const _0x5889a0=new _0x54d1da[(_0x4c87e1(0x4d3))](_0x2196c7+_0x36d396[_0x4c87e1(0x20e)][_0x4c87e1(0x1e3)](_0x42126b),{'left':_0x4f59c8+_0x4f55b8-_0x158afc,'top':_0x443717+_0x52b442-_0x10d324/0x2,'height':_0x10d324,'width':_0x10d324,'fill':_0x54bc72||_0x54d1da[_0x4c87e1(0x472)](_0x36d396[_0x4c87e1(0x35e)][_0x4c87e1(0x529)],0x0),'strokeWidth':0x0,'stroke':_0x54bc72||_0x54d1da[_0x4c87e1(0x472)](_0x36d396[_0x4c87e1(0x35e)]['black'],0x0),'evented':!0x1});this[_0x4c87e1(0x437)]=_0x5889a0,this['_scene'][_0x4c87e1(0x3c0)](_0x5889a0,_0x54d1da['TEXT_RANGE_LAYER_INDEX']);const _0x3e68ad=new _0x5aab28(_0x2196c7+_0x36d396[_0x4c87e1(0x20e)][_0x4c87e1(0x1e3)](_0x42126b),{'left':_0x4f59c8+_0x4f55b8-_0x158afc,'top':_0x443717+_0x52b442-_0x122765,'text':_0x1a68ee,'color':_0x54bc72});this['_textBubble']=_0x3e68ad,this[_0x4c87e1(0x297)][_0x4c87e1(0x3c0)](_0x3e68ad,_0x54d1da['TEXT_RANGE_LAYER_INDEX']),this[_0x4c87e1(0x59b)]=!0x1;}[_0x51d41b(0x557)](){const _0x1fe840=_0x51d41b,_0x137de0=this[_0x1fe840(0x28e)][_0x1fe840(0x594)][_0x1fe840(0x3ea)](()=>{const _0xc56d1c=_0x1fe840;this[_0xc56d1c(0x59b)]=!0x0;}),_0x4798ab=this[_0x1fe840(0x28e)]['onPointerLeave$'][_0x1fe840(0x3ea)](()=>{const _0x5ed2c4=_0x1fe840;this[_0x5ed2c4(0x56e)]&&clearTimeout(this[_0x5ed2c4(0x56e)]),this[_0x5ed2c4(0x56e)]=setTimeout(()=>{const _0xc5ae14=_0x5ed2c4;this[_0xc5ae14(0x59b)]=!0x1;},0x7d0);});return()=>{_0x137de0['unsubscribe'](),_0x4798ab['unsubscribe']();};}[_0x51d41b(0x4c4)](_0x32f636,_0x33c899,_0x59cb50,_0x5e01ee){const _0x1182d0=_0x51d41b,_0x1a8da5=new _0x36d396[(_0x1182d0(0x1af))](_0x32f636)[_0x1182d0(0x474)](0.2)[_0x1182d0(0x45e)](),_0x562399=new _0x54d1da['RegularPolygon'](_0x26adf6+_0x36d396[_0x1182d0(0x20e)]['generateRandomId'](_0x42126b),{'pointsGroup':_0x33c899,'fill':_0x1a8da5||_0x54d1da[_0x1182d0(0x472)](_0x36d396[_0x1182d0(0x35e)][_0x1182d0(0x529)],0.2),'left':_0x59cb50,'top':_0x5e01ee,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1182d0(0x4ae)]['push'](_0x562399),this[_0x1182d0(0x297)][_0x1182d0(0x3c0)](_0x562399,_0x54d1da[_0x1182d0(0x366)]);}[_0x51d41b(0x4ca)](_0x15ab0a,_0x51b272,_0x208d9d,_0x53b606){const _0x23a432=_0x51d41b,_0x99fbc2=new _0x36d396['ColorKit'](_0x15ab0a)[_0x23a432(0x474)](0.2)[_0x23a432(0x45e)](),_0x4f76e6=new _0x54d1da['RegularPolygon'](_0x19a34b+_0x36d396[_0x23a432(0x20e)]['generateRandomId'](_0x42126b),{'pointsGroup':_0x51b272,'fill':_0x99fbc2||_0x54d1da[_0x23a432(0x472)](_0x36d396['COLORS'][_0x23a432(0x529)],0.2),'left':_0x208d9d,'top':_0x53b606,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x23a432(0x4ae)][_0x23a432(0x3cf)](_0x4f76e6),this[_0x23a432(0x297)][_0x23a432(0x3c0)](_0x4f76e6,_0x54d1da[_0x23a432(0x366)]);}[_0x51d41b(0x311)](_0x38bf42){const _0xd2c6e5=_0x38bf42[0x0],_0x300dab=_0xd2c6e5[0x0],_0x563bb5=_0xd2c6e5[0x2],{x:_0x572e60,y:_0x5bb5e7}=_0x300dab,{x:_0x485f24,y:_0x1b6309}=_0x563bb5;return{'left':_0x572e60,'top':_0x5bb5e7,'width':_0x485f24-_0x572e60,'height':_0x1b6309-_0x5bb5e7};}[_0x51d41b(0x3e5)](){const _0x2b86d2=_0x51d41b,{scaleX:_0x351d02,scaleY:_0x4211ed}=this[_0x2b86d2(0x297)][_0x2b86d2(0x329)]();return Math[_0x2b86d2(0x36a)](_0x351d02,_0x4211ed);}}var _0x558ec5=Object['defineProperty'],_0x113d79=Object[_0x51d41b(0x2b7)],_0x270c0d=(_0x403d33,_0x359217,_0x5d92b1,_0x3060ff)=>{const _0x541a7e=_0x51d41b;for(var _0x4a4764=_0x3060ff>0x1?void 0x0:_0x3060ff?_0x113d79(_0x359217,_0x5d92b1):_0x359217,_0x30e19e=_0x403d33[_0x541a7e(0x392)]-0x1,_0x2bbe0c;_0x30e19e>=0x0;_0x30e19e--)(_0x2bbe0c=_0x403d33[_0x30e19e])&&(_0x4a4764=(_0x3060ff?_0x2bbe0c(_0x359217,_0x5d92b1,_0x4a4764):_0x2bbe0c(_0x4a4764))||_0x4a4764);return _0x3060ff&&_0x4a4764&&_0x558ec5(_0x359217,_0x5d92b1,_0x4a4764),_0x4a4764;},_0x5d9a00=(_0xf67f59,_0x5051ec)=>(_0x37dc20,_0x413f23)=>_0x5051ec(_0x37dc20,_0x413f23,_0xf67f59);let _0x178c9a=class extends _0x36d396['RxDisposable']{constructor(_0x9a56b1,_0x155df6,_0x39782a,_0xf46ce7,_0x18d701){const _0x16dd8d=_0x51d41b;super(),_0x55fd67(this,_0x16dd8d(0x3d5),[]),_0x55fd67(this,_0x16dd8d(0x504),[]),(this[_0x16dd8d(0x4e4)]=_0x9a56b1,this[_0x16dd8d(0x4fc)]=_0x155df6,this['_collabCursorController']=_0x39782a,this[_0x16dd8d(0x561)]=_0xf46ce7,this[_0x16dd8d(0x2b9)]=_0x18d701,this[_0x16dd8d(0x571)]());}[_0x51d41b(0x571)](){const _0x5291b6=_0x51d41b,_0x583b38=this['_context'][_0x5291b6(0x19b)],_0x7f9965=this[_0x5291b6(0x4fc)];this[_0x5291b6(0x595)](_0x22cf47[_0x5291b6(0x548)]([this[_0x5291b6(0x1a3)][_0x5291b6(0x45d)](_0x583b38),this[_0x5291b6(0x2b9)]['currentTheme$']])[_0x5291b6(0x257)](_0x547088[_0x5291b6(0x565)](([_0x49134e,_0x4cb4f6])=>({'skeleton':_0x7f9965['getSkeleton'](),'cursors':[..._0x49134e['values']()][_0x5291b6(0x364)](_0x51c6d3=>({..._0x51c6d3,'color':_0x4cb4f6[_0x51c6d3['color']]}))})))[_0x5291b6(0x200)](_0x16e401=>{const _0x3993d9=_0x5291b6;if(this[_0x3993d9(0x220)](),_0x16e401){const {skeleton:_0x372c2d,cursors:_0x1a241d}=_0x16e401;this[_0x3993d9(0x555)](_0x372c2d,_0x1a241d);}})),this[_0x5291b6(0x422)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x36c6f9,_0x25b294){const _0x4a8e9c=_0x51d41b,{scene:_0x565277,mainComponent:_0x7395ac}=this[_0x4a8e9c(0x4e4)],_0x51f0b3=_0x25b294['map'](_0x2ac6a1=>new _0x4cd564(_0x2ac6a1,_0x565277,_0x36c6f9,_0x7395ac));this[_0x4a8e9c(0x3d5)]=_0x51f0b3,this[_0x4a8e9c(0x504)]=_0x25b294;}['_refreshCollabCursors'](){const _0x50fd96=_0x51d41b;this[_0x50fd96(0x220)]();const {scene:_0x268bca,mainComponent:_0xc96ab5}=this[_0x50fd96(0x4e4)],_0x55c0b7=this['_docSkeletonManagerService'][_0x50fd96(0x3bb)](),_0x3f15ad=this['_cursors'][_0x50fd96(0x565)](_0x153707=>new _0x4cd564(_0x153707,_0x268bca,_0x55c0b7,_0xc96ab5));this['_cursorShapes']=_0x3f15ad;}['_removeCollabCursors'](){const _0x2c1936=_0x51d41b;this[_0x2c1936(0x3d5)][_0x2c1936(0x1a9)](_0x17feb3=>_0x17feb3['dispose']()),this[_0x2c1936(0x3d5)]=[];}[_0x51d41b(0x3bf)](){const _0x1cbf72=_0x51d41b,_0x3d388=[_0x569fac['SetDocZoomRatioOperation']['id']];this[_0x1cbf72(0x595)](this['_commandService'][_0x1cbf72(0x1c8)](_0xc2fa5b=>{const _0x47d014=_0x1cbf72;_0x3d388[_0x47d014(0x55c)](_0xc2fa5b['id'])&&_0xc2fa5b['params']['unitId']===this[_0x47d014(0x4e4)][_0x47d014(0x19b)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x29ddd5=_0x51d41b;this[_0x29ddd5(0x595)](_0x36d396[_0x29ddd5(0x51a)](this[_0x29ddd5(0x4e4)][_0x29ddd5(0x48c)][_0x29ddd5(0x464)])[_0x29ddd5(0x257)](_0x547088[_0x29ddd5(0x280)](_0x418c71=>_0x418c71[_0x29ddd5(0x2cb)]===_0x54d1da[_0x29ddd5(0x2db)][_0x29ddd5(0x363)]),_0x547088[_0x29ddd5(0x41b)](0x10))[_0x29ddd5(0x200)](()=>{const _0x571287=_0x29ddd5;this[_0x571287(0x242)]();}));}};_0x178c9a=_0x270c0d([_0x36d396[_0x51d41b(0x547)](_0x36d396[_0x51d41b(0x520)]['Steady'],_0x178c9a),_0x5d9a00(0x1,_0x36d396['Inject'](_0x569fac[_0x51d41b(0x29c)])),_0x5d9a00(0x2,_0x36d396[_0x51d41b(0x2ae)](_0x566b79)),_0x5d9a00(0x3,_0x36d396[_0x51d41b(0x1d5)]),_0x5d9a00(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x36d396['ThemeService']))],_0x178c9a);var _0x181296=Object[_0x51d41b(0x215)],_0xa34052=Object[_0x51d41b(0x2b7)],_0x49b301=(_0x5b4418,_0x2b24b0,_0x50bb37,_0xf230b4)=>{for(var _0x504c82=_0xf230b4>0x1?void 0x0:_0xf230b4?_0xa34052(_0x2b24b0,_0x50bb37):_0x2b24b0,_0x39d7d2=_0x5b4418['length']-0x1,_0x31870f;_0x39d7d2>=0x0;_0x39d7d2--)(_0x31870f=_0x5b4418[_0x39d7d2])&&(_0x504c82=(_0xf230b4?_0x31870f(_0x2b24b0,_0x50bb37,_0x504c82):_0x31870f(_0x504c82))||_0x504c82);return _0xf230b4&&_0x504c82&&_0x181296(_0x2b24b0,_0x50bb37,_0x504c82),_0x504c82;},_0x708478=(_0x4e3f5a,_0x3a6db3)=>(_0x9051b0,_0x39de9b)=>_0x3a6db3(_0x9051b0,_0x39de9b,_0x4e3f5a);let _0x29ed70=class{constructor(_0x266958,_0x71b5d9,_0x843847){const _0x3b8c8d=_0x51d41b;this[_0x3b8c8d(0x448)]=_0x266958,this['_httpService']=_0x71b5d9,this[_0x3b8c8d(0x1dd)]=_0x843847,this[_0x3b8c8d(0x46c)]();}[_0x51d41b(0x46c)](){const _0x2cceb5=_0x51d41b;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x548d1c,_0x284e96)=>_0x284e96(_0x548d1c)['pipe'](_0x22cf47[_0x2cceb5(0x4c9)](async _0x5b43cf=>{const _0x4c06f7=_0x2cceb5,_0x47db7e=_0x5b43cf;if(_0x47db7e[_0x4c06f7(0x199)]===0x191&&window['confirm'](this[_0x4c06f7(0x1dd)]['t'](_0x4c06f7(0x25f)))){const _0xcc6299=window[_0x4c06f7(0x303)](window[_0x4c06f7(0x57f)][_0x4c06f7(0x23a)]);window[_0x4c06f7(0x57f)][_0x4c06f7(0x23a)]=this['_getLoginPath']()+_0x4c06f7(0x502)+_0xcc6299;}return _0x47db7e;}))});}[_0x51d41b(0x204)](){const _0x4f10bd=_0x51d41b;var _0x38846f;return(_0x38846f=this[_0x4f10bd(0x448)][_0x4f10bd(0x1a6)](_0x4c6be5))!=null?_0x38846f:_0x11abd1;}};_0x29ed70=_0x49b301([_0x708478(0x0,_0x36d396['IConfigService']),_0x708478(0x1,_0x36d396['Inject'](_0x3d1d50[_0x51d41b(0x2e6)])),_0x708478(0x2,_0x36d396['Inject'](_0x36d396[_0x51d41b(0x22d)]))],_0x29ed70);var _0x38479a=Object[_0x51d41b(0x215)],_0x400f51=Object[_0x51d41b(0x2b7)],_0x2aa5d4=(_0x47f04c,_0x2f23bd,_0x2fb28e,_0x1f1b05)=>{for(var _0x16eb8c=_0x1f1b05>0x1?void 0x0:_0x1f1b05?_0x400f51(_0x2f23bd,_0x2fb28e):_0x2f23bd,_0x50feee=_0x47f04c['length']-0x1,_0x251c56;_0x50feee>=0x0;_0x50feee--)(_0x251c56=_0x47f04c[_0x50feee])&&(_0x16eb8c=(_0x1f1b05?_0x251c56(_0x2f23bd,_0x2fb28e,_0x16eb8c):_0x251c56(_0x16eb8c))||_0x16eb8c);return _0x1f1b05&&_0x16eb8c&&_0x38479a(_0x2f23bd,_0x2fb28e,_0x16eb8c),_0x16eb8c;},_0x4086a7=(_0x443e92,_0x8f436e)=>(_0x2f8d53,_0x25d63d)=>_0x8f436e(_0x2f8d53,_0x25d63d,_0x443e92);const _0x20cd58=_0x51d41b(0x33b),_0x1ea89d=_0x51d41b(0x400);_0x59ce0d[_0x51d41b(0x57c)]=class extends _0x36d396[_0x51d41b(0x4f0)]{constructor(_0x41a92b,_0x422832){const _0x2f82bf=_0x51d41b;super(),this[_0x2f82bf(0x579)]=_0x41a92b,this[_0x2f82bf(0x448)]=_0x422832,this['_initMergeInterceptor']();}[_0x51d41b(0x3fe)](){const _0x48cffb=_0x51d41b,_0x298ab5=this;this[_0x48cffb(0x595)](this['_HTTPService'][_0x48cffb(0x41e)]({'priority':0x3e7,'interceptor':_0x3d1d50[_0x48cffb(0x195)]({'isMatch'(_0x516851){const _0x3d6cdf=_0x48cffb;var _0x1d47db;if(_0x516851[_0x3d6cdf(0x244)]===_0x3d6cdf(0x352)&&((_0x1d47db=_0x516851[_0x3d6cdf(0x51b)])!=null&&_0x1d47db[_0x3d6cdf(0x283)])){const {objectID:_0x29f6aa,objectType:_0x36e49f}=_0x516851[_0x3d6cdf(0x51b)][_0x3d6cdf(0x283)]||{};if(!_0x29f6aa||_0x36e49f===void 0x0)return!0x1;const _0x1e6e39=_0x298ab5[_0x3d6cdf(0x214)]()+'/'+_0x36e49f+_0x3d6cdf(0x1ef)+_0x29f6aa+_0x3d6cdf(0x3ac);if(_0x516851['url']===_0x1e6e39)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5ee564){const _0xa52e5b=_0x48cffb;var _0x57623f;return(_0x57623f=_0x5ee564[_0xa52e5b(0x51b)])==null?void 0x0:_0x57623f['body'];},'mergeParamsToRequest'(_0x1de22e,_0x4227b8){const _0xec40ba=_0x48cffb,_0x67d7e4=_0x298ab5[_0xec40ba(0x214)]()+_0xec40ba(0x34d),_0x3bda89=_0x1de22e['reduce']((_0x283e19,_0x517b47)=>{const _0x4efc6f=_0xec40ba,{unitID:_0x23e7b1,objectID:_0xf3158a,objectType:_0x1e6889,actions:_0x12ab4d}=_0x517b47;return _0x283e19[_0x23e7b1]||(_0x283e19[_0x23e7b1]={}),_0x283e19[_0x23e7b1][_0xf3158a]||(_0x283e19[_0x23e7b1][_0xf3158a]={'objectID':_0xf3158a,'objectType':_0x1e6889,'actions':[]}),_0x283e19[_0x23e7b1][_0xf3158a][_0x4efc6f(0x583)][_0x4efc6f(0x3cf)](..._0x12ab4d),_0x283e19;},{}),_0x29a2b9=[];for(const _0x2918c2 in _0x3bda89)for(const _0x3a3dc6 in _0x3bda89[_0x2918c2]){const {actions:_0x186e6a,objectType:_0x36ed4b}=_0x3bda89[_0x2918c2][_0x3a3dc6],_0x228a88=[...new Set(_0x186e6a)];_0x29a2b9[_0xec40ba(0x3cf)]({'unitID':_0x2918c2,'objectID':_0x3a3dc6,'objectType':_0x36ed4b,'actions':_0x228a88});}return new _0x3d1d50[(_0xec40ba(0x259))](_0xec40ba(0x352),_0x67d7e4,{'headers':_0x4227b8[_0xec40ba(0x37f)],'withCredentials':_0x4227b8[_0xec40ba(0x284)],'responseType':_0x4227b8[_0xec40ba(0x3fd)],'body':{'requests':_0x29a2b9}});}},{'distributeResult'(_0x4ac239,_0xa4b15e){const _0x22566c=_0x48cffb,{objectActions:_0x4760bf}=_0x4ac239;return _0xa4b15e[_0x22566c(0x565)](_0x58a03c=>{const _0x1b0de4=_0x22566c,{unitID:_0x137026,objectID:_0x43ee2e,actions:_0x3af2de}=_0x58a03c,_0x51ba6d=_0x4760bf[_0x1b0de4(0x3e3)](_0xe149b9=>_0xe149b9['unitID']===_0x137026&&_0xe149b9[_0x1b0de4(0x1e9)]===_0x43ee2e),_0x9f672b=_0x3af2de[_0x1b0de4(0x565)](_0x2fa7bb=>_0x51ba6d==null?void 0x0:_0x51ba6d['actions'][_0x1b0de4(0x3e3)](_0x403daa=>_0x403daa[_0x1b0de4(0x2d7)]===_0x2fa7bb))['filter'](_0x2c8884=>!!_0x2c8884);return{'config':_0x58a03c,'result':{'actions':_0x9f672b,'error':_0x4ac239['error']}};});}})}));}[_0x51d41b(0x214)](){const _0x410dd5=_0x51d41b;var _0x57b867;return(_0x57b867=this['_configService'][_0x410dd5(0x1a6)](_0x20cd58))!=null?_0x57b867:_0x1ea89d;}async['create'](_0x3f628f){const _0x56fe18=_0x51d41b,_0x30554e=this[_0x56fe18(0x214)]()+'/'+_0x3f628f['objectType']+_0x56fe18(0x3d2);return(await this[_0x56fe18(0x579)][_0x56fe18(0x51e)](_0x30554e,{'body':_0x3f628f}))[_0x56fe18(0x283)][_0x56fe18(0x1e9)]||'';}async[_0x51d41b(0x49c)](_0x18d67b){const _0x20eb50=_0x51d41b,_0x1ea109=this['_getAPIPrefixPath']()+_0x20eb50(0x35a);return(await this['_HTTPService'][_0x20eb50(0x51e)](_0x1ea109,{'body':_0x18d67b}))[_0x20eb50(0x283)][_0x20eb50(0x43a)];}async['update'](_0x2d9755){const _0x12128a=_0x51d41b,_0x196b01=this[_0x12128a(0x214)]()+'/'+_0x2d9755[_0x12128a(0x4ba)]+'/object/'+_0x2d9755[_0x12128a(0x1e9)];await this[_0x12128a(0x579)][_0x12128a(0x21d)](_0x196b01,{'body':_0x2d9755});}async[_0x51d41b(0x355)](_0x13343b){const _0x24905e=_0x51d41b,_0x230dc3=this[_0x24905e(0x214)]()+'/'+_0x13343b[_0x24905e(0x4ba)]+_0x24905e(0x1ef)+_0x13343b[_0x24905e(0x1e9)]+'/allowed';return(await this['_HTTPService'][_0x24905e(0x51e)](_0x230dc3,{'body':_0x13343b}))[_0x24905e(0x283)]['actions'];}async[_0x51d41b(0x403)](_0x522b56){const _0x3b4f2c=_0x51d41b,_0x221e38=this[_0x3b4f2c(0x214)]()+'/-/object/-/batch_allowed';return(await this[_0x3b4f2c(0x579)][_0x3b4f2c(0x51e)](_0x221e38,{'body':{'requests':_0x522b56}}))[_0x3b4f2c(0x283)][_0x3b4f2c(0x198)];}async[_0x51d41b(0x4b7)](_0x17d535){const _0x4c1864=_0x51d41b,_0x2a0163=this['_getAPIPrefixPath']()+'/'+_0x17d535[_0x4c1864(0x4ba)]+'/role',_0xe2ee34=await this[_0x4c1864(0x579)][_0x4c1864(0x51e)](_0x2a0163,{'body':_0x17d535});return{'roles':_0xe2ee34[_0x4c1864(0x283)][_0x4c1864(0x2a9)],'actions':_0xe2ee34['body'][_0x4c1864(0x583)]};}async[_0x51d41b(0x197)](_0x3547d0){const _0x22f82c=_0x51d41b,_0x54cdd6=this[_0x22f82c(0x214)]()+_0x22f82c(0x4d8);await this['_HTTPService'][_0x22f82c(0x560)](_0x54cdd6,{'params':{'collaboratorID':_0x3547d0[_0x22f82c(0x247)],'objectID':_0x3547d0[_0x22f82c(0x1e9)],'unitID':_0x3547d0[_0x22f82c(0x35f)]}});}async[_0x51d41b(0x596)](_0x1dc70c){const _0x3bf1b6=_0x51d41b,_0x4696a2=this[_0x3bf1b6(0x214)]()+_0x3bf1b6(0x4d8);await this['_HTTPService']['patch'](_0x4696a2,{'body':_0x1dc70c});}async[_0x51d41b(0x385)](_0x23fd94){const _0x4fdd55=_0x51d41b,_0x281d4e=this['_getAPIPrefixPath']()+_0x4fdd55(0x4d8);await this['_HTTPService'][_0x4fdd55(0x51e)](_0x281d4e,{'body':_0x23fd94});}async[_0x51d41b(0x3fa)](_0x3f3b7d){const _0x2381d2=_0x51d41b,_0x22f729=this['_getAPIPrefixPath']()+_0x2381d2(0x4d8);return(await this['_HTTPService'][_0x2381d2(0x58c)](_0x22f729,{'params':{'objectID':_0x3f3b7d[_0x2381d2(0x1e9)],'unitID':_0x3f3b7d[_0x2381d2(0x35f)]}}))['body'][_0x2381d2(0x55e)];}async[_0x51d41b(0x3e7)](_0x56c7bb){const _0x59967d=_0x51d41b,_0x5db76e=this['_getAPIPrefixPath']()+_0x59967d(0x4d8);await this[_0x59967d(0x579)]['put'](_0x5db76e,{'body':_0x56c7bb});}},_0x59ce0d[_0x51d41b(0x57c)]=_0x2aa5d4([_0x4086a7(0x0,_0x36d396['Inject'](_0x3d1d50[_0x51d41b(0x2e6)])),_0x4086a7(0x1,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x511)]))],_0x59ce0d[_0x51d41b(0x57c)]);var _0x41278a=Object['defineProperty'],_0x102b7e=Object['getOwnPropertyDescriptor'],_0x1acab9=(_0x5bab2c,_0x5d783f,_0x4e4871,_0x56bcbe)=>{const _0x449cc7=_0x51d41b;for(var _0x1b9400=_0x56bcbe>0x1?void 0x0:_0x56bcbe?_0x102b7e(_0x5d783f,_0x4e4871):_0x5d783f,_0x2080b4=_0x5bab2c[_0x449cc7(0x392)]-0x1,_0x347440;_0x2080b4>=0x0;_0x2080b4--)(_0x347440=_0x5bab2c[_0x2080b4])&&(_0x1b9400=(_0x56bcbe?_0x347440(_0x5d783f,_0x4e4871,_0x1b9400):_0x347440(_0x1b9400))||_0x1b9400);return _0x56bcbe&&_0x1b9400&&_0x41278a(_0x5d783f,_0x4e4871,_0x1b9400),_0x1b9400;},_0x41cda8=(_0x49b6ba,_0x2cafa8)=>(_0x3bb95d,_0x9f66c6)=>_0x2cafa8(_0x3bb95d,_0x9f66c6,_0x49b6ba);const _0x13975c=[_0x51d41b(0x418),_0x51d41b(0x221),_0x51d41b(0x1d2),_0x51d41b(0x54c),_0x51d41b(0x55b)],_0x251ee4=0x5*0x400*0x400,_0x4c3ca1='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',_0x2d2b1e=_0x51d41b(0x3a4),_0x3cfbeb=_0x51d41b(0x43d),_0x4ce5c4=_0x51d41b(0x337);_0x59ce0d[_0x51d41b(0x288)]=class{constructor(_0x35faa5,_0x30795b,_0xbbe3d8){const _0x524d0e=_0x51d41b;_0x55fd67(this,'_waitCount',0x0),_0x55fd67(this,_0x524d0e(0x57d),new _0x22cf47['Subject']()),_0x55fd67(this,_0x524d0e(0x54f),this['_change$']),_0x55fd67(this,_0x524d0e(0x45a),new Map()),(this[_0x524d0e(0x463)]=_0x35faa5,this[_0x524d0e(0x448)]=_0x30795b,this[_0x524d0e(0x273)]=_0xbbe3d8);}[_0x51d41b(0x3aa)](_0x3cf089){const _0x33bbae=_0x51d41b;this[_0x33bbae(0x370)]=_0x3cf089,this[_0x33bbae(0x57d)][_0x33bbae(0x1d6)](_0x3cf089);}[_0x51d41b(0x1fe)](_0x1fad59,_0x407b1b){const _0x64a7f3=_0x51d41b;if(_0x407b1b===_0x17128d[_0x64a7f3(0x450)][_0x64a7f3(0x51d)]){const _0xd92edb=new Image();return _0xd92edb['src']=_0x1fad59,_0xd92edb;}return this[_0x64a7f3(0x45a)][_0x64a7f3(0x58c)](_0x1fad59);}[_0x51d41b(0x453)](_0x3f8f21,_0x3ec8bd,_0x5f4a4d){const _0x127a42=_0x51d41b;_0x3ec8bd===_0x17128d['ImageSourceType'][_0x127a42(0x51d)]||_0x5f4a4d==null||this['_imageSourceCache'][_0x127a42(0x27f)](_0x3f8f21,_0x5f4a4d);}async['getImage'](_0x20ce13){const _0x128e35=_0x51d41b;try{const _0x5167bf=this[_0x128e35(0x343)](this[_0x128e35(0x578)](),''+_0x20ce13),_0x4a93dd=(await this[_0x128e35(0x463)][_0x128e35(0x58c)](_0x5167bf))[_0x128e35(0x283)];return _0x4a93dd[_0x128e35(0x405)]&&_0x4a93dd[_0x128e35(0x405)][_0x128e35(0x30d)]===_0x5d72a7['OK']?Promise[_0x128e35(0x4aa)](_0x4a93dd[_0x128e35(0x28c)]):Promise['reject'](_0x4a93dd[_0x128e35(0x405)]);}catch(_0x511ae9){return Promise[_0x128e35(0x498)](_0x511ae9);}}async[_0x51d41b(0x32b)](_0x2c4d7e){const _0x54961f=_0x51d41b;let _0xdf9392='';if(!_0x13975c[_0x54961f(0x55c)](_0x2c4d7e[_0x54961f(0x2cb)]))return this[_0x54961f(0x421)](),Promise['reject'](new Error(_0x17128d[_0x54961f(0x4e9)][_0x54961f(0x4e5)]));if(_0x2c4d7e[_0x54961f(0x32c)]>_0x251ee4)return this[_0x54961f(0x421)](),Promise['reject'](new Error(_0x17128d['ImageUploadStatusType'][_0x54961f(0x3b2)]));try{const _0xcdfc2a=new FormData();_0xcdfc2a[_0x54961f(0x217)](_0x54961f(0x397),_0x2c4d7e);const _0x4d521d=this[_0x54961f(0x273)][_0x54961f(0x3ce)](),_0x1886c5=_0x4d521d==null?void 0x0:_0x4d521d[_0x54961f(0x4ce)]();if(!_0x1886c5)throw new Error(_0x54961f(0x521));const _0xea1941=this[_0x54961f(0x531)]()+_0x54961f(0x2e4)+_0x2c4d7e[_0x54961f(0x32c)][_0x54961f(0x240)]()+_0x54961f(0x59f)+_0x66022a[_0x54961f(0x381)]+'&assign='+encodeURIComponent(_0x1886c5),_0x3cd64d=await(await fetch(_0xea1941,{'method':_0x54961f(0x352),'body':_0xcdfc2a}))[_0x54961f(0x536)]();if(typeof _0x3cd64d[_0x54961f(0x1ab)]!='string')return this['_decreaseWaiting'](),Promise[_0x54961f(0x498)](new Error(_0x17128d[_0x54961f(0x4e9)][_0x54961f(0x4e3)]));_0xdf9392=_0x3cd64d[_0x54961f(0x1ab)];}catch{return this[_0x54961f(0x421)](),Promise[_0x54961f(0x498)](new Error(_0x17128d[_0x54961f(0x4e9)][_0x54961f(0x4e3)]));}return new Promise((_0x551895,_0x11eb71)=>{const _0x37c95d=_0x54961f,_0x2baa6f=new FileReader();_0x2baa6f[_0x37c95d(0x333)](_0x2c4d7e),_0x2baa6f[_0x37c95d(0x427)]=_0x19a97e=>{const _0x2c5322=_0x37c95d;var _0x308ee4;const _0x5aaa4b=(_0x308ee4=_0x19a97e[_0x2c5322(0x31e)])==null?void 0x0:_0x308ee4['result'];if(_0x5aaa4b==null){this['_decreaseWaiting'](),_0x11eb71(new Error(_0x17128d[_0x2c5322(0x4e9)][_0x2c5322(0x4e3)]));return;}const _0x21785c=_0x36d396[_0x2c5322(0x20e)][_0x2c5322(0x1e3)](0x6);_0x551895({'imageId':_0x21785c,'imageSourceType':_0x17128d['ImageSourceType']['UUID'],'source':_0xdf9392,'base64Cache':_0x5aaa4b,'status':_0x17128d['ImageUploadStatusType'][_0x2c5322(0x32e)]}),this[_0x2c5322(0x421)]();};});}[_0x51d41b(0x531)](){const _0x60c5fd=_0x51d41b;var _0x3c5fa3;return(_0x3c5fa3=this[_0x60c5fd(0x448)][_0x60c5fd(0x1a6)](_0x4c3ca1))!=null?_0x3c5fa3:_0x2d2b1e;}[_0x51d41b(0x578)](){const _0x12a999=_0x51d41b;var _0x43725c;return(_0x43725c=this[_0x12a999(0x448)][_0x12a999(0x1a6)](_0x3cfbeb))!=null?_0x43725c:_0x4ce5c4;}[_0x51d41b(0x343)](_0xbbe613,_0x5ac83e){const _0x24a9f5=_0x51d41b;return _0xbbe613[_0x24a9f5(0x591)](_0x24a9f5(0x2c3),_0x5ac83e);}['_decreaseWaiting'](){const _0x1f26a1=_0x51d41b;this['_waitCount']-=0x1,this['_change$'][_0x1f26a1(0x1d6)](this[_0x1f26a1(0x370)]);}},_0x59ce0d['ImageIoService']=_0x1acab9([_0x41cda8(0x0,_0x36d396['Inject'](_0x3d1d50[_0x51d41b(0x2e6)])),_0x41cda8(0x1,_0x36d396['IConfigService']),_0x41cda8(0x2,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x2c5)]))],_0x59ce0d['ImageIoService']);var _0x2a8438=Object[_0x51d41b(0x215)],_0x4f4757=Object[_0x51d41b(0x2b7)],_0x2b61d8=(_0x5dc82a,_0x3cc148,_0x5a3a1d,_0x170372)=>{const _0x43911d=_0x51d41b;for(var _0x3181ec=_0x170372>0x1?void 0x0:_0x170372?_0x4f4757(_0x3cc148,_0x5a3a1d):_0x3cc148,_0x16e6e5=_0x5dc82a[_0x43911d(0x392)]-0x1,_0x16cf01;_0x16e6e5>=0x0;_0x16e6e5--)(_0x16cf01=_0x5dc82a[_0x16e6e5])&&(_0x3181ec=(_0x170372?_0x16cf01(_0x3cc148,_0x5a3a1d,_0x3181ec):_0x16cf01(_0x3181ec))||_0x3181ec);return _0x170372&&_0x3181ec&&_0x2a8438(_0x3cc148,_0x5a3a1d,_0x3181ec),_0x3181ec;},_0x4e9a10=(_0x4f7202,_0x5a335a)=>(_0x5a5518,_0x5bb584)=>_0x5a335a(_0x5a5518,_0x5bb584,_0x4f7202);let _0x4dc48c=class extends _0x36d396[_0x51d41b(0x480)]{constructor(_0x5d2df5,_0x4408f2,_0x2c9ffb,_0x144225,_0x1d9c59){const _0x4deff0=_0x51d41b;super(),this[_0x4deff0(0x2b0)]=_0x5d2df5,this[_0x4deff0(0x273)]=_0x4408f2,this[_0x4deff0(0x350)]=_0x2c9ffb,this[_0x4deff0(0x3f1)]=_0x144225,this['_localeService']=_0x1d9c59,this[_0x4deff0(0x383)](),this[_0x4deff0(0x53e)]();}[_0x51d41b(0x53e)](){const _0x430307=_0x51d41b,_0x5f2632=async _0x14bf38=>{const _0xd8cb8f=_0x4682;(await this[_0xd8cb8f(0x3f1)][_0xd8cb8f(0x208)](_0x14bf38))[_0xd8cb8f(0x1b6)][_0xd8cb8f(0x257)](_0x547088[_0xd8cb8f(0x280)](_0x5a3846=>_0x5a3846['eventID']===_0x346629[_0xd8cb8f(0x2fa)][_0xd8cb8f(0x408)]),_0x547088[_0xd8cb8f(0x5a4)](this['dispose$']))['subscribe'](_0x16614b=>{const _0x6e0174=_0xd8cb8f,_0xc91303=_0x16614b,{reason:_0x360173}=_0xc91303[_0x6e0174(0x34f)];this['_injector'][_0x6e0174(0x58c)](_0x455671[_0x6e0174(0x1c1)])['show']({'type':_0x53e1d0['MessageType'][_0x6e0174(0x372)],'content':this['_localeService']['t'](_0x6e0174(0x485))+'('+_0x360173+')'}),this['_permissionService']['updatePermissionPoint'](new _0xdbe912[(_0x6e0174(0x47e))](_0x14bf38)['id'],!0x1),this[_0x6e0174(0x3f1)][_0x6e0174(0x1e8)](_0x14bf38);});};_0x22cf47[_0x430307(0x4ee)](this['_univerInstanceService'][_0x430307(0x3b6)](_0x36d396[_0x430307(0x26a)][_0x430307(0x1d8)]),this[_0x430307(0x273)]['getTypeOfUnitAdded$'](_0x36d396['UniverInstanceType'][_0x430307(0x43c)]))[_0x430307(0x257)](_0x547088['map'](_0x7c1e52=>_0x7c1e52[_0x430307(0x4ce)]()),_0x547088[_0x430307(0x280)](_0x302b01=>!_0x36d396['isInternalEditorID'](_0x302b01)),_0x547088[_0x430307(0x5a4)](this[_0x430307(0x1b2)]))['subscribe'](_0x3bfd98=>{_0x5f2632(_0x3bfd98);});}['_initUnitPermissionChange'](){const _0x59dcfe=_0x51d41b,_0x513a60=async _0x4329ec=>{const _0x18995e=_0x4682;(await this[_0x18995e(0x3f1)]['requireSession'](_0x4329ec))[_0x18995e(0x1b6)][_0x18995e(0x257)](_0x547088[_0x18995e(0x280)](_0x3dc85b=>_0x3dc85b[_0x18995e(0x1c6)]===_0x346629[_0x18995e(0x2fa)]['UPDATE_PERMISSION_OBJ']),_0x547088[_0x18995e(0x5a4)](this[_0x18995e(0x1b2)]))[_0x18995e(0x200)](_0x52e92c=>{const _0x110d30=_0x18995e,_0x18504f=_0x52e92c,{objectId:_0x31a30c}=_0x18504f[_0x110d30(0x34f)],_0x287890=this[_0x110d30(0x2b0)][_0x110d30(0x58c)](_0x343608[_0x110d30(0x28d)]);_0x31a30c===_0x4329ec?_0x287890['initWorkbookPermissionChange'](_0x4329ec):_0x287890[_0x110d30(0x54d)](_0x4329ec,_0x31a30c);});};_0x22cf47[_0x59dcfe(0x4ee)](this['_univerInstanceService'][_0x59dcfe(0x3b6)](_0x36d396[_0x59dcfe(0x26a)][_0x59dcfe(0x1d8)]),this[_0x59dcfe(0x273)][_0x59dcfe(0x3b6)](_0x36d396[_0x59dcfe(0x26a)][_0x59dcfe(0x43c)]))[_0x59dcfe(0x257)](_0x547088['map'](_0x25d603=>_0x25d603[_0x59dcfe(0x4ce)]()),_0x547088[_0x59dcfe(0x280)](_0x298c64=>!_0x36d396['isInternalEditorID'](_0x298c64)),_0x547088[_0x59dcfe(0x5a4)](this[_0x59dcfe(0x1b2)]))['subscribe'](_0x5d5479=>{_0x513a60(_0x5d5479);});}};_0x4dc48c=_0x2b61d8([_0x36d396['OnLifecycle'](_0x36d396['LifecycleStages'][_0x51d41b(0x4e8)],_0x4dc48c),_0x4e9a10(0x0,_0x36d396['Inject'](_0x36d396[_0x51d41b(0x268)])),_0x4e9a10(0x1,_0x36d396[_0x51d41b(0x2c5)]),_0x4e9a10(0x2,_0x36d396[_0x51d41b(0x326)]),_0x4e9a10(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x285)])),_0x4e9a10(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x22d)]))],_0x4dc48c);const _0x2a6e9b=_0x51d41b(0x48a);var _0x113be1=Object[_0x51d41b(0x215)],_0x345e35=Object[_0x51d41b(0x2b7)],_0x309181=(_0x573686,_0x30a58e,_0x43e2a5)=>_0x30a58e in _0x573686?_0x113be1(_0x573686,_0x30a58e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43e2a5}):_0x573686[_0x30a58e]=_0x43e2a5,_0xaa5a71=(_0x252b5b,_0x288e5d,_0x471aff,_0x3aa270)=>{const _0x4741cd=_0x51d41b;for(var _0x1feca5=_0x3aa270>0x1?void 0x0:_0x3aa270?_0x345e35(_0x288e5d,_0x471aff):_0x288e5d,_0x46aac4=_0x252b5b[_0x4741cd(0x392)]-0x1,_0x5ea5a9;_0x46aac4>=0x0;_0x46aac4--)(_0x5ea5a9=_0x252b5b[_0x46aac4])&&(_0x1feca5=(_0x3aa270?_0x5ea5a9(_0x288e5d,_0x471aff,_0x1feca5):_0x5ea5a9(_0x1feca5))||_0x1feca5);return _0x3aa270&&_0x1feca5&&_0x113be1(_0x288e5d,_0x471aff,_0x1feca5),_0x1feca5;},_0x467f00=(_0xf4c89,_0x48cf81)=>(_0xdff8d7,_0x24ed48)=>_0x48cf81(_0xdff8d7,_0x24ed48,_0xf4c89),_0x4252ae=(_0x389a7e,_0x6b9a26,_0x359e0e)=>_0x309181(_0x389a7e,_0x6b9a26+'',_0x359e0e);const _0x6e92ea=_0x51d41b(0x1b7);_0x59ce0d[_0x51d41b(0x3eb)]=class extends _0x36d396[_0x51d41b(0x300)]{constructor(_0x542f33={},_0x376fba,_0x3837bc,_0x15949f,_0x5b8f36){const _0x5d69d3=_0x51d41b;super(),this[_0x5d69d3(0x322)]=_0x542f33,this[_0x5d69d3(0x545)]=_0x376fba,this['_renderManagerService']=_0x3837bc,this[_0x5d69d3(0x2b0)]=_0x15949f,this[_0x5d69d3(0x448)]=_0x5b8f36;const {..._0x940cd4}=this[_0x5d69d3(0x322)];this[_0x5d69d3(0x448)]['setConfig'](_0x2a6e9b,_0x940cd4);}[_0x51d41b(0x2ac)](){const _0x1a3e59=_0x51d41b;this[_0x1a3e59(0x477)]();}['onRendered'](){const _0x44083f=_0x51d41b;this[_0x44083f(0x470)]();}[_0x51d41b(0x477)](){const _0x3264b3=_0x51d41b;var _0x18d4b9,_0x4a96c9,_0x372b2b,_0x4b4e8b;this['_injector']['has'](_0x36d396[_0x3264b3(0x586)])&&this[_0x3264b3(0x545)][_0x3264b3(0x405)]('[UniverCollaborationClientPlugin]',_0x3264b3(0x3ef));let _0x25d390=[[_0x36d396[_0x3264b3(0x586)],{'useClass':_0xfd6590}],[_0x59ce0d[_0x3264b3(0x285)]],[_0x2f29bf],[_0x3d1d50['HTTPService']],[_0x56d70c,{'useClass':_0x161740}],[_0x2e1387],[_0x59ce0d['LocalCacheService']],[_0x3d1d50[_0x3264b3(0x4fd)]],[_0x57d656],[_0xe78d9a],[_0x3106a2],[_0xb807fa],[_0x29ed70],[_0x186531],[_0x4dc48c],[_0xe35b0b,{'useClass':(_0x4a96c9=(_0x18d4b9=this[_0x3264b3(0x322)])==null?void 0x0:_0x18d4b9[_0x3264b3(0x49b)])!=null?_0x4a96c9:_0x59ce0d[_0x3264b3(0x551)]}],[_0x3d1d50[_0x3264b3(0x1f6)],{'useClass':_0x3d1d50['XHRHTTPImplementation']}],[_0x346629[_0x3264b3(0x2d1)],{'useClass':_0x59ce0d[_0x3264b3(0x53d)]}],[_0x36d396[_0x3264b3(0x525)],{'useClass':_0x59ce0d[_0x3264b3(0x57c)]}],[_0x17128d[_0x3264b3(0x25d)],{'useClass':_0x59ce0d['ImageIoService']}],[_0x59ce0d[_0x3264b3(0x4e2)]],[_0x59ce0d[_0x3264b3(0x4a6)]],[_0x59ce0d[_0x3264b3(0x452)]],[_0x3b02a7],[_0x566b79]];(_0x372b2b=this[_0x3264b3(0x322)])!=null&&_0x372b2b['enableSingleActiveInstanceLock']&&_0x25d390[_0x3264b3(0x3cf)]([_0x33f55f,{'useClass':_0x5cacbb}]),_0x25d390=_0x36d396[_0x3264b3(0x570)](_0x25d390,(_0x4b4e8b=this['_config'])==null?void 0x0:_0x4b4e8b[_0x3264b3(0x3db)]),_0x25d390[_0x3264b3(0x1a9)](_0x3d53f5=>this[_0x3264b3(0x2b0)][_0x3264b3(0x5a2)](_0x3d53f5)),this[_0x3264b3(0x4ab)]();}[_0x51d41b(0x470)](){const _0x14037f=_0x51d41b;this[_0x14037f(0x595)](this[_0x14037f(0x4dc)][_0x14037f(0x48b)](_0x36d396[_0x14037f(0x26a)][_0x14037f(0x43c)],[_0x178c9a])),this['disposeWithMe'](this[_0x14037f(0x4dc)][_0x14037f(0x48b)](_0x36d396[_0x14037f(0x26a)]['UNIVER_SHEET'],[_0x47d6dc]));}[_0x51d41b(0x4ab)](){const _0xcf4eb=_0x51d41b;var _0x2265a2,_0x4c528e;this[_0xcf4eb(0x2b0)][_0xcf4eb(0x58c)](_0x3d1d50[_0xcf4eb(0x2e6)])[_0xcf4eb(0x41e)]({'priority':0x14,'interceptor':_0x3d1d50[_0xcf4eb(0x5a0)]({'maxParallel':0x6})}),(_0x2265a2=this['_config'])!=null&&_0x2265a2[_0xcf4eb(0x1db)]||this[_0xcf4eb(0x2b0)][_0xcf4eb(0x58c)](_0x59ce0d[_0xcf4eb(0x434)])[_0xcf4eb(0x1a0)](),(_0x4c528e=this['_config'])!=null&&_0x4c528e[_0xcf4eb(0x225)]&&this['_injector'][_0xcf4eb(0x58c)](_0x29ed70),this[_0xcf4eb(0x2b0)]['get'](_0x59ce0d[_0xcf4eb(0x4e2)]),this[_0xcf4eb(0x2b0)][_0xcf4eb(0x58b)](_0x59ce0d[_0xcf4eb(0x452)])&&this[_0xcf4eb(0x2b0)][_0xcf4eb(0x58c)](_0x59ce0d['DesktopCollaborationStatusDisplayController']);}},_0x4252ae(_0x59ce0d[_0x51d41b(0x3eb)],'pluginName',_0x6e92ea),_0x59ce0d[_0x51d41b(0x3eb)]=_0xaa5a71([_0x36d396['DependentOn'](_0x346629[_0x51d41b(0x48d)]),_0x467f00(0x1,_0x36d396[_0x51d41b(0x495)]),_0x467f00(0x2,_0x54d1da[_0x51d41b(0x1c2)]),_0x467f00(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x467f00(0x4,_0x36d396[_0x51d41b(0x511)])],_0x59ce0d[_0x51d41b(0x3eb)]),_0x59ce0d['AUTHZ_URL_KEY']=_0x20cd58,_0x59ce0d['COLLAB_SUBMIT_CHANGESET_URL_KEY']=_0x5da533,_0x59ce0d[_0x51d41b(0x36b)]=_0x53dc60,_0x59ce0d[_0x51d41b(0x2f2)]=_0xcb53f5,_0x59ce0d[_0x51d41b(0x457)]=_0xc902da,_0x59ce0d[_0x51d41b(0x540)]=_0x186531,_0x59ce0d['HEARTBEAT_INTERVAL_KEY']=_0x14d59a,_0x59ce0d['HEARTBEAT_TIMEOUT_KEY']=_0x1734e8,_0x59ce0d['ICollaborationSocketService']=_0xe35b0b,_0x59ce0d['IURLService']=_0x56d70c,_0x59ce0d[_0x51d41b(0x3f5)]=_0x341945,_0x59ce0d[_0x51d41b(0x1f3)]=_0x4c6be5,_0x59ce0d[_0x51d41b(0x572)]=_0x2353ba,_0x59ce0d['RETRY_CONNECTING_MAX_COUNT_KEY']=_0xdebb3a,_0x59ce0d[_0x51d41b(0x543)]=_0x5d41d3,_0x59ce0d[_0x51d41b(0x4cf)]=_0x3ee3ce,_0x59ce0d[_0x51d41b(0x224)]=_0x4ad76f,_0x59ce0d[_0x51d41b(0x24a)]=_0x4c781c,_0x59ce0d['SheetCollabCursorShape']=_0x21dc68,_0x59ce0d[_0x51d41b(0x51c)]=_0x161740,_0x59ce0d['deserializeToCombResponse']=_0x251ac9,_0x59ce0d[_0x51d41b(0x36e)]=_0x342ade,Object[_0x51d41b(0x215)](_0x59ce0d,Symbol[_0x51d41b(0x52d)],{'value':'Module'});}));function _0x4682(_0x47e449,_0x9d092){const _0x3f5d0d=_0x3f5d();return _0x4682=function(_0x4682b6,_0x71fc78){_0x4682b6=_0x4682b6-0x18f;let _0x1c9ddb=_0x3f5d0d[_0x4682b6];return _0x1c9ddb;},_0x4682(_0x47e449,_0x9d092);}function _0x3f5d(){const _0xd8b72e=['8wWGKVR','Ready','setCurrentUser','dispose','getFocusedUnit','push','history','LICENSE_MAX_UNITS_EXCEEDED','/object','_updateState','_uiPartsService','_cursorShapes','collaboration.single-unit.warning','HEARTBEAT_INTERVAL','propertyIsEnumerable','Subject','deserializeRangeWithSheet','override','UNIVER_PROJECT','transformSelections','state$','APPLY_NON_SEQUENTIAL_REVISION','handleIRemoveRow','_id','JOINING','find','_transformRemoteChangesetByIMECache','_getScale','JSONX','putCollaborators','OTHER_CLIENTS_EDITING','transformMutation','subscribeEvent','UniverCollaborationClientPlugin','isTransformMutationFailure','Rectangle','SheetSkeletonManagerService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getActiveRange','_collaborationSessionService','_unitID','_clearHeartbeatTimer','[DataLoaderController]','LOCAL_CACHE_INTERVAL_KEY','INVALID_ARGUMENT','getUnitOnRev','onRemoteChangeset','_sendingTimer','listCollaborators','univerjs-icon\x20univerjs-icon-','save','responseType','_initMergeInterceptor','HEARTBEAT_TIMEOUT','/universer-api/authz','routeKey','_colorIndex','batchAllowed','_scheduleCollaborationTimeoutTimer','error','_createHandler','sheets','SHOULD_CLOSE_CONN','_fetchMissChangesets','endColumn','collabCursorState$','switchMap','collab-text-anchor-','string','isTransformChangesetsSuccess','_toggleOnline','_updateLocalCursor','getTime','univer-online-status-icon','getSheetId','_unitOnClients','editingUnit','pending','image/png','3lGTwKO','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','throttleTime','debounceTime','onSyncEditingCollabCursor','registerHTTPInterceptor','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','HELLO','_decreaseWaiting','_initResize','APPLY_REVISION_CONFILICT','_loadSheet','UPDATE_PERMISSION_OBJ','_showConflictNotification','onload','[CollaborationUndoRedoService]','YUUMI_RATE_OVER_LIMIT','_createInitialStateImpl','_exhaustRemoteChangesetQueue','Warning','_docSyncEditingCollabCursorService','@univerjs/telemetry','addEventListener','LocalUndoRedoService','_onOffline','fillStyle','liveShareNewHost','LocalCacheService','_lastPointer','top','_anchorDot','8636286Mzedwr','not_collab','objects','useObservable','UNIVER_DOC','EXCHANGE_SIGN_URL_SERVER_URL_KEY','transformIMECache','Optional','[CollaborationSessionService]','substring','children','_transitionLocked','setParam','_onRemoteChangeset','EffectRefRangId','onTransformRemoteChangesetByIMECache','_configService','Tooltip','\x0aAfter:\x20','_labelPosition','CHANGESET_ACK','CollaborationEntity','_send','#FFF','ImageSourceType','off-line-single_clip0_910_343','DesktopCollaborationStatusDisplayController','addImageSourceCache','pushState','session.connection-failed','FAIL','CollaborationStatusDisplay','toggleOnline','CollaborationSession','_imageSourceCache','debug','ranges','getCollabCursors$','toRgbString','_rescheduleHeartbeat','Error\x20on\x20receiving\x20event','_backgroundColor','getCurrentSelections','_httpService','onTransformChange$','_onConnectionFailed','SNAPSHOT_INVALID_SNAPSHOT','isActive','_memberService','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','FromArray','VIEWPORT_KEY','init','_incrementRevisionNumber','[FetchMissState]','#fff','_registerRenderDependencies','telemetry\x20info\x20is\x20not\x20initialized','getColor','_docStateChangeManagerService','setAlpha','icon','apply','_registerDependencies','colorChannel1','SheetCollaborationEntity','_awaitingChangeset','UniverDrawing','close','svg','WorkbookEditablePermission','LIVESHARE_NEW_HOST','RxDisposable','permission.content','BehaviorSubject','_onCursorDelete','_handler','collaboration.closeRoom','getResourcesRequest','editing\x20status\x20changed\x20to','_getMergeRange','row','collaboration-client.config','registerRenderModule','engine','UniverCollaborationPlugin','getUnit','all','collaboration-client.offline-data-not-saved','currentSkeleton$','exhaustSavingTask','startRow','createIdentifier','ILogService','roomInfos','reverse','reject','saveChangeset','React','socketService','list','_toggleOffline','_startDocCollabCursor','_notificationService','_onJoinRoomEvent','[PendingState]:\x20received\x20rejection.','send','transformChangesets','_onConnectionOpen','joinEvent','DataLoaderController','@univerjs/rpc','enableLocalCache','NOT_COLLAB','resolve','_initModules','isTransformMutationsWithChangesetFailure','clipPath','_shapes','_snapshotServerService','defs','getOffsetConfig','getVpScrollXYInfoByPosToVp','getUndoRedoMutationParamsCache','unit','m2Prime','error$','listRoles','OffLineSingle','UniverNetwork','objectType','resend','color','IBeforeCloseService','path','findNodePositionByCharIndex','_docTransformSelectionsService','_scheduleSaving','JOIN','_executeRemoteChangeset','_drawTextRange','onMissingChangesets','fetchThroughInterceptors','_clearTimeoutTimer','_getSheetObject','concatMap','_drawRectRange','stopTime','rev','saveOfflineData','getUnitId','SNAPSHOT_SERVER_URL_KEY','executeCommand','collabStatus.notCollab','[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.','Rect','_clearOtherTimers','currentColor','backgroundColor','collabStatus.fetchMiss','/collaborator','NEW_CHANGESETS','NO_OTHER_CLIENTS_EDITING','ITelemetryService','_renderManagerService','createElement','getWorkbookSelections','blue400','connection\x20error','arc','CollaborationController','ERROR_IMAGE','_context','ERROR_IMAGE_TYPE','univer-online-status-title','_clearRedo','Starting','ImageUploadStatusType','_acknowledgedAwaitingChangeset','currentTheme$','RichTextEditingMutation','@univerjs/docs','merge','PENDING','Disposable','AWAITING_WITH_PENDING','10LQTBqN','gold400','getDocRanges','_syncEditingCollabCursor','replaceTextRanges','_refRangeService','synced','_disabled','_onFetchMissResult','take','_docSkeletonManagerService','WebSocketService','COMPRESS_MUTATION_APPLY','transformStack\x20failed!','setInterval','_queuedRemoteChangesets','?url=','m1Prime','_cursors','getTypeOfUnitDisposed$','url(#off-line-single_clip0_910_343)','makeDirty','useRef','open$','_applyRemoteChangeset','USERS_LEAVE','width','_onRemoteRejected','@univerjs/drawing','commentUpdateEvent','getCollabEntity','IConfigService','collab-client.tooltip.reconnect','none','@univerjs/core','AWAITING','/new_changes','CONNECTOR_DATA_TOO_LARGE','LOCAL_CACHE_INTERVAL','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','fromEventSubject','requestParams','WebURLService','BASE64','post','handleDeleteRangeMoveUp','LifecycleStages','unitId\x20is\x20not\x20found','UniverUi','awaitingChangeset','_beforeCloseService','IAuthzIoService','[CollaborationSessionService]:\x20socket\x20error','RevisionService','c2Prime','black','3561535wIWryR','getRelativeToViewportCoord','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','toStringTag','_onUserLeave','_onConflict','parseProtocolChangeset','_getUploadFileURL','/universer-api/comb','mutations','VIEW_MAIN','LICENSE_DISTRO_REJECTED','json','_getUndoStack','getMergeData','_listenToOnlineEvent','SetWorksheetActivateCommand','_state','_remoteChangesetQueue','SnapshotServerOverHTTPService','_initCloseConn','column','CommentService','addObjects','beginPath','SEND_CHANGESET_TIMEOUT_KEY','asObservable','_logService','SEND_CHANGESET_TIMEOUT','OnLifecycle','combineLatest','uni.network.url-service','stringify','permission.title','image/gif','refreshPermission','result','change$','/resources','CollaborationSocketService','_localCacheService','_name','_updateLocalCache','_updateCollabCursors','react','_handleHover','_ensureSubject','textRanges','getOwnPropertySymbols','image/bmp','includes','onPointerMove$','collaborators','UniverCollaboration','delete','_commandService','PERMISSION_DENIED','rxjs','assignAColorForMemberID','map','shareReplay','collab-rect-range-','FETCH_MISSING','_collaborationTimeoutTimer','snapshot','symbol','setItem','disposeUnit','_hideTimer','univer-online','mergeOverrideWithDependencies','_init','RETRY_CONNECTING_INTERVAL_KEY','failed\x20to\x20apply\x20missed\x20changesets!','LIVESHARE_FETCH_OPERATIONS','IUIPartsService','/fetchmissing?from=','_telemetryInfo','_getSignURL','_HTTPService','session','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','AuthzIoHttpService','_change$','entries','location','collabStatus.offline','userID','0\x200\x2017\x2016','actions','unshift','_removeClearOtherTimer','IUndoRedoService','delay','OFFLINE','save\x20fail\x20reason\x20is\x20','_onUserJoin','has','get','from','_clearLocalCache','_onCursorUpdate','_socket','replace','YUUMI_SUBSCRIPTION_NOT_FOUND','[CollaborationSession]','onPointerEnter$','disposeWithMe','updateCollaborator','COMPRESS_MUTATION_SEND','_session','_replayCachedMutations','_render','_hover','startsWith','then','getCurrentRevForDocument','&source=','ThresholdInterceptorFactory','runRefRangeMutations','add','univer-pro.collaboration-client.single-active-unit-service','takeUntil','sequenceExecute','univer-online-status','ws://127.0.0.1:8000/universer-api/comb/connect','pauseCollaboration','_snapshotService','joinRsp','_createInitialState','SheetsSelectionsService','div','searchParams','UPDATE_CURSOR','_transformIMECache','COMPLETION_FINISHED','textEncoder','MergeInterceptorFactory','registerComponent','deleteCollaborator','objectActions','status','removeEventListener','unitId','session.will-retry','APPLY_PERMISSION_DENIED','UniverDesign','NodePositionConvertToRectRange','disableLocalCache','_handleHeartbeatEvent','setTimeout','_collabCursorController','_collabCursorState$','UniverCollaborationClient','getConfig','_clearScheduledTask','onCommentUpdate','forEach','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','FileId','subunit','displayName','RECV','ColorKit','_unitStatus','UserManagerService','dispose$','skeleton','hide','_startCollaboration','event$','UNIVER_COLLABORATION_CLIENT_PLUGIN','moveTo','offline','_tryReconnect','restore','_tryEnsureSocket','lineTo','LEAVE','InsertRowCommandId','_onRefRangeChange','IMessageService','IRenderManagerService','params','HttpImport','saveSnapshot','eventID','onRemoteRej','onCommandExecuted','_collaborationController','_range','UNKNOWN_CMD','UNIVER_SLIDE','clearInterval','COMMENT_UPDATE','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','cursorInfo$','members','image/jpg','getParam','_syncEditingCollabCursorService','ICommandService','next','getCollabEntity$','UNIVER_SHEET','toDisposable','drawWith','enableOfflineEditing','parseChangesetToProtocol','localeService','_saveTaskMap','reconnect','_socketReady','createSocket','_schedule','generateRandomId','prototype','conflict.title','concat','attrs','closeSession','objectID','updateMember','@univerjs/network','_throwTelemetryCollaborationNewChangeset','PERMISSION_REJ','exports','/object/','_onLocalMutation','appendMutation','registerRefRange','LOGIN_URL_KEY','Shape','MUTATION','IHTTPImplementation','unsubscribe','FETCH_MISS','_sessionStatus$','_state$','getMemberID','_selfUnitIDs','_docSkeleton','getImageSourceCache','parse','subscribe','focused$','collaMsg','_redoStacks','_getLoginPath','b64DecodeUnicode','evenodd','_instanceService','requireSession','translate(.97)','CHANGESET_REJ','range','_assignedColors','onTransformIME','Tools','_entities','_transformPreviousActiveRange','collabStatus.syncing','_roomMembers$','ITransformService','_getAPIPrefixPath','defineProperty','selections','append','getCoordByCell','assign','getCellPositionByOffset','reduce','_entityInit$','put','awaiting_with_pending','ThemeService','_removeCollabCursors','image/jpeg','isEditing','isArray','SNAPSHOT_URL_KEY','enableAuthServer','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','_sendHeartbeat','_undoRedoService','fill','complete','_loadDoc','242235qaWaWd','LocaleService','SNAPSHOT_HAS_BEEN_REMOVED','updatePermissionPoint','startColumn','lodash','APPLY_REJECT','univer-pro.collaboration-client-socket-service','_getAPIPrefix','values','_cachedData','HEARTBEAT','DEFAULT_FILE_NAME','on-line-single','href','_shouldReportTelemetry','onTransformSelections','_colorAssignService','_removeRoom','@univerjs-pro/collaboration','toString','_compressMutationService','_refreshCollabCursors','fetchMiss','method','closePath','PSEUDO_FETCH_MISSING_RESULT','collaboratorID','onSendChangeset','_initStatusComponent','SessionStatus','InsertSheetMutation','some','CHANGESET_REVISION_CONFILICT','doc.mutation.rich-text-editing','getSheetBySheetId','Vector2','roomMembers$','USERS_ENTER','_color','_urlService','MSG_FOR_ERROR','shouldCloseConn','pipe','6364UlAuHs','HTTPRequest','getActiveSheet','_startTelemetryCollaborationNewChangeset','getUnitStatus$','IImageIoService','_pendingMutations','auth.needGotoLoginAlert','\x20in\x20_schedule.','title','_lockTransition','[PendingState]:\x20received\x20acknowledgement.','memberID','registerOnClose','cmd','call','Injector','sheetId','UniverInstanceType','triggerDblclick','getCurrentUser','_commentUpdate$','transformMutationsWithChangeset','getSheetBlock','useDependency','isPermissionRej','UniverTelemetry','_univerInstanceService','926746uqfecG','collab-text-range-','catch','sessionStatus','_getRedoStack','object','bottom','DocStateChangeManagerService','loadDoc','UNDEFINED','handleInsertCol','set','filter','collaboration-session-retry','ACTIVE_UNIT_EVENT_CHANNEL','body','withCredentials','CollaborationSessionService','_online','debounce','ImageIoService','off-line-single','_clearCollaborationTimeoutTimer','forwardRef','url','SheetPermissionInitController','_anchor','slice','_createSocket','popstate','close$','csRejEvent','collabStatus.conflict','getRangePointData','[SyncedState]:\x20received\x20acknowledgement.','_scene','@univerjs/sheets-ui','url(#on-line-single_clip0_910_349)','rgba(255,\x20255,\x20255,\x200.01)','_timeoutTimer','DocSkeletonManagerService','_waitForHeartbeatResponse','removeMember','getUnitType','_sheetTransformSelectionsService','fillText','_unlockTransition','status$','state','indexOf','_telemetryService','_messageService','xlink:href','roles','serializeDocRange','_handleJoinEvent','onStarting','_members','Inject','transformByState','_injector','getValue','selection','ONLINE','_collaborationPaused','_onRecvEvent','M0\x200H16V16H0z','getOwnPropertyDescriptor','online','_themeService','commentUpdate$','EmptyMutation','onMouseMove','changesets','mapTo','_getSendChangesetTimeout','permissionRejEvent','newValue','_socketMessageSubscription','{fileID}','_revisionService','IUniverInstanceService','[OfflineState]:\x20received\x20acknowledgement.','_handleEvent','_drawAnchor','clsx','now','type','encode','UNKNOWN_CODE','INTERNAL_ERROR','sheetID','DocCollaborationEntity','ISnapshotServerService','_draw','tag','1em','_setupSubUnitSync','LIVESHARE_TERMINATE','action','@univerjs/engine-render','operators','CompressMutationService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getInterceptPoints','handleInsertRangeMoveRight','deepClone','_updateURLWithCurrentState','_sendHeartbeatTimer','_scheduleTimestamp','urlChange$','LICENSE_IMPORT_SIZE_EXCEEDED','?size=','_commentService','HTTPService','createInstance','loadSheet','UnitSnapshot','fromEvent','_http','onPointerLeave$','duration','\x20-\x20','_retryConnectingTimer','/universer-api/snapshot','_scheduleHeartbeat','CollaborationStatus','Undefined','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','syncEditingCollabCursor','_retryCount','_textBubble','_getCurrentRevision','CollaborationEvent','submit\x20changeset\x20error!','_submitChangeset','fetchMissingChangesets','UNIVER_UNKNOWN','_docTransformIMECacheService','Plugin','_eventUnsubscribe','_getSnapshotAPIPrefix','encodeURIComponent','_sheetSkeletonManagerService','min','getSheetObject','fillRule','idSuffix','_onCombEvent','round','_heartbeatTimer','lodash/debounce','code','handleInsertRangeMoveDown','onlineStatusIcon','onlyLocal','_getAnchorBounding','_socketService','_updateStatus','sessionStatus$','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','/block/','_ws','_collabSessionService','@univerjs/sheets','MessageType','className','RETRY_CONNECTING_INTERVAL','target','_localeService','UniverDocs','@univerjs/engine-formula','_config','_cursorInfo$','cursorInfo','_getCtorByUniverType','IPermissionService','_cursor','interceptor','getAncestorScale','Unknown\x20user','saveImage','size','_listenToOfflineEvent','SUCCUSS','_getSaveTimeout','_localStorageService','UniverRpc','updatePermissionObjEvent','readAsDataURL','_clearUndo','loadOfflineData','removeParam','/universer-api/file/{fileID}/sign-url','_roomMembers','@univerjs/ui','BuiltInUIPart','AUTHZ_URL_KEY','defIds','isTransformMutationsWithChangesetSuccess','_onRemoteACK','/unit/','_transformUndoRedoStack','font','_singleActiveUnitService','_replaceFileID','resourceIDs','measureText','name','mapDocumentTypeToUniverType','[CollaborationState]:\x20apply\x20error!','_event$','updateOfflineData','_transformSelections','clearTimeout','/-/object/-/batch_allowed','IContextService','data','_permissionService','LIVESHARE_REQUEST_HOST','POST','InsertRangeMoveRightCommandId','onlineStatus','allowed','_hovered','split','roomMembers','getMember','/-/object/list','[OfflineState]:\x20received\x20changeset.','TextSelectionManagerService','_substituteRedoStack','COLORS','unitID','fetch_missing','12434373FUFAPg','YUUMI_UNABLE_LOAD_URL','resize','flatMap','IMEInputManagerService','TEXT_RANGE_LAYER_INDEX','subUnitId','message$','_type','max','COLLAB_WEB_SOCKET_URL_KEY','HttpExport','compose','serializeCombRequest','SYNCED','_waitCount','getCurrentUnitForType','Error','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','hovered','[SyncedState]:\x20received\x20rejection.','_transformService','_scheduleClearOtherTimer','_status$','_substituteUndoStack','INGEST','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','c1Prime','325915wkeJAn','setShapeProps','headers','_saveCache','UnitEmbedded','onMissedChangesetFetched','_initUnitPermissionChange','revision','createCollaborator','function','onRemoteAck','distinctUntilChanged','_onMessage','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','rxjs/operators','_transformStack','baseRev','extend','NOT_FOUND','_isPermissionRej','INotificationService','length','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','fetching\x20missing\x20changesets\x20from\x20','_updateSubUnitFromURLParams','transform','file','_checkMissing','every','transformUndoRedo','connectInjector','unknown','[CollaborationEntity]','SetSelectionsOperation','toggleOffline','fromCollab','LICENSE_EXPORT_SIZE_EXCEEDED','SUBMIT_CHANGESET','amd','/universer-api/stream/file/upload','UNRECOGNIZED','activeSheet$','clear','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','conflict','setWaitCount','_socket$','/allowed','incrementRevForDocument','_stopTelemetryCollaborationNewChangeset','hasOwnProperty','originalMeta','LIVESHARE_OPERATION','ERROR_EXCEED_SIZE','CONFLICT','RefRangeService','serializeRangeWithSheet','getTypeOfUnitAdded$','UniverSheets','DeleteRangeMoveLeftCommandId','_initStatusListener','UNAUTHENTICATED','getSkeleton','DisposableCollection','ALREADY_EXISTS','IDLE','_initCommandExecutedListener','addObject','replaceState','_sessions','show','CommandType','text','contains','newCsEvent','on-line-single_clip0_910_349','awaiting'];_0x3f5d=function(){return _0xd8b72e;};return _0x3f5d();}