@univerjs-pro/collaboration-client 0.1.13 → 0.1.15

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 _0x3f00(_0x1dc1ff,_0x6e399){const _0x4912fb=_0x4912();return _0x3f00=function(_0x3f009f,_0x591f33){_0x3f009f=_0x3f009f-0x129;let _0xcfc9f6=_0x4912fb[_0x3f009f];return _0xcfc9f6;},_0x3f00(_0x1dc1ff,_0x6e399);}function _0x4912(){const _0x39c5e5=['_renderManagerService','getRenderById','MSG_FOR_ERROR','getAncestorScale','univer-pro.collaboration-client.single-active-unit-service','unitId','BehaviorSubject','AuthzIoHttpService','_anchorDot','29218nTUomN','makeDirty','addObject','unitID','_session','dispose$','_initModules','submit\x20changeset\x20error!','_unitID','compose','_localCacheService','_sendHeartbeatTimer','UniverNetwork','getMemberID','_onRemoteACK','font','getActiveRange','_docTransformSelectionsService','next','7QCymNp','_selfUnitIDs','SNAPSHOT_INVALID_SNAPSHOT','save','_textBubble','name','HEARTBEAT','DataLoaderController','[CollaborationEntity]','PENDING','clsx','Ready','status','transformMutation','workbook','LICENSE_MAX_UNITS_EXCEEDED','from','univerjs-icon\x20univerjs-icon-','listCollaborators','Vector2','IBeforeCloseService','getDocObject','_cursorInfo$','image/jpg','runRefRangeMutations','_onFetchMissResult','stringify','_colorAssignService','memberID','eventID','/collaborator','some','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','displayName','_onUserJoin','unknown','save\x20fail\x20reason\x20is\x20','Module','interceptor','/universer-api/snapshot/','_syncEditingCollabCursor','restore','conflict','transformStack\x20failed!','univer-online-status-title','OnLineSingle','_id','getImage','UniverEngineFormula','_handleHover','getTime','_online','rxjs','InsertRowCommandId','_socketService','session.connection-failed','_memberService','UniverDrawing','_send','UniverUi','_getSaveTimeout','getTypeOfUnitDisposed$','_updateLocalCursor','attrs','session','#FFF','purple300','[OfflineState]:\x20received\x20acknowledgement.','conflict.content','_onRefRangeChange','RxDisposable','getConfig','amd','_messageService','userID','_getCtorByUniverType','auth.needGotoLoginAlert','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_transitionLocked','?size=','Unknown\x20user','connection\x20error','selections','addEventListener','_range','ILocalStorageService','operators','_createHandler','_startSheetCollabCursor','HELLO','loadOfflineData','bottom','_updateStatus','ACTIVE_UNIT_EVENT_CHANNEL','onSendChangeset','_acknowledgedAwaitingChangeset','CollaborationStatus','push','collabStatus.conflict','[SyncedState]:\x20received\x20rejection.','_onConflict','collab-text-range-','/new_changes','enableAuthServer','reject','_localeService','beginPath','assign','setActiveRange','_loadDoc','@wendellhu/redi','NOT_FOUND','m1Prime','UNDEFINED','switchMap','NEW_CHANGESETS','ImageSourceType','...','_replaceFileID','_startDocCollabCursor','popstate','_loadSheet','UniverCollaborationClient','getCollabCursors$','APPLY_PERMISSION_DENIED','removeParam','_getMergeRange','_setupSubUnitSync','file','FETCH_MISS','COMPRESS_MUTATION_APPLY','_saveCache','createCollaborator','getCurrentUnitForType','&to=','fillRule','RETRY_CONNECTING_MAX_COUNT','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_scene','_collaborationController','connectInjector','_getRedoStack','FromArray','delay','addObjects','WebURLService','OTHER_CLIENTS_EDITING','ThemeService','_sheetSkeletonManagerService','width','isTransformChangesetsSuccess','_name','_waitCount','socket\x20close','xlink:href','[SyncedState]:\x20received\x20acknowledgement.','XHRHTTPImplementation','SYNCED','close','values','registerRefRange','_roomMembers','cursorInfo','onPointerEnterObserver','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getOwnPropertySymbols','objectID','getUnitType','@univerjs/design','replaceState','_hideTimer','UNAUTHENTICATED','collaboration-client.offline-data-not-saved','ranges','_assignedColors','getCurrent','_transformService','UUID','isEditing','textEncoder','_lockTransition','substring','USERS_LEAVE','getCoordByCell','onMouseMove','message$','M0\x200H16V16H0z','LocalUndoRedoService','getSheetId','complete','@univerjs/sheets','idSuffix','cmd','/resources','setInterval','revision','fetch_missing','Disposable','_commandService','_getSignURL','LIVESHARE_NEW_HOST','\x0aCurrent:\x20','_sessionStatus$','putCollaborators','merge','OFFLINE','2012XpVcFx','4376OXhGLq','SetTextSelectionsOperation','b64DecodeUnicode','CollaborationClientPlugin','_collabSessionService','routeKey','current','LIVESHARE_FETCH_OPERATIONS','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','resend','LOCAL_CACHE_INTERVAL','/universer-api/stream/file/upload','hasOwnProperty','indexOf','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','MUTATION','ERROR_IMAGE','_setupBeforeClosingHandler','code','\x20to\x20','_transformUndoRedoStack','saveImage','ALREADY_EXISTS','_color','HEARTBEAT_TIMEOUT_KEY','APPLY_REVISION_CONFILICT','_hovered','_currentUser','_type','registerComponent','getActiveSheet','DesktopCollaborationStatusDisplayController','Warning','_scheduleClearOtherTimer','children','CollaborationStatusDisplay','handleInsertCol','_tryEnsureSocket','LIVESHARE_TERMINATE','693shiDpd','EffectRefRangId','_initStatusListener','get','conflict.title','_handler','includes','svg','_change$','/allowed','JOIN','SelectionManagerService','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','_createInitialStateImpl','isPermissionRej','sequenceExecute','FETCH_MISSING','_getSendChangesetTimeout','onlineStatusIcon','mutations','PERMISSION_DENIED','arc','_http','ILogService','_permissionService','batchAllowed','hide','onlineStatus','handleIRemoveCol','originalMeta','OnLifecycle','unsubscribe','transformSelections','_transformSelections','registerHTTPInterceptor','ICommandService','className','CHANGESET_REJ','fetchMissingChangesets','column','getRoom','Injector','Optional','subscribe','[CollaborationUndoRedoService]','liveShareNewHost','replaceTextRanges','blue400','_configService','docStateChange$','updateCollaborator','@univerjs/docs','_singleActiveUnitService','csRejEvent','filter','objectType','json','setItem','/-/object/-/batch_allowed','onRemoteAck','UNKNOWN_CMD','saveOfflineData','storage','_updateState','data','editing\x20status\x20changed\x20to','LOCAL_CACHE_INTERVAL_KEY','forwardRef','enableLocalCache','setAlpha','collabStatus.notCollab','fill','combineLatest','CollaborationSessionService','_onCombEvent','status$','_unlockTransition','_getDocObject','UniverEngineRender','params','_clearTimeoutTimer','IImageIoService','call','_init','_onRemoteChangeset','toString','_httpService','synced','INVALID_ARGUMENT','_createSocket','SetSelectionsOperation','_updateSubUnitFromURLParams','getSelections','/block/','top','UNIVER_SLIDE','TOO_MANY_REQUESTS','rxjs/operators','apply','SheetSkeletonManagerService','@univerjs/rpc','parse','newValue','objectActions','getInterceptPoints','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','dispose','remove','_onRecvEvent','_toggleOffline','div','APPLY_REJECT','executeCommand','VIEW_MAIN','Subject','RegularPolygon','put','takeUntil','_getAPIPrefixPath','useObservable','Rect','permissionRejEvent','_isPermissionRej','members','transformUndoRedo','_univerInstanceService','fetchThroughInterceptors','_clearRedo','shareReplay','_undoStacks','roles','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','UniverInstanceType','getOffsetConfig','handleInsertRow','generateRandomId','_handleLeaveEvent','@univerjs/engine-formula','_getLoginPath','SNAPSHOT_SERVER_URL_KEY','error','JOINING','COLORS','_beforeCloseService','_drawRange','fromCollab','assignAColorForMemberID','_getAnchorBounding','CollaborationSession','session.room-full','_handleEvent','incrementRevForDocument','onPointerLeaveObserver','BASE64','INotificationService','_decreaseWaiting','React','collabStatus.syncing','handleDeleteRangeMoveLeft','_draw','_initStatusComponent','getItem','sheetID','onCommandExecuted','unit','getUnitId','readAsDataURL','href','propertyIsEnumerable','awaitingChangeset','lineTo','target','serializeTextRange','parseProtocolChangeset','ImageUploadStatusType','currentColor','onTransformIME','UNRECOGNIZED','defIds','_HTTPService','_sendingTimer','_state$','0\x200\x2016\x2016','SUCCUSS','_replayCachedMutations','getUndoRedoMutationParamsCache','DeleteRangeMoveLeftCommandId','appendMutation','_cachedData','_scheduleReconnection','_compressMutationService','subUnitId','deserializeToCombResponse','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','startRow','_fetchMissChangesets','COLLAB_WEB_SOCKET_URL_KEY','getCollabEntity$','getCollabEntity','univer-online-status-icon','DisposableCollection','_handleHeartbeatEvent','_labelPosition','/object','IMEInputManagerService','IMessageService','useRef','moveTo','transform','_roomMembers$','pushState','_imageSourceCache','/unit/','IPermissionService','saveSheetBlock','_refRangeService','CollaborationEvent','UNIVER_DOC','_event$','Starting','_awaitingChangeset','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','show','_updateLocalCache','has','defs','patch','_substituteRedoStack','@univerjs/engine-render','removeMember','_removeCollabCursors','LocalCacheService','IConfigService','setWaitCount','?url=','_heartbeatTimer','_transformIMECache','getResourcesRequest','_executeRemoteChangeset','RemoveRowCommandId','_clearCollaborationTimeoutTimer','CHANGESET_ACK','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','_onCursorUpdate','path','@univerjs/core','find','512265prXYSL','online','HEARTBEAT_INTERVAL','@univerjs/sheets-ui','FAIL','skeleton','AWAITING','_updateCollabCursors','_updateURLWithCurrentState','transformRemoteChangeset','isArray','toggleOnline','image/png','handleInsertRangeMoveDown','onRemoteChangeset','LICENSE_EXPORT_SIZE_EXCEEDED','_createInitialState','_socket$','extend','endRow','_applyRemoteChangeset','c1Prime','url(#$1','_onConnectionFailed','post','off-line-single_clip0_910_343','type','collabCursorState$','range','state','map','SnapshotService','getRangePointData','createInstance','evenodd','resourceIDs','height','_socketMessageSubscription','getScrollXYByRelativeCoords','_exhaustRemoteChangesetQueue','deleteCollaborator','concatMap','TEXT_RANGE_LAYER_INDEX','urlChange$','max','RemoveColCommandId','MoveRangeCommandId','_waitForHeartbeatResponse','icon','title','_getUndoStack','verdancy600','getImageSourceCache','textRanges','deepClone','_getScale','_getUploadFileURL','HEARTBEAT_INTERVAL_KEY','onTransformSelections','session.will-retry','socketService','UniverCore','create','roomMembers$','[OfflineState]:\x20received\x20rejection.','UniverCollaboration','_cursor','exports','InsertColCommandId','toDisposable','Shape','row','LOGIN_URL_KEY','collabStatus.offline','\x20in\x20_schedule.','disposeUnit','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','disableLocalCache','_queuedRemoteChangesets','_timeoutTimer','send','sessionStatus$','reduce','_scheduleSaving','HEARTBEAT_TIMEOUT','fetching\x20missing\x20changesets\x20from\x20','saveChangeset','NO_OTHER_CLIENTS_EDITING','_substituteUndoStack','_collaborationPaused','findNodePositionByCharIndex','drawWith','serializeRangeWithSheet','min','_shapes','_onMessage','getSheetBySheetId','replace','_sessions','searchParams','debug','CommandType','_docStateChangeManagerService','hovered','_uiPartsService','IUIPartsService','UNKNOWN_CODE','use','CONFLICT','location','_removeRoom','rgba(255,\x20255,\x20255,\x200.01)','toRgbString','permission.content','[DataLoaderController]','startColumn','unload','debounce','_drawAnchor','_retryConnectingTimer','_members','_remoteChangesetQueue','_onJoinRoomEvent','_notificationService','distinctUntilChanged','[CollaborationSession]','onMissedChangesetFetched','@univerjs/drawing','UniverSheets','Plugin','@univerjs-pro/collaboration','failed\x20to\x20apply\x20missed\x20changesets!','parseChangesetToProtocol','IDLE','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','_entities','_handleJoinEvent','on-line-single','addImageSourceCache','createElement','append','1397090pkoPOR','RichTextEditingMutation','onload','state$','_status$','_transformUndoredo','RECV','_pendingMutations','size','getColor','UNIVER_SHEET','handleIRemoveRow','closePath','WorkbookEditablePermission','getUnitStatus$','mergeOverrideWithDependencies','getSheetObject','handleMoveRange','loadSheet','TextSelectionManagerService','sheetId','collaMsg','_eventUnsubscribe','updateOfflineData','_removeClearOtherTimer','1em','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_clearOtherTimers','override','_clearScheduledTask','awaiting_with_pending','contains','Univer','@wendellhu/redi/react-bindings','_revisionService','_retryCount','@univerjs/ui','RETRY_CONNECTING_INTERVAL','CHANGESET_REVISION_CONFILICT','event$','requireSession','SEND_CHANGESET_TIMEOUT_KEY','LIVESHARE_REQUEST_HOST','411888qxQBPN','UNIVER_UNKNOWN','measureText','SetWorksheetActivateCommand','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','entries','NOT_COLLAB','getValue','onTransformRemoteChangesetByIMECache','clearTimeout','_rescheduleHeartbeatEvent','_onRemoteRejected','FileId','_colorIndex','ISnapshotServerService','/universer-api/file/{fileID}/sign-url','_clearHeartbeatTimer','_ensureSubject','_render','on-line-single_clip0_910_349','Error','DEFAULT_FILE_NAME','getCurrentRevForDocument','COLLAB_SUBMIT_CHANGESET_URL_KEY','Inject','COLLAB_SUBMIT_CHANGESET_URL','pending','_lastPointer','_snapshotService','_onUserLeave','clear','2905gDbUyB','LocaleService','SUBMIT_CHANGESET','serializeCombRequest','onSyncEditingCollabCursor','380124yvbNVp','clearInterval','black','IUndoRedoService','_transformStack','/universer-api/authz','_showConflictNotification','PERMISSION_REJ','init','collab-text-anchor-','5nuVvul','_docSkeletonManagerService','_scheduleTimestamp','forEach','_saveTaskMap','permission.title','_onCursorDelete','_getCurrentRevision','onMissingChangesets','fillStyle','createIdentifier','_undoRedoService','_sendHeartbeat','_submitChangeset','_exhaustSavingTask','InsertRangeMoveDownCommandId','Steady','INGEST','_unitOnClients','_onConnectionOpen','transformMutationsWithChangeset','ERROR_EXCEED_SIZE','HTTPService','clipPath','univer-offline','delete','[FetchMissState]','UPDATE_CURSOR','\x20-\x20','onPointerMoveObserver','Tools','[CollaborationSessionService]','c2Prime','getFocusedUnit','_docSyncEditingCollabCursorService','lodash','handleInsertRangeMoveRight','AWAITING_WITH_PENDING','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','currentSkeleton$','src','_collabCursorController','setParam','VIEWPORT_KEY','_socketReady','MessageType','fillText','debounceTime','localeService','_getSheetObject','image/gif','concat','isTransformMutationFailure','getCurrentUser','listRoles','ThresholdInterceptorFactory','_disableEditing','_schedule','history','cursorInfo$','doc.mutation.rich-text-editing','all','_disabled','_entityInit$','list','subunit','EXCHANGE_SIGN_URL_SERVER_URL_KEY','leaveEvent','currentTheme$','_onLocalMutation','_syncEditingCollabCursorService','_startCollaboration','roomInfos','isTransformMutationsWithChangesetFailure','onStarting','_socket','actions','11nPXMfM','onRemoteRej','editingUnit','_joinRoom','deserializeRangeWithSheet','IURLService','BuiltInUIPart','m2Prime','flatMap','_incrementRevisionNumber','_docTransformIMECacheService','liveShareOperation','_logService','_snapshotServerService','change$','awaiting','off-line-single','ONLINE','isActive','_hover','_state','infoRsp','USERS_ENTER','updatePermissionPoint','getParam','ITransformService','trim','setUndoRedoMutationParamsCache','_transformRemoteChangesetByIMECache','getTypeOfUnitAdded$','/universer-api/snapshot','whenReady','9znBZeB','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getMember','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_unitStatus','_themeService','setShapeProps','set','selection','add','tag','roomMembers','_transformPreviousActiveRange','focused$','enableOfflineEditing','toggleOffline','_ws','length','loadDoc','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','CONNECTOR_DATA_TOO_LARGE','_config','syncEditingCollabCursor','\x0aAfter:\x20','lodash/debounce','baseRev','_toggleOnline','take','disposeWithMe','_collabCursorState$','open$','rev','allowed','unshift','offline','LIVESHARE_OPERATION','text','transformChangesets','body','collaboration.single-unit.warning','#fff','none','random','onStateChange','_cursors','CompressMutationService','useDependency','fromEvent','IUniverInstanceService','createSocket','then','registerOnClose','/-/object/list','image/bmp','_clearUndo','DeleteRangeMoveUpCommandId','[CollaborationState]:\x20apply\x20error!','NodePositionConvertToCursor','isTransformMutationsWithChangesetSuccess','enableSingleActiveInstanceLock','_injector','LEAVE','string','collabStatus.fetchMiss','prototype','function','asObservable','_urlService','ERROR_IMAGE_TYPE','not_collab','_collaborationTimeoutTimer','_anchor','transformByState','CollaborationSocketService','_docSkeleton','ColorKit','round','PSEUDO_FETCH_MISSING_RESULT','updateMember','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','WebSocketService','color','RevisionService','collabStatus.synced','LifecycleStages','POST','@univerjs/network','getUniverSheetInstance','pipe','colorChannel1','/role','objects','_localStorageService','CollaborationController','jiqing500','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','labelPosition','translate(.97)','encode','_checkMissing','COMPRESS_MUTATION_SEND','saveSnapshot'];_0x4912=function(){return _0x39c5e5;};return _0x4912();}(function(_0xc57b44,_0x2f7ec3){const _0x1dbd92=_0x3f00,_0x5184e8=_0xc57b44();while(!![]){try{const _0x21f0c8=-parseInt(_0x1dbd92(0x447))/0x1*(-parseInt(_0x1dbd92(0x434))/0x2)+-parseInt(_0x1dbd92(0x17b))/0x3*(-parseInt(_0x1dbd92(0x153))/0x4)+parseInt(_0x1dbd92(0x358))/0x5*(-parseInt(_0x1dbd92(0x32a))/0x6)+parseInt(_0x1dbd92(0x349))/0x7*(-parseInt(_0x1dbd92(0x154))/0x8)+-parseInt(_0x1dbd92(0x3c5))/0x9*(-parseInt(_0x1dbd92(0x2ff))/0xa)+-parseInt(_0x1dbd92(0x3a5))/0xb*(-parseInt(_0x1dbd92(0x34e))/0xc)+parseInt(_0x1dbd92(0x272))/0xd;if(_0x21f0c8===_0x2f7ec3)break;else _0x5184e8['push'](_0x5184e8['shift']());}catch(_0x55cc31){_0x5184e8['push'](_0x5184e8['shift']());}}}(_0x4912,0x209da),function(_0x3bd12a,_0x1c55b2){const _0x476b89=_0x3f00;typeof exports=='object'&&typeof module<'u'?_0x1c55b2(exports,require(_0x476b89(0x270)),require(_0x476b89(0x143)),require(_0x476b89(0x12d)),require(_0x476b89(0x323)),require('@univerjs-pro/collaboration'),require(_0x476b89(0x4b5)),require('rxjs'),require(_0x476b89(0x1dc)),require(_0x476b89(0x1ae)),require(_0x476b89(0x41b)),require(_0x476b89(0x2f1)),require('@univerjs/engine-formula'),require('lodash/debounce'),require(_0x476b89(0x25f)),require('@univerjs/sheets-ui'),require(_0x476b89(0x320)),require('react'),require(_0x476b89(0x451)),require('@univerjs/rpc')):typeof define=='function'&&define[_0x476b89(0x48f)]?define([_0x476b89(0x2b5),_0x476b89(0x270),_0x476b89(0x143),'@univerjs/design',_0x476b89(0x323),_0x476b89(0x2f4),_0x476b89(0x4b5),'rxjs',_0x476b89(0x1dc),_0x476b89(0x1ae),_0x476b89(0x41b),_0x476b89(0x2f1),_0x476b89(0x204),_0x476b89(0x3dd),_0x476b89(0x25f),_0x476b89(0x275),_0x476b89(0x320),'react','clsx',_0x476b89(0x1df)],_0x1c55b2):(_0x3bd12a=typeof globalThis<'u'?globalThis:_0x3bd12a||self,_0x1c55b2(_0x3bd12a[_0x476b89(0x4c1)]={},_0x3bd12a[_0x476b89(0x2af)],_0x3bd12a[_0x476b89(0x2f2)],_0x3bd12a['UniverDesign'],_0x3bd12a[_0x476b89(0x482)],_0x3bd12a[_0x476b89(0x2b3)],_0x3bd12a[_0x476b89(0x4b5)],_0x3bd12a[_0x476b89(0x47b)],_0x3bd12a['rxjs'][_0x476b89(0x49d)],_0x3bd12a['UniverDocs'],_0x3bd12a[_0x476b89(0x440)],_0x3bd12a[_0x476b89(0x480)],_0x3bd12a[_0x476b89(0x477)],_0x3bd12a[_0x476b89(0x37b)][_0x476b89(0x2e7)],_0x3bd12a[_0x476b89(0x1c9)],_0x3bd12a['UniverSheetsUi'],_0x3bd12a[_0x476b89(0x320)],_0x3bd12a[_0x476b89(0x217)],_0x3bd12a['clsx'],_0x3bd12a['UniverRpc']));}(this,function(_0x5bd0fe,_0x40aff1,_0x361837,_0x4ae90e,_0x4f2827,_0x57eaa4,_0x58498f,_0x3171f1,_0x32d0c5,_0xc138e5,_0x12f0de,_0x3ce361,_0x44757f,_0x57a849,_0x1fd8d9,_0x39fa2f,_0x423c0e,_0x2def2a,_0x373f90,_0x33ffd7){'use strict';const _0x50a247=_0x3f00;var _0x51c741=Object['defineProperty'],_0x1ac24e=(_0x52a2c7,_0x165070,_0x233186)=>_0x165070 in _0x52a2c7?_0x51c741(_0x52a2c7,_0x165070,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x233186}):_0x52a2c7[_0x165070]=_0x233186,_0x22b1a2=(_0x3dcf38,_0x128595,_0x3e26bd)=>(_0x1ac24e(_0x3dcf38,typeof _0x128595!='symbol'?_0x128595+'':_0x128595,_0x3e26bd),_0x3e26bd),_0x2e1c24,_0x580026=(_0x51c462=>(_0x51c462[_0x51c462[_0x50a247(0x4b8)]=0x0]='UNDEFINED',_0x51c462[_0x51c462['OK']=0x1]='OK',_0x51c462[_0x51c462['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x51c462[_0x51c462[_0x50a247(0x18f)]=0x3]=_0x50a247(0x18f),_0x51c462[_0x51c462[_0x50a247(0x4b6)]=0x4]=_0x50a247(0x4b6),_0x51c462[_0x51c462[_0x50a247(0x130)]=0x5]=_0x50a247(0x130),_0x51c462[_0x51c462[_0x50a247(0x16a)]=0x6]=_0x50a247(0x16a),_0x51c462[_0x51c462[_0x50a247(0x1d3)]=0x7]=_0x50a247(0x1d3),_0x51c462[_0x51c462[_0x50a247(0x1db)]=0x8]='TOO_MANY_REQUESTS',_0x51c462[_0x51c462[_0x50a247(0x325)]=0x1389]=_0x50a247(0x325),_0x51c462[_0x51c462[_0x50a247(0x449)]=0x1771]=_0x50a247(0x449),_0x51c462[_0x51c462[_0x50a247(0x1ea)]=0x1b59]=_0x50a247(0x1ea),_0x51c462[_0x51c462['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x51c462[_0x51c462[_0x50a247(0x16d)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x51c462[_0x51c462['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x50a247(0x4c3),_0x51c462[_0x51c462[_0x50a247(0x3d9)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x51c462[_0x51c462[_0x50a247(0x456)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x51c462[_0x51c462[_0x50a247(0x424)]=0x232a]=_0x50a247(0x424),_0x51c462[_0x51c462['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x51c462[_0x51c462[_0x50a247(0x281)]=0x232c]=_0x50a247(0x281),_0x51c462[_0x51c462['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x51c462[_0x51c462[_0x50a247(0x22c)]=-0x1]=_0x50a247(0x22c),_0x51c462))(_0x580026||{}),_0x4cf902=(_0x481a69=>(_0x481a69[_0x481a69[_0x50a247(0x32b)]=0x0]=_0x50a247(0x32b),_0x481a69[_0x481a69[_0x50a247(0x254)]=0x1]='UNIVER_DOC',_0x481a69[_0x481a69[_0x50a247(0x309)]=0x2]=_0x50a247(0x309),_0x481a69[_0x481a69['UNIVER_SLIDE']=0x3]=_0x50a247(0x1da),_0x481a69[_0x481a69[_0x50a247(0x22c)]=-0x1]=_0x50a247(0x22c),_0x481a69))(_0x4cf902||{}),_0x546f87=(_0x66ef0c=>(_0x66ef0c[_0x66ef0c[_0x50a247(0x1b7)]=0x0]='UNKNOWN_CMD',_0x66ef0c[_0x66ef0c[_0x50a247(0x4a0)]=0x1]=_0x50a247(0x4a0),_0x66ef0c[_0x66ef0c['JOIN']=0x2]=_0x50a247(0x185),_0x66ef0c[_0x66ef0c[_0x50a247(0x402)]=0x3]='LEAVE',_0x66ef0c[_0x66ef0c['INGEST']=0x4]=_0x50a247(0x369),_0x66ef0c[_0x66ef0c[_0x50a247(0x44d)]=0x5]=_0x50a247(0x44d),_0x66ef0c[_0x66ef0c[_0x50a247(0x305)]=0x6]=_0x50a247(0x305),_0x66ef0c[_0x66ef0c['UNRECOGNIZED']=-0x1]=_0x50a247(0x22c),_0x66ef0c))(_0x546f87||{}),_0x3257cd=(_0x3f422d=>(_0x3f422d[_0x3f422d['UNKNOWN_CODE']=0x0]=_0x50a247(0x2dc),_0x3f422d[_0x3f422d['OK']=0x1]='OK',_0x3f422d[_0x3f422d['FAIL']=0x2]=_0x50a247(0x276),_0x3f422d[_0x3f422d[_0x50a247(0x22c)]=-0x1]=_0x50a247(0x22c),_0x3f422d))(_0x3257cd||{}),_0x570165=(_0x5cf440,_0xd94224,_0x362959,_0x2210a3)=>{const _0x19fb07=_0x50a247;for(var _0xe8197c=_0xd94224,_0x5817b2=_0x5cf440[_0x19fb07(0x3d6)]-0x1,_0x11ffc4;_0x5817b2>=0x0;_0x5817b2--)(_0x11ffc4=_0x5cf440[_0x5817b2])&&(_0xe8197c=_0x11ffc4(_0xe8197c)||_0xe8197c);return _0xe8197c;},_0x4c5284=(_0x5e2c2e,_0x351353)=>(_0x4373fd,_0xb5dc88)=>_0x351353(_0x4373fd,_0xb5dc88,_0x5e2c2e);let _0x370285=class extends _0x40aff1[_0x50a247(0x14a)]{constructor(_0x1e0fc8){const _0x110f3f=_0x50a247;super(),_0x22b1a2(this,'_roomMembers',new Map()),_0x22b1a2(this,'_currentUser',null),(this[_0x110f3f(0x1f8)]=_0x1e0fc8,this[_0x110f3f(0x3e1)](_0x40aff1[_0x110f3f(0x2b7)](_0x3171f1[_0x110f3f(0x151)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x40aff1[_0x110f3f(0x1ff)]['UNIVER_SHEET'])[_0x110f3f(0x41d)](_0x32d0c5[_0x110f3f(0x290)](_0x5a2eaa=>_0x5a2eaa[_0x110f3f(0x220)]())),this[_0x110f3f(0x1f8)]['getTypeOfUnitDisposed$'](_0x40aff1[_0x110f3f(0x1ff)][_0x110f3f(0x254)])[_0x110f3f(0x41d)](_0x32d0c5['map'](_0x4a28d9=>_0x4a28d9['getUnitId']())),this['_univerInstanceService'][_0x110f3f(0x484)](_0x40aff1[_0x110f3f(0x1ff)][_0x110f3f(0x1da)])[_0x110f3f(0x41d)](_0x32d0c5[_0x110f3f(0x290)](_0x32b3b2=>_0x32b3b2[_0x110f3f(0x220)]())))[_0x110f3f(0x1a6)](_0x518715=>this[_0x110f3f(0x2e0)](_0x518715)))));}['setCurrentUser'](_0x1f3684){const _0x8a7196=_0x50a247;this[_0x8a7196(0x16f)]=_0x1f3684;}[_0x50a247(0x38d)](){const _0x5d5ce8=_0x50a247;return this[_0x5d5ce8(0x16f)];}[_0x50a247(0x413)](_0x4ef25d,_0x29f630){const _0x3e6c30=_0x50a247;let _0x44350e=this[_0x3e6c30(0x4e8)]['get'](_0x4ef25d);_0x44350e||(_0x44350e=new _0x23a441(),this[_0x3e6c30(0x4e8)][_0x3e6c30(0x3cc)](_0x4ef25d,_0x44350e)),_0x44350e[_0x3e6c30(0x413)](_0x29f630);}['removeMember'](_0x1e103d,_0x42f25d){const _0x52ecf8=_0x50a247,_0x4c7831=this[_0x52ecf8(0x4e8)][_0x52ecf8(0x17e)](_0x1e103d);_0x4c7831&&_0x4c7831[_0x52ecf8(0x260)](_0x42f25d);}[_0x50a247(0x1a3)](_0x40886d){const _0x25b41a=_0x50a247;return this[_0x25b41a(0x4e8)][_0x25b41a(0x17e)](_0x40886d);}[_0x50a247(0x3c7)](_0x5aee9f,_0x51bc97){const _0x3b09eb=_0x50a247,_0x234693=this[_0x3b09eb(0x4e8)]['get'](_0x5aee9f);if(_0x234693)return _0x234693[_0x3b09eb(0x3c7)](_0x51bc97);}[_0x50a247(0x2e0)](_0x48794b){const _0x27c81a=_0x50a247,_0x596e9b=this[_0x27c81a(0x4e8)][_0x27c81a(0x17e)](_0x48794b);_0x596e9b&&(_0x596e9b[_0x27c81a(0x1e5)](),this[_0x27c81a(0x4e8)][_0x27c81a(0x371)](_0x48794b));}['dispose'](){const _0x2bda1d=_0x50a247;this[_0x2bda1d(0x4e8)][_0x2bda1d(0x35b)](_0x549f24=>_0x549f24[_0x2bda1d(0x1e5)]()),this[_0x2bda1d(0x4e8)][_0x2bda1d(0x348)]();}};_0x370285=_0x570165([_0x4c5284(0x0,_0x40aff1[_0x50a247(0x3f5)])],_0x370285);class _0x23a441 extends _0x40aff1['Disposable']{constructor(){const _0x294648=_0x50a247;super(...arguments),_0x22b1a2(this,_0x294648(0x2ea),new Map());}[_0x50a247(0x1e5)](){const _0x3368f7=_0x50a247;this[_0x3368f7(0x2ea)][_0x3368f7(0x348)]();}[_0x50a247(0x413)](_0x4bd7e8){const _0x251dfd=_0x50a247;this[_0x251dfd(0x2ea)][_0x251dfd(0x3cc)](_0x4bd7e8['memberID'],_0x4bd7e8);}['removeMember'](_0x45b466){const _0x27b4d1=_0x50a247;this['_members'][_0x27b4d1(0x371)](_0x45b466);}[_0x50a247(0x3c7)](_0x23e11f){const _0x3101cf=_0x50a247;return this['_members'][_0x3101cf(0x17e)](_0x23e11f);}}function _0x22048b(_0x14cdcb){const _0x21ed60=_0x50a247;var _0x3e0a26,_0x1eed14,_0x2b7511,_0x1cc096;const _0x2e0972=_0x14cdcb[_0x21ed60(0x1bb)],_0x2816ce=JSON[_0x21ed60(0x1e0)](_0x2e0972);switch(_0x2816ce[_0x21ed60(0x145)]){case _0x546f87['HEARTBEAT']:case _0x546f87[_0x21ed60(0x4a0)]:{const _0x3c8387=_0x2816ce[_0x21ed60(0x3ba)];return{..._0x2816ce,'data':_0x3c8387,'cmd':_0x2816ce[_0x21ed60(0x145)]};}case _0x546f87[_0x21ed60(0x185)]:{const _0x1bee84=_0x2816ce['joinRsp'];return{..._0x2816ce,'data':_0x1bee84,'cmd':_0x2816ce[_0x21ed60(0x145)]};}case _0x546f87[_0x21ed60(0x305)]:{const _0x46d104=_0x2816ce[_0x21ed60(0x314)];switch(_0x46d104[_0x21ed60(0x464)]){case _0x57eaa4[_0x21ed60(0x253)][_0x21ed60(0x355)]:return{..._0x2816ce,'data':{..._0x46d104,'data':(_0x3e0a26=_0x46d104[_0x21ed60(0x1f4)])==null?void 0x0:_0x3e0a26['cs']},'cmd':_0x2816ce[_0x21ed60(0x145)]};case _0x57eaa4[_0x21ed60(0x253)]['CHANGESET_ACK']:return{..._0x2816ce,'data':{..._0x46d104,'data':(_0x1eed14=_0x46d104['csAckEvent'])==null?void 0x0:_0x1eed14['cs']},'cmd':_0x2816ce[_0x21ed60(0x145)]};case _0x57eaa4[_0x21ed60(0x253)][_0x21ed60(0x4ba)]:return{..._0x2816ce,'data':{..._0x46d104,'data':(_0x2b7511=_0x46d104['newCsEvent'])==null?void 0x0:_0x2b7511['cs']},'cmd':_0x2816ce[_0x21ed60(0x145)]};case _0x57eaa4[_0x21ed60(0x253)][_0x21ed60(0x1a0)]:return{..._0x2816ce,'data':{..._0x46d104,'data':(_0x1cc096=_0x46d104[_0x21ed60(0x1b0)])==null?void 0x0:_0x1cc096['cs']},'cmd':_0x2816ce[_0x21ed60(0x145)]};case _0x57eaa4['CollaborationEvent']['UPDATE_CURSOR']:return{..._0x2816ce,'data':{..._0x46d104,'data':_0x46d104['updateCursorEvent']},'cmd':_0x2816ce['cmd']};case _0x57eaa4['CollaborationEvent'][_0x21ed60(0x3bb)]:return{..._0x2816ce,'data':{..._0x46d104,'data':_0x46d104['joinEvent']},'cmd':_0x2816ce[_0x21ed60(0x145)]};case _0x57eaa4[_0x21ed60(0x253)][_0x21ed60(0x13b)]:return{..._0x2816ce,'data':{..._0x46d104,'data':_0x46d104[_0x21ed60(0x39b)]},'cmd':_0x2816ce[_0x21ed60(0x145)]};case _0x57eaa4[_0x21ed60(0x253)][_0x21ed60(0x14d)]:return{..._0x2816ce,'data':{..._0x46d104,'data':_0x46d104['liveShareNewHost']},'cmd':_0x2816ce[_0x21ed60(0x145)]};case _0x57eaa4[_0x21ed60(0x253)]['LIVESHARE_FETCH_OPERATIONS']:case _0x57eaa4['CollaborationEvent'][_0x21ed60(0x3e8)]:return{..._0x2816ce,'data':{..._0x46d104,'data':_0x46d104[_0x21ed60(0x3b0)]},'cmd':_0x2816ce['cmd']};case _0x57eaa4[_0x21ed60(0x253)][_0x21ed60(0x17a)]:return{..._0x2816ce,'data':{..._0x46d104,'data':_0x46d104[_0x21ed60(0x1a8)]},'cmd':_0x2816ce[_0x21ed60(0x145)]};case _0x57eaa4[_0x21ed60(0x253)][_0x21ed60(0x42d)]:return{..._0x2816ce,'data':_0x46d104,'cmd':_0x2816ce['cmd']};default:return _0x2816ce;}}default:return _0x2816ce;}}function _0xf6958b(_0x40d657){const _0x508b27=_0x50a247;switch(_0x40d657['cmd']){case _0x546f87['HEARTBEAT']:case _0x546f87['HELLO']:return JSON['stringify']({'cmd':_0x40d657['cmd'],'routeKey':_0x40d657[_0x508b27(0x159)]});case _0x546f87[_0x508b27(0x369)]:{let _0x9a1459;switch(_0x40d657[_0x508b27(0x1bb)]['eventID']){case _0x57eaa4['CollaborationEvent'][_0x508b27(0x373)]:{_0x9a1459={'eventID':_0x57eaa4[_0x508b27(0x253)][_0x508b27(0x373)],'updateCursorEvent':_0x40d657['data'][_0x508b27(0x1bb)]};break;}case _0x57eaa4[_0x508b27(0x253)]['USERS_LEAVE']:{_0x9a1459={'eventID':_0x57eaa4[_0x508b27(0x253)][_0x508b27(0x13b)],'leaveEvent':_0x40d657[_0x508b27(0x1bb)][_0x508b27(0x1bb)]};break;}case _0x57eaa4[_0x508b27(0x253)][_0x508b27(0x3bb)]:{_0x9a1459={'eventID':_0x57eaa4[_0x508b27(0x253)][_0x508b27(0x3bb)],'joinEvent':_0x40d657[_0x508b27(0x1bb)][_0x508b27(0x1bb)]};break;}case _0x57eaa4[_0x508b27(0x253)][_0x508b27(0x14d)]:{_0x9a1459={'eventID':_0x57eaa4['CollaborationEvent'][_0x508b27(0x14d)],'liveShareNewHost':_0x40d657[_0x508b27(0x1bb)][_0x508b27(0x1bb)]};break;}case _0x57eaa4['CollaborationEvent'][_0x508b27(0x3e8)]:{_0x9a1459={'eventID':_0x57eaa4[_0x508b27(0x253)][_0x508b27(0x3e8)],'liveShareOperation':_0x40d657[_0x508b27(0x1bb)][_0x508b27(0x1bb)]};break;}case _0x57eaa4[_0x508b27(0x253)]['LIVESHARE_TERMINATE']:{_0x9a1459={'eventID':_0x57eaa4[_0x508b27(0x253)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x40d657[_0x508b27(0x1bb)][_0x508b27(0x1bb)]};break;}case _0x57eaa4['CollaborationEvent'][_0x508b27(0x329)]:{_0x9a1459={'eventID':_0x57eaa4[_0x508b27(0x253)][_0x508b27(0x329)],'liveShareRequestHost':_0x40d657['data'][_0x508b27(0x1bb)]};break;}case _0x57eaa4[_0x508b27(0x253)]['LIVESHARE_FETCH_OPERATIONS']:{_0x9a1459={'eventID':_0x57eaa4['CollaborationEvent'][_0x508b27(0x15b)]};break;}default:_0x9a1459={'eventID':_0x40d657[_0x508b27(0x1bb)][_0x508b27(0x464)]};}return JSON[_0x508b27(0x461)]({'cmd':_0x40d657['cmd'],'routeKey':_0x40d657[_0x508b27(0x159)],'collaMsg':_0x9a1459});}case _0x546f87[_0x508b27(0x185)]:return JSON[_0x508b27(0x461)]({'cmd':_0x40d657[_0x508b27(0x145)],'routeKey':_0x40d657[_0x508b27(0x159)],'joinReq':_0x40d657[_0x508b27(0x1bb)]});case _0x546f87[_0x508b27(0x402)]:return JSON[_0x508b27(0x461)]({'cmd':_0x40d657[_0x508b27(0x145)],'routeKey':_0x40d657[_0x508b27(0x159)],'leaveReq':_0x40d657[_0x508b27(0x1bb)]});default:throw new Error(_0x508b27(0x467));}}var _0x540b52=(_0x1621d3,_0x3dbe12,_0x252079,_0x2f56a7)=>{const _0x1e1db6=_0x50a247;for(var _0x27eee0=_0x3dbe12,_0x404d9c=_0x1621d3[_0x1e1db6(0x3d6)]-0x1,_0x37f906;_0x404d9c>=0x0;_0x404d9c--)(_0x37f906=_0x1621d3[_0x404d9c])&&(_0x27eee0=_0x37f906(_0x27eee0)||_0x27eee0);return _0x27eee0;},_0xbe36b8=(_0x37e5b1,_0x421e3a)=>(_0x12d552,_0x2aeca8)=>_0x421e3a(_0x12d552,_0x2aeca8,_0x37e5b1);const _0x2196f2=_0x58498f[_0x50a247(0x362)]('univer-pro.collaboration-client-socket-service'),_0x1c96e6=_0x50a247(0x343),_0x44547a='/universer-api/comb';function _0x4fa4bc(_0x93fb8a,_0x59b1e3,_0x51a3de){const _0x49597a=_0x50a247;return _0x93fb8a+'/'+_0x59b1e3+_0x49597a(0x24f)+_0x51a3de+_0x49597a(0x4ad);}_0x5bd0fe[_0x50a247(0x40e)]=class{constructor(_0x15e620,_0x331c67,_0x3090f6,_0x58020a,_0x2a984b){const _0x1b521c=_0x50a247;this[_0x1b521c(0x191)]=_0x15e620,this[_0x1b521c(0x3d5)]=_0x331c67,this[_0x1b521c(0x1ab)]=_0x3090f6,this['_logService']=_0x58020a,this['_snapshotServerService']=_0x2a984b;}[_0x50a247(0x3f6)](_0x32bb70){const _0x426c89=_0x50a247,_0x418a78=this['_ws'][_0x426c89(0x3f6)](_0x32bb70);if(!_0x418a78)throw new Error(_0x426c89(0x3d8));const _0x54f812=new _0x40aff1[(_0x426c89(0x243))](),_0xb6b722=new _0x3171f1[(_0x426c89(0x1ed))]();_0x54f812[_0x426c89(0x3ce)](_0x40aff1[_0x426c89(0x2b7)](_0x418a78['close$'][_0x426c89(0x1a6)](_0x1286c3=>_0xb6b722[_0x426c89(0x446)](_0x1286c3)))),_0x54f812[_0x426c89(0x3ce)](_0x40aff1['toDisposable'](()=>_0xb6b722[_0x426c89(0x142)]()));const _0x54c2da=new _0x3171f1[(_0x426c89(0x1ed))]();_0x54f812['add'](_0x40aff1[_0x426c89(0x2b7)](_0x418a78['error$'][_0x426c89(0x1a6)](_0x3e4367=>_0x54c2da[_0x426c89(0x446)](_0x3e4367)))),_0x54f812[_0x426c89(0x3ce)](_0x40aff1[_0x426c89(0x2b7)](()=>_0x54c2da['complete']()));const _0xfd00d7=new _0x3171f1[(_0x426c89(0x1ed))]();_0x54f812[_0x426c89(0x3ce)](_0x40aff1['toDisposable'](_0x418a78['message$']['subscribe'](_0x39b20c=>{const _0x54defa=_0x22048b(_0x39b20c);_0xfd00d7['next'](_0x54defa);}))),_0x54f812[_0x426c89(0x3ce)](_0x40aff1['toDisposable'](()=>_0xfd00d7['complete']()));const _0x33e5d8=()=>{const _0x50e1c2=_0x426c89;_0x54c2da[_0x50e1c2(0x446)](new Event(_0x50e1c2(0x498))),_0xb6b722[_0x50e1c2(0x446)](new CloseEvent('connection\x20error')),_0x1cd0b3[_0x50e1c2(0x4e5)]();},_0x1cd0b3={'memberID':'','close$':_0xb6b722[_0x426c89(0x407)](),'error$':_0x54c2da[_0x426c89(0x407)](),'open$':_0x418a78[_0x426c89(0x3e3)],'message$':_0xfd00d7[_0x426c89(0x407)](),'send':_0x4bce94=>{const _0x42b17e=_0x426c89;if(_0x4bce94[_0x42b17e(0x145)]===_0x546f87['INGEST']){if(_0x4bce94[_0x42b17e(0x1bb)][_0x42b17e(0x464)]===_0x57eaa4[_0x42b17e(0x253)][_0x42b17e(0x34b)]){this[_0x42b17e(0x365)](_0x1cd0b3,_0x4bce94[_0x42b17e(0x1bb)])['catch'](_0x15ddc5=>{const _0x445719=_0x42b17e;this[_0x445719(0x3b1)]['error'](_0x15ddc5),_0x33e5d8();});return;}if(_0x4bce94['data'][_0x42b17e(0x464)]===_0x57eaa4[_0x42b17e(0x253)][_0x42b17e(0x18b)]){const _0x3d79e9=_0x4bce94[_0x42b17e(0x1bb)];this[_0x42b17e(0x23e)](_0x3d79e9)[_0x42b17e(0x3f7)](_0x462ad8=>{const _0x5c80f7=_0x42b17e;_0xfd00d7[_0x5c80f7(0x446)]({'cmd':_0x546f87[_0x5c80f7(0x305)],'code':_0x3257cd['OK'],'routeKey':_0x3d79e9['data'][_0x5c80f7(0x437)],'routeType':'','data':{'eventID':_0x57eaa4['CollaborationEvent'][_0x5c80f7(0x412)],'data':{'changesets':_0x462ad8}}});})['catch'](_0x286010=>{const _0x5a561b=_0x42b17e;this[_0x5a561b(0x3b1)][_0x5a561b(0x207)](_0x286010),_0x33e5d8();});return;}}_0x418a78[_0x42b17e(0x2c2)](_0xf6958b(_0x4bce94));},'close':()=>{const _0x1797fc=_0x426c89;_0x418a78[_0x1797fc(0x4e5)](),_0x54f812[_0x1797fc(0x1e5)]();}};return _0x1cd0b3;}async[_0x50a247(0x365)](_0x592307,_0x467c5f){const _0x57d3c7=_0x50a247;var _0x5c7b0f;const {unitType:_0x227950,unitID:_0x518e95,changeset:_0x50554d}=_0x467c5f[_0x57d3c7(0x1bb)],_0xdc3c4d={'unitID':_0x518e95,'memberID':_0x592307[_0x57d3c7(0x463)],'type':_0x227950,'changeset':_0x57eaa4[_0x57d3c7(0x2f6)](_0x50554d)},_0x717515=_0x4fa4bc((_0x5c7b0f=this[_0x57d3c7(0x1ab)][_0x57d3c7(0x48e)](_0x1c96e6))!=null?_0x5c7b0f:_0x44547a,_0x227950,_0x518e95);try{await this[_0x57d3c7(0x191)][_0x57d3c7(0x28a)](_0x717515,{'body':_0xdc3c4d});}catch(_0x4582d7){throw this[_0x57d3c7(0x3b1)][_0x57d3c7(0x207)](_0x57d3c7(0x2ef),_0x57d3c7(0x43b)),_0x4582d7;}}async[_0x50a247(0x23e)](_0x49880b){const _0x11fe09=_0x50a247,{unitID:_0x227b66,from:_0x392700,to:_0x1521e4,unitType:_0x26eec7}=_0x49880b[_0x11fe09(0x1bb)];return(await this[_0x11fe09(0x3b2)][_0x11fe09(0x1a1)]({'metadata':void 0x0},{'unitID':_0x227b66,'type':_0x26eec7,'from':_0x392700,'to':_0x1521e4}))['changesets'];}},_0x5bd0fe[_0x50a247(0x40e)]=_0x540b52([_0xbe36b8(0x0,_0x58498f['Inject'](_0x12f0de[_0x50a247(0x36e)])),_0xbe36b8(0x1,_0x58498f[_0x50a247(0x342)](_0x12f0de['WebSocketService'])),_0xbe36b8(0x2,_0x40aff1[_0x50a247(0x263)]),_0xbe36b8(0x3,_0x40aff1[_0x50a247(0x192)]),_0xbe36b8(0x4,_0x40aff1['ISnapshotServerService'])],_0x5bd0fe['CollaborationSocketService']);var _0x2d924d=(_0x7d2330,_0x4fe1f1,_0x1967fe,_0x56200e)=>{const _0x5a2e6a=_0x50a247;for(var _0x2c6d47=_0x4fe1f1,_0x31236a=_0x7d2330[_0x5a2e6a(0x3d6)]-0x1,_0x5060f6;_0x31236a>=0x0;_0x31236a--)(_0x5060f6=_0x7d2330[_0x31236a])&&(_0x2c6d47=_0x5060f6(_0x2c6d47)||_0x2c6d47);return _0x2c6d47;},_0xbf4057=(_0x5d74f3,_0x3e642a)=>(_0x5be0b4,_0x13a393)=>_0x3e642a(_0x5be0b4,_0x13a393,_0x5d74f3),_0x2d7bdc=(_0x1664bb=>(_0x1664bb[_0x1664bb['IDLE']=0x0]=_0x50a247(0x2f7),_0x1664bb[_0x1664bb[_0x50a247(0x208)]=0x1]=_0x50a247(0x208),_0x1664bb[_0x1664bb[_0x50a247(0x152)]=0x2]=_0x50a247(0x152),_0x1664bb[_0x1664bb[_0x50a247(0x3b6)]=0x3]='ONLINE',_0x1664bb))(_0x2d7bdc||{});const _0x5ab995='COLLAB_WEB_SOCKET_URL',_0x4d9266='ws://127.0.0.1:8000/universer-api/comb/connect',_0x4af75e=_0x50a247(0x274),_0xdbc7db=0x7530,_0x998910=_0x50a247(0x2c6),_0x37e3ce=0x2710,_0x1ef9cc=_0x50a247(0x324),_0x96462c=0x4e20,_0x734dc9=_0x50a247(0x4cf),_0x2474de=0x3;_0x5bd0fe[_0x50a247(0x20f)]=class extends _0x40aff1['RxDisposable']{constructor(_0x4b7870,_0x576768,_0x755bb1,_0x35483c,_0xa4931d,_0x2e6ba1,_0x243877,_0x22cfcc){const _0x3d42a0=_0x50a247;super(),_0x22b1a2(this,'_sessionStatus$',new _0x3171f1[(_0x3d42a0(0x431))](0x0)),_0x22b1a2(this,'sessionStatus$',this[_0x3d42a0(0x14f)][_0x3d42a0(0x407)]()),_0x22b1a2(this,_0x3d42a0(0x255),new _0x3171f1[(_0x3d42a0(0x1ed))]()),_0x22b1a2(this,_0x3d42a0(0x326),this[_0x3d42a0(0x255)][_0x3d42a0(0x407)]()),_0x22b1a2(this,'_socket'),_0x22b1a2(this,_0x3d42a0(0x297)),_0x22b1a2(this,_0x3d42a0(0x40b)),(this[_0x3d42a0(0x43c)]=_0x4b7870,this[_0x3d42a0(0x3b1)]=_0x755bb1,this['_beforeCloseService']=_0x35483c,this['_messageService']=_0xa4931d,this[_0x3d42a0(0x1ab)]=_0x2e6ba1,this['_localeService']=_0x243877,this[_0x3d42a0(0x47f)]=_0x22cfcc,_0x576768[_0x3d42a0(0x41d)](_0x32d0c5['takeUntil'](this['dispose$']))[_0x3d42a0(0x1a6)](_0x5b265f=>{const _0x55e2a1=_0x3d42a0;var _0x5c3e23;typeof _0x5b265f>'u'||(this['_socket']=_0x5b265f,_0x5b265f?(this['_joinRoom'](_0x5b265f),this['_socketMessageSubscription']=this[_0x55e2a1(0x3a3)]['message$'][_0x55e2a1(0x1a6)](_0x3a98aa=>{const _0x349a7e=_0x55e2a1;_0x3a98aa[_0x349a7e(0x159)]===this[_0x349a7e(0x43c)]&&this[_0x349a7e(0x1c5)](_0x3a98aa);})):(this['_sessionStatus$'][_0x55e2a1(0x446)](0x2),(_0x5c3e23=this['_socketMessageSubscription'])==null||_0x5c3e23[_0x55e2a1(0x19a)](),this[_0x55e2a1(0x297)]=null));}),this[_0x3d42a0(0x3e1)](this[_0x3d42a0(0x20a)][_0x3d42a0(0x3f8)](()=>{const _0x5c6cc3=_0x3d42a0;var _0x7b7059;(_0x7b7059=this['_socket'])==null||_0x7b7059[_0x5c6cc3(0x2c2)]({'cmd':_0x546f87[_0x5c6cc3(0x402)],'data':{'roomID':this[_0x5c6cc3(0x43c)]}});})));}get['sessionStatus'](){const _0x11dfff=_0x50a247;return this[_0x11dfff(0x14f)][_0x11dfff(0x331)]();}[_0x50a247(0x441)](){const _0x504a33=_0x50a247;var _0x33d50b,_0x5f4c7d;return(_0x5f4c7d=(_0x33d50b=this['_socket'])==null?void 0x0:_0x33d50b[_0x504a33(0x463)])!=null?_0x5f4c7d:null;}[_0x50a247(0x1e5)](){const _0x3d5620=_0x50a247;super['dispose'](),this['dispose$'][_0x3d5620(0x446)](),this[_0x3d5620(0x439)][_0x3d5620(0x142)]();}[_0x50a247(0x1c5)](_0x29d322){const _0x4139cf=_0x50a247;_0x29d322[_0x4139cf(0x145)]===_0x546f87['JOIN']?this[_0x4139cf(0x2ec)](_0x29d322):_0x29d322['cmd']===_0x546f87[_0x4139cf(0x305)]&&this[_0x4139cf(0x1e7)](_0x29d322);}[_0x50a247(0x3a8)](_0x481472){const _0x252c44=_0x50a247;this[_0x252c44(0x14f)][_0x252c44(0x446)](0x1),_0x481472[_0x252c44(0x2c2)]({'cmd':_0x546f87[_0x252c44(0x185)],'routeKey':this[_0x252c44(0x43c)],'routeType':'','data':{'rooms':[{'roomID':this[_0x252c44(0x43c)]}]}});}['_onJoinRoomEvent'](_0x46c845){const _0x3bfa9c=_0x50a247;var _0x4e9ac7;if(_0x46c845[_0x3bfa9c(0x166)]===_0x3257cd[_0x3bfa9c(0x276)]){this[_0x3bfa9c(0x490)][_0x3bfa9c(0x259)]({'type':_0x4ae90e[_0x3bfa9c(0x385)][_0x3bfa9c(0x174)],'content':this['_localeService']['t'](_0x3bfa9c(0x210))}),this[_0x3bfa9c(0x14f)][_0x3bfa9c(0x446)](0x2);return;}this[_0x3bfa9c(0x14f)]['next'](0x3);const _0x5069d0=(_0x4e9ac7=_0x46c845['data'][_0x3bfa9c(0x3a0)][this[_0x3bfa9c(0x43c)]])==null?void 0x0:_0x4e9ac7[_0x3bfa9c(0x1f6)];_0x5069d0&&_0x5069d0[_0x3bfa9c(0x35b)](_0x762285=>this[_0x3bfa9c(0x47f)][_0x3bfa9c(0x413)](this['_unitID'],_0x762285));}[_0x50a247(0x1e7)](_0x5673eb){const _0x612eed=_0x50a247;try{const _0x39c338=_0x5673eb[_0x612eed(0x1bb)];switch(_0x39c338['eventID']){case _0x57eaa4['CollaborationEvent'][_0x612eed(0x3bb)]:this[_0x612eed(0x469)](_0x39c338),this[_0x612eed(0x255)]['next'](_0x39c338);break;case _0x57eaa4['CollaborationEvent'][_0x612eed(0x13b)]:this[_0x612eed(0x347)](_0x39c338),this[_0x612eed(0x255)][_0x612eed(0x446)](_0x39c338);break;case _0x57eaa4[_0x612eed(0x253)][_0x612eed(0x26c)]:this['_clearCollaborationTimeoutTimer'](),this[_0x612eed(0x255)][_0x612eed(0x446)](_0x39c338);break;case _0x57eaa4[_0x612eed(0x253)][_0x612eed(0x42d)]:this[_0x612eed(0x3b1)][_0x612eed(0x207)](_0x612eed(0x46b)+JSON[_0x612eed(0x461)](_0x39c338)),this[_0x612eed(0x255)][_0x612eed(0x446)](_0x39c338);break;default:this[_0x612eed(0x255)][_0x612eed(0x446)](_0x39c338);}}catch(_0x4c0966){this['_logService']['error'](_0x4c0966,_0x5673eb);}}[_0x50a247(0x469)](_0x4accfa){const _0x167458=_0x50a247;this[_0x167458(0x47f)][_0x167458(0x413)](this['_unitID'],_0x4accfa[_0x167458(0x1bb)]);}[_0x50a247(0x347)](_0x3d94d5){const _0x25c74f=_0x50a247;this[_0x25c74f(0x47f)][_0x25c74f(0x260)](this['_unitID'],_0x3d94d5[_0x25c74f(0x1bb)][_0x25c74f(0x463)]);}async['send'](_0x1c9bf5,_0x3b4b44){const _0x4ce482=_0x50a247;if(this['sessionStatus']!==0x3||!this[_0x4ce482(0x3a3)])throw new Error(_0x4ce482(0x15c));try{_0x1c9bf5['eventID']===_0x57eaa4[_0x4ce482(0x253)][_0x4ce482(0x4ba)]&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x4ce482(0x3a3)][_0x4ce482(0x2c2)]({'cmd':_0x546f87[_0x4ce482(0x369)],'routeKey':_0x3b4b44,'routeType':'','data':_0x1c9bf5});}catch(_0x3da52d){this[_0x4ce482(0x3b1)][_0x4ce482(0x207)](_0x3da52d);}}['_scheduleCollaborationTimeoutTimer'](){const _0x3bb6c6=_0x50a247;var _0x2f57ec;this[_0x3bb6c6(0x40b)]=window['setTimeout'](()=>{const _0x4120bc=_0x3bb6c6;this[_0x4120bc(0x40b)]=null,this[_0x4120bc(0x490)][_0x4120bc(0x259)]({'type':_0x4ae90e[_0x4120bc(0x385)][_0x4120bc(0x33e)],'content':this[_0x4120bc(0x4b0)]['t']('session.collaboration-timeout')});},(_0x2f57ec=this[_0x3bb6c6(0x1ab)][_0x3bb6c6(0x48e)](_0x998910))!=null?_0x2f57ec:_0x37e3ce);}[_0x50a247(0x26b)](){const _0x4f082f=_0x50a247;this[_0x4f082f(0x40b)]&&(clearTimeout(this[_0x4f082f(0x40b)]),this[_0x4f082f(0x40b)]=null);}},_0x5bd0fe[_0x50a247(0x20f)]=_0x2d924d([_0xbf4057(0x2,_0x40aff1['ILogService']),_0xbf4057(0x3,_0x4f2827[_0x50a247(0x45b)]),_0xbf4057(0x4,_0x4f2827[_0x50a247(0x248)]),_0xbf4057(0x5,_0x40aff1['IConfigService']),_0xbf4057(0x6,_0x58498f['Inject'](_0x40aff1['LocaleService'])),_0xbf4057(0x7,_0x58498f[_0x50a247(0x342)](_0x370285))],_0x5bd0fe[_0x50a247(0x20f)]),_0x5bd0fe['CollaborationSessionService']=class extends _0x40aff1[_0x50a247(0x14a)]{constructor(_0x206568,_0xece270,_0x4dfdbf,_0x1c6e63,_0x29e684,_0x42a7a0){const _0x7b303e=_0x50a247;super(),_0x22b1a2(this,_0x7b303e(0x283),new _0x3171f1[(_0x7b303e(0x431))](void 0x0)),_0x22b1a2(this,_0x7b303e(0x2d4),new Map()),_0x22b1a2(this,_0x7b303e(0x303),new _0x3171f1[(_0x7b303e(0x431))](0x0)),_0x22b1a2(this,_0x7b303e(0x1c6),this[_0x7b303e(0x303)][_0x7b303e(0x407)]()),_0x22b1a2(this,_0x7b303e(0x384),!0x1),_0x22b1a2(this,'_sendHeartbeatTimer'),_0x22b1a2(this,_0x7b303e(0x2c1)),_0x22b1a2(this,'_retryConnectingTimer'),_0x22b1a2(this,_0x7b303e(0x322),0x0),(this[_0x7b303e(0x401)]=_0x206568,this[_0x7b303e(0x4b0)]=_0xece270,this[_0x7b303e(0x490)]=_0x4dfdbf,this[_0x7b303e(0x3b1)]=_0x1c6e63,this[_0x7b303e(0x1ab)]=_0x29e684,this[_0x7b303e(0x47d)]=_0x42a7a0);}get[_0x50a247(0x3a3)](){const _0x3cba2c=_0x50a247;return this[_0x3cba2c(0x283)][_0x3cba2c(0x331)]();}[_0x50a247(0x1e5)](){const _0x2ded7a=_0x50a247;super[_0x2ded7a(0x1e5)](),this[_0x2ded7a(0x2d4)][_0x2ded7a(0x35b)](_0x1ac57f=>_0x1ac57f[_0x2ded7a(0x1e5)]()),this['_sessions'][_0x2ded7a(0x348)](),this[_0x2ded7a(0x303)][_0x2ded7a(0x142)]();}async[_0x50a247(0x327)](_0x256853){const _0x2446c6=_0x50a247;if(this[_0x2446c6(0x2d4)][_0x2446c6(0x25b)](_0x256853))return this[_0x2446c6(0x2d4)][_0x2446c6(0x17e)](_0x256853);this['_tryEnsureSocket']();const _0x273a12=this[_0x2446c6(0x401)][_0x2446c6(0x293)](_0x5bd0fe[_0x2446c6(0x20f)],_0x256853,this['_socket$'][_0x2446c6(0x407)]());return this['_sessions'][_0x2446c6(0x3cc)](_0x256853,_0x273a12),_0x273a12;}['_createSocket'](){const _0x360b8a=_0x50a247;var _0x5a8e3d;const _0x1c2c3c=(_0x5a8e3d=this[_0x360b8a(0x1ab)][_0x360b8a(0x48e)](_0x5ab995))!=null?_0x5a8e3d:_0x4d9266;return this[_0x360b8a(0x47d)]['createSocket'](_0x1c2c3c);}[_0x50a247(0x179)](){const _0x5cb610=_0x50a247;try{const _0x2bde6a=this[_0x5cb610(0x1d4)]();if(_0x2bde6a){const _0x5b805c=_0x2bde6a[_0x5cb610(0x2c2)];_0x2bde6a['send']=_0x61b436=>(this['_rescheduleHeartbeatEvent'](),_0x5b805c[_0x5cb610(0x1dd)](_0x2bde6a,[_0x61b436])),_0x2bde6a[_0x5cb610(0x13e)][_0x5cb610(0x1a6)](_0x472cc0=>this['_onMessage'](_0x2bde6a,_0x472cc0)),_0x2bde6a['error$']['pipe'](_0x32d0c5[_0x5cb610(0x3e0)](0x1))[_0x5cb610(0x1a6)](_0x3a15c2=>this[_0x5cb610(0x3b1)][_0x5cb610(0x207)]('[CollaborationSessionService]:\x20socket\x20error',_0x3a15c2)),_0x2bde6a[_0x5cb610(0x3e3)][_0x5cb610(0x41d)](_0x32d0c5[_0x5cb610(0x3e0)](0x1))[_0x5cb610(0x1a6)](()=>{const _0xc1e93=_0x5cb610;this[_0xc1e93(0x36b)](_0x2bde6a);}),_0x2bde6a['close$'][_0x5cb610(0x41d)](_0x32d0c5[_0x5cb610(0x3e0)](0x1))[_0x5cb610(0x1a6)](_0x53194d=>{const _0x3d853a=_0x5cb610;this[_0x3d853a(0x3b1)][_0x3d853a(0x2d6)](_0x3d853a(0x377),_0x3d853a(0x4e0),_0x53194d),this[_0x3d853a(0x289)]();});}}catch(_0x5415ed){this['_logService'][_0x5cb610(0x207)](_0x5415ed),this[_0x5cb610(0x289)]();}}['_onConnectionOpen'](_0x174dd8){const _0x3c9ccc=_0x50a247;this[_0x3c9ccc(0x3b1)][_0x3c9ccc(0x2d6)](_0x3c9ccc(0x377),'socket\x20open.'),_0x174dd8[_0x3c9ccc(0x2c2)]({'cmd':_0x546f87[_0x3c9ccc(0x4a0)]}),this['_rescheduleHeartbeatEvent']();}[_0x50a247(0x289)](){const _0x3424ec=_0x50a247;var _0x3d43d7;this[_0x3424ec(0x303)]['next'](0x2),this['_socket$'][_0x3424ec(0x446)](null),this[_0x3424ec(0x1cb)](),this[_0x3424ec(0x33a)](),this[_0x3424ec(0x384)]=!0x1,this['_retryCount']<((_0x3d43d7=this[_0x3424ec(0x1ab)]['getConfig'](_0x734dc9))!=null?_0x3d43d7:_0x2474de)?(this[_0x3424ec(0x238)](this[_0x3424ec(0x322)]),this['_retryCount']+=0x1):this[_0x3424ec(0x490)]['show']({'type':_0x4ae90e[_0x3424ec(0x385)][_0x3424ec(0x33e)],'content':this['_localeService']['t'](_0x3424ec(0x47e))});}[_0x50a247(0x238)](_0x220f5a){const _0x2c2742=_0x50a247;var _0x19321c;const _0x5099ca=((_0x19321c=this[_0x2c2742(0x1ab)][_0x2c2742(0x48e)](_0x1ef9cc))!=null?_0x19321c:_0x96462c)*0x2**_0x220f5a;this[_0x2c2742(0x490)]['show']({'type':_0x4ae90e[_0x2c2742(0x385)][_0x2c2742(0x174)],'content':this[_0x2c2742(0x4b0)]['t'](_0x2c2742(0x2ad))}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x654aa2=_0x2c2742;this['_tryEnsureSocket'](),clearTimeout(this[_0x654aa2(0x2e9)]),this[_0x654aa2(0x2e9)]=null;},_0x5099ca);}['_rescheduleHeartbeatEvent'](){const _0x20316d=_0x50a247;var _0x4d443d;this[_0x20316d(0x33a)](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x20316d(0x364)](),(_0x4d443d=this[_0x20316d(0x1ab)][_0x20316d(0x48e)](_0x4af75e))!=null?_0x4d443d:_0xdbc7db);}[_0x50a247(0x364)](){const _0x112463=_0x50a247;this[_0x112463(0x3a3)][_0x112463(0x2c2)]({'cmd':_0x546f87['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x50a247(0x2a1)](){const _0x531425=_0x50a247;var _0x4e5db8;this['_timeoutTimer']=setTimeout(()=>this[_0x531425(0x289)](),(_0x4e5db8=this[_0x531425(0x1ab)]['getConfig'](_0x998910))!=null?_0x4e5db8:_0x37e3ce);}[_0x50a247(0x2d1)](_0x509bdc,_0x50191d){const _0x2f8822=_0x50a247,{cmd:_0x23bf78}=_0x50191d;_0x23bf78===_0x546f87[_0x2f8822(0x4a0)]&&!this[_0x2f8822(0x384)]&&(_0x509bdc[_0x2f8822(0x463)]=_0x50191d[_0x2f8822(0x1bb)][_0x2f8822(0x463)],this[_0x2f8822(0x283)][_0x2f8822(0x446)](_0x509bdc),this[_0x2f8822(0x303)][_0x2f8822(0x446)](0x3),this[_0x2f8822(0x384)]=!0x0),_0x23bf78===_0x546f87[_0x2f8822(0x44d)]&&this[_0x2f8822(0x1cb)](),this[_0x2f8822(0x334)]();}['_clearHeartbeatTimer'](){const _0x566eed=_0x50a247;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x566eed(0x43f)]),this[_0x566eed(0x43f)]=null);}[_0x50a247(0x1cb)](){const _0x3ca103=_0x50a247;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x3ca103(0x2c1)]),this[_0x3ca103(0x2c1)]=null);}},_0x5bd0fe['CollaborationSessionService']=_0x2d924d([_0xbf4057(0x0,_0x58498f[_0x50a247(0x342)](_0x58498f['Injector'])),_0xbf4057(0x1,_0x58498f['Inject'](_0x40aff1[_0x50a247(0x34a)])),_0xbf4057(0x2,_0x4f2827[_0x50a247(0x248)]),_0xbf4057(0x3,_0x40aff1[_0x50a247(0x192)]),_0xbf4057(0x4,_0x40aff1['IConfigService']),_0xbf4057(0x5,_0x2196f2)],_0x5bd0fe['CollaborationSessionService']);var _0x630979=(_0x16ee8e,_0x53b9f3,_0x1e9ba6,_0x379a96)=>{const _0x26ac9c=_0x50a247;for(var _0x39359e=_0x53b9f3,_0x112b39=_0x16ee8e[_0x26ac9c(0x3d6)]-0x1,_0x2e4a67;_0x112b39>=0x0;_0x112b39--)(_0x2e4a67=_0x16ee8e[_0x112b39])&&(_0x39359e=_0x2e4a67(_0x39359e)||_0x39359e);return _0x39359e;},_0xa68f7c=(_0x11870f,_0x4c7535)=>(_0x59dfac,_0xfcd843)=>_0x4c7535(_0x59dfac,_0xfcd843,_0x11870f);const _0x1e91d6=_0x50a247(0x15e),_0x585661=0x3e8;_0x5bd0fe[_0x50a247(0x262)]=class extends _0x40aff1[_0x50a247(0x14a)]{constructor(_0x49fb16,_0x24dba3,_0x2d80ae,_0x540c0b,_0x32a96d){const _0x357fb4=_0x50a247;super(),_0x22b1a2(this,_0x357fb4(0x237),new Map()),_0x22b1a2(this,_0x357fb4(0x35c),new Map()),_0x22b1a2(this,_0x357fb4(0x396),!0x1),(this[_0x357fb4(0x1ab)]=_0x49fb16,this[_0x357fb4(0x421)]=_0x24dba3,this[_0x357fb4(0x20a)]=_0x2d80ae,this[_0x357fb4(0x4b0)]=_0x540c0b,this['_revisionService']=_0x32a96d,this[_0x357fb4(0x165)]());}[_0x50a247(0x2bf)](){this['_disabled']=!0x0;}[_0x50a247(0x1bf)](){const _0x54d380=_0x50a247;this[_0x54d380(0x396)]=!0x1;}['dispose'](){const _0x231df3=_0x50a247;this[_0x231df3(0x366)]()[_0x231df3(0x3f7)](()=>super['dispose']());}async['loadOfflineData'](_0x4baad7){const _0x29aa7b=_0x50a247;return this[_0x29aa7b(0x396)]?null:this[_0x29aa7b(0x421)][_0x29aa7b(0x21c)](_0x404013(_0x4baad7));}async[_0x50a247(0x1b8)](_0x1913ed,_0xfa0368){const _0x5c0274=_0x50a247;return!!this['_localStorageService'][_0x5c0274(0x1b4)](_0x1913ed,_0xfa0368);}[_0x50a247(0x316)](_0x3f71ad,_0x3bce9b,_0x12db1c,_0x4ffc35){const _0x182844=_0x50a247,_0xfa4762=this['_revisionService'][_0x182844(0x340)](_0x3f71ad);this[_0x182844(0x237)][_0x182844(0x3cc)](_0x3f71ad,{'unitID':_0x3f71ad,'type':_0x3bce9b,'awaitingChangeset':_0x12db1c,'mutations':_0x4ffc35,'rev':_0xfa4762}),this[_0x182844(0x35c)][_0x182844(0x25b)](_0x3f71ad)||this[_0x182844(0x2c5)](_0x3f71ad);}[_0x50a247(0x2c5)](_0x57b034){const _0x16536f=_0x50a247,_0x3c2eff=this[_0x16536f(0x483)]();_0x3c2eff===0x0?this['_saveCache'](_0x57b034):this[_0x16536f(0x35c)][_0x16536f(0x3cc)](_0x57b034,setTimeout(()=>this[_0x16536f(0x4ca)](_0x57b034),_0x3c2eff));}[_0x50a247(0x483)](){const _0x5a51a4=_0x50a247;var _0x1500c0;return(_0x1500c0=this['_configService'][_0x5a51a4(0x48e)](_0x1e91d6))!=null?_0x1500c0:_0x585661;}['_saveCache'](_0x131823){const _0x34deeb=_0x50a247,_0x12d455=this[_0x34deeb(0x35c)]['get'](_0x131823);return _0x12d455!==void 0x0&&window[_0x34deeb(0x333)](_0x12d455),this['_localStorageService']['setItem'](_0x404013(_0x131823),this[_0x34deeb(0x237)][_0x34deeb(0x17e)](_0x131823))[_0x34deeb(0x3f7)](()=>this['_saveTaskMap']['delete'](_0x131823));}async['_exhaustSavingTask'](){const _0x3a4ce5=_0x50a247,_0xcf270=[];this['_saveTaskMap']['forEach']((_0x3fa1ab,_0x30fa7c)=>{const _0x492053=_0x3f00;window['clearTimeout'](_0x3fa1ab),_0xcf270[_0x492053(0x4a8)](this[_0x492053(0x4ca)](_0x30fa7c)[_0x492053(0x3f7)](()=>{const _0xbba9ff=_0x492053;this[_0xbba9ff(0x35c)][_0xbba9ff(0x371)](_0x30fa7c);}));}),await Promise[_0x3a4ce5(0x395)](_0xcf270);}['_setupBeforeClosingHandler'](){const _0x50dc8e=_0x50a247;this[_0x50dc8e(0x3e1)](this[_0x50dc8e(0x20a)]['registerBeforeClose'](()=>{const _0x4fd6dd=_0x50dc8e;if(this[_0x4fd6dd(0x35c)][_0x4fd6dd(0x307)])return this['_localeService']['t'](_0x4fd6dd(0x131));}));}},_0x5bd0fe[_0x50a247(0x262)]=_0x630979([_0xa68f7c(0x0,_0x40aff1[_0x50a247(0x263)]),_0xa68f7c(0x1,_0x40aff1[_0x50a247(0x49c)]),_0xa68f7c(0x2,_0x4f2827['IBeforeCloseService']),_0xa68f7c(0x3,_0x58498f[_0x50a247(0x342)](_0x40aff1['LocaleService'])),_0xa68f7c(0x4,_0x58498f['Inject'](_0x57eaa4[_0x50a247(0x417)]))],_0x5bd0fe[_0x50a247(0x262)]);function _0x404013(_0x2eeecb){return'unit-cache-'+_0x2eeecb;}const _0x4f8e2c=_0x58498f[_0x50a247(0x362)](_0x50a247(0x42f));var _0x1e11de=(_0xc75992=>(_0xc75992[_0xc75992[_0x50a247(0x2c9)]=0x0]=_0x50a247(0x2c9),_0xc75992[_0xc75992['OTHER_CLIENTS_EDITING']=0x1]=_0x50a247(0x4d9),_0xc75992))(_0x1e11de||{});const _0x2ab3f9=0x7530,_0xe4b02f=_0x50a247(0x4a4);class _0xc3d60c extends _0x40aff1[_0x50a247(0x14a)]{constructor(){const _0x154e9f=_0x50a247;super(),_0x22b1a2(this,_0x154e9f(0x475),_0x40aff1[_0x154e9f(0x376)][_0x154e9f(0x202)]()),_0x22b1a2(this,_0x154e9f(0x448),new Set()),_0x22b1a2(this,_0x154e9f(0x36a),new Map()),_0x22b1a2(this,_0x154e9f(0x266),null),_0x22b1a2(this,_0x154e9f(0x31a),new Map()),_0x22b1a2(this,_0x154e9f(0x3c9),new Map()),this[_0x154e9f(0x1ce)]();}['dispose'](){const _0x28e2e7=_0x50a247;super[_0x28e2e7(0x1e5)](),this[_0x28e2e7(0x31a)]['forEach']((_0x3ad01a,_0x271da6)=>this['_removeClearOtherTimer'](_0x271da6)),this[_0x28e2e7(0x266)]&&window[_0x28e2e7(0x34f)](this[_0x28e2e7(0x266)]);}[_0x50a247(0x30d)](_0xb2e4d6){const _0x39d618=_0x50a247;return this[_0x39d618(0x33b)](_0xb2e4d6)[_0x39d618(0x41d)](_0x3171f1[_0x39d618(0x2ee)]());}[_0x50a247(0x3a7)](_0x36aa4c){const _0x6351e9=_0x50a247;this['_selfUnitIDs'][_0x6351e9(0x307)]===0x0&&this['_scheduleHeartbeat'](),this[_0x6351e9(0x448)][_0x6351e9(0x3ce)](_0x36aa4c),this[_0x6351e9(0x481)]({'type':0x0,'memberID':this[_0x6351e9(0x475)],'unitID':_0x36aa4c});}[_0x50a247(0x2bd)](_0x3d0587){const _0x311e1b=_0x50a247;this['_selfUnitIDs']['delete'](_0x3d0587),this['_selfUnitIDs'][_0x311e1b(0x307)]===0x0&&this['_heartbeatTimer']&&window[_0x311e1b(0x34f)](this['_heartbeatTimer']);}[_0x50a247(0x1ce)](){const _0x519141=_0x50a247;this[_0x519141(0x3e1)](_0x40aff1['toDisposable'](_0x3171f1[_0x519141(0x3f4)](window,_0x519141(0x1b9))[_0x519141(0x1a6)](_0x8d8a81=>{const _0x5abd03=_0x519141;if(_0x8d8a81['key']!==_0xe4b02f||!_0x8d8a81[_0x5abd03(0x1e1)])return;const _0x228e9e=JSON[_0x5abd03(0x1e0)](_0x8d8a81[_0x5abd03(0x1e1)]);this[_0x5abd03(0x211)](_0x228e9e);}))),window[_0x519141(0x49a)](_0x519141(0x2e6),()=>this[_0x519141(0x481)]({'type':0x1,'memberID':this[_0x519141(0x475)],'unitIDs':Array[_0x519141(0x457)](this[_0x519141(0x448)])}));}[_0x50a247(0x211)](_0x31845a){const _0x7bc3cb=_0x50a247;switch(_0x31845a[_0x7bc3cb(0x28c)]){case 0x0:this[_0x7bc3cb(0x2fa)](_0x31845a);break;case 0x1:this[_0x7bc3cb(0x203)](_0x31845a);break;case 0x2:this[_0x7bc3cb(0x244)](_0x31845a);break;}}['_handleJoinEvent'](_0x5530e8){const _0x5021ee=_0x50a247,{unitID:_0x413db1,memberID:_0x40c2f9}=_0x5530e8;if(!this['_unitOnClients'][_0x5021ee(0x25b)](_0x413db1)||!this[_0x5021ee(0x36a)][_0x5021ee(0x17e)](_0x413db1)[_0x5021ee(0x25b)](_0x40c2f9)){const _0x119431=this[_0x5021ee(0x36a)][_0x5021ee(0x17e)](_0x413db1)||new Set();_0x119431[_0x5021ee(0x3ce)](_0x40c2f9),this[_0x5021ee(0x36a)]['set'](_0x413db1,_0x119431),this[_0x5021ee(0x175)](_0x40c2f9),this['_send']({'type':0x0,'memberID':this[_0x5021ee(0x475)],'unitID':_0x413db1});}else this[_0x5021ee(0x33b)](_0x413db1)[_0x5021ee(0x446)](0x1);}['_scheduleClearOtherTimer'](_0x4da3da){const _0x2b732e=_0x50a247;this[_0x2b732e(0x317)](_0x4da3da);const _0x4bdf96=window['setTimeout'](()=>{const _0x539a12=_0x2b732e;this[_0x539a12(0x36a)][_0x539a12(0x35b)](_0x119724=>{_0x119724['delete'](_0x4da3da);});},_0x2ab3f9*0x2);this[_0x2b732e(0x31a)][_0x2b732e(0x3cc)](_0x4da3da,_0x4bdf96);}[_0x50a247(0x317)](_0xd315d1){const _0x8bcd7c=_0x50a247;if(this[_0x8bcd7c(0x31a)][_0x8bcd7c(0x25b)](_0xd315d1)){const _0x42e6cc=this['_clearOtherTimers'][_0x8bcd7c(0x17e)](_0xd315d1);_0x42e6cc&&window[_0x8bcd7c(0x333)](_0x42e6cc),this[_0x8bcd7c(0x31a)][_0x8bcd7c(0x3cc)](_0xd315d1,null);}}[_0x50a247(0x203)](_0x639fac){const _0x57b11b=_0x50a247,{memberID:_0x9c77a8,unitIDs:_0x3499b5}=_0x639fac;_0x3499b5[_0x57b11b(0x35b)](_0x2909e7=>{const _0x9e0885=_0x57b11b;var _0x4baef2;const _0x8900af=this[_0x9e0885(0x36a)][_0x9e0885(0x17e)](_0x2909e7);_0x8900af&&(_0x8900af['delete'](_0x9c77a8),(_0x4baef2=this[_0x9e0885(0x33b)](_0x2909e7))==null||_0x4baef2[_0x9e0885(0x446)](_0x8900af[_0x9e0885(0x307)]===0x0?0x0:0x1));}),this[_0x57b11b(0x317)](_0x9c77a8);}[_0x50a247(0x244)](_0x228787){const _0x28a7c7=_0x50a247;this['_scheduleClearOtherTimer'](_0x228787[_0x28a7c7(0x463)]);}[_0x50a247(0x481)](_0xc8b67b){const _0x220183=_0x50a247;localStorage[_0x220183(0x1b4)](_0xe4b02f,JSON['stringify'](_0xc8b67b));}['_scheduleHeartbeat'](){const _0x31f611=_0x50a247;this[_0x31f611(0x266)]=window[_0x31f611(0x147)](()=>{const _0x5b7db1=_0x31f611;this[_0x5b7db1(0x481)]({'type':0x2,'memberID':this[_0x5b7db1(0x475)]});},_0x2ab3f9);}['_ensureSubject'](_0x45f29c){const _0x58f8c=_0x50a247;return this['_unitStatus']['has'](_0x45f29c)||this[_0x58f8c(0x3c9)][_0x58f8c(0x3cc)](_0x45f29c,new _0x3171f1[(_0x58f8c(0x431))](0x0)),this[_0x58f8c(0x3c9)][_0x58f8c(0x17e)](_0x45f29c);}}var _0x1a6e57=(_0x5e29ed,_0xe379be,_0x49e063,_0x3427da)=>{const _0x31b422=_0x50a247;for(var _0x5d4518=_0xe379be,_0x59683a=_0x5e29ed[_0x31b422(0x3d6)]-0x1,_0x1a1e51;_0x59683a>=0x0;_0x59683a--)(_0x1a1e51=_0x5e29ed[_0x59683a])&&(_0x5d4518=_0x1a1e51(_0x5d4518)||_0x5d4518);return _0x5d4518;},_0x433404=(_0x441530,_0x3dfd87)=>(_0x55b6fb,_0x13ffa3)=>_0x3dfd87(_0x55b6fb,_0x13ffa3,_0x441530);let _0x2b1054=class{constructor(_0x16544b,_0x29d3a6){const _0x2e6861=_0x50a247;this['_injector']=_0x16544b,this[_0x2e6861(0x135)]=_0x29d3a6;}['transformIMECache'](_0x2d9da9){const _0x4280f7=_0x50a247;this[_0x4280f7(0x168)](_0x2d9da9),this['_transformPreviousActiveRange'](_0x2d9da9);}[_0x50a247(0x27b)](_0x1a0bcc){const _0x482ecb=_0x50a247,_0x3b94a3=this[_0x482ecb(0x401)][_0x482ecb(0x17e)](_0xc138e5['IMEInputManagerService']),{redoCache:_0x1a1f2d}=_0x3b94a3[_0x482ecb(0x234)]();if(_0x1a1f2d['length']===0x0)return _0x1a0bcc;let _0x33526c=_0x40aff1[_0x482ecb(0x376)][_0x482ecb(0x2a8)](_0x1a0bcc[_0x482ecb(0x18e)][0x0]);for(let _0x2f104a=0x0;_0x2f104a<_0x1a1f2d[_0x482ecb(0x3d6)];_0x2f104a++){const _0x42792b={'id':_0x482ecb(0x394),'params':{..._0x1a1f2d[_0x2f104a]}},_0x2b7b11=this[_0x482ecb(0x135)][_0x482ecb(0x454)](_0x33526c,_0x42792b,!0x1);if(_0x57eaa4['isTransformMutationFailure'](_0x2b7b11))throw _0x2b7b11[_0x482ecb(0x207)];_0x33526c=_0x2b7b11[_0x482ecb(0x4b7)];}return{..._0x40aff1['Tools'][_0x482ecb(0x2a8)](_0x1a0bcc),'mutations':[_0x33526c]};}['_transformUndoRedoStack'](_0x13a0e){const _0xabac5e=_0x50a247,_0x255f5b=this[_0xabac5e(0x401)][_0xabac5e(0x17e)](_0xc138e5[_0xabac5e(0x247)]),{undoCache:_0xb4b9c0,redoCache:_0x5caaac}=_0x255f5b['getUndoRedoMutationParamsCache']();if(_0xb4b9c0[_0xabac5e(0x3d6)]===0x0||_0x5caaac[_0xabac5e(0x3d6)]===0x0)return;const _0x579eac=[],_0x3c683e=[];let _0x39f17f=_0x40aff1[_0xabac5e(0x376)][_0xabac5e(0x2a8)](_0x13a0e[_0xabac5e(0x18e)][0x0]),_0x19aee6=_0x40aff1[_0xabac5e(0x376)]['deepClone'](_0x13a0e[_0xabac5e(0x18e)][0x0]);for(let _0x30534e=_0xb4b9c0['length']-0x1;_0x30534e>=0x0;_0x30534e--){const _0x1d58c2={'id':_0xabac5e(0x394),'params':{..._0xb4b9c0[_0x30534e]}},_0x325ecf={'id':_0xabac5e(0x394),'params':{..._0x5caaac[_0x30534e]}},_0x2dbb9a=this['_transformService'][_0xabac5e(0x454)](_0x39f17f,_0x1d58c2,!0x1),_0x16aa90=this['_transformService'][_0xabac5e(0x454)](_0x19aee6,_0x325ecf,!0x1);if(_0x57eaa4[_0xabac5e(0x38c)](_0x2dbb9a))throw _0x2dbb9a[_0xabac5e(0x207)];if(_0x57eaa4[_0xabac5e(0x38c)](_0x16aa90))throw _0x16aa90[_0xabac5e(0x207)];_0x579eac[_0xabac5e(0x3e6)](_0x2dbb9a[_0xabac5e(0x3ac)]['params']),_0x3c683e['unshift'](_0x16aa90[_0xabac5e(0x3ac)][_0xabac5e(0x1ca)]),_0x39f17f=_0x2dbb9a[_0xabac5e(0x4b7)],_0x19aee6=_0x16aa90['m1Prime'];}_0x255f5b[_0xabac5e(0x3c0)]({'undoCache':_0x579eac,'redoCache':_0x3c683e});}[_0x50a247(0x3d1)](_0x1a40bb){const _0x95d777=_0x50a247,_0x1b6f78=this[_0x95d777(0x401)]['get'](_0xc138e5[_0x95d777(0x247)]),_0x2c9373=_0x1b6f78[_0x95d777(0x444)]();if(_0x2c9373==null)return;const _0x38e07c=[{'id':_0x95d777(0x394),'params':{'unitId':_0x1a40bb['unitID'],'actions':null,'textRanges':[_0x2c9373]}}],_0x138755=this[_0x95d777(0x135)][_0x95d777(0x36c)](_0x1a40bb,_0x38e07c);if(!_0x57eaa4[_0x95d777(0x3ff)](_0x138755))throw _0x138755[_0x95d777(0x207)];const _0x555235=_0x138755[_0x95d777(0x3ac)][0x0]['params'][_0x95d777(0x2a7)];Array['isArray'](_0x555235)&&_0x555235[_0x95d777(0x3d6)]&&_0x1b6f78[_0x95d777(0x4b3)](_0x555235[0x0]);}};_0x2b1054=_0x1a6e57([_0x433404(0x0,_0x58498f[_0x50a247(0x342)](_0x58498f['Injector'])),_0x433404(0x1,_0x57eaa4[_0x50a247(0x3be)])],_0x2b1054);var _0x25aa54=(_0x1dc7b2,_0x1bd6e4,_0x2b2c4f,_0x438d87)=>{for(var _0x48a223=_0x1bd6e4,_0x1fb00d=_0x1dc7b2['length']-0x1,_0xfa4723;_0x1fb00d>=0x0;_0x1fb00d--)(_0xfa4723=_0x1dc7b2[_0x1fb00d])&&(_0x48a223=_0xfa4723(_0x48a223)||_0x48a223);return _0x48a223;},_0x3af5b6=(_0x4d0251,_0x2579c7)=>(_0x3a2833,_0x5db612)=>_0x2579c7(_0x3a2833,_0x5db612,_0x4d0251);let _0x58ad03=class{constructor(_0x4595c5,_0x20e75a){const _0x3cc970=_0x50a247;this[_0x3cc970(0x401)]=_0x4595c5,this[_0x3cc970(0x135)]=_0x20e75a;}[_0x50a247(0x19b)](_0x376af6){const _0x1ed7e1=_0x50a247;var _0x4ba2ac;const _0x16f71c=this[_0x1ed7e1(0x401)][_0x1ed7e1(0x17e)](_0xc138e5[_0x1ed7e1(0x312)]),_0x58c07f=(_0x4ba2ac=_0x16f71c[_0x1ed7e1(0x1d7)]())!=null?_0x4ba2ac:[],_0x43bd75=_0x58c07f==null?void 0x0:_0x58c07f[_0x1ed7e1(0x290)](_0xc138e5['serializeTextRange']);if(_0x43bd75[_0x1ed7e1(0x3d6)]===0x0)return;const _0x1c74ae=[{'id':_0x1ed7e1(0x394),'params':{'unitId':_0x376af6[_0x1ed7e1(0x437)],'actions':null,'textRanges':_0x43bd75}}],_0x4d671f=this[_0x1ed7e1(0x135)][_0x1ed7e1(0x36c)](_0x376af6,_0x1c74ae);if(!_0x57eaa4[_0x1ed7e1(0x3ff)](_0x4d671f))throw _0x4d671f[_0x1ed7e1(0x207)];const _0x3caab9=_0x4d671f[_0x1ed7e1(0x3ac)][0x0][_0x1ed7e1(0x1ca)]['textRanges'];Array[_0x1ed7e1(0x27c)](_0x3caab9)&&_0x3caab9['length']&&_0x16f71c[_0x1ed7e1(0x1a9)](_0x3caab9,!0x1);}};_0x58ad03=_0x25aa54([_0x3af5b6(0x0,_0x58498f[_0x50a247(0x342)](_0x58498f[_0x50a247(0x1a4)])),_0x3af5b6(0x1,_0x57eaa4[_0x50a247(0x3be)])],_0x58ad03);function _0x9ee440(_0x5427f8){let _0x3a7af0='';for(const _0x128602 of _0x5427f8){const {startOffset:_0x35f379,endOffset:_0x13c49f,isActive:_0x30c0a6}=_0x128602;_0x3a7af0['length']&&(_0x3a7af0+=','),_0x3a7af0+=_0x35f379+':'+_0x13c49f+':'+(_0x30c0a6?'1':'0');}return _0x3a7af0;}function _0x3e9600(_0x4aeea1){const _0x91cbae=_0x50a247,_0x512d7e=_0x4aeea1['split'](','),_0x213442=[];for(const _0x2830e5 of _0x512d7e){const [_0x591771,_0x1a9b96,_0x2311bd]=_0x2830e5['split'](':');_0x213442['push']({'startOffset':Number(_0x591771),'endOffset':Number(_0x1a9b96),'collapsed':_0x591771===_0x1a9b96,'isActive':_0x2311bd==='1'});}return _0x213442[_0x91cbae(0x466)](_0x450185=>_0x450185[_0x91cbae(0x3b7)])||(_0x213442[0x0][_0x91cbae(0x3b7)]=!0x0),_0x213442;}class _0x59e101 extends _0x40aff1[_0x50a247(0x48d)]{constructor(){const _0x25e252=_0x50a247;super(...arguments),_0x22b1a2(this,_0x25e252(0x3e2),new _0x3171f1['BehaviorSubject'](null)),_0x22b1a2(this,_0x25e252(0x28d),this['_collabCursorState$'][_0x25e252(0x407)]());}[_0x50a247(0x3db)](_0x5f1238){const _0x2004ea=_0x50a247,{unitID:_0x44cb84,memberID:_0x186366,textRanges:_0x162fbd}=_0x5f1238,_0x19cb4e=_0x9ee440(_0x162fbd),_0x217cd8={'unitID':_0x44cb84,'memberID':_0x186366,'selection':_0x19cb4e};this[_0x2004ea(0x3e2)][_0x2004ea(0x446)](_0x217cd8);}}var _0x1a5e24=(_0x192114,_0x450244,_0xd1bda4,_0x213f39)=>{for(var _0x3aac17=_0x450244,_0x132211=_0x192114['length']-0x1,_0x15dc76;_0x132211>=0x0;_0x132211--)(_0x15dc76=_0x192114[_0x132211])&&(_0x3aac17=_0x15dc76(_0x3aac17)||_0x3aac17);return _0x3aac17;},_0x531a54=(_0x4e4b11,_0x47e42c)=>(_0x30eaf5,_0x111f9b)=>_0x47e42c(_0x30eaf5,_0x111f9b,_0x4e4b11);let _0x30b6af=class{constructor(_0x385c85,_0x42de07){const _0x3418de=_0x50a247;this[_0x3418de(0x401)]=_0x385c85,this[_0x3418de(0x135)]=_0x42de07;}[_0x50a247(0x19b)](_0x34a6d9){const _0x1051b2=_0x50a247;var _0x1838ad,_0x28c933,_0x41b305,_0x28b7b8;const _0x1bae42=this[_0x1051b2(0x401)][_0x1051b2(0x17e)](_0x361837[_0x1051b2(0x186)]),{pluginName:_0x1a7d76,unitId:_0x33bbe2,sheetId:_0x182c26}=_0x1bae42[_0x1051b2(0x134)]()||{},_0x4a27c1=(_0x1838ad=_0x1bae42[_0x1051b2(0x1d7)]())!=null?_0x1838ad:[];if(_0x4a27c1[_0x1051b2(0x3d6)]===0x0||!_0x1a7d76||!_0x33bbe2||!_0x182c26)return;const _0x342976=[{'id':_0x361837[_0x1051b2(0x1d5)]['id'],'params':{'unitId':_0x33bbe2,'subUnitId':_0x182c26,'pluginName':_0x1a7d76,'selections':_0x40aff1[_0x1051b2(0x376)][_0x1051b2(0x2a8)](_0x4a27c1)}}],_0x4e5ed6=this['_transformService']['transformMutationsWithChangeset'](_0x34a6d9,_0x342976);if(!_0x57eaa4['isTransformMutationsWithChangesetSuccess'](_0x4e5ed6))throw _0x4e5ed6[_0x1051b2(0x207)];const _0x4a3ba1=(_0x28b7b8=(_0x41b305=(_0x28c933=_0x4e5ed6['m2Prime'][0x0])==null?void 0x0:_0x28c933[_0x1051b2(0x1ca)])==null?void 0x0:_0x41b305[_0x1051b2(0x499)])!=null?_0x28b7b8:_0x4a27c1;Array['isArray'](_0x4a3ba1)&&_0x4a3ba1['length']&&this[_0x1051b2(0x401)][_0x1051b2(0x17e)](_0x40aff1[_0x1051b2(0x19e)])[_0x1051b2(0x1eb)](_0x361837[_0x1051b2(0x1d5)]['id'],{'unitId':_0x33bbe2,'subUnitId':_0x182c26,'pluginName':_0x1a7d76,'selections':_0x4a3ba1});}};_0x30b6af=_0x1a5e24([_0x531a54(0x0,_0x58498f['Inject'](_0x58498f['Injector'])),_0x531a54(0x1,_0x57eaa4[_0x50a247(0x3be)])],_0x30b6af);const _0x5b0099=new Set([_0x361837['InsertSheetMutation']['id']]);function _0x42b3a8(_0x4b70ec,_0x5d80a6,_0x6ac5bb,_0x32db52,_0x1dcbfc){const _0x69d477=_0x50a247;var _0x2e114c,_0x136920,_0x3dd75b,_0x55565d;const _0x4b1a1c=[];for(const _0x52a2c9 of _0x4b70ec)if(_0x5b0099[_0x69d477(0x25b)](_0x52a2c9['id'])){if(_0x4b1a1c[_0x69d477(0x3d6)]>0x0)break;_0x4b1a1c[_0x69d477(0x4a8)](_0x52a2c9);break;}else _0x4b1a1c[_0x69d477(0x4a8)](_0x52a2c9);const _0x14ee4f=(_0x136920=(_0x2e114c=_0x1dcbfc[_0x69d477(0x38d)]())==null?void 0x0:_0x2e114c['userID'])!=null?_0x136920:_0x69d477(0x46a),_0x843c90=(_0x55565d=(_0x3dd75b=_0x1dcbfc['getCurrentUser']())==null?void 0x0:_0x3dd75b[_0x69d477(0x463)])!=null?_0x55565d:_0x69d477(0x46a);return{'changeset':{'unitID':_0x5d80a6,'type':_0x57eaa4['mapDocumentTypeToUniverType'](_0x6ac5bb[_0x69d477(0x12c)](_0x5d80a6)),'baseRev':_0x32db52[_0x69d477(0x340)](_0x5d80a6),'revision':0x0,'userID':_0x14ee4f,'memberID':_0x843c90,'mutations':_0x4b1a1c},'pendingMutations':_0x4b70ec['slice'](_0x4b1a1c[_0x69d477(0x3d6)])};}function _0x1d8e48(_0x1b4e68,_0x2be1d4,_0xc5ec5d,_0x4de508,_0x357dae){const _0x1b2161=_0x50a247;var _0x17bdd3,_0x518e44,_0x1ae2ca,_0x2756b6;const _0x212950=[_0x1b4e68[_0x1b2161(0x2c4)]((_0x2fdcc6,_0x3f0bad)=>{const _0x595c1c=_0x1b2161;var _0x2f77a4;const {id:_0x371dfa}=_0x2fdcc6,{id:_0x2826c0,type:_0x24d3e4}=_0x3f0bad,_0x1b9397=(_0x2f77a4=_0x2fdcc6[_0x595c1c(0x1ca)])!=null?_0x2f77a4:{'actions':null},_0x134107=_0x3f0bad[_0x595c1c(0x1ca)];if(_0x371dfa&&_0x371dfa!==_0x2826c0)throw new Error(_0x595c1c(0x129)+_0x371dfa+_0x595c1c(0x374)+_0x2826c0+'.');return{..._0x2fdcc6,'id':_0x2826c0,'type':_0x24d3e4,'params':{'unitId':_0x134107[_0x595c1c(0x430)],'textRanges':_0x134107[_0x595c1c(0x2a7)],'actions':_0x40aff1['JSONX'][_0x595c1c(0x43d)](_0x1b9397[_0x595c1c(0x3a4)],_0x134107[_0x595c1c(0x3a4)])}};},{})],_0x1f4acd=(_0x518e44=(_0x17bdd3=_0x357dae[_0x1b2161(0x38d)]())==null?void 0x0:_0x17bdd3[_0x1b2161(0x491)])!=null?_0x518e44:_0x1b2161(0x46a),_0xdd190b=(_0x2756b6=(_0x1ae2ca=_0x357dae[_0x1b2161(0x38d)]())==null?void 0x0:_0x1ae2ca[_0x1b2161(0x463)])!=null?_0x2756b6:'unknown';return{'changeset':{'unitID':_0x2be1d4,'type':_0x57eaa4['mapDocumentTypeToUniverType'](_0xc5ec5d['getUnitType'](_0x2be1d4)),'baseRev':_0x4de508[_0x1b2161(0x340)](_0x2be1d4),'revision':0x0,'userID':_0x1f4acd,'memberID':_0xdd190b,'mutations':_0x212950},'pendingMutations':[]};}var _0x15fb27=(_0x17bbdf,_0x4d6df0,_0x548636,_0x5a1c07)=>{const _0x5d0c77=_0x50a247;for(var _0x11299b=_0x4d6df0,_0x990fea=_0x17bbdf[_0x5d0c77(0x3d6)]-0x1,_0x1095f5;_0x990fea>=0x0;_0x990fea--)(_0x1095f5=_0x17bbdf[_0x990fea])&&(_0x11299b=_0x1095f5(_0x11299b)||_0x11299b);return _0x11299b;},_0x383c29=(_0x4aa50e,_0x27d9b0)=>(_0x2179fc,_0x2eb156)=>_0x27d9b0(_0x2179fc,_0x2eb156,_0x4aa50e);const _0x275aff='SEND_CHANGESET_TIMEOUT',_0x5c0c0a=0x7d0;var _0x2dad21=(_0x2dc3d9=>(_0x2dc3d9[_0x50a247(0x330)]=_0x50a247(0x40a),_0x2dc3d9[_0x50a247(0x4e4)]=_0x50a247(0x1d2),_0x2dc3d9['PENDING']='pending',_0x2dc3d9[_0x50a247(0x278)]=_0x50a247(0x3b4),_0x2dc3d9[_0x50a247(0x37d)]='awaiting_with_pending',_0x2dc3d9[_0x50a247(0x4c8)]=_0x50a247(0x149),_0x2dc3d9[_0x50a247(0x2de)]='conflict',_0x2dc3d9['OFFLINE']=_0x50a247(0x3e7),_0x2dc3d9))(_0x2dad21||{});class _0x2073ee{constructor(_0x5c2665,_0x484c75,_0x540336,_0x5dd97b,_0x1a7e44,_0x37f007,_0x55e444,_0x30ec09,_0x530a31){const _0x5beecb=_0x50a247;_0x22b1a2(this,_0x5beecb(0x257),null),_0x22b1a2(this,'_pendingMutations',[]),(this[_0x5beecb(0x437)]=_0x5c2665,this[_0x5beecb(0x28c)]=_0x484c75,this[_0x5beecb(0x180)]=_0x1a7e44,this[_0x5beecb(0x14b)]=_0x37f007,this[_0x5beecb(0x363)]=_0x55e444,this[_0x5beecb(0x321)]=_0x30ec09,this['_localCacheService']=_0x530a31,this[_0x5beecb(0x257)]=_0x540336,this[_0x5beecb(0x306)]=_0x5dd97b);}[_0x50a247(0x428)](_0x928b82){const _0x28647a=_0x50a247,_0x14cf98=this[_0x28647a(0x321)][_0x28647a(0x340)](this[_0x28647a(0x437)]);return _0x928b82[_0x28647a(0x148)]>_0x14cf98+0x1?(this[_0x28647a(0x180)][_0x28647a(0x360)]({'from':_0x14cf98,'to':_0x928b82['revision']-0x1}),!0x0):!0x1;}[_0x50a247(0x304)](_0x1719ea){const _0xb06114=_0x50a247;this['_undoRedoService']['transformUndoRedo'](this[_0xb06114(0x437)],_0x1719ea);}[_0x50a247(0x19c)](_0x524272){const _0x48f5cf=_0x50a247;var _0x1aa038,_0x3dd6f5;(_0x3dd6f5=(_0x1aa038=this[_0x48f5cf(0x180)])['onTransformSelections'])==null||_0x3dd6f5['call'](_0x1aa038,_0x524272);}[_0x50a247(0x267)](_0x364ace){const _0x2f6332=_0x50a247;var _0x5ac1ff,_0x259e60;return(_0x259e60=(_0x5ac1ff=this['_handler'])[_0x2f6332(0x22b)])==null?void 0x0:_0x259e60[_0x2f6332(0x1cd)](_0x5ac1ff,_0x364ace);}['_transformRemoteChangesetByIMECache'](_0x429253){const _0x2b19a4=_0x50a247;var _0x4e14a7,_0x21a125,_0x250e52;return(_0x250e52=(_0x21a125=(_0x4e14a7=this['_handler'])[_0x2b19a4(0x332)])==null?void 0x0:_0x21a125['call'](_0x4e14a7,_0x429253))!=null?_0x250e52:_0x429253;}[_0x50a247(0x46f)](_0x1b0093){const _0x41f0b7=_0x50a247;var _0x1234fb,_0x5b09eb;if(this[_0x41f0b7(0x28c)]===_0x4cf902['UNIVER_DOC']){const {unitID:_0x1ede64,mutations:_0x5a76f4,memberID:_0x5ab4f8}=_0x1b0093,_0x4b6510=_0x5a76f4[0x0][_0x41f0b7(0x1ca)][_0x41f0b7(0x2a7)];Array[_0x41f0b7(0x27c)](_0x4b6510)&&_0x4b6510['length']>0x0&&((_0x5b09eb=(_0x1234fb=this[_0x41f0b7(0x180)])[_0x41f0b7(0x34d)])==null||_0x5b09eb[_0x41f0b7(0x1cd)](_0x1234fb,{'unitID':_0x1ede64,'memberID':_0x5ab4f8,'textRanges':_0x4b6510}));}}['_updateLocalCache'](){const _0x336f17=_0x50a247;this[_0x336f17(0x43e)][_0x336f17(0x316)](this[_0x336f17(0x437)],this[_0x336f17(0x28c)],this[_0x336f17(0x257)],this['_pendingMutations']);}[_0x50a247(0x35f)](){const _0x1cf632=_0x50a247;return this[_0x1cf632(0x321)][_0x1cf632(0x340)](this[_0x1cf632(0x437)]);}[_0x50a247(0x3ae)](){const _0x2ffd0f=_0x50a247;this[_0x2ffd0f(0x321)][_0x2ffd0f(0x212)](this[_0x2ffd0f(0x437)]);}[_0x50a247(0x269)](_0xc69a33){const _0x3fae26=_0x50a247;var _0x2a89ce;const _0x318472=this[_0x3fae26(0x3c1)](_0xc69a33),_0x5a1c98=_0x40aff1[_0x3fae26(0x18a)](_0x318472[_0x3fae26(0x18e)],this[_0x3fae26(0x14b)],{'fromCollab':!0x0});if(!_0x5a1c98['result'])throw _0x5a1c98[_0x3fae26(0x207)]instanceof Error?_0x5a1c98[_0x3fae26(0x207)]:new Error((_0x2a89ce=_0x5a1c98[_0x3fae26(0x207)])!=null?_0x2a89ce:_0x3fae26(0x3fd));this['_transformIMECache'](_0x318472),this[_0x3fae26(0x304)](_0xc69a33),this[_0x3fae26(0x19c)](_0x318472),this['_syncEditingCollabCursor'](_0x318472),this['_incrementRevisionNumber']();}}let _0x440104=class extends _0x2073ee{constructor(_0x1ea8a2,_0x5abd40,_0xccc3ed,_0x2edbe3,_0x8d8c7b,_0x55d4e5,_0x492926,_0x559929,_0x57c232){const _0x221367=_0x50a247;super(_0x1ea8a2,_0x5abd40,null,[],_0xccc3ed,_0x559929,_0x492926,_0x2edbe3,_0x8d8c7b),_0x22b1a2(this,_0x221367(0x453),_0x221367(0x1d2)),(this[_0x221367(0x401)]=_0x55d4e5,this[_0x221367(0x3b1)]=_0x57c232);}[_0x50a247(0x236)](_0x371ac2){const _0x5518e9=_0x50a247,_0x4746c7=this[_0x5518e9(0x401)]['createInstance'](_0x2b5aac,this[_0x5518e9(0x437)],this[_0x5518e9(0x28c)],[_0x371ac2],this[_0x5518e9(0x180)]);return _0x4746c7['_schedule'](),_0x4746c7['_updateLocalCache'](),_0x4746c7;}[_0x50a247(0x280)](_0x213e7e){const _0x112f0e=_0x50a247;if(this[_0x112f0e(0x428)](_0x213e7e))return this[_0x112f0e(0x401)]['createInstance'](_0x3725d2,this[_0x112f0e(0x437)],this[_0x112f0e(0x28c)],null,[],null,[_0x213e7e],this[_0x112f0e(0x180)]);try{return this['_executeRemoteChangeset'](_0x213e7e),this;}catch(_0x31b3f7){return this[_0x112f0e(0x3b1)][_0x112f0e(0x207)](_0x112f0e(0x187),_0x31b3f7),this;}}[_0x50a247(0x1b6)](){const _0xa5fb47=_0x50a247;throw new Error(_0xa5fb47(0x4e2));}[_0x50a247(0x3a6)](){const _0x3acff7=_0x50a247;throw new Error(_0x3acff7(0x4aa));}['toggleOffline'](){const _0x41f8fc=_0x50a247;return this[_0x41f8fc(0x401)][_0x41f8fc(0x293)](_0x79ae46,this[_0x41f8fc(0x437)],this[_0x41f8fc(0x28c)],null,[],this[_0x41f8fc(0x180)]);}['toggleOnline'](){return this;}[_0x50a247(0x15d)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x440104=_0x15fb27([_0x383c29(0x3,_0x58498f['Inject'](_0x57eaa4[_0x50a247(0x417)])),_0x383c29(0x4,_0x58498f[_0x50a247(0x342)](_0x5bd0fe[_0x50a247(0x262)])),_0x383c29(0x5,_0x58498f['Inject'](_0x58498f[_0x50a247(0x1a4)])),_0x383c29(0x6,_0x40aff1['IUndoRedoService']),_0x383c29(0x7,_0x40aff1['ICommandService']),_0x383c29(0x8,_0x40aff1[_0x50a247(0x192)])],_0x440104);let _0x2b5aac=class extends _0x2073ee{constructor(_0x8c6758,_0xdef023,_0x142efc,_0x3ef609,_0x13d4fb,_0x22ba22,_0x30e320,_0x4f46ea,_0x33d663,_0xc3aead,_0x55bd4b,_0xe8dce1,_0x353308,_0x638c61){const _0x14b844=_0x50a247;super(_0x8c6758,_0xdef023,null,_0x142efc,_0x3ef609,_0xc3aead,_0x638c61,_0x22ba22,_0x30e320),_0x22b1a2(this,_0x14b844(0x453),_0x14b844(0x344)),_0x22b1a2(this,'_scheduleTimestamp',null),_0x22b1a2(this,'_sendingTimer',null),(this[_0x14b844(0x401)]=_0x13d4fb,this[_0x14b844(0x47f)]=_0x4f46ea,this[_0x14b844(0x3b1)]=_0x33d663,this['_configService']=_0x55bd4b,this[_0x14b844(0x135)]=_0xe8dce1,this['_univerInstanceService']=_0x353308);}[_0x50a247(0x236)](_0x528679){const _0x25db5f=_0x50a247;return this[_0x25db5f(0x306)]['push'](_0x528679),this[_0x25db5f(0x25a)](),this;}['onRemoteChangeset'](_0x4f693d){const _0x28c73a=_0x50a247;if(this[_0x28c73a(0x428)](_0x4f693d))return this[_0x28c73a(0x31c)](),this[_0x28c73a(0x401)][_0x28c73a(0x293)](_0x3725d2,this[_0x28c73a(0x437)],this[_0x28c73a(0x28c)],null,this[_0x28c73a(0x306)],null,[_0x4f693d],this[_0x28c73a(0x180)]);try{const _0x30ed13=this[_0x28c73a(0x135)][_0x28c73a(0x36c)](_0x4f693d,this[_0x28c73a(0x306)]);if(_0x57eaa4[_0x28c73a(0x3ff)](_0x30ed13)){const {c1Prime:_0x451142,m2Prime:_0xd8149e}=_0x30ed13;this[_0x28c73a(0x269)](_0x451142);const _0x3f2cd8=this[_0x28c73a(0x401)][_0x28c73a(0x293)](_0x2b5aac,this['unitID'],this[_0x28c73a(0x28c)],_0xd8149e,this[_0x28c73a(0x180)]);return this[_0x28c73a(0x31c)](),_0x3f2cd8[_0x28c73a(0x391)](this[_0x28c73a(0x35a)]?Math[_0x28c73a(0x29e)](0x0,new Date()[_0x28c73a(0x479)]()-this['_scheduleTimestamp']):this['_getSendChangesetTimeout']()),_0x3f2cd8;}throw _0x30ed13['error'];}catch(_0x1a0980){return this['_logService'][_0x28c73a(0x207)](_0x1a0980),this['_onConflict'](!0x1);}}[_0x50a247(0x1b6)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x50a247(0x3a6)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x50a247(0x3d4)](){const _0x1d16c8=_0x50a247;return this['_clearScheduledTask'](),this[_0x1d16c8(0x401)][_0x1d16c8(0x293)](_0x79ae46,this['unitID'],this[_0x1d16c8(0x28c)],null,this[_0x1d16c8(0x306)],this[_0x1d16c8(0x180)]);}[_0x50a247(0x27d)](){return this;}[_0x50a247(0x391)](_0x350d77){const _0x393653=_0x50a247;_0x350d77=_0x350d77!=null?_0x350d77:this['_getSendChangesetTimeout'](),this[_0x393653(0x35a)]=new Date()[_0x393653(0x479)](),this['_sendingTimer']=setTimeout(()=>{const _0x407dd0=_0x393653;this[_0x407dd0(0x31c)]();let _0x51bdb7=null;switch(this[_0x407dd0(0x28c)]){case _0x4cf902[_0x407dd0(0x309)]:{_0x51bdb7=_0x42b3a8(this[_0x407dd0(0x306)],this[_0x407dd0(0x437)],this[_0x407dd0(0x1f8)],this['_revisionService'],this[_0x407dd0(0x47f)]);break;}case _0x4cf902[_0x407dd0(0x254)]:{_0x51bdb7=_0x1d8e48(this[_0x407dd0(0x306)],this[_0x407dd0(0x437)],this[_0x407dd0(0x1f8)],this[_0x407dd0(0x321)],this[_0x407dd0(0x47f)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x407dd0(0x28c)]+_0x407dd0(0x2bc));}const {changeset:_0x5b48a3,pendingMutations:_0x395451}=_0x51bdb7;this[_0x407dd0(0x180)][_0x407dd0(0x4a5)](_0x5b48a3);const _0x44e94e=_0x395451[_0x407dd0(0x3d6)]?this[_0x407dd0(0x401)][_0x407dd0(0x293)](_0x395896,this[_0x407dd0(0x437)],this['type'],_0x5b48a3,_0x395451,this[_0x407dd0(0x180)]):this[_0x407dd0(0x401)][_0x407dd0(0x293)](_0x2a6e62,this[_0x407dd0(0x437)],this['type'],_0x5b48a3,this[_0x407dd0(0x180)]);_0x44e94e[_0x407dd0(0x25a)](),this['_handler'][_0x407dd0(0x3f0)](this,_0x44e94e);},_0x350d77);}[_0x50a247(0x18c)](){const _0x57cd12=_0x50a247;var _0x24ad2a;return(_0x24ad2a=this[_0x57cd12(0x1ab)][_0x57cd12(0x48e)](_0x275aff))!=null?_0x24ad2a:_0x5c0c0a;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x50a247(0x31c)](){const _0x59e7ec=_0x50a247;this[_0x59e7ec(0x22f)]!=null&&(clearTimeout(this[_0x59e7ec(0x22f)]),this['_sendingTimer']=null);}[_0x50a247(0x4ab)](_0x56a646){const _0x3b29d9=_0x50a247;return this['_clearScheduledTask'](),this['_injector'][_0x3b29d9(0x293)](_0x36f45f,this[_0x3b29d9(0x437)],this[_0x3b29d9(0x28c)],null,this[_0x3b29d9(0x306)],this['_handler'],_0x56a646);}};_0x2b5aac=_0x15fb27([_0x383c29(0x4,_0x58498f[_0x50a247(0x342)](_0x58498f[_0x50a247(0x1a4)])),_0x383c29(0x5,_0x58498f[_0x50a247(0x342)](_0x57eaa4[_0x50a247(0x417)])),_0x383c29(0x6,_0x58498f[_0x50a247(0x342)](_0x5bd0fe['LocalCacheService'])),_0x383c29(0x7,_0x58498f[_0x50a247(0x342)](_0x370285)),_0x383c29(0x8,_0x40aff1[_0x50a247(0x192)]),_0x383c29(0x9,_0x40aff1[_0x50a247(0x19e)]),_0x383c29(0xa,_0x40aff1['IConfigService']),_0x383c29(0xb,_0x57eaa4[_0x50a247(0x3be)]),_0x383c29(0xc,_0x40aff1[_0x50a247(0x3f5)]),_0x383c29(0xd,_0x40aff1['IUndoRedoService'])],_0x2b5aac);let _0x2a6e62=class extends _0x2073ee{constructor(_0x384abd,_0x43cc44,_0x55fb3b,_0x556cff,_0x2d2225,_0x1ce5af,_0x1269a5,_0x27c3a1,_0x4bbbb7,_0x4391af,_0x7f7ddc){const _0x4416bd=_0x50a247;super(_0x384abd,_0x43cc44,_0x55fb3b,[],_0x556cff,_0x27c3a1,_0x7f7ddc,_0x1ce5af,_0x1269a5),_0x22b1a2(this,_0x4416bd(0x453),_0x4416bd(0x3b4)),(this['_injector']=_0x2d2225,this[_0x4416bd(0x3b1)]=_0x4bbbb7,this[_0x4416bd(0x135)]=_0x4391af);}[_0x50a247(0x236)](_0x24aaa2){const _0x15f486=_0x50a247,_0x1b3714=this[_0x15f486(0x401)]['createInstance'](_0x395896,this[_0x15f486(0x437)],this[_0x15f486(0x28c)],this[_0x15f486(0x257)],[_0x24aaa2],this[_0x15f486(0x180)]);return _0x1b3714['_updateLocalCache'](),_0x1b3714;}[_0x50a247(0x280)](_0x20fd56){const _0x2ae727=_0x50a247;if(this[_0x2ae727(0x428)](_0x20fd56))return this[_0x2ae727(0x401)][_0x2ae727(0x293)](_0x3725d2,this[_0x2ae727(0x437)],this['type'],this['_awaitingChangeset'],[],null,[_0x20fd56],this['_handler']);try{const _0x8459be=this['_transformService'][_0x2ae727(0x3ea)]([_0x20fd56],[this[_0x2ae727(0x257)]],!0x1);if(_0x57eaa4[_0x2ae727(0x4dd)](_0x8459be)){const {c1Prime:_0x3cb1bd,c2Prime:_0x53dc69}=_0x8459be;this[_0x2ae727(0x269)](_0x3cb1bd[0x0]),_0x53dc69[0x0][_0x2ae727(0x3de)]=this['_getCurrentRevision']();const _0x344bf6=this[_0x2ae727(0x401)][_0x2ae727(0x293)](_0x2a6e62,this[_0x2ae727(0x437)],this[_0x2ae727(0x28c)],_0x53dc69[0x0],this['_handler']);return _0x344bf6[_0x2ae727(0x25a)](),_0x344bf6;}return this['_onConflict'](!0x1);}catch(_0x2b243f){return this[_0x2ae727(0x3b1)]['error'](_0x2b243f),this['_onConflict'](!0x1);}}[_0x50a247(0x1b6)](_0x57d255){const _0x29f3be=_0x50a247,_0x5a1057=this['_revisionService'][_0x29f3be(0x340)](this[_0x29f3be(0x437)]);if(_0x57d255[_0x29f3be(0x148)]<_0x5a1057-0x1)return this;if(this['_checkMissing'](_0x57d255))return this[_0x29f3be(0x401)][_0x29f3be(0x293)](_0x3725d2,this[_0x29f3be(0x437)],this['type'],null,[],this[_0x29f3be(0x257)],[],this[_0x29f3be(0x180)]);this[_0x29f3be(0x3ae)]();const _0x17d0d3=this[_0x29f3be(0x401)]['createInstance'](_0x440104,this[_0x29f3be(0x437)],this['type'],this[_0x29f3be(0x180)]);return _0x17d0d3[_0x29f3be(0x25a)](),_0x17d0d3;}[_0x50a247(0x3a6)](_0x2ff59a){const _0x5be989=_0x50a247;return this[_0x5be989(0x4ab)](!!(_0x2ff59a!=null&&_0x2ff59a[_0x5be989(0x189)]));}[_0x50a247(0x3d4)](){const _0x22c3b9=_0x50a247;return this[_0x22c3b9(0x401)][_0x22c3b9(0x293)](_0x79ae46,this[_0x22c3b9(0x437)],this[_0x22c3b9(0x28c)],this[_0x22c3b9(0x257)],[],this[_0x22c3b9(0x180)]);}[_0x50a247(0x27d)](){return this;}[_0x50a247(0x15d)](){const _0xdb4109=_0x50a247;this[_0xdb4109(0x180)][_0xdb4109(0x4a5)](this[_0xdb4109(0x257)]);}[_0x50a247(0x4ab)](_0x515a67){const _0x42f540=_0x50a247;return this['_injector'][_0x42f540(0x293)](_0x36f45f,this[_0x42f540(0x437)],this['type'],this[_0x42f540(0x257)],[],this[_0x42f540(0x180)],_0x515a67);}};_0x2a6e62=_0x15fb27([_0x383c29(0x4,_0x58498f['Inject'](_0x58498f[_0x50a247(0x1a4)])),_0x383c29(0x5,_0x58498f[_0x50a247(0x342)](_0x57eaa4[_0x50a247(0x417)])),_0x383c29(0x6,_0x58498f['Inject'](_0x5bd0fe[_0x50a247(0x262)])),_0x383c29(0x7,_0x40aff1[_0x50a247(0x19e)]),_0x383c29(0x8,_0x40aff1[_0x50a247(0x192)]),_0x383c29(0x9,_0x57eaa4['ITransformService']),_0x383c29(0xa,_0x40aff1['IUndoRedoService'])],_0x2a6e62);let _0x395896=class extends _0x2073ee{constructor(_0x113712,_0x5b0f33,_0x52fe0b,_0x28f466,_0x462c42,_0x7cc415,_0x29d4d9,_0xbfcb64,_0x441a5d,_0x47c206,_0x41fad1,_0x306e7f){const _0x28a866=_0x50a247;super(_0x113712,_0x5b0f33,_0x52fe0b,_0x28f466,_0x462c42,_0x441a5d,_0x306e7f,_0x29d4d9,_0xbfcb64),_0x22b1a2(this,_0x28a866(0x453),_0x28a866(0x31d)),(this[_0x28a866(0x401)]=_0x7cc415,this['_logService']=_0x47c206,this[_0x28a866(0x135)]=_0x41fad1);}['appendMutation'](_0x37be05){const _0x189178=_0x50a247;return this[_0x189178(0x306)]['push'](_0x37be05),this;}[_0x50a247(0x280)](_0x378355){const _0x1a324e=_0x50a247;if(this['_checkMissing'](_0x378355))return this[_0x1a324e(0x401)]['createInstance'](_0x3725d2,this[_0x1a324e(0x437)],this['type'],this[_0x1a324e(0x257)],this[_0x1a324e(0x306)],null,[_0x378355],this[_0x1a324e(0x180)]);try{const _0x311e24=this[_0x1a324e(0x135)][_0x1a324e(0x3ea)]([_0x378355],[this['_awaitingChangeset']],!0x1);if(_0x57eaa4[_0x1a324e(0x4dd)](_0x311e24)){const {c1Prime:_0xd4dd4e,c2Prime:_0x2e6b17}=_0x311e24,_0x190dd8=this['_transformService'][_0x1a324e(0x36c)](_0xd4dd4e[0x0],this[_0x1a324e(0x306)]);if(_0x57eaa4[_0x1a324e(0x3ff)](_0x190dd8)){const {c1Prime:_0x5d6466,m2Prime:_0x42c76c}=_0x190dd8;return this[_0x1a324e(0x269)](_0x5d6466),_0x2e6b17[0x0][_0x1a324e(0x3de)]=this[_0x1a324e(0x35f)](),this[_0x1a324e(0x401)]['createInstance'](_0x395896,this['unitID'],this[_0x1a324e(0x28c)],_0x2e6b17[0x0],_0x42c76c,this[_0x1a324e(0x180)]);}throw _0x190dd8[_0x1a324e(0x207)];}throw _0x311e24[_0x1a324e(0x207)];}catch(_0x4d261c){return this['_logService']['error'](_0x4d261c),this[_0x1a324e(0x4ab)](!0x1);}}[_0x50a247(0x1b6)](_0x1ecad6){const _0x140818=_0x50a247;if(this[_0x140818(0x428)](_0x1ecad6))return this[_0x140818(0x401)]['createInstance'](_0x3725d2,this[_0x140818(0x437)],this[_0x140818(0x28c)],null,this[_0x140818(0x306)],this[_0x140818(0x257)],[],this[_0x140818(0x180)]);this[_0x140818(0x3ae)]();const _0x5cd52a=this['_injector'][_0x140818(0x293)](_0x2b5aac,this[_0x140818(0x437)],this['type'],this[_0x140818(0x306)],this[_0x140818(0x180)]);return _0x5cd52a[_0x140818(0x391)](),_0x5cd52a['_updateLocalCache'](),_0x5cd52a;}['onRemoteRej'](_0x3817ac){const _0x4f6a0c=_0x50a247;return this['_onConflict'](!!(_0x3817ac!=null&&_0x3817ac[_0x4f6a0c(0x189)]));}[_0x50a247(0x3d4)](){const _0x25a7e3=_0x50a247;return this['_injector'][_0x25a7e3(0x293)](_0x79ae46,this[_0x25a7e3(0x437)],this[_0x25a7e3(0x28c)],this[_0x25a7e3(0x257)],this[_0x25a7e3(0x306)],this[_0x25a7e3(0x180)]);}['toggleOnline'](){return this;}[_0x50a247(0x15d)](){const _0x3e97a5=_0x50a247;this[_0x3e97a5(0x180)][_0x3e97a5(0x4a5)](this[_0x3e97a5(0x257)]);}[_0x50a247(0x4ab)](_0x1b6ce4){const _0x3237f5=_0x50a247;return this[_0x3237f5(0x401)][_0x3237f5(0x293)](_0x36f45f,this['unitID'],this[_0x3237f5(0x28c)],null,this[_0x3237f5(0x306)],this[_0x3237f5(0x180)],_0x1b6ce4);}};_0x395896=_0x15fb27([_0x383c29(0x5,_0x58498f[_0x50a247(0x342)](_0x58498f['Injector'])),_0x383c29(0x6,_0x58498f[_0x50a247(0x342)](_0x57eaa4[_0x50a247(0x417)])),_0x383c29(0x7,_0x58498f['Inject'](_0x5bd0fe['LocalCacheService'])),_0x383c29(0x8,_0x40aff1[_0x50a247(0x19e)]),_0x383c29(0x9,_0x40aff1[_0x50a247(0x192)]),_0x383c29(0xa,_0x57eaa4[_0x50a247(0x3be)]),_0x383c29(0xb,_0x40aff1[_0x50a247(0x351)])],_0x395896);let _0x36f45f=class extends _0x2073ee{constructor(_0x4e85f3,_0x511d45,_0x3e668d,_0x299634,_0x293d79,_0x3ff6e2=!0x1,_0x5893f4,_0x19774e,_0x347932,_0x3b6ddf,_0x4b7fe2,_0x28101e,_0x54295e){const _0x3403f5=_0x50a247;super(_0x4e85f3,_0x511d45,_0x3e668d,_0x299634,_0x293d79,_0x19774e,_0x347932,_0x4b7fe2,_0x3b6ddf),_0x22b1a2(this,_0x3403f5(0x453),_0x3403f5(0x471)),(this[_0x3403f5(0x1f5)]=_0x3ff6e2,this[_0x3403f5(0x193)]=_0x5893f4,this[_0x3403f5(0x4b0)]=_0x28101e,this['_notificationService']=_0x54295e,this[_0x3403f5(0x354)](),this['_clearLocalCache'](),this[_0x3403f5(0x390)]());}['appendMutation'](){return this;}[_0x50a247(0x280)](){return this;}['onRemoteAck'](){return this;}[_0x50a247(0x3a6)](){return this;}[_0x50a247(0x3d4)](){return this;}[_0x50a247(0x27d)](){return this;}[_0x50a247(0x15d)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x34e002=_0x50a247;this[_0x34e002(0x43e)][_0x34e002(0x316)](this[_0x34e002(0x437)],this[_0x34e002(0x28c)],null,[]);}[_0x50a247(0x354)](){const _0x2a14ca=_0x50a247;this[_0x2a14ca(0x1f5)]?this['_notificationService']['show']({'title':this[_0x2a14ca(0x4b0)]['t'](_0x2a14ca(0x35d)),'content':this[_0x2a14ca(0x4b0)]['t'](_0x2a14ca(0x2e3)),'type':'error','duration':0x0}):this[_0x2a14ca(0x2ed)]['show']({'title':this[_0x2a14ca(0x4b0)]['t'](_0x2a14ca(0x17f)),'content':this[_0x2a14ca(0x4b0)]['t'](_0x2a14ca(0x48b)),'type':'error','duration':0x0});}[_0x50a247(0x390)](){const _0x574673=_0x50a247;this[_0x574673(0x193)][_0x574673(0x3bc)](new _0x361837[(_0x574673(0x30c))](this[_0x574673(0x437)])['id'],!0x1);}};_0x36f45f=_0x15fb27([_0x383c29(0x6,_0x58498f[_0x50a247(0x342)](_0x40aff1[_0x50a247(0x250)])),_0x383c29(0x7,_0x40aff1['ICommandService']),_0x383c29(0x8,_0x40aff1[_0x50a247(0x351)]),_0x383c29(0x9,_0x58498f[_0x50a247(0x342)](_0x5bd0fe[_0x50a247(0x262)])),_0x383c29(0xa,_0x58498f[_0x50a247(0x342)](_0x57eaa4['RevisionService'])),_0x383c29(0xb,_0x58498f['Inject'](_0x40aff1[_0x50a247(0x34a)])),_0x383c29(0xc,_0x4f2827[_0x50a247(0x215)])],_0x36f45f);let _0x79ae46=class extends _0x2073ee{constructor(_0x12fc80,_0xc40662,_0x2843e0,_0x2ec2ba,_0x9d26c4,_0x3f9cea,_0x5caa33,_0x5a27c6,_0x7e6a73,_0x5051ab){const _0x144cd5=_0x50a247;super(_0x12fc80,_0xc40662,_0x2843e0,_0x2ec2ba,_0x9d26c4,_0x7e6a73,_0x5051ab,_0x5caa33,_0x5a27c6),_0x22b1a2(this,_0x144cd5(0x453),'offline'),this[_0x144cd5(0x401)]=_0x3f9cea;}[_0x50a247(0x236)](_0x851f87){const _0x1bf2f8=_0x50a247;return this['_pendingMutations'][_0x1bf2f8(0x4a8)](_0x851f87),this['_updateLocalCache'](),this;}[_0x50a247(0x280)](_0x3bf0d9){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x50a247(0x1b6)](){const _0x38d99e=_0x50a247;throw new Error(_0x38d99e(0x48a));}[_0x50a247(0x3a6)](){const _0x358c04=_0x50a247;throw new Error(_0x358c04(0x2b2));}[_0x50a247(0x3d4)](){return this;}['toggleOnline'](){const _0x45a2ff=_0x50a247,{_injector:_0x95fe72,_pendingMutations:_0x45009d,_awaitingChangeset:_0xf857c3,unitID:_0x5db411,_handler:_0x4c2739,type:_0x5d3408}=this,_0x13aca7=_0x47e08a(_0x95fe72,_0x5db411,_0x5d3408,_0xf857c3,_0x45009d,_0x4c2739);return _0x13aca7 instanceof _0x2b5aac?_0x13aca7['_schedule']():(_0x13aca7 instanceof _0x395896||_0x13aca7 instanceof _0x2a6e62)&&_0x13aca7[_0x45a2ff(0x15d)](),_0x13aca7;}[_0x50a247(0x15d)](){const _0x369895=_0x50a247;throw new Error(_0x369895(0x4d0));}};_0x79ae46=_0x15fb27([_0x383c29(0x5,_0x58498f[_0x50a247(0x342)](_0x58498f[_0x50a247(0x1a4)])),_0x383c29(0x6,_0x58498f[_0x50a247(0x342)](_0x57eaa4['RevisionService'])),_0x383c29(0x7,_0x58498f['Inject'](_0x5bd0fe['LocalCacheService'])),_0x383c29(0x8,_0x40aff1[_0x50a247(0x19e)]),_0x383c29(0x9,_0x40aff1[_0x50a247(0x351)])],_0x79ae46);let _0x3725d2=class extends _0x2073ee{constructor(_0x14c092,_0x12fee9,_0x2ffb37,_0x119dd1,_0x33dc6f,_0x4dda29,_0x801ad9,_0xa2e760,_0x34614c,_0x43aa2b,_0x411191,_0x459cb0,_0x4e00c2,_0x373492){const _0x3f10fd=_0x50a247;super(_0x14c092,_0x12fee9,_0x2ffb37,_0x119dd1,_0x801ad9,_0x459cb0,_0x4e00c2,_0x34614c,_0x43aa2b),_0x22b1a2(this,_0x3f10fd(0x453),_0x3f10fd(0x149)),(this[_0x3f10fd(0x4a6)]=_0x33dc6f,this['_queuedRemoteChangesets']=_0x4dda29,this[_0x3f10fd(0x401)]=_0xa2e760,this[_0x3f10fd(0x3b1)]=_0x411191,this[_0x3f10fd(0x135)]=_0x373492);}['onMissedChangesetFetched'](_0x2d9638){const _0x27a812=_0x50a247;try{const _0x3dc4c1=[..._0x2d9638,...this[_0x27a812(0x2c0)]],_0x23e303=[this['_awaitingChangeset']||this[_0x27a812(0x4a6)]][_0x27a812(0x1b1)](_0xb8d739=>!!_0xb8d739);let _0x1a9339,_0x151d32;if(_0x23e303['length']){const _0x2a25c2=this[_0x27a812(0x135)][_0x27a812(0x3ea)](_0x3dc4c1,_0x23e303,!0x1);if(!_0x57eaa4[_0x27a812(0x4dd)](_0x2a25c2))throw _0x2a25c2[_0x27a812(0x207)];_0x1a9339=_0x2a25c2[_0x27a812(0x287)],_0x151d32=_0x2a25c2[_0x27a812(0x378)];}else _0x1a9339=_0x3dc4c1,_0x151d32=[];let _0x456b3e=this[_0x27a812(0x306)];_0x1a9339[_0x27a812(0x35b)](_0x5962f1=>{const _0x924a1a=_0x27a812;let _0x5c9699;if(_0x456b3e[_0x924a1a(0x3d6)]){const _0x342d2f=this[_0x924a1a(0x135)]['transformMutationsWithChangeset'](_0x5962f1,_0x456b3e);if(!_0x57eaa4[_0x924a1a(0x3ff)](_0x342d2f))throw _0x342d2f[_0x924a1a(0x207)];_0x5c9699=_0x342d2f[_0x924a1a(0x287)],_0x456b3e=_0x342d2f[_0x924a1a(0x3ac)];}else _0x5c9699=_0x5962f1;this['_executeRemoteChangeset'](_0x5c9699);}),this[_0x27a812(0x4a6)]&&this[_0x27a812(0x3ae)](),this[_0x27a812(0x257)]&&_0x151d32[_0x27a812(0x3d6)]&&(_0x151d32[0x0][_0x27a812(0x3de)]=this['_getCurrentRevision']());let _0xeb9e4b;if(this[_0x27a812(0x257)]&&_0x456b3e[_0x27a812(0x3d6)]!==0x0)_0xeb9e4b=this[_0x27a812(0x401)][_0x27a812(0x293)](_0x395896,this[_0x27a812(0x437)],this['type'],_0x151d32[0x0],_0x456b3e,this['_handler']);else{if(this['_awaitingChangeset']&&_0x456b3e['length']===0x0)_0x151d32[0x0][_0x27a812(0x3de)]=this[_0x27a812(0x35f)](),_0xeb9e4b=this[_0x27a812(0x401)][_0x27a812(0x293)](_0x2a6e62,this[_0x27a812(0x437)],this[_0x27a812(0x28c)],_0x151d32[0x0],this[_0x27a812(0x180)]);else{if(_0x456b3e['length']!==0x0){const _0x43aa6d=this[_0x27a812(0x401)]['createInstance'](_0x2b5aac,this[_0x27a812(0x437)],this['type'],_0x456b3e,this[_0x27a812(0x180)]);_0x43aa6d[_0x27a812(0x391)](),_0xeb9e4b=_0x43aa6d;}else _0xeb9e4b=this[_0x27a812(0x401)][_0x27a812(0x293)](_0x440104,this[_0x27a812(0x437)],this['type'],this[_0x27a812(0x180)]);}}return _0xeb9e4b[_0x27a812(0x25a)](),_0xeb9e4b;}catch(_0x3216d1){return this[_0x27a812(0x3b1)][_0x27a812(0x207)](_0x27a812(0x372),_0x27a812(0x2f5),_0x3216d1),this['_injector']['createInstance'](_0x36f45f,this['unitID'],this[_0x27a812(0x28c)],this[_0x27a812(0x257)],this[_0x27a812(0x306)],this[_0x27a812(0x180)],!0x1);}}['resend'](){const _0x51e0f0=_0x50a247;throw new Error(_0x51e0f0(0x494));}['appendMutation'](_0x37942a){const _0x16f8fb=_0x50a247;return this['_pendingMutations'][_0x16f8fb(0x4a8)](_0x37942a),this;}[_0x50a247(0x280)](_0x4d9840){const _0x1059f5=_0x50a247;return this[_0x1059f5(0x2c0)][_0x1059f5(0x4a8)](_0x4d9840),this;}[_0x50a247(0x1b6)](_0x298993){const _0x22b75c=_0x50a247;if(this[_0x22b75c(0x257)])return this[_0x22b75c(0x4a6)]=this[_0x22b75c(0x257)],this[_0x22b75c(0x257)]=null,this;throw new Error(_0x22b75c(0x23c));}['onRemoteRej'](_0x9d26a8){const _0x321de1=_0x50a247;return this[_0x321de1(0x4ab)](!!(_0x9d26a8!=null&&_0x9d26a8['isPermissionRej']));}['toggleOffline'](){const _0x4efb6b=_0x50a247;return this['_injector']['createInstance'](_0x79ae46,this[_0x4efb6b(0x437)],this['type'],this[_0x4efb6b(0x257)],this[_0x4efb6b(0x306)],this[_0x4efb6b(0x180)]);}[_0x50a247(0x27d)](){return this;}[_0x50a247(0x4ab)](_0x1a3935){const _0x480744=_0x50a247;return this[_0x480744(0x401)][_0x480744(0x293)](_0x36f45f,this['unitID'],this[_0x480744(0x28c)],this['_awaitingChangeset'],this[_0x480744(0x306)],this['_handler'],_0x1a3935);}};_0x3725d2=_0x15fb27([_0x383c29(0x7,_0x58498f[_0x50a247(0x342)](_0x58498f[_0x50a247(0x1a4)])),_0x383c29(0x8,_0x58498f[_0x50a247(0x342)](_0x57eaa4[_0x50a247(0x417)])),_0x383c29(0x9,_0x58498f[_0x50a247(0x342)](_0x5bd0fe[_0x50a247(0x262)])),_0x383c29(0xa,_0x40aff1[_0x50a247(0x192)]),_0x383c29(0xb,_0x40aff1[_0x50a247(0x19e)]),_0x383c29(0xc,_0x40aff1[_0x50a247(0x351)]),_0x383c29(0xd,_0x57eaa4[_0x50a247(0x3be)])],_0x3725d2);function _0x47e08a(_0x3ab5c7,_0x5aefa8,_0x3e7ff9,_0x3dff6b,_0x5503e7,_0x49f49a){const _0x10a205=_0x50a247;return _0x3dff6b&&_0x5503e7[_0x10a205(0x3d6)]?_0x3ab5c7['createInstance'](_0x395896,_0x5aefa8,_0x3e7ff9,_0x3dff6b,_0x5503e7,_0x49f49a):_0x3dff6b?_0x3ab5c7[_0x10a205(0x293)](_0x2a6e62,_0x5aefa8,_0x3e7ff9,_0x3dff6b,_0x49f49a):_0x5503e7[_0x10a205(0x3d6)]?_0x3ab5c7[_0x10a205(0x293)](_0x2b5aac,_0x5aefa8,_0x3e7ff9,_0x5503e7,_0x49f49a):_0x3ab5c7['createInstance'](_0x440104,_0x5aefa8,_0x3e7ff9,_0x49f49a);}var _0xac1bae=(_0x441b79,_0x4c5bb4,_0x422ecb,_0x36298e)=>{const _0x452a34=_0x50a247;for(var _0x3d6fec=_0x4c5bb4,_0x3fd686=_0x441b79[_0x452a34(0x3d6)]-0x1,_0x2f1122;_0x3fd686>=0x0;_0x3fd686--)(_0x2f1122=_0x441b79[_0x3fd686])&&(_0x3d6fec=_0x2f1122(_0x3d6fec)||_0x3d6fec);return _0x3d6fec;},_0x4c4bd3=(_0x110ed0,_0x343dab)=>(_0xded47a,_0x555555)=>_0x343dab(_0xded47a,_0x555555,_0x110ed0);_0x5bd0fe[_0x50a247(0x422)]=class extends _0x40aff1[_0x50a247(0x48d)]{constructor(_0x5aa23d,_0xb15135,_0x5c3a36){const _0x4e635a=_0x50a247;super(),_0x22b1a2(this,_0x4e635a(0x2f9),new Map()),_0x22b1a2(this,_0x4e635a(0x397),new _0x3171f1[(_0x4e635a(0x1ed))]()),(this[_0x4e635a(0x401)]=_0x5aa23d,this[_0x4e635a(0x158)]=_0xb15135,this[_0x4e635a(0x1f8)]=_0x5c3a36,this[_0x4e635a(0x1ce)]());}[_0x50a247(0x1e5)](){const _0x170f73=_0x50a247;super['dispose'](),this[_0x170f73(0x2f9)][_0x170f73(0x35b)](_0x4770ed=>_0x4770ed[_0x170f73(0x1e5)]()),this[_0x170f73(0x2f9)][_0x170f73(0x348)]();}[_0x50a247(0x241)](_0x35a611){const _0x54c196=_0x50a247;var _0x731758;return(_0x731758=this[_0x54c196(0x2f9)][_0x54c196(0x17e)](_0x35a611))!=null?_0x731758:null;}[_0x50a247(0x240)](_0x59cb44){const _0x90353c=_0x50a247,_0x2a471a=this[_0x90353c(0x241)](_0x59cb44);return _0x2a471a?_0x3171f1['of'](_0x2a471a):this[_0x90353c(0x397)][_0x90353c(0x41d)](_0x32d0c5['filter'](_0x2cd692=>_0x2cd692[_0x90353c(0x437)]===_0x59cb44));}[_0x50a247(0x1ce)](){const _0x95c00b=_0x50a247;this[_0x95c00b(0x1f8)]['getTypeOfUnitAdded$'](_0x40aff1[_0x95c00b(0x1ff)][_0x95c00b(0x309)])['pipe'](_0x3171f1[_0x95c00b(0x1f0)](this[_0x95c00b(0x439)]),_0x32d0c5['delay'](0x10))[_0x95c00b(0x1a6)](async _0x428f28=>{const _0x26baac=_0x95c00b,_0x56d734=_0x428f28[_0x26baac(0x220)](),_0x455010=await this[_0x26baac(0x39f)](_0x56d734,_0x4cf902['UNIVER_SHEET']);this['_entities'][_0x26baac(0x3cc)](_0x56d734,_0x455010);}),this[_0x95c00b(0x1f8)][_0x95c00b(0x3c2)](_0x40aff1['UniverInstanceType'][_0x95c00b(0x254)])[_0x95c00b(0x41d)](_0x3171f1[_0x95c00b(0x1f0)](this[_0x95c00b(0x439)]),_0x32d0c5[_0x95c00b(0x4d6)](0x10))['pipe'](_0x32d0c5[_0x95c00b(0x1b1)](_0xf837c6=>!_0xf837c6[_0x95c00b(0x220)]()['startsWith']('__')))[_0x95c00b(0x1a6)](async _0xa09e8a=>{const _0x47155a=_0x95c00b,_0x42fa82=_0xa09e8a['getUnitId'](),_0x7e7388=await this[_0x47155a(0x39f)](_0x42fa82,_0x4cf902[_0x47155a(0x254)]);this['_entities'][_0x47155a(0x3cc)](_0x42fa82,_0x7e7388);}),_0x3171f1[_0x95c00b(0x151)](this[_0x95c00b(0x1f8)][_0x95c00b(0x484)](_0x40aff1[_0x95c00b(0x1ff)][_0x95c00b(0x309)]),this['_univerInstanceService'][_0x95c00b(0x484)](_0x40aff1[_0x95c00b(0x1ff)][_0x95c00b(0x254)]))[_0x95c00b(0x41d)](_0x3171f1[_0x95c00b(0x1f0)](this[_0x95c00b(0x439)]))['subscribe'](_0x253953=>{const _0x1fc035=_0x95c00b,_0x4b15d2=_0x253953[_0x1fc035(0x220)](),_0x2c8bf6=this[_0x1fc035(0x2f9)][_0x1fc035(0x17e)](_0x4b15d2);_0x2c8bf6&&(_0x2c8bf6['dispose'](),this['_entities'][_0x1fc035(0x371)](_0x4b15d2));});}async[_0x50a247(0x39f)](_0xd5e44b,_0x2e164d){const _0x1404ca=_0x50a247,_0x27490f=await this[_0x1404ca(0x158)][_0x1404ca(0x327)](_0xd5e44b),_0x5adffe=this[_0x1404ca(0x401)][_0x1404ca(0x293)](this['_getCtorByUniverType'](_0x2e164d),_0xd5e44b,_0x2e164d,_0x27490f);return await _0x5adffe[_0x1404ca(0x356)](),this[_0x1404ca(0x397)][_0x1404ca(0x446)](_0x5adffe),_0x5adffe;}[_0x50a247(0x492)](_0x34cf80){const _0x5e9350=_0x50a247;switch(_0x34cf80){case _0x4cf902['UNIVER_DOC']:return _0x124e54;case _0x4cf902['UNIVER_SHEET']:return _0x10966b;default:throw new Error(_0x5e9350(0x1e4)+_0x34cf80);}}},_0x5bd0fe[_0x50a247(0x422)]=_0xac1bae([_0x40aff1[_0x50a247(0x199)](_0x40aff1[_0x50a247(0x419)][_0x50a247(0x256)],_0x5bd0fe[_0x50a247(0x422)]),_0x4c4bd3(0x0,_0x58498f['Inject'](_0x58498f['Injector'])),_0x4c4bd3(0x1,_0x58498f[_0x50a247(0x342)](_0x5bd0fe[_0x50a247(0x1c4)])),_0x4c4bd3(0x2,_0x40aff1['IUniverInstanceService'])],_0x5bd0fe['CollaborationController']);let _0x3325f9=class extends _0x40aff1[_0x50a247(0x48d)]{constructor(_0x18c50d,_0xc7c386,_0x106c2e,_0x4bb0d0,_0x3cd6d8,_0x134a44,_0x2efe58,_0x182e60,_0x1b4c35,_0xfe72e5,_0x336b5b,_0xeeed60,_0x4af608){const _0x539dbb=_0x50a247;super(),_0x22b1a2(this,'_state$',new _0x3171f1[(_0x539dbb(0x431))](null)),_0x22b1a2(this,_0x539dbb(0x302),this[_0x539dbb(0x230)][_0x539dbb(0x407)]()),_0x22b1a2(this,_0x539dbb(0x3b9)),_0x22b1a2(this,_0x539dbb(0x2cb),!0x1),_0x22b1a2(this,_0x539dbb(0x1c6),this['state$']['pipe'](_0x32d0c5[_0x539dbb(0x290)](_0x1c4fc9=>_0x1c4fc9?_0x1c4fc9['status']:_0x2dad21['OFFLINE']),_0x32d0c5['shareReplay'](0x1))),_0x22b1a2(this,'_transitionLocked',!0x1),_0x22b1a2(this,_0x539dbb(0x2eb),[]),(this[_0x539dbb(0x437)]=_0x18c50d,this[_0x539dbb(0x170)]=_0xc7c386,this[_0x539dbb(0x438)]=_0x106c2e,this[_0x539dbb(0x401)]=_0x4bb0d0,this[_0x539dbb(0x43e)]=_0x3cd6d8,this[_0x539dbb(0x239)]=_0x134a44,this['_localeService']=_0x2efe58,this['_revisionService']=_0x182e60,this[_0x539dbb(0x3b1)]=_0x1b4c35,this['_commandService']=_0xfe72e5,this[_0x539dbb(0x490)]=_0x336b5b,this['_permissionService']=_0xeeed60,this[_0x539dbb(0x1af)]=_0x4af608);}get[_0x50a247(0x28f)](){return this['_state'];}async['init'](){const _0x47992d=_0x50a247;if(this[_0x47992d(0x28f)])throw new Error(_0x47992d(0x414));await this['_init']();}['pauseCollaboration'](){const _0x56e656=_0x50a247;return this[_0x56e656(0x2cb)]=!0x0,_0x40aff1[_0x56e656(0x2b7)](()=>{const _0x746e64=_0x56e656;this[_0x746e64(0x2cb)]=!0x1,this[_0x746e64(0x299)]();});}[_0x50a247(0x1ba)](_0x2454ab){const _0x152177=_0x50a247;this[_0x152177(0x3b9)]=_0x2454ab,this[_0x152177(0x230)][_0x152177(0x446)](_0x2454ab);}async[_0x50a247(0x1ce)](){const _0x554c85=_0x50a247;var _0x484aa4;return this['_updateState'](await this[_0x554c85(0x282)]()),this[_0x554c85(0x1af)]&&((_0x484aa4=this[_0x554c85(0x1af)])==null||_0x484aa4[_0x554c85(0x3a7)](this[_0x554c85(0x437)]),this['disposeWithMe'](_0x40aff1[_0x554c85(0x2b7)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x554c85(0x437)])[_0x554c85(0x1a6)](_0x29e7e6=>{const _0x1b1bea=_0x554c85;this[_0x1b1bea(0x3b1)][_0x1b1bea(0x2d6)]('[CollaborationEntity]',_0x1b1bea(0x1bc),_0x29e7e6),_0x29e7e6===_0x1e11de[_0x1b1bea(0x4d9)]?(this[_0x1b1bea(0x490)]['show']({'content':this['_localeService']['t'](_0x1b1bea(0x3ec)),'type':_0x4ae90e[_0x1b1bea(0x385)][_0x1b1bea(0x174)]}),this[_0x1b1bea(0x193)][_0x1b1bea(0x3bc)](new _0x361837[(_0x1b1bea(0x30c))](this[_0x1b1bea(0x437)])['id'],!0x1)):this[_0x1b1bea(0x193)][_0x1b1bea(0x3bc)](new _0x361837['WorkbookEditablePermission'](this[_0x1b1bea(0x437)])['id'],!0x0);})))),this['disposeWithMe'](_0x40aff1[_0x554c85(0x2b7)](this[_0x554c85(0x438)][_0x554c85(0x2c3)][_0x554c85(0x1a6)](_0x59516b=>{const _0x45d2c9=_0x554c85;_0x59516b===_0x2d7bdc[_0x45d2c9(0x3b6)]?this[_0x45d2c9(0x3df)]():_0x59516b===_0x2d7bdc[_0x45d2c9(0x152)]&&this[_0x45d2c9(0x1e8)]();}))),this['disposeWithMe'](_0x40aff1[_0x554c85(0x2b7)](this['_session'][_0x554c85(0x326)]['subscribe'](_0x456596=>{const _0x3595d6=_0x554c85;try{switch(_0x456596[_0x3595d6(0x464)]){case _0x57eaa4['CollaborationEvent']['NEW_CHANGESETS']:{this[_0x3595d6(0x1cf)](_0x57eaa4[_0x3595d6(0x228)](_0x456596[_0x3595d6(0x1bb)]));break;}case _0x57eaa4[_0x3595d6(0x253)][_0x3595d6(0x26c)]:{this[_0x3595d6(0x442)](_0x456596['data']);break;}case _0x57eaa4[_0x3595d6(0x253)][_0x3595d6(0x1a0)]:{this[_0x3595d6(0x335)]();break;}case _0x57eaa4['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:{this['_onFetchMissResult'](_0x456596[_0x3595d6(0x1bb)]['changesets']['map'](_0x581d7c=>_0x57eaa4[_0x3595d6(0x228)](_0x581d7c)));break;}case _0x57eaa4[_0x3595d6(0x253)]['PERMISSION_REJ']:this[_0x3595d6(0x335)]({'isPermissionRej':!0x0});}}catch(_0x45e333){throw console['error']('Error\x20on\x20receiving\x20event',_0x45e333),_0x45e333;}}))),this[_0x554c85(0x3b9)];}[_0x50a247(0x1c7)](){this['_transitionLocked']=!0x1;}[_0x50a247(0x139)](){const _0x412ea9=_0x50a247;if(this[_0x412ea9(0x495)])throw new Error(_0x412ea9(0x2f8));this[_0x412ea9(0x495)]=!0x0;}[_0x50a247(0x39d)](_0x39eb25){const _0x1fce76=_0x50a247;this[_0x1fce76(0x139)](),this[_0x1fce76(0x1ba)](this[_0x1fce76(0x3b9)]['appendMutation'](_0x39eb25)),this[_0x1fce76(0x1c7)]();}[_0x50a247(0x1cf)](_0x2e4297){const _0xe97ba7=_0x50a247;if(!(_0x2e4297[_0xe97ba7(0x148)]<=this['_revisionService'][_0xe97ba7(0x340)](this[_0xe97ba7(0x437)]))){if(this[_0xe97ba7(0x2cb)]){this[_0xe97ba7(0x2eb)][_0xe97ba7(0x4a8)](_0x2e4297);return;}this[_0xe97ba7(0x286)](_0x2e4297);}}[_0x50a247(0x299)](){const _0xee3b67=_0x50a247;this[_0xee3b67(0x2eb)][_0xee3b67(0x35b)](_0x54a052=>this[_0xee3b67(0x286)](_0x54a052)),this[_0xee3b67(0x2eb)]=[];}[_0x50a247(0x286)](_0x4f45af){const _0x2282ba=_0x50a247,_0x3337ef=this[_0x2282ba(0x239)][_0x2282ba(0x46d)][_0x2282ba(0x1f9)](this['_compressMutationService'][_0x2282ba(0x46d)][_0x2282ba(0x1e3)]()[_0x2282ba(0x4c9)])(_0x4f45af[_0x2282ba(0x18e)],null)||_0x4f45af[_0x2282ba(0x18e)],_0x50d1bc={..._0x4f45af,'mutations':_0x3337ef};this['_lockTransition'](),this[_0x2282ba(0x1ba)](this[_0x2282ba(0x3b9)][_0x2282ba(0x280)](_0x50d1bc)),this['_unlockTransition']();}[_0x50a247(0x442)](_0x5f4f47){const _0x2d3e99=_0x50a247;this[_0x2d3e99(0x139)](),this[_0x2d3e99(0x1ba)](this[_0x2d3e99(0x3b9)][_0x2d3e99(0x1b6)](_0x5f4f47)),this[_0x2d3e99(0x1c7)]();}[_0x50a247(0x335)](_0x380fb0){const _0x42779e=_0x50a247;this[_0x42779e(0x139)](),this['_updateState'](this[_0x42779e(0x3b9)][_0x42779e(0x3a6)](_0x380fb0)),this[_0x42779e(0x1c7)]();}[_0x50a247(0x460)](_0x405469){const _0x4697fe=_0x50a247;if(!(this['_state']instanceof _0x3725d2))throw new TypeError(_0x4697fe(0x162));const _0x38c1d1=_0x405469[_0x4697fe(0x290)](_0x37fd7e=>{const _0x13f18b=_0x4697fe,_0x89e2e=this[_0x13f18b(0x239)][_0x13f18b(0x46d)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x13f18b(0x46d)]['getInterceptPoints']()[_0x13f18b(0x4c9)])(_0x37fd7e[_0x13f18b(0x18e)],null)||_0x37fd7e['mutations'];return{..._0x37fd7e,'mutations':_0x89e2e};});this[_0x4697fe(0x139)](),this[_0x4697fe(0x1ba)](this[_0x4697fe(0x3b9)][_0x4697fe(0x2f0)](_0x38c1d1)),this[_0x4697fe(0x1c7)]();}[_0x50a247(0x1e8)](){const _0xae21d2=_0x50a247;this[_0xae21d2(0x139)](),this[_0xae21d2(0x1ba)](this['_state'][_0xae21d2(0x3d4)]()),this[_0xae21d2(0x1c7)]();}[_0x50a247(0x3df)](){const _0x5957cf=_0x50a247;this['_lockTransition'](),this['_updateState'](this['_state'][_0x5957cf(0x27d)]()),this[_0x5957cf(0x1c7)]();}async[_0x50a247(0x282)](){return new Promise(_0x2e36b9=>{const _0xb58094=_0x3f00;this['_session'][_0xb58094(0x2c3)]['pipe'](_0x32d0c5['take'](0x1))[_0xb58094(0x1a6)](async _0x2cf2c9=>{_0x2e36b9(await this['_createInitialStateImpl'](_0x2cf2c9===_0x2d7bdc['ONLINE']));});});}['_createHandler'](){const _0x54ab23=this['unitID'];return{'onStateChange':(_0x52d5f1,_0x1d2aff)=>{const _0x9ddc37=_0x3f00;if(_0x52d5f1!==this[_0x9ddc37(0x3b9)])throw new Error(_0x9ddc37(0x3c8)+_0x52d5f1['status']+_0x9ddc37(0x3dc)+_0x1d2aff[_0x9ddc37(0x453)]+_0x9ddc37(0x14e)+this[_0x9ddc37(0x3b9)][_0x9ddc37(0x453)]);this['_updateState'](_0x1d2aff);},'onSendChangeset':_0x381f30=>{const _0x3d3af8=_0x3f00,_0x3ddd00={'eventID':_0x57eaa4[_0x3d3af8(0x253)][_0x3d3af8(0x34b)],'data':{'unitID':_0x381f30['unitID'],'unitType':this[_0x3d3af8(0x170)],'changeset':_0x381f30,'memberID':this['_session'][_0x3d3af8(0x441)]()}};this['_session']['send'](_0x3ddd00,this[_0x3d3af8(0x437)]);},'onMissingChangesets':({from:_0xdec7d,to:_0x149e79})=>{const _0xb23ed=_0x3f00;this['_logService'][_0xb23ed(0x2d6)](_0xb23ed(0x44f),_0xb23ed(0x2c7)+_0xdec7d+_0xb23ed(0x167)+_0x149e79);const _0x58fa71={'eventID':_0x57eaa4[_0xb23ed(0x253)][_0xb23ed(0x18b)],'data':{'unitID':_0x54ab23,'unitType':this['_type'],'from':_0xdec7d,'to':_0x149e79}};this[_0xb23ed(0x438)][_0xb23ed(0x2c2)](_0x58fa71,this[_0xb23ed(0x437)]);}};}async[_0x50a247(0x188)](_0x3d2250){const _0x3922a5=_0x50a247;var _0x5f4515,_0x17aa1c;const _0x1cdb93=await this['_localCacheService'][_0x3922a5(0x4a1)](this[_0x3922a5(0x437)]),_0x3ca8ff=(_0x5f4515=_0x1cdb93==null?void 0x0:_0x1cdb93[_0x3922a5(0x18e)])!=null?_0x5f4515:[],_0x23ede7=(_0x17aa1c=_0x1cdb93==null?void 0x0:_0x1cdb93[_0x3922a5(0x224)])!=null?_0x17aa1c:null,_0x2870c1=this['unitID'];try{this[_0x3922a5(0x233)](_0x23ede7,_0x3ca8ff);}catch(_0x864a29){this['_logService'][_0x3922a5(0x207)](_0x864a29);}const _0x253d3e=this[_0x3922a5(0x49e)]();if(_0x3d2250){const _0x38f37f=_0x47e08a(this[_0x3922a5(0x401)],_0x2870c1,this[_0x3922a5(0x170)],_0x23ede7,_0x3ca8ff,_0x253d3e);return _0x38f37f instanceof _0x2b5aac?_0x38f37f[_0x3922a5(0x391)]():(_0x38f37f instanceof _0x395896||_0x38f37f instanceof _0x2a6e62)&&_0x38f37f['resend'](),_0x38f37f;}return this[_0x3922a5(0x401)][_0x3922a5(0x293)](_0x79ae46,_0x2870c1,this[_0x3922a5(0x170)],_0x23ede7,_0x3ca8ff,_0x253d3e);}['_replayCachedMutations'](_0x1db610,_0x5d6b98){const _0xe528bf=_0x50a247;var _0x2bfe19,_0x1e2927;const _0x525017=this[_0xe528bf(0x239)][_0xe528bf(0x46d)][_0xe528bf(0x1f9)](this[_0xe528bf(0x239)]['interceptor'][_0xe528bf(0x1e3)]()['COMPRESS_MUTATION_APPLY']);(_0x2bfe19=_0x525017((_0x1db610==null?void 0x0:_0x1db610[_0xe528bf(0x18e)])||[],null))==null||_0x2bfe19['forEach'](_0x5cc901=>this[_0xe528bf(0x14b)][_0xe528bf(0x1eb)](_0x5cc901['id'],_0x5cc901[_0xe528bf(0x1ca)])),(_0x1e2927=_0x525017(_0x5d6b98||[],null))==null||_0x1e2927['forEach'](_0x46bb48=>this[_0xe528bf(0x14b)][_0xe528bf(0x1eb)](_0x46bb48['id'],_0x46bb48[_0xe528bf(0x1ca)]));}};_0x3325f9=_0xac1bae([_0x4c4bd3(0x3,_0x58498f[_0x50a247(0x342)](_0x58498f[_0x50a247(0x1a4)])),_0x4c4bd3(0x4,_0x58498f['Inject'](_0x5bd0fe['LocalCacheService'])),_0x4c4bd3(0x5,_0x58498f[_0x50a247(0x342)](_0x57eaa4[_0x50a247(0x3f2)])),_0x4c4bd3(0x6,_0x58498f[_0x50a247(0x342)](_0x40aff1[_0x50a247(0x34a)])),_0x4c4bd3(0x7,_0x58498f[_0x50a247(0x342)](_0x57eaa4[_0x50a247(0x417)])),_0x4c4bd3(0x8,_0x40aff1['ILogService']),_0x4c4bd3(0x9,_0x40aff1[_0x50a247(0x19e)]),_0x4c4bd3(0xa,_0x4f2827[_0x50a247(0x248)]),_0x4c4bd3(0xb,_0x40aff1[_0x50a247(0x250)]),_0x4c4bd3(0xc,_0x58498f[_0x50a247(0x1a5)](_0x4f8e2c))],_0x3325f9);let _0x124e54=class extends _0x3325f9{constructor(_0x183d69,_0x5040cb,_0x3101c8,_0x714945,_0xb446a7,_0x4a1f6a,_0x2217a6,_0x4f2f8c,_0x573151,_0x306395,_0x49c909,_0x46ca33,_0x2d04d4,_0x4bfec5,_0x59a95d,_0x3ba5fe,_0x4dbf05){const _0x20b89b=_0x50a247;super(_0x183d69,_0x5040cb,_0x3101c8,_0x714945,_0xb446a7,_0x4a1f6a,_0x2217a6,_0x4f2f8c,_0x2d04d4,_0x4bfec5,_0x59a95d,_0x3ba5fe,_0x4dbf05),this['unitID']=_0x183d69,this['type']=_0x5040cb,this[_0x20b89b(0x487)]=_0x3101c8,this[_0x20b89b(0x2d8)]=_0x573151,this['_docTransformIMECacheService']=_0x306395,this[_0x20b89b(0x445)]=_0x49c909,this[_0x20b89b(0x37a)]=_0x46ca33;}[_0x50a247(0x49e)](){const _0x2ef894=_0x50a247,_0xda0b81=super[_0x2ef894(0x49e)]();return _0xda0b81['onTransformIME']=_0x5c7744=>this[_0x2ef894(0x3af)]['transformIMECache'](_0x5c7744),_0xda0b81['onTransformSelections']=_0x328fcc=>this[_0x2ef894(0x445)][_0x2ef894(0x19b)](_0x328fcc),_0xda0b81[_0x2ef894(0x34d)]=_0x178e5e=>this['_docSyncEditingCollabCursorService'][_0x2ef894(0x3db)](_0x178e5e),_0xda0b81[_0x2ef894(0x332)]=_0x56d5e1=>this['_docTransformIMECacheService'][_0x2ef894(0x27b)](_0x56d5e1),_0xda0b81;}async['_init'](){const _0x5644f5=_0x50a247,_0x2e1c22=await super[_0x5644f5(0x1ce)]();return this[_0x5644f5(0x2d8)][_0x5644f5(0x1ac)][_0x5644f5(0x41d)](_0x3171f1['takeUntil'](this[_0x5644f5(0x439)]))[_0x5644f5(0x1a6)](_0x40114f=>{const _0x3590f9=_0x5644f5;if(_0x40114f==null)return;const {unitId:_0x26fb47,redoState:_0x126d5c,commandId:_0x535c36}=_0x40114f;if(_0x26fb47!==this[_0x3590f9(0x437)])return;const _0x2ab5ad={'id':_0x535c36,'type':_0x40aff1['CommandType'][_0x3590f9(0x163)],'params':{'unitId':_0x26fb47,'actions':_0x126d5c['actions'],'textRanges':null}};this['_onLocalMutation'](_0x2ab5ad);}),_0x2e1c22;}};_0x124e54=_0xac1bae([_0x4c4bd3(0x3,_0x58498f[_0x50a247(0x342)](_0x58498f['Injector'])),_0x4c4bd3(0x4,_0x58498f[_0x50a247(0x342)](_0x5bd0fe[_0x50a247(0x262)])),_0x4c4bd3(0x5,_0x58498f[_0x50a247(0x342)](_0x57eaa4['CompressMutationService'])),_0x4c4bd3(0x6,_0x58498f[_0x50a247(0x342)](_0x40aff1['LocaleService'])),_0x4c4bd3(0x7,_0x58498f[_0x50a247(0x342)](_0x57eaa4[_0x50a247(0x417)])),_0x4c4bd3(0x8,_0x58498f['Inject'](_0xc138e5['DocStateChangeManagerService'])),_0x4c4bd3(0x9,_0x58498f[_0x50a247(0x342)](_0x2b1054)),_0x4c4bd3(0xa,_0x58498f['Inject'](_0x58ad03)),_0x4c4bd3(0xb,_0x58498f['Inject'](_0x59e101)),_0x4c4bd3(0xc,_0x40aff1[_0x50a247(0x192)]),_0x4c4bd3(0xd,_0x40aff1[_0x50a247(0x19e)]),_0x4c4bd3(0xe,_0x4f2827[_0x50a247(0x248)]),_0x4c4bd3(0xf,_0x40aff1[_0x50a247(0x250)]),_0x4c4bd3(0x10,_0x58498f[_0x50a247(0x1a5)](_0x4f8e2c))],_0x124e54);let _0x10966b=class extends _0x3325f9{constructor(_0x4c272a,_0x34fbcf,_0x2136f9,_0x21e92d,_0x56ffae,_0x1dff88,_0x2d3550,_0x511ec4,_0x4476f4,_0x4a5586,_0x2bffc6,_0x1468de,_0x3c5c29,_0x221df6){const _0x394359=_0x50a247;super(_0x4c272a,_0x34fbcf,_0x2136f9,_0x21e92d,_0x56ffae,_0x1dff88,_0x2d3550,_0x511ec4,_0x4a5586,_0x2bffc6,_0x1468de,_0x3c5c29,_0x221df6),this['unitID']=_0x4c272a,this[_0x394359(0x28c)]=_0x34fbcf,this[_0x394359(0x487)]=_0x2136f9,this['_sheetTransformSelectionsService']=_0x4476f4;}[_0x50a247(0x49e)](){const _0x31a35e=_0x50a247,_0x4008c1=super['_createHandler']();return _0x4008c1[_0x31a35e(0x2ac)]=_0x5a9719=>this['_sheetTransformSelectionsService']['transformSelections'](_0x5a9719),_0x4008c1;}async['_init'](){const _0x1041ee=_0x50a247,_0x34a02c=await super[_0x1041ee(0x1ce)]();return this[_0x1041ee(0x3e1)](this[_0x1041ee(0x14b)]['onCommandExecuted']((_0x2e5001,_0x15dda8)=>{const _0x5619c2=_0x1041ee;if(_0x2e5001[_0x5619c2(0x28c)]!==_0x40aff1[_0x5619c2(0x2d7)][_0x5619c2(0x163)]||_0x15dda8!=null&&_0x15dda8[_0x5619c2(0x20c)]||_0x15dda8!=null&&_0x15dda8['onlyLocal'])return;const _0x182c8b=_0x2e5001[_0x5619c2(0x1ca)];if((_0x182c8b==null?void 0x0:_0x182c8b[_0x5619c2(0x430)])!==this['unitID'])return;const _0x23eccf=_0x2e5001,_0x2b413a=this['_compressMutationService'][_0x5619c2(0x46d)]['fetchThroughInterceptors'](this[_0x5619c2(0x239)]['interceptor']['getInterceptPoints']()[_0x5619c2(0x429)])([_0x23eccf],null)||[_0x23eccf];this['_onLocalMutation'](_0x2b413a[0x0]);})),_0x34a02c;}};_0x10966b=_0xac1bae([_0x4c4bd3(0x3,_0x58498f[_0x50a247(0x342)](_0x58498f[_0x50a247(0x1a4)])),_0x4c4bd3(0x4,_0x58498f[_0x50a247(0x342)](_0x5bd0fe['LocalCacheService'])),_0x4c4bd3(0x5,_0x58498f[_0x50a247(0x342)](_0x57eaa4[_0x50a247(0x3f2)])),_0x4c4bd3(0x6,_0x58498f[_0x50a247(0x342)](_0x40aff1['LocaleService'])),_0x4c4bd3(0x7,_0x58498f[_0x50a247(0x342)](_0x57eaa4[_0x50a247(0x417)])),_0x4c4bd3(0x8,_0x58498f[_0x50a247(0x342)](_0x30b6af)),_0x4c4bd3(0x9,_0x40aff1['ILogService']),_0x4c4bd3(0xa,_0x40aff1[_0x50a247(0x19e)]),_0x4c4bd3(0xb,_0x4f2827[_0x50a247(0x248)]),_0x4c4bd3(0xc,_0x40aff1[_0x50a247(0x250)]),_0x4c4bd3(0xd,_0x58498f[_0x50a247(0x1a5)](_0x4f8e2c))],_0x10966b);const _0x4c4686=[_0x50a247(0x489),_0x50a247(0x423),_0x50a247(0x2a5),'red300',_0x50a247(0x1aa),'gold400'];class _0x410bf1 extends _0x40aff1[_0x50a247(0x14a)]{constructor(){const _0x4b8941=_0x50a247;super(...arguments),_0x22b1a2(this,'_assignedColors',new Map()),_0x22b1a2(this,_0x4b8941(0x337),0x0);}[_0x50a247(0x20d)](_0x485dd2){const _0x101fa7=_0x50a247;if(this['_assignedColors'][_0x101fa7(0x25b)](_0x485dd2))return this[_0x101fa7(0x133)][_0x101fa7(0x17e)](_0x485dd2);const _0x33f610=_0x4c4686[this[_0x101fa7(0x337)]];return this[_0x101fa7(0x337)]=(this[_0x101fa7(0x337)]+0x1)%_0x4c4686[_0x101fa7(0x3d6)],this['_assignedColors'][_0x101fa7(0x3cc)](_0x485dd2,_0x33f610),_0x33f610;}}var _0x30deb3=(_0x2eaa26,_0x27828f,_0x258e87,_0x5c351b)=>{const _0x2166ad=_0x50a247;for(var _0x2b0c74=_0x27828f,_0x3c2422=_0x2eaa26[_0x2166ad(0x3d6)]-0x1,_0x28bb1f;_0x3c2422>=0x0;_0x3c2422--)(_0x28bb1f=_0x2eaa26[_0x3c2422])&&(_0x2b0c74=_0x28bb1f(_0x2b0c74)||_0x2b0c74);return _0x2b0c74;},_0x28f305=(_0x1389b0,_0x5de909)=>(_0xc9bddc,_0x5edffc)=>_0x5de909(_0xc9bddc,_0x5edffc,_0x1389b0);const _0x365354=0x12c,_0x4299f4=0x64,_0xad752a=()=>{let _0x2c2f6d=[],_0x2ceda6=!0x1;return _0xd2ade=>{const _0x52bb9b=_0x3f00;_0x2c2f6d[_0x52bb9b(0x4a8)](_0xd2ade),_0x2ceda6||(_0x2ceda6=!0x0,setTimeout(()=>{const _0x2f1385=_0x52bb9b;_0x2c2f6d[_0x2f1385(0x35b)](_0x5cf259=>_0x5cf259()),_0x2c2f6d=[],_0x2ceda6=!0x1;}));};};let _0x2a24e0=class extends _0x40aff1[_0x50a247(0x48d)]{constructor(_0x2488e8,_0x29774c,_0x41a835,_0x41e1be,_0x1d725f,_0x5afbf3,_0x8ce89b,_0x55a4f0){const _0x3cf8e9=_0x50a247;super(),_0x22b1a2(this,_0x3cf8e9(0x47a),!0x1),_0x22b1a2(this,_0x3cf8e9(0x1ce),!0x1),_0x22b1a2(this,_0x3cf8e9(0x45d),new _0x3171f1[(_0x3cf8e9(0x431))](new Map())),_0x22b1a2(this,_0x3cf8e9(0x393),this[_0x3cf8e9(0x45d)]['asObservable']()),_0x22b1a2(this,_0x3cf8e9(0x24c),new _0x3171f1[(_0x3cf8e9(0x431))]([])),_0x22b1a2(this,_0x3cf8e9(0x2b1),this[_0x3cf8e9(0x24c)][_0x3cf8e9(0x41d)](_0x3171f1['debounceTime'](_0x365354))),_0x22b1a2(this,_0x3cf8e9(0x485),_0x57a849((_0xa14963,_0x52250d)=>{const _0x20ecd2=_0x3cf8e9,_0x5e5431={'eventID':_0x57eaa4[_0x20ecd2(0x253)][_0x20ecd2(0x373)],'data':{'unitID':this[_0x20ecd2(0x437)],'memberID':this[_0x20ecd2(0x438)][_0x20ecd2(0x441)](),'selection':_0x44757f[_0x20ecd2(0x2ce)](_0xa14963,_0x52250d['range'])}};this[_0x20ecd2(0x438)]['send'](_0x5e5431,this['unitID']);},_0x4299f4)),(this[_0x3cf8e9(0x437)]=_0x2488e8,this[_0x3cf8e9(0x438)]=_0x29774c,this[_0x3cf8e9(0x401)]=_0x41a835,this[_0x3cf8e9(0x462)]=_0x41e1be,this[_0x3cf8e9(0x47f)]=_0x1d725f,this[_0x3cf8e9(0x1f8)]=_0x5afbf3,this[_0x3cf8e9(0x14b)]=_0x8ce89b,this['_refRangeService']=_0x55a4f0);}get[_0x50a247(0x4e9)](){const _0x30817d=_0x50a247;return this[_0x30817d(0x45d)][_0x30817d(0x331)]();}get[_0x50a247(0x3d0)](){const _0x5ea177=_0x50a247;return this[_0x5ea177(0x24c)]['getValue']();}['dispose'](){const _0x29631b=_0x50a247;super[_0x29631b(0x1e5)](),this['_cursorInfo$']['next'](new Map()),this[_0x29631b(0x45d)][_0x29631b(0x142)](),this[_0x29631b(0x24c)][_0x29631b(0x446)]([]),this['_roomMembers$'][_0x29631b(0x142)]();}[_0x50a247(0x356)](){const _0x2db162=_0x50a247;this[_0x2db162(0x1ce)]||(this['_init']=!0x0,this['_session'][_0x2db162(0x2c3)][_0x2db162(0x41d)](_0x3171f1[_0x2db162(0x1f0)](this[_0x2db162(0x439)]))[_0x2db162(0x1a6)](_0x1d97a9=>{const _0x5ce8e3=_0x2db162;_0x1d97a9===_0x2d7bdc[_0x5ce8e3(0x3b6)]?this[_0x5ce8e3(0x3df)]():this[_0x5ce8e3(0x1e8)]();}),this[_0x2db162(0x438)][_0x2db162(0x326)][_0x2db162(0x41d)](_0x3171f1['takeUntil'](this['dispose$']))['subscribe'](_0x3c3d87=>{const _0x313428=_0x2db162,_0x14ae6a=_0x3c3d87['eventID'];_0x14ae6a===_0x57eaa4[_0x313428(0x253)][_0x313428(0x373)]&&this[_0x313428(0x26e)](_0x3c3d87),_0x14ae6a===_0x57eaa4[_0x313428(0x253)][_0x313428(0x13b)]&&this[_0x313428(0x35e)](_0x3c3d87);}),this['_onRefRangeChange'](),this[_0x2db162(0x3e1)](this['_commandService'][_0x2db162(0x21e)](_0xf34f38=>{const _0xfaf256=_0x2db162;if(this[_0xfaf256(0x47a)]&&_0xf34f38['id']===_0x361837[_0xfaf256(0x1d5)]['id']&&_0xf34f38[_0xfaf256(0x1ca)]['unitId']===this[_0xfaf256(0x437)]){const _0x67dbcc=_0xf34f38[_0xfaf256(0x1ca)];this['_updateLocalCursor'](_0x67dbcc[_0xfaf256(0x23a)],_0x67dbcc[_0xfaf256(0x499)][0x0]);}})));}[_0x50a247(0x26e)](_0x279042){const _0x3885ea=_0x50a247;var _0x4b5496,_0x375980;const {memberID:_0x27cf53,selection:_0x45c1ca}=_0x279042[_0x3885ea(0x1bb)],{sheetName:_0x1e410a,range:_0x34a01f}=_0x44757f[_0x3885ea(0x3a9)](_0x45c1ca),_0x23493f={'name':(_0x375980=(_0x4b5496=this[_0x3885ea(0x47f)]['getMember'](this[_0x3885ea(0x437)],_0x27cf53))==null?void 0x0:_0x4b5496[_0x3885ea(0x44c)])!=null?_0x375980:'Unknown\x20user','range':this[_0x3885ea(0x4c5)](_0x1e410a,_0x34a01f),'sheetID':_0x1e410a,'color':this[_0x3885ea(0x462)][_0x3885ea(0x20d)](_0x27cf53),'selection':_0x45c1ca},_0x37a120=this['cursorInfo'];_0x37a120[_0x3885ea(0x3cc)](_0x27cf53,_0x23493f),this['_cursorInfo$']['next'](_0x37a120);}[_0x50a247(0x35e)](_0x458767){const _0x3a6c21=_0x50a247,{memberID:_0x39ec1f}=_0x458767[_0x3a6c21(0x1bb)],_0x1444f6=this[_0x3a6c21(0x4e9)];_0x1444f6[_0x3a6c21(0x371)](_0x39ec1f),this['_cursorInfo$'][_0x3a6c21(0x446)](_0x1444f6);}[_0x50a247(0x4c5)](_0x53b005,_0x7dae98){const _0x2e946e=_0x50a247;var _0x329e05,_0x17d76e;const _0x5bd497=(_0x17d76e=(_0x329e05=this[_0x2e946e(0x1f8)][_0x2e946e(0x41c)](this['unitID']))==null?void 0x0:_0x329e05[_0x2e946e(0x2d2)](_0x53b005))==null?void 0x0:_0x17d76e['getMergeData']();return(_0x5bd497==null?void 0x0:_0x5bd497[_0x2e946e(0x271)](_0x314436=>_0x40aff1['Rectangle'][_0x2e946e(0x31e)](_0x314436,_0x7dae98)))||_0x7dae98;}[_0x50a247(0x48c)](){const _0x5b6b65=_0x50a247,_0x455eef=new _0x40aff1[(_0x5b6b65(0x243))](),_0x574da8=_0xad752a(),_0x33e1c5=()=>{const _0x50f452=_0x5b6b65;_0x455eef[_0x50f452(0x1e5)]();const _0x9bc2f4=(_0x378b5a,_0x4015ed,_0x4075aa,_0x386c6c)=>{const _0x4330f5=_0x50f452;let _0x51f3ff=[];switch(_0x378b5a['id']){case _0x361837[_0x4330f5(0x17c)][_0x4330f5(0x235)]:{_0x51f3ff=_0x361837[_0x4330f5(0x219)](_0x378b5a,_0x386c6c);break;}case _0x361837[_0x4330f5(0x17c)][_0x4330f5(0x3fc)]:{_0x51f3ff=_0x361837['handleDeleteRangeMoveUp'](_0x378b5a,_0x386c6c);break;}case _0x361837[_0x4330f5(0x17c)][_0x4330f5(0x2b6)]:{_0x51f3ff=_0x361837[_0x4330f5(0x178)](_0x378b5a,_0x386c6c);break;}case _0x361837[_0x4330f5(0x17c)][_0x4330f5(0x367)]:{_0x51f3ff=_0x361837[_0x4330f5(0x27f)](_0x378b5a,_0x386c6c);break;}case _0x361837['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x51f3ff=_0x361837[_0x4330f5(0x37c)](_0x378b5a,_0x386c6c);break;}case _0x361837[_0x4330f5(0x17c)][_0x4330f5(0x47c)]:{_0x51f3ff=_0x361837[_0x4330f5(0x201)](_0x378b5a,_0x386c6c);break;}case _0x361837[_0x4330f5(0x17c)][_0x4330f5(0x2a0)]:{_0x51f3ff=_0x361837[_0x4330f5(0x310)](_0x378b5a,_0x386c6c);break;}case _0x361837[_0x4330f5(0x17c)][_0x4330f5(0x29f)]:{_0x51f3ff=_0x361837[_0x4330f5(0x197)](_0x378b5a,_0x386c6c);break;}case _0x361837[_0x4330f5(0x17c)][_0x4330f5(0x26a)]:{_0x51f3ff=_0x361837[_0x4330f5(0x30a)](_0x378b5a,_0x386c6c);break;}}const _0x2e8bba=_0x361837[_0x4330f5(0x45f)](_0x51f3ff,_0x386c6c),_0x1d264d=this[_0x4330f5(0x4e9)][_0x4330f5(0x17e)](_0x4015ed);if(_0x1d264d&&_0x2e8bba){const _0x2afed7={..._0x1d264d,'range':_0x2e8bba};this['cursorInfo'][_0x4330f5(0x3cc)](_0x4015ed,_0x2afed7),_0x574da8(()=>{const _0x3bab35=_0x4330f5,_0x36338f=this[_0x3bab35(0x252)][_0x3bab35(0x4e7)](_0x2e8bba,_0x37096d=>(_0x36338f[_0x3bab35(0x1e5)](),_0x9bc2f4(_0x37096d,_0x4015ed,_0x4075aa,_0x2e8bba)));_0x455eef['add'](_0x36338f);});}return{'redos':[],'undos':[]};};this[_0x50f452(0x4e9)][_0x50f452(0x35b)]((_0x5c44ce,_0x5d15fa)=>{const _0x1e03ca=_0x50f452,{range:_0x1766c4,sheetID:_0x1d4ee1}=_0x5c44ce,_0x11d932=this[_0x1e03ca(0x252)][_0x1e03ca(0x4e7)](_0x1766c4,_0xfd4e1=>(_0x11d932[_0x1e03ca(0x1e5)](),_0x9bc2f4(_0xfd4e1,_0x5d15fa,_0x1d4ee1,_0x1766c4)));_0x455eef[_0x1e03ca(0x3ce)](_0x11d932);});};this[_0x5b6b65(0x3e1)](_0x40aff1[_0x5b6b65(0x2b7)](this[_0x5b6b65(0x45d)]['subscribe'](()=>{_0x33e1c5();})));}['_toggleOnline'](){const _0x51d1ac=_0x50a247;var _0x926e11,_0x24600d;if(this[_0x51d1ac(0x47a)]=!0x0,((_0x926e11=this[_0x51d1ac(0x1f8)][_0x51d1ac(0x379)]())==null?void 0x0:_0x926e11[_0x51d1ac(0x220)]())!==this[_0x51d1ac(0x437)])return;const _0x2bf352=(_0x24600d=this[_0x51d1ac(0x401)][_0x51d1ac(0x17e)](_0x361837[_0x51d1ac(0x186)])[_0x51d1ac(0x1d7)]())==null?void 0x0:_0x24600d[0x0];_0x2bf352&&this[_0x51d1ac(0x485)](this[_0x51d1ac(0x1f8)][_0x51d1ac(0x4cc)](_0x40aff1[_0x51d1ac(0x1ff)]['UNIVER_SHEET'])[_0x51d1ac(0x172)]()[_0x51d1ac(0x141)](),_0x2bf352);}[_0x50a247(0x1e8)](){const _0x5901e4=_0x50a247;this[_0x5901e4(0x47a)]=!0x1;}};_0x2a24e0=_0x30deb3([_0x28f305(0x2,_0x58498f[_0x50a247(0x342)](_0x58498f['Injector'])),_0x28f305(0x3,_0x58498f[_0x50a247(0x342)](_0x410bf1)),_0x28f305(0x4,_0x58498f[_0x50a247(0x342)](_0x370285)),_0x28f305(0x5,_0x40aff1[_0x50a247(0x3f5)]),_0x28f305(0x6,_0x40aff1[_0x50a247(0x19e)]),_0x28f305(0x7,_0x58498f['Inject'](_0x361837['RefRangeService']))],_0x2a24e0);var _0x8b8e3d=(_0x4c4b6c,_0x12bf62,_0x3bd5c,_0x96216c)=>{const _0x4a51df=_0x50a247;for(var _0xabfef2=_0x12bf62,_0x33f84f=_0x4c4b6c[_0x4a51df(0x3d6)]-0x1,_0x49c702;_0x33f84f>=0x0;_0x33f84f--)(_0x49c702=_0x4c4b6c[_0x33f84f])&&(_0xabfef2=_0x49c702(_0xabfef2)||_0xabfef2);return _0xabfef2;},_0x146289=(_0x242008,_0x406ce6)=>(_0x1f1ec6,_0xd64b2)=>_0x406ce6(_0x1f1ec6,_0xd64b2,_0x242008);const _0xb89371=0x12c,_0x29b7f1=0x64;let _0x467a78=class extends _0x40aff1[_0x50a247(0x48d)]{constructor(_0x323b61,_0x4cadd2,_0x1a89c9,_0x11836f,_0x37282d,_0x1d1fb4,_0x5b032c,_0x4a1737,_0x5563b3){const _0xc43b21=_0x50a247;super(),_0x22b1a2(this,_0xc43b21(0x47a),!0x1),_0x22b1a2(this,_0xc43b21(0x1ce),!0x1),_0x22b1a2(this,'_cursorInfo$',new _0x3171f1['BehaviorSubject'](new Map())),_0x22b1a2(this,'cursorInfo$',this['_cursorInfo$'][_0xc43b21(0x407)]()),_0x22b1a2(this,_0xc43b21(0x24c),new _0x3171f1[(_0xc43b21(0x431))]([])),_0x22b1a2(this,'roomMembers$',this[_0xc43b21(0x24c)]['pipe'](_0x3171f1[_0xc43b21(0x387)](_0xb89371))),_0x22b1a2(this,_0xc43b21(0x485),_0x57a849(_0x45ba2d=>{const _0x397c7a=_0xc43b21,_0x56b926={'eventID':_0x57eaa4[_0x397c7a(0x253)][_0x397c7a(0x373)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x397c7a(0x441)](),'selection':_0x9ee440(_0x45ba2d)}};this[_0x397c7a(0x438)]['send'](_0x56b926,this['unitID']);},_0x29b7f1)),(this[_0xc43b21(0x437)]=_0x323b61,this[_0xc43b21(0x438)]=_0x4cadd2,this[_0xc43b21(0x401)]=_0x1a89c9,this['_colorAssignService']=_0x11836f,this['_memberService']=_0x37282d,this[_0xc43b21(0x39e)]=_0x1d1fb4,this[_0xc43b21(0x135)]=_0x5b032c,this[_0xc43b21(0x1f8)]=_0x4a1737,this['_commandService']=_0x5563b3);}get[_0x50a247(0x4e9)](){const _0x124b42=_0x50a247;return this['_cursorInfo$'][_0x124b42(0x331)]();}get['roomMembers'](){const _0x887eaa=_0x50a247;return this[_0x887eaa(0x24c)][_0x887eaa(0x331)]();}['dispose'](){const _0x5714f8=_0x50a247;super[_0x5714f8(0x1e5)](),this[_0x5714f8(0x45d)][_0x5714f8(0x446)](new Map()),this[_0x5714f8(0x45d)]['complete'](),this[_0x5714f8(0x24c)]['next']([]),this[_0x5714f8(0x24c)][_0x5714f8(0x142)]();}['init'](){const _0x131cdf=_0x50a247;this[_0x131cdf(0x1ce)]||(this[_0x131cdf(0x1ce)]=!0x0,this[_0x131cdf(0x438)]['sessionStatus$'][_0x131cdf(0x41d)](_0x3171f1[_0x131cdf(0x1f0)](this[_0x131cdf(0x439)]))[_0x131cdf(0x1a6)](_0x244766=>{const _0x1a50b4=_0x131cdf;_0x244766===_0x2d7bdc[_0x1a50b4(0x3b6)]?this['_toggleOnline']():this[_0x1a50b4(0x1e8)]();}),this[_0x131cdf(0x438)][_0x131cdf(0x326)]['pipe'](_0x3171f1['takeUntil'](this[_0x131cdf(0x439)]))['subscribe'](_0x8f93d8=>{const _0x551c70=_0x131cdf,_0x32343e=_0x8f93d8[_0x551c70(0x464)];_0x32343e===_0x57eaa4[_0x551c70(0x253)][_0x551c70(0x373)]&&this[_0x551c70(0x26e)](_0x8f93d8),_0x32343e===_0x57eaa4[_0x551c70(0x253)][_0x551c70(0x13b)]&&this[_0x551c70(0x35e)](_0x8f93d8);}),this[_0x131cdf(0x3e1)](this[_0x131cdf(0x14b)][_0x131cdf(0x21e)](_0x3134ef=>{const _0x4e0df1=_0x131cdf,_0xd1592b=_0x3134ef[_0x4e0df1(0x1ca)];_0xd1592b!=null&&this[_0x4e0df1(0x47a)]&&_0x3134ef['id']===_0xc138e5[_0x4e0df1(0x155)]['id']&&_0xd1592b['unitId']===this[_0x4e0df1(0x437)]&&_0xd1592b[_0x4e0df1(0x137)]===!0x1&&this[_0x4e0df1(0x485)](_0xd1592b[_0x4e0df1(0x132)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x131cdf(0x41d)](_0x3171f1['takeUntil'](this[_0x131cdf(0x439)]))[_0x131cdf(0x1a6)](_0x53eb41=>{const _0x55b332=_0x131cdf;if((_0x53eb41==null?void 0x0:_0x53eb41[_0x55b332(0x437)])!==this[_0x55b332(0x437)])return;const _0x1562ca={'eventID':_0x57eaa4[_0x55b332(0x253)][_0x55b332(0x373)],'data':_0x53eb41};this[_0x55b332(0x26e)](_0x1562ca);}),this[_0x131cdf(0x3e1)](this[_0x131cdf(0x14b)][_0x131cdf(0x21e)](_0x458889=>{const _0x4740f1=_0x131cdf;if(_0x458889[_0x4740f1(0x1ca)]==null)return;const _0x5b360b=_0x458889[_0x4740f1(0x1ca)];if(_0x458889['id']!==_0xc138e5[_0x4740f1(0x300)]['id']||_0x5b360b[_0x4740f1(0x430)]!==this['unitID'])return;const _0x51cd2b={'id':'doc.mutation.rich-text-editing','params':_0x5b360b},_0x4eddf7=this['cursorInfo'];for(const [_0xfc4c4f,_0x112b41]of _0x4eddf7){const _0x54bb4d={'id':_0x4740f1(0x394),'params':{'unitId':this[_0x4740f1(0x437)],'actions':null,'textRanges':_0x112b41['ranges']}},_0x1144b=this[_0x4740f1(0x135)][_0x4740f1(0x454)](_0x51cd2b,_0x54bb4d,!0x1);if(_0x57eaa4[_0x4740f1(0x38c)](_0x1144b))throw _0x1144b[_0x4740f1(0x207)];_0x4eddf7[_0x4740f1(0x3cc)](_0xfc4c4f,{..._0x112b41,'ranges':_0x1144b[_0x4740f1(0x3ac)]['params'][_0x4740f1(0x2a7)]});}queueMicrotask(()=>{const _0x26d936=_0x4740f1;this[_0x26d936(0x45d)]['next'](_0x4eddf7);});})));}[_0x50a247(0x26e)](_0x4d2e57){const _0x3331ae=_0x50a247;var _0x3a59cb,_0xe2dfea;const {memberID:_0xf9ab04,selection:_0x17f329}=_0x4d2e57[_0x3331ae(0x1bb)],_0x5e57a9=_0x3e9600(_0x17f329),_0x1cccc9=(_0xe2dfea=(_0x3a59cb=this[_0x3331ae(0x47f)]['getMember'](this[_0x3331ae(0x437)],_0xf9ab04))==null?void 0x0:_0x3a59cb[_0x3331ae(0x44c)])!=null?_0xe2dfea:_0x3331ae(0x497),_0x36eccc={'color':this[_0x3331ae(0x462)][_0x3331ae(0x20d)](_0xf9ab04),'name':_0x1cccc9,'ranges':_0x5e57a9},_0x34d666=this[_0x3331ae(0x4e9)];_0x34d666[_0x3331ae(0x3cc)](_0xf9ab04,_0x36eccc),this[_0x3331ae(0x45d)][_0x3331ae(0x446)](_0x34d666);}[_0x50a247(0x35e)](_0x1a6004){const _0x4c0d0d=_0x50a247,{memberID:_0x5edbbe}=_0x1a6004[_0x4c0d0d(0x1bb)],_0x3d1710=this[_0x4c0d0d(0x4e9)];_0x3d1710[_0x4c0d0d(0x371)](_0x5edbbe),this['_cursorInfo$'][_0x4c0d0d(0x446)](_0x3d1710);}[_0x50a247(0x3df)](){const _0x2c6ce0=_0x50a247;var _0x2ef60b;if(this['_online']=!0x0,((_0x2ef60b=this[_0x2c6ce0(0x1f8)][_0x2c6ce0(0x379)]())==null?void 0x0:_0x2ef60b[_0x2c6ce0(0x220)]())!==this[_0x2c6ce0(0x437)])return;const _0x45b7cf=this['_injector']['get'](_0xc138e5[_0x2c6ce0(0x312)])[_0x2c6ce0(0x1d7)](),_0xfaed39=_0x45b7cf==null?void 0x0:_0x45b7cf['map'](_0xc138e5[_0x2c6ce0(0x227)]);Array[_0x2c6ce0(0x27c)](_0xfaed39)&&_0xfaed39[_0x2c6ce0(0x3d6)]>0x0&&this[_0x2c6ce0(0x485)](_0xfaed39);}[_0x50a247(0x1e8)](){const _0x1db68f=_0x50a247;this[_0x1db68f(0x47a)]=!0x1;}};_0x467a78=_0x8b8e3d([_0x146289(0x2,_0x58498f[_0x50a247(0x342)](_0x58498f[_0x50a247(0x1a4)])),_0x146289(0x3,_0x58498f[_0x50a247(0x342)](_0x410bf1)),_0x146289(0x4,_0x58498f[_0x50a247(0x342)](_0x370285)),_0x146289(0x5,_0x58498f[_0x50a247(0x342)](_0x59e101)),_0x146289(0x6,_0x57eaa4[_0x50a247(0x3be)]),_0x146289(0x7,_0x40aff1[_0x50a247(0x3f5)]),_0x146289(0x8,_0x40aff1['ICommandService'])],_0x467a78);var _0x16ca22=(_0x464dc2,_0x35ef5e,_0x4b45cc,_0x3b8e57)=>{for(var _0x5a0ac9=_0x35ef5e,_0x214bc9=_0x464dc2['length']-0x1,_0x286bd7;_0x214bc9>=0x0;_0x214bc9--)(_0x286bd7=_0x464dc2[_0x214bc9])&&(_0x5a0ac9=_0x286bd7(_0x5a0ac9)||_0x5a0ac9);return _0x5a0ac9;},_0x2b0522=(_0x39e99a,_0x332cd9)=>(_0xb10e86,_0x3f75ec)=>_0x332cd9(_0xb10e86,_0x3f75ec,_0x39e99a);let _0x5300e0=class extends _0x40aff1[_0x50a247(0x48d)]{constructor(_0x48996d,_0x2ecc64,_0x30ef7f){const _0x2a897e=_0x50a247;super(),_0x22b1a2(this,_0x2a897e(0x2f9),new Map()),_0x22b1a2(this,_0x2a897e(0x397),new _0x3171f1[(_0x2a897e(0x1ed))]()),(this[_0x2a897e(0x1f8)]=_0x48996d,this[_0x2a897e(0x401)]=_0x2ecc64,this[_0x2a897e(0x158)]=_0x30ef7f,this[_0x2a897e(0x1ce)]());}[_0x50a247(0x1e5)](){const _0x576529=_0x50a247;super[_0x576529(0x1e5)](),this[_0x576529(0x397)][_0x576529(0x142)](),this[_0x576529(0x2f9)]['forEach'](_0x5b1fd3=>_0x5b1fd3[_0x576529(0x1e5)]());}[_0x50a247(0x4c2)](_0x197a30){const _0x1edd3e=_0x50a247;return this[_0x1edd3e(0x2f9)][_0x1edd3e(0x25b)](_0x197a30)?this[_0x1edd3e(0x2f9)][_0x1edd3e(0x17e)](_0x197a30)[_0x1edd3e(0x393)]:this[_0x1edd3e(0x397)][_0x1edd3e(0x41d)](_0x3171f1[_0x1edd3e(0x1b1)](_0x35b38a=>_0x35b38a[_0x1edd3e(0x437)]===_0x197a30),_0x3171f1[_0x1edd3e(0x4b9)](_0x5c2715=>_0x5c2715[_0x1edd3e(0x393)]));}[_0x50a247(0x1ce)](){const _0x2a9a25=_0x50a247;this[_0x2a9a25(0x1f8)][_0x2a9a25(0x3c2)](_0x40aff1[_0x2a9a25(0x1ff)][_0x2a9a25(0x309)])[_0x2a9a25(0x41d)](_0x3171f1[_0x2a9a25(0x1f0)](this[_0x2a9a25(0x439)]))['subscribe'](async _0x199f6e=>{const _0x275900=_0x2a9a25,_0x8c336e=_0x199f6e[_0x275900(0x220)](),_0x378e65=await this[_0x275900(0x49f)](_0x8c336e);this[_0x275900(0x397)]['next'](_0x378e65),this[_0x275900(0x2f9)][_0x275900(0x3cc)](_0x8c336e,_0x378e65);}),this[_0x2a9a25(0x1f8)][_0x2a9a25(0x3c2)](_0x40aff1[_0x2a9a25(0x1ff)][_0x2a9a25(0x254)])['pipe'](_0x3171f1[_0x2a9a25(0x1f0)](this['dispose$']))[_0x2a9a25(0x41d)](_0x3171f1[_0x2a9a25(0x1b1)](_0x1dce56=>!_0x1dce56[_0x2a9a25(0x220)]()['startsWith']('__')))[_0x2a9a25(0x1a6)](async _0x143d0a=>{const _0x3f5d74=_0x2a9a25,_0x42fa30=_0x143d0a[_0x3f5d74(0x220)](),_0x52d902=await this[_0x3f5d74(0x4be)](_0x42fa30);this[_0x3f5d74(0x397)]['next'](_0x52d902),this['_entities']['set'](_0x42fa30,_0x52d902);}),_0x3171f1[_0x2a9a25(0x151)](this[_0x2a9a25(0x1f8)]['getTypeOfUnitDisposed$'](_0x40aff1[_0x2a9a25(0x1ff)][_0x2a9a25(0x254)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x40aff1[_0x2a9a25(0x1ff)][_0x2a9a25(0x309)]))['pipe'](_0x3171f1[_0x2a9a25(0x1f0)](this[_0x2a9a25(0x439)]))[_0x2a9a25(0x1a6)](_0x3afe69=>{const _0x495be5=_0x2a9a25,_0x13a87b=_0x3afe69['getUnitId'](),_0x26c283=this[_0x495be5(0x2f9)][_0x495be5(0x17e)](_0x13a87b);_0x26c283&&(_0x26c283[_0x495be5(0x1e5)](),this[_0x495be5(0x2f9)][_0x495be5(0x371)](_0x13a87b));});}async['_startSheetCollabCursor'](_0x3a0c02){const _0x307429=_0x50a247,_0x3b9cda=await this[_0x307429(0x158)][_0x307429(0x327)](_0x3a0c02),_0x140e66=this[_0x307429(0x401)][_0x307429(0x293)](_0x2a24e0,_0x3a0c02,_0x3b9cda);return _0x140e66[_0x307429(0x356)](),_0x140e66;}async[_0x50a247(0x4be)](_0x5241e0){const _0x35e07b=_0x50a247,_0x183164=await this[_0x35e07b(0x158)]['requireSession'](_0x5241e0),_0x3f2515=this[_0x35e07b(0x401)]['createInstance'](_0x467a78,_0x5241e0,_0x183164);return _0x3f2515[_0x35e07b(0x356)](),_0x3f2515;}};_0x5300e0=_0x16ca22([_0x40aff1['OnLifecycle'](_0x40aff1[_0x50a247(0x419)][_0x50a247(0x256)],_0x5300e0),_0x2b0522(0x0,_0x40aff1['IUniverInstanceService']),_0x2b0522(0x1,_0x58498f['Inject'](_0x58498f['Injector'])),_0x2b0522(0x2,_0x58498f[_0x50a247(0x342)](_0x5bd0fe['CollaborationSessionService']))],_0x5300e0);const _0x193e62=0x14,_0x400d5c=0xc8,_0x969c2d=0x4,_0x204fda=0x5;function _0x1a50b7(_0x19fc1f,_0xc63aee){const _0x529783=_0x50a247;let {radius:_0x5eb03d,width:_0x31772b,height:_0x34b7cc}=_0xc63aee;_0x5eb03d=_0x5eb03d!=null?_0x5eb03d:0x0,_0x31772b=_0x31772b!=null?_0x31772b:0x1e,_0x34b7cc=_0x34b7cc!=null?_0x34b7cc:0x1e;let _0x376124=0x0,_0x23203a=0x0,_0x2ed3bd=0x0;_0x376124=_0x23203a=_0x2ed3bd=Math[_0x529783(0x2cf)](_0x5eb03d,_0x31772b/0x2,_0x34b7cc/0x2),_0x19fc1f[_0x529783(0x4b1)](),_0x19fc1f[_0x529783(0x24a)](_0x376124,0x0),_0x19fc1f[_0x529783(0x225)](_0x31772b-_0x23203a,0x0),_0x19fc1f[_0x529783(0x190)](_0x31772b-_0x23203a,_0x23203a,_0x23203a,Math['PI']*0x3/0x2,0x0,!0x1),_0x19fc1f[_0x529783(0x225)](_0x31772b,_0x34b7cc-_0x2ed3bd),_0x19fc1f[_0x529783(0x190)](_0x31772b-_0x2ed3bd,_0x34b7cc-_0x2ed3bd,_0x2ed3bd,0x0,Math['PI']/0x2,!0x1),_0x19fc1f[_0x529783(0x225)](0x0,_0x34b7cc),_0x19fc1f[_0x529783(0x225)](0x0,_0x376124),_0x19fc1f['arc'](_0x376124,_0x376124,_0x376124,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x19fc1f[_0x529783(0x30b)](),_0xc63aee[_0x529783(0x1c2)]&&(_0x19fc1f[_0x529783(0x44a)](),_0x19fc1f[_0x529783(0x361)]=_0xc63aee['fill'],_0xc63aee[_0x529783(0x4ce)]===_0x529783(0x294)?_0x19fc1f[_0x529783(0x1c2)]('evenodd'):_0x19fc1f['fill'](),_0x19fc1f[_0x529783(0x470)]());}class _0x205814 extends _0x1fd8d9[_0x50a247(0x2b8)]{constructor(_0x2a8bdd,_0x2acfd6){const _0x234f45=_0x50a247;super(_0x2a8bdd,_0x2acfd6),_0x22b1a2(this,_0x234f45(0x416)),_0x22b1a2(this,_0x234f45(0x3e9)),(this[_0x234f45(0x416)]=_0x2acfd6==null?void 0x0:_0x2acfd6[_0x234f45(0x416)],this['text']=_0x2acfd6==null?void 0x0:_0x2acfd6[_0x234f45(0x3e9)]);}static[_0x50a247(0x2cd)](_0x178f32,_0x5ab757){const _0x27d442=_0x50a247,{text:_0x5a1747,color:_0x1f3098}=_0x5ab757;_0x178f32[_0x27d442(0x44a)](),_0x178f32[_0x27d442(0x443)]=_0x27d442(0x258);const _0x31930f=_0x178f32[_0x27d442(0x32c)](_0x5a1747)[_0x27d442(0x4dc)],_0x229b98=Math[_0x27d442(0x2cf)](_0x31930f+0x2*_0x969c2d,_0x400d5c);_0x1a50b7(_0x178f32,{'height':_0x193e62,'radius':0x4,'width':_0x229b98,'fill':_0x1f3098,'evented':!0x1}),_0x178f32[_0x27d442(0x361)]=_0x27d442(0x488);const _0x279ffd=_0x969c2d,_0x2e46f0=_0x193e62-_0x204fda,_0x28c1df=_0x400d5c-0x2*_0x969c2d;if(_0x31930f>_0x28c1df){let _0x5188ee='',_0xfea8c3=0x0;for(const _0x32cb79 of _0x5a1747){const _0x2f08de=_0x178f32[_0x27d442(0x32c)](_0x32cb79)[_0x27d442(0x4dc)];if(_0xfea8c3+_0x2f08de<=_0x28c1df-_0x178f32['measureText'](_0x27d442(0x4bc))[_0x27d442(0x4dc)])_0x5188ee+=_0x32cb79,_0xfea8c3+=_0x2f08de;else{_0x5188ee+=_0x27d442(0x4bc);break;}}_0x178f32[_0x27d442(0x386)](_0x5188ee,_0x279ffd,_0x2e46f0);}else _0x178f32[_0x27d442(0x386)](_0x5a1747,_0x279ffd,_0x2e46f0);_0x178f32[_0x27d442(0x470)]();}[_0x50a247(0x21a)](_0x43de17){_0x205814['drawWith'](_0x43de17,this);}}const _0x532287=0x1,_0x23b69e=1.5;class _0x5cbf30 extends _0x1fd8d9[_0x50a247(0x2b8)]{constructor(_0x44ace9,_0xb9bd1d){const _0x586153=_0x50a247;super(_0x44ace9,_0xb9bd1d),_0x22b1a2(this,_0x586153(0x16b)),_0x22b1a2(this,_0x586153(0x16e),!0x1),_0x22b1a2(this,'_range'),_0x22b1a2(this,_0x586153(0x4de),''),_0x22b1a2(this,_0x586153(0x245),_0x586153(0x1d9)),(_0xb9bd1d&&this[_0x586153(0x3cb)](_0xb9bd1d),this[_0x586153(0x4ea)][_0x586153(0x3ce)](()=>this[_0x586153(0x3cb)]({'hovered':!0x0})),this[_0x586153(0x213)][_0x586153(0x3ce)](()=>this[_0x586153(0x3cb)]({'hovered':!0x1})));}[_0x50a247(0x3cb)](_0x44b459){const _0x321a77=_0x50a247;var _0x46ce03,_0x1b088c,_0x385072,_0x446b06,_0x5e9d4c;this[_0x321a77(0x16b)]=(_0x46ce03=_0x44b459[_0x321a77(0x416)])!=null?_0x46ce03:this['_color'],this[_0x321a77(0x16e)]=(_0x1b088c=_0x44b459[_0x321a77(0x2d9)])!=null?_0x1b088c:this['_hovered'],this[_0x321a77(0x49b)]=(_0x385072=_0x44b459[_0x321a77(0x28e)])!=null?_0x385072:this[_0x321a77(0x49b)],this['_name']=(_0x446b06=_0x44b459['name'])!=null?_0x446b06:this[_0x321a77(0x4de)],this[_0x321a77(0x245)]=(_0x5e9d4c=_0x44b459[_0x321a77(0x425)])!=null?_0x5e9d4c:this[_0x321a77(0x245)],this[_0x321a77(0x40d)]({'width':_0x44b459[_0x321a77(0x4dc)],'height':_0x44b459['height']});}['onMouseMove'](_0x4b6b19){const _0x2bfb22=_0x50a247,{row:_0x4092cb,column:_0xb52300}=_0x4b6b19;if(_0x4092cb>=this[_0x2bfb22(0x49b)][_0x2bfb22(0x23d)]&&_0x4092cb<=this[_0x2bfb22(0x49b)][_0x2bfb22(0x285)]&&_0xb52300>=this[_0x2bfb22(0x49b)][_0x2bfb22(0x2e5)]&&_0xb52300<=this['_range']['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x4ecc48){return!0x1;}[_0x50a247(0x21a)](_0x4b4959){const _0x4072d1=_0x50a247;_0x1fd8d9[_0x4072d1(0x1f3)]['drawWith'](_0x4b4959,{'width':this[_0x4072d1(0x4dc)],'height':this[_0x4072d1(0x296)],'strokeWidth':_0x23b69e,'stroke':this[_0x4072d1(0x16b)],'evented':!0x1}),this[_0x4072d1(0x16e)]&&(_0x4b4959[_0x4072d1(0x44a)](),_0x4b4959[_0x4072d1(0x24b)](0x1,0x0,0x0,0x1,this[_0x4072d1(0x4dc)],this[_0x4072d1(0x245)]===_0x4072d1(0x4a2)?0x0:-_0x193e62),_0x205814[_0x4072d1(0x2cd)](_0x4b4959,{'text':this['_name'],'color':this[_0x4072d1(0x16b)]}),_0x4b4959['restore']());}}var _0x5637bb=(_0x4ea9a0,_0x225651,_0x5ebd8e,_0x20de4b)=>{const _0x15390e=_0x50a247;for(var _0x443e11=_0x225651,_0x5a3fde=_0x4ea9a0[_0x15390e(0x3d6)]-0x1,_0x13688c;_0x5a3fde>=0x0;_0x5a3fde--)(_0x13688c=_0x4ea9a0[_0x5a3fde])&&(_0x443e11=_0x13688c(_0x443e11)||_0x443e11);return _0x443e11;},_0x27eb69=(_0x2f8eef,_0x26f2ba)=>(_0x43d863,_0x19f0f7)=>_0x26f2ba(_0x43d863,_0x19f0f7,_0x2f8eef);let _0x49a7f8=class extends _0x40aff1[_0x50a247(0x48d)]{constructor(_0x59c643,_0x1755be,_0x1e2b79,_0x8452d,_0x4ec0f3){const _0x269c8e=_0x50a247;super(),_0x22b1a2(this,_0x269c8e(0x3f1),new Set()),_0x22b1a2(this,_0x269c8e(0x345),null),(this[_0x269c8e(0x381)]=_0x59c643,this[_0x269c8e(0x1f8)]=_0x1755be,this[_0x269c8e(0x42b)]=_0x1e2b79,this['_sheetSkeletonManagerService']=_0x8452d,this[_0x269c8e(0x3ca)]=_0x4ec0f3,this['_init']());}['_init'](){const _0x22947e=_0x50a247;this[_0x22947e(0x4db)][_0x22947e(0x37f)]['pipe'](_0x32d0c5[_0x22947e(0x1f0)](this['dispose$']),_0x32d0c5[_0x22947e(0x4b9)](_0x3350c1=>{const _0x579442=_0x22947e;if(_0x3350c1){const _0x3f9622=_0x3350c1[_0x579442(0x313)];return _0x3171f1[_0x579442(0x1c3)](this[_0x579442(0x381)][_0x579442(0x4c2)](_0x3350c1[_0x579442(0x430)]),this['_themeService']['currentTheme$'])[_0x579442(0x41d)](_0x32d0c5[_0x579442(0x290)](([_0x38650b,_0x27813d])=>{const _0x5b748a=new Map();return _0x38650b['forEach']((_0x4aba83,_0x3ae7be)=>{const _0x25f93=_0x3f00;if(_0x4aba83[_0x25f93(0x21d)]===_0x3f9622){const _0x4c7000={..._0x4aba83};_0x4c7000['color']=_0x27813d[_0x4aba83['color']],_0x5b748a[_0x25f93(0x3cc)](_0x3ae7be,_0x4c7000);}}),{'skeleton':_0x3350c1,'cursors':_0x5b748a};}));}return _0x3171f1['of']({'skeleton':null,'cursors':new Map()});}))[_0x22947e(0x1a6)](({skeleton:_0x1475f1,cursors:_0x47618d})=>{const _0x3c2e43=_0x22947e;this[_0x3c2e43(0x261)](),_0x1475f1&&this['_updateCollabCursors'](_0x1475f1,_0x47618d);}),this[_0x22947e(0x4db)][_0x22947e(0x37f)][_0x22947e(0x1a6)](_0x947f75=>{const _0x4a3bb2=_0x22947e;if(_0x947f75==null)return;const {unitId:_0xcde179,skeleton:_0x3d8973}=_0x947f75,_0x376352=this[_0x4a3bb2(0x42b)][_0x4a3bb2(0x42c)](_0xcde179);if(_0x376352==null)return;const {scene:_0x4c9231}=_0x376352;_0x4c9231[_0x4a3bb2(0x375)]['add'](_0x57a849(_0x1b4491=>{const _0x22bffa=_0x4a3bb2;var _0x4a56a5,_0x2ec6ae;const {offsetX:_0x4c6451,offsetY:_0x80e33}=_0x1b4491,{x:_0x37a2b9,y:_0x5f58e5}=_0x4c9231['getRelativeCoord'](_0x1fd8d9[_0x22bffa(0x45a)][_0x22bffa(0x4d5)]([_0x4c6451,_0x80e33])),{scaleX:_0x2f3ba8,scaleY:_0xc0fa4f}=_0x4c9231[_0x22bffa(0x42e)](),_0x1ba549=_0x4c9231['getViewport'](_0x39fa2f[_0x22bffa(0x383)][_0x22bffa(0x1ec)]),_0x5e5979=_0x4c9231[_0x22bffa(0x298)](_0x1fd8d9[_0x22bffa(0x45a)][_0x22bffa(0x4d5)]([_0x37a2b9,_0x5f58e5]),_0x1ba549),_0x3e1923=_0x3d8973['getCellPositionByOffset'](_0x4c6451,_0x80e33,_0x2f3ba8,_0xc0fa4f,_0x5e5979);((_0x4a56a5=this['_lastPointer'])==null?void 0x0:_0x4a56a5[_0x22bffa(0x1a2)])===_0x3e1923[_0x22bffa(0x1a2)]&&((_0x2ec6ae=this[_0x22bffa(0x345)])==null?void 0x0:_0x2ec6ae[_0x22bffa(0x2b9)])===_0x3e1923[_0x22bffa(0x2b9)]||this['_cursors'][_0x22bffa(0x35b)](_0x1888b4=>{const _0x237b57=_0x22bffa;_0x1888b4[_0x237b57(0x13d)](_0x3e1923);});},0x64));});}[_0x50a247(0x279)](_0x116e91,_0x50c180){const _0x2a4dd2=_0x50a247;var _0x4fbe3;const _0x9cee5f=(_0x4fbe3=this['_sheetSkeletonManagerService'][_0x2a4dd2(0x134)]())==null?void 0x0:_0x4fbe3[_0x2a4dd2(0x277)];if(!_0x9cee5f)return;const _0x128d79=this[_0x2a4dd2(0x389)]();if(!_0x128d79)return;this[_0x2a4dd2(0x3f1)][_0x2a4dd2(0x35b)](_0x5ede74=>{const _0x144e72=_0x2a4dd2;_0x5ede74[_0x144e72(0x435)]();});const {scene:_0x1e07ec}=_0x128d79,_0x2bb2bf=_0x2db494(Array[_0x2a4dd2(0x457)](_0x50c180[_0x2a4dd2(0x4e6)]()))[_0x2a4dd2(0x290)](_0x3ee6e9=>{const _0x4e95dd=_0x2a4dd2,{color:_0x4ea527,range:_0x2a2ffd,name:_0x283d71,selection:_0x12580d,sheetID:_0x37fa52}=_0x3ee6e9,{startColumn:_0x524487,startRow:_0x11e746,endColumn:_0x393e20,endRow:_0x2dcf3a}=_0x2a2ffd,_0x589acc=_0x39fa2f[_0x4e95dd(0x13c)](_0x11e746,_0x524487,_0x1e07ec,_0x9cee5f),_0x807f27=_0x39fa2f['getCoordByCell'](_0x2dcf3a,_0x393e20,_0x1e07ec,_0x9cee5f),{columnHeaderHeightAndMarginTop:_0xfbfa74}=_0x9cee5f,{startX:_0x511e2b,startY:_0x49eb10}=_0x589acc,{endX:_0x827119,endY:_0x3d163b}=_0x807f27,_0x10aa71=_0x827119-_0x511e2b,_0x53702c=_0x3d163b-_0x49eb10,_0xf217a8={'labelPosition':_0x49eb10-_0xfbfa74>=_0x193e62?'top':_0x4e95dd(0x4a2),'sheetID':_0x37fa52,'range':_0x2a2ffd,'color':_0x4ea527,'name':_0x283d71,'selection':_0x12580d,'left':_0x511e2b,'top':_0x49eb10,'width':_0x10aa71,'height':_0x53702c,'evented':!0x1};return new _0x5cbf30(_0x283d71,_0xf217a8);});_0x1e07ec[_0x2a4dd2(0x4d7)](_0x2bb2bf,_0x532287),this['_cursors']=new Set(_0x2bb2bf);}[_0x50a247(0x261)](){const _0x7d839e=_0x50a247;var _0x5d03c6;(_0x5d03c6=this[_0x7d839e(0x3f1)])==null||_0x5d03c6[_0x7d839e(0x35b)](_0x467d6a=>_0x467d6a[_0x7d839e(0x1e5)]());}[_0x50a247(0x389)](){const _0x27e7a2=_0x50a247;return _0x39fa2f[_0x27e7a2(0x30f)](this[_0x27e7a2(0x1f8)],this[_0x27e7a2(0x42b)]);}};_0x49a7f8=_0x5637bb([_0x40aff1[_0x50a247(0x199)](_0x40aff1[_0x50a247(0x419)][_0x50a247(0x368)],_0x49a7f8),_0x27eb69(0x0,_0x58498f[_0x50a247(0x342)](_0x5300e0)),_0x27eb69(0x1,_0x40aff1['IUniverInstanceService']),_0x27eb69(0x2,_0x1fd8d9['IRenderManagerService']),_0x27eb69(0x3,_0x58498f[_0x50a247(0x342)](_0x39fa2f[_0x50a247(0x1de)])),_0x27eb69(0x4,_0x58498f['Inject'](_0x40aff1[_0x50a247(0x4da)]))],_0x49a7f8);function _0x2db494(_0x252b46){const _0x2abc82=_0x50a247,_0xbbb28=new Map();return _0x252b46[_0x2abc82(0x35b)](_0xa07b83=>{const _0x166f79=_0x2abc82;if(_0xbbb28['has'](_0xa07b83[_0x166f79(0x3cd)])){const _0x416849=_0xbbb28[_0x166f79(0x17e)](_0xa07b83[_0x166f79(0x3cd)]);_0x416849['name']+=',\x20'+_0xa07b83['name'];}else _0xbbb28[_0x166f79(0x3cc)](_0xa07b83[_0x166f79(0x3cd)],_0xa07b83);}),Array[_0x2abc82(0x457)](_0xbbb28[_0x2abc82(0x4e6)]());}var _0x195feb=function(){const _0x25922f=_0x50a247;return _0x195feb=Object[_0x25922f(0x4b2)]||function(_0x3fdcdf){const _0x1e5c25=_0x25922f;for(var _0x4f67a8,_0x2350af=0x1,_0x42c136=arguments[_0x1e5c25(0x3d6)];_0x2350af<_0x42c136;_0x2350af++){_0x4f67a8=arguments[_0x2350af];for(var _0x182789 in _0x4f67a8)Object[_0x1e5c25(0x405)][_0x1e5c25(0x160)][_0x1e5c25(0x1cd)](_0x4f67a8,_0x182789)&&(_0x3fdcdf[_0x182789]=_0x4f67a8[_0x182789]);}return _0x3fdcdf;},_0x195feb['apply'](this,arguments);},_0x27d4fc=function(_0x211154,_0x39ff02){const _0x44d4ff=_0x50a247;var _0x3beef3={};for(var _0x1995c6 in _0x211154)Object[_0x44d4ff(0x405)][_0x44d4ff(0x160)]['call'](_0x211154,_0x1995c6)&&_0x39ff02['indexOf'](_0x1995c6)<0x0&&(_0x3beef3[_0x1995c6]=_0x211154[_0x1995c6]);if(_0x211154!=null&&typeof Object[_0x44d4ff(0x12a)]==_0x44d4ff(0x406)){for(var _0x35d369=0x0,_0x1995c6=Object[_0x44d4ff(0x12a)](_0x211154);_0x35d369<_0x1995c6[_0x44d4ff(0x3d6)];_0x35d369++)_0x39ff02[_0x44d4ff(0x161)](_0x1995c6[_0x35d369])<0x0&&Object[_0x44d4ff(0x405)][_0x44d4ff(0x223)][_0x44d4ff(0x1cd)](_0x211154,_0x1995c6[_0x35d369])&&(_0x3beef3[_0x1995c6[_0x35d369]]=_0x211154[_0x1995c6[_0x35d369]]);}return _0x3beef3;},_0x2dd61b=_0x2def2a['forwardRef'](function(_0x370555,_0x2a1d28){const _0x3e4288=_0x50a247;var _0x1599dd=_0x370555[_0x3e4288(0x2a2)],_0x206c58=_0x370555['id'],_0x194303=_0x370555[_0x3e4288(0x19f)],_0xd35ce7=_0x370555[_0x3e4288(0x284)],_0x4bce0b=_0x27d4fc(_0x370555,['icon','id','className',_0x3e4288(0x284)]),_0x1429be=_0x3e4288(0x458)[_0x3e4288(0x38b)](_0x206c58,'\x20')['concat'](_0x194303||'')[_0x3e4288(0x3bf)](),_0x325632=_0x2def2a[_0x3e4288(0x249)]('_'[_0x3e4288(0x38b)](_0xb71058()));return _0x52065a(_0x1599dd,''[_0x3e4288(0x38b)](_0x206c58),{'defIds':_0x1599dd[_0x3e4288(0x22d)],'idSuffix':_0x325632[_0x3e4288(0x15a)]},_0x195feb({'ref':_0x2a1d28,'className':_0x1429be},_0x4bce0b),_0xd35ce7);});function _0x52065a(_0xfc3955,_0x196c2f,_0x19991c,_0x1a900d,_0x2af57e){const _0x206780=_0x50a247;return _0x2def2a[_0x206780(0x2fd)](_0xfc3955[_0x206780(0x3cf)],_0x195feb(_0x195feb({'key':_0x196c2f},_0x1f833f(_0xfc3955,_0x19991c,_0x2af57e)),_0x1a900d),(_0x2f78ce(_0xfc3955,_0x19991c)[_0x206780(0x176)]||[])[_0x206780(0x290)](function(_0x466f8d,_0x30d2a2){const _0x21d73a=_0x206780;return _0x52065a(_0x466f8d,''['concat'](_0x196c2f,'-')[_0x21d73a(0x38b)](_0xfc3955[_0x21d73a(0x3cf)],'-')[_0x21d73a(0x38b)](_0x30d2a2),_0x19991c,void 0x0,_0x2af57e);}));}function _0x1f833f(_0x260bd7,_0x16f696,_0x2da75f){const _0x447256=_0x50a247;var _0xd9fde=_0x195feb({},_0x260bd7[_0x447256(0x486)]);_0x2da75f!=null&&_0x2da75f[_0x447256(0x41e)]&&_0xd9fde[_0x447256(0x1c2)]==='colorChannel1'&&(_0xd9fde[_0x447256(0x1c2)]=_0x2da75f['colorChannel1']);var _0x2b8e44=_0x16f696[_0x447256(0x22d)];return!_0x2b8e44||_0x2b8e44[_0x447256(0x3d6)]===0x0||(_0x260bd7[_0x447256(0x3cf)]===_0x447256(0x2dd)&&_0xd9fde[_0x447256(0x4e1)]&&(_0xd9fde[_0x447256(0x4e1)]=_0xd9fde[_0x447256(0x4e1)]+_0x16f696[_0x447256(0x144)]),Object['entries'](_0xd9fde)[_0x447256(0x35b)](function(_0x1d4ebc){const _0x18660c=_0x447256;var _0x2e6ea1=_0x1d4ebc[0x0],_0x3140f6=_0x1d4ebc[0x1];typeof _0x3140f6==_0x18660c(0x403)&&(_0xd9fde[_0x2e6ea1]=_0x3140f6[_0x18660c(0x2d3)](/url\(#(.*)\)/,_0x18660c(0x288)[_0x18660c(0x38b)](_0x16f696[_0x18660c(0x144)],')')));})),_0xd9fde;}function _0x2f78ce(_0x18bbe5,_0x1e8331){const _0x41f821=_0x50a247;var _0x298703,_0x28f801=_0x1e8331[_0x41f821(0x22d)];return!_0x28f801||_0x28f801[_0x41f821(0x3d6)]===0x0?_0x18bbe5:_0x18bbe5['tag']==='defs'&&(!((_0x298703=_0x18bbe5[_0x41f821(0x176)])===null||_0x298703===void 0x0)&&_0x298703[_0x41f821(0x3d6)])?_0x195feb(_0x195feb({},_0x18bbe5),{'children':_0x18bbe5[_0x41f821(0x176)]['map'](function(_0x2e1613){const _0x55e630=_0x41f821;return typeof _0x2e1613[_0x55e630(0x486)]['id']==_0x55e630(0x403)&&_0x28f801&&_0x28f801[_0x55e630(0x161)](_0x2e1613[_0x55e630(0x486)]['id'])>-0x1?_0x195feb(_0x195feb({},_0x2e1613),{'attrs':_0x195feb(_0x195feb({},_0x2e1613[_0x55e630(0x486)]),{'id':_0x2e1613[_0x55e630(0x486)]['id']+_0x1e8331['idSuffix']})}):_0x2e1613;})}):_0x18bbe5;}function _0xb71058(){const _0x28cdf8=_0x50a247;return Math[_0x28cdf8(0x3ef)]()[_0x28cdf8(0x1d0)](0x24)[_0x28cdf8(0x13a)](0x2,0x8);}_0x2dd61b[_0x50a247(0x468)]='UniverIcon';var _0x33dd2e={'tag':'svg','attrs':{'fill':_0x50a247(0x3ee),'viewBox':_0x50a247(0x231),'width':_0x50a247(0x318),'height':_0x50a247(0x318)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x50a247(0x26f),'attrs':{'stroke':'currentColor','d':_0x50a247(0x26d),'strokeLinecap':'round','strokeLinejoin':_0x50a247(0x411),'strokeWidth':1.2}}]},{'tag':_0x50a247(0x25c),'attrs':{},'children':[{'tag':_0x50a247(0x36f),'attrs':{'id':_0x50a247(0x28b)},'children':[{'tag':_0x50a247(0x26f),'attrs':{'fill':_0x50a247(0x3ed),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0x2bc0d2=_0x2def2a['forwardRef'](function(_0x485bfe,_0x112f5a){const _0x119d65=_0x50a247;return _0x2def2a['createElement'](_0x2dd61b,Object[_0x119d65(0x4b2)]({},_0x485bfe,{'id':_0x119d65(0x3b5),'ref':_0x112f5a,'icon':_0x33dd2e}));});_0x2bc0d2[_0x50a247(0x468)]='OffLineSingle';var _0x15022a={'tag':_0x50a247(0x182),'attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':_0x50a247(0x318),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x50a247(0x26f),'attrs':{'stroke':_0x50a247(0x22a),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x50a247(0x411),'strokeLinejoin':_0x50a247(0x411),'strokeWidth':1.2}}]},{'tag':_0x50a247(0x25c),'attrs':{},'children':[{'tag':_0x50a247(0x36f),'attrs':{'id':_0x50a247(0x33d)},'children':[{'tag':_0x50a247(0x26f),'attrs':{'fill':_0x50a247(0x3ed),'d':_0x50a247(0x13f),'transform':_0x50a247(0x426)}}]}]}],'defIds':[_0x50a247(0x33d)]},_0x3c562a=_0x2def2a[_0x50a247(0x1be)](function(_0x48a4d0,_0x41b5b3){const _0x39aed7=_0x50a247;return _0x2def2a[_0x39aed7(0x2fd)](_0x2dd61b,Object[_0x39aed7(0x4b2)]({},_0x48a4d0,{'id':_0x39aed7(0x2fb),'ref':_0x41b5b3,'icon':_0x15022a}));});_0x3c562a[_0x50a247(0x468)]=_0x50a247(0x474);const _0x162c1b={'onlineStatusIcon':_0x50a247(0x242),'onlineStatusTitle':_0x50a247(0x473),'onlineStatus':'univer-online-status','online':'univer-online','offline':_0x50a247(0x370)};function _0x446f5c(_0x22b562){const _0x4088b7=_0x50a247;switch(_0x22b562){case _0x2dad21['OFFLINE']:return _0x4088b7(0x2bb);case _0x2dad21['CONFLICT']:return _0x4088b7(0x4a9);case _0x2dad21['FETCH_MISS']:return _0x4088b7(0x404);case _0x2dad21[_0x4088b7(0x330)]:return _0x4088b7(0x1c1);case _0x2dad21[_0x4088b7(0x450)]:case _0x2dad21['AWAITING']:case _0x2dad21[_0x4088b7(0x37d)]:return _0x4088b7(0x218);case _0x2dad21['SYNCED']:return _0x4088b7(0x418);}}function _0x90e5a(_0x466adb){const _0x2fbbe4=_0x50a247,{status$:_0x5df909}=_0x466adb,_0x35f964=_0x4f2827[_0x2fbbe4(0x1f2)](_0x5df909,_0x2dad21[_0x2fbbe4(0x330)]),_0xedd82c=_0x423c0e[_0x2fbbe4(0x3f3)](_0x40aff1[_0x2fbbe4(0x34a)]),_0x262caa=_0x35f964!==_0x2dad21[_0x2fbbe4(0x152)],_0x13d764=_0xedd82c['t'](_0x446f5c(_0x35f964)),_0x7d1f09=_0x373f90(_0x162c1b[_0x2fbbe4(0x196)],{[_0x162c1b[_0x2fbbe4(0x273)]]:_0x262caa,[_0x162c1b['offline']]:!_0x262caa}),_0x5f3b32=_0x262caa?_0x2def2a[_0x2fbbe4(0x2fd)](_0x3c562a,null):_0x2def2a[_0x2fbbe4(0x2fd)](_0x2bc0d2,null);return _0x2def2a[_0x2fbbe4(0x2fd)](_0x2fbbe4(0x1e9),{'className':_0x7d1f09},_0x2def2a[_0x2fbbe4(0x2fd)](_0x2fbbe4(0x1e9),{'className':_0x162c1b[_0x2fbbe4(0x18d)]},_0x5f3b32),_0x2def2a[_0x2fbbe4(0x2fd)](_0x2fbbe4(0x1e9),{'className':_0x162c1b['onlineStatusTitle']},_0x13d764));}var _0x1f0744=(_0x4107f4,_0x3e0dd4,_0xa817e4,_0x33bce4)=>{for(var _0x5e1ed6=_0x3e0dd4,_0xd487b4=_0x4107f4['length']-0x1,_0x117a3b;_0xd487b4>=0x0;_0xd487b4--)(_0x117a3b=_0x4107f4[_0xd487b4])&&(_0x5e1ed6=_0x117a3b(_0x5e1ed6)||_0x5e1ed6);return _0x5e1ed6;},_0x36d057=(_0x2ba230,_0x49f2df)=>(_0x27b52b,_0x5736a4)=>_0x49f2df(_0x27b52b,_0x5736a4,_0x2ba230);_0x5bd0fe['DesktopCollaborationStatusDisplayController']=class extends _0x40aff1[_0x50a247(0x14a)]{constructor(_0x1e3afd,_0x4b8ea7,_0x559296,_0x3632ac){const _0x189fc2=_0x50a247;super(),_0x22b1a2(this,_0x189fc2(0x303),new _0x3171f1[(_0x189fc2(0x431))](_0x2dad21[_0x189fc2(0x330)])),(this[_0x189fc2(0x1f8)]=_0x1e3afd,this[_0x189fc2(0x2da)]=_0x4b8ea7,this['_injector']=_0x559296,this[_0x189fc2(0x4d2)]=_0x3632ac,this[_0x189fc2(0x21b)](),this[_0x189fc2(0x17d)]());}[_0x50a247(0x21b)](){const _0x2fec40=_0x50a247;this[_0x2fec40(0x3e1)](this[_0x2fec40(0x2da)][_0x2fec40(0x171)](_0x4f2827[_0x2fec40(0x3ab)]['HEADER_MENU'],()=>_0x423c0e[_0x2fec40(0x4d3)](_0x455d4a({'status$':this[_0x2fec40(0x303)]['asObservable']()}),this[_0x2fec40(0x401)])));}[_0x50a247(0x17d)](){const _0x25bcd3=_0x50a247;this[_0x25bcd3(0x3e1)](_0x40aff1[_0x25bcd3(0x2b7)](this[_0x25bcd3(0x1f8)][_0x25bcd3(0x3d2)][_0x25bcd3(0x41d)](_0x3171f1[_0x25bcd3(0x4b9)](()=>{const _0x24cebb=_0x25bcd3,_0x2f1b4c=this['_univerInstanceService']['getFocusedUnit']();return _0x2f1b4c?this[_0x24cebb(0x4d2)][_0x24cebb(0x240)](_0x2f1b4c[_0x24cebb(0x220)]()):_0x3171f1['of'](null);}),_0x3171f1[_0x25bcd3(0x4b9)](_0x313fbc=>_0x313fbc?_0x313fbc[_0x25bcd3(0x1c6)]:_0x3171f1['of'](_0x2dad21['NOT_COLLAB'])))[_0x25bcd3(0x1a6)](_0x4c0e52=>{const _0x28eaa0=_0x25bcd3;this[_0x28eaa0(0x303)][_0x28eaa0(0x446)](_0x4c0e52);})));}},_0x5bd0fe[_0x50a247(0x173)]=_0x1f0744([_0x40aff1['OnLifecycle'](_0x40aff1[_0x50a247(0x419)][_0x50a247(0x256)],_0x5bd0fe['DesktopCollaborationStatusDisplayController']),_0x36d057(0x0,_0x40aff1[_0x50a247(0x3f5)]),_0x36d057(0x1,_0x4f2827[_0x50a247(0x2db)]),_0x36d057(0x2,_0x58498f[_0x50a247(0x342)](_0x58498f[_0x50a247(0x1a4)])),_0x36d057(0x3,_0x58498f['Inject'](_0x5bd0fe[_0x50a247(0x422)]))],_0x5bd0fe[_0x50a247(0x173)]);function _0x455d4a(_0x3fa53d){const {status$:_0x461de1}=_0x3fa53d;return function(){const _0x5d175e=_0x3f00;return _0x2def2a[_0x5d175e(0x2fd)](_0x90e5a,{'status$':_0x461de1});};}const _0x2f336e=_0x58498f['createIdentifier']('uni.network.url-service');var _0x4a1f04=(_0x16784a,_0x3a27ad,_0x1f20ce,_0x4a37ce)=>{const _0x43f24b=_0x50a247;for(var _0x496de4=_0x3a27ad,_0x2789b7=_0x16784a[_0x43f24b(0x3d6)]-0x1,_0x1d70e2;_0x2789b7>=0x0;_0x2789b7--)(_0x1d70e2=_0x16784a[_0x2789b7])&&(_0x496de4=_0x1d70e2(_0x496de4)||_0x496de4);return _0x496de4;},_0x5c1771=(_0x456b6c,_0x288351)=>(_0x547697,_0xd9323b)=>_0x288351(_0x547697,_0xd9323b,_0x456b6c);_0x5bd0fe[_0x50a247(0x44e)]=class extends _0x40aff1[_0x50a247(0x48d)]{constructor(_0x276183,_0x30e013,_0x3e597c,_0xd936e,_0x4e8863,_0x32929a){const _0x784afd=_0x50a247;super(),this[_0x784afd(0x408)]=_0x276183,this[_0x784afd(0x3b1)]=_0x30e013,this['_commandService']=_0x3e597c,this[_0x784afd(0x43e)]=_0xd936e,this['_snapshotService']=_0x4e8863,_0x32929a?_0x32929a==null||_0x32929a[_0x784afd(0x3c4)]()[_0x784afd(0x3f7)](()=>this[_0x784afd(0x1ce)]()):(this['_logService'][_0x784afd(0x2d6)](_0x784afd(0x2e4),_0x784afd(0x32e)),this[_0x784afd(0x1ce)]());}async[_0x50a247(0x1ce)](){const _0x333a9e=_0x50a247,_0x2d5ac3=this[_0x333a9e(0x408)][_0x333a9e(0x3bd)](_0x333a9e(0x21f)),_0x1777bd=this[_0x333a9e(0x408)][_0x333a9e(0x3bd)]('type');if(!_0x2d5ac3||!_0x1777bd){this['_logService'][_0x333a9e(0x2d6)](_0x333a9e(0x2e4),_0x333a9e(0x319));return;}switch(Number(_0x1777bd)){case _0x4cf902[_0x333a9e(0x309)]:{const _0x1ee06c=await this['_loadSheet'](_0x2d5ac3);this[_0x333a9e(0x4c6)](_0x1ee06c);break;}case _0x4cf902[_0x333a9e(0x254)]:{await this['_loadDoc'](_0x2d5ac3);break;}default:{this[_0x333a9e(0x3b1)][_0x333a9e(0x207)](_0x333a9e(0x2e4),_0x333a9e(0x3c6));break;}}}async[_0x50a247(0x4c6)](_0x52cd75){const _0x57d505=_0x50a247;await this['_updateSubUnitFromURLParams'](_0x52cd75),_0x52cd75['activeSheet$'][_0x57d505(0x41d)](_0x3171f1['takeUntil'](this[_0x57d505(0x439)]))[_0x57d505(0x1a6)](_0x4c3b5b=>{const _0x2b191b=_0x57d505;_0x4c3b5b&&this[_0x2b191b(0x27a)](_0x4c3b5b);}),this[_0x57d505(0x408)][_0x57d505(0x29d)][_0x57d505(0x41d)](_0x3171f1[_0x57d505(0x1f0)](this[_0x57d505(0x439)]))[_0x57d505(0x1a6)](()=>this['_updateSubUnitFromURLParams'](_0x52cd75));}[_0x50a247(0x27a)](_0x389de1,_0x3bcb57=!0x1){const _0x19079e=_0x50a247,_0x932350=this[_0x19079e(0x408)][_0x19079e(0x3bd)](_0x19079e(0x399));_0x389de1[_0x19079e(0x141)]()!==_0x932350&&this[_0x19079e(0x408)]['setParam'](_0x19079e(0x399),_0x389de1[_0x19079e(0x141)](),_0x3bcb57);}async[_0x50a247(0x1d6)](_0xaa41f2){const _0x1c9416=_0x50a247,_0x2ce7cd=this[_0x1c9416(0x408)][_0x1c9416(0x3bd)](_0x1c9416(0x399));if(!_0x2ce7cd||!_0xaa41f2[_0x1c9416(0x2d2)](_0x2ce7cd)){this[_0x1c9416(0x27a)](_0xaa41f2[_0x1c9416(0x172)](),!0x0);return;}_0xaa41f2[_0x1c9416(0x172)]()[_0x1c9416(0x141)]()!==_0x2ce7cd&&await this['_commandService'][_0x1c9416(0x1eb)](_0x361837[_0x1c9416(0x32d)]['id'],{'unitId':_0xaa41f2[_0x1c9416(0x220)](),'subUnitId':_0x2ce7cd});}async[_0x50a247(0x4c0)](_0x4fce71){const _0x1e1903=_0x50a247;let _0x27c42b=0x0;const _0x4fd459=await this[_0x1e1903(0x43e)][_0x1e1903(0x4a1)](_0x4fce71);return _0x4fd459&&(_0x4fd459[_0x1e1903(0x224)]||_0x4fd459['mutations'][_0x1e1903(0x3d6)]!==0x0)&&(_0x27c42b=_0x4fd459[_0x1e1903(0x3e4)]),_0x27c42b===0x0&&this[_0x1e1903(0x3b1)][_0x1e1903(0x2d6)](_0x1e1903(0x2e4),_0x1e1903(0x2be)),this[_0x1e1903(0x346)][_0x1e1903(0x311)](_0x4fce71,_0x27c42b);}async[_0x50a247(0x4b4)](_0x13218d){const _0x55674b=_0x50a247;let _0x379a68=0x0;const _0x2f1041=await this[_0x55674b(0x43e)][_0x55674b(0x4a1)](_0x13218d);return _0x2f1041&&(_0x2f1041['awaitingChangeset']||_0x2f1041[_0x55674b(0x18e)][_0x55674b(0x3d6)]!==0x0)&&(_0x379a68=_0x2f1041['rev']),_0x379a68===0x0&&this['_logService'][_0x55674b(0x2d6)](_0x55674b(0x2e4),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x55674b(0x346)][_0x55674b(0x3d7)](_0x13218d,_0x379a68);}},_0x5bd0fe['DataLoaderController']=_0x4a1f04([_0x40aff1[_0x50a247(0x199)](_0x40aff1[_0x50a247(0x419)][_0x50a247(0x256)],_0x5bd0fe['DataLoaderController']),_0x5c1771(0x0,_0x2f336e),_0x5c1771(0x1,_0x40aff1['ILogService']),_0x5c1771(0x2,_0x40aff1[_0x50a247(0x19e)]),_0x5c1771(0x3,_0x58498f[_0x50a247(0x342)](_0x5bd0fe['LocalCacheService'])),_0x5c1771(0x4,_0x58498f[_0x50a247(0x342)](_0x57eaa4[_0x50a247(0x291)])),_0x5c1771(0x5,_0x58498f[_0x50a247(0x1a5)](_0x33ffd7['IRemoteInstanceService']))],_0x5bd0fe['DataLoaderController']);var _0x41d050=(_0x5c6750,_0x3fd9ac,_0x46e835,_0x49c8aa)=>{const _0x418136=_0x50a247;for(var _0x37edb5=_0x3fd9ac,_0xd6f334=_0x5c6750[_0x418136(0x3d6)]-0x1,_0x5818ac;_0xd6f334>=0x0;_0xd6f334--)(_0x5818ac=_0x5c6750[_0xd6f334])&&(_0x37edb5=_0x5818ac(_0x37edb5)||_0x37edb5);return _0x37edb5;},_0x5c9870=(_0x15bfa4,_0x41a085)=>(_0x5eccdc,_0x202287)=>_0x41a085(_0x5eccdc,_0x202287,_0x15bfa4);const _0xc3401c=_0x50a247(0x33f),_0x49adde=_0x50a247(0x31f);let _0x3e17e9=class extends _0x40aff1[_0x50a247(0x14a)]{constructor(_0x488cc4,_0x4e158a){const _0x432fc6=_0x50a247;super(),this[_0x432fc6(0x1f8)]=_0x488cc4,this[_0x432fc6(0x1ab)]=_0x4e158a,this[_0x432fc6(0x1ce)]();}[_0x50a247(0x1ce)](){const _0x470001=_0x50a247;this[_0x470001(0x3e1)](_0x40aff1[_0x470001(0x2b7)](this[_0x470001(0x1f8)]['focused$'][_0x470001(0x1a6)](()=>{const _0x58d454=_0x470001;var _0x4b9d7a;const _0x2e2e31=this['_univerInstanceService']['getFocusedUnit']();let _0x4add0b=(_0x4b9d7a=this[_0x58d454(0x1ab)][_0x58d454(0x48e)](_0xc3401c))!=null?_0x4b9d7a:_0x49adde;_0x2e2e31 instanceof _0x40aff1['Workbook']&&(_0x4add0b=_0x2e2e31[_0x58d454(0x44c)]),document[_0x58d454(0x2a3)]=_0x4add0b;})));}};_0x3e17e9=_0x41d050([_0x40aff1[_0x50a247(0x199)](_0x40aff1[_0x50a247(0x419)][_0x50a247(0x452)],_0x3e17e9),_0x5c9870(0x0,_0x40aff1['IUniverInstanceService']),_0x5c9870(0x1,_0x40aff1[_0x50a247(0x263)])],_0x3e17e9);var _0x4c3ddf=(_0x7fd61e,_0x2605d5,_0x57e84a,_0x8501ba)=>{const _0x240637=_0x50a247;for(var _0xdca86c=_0x2605d5,_0xb09337=_0x7fd61e[_0x240637(0x3d6)]-0x1,_0x3b5da7;_0xb09337>=0x0;_0xb09337--)(_0x3b5da7=_0x7fd61e[_0xb09337])&&(_0xdca86c=_0x3b5da7(_0xdca86c)||_0xdca86c);return _0xdca86c;},_0x1c030e=(_0x436c39,_0xfc4975)=>(_0x41a333,_0x5c7e39)=>_0xfc4975(_0x41a333,_0x5c7e39,_0x436c39);const _0x4ebe18='SNAPSHOT_SERVER_URL_KEY',_0x213400=_0x50a247(0x3c3);let _0x567b8d=class{constructor(_0x2b10e5,_0x56e7d4){const _0x3639fb=_0x50a247;this[_0x3639fb(0x1ab)]=_0x2b10e5,this[_0x3639fb(0x1d1)]=_0x56e7d4;}async['getUnitOnRev'](_0x33ffe3,_0x22efe6){const _0x4dc4d8=_0x50a247;var _0x280d54;const {unitID:_0x39b021,type:_0x2a551f,revision:_0x1d8013=0x0}=_0x22efe6,_0x35ba3f=this[_0x4dc4d8(0x1f1)]()+'/'+_0x2a551f+_0x4dc4d8(0x24f)+_0x39b021+'/rev/'+(_0x1d8013===0x1?0x0:_0x1d8013),_0x4b90f3=(await this[_0x4dc4d8(0x1d1)][_0x4dc4d8(0x17e)](_0x35ba3f))['body'],_0x385058=(_0x280d54=_0x4b90f3['snapshot'])==null?void 0x0:_0x280d54[_0x4dc4d8(0x455)];if(_0x385058){const _0x1da625=_0x385058==null?void 0x0:_0x385058[_0x4dc4d8(0x198)],_0x575406=_0x40aff1[_0x4dc4d8(0x138)][_0x4dc4d8(0x427)](_0x40aff1['b64DecodeUnicode'](_0x1da625));_0x385058['originalMeta']=_0x575406,Object[_0x4dc4d8(0x32f)](_0x385058['sheets'])[_0x4dc4d8(0x35b)](([,_0x24c9b9])=>{const _0x1a74b8=_0x4dc4d8,_0x57dc9f=_0x24c9b9[_0x1a74b8(0x198)],_0x2d062a=_0x40aff1['textEncoder']['encode'](_0x40aff1[_0x1a74b8(0x156)](_0x57dc9f));_0x24c9b9[_0x1a74b8(0x198)]=_0x2d062a;});}return _0x4b90f3;}async['getSheetBlock'](_0x3a6d39,_0x1d7140){const _0x26c219=_0x50a247,{unitID:_0x522c15,type:_0x3bdb67,blockID:_0x535aaa}=_0x1d7140,_0xfd2594=this[_0x26c219(0x1f1)]()+'/'+_0x3bdb67+_0x26c219(0x24f)+_0x522c15+_0x26c219(0x1d8)+_0x535aaa;return(await this[_0x26c219(0x1d1)][_0x26c219(0x17e)](_0xfd2594))['body'];}async[_0x50a247(0x1a1)](_0x1c6c78,_0x19e0fc){const _0x2620a0=_0x50a247,{unitID:_0x5e4788,type:_0xd343bc,from:_0x4fad57,to:_0x249325}=_0x19e0fc,_0x39acf1=this[_0x2620a0(0x1f1)]()+'/'+_0xd343bc+'/unit/'+_0x5e4788+'/fetchmissing?from='+_0x4fad57+_0x2620a0(0x4cd)+_0x249325;return(await this[_0x2620a0(0x1d1)]['get'](_0x39acf1))[_0x2620a0(0x3eb)];}[_0x50a247(0x1f1)](){const _0x5f4c22=_0x50a247;var _0x185df0;return(_0x185df0=this[_0x5f4c22(0x1ab)][_0x5f4c22(0x48e)](_0x4ebe18))!=null?_0x185df0:_0x213400;}async[_0x50a247(0x268)](_0xda3ba0,_0x2ce786){const _0x3fb6a7=_0x50a247,_0x3d6e16=_0x3fb6a7(0x46e)+_0x2ce786[_0x3fb6a7(0x28c)]+'/unit/'+_0x2ce786[_0x3fb6a7(0x437)]+_0x3fb6a7(0x146);return(await this[_0x3fb6a7(0x1d1)][_0x3fb6a7(0x17e)](_0x3d6e16,{'params':{'resourceId':JSON[_0x3fb6a7(0x461)](_0x2ce786[_0x3fb6a7(0x295)])}}))[_0x3fb6a7(0x3eb)];}[_0x50a247(0x42a)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x50a247(0x251)](){const _0x5328e4=_0x50a247;throw new Error(_0x5328e4(0x1fe));}[_0x50a247(0x2c8)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};_0x567b8d=_0x4c3ddf([_0x1c030e(0x0,_0x40aff1[_0x50a247(0x263)]),_0x1c030e(0x1,_0x58498f[_0x50a247(0x342)](_0x12f0de[_0x50a247(0x36e)]))],_0x567b8d);var _0x2c1c10=(_0x2c79dd,_0xdd6fcd,_0x3bf2a0,_0x125fc3)=>{const _0x57e832=_0x50a247;for(var _0x5dbb6e=_0xdd6fcd,_0x55f009=_0x2c79dd[_0x57e832(0x3d6)]-0x1,_0x2e379e;_0x55f009>=0x0;_0x55f009--)(_0x2e379e=_0x2c79dd[_0x55f009])&&(_0x5dbb6e=_0x2e379e(_0x5dbb6e)||_0x5dbb6e);return _0x5dbb6e;},_0x5a5de4=(_0x564c41,_0x1a0633)=>(_0x31e49b,_0x522153)=>_0x1a0633(_0x31e49b,_0x522153,_0x564c41);let _0x1f13f8=class extends _0x40aff1[_0x50a247(0x140)]{constructor(_0x290f9a,_0x5583e8,_0xdccb1a,_0x52eb1c,_0x3efdd7){const _0x4b759d=_0x50a247;super(_0x290f9a,_0x5583e8,_0xdccb1a),this[_0x4b759d(0x135)]=_0x52eb1c,this[_0x4b759d(0x3b1)]=_0x3efdd7;}[_0x50a247(0x1f7)](_0x2eed8d,_0x2f168e){const _0x2c9e90=_0x50a247,_0x113b07=this[_0x2c9e90(0x2a4)](_0x2eed8d);if(_0x113b07)try{const _0x109403=this['_transformStack'](_0x113b07,_0x2f168e);this['_substituteUndoStack'](_0x2eed8d,_0x109403);}catch(_0x1b8f85){this[_0x2c9e90(0x3b1)][_0x2c9e90(0x207)](_0x2c9e90(0x1a7),_0x1b8f85),this[_0x2c9e90(0x3fb)](_0x2eed8d);}const _0x2106a6=this[_0x2c9e90(0x4d4)](_0x2eed8d);if(_0x2106a6)try{const _0x6fde0e=this[_0x2c9e90(0x352)](_0x2106a6,_0x2f168e);this[_0x2c9e90(0x25e)](_0x2eed8d,_0x6fde0e);}catch(_0x27ebf3){this['_logService'][_0x2c9e90(0x207)](_0x27ebf3),this[_0x2c9e90(0x1fa)](_0x2eed8d);}}[_0x50a247(0x3fb)](_0x27d6d9){const _0x1dd04f=_0x50a247,_0x5b2222=this[_0x1dd04f(0x2a4)](_0x27d6d9);_0x5b2222&&(_0x5b2222['length']=0x0,this[_0x1dd04f(0x4a3)]());}[_0x50a247(0x1fa)](_0x22f726){const _0x5976a1=_0x50a247,_0x4bf89b=this[_0x5976a1(0x4d4)](_0x22f726);_0x4bf89b&&(_0x4bf89b[_0x5976a1(0x3d6)]=0x0,this[_0x5976a1(0x4a3)]());}[_0x50a247(0x2ca)](_0x5ece25,_0x18c0d5){const _0x2455cd=_0x50a247;this[_0x2455cd(0x1fc)][_0x2455cd(0x3cc)](_0x5ece25,_0x18c0d5),this[_0x2455cd(0x4a3)]();}['_substituteRedoStack'](_0x349bbf,_0x1dc6d1){this['_redoStacks']['set'](_0x349bbf,_0x1dc6d1),this['_updateStatus']();}['_transformStack'](_0x44131a,_0x3535e0){const _0x3ef89b=_0x50a247,_0x54121a=[];let _0x3733f1=_0x3535e0,_0x2b5027=_0x3535e0;for(let _0x3c0668=_0x44131a['length']-0x1;_0x3c0668>=0x0;_0x3c0668--){const {unitID:_0x3b3f24,undoMutations:_0x566afe,redoMutations:_0x44d7f0}=_0x44131a[_0x3c0668],_0x1065d8=this[_0x3ef89b(0x135)][_0x3ef89b(0x36c)](_0x3733f1,_0x566afe),_0x3fdde0=this[_0x3ef89b(0x135)]['transformMutationsWithChangeset'](_0x2b5027,_0x44d7f0);if(_0x57eaa4['isTransformMutationsWithChangesetFailure'](_0x1065d8)||_0x57eaa4[_0x3ef89b(0x3a1)](_0x3fdde0)){this[_0x3ef89b(0x3b1)]['error'](_0x3ef89b(0x1a7),_0x3ef89b(0x472),_0x1065d8,_0x3fdde0);break;}_0x3733f1=_0x1065d8[_0x3ef89b(0x287)],_0x2b5027=_0x3fdde0[_0x3ef89b(0x287)],_0x54121a['push']({'unitID':_0x3b3f24,'undoMutations':_0x1065d8[_0x3ef89b(0x3ac)],'redoMutations':_0x3fdde0[_0x3ef89b(0x3ac)]});}return _0x54121a['reverse']();}};_0x1f13f8=_0x2c1c10([_0x5a5de4(0x0,_0x40aff1[_0x50a247(0x3f5)]),_0x5a5de4(0x1,_0x40aff1[_0x50a247(0x19e)]),_0x5a5de4(0x2,_0x40aff1['IContextService']),_0x5a5de4(0x3,_0x57eaa4[_0x50a247(0x3be)]),_0x5a5de4(0x4,_0x40aff1['ILogService'])],_0x1f13f8);class _0x4be034 extends _0x40aff1[_0x50a247(0x48d)]{constructor(){const _0x346f7e=_0x50a247;super(),_0x22b1a2(this,_0x346f7e(0x29d)),this[_0x346f7e(0x29d)]=_0x3171f1[_0x346f7e(0x3f4)](window,_0x346f7e(0x4bf))['pipe'](_0x3171f1[_0x346f7e(0x1f0)](this['dispose$']),_0x3171f1[_0x346f7e(0x1fb)](0x1),_0x3171f1['mapTo'](void 0x0));}[_0x50a247(0x382)](_0x430188,_0x465b07,_0x45e14a=!0x1){const _0x3374a6=_0x50a247,_0x3c395f=new URL(window[_0x3374a6(0x2df)][_0x3374a6(0x222)]);_0x3c395f[_0x3374a6(0x2d5)][_0x3374a6(0x3cc)](_0x430188,_0x465b07),_0x45e14a?window['history'][_0x3374a6(0x12e)]('','',_0x3c395f[_0x3374a6(0x1d0)]()):window['history'][_0x3374a6(0x24d)]('','',_0x3c395f[_0x3374a6(0x1d0)]());}[_0x50a247(0x4c4)](_0x46802c,_0x2d97a0=!0x1){const _0x511676=_0x50a247,_0x5dec3f=new URL(window['location'][_0x511676(0x222)]);_0x5dec3f[_0x511676(0x2d5)][_0x511676(0x371)](_0x46802c),_0x2d97a0?window[_0x511676(0x392)]['replaceState']('','',_0x5dec3f[_0x511676(0x1d0)]()):window[_0x511676(0x392)]['pushState']('','',_0x5dec3f[_0x511676(0x1d0)]());}[_0x50a247(0x3bd)](_0x5848db){const _0x18f06b=_0x50a247;var _0x4442ba;return(_0x4442ba=new URL(window[_0x18f06b(0x2df)][_0x18f06b(0x222)])['searchParams'][_0x18f06b(0x17e)](_0x5848db))!=null?_0x4442ba:void 0x0;}}const _0x4ddbd7=_0x50a247(0x357),_0x42cdb1=_0x50a247(0x4ac),_0x1cd232=0x6,_0x553840=1.5,_0x458014=0x4,_0x533edd=1.5,_0x437293=_0x50a247(0x2e1);class _0x114165{constructor(_0x331685,_0x219905,_0x26dc38,_0x5447b3){const _0x12b87f=_0x50a247;_0x22b1a2(this,_0x12b87f(0x2d0),[]),_0x22b1a2(this,_0x12b87f(0x40c),null),_0x22b1a2(this,_0x12b87f(0x44b),null),_0x22b1a2(this,_0x12b87f(0x433),null),_0x22b1a2(this,_0x12b87f(0x12f),null),_0x22b1a2(this,_0x12b87f(0x315),null),(this[_0x12b87f(0x2b4)]=_0x331685,this[_0x12b87f(0x4d1)]=_0x219905,this[_0x12b87f(0x40f)]=_0x26dc38,this['_document']=_0x5447b3,this['_render']());}set[_0x50a247(0x3b8)](_0x30080b){const _0x1b65a6=_0x50a247;_0x30080b?(this[_0x1b65a6(0x433)]&&this['_anchorDot'][_0x1b65a6(0x195)](),this[_0x1b65a6(0x44b)]&&this[_0x1b65a6(0x44b)]['show']()):(this[_0x1b65a6(0x433)]&&this[_0x1b65a6(0x433)][_0x1b65a6(0x259)](),this[_0x1b65a6(0x44b)]&&this[_0x1b65a6(0x44b)][_0x1b65a6(0x195)]());}['dispose'](){const _0x19659e=_0x50a247;for(const _0x13c059 of this[_0x19659e(0x2d0)])_0x13c059[_0x19659e(0x1e5)]();this[_0x19659e(0x44b)]&&this['_textBubble'][_0x19659e(0x1e5)](),this[_0x19659e(0x433)]&&this[_0x19659e(0x433)][_0x19659e(0x1e5)](),this[_0x19659e(0x40c)]&&this[_0x19659e(0x40c)][_0x19659e(0x1e5)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x50a247(0x33c)](){const _0x2112a4=_0x50a247,{_docSkeleton:_0x50edda,_document:_0x329514}=this,{color:_0x2c7425,name:_0x1ac573,ranges:_0x2f1e63}=this[_0x2112a4(0x2b4)],_0x1f5252=_0x329514[_0x2112a4(0x200)](),{docsLeft:_0x5e3e26,docsTop:_0x425f23}=_0x1f5252,_0x1cf6c9=new _0x1fd8d9[(_0x2112a4(0x3fe))](_0x1f5252,_0x50edda);for(const {startOffset:_0x51eac9,endOffset:_0x4f7afe,collapsed:_0x1b44d8,isActive:_0x59a089}of _0x2f1e63){const _0x275860=_0x50edda[_0x2112a4(0x2cc)](_0x51eac9),_0x5a3cbf=_0x50edda[_0x2112a4(0x2cc)](_0x4f7afe);if(_0x59a089){const {contentBoxPointGroup:_0x3d426a}=_0x1cf6c9[_0x2112a4(0x292)](_0x5a3cbf,_0x5a3cbf);if(_0x3d426a['length']===0x0)continue;this[_0x2112a4(0x2e8)](_0x2c7425,_0x3d426a,_0x5e3e26,_0x425f23,_0x1ac573),this[_0x2112a4(0x315)]=this[_0x2112a4(0x478)]();}if(!_0x1b44d8){const {contentBoxPointGroup:_0x5e0679}=_0x1cf6c9[_0x2112a4(0x292)](_0x275860,_0x5a3cbf);if(_0x5e0679[_0x2112a4(0x3d6)]===0x0)continue;this[_0x2112a4(0x20b)](_0x2c7425,_0x5e0679,_0x5e3e26,_0x425f23);}}}['_drawAnchor'](_0x51113a,_0x1a6bb7,_0x29edda,_0x3063fb,_0x36d435){const _0x188cb3=_0x50a247,_0x131cb9=this[_0x188cb3(0x20e)](_0x1a6bb7),{left:_0x60c65d,top:_0x346aea,height:_0x820a03}=_0x131cb9,_0x4690b7=this[_0x188cb3(0x2a9)](),_0x336a99=_0x533edd/_0x4690b7,_0x4cd538=new _0x1fd8d9[(_0x188cb3(0x1f3))](_0x4ddbd7+_0x40aff1[_0x188cb3(0x376)][_0x188cb3(0x202)](_0x1cd232),{'left':_0x60c65d+_0x29edda-_0x336a99,'top':_0x346aea+_0x3063fb,'height':_0x820a03,'width':_0x553840,'fill':_0x51113a||_0x1fd8d9['getColor'](_0x40aff1[_0x188cb3(0x209)]['black'],0x0),'strokeWidth':_0x336a99,'stroke':_0x437293,'evented':!0x0});this[_0x188cb3(0x40c)]=_0x4cd538,this[_0x188cb3(0x4d1)][_0x188cb3(0x436)](_0x4cd538,_0x1fd8d9[_0x188cb3(0x29c)]);const _0x161a38=new _0x1fd8d9['Rect'](_0x4ddbd7+_0x40aff1[_0x188cb3(0x376)][_0x188cb3(0x202)](_0x1cd232),{'left':_0x60c65d+_0x29edda-_0x336a99,'top':_0x346aea+_0x3063fb-_0x458014/0x2,'height':_0x458014,'width':_0x458014,'fill':_0x51113a||_0x1fd8d9[_0x188cb3(0x308)](_0x40aff1[_0x188cb3(0x209)][_0x188cb3(0x350)],0x0),'strokeWidth':0x0,'stroke':_0x51113a||_0x1fd8d9[_0x188cb3(0x308)](_0x40aff1[_0x188cb3(0x209)][_0x188cb3(0x350)],0x0),'evented':!0x1});this[_0x188cb3(0x433)]=_0x161a38,this[_0x188cb3(0x4d1)]['addObject'](_0x161a38,_0x1fd8d9['TEXT_RANGE_LAYER_INDEX']);const _0x25fc70=new _0x205814(_0x4ddbd7+_0x40aff1[_0x188cb3(0x376)][_0x188cb3(0x202)](_0x1cd232),{'left':_0x60c65d+_0x29edda-_0x336a99,'top':_0x346aea+_0x3063fb-_0x193e62,'text':_0x36d435,'color':_0x51113a});this[_0x188cb3(0x44b)]=_0x25fc70,this[_0x188cb3(0x4d1)][_0x188cb3(0x436)](_0x25fc70,_0x1fd8d9['TEXT_RANGE_LAYER_INDEX']),this[_0x188cb3(0x3b8)]=!0x1;}[_0x50a247(0x478)](){const _0x42393a=_0x50a247,_0x4f6cff=this[_0x42393a(0x40c)]['onPointerEnterObserver']['add'](()=>{const _0x455102=_0x42393a;this[_0x455102(0x3b8)]=!0x0;}),_0xc5114b=this[_0x42393a(0x40c)][_0x42393a(0x213)]['add'](()=>{const _0x552d3b=_0x42393a;this[_0x552d3b(0x12f)]&&clearTimeout(this[_0x552d3b(0x12f)]),this['_hideTimer']=setTimeout(()=>{const _0x454222=_0x552d3b;this[_0x454222(0x3b8)]=!0x1;},0x7d0);});return()=>{const _0x497851=_0x42393a;var _0x3c6c4b,_0x4ad386;(_0x3c6c4b=this[_0x497851(0x40c)])==null||_0x3c6c4b[_0x497851(0x4ea)][_0x497851(0x1e6)](_0x4f6cff),(_0x4ad386=this[_0x497851(0x40c)])==null||_0x4ad386[_0x497851(0x213)][_0x497851(0x1e6)](_0xc5114b);};}[_0x50a247(0x20b)](_0x40050c,_0x1ab6ff,_0x4e7052,_0x47f80c){const _0x2e9da1=_0x50a247,_0x113228=new _0x40aff1[(_0x2e9da1(0x410))](_0x40050c)[_0x2e9da1(0x1c0)](0.2)[_0x2e9da1(0x2e2)](),_0x4c86fc=new _0x1fd8d9[(_0x2e9da1(0x1ee))](_0x42cdb1+_0x40aff1[_0x2e9da1(0x376)][_0x2e9da1(0x202)](_0x1cd232),{'pointsGroup':_0x1ab6ff,'fill':_0x113228||_0x1fd8d9[_0x2e9da1(0x308)](_0x40aff1[_0x2e9da1(0x209)][_0x2e9da1(0x350)],0.2),'left':_0x4e7052,'top':_0x47f80c,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x2e9da1(0x4a8)](_0x4c86fc),this[_0x2e9da1(0x4d1)][_0x2e9da1(0x436)](_0x4c86fc,_0x1fd8d9[_0x2e9da1(0x29c)]);}['_getAnchorBounding'](_0x2f369f){const _0x45e13b=_0x2f369f[0x0],_0xdf780d=_0x45e13b[0x0],_0x424d84=_0x45e13b[0x2],{x:_0x34c128,y:_0x25f3b8}=_0xdf780d,{x:_0x504009,y:_0x16140f}=_0x424d84;return{'left':_0x34c128,'top':_0x25f3b8,'width':_0x504009-_0x34c128,'height':_0x16140f-_0x25f3b8};}[_0x50a247(0x2a9)](){const _0x525497=_0x50a247,{scaleX:_0x199932,scaleY:_0x3f8dab}=this[_0x525497(0x4d1)][_0x525497(0x42e)]();return Math['max'](_0x199932,_0x3f8dab);}}var _0x570b7d=(_0x3eb522,_0x33fcce,_0xa4f072,_0x9dd2c3)=>{const _0x712db9=_0x50a247;for(var _0x50e1d5=_0x33fcce,_0xbaff49=_0x3eb522[_0x712db9(0x3d6)]-0x1,_0x3b14c1;_0xbaff49>=0x0;_0xbaff49--)(_0x3b14c1=_0x3eb522[_0xbaff49])&&(_0x50e1d5=_0x3b14c1(_0x50e1d5)||_0x50e1d5);return _0x50e1d5;},_0x5bf8a2=(_0x1bf81c,_0x5c6438)=>(_0x55198d,_0x5248cc)=>_0x5c6438(_0x55198d,_0x5248cc,_0x1bf81c);let _0x4c0e33=class extends _0x40aff1[_0x50a247(0x48d)]{constructor(_0x2fa01b,_0xc6a380,_0x1f3967,_0x5e6287,_0x1ae5ec){const _0x3f1806=_0x50a247;super(),_0x22b1a2(this,_0x3f1806(0x3f1),[]),(this[_0x3f1806(0x381)]=_0x2fa01b,this[_0x3f1806(0x1f8)]=_0xc6a380,this['_renderManagerService']=_0x1f3967,this['_docSkeletonManagerService']=_0x5e6287,this[_0x3f1806(0x3ca)]=_0x1ae5ec,this[_0x3f1806(0x1ce)]());}[_0x50a247(0x1ce)](){const _0x59ffcd=_0x50a247;this[_0x59ffcd(0x359)][_0x59ffcd(0x37f)][_0x59ffcd(0x41d)](_0x32d0c5[_0x59ffcd(0x1f0)](this['dispose$']),_0x32d0c5[_0x59ffcd(0x4b9)](_0x10c9b5=>{const _0x3c655b=_0x59ffcd;if(_0x10c9b5){const {unitId:_0x5a4e56}=_0x10c9b5;return _0x3171f1[_0x3c655b(0x1c3)](this[_0x3c655b(0x381)][_0x3c655b(0x4c2)](_0x5a4e56),this[_0x3c655b(0x3ca)][_0x3c655b(0x39c)])[_0x3c655b(0x41d)](_0x32d0c5['map'](([_0x430ed5,_0xd0edd6])=>({'skeleton':_0x10c9b5,'cursors':[..._0x430ed5[_0x3c655b(0x4e6)]()][_0x3c655b(0x3ad)](_0x3a5230=>({..._0x3a5230,'color':_0xd0edd6[_0x3a5230[_0x3c655b(0x416)]]}))})));}return _0x3171f1['of']({'skeleton':null,'cursors':[]});}))[_0x59ffcd(0x1a6)](({skeleton:_0x5aecfb,cursors:_0x5b84fa})=>{const _0x243d5d=_0x59ffcd;this[_0x243d5d(0x261)](),_0x5aecfb&&this[_0x243d5d(0x279)](_0x5aecfb[_0x243d5d(0x277)],_0x5b84fa);});}[_0x50a247(0x279)](_0x201944,_0x2a478b){const _0x5bd553=_0x50a247,_0x2f0bf4=this[_0x5bd553(0x1c8)]();if(_0x2f0bf4==null)return;const {scene:_0xa88f19,document:_0x22202a}=_0x2f0bf4,_0x31b3e1=_0x2a478b[_0x5bd553(0x290)](_0x22debf=>new _0x114165(_0x22debf,_0xa88f19,_0x201944,_0x22202a));this['_cursors']=_0x31b3e1;}[_0x50a247(0x261)](){const _0x38104b=_0x50a247;this[_0x38104b(0x3f1)][_0x38104b(0x35b)](_0x35484c=>_0x35484c[_0x38104b(0x1e5)]()),this[_0x38104b(0x3f1)]=[];}[_0x50a247(0x1c8)](){const _0x5f0bc0=_0x50a247;return _0xc138e5[_0x5f0bc0(0x45c)](this[_0x5f0bc0(0x1f8)],this[_0x5f0bc0(0x42b)]);}};_0x4c0e33=_0x570b7d([_0x40aff1[_0x50a247(0x199)](_0x40aff1[_0x50a247(0x419)][_0x50a247(0x368)],_0x4c0e33),_0x5bf8a2(0x0,_0x58498f[_0x50a247(0x342)](_0x5300e0)),_0x5bf8a2(0x1,_0x40aff1[_0x50a247(0x3f5)]),_0x5bf8a2(0x2,_0x1fd8d9['IRenderManagerService']),_0x5bf8a2(0x3,_0x58498f[_0x50a247(0x342)](_0xc138e5['DocSkeletonManagerService'])),_0x5bf8a2(0x4,_0x58498f['Inject'](_0x40aff1[_0x50a247(0x4da)]))],_0x4c0e33);var _0x11e0f=(_0x1c5dc5,_0x13537f,_0x5e11a2,_0x5c28c1)=>{const _0x4fcda1=_0x50a247;for(var _0x26ad0e=_0x13537f,_0x3933fd=_0x1c5dc5[_0x4fcda1(0x3d6)]-0x1,_0x2cb27c;_0x3933fd>=0x0;_0x3933fd--)(_0x2cb27c=_0x1c5dc5[_0x3933fd])&&(_0x26ad0e=_0x2cb27c(_0x26ad0e)||_0x26ad0e);return _0x26ad0e;},_0x555a1f=(_0x5ca655,_0x4b6a08)=>(_0xa66aa3,_0x5a80ee)=>_0x4b6a08(_0xa66aa3,_0x5a80ee,_0x5ca655);const _0x32de45=_0x50a247(0x2ba),_0x49e685='/universer-api/oidc/authpage';let _0x1fe3bf=class{constructor(_0x31ed8d,_0x5362f0,_0x3a6f4e){const _0x3ae089=_0x50a247;this[_0x3ae089(0x1ab)]=_0x31ed8d,this[_0x3ae089(0x1d1)]=_0x5362f0,this[_0x3ae089(0x388)]=_0x3a6f4e,this[_0x3ae089(0x356)]();}['init'](){const _0x4ab4a5=_0x50a247;this['_httpService'][_0x4ab4a5(0x19d)]({'priority':0x1,'interceptor':(_0x364d2b,_0x262f1d)=>_0x262f1d(_0x364d2b)[_0x4ab4a5(0x41d)](_0x3171f1[_0x4ab4a5(0x29b)](async _0x3ac5ef=>{const _0x43dc56=_0x4ab4a5;if(_0x3ac5ef[_0x43dc56(0x453)]===0x191&&window['confirm'](this['localeService']['t'](_0x43dc56(0x493)))){const _0x6c5b23=window['encodeURIComponent'](window[_0x43dc56(0x2df)][_0x43dc56(0x222)]);window[_0x43dc56(0x2df)]['href']=this['_getLoginPath']()+_0x43dc56(0x265)+_0x6c5b23;}return _0x3ac5ef;}))});}[_0x50a247(0x205)](){const _0x25c8ee=_0x50a247;var _0x51336b;return(_0x51336b=this['_configService'][_0x25c8ee(0x48e)](_0x32de45))!=null?_0x51336b:_0x49e685;}};_0x1fe3bf=_0x11e0f([_0x555a1f(0x0,_0x40aff1[_0x50a247(0x263)]),_0x555a1f(0x1,_0x58498f[_0x50a247(0x342)](_0x12f0de[_0x50a247(0x36e)])),_0x555a1f(0x2,_0x58498f[_0x50a247(0x342)](_0x40aff1[_0x50a247(0x34a)]))],_0x1fe3bf);var _0x53ce7b=(_0x5b0bbd,_0x44c582,_0x3cbe6f,_0x40ab02)=>{const _0x5bed5b=_0x50a247;for(var _0x569232=_0x44c582,_0x1b2789=_0x5b0bbd[_0x5bed5b(0x3d6)]-0x1,_0x7dadd1;_0x1b2789>=0x0;_0x1b2789--)(_0x7dadd1=_0x5b0bbd[_0x1b2789])&&(_0x569232=_0x7dadd1(_0x569232)||_0x569232);return _0x569232;},_0x526546=(_0x203fde,_0x345c5e)=>(_0x5479ad,_0x384116)=>_0x345c5e(_0x5479ad,_0x384116,_0x203fde);const _0x333957='AUTHZ_URL_KEY',_0x3a0f94=_0x50a247(0x353);_0x5bd0fe['AuthzIoHttpService']=class{constructor(_0x1e9d88,_0x7528d0){const _0x4af977=_0x50a247;this['_HTTPService']=_0x1e9d88,this[_0x4af977(0x1ab)]=_0x7528d0;}[_0x50a247(0x1f1)](){const _0x35dcad=_0x50a247;var _0x4e1ebc;return(_0x4e1ebc=this[_0x35dcad(0x1ab)]['getConfig'](_0x333957))!=null?_0x4e1ebc:_0x3a0f94;}async[_0x50a247(0x2b0)](_0x58bbb7){const _0x7b2d8f=_0x50a247,_0x528b55=this[_0x7b2d8f(0x1f1)]()+'/'+_0x58bbb7[_0x7b2d8f(0x1b2)]+_0x7b2d8f(0x246);return(await this[_0x7b2d8f(0x22e)][_0x7b2d8f(0x28a)](_0x528b55,{'body':_0x58bbb7}))[_0x7b2d8f(0x3eb)][_0x7b2d8f(0x12b)]||'';}async[_0x50a247(0x398)](_0x533a8e){const _0xe4f0fd=_0x50a247,_0x37af6f=this['_getAPIPrefixPath']()+_0xe4f0fd(0x3f9);return(await this['_HTTPService'][_0xe4f0fd(0x28a)](_0x37af6f,{'body':_0x533a8e}))['body'][_0xe4f0fd(0x420)];}async['update'](_0x492d14){const _0x1816f5=_0x50a247,_0x1d84a6=this[_0x1816f5(0x1f1)]()+'/'+_0x492d14[_0x1816f5(0x1b2)]+'/object/'+_0x492d14[_0x1816f5(0x12b)];await this[_0x1816f5(0x22e)][_0x1816f5(0x1ef)](_0x1d84a6,{'body':_0x492d14});}async[_0x50a247(0x3e5)](_0x1283dc){const _0x4a99fa=_0x50a247,_0x4fee28=this['_getAPIPrefixPath']()+'/'+_0x1283dc[_0x4a99fa(0x1b2)]+'/object/'+_0x1283dc[_0x4a99fa(0x12b)]+_0x4a99fa(0x184);return(await this[_0x4a99fa(0x22e)][_0x4a99fa(0x28a)](_0x4fee28,{'body':_0x1283dc}))[_0x4a99fa(0x3eb)][_0x4a99fa(0x3a4)];}async[_0x50a247(0x194)](_0x3124f9){const _0x26168a=_0x50a247,_0x55d8bf=this[_0x26168a(0x1f1)]()+_0x26168a(0x1b5);return(await this[_0x26168a(0x22e)][_0x26168a(0x28a)](_0x55d8bf,{'body':{'requests':_0x3124f9}}))['body'][_0x26168a(0x1e2)];}async[_0x50a247(0x38e)](_0x4cd40d){const _0x4458ae=_0x50a247,_0x3b4901=this[_0x4458ae(0x1f1)]()+'/'+_0x4cd40d[_0x4458ae(0x1b2)]+_0x4458ae(0x41f),_0x3da2ae=(await this['_HTTPService'][_0x4458ae(0x28a)](_0x3b4901,{'body':_0x4cd40d}))[_0x4458ae(0x3eb)];return{'roles':_0x3da2ae[_0x4458ae(0x1fd)],'actions':_0x3da2ae['actions']};}async[_0x50a247(0x29a)](_0x2cba7f){const _0x482e28=_0x50a247,_0x3a5e44=this[_0x482e28(0x1f1)]()+_0x482e28(0x465);await this[_0x482e28(0x22e)]['delete'](_0x3a5e44,{'params':{'collaboratorID':_0x2cba7f['collaboratorID'],'objectID':_0x2cba7f['objectID'],'unitID':_0x2cba7f[_0x482e28(0x437)]}});}async[_0x50a247(0x1ad)](_0x1824f){const _0x13f777=_0x50a247,_0x1a547d=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x13f777(0x22e)][_0x13f777(0x25d)](_0x1a547d,{'body':_0x1824f});}async[_0x50a247(0x4cb)](_0xb2372){const _0x2079e4=_0x50a247,_0x53fc8f=this[_0x2079e4(0x1f1)]()+_0x2079e4(0x465);await this[_0x2079e4(0x22e)]['post'](_0x53fc8f,{'body':_0xb2372});}async[_0x50a247(0x459)](_0x16fcae){const _0x1d9c86=_0x50a247,_0x137541=this['_getAPIPrefixPath']()+_0x1d9c86(0x465);return(await this[_0x1d9c86(0x22e)][_0x1d9c86(0x17e)](_0x137541,{'params':{'objectID':_0x16fcae[_0x1d9c86(0x12b)],'unitID':_0x16fcae[_0x1d9c86(0x437)]}}))[_0x1d9c86(0x3eb)]['collaborators'];}async[_0x50a247(0x150)](_0x391cfa){const _0x1acb40=_0x50a247,_0x156e64=this[_0x1acb40(0x1f1)]()+'/collaborator';await this[_0x1acb40(0x22e)][_0x1acb40(0x1ef)](_0x156e64,{'body':_0x391cfa});}},_0x5bd0fe['AuthzIoHttpService']=_0x53ce7b([_0x526546(0x0,_0x58498f['Inject'](_0x12f0de[_0x50a247(0x36e)])),_0x526546(0x1,_0x58498f[_0x50a247(0x342)](_0x40aff1['IConfigService']))],_0x5bd0fe[_0x50a247(0x432)]);var _0x439b65=(_0x1d5a55,_0x4b7f5d,_0x1d7a59,_0xcd552b)=>{for(var _0x16d7be=_0x4b7f5d,_0x2e8791=_0x1d5a55['length']-0x1,_0x89b1f3;_0x2e8791>=0x0;_0x2e8791--)(_0x89b1f3=_0x1d5a55[_0x2e8791])&&(_0x16d7be=_0x89b1f3(_0x16d7be)||_0x16d7be);return _0x16d7be;},_0x530596=(_0x21719d,_0x465545)=>(_0x244102,_0x3fda9c)=>_0x465545(_0x244102,_0x3fda9c,_0x21719d);const _0x56a8ce=[_0x50a247(0x27e),'image/jpeg',_0x50a247(0x45e),_0x50a247(0x38a),_0x50a247(0x3fa)],_0x3c7240=0x5*0x400*0x400,_0x4db5c5=_0x50a247(0x37e),_0x368fa7=_0x50a247(0x15f),_0x4dd1d3=_0x50a247(0x39a),_0x6b473b=_0x50a247(0x339);let _0x364526=class{constructor(_0x2f0b92,_0x3559c1){const _0x576418=_0x50a247;_0x22b1a2(this,_0x576418(0x4df),0x0),_0x22b1a2(this,_0x576418(0x183),new _0x3171f1[(_0x576418(0x1ed))]()),_0x22b1a2(this,_0x576418(0x3b3),this[_0x576418(0x183)]),_0x22b1a2(this,'_imageSourceCache',new Map()),(this[_0x576418(0x1d1)]=_0x2f0b92,this['_configService']=_0x3559c1);}[_0x50a247(0x264)](_0x1c07f2){const _0x392b89=_0x50a247;this[_0x392b89(0x4df)]=_0x1c07f2,this['_change$'][_0x392b89(0x446)](_0x1c07f2);}[_0x50a247(0x2a6)](_0x64bd40,_0x4e0bdb){const _0x403b30=_0x50a247;if(_0x4e0bdb===_0x3ce361[_0x403b30(0x4bb)][_0x403b30(0x214)]){const _0x2bbd92=new Image();return _0x2bbd92[_0x403b30(0x380)]=_0x64bd40,_0x2bbd92;}return this[_0x403b30(0x24e)][_0x403b30(0x17e)](_0x64bd40);}[_0x50a247(0x2fc)](_0x5a8831,_0x1cbfa9,_0x320010){const _0x335263=_0x50a247;_0x1cbfa9===_0x3ce361[_0x335263(0x4bb)][_0x335263(0x214)]||_0x320010==null||this[_0x335263(0x24e)][_0x335263(0x3cc)](_0x5a8831,_0x320010);}async[_0x50a247(0x476)](_0x339901){const _0x4743ea=_0x50a247;try{const _0x102413=this[_0x4743ea(0x4bd)](this['_getSignURL'](),''+_0x339901),_0x33b99b=(await this[_0x4743ea(0x1d1)][_0x4743ea(0x17e)](_0x102413))[_0x4743ea(0x3eb)];return _0x33b99b['error']&&_0x33b99b[_0x4743ea(0x207)]['code']===_0x580026['OK']?Promise['resolve'](_0x33b99b['url']):Promise[_0x4743ea(0x4af)](_0x33b99b[_0x4743ea(0x207)]);}catch(_0x5ae7f5){return Promise[_0x4743ea(0x4af)](_0x5ae7f5);}}async[_0x50a247(0x169)](_0x51d179){const _0x1516b7=_0x50a247;let _0x398f8f='';if(!_0x56a8ce[_0x1516b7(0x181)](_0x51d179[_0x1516b7(0x28c)]))return this[_0x1516b7(0x216)](),Promise[_0x1516b7(0x4af)](new Error(_0x3ce361['ImageUploadStatusType'][_0x1516b7(0x409)]));if(_0x51d179['size']>_0x3c7240)return this[_0x1516b7(0x216)](),Promise[_0x1516b7(0x4af)](new Error(_0x3ce361[_0x1516b7(0x229)][_0x1516b7(0x36d)]));try{const _0x270ee9=new FormData();_0x270ee9[_0x1516b7(0x2fe)](_0x1516b7(0x4c7),_0x51d179);const _0x4b873a=this[_0x1516b7(0x2aa)]()+_0x1516b7(0x496)+_0x51d179['size']['toString'](),_0x15b5b2=await(await fetch(_0x4b873a,{'method':_0x1516b7(0x41a),'body':_0x270ee9}))[_0x1516b7(0x1b3)]();if(typeof _0x15b5b2[_0x1516b7(0x336)]!=_0x1516b7(0x403))return this[_0x1516b7(0x216)](),Promise['reject'](new Error(_0x3ce361['ImageUploadStatusType'][_0x1516b7(0x164)]));_0x398f8f=_0x15b5b2[_0x1516b7(0x336)];}catch{return this[_0x1516b7(0x216)](),Promise[_0x1516b7(0x4af)](new Error(_0x3ce361[_0x1516b7(0x229)][_0x1516b7(0x164)]));}return new Promise((_0x2ff01b,_0x390d94)=>{const _0x111185=_0x1516b7,_0x457a75=new FileReader();_0x457a75[_0x111185(0x221)](_0x51d179),_0x457a75[_0x111185(0x301)]=_0x18761d=>{const _0x55970c=_0x111185;var _0x4d0052;const _0x2a6bec=(_0x4d0052=_0x18761d[_0x55970c(0x226)])==null?void 0x0:_0x4d0052['result'];if(_0x2a6bec==null){this[_0x55970c(0x216)](),_0x390d94(new Error(_0x3ce361[_0x55970c(0x229)][_0x55970c(0x164)]));return;}const _0x480fb1=_0x40aff1['Tools'][_0x55970c(0x202)](0x6);_0x2ff01b({'imageId':_0x480fb1,'imageSourceType':_0x3ce361['ImageSourceType'][_0x55970c(0x136)],'source':_0x398f8f,'base64Cache':_0x2a6bec,'status':_0x3ce361[_0x55970c(0x229)][_0x55970c(0x232)]}),this[_0x55970c(0x216)]();};});}[_0x50a247(0x2aa)](){const _0x5bc048=_0x50a247;var _0x1050da;return(_0x1050da=this[_0x5bc048(0x1ab)]['getConfig'](_0x4db5c5))!=null?_0x1050da:_0x368fa7;}[_0x50a247(0x14c)](){const _0x96bc15=_0x50a247;var _0x49c28e;return(_0x49c28e=this[_0x96bc15(0x1ab)][_0x96bc15(0x48e)](_0x4dd1d3))!=null?_0x49c28e:_0x6b473b;}[_0x50a247(0x4bd)](_0x3e8fa8,_0x764fba){return _0x3e8fa8['replace']('{fileID}',_0x764fba);}[_0x50a247(0x216)](){const _0x3909cb=_0x50a247;this[_0x3909cb(0x4df)]-=0x1,this[_0x3909cb(0x183)][_0x3909cb(0x446)](this['_waitCount']);}};_0x364526=_0x439b65([_0x530596(0x0,_0x58498f[_0x50a247(0x342)](_0x12f0de[_0x50a247(0x36e)])),_0x530596(0x1,_0x40aff1['IConfigService'])],_0x364526);var _0x5d2b24=(_0x357ef7,_0x138e1c,_0x40a3cc,_0x39112d)=>{const _0x3afd92=_0x50a247;for(var _0x44eb3b=_0x138e1c,_0x513c7d=_0x357ef7[_0x3afd92(0x3d6)]-0x1,_0x212b23;_0x513c7d>=0x0;_0x513c7d--)(_0x212b23=_0x357ef7[_0x513c7d])&&(_0x44eb3b=_0x212b23(_0x44eb3b)||_0x44eb3b);return _0x44eb3b;},_0x455018=(_0x118077,_0x9ad5a5)=>(_0x43cba2,_0x2bbfc5)=>_0x9ad5a5(_0x43cba2,_0x2bbfc5,_0x118077);const _0x49a62f='collaboration-client';_0x5bd0fe[_0x50a247(0x157)]=(_0x2e1c24=class extends _0x40aff1[_0x50a247(0x2f3)]{constructor(_0x3c4ce1,_0x5cb451,_0x3a6693){const _0x5540e2=_0x50a247;super(),this['_config']=_0x3c4ce1,this[_0x5540e2(0x401)]=_0x5cb451,this['_localeService']=_0x3a6693;}[_0x50a247(0x3a2)](_0x53c4c2){const _0x5b2bf6=_0x50a247;var _0x159843,_0x2b4333,_0x303651,_0x23bd41,_0x3faf47;_0x53c4c2['replace']([_0x40aff1[_0x5b2bf6(0x351)],{'useClass':_0x1f13f8}]);let _0x3b15f1=[[_0x5bd0fe['CollaborationSessionService']],[_0x410bf1],[_0x12f0de['HTTPService']],[_0x2f336e,{'useClass':_0x4be034}],[_0x370285],[_0x5bd0fe[_0x5b2bf6(0x262)]],[_0x12f0de[_0x5b2bf6(0x415)]],[_0x30b6af],[_0x58ad03],[_0x2b1054],[_0x59e101],[_0x1fe3bf],[_0x2196f2,{'useClass':(_0x2b4333=(_0x159843=this[_0x5b2bf6(0x3da)])==null?void 0x0:_0x159843[_0x5b2bf6(0x2ae)])!=null?_0x2b4333:_0x5bd0fe[_0x5b2bf6(0x40e)]}],[_0x12f0de['IHTTPImplementation'],{'useClass':_0x12f0de[_0x5b2bf6(0x4e3)]}],[_0x40aff1[_0x5b2bf6(0x338)],{'useClass':_0x567b8d}],[_0x40aff1['IAuthzIoService'],{'useClass':_0x5bd0fe[_0x5b2bf6(0x432)]}],[_0x3ce361[_0x5b2bf6(0x1cc)],{'useClass':_0x364526}],[_0x5bd0fe[_0x5b2bf6(0x422)]],[_0x5bd0fe[_0x5b2bf6(0x44e)]],[_0x5bd0fe['DesktopCollaborationStatusDisplayController']],[_0x3e17e9],[_0x5300e0]];(_0x303651=this[_0x5b2bf6(0x3da)])!=null&&_0x303651[_0x5b2bf6(0x400)]&&_0x3b15f1[_0x5b2bf6(0x4a8)]([_0x4f8e2c,{'useClass':_0xc3d60c}]),((_0x23bd41=this[_0x5b2bf6(0x3da)])==null?void 0x0:_0x23bd41['collaborationUniverTypes'])==null||this[_0x5b2bf6(0x3da)]['collaborationUniverTypes']['includes'](_0x40aff1[_0x5b2bf6(0x1ff)][_0x5b2bf6(0x309)])?_0x3b15f1[_0x5b2bf6(0x4a8)]([_0x49a7f8]):this[_0x5b2bf6(0x3da)]['collaborationUniverTypes'][_0x5b2bf6(0x181)](_0x40aff1[_0x5b2bf6(0x1ff)][_0x5b2bf6(0x254)])&&_0x3b15f1[_0x5b2bf6(0x4a8)]([_0x4c0e33]),_0x3b15f1=_0x40aff1[_0x5b2bf6(0x30e)](_0x3b15f1,(_0x3faf47=this[_0x5b2bf6(0x3da)])==null?void 0x0:_0x3faf47[_0x5b2bf6(0x31b)]),_0x3b15f1['forEach'](_0x3fd7b7=>_0x53c4c2[_0x5b2bf6(0x3ce)](_0x3fd7b7)),_0x53c4c2['get'](_0x12f0de[_0x5b2bf6(0x36e)])[_0x5b2bf6(0x19d)]({'priority':0x14,'interceptor':_0x53c4c2['invoke'](_0x12f0de[_0x5b2bf6(0x38f)],{'maxParallel':0x6})}),this[_0x5b2bf6(0x43a)]();}[_0x50a247(0x43a)](){const _0x163d1a=_0x50a247;var _0xa12dde,_0x3ab6bd;(_0xa12dde=this[_0x163d1a(0x3da)])!=null&&_0xa12dde[_0x163d1a(0x3d3)]||this[_0x163d1a(0x401)][_0x163d1a(0x17e)](_0x5bd0fe[_0x163d1a(0x262)])[_0x163d1a(0x2bf)](),(_0x3ab6bd=this['_config'])!=null&&_0x3ab6bd[_0x163d1a(0x4ae)]&&this[_0x163d1a(0x401)][_0x163d1a(0x17e)](_0x1fe3bf);}},_0x22b1a2(_0x2e1c24,'pluginName',_0x49a62f),_0x2e1c24),_0x5bd0fe[_0x50a247(0x157)]=_0x5d2b24([_0x455018(0x1,_0x58498f[_0x50a247(0x342)](_0x58498f[_0x50a247(0x1a4)])),_0x455018(0x2,_0x58498f[_0x50a247(0x342)](_0x40aff1[_0x50a247(0x34a)]))],_0x5bd0fe[_0x50a247(0x157)]),_0x5bd0fe[_0x50a247(0x341)]=_0x1c96e6,_0x5bd0fe[_0x50a247(0x23f)]=_0x5ab995,_0x5bd0fe[_0x50a247(0x4a7)]=_0x2dad21,_0x5bd0fe[_0x50a247(0x177)]=_0x90e5a,_0x5bd0fe[_0x50a247(0x2ab)]=_0x4af75e,_0x5bd0fe[_0x50a247(0x16c)]=_0x998910,_0x5bd0fe['ICollaborationSocketService']=_0x2196f2,_0x5bd0fe[_0x50a247(0x3aa)]=_0x2f336e,_0x5bd0fe[_0x50a247(0x1bd)]=_0x1e91d6,_0x5bd0fe['LOGIN_URL_KEY']=_0x32de45,_0x5bd0fe[_0x50a247(0x328)]=_0x275aff,_0x5bd0fe[_0x50a247(0x206)]=_0x4ebe18,_0x5bd0fe['SessionStatus']=_0x2d7bdc,_0x5bd0fe[_0x50a247(0x4d8)]=_0x4be034,_0x5bd0fe[_0x50a247(0x23b)]=_0x22048b,_0x5bd0fe[_0x50a247(0x34c)]=_0xf6958b,Object['defineProperty'](_0x5bd0fe,Symbol['toStringTag'],{'value':_0x50a247(0x46c)});}));
1
+ function _0x572c(_0x2ef492,_0x170dcc){const _0x5a71ee=_0x5a71();return _0x572c=function(_0x572c37,_0x147b96){_0x572c37=_0x572c37-0x12a;let _0x2781db=_0x5a71ee[_0x572c37];return _0x2781db;},_0x572c(_0x2ef492,_0x170dcc);}(function(_0x86d8a,_0x15c541){const _0x1b8b4e=_0x572c,_0x198681=_0x86d8a();while(!![]){try{const _0x244ff2=parseInt(_0x1b8b4e(0x257))/0x1*(-parseInt(_0x1b8b4e(0x391))/0x2)+-parseInt(_0x1b8b4e(0x240))/0x3+-parseInt(_0x1b8b4e(0x4a1))/0x4+parseInt(_0x1b8b4e(0x352))/0x5+parseInt(_0x1b8b4e(0x2ee))/0x6+-parseInt(_0x1b8b4e(0x326))/0x7+parseInt(_0x1b8b4e(0x40b))/0x8;if(_0x244ff2===_0x15c541)break;else _0x198681['push'](_0x198681['shift']());}catch(_0x51cb22){_0x198681['push'](_0x198681['shift']());}}}(_0x5a71,0x7aeb6),function(_0x15a14c,_0x9ec0ec){const _0x40436b=_0x572c;typeof exports==_0x40436b(0x38d)&&typeof module<'u'?_0x9ec0ec(exports,require(_0x40436b(0x148)),require(_0x40436b(0x47c)),require(_0x40436b(0x46b)),require('@univerjs/ui'),require(_0x40436b(0x40c)),require('@wendellhu/redi'),require(_0x40436b(0x165)),require(_0x40436b(0x18d)),require(_0x40436b(0x368)),require(_0x40436b(0x38b)),require(_0x40436b(0x1cb)),require(_0x40436b(0x2da)),require(_0x40436b(0x1d3)),require(_0x40436b(0x151)),require(_0x40436b(0x3cf)),require(_0x40436b(0x465)),require(_0x40436b(0x3ca)),require(_0x40436b(0x3a8)),require('@univerjs/rpc')):typeof define==_0x40436b(0x3e3)&&define['amd']?define([_0x40436b(0x309),_0x40436b(0x148),_0x40436b(0x47c),_0x40436b(0x46b),_0x40436b(0x187),'@univerjs-pro/collaboration',_0x40436b(0x2f8),_0x40436b(0x165),_0x40436b(0x18d),_0x40436b(0x368),_0x40436b(0x38b),'@univerjs/drawing',_0x40436b(0x2da),'lodash/debounce','@univerjs/engine-render','@univerjs/sheets-ui',_0x40436b(0x465),_0x40436b(0x3ca),_0x40436b(0x3a8),_0x40436b(0x3eb)],_0x9ec0ec):(_0x15a14c=typeof globalThis<'u'?globalThis:_0x15a14c||self,_0x9ec0ec(_0x15a14c[_0x40436b(0x359)]={},_0x15a14c[_0x40436b(0x3b6)],_0x15a14c[_0x40436b(0x32f)],_0x15a14c['UniverDesign'],_0x15a14c[_0x40436b(0x1fd)],_0x15a14c['UniverCollaboration'],_0x15a14c[_0x40436b(0x2f8)],_0x15a14c[_0x40436b(0x165)],_0x15a14c[_0x40436b(0x165)]['operators'],_0x15a14c['UniverDocs'],_0x15a14c[_0x40436b(0x28f)],_0x15a14c['UniverDrawing'],_0x15a14c[_0x40436b(0x164)],_0x15a14c[_0x40436b(0x2f1)]['debounce'],_0x15a14c[_0x40436b(0x247)],_0x15a14c[_0x40436b(0x3f3)],_0x15a14c[_0x40436b(0x465)],_0x15a14c[_0x40436b(0x2f3)],_0x15a14c['clsx'],_0x15a14c[_0x40436b(0x36d)]));}(this,function(_0x431c6f,_0x226a7e,_0x3acf4c,_0x2d5606,_0x15005b,_0x1e8c75,_0x49bc9,_0x4e5e3f,_0x4d72f4,_0x534040,_0x353e30,_0x57ff02,_0x2ca513,_0x270255,_0x5b613a,_0x1a2a28,_0x3c1409,_0x53ebe1,_0xb8caad,_0x5cea30){'use strict';const _0x228849=_0x572c;var _0x2d1587=Object[_0x228849(0x1fc)],_0x3ab982=(_0x357c9f,_0x2e3b1e,_0x4eecc0)=>_0x2e3b1e in _0x357c9f?_0x2d1587(_0x357c9f,_0x2e3b1e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4eecc0}):_0x357c9f[_0x2e3b1e]=_0x4eecc0,_0xaa2177=(_0x42f7fa,_0x355341,_0x38a73f)=>(_0x3ab982(_0x42f7fa,typeof _0x355341!=_0x228849(0x35b)?_0x355341+'':_0x355341,_0x38a73f),_0x38a73f);const _0x299079=_0x228849(0x229),_0x22538d=_0x228849(0x26a),_0x2e8975=_0x228849(0x23b),_0x6128a1=_0x228849(0x2ab),_0x54323b=_0x228849(0x2ce),_0x53cf5e='ws://127.0.0.1:8000/universer-api/comb/connect',_0x18051e='HEARTBEAT_INTERVAL',_0x2c7ffa=_0x228849(0x25a),_0x4c064c=_0x228849(0x3b2),_0x3dfce0=_0x228849(0x2ca),_0x109348='LOCAL_CACHE_INTERVAL',_0xe983e2=_0x228849(0x2fa),_0x3c52f6=_0x228849(0x1f2),_0x16f267=_0x228849(0x303),_0x1dc009=_0x228849(0x3f7);var _0x4a5019=(_0x58ed5e=>(_0x58ed5e[_0x58ed5e[_0x228849(0x2e9)]=0x0]=_0x228849(0x2e9),_0x58ed5e[_0x58ed5e['OK']=0x1]='OK',_0x58ed5e[_0x58ed5e[_0x228849(0x30e)]=0x2]=_0x228849(0x30e),_0x58ed5e[_0x58ed5e['PERMISSION_DENIED']=0x3]=_0x228849(0x489),_0x58ed5e[_0x58ed5e[_0x228849(0x4a0)]=0x4]='NOT_FOUND',_0x58ed5e[_0x58ed5e[_0x228849(0x205)]=0x5]='UNAUTHENTICATED',_0x58ed5e[_0x58ed5e[_0x228849(0x1dc)]=0x6]='ALREADY_EXISTS',_0x58ed5e[_0x58ed5e[_0x228849(0x287)]=0x7]=_0x228849(0x287),_0x58ed5e[_0x58ed5e[_0x228849(0x4e5)]=0x8]=_0x228849(0x4e5),_0x58ed5e[_0x58ed5e[_0x228849(0x194)]=0x9]=_0x228849(0x194),_0x58ed5e[_0x58ed5e[_0x228849(0x4f1)]=0x1389]=_0x228849(0x4f1),_0x58ed5e[_0x58ed5e[_0x228849(0x408)]=0x1771]=_0x228849(0x408),_0x58ed5e[_0x58ed5e[_0x228849(0x270)]=0x1b59]='APPLY_REJECT',_0x58ed5e[_0x58ed5e[_0x228849(0x3dc)]=0x1b5a]=_0x228849(0x3dc),_0x58ed5e[_0x58ed5e['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x228849(0x2c4),_0x58ed5e[_0x58ed5e[_0x228849(0x4bd)]=0x1b5c]=_0x228849(0x4bd),_0x58ed5e[_0x58ed5e[_0x228849(0x298)]=0x1f41]=_0x228849(0x298),_0x58ed5e[_0x58ed5e[_0x228849(0x227)]=0x2329]=_0x228849(0x227),_0x58ed5e[_0x58ed5e[_0x228849(0x3e5)]=0x232a]=_0x228849(0x3e5),_0x58ed5e[_0x58ed5e[_0x228849(0x4e4)]=0x232b]=_0x228849(0x4e4),_0x58ed5e[_0x58ed5e[_0x228849(0x139)]=0x232c]=_0x228849(0x139),_0x58ed5e[_0x58ed5e[_0x228849(0x362)]=0x232d]=_0x228849(0x362),_0x58ed5e[_0x58ed5e[_0x228849(0x12f)]=0x2711]=_0x228849(0x12f),_0x58ed5e[_0x58ed5e['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x228849(0x222),_0x58ed5e[_0x58ed5e['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x58ed5e))(_0x4a5019||{}),_0xf0e06f=(_0x51ea28=>(_0x51ea28[_0x51ea28[_0x228849(0x376)]=0x0]=_0x228849(0x376),_0x51ea28[_0x51ea28[_0x228849(0x138)]=0x1]='UNIVER_DOC',_0x51ea28[_0x51ea28[_0x228849(0x390)]=0x2]=_0x228849(0x390),_0x51ea28[_0x51ea28[_0x228849(0x35d)]=0x3]=_0x228849(0x35d),_0x51ea28[_0x51ea28[_0x228849(0x4a8)]=-0x1]=_0x228849(0x4a8),_0x51ea28))(_0xf0e06f||{}),_0x3d5b02=(_0x2f6da7=>(_0x2f6da7[_0x2f6da7[_0x228849(0x22f)]=0x0]=_0x228849(0x22f),_0x2f6da7[_0x2f6da7[_0x228849(0x483)]=0x1]='HELLO',_0x2f6da7[_0x2f6da7['JOIN']=0x2]='JOIN',_0x2f6da7[_0x2f6da7[_0x228849(0x228)]=0x3]=_0x228849(0x228),_0x2f6da7[_0x2f6da7[_0x228849(0x14a)]=0x4]=_0x228849(0x14a),_0x2f6da7[_0x2f6da7[_0x228849(0x4a6)]=0x5]=_0x228849(0x4a6),_0x2f6da7[_0x2f6da7[_0x228849(0x290)]=0x6]='RECV',_0x2f6da7[_0x2f6da7[_0x228849(0x4a8)]=-0x1]='UNRECOGNIZED',_0x2f6da7))(_0x3d5b02||{}),_0x2e25ef=(_0x140195=>(_0x140195[_0x140195[_0x228849(0x16d)]=0x0]=_0x228849(0x16d),_0x140195[_0x140195['OK']=0x1]='OK',_0x140195[_0x140195[_0x228849(0x18e)]=0x2]=_0x228849(0x18e),_0x140195[_0x140195[_0x228849(0x4a8)]=-0x1]=_0x228849(0x4a8),_0x140195))(_0x2e25ef||{}),_0x239318=Object[_0x228849(0x1fc)],_0x5898eb=Object[_0x228849(0x1b4)],_0x595c27=(_0x252177,_0xa99a7f,_0x4e200f,_0x352a93)=>{const _0x106e83=_0x228849;for(var _0x1e0cf9=_0x352a93>0x1?void 0x0:_0x352a93?_0x5898eb(_0xa99a7f,_0x4e200f):_0xa99a7f,_0x1db8f6=_0x252177[_0x106e83(0x430)]-0x1,_0x4f07e5;_0x1db8f6>=0x0;_0x1db8f6--)(_0x4f07e5=_0x252177[_0x1db8f6])&&(_0x1e0cf9=(_0x352a93?_0x4f07e5(_0xa99a7f,_0x4e200f,_0x1e0cf9):_0x4f07e5(_0x1e0cf9))||_0x1e0cf9);return _0x352a93&&_0x1e0cf9&&_0x239318(_0xa99a7f,_0x4e200f,_0x1e0cf9),_0x1e0cf9;},_0x80eb64=(_0x5475b8,_0x5d0595)=>(_0x30f1a6,_0x2d173c)=>_0x5d0595(_0x30f1a6,_0x2d173c,_0x5475b8);let _0x2f6a5d=class extends _0x226a7e[_0x228849(0x484)]{constructor(_0x453100,_0x359275){const _0x18fb58=_0x228849;super(),_0xaa2177(this,_0x18fb58(0x487),new Map()),(this[_0x18fb58(0x1ad)]=_0x453100,this[_0x18fb58(0x255)]=_0x359275,this['disposeWithMe'](_0x226a7e[_0x18fb58(0x14b)](_0x4e5e3f[_0x18fb58(0x3d0)](this[_0x18fb58(0x1ad)]['getTypeOfUnitDisposed$'](_0x226a7e[_0x18fb58(0x27d)]['UNIVER_SHEET'])['pipe'](_0x4d72f4[_0x18fb58(0x4db)](_0x3b5bf1=>_0x3b5bf1['getUnitId']())),this[_0x18fb58(0x1ad)]['getTypeOfUnitDisposed$'](_0x226a7e['UniverInstanceType'][_0x18fb58(0x138)])[_0x18fb58(0x450)](_0x4d72f4[_0x18fb58(0x4db)](_0x385ade=>_0x385ade[_0x18fb58(0x2d1)]())),this[_0x18fb58(0x1ad)]['getTypeOfUnitDisposed$'](_0x226a7e['UniverInstanceType'][_0x18fb58(0x35d)])['pipe'](_0x4d72f4[_0x18fb58(0x4db)](_0x2a942b=>_0x2a942b[_0x18fb58(0x2d1)]())))[_0x18fb58(0x22c)](_0x1475ca=>this['_removeRoom'](_0x1475ca)))));}[_0x228849(0x48e)](_0xda2110){const _0x17cc63=_0x228849;this[_0x17cc63(0x255)][_0x17cc63(0x48e)](_0xda2110);}['getCurrentUser'](){const _0x3626d9=_0x228849;return this[_0x3626d9(0x255)]['getCurrentUser']();}[_0x228849(0x433)](_0x5cab59,_0x5e1a55){const _0x5f1dd9=_0x228849;let _0x4eec17=this['_roomMembers'][_0x5f1dd9(0x24c)](_0x5cab59);_0x4eec17||(_0x4eec17=new _0x17f5da(),this['_roomMembers'][_0x5f1dd9(0x4f3)](_0x5cab59,_0x4eec17)),_0x4eec17[_0x5f1dd9(0x433)](_0x5e1a55);}[_0x228849(0x17f)](_0x35013e,_0x16cf0d){const _0x43c86e=_0x228849,_0x4b3263=this[_0x43c86e(0x487)][_0x43c86e(0x24c)](_0x35013e);_0x4b3263&&_0x4b3263[_0x43c86e(0x17f)](_0x16cf0d);}[_0x228849(0x220)](_0xaf1673){const _0x1320a0=_0x228849;return this[_0x1320a0(0x487)]['get'](_0xaf1673);}['getMember'](_0x46d521,_0xece04e){const _0x1982db=_0x228849,_0x56dd1a=this[_0x1982db(0x487)][_0x1982db(0x24c)](_0x46d521);if(_0x56dd1a)return _0x56dd1a[_0x1982db(0x250)](_0xece04e);}[_0x228849(0x342)](_0x29724e){const _0x23439d=_0x228849,_0x12f68f=this['_roomMembers'][_0x23439d(0x24c)](_0x29724e);_0x12f68f&&(_0x12f68f[_0x23439d(0x485)](),this[_0x23439d(0x487)]['delete'](_0x29724e));}[_0x228849(0x485)](){const _0x2705f5=_0x228849;this[_0x2705f5(0x487)][_0x2705f5(0x3ad)](_0x1a6da0=>_0x1a6da0[_0x2705f5(0x485)]()),this['_roomMembers']['clear']();}};_0x2f6a5d=_0x595c27([_0x80eb64(0x0,_0x226a7e['IUniverInstanceService']),_0x80eb64(0x1,_0x49bc9['Inject'](_0x226a7e['UserManagerService']))],_0x2f6a5d);class _0x17f5da extends _0x226a7e['Disposable']{constructor(){super(...arguments),_0xaa2177(this,'_members',new Map());}['dispose'](){this['_members']['clear']();}[_0x228849(0x433)](_0x467380){const _0x5ddf92=_0x228849;this[_0x5ddf92(0x146)][_0x5ddf92(0x4f3)](_0x467380[_0x5ddf92(0x25d)],_0x467380);}[_0x228849(0x17f)](_0x590042){const _0x337d42=_0x228849;this[_0x337d42(0x146)][_0x337d42(0x2b1)](_0x590042);}['getMember'](_0x4f2ac3){const _0x9b80f7=_0x228849;return this[_0x9b80f7(0x146)][_0x9b80f7(0x24c)](_0x4f2ac3);}}function _0x37fba9(_0x1181a4){const _0x39e601=_0x228849;var _0x46b0d8,_0x1f4ea0,_0x119603,_0x366a4f;const _0x5676a4=_0x1181a4['data'],_0x3dcf58=JSON['parse'](_0x5676a4);switch(_0x3dcf58[_0x39e601(0x27c)]){case _0x3d5b02[_0x39e601(0x4a6)]:case _0x3d5b02[_0x39e601(0x483)]:{const _0x434f2d=_0x3dcf58[_0x39e601(0x2ec)];return{..._0x3dcf58,'data':_0x434f2d,'cmd':_0x3dcf58[_0x39e601(0x27c)]};}case _0x3d5b02[_0x39e601(0x424)]:{const _0x4a53c8=_0x3dcf58[_0x39e601(0x311)];return{..._0x3dcf58,'data':_0x4a53c8,'cmd':_0x3dcf58[_0x39e601(0x27c)]};}case _0x3d5b02['RECV']:{const _0x1fb0d3=_0x3dcf58[_0x39e601(0x249)];switch(_0x1fb0d3['eventID']){case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x143)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':(_0x46b0d8=_0x1fb0d3[_0x39e601(0x399)])==null?void 0x0:_0x46b0d8['cs']},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x29c)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':(_0x1f4ea0=_0x1fb0d3[_0x39e601(0x449)])==null?void 0x0:_0x1f4ea0['cs']},'cmd':_0x3dcf58['cmd']};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x213)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':(_0x119603=_0x1fb0d3[_0x39e601(0x141)])==null?void 0x0:_0x119603['cs']},'cmd':_0x3dcf58['cmd']};case _0x1e8c75['CollaborationEvent'][_0x39e601(0x4df)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':(_0x366a4f=_0x1fb0d3[_0x39e601(0x4c7)])==null?void 0x0:_0x366a4f['cs']},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x253)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':_0x1fb0d3['updateCursorEvent']},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x177)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':_0x1fb0d3[_0x39e601(0x2a3)]},'cmd':_0x3dcf58['cmd']};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x42f)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':_0x1fb0d3[_0x39e601(0x4d8)]},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x455)]:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':_0x1fb0d3['liveShareNewHost']},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x417)]:case _0x1e8c75[_0x39e601(0x198)]['LIVESHARE_OPERATION']:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':_0x1fb0d3[_0x39e601(0x413)]},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)]['LIVESHARE_TERMINATE']:return{..._0x3dcf58,'data':{..._0x1fb0d3,'data':_0x1fb0d3['liveShareNewHost']},'cmd':_0x3dcf58[_0x39e601(0x27c)]};case _0x1e8c75[_0x39e601(0x198)][_0x39e601(0x37c)]:return{..._0x3dcf58,'data':_0x1fb0d3,'cmd':_0x3dcf58[_0x39e601(0x27c)]};default:return _0x3dcf58;}}default:return _0x3dcf58;}}function _0x543e7b(_0xc86e32){const _0x580aa7=_0x228849;switch(_0xc86e32[_0x580aa7(0x27c)]){case _0x3d5b02['HEARTBEAT']:case _0x3d5b02['HELLO']:return JSON[_0x580aa7(0x1d4)]({'cmd':_0xc86e32[_0x580aa7(0x27c)],'routeKey':_0xc86e32['routeKey']});case _0x3d5b02[_0x580aa7(0x14a)]:{let _0x53c6e2;switch(_0xc86e32[_0x580aa7(0x1f8)]['eventID']){case _0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x253)]:{_0x53c6e2={'eventID':_0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x253)],'updateCursorEvent':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75[_0x580aa7(0x198)]['USERS_LEAVE']:{_0x53c6e2={'eventID':_0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x42f)],'leaveEvent':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75['CollaborationEvent'][_0x580aa7(0x177)]:{_0x53c6e2={'eventID':_0x1e8c75[_0x580aa7(0x198)]['USERS_ENTER'],'joinEvent':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x455)]:{_0x53c6e2={'eventID':_0x1e8c75['CollaborationEvent'][_0x580aa7(0x455)],'liveShareNewHost':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75[_0x580aa7(0x198)]['LIVESHARE_OPERATION']:{_0x53c6e2={'eventID':_0x1e8c75['CollaborationEvent'][_0x580aa7(0x312)],'liveShareOperation':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x2cf)]:{_0x53c6e2={'eventID':_0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x2cf)],'liveShareTerminate':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75[_0x580aa7(0x198)][_0x580aa7(0x2d8)]:{_0x53c6e2={'eventID':_0x1e8c75['CollaborationEvent'][_0x580aa7(0x2d8)],'liveShareRequestHost':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x1f8)]};break;}case _0x1e8c75[_0x580aa7(0x198)]['LIVESHARE_FETCH_OPERATIONS']:{_0x53c6e2={'eventID':_0x1e8c75['CollaborationEvent'][_0x580aa7(0x417)]};break;}default:_0x53c6e2={'eventID':_0xc86e32[_0x580aa7(0x1f8)][_0x580aa7(0x325)]};}return JSON[_0x580aa7(0x1d4)]({'cmd':_0xc86e32[_0x580aa7(0x27c)],'routeKey':_0xc86e32[_0x580aa7(0x3e2)],'collaMsg':_0x53c6e2});}case _0x3d5b02['JOIN']:return JSON[_0x580aa7(0x1d4)]({'cmd':_0xc86e32[_0x580aa7(0x27c)],'routeKey':_0xc86e32[_0x580aa7(0x3e2)],'joinReq':_0xc86e32['data']});case _0x3d5b02[_0x580aa7(0x228)]:return JSON['stringify']({'cmd':_0xc86e32[_0x580aa7(0x27c)],'routeKey':_0xc86e32[_0x580aa7(0x3e2)],'leaveReq':_0xc86e32[_0x580aa7(0x1f8)]});default:throw new Error(_0x580aa7(0x3fa));}}var _0x39c973=Object['defineProperty'],_0x3df336=Object[_0x228849(0x1b4)],_0x5e3f76=(_0x264933,_0x4504ae,_0x10b028,_0x4d9bd9)=>{for(var _0x4cb445=_0x4d9bd9>0x1?void 0x0:_0x4d9bd9?_0x3df336(_0x4504ae,_0x10b028):_0x4504ae,_0x34529d=_0x264933['length']-0x1,_0x564b27;_0x34529d>=0x0;_0x34529d--)(_0x564b27=_0x264933[_0x34529d])&&(_0x4cb445=(_0x4d9bd9?_0x564b27(_0x4504ae,_0x10b028,_0x4cb445):_0x564b27(_0x4cb445))||_0x4cb445);return _0x4d9bd9&&_0x4cb445&&_0x39c973(_0x4504ae,_0x10b028,_0x4cb445),_0x4cb445;},_0x59d6ec=(_0x20144b,_0x2da1a2)=>(_0xd82da2,_0x1ca520)=>_0x2da1a2(_0xd82da2,_0x1ca520,_0x20144b);const _0x970e64=_0x49bc9[_0x228849(0x175)]('univer-pro.collaboration-client-socket-service');function _0x58f9a1(_0x41f4b3,_0x197aeb,_0xc06b37){const _0x2d01a4=_0x228849;return _0x41f4b3+'/'+_0x197aeb+'/unit/'+_0xc06b37+_0x2d01a4(0x4e2);}_0x431c6f[_0x228849(0x207)]=class{constructor(_0x3dd2e9,_0x36ef21,_0x5c2af1,_0x155c39,_0x54c644){const _0x50eb4c=_0x228849;this[_0x50eb4c(0x2db)]=_0x3dd2e9,this[_0x50eb4c(0x389)]=_0x36ef21,this[_0x50eb4c(0x12b)]=_0x5c2af1,this[_0x50eb4c(0x464)]=_0x155c39,this[_0x50eb4c(0x28e)]=_0x54c644;}[_0x228849(0x4c9)](_0x5dd9b2){const _0x217da6=_0x228849,_0x38f9d7=this[_0x217da6(0x389)]['createSocket'](_0x5dd9b2);if(!_0x38f9d7)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x119ea6=new _0x226a7e[(_0x217da6(0x4b3))](),_0x19576c=new _0x4e5e3f[(_0x217da6(0x4bc))]();_0x119ea6[_0x217da6(0x33d)](_0x226a7e[_0x217da6(0x14b)](_0x38f9d7[_0x217da6(0x1e7)][_0x217da6(0x22c)](_0x23823c=>_0x19576c[_0x217da6(0x488)](_0x23823c)))),_0x119ea6[_0x217da6(0x33d)](_0x226a7e[_0x217da6(0x14b)](()=>_0x19576c[_0x217da6(0x1dd)]()));const _0x1253eb=new _0x4e5e3f[(_0x217da6(0x4bc))]();_0x119ea6[_0x217da6(0x33d)](_0x226a7e['toDisposable'](_0x38f9d7['error$'][_0x217da6(0x22c)](_0x1a64b5=>_0x1253eb['next'](_0x1a64b5)))),_0x119ea6['add'](_0x226a7e[_0x217da6(0x14b)](()=>_0x1253eb[_0x217da6(0x1dd)]()));const _0x9cfd9e=new _0x4e5e3f[(_0x217da6(0x4bc))]();_0x119ea6[_0x217da6(0x33d)](_0x226a7e[_0x217da6(0x14b)](_0x38f9d7[_0x217da6(0x160)]['subscribe'](_0x5b5578=>{const _0x85ce79=_0x217da6,_0x2b44b2=_0x37fba9(_0x5b5578);_0x9cfd9e[_0x85ce79(0x488)](_0x2b44b2);}))),_0x119ea6[_0x217da6(0x33d)](_0x226a7e['toDisposable'](()=>_0x9cfd9e[_0x217da6(0x1dd)]()));const _0x330a24=()=>{const _0x409625=_0x217da6;_0x1253eb[_0x409625(0x488)](new Event(_0x409625(0x476))),_0x19576c[_0x409625(0x488)](new CloseEvent(_0x409625(0x476))),_0x30284c['close']();},_0x30284c={'memberID':'','close$':_0x19576c[_0x217da6(0x1fe)](),'error$':_0x1253eb[_0x217da6(0x1fe)](),'open$':_0x38f9d7[_0x217da6(0x24b)],'message$':_0x9cfd9e[_0x217da6(0x1fe)](),'send':_0x503705=>{const _0x2beeca=_0x217da6;if(_0x503705[_0x2beeca(0x27c)]===_0x3d5b02[_0x2beeca(0x14a)]){if(_0x503705[_0x2beeca(0x1f8)]['eventID']===_0x1e8c75['CollaborationEvent'][_0x2beeca(0x2b5)]){this[_0x2beeca(0x1f4)](_0x30284c,_0x503705[_0x2beeca(0x1f8)])['catch'](_0xbd6fcd=>{const _0x31ad66=_0x2beeca;this[_0x31ad66(0x464)][_0x31ad66(0x24e)](_0xbd6fcd),_0x330a24();});return;}if(_0x503705[_0x2beeca(0x1f8)]['eventID']===_0x1e8c75['CollaborationEvent']['FETCH_MISSING']){const _0x1440c6=_0x503705[_0x2beeca(0x1f8)];this['_fetchMissChangesets'](_0x1440c6)[_0x2beeca(0x1ae)](_0x44fbea=>{const _0x3e5836=_0x2beeca;_0x9cfd9e[_0x3e5836(0x488)]({'cmd':_0x3d5b02[_0x3e5836(0x290)],'code':_0x2e25ef['OK'],'routeKey':_0x1440c6[_0x3e5836(0x1f8)][_0x3e5836(0x340)],'routeType':'','data':{'eventID':_0x1e8c75[_0x3e5836(0x198)][_0x3e5836(0x34e)],'data':{'changesets':_0x44fbea}}});})[_0x2beeca(0x280)](_0x3e744c=>{const _0x634178=_0x2beeca;this['_logService'][_0x634178(0x24e)](_0x3e744c),_0x330a24();});return;}}_0x38f9d7['send'](_0x543e7b(_0x503705));},'close':()=>{const _0x382d17=_0x217da6;_0x38f9d7[_0x382d17(0x158)](),_0x119ea6[_0x382d17(0x485)]();}};return _0x30284c;}async[_0x228849(0x1f4)](_0x30b51c,_0x7d5a61){const _0x2248a4=_0x228849;var _0x2bce14;const {unitType:_0x19ed75,unitID:_0x103fef,changeset:_0x56934b}=_0x7d5a61[_0x2248a4(0x1f8)],_0x11b604={'unitID':_0x103fef,'memberID':_0x30b51c['memberID'],'type':_0x19ed75,'changeset':_0x1e8c75[_0x2248a4(0x15f)](_0x56934b)},_0x48dbea=_0x58f9a1((_0x2bce14=this[_0x2248a4(0x12b)][_0x2248a4(0x176)](_0xe983e2))!=null?_0x2bce14:_0x3c52f6,_0x19ed75,_0x103fef);try{await this[_0x2248a4(0x2db)][_0x2248a4(0x32b)](_0x48dbea,{'body':_0x11b604});}catch(_0x3e56ca){throw this['_logService']['error'](_0x2248a4(0x3aa),_0x2248a4(0x423)),_0x3e56ca;}}async['_fetchMissChangesets'](_0x174ebc){const _0x53b07e=_0x228849,{unitID:_0x1f4e09,from:_0x5b4342,to:_0x1ea1ee,unitType:_0x1c5496}=_0x174ebc[_0x53b07e(0x1f8)];return(await this[_0x53b07e(0x28e)][_0x53b07e(0x1c4)]({'metadata':void 0x0},{'unitID':_0x1f4e09,'type':_0x1c5496,'from':_0x5b4342,'to':_0x1ea1ee}))[_0x53b07e(0x2bf)];}},_0x431c6f[_0x228849(0x207)]=_0x5e3f76([_0x59d6ec(0x0,_0x49bc9['Inject'](_0x353e30[_0x228849(0x26c)])),_0x59d6ec(0x1,_0x49bc9[_0x228849(0x31c)](_0x353e30[_0x228849(0x174)])),_0x59d6ec(0x2,_0x226a7e['IConfigService']),_0x59d6ec(0x3,_0x226a7e['ILogService']),_0x59d6ec(0x4,_0x226a7e[_0x228849(0x2ff)])],_0x431c6f[_0x228849(0x207)]);var _0x448773=Object[_0x228849(0x1fc)],_0x1c616b=Object[_0x228849(0x1b4)],_0x47e7b2=(_0x4c841e,_0x4bcacd,_0x367d1e,_0x174a52)=>{const _0x155e93=_0x228849;for(var _0x2ffdd9=_0x174a52>0x1?void 0x0:_0x174a52?_0x1c616b(_0x4bcacd,_0x367d1e):_0x4bcacd,_0x2f8e03=_0x4c841e[_0x155e93(0x430)]-0x1,_0x4a6c11;_0x2f8e03>=0x0;_0x2f8e03--)(_0x4a6c11=_0x4c841e[_0x2f8e03])&&(_0x2ffdd9=(_0x174a52?_0x4a6c11(_0x4bcacd,_0x367d1e,_0x2ffdd9):_0x4a6c11(_0x2ffdd9))||_0x2ffdd9);return _0x174a52&&_0x2ffdd9&&_0x448773(_0x4bcacd,_0x367d1e,_0x2ffdd9),_0x2ffdd9;},_0x30544e=(_0xfe29f4,_0x42c9d2)=>(_0x1512ba,_0x38ef24)=>_0x42c9d2(_0x1512ba,_0x38ef24,_0xfe29f4),_0x2d0945=(_0x58d0b5=>(_0x58d0b5[_0x58d0b5[_0x228849(0x1f7)]=0x0]='IDLE',_0x58d0b5[_0x58d0b5[_0x228849(0x3fd)]=0x1]=_0x228849(0x3fd),_0x58d0b5[_0x58d0b5[_0x228849(0x26d)]=0x2]=_0x228849(0x26d),_0x58d0b5[_0x58d0b5['ONLINE']=0x3]=_0x228849(0x4cc),_0x58d0b5))(_0x2d0945||{});_0x431c6f[_0x228849(0x2d6)]=class extends _0x226a7e['RxDisposable']{constructor(_0x353dad,_0x28f5aa,_0x518948,_0xd96d30,_0x55e9e6,_0x3dc0d6,_0x13ece2,_0x542434){const _0x2e5fcc=_0x228849;super(),_0xaa2177(this,_0x2e5fcc(0x19b),new _0x4e5e3f['BehaviorSubject'](0x0)),_0xaa2177(this,_0x2e5fcc(0x2b7),this[_0x2e5fcc(0x19b)][_0x2e5fcc(0x1fe)]()),_0xaa2177(this,'_event$',new _0x4e5e3f[(_0x2e5fcc(0x4bc))]()),_0xaa2177(this,'event$',this['_event$'][_0x2e5fcc(0x1fe)]()),_0xaa2177(this,_0x2e5fcc(0x39b)),_0xaa2177(this,'_socketMessageSubscription'),_0xaa2177(this,_0x2e5fcc(0x2d3)),(this[_0x2e5fcc(0x3e1)]=_0x353dad,this[_0x2e5fcc(0x464)]=_0x518948,this['_beforeCloseService']=_0xd96d30,this[_0x2e5fcc(0x306)]=_0x55e9e6,this[_0x2e5fcc(0x12b)]=_0x3dc0d6,this[_0x2e5fcc(0x401)]=_0x13ece2,this[_0x2e5fcc(0x2c7)]=_0x542434,_0x28f5aa[_0x2e5fcc(0x450)](_0x4d72f4[_0x2e5fcc(0x2e4)](this['dispose$']))[_0x2e5fcc(0x22c)](_0x1d4e89=>{const _0x342df9=_0x2e5fcc;var _0x279d03;typeof _0x1d4e89>'u'||(this[_0x342df9(0x39b)]=_0x1d4e89,_0x1d4e89?(this[_0x342df9(0x3e7)](_0x1d4e89),this[_0x342df9(0x20d)]=this['_socket'][_0x342df9(0x160)][_0x342df9(0x22c)](_0x42188b=>{const _0x5ab5c1=_0x342df9;_0x42188b[_0x5ab5c1(0x3e2)]===this[_0x5ab5c1(0x3e1)]&&this[_0x5ab5c1(0x27b)](_0x42188b);})):(this[_0x342df9(0x19b)]['next'](0x2),(_0x279d03=this['_socketMessageSubscription'])==null||_0x279d03[_0x342df9(0x23d)](),this[_0x342df9(0x20d)]=null));}),this[_0x2e5fcc(0x231)](this['_beforeCloseService'][_0x2e5fcc(0x289)](()=>{const _0x32138d=_0x2e5fcc;var _0x546909;(_0x546909=this[_0x32138d(0x39b)])==null||_0x546909[_0x32138d(0x4ed)]({'cmd':_0x3d5b02[_0x32138d(0x228)],'data':{'roomID':this[_0x32138d(0x3e1)]}});})));}get[_0x228849(0x396)](){const _0x3e5e82=_0x228849;return this[_0x3e5e82(0x19b)]['getValue']();}[_0x228849(0x2e1)](){const _0x1609b0=_0x228849;var _0x423b5d,_0x2cd990;return(_0x2cd990=(_0x423b5d=this[_0x1609b0(0x39b)])==null?void 0x0:_0x423b5d[_0x1609b0(0x25d)])!=null?_0x2cd990:null;}['dispose'](){const _0x466973=_0x228849;super[_0x466973(0x485)](),this['dispose$'][_0x466973(0x488)](),this[_0x466973(0x1ec)][_0x466973(0x1dd)]();}[_0x228849(0x27b)](_0x2032c8){const _0x4a8449=_0x228849;_0x2032c8[_0x4a8449(0x27c)]===_0x3d5b02['JOIN']?this['_onJoinRoomEvent'](_0x2032c8):_0x2032c8[_0x4a8449(0x27c)]===_0x3d5b02[_0x4a8449(0x290)]&&this[_0x4a8449(0x239)](_0x2032c8);}[_0x228849(0x3e7)](_0x5d9412){const _0xc7c4f1=_0x228849;this[_0xc7c4f1(0x19b)][_0xc7c4f1(0x488)](0x1),_0x5d9412[_0xc7c4f1(0x4ed)]({'cmd':_0x3d5b02[_0xc7c4f1(0x424)],'routeKey':this[_0xc7c4f1(0x3e1)],'routeType':'','data':{'rooms':[{'roomID':this[_0xc7c4f1(0x3e1)]}]}});}[_0x228849(0x2c6)](_0x43a12a){const _0x43dac1=_0x228849;var _0x132362;if(_0x43a12a['code']===_0x2e25ef[_0x43dac1(0x18e)]){this[_0x43dac1(0x306)][_0x43dac1(0x333)]({'type':_0x2d5606[_0x43dac1(0x481)][_0x43dac1(0x14e)],'content':this['_localeService']['t'](_0x43dac1(0x2d9))}),this[_0x43dac1(0x19b)][_0x43dac1(0x488)](0x2);return;}this[_0x43dac1(0x19b)][_0x43dac1(0x488)](0x3);const _0x4ef2e9=(_0x132362=_0x43a12a[_0x43dac1(0x1f8)][_0x43dac1(0x20c)][this[_0x43dac1(0x3e1)]])==null?void 0x0:_0x132362[_0x43dac1(0x269)];_0x4ef2e9&&_0x4ef2e9[_0x43dac1(0x3ad)](_0x42177a=>this[_0x43dac1(0x2c7)][_0x43dac1(0x433)](this[_0x43dac1(0x3e1)],_0x42177a));}[_0x228849(0x239)](_0x2a259b){const _0x1fa4f8=_0x228849;try{const _0x3bc9ca=_0x2a259b[_0x1fa4f8(0x1f8)];switch(_0x3bc9ca[_0x1fa4f8(0x325)]){case _0x1e8c75['CollaborationEvent']['USERS_ENTER']:this[_0x1fa4f8(0x337)](_0x3bc9ca),this[_0x1fa4f8(0x2a2)][_0x1fa4f8(0x488)](_0x3bc9ca);break;case _0x1e8c75[_0x1fa4f8(0x198)][_0x1fa4f8(0x42f)]:this[_0x1fa4f8(0x1da)](_0x3bc9ca),this['_event$']['next'](_0x3bc9ca);break;case _0x1e8c75[_0x1fa4f8(0x198)][_0x1fa4f8(0x29c)]:this[_0x1fa4f8(0x136)](),this[_0x1fa4f8(0x2a2)][_0x1fa4f8(0x488)](_0x3bc9ca);break;case _0x1e8c75[_0x1fa4f8(0x198)][_0x1fa4f8(0x37c)]:this[_0x1fa4f8(0x464)][_0x1fa4f8(0x24e)](_0x1fa4f8(0x3f1)+JSON['stringify'](_0x3bc9ca)),this[_0x1fa4f8(0x2a2)]['next'](_0x3bc9ca);break;default:this[_0x1fa4f8(0x2a2)][_0x1fa4f8(0x488)](_0x3bc9ca);}}catch(_0x4b0b07){this[_0x1fa4f8(0x464)][_0x1fa4f8(0x24e)](_0x4b0b07,_0x2a259b);}}[_0x228849(0x337)](_0x55dab4){const _0x3beb1b=_0x228849;this[_0x3beb1b(0x2c7)]['updateMember'](this[_0x3beb1b(0x3e1)],_0x55dab4[_0x3beb1b(0x1f8)]);}[_0x228849(0x1da)](_0x44b3d0){const _0x1b0a83=_0x228849;this['_memberService'][_0x1b0a83(0x17f)](this['_unitID'],_0x44b3d0[_0x1b0a83(0x1f8)][_0x1b0a83(0x25d)]);}async[_0x228849(0x4ed)](_0x56bfcd,_0x181f54){const _0x51cdfe=_0x228849;if(this[_0x51cdfe(0x396)]!==0x3||!this[_0x51cdfe(0x39b)])throw new Error(_0x51cdfe(0x15a));try{_0x56bfcd[_0x51cdfe(0x325)]===_0x1e8c75[_0x51cdfe(0x198)]['NEW_CHANGESETS']&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x51cdfe(0x39b)][_0x51cdfe(0x4ed)]({'cmd':_0x3d5b02[_0x51cdfe(0x14a)],'routeKey':_0x181f54,'routeType':'','data':_0x56bfcd});}catch(_0x3428db){this[_0x51cdfe(0x464)]['error'](_0x3428db);}}['_scheduleCollaborationTimeoutTimer'](){const _0x5a3abc=_0x228849;var _0x18723f;this[_0x5a3abc(0x2d3)]=window[_0x5a3abc(0x46a)](()=>{const _0x361875=_0x5a3abc;this[_0x361875(0x2d3)]=null,this[_0x361875(0x306)][_0x361875(0x333)]({'type':_0x2d5606[_0x361875(0x481)]['Error'],'content':this[_0x361875(0x401)]['t'](_0x361875(0x28c))});},(_0x18723f=this['_configService'][_0x5a3abc(0x176)](_0x2c7ffa))!=null?_0x18723f:0x2710);}[_0x228849(0x136)](){this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}},_0x431c6f['CollaborationSession']=_0x47e7b2([_0x30544e(0x2,_0x226a7e[_0x228849(0x212)]),_0x30544e(0x3,_0x15005b[_0x228849(0x4c2)]),_0x30544e(0x4,_0x15005b['IMessageService']),_0x30544e(0x5,_0x226a7e[_0x228849(0x26f)]),_0x30544e(0x6,_0x49bc9[_0x228849(0x31c)](_0x226a7e['LocaleService'])),_0x30544e(0x7,_0x49bc9[_0x228849(0x31c)](_0x2f6a5d))],_0x431c6f['CollaborationSession']),_0x431c6f['CollaborationSessionService']=class extends _0x226a7e[_0x228849(0x484)]{constructor(_0x44e410,_0x4aa2b0,_0x138b98,_0x5a0f35,_0x49cdf8,_0x17f301){const _0x417949=_0x228849;super(),_0xaa2177(this,'_socket$',new _0x4e5e3f[(_0x417949(0x2e7))](void 0x0)),_0xaa2177(this,_0x417949(0x1d0),new Map()),_0xaa2177(this,'_status$',new _0x4e5e3f['BehaviorSubject'](0x0)),_0xaa2177(this,'status$',this[_0x417949(0x3ee)][_0x417949(0x1fe)]()),_0xaa2177(this,_0x417949(0x1b7),!0x1),_0xaa2177(this,_0x417949(0x2be)),_0xaa2177(this,_0x417949(0x2cd)),_0xaa2177(this,_0x417949(0x1f1)),_0xaa2177(this,_0x417949(0x20f),0x0),(this[_0x417949(0x28b)]=_0x44e410,this[_0x417949(0x401)]=_0x4aa2b0,this[_0x417949(0x306)]=_0x138b98,this['_logService']=_0x5a0f35,this[_0x417949(0x12b)]=_0x49cdf8,this[_0x417949(0x3c3)]=_0x17f301);}get['_socket'](){const _0x2d1418=_0x228849;return this[_0x2d1418(0x36a)][_0x2d1418(0x181)]();}[_0x228849(0x485)](){const _0x409b1b=_0x228849;super['dispose'](),this[_0x409b1b(0x1d0)][_0x409b1b(0x3ad)](_0x438e8a=>_0x438e8a[_0x409b1b(0x485)]()),this[_0x409b1b(0x1d0)]['clear'](),this[_0x409b1b(0x3ee)][_0x409b1b(0x1dd)]();}async['requireSession'](_0x364513){const _0x7e05ae=_0x228849;if(this[_0x7e05ae(0x1d0)][_0x7e05ae(0x1b2)](_0x364513))return this[_0x7e05ae(0x1d0)][_0x7e05ae(0x24c)](_0x364513);this[_0x7e05ae(0x4b5)]();const _0x276be3=this['_injector']['createInstance'](_0x431c6f[_0x7e05ae(0x2d6)],_0x364513,this[_0x7e05ae(0x36a)][_0x7e05ae(0x1fe)]());return this[_0x7e05ae(0x1d0)]['set'](_0x364513,_0x276be3),_0x276be3;}['_createSocket'](){const _0x4f626e=_0x228849;var _0x219b58;const _0x4143bb=(_0x219b58=this[_0x4f626e(0x12b)][_0x4f626e(0x176)](_0x54323b))!=null?_0x219b58:_0x53cf5e;return this[_0x4f626e(0x3c3)][_0x4f626e(0x4c9)](_0x4143bb);}['_tryEnsureSocket'](){const _0xecc7cc=_0x228849;try{const _0x2fa52d=this[_0xecc7cc(0x472)]();if(_0x2fa52d){const _0x27a03b=_0x2fa52d['send'];_0x2fa52d[_0xecc7cc(0x4ed)]=_0x305ec0=>(this['_rescheduleHeartbeatEvent'](),_0x27a03b[_0xecc7cc(0x4eb)](_0x2fa52d,[_0x305ec0])),_0x2fa52d[_0xecc7cc(0x160)][_0xecc7cc(0x22c)](_0x125092=>this[_0xecc7cc(0x3b9)](_0x2fa52d,_0x125092)),_0x2fa52d[_0xecc7cc(0x22b)]['pipe'](_0x4d72f4[_0xecc7cc(0x1db)](0x1))[_0xecc7cc(0x22c)](_0x23239f=>this[_0xecc7cc(0x464)][_0xecc7cc(0x24e)](_0xecc7cc(0x19e),_0x23239f)),_0x2fa52d['open$'][_0xecc7cc(0x450)](_0x4d72f4[_0xecc7cc(0x1db)](0x1))[_0xecc7cc(0x22c)](()=>{const _0x52df8a=_0xecc7cc;this[_0x52df8a(0x22e)](_0x2fa52d);}),_0x2fa52d['close$'][_0xecc7cc(0x450)](_0x4d72f4[_0xecc7cc(0x1db)](0x1))[_0xecc7cc(0x22c)](_0x1e1773=>{const _0x31d687=_0xecc7cc;this[_0x31d687(0x464)]['debug'](_0x31d687(0x242),'socket\x20close',_0x1e1773),this[_0x31d687(0x3b0)]();});}}catch(_0x35a88b){this[_0xecc7cc(0x464)][_0xecc7cc(0x24e)](_0x35a88b),this['_onConnectionFailed']();}}[_0x228849(0x22e)](_0x5a2fcb){const _0xf0e5e=_0x228849;this['_logService'][_0xf0e5e(0x434)](_0xf0e5e(0x242),_0xf0e5e(0x2f6)),_0x5a2fcb['send']({'cmd':_0x3d5b02[_0xf0e5e(0x483)]}),this['_rescheduleHeartbeatEvent']();}[_0x228849(0x3b0)](){const _0x3358c5=_0x228849;var _0x33430d;this[_0x3358c5(0x3ee)]['next'](0x2),this[_0x3358c5(0x36a)][_0x3358c5(0x488)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer'](),this['_socketReady']=!0x1,this[_0x3358c5(0x20f)]<((_0x33430d=this[_0x3358c5(0x12b)][_0x3358c5(0x176)](_0x3dfce0))!=null?_0x33430d:0x3)?(this[_0x3358c5(0x2ef)](this[_0x3358c5(0x20f)]),this['_retryCount']+=0x1):this['_messageService'][_0x3358c5(0x333)]({'type':_0x2d5606['MessageType'][_0x3358c5(0x45b)],'content':this['_localeService']['t'](_0x3358c5(0x304))});}[_0x228849(0x2ef)](_0x28e772){const _0x4d500c=_0x228849;var _0x517859;const _0x3f0be6=((_0x517859=this[_0x4d500c(0x12b)]['getConfig'](_0x4c064c))!=null?_0x517859:0x4e20)*0x2**_0x28e772;this['_messageService'][_0x4d500c(0x333)]({'type':_0x2d5606[_0x4d500c(0x481)]['Warning'],'content':this[_0x4d500c(0x401)]['t'](_0x4d500c(0x3e9))}),this[_0x4d500c(0x1f1)]=setTimeout(()=>{const _0x512202=_0x4d500c;this[_0x512202(0x4b5)](),clearTimeout(this[_0x512202(0x1f1)]),this[_0x512202(0x1f1)]=null;},_0x3f0be6);}['_rescheduleHeartbeatEvent'](){const _0x34cd58=_0x228849;var _0xc7ae4;this['_clearHeartbeatTimer'](),this[_0x34cd58(0x2be)]=setTimeout(()=>this[_0x34cd58(0x3b7)](),(_0xc7ae4=this['_configService'][_0x34cd58(0x176)](_0x18051e))!=null?_0xc7ae4:0x7530);}['_sendHeartbeat'](){const _0x54b2eb=_0x228849;this[_0x54b2eb(0x39b)][_0x54b2eb(0x4ed)]({'cmd':_0x3d5b02[_0x54b2eb(0x4a6)]}),this['_waitForHeartbeatResponse']();}[_0x228849(0x3c4)](){const _0x5d64f8=_0x228849;var _0x51ebb2;this['_timeoutTimer']=setTimeout(()=>this[_0x5d64f8(0x3b0)](),(_0x51ebb2=this[_0x5d64f8(0x12b)][_0x5d64f8(0x176)](_0x2c7ffa))!=null?_0x51ebb2:0x2710);}[_0x228849(0x3b9)](_0x40a3b2,_0xc5a11d){const _0x3df058=_0x228849,{cmd:_0x660b9d}=_0xc5a11d;_0x660b9d===_0x3d5b02[_0x3df058(0x483)]&&!this[_0x3df058(0x1b7)]&&(_0x40a3b2[_0x3df058(0x25d)]=_0xc5a11d[_0x3df058(0x1f8)][_0x3df058(0x25d)],this['_socket$'][_0x3df058(0x488)](_0x40a3b2),this[_0x3df058(0x3ee)][_0x3df058(0x488)](0x3),this[_0x3df058(0x1b7)]=!0x0),_0x660b9d===_0x3d5b02[_0x3df058(0x4a6)]&&this[_0x3df058(0x38a)](),this[_0x3df058(0x37d)]();}[_0x228849(0x3f5)](){const _0x3c28f0=_0x228849;this[_0x3c28f0(0x2be)]!=null&&(clearTimeout(this[_0x3c28f0(0x2be)]),this['_sendHeartbeatTimer']=null);}[_0x228849(0x38a)](){const _0x49c8ff=_0x228849;this[_0x49c8ff(0x2cd)]!=null&&(clearTimeout(this[_0x49c8ff(0x2cd)]),this[_0x49c8ff(0x2cd)]=null);}},_0x431c6f[_0x228849(0x192)]=_0x47e7b2([_0x30544e(0x0,_0x49bc9[_0x228849(0x31c)](_0x49bc9['Injector'])),_0x30544e(0x1,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x355)])),_0x30544e(0x2,_0x15005b[_0x228849(0x4f8)]),_0x30544e(0x3,_0x226a7e[_0x228849(0x212)]),_0x30544e(0x4,_0x226a7e[_0x228849(0x26f)]),_0x30544e(0x5,_0x970e64)],_0x431c6f[_0x228849(0x192)]);var _0x55b5d1=Object['defineProperty'],_0x5a4fcb=Object[_0x228849(0x1b4)],_0x14dad1=(_0x1e0865,_0x62f70f,_0x3f7658,_0x5dc0b9)=>{for(var _0x5dd832=_0x5dc0b9>0x1?void 0x0:_0x5dc0b9?_0x5a4fcb(_0x62f70f,_0x3f7658):_0x62f70f,_0x10ef2b=_0x1e0865['length']-0x1,_0x467203;_0x10ef2b>=0x0;_0x10ef2b--)(_0x467203=_0x1e0865[_0x10ef2b])&&(_0x5dd832=(_0x5dc0b9?_0x467203(_0x62f70f,_0x3f7658,_0x5dd832):_0x467203(_0x5dd832))||_0x5dd832);return _0x5dc0b9&&_0x5dd832&&_0x55b5d1(_0x62f70f,_0x3f7658,_0x5dd832),_0x5dd832;},_0x5bb635=(_0x47cedc,_0x197f57)=>(_0x591666,_0x5245cf)=>_0x197f57(_0x591666,_0x5245cf,_0x47cedc);_0x431c6f[_0x228849(0x361)]=class extends _0x226a7e[_0x228849(0x484)]{constructor(_0x1456eb,_0x4eb3b7,_0x45f12b,_0x24d5c4,_0x5c823b){const _0x147bf1=_0x228849;super(),_0xaa2177(this,_0x147bf1(0x217),new Map()),_0xaa2177(this,_0x147bf1(0x1c9),new Map()),_0xaa2177(this,'_disabled',!0x1),(this[_0x147bf1(0x12b)]=_0x1456eb,this['_localStorageService']=_0x4eb3b7,this[_0x147bf1(0x384)]=_0x45f12b,this['_localeService']=_0x24d5c4,this[_0x147bf1(0x230)]=_0x5c823b,this[_0x147bf1(0x37a)]());}[_0x228849(0x486)](){const _0x1d84f6=_0x228849;this[_0x1d84f6(0x2c5)]=!0x0;}[_0x228849(0x2d4)](){const _0x379cd7=_0x228849;this[_0x379cd7(0x2c5)]=!0x1;}['dispose'](){const _0x128cf9=_0x228849;this['_exhaustSavingTask']()['then'](()=>super[_0x128cf9(0x485)]());}async[_0x228849(0x33c)](_0x46449f){const _0x7d8f44=_0x228849;return this[_0x7d8f44(0x2c5)]?null:this[_0x7d8f44(0x271)][_0x7d8f44(0x416)](_0x5429d1(_0x46449f));}async['saveOfflineData'](_0x101239,_0x57baaf){const _0x409dc0=_0x228849;return!!this[_0x409dc0(0x271)][_0x409dc0(0x4ca)](_0x101239,_0x57baaf);}[_0x228849(0x323)](_0x48fbbb,_0x428bfa,_0x24629f,_0x24f414){const _0x17f096=_0x228849,_0x4ae350=this[_0x17f096(0x230)][_0x17f096(0x45e)](_0x48fbbb);this[_0x17f096(0x217)]['set'](_0x48fbbb,{'unitID':_0x48fbbb,'type':_0x428bfa,'awaitingChangeset':_0x24629f,'mutations':_0x24f414,'rev':_0x4ae350}),this[_0x17f096(0x1c9)]['has'](_0x48fbbb)||this[_0x17f096(0x29b)](_0x48fbbb);}[_0x228849(0x29b)](_0x556a80){const _0x4efdc6=_0x228849,_0xd47ea5=this[_0x4efdc6(0x35f)]();_0xd47ea5===0x0?this[_0x4efdc6(0x16a)](_0x556a80):this[_0x4efdc6(0x1c9)][_0x4efdc6(0x4f3)](_0x556a80,setTimeout(()=>this[_0x4efdc6(0x16a)](_0x556a80),_0xd47ea5));}[_0x228849(0x35f)](){const _0x2c50cf=_0x228849;var _0x4d7123;return(_0x4d7123=this[_0x2c50cf(0x12b)]['getConfig'](_0x109348))!=null?_0x4d7123:0x3e8;}['_saveCache'](_0x171731){const _0x42b488=_0x228849,_0x30232f=this[_0x42b488(0x1c9)][_0x42b488(0x24c)](_0x171731);return _0x30232f!==void 0x0&&window[_0x42b488(0x2c9)](_0x30232f),this[_0x42b488(0x271)]['setItem'](_0x5429d1(_0x171731),this[_0x42b488(0x217)]['get'](_0x171731))[_0x42b488(0x1ae)](()=>this[_0x42b488(0x1c9)][_0x42b488(0x2b1)](_0x171731));}async[_0x228849(0x3a7)](){const _0x3eed20=_0x228849,_0x173279=[];this[_0x3eed20(0x1c9)][_0x3eed20(0x3ad)]((_0x3fb521,_0xbeceb5)=>{const _0x2d6a03=_0x3eed20;window['clearTimeout'](_0x3fb521),_0x173279[_0x2d6a03(0x4cb)](this[_0x2d6a03(0x16a)](_0xbeceb5)[_0x2d6a03(0x1ae)](()=>{const _0x5968c6=_0x2d6a03;this[_0x5968c6(0x1c9)][_0x5968c6(0x2b1)](_0xbeceb5);}));}),await Promise[_0x3eed20(0x456)](_0x173279);}[_0x228849(0x37a)](){const _0x4abe93=_0x228849;this['disposeWithMe'](this[_0x4abe93(0x384)][_0x4abe93(0x317)](()=>{const _0x58cb86=_0x4abe93;if(this[_0x58cb86(0x1c9)][_0x58cb86(0x3bb)])return this[_0x58cb86(0x401)]['t'](_0x58cb86(0x41f));}));}},_0x431c6f['LocalCacheService']=_0x14dad1([_0x5bb635(0x0,_0x226a7e['IConfigService']),_0x5bb635(0x1,_0x226a7e['ILocalStorageService']),_0x5bb635(0x2,_0x15005b[_0x228849(0x4c2)]),_0x5bb635(0x3,_0x49bc9[_0x228849(0x31c)](_0x226a7e['LocaleService'])),_0x5bb635(0x4,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)]))],_0x431c6f['LocalCacheService']);function _0x5429d1(_0x4d551e){const _0x42df8f=_0x228849;return _0x42df8f(0x283)+_0x4d551e;}const _0x53b064=_0x49bc9['createIdentifier'](_0x228849(0x2ed));var _0x46ab2b=(_0x97ce1b=>(_0x97ce1b[_0x97ce1b[_0x228849(0x2a9)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x97ce1b[_0x97ce1b['OTHER_CLIENTS_EDITING']=0x1]=_0x228849(0x243),_0x97ce1b))(_0x46ab2b||{});const _0x1eefa8=0x7530,_0xd8fae=_0x228849(0x334);class _0x5d66f4 extends _0x226a7e[_0x228849(0x484)]{constructor(){const _0x16a6b6=_0x228849;super(),_0xaa2177(this,_0x16a6b6(0x39e),_0x226a7e[_0x16a6b6(0x144)][_0x16a6b6(0x34b)]()),_0xaa2177(this,_0x16a6b6(0x388),new Set()),_0xaa2177(this,_0x16a6b6(0x1c7),new Map()),_0xaa2177(this,_0x16a6b6(0x1cd),null),_0xaa2177(this,_0x16a6b6(0x49c),new Map()),_0xaa2177(this,_0x16a6b6(0x16b),new Map()),this[_0x16a6b6(0x285)]();}[_0x228849(0x485)](){const _0xcb464=_0x228849;super[_0xcb464(0x485)](),this['_clearOtherTimers'][_0xcb464(0x3ad)]((_0x57c1eb,_0xcba5f2)=>this[_0xcb464(0x282)](_0xcba5f2)),this[_0xcb464(0x1cd)]&&window['clearInterval'](this[_0xcb464(0x1cd)]);}['getUnitStatus$'](_0x245aa4){const _0x4419d4=_0x228849;return this['_ensureSubject'](_0x245aa4)[_0x4419d4(0x450)](_0x4e5e3f[_0x4419d4(0x196)]());}[_0x228849(0x18f)](_0x4abfdb){const _0x4fe829=_0x228849;this[_0x4fe829(0x388)][_0x4fe829(0x3bb)]===0x0&&this[_0x4fe829(0x40a)](),this[_0x4fe829(0x388)]['add'](_0x4abfdb),this[_0x4fe829(0x226)]({'type':0x0,'memberID':this[_0x4fe829(0x39e)],'unitIDs':[_0x4abfdb],'isForwarded':!0x1});}[_0x228849(0x1e4)](_0x2ebfbe){const _0x1f14e3=_0x228849;this[_0x1f14e3(0x388)][_0x1f14e3(0x2b1)](_0x2ebfbe),this['_selfUnitIDs'][_0x1f14e3(0x3bb)]===0x0&&this[_0x1f14e3(0x1cd)]&&window[_0x1f14e3(0x3b8)](this[_0x1f14e3(0x1cd)]);}[_0x228849(0x285)](){const _0x546105=_0x228849;this[_0x546105(0x231)](_0x226a7e[_0x546105(0x14b)](_0x4e5e3f[_0x546105(0x324)](window,_0x546105(0x1af))[_0x546105(0x22c)](_0x373e1b=>{const _0x4b6246=_0x546105;if(_0x373e1b[_0x4b6246(0x170)]!==_0xd8fae||!_0x373e1b['newValue'])return;const _0x5e0447=JSON[_0x4b6246(0x1f9)](_0x373e1b[_0x4b6246(0x2f5)]);this['_handleEvent'](_0x5e0447);}))),window[_0x546105(0x266)](_0x546105(0x215),()=>this[_0x546105(0x226)]({'type':0x1,'memberID':this[_0x546105(0x39e)],'unitIDs':Array[_0x546105(0x41c)](this[_0x546105(0x388)])}));}[_0x228849(0x4c4)](_0x5f0bff){const _0x4330e1=_0x228849;switch(_0x5f0bff['type']){case 0x0:this[_0x4330e1(0x20e)](_0x5f0bff);break;case 0x1:this[_0x4330e1(0x2c8)](_0x5f0bff);break;case 0x2:this['_handleHeartbeatEvent'](_0x5f0bff);break;}}['_handleJoinEvent'](_0x28cb7e){const _0x103c5c=_0x228849,{unitIDs:_0x2cfc16,memberID:_0x59861b,isForwarded:_0x57ecc2}=_0x28cb7e;_0x2cfc16[_0x103c5c(0x3ad)](_0x380f7a=>{const _0x39839e=_0x103c5c;if(!_0x57ecc2&&this[_0x39839e(0x1c7)][_0x39839e(0x1b2)](_0x380f7a)&&this[_0x39839e(0x428)](_0x380f7a)['next'](0x1),!this[_0x39839e(0x1c7)][_0x39839e(0x1b2)](_0x380f7a)||!this[_0x39839e(0x1c7)][_0x39839e(0x24c)](_0x380f7a)[_0x39839e(0x1b2)](_0x59861b)){const _0x5f0d40=this[_0x39839e(0x1c7)][_0x39839e(0x24c)](_0x380f7a)||new Set();_0x5f0d40['add'](_0x59861b),this[_0x39839e(0x1c7)][_0x39839e(0x4f3)](_0x380f7a,_0x5f0d40),this['_scheduleClearOtherTimer'](_0x59861b);}}),_0x57ecc2||this[_0x103c5c(0x226)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x103c5c(0x388)]],'isForwarded':!0x0});}[_0x228849(0x321)](_0x3f2ca7){const _0x590acc=_0x228849;this[_0x590acc(0x282)](_0x3f2ca7);const _0x52eec8=window[_0x590acc(0x46a)](()=>{const _0x37768a=_0x590acc;this['_unitOnClients'][_0x37768a(0x3ad)](_0x22b565=>{const _0x19aa4e=_0x37768a;_0x22b565[_0x19aa4e(0x2b1)](_0x3f2ca7);});},_0x1eefa8*0x2);this[_0x590acc(0x49c)][_0x590acc(0x4f3)](_0x3f2ca7,_0x52eec8);}[_0x228849(0x282)](_0xa022b2){const _0x2528ac=_0x228849;if(this['_clearOtherTimers']['has'](_0xa022b2)){const _0x4fe091=this['_clearOtherTimers'][_0x2528ac(0x24c)](_0xa022b2);_0x4fe091&&window[_0x2528ac(0x2c9)](_0x4fe091),this[_0x2528ac(0x49c)][_0x2528ac(0x4f3)](_0xa022b2,null);}}[_0x228849(0x2c8)](_0x1c96d5){const _0x148fa7=_0x228849,{memberID:_0x350d15,unitIDs:_0x11ced8}=_0x1c96d5;_0x11ced8[_0x148fa7(0x3ad)](_0x320344=>{const _0x585916=_0x148fa7;var _0x23d5fe;const _0x1e31ef=this['_unitOnClients'][_0x585916(0x24c)](_0x320344);_0x1e31ef&&(_0x1e31ef[_0x585916(0x2b1)](_0x350d15),(_0x23d5fe=this['_ensureSubject'](_0x320344))==null||_0x23d5fe['next'](_0x1e31ef[_0x585916(0x3bb)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x350d15);}['_handleHeartbeatEvent'](_0x40ab8d){const _0x6aac71=_0x228849;this[_0x6aac71(0x321)](_0x40ab8d[_0x6aac71(0x25d)]);}[_0x228849(0x226)](_0x3a9731){const _0x44c912=_0x228849;localStorage[_0x44c912(0x4ca)](_0xd8fae,JSON[_0x44c912(0x1d4)](_0x3a9731));}[_0x228849(0x40a)](){const _0x41d2fc=_0x228849;this[_0x41d2fc(0x1cd)]=window[_0x41d2fc(0x4c6)](()=>{const _0xdbf3f0=_0x41d2fc;this[_0xdbf3f0(0x226)]({'type':0x2,'memberID':this[_0xdbf3f0(0x39e)]});},_0x1eefa8);}['_ensureSubject'](_0x3c3b81){const _0x51eff1=_0x228849;return this[_0x51eff1(0x16b)]['has'](_0x3c3b81)||this[_0x51eff1(0x16b)][_0x51eff1(0x4f3)](_0x3c3b81,new _0x4e5e3f[(_0x51eff1(0x2e7))](0x0)),this['_unitStatus'][_0x51eff1(0x24c)](_0x3c3b81);}}var _0x32fd2e=Object[_0x228849(0x1fc)],_0x288fea=Object[_0x228849(0x1b4)],_0x3f9188=(_0x4055aa,_0x2361cb,_0x6002a1,_0xf35d)=>{const _0xe58150=_0x228849;for(var _0x673332=_0xf35d>0x1?void 0x0:_0xf35d?_0x288fea(_0x2361cb,_0x6002a1):_0x2361cb,_0x4347f2=_0x4055aa[_0xe58150(0x430)]-0x1,_0x2cf49d;_0x4347f2>=0x0;_0x4347f2--)(_0x2cf49d=_0x4055aa[_0x4347f2])&&(_0x673332=(_0xf35d?_0x2cf49d(_0x2361cb,_0x6002a1,_0x673332):_0x2cf49d(_0x673332))||_0x673332);return _0xf35d&&_0x673332&&_0x32fd2e(_0x2361cb,_0x6002a1,_0x673332),_0x673332;},_0x1c3c0b=(_0x31e1ba,_0x1468a5)=>(_0x234faa,_0x130ad4)=>_0x1468a5(_0x234faa,_0x130ad4,_0x31e1ba);let _0x1f5fb3=class{constructor(_0x3ebc38,_0x553002){const _0x5cbca2=_0x228849;this[_0x5cbca2(0x28b)]=_0x3ebc38,this[_0x5cbca2(0x1b9)]=_0x553002;}[_0x228849(0x328)](_0x441013){const _0x17f7db=_0x228849;this['_transformUndoRedoStack'](_0x441013),this[_0x17f7db(0x48a)](_0x441013);}[_0x228849(0x440)](_0xfa0413){const _0xa838c=_0x228849,_0x55a478=this[_0xa838c(0x28b)][_0xa838c(0x24c)](_0x534040[_0xa838c(0x238)]),{redoCache:_0x15a11a}=_0x55a478[_0xa838c(0x150)]();if(_0x15a11a[_0xa838c(0x430)]===0x0)return _0xfa0413;let _0x5e6d0e=_0x226a7e[_0xa838c(0x144)][_0xa838c(0x473)](_0xfa0413['mutations'][0x0]);for(let _0xecbcde=0x0;_0xecbcde<_0x15a11a[_0xa838c(0x430)];_0xecbcde++){const _0x58ed71={'id':_0xa838c(0x15e),'params':{..._0x15a11a[_0xecbcde]}},_0x34b4c6=this[_0xa838c(0x1b9)][_0xa838c(0x278)](_0x5e6d0e,_0x58ed71,!0x1);if(_0x1e8c75[_0xa838c(0x499)](_0x34b4c6))throw _0x34b4c6[_0xa838c(0x24e)];_0x5e6d0e=_0x34b4c6[_0xa838c(0x44b)];}return{..._0x226a7e[_0xa838c(0x144)][_0xa838c(0x473)](_0xfa0413),'mutations':[_0x5e6d0e]};}[_0x228849(0x29f)](_0x1cfc18){const _0x46d1b2=_0x228849,_0x8d69e5=this['_injector'][_0x46d1b2(0x24c)](_0x534040[_0x46d1b2(0x238)]),{undoCache:_0x342091,redoCache:_0x4be1a7}=_0x8d69e5[_0x46d1b2(0x150)]();if(_0x342091[_0x46d1b2(0x430)]===0x0||_0x4be1a7['length']===0x0)return;const _0x293e69=[],_0xa74c3=[];let _0x1726b1=_0x226a7e[_0x46d1b2(0x144)]['deepClone'](_0x1cfc18[_0x46d1b2(0x357)][0x0]),_0x4e317e=_0x226a7e[_0x46d1b2(0x144)]['deepClone'](_0x1cfc18[_0x46d1b2(0x357)][0x0]);for(let _0x5f06a4=_0x342091[_0x46d1b2(0x430)]-0x1;_0x5f06a4>=0x0;_0x5f06a4--){const _0x20ae91={'id':_0x46d1b2(0x15e),'params':{..._0x342091[_0x5f06a4]}},_0x5b267e={'id':_0x46d1b2(0x15e),'params':{..._0x4be1a7[_0x5f06a4]}},_0x25713d=this[_0x46d1b2(0x1b9)][_0x46d1b2(0x278)](_0x1726b1,_0x20ae91,!0x1),_0x5a719e=this[_0x46d1b2(0x1b9)][_0x46d1b2(0x278)](_0x4e317e,_0x5b267e,!0x1);if(_0x1e8c75[_0x46d1b2(0x499)](_0x25713d))throw _0x25713d[_0x46d1b2(0x24e)];if(_0x1e8c75[_0x46d1b2(0x499)](_0x5a719e))throw _0x5a719e[_0x46d1b2(0x24e)];_0x293e69['unshift'](_0x25713d['m2Prime'][_0x46d1b2(0x2f4)]),_0xa74c3[_0x46d1b2(0x47a)](_0x5a719e[_0x46d1b2(0x260)][_0x46d1b2(0x2f4)]),_0x1726b1=_0x25713d[_0x46d1b2(0x44b)],_0x4e317e=_0x5a719e[_0x46d1b2(0x44b)];}_0x8d69e5[_0x46d1b2(0x48b)]({'undoCache':_0x293e69,'redoCache':_0xa74c3});}[_0x228849(0x48a)](_0x4c7888){const _0x57077e=_0x228849,_0x27b03b=this['_injector'][_0x57077e(0x24c)](_0x534040[_0x57077e(0x238)]),_0x38f94d=_0x27b03b[_0x57077e(0x345)]();if(_0x38f94d==null)return;const _0x1ad0b7=[{'id':_0x57077e(0x15e),'params':{'unitId':_0x4c7888[_0x57077e(0x340)],'actions':null,'textRanges':[_0x38f94d]}}],_0x41450e=this[_0x57077e(0x1b9)][_0x57077e(0x2dd)](_0x4c7888,_0x1ad0b7);if(!_0x1e8c75['isTransformMutationsWithChangesetSuccess'](_0x41450e))throw _0x41450e[_0x57077e(0x24e)];const _0x19d0fe=_0x41450e[_0x57077e(0x260)][0x0]['params']['textRanges'];Array[_0x57077e(0x441)](_0x19d0fe)&&_0x19d0fe[_0x57077e(0x430)]&&_0x27b03b['setActiveRange'](_0x19d0fe[0x0]);}};_0x1f5fb3=_0x3f9188([_0x1c3c0b(0x0,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x1c3c0b(0x1,_0x1e8c75[_0x228849(0x184)])],_0x1f5fb3);var _0x4a819e=Object[_0x228849(0x1fc)],_0x2dcf53=Object[_0x228849(0x1b4)],_0x465daf=(_0x4f0ecc,_0xae0fbb,_0x4ca48b,_0x10c007)=>{for(var _0x4b7ba9=_0x10c007>0x1?void 0x0:_0x10c007?_0x2dcf53(_0xae0fbb,_0x4ca48b):_0xae0fbb,_0xd77cac=_0x4f0ecc['length']-0x1,_0x167312;_0xd77cac>=0x0;_0xd77cac--)(_0x167312=_0x4f0ecc[_0xd77cac])&&(_0x4b7ba9=(_0x10c007?_0x167312(_0xae0fbb,_0x4ca48b,_0x4b7ba9):_0x167312(_0x4b7ba9))||_0x4b7ba9);return _0x10c007&&_0x4b7ba9&&_0x4a819e(_0xae0fbb,_0x4ca48b,_0x4b7ba9),_0x4b7ba9;},_0x1b760=(_0x35cbaf,_0x45f08d)=>(_0x475093,_0x1429e0)=>_0x45f08d(_0x475093,_0x1429e0,_0x35cbaf);let _0x35da09=class{constructor(_0x221f89,_0xaefbc4){const _0x5d73e8=_0x228849;this['_injector']=_0x221f89,this[_0x5d73e8(0x1b9)]=_0xaefbc4;}[_0x228849(0x23c)](_0x2ba8bd){const _0x1f7900=_0x228849;var _0x1d03fc;const _0x44a455=this[_0x1f7900(0x28b)][_0x1f7900(0x24c)](_0x534040['TextSelectionManagerService']),_0x364300=(_0x1d03fc=_0x44a455['getSelections']())!=null?_0x1d03fc:[],_0x3da2a1=_0x364300==null?void 0x0:_0x364300['map'](_0x534040[_0x1f7900(0x446)]);if(_0x3da2a1[_0x1f7900(0x430)]===0x0)return;const _0x1acd29=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2ba8bd[_0x1f7900(0x340)],'actions':null,'textRanges':_0x3da2a1}}],_0x5135ab=this[_0x1f7900(0x1b9)][_0x1f7900(0x2dd)](_0x2ba8bd,_0x1acd29);if(!_0x1e8c75[_0x1f7900(0x4f6)](_0x5135ab))throw _0x5135ab[_0x1f7900(0x24e)];const _0x3ee0af=_0x5135ab['m2Prime'][0x0][_0x1f7900(0x2f4)][_0x1f7900(0x47f)];Array['isArray'](_0x3ee0af)&&_0x3ee0af[_0x1f7900(0x430)]&&_0x44a455[_0x1f7900(0x2b4)](_0x3ee0af,!0x1);}};_0x35da09=_0x465daf([_0x1b760(0x0,_0x49bc9[_0x228849(0x31c)](_0x49bc9['Injector'])),_0x1b760(0x1,_0x1e8c75['ITransformService'])],_0x35da09);function _0x26d119(_0x42ca8e){const _0x4dd53d=_0x228849;let _0x111409='';for(const _0x3a43da of _0x42ca8e){const {startOffset:_0x5dbf8a,endOffset:_0x5e589d,isActive:_0x3bd28f}=_0x3a43da;_0x111409[_0x4dd53d(0x430)]&&(_0x111409+=','),_0x111409+=_0x5dbf8a+':'+_0x5e589d+':'+(_0x3bd28f?'1':'0');}return _0x111409;}function _0x500cfa(_0x4e1bd8){const _0xca9ff2=_0x228849,_0x5b710c=_0x4e1bd8['split'](','),_0x271912=[];for(const _0x4a6807 of _0x5b710c){const [_0x1dfe7c,_0x22e7a6,_0x2785f8]=_0x4a6807[_0xca9ff2(0x457)](':');_0x271912[_0xca9ff2(0x4cb)]({'startOffset':Number(_0x1dfe7c),'endOffset':Number(_0x22e7a6),'collapsed':_0x1dfe7c===_0x22e7a6,'isActive':_0x2785f8==='1'});}return _0x271912[_0xca9ff2(0x369)](_0x228998=>_0x228998[_0xca9ff2(0x2cc)])||(_0x271912[0x0][_0xca9ff2(0x2cc)]=!0x0),_0x271912;}class _0x372338 extends _0x226a7e[_0x228849(0x2ac)]{constructor(){const _0x3c068c=_0x228849;super(...arguments),_0xaa2177(this,_0x3c068c(0x4b1),new _0x4e5e3f[(_0x3c068c(0x2e7))](null)),_0xaa2177(this,'collabCursorState$',this[_0x3c068c(0x4b1)][_0x3c068c(0x1fe)]());}[_0x228849(0x48d)](_0x325257){const _0x22e2fc=_0x228849,{unitID:_0x5edd85,memberID:_0x3dd469,textRanges:_0x1a8fd9}=_0x325257,_0x176ef9=_0x26d119(_0x1a8fd9),_0x8a81f6={'unitID':_0x5edd85,'memberID':_0x3dd469,'selection':_0x176ef9};this[_0x22e2fc(0x4b1)][_0x22e2fc(0x488)](_0x8a81f6);}}var _0x396ed7=Object[_0x228849(0x1fc)],_0x362520=Object[_0x228849(0x1b4)],_0x432c74=(_0x543a09,_0x1abe42,_0x24acd8,_0x479441)=>{const _0x170c34=_0x228849;for(var _0x1c043f=_0x479441>0x1?void 0x0:_0x479441?_0x362520(_0x1abe42,_0x24acd8):_0x1abe42,_0x5bbd84=_0x543a09[_0x170c34(0x430)]-0x1,_0x5c7a23;_0x5bbd84>=0x0;_0x5bbd84--)(_0x5c7a23=_0x543a09[_0x5bbd84])&&(_0x1c043f=(_0x479441?_0x5c7a23(_0x1abe42,_0x24acd8,_0x1c043f):_0x5c7a23(_0x1c043f))||_0x1c043f);return _0x479441&&_0x1c043f&&_0x396ed7(_0x1abe42,_0x24acd8,_0x1c043f),_0x1c043f;},_0x46c381=(_0x3140c1,_0x43680b)=>(_0x421c45,_0x22cdcd)=>_0x43680b(_0x421c45,_0x22cdcd,_0x3140c1);let _0x362b05=class{constructor(_0x475c22,_0x536bc4){const _0x24774f=_0x228849;this[_0x24774f(0x28b)]=_0x475c22,this['_transformService']=_0x536bc4;}['transformSelections'](_0x2289a1){const _0x522c86=_0x228849;var _0x24761a,_0x2060ac,_0x385e6f,_0x5c7350;const _0x4aed9f=this[_0x522c86(0x28b)]['get'](_0x3acf4c[_0x522c86(0x35c)]),{pluginName:_0x4497a0,unitId:_0x2cc692,sheetId:_0x5adb56}=_0x4aed9f[_0x522c86(0x259)]()||{},_0x2caf72=(_0x24761a=_0x4aed9f[_0x522c86(0x2e0)]())!=null?_0x24761a:[];if(_0x2caf72[_0x522c86(0x430)]===0x0||!_0x4497a0||!_0x2cc692||!_0x5adb56)return;const _0x3e31be=[{'id':_0x3acf4c[_0x522c86(0x21b)]['id'],'params':{'unitId':_0x2cc692,'subUnitId':_0x5adb56,'pluginName':_0x4497a0,'selections':_0x226a7e[_0x522c86(0x144)][_0x522c86(0x473)](_0x2caf72)}}],_0x49826c=this[_0x522c86(0x1b9)][_0x522c86(0x2dd)](_0x2289a1,_0x3e31be);if(!_0x1e8c75[_0x522c86(0x4f6)](_0x49826c))throw _0x49826c['error'];const _0x18ef6d=(_0x5c7350=(_0x385e6f=(_0x2060ac=_0x49826c[_0x522c86(0x260)][0x0])==null?void 0x0:_0x2060ac[_0x522c86(0x2f4)])==null?void 0x0:_0x385e6f[_0x522c86(0x3a6)])!=null?_0x5c7350:_0x2caf72;Array[_0x522c86(0x441)](_0x18ef6d)&&_0x18ef6d[_0x522c86(0x430)]&&this['_injector']['get'](_0x226a7e[_0x522c86(0x48f)])[_0x522c86(0x12c)](_0x3acf4c[_0x522c86(0x21b)]['id'],{'unitId':_0x2cc692,'subUnitId':_0x5adb56,'pluginName':_0x4497a0,'selections':_0x18ef6d});}};_0x362b05=_0x432c74([_0x46c381(0x0,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x46c381(0x1,_0x1e8c75['ITransformService'])],_0x362b05);const _0x3756ee=new Set([_0x3acf4c['InsertSheetMutation']['id']]);function _0x2fa4c4(_0x22617b,_0x47be3e,_0x29ecdd,_0x4d5143,_0x987e1b){const _0x1cc24a=_0x228849;var _0x3132fc,_0x56389c,_0x353957,_0x33602c;const _0x100ea6=[];for(const _0x489882 of _0x22617b)if(_0x3756ee['has'](_0x489882['id'])){if(_0x100ea6[_0x1cc24a(0x430)]>0x0)break;_0x100ea6[_0x1cc24a(0x4cb)](_0x489882);break;}else _0x100ea6['push'](_0x489882);const _0x42dcaa=(_0x56389c=(_0x3132fc=_0x987e1b['getCurrentUser']())==null?void 0x0:_0x3132fc[_0x1cc24a(0x1c6)])!=null?_0x56389c:_0x1cc24a(0x1e8),_0x55415d=(_0x33602c=(_0x353957=_0x987e1b[_0x1cc24a(0x347)]())==null?void 0x0:_0x353957[_0x1cc24a(0x25d)])!=null?_0x33602c:'unknown';return{'changeset':{'unitID':_0x47be3e,'type':_0x1e8c75['mapDocumentTypeToUniverType'](_0x29ecdd[_0x1cc24a(0x156)](_0x47be3e)),'baseRev':_0x4d5143['getCurrentRevForDocument'](_0x47be3e),'revision':0x0,'userID':_0x42dcaa,'memberID':_0x55415d,'mutations':_0x100ea6},'pendingMutations':_0x22617b[_0x1cc24a(0x3c0)](_0x100ea6[_0x1cc24a(0x430)])};}function _0x22706f(_0x123f9c,_0x50d035,_0x20a6cd,_0x449d7b,_0x175ecc){const _0x30e621=_0x228849;var _0x4c3b1a,_0x5b8026,_0x3e5723,_0x2c1c7e;const _0x57c533=[_0x123f9c[_0x30e621(0x3df)]((_0x4cd5fb,_0x45fc56)=>{const _0x582772=_0x30e621;var _0x28d7ca;const {id:_0x122058}=_0x4cd5fb,{id:_0x55239a,type:_0x4b2681}=_0x45fc56,_0x2e6025=(_0x28d7ca=_0x4cd5fb[_0x582772(0x2f4)])!=null?_0x28d7ca:{'actions':null},_0x3d6749=_0x45fc56[_0x582772(0x2f4)];if(_0x122058&&_0x122058!==_0x55239a)throw new Error(_0x582772(0x41d)+_0x122058+_0x582772(0x4c8)+_0x55239a+'.');return{..._0x4cd5fb,'id':_0x55239a,'type':_0x4b2681,'params':{'unitId':_0x3d6749[_0x582772(0x3c5)],'textRanges':_0x3d6749[_0x582772(0x47f)],'actions':_0x226a7e['JSONX'][_0x582772(0x4de)](_0x2e6025[_0x582772(0x274)],_0x3d6749[_0x582772(0x274)])}};},{})],_0x276319=(_0x5b8026=(_0x4c3b1a=_0x175ecc[_0x30e621(0x347)]())==null?void 0x0:_0x4c3b1a[_0x30e621(0x1c6)])!=null?_0x5b8026:_0x30e621(0x1e8),_0x4b59f9=(_0x2c1c7e=(_0x3e5723=_0x175ecc[_0x30e621(0x347)]())==null?void 0x0:_0x3e5723[_0x30e621(0x25d)])!=null?_0x2c1c7e:_0x30e621(0x1e8);return{'changeset':{'unitID':_0x50d035,'type':_0x1e8c75['mapDocumentTypeToUniverType'](_0x20a6cd[_0x30e621(0x156)](_0x50d035)),'baseRev':_0x449d7b[_0x30e621(0x45e)](_0x50d035),'revision':0x0,'userID':_0x276319,'memberID':_0x4b59f9,'mutations':_0x57c533},'pendingMutations':[]};}var _0x238228=Object['defineProperty'],_0x4ed4b9=Object[_0x228849(0x1b4)],_0x2b9fdb=(_0x14b3ec,_0x3d0685,_0x2bb070,_0x546db2)=>{const _0x30267b=_0x228849;for(var _0x18fe4f=_0x546db2>0x1?void 0x0:_0x546db2?_0x4ed4b9(_0x3d0685,_0x2bb070):_0x3d0685,_0x24b366=_0x14b3ec[_0x30267b(0x430)]-0x1,_0x59a928;_0x24b366>=0x0;_0x24b366--)(_0x59a928=_0x14b3ec[_0x24b366])&&(_0x18fe4f=(_0x546db2?_0x59a928(_0x3d0685,_0x2bb070,_0x18fe4f):_0x59a928(_0x18fe4f))||_0x18fe4f);return _0x546db2&&_0x18fe4f&&_0x238228(_0x3d0685,_0x2bb070,_0x18fe4f),_0x18fe4f;},_0x3e73d5=(_0x3c8a3d,_0x570c5e)=>(_0x1b7611,_0x3215ab)=>_0x570c5e(_0x1b7611,_0x3215ab,_0x3c8a3d),_0x4577df=(_0x2b1ca8=>(_0x2b1ca8[_0x228849(0x4e8)]='not_collab',_0x2b1ca8[_0x228849(0x310)]=_0x228849(0x1c1),_0x2b1ca8[_0x228849(0x44f)]=_0x228849(0x350),_0x2b1ca8[_0x228849(0x1b3)]=_0x228849(0x13a),_0x2b1ca8[_0x228849(0x19c)]=_0x228849(0x4ba),_0x2b1ca8[_0x228849(0x3d5)]=_0x228849(0x218),_0x2b1ca8['CONFLICT']=_0x228849(0x1ce),_0x2b1ca8[_0x228849(0x26d)]=_0x228849(0x297),_0x2b1ca8))(_0x4577df||{});class _0x1abe13{constructor(_0x14703e,_0x48a461,_0x4a1bdd,_0x286d3b,_0x47d3f7,_0x180a77,_0x372f0d,_0x52a973,_0x13d7b3){const _0x5d2ee1=_0x228849;_0xaa2177(this,_0x5d2ee1(0x14f),null),_0xaa2177(this,_0x5d2ee1(0x454),[]),(this['unitID']=_0x14703e,this[_0x5d2ee1(0x354)]=_0x48a461,this['_handler']=_0x47d3f7,this['_commandService']=_0x180a77,this[_0x5d2ee1(0x1bd)]=_0x372f0d,this[_0x5d2ee1(0x230)]=_0x52a973,this[_0x5d2ee1(0x3ef)]=_0x13d7b3,this[_0x5d2ee1(0x14f)]=_0x4a1bdd,this[_0x5d2ee1(0x454)]=_0x286d3b);}['_checkMissing'](_0x43fe7f){const _0x31973a=_0x228849,_0x22304f=this['_revisionService'][_0x31973a(0x45e)](this[_0x31973a(0x340)]);return _0x43fe7f[_0x31973a(0x437)]>_0x22304f+0x1?(this[_0x31973a(0x3d2)][_0x31973a(0x2b0)]({'from':_0x22304f,'to':_0x43fe7f[_0x31973a(0x437)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x57cb5a){const _0x42093f=_0x228849;this[_0x42093f(0x1bd)]['transformUndoRedo'](this[_0x42093f(0x340)],_0x57cb5a);}['_transformSelections'](_0x4c4eb5){const _0x5079cc=_0x228849;var _0x10c064,_0x8c4b2a;(_0x8c4b2a=(_0x10c064=this[_0x5079cc(0x3d2)])[_0x5079cc(0x482)])==null||_0x8c4b2a['call'](_0x10c064,_0x4c4eb5);}[_0x228849(0x4ab)](_0x2eb867){const _0x381885=_0x228849;var _0x38321e,_0x582ac5;return(_0x582ac5=(_0x38321e=this[_0x381885(0x3d2)])['onTransformIME'])==null?void 0x0:_0x582ac5['call'](_0x38321e,_0x2eb867);}[_0x228849(0x4d1)](_0x1708e2){const _0x33179f=_0x228849;var _0x40aea5,_0x48fd91,_0x307bc3;return(_0x307bc3=(_0x48fd91=(_0x40aea5=this[_0x33179f(0x3d2)])[_0x33179f(0x3f2)])==null?void 0x0:_0x48fd91[_0x33179f(0x3d8)](_0x40aea5,_0x1708e2))!=null?_0x307bc3:_0x1708e2;}['_syncEditingCollabCursor'](_0x5cbd5f){const _0x2ad3ec=_0x228849;var _0xb50024,_0xd783c5;if(this[_0x2ad3ec(0x354)]===_0xf0e06f['UNIVER_DOC']){const {unitID:_0x2afb41,mutations:_0x5ded76,memberID:_0x5865a6}=_0x5cbd5f,_0x435a82=_0x5ded76[0x0][_0x2ad3ec(0x2f4)]['textRanges'];Array[_0x2ad3ec(0x441)](_0x435a82)&&_0x435a82[_0x2ad3ec(0x430)]>0x0&&((_0xd783c5=(_0xb50024=this[_0x2ad3ec(0x3d2)])[_0x2ad3ec(0x216)])==null||_0xd783c5[_0x2ad3ec(0x3d8)](_0xb50024,{'unitID':_0x2afb41,'memberID':_0x5865a6,'textRanges':_0x435a82}));}}[_0x228849(0x12a)](){const _0x40f81c=_0x228849;this[_0x40f81c(0x3ef)][_0x40f81c(0x323)](this[_0x40f81c(0x340)],this[_0x40f81c(0x354)],this[_0x40f81c(0x14f)],this[_0x40f81c(0x454)]);}[_0x228849(0x2e5)](){const _0x20434d=_0x228849;return this[_0x20434d(0x230)][_0x20434d(0x45e)](this['unitID']);}[_0x228849(0x4a7)](){const _0x1459a3=_0x228849;this[_0x1459a3(0x230)][_0x1459a3(0x2eb)](this[_0x1459a3(0x340)]);}[_0x228849(0x42c)](_0xf5b302){const _0x1ba692=_0x228849;var _0x47b104;const _0x834bca=this[_0x1ba692(0x4d1)](_0xf5b302),_0x323eda=_0x226a7e[_0x1ba692(0x20a)](_0x834bca['mutations'],this[_0x1ba692(0x4b6)],{'fromCollab':!0x0});if(!_0x323eda['result'])throw _0x323eda[_0x1ba692(0x24e)]instanceof Error?_0x323eda['error']:new Error((_0x47b104=_0x323eda[_0x1ba692(0x24e)])!=null?_0x47b104:'[CollaborationState]:\x20apply\x20error!');this[_0x1ba692(0x4ab)](_0x834bca),this[_0x1ba692(0x320)](_0xf5b302),this['_transformSelections'](_0x834bca),this[_0x1ba692(0x41e)](_0x834bca),this[_0x1ba692(0x4a7)]();}}let _0x3368ab=class extends _0x1abe13{constructor(_0x5e0a39,_0x5be39c,_0x138ed5,_0x380e50,_0x38b355,_0xb334fb,_0x5cc7a8,_0x20dd6e,_0x443f12){const _0x43a102=_0x228849;super(_0x5e0a39,_0x5be39c,null,[],_0x138ed5,_0x20dd6e,_0x5cc7a8,_0x380e50,_0x38b355),_0xaa2177(this,_0x43a102(0x418),_0x43a102(0x1c1)),(this[_0x43a102(0x28b)]=_0xb334fb,this[_0x43a102(0x464)]=_0x443f12);}[_0x228849(0x3dd)](_0x5b31a6){const _0x4dbf0c=_0x228849,_0x1b5f10=this[_0x4dbf0c(0x28b)][_0x4dbf0c(0x178)](_0x25c1eb,this[_0x4dbf0c(0x340)],this['type'],[_0x5b31a6],this[_0x4dbf0c(0x3d2)]);return _0x1b5f10['_schedule'](),_0x1b5f10[_0x4dbf0c(0x12a)](),_0x1b5f10;}['onRemoteChangeset'](_0x435654){const _0x3dd2bb=_0x228849;if(this[_0x3dd2bb(0x351)](_0x435654))return this[_0x3dd2bb(0x28b)]['createInstance'](_0x378adc,this[_0x3dd2bb(0x340)],this[_0x3dd2bb(0x354)],null,[],null,[_0x435654],this['_handler']);try{return this['_executeRemoteChangeset'](_0x435654),this;}catch(_0x368bdc){return this[_0x3dd2bb(0x464)][_0x3dd2bb(0x24e)](_0x3dd2bb(0x2c3),_0x368bdc),this;}}[_0x228849(0x25e)](){const _0x3c5fe9=_0x228849;throw new Error(_0x3c5fe9(0x2b6));}[_0x228849(0x4e1)](){const _0x2fb1de=_0x228849;throw new Error(_0x2fb1de(0x37b));}[_0x228849(0x147)](){const _0x340bf3=_0x228849;return this[_0x340bf3(0x28b)][_0x340bf3(0x178)](_0x424af3,this[_0x340bf3(0x340)],this[_0x340bf3(0x354)],null,[],this['_handler']);}['toggleOnline'](){return this;}[_0x228849(0x3c6)](){const _0x398117=_0x228849;throw new Error(_0x398117(0x33f));}};_0x3368ab=_0x2b9fdb([_0x3e73d5(0x3,_0x49bc9[_0x228849(0x31c)](_0x1e8c75['RevisionService'])),_0x3e73d5(0x4,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x361)])),_0x3e73d5(0x5,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x3e73d5(0x6,_0x226a7e[_0x228849(0x3af)]),_0x3e73d5(0x7,_0x226a7e[_0x228849(0x48f)]),_0x3e73d5(0x8,_0x226a7e['ILogService'])],_0x3368ab);let _0x25c1eb=class extends _0x1abe13{constructor(_0x311897,_0x706113,_0x20db0a,_0x7a80dd,_0x1349e7,_0x1c2f09,_0x407e45,_0x5db514,_0x41694c,_0x173b68,_0x1caab5,_0x1eacdc,_0x22f65f,_0x5266e8){const _0x1727d6=_0x228849;super(_0x311897,_0x706113,null,_0x20db0a,_0x7a80dd,_0x173b68,_0x5266e8,_0x1c2f09,_0x407e45),_0xaa2177(this,'status',_0x1727d6(0x350)),_0xaa2177(this,'_scheduleTimestamp',null),_0xaa2177(this,_0x1727d6(0x2e6),null),(this[_0x1727d6(0x28b)]=_0x1349e7,this[_0x1727d6(0x2c7)]=_0x5db514,this[_0x1727d6(0x464)]=_0x41694c,this['_configService']=_0x1caab5,this[_0x1727d6(0x1b9)]=_0x1eacdc,this['_univerInstanceService']=_0x22f65f);}['appendMutation'](_0x29920a){const _0xa803f3=_0x228849;return this[_0xa803f3(0x454)][_0xa803f3(0x4cb)](_0x29920a),this[_0xa803f3(0x12a)](),this;}[_0x228849(0x453)](_0x5a8fb1){const _0x3287ad=_0x228849;if(this[_0x3287ad(0x351)](_0x5a8fb1))return this['_clearScheduledTask'](),this[_0x3287ad(0x28b)][_0x3287ad(0x178)](_0x378adc,this[_0x3287ad(0x340)],this[_0x3287ad(0x354)],null,this['_pendingMutations'],null,[_0x5a8fb1],this[_0x3287ad(0x3d2)]);try{const _0x246a06=this['_transformService'][_0x3287ad(0x2dd)](_0x5a8fb1,this['_pendingMutations']);if(_0x1e8c75['isTransformMutationsWithChangesetSuccess'](_0x246a06)){const {c1Prime:_0x1d5dd2,m2Prime:_0x33ff83}=_0x246a06;this[_0x3287ad(0x42c)](_0x1d5dd2);const _0x3eca7c=this[_0x3287ad(0x28b)][_0x3287ad(0x178)](_0x25c1eb,this[_0x3287ad(0x340)],this[_0x3287ad(0x354)],_0x33ff83,this[_0x3287ad(0x3d2)]);return this[_0x3287ad(0x392)](),_0x3eca7c[_0x3287ad(0x3ff)](this['_scheduleTimestamp']?Math[_0x3287ad(0x4d7)](0x0,new Date()[_0x3287ad(0x4ce)]()-this['_scheduleTimestamp']):this[_0x3287ad(0x386)]()),_0x3eca7c;}throw _0x246a06[_0x3287ad(0x24e)];}catch(_0xe1d6df){return this[_0x3287ad(0x464)]['error'](_0xe1d6df),this[_0x3287ad(0x1a9)](!0x1);}}[_0x228849(0x25e)](){const _0x4fc6ea=_0x228849;throw new Error(_0x4fc6ea(0x398));}['onRemoteRej'](){const _0x4728e3=_0x228849;throw new Error(_0x4728e3(0x130));}['toggleOffline'](){const _0x22f4a2=_0x228849;return this[_0x22f4a2(0x392)](),this[_0x22f4a2(0x28b)][_0x22f4a2(0x178)](_0x424af3,this[_0x22f4a2(0x340)],this[_0x22f4a2(0x354)],null,this[_0x22f4a2(0x454)],this[_0x22f4a2(0x3d2)]);}[_0x228849(0x4ee)](){return this;}[_0x228849(0x3ff)](_0x584fc2){const _0x26e4f8=_0x228849;_0x584fc2=_0x584fc2!=null?_0x584fc2:this[_0x26e4f8(0x386)](),this[_0x26e4f8(0x25c)]=new Date()[_0x26e4f8(0x4ce)](),this[_0x26e4f8(0x2e6)]=setTimeout(()=>{const _0x39b717=_0x26e4f8;this[_0x39b717(0x392)]();let _0x48e86e=null;switch(this[_0x39b717(0x354)]){case _0xf0e06f[_0x39b717(0x390)]:{_0x48e86e=_0x2fa4c4(this[_0x39b717(0x454)],this[_0x39b717(0x340)],this['_univerInstanceService'],this[_0x39b717(0x230)],this[_0x39b717(0x2c7)]);break;}case _0xf0e06f[_0x39b717(0x138)]:{_0x48e86e=_0x22706f(this[_0x39b717(0x454)],this['unitID'],this[_0x39b717(0x1ad)],this[_0x39b717(0x230)],this[_0x39b717(0x2c7)]);break;}default:throw new Error(_0x39b717(0x448)+this[_0x39b717(0x354)]+_0x39b717(0x21d));}const {changeset:_0x55b543,pendingMutations:_0x4314ca}=_0x48e86e;this['_handler']['onSendChangeset'](_0x55b543);const _0x4c7787=_0x4314ca['length']?this['_injector'][_0x39b717(0x178)](_0x3f26f2,this['unitID'],this[_0x39b717(0x354)],_0x55b543,_0x4314ca,this[_0x39b717(0x3d2)]):this['_injector'][_0x39b717(0x178)](_0x190be0,this[_0x39b717(0x340)],this[_0x39b717(0x354)],_0x55b543,this[_0x39b717(0x3d2)]);_0x4c7787[_0x39b717(0x12a)](),this['_handler'][_0x39b717(0x162)](this,_0x4c7787);},_0x584fc2);}[_0x228849(0x386)](){const _0x5bb52f=_0x228849;var _0x41268d;return(_0x41268d=this[_0x5bb52f(0x12b)][_0x5bb52f(0x176)](_0x6128a1))!=null?_0x41268d:0x7d0;}[_0x228849(0x3c6)](){const _0x61fbfb=_0x228849;throw new Error(_0x61fbfb(0x4d5));}[_0x228849(0x392)](){const _0x1d160a=_0x228849;this[_0x1d160a(0x2e6)]!=null&&(clearTimeout(this[_0x1d160a(0x2e6)]),this[_0x1d160a(0x2e6)]=null);}[_0x228849(0x1a9)](_0x30aa26){const _0x1ef0f5=_0x228849;return this[_0x1ef0f5(0x392)](),this[_0x1ef0f5(0x28b)]['createInstance'](_0x493854,this[_0x1ef0f5(0x340)],this[_0x1ef0f5(0x354)],null,this[_0x1ef0f5(0x454)],this[_0x1ef0f5(0x3d2)],_0x30aa26);}};_0x25c1eb=_0x2b9fdb([_0x3e73d5(0x4,_0x49bc9['Inject'](_0x49bc9[_0x228849(0x36c)])),_0x3e73d5(0x5,_0x49bc9['Inject'](_0x1e8c75[_0x228849(0x366)])),_0x3e73d5(0x6,_0x49bc9[_0x228849(0x31c)](_0x431c6f['LocalCacheService'])),_0x3e73d5(0x7,_0x49bc9[_0x228849(0x31c)](_0x2f6a5d)),_0x3e73d5(0x8,_0x226a7e[_0x228849(0x212)]),_0x3e73d5(0x9,_0x226a7e[_0x228849(0x48f)]),_0x3e73d5(0xa,_0x226a7e[_0x228849(0x26f)]),_0x3e73d5(0xb,_0x1e8c75[_0x228849(0x184)]),_0x3e73d5(0xc,_0x226a7e[_0x228849(0x4aa)]),_0x3e73d5(0xd,_0x226a7e[_0x228849(0x3af)])],_0x25c1eb);let _0x190be0=class extends _0x1abe13{constructor(_0x45bcec,_0x285d6b,_0x286ba5,_0x13992c,_0x562064,_0x6c82cc,_0x5d0384,_0x17ba1f,_0x5be1f1,_0xa4f08e,_0x4c083b){const _0x25cd14=_0x228849;super(_0x45bcec,_0x285d6b,_0x286ba5,[],_0x13992c,_0x17ba1f,_0x4c083b,_0x6c82cc,_0x5d0384),_0xaa2177(this,_0x25cd14(0x418),_0x25cd14(0x13a)),(this['_injector']=_0x562064,this['_logService']=_0x5be1f1,this[_0x25cd14(0x1b9)]=_0xa4f08e);}[_0x228849(0x3dd)](_0x3c71f2){const _0x37e935=_0x228849,_0x5ac0c0=this[_0x37e935(0x28b)][_0x37e935(0x178)](_0x3f26f2,this[_0x37e935(0x340)],this[_0x37e935(0x354)],this[_0x37e935(0x14f)],[_0x3c71f2],this[_0x37e935(0x3d2)]);return _0x5ac0c0[_0x37e935(0x12a)](),_0x5ac0c0;}['onRemoteChangeset'](_0x349e80){const _0x299f81=_0x228849;if(this['_checkMissing'](_0x349e80))return this[_0x299f81(0x28b)][_0x299f81(0x178)](_0x378adc,this[_0x299f81(0x340)],this['type'],this[_0x299f81(0x14f)],[],null,[_0x349e80],this[_0x299f81(0x3d2)]);try{const _0x449958=this[_0x299f81(0x1b9)][_0x299f81(0x468)]([_0x349e80],[this[_0x299f81(0x14f)]],!0x1);if(_0x1e8c75[_0x299f81(0x30f)](_0x449958)){const {c1Prime:_0xd697f0,c2Prime:_0x15c2b5}=_0x449958;this[_0x299f81(0x42c)](_0xd697f0[0x0]),_0x15c2b5[0x0][_0x299f81(0x204)]=this[_0x299f81(0x2e5)]();const _0x467183=this[_0x299f81(0x28b)]['createInstance'](_0x190be0,this[_0x299f81(0x340)],this[_0x299f81(0x354)],_0x15c2b5[0x0],this['_handler']);return _0x467183[_0x299f81(0x12a)](),_0x467183;}return this[_0x299f81(0x1a9)](!0x1);}catch(_0x3ef993){return this[_0x299f81(0x464)][_0x299f81(0x24e)](_0x3ef993),this[_0x299f81(0x1a9)](!0x1);}}[_0x228849(0x25e)](_0x3d3b6f){const _0x59721a=_0x228849,_0x756c7e=this[_0x59721a(0x230)][_0x59721a(0x45e)](this[_0x59721a(0x340)]);if(_0x3d3b6f[_0x59721a(0x437)]<_0x756c7e-0x1)return this;if(this['_checkMissing'](_0x3d3b6f))return this[_0x59721a(0x28b)][_0x59721a(0x178)](_0x378adc,this[_0x59721a(0x340)],this[_0x59721a(0x354)],null,[],this['_awaitingChangeset'],[],this[_0x59721a(0x3d2)]);this[_0x59721a(0x4a7)]();const _0x3cd5de=this[_0x59721a(0x28b)][_0x59721a(0x178)](_0x3368ab,this['unitID'],this[_0x59721a(0x354)],this[_0x59721a(0x3d2)]);return _0x3cd5de['_updateLocalCache'](),_0x3cd5de;}['onRemoteRej'](_0x31d9f6){const _0x465bd3=_0x228849;return this['_onConflict'](!!(_0x31d9f6!=null&&_0x31d9f6[_0x465bd3(0x42b)]));}['toggleOffline'](){const _0x1520e1=_0x228849;return this[_0x1520e1(0x28b)][_0x1520e1(0x178)](_0x424af3,this['unitID'],this[_0x1520e1(0x354)],this[_0x1520e1(0x14f)],[],this[_0x1520e1(0x3d2)]);}[_0x228849(0x4ee)](){return this;}['resend'](){const _0x3f0959=_0x228849;this[_0x3f0959(0x3d2)][_0x3f0959(0x4d3)](this['_awaitingChangeset']);}[_0x228849(0x1a9)](_0x1735bf){const _0x6bd5f5=_0x228849;return this[_0x6bd5f5(0x28b)]['createInstance'](_0x493854,this[_0x6bd5f5(0x340)],this[_0x6bd5f5(0x354)],this['_awaitingChangeset'],[],this[_0x6bd5f5(0x3d2)],_0x1735bf);}};_0x190be0=_0x2b9fdb([_0x3e73d5(0x4,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x3e73d5(0x5,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x3e73d5(0x6,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x361)])),_0x3e73d5(0x7,_0x226a7e[_0x228849(0x48f)]),_0x3e73d5(0x8,_0x226a7e[_0x228849(0x212)]),_0x3e73d5(0x9,_0x1e8c75['ITransformService']),_0x3e73d5(0xa,_0x226a7e['IUndoRedoService'])],_0x190be0);let _0x3f26f2=class extends _0x1abe13{constructor(_0x36ab9f,_0x1666a5,_0x2ca1f8,_0x274071,_0x27dd62,_0x16e1b1,_0x22059c,_0x224bc2,_0x3712f1,_0x31ee9b,_0x5d2bdc,_0x2decef){const _0x3df97f=_0x228849;super(_0x36ab9f,_0x1666a5,_0x2ca1f8,_0x274071,_0x27dd62,_0x3712f1,_0x2decef,_0x22059c,_0x224bc2),_0xaa2177(this,_0x3df97f(0x418),_0x3df97f(0x4ba)),(this['_injector']=_0x16e1b1,this[_0x3df97f(0x464)]=_0x31ee9b,this[_0x3df97f(0x1b9)]=_0x5d2bdc);}[_0x228849(0x3dd)](_0x19a84f){const _0xec7d25=_0x228849;return this[_0xec7d25(0x454)][_0xec7d25(0x4cb)](_0x19a84f),this;}[_0x228849(0x453)](_0xdf0a5a){const _0x1b888b=_0x228849;if(this[_0x1b888b(0x351)](_0xdf0a5a))return this[_0x1b888b(0x28b)][_0x1b888b(0x178)](_0x378adc,this[_0x1b888b(0x340)],this[_0x1b888b(0x354)],this[_0x1b888b(0x14f)],this[_0x1b888b(0x454)],null,[_0xdf0a5a],this['_handler']);try{const _0x1499d0=this['_transformService'][_0x1b888b(0x468)]([_0xdf0a5a],[this['_awaitingChangeset']],!0x1);if(_0x1e8c75[_0x1b888b(0x30f)](_0x1499d0)){const {c1Prime:_0x39aa5c,c2Prime:_0xad01bd}=_0x1499d0,_0x75def8=this[_0x1b888b(0x1b9)][_0x1b888b(0x2dd)](_0x39aa5c[0x0],this[_0x1b888b(0x454)]);if(_0x1e8c75[_0x1b888b(0x4f6)](_0x75def8)){const {c1Prime:_0x2b9b48,m2Prime:_0x606f66}=_0x75def8;return this[_0x1b888b(0x42c)](_0x2b9b48),_0xad01bd[0x0]['baseRev']=this[_0x1b888b(0x2e5)](),this['_injector'][_0x1b888b(0x178)](_0x3f26f2,this[_0x1b888b(0x340)],this[_0x1b888b(0x354)],_0xad01bd[0x0],_0x606f66,this[_0x1b888b(0x3d2)]);}throw _0x75def8[_0x1b888b(0x24e)];}throw _0x1499d0['error'];}catch(_0x2fa5cc){return this[_0x1b888b(0x464)][_0x1b888b(0x24e)](_0x2fa5cc),this[_0x1b888b(0x1a9)](!0x1);}}[_0x228849(0x25e)](_0x50a69c){const _0x3f18cc=_0x228849;if(this[_0x3f18cc(0x351)](_0x50a69c))return this['_injector'][_0x3f18cc(0x178)](_0x378adc,this['unitID'],this[_0x3f18cc(0x354)],null,this[_0x3f18cc(0x454)],this[_0x3f18cc(0x14f)],[],this[_0x3f18cc(0x3d2)]);this[_0x3f18cc(0x4a7)]();const _0x5cea4c=this['_injector'][_0x3f18cc(0x178)](_0x25c1eb,this[_0x3f18cc(0x340)],this[_0x3f18cc(0x354)],this[_0x3f18cc(0x454)],this[_0x3f18cc(0x3d2)]);return _0x5cea4c['_schedule'](),_0x5cea4c[_0x3f18cc(0x12a)](),_0x5cea4c;}[_0x228849(0x4e1)](_0x41a898){const _0x42e002=_0x228849;return this[_0x42e002(0x1a9)](!!(_0x41a898!=null&&_0x41a898[_0x42e002(0x42b)]));}[_0x228849(0x147)](){const _0x32ee1d=_0x228849;return this[_0x32ee1d(0x28b)][_0x32ee1d(0x178)](_0x424af3,this[_0x32ee1d(0x340)],this[_0x32ee1d(0x354)],this[_0x32ee1d(0x14f)],this[_0x32ee1d(0x454)],this['_handler']);}[_0x228849(0x4ee)](){return this;}[_0x228849(0x3c6)](){const _0x36cfc7=_0x228849;this[_0x36cfc7(0x3d2)][_0x36cfc7(0x4d3)](this['_awaitingChangeset']);}[_0x228849(0x1a9)](_0x2893c6){const _0x10f92a=_0x228849;return this[_0x10f92a(0x28b)]['createInstance'](_0x493854,this[_0x10f92a(0x340)],this[_0x10f92a(0x354)],null,this[_0x10f92a(0x454)],this[_0x10f92a(0x3d2)],_0x2893c6);}};_0x3f26f2=_0x2b9fdb([_0x3e73d5(0x5,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x3e73d5(0x6,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x3e73d5(0x7,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x361)])),_0x3e73d5(0x8,_0x226a7e['ICommandService']),_0x3e73d5(0x9,_0x226a7e[_0x228849(0x212)]),_0x3e73d5(0xa,_0x1e8c75[_0x228849(0x184)]),_0x3e73d5(0xb,_0x226a7e[_0x228849(0x3af)])],_0x3f26f2);let _0x493854=class extends _0x1abe13{constructor(_0x5c2625,_0x5da533,_0x3203f6,_0x1447d3,_0x21be4b,_0x5db4f9=!0x1,_0x8940f0,_0x1efeb7,_0x3b9521,_0x2d39ab,_0x5f2117,_0x5a0f4b,_0x1d527e){const _0x1c7ce2=_0x228849;super(_0x5c2625,_0x5da533,_0x3203f6,_0x1447d3,_0x21be4b,_0x1efeb7,_0x3b9521,_0x5f2117,_0x2d39ab),_0xaa2177(this,'status','conflict'),(this[_0x1c7ce2(0x494)]=_0x5db4f9,this[_0x1c7ce2(0x1c8)]=_0x8940f0,this[_0x1c7ce2(0x401)]=_0x5a0f4b,this['_notificationService']=_0x1d527e,this[_0x1c7ce2(0x4e9)](),this[_0x1c7ce2(0x409)](),this[_0x1c7ce2(0x1e6)]());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x228849(0x25e)](){return this;}[_0x228849(0x4e1)](){return this;}['toggleOffline'](){return this;}[_0x228849(0x4ee)](){return this;}['resend'](){const _0x43b21e=_0x228849;throw new Error(_0x43b21e(0x40f));}[_0x228849(0x409)](){const _0x3063ab=_0x228849;this['_localCacheService'][_0x3063ab(0x323)](this[_0x3063ab(0x340)],this[_0x3063ab(0x354)],null,[]);}[_0x228849(0x4e9)](){const _0x3a89ad=_0x228849;this[_0x3a89ad(0x494)]?this[_0x3a89ad(0x36e)]['show']({'title':this[_0x3a89ad(0x401)]['t'](_0x3a89ad(0x163)),'content':this[_0x3a89ad(0x401)]['t'](_0x3a89ad(0x3f6)),'type':'error','duration':0x0}):this[_0x3a89ad(0x36e)][_0x3a89ad(0x333)]({'title':this[_0x3a89ad(0x401)]['t']('conflict.title'),'content':this[_0x3a89ad(0x401)]['t'](_0x3a89ad(0x171)),'type':_0x3a89ad(0x24e),'duration':0x0});}[_0x228849(0x1e6)](){const _0x5cc915=_0x228849;this[_0x5cc915(0x1c8)][_0x5cc915(0x202)](new _0x3acf4c[(_0x5cc915(0x39f))](this[_0x5cc915(0x340)])['id'],!0x1);}};_0x493854=_0x2b9fdb([_0x3e73d5(0x6,_0x49bc9['Inject'](_0x226a7e[_0x228849(0x182)])),_0x3e73d5(0x7,_0x226a7e[_0x228849(0x48f)]),_0x3e73d5(0x8,_0x226a7e[_0x228849(0x3af)]),_0x3e73d5(0x9,_0x49bc9['Inject'](_0x431c6f[_0x228849(0x361)])),_0x3e73d5(0xa,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x3e73d5(0xb,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x355)])),_0x3e73d5(0xc,_0x15005b[_0x228849(0x24f)])],_0x493854);let _0x424af3=class extends _0x1abe13{constructor(_0x4081b2,_0x3651b6,_0x5199d0,_0x856941,_0x49e2b2,_0x37743d,_0x589794,_0x2d794d,_0x27adb9,_0x5af585){const _0x800af1=_0x228849;super(_0x4081b2,_0x3651b6,_0x5199d0,_0x856941,_0x49e2b2,_0x27adb9,_0x5af585,_0x589794,_0x2d794d),_0xaa2177(this,_0x800af1(0x418),_0x800af1(0x297)),this[_0x800af1(0x28b)]=_0x37743d;}[_0x228849(0x3dd)](_0xeaeccd){const _0x27151c=_0x228849;return this[_0x27151c(0x454)]['push'](_0xeaeccd),this['_updateLocalCache'](),this;}[_0x228849(0x453)](_0x172825){const _0x14283d=_0x228849;throw new Error(_0x14283d(0x133));}['onRemoteAck'](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x228849(0x4e1)](){const _0x539794=_0x228849;throw new Error(_0x539794(0x429));}[_0x228849(0x147)](){return this;}[_0x228849(0x4ee)](){const _0x48e7fe=_0x228849,{_injector:_0x5ea738,_pendingMutations:_0x1d8272,_awaitingChangeset:_0x46be77,unitID:_0x575c76,_handler:_0x1f690f,type:_0xd69296}=this,_0x4d52cc=_0x21ef26(_0x5ea738,_0x575c76,_0xd69296,_0x46be77,_0x1d8272,_0x1f690f);return _0x4d52cc instanceof _0x25c1eb?_0x4d52cc[_0x48e7fe(0x3ff)]():(_0x4d52cc instanceof _0x3f26f2||_0x4d52cc instanceof _0x190be0)&&_0x4d52cc[_0x48e7fe(0x3c6)](),_0x4d52cc;}[_0x228849(0x3c6)](){const _0x1f877a=_0x228849;throw new Error(_0x1f877a(0x410));}};_0x424af3=_0x2b9fdb([_0x3e73d5(0x5,_0x49bc9['Inject'](_0x49bc9[_0x228849(0x36c)])),_0x3e73d5(0x6,_0x49bc9['Inject'](_0x1e8c75[_0x228849(0x366)])),_0x3e73d5(0x7,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x361)])),_0x3e73d5(0x8,_0x226a7e[_0x228849(0x48f)]),_0x3e73d5(0x9,_0x226a7e[_0x228849(0x3af)])],_0x424af3);let _0x378adc=class extends _0x1abe13{constructor(_0x5a32fb,_0x96944c,_0x3e3342,_0x3639d6,_0x1222b0,_0x437ee5,_0x45f310,_0x23119c,_0x1be064,_0x3ab87a,_0x18c22c,_0x1490af,_0xaf497f,_0x523ac4){const _0x1a3435=_0x228849;super(_0x5a32fb,_0x96944c,_0x3e3342,_0x3639d6,_0x45f310,_0x1490af,_0xaf497f,_0x1be064,_0x3ab87a),_0xaa2177(this,'status','fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x1222b0,this[_0x1a3435(0x478)]=_0x437ee5,this[_0x1a3435(0x28b)]=_0x23119c,this['_logService']=_0x18c22c,this[_0x1a3435(0x1b9)]=_0x523ac4);}[_0x228849(0x1e5)](_0x40fb6b){const _0x5319fb=_0x228849;try{const _0x32ea65=[..._0x40fb6b,...this[_0x5319fb(0x478)]],_0x17260e=[this[_0x5319fb(0x14f)]||this[_0x5319fb(0x42a)]]['filter'](_0x512a2b=>!!_0x512a2b);let _0x141f01,_0x396e07;if(_0x17260e[_0x5319fb(0x430)]){const _0x5361ad=this[_0x5319fb(0x1b9)][_0x5319fb(0x468)](_0x32ea65,_0x17260e,!0x1);if(!_0x1e8c75['isTransformChangesetsSuccess'](_0x5361ad))throw _0x5361ad[_0x5319fb(0x24e)];_0x141f01=_0x5361ad[_0x5319fb(0x356)],_0x396e07=_0x5361ad[_0x5319fb(0x381)];}else _0x141f01=_0x32ea65,_0x396e07=[];let _0x47e9e8=this[_0x5319fb(0x454)];_0x141f01[_0x5319fb(0x3ad)](_0x1eaaed=>{const _0x2d4e00=_0x5319fb;let _0x326d88;if(_0x47e9e8[_0x2d4e00(0x430)]){const _0x1421b5=this['_transformService']['transformMutationsWithChangeset'](_0x1eaaed,_0x47e9e8);if(!_0x1e8c75[_0x2d4e00(0x4f6)](_0x1421b5))throw _0x1421b5[_0x2d4e00(0x24e)];_0x326d88=_0x1421b5[_0x2d4e00(0x356)],_0x47e9e8=_0x1421b5[_0x2d4e00(0x260)];}else _0x326d88=_0x1eaaed;this[_0x2d4e00(0x42c)](_0x326d88);}),this[_0x5319fb(0x42a)]&&this['_incrementRevisionNumber'](),this[_0x5319fb(0x14f)]&&_0x396e07[_0x5319fb(0x430)]&&(_0x396e07[0x0][_0x5319fb(0x204)]=this[_0x5319fb(0x2e5)]());let _0x1ad957;if(this[_0x5319fb(0x14f)]&&_0x47e9e8['length']!==0x0)_0x1ad957=this[_0x5319fb(0x28b)][_0x5319fb(0x178)](_0x3f26f2,this[_0x5319fb(0x340)],this['type'],_0x396e07[0x0],_0x47e9e8,this['_handler']);else{if(this[_0x5319fb(0x14f)]&&_0x47e9e8[_0x5319fb(0x430)]===0x0)_0x396e07[0x0][_0x5319fb(0x204)]=this['_getCurrentRevision'](),_0x1ad957=this[_0x5319fb(0x28b)][_0x5319fb(0x178)](_0x190be0,this[_0x5319fb(0x340)],this['type'],_0x396e07[0x0],this[_0x5319fb(0x3d2)]);else{if(_0x47e9e8['length']!==0x0){const _0x3f242e=this[_0x5319fb(0x28b)][_0x5319fb(0x178)](_0x25c1eb,this['unitID'],this[_0x5319fb(0x354)],_0x47e9e8,this['_handler']);_0x3f242e[_0x5319fb(0x3ff)](),_0x1ad957=_0x3f242e;}else _0x1ad957=this['_injector'][_0x5319fb(0x178)](_0x3368ab,this[_0x5319fb(0x340)],this[_0x5319fb(0x354)],this[_0x5319fb(0x3d2)]);}}return _0x1ad957[_0x5319fb(0x12a)](),_0x1ad957;}catch(_0x1dfdce){return this['_logService'][_0x5319fb(0x24e)](_0x5319fb(0x29e),_0x5319fb(0x25f),_0x1dfdce),this[_0x5319fb(0x28b)][_0x5319fb(0x178)](_0x493854,this[_0x5319fb(0x340)],this[_0x5319fb(0x354)],this[_0x5319fb(0x14f)],this[_0x5319fb(0x454)],this[_0x5319fb(0x3d2)],!0x1);}}['resend'](){const _0x40ffbc=_0x228849;throw new Error(_0x40ffbc(0x155));}['appendMutation'](_0x260d79){const _0x9104e5=_0x228849;return this[_0x9104e5(0x454)][_0x9104e5(0x4cb)](_0x260d79),this;}[_0x228849(0x453)](_0x5a3b4d){const _0x58a4a9=_0x228849;return this[_0x58a4a9(0x478)]['push'](_0x5a3b4d),this;}[_0x228849(0x25e)](_0x3fd852){const _0x234370=_0x228849;if(this[_0x234370(0x14f)])return this[_0x234370(0x42a)]=this['_awaitingChangeset'],this[_0x234370(0x14f)]=null,this;throw new Error(_0x234370(0x1ea));}['onRemoteRej'](_0x7ecfba){return this['_onConflict'](!!(_0x7ecfba!=null&&_0x7ecfba['isPermissionRej']));}['toggleOffline'](){const _0x50eea8=_0x228849;return this[_0x50eea8(0x28b)]['createInstance'](_0x424af3,this[_0x50eea8(0x340)],this[_0x50eea8(0x354)],this[_0x50eea8(0x14f)],this['_pendingMutations'],this[_0x50eea8(0x3d2)]);}['toggleOnline'](){return this;}[_0x228849(0x1a9)](_0x5a8e93){const _0x8a1753=_0x228849;return this['_injector'][_0x8a1753(0x178)](_0x493854,this[_0x8a1753(0x340)],this[_0x8a1753(0x354)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x8a1753(0x3d2)],_0x5a8e93);}};_0x378adc=_0x2b9fdb([_0x3e73d5(0x7,_0x49bc9['Inject'](_0x49bc9[_0x228849(0x36c)])),_0x3e73d5(0x8,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x3e73d5(0x9,_0x49bc9[_0x228849(0x31c)](_0x431c6f['LocalCacheService'])),_0x3e73d5(0xa,_0x226a7e[_0x228849(0x212)]),_0x3e73d5(0xb,_0x226a7e[_0x228849(0x48f)]),_0x3e73d5(0xc,_0x226a7e[_0x228849(0x3af)]),_0x3e73d5(0xd,_0x1e8c75[_0x228849(0x184)])],_0x378adc);function _0x21ef26(_0x3f6c8d,_0x2cb18b,_0x59b81c,_0x43bd62,_0x2a78ad,_0x316559){const _0x5848c6=_0x228849;return _0x43bd62&&_0x2a78ad['length']?_0x3f6c8d[_0x5848c6(0x178)](_0x3f26f2,_0x2cb18b,_0x59b81c,_0x43bd62,_0x2a78ad,_0x316559):_0x43bd62?_0x3f6c8d[_0x5848c6(0x178)](_0x190be0,_0x2cb18b,_0x59b81c,_0x43bd62,_0x316559):_0x2a78ad[_0x5848c6(0x430)]?_0x3f6c8d[_0x5848c6(0x178)](_0x25c1eb,_0x2cb18b,_0x59b81c,_0x2a78ad,_0x316559):_0x3f6c8d['createInstance'](_0x3368ab,_0x2cb18b,_0x59b81c,_0x316559);}var _0x21052e=Object[_0x228849(0x1fc)],_0x111717=Object['getOwnPropertyDescriptor'],_0x19eb46=(_0x3f143d,_0x5c0ad8,_0xfc27d8,_0x533ca1)=>{const _0x177dab=_0x228849;for(var _0x26ac15=_0x533ca1>0x1?void 0x0:_0x533ca1?_0x111717(_0x5c0ad8,_0xfc27d8):_0x5c0ad8,_0x29d27c=_0x3f143d[_0x177dab(0x430)]-0x1,_0x2f28ad;_0x29d27c>=0x0;_0x29d27c--)(_0x2f28ad=_0x3f143d[_0x29d27c])&&(_0x26ac15=(_0x533ca1?_0x2f28ad(_0x5c0ad8,_0xfc27d8,_0x26ac15):_0x2f28ad(_0x26ac15))||_0x26ac15);return _0x533ca1&&_0x26ac15&&_0x21052e(_0x5c0ad8,_0xfc27d8,_0x26ac15),_0x26ac15;},_0x51c041=(_0x374b79,_0x1ed2ec)=>(_0x5c599d,_0x542fd8)=>_0x1ed2ec(_0x5c599d,_0x542fd8,_0x374b79);_0x431c6f[_0x228849(0x2cb)]=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0xeb813a,_0x16cd66,_0x1dda23){const _0x1b9e21=_0x228849;super(),_0xaa2177(this,_0x1b9e21(0x339),new Map()),_0xaa2177(this,_0x1b9e21(0x24a),new _0x4e5e3f['Subject']()),(this[_0x1b9e21(0x28b)]=_0xeb813a,this['_collabSessionService']=_0x16cd66,this[_0x1b9e21(0x1ad)]=_0x1dda23,this[_0x1b9e21(0x285)]());}[_0x228849(0x485)](){const _0x28e873=_0x228849;super[_0x28e873(0x485)](),this[_0x28e873(0x339)]['forEach'](_0x13843e=>_0x13843e[_0x28e873(0x485)]()),this['_entities'][_0x28e873(0x33b)]();}[_0x228849(0x265)](_0x4c878a){const _0x3e0460=_0x228849;var _0x3588d4;return(_0x3588d4=this[_0x3e0460(0x339)]['get'](_0x4c878a))!=null?_0x3588d4:null;}[_0x228849(0x40d)](_0x342179){const _0x264078=_0x228849,_0x2df7f9=this[_0x264078(0x265)](_0x342179);return _0x2df7f9?_0x4e5e3f['of'](_0x2df7f9):this[_0x264078(0x24a)][_0x264078(0x450)](_0x4d72f4['filter'](_0x2395a3=>_0x2395a3[_0x264078(0x340)]===_0x342179));}[_0x228849(0x285)](){const _0x1cba60=_0x228849;this['_univerInstanceService'][_0x1cba60(0x135)](_0x226a7e[_0x1cba60(0x27d)][_0x1cba60(0x390)])[_0x1cba60(0x450)](_0x4e5e3f[_0x1cba60(0x2e4)](this[_0x1cba60(0x1ec)]),_0x4d72f4[_0x1cba60(0x2f0)](0x10))[_0x1cba60(0x22c)](async _0x168ce4=>{const _0x1305b2=_0x1cba60,_0x92949=_0x168ce4[_0x1305b2(0x2d1)](),_0x44d575=await this[_0x1305b2(0x3bc)](_0x92949,_0xf0e06f['UNIVER_SHEET']);this['_entities'][_0x1305b2(0x4f3)](_0x92949,_0x44d575);}),this[_0x1cba60(0x1ad)][_0x1cba60(0x135)](_0x226a7e[_0x1cba60(0x27d)][_0x1cba60(0x138)])[_0x1cba60(0x450)](_0x4e5e3f[_0x1cba60(0x2e4)](this[_0x1cba60(0x1ec)]),_0x4d72f4[_0x1cba60(0x2f0)](0x10))[_0x1cba60(0x450)](_0x4d72f4['filter'](_0x52f6ec=>!_0x52f6ec[_0x1cba60(0x2d1)]()[_0x1cba60(0x16c)]('__')))[_0x1cba60(0x22c)](async _0x3d7dbb=>{const _0x3e8a3b=_0x1cba60,_0x39c353=_0x3d7dbb[_0x3e8a3b(0x2d1)](),_0x20852c=await this['_startCollaboration'](_0x39c353,_0xf0e06f[_0x3e8a3b(0x138)]);this[_0x3e8a3b(0x339)][_0x3e8a3b(0x4f3)](_0x39c353,_0x20852c);}),_0x4e5e3f[_0x1cba60(0x3d0)](this[_0x1cba60(0x1ad)][_0x1cba60(0x19d)](_0x226a7e[_0x1cba60(0x27d)][_0x1cba60(0x390)]),this[_0x1cba60(0x1ad)]['getTypeOfUnitDisposed$'](_0x226a7e[_0x1cba60(0x27d)][_0x1cba60(0x138)]))[_0x1cba60(0x450)](_0x4e5e3f[_0x1cba60(0x2e4)](this[_0x1cba60(0x1ec)]))[_0x1cba60(0x22c)](_0x5d7952=>{const _0x105dc6=_0x1cba60,_0x4f665c=_0x5d7952[_0x105dc6(0x2d1)](),_0x5873fd=this[_0x105dc6(0x339)][_0x105dc6(0x24c)](_0x4f665c);_0x5873fd&&(_0x5873fd[_0x105dc6(0x485)](),this[_0x105dc6(0x339)][_0x105dc6(0x2b1)](_0x4f665c));});}async[_0x228849(0x3bc)](_0x1381c3,_0x4819ec){const _0x48a54b=_0x228849,_0x264bda=await this['_collabSessionService'][_0x48a54b(0x3a3)](_0x1381c3),_0x3e6d0d=this[_0x48a54b(0x28b)][_0x48a54b(0x178)](this[_0x48a54b(0x3e8)](_0x4819ec),_0x1381c3,_0x4819ec,_0x264bda);return await _0x3e6d0d[_0x48a54b(0x3bd)](),this[_0x48a54b(0x24a)][_0x48a54b(0x488)](_0x3e6d0d),_0x3e6d0d;}[_0x228849(0x3e8)](_0x179d32){const _0x59b618=_0x228849;switch(_0x179d32){case _0xf0e06f[_0x59b618(0x138)]:return _0x289e3a;case _0xf0e06f[_0x59b618(0x390)]:return _0x332233;default:throw new Error(_0x59b618(0x39c)+_0x179d32);}}},_0x431c6f[_0x228849(0x2cb)]=_0x19eb46([_0x226a7e[_0x228849(0x4f0)](_0x226a7e[_0x228849(0x179)][_0x228849(0x31d)],_0x431c6f[_0x228849(0x2cb)]),_0x51c041(0x0,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x51c041(0x1,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x192)])),_0x51c041(0x2,_0x226a7e[_0x228849(0x4aa)])],_0x431c6f[_0x228849(0x2cb)]);let _0x3771b3=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0xc077a4,_0x32d7b3,_0x5229dc,_0x2902fd,_0x58b35c,_0x2e6549,_0x23db4f,_0x305e12,_0x1b3921,_0x5384b7,_0x40e7fb,_0x319a9e,_0x4f4f91){const _0x24c07e=_0x228849;super(),_0xaa2177(this,'_state$',new _0x4e5e3f['BehaviorSubject'](null)),_0xaa2177(this,'state$',this[_0x24c07e(0x1d1)][_0x24c07e(0x1fe)]()),_0xaa2177(this,'_state'),_0xaa2177(this,_0x24c07e(0x372),!0x1),_0xaa2177(this,_0x24c07e(0x168),this[_0x24c07e(0x415)][_0x24c07e(0x450)](_0x4d72f4[_0x24c07e(0x4db)](_0x1ebe9f=>_0x1ebe9f?_0x1ebe9f['status']:_0x4577df[_0x24c07e(0x26d)]),_0x4d72f4[_0x24c07e(0x495)](0x1))),_0xaa2177(this,_0x24c07e(0x1ee),!0x1),_0xaa2177(this,_0x24c07e(0x172),[]),(this['unitID']=_0xc077a4,this['_type']=_0x32d7b3,this[_0x24c07e(0x3c9)]=_0x5229dc,this[_0x24c07e(0x28b)]=_0x2902fd,this[_0x24c07e(0x3ef)]=_0x58b35c,this[_0x24c07e(0x338)]=_0x2e6549,this['_localeService']=_0x23db4f,this[_0x24c07e(0x230)]=_0x305e12,this[_0x24c07e(0x464)]=_0x1b3921,this[_0x24c07e(0x4b6)]=_0x5384b7,this[_0x24c07e(0x306)]=_0x40e7fb,this['_permissionService']=_0x319a9e,this[_0x24c07e(0x1fb)]=_0x4f4f91);}get['state'](){const _0x4370c6=_0x228849;return this[_0x4370c6(0x1eb)];}async[_0x228849(0x3bd)](){const _0x40468e=_0x228849;if(this[_0x40468e(0x373)])throw new Error(_0x40468e(0x2ba));await this[_0x40468e(0x285)]();}[_0x228849(0x4f9)](){const _0x5ec076=_0x228849;return this[_0x5ec076(0x372)]=!0x0,_0x226a7e[_0x5ec076(0x14b)](()=>{const _0x45a294=_0x5ec076;this[_0x45a294(0x372)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x1a8a95){const _0x19f061=_0x228849;this[_0x19f061(0x1eb)]=_0x1a8a95,this[_0x19f061(0x1d1)][_0x19f061(0x488)](_0x1a8a95);}async['_init'](){const _0x30118e=_0x228849;var _0x34e314;return this[_0x30118e(0x4c1)](await this[_0x30118e(0x237)]()),this['_singleActiveUnitService']&&((_0x34e314=this['_singleActiveUnitService'])==null||_0x34e314[_0x30118e(0x18f)](this['unitID']),this[_0x30118e(0x231)](_0x226a7e['toDisposable'](this['_singleActiveUnitService'][_0x30118e(0x17d)](this['unitID'])['subscribe'](_0xd4dbf8=>{const _0x49de1a=_0x30118e;this[_0x49de1a(0x464)]['debug'](_0x49de1a(0x4fc),'editing\x20status\x20changed\x20to',_0xd4dbf8),_0xd4dbf8===_0x46ab2b[_0x49de1a(0x243)]?(this[_0x49de1a(0x306)][_0x49de1a(0x333)]({'content':this[_0x49de1a(0x401)]['t']('collaboration.single-unit.warning'),'type':_0x2d5606['MessageType']['Warning']}),this[_0x49de1a(0x1c8)][_0x49de1a(0x202)](new _0x3acf4c[(_0x49de1a(0x39f))](this['unitID'])['id'],!0x1)):this[_0x49de1a(0x1c8)][_0x49de1a(0x202)](new _0x3acf4c[(_0x49de1a(0x39f))](this['unitID'])['id'],!0x0);})))),this[_0x30118e(0x231)](_0x226a7e[_0x30118e(0x14b)](this['_session'][_0x30118e(0x2b7)][_0x30118e(0x22c)](_0x1d59c2=>{const _0x587cfd=_0x30118e;_0x1d59c2===_0x2d0945['ONLINE']?this[_0x587cfd(0x49f)]():_0x1d59c2===_0x2d0945[_0x587cfd(0x26d)]&&this[_0x587cfd(0x23f)]();}))),this[_0x30118e(0x231)](_0x226a7e[_0x30118e(0x14b)](this[_0x30118e(0x3c9)][_0x30118e(0x3a4)][_0x30118e(0x22c)](_0x1b84e4=>{const _0x16aaa4=_0x30118e;try{switch(_0x1b84e4[_0x16aaa4(0x325)]){case _0x1e8c75['CollaborationEvent']['NEW_CHANGESETS']:{this[_0x16aaa4(0x419)](_0x1e8c75['parseProtocolChangeset'](_0x1b84e4['data']));break;}case _0x1e8c75[_0x16aaa4(0x198)]['CHANGESET_ACK']:{this['_onRemoteACK'](_0x1b84e4['data']);break;}case _0x1e8c75['CollaborationEvent'][_0x16aaa4(0x4df)]:{this[_0x16aaa4(0x2f9)]();break;}case _0x1e8c75[_0x16aaa4(0x198)]['PSEUDO_FETCH_MISSING_RESULT']:{this['_onFetchMissResult'](_0x1b84e4[_0x16aaa4(0x1f8)][_0x16aaa4(0x2bf)][_0x16aaa4(0x4db)](_0xe2abfa=>_0x1e8c75[_0x16aaa4(0x4dd)](_0xe2abfa)));break;}case _0x1e8c75[_0x16aaa4(0x198)][_0x16aaa4(0x143)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x28a273){throw console[_0x16aaa4(0x24e)]('Error\x20on\x20receiving\x20event',_0x28a273),_0x28a273;}}))),this[_0x30118e(0x1eb)];}[_0x228849(0x210)](){const _0xb49a55=_0x228849;this[_0xb49a55(0x1ee)]=!0x1;}[_0x228849(0x193)](){const _0x293b55=_0x228849;if(this['_transitionLocked'])throw new Error(_0x293b55(0x248));this[_0x293b55(0x1ee)]=!0x0;}[_0x228849(0x2d7)](_0xe4897e){const _0x3c051b=_0x228849;this[_0x3c051b(0x193)](),this[_0x3c051b(0x4c1)](this[_0x3c051b(0x1eb)][_0x3c051b(0x3dd)](_0xe4897e)),this['_unlockTransition']();}[_0x228849(0x419)](_0x2f8006){const _0x48cfe7=_0x228849;if(!(_0x2f8006[_0x48cfe7(0x437)]<=this[_0x48cfe7(0x230)]['getCurrentRevForDocument'](this['unitID']))){if(this['_collaborationPaused']){this[_0x48cfe7(0x172)][_0x48cfe7(0x4cb)](_0x2f8006);return;}this[_0x48cfe7(0x1ff)](_0x2f8006);}}['_exhaustRemoteChangesetQueue'](){const _0x4bc153=_0x228849;this[_0x4bc153(0x172)][_0x4bc153(0x3ad)](_0x14a6cc=>this[_0x4bc153(0x1ff)](_0x14a6cc)),this[_0x4bc153(0x172)]=[];}['_applyRemoteChangeset'](_0x4b1f84){const _0x25dbb5=_0x228849,_0xb9e82d=this[_0x25dbb5(0x338)][_0x25dbb5(0x1d5)][_0x25dbb5(0x1c3)](this[_0x25dbb5(0x338)][_0x25dbb5(0x1d5)][_0x25dbb5(0x348)]()[_0x25dbb5(0x32e)])(_0x4b1f84[_0x25dbb5(0x357)],null)||_0x4b1f84[_0x25dbb5(0x357)],_0x4a8376={..._0x4b1f84,'mutations':_0xb9e82d};this['_lockTransition'](),this['_updateState'](this[_0x25dbb5(0x1eb)]['onRemoteChangeset'](_0x4a8376)),this[_0x25dbb5(0x210)]();}[_0x228849(0x189)](_0x32b1a9){const _0x321745=_0x228849;this['_lockTransition'](),this['_updateState'](this[_0x321745(0x1eb)][_0x321745(0x25e)](_0x32b1a9)),this[_0x321745(0x210)]();}[_0x228849(0x2f9)](_0x4e22da){const _0x46534e=_0x228849;this[_0x46534e(0x193)](),this['_updateState'](this[_0x46534e(0x1eb)]['onRemoteRej'](_0x4e22da)),this[_0x46534e(0x210)]();}['_onFetchMissResult'](_0x52b3c3){const _0x359a49=_0x228849;if(!(this['_state']instanceof _0x378adc))throw new TypeError(_0x359a49(0x3cb));const _0x3e20f0=_0x52b3c3[_0x359a49(0x4db)](_0x1f1b08=>{const _0x183a26=_0x359a49,_0x3899ad=this[_0x183a26(0x338)]['interceptor']['fetchThroughInterceptors'](this[_0x183a26(0x338)][_0x183a26(0x1d5)][_0x183a26(0x348)]()['COMPRESS_MUTATION_APPLY'])(_0x1f1b08[_0x183a26(0x357)],null)||_0x1f1b08[_0x183a26(0x357)];return{..._0x1f1b08,'mutations':_0x3899ad};});this[_0x359a49(0x193)](),this[_0x359a49(0x4c1)](this['_state'][_0x359a49(0x1e5)](_0x3e20f0)),this[_0x359a49(0x210)]();}[_0x228849(0x23f)](){const _0x447c29=_0x228849;this[_0x447c29(0x193)](),this[_0x447c29(0x4c1)](this['_state'][_0x447c29(0x147)]()),this['_unlockTransition']();}['_toggleOnline'](){const _0x216be1=_0x228849;this[_0x216be1(0x193)](),this['_updateState'](this['_state'][_0x216be1(0x4ee)]()),this[_0x216be1(0x210)]();}async[_0x228849(0x237)](){return new Promise(_0x441c2a=>{const _0x463c75=_0x572c;this[_0x463c75(0x3c9)]['sessionStatus$'][_0x463c75(0x450)](_0x4d72f4[_0x463c75(0x1db)](0x1))[_0x463c75(0x22c)](async _0x560697=>{const _0x1e9028=_0x463c75;_0x441c2a(await this[_0x1e9028(0x277)](_0x560697===_0x2d0945[_0x1e9028(0x4cc)]));});});}['_createHandler'](){const _0x41eb5b=this['unitID'];return{'onStateChange':(_0x3852f5,_0x4f3fc8)=>{const _0xafedfc=_0x572c;if(_0x3852f5!==this['_state'])throw new Error(_0xafedfc(0x44a)+_0x3852f5[_0xafedfc(0x418)]+'\x0aAfter:\x20'+_0x4f3fc8[_0xafedfc(0x418)]+_0xafedfc(0x360)+this[_0xafedfc(0x1eb)][_0xafedfc(0x418)]);this[_0xafedfc(0x4c1)](_0x4f3fc8);},'onSendChangeset':_0x2c1f01=>{const _0x3a8d42=_0x572c,_0xe17cb={'eventID':_0x1e8c75[_0x3a8d42(0x198)][_0x3a8d42(0x2b5)],'data':{'unitID':_0x2c1f01[_0x3a8d42(0x340)],'unitType':this[_0x3a8d42(0x403)],'changeset':_0x2c1f01,'memberID':this['_session'][_0x3a8d42(0x2e1)]()}};this[_0x3a8d42(0x3c9)][_0x3a8d42(0x4ed)](_0xe17cb,this[_0x3a8d42(0x340)]);},'onMissingChangesets':({from:_0x592169,to:_0xeff23a})=>{const _0x44ba28=_0x572c;this[_0x44ba28(0x464)]['debug']('[CollaborationEntity]',_0x44ba28(0x3ce)+_0x592169+_0x44ba28(0x3ab)+_0xeff23a);const _0x4efd8c={'eventID':_0x1e8c75[_0x44ba28(0x198)][_0x44ba28(0x2bb)],'data':{'unitID':_0x41eb5b,'unitType':this[_0x44ba28(0x403)],'from':_0x592169,'to':_0xeff23a}};this[_0x44ba28(0x3c9)][_0x44ba28(0x4ed)](_0x4efd8c,this['unitID']);}};}async['_createInitialStateImpl'](_0x7acf36){const _0x409d6a=_0x228849;var _0x125d70,_0x38e64b;const _0x204f45=await this[_0x409d6a(0x3ef)][_0x409d6a(0x33c)](this[_0x409d6a(0x340)]),_0x37d00e=(_0x125d70=_0x204f45==null?void 0x0:_0x204f45['mutations'])!=null?_0x125d70:[],_0x361f62=(_0x38e64b=_0x204f45==null?void 0x0:_0x204f45[_0x409d6a(0x27a)])!=null?_0x38e64b:null,_0x5cc68c=this[_0x409d6a(0x340)];try{this[_0x409d6a(0x18b)](_0x361f62,_0x37d00e);}catch(_0x2b772b){this['_logService']['error'](_0x2b772b);}const _0x5de8b0=this['_createHandler']();if(_0x7acf36){const _0xa7c2bf=_0x21ef26(this[_0x409d6a(0x28b)],_0x5cc68c,this[_0x409d6a(0x403)],_0x361f62,_0x37d00e,_0x5de8b0);return _0xa7c2bf instanceof _0x25c1eb?_0xa7c2bf[_0x409d6a(0x3ff)]():(_0xa7c2bf instanceof _0x3f26f2||_0xa7c2bf instanceof _0x190be0)&&_0xa7c2bf[_0x409d6a(0x3c6)](),_0xa7c2bf;}return this[_0x409d6a(0x28b)]['createInstance'](_0x424af3,_0x5cc68c,this['_type'],_0x361f62,_0x37d00e,_0x5de8b0);}[_0x228849(0x18b)](_0xdd50f2,_0x3e9a38){const _0x429a96=_0x228849;var _0x9955cc,_0x2218a1;const _0x21bfe0=this[_0x429a96(0x338)]['interceptor']['fetchThroughInterceptors'](this[_0x429a96(0x338)][_0x429a96(0x1d5)][_0x429a96(0x348)]()['COMPRESS_MUTATION_APPLY']);(_0x9955cc=_0x21bfe0((_0xdd50f2==null?void 0x0:_0xdd50f2[_0x429a96(0x357)])||[],null))==null||_0x9955cc[_0x429a96(0x3ad)](_0x4d0693=>this['_commandService'][_0x429a96(0x12c)](_0x4d0693['id'],_0x4d0693[_0x429a96(0x2f4)])),(_0x2218a1=_0x21bfe0(_0x3e9a38||[],null))==null||_0x2218a1[_0x429a96(0x3ad)](_0x2bfeb0=>this[_0x429a96(0x4b6)][_0x429a96(0x12c)](_0x2bfeb0['id'],_0x2bfeb0[_0x429a96(0x2f4)]));}};_0x3771b3=_0x19eb46([_0x51c041(0x3,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x51c041(0x4,_0x49bc9[_0x228849(0x31c)](_0x431c6f['LocalCacheService'])),_0x51c041(0x5,_0x49bc9['Inject'](_0x1e8c75[_0x228849(0x411)])),_0x51c041(0x6,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x355)])),_0x51c041(0x7,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x51c041(0x8,_0x226a7e[_0x228849(0x212)]),_0x51c041(0x9,_0x226a7e['ICommandService']),_0x51c041(0xa,_0x15005b[_0x228849(0x4f8)]),_0x51c041(0xb,_0x226a7e[_0x228849(0x182)]),_0x51c041(0xc,_0x49bc9[_0x228849(0x195)](_0x53b064))],_0x3771b3);let _0x289e3a=class extends _0x3771b3{constructor(_0x26b9d5,_0x4113e8,_0x389153,_0x42fbb8,_0x139b2c,_0x10dda5,_0x36e8c7,_0x3706c6,_0x299c72,_0x352828,_0x1294f2,_0x269a69,_0x13a101,_0x2ac74d,_0x2aac19,_0x12d961,_0x55eb6b){const _0x33315d=_0x228849;super(_0x26b9d5,_0x4113e8,_0x389153,_0x42fbb8,_0x139b2c,_0x10dda5,_0x36e8c7,_0x3706c6,_0x13a101,_0x2ac74d,_0x2aac19,_0x12d961,_0x55eb6b),this['unitID']=_0x26b9d5,this[_0x33315d(0x354)]=_0x4113e8,this[_0x33315d(0x159)]=_0x389153,this[_0x33315d(0x3ac)]=_0x299c72,this[_0x33315d(0x474)]=_0x352828,this[_0x33315d(0x3f8)]=_0x1294f2,this[_0x33315d(0x142)]=_0x269a69;}[_0x228849(0x2ea)](){const _0x375b16=_0x228849,_0x576c51=super[_0x375b16(0x2ea)]();return _0x576c51['onTransformIME']=_0x1ef95e=>this[_0x375b16(0x474)][_0x375b16(0x328)](_0x1ef95e),_0x576c51[_0x375b16(0x482)]=_0x4a8c96=>this[_0x375b16(0x3f8)][_0x375b16(0x23c)](_0x4a8c96),_0x576c51[_0x375b16(0x216)]=_0x3d94d3=>this[_0x375b16(0x142)][_0x375b16(0x48d)](_0x3d94d3),_0x576c51['onTransformRemoteChangesetByIMECache']=_0x4ec453=>this[_0x375b16(0x474)]['transformRemoteChangeset'](_0x4ec453),_0x576c51;}async[_0x228849(0x285)](){const _0x1dc424=_0x228849,_0x11d050=await super[_0x1dc424(0x285)]();return this[_0x1dc424(0x3ac)][_0x1dc424(0x4f2)][_0x1dc424(0x450)](_0x4e5e3f[_0x1dc424(0x2e4)](this[_0x1dc424(0x1ec)]))[_0x1dc424(0x22c)](_0x43391e=>{const _0x2dad01=_0x1dc424;if(_0x43391e==null)return;const {unitId:_0x587936,redoState:_0xda0199,commandId:_0x3b8368}=_0x43391e;if(_0x587936!==this[_0x2dad01(0x340)])return;const _0x42032b={'id':_0x3b8368,'type':_0x226a7e[_0x2dad01(0x22d)]['MUTATION'],'params':{'unitId':_0x587936,'actions':_0xda0199[_0x2dad01(0x274)],'textRanges':null}};this[_0x2dad01(0x2d7)](_0x42032b);}),_0x11d050;}};_0x289e3a=_0x19eb46([_0x51c041(0x3,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x51c041(0x4,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x361)])),_0x51c041(0x5,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x411)])),_0x51c041(0x6,_0x49bc9[_0x228849(0x31c)](_0x226a7e['LocaleService'])),_0x51c041(0x7,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x51c041(0x8,_0x49bc9[_0x228849(0x31c)](_0x534040['DocStateChangeManagerService'])),_0x51c041(0x9,_0x49bc9[_0x228849(0x31c)](_0x1f5fb3)),_0x51c041(0xa,_0x49bc9[_0x228849(0x31c)](_0x35da09)),_0x51c041(0xb,_0x49bc9[_0x228849(0x31c)](_0x372338)),_0x51c041(0xc,_0x226a7e[_0x228849(0x212)]),_0x51c041(0xd,_0x226a7e[_0x228849(0x48f)]),_0x51c041(0xe,_0x15005b[_0x228849(0x4f8)]),_0x51c041(0xf,_0x226a7e[_0x228849(0x182)]),_0x51c041(0x10,_0x49bc9[_0x228849(0x195)](_0x53b064))],_0x289e3a);let _0x332233=class extends _0x3771b3{constructor(_0x25ffec,_0x17a15e,_0x486a6b,_0x227331,_0x45ff13,_0x1f92d3,_0x1ba972,_0x259116,_0x6185d4,_0x1fdddc,_0x698b51,_0x2d2dcc,_0x3cc1a8,_0x14c67e){const _0x80b692=_0x228849;super(_0x25ffec,_0x17a15e,_0x486a6b,_0x227331,_0x45ff13,_0x1f92d3,_0x1ba972,_0x259116,_0x1fdddc,_0x698b51,_0x2d2dcc,_0x3cc1a8,_0x14c67e),this[_0x80b692(0x340)]=_0x25ffec,this[_0x80b692(0x354)]=_0x17a15e,this[_0x80b692(0x159)]=_0x486a6b,this[_0x80b692(0x49a)]=_0x6185d4;}[_0x228849(0x2ea)](){const _0x540ea3=_0x228849,_0x151e3b=super['_createHandler']();return _0x151e3b[_0x540ea3(0x482)]=_0x4f8a6a=>this[_0x540ea3(0x49a)]['transformSelections'](_0x4f8a6a),_0x151e3b;}async[_0x228849(0x285)](){const _0xa6154d=_0x228849,_0x41bdce=await super[_0xa6154d(0x285)]();return this[_0xa6154d(0x231)](this[_0xa6154d(0x4b6)][_0xa6154d(0x4b7)]((_0x3b5251,_0x1ff249)=>{const _0x52c850=_0xa6154d;if(_0x3b5251[_0x52c850(0x354)]!==_0x226a7e[_0x52c850(0x22d)][_0x52c850(0x3e0)]||_0x1ff249!=null&&_0x1ff249[_0x52c850(0x414)]||_0x1ff249!=null&&_0x1ff249[_0x52c850(0x31b)])return;const _0x38fba4=_0x3b5251[_0x52c850(0x2f4)];if((_0x38fba4==null?void 0x0:_0x38fba4[_0x52c850(0x3c5)])!==this[_0x52c850(0x340)])return;const _0x1a36b1=_0x3b5251,_0x2f2021=this[_0x52c850(0x338)][_0x52c850(0x1d5)]['fetchThroughInterceptors'](this[_0x52c850(0x338)]['interceptor'][_0x52c850(0x348)]()[_0x52c850(0x46f)])([_0x1a36b1],null)||[_0x1a36b1];this[_0x52c850(0x2d7)](_0x2f2021[0x0]);})),_0x41bdce;}};_0x332233=_0x19eb46([_0x51c041(0x3,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x51c041(0x4,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x361)])),_0x51c041(0x5,_0x49bc9[_0x228849(0x31c)](_0x1e8c75['CompressMutationService'])),_0x51c041(0x6,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x355)])),_0x51c041(0x7,_0x49bc9[_0x228849(0x31c)](_0x1e8c75[_0x228849(0x366)])),_0x51c041(0x8,_0x49bc9[_0x228849(0x31c)](_0x362b05)),_0x51c041(0x9,_0x226a7e[_0x228849(0x212)]),_0x51c041(0xa,_0x226a7e[_0x228849(0x48f)]),_0x51c041(0xb,_0x15005b[_0x228849(0x4f8)]),_0x51c041(0xc,_0x226a7e[_0x228849(0x182)]),_0x51c041(0xd,_0x49bc9['Optional'](_0x53b064))],_0x332233);const _0x316fe0=[_0x228849(0x329),_0x228849(0x4ea),_0x228849(0x28a),_0x228849(0x203),'blue400',_0x228849(0x30c)];class _0x237467 extends _0x226a7e[_0x228849(0x484)]{constructor(){const _0xf17a0e=_0x228849;super(...arguments),_0xaa2177(this,'_assignedColors',new Map()),_0xaa2177(this,_0xf17a0e(0x490),0x0);}['assignAColorForMemberID'](_0x448685){const _0x195169=_0x228849;if(this['_assignedColors']['has'](_0x448685))return this[_0x195169(0x21e)][_0x195169(0x24c)](_0x448685);const _0x424f8a=_0x316fe0[this[_0x195169(0x490)]];return this[_0x195169(0x490)]=(this[_0x195169(0x490)]+0x1)%_0x316fe0['length'],this[_0x195169(0x21e)][_0x195169(0x4f3)](_0x448685,_0x424f8a),_0x424f8a;}}var _0x2d574c=Object[_0x228849(0x1fc)],_0x1f4c48=Object[_0x228849(0x1b4)],_0x58a19e=(_0x5c1b2f,_0x17ec0d,_0x43b62d,_0x2e8d9c)=>{const _0x1556e4=_0x228849;for(var _0x2e36bd=_0x2e8d9c>0x1?void 0x0:_0x2e8d9c?_0x1f4c48(_0x17ec0d,_0x43b62d):_0x17ec0d,_0x5a7e5d=_0x5c1b2f[_0x1556e4(0x430)]-0x1,_0x132f46;_0x5a7e5d>=0x0;_0x5a7e5d--)(_0x132f46=_0x5c1b2f[_0x5a7e5d])&&(_0x2e36bd=(_0x2e8d9c?_0x132f46(_0x17ec0d,_0x43b62d,_0x2e36bd):_0x132f46(_0x2e36bd))||_0x2e36bd);return _0x2e8d9c&&_0x2e36bd&&_0x2d574c(_0x17ec0d,_0x43b62d,_0x2e36bd),_0x2e36bd;},_0x3aa8b8=(_0x5d939,_0x457294)=>(_0x5ad275,_0x1e22b8)=>_0x457294(_0x5ad275,_0x1e22b8,_0x5d939);const _0x3e28a6=0x12c,_0x2ff8dd=0x64,_0x493a4d=()=>{let _0x2965bf=[],_0x14f5fb=!0x1;return _0x2c463f=>{const _0x35a789=_0x572c;_0x2965bf[_0x35a789(0x4cb)](_0x2c463f),_0x14f5fb||(_0x14f5fb=!0x0,setTimeout(()=>{const _0x36e301=_0x35a789;_0x2965bf[_0x36e301(0x3ad)](_0x40480d=>_0x40480d()),_0x2965bf=[],_0x14f5fb=!0x1;}));};};let _0x4c09e8=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0x5a4597,_0x21442f,_0x1cf9f2,_0x1575c2,_0x376c6c,_0x217c90,_0x281f8e,_0x4f63f3){const _0x25038d=_0x228849;super(),_0xaa2177(this,_0x25038d(0x332),!0x1),_0xaa2177(this,_0x25038d(0x285),!0x1),_0xaa2177(this,_0x25038d(0x479),new _0x4e5e3f[(_0x25038d(0x2e7))](new Map())),_0xaa2177(this,_0x25038d(0x183),this[_0x25038d(0x479)][_0x25038d(0x1fe)]()),_0xaa2177(this,_0x25038d(0x45c),new _0x4e5e3f[(_0x25038d(0x2e7))]([])),_0xaa2177(this,_0x25038d(0x1e9),this['_roomMembers$'][_0x25038d(0x450)](_0x4e5e3f[_0x25038d(0x3b5)](_0x3e28a6))),_0xaa2177(this,_0x25038d(0x470),_0x270255((_0x175a95,_0x1ac8fb)=>{const _0x5de189=_0x25038d,_0x4ee9d1={'eventID':_0x1e8c75[_0x5de189(0x198)][_0x5de189(0x253)],'data':{'unitID':this[_0x5de189(0x340)],'memberID':this['_session'][_0x5de189(0x2e1)](),'selection':_0x2ca513[_0x5de189(0x273)](_0x175a95,_0x1ac8fb[_0x5de189(0x2a6)])}};this[_0x5de189(0x3c9)]['send'](_0x4ee9d1,this[_0x5de189(0x340)]);},_0x2ff8dd)),(this[_0x25038d(0x340)]=_0x5a4597,this[_0x25038d(0x3c9)]=_0x21442f,this['_injector']=_0x1cf9f2,this['_colorAssignService']=_0x1575c2,this[_0x25038d(0x2c7)]=_0x376c6c,this[_0x25038d(0x1ad)]=_0x217c90,this[_0x25038d(0x4b6)]=_0x281f8e,this[_0x25038d(0x244)]=_0x4f63f3);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x228849(0x402)](){const _0x4d0217=_0x228849;return this[_0x4d0217(0x45c)]['getValue']();}[_0x228849(0x485)](){const _0x38f8e6=_0x228849;super[_0x38f8e6(0x485)](),this[_0x38f8e6(0x479)][_0x38f8e6(0x488)](new Map()),this['_cursorInfo$']['complete'](),this[_0x38f8e6(0x45c)]['next']([]),this[_0x38f8e6(0x45c)][_0x38f8e6(0x1dd)]();}[_0x228849(0x3bd)](){const _0x55467e=_0x228849;this['_init']||(this[_0x55467e(0x285)]=!0x0,this[_0x55467e(0x3c9)][_0x55467e(0x2b7)][_0x55467e(0x450)](_0x4e5e3f[_0x55467e(0x2e4)](this['dispose$']))[_0x55467e(0x22c)](_0x49bfce=>{const _0x171cbf=_0x55467e;_0x49bfce===_0x2d0945[_0x171cbf(0x4cc)]?this['_toggleOnline']():this[_0x171cbf(0x23f)]();}),this[_0x55467e(0x3c9)][_0x55467e(0x3a4)][_0x55467e(0x450)](_0x4e5e3f[_0x55467e(0x2e4)](this[_0x55467e(0x1ec)]))[_0x55467e(0x22c)](_0x19f823=>{const _0x5a960d=_0x55467e,_0x281510=_0x19f823[_0x5a960d(0x325)];_0x281510===_0x1e8c75[_0x5a960d(0x198)][_0x5a960d(0x253)]&&this[_0x5a960d(0x1d6)](_0x19f823),_0x281510===_0x1e8c75['CollaborationEvent']['USERS_LEAVE']&&this[_0x5a960d(0x2d5)](_0x19f823);}),this[_0x55467e(0x1d8)](),this['disposeWithMe'](this[_0x55467e(0x4b6)][_0x55467e(0x4b7)](_0x363a8e=>{const _0x4cae10=_0x55467e;if(this[_0x4cae10(0x332)]&&_0x363a8e['id']===_0x3acf4c[_0x4cae10(0x21b)]['id']&&_0x363a8e[_0x4cae10(0x2f4)][_0x4cae10(0x3c5)]===this['unitID']){const _0xa0dc34=_0x363a8e['params'];this[_0x4cae10(0x470)](_0xa0dc34[_0x4cae10(0x4ec)],_0xa0dc34[_0x4cae10(0x3a6)][0x0]);}})));}['_onCursorUpdate'](_0x576ede){const _0x359f4f=_0x228849;var _0x5ce774,_0x255dc2;const {memberID:_0x1ab517,selection:_0x21cb80}=_0x576ede['data'],{sheetName:_0x183ce3,range:_0x251f78}=_0x2ca513[_0x359f4f(0x3ec)](_0x21cb80),_0x27a8b1={'name':(_0x255dc2=(_0x5ce774=this[_0x359f4f(0x2c7)][_0x359f4f(0x250)](this[_0x359f4f(0x340)],_0x1ab517))==null?void 0x0:_0x5ce774[_0x359f4f(0x268)])!=null?_0x255dc2:_0x359f4f(0x3c1),'range':this['_getMergeRange'](_0x183ce3,_0x251f78),'sheetID':_0x183ce3,'color':this['_colorAssignService'][_0x359f4f(0x4cf)](_0x1ab517),'selection':_0x21cb80},_0x33a157=this[_0x359f4f(0x261)];_0x33a157[_0x359f4f(0x4f3)](_0x1ab517,_0x27a8b1),this['_cursorInfo$'][_0x359f4f(0x488)](_0x33a157);}[_0x228849(0x2d5)](_0x422bb6){const _0x3014d9=_0x228849,{memberID:_0x6226ed}=_0x422bb6[_0x3014d9(0x1f8)],_0x35daf8=this[_0x3014d9(0x261)];_0x35daf8[_0x3014d9(0x2b1)](_0x6226ed),this['_cursorInfo$'][_0x3014d9(0x488)](_0x35daf8);}[_0x228849(0x493)](_0x487fcd,_0x12f6ba){const _0x14ace2=_0x228849;var _0x56f560,_0x591b21;const _0x51877c=(_0x591b21=(_0x56f560=this[_0x14ace2(0x1ad)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x56f560[_0x14ace2(0x140)](_0x487fcd))==null?void 0x0:_0x591b21[_0x14ace2(0x38f)]();return(_0x51877c==null?void 0x0:_0x51877c[_0x14ace2(0x232)](_0x3d0a0a=>_0x226a7e[_0x14ace2(0x1be)]['contains'](_0x3d0a0a,_0x12f6ba)))||_0x12f6ba;}['_onRefRangeChange'](){const _0x149518=_0x228849,_0x2f9951=new _0x226a7e[(_0x149518(0x4b3))](),_0x2103d3=_0x493a4d(),_0x3f1f6c=()=>{const _0x548953=_0x149518;_0x2f9951[_0x548953(0x485)]();const _0x296519=(_0x214e30,_0xe350b5,_0x25904e,_0x2aa590)=>{const _0x244806=_0x548953;let _0x475c4f=[];switch(_0x214e30['id']){case _0x3acf4c[_0x244806(0x15d)]['DeleteRangeMoveLeftCommandId']:{_0x475c4f=_0x3acf4c[_0x244806(0x33e)](_0x214e30,_0x2aa590);break;}case _0x3acf4c[_0x244806(0x15d)][_0x244806(0x378)]:{_0x475c4f=_0x3acf4c['handleDeleteRangeMoveUp'](_0x214e30,_0x2aa590);break;}case _0x3acf4c[_0x244806(0x15d)][_0x244806(0x2fe)]:{_0x475c4f=_0x3acf4c[_0x244806(0x3c8)](_0x214e30,_0x2aa590);break;}case _0x3acf4c[_0x244806(0x15d)][_0x244806(0x166)]:{_0x475c4f=_0x3acf4c[_0x244806(0x445)](_0x214e30,_0x2aa590);break;}case _0x3acf4c[_0x244806(0x15d)][_0x244806(0x313)]:{_0x475c4f=_0x3acf4c[_0x244806(0x425)](_0x214e30,_0x2aa590);break;}case _0x3acf4c['EffectRefRangId'][_0x244806(0x2e3)]:{_0x475c4f=_0x3acf4c[_0x244806(0x2f7)](_0x214e30,_0x2aa590);break;}case _0x3acf4c['EffectRefRangId'][_0x244806(0x4b4)]:{_0x475c4f=_0x3acf4c[_0x244806(0x1b5)](_0x214e30,_0x2aa590);break;}case _0x3acf4c[_0x244806(0x15d)][_0x244806(0x15c)]:{_0x475c4f=_0x3acf4c[_0x244806(0x13b)](_0x214e30,_0x2aa590);break;}case _0x3acf4c['EffectRefRangId'][_0x244806(0x471)]:{_0x475c4f=_0x3acf4c['handleIRemoveRow'](_0x214e30,_0x2aa590);break;}}const _0x44779f=_0x3acf4c[_0x244806(0x1a5)](_0x475c4f,_0x2aa590),_0x4443cd=this['cursorInfo'][_0x244806(0x24c)](_0xe350b5);if(_0x4443cd&&_0x44779f){const _0x5a8174={..._0x4443cd,'range':_0x44779f};this[_0x244806(0x261)]['set'](_0xe350b5,_0x5a8174),_0x2103d3(()=>{const _0x4aaa42=_0x244806,_0x3ac908=this['_refRangeService'][_0x4aaa42(0x29d)](_0x44779f,_0x2b6eb0=>(_0x3ac908[_0x4aaa42(0x485)](),_0x296519(_0x2b6eb0,_0xe350b5,_0x25904e,_0x44779f)));_0x2f9951['add'](_0x3ac908);});}return{'redos':[],'undos':[]};};this[_0x548953(0x261)][_0x548953(0x3ad)]((_0x531e61,_0x14cfe6)=>{const _0x18a933=_0x548953,{range:_0x22a954,sheetID:_0x411e29}=_0x531e61,_0x1a03a8=this[_0x18a933(0x244)][_0x18a933(0x29d)](_0x22a954,_0x2700f0=>(_0x1a03a8['dispose'](),_0x296519(_0x2700f0,_0x14cfe6,_0x411e29,_0x22a954)));_0x2f9951[_0x18a933(0x33d)](_0x1a03a8);});};this[_0x149518(0x231)](_0x226a7e['toDisposable'](this[_0x149518(0x479)][_0x149518(0x22c)](()=>{_0x3f1f6c();})));}[_0x228849(0x49f)](){const _0x5d632a=_0x228849;var _0x5106c0,_0x1cfc93;if(this['_online']=!0x0,((_0x5106c0=this[_0x5d632a(0x1ad)][_0x5d632a(0x43f)]())==null?void 0x0:_0x5106c0[_0x5d632a(0x2d1)]())!==this['unitID'])return;const _0x2b114c=(_0x1cfc93=this['_injector']['get'](_0x3acf4c[_0x5d632a(0x35c)])[_0x5d632a(0x2e0)]())==null?void 0x0:_0x1cfc93[0x0];_0x2b114c&&this[_0x5d632a(0x470)](this[_0x5d632a(0x1ad)]['getCurrentUnitForType'](_0x226a7e[_0x5d632a(0x27d)][_0x5d632a(0x390)])[_0x5d632a(0x4a3)]()['getSheetId'](),_0x2b114c);}['_toggleOffline'](){this['_online']=!0x1;}};_0x4c09e8=_0x58a19e([_0x3aa8b8(0x2,_0x49bc9[_0x228849(0x31c)](_0x49bc9['Injector'])),_0x3aa8b8(0x3,_0x49bc9['Inject'](_0x237467)),_0x3aa8b8(0x4,_0x49bc9[_0x228849(0x31c)](_0x2f6a5d)),_0x3aa8b8(0x5,_0x226a7e['IUniverInstanceService']),_0x3aa8b8(0x6,_0x226a7e[_0x228849(0x48f)]),_0x3aa8b8(0x7,_0x49bc9[_0x228849(0x31c)](_0x3acf4c['RefRangeService']))],_0x4c09e8);var _0x1245ca=Object['defineProperty'],_0x229826=Object['getOwnPropertyDescriptor'],_0x1bdabf=(_0x4115d5,_0x5cc928,_0x2e7c99,_0x1408ff)=>{const _0x17b97e=_0x228849;for(var _0x22c768=_0x1408ff>0x1?void 0x0:_0x1408ff?_0x229826(_0x5cc928,_0x2e7c99):_0x5cc928,_0x12c8aa=_0x4115d5[_0x17b97e(0x430)]-0x1,_0x1b9c2f;_0x12c8aa>=0x0;_0x12c8aa--)(_0x1b9c2f=_0x4115d5[_0x12c8aa])&&(_0x22c768=(_0x1408ff?_0x1b9c2f(_0x5cc928,_0x2e7c99,_0x22c768):_0x1b9c2f(_0x22c768))||_0x22c768);return _0x1408ff&&_0x22c768&&_0x1245ca(_0x5cc928,_0x2e7c99,_0x22c768),_0x22c768;},_0x3a8e95=(_0x3f7cb4,_0x3104fd)=>(_0x3d2385,_0x5ddcfa)=>_0x3104fd(_0x3d2385,_0x5ddcfa,_0x3f7cb4);const _0x386b95=0x12c,_0x37f7d5=0x64;let _0x23d36a=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0x5b1ee6,_0x10f02c,_0x402648,_0x2fd2da,_0x5b425d,_0x3a7a32,_0x1c0323,_0x4b7b4b,_0x2f03d7){const _0x243445=_0x228849;super(),_0xaa2177(this,_0x243445(0x332),!0x1),_0xaa2177(this,'_init',!0x1),_0xaa2177(this,_0x243445(0x479),new _0x4e5e3f['BehaviorSubject'](new Map())),_0xaa2177(this,_0x243445(0x183),this[_0x243445(0x479)][_0x243445(0x1fe)]()),_0xaa2177(this,_0x243445(0x45c),new _0x4e5e3f[(_0x243445(0x2e7))]([])),_0xaa2177(this,'roomMembers$',this[_0x243445(0x45c)][_0x243445(0x450)](_0x4e5e3f[_0x243445(0x3b5)](_0x386b95))),_0xaa2177(this,_0x243445(0x470),_0x270255(_0x32eca1=>{const _0x576e0d=_0x243445,_0x2fac59={'eventID':_0x1e8c75['CollaborationEvent'][_0x576e0d(0x253)],'data':{'unitID':this[_0x576e0d(0x340)],'memberID':this['_session'][_0x576e0d(0x2e1)](),'selection':_0x26d119(_0x32eca1)}};this['_session'][_0x576e0d(0x4ed)](_0x2fac59,this[_0x576e0d(0x340)]);},_0x37f7d5)),(this[_0x243445(0x340)]=_0x5b1ee6,this['_session']=_0x10f02c,this[_0x243445(0x28b)]=_0x402648,this[_0x243445(0x38e)]=_0x2fd2da,this['_memberService']=_0x5b425d,this[_0x243445(0x44d)]=_0x3a7a32,this[_0x243445(0x1b9)]=_0x1c0323,this[_0x243445(0x1ad)]=_0x4b7b4b,this[_0x243445(0x4b6)]=_0x2f03d7);}get[_0x228849(0x261)](){return this['_cursorInfo$']['getValue']();}get[_0x228849(0x402)](){const _0x17b4d5=_0x228849;return this[_0x17b4d5(0x45c)][_0x17b4d5(0x181)]();}[_0x228849(0x485)](){const _0x28b30b=_0x228849;super[_0x28b30b(0x485)](),this[_0x28b30b(0x479)][_0x28b30b(0x488)](new Map()),this[_0x28b30b(0x479)][_0x28b30b(0x1dd)](),this[_0x28b30b(0x45c)][_0x28b30b(0x488)]([]),this[_0x28b30b(0x45c)][_0x28b30b(0x1dd)]();}[_0x228849(0x3bd)](){const _0x44e664=_0x228849;this[_0x44e664(0x285)]||(this[_0x44e664(0x285)]=!0x0,this[_0x44e664(0x3c9)]['sessionStatus$'][_0x44e664(0x450)](_0x4e5e3f[_0x44e664(0x2e4)](this[_0x44e664(0x1ec)]))['subscribe'](_0x134824=>{const _0x15f71a=_0x44e664;_0x134824===_0x2d0945[_0x15f71a(0x4cc)]?this[_0x15f71a(0x49f)]():this[_0x15f71a(0x23f)]();}),this[_0x44e664(0x3c9)][_0x44e664(0x3a4)][_0x44e664(0x450)](_0x4e5e3f[_0x44e664(0x2e4)](this[_0x44e664(0x1ec)]))[_0x44e664(0x22c)](_0xbc0b81=>{const _0x295318=_0x44e664,_0x2957fb=_0xbc0b81[_0x295318(0x325)];_0x2957fb===_0x1e8c75['CollaborationEvent'][_0x295318(0x253)]&&this[_0x295318(0x1d6)](_0xbc0b81),_0x2957fb===_0x1e8c75[_0x295318(0x198)]['USERS_LEAVE']&&this['_onCursorDelete'](_0xbc0b81);}),this[_0x44e664(0x231)](this[_0x44e664(0x4b6)][_0x44e664(0x4b7)](_0x214718=>{const _0x566451=_0x44e664,_0x2e2a71=_0x214718[_0x566451(0x2f4)];_0x2e2a71!=null&&this['_online']&&_0x214718['id']===_0x534040[_0x566451(0x3e6)]['id']&&_0x2e2a71[_0x566451(0x3c5)]===this[_0x566451(0x340)]&&_0x2e2a71[_0x566451(0x26e)]===!0x1&&this['_updateLocalCursor'](_0x2e2a71[_0x566451(0x341)]);})),this['_syncEditingCollabCursorService'][_0x44e664(0x477)][_0x44e664(0x450)](_0x4e5e3f[_0x44e664(0x2e4)](this['dispose$']))[_0x44e664(0x22c)](_0xa5f10e=>{const _0x202b1d=_0x44e664;if((_0xa5f10e==null?void 0x0:_0xa5f10e[_0x202b1d(0x340)])!==this[_0x202b1d(0x340)])return;const _0x10cd38={'eventID':_0x1e8c75['CollaborationEvent'][_0x202b1d(0x253)],'data':_0xa5f10e};this[_0x202b1d(0x1d6)](_0x10cd38);}),this[_0x44e664(0x231)](this[_0x44e664(0x4b6)][_0x44e664(0x4b7)](_0x37845f=>{const _0x2a4e14=_0x44e664;if(_0x37845f[_0x2a4e14(0x2f4)]==null)return;const _0x5deda5=_0x37845f[_0x2a4e14(0x2f4)];if(_0x37845f['id']!==_0x534040[_0x2a4e14(0x4b8)]['id']||_0x5deda5['unitId']!==this[_0x2a4e14(0x340)])return;const _0x4538b9={'id':_0x2a4e14(0x15e),'params':_0x5deda5},_0x435acd=this[_0x2a4e14(0x261)];for(const [_0x5eb281,_0x355768]of _0x435acd){const _0x44e480={'id':_0x2a4e14(0x15e),'params':{'unitId':this[_0x2a4e14(0x340)],'actions':null,'textRanges':_0x355768[_0x2a4e14(0x341)]}},_0x4feca9=this[_0x2a4e14(0x1b9)]['transformMutation'](_0x4538b9,_0x44e480,!0x1);if(_0x1e8c75[_0x2a4e14(0x499)](_0x4feca9))throw _0x4feca9[_0x2a4e14(0x24e)];_0x435acd[_0x2a4e14(0x4f3)](_0x5eb281,{..._0x355768,'ranges':_0x4feca9['m2Prime'][_0x2a4e14(0x2f4)][_0x2a4e14(0x47f)]});}queueMicrotask(()=>{const _0x2c58cd=_0x2a4e14;this[_0x2c58cd(0x479)][_0x2c58cd(0x488)](_0x435acd);});})));}[_0x228849(0x1d6)](_0x28e4c2){const _0xe5752f=_0x228849;var _0x4e8fe0,_0x362cd3;const {memberID:_0x4445ca,selection:_0x457349}=_0x28e4c2['data'],_0x1536be=_0x500cfa(_0x457349),_0x3708de=(_0x362cd3=(_0x4e8fe0=this[_0xe5752f(0x2c7)][_0xe5752f(0x250)](this[_0xe5752f(0x340)],_0x4445ca))==null?void 0x0:_0x4e8fe0[_0xe5752f(0x268)])!=null?_0x362cd3:_0xe5752f(0x3c1),_0x5167ca={'color':this[_0xe5752f(0x38e)][_0xe5752f(0x4cf)](_0x4445ca),'name':_0x3708de,'ranges':_0x1536be},_0x4dc444=this[_0xe5752f(0x261)];_0x4dc444[_0xe5752f(0x4f3)](_0x4445ca,_0x5167ca),this[_0xe5752f(0x479)][_0xe5752f(0x488)](_0x4dc444);}[_0x228849(0x2d5)](_0x53e46a){const _0x205668=_0x228849,{memberID:_0x3b3b79}=_0x53e46a[_0x205668(0x1f8)],_0x2ded8c=this[_0x205668(0x261)];_0x2ded8c[_0x205668(0x2b1)](_0x3b3b79),this[_0x205668(0x479)][_0x205668(0x488)](_0x2ded8c);}[_0x228849(0x49f)](){const _0x584d60=_0x228849;var _0x37ed31;if(this[_0x584d60(0x332)]=!0x0,((_0x37ed31=this[_0x584d60(0x1ad)][_0x584d60(0x43f)]())==null?void 0x0:_0x37ed31[_0x584d60(0x2d1)]())!==this[_0x584d60(0x340)])return;const _0x3c3ace=this['_injector'][_0x584d60(0x24c)](_0x534040[_0x584d60(0x2f2)])['getSelections'](),_0x4d2691=_0x3c3ace==null?void 0x0:_0x3c3ace[_0x584d60(0x4db)](_0x534040[_0x584d60(0x446)]);Array[_0x584d60(0x441)](_0x4d2691)&&_0x4d2691[_0x584d60(0x430)]>0x0&&this['_updateLocalCursor'](_0x4d2691);}['_toggleOffline'](){const _0x3c48ec=_0x228849;this[_0x3c48ec(0x332)]=!0x1;}};_0x23d36a=_0x1bdabf([_0x3a8e95(0x2,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x3a8e95(0x3,_0x49bc9[_0x228849(0x31c)](_0x237467)),_0x3a8e95(0x4,_0x49bc9[_0x228849(0x31c)](_0x2f6a5d)),_0x3a8e95(0x5,_0x49bc9[_0x228849(0x31c)](_0x372338)),_0x3a8e95(0x6,_0x1e8c75['ITransformService']),_0x3a8e95(0x7,_0x226a7e[_0x228849(0x4aa)]),_0x3a8e95(0x8,_0x226a7e[_0x228849(0x48f)])],_0x23d36a);var _0x113942=Object[_0x228849(0x1fc)],_0x5e63f4=Object[_0x228849(0x1b4)],_0x52f132=(_0x2b1357,_0x48909d,_0x48b18d,_0x422e9a)=>{const _0x271ab2=_0x228849;for(var _0x509de8=_0x422e9a>0x1?void 0x0:_0x422e9a?_0x5e63f4(_0x48909d,_0x48b18d):_0x48909d,_0x51f39d=_0x2b1357[_0x271ab2(0x430)]-0x1,_0x5ab0e1;_0x51f39d>=0x0;_0x51f39d--)(_0x5ab0e1=_0x2b1357[_0x51f39d])&&(_0x509de8=(_0x422e9a?_0x5ab0e1(_0x48909d,_0x48b18d,_0x509de8):_0x5ab0e1(_0x509de8))||_0x509de8);return _0x422e9a&&_0x509de8&&_0x113942(_0x48909d,_0x48b18d,_0x509de8),_0x509de8;},_0x48838e=(_0x595699,_0xe6d144)=>(_0x273516,_0x2cb113)=>_0xe6d144(_0x273516,_0x2cb113,_0x595699);let _0x1ed5eb=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0x17802c,_0xa983c9,_0x88ebdb){const _0x5145df=_0x228849;super(),_0xaa2177(this,_0x5145df(0x339),new Map()),_0xaa2177(this,_0x5145df(0x24a),new _0x4e5e3f['Subject']()),(this['_univerInstanceService']=_0x17802c,this[_0x5145df(0x28b)]=_0xa983c9,this[_0x5145df(0x1e3)]=_0x88ebdb,this['_init']());}[_0x228849(0x485)](){const _0x549e6f=_0x228849;super[_0x549e6f(0x485)](),this[_0x549e6f(0x24a)][_0x549e6f(0x1dd)](),this[_0x549e6f(0x339)][_0x549e6f(0x3ad)](_0x43031f=>_0x43031f[_0x549e6f(0x485)]());}[_0x228849(0x254)](_0x46cbaf){const _0x9cacf9=_0x228849;return this[_0x9cacf9(0x339)][_0x9cacf9(0x1b2)](_0x46cbaf)?this[_0x9cacf9(0x339)][_0x9cacf9(0x24c)](_0x46cbaf)[_0x9cacf9(0x183)]:this[_0x9cacf9(0x24a)][_0x9cacf9(0x450)](_0x4e5e3f[_0x9cacf9(0x452)](_0xe6059b=>_0xe6059b[_0x9cacf9(0x340)]===_0x46cbaf),_0x4e5e3f[_0x9cacf9(0x32d)](_0x23c3ff=>_0x23c3ff['cursorInfo$']));}[_0x228849(0x285)](){const _0x3f9af8=_0x228849;this[_0x3f9af8(0x1ad)][_0x3f9af8(0x135)](_0x226a7e[_0x3f9af8(0x27d)]['UNIVER_SHEET'])['pipe'](_0x4e5e3f[_0x3f9af8(0x2e4)](this[_0x3f9af8(0x1ec)]))['subscribe'](async _0x512d8b=>{const _0x26e40d=_0x3f9af8,_0x7853a=_0x512d8b['getUnitId'](),_0x2c6a07=await this[_0x26e40d(0x397)](_0x7853a);this[_0x26e40d(0x24a)]['next'](_0x2c6a07),this[_0x26e40d(0x339)][_0x26e40d(0x4f3)](_0x7853a,_0x2c6a07);}),this[_0x3f9af8(0x1ad)][_0x3f9af8(0x135)](_0x226a7e[_0x3f9af8(0x27d)][_0x3f9af8(0x138)])[_0x3f9af8(0x450)](_0x4e5e3f[_0x3f9af8(0x2e4)](this[_0x3f9af8(0x1ec)]))[_0x3f9af8(0x450)](_0x4e5e3f['filter'](_0x393559=>!_0x393559['getUnitId']()['startsWith']('__')))[_0x3f9af8(0x22c)](async _0xd33699=>{const _0x503412=_0x3f9af8,_0x10ff4a=_0xd33699['getUnitId'](),_0x4c7be8=await this[_0x503412(0x439)](_0x10ff4a);this['_entityInit$']['next'](_0x4c7be8),this[_0x503412(0x339)][_0x503412(0x4f3)](_0x10ff4a,_0x4c7be8);}),_0x4e5e3f[_0x3f9af8(0x3d0)](this[_0x3f9af8(0x1ad)][_0x3f9af8(0x19d)](_0x226a7e[_0x3f9af8(0x27d)][_0x3f9af8(0x138)]),this['_univerInstanceService'][_0x3f9af8(0x19d)](_0x226a7e[_0x3f9af8(0x27d)][_0x3f9af8(0x390)]))[_0x3f9af8(0x450)](_0x4e5e3f[_0x3f9af8(0x2e4)](this[_0x3f9af8(0x1ec)]))[_0x3f9af8(0x22c)](_0x2ae575=>{const _0x18e27c=_0x3f9af8,_0x2492ea=_0x2ae575[_0x18e27c(0x2d1)](),_0x21de7f=this[_0x18e27c(0x339)][_0x18e27c(0x24c)](_0x2492ea);_0x21de7f&&(_0x21de7f[_0x18e27c(0x485)](),this[_0x18e27c(0x339)][_0x18e27c(0x2b1)](_0x2492ea));});}async[_0x228849(0x397)](_0x468053){const _0x291860=_0x228849,_0x415933=await this[_0x291860(0x1e3)]['requireSession'](_0x468053),_0x1b593c=this[_0x291860(0x28b)]['createInstance'](_0x4c09e8,_0x468053,_0x415933);return _0x1b593c[_0x291860(0x3bd)](),_0x1b593c;}async[_0x228849(0x439)](_0x3f72b5){const _0x58f6d5=_0x228849,_0x3986c1=await this['_collabSessionService'][_0x58f6d5(0x3a3)](_0x3f72b5),_0xa0abeb=this[_0x58f6d5(0x28b)][_0x58f6d5(0x178)](_0x23d36a,_0x3f72b5,_0x3986c1);return _0xa0abeb[_0x58f6d5(0x3bd)](),_0xa0abeb;}};_0x1ed5eb=_0x52f132([_0x226a7e['OnLifecycle'](_0x226a7e[_0x228849(0x179)][_0x228849(0x31d)],_0x1ed5eb),_0x48838e(0x0,_0x226a7e[_0x228849(0x4aa)]),_0x48838e(0x1,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x48838e(0x2,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x192)]))],_0x1ed5eb);const _0x4a66ac=0x14,_0x4eb8eb=0xc8,_0x32ce78=0x4,_0x1db62e=0x5;function _0x1566f8(_0x36aa68,_0x56eee6){const _0x51db1d=_0x228849;let {radius:_0x9e38c0,width:_0x148e4f,height:_0x56d88e}=_0x56eee6;_0x9e38c0=_0x9e38c0!=null?_0x9e38c0:0x0,_0x148e4f=_0x148e4f!=null?_0x148e4f:0x1e,_0x56d88e=_0x56d88e!=null?_0x56d88e:0x1e;let _0xfa4394=0x0,_0x84a859=0x0,_0x37c151=0x0;_0xfa4394=_0x84a859=_0x37c151=Math[_0x51db1d(0x18a)](_0x9e38c0,_0x148e4f/0x2,_0x56d88e/0x2),_0x36aa68['beginPath'](),_0x36aa68[_0x51db1d(0x385)](_0xfa4394,0x0),_0x36aa68[_0x51db1d(0x2ad)](_0x148e4f-_0x84a859,0x0),_0x36aa68['arc'](_0x148e4f-_0x84a859,_0x84a859,_0x84a859,Math['PI']*0x3/0x2,0x0,!0x1),_0x36aa68[_0x51db1d(0x2ad)](_0x148e4f,_0x56d88e-_0x37c151),_0x36aa68['arc'](_0x148e4f-_0x37c151,_0x56d88e-_0x37c151,_0x37c151,0x0,Math['PI']/0x2,!0x1),_0x36aa68['lineTo'](0x0,_0x56d88e),_0x36aa68[_0x51db1d(0x2ad)](0x0,_0xfa4394),_0x36aa68[_0x51db1d(0x34a)](_0xfa4394,_0xfa4394,_0xfa4394,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x36aa68[_0x51db1d(0x211)](),_0x56eee6['fill']&&(_0x36aa68[_0x51db1d(0x1e0)](),_0x36aa68[_0x51db1d(0x4a9)]=_0x56eee6[_0x51db1d(0x44c)],_0x56eee6['fillRule']==='evenodd'?_0x36aa68[_0x51db1d(0x44c)](_0x51db1d(0x208)):_0x36aa68[_0x51db1d(0x44c)](),_0x36aa68[_0x51db1d(0x1a4)]());}class _0x548988 extends _0x5b613a[_0x228849(0x30a)]{constructor(_0x27a74f,_0x19bbdf){const _0x579404=_0x228849;super(_0x27a74f,_0x19bbdf),_0xaa2177(this,'color'),_0xaa2177(this,_0x579404(0x48c)),(this[_0x579404(0x4dc)]=_0x19bbdf==null?void 0x0:_0x19bbdf[_0x579404(0x4dc)],this['text']=_0x19bbdf==null?void 0x0:_0x19bbdf[_0x579404(0x48c)]);}static[_0x228849(0x322)](_0x3390e8,_0x36e0ea){const _0x4a4b0c=_0x228849,{text:_0x17c4ee,color:_0x369c17}=_0x36e0ea;_0x3390e8['save'](),_0x3390e8[_0x4a4b0c(0x305)]=_0x4a4b0c(0x3bf);const _0x4075b9=_0x3390e8[_0x4a4b0c(0x3c7)](_0x17c4ee)['width'],_0x41e0a2=Math[_0x4a4b0c(0x18a)](_0x4075b9+0x2*_0x32ce78,_0x4eb8eb);_0x1566f8(_0x3390e8,{'height':_0x4a66ac,'radius':0x4,'width':_0x41e0a2,'fill':_0x369c17,'evented':!0x1}),_0x3390e8['fillStyle']=_0x4a4b0c(0x233);const _0x210205=_0x32ce78,_0x2dc182=_0x4a66ac-_0x1db62e,_0x59b4cd=_0x4eb8eb-0x2*_0x32ce78;if(_0x4075b9>_0x59b4cd){let _0x406bc0='',_0x5d02a0=0x0;for(const _0x88d082 of _0x17c4ee){const _0x2d03a7=_0x3390e8[_0x4a4b0c(0x3c7)](_0x88d082)[_0x4a4b0c(0x20b)];if(_0x5d02a0+_0x2d03a7<=_0x59b4cd-_0x3390e8['measureText'](_0x4a4b0c(0x132))[_0x4a4b0c(0x20b)])_0x406bc0+=_0x88d082,_0x5d02a0+=_0x2d03a7;else{_0x406bc0+=_0x4a4b0c(0x132);break;}}_0x3390e8['fillText'](_0x406bc0,_0x210205,_0x2dc182);}else _0x3390e8[_0x4a4b0c(0x258)](_0x17c4ee,_0x210205,_0x2dc182);_0x3390e8[_0x4a4b0c(0x1a4)]();}[_0x228849(0x1ba)](_0x2120de){const _0x33f7c5=_0x228849;_0x548988[_0x33f7c5(0x322)](_0x2120de,this);}}const _0x21324e=0x1,_0x422286=1.5;class _0x17e6ba extends _0x5b613a[_0x228849(0x30a)]{constructor(_0x8760e9,_0x1138de){const _0x5255e6=_0x228849;super(_0x8760e9,_0x1138de),_0xaa2177(this,_0x5255e6(0x4f7)),_0xaa2177(this,'_hovered',!0x1),_0xaa2177(this,_0x5255e6(0x380)),_0xaa2177(this,'_name',''),_0xaa2177(this,'_labelPosition',_0x5255e6(0x43c)),(_0x1138de&&this[_0x5255e6(0x2fc)](_0x1138de),this['onPointerEnterObserver']['add'](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeaveObserver']['add'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x228849(0x2fc)](_0x348e20){const _0x443c24=_0x228849;var _0x26b8ba,_0x432efb,_0x47da9b,_0x3575f8,_0x36bc8e;this[_0x443c24(0x4f7)]=(_0x26b8ba=_0x348e20['color'])!=null?_0x26b8ba:this[_0x443c24(0x4f7)],this[_0x443c24(0x153)]=(_0x432efb=_0x348e20['hovered'])!=null?_0x432efb:this[_0x443c24(0x153)],this['_range']=(_0x47da9b=_0x348e20['range'])!=null?_0x47da9b:this[_0x443c24(0x380)],this[_0x443c24(0x27f)]=(_0x3575f8=_0x348e20[_0x443c24(0x268)])!=null?_0x3575f8:this[_0x443c24(0x27f)],this[_0x443c24(0x2bc)]=(_0x36bc8e=_0x348e20[_0x443c24(0x1bf)])!=null?_0x36bc8e:this[_0x443c24(0x2bc)],this[_0x443c24(0x267)]({'width':_0x348e20[_0x443c24(0x20b)],'height':_0x348e20[_0x443c24(0x180)]});}['onMouseMove'](_0x7089e1){const _0x230caf=_0x228849,{row:_0x890dc4,column:_0x50c9b3}=_0x7089e1;if(_0x890dc4>=this[_0x230caf(0x380)][_0x230caf(0x41b)]&&_0x890dc4<=this[_0x230caf(0x380)][_0x230caf(0x2fd)]&&_0x50c9b3>=this['_range'][_0x230caf(0x42e)]&&_0x50c9b3<=this[_0x230caf(0x380)][_0x230caf(0x492)]){this[_0x230caf(0x2fc)]({'hovered':!0x0});return;}this[_0x230caf(0x2fc)]({'hovered':!0x1});}[_0x228849(0x3de)](_0x573811){return!0x1;}[_0x228849(0x1ba)](_0x48b518){const _0x52b3ec=_0x228849;_0x5b613a[_0x52b3ec(0x47e)]['drawWith'](_0x48b518,{'width':this[_0x52b3ec(0x20b)],'height':this[_0x52b3ec(0x180)],'strokeWidth':_0x422286,'stroke':this[_0x52b3ec(0x4f7)],'evented':!0x1}),this[_0x52b3ec(0x153)]&&(_0x48b518['save'](),_0x48b518[_0x52b3ec(0x331)](0x1,0x0,0x0,0x1,this[_0x52b3ec(0x20b)],this[_0x52b3ec(0x2bc)]===_0x52b3ec(0x3fe)?0x0:-_0x4a66ac),_0x548988[_0x52b3ec(0x322)](_0x48b518,{'text':this[_0x52b3ec(0x27f)],'color':this['_color']}),_0x48b518[_0x52b3ec(0x1a4)]());}}var _0x2962f4=Object[_0x228849(0x1fc)],_0x1ed94a=Object[_0x228849(0x1b4)],_0x5a872f=(_0x3f90d0,_0x32f458,_0x956d75,_0x56c7a6)=>{const _0x525ce7=_0x228849;for(var _0x1021d3=_0x56c7a6>0x1?void 0x0:_0x56c7a6?_0x1ed94a(_0x32f458,_0x956d75):_0x32f458,_0x486d05=_0x3f90d0[_0x525ce7(0x430)]-0x1,_0x5e3ab2;_0x486d05>=0x0;_0x486d05--)(_0x5e3ab2=_0x3f90d0[_0x486d05])&&(_0x1021d3=(_0x56c7a6?_0x5e3ab2(_0x32f458,_0x956d75,_0x1021d3):_0x5e3ab2(_0x1021d3))||_0x1021d3);return _0x56c7a6&&_0x1021d3&&_0x2962f4(_0x32f458,_0x956d75,_0x1021d3),_0x1021d3;},_0x5cba14=(_0x42a66e,_0x369ae3)=>(_0x23f110,_0x3d2299)=>_0x369ae3(_0x23f110,_0x3d2299,_0x42a66e);let _0x7ed5d=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0x5c7535,_0x28f412,_0x575157,_0x49a2a7){const _0x291253=_0x228849;super(),_0xaa2177(this,_0x291253(0x4bb),new Set()),_0xaa2177(this,_0x291253(0x3a9),null),(this[_0x291253(0x3c2)]=_0x5c7535,this[_0x291253(0x1ad)]=_0x28f412,this['_renderManagerService']=_0x575157,this['_themeService']=_0x49a2a7,this[_0x291253(0x285)]());}get[_0x228849(0x2c0)](){const _0x885a37=_0x228849;return this[_0x885a37(0x4c0)]['getRenderById'](this[_0x885a37(0x1ad)][_0x885a37(0x1e1)](_0x226a7e[_0x885a37(0x27d)][_0x885a37(0x390)])[_0x885a37(0x2d1)]())[_0x885a37(0x186)](_0x1a2a28[_0x885a37(0x3b3)]);}get[_0x228849(0x30b)](){const _0x407cf0=_0x228849;return this['_univerInstanceService']['getCurrentUnitForType'](_0x226a7e[_0x407cf0(0x27d)][_0x407cf0(0x390)])['getUnitId']();}[_0x228849(0x285)](){const _0x4baef5=_0x228849;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x4baef5(0x450)](_0x4d72f4[_0x4baef5(0x2e4)](this[_0x4baef5(0x1ec)]),_0x4d72f4[_0x4baef5(0x32d)](_0x306235=>{const _0xcbfd4c=_0x4baef5;if(_0x306235){const _0xf4e939=_0x306235['sheetId'];return _0x4e5e3f['combineLatest'](this['_collabCursorController'][_0xcbfd4c(0x254)](this[_0xcbfd4c(0x30b)]),this['_themeService'][_0xcbfd4c(0x301)])['pipe'](_0x4d72f4[_0xcbfd4c(0x4db)](([_0xacca2e,_0x1a852a])=>{const _0xf36e8a=_0xcbfd4c,_0x486021=new Map();return _0xacca2e[_0xf36e8a(0x3ad)]((_0x998205,_0x5707f9)=>{const _0x53cac0=_0xf36e8a;if(_0x998205[_0x53cac0(0x234)]===_0xf4e939){const _0x55e242={..._0x998205};_0x55e242[_0x53cac0(0x4dc)]=_0x1a852a[_0x998205[_0x53cac0(0x4dc)]],_0x486021['set'](_0x5707f9,_0x55e242);}}),{'skeleton':_0x306235,'cursors':_0x486021};}));}return _0x4e5e3f['of']({'skeleton':null,'cursors':new Map()});}))[_0x4baef5(0x22c)](({skeleton:_0x277814,cursors:_0x1b5b9b})=>{const _0x354ce9=_0x4baef5;this[_0x354ce9(0x1ed)](),_0x277814&&this['_updateCollabCursors'](_0x277814,_0x1b5b9b);}),this[_0x4baef5(0x2c0)][_0x4baef5(0x34d)][_0x4baef5(0x22c)](_0x23efbe=>{const _0x41b22c=_0x4baef5;if(_0x23efbe==null)return;const {skeleton:_0x2805fd}=_0x23efbe,_0x5841cb=this['_renderManagerService']['getRenderById'](this[_0x41b22c(0x30b)]),{scene:_0x2aeb04}=_0x5841cb;_0x2aeb04[_0x41b22c(0x4e6)]['add'](_0x270255(_0x3e79f1=>{const _0x3b7e25=_0x41b22c;var _0x2959be,_0x3c4090;const {offsetX:_0x1b3b9f,offsetY:_0x5721f9}=_0x3e79f1,{x:_0x4caf8e,y:_0x29427f}=_0x2aeb04[_0x3b7e25(0x353)](_0x5b613a[_0x3b7e25(0x2aa)][_0x3b7e25(0x3f9)]([_0x1b3b9f,_0x5721f9])),{scaleX:_0x364361,scaleY:_0x36865f}=_0x2aeb04[_0x3b7e25(0x190)](),_0x29e94c=_0x2aeb04[_0x3b7e25(0x206)](_0x1a2a28[_0x3b7e25(0x315)][_0x3b7e25(0x451)]),_0x3d1412=_0x2aeb04[_0x3b7e25(0x1a2)](_0x5b613a['Vector2'][_0x3b7e25(0x3f9)]([_0x4caf8e,_0x29427f]),_0x29e94c),_0x377c68=_0x2805fd[_0x3b7e25(0x3f0)](_0x1b3b9f,_0x5721f9,_0x364361,_0x36865f,_0x3d1412);((_0x2959be=this[_0x3b7e25(0x3a9)])==null?void 0x0:_0x2959be[_0x3b7e25(0x47d)])===_0x377c68[_0x3b7e25(0x47d)]&&((_0x3c4090=this['_lastPointer'])==null?void 0x0:_0x3c4090['row'])===_0x377c68[_0x3b7e25(0x444)]||this[_0x3b7e25(0x4bb)][_0x3b7e25(0x3ad)](_0x271b2f=>{_0x271b2f['onMouseMove'](_0x377c68);});},0x64));});}['_updateCollabCursors'](_0xca3589,_0x27a368){const _0x133963=_0x228849;var _0x307384;const _0x5cd0be=(_0x307384=this[_0x133963(0x2c0)][_0x133963(0x259)]())==null?void 0x0:_0x307384['skeleton'];if(!_0x5cd0be)return;const _0x387c5e=this[_0x133963(0x1bb)]();if(!_0x387c5e)return;this['_cursors'][_0x133963(0x3ad)](_0xa612a3=>{const _0x10b9cd=_0x133963;_0xa612a3[_0x10b9cd(0x1f3)]();});const {scene:_0xf3e0b1}=_0x387c5e,_0x6d256=_0x4d7979(Array[_0x133963(0x41c)](_0x27a368[_0x133963(0x2a5)]()))[_0x133963(0x4db)](_0x23b310=>{const _0xe21ce6=_0x133963,{color:_0x181d1f,range:_0x576e78,name:_0x184591,selection:_0x523571,sheetID:_0x22f210}=_0x23b310,{startColumn:_0x270935,startRow:_0x1049cb,endColumn:_0x5c184b,endRow:_0xbf488e}=_0x576e78,_0x5611f8=_0x1a2a28[_0xe21ce6(0x335)](_0x1049cb,_0x270935,_0xf3e0b1,_0x5cd0be),_0x2427a9=_0x1a2a28['getCoordByCell'](_0xbf488e,_0x5c184b,_0xf3e0b1,_0x5cd0be),{columnHeaderHeightAndMarginTop:_0x523f79}=_0x5cd0be,{startX:_0x10bfc6,startY:_0x196ce0}=_0x5611f8,{endX:_0xc78d04,endY:_0x2ef3a4}=_0x2427a9,_0x194040=_0xc78d04-_0x10bfc6,_0x9c917d=_0x2ef3a4-_0x196ce0,_0x21ccb4={'labelPosition':_0x196ce0-_0x523f79>=_0x4a66ac?_0xe21ce6(0x43c):_0xe21ce6(0x3fe),'sheetID':_0x22f210,'range':_0x576e78,'color':_0x181d1f,'name':_0x184591,'selection':_0x523571,'left':_0x10bfc6,'top':_0x196ce0,'width':_0x194040,'height':_0x9c917d,'evented':!0x1};return new _0x17e6ba(_0x184591,_0x21ccb4);});_0xf3e0b1[_0x133963(0x3a2)](_0x6d256,_0x21324e),this[_0x133963(0x4bb)]=new Set(_0x6d256);}[_0x228849(0x1ed)](){const _0x1482cf=_0x228849;var _0x487c61;(_0x487c61=this[_0x1482cf(0x4bb)])==null||_0x487c61[_0x1482cf(0x3ad)](_0x578e9d=>_0x578e9d[_0x1482cf(0x485)]());}[_0x228849(0x1bb)](){const _0x18a33b=_0x228849;return _0x1a2a28[_0x18a33b(0x364)](this[_0x18a33b(0x1ad)],this['_renderManagerService']);}};_0x7ed5d=_0x5a872f([_0x226a7e['OnLifecycle'](_0x226a7e[_0x228849(0x179)]['Steady'],_0x7ed5d),_0x5cba14(0x0,_0x49bc9[_0x228849(0x31c)](_0x1ed5eb)),_0x5cba14(0x1,_0x226a7e[_0x228849(0x4aa)]),_0x5cba14(0x2,_0x5b613a[_0x228849(0x4ac)]),_0x5cba14(0x3,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x201)]))],_0x7ed5d);function _0x4d7979(_0x4595e1){const _0x4ccf15=_0x228849,_0x550e1b=new Map();return _0x4595e1[_0x4ccf15(0x3ad)](_0x1aa886=>{const _0x1c4abc=_0x4ccf15;if(_0x550e1b['has'](_0x1aa886[_0x1c4abc(0x224)])){const _0x2dc464=_0x550e1b[_0x1c4abc(0x24c)](_0x1aa886[_0x1c4abc(0x224)]);_0x2dc464[_0x1c4abc(0x268)]+=',\x20'+_0x1aa886[_0x1c4abc(0x268)];}else _0x550e1b['set'](_0x1aa886[_0x1c4abc(0x224)],_0x1aa886);}),Array[_0x4ccf15(0x41c)](_0x550e1b[_0x4ccf15(0x2a5)]());}var _0x55a227=function(){return _0x55a227=Object['assign']||function(_0x2dfbc7){const _0x60f4a3=_0x572c;for(var _0x26da07,_0x3c95f3=0x1,_0x3bea7e=arguments[_0x60f4a3(0x430)];_0x3c95f3<_0x3bea7e;_0x3c95f3++){_0x26da07=arguments[_0x3c95f3];for(var _0x2b413d in _0x26da07)Object['prototype'][_0x60f4a3(0x223)][_0x60f4a3(0x3d8)](_0x26da07,_0x2b413d)&&(_0x2dfbc7[_0x2b413d]=_0x26da07[_0x2b413d]);}return _0x2dfbc7;},_0x55a227['apply'](this,arguments);},_0x5e9d41=function(_0x858f26,_0x1b9a70){const _0x53eebb=_0x228849;var _0x5bc732={};for(var _0x6ae6d8 in _0x858f26)Object[_0x53eebb(0x47b)]['hasOwnProperty'][_0x53eebb(0x3d8)](_0x858f26,_0x6ae6d8)&&_0x1b9a70[_0x53eebb(0x39a)](_0x6ae6d8)<0x0&&(_0x5bc732[_0x6ae6d8]=_0x858f26[_0x6ae6d8]);if(_0x858f26!=null&&typeof Object['getOwnPropertySymbols']==_0x53eebb(0x3e3)){for(var _0xc3b0cc=0x0,_0x6ae6d8=Object[_0x53eebb(0x22a)](_0x858f26);_0xc3b0cc<_0x6ae6d8[_0x53eebb(0x430)];_0xc3b0cc++)_0x1b9a70[_0x53eebb(0x39a)](_0x6ae6d8[_0xc3b0cc])<0x0&&Object[_0x53eebb(0x47b)]['propertyIsEnumerable'][_0x53eebb(0x3d8)](_0x858f26,_0x6ae6d8[_0xc3b0cc])&&(_0x5bc732[_0x6ae6d8[_0xc3b0cc]]=_0x858f26[_0x6ae6d8[_0xc3b0cc]]);}return _0x5bc732;},_0x45b96a=_0x53ebe1[_0x228849(0x235)](function(_0x3b763e,_0xb7a019){const _0x591d1c=_0x228849;var _0x2bb9b3=_0x3b763e['icon'],_0x1c5953=_0x3b763e['id'],_0x965ef=_0x3b763e['className'],_0x244b7c=_0x3b763e['extend'],_0x271e84=_0x5e9d41(_0x3b763e,['icon','id',_0x591d1c(0x219),_0x591d1c(0x480)]),_0x4e8d5a=_0x591d1c(0x236)[_0x591d1c(0x405)](_0x1c5953,'\x20')[_0x591d1c(0x405)](_0x965ef||'')[_0x591d1c(0x1ca)](),_0x1207ab=_0x53ebe1[_0x591d1c(0x15b)]('_'[_0x591d1c(0x405)](_0x296f64()));return _0x5f3d81(_0x2bb9b3,''[_0x591d1c(0x405)](_0x1c5953),{'defIds':_0x2bb9b3[_0x591d1c(0x45f)],'idSuffix':_0x1207ab[_0x591d1c(0x1f5)]},_0x55a227({'ref':_0xb7a019,'className':_0x4e8d5a},_0x271e84),_0x244b7c);});function _0x5f3d81(_0x161c2c,_0x450ed5,_0x3ef759,_0x3f4330,_0x5c464f){const _0x570343=_0x228849;return _0x53ebe1[_0x570343(0x436)](_0x161c2c[_0x570343(0x262)],_0x55a227(_0x55a227({'key':_0x450ed5},_0x5b7bb7(_0x161c2c,_0x3ef759,_0x5c464f)),_0x3f4330),(_0x37132d(_0x161c2c,_0x3ef759)['children']||[])[_0x570343(0x4db)](function(_0x248624,_0x4d2df4){const _0x479de5=_0x570343;return _0x5f3d81(_0x248624,''[_0x479de5(0x405)](_0x450ed5,'-')[_0x479de5(0x405)](_0x161c2c['tag'],'-')[_0x479de5(0x405)](_0x4d2df4),_0x3ef759,void 0x0,_0x5c464f);}));}function _0x5b7bb7(_0x57fc72,_0xd71d47,_0x4d4d99){const _0x244142=_0x228849;var _0x242cce=_0x55a227({},_0x57fc72['attrs']);_0x4d4d99!=null&&_0x4d4d99[_0x244142(0x2b8)]&&_0x242cce[_0x244142(0x44c)]===_0x244142(0x2b8)&&(_0x242cce[_0x244142(0x44c)]=_0x4d4d99['colorChannel1']);var _0x359174=_0xd71d47['defIds'];return!_0x359174||_0x359174[_0x244142(0x430)]===0x0||(_0x57fc72['tag']===_0x244142(0x149)&&_0x242cce[_0x244142(0x251)]&&(_0x242cce[_0x244142(0x251)]=_0x242cce[_0x244142(0x251)]+_0xd71d47[_0x244142(0x308)]),Object[_0x244142(0x4bf)](_0x242cce)['forEach'](function(_0xffa0ba){const _0x2c186f=_0x244142;var _0x16fa32=_0xffa0ba[0x0],_0x1f3f70=_0xffa0ba[0x1];typeof _0x1f3f70==_0x2c186f(0x1a8)&&(_0x242cce[_0x16fa32]=_0x1f3f70[_0x2c186f(0x281)](/url\(#(.*)\)/,_0x2c186f(0x25b)['concat'](_0xd71d47[_0x2c186f(0x308)],')')));})),_0x242cce;}function _0x37132d(_0x47e736,_0x249593){const _0x4fb3d9=_0x228849;var _0x9f0345,_0x575e00=_0x249593[_0x4fb3d9(0x45f)];return!_0x575e00||_0x575e00[_0x4fb3d9(0x430)]===0x0?_0x47e736:_0x47e736['tag']===_0x4fb3d9(0x1f6)&&(!((_0x9f0345=_0x47e736[_0x4fb3d9(0x46d)])===null||_0x9f0345===void 0x0)&&_0x9f0345[_0x4fb3d9(0x430)])?_0x55a227(_0x55a227({},_0x47e736),{'children':_0x47e736[_0x4fb3d9(0x46d)][_0x4fb3d9(0x4db)](function(_0x3a9333){const _0x3a37a3=_0x4fb3d9;return typeof _0x3a9333['attrs']['id']==_0x3a37a3(0x1a8)&&_0x575e00&&_0x575e00[_0x3a37a3(0x39a)](_0x3a9333[_0x3a37a3(0x252)]['id'])>-0x1?_0x55a227(_0x55a227({},_0x3a9333),{'attrs':_0x55a227(_0x55a227({},_0x3a9333['attrs']),{'id':_0x3a9333['attrs']['id']+_0x249593[_0x3a37a3(0x308)]})}):_0x3a9333;})}):_0x47e736;}function _0x296f64(){const _0x4fb737=_0x228849;return Math[_0x4fb737(0x14c)]()[_0x4fb737(0x31a)](0x24)['substring'](0x2,0x8);}_0x45b96a[_0x228849(0x4e3)]=_0x228849(0x13d);var _0x1cacce={'tag':_0x228849(0x17c),'attrs':{'fill':_0x228849(0x3ae),'viewBox':_0x228849(0x3b4),'width':_0x228849(0x245),'height':_0x228849(0x245)},'children':[{'tag':'g','attrs':{'clipPath':_0x228849(0x31f)},'children':[{'tag':'path','attrs':{'stroke':_0x228849(0x4b9),'d':_0x228849(0x37e),'strokeLinecap':_0x228849(0x314),'strokeLinejoin':_0x228849(0x314),'strokeWidth':1.2}}]},{'tag':_0x228849(0x1f6),'attrs':{},'children':[{'tag':_0x228849(0x1b8),'attrs':{'id':_0x228849(0x221)},'children':[{'tag':_0x228849(0x2d2),'attrs':{'fill':_0x228849(0x370),'d':_0x228849(0x3ba)}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0x153d57=_0x53ebe1[_0x228849(0x235)](function(_0x5726b6,_0x3051ee){const _0x192473=_0x228849;return _0x53ebe1[_0x192473(0x436)](_0x45b96a,Object[_0x192473(0x2fb)]({},_0x5726b6,{'id':'off-line-single','ref':_0x3051ee,'icon':_0x1cacce}));});_0x153d57['displayName']='OffLineSingle';var _0x27b51d={'tag':'svg','attrs':{'fill':_0x228849(0x3ae),'viewBox':_0x228849(0x343),'width':_0x228849(0x245),'height':_0x228849(0x245)},'children':[{'tag':'g','attrs':{'clipPath':_0x228849(0x4b0)},'children':[{'tag':'path','attrs':{'stroke':_0x228849(0x4b9),'d':_0x228849(0x466),'strokeLinecap':_0x228849(0x314),'strokeLinejoin':_0x228849(0x314),'strokeWidth':1.2}}]},{'tag':_0x228849(0x1f6),'attrs':{},'children':[{'tag':_0x228849(0x1b8),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x228849(0x2d2),'attrs':{'fill':_0x228849(0x370),'d':_0x228849(0x3ba),'transform':_0x228849(0x349)}}]}]}],'defIds':[_0x228849(0x469)]},_0x5d5fb5=_0x53ebe1[_0x228849(0x235)](function(_0x336a3c,_0x49bfba){const _0x103179=_0x228849;return _0x53ebe1[_0x103179(0x436)](_0x45b96a,Object[_0x103179(0x2fb)]({},_0x336a3c,{'id':_0x103179(0x404),'ref':_0x49bfba,'icon':_0x27b51d}));});_0x5d5fb5[_0x228849(0x4e3)]=_0x228849(0x3ea);const _0x4f39b2={'onlineStatusIcon':_0x228849(0x49e),'onlineStatusTitle':_0x228849(0x3cd),'onlineStatus':_0x228849(0x421),'online':_0x228849(0x3a5),'offline':_0x228849(0x167)};function _0x2a03b0(_0x49fda4){const _0x34ed16=_0x228849;switch(_0x49fda4){case _0x4577df['OFFLINE']:return _0x34ed16(0x4b2);case _0x4577df['CONFLICT']:return _0x34ed16(0x264);case _0x4577df[_0x34ed16(0x3d5)]:return _0x34ed16(0x426);case _0x4577df[_0x34ed16(0x4e8)]:return'collabStatus.notCollab';case _0x4577df[_0x34ed16(0x44f)]:case _0x4577df[_0x34ed16(0x1b3)]:case _0x4577df[_0x34ed16(0x19c)]:return _0x34ed16(0x28d);case _0x4577df['SYNCED']:return'collabStatus.synced';}}function _0x10b395(_0x4394da){const _0x17dfe5=_0x228849,{status$:_0x2e943b}=_0x4394da,_0x17bd3f=_0x15005b[_0x17dfe5(0x43a)](_0x2e943b,_0x4577df[_0x17dfe5(0x4e8)]),_0x3a6f8b=_0x3c1409[_0x17dfe5(0x12d)](_0x226a7e[_0x17dfe5(0x355)]),_0x5dff16=_0x17bd3f!==_0x4577df[_0x17dfe5(0x26d)],_0x3ed565=_0x3a6f8b['t'](_0x2a03b0(_0x17bd3f)),_0x5024ff=_0xb8caad(_0x4f39b2[_0x17dfe5(0x3d4)],{[_0x4f39b2[_0x17dfe5(0x4cd)]]:_0x5dff16,[_0x4f39b2[_0x17dfe5(0x297)]]:!_0x5dff16}),_0x1e25ca=_0x5dff16?_0x53ebe1[_0x17dfe5(0x436)](_0x5d5fb5,null):_0x53ebe1['createElement'](_0x153d57,null);return _0x53ebe1[_0x17dfe5(0x436)](_0x17dfe5(0x4af),{'className':_0x5024ff},_0x53ebe1[_0x17dfe5(0x436)]('div',{'className':_0x4f39b2[_0x17dfe5(0x1b0)]},_0x1e25ca),_0x53ebe1['createElement'](_0x17dfe5(0x4af),{'className':_0x4f39b2[_0x17dfe5(0x19f)]},_0x3ed565));}var _0x3574b5=Object['defineProperty'],_0x1acfd1=Object[_0x228849(0x1b4)],_0x165386=(_0x2b37db,_0x5ed972,_0x2f7e87,_0x34a6ad)=>{for(var _0x10c5fd=_0x34a6ad>0x1?void 0x0:_0x34a6ad?_0x1acfd1(_0x5ed972,_0x2f7e87):_0x5ed972,_0x2e3c15=_0x2b37db['length']-0x1,_0x597063;_0x2e3c15>=0x0;_0x2e3c15--)(_0x597063=_0x2b37db[_0x2e3c15])&&(_0x10c5fd=(_0x34a6ad?_0x597063(_0x5ed972,_0x2f7e87,_0x10c5fd):_0x597063(_0x10c5fd))||_0x10c5fd);return _0x34a6ad&&_0x10c5fd&&_0x3574b5(_0x5ed972,_0x2f7e87,_0x10c5fd),_0x10c5fd;},_0x16193c=(_0x4affc0,_0x43f8ec)=>(_0x8a5b98,_0x3318ff)=>_0x43f8ec(_0x8a5b98,_0x3318ff,_0x4affc0);_0x431c6f['DesktopCollaborationStatusDisplayController']=class extends _0x226a7e[_0x228849(0x484)]{constructor(_0x3b2da7,_0x3fef30,_0xe46040,_0x442d96){const _0x5e2f6b=_0x228849;super(),_0xaa2177(this,_0x5e2f6b(0x3ee),new _0x4e5e3f[(_0x5e2f6b(0x2e7))](_0x4577df['NOT_COLLAB'])),(this[_0x5e2f6b(0x1ad)]=_0x3b2da7,this[_0x5e2f6b(0x3d6)]=_0x3fef30,this[_0x5e2f6b(0x28b)]=_0xe46040,this[_0x5e2f6b(0x318)]=_0x442d96,this[_0x5e2f6b(0x4d0)](),this['_initStatusListener']());}[_0x228849(0x4d0)](){const _0x1bcdae=_0x228849;this[_0x1bcdae(0x231)](this[_0x1bcdae(0x3d6)][_0x1bcdae(0x3fb)](_0x15005b[_0x1bcdae(0x31e)][_0x1bcdae(0x191)],()=>_0x3c1409[_0x1bcdae(0x33a)](_0x20ec41({'status$':this['_status$'][_0x1bcdae(0x1fe)]()}),this[_0x1bcdae(0x28b)])));}[_0x228849(0x387)](){const _0xf467f5=_0x228849;this[_0xf467f5(0x231)](_0x226a7e['toDisposable'](this[_0xf467f5(0x1ad)][_0xf467f5(0x1c0)][_0xf467f5(0x450)](_0x4e5e3f['switchMap'](()=>{const _0x14a312=_0xf467f5,_0x1e2c8f=this[_0x14a312(0x1ad)]['getFocusedUnit']();return _0x1e2c8f?this[_0x14a312(0x318)][_0x14a312(0x40d)](_0x1e2c8f[_0x14a312(0x2d1)]()):_0x4e5e3f['of'](null);}),_0x4e5e3f['switchMap'](_0xa31bc0=>_0xa31bc0?_0xa31bc0[_0xf467f5(0x168)]:_0x4e5e3f['of'](_0x4577df['NOT_COLLAB'])))[_0xf467f5(0x22c)](_0x5e7fe5=>{const _0x324dd0=_0xf467f5;this[_0x324dd0(0x3ee)][_0x324dd0(0x488)](_0x5e7fe5);})));}},_0x431c6f[_0x228849(0x422)]=_0x165386([_0x226a7e[_0x228849(0x4f0)](_0x226a7e[_0x228849(0x179)][_0x228849(0x31d)],_0x431c6f[_0x228849(0x422)]),_0x16193c(0x0,_0x226a7e['IUniverInstanceService']),_0x16193c(0x1,_0x15005b[_0x228849(0x21a)]),_0x16193c(0x2,_0x49bc9[_0x228849(0x31c)](_0x49bc9[_0x228849(0x36c)])),_0x16193c(0x3,_0x49bc9[_0x228849(0x31c)](_0x431c6f[_0x228849(0x2cb)]))],_0x431c6f[_0x228849(0x422)]);function _0x20ec41(_0xe67217){const {status$:_0x4a4d0b}=_0xe67217;return function(){const _0x4a4755=_0x572c;return _0x53ebe1[_0x4a4755(0x436)](_0x10b395,{'status$':_0x4a4d0b});};}const _0x445d9f=_0x49bc9[_0x228849(0x175)](_0x228849(0x2df));var _0x5dc4d8=Object[_0x228849(0x1fc)],_0x5226f4=Object[_0x228849(0x1b4)],_0x5bdb34=(_0x3c1dbf,_0x3ec1bd,_0x42dcd7,_0x33cca7)=>{const _0x3509d8=_0x228849;for(var _0x2bc739=_0x33cca7>0x1?void 0x0:_0x33cca7?_0x5226f4(_0x3ec1bd,_0x42dcd7):_0x3ec1bd,_0x2d4220=_0x3c1dbf[_0x3509d8(0x430)]-0x1,_0x1fa549;_0x2d4220>=0x0;_0x2d4220--)(_0x1fa549=_0x3c1dbf[_0x2d4220])&&(_0x2bc739=(_0x33cca7?_0x1fa549(_0x3ec1bd,_0x42dcd7,_0x2bc739):_0x1fa549(_0x2bc739))||_0x2bc739);return _0x33cca7&&_0x2bc739&&_0x5dc4d8(_0x3ec1bd,_0x42dcd7,_0x2bc739),_0x2bc739;},_0x1baa29=(_0x344342,_0x5bbb33)=>(_0x47fc9c,_0x40f1b5)=>_0x5bbb33(_0x47fc9c,_0x40f1b5,_0x344342);_0x431c6f['DataLoaderController']=class extends _0x226a7e[_0x228849(0x2ac)]{constructor(_0x27ec9c,_0x1b712e,_0x530a33,_0x533e12,_0x332585,_0x4b5348){const _0x4f5162=_0x228849;super(),this[_0x4f5162(0x2a4)]=_0x27ec9c,this[_0x4f5162(0x464)]=_0x1b712e,this['_commandService']=_0x530a33,this[_0x4f5162(0x3ef)]=_0x533e12,this[_0x4f5162(0x4d6)]=_0x332585,_0x4b5348?_0x4b5348==null||_0x4b5348[_0x4f5162(0x358)]()[_0x4f5162(0x1ae)](()=>this['_init']()):(this['_logService'][_0x4f5162(0x434)](_0x4f5162(0x40e),_0x4f5162(0x2b2)),this[_0x4f5162(0x285)]());}async[_0x228849(0x285)](){const _0x3b11bc=_0x228849,_0x36e5a6=this[_0x3b11bc(0x2a4)][_0x3b11bc(0x1ac)](_0x3b11bc(0x43b)),_0x19c3a1=this[_0x3b11bc(0x2a4)]['getParam'](_0x3b11bc(0x354));if(!_0x36e5a6||!_0x19c3a1){this['_logService'][_0x3b11bc(0x434)]('[DataLoaderController]',_0x3b11bc(0x145));return;}switch(Number(_0x19c3a1)){case _0xf0e06f[_0x3b11bc(0x390)]:{const _0x3e82f6=await this[_0x3b11bc(0x2e2)](_0x36e5a6);this['_setupSubUnitSync'](_0x3e82f6);break;}case _0xf0e06f['UNIVER_DOC']:{await this[_0x3b11bc(0x316)](_0x36e5a6);break;}default:{this[_0x3b11bc(0x464)][_0x3b11bc(0x24e)](_0x3b11bc(0x40e),_0x3b11bc(0x4e7));break;}}}async['_setupSubUnitSync'](_0x2f0498){const _0x45945d=_0x228849;await this[_0x45945d(0x438)](_0x2f0498),_0x2f0498[_0x45945d(0x2a7)]['pipe'](_0x4e5e3f[_0x45945d(0x2e4)](this[_0x45945d(0x1ec)]))[_0x45945d(0x22c)](_0x5d96f2=>{const _0x4781dd=_0x45945d;_0x5d96f2&&this[_0x4781dd(0x2c2)](_0x5d96f2);}),this[_0x45945d(0x2a4)][_0x45945d(0x1d2)][_0x45945d(0x450)](_0x4e5e3f['takeUntil'](this[_0x45945d(0x1ec)]))[_0x45945d(0x22c)](()=>this['_updateSubUnitFromURLParams'](_0x2f0498));}[_0x228849(0x2c2)](_0x2b7dba,_0x5139ba=!0x1){const _0x2628ea=_0x228849,_0x1c23b5=this[_0x2628ea(0x2a4)]['getParam'](_0x2628ea(0x288));_0x2b7dba[_0x2628ea(0x1a6)]()!==_0x1c23b5&&this[_0x2628ea(0x2a4)]['setParam'](_0x2628ea(0x288),_0x2b7dba[_0x2628ea(0x1a6)](),_0x5139ba);}async[_0x228849(0x438)](_0x1eb3c5){const _0x5e52d2=_0x228849,_0x41e33e=this[_0x5e52d2(0x2a4)][_0x5e52d2(0x1ac)](_0x5e52d2(0x288));if(!_0x41e33e||!_0x1eb3c5[_0x5e52d2(0x140)](_0x41e33e)){this[_0x5e52d2(0x2c2)](_0x1eb3c5[_0x5e52d2(0x4a3)](),!0x0);return;}_0x1eb3c5[_0x5e52d2(0x4a3)]()[_0x5e52d2(0x1a6)]()!==_0x41e33e&&await this[_0x5e52d2(0x4b6)][_0x5e52d2(0x12c)](_0x3acf4c[_0x5e52d2(0x2dc)]['id'],{'unitId':_0x1eb3c5['getUnitId'](),'subUnitId':_0x41e33e});}async[_0x228849(0x2e2)](_0x446d35){const _0x242ae0=_0x228849;let _0x18cb66=0x0;const _0x329041=await this[_0x242ae0(0x3ef)][_0x242ae0(0x33c)](_0x446d35);return _0x329041&&(_0x329041[_0x242ae0(0x27a)]||_0x329041[_0x242ae0(0x357)][_0x242ae0(0x430)]!==0x0)&&(_0x18cb66=_0x329041['rev']),_0x18cb66===0x0&&this[_0x242ae0(0x464)][_0x242ae0(0x434)](_0x242ae0(0x40e),_0x242ae0(0x1ef)),this[_0x242ae0(0x4d6)]['loadSheet'](_0x446d35,_0x18cb66);}async['_loadDoc'](_0x4954c7){const _0x410f53=_0x228849;let _0x717872=0x0;const _0x464787=await this['_localCacheService']['loadOfflineData'](_0x4954c7);return _0x464787&&(_0x464787[_0x410f53(0x27a)]||_0x464787[_0x410f53(0x357)][_0x410f53(0x430)]!==0x0)&&(_0x717872=_0x464787[_0x410f53(0x43d)]),_0x717872===0x0&&this[_0x410f53(0x464)][_0x410f53(0x434)]('[DataLoaderController]',_0x410f53(0x1ef)),this[_0x410f53(0x4d6)]['loadDoc'](_0x4954c7,_0x717872);}},_0x431c6f['DataLoaderController']=_0x5bdb34([_0x226a7e['OnLifecycle'](_0x226a7e['LifecycleStages']['Starting'],_0x431c6f['DataLoaderController']),_0x1baa29(0x0,_0x445d9f),_0x1baa29(0x1,_0x226a7e['ILogService']),_0x1baa29(0x2,_0x226a7e[_0x228849(0x48f)]),_0x1baa29(0x3,_0x49bc9['Inject'](_0x431c6f[_0x228849(0x361)])),_0x1baa29(0x4,_0x49bc9['Inject'](_0x1e8c75[_0x228849(0x35e)])),_0x1baa29(0x5,_0x49bc9[_0x228849(0x195)](_0x5cea30['IRemoteInstanceService']))],_0x431c6f[_0x228849(0x276)]);var _0xa1ed34=Object[_0x228849(0x1fc)],_0x2e14a9=Object[_0x228849(0x1b4)],_0x392950=(_0x474cef,_0x371d18,_0xdf4b14,_0x31c5f4)=>{const _0x2b111e=_0x228849;for(var _0x1d4622=_0x31c5f4>0x1?void 0x0:_0x31c5f4?_0x2e14a9(_0x371d18,_0xdf4b14):_0x371d18,_0x3c5f4c=_0x474cef[_0x2b111e(0x430)]-0x1,_0x22faa3;_0x3c5f4c>=0x0;_0x3c5f4c--)(_0x22faa3=_0x474cef[_0x3c5f4c])&&(_0x1d4622=(_0x31c5f4?_0x22faa3(_0x371d18,_0xdf4b14,_0x1d4622):_0x22faa3(_0x1d4622))||_0x1d4622);return _0x31c5f4&&_0x1d4622&&_0xa1ed34(_0x371d18,_0xdf4b14,_0x1d4622),_0x1d4622;},_0xb3d37c=(_0x55e80d,_0x6959dd)=>(_0x1f7d22,_0x37294a)=>_0x6959dd(_0x1f7d22,_0x37294a,_0x55e80d);const _0x2e1ac0='DEFAULT_FILE_NAME',_0xec1139=_0x228849(0x1ab);let _0x46b6ae=class extends _0x226a7e[_0x228849(0x484)]{constructor(_0x4b7407,_0x4d92f5){const _0x46d9bf=_0x228849;super(),this[_0x46d9bf(0x1ad)]=_0x4b7407,this[_0x46d9bf(0x12b)]=_0x4d92f5,this[_0x46d9bf(0x285)]();}[_0x228849(0x285)](){const _0x180346=_0x228849;this[_0x180346(0x231)](_0x226a7e[_0x180346(0x14b)](this[_0x180346(0x1ad)]['focused$'][_0x180346(0x22c)](()=>{const _0x5535b0=_0x180346;var _0x12a967;const _0x4e9b5f=this[_0x5535b0(0x1ad)][_0x5535b0(0x43f)]();let _0x17bb73=(_0x12a967=this[_0x5535b0(0x12b)][_0x5535b0(0x176)](_0x2e1ac0))!=null?_0x12a967:_0xec1139;_0x4e9b5f instanceof _0x226a7e[_0x5535b0(0x131)]&&(_0x17bb73=_0x4e9b5f[_0x5535b0(0x268)]),document['title']=_0x17bb73;})));}};_0x46b6ae=_0x392950([_0x226a7e[_0x228849(0x4f0)](_0x226a7e[_0x228849(0x179)]['Ready'],_0x46b6ae),_0xb3d37c(0x0,_0x226a7e['IUniverInstanceService']),_0xb3d37c(0x1,_0x226a7e['IConfigService'])],_0x46b6ae);var _0x3ddb2b=Object[_0x228849(0x1fc)],_0x14c7b8=Object[_0x228849(0x1b4)],_0x32d0cd=(_0x3b7718,_0x479dde,_0x42e135,_0x46492c)=>{const _0x2d5bec=_0x228849;for(var _0xc4a6e5=_0x46492c>0x1?void 0x0:_0x46492c?_0x14c7b8(_0x479dde,_0x42e135):_0x479dde,_0x19b262=_0x3b7718[_0x2d5bec(0x430)]-0x1,_0x57a509;_0x19b262>=0x0;_0x19b262--)(_0x57a509=_0x3b7718[_0x19b262])&&(_0xc4a6e5=(_0x46492c?_0x57a509(_0x479dde,_0x42e135,_0xc4a6e5):_0x57a509(_0xc4a6e5))||_0xc4a6e5);return _0x46492c&&_0xc4a6e5&&_0x3ddb2b(_0x479dde,_0x42e135,_0xc4a6e5),_0xc4a6e5;},_0x368dde=(_0x7676c8,_0x8d6834)=>(_0x4e6051,_0x3d8429)=>_0x8d6834(_0x4e6051,_0x3d8429,_0x7676c8);let _0x5b8358=class{constructor(_0x158854,_0x86da64){const _0x5c492d=_0x228849;this[_0x5c492d(0x12b)]=_0x158854,this[_0x5c492d(0x412)]=_0x86da64;}async[_0x228849(0x4ae)](_0x319fc0,_0x4db211){const _0x3f9a10=_0x228849;var _0x47e176;const {unitID:_0x609245,type:_0x4de80f,revision:_0x396da3=0x0}=_0x4db211,_0x54b4c8=this[_0x3f9a10(0x16e)]()+'/'+_0x4de80f+_0x3f9a10(0x137)+_0x609245+_0x3f9a10(0x3d1)+(_0x396da3===0x1?0x0:_0x396da3),_0x36d0cf=(await this['_httpService'][_0x3f9a10(0x24c)](_0x54b4c8))[_0x3f9a10(0x161)],_0x74c8d1=(_0x47e176=_0x36d0cf[_0x3f9a10(0x3ed)])==null?void 0x0:_0x47e176[_0x3f9a10(0x46e)];if(_0x74c8d1){const _0x32fd02=_0x74c8d1==null?void 0x0:_0x74c8d1['originalMeta'],_0x1458d4=_0x226a7e[_0x3f9a10(0x467)]['encode'](_0x226a7e[_0x3f9a10(0x214)](_0x32fd02));_0x74c8d1['originalMeta']=_0x1458d4,Object['entries'](_0x74c8d1[_0x3f9a10(0x1cf)])[_0x3f9a10(0x3ad)](([,_0x391ef1])=>{const _0x1ba697=_0x3f9a10,_0x491bcd=_0x391ef1[_0x1ba697(0x21c)],_0x5ce211=_0x226a7e[_0x1ba697(0x467)][_0x1ba697(0x319)](_0x226a7e[_0x1ba697(0x214)](_0x491bcd));_0x391ef1['originalMeta']=_0x5ce211;});}return _0x36d0cf;}async[_0x228849(0x4be)](_0x5bc46e,_0x258a96){const _0x537453=_0x228849,{unitID:_0x29e896,type:_0x2bc4cb,blockID:_0x286bbd}=_0x258a96,_0x4aa6a3=this['_getAPIPrefix']()+'/'+_0x2bc4cb+_0x537453(0x137)+_0x29e896+_0x537453(0x246)+_0x286bbd;return(await this[_0x537453(0x412)][_0x537453(0x24c)](_0x4aa6a3))[_0x537453(0x161)];}async['fetchMissingChangesets'](_0x4dfd90,_0x3cb5bd){const _0x36a1df=_0x228849,{unitID:_0x328906,type:_0x962ad4,from:_0x1e0f7d,to:_0x2884f2}=_0x3cb5bd,_0x1982c1=this[_0x36a1df(0x431)]()+'/'+_0x962ad4+_0x36a1df(0x137)+_0x328906+'/fetchmissing?from='+_0x1e0f7d+_0x36a1df(0x16f)+_0x2884f2;return(await this['_httpService']['get'](_0x1982c1))[_0x36a1df(0x161)];}[_0x228849(0x16e)](){const _0x13e9ae=_0x228849;var _0x378cf2;return(_0x378cf2=this[_0x13e9ae(0x12b)][_0x13e9ae(0x176)](_0x2e8975))!=null?_0x378cf2:this[_0x13e9ae(0x431)]();}[_0x228849(0x431)](){const _0x151f8c=_0x228849;var _0x132d46;return(_0x132d46=this[_0x151f8c(0x12b)][_0x151f8c(0x176)](_0x299079))!=null?_0x132d46:_0x22538d;}async[_0x228849(0x23a)](_0x2a7c73,_0x9a29fe){const _0x56d0a9=_0x228849,_0x58acbf='/universer-api/snapshot/'+_0x9a29fe[_0x56d0a9(0x354)]+_0x56d0a9(0x137)+_0x9a29fe[_0x56d0a9(0x340)]+'/resources';return(await this[_0x56d0a9(0x412)]['get'](_0x58acbf,{'params':{'resourceId':JSON[_0x56d0a9(0x1d4)](_0x9a29fe[_0x56d0a9(0x407)])}}))[_0x56d0a9(0x161)];}['saveSnapshot'](){const _0x2142df=_0x228849;throw new Error(_0x2142df(0x37f));}[_0x228849(0x4fb)](){const _0x3d6b04=_0x228849;throw new Error(_0x3d6b04(0x37f));}[_0x228849(0x3fc)](){const _0x1a2a54=_0x228849;throw new Error(_0x1a2a54(0x37f));}};_0x5b8358=_0x32d0cd([_0x368dde(0x0,_0x226a7e[_0x228849(0x26f)]),_0x368dde(0x1,_0x49bc9[_0x228849(0x31c)](_0x353e30['HTTPService']))],_0x5b8358);var _0xd63962=Object[_0x228849(0x1fc)],_0xf263cc=Object[_0x228849(0x1b4)],_0x4a6f2b=(_0x4ed324,_0x496634,_0x470f7d,_0x201f5c)=>{const _0x3dbb5a=_0x228849;for(var _0x28f82c=_0x201f5c>0x1?void 0x0:_0x201f5c?_0xf263cc(_0x496634,_0x470f7d):_0x496634,_0x43141c=_0x4ed324[_0x3dbb5a(0x430)]-0x1,_0x1d026e;_0x43141c>=0x0;_0x43141c--)(_0x1d026e=_0x4ed324[_0x43141c])&&(_0x28f82c=(_0x201f5c?_0x1d026e(_0x496634,_0x470f7d,_0x28f82c):_0x1d026e(_0x28f82c))||_0x28f82c);return _0x201f5c&&_0x28f82c&&_0xd63962(_0x496634,_0x470f7d,_0x28f82c),_0x28f82c;},_0x2340e7=(_0x4ae0d3,_0x52e4a8)=>(_0x1d4fee,_0x3841d8)=>_0x52e4a8(_0x1d4fee,_0x3841d8,_0x4ae0d3);let _0x370e1f=class extends _0x226a7e[_0x228849(0x291)]{constructor(_0x562474,_0x5bada9,_0x255f59,_0x1c6f94,_0x1550a4){const _0x28f936=_0x228849;super(_0x562474,_0x5bada9,_0x255f59),this[_0x28f936(0x1b9)]=_0x1c6f94,this[_0x28f936(0x464)]=_0x1550a4;}[_0x228849(0x4f4)](_0x4f5608,_0x1a725c){const _0x2389a7=_0x228849,_0x47b117=this['_getUndoStack'](_0x4f5608);if(_0x47b117)try{const _0x49742a=this[_0x2389a7(0x1a3)](_0x47b117,_0x1a725c);this[_0x2389a7(0x2bd)](_0x4f5608,_0x49742a);}catch(_0x1cbd9a){this[_0x2389a7(0x464)][_0x2389a7(0x24e)](_0x2389a7(0x284),_0x1cbd9a),this[_0x2389a7(0x458)](_0x4f5608);}const _0x44751b=this[_0x2389a7(0x4d4)](_0x4f5608);if(_0x44751b)try{const _0x27dbc6=this['_transformStack'](_0x44751b,_0x1a725c);this[_0x2389a7(0x49d)](_0x4f5608,_0x27dbc6);}catch(_0x5e81eb){this[_0x2389a7(0x464)][_0x2389a7(0x24e)](_0x5e81eb),this[_0x2389a7(0x209)](_0x4f5608);}}[_0x228849(0x458)](_0x4b4a55){const _0x33115f=_0x228849,_0x520c40=this[_0x33115f(0x19a)](_0x4b4a55);_0x520c40&&(_0x520c40[_0x33115f(0x430)]=0x0,this[_0x33115f(0x1c2)]());}['_clearRedo'](_0x32464d){const _0x5606c1=_0x228849,_0x3d0c0b=this[_0x5606c1(0x4d4)](_0x32464d);_0x3d0c0b&&(_0x3d0c0b['length']=0x0,this[_0x5606c1(0x1c2)]());}[_0x228849(0x2bd)](_0x4994c6,_0x5adf79){const _0x5f2bfa=_0x228849;this[_0x5f2bfa(0x36b)]['set'](_0x4994c6,_0x5adf79),this[_0x5f2bfa(0x1c2)]();}[_0x228849(0x49d)](_0x4d99c4,_0x3d1ec8){const _0x87e07f=_0x228849;this[_0x87e07f(0x36f)][_0x87e07f(0x4f3)](_0x4d99c4,_0x3d1ec8),this['_updateStatus']();}[_0x228849(0x1a3)](_0x5207e2,_0x5ca2ed){const _0x115c8d=_0x228849,_0x32856b=[];let _0x20b436=_0x5ca2ed,_0x1227e9=_0x5ca2ed;for(let _0x46178a=_0x5207e2[_0x115c8d(0x430)]-0x1;_0x46178a>=0x0;_0x46178a--){const {unitID:_0x421c7c,undoMutations:_0x3e1e2a,redoMutations:_0x2eee45}=_0x5207e2[_0x46178a],_0x16411a=this[_0x115c8d(0x1b9)][_0x115c8d(0x2dd)](_0x20b436,_0x3e1e2a),_0x1d6e61=this[_0x115c8d(0x1b9)][_0x115c8d(0x2dd)](_0x1227e9,_0x2eee45);if(_0x1e8c75[_0x115c8d(0x307)](_0x16411a)||_0x1e8c75['isTransformMutationsWithChangesetFailure'](_0x1d6e61)){this['_logService'][_0x115c8d(0x24e)](_0x115c8d(0x284),_0x115c8d(0x463),_0x16411a,_0x1d6e61);break;}_0x20b436=_0x16411a['c1Prime'],_0x1227e9=_0x1d6e61['c1Prime'],_0x32856b[_0x115c8d(0x4cb)]({'unitID':_0x421c7c,'undoMutations':_0x16411a[_0x115c8d(0x260)],'redoMutations':_0x1d6e61['m2Prime']});}return _0x32856b['reverse']();}};_0x370e1f=_0x4a6f2b([_0x2340e7(0x0,_0x226a7e['IUniverInstanceService']),_0x2340e7(0x1,_0x226a7e[_0x228849(0x48f)]),_0x2340e7(0x2,_0x226a7e['IContextService']),_0x2340e7(0x3,_0x1e8c75[_0x228849(0x184)]),_0x2340e7(0x4,_0x226a7e[_0x228849(0x212)])],_0x370e1f);class _0x3ceb40 extends _0x226a7e[_0x228849(0x2ac)]{constructor(){const _0x3395e1=_0x228849;super(),_0xaa2177(this,_0x3395e1(0x1d2)),this['urlChange$']=_0x4e5e3f['fromEvent'](window,_0x3395e1(0x18c))[_0x3395e1(0x450)](_0x4e5e3f[_0x3395e1(0x2e4)](this[_0x3395e1(0x1ec)]),_0x4e5e3f[_0x3395e1(0x495)](0x1),_0x4e5e3f[_0x3395e1(0x13f)](void 0x0));}[_0x228849(0x4a5)](_0xfb2a83,_0x12085d,_0xc28425=!0x1){const _0x3f4ecf=_0x228849,_0x5e7b0b=new URL(window[_0x3f4ecf(0x32c)][_0x3f4ecf(0x185)]);_0x5e7b0b[_0x3f4ecf(0x24d)]['set'](_0xfb2a83,_0x12085d),_0xc28425?window[_0x3f4ecf(0x241)]['replaceState']('','',_0x5e7b0b[_0x3f4ecf(0x31a)]()):window[_0x3f4ecf(0x241)][_0x3f4ecf(0x1df)]('','',_0x5e7b0b[_0x3f4ecf(0x31a)]());}[_0x228849(0x1de)](_0x36b8ca,_0x338cea=!0x1){const _0x429b9b=_0x228849,_0x47f306=new URL(window[_0x429b9b(0x32c)][_0x429b9b(0x185)]);_0x47f306[_0x429b9b(0x24d)][_0x429b9b(0x2b1)](_0x36b8ca),_0x338cea?window[_0x429b9b(0x241)]['replaceState']('','',_0x47f306[_0x429b9b(0x31a)]()):window[_0x429b9b(0x241)][_0x429b9b(0x1df)]('','',_0x47f306[_0x429b9b(0x31a)]());}[_0x228849(0x1ac)](_0x4dd469){const _0x45ab59=_0x228849;var _0x5c54f8;return(_0x5c54f8=new URL(window[_0x45ab59(0x32c)][_0x45ab59(0x185)])['searchParams']['get'](_0x4dd469))!=null?_0x5c54f8:void 0x0;}}const _0x122028=_0x228849(0x459),_0x29f453=_0x228849(0x4d2),_0x50865c=0x6,_0x1d604b=1.5,_0x1d37d8=0x4,_0x270890=1.5,_0x104e47='rgba(255,\x20255,\x20255,\x200.01)';class _0x2cd52a{constructor(_0x9d861b,_0x33f539,_0x216b39,_0x33aec8){const _0xe7b4c4=_0x228849;_0xaa2177(this,'_shapes',[]),_0xaa2177(this,'_anchor',null),_0xaa2177(this,_0xe7b4c4(0x26b),null),_0xaa2177(this,_0xe7b4c4(0x295),null),_0xaa2177(this,_0xe7b4c4(0x491),null),_0xaa2177(this,_0xe7b4c4(0x432),null),(this[_0xe7b4c4(0x263)]=_0x9d861b,this[_0xe7b4c4(0x2af)]=_0x33f539,this[_0xe7b4c4(0x152)]=_0x216b39,this[_0xe7b4c4(0x2a8)]=_0x33aec8,this[_0xe7b4c4(0x17b)]());}set[_0x228849(0x375)](_0x17ffc3){const _0x252a41=_0x228849;_0x17ffc3?(this[_0x252a41(0x295)]&&this[_0x252a41(0x295)][_0x252a41(0x2a1)](),this[_0x252a41(0x26b)]&&this[_0x252a41(0x26b)]['show']()):(this[_0x252a41(0x295)]&&this[_0x252a41(0x295)][_0x252a41(0x333)](),this[_0x252a41(0x26b)]&&this[_0x252a41(0x26b)][_0x252a41(0x2a1)]());}[_0x228849(0x485)](){const _0xbc702=_0x228849;for(const _0x5acbd2 of this[_0xbc702(0x4da)])_0x5acbd2[_0xbc702(0x485)]();this['_textBubble']&&this[_0xbc702(0x26b)][_0xbc702(0x485)](),this[_0xbc702(0x295)]&&this[_0xbc702(0x295)][_0xbc702(0x485)](),this[_0xbc702(0x4e0)]&&this['_anchor'][_0xbc702(0x485)](),this['_eventUnsubscribe']&&this[_0xbc702(0x432)]();}['_render'](){const _0x4aaffd=_0x228849,{_docSkeleton:_0x506167,_document:_0x5c519f}=this,{color:_0x51e022,name:_0x24c42d,ranges:_0x2441f5}=this[_0x4aaffd(0x263)],_0x3505dd=_0x5c519f['getOffsetConfig'](),{docsLeft:_0x4913b0,docsTop:_0x1dc4af}=_0x3505dd,_0x274b2a=new _0x5b613a[(_0x4aaffd(0x134))](_0x3505dd,_0x506167);for(const {startOffset:_0x1fdc14,endOffset:_0xcdd81c,collapsed:_0xa57e24,isActive:_0x35544a}of _0x2441f5){const _0x521191=_0x506167[_0x4aaffd(0x200)](_0x1fdc14),_0x1b4ce3=_0x506167[_0x4aaffd(0x200)](_0xcdd81c);if(_0x35544a){const {contentBoxPointGroup:_0x269a49}=_0x274b2a[_0x4aaffd(0x475)](_0x1b4ce3,_0x1b4ce3);if(_0x269a49[_0x4aaffd(0x430)]===0x0)continue;this[_0x4aaffd(0x2b9)](_0x51e022,_0x269a49,_0x4913b0,_0x1dc4af,_0x24c42d),this[_0x4aaffd(0x432)]=this['_handleHover']();}if(!_0xa57e24){const {contentBoxPointGroup:_0x1e9f9d}=_0x274b2a['getRangePointData'](_0x521191,_0x1b4ce3);if(_0x1e9f9d[_0x4aaffd(0x430)]===0x0)continue;this[_0x4aaffd(0x300)](_0x51e022,_0x1e9f9d,_0x4913b0,_0x1dc4af);}}}['_drawAnchor'](_0x543e44,_0x29e5c9,_0x513fc7,_0x30c3c3,_0x35c8fc){const _0x1fe2d8=_0x228849,_0x253648=this[_0x1fe2d8(0x435)](_0x29e5c9),{left:_0x3178f6,top:_0x70b750,height:_0x366405}=_0x253648,_0x2371bf=this[_0x1fe2d8(0x292)](),_0x84328b=_0x270890/_0x2371bf,_0x24aabe=new _0x5b613a['Rect'](_0x122028+_0x226a7e[_0x1fe2d8(0x144)][_0x1fe2d8(0x34b)](_0x50865c),{'left':_0x3178f6+_0x513fc7-_0x84328b,'top':_0x70b750+_0x30c3c3,'height':_0x366405,'width':_0x1d604b,'fill':_0x543e44||_0x5b613a[_0x1fe2d8(0x406)](_0x226a7e[_0x1fe2d8(0x344)][_0x1fe2d8(0x1c5)],0x0),'strokeWidth':_0x84328b,'stroke':_0x104e47,'evented':!0x0});this[_0x1fe2d8(0x4e0)]=_0x24aabe,this[_0x1fe2d8(0x2af)][_0x1fe2d8(0x43e)](_0x24aabe,_0x5b613a[_0x1fe2d8(0x4ef)]);const _0xb5e32c=new _0x5b613a[(_0x1fe2d8(0x47e))](_0x122028+_0x226a7e[_0x1fe2d8(0x144)][_0x1fe2d8(0x34b)](_0x50865c),{'left':_0x3178f6+_0x513fc7-_0x84328b,'top':_0x70b750+_0x30c3c3-_0x1d37d8/0x2,'height':_0x1d37d8,'width':_0x1d37d8,'fill':_0x543e44||_0x5b613a[_0x1fe2d8(0x406)](_0x226a7e[_0x1fe2d8(0x344)][_0x1fe2d8(0x1c5)],0x0),'strokeWidth':0x0,'stroke':_0x543e44||_0x5b613a[_0x1fe2d8(0x406)](_0x226a7e['COLORS'][_0x1fe2d8(0x1c5)],0x0),'evented':!0x1});this[_0x1fe2d8(0x295)]=_0xb5e32c,this[_0x1fe2d8(0x2af)][_0x1fe2d8(0x43e)](_0xb5e32c,_0x5b613a[_0x1fe2d8(0x4ef)]);const _0x377915=new _0x548988(_0x122028+_0x226a7e['Tools']['generateRandomId'](_0x50865c),{'left':_0x3178f6+_0x513fc7-_0x84328b,'top':_0x70b750+_0x30c3c3-_0x4a66ac,'text':_0x35c8fc,'color':_0x543e44});this[_0x1fe2d8(0x26b)]=_0x377915,this[_0x1fe2d8(0x2af)][_0x1fe2d8(0x43e)](_0x377915,_0x5b613a[_0x1fe2d8(0x4ef)]),this[_0x1fe2d8(0x375)]=!0x1;}[_0x228849(0x394)](){const _0x594bf7=_0x228849,_0x12d890=this[_0x594bf7(0x4e0)][_0x594bf7(0x2b3)]['add'](()=>{const _0x4f11d3=_0x594bf7;this[_0x4f11d3(0x375)]=!0x0;}),_0x558051=this[_0x594bf7(0x4e0)][_0x594bf7(0x302)][_0x594bf7(0x33d)](()=>{const _0x366065=_0x594bf7;this[_0x366065(0x491)]&&clearTimeout(this[_0x366065(0x491)]),this[_0x366065(0x491)]=setTimeout(()=>{const _0x2c794d=_0x366065;this[_0x2c794d(0x375)]=!0x1;},0x7d0);});return()=>{const _0x433aac=_0x594bf7;var _0x15dac4,_0x461a47;(_0x15dac4=this[_0x433aac(0x4e0)])==null||_0x15dac4[_0x433aac(0x2b3)][_0x433aac(0x169)](_0x12d890),(_0x461a47=this['_anchor'])==null||_0x461a47[_0x433aac(0x302)][_0x433aac(0x169)](_0x558051);};}['_drawRange'](_0x21ebc3,_0x4affc2,_0x3bfcfa,_0x4674c8){const _0x4a3369=_0x228849,_0x337e1d=new _0x226a7e[(_0x4a3369(0x38c))](_0x21ebc3)[_0x4a3369(0x13c)](0.2)[_0x4a3369(0x371)](),_0xa0940a=new _0x5b613a[(_0x4a3369(0x279))](_0x29f453+_0x226a7e['Tools'][_0x4a3369(0x34b)](_0x50865c),{'pointsGroup':_0x4affc2,'fill':_0x337e1d||_0x5b613a[_0x4a3369(0x406)](_0x226a7e[_0x4a3369(0x344)]['black'],0.2),'left':_0x3bfcfa,'top':_0x4674c8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4a3369(0x4da)][_0x4a3369(0x4cb)](_0xa0940a),this[_0x4a3369(0x2af)][_0x4a3369(0x43e)](_0xa0940a,_0x5b613a['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x1fda51){const _0x59c4e5=_0x1fda51[0x0],_0x16028d=_0x59c4e5[0x0],_0x6c348d=_0x59c4e5[0x2],{x:_0x3b8bd,y:_0x45f0f0}=_0x16028d,{x:_0x20ef09,y:_0x2779d7}=_0x6c348d;return{'left':_0x3b8bd,'top':_0x45f0f0,'width':_0x20ef09-_0x3b8bd,'height':_0x2779d7-_0x45f0f0};}['_getScale'](){const _0x4f4c95=_0x228849,{scaleX:_0x63c0b8,scaleY:_0x29776a}=this[_0x4f4c95(0x2af)]['getAncestorScale']();return Math[_0x4f4c95(0x4d7)](_0x63c0b8,_0x29776a);}}var _0x243c34=Object['defineProperty'],_0x4d2a7b=Object[_0x228849(0x1b4)],_0x396f09=(_0x28c3bb,_0x4e143b,_0x3913ff,_0x583189)=>{for(var _0x133601=_0x583189>0x1?void 0x0:_0x583189?_0x4d2a7b(_0x4e143b,_0x3913ff):_0x4e143b,_0x1eae96=_0x28c3bb['length']-0x1,_0xa532a1;_0x1eae96>=0x0;_0x1eae96--)(_0xa532a1=_0x28c3bb[_0x1eae96])&&(_0x133601=(_0x583189?_0xa532a1(_0x4e143b,_0x3913ff,_0x133601):_0xa532a1(_0x133601))||_0x133601);return _0x583189&&_0x133601&&_0x243c34(_0x4e143b,_0x3913ff,_0x133601),_0x133601;},_0x4ad9b1=(_0x223e21,_0xe53e22)=>(_0x5e429e,_0x13be51)=>_0xe53e22(_0x5e429e,_0x13be51,_0x223e21);let _0x2ecdf6=class extends _0x226a7e['RxDisposable']{constructor(_0x22d61e,_0x3ee36e,_0xc1ddcd,_0x3ad7ec,_0x439e6a){const _0x4256cc=_0x228849;super(),_0xaa2177(this,_0x4256cc(0x4bb),[]),(this[_0x4256cc(0x3c2)]=_0x22d61e,this['_univerInstanceService']=_0x3ee36e,this[_0x4256cc(0x4c0)]=_0xc1ddcd,this[_0x4256cc(0x1d9)]=_0x3ad7ec,this['_themeService']=_0x439e6a,this[_0x4256cc(0x285)]());}[_0x228849(0x285)](){const _0x510255=_0x228849;this['_docSkeletonManagerService'][_0x510255(0x34d)][_0x510255(0x450)](_0x4d72f4['takeUntil'](this[_0x510255(0x1ec)]),_0x4d72f4['switchMap'](_0x22ae45=>{const _0x4808dc=_0x510255;if(_0x22ae45){const {unitId:_0x497ee2}=_0x22ae45;return _0x4e5e3f['combineLatest'](this[_0x4808dc(0x3c2)]['getCollabCursors$'](_0x497ee2),this[_0x4808dc(0x363)]['currentTheme$'])[_0x4808dc(0x450)](_0x4d72f4[_0x4808dc(0x4db)](([_0x2d0854,_0x27752d])=>({'skeleton':_0x22ae45,'cursors':[..._0x2d0854[_0x4808dc(0x2a5)]()]['flatMap'](_0x3a7f44=>({..._0x3a7f44,'color':_0x27752d[_0x3a7f44[_0x4808dc(0x4dc)]]}))})));}return _0x4e5e3f['of']({'skeleton':null,'cursors':[]});}))[_0x510255(0x22c)](({skeleton:_0x239b5e,cursors:_0x5c5e77})=>{const _0x3024c2=_0x510255;this[_0x3024c2(0x1ed)](),_0x239b5e&&this[_0x3024c2(0x154)](_0x239b5e[_0x3024c2(0x3a0)],_0x5c5e77);});}[_0x228849(0x154)](_0x130a06,_0x322d4e){const _0x3d312a=_0x228849,_0x1a6a59=this[_0x3d312a(0x1aa)]();if(_0x1a6a59==null)return;const {scene:_0x90a67a,document:_0x59ea6b}=_0x1a6a59,_0x331ec9=_0x322d4e[_0x3d312a(0x4db)](_0x31b989=>new _0x2cd52a(_0x31b989,_0x90a67a,_0x130a06,_0x59ea6b));this[_0x3d312a(0x4bb)]=_0x331ec9;}[_0x228849(0x1ed)](){const _0x3fe297=_0x228849;this[_0x3fe297(0x4bb)][_0x3fe297(0x3ad)](_0x1385cb=>_0x1385cb[_0x3fe297(0x485)]()),this[_0x3fe297(0x4bb)]=[];}[_0x228849(0x1aa)](){const _0x2a47c8=_0x228849;return _0x534040[_0x2a47c8(0x3d9)](this[_0x2a47c8(0x1ad)],this[_0x2a47c8(0x4c0)]);}};_0x2ecdf6=_0x396f09([_0x226a7e[_0x228849(0x4f0)](_0x226a7e[_0x228849(0x179)][_0x228849(0x382)],_0x2ecdf6),_0x4ad9b1(0x0,_0x49bc9[_0x228849(0x31c)](_0x1ed5eb)),_0x4ad9b1(0x1,_0x226a7e['IUniverInstanceService']),_0x4ad9b1(0x2,_0x5b613a[_0x228849(0x4ac)]),_0x4ad9b1(0x3,_0x49bc9[_0x228849(0x31c)](_0x534040['DocSkeletonManagerService'])),_0x4ad9b1(0x4,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x201)]))],_0x2ecdf6);var _0x57846d=Object[_0x228849(0x1fc)],_0x433746=Object[_0x228849(0x1b4)],_0x28a0b0=(_0x2e9b54,_0x197379,_0x1a6b34,_0x2d65a0)=>{for(var _0xcda98f=_0x2d65a0>0x1?void 0x0:_0x2d65a0?_0x433746(_0x197379,_0x1a6b34):_0x197379,_0x5d5252=_0x2e9b54['length']-0x1,_0x1e510b;_0x5d5252>=0x0;_0x5d5252--)(_0x1e510b=_0x2e9b54[_0x5d5252])&&(_0xcda98f=(_0x2d65a0?_0x1e510b(_0x197379,_0x1a6b34,_0xcda98f):_0x1e510b(_0xcda98f))||_0xcda98f);return _0x2d65a0&&_0xcda98f&&_0x57846d(_0x197379,_0x1a6b34,_0xcda98f),_0xcda98f;},_0x31df4c=(_0xd51e03,_0x2858a2)=>(_0x396a3a,_0xf143f5)=>_0x2858a2(_0x396a3a,_0xf143f5,_0xd51e03);let _0x36b668=class{constructor(_0x245d29,_0x256212,_0x2970ee){const _0x4ae9ad=_0x228849;this[_0x4ae9ad(0x12b)]=_0x245d29,this[_0x4ae9ad(0x412)]=_0x256212,this[_0x4ae9ad(0x173)]=_0x2970ee,this[_0x4ae9ad(0x3bd)]();}[_0x228849(0x3bd)](){const _0xeb2893=_0x228849;this[_0xeb2893(0x412)][_0xeb2893(0x293)]({'priority':0x1,'interceptor':(_0xa47f4e,_0xcb0cbf)=>_0xcb0cbf(_0xa47f4e)[_0xeb2893(0x450)](_0x4e5e3f[_0xeb2893(0x2a0)](async _0x1cc661=>{const _0x6f348a=_0xeb2893,_0x20f165=_0x1cc661;if(_0x20f165['status']===0x191&&window[_0x6f348a(0x3d7)](this[_0x6f348a(0x173)]['t'](_0x6f348a(0x14d)))){const _0x2308e3=window[_0x6f348a(0x294)](window[_0x6f348a(0x32c)]['href']);window[_0x6f348a(0x32c)][_0x6f348a(0x185)]=this[_0x6f348a(0x383)]()+'?url='+_0x2308e3;}return _0x20f165;}))});}['_getLoginPath'](){const _0x170d5e=_0x228849;var _0x2be9c1;return(_0x2be9c1=this[_0x170d5e(0x12b)][_0x170d5e(0x176)](_0x16f267))!=null?_0x2be9c1:_0x1dc009;}};_0x36b668=_0x28a0b0([_0x31df4c(0x0,_0x226a7e[_0x228849(0x26f)]),_0x31df4c(0x1,_0x49bc9[_0x228849(0x31c)](_0x353e30[_0x228849(0x26c)])),_0x31df4c(0x2,_0x49bc9[_0x228849(0x31c)](_0x226a7e[_0x228849(0x355)]))],_0x36b668);var _0x1f172d=Object['defineProperty'],_0x5a7c7e=Object[_0x228849(0x1b4)],_0x3613ca=(_0xa29005,_0x2ce608,_0x5585c3,_0x3dc39f)=>{const _0x119fa5=_0x228849;for(var _0x5dd05d=_0x3dc39f>0x1?void 0x0:_0x3dc39f?_0x5a7c7e(_0x2ce608,_0x5585c3):_0x2ce608,_0x1ebe4d=_0xa29005[_0x119fa5(0x430)]-0x1,_0x2f7e5c;_0x1ebe4d>=0x0;_0x1ebe4d--)(_0x2f7e5c=_0xa29005[_0x1ebe4d])&&(_0x5dd05d=(_0x3dc39f?_0x2f7e5c(_0x2ce608,_0x5585c3,_0x5dd05d):_0x2f7e5c(_0x5dd05d))||_0x5dd05d);return _0x3dc39f&&_0x5dd05d&&_0x1f172d(_0x2ce608,_0x5585c3,_0x5dd05d),_0x5dd05d;},_0x3d7530=(_0x21ce64,_0x66a7e8)=>(_0x4790f8,_0x2fe45a)=>_0x66a7e8(_0x4790f8,_0x2fe45a,_0x21ce64);const _0x40122f=_0x228849(0x1d7),_0x322420=_0x228849(0x225);_0x431c6f[_0x228849(0x12e)]=class{constructor(_0xc4d39f,_0x259030){const _0x5a8d20=_0x228849;this[_0x5a8d20(0x461)]=_0xc4d39f,this[_0x5a8d20(0x12b)]=_0x259030;}[_0x228849(0x35a)](){const _0x4e28cd=_0x228849;var _0x186b19;return(_0x186b19=this[_0x4e28cd(0x12b)][_0x4e28cd(0x176)](_0x40122f))!=null?_0x186b19:_0x322420;}async[_0x228849(0x2c1)](_0x1a8bf6){const _0x49263e=_0x228849,_0x10633d=this['_getAPIPrefixPath']()+'/'+_0x1a8bf6['objectType']+_0x49263e(0x336);return(await this[_0x49263e(0x461)]['post'](_0x10633d,{'body':_0x1a8bf6}))[_0x49263e(0x161)][_0x49263e(0x256)]||'';}async[_0x228849(0x41a)](_0x32223a){const _0x40536c=_0x228849,_0x323022=this[_0x40536c(0x35a)]()+'/-/object/list';return(await this[_0x40536c(0x461)][_0x40536c(0x32b)](_0x323022,{'body':_0x32223a}))[_0x40536c(0x161)]['objects'];}async[_0x228849(0x4d9)](_0x6459ed){const _0x48537d=_0x228849,_0x225fe7=this[_0x48537d(0x35a)]()+'/'+_0x6459ed[_0x48537d(0x286)]+_0x48537d(0x1a1)+_0x6459ed[_0x48537d(0x256)];await this[_0x48537d(0x461)]['put'](_0x225fe7,{'body':_0x6459ed});}async[_0x228849(0x275)](_0x1459c6){const _0x233c7d=_0x228849,_0xdc806a=this[_0x233c7d(0x35a)]()+'/'+_0x1459c6['objectType']+_0x233c7d(0x1a1)+_0x1459c6[_0x233c7d(0x256)]+'/allowed';return(await this[_0x233c7d(0x461)][_0x233c7d(0x32b)](_0xdc806a,{'body':_0x1459c6}))['body'][_0x233c7d(0x274)];}async[_0x228849(0x30d)](_0x21d22e){const _0x450c08=_0x228849,_0x940021=this[_0x450c08(0x35a)]()+'/-/object/-/batch_allowed';return(await this[_0x450c08(0x461)]['post'](_0x940021,{'body':{'requests':_0x21d22e}}))[_0x450c08(0x161)][_0x450c08(0x4fa)];}async[_0x228849(0x4a4)](_0x519386){const _0xe49bd2=_0x228849,_0x5eddb8=this['_getAPIPrefixPath']()+'/'+_0x519386[_0xe49bd2(0x286)]+_0xe49bd2(0x443),_0x5bd979=await this[_0xe49bd2(0x461)][_0xe49bd2(0x32b)](_0x5eddb8,{'body':_0x519386});return{'roles':_0x5bd979[_0xe49bd2(0x161)]['roles'],'actions':_0x5bd979['body'][_0xe49bd2(0x274)]};}async[_0x228849(0x3db)](_0x17d140){const _0x7b34ea=_0x228849,_0x451abd=this[_0x7b34ea(0x35a)]()+'/collaborator';await this['_HTTPService'][_0x7b34ea(0x2b1)](_0x451abd,{'params':{'collaboratorID':_0x17d140[_0x7b34ea(0x27e)],'objectID':_0x17d140['objectID'],'unitID':_0x17d140[_0x7b34ea(0x340)]}});}async[_0x228849(0x4fd)](_0x9330f4){const _0x2fd229=_0x228849,_0x3cd1ab=this[_0x2fd229(0x35a)]()+'/collaborator';await this['_HTTPService']['patch'](_0x3cd1ab,{'body':_0x9330f4});}async['createCollaborator'](_0x18c986){const _0x414714=_0x228849,_0x37abc1=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x414714(0x461)]['post'](_0x37abc1,{'body':_0x18c986});}async['listCollaborators'](_0xc00285){const _0x5e7400=_0x228849,_0x9a1228=this[_0x5e7400(0x35a)]()+'/collaborator';return(await this[_0x5e7400(0x461)][_0x5e7400(0x24c)](_0x9a1228,{'params':{'objectID':_0xc00285['objectID'],'unitID':_0xc00285[_0x5e7400(0x340)]}}))[_0x5e7400(0x161)]['collaborators'];}async[_0x228849(0x379)](_0x333a48){const _0x4e3de1=_0x228849,_0xd97ac5=this[_0x4e3de1(0x35a)]()+'/collaborator';await this[_0x4e3de1(0x461)][_0x4e3de1(0x3b1)](_0xd97ac5,{'body':_0x333a48});}},_0x431c6f['AuthzIoHttpService']=_0x3613ca([_0x3d7530(0x0,_0x49bc9[_0x228849(0x31c)](_0x353e30['HTTPService'])),_0x3d7530(0x1,_0x49bc9[_0x228849(0x31c)](_0x226a7e['IConfigService']))],_0x431c6f[_0x228849(0x12e)]);var _0x1eed85=Object['defineProperty'],_0x64705b=Object[_0x228849(0x1b4)],_0x219850=(_0x2f932d,_0x53d78c,_0x395523,_0x34061e)=>{const _0x313f84=_0x228849;for(var _0x4ebad2=_0x34061e>0x1?void 0x0:_0x34061e?_0x64705b(_0x53d78c,_0x395523):_0x53d78c,_0x3ef363=_0x2f932d[_0x313f84(0x430)]-0x1,_0x5994bb;_0x3ef363>=0x0;_0x3ef363--)(_0x5994bb=_0x2f932d[_0x3ef363])&&(_0x4ebad2=(_0x34061e?_0x5994bb(_0x53d78c,_0x395523,_0x4ebad2):_0x5994bb(_0x4ebad2))||_0x4ebad2);return _0x34061e&&_0x4ebad2&&_0x1eed85(_0x53d78c,_0x395523,_0x4ebad2),_0x4ebad2;},_0x58c2d6=(_0x41dba0,_0x3c416e)=>(_0x4cbbb6,_0x149045)=>_0x3c416e(_0x4cbbb6,_0x149045,_0x41dba0);const _0xd1969=['image/png','image/jpeg',_0x228849(0x1a0),_0x228849(0x1a7),_0x228849(0x327)],_0x2214a7=0x5*0x400*0x400,_0x64fb6a=_0x228849(0x442),_0x38f56a=_0x228849(0x2e8),_0x51e6a2='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_0x5030b1=_0x228849(0x460);let _0x3002a0=class{constructor(_0x1925c3,_0x211534){const _0x390add=_0x228849;_0xaa2177(this,_0x390add(0x21f),0x0),_0xaa2177(this,_0x390add(0x4a2),new _0x4e5e3f[(_0x390add(0x4bc))]()),_0xaa2177(this,_0x390add(0x427),this[_0x390add(0x4a2)]),_0xaa2177(this,_0x390add(0x34f),new Map()),(this[_0x390add(0x412)]=_0x1925c3,this[_0x390add(0x12b)]=_0x211534);}['setWaitCount'](_0xebc4eb){const _0x1241aa=_0x228849;this[_0x1241aa(0x21f)]=_0xebc4eb,this[_0x1241aa(0x4a2)][_0x1241aa(0x488)](_0xebc4eb);}[_0x228849(0x330)](_0x471c1b,_0x374c7a){const _0xa6eaf4=_0x228849;if(_0x374c7a===_0x57ff02[_0xa6eaf4(0x1f0)]['BASE64']){const _0x1450fd=new Image();return _0x1450fd['src']=_0x471c1b,_0x1450fd;}return this['_imageSourceCache']['get'](_0x471c1b);}[_0x228849(0x420)](_0x1f0aa0,_0x458c9e,_0x1565a8){const _0xbbd060=_0x228849;_0x458c9e===_0x57ff02[_0xbbd060(0x1f0)][_0xbbd060(0x2d0)]||_0x1565a8==null||this['_imageSourceCache'][_0xbbd060(0x4f3)](_0x1f0aa0,_0x1565a8);}async[_0x228849(0x1e2)](_0x5138e1){const _0x4f3546=_0x228849;try{const _0x3005ad=this['_replaceFileID'](this[_0x4f3546(0x497)](),''+_0x5138e1),_0x3899dc=(await this[_0x4f3546(0x412)][_0x4f3546(0x24c)](_0x3005ad))['body'];return _0x3899dc[_0x4f3546(0x24e)]&&_0x3899dc[_0x4f3546(0x24e)]['code']===_0x4a5019['OK']?Promise[_0x4f3546(0x44e)](_0x3899dc[_0x4f3546(0x374)]):Promise[_0x4f3546(0x377)](_0x3899dc[_0x4f3546(0x24e)]);}catch(_0xf91542){return Promise[_0x4f3546(0x377)](_0xf91542);}}async[_0x228849(0x157)](_0xb700b1){const _0xe5c9=_0x228849;let _0x43b708='';if(!_0xd1969[_0xe5c9(0x45a)](_0xb700b1[_0xe5c9(0x354)]))return this[_0xe5c9(0x2de)](),Promise[_0xe5c9(0x377)](new Error(_0x57ff02[_0xe5c9(0x4f5)][_0xe5c9(0x23e)]));if(_0xb700b1[_0xe5c9(0x3bb)]>_0x2214a7)return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x57ff02['ImageUploadStatusType'][_0xe5c9(0x496)]));try{const _0x1da24d=new FormData();_0x1da24d[_0xe5c9(0x3f4)](_0xe5c9(0x4c5),_0xb700b1);const _0x314c69=this[_0xe5c9(0x49b)]()+'?size='+_0xb700b1[_0xe5c9(0x3bb)]['toString'](),_0x30bf4f=await(await fetch(_0x314c69,{'method':_0xe5c9(0x34c),'body':_0x1da24d}))[_0xe5c9(0x3cc)]();if(typeof _0x30bf4f[_0xe5c9(0x393)]!='string')return this[_0xe5c9(0x2de)](),Promise[_0xe5c9(0x377)](new Error(_0x57ff02[_0xe5c9(0x4f5)][_0xe5c9(0x346)]));_0x43b708=_0x30bf4f[_0xe5c9(0x393)];}catch{return this[_0xe5c9(0x2de)](),Promise[_0xe5c9(0x377)](new Error(_0x57ff02[_0xe5c9(0x4f5)][_0xe5c9(0x346)]));}return new Promise((_0x46a570,_0x59b7d8)=>{const _0x56fd45=_0xe5c9,_0xcc418b=new FileReader();_0xcc418b[_0x56fd45(0x45d)](_0xb700b1),_0xcc418b['onload']=_0x5501bc=>{const _0x4edf27=_0x56fd45;var _0x4de8a4;const _0x126e6b=(_0x4de8a4=_0x5501bc[_0x4edf27(0x1fa)])==null?void 0x0:_0x4de8a4['result'];if(_0x126e6b==null){this[_0x4edf27(0x2de)](),_0x59b7d8(new Error(_0x57ff02[_0x4edf27(0x4f5)][_0x4edf27(0x346)]));return;}const _0x36362b=_0x226a7e['Tools'][_0x4edf27(0x34b)](0x6);_0x46a570({'imageId':_0x36362b,'imageSourceType':_0x57ff02['ImageSourceType']['UUID'],'source':_0x43b708,'base64Cache':_0x126e6b,'status':_0x57ff02[_0x4edf27(0x4f5)]['SUCCUSS']}),this[_0x4edf27(0x2de)]();};});}[_0x228849(0x49b)](){const _0x2ed2d7=_0x228849;var _0x54d5b9;return(_0x54d5b9=this[_0x2ed2d7(0x12b)][_0x2ed2d7(0x176)](_0x64fb6a))!=null?_0x54d5b9:_0x38f56a;}[_0x228849(0x497)](){const _0x350d34=_0x228849;var _0x2eddba;return(_0x2eddba=this[_0x350d34(0x12b)][_0x350d34(0x176)](_0x51e6a2))!=null?_0x2eddba:_0x5030b1;}[_0x228849(0x32a)](_0xe2d786,_0x2187f3){const _0x58af98=_0x228849;return _0xe2d786[_0x58af98(0x281)](_0x58af98(0x3da),_0x2187f3);}['_decreaseWaiting'](){const _0x1169b6=_0x228849;this[_0x1169b6(0x21f)]-=0x1,this[_0x1169b6(0x4a2)][_0x1169b6(0x488)](this[_0x1169b6(0x21f)]);}};_0x3002a0=_0x219850([_0x58c2d6(0x0,_0x49bc9[_0x228849(0x31c)](_0x353e30[_0x228849(0x26c)])),_0x58c2d6(0x1,_0x226a7e[_0x228849(0x26f)])],_0x3002a0);var _0x10451b=Object[_0x228849(0x1fc)],_0x4f2602=Object[_0x228849(0x1b4)],_0x477c7f=(_0x41234c,_0x1bdc2a,_0x38a6e5)=>_0x1bdc2a in _0x41234c?_0x10451b(_0x41234c,_0x1bdc2a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38a6e5}):_0x41234c[_0x1bdc2a]=_0x38a6e5,_0x3ad023=(_0xf269e5,_0x1fdef2,_0x16fb28,_0x47d4dc)=>{const _0xbf6d9c=_0x228849;for(var _0x3fd208=_0x47d4dc>0x1?void 0x0:_0x47d4dc?_0x4f2602(_0x1fdef2,_0x16fb28):_0x1fdef2,_0x2a3bc1=_0xf269e5[_0xbf6d9c(0x430)]-0x1,_0x4c89dd;_0x2a3bc1>=0x0;_0x2a3bc1--)(_0x4c89dd=_0xf269e5[_0x2a3bc1])&&(_0x3fd208=(_0x47d4dc?_0x4c89dd(_0x1fdef2,_0x16fb28,_0x3fd208):_0x4c89dd(_0x3fd208))||_0x3fd208);return _0x47d4dc&&_0x3fd208&&_0x10451b(_0x1fdef2,_0x16fb28,_0x3fd208),_0x3fd208;},_0x28db8f=(_0x7dda03,_0x2168f1)=>(_0x18729f,_0x150b6f)=>_0x2168f1(_0x18729f,_0x150b6f,_0x7dda03),_0x11a023=(_0x34b14f,_0x115e30,_0x4f4ff6)=>(_0x477c7f(_0x34b14f,_0x115e30+'',_0x4f4ff6),_0x4f4ff6);const _0x40bfe7=_0x228849(0x1cc);_0x431c6f[_0x228849(0x3e4)]=class extends _0x226a7e[_0x228849(0x1bc)]{constructor(_0x34b026,_0xb6f0a8,_0x37095c){const _0x4932a3=_0x228849;super(),this[_0x4932a3(0x46c)]=_0x34b026,this[_0x4932a3(0x464)]=_0xb6f0a8,this[_0x4932a3(0x28b)]=_0x37095c;}['onStarting'](_0x359884){const _0x1e917d=_0x228849;var _0x311d2b,_0x4e924a,_0x2103f2,_0x3c68ec,_0x22c6ea;_0x359884['has'](_0x226a7e[_0x1e917d(0x3af)])&&this[_0x1e917d(0x464)]['error']('[UniverCollaborationClientPlugin]',_0x1e917d(0x13e));let _0x2c87cd=[[_0x226a7e[_0x1e917d(0x3af)],{'useClass':_0x370e1f}],[_0x431c6f[_0x1e917d(0x192)]],[_0x237467],[_0x353e30['HTTPService']],[_0x445d9f,{'useClass':_0x3ceb40}],[_0x2f6a5d],[_0x431c6f[_0x1e917d(0x361)]],[_0x353e30[_0x1e917d(0x174)]],[_0x362b05],[_0x35da09],[_0x1f5fb3],[_0x372338],[_0x36b668],[_0x970e64,{'useClass':(_0x4e924a=(_0x311d2b=this[_0x1e917d(0x46c)])==null?void 0x0:_0x311d2b['socketService'])!=null?_0x4e924a:_0x431c6f[_0x1e917d(0x207)]}],[_0x353e30[_0x1e917d(0x299)],{'useClass':_0x353e30[_0x1e917d(0x29a)]}],[_0x226a7e[_0x1e917d(0x2ff)],{'useClass':_0x5b8358}],[_0x226a7e[_0x1e917d(0x1b1)],{'useClass':_0x431c6f['AuthzIoHttpService']}],[_0x57ff02[_0x1e917d(0x395)],{'useClass':_0x3002a0}],[_0x431c6f['CollaborationController']],[_0x431c6f[_0x1e917d(0x276)]],[_0x431c6f[_0x1e917d(0x422)]],[_0x46b6ae],[_0x1ed5eb]];(_0x2103f2=this[_0x1e917d(0x46c)])!=null&&_0x2103f2[_0x1e917d(0x365)]&&_0x2c87cd[_0x1e917d(0x4cb)]([_0x53b064,{'useClass':_0x5d66f4}]),((_0x3c68ec=this['_config'])==null?void 0x0:_0x3c68ec[_0x1e917d(0x42d)])==null||this[_0x1e917d(0x46c)][_0x1e917d(0x42d)]['includes'](_0x226a7e[_0x1e917d(0x27d)]['UNIVER_SHEET'])?_0x2c87cd[_0x1e917d(0x4cb)]([_0x7ed5d]):this[_0x1e917d(0x46c)][_0x1e917d(0x42d)][_0x1e917d(0x45a)](_0x226a7e[_0x1e917d(0x27d)][_0x1e917d(0x138)])&&_0x2c87cd[_0x1e917d(0x4cb)]([_0x2ecdf6]),_0x2c87cd=_0x226a7e[_0x1e917d(0x498)](_0x2c87cd,(_0x22c6ea=this['_config'])==null?void 0x0:_0x22c6ea[_0x1e917d(0x2ae)]),_0x2c87cd['forEach'](_0x34d424=>_0x359884[_0x1e917d(0x33d)](_0x34d424)),_0x359884['get'](_0x353e30[_0x1e917d(0x26c)])[_0x1e917d(0x293)]({'priority':0x14,'interceptor':_0x353e30[_0x1e917d(0x17e)]({'maxParallel':0x6})}),this[_0x1e917d(0x197)]();}[_0x228849(0x197)](){const _0x400b24=_0x228849;var _0x14ee35,_0x177838;(_0x14ee35=this[_0x400b24(0x46c)])!=null&&_0x14ee35[_0x400b24(0x462)]||this[_0x400b24(0x28b)][_0x400b24(0x24c)](_0x431c6f[_0x400b24(0x361)])['disableLocalCache'](),(_0x177838=this[_0x400b24(0x46c)])!=null&&_0x177838[_0x400b24(0x3d3)]&&this[_0x400b24(0x28b)]['get'](_0x36b668);}},_0x11a023(_0x431c6f[_0x228849(0x3e4)],_0x228849(0x272),_0x40bfe7),_0x431c6f[_0x228849(0x3e4)]=_0x3ad023([_0x226a7e[_0x228849(0x17a)](_0x1e8c75[_0x228849(0x367)]),_0x28db8f(0x1,_0x226a7e[_0x228849(0x212)]),_0x28db8f(0x2,_0x49bc9[_0x228849(0x31c)](_0x49bc9['Injector']))],_0x431c6f[_0x228849(0x3e4)]),_0x431c6f[_0x228849(0x1d7)]=_0x40122f,_0x431c6f['COLLAB_SUBMIT_CHANGESET_URL_KEY']=_0xe983e2,_0x431c6f[_0x228849(0x39d)]=_0x54323b,_0x431c6f['CollaborationStatus']=_0x4577df,_0x431c6f[_0x228849(0x4c3)]=_0x10b395,_0x431c6f[_0x228849(0x296)]=_0x18051e,_0x431c6f[_0x228849(0x4ad)]=_0x2c7ffa,_0x431c6f[_0x228849(0x400)]=_0x970e64,_0x431c6f[_0x228849(0x199)]=_0x445d9f,_0x431c6f['LOCAL_CACHE_INTERVAL_KEY']=_0x109348,_0x431c6f[_0x228849(0x303)]=_0x16f267,_0x431c6f['SEND_CHANGESET_TIMEOUT_KEY']=_0x6128a1,_0x431c6f[_0x228849(0x229)]=_0x299079,_0x431c6f[_0x228849(0x23b)]=_0x2e8975,_0x431c6f[_0x228849(0x188)]=_0x2d0945,_0x431c6f[_0x228849(0x447)]=_0x3ceb40,_0x431c6f[_0x228849(0x1b6)]=_0x37fba9,_0x431c6f[_0x228849(0x3a1)]=_0x543e7b,Object[_0x228849(0x1fc)](_0x431c6f,Symbol['toStringTag'],{'value':_0x228849(0x3be)});}));function _0x5a71(){const _0x20aa42=['merge','/rev/','_handler','enableAuthServer','onlineStatus','FETCH_MISS','_uiPartsService','confirm','call','getDocObject','{fileID}','deleteCollaborator','APPLY_NON_SEQUENTIAL_REVISION','appendMutation','triggerDblclick','reduce','MUTATION','_unitID','routeKey','function','UniverCollaborationClientPlugin','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','SetTextSelectionsOperation','_joinRoom','_getCtorByUniverType','session.will-retry','OnLineSingle','@univerjs/rpc','deserializeRangeWithSheet','snapshot','_status$','_localCacheService','getCellPositionByOffset','save\x20fail\x20reason\x20is\x20','onTransformRemoteChangesetByIMECache','UniverSheetsUi','append','_clearHeartbeatTimer','permission.content','/universer-api/oidc/authpage','_docTransformSelectionsService','FromArray','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','registerComponent','saveChangeset','JOINING','bottom','_schedule','ICollaborationSocketService','_localeService','roomMembers','_type','on-line-single','concat','getColor','resourceIDs','SNAPSHOT_INVALID_SNAPSHOT','_clearLocalCache','_scheduleHeartbeat','3687592koGrDH','@univerjs-pro/collaboration','getCollabEntity$','[DataLoaderController]','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','CompressMutationService','_httpService','liveShareOperation','fromCollab','state$','getItem','LIVESHARE_FETCH_OPERATIONS','status','_onRemoteChangeset','list','startRow','from','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_syncEditingCollabCursor','collaboration-client.offline-data-not-saved','addImageSourceCache','univer-online-status','DesktopCollaborationStatusDisplayController','submit\x20changeset\x20error!','JOIN','handleInsertRangeMoveRight','collabStatus.fetchMiss','change$','_ensureSubject','[OfflineState]:\x20received\x20rejection.','_acknowledgedAwaitingChangeset','isPermissionRej','_executeRemoteChangeset','collaborationUniverTypes','startColumn','USERS_LEAVE','length','_getAPIPrefix','_eventUnsubscribe','updateMember','debug','_getAnchorBounding','createElement','revision','_updateSubUnitFromURLParams','_startDocCollabCursor','useObservable','unit','top','rev','addObject','getFocusedUnit','transformRemoteChangeset','isArray','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','/role','row','handleInsertRangeMoveDown','serializeTextRange','WebURLService','[PendingState]:\x20unhandled\x20univer\x20type:\x20','csAckEvent','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','m1Prime','fill','_syncEditingCollabCursorService','resolve','PENDING','pipe','VIEW_MAIN','filter','onRemoteChangeset','_pendingMutations','LIVESHARE_NEW_HOST','all','split','_clearUndo','collab-text-anchor-','includes','Error','_roomMembers$','readAsDataURL','getCurrentRevForDocument','defIds','/universer-api/file/{fileID}/sign-url','_HTTPService','enableOfflineEditing','transformStack\x20failed!','_logService','@wendellhu/redi/react-bindings','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','textEncoder','transformChangesets','on-line-single_clip0_910_349','setTimeout','@univerjs/design','_config','children','workbook','COMPRESS_MUTATION_SEND','_updateLocalCursor','RemoveRowCommandId','_createSocket','deepClone','_docTransformIMECacheService','getRangePointData','connection\x20error','collabCursorState$','_queuedRemoteChangesets','_cursorInfo$','unshift','prototype','@univerjs/sheets','column','Rect','textRanges','extend','MessageType','onTransformSelections','HELLO','Disposable','dispose','disableLocalCache','_roomMembers','next','PERMISSION_DENIED','_transformPreviousActiveRange','setUndoRedoMutationParamsCache','text','syncEditingCollabCursor','setCurrentUser','ICommandService','_colorIndex','_hideTimer','endColumn','_getMergeRange','_isPermissionRej','shareReplay','ERROR_EXCEED_SIZE','_getSignURL','mergeOverrideWithDependencies','isTransformMutationFailure','_sheetTransformSelectionsService','_getUploadFileURL','_clearOtherTimers','_substituteRedoStack','univer-online-status-icon','_toggleOnline','NOT_FOUND','895380IfjYtx','_change$','getActiveSheet','listRoles','setParam','HEARTBEAT','_incrementRevisionNumber','UNRECOGNIZED','fillStyle','IUniverInstanceService','_transformIMECache','IRenderManagerService','HEARTBEAT_TIMEOUT_KEY','getUnitOnRev','div','url(#on-line-single_clip0_910_349)','_collabCursorState$','collabStatus.offline','DisposableCollection','MoveRangeCommandId','_tryEnsureSocket','_commandService','onCommandExecuted','RichTextEditingMutation','currentColor','awaiting_with_pending','_cursors','Subject','APPLY_PERMISSION_DENIED','getSheetBlock','entries','_renderManagerService','_updateState','IBeforeCloseService','CollaborationStatusDisplay','_handleEvent','file','setInterval','csRejEvent','\x20-\x20','createSocket','setItem','push','ONLINE','online','getTime','assignAColorForMemberID','_initStatusComponent','_transformRemoteChangesetByIMECache','collab-text-range-','onSendChangeset','_getRedoStack','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_snapshotService','max','leaveEvent','update','_shapes','map','color','parseProtocolChangeset','compose','CHANGESET_REJ','_anchor','onRemoteRej','/new_changes','displayName','LICENSE_IMPORT_SIZE_EXCEEDED','TOO_MANY_REQUESTS','onPointerMoveObserver','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','NOT_COLLAB','_showConflictNotification','jiqing500','apply','subUnitId','send','toggleOnline','TEXT_RANGE_LAYER_INDEX','OnLifecycle','CHANGESET_REVISION_CONFILICT','docStateChange$','set','transformUndoRedo','ImageUploadStatusType','isTransformMutationsWithChangesetSuccess','_color','IMessageService','pauseCollaboration','objectActions','saveSheetBlock','[CollaborationEntity]','updateCollaborator','_updateLocalCache','_configService','executeCommand','useDependency','AuthzIoHttpService','YUUMI_UNABLE_LOAD_URL','[PendingState]:\x20received\x20rejection.','Workbook','...','[OfflineState]:\x20received\x20changeset.','NodePositionConvertToCursor','getTypeOfUnitAdded$','_clearCollaborationTimeoutTimer','/unit/','UNIVER_DOC','LICENSE_EXPORT_SIZE_EXCEEDED','awaiting','handleIRemoveCol','setAlpha','UniverIcon','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','mapTo','getSheetBySheetId','newCsEvent','_docSyncEditingCollabCursorService','PERMISSION_REJ','Tools','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_members','toggleOffline','@univerjs/core','use','INGEST','toDisposable','random','auth.needGotoLoginAlert','Warning','_awaitingChangeset','getUndoRedoMutationParamsCache','@univerjs/engine-render','_docSkeleton','_hovered','_updateCollabCursors','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','getUnitType','saveImage','close','session','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','useRef','RemoveColCommandId','EffectRefRangId','doc.mutation.rich-text-editing','parseChangesetToProtocol','message$','body','onStateChange','permission.title','UniverEngineFormula','rxjs','InsertRangeMoveDownCommandId','univer-offline','status$','remove','_saveCache','_unitStatus','startsWith','UNKNOWN_CODE','_getSnapshotAPIPrefix','&to=','key','conflict.content','_remoteChangesetQueue','localeService','WebSocketService','createIdentifier','getConfig','USERS_ENTER','createInstance','LifecycleStages','DependentOn','_render','svg','getUnitStatus$','ThresholdInterceptorFactory','removeMember','height','getValue','IPermissionService','cursorInfo$','ITransformService','href','with','@univerjs/ui','SessionStatus','_onRemoteACK','min','_replayCachedMutations','popstate','rxjs/operators','FAIL','editingUnit','getAncestorScale','HEADER_MENU','CollaborationSessionService','_lockTransition','COMPLETION_FINISHED','Optional','distinctUntilChanged','_initModules','CollaborationEvent','IURLService','_getUndoStack','_sessionStatus$','AWAITING_WITH_PENDING','getTypeOfUnitDisposed$','[CollaborationSessionService]:\x20socket\x20error','onlineStatusTitle','image/jpg','/object/','getScrollXYByRelativeCoords','_transformStack','restore','runRefRangeMutations','getSheetId','image/gif','string','_onConflict','_getDocObject','Univer','getParam','_univerInstanceService','then','storage','onlineStatusIcon','IAuthzIoService','has','AWAITING','getOwnPropertyDescriptor','handleMoveRange','deserializeToCombResponse','_socketReady','clipPath','_transformService','_draw','_getSheetObject','Plugin','_undoRedoService','Rectangle','labelPosition','focused$','synced','_updateStatus','fetchThroughInterceptors','fetchMissingChangesets','black','userID','_unitOnClients','_permissionService','_saveTaskMap','trim','@univerjs/drawing','UNIVER_COLLABORATION_CLIENT_PLUGIN','_heartbeatTimer','conflict','sheets','_sessions','_state$','urlChange$','lodash/debounce','stringify','interceptor','_onCursorUpdate','AUTHZ_URL_KEY','_onRefRangeChange','_docSkeletonManagerService','_onUserLeave','take','ALREADY_EXISTS','complete','removeParam','pushState','save','getCurrentUnitForType','getImage','_collabSessionService','disposeUnit','onMissedChangesetFetched','_disableEditing','close$','unknown','roomMembers$','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_state','dispose$','_removeCollabCursors','_transitionLocked','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','ImageSourceType','_retryConnectingTimer','/universer-api/comb','makeDirty','_submitChangeset','current','defs','IDLE','data','parse','target','_singleActiveUnitService','defineProperty','UniverUi','asObservable','_applyRemoteChangeset','findNodePositionByCharIndex','ThemeService','updatePermissionPoint','red300','baseRev','UNAUTHENTICATED','getViewport','CollaborationSocketService','evenodd','_clearRedo','sequenceExecute','width','roomInfos','_socketMessageSubscription','_handleJoinEvent','_retryCount','_unlockTransition','closePath','ILogService','NEW_CHANGESETS','b64DecodeUnicode','unload','onSyncEditingCollabCursor','_cachedData','fetch_missing','className','IUIPartsService','SetSelectionsOperation','originalMeta','\x20in\x20_schedule.','_assignedColors','_waitCount','getRoom','off-line-single_clip0_910_343','YUUMI_URL_COL_OUT_OF_RANGE','hasOwnProperty','selection','/universer-api/authz','_send','LICENSE_MAX_UNITS_EXCEEDED','LEAVE','SNAPSHOT_SERVER_URL_KEY','getOwnPropertySymbols','error$','subscribe','CommandType','_onConnectionOpen','UNKNOWN_CMD','_revisionService','disposeWithMe','find','#FFF','sheetID','forwardRef','univerjs-icon\x20univerjs-icon-','_createInitialState','IMEInputManagerService','_onRecvEvent','getResourcesRequest','SNAPSHOT_URL_KEY','transformSelections','unsubscribe','ERROR_IMAGE_TYPE','_toggleOffline','2012082GPsqED','history','[CollaborationSessionService]','OTHER_CLIENTS_EDITING','_refRangeService','1em','/block/','UniverEngineRender','[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.','collaMsg','_entityInit$','open$','get','searchParams','error','INotificationService','getMember','xlink:href','attrs','UPDATE_CURSOR','getCollabCursors$','_userManagerService','objectID','562931EJniKv','fillText','getCurrent','HEARTBEAT_TIMEOUT','url(#$1','_scheduleTimestamp','memberID','onRemoteAck','failed\x20to\x20apply\x20missed\x20changesets!','m2Prime','cursorInfo','tag','_cursor','collabStatus.conflict','getCollabEntity','addEventListener','transformByState','name','members','/universer-api/snapshot','_textBubble','HTTPService','OFFLINE','isEditing','IConfigService','APPLY_REJECT','_localStorageService','pluginName','serializeRangeWithSheet','actions','allowed','DataLoaderController','_createInitialStateImpl','transformMutation','RegularPolygon','awaitingChangeset','_onCombEvent','cmd','UniverInstanceType','collaboratorID','_name','catch','replace','_removeClearOtherTimer','unit-cache-','[CollaborationUndoRedoService]','_init','objectType','INVALID_ARGUMENT','subunit','registerOnClose','verdancy600','_injector','session.collaboration-timeout','collabStatus.syncing','_snapshotServerService','UniverNetwork','RECV','LocalUndoRedoService','_getScale','registerHTTPInterceptor','encodeURIComponent','_anchorDot','HEARTBEAT_INTERVAL_KEY','offline','CONNECTOR_DATA_TOO_LARGE','IHTTPImplementation','XHRHTTPImplementation','_scheduleSaving','CHANGESET_ACK','registerRefRange','[FetchMissState]','_transformUndoRedoStack','concatMap','hide','_event$','joinEvent','_urlService','values','range','activeSheet$','_document','NO_OTHER_CLIENTS_EDITING','Vector2','SEND_CHANGESET_TIMEOUT','RxDisposable','lineTo','override','_scene','onMissingChangesets','delete','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','onPointerEnterObserver','replaceTextRanges','SUBMIT_CHANGESET','[SyncedState]:\x20received\x20acknowledgement.','sessionStatus$','colorChannel1','_drawAnchor','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','FETCH_MISSING','_labelPosition','_substituteUndoStack','_sendHeartbeatTimer','changesets','_sheetSkeletonManagerService','create','_updateURLWithCurrentState','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','APPLY_REVISION_CONFILICT','_disabled','_onJoinRoomEvent','_memberService','_handleLeaveEvent','clearTimeout','RETRY_CONNECTING_MAX_COUNT','CollaborationController','isActive','_timeoutTimer','COLLAB_WEB_SOCKET_URL','LIVESHARE_TERMINATE','BASE64','getUnitId','path','_collaborationTimeoutTimer','enableLocalCache','_onCursorDelete','CollaborationSession','_onLocalMutation','LIVESHARE_REQUEST_HOST','session.room-full','@univerjs/engine-formula','_http','SetWorksheetActivateCommand','transformMutationsWithChangeset','_decreaseWaiting','uni.network.url-service','getSelections','getMemberID','_loadSheet','InsertRowCommandId','takeUntil','_getCurrentRevision','_sendingTimer','BehaviorSubject','/universer-api/stream/file/upload','UNDEFINED','_createHandler','incrementRevForDocument','infoRsp','univer-pro.collaboration-client.single-active-unit-service','4751184OsIxXJ','_scheduleReconnection','delay','lodash','TextSelectionManagerService','React','params','newValue','socket\x20open.','handleInsertRow','@wendellhu/redi','_onRemoteRejected','COLLAB_SUBMIT_CHANGESET_URL','assign','setShapeProps','endRow','InsertColCommandId','ISnapshotServerService','_drawRange','currentTheme$','onPointerLeaveObserver','LOGIN_URL_KEY','session.connection-failed','font','_messageService','isTransformMutationsWithChangesetFailure','idSuffix','exports','Shape','_unitId','gold400','batchAllowed','INTERNAL_ERROR','isTransformChangesetsSuccess','SYNCED','joinRsp','LIVESHARE_OPERATION','InsertRangeMoveRightCommandId','round','VIEWPORT_KEY','_loadDoc','registerBeforeClose','_collaborationController','encode','toString','onlyLocal','Inject','Starting','BuiltInUIPart','url(#off-line-single_clip0_910_343)','_transformUndoredo','_scheduleClearOtherTimer','drawWith','updateOfflineData','fromEvent','eventID','1338960qTbhIA','image/bmp','transformIMECache','purple300','_replaceFileID','post','location','switchMap','COMPRESS_MUTATION_APPLY','UniverSheets','getImageSourceCache','transform','_online','show','ACTIVE_UNIT_EVENT_CHANNEL','getCoordByCell','/object','_onUserJoin','_compressMutationService','_entities','connectInjector','clear','loadOfflineData','add','handleDeleteRangeMoveLeft','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','unitID','ranges','_removeRoom','0\x200\x2017\x2016','COLORS','getActiveRange','ERROR_IMAGE','getCurrentUser','getInterceptPoints','translate(.97)','arc','generateRandomId','POST','currentSkeleton$','PSEUDO_FETCH_MISSING_RESULT','_imageSourceCache','pending','_checkMissing','4497075pgzvwb','getRelativeCoord','type','LocaleService','c1Prime','mutations','whenReady','UniverCollaborationClient','_getAPIPrefixPath','symbol','SelectionManagerService','UNIVER_SLIDE','SnapshotService','_getSaveTimeout','\x0aCurrent:\x20','LocalCacheService','LICENSE_DISTRO_REJECTED','_themeService','getSheetObject','enableSingleActiveInstanceLock','RevisionService','UniverCollaborationPlugin','@univerjs/docs','some','_socket$','_undoStacks','Injector','UniverRpc','_notificationService','_redoStacks','#fff','toRgbString','_collaborationPaused','state','url','_hover','UNIVER_UNKNOWN','reject','DeleteRangeMoveUpCommandId','putCollaborators','_setupBeforeClosingHandler','[SyncedState]:\x20received\x20rejection.','MSG_FOR_ERROR','_rescheduleHeartbeatEvent','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','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_range','c2Prime','Steady','_getLoginPath','_beforeCloseService','moveTo','_getSendChangesetTimeout','_initStatusListener','_selfUnitIDs','_ws','_clearTimeoutTimer','@univerjs/network','ColorKit','object','_colorAssignService','getMergeData','UNIVER_SHEET','2PlYSUb','_clearScheduledTask','FileId','_handleHover','IImageIoService','sessionStatus','_startSheetCollabCursor','[PendingState]:\x20received\x20acknowledgement.','permissionRejEvent','indexOf','_socket','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','COLLAB_WEB_SOCKET_URL_KEY','_id','WorkbookEditablePermission','skeleton','serializeCombRequest','addObjects','requireSession','event$','univer-online','selections','_exhaustSavingTask','clsx','_lastPointer','[CollaborationSession]','\x20to\x20','_docStateChangeManagerService','forEach','none','IUndoRedoService','_onConnectionFailed','put','RETRY_CONNECTING_INTERVAL','SheetSkeletonManagerService','0\x200\x2016\x2016','debounceTime','UniverCore','_sendHeartbeat','clearInterval','_onMessage','M0\x200H16V16H0z','size','_startCollaboration','init','Module','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','slice','Unknown\x20user','_collabCursorController','_socketService','_waitForHeartbeatResponse','unitId','resend','measureText','handleInsertCol','_session','react','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','json','univer-online-status-title','fetching\x20missing\x20changesets\x20from\x20','@univerjs/sheets-ui'];_0x5a71=function(){return _0x20aa42;};return _0x5a71();}