@univerjs-pro/collaboration-client 0.1.13 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/config/config.d.ts +44 -0
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-render.controller.d.ts +3 -3
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +0 -4
- package/lib/types/index.d.ts +6 -8
- package/lib/types/plugin.d.ts +4 -4
- package/lib/types/services/auth-server/auth-server.service.d.ts +0 -4
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +0 -7
- package/lib/types/services/local-cache/local-cache.service.d.ts +0 -5
- package/lib/types/services/member/member.service.d.ts +9 -3
- package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +2 -6
- package/lib/types/services/socket/collaboration-socket.service.d.ts +0 -1
- package/lib/umd/index.js +1 -1
- package/package.json +49 -35
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 _0x23df(_0x4a6b66,_0x5535a4){const _0x23f57a=_0x23f5();return _0x23df=function(_0x23df24,_0x264471){_0x23df24=_0x23df24-0x1bc;let _0xde55b0=_0x23f57a[_0x23df24];return _0xde55b0;},_0x23df(_0x4a6b66,_0x5535a4);}(function(_0x3b5619,_0x5d0c53){const _0x4e02ed=_0x23df,_0x507801=_0x3b5619();while(!![]){try{const _0x5a64ab=parseInt(_0x4e02ed(0x39d))/0x1*(parseInt(_0x4e02ed(0x21a))/0x2)+-parseInt(_0x4e02ed(0x3ee))/0x3+parseInt(_0x4e02ed(0x27c))/0x4*(-parseInt(_0x4e02ed(0x564))/0x5)+-parseInt(_0x4e02ed(0x566))/0x6+-parseInt(_0x4e02ed(0x3e5))/0x7*(-parseInt(_0x4e02ed(0x49e))/0x8)+-parseInt(_0x4e02ed(0x47d))/0x9+parseInt(_0x4e02ed(0x272))/0xa;if(_0x5a64ab===_0x5d0c53)break;else _0x507801['push'](_0x507801['shift']());}catch(_0x453c05){_0x507801['push'](_0x507801['shift']());}}}(_0x23f5,0xa3e40),function(_0x110dca,_0x2005eb){const _0x4106a1=_0x23df;typeof exports=='object'&&typeof module<'u'?_0x2005eb(exports,require('@univerjs/core'),require(_0x4106a1(0x281)),require(_0x4106a1(0x1cc)),require(_0x4106a1(0x3e1)),require(_0x4106a1(0x296)),require('@wendellhu/redi'),require(_0x4106a1(0x25a)),require(_0x4106a1(0x201)),require(_0x4106a1(0x284)),require(_0x4106a1(0x32d)),require(_0x4106a1(0x419)),require(_0x4106a1(0x555)),require('lodash/debounce'),require('@univerjs/engine-render'),require('@univerjs/sheets-ui'),require(_0x4106a1(0x547)),require(_0x4106a1(0x562)),require(_0x4106a1(0x214)),require('@univerjs/rpc')):typeof define==_0x4106a1(0x3c4)&&define[_0x4106a1(0x1d0)]?define([_0x4106a1(0x4dd),_0x4106a1(0x41a),_0x4106a1(0x281),_0x4106a1(0x1cc),_0x4106a1(0x3e1),_0x4106a1(0x296),_0x4106a1(0x235),_0x4106a1(0x25a),'rxjs/operators',_0x4106a1(0x284),_0x4106a1(0x32d),_0x4106a1(0x419),_0x4106a1(0x555),_0x4106a1(0x2c2),_0x4106a1(0x3c1),_0x4106a1(0x394),_0x4106a1(0x547),_0x4106a1(0x562),_0x4106a1(0x214),_0x4106a1(0x4ed)],_0x2005eb):(_0x110dca=typeof globalThis<'u'?globalThis:_0x110dca||self,_0x2005eb(_0x110dca[_0x4106a1(0x254)]={},_0x110dca['UniverCore'],_0x110dca['UniverSheets'],_0x110dca['UniverDesign'],_0x110dca[_0x4106a1(0x412)],_0x110dca['UniverCollaboration'],_0x110dca[_0x4106a1(0x235)],_0x110dca['rxjs'],_0x110dca[_0x4106a1(0x25a)]['operators'],_0x110dca[_0x4106a1(0x337)],_0x110dca[_0x4106a1(0x2a2)],_0x110dca[_0x4106a1(0x50d)],_0x110dca['UniverEngineFormula'],_0x110dca[_0x4106a1(0x55d)]['debounce'],_0x110dca[_0x4106a1(0x521)],_0x110dca[_0x4106a1(0x4cb)],_0x110dca['@wendellhu/redi/react-bindings'],_0x110dca[_0x4106a1(0x1e5)],_0x110dca[_0x4106a1(0x214)],_0x110dca['UniverRpc']));}(this,function(_0x3f3314,_0x4cdaf4,_0x3a01f6,_0x4fb88a,_0x4ff465,_0x329b63,_0x12925a,_0x4bb16b,_0x4ac749,_0x3fcd1a,_0xfde0ab,_0x46f32c,_0x29b663,_0x7451ba,_0x499dcd,_0x4ad633,_0x263934,_0x48aaee,_0x504a8c,_0x10d289){'use strict';const _0x57b986=_0x23df;var _0x2d8c76=Object[_0x57b986(0x1f4)],_0x325d2c=(_0x5a168f,_0x1c3df5,_0x3ecba6)=>_0x1c3df5 in _0x5a168f?_0x2d8c76(_0x5a168f,_0x1c3df5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ecba6}):_0x5a168f[_0x1c3df5]=_0x3ecba6,_0x53d09f=(_0x275205,_0x53be7a,_0x4419bc)=>_0x325d2c(_0x275205,typeof _0x53be7a!=_0x57b986(0x2ba)?_0x53be7a+'':_0x53be7a,_0x4419bc);const _0x514f86=_0x57b986(0x4ba),_0x1b973b=_0x57b986(0x4b7),_0x5cc7aa=_0x57b986(0x2b2),_0x20edc7=_0x57b986(0x2b3),_0x28607c=_0x57b986(0x38b),_0x5d6701='ws://127.0.0.1:8000/universer-api/comb/connect',_0x1e7060=_0x57b986(0x1db),_0x3287b4=_0x57b986(0x4c5),_0x192ae1=_0x57b986(0x204),_0x31e01f='RETRY_CONNECTING_MAX_COUNT',_0x1e2fa3=_0x57b986(0x2d3),_0x3050c7=_0x57b986(0x439),_0xf9a59b=_0x57b986(0x554),_0x23ca2e='LOGIN_URL_KEY',_0x1c47c8=_0x57b986(0x53d);var _0x383d49=(_0x362a53=>(_0x362a53[_0x362a53[_0x57b986(0x368)]=0x0]='UNDEFINED',_0x362a53[_0x362a53['OK']=0x1]='OK',_0x362a53[_0x362a53['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x362a53[_0x362a53['PERMISSION_DENIED']=0x3]=_0x57b986(0x418),_0x362a53[_0x362a53[_0x57b986(0x565)]=0x4]=_0x57b986(0x565),_0x362a53[_0x362a53['UNAUTHENTICATED']=0x5]=_0x57b986(0x4df),_0x362a53[_0x362a53['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x362a53[_0x362a53[_0x57b986(0x454)]=0x7]=_0x57b986(0x454),_0x362a53[_0x362a53[_0x57b986(0x23c)]=0x8]=_0x57b986(0x23c),_0x362a53[_0x362a53[_0x57b986(0x462)]=0x9]=_0x57b986(0x462),_0x362a53[_0x362a53[_0x57b986(0x52d)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x362a53[_0x362a53[_0x57b986(0x302)]=0x1771]=_0x57b986(0x302),_0x362a53[_0x362a53['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x57b986(0x365),_0x362a53[_0x362a53['APPLY_REJECT']=0x1b59]=_0x57b986(0x466),_0x362a53[_0x362a53['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x57b986(0x43f),_0x362a53[_0x362a53[_0x57b986(0x54f)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x362a53[_0x362a53[_0x57b986(0x4d4)]=0x1b5c]=_0x57b986(0x4d4),_0x362a53[_0x362a53[_0x57b986(0x52c)]=0x1f41]=_0x57b986(0x52c),_0x362a53[_0x362a53[_0x57b986(0x1eb)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x362a53[_0x362a53[_0x57b986(0x324)]=0x232a]=_0x57b986(0x324),_0x362a53[_0x362a53[_0x57b986(0x379)]=0x232b]=_0x57b986(0x379),_0x362a53[_0x362a53[_0x57b986(0x3d3)]=0x232c]=_0x57b986(0x3d3),_0x362a53[_0x362a53[_0x57b986(0x500)]=0x232d]=_0x57b986(0x500),_0x362a53[_0x362a53[_0x57b986(0x216)]=0x2711]=_0x57b986(0x216),_0x362a53[_0x362a53[_0x57b986(0x551)]=0x2712]=_0x57b986(0x551),_0x362a53[_0x362a53['UNRECOGNIZED']=-0x1]=_0x57b986(0x340),_0x362a53))(_0x383d49||{}),_0x1f330d=(_0x4d2ecc=>(_0x4d2ecc[_0x4d2ecc['UNIVER_UNKNOWN']=0x0]=_0x57b986(0x518),_0x4d2ecc[_0x4d2ecc[_0x57b986(0x510)]=0x1]=_0x57b986(0x510),_0x4d2ecc[_0x4d2ecc[_0x57b986(0x1ed)]=0x2]=_0x57b986(0x1ed),_0x4d2ecc[_0x4d2ecc[_0x57b986(0x579)]=0x3]='UNIVER_SLIDE',_0x4d2ecc[_0x4d2ecc['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x4d2ecc))(_0x1f330d||{}),_0x1ab374=(_0x2b4c4d=>(_0x2b4c4d[_0x2b4c4d[_0x57b986(0x2e7)]=0x0]='UNKNOWN_CMD',_0x2b4c4d[_0x2b4c4d[_0x57b986(0x261)]=0x1]=_0x57b986(0x261),_0x2b4c4d[_0x2b4c4d[_0x57b986(0x2e0)]=0x2]='JOIN',_0x2b4c4d[_0x2b4c4d['LEAVE']=0x3]='LEAVE',_0x2b4c4d[_0x2b4c4d[_0x57b986(0x351)]=0x4]=_0x57b986(0x351),_0x2b4c4d[_0x2b4c4d['HEARTBEAT']=0x5]=_0x57b986(0x36f),_0x2b4c4d[_0x2b4c4d[_0x57b986(0x24d)]=0x6]=_0x57b986(0x24d),_0x2b4c4d[_0x2b4c4d['UNRECOGNIZED']=-0x1]=_0x57b986(0x340),_0x2b4c4d))(_0x1ab374||{}),_0x401f1c=(_0x3433f2=>(_0x3433f2[_0x3433f2[_0x57b986(0x303)]=0x0]=_0x57b986(0x303),_0x3433f2[_0x3433f2['OK']=0x1]='OK',_0x3433f2[_0x3433f2[_0x57b986(0x27d)]=0x2]='FAIL',_0x3433f2[_0x3433f2[_0x57b986(0x340)]=-0x1]=_0x57b986(0x340),_0x3433f2))(_0x401f1c||{}),_0x48573c=Object['defineProperty'],_0xbd8903=Object['getOwnPropertyDescriptor'],_0x3006f3=(_0x50cfc8,_0x3dfb77,_0x46fa12,_0x44e711)=>{const _0x24782d=_0x57b986;for(var _0x5bc645=_0x44e711>0x1?void 0x0:_0x44e711?_0xbd8903(_0x3dfb77,_0x46fa12):_0x3dfb77,_0x354804=_0x50cfc8[_0x24782d(0x397)]-0x1,_0x481dba;_0x354804>=0x0;_0x354804--)(_0x481dba=_0x50cfc8[_0x354804])&&(_0x5bc645=(_0x44e711?_0x481dba(_0x3dfb77,_0x46fa12,_0x5bc645):_0x481dba(_0x5bc645))||_0x5bc645);return _0x44e711&&_0x5bc645&&_0x48573c(_0x3dfb77,_0x46fa12,_0x5bc645),_0x5bc645;},_0x332ec9=(_0x2bc75f,_0x4133f4)=>(_0xe8589e,_0xa9320c)=>_0x4133f4(_0xe8589e,_0xa9320c,_0x2bc75f);let _0x4495e7=class extends _0x4cdaf4[_0x57b986(0x310)]{constructor(_0x30af3b,_0x4716ac){const _0x59005b=_0x57b986;super(),_0x53d09f(this,'_roomMembers',new Map()),(this[_0x59005b(0x3d9)]=_0x30af3b,this['_userManagerService']=_0x4716ac,this[_0x59005b(0x250)](_0x4cdaf4[_0x59005b(0x56b)](_0x4bb16b[_0x59005b(0x468)](this[_0x59005b(0x3d9)][_0x59005b(0x29d)](_0x4cdaf4[_0x59005b(0x514)][_0x59005b(0x1ed)])[_0x59005b(0x334)](_0x4ac749['map'](_0xe2da73=>_0xe2da73[_0x59005b(0x3d4)]())),this[_0x59005b(0x3d9)]['getTypeOfUnitDisposed$'](_0x4cdaf4['UniverInstanceType']['UNIVER_DOC'])[_0x59005b(0x334)](_0x4ac749[_0x59005b(0x2d2)](_0x42dbbf=>_0x42dbbf['getUnitId']())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4cdaf4[_0x59005b(0x514)][_0x59005b(0x579)])['pipe'](_0x4ac749['map'](_0x4046c6=>_0x4046c6[_0x59005b(0x3d4)]())))[_0x59005b(0x29e)](_0x3569d7=>this[_0x59005b(0x557)](_0x3569d7)))));}[_0x57b986(0x51b)](_0x40c93e){const _0x2f7ce2=_0x57b986;this[_0x2f7ce2(0x2f9)][_0x2f7ce2(0x51b)](_0x40c93e);}[_0x57b986(0x227)](){const _0x539c48=_0x57b986;return this[_0x539c48(0x2f9)][_0x539c48(0x227)]();}['updateMember'](_0x2bfe64,_0x10cc25){let _0x43148f=this['_roomMembers']['get'](_0x2bfe64);_0x43148f||(_0x43148f=new _0x48b0c1(),this['_roomMembers']['set'](_0x2bfe64,_0x43148f)),_0x43148f['updateMember'](_0x10cc25);}[_0x57b986(0x570)](_0x5ad3d0,_0x20213f){const _0x1a2bc7=_0x57b986,_0x1be031=this[_0x1a2bc7(0x495)][_0x1a2bc7(0x408)](_0x5ad3d0);_0x1be031&&_0x1be031[_0x1a2bc7(0x570)](_0x20213f);}[_0x57b986(0x4ec)](_0x2444ce){const _0x2770bd=_0x57b986;return this[_0x2770bd(0x495)][_0x2770bd(0x408)](_0x2444ce);}[_0x57b986(0x44f)](_0x44b11e,_0x952636){const _0x1280fb=_0x57b986,_0x4e471a=this['_roomMembers'][_0x1280fb(0x408)](_0x44b11e);if(_0x4e471a)return _0x4e471a[_0x1280fb(0x44f)](_0x952636);}[_0x57b986(0x557)](_0x90c0f9){const _0xb3f683=_0x57b986,_0x3c6706=this[_0xb3f683(0x495)][_0xb3f683(0x408)](_0x90c0f9);_0x3c6706&&(_0x3c6706[_0xb3f683(0x46e)](),this[_0xb3f683(0x495)][_0xb3f683(0x391)](_0x90c0f9));}[_0x57b986(0x46e)](){const _0x5a897f=_0x57b986;this['_roomMembers'][_0x5a897f(0x2bc)](_0x4d938c=>_0x4d938c[_0x5a897f(0x46e)]()),this[_0x5a897f(0x495)][_0x5a897f(0x46b)]();}};_0x4495e7=_0x3006f3([_0x332ec9(0x0,_0x4cdaf4[_0x57b986(0x28e)]),_0x332ec9(0x1,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4[_0x57b986(0x30a)]))],_0x4495e7);class _0x48b0c1 extends _0x4cdaf4[_0x57b986(0x310)]{constructor(){const _0x959e4e=_0x57b986;super(...arguments),_0x53d09f(this,_0x959e4e(0x3c3),new Map());}[_0x57b986(0x46e)](){const _0x5daf0a=_0x57b986;this[_0x5daf0a(0x3c3)][_0x5daf0a(0x46b)]();}['updateMember'](_0x2abb50){const _0x583848=_0x57b986;this[_0x583848(0x3c3)][_0x583848(0x2c3)](_0x2abb50[_0x583848(0x537)],_0x2abb50);}[_0x57b986(0x570)](_0x37c1c0){const _0x2fb621=_0x57b986;this[_0x2fb621(0x3c3)][_0x2fb621(0x391)](_0x37c1c0);}[_0x57b986(0x44f)](_0x4c63bc){const _0x178728=_0x57b986;return this[_0x178728(0x3c3)]['get'](_0x4c63bc);}}function _0x4e7170(_0x14928a){const _0x136503=_0x57b986;var _0x24af05,_0x472251,_0x2c3cca,_0x38f86a;const _0x15b659=_0x14928a[_0x136503(0x4a7)],_0xb5d00b=JSON[_0x136503(0x4d5)](_0x15b659);switch(_0xb5d00b[_0x136503(0x2e6)]){case _0x1ab374[_0x136503(0x36f)]:case _0x1ab374['HELLO']:{const _0x2c0445=_0xb5d00b[_0x136503(0x207)];return{..._0xb5d00b,'data':_0x2c0445,'cmd':_0xb5d00b[_0x136503(0x2e6)]};}case _0x1ab374[_0x136503(0x2e0)]:{const _0x313b55=_0xb5d00b[_0x136503(0x434)];return{..._0xb5d00b,'data':_0x313b55,'cmd':_0xb5d00b[_0x136503(0x2e6)]};}case _0x1ab374[_0x136503(0x24d)]:{const _0x3312ed=_0xb5d00b[_0x136503(0x48e)];switch(_0x3312ed[_0x136503(0x558)]){case _0x329b63[_0x136503(0x3dc)][_0x136503(0x271)]:return{..._0xb5d00b,'data':{..._0x3312ed,'data':(_0x24af05=_0x3312ed[_0x136503(0x4c3)])==null?void 0x0:_0x24af05['cs']},'cmd':_0xb5d00b[_0x136503(0x2e6)]};case _0x329b63[_0x136503(0x3dc)][_0x136503(0x396)]:return{..._0xb5d00b,'data':{..._0x3312ed,'data':(_0x472251=_0x3312ed[_0x136503(0x41d)])==null?void 0x0:_0x472251['cs']},'cmd':_0xb5d00b[_0x136503(0x2e6)]};case _0x329b63['CollaborationEvent']['NEW_CHANGESETS']:return{..._0xb5d00b,'data':{..._0x3312ed,'data':(_0x2c3cca=_0x3312ed['newCsEvent'])==null?void 0x0:_0x2c3cca['cs']},'cmd':_0xb5d00b[_0x136503(0x2e6)]};case _0x329b63[_0x136503(0x3dc)][_0x136503(0x429)]:return{..._0xb5d00b,'data':{..._0x3312ed,'data':(_0x38f86a=_0x3312ed[_0x136503(0x569)])==null?void 0x0:_0x38f86a['cs']},'cmd':_0xb5d00b[_0x136503(0x2e6)]};case _0x329b63[_0x136503(0x3dc)][_0x136503(0x2c9)]:return{..._0xb5d00b,'data':{..._0x3312ed,'data':_0x3312ed[_0x136503(0x444)]},'cmd':_0xb5d00b[_0x136503(0x2e6)]};case _0x329b63[_0x136503(0x3dc)]['USERS_ENTER']:return{..._0xb5d00b,'data':{..._0x3312ed,'data':_0x3312ed[_0x136503(0x2e5)]},'cmd':_0xb5d00b[_0x136503(0x2e6)]};case _0x329b63['CollaborationEvent']['USERS_LEAVE']:return{..._0xb5d00b,'data':{..._0x3312ed,'data':_0x3312ed[_0x136503(0x348)]},'cmd':_0xb5d00b['cmd']};case _0x329b63['CollaborationEvent'][_0x136503(0x47f)]:return{..._0xb5d00b,'data':{..._0x3312ed,'data':_0x3312ed[_0x136503(0x4c7)]},'cmd':_0xb5d00b[_0x136503(0x2e6)]};case _0x329b63[_0x136503(0x3dc)][_0x136503(0x51c)]:case _0x329b63[_0x136503(0x3dc)]['LIVESHARE_OPERATION']:return{..._0xb5d00b,'data':{..._0x3312ed,'data':_0x3312ed[_0x136503(0x3cf)]},'cmd':_0xb5d00b[_0x136503(0x2e6)]};case _0x329b63[_0x136503(0x3dc)][_0x136503(0x37c)]:return{..._0xb5d00b,'data':{..._0x3312ed,'data':_0x3312ed[_0x136503(0x4c7)]},'cmd':_0xb5d00b['cmd']};case _0x329b63[_0x136503(0x3dc)][_0x136503(0x325)]:return{..._0xb5d00b,'data':_0x3312ed,'cmd':_0xb5d00b[_0x136503(0x2e6)]};default:return _0xb5d00b;}}default:return _0xb5d00b;}}function _0x573082(_0xc3257c){const _0x326425=_0x57b986;switch(_0xc3257c[_0x326425(0x2e6)]){case _0x1ab374[_0x326425(0x36f)]:case _0x1ab374['HELLO']:return JSON[_0x326425(0x528)]({'cmd':_0xc3257c[_0x326425(0x2e6)],'routeKey':_0xc3257c[_0x326425(0x4da)]});case _0x1ab374[_0x326425(0x351)]:{let _0x4ed452;switch(_0xc3257c[_0x326425(0x4a7)][_0x326425(0x558)]){case _0x329b63[_0x326425(0x3dc)]['UPDATE_CURSOR']:{_0x4ed452={'eventID':_0x329b63[_0x326425(0x3dc)][_0x326425(0x2c9)],'updateCursorEvent':_0xc3257c[_0x326425(0x4a7)]['data']};break;}case _0x329b63['CollaborationEvent'][_0x326425(0x1f0)]:{_0x4ed452={'eventID':_0x329b63[_0x326425(0x3dc)]['USERS_LEAVE'],'leaveEvent':_0xc3257c[_0x326425(0x4a7)]['data']};break;}case _0x329b63['CollaborationEvent'][_0x326425(0x480)]:{_0x4ed452={'eventID':_0x329b63[_0x326425(0x3dc)][_0x326425(0x480)],'joinEvent':_0xc3257c[_0x326425(0x4a7)][_0x326425(0x4a7)]};break;}case _0x329b63[_0x326425(0x3dc)]['LIVESHARE_NEW_HOST']:{_0x4ed452={'eventID':_0x329b63[_0x326425(0x3dc)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0xc3257c[_0x326425(0x4a7)][_0x326425(0x4a7)]};break;}case _0x329b63[_0x326425(0x3dc)]['LIVESHARE_OPERATION']:{_0x4ed452={'eventID':_0x329b63[_0x326425(0x3dc)][_0x326425(0x219)],'liveShareOperation':_0xc3257c[_0x326425(0x4a7)][_0x326425(0x4a7)]};break;}case _0x329b63[_0x326425(0x3dc)][_0x326425(0x37c)]:{_0x4ed452={'eventID':_0x329b63[_0x326425(0x3dc)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0xc3257c['data'][_0x326425(0x4a7)]};break;}case _0x329b63['CollaborationEvent'][_0x326425(0x376)]:{_0x4ed452={'eventID':_0x329b63['CollaborationEvent'][_0x326425(0x376)],'liveShareRequestHost':_0xc3257c['data']['data']};break;}case _0x329b63[_0x326425(0x3dc)][_0x326425(0x51c)]:{_0x4ed452={'eventID':_0x329b63[_0x326425(0x3dc)][_0x326425(0x51c)]};break;}default:_0x4ed452={'eventID':_0xc3257c[_0x326425(0x4a7)][_0x326425(0x558)]};}return JSON[_0x326425(0x528)]({'cmd':_0xc3257c[_0x326425(0x2e6)],'routeKey':_0xc3257c['routeKey'],'collaMsg':_0x4ed452});}case _0x1ab374[_0x326425(0x2e0)]:return JSON[_0x326425(0x528)]({'cmd':_0xc3257c[_0x326425(0x2e6)],'routeKey':_0xc3257c[_0x326425(0x4da)],'joinReq':_0xc3257c[_0x326425(0x4a7)]});case _0x1ab374['LEAVE']:return JSON[_0x326425(0x528)]({'cmd':_0xc3257c[_0x326425(0x2e6)],'routeKey':_0xc3257c[_0x326425(0x4da)],'leaveReq':_0xc3257c[_0x326425(0x4a7)]});default:throw new Error(_0x326425(0x43b));}}var _0x4bd5cb=Object['defineProperty'],_0x21f6e5=Object['getOwnPropertyDescriptor'],_0x4bbf72=(_0x37deef,_0x57ac4f,_0x442538,_0x3d4143)=>{const _0x32a251=_0x57b986;for(var _0x23492d=_0x3d4143>0x1?void 0x0:_0x3d4143?_0x21f6e5(_0x57ac4f,_0x442538):_0x57ac4f,_0x3dbff2=_0x37deef[_0x32a251(0x397)]-0x1,_0x5922c5;_0x3dbff2>=0x0;_0x3dbff2--)(_0x5922c5=_0x37deef[_0x3dbff2])&&(_0x23492d=(_0x3d4143?_0x5922c5(_0x57ac4f,_0x442538,_0x23492d):_0x5922c5(_0x23492d))||_0x23492d);return _0x3d4143&&_0x23492d&&_0x4bd5cb(_0x57ac4f,_0x442538,_0x23492d),_0x23492d;},_0x54ea29=(_0x51dfa7,_0x5f3abc)=>(_0x1f6d2d,_0x329aa4)=>_0x5f3abc(_0x1f6d2d,_0x329aa4,_0x51dfa7);const _0x20ab21=_0x12925a[_0x57b986(0x249)](_0x57b986(0x23a));function _0x248c50(_0x3eff7b,_0x293a23,_0x2cdca4){return _0x3eff7b+'/'+_0x293a23+'/unit/'+_0x2cdca4+'/new_changes';}_0x3f3314[_0x57b986(0x4a5)]=class{constructor(_0x22b26d,_0x157797,_0x5a49e2,_0x422464,_0xd6c2d6){const _0x237850=_0x57b986;this[_0x237850(0x38e)]=_0x22b26d,this[_0x237850(0x572)]=_0x157797,this[_0x237850(0x323)]=_0x5a49e2,this[_0x237850(0x314)]=_0x422464,this[_0x237850(0x1e8)]=_0xd6c2d6;}[_0x57b986(0x210)](_0x4cf21f){const _0x19ecad=_0x57b986,_0x3976a7=this[_0x19ecad(0x572)][_0x19ecad(0x210)](_0x4cf21f);if(!_0x3976a7)throw new Error(_0x19ecad(0x2f3));const _0x2f74a1=new _0x4cdaf4[(_0x19ecad(0x392))](),_0x2c4f27=new _0x4bb16b[(_0x19ecad(0x42d))]();_0x2f74a1[_0x19ecad(0x2b7)](_0x4cdaf4[_0x19ecad(0x56b)](_0x3976a7['close$'][_0x19ecad(0x29e)](_0x246393=>_0x2c4f27[_0x19ecad(0x1bd)](_0x246393)))),_0x2f74a1['add'](_0x4cdaf4[_0x19ecad(0x56b)](()=>_0x2c4f27[_0x19ecad(0x461)]()));const _0x1762fb=new _0x4bb16b[(_0x19ecad(0x42d))]();_0x2f74a1[_0x19ecad(0x2b7)](_0x4cdaf4[_0x19ecad(0x56b)](_0x3976a7[_0x19ecad(0x525)][_0x19ecad(0x29e)](_0x35beb5=>_0x1762fb[_0x19ecad(0x1bd)](_0x35beb5)))),_0x2f74a1[_0x19ecad(0x2b7)](_0x4cdaf4[_0x19ecad(0x56b)](()=>_0x1762fb[_0x19ecad(0x461)]()));const _0x5f35c8=new _0x4bb16b[(_0x19ecad(0x42d))]();_0x2f74a1[_0x19ecad(0x2b7)](_0x4cdaf4['toDisposable'](_0x3976a7[_0x19ecad(0x543)]['subscribe'](_0x5842c4=>{const _0x505557=_0x19ecad,_0x272667=_0x4e7170(_0x5842c4);_0x5f35c8[_0x505557(0x1bd)](_0x272667);}))),_0x2f74a1[_0x19ecad(0x2b7)](_0x4cdaf4[_0x19ecad(0x56b)](()=>_0x5f35c8[_0x19ecad(0x461)]()));const _0x20f693=()=>{const _0xae61c=_0x19ecad;_0x1762fb['next'](new Event(_0xae61c(0x283))),_0x2c4f27[_0xae61c(0x1bd)](new CloseEvent(_0xae61c(0x283))),_0x1e973e[_0xae61c(0x542)]();},_0x1e973e={'memberID':'','close$':_0x2c4f27[_0x19ecad(0x534)](),'error$':_0x1762fb[_0x19ecad(0x534)](),'open$':_0x3976a7[_0x19ecad(0x45b)],'message$':_0x5f35c8[_0x19ecad(0x534)](),'send':_0x378e67=>{const _0x17414c=_0x19ecad;if(_0x378e67[_0x17414c(0x2e6)]===_0x1ab374[_0x17414c(0x351)]){if(_0x378e67['data'][_0x17414c(0x558)]===_0x329b63[_0x17414c(0x3dc)]['SUBMIT_CHANGESET']){this[_0x17414c(0x307)](_0x1e973e,_0x378e67[_0x17414c(0x4a7)])[_0x17414c(0x383)](_0x4b7fea=>{const _0x2df088=_0x17414c;this['_logService'][_0x2df088(0x4a4)](_0x4b7fea),_0x20f693();});return;}if(_0x378e67[_0x17414c(0x4a7)][_0x17414c(0x558)]===_0x329b63[_0x17414c(0x3dc)][_0x17414c(0x355)]){const _0x2b0fac=_0x378e67[_0x17414c(0x4a7)];this['_fetchMissChangesets'](_0x2b0fac)[_0x17414c(0x4c6)](_0x23fb44=>{const _0x20e692=_0x17414c;_0x5f35c8[_0x20e692(0x1bd)]({'cmd':_0x1ab374[_0x20e692(0x24d)],'code':_0x401f1c['OK'],'routeKey':_0x2b0fac['data'][_0x20e692(0x40f)],'routeType':'','data':{'eventID':_0x329b63[_0x20e692(0x3dc)][_0x20e692(0x430)],'data':{'changesets':_0x23fb44}}});})['catch'](_0x5b8c16=>{const _0x4d3a6b=_0x17414c;this[_0x4d3a6b(0x314)]['error'](_0x5b8c16),_0x20f693();});return;}}_0x3976a7[_0x17414c(0x4aa)](_0x573082(_0x378e67));},'close':()=>{const _0x2a13e5=_0x19ecad;_0x3976a7['close'](),_0x2f74a1[_0x2a13e5(0x46e)]();}};return _0x1e973e;}async[_0x57b986(0x307)](_0x36e1b0,_0x4cbeba){const _0x4ade6a=_0x57b986;var _0x2174a8;const {unitType:_0x258de9,unitID:_0xc2c26,changeset:_0x1dae77}=_0x4cbeba['data'],_0x6fbdb3={'unitID':_0xc2c26,'memberID':_0x36e1b0[_0x4ade6a(0x537)],'type':_0x258de9,'changeset':_0x329b63[_0x4ade6a(0x298)](_0x1dae77)},_0xdc0bc=_0x248c50((_0x2174a8=this[_0x4ade6a(0x323)][_0x4ade6a(0x51f)](_0x3050c7))!=null?_0x2174a8:_0xf9a59b,_0x258de9,_0xc2c26);try{await this[_0x4ade6a(0x38e)][_0x4ade6a(0x45d)](_0xdc0bc,{'body':_0x6fbdb3});}catch(_0x1b3b96){throw this['_logService'][_0x4ade6a(0x4a4)](_0x4ade6a(0x30c),_0x4ade6a(0x375)),_0x1b3b96;}}async[_0x57b986(0x425)](_0x4c6691){const _0xe55740=_0x57b986,{unitID:_0x118e48,from:_0x4ced83,to:_0x185985,unitType:_0x286852}=_0x4c6691[_0xe55740(0x4a7)];return(await this[_0xe55740(0x1e8)][_0xe55740(0x305)]({'metadata':void 0x0},{'unitID':_0x118e48,'type':_0x286852,'from':_0x4ced83,'to':_0x185985}))[_0xe55740(0x2ce)];}},_0x3f3314[_0x57b986(0x4a5)]=_0x4bbf72([_0x54ea29(0x0,_0x12925a[_0x57b986(0x42c)](_0xfde0ab[_0x57b986(0x280)])),_0x54ea29(0x1,_0x12925a[_0x57b986(0x42c)](_0xfde0ab['WebSocketService'])),_0x54ea29(0x2,_0x4cdaf4[_0x57b986(0x4f1)]),_0x54ea29(0x3,_0x4cdaf4[_0x57b986(0x41c)]),_0x54ea29(0x4,_0x4cdaf4[_0x57b986(0x3ea)])],_0x3f3314[_0x57b986(0x4a5)]);var _0x37ac7e=Object[_0x57b986(0x1f4)],_0x49ccb3=Object[_0x57b986(0x405)],_0xc86922=(_0x65f0d1,_0x1a66a9,_0x123dd2,_0x1c22c6)=>{const _0x206d8c=_0x57b986;for(var _0x56fb3e=_0x1c22c6>0x1?void 0x0:_0x1c22c6?_0x49ccb3(_0x1a66a9,_0x123dd2):_0x1a66a9,_0x3b7a86=_0x65f0d1[_0x206d8c(0x397)]-0x1,_0xfc54b5;_0x3b7a86>=0x0;_0x3b7a86--)(_0xfc54b5=_0x65f0d1[_0x3b7a86])&&(_0x56fb3e=(_0x1c22c6?_0xfc54b5(_0x1a66a9,_0x123dd2,_0x56fb3e):_0xfc54b5(_0x56fb3e))||_0x56fb3e);return _0x1c22c6&&_0x56fb3e&&_0x37ac7e(_0x1a66a9,_0x123dd2,_0x56fb3e),_0x56fb3e;},_0x4b46e7=(_0x4e5012,_0x5dd051)=>(_0x2bcf71,_0x3d5019)=>_0x5dd051(_0x2bcf71,_0x3d5019,_0x4e5012),_0x585a5c=(_0x3dd872=>(_0x3dd872[_0x3dd872[_0x57b986(0x33b)]=0x0]=_0x57b986(0x33b),_0x3dd872[_0x3dd872[_0x57b986(0x236)]=0x1]=_0x57b986(0x236),_0x3dd872[_0x3dd872[_0x57b986(0x26f)]=0x2]=_0x57b986(0x26f),_0x3dd872[_0x3dd872[_0x57b986(0x1c1)]=0x3]='ONLINE',_0x3dd872))(_0x585a5c||{});_0x3f3314[_0x57b986(0x4d7)]=class extends _0x4cdaf4[_0x57b986(0x499)]{constructor(_0x56ee23,_0x1f192e,_0x53a19c,_0x11cdd8,_0x297276,_0x54cc25,_0x4e8ecc,_0x59b673){const _0xb51d5f=_0x57b986;super(),_0x53d09f(this,'_sessionStatus$',new _0x4bb16b[(_0xb51d5f(0x2e9))](0x0)),_0x53d09f(this,_0xb51d5f(0x46d),this['_sessionStatus$'][_0xb51d5f(0x534)]()),_0x53d09f(this,_0xb51d5f(0x259),new _0x4bb16b[(_0xb51d5f(0x42d))]()),_0x53d09f(this,_0xb51d5f(0x24c),this['_event$'][_0xb51d5f(0x534)]()),_0x53d09f(this,'_socket'),_0x53d09f(this,_0xb51d5f(0x460)),_0x53d09f(this,_0xb51d5f(0x48d)),(this[_0xb51d5f(0x456)]=_0x56ee23,this[_0xb51d5f(0x314)]=_0x53a19c,this[_0xb51d5f(0x212)]=_0x11cdd8,this['_messageService']=_0x297276,this[_0xb51d5f(0x323)]=_0x54cc25,this[_0xb51d5f(0x247)]=_0x4e8ecc,this[_0xb51d5f(0x1d3)]=_0x59b673,_0x1f192e[_0xb51d5f(0x334)](_0x4ac749['takeUntil'](this[_0xb51d5f(0x2e3)]))[_0xb51d5f(0x29e)](_0x39502a=>{const _0x13f907=_0xb51d5f;var _0xacdefa;typeof _0x39502a>'u'||(this[_0x13f907(0x453)]=_0x39502a,_0x39502a?(this[_0x13f907(0x311)](_0x39502a),this[_0x13f907(0x460)]=this[_0x13f907(0x453)][_0x13f907(0x543)][_0x13f907(0x29e)](_0x301622=>{const _0x595edd=_0x13f907;_0x301622[_0x595edd(0x4da)]===this['_unitID']&&this['_onCombEvent'](_0x301622);})):(this['_sessionStatus$'][_0x13f907(0x1bd)](0x2),(_0xacdefa=this[_0x13f907(0x460)])==null||_0xacdefa['unsubscribe'](),this['_socketMessageSubscription']=null));}),this['disposeWithMe'](this[_0xb51d5f(0x212)][_0xb51d5f(0x4d3)](()=>{const _0x3f2df8=_0xb51d5f;var _0x155a6a;(_0x155a6a=this[_0x3f2df8(0x453)])==null||_0x155a6a[_0x3f2df8(0x4aa)]({'cmd':_0x1ab374[_0x3f2df8(0x29b)],'data':{'roomID':this[_0x3f2df8(0x456)]}});})));}get[_0x57b986(0x2b1)](){const _0x16159f=_0x57b986;return this['_sessionStatus$'][_0x16159f(0x424)]();}[_0x57b986(0x46a)](){var _0x11dd7e,_0x2aa8a3;return(_0x2aa8a3=(_0x11dd7e=this['_socket'])==null?void 0x0:_0x11dd7e['memberID'])!=null?_0x2aa8a3:null;}[_0x57b986(0x46e)](){const _0x46eada=_0x57b986;super[_0x46eada(0x46e)](),this[_0x46eada(0x2e3)][_0x46eada(0x1bd)](),this[_0x46eada(0x2e3)][_0x46eada(0x461)]();}[_0x57b986(0x539)](_0x42283e){const _0x565c03=_0x57b986;_0x42283e['cmd']===_0x1ab374[_0x565c03(0x2e0)]?this[_0x565c03(0x56c)](_0x42283e):_0x42283e[_0x565c03(0x2e6)]===_0x1ab374[_0x565c03(0x24d)]&&this[_0x565c03(0x237)](_0x42283e);}[_0x57b986(0x311)](_0x3d2524){const _0x445c2a=_0x57b986;this[_0x445c2a(0x39f)][_0x445c2a(0x1bd)](0x1),_0x3d2524['send']({'cmd':_0x1ab374[_0x445c2a(0x2e0)],'routeKey':this[_0x445c2a(0x456)],'routeType':'','data':{'rooms':[{'roomID':this[_0x445c2a(0x456)]}]}});}['_onJoinRoomEvent'](_0x1d666e){const _0x46a7ec=_0x57b986;var _0x2ae3f0;if(_0x1d666e[_0x46a7ec(0x35d)]===_0x401f1c['FAIL']){this[_0x46a7ec(0x2fc)]['show']({'type':_0x4fb88a['MessageType'][_0x46a7ec(0x2bb)],'content':this[_0x46a7ec(0x247)]['t']('session.room-full')}),this[_0x46a7ec(0x39f)][_0x46a7ec(0x1bd)](0x2);return;}this[_0x46a7ec(0x39f)][_0x46a7ec(0x1bd)](0x3);const _0x4af070=(_0x2ae3f0=_0x1d666e[_0x46a7ec(0x4a7)][_0x46a7ec(0x3dd)][this[_0x46a7ec(0x456)]])==null?void 0x0:_0x2ae3f0[_0x46a7ec(0x36e)];_0x4af070&&_0x4af070['forEach'](_0x1ebbb1=>this['_memberService'][_0x46a7ec(0x3f7)](this['_unitID'],_0x1ebbb1));}[_0x57b986(0x237)](_0x19b392){const _0x1d3292=_0x57b986;try{const _0x156774=_0x19b392[_0x1d3292(0x4a7)];switch(_0x156774[_0x1d3292(0x558)]){case _0x329b63[_0x1d3292(0x3dc)]['USERS_ENTER']:this[_0x1d3292(0x3bf)](_0x156774),this['_event$'][_0x1d3292(0x1bd)](_0x156774);break;case _0x329b63[_0x1d3292(0x3dc)][_0x1d3292(0x1f0)]:this[_0x1d3292(0x486)](_0x156774),this[_0x1d3292(0x259)][_0x1d3292(0x1bd)](_0x156774);break;case _0x329b63[_0x1d3292(0x3dc)][_0x1d3292(0x396)]:this[_0x1d3292(0x37e)](),this[_0x1d3292(0x259)]['next'](_0x156774);break;case _0x329b63['CollaborationEvent']['MSG_FOR_ERROR']:this['_logService'][_0x1d3292(0x4a4)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x1d3292(0x528)](_0x156774)),this[_0x1d3292(0x259)][_0x1d3292(0x1bd)](_0x156774);break;default:this[_0x1d3292(0x259)]['next'](_0x156774);}}catch(_0x54331b){this[_0x1d3292(0x314)][_0x1d3292(0x4a4)](_0x54331b,_0x19b392);}}[_0x57b986(0x3bf)](_0xeb99d2){const _0x376abd=_0x57b986;this[_0x376abd(0x1d3)]['updateMember'](this['_unitID'],_0xeb99d2['data']);}[_0x57b986(0x486)](_0x582ef0){const _0x306404=_0x57b986;this[_0x306404(0x1d3)]['removeMember'](this[_0x306404(0x456)],_0x582ef0['data'][_0x306404(0x537)]);}async[_0x57b986(0x4aa)](_0x54b42b,_0x92bc80){const _0x2002c5=_0x57b986;if(this[_0x2002c5(0x2b1)]!==0x3||!this[_0x2002c5(0x453)])throw new Error(_0x2002c5(0x25d));try{_0x54b42b['eventID']===_0x329b63['CollaborationEvent'][_0x2002c5(0x345)]&&this[_0x2002c5(0x320)](),this[_0x2002c5(0x453)]['send']({'cmd':_0x1ab374[_0x2002c5(0x351)],'routeKey':_0x92bc80,'routeType':'','data':_0x54b42b});}catch(_0x576c82){this[_0x2002c5(0x314)][_0x2002c5(0x4a4)](_0x576c82);}}[_0x57b986(0x320)](){const _0x495dbc=_0x57b986;var _0x40ac63;this[_0x495dbc(0x48d)]=window['setTimeout'](()=>{const _0x497793=_0x495dbc;this[_0x497793(0x48d)]=null,this[_0x497793(0x2fc)]['show']({'type':_0x4fb88a[_0x497793(0x2af)][_0x497793(0x4a2)],'content':this[_0x497793(0x247)]['t'](_0x497793(0x511))});},(_0x40ac63=this['_configService'][_0x495dbc(0x51f)](_0x3287b4))!=null?_0x40ac63:0x2710);}[_0x57b986(0x37e)](){const _0x12eb57=_0x57b986;this[_0x12eb57(0x48d)]&&(clearTimeout(this[_0x12eb57(0x48d)]),this['_collaborationTimeoutTimer']=null);}},_0x3f3314['CollaborationSession']=_0xc86922([_0x4b46e7(0x2,_0x4cdaf4[_0x57b986(0x41c)]),_0x4b46e7(0x3,_0x4ff465[_0x57b986(0x3d0)]),_0x4b46e7(0x4,_0x4ff465['IMessageService']),_0x4b46e7(0x5,_0x4cdaf4[_0x57b986(0x4f1)]),_0x4b46e7(0x6,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4[_0x57b986(0x502)])),_0x4b46e7(0x7,_0x12925a['Inject'](_0x4495e7))],_0x3f3314[_0x57b986(0x4d7)]),_0x3f3314['CollaborationSessionService']=class extends _0x4cdaf4['Disposable']{constructor(_0x81fda5,_0x49543f,_0x2ec5fe,_0x5ccc4a,_0x325135,_0x4251d0){const _0x4608ad=_0x57b986;super(),_0x53d09f(this,_0x4608ad(0x3fe),new _0x4bb16b[(_0x4608ad(0x2e9))](void 0x0)),_0x53d09f(this,_0x4608ad(0x417),new Map()),_0x53d09f(this,_0x4608ad(0x488),new _0x4bb16b[(_0x4608ad(0x2e9))](0x0)),_0x53d09f(this,_0x4608ad(0x37b),this[_0x4608ad(0x488)]['asObservable']()),_0x53d09f(this,_0x4608ad(0x312),!0x1),_0x53d09f(this,_0x4608ad(0x2f0)),_0x53d09f(this,_0x4608ad(0x26e)),_0x53d09f(this,_0x4608ad(0x43e)),_0x53d09f(this,_0x4608ad(0x203),0x0),(this[_0x4608ad(0x260)]=_0x81fda5,this[_0x4608ad(0x247)]=_0x49543f,this['_messageService']=_0x2ec5fe,this[_0x4608ad(0x314)]=_0x5ccc4a,this['_configService']=_0x325135,this[_0x4608ad(0x1c7)]=_0x4251d0);}get[_0x57b986(0x453)](){const _0x39ec6d=_0x57b986;return this[_0x39ec6d(0x3fe)][_0x39ec6d(0x424)]();}['dispose'](){const _0x2e5119=_0x57b986;super[_0x2e5119(0x46e)](),this[_0x2e5119(0x417)][_0x2e5119(0x2bc)](_0x11f2ec=>_0x11f2ec[_0x2e5119(0x46e)]()),this['_sessions']['clear'](),this[_0x2e5119(0x488)][_0x2e5119(0x461)]();}async[_0x57b986(0x50a)](_0x883a3){const _0x3abd8e=_0x57b986;if(this[_0x3abd8e(0x417)]['has'](_0x883a3))return this[_0x3abd8e(0x417)][_0x3abd8e(0x408)](_0x883a3);this[_0x3abd8e(0x4f2)]();const _0x2ad05c=this[_0x3abd8e(0x260)][_0x3abd8e(0x545)](_0x3f3314[_0x3abd8e(0x4d7)],_0x883a3,this['_socket$'][_0x3abd8e(0x534)]());return this[_0x3abd8e(0x417)]['set'](_0x883a3,_0x2ad05c),_0x2ad05c;}[_0x57b986(0x50b)](){const _0x541765=_0x57b986;var _0x3f15f3;const _0x301468=(_0x3f15f3=this[_0x541765(0x323)][_0x541765(0x51f)](_0x28607c))!=null?_0x3f15f3:_0x5d6701;return this['_socketService']['createSocket'](_0x301468);}[_0x57b986(0x4f2)](){const _0x1976d6=_0x57b986;try{const _0x3182eb=this['_createSocket']();if(_0x3182eb){const _0x1b8b29=_0x3182eb[_0x1976d6(0x4aa)];_0x3182eb[_0x1976d6(0x4aa)]=_0x5658e8=>(this[_0x1976d6(0x2cc)](),_0x1b8b29[_0x1976d6(0x3ca)](_0x3182eb,[_0x5658e8])),_0x3182eb[_0x1976d6(0x543)][_0x1976d6(0x29e)](_0x45f96e=>this[_0x1976d6(0x1e2)](_0x3182eb,_0x45f96e)),_0x3182eb['error$']['pipe'](_0x4ac749['take'](0x1))[_0x1976d6(0x29e)](_0x31b31c=>this['_logService'][_0x1976d6(0x4a4)](_0x1976d6(0x4ca),_0x31b31c)),_0x3182eb[_0x1976d6(0x45b)]['pipe'](_0x4ac749[_0x1976d6(0x3bc)](0x1))[_0x1976d6(0x29e)](()=>{const _0x2432b0=_0x1976d6;this[_0x2432b0(0x2d4)](_0x3182eb);}),_0x3182eb[_0x1976d6(0x1e3)][_0x1976d6(0x334)](_0x4ac749[_0x1976d6(0x3bc)](0x1))[_0x1976d6(0x29e)](_0x2e49b6=>{const _0x328f8c=_0x1976d6;this[_0x328f8c(0x314)]['debug']('[CollaborationSessionService]',_0x328f8c(0x300),_0x2e49b6),this['_onConnectionFailed']();});}}catch(_0x339053){this[_0x1976d6(0x314)][_0x1976d6(0x4a4)](_0x339053),this[_0x1976d6(0x40d)]();}}[_0x57b986(0x2d4)](_0x34e106){const _0x2c129e=_0x57b986;this[_0x2c129e(0x314)][_0x2c129e(0x1fa)](_0x2c129e(0x3d1),_0x2c129e(0x1f9)),_0x34e106[_0x2c129e(0x4aa)]({'cmd':_0x1ab374[_0x2c129e(0x261)]}),this[_0x2c129e(0x2cc)]();}[_0x57b986(0x40d)](){const _0x234938=_0x57b986;var _0x287846;this[_0x234938(0x488)][_0x234938(0x1bd)](0x2),this[_0x234938(0x3fe)][_0x234938(0x1bd)](null),this[_0x234938(0x1ef)](),this[_0x234938(0x3b4)](),this[_0x234938(0x312)]=!0x1,this[_0x234938(0x203)]<((_0x287846=this[_0x234938(0x323)][_0x234938(0x51f)](_0x31e01f))!=null?_0x287846:0x3)?(this['_scheduleReconnection'](this[_0x234938(0x203)]),this[_0x234938(0x203)]+=0x1):this[_0x234938(0x2fc)]['show']({'type':_0x4fb88a[_0x234938(0x2af)]['Error'],'content':this[_0x234938(0x247)]['t'](_0x234938(0x34b))});}['_scheduleReconnection'](_0x5578c1){const _0x307108=_0x57b986;var _0x19454f;const _0x46f72d=((_0x19454f=this[_0x307108(0x323)][_0x307108(0x51f)](_0x192ae1))!=null?_0x19454f:0x4e20)*0x2**_0x5578c1;this[_0x307108(0x2fc)]['show']({'type':_0x4fb88a[_0x307108(0x2af)][_0x307108(0x2bb)],'content':this[_0x307108(0x247)]['t'](_0x307108(0x449))}),this[_0x307108(0x43e)]=setTimeout(()=>{const _0x493976=_0x307108;this[_0x493976(0x4f2)](),clearTimeout(this[_0x493976(0x43e)]),this[_0x493976(0x43e)]=null;},_0x46f72d);}['_rescheduleHeartbeatEvent'](){const _0x424977=_0x57b986;var _0x83a64;this['_clearHeartbeatTimer'](),this[_0x424977(0x2f0)]=setTimeout(()=>this[_0x424977(0x517)](),(_0x83a64=this['_configService']['getConfig'](_0x1e7060))!=null?_0x83a64:0x7530);}[_0x57b986(0x517)](){const _0x1260c3=_0x57b986;this['_socket'][_0x1260c3(0x4aa)]({'cmd':_0x1ab374[_0x1260c3(0x36f)]}),this[_0x1260c3(0x1ce)]();}[_0x57b986(0x1ce)](){const _0x2e5a8e=_0x57b986;var _0x37b658;this[_0x2e5a8e(0x26e)]=setTimeout(()=>this[_0x2e5a8e(0x40d)](),(_0x37b658=this[_0x2e5a8e(0x323)]['getConfig'](_0x3287b4))!=null?_0x37b658:0x2710);}['_onMessage'](_0x5678f0,_0x2ad5d2){const _0x2ca87f=_0x57b986,{cmd:_0x51f353}=_0x2ad5d2;_0x51f353===_0x1ab374['HELLO']&&!this[_0x2ca87f(0x312)]&&(_0x5678f0[_0x2ca87f(0x537)]=_0x2ad5d2['data'][_0x2ca87f(0x537)],this[_0x2ca87f(0x3fe)][_0x2ca87f(0x1bd)](_0x5678f0),this['_status$']['next'](0x3),this[_0x2ca87f(0x312)]=!0x0),_0x51f353===_0x1ab374[_0x2ca87f(0x36f)]&&this[_0x2ca87f(0x1ef)](),this[_0x2ca87f(0x2cc)]();}[_0x57b986(0x3b4)](){const _0x206829=_0x57b986;this[_0x206829(0x2f0)]!=null&&(clearTimeout(this[_0x206829(0x2f0)]),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){const _0x5ad763=_0x57b986;this[_0x5ad763(0x26e)]!=null&&(clearTimeout(this[_0x5ad763(0x26e)]),this[_0x5ad763(0x26e)]=null);}},_0x3f3314[_0x57b986(0x48c)]=_0xc86922([_0x4b46e7(0x0,_0x12925a['Inject'](_0x12925a[_0x57b986(0x52f)])),_0x4b46e7(0x1,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4[_0x57b986(0x502)])),_0x4b46e7(0x2,_0x4ff465[_0x57b986(0x27e)]),_0x4b46e7(0x3,_0x4cdaf4[_0x57b986(0x41c)]),_0x4b46e7(0x4,_0x4cdaf4['IConfigService']),_0x4b46e7(0x5,_0x20ab21)],_0x3f3314[_0x57b986(0x48c)]);var _0x2d8902=Object[_0x57b986(0x1f4)],_0x24f805=Object['getOwnPropertyDescriptor'],_0x3aed3d=(_0x537699,_0x181060,_0x3b57a8,_0x430929)=>{const _0x420df8=_0x57b986;for(var _0x54e189=_0x430929>0x1?void 0x0:_0x430929?_0x24f805(_0x181060,_0x3b57a8):_0x181060,_0x250dba=_0x537699[_0x420df8(0x397)]-0x1,_0x2f0351;_0x250dba>=0x0;_0x250dba--)(_0x2f0351=_0x537699[_0x250dba])&&(_0x54e189=(_0x430929?_0x2f0351(_0x181060,_0x3b57a8,_0x54e189):_0x2f0351(_0x54e189))||_0x54e189);return _0x430929&&_0x54e189&&_0x2d8902(_0x181060,_0x3b57a8,_0x54e189),_0x54e189;},_0x4a91e0=(_0x1e1a91,_0xcc0740)=>(_0x2d6fb2,_0x4bdbc1)=>_0xcc0740(_0x2d6fb2,_0x4bdbc1,_0x1e1a91);_0x3f3314[_0x57b986(0x361)]=class extends _0x4cdaf4[_0x57b986(0x310)]{constructor(_0x1a0ef0,_0x7f8c94,_0x578214,_0x4d9fc9,_0x23b409){const _0x51db2b=_0x57b986;super(),_0x53d09f(this,_0x51db2b(0x541),new Map()),_0x53d09f(this,_0x51db2b(0x479),new Map()),_0x53d09f(this,'_disabled',!0x1),(this[_0x51db2b(0x323)]=_0x1a0ef0,this[_0x51db2b(0x318)]=_0x7f8c94,this['_beforeCloseService']=_0x578214,this['_localeService']=_0x4d9fc9,this[_0x51db2b(0x377)]=_0x23b409,this['_setupBeforeClosingHandler']());}[_0x57b986(0x571)](){this['_disabled']=!0x0;}[_0x57b986(0x529)](){this['_disabled']=!0x1;}['dispose'](){const _0x3d246f=_0x57b986;this[_0x3d246f(0x50c)]()[_0x3d246f(0x4c6)](()=>super[_0x3d246f(0x46e)]());}async[_0x57b986(0x1d5)](_0x511541){const _0x5f5dbd=_0x57b986;return this[_0x5f5dbd(0x496)]?null:this[_0x5f5dbd(0x318)][_0x5f5dbd(0x3f9)](_0x479938(_0x511541));}async['saveOfflineData'](_0x4001f4,_0x37a73c){const _0x3151de=_0x57b986;return!!this['_localStorageService'][_0x3151de(0x1ca)](_0x4001f4,_0x37a73c);}[_0x57b986(0x37a)](_0xe5065,_0x455a21,_0x33ba3a,_0x4b9ec7){const _0x982364=_0x57b986,_0x1193de=this[_0x982364(0x377)][_0x982364(0x577)](_0xe5065);this[_0x982364(0x541)][_0x982364(0x2c3)](_0xe5065,{'unitID':_0xe5065,'type':_0x455a21,'awaitingChangeset':_0x33ba3a,'mutations':_0x4b9ec7,'rev':_0x1193de}),this['_saveTaskMap'][_0x982364(0x458)](_0xe5065)||this[_0x982364(0x4b6)](_0xe5065);}[_0x57b986(0x4b6)](_0x4b24d0){const _0x1eb031=_0x57b986,_0x12f97c=this[_0x1eb031(0x344)]();_0x12f97c===0x0?this[_0x1eb031(0x516)](_0x4b24d0):this[_0x1eb031(0x479)]['set'](_0x4b24d0,setTimeout(()=>this[_0x1eb031(0x516)](_0x4b24d0),_0x12f97c));}['_getSaveTimeout'](){const _0xc863db=_0x57b986;var _0x2dac1e;return(_0x2dac1e=this[_0xc863db(0x323)][_0xc863db(0x51f)](_0x1e2fa3))!=null?_0x2dac1e:0x3e8;}[_0x57b986(0x516)](_0x4b9f27){const _0x1c257e=_0x57b986,_0x3fb694=this[_0x1c257e(0x479)]['get'](_0x4b9f27);return _0x3fb694!==void 0x0&&window['clearTimeout'](_0x3fb694),this[_0x1c257e(0x318)][_0x1c257e(0x1ca)](_0x479938(_0x4b9f27),this[_0x1c257e(0x541)][_0x1c257e(0x408)](_0x4b9f27))[_0x1c257e(0x4c6)](()=>this[_0x1c257e(0x479)][_0x1c257e(0x391)](_0x4b9f27));}async[_0x57b986(0x50c)](){const _0x51329e=_0x57b986,_0x8dea73=[];this['_saveTaskMap'][_0x51329e(0x2bc)]((_0x594413,_0xae74b)=>{const _0x59472c=_0x51329e;window[_0x59472c(0x404)](_0x594413),_0x8dea73[_0x59472c(0x2a8)](this[_0x59472c(0x516)](_0xae74b)['then'](()=>{const _0x5af640=_0x59472c;this[_0x5af640(0x479)][_0x5af640(0x391)](_0xae74b);}));}),await Promise[_0x51329e(0x54e)](_0x8dea73);}[_0x57b986(0x37d)](){const _0x1f572c=_0x57b986;this[_0x1f572c(0x250)](this[_0x1f572c(0x212)][_0x1f572c(0x4e4)](()=>{const _0x25ae53=_0x1f572c;if(this['_saveTaskMap'][_0x25ae53(0x349)])return this[_0x25ae53(0x247)]['t'](_0x25ae53(0x208));}));}},_0x3f3314[_0x57b986(0x361)]=_0x3aed3d([_0x4a91e0(0x0,_0x4cdaf4[_0x57b986(0x4f1)]),_0x4a91e0(0x1,_0x4cdaf4[_0x57b986(0x333)]),_0x4a91e0(0x2,_0x4ff465['IBeforeCloseService']),_0x4a91e0(0x3,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4['LocaleService'])),_0x4a91e0(0x4,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3a0)]))],_0x3f3314[_0x57b986(0x361)]);function _0x479938(_0x2a41a9){const _0x16190f=_0x57b986;return _0x16190f(0x515)+_0x2a41a9;}const _0x1c83f9=_0x12925a['createIdentifier'](_0x57b986(0x2cd));var _0x5e4f39=(_0xbfaa60=>(_0xbfaa60[_0xbfaa60['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x57b986(0x2a7),_0xbfaa60[_0xbfaa60[_0x57b986(0x288)]=0x1]='OTHER_CLIENTS_EDITING',_0xbfaa60))(_0x5e4f39||{});const _0x17198a=0x7530,_0x265087=_0x57b986(0x3cc);class _0x1c79cd extends _0x4cdaf4['Disposable']{constructor(){const _0x2b637a=_0x57b986;super(),_0x53d09f(this,'_id',_0x4cdaf4[_0x2b637a(0x2dc)][_0x2b637a(0x4a0)]()),_0x53d09f(this,_0x2b637a(0x40c),new Set()),_0x53d09f(this,_0x2b637a(0x2d6),new Map()),_0x53d09f(this,_0x2b637a(0x4bb),null),_0x53d09f(this,_0x2b637a(0x4b2),new Map()),_0x53d09f(this,_0x2b637a(0x55e),new Map()),this[_0x2b637a(0x546)]();}[_0x57b986(0x46e)](){const _0x47f9da=_0x57b986;super[_0x47f9da(0x46e)](),this[_0x47f9da(0x4b2)]['forEach']((_0x322484,_0x468a7c)=>this['_removeClearOtherTimer'](_0x468a7c)),this['_heartbeatTimer']&&window[_0x47f9da(0x28a)](this[_0x47f9da(0x4bb)]);}[_0x57b986(0x35e)](_0x59181e){const _0x4a714e=_0x57b986;return this[_0x4a714e(0x31d)](_0x59181e)[_0x4a714e(0x334)](_0x4bb16b[_0x4a714e(0x23d)]());}[_0x57b986(0x531)](_0x1aa751){const _0x2b26a5=_0x57b986;this[_0x2b26a5(0x40c)][_0x2b26a5(0x349)]===0x0&&this[_0x2b26a5(0x31c)](),this[_0x2b26a5(0x40c)][_0x2b26a5(0x2b7)](_0x1aa751),this[_0x2b26a5(0x4a1)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x1aa751],'isForwarded':!0x1});}['disposeUnit'](_0x4962e0){const _0x54e403=_0x57b986;this[_0x54e403(0x40c)]['delete'](_0x4962e0),this[_0x54e403(0x40c)][_0x54e403(0x349)]===0x0&&this[_0x54e403(0x4bb)]&&window[_0x54e403(0x28a)](this[_0x54e403(0x4bb)]);}['_init'](){const _0x2444e1=_0x57b986;this[_0x2444e1(0x250)](_0x4cdaf4[_0x2444e1(0x56b)](_0x4bb16b[_0x2444e1(0x228)](window,_0x2444e1(0x369))[_0x2444e1(0x29e)](_0x1a6fb6=>{const _0x3929a2=_0x2444e1;if(_0x1a6fb6['key']!==_0x265087||!_0x1a6fb6['newValue'])return;const _0x157bb3=JSON[_0x3929a2(0x4d5)](_0x1a6fb6['newValue']);this[_0x3929a2(0x481)](_0x157bb3);}))),window['addEventListener']('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x2444e1(0x2ac)],'unitIDs':Array[_0x2444e1(0x1bf)](this[_0x2444e1(0x40c)])}));}[_0x57b986(0x481)](_0x517b6b){const _0x53e4fe=_0x57b986;switch(_0x517b6b[_0x53e4fe(0x239)]){case 0x0:this[_0x53e4fe(0x3bb)](_0x517b6b);break;case 0x1:this[_0x53e4fe(0x3ce)](_0x517b6b);break;case 0x2:this[_0x53e4fe(0x37f)](_0x517b6b);break;}}[_0x57b986(0x3bb)](_0x5b0736){const _0x3af383=_0x57b986,{unitIDs:_0x19869b,memberID:_0x5920a1,isForwarded:_0x222000}=_0x5b0736;_0x19869b[_0x3af383(0x2bc)](_0x563886=>{const _0x236548=_0x3af383;if(!_0x222000&&this['_unitOnClients'][_0x236548(0x458)](_0x563886)&&this[_0x236548(0x31d)](_0x563886)[_0x236548(0x1bd)](0x1),!this['_unitOnClients'][_0x236548(0x458)](_0x563886)||!this[_0x236548(0x2d6)][_0x236548(0x408)](_0x563886)[_0x236548(0x458)](_0x5920a1)){const _0x35ef57=this[_0x236548(0x2d6)]['get'](_0x563886)||new Set();_0x35ef57[_0x236548(0x2b7)](_0x5920a1),this['_unitOnClients'][_0x236548(0x2c3)](_0x563886,_0x35ef57),this[_0x236548(0x326)](_0x5920a1);}}),_0x222000||this[_0x3af383(0x4a1)]({'type':0x0,'memberID':this[_0x3af383(0x2ac)],'unitIDs':[...this[_0x3af383(0x40c)]],'isForwarded':!0x0});}[_0x57b986(0x326)](_0x41c79a){const _0x3d66b1=_0x57b986;this[_0x3d66b1(0x4cc)](_0x41c79a);const _0x3e6142=window[_0x3d66b1(0x51a)](()=>{const _0x55d9e7=_0x3d66b1;this['_unitOnClients'][_0x55d9e7(0x2bc)](_0x51cc70=>{const _0x53b720=_0x55d9e7;_0x51cc70[_0x53b720(0x391)](_0x41c79a);});},_0x17198a*0x2);this['_clearOtherTimers'][_0x3d66b1(0x2c3)](_0x41c79a,_0x3e6142);}[_0x57b986(0x4cc)](_0x51ba06){const _0x4b4cdf=_0x57b986;if(this[_0x4b4cdf(0x4b2)][_0x4b4cdf(0x458)](_0x51ba06)){const _0x822089=this[_0x4b4cdf(0x4b2)][_0x4b4cdf(0x408)](_0x51ba06);_0x822089&&window[_0x4b4cdf(0x404)](_0x822089),this[_0x4b4cdf(0x4b2)][_0x4b4cdf(0x2c3)](_0x51ba06,null);}}[_0x57b986(0x3ce)](_0x98cbf0){const _0x516ea6=_0x57b986,{memberID:_0x325e91,unitIDs:_0x2f0a89}=_0x98cbf0;_0x2f0a89['forEach'](_0xca1829=>{const _0x1eb1c8=_0x23df;var _0x5e577f;const _0x2dd82b=this[_0x1eb1c8(0x2d6)][_0x1eb1c8(0x408)](_0xca1829);_0x2dd82b&&(_0x2dd82b[_0x1eb1c8(0x391)](_0x325e91),(_0x5e577f=this[_0x1eb1c8(0x31d)](_0xca1829))==null||_0x5e577f[_0x1eb1c8(0x1bd)](_0x2dd82b[_0x1eb1c8(0x349)]===0x0?0x0:0x1));}),this[_0x516ea6(0x4cc)](_0x325e91);}[_0x57b986(0x37f)](_0x55b2bf){const _0x36e86a=_0x57b986;this[_0x36e86a(0x326)](_0x55b2bf[_0x36e86a(0x537)]);}[_0x57b986(0x4a1)](_0x144a7d){const _0x7e7d5=_0x57b986;localStorage['setItem'](_0x265087,JSON[_0x7e7d5(0x528)](_0x144a7d));}[_0x57b986(0x31c)](){const _0x390eea=_0x57b986;this[_0x390eea(0x4bb)]=window['setInterval'](()=>{const _0x523ccd=_0x390eea;this[_0x523ccd(0x4a1)]({'type':0x2,'memberID':this[_0x523ccd(0x2ac)]});},_0x17198a);}['_ensureSubject'](_0x31e02a){const _0x11d611=_0x57b986;return this[_0x11d611(0x55e)][_0x11d611(0x458)](_0x31e02a)||this[_0x11d611(0x55e)][_0x11d611(0x2c3)](_0x31e02a,new _0x4bb16b['BehaviorSubject'](0x0)),this['_unitStatus'][_0x11d611(0x408)](_0x31e02a);}}var _0x50a955=Object[_0x57b986(0x1f4)],_0x48f3f1=Object[_0x57b986(0x405)],_0x1f27fc=(_0x35d123,_0x44baf6,_0x1d6c58,_0x10542f)=>{const _0x2cd3be=_0x57b986;for(var _0x3a036e=_0x10542f>0x1?void 0x0:_0x10542f?_0x48f3f1(_0x44baf6,_0x1d6c58):_0x44baf6,_0x39677e=_0x35d123[_0x2cd3be(0x397)]-0x1,_0x40ffc8;_0x39677e>=0x0;_0x39677e--)(_0x40ffc8=_0x35d123[_0x39677e])&&(_0x3a036e=(_0x10542f?_0x40ffc8(_0x44baf6,_0x1d6c58,_0x3a036e):_0x40ffc8(_0x3a036e))||_0x3a036e);return _0x10542f&&_0x3a036e&&_0x50a955(_0x44baf6,_0x1d6c58,_0x3a036e),_0x3a036e;},_0x2e15bb=(_0x5c6ebd,_0x1e1d5e)=>(_0x4f462a,_0x1e1a9e)=>_0x1e1d5e(_0x4f462a,_0x1e1a9e,_0x5c6ebd);let _0x29ca68=class{constructor(_0x413bc5,_0x27870a){this['_injector']=_0x413bc5,this['_transformService']=_0x27870a;}[_0x57b986(0x270)](_0xdc29e7){const _0x13d96d=_0x57b986;this[_0x13d96d(0x50e)](_0xdc29e7),this['_transformPreviousActiveRange'](_0xdc29e7);}['transformRemoteChangeset'](_0x7d75c9){const _0x519bf1=_0x57b986,_0x23b9bf=this[_0x519bf1(0x260)]['get'](_0x3fcd1a[_0x519bf1(0x3de)]),{redoCache:_0x3cdf94}=_0x23b9bf[_0x519bf1(0x57c)]();if(_0x3cdf94[_0x519bf1(0x397)]===0x0)return _0x7d75c9;let _0x3c3500=_0x4cdaf4['Tools'][_0x519bf1(0x2cb)](_0x7d75c9[_0x519bf1(0x526)][0x0]);for(let _0x4160ac=0x0;_0x4160ac<_0x3cdf94[_0x519bf1(0x397)];_0x4160ac++){const _0x4d2cb2={'id':_0x519bf1(0x367),'params':{..._0x3cdf94[_0x4160ac]}},_0x28b2d0=this[_0x519bf1(0x26d)][_0x519bf1(0x347)](_0x3c3500,_0x4d2cb2,!0x1);if(_0x329b63[_0x519bf1(0x4de)](_0x28b2d0))throw _0x28b2d0['error'];_0x3c3500=_0x28b2d0['m1Prime'];}return{..._0x4cdaf4[_0x519bf1(0x2dc)]['deepClone'](_0x7d75c9),'mutations':[_0x3c3500]};}[_0x57b986(0x50e)](_0xbd1bc4){const _0x39ffab=_0x57b986,_0x5b38f2=this['_injector'][_0x39ffab(0x408)](_0x3fcd1a[_0x39ffab(0x3de)]),{undoCache:_0x1a8463,redoCache:_0x5028b7}=_0x5b38f2[_0x39ffab(0x57c)]();if(_0x1a8463[_0x39ffab(0x397)]===0x0||_0x5028b7[_0x39ffab(0x397)]===0x0)return;const _0x14aacf=[],_0x4af519=[];let _0x1c1cc6=_0x4cdaf4['Tools'][_0x39ffab(0x2cb)](_0xbd1bc4[_0x39ffab(0x526)][0x0]),_0x185e0e=_0x4cdaf4[_0x39ffab(0x2dc)][_0x39ffab(0x2cb)](_0xbd1bc4['mutations'][0x0]);for(let _0x12365e=_0x1a8463[_0x39ffab(0x397)]-0x1;_0x12365e>=0x0;_0x12365e--){const _0x5c0a9e={'id':'doc.mutation.rich-text-editing','params':{..._0x1a8463[_0x12365e]}},_0x4feba={'id':_0x39ffab(0x367),'params':{..._0x5028b7[_0x12365e]}},_0x2d33d8=this[_0x39ffab(0x26d)]['transformMutation'](_0x1c1cc6,_0x5c0a9e,!0x1),_0x1a700e=this[_0x39ffab(0x26d)]['transformMutation'](_0x185e0e,_0x4feba,!0x1);if(_0x329b63[_0x39ffab(0x4de)](_0x2d33d8))throw _0x2d33d8[_0x39ffab(0x4a4)];if(_0x329b63[_0x39ffab(0x4de)](_0x1a700e))throw _0x1a700e[_0x39ffab(0x4a4)];_0x14aacf[_0x39ffab(0x582)](_0x2d33d8[_0x39ffab(0x22e)][_0x39ffab(0x455)]),_0x4af519[_0x39ffab(0x582)](_0x1a700e[_0x39ffab(0x22e)][_0x39ffab(0x455)]),_0x1c1cc6=_0x2d33d8[_0x39ffab(0x27b)],_0x185e0e=_0x1a700e[_0x39ffab(0x27b)];}_0x5b38f2[_0x39ffab(0x536)]({'undoCache':_0x14aacf,'redoCache':_0x4af519});}[_0x57b986(0x43d)](_0x5b57e1){const _0x23b5c0=_0x57b986,_0x4329af=this['_injector'][_0x23b5c0(0x408)](_0x3fcd1a[_0x23b5c0(0x3de)]),_0x89284=_0x4329af[_0x23b5c0(0x289)]();if(_0x89284==null)return;const _0x13b863=[{'id':_0x23b5c0(0x367),'params':{'unitId':_0x5b57e1['unitID'],'actions':null,'textRanges':[_0x89284]}}],_0x3a5259=this[_0x23b5c0(0x26d)]['transformMutationsWithChangeset'](_0x5b57e1,_0x13b863);if(!_0x329b63[_0x23b5c0(0x276)](_0x3a5259))throw _0x3a5259[_0x23b5c0(0x4a4)];const _0x36416b=_0x3a5259['m2Prime'][0x0][_0x23b5c0(0x455)]['textRanges'];Array[_0x23b5c0(0x2d5)](_0x36416b)&&_0x36416b[_0x23b5c0(0x397)]&&_0x4329af[_0x23b5c0(0x353)](_0x36416b[0x0]);}};_0x29ca68=_0x1f27fc([_0x2e15bb(0x0,_0x12925a[_0x57b986(0x42c)](_0x12925a[_0x57b986(0x52f)])),_0x2e15bb(0x1,_0x329b63['ITransformService'])],_0x29ca68);var _0x4ba7de=Object['defineProperty'],_0x2494ba=Object[_0x57b986(0x405)],_0x466bd0=(_0x1af3b1,_0x347d94,_0x520353,_0x277d8c)=>{for(var _0x1bab4e=_0x277d8c>0x1?void 0x0:_0x277d8c?_0x2494ba(_0x347d94,_0x520353):_0x347d94,_0x2b89f9=_0x1af3b1['length']-0x1,_0x3874c0;_0x2b89f9>=0x0;_0x2b89f9--)(_0x3874c0=_0x1af3b1[_0x2b89f9])&&(_0x1bab4e=(_0x277d8c?_0x3874c0(_0x347d94,_0x520353,_0x1bab4e):_0x3874c0(_0x1bab4e))||_0x1bab4e);return _0x277d8c&&_0x1bab4e&&_0x4ba7de(_0x347d94,_0x520353,_0x1bab4e),_0x1bab4e;},_0x1f8ad3=(_0x2373c5,_0xcc95ab)=>(_0x5182e5,_0x3009b)=>_0xcc95ab(_0x5182e5,_0x3009b,_0x2373c5);let _0x38542b=class{constructor(_0x2ec909,_0x5b3ccc){const _0x247e4a=_0x57b986;this[_0x247e4a(0x260)]=_0x2ec909,this['_transformService']=_0x5b3ccc;}[_0x57b986(0x4c8)](_0x18add6){const _0x2316ea=_0x57b986;var _0x46382b;const _0x66638f=this[_0x2316ea(0x260)][_0x2316ea(0x408)](_0x3fcd1a[_0x2316ea(0x294)]),_0x2f70ab=(_0x46382b=_0x66638f[_0x2316ea(0x409)]())!=null?_0x46382b:[],_0x57980f=_0x2f70ab==null?void 0x0:_0x2f70ab[_0x2316ea(0x2d2)](_0x3fcd1a[_0x2316ea(0x3a6)]);if(_0x57980f[_0x2316ea(0x397)]===0x0)return;const _0x59d655=[{'id':_0x2316ea(0x367),'params':{'unitId':_0x18add6[_0x2316ea(0x40f)],'actions':null,'textRanges':_0x57980f}}],_0x2410cd=this[_0x2316ea(0x26d)]['transformMutationsWithChangeset'](_0x18add6,_0x59d655);if(!_0x329b63[_0x2316ea(0x276)](_0x2410cd))throw _0x2410cd['error'];const _0x1d344a=_0x2410cd['m2Prime'][0x0][_0x2316ea(0x455)]['textRanges'];Array['isArray'](_0x1d344a)&&_0x1d344a[_0x2316ea(0x397)]&&_0x66638f[_0x2316ea(0x39e)](_0x1d344a,!0x1);}};_0x38542b=_0x466bd0([_0x1f8ad3(0x0,_0x12925a[_0x57b986(0x42c)](_0x12925a[_0x57b986(0x52f)])),_0x1f8ad3(0x1,_0x329b63[_0x57b986(0x2a0)])],_0x38542b);function _0x313fed(_0x70e805){const _0x51749a=_0x57b986;let _0x4bfa27='';for(const _0x171082 of _0x70e805){const {startOffset:_0x49c4d5,endOffset:_0xbe1c9b,isActive:_0x2184b8}=_0x171082;_0x4bfa27[_0x51749a(0x397)]&&(_0x4bfa27+=','),_0x4bfa27+=_0x49c4d5+':'+_0xbe1c9b+':'+(_0x2184b8?'1':'0');}return _0x4bfa27;}function _0x1d44a5(_0x1bfacc){const _0xb9928a=_0x57b986,_0x31bf91=_0x1bfacc[_0xb9928a(0x548)](','),_0x4da960=[];for(const _0x12eadc of _0x31bf91){const [_0x4a262c,_0x4c5e6e,_0x43554e]=_0x12eadc[_0xb9928a(0x548)](':');_0x4da960['push']({'startOffset':Number(_0x4a262c),'endOffset':Number(_0x4c5e6e),'collapsed':_0x4a262c===_0x4c5e6e,'isActive':_0x43554e==='1'});}return _0x4da960['some'](_0x388ad3=>_0x388ad3[_0xb9928a(0x3f0)])||(_0x4da960[0x0][_0xb9928a(0x3f0)]=!0x0),_0x4da960;}class _0x2f17dc extends _0x4cdaf4[_0x57b986(0x499)]{constructor(){const _0x49a8d2=_0x57b986;super(...arguments),_0x53d09f(this,_0x49a8d2(0x248),new _0x4bb16b[(_0x49a8d2(0x2e9))](null)),_0x53d09f(this,_0x49a8d2(0x4b9),this['_collabCursorState$']['asObservable']());}['syncEditingCollabCursor'](_0x15c533){const _0x241962=_0x57b986,{unitID:_0x25600e,memberID:_0x55d5c3,textRanges:_0xd51a28}=_0x15c533,_0x1a5a9c=_0x313fed(_0xd51a28),_0x351202={'unitID':_0x25600e,'memberID':_0x55d5c3,'selection':_0x1a5a9c};this[_0x241962(0x248)][_0x241962(0x1bd)](_0x351202);}}var _0x3270d5=Object[_0x57b986(0x1f4)],_0x38f40d=Object[_0x57b986(0x405)],_0x377330=(_0x317e7c,_0x1dcfed,_0x444607,_0x2952d0)=>{for(var _0xc9500c=_0x2952d0>0x1?void 0x0:_0x2952d0?_0x38f40d(_0x1dcfed,_0x444607):_0x1dcfed,_0x2accb5=_0x317e7c['length']-0x1,_0x44c1ad;_0x2accb5>=0x0;_0x2accb5--)(_0x44c1ad=_0x317e7c[_0x2accb5])&&(_0xc9500c=(_0x2952d0?_0x44c1ad(_0x1dcfed,_0x444607,_0xc9500c):_0x44c1ad(_0xc9500c))||_0xc9500c);return _0x2952d0&&_0xc9500c&&_0x3270d5(_0x1dcfed,_0x444607,_0xc9500c),_0xc9500c;},_0xad87c3=(_0xbc0802,_0x59eabe)=>(_0x5c3212,_0xfacc74)=>_0x59eabe(_0x5c3212,_0xfacc74,_0xbc0802);let _0x4e6a4d=class{constructor(_0x11e9e7,_0x33945d){const _0x487034=_0x57b986;this['_injector']=_0x11e9e7,this[_0x487034(0x26d)]=_0x33945d;}['transformSelections'](_0x1a4831){const _0x2d2200=_0x57b986;var _0x2f177f,_0x19e7ef,_0xee6b37,_0x34aadb;const _0x13243b=this[_0x2d2200(0x260)][_0x2d2200(0x408)](_0x3a01f6[_0x2d2200(0x22f)]),{pluginName:_0x7568dd,unitId:_0x1d220a,sheetId:_0x367677}=_0x13243b[_0x2d2200(0x3a8)]()||{},_0x4b2e19=(_0x2f177f=_0x13243b[_0x2d2200(0x409)]())!=null?_0x2f177f:[];if(_0x4b2e19['length']===0x0||!_0x7568dd||!_0x1d220a||!_0x367677)return;const _0x2ccf83=[{'id':_0x3a01f6[_0x2d2200(0x467)]['id'],'params':{'unitId':_0x1d220a,'subUnitId':_0x367677,'pluginName':_0x7568dd,'selections':_0x4cdaf4[_0x2d2200(0x2dc)]['deepClone'](_0x4b2e19)}}],_0x2d6258=this[_0x2d2200(0x26d)][_0x2d2200(0x342)](_0x1a4831,_0x2ccf83);if(!_0x329b63[_0x2d2200(0x276)](_0x2d6258))throw _0x2d6258[_0x2d2200(0x4a4)];const _0x3ef79d=(_0x34aadb=(_0xee6b37=(_0x19e7ef=_0x2d6258[_0x2d2200(0x22e)][0x0])==null?void 0x0:_0x19e7ef['params'])==null?void 0x0:_0xee6b37['selections'])!=null?_0x34aadb:_0x4b2e19;Array[_0x2d2200(0x2d5)](_0x3ef79d)&&_0x3ef79d['length']&&this['_injector'][_0x2d2200(0x408)](_0x4cdaf4[_0x2d2200(0x46c)])[_0x2d2200(0x21f)](_0x3a01f6['SetSelectionsOperation']['id'],{'unitId':_0x1d220a,'subUnitId':_0x367677,'pluginName':_0x7568dd,'selections':_0x3ef79d});}};_0x4e6a4d=_0x377330([_0xad87c3(0x0,_0x12925a['Inject'](_0x12925a[_0x57b986(0x52f)])),_0xad87c3(0x1,_0x329b63[_0x57b986(0x2a0)])],_0x4e6a4d);const _0x452201=new Set([_0x3a01f6[_0x57b986(0x4b3)]['id']]);function _0x121060(_0xd537be,_0x383a39,_0x4e931b,_0x21aa36,_0x5f3fec){const _0x49fe1f=_0x57b986;var _0x47b5e9,_0x1a8a82,_0x1ad815,_0x9e9919;const _0xba4cb7=[];for(const _0x4d898b of _0xd537be)if(_0x452201[_0x49fe1f(0x458)](_0x4d898b['id'])){if(_0xba4cb7[_0x49fe1f(0x397)]>0x0)break;_0xba4cb7['push'](_0x4d898b);break;}else _0xba4cb7[_0x49fe1f(0x2a8)](_0x4d898b);const _0x381304=(_0x1a8a82=(_0x47b5e9=_0x5f3fec['getCurrentUser']())==null?void 0x0:_0x47b5e9[_0x49fe1f(0x364)])!=null?_0x1a8a82:'unknown',_0x5b84b8=(_0x9e9919=(_0x1ad815=_0x5f3fec[_0x49fe1f(0x227)]())==null?void 0x0:_0x1ad815[_0x49fe1f(0x537)])!=null?_0x9e9919:_0x49fe1f(0x233);return{'changeset':{'unitID':_0x383a39,'type':_0x329b63[_0x49fe1f(0x4b8)](_0x4e931b[_0x49fe1f(0x4ea)](_0x383a39)),'baseRev':_0x21aa36[_0x49fe1f(0x577)](_0x383a39),'revision':0x0,'userID':_0x381304,'memberID':_0x5b84b8,'mutations':_0xba4cb7},'pendingMutations':_0xd537be[_0x49fe1f(0x45a)](_0xba4cb7[_0x49fe1f(0x397)])};}function _0x52237b(_0x18a879,_0x590222,_0x2e43c0,_0x2f44ba,_0x25527b){const _0x174f5a=_0x57b986;var _0x39f768,_0x47dfa8,_0x5e7d71,_0x4b1917;const _0x4f178d=[_0x18a879[_0x174f5a(0x3d7)]((_0xc2d3e9,_0x5774f8)=>{const _0x2ce3b1=_0x174f5a;var _0x49ca4d;const {id:_0x56ae92}=_0xc2d3e9,{id:_0x196e43,type:_0x36fe5b}=_0x5774f8,_0x155402=(_0x49ca4d=_0xc2d3e9[_0x2ce3b1(0x455)])!=null?_0x49ca4d:{'actions':null},_0x4683ff=_0x5774f8[_0x2ce3b1(0x455)];if(_0x56ae92&&_0x56ae92!==_0x196e43)throw new Error(_0x2ce3b1(0x329)+_0x56ae92+'\x20-\x20'+_0x196e43+'.');return{..._0xc2d3e9,'id':_0x196e43,'type':_0x36fe5b,'params':{'unitId':_0x4683ff[_0x2ce3b1(0x2a3)],'textRanges':_0x4683ff[_0x2ce3b1(0x437)],'actions':_0x4cdaf4[_0x2ce3b1(0x225)]['compose'](_0x155402['actions'],_0x4683ff[_0x2ce3b1(0x29a)])}};},{})],_0x4cf9d6=(_0x47dfa8=(_0x39f768=_0x25527b[_0x174f5a(0x227)]())==null?void 0x0:_0x39f768[_0x174f5a(0x364)])!=null?_0x47dfa8:_0x174f5a(0x233),_0x2c70ce=(_0x4b1917=(_0x5e7d71=_0x25527b[_0x174f5a(0x227)]())==null?void 0x0:_0x5e7d71[_0x174f5a(0x537)])!=null?_0x4b1917:'unknown';return{'changeset':{'unitID':_0x590222,'type':_0x329b63[_0x174f5a(0x4b8)](_0x2e43c0[_0x174f5a(0x4ea)](_0x590222)),'baseRev':_0x2f44ba[_0x174f5a(0x577)](_0x590222),'revision':0x0,'userID':_0x4cf9d6,'memberID':_0x2c70ce,'mutations':_0x4f178d},'pendingMutations':[]};}var _0x146d69=Object[_0x57b986(0x1f4)],_0x5b1da3=Object[_0x57b986(0x405)],_0x18f1be=(_0x3a2496,_0x857b4f,_0x3d1886,_0x214164)=>{const _0x1f6cd3=_0x57b986;for(var _0x1bccce=_0x214164>0x1?void 0x0:_0x214164?_0x5b1da3(_0x857b4f,_0x3d1886):_0x857b4f,_0x5796ac=_0x3a2496[_0x1f6cd3(0x397)]-0x1,_0x79076d;_0x5796ac>=0x0;_0x5796ac--)(_0x79076d=_0x3a2496[_0x5796ac])&&(_0x1bccce=(_0x214164?_0x79076d(_0x857b4f,_0x3d1886,_0x1bccce):_0x79076d(_0x1bccce))||_0x1bccce);return _0x214164&&_0x1bccce&&_0x146d69(_0x857b4f,_0x3d1886,_0x1bccce),_0x1bccce;},_0x326931=(_0x1aff52,_0x4f1f97)=>(_0x4e2a99,_0x578c23)=>_0x4f1f97(_0x4e2a99,_0x578c23,_0x1aff52),_0x5185a4=(_0x538d2b=>(_0x538d2b['NOT_COLLAB']=_0x57b986(0x1c2),_0x538d2b['SYNCED']='synced',_0x538d2b[_0x57b986(0x2f7)]='pending',_0x538d2b[_0x57b986(0x532)]=_0x57b986(0x1fc),_0x538d2b[_0x57b986(0x30f)]='awaiting_with_pending',_0x538d2b['FETCH_MISS']=_0x57b986(0x234),_0x538d2b[_0x57b986(0x1de)]='conflict',_0x538d2b[_0x57b986(0x26f)]=_0x57b986(0x4f8),_0x538d2b))(_0x5185a4||{});class _0x41a5eb{constructor(_0xc7086c,_0xbd7aa2,_0x2de628,_0x1a37fa,_0x1a92d3,_0x186831,_0x1165d9,_0x548ba3,_0x1b5aea){const _0x26d293=_0x57b986;_0x53d09f(this,_0x26d293(0x352),null),_0x53d09f(this,_0x26d293(0x4b5),[]),(this[_0x26d293(0x40f)]=_0xc7086c,this[_0x26d293(0x239)]=_0xbd7aa2,this['_handler']=_0x1a92d3,this[_0x26d293(0x48f)]=_0x186831,this[_0x26d293(0x366)]=_0x1165d9,this[_0x26d293(0x377)]=_0x548ba3,this[_0x26d293(0x2ca)]=_0x1b5aea,this['_awaitingChangeset']=_0x2de628,this[_0x26d293(0x4b5)]=_0x1a37fa);}[_0x57b986(0x2d0)](_0x279471){const _0x4dc7f1=_0x57b986,_0x36cd2d=this[_0x4dc7f1(0x377)][_0x4dc7f1(0x577)](this['unitID']);return _0x279471[_0x4dc7f1(0x49a)]>_0x36cd2d+0x1?(this['_handler'][_0x4dc7f1(0x1e7)]({'from':_0x36cd2d,'to':_0x279471['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x32196a){const _0x17ce5a=_0x57b986;this[_0x17ce5a(0x366)][_0x17ce5a(0x39a)](this[_0x17ce5a(0x40f)],_0x32196a);}[_0x57b986(0x540)](_0x23800e){const _0x2e68d4=_0x57b986;var _0x5acccd,_0x366227;(_0x366227=(_0x5acccd=this['_handler'])[_0x2e68d4(0x31e)])==null||_0x366227[_0x2e68d4(0x42b)](_0x5acccd,_0x23800e);}[_0x57b986(0x42e)](_0x1d9d38){const _0x3c58cf=_0x57b986;var _0x4ac6a2,_0x59f7cb;return(_0x59f7cb=(_0x4ac6a2=this[_0x3c58cf(0x3ad)])['onTransformIME'])==null?void 0x0:_0x59f7cb['call'](_0x4ac6a2,_0x1d9d38);}['_transformRemoteChangesetByIMECache'](_0x27bfef){const _0x5c5fdf=_0x57b986;var _0x2c6987,_0x5b6b20,_0x3f7920;return(_0x3f7920=(_0x5b6b20=(_0x2c6987=this[_0x5c5fdf(0x3ad)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x5b6b20[_0x5c5fdf(0x42b)](_0x2c6987,_0x27bfef))!=null?_0x3f7920:_0x27bfef;}[_0x57b986(0x2b0)](_0xc3714e){const _0x55a8cb=_0x57b986;var _0x52a390,_0x35764b;if(this[_0x55a8cb(0x239)]===_0x1f330d['UNIVER_DOC']){const {unitID:_0x3017ec,mutations:_0x53d7a7,memberID:_0x36497a}=_0xc3714e,_0x453140=_0x53d7a7[0x0][_0x55a8cb(0x455)][_0x55a8cb(0x437)];Array[_0x55a8cb(0x2d5)](_0x453140)&&_0x453140['length']>0x0&&((_0x35764b=(_0x52a390=this[_0x55a8cb(0x3ad)])[_0x55a8cb(0x23b)])==null||_0x35764b[_0x55a8cb(0x42b)](_0x52a390,{'unitID':_0x3017ec,'memberID':_0x36497a,'textRanges':_0x453140}));}}[_0x57b986(0x427)](){const _0x2eafef=_0x57b986;this[_0x2eafef(0x2ca)][_0x2eafef(0x37a)](this[_0x2eafef(0x40f)],this['type'],this['_awaitingChangeset'],this[_0x2eafef(0x4b5)]);}['_getCurrentRevision'](){const _0x4abeed=_0x57b986;return this[_0x4abeed(0x377)]['getCurrentRevForDocument'](this[_0x4abeed(0x40f)]);}['_incrementRevisionNumber'](){const _0x1e4cb9=_0x57b986;this[_0x1e4cb9(0x377)]['incrementRevForDocument'](this[_0x1e4cb9(0x40f)]);}[_0x57b986(0x291)](_0x2c2f06){const _0x1ece31=_0x57b986;var _0x3a9765;const _0x3d1c8d=this[_0x1ece31(0x2e4)](_0x2c2f06),_0x43766e=_0x4cdaf4[_0x1ece31(0x524)](_0x3d1c8d[_0x1ece31(0x526)],this[_0x1ece31(0x48f)],{'fromCollab':!0x0});if(!_0x43766e[_0x1ece31(0x3db)])throw _0x43766e[_0x1ece31(0x4a4)]instanceof Error?_0x43766e[_0x1ece31(0x4a4)]:new Error((_0x3a9765=_0x43766e[_0x1ece31(0x4a4)])!=null?_0x3a9765:_0x1ece31(0x2b5));this[_0x1ece31(0x42e)](_0x3d1c8d),this['_transformUndoredo'](_0x2c2f06),this[_0x1ece31(0x540)](_0x3d1c8d),this[_0x1ece31(0x2b0)](_0x3d1c8d),this[_0x1ece31(0x3af)]();}}let _0x58a1e7=class extends _0x41a5eb{constructor(_0x455865,_0x3058a3,_0x1ecc17,_0x35c9a2,_0x4fb093,_0xdce5f8,_0x5ebae9,_0x4d0beb,_0x16a7fd){const _0x2e2115=_0x57b986;super(_0x455865,_0x3058a3,null,[],_0x1ecc17,_0x4d0beb,_0x5ebae9,_0x35c9a2,_0x4fb093),_0x53d09f(this,'status','synced'),(this[_0x2e2115(0x260)]=_0xdce5f8,this[_0x2e2115(0x314)]=_0x16a7fd);}['appendMutation'](_0x44c9e8){const _0xfd3d67=_0x57b986,_0x4dd450=this[_0xfd3d67(0x260)][_0xfd3d67(0x545)](_0x56eb89,this[_0xfd3d67(0x40f)],this['type'],[_0x44c9e8],this[_0xfd3d67(0x3ad)]);return _0x4dd450[_0xfd3d67(0x451)](),_0x4dd450[_0xfd3d67(0x427)](),_0x4dd450;}[_0x57b986(0x221)](_0x403a66){const _0x426524=_0x57b986;if(this[_0x426524(0x2d0)](_0x403a66))return this[_0x426524(0x260)][_0x426524(0x545)](_0x340c05,this[_0x426524(0x40f)],this[_0x426524(0x239)],null,[],null,[_0x403a66],this[_0x426524(0x3ad)]);try{return this[_0x426524(0x291)](_0x403a66),this;}catch(_0x1249bf){return this[_0x426524(0x314)][_0x426524(0x4a4)](_0x426524(0x346),_0x1249bf),this;}}[_0x57b986(0x22b)](){const _0x4b5481=_0x57b986;throw new Error(_0x4b5481(0x398));}['onRemoteRej'](){const _0x233ff2=_0x57b986;throw new Error(_0x233ff2(0x2d1));}[_0x57b986(0x440)](){const _0x3474db=_0x57b986;return this[_0x3474db(0x260)][_0x3474db(0x545)](_0x3e4f1a,this[_0x3474db(0x40f)],this[_0x3474db(0x239)],null,[],this[_0x3474db(0x3ad)]);}[_0x57b986(0x489)](){return this;}[_0x57b986(0x4fc)](){const _0x243731=_0x57b986;throw new Error(_0x243731(0x1dc));}};_0x58a1e7=_0x18f1be([_0x326931(0x3,_0x12925a['Inject'](_0x329b63[_0x57b986(0x3a0)])),_0x326931(0x4,_0x12925a[_0x57b986(0x42c)](_0x3f3314['LocalCacheService'])),_0x326931(0x5,_0x12925a['Inject'](_0x12925a[_0x57b986(0x52f)])),_0x326931(0x6,_0x4cdaf4[_0x57b986(0x2f8)]),_0x326931(0x7,_0x4cdaf4[_0x57b986(0x46c)]),_0x326931(0x8,_0x4cdaf4[_0x57b986(0x41c)])],_0x58a1e7);let _0x56eb89=class extends _0x41a5eb{constructor(_0x588636,_0x30ac49,_0xd8ef96,_0x5bd1ba,_0x40a81f,_0x5f1bd5,_0x137181,_0x1a500b,_0x41d191,_0x1376cd,_0x21f164,_0x35399e,_0x78e7ca,_0x5848f8){const _0x51b4c5=_0x57b986;super(_0x588636,_0x30ac49,null,_0xd8ef96,_0x5bd1ba,_0x1376cd,_0x5848f8,_0x5f1bd5,_0x137181),_0x53d09f(this,_0x51b4c5(0x2aa),'pending'),_0x53d09f(this,_0x51b4c5(0x3c9),null),_0x53d09f(this,'_sendingTimer',null),(this[_0x51b4c5(0x260)]=_0x40a81f,this['_memberService']=_0x1a500b,this[_0x51b4c5(0x314)]=_0x41d191,this[_0x51b4c5(0x323)]=_0x21f164,this[_0x51b4c5(0x26d)]=_0x35399e,this['_univerInstanceService']=_0x78e7ca);}['appendMutation'](_0x4bf2ab){return this['_pendingMutations']['push'](_0x4bf2ab),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x55cc5d){const _0x5e702f=_0x57b986;if(this[_0x5e702f(0x2d0)](_0x55cc5d))return this[_0x5e702f(0x222)](),this['_injector'][_0x5e702f(0x545)](_0x340c05,this[_0x5e702f(0x40f)],this[_0x5e702f(0x239)],null,this[_0x5e702f(0x4b5)],null,[_0x55cc5d],this[_0x5e702f(0x3ad)]);try{const _0x3a173d=this[_0x5e702f(0x26d)][_0x5e702f(0x342)](_0x55cc5d,this[_0x5e702f(0x4b5)]);if(_0x329b63['isTransformMutationsWithChangesetSuccess'](_0x3a173d)){const {c1Prime:_0x1f59c4,m2Prime:_0x39070f}=_0x3a173d;this[_0x5e702f(0x291)](_0x1f59c4);const _0x345b18=this[_0x5e702f(0x260)][_0x5e702f(0x545)](_0x56eb89,this[_0x5e702f(0x40f)],this[_0x5e702f(0x239)],_0x39070f,this['_handler']);return this['_clearScheduledTask'](),_0x345b18['_schedule'](this['_scheduleTimestamp']?Math[_0x5e702f(0x27f)](0x0,new Date()[_0x5e702f(0x47c)]()-this['_scheduleTimestamp']):this[_0x5e702f(0x363)]()),_0x345b18;}throw _0x3a173d[_0x5e702f(0x4a4)];}catch(_0x3146d6){return this['_logService']['error'](_0x3146d6),this[_0x5e702f(0x244)](!0x1);}}['onRemoteAck'](){const _0xe02429=_0x57b986;throw new Error(_0xe02429(0x4b1));}[_0x57b986(0x520)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x57b986(0x440)](){const _0x2cd53b=_0x57b986;return this[_0x2cd53b(0x222)](),this['_injector'][_0x2cd53b(0x545)](_0x3e4f1a,this[_0x2cd53b(0x40f)],this[_0x2cd53b(0x239)],null,this[_0x2cd53b(0x4b5)],this['_handler']);}[_0x57b986(0x489)](){return this;}[_0x57b986(0x451)](_0x5399c0){const _0x5a6357=_0x57b986;_0x5399c0=_0x5399c0!=null?_0x5399c0:this[_0x5a6357(0x363)](),this[_0x5a6357(0x3c9)]=new Date()[_0x5a6357(0x47c)](),this[_0x5a6357(0x32e)]=setTimeout(()=>{const _0x178514=_0x5a6357;this[_0x178514(0x222)]();let _0x4aa6e1=null;switch(this[_0x178514(0x239)]){case _0x1f330d[_0x178514(0x1ed)]:{_0x4aa6e1=_0x121060(this[_0x178514(0x4b5)],this[_0x178514(0x40f)],this[_0x178514(0x3d9)],this['_revisionService'],this['_memberService']);break;}case _0x1f330d[_0x178514(0x510)]:{_0x4aa6e1=_0x52237b(this['_pendingMutations'],this[_0x178514(0x40f)],this['_univerInstanceService'],this[_0x178514(0x377)],this[_0x178514(0x1d3)]);break;}default:throw new Error(_0x178514(0x253)+this['type']+_0x178514(0x3c7));}const {changeset:_0x43ecb5,pendingMutations:_0x4238c8}=_0x4aa6e1;this[_0x178514(0x3ad)][_0x178514(0x3e3)](_0x43ecb5);const _0x2ba2c3=_0x4238c8[_0x178514(0x397)]?this['_injector'][_0x178514(0x545)](_0x3a588f,this[_0x178514(0x40f)],this[_0x178514(0x239)],_0x43ecb5,_0x4238c8,this[_0x178514(0x3ad)]):this['_injector'][_0x178514(0x545)](_0x304c89,this[_0x178514(0x40f)],this[_0x178514(0x239)],_0x43ecb5,this[_0x178514(0x3ad)]);_0x2ba2c3[_0x178514(0x427)](),this[_0x178514(0x3ad)]['onStateChange'](this,_0x2ba2c3);},_0x5399c0);}[_0x57b986(0x363)](){const _0x31abe7=_0x57b986;var _0x40a16b;return(_0x40a16b=this[_0x31abe7(0x323)][_0x31abe7(0x51f)](_0x20edc7))!=null?_0x40a16b:0x7d0;}['resend'](){const _0x51388=_0x57b986;throw new Error(_0x51388(0x321));}[_0x57b986(0x222)](){const _0x5ef3bd=_0x57b986;this[_0x5ef3bd(0x32e)]!=null&&(clearTimeout(this[_0x5ef3bd(0x32e)]),this[_0x5ef3bd(0x32e)]=null);}[_0x57b986(0x244)](_0x1859d7){const _0x2a9581=_0x57b986;return this['_clearScheduledTask'](),this[_0x2a9581(0x260)][_0x2a9581(0x545)](_0x4a38e8,this[_0x2a9581(0x40f)],this[_0x2a9581(0x239)],null,this[_0x2a9581(0x4b5)],this[_0x2a9581(0x3ad)],_0x1859d7);}};_0x56eb89=_0x18f1be([_0x326931(0x4,_0x12925a['Inject'](_0x12925a[_0x57b986(0x52f)])),_0x326931(0x5,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3a0)])),_0x326931(0x6,_0x12925a[_0x57b986(0x42c)](_0x3f3314[_0x57b986(0x361)])),_0x326931(0x7,_0x12925a['Inject'](_0x4495e7)),_0x326931(0x8,_0x4cdaf4['ILogService']),_0x326931(0x9,_0x4cdaf4[_0x57b986(0x46c)]),_0x326931(0xa,_0x4cdaf4[_0x57b986(0x4f1)]),_0x326931(0xb,_0x329b63[_0x57b986(0x2a0)]),_0x326931(0xc,_0x4cdaf4[_0x57b986(0x28e)]),_0x326931(0xd,_0x4cdaf4[_0x57b986(0x2f8)])],_0x56eb89);let _0x304c89=class extends _0x41a5eb{constructor(_0x130072,_0x165093,_0x1255de,_0x289749,_0x3b234a,_0x157fb3,_0xf3508d,_0x51a80a,_0x5be776,_0x497541,_0x32ad8a){const _0x191aba=_0x57b986;super(_0x130072,_0x165093,_0x1255de,[],_0x289749,_0x51a80a,_0x32ad8a,_0x157fb3,_0xf3508d),_0x53d09f(this,'status',_0x191aba(0x1fc)),(this[_0x191aba(0x260)]=_0x3b234a,this[_0x191aba(0x314)]=_0x5be776,this[_0x191aba(0x26d)]=_0x497541);}[_0x57b986(0x538)](_0x42b559){const _0x5c71c6=_0x57b986,_0x31bdef=this[_0x5c71c6(0x260)]['createInstance'](_0x3a588f,this[_0x5c71c6(0x40f)],this['type'],this[_0x5c71c6(0x352)],[_0x42b559],this[_0x5c71c6(0x3ad)]);return _0x31bdef['_updateLocalCache'](),_0x31bdef;}['onRemoteChangeset'](_0x10164d){const _0x5a21d8=_0x57b986;if(this['_checkMissing'](_0x10164d))return this[_0x5a21d8(0x260)][_0x5a21d8(0x545)](_0x340c05,this[_0x5a21d8(0x40f)],this[_0x5a21d8(0x239)],this[_0x5a21d8(0x352)],[],null,[_0x10164d],this[_0x5a21d8(0x3ad)]);try{const _0x7bf1d8=this['_transformService']['transformChangesets']([_0x10164d],[this[_0x5a21d8(0x352)]],!0x1);if(_0x329b63[_0x5a21d8(0x4ab)](_0x7bf1d8)){const {c1Prime:_0x26dd84,c2Prime:_0x28a854}=_0x7bf1d8;this[_0x5a21d8(0x291)](_0x26dd84[0x0]),_0x28a854[0x0]['baseRev']=this[_0x5a21d8(0x4f0)]();const _0x10d9d6=this[_0x5a21d8(0x260)][_0x5a21d8(0x545)](_0x304c89,this[_0x5a21d8(0x40f)],this[_0x5a21d8(0x239)],_0x28a854[0x0],this[_0x5a21d8(0x3ad)]);return _0x10d9d6[_0x5a21d8(0x427)](),_0x10d9d6;}return this['_onConflict'](!0x1);}catch(_0x46794a){return this[_0x5a21d8(0x314)]['error'](_0x46794a),this[_0x5a21d8(0x244)](!0x1);}}[_0x57b986(0x22b)](_0x64e827){const _0x20803a=_0x57b986,_0x16fefe=this[_0x20803a(0x377)][_0x20803a(0x577)](this[_0x20803a(0x40f)]);if(_0x64e827[_0x20803a(0x49a)]<_0x16fefe-0x1)return this;if(this[_0x20803a(0x2d0)](_0x64e827))return this['_injector'][_0x20803a(0x545)](_0x340c05,this['unitID'],this[_0x20803a(0x239)],null,[],this['_awaitingChangeset'],[],this['_handler']);this['_incrementRevisionNumber']();const _0x3b0673=this[_0x20803a(0x260)][_0x20803a(0x545)](_0x58a1e7,this[_0x20803a(0x40f)],this['type'],this[_0x20803a(0x3ad)]);return _0x3b0673['_updateLocalCache'](),_0x3b0673;}[_0x57b986(0x520)](_0x16627a){const _0x580cdb=_0x57b986;return this[_0x580cdb(0x244)](!!(_0x16627a!=null&&_0x16627a[_0x580cdb(0x4f4)]));}[_0x57b986(0x440)](){const _0x59d2f9=_0x57b986;return this[_0x59d2f9(0x260)]['createInstance'](_0x3e4f1a,this[_0x59d2f9(0x40f)],this[_0x59d2f9(0x239)],this[_0x59d2f9(0x352)],[],this[_0x59d2f9(0x3ad)]);}['toggleOnline'](){return this;}[_0x57b986(0x4fc)](){const _0x5243e1=_0x57b986;this[_0x5243e1(0x3ad)][_0x5243e1(0x3e3)](this[_0x5243e1(0x352)]);}[_0x57b986(0x244)](_0x73b9c8){const _0x3ec19f=_0x57b986;return this['_injector'][_0x3ec19f(0x545)](_0x4a38e8,this['unitID'],this['type'],this[_0x3ec19f(0x352)],[],this[_0x3ec19f(0x3ad)],_0x73b9c8);}};_0x304c89=_0x18f1be([_0x326931(0x4,_0x12925a[_0x57b986(0x42c)](_0x12925a[_0x57b986(0x52f)])),_0x326931(0x5,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3a0)])),_0x326931(0x6,_0x12925a[_0x57b986(0x42c)](_0x3f3314[_0x57b986(0x361)])),_0x326931(0x7,_0x4cdaf4['ICommandService']),_0x326931(0x8,_0x4cdaf4[_0x57b986(0x41c)]),_0x326931(0x9,_0x329b63[_0x57b986(0x2a0)]),_0x326931(0xa,_0x4cdaf4[_0x57b986(0x2f8)])],_0x304c89);let _0x3a588f=class extends _0x41a5eb{constructor(_0x354744,_0x25f0e0,_0x346138,_0x2984ec,_0x2a1408,_0x1ce6d1,_0x20148b,_0x42e3c0,_0x3dc520,_0x1526e7,_0x560cff,_0x45e0a7){const _0x39332b=_0x57b986;super(_0x354744,_0x25f0e0,_0x346138,_0x2984ec,_0x2a1408,_0x3dc520,_0x45e0a7,_0x20148b,_0x42e3c0),_0x53d09f(this,_0x39332b(0x2aa),'awaiting_with_pending'),(this[_0x39332b(0x260)]=_0x1ce6d1,this['_logService']=_0x1526e7,this['_transformService']=_0x560cff);}[_0x57b986(0x538)](_0x3eeeca){const _0x37e556=_0x57b986;return this[_0x37e556(0x4b5)][_0x37e556(0x2a8)](_0x3eeeca),this;}['onRemoteChangeset'](_0x314e9f){const _0x179812=_0x57b986;if(this[_0x179812(0x2d0)](_0x314e9f))return this[_0x179812(0x260)][_0x179812(0x545)](_0x340c05,this[_0x179812(0x40f)],this[_0x179812(0x239)],this['_awaitingChangeset'],this['_pendingMutations'],null,[_0x314e9f],this['_handler']);try{const _0x282e6c=this[_0x179812(0x26d)][_0x179812(0x4d9)]([_0x314e9f],[this['_awaitingChangeset']],!0x1);if(_0x329b63[_0x179812(0x4ab)](_0x282e6c)){const {c1Prime:_0x5d8987,c2Prime:_0x4f8b3c}=_0x282e6c,_0x50fec8=this[_0x179812(0x26d)][_0x179812(0x342)](_0x5d8987[0x0],this['_pendingMutations']);if(_0x329b63['isTransformMutationsWithChangesetSuccess'](_0x50fec8)){const {c1Prime:_0x4fb9ce,m2Prime:_0x575b8d}=_0x50fec8;return this['_executeRemoteChangeset'](_0x4fb9ce),_0x4f8b3c[0x0][_0x179812(0x36a)]=this[_0x179812(0x4f0)](),this['_injector']['createInstance'](_0x3a588f,this[_0x179812(0x40f)],this[_0x179812(0x239)],_0x4f8b3c[0x0],_0x575b8d,this[_0x179812(0x3ad)]);}throw _0x50fec8[_0x179812(0x4a4)];}throw _0x282e6c[_0x179812(0x4a4)];}catch(_0x15b914){return this[_0x179812(0x314)][_0x179812(0x4a4)](_0x15b914),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x34b6cd){const _0x5ba8a0=_0x57b986;if(this[_0x5ba8a0(0x2d0)](_0x34b6cd))return this[_0x5ba8a0(0x260)]['createInstance'](_0x340c05,this[_0x5ba8a0(0x40f)],this['type'],null,this['_pendingMutations'],this['_awaitingChangeset'],[],this[_0x5ba8a0(0x3ad)]);this['_incrementRevisionNumber']();const _0x126808=this[_0x5ba8a0(0x260)][_0x5ba8a0(0x545)](_0x56eb89,this[_0x5ba8a0(0x40f)],this['type'],this[_0x5ba8a0(0x4b5)],this[_0x5ba8a0(0x3ad)]);return _0x126808[_0x5ba8a0(0x451)](),_0x126808[_0x5ba8a0(0x427)](),_0x126808;}['onRemoteRej'](_0x17f0ce){const _0x4bf286=_0x57b986;return this[_0x4bf286(0x244)](!!(_0x17f0ce!=null&&_0x17f0ce[_0x4bf286(0x4f4)]));}['toggleOffline'](){const _0x4dc275=_0x57b986;return this[_0x4dc275(0x260)][_0x4dc275(0x545)](_0x3e4f1a,this[_0x4dc275(0x40f)],this[_0x4dc275(0x239)],this[_0x4dc275(0x352)],this['_pendingMutations'],this[_0x4dc275(0x3ad)]);}['toggleOnline'](){return this;}[_0x57b986(0x4fc)](){const _0x52e57e=_0x57b986;this[_0x52e57e(0x3ad)][_0x52e57e(0x3e3)](this[_0x52e57e(0x352)]);}[_0x57b986(0x244)](_0x1f4bb6){const _0x10ed37=_0x57b986;return this[_0x10ed37(0x260)][_0x10ed37(0x545)](_0x4a38e8,this[_0x10ed37(0x40f)],this[_0x10ed37(0x239)],null,this[_0x10ed37(0x4b5)],this[_0x10ed37(0x3ad)],_0x1f4bb6);}};_0x3a588f=_0x18f1be([_0x326931(0x5,_0x12925a['Inject'](_0x12925a['Injector'])),_0x326931(0x6,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3a0)])),_0x326931(0x7,_0x12925a[_0x57b986(0x42c)](_0x3f3314[_0x57b986(0x361)])),_0x326931(0x8,_0x4cdaf4[_0x57b986(0x46c)]),_0x326931(0x9,_0x4cdaf4[_0x57b986(0x41c)]),_0x326931(0xa,_0x329b63[_0x57b986(0x2a0)]),_0x326931(0xb,_0x4cdaf4[_0x57b986(0x2f8)])],_0x3a588f);let _0x4a38e8=class extends _0x41a5eb{constructor(_0x3ac15c,_0x3ffbcf,_0x494ce2,_0x11b70c,_0x51813c,_0x587c8e=!0x1,_0x3c1638,_0x1c7d7c,_0x512cd5,_0x469914,_0x644d59,_0x284b4c,_0x513204){const _0x543abe=_0x57b986;super(_0x3ac15c,_0x3ffbcf,_0x494ce2,_0x11b70c,_0x51813c,_0x1c7d7c,_0x512cd5,_0x644d59,_0x469914),_0x53d09f(this,_0x543abe(0x2aa),'conflict'),(this[_0x543abe(0x2c8)]=_0x587c8e,this[_0x543abe(0x3a7)]=_0x3c1638,this['_localeService']=_0x284b4c,this[_0x543abe(0x493)]=_0x513204,this[_0x543abe(0x3a2)](),this['_clearLocalCache'](),this[_0x543abe(0x2f5)]());}['appendMutation'](){return this;}[_0x57b986(0x221)](){return this;}[_0x57b986(0x22b)](){return this;}[_0x57b986(0x520)](){return this;}[_0x57b986(0x440)](){return this;}[_0x57b986(0x489)](){return this;}[_0x57b986(0x4fc)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x57b986(0x4fb)](){const _0x4a3278=_0x57b986;this[_0x4a3278(0x2ca)][_0x4a3278(0x37a)](this[_0x4a3278(0x40f)],this[_0x4a3278(0x239)],null,[]);}[_0x57b986(0x3a2)](){const _0x42a79e=_0x57b986;this[_0x42a79e(0x2c8)]?this[_0x42a79e(0x493)][_0x42a79e(0x560)]({'title':this[_0x42a79e(0x247)]['t'](_0x42a79e(0x473)),'content':this[_0x42a79e(0x247)]['t'](_0x42a79e(0x550)),'type':'error','duration':0x0}):this['_notificationService'][_0x42a79e(0x560)]({'title':this[_0x42a79e(0x247)]['t'](_0x42a79e(0x21b)),'content':this[_0x42a79e(0x247)]['t'](_0x42a79e(0x567)),'type':_0x42a79e(0x4a4),'duration':0x0});}[_0x57b986(0x2f5)](){const _0x4486f8=_0x57b986;this[_0x4486f8(0x3a7)][_0x4486f8(0x1be)](new _0x3a01f6[(_0x4486f8(0x373))](this[_0x4486f8(0x40f)])['id'],!0x1);}};_0x4a38e8=_0x18f1be([_0x326931(0x6,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4[_0x57b986(0x413)])),_0x326931(0x7,_0x4cdaf4[_0x57b986(0x46c)]),_0x326931(0x8,_0x4cdaf4[_0x57b986(0x2f8)]),_0x326931(0x9,_0x12925a[_0x57b986(0x42c)](_0x3f3314[_0x57b986(0x361)])),_0x326931(0xa,_0x12925a['Inject'](_0x329b63[_0x57b986(0x3a0)])),_0x326931(0xb,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4['LocaleService'])),_0x326931(0xc,_0x4ff465[_0x57b986(0x35c)])],_0x4a38e8);let _0x3e4f1a=class extends _0x41a5eb{constructor(_0xc49c34,_0x1c1284,_0x2efe19,_0x35ed71,_0xa863f3,_0x4baed7,_0x4a4e5c,_0xae6db4,_0x391421,_0x597c2c){const _0x58196b=_0x57b986;super(_0xc49c34,_0x1c1284,_0x2efe19,_0x35ed71,_0xa863f3,_0x391421,_0x597c2c,_0x4a4e5c,_0xae6db4),_0x53d09f(this,_0x58196b(0x2aa),_0x58196b(0x4f8)),this['_injector']=_0x4baed7;}[_0x57b986(0x538)](_0x5238c5){const _0x360d13=_0x57b986;return this[_0x360d13(0x4b5)][_0x360d13(0x2a8)](_0x5238c5),this[_0x360d13(0x427)](),this;}[_0x57b986(0x221)](_0x546bc2){const _0x50678b=_0x57b986;throw new Error(_0x50678b(0x2a4));}[_0x57b986(0x22b)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x57b986(0x520)](){const _0xc4aac5=_0x57b986;throw new Error(_0xc4aac5(0x49c));}['toggleOffline'](){return this;}[_0x57b986(0x489)](){const _0x3add35=_0x57b986,{_injector:_0x30905a,_pendingMutations:_0x172f20,_awaitingChangeset:_0x407440,unitID:_0x42b3ee,_handler:_0x37c736,type:_0x53369c}=this,_0x470af1=_0x644ba0(_0x30905a,_0x42b3ee,_0x53369c,_0x407440,_0x172f20,_0x37c736);return _0x470af1 instanceof _0x56eb89?_0x470af1[_0x3add35(0x451)]():(_0x470af1 instanceof _0x3a588f||_0x470af1 instanceof _0x304c89)&&_0x470af1[_0x3add35(0x4fc)](),_0x470af1;}['resend'](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x3e4f1a=_0x18f1be([_0x326931(0x5,_0x12925a[_0x57b986(0x42c)](_0x12925a['Injector'])),_0x326931(0x6,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3a0)])),_0x326931(0x7,_0x12925a[_0x57b986(0x42c)](_0x3f3314[_0x57b986(0x361)])),_0x326931(0x8,_0x4cdaf4[_0x57b986(0x46c)]),_0x326931(0x9,_0x4cdaf4[_0x57b986(0x2f8)])],_0x3e4f1a);let _0x340c05=class extends _0x41a5eb{constructor(_0x29161f,_0x290baa,_0x47cee0,_0x1e7d70,_0x310d90,_0x162f44,_0x53edbd,_0x50118d,_0x1b851f,_0x393eea,_0x377c06,_0x52a320,_0x353961,_0x1a6305){const _0x3956fc=_0x57b986;super(_0x29161f,_0x290baa,_0x47cee0,_0x1e7d70,_0x53edbd,_0x52a320,_0x353961,_0x1b851f,_0x393eea),_0x53d09f(this,_0x3956fc(0x2aa),_0x3956fc(0x234)),(this[_0x3956fc(0x52e)]=_0x310d90,this[_0x3956fc(0x4db)]=_0x162f44,this['_injector']=_0x50118d,this[_0x3956fc(0x314)]=_0x377c06,this[_0x3956fc(0x26d)]=_0x1a6305);}['onMissedChangesetFetched'](_0x574f92){const _0x5dd548=_0x57b986;try{const _0x2d23ea=[..._0x574f92,...this['_queuedRemoteChangesets']],_0x581f9a=[this[_0x5dd548(0x352)]||this[_0x5dd548(0x52e)]][_0x5dd548(0x252)](_0x4d35ce=>!!_0x4d35ce);let _0x2f86cc,_0x252177;if(_0x581f9a['length']){const _0x3d114d=this[_0x5dd548(0x26d)][_0x5dd548(0x4d9)](_0x2d23ea,_0x581f9a,!0x1);if(!_0x329b63[_0x5dd548(0x4ab)](_0x3d114d))throw _0x3d114d[_0x5dd548(0x4a4)];_0x2f86cc=_0x3d114d['c1Prime'],_0x252177=_0x3d114d[_0x5dd548(0x3b0)];}else _0x2f86cc=_0x2d23ea,_0x252177=[];let _0x535ed0=this[_0x5dd548(0x4b5)];_0x2f86cc[_0x5dd548(0x2bc)](_0x30007e=>{const _0x50b4f1=_0x5dd548;let _0x4c1a60;if(_0x535ed0[_0x50b4f1(0x397)]){const _0x550cd2=this['_transformService']['transformMutationsWithChangeset'](_0x30007e,_0x535ed0);if(!_0x329b63[_0x50b4f1(0x276)](_0x550cd2))throw _0x550cd2[_0x50b4f1(0x4a4)];_0x4c1a60=_0x550cd2[_0x50b4f1(0x264)],_0x535ed0=_0x550cd2[_0x50b4f1(0x22e)];}else _0x4c1a60=_0x30007e;this[_0x50b4f1(0x291)](_0x4c1a60);}),this[_0x5dd548(0x52e)]&&this[_0x5dd548(0x3af)](),this['_awaitingChangeset']&&_0x252177[_0x5dd548(0x397)]&&(_0x252177[0x0][_0x5dd548(0x36a)]=this[_0x5dd548(0x4f0)]());let _0x446be0;if(this[_0x5dd548(0x352)]&&_0x535ed0[_0x5dd548(0x397)]!==0x0)_0x446be0=this['_injector'][_0x5dd548(0x545)](_0x3a588f,this[_0x5dd548(0x40f)],this[_0x5dd548(0x239)],_0x252177[0x0],_0x535ed0,this[_0x5dd548(0x3ad)]);else{if(this['_awaitingChangeset']&&_0x535ed0[_0x5dd548(0x397)]===0x0)_0x252177[0x0][_0x5dd548(0x36a)]=this[_0x5dd548(0x4f0)](),_0x446be0=this[_0x5dd548(0x260)][_0x5dd548(0x545)](_0x304c89,this[_0x5dd548(0x40f)],this[_0x5dd548(0x239)],_0x252177[0x0],this[_0x5dd548(0x3ad)]);else{if(_0x535ed0[_0x5dd548(0x397)]!==0x0){const _0x53d3ed=this['_injector']['createInstance'](_0x56eb89,this[_0x5dd548(0x40f)],this[_0x5dd548(0x239)],_0x535ed0,this['_handler']);_0x53d3ed[_0x5dd548(0x451)](),_0x446be0=_0x53d3ed;}else _0x446be0=this[_0x5dd548(0x260)][_0x5dd548(0x545)](_0x58a1e7,this['unitID'],this['type'],this[_0x5dd548(0x3ad)]);}}return _0x446be0[_0x5dd548(0x427)](),_0x446be0;}catch(_0x44f1fb){return this['_logService']['error'](_0x5dd548(0x2d8),_0x5dd548(0x38f),_0x44f1fb),this[_0x5dd548(0x260)][_0x5dd548(0x545)](_0x4a38e8,this[_0x5dd548(0x40f)],this[_0x5dd548(0x239)],this[_0x5dd548(0x352)],this['_pendingMutations'],this[_0x5dd548(0x3ad)],!0x1);}}[_0x57b986(0x4fc)](){const _0x2a1d9b=_0x57b986;throw new Error(_0x2a1d9b(0x3e0));}[_0x57b986(0x538)](_0x247461){const _0x213761=_0x57b986;return this['_pendingMutations'][_0x213761(0x2a8)](_0x247461),this;}[_0x57b986(0x221)](_0x12c06a){const _0x4d6158=_0x57b986;return this[_0x4d6158(0x4db)][_0x4d6158(0x2a8)](_0x12c06a),this;}['onRemoteAck'](_0x5dd167){const _0x41c793=_0x57b986;if(this[_0x41c793(0x352)])return this[_0x41c793(0x52e)]=this[_0x41c793(0x352)],this[_0x41c793(0x352)]=null,this;throw new Error(_0x41c793(0x505));}[_0x57b986(0x520)](_0x50f928){const _0x84bf6d=_0x57b986;return this[_0x84bf6d(0x244)](!!(_0x50f928!=null&&_0x50f928['isPermissionRej']));}['toggleOffline'](){const _0x2cc8d1=_0x57b986;return this[_0x2cc8d1(0x260)]['createInstance'](_0x3e4f1a,this[_0x2cc8d1(0x40f)],this[_0x2cc8d1(0x239)],this[_0x2cc8d1(0x352)],this[_0x2cc8d1(0x4b5)],this[_0x2cc8d1(0x3ad)]);}[_0x57b986(0x489)](){return this;}[_0x57b986(0x244)](_0x567991){const _0x1c51dd=_0x57b986;return this[_0x1c51dd(0x260)][_0x1c51dd(0x545)](_0x4a38e8,this['unitID'],this[_0x1c51dd(0x239)],this[_0x1c51dd(0x352)],this[_0x1c51dd(0x4b5)],this[_0x1c51dd(0x3ad)],_0x567991);}};_0x340c05=_0x18f1be([_0x326931(0x7,_0x12925a['Inject'](_0x12925a[_0x57b986(0x52f)])),_0x326931(0x8,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3a0)])),_0x326931(0x9,_0x12925a['Inject'](_0x3f3314[_0x57b986(0x361)])),_0x326931(0xa,_0x4cdaf4['ILogService']),_0x326931(0xb,_0x4cdaf4[_0x57b986(0x46c)]),_0x326931(0xc,_0x4cdaf4['IUndoRedoService']),_0x326931(0xd,_0x329b63[_0x57b986(0x2a0)])],_0x340c05);function _0x644ba0(_0x56ca31,_0x5c1199,_0x562432,_0x4ad166,_0x1b5cd0,_0x5c52b0){const _0x3a6311=_0x57b986;return _0x4ad166&&_0x1b5cd0[_0x3a6311(0x397)]?_0x56ca31[_0x3a6311(0x545)](_0x3a588f,_0x5c1199,_0x562432,_0x4ad166,_0x1b5cd0,_0x5c52b0):_0x4ad166?_0x56ca31[_0x3a6311(0x545)](_0x304c89,_0x5c1199,_0x562432,_0x4ad166,_0x5c52b0):_0x1b5cd0[_0x3a6311(0x397)]?_0x56ca31[_0x3a6311(0x545)](_0x56eb89,_0x5c1199,_0x562432,_0x1b5cd0,_0x5c52b0):_0x56ca31[_0x3a6311(0x545)](_0x58a1e7,_0x5c1199,_0x562432,_0x5c52b0);}var _0xdc85ed=Object['defineProperty'],_0x237b72=Object[_0x57b986(0x405)],_0x23ff9f=(_0x4dd4ab,_0x34a556,_0x3ca44f,_0x1e693a)=>{const _0x1f3c63=_0x57b986;for(var _0x15a177=_0x1e693a>0x1?void 0x0:_0x1e693a?_0x237b72(_0x34a556,_0x3ca44f):_0x34a556,_0x4ac894=_0x4dd4ab[_0x1f3c63(0x397)]-0x1,_0x29f636;_0x4ac894>=0x0;_0x4ac894--)(_0x29f636=_0x4dd4ab[_0x4ac894])&&(_0x15a177=(_0x1e693a?_0x29f636(_0x34a556,_0x3ca44f,_0x15a177):_0x29f636(_0x15a177))||_0x15a177);return _0x1e693a&&_0x15a177&&_0xdc85ed(_0x34a556,_0x3ca44f,_0x15a177),_0x15a177;},_0x4aceb5=(_0x1001c0,_0x3d0816)=>(_0x1b0832,_0x49a80f)=>_0x3d0816(_0x1b0832,_0x49a80f,_0x1001c0);_0x3f3314[_0x57b986(0x33a)]=class extends _0x4cdaf4[_0x57b986(0x499)]{constructor(_0x520ece,_0x5023bc,_0x4ba865){const _0x503cb4=_0x57b986;super(),_0x53d09f(this,_0x503cb4(0x389),new Map()),_0x53d09f(this,_0x503cb4(0x386),new _0x4bb16b[(_0x503cb4(0x42d))]()),(this['_injector']=_0x520ece,this['_collabSessionService']=_0x5023bc,this[_0x503cb4(0x3d9)]=_0x4ba865,this[_0x503cb4(0x546)]());}[_0x57b986(0x46e)](){const _0x54c946=_0x57b986;super[_0x54c946(0x46e)](),this[_0x54c946(0x389)][_0x54c946(0x2bc)](_0x2051ff=>_0x2051ff[_0x54c946(0x46e)]()),this['_entities'][_0x54c946(0x46b)]();}['getCollabEntity'](_0x5730f4){const _0x1fc309=_0x57b986;var _0x3637c8;return(_0x3637c8=this['_entities'][_0x1fc309(0x408)](_0x5730f4))!=null?_0x3637c8:null;}[_0x57b986(0x2df)](_0x12e814){const _0x456e95=_0x57b986,_0x370c03=this[_0x456e95(0x530)](_0x12e814);return _0x370c03?_0x4bb16b['of'](_0x370c03):this[_0x456e95(0x386)][_0x456e95(0x334)](_0x4ac749['filter'](_0x2073c0=>_0x2073c0[_0x456e95(0x40f)]===_0x12e814));}['_init'](){const _0x56b1cb=_0x57b986;this[_0x56b1cb(0x3d9)][_0x56b1cb(0x553)](_0x4cdaf4[_0x56b1cb(0x514)][_0x56b1cb(0x1ed)])['pipe'](_0x4bb16b['takeUntil'](this[_0x56b1cb(0x2e3)]),_0x4ac749[_0x56b1cb(0x578)](0x10))[_0x56b1cb(0x29e)](async _0x37df99=>{const _0x5208d2=_0x56b1cb,_0x26c2a4=_0x37df99[_0x5208d2(0x3d4)](),_0x374710=await this[_0x5208d2(0x485)](_0x26c2a4,_0x1f330d[_0x5208d2(0x1ed)]);this[_0x5208d2(0x389)]['set'](_0x26c2a4,_0x374710);}),this[_0x56b1cb(0x3d9)][_0x56b1cb(0x553)](_0x4cdaf4[_0x56b1cb(0x514)][_0x56b1cb(0x510)])['pipe'](_0x4bb16b[_0x56b1cb(0x2e2)](this[_0x56b1cb(0x2e3)]),_0x4ac749[_0x56b1cb(0x578)](0x10))[_0x56b1cb(0x334)](_0x4ac749['filter'](_0x1f96fa=>!_0x1f96fa[_0x56b1cb(0x3d4)]()[_0x56b1cb(0x55a)]('__')))[_0x56b1cb(0x29e)](async _0x5f127b=>{const _0x5f3681=_0x56b1cb,_0x227ccd=_0x5f127b[_0x5f3681(0x3d4)](),_0xfc207d=await this['_startCollaboration'](_0x227ccd,_0x1f330d[_0x5f3681(0x510)]);this[_0x5f3681(0x389)][_0x5f3681(0x2c3)](_0x227ccd,_0xfc207d);}),_0x4bb16b[_0x56b1cb(0x468)](this[_0x56b1cb(0x3d9)][_0x56b1cb(0x29d)](_0x4cdaf4['UniverInstanceType'][_0x56b1cb(0x1ed)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4cdaf4[_0x56b1cb(0x514)][_0x56b1cb(0x510)]))['pipe'](_0x4bb16b[_0x56b1cb(0x2e2)](this[_0x56b1cb(0x2e3)]))[_0x56b1cb(0x29e)](_0xeddc12=>{const _0xf3b53e=_0x56b1cb,_0x216308=_0xeddc12[_0xf3b53e(0x3d4)](),_0x51cf9c=this[_0xf3b53e(0x389)][_0xf3b53e(0x408)](_0x216308);_0x51cf9c&&(_0x51cf9c[_0xf3b53e(0x46e)](),this[_0xf3b53e(0x389)][_0xf3b53e(0x391)](_0x216308));});}async['_startCollaboration'](_0x4357af,_0x572de3){const _0x505d45=_0x57b986,_0x1debba=await this[_0x505d45(0x31f)][_0x505d45(0x50a)](_0x4357af),_0x582bf2=this[_0x505d45(0x260)]['createInstance'](this[_0x505d45(0x433)](_0x572de3),_0x4357af,_0x572de3,_0x1debba);return await _0x582bf2[_0x505d45(0x533)](),this['_entityInit$'][_0x505d45(0x1bd)](_0x582bf2),_0x582bf2;}[_0x57b986(0x433)](_0x160e0b){const _0xf80e4f=_0x57b986;switch(_0x160e0b){case _0x1f330d[_0xf80e4f(0x510)]:return _0x246c2e;case _0x1f330d[_0xf80e4f(0x1ed)]:return _0x3c250a;default:throw new Error(_0xf80e4f(0x2db)+_0x160e0b);}}},_0x3f3314[_0x57b986(0x33a)]=_0x23ff9f([_0x4cdaf4[_0x57b986(0x4e2)](_0x4cdaf4['LifecycleStages'][_0x57b986(0x2b6)],_0x3f3314[_0x57b986(0x33a)]),_0x4aceb5(0x0,_0x12925a[_0x57b986(0x42c)](_0x12925a['Injector'])),_0x4aceb5(0x1,_0x12925a[_0x57b986(0x42c)](_0x3f3314[_0x57b986(0x48c)])),_0x4aceb5(0x2,_0x4cdaf4[_0x57b986(0x28e)])],_0x3f3314[_0x57b986(0x33a)]);let _0x4d2146=class extends _0x4cdaf4[_0x57b986(0x499)]{constructor(_0x520a20,_0x6f38a9,_0x37c361,_0x1259c4,_0x17b814,_0x18b460,_0x3c8247,_0x1a9049,_0xbcc38a,_0x2e7d5c,_0x2666db,_0x43faa1,_0x37cc4c){const _0x4286c4=_0x57b986;super(),_0x53d09f(this,_0x4286c4(0x498),new _0x4bb16b['BehaviorSubject'](null)),_0x53d09f(this,'state$',this[_0x4286c4(0x498)][_0x4286c4(0x534)]()),_0x53d09f(this,_0x4286c4(0x2bf)),_0x53d09f(this,_0x4286c4(0x428),!0x1),_0x53d09f(this,'status$',this[_0x4286c4(0x230)][_0x4286c4(0x334)](_0x4ac749[_0x4286c4(0x2d2)](_0x3df5a3=>_0x3df5a3?_0x3df5a3[_0x4286c4(0x2aa)]:_0x5185a4[_0x4286c4(0x26f)]),_0x4ac749[_0x4286c4(0x2e1)](0x1))),_0x53d09f(this,_0x4286c4(0x20f),!0x1),_0x53d09f(this,_0x4286c4(0x583),[]),(this[_0x4286c4(0x40f)]=_0x520a20,this[_0x4286c4(0x4a8)]=_0x6f38a9,this[_0x4286c4(0x51d)]=_0x37c361,this['_injector']=_0x1259c4,this[_0x4286c4(0x2ca)]=_0x17b814,this['_compressMutationService']=_0x18b460,this[_0x4286c4(0x247)]=_0x3c8247,this[_0x4286c4(0x377)]=_0x1a9049,this[_0x4286c4(0x314)]=_0xbcc38a,this[_0x4286c4(0x48f)]=_0x2e7d5c,this['_messageService']=_0x2666db,this[_0x4286c4(0x3a7)]=_0x43faa1,this[_0x4286c4(0x35b)]=_0x37cc4c);}get[_0x57b986(0x3d2)](){return this['_state'];}async[_0x57b986(0x533)](){const _0x1f0efa=_0x57b986;if(this['state'])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x1f0efa(0x546)]();}[_0x57b986(0x20d)](){const _0x342b63=_0x57b986;return this[_0x342b63(0x428)]=!0x0,_0x4cdaf4[_0x342b63(0x56b)](()=>{const _0x419654=_0x342b63;this[_0x419654(0x428)]=!0x1,this[_0x419654(0x42f)]();});}['_updateState'](_0x5062dc){const _0x24b5b5=_0x57b986;this[_0x24b5b5(0x2bf)]=_0x5062dc,this[_0x24b5b5(0x498)][_0x24b5b5(0x1bd)](_0x5062dc);}async[_0x57b986(0x546)](){const _0x3affee=_0x57b986;var _0x41957b;return this[_0x3affee(0x31a)](await this[_0x3affee(0x465)]()),this[_0x3affee(0x35b)]&&((_0x41957b=this[_0x3affee(0x35b)])==null||_0x41957b[_0x3affee(0x531)](this['unitID']),this[_0x3affee(0x250)](_0x4cdaf4[_0x3affee(0x56b)](this[_0x3affee(0x35b)]['getUnitStatus$'](this[_0x3affee(0x40f)])[_0x3affee(0x29e)](_0x14e7cc=>{const _0x5e79ff=_0x3affee;this[_0x5e79ff(0x314)][_0x5e79ff(0x1fa)](_0x5e79ff(0x2fb),_0x5e79ff(0x255),_0x14e7cc),_0x14e7cc===_0x5e4f39[_0x5e79ff(0x288)]?(this['_messageService'][_0x5e79ff(0x560)]({'content':this['_localeService']['t'](_0x5e79ff(0x487)),'type':_0x4fb88a[_0x5e79ff(0x2af)][_0x5e79ff(0x2bb)]}),this[_0x5e79ff(0x3a7)][_0x5e79ff(0x1be)](new _0x3a01f6['WorkbookEditablePermission'](this['unitID'])['id'],!0x1)):this[_0x5e79ff(0x3a7)][_0x5e79ff(0x1be)](new _0x3a01f6[(_0x5e79ff(0x373))](this[_0x5e79ff(0x40f)])['id'],!0x0);})))),this[_0x3affee(0x250)](_0x4cdaf4[_0x3affee(0x56b)](this[_0x3affee(0x51d)][_0x3affee(0x46d)][_0x3affee(0x29e)](_0x272159=>{const _0x2bfa2f=_0x3affee;_0x272159===_0x585a5c['ONLINE']?this[_0x2bfa2f(0x2b9)]():_0x272159===_0x585a5c['OFFLINE']&&this[_0x2bfa2f(0x341)]();}))),this[_0x3affee(0x250)](_0x4cdaf4[_0x3affee(0x56b)](this[_0x3affee(0x51d)][_0x3affee(0x24c)][_0x3affee(0x29e)](_0x39075b=>{const _0x4a9503=_0x3affee;try{switch(_0x39075b[_0x4a9503(0x558)]){case _0x329b63[_0x4a9503(0x3dc)][_0x4a9503(0x345)]:{this[_0x4a9503(0x285)](_0x329b63['parseProtocolChangeset'](_0x39075b[_0x4a9503(0x4a7)]));break;}case _0x329b63['CollaborationEvent'][_0x4a9503(0x396)]:{this['_onRemoteACK'](_0x39075b[_0x4a9503(0x4a7)]);break;}case _0x329b63[_0x4a9503(0x3dc)][_0x4a9503(0x429)]:{this['_onRemoteRejected']();break;}case _0x329b63[_0x4a9503(0x3dc)]['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x4a9503(0x512)](_0x39075b[_0x4a9503(0x4a7)]['changesets'][_0x4a9503(0x2d2)](_0x3b4ac3=>_0x329b63[_0x4a9503(0x4a6)](_0x3b4ac3)));break;}case _0x329b63[_0x4a9503(0x3dc)][_0x4a9503(0x271)]:this[_0x4a9503(0x380)]({'isPermissionRej':!0x0});}}catch(_0x124d1e){throw console['error']('Error\x20on\x20receiving\x20event',_0x124d1e),_0x124d1e;}}))),this[_0x3affee(0x2bf)];}[_0x57b986(0x426)](){this['_transitionLocked']=!0x1;}[_0x57b986(0x20a)](){const _0x4d62b9=_0x57b986;if(this[_0x4d62b9(0x20f)])throw new Error(_0x4d62b9(0x3fd));this[_0x4d62b9(0x20f)]=!0x0;}[_0x57b986(0x335)](_0x3119ea){const _0x54e116=_0x57b986;this[_0x54e116(0x20a)](),this[_0x54e116(0x31a)](this[_0x54e116(0x2bf)][_0x54e116(0x538)](_0x3119ea)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x34aca7){const _0x22a3db=_0x57b986;if(!(_0x34aca7[_0x22a3db(0x49a)]<=this[_0x22a3db(0x377)][_0x22a3db(0x577)](this['unitID']))){if(this[_0x22a3db(0x428)]){this[_0x22a3db(0x583)][_0x22a3db(0x2a8)](_0x34aca7);return;}this['_applyRemoteChangeset'](_0x34aca7);}}[_0x57b986(0x42f)](){const _0x1ebf0b=_0x57b986;this[_0x1ebf0b(0x583)][_0x1ebf0b(0x2bc)](_0x1231be=>this[_0x1ebf0b(0x42a)](_0x1231be)),this[_0x1ebf0b(0x583)]=[];}[_0x57b986(0x42a)](_0x31f8ce){const _0x50b4b2=_0x57b986,_0x38bea2=this[_0x50b4b2(0x400)]['interceptor'][_0x50b4b2(0x21c)](this[_0x50b4b2(0x400)]['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x31f8ce[_0x50b4b2(0x526)],null)||_0x31f8ce[_0x50b4b2(0x526)],_0x121860={..._0x31f8ce,'mutations':_0x38bea2};this['_lockTransition'](),this[_0x50b4b2(0x31a)](this['_state'][_0x50b4b2(0x221)](_0x121860)),this[_0x50b4b2(0x426)]();}['_onRemoteACK'](_0x4b3c14){const _0x47978f=_0x57b986;this['_lockTransition'](),this['_updateState'](this[_0x47978f(0x2bf)]['onRemoteAck'](_0x4b3c14)),this[_0x47978f(0x426)]();}[_0x57b986(0x380)](_0x1603e1){const _0x39f873=_0x57b986;this[_0x39f873(0x20a)](),this['_updateState'](this['_state'][_0x39f873(0x520)](_0x1603e1)),this[_0x39f873(0x426)]();}[_0x57b986(0x512)](_0x350f80){const _0x4efd71=_0x57b986;if(!(this[_0x4efd71(0x2bf)]instanceof _0x340c05))throw new TypeError(_0x4efd71(0x24f));const _0x14fcbf=_0x350f80['map'](_0x573dee=>{const _0x2391dc=_0x4efd71,_0x4e5c01=this[_0x2391dc(0x400)][_0x2391dc(0x1f5)][_0x2391dc(0x21c)](this['_compressMutationService'][_0x2391dc(0x1f5)][_0x2391dc(0x28c)]()['COMPRESS_MUTATION_APPLY'])(_0x573dee[_0x2391dc(0x526)],null)||_0x573dee[_0x2391dc(0x526)];return{..._0x573dee,'mutations':_0x4e5c01};});this[_0x4efd71(0x20a)](),this[_0x4efd71(0x31a)](this[_0x4efd71(0x2bf)][_0x4efd71(0x1cd)](_0x14fcbf)),this[_0x4efd71(0x426)]();}[_0x57b986(0x341)](){const _0x5705f7=_0x57b986;this['_lockTransition'](),this['_updateState'](this[_0x5705f7(0x2bf)]['toggleOffline']()),this[_0x5705f7(0x426)]();}[_0x57b986(0x2b9)](){const _0x452262=_0x57b986;this['_lockTransition'](),this[_0x452262(0x31a)](this[_0x452262(0x2bf)]['toggleOnline']()),this[_0x452262(0x426)]();}async[_0x57b986(0x465)](){return new Promise(_0x16b43b=>{const _0x916655=_0x23df;this[_0x916655(0x51d)]['sessionStatus$'][_0x916655(0x334)](_0x4ac749['take'](0x1))[_0x916655(0x29e)](async _0x3c008c=>{const _0xacd23=_0x916655;_0x16b43b(await this[_0xacd23(0x4bd)](_0x3c008c===_0x585a5c[_0xacd23(0x1c1)]));});});}[_0x57b986(0x215)](){const _0xf9e93b=_0x57b986,_0x156cfe=this[_0xf9e93b(0x40f)];return{'onStateChange':(_0x58dd03,_0x5d3573)=>{const _0x106815=_0xf9e93b;if(_0x58dd03!==this[_0x106815(0x2bf)])throw new Error(_0x106815(0x463)+_0x58dd03[_0x106815(0x2aa)]+_0x106815(0x4ce)+_0x5d3573['status']+_0x106815(0x3a1)+this[_0x106815(0x2bf)][_0x106815(0x2aa)]);this[_0x106815(0x31a)](_0x5d3573);},'onSendChangeset':_0x22b283=>{const _0x12a688=_0xf9e93b,_0x1585fd={'eventID':_0x329b63[_0x12a688(0x3dc)][_0x12a688(0x3b5)],'data':{'unitID':_0x22b283[_0x12a688(0x40f)],'unitType':this[_0x12a688(0x4a8)],'changeset':_0x22b283,'memberID':this[_0x12a688(0x51d)][_0x12a688(0x46a)]()}};this['_session'][_0x12a688(0x4aa)](_0x1585fd,this[_0x12a688(0x40f)]);},'onMissingChangesets':({from:_0x2e920d,to:_0x3bfd54})=>{const _0x17cbf2=_0xf9e93b;this[_0x17cbf2(0x314)][_0x17cbf2(0x1fa)](_0x17cbf2(0x2fb),_0x17cbf2(0x40e)+_0x2e920d+_0x17cbf2(0x39c)+_0x3bfd54);const _0x29b912={'eventID':_0x329b63[_0x17cbf2(0x3dc)][_0x17cbf2(0x355)],'data':{'unitID':_0x156cfe,'unitType':this['_type'],'from':_0x2e920d,'to':_0x3bfd54}};this[_0x17cbf2(0x51d)][_0x17cbf2(0x4aa)](_0x29b912,this[_0x17cbf2(0x40f)]);}};}async[_0x57b986(0x4bd)](_0x509ba1){const _0x2319c4=_0x57b986;var _0x3b4c3c,_0x129543;const _0x2537bd=await this['_localCacheService'][_0x2319c4(0x1d5)](this['unitID']),_0x31aa57=(_0x3b4c3c=_0x2537bd==null?void 0x0:_0x2537bd['mutations'])!=null?_0x3b4c3c:[],_0x263b1b=(_0x129543=_0x2537bd==null?void 0x0:_0x2537bd[_0x2319c4(0x4c9)])!=null?_0x129543:null,_0x2109c6=this[_0x2319c4(0x40f)];try{this['_replayCachedMutations'](_0x263b1b,_0x31aa57);}catch(_0x353378){this[_0x2319c4(0x314)]['error'](_0x353378);}const _0x4ad036=this[_0x2319c4(0x215)]();if(_0x509ba1){const _0x104db9=_0x644ba0(this[_0x2319c4(0x260)],_0x2109c6,this[_0x2319c4(0x4a8)],_0x263b1b,_0x31aa57,_0x4ad036);return _0x104db9 instanceof _0x56eb89?_0x104db9['_schedule']():(_0x104db9 instanceof _0x3a588f||_0x104db9 instanceof _0x304c89)&&_0x104db9[_0x2319c4(0x4fc)](),_0x104db9;}return this['_injector'][_0x2319c4(0x545)](_0x3e4f1a,_0x2109c6,this[_0x2319c4(0x4a8)],_0x263b1b,_0x31aa57,_0x4ad036);}[_0x57b986(0x2d9)](_0x4081ab,_0x49e144){const _0x3d39a6=_0x57b986;var _0x36629a,_0x82627a;const _0x21ffdb=this[_0x3d39a6(0x400)][_0x3d39a6(0x1f5)]['fetchThroughInterceptors'](this[_0x3d39a6(0x400)][_0x3d39a6(0x1f5)][_0x3d39a6(0x28c)]()[_0x3d39a6(0x1ea)]);(_0x36629a=_0x21ffdb((_0x4081ab==null?void 0x0:_0x4081ab[_0x3d39a6(0x526)])||[],null))==null||_0x36629a[_0x3d39a6(0x2bc)](_0x385555=>this['_commandService'][_0x3d39a6(0x21f)](_0x385555['id'],_0x385555[_0x3d39a6(0x455)])),(_0x82627a=_0x21ffdb(_0x49e144||[],null))==null||_0x82627a[_0x3d39a6(0x2bc)](_0x4dab94=>this[_0x3d39a6(0x48f)]['executeCommand'](_0x4dab94['id'],_0x4dab94[_0x3d39a6(0x455)]));}};_0x4d2146=_0x23ff9f([_0x4aceb5(0x3,_0x12925a[_0x57b986(0x42c)](_0x12925a[_0x57b986(0x52f)])),_0x4aceb5(0x4,_0x12925a[_0x57b986(0x42c)](_0x3f3314['LocalCacheService'])),_0x4aceb5(0x5,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3bd)])),_0x4aceb5(0x6,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4[_0x57b986(0x502)])),_0x4aceb5(0x7,_0x12925a['Inject'](_0x329b63[_0x57b986(0x3a0)])),_0x4aceb5(0x8,_0x4cdaf4[_0x57b986(0x41c)]),_0x4aceb5(0x9,_0x4cdaf4[_0x57b986(0x46c)]),_0x4aceb5(0xa,_0x4ff465['IMessageService']),_0x4aceb5(0xb,_0x4cdaf4['IPermissionService']),_0x4aceb5(0xc,_0x12925a[_0x57b986(0x3ec)](_0x1c83f9))],_0x4d2146);let _0x246c2e=class extends _0x4d2146{constructor(_0x2ab7e3,_0x33b89f,_0x38137a,_0x33e9a5,_0x460bce,_0x527749,_0x3ff67f,_0x54ba4f,_0x4349cd,_0x10d639,_0x1d947f,_0x2b7321,_0x3ffd7e,_0x4614a0,_0xa87363,_0x403dde,_0x1e42c7){const _0x564257=_0x57b986;super(_0x2ab7e3,_0x33b89f,_0x38137a,_0x33e9a5,_0x460bce,_0x527749,_0x3ff67f,_0x54ba4f,_0x3ffd7e,_0x4614a0,_0xa87363,_0x403dde,_0x1e42c7),this['unitID']=_0x2ab7e3,this['type']=_0x33b89f,this[_0x564257(0x469)]=_0x38137a,this[_0x564257(0x2ff)]=_0x4349cd,this[_0x564257(0x275)]=_0x10d639,this['_docTransformSelectionsService']=_0x1d947f,this[_0x564257(0x293)]=_0x2b7321;}[_0x57b986(0x215)](){const _0x2ec544=_0x57b986,_0x298a55=super[_0x2ec544(0x215)]();return _0x298a55['onTransformIME']=_0x5cd0bd=>this[_0x2ec544(0x275)]['transformIMECache'](_0x5cd0bd),_0x298a55[_0x2ec544(0x31e)]=_0x4dd0a3=>this[_0x2ec544(0x282)][_0x2ec544(0x4c8)](_0x4dd0a3),_0x298a55[_0x2ec544(0x23b)]=_0xf12eda=>this[_0x2ec544(0x293)]['syncEditingCollabCursor'](_0xf12eda),_0x298a55[_0x2ec544(0x242)]=_0x484012=>this[_0x2ec544(0x275)][_0x2ec544(0x506)](_0x484012),_0x298a55;}async[_0x57b986(0x546)](){const _0x41b208=_0x57b986,_0x1fe86c=await super[_0x41b208(0x546)]();return this['_docStateChangeManagerService']['docStateChange$'][_0x41b208(0x334)](_0x4bb16b['takeUntil'](this[_0x41b208(0x2e3)]))[_0x41b208(0x29e)](_0x5b8510=>{const _0x34685d=_0x41b208;if(_0x5b8510==null)return;const {unitId:_0x26d5aa,redoState:_0x5ac1e8,commandId:_0x522972}=_0x5b8510;if(_0x26d5aa!==this[_0x34685d(0x40f)])return;const _0x48edfe={'id':_0x522972,'type':_0x4cdaf4[_0x34685d(0x316)][_0x34685d(0x414)],'params':{'unitId':_0x26d5aa,'actions':_0x5ac1e8[_0x34685d(0x29a)],'textRanges':null}};this[_0x34685d(0x335)](_0x48edfe);}),_0x1fe86c;}};_0x246c2e=_0x23ff9f([_0x4aceb5(0x3,_0x12925a['Inject'](_0x12925a[_0x57b986(0x52f)])),_0x4aceb5(0x4,_0x12925a[_0x57b986(0x42c)](_0x3f3314['LocalCacheService'])),_0x4aceb5(0x5,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3bd)])),_0x4aceb5(0x6,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4[_0x57b986(0x502)])),_0x4aceb5(0x7,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3a0)])),_0x4aceb5(0x8,_0x12925a[_0x57b986(0x42c)](_0x3fcd1a[_0x57b986(0x415)])),_0x4aceb5(0x9,_0x12925a[_0x57b986(0x42c)](_0x29ca68)),_0x4aceb5(0xa,_0x12925a['Inject'](_0x38542b)),_0x4aceb5(0xb,_0x12925a[_0x57b986(0x42c)](_0x2f17dc)),_0x4aceb5(0xc,_0x4cdaf4[_0x57b986(0x41c)]),_0x4aceb5(0xd,_0x4cdaf4[_0x57b986(0x46c)]),_0x4aceb5(0xe,_0x4ff465['IMessageService']),_0x4aceb5(0xf,_0x4cdaf4['IPermissionService']),_0x4aceb5(0x10,_0x12925a[_0x57b986(0x3ec)](_0x1c83f9))],_0x246c2e);let _0x3c250a=class extends _0x4d2146{constructor(_0x4c6214,_0x56f9e3,_0x4d36ce,_0x160cd4,_0x5774de,_0x584d75,_0x2b216d,_0x5b0f66,_0x49c7fb,_0xdc115a,_0x64533b,_0x39c904,_0x502a7c,_0x58ee92){const _0x3933f8=_0x57b986;super(_0x4c6214,_0x56f9e3,_0x4d36ce,_0x160cd4,_0x5774de,_0x584d75,_0x2b216d,_0x5b0f66,_0xdc115a,_0x64533b,_0x39c904,_0x502a7c,_0x58ee92),this[_0x3933f8(0x40f)]=_0x4c6214,this[_0x3933f8(0x239)]=_0x56f9e3,this[_0x3933f8(0x469)]=_0x4d36ce,this[_0x3933f8(0x55b)]=_0x49c7fb;}[_0x57b986(0x215)](){const _0x4f939e=_0x57b986,_0x46ae0d=super[_0x4f939e(0x215)]();return _0x46ae0d['onTransformSelections']=_0x418815=>this[_0x4f939e(0x55b)][_0x4f939e(0x4c8)](_0x418815),_0x46ae0d;}async[_0x57b986(0x546)](){const _0x2084c7=_0x57b986,_0x3646e1=await super[_0x2084c7(0x546)]();return this[_0x2084c7(0x250)](this[_0x2084c7(0x48f)]['onCommandExecuted']((_0x173086,_0x4f524c)=>{const _0x23d2c8=_0x2084c7;if(_0x173086['type']!==_0x4cdaf4[_0x23d2c8(0x316)][_0x23d2c8(0x414)]||_0x4f524c!=null&&_0x4f524c['fromCollab']||_0x4f524c!=null&&_0x4f524c[_0x23d2c8(0x387)])return;const _0x1b66d6=_0x173086['params'];if((_0x1b66d6==null?void 0x0:_0x1b66d6['unitId'])!==this[_0x23d2c8(0x40f)])return;const _0xe439f6=_0x173086,_0x582170=this['_compressMutationService'][_0x23d2c8(0x1f5)][_0x23d2c8(0x21c)](this[_0x23d2c8(0x400)][_0x23d2c8(0x1f5)][_0x23d2c8(0x28c)]()[_0x23d2c8(0x28f)])([_0xe439f6],null)||[_0xe439f6];this[_0x23d2c8(0x335)](_0x582170[0x0]);})),_0x3646e1;}};_0x3c250a=_0x23ff9f([_0x4aceb5(0x3,_0x12925a[_0x57b986(0x42c)](_0x12925a[_0x57b986(0x52f)])),_0x4aceb5(0x4,_0x12925a[_0x57b986(0x42c)](_0x3f3314['LocalCacheService'])),_0x4aceb5(0x5,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3bd)])),_0x4aceb5(0x6,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4[_0x57b986(0x502)])),_0x4aceb5(0x7,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x3a0)])),_0x4aceb5(0x8,_0x12925a[_0x57b986(0x42c)](_0x4e6a4d)),_0x4aceb5(0x9,_0x4cdaf4[_0x57b986(0x41c)]),_0x4aceb5(0xa,_0x4cdaf4[_0x57b986(0x46c)]),_0x4aceb5(0xb,_0x4ff465['IMessageService']),_0x4aceb5(0xc,_0x4cdaf4[_0x57b986(0x413)]),_0x4aceb5(0xd,_0x12925a[_0x57b986(0x3ec)](_0x1c83f9))],_0x3c250a);const _0x332ff8=[_0x57b986(0x306),_0x57b986(0x32c),_0x57b986(0x57f),_0x57b986(0x443),_0x57b986(0x2b4),_0x57b986(0x445)];class _0x2ba255 extends _0x4cdaf4[_0x57b986(0x310)]{constructor(){const _0x5d1349=_0x57b986;super(...arguments),_0x53d09f(this,_0x5d1349(0x328),new Map()),_0x53d09f(this,_0x5d1349(0x549),0x0);}['assignAColorForMemberID'](_0x4e0784){const _0x4aff1f=_0x57b986;if(this[_0x4aff1f(0x328)]['has'](_0x4e0784))return this[_0x4aff1f(0x328)][_0x4aff1f(0x408)](_0x4e0784);const _0x5c1b81=_0x332ff8[this['_colorIndex']];return this['_colorIndex']=(this[_0x4aff1f(0x549)]+0x1)%_0x332ff8[_0x4aff1f(0x397)],this[_0x4aff1f(0x328)][_0x4aff1f(0x2c3)](_0x4e0784,_0x5c1b81),_0x5c1b81;}}var _0x59c414=Object['defineProperty'],_0x2b80c1=Object[_0x57b986(0x405)],_0x35c062=(_0x46fe98,_0x3a9348,_0x2386af,_0x19f959)=>{const _0x5ebe01=_0x57b986;for(var _0x3d5347=_0x19f959>0x1?void 0x0:_0x19f959?_0x2b80c1(_0x3a9348,_0x2386af):_0x3a9348,_0x5cd20b=_0x46fe98[_0x5ebe01(0x397)]-0x1,_0x952162;_0x5cd20b>=0x0;_0x5cd20b--)(_0x952162=_0x46fe98[_0x5cd20b])&&(_0x3d5347=(_0x19f959?_0x952162(_0x3a9348,_0x2386af,_0x3d5347):_0x952162(_0x3d5347))||_0x3d5347);return _0x19f959&&_0x3d5347&&_0x59c414(_0x3a9348,_0x2386af,_0x3d5347),_0x3d5347;},_0x5c3b3a=(_0x2a615c,_0x423658)=>(_0x374d21,_0x3c3dab)=>_0x423658(_0x374d21,_0x3c3dab,_0x2a615c);const _0x1a870c=0x12c,_0x54922a=0x64,_0x46761=()=>{let _0x4c62d1=[],_0x5f8dd3=!0x1;return _0x3cf5d3=>{_0x4c62d1['push'](_0x3cf5d3),_0x5f8dd3||(_0x5f8dd3=!0x0,setTimeout(()=>{_0x4c62d1['forEach'](_0x31ae11=>_0x31ae11()),_0x4c62d1=[],_0x5f8dd3=!0x1;}));};};let _0x1d8604=class extends _0x4cdaf4['RxDisposable']{constructor(_0x1dc4d4,_0x5d0114,_0x452fc5,_0x18529d,_0x7cb188,_0x1edc70,_0x2db7ec,_0xf5b158){const _0x137b69=_0x57b986;super(),_0x53d09f(this,_0x137b69(0x3d8),!0x1),_0x53d09f(this,_0x137b69(0x546),!0x1),_0x53d09f(this,_0x137b69(0x1cf),new _0x4bb16b[(_0x137b69(0x2e9))](new Map())),_0x53d09f(this,_0x137b69(0x535),this[_0x137b69(0x1cf)][_0x137b69(0x534)]()),_0x53d09f(this,_0x137b69(0x51e),new _0x4bb16b[(_0x137b69(0x2e9))]([])),_0x53d09f(this,_0x137b69(0x399),this[_0x137b69(0x51e)][_0x137b69(0x334)](_0x4bb16b[_0x137b69(0x3cd)](_0x1a870c))),_0x53d09f(this,_0x137b69(0x38a),_0x7451ba((_0xaa728f,_0x3bc471)=>{const _0xc8b3f5=_0x137b69,_0x54a39d={'eventID':_0x329b63[_0xc8b3f5(0x3dc)][_0xc8b3f5(0x2c9)],'data':{'unitID':this[_0xc8b3f5(0x40f)],'memberID':this[_0xc8b3f5(0x51d)][_0xc8b3f5(0x46a)](),'selection':_0x29b663[_0xc8b3f5(0x1fd)](_0xaa728f,_0x3bc471['range'])}};this[_0xc8b3f5(0x51d)]['send'](_0x54a39d,this[_0xc8b3f5(0x40f)]);},_0x54922a)),(this[_0x137b69(0x40f)]=_0x1dc4d4,this['_session']=_0x5d0114,this['_injector']=_0x452fc5,this['_colorAssignService']=_0x18529d,this[_0x137b69(0x1d3)]=_0x7cb188,this[_0x137b69(0x3d9)]=_0x1edc70,this[_0x137b69(0x48f)]=_0x2db7ec,this[_0x137b69(0x33f)]=_0xf5b158);}get[_0x57b986(0x25b)](){const _0x521e0e=_0x57b986;return this['_cursorInfo$'][_0x521e0e(0x424)]();}get[_0x57b986(0x2c7)](){const _0x3443bb=_0x57b986;return this[_0x3443bb(0x51e)]['getValue']();}[_0x57b986(0x46e)](){const _0x4303f6=_0x57b986;super[_0x4303f6(0x46e)](),this[_0x4303f6(0x1cf)][_0x4303f6(0x1bd)](new Map()),this[_0x4303f6(0x1cf)]['complete'](),this[_0x4303f6(0x51e)]['next']([]),this['_roomMembers$'][_0x4303f6(0x461)]();}['init'](){const _0x1d87cb=_0x57b986;this['_init']||(this[_0x1d87cb(0x546)]=!0x0,this[_0x1d87cb(0x51d)][_0x1d87cb(0x46d)]['pipe'](_0x4bb16b['takeUntil'](this[_0x1d87cb(0x2e3)]))['subscribe'](_0x286323=>{const _0x49523b=_0x1d87cb;_0x286323===_0x585a5c[_0x49523b(0x1c1)]?this[_0x49523b(0x2b9)]():this['_toggleOffline']();}),this['_session'][_0x1d87cb(0x24c)][_0x1d87cb(0x334)](_0x4bb16b[_0x1d87cb(0x2e2)](this['dispose$']))[_0x1d87cb(0x29e)](_0x3a4ffa=>{const _0x5b2b54=_0x1d87cb,_0x5639ce=_0x3a4ffa['eventID'];_0x5639ce===_0x329b63[_0x5b2b54(0x3dc)][_0x5b2b54(0x2c9)]&&this[_0x5b2b54(0x3b6)](_0x3a4ffa),_0x5639ce===_0x329b63[_0x5b2b54(0x3dc)][_0x5b2b54(0x1f0)]&&this['_onCursorDelete'](_0x3a4ffa);}),this[_0x1d87cb(0x475)](),this['disposeWithMe'](this['_commandService'][_0x1d87cb(0x4eb)](_0x586412=>{const _0x55fc36=_0x1d87cb;if(this['_online']&&_0x586412['id']===_0x3a01f6[_0x55fc36(0x467)]['id']&&_0x586412[_0x55fc36(0x455)][_0x55fc36(0x2a3)]===this['unitID']){const _0x3ca72a=_0x586412[_0x55fc36(0x455)];this[_0x55fc36(0x38a)](_0x3ca72a[_0x55fc36(0x295)],_0x3ca72a['selections'][0x0]);}})));}[_0x57b986(0x3b6)](_0x1ca88f){const _0x523a48=_0x57b986;var _0x45db80,_0x191253;const {memberID:_0x333469,selection:_0x47b610}=_0x1ca88f[_0x523a48(0x4a7)],{sheetName:_0x2a4494,range:_0x23b2a0}=_0x29b663['deserializeRangeWithSheet'](_0x47b610),_0x24a0f8={'name':(_0x191253=(_0x45db80=this['_memberService'][_0x523a48(0x44f)](this[_0x523a48(0x40f)],_0x333469))==null?void 0x0:_0x45db80['name'])!=null?_0x191253:_0x523a48(0x442),'range':this[_0x523a48(0x3f4)](_0x2a4494,_0x23b2a0),'sheetID':_0x2a4494,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x333469),'selection':_0x47b610},_0x56d9bb=this[_0x523a48(0x25b)];_0x56d9bb[_0x523a48(0x2c3)](_0x333469,_0x24a0f8),this['_cursorInfo$'][_0x523a48(0x1bd)](_0x56d9bb);}[_0x57b986(0x47e)](_0x100a95){const _0x426b70=_0x57b986,{memberID:_0x541719}=_0x100a95[_0x426b70(0x4a7)],_0x4a3e4d=this[_0x426b70(0x25b)];_0x4a3e4d['delete'](_0x541719),this['_cursorInfo$'][_0x426b70(0x1bd)](_0x4a3e4d);}[_0x57b986(0x3f4)](_0x3ab4c1,_0x21e4c4){const _0x9c3eda=_0x57b986;var _0x429f02,_0x1d1c70;const _0x4b24cb=(_0x1d1c70=(_0x429f02=this[_0x9c3eda(0x3d9)][_0x9c3eda(0x4d1)](this['unitID']))==null?void 0x0:_0x429f02['getSheetBySheetId'](_0x3ab4c1))==null?void 0x0:_0x1d1c70[_0x9c3eda(0x38d)]();return(_0x4b24cb==null?void 0x0:_0x4b24cb[_0x9c3eda(0x4f5)](_0x5d4adc=>_0x4cdaf4[_0x9c3eda(0x1df)][_0x9c3eda(0x384)](_0x5d4adc,_0x21e4c4)))||_0x21e4c4;}['_onRefRangeChange'](){const _0x4b529b=_0x57b986,_0x1e954a=new _0x4cdaf4['DisposableCollection'](),_0x3b76b0=_0x46761(),_0xa7b5af=()=>{const _0x51b8b5=_0x23df;_0x1e954a[_0x51b8b5(0x46e)]();const _0x2dfd80=(_0x185185,_0x5bca46,_0x5020bb,_0x31dc9a)=>{const _0x315dde=_0x51b8b5;let _0x2db0f5=[];switch(_0x185185['id']){case _0x3a01f6[_0x315dde(0x360)]['DeleteRangeMoveLeftCommandId']:{_0x2db0f5=_0x3a01f6[_0x315dde(0x3f8)](_0x185185,_0x31dc9a);break;}case _0x3a01f6[_0x315dde(0x360)][_0x315dde(0x4c1)]:{_0x2db0f5=_0x3a01f6[_0x315dde(0x420)](_0x185185,_0x31dc9a);break;}case _0x3a01f6['EffectRefRangId']['InsertColCommandId']:{_0x2db0f5=_0x3a01f6[_0x315dde(0x452)](_0x185185,_0x31dc9a);break;}case _0x3a01f6[_0x315dde(0x360)][_0x315dde(0x24e)]:{_0x2db0f5=_0x3a01f6[_0x315dde(0x269)](_0x185185,_0x31dc9a);break;}case _0x3a01f6[_0x315dde(0x360)][_0x315dde(0x2f4)]:{_0x2db0f5=_0x3a01f6['handleInsertRangeMoveRight'](_0x185185,_0x31dc9a);break;}case _0x3a01f6[_0x315dde(0x360)][_0x315dde(0x1c8)]:{_0x2db0f5=_0x3a01f6[_0x315dde(0x4f3)](_0x185185,_0x31dc9a);break;}case _0x3a01f6[_0x315dde(0x360)][_0x315dde(0x4e7)]:{_0x2db0f5=_0x3a01f6['handleMoveRange'](_0x185185,_0x31dc9a);break;}case _0x3a01f6['EffectRefRangId'][_0x315dde(0x385)]:{_0x2db0f5=_0x3a01f6['handleIRemoveCol'](_0x185185,_0x31dc9a);break;}case _0x3a01f6[_0x315dde(0x360)][_0x315dde(0x523)]:{_0x2db0f5=_0x3a01f6[_0x315dde(0x1f3)](_0x185185,_0x31dc9a);break;}}const _0x5a7ae5=_0x3a01f6[_0x315dde(0x4af)](_0x2db0f5,_0x31dc9a),_0xea2c61=this[_0x315dde(0x25b)][_0x315dde(0x408)](_0x5bca46);if(_0xea2c61&&_0x5a7ae5){const _0x52139e={..._0xea2c61,'range':_0x5a7ae5};this['cursorInfo'][_0x315dde(0x2c3)](_0x5bca46,_0x52139e),_0x3b76b0(()=>{const _0x38a40e=_0x315dde,_0x3eed8f=this[_0x38a40e(0x33f)][_0x38a40e(0x492)](_0x5a7ae5,_0x5795f0=>(_0x3eed8f[_0x38a40e(0x46e)](),_0x2dfd80(_0x5795f0,_0x5bca46,_0x5020bb,_0x5a7ae5)));_0x1e954a[_0x38a40e(0x2b7)](_0x3eed8f);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x5470e2,_0x35d538)=>{const _0x125774=_0x51b8b5,{range:_0x24df8c,sheetID:_0x18d628}=_0x5470e2,_0x1852b9=this['_refRangeService'][_0x125774(0x492)](_0x24df8c,_0x52ddfb=>(_0x1852b9[_0x125774(0x46e)](),_0x2dfd80(_0x52ddfb,_0x35d538,_0x18d628,_0x24df8c)));_0x1e954a[_0x125774(0x2b7)](_0x1852b9);});};this[_0x4b529b(0x250)](_0x4cdaf4[_0x4b529b(0x56b)](this[_0x4b529b(0x1cf)][_0x4b529b(0x29e)](()=>{_0xa7b5af();})));}[_0x57b986(0x2b9)](){const _0x756c8b=_0x57b986;var _0x3f0582,_0x57427b;if(this[_0x756c8b(0x3d8)]=!0x0,((_0x3f0582=this[_0x756c8b(0x3d9)][_0x756c8b(0x44d)]())==null?void 0x0:_0x3f0582[_0x756c8b(0x3d4)]())!==this[_0x756c8b(0x40f)])return;const _0x549db4=(_0x57427b=this['_injector'][_0x756c8b(0x408)](_0x3a01f6['SelectionManagerService'])[_0x756c8b(0x409)]())==null?void 0x0:_0x57427b[0x0],_0x49372e=this[_0x756c8b(0x3d9)][_0x756c8b(0x395)](_0x4cdaf4['UniverInstanceType'][_0x756c8b(0x1ed)])[_0x756c8b(0x3e6)]();_0x549db4&&_0x49372e&&this['_updateLocalCursor'](_0x49372e[_0x756c8b(0x2c5)](),_0x549db4);}[_0x57b986(0x341)](){this['_online']=!0x1;}};_0x1d8604=_0x35c062([_0x5c3b3a(0x2,_0x12925a[_0x57b986(0x42c)](_0x12925a[_0x57b986(0x52f)])),_0x5c3b3a(0x3,_0x12925a[_0x57b986(0x42c)](_0x2ba255)),_0x5c3b3a(0x4,_0x12925a[_0x57b986(0x42c)](_0x4495e7)),_0x5c3b3a(0x5,_0x4cdaf4[_0x57b986(0x28e)]),_0x5c3b3a(0x6,_0x4cdaf4['ICommandService']),_0x5c3b3a(0x7,_0x12925a[_0x57b986(0x42c)](_0x3a01f6['RefRangeService']))],_0x1d8604);var _0x2e536c=Object[_0x57b986(0x1f4)],_0x3558ec=Object[_0x57b986(0x405)],_0x8238c6=(_0x7faf12,_0x637063,_0x1b1419,_0x587426)=>{for(var _0x41ef7d=_0x587426>0x1?void 0x0:_0x587426?_0x3558ec(_0x637063,_0x1b1419):_0x637063,_0x4b5de8=_0x7faf12['length']-0x1,_0x3cee4a;_0x4b5de8>=0x0;_0x4b5de8--)(_0x3cee4a=_0x7faf12[_0x4b5de8])&&(_0x41ef7d=(_0x587426?_0x3cee4a(_0x637063,_0x1b1419,_0x41ef7d):_0x3cee4a(_0x41ef7d))||_0x41ef7d);return _0x587426&&_0x41ef7d&&_0x2e536c(_0x637063,_0x1b1419,_0x41ef7d),_0x41ef7d;},_0x1d8331=(_0x295a93,_0x5d2386)=>(_0x520b77,_0x20320e)=>_0x5d2386(_0x520b77,_0x20320e,_0x295a93);const _0xcaddc6=0x12c,_0x490937=0x64;let _0x58774d=class extends _0x4cdaf4['RxDisposable']{constructor(_0x40a9b7,_0x5c4cc7,_0x212a3f,_0x5b2773,_0x3c115f,_0x50e62d,_0x319aaf,_0x26608a,_0x15796c){const _0x2c9ac3=_0x57b986;super(),_0x53d09f(this,_0x2c9ac3(0x3d8),!0x1),_0x53d09f(this,'_init',!0x1),_0x53d09f(this,_0x2c9ac3(0x1cf),new _0x4bb16b['BehaviorSubject'](new Map())),_0x53d09f(this,_0x2c9ac3(0x535),this[_0x2c9ac3(0x1cf)][_0x2c9ac3(0x534)]()),_0x53d09f(this,_0x2c9ac3(0x51e),new _0x4bb16b[(_0x2c9ac3(0x2e9))]([])),_0x53d09f(this,'roomMembers$',this['_roomMembers$'][_0x2c9ac3(0x334)](_0x4bb16b[_0x2c9ac3(0x3cd)](_0xcaddc6))),_0x53d09f(this,'_updateLocalCursor',_0x7451ba(_0x2f2f1e=>{const _0xe17602=_0x2c9ac3,_0xef3f5f={'eventID':_0x329b63['CollaborationEvent'][_0xe17602(0x2c9)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0xe17602(0x46a)](),'selection':_0x313fed(_0x2f2f1e)}};this[_0xe17602(0x51d)][_0xe17602(0x4aa)](_0xef3f5f,this[_0xe17602(0x40f)]);},_0x490937)),(this[_0x2c9ac3(0x40f)]=_0x40a9b7,this[_0x2c9ac3(0x51d)]=_0x5c4cc7,this[_0x2c9ac3(0x260)]=_0x212a3f,this[_0x2c9ac3(0x4ae)]=_0x5b2773,this[_0x2c9ac3(0x1d3)]=_0x3c115f,this[_0x2c9ac3(0x374)]=_0x50e62d,this[_0x2c9ac3(0x26d)]=_0x319aaf,this[_0x2c9ac3(0x3d9)]=_0x26608a,this[_0x2c9ac3(0x48f)]=_0x15796c);}get[_0x57b986(0x25b)](){const _0x524fd4=_0x57b986;return this[_0x524fd4(0x1cf)]['getValue']();}get[_0x57b986(0x2c7)](){const _0x5d9875=_0x57b986;return this['_roomMembers$'][_0x5d9875(0x424)]();}[_0x57b986(0x46e)](){const _0x15e367=_0x57b986;super[_0x15e367(0x46e)](),this[_0x15e367(0x1cf)]['next'](new Map()),this['_cursorInfo$'][_0x15e367(0x461)](),this[_0x15e367(0x51e)][_0x15e367(0x1bd)]([]),this[_0x15e367(0x51e)][_0x15e367(0x461)]();}[_0x57b986(0x533)](){const _0x17da8c=_0x57b986;this[_0x17da8c(0x546)]||(this[_0x17da8c(0x546)]=!0x0,this[_0x17da8c(0x51d)][_0x17da8c(0x46d)][_0x17da8c(0x334)](_0x4bb16b[_0x17da8c(0x2e2)](this[_0x17da8c(0x2e3)]))['subscribe'](_0x1fb077=>{const _0x5a9559=_0x17da8c;_0x1fb077===_0x585a5c[_0x5a9559(0x1c1)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x17da8c(0x51d)]['event$']['pipe'](_0x4bb16b['takeUntil'](this[_0x17da8c(0x2e3)]))[_0x17da8c(0x29e)](_0x30562b=>{const _0x394cdc=_0x17da8c,_0x6f9a5f=_0x30562b[_0x394cdc(0x558)];_0x6f9a5f===_0x329b63[_0x394cdc(0x3dc)]['UPDATE_CURSOR']&&this[_0x394cdc(0x3b6)](_0x30562b),_0x6f9a5f===_0x329b63[_0x394cdc(0x3dc)][_0x394cdc(0x1f0)]&&this['_onCursorDelete'](_0x30562b);}),this['disposeWithMe'](this[_0x17da8c(0x48f)][_0x17da8c(0x4eb)](_0x203f03=>{const _0x1dfa27=_0x17da8c,_0x2a4c8a=_0x203f03['params'];_0x2a4c8a!=null&&this['_online']&&_0x203f03['id']===_0x3fcd1a[_0x1dfa27(0x38c)]['id']&&_0x2a4c8a[_0x1dfa27(0x2a3)]===this[_0x1dfa27(0x40f)]&&_0x2a4c8a[_0x1dfa27(0x2c6)]===!0x1&&this[_0x1dfa27(0x38a)](_0x2a4c8a[_0x1dfa27(0x330)]);})),this[_0x17da8c(0x374)][_0x17da8c(0x4b9)][_0x17da8c(0x334)](_0x4bb16b[_0x17da8c(0x2e2)](this[_0x17da8c(0x2e3)]))[_0x17da8c(0x29e)](_0x1a6c50=>{const _0xc499d1=_0x17da8c;if((_0x1a6c50==null?void 0x0:_0x1a6c50['unitID'])!==this[_0xc499d1(0x40f)])return;const _0x28421d={'eventID':_0x329b63[_0xc499d1(0x3dc)][_0xc499d1(0x2c9)],'data':_0x1a6c50};this[_0xc499d1(0x3b6)](_0x28421d);}),this[_0x17da8c(0x250)](this[_0x17da8c(0x48f)][_0x17da8c(0x4eb)](_0x309464=>{const _0x2fe61c=_0x17da8c;if(_0x309464[_0x2fe61c(0x455)]==null)return;const _0xc40300=_0x309464[_0x2fe61c(0x455)];if(_0x309464['id']!==_0x3fcd1a[_0x2fe61c(0x25e)]['id']||_0xc40300[_0x2fe61c(0x2a3)]!==this['unitID'])return;const _0x546014={'id':_0x2fe61c(0x367),'params':_0xc40300},_0x2381c8=this['cursorInfo'];for(const [_0x4bd3fe,_0x6f4571]of _0x2381c8){const _0x1348a5={'id':_0x2fe61c(0x367),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x6f4571[_0x2fe61c(0x330)]}},_0x2c1d5d=this[_0x2fe61c(0x26d)]['transformMutation'](_0x546014,_0x1348a5,!0x1);if(_0x329b63[_0x2fe61c(0x4de)](_0x2c1d5d))throw _0x2c1d5d[_0x2fe61c(0x4a4)];_0x2381c8[_0x2fe61c(0x2c3)](_0x4bd3fe,{..._0x6f4571,'ranges':_0x2c1d5d[_0x2fe61c(0x22e)][_0x2fe61c(0x455)][_0x2fe61c(0x437)]});}queueMicrotask(()=>{const _0x1e4502=_0x2fe61c;this[_0x1e4502(0x1cf)][_0x1e4502(0x1bd)](_0x2381c8);});})));}[_0x57b986(0x3b6)](_0x446c4a){const _0x48b89d=_0x57b986;var _0x54a7be,_0x5d5ff7;const {memberID:_0x513eac,selection:_0x3051ea}=_0x446c4a['data'],_0x3f9ab5=_0x1d44a5(_0x3051ea),_0x517c38=(_0x5d5ff7=(_0x54a7be=this[_0x48b89d(0x1d3)]['getMember'](this[_0x48b89d(0x40f)],_0x513eac))==null?void 0x0:_0x54a7be['name'])!=null?_0x5d5ff7:_0x48b89d(0x442),_0xf31886={'color':this[_0x48b89d(0x4ae)][_0x48b89d(0x331)](_0x513eac),'name':_0x517c38,'ranges':_0x3f9ab5},_0x1ae99f=this[_0x48b89d(0x25b)];_0x1ae99f[_0x48b89d(0x2c3)](_0x513eac,_0xf31886),this['_cursorInfo$'][_0x48b89d(0x1bd)](_0x1ae99f);}[_0x57b986(0x47e)](_0x572ef3){const _0x317d7d=_0x57b986,{memberID:_0xfebda9}=_0x572ef3['data'],_0x4ce81c=this[_0x317d7d(0x25b)];_0x4ce81c[_0x317d7d(0x391)](_0xfebda9),this[_0x317d7d(0x1cf)]['next'](_0x4ce81c);}[_0x57b986(0x2b9)](){const _0x536c78=_0x57b986;var _0x15b1e;if(this['_online']=!0x0,((_0x15b1e=this[_0x536c78(0x3d9)]['getFocusedUnit']())==null?void 0x0:_0x15b1e[_0x536c78(0x3d4)]())!==this['unitID'])return;const _0x8fc1ee=this[_0x536c78(0x260)][_0x536c78(0x408)](_0x3fcd1a[_0x536c78(0x294)])['getSelections'](),_0x438c9e=_0x8fc1ee==null?void 0x0:_0x8fc1ee['map'](_0x3fcd1a[_0x536c78(0x3a6)]);Array['isArray'](_0x438c9e)&&_0x438c9e[_0x536c78(0x397)]>0x0&&this[_0x536c78(0x38a)](_0x438c9e);}[_0x57b986(0x341)](){const _0x424bcf=_0x57b986;this[_0x424bcf(0x3d8)]=!0x1;}};_0x58774d=_0x8238c6([_0x1d8331(0x2,_0x12925a[_0x57b986(0x42c)](_0x12925a[_0x57b986(0x52f)])),_0x1d8331(0x3,_0x12925a[_0x57b986(0x42c)](_0x2ba255)),_0x1d8331(0x4,_0x12925a['Inject'](_0x4495e7)),_0x1d8331(0x5,_0x12925a[_0x57b986(0x42c)](_0x2f17dc)),_0x1d8331(0x6,_0x329b63[_0x57b986(0x2a0)]),_0x1d8331(0x7,_0x4cdaf4[_0x57b986(0x28e)]),_0x1d8331(0x8,_0x4cdaf4[_0x57b986(0x46c)])],_0x58774d);var _0x1ec62c=Object[_0x57b986(0x1f4)],_0x278236=Object['getOwnPropertyDescriptor'],_0x34b347=(_0x3f1f0e,_0x266fc6,_0x3d2c23,_0x41254f)=>{for(var _0x529959=_0x41254f>0x1?void 0x0:_0x41254f?_0x278236(_0x266fc6,_0x3d2c23):_0x266fc6,_0x34a54b=_0x3f1f0e['length']-0x1,_0x538464;_0x34a54b>=0x0;_0x34a54b--)(_0x538464=_0x3f1f0e[_0x34a54b])&&(_0x529959=(_0x41254f?_0x538464(_0x266fc6,_0x3d2c23,_0x529959):_0x538464(_0x529959))||_0x529959);return _0x41254f&&_0x529959&&_0x1ec62c(_0x266fc6,_0x3d2c23,_0x529959),_0x529959;},_0x151c3d=(_0x234aff,_0x29f9e3)=>(_0xfb2aab,_0x2aaeea)=>_0x29f9e3(_0xfb2aab,_0x2aaeea,_0x234aff);let _0xc3b139=class extends _0x4cdaf4['RxDisposable']{constructor(_0x38d780,_0x493102,_0x3e82ed){const _0x1879ac=_0x57b986;super(),_0x53d09f(this,_0x1879ac(0x389),new Map()),_0x53d09f(this,_0x1879ac(0x386),new _0x4bb16b['Subject']()),(this[_0x1879ac(0x3d9)]=_0x38d780,this[_0x1879ac(0x260)]=_0x493102,this[_0x1879ac(0x31f)]=_0x3e82ed,this['_init']());}[_0x57b986(0x46e)](){const _0x315ac6=_0x57b986;super[_0x315ac6(0x46e)](),this[_0x315ac6(0x386)][_0x315ac6(0x461)](),this[_0x315ac6(0x389)][_0x315ac6(0x2bc)](_0x373edc=>_0x373edc[_0x315ac6(0x46e)]());}['getCollabCursors$'](_0x5f2e19){const _0x377bf0=_0x57b986;return this[_0x377bf0(0x389)][_0x377bf0(0x458)](_0x5f2e19)?this[_0x377bf0(0x389)]['get'](_0x5f2e19)[_0x377bf0(0x535)]:this[_0x377bf0(0x386)]['pipe'](_0x4bb16b[_0x377bf0(0x252)](_0x35fe8b=>_0x35fe8b['unitID']===_0x5f2e19),_0x4bb16b['switchMap'](_0x187381=>_0x187381['cursorInfo$']));}[_0x57b986(0x546)](){const _0x4b09d2=_0x57b986;this['_univerInstanceService'][_0x4b09d2(0x553)](_0x4cdaf4[_0x4b09d2(0x514)][_0x4b09d2(0x1ed)])[_0x4b09d2(0x334)](_0x4bb16b['takeUntil'](this[_0x4b09d2(0x2e3)]))[_0x4b09d2(0x29e)](async _0x168cf6=>{const _0x5742a1=_0x4b09d2,_0x51e4fd=_0x168cf6[_0x5742a1(0x3d4)](),_0x34ff7a=await this[_0x5742a1(0x226)](_0x51e4fd);this[_0x5742a1(0x386)][_0x5742a1(0x1bd)](_0x34ff7a),this[_0x5742a1(0x389)][_0x5742a1(0x2c3)](_0x51e4fd,_0x34ff7a);}),this[_0x4b09d2(0x3d9)]['getTypeOfUnitAdded$'](_0x4cdaf4[_0x4b09d2(0x514)][_0x4b09d2(0x510)])['pipe'](_0x4bb16b[_0x4b09d2(0x2e2)](this['dispose$']))[_0x4b09d2(0x334)](_0x4bb16b[_0x4b09d2(0x252)](_0x1a9540=>!_0x1a9540[_0x4b09d2(0x3d4)]()[_0x4b09d2(0x55a)]('__')))['subscribe'](async _0x153b38=>{const _0x11eb91=_0x4b09d2,_0x12de4e=_0x153b38[_0x11eb91(0x3d4)](),_0xc5105c=await this['_startDocCollabCursor'](_0x12de4e);this[_0x11eb91(0x386)][_0x11eb91(0x1bd)](_0xc5105c),this[_0x11eb91(0x389)][_0x11eb91(0x2c3)](_0x12de4e,_0xc5105c);}),_0x4bb16b[_0x4b09d2(0x468)](this[_0x4b09d2(0x3d9)][_0x4b09d2(0x29d)](_0x4cdaf4[_0x4b09d2(0x514)][_0x4b09d2(0x510)]),this[_0x4b09d2(0x3d9)][_0x4b09d2(0x29d)](_0x4cdaf4['UniverInstanceType']['UNIVER_SHEET']))[_0x4b09d2(0x334)](_0x4bb16b[_0x4b09d2(0x2e2)](this['dispose$']))[_0x4b09d2(0x29e)](_0x25811e=>{const _0x101022=_0x4b09d2,_0x5b627c=_0x25811e[_0x101022(0x3d4)](),_0x45efe9=this[_0x101022(0x389)][_0x101022(0x408)](_0x5b627c);_0x45efe9&&(_0x45efe9[_0x101022(0x46e)](),this[_0x101022(0x389)]['delete'](_0x5b627c));});}async[_0x57b986(0x226)](_0x2c3a54){const _0x4820ea=_0x57b986,_0x2d9d58=await this['_collabSessionService']['requireSession'](_0x2c3a54),_0x33f334=this[_0x4820ea(0x260)][_0x4820ea(0x545)](_0x1d8604,_0x2c3a54,_0x2d9d58);return _0x33f334[_0x4820ea(0x533)](),_0x33f334;}async[_0x57b986(0x46f)](_0x3ea7e5){const _0x25aa5f=_0x57b986,_0x133ada=await this[_0x25aa5f(0x31f)][_0x25aa5f(0x50a)](_0x3ea7e5),_0x49be76=this['_injector'][_0x25aa5f(0x545)](_0x58774d,_0x3ea7e5,_0x133ada);return _0x49be76[_0x25aa5f(0x533)](),_0x49be76;}};_0xc3b139=_0x34b347([_0x4cdaf4[_0x57b986(0x4e2)](_0x4cdaf4[_0x57b986(0x575)]['Starting'],_0xc3b139),_0x151c3d(0x0,_0x4cdaf4[_0x57b986(0x28e)]),_0x151c3d(0x1,_0x12925a['Inject'](_0x12925a['Injector'])),_0x151c3d(0x2,_0x12925a[_0x57b986(0x42c)](_0x3f3314[_0x57b986(0x48c)]))],_0xc3b139);const _0x4f68cc=0x14,_0xebd68b=0xc8,_0x2a6481=0x4,_0xfbf61=0x5;function _0x3a343b(_0xb7b03f,_0x1171d6){const _0x2ac80d=_0x57b986;let {radius:_0x219f61,width:_0x3ba0fd,height:_0x478fa4}=_0x1171d6;_0x219f61=_0x219f61!=null?_0x219f61:0x0,_0x3ba0fd=_0x3ba0fd!=null?_0x3ba0fd:0x1e,_0x478fa4=_0x478fa4!=null?_0x478fa4:0x1e;let _0x47cfdc=0x0,_0x4defb8=0x0,_0x5aec84=0x0;_0x47cfdc=_0x4defb8=_0x5aec84=Math[_0x2ac80d(0x3ef)](_0x219f61,_0x3ba0fd/0x2,_0x478fa4/0x2),_0xb7b03f[_0x2ac80d(0x3e2)](),_0xb7b03f['moveTo'](_0x47cfdc,0x0),_0xb7b03f[_0x2ac80d(0x53e)](_0x3ba0fd-_0x4defb8,0x0),_0xb7b03f[_0x2ac80d(0x336)](_0x3ba0fd-_0x4defb8,_0x4defb8,_0x4defb8,Math['PI']*0x3/0x2,0x0,!0x1),_0xb7b03f[_0x2ac80d(0x53e)](_0x3ba0fd,_0x478fa4-_0x5aec84),_0xb7b03f[_0x2ac80d(0x336)](_0x3ba0fd-_0x5aec84,_0x478fa4-_0x5aec84,_0x5aec84,0x0,Math['PI']/0x2,!0x1),_0xb7b03f[_0x2ac80d(0x53e)](0x0,_0x478fa4),_0xb7b03f[_0x2ac80d(0x53e)](0x0,_0x47cfdc),_0xb7b03f[_0x2ac80d(0x336)](_0x47cfdc,_0x47cfdc,_0x47cfdc,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xb7b03f['closePath'](),_0x1171d6[_0x2ac80d(0x218)]&&(_0xb7b03f['save'](),_0xb7b03f[_0x2ac80d(0x482)]=_0x1171d6[_0x2ac80d(0x218)],_0x1171d6[_0x2ac80d(0x24b)]===_0x2ac80d(0x362)?_0xb7b03f[_0x2ac80d(0x218)](_0x2ac80d(0x362)):_0xb7b03f[_0x2ac80d(0x218)](),_0xb7b03f[_0x2ac80d(0x200)]());}class _0x3b789e extends _0x499dcd[_0x57b986(0x238)]{constructor(_0x3ec0c6,_0x4ad8c6){const _0x195253=_0x57b986;super(_0x3ec0c6,_0x4ad8c6),_0x53d09f(this,_0x195253(0x4fe)),_0x53d09f(this,_0x195253(0x4ac)),(this[_0x195253(0x4fe)]=_0x4ad8c6==null?void 0x0:_0x4ad8c6[_0x195253(0x4fe)],this[_0x195253(0x4ac)]=_0x4ad8c6==null?void 0x0:_0x4ad8c6[_0x195253(0x4ac)]);}static[_0x57b986(0x388)](_0x538eee,_0x34981d){const _0x5d92d6=_0x57b986,{text:_0x4bd135,color:_0x1c7b93}=_0x34981d;_0x538eee[_0x5d92d6(0x41b)](),_0x538eee[_0x5d92d6(0x3d6)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x57f619=_0x538eee[_0x5d92d6(0x556)](_0x4bd135)['width'],_0x3e6f3c=Math[_0x5d92d6(0x3ef)](_0x57f619+0x2*_0x2a6481,_0xebd68b);_0x3a343b(_0x538eee,{'height':_0x4f68cc,'radius':0x4,'width':_0x3e6f3c,'fill':_0x1c7b93,'evented':!0x1}),_0x538eee[_0x5d92d6(0x482)]=_0x5d92d6(0x57b);const _0x2e4509=_0x2a6481,_0x26d6d1=_0x4f68cc-_0xfbf61,_0x5c5883=_0xebd68b-0x2*_0x2a6481;if(_0x57f619>_0x5c5883){let _0x345f1f='',_0xe3fc43=0x0;for(const _0xa16237 of _0x4bd135){const _0x22e21a=_0x538eee[_0x5d92d6(0x556)](_0xa16237)[_0x5d92d6(0x3ae)];if(_0xe3fc43+_0x22e21a<=_0x5c5883-_0x538eee[_0x5d92d6(0x556)](_0x5d92d6(0x56a))[_0x5d92d6(0x3ae)])_0x345f1f+=_0xa16237,_0xe3fc43+=_0x22e21a;else{_0x345f1f+='...';break;}}_0x538eee[_0x5d92d6(0x265)](_0x345f1f,_0x2e4509,_0x26d6d1);}else _0x538eee[_0x5d92d6(0x265)](_0x4bd135,_0x2e4509,_0x26d6d1);_0x538eee[_0x5d92d6(0x200)]();}[_0x57b986(0x3ed)](_0x2e1907){const _0x5969cd=_0x57b986;_0x3b789e[_0x5969cd(0x388)](_0x2e1907,this);}}const _0x57b21d=0x1,_0x3bcd1e=1.5;class _0x13a5fe extends _0x499dcd['Shape']{constructor(_0x920e8d,_0x50ceb1){const _0xdcfc6e=_0x57b986;super(_0x920e8d,_0x50ceb1),_0x53d09f(this,_0xdcfc6e(0x45c)),_0x53d09f(this,_0xdcfc6e(0x2b8),!0x1),_0x53d09f(this,_0xdcfc6e(0x338)),_0x53d09f(this,_0xdcfc6e(0x581),''),_0x53d09f(this,_0xdcfc6e(0x36b),'top'),(_0x50ceb1&&this[_0xdcfc6e(0x55f)](_0x50ceb1),this[_0xdcfc6e(0x48a)][_0xdcfc6e(0x2b7)](()=>this[_0xdcfc6e(0x55f)]({'hovered':!0x0})),this['onPointerLeaveObserver'][_0xdcfc6e(0x2b7)](()=>this[_0xdcfc6e(0x55f)]({'hovered':!0x1})));}['setShapeProps'](_0x170834){const _0x5b9a2c=_0x57b986;var _0x383c95,_0x4abf05,_0x38cff7,_0x1c3ef0,_0x1cafd0;this[_0x5b9a2c(0x45c)]=(_0x383c95=_0x170834[_0x5b9a2c(0x4fe)])!=null?_0x383c95:this['_color'],this[_0x5b9a2c(0x2b8)]=(_0x4abf05=_0x170834[_0x5b9a2c(0x54a)])!=null?_0x4abf05:this[_0x5b9a2c(0x2b8)],this['_range']=(_0x38cff7=_0x170834[_0x5b9a2c(0x2f6)])!=null?_0x38cff7:this[_0x5b9a2c(0x338)],this[_0x5b9a2c(0x581)]=(_0x1c3ef0=_0x170834['name'])!=null?_0x1c3ef0:this['_name'],this[_0x5b9a2c(0x36b)]=(_0x1cafd0=_0x170834[_0x5b9a2c(0x2c4)])!=null?_0x1cafd0:this[_0x5b9a2c(0x36b)],this[_0x5b9a2c(0x406)]({'width':_0x170834[_0x5b9a2c(0x3ae)],'height':_0x170834['height']});}['onMouseMove'](_0x108ba3){const _0x373e03=_0x57b986,{row:_0x48843a,column:_0x3a4717}=_0x108ba3;if(_0x48843a>=this[_0x373e03(0x338)][_0x373e03(0x350)]&&_0x48843a<=this[_0x373e03(0x338)]['endRow']&&_0x3a4717>=this['_range'][_0x373e03(0x2c1)]&&_0x3a4717<=this[_0x373e03(0x338)][_0x373e03(0x3be)]){this[_0x373e03(0x55f)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x57b986(0x322)](_0x2a3bf6){return!0x1;}[_0x57b986(0x3ed)](_0x10dd98){const _0x562a62=_0x57b986;_0x499dcd[_0x562a62(0x382)][_0x562a62(0x388)](_0x10dd98,{'width':this[_0x562a62(0x3ae)],'height':this[_0x562a62(0x1d7)],'strokeWidth':_0x3bcd1e,'stroke':this[_0x562a62(0x45c)],'evented':!0x1}),this['_hovered']&&(_0x10dd98[_0x562a62(0x41b)](),_0x10dd98['transform'](0x1,0x0,0x0,0x1,this[_0x562a62(0x3ae)],this[_0x562a62(0x36b)]===_0x562a62(0x4ee)?0x0:-_0x4f68cc),_0x3b789e['drawWith'](_0x10dd98,{'text':this[_0x562a62(0x581)],'color':this[_0x562a62(0x45c)]}),_0x10dd98['restore']());}}var _0x26fc28=Object[_0x57b986(0x1f4)],_0x1de7c2=Object[_0x57b986(0x405)],_0xfa3bcb=(_0x16a51a,_0x5e4194,_0x353c3e,_0x56fd36)=>{const _0x30f06e=_0x57b986;for(var _0x1035af=_0x56fd36>0x1?void 0x0:_0x56fd36?_0x1de7c2(_0x5e4194,_0x353c3e):_0x5e4194,_0x22d84d=_0x16a51a[_0x30f06e(0x397)]-0x1,_0x4dcd34;_0x22d84d>=0x0;_0x22d84d--)(_0x4dcd34=_0x16a51a[_0x22d84d])&&(_0x1035af=(_0x56fd36?_0x4dcd34(_0x5e4194,_0x353c3e,_0x1035af):_0x4dcd34(_0x1035af))||_0x1035af);return _0x56fd36&&_0x1035af&&_0x26fc28(_0x5e4194,_0x353c3e,_0x1035af),_0x1035af;},_0x10c070=(_0x59405f,_0x28ba51)=>(_0x2490d0,_0x180237)=>_0x28ba51(_0x2490d0,_0x180237,_0x59405f);const _0x44fa1a=0x1389;let _0x662f12=class extends _0x4cdaf4[_0x57b986(0x499)]{constructor(_0x4dd6c0,_0x5c4bfa,_0x46a62f,_0x1aa387){const _0x117b01=_0x57b986;super(),_0x53d09f(this,_0x117b01(0x3a3),new Set()),_0x53d09f(this,_0x117b01(0x431),null),(this['_collabCursorController']=_0x4dd6c0,this[_0x117b01(0x3d9)]=_0x5c4bfa,this['_renderManagerService']=_0x46a62f,this[_0x117b01(0x53c)]=_0x1aa387,this[_0x117b01(0x546)]());}get[_0x57b986(0x3c5)](){const _0x4391f8=_0x57b986;return this[_0x4391f8(0x3df)][_0x4391f8(0x44c)](this['_univerInstanceService'][_0x4391f8(0x395)](_0x4cdaf4[_0x4391f8(0x514)][_0x4391f8(0x1ed)])[_0x4391f8(0x3d4)]())[_0x4391f8(0x40a)](_0x4ad633[_0x4391f8(0x292)]);}get[_0x57b986(0x402)](){const _0x6b5602=_0x57b986;return this[_0x6b5602(0x3d9)][_0x6b5602(0x395)](_0x4cdaf4[_0x6b5602(0x514)]['UNIVER_SHEET'])[_0x6b5602(0x3d4)]();}[_0x57b986(0x546)](){const _0x5303a8=_0x57b986;this[_0x5303a8(0x3c5)][_0x5303a8(0x41e)]['pipe'](_0x4ac749['takeUntil'](this['dispose$']),_0x4ac749[_0x5303a8(0x446)](_0x80139c=>{const _0x4b6b2e=_0x5303a8;if(_0x80139c){const _0x465554=_0x80139c[_0x4b6b2e(0x299)];return _0x4bb16b['combineLatest'](this['_collabCursorController']['getCollabCursors$'](this['_unitId']),this[_0x4b6b2e(0x53c)][_0x4b6b2e(0x2fd)])['pipe'](_0x4ac749[_0x4b6b2e(0x2d2)](([_0x37907d,_0x1ea7c2])=>{const _0x31f1ea=_0x4b6b2e,_0x2d0807=new Map();return _0x37907d[_0x31f1ea(0x2bc)]((_0x1534b4,_0x5732b9)=>{const _0x1ba030=_0x31f1ea;if(_0x1534b4[_0x1ba030(0x1fe)]===_0x465554){const _0x1b8791={..._0x1534b4};_0x1b8791['color']=_0x1ea7c2[_0x1534b4[_0x1ba030(0x4fe)]],_0x2d0807['set'](_0x5732b9,_0x1b8791);}}),{'skeleton':_0x80139c,'cursors':_0x2d0807};}));}return _0x4bb16b['of']({'skeleton':null,'cursors':new Map()});}))[_0x5303a8(0x29e)](({skeleton:_0x86f0bd,cursors:_0xc8f6c9})=>{this['_removeCollabCursors'](),_0x86f0bd&&this['_updateCollabCursors'](_0x86f0bd,_0xc8f6c9);}),this[_0x5303a8(0x3c5)][_0x5303a8(0x41e)][_0x5303a8(0x29e)](_0x282a6d=>{const _0x3b769b=_0x5303a8;if(_0x282a6d==null)return;const {skeleton:_0x445cfd}=_0x282a6d,_0x1c454d=this[_0x3b769b(0x3df)]['getRenderById'](this[_0x3b769b(0x402)]),{scene:_0x2108d4}=_0x1c454d;_0x2108d4[_0x3b769b(0x1c4)][_0x3b769b(0x2b7)](_0x7451ba(_0x1296ee=>{const _0x3eb568=_0x3b769b;var _0x2a13c0,_0x175dc1;const {offsetX:_0x5ee488,offsetY:_0x55a6a8}=_0x1296ee,{x:_0x27df08,y:_0x466cb8}=_0x2108d4['getRelativeCoord'](_0x499dcd[_0x3eb568(0x34a)][_0x3eb568(0x245)]([_0x5ee488,_0x55a6a8])),{scaleX:_0x35c5cd,scaleY:_0x242d74}=_0x2108d4[_0x3eb568(0x223)](),_0x383c0c=_0x2108d4[_0x3eb568(0x1e4)](_0x4ad633[_0x3eb568(0x1d2)][_0x3eb568(0x3f6)]),_0x504db9=_0x2108d4[_0x3eb568(0x20b)](_0x499dcd[_0x3eb568(0x34a)]['FromArray']([_0x27df08,_0x466cb8]),_0x383c0c),_0x36cbd5=_0x445cfd['getCellPositionByOffset'](_0x5ee488,_0x55a6a8,_0x35c5cd,_0x242d74,_0x504db9);((_0x2a13c0=this[_0x3eb568(0x431)])==null?void 0x0:_0x2a13c0[_0x3eb568(0x4be)])===_0x36cbd5[_0x3eb568(0x4be)]&&((_0x175dc1=this[_0x3eb568(0x431)])==null?void 0x0:_0x175dc1[_0x3eb568(0x22d)])===_0x36cbd5[_0x3eb568(0x22d)]||this[_0x3eb568(0x3a3)][_0x3eb568(0x2bc)](_0x5f434c=>{const _0x3b41a7=_0x3eb568;_0x5f434c[_0x3b41a7(0x32b)](_0x36cbd5);});},0x64));});}[_0x57b986(0x319)](_0x3d2864,_0x27f8f1){const _0x20960f=_0x57b986;var _0x2dec24;const _0x3921a=(_0x2dec24=this[_0x20960f(0x3c5)]['getCurrent']())==null?void 0x0:_0x2dec24['skeleton'];if(!_0x3921a)return;const _0x796cc5=this['_getSheetObject']();if(!_0x796cc5)return;this[_0x20960f(0x3a3)][_0x20960f(0x2bc)](_0x1a628=>{const _0xf6ce58=_0x20960f;_0x1a628[_0xf6ce58(0x4cd)]();});const {scene:_0x173cec}=_0x796cc5,_0x116d76=_0x5209e7(Array[_0x20960f(0x1bf)](_0x27f8f1[_0x20960f(0x2c0)]()))[_0x20960f(0x2d2)](_0xf5d97=>{const _0x13a9e8=_0x20960f,{color:_0x24a144,range:_0x442352,name:_0x3a397f,selection:_0x17ad53,sheetID:_0xbeec02}=_0xf5d97,{startColumn:_0x3697bb,startRow:_0x5243ac,endColumn:_0x20271c,endRow:_0x489d89}=_0x442352,_0x48163a=_0x4ad633[_0x13a9e8(0x423)](_0x5243ac,_0x3697bb,_0x173cec,_0x3921a),_0x5bbf5c=_0x4ad633[_0x13a9e8(0x423)](_0x489d89,_0x20271c,_0x173cec,_0x3921a),{columnHeaderHeightAndMarginTop:_0x5e693b}=_0x3921a,{startX:_0x5bd405,startY:_0xc990fc}=_0x48163a,{endX:_0xfe602c,endY:_0x5e005d}=_0x5bbf5c,_0x54ba52=_0xfe602c-_0x5bd405,_0x5c5a36=_0x5e005d-_0xc990fc,_0x4b2437={'labelPosition':_0xc990fc-_0x5e693b>=_0x4f68cc?_0x13a9e8(0x407):'bottom','sheetID':_0xbeec02,'range':_0x442352,'color':_0x24a144,'name':_0x3a397f,'selection':_0x17ad53,'left':_0x5bd405,'top':_0xc990fc,'width':_0x54ba52,'height':_0x5c5a36,'evented':!0x1,'zIndex':_0x44fa1a};return new _0x13a5fe(_0x3a397f,_0x4b2437);});_0x173cec[_0x20960f(0x4d6)](_0x116d76,_0x57b21d),this[_0x20960f(0x3a3)]=new Set(_0x116d76);}[_0x57b986(0x2ea)](){const _0x4c832c=_0x57b986;var _0x2033a9;(_0x2033a9=this[_0x4c832c(0x3a3)])==null||_0x2033a9[_0x4c832c(0x2bc)](_0x1a9456=>_0x1a9456[_0x4c832c(0x46e)]());}[_0x57b986(0x35a)](){const _0x3f079f=_0x57b986;return _0x4ad633[_0x3f079f(0x1d9)](this[_0x3f079f(0x3d9)],this[_0x3f079f(0x3df)]);}};_0x662f12=_0xfa3bcb([_0x4cdaf4[_0x57b986(0x4e2)](_0x4cdaf4[_0x57b986(0x575)][_0x57b986(0x3c2)],_0x662f12),_0x10c070(0x0,_0x12925a[_0x57b986(0x42c)](_0xc3b139)),_0x10c070(0x1,_0x4cdaf4[_0x57b986(0x28e)]),_0x10c070(0x2,_0x499dcd['IRenderManagerService']),_0x10c070(0x3,_0x12925a['Inject'](_0x4cdaf4[_0x57b986(0x3fb)]))],_0x662f12);function _0x5209e7(_0x314ead){const _0x7fd0d6=_0x57b986,_0x360e2e=new Map();return _0x314ead[_0x7fd0d6(0x2bc)](_0x521ae2=>{const _0x2a0644=_0x7fd0d6;if(_0x360e2e[_0x2a0644(0x458)](_0x521ae2['selection'])){const _0x47eb47=_0x360e2e['get'](_0x521ae2[_0x2a0644(0x3ff)]);_0x47eb47[_0x2a0644(0x4a3)]+=',\x20'+_0x521ae2[_0x2a0644(0x4a3)];}else _0x360e2e[_0x2a0644(0x2c3)](_0x521ae2[_0x2a0644(0x3ff)],_0x521ae2);}),Array['from'](_0x360e2e[_0x7fd0d6(0x2c0)]());}var _0x26bda1=function(){const _0x3531d5=_0x57b986;return _0x26bda1=Object['assign']||function(_0x2e04d7){const _0x4ba47e=_0x23df;for(var _0x521406,_0x4b2276=0x1,_0x41bd57=arguments[_0x4ba47e(0x397)];_0x4b2276<_0x41bd57;_0x4b2276++){_0x521406=arguments[_0x4b2276];for(var _0x47b208 in _0x521406)Object[_0x4ba47e(0x3e4)][_0x4ba47e(0x290)][_0x4ba47e(0x42b)](_0x521406,_0x47b208)&&(_0x2e04d7[_0x47b208]=_0x521406[_0x47b208]);}return _0x2e04d7;},_0x26bda1[_0x3531d5(0x3ca)](this,arguments);},_0x4161ba=function(_0x31e40c,_0x4ad031){const _0xa2f1ee=_0x57b986;var _0x22604d={};for(var _0x36c187 in _0x31e40c)Object[_0xa2f1ee(0x3e4)]['hasOwnProperty'][_0xa2f1ee(0x42b)](_0x31e40c,_0x36c187)&&_0x4ad031['indexOf'](_0x36c187)<0x0&&(_0x22604d[_0x36c187]=_0x31e40c[_0x36c187]);if(_0x31e40c!=null&&typeof Object[_0xa2f1ee(0x503)]==_0xa2f1ee(0x3c4)){for(var _0x54581c=0x0,_0x36c187=Object['getOwnPropertySymbols'](_0x31e40c);_0x54581c<_0x36c187[_0xa2f1ee(0x397)];_0x54581c++)_0x4ad031[_0xa2f1ee(0x472)](_0x36c187[_0x54581c])<0x0&&Object[_0xa2f1ee(0x3e4)]['propertyIsEnumerable'][_0xa2f1ee(0x42b)](_0x31e40c,_0x36c187[_0x54581c])&&(_0x22604d[_0x36c187[_0x54581c]]=_0x31e40c[_0x36c187[_0x54581c]]);}return _0x22604d;},_0x53a441=_0x48aaee['forwardRef'](function(_0x1d27d9,_0xb12e85){const _0x184bc6=_0x57b986;var _0x39d457=_0x1d27d9[_0x184bc6(0x279)],_0x325260=_0x1d27d9['id'],_0x3cd783=_0x1d27d9[_0x184bc6(0x1c3)],_0x473cac=_0x1d27d9[_0x184bc6(0x232)],_0x37c2f4=_0x4161ba(_0x1d27d9,['icon','id',_0x184bc6(0x1c3),_0x184bc6(0x232)]),_0x14c3e8='univerjs-icon\x20univerjs-icon-'['concat'](_0x325260,'\x20')[_0x184bc6(0x3ab)](_0x3cd783||'')[_0x184bc6(0x576)](),_0x408bf6=_0x48aaee['useRef']('_'[_0x184bc6(0x3ab)](_0x5b0f1a()));return _0x3db31e(_0x39d457,''[_0x184bc6(0x3ab)](_0x325260),{'defIds':_0x39d457[_0x184bc6(0x53f)],'idSuffix':_0x408bf6['current']},_0x26bda1({'ref':_0xb12e85,'className':_0x14c3e8},_0x37c2f4),_0x473cac);});function _0x3db31e(_0xbf30fd,_0x3052e0,_0x281ce4,_0x119a76,_0x53ce74){const _0x11b538=_0x57b986;return _0x48aaee[_0x11b538(0x263)](_0xbf30fd['tag'],_0x26bda1(_0x26bda1({'key':_0x3052e0},_0x1079da(_0xbf30fd,_0x281ce4,_0x53ce74)),_0x119a76),(_0x5c9037(_0xbf30fd,_0x281ce4)['children']||[])['map'](function(_0xee3b9a,_0x5a041b){const _0x5866bf=_0x11b538;return _0x3db31e(_0xee3b9a,''['concat'](_0x3052e0,'-')[_0x5866bf(0x3ab)](_0xbf30fd[_0x5866bf(0x411)],'-')['concat'](_0x5a041b),_0x281ce4,void 0x0,_0x53ce74);}));}function _0x1079da(_0x3d158f,_0x300329,_0x61fa23){const _0x15c5f6=_0x57b986;var _0x38afbb=_0x26bda1({},_0x3d158f[_0x15c5f6(0x483)]);_0x61fa23!=null&&_0x61fa23[_0x15c5f6(0x4ad)]&&_0x38afbb[_0x15c5f6(0x218)]===_0x15c5f6(0x4ad)&&(_0x38afbb[_0x15c5f6(0x218)]=_0x61fa23[_0x15c5f6(0x4ad)]);var _0x462c02=_0x300329[_0x15c5f6(0x53f)];return!_0x462c02||_0x462c02[_0x15c5f6(0x397)]===0x0||(_0x3d158f['tag']===_0x15c5f6(0x4e9)&&_0x38afbb['xlink:href']&&(_0x38afbb[_0x15c5f6(0x224)]=_0x38afbb[_0x15c5f6(0x224)]+_0x300329[_0x15c5f6(0x4c0)]),Object[_0x15c5f6(0x563)](_0x38afbb)[_0x15c5f6(0x2bc)](function(_0x5d14c8){const _0x24fb23=_0x15c5f6;var _0x1b279e=_0x5d14c8[0x0],_0x11a857=_0x5d14c8[0x1];typeof _0x11a857==_0x24fb23(0x36c)&&(_0x38afbb[_0x1b279e]=_0x11a857[_0x24fb23(0x2ae)](/url\(#(.*)\)/,'url(#$1'[_0x24fb23(0x3ab)](_0x300329[_0x24fb23(0x4c0)],')')));})),_0x38afbb;}function _0x5c9037(_0x258ea7,_0x226c1e){const _0x370e16=_0x57b986;var _0x588559,_0x4a689d=_0x226c1e[_0x370e16(0x53f)];return!_0x4a689d||_0x4a689d[_0x370e16(0x397)]===0x0?_0x258ea7:_0x258ea7['tag']===_0x370e16(0x246)&&(!((_0x588559=_0x258ea7[_0x370e16(0x3fc)])===null||_0x588559===void 0x0)&&_0x588559[_0x370e16(0x397)])?_0x26bda1(_0x26bda1({},_0x258ea7),{'children':_0x258ea7[_0x370e16(0x3fc)][_0x370e16(0x2d2)](function(_0x40003e){const _0x7eddde=_0x370e16;return typeof _0x40003e[_0x7eddde(0x483)]['id']==_0x7eddde(0x36c)&&_0x4a689d&&_0x4a689d[_0x7eddde(0x472)](_0x40003e[_0x7eddde(0x483)]['id'])>-0x1?_0x26bda1(_0x26bda1({},_0x40003e),{'attrs':_0x26bda1(_0x26bda1({},_0x40003e['attrs']),{'id':_0x40003e['attrs']['id']+_0x226c1e[_0x7eddde(0x4c0)]})}):_0x40003e;})}):_0x258ea7;}function _0x5b0f1a(){const _0xae60d9=_0x57b986;return Math['random']()[_0xae60d9(0x3cb)](0x24)[_0xae60d9(0x258)](0x2,0x8);}_0x53a441['displayName']=_0x57b986(0x2a6);var _0x33dbaa={'tag':'svg','attrs':{'fill':'none','viewBox':_0x57b986(0x31b),'width':_0x57b986(0x4b4),'height':_0x57b986(0x4b4)},'children':[{'tag':'g','attrs':{'clipPath':_0x57b986(0x2dd)},'children':[{'tag':_0x57b986(0x422),'attrs':{'stroke':_0x57b986(0x33d),'d':_0x57b986(0x52a),'strokeLinecap':_0x57b986(0x268),'strokeLinejoin':_0x57b986(0x268),'strokeWidth':1.2}}]},{'tag':_0x57b986(0x246),'attrs':{},'children':[{'tag':_0x57b986(0x2ad),'attrs':{'id':_0x57b986(0x1e9)},'children':[{'tag':_0x57b986(0x422),'attrs':{'fill':_0x57b986(0x484),'d':_0x57b986(0x304)}}]}]}],'defIds':[_0x57b986(0x1e9)]},_0x5b0903=_0x48aaee[_0x57b986(0x477)](function(_0x1843a1,_0x26a999){const _0x1e96cf=_0x57b986;return _0x48aaee[_0x1e96cf(0x263)](_0x53a441,Object['assign']({},_0x1843a1,{'id':_0x1e96cf(0x53a),'ref':_0x26a999,'icon':_0x33dbaa}));});_0x5b0903['displayName']=_0x57b986(0x57a);var _0x2eb9dd={'tag':_0x57b986(0x3b7),'attrs':{'fill':_0x57b986(0x4b0),'viewBox':_0x57b986(0x1c0),'width':_0x57b986(0x4b4),'height':_0x57b986(0x4b4)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x57b986(0x422),'attrs':{'stroke':'currentColor','d':_0x57b986(0x3eb),'strokeLinecap':_0x57b986(0x268),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x57b986(0x246),'attrs':{},'children':[{'tag':_0x57b986(0x2ad),'attrs':{'id':_0x57b986(0x49f)},'children':[{'tag':_0x57b986(0x422),'attrs':{'fill':'#fff','d':_0x57b986(0x304),'transform':'translate(.97)'}}]}]}],'defIds':[_0x57b986(0x49f)]},_0x5433ca=_0x48aaee[_0x57b986(0x477)](function(_0x132b27,_0x1cb72c){const _0x34da01=_0x57b986;return _0x48aaee[_0x34da01(0x263)](_0x53a441,Object['assign']({},_0x132b27,{'id':'on-line-single','ref':_0x1cb72c,'icon':_0x2eb9dd}));});_0x5433ca[_0x57b986(0x1d8)]=_0x57b986(0x3ba);const _0x42079e={'onlineStatusIcon':_0x57b986(0x3f5),'onlineStatusTitle':_0x57b986(0x471),'onlineStatus':_0x57b986(0x30b),'online':_0x57b986(0x2a5),'offline':_0x57b986(0x544)};function _0x2e14f1(_0x27a621){const _0x27bd9a=_0x57b986;switch(_0x27a621){case _0x5185a4[_0x27bd9a(0x26f)]:return'collabStatus.offline';case _0x5185a4[_0x27bd9a(0x1de)]:return _0x27bd9a(0x509);case _0x5185a4[_0x27bd9a(0x47b)]:return _0x27bd9a(0x57e);case _0x5185a4[_0x27bd9a(0x20e)]:return _0x27bd9a(0x490);case _0x5185a4[_0x27bd9a(0x2f7)]:case _0x5185a4['AWAITING']:case _0x5185a4[_0x27bd9a(0x30f)]:return _0x27bd9a(0x2de);case _0x5185a4[_0x27bd9a(0x1c6)]:return _0x27bd9a(0x40b);}}function _0x3c74c6(_0x267031){const _0xaabfc0=_0x57b986,{status$:_0x48da3b}=_0x267031,_0x374ca1=_0x4ff465[_0xaabfc0(0x44a)](_0x48da3b,_0x5185a4[_0xaabfc0(0x20e)]),_0x48eacb=_0x263934['useDependency'](_0x4cdaf4[_0xaabfc0(0x502)]),_0xe51bd5=_0x374ca1!==_0x5185a4[_0xaabfc0(0x26f)],_0x312b27=_0x48eacb['t'](_0x2e14f1(_0x374ca1)),_0x14a81a=_0x504a8c(_0x42079e['onlineStatus'],{[_0x42079e[_0xaabfc0(0x3a4)]]:_0xe51bd5,[_0x42079e[_0xaabfc0(0x4f8)]]:!_0xe51bd5}),_0x42a758=_0xe51bd5?_0x48aaee[_0xaabfc0(0x263)](_0x5433ca,null):_0x48aaee[_0xaabfc0(0x263)](_0x5b0903,null);return _0x48aaee['createElement'](_0xaabfc0(0x4d2),{'className':_0x14a81a},_0x48aaee['createElement']('div',{'className':_0x42079e[_0xaabfc0(0x297)]},_0x42a758),_0x48aaee[_0xaabfc0(0x263)](_0xaabfc0(0x4d2),{'className':_0x42079e[_0xaabfc0(0x1e0)]},_0x312b27));}var _0x14a16f=Object[_0x57b986(0x1f4)],_0x4b60d9=Object[_0x57b986(0x405)],_0x7c8c61=(_0x298747,_0x326757,_0x3713e2,_0x5a42ea)=>{for(var _0x15fcee=_0x5a42ea>0x1?void 0x0:_0x5a42ea?_0x4b60d9(_0x326757,_0x3713e2):_0x326757,_0x4947d8=_0x298747['length']-0x1,_0x5a758a;_0x4947d8>=0x0;_0x4947d8--)(_0x5a758a=_0x298747[_0x4947d8])&&(_0x15fcee=(_0x5a42ea?_0x5a758a(_0x326757,_0x3713e2,_0x15fcee):_0x5a758a(_0x15fcee))||_0x15fcee);return _0x5a42ea&&_0x15fcee&&_0x14a16f(_0x326757,_0x3713e2,_0x15fcee),_0x15fcee;},_0x443cd5=(_0x51da91,_0x5842b3)=>(_0x1c0a52,_0x3818cf)=>_0x5842b3(_0x1c0a52,_0x3818cf,_0x51da91);_0x3f3314[_0x57b986(0x3e9)]=class extends _0x4cdaf4[_0x57b986(0x310)]{constructor(_0x20ff88,_0x28c2cd,_0x102633,_0xccfe13){const _0x449e25=_0x57b986;super(),_0x53d09f(this,_0x449e25(0x488),new _0x4bb16b[(_0x449e25(0x2e9))](_0x5185a4[_0x449e25(0x20e)])),(this[_0x449e25(0x3d9)]=_0x20ff88,this['_uiPartsService']=_0x28c2cd,this[_0x449e25(0x260)]=_0x102633,this[_0x449e25(0x1d1)]=_0xccfe13,this['_initStatusComponent'](),this[_0x449e25(0x24a)]());}['_initStatusComponent'](){const _0x528d71=_0x57b986;this[_0x528d71(0x250)](this[_0x528d71(0x213)]['registerComponent'](_0x4ff465['BuiltInUIPart']['HEADER_MENU'],()=>_0x263934[_0x528d71(0x2fa)](_0x496371({'status$':this[_0x528d71(0x488)][_0x528d71(0x534)]()}),this[_0x528d71(0x260)])));}[_0x57b986(0x24a)](){const _0x1968c3=_0x57b986;this[_0x1968c3(0x250)](_0x4cdaf4[_0x1968c3(0x56b)](this[_0x1968c3(0x3d9)]['focused$']['pipe'](_0x4bb16b['switchMap'](()=>{const _0x2f38b0=_0x1968c3,_0x3fc2ab=this[_0x2f38b0(0x3d9)][_0x2f38b0(0x44d)]();return _0x3fc2ab?this[_0x2f38b0(0x1d1)][_0x2f38b0(0x2df)](_0x3fc2ab[_0x2f38b0(0x3d4)]()):_0x4bb16b['of'](null);}),_0x4bb16b[_0x1968c3(0x446)](_0x47f028=>_0x47f028?_0x47f028[_0x1968c3(0x37b)]:_0x4bb16b['of'](_0x5185a4[_0x1968c3(0x20e)])))[_0x1968c3(0x29e)](_0xdac4cd=>{const _0x37e313=_0x1968c3;this[_0x37e313(0x488)][_0x37e313(0x1bd)](_0xdac4cd);})));}},_0x3f3314[_0x57b986(0x3e9)]=_0x7c8c61([_0x4cdaf4[_0x57b986(0x4e2)](_0x4cdaf4[_0x57b986(0x575)]['Starting'],_0x3f3314[_0x57b986(0x3e9)]),_0x443cd5(0x0,_0x4cdaf4[_0x57b986(0x28e)]),_0x443cd5(0x1,_0x4ff465[_0x57b986(0x4fd)]),_0x443cd5(0x2,_0x12925a[_0x57b986(0x42c)](_0x12925a[_0x57b986(0x52f)])),_0x443cd5(0x3,_0x12925a['Inject'](_0x3f3314['CollaborationController']))],_0x3f3314['DesktopCollaborationStatusDisplayController']);function _0x496371(_0x1a37da){const {status$:_0x3bbd27}=_0x1a37da;return function(){const _0x39898e=_0x23df;return _0x48aaee[_0x39898e(0x263)](_0x3c74c6,{'status$':_0x3bbd27});};}const _0x13d820=_0x12925a[_0x57b986(0x249)](_0x57b986(0x3a9));var _0x4b7784=Object[_0x57b986(0x1f4)],_0x4cf05e=Object[_0x57b986(0x405)],_0x44a63d=(_0x574b65,_0x4a11e4,_0x34167d,_0x51ac98)=>{for(var _0x36267b=_0x51ac98>0x1?void 0x0:_0x51ac98?_0x4cf05e(_0x4a11e4,_0x34167d):_0x4a11e4,_0x45ce81=_0x574b65['length']-0x1,_0x318438;_0x45ce81>=0x0;_0x45ce81--)(_0x318438=_0x574b65[_0x45ce81])&&(_0x36267b=(_0x51ac98?_0x318438(_0x4a11e4,_0x34167d,_0x36267b):_0x318438(_0x36267b))||_0x36267b);return _0x51ac98&&_0x36267b&&_0x4b7784(_0x4a11e4,_0x34167d,_0x36267b),_0x36267b;},_0x45c89f=(_0x29f295,_0x12b6ed)=>(_0x1cbf72,_0x52536f)=>_0x12b6ed(_0x1cbf72,_0x52536f,_0x29f295);_0x3f3314[_0x57b986(0x393)]=class extends _0x4cdaf4[_0x57b986(0x499)]{constructor(_0x7b0fae,_0x3165d6,_0x55fbfc,_0x45a134,_0x444a0d,_0x255db6){const _0x2db738=_0x57b986;super(),this[_0x2db738(0x1e6)]=_0x7b0fae,this[_0x2db738(0x314)]=_0x3165d6,this['_commandService']=_0x55fbfc,this[_0x2db738(0x2ca)]=_0x45a134,this[_0x2db738(0x508)]=_0x444a0d,_0x255db6?_0x255db6==null||_0x255db6[_0x2db738(0x447)]()['then'](()=>this['_init']()):(this[_0x2db738(0x314)][_0x2db738(0x1fa)](_0x2db738(0x580),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x57b986(0x546)](){const _0x101941=_0x57b986,_0x278cdb=this[_0x101941(0x1e6)][_0x101941(0x2d7)](_0x101941(0x4e8)),_0x4b657d=this[_0x101941(0x1e6)]['getParam'](_0x101941(0x239));if(!_0x278cdb||!_0x4b657d){this['_logService'][_0x101941(0x1fa)](_0x101941(0x580),_0x101941(0x1f1));return;}switch(Number(_0x4b657d)){case _0x1f330d[_0x101941(0x1ed)]:{const _0x55737e=await this[_0x101941(0x47a)](_0x278cdb);this['_setupSubUnitSync'](_0x55737e);break;}case _0x1f330d[_0x101941(0x510)]:{await this['_loadDoc'](_0x278cdb);break;}default:{this[_0x101941(0x314)]['error']('[DataLoaderController]',_0x101941(0x4f6));break;}}}async[_0x57b986(0x3d5)](_0x5c0987){const _0x23d69d=_0x57b986;await this[_0x23d69d(0x470)](_0x5c0987),_0x5c0987[_0x23d69d(0x497)][_0x23d69d(0x334)](_0x4bb16b[_0x23d69d(0x2e2)](this[_0x23d69d(0x2e3)]))[_0x23d69d(0x29e)](_0x27bd57=>{const _0x3bc0ba=_0x23d69d;_0x27bd57&&this[_0x3bc0ba(0x3aa)](_0x27bd57);}),this[_0x23d69d(0x1e6)][_0x23d69d(0x448)][_0x23d69d(0x334)](_0x4bb16b[_0x23d69d(0x2e2)](this[_0x23d69d(0x2e3)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x5c0987));}[_0x57b986(0x3aa)](_0x8ad2ce,_0x195ed5=!0x1){const _0x26534c=_0x57b986,_0x33d50b=this['_urlService'][_0x26534c(0x2d7)](_0x26534c(0x3e7));_0x8ad2ce[_0x26534c(0x2c5)]()!==_0x33d50b&&this[_0x26534c(0x1e6)][_0x26534c(0x257)](_0x26534c(0x3e7),_0x8ad2ce[_0x26534c(0x2c5)](),_0x195ed5);}async[_0x57b986(0x470)](_0x3d101f){const _0x43c81a=_0x57b986;var _0x4cf631;const _0x27ce53=this[_0x43c81a(0x1e6)][_0x43c81a(0x2d7)](_0x43c81a(0x3e7));if(!_0x27ce53||!_0x3d101f[_0x43c81a(0x45f)](_0x27ce53)){this['_updateURLWithCurrentState'](_0x3d101f['ensureActiveSheet'](),!0x0);return;}((_0x4cf631=_0x3d101f['getActiveSheet']())==null?void 0x0:_0x4cf631[_0x43c81a(0x2c5)]())!==_0x27ce53&&await this[_0x43c81a(0x48f)][_0x43c81a(0x21f)](_0x3a01f6[_0x43c81a(0x32f)]['id'],{'unitId':_0x3d101f[_0x43c81a(0x3d4)](),'subUnitId':_0x27ce53});}async[_0x57b986(0x47a)](_0x2a1d35){const _0x41d944=_0x57b986;let _0x33e933=0x0;const _0x1cdb71=await this['_localCacheService'][_0x41d944(0x1d5)](_0x2a1d35);return _0x1cdb71&&(_0x1cdb71[_0x41d944(0x4c9)]||_0x1cdb71[_0x41d944(0x526)][_0x41d944(0x397)]!==0x0)&&(_0x33e933=_0x1cdb71[_0x41d944(0x3da)]),_0x33e933===0x0&&this[_0x41d944(0x314)][_0x41d944(0x1fa)]('[DataLoaderController]',_0x41d944(0x1ee)),this[_0x41d944(0x508)]['loadSheet'](_0x2a1d35,_0x33e933);}async[_0x57b986(0x43a)](_0x34456f){const _0x1d95b8=_0x57b986;let _0x4ae1=0x0;const _0x318d11=await this[_0x1d95b8(0x2ca)][_0x1d95b8(0x1d5)](_0x34456f);return _0x318d11&&(_0x318d11['awaitingChangeset']||_0x318d11[_0x1d95b8(0x526)][_0x1d95b8(0x397)]!==0x0)&&(_0x4ae1=_0x318d11['rev']),_0x4ae1===0x0&&this[_0x1d95b8(0x314)][_0x1d95b8(0x1fa)](_0x1d95b8(0x580),_0x1d95b8(0x1ee)),this[_0x1d95b8(0x508)][_0x1d95b8(0x416)](_0x34456f,_0x4ae1);}},_0x3f3314[_0x57b986(0x393)]=_0x44a63d([_0x4cdaf4[_0x57b986(0x4e2)](_0x4cdaf4[_0x57b986(0x575)][_0x57b986(0x2b6)],_0x3f3314[_0x57b986(0x393)]),_0x45c89f(0x0,_0x13d820),_0x45c89f(0x1,_0x4cdaf4[_0x57b986(0x41c)]),_0x45c89f(0x2,_0x4cdaf4[_0x57b986(0x46c)]),_0x45c89f(0x3,_0x12925a[_0x57b986(0x42c)](_0x3f3314[_0x57b986(0x361)])),_0x45c89f(0x4,_0x12925a[_0x57b986(0x42c)](_0x329b63[_0x57b986(0x390)])),_0x45c89f(0x5,_0x12925a[_0x57b986(0x3ec)](_0x10d289[_0x57b986(0x343)]))],_0x3f3314[_0x57b986(0x393)]);var _0x27ee64=Object['defineProperty'],_0x5a34ba=Object[_0x57b986(0x405)],_0x32b40d=(_0x19411a,_0x343946,_0x13da9c,_0x38c581)=>{const _0x53996d=_0x57b986;for(var _0x53d2c6=_0x38c581>0x1?void 0x0:_0x38c581?_0x5a34ba(_0x343946,_0x13da9c):_0x343946,_0x35bf91=_0x19411a[_0x53996d(0x397)]-0x1,_0x4c00e7;_0x35bf91>=0x0;_0x35bf91--)(_0x4c00e7=_0x19411a[_0x35bf91])&&(_0x53d2c6=(_0x38c581?_0x4c00e7(_0x343946,_0x13da9c,_0x53d2c6):_0x4c00e7(_0x53d2c6))||_0x53d2c6);return _0x38c581&&_0x53d2c6&&_0x27ee64(_0x343946,_0x13da9c,_0x53d2c6),_0x53d2c6;},_0x181d20=(_0x59f4c4,_0x8e1b01)=>(_0x55caf5,_0x2a92f8)=>_0x8e1b01(_0x55caf5,_0x2a92f8,_0x59f4c4);const _0x5bfe7c=_0x57b986(0x421),_0x262617=_0x57b986(0x44e);let _0x3d3abe=class extends _0x4cdaf4['Disposable']{constructor(_0x4024f8,_0x55bdda){const _0x439f5c=_0x57b986;super(),this[_0x439f5c(0x3d9)]=_0x4024f8,this[_0x439f5c(0x323)]=_0x55bdda,this[_0x439f5c(0x546)]();}[_0x57b986(0x546)](){const _0x60b3bb=_0x57b986;this[_0x60b3bb(0x250)](_0x4cdaf4[_0x60b3bb(0x56b)](this[_0x60b3bb(0x3d9)]['focused$'][_0x60b3bb(0x29e)](()=>{const _0x3ac3a3=_0x60b3bb;var _0x5c975f;const _0x16fbff=this[_0x3ac3a3(0x3d9)]['getFocusedUnit']();let _0x255a19=(_0x5c975f=this['_configService'][_0x3ac3a3(0x51f)](_0x5bfe7c))!=null?_0x5c975f:_0x262617;_0x16fbff instanceof _0x4cdaf4[_0x3ac3a3(0x28b)]&&(_0x255a19=_0x16fbff['name']),document[_0x3ac3a3(0x308)]=_0x255a19;})));}};_0x3d3abe=_0x32b40d([_0x4cdaf4['OnLifecycle'](_0x4cdaf4[_0x57b986(0x575)][_0x57b986(0x2da)],_0x3d3abe),_0x181d20(0x0,_0x4cdaf4[_0x57b986(0x28e)]),_0x181d20(0x1,_0x4cdaf4[_0x57b986(0x4f1)])],_0x3d3abe);var _0x317031=Object['defineProperty'],_0x334248=Object[_0x57b986(0x405)],_0x21906b=(_0x36ed9c,_0x596b6c,_0x3757eb,_0x3c1757)=>{const _0x1e449b=_0x57b986;for(var _0x5eeb79=_0x3c1757>0x1?void 0x0:_0x3c1757?_0x334248(_0x596b6c,_0x3757eb):_0x596b6c,_0x3c67ac=_0x36ed9c[_0x1e449b(0x397)]-0x1,_0x685c7;_0x3c67ac>=0x0;_0x3c67ac--)(_0x685c7=_0x36ed9c[_0x3c67ac])&&(_0x5eeb79=(_0x3c1757?_0x685c7(_0x596b6c,_0x3757eb,_0x5eeb79):_0x685c7(_0x5eeb79))||_0x5eeb79);return _0x3c1757&&_0x5eeb79&&_0x317031(_0x596b6c,_0x3757eb,_0x5eeb79),_0x5eeb79;},_0x35fd6a=(_0x148fb4,_0x1b4692)=>(_0xdcf5a7,_0x2175bf)=>_0x1b4692(_0xdcf5a7,_0x2175bf,_0x148fb4);let _0x80c624=class{constructor(_0x6eac25,_0x1e7c4a){const _0x739738=_0x57b986;this[_0x739738(0x323)]=_0x6eac25,this[_0x739738(0x522)]=_0x1e7c4a;}async['getUnitOnRev'](_0xdad24d,_0x34d01d){const _0x44ee6d=_0x57b986;var _0x237886;const {unitID:_0x151db8,type:_0x279456,revision:_0x120141=0x0}=_0x34d01d,_0x14c5d3=this[_0x44ee6d(0x54d)]()+'/'+_0x279456+_0x44ee6d(0x27a)+_0x151db8+_0x44ee6d(0x401)+(_0x120141===0x1?0x0:_0x120141),_0x4259f7=(await this['_httpService'][_0x44ee6d(0x408)](_0x14c5d3))[_0x44ee6d(0x559)],_0x6e0bff=(_0x237886=_0x4259f7[_0x44ee6d(0x33c)])==null?void 0x0:_0x237886[_0x44ee6d(0x4e5)];if(_0x6e0bff){const _0x5a3f33=_0x6e0bff==null?void 0x0:_0x6e0bff[_0x44ee6d(0x4dc)],_0x56210f=_0x4cdaf4[_0x44ee6d(0x26c)][_0x44ee6d(0x317)](_0x4cdaf4[_0x44ee6d(0x1fb)](_0x5a3f33));_0x6e0bff[_0x44ee6d(0x4dc)]=_0x56210f,Object[_0x44ee6d(0x563)](_0x6e0bff['sheets'])[_0x44ee6d(0x2bc)](([,_0x4aeacd])=>{const _0x40a37f=_0x44ee6d,_0xe95f4e=_0x4aeacd[_0x40a37f(0x4dc)],_0x47e368=_0x4cdaf4[_0x40a37f(0x26c)][_0x40a37f(0x317)](_0x4cdaf4['b64DecodeUnicode'](_0xe95f4e));_0x4aeacd[_0x40a37f(0x4dc)]=_0x47e368;});}return _0x4259f7;}async[_0x57b986(0x3b1)](_0x73ef6e,_0x566cfc){const _0x1fb946=_0x57b986,{unitID:_0x13ddfd,type:_0x268a10,blockID:_0x46a642}=_0x566cfc,_0x225308=this[_0x1fb946(0x241)]()+'/'+_0x268a10+_0x1fb946(0x27a)+_0x13ddfd+_0x1fb946(0x229)+_0x46a642;return(await this[_0x1fb946(0x522)][_0x1fb946(0x408)](_0x225308))['body'];}async['fetchMissingChangesets'](_0xda075b,_0x36a153){const _0xf48bd1=_0x57b986,{unitID:_0x447277,type:_0x533b5e,from:_0x1ade72,to:_0x31d8cf}=_0x36a153,_0x439e29=this['_getAPIPrefix']()+'/'+_0x533b5e+'/unit/'+_0x447277+_0xf48bd1(0x552)+_0x1ade72+_0xf48bd1(0x4e3)+_0x31d8cf;return(await this['_httpService'][_0xf48bd1(0x408)](_0x439e29))[_0xf48bd1(0x559)];}[_0x57b986(0x54d)](){const _0x506548=_0x57b986;var _0x31409e;return(_0x31409e=this['_configService']['getConfig'](_0x5cc7aa))!=null?_0x31409e:this[_0x506548(0x241)]();}[_0x57b986(0x241)](){const _0x12f44c=_0x57b986;var _0x3f4f8e;return(_0x3f4f8e=this[_0x12f44c(0x323)][_0x12f44c(0x51f)](_0x514f86))!=null?_0x3f4f8e:_0x1b973b;}async[_0x57b986(0x3ac)](_0x12b7b7,_0xd07893){const _0x13341c=_0x57b986,_0x136828=_0x13341c(0x262)+_0xd07893[_0x13341c(0x239)]+_0x13341c(0x27a)+_0xd07893[_0x13341c(0x40f)]+_0x13341c(0x1f2);return(await this[_0x13341c(0x522)]['get'](_0x136828,{'params':{'resourceId':JSON[_0x13341c(0x528)](_0xd07893['resourceIDs'])}}))[_0x13341c(0x559)];}[_0x57b986(0x410)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x57b986(0x4f9)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x57b986(0x286)](){const _0x2a0bb9=_0x57b986;throw new Error(_0x2a0bb9(0x28d));}};_0x80c624=_0x21906b([_0x35fd6a(0x0,_0x4cdaf4['IConfigService']),_0x35fd6a(0x1,_0x12925a[_0x57b986(0x42c)](_0xfde0ab[_0x57b986(0x280)]))],_0x80c624);var _0x29fc95=Object['defineProperty'],_0x49a13b=Object[_0x57b986(0x405)],_0x1661f6=(_0x49f7b8,_0x10fa6f,_0x3ac553,_0x2ca10a)=>{const _0x4f5323=_0x57b986;for(var _0x5c26ca=_0x2ca10a>0x1?void 0x0:_0x2ca10a?_0x49a13b(_0x10fa6f,_0x3ac553):_0x10fa6f,_0x372ec4=_0x49f7b8[_0x4f5323(0x397)]-0x1,_0x29df94;_0x372ec4>=0x0;_0x372ec4--)(_0x29df94=_0x49f7b8[_0x372ec4])&&(_0x5c26ca=(_0x2ca10a?_0x29df94(_0x10fa6f,_0x3ac553,_0x5c26ca):_0x29df94(_0x5c26ca))||_0x5c26ca);return _0x2ca10a&&_0x5c26ca&&_0x29fc95(_0x10fa6f,_0x3ac553,_0x5c26ca),_0x5c26ca;},_0x510b6e=(_0x18b60e,_0x3d3451)=>(_0x34d958,_0x54344c)=>_0x3d3451(_0x34d958,_0x54344c,_0x18b60e);let _0x4e679e=class extends _0x4cdaf4[_0x57b986(0x1ff)]{constructor(_0x317aa7,_0x473704,_0x190bef,_0x208cad,_0x26d0be){const _0x5e0ad6=_0x57b986;super(_0x317aa7,_0x473704,_0x190bef),this['_transformService']=_0x208cad,this[_0x5e0ad6(0x314)]=_0x26d0be;}[_0x57b986(0x39a)](_0xe90cec,_0xb46947){const _0x219a80=_0x57b986,_0x3dbd1e=this[_0x219a80(0x371)](_0xe90cec);if(_0x3dbd1e)try{const _0x5dcc4e=this['_transformStack'](_0x3dbd1e,_0xb46947);this[_0x219a80(0x356)](_0xe90cec,_0x5dcc4e);}catch(_0x496498){this[_0x219a80(0x314)]['error'](_0x219a80(0x1da),_0x496498),this[_0x219a80(0x53b)](_0xe90cec);}const _0x2ad783=this['_getRedoStack'](_0xe90cec);if(_0x2ad783)try{const _0x1744c3=this[_0x219a80(0x278)](_0x2ad783,_0xb46947);this[_0x219a80(0x3fa)](_0xe90cec,_0x1744c3);}catch(_0x13f924){this[_0x219a80(0x314)][_0x219a80(0x4a4)](_0x13f924),this['_clearRedo'](_0xe90cec);}}['_clearUndo'](_0x3bd598){const _0x3eec6d=_0x57b986,_0x98e545=this[_0x3eec6d(0x371)](_0x3bd598);_0x98e545&&(_0x98e545['length']=0x0,this[_0x3eec6d(0x4ff)]());}[_0x57b986(0x476)](_0x51a109){const _0x2d433f=_0x57b986,_0x3cf5c6=this[_0x2d433f(0x378)](_0x51a109);_0x3cf5c6&&(_0x3cf5c6[_0x2d433f(0x397)]=0x0,this[_0x2d433f(0x4ff)]());}[_0x57b986(0x356)](_0x52a277,_0x43ecee){const _0x309d76=_0x57b986;this[_0x309d76(0x22c)][_0x309d76(0x2c3)](_0x52a277,_0x43ecee),this['_updateStatus']();}[_0x57b986(0x3fa)](_0x13951b,_0x2a718e){const _0x2a2749=_0x57b986;this['_redoStacks'][_0x2a2749(0x2c3)](_0x13951b,_0x2a718e),this['_updateStatus']();}[_0x57b986(0x278)](_0x446d04,_0x9696c){const _0x29ea5f=_0x57b986,_0x31bc99=[];let _0x5408eb=_0x9696c,_0x2a37cb=_0x9696c;for(let _0x6834b1=_0x446d04[_0x29ea5f(0x397)]-0x1;_0x6834b1>=0x0;_0x6834b1--){const {unitID:_0x3c431d,undoMutations:_0x1bf441,redoMutations:_0x360bba}=_0x446d04[_0x6834b1],_0x2a8f5f=this[_0x29ea5f(0x26d)][_0x29ea5f(0x342)](_0x5408eb,_0x1bf441),_0x1334b1=this[_0x29ea5f(0x26d)][_0x29ea5f(0x342)](_0x2a37cb,_0x360bba);if(_0x329b63[_0x29ea5f(0x267)](_0x2a8f5f)||_0x329b63['isTransformMutationsWithChangesetFailure'](_0x1334b1)){this[_0x29ea5f(0x314)][_0x29ea5f(0x4a4)](_0x29ea5f(0x1da),_0x29ea5f(0x561),_0x2a8f5f,_0x1334b1);break;}_0x5408eb=_0x2a8f5f['c1Prime'],_0x2a37cb=_0x1334b1[_0x29ea5f(0x264)],_0x31bc99[_0x29ea5f(0x2a8)]({'unitID':_0x3c431d,'undoMutations':_0x2a8f5f[_0x29ea5f(0x22e)],'redoMutations':_0x1334b1['m2Prime']});}return _0x31bc99[_0x29ea5f(0x26a)]();}};_0x4e679e=_0x1661f6([_0x510b6e(0x0,_0x4cdaf4['IUniverInstanceService']),_0x510b6e(0x1,_0x4cdaf4['ICommandService']),_0x510b6e(0x2,_0x4cdaf4[_0x57b986(0x220)]),_0x510b6e(0x3,_0x329b63[_0x57b986(0x2a0)]),_0x510b6e(0x4,_0x4cdaf4[_0x57b986(0x41c)])],_0x4e679e);class _0x32732a extends _0x4cdaf4[_0x57b986(0x499)]{constructor(){const _0x4329e2=_0x57b986;super(),_0x53d09f(this,_0x4329e2(0x448)),this['urlChange$']=_0x4bb16b['fromEvent'](window,'popstate')[_0x4329e2(0x334)](_0x4bb16b[_0x4329e2(0x2e2)](this[_0x4329e2(0x2e3)]),_0x4bb16b['shareReplay'](0x1),_0x4bb16b[_0x4329e2(0x2a1)](void 0x0));}[_0x57b986(0x257)](_0x1ebc6f,_0x39b11b,_0x2b8035=!0x1){const _0x22bdbc=_0x57b986,_0x2d85d9=new URL(window['location'][_0x22bdbc(0x251)]);_0x2d85d9[_0x22bdbc(0x206)][_0x22bdbc(0x2c3)](_0x1ebc6f,_0x39b11b),_0x2b8035?window['history']['replaceState']('','',_0x2d85d9[_0x22bdbc(0x3cb)]()):window[_0x22bdbc(0x4d8)][_0x22bdbc(0x20c)]('','',_0x2d85d9[_0x22bdbc(0x3cb)]());}['removeParam'](_0x48d32d,_0x280cba=!0x1){const _0x4e4c4e=_0x57b986,_0x2c6cdd=new URL(window[_0x4e4c4e(0x519)]['href']);_0x2c6cdd['searchParams']['delete'](_0x48d32d),_0x280cba?window[_0x4e4c4e(0x4d8)]['replaceState']('','',_0x2c6cdd[_0x4e4c4e(0x3cb)]()):window['history'][_0x4e4c4e(0x20c)]('','',_0x2c6cdd[_0x4e4c4e(0x3cb)]());}['getParam'](_0x1effe6){const _0xb57d0c=_0x57b986;var _0x1f5f83;return(_0x1f5f83=new URL(window[_0xb57d0c(0x519)][_0xb57d0c(0x251)])[_0xb57d0c(0x206)][_0xb57d0c(0x408)](_0x1effe6))!=null?_0x1f5f83:void 0x0;}}const _0x833ca1=_0x57b986(0x3a5),_0x2c6a74=_0x57b986(0x438),_0x45dbc8=0x6,_0x4622cb=1.5,_0x3bb304=0x4,_0x623b59=1.5,_0x529be0='rgba(255,\x20255,\x20255,\x200.01)';class _0x51f812{constructor(_0x230f32,_0x10c685,_0x480ea1,_0x1d0c7f){const _0x670e57=_0x57b986;_0x53d09f(this,_0x670e57(0x256),[]),_0x53d09f(this,_0x670e57(0x57d),null),_0x53d09f(this,_0x670e57(0x501),null),_0x53d09f(this,'_anchorDot',null),_0x53d09f(this,_0x670e57(0x26b),null),_0x53d09f(this,_0x670e57(0x3c0),null),(this[_0x670e57(0x202)]=_0x230f32,this['_scene']=_0x10c685,this[_0x670e57(0x33e)]=_0x480ea1,this['_document']=_0x1d0c7f,this[_0x670e57(0x3b9)]());}set[_0x57b986(0x474)](_0x5a59e3){const _0x542a3a=_0x57b986;_0x5a59e3?(this['_anchorDot']&&this[_0x542a3a(0x3b2)]['hide'](),this[_0x542a3a(0x501)]&&this[_0x542a3a(0x501)]['show']()):(this[_0x542a3a(0x3b2)]&&this['_anchorDot']['show'](),this[_0x542a3a(0x501)]&&this[_0x542a3a(0x501)][_0x542a3a(0x359)]());}[_0x57b986(0x46e)](){const _0xaa0d32=_0x57b986;for(const _0x23b837 of this[_0xaa0d32(0x256)])_0x23b837[_0xaa0d32(0x46e)]();this[_0xaa0d32(0x501)]&&this[_0xaa0d32(0x501)][_0xaa0d32(0x46e)](),this[_0xaa0d32(0x3b2)]&&this['_anchorDot']['dispose'](),this[_0xaa0d32(0x57d)]&&this['_anchor'][_0xaa0d32(0x46e)](),this[_0xaa0d32(0x3c0)]&&this[_0xaa0d32(0x3c0)]();}[_0x57b986(0x3b9)](){const _0x1c44b9=_0x57b986,{_docSkeleton:_0x594689,_document:_0x3c92ea}=this,{color:_0x383712,name:_0x2cebf7,ranges:_0x54d15e}=this[_0x1c44b9(0x202)],_0x7739c3=_0x3c92ea[_0x1c44b9(0x39b)](),{docsLeft:_0x33e39e,docsTop:_0x1c7fa8}=_0x7739c3,_0x46b52c=new _0x499dcd[(_0x1c44b9(0x2fe))](_0x7739c3,_0x594689);for(const {startOffset:_0x383a0f,endOffset:_0x6d6aec,collapsed:_0x105a5f,isActive:_0x4e6bcf}of _0x54d15e){const _0x2965d8=_0x594689[_0x1c44b9(0x4bf)](_0x383a0f),_0x490c85=_0x594689[_0x1c44b9(0x4bf)](_0x6d6aec);if(_0x4e6bcf){const {contentBoxPointGroup:_0x5229c4}=_0x46b52c['getRangePointData'](_0x490c85,_0x490c85);if(_0x5229c4[_0x1c44b9(0x397)]===0x0)continue;this[_0x1c44b9(0x48b)](_0x383712,_0x5229c4,_0x33e39e,_0x1c7fa8,_0x2cebf7),this[_0x1c44b9(0x3c0)]=this[_0x1c44b9(0x3c8)]();}if(!_0x105a5f){const {contentBoxPointGroup:_0x3defc0}=_0x46b52c[_0x1c44b9(0x1e1)](_0x2965d8,_0x490c85);if(_0x3defc0[_0x1c44b9(0x397)]===0x0)continue;this['_drawRange'](_0x383712,_0x3defc0,_0x33e39e,_0x1c7fa8);}}}[_0x57b986(0x48b)](_0x4839a0,_0x2f0b65,_0x5f2b1e,_0x475714,_0x1b3209){const _0x3b5869=_0x57b986,_0x3d8baa=this[_0x3b5869(0x441)](_0x2f0b65),{left:_0x572eab,top:_0x34008f,height:_0x16a6f7}=_0x3d8baa,_0x13baf2=this[_0x3b5869(0x36d)](),_0x11a848=_0x623b59/_0x13baf2,_0xaef758=new _0x499dcd[(_0x3b5869(0x382))](_0x833ca1+_0x4cdaf4['Tools']['generateRandomId'](_0x45dbc8),{'left':_0x572eab+_0x5f2b1e-_0x11a848,'top':_0x34008f+_0x475714,'height':_0x16a6f7,'width':_0x4622cb,'fill':_0x4839a0||_0x499dcd['getColor'](_0x4cdaf4[_0x3b5869(0x209)][_0x3b5869(0x25f)],0x0),'strokeWidth':_0x11a848,'stroke':_0x529be0,'evented':!0x0});this[_0x3b5869(0x57d)]=_0xaef758,this[_0x3b5869(0x491)]['addObject'](_0xaef758,_0x499dcd[_0x3b5869(0x450)]);const _0x41b362=new _0x499dcd[(_0x3b5869(0x382))](_0x833ca1+_0x4cdaf4['Tools']['generateRandomId'](_0x45dbc8),{'left':_0x572eab+_0x5f2b1e-_0x11a848,'top':_0x34008f+_0x475714-_0x3bb304/0x2,'height':_0x3bb304,'width':_0x3bb304,'fill':_0x4839a0||_0x499dcd[_0x3b5869(0x4bc)](_0x4cdaf4[_0x3b5869(0x209)][_0x3b5869(0x25f)],0x0),'strokeWidth':0x0,'stroke':_0x4839a0||_0x499dcd[_0x3b5869(0x4bc)](_0x4cdaf4[_0x3b5869(0x209)][_0x3b5869(0x25f)],0x0),'evented':!0x1});this['_anchorDot']=_0x41b362,this[_0x3b5869(0x491)][_0x3b5869(0x266)](_0x41b362,_0x499dcd['TEXT_RANGE_LAYER_INDEX']);const _0x1e16a9=new _0x3b789e(_0x833ca1+_0x4cdaf4[_0x3b5869(0x2dc)][_0x3b5869(0x4a0)](_0x45dbc8),{'left':_0x572eab+_0x5f2b1e-_0x11a848,'top':_0x34008f+_0x475714-_0x4f68cc,'text':_0x1b3209,'color':_0x4839a0});this[_0x3b5869(0x501)]=_0x1e16a9,this[_0x3b5869(0x491)]['addObject'](_0x1e16a9,_0x499dcd[_0x3b5869(0x450)]),this[_0x3b5869(0x474)]=!0x1;}['_handleHover'](){const _0x412147=_0x57b986,_0x220802=this['_anchor'][_0x412147(0x48a)]['add'](()=>{const _0x513fa6=_0x412147;this[_0x513fa6(0x474)]=!0x0;}),_0x8b0094=this[_0x412147(0x57d)]['onPointerLeaveObserver'][_0x412147(0x2b7)](()=>{const _0x8a8905=_0x412147;this[_0x8a8905(0x26b)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x5c0b93=_0x8a8905;this[_0x5c0b93(0x474)]=!0x1;},0x7d0);});return()=>{const _0x11c77f=_0x412147;var _0x2561b7,_0x2ae10e;(_0x2561b7=this[_0x11c77f(0x57d)])==null||_0x2561b7[_0x11c77f(0x48a)][_0x11c77f(0x21d)](_0x220802),(_0x2ae10e=this[_0x11c77f(0x57d)])==null||_0x2ae10e[_0x11c77f(0x4cf)][_0x11c77f(0x21d)](_0x8b0094);};}[_0x57b986(0x2ed)](_0x3ff0c3,_0x4f5580,_0x95e53f,_0x4df83f){const _0x1c7168=_0x57b986,_0x3ed04f=new _0x4cdaf4[(_0x1c7168(0x568))](_0x3ff0c3)[_0x1c7168(0x1ec)](0.2)[_0x1c7168(0x34e)](),_0x192e4b=new _0x499dcd['RegularPolygon'](_0x2c6a74+_0x4cdaf4[_0x1c7168(0x2dc)][_0x1c7168(0x4a0)](_0x45dbc8),{'pointsGroup':_0x4f5580,'fill':_0x3ed04f||_0x499dcd[_0x1c7168(0x4bc)](_0x4cdaf4[_0x1c7168(0x209)][_0x1c7168(0x25f)],0.2),'left':_0x95e53f,'top':_0x4df83f,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1c7168(0x2a8)](_0x192e4b),this[_0x1c7168(0x491)][_0x1c7168(0x266)](_0x192e4b,_0x499dcd[_0x1c7168(0x450)]);}['_getAnchorBounding'](_0x56b9e6){const _0x12b1c4=_0x56b9e6[0x0],_0x1fc3c7=_0x12b1c4[0x0],_0x463227=_0x12b1c4[0x2],{x:_0x4cdd8f,y:_0xa81c6a}=_0x1fc3c7,{x:_0x283f26,y:_0x5d6a7a}=_0x463227;return{'left':_0x4cdd8f,'top':_0xa81c6a,'width':_0x283f26-_0x4cdd8f,'height':_0x5d6a7a-_0xa81c6a};}[_0x57b986(0x36d)](){const _0x293d74=_0x57b986,{scaleX:_0x592909,scaleY:_0x2c8a34}=this[_0x293d74(0x491)][_0x293d74(0x223)]();return Math[_0x293d74(0x27f)](_0x592909,_0x2c8a34);}}var _0x28c1bb=Object[_0x57b986(0x1f4)],_0x331dff=Object[_0x57b986(0x405)],_0x3fb450=(_0x2c1bda,_0x12ae9a,_0x294284,_0x5e25d6)=>{const _0x5db5a7=_0x57b986;for(var _0x1183d8=_0x5e25d6>0x1?void 0x0:_0x5e25d6?_0x331dff(_0x12ae9a,_0x294284):_0x12ae9a,_0x1caffb=_0x2c1bda[_0x5db5a7(0x397)]-0x1,_0x4dc922;_0x1caffb>=0x0;_0x1caffb--)(_0x4dc922=_0x2c1bda[_0x1caffb])&&(_0x1183d8=(_0x5e25d6?_0x4dc922(_0x12ae9a,_0x294284,_0x1183d8):_0x4dc922(_0x1183d8))||_0x1183d8);return _0x5e25d6&&_0x1183d8&&_0x28c1bb(_0x12ae9a,_0x294284,_0x1183d8),_0x1183d8;},_0x590769=(_0x49ba1c,_0x5e9967)=>(_0x43bbe4,_0x1edc42)=>_0x5e9967(_0x43bbe4,_0x1edc42,_0x49ba1c);let _0x4879f6=class extends _0x4cdaf4[_0x57b986(0x499)]{constructor(_0x4a5e5f,_0x4b37f1,_0x354437,_0x36c127,_0x4be252){const _0x5c0839=_0x57b986;super(),_0x53d09f(this,_0x5c0839(0x3a3),[]),(this[_0x5c0839(0x49d)]=_0x4a5e5f,this['_univerInstanceService']=_0x4b37f1,this[_0x5c0839(0x3df)]=_0x354437,this[_0x5c0839(0x30e)]=_0x36c127,this[_0x5c0839(0x53c)]=_0x4be252,this[_0x5c0839(0x546)]());}[_0x57b986(0x546)](){const _0x22920b=_0x57b986;this['_docSkeletonManagerService'][_0x22920b(0x41e)][_0x22920b(0x334)](_0x4ac749[_0x22920b(0x2e2)](this[_0x22920b(0x2e3)]),_0x4ac749['switchMap'](_0xbaf36a=>{const _0x4555ed=_0x22920b;if(_0xbaf36a){const {unitId:_0x15fda3}=_0xbaf36a;return _0x4bb16b[_0x4555ed(0x1f8)](this['_collabCursorController'][_0x4555ed(0x287)](_0x15fda3),this['_themeService'][_0x4555ed(0x2fd)])[_0x4555ed(0x334)](_0x4ac749[_0x4555ed(0x2d2)](([_0x546240,_0x360f34])=>({'skeleton':_0xbaf36a,'cursors':[..._0x546240[_0x4555ed(0x2c0)]()][_0x4555ed(0x527)](_0x41b6fa=>({..._0x41b6fa,'color':_0x360f34[_0x41b6fa[_0x4555ed(0x4fe)]]}))})));}return _0x4bb16b['of']({'skeleton':null,'cursors':[]});}))[_0x22920b(0x29e)](({skeleton:_0x78029f,cursors:_0x561a42})=>{const _0x127e99=_0x22920b;this[_0x127e99(0x2ea)](),_0x78029f&&this[_0x127e99(0x319)](_0x78029f['skeleton'],_0x561a42);});}[_0x57b986(0x319)](_0x45467b,_0x1e7a51){const _0x214c31=_0x57b986,_0x3ed259=this['_getDocObject']();if(_0x3ed259==null)return;const {scene:_0x23bea7,document:_0x5c6382}=_0x3ed259,_0x5d4a52=_0x1e7a51[_0x214c31(0x2d2)](_0x16c4bf=>new _0x51f812(_0x16c4bf,_0x23bea7,_0x45467b,_0x5c6382));this['_cursors']=_0x5d4a52;}[_0x57b986(0x2ea)](){const _0x7c4c01=_0x57b986;this[_0x7c4c01(0x3a3)][_0x7c4c01(0x2bc)](_0x495e68=>_0x495e68[_0x7c4c01(0x46e)]()),this[_0x7c4c01(0x3a3)]=[];}['_getDocObject'](){const _0x516d66=_0x57b986;return _0x3fcd1a[_0x516d66(0x2ec)](this[_0x516d66(0x3d9)],this[_0x516d66(0x3df)]);}};_0x4879f6=_0x3fb450([_0x4cdaf4[_0x57b986(0x4e2)](_0x4cdaf4[_0x57b986(0x575)]['Steady'],_0x4879f6),_0x590769(0x0,_0x12925a[_0x57b986(0x42c)](_0xc3b139)),_0x590769(0x1,_0x4cdaf4['IUniverInstanceService']),_0x590769(0x2,_0x499dcd[_0x57b986(0x43c)]),_0x590769(0x3,_0x12925a[_0x57b986(0x42c)](_0x3fcd1a[_0x57b986(0x273)])),_0x590769(0x4,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4['ThemeService']))],_0x4879f6);var _0x5ac04e=Object[_0x57b986(0x1f4)],_0x238dd0=Object[_0x57b986(0x405)],_0x36e8fe=(_0x2413b4,_0x45c7c7,_0x4942b4,_0x333534)=>{const _0x350269=_0x57b986;for(var _0x1eda18=_0x333534>0x1?void 0x0:_0x333534?_0x238dd0(_0x45c7c7,_0x4942b4):_0x45c7c7,_0x54f87=_0x2413b4[_0x350269(0x397)]-0x1,_0x4cebc0;_0x54f87>=0x0;_0x54f87--)(_0x4cebc0=_0x2413b4[_0x54f87])&&(_0x1eda18=(_0x333534?_0x4cebc0(_0x45c7c7,_0x4942b4,_0x1eda18):_0x4cebc0(_0x1eda18))||_0x1eda18);return _0x333534&&_0x1eda18&&_0x5ac04e(_0x45c7c7,_0x4942b4,_0x1eda18),_0x1eda18;},_0x4da9f0=(_0x4a4f41,_0x33d5ac)=>(_0x1af021,_0x44f92b)=>_0x33d5ac(_0x1af021,_0x44f92b,_0x4a4f41);let _0x95f6c2=class{constructor(_0x5008ce,_0x2b695a,_0x549a0a){const _0x2b78a4=_0x57b986;this[_0x2b78a4(0x323)]=_0x5008ce,this[_0x2b78a4(0x522)]=_0x2b695a,this[_0x2b78a4(0x3c6)]=_0x549a0a,this[_0x2b78a4(0x533)]();}['init'](){const _0x3ee17b=_0x57b986;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0xe4d999,_0x5c2efb)=>_0x5c2efb(_0xe4d999)['pipe'](_0x4bb16b[_0x3ee17b(0x1d4)](async _0x2f473c=>{const _0x232528=_0x3ee17b,_0x157222=_0x2f473c;if(_0x157222[_0x232528(0x2aa)]===0x191&&window['confirm'](this['localeService']['t'](_0x232528(0x49b)))){const _0xea7293=window[_0x232528(0x34f)](window['location'][_0x232528(0x251)]);window[_0x232528(0x519)][_0x232528(0x251)]=this[_0x232528(0x3e8)]()+_0x232528(0x372)+_0xea7293;}return _0x157222;}))});}[_0x57b986(0x3e8)](){const _0xa8d8fc=_0x57b986;var _0x5e0cb8;return(_0x5e0cb8=this[_0xa8d8fc(0x323)][_0xa8d8fc(0x51f)](_0x23ca2e))!=null?_0x5e0cb8:_0x1c47c8;}};_0x95f6c2=_0x36e8fe([_0x4da9f0(0x0,_0x4cdaf4[_0x57b986(0x4f1)]),_0x4da9f0(0x1,_0x12925a[_0x57b986(0x42c)](_0xfde0ab['HTTPService'])),_0x4da9f0(0x2,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4[_0x57b986(0x502)]))],_0x95f6c2);var _0x2ffec0=Object[_0x57b986(0x1f4)],_0x3b0a18=Object[_0x57b986(0x405)],_0x454e7a=(_0x2ac99a,_0x3ebf9a,_0x99d3f2,_0x3b8a63)=>{const _0x2cc886=_0x57b986;for(var _0x429947=_0x3b8a63>0x1?void 0x0:_0x3b8a63?_0x3b0a18(_0x3ebf9a,_0x99d3f2):_0x3ebf9a,_0x2d5299=_0x2ac99a[_0x2cc886(0x397)]-0x1,_0x532e0c;_0x2d5299>=0x0;_0x2d5299--)(_0x532e0c=_0x2ac99a[_0x2d5299])&&(_0x429947=(_0x3b8a63?_0x532e0c(_0x3ebf9a,_0x99d3f2,_0x429947):_0x532e0c(_0x429947))||_0x429947);return _0x3b8a63&&_0x429947&&_0x2ffec0(_0x3ebf9a,_0x99d3f2,_0x429947),_0x429947;},_0x545c98=(_0x3588cb,_0x578f88)=>(_0x32d699,_0x1a8a88)=>_0x578f88(_0x32d699,_0x1a8a88,_0x3588cb);const _0x113fb2=_0x57b986(0x44b),_0x46ca44='/universer-api/authz';_0x3f3314[_0x57b986(0x25c)]=class{constructor(_0x513d2c,_0x4669c1){const _0x3057e2=_0x57b986;this[_0x3057e2(0x313)]=_0x513d2c,this['_configService']=_0x4669c1;}['_getAPIPrefixPath'](){const _0x1389a0=_0x57b986;var _0xf4a2ec;return(_0xf4a2ec=this[_0x1389a0(0x323)]['getConfig'](_0x113fb2))!=null?_0xf4a2ec:_0x46ca44;}async[_0x57b986(0x494)](_0x2826d7){const _0xfc216d=_0x57b986,_0x564268=this[_0xfc216d(0x2eb)]()+'/'+_0x2826d7['objectType']+_0xfc216d(0x277);return(await this[_0xfc216d(0x313)][_0xfc216d(0x45d)](_0x564268,{'body':_0x2826d7}))[_0xfc216d(0x559)][_0xfc216d(0x4e6)]||'';}async[_0x57b986(0x1f6)](_0x294f39){const _0x3bf571=_0x57b986,_0x526f37=this[_0x3bf571(0x2eb)]()+_0x3bf571(0x3f3);return(await this[_0x3bf571(0x313)][_0x3bf571(0x45d)](_0x526f37,{'body':_0x294f39}))[_0x3bf571(0x559)][_0x3bf571(0x2ef)];}async[_0x57b986(0x21e)](_0x52c373){const _0x56ff1f=_0x57b986,_0x2498c4=this[_0x56ff1f(0x2eb)]()+'/'+_0x52c373[_0x56ff1f(0x327)]+'/object/'+_0x52c373[_0x56ff1f(0x4e6)];await this['_HTTPService'][_0x56ff1f(0x4c4)](_0x2498c4,{'body':_0x52c373});}async['allowed'](_0x2eadb6){const _0x21351f=_0x57b986,_0x5016d8=this[_0x21351f(0x2eb)]()+'/'+_0x2eadb6[_0x21351f(0x327)]+_0x21351f(0x504)+_0x2eadb6[_0x21351f(0x4e6)]+_0x21351f(0x478);return(await this[_0x21351f(0x313)][_0x21351f(0x45d)](_0x5016d8,{'body':_0x2eadb6}))['body']['actions'];}async[_0x57b986(0x370)](_0x206505){const _0x3ddde6=_0x57b986,_0x375579=this[_0x3ddde6(0x2eb)]()+'/-/object/-/batch_allowed';return(await this['_HTTPService'][_0x3ddde6(0x45d)](_0x375579,{'body':{'requests':_0x206505}}))[_0x3ddde6(0x559)]['objectActions'];}async['listRoles'](_0xb0a59b){const _0x570810=_0x57b986,_0x215d3d=this[_0x570810(0x2eb)]()+'/'+_0xb0a59b[_0x570810(0x327)]+'/role',_0x3f1de2=await this[_0x570810(0x313)][_0x570810(0x45d)](_0x215d3d,{'body':_0xb0a59b});return{'roles':_0x3f1de2['body'][_0x570810(0x45e)],'actions':_0x3f1de2[_0x570810(0x559)][_0x570810(0x29a)]};}async['deleteCollaborator'](_0x1ee1fd){const _0x467090=_0x57b986,_0xd7bf2a=this[_0x467090(0x2eb)]()+_0x467090(0x435);await this[_0x467090(0x313)][_0x467090(0x391)](_0xd7bf2a,{'params':{'collaboratorID':_0x1ee1fd[_0x467090(0x4ef)],'objectID':_0x1ee1fd[_0x467090(0x4e6)],'unitID':_0x1ee1fd[_0x467090(0x40f)]}});}async[_0x57b986(0x358)](_0x1029f5){const _0x349abd=_0x57b986,_0x3168d8=this['_getAPIPrefixPath']()+_0x349abd(0x435);await this[_0x349abd(0x313)]['patch'](_0x3168d8,{'body':_0x1029f5});}async[_0x57b986(0x309)](_0x3d97a8){const _0x1b310a=_0x57b986,_0x41c3be=this['_getAPIPrefixPath']()+_0x1b310a(0x435);await this['_HTTPService']['post'](_0x41c3be,{'body':_0x3d97a8});}async[_0x57b986(0x464)](_0x10b6b5){const _0x1155cd=_0x57b986,_0x7032f2=this[_0x1155cd(0x2eb)]()+_0x1155cd(0x435);return(await this[_0x1155cd(0x313)][_0x1155cd(0x408)](_0x7032f2,{'params':{'objectID':_0x10b6b5[_0x1155cd(0x4e6)],'unitID':_0x10b6b5[_0x1155cd(0x40f)]}}))[_0x1155cd(0x559)]['collaborators'];}async[_0x57b986(0x2ab)](_0x481753){const _0x5c2482=_0x57b986,_0x11f9e4=this[_0x5c2482(0x2eb)]()+'/collaborator';await this[_0x5c2482(0x313)][_0x5c2482(0x4c4)](_0x11f9e4,{'body':_0x481753});}},_0x3f3314[_0x57b986(0x25c)]=_0x454e7a([_0x545c98(0x0,_0x12925a[_0x57b986(0x42c)](_0xfde0ab['HTTPService'])),_0x545c98(0x1,_0x12925a[_0x57b986(0x42c)](_0x4cdaf4[_0x57b986(0x4f1)]))],_0x3f3314[_0x57b986(0x25c)]);var _0x2d3852=Object[_0x57b986(0x1f4)],_0x48648d=Object['getOwnPropertyDescriptor'],_0x24c877=(_0x582aa6,_0xb72dbb,_0x181862,_0x564827)=>{for(var _0x1c50ef=_0x564827>0x1?void 0x0:_0x564827?_0x48648d(_0xb72dbb,_0x181862):_0xb72dbb,_0x2cbc6a=_0x582aa6['length']-0x1,_0x195dcf;_0x2cbc6a>=0x0;_0x2cbc6a--)(_0x195dcf=_0x582aa6[_0x2cbc6a])&&(_0x1c50ef=(_0x564827?_0x195dcf(_0xb72dbb,_0x181862,_0x1c50ef):_0x195dcf(_0x1c50ef))||_0x1c50ef);return _0x564827&&_0x1c50ef&&_0x2d3852(_0xb72dbb,_0x181862,_0x1c50ef),_0x1c50ef;},_0x9b8e94=(_0x107cf9,_0x1f55da)=>(_0x4e09b9,_0x16076d)=>_0x1f55da(_0x4e09b9,_0x16076d,_0x107cf9);const _0x56ed7d=['image/png',_0x57b986(0x4d0),_0x57b986(0x507),_0x57b986(0x56d),_0x57b986(0x332)],_0x319ef5=0x5*0x400*0x400,_0x14d780='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',_0x4b4ab1=_0x57b986(0x55c),_0x250f6f='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_0x501632=_0x57b986(0x2f1);let _0x5888f2=class{constructor(_0x3a3d54,_0x43960d){const _0x8c0171=_0x57b986;_0x53d09f(this,_0x8c0171(0x1c5),0x0),_0x53d09f(this,_0x8c0171(0x274),new _0x4bb16b[(_0x8c0171(0x42d))]()),_0x53d09f(this,_0x8c0171(0x4e0),this[_0x8c0171(0x274)]),_0x53d09f(this,_0x8c0171(0x459),new Map()),(this[_0x8c0171(0x522)]=_0x3a3d54,this[_0x8c0171(0x323)]=_0x43960d);}['setWaitCount'](_0x2d3cf7){const _0x14d584=_0x57b986;this['_waitCount']=_0x2d3cf7,this[_0x14d584(0x274)][_0x14d584(0x1bd)](_0x2d3cf7);}[_0x57b986(0x240)](_0x261ad2,_0x51a5b5){const _0x369225=_0x57b986;if(_0x51a5b5===_0x46f32c[_0x369225(0x54b)][_0x369225(0x2be)]){const _0x2c5135=new Image();return _0x2c5135[_0x369225(0x231)]=_0x261ad2,_0x2c5135;}return this[_0x369225(0x459)][_0x369225(0x408)](_0x261ad2);}[_0x57b986(0x34d)](_0x4a18b1,_0x256537,_0x228247){const _0x274b56=_0x57b986;_0x256537===_0x46f32c[_0x274b56(0x54b)]['BASE64']||_0x228247==null||this[_0x274b56(0x459)][_0x274b56(0x2c3)](_0x4a18b1,_0x228247);}async[_0x57b986(0x1bc)](_0x1d1554){const _0x4b1c11=_0x57b986;try{const _0x203778=this[_0x4b1c11(0x573)](this[_0x4b1c11(0x354)](),''+_0x1d1554),_0x303ed9=(await this['_httpService'][_0x4b1c11(0x408)](_0x203778))[_0x4b1c11(0x559)];return _0x303ed9['error']&&_0x303ed9['error'][_0x4b1c11(0x35d)]===_0x383d49['OK']?Promise[_0x4b1c11(0x29c)](_0x303ed9[_0x4b1c11(0x30d)]):Promise['reject'](_0x303ed9[_0x4b1c11(0x4a4)]);}catch(_0x33c75e){return Promise[_0x4b1c11(0x2cf)](_0x33c75e);}}async[_0x57b986(0x2bd)](_0x2d32dd){const _0xec4dd8=_0x57b986;let _0x27da97='';if(!_0x56ed7d[_0xec4dd8(0x4c2)](_0x2d32dd[_0xec4dd8(0x239)]))return this[_0xec4dd8(0x54c)](),Promise['reject'](new Error(_0x46f32c[_0xec4dd8(0x3b3)]['ERROR_IMAGE_TYPE']));if(_0x2d32dd[_0xec4dd8(0x349)]>_0x319ef5)return this[_0xec4dd8(0x54c)](),Promise['reject'](new Error(_0x46f32c[_0xec4dd8(0x3b3)]['ERROR_EXCEED_SIZE']));try{const _0xa69463=new FormData();_0xa69463[_0xec4dd8(0x41f)](_0xec4dd8(0x574),_0x2d32dd);const _0x298ea4=this[_0xec4dd8(0x457)]()+_0xec4dd8(0x217)+_0x2d32dd[_0xec4dd8(0x349)][_0xec4dd8(0x3cb)](),_0x20a9bb=await(await fetch(_0x298ea4,{'method':_0xec4dd8(0x315),'body':_0xa69463}))[_0xec4dd8(0x4f7)]();if(typeof _0x20a9bb[_0xec4dd8(0x211)]!=_0xec4dd8(0x36c))return this[_0xec4dd8(0x54c)](),Promise[_0xec4dd8(0x2cf)](new Error(_0x46f32c['ImageUploadStatusType'][_0xec4dd8(0x205)]));_0x27da97=_0x20a9bb[_0xec4dd8(0x211)];}catch{return this[_0xec4dd8(0x54c)](),Promise['reject'](new Error(_0x46f32c[_0xec4dd8(0x3b3)][_0xec4dd8(0x205)]));}return new Promise((_0x2a72e9,_0x555cde)=>{const _0x5a8c0c=_0xec4dd8,_0x1a4152=new FileReader();_0x1a4152[_0x5a8c0c(0x436)](_0x2d32dd),_0x1a4152[_0x5a8c0c(0x2ee)]=_0x3d080d=>{const _0x365ee4=_0x5a8c0c;var _0x5d50a3;const _0x3548d7=(_0x5d50a3=_0x3d080d[_0x365ee4(0x3f2)])==null?void 0x0:_0x5d50a3['result'];if(_0x3548d7==null){this[_0x365ee4(0x54c)](),_0x555cde(new Error(_0x46f32c[_0x365ee4(0x3b3)][_0x365ee4(0x205)]));return;}const _0x24886a=_0x4cdaf4[_0x365ee4(0x2dc)][_0x365ee4(0x4a0)](0x6);_0x2a72e9({'imageId':_0x24886a,'imageSourceType':_0x46f32c[_0x365ee4(0x54b)]['UUID'],'source':_0x27da97,'base64Cache':_0x3548d7,'status':_0x46f32c[_0x365ee4(0x3b3)][_0x365ee4(0x3f1)]}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x28df65=_0x57b986;var _0x8874a8;return(_0x8874a8=this[_0x28df65(0x323)]['getConfig'](_0x14d780))!=null?_0x8874a8:_0x4b4ab1;}['_getSignURL'](){const _0x1e42f2=_0x57b986;var _0x599f13;return(_0x599f13=this[_0x1e42f2(0x323)]['getConfig'](_0x250f6f))!=null?_0x599f13:_0x501632;}[_0x57b986(0x573)](_0x292efb,_0x23fd8e){const _0x33bdab=_0x57b986;return _0x292efb[_0x33bdab(0x2ae)]('{fileID}',_0x23fd8e);}[_0x57b986(0x54c)](){const _0x141f60=_0x57b986;this[_0x141f60(0x1c5)]-=0x1,this[_0x141f60(0x274)]['next'](this[_0x141f60(0x1c5)]);}};_0x5888f2=_0x24c877([_0x9b8e94(0x0,_0x12925a[_0x57b986(0x42c)](_0xfde0ab[_0x57b986(0x280)])),_0x9b8e94(0x1,_0x4cdaf4['IConfigService'])],_0x5888f2);var _0x2f475c=Object[_0x57b986(0x1f4)],_0x40a9fd=Object['getOwnPropertyDescriptor'],_0x2a3497=(_0x33b58d,_0x3f8fc7,_0x3abb65)=>_0x3f8fc7 in _0x33b58d?_0x2f475c(_0x33b58d,_0x3f8fc7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3abb65}):_0x33b58d[_0x3f8fc7]=_0x3abb65,_0x531476=(_0x5928e2,_0xaa414,_0x2b1e95,_0x5639ca)=>{const _0x2bfaad=_0x57b986;for(var _0x72c47d=_0x5639ca>0x1?void 0x0:_0x5639ca?_0x40a9fd(_0xaa414,_0x2b1e95):_0xaa414,_0x1605ed=_0x5928e2[_0x2bfaad(0x397)]-0x1,_0x5711fc;_0x1605ed>=0x0;_0x1605ed--)(_0x5711fc=_0x5928e2[_0x1605ed])&&(_0x72c47d=(_0x5639ca?_0x5711fc(_0xaa414,_0x2b1e95,_0x72c47d):_0x5711fc(_0x72c47d))||_0x72c47d);return _0x5639ca&&_0x72c47d&&_0x2f475c(_0xaa414,_0x2b1e95,_0x72c47d),_0x72c47d;},_0x41924a=(_0x1f3202,_0x1730e3)=>(_0x38c54b,_0x347181)=>_0x1730e3(_0x38c54b,_0x347181,_0x1f3202),_0x4ccd34=(_0x1a5009,_0x22b259,_0x425023)=>_0x2a3497(_0x1a5009,_0x22b259+'',_0x425023);const _0x21a43a='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x3f3314['UniverCollaborationClientPlugin']=class extends _0x4cdaf4['Plugin']{constructor(_0x53eabd,_0x1e81df,_0x4011af){const _0x444e18=_0x57b986;super(),this[_0x444e18(0x2a9)]=_0x53eabd,this[_0x444e18(0x314)]=_0x1e81df,this['_injector']=_0x4011af;}['onStarting'](_0x4038a2){const _0x301509=_0x57b986;var _0x36a99f,_0xdd402a,_0x4e7ef5,_0x404e5e,_0x3e5cd1;_0x4038a2['has'](_0x4cdaf4[_0x301509(0x2f8)])&&this[_0x301509(0x314)][_0x301509(0x4a4)]('[UniverCollaborationClientPlugin]',_0x301509(0x2f2));let _0x521abc=[[_0x4cdaf4[_0x301509(0x2f8)],{'useClass':_0x4e679e}],[_0x3f3314[_0x301509(0x48c)]],[_0x2ba255],[_0xfde0ab[_0x301509(0x280)]],[_0x13d820,{'useClass':_0x32732a}],[_0x4495e7],[_0x3f3314[_0x301509(0x361)]],[_0xfde0ab[_0x301509(0x1d6)]],[_0x4e6a4d],[_0x38542b],[_0x29ca68],[_0x2f17dc],[_0x95f6c2],[_0x20ab21,{'useClass':(_0xdd402a=(_0x36a99f=this[_0x301509(0x2a9)])==null?void 0x0:_0x36a99f[_0x301509(0x35f)])!=null?_0xdd402a:_0x3f3314[_0x301509(0x4a5)]}],[_0xfde0ab[_0x301509(0x4e1)],{'useClass':_0xfde0ab[_0x301509(0x56e)]}],[_0x4cdaf4[_0x301509(0x3ea)],{'useClass':_0x80c624}],[_0x4cdaf4[_0x301509(0x4fa)],{'useClass':_0x3f3314[_0x301509(0x25c)]}],[_0x46f32c[_0x301509(0x1c9)],{'useClass':_0x5888f2}],[_0x3f3314['CollaborationController']],[_0x3f3314[_0x301509(0x393)]],[_0x3f3314[_0x301509(0x3e9)]],[_0x3d3abe],[_0xc3b139]];(_0x4e7ef5=this['_config'])!=null&&_0x4e7ef5['enableSingleActiveInstanceLock']&&_0x521abc['push']([_0x1c83f9,{'useClass':_0x1c79cd}]),((_0x404e5e=this[_0x301509(0x2a9)])==null?void 0x0:_0x404e5e[_0x301509(0x243)])==null||this[_0x301509(0x2a9)][_0x301509(0x243)][_0x301509(0x4c2)](_0x4cdaf4[_0x301509(0x514)][_0x301509(0x1ed)])?_0x521abc['push']([_0x662f12]):this['_config'][_0x301509(0x243)]['includes'](_0x4cdaf4[_0x301509(0x514)][_0x301509(0x510)])&&_0x521abc[_0x301509(0x2a8)]([_0x4879f6]),_0x521abc=_0x4cdaf4['mergeOverrideWithDependencies'](_0x521abc,(_0x3e5cd1=this[_0x301509(0x2a9)])==null?void 0x0:_0x3e5cd1[_0x301509(0x1cb)]),_0x521abc[_0x301509(0x2bc)](_0xac1bd2=>_0x4038a2[_0x301509(0x2b7)](_0xac1bd2)),_0x4038a2[_0x301509(0x408)](_0xfde0ab[_0x301509(0x280)])[_0x301509(0x357)]({'priority':0x14,'interceptor':_0xfde0ab['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0x301509(0x50f)]();}[_0x57b986(0x50f)](){const _0x169ce7=_0x57b986;var _0x4a471b,_0x3e4942;(_0x4a471b=this[_0x169ce7(0x2a9)])!=null&&_0x4a471b[_0x169ce7(0x22a)]||this[_0x169ce7(0x260)][_0x169ce7(0x408)](_0x3f3314[_0x169ce7(0x361)])[_0x169ce7(0x571)](),(_0x3e4942=this['_config'])!=null&&_0x3e4942[_0x169ce7(0x4a9)]&&this['_injector'][_0x169ce7(0x408)](_0x95f6c2);}},_0x4ccd34(_0x3f3314[_0x57b986(0x23f)],_0x57b986(0x56f),_0x21a43a),_0x3f3314[_0x57b986(0x23f)]=_0x531476([_0x4cdaf4[_0x57b986(0x513)](_0x329b63['UniverCollaborationPlugin']),_0x41924a(0x1,_0x4cdaf4[_0x57b986(0x41c)]),_0x41924a(0x2,_0x12925a[_0x57b986(0x42c)](_0x12925a['Injector']))],_0x3f3314['UniverCollaborationClientPlugin']),_0x3f3314[_0x57b986(0x44b)]=_0x113fb2,_0x3f3314[_0x57b986(0x23e)]=_0x3050c7,_0x3f3314[_0x57b986(0x29f)]=_0x28607c,_0x3f3314[_0x57b986(0x52b)]=_0x5185a4,_0x3f3314[_0x57b986(0x339)]=_0x3c74c6,_0x3f3314[_0x57b986(0x381)]=_0x1e7060,_0x3f3314[_0x57b986(0x3b8)]=_0x3287b4,_0x3f3314[_0x57b986(0x432)]=_0x20ab21,_0x3f3314[_0x57b986(0x34c)]=_0x13d820,_0x3f3314['LOCAL_CACHE_INTERVAL_KEY']=_0x1e2fa3,_0x3f3314['LOGIN_URL_KEY']=_0x23ca2e,_0x3f3314[_0x57b986(0x2e8)]=_0x20edc7,_0x3f3314[_0x57b986(0x4ba)]=_0x514f86,_0x3f3314[_0x57b986(0x2b2)]=_0x5cc7aa,_0x3f3314['SessionStatus']=_0x585a5c,_0x3f3314[_0x57b986(0x403)]=_0x32732a,_0x3f3314[_0x57b986(0x32a)]=_0x4e7170,_0x3f3314[_0x57b986(0x1f7)]=_0x573082,Object[_0x57b986(0x1f4)](_0x3f3314,Symbol[_0x57b986(0x1dd)],{'value':_0x57b986(0x301)});}));function _0x23f5(){const _0xea93f5=['parseProtocolChangeset','data','_type','enableAuthServer','send','isTransformChangesetsSuccess','text','colorChannel1','_colorAssignService','runRefRangeMutations','none','[PendingState]:\x20received\x20acknowledgement.','_clearOtherTimers','InsertSheetMutation','1em','_pendingMutations','_scheduleSaving','/universer-api/snapshot','mapDocumentTypeToUniverType','collabCursorState$','SNAPSHOT_SERVER_URL_KEY','_heartbeatTimer','getColor','_createInitialStateImpl','column','findNodePositionByCharIndex','idSuffix','DeleteRangeMoveUpCommandId','includes','permissionRejEvent','put','HEARTBEAT_TIMEOUT','then','liveShareNewHost','transformSelections','awaitingChangeset','[CollaborationSessionService]:\x20socket\x20error','UniverSheetsUi','_removeClearOtherTimer','makeDirty','\x0aAfter:\x20','onPointerLeaveObserver','image/jpeg','getUniverSheetInstance','div','registerOnClose','APPLY_PERMISSION_DENIED','parse','addObjects','CollaborationSession','history','transformChangesets','routeKey','_queuedRemoteChangesets','originalMeta','exports','isTransformMutationFailure','UNAUTHENTICATED','change$','IHTTPImplementation','OnLifecycle','&to=','registerBeforeClose','workbook','objectID','MoveRangeCommandId','unit','use','getUnitType','onCommandExecuted','getRoom','@univerjs/rpc','bottom','collaboratorID','_getCurrentRevision','IConfigService','_tryEnsureSocket','handleInsertRow','isPermissionRej','find','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','json','offline','saveSheetBlock','IAuthzIoService','_clearLocalCache','resend','IUIPartsService','color','_updateStatus','LICENSE_DISTRO_REJECTED','_textBubble','LocaleService','getOwnPropertySymbols','/object/','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','transformRemoteChangeset','image/jpg','_snapshotService','collabStatus.conflict','requireSession','_createSocket','_exhaustSavingTask','UniverDrawing','_transformUndoRedoStack','_initModules','UNIVER_DOC','session.collaboration-timeout','_onFetchMissResult','DependentOn','UniverInstanceType','unit-cache-','_saveCache','_sendHeartbeat','UNIVER_UNKNOWN','location','setTimeout','setCurrentUser','LIVESHARE_FETCH_OPERATIONS','_session','_roomMembers$','getConfig','onRemoteRej','UniverEngineRender','_httpService','RemoveRowCommandId','sequenceExecute','error$','mutations','flatMap','stringify','enableLocalCache','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','CollaborationStatus','CONNECTOR_DATA_TOO_LARGE','CHANGESET_REVISION_CONFILICT','_acknowledgedAwaitingChangeset','Injector','getCollabEntity','editingUnit','AWAITING','init','asObservable','cursorInfo$','setUndoRedoMutationParamsCache','memberID','appendMutation','_onCombEvent','off-line-single','_clearUndo','_themeService','/universer-api/oidc/authpage','lineTo','defIds','_transformSelections','_cachedData','close','message$','univer-offline','createInstance','_init','@wendellhu/redi/react-bindings','split','_colorIndex','hovered','ImageSourceType','_decreaseWaiting','_getSnapshotAPIPrefix','all','APPLY_REVISION_CONFILICT','permission.content','YUUMI_URL_COL_OUT_OF_RANGE','/fetchmissing?from=','getTypeOfUnitAdded$','/universer-api/comb','@univerjs/engine-formula','measureText','_removeRoom','eventID','body','startsWith','_sheetTransformSelectionsService','/universer-api/stream/file/upload','lodash','_unitStatus','setShapeProps','show','transformStack\x20failed!','react','entries','2149735rcqmEg','NOT_FOUND','6228828CkcYuH','conflict.content','ColorKit','csRejEvent','...','toDisposable','_onJoinRoomEvent','image/gif','XHRHTTPImplementation','pluginName','removeMember','disableLocalCache','_ws','_replaceFileID','file','LifecycleStages','trim','getCurrentRevForDocument','delay','UNIVER_SLIDE','OffLineSingle','#FFF','getUndoRedoMutationParamsCache','_anchor','collabStatus.fetchMiss','verdancy600','[DataLoaderController]','_name','unshift','_remoteChangesetQueue','getImage','next','updatePermissionPoint','from','0\x200\x2017\x2016','ONLINE','not_collab','className','onPointerMoveObserver','_waitCount','SYNCED','_socketService','InsertRowCommandId','IImageIoService','setItem','override','@univerjs/design','onMissedChangesetFetched','_waitForHeartbeatResponse','_cursorInfo$','amd','_collaborationController','VIEWPORT_KEY','_memberService','concatMap','loadOfflineData','WebSocketService','height','displayName','getSheetObject','[CollaborationUndoRedoService]','HEARTBEAT_INTERVAL','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','toStringTag','CONFLICT','Rectangle','onlineStatusTitle','getRangePointData','_onMessage','close$','getViewport','React','_urlService','onMissingChangesets','_snapshotServerService','off-line-single_clip0_910_343','COMPRESS_MUTATION_APPLY','LICENSE_MAX_UNITS_EXCEEDED','setAlpha','UNIVER_SHEET','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_clearTimeoutTimer','USERS_LEAVE','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','/resources','handleIRemoveRow','defineProperty','interceptor','list','serializeCombRequest','combineLatest','socket\x20open.','debug','b64DecodeUnicode','awaiting','serializeRangeWithSheet','sheetID','LocalUndoRedoService','restore','rxjs/operators','_cursor','_retryCount','RETRY_CONNECTING_INTERVAL','ERROR_IMAGE','searchParams','infoRsp','collaboration-client.offline-data-not-saved','COLORS','_lockTransition','getScrollXYByRelativeCoords','pushState','pauseCollaboration','NOT_COLLAB','_transitionLocked','createSocket','FileId','_beforeCloseService','_uiPartsService','clsx','_createHandler','YUUMI_UNABLE_LOAD_URL','?size=','fill','LIVESHARE_OPERATION','926062pYuBqA','conflict.title','fetchThroughInterceptors','remove','update','executeCommand','IContextService','onRemoteChangeset','_clearScheduledTask','getAncestorScale','xlink:href','JSONX','_startSheetCollabCursor','getCurrentUser','fromEvent','/block/','enableOfflineEditing','onRemoteAck','_undoStacks','row','m2Prime','SelectionManagerService','state$','src','extend','unknown','fetch_missing','@wendellhu/redi','JOINING','_onRecvEvent','Shape','type','univer-pro.collaboration-client-socket-service','onSyncEditingCollabCursor','TOO_MANY_REQUESTS','distinctUntilChanged','COLLAB_SUBMIT_CHANGESET_URL_KEY','UniverCollaborationClientPlugin','getImageSourceCache','_getAPIPrefix','onTransformRemoteChangesetByIMECache','collaborationUniverTypes','_onConflict','FromArray','defs','_localeService','_collabCursorState$','createIdentifier','_initStatusListener','fillRule','event$','RECV','InsertRangeMoveDownCommandId','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','disposeWithMe','href','filter','[PendingState]:\x20unhandled\x20univer\x20type:\x20','UniverCollaborationClient','editing\x20status\x20changed\x20to','_shapes','setParam','substring','_event$','rxjs','cursorInfo','AuthzIoHttpService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','RichTextEditingMutation','black','_injector','HELLO','/universer-api/snapshot/','createElement','c1Prime','fillText','addObject','isTransformMutationsWithChangesetFailure','round','handleInsertRangeMoveDown','reverse','_hideTimer','textEncoder','_transformService','_timeoutTimer','OFFLINE','transformIMECache','PERMISSION_REJ','31716460omnWlZ','DocSkeletonManagerService','_change$','_docTransformIMECacheService','isTransformMutationsWithChangesetSuccess','/object','_transformStack','icon','/unit/','m1Prime','12hbTKOH','FAIL','IMessageService','max','HTTPService','@univerjs/sheets','_docTransformSelectionsService','connection\x20error','@univerjs/docs','_onRemoteChangeset','saveChangeset','getCollabCursors$','OTHER_CLIENTS_EDITING','getActiveRange','clearInterval','Workbook','getInterceptPoints','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','IUniverInstanceService','COMPRESS_MUTATION_SEND','hasOwnProperty','_executeRemoteChangeset','SheetSkeletonManagerService','_docSyncEditingCollabCursorService','TextSelectionManagerService','subUnitId','@univerjs-pro/collaboration','onlineStatusIcon','parseChangesetToProtocol','sheetId','actions','LEAVE','resolve','getTypeOfUnitDisposed$','subscribe','COLLAB_WEB_SOCKET_URL_KEY','ITransformService','mapTo','UniverNetwork','unitId','[OfflineState]:\x20received\x20changeset.','univer-online','UniverIcon','NO_OTHER_CLIENTS_EDITING','push','_config','status','putCollaborators','_id','clipPath','replace','MessageType','_syncEditingCollabCursor','sessionStatus','SNAPSHOT_URL_KEY','SEND_CHANGESET_TIMEOUT','blue400','[CollaborationState]:\x20apply\x20error!','Starting','add','_hovered','_toggleOnline','symbol','Warning','forEach','saveImage','BASE64','_state','values','startColumn','lodash/debounce','set','labelPosition','getSheetId','isEditing','roomMembers','_isPermissionRej','UPDATE_CURSOR','_localCacheService','deepClone','_rescheduleHeartbeatEvent','univer-pro.collaboration-client.single-active-unit-service','changesets','reject','_checkMissing','[SyncedState]:\x20received\x20rejection.','map','LOCAL_CACHE_INTERVAL','_onConnectionOpen','isArray','_unitOnClients','getParam','[FetchMissState]','_replayCachedMutations','Ready','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','Tools','url(#off-line-single_clip0_910_343)','collabStatus.syncing','getCollabEntity$','JOIN','shareReplay','takeUntil','dispose$','_transformRemoteChangesetByIMECache','joinEvent','cmd','UNKNOWN_CMD','SEND_CHANGESET_TIMEOUT_KEY','BehaviorSubject','_removeCollabCursors','_getAPIPrefixPath','getDocObject','_drawRange','onload','objects','_sendHeartbeatTimer','/universer-api/file/{fileID}/sign-url','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','InsertRangeMoveRightCommandId','_disableEditing','range','PENDING','IUndoRedoService','_userManagerService','connectInjector','[CollaborationEntity]','_messageService','currentTheme$','NodePositionConvertToCursor','_docStateChangeManagerService','socket\x20close','Module','SNAPSHOT_INVALID_SNAPSHOT','UNKNOWN_CODE','M0\x200H16V16H0z','fetchMissingChangesets','purple300','_submitChangeset','title','createCollaborator','UserManagerService','univer-online-status','[CollaborationSession]','url','_docSkeletonManagerService','AWAITING_WITH_PENDING','Disposable','_joinRoom','_socketReady','_HTTPService','_logService','POST','CommandType','encode','_localStorageService','_updateCollabCursors','_updateState','0\x200\x2016\x2016','_scheduleHeartbeat','_ensureSubject','onTransformSelections','_collabSessionService','_scheduleCollaborationTimeoutTimer','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','triggerDblclick','_configService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','MSG_FOR_ERROR','_scheduleClearOtherTimer','objectType','_assignedColors','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','deserializeToCombResponse','onMouseMove','jiqing500','@univerjs/network','_sendingTimer','SetWorksheetActivateCommand','ranges','assignAColorForMemberID','image/bmp','ILocalStorageService','pipe','_onLocalMutation','arc','UniverDocs','_range','CollaborationStatusDisplay','CollaborationController','IDLE','snapshot','currentColor','_docSkeleton','_refRangeService','UNRECOGNIZED','_toggleOffline','transformMutationsWithChangeset','IRemoteInstanceService','_getSaveTimeout','NEW_CHANGESETS','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','transformMutation','leaveEvent','size','Vector2','session.connection-failed','IURLService','addImageSourceCache','toRgbString','encodeURIComponent','startRow','INGEST','_awaitingChangeset','setActiveRange','_getSignURL','FETCH_MISSING','_substituteUndoStack','registerHTTPInterceptor','updateCollaborator','hide','_getSheetObject','_singleActiveUnitService','INotificationService','code','getUnitStatus$','socketService','EffectRefRangId','LocalCacheService','evenodd','_getSendChangesetTimeout','userID','SNAPSHOT_HAS_BEEN_REMOVED','_undoRedoService','doc.mutation.rich-text-editing','UNDEFINED','storage','baseRev','_labelPosition','string','_getScale','members','HEARTBEAT','batchAllowed','_getUndoStack','?url=','WorkbookEditablePermission','_syncEditingCollabCursorService','submit\x20changeset\x20error!','LIVESHARE_REQUEST_HOST','_revisionService','_getRedoStack','LICENSE_IMPORT_SIZE_EXCEEDED','updateOfflineData','status$','LIVESHARE_TERMINATE','_setupBeforeClosingHandler','_clearCollaborationTimeoutTimer','_handleHeartbeatEvent','_onRemoteRejected','HEARTBEAT_INTERVAL_KEY','Rect','catch','contains','RemoveColCommandId','_entityInit$','onlyLocal','drawWith','_entities','_updateLocalCursor','COLLAB_WEB_SOCKET_URL','SetTextSelectionsOperation','getMergeData','_http','failed\x20to\x20apply\x20missed\x20changesets!','SnapshotService','delete','DisposableCollection','DataLoaderController','@univerjs/sheets-ui','getCurrentUnitForType','CHANGESET_ACK','length','[SyncedState]:\x20received\x20acknowledgement.','roomMembers$','transformUndoRedo','getOffsetConfig','\x20to\x20','1rDvNvv','replaceTextRanges','_sessionStatus$','RevisionService','\x0aCurrent:\x20','_showConflictNotification','_cursors','online','collab-text-anchor-','serializeTextRange','_permissionService','getCurrent','uni.network.url-service','_updateURLWithCurrentState','concat','getResourcesRequest','_handler','width','_incrementRevisionNumber','c2Prime','getSheetBlock','_anchorDot','ImageUploadStatusType','_clearHeartbeatTimer','SUBMIT_CHANGESET','_onCursorUpdate','svg','HEARTBEAT_TIMEOUT_KEY','_render','OnLineSingle','_handleJoinEvent','take','CompressMutationService','endColumn','_onUserJoin','_eventUnsubscribe','@univerjs/engine-render','Steady','_members','function','_sheetSkeletonManagerService','localeService','\x20in\x20_schedule.','_handleHover','_scheduleTimestamp','apply','toString','ACTIVE_UNIT_EVENT_CHANNEL','debounceTime','_handleLeaveEvent','liveShareOperation','IBeforeCloseService','[CollaborationSessionService]','state','LICENSE_EXPORT_SIZE_EXCEEDED','getUnitId','_setupSubUnitSync','font','reduce','_online','_univerInstanceService','rev','result','CollaborationEvent','roomInfos','IMEInputManagerService','_renderManagerService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','@univerjs/ui','beginPath','onSendChangeset','prototype','612514aNpFhC','getActiveSheet','subunit','_getLoginPath','DesktopCollaborationStatusDisplayController','ISnapshotServerService','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','Optional','_draw','3529899vacYyS','min','isActive','SUCCUSS','target','/-/object/list','_getMergeRange','univer-online-status-icon','VIEW_MAIN','updateMember','handleDeleteRangeMoveLeft','getItem','_substituteRedoStack','ThemeService','children','[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.','_socket$','selection','_compressMutationService','/rev/','_unitId','WebURLService','clearTimeout','getOwnPropertyDescriptor','transformByState','top','get','getSelections','with','collabStatus.synced','_selfUnitIDs','_onConnectionFailed','fetching\x20missing\x20changesets\x20from\x20','unitID','saveSnapshot','tag','UniverUi','IPermissionService','MUTATION','DocStateChangeManagerService','loadDoc','_sessions','PERMISSION_DENIED','@univerjs/drawing','@univerjs/core','save','ILogService','csAckEvent','currentSkeleton$','append','handleDeleteRangeMoveUp','DEFAULT_FILE_NAME','path','getCoordByCell','getValue','_fetchMissChangesets','_unlockTransition','_updateLocalCache','_collaborationPaused','CHANGESET_REJ','_applyRemoteChangeset','call','Inject','Subject','_transformIMECache','_exhaustRemoteChangesetQueue','PSEUDO_FETCH_MISSING_RESULT','_lastPointer','ICollaborationSocketService','_getCtorByUniverType','joinRsp','/collaborator','readAsDataURL','textRanges','collab-text-range-','COLLAB_SUBMIT_CHANGESET_URL','_loadDoc','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','IRenderManagerService','_transformPreviousActiveRange','_retryConnectingTimer','APPLY_NON_SEQUENTIAL_REVISION','toggleOffline','_getAnchorBounding','Unknown\x20user','red300','updateCursorEvent','gold400','switchMap','whenReady','urlChange$','session.will-retry','useObservable','AUTHZ_URL_KEY','getRenderById','getFocusedUnit','Univer','getMember','TEXT_RANGE_LAYER_INDEX','_schedule','handleInsertCol','_socket','INVALID_ARGUMENT','params','_unitID','_getUploadFileURL','has','_imageSourceCache','slice','open$','_color','post','roles','getSheetBySheetId','_socketMessageSubscription','complete','COMPLETION_FINISHED','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','listCollaborators','_createInitialState','APPLY_REJECT','SetSelectionsOperation','merge','session','getMemberID','clear','ICommandService','sessionStatus$','dispose','_startDocCollabCursor','_updateSubUnitFromURLParams','univer-online-status-title','indexOf','permission.title','_hover','_onRefRangeChange','_clearRedo','forwardRef','/allowed','_saveTaskMap','_loadSheet','FETCH_MISS','getTime','6941691HdrOaE','_onCursorDelete','LIVESHARE_NEW_HOST','USERS_ENTER','_handleEvent','fillStyle','attrs','#fff','_startCollaboration','_onUserLeave','collaboration.single-unit.warning','_status$','toggleOnline','onPointerEnterObserver','_drawAnchor','CollaborationSessionService','_collaborationTimeoutTimer','collaMsg','_commandService','collabStatus.notCollab','_scene','registerRefRange','_notificationService','create','_roomMembers','_disabled','activeSheet$','_state$','RxDisposable','revision','auth.needGotoLoginAlert','[OfflineState]:\x20received\x20rejection.','_collabCursorController','120FRcCQl','on-line-single_clip0_910_349','generateRandomId','_send','Error','name','error','CollaborationSocketService'];_0x23f5=function(){return _0xea93f5;};return _0x23f5();}
|