@univerjs-pro/collaboration-client 0.2.4 → 0.2.5

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.
Files changed (22) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/es/index.js +1 -1
  3. package/lib/types/controllers/collab-cursor/__tests__/doc-collab-cursor.controller.spec.d.ts +1 -2
  4. package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +1 -2
  5. package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +1 -2
  6. package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +1 -2
  7. package/lib/types/controllers/collab-status/collab-status.controller.d.ts +1 -2
  8. package/lib/types/controllers/collaboration/__tests__/mock-text-selection-render-manager.service.d.ts +1 -1
  9. package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +1 -2
  10. package/lib/types/controllers/collaboration/collaboration-state.d.ts +1 -2
  11. package/lib/types/controllers/collaboration/collaboration.controller.d.ts +1 -2
  12. package/lib/types/plugin.d.ts +1 -2
  13. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +1 -2
  14. package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +1 -1
  15. package/lib/types/services/permission/permission.service.d.ts +1 -2
  16. package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +1 -1
  17. package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +1 -1
  18. package/lib/types/services/socket/collaboration-socket.service.d.ts +1 -1
  19. package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +1 -1
  20. package/lib/types/services/url/url.service.d.ts +1 -1
  21. package/lib/umd/index.js +1 -1
  22. package/package.json +26 -28
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4e3f(){const _0x4720aa=['@univerjs/design','_initModules','symbol','UniverNetwork','OnLifecycle','random','amd','roles','clsx','_univerInstanceService','open$','shouldCloseConn','_initStatusComponent','defineProperty','getValue','NOT_COLLAB','[CollaborationUndoRedoService]','getItem','LocalUndoRedoService','rxjs/operators','CommentService','textRanges','baseRev','_change$','reduce','offline','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_getCurrentRevision','members','_revisionService','interceptor','getCurrentUser','Optional','collaboration-client.offline-data-not-saved','_startDocCollabCursor','collaborationUniverTypes','getCollabEntity','_imageSourceCache','headers','error$','_schedule','_updateLocalCursor','status$','_transformSelections','_queuedRemoteChangesets','_injector','pipe','_snapshotServerService','setInterval','href','batchAllowed','isArray','_http','INVALID_ARGUMENT','serializeTextRange','EffectRefRangId','syncEditingCollabCursor','arc','registerOnClose','unitId','with','_disabled','_range','_createSocket','[OfflineState]:\x20received\x20rejection.','push','_logService','transformSelections','DEFAULT_FILE_NAME','SheetsSelectionsService','ILocalStorageService','all','unitID','asObservable','connection\x20error','_hideTimer','c1Prime','getUndoRedoMutationParamsCache','UniverSheets','_onLocalMutation','joinRsp','liveShareOperation','UniverUi','color','HEADER_MENU','toStringTag','_substituteUndoStack','getSheetObject','univer-pro.collaboration-client.single-active-unit-service','unload','_toggleOffline','_clearUndo','HTTPService','_getSendChangesetTimeout','editing\x20status\x20changed\x20to','getUnitType','userID','size','ALREADY_EXISTS','transformRemoteChangeset','take','_memberService','UNIVER_SLIDE','CollaborationStatusDisplay','_entityInit$','_initStatusListener','min','_collabSessionService','JOINING','_clearHeartbeatTimer','params','updateOfflineData','99fGRIcT','_urlService','fillStyle','sheets','getImageSourceCache','SetWorksheetActivateCommand','APPLY_REJECT','onRemoteChangeset','getDocObject','UNRECOGNIZED','IMessageService','transform','FETCH_MISSING','add','_getAPIPrefixPath','transformByState','toString','toRgbString','catch','_getMergeRange','_collaborationController','_onConflict','data','VIEWPORT_KEY','hovered','_HTTPService','[OfflineState]:\x20received\x20changeset.','IUndoRedoService','onTransformSelections','Tools','ICollaborationSocketService','_unlockTransition','row','createElement','popstate','createIdentifier','xlink:href','_onUserLeave','_docSyncEditingCollabCursorService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_updateState','defIds','clear','Starting','@univerjs/docs','_onRecvEvent','VIEW_MAIN','_saveCache','change$','443975lLQplB','name','ERROR_IMAGE','[DataLoaderController]','AuthzIoHttpService','title','code','textEncoder','@univerjs-pro/collaboration','_sendHeartbeatTimer','LIVESHARE_OPERATION','dispose','_cursorInfo$','APPLY_REVISION_CONFILICT','_initUnitPermissionChange','_scheduleClearOtherTimer','saveOfflineData','disposeWithMe','reverse','\x20to\x20','_sessions','OffLineSingle','labelPosition','SYNCED','/object','auth.needGotoLoginAlert','_handleJoinEvent','PERMISSION_REJ','_removeRoom','_undoStacks','json','createSocket','_onCursorUpdate','takeUntil','append','ColorKit','_clearRedo','_applyRemoteChangeset','1293180arngcp','CHANGESET_ACK','key','_initCloseConn','fetch_missing','_acknowledgedAwaitingChangeset','NodePositionConvertToCursor','onTransformIME','fromEvent','HEARTBEAT_TIMEOUT_KEY','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','LICENSE_DISTRO_REJECTED','JSONX','_tryEnsureSocket','SNAPSHOT_INVALID_SNAPSHOT','SetSelectionsOperation','_clearOtherTimers','SNAPSHOT_HAS_BEEN_REMOVED','selection','getColor','Disposable','DataLoaderController','TextSelectionManagerService','onlyLocal','univer-offline','getTime','collab-text-anchor-','state','show','SHOULD_CLOSE_CONN','debounce','isPermissionRej','DesktopCollaborationStatusDisplayController','_clearCollaborationTimeoutTimer','image/bmp','getCoordByCell','resend','operators','COLLAB_SUBMIT_CHANGESET_URL_KEY','file','UNIVER_DOC','onStateChange','subscribe','endColumn','currentTheme$','_localCacheService','/allowed','Rect','_drawAnchor','[CollaborationSession]','IImageIoService','newValue','_sendHeartbeat','_redoStacks','/universer-api/authz','_saveTaskMap','awaiting','initWorkbookPermissionChange','_compressMutationService','_awaitingChangeset','closeSession','deserializeToCombResponse','revision','AUTHZ_URL_KEY','EXCHANGE_SIGN_URL_SERVER_URL_KEY','some','apply','_onFetchMissResult','listCollaborators','text','RxDisposable','DocStateChangeManagerService','React','YUUMI_URL_COL_OUT_OF_RANGE','_roomMembers$','_collaborationSessionService','CollaborationController','[PendingState]:\x20received\x20acknowledgement.','_labelPosition','_ws','exports','getViewModel','ImageUploadStatusType','changesets','/rev/','status','displayName','setTimeout','_init','black','RETRY_CONNECTING_INTERVAL','toDisposable','onRemoteAck','/-/object/-/batch_allowed','enableOfflineEditing','FAIL','pending','ImageIoService','_handler','PENDING','_lockTransition','MSG_FOR_ERROR','\x20-\x20','disableLocalCache','parseChangesetToProtocol','debounceTime','updatePermissionObjEvent','children','collaboration.closeRoom','on-line-single_clip0_910_349','_renderManagerService','UNDEFINED','transformStack\x20failed!','RevisionService','createCollaborator','@wendellhu/redi/react-bindings','svg','_onConnectionOpen','Subject','_removeClearOtherTimer','InsertColCommandId','failed\x20to\x20apply\x20missed\x20changesets!','height','event$','handleDeleteRangeMoveLeft','getUnhiddenWorksheets','OnLineSingle','_decreaseWaiting','UniverCollaborationClientPlugin','className','setCurrentUser','_getSignURL','pushState','mutations','isTransformMutationsWithChangesetSuccess','PSEUDO_FETCH_MISSING_RESULT','YUUMI_UNABLE_LOAD_URL','COLLAB_WEB_SOCKET_URL_KEY','_drawRange','InsertRangeMoveDownCommandId','focused$','startsWith','LICENSE_IMPORT_SIZE_EXCEEDED','reject','round','_socket','USERS_LEAVE','has','_color','SessionStatus','handleInsertRangeMoveDown','getDataModel','MessageType','_refRangeService','LEAVE','getTypeOfUnitDisposed$','location','getActiveSheet','_state','_handleLeaveEvent','socket\x20close','#FFF','UPDATE_PERMISSION_OBJ','max','onPointerMove$','compose','propertyIsEnumerable','_localStorageService','ONLINE','[SyncedState]:\x20received\x20rejection.','0\x200\x2016\x2016','setParam','loadSheet','LICENSE_MAX_UNITS_EXCEEDED','[CollaborationSessionService]','fromCollab','LOGIN_URL_KEY','LIVESHARE_NEW_HOST','stringify','whenReady','fillRule','parse','complete','getViewport','LICENSE_EXPORT_SIZE_EXCEEDED','_getLoginPath','measureText','getUnitOnRev','_status$','OTHER_CLIENTS_EDITING','get','_anchorDot','setItem','SetTextSelectionsOperation','listRoles','isTransformChangesetsSuccess','objectType','UniverRpc','_scene','UNAUTHENTICATED','mapTo','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_retryCount','selections','_render','beginPath','LocalCacheService','permission.title','[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.','useRef','list','online','_getDocObject','putCollaborators','/block/','setShapeProps','deleteCollaborator','endRow','NOT_FOUND','_messageService','readAsDataURL','setActiveRange','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','ThemeService','_scheduleSaving','memberID','then','_fetchMissChangesets','image/jpg','_updateLocalCache','IRenderManagerService','restore','getAncestorScale','_onJoinRoomEvent','current','_clearScheduledTask','#fff','[PendingState]:\x20unhandled\x20univer\x20type:\x20','icon','shareReplay','url(#$1','HELLO','HEARTBEAT_TIMEOUT','bottom','delay','_hovered','_substituteRedoStack','getOwnPropertyDescriptor','collabCursorState$','_waitForHeartbeatResponse','HEARTBEAT_INTERVAL','&to=','send','slice','INGEST','ImageSourceType','DocSkeletonManagerService','getActiveRange','error','updateCollaborator','[UniverCollaborationClientPlugin]','WebSocketService','transformIMECache','gold400','_unitID','socketService','_colorIndex','fill','LIVESHARE_TERMINATE','exhaustSavingTask','_localeService','_handleEvent','from','_getAnchorBounding','_socketReady','top','startRow','_cursors','_transformUndoRedoStack','incrementRevForDocument','_singleActiveUnitService','_replayCachedMutations','_startCollaboration','unit','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','merge','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','c2Prime','@univerjs/ui','use','WebURLService','onlineStatus','3069300ORpRjM','FileId','@univerjs/engine-render','commentUpdate$','_removeCollabCursors','Module','forEach','getCurrentSelections','commentUpdateEvent','_docTransformIMECacheService','verdancy600','COMPRESS_MUTATION_APPLY','\x20in\x20_schedule.','roomInfos','_online','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','@univerjs/sheets','doc.mutation.rich-text-editing','resolve','not_collab','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','handleInsertCol','_socketMessageSubscription','on-line-single','_unitOnClients','findNodePositionByCharIndex','mergeOverrideWithDependencies','updatePermissionPoint','colorChannel1','_handleHeartbeatEvent','onCommentUpdate','4nfvfbs','makeDirty','saveChangeset','create','SheetCollabCursorShape','_shapes','CollaborationSessionService','RegularPolygon','Warning','POST','_lastPointer','setAlpha','_disableEditing','COMPRESS_MUTATION_SEND','/-/object/list','_collabCursorController','CommandType','sheetId','permission.content','getCollabEntity$','CONFLICT','IMEInputManagerService','WorkbookEditablePermission','save','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','react','_getRedoStack','@univerjs/rpc','awaitingChangeset','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','switchMap','onlineStatusTitle','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[CollaborationEntity]','UniverCollaborationPlugin','_createInitialState','split','UNKNOWN_CMD','[CollaborationSessionService]:\x20socket\x20error','DeleteRangeMoveLeftCommandId','flatMap','includes','synced','originalMeta','22463AmkUyA','_getSaveTimeout','COMPLETION_FINISHED','attrs','trim','serializeCombRequest','_state$','_initMergeInterceptor','resourceIDs','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_transformStack','getParam','toggleOnline','sessionStatus','SUBMIT_CHANGESET','unshift','_cursor','_exhaustRemoteChangesetQueue','COLORS','LIVESHARE_REQUEST_HOST','update','UniverEngineFormula','onMouseMove','_loadSheet','collaMsg','createInstance','_clearLocalCache','/new_changes','evenodd','clearInterval','MUTATION','onTransformRemoteChangesetByIMECache','Workbook','NO_OTHER_CLIENTS_EDITING','_document','IPermissionService','getConfig','BuiltInUIPart','infoRsp','put','triggerDblclick','_pendingMutations','_collaborationTimeoutTimer','\x0aCurrent:\x20','_executeRemoteChangeset','_onRefRangeChange','objectActions','/collaborator','_onCursorDelete','unknown','_getCtorByUniverType','_getUndoStack','getRoom','XHRHTTPImplementation','image/jpeg','onSyncEditingCollabCursor','\x0aAfter:\x20','getFocusedUnit','tag','/universer-api/snapshot/','CHANGESET_REVISION_CONFILICT','indexOf','parseProtocolChangeset','method','path','_transitionLocked','transformChangesets','5367555EzVRjU','_members','deepClone','_userManagerService','combineLatest','session.connection-failed','localeService','_cachedData','_beforeCloseService','values','_assignedColors','pluginName','_waitCount','_ensureSubject','Ready','_socket$','collabStatus.offline','_transformRemoteChangesetByIMECache','TOO_MANY_REQUESTS','urlChange$','hide','_onConnectionFailed','20067iuvKsH','_colorAssignService','_clearTimeoutTimer','UPDATE_CURSOR','univer-online','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','currentSkeleton$','_unitId','_updateURLWithCurrentState','LocaleService','IURLService','entries','SheetPermissionInitController','setWaitCount','/fetchmissing?from=','hasOwnProperty','addObject','editingUnit','Shape','mapDocumentTypeToUniverType','getInterceptPoints','/universer-api/stream/file/upload','isTransformMutationsWithChangesetFailure','_transformService','MoveRangeCommandId','_httpService','setUndoRedoMutationParamsCache','getMergeData','searchParams','transformUndoRedo','onRemoteRej','_entities','rgba(255,\x20255,\x20255,\x200.01)','_collabCursorState$','b64DecodeUnicode','set','encodeURIComponent','getRangePointData','_anchor','sequenceExecute','_commentService','UniverDesign','/object/','IUniverInstanceService','lodash/debounce','replaceTextRanges','assignAColorForMemberID','snapshot','CollaborationSession','ITransformService','_docTransformSelectionsService','RECV','getSheetBySheetId','BASE64','saveSnapshot','rxjs','close','connectInjector','getUnitStatus$','_handleHover','substring','init','idSuffix','Injector','addEventListener','ILogService','IDLE','unsubscribe','_replaceFileID','getSheetId','?size=','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','_getSheetObject','url','getCellPositionByOffset','removeParam','LIVESHARE_FETCH_OPERATIONS','_setupSubUnitSync','UNIVER_COLLABORATION_CLIENT_PLUGIN','off-line-single_clip0_910_343','FromArray','history','InsertRangeMoveRightCommandId','off-line-single','isActive','APPLY_PERMISSION_DENIED','SNAPSHOT_SERVER_URL_KEY','1em','getVpScrollXYInfoByPosToVp','updateMember','_permissionService','post','M0\x200H16V16H0z','RemoveRowCommandId','_type','28LGCPzk','IHTTPImplementation','column','_isPermissionRej','UNIVER_UNKNOWN','...','_syncEditingCollabCursor','getTypeOfUnitAdded$','_timeoutTimer','IContextService','registerBeforeClose','result','_heartbeatTimer','useDependency','loadOfflineData','executeCommand','call','body','Error','width','TEXT_RANGE_LAYER_INDEX','patch','docStateChange$','closePath','roomMembers$','_commentUpdate$','_incrementRevisionNumber','isTransformMutationFailure','_snapshotService','_event$','_name','requireSession','sessionStatus$','div','COLLAB_WEB_SOCKET_URL','_onRemoteRejected','dispose$','find','map','UNIVER_SHEET','generateRandomId','appendMutation','actions','csAckEvent','InsertRowCommandId','_eventUnsubscribe','_sheetTransformSelectionsService','_session','CompressMutationService','isInternalEditorID','translate(.97)','liveShareNewHost','subunit','handleDeleteRangeMoveUp','JOIN','collabStatus.conflict','@univerjs/engine-formula','addObjects','collabStatus.synced','prototype','extend','LifecycleStages','m1Prime','session.will-retry','_toggleOnline','onCommandExecuted','_onCombEvent','CollaborationSocketService','UUID','ICommandService','blue400','collaboration.single-unit.warning','Inject','joinEvent','getMemberID','SheetCollaborationEntity','handleInsertRangeMoveRight','fetchThroughInterceptors','_scheduleReconnection','image/gif','@univerjs/sheets-ui','_id','onSendChangeset','_backgroundColor','removeMember','_sendingTimer','CollaborationEvent','transformMutation','_docStateChangeManagerService','_config','session','IUIPartsService','CHANGESET_REJ','_hover','src','BehaviorSubject','AWAITING_WITH_PENDING','cmd','_roomMembers','_loadDoc','@univerjs/network','RemoveColCommandId','_send','_socketService','next','forwardRef','getMember','DisposableCollection','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','length','registerRefRange','subscribeEvent','@wendellhu/redi','Plugin','onPointerEnter$','[SyncedState]:\x20received\x20acknowledgement.','ISnapshotServerService','/unit/','concatMap','Unknown\x20user','addImageSourceCache','cursorInfo$','_collaborationPaused','getCollabCursors$','replaceState','_scheduleHeartbeat','delete','@univerjs/core','debug','Vector2','_docSkeletonManagerService','deserializeRangeWithSheet','action','_scheduleTimestamp','onMissedChangesetFetched','IRemoteInstanceService','_draw','concat','_sheetSkeletonManagerService','_onRemoteACK','IConfigService','range','UniverInstanceType','UniverDocs','saveSheetBlock','cursorInfo','_selfUnitIDs','save\x20fail\x20reason\x20is\x20','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','serializeRangeWithSheet','_getSnapshotAPIPrefix','_setupBeforeClosingHandler','/universer-api/comb','fillText','_commandService','objectID','LOCAL_CACHE_INTERVAL','getRenderById','USERS_ENTER','clearTimeout','function','disposeUnit','image/png','sheetID','currentColor','SNAPSHOT_URL_KEY','routeKey','_updateCollabCursors','registerComponent','@univerjs/drawing','target','toggleOffline','newCsEvent','UniverDrawing','_retryConnectingTimer','collabStatus.notCollab','eventID','requestParams','type','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','message$','_sessionStatus$','string','NEW_CHANGESETS','defs','assign','HEARTBEAT','_joinRoom','state$','confirm','FETCH_MISS','conflict.content','OFFLINE','getCurrentRevForDocument','_themeService','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_submitChangeset','_scheduleCollaborationTimeoutTimer','8UqfLin','_getUploadFileURL','SEND_CHANGESET_TIMEOUT','_configService','m2Prime','UNKNOWN_CODE','RefRangeService','getUnitId','_syncEditingCollabCursorService','filter','APPLY_NON_SEQUENTIAL_REVISION','_startSheetCollabCursor','UniverCollaborationClient','_remoteChangesetQueue','_undoRedoService','lineTo','_onMessage','_createInitialStateImpl','_getScale','fetchMissingChangesets','encode','_updateSubUnitFromURLParams','registerHTTPInterceptor','subUnitId','skeleton','_createHandler','awaiting_with_pending','PERMISSION_DENIED','getCurrentUnitForType','[FetchMissState]','DependentOn','_getAPIPrefix','_onRemoteChangeset','SnapshotServerOverHTTPService','drawWith','/role','CollaborationStatus','_updateStatus','none','_unitStatus','COMMENT_UPDATE','_rescheduleHeartbeatEvent','submit\x20changeset\x20error!','close$','transformMutationsWithChangeset','567070dMJdpt','ranges','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','_checkMissing','getResourcesRequest','ERROR_EXCEED_SIZE','univer-online-status-title','INTERNAL_ERROR','UniverIcon','_notificationService','_textBubble','_transformIMECache'];_0x4e3f=function(){return _0x4720aa;};return _0x4e3f();}function _0x2301(_0x589ac2,_0x554653){const _0x4e3f1c=_0x4e3f();return _0x2301=function(_0x230114,_0x389d3a){_0x230114=_0x230114-0x130;let _0x13cf3d=_0x4e3f1c[_0x230114];return _0x13cf3d;},_0x2301(_0x589ac2,_0x554653);}(function(_0x495513,_0x3bc793){const _0x3ad2a9=_0x2301,_0x57d99c=_0x495513();while(!![]){try{const _0x44e1e1=parseInt(_0x3ad2a9(0x192))/0x1*(parseInt(_0x3ad2a9(0x24a))/0x2)+parseInt(_0x3ad2a9(0x1eb))/0x3*(-parseInt(_0x3ad2a9(0x166))/0x4)+-parseInt(_0x3ad2a9(0x33d))/0x5+-parseInt(_0x3ad2a9(0x147))/0x6+parseInt(_0x3ad2a9(0x3ea))/0x7+parseInt(_0x3ad2a9(0x310))/0x8*(-parseInt(_0x3ad2a9(0x1d5))/0x9)+-parseInt(_0x3ad2a9(0x410))/0xa*(-parseInt(_0x3ad2a9(0x3b9))/0xb);if(_0x44e1e1===_0x3bc793)break;else _0x57d99c['push'](_0x57d99c['shift']());}catch(_0x55f3c9){_0x57d99c['push'](_0x57d99c['shift']());}}}(_0x4e3f,0x4c979),function(_0x42561d,_0x40450b){const _0x3f3736=_0x2301;typeof exports=='object'&&typeof module<'u'?_0x40450b(exports,require(_0x3f3736(0x2c9)),require('@univerjs/sheets'),require(_0x3f3736(0x349)),require(_0x3f3736(0x143)),require('@univerjs-pro/collaboration'),require(_0x3f3736(0x2ba)),require(_0x3f3736(0x222)),require(_0x3f3736(0x35c)),require(_0x3f3736(0x3e5)),require(_0x3f3736(0x2ae)),require(_0x3f3736(0x2f3)),require(_0x3f3736(0x282)),require('lodash/debounce'),require(_0x3f3736(0x149)),require(_0x3f3736(0x29a)),require('@wendellhu/redi/react-bindings'),require(_0x3f3736(0x17f)),require('clsx'),require(_0x3f3736(0x181))):typeof define==_0x3f3736(0x2ea)&&define[_0x3f3736(0x34f)]?define([_0x3f3736(0x460),_0x3f3736(0x2c9),_0x3f3736(0x157),_0x3f3736(0x349),_0x3f3736(0x143),_0x3f3736(0x3f2),_0x3f3736(0x2ba),_0x3f3736(0x222),'rxjs/operators',_0x3f3736(0x3e5),_0x3f3736(0x2ae),'@univerjs/drawing',_0x3f3736(0x282),_0x3f3736(0x217),'@univerjs/engine-render',_0x3f3736(0x29a),_0x3f3736(0x483),'react',_0x3f3736(0x351),_0x3f3736(0x181)],_0x40450b):(_0x42561d=typeof globalThis<'u'?globalThis:_0x42561d||self,_0x40450b(_0x42561d[_0x3f3736(0x31c)]={},_0x42561d['UniverCore'],_0x42561d[_0x3f3736(0x397)],_0x42561d[_0x3f3736(0x214)],_0x42561d[_0x3f3736(0x39b)],_0x42561d['UniverCollaboration'],_0x42561d[_0x3f3736(0x2ba)],_0x42561d[_0x3f3736(0x222)],_0x42561d[_0x3f3736(0x222)][_0x3f3736(0x435)],_0x42561d[_0x3f3736(0x2d9)],_0x42561d[_0x3f3736(0x34c)],_0x42561d[_0x3f3736(0x2f7)],_0x42561d[_0x3f3736(0x1a7)],_0x42561d['lodash'][_0x3f3736(0x42e)],_0x42561d['UniverEngineRender'],_0x42561d['UniverSheetsUi'],_0x42561d[_0x3f3736(0x483)],_0x42561d[_0x3f3736(0x458)],_0x42561d[_0x3f3736(0x351)],_0x42561d[_0x3f3736(0x4d5)]));}(this,function(_0x99db31,_0x495bbc,_0x344713,_0x153393,_0x510d97,_0x2a1cda,_0xff0938,_0x11b67e,_0x3e7fcd,_0x257327,_0x19613,_0x2369bd,_0x4da4df,_0x5be5a1,_0x4ec763,_0x3630b0,_0x3dcb78,_0x593db6,_0x592c4d,_0x1ffb28){'use strict';const _0x4b1ec3=_0x2301;var _0x26e2f4=Object[_0x4b1ec3(0x356)],_0x34aa51=(_0x2da2ef,_0x538bcd,_0x1a3ef4)=>_0x538bcd in _0x2da2ef?_0x26e2f4(_0x2da2ef,_0x538bcd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a3ef4}):_0x2da2ef[_0x538bcd]=_0x1a3ef4,_0x5d8027=(_0x5e3634,_0x3d90c0,_0x4aa926)=>_0x34aa51(_0x5e3634,typeof _0x3d90c0!=_0x4b1ec3(0x34b)?_0x3d90c0+'':_0x3d90c0,_0x4aa926);const _0xd3e7a0=_0x4b1ec3(0x241),_0x6829da='/universer-api/snapshot',_0x53202c=_0x4b1ec3(0x2ef),_0x432ad5=_0x4b1ec3(0x312),_0x10840c=_0x4b1ec3(0x26c),_0x156730='ws://127.0.0.1:8000/universer-api/comb/connect',_0x2d4fc5=_0x4b1ec3(0x50a),_0x137805=_0x4b1ec3(0x502),_0x59a48f=_0x4b1ec3(0x46a),_0x556fbe='RETRY_CONNECTING_MAX_COUNT',_0x514191=_0x4b1ec3(0x2e6),_0x339c6c='COLLAB_SUBMIT_CHANGESET_URL',_0x2dd5c6=_0x4b1ec3(0x2e2),_0x517cd6='LOGIN_URL_KEY',_0x5d76ae='/universer-api/oidc/authpage';var _0x357dad=(_0x4a9449=>(_0x4a9449[_0x4a9449['UNDEFINED']=0x0]=_0x4b1ec3(0x47f),_0x4a9449[_0x4a9449['OK']=0x1]='OK',_0x4a9449[_0x4a9449[_0x4b1ec3(0x344)]=0x2]=_0x4b1ec3(0x344),_0x4a9449[_0x4a9449[_0x4b1ec3(0x32b)]=0x3]='PERMISSION_DENIED',_0x4a9449[_0x4a9449[_0x4b1ec3(0x4ea)]=0x4]=_0x4b1ec3(0x4ea),_0x4a9449[_0x4a9449[_0x4b1ec3(0x4d7)]=0x5]=_0x4b1ec3(0x4d7),_0x4a9449[_0x4a9449[_0x4b1ec3(0x3ab)]=0x6]=_0x4b1ec3(0x3ab),_0x4a9449[_0x4a9449[_0x4b1ec3(0x37e)]=0x7]=_0x4b1ec3(0x37e),_0x4a9449[_0x4a9449['TOO_MANY_REQUESTS']=0x8]=_0x4b1ec3(0x1e7),_0x4a9449[_0x4a9449[_0x4b1ec3(0x194)]=0x9]=_0x4b1ec3(0x194),_0x4a9449[_0x4a9449['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x4b1ec3(0x1ce),_0x4a9449[_0x4a9449[_0x4b1ec3(0x41e)]=0x1771]=_0x4b1ec3(0x41e),_0x4a9449[_0x4a9449[_0x4b1ec3(0x421)]=0x1772]=_0x4b1ec3(0x421),_0x4a9449[_0x4a9449[_0x4b1ec3(0x3bf)]=0x1b59]='APPLY_REJECT',_0x4a9449[_0x4a9449[_0x4b1ec3(0x31a)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x4a9449[_0x4a9449[_0x4b1ec3(0x3f7)]=0x1b5b]=_0x4b1ec3(0x3f7),_0x4a9449[_0x4a9449[_0x4b1ec3(0x240)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x4a9449[_0x4a9449['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x4a9449[_0x4a9449['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4b1ec3(0x4bd),_0x4a9449[_0x4a9449[_0x4b1ec3(0x363)]=0x232a]=_0x4b1ec3(0x363),_0x4a9449[_0x4a9449[_0x4b1ec3(0x49e)]=0x232b]=_0x4b1ec3(0x49e),_0x4a9449[_0x4a9449[_0x4b1ec3(0x4c8)]=0x232c]=_0x4b1ec3(0x4c8),_0x4a9449[_0x4a9449[_0x4b1ec3(0x41b)]=0x232d]=_0x4b1ec3(0x41b),_0x4a9449[_0x4a9449['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x4b1ec3(0x498),_0x4a9449[_0x4a9449['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x4b1ec3(0x459),_0x4a9449[_0x4a9449[_0x4b1ec3(0x3c2)]=-0x1]=_0x4b1ec3(0x3c2),_0x4a9449))(_0x357dad||{}),_0x1ffbf2=(_0x50f7a5=>(_0x50f7a5[_0x50f7a5[_0x4b1ec3(0x24e)]=0x0]=_0x4b1ec3(0x24e),_0x50f7a5[_0x50f7a5[_0x4b1ec3(0x438)]=0x1]=_0x4b1ec3(0x438),_0x50f7a5[_0x50f7a5[_0x4b1ec3(0x271)]=0x2]=_0x4b1ec3(0x271),_0x50f7a5[_0x50f7a5[_0x4b1ec3(0x3af)]=0x3]='UNIVER_SLIDE',_0x50f7a5[_0x50f7a5[_0x4b1ec3(0x3c2)]=-0x1]=_0x4b1ec3(0x3c2),_0x50f7a5))(_0x1ffbf2||{}),_0x3dfcc2=(_0x5cc285=>(_0x5cc285[_0x5cc285[_0x4b1ec3(0x18b)]=0x0]='UNKNOWN_CMD',_0x5cc285[_0x5cc285[_0x4b1ec3(0x501)]=0x1]=_0x4b1ec3(0x501),_0x5cc285[_0x5cc285[_0x4b1ec3(0x280)]=0x2]=_0x4b1ec3(0x280),_0x5cc285[_0x5cc285[_0x4b1ec3(0x4aa)]=0x3]=_0x4b1ec3(0x4aa),_0x5cc285[_0x5cc285[_0x4b1ec3(0x50e)]=0x4]=_0x4b1ec3(0x50e),_0x5cc285[_0x5cc285[_0x4b1ec3(0x304)]=0x5]='HEARTBEAT',_0x5cc285[_0x5cc285[_0x4b1ec3(0x21e)]=0x6]=_0x4b1ec3(0x21e),_0x5cc285[_0x5cc285[_0x4b1ec3(0x3c2)]=-0x1]=_0x4b1ec3(0x3c2),_0x5cc285))(_0x3dfcc2||{}),_0xb11f76=(_0x19daf6=>(_0x19daf6[_0x19daf6[_0x4b1ec3(0x315)]=0x0]='UNKNOWN_CODE',_0x19daf6[_0x19daf6['OK']=0x1]='OK',_0x19daf6[_0x19daf6[_0x4b1ec3(0x46f)]=0x2]='FAIL',_0x19daf6[_0x19daf6[_0x4b1ec3(0x3c2)]=-0x1]=_0x4b1ec3(0x3c2),_0x19daf6))(_0xb11f76||{}),_0x144fc5=Object[_0x4b1ec3(0x356)],_0x31c161=Object[_0x4b1ec3(0x507)],_0x3ff82a=(_0x326a1b,_0x23df09,_0x4670dd,_0x171b71)=>{const _0x40e557=_0x4b1ec3;for(var _0x2ed949=_0x171b71>0x1?void 0x0:_0x171b71?_0x31c161(_0x23df09,_0x4670dd):_0x23df09,_0x5a7135=_0x326a1b[_0x40e557(0x2b7)]-0x1,_0x20355e;_0x5a7135>=0x0;_0x5a7135--)(_0x20355e=_0x326a1b[_0x5a7135])&&(_0x2ed949=(_0x171b71?_0x20355e(_0x23df09,_0x4670dd,_0x2ed949):_0x20355e(_0x2ed949))||_0x2ed949);return _0x171b71&&_0x2ed949&&_0x144fc5(_0x23df09,_0x4670dd,_0x2ed949),_0x2ed949;},_0x531d22=(_0x578f58,_0x3f82ff)=>(_0xebe658,_0xc957b4)=>_0x3f82ff(_0xebe658,_0xc957b4,_0x578f58);let _0x384a59=class extends _0x495bbc[_0x4b1ec3(0x424)]{constructor(_0x43527d,_0x187563){const _0x404e74=_0x4b1ec3;super(),_0x5d8027(this,_0x404e74(0x2ac),new Map()),(this[_0x404e74(0x352)]=_0x43527d,this['_userManagerService']=_0x187563,this[_0x404e74(0x3fb)](_0x495bbc[_0x404e74(0x46b)](_0x11b67e['merge'](this[_0x404e74(0x352)]['getTypeOfUnitDisposed$'](_0x495bbc['UniverInstanceType'][_0x404e74(0x271)])['pipe'](_0x3e7fcd[_0x404e74(0x270)](_0x4753b8=>_0x4753b8[_0x404e74(0x317)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x495bbc[_0x404e74(0x2d8)]['UNIVER_DOC'])[_0x404e74(0x377)](_0x3e7fcd[_0x404e74(0x270)](_0x11e45a=>_0x11e45a[_0x404e74(0x317)]())),this['_univerInstanceService'][_0x404e74(0x4ab)](_0x495bbc[_0x404e74(0x2d8)][_0x404e74(0x3af)])[_0x404e74(0x377)](_0x3e7fcd['map'](_0x3d4ad2=>_0x3d4ad2['getUnitId']())))[_0x404e74(0x43a)](_0x2bfb68=>this[_0x404e74(0x406)](_0x2bfb68)))));}[_0x4b1ec3(0x492)](_0x126cbd){const _0x344da9=_0x4b1ec3;this[_0x344da9(0x1d8)][_0x344da9(0x492)](_0x126cbd);}[_0x4b1ec3(0x368)](){const _0x2608e7=_0x4b1ec3;return this[_0x2608e7(0x1d8)]['getCurrentUser']();}[_0x4b1ec3(0x244)](_0xeb4ed3,_0x29831f){const _0x501968=_0x4b1ec3;let _0x5e9a3a=this[_0x501968(0x2ac)][_0x501968(0x4ce)](_0xeb4ed3);_0x5e9a3a||(_0x5e9a3a=new _0x4dff48(),this[_0x501968(0x2ac)][_0x501968(0x20e)](_0xeb4ed3,_0x5e9a3a)),_0x5e9a3a[_0x501968(0x244)](_0x29831f);}[_0x4b1ec3(0x29e)](_0x4c4305,_0x3f8a59){const _0x2a49dd=_0x4b1ec3,_0x42bf65=this[_0x2a49dd(0x2ac)][_0x2a49dd(0x4ce)](_0x4c4305);_0x42bf65&&_0x42bf65['removeMember'](_0x3f8a59);}[_0x4b1ec3(0x1c6)](_0x4ceabf){const _0x1a6f1e=_0x4b1ec3;return this[_0x1a6f1e(0x2ac)][_0x1a6f1e(0x4ce)](_0x4ceabf);}[_0x4b1ec3(0x2b4)](_0x12fb1b,_0x1a7562){const _0x442f69=_0x4b1ec3,_0xefe6f3=this[_0x442f69(0x2ac)]['get'](_0x12fb1b);if(_0xefe6f3)return _0xefe6f3[_0x442f69(0x2b4)](_0x1a7562);}[_0x4b1ec3(0x406)](_0x39c11b){const _0x7adedb=_0x4b1ec3,_0x5a0b11=this[_0x7adedb(0x2ac)][_0x7adedb(0x4ce)](_0x39c11b);_0x5a0b11&&(_0x5a0b11[_0x7adedb(0x3f5)](),this[_0x7adedb(0x2ac)]['delete'](_0x39c11b));}[_0x4b1ec3(0x3f5)](){const _0x1c8534=_0x4b1ec3;this[_0x1c8534(0x2ac)]['forEach'](_0x51ae08=>_0x51ae08[_0x1c8534(0x3f5)]()),this[_0x1c8534(0x2ac)][_0x1c8534(0x3e3)]();}};_0x384a59=_0x3ff82a([_0x531d22(0x0,_0x495bbc['IUniverInstanceService']),_0x531d22(0x1,_0xff0938[_0x4b1ec3(0x292)](_0x495bbc['UserManagerService']))],_0x384a59);class _0x4dff48 extends _0x495bbc[_0x4b1ec3(0x424)]{constructor(){const _0x170e7c=_0x4b1ec3;super(...arguments),_0x5d8027(this,_0x170e7c(0x1d6),new Map());}[_0x4b1ec3(0x3f5)](){const _0x5e3f8b=_0x4b1ec3;this[_0x5e3f8b(0x1d6)][_0x5e3f8b(0x3e3)]();}[_0x4b1ec3(0x244)](_0x3a71fe){const _0x14d4e5=_0x4b1ec3;this[_0x14d4e5(0x1d6)][_0x14d4e5(0x20e)](_0x3a71fe[_0x14d4e5(0x4f1)],_0x3a71fe);}[_0x4b1ec3(0x29e)](_0x287f1b){const _0x435e50=_0x4b1ec3;this['_members'][_0x435e50(0x2c8)](_0x287f1b);}[_0x4b1ec3(0x2b4)](_0x48413d){const _0x485f73=_0x4b1ec3;return this[_0x485f73(0x1d6)][_0x485f73(0x4ce)](_0x48413d);}}function _0x3ee14d(_0x5beb0f){const _0x20f2f3=_0x4b1ec3;var _0x58fcf6,_0x521145,_0x5416b4,_0x149d85;const _0x2386e9=_0x5beb0f['data'],_0x38818a=JSON[_0x20f2f3(0x4c5)](_0x2386e9);switch(_0x38818a[_0x20f2f3(0x2ab)]){case _0x3dfcc2[_0x20f2f3(0x304)]:case _0x3dfcc2[_0x20f2f3(0x501)]:{const _0x23534f=_0x38818a[_0x20f2f3(0x1b8)];return{..._0x38818a,'data':_0x23534f,'cmd':_0x38818a[_0x20f2f3(0x2ab)]};}case _0x3dfcc2['JOIN']:{const _0x3e9186=_0x38818a[_0x20f2f3(0x399)];return{..._0x38818a,'data':_0x3e9186,'cmd':_0x38818a['cmd']};}case _0x3dfcc2[_0x20f2f3(0x21e)]:{const _0x76af18=_0x38818a[_0x20f2f3(0x1aa)];switch(_0x76af18[_0x20f2f3(0x2fa)]){case _0x2a1cda['CollaborationEvent']['PERMISSION_REJ']:return{..._0x38818a,'data':{..._0x76af18,'data':(_0x58fcf6=_0x76af18['permissionRejEvent'])==null?void 0x0:_0x58fcf6['cs']},'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda['CollaborationEvent']['CHANGESET_ACK']:return{..._0x38818a,'data':{..._0x76af18,'data':(_0x521145=_0x76af18[_0x20f2f3(0x275)])==null?void 0x0:_0x521145['cs']},'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda[_0x20f2f3(0x2a0)][_0x20f2f3(0x301)]:return{..._0x38818a,'data':{..._0x76af18,'data':(_0x5416b4=_0x76af18[_0x20f2f3(0x2f6)])==null?void 0x0:_0x5416b4['cs']},'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda[_0x20f2f3(0x2a0)]['CHANGESET_REJ']:return{..._0x38818a,'data':{..._0x76af18,'data':(_0x149d85=_0x76af18['csRejEvent'])==null?void 0x0:_0x149d85['cs']},'cmd':_0x38818a['cmd']};case _0x2a1cda[_0x20f2f3(0x2a0)][_0x20f2f3(0x1ee)]:return{..._0x38818a,'data':{..._0x76af18,'data':_0x76af18['updateCursorEvent']},'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda['CollaborationEvent'][_0x20f2f3(0x2e8)]:return{..._0x38818a,'data':{..._0x76af18,'data':_0x76af18[_0x20f2f3(0x293)]},'cmd':_0x38818a['cmd']};case _0x2a1cda[_0x20f2f3(0x2a0)][_0x20f2f3(0x4a2)]:return{..._0x38818a,'data':{..._0x76af18,'data':_0x76af18['leaveEvent']},'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x38818a,'data':{..._0x76af18,'data':_0x76af18[_0x20f2f3(0x27d)]},'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda['CollaborationEvent'][_0x20f2f3(0x237)]:case _0x2a1cda[_0x20f2f3(0x2a0)]['LIVESHARE_OPERATION']:return{..._0x38818a,'data':{..._0x76af18,'data':_0x76af18[_0x20f2f3(0x39a)]},'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda[_0x20f2f3(0x2a0)]['LIVESHARE_TERMINATE']:return{..._0x38818a,'data':{..._0x76af18,'data':_0x76af18[_0x20f2f3(0x27d)]},'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda['CollaborationEvent'][_0x20f2f3(0x475)]:return{..._0x38818a,'data':_0x76af18,'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda[_0x20f2f3(0x2a0)]['COMMENT_UPDATE']:return{..._0x38818a,'data':{..._0x76af18,'data':_0x76af18[_0x20f2f3(0x14f)]},'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda['CollaborationEvent']['UPDATE_PERMISSION_OBJ']:return{..._0x38818a,'data':{..._0x76af18,'data':_0x76af18[_0x20f2f3(0x47a)]},'cmd':_0x38818a[_0x20f2f3(0x2ab)]};case _0x2a1cda['CollaborationEvent'][_0x20f2f3(0x42d)]:return{..._0x38818a,'data':{..._0x76af18,'data':_0x76af18[_0x20f2f3(0x354)]},'cmd':_0x38818a['cmd']};default:return _0x38818a;}}default:return _0x38818a;}}function _0xbba3c4(_0x267bed){const _0x2f62c9=_0x4b1ec3;switch(_0x267bed[_0x2f62c9(0x2ab)]){case _0x3dfcc2[_0x2f62c9(0x304)]:case _0x3dfcc2[_0x2f62c9(0x501)]:return JSON[_0x2f62c9(0x4c2)]({'cmd':_0x267bed[_0x2f62c9(0x2ab)],'routeKey':_0x267bed[_0x2f62c9(0x2f0)]});case _0x3dfcc2[_0x2f62c9(0x50e)]:{let _0x250845;switch(_0x267bed['data'][_0x2f62c9(0x2fa)]){case _0x2a1cda[_0x2f62c9(0x2a0)]['UPDATE_CURSOR']:{_0x250845={'eventID':_0x2a1cda[_0x2f62c9(0x2a0)][_0x2f62c9(0x1ee)],'updateCursorEvent':_0x267bed[_0x2f62c9(0x3cf)][_0x2f62c9(0x3cf)]};break;}case _0x2a1cda[_0x2f62c9(0x2a0)]['USERS_LEAVE']:{_0x250845={'eventID':_0x2a1cda[_0x2f62c9(0x2a0)]['USERS_LEAVE'],'leaveEvent':_0x267bed['data']['data']};break;}case _0x2a1cda['CollaborationEvent'][_0x2f62c9(0x2e8)]:{_0x250845={'eventID':_0x2a1cda[_0x2f62c9(0x2a0)][_0x2f62c9(0x2e8)],'joinEvent':_0x267bed[_0x2f62c9(0x3cf)]['data']};break;}case _0x2a1cda[_0x2f62c9(0x2a0)][_0x2f62c9(0x4c1)]:{_0x250845={'eventID':_0x2a1cda[_0x2f62c9(0x2a0)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x267bed[_0x2f62c9(0x3cf)]['data']};break;}case _0x2a1cda[_0x2f62c9(0x2a0)][_0x2f62c9(0x3f4)]:{_0x250845={'eventID':_0x2a1cda[_0x2f62c9(0x2a0)][_0x2f62c9(0x3f4)],'liveShareOperation':_0x267bed['data'][_0x2f62c9(0x3cf)]};break;}case _0x2a1cda[_0x2f62c9(0x2a0)][_0x2f62c9(0x51c)]:{_0x250845={'eventID':_0x2a1cda[_0x2f62c9(0x2a0)][_0x2f62c9(0x51c)],'liveShareTerminate':_0x267bed[_0x2f62c9(0x3cf)][_0x2f62c9(0x3cf)]};break;}case _0x2a1cda['CollaborationEvent'][_0x2f62c9(0x1a5)]:{_0x250845={'eventID':_0x2a1cda[_0x2f62c9(0x2a0)][_0x2f62c9(0x1a5)],'liveShareRequestHost':_0x267bed[_0x2f62c9(0x3cf)]['data']};break;}case _0x2a1cda[_0x2f62c9(0x2a0)][_0x2f62c9(0x237)]:{_0x250845={'eventID':_0x2a1cda['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x250845={'eventID':_0x267bed[_0x2f62c9(0x3cf)][_0x2f62c9(0x2fa)]};}return JSON[_0x2f62c9(0x4c2)]({'cmd':_0x267bed['cmd'],'routeKey':_0x267bed['routeKey'],'collaMsg':_0x250845});}case _0x3dfcc2[_0x2f62c9(0x280)]:return JSON[_0x2f62c9(0x4c2)]({'cmd':_0x267bed['cmd'],'routeKey':_0x267bed[_0x2f62c9(0x2f0)],'joinReq':_0x267bed[_0x2f62c9(0x3cf)]});case _0x3dfcc2['LEAVE']:return JSON[_0x2f62c9(0x4c2)]({'cmd':_0x267bed['cmd'],'routeKey':_0x267bed['routeKey'],'leaveReq':_0x267bed['data']});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var _0x1cdf4f=Object['defineProperty'],_0x2db4fc=Object[_0x4b1ec3(0x507)],_0x3f2604=(_0x2d5ac2,_0x2d3618,_0x34801d,_0xa9761f)=>{const _0x38d9a3=_0x4b1ec3;for(var _0x56e3fd=_0xa9761f>0x1?void 0x0:_0xa9761f?_0x2db4fc(_0x2d3618,_0x34801d):_0x2d3618,_0x104707=_0x2d5ac2[_0x38d9a3(0x2b7)]-0x1,_0xa5aa40;_0x104707>=0x0;_0x104707--)(_0xa5aa40=_0x2d5ac2[_0x104707])&&(_0x56e3fd=(_0xa9761f?_0xa5aa40(_0x2d3618,_0x34801d,_0x56e3fd):_0xa5aa40(_0x56e3fd))||_0x56e3fd);return _0xa9761f&&_0x56e3fd&&_0x1cdf4f(_0x2d3618,_0x34801d,_0x56e3fd),_0x56e3fd;},_0x547906=(_0x5a4c5a,_0x165551)=>(_0x4677e0,_0x35d508)=>_0x165551(_0x4677e0,_0x35d508,_0x5a4c5a);const _0x564797=_0xff0938[_0x4b1ec3(0x3dc)]('univer-pro.collaboration-client-socket-service');function _0x1ea087(_0x567482,_0x481b6b,_0x21a369){const _0x4c03d6=_0x4b1ec3;return _0x567482+'/'+_0x481b6b+_0x4c03d6(0x2bf)+_0x21a369+_0x4c03d6(0x1ad);}_0x99db31[_0x4b1ec3(0x28d)]=class{constructor(_0x1301a3,_0x4a2c7b,_0x4ccbc2,_0x37e92b,_0x489c0c){const _0x37f78a=_0x4b1ec3;this[_0x37f78a(0x37d)]=_0x1301a3,this[_0x37f78a(0x45f)]=_0x4a2c7b,this['_configService']=_0x4ccbc2,this[_0x37f78a(0x38b)]=_0x37e92b,this[_0x37f78a(0x378)]=_0x489c0c;}[_0x4b1ec3(0x409)](_0x34552c){const _0x46b9d4=_0x4b1ec3,_0x4cdda4=this[_0x46b9d4(0x45f)]['createSocket'](_0x34552c);if(!_0x4cdda4)throw new Error(_0x46b9d4(0x1f0));const _0x596df4=new _0x495bbc[(_0x46b9d4(0x2b5))](),_0x2a60a1=new _0x11b67e[(_0x46b9d4(0x486))]();_0x596df4[_0x46b9d4(0x3c6)](_0x495bbc[_0x46b9d4(0x46b)](_0x4cdda4[_0x46b9d4(0x33b)]['subscribe'](_0x393c21=>_0x2a60a1[_0x46b9d4(0x2b2)](_0x393c21)))),_0x596df4[_0x46b9d4(0x3c6)](_0x495bbc[_0x46b9d4(0x46b)](()=>_0x2a60a1[_0x46b9d4(0x4c6)]()));const _0x23b6c9=new _0x11b67e[(_0x46b9d4(0x486))]();_0x596df4['add'](_0x495bbc[_0x46b9d4(0x46b)](_0x4cdda4['error$']['subscribe'](_0x48836d=>_0x23b6c9[_0x46b9d4(0x2b2)](_0x48836d)))),_0x596df4['add'](_0x495bbc[_0x46b9d4(0x46b)](()=>_0x23b6c9['complete']()));const _0x1c878e=new _0x11b67e[(_0x46b9d4(0x486))]();_0x596df4[_0x46b9d4(0x3c6)](_0x495bbc[_0x46b9d4(0x46b)](_0x4cdda4[_0x46b9d4(0x2fe)][_0x46b9d4(0x43a)](_0x27021d=>{const _0x13e7c4=_0x3ee14d(_0x27021d);_0x1c878e['next'](_0x13e7c4);}))),_0x596df4['add'](_0x495bbc[_0x46b9d4(0x46b)](()=>_0x1c878e['complete']()));const _0x135849=()=>{const _0x63827a=_0x46b9d4;_0x23b6c9['next'](new Event(_0x63827a(0x393))),_0x2a60a1[_0x63827a(0x2b2)](new CloseEvent(_0x63827a(0x393))),_0x4f5c0c[_0x63827a(0x223)]();},_0x4f5c0c={'memberID':'','close$':_0x2a60a1[_0x46b9d4(0x392)](),'error$':_0x23b6c9[_0x46b9d4(0x392)](),'open$':_0x4cdda4[_0x46b9d4(0x353)],'message$':_0x1c878e[_0x46b9d4(0x392)](),'send':_0x3db809=>{const _0x4e29a0=_0x46b9d4;if(_0x3db809[_0x4e29a0(0x2ab)]===_0x3dfcc2[_0x4e29a0(0x50e)]){if(_0x3db809[_0x4e29a0(0x3cf)]['eventID']===_0x2a1cda[_0x4e29a0(0x2a0)]['SUBMIT_CHANGESET']){this[_0x4e29a0(0x30e)](_0x4f5c0c,_0x3db809[_0x4e29a0(0x3cf)])['catch'](_0x1216ad=>{const _0x266302=_0x4e29a0;this[_0x266302(0x38b)][_0x266302(0x512)](_0x1216ad),_0x135849();});return;}if(_0x3db809['data'][_0x4e29a0(0x2fa)]===_0x2a1cda[_0x4e29a0(0x2a0)][_0x4e29a0(0x3c5)]){const _0x3ba7e1=_0x3db809[_0x4e29a0(0x3cf)];this[_0x4e29a0(0x4f3)](_0x3ba7e1)['then'](_0xbac584=>{const _0x1f48e2=_0x4e29a0;_0x1c878e[_0x1f48e2(0x2b2)]({'cmd':_0x3dfcc2[_0x1f48e2(0x21e)],'code':_0xb11f76['OK'],'routeKey':_0x3ba7e1[_0x1f48e2(0x3cf)][_0x1f48e2(0x391)],'routeType':'','data':{'eventID':_0x2a1cda[_0x1f48e2(0x2a0)][_0x1f48e2(0x497)],'data':{'changesets':_0xbac584}}});})[_0x4e29a0(0x3cb)](_0x58ef44=>{const _0x1014c5=_0x4e29a0;this[_0x1014c5(0x38b)][_0x1014c5(0x512)](_0x58ef44),_0x135849();});return;}}_0x4cdda4[_0x4e29a0(0x50c)](_0xbba3c4(_0x3db809));},'close':()=>{const _0x5b4825=_0x46b9d4;_0x4cdda4['close'](),_0x596df4[_0x5b4825(0x3f5)]();}};return _0x4f5c0c;}async[_0x4b1ec3(0x30e)](_0x87ae70,_0x2ef8b1){const _0xd11ac0=_0x4b1ec3;var _0x5379aa;const {unitType:_0x1bfb82,unitID:_0x5912f0,changeset:_0x2fbe5a}=_0x2ef8b1['data'],_0x5a70b2={'unitID':_0x5912f0,'memberID':_0x87ae70[_0xd11ac0(0x4f1)],'type':_0x1bfb82,'changeset':_0x2a1cda[_0xd11ac0(0x478)](_0x2fbe5a)},_0x5eb925=_0x1ea087((_0x5379aa=this[_0xd11ac0(0x313)][_0xd11ac0(0x1b6)](_0x339c6c))!=null?_0x5379aa:_0x2dd5c6,_0x1bfb82,_0x5912f0);try{await this[_0xd11ac0(0x37d)][_0xd11ac0(0x246)](_0x5eb925,{'body':_0x5a70b2});}catch(_0x310237){throw this[_0xd11ac0(0x38b)][_0xd11ac0(0x512)](_0xd11ac0(0x441),_0xd11ac0(0x33a)),_0x310237;}}async['_fetchMissChangesets'](_0xcf87a3){const _0x397440=_0x4b1ec3,{unitID:_0x3a56da,from:_0x45e610,to:_0xf72760,unitType:_0x5106c8}=_0xcf87a3[_0x397440(0x3cf)];return(await this[_0x397440(0x378)][_0x397440(0x323)]({'metadata':void 0x0},{'unitID':_0x3a56da,'type':_0x5106c8,'from':_0x45e610,'to':_0xf72760}))[_0x397440(0x463)];}},_0x99db31[_0x4b1ec3(0x28d)]=_0x3f2604([_0x547906(0x0,_0xff0938['Inject'](_0x19613[_0x4b1ec3(0x3a5)])),_0x547906(0x1,_0xff0938['Inject'](_0x19613[_0x4b1ec3(0x515)])),_0x547906(0x2,_0x495bbc['IConfigService']),_0x547906(0x3,_0x495bbc[_0x4b1ec3(0x22c)]),_0x547906(0x4,_0x495bbc[_0x4b1ec3(0x2be)])],_0x99db31[_0x4b1ec3(0x28d)]);class _0x30b255{constructor(){const _0x38bc5e=_0x4b1ec3;_0x5d8027(this,_0x38bc5e(0x263),new _0x11b67e['Subject']()),_0x5d8027(this,_0x38bc5e(0x14a),this[_0x38bc5e(0x263)]['asObservable']());}[_0x4b1ec3(0x165)](_0x26c98c){const _0x141caa=_0x4b1ec3;this['_commentUpdate$'][_0x141caa(0x2b2)](_0x26c98c);}}var _0x3fef71=Object[_0x4b1ec3(0x356)],_0x581d9c=Object[_0x4b1ec3(0x507)],_0x3638c5=(_0x3867cc,_0x26a9ed,_0x1a3958,_0x4e18b1)=>{const _0xf6cd8d=_0x4b1ec3;for(var _0x56089b=_0x4e18b1>0x1?void 0x0:_0x4e18b1?_0x581d9c(_0x26a9ed,_0x1a3958):_0x26a9ed,_0x3c93c8=_0x3867cc[_0xf6cd8d(0x2b7)]-0x1,_0x489491;_0x3c93c8>=0x0;_0x3c93c8--)(_0x489491=_0x3867cc[_0x3c93c8])&&(_0x56089b=(_0x4e18b1?_0x489491(_0x26a9ed,_0x1a3958,_0x56089b):_0x489491(_0x56089b))||_0x56089b);return _0x4e18b1&&_0x56089b&&_0x3fef71(_0x26a9ed,_0x1a3958,_0x56089b),_0x56089b;},_0x194489=(_0x51f87d,_0x56f5e2)=>(_0x227d17,_0x101b21)=>_0x56f5e2(_0x227d17,_0x101b21,_0x51f87d),_0x36bc51=(_0x5ec4e5=>(_0x5ec4e5[_0x5ec4e5[_0x4b1ec3(0x22d)]=0x0]='IDLE',_0x5ec4e5[_0x5ec4e5['JOINING']=0x1]=_0x4b1ec3(0x3b5),_0x5ec4e5[_0x5ec4e5[_0x4b1ec3(0x30a)]=0x2]=_0x4b1ec3(0x30a),_0x5ec4e5[_0x5ec4e5[_0x4b1ec3(0x4b8)]=0x3]=_0x4b1ec3(0x4b8),_0x5ec4e5))(_0x36bc51||{});_0x99db31[_0x4b1ec3(0x21b)]=class extends _0x495bbc[_0x4b1ec3(0x456)]{constructor(_0x19bce5,_0x141102,_0x440ca5,_0x1d3db9,_0x1abdbe,_0x3daf7f,_0x43d890,_0x441f19,_0x45a066){const _0x11bd08=_0x4b1ec3;super(),_0x5d8027(this,'_sessionStatus$',new _0x11b67e['BehaviorSubject'](0x0)),_0x5d8027(this,_0x11bd08(0x26a),this[_0x11bd08(0x2ff)][_0x11bd08(0x392)]()),_0x5d8027(this,'_event$',new _0x11b67e['Subject']()),_0x5d8027(this,_0x11bd08(0x48b),this[_0x11bd08(0x267)][_0x11bd08(0x392)]()),_0x5d8027(this,_0x11bd08(0x4a1)),_0x5d8027(this,_0x11bd08(0x15d)),_0x5d8027(this,_0x11bd08(0x1bc)),(this[_0x11bd08(0x518)]=_0x19bce5,this[_0x11bd08(0x38b)]=_0x440ca5,this[_0x11bd08(0x1dd)]=_0x1d3db9,this['_messageService']=_0x1abdbe,this[_0x11bd08(0x313)]=_0x3daf7f,this[_0x11bd08(0x131)]=_0x43d890,this[_0x11bd08(0x3ae)]=_0x441f19,this[_0x11bd08(0x213)]=_0x45a066,_0x141102[_0x11bd08(0x377)](_0x3e7fcd[_0x11bd08(0x40b)](this['dispose$']))[_0x11bd08(0x43a)](_0x5b120a=>{const _0x5e0cad=_0x11bd08;var _0x3d13e;typeof _0x5b120a>'u'||(this[_0x5e0cad(0x4a1)]=_0x5b120a,_0x5b120a?(this[_0x5e0cad(0x305)](_0x5b120a),this['_socketMessageSubscription']=this[_0x5e0cad(0x4a1)][_0x5e0cad(0x2fe)][_0x5e0cad(0x43a)](_0x3cc727=>{const _0x182d9a=_0x5e0cad;_0x3cc727[_0x182d9a(0x2f0)]===this[_0x182d9a(0x518)]&&this[_0x182d9a(0x28c)](_0x3cc727);})):(this[_0x5e0cad(0x2ff)]['next'](0x2),(_0x3d13e=this[_0x5e0cad(0x15d)])==null||_0x3d13e[_0x5e0cad(0x22e)](),this[_0x5e0cad(0x15d)]=null));}),this[_0x11bd08(0x3fb)](this[_0x11bd08(0x1dd)][_0x11bd08(0x383)](()=>{const _0xd67d69=_0x11bd08;var _0x297ae2;(_0x297ae2=this[_0xd67d69(0x4a1)])==null||_0x297ae2[_0xd67d69(0x50c)]({'cmd':_0x3dfcc2[_0xd67d69(0x4aa)],'data':{'roomID':this[_0xd67d69(0x518)]}});})));}get[_0x4b1ec3(0x19f)](){const _0x30716d=_0x4b1ec3;return this[_0x30716d(0x2ff)]['getValue']();}['getMemberID'](){const _0x43d512=_0x4b1ec3;var _0x206446,_0x541295;return(_0x541295=(_0x206446=this[_0x43d512(0x4a1)])==null?void 0x0:_0x206446['memberID'])!=null?_0x541295:null;}[_0x4b1ec3(0x3f5)](){const _0x4190b1=_0x4b1ec3;super['dispose'](),this[_0x4190b1(0x26e)][_0x4190b1(0x2b2)](),this[_0x4190b1(0x26e)][_0x4190b1(0x4c6)]();}[_0x4b1ec3(0x223)](){const _0x5a1df2=_0x4b1ec3;var _0x12d993,_0x5e1021;(_0x12d993=this[_0x5a1df2(0x4a1)])==null||_0x12d993[_0x5a1df2(0x50c)]({'cmd':_0x3dfcc2[_0x5a1df2(0x4aa)],'data':{'roomID':this[_0x5a1df2(0x518)]}}),this[_0x5a1df2(0x267)][_0x5a1df2(0x4c6)](),this['_sessionStatus$'][_0x5a1df2(0x4c6)](),(_0x5e1021=this[_0x5a1df2(0x4a1)])==null||_0x5e1021['close'](),this[_0x5a1df2(0x3f5)]();}[_0x4b1ec3(0x28c)](_0x28c878){const _0x1216f1=_0x4b1ec3;_0x28c878[_0x1216f1(0x2ab)]===_0x3dfcc2[_0x1216f1(0x280)]?this[_0x1216f1(0x4f9)](_0x28c878):_0x28c878[_0x1216f1(0x2ab)]===_0x3dfcc2[_0x1216f1(0x21e)]&&this[_0x1216f1(0x3e6)](_0x28c878);}[_0x4b1ec3(0x305)](_0x3e824d){const _0x21b366=_0x4b1ec3;this[_0x21b366(0x2ff)][_0x21b366(0x2b2)](0x1),_0x3e824d['send']({'cmd':_0x3dfcc2[_0x21b366(0x280)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x4b1ec3(0x4f9)](_0x1740cb){const _0x293f50=_0x4b1ec3;var _0x456a90;if(_0x1740cb[_0x293f50(0x3f0)]===_0xb11f76['FAIL']){this[_0x293f50(0x4eb)]['show']({'type':_0x153393['MessageType'][_0x293f50(0x16e)],'content':this[_0x293f50(0x131)]['t']('session.room-full')}),this[_0x293f50(0x2ff)][_0x293f50(0x2b2)](0x2);return;}this[_0x293f50(0x2ff)][_0x293f50(0x2b2)](0x3);const _0x3529f9=(_0x456a90=_0x1740cb[_0x293f50(0x3cf)][_0x293f50(0x154)][this[_0x293f50(0x518)]])==null?void 0x0:_0x456a90[_0x293f50(0x365)];_0x3529f9&&_0x3529f9[_0x293f50(0x14d)](_0x5ad339=>this[_0x293f50(0x3ae)][_0x293f50(0x244)](this[_0x293f50(0x518)],_0x5ad339));}[_0x4b1ec3(0x3e6)](_0x5cffd0){const _0x2a1f79=_0x4b1ec3;try{const _0x5d8d32=_0x5cffd0[_0x2a1f79(0x3cf)];switch(_0x5d8d32[_0x2a1f79(0x2fa)]){case _0x2a1cda[_0x2a1f79(0x2a0)]['USERS_ENTER']:this['_onUserJoin'](_0x5d8d32),this['_event$']['next'](_0x5d8d32);break;case _0x2a1cda['CollaborationEvent']['USERS_LEAVE']:this[_0x2a1f79(0x3de)](_0x5d8d32),this[_0x2a1f79(0x267)]['next'](_0x5d8d32);break;case _0x2a1cda[_0x2a1f79(0x2a0)]['CHANGESET_ACK']:this['_clearCollaborationTimeoutTimer'](),this[_0x2a1f79(0x267)][_0x2a1f79(0x2b2)](_0x5d8d32);break;case _0x2a1cda['CollaborationEvent'][_0x2a1f79(0x475)]:this['_logService'][_0x2a1f79(0x512)](_0x2a1f79(0x2dd)+JSON[_0x2a1f79(0x4c2)](_0x5d8d32)),this['_event$'][_0x2a1f79(0x2b2)](_0x5d8d32);break;case _0x2a1cda[_0x2a1f79(0x2a0)][_0x2a1f79(0x338)]:this[_0x2a1f79(0x213)][_0x2a1f79(0x165)](_0x5d8d32[_0x2a1f79(0x3cf)]),this[_0x2a1f79(0x267)][_0x2a1f79(0x2b2)](_0x5d8d32);break;default:this[_0x2a1f79(0x267)][_0x2a1f79(0x2b2)](_0x5d8d32);}}catch(_0xfc8f64){this[_0x2a1f79(0x38b)][_0x2a1f79(0x512)](_0xfc8f64,_0x5cffd0);}}['_onUserJoin'](_0x2328cf){const _0x22c636=_0x4b1ec3;this['_memberService']['updateMember'](this[_0x22c636(0x518)],_0x2328cf[_0x22c636(0x3cf)]);}['_onUserLeave'](_0x41a22f){const _0x38f8de=_0x4b1ec3;this[_0x38f8de(0x3ae)]['removeMember'](this[_0x38f8de(0x518)],_0x41a22f[_0x38f8de(0x3cf)]['memberID']);}async[_0x4b1ec3(0x50c)](_0x2f2a01,_0x12f7bc){const _0x3d2d76=_0x4b1ec3;if(this[_0x3d2d76(0x19f)]!==0x3||!this[_0x3d2d76(0x4a1)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x2f2a01[_0x3d2d76(0x2fa)]===_0x2a1cda[_0x3d2d76(0x2a0)][_0x3d2d76(0x301)]&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x3d2d76(0x4a1)][_0x3d2d76(0x50c)]({'cmd':_0x3dfcc2[_0x3d2d76(0x50e)],'routeKey':_0x12f7bc,'routeType':'','data':_0x2f2a01});}catch(_0x22e561){this[_0x3d2d76(0x38b)][_0x3d2d76(0x512)](_0x22e561);}}[_0x4b1ec3(0x30f)](){const _0x5b0b01=_0x4b1ec3;var _0x54c863;this['_collaborationTimeoutTimer']=window[_0x5b0b01(0x467)](()=>{const _0x418f96=_0x5b0b01;this[_0x418f96(0x1bc)]=null,this[_0x418f96(0x4eb)][_0x418f96(0x42c)]({'type':_0x153393[_0x418f96(0x4a8)][_0x418f96(0x25c)],'content':this['_localeService']['t']('session.collaboration-timeout')});},(_0x54c863=this['_configService'][_0x5b0b01(0x1b6)](_0x137805))!=null?_0x54c863:0x2710);}[_0x4b1ec3(0x431)](){const _0x38d969=_0x4b1ec3;this[_0x38d969(0x1bc)]&&(clearTimeout(this[_0x38d969(0x1bc)]),this[_0x38d969(0x1bc)]=null);}},_0x99db31[_0x4b1ec3(0x21b)]=_0x3638c5([_0x194489(0x2,_0x495bbc[_0x4b1ec3(0x22c)]),_0x194489(0x3,_0x510d97['IBeforeCloseService']),_0x194489(0x4,_0x510d97[_0x4b1ec3(0x3c3)]),_0x194489(0x5,_0x495bbc[_0x4b1ec3(0x2d6)]),_0x194489(0x6,_0xff0938[_0x4b1ec3(0x292)](_0x495bbc[_0x4b1ec3(0x1f4)])),_0x194489(0x7,_0xff0938['Inject'](_0x384a59)),_0x194489(0x8,_0xff0938[_0x4b1ec3(0x292)](_0x30b255))],_0x99db31[_0x4b1ec3(0x21b)]),_0x99db31[_0x4b1ec3(0x16c)]=class extends _0x495bbc[_0x4b1ec3(0x424)]{constructor(_0x55f3ff,_0x30ccb7,_0x59999d,_0x94d59d,_0x102441,_0x374bf9){const _0x37c1db=_0x4b1ec3;super(),_0x5d8027(this,'_socket$',new _0x11b67e[(_0x37c1db(0x2a9))](void 0x0)),_0x5d8027(this,_0x37c1db(0x3fe),new Map()),_0x5d8027(this,_0x37c1db(0x4cc),new _0x11b67e[(_0x37c1db(0x2a9))](0x0)),_0x5d8027(this,_0x37c1db(0x373),this['_status$'][_0x37c1db(0x392)]()),_0x5d8027(this,'_socketReady',!0x1),_0x5d8027(this,'_sendHeartbeatTimer'),_0x5d8027(this,_0x37c1db(0x252)),_0x5d8027(this,_0x37c1db(0x2f8)),_0x5d8027(this,_0x37c1db(0x4da),0x0),(this[_0x37c1db(0x376)]=_0x55f3ff,this[_0x37c1db(0x131)]=_0x30ccb7,this[_0x37c1db(0x4eb)]=_0x59999d,this[_0x37c1db(0x38b)]=_0x94d59d,this[_0x37c1db(0x313)]=_0x102441,this[_0x37c1db(0x2b1)]=_0x374bf9);}get[_0x4b1ec3(0x4a1)](){const _0xf8a6dd=_0x4b1ec3;return this[_0xf8a6dd(0x1e4)][_0xf8a6dd(0x357)]();}[_0x4b1ec3(0x3f5)](){const _0x1f21cf=_0x4b1ec3;super[_0x1f21cf(0x3f5)](),this[_0x1f21cf(0x3fe)][_0x1f21cf(0x14d)](_0x2bc23c=>_0x2bc23c[_0x1f21cf(0x3f5)]()),this[_0x1f21cf(0x3fe)][_0x1f21cf(0x3e3)](),this[_0x1f21cf(0x4cc)][_0x1f21cf(0x4c6)]();}async[_0x4b1ec3(0x269)](_0x4cdd08){const _0x5a9cee=_0x4b1ec3;if(this[_0x5a9cee(0x3fe)][_0x5a9cee(0x4a3)](_0x4cdd08))return this[_0x5a9cee(0x3fe)][_0x5a9cee(0x4ce)](_0x4cdd08);this[_0x5a9cee(0x41d)]();const _0x55fc72=this[_0x5a9cee(0x376)][_0x5a9cee(0x1ab)](_0x99db31[_0x5a9cee(0x21b)],_0x4cdd08,this['_socket$'][_0x5a9cee(0x392)]());return this[_0x5a9cee(0x3fe)][_0x5a9cee(0x20e)](_0x4cdd08,_0x55fc72),_0x55fc72;}[_0x4b1ec3(0x44c)](_0x3050de){const _0x645330=_0x4b1ec3;var _0x27eda4;const _0x16c401=this[_0x645330(0x3fe)]['get'](_0x3050de);_0x16c401&&(this[_0x645330(0x3fe)]['delete'](_0x3050de),_0x16c401[_0x645330(0x223)]()),this['_sessions'][_0x645330(0x3aa)]||(_0x27eda4=this[_0x645330(0x4a1)])==null||_0x27eda4[_0x645330(0x223)]();}[_0x4b1ec3(0x388)](){const _0x219259=_0x4b1ec3;var _0xa30b3e;const _0x1d3f4e=(_0xa30b3e=this[_0x219259(0x313)][_0x219259(0x1b6)](_0x10840c))!=null?_0xa30b3e:_0x156730;return this[_0x219259(0x2b1)][_0x219259(0x409)](_0x1d3f4e);}['_tryEnsureSocket'](){const _0x5d18b4=_0x4b1ec3;try{const _0x1c1d83=this[_0x5d18b4(0x388)]();if(_0x1c1d83){const _0x5d0a24=_0x1c1d83['send'];_0x1c1d83['send']=_0x556753=>(this[_0x5d18b4(0x339)](),_0x5d0a24[_0x5d18b4(0x452)](_0x1c1d83,[_0x556753])),_0x1c1d83[_0x5d18b4(0x2fe)][_0x5d18b4(0x43a)](_0x23a187=>this[_0x5d18b4(0x320)](_0x1c1d83,_0x23a187)),_0x1c1d83[_0x5d18b4(0x370)][_0x5d18b4(0x377)](_0x3e7fcd['take'](0x1))['subscribe'](_0xca6f61=>this[_0x5d18b4(0x38b)][_0x5d18b4(0x512)](_0x5d18b4(0x18c),_0xca6f61)),_0x1c1d83[_0x5d18b4(0x353)][_0x5d18b4(0x377)](_0x3e7fcd['take'](0x1))[_0x5d18b4(0x43a)](()=>{const _0x5c9d26=_0x5d18b4;this[_0x5c9d26(0x485)](_0x1c1d83);}),_0x1c1d83[_0x5d18b4(0x33b)][_0x5d18b4(0x377)](_0x3e7fcd[_0x5d18b4(0x3ad)](0x1))[_0x5d18b4(0x43a)](_0x23b771=>{const _0xdc872a=_0x5d18b4;this[_0xdc872a(0x38b)][_0xdc872a(0x2ca)](_0xdc872a(0x4be),_0xdc872a(0x4b0),_0x23b771),this[_0xdc872a(0x1ea)]();});}}catch(_0x5a7fb6){this[_0x5d18b4(0x38b)][_0x5d18b4(0x512)](_0x5a7fb6),this[_0x5d18b4(0x1ea)]();}}[_0x4b1ec3(0x485)](_0x312f0c){const _0x122836=_0x4b1ec3;this[_0x122836(0x38b)][_0x122836(0x2ca)](_0x122836(0x4be),'socket\x20open.'),_0x312f0c[_0x122836(0x50c)]({'cmd':_0x3dfcc2[_0x122836(0x501)]}),this[_0x122836(0x339)]();}[_0x4b1ec3(0x1ea)](){const _0x40b39a=_0x4b1ec3;var _0x4a3471;this[_0x40b39a(0x4cc)]['next'](0x2),this[_0x40b39a(0x1e4)][_0x40b39a(0x2b2)](null),this[_0x40b39a(0x1ed)](),this[_0x40b39a(0x3b6)](),this[_0x40b39a(0x135)]=!0x1,this[_0x40b39a(0x4da)]<((_0x4a3471=this[_0x40b39a(0x313)][_0x40b39a(0x1b6)](_0x556fbe))!=null?_0x4a3471:0x3)?(this[_0x40b39a(0x298)](this['_retryCount']),this[_0x40b39a(0x4da)]+=0x1):this[_0x40b39a(0x4eb)]['show']({'type':_0x153393[_0x40b39a(0x4a8)][_0x40b39a(0x25c)],'content':this[_0x40b39a(0x131)]['t'](_0x40b39a(0x1da))});}[_0x4b1ec3(0x298)](_0x4708da){const _0x515f4e=_0x4b1ec3;var _0x4e8f67;const _0x18ecdd=((_0x4e8f67=this['_configService']['getConfig'](_0x59a48f))!=null?_0x4e8f67:0x4e20)*0x2**_0x4708da;this['_messageService'][_0x515f4e(0x42c)]({'type':_0x153393[_0x515f4e(0x4a8)][_0x515f4e(0x16e)],'content':this[_0x515f4e(0x131)]['t'](_0x515f4e(0x289))}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x53f7dc=_0x515f4e;this[_0x53f7dc(0x41d)](),clearTimeout(this[_0x53f7dc(0x2f8)]),this['_retryConnectingTimer']=null;},_0x18ecdd);}['_rescheduleHeartbeatEvent'](){const _0x14da68=_0x4b1ec3;var _0x2ef4dd;this[_0x14da68(0x3b6)](),this[_0x14da68(0x3f3)]=setTimeout(()=>this[_0x14da68(0x444)](),(_0x2ef4dd=this[_0x14da68(0x313)][_0x14da68(0x1b6)](_0x2d4fc5))!=null?_0x2ef4dd:0x7530);}[_0x4b1ec3(0x444)](){const _0x1e94bc=_0x4b1ec3;this[_0x1e94bc(0x4a1)][_0x1e94bc(0x50c)]({'cmd':_0x3dfcc2[_0x1e94bc(0x304)]}),this[_0x1e94bc(0x509)]();}[_0x4b1ec3(0x509)](){const _0x556508=_0x4b1ec3;var _0x466bdc;this[_0x556508(0x252)]=setTimeout(()=>this[_0x556508(0x1ea)](),(_0x466bdc=this[_0x556508(0x313)][_0x556508(0x1b6)](_0x137805))!=null?_0x466bdc:0x2710);}[_0x4b1ec3(0x320)](_0x501777,_0x3df7e3){const _0x3d5963=_0x4b1ec3,{cmd:_0x2dd368}=_0x3df7e3;_0x2dd368===_0x3dfcc2[_0x3d5963(0x501)]&&!this[_0x3d5963(0x135)]&&(_0x501777[_0x3d5963(0x4f1)]=_0x3df7e3['data'][_0x3d5963(0x4f1)],this[_0x3d5963(0x1e4)][_0x3d5963(0x2b2)](_0x501777),this[_0x3d5963(0x4cc)][_0x3d5963(0x2b2)](0x3),this[_0x3d5963(0x135)]=!0x0),_0x2dd368===_0x3dfcc2[_0x3d5963(0x304)]&&this[_0x3d5963(0x1ed)](),this[_0x3d5963(0x339)]();}[_0x4b1ec3(0x3b6)](){const _0x175d4a=_0x4b1ec3;this[_0x175d4a(0x3f3)]!=null&&(clearTimeout(this[_0x175d4a(0x3f3)]),this['_sendHeartbeatTimer']=null);}[_0x4b1ec3(0x1ed)](){const _0x5ed231=_0x4b1ec3;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x5ed231(0x252)]),this['_timeoutTimer']=null);}},_0x99db31[_0x4b1ec3(0x16c)]=_0x3638c5([_0x194489(0x0,_0xff0938[_0x4b1ec3(0x292)](_0xff0938['Injector'])),_0x194489(0x1,_0xff0938[_0x4b1ec3(0x292)](_0x495bbc['LocaleService'])),_0x194489(0x2,_0x510d97[_0x4b1ec3(0x3c3)]),_0x194489(0x3,_0x495bbc[_0x4b1ec3(0x22c)]),_0x194489(0x4,_0x495bbc[_0x4b1ec3(0x2d6)]),_0x194489(0x5,_0x564797)],_0x99db31[_0x4b1ec3(0x16c)]);var _0x164b52=Object[_0x4b1ec3(0x356)],_0x2cc64a=Object['getOwnPropertyDescriptor'],_0x47d9aa=(_0x409a20,_0x294bd2,_0x186198,_0x26c68d)=>{const _0x240322=_0x4b1ec3;for(var _0x4b34e3=_0x26c68d>0x1?void 0x0:_0x26c68d?_0x2cc64a(_0x294bd2,_0x186198):_0x294bd2,_0xc75ab9=_0x409a20[_0x240322(0x2b7)]-0x1,_0x7fff88;_0xc75ab9>=0x0;_0xc75ab9--)(_0x7fff88=_0x409a20[_0xc75ab9])&&(_0x4b34e3=(_0x26c68d?_0x7fff88(_0x294bd2,_0x186198,_0x4b34e3):_0x7fff88(_0x4b34e3))||_0x4b34e3);return _0x26c68d&&_0x4b34e3&&_0x164b52(_0x294bd2,_0x186198,_0x4b34e3),_0x4b34e3;},_0x11923a=(_0x391d5a,_0x3a6465)=>(_0x5c3639,_0x10b04b)=>_0x3a6465(_0x5c3639,_0x10b04b,_0x391d5a);_0x99db31['LocalCacheService']=class extends _0x495bbc[_0x4b1ec3(0x424)]{constructor(_0x494680,_0x441c91,_0x5928bc,_0x31439a,_0x3e3a29){const _0x25813e=_0x4b1ec3;super(),_0x5d8027(this,_0x25813e(0x1dc),new Map()),_0x5d8027(this,_0x25813e(0x447),new Map()),_0x5d8027(this,_0x25813e(0x386),!0x1),(this['_configService']=_0x494680,this[_0x25813e(0x4b7)]=_0x441c91,this[_0x25813e(0x1dd)]=_0x5928bc,this[_0x25813e(0x131)]=_0x31439a,this['_revisionService']=_0x3e3a29,this[_0x25813e(0x2e1)]());}[_0x4b1ec3(0x477)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x186274=_0x4b1ec3;this[_0x186274(0x386)]=!0x1;}[_0x4b1ec3(0x3f5)](){const _0x5091a7=_0x4b1ec3;this[_0x5091a7(0x130)]()[_0x5091a7(0x4f2)](()=>super[_0x5091a7(0x3f5)]());}async['loadOfflineData'](_0x559e5b){const _0x41b945=_0x4b1ec3;return this[_0x41b945(0x386)]?null:this['_localStorageService'][_0x41b945(0x35a)](_0x2691f9(_0x559e5b));}async[_0x4b1ec3(0x3fa)](_0x4064ee,_0x69d7a1){const _0x3676be=_0x4b1ec3;return!!this['_localStorageService'][_0x3676be(0x4d0)](_0x4064ee,_0x69d7a1);}[_0x4b1ec3(0x3b8)](_0x35b7df,_0x4454c6,_0x3ef3dc,_0x32ec2e){const _0x392066=_0x4b1ec3,_0x49f052=this[_0x392066(0x366)]['getCurrentRevForDocument'](_0x35b7df);this[_0x392066(0x1dc)][_0x392066(0x20e)](_0x35b7df,{'unitID':_0x35b7df,'type':_0x4454c6,'awaitingChangeset':_0x3ef3dc,'mutations':_0x32ec2e,'rev':_0x49f052}),this['_saveTaskMap'][_0x392066(0x4a3)](_0x35b7df)||this[_0x392066(0x4f0)](_0x35b7df);}['_scheduleSaving'](_0x110b02){const _0x419df2=_0x4b1ec3,_0x486983=this[_0x419df2(0x193)]();_0x486983===0x0?this[_0x419df2(0x3e8)](_0x110b02):this['_saveTaskMap'][_0x419df2(0x20e)](_0x110b02,setTimeout(()=>this[_0x419df2(0x3e8)](_0x110b02),_0x486983));}[_0x4b1ec3(0x193)](){const _0x1e81cb=_0x4b1ec3;var _0x1e572d;return(_0x1e572d=this[_0x1e81cb(0x313)][_0x1e81cb(0x1b6)](_0x514191))!=null?_0x1e572d:0x3e8;}['_saveCache'](_0x4977a8){const _0x5f2d8b=_0x4b1ec3,_0xc5f39=this[_0x5f2d8b(0x447)][_0x5f2d8b(0x4ce)](_0x4977a8);return _0xc5f39!==void 0x0&&window[_0x5f2d8b(0x2e9)](_0xc5f39),this[_0x5f2d8b(0x4b7)]['setItem'](_0x2691f9(_0x4977a8),this[_0x5f2d8b(0x1dc)][_0x5f2d8b(0x4ce)](_0x4977a8))[_0x5f2d8b(0x4f2)](()=>this['_saveTaskMap'][_0x5f2d8b(0x2c8)](_0x4977a8));}async['exhaustSavingTask'](){const _0x116c2b=_0x4b1ec3,_0x313d51=[];this[_0x116c2b(0x447)]['forEach']((_0x359c48,_0x2c418d)=>{const _0x42fa67=_0x116c2b;window['clearTimeout'](_0x359c48),_0x313d51[_0x42fa67(0x38a)](this['_saveCache'](_0x2c418d)[_0x42fa67(0x4f2)](()=>{const _0x3561b4=_0x42fa67;this[_0x3561b4(0x447)]['delete'](_0x2c418d);}));}),await Promise[_0x116c2b(0x390)](_0x313d51);}['_setupBeforeClosingHandler'](){const _0x38912d=_0x4b1ec3;this[_0x38912d(0x3fb)](this[_0x38912d(0x1dd)][_0x38912d(0x254)](()=>{const _0x512f5d=_0x38912d;if(this[_0x512f5d(0x447)][_0x512f5d(0x3aa)])return this[_0x512f5d(0x131)]['t'](_0x512f5d(0x36a));}));}},_0x99db31['LocalCacheService']=_0x47d9aa([_0x11923a(0x0,_0x495bbc[_0x4b1ec3(0x2d6)]),_0x11923a(0x1,_0x495bbc[_0x4b1ec3(0x38f)]),_0x11923a(0x2,_0x510d97['IBeforeCloseService']),_0x11923a(0x3,_0xff0938[_0x4b1ec3(0x292)](_0x495bbc['LocaleService'])),_0x11923a(0x4,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda[_0x4b1ec3(0x481)]))],_0x99db31[_0x4b1ec3(0x4de)]);function _0x2691f9(_0x551253){return'unit-cache-'+_0x551253;}const _0x110bf8=_0xff0938[_0x4b1ec3(0x3dc)](_0x4b1ec3(0x3a1));var _0x59b30c=(_0x49e40f=>(_0x49e40f[_0x49e40f[_0x4b1ec3(0x1b3)]=0x0]=_0x4b1ec3(0x1b3),_0x49e40f[_0x49e40f['OTHER_CLIENTS_EDITING']=0x1]=_0x4b1ec3(0x4cd),_0x49e40f))(_0x59b30c||{});const _0x26f7cf=0x7530,_0x563803='ACTIVE_UNIT_EVENT_CHANNEL';class _0x251974 extends _0x495bbc[_0x4b1ec3(0x424)]{constructor(){const _0x3ed393=_0x4b1ec3;super(),_0x5d8027(this,_0x3ed393(0x29b),_0x495bbc[_0x3ed393(0x3d6)][_0x3ed393(0x272)]()),_0x5d8027(this,_0x3ed393(0x2dc),new Set()),_0x5d8027(this,_0x3ed393(0x15f),new Map()),_0x5d8027(this,_0x3ed393(0x256),null),_0x5d8027(this,_0x3ed393(0x420),new Map()),_0x5d8027(this,_0x3ed393(0x337),new Map()),this[_0x3ed393(0x468)]();}[_0x4b1ec3(0x3f5)](){const _0x29f8e7=_0x4b1ec3;super[_0x29f8e7(0x3f5)](),this['_clearOtherTimers'][_0x29f8e7(0x14d)]((_0x317ccc,_0xab40b3)=>this[_0x29f8e7(0x487)](_0xab40b3)),this[_0x29f8e7(0x256)]&&window['clearInterval'](this[_0x29f8e7(0x256)]);}[_0x4b1ec3(0x225)](_0x456cbe){const _0x2b7361=_0x4b1ec3;return this[_0x2b7361(0x1e2)](_0x456cbe)[_0x2b7361(0x377)](_0x11b67e['distinctUntilChanged']());}['editingUnit'](_0x13fa1d){const _0x3191fe=_0x4b1ec3;this[_0x3191fe(0x2dc)][_0x3191fe(0x3aa)]===0x0&&this[_0x3191fe(0x2c7)](),this[_0x3191fe(0x2dc)]['add'](_0x13fa1d),this[_0x3191fe(0x2b0)]({'type':0x0,'memberID':this[_0x3191fe(0x29b)],'unitIDs':[_0x13fa1d],'isForwarded':!0x1});}[_0x4b1ec3(0x2eb)](_0x295d9d){const _0x2a231a=_0x4b1ec3;this[_0x2a231a(0x2dc)][_0x2a231a(0x2c8)](_0x295d9d),this[_0x2a231a(0x2dc)][_0x2a231a(0x3aa)]===0x0&&this['_heartbeatTimer']&&window[_0x2a231a(0x1af)](this[_0x2a231a(0x256)]);}['_init'](){const _0x2f5f9c=_0x4b1ec3;this['disposeWithMe'](_0x495bbc[_0x2f5f9c(0x46b)](_0x11b67e[_0x2f5f9c(0x418)](window,'storage')['subscribe'](_0xb2f2a=>{const _0x170d96=_0x2f5f9c;if(_0xb2f2a[_0x170d96(0x412)]!==_0x563803||!_0xb2f2a[_0x170d96(0x443)])return;const _0x55971e=JSON[_0x170d96(0x4c5)](_0xb2f2a['newValue']);this['_handleEvent'](_0x55971e);}))),window[_0x2f5f9c(0x22b)](_0x2f5f9c(0x3a2),()=>this[_0x2f5f9c(0x2b0)]({'type':0x1,'memberID':this[_0x2f5f9c(0x29b)],'unitIDs':Array['from'](this[_0x2f5f9c(0x2dc)])}));}[_0x4b1ec3(0x132)](_0x535c66){const _0x5720c1=_0x4b1ec3;switch(_0x535c66[_0x5720c1(0x2fc)]){case 0x0:this[_0x5720c1(0x404)](_0x535c66);break;case 0x1:this[_0x5720c1(0x4af)](_0x535c66);break;case 0x2:this[_0x5720c1(0x164)](_0x535c66);break;}}[_0x4b1ec3(0x404)](_0x47e18b){const _0x380c4b=_0x4b1ec3,{unitIDs:_0x3286ea,memberID:_0x315cff,isForwarded:_0x342bb8}=_0x47e18b;_0x3286ea[_0x380c4b(0x14d)](_0x4c9c0d=>{const _0x5b3bd0=_0x380c4b;if(!_0x342bb8&&this[_0x5b3bd0(0x15f)][_0x5b3bd0(0x4a3)](_0x4c9c0d)&&this[_0x5b3bd0(0x1e2)](_0x4c9c0d)[_0x5b3bd0(0x2b2)](0x1),!this['_unitOnClients'][_0x5b3bd0(0x4a3)](_0x4c9c0d)||!this[_0x5b3bd0(0x15f)]['get'](_0x4c9c0d)['has'](_0x315cff)){const _0x3f7cd6=this[_0x5b3bd0(0x15f)][_0x5b3bd0(0x4ce)](_0x4c9c0d)||new Set();_0x3f7cd6['add'](_0x315cff),this[_0x5b3bd0(0x15f)]['set'](_0x4c9c0d,_0x3f7cd6),this[_0x5b3bd0(0x3f9)](_0x315cff);}}),_0x342bb8||this[_0x380c4b(0x2b0)]({'type':0x0,'memberID':this[_0x380c4b(0x29b)],'unitIDs':[...this[_0x380c4b(0x2dc)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x2642a8){const _0x582235=_0x4b1ec3;this[_0x582235(0x487)](_0x2642a8);const _0x60b9e6=window[_0x582235(0x467)](()=>{const _0x4d7251=_0x582235;this['_unitOnClients'][_0x4d7251(0x14d)](_0x5c9603=>{const _0x2ce4cb=_0x4d7251;_0x5c9603[_0x2ce4cb(0x2c8)](_0x2642a8);});},_0x26f7cf*0x2);this['_clearOtherTimers']['set'](_0x2642a8,_0x60b9e6);}[_0x4b1ec3(0x487)](_0x1ad3aa){const _0x117ef0=_0x4b1ec3;if(this['_clearOtherTimers'][_0x117ef0(0x4a3)](_0x1ad3aa)){const _0x518e9b=this['_clearOtherTimers']['get'](_0x1ad3aa);_0x518e9b&&window[_0x117ef0(0x2e9)](_0x518e9b),this[_0x117ef0(0x420)][_0x117ef0(0x20e)](_0x1ad3aa,null);}}['_handleLeaveEvent'](_0x419236){const _0x1b697e=_0x4b1ec3,{memberID:_0x4ddab7,unitIDs:_0x16e2cd}=_0x419236;_0x16e2cd['forEach'](_0x170908=>{const _0x53ff71=_0x2301;var _0x539072;const _0x156822=this['_unitOnClients'][_0x53ff71(0x4ce)](_0x170908);_0x156822&&(_0x156822['delete'](_0x4ddab7),(_0x539072=this[_0x53ff71(0x1e2)](_0x170908))==null||_0x539072[_0x53ff71(0x2b2)](_0x156822[_0x53ff71(0x3aa)]===0x0?0x0:0x1));}),this[_0x1b697e(0x487)](_0x4ddab7);}[_0x4b1ec3(0x164)](_0x38baf0){const _0x5d91a1=_0x4b1ec3;this[_0x5d91a1(0x3f9)](_0x38baf0[_0x5d91a1(0x4f1)]);}[_0x4b1ec3(0x2b0)](_0x29c068){const _0x48180b=_0x4b1ec3;localStorage[_0x48180b(0x4d0)](_0x563803,JSON['stringify'](_0x29c068));}[_0x4b1ec3(0x2c7)](){const _0x515a10=_0x4b1ec3;this[_0x515a10(0x256)]=window[_0x515a10(0x379)](()=>{const _0x3e8049=_0x515a10;this['_send']({'type':0x2,'memberID':this[_0x3e8049(0x29b)]});},_0x26f7cf);}[_0x4b1ec3(0x1e2)](_0x4fbfe3){const _0x24137a=_0x4b1ec3;return this[_0x24137a(0x337)][_0x24137a(0x4a3)](_0x4fbfe3)||this[_0x24137a(0x337)][_0x24137a(0x20e)](_0x4fbfe3,new _0x11b67e['BehaviorSubject'](0x0)),this[_0x24137a(0x337)][_0x24137a(0x4ce)](_0x4fbfe3);}}var _0xe62cdf=Object['defineProperty'],_0x25df9b=Object[_0x4b1ec3(0x507)],_0x515d1d=(_0x56f651,_0x17810e,_0x1002e1,_0x50596c)=>{const _0x4c22c5=_0x4b1ec3;for(var _0x39731a=_0x50596c>0x1?void 0x0:_0x50596c?_0x25df9b(_0x17810e,_0x1002e1):_0x17810e,_0x271da0=_0x56f651[_0x4c22c5(0x2b7)]-0x1,_0x27b637;_0x271da0>=0x0;_0x271da0--)(_0x27b637=_0x56f651[_0x271da0])&&(_0x39731a=(_0x50596c?_0x27b637(_0x17810e,_0x1002e1,_0x39731a):_0x27b637(_0x39731a))||_0x39731a);return _0x50596c&&_0x39731a&&_0xe62cdf(_0x17810e,_0x1002e1,_0x39731a),_0x39731a;},_0x2667ec=(_0x11a6ad,_0x587449)=>(_0xa0792c,_0x2d000b)=>_0x587449(_0xa0792c,_0x2d000b,_0x11a6ad);let _0x527642=class{constructor(_0xcab591,_0x508bb3){const _0x54292e=_0x4b1ec3;this[_0x54292e(0x376)]=_0xcab591,this['_transformService']=_0x508bb3;}[_0x4b1ec3(0x516)](_0xdf442d){const _0x1ca0de=_0x4b1ec3;this[_0x1ca0de(0x139)](_0xdf442d),this['_transformPreviousActiveRange'](_0xdf442d);}[_0x4b1ec3(0x3ac)](_0x46d70c){const _0x2e70ac=_0x4b1ec3,_0x120432=this[_0x2e70ac(0x376)]['get'](_0x257327['IMEInputManagerService']),{redoCache:_0x25bea9}=_0x120432[_0x2e70ac(0x396)]();if(_0x25bea9['length']===0x0)return _0x46d70c;let _0x424bd7=_0x495bbc[_0x2e70ac(0x3d6)]['deepClone'](_0x46d70c[_0x2e70ac(0x495)][0x0]);for(let _0x416366=0x0;_0x416366<_0x25bea9[_0x2e70ac(0x2b7)];_0x416366++){const _0x1f23ea={'id':'doc.mutation.rich-text-editing','params':{..._0x25bea9[_0x416366]}},_0x491387=this['_transformService'][_0x2e70ac(0x2a1)](_0x424bd7,_0x1f23ea,!0x1);if(_0x2a1cda[_0x2e70ac(0x265)](_0x491387))throw _0x491387[_0x2e70ac(0x512)];_0x424bd7=_0x491387[_0x2e70ac(0x288)];}return{..._0x495bbc[_0x2e70ac(0x3d6)][_0x2e70ac(0x1d7)](_0x46d70c),'mutations':[_0x424bd7]};}[_0x4b1ec3(0x139)](_0x71319b){const _0x5a215a=_0x4b1ec3,_0x22f637=this['_injector'][_0x5a215a(0x4ce)](_0x257327[_0x5a215a(0x17b)]),{undoCache:_0x282a2d,redoCache:_0x32c616}=_0x22f637[_0x5a215a(0x396)]();if(_0x282a2d[_0x5a215a(0x2b7)]===0x0||_0x32c616['length']===0x0)return;const _0x52f00d=[],_0x31c670=[];let _0x46d57d=_0x495bbc[_0x5a215a(0x3d6)][_0x5a215a(0x1d7)](_0x71319b['mutations'][0x0]),_0x1cb4e2=_0x495bbc[_0x5a215a(0x3d6)][_0x5a215a(0x1d7)](_0x71319b[_0x5a215a(0x495)][0x0]);for(let _0x1e2038=_0x282a2d['length']-0x1;_0x1e2038>=0x0;_0x1e2038--){const _0xcc9bb5={'id':_0x5a215a(0x158),'params':{..._0x282a2d[_0x1e2038]}},_0x52c0bf={'id':'doc.mutation.rich-text-editing','params':{..._0x32c616[_0x1e2038]}},_0x4da720=this[_0x5a215a(0x202)][_0x5a215a(0x2a1)](_0x46d57d,_0xcc9bb5,!0x1),_0x5117a4=this['_transformService']['transformMutation'](_0x1cb4e2,_0x52c0bf,!0x1);if(_0x2a1cda['isTransformMutationFailure'](_0x4da720))throw _0x4da720[_0x5a215a(0x512)];if(_0x2a1cda['isTransformMutationFailure'](_0x5117a4))throw _0x5117a4[_0x5a215a(0x512)];_0x52f00d[_0x5a215a(0x1a1)](_0x4da720[_0x5a215a(0x314)]['params']),_0x31c670[_0x5a215a(0x1a1)](_0x5117a4[_0x5a215a(0x314)][_0x5a215a(0x3b7)]),_0x46d57d=_0x4da720[_0x5a215a(0x288)],_0x1cb4e2=_0x5117a4[_0x5a215a(0x288)];}_0x22f637[_0x5a215a(0x205)]({'undoCache':_0x52f00d,'redoCache':_0x31c670});}['_transformPreviousActiveRange'](_0x4b93cc){const _0x116ce9=_0x4b1ec3,_0x582674=this['_injector'][_0x116ce9(0x4ce)](_0x257327[_0x116ce9(0x17b)]),_0x4598ba=_0x582674[_0x116ce9(0x511)]();if(_0x4598ba==null)return;const _0x3b34c9=[{'id':_0x116ce9(0x158),'params':{'unitId':_0x4b93cc[_0x116ce9(0x391)],'actions':null,'textRanges':[_0x4598ba]}}],_0x7816ef=this[_0x116ce9(0x202)][_0x116ce9(0x33c)](_0x4b93cc,_0x3b34c9);if(!_0x2a1cda[_0x116ce9(0x496)](_0x7816ef))throw _0x7816ef[_0x116ce9(0x512)];const _0x2fb7e6=_0x7816ef[_0x116ce9(0x314)][0x0][_0x116ce9(0x3b7)][_0x116ce9(0x35e)];Array['isArray'](_0x2fb7e6)&&_0x2fb7e6[_0x116ce9(0x2b7)]&&_0x582674[_0x116ce9(0x4ed)](_0x2fb7e6[0x0]);}};_0x527642=_0x515d1d([_0x2667ec(0x0,_0xff0938['Inject'](_0xff0938[_0x4b1ec3(0x22a)])),_0x2667ec(0x1,_0x2a1cda[_0x4b1ec3(0x21c)])],_0x527642);var _0x40b98c=Object[_0x4b1ec3(0x356)],_0x111bc4=Object[_0x4b1ec3(0x507)],_0xd0695e=(_0x39dba2,_0x419349,_0x35d4ea,_0x2651b4)=>{for(var _0xe13b0=_0x2651b4>0x1?void 0x0:_0x2651b4?_0x111bc4(_0x419349,_0x35d4ea):_0x419349,_0x3ff65a=_0x39dba2['length']-0x1,_0x86f7e5;_0x3ff65a>=0x0;_0x3ff65a--)(_0x86f7e5=_0x39dba2[_0x3ff65a])&&(_0xe13b0=(_0x2651b4?_0x86f7e5(_0x419349,_0x35d4ea,_0xe13b0):_0x86f7e5(_0xe13b0))||_0xe13b0);return _0x2651b4&&_0xe13b0&&_0x40b98c(_0x419349,_0x35d4ea,_0xe13b0),_0xe13b0;},_0x3c7fcf=(_0x3cb886,_0x5488fb)=>(_0x562b73,_0x59d3b3)=>_0x5488fb(_0x562b73,_0x59d3b3,_0x3cb886);let _0x2fb5e2=class{constructor(_0x2a2ec0,_0x1bd13c){const _0x5588c2=_0x4b1ec3;this['_injector']=_0x2a2ec0,this[_0x5588c2(0x202)]=_0x1bd13c;}['transformSelections'](_0x4dbb02){const _0x41333d=_0x4b1ec3;var _0x11266a;const _0x3dccd6=this[_0x41333d(0x376)][_0x41333d(0x4ce)](_0x257327[_0x41333d(0x426)]),_0x4c29bd=(_0x11266a=_0x3dccd6[_0x41333d(0x14e)]())!=null?_0x11266a:[],_0x3b2f45=_0x4c29bd==null?void 0x0:_0x4c29bd[_0x41333d(0x270)](_0x257327[_0x41333d(0x37f)]);if(_0x3b2f45[_0x41333d(0x2b7)]===0x0)return;const _0x10f12f=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4dbb02[_0x41333d(0x391)],'actions':null,'textRanges':_0x3b2f45}}],_0x1a4eff=this[_0x41333d(0x202)][_0x41333d(0x33c)](_0x4dbb02,_0x10f12f);if(!_0x2a1cda['isTransformMutationsWithChangesetSuccess'](_0x1a4eff))throw _0x1a4eff[_0x41333d(0x512)];const _0x51843c=_0x1a4eff[_0x41333d(0x314)][0x0][_0x41333d(0x3b7)][_0x41333d(0x35e)];Array['isArray'](_0x51843c)&&_0x51843c[_0x41333d(0x2b7)]&&_0x3dccd6[_0x41333d(0x218)](_0x51843c,!0x1);}};_0x2fb5e2=_0xd0695e([_0x3c7fcf(0x0,_0xff0938[_0x4b1ec3(0x292)](_0xff0938[_0x4b1ec3(0x22a)])),_0x3c7fcf(0x1,_0x2a1cda[_0x4b1ec3(0x21c)])],_0x2fb5e2);function _0x36c929(_0x2a1b13){const _0x180641=_0x4b1ec3;let _0x29efce='';for(const _0x22610c of _0x2a1b13){const {startOffset:_0x29cf8,endOffset:_0x2a6831,isActive:_0x649c93}=_0x22610c;_0x29efce[_0x180641(0x2b7)]&&(_0x29efce+=','),_0x29efce+=_0x29cf8+':'+_0x2a6831+':'+(_0x649c93?'1':'0');}return _0x29efce;}function _0x14579a(_0x520710){const _0x2ae7dd=_0x4b1ec3,_0x193b3f=_0x520710[_0x2ae7dd(0x18a)](','),_0x559982=[];for(const _0x189a88 of _0x193b3f){const [_0xa3daf7,_0x2ccde6,_0x6a42c0]=_0x189a88[_0x2ae7dd(0x18a)](':');_0x559982[_0x2ae7dd(0x38a)]({'startOffset':Number(_0xa3daf7),'endOffset':Number(_0x2ccde6),'collapsed':_0xa3daf7===_0x2ccde6,'isActive':_0x6a42c0==='1'});}return _0x559982[_0x2ae7dd(0x451)](_0x5bc14b=>_0x5bc14b[_0x2ae7dd(0x23f)])||(_0x559982[0x0][_0x2ae7dd(0x23f)]=!0x0),_0x559982;}class _0x4095fc extends _0x495bbc[_0x4b1ec3(0x456)]{constructor(){const _0x3564ae=_0x4b1ec3;super(...arguments),_0x5d8027(this,'_collabCursorState$',new _0x11b67e[(_0x3564ae(0x2a9))](null)),_0x5d8027(this,_0x3564ae(0x508),this[_0x3564ae(0x20c)][_0x3564ae(0x392)]());}[_0x4b1ec3(0x381)](_0x59cb67){const _0x40d26a=_0x4b1ec3,{unitID:_0x3ba1ca,memberID:_0x156dbf,textRanges:_0x4b43a6}=_0x59cb67,_0x2dcb7b=_0x36c929(_0x4b43a6),_0x3f8409={'unitID':_0x3ba1ca,'memberID':_0x156dbf,'selection':_0x2dcb7b};this[_0x40d26a(0x20c)][_0x40d26a(0x2b2)](_0x3f8409);}}var _0x18fb74=Object[_0x4b1ec3(0x356)],_0x3eb596=Object[_0x4b1ec3(0x507)],_0x1e282=(_0x7c5643,_0x3353b1,_0x599ca5,_0x16993e)=>{for(var _0x54efe5=_0x16993e>0x1?void 0x0:_0x16993e?_0x3eb596(_0x3353b1,_0x599ca5):_0x3353b1,_0x297043=_0x7c5643['length']-0x1,_0x39c255;_0x297043>=0x0;_0x297043--)(_0x39c255=_0x7c5643[_0x297043])&&(_0x54efe5=(_0x16993e?_0x39c255(_0x3353b1,_0x599ca5,_0x54efe5):_0x39c255(_0x54efe5))||_0x54efe5);return _0x16993e&&_0x54efe5&&_0x18fb74(_0x3353b1,_0x599ca5,_0x54efe5),_0x54efe5;},_0x3816ff=(_0x468502,_0x25df53)=>(_0x278737,_0x45934c)=>_0x25df53(_0x278737,_0x45934c,_0x468502);function _0x582e3f(_0x474e26){const _0x4c0555=_0x4b1ec3,{unitID:_0x305465,mutations:_0xa27c8d}=_0x474e26;return{'unitId':_0x305465,'subUnitId':_0xa27c8d[0x0][_0x4c0555(0x3b7)][_0x4c0555(0x327)]};}let _0x56fa9d=class{constructor(_0xf83d77,_0x1092ff){const _0x445a8c=_0x4b1ec3;this[_0x445a8c(0x376)]=_0xf83d77,this[_0x445a8c(0x202)]=_0x1092ff;}[_0x4b1ec3(0x38c)](_0x5a8d11){const _0x36242c=_0x4b1ec3;var _0x5a00b4,_0x5f3453,_0x1d8570;const _0x471b63=this[_0x36242c(0x376)]['get'](_0x344713[_0x36242c(0x38e)]),{unitId:_0x5e3ce2,subUnitId:_0x153cd8}=_0x582e3f(_0x5a8d11),_0x50301a=_0x471b63['getWorkbookSelections'](_0x5e3ce2)['getCurrentSelections']();if(_0x50301a[_0x36242c(0x2b7)]===0x0||!_0x5e3ce2||!_0x153cd8)return;const _0xbd4dc=[{'id':_0x344713[_0x36242c(0x41f)]['id'],'params':{'unitId':_0x5e3ce2,'subUnitId':_0x153cd8,'selections':_0x495bbc['Tools'][_0x36242c(0x1d7)](_0x50301a)}}],_0x3a9fc2=this[_0x36242c(0x202)][_0x36242c(0x33c)](_0x5a8d11,_0xbd4dc);if(!_0x2a1cda['isTransformMutationsWithChangesetSuccess'](_0x3a9fc2))throw _0x3a9fc2[_0x36242c(0x512)];const _0x57ec3f=(_0x1d8570=(_0x5f3453=(_0x5a00b4=_0x3a9fc2[_0x36242c(0x314)][0x0])==null?void 0x0:_0x5a00b4[_0x36242c(0x3b7)])==null?void 0x0:_0x5f3453[_0x36242c(0x4db)])!=null?_0x1d8570:_0x50301a;Array[_0x36242c(0x37c)](_0x57ec3f)&&_0x57ec3f[_0x36242c(0x2b7)]&&this[_0x36242c(0x376)][_0x36242c(0x4ce)](_0x495bbc['ICommandService'])[_0x36242c(0x259)](_0x344713['SetSelectionsOperation']['id'],{'unitId':_0x5e3ce2,'subUnitId':_0x153cd8,'selections':_0x57ec3f});}};_0x56fa9d=_0x1e282([_0x3816ff(0x0,_0xff0938[_0x4b1ec3(0x292)](_0xff0938[_0x4b1ec3(0x22a)])),_0x3816ff(0x1,_0x2a1cda['ITransformService'])],_0x56fa9d);const _0x541ecf=new Set([_0x344713['InsertSheetMutation']['id']]);function _0x531e45(_0x1b28b2,_0x3e7360,_0x27df79,_0x5aa7c8,_0x305ee6){const _0x523a9d=_0x4b1ec3;var _0x1674ed,_0x3517e7,_0x3bbbbb,_0x3b648b;const _0x36c4c2=[];for(const _0x403064 of _0x1b28b2)if(_0x541ecf['has'](_0x403064['id'])){if(_0x36c4c2[_0x523a9d(0x2b7)]>0x0)break;_0x36c4c2['push'](_0x403064);break;}else _0x36c4c2[_0x523a9d(0x38a)](_0x403064);const _0x4bae3d=(_0x3517e7=(_0x1674ed=_0x305ee6[_0x523a9d(0x368)]())==null?void 0x0:_0x1674ed['userID'])!=null?_0x3517e7:_0x523a9d(0x1c3),_0x4f0e1e=(_0x3b648b=(_0x3bbbbb=_0x305ee6['getCurrentUser']())==null?void 0x0:_0x3bbbbb[_0x523a9d(0x4f1)])!=null?_0x3b648b:_0x523a9d(0x1c3);return{'changeset':{'unitID':_0x3e7360,'type':_0x2a1cda[_0x523a9d(0x1fe)](_0x27df79['getUnitType'](_0x3e7360)),'baseRev':_0x5aa7c8[_0x523a9d(0x30b)](_0x3e7360),'revision':0x0,'userID':_0x4bae3d,'memberID':_0x4f0e1e,'mutations':_0x36c4c2},'pendingMutations':_0x1b28b2[_0x523a9d(0x50d)](_0x36c4c2['length'])};}function _0x417c68(_0x587432,_0x37469b,_0x304dc9,_0xb14d0a,_0x5bc136){const _0x43fd1a=_0x4b1ec3;var _0x1b6c91,_0x4f988f,_0x31d7b6,_0x8ed1b8;const _0x597136=[_0x587432[_0x43fd1a(0x361)]((_0x398b7f,_0x475a46)=>{const _0x218e61=_0x43fd1a;var _0x3d2b32;const {id:_0x16e586}=_0x398b7f,{id:_0x12e575,type:_0x5de6f4}=_0x475a46,_0x466ba0=(_0x3d2b32=_0x398b7f['params'])!=null?_0x3d2b32:{'actions':null},_0x518806=_0x475a46[_0x218e61(0x3b7)];if(_0x16e586&&_0x16e586!==_0x12e575)throw new Error(_0x218e61(0x2b6)+_0x16e586+_0x218e61(0x476)+_0x12e575+'.');return{..._0x398b7f,'id':_0x12e575,'type':_0x5de6f4,'params':{'unitId':_0x518806[_0x218e61(0x384)],'textRanges':_0x518806[_0x218e61(0x35e)],'actions':_0x495bbc[_0x218e61(0x41c)][_0x218e61(0x4b5)](_0x466ba0['actions'],_0x518806[_0x218e61(0x274)])}};},{})],_0x47ffb7=(_0x4f988f=(_0x1b6c91=_0x5bc136['getCurrentUser']())==null?void 0x0:_0x1b6c91[_0x43fd1a(0x3a9)])!=null?_0x4f988f:'unknown',_0x214e6a=(_0x8ed1b8=(_0x31d7b6=_0x5bc136[_0x43fd1a(0x368)]())==null?void 0x0:_0x31d7b6[_0x43fd1a(0x4f1)])!=null?_0x8ed1b8:'unknown';return{'changeset':{'unitID':_0x37469b,'type':_0x2a1cda[_0x43fd1a(0x1fe)](_0x304dc9[_0x43fd1a(0x3a8)](_0x37469b)),'baseRev':_0xb14d0a['getCurrentRevForDocument'](_0x37469b),'revision':0x0,'userID':_0x47ffb7,'memberID':_0x214e6a,'mutations':_0x597136},'pendingMutations':[]};}var _0x7ca02a=Object['defineProperty'],_0x2ca45c=Object['getOwnPropertyDescriptor'],_0x3e342b=(_0x4654d7,_0x3887e6,_0x412884,_0x28a4ef)=>{const _0x5bad2e=_0x4b1ec3;for(var _0x3aeb01=_0x28a4ef>0x1?void 0x0:_0x28a4ef?_0x2ca45c(_0x3887e6,_0x412884):_0x3887e6,_0x43d0c1=_0x4654d7[_0x5bad2e(0x2b7)]-0x1,_0x2d620c;_0x43d0c1>=0x0;_0x43d0c1--)(_0x2d620c=_0x4654d7[_0x43d0c1])&&(_0x3aeb01=(_0x28a4ef?_0x2d620c(_0x3887e6,_0x412884,_0x3aeb01):_0x2d620c(_0x3aeb01))||_0x3aeb01);return _0x28a4ef&&_0x3aeb01&&_0x7ca02a(_0x3887e6,_0x412884,_0x3aeb01),_0x3aeb01;},_0x15ca9e=(_0x41b76f,_0xc7d149)=>(_0x40b0fc,_0x2aa656)=>_0xc7d149(_0x40b0fc,_0x2aa656,_0x41b76f),_0x17c726=(_0x2340dd=>(_0x2340dd[_0x4b1ec3(0x358)]=_0x4b1ec3(0x15a),_0x2340dd[_0x4b1ec3(0x401)]=_0x4b1ec3(0x190),_0x2340dd[_0x4b1ec3(0x473)]=_0x4b1ec3(0x470),_0x2340dd['AWAITING']=_0x4b1ec3(0x448),_0x2340dd[_0x4b1ec3(0x2aa)]='awaiting_with_pending',_0x2340dd[_0x4b1ec3(0x308)]=_0x4b1ec3(0x414),_0x2340dd['CONFLICT']='conflict',_0x2340dd[_0x4b1ec3(0x30a)]='offline',_0x2340dd))(_0x17c726||{});class _0x3bf8ea{constructor(_0x5e70c3,_0x48c8b3,_0x41cd34,_0x48651d,_0x33e75d,_0xaab4b9,_0x12f99c,_0x97a2e,_0x2cac96){const _0x2d0c59=_0x4b1ec3;_0x5d8027(this,_0x2d0c59(0x44b),null),_0x5d8027(this,_0x2d0c59(0x1bb),[]),(this[_0x2d0c59(0x391)]=_0x5e70c3,this[_0x2d0c59(0x2fc)]=_0x48c8b3,this[_0x2d0c59(0x472)]=_0x33e75d,this[_0x2d0c59(0x2e4)]=_0xaab4b9,this['_undoRedoService']=_0x12f99c,this[_0x2d0c59(0x366)]=_0x97a2e,this[_0x2d0c59(0x43d)]=_0x2cac96,this[_0x2d0c59(0x44b)]=_0x41cd34,this[_0x2d0c59(0x1bb)]=_0x48651d);}[_0x4b1ec3(0x340)](_0x902fa7){const _0x42c2fb=_0x4b1ec3,_0x33e913=this[_0x42c2fb(0x366)]['getCurrentRevForDocument'](this[_0x42c2fb(0x391)]);return _0x902fa7[_0x42c2fb(0x44e)]>_0x33e913+0x1?(this[_0x42c2fb(0x472)]['onMissingChangesets']({'from':_0x33e913,'to':_0x902fa7[_0x42c2fb(0x44e)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x281e31){const _0x492254=_0x4b1ec3;this[_0x492254(0x31e)][_0x492254(0x208)](this[_0x492254(0x391)],_0x281e31);}[_0x4b1ec3(0x374)](_0x30b1a3){const _0x58b8f7=_0x4b1ec3;var _0x1136e4,_0x1bd5bb;(_0x1bd5bb=(_0x1136e4=this['_handler'])[_0x58b8f7(0x3d5)])==null||_0x1bd5bb['call'](_0x1136e4,_0x30b1a3);}[_0x4b1ec3(0x348)](_0x2ac9be){const _0x1f18ae=_0x4b1ec3;var _0xc66749,_0x4549b0;return(_0x4549b0=(_0xc66749=this[_0x1f18ae(0x472)])[_0x1f18ae(0x417)])==null?void 0x0:_0x4549b0[_0x1f18ae(0x25a)](_0xc66749,_0x2ac9be);}[_0x4b1ec3(0x1e6)](_0x3ac9ca){const _0x1ea7cd=_0x4b1ec3;var _0x19d4c6,_0x46f666,_0x53c3d1;return(_0x53c3d1=(_0x46f666=(_0x19d4c6=this[_0x1ea7cd(0x472)])[_0x1ea7cd(0x1b1)])==null?void 0x0:_0x46f666['call'](_0x19d4c6,_0x3ac9ca))!=null?_0x53c3d1:_0x3ac9ca;}[_0x4b1ec3(0x250)](_0x389013){const _0xda855a=_0x4b1ec3;var _0x54a9a5,_0x15f406;if(this['type']===_0x1ffbf2[_0xda855a(0x438)]){const {unitID:_0x421d4e,mutations:_0x224760,memberID:_0x407abe}=_0x389013,_0x2cb808=_0x224760[0x0]['params'][_0xda855a(0x35e)];Array['isArray'](_0x2cb808)&&_0x2cb808['length']>0x0&&((_0x15f406=(_0x54a9a5=this['_handler'])[_0xda855a(0x1c9)])==null||_0x15f406[_0xda855a(0x25a)](_0x54a9a5,{'unitID':_0x421d4e,'memberID':_0x407abe,'textRanges':_0x2cb808}));}}[_0x4b1ec3(0x4f5)](){const _0x243a6a=_0x4b1ec3;this['_localCacheService'][_0x243a6a(0x3b8)](this['unitID'],this[_0x243a6a(0x2fc)],this['_awaitingChangeset'],this[_0x243a6a(0x1bb)]);}[_0x4b1ec3(0x364)](){const _0x559c8a=_0x4b1ec3;return this[_0x559c8a(0x366)][_0x559c8a(0x30b)](this[_0x559c8a(0x391)]);}[_0x4b1ec3(0x264)](){const _0x16959a=_0x4b1ec3;this[_0x16959a(0x366)][_0x16959a(0x13a)](this[_0x16959a(0x391)]);}[_0x4b1ec3(0x1be)](_0x5ab53e){const _0x1a670d=_0x4b1ec3;var _0x5da441;const _0x390109=this[_0x1a670d(0x1e6)](_0x5ab53e),_0x298c7b=_0x495bbc[_0x1a670d(0x212)](_0x390109[_0x1a670d(0x495)],this[_0x1a670d(0x2e4)],{'fromCollab':!0x0});if(!_0x298c7b[_0x1a670d(0x255)])throw _0x298c7b[_0x1a670d(0x512)]instanceof Error?_0x298c7b[_0x1a670d(0x512)]:new Error((_0x5da441=_0x298c7b[_0x1a670d(0x512)])!=null?_0x5da441:'[CollaborationState]:\x20apply\x20error!');this['_transformIMECache'](_0x390109),this['_transformUndoredo'](_0x5ab53e),this['_transformSelections'](_0x390109),this[_0x1a670d(0x250)](_0x390109),this[_0x1a670d(0x264)]();}}let _0x40d214=class extends _0x3bf8ea{constructor(_0x516524,_0x40ad19,_0x49edfd,_0x2fb550,_0x3f5609,_0x2ecd30,_0x420fee,_0x5d0b52,_0x2e7e20){const _0x42e6e1=_0x4b1ec3;super(_0x516524,_0x40ad19,null,[],_0x49edfd,_0x5d0b52,_0x420fee,_0x2fb550,_0x3f5609),_0x5d8027(this,_0x42e6e1(0x465),_0x42e6e1(0x190)),(this['_injector']=_0x2ecd30,this[_0x42e6e1(0x38b)]=_0x2e7e20);}[_0x4b1ec3(0x273)](_0x1e80cd){const _0x355bb7=_0x4b1ec3,_0x420715=this[_0x355bb7(0x376)][_0x355bb7(0x1ab)](_0x5ada80,this[_0x355bb7(0x391)],this[_0x355bb7(0x2fc)],[_0x1e80cd],this['_handler']);return _0x420715['_schedule'](),_0x420715[_0x355bb7(0x4f5)](),_0x420715;}[_0x4b1ec3(0x3c0)](_0x242928){const _0xff66e7=_0x4b1ec3;if(this[_0xff66e7(0x340)](_0x242928))return this[_0xff66e7(0x376)]['createInstance'](_0x5d3d56,this[_0xff66e7(0x391)],this[_0xff66e7(0x2fc)],null,[],null,[_0x242928],this[_0xff66e7(0x472)]);try{return this[_0xff66e7(0x1be)](_0x242928),this;}catch(_0x3dade9){return this['_logService'][_0xff66e7(0x512)](_0xff66e7(0x33f),_0x3dade9),this;}}[_0x4b1ec3(0x46c)](){const _0x25bdb8=_0x4b1ec3;throw new Error(_0x25bdb8(0x2bd));}['onRemoteRej'](){const _0x37c1f9=_0x4b1ec3;throw new Error(_0x37c1f9(0x4b9));}['toggleOffline'](){const _0x1fc613=_0x4b1ec3;return this[_0x1fc613(0x376)][_0x1fc613(0x1ab)](_0x394166,this[_0x1fc613(0x391)],this[_0x1fc613(0x2fc)],null,[],this[_0x1fc613(0x472)]);}[_0x4b1ec3(0x19e)](){return this;}[_0x4b1ec3(0x434)](){const _0x36ff7a=_0x4b1ec3;throw new Error(_0x36ff7a(0x141));}};_0x40d214=_0x3e342b([_0x15ca9e(0x3,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda[_0x4b1ec3(0x481)])),_0x15ca9e(0x4,_0xff0938[_0x4b1ec3(0x292)](_0x99db31['LocalCacheService'])),_0x15ca9e(0x5,_0xff0938[_0x4b1ec3(0x292)](_0xff0938['Injector'])),_0x15ca9e(0x6,_0x495bbc[_0x4b1ec3(0x3d4)]),_0x15ca9e(0x7,_0x495bbc['ICommandService']),_0x15ca9e(0x8,_0x495bbc[_0x4b1ec3(0x22c)])],_0x40d214);let _0x5ada80=class extends _0x3bf8ea{constructor(_0x3c8990,_0x236a5a,_0x5826eb,_0x1e9f88,_0x1bfc59,_0x471937,_0x332630,_0x5e5f23,_0x5b19d6,_0x46682f,_0x5065e6,_0x1f0bc8,_0xe4165,_0x18e3a6){const _0x387e2a=_0x4b1ec3;super(_0x3c8990,_0x236a5a,null,_0x5826eb,_0x1e9f88,_0x46682f,_0x18e3a6,_0x471937,_0x332630),_0x5d8027(this,_0x387e2a(0x465),_0x387e2a(0x470)),_0x5d8027(this,'_scheduleTimestamp',null),_0x5d8027(this,_0x387e2a(0x29f),null),(this['_injector']=_0x1bfc59,this[_0x387e2a(0x3ae)]=_0x5e5f23,this['_logService']=_0x5b19d6,this[_0x387e2a(0x313)]=_0x5065e6,this[_0x387e2a(0x202)]=_0x1f0bc8,this[_0x387e2a(0x352)]=_0xe4165);}['appendMutation'](_0x578962){const _0x457b5c=_0x4b1ec3;return this[_0x457b5c(0x1bb)]['push'](_0x578962),this[_0x457b5c(0x4f5)](),this;}['onRemoteChangeset'](_0x3f7dad){const _0x304d82=_0x4b1ec3;if(this[_0x304d82(0x340)](_0x3f7dad))return this[_0x304d82(0x4fb)](),this[_0x304d82(0x376)][_0x304d82(0x1ab)](_0x5d3d56,this[_0x304d82(0x391)],this[_0x304d82(0x2fc)],null,this['_pendingMutations'],null,[_0x3f7dad],this[_0x304d82(0x472)]);try{const _0x1801b3=this['_transformService']['transformMutationsWithChangeset'](_0x3f7dad,this['_pendingMutations']);if(_0x2a1cda[_0x304d82(0x496)](_0x1801b3)){const {c1Prime:_0x589816,m2Prime:_0x28f89e}=_0x1801b3;this['_executeRemoteChangeset'](_0x589816);const _0x3e659b=this[_0x304d82(0x376)][_0x304d82(0x1ab)](_0x5ada80,this['unitID'],this['type'],_0x28f89e,this[_0x304d82(0x472)]);return this[_0x304d82(0x4fb)](),_0x3e659b[_0x304d82(0x371)](this[_0x304d82(0x2cf)]?Math[_0x304d82(0x4b3)](0x0,new Date()[_0x304d82(0x429)]()-this[_0x304d82(0x2cf)]):this[_0x304d82(0x3a6)]()),_0x3e659b;}throw _0x1801b3[_0x304d82(0x512)];}catch(_0x9cfbc2){return this[_0x304d82(0x38b)]['error'](_0x9cfbc2),this['_onConflict'](!0x1);}}[_0x4b1ec3(0x46c)](){const _0x1c9cb0=_0x4b1ec3;throw new Error(_0x1c9cb0(0x45d));}[_0x4b1ec3(0x209)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x4b1ec3(0x2f5)](){const _0x418c1f=_0x4b1ec3;return this[_0x418c1f(0x4fb)](),this[_0x418c1f(0x376)][_0x418c1f(0x1ab)](_0x394166,this[_0x418c1f(0x391)],this['type'],null,this[_0x418c1f(0x1bb)],this[_0x418c1f(0x472)]);}[_0x4b1ec3(0x19e)](){return this;}[_0x4b1ec3(0x371)](_0x13f51f){const _0x4d86c8=_0x4b1ec3;_0x13f51f=_0x13f51f!=null?_0x13f51f:this[_0x4d86c8(0x3a6)](),this[_0x4d86c8(0x2cf)]=new Date()['getTime'](),this[_0x4d86c8(0x29f)]=setTimeout(()=>{const _0x131125=_0x4d86c8;this[_0x131125(0x4fb)]();let _0x36a7e9=null;switch(this[_0x131125(0x2fc)]){case _0x1ffbf2[_0x131125(0x271)]:{_0x36a7e9=_0x531e45(this[_0x131125(0x1bb)],this[_0x131125(0x391)],this[_0x131125(0x352)],this[_0x131125(0x366)],this['_memberService']);break;}case _0x1ffbf2[_0x131125(0x438)]:{_0x36a7e9=_0x417c68(this[_0x131125(0x1bb)],this['unitID'],this['_univerInstanceService'],this[_0x131125(0x366)],this['_memberService']);break;}default:throw new Error(_0x131125(0x4fd)+this[_0x131125(0x2fc)]+_0x131125(0x153));}const {changeset:_0x4188d1,pendingMutations:_0x4b34a3}=_0x36a7e9;this[_0x131125(0x472)][_0x131125(0x29c)](_0x4188d1);const _0xd5eade=_0x4b34a3['length']?this['_injector'][_0x131125(0x1ab)](_0x375398,this[_0x131125(0x391)],this['type'],_0x4188d1,_0x4b34a3,this[_0x131125(0x472)]):this[_0x131125(0x376)][_0x131125(0x1ab)](_0x4a1f33,this['unitID'],this[_0x131125(0x2fc)],_0x4188d1,this[_0x131125(0x472)]);_0xd5eade[_0x131125(0x4f5)](),this[_0x131125(0x472)][_0x131125(0x439)](this,_0xd5eade);},_0x13f51f);}[_0x4b1ec3(0x3a6)](){const _0x18e011=_0x4b1ec3;var _0x305ea6;return(_0x305ea6=this[_0x18e011(0x313)][_0x18e011(0x1b6)](_0x432ad5))!=null?_0x305ea6:0x7d0;}[_0x4b1ec3(0x434)](){const _0x3b37ec=_0x4b1ec3;throw new Error(_0x3b37ec(0x17e));}[_0x4b1ec3(0x4fb)](){const _0x5274b6=_0x4b1ec3;this[_0x5274b6(0x29f)]!=null&&(clearTimeout(this[_0x5274b6(0x29f)]),this['_sendingTimer']=null);}['_onConflict'](_0x47e320){const _0x30d6fa=_0x4b1ec3;return this[_0x30d6fa(0x4fb)](),this[_0x30d6fa(0x376)][_0x30d6fa(0x1ab)](_0x1d1c0e,this[_0x30d6fa(0x391)],this[_0x30d6fa(0x2fc)],null,this[_0x30d6fa(0x1bb)],this['_handler'],_0x47e320);}};_0x5ada80=_0x3e342b([_0x15ca9e(0x4,_0xff0938[_0x4b1ec3(0x292)](_0xff0938[_0x4b1ec3(0x22a)])),_0x15ca9e(0x5,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda[_0x4b1ec3(0x481)])),_0x15ca9e(0x6,_0xff0938['Inject'](_0x99db31['LocalCacheService'])),_0x15ca9e(0x7,_0xff0938[_0x4b1ec3(0x292)](_0x384a59)),_0x15ca9e(0x8,_0x495bbc[_0x4b1ec3(0x22c)]),_0x15ca9e(0x9,_0x495bbc['ICommandService']),_0x15ca9e(0xa,_0x495bbc['IConfigService']),_0x15ca9e(0xb,_0x2a1cda[_0x4b1ec3(0x21c)]),_0x15ca9e(0xc,_0x495bbc['IUniverInstanceService']),_0x15ca9e(0xd,_0x495bbc[_0x4b1ec3(0x3d4)])],_0x5ada80);let _0x4a1f33=class extends _0x3bf8ea{constructor(_0x24aaed,_0xed4e66,_0x3742eb,_0x59f199,_0x365480,_0x1ffe3b,_0x4b20b7,_0x150571,_0x32c1c9,_0xa8abe7,_0x1b0a93){const _0x4fbfbd=_0x4b1ec3;super(_0x24aaed,_0xed4e66,_0x3742eb,[],_0x59f199,_0x150571,_0x1b0a93,_0x1ffe3b,_0x4b20b7),_0x5d8027(this,_0x4fbfbd(0x465),_0x4fbfbd(0x448)),(this[_0x4fbfbd(0x376)]=_0x365480,this[_0x4fbfbd(0x38b)]=_0x32c1c9,this[_0x4fbfbd(0x202)]=_0xa8abe7);}[_0x4b1ec3(0x273)](_0x57665d){const _0xf7ac24=_0x4b1ec3,_0x5f15ec=this[_0xf7ac24(0x376)][_0xf7ac24(0x1ab)](_0x375398,this[_0xf7ac24(0x391)],this['type'],this[_0xf7ac24(0x44b)],[_0x57665d],this[_0xf7ac24(0x472)]);return _0x5f15ec['_updateLocalCache'](),_0x5f15ec;}[_0x4b1ec3(0x3c0)](_0x43ca41){const _0x552ba7=_0x4b1ec3;if(this[_0x552ba7(0x340)](_0x43ca41))return this[_0x552ba7(0x376)][_0x552ba7(0x1ab)](_0x5d3d56,this['unitID'],this[_0x552ba7(0x2fc)],this[_0x552ba7(0x44b)],[],null,[_0x43ca41],this[_0x552ba7(0x472)]);try{const _0x517ea9=this[_0x552ba7(0x202)]['transformChangesets']([_0x43ca41],[this[_0x552ba7(0x44b)]],!0x1);if(_0x2a1cda[_0x552ba7(0x4d3)](_0x517ea9)){const {c1Prime:_0x333524,c2Prime:_0x5f8732}=_0x517ea9;this[_0x552ba7(0x1be)](_0x333524[0x0]),_0x5f8732[0x0]['baseRev']=this[_0x552ba7(0x364)]();const _0x12e92d=this['_injector'][_0x552ba7(0x1ab)](_0x4a1f33,this['unitID'],this[_0x552ba7(0x2fc)],_0x5f8732[0x0],this[_0x552ba7(0x472)]);return _0x12e92d[_0x552ba7(0x4f5)](),_0x12e92d;}return this['_onConflict'](!0x1);}catch(_0x57b38c){return this[_0x552ba7(0x38b)][_0x552ba7(0x512)](_0x57b38c),this[_0x552ba7(0x3ce)](!0x1);}}[_0x4b1ec3(0x46c)](_0xfaa92b){const _0x1350f6=_0x4b1ec3,_0x48c8cd=this['_revisionService']['getCurrentRevForDocument'](this[_0x1350f6(0x391)]);if(_0xfaa92b[_0x1350f6(0x44e)]<_0x48c8cd-0x1)return this;if(this[_0x1350f6(0x340)](_0xfaa92b))return this[_0x1350f6(0x376)][_0x1350f6(0x1ab)](_0x5d3d56,this[_0x1350f6(0x391)],this[_0x1350f6(0x2fc)],null,[],this[_0x1350f6(0x44b)],[],this['_handler']);this[_0x1350f6(0x264)]();const _0x437375=this[_0x1350f6(0x376)]['createInstance'](_0x40d214,this['unitID'],this[_0x1350f6(0x2fc)],this['_handler']);return _0x437375['_updateLocalCache'](),_0x437375;}[_0x4b1ec3(0x209)](_0x117b74){const _0x278035=_0x4b1ec3;return this[_0x278035(0x3ce)](!!(_0x117b74!=null&&_0x117b74[_0x278035(0x42f)]));}[_0x4b1ec3(0x2f5)](){const _0x8a771b=_0x4b1ec3;return this[_0x8a771b(0x376)]['createInstance'](_0x394166,this[_0x8a771b(0x391)],this[_0x8a771b(0x2fc)],this[_0x8a771b(0x44b)],[],this['_handler']);}[_0x4b1ec3(0x19e)](){return this;}[_0x4b1ec3(0x434)](){const _0xd6e865=_0x4b1ec3;this[_0xd6e865(0x472)][_0xd6e865(0x29c)](this[_0xd6e865(0x44b)]);}[_0x4b1ec3(0x3ce)](_0x17ee83){const _0x2c2bbf=_0x4b1ec3;return this[_0x2c2bbf(0x376)][_0x2c2bbf(0x1ab)](_0x1d1c0e,this[_0x2c2bbf(0x391)],this[_0x2c2bbf(0x2fc)],this[_0x2c2bbf(0x44b)],[],this[_0x2c2bbf(0x472)],_0x17ee83);}};_0x4a1f33=_0x3e342b([_0x15ca9e(0x4,_0xff0938['Inject'](_0xff0938[_0x4b1ec3(0x22a)])),_0x15ca9e(0x5,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda['RevisionService'])),_0x15ca9e(0x6,_0xff0938[_0x4b1ec3(0x292)](_0x99db31[_0x4b1ec3(0x4de)])),_0x15ca9e(0x7,_0x495bbc[_0x4b1ec3(0x28f)]),_0x15ca9e(0x8,_0x495bbc[_0x4b1ec3(0x22c)]),_0x15ca9e(0x9,_0x2a1cda[_0x4b1ec3(0x21c)]),_0x15ca9e(0xa,_0x495bbc[_0x4b1ec3(0x3d4)])],_0x4a1f33);let _0x375398=class extends _0x3bf8ea{constructor(_0x2f757e,_0x4b7e51,_0x2a325a,_0x3f68a2,_0x2c48ae,_0x42b63b,_0xd8f73a,_0x15d951,_0x466ccd,_0x2ef324,_0x35a5ed,_0x678999){const _0x58502e=_0x4b1ec3;super(_0x2f757e,_0x4b7e51,_0x2a325a,_0x3f68a2,_0x2c48ae,_0x466ccd,_0x678999,_0xd8f73a,_0x15d951),_0x5d8027(this,_0x58502e(0x465),_0x58502e(0x32a)),(this['_injector']=_0x42b63b,this[_0x58502e(0x38b)]=_0x2ef324,this[_0x58502e(0x202)]=_0x35a5ed);}[_0x4b1ec3(0x273)](_0x3c114f){const _0x3402f7=_0x4b1ec3;return this['_pendingMutations'][_0x3402f7(0x38a)](_0x3c114f),this;}['onRemoteChangeset'](_0xa1aa2b){const _0x1fea52=_0x4b1ec3;if(this[_0x1fea52(0x340)](_0xa1aa2b))return this[_0x1fea52(0x376)][_0x1fea52(0x1ab)](_0x5d3d56,this[_0x1fea52(0x391)],this[_0x1fea52(0x2fc)],this['_awaitingChangeset'],this[_0x1fea52(0x1bb)],null,[_0xa1aa2b],this['_handler']);try{const _0x56ec13=this['_transformService'][_0x1fea52(0x1d4)]([_0xa1aa2b],[this[_0x1fea52(0x44b)]],!0x1);if(_0x2a1cda[_0x1fea52(0x4d3)](_0x56ec13)){const {c1Prime:_0xb59817,c2Prime:_0x229287}=_0x56ec13,_0x17687d=this['_transformService'][_0x1fea52(0x33c)](_0xb59817[0x0],this[_0x1fea52(0x1bb)]);if(_0x2a1cda[_0x1fea52(0x496)](_0x17687d)){const {c1Prime:_0x5a9c09,m2Prime:_0x4e856b}=_0x17687d;return this[_0x1fea52(0x1be)](_0x5a9c09),_0x229287[0x0][_0x1fea52(0x35f)]=this[_0x1fea52(0x364)](),this['_injector']['createInstance'](_0x375398,this['unitID'],this['type'],_0x229287[0x0],_0x4e856b,this['_handler']);}throw _0x17687d[_0x1fea52(0x512)];}throw _0x56ec13[_0x1fea52(0x512)];}catch(_0x1afd96){return this[_0x1fea52(0x38b)][_0x1fea52(0x512)](_0x1afd96),this[_0x1fea52(0x3ce)](!0x1);}}['onRemoteAck'](_0x1037d4){const _0x4a82f3=_0x4b1ec3;if(this[_0x4a82f3(0x340)](_0x1037d4))return this[_0x4a82f3(0x376)][_0x4a82f3(0x1ab)](_0x5d3d56,this[_0x4a82f3(0x391)],this[_0x4a82f3(0x2fc)],null,this[_0x4a82f3(0x1bb)],this[_0x4a82f3(0x44b)],[],this[_0x4a82f3(0x472)]);this['_incrementRevisionNumber']();const _0x15a0d2=this[_0x4a82f3(0x376)]['createInstance'](_0x5ada80,this['unitID'],this[_0x4a82f3(0x2fc)],this[_0x4a82f3(0x1bb)],this[_0x4a82f3(0x472)]);return _0x15a0d2['_schedule'](),_0x15a0d2['_updateLocalCache'](),_0x15a0d2;}['onRemoteRej'](_0x4d9340){const _0x5868ea=_0x4b1ec3;return this[_0x5868ea(0x3ce)](!!(_0x4d9340!=null&&_0x4d9340['isPermissionRej']));}[_0x4b1ec3(0x2f5)](){const _0x2b2fea=_0x4b1ec3;return this[_0x2b2fea(0x376)][_0x2b2fea(0x1ab)](_0x394166,this[_0x2b2fea(0x391)],this[_0x2b2fea(0x2fc)],this[_0x2b2fea(0x44b)],this[_0x2b2fea(0x1bb)],this[_0x2b2fea(0x472)]);}[_0x4b1ec3(0x19e)](){return this;}[_0x4b1ec3(0x434)](){const _0xba8aaf=_0x4b1ec3;this[_0xba8aaf(0x472)]['onSendChangeset'](this[_0xba8aaf(0x44b)]);}[_0x4b1ec3(0x3ce)](_0x6a2c6){const _0x12cb10=_0x4b1ec3;return this[_0x12cb10(0x376)][_0x12cb10(0x1ab)](_0x1d1c0e,this[_0x12cb10(0x391)],this[_0x12cb10(0x2fc)],null,this[_0x12cb10(0x1bb)],this[_0x12cb10(0x472)],_0x6a2c6);}};_0x375398=_0x3e342b([_0x15ca9e(0x5,_0xff0938[_0x4b1ec3(0x292)](_0xff0938[_0x4b1ec3(0x22a)])),_0x15ca9e(0x6,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda[_0x4b1ec3(0x481)])),_0x15ca9e(0x7,_0xff0938[_0x4b1ec3(0x292)](_0x99db31[_0x4b1ec3(0x4de)])),_0x15ca9e(0x8,_0x495bbc[_0x4b1ec3(0x28f)]),_0x15ca9e(0x9,_0x495bbc[_0x4b1ec3(0x22c)]),_0x15ca9e(0xa,_0x2a1cda['ITransformService']),_0x15ca9e(0xb,_0x495bbc['IUndoRedoService'])],_0x375398);let _0x1d1c0e=class extends _0x3bf8ea{constructor(_0x58f91d,_0x1b9b64,_0x3cc346,_0x5a8dd5,_0x2be9e4,_0x4420f8=!0x1,_0x1ef872,_0x4c553e,_0x3a0e9f,_0x3a6a84,_0x876d78,_0x57759d,_0x5504eb){const _0x27c386=_0x4b1ec3;super(_0x58f91d,_0x1b9b64,_0x3cc346,_0x5a8dd5,_0x2be9e4,_0x4c553e,_0x3a0e9f,_0x876d78,_0x3a6a84),_0x5d8027(this,'status','conflict'),(this[_0x27c386(0x24d)]=_0x4420f8,this[_0x27c386(0x245)]=_0x1ef872,this[_0x27c386(0x131)]=_0x57759d,this[_0x27c386(0x346)]=_0x5504eb,this['_showConflictNotification'](),this[_0x27c386(0x1ac)](),this[_0x27c386(0x172)]());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x4b1ec3(0x46c)](){return this;}['onRemoteRej'](){return this;}[_0x4b1ec3(0x2f5)](){return this;}[_0x4b1ec3(0x19e)](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x470345=_0x4b1ec3;this['_localCacheService'][_0x470345(0x3b8)](this[_0x470345(0x391)],this[_0x470345(0x2fc)],null,[]);}['_showConflictNotification'](){const _0x43ace7=_0x4b1ec3;this[_0x43ace7(0x24d)]?this['_notificationService'][_0x43ace7(0x42c)]({'title':this[_0x43ace7(0x131)]['t'](_0x43ace7(0x4df)),'content':this['_localeService']['t'](_0x43ace7(0x178)),'type':_0x43ace7(0x512),'duration':0x0}):this[_0x43ace7(0x346)][_0x43ace7(0x42c)]({'title':this[_0x43ace7(0x131)]['t']('conflict.title'),'content':this[_0x43ace7(0x131)]['t'](_0x43ace7(0x309)),'type':_0x43ace7(0x512),'duration':0x0});}[_0x4b1ec3(0x172)](){const _0x5ca078=_0x4b1ec3;this[_0x5ca078(0x245)][_0x5ca078(0x162)](new _0x344713[(_0x5ca078(0x17c))](this[_0x5ca078(0x391)])['id'],!0x1);}};_0x1d1c0e=_0x3e342b([_0x15ca9e(0x6,_0xff0938['Inject'](_0x495bbc[_0x4b1ec3(0x1b5)])),_0x15ca9e(0x7,_0x495bbc[_0x4b1ec3(0x28f)]),_0x15ca9e(0x8,_0x495bbc[_0x4b1ec3(0x3d4)]),_0x15ca9e(0x9,_0xff0938['Inject'](_0x99db31[_0x4b1ec3(0x4de)])),_0x15ca9e(0xa,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda[_0x4b1ec3(0x481)])),_0x15ca9e(0xb,_0xff0938[_0x4b1ec3(0x292)](_0x495bbc['LocaleService'])),_0x15ca9e(0xc,_0x510d97['INotificationService'])],_0x1d1c0e);let _0x394166=class extends _0x3bf8ea{constructor(_0x4d3fbd,_0x295860,_0x3739f4,_0x52c0b4,_0x4d99fd,_0x3623a2,_0x1526e4,_0x59a0a6,_0x5c0fe2,_0x3f2197){const _0xaf0c9a=_0x4b1ec3;super(_0x4d3fbd,_0x295860,_0x3739f4,_0x52c0b4,_0x4d99fd,_0x5c0fe2,_0x3f2197,_0x1526e4,_0x59a0a6),_0x5d8027(this,_0xaf0c9a(0x465),_0xaf0c9a(0x362)),this[_0xaf0c9a(0x376)]=_0x3623a2;}['appendMutation'](_0x562fc4){const _0x1fd1a4=_0x4b1ec3;return this['_pendingMutations'][_0x1fd1a4(0x38a)](_0x562fc4),this[_0x1fd1a4(0x4f5)](),this;}['onRemoteChangeset'](_0x1bbe1e){const _0x15281b=_0x4b1ec3;throw new Error(_0x15281b(0x3d3));}[_0x4b1ec3(0x46c)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x33fb32=_0x4b1ec3;throw new Error(_0x33fb32(0x389));}[_0x4b1ec3(0x2f5)](){return this;}[_0x4b1ec3(0x19e)](){const _0x50bac7=_0x4b1ec3,{_injector:_0x10a93f,_pendingMutations:_0x37869f,_awaitingChangeset:_0x33a8fb,unitID:_0x16c9b6,_handler:_0x12942c,type:_0x1400a4}=this,_0x19b99d=_0x2070df(_0x10a93f,_0x16c9b6,_0x1400a4,_0x33a8fb,_0x37869f,_0x12942c);return _0x19b99d instanceof _0x5ada80?_0x19b99d[_0x50bac7(0x371)]():(_0x19b99d instanceof _0x375398||_0x19b99d instanceof _0x4a1f33)&&_0x19b99d[_0x50bac7(0x434)](),_0x19b99d;}[_0x4b1ec3(0x434)](){const _0x2192b1=_0x4b1ec3;throw new Error(_0x2192b1(0x15b));}};_0x394166=_0x3e342b([_0x15ca9e(0x5,_0xff0938[_0x4b1ec3(0x292)](_0xff0938[_0x4b1ec3(0x22a)])),_0x15ca9e(0x6,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda['RevisionService'])),_0x15ca9e(0x7,_0xff0938[_0x4b1ec3(0x292)](_0x99db31[_0x4b1ec3(0x4de)])),_0x15ca9e(0x8,_0x495bbc[_0x4b1ec3(0x28f)]),_0x15ca9e(0x9,_0x495bbc['IUndoRedoService'])],_0x394166);let _0x5d3d56=class extends _0x3bf8ea{constructor(_0x225804,_0xe61114,_0x3d9f2f,_0x4c339f,_0x1307dc,_0x49c6a3,_0x41540c,_0x1241ad,_0x263706,_0x2f61b2,_0x566cd4,_0x35f6a1,_0x448dd2,_0x5cfcce){const _0x4f6e36=_0x4b1ec3;super(_0x225804,_0xe61114,_0x3d9f2f,_0x4c339f,_0x41540c,_0x35f6a1,_0x448dd2,_0x263706,_0x2f61b2),_0x5d8027(this,'status','fetch_missing'),(this[_0x4f6e36(0x415)]=_0x1307dc,this[_0x4f6e36(0x375)]=_0x49c6a3,this['_injector']=_0x1241ad,this[_0x4f6e36(0x38b)]=_0x566cd4,this[_0x4f6e36(0x202)]=_0x5cfcce);}[_0x4b1ec3(0x2d0)](_0x2a5152){const _0xc4aaea=_0x4b1ec3;try{const _0xefbe88=[..._0x2a5152,...this['_queuedRemoteChangesets']],_0x1df75f=[this[_0xc4aaea(0x44b)]||this[_0xc4aaea(0x415)]]['filter'](_0x31b2d3=>!!_0x31b2d3);let _0x3e9f49,_0x143b1f;if(_0x1df75f[_0xc4aaea(0x2b7)]){const _0x1407f8=this[_0xc4aaea(0x202)][_0xc4aaea(0x1d4)](_0xefbe88,_0x1df75f,!0x1);if(!_0x2a1cda[_0xc4aaea(0x4d3)](_0x1407f8))throw _0x1407f8[_0xc4aaea(0x512)];_0x3e9f49=_0x1407f8[_0xc4aaea(0x395)],_0x143b1f=_0x1407f8[_0xc4aaea(0x142)];}else _0x3e9f49=_0xefbe88,_0x143b1f=[];let _0x4dc14b=this[_0xc4aaea(0x1bb)];_0x3e9f49[_0xc4aaea(0x14d)](_0x5080de=>{const _0x29929e=_0xc4aaea;let _0x129d11;if(_0x4dc14b['length']){const _0x11d55f=this['_transformService'][_0x29929e(0x33c)](_0x5080de,_0x4dc14b);if(!_0x2a1cda[_0x29929e(0x496)](_0x11d55f))throw _0x11d55f['error'];_0x129d11=_0x11d55f[_0x29929e(0x395)],_0x4dc14b=_0x11d55f[_0x29929e(0x314)];}else _0x129d11=_0x5080de;this['_executeRemoteChangeset'](_0x129d11);}),this[_0xc4aaea(0x415)]&&this[_0xc4aaea(0x264)](),this['_awaitingChangeset']&&_0x143b1f[_0xc4aaea(0x2b7)]&&(_0x143b1f[0x0][_0xc4aaea(0x35f)]=this['_getCurrentRevision']());let _0x591628;if(this['_awaitingChangeset']&&_0x4dc14b[_0xc4aaea(0x2b7)]!==0x0)_0x591628=this[_0xc4aaea(0x376)][_0xc4aaea(0x1ab)](_0x375398,this[_0xc4aaea(0x391)],this['type'],_0x143b1f[0x0],_0x4dc14b,this[_0xc4aaea(0x472)]);else{if(this['_awaitingChangeset']&&_0x4dc14b['length']===0x0)_0x143b1f[0x0]['baseRev']=this[_0xc4aaea(0x364)](),_0x591628=this[_0xc4aaea(0x376)][_0xc4aaea(0x1ab)](_0x4a1f33,this['unitID'],this[_0xc4aaea(0x2fc)],_0x143b1f[0x0],this[_0xc4aaea(0x472)]);else{if(_0x4dc14b[_0xc4aaea(0x2b7)]!==0x0){const _0x267e1b=this[_0xc4aaea(0x376)]['createInstance'](_0x5ada80,this[_0xc4aaea(0x391)],this[_0xc4aaea(0x2fc)],_0x4dc14b,this[_0xc4aaea(0x472)]);_0x267e1b[_0xc4aaea(0x371)](),_0x591628=_0x267e1b;}else _0x591628=this[_0xc4aaea(0x376)]['createInstance'](_0x40d214,this[_0xc4aaea(0x391)],this[_0xc4aaea(0x2fc)],this[_0xc4aaea(0x472)]);}}return _0x591628[_0xc4aaea(0x4f5)](),_0x591628;}catch(_0x51b51d){return this['_logService'][_0xc4aaea(0x512)](_0xc4aaea(0x32d),_0xc4aaea(0x489),_0x51b51d),this[_0xc4aaea(0x376)]['createInstance'](_0x1d1c0e,this[_0xc4aaea(0x391)],this[_0xc4aaea(0x2fc)],this[_0xc4aaea(0x44b)],this[_0xc4aaea(0x1bb)],this[_0xc4aaea(0x472)],!0x1);}}[_0x4b1ec3(0x434)](){const _0x3c9c11=_0x4b1ec3;throw new Error(_0x3c9c11(0x41a));}[_0x4b1ec3(0x273)](_0x37a796){return this['_pendingMutations']['push'](_0x37a796),this;}[_0x4b1ec3(0x3c0)](_0x4c780a){const _0x2dfafe=_0x4b1ec3;return this[_0x2dfafe(0x375)][_0x2dfafe(0x38a)](_0x4c780a),this;}[_0x4b1ec3(0x46c)](_0x26f671){const _0x150612=_0x4b1ec3;if(this[_0x150612(0x44b)])return this['_acknowledgedAwaitingChangeset']=this[_0x150612(0x44b)],this[_0x150612(0x44b)]=null,this;throw new Error(_0x150612(0x2de));}['onRemoteRej'](_0x25ddf4){const _0x26b5aa=_0x4b1ec3;return this[_0x26b5aa(0x3ce)](!!(_0x25ddf4!=null&&_0x25ddf4[_0x26b5aa(0x42f)]));}[_0x4b1ec3(0x2f5)](){const _0x32c78d=_0x4b1ec3;return this[_0x32c78d(0x376)][_0x32c78d(0x1ab)](_0x394166,this[_0x32c78d(0x391)],this[_0x32c78d(0x2fc)],this[_0x32c78d(0x44b)],this[_0x32c78d(0x1bb)],this[_0x32c78d(0x472)]);}[_0x4b1ec3(0x19e)](){return this;}[_0x4b1ec3(0x3ce)](_0x5acc9e){const _0x3cc088=_0x4b1ec3;return this['_injector'][_0x3cc088(0x1ab)](_0x1d1c0e,this['unitID'],this[_0x3cc088(0x2fc)],this[_0x3cc088(0x44b)],this[_0x3cc088(0x1bb)],this[_0x3cc088(0x472)],_0x5acc9e);}};_0x5d3d56=_0x3e342b([_0x15ca9e(0x7,_0xff0938['Inject'](_0xff0938[_0x4b1ec3(0x22a)])),_0x15ca9e(0x8,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda[_0x4b1ec3(0x481)])),_0x15ca9e(0x9,_0xff0938['Inject'](_0x99db31[_0x4b1ec3(0x4de)])),_0x15ca9e(0xa,_0x495bbc[_0x4b1ec3(0x22c)]),_0x15ca9e(0xb,_0x495bbc['ICommandService']),_0x15ca9e(0xc,_0x495bbc['IUndoRedoService']),_0x15ca9e(0xd,_0x2a1cda[_0x4b1ec3(0x21c)])],_0x5d3d56);function _0x2070df(_0x2bb926,_0x15e437,_0x4ec328,_0x4551f7,_0xf73751,_0x25e968){const _0x3079bf=_0x4b1ec3;return _0x4551f7&&_0xf73751[_0x3079bf(0x2b7)]?_0x2bb926[_0x3079bf(0x1ab)](_0x375398,_0x15e437,_0x4ec328,_0x4551f7,_0xf73751,_0x25e968):_0x4551f7?_0x2bb926['createInstance'](_0x4a1f33,_0x15e437,_0x4ec328,_0x4551f7,_0x25e968):_0xf73751[_0x3079bf(0x2b7)]?_0x2bb926[_0x3079bf(0x1ab)](_0x5ada80,_0x15e437,_0x4ec328,_0xf73751,_0x25e968):_0x2bb926[_0x3079bf(0x1ab)](_0x40d214,_0x15e437,_0x4ec328,_0x25e968);}var _0x27646c=Object[_0x4b1ec3(0x356)],_0x24ae5a=Object[_0x4b1ec3(0x507)],_0x512524=(_0x2265dc,_0xb18da9,_0x4a286e,_0x457736)=>{for(var _0x33abe3=_0x457736>0x1?void 0x0:_0x457736?_0x24ae5a(_0xb18da9,_0x4a286e):_0xb18da9,_0x16170f=_0x2265dc['length']-0x1,_0x515f77;_0x16170f>=0x0;_0x16170f--)(_0x515f77=_0x2265dc[_0x16170f])&&(_0x33abe3=(_0x457736?_0x515f77(_0xb18da9,_0x4a286e,_0x33abe3):_0x515f77(_0x33abe3))||_0x33abe3);return _0x457736&&_0x33abe3&&_0x27646c(_0xb18da9,_0x4a286e,_0x33abe3),_0x33abe3;},_0x3b3ac0=(_0x49f098,_0x397472)=>(_0x43b4e2,_0x449476)=>_0x397472(_0x43b4e2,_0x449476,_0x49f098);_0x99db31[_0x4b1ec3(0x45c)]=class extends _0x495bbc[_0x4b1ec3(0x456)]{constructor(_0xcd47d,_0x10a8d9,_0x24be89){const _0x3db6ad=_0x4b1ec3;super(),_0x5d8027(this,_0x3db6ad(0x20a),new Map()),_0x5d8027(this,'_entityInit$',new _0x11b67e[(_0x3db6ad(0x486))]()),(this[_0x3db6ad(0x376)]=_0xcd47d,this[_0x3db6ad(0x3b4)]=_0x10a8d9,this[_0x3db6ad(0x352)]=_0x24be89,this['_init']());}[_0x4b1ec3(0x3f5)](){const _0x5318fb=_0x4b1ec3;super['dispose'](),this['_entities'][_0x5318fb(0x14d)](_0x26612d=>_0x26612d['dispose']()),this[_0x5318fb(0x20a)]['clear']();}[_0x4b1ec3(0x36d)](_0x1ad2e7){const _0xc2ee59=_0x4b1ec3;var _0x537aba;return(_0x537aba=this['_entities'][_0xc2ee59(0x4ce)](_0x1ad2e7))!=null?_0x537aba:null;}[_0x4b1ec3(0x179)](_0x1644c6){const _0x114306=_0x4b1ec3,_0x13bc17=this[_0x114306(0x36d)](_0x1644c6);return _0x13bc17?_0x11b67e['of'](_0x13bc17):this[_0x114306(0x3b1)][_0x114306(0x377)](_0x3e7fcd[_0x114306(0x319)](_0x564e9a=>_0x564e9a[_0x114306(0x391)]===_0x1644c6));}[_0x4b1ec3(0x468)](){const _0x26f958=_0x4b1ec3;this[_0x26f958(0x352)][_0x26f958(0x251)](_0x495bbc[_0x26f958(0x2d8)]['UNIVER_SHEET'])[_0x26f958(0x377)](_0x11b67e[_0x26f958(0x40b)](this[_0x26f958(0x26e)]),_0x3e7fcd[_0x26f958(0x504)](0x10))[_0x26f958(0x43a)](async _0x4a40ac=>{const _0x4a4acb=_0x26f958,_0x31f6c3=_0x4a40ac[_0x4a4acb(0x317)](),_0x58caaa=await this[_0x4a4acb(0x13d)](_0x31f6c3,_0x1ffbf2[_0x4a4acb(0x271)]);this[_0x4a4acb(0x20a)][_0x4a4acb(0x20e)](_0x31f6c3,_0x58caaa);}),this[_0x26f958(0x352)][_0x26f958(0x251)](_0x495bbc['UniverInstanceType'][_0x26f958(0x438)])[_0x26f958(0x377)](_0x11b67e[_0x26f958(0x40b)](this['dispose$']),_0x3e7fcd[_0x26f958(0x504)](0x10))[_0x26f958(0x377)](_0x3e7fcd['filter'](_0x1da2d4=>!_0x1da2d4[_0x26f958(0x317)]()[_0x26f958(0x49d)]('__')))[_0x26f958(0x43a)](async _0x3f89e6=>{const _0xc848fa=_0x26f958,_0x403f09=_0x3f89e6[_0xc848fa(0x317)](),_0x4c740d=await this['_startCollaboration'](_0x403f09,_0x1ffbf2['UNIVER_DOC']);this[_0xc848fa(0x20a)]['set'](_0x403f09,_0x4c740d);}),_0x11b67e[_0x26f958(0x140)](this[_0x26f958(0x352)][_0x26f958(0x4ab)](_0x495bbc[_0x26f958(0x2d8)][_0x26f958(0x271)]),this['_univerInstanceService'][_0x26f958(0x4ab)](_0x495bbc[_0x26f958(0x2d8)][_0x26f958(0x438)]))[_0x26f958(0x377)](_0x11b67e[_0x26f958(0x40b)](this[_0x26f958(0x26e)]))[_0x26f958(0x43a)](_0x1c3be8=>{const _0x542e6f=_0x26f958,_0x4ed940=_0x1c3be8[_0x542e6f(0x317)](),_0x10d8f6=this[_0x542e6f(0x20a)][_0x542e6f(0x4ce)](_0x4ed940);_0x10d8f6&&(_0x10d8f6[_0x542e6f(0x3f5)](),this[_0x542e6f(0x20a)][_0x542e6f(0x2c8)](_0x4ed940));});}async[_0x4b1ec3(0x13d)](_0x5aac07,_0x54dc06){const _0x3ead3c=_0x4b1ec3,_0x55f40e=await this[_0x3ead3c(0x3b4)]['requireSession'](_0x5aac07),_0x480a55=this['_injector'][_0x3ead3c(0x1ab)](this[_0x3ead3c(0x1c4)](_0x54dc06),_0x5aac07,_0x54dc06,_0x55f40e);return await _0x480a55[_0x3ead3c(0x228)](),this['_entityInit$'][_0x3ead3c(0x2b2)](_0x480a55),_0x480a55;}[_0x4b1ec3(0x1c4)](_0x85e246){const _0x1f296b=_0x4b1ec3;switch(_0x85e246){case _0x1ffbf2['UNIVER_DOC']:return _0x50d96d;case _0x1ffbf2[_0x1f296b(0x271)]:return _0x99db31[_0x1f296b(0x295)];default:throw new Error(_0x1f296b(0x30d)+_0x85e246);}}},_0x99db31[_0x4b1ec3(0x45c)]=_0x512524([_0x495bbc[_0x4b1ec3(0x34d)](_0x495bbc[_0x4b1ec3(0x287)][_0x4b1ec3(0x3e4)],_0x99db31[_0x4b1ec3(0x45c)]),_0x3b3ac0(0x0,_0xff0938['Inject'](_0xff0938[_0x4b1ec3(0x22a)])),_0x3b3ac0(0x1,_0xff0938['Inject'](_0x99db31[_0x4b1ec3(0x16c)])),_0x3b3ac0(0x2,_0x495bbc[_0x4b1ec3(0x216)])],_0x99db31[_0x4b1ec3(0x45c)]);let _0x1f6acd=class extends _0x495bbc[_0x4b1ec3(0x456)]{constructor(_0xef7c80,_0x401438,_0xfffc2e,_0x37afaa,_0x252a41,_0x2cb99a,_0xa88e38,_0x55cf0e,_0xa13842,_0x334a87,_0x43a8b8,_0xdc1560,_0x2f0471){const _0x129f2b=_0x4b1ec3;super(),_0x5d8027(this,_0x129f2b(0x198),new _0x11b67e['BehaviorSubject'](null)),_0x5d8027(this,_0x129f2b(0x306),this[_0x129f2b(0x198)][_0x129f2b(0x392)]()),_0x5d8027(this,_0x129f2b(0x4ae)),_0x5d8027(this,_0x129f2b(0x2c4),!0x1),_0x5d8027(this,'status$',this[_0x129f2b(0x306)][_0x129f2b(0x377)](_0x3e7fcd[_0x129f2b(0x270)](_0xbe204a=>_0xbe204a?_0xbe204a[_0x129f2b(0x465)]:_0x17c726[_0x129f2b(0x30a)]),_0x3e7fcd['shareReplay'](0x1))),_0x5d8027(this,'_transitionLocked',!0x1),_0x5d8027(this,_0x129f2b(0x31d),[]),(this[_0x129f2b(0x391)]=_0xef7c80,this['_type']=_0x401438,this[_0x129f2b(0x279)]=_0xfffc2e,this[_0x129f2b(0x376)]=_0x37afaa,this[_0x129f2b(0x43d)]=_0x252a41,this[_0x129f2b(0x44a)]=_0x2cb99a,this['_localeService']=_0xa88e38,this['_revisionService']=_0x55cf0e,this[_0x129f2b(0x38b)]=_0xa13842,this[_0x129f2b(0x2e4)]=_0x334a87,this['_messageService']=_0x43a8b8,this[_0x129f2b(0x245)]=_0xdc1560,this[_0x129f2b(0x13b)]=_0x2f0471);}get[_0x4b1ec3(0x42b)](){return this['_state'];}async[_0x4b1ec3(0x228)](){const _0x2cc5c3=_0x4b1ec3;if(this['state'])throw new Error(_0x2cc5c3(0x4d9));await this[_0x2cc5c3(0x468)]();}['pauseCollaboration'](){const _0x26f0ad=_0x4b1ec3;return this[_0x26f0ad(0x2c4)]=!0x0,_0x495bbc[_0x26f0ad(0x46b)](()=>{const _0x515ead=_0x26f0ad;this[_0x515ead(0x2c4)]=!0x1,this[_0x515ead(0x1a3)]();});}[_0x4b1ec3(0x3e1)](_0x3a9c11){const _0x2f9346=_0x4b1ec3;this[_0x2f9346(0x4ae)]=_0x3a9c11,this[_0x2f9346(0x198)][_0x2f9346(0x2b2)](_0x3a9c11);}async[_0x4b1ec3(0x468)](){const _0x3254ad=_0x4b1ec3;var _0x2a0d48;return this['_updateState'](await this[_0x3254ad(0x189)]()),this['_singleActiveUnitService']&&((_0x2a0d48=this[_0x3254ad(0x13b)])==null||_0x2a0d48[_0x3254ad(0x1fc)](this[_0x3254ad(0x391)]),this[_0x3254ad(0x3fb)](_0x495bbc[_0x3254ad(0x46b)](this[_0x3254ad(0x13b)]['getUnitStatus$'](this[_0x3254ad(0x391)])[_0x3254ad(0x43a)](_0x46f023=>{const _0x17f9c5=_0x3254ad;this['_logService'][_0x17f9c5(0x2ca)](_0x17f9c5(0x187),_0x17f9c5(0x3a7),_0x46f023),_0x46f023===_0x59b30c[_0x17f9c5(0x4cd)]?(this[_0x17f9c5(0x4eb)][_0x17f9c5(0x42c)]({'content':this[_0x17f9c5(0x131)]['t'](_0x17f9c5(0x291)),'type':_0x153393[_0x17f9c5(0x4a8)][_0x17f9c5(0x16e)]}),this[_0x17f9c5(0x245)][_0x17f9c5(0x162)](new _0x344713[(_0x17f9c5(0x17c))](this[_0x17f9c5(0x391)])['id'],!0x1)):this[_0x17f9c5(0x245)]['updatePermissionPoint'](new _0x344713['WorkbookEditablePermission'](this[_0x17f9c5(0x391)])['id'],!0x0);})))),this[_0x3254ad(0x3fb)](_0x495bbc[_0x3254ad(0x46b)](this[_0x3254ad(0x279)]['sessionStatus$'][_0x3254ad(0x43a)](_0x15cb8b=>{const _0x5c40f7=_0x3254ad;_0x15cb8b===_0x36bc51[_0x5c40f7(0x4b8)]?this[_0x5c40f7(0x28a)]():_0x15cb8b===_0x36bc51['OFFLINE']&&this['_toggleOffline']();}))),this[_0x3254ad(0x3fb)](_0x495bbc[_0x3254ad(0x46b)](this[_0x3254ad(0x279)][_0x3254ad(0x48b)][_0x3254ad(0x43a)](_0x535d7d=>{const _0x2ffb4c=_0x3254ad;try{switch(_0x535d7d[_0x2ffb4c(0x2fa)]){case _0x2a1cda[_0x2ffb4c(0x2a0)]['NEW_CHANGESETS']:{this['_onRemoteChangeset'](_0x2a1cda[_0x2ffb4c(0x1d0)](_0x535d7d['data']));break;}case _0x2a1cda[_0x2ffb4c(0x2a0)][_0x2ffb4c(0x411)]:{this['_onRemoteACK'](_0x535d7d[_0x2ffb4c(0x3cf)]);break;}case _0x2a1cda['CollaborationEvent'][_0x2ffb4c(0x2a6)]:{this['_onRemoteRejected']();break;}case _0x2a1cda[_0x2ffb4c(0x2a0)][_0x2ffb4c(0x497)]:{this[_0x2ffb4c(0x453)](_0x535d7d[_0x2ffb4c(0x3cf)][_0x2ffb4c(0x463)][_0x2ffb4c(0x270)](_0x331b27=>_0x2a1cda[_0x2ffb4c(0x1d0)](_0x331b27)));break;}case _0x2a1cda['CollaborationEvent'][_0x2ffb4c(0x405)]:this[_0x2ffb4c(0x26d)]({'isPermissionRej':!0x0});}}catch(_0x349fd4){throw console[_0x2ffb4c(0x512)]('Error\x20on\x20receiving\x20event',_0x349fd4),_0x349fd4;}}))),this[_0x3254ad(0x4ae)];}[_0x4b1ec3(0x3d8)](){const _0x5f94e5=_0x4b1ec3;this[_0x5f94e5(0x1d3)]=!0x1;}['_lockTransition'](){const _0x137ce0=_0x4b1ec3;if(this[_0x137ce0(0x1d3)])throw new Error(_0x137ce0(0x4e0));this['_transitionLocked']=!0x0;}[_0x4b1ec3(0x398)](_0x3af867){const _0x59f9ab=_0x4b1ec3;this[_0x59f9ab(0x474)](),this[_0x59f9ab(0x3e1)](this[_0x59f9ab(0x4ae)][_0x59f9ab(0x273)](_0x3af867)),this[_0x59f9ab(0x3d8)]();}[_0x4b1ec3(0x330)](_0x500fd1){const _0x3fe4b0=_0x4b1ec3;if(!(_0x500fd1[_0x3fe4b0(0x44e)]<=this['_revisionService']['getCurrentRevForDocument'](this[_0x3fe4b0(0x391)]))){if(this[_0x3fe4b0(0x2c4)]){this['_remoteChangesetQueue'][_0x3fe4b0(0x38a)](_0x500fd1);return;}this[_0x3fe4b0(0x40f)](_0x500fd1);}}['_exhaustRemoteChangesetQueue'](){const _0x10de52=_0x4b1ec3;this[_0x10de52(0x31d)][_0x10de52(0x14d)](_0x5285d2=>this[_0x10de52(0x40f)](_0x5285d2)),this['_remoteChangesetQueue']=[];}[_0x4b1ec3(0x40f)](_0x9a7608){const _0x9e2d63=_0x4b1ec3,_0x6ea41c=this[_0x9e2d63(0x44a)][_0x9e2d63(0x367)][_0x9e2d63(0x297)](this[_0x9e2d63(0x44a)][_0x9e2d63(0x367)][_0x9e2d63(0x1ff)]()['COMPRESS_MUTATION_APPLY'])(_0x9a7608[_0x9e2d63(0x495)],null)||_0x9a7608[_0x9e2d63(0x495)],_0xd926df={..._0x9a7608,'mutations':_0x6ea41c};this[_0x9e2d63(0x474)](),this[_0x9e2d63(0x3e1)](this[_0x9e2d63(0x4ae)][_0x9e2d63(0x3c0)](_0xd926df)),this[_0x9e2d63(0x3d8)]();}[_0x4b1ec3(0x2d5)](_0x54730a){const _0x2e9925=_0x4b1ec3;this[_0x2e9925(0x474)](),this[_0x2e9925(0x3e1)](this['_state'][_0x2e9925(0x46c)](_0x54730a)),this[_0x2e9925(0x3d8)]();}[_0x4b1ec3(0x26d)](_0xe4a817){const _0x14467b=_0x4b1ec3;this[_0x14467b(0x474)](),this[_0x14467b(0x3e1)](this[_0x14467b(0x4ae)]['onRemoteRej'](_0xe4a817)),this['_unlockTransition']();}[_0x4b1ec3(0x453)](_0x363939){const _0x4a7f62=_0x4b1ec3;if(!(this[_0x4a7f62(0x4ae)]instanceof _0x5d3d56))throw new TypeError(_0x4a7f62(0x2fd));const _0x41d65e=_0x363939['map'](_0x139579=>{const _0x2860aa=_0x4a7f62,_0x38d72c=this['_compressMutationService'][_0x2860aa(0x367)][_0x2860aa(0x297)](this[_0x2860aa(0x44a)][_0x2860aa(0x367)][_0x2860aa(0x1ff)]()[_0x2860aa(0x152)])(_0x139579[_0x2860aa(0x495)],null)||_0x139579[_0x2860aa(0x495)];return{..._0x139579,'mutations':_0x38d72c};});this[_0x4a7f62(0x474)](),this[_0x4a7f62(0x3e1)](this[_0x4a7f62(0x4ae)][_0x4a7f62(0x2d0)](_0x41d65e)),this['_unlockTransition']();}[_0x4b1ec3(0x3a3)](){const _0x2e6cbe=_0x4b1ec3;this[_0x2e6cbe(0x474)](),this[_0x2e6cbe(0x3e1)](this[_0x2e6cbe(0x4ae)][_0x2e6cbe(0x2f5)]()),this[_0x2e6cbe(0x3d8)]();}['_toggleOnline'](){const _0x4497b0=_0x4b1ec3;this[_0x4497b0(0x474)](),this[_0x4497b0(0x3e1)](this[_0x4497b0(0x4ae)][_0x4497b0(0x19e)]()),this[_0x4497b0(0x3d8)]();}async[_0x4b1ec3(0x189)](){return new Promise(_0x15815a=>{const _0x5c1eca=_0x2301;this['_session']['sessionStatus$'][_0x5c1eca(0x377)](_0x3e7fcd[_0x5c1eca(0x3ad)](0x1))[_0x5c1eca(0x43a)](async _0x542b57=>{const _0x3e4743=_0x5c1eca;_0x15815a(await this[_0x3e4743(0x321)](_0x542b57===_0x36bc51[_0x3e4743(0x4b8)]));});});}[_0x4b1ec3(0x329)](){const _0x236e0f=this['unitID'];return{'onStateChange':(_0x5a1b0f,_0x5a6ed6)=>{const _0x1bb63b=_0x2301;if(_0x5a1b0f!==this['_state'])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x5a1b0f[_0x1bb63b(0x465)]+_0x1bb63b(0x1ca)+_0x5a6ed6['status']+_0x1bb63b(0x1bd)+this['_state'][_0x1bb63b(0x465)]);this[_0x1bb63b(0x3e1)](_0x5a6ed6);},'onSendChangeset':_0xbf2049=>{const _0x2e3537=_0x2301,_0x476057={'eventID':_0x2a1cda[_0x2e3537(0x2a0)][_0x2e3537(0x1a0)],'data':{'unitID':_0xbf2049['unitID'],'unitType':this[_0x2e3537(0x249)],'changeset':_0xbf2049,'memberID':this['_session'][_0x2e3537(0x294)]()}};this['_session'][_0x2e3537(0x50c)](_0x476057,this['unitID']);},'onMissingChangesets':({from:_0x55e4bb,to:_0x2c236b})=>{const _0x252927=_0x2301;this['_logService'][_0x252927(0x2ca)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x55e4bb+_0x252927(0x3fd)+_0x2c236b);const _0x1da82c={'eventID':_0x2a1cda[_0x252927(0x2a0)]['FETCH_MISSING'],'data':{'unitID':_0x236e0f,'unitType':this[_0x252927(0x249)],'from':_0x55e4bb,'to':_0x2c236b}};this[_0x252927(0x279)][_0x252927(0x50c)](_0x1da82c,this[_0x252927(0x391)]);}};}async[_0x4b1ec3(0x321)](_0x19f178){const _0x5df588=_0x4b1ec3;var _0x548cd2,_0x465778;const _0x4f5437=await this['_localCacheService'][_0x5df588(0x258)](this[_0x5df588(0x391)]),_0x48c326=(_0x548cd2=_0x4f5437==null?void 0x0:_0x4f5437[_0x5df588(0x495)])!=null?_0x548cd2:[],_0x4d9297=(_0x465778=_0x4f5437==null?void 0x0:_0x4f5437['awaitingChangeset'])!=null?_0x465778:null,_0x4691b2=this[_0x5df588(0x391)];try{this['_replayCachedMutations'](_0x4d9297,_0x48c326);}catch(_0x1eabbc){this[_0x5df588(0x38b)][_0x5df588(0x512)](_0x1eabbc);}const _0x159a4c=this[_0x5df588(0x329)]();if(_0x19f178){const _0x23e980=_0x2070df(this['_injector'],_0x4691b2,this[_0x5df588(0x249)],_0x4d9297,_0x48c326,_0x159a4c);return _0x23e980 instanceof _0x5ada80?_0x23e980[_0x5df588(0x371)]():(_0x23e980 instanceof _0x375398||_0x23e980 instanceof _0x4a1f33)&&_0x23e980[_0x5df588(0x434)](),_0x23e980;}return this[_0x5df588(0x376)]['createInstance'](_0x394166,_0x4691b2,this[_0x5df588(0x249)],_0x4d9297,_0x48c326,_0x159a4c);}[_0x4b1ec3(0x13c)](_0x308c00,_0xdd6e9c){const _0xac82e5=_0x4b1ec3;var _0x205d25,_0x591ece;const _0xa4262=this['_compressMutationService'][_0xac82e5(0x367)][_0xac82e5(0x297)](this[_0xac82e5(0x44a)]['interceptor'][_0xac82e5(0x1ff)]()[_0xac82e5(0x152)]);(_0x205d25=_0xa4262((_0x308c00==null?void 0x0:_0x308c00['mutations'])||[],null))==null||_0x205d25['forEach'](_0x4977cc=>this[_0xac82e5(0x2e4)][_0xac82e5(0x259)](_0x4977cc['id'],_0x4977cc[_0xac82e5(0x3b7)])),(_0x591ece=_0xa4262(_0xdd6e9c||[],null))==null||_0x591ece['forEach'](_0x51b5f1=>this['_commandService'][_0xac82e5(0x259)](_0x51b5f1['id'],_0x51b5f1[_0xac82e5(0x3b7)]));}};_0x1f6acd=_0x512524([_0x3b3ac0(0x3,_0xff0938['Inject'](_0xff0938[_0x4b1ec3(0x22a)])),_0x3b3ac0(0x4,_0xff0938[_0x4b1ec3(0x292)](_0x99db31[_0x4b1ec3(0x4de)])),_0x3b3ac0(0x5,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda[_0x4b1ec3(0x27a)])),_0x3b3ac0(0x6,_0xff0938['Inject'](_0x495bbc[_0x4b1ec3(0x1f4)])),_0x3b3ac0(0x7,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda['RevisionService'])),_0x3b3ac0(0x8,_0x495bbc[_0x4b1ec3(0x22c)]),_0x3b3ac0(0x9,_0x495bbc[_0x4b1ec3(0x28f)]),_0x3b3ac0(0xa,_0x510d97[_0x4b1ec3(0x3c3)]),_0x3b3ac0(0xb,_0x495bbc[_0x4b1ec3(0x1b5)]),_0x3b3ac0(0xc,_0xff0938['Optional'](_0x110bf8))],_0x1f6acd);let _0x50d96d=class extends _0x1f6acd{constructor(_0x9c4004,_0x2db2a0,_0x54521c,_0x4387fc,_0x22c971,_0x35f6a0,_0x1cc8dc,_0xd726bf,_0x16374f,_0x4334c9,_0x510d07,_0x34ce8f,_0x564a16,_0x58cae8,_0x3717a6,_0x52ca51,_0x51572e){const _0x395f10=_0x4b1ec3;super(_0x9c4004,_0x2db2a0,_0x54521c,_0x4387fc,_0x22c971,_0x35f6a0,_0x1cc8dc,_0xd726bf,_0x564a16,_0x58cae8,_0x3717a6,_0x52ca51,_0x51572e),this[_0x395f10(0x391)]=_0x9c4004,this[_0x395f10(0x2fc)]=_0x2db2a0,this[_0x395f10(0x2a4)]=_0x54521c,this[_0x395f10(0x2a2)]=_0x16374f,this['_docTransformIMECacheService']=_0x4334c9,this[_0x395f10(0x21d)]=_0x510d07,this[_0x395f10(0x3df)]=_0x34ce8f;}[_0x4b1ec3(0x329)](){const _0x42ab05=_0x4b1ec3,_0x539b7f=super['_createHandler']();return _0x539b7f[_0x42ab05(0x417)]=_0x255d1d=>this['_docTransformIMECacheService'][_0x42ab05(0x516)](_0x255d1d),_0x539b7f['onTransformSelections']=_0x4b6b6b=>this[_0x42ab05(0x21d)][_0x42ab05(0x38c)](_0x4b6b6b),_0x539b7f['onSyncEditingCollabCursor']=_0x25abcd=>this[_0x42ab05(0x3df)][_0x42ab05(0x381)](_0x25abcd),_0x539b7f[_0x42ab05(0x1b1)]=_0x44cb7f=>this[_0x42ab05(0x150)][_0x42ab05(0x3ac)](_0x44cb7f),_0x539b7f;}async['_init'](){const _0x137a8a=_0x4b1ec3,_0x5a1137=await super[_0x137a8a(0x468)]();return this[_0x137a8a(0x2a2)][_0x137a8a(0x260)]['pipe'](_0x11b67e[_0x137a8a(0x40b)](this[_0x137a8a(0x26e)]))['subscribe'](_0x4cdf89=>{const _0x5d8bfd=_0x137a8a;if(_0x4cdf89==null)return;const {unitId:_0x29cf65,redoState:_0x4ec293,commandId:_0x4e42aa}=_0x4cdf89;if(_0x29cf65!==this[_0x5d8bfd(0x391)])return;const _0x3a4568={'id':_0x4e42aa,'type':_0x495bbc[_0x5d8bfd(0x176)]['MUTATION'],'params':{'unitId':_0x29cf65,'actions':_0x4ec293[_0x5d8bfd(0x274)],'textRanges':null}};this[_0x5d8bfd(0x398)](_0x3a4568);}),_0x5a1137;}};_0x50d96d=_0x512524([_0x3b3ac0(0x3,_0xff0938[_0x4b1ec3(0x292)](_0xff0938[_0x4b1ec3(0x22a)])),_0x3b3ac0(0x4,_0xff0938[_0x4b1ec3(0x292)](_0x99db31[_0x4b1ec3(0x4de)])),_0x3b3ac0(0x5,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda[_0x4b1ec3(0x27a)])),_0x3b3ac0(0x6,_0xff0938[_0x4b1ec3(0x292)](_0x495bbc[_0x4b1ec3(0x1f4)])),_0x3b3ac0(0x7,_0xff0938['Inject'](_0x2a1cda['RevisionService'])),_0x3b3ac0(0x8,_0xff0938[_0x4b1ec3(0x292)](_0x257327[_0x4b1ec3(0x457)])),_0x3b3ac0(0x9,_0xff0938[_0x4b1ec3(0x292)](_0x527642)),_0x3b3ac0(0xa,_0xff0938[_0x4b1ec3(0x292)](_0x2fb5e2)),_0x3b3ac0(0xb,_0xff0938['Inject'](_0x4095fc)),_0x3b3ac0(0xc,_0x495bbc[_0x4b1ec3(0x22c)]),_0x3b3ac0(0xd,_0x495bbc[_0x4b1ec3(0x28f)]),_0x3b3ac0(0xe,_0x510d97['IMessageService']),_0x3b3ac0(0xf,_0x495bbc[_0x4b1ec3(0x1b5)]),_0x3b3ac0(0x10,_0xff0938['Optional'](_0x110bf8))],_0x50d96d),_0x99db31[_0x4b1ec3(0x295)]=class extends _0x1f6acd{constructor(_0x52ed74,_0x4bdc45,_0x404802,_0x2486d9,_0xb0ddaa,_0x2e4d5a,_0x68ef11,_0x2d987b,_0x1636ab,_0x2a6fcc,_0x1cbb4d,_0x2c2ade,_0x32361c,_0x57e966){const _0x1446b5=_0x4b1ec3;super(_0x52ed74,_0x4bdc45,_0x404802,_0x2486d9,_0xb0ddaa,_0x2e4d5a,_0x68ef11,_0x2d987b,_0x2a6fcc,_0x1cbb4d,_0x2c2ade,_0x32361c,_0x57e966),this[_0x1446b5(0x391)]=_0x52ed74,this[_0x1446b5(0x2fc)]=_0x4bdc45,this[_0x1446b5(0x2a4)]=_0x404802,this[_0x1446b5(0x278)]=_0x1636ab;}[_0x4b1ec3(0x329)](){const _0x437400=_0x4b1ec3,_0x4b7f9c=super[_0x437400(0x329)]();return _0x4b7f9c[_0x437400(0x3d5)]=_0x10484f=>this[_0x437400(0x278)][_0x437400(0x38c)](_0x10484f),_0x4b7f9c;}async[_0x4b1ec3(0x468)](){const _0x3678c2=_0x4b1ec3,_0x4910cf=await super['_init']();return this['disposeWithMe'](this[_0x3678c2(0x2e4)][_0x3678c2(0x28b)]((_0x46fad6,_0x14f9cf)=>{const _0x564eac=_0x3678c2;if(_0x46fad6[_0x564eac(0x2fc)]!==_0x495bbc[_0x564eac(0x176)][_0x564eac(0x1b0)]||_0x14f9cf!=null&&_0x14f9cf[_0x564eac(0x4bf)]||_0x14f9cf!=null&&_0x14f9cf[_0x564eac(0x427)])return;const _0x45f4fa=_0x46fad6[_0x564eac(0x3b7)];if((_0x45f4fa==null?void 0x0:_0x45f4fa[_0x564eac(0x384)])!==this[_0x564eac(0x391)])return;const _0x2d44b1=_0x46fad6,_0x597448=this[_0x564eac(0x44a)][_0x564eac(0x367)][_0x564eac(0x297)](this[_0x564eac(0x44a)][_0x564eac(0x367)][_0x564eac(0x1ff)]()[_0x564eac(0x173)])([_0x2d44b1],null)||[_0x2d44b1];this['_onLocalMutation'](_0x597448[0x0]);})),_0x4910cf;}},_0x99db31[_0x4b1ec3(0x295)]=_0x512524([_0x3b3ac0(0x3,_0xff0938[_0x4b1ec3(0x292)](_0xff0938['Injector'])),_0x3b3ac0(0x4,_0xff0938[_0x4b1ec3(0x292)](_0x99db31[_0x4b1ec3(0x4de)])),_0x3b3ac0(0x5,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda['CompressMutationService'])),_0x3b3ac0(0x6,_0xff0938[_0x4b1ec3(0x292)](_0x495bbc[_0x4b1ec3(0x1f4)])),_0x3b3ac0(0x7,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda[_0x4b1ec3(0x481)])),_0x3b3ac0(0x8,_0xff0938['Inject'](_0x56fa9d)),_0x3b3ac0(0x9,_0x495bbc[_0x4b1ec3(0x22c)]),_0x3b3ac0(0xa,_0x495bbc[_0x4b1ec3(0x28f)]),_0x3b3ac0(0xb,_0x510d97[_0x4b1ec3(0x3c3)]),_0x3b3ac0(0xc,_0x495bbc[_0x4b1ec3(0x1b5)]),_0x3b3ac0(0xd,_0xff0938[_0x4b1ec3(0x369)](_0x110bf8))],_0x99db31[_0x4b1ec3(0x295)]);const _0x2f62df=['purple300','jiqing500',_0x4b1ec3(0x151),'red300',_0x4b1ec3(0x290),_0x4b1ec3(0x517)];class _0x173474 extends _0x495bbc['Disposable']{constructor(){super(...arguments),_0x5d8027(this,'_assignedColors',new Map()),_0x5d8027(this,'_colorIndex',0x0);}[_0x4b1ec3(0x219)](_0x1a3404){const _0x343549=_0x4b1ec3;if(this['_assignedColors'][_0x343549(0x4a3)](_0x1a3404))return this[_0x343549(0x1df)][_0x343549(0x4ce)](_0x1a3404);const _0x5ab874=_0x2f62df[this[_0x343549(0x51a)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%_0x2f62df[_0x343549(0x2b7)],this[_0x343549(0x1df)][_0x343549(0x20e)](_0x1a3404,_0x5ab874),_0x5ab874;}}var _0x2303d9=Object[_0x4b1ec3(0x356)],_0x12d8ad=Object[_0x4b1ec3(0x507)],_0x2e77ba=(_0x204e7f,_0x1ed7a2,_0x4752ca,_0x357cb9)=>{const _0x47ddbc=_0x4b1ec3;for(var _0x1f4ed8=_0x357cb9>0x1?void 0x0:_0x357cb9?_0x12d8ad(_0x1ed7a2,_0x4752ca):_0x1ed7a2,_0x595355=_0x204e7f[_0x47ddbc(0x2b7)]-0x1,_0x16be46;_0x595355>=0x0;_0x595355--)(_0x16be46=_0x204e7f[_0x595355])&&(_0x1f4ed8=(_0x357cb9?_0x16be46(_0x1ed7a2,_0x4752ca,_0x1f4ed8):_0x16be46(_0x1f4ed8))||_0x1f4ed8);return _0x357cb9&&_0x1f4ed8&&_0x2303d9(_0x1ed7a2,_0x4752ca,_0x1f4ed8),_0x1f4ed8;},_0xbb52c7=(_0x2a09a6,_0xdfdcb3)=>(_0x383f34,_0x7e5bb3)=>_0xdfdcb3(_0x383f34,_0x7e5bb3,_0x2a09a6);const _0x133a30=0x12c,_0x513ae7=0x64,_0x4ea516=()=>{let _0x422d43=[],_0x59db31=!0x1;return _0xfabd57=>{const _0x188d28=_0x2301;_0x422d43[_0x188d28(0x38a)](_0xfabd57),_0x59db31||(_0x59db31=!0x0,setTimeout(()=>{const _0x53ab52=_0x188d28;_0x422d43[_0x53ab52(0x14d)](_0x1700ae=>_0x1700ae()),_0x422d43=[],_0x59db31=!0x1;}));};};let _0x45d46d=class extends _0x495bbc[_0x4b1ec3(0x456)]{constructor(_0x514dc0,_0x310cfc,_0x13bc9f,_0x4eb7c0,_0x58588f,_0x3d76ae,_0x145626,_0x1b21c5){const _0x4d415d=_0x4b1ec3;super(),_0x5d8027(this,_0x4d415d(0x155),!0x1),_0x5d8027(this,'_init',!0x1),_0x5d8027(this,_0x4d415d(0x3f6),new _0x11b67e[(_0x4d415d(0x2a9))](new Map())),_0x5d8027(this,_0x4d415d(0x2c3),this[_0x4d415d(0x3f6)]['asObservable']()),_0x5d8027(this,_0x4d415d(0x45a),new _0x11b67e['BehaviorSubject']([])),_0x5d8027(this,_0x4d415d(0x262),this[_0x4d415d(0x45a)]['pipe'](_0x11b67e[_0x4d415d(0x479)](_0x133a30))),_0x5d8027(this,_0x4d415d(0x372),_0x5be5a1((_0x13243a,_0x1cf7e5)=>{const _0x1aaf7d=_0x4d415d,_0x1a3753={'eventID':_0x2a1cda['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x1aaf7d(0x391)],'memberID':this[_0x1aaf7d(0x279)][_0x1aaf7d(0x294)](),'selection':_0x4da4df[_0x1aaf7d(0x2df)](_0x13243a,_0x1cf7e5[_0x1aaf7d(0x2d7)])}};this['_session'][_0x1aaf7d(0x50c)](_0x1a3753,this[_0x1aaf7d(0x391)]);},_0x513ae7)),(this['unitID']=_0x514dc0,this[_0x4d415d(0x279)]=_0x310cfc,this[_0x4d415d(0x376)]=_0x13bc9f,this['_colorAssignService']=_0x4eb7c0,this[_0x4d415d(0x3ae)]=_0x58588f,this[_0x4d415d(0x352)]=_0x3d76ae,this[_0x4d415d(0x2e4)]=_0x145626,this[_0x4d415d(0x4a9)]=_0x1b21c5);}get[_0x4b1ec3(0x2db)](){const _0x51ca95=_0x4b1ec3;return this[_0x51ca95(0x3f6)][_0x51ca95(0x357)]();}get['roomMembers'](){const _0x3b0751=_0x4b1ec3;return this[_0x3b0751(0x45a)]['getValue']();}[_0x4b1ec3(0x3f5)](){const _0x5620c9=_0x4b1ec3;super['dispose'](),this[_0x5620c9(0x3f6)][_0x5620c9(0x2b2)](new Map()),this[_0x5620c9(0x3f6)][_0x5620c9(0x4c6)](),this['_roomMembers$'][_0x5620c9(0x2b2)]([]),this[_0x5620c9(0x45a)][_0x5620c9(0x4c6)]();}[_0x4b1ec3(0x228)](){const _0x29db4e=_0x4b1ec3;this['_init']||(this[_0x29db4e(0x468)]=!0x0,this['_session']['sessionStatus$'][_0x29db4e(0x377)](_0x11b67e[_0x29db4e(0x40b)](this[_0x29db4e(0x26e)]))[_0x29db4e(0x43a)](_0x3300b8=>{const _0x556654=_0x29db4e;_0x3300b8===_0x36bc51[_0x556654(0x4b8)]?this[_0x556654(0x28a)]():this[_0x556654(0x3a3)]();}),this[_0x29db4e(0x279)][_0x29db4e(0x48b)]['pipe'](_0x11b67e[_0x29db4e(0x40b)](this[_0x29db4e(0x26e)]))['subscribe'](_0x49580f=>{const _0xbe28fc=_0x29db4e,_0x469b99=_0x49580f[_0xbe28fc(0x2fa)];_0x469b99===_0x2a1cda['CollaborationEvent'][_0xbe28fc(0x1ee)]&&this[_0xbe28fc(0x40a)](_0x49580f),_0x469b99===_0x2a1cda[_0xbe28fc(0x2a0)][_0xbe28fc(0x4a2)]&&this[_0xbe28fc(0x1c2)](_0x49580f);}),this[_0x29db4e(0x1bf)](),this[_0x29db4e(0x3fb)](this['_commandService']['onCommandExecuted'](_0x305c2e=>{const _0x5aaa92=_0x29db4e;if(this['_online']&&_0x305c2e['id']===_0x344713[_0x5aaa92(0x41f)]['id']&&_0x305c2e['params'][_0x5aaa92(0x384)]===this['unitID']){const _0x46b166=_0x305c2e[_0x5aaa92(0x3b7)];this[_0x5aaa92(0x372)](_0x46b166[_0x5aaa92(0x327)],_0x46b166[_0x5aaa92(0x4db)][0x0]);}})));}[_0x4b1ec3(0x40a)](_0x52c68d){const _0x2ae865=_0x4b1ec3;var _0x15a8d9,_0x149f2a;const {memberID:_0x5e3876,selection:_0x3f7149}=_0x52c68d[_0x2ae865(0x3cf)],{sheetName:_0x45b3a7,range:_0x2aa571}=_0x4da4df[_0x2ae865(0x2cd)](_0x3f7149),_0x2f1558={'name':(_0x149f2a=(_0x15a8d9=this['_memberService']['getMember'](this[_0x2ae865(0x391)],_0x5e3876))==null?void 0x0:_0x15a8d9[_0x2ae865(0x3eb)])!=null?_0x149f2a:_0x2ae865(0x2c1),'range':this[_0x2ae865(0x3cc)](_0x45b3a7,_0x2aa571),'sheetID':_0x45b3a7,'color':this['_colorAssignService'][_0x2ae865(0x219)](_0x5e3876),'selection':_0x3f7149},_0x325a00=this['cursorInfo'];_0x325a00['set'](_0x5e3876,_0x2f1558),this[_0x2ae865(0x3f6)][_0x2ae865(0x2b2)](_0x325a00);}[_0x4b1ec3(0x1c2)](_0x299009){const _0xf4150f=_0x4b1ec3,{memberID:_0x1adfb9}=_0x299009[_0xf4150f(0x3cf)],_0x1cabc8=this[_0xf4150f(0x2db)];_0x1cabc8[_0xf4150f(0x2c8)](_0x1adfb9),this['_cursorInfo$'][_0xf4150f(0x2b2)](_0x1cabc8);}[_0x4b1ec3(0x3cc)](_0x479138,_0xc22f60){const _0x2df37e=_0x4b1ec3;var _0x4ef38e,_0x156d8c;const _0x383139=(_0x156d8c=(_0x4ef38e=this[_0x2df37e(0x352)]['getUniverSheetInstance'](this[_0x2df37e(0x391)]))==null?void 0x0:_0x4ef38e[_0x2df37e(0x21f)](_0x479138))==null?void 0x0:_0x156d8c[_0x2df37e(0x206)]();return(_0x383139==null?void 0x0:_0x383139[_0x2df37e(0x26f)](_0xa02a59=>_0x495bbc['Rectangle']['contains'](_0xa02a59,_0xc22f60)))||_0xc22f60;}['_onRefRangeChange'](){const _0x539e5b=_0x4b1ec3,_0x17adad=new _0x495bbc['DisposableCollection'](),_0x3ae3e4=_0x4ea516(),_0x4f6980=()=>{const _0x23cc91=_0x2301;_0x17adad[_0x23cc91(0x3f5)]();const _0xc0ac7c=(_0x57d7e7,_0x3ddef0,_0x3d40d4,_0xf1dbab)=>{const _0xbd3b6=_0x23cc91;let _0x5646df=[];switch(_0x57d7e7['id']){case _0x344713[_0xbd3b6(0x380)][_0xbd3b6(0x18d)]:{_0x5646df=_0x344713[_0xbd3b6(0x48c)](_0x57d7e7,_0xf1dbab);break;}case _0x344713[_0xbd3b6(0x380)]['DeleteRangeMoveUpCommandId']:{_0x5646df=_0x344713[_0xbd3b6(0x27f)](_0x57d7e7,_0xf1dbab);break;}case _0x344713[_0xbd3b6(0x380)][_0xbd3b6(0x488)]:{_0x5646df=_0x344713[_0xbd3b6(0x15c)](_0x57d7e7,_0xf1dbab);break;}case _0x344713[_0xbd3b6(0x380)][_0xbd3b6(0x49b)]:{_0x5646df=_0x344713[_0xbd3b6(0x4a6)](_0x57d7e7,_0xf1dbab);break;}case _0x344713[_0xbd3b6(0x380)][_0xbd3b6(0x23d)]:{_0x5646df=_0x344713[_0xbd3b6(0x296)](_0x57d7e7,_0xf1dbab);break;}case _0x344713[_0xbd3b6(0x380)][_0xbd3b6(0x276)]:{_0x5646df=_0x344713['handleInsertRow'](_0x57d7e7,_0xf1dbab);break;}case _0x344713[_0xbd3b6(0x380)][_0xbd3b6(0x203)]:{_0x5646df=_0x344713['handleMoveRange'](_0x57d7e7,_0xf1dbab);break;}case _0x344713[_0xbd3b6(0x380)][_0xbd3b6(0x2af)]:{_0x5646df=_0x344713['handleIRemoveCol'](_0x57d7e7,_0xf1dbab);break;}case _0x344713[_0xbd3b6(0x380)][_0xbd3b6(0x248)]:{_0x5646df=_0x344713['handleIRemoveRow'](_0x57d7e7,_0xf1dbab);break;}}const _0x2d7023=_0x344713['runRefRangeMutations'](_0x5646df,_0xf1dbab),_0x5ded59=this['cursorInfo'][_0xbd3b6(0x4ce)](_0x3ddef0);if(_0x5ded59&&_0x2d7023){const _0x1c2d04={..._0x5ded59,'range':_0x2d7023};this[_0xbd3b6(0x2db)]['set'](_0x3ddef0,_0x1c2d04),_0x3ae3e4(()=>{const _0x19c413=_0xbd3b6,_0x22a2d5=this[_0x19c413(0x4a9)][_0x19c413(0x2b8)](_0x2d7023,_0x205b9b=>(_0x22a2d5['dispose'](),_0xc0ac7c(_0x205b9b,_0x3ddef0,_0x3d40d4,_0x2d7023)));_0x17adad[_0x19c413(0x3c6)](_0x22a2d5);});}return{'redos':[],'undos':[]};};this[_0x23cc91(0x2db)][_0x23cc91(0x14d)]((_0x267a73,_0x29639b)=>{const _0x11ffed=_0x23cc91,{range:_0x396620,sheetID:_0x31788c}=_0x267a73,_0x2eef27=this['_refRangeService'][_0x11ffed(0x2b8)](_0x396620,_0x37eb4f=>(_0x2eef27[_0x11ffed(0x3f5)](),_0xc0ac7c(_0x37eb4f,_0x29639b,_0x31788c,_0x396620)));_0x17adad['add'](_0x2eef27);});};this[_0x539e5b(0x3fb)](_0x495bbc[_0x539e5b(0x46b)](this[_0x539e5b(0x3f6)][_0x539e5b(0x43a)](()=>{_0x4f6980();})));}[_0x4b1ec3(0x28a)](){const _0x3de696=_0x4b1ec3;var _0x2bdbe9,_0x4ea214;if(this[_0x3de696(0x155)]=!0x0,((_0x2bdbe9=this[_0x3de696(0x352)][_0x3de696(0x1cb)]())==null?void 0x0:_0x2bdbe9[_0x3de696(0x317)]())!==this[_0x3de696(0x391)])return;const _0x4fceac=(_0x4ea214=this[_0x3de696(0x376)]['get'](_0x344713['SheetsSelectionsService'])[_0x3de696(0x14e)]())==null?void 0x0:_0x4ea214[0x0],_0x1e28b5=this[_0x3de696(0x352)][_0x3de696(0x32c)](_0x495bbc[_0x3de696(0x2d8)][_0x3de696(0x271)])[_0x3de696(0x4ad)]();_0x4fceac&&_0x1e28b5&&this[_0x3de696(0x372)](_0x1e28b5[_0x3de696(0x230)](),_0x4fceac);}['_toggleOffline'](){const _0x4b45b7=_0x4b1ec3;this[_0x4b45b7(0x155)]=!0x1;}};_0x45d46d=_0x2e77ba([_0xbb52c7(0x2,_0xff0938[_0x4b1ec3(0x292)](_0xff0938[_0x4b1ec3(0x22a)])),_0xbb52c7(0x3,_0xff0938[_0x4b1ec3(0x292)](_0x173474)),_0xbb52c7(0x4,_0xff0938[_0x4b1ec3(0x292)](_0x384a59)),_0xbb52c7(0x5,_0x495bbc[_0x4b1ec3(0x216)]),_0xbb52c7(0x6,_0x495bbc['ICommandService']),_0xbb52c7(0x7,_0xff0938['Inject'](_0x344713[_0x4b1ec3(0x316)]))],_0x45d46d);var _0x1be75a=Object[_0x4b1ec3(0x356)],_0x47be66=Object[_0x4b1ec3(0x507)],_0x1709ae=(_0x27632d,_0x20c0ae,_0x322fc8,_0x119627)=>{const _0x3a9487=_0x4b1ec3;for(var _0x246dbc=_0x119627>0x1?void 0x0:_0x119627?_0x47be66(_0x20c0ae,_0x322fc8):_0x20c0ae,_0x4434de=_0x27632d[_0x3a9487(0x2b7)]-0x1,_0x580577;_0x4434de>=0x0;_0x4434de--)(_0x580577=_0x27632d[_0x4434de])&&(_0x246dbc=(_0x119627?_0x580577(_0x20c0ae,_0x322fc8,_0x246dbc):_0x580577(_0x246dbc))||_0x246dbc);return _0x119627&&_0x246dbc&&_0x1be75a(_0x20c0ae,_0x322fc8,_0x246dbc),_0x246dbc;},_0xc16005=(_0xd0d05a,_0x2bb760)=>(_0x2df197,_0x3284ae)=>_0x2bb760(_0x2df197,_0x3284ae,_0xd0d05a);const _0x556c84=0x12c,_0x395ba6=0x64;let _0x5440e7=class extends _0x495bbc[_0x4b1ec3(0x456)]{constructor(_0x40d2be,_0x352292,_0x2a40c1,_0x23a4ba,_0x54c79e,_0x1ae6b9,_0xada1d7,_0x297f44,_0x34a6dd){const _0xcd7ef8=_0x4b1ec3;super(),_0x5d8027(this,_0xcd7ef8(0x155),!0x1),_0x5d8027(this,_0xcd7ef8(0x468),!0x1),_0x5d8027(this,'_cursorInfo$',new _0x11b67e[(_0xcd7ef8(0x2a9))](new Map())),_0x5d8027(this,_0xcd7ef8(0x2c3),this[_0xcd7ef8(0x3f6)][_0xcd7ef8(0x392)]()),_0x5d8027(this,_0xcd7ef8(0x45a),new _0x11b67e[(_0xcd7ef8(0x2a9))]([])),_0x5d8027(this,_0xcd7ef8(0x262),this[_0xcd7ef8(0x45a)][_0xcd7ef8(0x377)](_0x11b67e[_0xcd7ef8(0x479)](_0x556c84))),_0x5d8027(this,'_updateLocalCursor',_0x5be5a1(_0x149f83=>{const _0x23e701=_0xcd7ef8,_0x2ba09d={'eventID':_0x2a1cda[_0x23e701(0x2a0)][_0x23e701(0x1ee)],'data':{'unitID':this[_0x23e701(0x391)],'memberID':this[_0x23e701(0x279)]['getMemberID'](),'selection':_0x36c929(_0x149f83)}};this[_0x23e701(0x279)][_0x23e701(0x50c)](_0x2ba09d,this[_0x23e701(0x391)]);},_0x395ba6)),(this['unitID']=_0x40d2be,this['_session']=_0x352292,this['_injector']=_0x2a40c1,this[_0xcd7ef8(0x1ec)]=_0x23a4ba,this[_0xcd7ef8(0x3ae)]=_0x54c79e,this[_0xcd7ef8(0x318)]=_0x1ae6b9,this['_transformService']=_0xada1d7,this[_0xcd7ef8(0x352)]=_0x297f44,this[_0xcd7ef8(0x2e4)]=_0x34a6dd);}get[_0x4b1ec3(0x2db)](){const _0x5e6962=_0x4b1ec3;return this[_0x5e6962(0x3f6)][_0x5e6962(0x357)]();}get['roomMembers'](){const _0xd78e66=_0x4b1ec3;return this[_0xd78e66(0x45a)][_0xd78e66(0x357)]();}[_0x4b1ec3(0x3f5)](){const _0xa46be=_0x4b1ec3;super[_0xa46be(0x3f5)](),this['_cursorInfo$']['next'](new Map()),this[_0xa46be(0x3f6)][_0xa46be(0x4c6)](),this[_0xa46be(0x45a)][_0xa46be(0x2b2)]([]),this[_0xa46be(0x45a)]['complete']();}[_0x4b1ec3(0x228)](){const _0xccd6e0=_0x4b1ec3;this[_0xccd6e0(0x468)]||(this[_0xccd6e0(0x468)]=!0x0,this[_0xccd6e0(0x279)]['sessionStatus$'][_0xccd6e0(0x377)](_0x11b67e[_0xccd6e0(0x40b)](this[_0xccd6e0(0x26e)]))[_0xccd6e0(0x43a)](_0x3acb87=>{const _0x29c699=_0xccd6e0;_0x3acb87===_0x36bc51[_0x29c699(0x4b8)]?this['_toggleOnline']():this[_0x29c699(0x3a3)]();}),this[_0xccd6e0(0x279)][_0xccd6e0(0x48b)]['pipe'](_0x11b67e[_0xccd6e0(0x40b)](this[_0xccd6e0(0x26e)]))[_0xccd6e0(0x43a)](_0x40f212=>{const _0x43d38a=_0xccd6e0,_0x48cc7c=_0x40f212['eventID'];_0x48cc7c===_0x2a1cda[_0x43d38a(0x2a0)][_0x43d38a(0x1ee)]&&this[_0x43d38a(0x40a)](_0x40f212),_0x48cc7c===_0x2a1cda[_0x43d38a(0x2a0)][_0x43d38a(0x4a2)]&&this[_0x43d38a(0x1c2)](_0x40f212);}),this[_0xccd6e0(0x3fb)](this['_commandService'][_0xccd6e0(0x28b)](_0x1bf8bd=>{const _0x6af7c1=_0xccd6e0,_0xd457ec=_0x1bf8bd[_0x6af7c1(0x3b7)];_0xd457ec!=null&&this[_0x6af7c1(0x155)]&&_0x1bf8bd['id']===_0x257327[_0x6af7c1(0x4d1)]['id']&&_0xd457ec[_0x6af7c1(0x384)]===this[_0x6af7c1(0x391)]&&_0xd457ec['isEditing']===!0x1&&this[_0x6af7c1(0x372)](_0xd457ec[_0x6af7c1(0x33e)]);})),this[_0xccd6e0(0x318)]['collabCursorState$']['pipe'](_0x11b67e['takeUntil'](this[_0xccd6e0(0x26e)]))[_0xccd6e0(0x43a)](_0x49fe8f=>{const _0x345896=_0xccd6e0;if((_0x49fe8f==null?void 0x0:_0x49fe8f[_0x345896(0x391)])!==this['unitID'])return;const _0x569a65={'eventID':_0x2a1cda[_0x345896(0x2a0)][_0x345896(0x1ee)],'data':_0x49fe8f};this[_0x345896(0x40a)](_0x569a65);}),this[_0xccd6e0(0x3fb)](this[_0xccd6e0(0x2e4)][_0xccd6e0(0x28b)](_0x90e5c2=>{const _0x5846b7=_0xccd6e0;if(_0x90e5c2[_0x5846b7(0x3b7)]==null)return;const _0x145003=_0x90e5c2[_0x5846b7(0x3b7)];if(_0x90e5c2['id']!==_0x257327['RichTextEditingMutation']['id']||_0x145003[_0x5846b7(0x384)]!==this[_0x5846b7(0x391)])return;const _0x3a9091={'id':'doc.mutation.rich-text-editing','params':_0x145003},_0x59508a=this[_0x5846b7(0x2db)];for(const [_0x5183ee,_0x5db8f1]of _0x59508a){const _0x3160b8={'id':_0x5846b7(0x158),'params':{'unitId':this[_0x5846b7(0x391)],'actions':null,'textRanges':_0x5db8f1[_0x5846b7(0x33e)]}},_0x76c068=this[_0x5846b7(0x202)][_0x5846b7(0x2a1)](_0x3a9091,_0x3160b8,!0x1);if(_0x2a1cda[_0x5846b7(0x265)](_0x76c068))throw _0x76c068[_0x5846b7(0x512)];_0x59508a[_0x5846b7(0x20e)](_0x5183ee,{..._0x5db8f1,'ranges':_0x76c068[_0x5846b7(0x314)][_0x5846b7(0x3b7)][_0x5846b7(0x35e)]});}queueMicrotask(()=>{const _0x3028d8=_0x5846b7;this[_0x3028d8(0x3f6)][_0x3028d8(0x2b2)](_0x59508a);});})));}[_0x4b1ec3(0x40a)](_0x4245f1){const _0x2965eb=_0x4b1ec3;var _0x56e85f,_0x35227e;const {memberID:_0x425a0b,selection:_0x314e6f}=_0x4245f1['data'],_0x563367=_0x14579a(_0x314e6f),_0x72b18a=(_0x35227e=(_0x56e85f=this['_memberService'][_0x2965eb(0x2b4)](this[_0x2965eb(0x391)],_0x425a0b))==null?void 0x0:_0x56e85f['name'])!=null?_0x35227e:'Unknown\x20user',_0x46bb8b={'color':this[_0x2965eb(0x1ec)][_0x2965eb(0x219)](_0x425a0b),'name':_0x72b18a,'ranges':_0x563367},_0x137db2=this[_0x2965eb(0x2db)];_0x137db2[_0x2965eb(0x20e)](_0x425a0b,_0x46bb8b),this[_0x2965eb(0x3f6)]['next'](_0x137db2);}['_onCursorDelete'](_0x329b12){const _0x4ced4b=_0x4b1ec3,{memberID:_0x3c07a3}=_0x329b12[_0x4ced4b(0x3cf)],_0x47de90=this[_0x4ced4b(0x2db)];_0x47de90[_0x4ced4b(0x2c8)](_0x3c07a3),this[_0x4ced4b(0x3f6)][_0x4ced4b(0x2b2)](_0x47de90);}[_0x4b1ec3(0x28a)](){const _0x282b6a=_0x4b1ec3;var _0x28f8e9;if(this[_0x282b6a(0x155)]=!0x0,((_0x28f8e9=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x28f8e9[_0x282b6a(0x317)]())!==this[_0x282b6a(0x391)])return;const _0x390b95=this['_injector'][_0x282b6a(0x4ce)](_0x257327[_0x282b6a(0x426)])['getCurrentSelections'](),_0x2d58e0=_0x390b95==null?void 0x0:_0x390b95[_0x282b6a(0x270)](_0x257327[_0x282b6a(0x37f)]);Array[_0x282b6a(0x37c)](_0x2d58e0)&&_0x2d58e0['length']>0x0&&this[_0x282b6a(0x372)](_0x2d58e0);}[_0x4b1ec3(0x3a3)](){const _0x4e8fff=_0x4b1ec3;this[_0x4e8fff(0x155)]=!0x1;}};_0x5440e7=_0x1709ae([_0xc16005(0x2,_0xff0938['Inject'](_0xff0938[_0x4b1ec3(0x22a)])),_0xc16005(0x3,_0xff0938['Inject'](_0x173474)),_0xc16005(0x4,_0xff0938[_0x4b1ec3(0x292)](_0x384a59)),_0xc16005(0x5,_0xff0938[_0x4b1ec3(0x292)](_0x4095fc)),_0xc16005(0x6,_0x2a1cda['ITransformService']),_0xc16005(0x7,_0x495bbc['IUniverInstanceService']),_0xc16005(0x8,_0x495bbc[_0x4b1ec3(0x28f)])],_0x5440e7);var _0x4bee49=Object[_0x4b1ec3(0x356)],_0x1bcdcc=Object['getOwnPropertyDescriptor'],_0x44fea9=(_0x3cabc2,_0x36c1db,_0x11f56e,_0x4255d0)=>{const _0x26ddd2=_0x4b1ec3;for(var _0x1159b1=_0x4255d0>0x1?void 0x0:_0x4255d0?_0x1bcdcc(_0x36c1db,_0x11f56e):_0x36c1db,_0x177a57=_0x3cabc2[_0x26ddd2(0x2b7)]-0x1,_0x4881c9;_0x177a57>=0x0;_0x177a57--)(_0x4881c9=_0x3cabc2[_0x177a57])&&(_0x1159b1=(_0x4255d0?_0x4881c9(_0x36c1db,_0x11f56e,_0x1159b1):_0x4881c9(_0x1159b1))||_0x1159b1);return _0x4255d0&&_0x1159b1&&_0x4bee49(_0x36c1db,_0x11f56e,_0x1159b1),_0x1159b1;},_0x448b86=(_0x384536,_0x525fb1)=>(_0x3bcc44,_0x37fbb5)=>_0x525fb1(_0x3bcc44,_0x37fbb5,_0x384536);let _0x5cab36=class extends _0x495bbc['RxDisposable']{constructor(_0x5b7b7c,_0x424447,_0x51672b){const _0x4b2551=_0x4b1ec3;super(),_0x5d8027(this,_0x4b2551(0x20a),new Map()),_0x5d8027(this,'_entityInit$',new _0x11b67e[(_0x4b2551(0x486))]()),(this[_0x4b2551(0x352)]=_0x5b7b7c,this[_0x4b2551(0x376)]=_0x424447,this[_0x4b2551(0x3b4)]=_0x51672b,this['_init']());}[_0x4b1ec3(0x3f5)](){const _0x530e23=_0x4b1ec3;super['dispose'](),this[_0x530e23(0x3b1)][_0x530e23(0x4c6)](),this[_0x530e23(0x20a)][_0x530e23(0x14d)](_0x581274=>_0x581274[_0x530e23(0x3f5)]());}[_0x4b1ec3(0x2c5)](_0x4bc6b4){const _0xa7ffa=_0x4b1ec3;return this[_0xa7ffa(0x20a)][_0xa7ffa(0x4a3)](_0x4bc6b4)?this[_0xa7ffa(0x20a)]['get'](_0x4bc6b4)['cursorInfo$']:this[_0xa7ffa(0x3b1)]['pipe'](_0x11b67e[_0xa7ffa(0x319)](_0x685655=>_0x685655['unitID']===_0x4bc6b4),_0x11b67e['switchMap'](_0xf0b084=>_0xf0b084[_0xa7ffa(0x2c3)]));}[_0x4b1ec3(0x468)](){const _0x5bce33=_0x4b1ec3;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x495bbc[_0x5bce33(0x2d8)][_0x5bce33(0x271)])[_0x5bce33(0x377)](_0x11b67e[_0x5bce33(0x40b)](this['dispose$']))['subscribe'](async _0x5668df=>{const _0x420917=_0x5bce33,_0x3f46c4=_0x5668df['getUnitId'](),_0x4cbe63=await this[_0x420917(0x31b)](_0x3f46c4);this[_0x420917(0x3b1)]['next'](_0x4cbe63),this[_0x420917(0x20a)][_0x420917(0x20e)](_0x3f46c4,_0x4cbe63);}),this[_0x5bce33(0x352)][_0x5bce33(0x251)](_0x495bbc['UniverInstanceType'][_0x5bce33(0x438)])[_0x5bce33(0x377)](_0x11b67e['takeUntil'](this[_0x5bce33(0x26e)]))[_0x5bce33(0x377)](_0x11b67e[_0x5bce33(0x319)](_0x5381c5=>!_0x5381c5[_0x5bce33(0x317)]()[_0x5bce33(0x49d)]('__')))[_0x5bce33(0x43a)](async _0x415bb2=>{const _0x401345=_0x5bce33,_0x333e20=_0x415bb2[_0x401345(0x317)](),_0x3c9935=await this[_0x401345(0x36b)](_0x333e20);this[_0x401345(0x3b1)][_0x401345(0x2b2)](_0x3c9935),this['_entities'][_0x401345(0x20e)](_0x333e20,_0x3c9935);}),_0x11b67e[_0x5bce33(0x140)](this[_0x5bce33(0x352)][_0x5bce33(0x4ab)](_0x495bbc[_0x5bce33(0x2d8)][_0x5bce33(0x438)]),this['_univerInstanceService'][_0x5bce33(0x4ab)](_0x495bbc['UniverInstanceType'][_0x5bce33(0x271)]))[_0x5bce33(0x377)](_0x11b67e[_0x5bce33(0x40b)](this['dispose$']))['subscribe'](_0x175e42=>{const _0x29ca24=_0x5bce33,_0x448041=_0x175e42[_0x29ca24(0x317)](),_0x40d079=this[_0x29ca24(0x20a)]['get'](_0x448041);_0x40d079&&(_0x40d079[_0x29ca24(0x3f5)](),this[_0x29ca24(0x20a)][_0x29ca24(0x2c8)](_0x448041));});}async[_0x4b1ec3(0x31b)](_0x2f5750){const _0x44cf0f=_0x4b1ec3,_0x270993=await this[_0x44cf0f(0x3b4)][_0x44cf0f(0x269)](_0x2f5750),_0x2af563=this['_injector']['createInstance'](_0x45d46d,_0x2f5750,_0x270993);return _0x2af563['init'](),_0x2af563;}async['_startDocCollabCursor'](_0x43a004){const _0x1045f9=_0x4b1ec3,_0x29f1db=await this[_0x1045f9(0x3b4)][_0x1045f9(0x269)](_0x43a004),_0x48d713=this['_injector'][_0x1045f9(0x1ab)](_0x5440e7,_0x43a004,_0x29f1db);return _0x48d713[_0x1045f9(0x228)](),_0x48d713;}};_0x5cab36=_0x44fea9([_0x495bbc[_0x4b1ec3(0x34d)](_0x495bbc[_0x4b1ec3(0x287)]['Starting'],_0x5cab36),_0x448b86(0x0,_0x495bbc[_0x4b1ec3(0x216)]),_0x448b86(0x1,_0xff0938[_0x4b1ec3(0x292)](_0xff0938[_0x4b1ec3(0x22a)])),_0x448b86(0x2,_0xff0938[_0x4b1ec3(0x292)](_0x99db31['CollaborationSessionService']))],_0x5cab36);const _0x13f80a=0x14,_0x385ace=0xc8,_0x4ed486=0x4,_0x2c3802=0x5;function _0xf1587f(_0x1be977,_0x1ad7dd){const _0x35d9de=_0x4b1ec3;let {radius:_0x229631,width:_0xf2b592,height:_0x268928}=_0x1ad7dd;_0x229631=_0x229631!=null?_0x229631:0x0,_0xf2b592=_0xf2b592!=null?_0xf2b592:0x1e,_0x268928=_0x268928!=null?_0x268928:0x1e;let _0xba0f17=0x0,_0x314150=0x0,_0x1bcbc0=0x0;_0xba0f17=_0x314150=_0x1bcbc0=Math[_0x35d9de(0x3b3)](_0x229631,_0xf2b592/0x2,_0x268928/0x2),_0x1be977[_0x35d9de(0x4dd)](),_0x1be977['moveTo'](_0xba0f17,0x0),_0x1be977['lineTo'](_0xf2b592-_0x314150,0x0),_0x1be977['arc'](_0xf2b592-_0x314150,_0x314150,_0x314150,Math['PI']*0x3/0x2,0x0,!0x1),_0x1be977[_0x35d9de(0x31f)](_0xf2b592,_0x268928-_0x1bcbc0),_0x1be977['arc'](_0xf2b592-_0x1bcbc0,_0x268928-_0x1bcbc0,_0x1bcbc0,0x0,Math['PI']/0x2,!0x1),_0x1be977[_0x35d9de(0x31f)](0x0,_0x268928),_0x1be977[_0x35d9de(0x31f)](0x0,_0xba0f17),_0x1be977[_0x35d9de(0x382)](_0xba0f17,_0xba0f17,_0xba0f17,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1be977[_0x35d9de(0x261)](),_0x1ad7dd[_0x35d9de(0x51b)]&&(_0x1be977[_0x35d9de(0x17d)](),_0x1be977[_0x35d9de(0x3bb)]=_0x1ad7dd['fill'],_0x1ad7dd[_0x35d9de(0x4c4)]===_0x35d9de(0x1ae)?_0x1be977[_0x35d9de(0x51b)](_0x35d9de(0x1ae)):_0x1be977['fill'](),_0x1be977[_0x35d9de(0x4f7)]());}class _0x3aa103 extends _0x4ec763[_0x4b1ec3(0x1fd)]{constructor(_0x1d916f,_0x12c4f8){const _0x17362a=_0x4b1ec3;super(_0x1d916f,_0x12c4f8),_0x5d8027(this,_0x17362a(0x39c)),_0x5d8027(this,_0x17362a(0x455)),(this[_0x17362a(0x39c)]=_0x12c4f8==null?void 0x0:_0x12c4f8[_0x17362a(0x39c)],this[_0x17362a(0x455)]=_0x12c4f8==null?void 0x0:_0x12c4f8[_0x17362a(0x455)]);}static[_0x4b1ec3(0x332)](_0x378805,_0x15bacd){const _0x48ccaf=_0x4b1ec3,{text:_0x2cee32,color:_0x4c14e5}=_0x15bacd;_0x378805[_0x48ccaf(0x17d)](),_0x378805['font']=_0x48ccaf(0x4ee);const _0x3bbc01=_0x378805[_0x48ccaf(0x4ca)](_0x2cee32)[_0x48ccaf(0x25d)],_0x2a2d8b=Math[_0x48ccaf(0x3b3)](_0x3bbc01+0x2*_0x4ed486,_0x385ace);_0xf1587f(_0x378805,{'height':_0x13f80a,'radius':0x4,'width':_0x2a2d8b,'fill':_0x4c14e5,'evented':!0x1}),_0x378805[_0x48ccaf(0x3bb)]=_0x48ccaf(0x4b1);const _0x5936fc=_0x4ed486,_0x2578d0=_0x13f80a-_0x2c3802,_0x9d2966=_0x385ace-0x2*_0x4ed486;if(_0x3bbc01>_0x9d2966){let _0x58f0a5='',_0x12f56f=0x0;for(const _0x222d41 of _0x2cee32){const _0xe465a9=_0x378805[_0x48ccaf(0x4ca)](_0x222d41)['width'];if(_0x12f56f+_0xe465a9<=_0x9d2966-_0x378805[_0x48ccaf(0x4ca)](_0x48ccaf(0x24f))['width'])_0x58f0a5+=_0x222d41,_0x12f56f+=_0xe465a9;else{_0x58f0a5+='...';break;}}_0x378805['fillText'](_0x58f0a5,_0x5936fc,_0x2578d0);}else _0x378805[_0x48ccaf(0x2e3)](_0x2cee32,_0x5936fc,_0x2578d0);_0x378805['restore']();}[_0x4b1ec3(0x2d2)](_0x4e5d76){_0x3aa103['drawWith'](_0x4e5d76,this);}}const _0x1bae45=0x1,_0x16c24b=1.5;class _0x20a6c8 extends _0x4ec763[_0x4b1ec3(0x1fd)]{constructor(_0x5c6db0,_0x3a305d){const _0x4c2009=_0x4b1ec3;super(_0x5c6db0,_0x3a305d),_0x5d8027(this,_0x4c2009(0x4a4)),_0x5d8027(this,_0x4c2009(0x505),!0x1),_0x5d8027(this,_0x4c2009(0x387)),_0x5d8027(this,_0x4c2009(0x268),''),_0x5d8027(this,_0x4c2009(0x45e),_0x4c2009(0x136)),_0x5d8027(this,_0x4c2009(0x29d)),(_0x3a305d&&this['setShapeProps'](_0x3a305d),this[_0x4c2009(0x2bc)][_0x4c2009(0x2b9)](()=>this[_0x4c2009(0x4e7)]({'hovered':!0x0})),this['onPointerLeave$'][_0x4c2009(0x2b9)](()=>this[_0x4c2009(0x4e7)]({'hovered':!0x1})));}['setShapeProps'](_0x11bb6c){const _0x9f6cc5=_0x4b1ec3;var _0x1ea034,_0x3068f3,_0x266675,_0x3f2459,_0x466a6e,_0xf389f0;this[_0x9f6cc5(0x4a4)]=(_0x1ea034=_0x11bb6c['color'])!=null?_0x1ea034:this[_0x9f6cc5(0x4a4)],this['_hovered']=(_0x3068f3=_0x11bb6c[_0x9f6cc5(0x3d1)])!=null?_0x3068f3:this[_0x9f6cc5(0x505)],this[_0x9f6cc5(0x387)]=(_0x266675=_0x11bb6c[_0x9f6cc5(0x2d7)])!=null?_0x266675:this[_0x9f6cc5(0x387)],this[_0x9f6cc5(0x268)]=(_0x3f2459=_0x11bb6c['name'])!=null?_0x3f2459:this[_0x9f6cc5(0x268)],this[_0x9f6cc5(0x45e)]=(_0x466a6e=_0x11bb6c[_0x9f6cc5(0x400)])!=null?_0x466a6e:this[_0x9f6cc5(0x45e)],this[_0x9f6cc5(0x29d)]=(_0xf389f0=_0x11bb6c['backgroundColor'])!=null?_0xf389f0:this[_0x9f6cc5(0x29d)],this[_0x9f6cc5(0x3c8)]({'width':_0x11bb6c[_0x9f6cc5(0x25d)],'height':_0x11bb6c[_0x9f6cc5(0x48a)]});}[_0x4b1ec3(0x1a8)](_0x581c3a){const _0x1520ff=_0x4b1ec3,{row:_0x3e8177,column:_0x1d4c1a}=_0x581c3a;if(_0x3e8177>=this[_0x1520ff(0x387)][_0x1520ff(0x137)]&&_0x3e8177<=this[_0x1520ff(0x387)][_0x1520ff(0x4e9)]&&_0x1d4c1a>=this[_0x1520ff(0x387)]['startColumn']&&_0x1d4c1a<=this['_range'][_0x1520ff(0x43b)]){this[_0x1520ff(0x4e7)]({'hovered':!0x0});return;}this[_0x1520ff(0x4e7)]({'hovered':!0x1});}[_0x4b1ec3(0x1ba)](_0x1e291b){return!0x1;}[_0x4b1ec3(0x2d2)](_0x54692f){const _0x90e80=_0x4b1ec3;_0x4ec763[_0x90e80(0x43f)][_0x90e80(0x332)](_0x54692f,{'width':this[_0x90e80(0x25d)],'height':this[_0x90e80(0x48a)],'strokeWidth':_0x16c24b,'stroke':this[_0x90e80(0x4a4)],'evented':!0x1,'fill':this[_0x90e80(0x29d)]}),this['_hovered']&&(_0x54692f[_0x90e80(0x17d)](),_0x54692f[_0x90e80(0x3c4)](0x1,0x0,0x0,0x1,this[_0x90e80(0x25d)],this[_0x90e80(0x45e)]===_0x90e80(0x503)?0x0:-_0x13f80a),_0x3aa103[_0x90e80(0x332)](_0x54692f,{'text':this[_0x90e80(0x268)],'color':this['_color']}),_0x54692f[_0x90e80(0x4f7)]());}}var _0x2a2155=Object['defineProperty'],_0x39d400=Object[_0x4b1ec3(0x507)],_0x425b81=(_0x449ab1,_0x9cd253,_0x33ac4b,_0x1aa10c)=>{for(var _0x58bc95=_0x1aa10c>0x1?void 0x0:_0x1aa10c?_0x39d400(_0x9cd253,_0x33ac4b):_0x9cd253,_0x70e6b0=_0x449ab1['length']-0x1,_0x4ddefb;_0x70e6b0>=0x0;_0x70e6b0--)(_0x4ddefb=_0x449ab1[_0x70e6b0])&&(_0x58bc95=(_0x1aa10c?_0x4ddefb(_0x9cd253,_0x33ac4b,_0x58bc95):_0x4ddefb(_0x58bc95))||_0x58bc95);return _0x1aa10c&&_0x58bc95&&_0x2a2155(_0x9cd253,_0x33ac4b,_0x58bc95),_0x58bc95;},_0x467bd0=(_0x1f7de1,_0x2140eb)=>(_0x4a6ada,_0x43b180)=>_0x2140eb(_0x4a6ada,_0x43b180,_0x1f7de1);const _0x35140c=0x1389;let _0x1712e2=class extends _0x495bbc['RxDisposable']{constructor(_0x66f476,_0x4a3cf5,_0x31cdf4,_0xbd93b2){const _0x1266e2=_0x4b1ec3;super(),_0x5d8027(this,_0x1266e2(0x138),new Set()),_0x5d8027(this,_0x1266e2(0x170),null),(this['_collabCursorController']=_0x66f476,this[_0x1266e2(0x352)]=_0x4a3cf5,this[_0x1266e2(0x47e)]=_0x31cdf4,this[_0x1266e2(0x30c)]=_0xbd93b2,this[_0x1266e2(0x468)]());}get[_0x4b1ec3(0x2d4)](){const _0x378ab4=_0x4b1ec3;return this[_0x378ab4(0x47e)][_0x378ab4(0x2e7)](this['_univerInstanceService']['getCurrentUnitForType'](_0x495bbc[_0x378ab4(0x2d8)][_0x378ab4(0x271)])[_0x378ab4(0x317)]())[_0x378ab4(0x385)](_0x3630b0['SheetSkeletonManagerService']);}get[_0x4b1ec3(0x1f2)](){const _0x15ec99=_0x4b1ec3;return this['_univerInstanceService']['getCurrentUnitForType'](_0x495bbc[_0x15ec99(0x2d8)][_0x15ec99(0x271)])[_0x15ec99(0x317)]();}[_0x4b1ec3(0x468)](){const _0x5e6bf3=_0x4b1ec3;this[_0x5e6bf3(0x2d4)]['currentSkeleton$']['pipe'](_0x3e7fcd[_0x5e6bf3(0x40b)](this[_0x5e6bf3(0x26e)]),_0x3e7fcd['switchMap'](_0x21cbe3=>{const _0x1a555c=_0x5e6bf3;if(_0x21cbe3){const _0x54c0b9=_0x21cbe3[_0x1a555c(0x177)];return _0x11b67e[_0x1a555c(0x1d9)](this[_0x1a555c(0x175)][_0x1a555c(0x2c5)](this['_unitId']),this[_0x1a555c(0x30c)][_0x1a555c(0x43c)])[_0x1a555c(0x377)](_0x3e7fcd[_0x1a555c(0x270)](([_0x57eb4e,_0x2661b2])=>{const _0x7fac66=_0x1a555c,_0x471cf9=new Map();return _0x57eb4e[_0x7fac66(0x14d)]((_0x3fdff2,_0x518427)=>{const _0x38736a=_0x7fac66;if(_0x3fdff2[_0x38736a(0x2ed)]===_0x54c0b9){const _0x4fc8a2={..._0x3fdff2};_0x4fc8a2[_0x38736a(0x39c)]=_0x2661b2[_0x3fdff2[_0x38736a(0x39c)]],_0x471cf9[_0x38736a(0x20e)](_0x518427,_0x4fc8a2);}}),{'skeleton':_0x21cbe3,'cursors':_0x471cf9};}));}return _0x11b67e['of']({'skeleton':null,'cursors':new Map()});}))[_0x5e6bf3(0x43a)](({skeleton:_0x1d8ba2,cursors:_0x3b41fe})=>{const _0x13ffe2=_0x5e6bf3;this[_0x13ffe2(0x14b)](),_0x1d8ba2&&this['_updateCollabCursors'](_0x1d8ba2,_0x3b41fe);}),this['_sheetSkeletonManagerService'][_0x5e6bf3(0x1f1)][_0x5e6bf3(0x43a)](_0x1277c4=>{const _0x4bd587=_0x5e6bf3;if(_0x1277c4==null)return;const {skeleton:_0x401b08}=_0x1277c4,_0x18d196=this['_renderManagerService']['getRenderById'](this[_0x4bd587(0x1f2)]),{scene:_0x56db0c}=_0x18d196;_0x56db0c[_0x4bd587(0x4b4)][_0x4bd587(0x2b9)](_0x5be5a1(_0x117c8a=>{const _0x124149=_0x4bd587;var _0x25b4fa,_0x4c4ae9;const {offsetX:_0x4dd69d,offsetY:_0x422534}=_0x117c8a,{x:_0x52adeb,y:_0x2bdbba}=_0x56db0c['getRelativeToViewportCoord'](_0x4ec763[_0x124149(0x2cb)][_0x124149(0x23b)]([_0x4dd69d,_0x422534])),{scaleX:_0x132a29,scaleY:_0x385770}=_0x56db0c['getAncestorScale'](),_0x393257=_0x56db0c[_0x124149(0x4c7)](_0x3630b0[_0x124149(0x3d0)][_0x124149(0x3e7)]),_0x317520=_0x56db0c[_0x124149(0x243)](_0x4ec763[_0x124149(0x2cb)][_0x124149(0x23b)]([_0x52adeb,_0x2bdbba]),_0x393257),_0x5297a5=_0x401b08[_0x124149(0x235)](_0x4dd69d,_0x422534,_0x132a29,_0x385770,_0x317520);((_0x25b4fa=this[_0x124149(0x170)])==null?void 0x0:_0x25b4fa[_0x124149(0x24c)])===_0x5297a5[_0x124149(0x24c)]&&((_0x4c4ae9=this['_lastPointer'])==null?void 0x0:_0x4c4ae9[_0x124149(0x3d9)])===_0x5297a5['row']||this[_0x124149(0x138)]['forEach'](_0x202fa3=>{const _0x1b3a2a=_0x124149;_0x202fa3[_0x1b3a2a(0x1a8)](_0x5297a5);});},0x64));});}[_0x4b1ec3(0x2f1)](_0x493369,_0x55c3ce){const _0xa81579=_0x4b1ec3;var _0x3a514b;const _0x4e8c11=(_0x3a514b=this[_0xa81579(0x2d4)]['getCurrent']())==null?void 0x0:_0x3a514b[_0xa81579(0x328)];if(!_0x4e8c11)return;const _0x4bf494=this[_0xa81579(0x233)]();if(!_0x4bf494)return;this['_cursors'][_0xa81579(0x14d)](_0x19b2c0=>{const _0x598bbd=_0xa81579;_0x19b2c0[_0x598bbd(0x167)]();});const {scene:_0x12b955}=_0x4bf494,_0xad0c6c=_0xb82506(Array[_0xa81579(0x133)](_0x55c3ce[_0xa81579(0x1de)]()))['map'](_0x4f3787=>{const _0x571de2=_0xa81579,{color:_0x4b24f4,range:_0x14c904,name:_0xf4cf74,selection:_0x5c94f9,sheetID:_0x31a5e0}=_0x4f3787,{startColumn:_0x1b5d0b,startRow:_0x3a8003,endColumn:_0x50498d,endRow:_0x213568}=_0x14c904,_0x3f92f2=_0x3630b0['getCoordByCell'](_0x3a8003,_0x1b5d0b,_0x12b955,_0x4e8c11),_0x3956a4=_0x3630b0[_0x571de2(0x433)](_0x213568,_0x50498d,_0x12b955,_0x4e8c11),{columnHeaderHeightAndMarginTop:_0x1eaea5}=_0x4e8c11,{startX:_0x4f2a2d,startY:_0x3fbd2d}=_0x3f92f2,{endX:_0x22c26d,endY:_0x5e1487}=_0x3956a4,_0xcb38a9=_0x22c26d-_0x4f2a2d,_0xab3d91=_0x5e1487-_0x3fbd2d,_0x42020a={'labelPosition':_0x3fbd2d-_0x1eaea5>=_0x13f80a?'top':_0x571de2(0x503),'sheetID':_0x31a5e0,'range':_0x14c904,'color':_0x4b24f4,'name':_0xf4cf74,'selection':_0x5c94f9,'left':_0x4f2a2d,'top':_0x3fbd2d,'width':_0xcb38a9,'height':_0xab3d91,'evented':!0x1,'zIndex':_0x35140c};return new _0x20a6c8(_0xf4cf74,_0x42020a);});_0x12b955[_0xa81579(0x283)](_0xad0c6c,_0x1bae45),this[_0xa81579(0x138)]=new Set(_0xad0c6c);}[_0x4b1ec3(0x14b)](){const _0x791760=_0x4b1ec3;var _0x121c8d;(_0x121c8d=this['_cursors'])==null||_0x121c8d[_0x791760(0x14d)](_0x334385=>_0x334385['dispose']());}[_0x4b1ec3(0x233)](){const _0x168462=_0x4b1ec3;return _0x3630b0[_0x168462(0x3a0)](this[_0x168462(0x352)],this[_0x168462(0x47e)]);}};_0x1712e2=_0x425b81([_0x495bbc[_0x4b1ec3(0x34d)](_0x495bbc[_0x4b1ec3(0x287)]['Steady'],_0x1712e2),_0x467bd0(0x0,_0xff0938[_0x4b1ec3(0x292)](_0x5cab36)),_0x467bd0(0x1,_0x495bbc['IUniverInstanceService']),_0x467bd0(0x2,_0x4ec763['IRenderManagerService']),_0x467bd0(0x3,_0xff0938['Inject'](_0x495bbc[_0x4b1ec3(0x4ef)]))],_0x1712e2);function _0xb82506(_0x44ef1e){const _0x7be8de=_0x4b1ec3,_0xf8a73a=new Map();return _0x44ef1e[_0x7be8de(0x14d)](_0x568844=>{const _0x32f561=_0x7be8de;if(_0xf8a73a[_0x32f561(0x4a3)](_0x568844[_0x32f561(0x422)])){const _0x2b9101=_0xf8a73a[_0x32f561(0x4ce)](_0x568844[_0x32f561(0x422)]);_0x2b9101['name']+=',\x20'+_0x568844['name'];}else _0xf8a73a[_0x32f561(0x20e)](_0x568844['selection'],_0x568844);}),Array[_0x7be8de(0x133)](_0xf8a73a[_0x7be8de(0x1de)]());}var _0x2b76db=function(){const _0x46dd3a=_0x4b1ec3;return _0x2b76db=Object[_0x46dd3a(0x303)]||function(_0xc999d2){const _0x1f009f=_0x46dd3a;for(var _0x2d54ca,_0x55a701=0x1,_0x4ecbd5=arguments['length'];_0x55a701<_0x4ecbd5;_0x55a701++){_0x2d54ca=arguments[_0x55a701];for(var _0x5b3a46 in _0x2d54ca)Object['prototype']['hasOwnProperty'][_0x1f009f(0x25a)](_0x2d54ca,_0x5b3a46)&&(_0xc999d2[_0x5b3a46]=_0x2d54ca[_0x5b3a46]);}return _0xc999d2;},_0x2b76db['apply'](this,arguments);},_0x181d7b=function(_0x1200ec,_0x35f6f7){const _0xf3c4bd=_0x4b1ec3;var _0x18f5af={};for(var _0x479ba1 in _0x1200ec)Object[_0xf3c4bd(0x285)][_0xf3c4bd(0x1fa)][_0xf3c4bd(0x25a)](_0x1200ec,_0x479ba1)&&_0x35f6f7[_0xf3c4bd(0x1cf)](_0x479ba1)<0x0&&(_0x18f5af[_0x479ba1]=_0x1200ec[_0x479ba1]);if(_0x1200ec!=null&&typeof Object['getOwnPropertySymbols']==_0xf3c4bd(0x2ea)){for(var _0x6046aa=0x0,_0x479ba1=Object['getOwnPropertySymbols'](_0x1200ec);_0x6046aa<_0x479ba1[_0xf3c4bd(0x2b7)];_0x6046aa++)_0x35f6f7['indexOf'](_0x479ba1[_0x6046aa])<0x0&&Object[_0xf3c4bd(0x285)][_0xf3c4bd(0x4b6)][_0xf3c4bd(0x25a)](_0x1200ec,_0x479ba1[_0x6046aa])&&(_0x18f5af[_0x479ba1[_0x6046aa]]=_0x1200ec[_0x479ba1[_0x6046aa]]);}return _0x18f5af;},_0x162268=_0x593db6[_0x4b1ec3(0x2b3)](function(_0x321e82,_0x5dec80){const _0xc9f3d9=_0x4b1ec3;var _0x214fec=_0x321e82[_0xc9f3d9(0x4fe)],_0x8b48e7=_0x321e82['id'],_0x5a86f8=_0x321e82[_0xc9f3d9(0x491)],_0x51674c=_0x321e82['extend'],_0xb58069=_0x181d7b(_0x321e82,[_0xc9f3d9(0x4fe),'id',_0xc9f3d9(0x491),_0xc9f3d9(0x286)]),_0x5dfecc='univerjs-icon\x20univerjs-icon-'['concat'](_0x8b48e7,'\x20')['concat'](_0x5a86f8||'')[_0xc9f3d9(0x196)](),_0x41ed6a=_0x593db6[_0xc9f3d9(0x4e1)]('_'[_0xc9f3d9(0x2d3)](_0x2180f5()));return _0x39e077(_0x214fec,''['concat'](_0x8b48e7),{'defIds':_0x214fec[_0xc9f3d9(0x3e2)],'idSuffix':_0x41ed6a[_0xc9f3d9(0x4fa)]},_0x2b76db({'ref':_0x5dec80,'className':_0x5dfecc},_0xb58069),_0x51674c);});function _0x39e077(_0x51b7a8,_0x4bb4aa,_0x564b51,_0x47b5f3,_0x3f1ab7){const _0x5f250d=_0x4b1ec3;return _0x593db6[_0x5f250d(0x3da)](_0x51b7a8[_0x5f250d(0x1cc)],_0x2b76db(_0x2b76db({'key':_0x4bb4aa},_0x43fe43(_0x51b7a8,_0x564b51,_0x3f1ab7)),_0x47b5f3),(_0x36605a(_0x51b7a8,_0x564b51)[_0x5f250d(0x47b)]||[])[_0x5f250d(0x270)](function(_0x3c15de,_0x44f897){const _0x2f781f=_0x5f250d;return _0x39e077(_0x3c15de,''[_0x2f781f(0x2d3)](_0x4bb4aa,'-')[_0x2f781f(0x2d3)](_0x51b7a8[_0x2f781f(0x1cc)],'-')[_0x2f781f(0x2d3)](_0x44f897),_0x564b51,void 0x0,_0x3f1ab7);}));}function _0x43fe43(_0x315785,_0x574d9f,_0x3ff27f){const _0x2e9630=_0x4b1ec3;var _0x33436f=_0x2b76db({},_0x315785[_0x2e9630(0x195)]);_0x3ff27f!=null&&_0x3ff27f[_0x2e9630(0x163)]&&_0x33436f[_0x2e9630(0x51b)]===_0x2e9630(0x163)&&(_0x33436f['fill']=_0x3ff27f[_0x2e9630(0x163)]);var _0x26ee34=_0x574d9f['defIds'];return!_0x26ee34||_0x26ee34['length']===0x0||(_0x315785[_0x2e9630(0x1cc)]===_0x2e9630(0x144)&&_0x33436f[_0x2e9630(0x3dd)]&&(_0x33436f['xlink:href']=_0x33436f[_0x2e9630(0x3dd)]+_0x574d9f[_0x2e9630(0x229)]),Object[_0x2e9630(0x1f6)](_0x33436f)['forEach'](function(_0x5b041b){const _0x5bad78=_0x2e9630;var _0x2848e2=_0x5b041b[0x0],_0x2dafe0=_0x5b041b[0x1];typeof _0x2dafe0==_0x5bad78(0x300)&&(_0x33436f[_0x2848e2]=_0x2dafe0['replace'](/url\(#(.*)\)/,_0x5bad78(0x500)[_0x5bad78(0x2d3)](_0x574d9f[_0x5bad78(0x229)],')')));})),_0x33436f;}function _0x36605a(_0x46a1ee,_0xd3cf2){const _0xef4fef=_0x4b1ec3;var _0x31cef2,_0x48eed8=_0xd3cf2[_0xef4fef(0x3e2)];return!_0x48eed8||_0x48eed8[_0xef4fef(0x2b7)]===0x0?_0x46a1ee:_0x46a1ee[_0xef4fef(0x1cc)]===_0xef4fef(0x302)&&(!((_0x31cef2=_0x46a1ee['children'])===null||_0x31cef2===void 0x0)&&_0x31cef2['length'])?_0x2b76db(_0x2b76db({},_0x46a1ee),{'children':_0x46a1ee[_0xef4fef(0x47b)][_0xef4fef(0x270)](function(_0x1c82be){const _0x79bb5b=_0xef4fef;return typeof _0x1c82be[_0x79bb5b(0x195)]['id']==_0x79bb5b(0x300)&&_0x48eed8&&_0x48eed8[_0x79bb5b(0x1cf)](_0x1c82be[_0x79bb5b(0x195)]['id'])>-0x1?_0x2b76db(_0x2b76db({},_0x1c82be),{'attrs':_0x2b76db(_0x2b76db({},_0x1c82be[_0x79bb5b(0x195)]),{'id':_0x1c82be['attrs']['id']+_0xd3cf2[_0x79bb5b(0x229)]})}):_0x1c82be;})}):_0x46a1ee;}function _0x2180f5(){const _0x50fd4b=_0x4b1ec3;return Math[_0x50fd4b(0x34e)]()[_0x50fd4b(0x3c9)](0x24)[_0x50fd4b(0x227)](0x2,0x8);}_0x162268[_0x4b1ec3(0x466)]=_0x4b1ec3(0x345);var _0x392186={'tag':_0x4b1ec3(0x484),'attrs':{'fill':_0x4b1ec3(0x336),'viewBox':_0x4b1ec3(0x4ba),'width':_0x4b1ec3(0x242),'height':_0x4b1ec3(0x242)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x4b1ec3(0x1d2),'attrs':{'stroke':'currentColor','d':_0x4b1ec3(0x232),'strokeLinecap':'round','strokeLinejoin':_0x4b1ec3(0x4a0),'strokeWidth':1.2}}]},{'tag':_0x4b1ec3(0x302),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4b1ec3(0x23a)},'children':[{'tag':_0x4b1ec3(0x1d2),'attrs':{'fill':_0x4b1ec3(0x4fc),'d':_0x4b1ec3(0x247)}}]}]}],'defIds':[_0x4b1ec3(0x23a)]},_0x222ae6=_0x593db6['forwardRef'](function(_0x136bcb,_0x52c86a){const _0x864edb=_0x4b1ec3;return _0x593db6[_0x864edb(0x3da)](_0x162268,Object[_0x864edb(0x303)]({},_0x136bcb,{'id':_0x864edb(0x23e),'ref':_0x52c86a,'icon':_0x392186}));});_0x222ae6['displayName']=_0x4b1ec3(0x3ff);var _0xaf5a34={'tag':'svg','attrs':{'fill':_0x4b1ec3(0x336),'viewBox':'0\x200\x2017\x2016','width':_0x4b1ec3(0x242),'height':_0x4b1ec3(0x242)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x4b1ec3(0x1d2),'attrs':{'stroke':_0x4b1ec3(0x2ee),'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':_0x4b1ec3(0x4a0),'strokeLinejoin':_0x4b1ec3(0x4a0),'strokeWidth':1.2}}]},{'tag':_0x4b1ec3(0x302),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4b1ec3(0x47d)},'children':[{'tag':_0x4b1ec3(0x1d2),'attrs':{'fill':_0x4b1ec3(0x4fc),'d':_0x4b1ec3(0x247),'transform':_0x4b1ec3(0x27c)}}]}]}],'defIds':[_0x4b1ec3(0x47d)]},_0x5d0b97=_0x593db6[_0x4b1ec3(0x2b3)](function(_0x310557,_0xda8a2d){const _0x5e57bb=_0x4b1ec3;return _0x593db6[_0x5e57bb(0x3da)](_0x162268,Object[_0x5e57bb(0x303)]({},_0x310557,{'id':_0x5e57bb(0x15e),'ref':_0xda8a2d,'icon':_0xaf5a34}));});_0x5d0b97[_0x4b1ec3(0x466)]=_0x4b1ec3(0x48e);const _0x1aba00={'onlineStatusIcon':'univer-online-status-icon','onlineStatusTitle':_0x4b1ec3(0x343),'onlineStatus':'univer-online-status','online':_0x4b1ec3(0x1ef),'offline':_0x4b1ec3(0x428)};function _0x9c44db(_0x26fd7c){const _0x70f88d=_0x4b1ec3;switch(_0x26fd7c){case _0x17c726[_0x70f88d(0x30a)]:return _0x70f88d(0x1e5);case _0x17c726[_0x70f88d(0x17a)]:return _0x70f88d(0x281);case _0x17c726[_0x70f88d(0x308)]:return'collabStatus.fetchMiss';case _0x17c726[_0x70f88d(0x358)]:return _0x70f88d(0x2f9);case _0x17c726[_0x70f88d(0x473)]:case _0x17c726['AWAITING']:case _0x17c726[_0x70f88d(0x2aa)]:return'collabStatus.syncing';case _0x17c726['SYNCED']:return _0x70f88d(0x284);}}function _0x12e239(_0x45e6a4){const _0x19fbf0=_0x4b1ec3,{status$:_0xc2d0aa}=_0x45e6a4,_0x1311af=_0x510d97['useObservable'](_0xc2d0aa,_0x17c726['NOT_COLLAB']),_0x5f1728=_0x3dcb78[_0x19fbf0(0x257)](_0x495bbc[_0x19fbf0(0x1f4)]),_0x58b71c=_0x1311af!==_0x17c726[_0x19fbf0(0x30a)],_0xd6ce61=_0x5f1728['t'](_0x9c44db(_0x1311af)),_0x26e3de=_0x592c4d(_0x1aba00[_0x19fbf0(0x146)],{[_0x1aba00[_0x19fbf0(0x4e3)]]:_0x58b71c,[_0x1aba00[_0x19fbf0(0x362)]]:!_0x58b71c}),_0x23e73b=_0x58b71c?_0x593db6[_0x19fbf0(0x3da)](_0x5d0b97,null):_0x593db6[_0x19fbf0(0x3da)](_0x222ae6,null);return _0x593db6[_0x19fbf0(0x3da)](_0x19fbf0(0x26b),{'className':_0x26e3de},_0x593db6[_0x19fbf0(0x3da)](_0x19fbf0(0x26b),{'className':_0x1aba00['onlineStatusIcon']},_0x23e73b),_0x593db6[_0x19fbf0(0x3da)](_0x19fbf0(0x26b),{'className':_0x1aba00[_0x19fbf0(0x185)]},_0xd6ce61));}var _0x50529b=Object['defineProperty'],_0x2bbb0d=Object[_0x4b1ec3(0x507)],_0xc20bba=(_0x4a137a,_0x33baa2,_0x563794,_0x2e1cd4)=>{for(var _0x15eefb=_0x2e1cd4>0x1?void 0x0:_0x2e1cd4?_0x2bbb0d(_0x33baa2,_0x563794):_0x33baa2,_0x2c1a09=_0x4a137a['length']-0x1,_0x21fda1;_0x2c1a09>=0x0;_0x2c1a09--)(_0x21fda1=_0x4a137a[_0x2c1a09])&&(_0x15eefb=(_0x2e1cd4?_0x21fda1(_0x33baa2,_0x563794,_0x15eefb):_0x21fda1(_0x15eefb))||_0x15eefb);return _0x2e1cd4&&_0x15eefb&&_0x50529b(_0x33baa2,_0x563794,_0x15eefb),_0x15eefb;},_0x2d9c76=(_0x4c2f5a,_0x4372ec)=>(_0x5ae9cd,_0x13450d)=>_0x4372ec(_0x5ae9cd,_0x13450d,_0x4c2f5a);_0x99db31[_0x4b1ec3(0x430)]=class extends _0x495bbc[_0x4b1ec3(0x424)]{constructor(_0x3cf278,_0x6da766,_0x4d86bd,_0x5e9014){const _0x3bc045=_0x4b1ec3;super(),_0x5d8027(this,_0x3bc045(0x4cc),new _0x11b67e[(_0x3bc045(0x2a9))](_0x17c726[_0x3bc045(0x358)])),(this[_0x3bc045(0x352)]=_0x3cf278,this['_uiPartsService']=_0x6da766,this[_0x3bc045(0x376)]=_0x4d86bd,this[_0x3bc045(0x3cd)]=_0x5e9014,this[_0x3bc045(0x355)](),this[_0x3bc045(0x3b2)]());}[_0x4b1ec3(0x355)](){const _0x408391=_0x4b1ec3;this[_0x408391(0x3fb)](this['_uiPartsService'][_0x408391(0x2f2)](_0x510d97[_0x408391(0x1b7)][_0x408391(0x39d)],()=>_0x3dcb78[_0x408391(0x224)](_0xfe8c98({'status$':this[_0x408391(0x4cc)][_0x408391(0x392)]()}),this[_0x408391(0x376)])));}[_0x4b1ec3(0x3b2)](){const _0x317c81=_0x4b1ec3;this[_0x317c81(0x3fb)](_0x495bbc[_0x317c81(0x46b)](this['_univerInstanceService'][_0x317c81(0x49c)]['pipe'](_0x11b67e['switchMap'](()=>{const _0x37cfeb=_0x317c81,_0x3c27e4=this[_0x37cfeb(0x352)][_0x37cfeb(0x1cb)]();return _0x3c27e4?this[_0x37cfeb(0x3cd)][_0x37cfeb(0x179)](_0x3c27e4[_0x37cfeb(0x317)]()):_0x11b67e['of'](null);}),_0x11b67e[_0x317c81(0x184)](_0x197fe3=>_0x197fe3?_0x197fe3[_0x317c81(0x373)]:_0x11b67e['of'](_0x17c726[_0x317c81(0x358)])))['subscribe'](_0x357570=>{const _0x345823=_0x317c81;this[_0x345823(0x4cc)]['next'](_0x357570);})));}},_0x99db31[_0x4b1ec3(0x430)]=_0xc20bba([_0x495bbc[_0x4b1ec3(0x34d)](_0x495bbc[_0x4b1ec3(0x287)][_0x4b1ec3(0x3e4)],_0x99db31[_0x4b1ec3(0x430)]),_0x2d9c76(0x0,_0x495bbc[_0x4b1ec3(0x216)]),_0x2d9c76(0x1,_0x510d97[_0x4b1ec3(0x2a5)]),_0x2d9c76(0x2,_0xff0938['Inject'](_0xff0938[_0x4b1ec3(0x22a)])),_0x2d9c76(0x3,_0xff0938[_0x4b1ec3(0x292)](_0x99db31[_0x4b1ec3(0x45c)]))],_0x99db31[_0x4b1ec3(0x430)]);function _0xfe8c98(_0x143714){const {status$:_0xe36890}=_0x143714;return function(){const _0x1742ff=_0x2301;return _0x593db6[_0x1742ff(0x3da)](_0x12e239,{'status$':_0xe36890});};}const _0x3acd67=_0xff0938['createIdentifier']('uni.network.url-service');var _0x34d0b4=Object['defineProperty'],_0xe20197=Object[_0x4b1ec3(0x507)],_0x456d21=(_0x278e82,_0x19c250,_0x3f7862,_0x14e92e)=>{for(var _0x4ecb74=_0x14e92e>0x1?void 0x0:_0x14e92e?_0xe20197(_0x19c250,_0x3f7862):_0x19c250,_0x22f1ab=_0x278e82['length']-0x1,_0x489733;_0x22f1ab>=0x0;_0x22f1ab--)(_0x489733=_0x278e82[_0x22f1ab])&&(_0x4ecb74=(_0x14e92e?_0x489733(_0x19c250,_0x3f7862,_0x4ecb74):_0x489733(_0x4ecb74))||_0x4ecb74);return _0x14e92e&&_0x4ecb74&&_0x34d0b4(_0x19c250,_0x3f7862,_0x4ecb74),_0x4ecb74;},_0x261dc6=(_0x246485,_0x3b0fb4)=>(_0x5d0470,_0x3bb8a9)=>_0x3b0fb4(_0x5d0470,_0x3bb8a9,_0x246485);_0x99db31[_0x4b1ec3(0x425)]=class extends _0x495bbc['RxDisposable']{constructor(_0x37be29,_0x3ede2a,_0x384729,_0x41a68c,_0x23f88e,_0x24ea8a){const _0x8578f=_0x4b1ec3;super(),this[_0x8578f(0x3ba)]=_0x37be29,this['_logService']=_0x3ede2a,this['_commandService']=_0x384729,this[_0x8578f(0x43d)]=_0x41a68c,this[_0x8578f(0x266)]=_0x23f88e,_0x24ea8a?_0x24ea8a==null||_0x24ea8a[_0x8578f(0x4c3)]()['then'](()=>this[_0x8578f(0x468)]()):(this[_0x8578f(0x38b)][_0x8578f(0x2ca)](_0x8578f(0x3ed),_0x8578f(0x156)),this[_0x8578f(0x468)]());}async['_init'](){const _0x5239b4=_0x4b1ec3,_0x53c9e7=this[_0x5239b4(0x3ba)]['getParam'](_0x5239b4(0x13e)),_0x4f2669=this[_0x5239b4(0x3ba)][_0x5239b4(0x19d)]('type');if(!_0x53c9e7||!_0x4f2669){this[_0x5239b4(0x38b)]['debug'](_0x5239b4(0x3ed),_0x5239b4(0x186));return;}switch(Number(_0x4f2669)){case _0x1ffbf2[_0x5239b4(0x271)]:{const _0x5468fe=await this[_0x5239b4(0x1a9)](_0x53c9e7);this[_0x5239b4(0x238)](_0x5468fe);break;}case _0x1ffbf2[_0x5239b4(0x438)]:{await this['_loadDoc'](_0x53c9e7);break;}default:{this[_0x5239b4(0x38b)]['error'](_0x5239b4(0x3ed),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x4b1ec3(0x238)](_0x1ec0d6){const _0x382230=_0x4b1ec3;await this[_0x382230(0x325)](_0x1ec0d6),_0x1ec0d6['activeSheet$']['pipe'](_0x11b67e[_0x382230(0x40b)](this[_0x382230(0x26e)]))[_0x382230(0x43a)](_0x2cfa80=>{const _0x35ede9=_0x382230;_0x2cfa80&&this[_0x35ede9(0x1f3)](_0x2cfa80);}),this[_0x382230(0x3ba)][_0x382230(0x1e8)][_0x382230(0x377)](_0x11b67e[_0x382230(0x40b)](this[_0x382230(0x26e)]))['subscribe'](()=>this[_0x382230(0x325)](_0x1ec0d6));}['_updateURLWithCurrentState'](_0x2352f7,_0x2f5f1f=!0x1){const _0x3a5674=_0x4b1ec3,_0x1f6625=this[_0x3a5674(0x3ba)][_0x3a5674(0x19d)](_0x3a5674(0x27e));_0x2352f7[_0x3a5674(0x230)]()!==_0x1f6625&&this[_0x3a5674(0x3ba)]['setParam']('subunit',_0x2352f7['getSheetId'](),_0x2f5f1f);}async[_0x4b1ec3(0x325)](_0x51cdd7){const _0x3c75bd=_0x4b1ec3;var _0x5aaa84;const _0x1f830e=this[_0x3c75bd(0x3ba)][_0x3c75bd(0x19d)](_0x3c75bd(0x27e));if(!_0x1f830e||!_0x51cdd7['getSheetBySheetId'](_0x1f830e)){const _0xc22b11=_0x51cdd7[_0x3c75bd(0x48d)]()[0x0],_0x43cdad=_0x51cdd7[_0x3c75bd(0x21f)](_0xc22b11);if(!_0x43cdad)return;this[_0x3c75bd(0x1f3)](_0x43cdad,!0x0),await this[_0x3c75bd(0x2e4)]['executeCommand'](_0x344713[_0x3c75bd(0x3be)]['id'],{'unitId':_0x51cdd7['getUnitId'](),'subUnitId':_0xc22b11});return;}((_0x5aaa84=_0x51cdd7[_0x3c75bd(0x4ad)]())==null?void 0x0:_0x5aaa84[_0x3c75bd(0x230)]())!==_0x1f830e&&await this[_0x3c75bd(0x2e4)][_0x3c75bd(0x259)](_0x344713[_0x3c75bd(0x3be)]['id'],{'unitId':_0x51cdd7[_0x3c75bd(0x317)](),'subUnitId':_0x1f830e});}async[_0x4b1ec3(0x1a9)](_0x58423e){const _0x531397=_0x4b1ec3;let _0x450a06=0x0;const _0x4b7e7d=await this['_localCacheService'][_0x531397(0x258)](_0x58423e);return _0x4b7e7d&&(_0x4b7e7d[_0x531397(0x182)]||_0x4b7e7d['mutations'][_0x531397(0x2b7)]!==0x0)&&(_0x450a06=_0x4b7e7d['rev']),_0x450a06===0x0&&this['_logService']['debug'](_0x531397(0x3ed),_0x531397(0x3e0)),this[_0x531397(0x266)][_0x531397(0x4bc)](_0x58423e,_0x450a06);}async[_0x4b1ec3(0x2ad)](_0x4fc98d){const _0x1dcccb=_0x4b1ec3;let _0x3950e0=0x0;const _0x21cc50=await this[_0x1dcccb(0x43d)]['loadOfflineData'](_0x4fc98d);return _0x21cc50&&(_0x21cc50[_0x1dcccb(0x182)]||_0x21cc50['mutations'][_0x1dcccb(0x2b7)]!==0x0)&&(_0x3950e0=_0x21cc50['rev']),_0x3950e0===0x0&&this[_0x1dcccb(0x38b)][_0x1dcccb(0x2ca)]('[DataLoaderController]',_0x1dcccb(0x3e0)),this[_0x1dcccb(0x266)]['loadDoc'](_0x4fc98d,_0x3950e0);}},_0x99db31[_0x4b1ec3(0x425)]=_0x456d21([_0x495bbc[_0x4b1ec3(0x34d)](_0x495bbc['LifecycleStages'][_0x4b1ec3(0x3e4)],_0x99db31[_0x4b1ec3(0x425)]),_0x261dc6(0x0,_0x3acd67),_0x261dc6(0x1,_0x495bbc[_0x4b1ec3(0x22c)]),_0x261dc6(0x2,_0x495bbc[_0x4b1ec3(0x28f)]),_0x261dc6(0x3,_0xff0938[_0x4b1ec3(0x292)](_0x99db31[_0x4b1ec3(0x4de)])),_0x261dc6(0x4,_0xff0938[_0x4b1ec3(0x292)](_0x2a1cda['SnapshotService'])),_0x261dc6(0x5,_0xff0938[_0x4b1ec3(0x369)](_0x1ffb28[_0x4b1ec3(0x2d1)]))],_0x99db31['DataLoaderController']);var _0x110d09=Object[_0x4b1ec3(0x356)],_0x188de7=Object[_0x4b1ec3(0x507)],_0x236a66=(_0x3cbd84,_0x2336b4,_0x413be8,_0x5d84c5)=>{const _0x5158ba=_0x4b1ec3;for(var _0x3e420e=_0x5d84c5>0x1?void 0x0:_0x5d84c5?_0x188de7(_0x2336b4,_0x413be8):_0x2336b4,_0x4b0c0d=_0x3cbd84[_0x5158ba(0x2b7)]-0x1,_0x1060b1;_0x4b0c0d>=0x0;_0x4b0c0d--)(_0x1060b1=_0x3cbd84[_0x4b0c0d])&&(_0x3e420e=(_0x5d84c5?_0x1060b1(_0x2336b4,_0x413be8,_0x3e420e):_0x1060b1(_0x3e420e))||_0x3e420e);return _0x5d84c5&&_0x3e420e&&_0x110d09(_0x2336b4,_0x413be8,_0x3e420e),_0x3e420e;},_0x1d9240=(_0x58861d,_0x3f50b6)=>(_0x409741,_0x17922d)=>_0x3f50b6(_0x409741,_0x17922d,_0x58861d);const _0x23d83b=_0x4b1ec3(0x38d),_0x1e605e='Univer';let _0x582d09=class extends _0x495bbc[_0x4b1ec3(0x424)]{constructor(_0x49e67a,_0x4f1cbc){const _0x1050af=_0x4b1ec3;super(),this[_0x1050af(0x352)]=_0x49e67a,this[_0x1050af(0x313)]=_0x4f1cbc,this[_0x1050af(0x468)]();}[_0x4b1ec3(0x468)](){const _0x55b9f1=_0x4b1ec3;this[_0x55b9f1(0x3fb)](_0x495bbc[_0x55b9f1(0x46b)](this[_0x55b9f1(0x352)][_0x55b9f1(0x49c)][_0x55b9f1(0x43a)](()=>{const _0x2545a3=_0x55b9f1;var _0x565898;const _0x4e6a55=this['_univerInstanceService']['getFocusedUnit']();let _0x127d13=(_0x565898=this[_0x2545a3(0x313)][_0x2545a3(0x1b6)](_0x23d83b))!=null?_0x565898:_0x1e605e;_0x4e6a55 instanceof _0x495bbc[_0x2545a3(0x1b2)]&&(_0x127d13=_0x4e6a55['name']),document[_0x2545a3(0x3ef)]=_0x127d13;})));}};_0x582d09=_0x236a66([_0x495bbc['OnLifecycle'](_0x495bbc[_0x4b1ec3(0x287)][_0x4b1ec3(0x1e3)],_0x582d09),_0x1d9240(0x0,_0x495bbc[_0x4b1ec3(0x216)]),_0x1d9240(0x1,_0x495bbc[_0x4b1ec3(0x2d6)])],_0x582d09);var _0xc95195=Object[_0x4b1ec3(0x356)],_0x4fa57c=Object[_0x4b1ec3(0x507)],_0x1b01cf=(_0x4e0509,_0x3ca547,_0x3b73ca,_0x378a1a)=>{const _0x532388=_0x4b1ec3;for(var _0xef394a=_0x378a1a>0x1?void 0x0:_0x378a1a?_0x4fa57c(_0x3ca547,_0x3b73ca):_0x3ca547,_0x14c27d=_0x4e0509[_0x532388(0x2b7)]-0x1,_0x34bc9a;_0x14c27d>=0x0;_0x14c27d--)(_0x34bc9a=_0x4e0509[_0x14c27d])&&(_0xef394a=(_0x378a1a?_0x34bc9a(_0x3ca547,_0x3b73ca,_0xef394a):_0x34bc9a(_0xef394a))||_0xef394a);return _0x378a1a&&_0xef394a&&_0xc95195(_0x3ca547,_0x3b73ca,_0xef394a),_0xef394a;},_0x1cfdfc=(_0x591269,_0x59bad5)=>(_0x5ccd6d,_0x37b1b1)=>_0x59bad5(_0x5ccd6d,_0x37b1b1,_0x591269);_0x99db31[_0x4b1ec3(0x331)]=class{constructor(_0x4c524f,_0x4e0418){const _0x2061b5=_0x4b1ec3;this[_0x2061b5(0x313)]=_0x4c524f,this[_0x2061b5(0x204)]=_0x4e0418;}async[_0x4b1ec3(0x4cb)](_0x501c2e,_0x4d1ac){const _0x4fee23=_0x4b1ec3;var _0x5cc84a;const {unitID:_0x3728a7,type:_0x1133f0,revision:_0x4d23e7=0x0}=_0x4d1ac,_0x451ea6=this[_0x4fee23(0x2e0)]()+'/'+_0x1133f0+'/unit/'+_0x3728a7+_0x4fee23(0x464)+_0x4d23e7,_0xe0f52c=(await this[_0x4fee23(0x204)][_0x4fee23(0x4ce)](_0x451ea6))[_0x4fee23(0x25b)],_0x2ab582=(_0x5cc84a=_0xe0f52c[_0x4fee23(0x21a)])==null?void 0x0:_0x5cc84a['workbook'];if(_0x2ab582){const _0x148864=_0x2ab582==null?void 0x0:_0x2ab582['originalMeta'],_0x475dda=_0x495bbc[_0x4fee23(0x3f1)]['encode'](_0x495bbc[_0x4fee23(0x20d)](_0x148864));_0x2ab582['originalMeta']=_0x475dda,Object[_0x4fee23(0x1f6)](_0x2ab582[_0x4fee23(0x3bc)])[_0x4fee23(0x14d)](([,_0x36f7ae])=>{const _0x21a5d6=_0x4fee23,_0x3d546a=_0x36f7ae[_0x21a5d6(0x191)],_0x3ecd9b=_0x495bbc[_0x21a5d6(0x3f1)][_0x21a5d6(0x324)](_0x495bbc[_0x21a5d6(0x20d)](_0x3d546a));_0x36f7ae['originalMeta']=_0x3ecd9b;});}return _0xe0f52c;}async['getSheetBlock'](_0x4f0313,_0x39fe6c){const _0x30aff3=_0x4b1ec3,{unitID:_0x11ab22,type:_0x58bfe6,blockID:_0xd9f1e7}=_0x39fe6c,_0x5c3a17=this[_0x30aff3(0x32f)]()+'/'+_0x58bfe6+'/unit/'+_0x11ab22+_0x30aff3(0x4e6)+_0xd9f1e7;return(await this[_0x30aff3(0x204)][_0x30aff3(0x4ce)](_0x5c3a17))['body'];}async[_0x4b1ec3(0x323)](_0x3ad10e,_0x41f0e2){const _0x422768=_0x4b1ec3,{unitID:_0x174e30,type:_0x155275,from:_0x1e1e68,to:_0x98296}=_0x41f0e2,_0x52e143=this['_getAPIPrefix']()+'/'+_0x155275+_0x422768(0x2bf)+_0x174e30+_0x422768(0x1f9)+_0x1e1e68+_0x422768(0x50b)+_0x98296;return(await this[_0x422768(0x204)][_0x422768(0x4ce)](_0x52e143))[_0x422768(0x25b)];}[_0x4b1ec3(0x2e0)](){const _0x30179c=_0x4b1ec3;var _0x5e2594;return(_0x5e2594=this[_0x30179c(0x313)]['getConfig'](_0x53202c))!=null?_0x5e2594:this[_0x30179c(0x32f)]();}[_0x4b1ec3(0x32f)](){const _0x32fc85=_0x4b1ec3;var _0x2380c5;return(_0x2380c5=this['_configService'][_0x32fc85(0x1b6)](_0xd3e7a0))!=null?_0x2380c5:_0x6829da;}async[_0x4b1ec3(0x341)](_0x2256fc,_0x265dc0){const _0x56dd59=_0x4b1ec3,_0x487890=_0x56dd59(0x1cd)+_0x265dc0[_0x56dd59(0x2fc)]+_0x56dd59(0x2bf)+_0x265dc0[_0x56dd59(0x391)]+'/resources';return(await this[_0x56dd59(0x204)]['get'](_0x487890,{'params':{'resourceId':JSON[_0x56dd59(0x4c2)](_0x265dc0[_0x56dd59(0x19a)])}}))[_0x56dd59(0x25b)];}[_0x4b1ec3(0x221)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4b1ec3(0x2da)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4b1ec3(0x168)](){const _0x2fbc06=_0x4b1ec3;throw new Error(_0x2fbc06(0x13f));}},_0x99db31['SnapshotServerOverHTTPService']=_0x1b01cf([_0x1cfdfc(0x0,_0x495bbc[_0x4b1ec3(0x2d6)]),_0x1cfdfc(0x1,_0xff0938['Inject'](_0x19613['HTTPService']))],_0x99db31['SnapshotServerOverHTTPService']);var _0x406609=Object[_0x4b1ec3(0x356)],_0x38f8a8=Object[_0x4b1ec3(0x507)],_0x5716f7=(_0x5a99ac,_0x17415b,_0x19c23c,_0x3f8f67)=>{for(var _0x4b9b50=_0x3f8f67>0x1?void 0x0:_0x3f8f67?_0x38f8a8(_0x17415b,_0x19c23c):_0x17415b,_0x3a0c58=_0x5a99ac['length']-0x1,_0x2d612f;_0x3a0c58>=0x0;_0x3a0c58--)(_0x2d612f=_0x5a99ac[_0x3a0c58])&&(_0x4b9b50=(_0x3f8f67?_0x2d612f(_0x17415b,_0x19c23c,_0x4b9b50):_0x2d612f(_0x4b9b50))||_0x4b9b50);return _0x3f8f67&&_0x4b9b50&&_0x406609(_0x17415b,_0x19c23c,_0x4b9b50),_0x4b9b50;},_0x39b174=(_0x547a2f,_0x3c2823)=>(_0x55e504,_0x3d1930)=>_0x3c2823(_0x55e504,_0x3d1930,_0x547a2f);let _0x17eb3b=class extends _0x495bbc[_0x4b1ec3(0x35b)]{constructor(_0x30706c,_0x1ec710,_0x58800d,_0x1222d3,_0x1cd20b){const _0x267e7f=_0x4b1ec3;super(_0x30706c,_0x1ec710,_0x58800d),this[_0x267e7f(0x202)]=_0x1222d3,this['_logService']=_0x1cd20b;}[_0x4b1ec3(0x208)](_0x36a0a8,_0x2fed70){const _0x28f831=_0x4b1ec3,_0x3fc66f=this['_getUndoStack'](_0x36a0a8);if(_0x3fc66f)try{const _0x65eb6a=this[_0x28f831(0x19c)](_0x3fc66f,_0x2fed70);this[_0x28f831(0x39f)](_0x36a0a8,_0x65eb6a);}catch(_0x109dde){this[_0x28f831(0x38b)][_0x28f831(0x512)]('[CollaborationUndoRedoService]',_0x109dde),this[_0x28f831(0x3a4)](_0x36a0a8);}const _0x58a9eb=this[_0x28f831(0x180)](_0x36a0a8);if(_0x58a9eb)try{const _0xfd72c=this[_0x28f831(0x19c)](_0x58a9eb,_0x2fed70);this[_0x28f831(0x506)](_0x36a0a8,_0xfd72c);}catch(_0x550dc6){this[_0x28f831(0x38b)][_0x28f831(0x512)](_0x550dc6),this['_clearRedo'](_0x36a0a8);}}[_0x4b1ec3(0x3a4)](_0x48a2d9){const _0x1260ca=_0x4b1ec3,_0x531d95=this[_0x1260ca(0x1c5)](_0x48a2d9);_0x531d95&&(_0x531d95[_0x1260ca(0x2b7)]=0x0,this[_0x1260ca(0x335)]());}[_0x4b1ec3(0x40e)](_0x595ba3){const _0xebef3d=_0x4b1ec3,_0x2f33b7=this[_0xebef3d(0x180)](_0x595ba3);_0x2f33b7&&(_0x2f33b7[_0xebef3d(0x2b7)]=0x0,this['_updateStatus']());}[_0x4b1ec3(0x39f)](_0x6593d9,_0x1f31e8){const _0x1e3027=_0x4b1ec3;this[_0x1e3027(0x407)][_0x1e3027(0x20e)](_0x6593d9,_0x1f31e8),this['_updateStatus']();}[_0x4b1ec3(0x506)](_0x188212,_0xd08559){const _0x54d7e4=_0x4b1ec3;this[_0x54d7e4(0x445)][_0x54d7e4(0x20e)](_0x188212,_0xd08559),this[_0x54d7e4(0x335)]();}['_transformStack'](_0x49007b,_0x3dd454){const _0x532f96=_0x4b1ec3,_0x5a7834=[];let _0x4b6caa=_0x3dd454,_0xef7486=_0x3dd454;for(let _0xb943bc=_0x49007b[_0x532f96(0x2b7)]-0x1;_0xb943bc>=0x0;_0xb943bc--){const {unitID:_0x4eaae4,undoMutations:_0x36d467,redoMutations:_0x5f8cc4}=_0x49007b[_0xb943bc],_0x896b3f=this['_transformService'][_0x532f96(0x33c)](_0x4b6caa,_0x36d467),_0x2dc3b1=this['_transformService'][_0x532f96(0x33c)](_0xef7486,_0x5f8cc4);if(_0x2a1cda[_0x532f96(0x201)](_0x896b3f)||_0x2a1cda[_0x532f96(0x201)](_0x2dc3b1)){this[_0x532f96(0x38b)][_0x532f96(0x512)](_0x532f96(0x359),_0x532f96(0x480),_0x896b3f,_0x2dc3b1);break;}_0x4b6caa=_0x896b3f['c1Prime'],_0xef7486=_0x2dc3b1[_0x532f96(0x395)],_0x5a7834[_0x532f96(0x38a)]({'unitID':_0x4eaae4,'undoMutations':_0x896b3f[_0x532f96(0x314)],'redoMutations':_0x2dc3b1[_0x532f96(0x314)]});}return _0x5a7834[_0x532f96(0x3fc)]();}};_0x17eb3b=_0x5716f7([_0x39b174(0x0,_0x495bbc[_0x4b1ec3(0x216)]),_0x39b174(0x1,_0x495bbc[_0x4b1ec3(0x28f)]),_0x39b174(0x2,_0x495bbc[_0x4b1ec3(0x253)]),_0x39b174(0x3,_0x2a1cda[_0x4b1ec3(0x21c)]),_0x39b174(0x4,_0x495bbc['ILogService'])],_0x17eb3b);class _0x387df7 extends _0x495bbc[_0x4b1ec3(0x456)]{constructor(){const _0x512c88=_0x4b1ec3;super(),_0x5d8027(this,_0x512c88(0x1e8)),this[_0x512c88(0x1e8)]=_0x11b67e[_0x512c88(0x418)](window,_0x512c88(0x3db))[_0x512c88(0x377)](_0x11b67e[_0x512c88(0x40b)](this[_0x512c88(0x26e)]),_0x11b67e[_0x512c88(0x4ff)](0x1),_0x11b67e[_0x512c88(0x4d8)](void 0x0));}[_0x4b1ec3(0x4bb)](_0x48fdfd,_0x8a0a6a,_0x49946a=!0x1){const _0x48fadf=_0x4b1ec3,_0x289ec6=new URL(window[_0x48fadf(0x4ac)][_0x48fadf(0x37a)]);_0x289ec6['searchParams'][_0x48fadf(0x20e)](_0x48fdfd,_0x8a0a6a),_0x49946a?window[_0x48fadf(0x23c)][_0x48fadf(0x2c6)]('','',_0x289ec6[_0x48fadf(0x3c9)]()):window[_0x48fadf(0x23c)][_0x48fadf(0x494)]('','',_0x289ec6[_0x48fadf(0x3c9)]());}[_0x4b1ec3(0x236)](_0x4c18df,_0x1d7f52=!0x1){const _0x516dad=_0x4b1ec3,_0x1fe577=new URL(window['location'][_0x516dad(0x37a)]);_0x1fe577[_0x516dad(0x207)][_0x516dad(0x2c8)](_0x4c18df),_0x1d7f52?window['history'][_0x516dad(0x2c6)]('','',_0x1fe577[_0x516dad(0x3c9)]()):window['history'][_0x516dad(0x494)]('','',_0x1fe577[_0x516dad(0x3c9)]());}[_0x4b1ec3(0x19d)](_0x2d6004){const _0x407c03=_0x4b1ec3;var _0x48c85b;return(_0x48c85b=new URL(window[_0x407c03(0x4ac)][_0x407c03(0x37a)])[_0x407c03(0x207)]['get'](_0x2d6004))!=null?_0x48c85b:void 0x0;}}const _0xcbaa6b=_0x4b1ec3(0x42a),_0x291502='collab-text-range-',_0x50983a=0x6,_0x7c9703=1.5,_0x4f4c10=0x4,_0x55bd9f=1.5,_0x973d6=_0x4b1ec3(0x20b);class _0x4f6cb4{constructor(_0x442033,_0x377f38,_0xa7c3f7,_0x14390f){const _0x6f1005=_0x4b1ec3;_0x5d8027(this,_0x6f1005(0x16b),[]),_0x5d8027(this,_0x6f1005(0x211),null),_0x5d8027(this,_0x6f1005(0x347),null),_0x5d8027(this,'_anchorDot',null),_0x5d8027(this,_0x6f1005(0x394),null),_0x5d8027(this,_0x6f1005(0x277),null),(this[_0x6f1005(0x1a2)]=_0x442033,this[_0x6f1005(0x4d6)]=_0x377f38,this['_docSkeleton']=_0xa7c3f7,this[_0x6f1005(0x1b4)]=_0x14390f,this[_0x6f1005(0x4dc)]());}set[_0x4b1ec3(0x2a7)](_0x510967){const _0x4e6989=_0x4b1ec3;_0x510967?(this[_0x4e6989(0x4cf)]&&this['_anchorDot']['hide'](),this[_0x4e6989(0x347)]&&this[_0x4e6989(0x347)][_0x4e6989(0x42c)]()):(this[_0x4e6989(0x4cf)]&&this[_0x4e6989(0x4cf)][_0x4e6989(0x42c)](),this[_0x4e6989(0x347)]&&this[_0x4e6989(0x347)][_0x4e6989(0x1e9)]());}['dispose'](){const _0x353da1=_0x4b1ec3;for(const _0x468bb7 of this[_0x353da1(0x16b)])_0x468bb7[_0x353da1(0x3f5)]();this[_0x353da1(0x347)]&&this[_0x353da1(0x347)][_0x353da1(0x3f5)](),this['_anchorDot']&&this[_0x353da1(0x4cf)][_0x353da1(0x3f5)](),this['_anchor']&&this[_0x353da1(0x211)][_0x353da1(0x3f5)](),this[_0x353da1(0x277)]&&this[_0x353da1(0x277)]();}[_0x4b1ec3(0x4dc)](){const _0x4eb724=_0x4b1ec3,{_docSkeleton:_0x4d2da8,_document:_0x188ce0}=this,{color:_0xb2b2b8,name:_0x35d4bf,ranges:_0x40a437}=this[_0x4eb724(0x1a2)],_0x28cbc2=_0x188ce0['getOffsetConfig'](),{docsLeft:_0x31c5fe,docsTop:_0x4f6b14}=_0x28cbc2,_0x35cd2a=new _0x4ec763[(_0x4eb724(0x416))](_0x28cbc2,_0x4d2da8);for(const {startOffset:_0x4e5cd7,endOffset:_0x355f36,collapsed:_0x13a0de,isActive:_0x1dfc0e}of _0x40a437){const _0x566e15=_0x4d2da8[_0x4eb724(0x160)](_0x4e5cd7),_0x3479fa=_0x4d2da8['findNodePositionByCharIndex'](_0x355f36);if(_0x1dfc0e){const {contentBoxPointGroup:_0x2f7317}=_0x35cd2a['getRangePointData'](_0x3479fa,_0x3479fa);if(_0x2f7317[_0x4eb724(0x2b7)]===0x0)continue;this[_0x4eb724(0x440)](_0xb2b2b8,_0x2f7317,_0x31c5fe,_0x4f6b14,_0x35d4bf),this[_0x4eb724(0x277)]=this['_handleHover']();}if(!_0x13a0de){const {contentBoxPointGroup:_0x155913}=_0x35cd2a[_0x4eb724(0x210)](_0x566e15,_0x3479fa);if(_0x155913[_0x4eb724(0x2b7)]===0x0)continue;this[_0x4eb724(0x49a)](_0xb2b2b8,_0x155913,_0x31c5fe,_0x4f6b14);}}}[_0x4b1ec3(0x440)](_0x87fd8e,_0x23b7d9,_0x30cb7e,_0x38e409,_0x3b6f13){const _0x27c9f1=_0x4b1ec3,_0x468c24=this[_0x27c9f1(0x134)](_0x23b7d9),{left:_0x21834f,top:_0xb44fc,height:_0xfa2c76}=_0x468c24,_0xc23423=this[_0x27c9f1(0x322)](),_0x466174=_0x55bd9f/_0xc23423,_0x4792b2=new _0x4ec763[(_0x27c9f1(0x43f))](_0xcbaa6b+_0x495bbc[_0x27c9f1(0x3d6)][_0x27c9f1(0x272)](_0x50983a),{'left':_0x21834f+_0x30cb7e-_0x466174,'top':_0xb44fc+_0x38e409,'height':_0xfa2c76,'width':_0x7c9703,'fill':_0x87fd8e||_0x4ec763[_0x27c9f1(0x423)](_0x495bbc[_0x27c9f1(0x1a4)]['black'],0x0),'strokeWidth':_0x466174,'stroke':_0x973d6,'evented':!0x0});this[_0x27c9f1(0x211)]=_0x4792b2,this[_0x27c9f1(0x4d6)][_0x27c9f1(0x1fb)](_0x4792b2,_0x4ec763[_0x27c9f1(0x25e)]);const _0x43ff3b=new _0x4ec763['Rect'](_0xcbaa6b+_0x495bbc[_0x27c9f1(0x3d6)][_0x27c9f1(0x272)](_0x50983a),{'left':_0x21834f+_0x30cb7e-_0x466174,'top':_0xb44fc+_0x38e409-_0x4f4c10/0x2,'height':_0x4f4c10,'width':_0x4f4c10,'fill':_0x87fd8e||_0x4ec763[_0x27c9f1(0x423)](_0x495bbc[_0x27c9f1(0x1a4)][_0x27c9f1(0x469)],0x0),'strokeWidth':0x0,'stroke':_0x87fd8e||_0x4ec763[_0x27c9f1(0x423)](_0x495bbc[_0x27c9f1(0x1a4)][_0x27c9f1(0x469)],0x0),'evented':!0x1});this['_anchorDot']=_0x43ff3b,this[_0x27c9f1(0x4d6)][_0x27c9f1(0x1fb)](_0x43ff3b,_0x4ec763[_0x27c9f1(0x25e)]);const _0x183c87=new _0x3aa103(_0xcbaa6b+_0x495bbc[_0x27c9f1(0x3d6)][_0x27c9f1(0x272)](_0x50983a),{'left':_0x21834f+_0x30cb7e-_0x466174,'top':_0xb44fc+_0x38e409-_0x13f80a,'text':_0x3b6f13,'color':_0x87fd8e});this[_0x27c9f1(0x347)]=_0x183c87,this[_0x27c9f1(0x4d6)][_0x27c9f1(0x1fb)](_0x183c87,_0x4ec763[_0x27c9f1(0x25e)]),this['_hover']=!0x1;}[_0x4b1ec3(0x226)](){const _0x514fc6=_0x4b1ec3,_0x60bc92=this[_0x514fc6(0x211)]['onPointerEnter$'][_0x514fc6(0x2b9)](()=>{const _0x5cbd57=_0x514fc6;this[_0x5cbd57(0x2a7)]=!0x0;}),_0x1b6a8b=this[_0x514fc6(0x211)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x34655e=_0x514fc6;this[_0x34655e(0x394)]&&clearTimeout(this[_0x34655e(0x394)]),this['_hideTimer']=setTimeout(()=>{const _0x5a95ba=_0x34655e;this[_0x5a95ba(0x2a7)]=!0x1;},0x7d0);});return()=>{const _0x40c0f1=_0x514fc6;_0x60bc92[_0x40c0f1(0x22e)](),_0x1b6a8b[_0x40c0f1(0x22e)]();};}[_0x4b1ec3(0x49a)](_0x1ebc46,_0x22311a,_0x145227,_0xe714f3){const _0x3348b8=_0x4b1ec3,_0x54f134=new _0x495bbc[(_0x3348b8(0x40d))](_0x1ebc46)[_0x3348b8(0x171)](0.2)[_0x3348b8(0x3ca)](),_0x55e272=new _0x4ec763[(_0x3348b8(0x16d))](_0x291502+_0x495bbc[_0x3348b8(0x3d6)][_0x3348b8(0x272)](_0x50983a),{'pointsGroup':_0x22311a,'fill':_0x54f134||_0x4ec763[_0x3348b8(0x423)](_0x495bbc['COLORS']['black'],0.2),'left':_0x145227,'top':_0xe714f3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3348b8(0x16b)][_0x3348b8(0x38a)](_0x55e272),this[_0x3348b8(0x4d6)]['addObject'](_0x55e272,_0x4ec763[_0x3348b8(0x25e)]);}[_0x4b1ec3(0x134)](_0x2e181e){const _0x45b283=_0x2e181e[0x0],_0x5104cd=_0x45b283[0x0],_0x5e07db=_0x45b283[0x2],{x:_0x104818,y:_0x349af0}=_0x5104cd,{x:_0x515966,y:_0x4e85ae}=_0x5e07db;return{'left':_0x104818,'top':_0x349af0,'width':_0x515966-_0x104818,'height':_0x4e85ae-_0x349af0};}[_0x4b1ec3(0x322)](){const _0x3cc316=_0x4b1ec3,{scaleX:_0x3c1594,scaleY:_0x296953}=this[_0x3cc316(0x4d6)][_0x3cc316(0x4f8)]();return Math[_0x3cc316(0x4b3)](_0x3c1594,_0x296953);}}var _0x360f05=Object[_0x4b1ec3(0x356)],_0x189d16=Object[_0x4b1ec3(0x507)],_0x22c1ed=(_0x2ec8c6,_0x3e3e3f,_0x545594,_0x80254d)=>{const _0x3a5661=_0x4b1ec3;for(var _0x42b52c=_0x80254d>0x1?void 0x0:_0x80254d?_0x189d16(_0x3e3e3f,_0x545594):_0x3e3e3f,_0x46d8ac=_0x2ec8c6[_0x3a5661(0x2b7)]-0x1,_0x13f007;_0x46d8ac>=0x0;_0x46d8ac--)(_0x13f007=_0x2ec8c6[_0x46d8ac])&&(_0x42b52c=(_0x80254d?_0x13f007(_0x3e3e3f,_0x545594,_0x42b52c):_0x13f007(_0x42b52c))||_0x42b52c);return _0x80254d&&_0x42b52c&&_0x360f05(_0x3e3e3f,_0x545594,_0x42b52c),_0x42b52c;},_0x69e2ef=(_0x2fcbec,_0x1003b9)=>(_0x546fdf,_0x5f3c8b)=>_0x1003b9(_0x546fdf,_0x5f3c8b,_0x2fcbec);let _0x1f4c2a=class extends _0x495bbc[_0x4b1ec3(0x456)]{constructor(_0x1ae1ec,_0x34d711,_0x2da1fb,_0x135201,_0x1a2bf7){const _0xc633be=_0x4b1ec3;super(),_0x5d8027(this,_0xc633be(0x138),[]),(this[_0xc633be(0x175)]=_0x1ae1ec,this[_0xc633be(0x352)]=_0x34d711,this[_0xc633be(0x47e)]=_0x2da1fb,this[_0xc633be(0x2cc)]=_0x135201,this['_themeService']=_0x1a2bf7,this[_0xc633be(0x468)]());}[_0x4b1ec3(0x468)](){const _0x57acfb=_0x4b1ec3;this['_docSkeletonManagerService'][_0x57acfb(0x1f1)][_0x57acfb(0x377)](_0x3e7fcd['takeUntil'](this['dispose$']),_0x3e7fcd[_0x57acfb(0x184)](_0x3ba907=>{const _0x5da050=_0x57acfb;if(_0x3ba907){const _0xe743d8=_0x3ba907[_0x5da050(0x461)]()[_0x5da050(0x4a7)]()[_0x5da050(0x317)]();return _0x11b67e[_0x5da050(0x1d9)](this[_0x5da050(0x175)][_0x5da050(0x2c5)](_0xe743d8),this[_0x5da050(0x30c)][_0x5da050(0x43c)])[_0x5da050(0x377)](_0x3e7fcd[_0x5da050(0x270)](([_0x4b0706,_0x5df87c])=>({'skeleton':_0x3ba907,'cursors':[..._0x4b0706['values']()][_0x5da050(0x18e)](_0x10eecb=>({..._0x10eecb,'color':_0x5df87c[_0x10eecb[_0x5da050(0x39c)]]}))})));}return _0x11b67e['of']({'skeleton':null,'cursors':[]});}))[_0x57acfb(0x43a)](({skeleton:_0x5067c4,cursors:_0x4355db})=>{const _0x959266=_0x57acfb;this['_removeCollabCursors'](),_0x5067c4&&this[_0x959266(0x2f1)](_0x5067c4,_0x4355db);});}[_0x4b1ec3(0x2f1)](_0xac484b,_0x44567b){const _0x3d5a88=_0x4b1ec3,_0x53c69e=this[_0x3d5a88(0x4e4)]();if(_0x53c69e==null)return;const {scene:_0x2c7bfb,document:_0x2689cd}=_0x53c69e,_0x2ffcf8=_0x44567b[_0x3d5a88(0x270)](_0x1ee751=>new _0x4f6cb4(_0x1ee751,_0x2c7bfb,_0xac484b,_0x2689cd));this[_0x3d5a88(0x138)]=_0x2ffcf8;}[_0x4b1ec3(0x14b)](){const _0x3a1d23=_0x4b1ec3;this[_0x3a1d23(0x138)]['forEach'](_0x27b2c3=>_0x27b2c3['dispose']()),this[_0x3a1d23(0x138)]=[];}[_0x4b1ec3(0x4e4)](){const _0x1aaa0d=_0x4b1ec3;return _0x257327[_0x1aaa0d(0x3c1)](this[_0x1aaa0d(0x352)],this[_0x1aaa0d(0x47e)]);}};_0x1f4c2a=_0x22c1ed([_0x495bbc[_0x4b1ec3(0x34d)](_0x495bbc['LifecycleStages']['Steady'],_0x1f4c2a),_0x69e2ef(0x0,_0xff0938['Inject'](_0x5cab36)),_0x69e2ef(0x1,_0x495bbc[_0x4b1ec3(0x216)]),_0x69e2ef(0x2,_0x4ec763[_0x4b1ec3(0x4f6)]),_0x69e2ef(0x3,_0xff0938[_0x4b1ec3(0x292)](_0x257327[_0x4b1ec3(0x510)])),_0x69e2ef(0x4,_0xff0938['Inject'](_0x495bbc[_0x4b1ec3(0x4ef)]))],_0x1f4c2a);var _0x1a74a=Object[_0x4b1ec3(0x356)],_0x127d33=Object[_0x4b1ec3(0x507)],_0x458385=(_0x4432e9,_0x3d5595,_0x4277fd,_0x2081e6)=>{const _0x8e635=_0x4b1ec3;for(var _0x292256=_0x2081e6>0x1?void 0x0:_0x2081e6?_0x127d33(_0x3d5595,_0x4277fd):_0x3d5595,_0x50b7d0=_0x4432e9[_0x8e635(0x2b7)]-0x1,_0x57a657;_0x50b7d0>=0x0;_0x50b7d0--)(_0x57a657=_0x4432e9[_0x50b7d0])&&(_0x292256=(_0x2081e6?_0x57a657(_0x3d5595,_0x4277fd,_0x292256):_0x57a657(_0x292256))||_0x292256);return _0x2081e6&&_0x292256&&_0x1a74a(_0x3d5595,_0x4277fd,_0x292256),_0x292256;},_0x2f94ff=(_0x4e70e3,_0x51d8d4)=>(_0x3165b3,_0x23e328)=>_0x51d8d4(_0x3165b3,_0x23e328,_0x4e70e3);let _0x390463=class{constructor(_0x2c4ed9,_0x4a4157,_0x2c79f0){const _0xe3ce59=_0x4b1ec3;this['_configService']=_0x2c4ed9,this[_0xe3ce59(0x204)]=_0x4a4157,this[_0xe3ce59(0x1db)]=_0x2c79f0,this[_0xe3ce59(0x228)]();}[_0x4b1ec3(0x228)](){const _0x1b4d50=_0x4b1ec3;this[_0x1b4d50(0x204)][_0x1b4d50(0x326)]({'priority':0x1,'interceptor':(_0x4ce9dd,_0x27b629)=>_0x27b629(_0x4ce9dd)[_0x1b4d50(0x377)](_0x11b67e[_0x1b4d50(0x2c0)](async _0xfe62ad=>{const _0x412cb5=_0x1b4d50,_0xd6008b=_0xfe62ad;if(_0xd6008b[_0x412cb5(0x465)]===0x191&&window[_0x412cb5(0x307)](this[_0x412cb5(0x1db)]['t'](_0x412cb5(0x403)))){const _0x55c896=window[_0x412cb5(0x20f)](window[_0x412cb5(0x4ac)][_0x412cb5(0x37a)]);window['location'][_0x412cb5(0x37a)]=this[_0x412cb5(0x4c9)]()+'?url='+_0x55c896;}return _0xd6008b;}))});}['_getLoginPath'](){const _0x55f523=_0x4b1ec3;var _0x422831;return(_0x422831=this[_0x55f523(0x313)][_0x55f523(0x1b6)](_0x517cd6))!=null?_0x422831:_0x5d76ae;}};_0x390463=_0x458385([_0x2f94ff(0x0,_0x495bbc[_0x4b1ec3(0x2d6)]),_0x2f94ff(0x1,_0xff0938['Inject'](_0x19613[_0x4b1ec3(0x3a5)])),_0x2f94ff(0x2,_0xff0938[_0x4b1ec3(0x292)](_0x495bbc[_0x4b1ec3(0x1f4)]))],_0x390463);var _0x5424ac=Object[_0x4b1ec3(0x356)],_0x4be737=Object[_0x4b1ec3(0x507)],_0x5b688e=(_0x22a792,_0x598c32,_0x1fbc4d,_0x56d31e)=>{for(var _0x12199f=_0x56d31e>0x1?void 0x0:_0x56d31e?_0x4be737(_0x598c32,_0x1fbc4d):_0x598c32,_0x368435=_0x22a792['length']-0x1,_0x112a01;_0x368435>=0x0;_0x368435--)(_0x112a01=_0x22a792[_0x368435])&&(_0x12199f=(_0x56d31e?_0x112a01(_0x598c32,_0x1fbc4d,_0x12199f):_0x112a01(_0x12199f))||_0x12199f);return _0x56d31e&&_0x12199f&&_0x5424ac(_0x598c32,_0x1fbc4d,_0x12199f),_0x12199f;},_0x4c56c3=(_0x3907e6,_0x8c32a1)=>(_0x5015ce,_0x13dc65)=>_0x8c32a1(_0x5015ce,_0x13dc65,_0x3907e6);const _0x43d000=_0x4b1ec3(0x44f),_0x17ed8f=_0x4b1ec3(0x446);_0x99db31['AuthzIoHttpService']=class extends _0x495bbc[_0x4b1ec3(0x424)]{constructor(_0x1f5266,_0xddf039){const _0x5626e1=_0x4b1ec3;super(),this[_0x5626e1(0x3d2)]=_0x1f5266,this['_configService']=_0xddf039,this['_initMergeInterceptor']();}[_0x4b1ec3(0x199)](){const _0x6f2a75=_0x4b1ec3,_0x4ab701=this;this['disposeWithMe'](this[_0x6f2a75(0x3d2)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x19613['MergeInterceptorFactory']({'isMatch'(_0x26d6b8){const _0x5ef8fa=_0x6f2a75;var _0x5cee27;if(_0x26d6b8[_0x5ef8fa(0x1d1)]==='POST'&&((_0x5cee27=_0x26d6b8[_0x5ef8fa(0x2fb)])!=null&&_0x5cee27[_0x5ef8fa(0x25b)])){const {objectID:_0x129bdb,objectType:_0x6ac252}=_0x26d6b8['requestParams'][_0x5ef8fa(0x25b)]||{};if(!_0x129bdb||_0x6ac252===void 0x0)return!0x1;const _0x140a25=_0x4ab701[_0x5ef8fa(0x3c7)]()+'/'+_0x6ac252+_0x5ef8fa(0x215)+_0x129bdb+_0x5ef8fa(0x43e);if(_0x26d6b8[_0x5ef8fa(0x234)]===_0x140a25)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x3724fc){const _0x313923=_0x6f2a75;var _0x2bc371;return(_0x2bc371=_0x3724fc[_0x313923(0x2fb)])==null?void 0x0:_0x2bc371[_0x313923(0x25b)];},'mergeParamsToRequest'(_0x3e841a,_0x5f3098){const _0x3ab47f=_0x6f2a75,_0x5c716e=_0x4ab701[_0x3ab47f(0x3c7)]()+_0x3ab47f(0x46d),_0x2db4c7=_0x3e841a[_0x3ab47f(0x361)]((_0xb49c12,_0x129f2f)=>{const _0x42ab23=_0x3ab47f,{unitID:_0x30acf9,objectID:_0x5acc32,objectType:_0x2b7e38,actions:_0x36aeb8}=_0x129f2f;return _0xb49c12[_0x30acf9]||(_0xb49c12[_0x30acf9]={}),_0xb49c12[_0x30acf9][_0x5acc32]||(_0xb49c12[_0x30acf9][_0x5acc32]={'objectID':_0x5acc32,'objectType':_0x2b7e38,'actions':[]}),_0xb49c12[_0x30acf9][_0x5acc32][_0x42ab23(0x274)][_0x42ab23(0x38a)](..._0x36aeb8),_0xb49c12;},{}),_0x4fbff7=[];for(const _0x58c41b in _0x2db4c7)for(const _0x25c1ff in _0x2db4c7[_0x58c41b]){const {actions:_0x3364c7,objectType:_0x4e1344}=_0x2db4c7[_0x58c41b][_0x25c1ff],_0x4721f9=[...new Set(_0x3364c7)];_0x4fbff7[_0x3ab47f(0x38a)]({'unitID':_0x58c41b,'objectID':_0x25c1ff,'objectType':_0x4e1344,'actions':_0x4721f9});}return new _0x19613['HTTPRequest'](_0x3ab47f(0x16f),_0x5c716e,{'headers':_0x5f3098[_0x3ab47f(0x36f)],'withCredentials':_0x5f3098['withCredentials'],'responseType':_0x5f3098['responseType'],'body':{'requests':_0x4fbff7}});}},{'distributeResult'(_0x509897,_0x3d69d8){const _0x44a7ac=_0x6f2a75,{objectActions:_0x4c7923}=_0x509897;return _0x3d69d8[_0x44a7ac(0x270)](_0x3f90e9=>{const _0x262075=_0x44a7ac,{unitID:_0x32bde6,objectID:_0x248806,actions:_0x19b3c7}=_0x3f90e9,_0x2ab6f4=_0x4c7923[_0x262075(0x26f)](_0x58b362=>_0x58b362[_0x262075(0x391)]===_0x32bde6&&_0x58b362[_0x262075(0x2e5)]===_0x248806),_0x3ee38c=_0x19b3c7[_0x262075(0x270)](_0x3d0826=>_0x2ab6f4==null?void 0x0:_0x2ab6f4['actions'][_0x262075(0x26f)](_0x1d1da7=>_0x1d1da7[_0x262075(0x2ce)]===_0x3d0826))[_0x262075(0x319)](_0x57e5ff=>!!_0x57e5ff);return{'config':_0x3f90e9,'result':{'actions':_0x3ee38c,'error':_0x509897[_0x262075(0x512)]}};});}})}));}[_0x4b1ec3(0x3c7)](){const _0xda56ce=_0x4b1ec3;var _0x57080d;return(_0x57080d=this[_0xda56ce(0x313)][_0xda56ce(0x1b6)](_0x43d000))!=null?_0x57080d:_0x17ed8f;}async[_0x4b1ec3(0x169)](_0x46725c){const _0x2011a6=_0x4b1ec3,_0x2df378=this[_0x2011a6(0x3c7)]()+'/'+_0x46725c['objectType']+_0x2011a6(0x402);return(await this[_0x2011a6(0x3d2)][_0x2011a6(0x246)](_0x2df378,{'body':_0x46725c}))[_0x2011a6(0x25b)][_0x2011a6(0x2e5)]||'';}async[_0x4b1ec3(0x4e2)](_0x6c3956){const _0x82a804=_0x4b1ec3,_0x2660b7=this[_0x82a804(0x3c7)]()+_0x82a804(0x174);return(await this[_0x82a804(0x3d2)][_0x82a804(0x246)](_0x2660b7,{'body':_0x6c3956}))[_0x82a804(0x25b)]['objects'];}async[_0x4b1ec3(0x1a6)](_0x4592e8){const _0x348f43=_0x4b1ec3,_0x721940=this[_0x348f43(0x3c7)]()+'/'+_0x4592e8[_0x348f43(0x4d4)]+_0x348f43(0x215)+_0x4592e8[_0x348f43(0x2e5)];await this[_0x348f43(0x3d2)][_0x348f43(0x1b9)](_0x721940,{'body':_0x4592e8});}async['allowed'](_0x12d542){const _0x49c9fe=_0x4b1ec3,_0x2016da=this[_0x49c9fe(0x3c7)]()+'/'+_0x12d542['objectType']+'/object/'+_0x12d542[_0x49c9fe(0x2e5)]+_0x49c9fe(0x43e);return(await this['_HTTPService'][_0x49c9fe(0x246)](_0x2016da,{'body':_0x12d542}))[_0x49c9fe(0x25b)]['actions'];}async[_0x4b1ec3(0x37b)](_0x2be868){const _0x400794=_0x4b1ec3,_0x44acab=this[_0x400794(0x3c7)]()+_0x400794(0x46d);return(await this[_0x400794(0x3d2)][_0x400794(0x246)](_0x44acab,{'body':{'requests':_0x2be868}}))[_0x400794(0x25b)][_0x400794(0x1c0)];}async[_0x4b1ec3(0x4d2)](_0x416624){const _0x48a3e1=_0x4b1ec3,_0x1ff111=this[_0x48a3e1(0x3c7)]()+'/'+_0x416624[_0x48a3e1(0x4d4)]+_0x48a3e1(0x333),_0x358501=await this[_0x48a3e1(0x3d2)]['post'](_0x1ff111,{'body':_0x416624});return{'roles':_0x358501[_0x48a3e1(0x25b)][_0x48a3e1(0x350)],'actions':_0x358501[_0x48a3e1(0x25b)][_0x48a3e1(0x274)]};}async[_0x4b1ec3(0x4e8)](_0x3410a9){const _0x4c48aa=_0x4b1ec3,_0x12c901=this['_getAPIPrefixPath']()+_0x4c48aa(0x1c1);await this['_HTTPService']['delete'](_0x12c901,{'params':{'collaboratorID':_0x3410a9['collaboratorID'],'objectID':_0x3410a9[_0x4c48aa(0x2e5)],'unitID':_0x3410a9[_0x4c48aa(0x391)]}});}async[_0x4b1ec3(0x513)](_0x635502){const _0x279af8=_0x4b1ec3,_0x293a71=this[_0x279af8(0x3c7)]()+'/collaborator';await this[_0x279af8(0x3d2)][_0x279af8(0x25f)](_0x293a71,{'body':_0x635502});}async[_0x4b1ec3(0x482)](_0x4b8076){const _0x4d04bb=_0x4b1ec3,_0x4b5b59=this[_0x4d04bb(0x3c7)]()+_0x4d04bb(0x1c1);await this[_0x4d04bb(0x3d2)][_0x4d04bb(0x246)](_0x4b5b59,{'body':_0x4b8076});}async[_0x4b1ec3(0x454)](_0x286cb5){const _0x5c1ed3=_0x4b1ec3,_0x19a33c=this[_0x5c1ed3(0x3c7)]()+_0x5c1ed3(0x1c1);return(await this[_0x5c1ed3(0x3d2)][_0x5c1ed3(0x4ce)](_0x19a33c,{'params':{'objectID':_0x286cb5['objectID'],'unitID':_0x286cb5[_0x5c1ed3(0x391)]}}))[_0x5c1ed3(0x25b)]['collaborators'];}async[_0x4b1ec3(0x4e5)](_0x29401e){const _0xb7e161=_0x4b1ec3,_0x31cd1b=this[_0xb7e161(0x3c7)]()+'/collaborator';await this[_0xb7e161(0x3d2)][_0xb7e161(0x1b9)](_0x31cd1b,{'body':_0x29401e});}},_0x99db31[_0x4b1ec3(0x3ee)]=_0x5b688e([_0x4c56c3(0x0,_0xff0938[_0x4b1ec3(0x292)](_0x19613[_0x4b1ec3(0x3a5)])),_0x4c56c3(0x1,_0xff0938[_0x4b1ec3(0x292)](_0x495bbc[_0x4b1ec3(0x2d6)]))],_0x99db31[_0x4b1ec3(0x3ee)]);var _0x3adfc6=Object['defineProperty'],_0x5d4cf3=Object[_0x4b1ec3(0x507)],_0x3f518c=(_0x41f986,_0x4e32d6,_0x3dfc30,_0x4d2ce9)=>{const _0x5ebabb=_0x4b1ec3;for(var _0x223298=_0x4d2ce9>0x1?void 0x0:_0x4d2ce9?_0x5d4cf3(_0x4e32d6,_0x3dfc30):_0x4e32d6,_0x4519b9=_0x41f986[_0x5ebabb(0x2b7)]-0x1,_0x143f29;_0x4519b9>=0x0;_0x4519b9--)(_0x143f29=_0x41f986[_0x4519b9])&&(_0x223298=(_0x4d2ce9?_0x143f29(_0x4e32d6,_0x3dfc30,_0x223298):_0x143f29(_0x223298))||_0x223298);return _0x4d2ce9&&_0x223298&&_0x3adfc6(_0x4e32d6,_0x3dfc30,_0x223298),_0x223298;},_0x4b886c=(_0x1654d2,_0x44d116)=>(_0x4f57bf,_0x4e3d7f)=>_0x44d116(_0x4f57bf,_0x4e3d7f,_0x1654d2);const _0x35720e=[_0x4b1ec3(0x2ec),_0x4b1ec3(0x1c8),_0x4b1ec3(0x4f4),_0x4b1ec3(0x299),_0x4b1ec3(0x432)],_0x535363=0x5*0x400*0x400,_0x1c7ae2=_0x4b1ec3(0x183),_0x410359=_0x4b1ec3(0x200),_0x364179=_0x4b1ec3(0x450),_0x461ff5='/universer-api/file/{fileID}/sign-url';_0x99db31['ImageIoService']=class{constructor(_0x332d3c,_0x30de98){const _0x1bd7e2=_0x4b1ec3;_0x5d8027(this,_0x1bd7e2(0x1e1),0x0),_0x5d8027(this,_0x1bd7e2(0x360),new _0x11b67e[(_0x1bd7e2(0x486))]()),_0x5d8027(this,_0x1bd7e2(0x3e9),this[_0x1bd7e2(0x360)]),_0x5d8027(this,_0x1bd7e2(0x36e),new Map()),(this[_0x1bd7e2(0x204)]=_0x332d3c,this[_0x1bd7e2(0x313)]=_0x30de98);}[_0x4b1ec3(0x1f8)](_0x70feff){const _0x332140=_0x4b1ec3;this[_0x332140(0x1e1)]=_0x70feff,this['_change$'][_0x332140(0x2b2)](_0x70feff);}[_0x4b1ec3(0x3bd)](_0x2fe406,_0x3ca77f){const _0x1e3f53=_0x4b1ec3;if(_0x3ca77f===_0x2369bd[_0x1e3f53(0x50f)][_0x1e3f53(0x220)]){const _0x17b4ff=new Image();return _0x17b4ff[_0x1e3f53(0x2a8)]=_0x2fe406,_0x17b4ff;}return this['_imageSourceCache'][_0x1e3f53(0x4ce)](_0x2fe406);}[_0x4b1ec3(0x2c2)](_0x5858e5,_0x25a3e2,_0x459bd7){const _0x22cd5e=_0x4b1ec3;_0x25a3e2===_0x2369bd['ImageSourceType']['BASE64']||_0x459bd7==null||this[_0x22cd5e(0x36e)]['set'](_0x5858e5,_0x459bd7);}async['getImage'](_0x44083e){const _0x171d3a=_0x4b1ec3;try{const _0x40cd0d=this[_0x171d3a(0x22f)](this[_0x171d3a(0x493)](),''+_0x44083e),_0x438314=(await this[_0x171d3a(0x204)][_0x171d3a(0x4ce)](_0x40cd0d))[_0x171d3a(0x25b)];return _0x438314[_0x171d3a(0x512)]&&_0x438314[_0x171d3a(0x512)][_0x171d3a(0x3f0)]===_0x357dad['OK']?Promise[_0x171d3a(0x159)](_0x438314[_0x171d3a(0x234)]):Promise[_0x171d3a(0x49f)](_0x438314['error']);}catch(_0x59acba){return Promise[_0x171d3a(0x49f)](_0x59acba);}}async['saveImage'](_0x5bebd9){const _0x5c6319=_0x4b1ec3;let _0x373e33='';if(!_0x35720e[_0x5c6319(0x18f)](_0x5bebd9[_0x5c6319(0x2fc)]))return this[_0x5c6319(0x48f)](),Promise[_0x5c6319(0x49f)](new Error(_0x2369bd['ImageUploadStatusType']['ERROR_IMAGE_TYPE']));if(_0x5bebd9[_0x5c6319(0x3aa)]>_0x535363)return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x2369bd[_0x5c6319(0x462)][_0x5c6319(0x342)]));try{const _0x3a7952=new FormData();_0x3a7952[_0x5c6319(0x40c)](_0x5c6319(0x437),_0x5bebd9);const _0x1f425c=this['_getUploadFileURL']()+_0x5c6319(0x231)+_0x5bebd9[_0x5c6319(0x3aa)][_0x5c6319(0x3c9)](),_0xd5a7a2=await(await fetch(_0x1f425c,{'method':_0x5c6319(0x16f),'body':_0x3a7952}))[_0x5c6319(0x408)]();if(typeof _0xd5a7a2[_0x5c6319(0x148)]!=_0x5c6319(0x300))return this[_0x5c6319(0x48f)](),Promise[_0x5c6319(0x49f)](new Error(_0x2369bd['ImageUploadStatusType']['ERROR_IMAGE']));_0x373e33=_0xd5a7a2[_0x5c6319(0x148)];}catch{return this[_0x5c6319(0x48f)](),Promise[_0x5c6319(0x49f)](new Error(_0x2369bd[_0x5c6319(0x462)][_0x5c6319(0x3ec)]));}return new Promise((_0x1807a7,_0x252a2c)=>{const _0x923db9=_0x5c6319,_0x449318=new FileReader();_0x449318[_0x923db9(0x4ec)](_0x5bebd9),_0x449318['onload']=_0x4e12ff=>{const _0x17f6f1=_0x923db9;var _0x5cc8c8;const _0x50134f=(_0x5cc8c8=_0x4e12ff[_0x17f6f1(0x2f4)])==null?void 0x0:_0x5cc8c8[_0x17f6f1(0x255)];if(_0x50134f==null){this[_0x17f6f1(0x48f)](),_0x252a2c(new Error(_0x2369bd[_0x17f6f1(0x462)][_0x17f6f1(0x3ec)]));return;}const _0x231aaa=_0x495bbc['Tools'][_0x17f6f1(0x272)](0x6);_0x1807a7({'imageId':_0x231aaa,'imageSourceType':_0x2369bd[_0x17f6f1(0x50f)][_0x17f6f1(0x28e)],'source':_0x373e33,'base64Cache':_0x50134f,'status':_0x2369bd[_0x17f6f1(0x462)]['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x4b1ec3(0x311)](){const _0x1884a6=_0x4b1ec3;var _0x249383;return(_0x249383=this[_0x1884a6(0x313)]['getConfig'](_0x1c7ae2))!=null?_0x249383:_0x410359;}['_getSignURL'](){const _0x20092c=_0x4b1ec3;var _0x4e0155;return(_0x4e0155=this['_configService'][_0x20092c(0x1b6)](_0x364179))!=null?_0x4e0155:_0x461ff5;}['_replaceFileID'](_0x3ce3f5,_0x526ead){return _0x3ce3f5['replace']('{fileID}',_0x526ead);}[_0x4b1ec3(0x48f)](){const _0x520126=_0x4b1ec3;this[_0x520126(0x1e1)]-=0x1,this[_0x520126(0x360)][_0x520126(0x2b2)](this['_waitCount']);}},_0x99db31['ImageIoService']=_0x3f518c([_0x4b886c(0x0,_0xff0938['Inject'](_0x19613['HTTPService'])),_0x4b886c(0x1,_0x495bbc[_0x4b1ec3(0x2d6)])],_0x99db31[_0x4b1ec3(0x471)]);var _0x8f1bb8=Object['defineProperty'],_0xc723cd=Object['getOwnPropertyDescriptor'],_0x5e4537=(_0xe7c490,_0x1445aa,_0x82f64a,_0x4cb76b)=>{const _0x20dfd7=_0x4b1ec3;for(var _0x380347=_0x4cb76b>0x1?void 0x0:_0x4cb76b?_0xc723cd(_0x1445aa,_0x82f64a):_0x1445aa,_0x398346=_0xe7c490[_0x20dfd7(0x2b7)]-0x1,_0x308741;_0x398346>=0x0;_0x398346--)(_0x308741=_0xe7c490[_0x398346])&&(_0x380347=(_0x4cb76b?_0x308741(_0x1445aa,_0x82f64a,_0x380347):_0x308741(_0x380347))||_0x380347);return _0x4cb76b&&_0x380347&&_0x8f1bb8(_0x1445aa,_0x82f64a,_0x380347),_0x380347;},_0x1fb876=(_0x556aad,_0x1fa601)=>(_0x250676,_0x54562f)=>_0x1fa601(_0x250676,_0x54562f,_0x556aad);let _0x534e15=class extends _0x495bbc[_0x4b1ec3(0x456)]{constructor(_0x20af53,_0x1afd5c,_0x3530d8,_0x3055ac,_0x43c1ab){const _0x5e3b4c=_0x4b1ec3;super(),this[_0x5e3b4c(0x376)]=_0x20af53,this[_0x5e3b4c(0x352)]=_0x1afd5c,this[_0x5e3b4c(0x245)]=_0x3530d8,this[_0x5e3b4c(0x45b)]=_0x3055ac,this[_0x5e3b4c(0x131)]=_0x43c1ab,this['_initUnitPermissionChange'](),this[_0x5e3b4c(0x413)]();}['_initCloseConn'](){const _0xedf1cd=_0x4b1ec3,_0x592267=async _0x5a288b=>{const _0x154622=_0x2301;(await this[_0x154622(0x45b)][_0x154622(0x269)](_0x5a288b))[_0x154622(0x48b)][_0x154622(0x377)](_0x3e7fcd[_0x154622(0x319)](_0x417323=>_0x417323['eventID']===_0x2a1cda[_0x154622(0x2a0)][_0x154622(0x42d)]),_0x3e7fcd[_0x154622(0x40b)](this[_0x154622(0x26e)]))[_0x154622(0x43a)](_0x47f1e3=>{const _0x575246=_0x154622,_0x17e39e=_0x47f1e3,{reason:_0x425341}=_0x17e39e[_0x575246(0x3cf)];this[_0x575246(0x376)][_0x575246(0x4ce)](_0x510d97[_0x575246(0x3c3)])[_0x575246(0x42c)]({'type':_0x153393[_0x575246(0x4a8)][_0x575246(0x25c)],'content':this[_0x575246(0x131)]['t'](_0x575246(0x47c))+'('+_0x425341+')'}),this[_0x575246(0x245)][_0x575246(0x162)](new _0x344713[(_0x575246(0x17c))](_0x5a288b)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x5a288b);});};_0x11b67e['merge'](this[_0xedf1cd(0x352)][_0xedf1cd(0x251)](_0x495bbc['UniverInstanceType'][_0xedf1cd(0x271)]),this[_0xedf1cd(0x352)][_0xedf1cd(0x251)](_0x495bbc[_0xedf1cd(0x2d8)][_0xedf1cd(0x438)]))[_0xedf1cd(0x377)](_0x3e7fcd[_0xedf1cd(0x270)](_0x4fa6e2=>_0x4fa6e2[_0xedf1cd(0x317)]()),_0x3e7fcd[_0xedf1cd(0x319)](_0x617a29=>!_0x495bbc[_0xedf1cd(0x27b)](_0x617a29)),_0x3e7fcd[_0xedf1cd(0x40b)](this[_0xedf1cd(0x26e)]))[_0xedf1cd(0x43a)](_0x2cb9ef=>{_0x592267(_0x2cb9ef);});}[_0x4b1ec3(0x3f8)](){const _0x339d71=_0x4b1ec3,_0x2e686c=async _0x3be768=>{const _0x3f816c=_0x2301;(await this[_0x3f816c(0x45b)][_0x3f816c(0x269)](_0x3be768))['event$'][_0x3f816c(0x377)](_0x3e7fcd[_0x3f816c(0x319)](_0x1832aa=>_0x1832aa[_0x3f816c(0x2fa)]===_0x2a1cda[_0x3f816c(0x2a0)][_0x3f816c(0x4b2)]),_0x3e7fcd[_0x3f816c(0x40b)](this['dispose$']))[_0x3f816c(0x43a)](_0x2b36d8=>{const _0x3ee250=_0x3f816c,_0x568481=_0x2b36d8,{objectId:_0x266cc4}=_0x568481[_0x3ee250(0x3cf)];_0x266cc4===_0x3be768&&this[_0x3ee250(0x376)][_0x3ee250(0x4ce)](_0x3630b0[_0x3ee250(0x1f7)])[_0x3ee250(0x449)](_0x3be768);});};_0x11b67e[_0x339d71(0x140)](this[_0x339d71(0x352)][_0x339d71(0x251)](_0x495bbc[_0x339d71(0x2d8)]['UNIVER_SHEET']),this[_0x339d71(0x352)][_0x339d71(0x251)](_0x495bbc[_0x339d71(0x2d8)][_0x339d71(0x438)]))['pipe'](_0x3e7fcd[_0x339d71(0x270)](_0x559802=>_0x559802['getUnitId']()),_0x3e7fcd[_0x339d71(0x319)](_0xfb647b=>!_0x495bbc['isInternalEditorID'](_0xfb647b)),_0x3e7fcd[_0x339d71(0x40b)](this[_0x339d71(0x26e)]))[_0x339d71(0x43a)](_0x412939=>{_0x2e686c(_0x412939);});}};_0x534e15=_0x5e4537([_0x495bbc[_0x4b1ec3(0x34d)](_0x495bbc[_0x4b1ec3(0x287)][_0x4b1ec3(0x3e4)],_0x534e15),_0x1fb876(0x0,_0xff0938[_0x4b1ec3(0x292)](_0xff0938[_0x4b1ec3(0x22a)])),_0x1fb876(0x1,_0x495bbc['IUniverInstanceService']),_0x1fb876(0x2,_0x495bbc[_0x4b1ec3(0x1b5)]),_0x1fb876(0x3,_0xff0938[_0x4b1ec3(0x292)](_0x99db31[_0x4b1ec3(0x16c)])),_0x1fb876(0x4,_0xff0938[_0x4b1ec3(0x292)](_0x495bbc[_0x4b1ec3(0x1f4)]))],_0x534e15);var _0x53bbb4=Object[_0x4b1ec3(0x356)],_0x47f695=Object[_0x4b1ec3(0x507)],_0x3060bf=(_0x224abd,_0x5d0a79,_0x20abac)=>_0x5d0a79 in _0x224abd?_0x53bbb4(_0x224abd,_0x5d0a79,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20abac}):_0x224abd[_0x5d0a79]=_0x20abac,_0x40c6ff=(_0x19e9bf,_0x56eed0,_0x23d594,_0x7157f1)=>{const _0x40fd4e=_0x4b1ec3;for(var _0x21acb=_0x7157f1>0x1?void 0x0:_0x7157f1?_0x47f695(_0x56eed0,_0x23d594):_0x56eed0,_0x46719d=_0x19e9bf[_0x40fd4e(0x2b7)]-0x1,_0x18eb45;_0x46719d>=0x0;_0x46719d--)(_0x18eb45=_0x19e9bf[_0x46719d])&&(_0x21acb=(_0x7157f1?_0x18eb45(_0x56eed0,_0x23d594,_0x21acb):_0x18eb45(_0x21acb))||_0x21acb);return _0x7157f1&&_0x21acb&&_0x53bbb4(_0x56eed0,_0x23d594,_0x21acb),_0x21acb;},_0x192a34=(_0x4bcd1a,_0x59c625)=>(_0x1d9df0,_0x5d67de)=>_0x59c625(_0x1d9df0,_0x5d67de,_0x4bcd1a),_0x125c51=(_0x337fb4,_0x11d6e9,_0x550db5)=>_0x3060bf(_0x337fb4,_0x11d6e9+'',_0x550db5);const _0x29bceb=_0x4b1ec3(0x239);_0x99db31['UniverCollaborationClientPlugin']=class extends _0x495bbc[_0x4b1ec3(0x2bb)]{constructor(_0x25fa93,_0x2c364b,_0x5b2834){const _0x245542=_0x4b1ec3;super(),this[_0x245542(0x2a3)]=_0x25fa93,this[_0x245542(0x38b)]=_0x2c364b,this[_0x245542(0x376)]=_0x5b2834;}['onStarting'](_0xebce75){const _0x50a785=_0x4b1ec3;var _0x3f0f0f,_0x433379,_0x33a6da,_0xa303e0,_0x51cbe2;_0xebce75[_0x50a785(0x4a3)](_0x495bbc[_0x50a785(0x3d4)])&&this[_0x50a785(0x38b)][_0x50a785(0x512)](_0x50a785(0x514),_0x50a785(0x19b));let _0xc30a9c=[[_0x495bbc[_0x50a785(0x3d4)],{'useClass':_0x17eb3b}],[_0x99db31['CollaborationSessionService']],[_0x173474],[_0x19613[_0x50a785(0x3a5)]],[_0x3acd67,{'useClass':_0x387df7}],[_0x384a59],[_0x99db31[_0x50a785(0x4de)]],[_0x19613[_0x50a785(0x515)]],[_0x56fa9d],[_0x2fb5e2],[_0x527642],[_0x4095fc],[_0x390463],[_0x30b255],[_0x534e15],[_0x564797,{'useClass':(_0x433379=(_0x3f0f0f=this[_0x50a785(0x2a3)])==null?void 0x0:_0x3f0f0f[_0x50a785(0x519)])!=null?_0x433379:_0x99db31[_0x50a785(0x28d)]}],[_0x19613[_0x50a785(0x24b)],{'useClass':_0x19613[_0x50a785(0x1c7)]}],[_0x495bbc['ISnapshotServerService'],{'useClass':_0x99db31['SnapshotServerOverHTTPService']}],[_0x495bbc['IAuthzIoService'],{'useClass':_0x99db31[_0x50a785(0x3ee)]}],[_0x2369bd[_0x50a785(0x442)],{'useClass':_0x99db31['ImageIoService']}],[_0x99db31[_0x50a785(0x45c)]],[_0x99db31[_0x50a785(0x425)]],[_0x99db31[_0x50a785(0x430)]],[_0x582d09],[_0x5cab36]];(_0x33a6da=this[_0x50a785(0x2a3)])!=null&&_0x33a6da['enableSingleActiveInstanceLock']&&_0xc30a9c['push']([_0x110bf8,{'useClass':_0x251974}]),((_0xa303e0=this[_0x50a785(0x2a3)])==null?void 0x0:_0xa303e0[_0x50a785(0x36c)])==null||this['_config']['collaborationUniverTypes'][_0x50a785(0x18f)](_0x495bbc['UniverInstanceType']['UNIVER_SHEET'])?_0xc30a9c[_0x50a785(0x38a)]([_0x1712e2]):this[_0x50a785(0x2a3)][_0x50a785(0x36c)][_0x50a785(0x18f)](_0x495bbc['UniverInstanceType'][_0x50a785(0x438)])&&_0xc30a9c[_0x50a785(0x38a)]([_0x1f4c2a]),_0xc30a9c=_0x495bbc[_0x50a785(0x161)](_0xc30a9c,(_0x51cbe2=this[_0x50a785(0x2a3)])==null?void 0x0:_0x51cbe2['override']),_0xc30a9c[_0x50a785(0x14d)](_0x1cec6e=>_0xebce75['add'](_0x1cec6e)),_0xebce75[_0x50a785(0x4ce)](_0x19613[_0x50a785(0x3a5)])[_0x50a785(0x326)]({'priority':0x14,'interceptor':_0x19613['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0x50a785(0x34a)]();}[_0x4b1ec3(0x34a)](){const _0x47bc2b=_0x4b1ec3;var _0x3ab676,_0x3cf482;(_0x3ab676=this[_0x47bc2b(0x2a3)])!=null&&_0x3ab676[_0x47bc2b(0x46e)]||this['_injector'][_0x47bc2b(0x4ce)](_0x99db31[_0x47bc2b(0x4de)])[_0x47bc2b(0x477)](),(_0x3cf482=this[_0x47bc2b(0x2a3)])!=null&&_0x3cf482['enableAuthServer']&&this['_injector'][_0x47bc2b(0x4ce)](_0x390463);}},_0x125c51(_0x99db31['UniverCollaborationClientPlugin'],_0x4b1ec3(0x1e0),_0x29bceb),_0x99db31[_0x4b1ec3(0x490)]=_0x40c6ff([_0x495bbc[_0x4b1ec3(0x32e)](_0x2a1cda[_0x4b1ec3(0x188)]),_0x192a34(0x1,_0x495bbc[_0x4b1ec3(0x22c)]),_0x192a34(0x2,_0xff0938[_0x4b1ec3(0x292)](_0xff0938[_0x4b1ec3(0x22a)]))],_0x99db31[_0x4b1ec3(0x490)]),_0x99db31[_0x4b1ec3(0x44f)]=_0x43d000,_0x99db31[_0x4b1ec3(0x436)]=_0x339c6c,_0x99db31[_0x4b1ec3(0x499)]=_0x10840c,_0x99db31[_0x4b1ec3(0x334)]=_0x17c726,_0x99db31[_0x4b1ec3(0x3b0)]=_0x12e239,_0x99db31[_0x4b1ec3(0x35d)]=_0x30b255,_0x99db31['HEARTBEAT_INTERVAL_KEY']=_0x2d4fc5,_0x99db31[_0x4b1ec3(0x419)]=_0x137805,_0x99db31[_0x4b1ec3(0x3d7)]=_0x564797,_0x99db31[_0x4b1ec3(0x1f5)]=_0x3acd67,_0x99db31['LOCAL_CACHE_INTERVAL_KEY']=_0x514191,_0x99db31[_0x4b1ec3(0x4c0)]=_0x517cd6,_0x99db31['SEND_CHANGESET_TIMEOUT_KEY']=_0x432ad5,_0x99db31[_0x4b1ec3(0x241)]=_0xd3e7a0,_0x99db31[_0x4b1ec3(0x2ef)]=_0x53202c,_0x99db31[_0x4b1ec3(0x4a5)]=_0x36bc51,_0x99db31[_0x4b1ec3(0x16a)]=_0x20a6c8,_0x99db31[_0x4b1ec3(0x145)]=_0x387df7,_0x99db31[_0x4b1ec3(0x44d)]=_0x3ee14d,_0x99db31[_0x4b1ec3(0x197)]=_0xbba3c4,Object[_0x4b1ec3(0x356)](_0x99db31,Symbol[_0x4b1ec3(0x39e)],{'value':_0x4b1ec3(0x14c)});}));
1
+ function _0x45d3(_0x391e4d,_0x1502e6){const _0x22af79=_0x22af();return _0x45d3=function(_0x45d3d2,_0x30c311){_0x45d3d2=_0x45d3d2-0x7a;let _0x3d80aa=_0x22af79[_0x45d3d2];return _0x3d80aa;},_0x45d3(_0x391e4d,_0x1502e6);}(function(_0x39093a,_0x9dbea5){const _0x1bcee6=_0x45d3,_0x5779b1=_0x39093a();while(!![]){try{const _0x3f3425=-parseInt(_0x1bcee6(0x3b5))/0x1+parseInt(_0x1bcee6(0x259))/0x2+parseInt(_0x1bcee6(0x347))/0x3+parseInt(_0x1bcee6(0x1eb))/0x4*(-parseInt(_0x1bcee6(0x1ff))/0x5)+parseInt(_0x1bcee6(0x10c))/0x6+-parseInt(_0x1bcee6(0xd9))/0x7+parseInt(_0x1bcee6(0xcf))/0x8*(parseInt(_0x1bcee6(0x85))/0x9);if(_0x3f3425===_0x9dbea5)break;else _0x5779b1['push'](_0x5779b1['shift']());}catch(_0x43f8f0){_0x5779b1['push'](_0x5779b1['shift']());}}}(_0x22af,0x2259e),function(_0x31b466,_0xbe778e){const _0x146aa5=_0x45d3;typeof exports==_0x146aa5(0x1cc)&&typeof module<'u'?_0xbe778e(exports,require(_0x146aa5(0x3ca)),require('@univerjs/sheets'),require(_0x146aa5(0x25b)),require(_0x146aa5(0xa7)),require(_0x146aa5(0x205)),require('rxjs'),require('rxjs/operators'),require(_0x146aa5(0x22a)),require(_0x146aa5(0x3f7)),require(_0x146aa5(0x90)),require('@univerjs/engine-formula'),require('lodash/debounce'),require(_0x146aa5(0x436)),require('@univerjs/sheets-ui'),require('react'),require('clsx'),require(_0x146aa5(0x380))):typeof define==_0x146aa5(0x296)&&define[_0x146aa5(0xcd)]?define([_0x146aa5(0x427),_0x146aa5(0x3ca),'@univerjs/sheets',_0x146aa5(0x25b),_0x146aa5(0xa7),_0x146aa5(0x205),'rxjs',_0x146aa5(0x279),_0x146aa5(0x22a),_0x146aa5(0x3f7),_0x146aa5(0x90),_0x146aa5(0xc4),_0x146aa5(0x15e),_0x146aa5(0x436),_0x146aa5(0x369),_0x146aa5(0x412),'clsx',_0x146aa5(0x380)],_0xbe778e):(_0x31b466=typeof globalThis<'u'?globalThis:_0x31b466||self,_0xbe778e(_0x31b466['UniverCollaborationClient']={},_0x31b466[_0x146aa5(0x3eb)],_0x31b466['UniverSheets'],_0x31b466[_0x146aa5(0x1e2)],_0x31b466[_0x146aa5(0x306)],_0x31b466[_0x146aa5(0x84)],_0x31b466[_0x146aa5(0x105)],_0x31b466[_0x146aa5(0x105)][_0x146aa5(0x42e)],_0x31b466[_0x146aa5(0x37a)],_0x31b466[_0x146aa5(0x272)],_0x31b466[_0x146aa5(0x3cf)],_0x31b466['UniverEngineFormula'],_0x31b466['lodash'][_0x146aa5(0x21c)],_0x31b466[_0x146aa5(0x313)],_0x31b466['UniverSheetsUi'],_0x31b466[_0x146aa5(0x387)],_0x31b466[_0x146aa5(0x212)],_0x31b466[_0x146aa5(0x376)]));}(this,function(_0x538e2a,_0x28e235,_0x48cd6e,_0x48adea,_0x1d23ef,_0x4ecbea,_0x2820f3,_0x1086dc,_0x4e3741,_0x7b6974,_0x212652,_0x77499d,_0x51f7cc,_0x1c921f,_0x38caab,_0x188472,_0x44b7b0,_0x2602c2){'use strict';const _0x3f6827=_0x45d3;var _0x5875f5=Object[_0x3f6827(0x328)],_0x134167=(_0x502c12,_0x3d1cf4,_0x31f776)=>_0x3d1cf4 in _0x502c12?_0x5875f5(_0x502c12,_0x3d1cf4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31f776}):_0x502c12[_0x3d1cf4]=_0x31f776,_0x2b7d82=(_0x65ae7e,_0x29f0d3,_0x1c6994)=>_0x134167(_0x65ae7e,typeof _0x29f0d3!=_0x3f6827(0x113)?_0x29f0d3+'':_0x29f0d3,_0x1c6994);const _0x26cbfd='SNAPSHOT_SERVER_URL_KEY',_0x58bc58=_0x3f6827(0xa0),_0x19eb4b=_0x3f6827(0x3d3),_0x3e60d2=_0x3f6827(0x346),_0x1837a5='COLLAB_WEB_SOCKET_URL',_0x1fa7f8='ws://127.0.0.1:8000/universer-api/comb/connect',_0x5a9926='HEARTBEAT_INTERVAL',_0xedd382=_0x3f6827(0xec),_0x1bb57a=_0x3f6827(0x227),_0x3955b6=_0x3f6827(0x3ea),_0x461325=_0x3f6827(0x327),_0x49a23a=_0x3f6827(0x3b4),_0x3d0582=_0x3f6827(0x2cc),_0x4aaa4a='LOGIN_URL_KEY',_0x3d36d0='/universer-api/oidc/authpage';var _0x22d539=(_0x4d4b44=>(_0x4d4b44[_0x4d4b44[_0x3f6827(0x28f)]=0x0]=_0x3f6827(0x28f),_0x4d4b44[_0x4d4b44['OK']=0x1]='OK',_0x4d4b44[_0x4d4b44[_0x3f6827(0x2c7)]=0x2]='INTERNAL_ERROR',_0x4d4b44[_0x4d4b44[_0x3f6827(0x336)]=0x3]='PERMISSION_DENIED',_0x4d4b44[_0x4d4b44[_0x3f6827(0x214)]=0x4]=_0x3f6827(0x214),_0x4d4b44[_0x4d4b44[_0x3f6827(0x2ca)]=0x5]=_0x3f6827(0x2ca),_0x4d4b44[_0x4d4b44[_0x3f6827(0x379)]=0x6]=_0x3f6827(0x379),_0x4d4b44[_0x4d4b44[_0x3f6827(0x2f5)]=0x7]=_0x3f6827(0x2f5),_0x4d4b44[_0x4d4b44[_0x3f6827(0x229)]=0x8]='TOO_MANY_REQUESTS',_0x4d4b44[_0x4d4b44[_0x3f6827(0x13d)]=0x9]='COMPLETION_FINISHED',_0x4d4b44[_0x4d4b44[_0x3f6827(0x425)]=0x1389]=_0x3f6827(0x425),_0x4d4b44[_0x4d4b44[_0x3f6827(0x151)]=0x1771]=_0x3f6827(0x151),_0x4d4b44[_0x4d4b44[_0x3f6827(0x269)]=0x1772]=_0x3f6827(0x269),_0x4d4b44[_0x4d4b44[_0x3f6827(0x1ed)]=0x1b59]=_0x3f6827(0x1ed),_0x4d4b44[_0x4d4b44['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x4d4b44[_0x4d4b44[_0x3f6827(0x101)]=0x1b5b]=_0x3f6827(0x101),_0x4d4b44[_0x4d4b44[_0x3f6827(0x3bb)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x4d4b44[_0x4d4b44[_0x3f6827(0x2f6)]=0x1f41]=_0x3f6827(0x2f6),_0x4d4b44[_0x4d4b44[_0x3f6827(0xe3)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x4d4b44[_0x4d4b44[_0x3f6827(0x310)]=0x232a]=_0x3f6827(0x310),_0x4d4b44[_0x4d4b44[_0x3f6827(0x268)]=0x232b]=_0x3f6827(0x268),_0x4d4b44[_0x4d4b44[_0x3f6827(0x3c9)]=0x232c]=_0x3f6827(0x3c9),_0x4d4b44[_0x4d4b44['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x4d4b44[_0x4d4b44[_0x3f6827(0x440)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x4d4b44[_0x4d4b44[_0x3f6827(0x333)]=0x2712]=_0x3f6827(0x333),_0x4d4b44[_0x4d4b44[_0x3f6827(0x254)]=-0x1]=_0x3f6827(0x254),_0x4d4b44))(_0x22d539||{}),_0x2dcfa8=(_0x36cece=>(_0x36cece[_0x36cece['UNIVER_UNKNOWN']=0x0]=_0x3f6827(0x3e0),_0x36cece[_0x36cece[_0x3f6827(0x372)]=0x1]=_0x3f6827(0x372),_0x36cece[_0x36cece[_0x3f6827(0x33b)]=0x2]=_0x3f6827(0x33b),_0x36cece[_0x36cece[_0x3f6827(0x169)]=0x3]=_0x3f6827(0x169),_0x36cece[_0x36cece[_0x3f6827(0x254)]=-0x1]=_0x3f6827(0x254),_0x36cece))(_0x2dcfa8||{}),_0x1ca28b=(_0x320512=>(_0x320512[_0x320512[_0x3f6827(0xe9)]=0x0]=_0x3f6827(0xe9),_0x320512[_0x320512[_0x3f6827(0x100)]=0x1]=_0x3f6827(0x100),_0x320512[_0x320512[_0x3f6827(0xb3)]=0x2]='JOIN',_0x320512[_0x320512[_0x3f6827(0x32f)]=0x3]=_0x3f6827(0x32f),_0x320512[_0x320512[_0x3f6827(0x267)]=0x4]=_0x3f6827(0x267),_0x320512[_0x320512[_0x3f6827(0x173)]=0x5]=_0x3f6827(0x173),_0x320512[_0x320512[_0x3f6827(0x411)]=0x6]=_0x3f6827(0x411),_0x320512[_0x320512['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x320512))(_0x1ca28b||{}),_0x43193c=(_0x4b63d5=>(_0x4b63d5[_0x4b63d5[_0x3f6827(0x408)]=0x0]=_0x3f6827(0x408),_0x4b63d5[_0x4b63d5['OK']=0x1]='OK',_0x4b63d5[_0x4b63d5[_0x3f6827(0xb9)]=0x2]=_0x3f6827(0xb9),_0x4b63d5[_0x4b63d5[_0x3f6827(0x254)]=-0x1]=_0x3f6827(0x254),_0x4b63d5))(_0x43193c||{}),_0x382eb0=Object[_0x3f6827(0x328)],_0x1bc43a=Object['getOwnPropertyDescriptor'],_0x27a72d=(_0x2bbb0d,_0x36854f,_0x2f71b0,_0x4074ea)=>{for(var _0x5a1422=_0x4074ea>0x1?void 0x0:_0x4074ea?_0x1bc43a(_0x36854f,_0x2f71b0):_0x36854f,_0x4d784b=_0x2bbb0d['length']-0x1,_0x55b55b;_0x4d784b>=0x0;_0x4d784b--)(_0x55b55b=_0x2bbb0d[_0x4d784b])&&(_0x5a1422=(_0x4074ea?_0x55b55b(_0x36854f,_0x2f71b0,_0x5a1422):_0x55b55b(_0x5a1422))||_0x5a1422);return _0x4074ea&&_0x5a1422&&_0x382eb0(_0x36854f,_0x2f71b0,_0x5a1422),_0x5a1422;},_0xfb77eb=(_0x4fdb05,_0x2a09fb)=>(_0x75ca9d,_0x1b70f8)=>_0x2a09fb(_0x75ca9d,_0x1b70f8,_0x4fdb05);let _0x1d7fc4=class extends _0x28e235[_0x3f6827(0x29c)]{constructor(_0x54d4dc,_0x484119){const _0x454db2=_0x3f6827;super(),_0x2b7d82(this,_0x454db2(0x3d7),new Map()),(this['_univerInstanceService']=_0x54d4dc,this[_0x454db2(0x102)]=_0x484119,this[_0x454db2(0x41b)](_0x28e235[_0x454db2(0x23e)](_0x2820f3[_0x454db2(0x33e)](this[_0x454db2(0x156)][_0x454db2(0x2e4)](_0x28e235[_0x454db2(0x3af)]['UNIVER_SHEET'])[_0x454db2(0x2ef)](_0x1086dc[_0x454db2(0x25f)](_0x1d381d=>_0x1d381d[_0x454db2(0x322)]())),this[_0x454db2(0x156)][_0x454db2(0x2e4)](_0x28e235[_0x454db2(0x3af)][_0x454db2(0x372)])['pipe'](_0x1086dc[_0x454db2(0x25f)](_0x5071c9=>_0x5071c9[_0x454db2(0x322)]())),this[_0x454db2(0x156)]['getTypeOfUnitDisposed$'](_0x28e235[_0x454db2(0x3af)][_0x454db2(0x169)])[_0x454db2(0x2ef)](_0x1086dc[_0x454db2(0x25f)](_0x3c10f8=>_0x3c10f8[_0x454db2(0x322)]())))[_0x454db2(0x3cd)](_0x50277c=>this[_0x454db2(0x344)](_0x50277c)))));}[_0x3f6827(0x25a)](_0x551d4d){const _0x4503e8=_0x3f6827;this[_0x4503e8(0x102)][_0x4503e8(0x25a)](_0x551d4d);}['getCurrentUser'](){const _0x2f156a=_0x3f6827;return this[_0x2f156a(0x102)][_0x2f156a(0x30b)]();}[_0x3f6827(0x2a2)](_0x56f07e,_0xa877f4){const _0x1c00d3=_0x3f6827;let _0x54fda9=this[_0x1c00d3(0x3d7)][_0x1c00d3(0x450)](_0x56f07e);_0x54fda9||(_0x54fda9=new _0x7d902e(),this[_0x1c00d3(0x3d7)][_0x1c00d3(0x2b2)](_0x56f07e,_0x54fda9)),_0x54fda9[_0x1c00d3(0x2a2)](_0xa877f4);}[_0x3f6827(0x303)](_0x37d953,_0x470194){const _0x469b41=_0x3f6827,_0x5a834b=this[_0x469b41(0x3d7)][_0x469b41(0x450)](_0x37d953);_0x5a834b&&_0x5a834b['removeMember'](_0x470194);}[_0x3f6827(0x187)](_0xaa3f61){const _0x51edd7=_0x3f6827;return this[_0x51edd7(0x3d7)]['get'](_0xaa3f61);}[_0x3f6827(0x86)](_0xa21215,_0xdc89b4){const _0x44c6ba=_0x3f6827,_0x41ad50=this['_roomMembers'][_0x44c6ba(0x450)](_0xa21215);if(_0x41ad50)return _0x41ad50[_0x44c6ba(0x86)](_0xdc89b4);}[_0x3f6827(0x344)](_0x286c34){const _0x1e24b3=_0x3f6827,_0x45a12c=this[_0x1e24b3(0x3d7)][_0x1e24b3(0x450)](_0x286c34);_0x45a12c&&(_0x45a12c[_0x1e24b3(0x179)](),this[_0x1e24b3(0x3d7)][_0x1e24b3(0x458)](_0x286c34));}[_0x3f6827(0x179)](){const _0x2f46ba=_0x3f6827;this[_0x2f46ba(0x3d7)][_0x2f46ba(0x384)](_0x9e529b=>_0x9e529b[_0x2f46ba(0x179)]()),this[_0x2f46ba(0x3d7)][_0x2f46ba(0x18e)]();}};_0x1d7fc4=_0x27a72d([_0xfb77eb(0x0,_0x28e235[_0x3f6827(0x19b)]),_0xfb77eb(0x1,_0x28e235[_0x3f6827(0xb5)](_0x28e235[_0x3f6827(0x40b)]))],_0x1d7fc4);class _0x7d902e extends _0x28e235[_0x3f6827(0x29c)]{constructor(){const _0x4c8848=_0x3f6827;super(...arguments),_0x2b7d82(this,_0x4c8848(0xdb),new Map());}[_0x3f6827(0x179)](){const _0x1963ea=_0x3f6827;this[_0x1963ea(0xdb)][_0x1963ea(0x18e)]();}[_0x3f6827(0x2a2)](_0x516b06){const _0x5f1043=_0x3f6827;this[_0x5f1043(0xdb)][_0x5f1043(0x2b2)](_0x516b06[_0x5f1043(0x7f)],_0x516b06);}[_0x3f6827(0x303)](_0x18f67c){const _0x272526=_0x3f6827;this[_0x272526(0xdb)][_0x272526(0x458)](_0x18f67c);}[_0x3f6827(0x86)](_0xe67c49){const _0x108a92=_0x3f6827;return this['_members'][_0x108a92(0x450)](_0xe67c49);}}function _0x59fc50(_0x22e652){const _0x2d93fe=_0x3f6827;var _0x45f75c,_0x13ab52,_0x3d778e,_0x2313ee;const _0x5e2b40=_0x22e652[_0x2d93fe(0xa5)],_0x267658=JSON['parse'](_0x5e2b40);switch(_0x267658[_0x2d93fe(0x15d)]){case _0x1ca28b[_0x2d93fe(0x173)]:case _0x1ca28b[_0x2d93fe(0x100)]:{const _0x485c62=_0x267658[_0x2d93fe(0x1d7)];return{..._0x267658,'data':_0x485c62,'cmd':_0x267658[_0x2d93fe(0x15d)]};}case _0x1ca28b[_0x2d93fe(0xb3)]:{const _0x3482c3=_0x267658['joinRsp'];return{..._0x267658,'data':_0x3482c3,'cmd':_0x267658[_0x2d93fe(0x15d)]};}case _0x1ca28b[_0x2d93fe(0x411)]:{const _0x38cb6f=_0x267658[_0x2d93fe(0x3b9)];switch(_0x38cb6f[_0x2d93fe(0x12d)]){case _0x4ecbea[_0x2d93fe(0x1e6)][_0x2d93fe(0xda)]:return{..._0x267658,'data':{..._0x38cb6f,'data':(_0x45f75c=_0x38cb6f[_0x2d93fe(0x334)])==null?void 0x0:_0x45f75c['cs']},'cmd':_0x267658[_0x2d93fe(0x15d)]};case _0x4ecbea['CollaborationEvent']['CHANGESET_ACK']:return{..._0x267658,'data':{..._0x38cb6f,'data':(_0x13ab52=_0x38cb6f[_0x2d93fe(0x406)])==null?void 0x0:_0x13ab52['cs']},'cmd':_0x267658['cmd']};case _0x4ecbea[_0x2d93fe(0x1e6)][_0x2d93fe(0x209)]:return{..._0x267658,'data':{..._0x38cb6f,'data':(_0x3d778e=_0x38cb6f['newCsEvent'])==null?void 0x0:_0x3d778e['cs']},'cmd':_0x267658[_0x2d93fe(0x15d)]};case _0x4ecbea[_0x2d93fe(0x1e6)]['CHANGESET_REJ']:return{..._0x267658,'data':{..._0x38cb6f,'data':(_0x2313ee=_0x38cb6f[_0x2d93fe(0x129)])==null?void 0x0:_0x2313ee['cs']},'cmd':_0x267658[_0x2d93fe(0x15d)]};case _0x4ecbea['CollaborationEvent']['UPDATE_CURSOR']:return{..._0x267658,'data':{..._0x38cb6f,'data':_0x38cb6f[_0x2d93fe(0x1a0)]},'cmd':_0x267658[_0x2d93fe(0x15d)]};case _0x4ecbea[_0x2d93fe(0x1e6)]['USERS_ENTER']:return{..._0x267658,'data':{..._0x38cb6f,'data':_0x38cb6f[_0x2d93fe(0xc1)]},'cmd':_0x267658[_0x2d93fe(0x15d)]};case _0x4ecbea[_0x2d93fe(0x1e6)]['USERS_LEAVE']:return{..._0x267658,'data':{..._0x38cb6f,'data':_0x38cb6f['leaveEvent']},'cmd':_0x267658[_0x2d93fe(0x15d)]};case _0x4ecbea[_0x2d93fe(0x1e6)][_0x2d93fe(0x3b3)]:return{..._0x267658,'data':{..._0x38cb6f,'data':_0x38cb6f['liveShareNewHost']},'cmd':_0x267658[_0x2d93fe(0x15d)]};case _0x4ecbea[_0x2d93fe(0x1e6)][_0x2d93fe(0x417)]:case _0x4ecbea['CollaborationEvent']['LIVESHARE_OPERATION']:return{..._0x267658,'data':{..._0x38cb6f,'data':_0x38cb6f[_0x2d93fe(0x362)]},'cmd':_0x267658[_0x2d93fe(0x15d)]};case _0x4ecbea[_0x2d93fe(0x1e6)]['LIVESHARE_TERMINATE']:return{..._0x267658,'data':{..._0x38cb6f,'data':_0x38cb6f[_0x2d93fe(0x431)]},'cmd':_0x267658[_0x2d93fe(0x15d)]};case _0x4ecbea[_0x2d93fe(0x1e6)]['MSG_FOR_ERROR']:return{..._0x267658,'data':_0x38cb6f,'cmd':_0x267658[_0x2d93fe(0x15d)]};case _0x4ecbea[_0x2d93fe(0x1e6)][_0x2d93fe(0x1f5)]:return{..._0x267658,'data':{..._0x38cb6f,'data':_0x38cb6f[_0x2d93fe(0x241)]},'cmd':_0x267658[_0x2d93fe(0x15d)]};case _0x4ecbea[_0x2d93fe(0x1e6)]['UPDATE_PERMISSION_OBJ']:return{..._0x267658,'data':{..._0x38cb6f,'data':_0x38cb6f['updatePermissionObjEvent']},'cmd':_0x267658[_0x2d93fe(0x15d)]};case _0x4ecbea[_0x2d93fe(0x1e6)][_0x2d93fe(0x312)]:return{..._0x267658,'data':{..._0x38cb6f,'data':_0x38cb6f[_0x2d93fe(0x2b6)]},'cmd':_0x267658['cmd']};default:return _0x267658;}}default:return _0x267658;}}function _0xd9d8ca(_0x51fa74){const _0x318d1f=_0x3f6827;switch(_0x51fa74['cmd']){case _0x1ca28b[_0x318d1f(0x173)]:case _0x1ca28b[_0x318d1f(0x100)]:return JSON[_0x318d1f(0x2a0)]({'cmd':_0x51fa74[_0x318d1f(0x15d)],'routeKey':_0x51fa74['routeKey']});case _0x1ca28b['INGEST']:{let _0x359baf;switch(_0x51fa74[_0x318d1f(0xa5)][_0x318d1f(0x12d)]){case _0x4ecbea['CollaborationEvent'][_0x318d1f(0x34a)]:{_0x359baf={'eventID':_0x4ecbea['CollaborationEvent'][_0x318d1f(0x34a)],'updateCursorEvent':_0x51fa74['data'][_0x318d1f(0xa5)]};break;}case _0x4ecbea[_0x318d1f(0x1e6)][_0x318d1f(0x43e)]:{_0x359baf={'eventID':_0x4ecbea[_0x318d1f(0x1e6)][_0x318d1f(0x43e)],'leaveEvent':_0x51fa74[_0x318d1f(0xa5)][_0x318d1f(0xa5)]};break;}case _0x4ecbea[_0x318d1f(0x1e6)][_0x318d1f(0x1b6)]:{_0x359baf={'eventID':_0x4ecbea[_0x318d1f(0x1e6)][_0x318d1f(0x1b6)],'joinEvent':_0x51fa74[_0x318d1f(0xa5)][_0x318d1f(0xa5)]};break;}case _0x4ecbea[_0x318d1f(0x1e6)][_0x318d1f(0x3b3)]:{_0x359baf={'eventID':_0x4ecbea[_0x318d1f(0x1e6)][_0x318d1f(0x3b3)],'liveShareNewHost':_0x51fa74[_0x318d1f(0xa5)][_0x318d1f(0xa5)]};break;}case _0x4ecbea[_0x318d1f(0x1e6)]['LIVESHARE_OPERATION']:{_0x359baf={'eventID':_0x4ecbea[_0x318d1f(0x1e6)][_0x318d1f(0x2dd)],'liveShareOperation':_0x51fa74[_0x318d1f(0xa5)][_0x318d1f(0xa5)]};break;}case _0x4ecbea[_0x318d1f(0x1e6)][_0x318d1f(0x1a8)]:{_0x359baf={'eventID':_0x4ecbea[_0x318d1f(0x1e6)][_0x318d1f(0x1a8)],'liveShareTerminate':_0x51fa74[_0x318d1f(0xa5)][_0x318d1f(0xa5)]};break;}case _0x4ecbea[_0x318d1f(0x1e6)][_0x318d1f(0x16f)]:{_0x359baf={'eventID':_0x4ecbea['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x51fa74[_0x318d1f(0xa5)]['data']};break;}case _0x4ecbea[_0x318d1f(0x1e6)][_0x318d1f(0x417)]:{_0x359baf={'eventID':_0x4ecbea['CollaborationEvent'][_0x318d1f(0x417)]};break;}default:_0x359baf={'eventID':_0x51fa74[_0x318d1f(0xa5)]['eventID']};}return JSON['stringify']({'cmd':_0x51fa74['cmd'],'routeKey':_0x51fa74[_0x318d1f(0xd0)],'collaMsg':_0x359baf});}case _0x1ca28b[_0x318d1f(0xb3)]:return JSON[_0x318d1f(0x2a0)]({'cmd':_0x51fa74[_0x318d1f(0x15d)],'routeKey':_0x51fa74[_0x318d1f(0xd0)],'joinReq':_0x51fa74[_0x318d1f(0xa5)]});case _0x1ca28b[_0x318d1f(0x32f)]:return JSON['stringify']({'cmd':_0x51fa74[_0x318d1f(0x15d)],'routeKey':_0x51fa74[_0x318d1f(0xd0)],'leaveReq':_0x51fa74[_0x318d1f(0xa5)]});default:throw new Error(_0x318d1f(0x3fe));}}var _0x3aacdd=Object['defineProperty'],_0x2e72aa=Object[_0x3f6827(0x1cb)],_0x281a52=(_0x32d181,_0x27bc51,_0x148bc2,_0x110835)=>{const _0x5481d7=_0x3f6827;for(var _0x4337ea=_0x110835>0x1?void 0x0:_0x110835?_0x2e72aa(_0x27bc51,_0x148bc2):_0x27bc51,_0x165ceb=_0x32d181[_0x5481d7(0x16b)]-0x1,_0x2c89b0;_0x165ceb>=0x0;_0x165ceb--)(_0x2c89b0=_0x32d181[_0x165ceb])&&(_0x4337ea=(_0x110835?_0x2c89b0(_0x27bc51,_0x148bc2,_0x4337ea):_0x2c89b0(_0x4337ea))||_0x4337ea);return _0x110835&&_0x4337ea&&_0x3aacdd(_0x27bc51,_0x148bc2,_0x4337ea),_0x4337ea;},_0x5ceb23=(_0x4e6088,_0x10b1cd)=>(_0x45f1a8,_0x2bf5da)=>_0x10b1cd(_0x45f1a8,_0x2bf5da,_0x4e6088);const _0x51e16b=_0x28e235[_0x3f6827(0x236)](_0x3f6827(0x1b8));function _0x248cac(_0x53cdac,_0x5a993a,_0x59dc05){const _0x35fc97=_0x3f6827;return _0x53cdac+'/'+_0x5a993a+_0x35fc97(0x1a6)+_0x59dc05+'/new_changes';}_0x538e2a[_0x3f6827(0x194)]=class{constructor(_0x39ae02,_0x1c2834,_0x5a985c,_0x4bab15,_0x49c4f1){const _0x3c1c5a=_0x3f6827;this[_0x3c1c5a(0x2d1)]=_0x39ae02,this['_ws']=_0x1c2834,this[_0x3c1c5a(0x381)]=_0x5a985c,this[_0x3c1c5a(0x1af)]=_0x4bab15,this[_0x3c1c5a(0x3d9)]=_0x49c4f1;}[_0x3f6827(0x198)](_0x57f354){const _0x3481d5=_0x3f6827,_0x27200b=this[_0x3481d5(0x291)][_0x3481d5(0x198)](_0x57f354);if(!_0x27200b)throw new Error(_0x3481d5(0x3c3));const _0x1ed70e=new _0x28e235[(_0x3481d5(0x166))](),_0x2ebbbd=new _0x2820f3[(_0x3481d5(0xa8))]();_0x1ed70e[_0x3481d5(0x2fd)](_0x28e235['toDisposable'](_0x27200b[_0x3481d5(0x87)]['subscribe'](_0xbeedd4=>_0x2ebbbd[_0x3481d5(0x18d)](_0xbeedd4)))),_0x1ed70e[_0x3481d5(0x2fd)](_0x28e235[_0x3481d5(0x23e)](()=>_0x2ebbbd[_0x3481d5(0x35b)]()));const _0x33c7e3=new _0x2820f3[(_0x3481d5(0xa8))]();_0x1ed70e[_0x3481d5(0x2fd)](_0x28e235['toDisposable'](_0x27200b['error$'][_0x3481d5(0x3cd)](_0x239966=>_0x33c7e3['next'](_0x239966)))),_0x1ed70e['add'](_0x28e235[_0x3481d5(0x23e)](()=>_0x33c7e3['complete']()));const _0x3116eb=new _0x2820f3[(_0x3481d5(0xa8))]();_0x1ed70e['add'](_0x28e235[_0x3481d5(0x23e)](_0x27200b[_0x3481d5(0x2ed)]['subscribe'](_0x557140=>{const _0x23ddea=_0x3481d5,_0x5aca9e=_0x59fc50(_0x557140);_0x3116eb[_0x23ddea(0x18d)](_0x5aca9e);}))),_0x1ed70e[_0x3481d5(0x2fd)](_0x28e235[_0x3481d5(0x23e)](()=>_0x3116eb[_0x3481d5(0x35b)]()));const _0x53d96b=()=>{const _0x10f8e5=_0x3481d5;_0x33c7e3[_0x10f8e5(0x18d)](new Event(_0x10f8e5(0x25c))),_0x2ebbbd[_0x10f8e5(0x18d)](new CloseEvent(_0x10f8e5(0x25c))),_0x49b579[_0x10f8e5(0x34e)]();},_0x49b579={'memberID':'','close$':_0x2ebbbd[_0x3481d5(0x1d2)](),'error$':_0x33c7e3[_0x3481d5(0x1d2)](),'open$':_0x27200b[_0x3481d5(0x3db)],'message$':_0x3116eb[_0x3481d5(0x1d2)](),'send':_0x576250=>{const _0x18d84c=_0x3481d5;if(_0x576250[_0x18d84c(0x15d)]===_0x1ca28b[_0x18d84c(0x267)]){if(_0x576250[_0x18d84c(0xa5)][_0x18d84c(0x12d)]===_0x4ecbea[_0x18d84c(0x1e6)][_0x18d84c(0x206)]){this[_0x18d84c(0x2c3)](_0x49b579,_0x576250[_0x18d84c(0xa5)])['catch'](_0x1e6628=>{const _0x138f8d=_0x18d84c;this[_0x138f8d(0x1af)][_0x138f8d(0x270)](_0x1e6628),_0x53d96b();});return;}if(_0x576250[_0x18d84c(0xa5)]['eventID']===_0x4ecbea['CollaborationEvent'][_0x18d84c(0x308)]){const _0x2ee279=_0x576250[_0x18d84c(0xa5)];this[_0x18d84c(0xc3)](_0x2ee279)[_0x18d84c(0xd6)](_0x2d96af=>{const _0x25e771=_0x18d84c;_0x3116eb[_0x25e771(0x18d)]({'cmd':_0x1ca28b[_0x25e771(0x411)],'code':_0x43193c['OK'],'routeKey':_0x2ee279[_0x25e771(0xa5)][_0x25e771(0x27d)],'routeType':'','data':{'eventID':_0x4ecbea[_0x25e771(0x1e6)][_0x25e771(0x2a4)],'data':{'changesets':_0x2d96af}}});})['catch'](_0x379b4a=>{this['_logService']['error'](_0x379b4a),_0x53d96b();});return;}}_0x27200b['send'](_0xd9d8ca(_0x576250));},'close':()=>{_0x27200b['close'](),_0x1ed70e['dispose']();}};return _0x49b579;}async[_0x3f6827(0x2c3)](_0x163230,_0x9a6241){const _0x2f9a54=_0x3f6827;var _0x2ee956;const {unitType:_0x430ae7,unitID:_0x51fa03,changeset:_0x71d9ba}=_0x9a6241[_0x2f9a54(0xa5)],_0x54ff63={'unitID':_0x51fa03,'memberID':_0x163230[_0x2f9a54(0x7f)],'type':_0x430ae7,'changeset':_0x4ecbea[_0x2f9a54(0x43a)](_0x71d9ba)},_0x4f213e=_0x248cac((_0x2ee956=this[_0x2f9a54(0x381)][_0x2f9a54(0x457)](_0x49a23a))!=null?_0x2ee956:_0x3d0582,_0x430ae7,_0x51fa03);try{await this[_0x2f9a54(0x2d1)][_0x2f9a54(0x314)](_0x4f213e,{'body':_0x54ff63});}catch(_0x552b11){throw this[_0x2f9a54(0x1af)][_0x2f9a54(0x270)](_0x2f9a54(0x230),_0x2f9a54(0x1a2)),_0x552b11;}}async[_0x3f6827(0xc3)](_0x23769d){const _0x1a2024=_0x3f6827,{unitID:_0xc4a093,from:_0x21d092,to:_0x460bb3,unitType:_0x49fa50}=_0x23769d[_0x1a2024(0xa5)];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0xc4a093,'type':_0x49fa50,'from':_0x21d092,'to':_0x460bb3}))['changesets'];}},_0x538e2a[_0x3f6827(0x194)]=_0x281a52([_0x5ceb23(0x0,_0x28e235[_0x3f6827(0xb5)](_0x7b6974['HTTPService'])),_0x5ceb23(0x1,_0x28e235[_0x3f6827(0xb5)](_0x7b6974[_0x3f6827(0xb2)])),_0x5ceb23(0x2,_0x28e235[_0x3f6827(0x115)]),_0x5ceb23(0x3,_0x28e235[_0x3f6827(0x40e)]),_0x5ceb23(0x4,_0x28e235['ISnapshotServerService'])],_0x538e2a[_0x3f6827(0x194)]);class _0x1a0991{constructor(){const _0x484589=_0x3f6827;_0x2b7d82(this,_0x484589(0x3be),new _0x2820f3[(_0x484589(0xa8))]()),_0x2b7d82(this,_0x484589(0x164),this[_0x484589(0x3be)]['asObservable']());}['onCommentUpdate'](_0x4fae38){const _0x164b77=_0x3f6827;this[_0x164b77(0x3be)][_0x164b77(0x18d)](_0x4fae38);}}var _0x132c8e=Object[_0x3f6827(0x328)],_0x755775=Object[_0x3f6827(0x1cb)],_0x4bcd70=(_0x42337b,_0x2ea344,_0x5cb1c0,_0x4e59e4)=>{const _0x5e55ef=_0x3f6827;for(var _0x2f2509=_0x4e59e4>0x1?void 0x0:_0x4e59e4?_0x755775(_0x2ea344,_0x5cb1c0):_0x2ea344,_0x1b2ac8=_0x42337b[_0x5e55ef(0x16b)]-0x1,_0xb02d77;_0x1b2ac8>=0x0;_0x1b2ac8--)(_0xb02d77=_0x42337b[_0x1b2ac8])&&(_0x2f2509=(_0x4e59e4?_0xb02d77(_0x2ea344,_0x5cb1c0,_0x2f2509):_0xb02d77(_0x2f2509))||_0x2f2509);return _0x4e59e4&&_0x2f2509&&_0x132c8e(_0x2ea344,_0x5cb1c0,_0x2f2509),_0x2f2509;},_0x1e9aee=(_0x4bd97a,_0x45d814)=>(_0x3519e5,_0x5318df)=>_0x45d814(_0x3519e5,_0x5318df,_0x4bd97a),_0x158ddb=(_0x341927=>(_0x341927[_0x341927[_0x3f6827(0x3bc)]=0x0]=_0x3f6827(0x3bc),_0x341927[_0x341927[_0x3f6827(0x24f)]=0x1]=_0x3f6827(0x24f),_0x341927[_0x341927[_0x3f6827(0x353)]=0x2]='OFFLINE',_0x341927[_0x341927['ONLINE']=0x3]=_0x3f6827(0x27e),_0x341927))(_0x158ddb||{});_0x538e2a[_0x3f6827(0x224)]=class extends _0x28e235['RxDisposable']{constructor(_0x469a99,_0x345224,_0x3f0fdc,_0x1ca4b7,_0x2303b5,_0x16e3e5,_0x5f51a5,_0x5d8fa4,_0x429a8b){const _0x5bfaea=_0x3f6827;super(),_0x2b7d82(this,_0x5bfaea(0x3f5),new _0x2820f3[(_0x5bfaea(0x371))](0x0)),_0x2b7d82(this,_0x5bfaea(0xe4),this[_0x5bfaea(0x3f5)]['asObservable']()),_0x2b7d82(this,_0x5bfaea(0xa2),new _0x2820f3[(_0x5bfaea(0xa8))]()),_0x2b7d82(this,'event$',this[_0x5bfaea(0xa2)]['asObservable']()),_0x2b7d82(this,_0x5bfaea(0x30e)),_0x2b7d82(this,_0x5bfaea(0x1c1)),_0x2b7d82(this,_0x5bfaea(0x39c)),(this['_unitID']=_0x469a99,this[_0x5bfaea(0x1af)]=_0x3f0fdc,this['_beforeCloseService']=_0x1ca4b7,this[_0x5bfaea(0x233)]=_0x2303b5,this[_0x5bfaea(0x381)]=_0x16e3e5,this[_0x5bfaea(0x424)]=_0x5f51a5,this[_0x5bfaea(0x13c)]=_0x5d8fa4,this[_0x5bfaea(0x1f3)]=_0x429a8b,_0x345224[_0x5bfaea(0x2ef)](_0x1086dc[_0x5bfaea(0xeb)](this['dispose$']))[_0x5bfaea(0x3cd)](_0x48faca=>{const _0x2e2b52=_0x5bfaea;var _0x166e0b;typeof _0x48faca>'u'||(this['_socket']=_0x48faca,_0x48faca?(this[_0x2e2b52(0x128)](_0x48faca),this[_0x2e2b52(0x1c1)]=this[_0x2e2b52(0x30e)]['message$'][_0x2e2b52(0x3cd)](_0x5cf336=>{const _0x471057=_0x2e2b52;_0x5cf336[_0x471057(0xd0)]===this[_0x471057(0x1f7)]&&this[_0x471057(0x222)](_0x5cf336);})):(this[_0x2e2b52(0x3f5)][_0x2e2b52(0x18d)](0x2),(_0x166e0b=this[_0x2e2b52(0x1c1)])==null||_0x166e0b[_0x2e2b52(0x117)](),this[_0x2e2b52(0x1c1)]=null));}),this[_0x5bfaea(0x41b)](this[_0x5bfaea(0x1c0)][_0x5bfaea(0x220)](()=>{const _0x54626d=_0x5bfaea;var _0x4c3650;(_0x4c3650=this[_0x54626d(0x30e)])==null||_0x4c3650[_0x54626d(0x447)]({'cmd':_0x1ca28b[_0x54626d(0x32f)],'data':{'roomID':this[_0x54626d(0x1f7)]}});})));}get['sessionStatus'](){return this['_sessionStatus$']['getValue']();}['getMemberID'](){const _0x5b9d5e=_0x3f6827;var _0x5b766d,_0xedd753;return(_0xedd753=(_0x5b766d=this[_0x5b9d5e(0x30e)])==null?void 0x0:_0x5b766d[_0x5b9d5e(0x7f)])!=null?_0xedd753:null;}[_0x3f6827(0x179)](){const _0x5351e0=_0x3f6827;super[_0x5351e0(0x179)](),this[_0x5351e0(0x388)]['next'](),this['dispose$']['complete']();}[_0x3f6827(0x34e)](){const _0x3148fb=_0x3f6827;var _0x4e18ab,_0x509c5d;(_0x4e18ab=this['_socket'])==null||_0x4e18ab[_0x3148fb(0x447)]({'cmd':_0x1ca28b[_0x3148fb(0x32f)],'data':{'roomID':this[_0x3148fb(0x1f7)]}}),this[_0x3148fb(0xa2)][_0x3148fb(0x35b)](),this['_sessionStatus$']['complete'](),(_0x509c5d=this[_0x3148fb(0x30e)])==null||_0x509c5d[_0x3148fb(0x34e)](),this[_0x3148fb(0x179)]();}[_0x3f6827(0x222)](_0x59f016){const _0x51cedf=_0x3f6827;_0x59f016[_0x51cedf(0x15d)]===_0x1ca28b[_0x51cedf(0xb3)]?this[_0x51cedf(0x407)](_0x59f016):_0x59f016[_0x51cedf(0x15d)]===_0x1ca28b[_0x51cedf(0x411)]&&this['_onRecvEvent'](_0x59f016);}[_0x3f6827(0x128)](_0x3cb913){const _0x4adc8f=_0x3f6827;this[_0x4adc8f(0x3f5)][_0x4adc8f(0x18d)](0x1),_0x3cb913[_0x4adc8f(0x447)]({'cmd':_0x1ca28b[_0x4adc8f(0xb3)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x4adc8f(0x1f7)]}]}});}['_onJoinRoomEvent'](_0x521dae){const _0x19f507=_0x3f6827;var _0x82f435;if(_0x521dae[_0x19f507(0x168)]===_0x43193c[_0x19f507(0xb9)]){this[_0x19f507(0x233)]['show']({'type':_0x48adea['MessageType'][_0x19f507(0x98)],'content':this[_0x19f507(0x424)]['t'](_0x19f507(0x396))}),this[_0x19f507(0x3f5)]['next'](0x2);return;}this[_0x19f507(0x3f5)][_0x19f507(0x18d)](0x3);const _0x32ab84=(_0x82f435=_0x521dae[_0x19f507(0xa5)]['roomInfos'][this[_0x19f507(0x1f7)]])==null?void 0x0:_0x82f435[_0x19f507(0x133)];_0x32ab84&&_0x32ab84[_0x19f507(0x384)](_0x1c57d1=>this[_0x19f507(0x13c)][_0x19f507(0x2a2)](this[_0x19f507(0x1f7)],_0x1c57d1));}[_0x3f6827(0x1d0)](_0x1af987){const _0x4cc2cf=_0x3f6827;try{const _0x362747=_0x1af987['data'];switch(_0x362747['eventID']){case _0x4ecbea[_0x4cc2cf(0x1e6)][_0x4cc2cf(0x1b6)]:this[_0x4cc2cf(0x2a7)](_0x362747),this[_0x4cc2cf(0xa2)][_0x4cc2cf(0x18d)](_0x362747);break;case _0x4ecbea[_0x4cc2cf(0x1e6)][_0x4cc2cf(0x43e)]:this[_0x4cc2cf(0x3d2)](_0x362747),this[_0x4cc2cf(0xa2)][_0x4cc2cf(0x18d)](_0x362747);break;case _0x4ecbea[_0x4cc2cf(0x1e6)][_0x4cc2cf(0x3bd)]:this[_0x4cc2cf(0x2b1)](),this[_0x4cc2cf(0xa2)][_0x4cc2cf(0x18d)](_0x362747);break;case _0x4ecbea[_0x4cc2cf(0x1e6)][_0x4cc2cf(0x188)]:this[_0x4cc2cf(0x1af)][_0x4cc2cf(0x270)](_0x4cc2cf(0xf1)+JSON[_0x4cc2cf(0x2a0)](_0x362747)),this[_0x4cc2cf(0xa2)][_0x4cc2cf(0x18d)](_0x362747);break;case _0x4ecbea[_0x4cc2cf(0x1e6)][_0x4cc2cf(0x1f5)]:this['_commentService'][_0x4cc2cf(0x397)](_0x362747['data']),this['_event$']['next'](_0x362747);break;default:this[_0x4cc2cf(0xa2)]['next'](_0x362747);}}catch(_0x5a82d0){this[_0x4cc2cf(0x1af)][_0x4cc2cf(0x270)](_0x5a82d0,_0x1af987);}}['_onUserJoin'](_0x1f7d34){const _0xb98ab1=_0x3f6827;this[_0xb98ab1(0x13c)][_0xb98ab1(0x2a2)](this[_0xb98ab1(0x1f7)],_0x1f7d34[_0xb98ab1(0xa5)]);}['_onUserLeave'](_0x240a84){const _0x50c781=_0x3f6827;this[_0x50c781(0x13c)][_0x50c781(0x303)](this[_0x50c781(0x1f7)],_0x240a84[_0x50c781(0xa5)][_0x50c781(0x7f)]);}async[_0x3f6827(0x447)](_0x5d9885,_0x57ace9){const _0x3f16e7=_0x3f6827;if(this[_0x3f16e7(0x2fc)]!==0x3||!this['_socket'])throw new Error(_0x3f16e7(0x154));try{_0x5d9885[_0x3f16e7(0x12d)]===_0x4ecbea[_0x3f16e7(0x1e6)][_0x3f16e7(0x209)]&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x3f16e7(0x30e)][_0x3f16e7(0x447)]({'cmd':_0x1ca28b[_0x3f16e7(0x267)],'routeKey':_0x57ace9,'routeType':'','data':_0x5d9885});}catch(_0x364f0c){this['_logService']['error'](_0x364f0c);}}[_0x3f6827(0x290)](){const _0x16ddcc=_0x3f6827;var _0x45293a;this[_0x16ddcc(0x39c)]=window[_0x16ddcc(0x38a)](()=>{const _0x1691b0=_0x16ddcc;this[_0x1691b0(0x39c)]=null,this[_0x1691b0(0x233)][_0x1691b0(0x226)]({'type':_0x48adea[_0x1691b0(0x157)][_0x1691b0(0x1e7)],'content':this[_0x1691b0(0x424)]['t'](_0x1691b0(0x15f))});},(_0x45293a=this[_0x16ddcc(0x381)][_0x16ddcc(0x457)](_0xedd382))!=null?_0x45293a:0x2710);}[_0x3f6827(0x2b1)](){const _0x190024=_0x3f6827;this[_0x190024(0x39c)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x190024(0x39c)]=null);}},_0x538e2a['CollaborationSession']=_0x4bcd70([_0x1e9aee(0x2,_0x28e235[_0x3f6827(0x40e)]),_0x1e9aee(0x3,_0x1d23ef['IBeforeCloseService']),_0x1e9aee(0x4,_0x1d23ef[_0x3f6827(0x89)]),_0x1e9aee(0x5,_0x28e235[_0x3f6827(0x115)]),_0x1e9aee(0x6,_0x28e235['Inject'](_0x28e235[_0x3f6827(0x3a0)])),_0x1e9aee(0x7,_0x28e235['Inject'](_0x1d7fc4)),_0x1e9aee(0x8,_0x28e235[_0x3f6827(0xb5)](_0x1a0991))],_0x538e2a[_0x3f6827(0x224)]),_0x538e2a[_0x3f6827(0x17b)]=class extends _0x28e235['Disposable']{constructor(_0x4ae49f,_0x1edf26,_0x28a052,_0x6ff081,_0x29f8d8,_0x429136){const _0x42bcb2=_0x3f6827;super(),_0x2b7d82(this,_0x42bcb2(0x185),new _0x2820f3[(_0x42bcb2(0x371))](void 0x0)),_0x2b7d82(this,_0x42bcb2(0x329),new Map()),_0x2b7d82(this,_0x42bcb2(0x148),new _0x2820f3[(_0x42bcb2(0x371))](0x0)),_0x2b7d82(this,_0x42bcb2(0x3f2),this[_0x42bcb2(0x148)]['asObservable']()),_0x2b7d82(this,'_socketReady',!0x1),_0x2b7d82(this,_0x42bcb2(0xb0)),_0x2b7d82(this,_0x42bcb2(0x1d5)),_0x2b7d82(this,_0x42bcb2(0x398)),_0x2b7d82(this,_0x42bcb2(0x283),0x0),(this['_injector']=_0x4ae49f,this[_0x42bcb2(0x424)]=_0x1edf26,this[_0x42bcb2(0x233)]=_0x28a052,this[_0x42bcb2(0x1af)]=_0x6ff081,this[_0x42bcb2(0x381)]=_0x29f8d8,this[_0x42bcb2(0x7a)]=_0x429136);}get[_0x3f6827(0x30e)](){const _0x1d45a1=_0x3f6827;return this[_0x1d45a1(0x185)][_0x1d45a1(0x13a)]();}['dispose'](){const _0xbfba0e=_0x3f6827;super[_0xbfba0e(0x179)](),this[_0xbfba0e(0x329)][_0xbfba0e(0x384)](_0x40cd71=>_0x40cd71[_0xbfba0e(0x179)]()),this[_0xbfba0e(0x329)]['clear'](),this['_status$'][_0xbfba0e(0x35b)]();}async[_0x3f6827(0x1b9)](_0x3ae4e2){const _0x92ec4=_0x3f6827;if(this['_sessions'][_0x92ec4(0x3c0)](_0x3ae4e2))return this[_0x92ec4(0x329)][_0x92ec4(0x450)](_0x3ae4e2);this[_0x92ec4(0x1f2)]();const _0x5a9bbe=this['_injector']['createInstance'](_0x538e2a[_0x92ec4(0x224)],_0x3ae4e2,this['_socket$'][_0x92ec4(0x1d2)]());return this['_sessions'][_0x92ec4(0x2b2)](_0x3ae4e2,_0x5a9bbe),_0x5a9bbe;}[_0x3f6827(0x246)](_0x14f87d){const _0x477536=_0x3f6827;var _0x41dc28;const _0x388a08=this[_0x477536(0x329)][_0x477536(0x450)](_0x14f87d);_0x388a08&&(this['_sessions'][_0x477536(0x458)](_0x14f87d),_0x388a08[_0x477536(0x34e)]()),this['_sessions']['size']||(_0x41dc28=this['_socket'])==null||_0x41dc28[_0x477536(0x34e)]();}['_createSocket'](){const _0xb926c8=_0x3f6827;var _0xe977ba;const _0xb69070=(_0xe977ba=this[_0xb926c8(0x381)][_0xb926c8(0x457)](_0x1837a5))!=null?_0xe977ba:_0x1fa7f8;return this[_0xb926c8(0x7a)][_0xb926c8(0x198)](_0xb69070);}[_0x3f6827(0x1f2)](){const _0x1c5640=_0x3f6827;try{const _0x534f76=this[_0x1c5640(0x2d5)]();if(_0x534f76){const _0xb44e8e=_0x534f76[_0x1c5640(0x447)];_0x534f76[_0x1c5640(0x447)]=_0x15da9d=>(this['_rescheduleHeartbeatEvent'](),_0xb44e8e[_0x1c5640(0x44f)](_0x534f76,[_0x15da9d])),_0x534f76['message$'][_0x1c5640(0x3cd)](_0x2d7b23=>this[_0x1c5640(0x7e)](_0x534f76,_0x2d7b23)),_0x534f76[_0x1c5640(0x12b)][_0x1c5640(0x2ef)](_0x1086dc[_0x1c5640(0x142)](0x1))[_0x1c5640(0x3cd)](_0x3fdbbf=>this[_0x1c5640(0x1af)]['error'](_0x1c5640(0x29e),_0x3fdbbf)),_0x534f76[_0x1c5640(0x3db)][_0x1c5640(0x2ef)](_0x1086dc[_0x1c5640(0x142)](0x1))[_0x1c5640(0x3cd)](()=>{const _0x5caa11=_0x1c5640;this[_0x5caa11(0x99)](_0x534f76);}),_0x534f76[_0x1c5640(0x87)]['pipe'](_0x1086dc[_0x1c5640(0x142)](0x1))[_0x1c5640(0x3cd)](_0x1b8540=>{const _0x257dff=_0x1c5640;this[_0x257dff(0x1af)]['debug']('[CollaborationSessionService]',_0x257dff(0xf6),_0x1b8540),this[_0x257dff(0x96)]();});}}catch(_0x51f94f){this[_0x1c5640(0x1af)]['error'](_0x51f94f),this[_0x1c5640(0x96)]();}}['_onConnectionOpen'](_0x321196){const _0x5799f8=_0x3f6827;this[_0x5799f8(0x1af)][_0x5799f8(0x293)](_0x5799f8(0x1fa),_0x5799f8(0xf9)),_0x321196[_0x5799f8(0x447)]({'cmd':_0x1ca28b[_0x5799f8(0x100)]}),this[_0x5799f8(0x35e)]();}[_0x3f6827(0x96)](){const _0x426e04=_0x3f6827;var _0x391080;this[_0x426e04(0x148)][_0x426e04(0x18d)](0x2),this[_0x426e04(0x185)][_0x426e04(0x18d)](null),this[_0x426e04(0x22e)](),this[_0x426e04(0x180)](),this['_socketReady']=!0x1,this['_retryCount']<((_0x391080=this[_0x426e04(0x381)][_0x426e04(0x457)](_0x3955b6))!=null?_0x391080:0x3)?(this[_0x426e04(0x324)](this[_0x426e04(0x283)]),this[_0x426e04(0x283)]+=0x1):this[_0x426e04(0x233)][_0x426e04(0x226)]({'type':_0x48adea[_0x426e04(0x157)]['Error'],'content':this['_localeService']['t'](_0x426e04(0x2cd))});}['_scheduleReconnection'](_0x26010b){const _0x30185a=_0x3f6827;var _0x487e98;const _0xf47782=((_0x487e98=this['_configService']['getConfig'](_0x1bb57a))!=null?_0x487e98:0x4e20)*0x2**_0x26010b;this['_messageService'][_0x30185a(0x226)]({'type':_0x48adea['MessageType'][_0x30185a(0x98)],'content':this[_0x30185a(0x424)]['t']('session.will-retry')}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x273740=_0x30185a;this[_0x273740(0x1f2)](),clearTimeout(this[_0x273740(0x398)]),this[_0x273740(0x398)]=null;},_0xf47782);}[_0x3f6827(0x35e)](){const _0x5d8cd1=_0x3f6827;var _0x2c8201;this[_0x5d8cd1(0x180)](),this[_0x5d8cd1(0xb0)]=setTimeout(()=>this[_0x5d8cd1(0x393)](),(_0x2c8201=this[_0x5d8cd1(0x381)][_0x5d8cd1(0x457)](_0x5a9926))!=null?_0x2c8201:0x7530);}[_0x3f6827(0x393)](){const _0x288cba=_0x3f6827;this[_0x288cba(0x30e)]['send']({'cmd':_0x1ca28b[_0x288cba(0x173)]}),this[_0x288cba(0xc9)]();}['_waitForHeartbeatResponse'](){const _0xe7df62=_0x3f6827;var _0x25e237;this[_0xe7df62(0x1d5)]=setTimeout(()=>this[_0xe7df62(0x96)](),(_0x25e237=this[_0xe7df62(0x381)][_0xe7df62(0x457)](_0xedd382))!=null?_0x25e237:0x2710);}['_onMessage'](_0x3cbc63,_0x4e4322){const _0x2894d6=_0x3f6827,{cmd:_0x435d0f}=_0x4e4322;_0x435d0f===_0x1ca28b[_0x2894d6(0x100)]&&!this[_0x2894d6(0x2bf)]&&(_0x3cbc63[_0x2894d6(0x7f)]=_0x4e4322[_0x2894d6(0xa5)][_0x2894d6(0x7f)],this[_0x2894d6(0x185)][_0x2894d6(0x18d)](_0x3cbc63),this[_0x2894d6(0x148)][_0x2894d6(0x18d)](0x3),this[_0x2894d6(0x2bf)]=!0x0),_0x435d0f===_0x1ca28b[_0x2894d6(0x173)]&&this[_0x2894d6(0x22e)](),this[_0x2894d6(0x35e)]();}[_0x3f6827(0x180)](){const _0x2b1192=_0x3f6827;this[_0x2b1192(0xb0)]!=null&&(clearTimeout(this[_0x2b1192(0xb0)]),this[_0x2b1192(0xb0)]=null);}[_0x3f6827(0x22e)](){const _0x1e76fe=_0x3f6827;this[_0x1e76fe(0x1d5)]!=null&&(clearTimeout(this[_0x1e76fe(0x1d5)]),this[_0x1e76fe(0x1d5)]=null);}},_0x538e2a[_0x3f6827(0x17b)]=_0x4bcd70([_0x1e9aee(0x0,_0x28e235[_0x3f6827(0xb5)](_0x28e235[_0x3f6827(0x3e8)])),_0x1e9aee(0x1,_0x28e235[_0x3f6827(0xb5)](_0x28e235[_0x3f6827(0x3a0)])),_0x1e9aee(0x2,_0x1d23ef['IMessageService']),_0x1e9aee(0x3,_0x28e235[_0x3f6827(0x40e)]),_0x1e9aee(0x4,_0x28e235[_0x3f6827(0x115)]),_0x1e9aee(0x5,_0x51e16b)],_0x538e2a['CollaborationSessionService']);var _0x8f3599=Object[_0x3f6827(0x328)],_0x2ed590=Object['getOwnPropertyDescriptor'],_0x4f55b4=(_0xdbe0a9,_0x24134e,_0x21309b,_0x2f3c23)=>{const _0x42a79b=_0x3f6827;for(var _0x57ec73=_0x2f3c23>0x1?void 0x0:_0x2f3c23?_0x2ed590(_0x24134e,_0x21309b):_0x24134e,_0x5445b4=_0xdbe0a9[_0x42a79b(0x16b)]-0x1,_0x406232;_0x5445b4>=0x0;_0x5445b4--)(_0x406232=_0xdbe0a9[_0x5445b4])&&(_0x57ec73=(_0x2f3c23?_0x406232(_0x24134e,_0x21309b,_0x57ec73):_0x406232(_0x57ec73))||_0x57ec73);return _0x2f3c23&&_0x57ec73&&_0x8f3599(_0x24134e,_0x21309b,_0x57ec73),_0x57ec73;},_0x180c33=(_0x3f7ce5,_0x4ce17a)=>(_0x40ff79,_0x5e9fed)=>_0x4ce17a(_0x40ff79,_0x5e9fed,_0x3f7ce5);_0x538e2a[_0x3f6827(0x249)]=class extends _0x28e235[_0x3f6827(0x29c)]{constructor(_0x5107b6,_0x4ec2ab,_0x46e784,_0x25f388,_0x3693de){const _0x2bd12a=_0x3f6827;super(),_0x2b7d82(this,_0x2bd12a(0x21a),new Map()),_0x2b7d82(this,'_saveTaskMap',new Map()),_0x2b7d82(this,'_disabled',!0x1),(this[_0x2bd12a(0x381)]=_0x5107b6,this[_0x2bd12a(0x1cd)]=_0x4ec2ab,this[_0x2bd12a(0x1c0)]=_0x46e784,this[_0x2bd12a(0x424)]=_0x25f388,this[_0x2bd12a(0x304)]=_0x3693de,this[_0x2bd12a(0x29a)]());}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x3f6827(0x39e)](){const _0x28985d=_0x3f6827;this[_0x28985d(0x91)]=!0x1;}[_0x3f6827(0x179)](){const _0x3f50d3=_0x3f6827;this[_0x3f50d3(0x2a9)]()[_0x3f50d3(0xd6)](()=>super[_0x3f50d3(0x179)]());}async[_0x3f6827(0x170)](_0x514895){const _0x3afc63=_0x3f6827;return this['_disabled']?null:this[_0x3afc63(0x1cd)][_0x3afc63(0x204)](_0x17c6ca(_0x514895));}async[_0x3f6827(0xad)](_0x50b725,_0x255c35){const _0x200951=_0x3f6827;return!!this[_0x200951(0x1cd)][_0x200951(0x351)](_0x50b725,_0x255c35);}['updateOfflineData'](_0x5454f5,_0x271d05,_0x53f251,_0x112dd7){const _0x5d35d8=_0x3f6827,_0x3a821b=this['_revisionService'][_0x5d35d8(0x41e)](_0x5454f5);this[_0x5d35d8(0x21a)]['set'](_0x5454f5,{'unitID':_0x5454f5,'type':_0x271d05,'awaitingChangeset':_0x53f251,'mutations':_0x112dd7,'rev':_0x3a821b}),this[_0x5d35d8(0x39f)][_0x5d35d8(0x3c0)](_0x5454f5)||this[_0x5d35d8(0x281)](_0x5454f5);}['_scheduleSaving'](_0x60d654){const _0x20c28f=_0x3f6827,_0x41f39c=this[_0x20c28f(0x1bc)]();_0x41f39c===0x0?this[_0x20c28f(0x27f)](_0x60d654):this[_0x20c28f(0x39f)][_0x20c28f(0x2b2)](_0x60d654,setTimeout(()=>this[_0x20c28f(0x27f)](_0x60d654),_0x41f39c));}[_0x3f6827(0x1bc)](){const _0x4ddf01=_0x3f6827;var _0x333ecd;return(_0x333ecd=this[_0x4ddf01(0x381)][_0x4ddf01(0x457)](_0x461325))!=null?_0x333ecd:0x3e8;}['_saveCache'](_0x461a26){const _0x44d432=_0x3f6827,_0x50f64c=this[_0x44d432(0x39f)][_0x44d432(0x450)](_0x461a26);return _0x50f64c!==void 0x0&&window['clearTimeout'](_0x50f64c),this[_0x44d432(0x1cd)][_0x44d432(0x351)](_0x17c6ca(_0x461a26),this[_0x44d432(0x21a)]['get'](_0x461a26))[_0x44d432(0xd6)](()=>this['_saveTaskMap']['delete'](_0x461a26));}async[_0x3f6827(0x2a9)](){const _0x2b9c51=_0x3f6827,_0x59cb18=[];this[_0x2b9c51(0x39f)][_0x2b9c51(0x384)]((_0x2e98dd,_0x2fd703)=>{const _0x384666=_0x2b9c51;window['clearTimeout'](_0x2e98dd),_0x59cb18[_0x384666(0x386)](this['_saveCache'](_0x2fd703)[_0x384666(0xd6)](()=>{const _0x1a36fd=_0x384666;this[_0x1a36fd(0x39f)][_0x1a36fd(0x458)](_0x2fd703);}));}),await Promise[_0x2b9c51(0x274)](_0x59cb18);}[_0x3f6827(0x29a)](){const _0x23d7e8=_0x3f6827;this[_0x23d7e8(0x41b)](this[_0x23d7e8(0x1c0)]['registerBeforeClose'](()=>{const _0x51accf=_0x23d7e8;if(this[_0x51accf(0x39f)][_0x51accf(0x26e)])return this[_0x51accf(0x424)]['t'](_0x51accf(0x2a8));}));}},_0x538e2a['LocalCacheService']=_0x4f55b4([_0x180c33(0x0,_0x28e235['IConfigService']),_0x180c33(0x1,_0x28e235[_0x3f6827(0x199)]),_0x180c33(0x2,_0x1d23ef[_0x3f6827(0x332)]),_0x180c33(0x3,_0x28e235[_0x3f6827(0xb5)](_0x28e235[_0x3f6827(0x3a0)])),_0x180c33(0x4,_0x28e235[_0x3f6827(0xb5)](_0x4ecbea[_0x3f6827(0x32c)]))],_0x538e2a[_0x3f6827(0x249)]);function _0x17c6ca(_0x35ff94){return'unit-cache-'+_0x35ff94;}const _0x38f70a=_0x28e235['createIdentifier'](_0x3f6827(0x316));var _0x52ad2f=(_0x4e245a=>(_0x4e245a[_0x4e245a[_0x3f6827(0x339)]=0x0]=_0x3f6827(0x339),_0x4e245a[_0x4e245a['OTHER_CLIENTS_EDITING']=0x1]=_0x3f6827(0x1c9),_0x4e245a))(_0x52ad2f||{});const _0x29f610=0x7530,_0x1cb5d1=_0x3f6827(0x240);class _0x52220b extends _0x28e235[_0x3f6827(0x29c)]{constructor(){const _0x974e01=_0x3f6827;super(),_0x2b7d82(this,_0x974e01(0x2cf),_0x28e235[_0x974e01(0x309)]['generateRandomId']()),_0x2b7d82(this,_0x974e01(0x320),new Set()),_0x2b7d82(this,_0x974e01(0x119),new Map()),_0x2b7d82(this,'_heartbeatTimer',null),_0x2b7d82(this,_0x974e01(0x2e5),new Map()),_0x2b7d82(this,_0x974e01(0x289),new Map()),this['_init']();}[_0x3f6827(0x179)](){const _0xd97d6=_0x3f6827;super[_0xd97d6(0x179)](),this[_0xd97d6(0x2e5)][_0xd97d6(0x384)]((_0x542ecc,_0x75073d)=>this[_0xd97d6(0x14f)](_0x75073d)),this['_heartbeatTimer']&&window[_0xd97d6(0x294)](this['_heartbeatTimer']);}[_0x3f6827(0x1f4)](_0x52771c){const _0x41f62c=_0x3f6827;return this['_ensureSubject'](_0x52771c)[_0x41f62c(0x2ef)](_0x2820f3['distinctUntilChanged']());}[_0x3f6827(0x454)](_0x512623){const _0x5ef0d9=_0x3f6827;this['_selfUnitIDs'][_0x5ef0d9(0x26e)]===0x0&&this[_0x5ef0d9(0xde)](),this[_0x5ef0d9(0x320)][_0x5ef0d9(0x2fd)](_0x512623),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x512623],'isForwarded':!0x1});}[_0x3f6827(0x1ea)](_0x21afad){const _0xc5bf7a=_0x3f6827;this['_selfUnitIDs'][_0xc5bf7a(0x458)](_0x21afad),this[_0xc5bf7a(0x320)]['size']===0x0&&this['_heartbeatTimer']&&window[_0xc5bf7a(0x294)](this[_0xc5bf7a(0x12e)]);}[_0x3f6827(0x3e4)](){const _0x183cf7=_0x3f6827;this['disposeWithMe'](_0x28e235[_0x183cf7(0x23e)](_0x2820f3[_0x183cf7(0x172)](window,_0x183cf7(0x350))['subscribe'](_0x276148=>{const _0x4d515e=_0x183cf7;if(_0x276148['key']!==_0x1cb5d1||!_0x276148[_0x4d515e(0x11b)])return;const _0x2412f3=JSON[_0x4d515e(0x9f)](_0x276148[_0x4d515e(0x11b)]);this[_0x4d515e(0x13e)](_0x2412f3);}))),window[_0x183cf7(0x1ad)](_0x183cf7(0x131),()=>this[_0x183cf7(0x81)]({'type':0x1,'memberID':this[_0x183cf7(0x2cf)],'unitIDs':Array['from'](this[_0x183cf7(0x320)])}));}['_handleEvent'](_0x52a246){const _0x275fae=_0x3f6827;switch(_0x52a246[_0x275fae(0x1ba)]){case 0x0:this[_0x275fae(0xe5)](_0x52a246);break;case 0x1:this[_0x275fae(0x37d)](_0x52a246);break;case 0x2:this[_0x275fae(0x124)](_0x52a246);break;}}['_handleJoinEvent'](_0x4e3af1){const _0x71979d=_0x3f6827,{unitIDs:_0x5161a7,memberID:_0x5dc3eb,isForwarded:_0x742f78}=_0x4e3af1;_0x5161a7[_0x71979d(0x384)](_0x4eac9e=>{const _0x105c8d=_0x71979d;if(!_0x742f78&&this[_0x105c8d(0x119)][_0x105c8d(0x3c0)](_0x4eac9e)&&this[_0x105c8d(0x121)](_0x4eac9e)[_0x105c8d(0x18d)](0x1),!this[_0x105c8d(0x119)][_0x105c8d(0x3c0)](_0x4eac9e)||!this['_unitOnClients']['get'](_0x4eac9e)[_0x105c8d(0x3c0)](_0x5dc3eb)){const _0x4eafed=this[_0x105c8d(0x119)][_0x105c8d(0x450)](_0x4eac9e)||new Set();_0x4eafed[_0x105c8d(0x2fd)](_0x5dc3eb),this[_0x105c8d(0x119)][_0x105c8d(0x2b2)](_0x4eac9e,_0x4eafed),this[_0x105c8d(0x1f6)](_0x5dc3eb);}}),_0x742f78||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x71979d(0x320)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x2cd691){const _0x196385=_0x3f6827;this[_0x196385(0x14f)](_0x2cd691);const _0x4df90d=window[_0x196385(0x38a)](()=>{const _0x5c3cf3=_0x196385;this[_0x5c3cf3(0x119)]['forEach'](_0x48cca3=>{const _0x47c390=_0x5c3cf3;_0x48cca3[_0x47c390(0x458)](_0x2cd691);});},_0x29f610*0x2);this[_0x196385(0x2e5)][_0x196385(0x2b2)](_0x2cd691,_0x4df90d);}[_0x3f6827(0x14f)](_0x5b01dd){const _0x2a8e2d=_0x3f6827;if(this['_clearOtherTimers'][_0x2a8e2d(0x3c0)](_0x5b01dd)){const _0x3cea29=this['_clearOtherTimers'][_0x2a8e2d(0x450)](_0x5b01dd);_0x3cea29&&window[_0x2a8e2d(0x442)](_0x3cea29),this[_0x2a8e2d(0x2e5)][_0x2a8e2d(0x2b2)](_0x5b01dd,null);}}[_0x3f6827(0x37d)](_0x3f919a){const _0xa307b7=_0x3f6827,{memberID:_0x1afad6,unitIDs:_0x124d0c}=_0x3f919a;_0x124d0c[_0xa307b7(0x384)](_0xb54f79=>{const _0x14065d=_0xa307b7;var _0x4ebe58;const _0x520680=this[_0x14065d(0x119)]['get'](_0xb54f79);_0x520680&&(_0x520680[_0x14065d(0x458)](_0x1afad6),(_0x4ebe58=this[_0x14065d(0x121)](_0xb54f79))==null||_0x4ebe58[_0x14065d(0x18d)](_0x520680[_0x14065d(0x26e)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x1afad6);}[_0x3f6827(0x124)](_0x53136c){const _0x3237ec=_0x3f6827;this['_scheduleClearOtherTimer'](_0x53136c[_0x3237ec(0x7f)]);}[_0x3f6827(0x81)](_0xb34539){const _0x4560c3=_0x3f6827;localStorage[_0x4560c3(0x351)](_0x1cb5d1,JSON[_0x4560c3(0x2a0)](_0xb34539));}[_0x3f6827(0xde)](){const _0x273941=_0x3f6827;this[_0x273941(0x12e)]=window['setInterval'](()=>{const _0x34577b=_0x273941;this[_0x34577b(0x81)]({'type':0x2,'memberID':this[_0x34577b(0x2cf)]});},_0x29f610);}[_0x3f6827(0x121)](_0x4d7134){const _0x180e0a=_0x3f6827;return this[_0x180e0a(0x289)]['has'](_0x4d7134)||this[_0x180e0a(0x289)][_0x180e0a(0x2b2)](_0x4d7134,new _0x2820f3[(_0x180e0a(0x371))](0x0)),this[_0x180e0a(0x289)][_0x180e0a(0x450)](_0x4d7134);}}var _0x2dc293=Object[_0x3f6827(0x328)],_0x375f3b=Object[_0x3f6827(0x1cb)],_0x53cadd=(_0x274d47,_0x1db238,_0x41c2a9,_0x1edc14)=>{const _0x471855=_0x3f6827;for(var _0x226ae3=_0x1edc14>0x1?void 0x0:_0x1edc14?_0x375f3b(_0x1db238,_0x41c2a9):_0x1db238,_0xd3f7e5=_0x274d47[_0x471855(0x16b)]-0x1,_0x164f2f;_0xd3f7e5>=0x0;_0xd3f7e5--)(_0x164f2f=_0x274d47[_0xd3f7e5])&&(_0x226ae3=(_0x1edc14?_0x164f2f(_0x1db238,_0x41c2a9,_0x226ae3):_0x164f2f(_0x226ae3))||_0x226ae3);return _0x1edc14&&_0x226ae3&&_0x2dc293(_0x1db238,_0x41c2a9,_0x226ae3),_0x226ae3;},_0x4fdd00=(_0x35c16a,_0x47f974)=>(_0x315e70,_0x3e82ef)=>_0x47f974(_0x315e70,_0x3e82ef,_0x35c16a);let _0x12799f=class{constructor(_0x4ad23a,_0x42449f){const _0x1c8c46=_0x3f6827;this[_0x1c8c46(0x3ef)]=_0x4ad23a,this[_0x1c8c46(0x2b0)]=_0x42449f;}['transformIMECache'](_0x12f056){const _0x384aa5=_0x3f6827;this['_transformUndoRedoStack'](_0x12f056),this[_0x384aa5(0x1e3)](_0x12f056);}[_0x3f6827(0x3ee)](_0x54368f){const _0x5b0945=_0x3f6827,_0x5778c8=this['_injector'][_0x5b0945(0x450)](_0x4e3741['IMEInputManagerService']),{redoCache:_0xc5ebc9}=_0x5778c8['getUndoRedoMutationParamsCache']();if(_0xc5ebc9['length']===0x0)return _0x54368f;let _0x3f08ea=_0x28e235['Tools'][_0x5b0945(0x2c4)](_0x54368f['mutations'][0x0]);for(let _0x5affc8=0x0;_0x5affc8<_0xc5ebc9[_0x5b0945(0x16b)];_0x5affc8++){const _0x509e1d={'id':_0x5b0945(0x255),'params':{..._0xc5ebc9[_0x5affc8]}},_0x40fce3=this['_transformService'][_0x5b0945(0x22f)](_0x3f08ea,_0x509e1d,!0x1);if(_0x4ecbea[_0x5b0945(0x426)](_0x40fce3))throw _0x40fce3[_0x5b0945(0x270)];_0x3f08ea=_0x40fce3[_0x5b0945(0x193)];}return{..._0x28e235['Tools'][_0x5b0945(0x2c4)](_0x54368f),'mutations':[_0x3f08ea]};}['_transformUndoRedoStack'](_0x5e17c9){const _0x4ead87=_0x3f6827,_0x35eb7e=this[_0x4ead87(0x3ef)]['get'](_0x4e3741['IMEInputManagerService']),{undoCache:_0x248b07,redoCache:_0x42fd9e}=_0x35eb7e['getUndoRedoMutationParamsCache']();if(_0x248b07[_0x4ead87(0x16b)]===0x0||_0x42fd9e['length']===0x0)return;const _0x1ee560=[],_0x222969=[];let _0x5dc08d=_0x28e235[_0x4ead87(0x309)][_0x4ead87(0x2c4)](_0x5e17c9[_0x4ead87(0x28b)][0x0]),_0x58a8ae=_0x28e235[_0x4ead87(0x309)][_0x4ead87(0x2c4)](_0x5e17c9[_0x4ead87(0x28b)][0x0]);for(let _0x188044=_0x248b07[_0x4ead87(0x16b)]-0x1;_0x188044>=0x0;_0x188044--){const _0x7f4f30={'id':'doc.mutation.rich-text-editing','params':{..._0x248b07[_0x188044]}},_0x19b5a2={'id':_0x4ead87(0x255),'params':{..._0x42fd9e[_0x188044]}},_0x4bcea7=this[_0x4ead87(0x2b0)][_0x4ead87(0x22f)](_0x5dc08d,_0x7f4f30,!0x1),_0x282623=this[_0x4ead87(0x2b0)][_0x4ead87(0x22f)](_0x58a8ae,_0x19b5a2,!0x1);if(_0x4ecbea['isTransformMutationFailure'](_0x4bcea7))throw _0x4bcea7[_0x4ead87(0x270)];if(_0x4ecbea[_0x4ead87(0x426)](_0x282623))throw _0x282623[_0x4ead87(0x270)];_0x1ee560[_0x4ead87(0x422)](_0x4bcea7[_0x4ead87(0x3c6)][_0x4ead87(0x38c)]),_0x222969[_0x4ead87(0x422)](_0x282623[_0x4ead87(0x3c6)][_0x4ead87(0x38c)]),_0x5dc08d=_0x4bcea7[_0x4ead87(0x193)],_0x58a8ae=_0x282623[_0x4ead87(0x193)];}_0x35eb7e[_0x4ead87(0x352)]({'undoCache':_0x1ee560,'redoCache':_0x222969});}[_0x3f6827(0x1e3)](_0x28ed6b){const _0x200df4=_0x3f6827,_0x5b54ee=this[_0x200df4(0x3ef)][_0x200df4(0x450)](_0x4e3741[_0x200df4(0x300)]),_0x301534=_0x5b54ee[_0x200df4(0x36c)]();if(_0x301534==null)return;const _0xca41d9=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x28ed6b[_0x200df4(0x27d)],'actions':null,'textRanges':[_0x301534]}}],_0x404d53=this[_0x200df4(0x2b0)][_0x200df4(0x2d3)](_0x28ed6b,_0xca41d9);if(!_0x4ecbea[_0x200df4(0x373)](_0x404d53))throw _0x404d53['error'];const _0x583b9f=_0x404d53[_0x200df4(0x3c6)][0x0][_0x200df4(0x38c)][_0x200df4(0x109)];Array[_0x200df4(0x410)](_0x583b9f)&&_0x583b9f[_0x200df4(0x16b)]&&_0x5b54ee[_0x200df4(0x24e)](_0x583b9f[0x0]);}};_0x12799f=_0x53cadd([_0x4fdd00(0x0,_0x28e235[_0x3f6827(0xb5)](_0x28e235[_0x3f6827(0x3e8)])),_0x4fdd00(0x1,_0x4ecbea[_0x3f6827(0x111)])],_0x12799f);var _0x1162ba=Object[_0x3f6827(0x328)],_0x2a356a=Object[_0x3f6827(0x1cb)],_0x90dbf8=(_0x53db3b,_0x349d67,_0x587e7e,_0x57956e)=>{const _0x28c7e7=_0x3f6827;for(var _0x4b459b=_0x57956e>0x1?void 0x0:_0x57956e?_0x2a356a(_0x349d67,_0x587e7e):_0x349d67,_0x2d1896=_0x53db3b[_0x28c7e7(0x16b)]-0x1,_0x5d506f;_0x2d1896>=0x0;_0x2d1896--)(_0x5d506f=_0x53db3b[_0x2d1896])&&(_0x4b459b=(_0x57956e?_0x5d506f(_0x349d67,_0x587e7e,_0x4b459b):_0x5d506f(_0x4b459b))||_0x4b459b);return _0x57956e&&_0x4b459b&&_0x1162ba(_0x349d67,_0x587e7e,_0x4b459b),_0x4b459b;},_0x1e61a6=(_0xa06086,_0x2f7ebf)=>(_0x1c0609,_0x24cba4)=>_0x2f7ebf(_0x1c0609,_0x24cba4,_0xa06086);let _0x1e8d42=class{constructor(_0x217a9c,_0x17109d){const _0x3a4007=_0x3f6827;this[_0x3a4007(0x3ef)]=_0x217a9c,this[_0x3a4007(0x2b0)]=_0x17109d;}['transformSelections'](_0x4e7e35){const _0x32dd68=_0x3f6827;var _0x56b957;const _0x538fdd=this[_0x32dd68(0x3ef)][_0x32dd68(0x450)](_0x4e3741['TextSelectionManagerService']),_0x59ff10=(_0x56b957=_0x538fdd[_0x32dd68(0x12a)]())!=null?_0x56b957:[],_0x177ab8=_0x59ff10==null?void 0x0:_0x59ff10[_0x32dd68(0x25f)](_0x4e3741['serializeTextRange']);if(_0x177ab8[_0x32dd68(0x16b)]===0x0)return;const _0x5b1567=[{'id':_0x32dd68(0x255),'params':{'unitId':_0x4e7e35[_0x32dd68(0x27d)],'actions':null,'textRanges':_0x177ab8}}],_0x1e0592=this[_0x32dd68(0x2b0)][_0x32dd68(0x2d3)](_0x4e7e35,_0x5b1567);if(!_0x4ecbea[_0x32dd68(0x373)](_0x1e0592))throw _0x1e0592[_0x32dd68(0x270)];const _0x644c1a=_0x1e0592['m2Prime'][0x0][_0x32dd68(0x38c)][_0x32dd68(0x109)];Array[_0x32dd68(0x410)](_0x644c1a)&&_0x644c1a[_0x32dd68(0x16b)]&&_0x538fdd['replaceTextRanges'](_0x644c1a,!0x1);}};_0x1e8d42=_0x90dbf8([_0x1e61a6(0x0,_0x28e235['Inject'](_0x28e235[_0x3f6827(0x3e8)])),_0x1e61a6(0x1,_0x4ecbea[_0x3f6827(0x111)])],_0x1e8d42);function _0x190221(_0x431572){const _0x130976=_0x3f6827;let _0x2d4a93='';for(const _0x1d83b5 of _0x431572){const {startOffset:_0x2bd92f,endOffset:_0x1eddaa,isActive:_0x5742ef}=_0x1d83b5;_0x2d4a93[_0x130976(0x16b)]&&(_0x2d4a93+=','),_0x2d4a93+=_0x2bd92f+':'+_0x1eddaa+':'+(_0x5742ef?'1':'0');}return _0x2d4a93;}function _0x1ea03f(_0x145f53){const _0x29d9f6=_0x3f6827,_0x6c0f98=_0x145f53[_0x29d9f6(0x357)](','),_0x8ccfe9=[];for(const _0x486578 of _0x6c0f98){const [_0x5280c5,_0x79571b,_0x5a23cc]=_0x486578[_0x29d9f6(0x357)](':');_0x8ccfe9['push']({'startOffset':Number(_0x5280c5),'endOffset':Number(_0x79571b),'collapsed':_0x5280c5===_0x79571b,'isActive':_0x5a23cc==='1'});}return _0x8ccfe9['some'](_0x3edf4f=>_0x3edf4f[_0x29d9f6(0xd8)])||(_0x8ccfe9[0x0][_0x29d9f6(0xd8)]=!0x0),_0x8ccfe9;}class _0x581849 extends _0x28e235['RxDisposable']{constructor(){const _0xf49db2=_0x3f6827;super(...arguments),_0x2b7d82(this,_0xf49db2(0x20a),new _0x2820f3[(_0xf49db2(0x371))](null)),_0x2b7d82(this,_0xf49db2(0x16d),this[_0xf49db2(0x20a)][_0xf49db2(0x1d2)]());}['syncEditingCollabCursor'](_0x1a18f0){const _0x4571f9=_0x3f6827,{unitID:_0x170329,memberID:_0x5f23a8,textRanges:_0xe01933}=_0x1a18f0,_0x4ea06a=_0x190221(_0xe01933),_0x32d740={'unitID':_0x170329,'memberID':_0x5f23a8,'selection':_0x4ea06a};this[_0x4571f9(0x20a)][_0x4571f9(0x18d)](_0x32d740);}}var _0x2703f8=Object[_0x3f6827(0x328)],_0x4d2131=Object[_0x3f6827(0x1cb)],_0x58ce56=(_0x63cdff,_0x29dd05,_0x4a330a,_0x517064)=>{for(var _0xaae4e7=_0x517064>0x1?void 0x0:_0x517064?_0x4d2131(_0x29dd05,_0x4a330a):_0x29dd05,_0x1c5644=_0x63cdff['length']-0x1,_0xcd8319;_0x1c5644>=0x0;_0x1c5644--)(_0xcd8319=_0x63cdff[_0x1c5644])&&(_0xaae4e7=(_0x517064?_0xcd8319(_0x29dd05,_0x4a330a,_0xaae4e7):_0xcd8319(_0xaae4e7))||_0xaae4e7);return _0x517064&&_0xaae4e7&&_0x2703f8(_0x29dd05,_0x4a330a,_0xaae4e7),_0xaae4e7;},_0x485f2e=(_0x5d67f8,_0x1ebe8e)=>(_0x4f0b74,_0x1578a3)=>_0x1ebe8e(_0x4f0b74,_0x1578a3,_0x5d67f8);function _0x4e55a3(_0x32ecb6){const _0x293c89=_0x3f6827,{unitID:_0x35ecf9,mutations:_0x582381}=_0x32ecb6;return{'unitId':_0x35ecf9,'subUnitId':_0x582381[0x0]['params'][_0x293c89(0x3b2)]};}let _0x187ea5=class{constructor(_0x24ee8b,_0x34f71d){const _0x19389a=_0x3f6827;this[_0x19389a(0x3ef)]=_0x24ee8b,this['_transformService']=_0x34f71d;}[_0x3f6827(0x354)](_0x282ab2){const _0x2164e5=_0x3f6827;var _0x35548a,_0x4c739a,_0x3a6554;const _0x386642=this[_0x2164e5(0x3ef)][_0x2164e5(0x450)](_0x48cd6e[_0x2164e5(0x38e)]),{unitId:_0xb34d4a,subUnitId:_0x58b952}=_0x4e55a3(_0x282ab2),_0x17b6a0=_0x386642[_0x2164e5(0x1b3)](_0xb34d4a)[_0x2164e5(0x12a)]();if(_0x17b6a0[_0x2164e5(0x16b)]===0x0||!_0xb34d4a||!_0x58b952)return;const _0x3f3506=[{'id':_0x48cd6e[_0x2164e5(0x26f)]['id'],'params':{'unitId':_0xb34d4a,'subUnitId':_0x58b952,'selections':_0x28e235['Tools'][_0x2164e5(0x2c4)](_0x17b6a0)}}],_0x4794d5=this[_0x2164e5(0x2b0)][_0x2164e5(0x2d3)](_0x282ab2,_0x3f3506);if(!_0x4ecbea[_0x2164e5(0x373)](_0x4794d5))throw _0x4794d5[_0x2164e5(0x270)];const _0x577be6=(_0x3a6554=(_0x4c739a=(_0x35548a=_0x4794d5[_0x2164e5(0x3c6)][0x0])==null?void 0x0:_0x35548a[_0x2164e5(0x38c)])==null?void 0x0:_0x4c739a[_0x2164e5(0x275)])!=null?_0x3a6554:_0x17b6a0;Array[_0x2164e5(0x410)](_0x577be6)&&_0x577be6[_0x2164e5(0x16b)]&&this[_0x2164e5(0x3ef)][_0x2164e5(0x450)](_0x28e235['ICommandService'])[_0x2164e5(0x203)](_0x48cd6e[_0x2164e5(0x26f)]['id'],{'unitId':_0xb34d4a,'subUnitId':_0x58b952,'selections':_0x577be6});}};_0x187ea5=_0x58ce56([_0x485f2e(0x0,_0x28e235[_0x3f6827(0xb5)](_0x28e235[_0x3f6827(0x3e8)])),_0x485f2e(0x1,_0x4ecbea[_0x3f6827(0x111)])],_0x187ea5);const _0x5db670=new Set([_0x48cd6e['InsertSheetMutation']['id']]);function _0x24e396(_0x488ae6,_0x52e133,_0x50fcfe,_0x14a7b7,_0x524123){const _0x559924=_0x3f6827;var _0x3c4d01,_0x35e7f3,_0x56d12b,_0x39ff62;const _0x41009c=[];for(const _0x5f43e8 of _0x488ae6)if(_0x5db670[_0x559924(0x3c0)](_0x5f43e8['id'])){if(_0x41009c[_0x559924(0x16b)]>0x0)break;_0x41009c[_0x559924(0x386)](_0x5f43e8);break;}else _0x41009c['push'](_0x5f43e8);const _0x5b7835=(_0x35e7f3=(_0x3c4d01=_0x524123['getCurrentUser']())==null?void 0x0:_0x3c4d01['userID'])!=null?_0x35e7f3:_0x559924(0x20d),_0x1803d1=(_0x39ff62=(_0x56d12b=_0x524123[_0x559924(0x30b)]())==null?void 0x0:_0x56d12b[_0x559924(0x7f)])!=null?_0x39ff62:_0x559924(0x20d);return{'changeset':{'unitID':_0x52e133,'type':_0x4ecbea[_0x559924(0x3b6)](_0x50fcfe['getUnitType'](_0x52e133)),'baseRev':_0x14a7b7[_0x559924(0x41e)](_0x52e133),'revision':0x0,'userID':_0x5b7835,'memberID':_0x1803d1,'mutations':_0x41009c},'pendingMutations':_0x488ae6[_0x559924(0x190)](_0x41009c[_0x559924(0x16b)])};}function _0x112ee6(_0x3dffe0,_0x4661b5,_0x21e76d,_0x42391d,_0x1e5e38){const _0x140457=_0x3f6827;var _0xe77bd7,_0x509b89,_0x36026c,_0x57472a;const _0x159afc=[_0x3dffe0['reduce']((_0x379f81,_0x4addf8)=>{const _0xddb440=_0x45d3;var _0x46f50e;const {id:_0x1f75e6}=_0x379f81,{id:_0x1f8fe3,type:_0x5ab1f6}=_0x4addf8,_0x4eab00=(_0x46f50e=_0x379f81['params'])!=null?_0x46f50e:{'actions':null},_0x190428=_0x4addf8[_0xddb440(0x38c)];if(_0x1f75e6&&_0x1f75e6!==_0x1f8fe3)throw new Error(_0xddb440(0x3b7)+_0x1f75e6+'\x20-\x20'+_0x1f8fe3+'.');return{..._0x379f81,'id':_0x1f8fe3,'type':_0x5ab1f6,'params':{'unitId':_0x190428[_0xddb440(0xdf)],'textRanges':_0x190428[_0xddb440(0x109)],'actions':_0x28e235['JSONX']['compose'](_0x4eab00[_0xddb440(0x97)],_0x190428['actions'])}};},{})],_0x4c29f9=(_0x509b89=(_0xe77bd7=_0x1e5e38[_0x140457(0x30b)]())==null?void 0x0:_0xe77bd7[_0x140457(0x19a)])!=null?_0x509b89:'unknown',_0x269183=(_0x57472a=(_0x36026c=_0x1e5e38[_0x140457(0x30b)]())==null?void 0x0:_0x36026c[_0x140457(0x7f)])!=null?_0x57472a:'unknown';return{'changeset':{'unitID':_0x4661b5,'type':_0x4ecbea[_0x140457(0x3b6)](_0x21e76d[_0x140457(0x3b1)](_0x4661b5)),'baseRev':_0x42391d['getCurrentRevForDocument'](_0x4661b5),'revision':0x0,'userID':_0x4c29f9,'memberID':_0x269183,'mutations':_0x159afc},'pendingMutations':[]};}var _0x5887ae=Object[_0x3f6827(0x328)],_0x2eff1a=Object[_0x3f6827(0x1cb)],_0x8fcfef=(_0xa9b00,_0x2e9b7a,_0x536d4f,_0x859eaf)=>{const _0x33f0d8=_0x3f6827;for(var _0x553675=_0x859eaf>0x1?void 0x0:_0x859eaf?_0x2eff1a(_0x2e9b7a,_0x536d4f):_0x2e9b7a,_0x5db4d5=_0xa9b00[_0x33f0d8(0x16b)]-0x1,_0x6d2186;_0x5db4d5>=0x0;_0x5db4d5--)(_0x6d2186=_0xa9b00[_0x5db4d5])&&(_0x553675=(_0x859eaf?_0x6d2186(_0x2e9b7a,_0x536d4f,_0x553675):_0x6d2186(_0x553675))||_0x553675);return _0x859eaf&&_0x553675&&_0x5887ae(_0x2e9b7a,_0x536d4f,_0x553675),_0x553675;},_0xbe7a74=(_0x104b11,_0x1aa05a)=>(_0x4b56fe,_0x45c6d3)=>_0x1aa05a(_0x4b56fe,_0x45c6d3,_0x104b11),_0x16cedf=(_0x36fd1a=>(_0x36fd1a['NOT_COLLAB']=_0x3f6827(0x2f7),_0x36fd1a[_0x3f6827(0x423)]='synced',_0x36fd1a[_0x3f6827(0x2e3)]=_0x3f6827(0x323),_0x36fd1a[_0x3f6827(0x159)]=_0x3f6827(0x367),_0x36fd1a[_0x3f6827(0x276)]=_0x3f6827(0x9b),_0x36fd1a[_0x3f6827(0x9c)]=_0x3f6827(0x122),_0x36fd1a[_0x3f6827(0x3dc)]=_0x3f6827(0x2dc),_0x36fd1a['OFFLINE']=_0x3f6827(0x110),_0x36fd1a))(_0x16cedf||{});class _0x682a68{constructor(_0x212322,_0x528cbe,_0x3bc0c4,_0x14bd64,_0x1b6784,_0x579a68,_0x24ab4a,_0x11cc74,_0x13bb2c){const _0x105f50=_0x3f6827;_0x2b7d82(this,_0x105f50(0x2c0),null),_0x2b7d82(this,_0x105f50(0x413),[]),(this['unitID']=_0x212322,this[_0x105f50(0x1ba)]=_0x528cbe,this[_0x105f50(0x31c)]=_0x1b6784,this['_commandService']=_0x579a68,this[_0x105f50(0x305)]=_0x24ab4a,this[_0x105f50(0x304)]=_0x11cc74,this['_localCacheService']=_0x13bb2c,this[_0x105f50(0x2c0)]=_0x3bc0c4,this['_pendingMutations']=_0x14bd64);}[_0x3f6827(0x2b8)](_0x430e7e){const _0x3efb9d=_0x3f6827,_0xd705f4=this[_0x3efb9d(0x304)][_0x3efb9d(0x41e)](this['unitID']);return _0x430e7e['revision']>_0xd705f4+0x1?(this['_handler'][_0x3efb9d(0x2ba)]({'from':_0xd705f4,'to':_0x430e7e['revision']-0x1}),!0x0):!0x1;}[_0x3f6827(0x2a1)](_0x3d4932){const _0x340bc2=_0x3f6827;this[_0x340bc2(0x305)]['transformUndoRedo'](this[_0x340bc2(0x27d)],_0x3d4932);}[_0x3f6827(0xef)](_0x38b3c5){const _0x4bc59e=_0x3f6827;var _0x427a41,_0x23ecbe;(_0x23ecbe=(_0x427a41=this[_0x4bc59e(0x31c)])[_0x4bc59e(0x2b4)])==null||_0x23ecbe['call'](_0x427a41,_0x38b3c5);}[_0x3f6827(0x1dd)](_0x274b27){const _0x2e9864=_0x3f6827;var _0x2257d7,_0x114a0c;return(_0x114a0c=(_0x2257d7=this['_handler'])[_0x2e9864(0x405)])==null?void 0x0:_0x114a0c[_0x2e9864(0x364)](_0x2257d7,_0x274b27);}[_0x3f6827(0x10e)](_0x35aef2){const _0x3529bd=_0x3f6827;var _0x5c80aa,_0x33846b,_0x420a1c;return(_0x420a1c=(_0x33846b=(_0x5c80aa=this[_0x3529bd(0x31c)])[_0x3529bd(0xd3)])==null?void 0x0:_0x33846b[_0x3529bd(0x364)](_0x5c80aa,_0x35aef2))!=null?_0x420a1c:_0x35aef2;}[_0x3f6827(0x2db)](_0xfb37b6){const _0x134117=_0x3f6827;var _0x2964d8,_0x4d6e80;if(this[_0x134117(0x1ba)]===_0x2dcfa8['UNIVER_DOC']){const {unitID:_0x414fd0,mutations:_0x3e384f,memberID:_0x540a30}=_0xfb37b6,_0x2d477d=_0x3e384f[0x0][_0x134117(0x38c)][_0x134117(0x109)];Array[_0x134117(0x410)](_0x2d477d)&&_0x2d477d['length']>0x0&&((_0x4d6e80=(_0x2964d8=this[_0x134117(0x31c)])[_0x134117(0x26a)])==null||_0x4d6e80[_0x134117(0x364)](_0x2964d8,{'unitID':_0x414fd0,'memberID':_0x540a30,'textRanges':_0x2d477d}));}}[_0x3f6827(0x2c9)](){const _0x30ca71=_0x3f6827;this[_0x30ca71(0x2a6)][_0x30ca71(0x418)](this[_0x30ca71(0x27d)],this[_0x30ca71(0x1ba)],this['_awaitingChangeset'],this[_0x30ca71(0x413)]);}[_0x3f6827(0x420)](){const _0x2c95b2=_0x3f6827;return this[_0x2c95b2(0x304)]['getCurrentRevForDocument'](this[_0x2c95b2(0x27d)]);}[_0x3f6827(0x1d1)](){const _0x39983d=_0x3f6827;this[_0x39983d(0x304)][_0x39983d(0x445)](this[_0x39983d(0x27d)]);}[_0x3f6827(0x1f9)](_0x3cb350){const _0x3d73a9=_0x3f6827;var _0xaa7e4a;const _0x34892b=this[_0x3d73a9(0x10e)](_0x3cb350),_0x45f8d2=_0x28e235[_0x3d73a9(0x3d8)](_0x34892b['mutations'],this[_0x3d73a9(0x11a)],{'fromCollab':!0x0});if(!_0x45f8d2[_0x3d73a9(0x1c8)])throw _0x45f8d2[_0x3d73a9(0x270)]instanceof Error?_0x45f8d2[_0x3d73a9(0x270)]:new Error((_0xaa7e4a=_0x45f8d2['error'])!=null?_0xaa7e4a:_0x3d73a9(0xac));this[_0x3d73a9(0x1dd)](_0x34892b),this[_0x3d73a9(0x2a1)](_0x3cb350),this[_0x3d73a9(0xef)](_0x34892b),this[_0x3d73a9(0x2db)](_0x34892b),this[_0x3d73a9(0x1d1)]();}}let _0x4d206c=class extends _0x682a68{constructor(_0x51707d,_0x406acb,_0x2544e0,_0x4e7170,_0x1b67c4,_0x337246,_0x1d7567,_0x5e3946,_0x4cceb6){const _0x2eca43=_0x3f6827;super(_0x51707d,_0x406acb,null,[],_0x2544e0,_0x5e3946,_0x1d7567,_0x4e7170,_0x1b67c4),_0x2b7d82(this,_0x2eca43(0x2de),_0x2eca43(0xea)),(this[_0x2eca43(0x3ef)]=_0x337246,this[_0x2eca43(0x1af)]=_0x4cceb6);}[_0x3f6827(0x2c5)](_0x3354fd){const _0x48b7f2=_0x3f6827,_0x23288c=this[_0x48b7f2(0x3ef)][_0x48b7f2(0x42d)](_0x4b179e,this[_0x48b7f2(0x27d)],this[_0x48b7f2(0x1ba)],[_0x3354fd],this[_0x48b7f2(0x31c)]);return _0x23288c[_0x48b7f2(0x35f)](),_0x23288c['_updateLocalCache'](),_0x23288c;}[_0x3f6827(0x134)](_0xc67462){const _0x286252=_0x3f6827;if(this[_0x286252(0x2b8)](_0xc67462))return this['_injector'][_0x286252(0x42d)](_0x1aa56b,this[_0x286252(0x27d)],this['type'],null,[],null,[_0xc67462],this[_0x286252(0x31c)]);try{return this['_executeRemoteChangeset'](_0xc67462),this;}catch(_0x122ec5){return this[_0x286252(0x1af)][_0x286252(0x270)](_0x286252(0x181),_0x122ec5),this;}}[_0x3f6827(0xfb)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x2d04bc=_0x3f6827;throw new Error(_0x2d04bc(0x395));}['toggleOffline'](){const _0x287982=_0x3f6827;return this[_0x287982(0x3ef)][_0x287982(0x42d)](_0x369c09,this[_0x287982(0x27d)],this['type'],null,[],this[_0x287982(0x31c)]);}['toggleOnline'](){return this;}[_0x3f6827(0x355)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x4d206c=_0x8fcfef([_0xbe7a74(0x3,_0x28e235['Inject'](_0x4ecbea[_0x3f6827(0x32c)])),_0xbe7a74(0x4,_0x28e235[_0x3f6827(0xb5)](_0x538e2a[_0x3f6827(0x249)])),_0xbe7a74(0x5,_0x28e235[_0x3f6827(0xb5)](_0x28e235[_0x3f6827(0x3e8)])),_0xbe7a74(0x6,_0x28e235[_0x3f6827(0x363)]),_0xbe7a74(0x7,_0x28e235[_0x3f6827(0x23d)]),_0xbe7a74(0x8,_0x28e235[_0x3f6827(0x40e)])],_0x4d206c);let _0x4b179e=class extends _0x682a68{constructor(_0x1c52af,_0x1ac9d5,_0x445f53,_0x293fa6,_0x241fe1,_0x5e3ef2,_0x4b3e63,_0x36baf0,_0xfba6d5,_0x3afb87,_0x5ea63a,_0x1f7024,_0x3bb2f0,_0x205f2b){const _0x54f644=_0x3f6827;super(_0x1c52af,_0x1ac9d5,null,_0x445f53,_0x293fa6,_0x3afb87,_0x205f2b,_0x5e3ef2,_0x4b3e63),_0x2b7d82(this,'status',_0x54f644(0x323)),_0x2b7d82(this,_0x54f644(0x31a),null),_0x2b7d82(this,_0x54f644(0x1c2),null),(this[_0x54f644(0x3ef)]=_0x241fe1,this[_0x54f644(0x13c)]=_0x36baf0,this[_0x54f644(0x1af)]=_0xfba6d5,this[_0x54f644(0x381)]=_0x5ea63a,this[_0x54f644(0x2b0)]=_0x1f7024,this[_0x54f644(0x156)]=_0x3bb2f0);}['appendMutation'](_0x5051a8){const _0x4668ee=_0x3f6827;return this['_pendingMutations']['push'](_0x5051a8),this[_0x4668ee(0x2c9)](),this;}[_0x3f6827(0x134)](_0x1c3971){const _0x28c9c3=_0x3f6827;if(this[_0x28c9c3(0x2b8)](_0x1c3971))return this[_0x28c9c3(0x16c)](),this['_injector']['createInstance'](_0x1aa56b,this[_0x28c9c3(0x27d)],this['type'],null,this[_0x28c9c3(0x413)],null,[_0x1c3971],this[_0x28c9c3(0x31c)]);try{const _0x2f845b=this[_0x28c9c3(0x2b0)]['transformMutationsWithChangeset'](_0x1c3971,this[_0x28c9c3(0x413)]);if(_0x4ecbea[_0x28c9c3(0x373)](_0x2f845b)){const {c1Prime:_0x2fbfd4,m2Prime:_0xde495e}=_0x2f845b;this[_0x28c9c3(0x1f9)](_0x2fbfd4);const _0xc67121=this[_0x28c9c3(0x3ef)][_0x28c9c3(0x42d)](_0x4b179e,this[_0x28c9c3(0x27d)],this[_0x28c9c3(0x1ba)],_0xde495e,this[_0x28c9c3(0x31c)]);return this[_0x28c9c3(0x16c)](),_0xc67121['_schedule'](this[_0x28c9c3(0x31a)]?Math[_0x28c9c3(0x231)](0x0,new Date()[_0x28c9c3(0xf5)]()-this['_scheduleTimestamp']):this[_0x28c9c3(0x38b)]()),_0xc67121;}throw _0x2f845b[_0x28c9c3(0x270)];}catch(_0x206ddc){return this[_0x28c9c3(0x1af)][_0x28c9c3(0x270)](_0x206ddc),this[_0x28c9c3(0x1b4)](!0x1);}}[_0x3f6827(0xfb)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x3f6827(0x335)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x3f6827(0x2f4)](){const _0xdefd93=_0x3f6827;return this[_0xdefd93(0x16c)](),this[_0xdefd93(0x3ef)][_0xdefd93(0x42d)](_0x369c09,this[_0xdefd93(0x27d)],this[_0xdefd93(0x1ba)],null,this['_pendingMutations'],this[_0xdefd93(0x31c)]);}[_0x3f6827(0x456)](){return this;}[_0x3f6827(0x35f)](_0x5bebe0){_0x5bebe0=_0x5bebe0!=null?_0x5bebe0:this['_getSendChangesetTimeout'](),this['_scheduleTimestamp']=new Date()['getTime'](),this['_sendingTimer']=setTimeout(()=>{const _0x40336a=_0x45d3;this['_clearScheduledTask']();let _0x5d17b4=null;switch(this[_0x40336a(0x1ba)]){case _0x2dcfa8[_0x40336a(0x33b)]:{_0x5d17b4=_0x24e396(this[_0x40336a(0x413)],this[_0x40336a(0x27d)],this[_0x40336a(0x156)],this['_revisionService'],this[_0x40336a(0x13c)]);break;}case _0x2dcfa8['UNIVER_DOC']:{_0x5d17b4=_0x112ee6(this['_pendingMutations'],this['unitID'],this[_0x40336a(0x156)],this[_0x40336a(0x304)],this['_memberService']);break;}default:throw new Error(_0x40336a(0x137)+this[_0x40336a(0x1ba)]+'\x20in\x20_schedule.');}const {changeset:_0x2a8995,pendingMutations:_0x675fed}=_0x5d17b4;this[_0x40336a(0x31c)]['onSendChangeset'](_0x2a8995);const _0x45b918=_0x675fed[_0x40336a(0x16b)]?this['_injector'][_0x40336a(0x42d)](_0x24db4f,this[_0x40336a(0x27d)],this[_0x40336a(0x1ba)],_0x2a8995,_0x675fed,this['_handler']):this[_0x40336a(0x3ef)][_0x40336a(0x42d)](_0x3a3533,this[_0x40336a(0x27d)],this[_0x40336a(0x1ba)],_0x2a8995,this[_0x40336a(0x31c)]);_0x45b918[_0x40336a(0x2c9)](),this[_0x40336a(0x31c)][_0x40336a(0xfe)](this,_0x45b918);},_0x5bebe0);}[_0x3f6827(0x38b)](){const _0x57c706=_0x3f6827;var _0x7297c3;return(_0x7297c3=this[_0x57c706(0x381)][_0x57c706(0x457)](_0x3e60d2))!=null?_0x7297c3:0x7d0;}[_0x3f6827(0x355)](){const _0x28a876=_0x3f6827;throw new Error(_0x28a876(0x302));}['_clearScheduledTask'](){const _0x1e228e=_0x3f6827;this[_0x1e228e(0x1c2)]!=null&&(clearTimeout(this[_0x1e228e(0x1c2)]),this[_0x1e228e(0x1c2)]=null);}[_0x3f6827(0x1b4)](_0x4c3b1a){const _0x5315e3=_0x3f6827;return this[_0x5315e3(0x16c)](),this[_0x5315e3(0x3ef)][_0x5315e3(0x42d)](_0x1fe487,this[_0x5315e3(0x27d)],this['type'],null,this[_0x5315e3(0x413)],this['_handler'],_0x4c3b1a);}};_0x4b179e=_0x8fcfef([_0xbe7a74(0x4,_0x28e235[_0x3f6827(0xb5)](_0x28e235['Injector'])),_0xbe7a74(0x5,_0x28e235['Inject'](_0x4ecbea[_0x3f6827(0x32c)])),_0xbe7a74(0x6,_0x28e235['Inject'](_0x538e2a[_0x3f6827(0x249)])),_0xbe7a74(0x7,_0x28e235[_0x3f6827(0xb5)](_0x1d7fc4)),_0xbe7a74(0x8,_0x28e235[_0x3f6827(0x40e)]),_0xbe7a74(0x9,_0x28e235[_0x3f6827(0x23d)]),_0xbe7a74(0xa,_0x28e235[_0x3f6827(0x115)]),_0xbe7a74(0xb,_0x4ecbea[_0x3f6827(0x111)]),_0xbe7a74(0xc,_0x28e235['IUniverInstanceService']),_0xbe7a74(0xd,_0x28e235[_0x3f6827(0x363)])],_0x4b179e);let _0x3a3533=class extends _0x682a68{constructor(_0x582bc2,_0x1e6d0d,_0x215036,_0x2741d4,_0x37c9d7,_0x231987,_0x110a8a,_0x3d99d8,_0x1dc7ea,_0x146d5f,_0x796c6c){const _0x877b5=_0x3f6827;super(_0x582bc2,_0x1e6d0d,_0x215036,[],_0x2741d4,_0x3d99d8,_0x796c6c,_0x231987,_0x110a8a),_0x2b7d82(this,_0x877b5(0x2de),_0x877b5(0x367)),(this[_0x877b5(0x3ef)]=_0x37c9d7,this[_0x877b5(0x1af)]=_0x1dc7ea,this[_0x877b5(0x2b0)]=_0x146d5f);}[_0x3f6827(0x2c5)](_0x3c7737){const _0x1aa8a1=_0x3f6827,_0x33e1cc=this['_injector'][_0x1aa8a1(0x42d)](_0x24db4f,this['unitID'],this[_0x1aa8a1(0x1ba)],this['_awaitingChangeset'],[_0x3c7737],this[_0x1aa8a1(0x31c)]);return _0x33e1cc[_0x1aa8a1(0x2c9)](),_0x33e1cc;}['onRemoteChangeset'](_0x3eae86){const _0x3764f3=_0x3f6827;if(this[_0x3764f3(0x2b8)](_0x3eae86))return this[_0x3764f3(0x3ef)][_0x3764f3(0x42d)](_0x1aa56b,this[_0x3764f3(0x27d)],this[_0x3764f3(0x1ba)],this[_0x3764f3(0x2c0)],[],null,[_0x3eae86],this[_0x3764f3(0x31c)]);try{const _0x413c23=this[_0x3764f3(0x2b0)][_0x3764f3(0x292)]([_0x3eae86],[this['_awaitingChangeset']],!0x1);if(_0x4ecbea[_0x3764f3(0xa9)](_0x413c23)){const {c1Prime:_0x362ef5,c2Prime:_0x11071a}=_0x413c23;this[_0x3764f3(0x1f9)](_0x362ef5[0x0]),_0x11071a[0x0][_0x3764f3(0x41f)]=this['_getCurrentRevision']();const _0x580390=this['_injector'][_0x3764f3(0x42d)](_0x3a3533,this['unitID'],this[_0x3764f3(0x1ba)],_0x11071a[0x0],this[_0x3764f3(0x31c)]);return _0x580390['_updateLocalCache'](),_0x580390;}return this[_0x3764f3(0x1b4)](!0x1);}catch(_0x2e6584){return this[_0x3764f3(0x1af)][_0x3764f3(0x270)](_0x2e6584),this[_0x3764f3(0x1b4)](!0x1);}}[_0x3f6827(0xfb)](_0x163ec0){const _0x5cde44=_0x3f6827,_0x559b50=this['_revisionService']['getCurrentRevForDocument'](this[_0x5cde44(0x27d)]);if(_0x163ec0['revision']<_0x559b50-0x1)return this;if(this[_0x5cde44(0x2b8)](_0x163ec0))return this[_0x5cde44(0x3ef)][_0x5cde44(0x42d)](_0x1aa56b,this[_0x5cde44(0x27d)],this[_0x5cde44(0x1ba)],null,[],this['_awaitingChangeset'],[],this[_0x5cde44(0x31c)]);this[_0x5cde44(0x1d1)]();const _0x8157=this[_0x5cde44(0x3ef)][_0x5cde44(0x42d)](_0x4d206c,this['unitID'],this['type'],this[_0x5cde44(0x31c)]);return _0x8157[_0x5cde44(0x2c9)](),_0x8157;}['onRemoteRej'](_0x5f3ab7){const _0x100b63=_0x3f6827;return this[_0x100b63(0x1b4)](!!(_0x5f3ab7!=null&&_0x5f3ab7[_0x100b63(0x26b)]));}[_0x3f6827(0x2f4)](){const _0xae590b=_0x3f6827;return this[_0xae590b(0x3ef)][_0xae590b(0x42d)](_0x369c09,this[_0xae590b(0x27d)],this[_0xae590b(0x1ba)],this[_0xae590b(0x2c0)],[],this[_0xae590b(0x31c)]);}['toggleOnline'](){return this;}[_0x3f6827(0x355)](){const _0x19107b=_0x3f6827;this[_0x19107b(0x31c)][_0x19107b(0x14e)](this['_awaitingChangeset']);}[_0x3f6827(0x1b4)](_0x3c59fc){const _0x10ac17=_0x3f6827;return this[_0x10ac17(0x3ef)]['createInstance'](_0x1fe487,this['unitID'],this[_0x10ac17(0x1ba)],this[_0x10ac17(0x2c0)],[],this[_0x10ac17(0x31c)],_0x3c59fc);}};_0x3a3533=_0x8fcfef([_0xbe7a74(0x4,_0x28e235['Inject'](_0x28e235[_0x3f6827(0x3e8)])),_0xbe7a74(0x5,_0x28e235[_0x3f6827(0xb5)](_0x4ecbea[_0x3f6827(0x32c)])),_0xbe7a74(0x6,_0x28e235['Inject'](_0x538e2a['LocalCacheService'])),_0xbe7a74(0x7,_0x28e235[_0x3f6827(0x23d)]),_0xbe7a74(0x8,_0x28e235[_0x3f6827(0x40e)]),_0xbe7a74(0x9,_0x4ecbea[_0x3f6827(0x111)]),_0xbe7a74(0xa,_0x28e235[_0x3f6827(0x363)])],_0x3a3533);let _0x24db4f=class extends _0x682a68{constructor(_0x5d2637,_0x1b9537,_0xddd07d,_0x58615b,_0x97e34e,_0x268464,_0x1777eb,_0x2f6d64,_0x4a6248,_0x32f474,_0x46df89,_0x5b288e){const _0xae0860=_0x3f6827;super(_0x5d2637,_0x1b9537,_0xddd07d,_0x58615b,_0x97e34e,_0x4a6248,_0x5b288e,_0x1777eb,_0x2f6d64),_0x2b7d82(this,_0xae0860(0x2de),_0xae0860(0x9b)),(this[_0xae0860(0x3ef)]=_0x268464,this[_0xae0860(0x1af)]=_0x32f474,this['_transformService']=_0x46df89);}['appendMutation'](_0x57bd5d){return this['_pendingMutations']['push'](_0x57bd5d),this;}['onRemoteChangeset'](_0x2453e2){const _0xbf5dd4=_0x3f6827;if(this[_0xbf5dd4(0x2b8)](_0x2453e2))return this['_injector']['createInstance'](_0x1aa56b,this[_0xbf5dd4(0x27d)],this['type'],this[_0xbf5dd4(0x2c0)],this[_0xbf5dd4(0x413)],null,[_0x2453e2],this['_handler']);try{const _0xccc8af=this[_0xbf5dd4(0x2b0)][_0xbf5dd4(0x292)]([_0x2453e2],[this[_0xbf5dd4(0x2c0)]],!0x1);if(_0x4ecbea[_0xbf5dd4(0xa9)](_0xccc8af)){const {c1Prime:_0x5dd027,c2Prime:_0x15536f}=_0xccc8af,_0x256579=this[_0xbf5dd4(0x2b0)]['transformMutationsWithChangeset'](_0x5dd027[0x0],this[_0xbf5dd4(0x413)]);if(_0x4ecbea[_0xbf5dd4(0x373)](_0x256579)){const {c1Prime:_0x4e2884,m2Prime:_0x47ba3e}=_0x256579;return this['_executeRemoteChangeset'](_0x4e2884),_0x15536f[0x0][_0xbf5dd4(0x41f)]=this[_0xbf5dd4(0x420)](),this[_0xbf5dd4(0x3ef)][_0xbf5dd4(0x42d)](_0x24db4f,this[_0xbf5dd4(0x27d)],this[_0xbf5dd4(0x1ba)],_0x15536f[0x0],_0x47ba3e,this[_0xbf5dd4(0x31c)]);}throw _0x256579[_0xbf5dd4(0x270)];}throw _0xccc8af[_0xbf5dd4(0x270)];}catch(_0xab38ee){return this[_0xbf5dd4(0x1af)]['error'](_0xab38ee),this[_0xbf5dd4(0x1b4)](!0x1);}}[_0x3f6827(0xfb)](_0x46ea6){const _0x3aa64f=_0x3f6827;if(this[_0x3aa64f(0x2b8)](_0x46ea6))return this['_injector'][_0x3aa64f(0x42d)](_0x1aa56b,this[_0x3aa64f(0x27d)],this[_0x3aa64f(0x1ba)],null,this['_pendingMutations'],this['_awaitingChangeset'],[],this[_0x3aa64f(0x31c)]);this[_0x3aa64f(0x1d1)]();const _0x3cf0b0=this['_injector'][_0x3aa64f(0x42d)](_0x4b179e,this[_0x3aa64f(0x27d)],this[_0x3aa64f(0x1ba)],this['_pendingMutations'],this[_0x3aa64f(0x31c)]);return _0x3cf0b0['_schedule'](),_0x3cf0b0[_0x3aa64f(0x2c9)](),_0x3cf0b0;}[_0x3f6827(0x335)](_0x1c23c9){const _0x430e71=_0x3f6827;return this[_0x430e71(0x1b4)](!!(_0x1c23c9!=null&&_0x1c23c9[_0x430e71(0x26b)]));}['toggleOffline'](){const _0x4bdfb6=_0x3f6827;return this[_0x4bdfb6(0x3ef)][_0x4bdfb6(0x42d)](_0x369c09,this[_0x4bdfb6(0x27d)],this[_0x4bdfb6(0x1ba)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0x3f6827(0x456)](){return this;}[_0x3f6827(0x355)](){const _0x5e7abe=_0x3f6827;this[_0x5e7abe(0x31c)][_0x5e7abe(0x14e)](this[_0x5e7abe(0x2c0)]);}[_0x3f6827(0x1b4)](_0x5c6e27){const _0x53e58e=_0x3f6827;return this[_0x53e58e(0x3ef)][_0x53e58e(0x42d)](_0x1fe487,this['unitID'],this[_0x53e58e(0x1ba)],null,this['_pendingMutations'],this[_0x53e58e(0x31c)],_0x5c6e27);}};_0x24db4f=_0x8fcfef([_0xbe7a74(0x5,_0x28e235[_0x3f6827(0xb5)](_0x28e235['Injector'])),_0xbe7a74(0x6,_0x28e235[_0x3f6827(0xb5)](_0x4ecbea[_0x3f6827(0x32c)])),_0xbe7a74(0x7,_0x28e235['Inject'](_0x538e2a[_0x3f6827(0x249)])),_0xbe7a74(0x8,_0x28e235[_0x3f6827(0x23d)]),_0xbe7a74(0x9,_0x28e235[_0x3f6827(0x40e)]),_0xbe7a74(0xa,_0x4ecbea[_0x3f6827(0x111)]),_0xbe7a74(0xb,_0x28e235[_0x3f6827(0x363)])],_0x24db4f);let _0x1fe487=class extends _0x682a68{constructor(_0x3f8ec9,_0x88cec9,_0x34e56c,_0x1f80f2,_0x3be39d,_0x3ee648=!0x1,_0x3dccfd,_0x3c9df3,_0x6bc957,_0x2bead1,_0xb99271,_0x44f6fb,_0x5961ff){const _0x1f23a1=_0x3f6827;super(_0x3f8ec9,_0x88cec9,_0x34e56c,_0x1f80f2,_0x3be39d,_0x3c9df3,_0x6bc957,_0xb99271,_0x2bead1),_0x2b7d82(this,_0x1f23a1(0x2de),_0x1f23a1(0x2dc)),(this[_0x1f23a1(0x3b0)]=_0x3ee648,this[_0x1f23a1(0x9d)]=_0x3dccfd,this[_0x1f23a1(0x424)]=_0x44f6fb,this[_0x1f23a1(0x31f)]=_0x5961ff,this[_0x1f23a1(0x285)](),this['_clearLocalCache'](),this['_disableEditing']());}[_0x3f6827(0x2c5)](){return this;}[_0x3f6827(0x134)](){return this;}['onRemoteAck'](){return this;}[_0x3f6827(0x335)](){return this;}[_0x3f6827(0x2f4)](){return this;}[_0x3f6827(0x456)](){return this;}['resend'](){const _0x58ce95=_0x3f6827;throw new Error(_0x58ce95(0x174));}[_0x3f6827(0x7b)](){const _0x55000b=_0x3f6827;this['_localCacheService']['updateOfflineData'](this[_0x55000b(0x27d)],this[_0x55000b(0x1ba)],null,[]);}[_0x3f6827(0x285)](){const _0xd59f39=_0x3f6827;this[_0xd59f39(0x3b0)]?this[_0xd59f39(0x31f)]['show']({'title':this[_0xd59f39(0x424)]['t'](_0xd59f39(0x419)),'content':this['_localeService']['t'](_0xd59f39(0x280)),'type':'error','duration':0x0}):this['_notificationService'][_0xd59f39(0x226)]({'title':this[_0xd59f39(0x424)]['t'](_0xd59f39(0x389)),'content':this[_0xd59f39(0x424)]['t']('conflict.content'),'type':_0xd59f39(0x270),'duration':0x0});}[_0x3f6827(0x11d)](){const _0x52ec65=_0x3f6827;this[_0x52ec65(0x9d)][_0x52ec65(0x22d)](new _0x48cd6e[(_0x52ec65(0x286))](this['unitID'])['id'],!0x1);}};_0x1fe487=_0x8fcfef([_0xbe7a74(0x6,_0x28e235['Inject'](_0x28e235[_0x3f6827(0x30d)])),_0xbe7a74(0x7,_0x28e235['ICommandService']),_0xbe7a74(0x8,_0x28e235[_0x3f6827(0x363)]),_0xbe7a74(0x9,_0x28e235[_0x3f6827(0xb5)](_0x538e2a[_0x3f6827(0x249)])),_0xbe7a74(0xa,_0x28e235[_0x3f6827(0xb5)](_0x4ecbea['RevisionService'])),_0xbe7a74(0xb,_0x28e235[_0x3f6827(0xb5)](_0x28e235[_0x3f6827(0x3a0)])),_0xbe7a74(0xc,_0x1d23ef[_0x3f6827(0x298)])],_0x1fe487);let _0x369c09=class extends _0x682a68{constructor(_0x4bceb6,_0x498aa1,_0x39783f,_0x446b29,_0x593a7d,_0x3d3e7b,_0x589de0,_0x4cd1ea,_0x33bdd1,_0x1774da){const _0x32d834=_0x3f6827;super(_0x4bceb6,_0x498aa1,_0x39783f,_0x446b29,_0x593a7d,_0x33bdd1,_0x1774da,_0x589de0,_0x4cd1ea),_0x2b7d82(this,'status',_0x32d834(0x110)),this['_injector']=_0x3d3e7b;}[_0x3f6827(0x2c5)](_0x5973f3){const _0x2f1461=_0x3f6827;return this[_0x2f1461(0x413)][_0x2f1461(0x386)](_0x5973f3),this[_0x2f1461(0x2c9)](),this;}['onRemoteChangeset'](_0x59bcfa){const _0x9d99a7=_0x3f6827;throw new Error(_0x9d99a7(0x8a));}[_0x3f6827(0xfb)](){const _0x550f28=_0x3f6827;throw new Error(_0x550f28(0x40d));}[_0x3f6827(0x335)](){const _0x2d026a=_0x3f6827;throw new Error(_0x2d026a(0x3f1));}[_0x3f6827(0x2f4)](){return this;}['toggleOnline'](){const _0x1032d8=_0x3f6827,{_injector:_0x393ea5,_pendingMutations:_0x589171,_awaitingChangeset:_0x513c9a,unitID:_0x4f02c7,_handler:_0x5ba6c9,type:_0x840463}=this,_0x3895e8=_0x1aaec5(_0x393ea5,_0x4f02c7,_0x840463,_0x513c9a,_0x589171,_0x5ba6c9);return _0x3895e8 instanceof _0x4b179e?_0x3895e8[_0x1032d8(0x35f)]():(_0x3895e8 instanceof _0x24db4f||_0x3895e8 instanceof _0x3a3533)&&_0x3895e8[_0x1032d8(0x355)](),_0x3895e8;}[_0x3f6827(0x355)](){const _0x2341a5=_0x3f6827;throw new Error(_0x2341a5(0x455));}};_0x369c09=_0x8fcfef([_0xbe7a74(0x5,_0x28e235['Inject'](_0x28e235[_0x3f6827(0x3e8)])),_0xbe7a74(0x6,_0x28e235[_0x3f6827(0xb5)](_0x4ecbea[_0x3f6827(0x32c)])),_0xbe7a74(0x7,_0x28e235[_0x3f6827(0xb5)](_0x538e2a['LocalCacheService'])),_0xbe7a74(0x8,_0x28e235['ICommandService']),_0xbe7a74(0x9,_0x28e235['IUndoRedoService'])],_0x369c09);let _0x1aa56b=class extends _0x682a68{constructor(_0x29a57e,_0x50fdb4,_0x3dd75c,_0xe2a875,_0x4fa0db,_0x293572,_0x2ac1cf,_0x51523b,_0x14e14a,_0x24446a,_0x3ab0a7,_0x1d3b12,_0x4e40e1,_0x1872c8){const _0x423ce8=_0x3f6827;super(_0x29a57e,_0x50fdb4,_0x3dd75c,_0xe2a875,_0x2ac1cf,_0x1d3b12,_0x4e40e1,_0x14e14a,_0x24446a),_0x2b7d82(this,'status',_0x423ce8(0x122)),(this[_0x423ce8(0x18c)]=_0x4fa0db,this['_queuedRemoteChangesets']=_0x293572,this[_0x423ce8(0x3ef)]=_0x51523b,this[_0x423ce8(0x1af)]=_0x3ab0a7,this[_0x423ce8(0x2b0)]=_0x1872c8);}[_0x3f6827(0x1d8)](_0x2b27a8){const _0x4558e1=_0x3f6827;try{const _0x1a0ccf=[..._0x2b27a8,...this['_queuedRemoteChangesets']],_0xe2a7a4=[this[_0x4558e1(0x2c0)]||this[_0x4558e1(0x18c)]][_0x4558e1(0x44a)](_0x3a1633=>!!_0x3a1633);let _0xfefcd7,_0x1198c4;if(_0xe2a7a4[_0x4558e1(0x16b)]){const _0x25c9d5=this[_0x4558e1(0x2b0)][_0x4558e1(0x292)](_0x1a0ccf,_0xe2a7a4,!0x1);if(!_0x4ecbea[_0x4558e1(0xa9)](_0x25c9d5))throw _0x25c9d5[_0x4558e1(0x270)];_0xfefcd7=_0x25c9d5['c1Prime'],_0x1198c4=_0x25c9d5[_0x4558e1(0x158)];}else _0xfefcd7=_0x1a0ccf,_0x1198c4=[];let _0x655093=this['_pendingMutations'];_0xfefcd7[_0x4558e1(0x384)](_0xbb3e19=>{const _0x3db8d1=_0x4558e1;let _0x293b34;if(_0x655093['length']){const _0x1cf231=this[_0x3db8d1(0x2b0)]['transformMutationsWithChangeset'](_0xbb3e19,_0x655093);if(!_0x4ecbea['isTransformMutationsWithChangesetSuccess'](_0x1cf231))throw _0x1cf231['error'];_0x293b34=_0x1cf231[_0x3db8d1(0x35d)],_0x655093=_0x1cf231[_0x3db8d1(0x3c6)];}else _0x293b34=_0xbb3e19;this[_0x3db8d1(0x1f9)](_0x293b34);}),this[_0x4558e1(0x18c)]&&this[_0x4558e1(0x1d1)](),this[_0x4558e1(0x2c0)]&&_0x1198c4[_0x4558e1(0x16b)]&&(_0x1198c4[0x0][_0x4558e1(0x41f)]=this[_0x4558e1(0x420)]());let _0x5a9665;if(this[_0x4558e1(0x2c0)]&&_0x655093[_0x4558e1(0x16b)]!==0x0)_0x5a9665=this[_0x4558e1(0x3ef)][_0x4558e1(0x42d)](_0x24db4f,this['unitID'],this[_0x4558e1(0x1ba)],_0x1198c4[0x0],_0x655093,this[_0x4558e1(0x31c)]);else{if(this[_0x4558e1(0x2c0)]&&_0x655093[_0x4558e1(0x16b)]===0x0)_0x1198c4[0x0][_0x4558e1(0x41f)]=this['_getCurrentRevision'](),_0x5a9665=this[_0x4558e1(0x3ef)][_0x4558e1(0x42d)](_0x3a3533,this['unitID'],this[_0x4558e1(0x1ba)],_0x1198c4[0x0],this['_handler']);else{if(_0x655093[_0x4558e1(0x16b)]!==0x0){const _0x3606d8=this[_0x4558e1(0x3ef)][_0x4558e1(0x42d)](_0x4b179e,this[_0x4558e1(0x27d)],this[_0x4558e1(0x1ba)],_0x655093,this[_0x4558e1(0x31c)]);_0x3606d8[_0x4558e1(0x35f)](),_0x5a9665=_0x3606d8;}else _0x5a9665=this['_injector']['createInstance'](_0x4d206c,this[_0x4558e1(0x27d)],this[_0x4558e1(0x1ba)],this[_0x4558e1(0x31c)]);}}return _0x5a9665[_0x4558e1(0x2c9)](),_0x5a9665;}catch(_0x4e7ee1){return this[_0x4558e1(0x1af)][_0x4558e1(0x270)](_0x4558e1(0x2bb),_0x4558e1(0xe1),_0x4e7ee1),this['_injector'][_0x4558e1(0x42d)](_0x1fe487,this[_0x4558e1(0x27d)],this[_0x4558e1(0x1ba)],this[_0x4558e1(0x2c0)],this[_0x4558e1(0x413)],this[_0x4558e1(0x31c)],!0x1);}}[_0x3f6827(0x355)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3f6827(0x2c5)](_0x508192){const _0xed2712=_0x3f6827;return this[_0xed2712(0x413)][_0xed2712(0x386)](_0x508192),this;}['onRemoteChangeset'](_0xf5f57f){const _0xf31db4=_0x3f6827;return this[_0xf31db4(0xa4)][_0xf31db4(0x386)](_0xf5f57f),this;}[_0x3f6827(0xfb)](_0x7cea58){const _0x1fce38=_0x3f6827;if(this[_0x1fce38(0x2c0)])return this[_0x1fce38(0x18c)]=this[_0x1fce38(0x2c0)],this[_0x1fce38(0x2c0)]=null,this;throw new Error(_0x1fce38(0x1c3));}[_0x3f6827(0x335)](_0x4a2ffa){const _0x1ea1f7=_0x3f6827;return this[_0x1ea1f7(0x1b4)](!!(_0x4a2ffa!=null&&_0x4a2ffa[_0x1ea1f7(0x26b)]));}[_0x3f6827(0x2f4)](){const _0x41fb31=_0x3f6827;return this[_0x41fb31(0x3ef)][_0x41fb31(0x42d)](_0x369c09,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x41fb31(0x413)],this['_handler']);}[_0x3f6827(0x456)](){return this;}[_0x3f6827(0x1b4)](_0x54b037){const _0xdfeb7d=_0x3f6827;return this[_0xdfeb7d(0x3ef)]['createInstance'](_0x1fe487,this[_0xdfeb7d(0x27d)],this[_0xdfeb7d(0x1ba)],this[_0xdfeb7d(0x2c0)],this[_0xdfeb7d(0x413)],this[_0xdfeb7d(0x31c)],_0x54b037);}};_0x1aa56b=_0x8fcfef([_0xbe7a74(0x7,_0x28e235[_0x3f6827(0xb5)](_0x28e235[_0x3f6827(0x3e8)])),_0xbe7a74(0x8,_0x28e235[_0x3f6827(0xb5)](_0x4ecbea[_0x3f6827(0x32c)])),_0xbe7a74(0x9,_0x28e235[_0x3f6827(0xb5)](_0x538e2a[_0x3f6827(0x249)])),_0xbe7a74(0xa,_0x28e235[_0x3f6827(0x40e)]),_0xbe7a74(0xb,_0x28e235['ICommandService']),_0xbe7a74(0xc,_0x28e235['IUndoRedoService']),_0xbe7a74(0xd,_0x4ecbea['ITransformService'])],_0x1aa56b);function _0x1aaec5(_0xd41c4,_0xf42d88,_0x8584d8,_0x2232b9,_0x198abd,_0x4b2228){const _0x1ab8f3=_0x3f6827;return _0x2232b9&&_0x198abd[_0x1ab8f3(0x16b)]?_0xd41c4[_0x1ab8f3(0x42d)](_0x24db4f,_0xf42d88,_0x8584d8,_0x2232b9,_0x198abd,_0x4b2228):_0x2232b9?_0xd41c4['createInstance'](_0x3a3533,_0xf42d88,_0x8584d8,_0x2232b9,_0x4b2228):_0x198abd[_0x1ab8f3(0x16b)]?_0xd41c4[_0x1ab8f3(0x42d)](_0x4b179e,_0xf42d88,_0x8584d8,_0x198abd,_0x4b2228):_0xd41c4['createInstance'](_0x4d206c,_0xf42d88,_0x8584d8,_0x4b2228);}var _0x22dc03=Object['defineProperty'],_0x31e4ed=Object[_0x3f6827(0x1cb)],_0x48c502=(_0xcbce22,_0x4ef8d0,_0x3b5022,_0x2e2a18)=>{const _0x55c947=_0x3f6827;for(var _0xdf9efc=_0x2e2a18>0x1?void 0x0:_0x2e2a18?_0x31e4ed(_0x4ef8d0,_0x3b5022):_0x4ef8d0,_0x1c8e39=_0xcbce22[_0x55c947(0x16b)]-0x1,_0x529e9a;_0x1c8e39>=0x0;_0x1c8e39--)(_0x529e9a=_0xcbce22[_0x1c8e39])&&(_0xdf9efc=(_0x2e2a18?_0x529e9a(_0x4ef8d0,_0x3b5022,_0xdf9efc):_0x529e9a(_0xdf9efc))||_0xdf9efc);return _0x2e2a18&&_0xdf9efc&&_0x22dc03(_0x4ef8d0,_0x3b5022,_0xdf9efc),_0xdf9efc;},_0x3a5edf=(_0x4da098,_0x43be84)=>(_0x16184f,_0x8fd5cc)=>_0x43be84(_0x16184f,_0x8fd5cc,_0x4da098);_0x538e2a['CollaborationController']=class extends _0x28e235['RxDisposable']{constructor(_0x196312,_0x9c4dd0,_0x277cac){const _0xb2d1e=_0x3f6827;super(),_0x2b7d82(this,_0xb2d1e(0x284),new Map()),_0x2b7d82(this,_0xb2d1e(0x452),new _0x2820f3[(_0xb2d1e(0xa8))]()),(this[_0xb2d1e(0x3ef)]=_0x196312,this[_0xb2d1e(0xfc)]=_0x9c4dd0,this[_0xb2d1e(0x156)]=_0x277cac,this[_0xb2d1e(0x3e4)]());}[_0x3f6827(0x179)](){const _0x42c780=_0x3f6827;super[_0x42c780(0x179)](),this[_0x42c780(0x284)][_0x42c780(0x384)](_0x54dd57=>_0x54dd57[_0x42c780(0x179)]()),this['_entities'][_0x42c780(0x18e)]();}[_0x3f6827(0x2f8)](_0x291a9b){const _0x395214=_0x3f6827;var _0x129257;return(_0x129257=this[_0x395214(0x284)][_0x395214(0x450)](_0x291a9b))!=null?_0x129257:null;}['getCollabEntity$'](_0xbd7a5b){const _0x42a122=_0x3f6827,_0x4bc7ae=this[_0x42a122(0x2f8)](_0xbd7a5b);return _0x4bc7ae?_0x2820f3['of'](_0x4bc7ae):this[_0x42a122(0x452)][_0x42a122(0x2ef)](_0x1086dc[_0x42a122(0x44a)](_0xa13d44=>_0xa13d44[_0x42a122(0x27d)]===_0xbd7a5b));}[_0x3f6827(0x3e4)](){const _0x52a3d8=_0x3f6827;this[_0x52a3d8(0x156)][_0x52a3d8(0x370)](_0x28e235['UniverInstanceType']['UNIVER_SHEET'])[_0x52a3d8(0x2ef)](_0x2820f3[_0x52a3d8(0xeb)](this[_0x52a3d8(0x388)]),_0x1086dc[_0x52a3d8(0x1ef)](0x10))[_0x52a3d8(0x3cd)](async _0x18654c=>{const _0x27f395=_0x52a3d8,_0x4b705b=_0x18654c[_0x27f395(0x322)](),_0x8deae=await this['_startCollaboration'](_0x4b705b,_0x2dcfa8[_0x27f395(0x33b)]);this[_0x27f395(0x284)][_0x27f395(0x2b2)](_0x4b705b,_0x8deae);}),this[_0x52a3d8(0x156)][_0x52a3d8(0x370)](_0x28e235[_0x52a3d8(0x3af)][_0x52a3d8(0x372)])[_0x52a3d8(0x2ef)](_0x2820f3[_0x52a3d8(0xeb)](this[_0x52a3d8(0x388)]),_0x1086dc['delay'](0x10))[_0x52a3d8(0x2ef)](_0x1086dc[_0x52a3d8(0x44a)](_0x66050e=>!_0x66050e['getUnitId']()[_0x52a3d8(0x258)]('__')))['subscribe'](async _0x249a76=>{const _0x88bd3e=_0x52a3d8,_0x376dce=_0x249a76[_0x88bd3e(0x322)](),_0x52eae8=await this[_0x88bd3e(0xc7)](_0x376dce,_0x2dcfa8[_0x88bd3e(0x372)]);this[_0x88bd3e(0x284)][_0x88bd3e(0x2b2)](_0x376dce,_0x52eae8);}),_0x2820f3[_0x52a3d8(0x33e)](this[_0x52a3d8(0x156)][_0x52a3d8(0x2e4)](_0x28e235[_0x52a3d8(0x3af)][_0x52a3d8(0x33b)]),this[_0x52a3d8(0x156)][_0x52a3d8(0x2e4)](_0x28e235[_0x52a3d8(0x3af)][_0x52a3d8(0x372)]))[_0x52a3d8(0x2ef)](_0x2820f3['takeUntil'](this[_0x52a3d8(0x388)]))[_0x52a3d8(0x3cd)](_0x14d687=>{const _0x51d893=_0x52a3d8,_0x50e328=_0x14d687[_0x51d893(0x322)](),_0x4778d3=this['_entities'][_0x51d893(0x450)](_0x50e328);_0x4778d3&&(_0x4778d3[_0x51d893(0x179)](),this['_entities'][_0x51d893(0x458)](_0x50e328));});}async[_0x3f6827(0xc7)](_0x3b2b12,_0x3f6b6d){const _0x29631b=_0x3f6827,_0x3d05b6=await this['_collabSessionService']['requireSession'](_0x3b2b12),_0x39016a=this[_0x29631b(0x3ef)][_0x29631b(0x42d)](this[_0x29631b(0x221)](_0x3f6b6d),_0x3b2b12,_0x3f6b6d,_0x3d05b6);return await _0x39016a[_0x29631b(0xf8)](),this[_0x29631b(0x452)][_0x29631b(0x18d)](_0x39016a),_0x39016a;}[_0x3f6827(0x221)](_0x3d53c4){const _0x548e8c=_0x3f6827;switch(_0x3d53c4){case _0x2dcfa8[_0x548e8c(0x372)]:return _0x7bd32e;case _0x2dcfa8[_0x548e8c(0x33b)]:return _0x538e2a[_0x548e8c(0x295)];default:throw new Error(_0x548e8c(0x192)+_0x3d53c4);}}},_0x538e2a[_0x3f6827(0x135)]=_0x48c502([_0x28e235[_0x3f6827(0xb8)](_0x28e235[_0x3f6827(0x177)][_0x3f6827(0xd4)],_0x538e2a[_0x3f6827(0x135)]),_0x3a5edf(0x0,_0x28e235[_0x3f6827(0xb5)](_0x28e235[_0x3f6827(0x3e8)])),_0x3a5edf(0x1,_0x28e235['Inject'](_0x538e2a[_0x3f6827(0x17b)])),_0x3a5edf(0x2,_0x28e235[_0x3f6827(0x19b)])],_0x538e2a[_0x3f6827(0x135)]);let _0x1d527e=class extends _0x28e235[_0x3f6827(0x93)]{constructor(_0x1ab4c5,_0x2e8eef,_0x3aec20,_0x9ab143,_0x5d8eaf,_0x1842ed,_0x381d88,_0x5b3cad,_0x123263,_0x45c8af,_0x246e4e,_0x5c691e,_0x41a500){const _0x11a9a1=_0x3f6827;super(),_0x2b7d82(this,_0x11a9a1(0x435),new _0x2820f3[(_0x11a9a1(0x371))](null)),_0x2b7d82(this,'state$',this[_0x11a9a1(0x435)][_0x11a9a1(0x1d2)]()),_0x2b7d82(this,'_state'),_0x2b7d82(this,_0x11a9a1(0x3f8),!0x1),_0x2b7d82(this,_0x11a9a1(0x3f2),this[_0x11a9a1(0x2d7)][_0x11a9a1(0x2ef)](_0x1086dc[_0x11a9a1(0x25f)](_0x1ca281=>_0x1ca281?_0x1ca281[_0x11a9a1(0x2de)]:_0x16cedf[_0x11a9a1(0x353)]),_0x1086dc['shareReplay'](0x1))),_0x2b7d82(this,_0x11a9a1(0x37c),!0x1),_0x2b7d82(this,_0x11a9a1(0x175),[]),(this[_0x11a9a1(0x27d)]=_0x1ab4c5,this['_type']=_0x2e8eef,this[_0x11a9a1(0x3a9)]=_0x3aec20,this[_0x11a9a1(0x3ef)]=_0x9ab143,this[_0x11a9a1(0x2a6)]=_0x5d8eaf,this['_compressMutationService']=_0x1842ed,this[_0x11a9a1(0x424)]=_0x381d88,this['_revisionService']=_0x5b3cad,this[_0x11a9a1(0x1af)]=_0x123263,this[_0x11a9a1(0x11a)]=_0x45c8af,this[_0x11a9a1(0x233)]=_0x246e4e,this[_0x11a9a1(0x9d)]=_0x5c691e,this['_singleActiveUnitService']=_0x41a500);}get[_0x3f6827(0x3a3)](){const _0x42eb5b=_0x3f6827;return this[_0x42eb5b(0x3d6)];}async[_0x3f6827(0xf8)](){const _0x335474=_0x3f6827;if(this[_0x335474(0x3a3)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x335474(0x3e4)]();}[_0x3f6827(0xbe)](){const _0x5f2de0=_0x3f6827;return this[_0x5f2de0(0x3f8)]=!0x0,_0x28e235[_0x5f2de0(0x23e)](()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x3f6827(0x182)](_0x1c197e){const _0x47af19=_0x3f6827;this[_0x47af19(0x3d6)]=_0x1c197e,this['_state$'][_0x47af19(0x18d)](_0x1c197e);}async[_0x3f6827(0x3e4)](){const _0x3a7fad=_0x3f6827;var _0x44318a;return this[_0x3a7fad(0x182)](await this[_0x3a7fad(0x385)]()),this['_singleActiveUnitService']&&((_0x44318a=this[_0x3a7fad(0x196)])==null||_0x44318a[_0x3a7fad(0x454)](this['unitID']),this[_0x3a7fad(0x41b)](_0x28e235[_0x3a7fad(0x23e)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x3a7fad(0x27d)])[_0x3a7fad(0x3cd)](_0x33f13e=>{const _0x333532=_0x3a7fad;this[_0x333532(0x1af)]['debug'](_0x333532(0x265),_0x333532(0x10d),_0x33f13e),_0x33f13e===_0x52ad2f[_0x333532(0x1c9)]?(this[_0x333532(0x233)][_0x333532(0x226)]({'content':this[_0x333532(0x424)]['t'](_0x333532(0x20b)),'type':_0x48adea[_0x333532(0x157)][_0x333532(0x98)]}),this[_0x333532(0x9d)]['updatePermissionPoint'](new _0x48cd6e[(_0x333532(0x286))](this[_0x333532(0x27d)])['id'],!0x1)):this[_0x333532(0x9d)][_0x333532(0x22d)](new _0x48cd6e[(_0x333532(0x286))](this['unitID'])['id'],!0x0);})))),this['disposeWithMe'](_0x28e235['toDisposable'](this[_0x3a7fad(0x3a9)][_0x3a7fad(0xe4)][_0x3a7fad(0x3cd)](_0x1707a5=>{const _0x2cb12b=_0x3a7fad;_0x1707a5===_0x158ddb[_0x2cb12b(0x27e)]?this[_0x2cb12b(0x2b5)]():_0x1707a5===_0x158ddb['OFFLINE']&&this['_toggleOffline']();}))),this[_0x3a7fad(0x41b)](_0x28e235[_0x3a7fad(0x23e)](this[_0x3a7fad(0x3a9)][_0x3a7fad(0x211)][_0x3a7fad(0x3cd)](_0x32d328=>{const _0x499371=_0x3a7fad;try{switch(_0x32d328[_0x499371(0x12d)]){case _0x4ecbea['CollaborationEvent'][_0x499371(0x209)]:{this[_0x499371(0x18f)](_0x4ecbea['parseProtocolChangeset'](_0x32d328[_0x499371(0xa5)]));break;}case _0x4ecbea[_0x499371(0x1e6)][_0x499371(0x3bd)]:{this['_onRemoteACK'](_0x32d328[_0x499371(0xa5)]);break;}case _0x4ecbea[_0x499371(0x1e6)][_0x499371(0x2fe)]:{this[_0x499371(0x438)]();break;}case _0x4ecbea[_0x499371(0x1e6)]['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x499371(0x8b)](_0x32d328[_0x499371(0xa5)][_0x499371(0xdc)]['map'](_0x1ba43b=>_0x4ecbea[_0x499371(0x33f)](_0x1ba43b)));break;}case _0x4ecbea['CollaborationEvent'][_0x499371(0xda)]:this[_0x499371(0x438)]({'isPermissionRej':!0x0});}}catch(_0x40ad23){throw console['error'](_0x499371(0x414),_0x40ad23),_0x40ad23;}}))),this[_0x3a7fad(0x3d6)];}[_0x3f6827(0x3f0)](){const _0x429933=_0x3f6827;this[_0x429933(0x37c)]=!0x1;}['_lockTransition'](){const _0x4a9b34=_0x3f6827;if(this[_0x4a9b34(0x37c)])throw new Error(_0x4a9b34(0x2e8));this[_0x4a9b34(0x37c)]=!0x0;}[_0x3f6827(0x19e)](_0x391701){const _0x323cca=_0x3f6827;this[_0x323cca(0x3c4)](),this[_0x323cca(0x182)](this[_0x323cca(0x3d6)]['appendMutation'](_0x391701)),this[_0x323cca(0x3f0)]();}[_0x3f6827(0x18f)](_0x60750f){const _0x2c9a07=_0x3f6827;if(!(_0x60750f['revision']<=this['_revisionService'][_0x2c9a07(0x41e)](this[_0x2c9a07(0x27d)]))){if(this[_0x2c9a07(0x3f8)]){this['_remoteChangesetQueue']['push'](_0x60750f);return;}this[_0x2c9a07(0x18a)](_0x60750f);}}[_0x3f6827(0x2f3)](){const _0x267dca=_0x3f6827;this[_0x267dca(0x175)]['forEach'](_0x87f066=>this[_0x267dca(0x18a)](_0x87f066)),this[_0x267dca(0x175)]=[];}['_applyRemoteChangeset'](_0x332857){const _0x16d9ba=_0x3f6827,_0x4ed6ed=this[_0x16d9ba(0x3c7)][_0x16d9ba(0xba)][_0x16d9ba(0xd7)](this[_0x16d9ba(0x3c7)][_0x16d9ba(0xba)][_0x16d9ba(0x2ff)]()[_0x16d9ba(0x2b7)])(_0x332857['mutations'],null)||_0x332857[_0x16d9ba(0x28b)],_0x55b3b8={..._0x332857,'mutations':_0x4ed6ed};this['_lockTransition'](),this[_0x16d9ba(0x182)](this[_0x16d9ba(0x3d6)][_0x16d9ba(0x134)](_0x55b3b8)),this['_unlockTransition']();}[_0x3f6827(0x14c)](_0x504a9c){const _0x2b17e0=_0x3f6827;this['_lockTransition'](),this[_0x2b17e0(0x182)](this[_0x2b17e0(0x3d6)]['onRemoteAck'](_0x504a9c)),this['_unlockTransition']();}[_0x3f6827(0x438)](_0x50e659){const _0x36e3a2=_0x3f6827;this[_0x36e3a2(0x3c4)](),this[_0x36e3a2(0x182)](this[_0x36e3a2(0x3d6)][_0x36e3a2(0x335)](_0x50e659)),this[_0x36e3a2(0x3f0)]();}[_0x3f6827(0x8b)](_0x388b5a){const _0x5bc9fc=_0x3f6827;if(!(this[_0x5bc9fc(0x3d6)]instanceof _0x1aa56b))throw new TypeError(_0x5bc9fc(0x42f));const _0x5b237b=_0x388b5a[_0x5bc9fc(0x25f)](_0x42f710=>{const _0x351e6c=_0x5bc9fc,_0x1c69bd=this['_compressMutationService'][_0x351e6c(0xba)][_0x351e6c(0xd7)](this[_0x351e6c(0x3c7)]['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x42f710[_0x351e6c(0x28b)],null)||_0x42f710[_0x351e6c(0x28b)];return{..._0x42f710,'mutations':_0x1c69bd};});this[_0x5bc9fc(0x3c4)](),this[_0x5bc9fc(0x182)](this['_state']['onMissedChangesetFetched'](_0x5b237b)),this[_0x5bc9fc(0x3f0)]();}[_0x3f6827(0xb4)](){const _0x5912fc=_0x3f6827;this[_0x5912fc(0x3c4)](),this[_0x5912fc(0x182)](this[_0x5912fc(0x3d6)][_0x5912fc(0x2f4)]()),this[_0x5912fc(0x3f0)]();}[_0x3f6827(0x2b5)](){const _0x106297=_0x3f6827;this[_0x106297(0x3c4)](),this['_updateState'](this[_0x106297(0x3d6)]['toggleOnline']()),this['_unlockTransition']();}async[_0x3f6827(0x385)](){return new Promise(_0x33a53b=>{const _0x2a70ab=_0x45d3;this[_0x2a70ab(0x3a9)][_0x2a70ab(0xe4)]['pipe'](_0x1086dc[_0x2a70ab(0x142)](0x1))[_0x2a70ab(0x3cd)](async _0x4584d3=>{_0x33a53b(await this['_createInitialStateImpl'](_0x4584d3===_0x158ddb['ONLINE']));});});}['_createHandler'](){const _0x37b91b=this['unitID'];return{'onStateChange':(_0x2268b9,_0x2e9af5)=>{const _0x3440cd=_0x45d3;if(_0x2268b9!==this[_0x3440cd(0x3d6)])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x2268b9['status']+'\x0aAfter:\x20'+_0x2e9af5[_0x3440cd(0x2de)]+_0x3440cd(0x449)+this[_0x3440cd(0x3d6)][_0x3440cd(0x2de)]);this[_0x3440cd(0x182)](_0x2e9af5);},'onSendChangeset':_0x4487d4=>{const _0x534097=_0x45d3,_0x5e8ce0={'eventID':_0x4ecbea[_0x534097(0x1e6)][_0x534097(0x206)],'data':{'unitID':_0x4487d4[_0x534097(0x27d)],'unitType':this[_0x534097(0xcb)],'changeset':_0x4487d4,'memberID':this[_0x534097(0x3a9)][_0x534097(0x390)]()}};this[_0x534097(0x3a9)][_0x534097(0x447)](_0x5e8ce0,this['unitID']);},'onMissingChangesets':({from:_0x37fdd3,to:_0x301804})=>{const _0x134970=_0x45d3;this[_0x134970(0x1af)][_0x134970(0x293)](_0x134970(0x265),'fetching\x20missing\x20changesets\x20from\x20'+_0x37fdd3+_0x134970(0x3ab)+_0x301804);const _0x21f910={'eventID':_0x4ecbea[_0x134970(0x1e6)]['FETCH_MISSING'],'data':{'unitID':_0x37b91b,'unitType':this['_type'],'from':_0x37fdd3,'to':_0x301804}};this[_0x134970(0x3a9)][_0x134970(0x447)](_0x21f910,this[_0x134970(0x27d)]);}};}async[_0x3f6827(0x315)](_0x4bb21f){const _0x36abbb=_0x3f6827;var _0x91ce03,_0x8a0d9b;const _0x340e41=await this[_0x36abbb(0x2a6)][_0x36abbb(0x170)](this['unitID']),_0x3a6fac=(_0x91ce03=_0x340e41==null?void 0x0:_0x340e41[_0x36abbb(0x28b)])!=null?_0x91ce03:[],_0x449564=(_0x8a0d9b=_0x340e41==null?void 0x0:_0x340e41['awaitingChangeset'])!=null?_0x8a0d9b:null,_0x322f6f=this['unitID'];try{this[_0x36abbb(0x441)](_0x449564,_0x3a6fac);}catch(_0x5935fc){this['_logService'][_0x36abbb(0x270)](_0x5935fc);}const _0x49235a=this['_createHandler']();if(_0x4bb21f){const _0x4836d6=_0x1aaec5(this[_0x36abbb(0x3ef)],_0x322f6f,this[_0x36abbb(0xcb)],_0x449564,_0x3a6fac,_0x49235a);return _0x4836d6 instanceof _0x4b179e?_0x4836d6['_schedule']():(_0x4836d6 instanceof _0x24db4f||_0x4836d6 instanceof _0x3a3533)&&_0x4836d6[_0x36abbb(0x355)](),_0x4836d6;}return this[_0x36abbb(0x3ef)][_0x36abbb(0x42d)](_0x369c09,_0x322f6f,this[_0x36abbb(0xcb)],_0x449564,_0x3a6fac,_0x49235a);}[_0x3f6827(0x441)](_0x41c03a,_0x5b046d){const _0x29e157=_0x3f6827;var _0x20ca67,_0x4c55c8;const _0x3cfdfa=this[_0x29e157(0x3c7)][_0x29e157(0xba)][_0x29e157(0xd7)](this[_0x29e157(0x3c7)][_0x29e157(0xba)][_0x29e157(0x2ff)]()[_0x29e157(0x2b7)]);(_0x20ca67=_0x3cfdfa((_0x41c03a==null?void 0x0:_0x41c03a['mutations'])||[],null))==null||_0x20ca67[_0x29e157(0x384)](_0x42c84f=>this[_0x29e157(0x11a)][_0x29e157(0x203)](_0x42c84f['id'],_0x42c84f[_0x29e157(0x38c)])),(_0x4c55c8=_0x3cfdfa(_0x5b046d||[],null))==null||_0x4c55c8[_0x29e157(0x384)](_0x29f357=>this[_0x29e157(0x11a)]['executeCommand'](_0x29f357['id'],_0x29f357[_0x29e157(0x38c)]));}};_0x1d527e=_0x48c502([_0x3a5edf(0x3,_0x28e235['Inject'](_0x28e235['Injector'])),_0x3a5edf(0x4,_0x28e235['Inject'](_0x538e2a[_0x3f6827(0x249)])),_0x3a5edf(0x5,_0x28e235[_0x3f6827(0xb5)](_0x4ecbea['CompressMutationService'])),_0x3a5edf(0x6,_0x28e235[_0x3f6827(0xb5)](_0x28e235[_0x3f6827(0x3a0)])),_0x3a5edf(0x7,_0x28e235[_0x3f6827(0xb5)](_0x4ecbea[_0x3f6827(0x32c)])),_0x3a5edf(0x8,_0x28e235[_0x3f6827(0x40e)]),_0x3a5edf(0x9,_0x28e235[_0x3f6827(0x23d)]),_0x3a5edf(0xa,_0x1d23ef[_0x3f6827(0x89)]),_0x3a5edf(0xb,_0x28e235['IPermissionService']),_0x3a5edf(0xc,_0x28e235[_0x3f6827(0x368)](_0x38f70a))],_0x1d527e);let _0x7bd32e=class extends _0x1d527e{constructor(_0x46c3bf,_0xac4857,_0x323083,_0x5c770c,_0x1dd42d,_0x29c61b,_0x3d4de6,_0x33cef3,_0x584e69,_0x14b098,_0x2e46c1,_0x5e3ac7,_0x3f4345,_0x23a2ea,_0x297245,_0x59748f,_0x59f424){const _0x4038fb=_0x3f6827;super(_0x46c3bf,_0xac4857,_0x323083,_0x5c770c,_0x1dd42d,_0x29c61b,_0x3d4de6,_0x33cef3,_0x3f4345,_0x23a2ea,_0x297245,_0x59748f,_0x59f424),this[_0x4038fb(0x27d)]=_0x46c3bf,this['type']=_0xac4857,this[_0x4038fb(0x36b)]=_0x323083,this[_0x4038fb(0xbd)]=_0x584e69,this[_0x4038fb(0x1c5)]=_0x14b098,this['_docTransformSelectionsService']=_0x2e46c1,this[_0x4038fb(0x2c8)]=_0x5e3ac7;}[_0x3f6827(0x41c)](){const _0x310235=_0x3f6827,_0x13ca5f=super[_0x310235(0x41c)]();return _0x13ca5f[_0x310235(0x405)]=_0x28fdc7=>this[_0x310235(0x1c5)]['transformIMECache'](_0x28fdc7),_0x13ca5f[_0x310235(0x2b4)]=_0x253d4a=>this[_0x310235(0x1d6)]['transformSelections'](_0x253d4a),_0x13ca5f['onSyncEditingCollabCursor']=_0x2e2948=>this['_docSyncEditingCollabCursorService'][_0x310235(0x25d)](_0x2e2948),_0x13ca5f[_0x310235(0xd3)]=_0x23ab62=>this[_0x310235(0x1c5)][_0x310235(0x3ee)](_0x23ab62),_0x13ca5f;}async[_0x3f6827(0x3e4)](){const _0x2bb8d6=_0x3f6827,_0x4dc39d=await super[_0x2bb8d6(0x3e4)]();return this[_0x2bb8d6(0xbd)][_0x2bb8d6(0x2af)][_0x2bb8d6(0x2ef)](_0x2820f3['takeUntil'](this[_0x2bb8d6(0x388)]))[_0x2bb8d6(0x3cd)](_0x1a43a6=>{const _0x6acb64=_0x2bb8d6;if(_0x1a43a6==null)return;const {unitId:_0x222cca,redoState:_0xf53716,commandId:_0x4d4a29}=_0x1a43a6;if(_0x222cca!==this['unitID'])return;const _0x31ff5={'id':_0x4d4a29,'type':_0x28e235[_0x6acb64(0xf3)][_0x6acb64(0xf2)],'params':{'unitId':_0x222cca,'actions':_0xf53716[_0x6acb64(0x97)],'textRanges':null}};this[_0x6acb64(0x19e)](_0x31ff5);}),_0x4dc39d;}};_0x7bd32e=_0x48c502([_0x3a5edf(0x3,_0x28e235[_0x3f6827(0xb5)](_0x28e235[_0x3f6827(0x3e8)])),_0x3a5edf(0x4,_0x28e235[_0x3f6827(0xb5)](_0x538e2a[_0x3f6827(0x249)])),_0x3a5edf(0x5,_0x28e235[_0x3f6827(0xb5)](_0x4ecbea['CompressMutationService'])),_0x3a5edf(0x6,_0x28e235['Inject'](_0x28e235[_0x3f6827(0x3a0)])),_0x3a5edf(0x7,_0x28e235[_0x3f6827(0xb5)](_0x4ecbea[_0x3f6827(0x32c)])),_0x3a5edf(0x8,_0x28e235[_0x3f6827(0xb5)](_0x4e3741['DocStateChangeManagerService'])),_0x3a5edf(0x9,_0x28e235[_0x3f6827(0xb5)](_0x12799f)),_0x3a5edf(0xa,_0x28e235[_0x3f6827(0xb5)](_0x1e8d42)),_0x3a5edf(0xb,_0x28e235['Inject'](_0x581849)),_0x3a5edf(0xc,_0x28e235[_0x3f6827(0x40e)]),_0x3a5edf(0xd,_0x28e235[_0x3f6827(0x23d)]),_0x3a5edf(0xe,_0x1d23ef[_0x3f6827(0x89)]),_0x3a5edf(0xf,_0x28e235[_0x3f6827(0x30d)]),_0x3a5edf(0x10,_0x28e235[_0x3f6827(0x368)](_0x38f70a))],_0x7bd32e),_0x538e2a[_0x3f6827(0x295)]=class extends _0x1d527e{constructor(_0xea00cb,_0x3a7cf6,_0x194bd8,_0x40bcc8,_0x1dd368,_0x1189a2,_0x3f12e9,_0xb95f33,_0x43f3d8,_0x2bf8bf,_0x4f0f95,_0x473404,_0x24c497,_0x4ede99){const _0x30a2b6=_0x3f6827;super(_0xea00cb,_0x3a7cf6,_0x194bd8,_0x40bcc8,_0x1dd368,_0x1189a2,_0x3f12e9,_0xb95f33,_0x2bf8bf,_0x4f0f95,_0x473404,_0x24c497,_0x4ede99),this['unitID']=_0xea00cb,this[_0x30a2b6(0x1ba)]=_0x3a7cf6,this[_0x30a2b6(0x36b)]=_0x194bd8,this[_0x30a2b6(0x1c7)]=_0x43f3d8;}[_0x3f6827(0x41c)](){const _0x34a3cb=_0x3f6827,_0x462546=super[_0x34a3cb(0x41c)]();return _0x462546[_0x34a3cb(0x2b4)]=_0x1ff8ea=>this['_sheetTransformSelectionsService']['transformSelections'](_0x1ff8ea),_0x462546;}async[_0x3f6827(0x3e4)](){const _0x58157f=_0x3f6827,_0x1a6560=await super[_0x58157f(0x3e4)]();return this[_0x58157f(0x41b)](this[_0x58157f(0x11a)][_0x58157f(0x161)]((_0x5b67d6,_0x33a5f9)=>{const _0x14f271=_0x58157f;if(_0x5b67d6['type']!==_0x28e235[_0x14f271(0xf3)][_0x14f271(0xf2)]||_0x33a5f9!=null&&_0x33a5f9['fromCollab']||_0x33a5f9!=null&&_0x33a5f9[_0x14f271(0xe0)])return;const _0x537907=_0x5b67d6[_0x14f271(0x38c)];if((_0x537907==null?void 0x0:_0x537907[_0x14f271(0xdf)])!==this[_0x14f271(0x27d)])return;const _0x478a07=_0x5b67d6,_0x510976=this[_0x14f271(0x3c7)][_0x14f271(0xba)][_0x14f271(0xd7)](this[_0x14f271(0x3c7)][_0x14f271(0xba)][_0x14f271(0x2ff)]()['COMPRESS_MUTATION_SEND'])([_0x478a07],null)||[_0x478a07];this[_0x14f271(0x19e)](_0x510976[0x0]);})),_0x1a6560;}},_0x538e2a[_0x3f6827(0x295)]=_0x48c502([_0x3a5edf(0x3,_0x28e235[_0x3f6827(0xb5)](_0x28e235[_0x3f6827(0x3e8)])),_0x3a5edf(0x4,_0x28e235['Inject'](_0x538e2a['LocalCacheService'])),_0x3a5edf(0x5,_0x28e235['Inject'](_0x4ecbea[_0x3f6827(0x1b1)])),_0x3a5edf(0x6,_0x28e235[_0x3f6827(0xb5)](_0x28e235[_0x3f6827(0x3a0)])),_0x3a5edf(0x7,_0x28e235['Inject'](_0x4ecbea['RevisionService'])),_0x3a5edf(0x8,_0x28e235[_0x3f6827(0xb5)](_0x187ea5)),_0x3a5edf(0x9,_0x28e235[_0x3f6827(0x40e)]),_0x3a5edf(0xa,_0x28e235['ICommandService']),_0x3a5edf(0xb,_0x1d23ef[_0x3f6827(0x89)]),_0x3a5edf(0xc,_0x28e235['IPermissionService']),_0x3a5edf(0xd,_0x28e235[_0x3f6827(0x368)](_0x38f70a))],_0x538e2a['SheetCollaborationEntity']);const _0x4fd195=[_0x3f6827(0x3ec),_0x3f6827(0x140),_0x3f6827(0x14a),_0x3f6827(0x451),_0x3f6827(0x377),_0x3f6827(0x365)];class _0x18ea56 extends _0x28e235[_0x3f6827(0x29c)]{constructor(){const _0x13d4ae=_0x3f6827;super(...arguments),_0x2b7d82(this,_0x13d4ae(0x3da),new Map()),_0x2b7d82(this,_0x13d4ae(0x252),0x0);}[_0x3f6827(0x378)](_0x5ca628){const _0xfd270b=_0x3f6827;if(this[_0xfd270b(0x3da)][_0xfd270b(0x3c0)](_0x5ca628))return this['_assignedColors']['get'](_0x5ca628);const _0x49a0ee=_0x4fd195[this[_0xfd270b(0x252)]];return this[_0xfd270b(0x252)]=(this['_colorIndex']+0x1)%_0x4fd195[_0xfd270b(0x16b)],this[_0xfd270b(0x3da)][_0xfd270b(0x2b2)](_0x5ca628,_0x49a0ee),_0x49a0ee;}}var _0x3b3919=Object['defineProperty'],_0x409b18=Object[_0x3f6827(0x1cb)],_0x2387c2=(_0x29b022,_0x1ffbfb,_0x4cfde0,_0x2dbba7)=>{const _0x407a02=_0x3f6827;for(var _0x2e8682=_0x2dbba7>0x1?void 0x0:_0x2dbba7?_0x409b18(_0x1ffbfb,_0x4cfde0):_0x1ffbfb,_0x2f67ce=_0x29b022[_0x407a02(0x16b)]-0x1,_0x489fc4;_0x2f67ce>=0x0;_0x2f67ce--)(_0x489fc4=_0x29b022[_0x2f67ce])&&(_0x2e8682=(_0x2dbba7?_0x489fc4(_0x1ffbfb,_0x4cfde0,_0x2e8682):_0x489fc4(_0x2e8682))||_0x2e8682);return _0x2dbba7&&_0x2e8682&&_0x3b3919(_0x1ffbfb,_0x4cfde0,_0x2e8682),_0x2e8682;},_0x1d3f2c=(_0x290773,_0xad863f)=>(_0x5bc29d,_0x20c9dd)=>_0xad863f(_0x5bc29d,_0x20c9dd,_0x290773);const _0x3c3ff2=0x12c,_0x259694=0x64,_0x33c6a1=()=>{let _0x555a7b=[],_0x23114e=!0x1;return _0x1195fd=>{_0x555a7b['push'](_0x1195fd),_0x23114e||(_0x23114e=!0x0,setTimeout(()=>{_0x555a7b['forEach'](_0x3be76c=>_0x3be76c()),_0x555a7b=[],_0x23114e=!0x1;}));};};let _0x2b4698=class extends _0x28e235[_0x3f6827(0x93)]{constructor(_0x47c534,_0x185919,_0x434978,_0x447554,_0x2796ea,_0x4e5d7a,_0x851b2b,_0x33a358){const _0x44c4ae=_0x3f6827;super(),_0x2b7d82(this,_0x44c4ae(0xf4),!0x1),_0x2b7d82(this,'_init',!0x1),_0x2b7d82(this,_0x44c4ae(0xc8),new _0x2820f3[(_0x44c4ae(0x371))](new Map())),_0x2b7d82(this,_0x44c4ae(0x35c),this[_0x44c4ae(0xc8)]['asObservable']()),_0x2b7d82(this,'_roomMembers$',new _0x2820f3[(_0x44c4ae(0x371))]([])),_0x2b7d82(this,'roomMembers$',this[_0x44c4ae(0x3c2)][_0x44c4ae(0x2ef)](_0x2820f3[_0x44c4ae(0x123)](_0x3c3ff2))),_0x2b7d82(this,_0x44c4ae(0x36f),_0x51f7cc((_0x1a5a81,_0x5abb83)=>{const _0x4c0120=_0x44c4ae,_0x27ea09={'eventID':_0x4ecbea[_0x4c0120(0x1e6)][_0x4c0120(0x34a)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x4c0120(0x390)](),'selection':_0x77499d[_0x4c0120(0x359)](_0x1a5a81,_0x5abb83[_0x4c0120(0x12f)])}};this[_0x4c0120(0x3a9)][_0x4c0120(0x447)](_0x27ea09,this[_0x4c0120(0x27d)]);},_0x259694)),(this[_0x44c4ae(0x27d)]=_0x47c534,this['_session']=_0x185919,this[_0x44c4ae(0x3ef)]=_0x434978,this['_colorAssignService']=_0x447554,this[_0x44c4ae(0x13c)]=_0x2796ea,this[_0x44c4ae(0x156)]=_0x4e5d7a,this[_0x44c4ae(0x11a)]=_0x851b2b,this['_refRangeService']=_0x33a358);}get['cursorInfo'](){const _0x38c3b6=_0x3f6827;return this[_0x38c3b6(0xc8)][_0x38c3b6(0x13a)]();}get[_0x3f6827(0x208)](){const _0x47ac56=_0x3f6827;return this['_roomMembers$'][_0x47ac56(0x13a)]();}['dispose'](){const _0xeb71f0=_0x3f6827;super[_0xeb71f0(0x179)](),this[_0xeb71f0(0xc8)][_0xeb71f0(0x18d)](new Map()),this[_0xeb71f0(0xc8)]['complete'](),this[_0xeb71f0(0x3c2)][_0xeb71f0(0x18d)]([]),this['_roomMembers$']['complete']();}[_0x3f6827(0xf8)](){const _0x26be15=_0x3f6827;this[_0x26be15(0x3e4)]||(this['_init']=!0x0,this[_0x26be15(0x3a9)][_0x26be15(0xe4)][_0x26be15(0x2ef)](_0x2820f3['takeUntil'](this[_0x26be15(0x388)]))[_0x26be15(0x3cd)](_0x51c915=>{const _0x58b63c=_0x26be15;_0x51c915===_0x158ddb['ONLINE']?this[_0x58b63c(0x2b5)]():this[_0x58b63c(0xb4)]();}),this['_session'][_0x26be15(0x211)]['pipe'](_0x2820f3[_0x26be15(0xeb)](this[_0x26be15(0x388)]))[_0x26be15(0x3cd)](_0x408195=>{const _0x2a182a=_0x26be15,_0xe2d8a0=_0x408195[_0x2a182a(0x12d)];_0xe2d8a0===_0x4ecbea[_0x2a182a(0x1e6)]['UPDATE_CURSOR']&&this[_0x2a182a(0x443)](_0x408195),_0xe2d8a0===_0x4ecbea['CollaborationEvent'][_0x2a182a(0x43e)]&&this[_0x2a182a(0x2fa)](_0x408195);}),this['_onRefRangeChange'](),this[_0x26be15(0x41b)](this[_0x26be15(0x11a)][_0x26be15(0x161)](_0x3c19d6=>{const _0x170a32=_0x26be15;if(this[_0x170a32(0xf4)]&&_0x3c19d6['id']===_0x48cd6e[_0x170a32(0x26f)]['id']&&_0x3c19d6[_0x170a32(0x38c)]['unitId']===this['unitID']){const _0x1f2493=_0x3c19d6[_0x170a32(0x38c)];this[_0x170a32(0x36f)](_0x1f2493[_0x170a32(0x3b2)],_0x1f2493[_0x170a32(0x275)][0x0]);}})));}[_0x3f6827(0x443)](_0x2a6d73){const _0x345777=_0x3f6827;var _0x58f88e,_0x5c295e;const {memberID:_0x483f79,selection:_0x151bd2}=_0x2a6d73[_0x345777(0xa5)],{sheetName:_0x4c8e6f,range:_0x131d4a}=_0x77499d[_0x345777(0x8f)](_0x151bd2),_0x443077={'name':(_0x5c295e=(_0x58f88e=this[_0x345777(0x13c)][_0x345777(0x86)](this[_0x345777(0x27d)],_0x483f79))==null?void 0x0:_0x58f88e['name'])!=null?_0x5c295e:_0x345777(0x80),'range':this[_0x345777(0x44b)](_0x4c8e6f,_0x131d4a),'sheetID':_0x4c8e6f,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x483f79),'selection':_0x151bd2},_0x32bdbd=this[_0x345777(0x3a1)];_0x32bdbd['set'](_0x483f79,_0x443077),this[_0x345777(0xc8)]['next'](_0x32bdbd);}['_onCursorDelete'](_0x5cefb0){const _0x2a658c=_0x3f6827,{memberID:_0x162690}=_0x5cefb0[_0x2a658c(0xa5)],_0x380f2f=this[_0x2a658c(0x3a1)];_0x380f2f[_0x2a658c(0x458)](_0x162690),this[_0x2a658c(0xc8)][_0x2a658c(0x18d)](_0x380f2f);}[_0x3f6827(0x44b)](_0x326f14,_0x2f5b66){const _0x5b69bd=_0x3f6827;var _0x353ec5,_0x26f1df;const _0x1a0eaf=(_0x26f1df=(_0x353ec5=this[_0x5b69bd(0x156)]['getUniverSheetInstance'](this[_0x5b69bd(0x27d)]))==null?void 0x0:_0x353ec5[_0x5b69bd(0x1ab)](_0x326f14))==null?void 0x0:_0x26f1df[_0x5b69bd(0x42b)]();return(_0x1a0eaf==null?void 0x0:_0x1a0eaf[_0x5b69bd(0x11c)](_0x3a7a98=>_0x28e235[_0x5b69bd(0x2e0)][_0x5b69bd(0x43d)](_0x3a7a98,_0x2f5b66)))||_0x2f5b66;}[_0x3f6827(0x237)](){const _0x4a1afd=_0x3f6827,_0x3a3789=new _0x28e235['DisposableCollection'](),_0x16cc46=_0x33c6a1(),_0x287df0=()=>{const _0x383998=_0x45d3;_0x3a3789['dispose']();const _0xc52ba5=(_0x2984d9,_0x25a258,_0x3e0bf6,_0x489056)=>{const _0x34d9f2=_0x45d3;let _0x156159=[];switch(_0x2984d9['id']){case _0x48cd6e[_0x34d9f2(0x3ad)]['DeleteRangeMoveLeftCommandId']:{_0x156159=_0x48cd6e[_0x34d9f2(0x2d9)](_0x2984d9,_0x489056);break;}case _0x48cd6e['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x156159=_0x48cd6e['handleDeleteRangeMoveUp'](_0x2984d9,_0x489056);break;}case _0x48cd6e['EffectRefRangId'][_0x34d9f2(0x27a)]:{_0x156159=_0x48cd6e['handleInsertCol'](_0x2984d9,_0x489056);break;}case _0x48cd6e['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x156159=_0x48cd6e['handleInsertRangeMoveDown'](_0x2984d9,_0x489056);break;}case _0x48cd6e[_0x34d9f2(0x3ad)][_0x34d9f2(0x2ad)]:{_0x156159=_0x48cd6e['handleInsertRangeMoveRight'](_0x2984d9,_0x489056);break;}case _0x48cd6e[_0x34d9f2(0x3ad)][_0x34d9f2(0x43b)]:{_0x156159=_0x48cd6e[_0x34d9f2(0x215)](_0x2984d9,_0x489056);break;}case _0x48cd6e[_0x34d9f2(0x3ad)]['MoveRangeCommandId']:{_0x156159=_0x48cd6e[_0x34d9f2(0x106)](_0x2984d9,_0x489056);break;}case _0x48cd6e['EffectRefRangId'][_0x34d9f2(0x459)]:{_0x156159=_0x48cd6e[_0x34d9f2(0x2cb)](_0x2984d9,_0x489056);break;}case _0x48cd6e[_0x34d9f2(0x3ad)][_0x34d9f2(0x1a1)]:{_0x156159=_0x48cd6e['handleIRemoveRow'](_0x2984d9,_0x489056);break;}}const _0x535155=_0x48cd6e[_0x34d9f2(0x9e)](_0x156159,_0x489056),_0x54baef=this[_0x34d9f2(0x3a1)][_0x34d9f2(0x450)](_0x25a258);if(_0x54baef&&_0x535155){const _0x28f1eb={..._0x54baef,'range':_0x535155};this[_0x34d9f2(0x3a1)]['set'](_0x25a258,_0x28f1eb),_0x16cc46(()=>{const _0x167af6=_0x34d9f2,_0x3af83b=this[_0x167af6(0x25e)]['registerRefRange'](_0x535155,_0x1c4a38=>(_0x3af83b['dispose'](),_0xc52ba5(_0x1c4a38,_0x25a258,_0x3e0bf6,_0x535155)));_0x3a3789['add'](_0x3af83b);});}return{'redos':[],'undos':[]};};this[_0x383998(0x3a1)]['forEach']((_0x1d4af9,_0x2d1b59)=>{const _0x359b14=_0x383998,{range:_0x202059,sheetID:_0xbce87b}=_0x1d4af9,_0x524fc2=this[_0x359b14(0x25e)][_0x359b14(0x39a)](_0x202059,_0x509095=>(_0x524fc2[_0x359b14(0x179)](),_0xc52ba5(_0x509095,_0x2d1b59,_0xbce87b,_0x202059)));_0x3a3789['add'](_0x524fc2);});};this[_0x4a1afd(0x41b)](_0x28e235['toDisposable'](this[_0x4a1afd(0xc8)][_0x4a1afd(0x3cd)](()=>{_0x287df0();})));}[_0x3f6827(0x2b5)](){const _0x550e31=_0x3f6827;var _0xc9359e,_0xc36c18;if(this['_online']=!0x0,((_0xc9359e=this['_univerInstanceService'][_0x550e31(0x1a5)]())==null?void 0x0:_0xc9359e[_0x550e31(0x322)]())!==this[_0x550e31(0x27d)])return;const _0x37d2f2=(_0xc36c18=this['_injector'][_0x550e31(0x450)](_0x48cd6e[_0x550e31(0x38e)])[_0x550e31(0x12a)]())==null?void 0x0:_0xc36c18[0x0],_0x3cf6c5=this[_0x550e31(0x156)][_0x550e31(0xd1)](_0x28e235['UniverInstanceType'][_0x550e31(0x33b)])[_0x550e31(0x155)]();_0x37d2f2&&_0x3cf6c5&&this[_0x550e31(0x36f)](_0x3cf6c5[_0x550e31(0x32d)](),_0x37d2f2);}[_0x3f6827(0xb4)](){const _0x57bfe5=_0x3f6827;this[_0x57bfe5(0xf4)]=!0x1;}};_0x2b4698=_0x2387c2([_0x1d3f2c(0x2,_0x28e235[_0x3f6827(0xb5)](_0x28e235[_0x3f6827(0x3e8)])),_0x1d3f2c(0x3,_0x28e235['Inject'](_0x18ea56)),_0x1d3f2c(0x4,_0x28e235[_0x3f6827(0xb5)](_0x1d7fc4)),_0x1d3f2c(0x5,_0x28e235[_0x3f6827(0x19b)]),_0x1d3f2c(0x6,_0x28e235[_0x3f6827(0x23d)]),_0x1d3f2c(0x7,_0x28e235['Inject'](_0x48cd6e[_0x3f6827(0x277)]))],_0x2b4698);var _0x1b320c=Object['defineProperty'],_0x112e7f=Object[_0x3f6827(0x1cb)],_0x4747a8=(_0x130c3f,_0x394d3f,_0x48ef13,_0x37fd27)=>{const _0x315afc=_0x3f6827;for(var _0x4f6b08=_0x37fd27>0x1?void 0x0:_0x37fd27?_0x112e7f(_0x394d3f,_0x48ef13):_0x394d3f,_0x549341=_0x130c3f[_0x315afc(0x16b)]-0x1,_0x525428;_0x549341>=0x0;_0x549341--)(_0x525428=_0x130c3f[_0x549341])&&(_0x4f6b08=(_0x37fd27?_0x525428(_0x394d3f,_0x48ef13,_0x4f6b08):_0x525428(_0x4f6b08))||_0x4f6b08);return _0x37fd27&&_0x4f6b08&&_0x1b320c(_0x394d3f,_0x48ef13,_0x4f6b08),_0x4f6b08;},_0x471114=(_0x3caefd,_0x4f903e)=>(_0x57dac0,_0x29b81d)=>_0x4f903e(_0x57dac0,_0x29b81d,_0x3caefd);const _0x3d7af0=0x12c,_0x1d5408=0x64;let _0x470bc7=class extends _0x28e235[_0x3f6827(0x93)]{constructor(_0x52e97f,_0x40a23e,_0x19a557,_0x52da68,_0x36a9ed,_0x2792cb,_0xc4c7d2,_0x1da78d,_0x3fb60d){const _0x275400=_0x3f6827;super(),_0x2b7d82(this,_0x275400(0xf4),!0x1),_0x2b7d82(this,_0x275400(0x3e4),!0x1),_0x2b7d82(this,_0x275400(0xc8),new _0x2820f3[(_0x275400(0x371))](new Map())),_0x2b7d82(this,_0x275400(0x35c),this[_0x275400(0xc8)][_0x275400(0x1d2)]()),_0x2b7d82(this,_0x275400(0x3c2),new _0x2820f3[(_0x275400(0x371))]([])),_0x2b7d82(this,_0x275400(0x16e),this[_0x275400(0x3c2)][_0x275400(0x2ef)](_0x2820f3[_0x275400(0x123)](_0x3d7af0))),_0x2b7d82(this,'_updateLocalCursor',_0x51f7cc(_0x3cfea7=>{const _0x3f50fb=_0x275400,_0x62132b={'eventID':_0x4ecbea[_0x3f50fb(0x1e6)][_0x3f50fb(0x34a)],'data':{'unitID':this['unitID'],'memberID':this[_0x3f50fb(0x3a9)][_0x3f50fb(0x390)](),'selection':_0x190221(_0x3cfea7)}};this[_0x3f50fb(0x3a9)]['send'](_0x62132b,this['unitID']);},_0x1d5408)),(this[_0x275400(0x27d)]=_0x52e97f,this['_session']=_0x40a23e,this[_0x275400(0x3ef)]=_0x19a557,this[_0x275400(0x432)]=_0x52da68,this[_0x275400(0x13c)]=_0x36a9ed,this[_0x275400(0x41a)]=_0x2792cb,this[_0x275400(0x2b0)]=_0xc4c7d2,this[_0x275400(0x156)]=_0x1da78d,this['_commandService']=_0x3fb60d);}get['cursorInfo'](){const _0x21e2a1=_0x3f6827;return this[_0x21e2a1(0xc8)][_0x21e2a1(0x13a)]();}get['roomMembers'](){const _0x2c7c18=_0x3f6827;return this[_0x2c7c18(0x3c2)]['getValue']();}[_0x3f6827(0x179)](){const _0x55408d=_0x3f6827;super[_0x55408d(0x179)](),this[_0x55408d(0xc8)][_0x55408d(0x18d)](new Map()),this[_0x55408d(0xc8)][_0x55408d(0x35b)](),this['_roomMembers$'][_0x55408d(0x18d)]([]),this[_0x55408d(0x3c2)][_0x55408d(0x35b)]();}[_0x3f6827(0xf8)](){const _0x1f8250=_0x3f6827;this[_0x1f8250(0x3e4)]||(this[_0x1f8250(0x3e4)]=!0x0,this[_0x1f8250(0x3a9)][_0x1f8250(0xe4)][_0x1f8250(0x2ef)](_0x2820f3['takeUntil'](this[_0x1f8250(0x388)]))[_0x1f8250(0x3cd)](_0x42348e=>{const _0xd2441f=_0x1f8250;_0x42348e===_0x158ddb[_0xd2441f(0x27e)]?this[_0xd2441f(0x2b5)]():this[_0xd2441f(0xb4)]();}),this['_session'][_0x1f8250(0x211)][_0x1f8250(0x2ef)](_0x2820f3['takeUntil'](this[_0x1f8250(0x388)]))[_0x1f8250(0x3cd)](_0x356428=>{const _0x2cfe52=_0x1f8250,_0x47c2b5=_0x356428[_0x2cfe52(0x12d)];_0x47c2b5===_0x4ecbea['CollaborationEvent'][_0x2cfe52(0x34a)]&&this[_0x2cfe52(0x443)](_0x356428),_0x47c2b5===_0x4ecbea[_0x2cfe52(0x1e6)]['USERS_LEAVE']&&this[_0x2cfe52(0x2fa)](_0x356428);}),this[_0x1f8250(0x41b)](this[_0x1f8250(0x11a)][_0x1f8250(0x161)](_0x40fe52=>{const _0x4ecaf2=_0x1f8250,_0x3ab493=_0x40fe52[_0x4ecaf2(0x38c)];_0x3ab493!=null&&this[_0x4ecaf2(0xf4)]&&_0x40fe52['id']===_0x4e3741[_0x4ecaf2(0x16a)]['id']&&_0x3ab493[_0x4ecaf2(0xdf)]===this[_0x4ecaf2(0x27d)]&&_0x3ab493[_0x4ecaf2(0x118)]===!0x1&&this['_updateLocalCursor'](_0x3ab493[_0x4ecaf2(0x1f1)]);})),this[_0x1f8250(0x41a)][_0x1f8250(0x16d)]['pipe'](_0x2820f3[_0x1f8250(0xeb)](this[_0x1f8250(0x388)]))['subscribe'](_0x5175df=>{const _0x4e14b7=_0x1f8250;if((_0x5175df==null?void 0x0:_0x5175df[_0x4e14b7(0x27d)])!==this[_0x4e14b7(0x27d)])return;const _0x229e3c={'eventID':_0x4ecbea[_0x4e14b7(0x1e6)][_0x4e14b7(0x34a)],'data':_0x5175df};this[_0x4e14b7(0x443)](_0x229e3c);}),this[_0x1f8250(0x41b)](this[_0x1f8250(0x11a)][_0x1f8250(0x161)](_0x5b5ded=>{const _0x210e96=_0x1f8250;if(_0x5b5ded['params']==null)return;const _0x3088cc=_0x5b5ded['params'];if(_0x5b5ded['id']!==_0x4e3741['RichTextEditingMutation']['id']||_0x3088cc[_0x210e96(0xdf)]!==this[_0x210e96(0x27d)])return;const _0xde9c81={'id':_0x210e96(0x255),'params':_0x3088cc},_0x55b7d3=this[_0x210e96(0x3a1)];for(const [_0x22cc00,_0x543317]of _0x55b7d3){const _0x4bc6b6={'id':_0x210e96(0x255),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x543317[_0x210e96(0x1f1)]}},_0x3527ec=this[_0x210e96(0x2b0)]['transformMutation'](_0xde9c81,_0x4bc6b6,!0x1);if(_0x4ecbea['isTransformMutationFailure'](_0x3527ec))throw _0x3527ec[_0x210e96(0x270)];_0x55b7d3['set'](_0x22cc00,{..._0x543317,'ranges':_0x3527ec['m2Prime'][_0x210e96(0x38c)]['textRanges']});}queueMicrotask(()=>{const _0x5f3c47=_0x210e96;this[_0x5f3c47(0xc8)][_0x5f3c47(0x18d)](_0x55b7d3);});})));}[_0x3f6827(0x443)](_0x34ad2d){const _0x1a10e5=_0x3f6827;var _0x51cf15,_0x3813af;const {memberID:_0x4519cb,selection:_0x5369fd}=_0x34ad2d['data'],_0x1bbac5=_0x1ea03f(_0x5369fd),_0x260f58=(_0x3813af=(_0x51cf15=this[_0x1a10e5(0x13c)][_0x1a10e5(0x86)](this[_0x1a10e5(0x27d)],_0x4519cb))==null?void 0x0:_0x51cf15[_0x1a10e5(0x2e6)])!=null?_0x3813af:'Unknown\x20user',_0x587f48={'color':this[_0x1a10e5(0x432)][_0x1a10e5(0x378)](_0x4519cb),'name':_0x260f58,'ranges':_0x1bbac5},_0x3c6155=this['cursorInfo'];_0x3c6155[_0x1a10e5(0x2b2)](_0x4519cb,_0x587f48),this['_cursorInfo$'][_0x1a10e5(0x18d)](_0x3c6155);}[_0x3f6827(0x2fa)](_0x1fdfe8){const _0x323732=_0x3f6827,{memberID:_0x4236ab}=_0x1fdfe8[_0x323732(0xa5)],_0x9ed159=this[_0x323732(0x3a1)];_0x9ed159[_0x323732(0x458)](_0x4236ab),this['_cursorInfo$'][_0x323732(0x18d)](_0x9ed159);}[_0x3f6827(0x2b5)](){const _0x23a6c9=_0x3f6827;var _0x3ea728;if(this[_0x23a6c9(0xf4)]=!0x0,((_0x3ea728=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x3ea728[_0x23a6c9(0x322)]())!==this[_0x23a6c9(0x27d)])return;const _0x96e5bc=this[_0x23a6c9(0x3ef)]['get'](_0x4e3741['TextSelectionManagerService'])[_0x23a6c9(0x12a)](),_0x5270c1=_0x96e5bc==null?void 0x0:_0x96e5bc[_0x23a6c9(0x25f)](_0x4e3741['serializeTextRange']);Array['isArray'](_0x5270c1)&&_0x5270c1['length']>0x0&&this[_0x23a6c9(0x36f)](_0x5270c1);}[_0x3f6827(0xb4)](){const _0x3b9bcb=_0x3f6827;this[_0x3b9bcb(0xf4)]=!0x1;}};_0x470bc7=_0x4747a8([_0x471114(0x2,_0x28e235[_0x3f6827(0xb5)](_0x28e235['Injector'])),_0x471114(0x3,_0x28e235[_0x3f6827(0xb5)](_0x18ea56)),_0x471114(0x4,_0x28e235[_0x3f6827(0xb5)](_0x1d7fc4)),_0x471114(0x5,_0x28e235[_0x3f6827(0xb5)](_0x581849)),_0x471114(0x6,_0x4ecbea[_0x3f6827(0x111)]),_0x471114(0x7,_0x28e235[_0x3f6827(0x19b)]),_0x471114(0x8,_0x28e235['ICommandService'])],_0x470bc7);var _0x289bf0=Object[_0x3f6827(0x328)],_0x526d40=Object[_0x3f6827(0x1cb)],_0x47aae1=(_0x5179e2,_0x426e09,_0x39859b,_0x59442e)=>{const _0xcd013e=_0x3f6827;for(var _0x47b1d7=_0x59442e>0x1?void 0x0:_0x59442e?_0x526d40(_0x426e09,_0x39859b):_0x426e09,_0x3f6fe1=_0x5179e2[_0xcd013e(0x16b)]-0x1,_0x3dc891;_0x3f6fe1>=0x0;_0x3f6fe1--)(_0x3dc891=_0x5179e2[_0x3f6fe1])&&(_0x47b1d7=(_0x59442e?_0x3dc891(_0x426e09,_0x39859b,_0x47b1d7):_0x3dc891(_0x47b1d7))||_0x47b1d7);return _0x59442e&&_0x47b1d7&&_0x289bf0(_0x426e09,_0x39859b,_0x47b1d7),_0x47b1d7;},_0x435bab=(_0xd92e98,_0x7941d8)=>(_0x53fa34,_0x121f66)=>_0x7941d8(_0x53fa34,_0x121f66,_0xd92e98);let _0x2e4db5=class extends _0x28e235[_0x3f6827(0x93)]{constructor(_0xe08fcb,_0xcca832,_0x5afdc0){const _0x40b550=_0x3f6827;super(),_0x2b7d82(this,_0x40b550(0x284),new Map()),_0x2b7d82(this,_0x40b550(0x452),new _0x2820f3[(_0x40b550(0xa8))]()),(this[_0x40b550(0x156)]=_0xe08fcb,this['_injector']=_0xcca832,this[_0x40b550(0xfc)]=_0x5afdc0,this['_init']());}[_0x3f6827(0x179)](){const _0x5ddbea=_0x3f6827;super['dispose'](),this[_0x5ddbea(0x452)][_0x5ddbea(0x35b)](),this[_0x5ddbea(0x284)][_0x5ddbea(0x384)](_0x2c2587=>_0x2c2587['dispose']());}[_0x3f6827(0x3f6)](_0xb4cf35){const _0x2f24e8=_0x3f6827;return this[_0x2f24e8(0x284)][_0x2f24e8(0x3c0)](_0xb4cf35)?this[_0x2f24e8(0x284)][_0x2f24e8(0x450)](_0xb4cf35)[_0x2f24e8(0x35c)]:this[_0x2f24e8(0x452)][_0x2f24e8(0x2ef)](_0x2820f3[_0x2f24e8(0x44a)](_0x394902=>_0x394902['unitID']===_0xb4cf35),_0x2820f3[_0x2f24e8(0x225)](_0x306c86=>_0x306c86[_0x2f24e8(0x35c)]));}[_0x3f6827(0x3e4)](){const _0x1cdf3f=_0x3f6827;this[_0x1cdf3f(0x156)]['getTypeOfUnitAdded$'](_0x28e235[_0x1cdf3f(0x3af)][_0x1cdf3f(0x33b)])[_0x1cdf3f(0x2ef)](_0x2820f3[_0x1cdf3f(0xeb)](this[_0x1cdf3f(0x388)]))['subscribe'](async _0x3db9a5=>{const _0xb9eb82=_0x1cdf3f,_0x546e45=_0x3db9a5[_0xb9eb82(0x322)](),_0x3b6a2a=await this[_0xb9eb82(0x19d)](_0x546e45);this[_0xb9eb82(0x452)]['next'](_0x3b6a2a),this['_entities'][_0xb9eb82(0x2b2)](_0x546e45,_0x3b6a2a);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x28e235[_0x1cdf3f(0x3af)][_0x1cdf3f(0x372)])[_0x1cdf3f(0x2ef)](_0x2820f3[_0x1cdf3f(0xeb)](this['dispose$']))['pipe'](_0x2820f3[_0x1cdf3f(0x44a)](_0x4fd34d=>!_0x4fd34d[_0x1cdf3f(0x322)]()[_0x1cdf3f(0x258)]('__')))['subscribe'](async _0xe129ef=>{const _0x6b471d=_0x1cdf3f,_0x356915=_0xe129ef[_0x6b471d(0x322)](),_0x583ad3=await this[_0x6b471d(0x23b)](_0x356915);this[_0x6b471d(0x452)]['next'](_0x583ad3),this[_0x6b471d(0x284)][_0x6b471d(0x2b2)](_0x356915,_0x583ad3);}),_0x2820f3['merge'](this[_0x1cdf3f(0x156)][_0x1cdf3f(0x2e4)](_0x28e235['UniverInstanceType'][_0x1cdf3f(0x372)]),this[_0x1cdf3f(0x156)][_0x1cdf3f(0x2e4)](_0x28e235[_0x1cdf3f(0x3af)][_0x1cdf3f(0x33b)]))['pipe'](_0x2820f3[_0x1cdf3f(0xeb)](this[_0x1cdf3f(0x388)]))['subscribe'](_0x28c2f4=>{const _0x293b52=_0x1cdf3f,_0x598b33=_0x28c2f4[_0x293b52(0x322)](),_0x4fe5fb=this[_0x293b52(0x284)][_0x293b52(0x450)](_0x598b33);_0x4fe5fb&&(_0x4fe5fb[_0x293b52(0x179)](),this[_0x293b52(0x284)][_0x293b52(0x458)](_0x598b33));});}async[_0x3f6827(0x19d)](_0x137407){const _0x1cfea3=_0x3f6827,_0x33a6e8=await this[_0x1cfea3(0xfc)]['requireSession'](_0x137407),_0x2c8e52=this[_0x1cfea3(0x3ef)][_0x1cfea3(0x42d)](_0x2b4698,_0x137407,_0x33a6e8);return _0x2c8e52[_0x1cfea3(0xf8)](),_0x2c8e52;}async[_0x3f6827(0x23b)](_0xd6e397){const _0x282c59=_0x3f6827,_0x3c4972=await this['_collabSessionService'][_0x282c59(0x1b9)](_0xd6e397),_0x2ec8aa=this[_0x282c59(0x3ef)][_0x282c59(0x42d)](_0x470bc7,_0xd6e397,_0x3c4972);return _0x2ec8aa[_0x282c59(0xf8)](),_0x2ec8aa;}};_0x2e4db5=_0x47aae1([_0x28e235[_0x3f6827(0xb8)](_0x28e235[_0x3f6827(0x177)][_0x3f6827(0xd4)],_0x2e4db5),_0x435bab(0x0,_0x28e235[_0x3f6827(0x19b)]),_0x435bab(0x1,_0x28e235[_0x3f6827(0xb5)](_0x28e235['Injector'])),_0x435bab(0x2,_0x28e235[_0x3f6827(0xb5)](_0x538e2a['CollaborationSessionService']))],_0x2e4db5);const _0x340c63=0x14,_0x743712=0xc8,_0x1ab5ba=0x4,_0x1ff232=0x5;function _0x19bae1(_0x366c2f,_0x2816c6){const _0xbc3352=_0x3f6827;let {radius:_0x5016dd,width:_0x897318,height:_0x120fa9}=_0x2816c6;_0x5016dd=_0x5016dd!=null?_0x5016dd:0x0,_0x897318=_0x897318!=null?_0x897318:0x1e,_0x120fa9=_0x120fa9!=null?_0x120fa9:0x1e;let _0x568d47=0x0,_0x42079a=0x0,_0x1b3509=0x0;_0x568d47=_0x42079a=_0x1b3509=Math[_0xbc3352(0x7c)](_0x5016dd,_0x897318/0x2,_0x120fa9/0x2),_0x366c2f[_0xbc3352(0x8e)](),_0x366c2f[_0xbc3352(0x1a4)](_0x568d47,0x0),_0x366c2f[_0xbc3352(0xdd)](_0x897318-_0x42079a,0x0),_0x366c2f[_0xbc3352(0x2fb)](_0x897318-_0x42079a,_0x42079a,_0x42079a,Math['PI']*0x3/0x2,0x0,!0x1),_0x366c2f[_0xbc3352(0xdd)](_0x897318,_0x120fa9-_0x1b3509),_0x366c2f[_0xbc3352(0x2fb)](_0x897318-_0x1b3509,_0x120fa9-_0x1b3509,_0x1b3509,0x0,Math['PI']/0x2,!0x1),_0x366c2f[_0xbc3352(0xdd)](0x0,_0x120fa9),_0x366c2f[_0xbc3352(0xdd)](0x0,_0x568d47),_0x366c2f['arc'](_0x568d47,_0x568d47,_0x568d47,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x366c2f[_0xbc3352(0x288)](),_0x2816c6[_0xbc3352(0x3ac)]&&(_0x366c2f[_0xbc3352(0x43c)](),_0x366c2f[_0xbc3352(0x1f0)]=_0x2816c6[_0xbc3352(0x3ac)],_0x2816c6['fillRule']===_0xbc3352(0x153)?_0x366c2f[_0xbc3352(0x3ac)]('evenodd'):_0x366c2f[_0xbc3352(0x3ac)](),_0x366c2f[_0xbc3352(0x23f)]());}class _0x5acc75 extends _0x1c921f['Shape']{constructor(_0x504e2e,_0x5c51bc){const _0xc8c4c4=_0x3f6827;super(_0x504e2e,_0x5c51bc),_0x2b7d82(this,_0xc8c4c4(0x126)),_0x2b7d82(this,'text'),(this[_0xc8c4c4(0x126)]=_0x5c51bc==null?void 0x0:_0x5c51bc['color'],this[_0xc8c4c4(0x24a)]=_0x5c51bc==null?void 0x0:_0x5c51bc[_0xc8c4c4(0x24a)]);}static['drawWith'](_0x4e81a1,_0x37a0c2){const _0x54f0e3=_0x3f6827,{text:_0x56d857,color:_0x5403c}=_0x37a0c2;_0x4e81a1[_0x54f0e3(0x43c)](),_0x4e81a1[_0x54f0e3(0x317)]=_0x54f0e3(0x29d);const _0x4107f1=_0x4e81a1[_0x54f0e3(0x273)](_0x56d857)[_0x54f0e3(0x439)],_0x29ec10=Math[_0x54f0e3(0x7c)](_0x4107f1+0x2*_0x1ab5ba,_0x743712);_0x19bae1(_0x4e81a1,{'height':_0x340c63,'radius':0x4,'width':_0x29ec10,'fill':_0x5403c,'evented':!0x1}),_0x4e81a1[_0x54f0e3(0x1f0)]=_0x54f0e3(0x2df);const _0x21c0f6=_0x1ab5ba,_0x55a2a4=_0x340c63-_0x1ff232,_0x4b0ccb=_0x743712-0x2*_0x1ab5ba;if(_0x4107f1>_0x4b0ccb){let _0x37c7a5='',_0x1b7cc3=0x0;for(const _0x5eace4 of _0x56d857){const _0x4a8f2f=_0x4e81a1[_0x54f0e3(0x273)](_0x5eace4)[_0x54f0e3(0x439)];if(_0x1b7cc3+_0x4a8f2f<=_0x4b0ccb-_0x4e81a1[_0x54f0e3(0x273)]('...')[_0x54f0e3(0x439)])_0x37c7a5+=_0x5eace4,_0x1b7cc3+=_0x4a8f2f;else{_0x37c7a5+=_0x54f0e3(0x33d);break;}}_0x4e81a1[_0x54f0e3(0x1a7)](_0x37c7a5,_0x21c0f6,_0x55a2a4);}else _0x4e81a1['fillText'](_0x56d857,_0x21c0f6,_0x55a2a4);_0x4e81a1[_0x54f0e3(0x23f)]();}[_0x3f6827(0x3cc)](_0x3fda83){_0x5acc75['drawWith'](_0x3fda83,this);}}const _0x3edbb0=0x1,_0x419575=1.5;class _0x31ac93 extends _0x1c921f[_0x3f6827(0x232)]{constructor(_0x53b03e,_0x16fff2){const _0x462405=_0x3f6827;super(_0x53b03e,_0x16fff2),_0x2b7d82(this,_0x462405(0x22b)),_0x2b7d82(this,_0x462405(0x21b),!0x1),_0x2b7d82(this,_0x462405(0x2eb)),_0x2b7d82(this,_0x462405(0x2ae),''),_0x2b7d82(this,_0x462405(0x2e1),_0x462405(0x38d)),_0x2b7d82(this,_0x462405(0x30a)),(_0x16fff2&&this['setShapeProps'](_0x16fff2),this[_0x462405(0x42a)][_0x462405(0x297)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x462405(0x35a)][_0x462405(0x297)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x3f6827(0x250)](_0x22c447){const _0x1ab0e1=_0x3f6827;var _0xc883a7,_0x11fdc1,_0x3c252e,_0x3c1d4f,_0x27176e,_0x536b3d;this[_0x1ab0e1(0x22b)]=(_0xc883a7=_0x22c447['color'])!=null?_0xc883a7:this[_0x1ab0e1(0x22b)],this[_0x1ab0e1(0x21b)]=(_0x11fdc1=_0x22c447['hovered'])!=null?_0x11fdc1:this[_0x1ab0e1(0x21b)],this[_0x1ab0e1(0x2eb)]=(_0x3c252e=_0x22c447[_0x1ab0e1(0x12f)])!=null?_0x3c252e:this['_range'],this[_0x1ab0e1(0x2ae)]=(_0x3c1d4f=_0x22c447[_0x1ab0e1(0x2e6)])!=null?_0x3c1d4f:this['_name'],this[_0x1ab0e1(0x2e1)]=(_0x27176e=_0x22c447['labelPosition'])!=null?_0x27176e:this[_0x1ab0e1(0x2e1)],this[_0x1ab0e1(0x30a)]=(_0x536b3d=_0x22c447[_0x1ab0e1(0x1e4)])!=null?_0x536b3d:this[_0x1ab0e1(0x30a)],this[_0x1ab0e1(0x2d4)]({'width':_0x22c447['width'],'height':_0x22c447[_0x1ab0e1(0x2be)]});}[_0x3f6827(0x2e2)](_0x53c2c1){const _0x4d6213=_0x3f6827,{row:_0x56fae1,column:_0x557255}=_0x53c2c1;if(_0x56fae1>=this[_0x4d6213(0x2eb)][_0x4d6213(0x44d)]&&_0x56fae1<=this[_0x4d6213(0x2eb)]['endRow']&&_0x557255>=this[_0x4d6213(0x2eb)][_0x4d6213(0x3e6)]&&_0x557255<=this[_0x4d6213(0x2eb)][_0x4d6213(0x112)]){this[_0x4d6213(0x250)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x3f6827(0x3ed)](_0x504aac){return!0x1;}['_draw'](_0x4bfd4d){const _0x184459=_0x3f6827;_0x1c921f['Rect'][_0x184459(0x338)](_0x4bfd4d,{'width':this[_0x184459(0x439)],'height':this[_0x184459(0x2be)],'strokeWidth':_0x419575,'stroke':this[_0x184459(0x22b)],'evented':!0x1,'fill':this[_0x184459(0x30a)]}),this[_0x184459(0x21b)]&&(_0x4bfd4d['save'](),_0x4bfd4d[_0x184459(0x1ee)](0x1,0x0,0x0,0x1,this[_0x184459(0x439)],this[_0x184459(0x2e1)]==='bottom'?0x0:-_0x340c63),_0x5acc75[_0x184459(0x338)](_0x4bfd4d,{'text':this[_0x184459(0x2ae)],'color':this[_0x184459(0x22b)]}),_0x4bfd4d[_0x184459(0x23f)]());}}var _0x33fb16=Object['defineProperty'],_0x45ba5a=Object['getOwnPropertyDescriptor'],_0x1ad36d=(_0xccc474,_0x2c1e25,_0x31129a,_0x39747a)=>{const _0x9923a8=_0x3f6827;for(var _0x569210=_0x39747a>0x1?void 0x0:_0x39747a?_0x45ba5a(_0x2c1e25,_0x31129a):_0x2c1e25,_0x5f5d2b=_0xccc474[_0x9923a8(0x16b)]-0x1,_0x195dbe;_0x5f5d2b>=0x0;_0x5f5d2b--)(_0x195dbe=_0xccc474[_0x5f5d2b])&&(_0x569210=(_0x39747a?_0x195dbe(_0x2c1e25,_0x31129a,_0x569210):_0x195dbe(_0x569210))||_0x569210);return _0x39747a&&_0x569210&&_0x33fb16(_0x2c1e25,_0x31129a,_0x569210),_0x569210;},_0x50d857=(_0x370468,_0x37de32)=>(_0x162adc,_0x3beb5e)=>_0x37de32(_0x162adc,_0x3beb5e,_0x370468);const _0x11f43f=0x1389;let _0x2583e4=class extends _0x28e235[_0x3f6827(0x93)]{constructor(_0x45285b,_0x21f696,_0x42df0e,_0x1575bd){const _0x2fb6e3=_0x3f6827;super(),_0x2b7d82(this,_0x2fb6e3(0x3e2),new Set()),_0x2b7d82(this,_0x2fb6e3(0x92),null),(this[_0x2fb6e3(0x36d)]=_0x45285b,this[_0x2fb6e3(0x156)]=_0x21f696,this[_0x2fb6e3(0x2c6)]=_0x42df0e,this[_0x2fb6e3(0x349)]=_0x1575bd,this[_0x2fb6e3(0x3e4)]());}get[_0x3f6827(0x404)](){const _0x3210d7=_0x3f6827;return this[_0x3210d7(0x2c6)]['getRenderById'](this[_0x3210d7(0x156)][_0x3210d7(0xd1)](_0x28e235[_0x3210d7(0x3af)][_0x3210d7(0x33b)])[_0x3210d7(0x322)]())[_0x3210d7(0x383)](_0x38caab[_0x3210d7(0x38f)]);}get[_0x3f6827(0x125)](){const _0x229f47=_0x3f6827;return this[_0x229f47(0x156)]['getCurrentUnitForType'](_0x28e235[_0x229f47(0x3af)][_0x229f47(0x33b)])[_0x229f47(0x322)]();}['_init'](){const _0x4a683e=_0x3f6827;this[_0x4a683e(0x404)]['currentSkeleton$'][_0x4a683e(0x2ef)](_0x1086dc[_0x4a683e(0xeb)](this[_0x4a683e(0x388)]),_0x1086dc[_0x4a683e(0x225)](_0x319c0b=>{const _0x3c019a=_0x4a683e;if(_0x319c0b){const _0x48725e=_0x319c0b[_0x3c019a(0xfd)];return _0x2820f3['combineLatest'](this['_collabCursorController'][_0x3c019a(0x3f6)](this[_0x3c019a(0x125)]),this['_themeService'][_0x3c019a(0xe2)])[_0x3c019a(0x2ef)](_0x1086dc[_0x3c019a(0x25f)](([_0x140669,_0x1eeea9])=>{const _0x1dbaf0=_0x3c019a,_0x2c41b8=new Map();return _0x140669[_0x1dbaf0(0x384)]((_0xb642e5,_0xfcbcc5)=>{const _0x49cc8e=_0x1dbaf0;if(_0xb642e5[_0x49cc8e(0x253)]===_0x48725e){const _0x25de98={..._0xb642e5};_0x25de98[_0x49cc8e(0x126)]=_0x1eeea9[_0xb642e5[_0x49cc8e(0x126)]],_0x2c41b8[_0x49cc8e(0x2b2)](_0xfcbcc5,_0x25de98);}}),{'skeleton':_0x319c0b,'cursors':_0x2c41b8};}));}return _0x2820f3['of']({'skeleton':null,'cursors':new Map()});}))[_0x4a683e(0x3cd)](({skeleton:_0x200d17,cursors:_0x4a27df})=>{const _0x1c2d17=_0x4a683e;this[_0x1c2d17(0x3fc)](),_0x200d17&&this[_0x1c2d17(0x321)](_0x200d17,_0x4a27df);}),this[_0x4a683e(0x404)][_0x4a683e(0x202)][_0x4a683e(0x3cd)](_0x5a5358=>{const _0x21ac2a=_0x4a683e;if(_0x5a5358==null)return;const {skeleton:_0x28f3b9}=_0x5a5358,_0x4ee56c=this[_0x21ac2a(0x2c6)][_0x21ac2a(0x24d)](this[_0x21ac2a(0x125)]),{scene:_0x47fa9e}=_0x4ee56c;_0x47fa9e['onPointerMove$'][_0x21ac2a(0x297)](_0x51f7cc(_0x13c51e=>{const _0x19c95e=_0x21ac2a;var _0x104aae,_0xf2f822;const {offsetX:_0x3cc5c9,offsetY:_0x5706b7}=_0x13c51e,{x:_0x3cb940,y:_0x292918}=_0x47fa9e[_0x19c95e(0xae)](_0x1c921f[_0x19c95e(0x340)][_0x19c95e(0x27c)]([_0x3cc5c9,_0x5706b7])),{scaleX:_0x3da6a2,scaleY:_0x4370f0}=_0x47fa9e[_0x19c95e(0x271)](),_0x50513e=_0x47fa9e[_0x19c95e(0x2b9)](_0x38caab[_0x19c95e(0x2bd)][_0x19c95e(0x17e)]),_0xf509b0=_0x47fa9e[_0x19c95e(0x1a3)](_0x1c921f[_0x19c95e(0x340)][_0x19c95e(0x27c)]([_0x3cb940,_0x292918]),_0x50513e),_0x1dfd2c=_0x28f3b9['getCellPositionByOffset'](_0x3cc5c9,_0x5706b7,_0x3da6a2,_0x4370f0,_0xf509b0);((_0x104aae=this['_lastPointer'])==null?void 0x0:_0x104aae[_0x19c95e(0x1da)])===_0x1dfd2c[_0x19c95e(0x1da)]&&((_0xf2f822=this['_lastPointer'])==null?void 0x0:_0xf2f822['row'])===_0x1dfd2c[_0x19c95e(0xe6)]||this[_0x19c95e(0x3e2)]['forEach'](_0x7bb231=>{const _0x34e6e8=_0x19c95e;_0x7bb231[_0x34e6e8(0x2e2)](_0x1dfd2c);});},0x64));});}[_0x3f6827(0x321)](_0x4b08fd,_0xf5fbe7){const _0x15800e=_0x3f6827;var _0x3fb401;const _0x3ca729=(_0x3fb401=this[_0x15800e(0x404)][_0x15800e(0x1f8)]())==null?void 0x0:_0x3fb401[_0x15800e(0x1df)];if(!_0x3ca729)return;const _0x14f0bd=this[_0x15800e(0xaf)]();if(!_0x14f0bd)return;this[_0x15800e(0x3e2)][_0x15800e(0x384)](_0x8996f3=>{const _0x2bcee5=_0x15800e;_0x8996f3[_0x2bcee5(0xb6)]();});const {scene:_0x3e3755}=_0x14f0bd,_0x3f234d=_0x2f6ef2(Array[_0x15800e(0x228)](_0xf5fbe7[_0x15800e(0x2d8)]()))[_0x15800e(0x25f)](_0x37012c=>{const _0xabd970=_0x15800e,{color:_0x3dd9d3,range:_0x53596b,name:_0x5cce79,selection:_0x4e5e62,sheetID:_0x133d76}=_0x37012c,{startColumn:_0x1cc40a,startRow:_0xc37075,endColumn:_0x187678,endRow:_0x211ad0}=_0x53596b,_0x4b959f=_0x38caab['getCoordByCell'](_0xc37075,_0x1cc40a,_0x3e3755,_0x3ca729),_0x266ebb=_0x38caab[_0xabd970(0x31b)](_0x211ad0,_0x187678,_0x3e3755,_0x3ca729),{columnHeaderHeightAndMarginTop:_0x8e6a4c}=_0x3ca729,{startX:_0xb6e049,startY:_0x5107f2}=_0x4b959f,{endX:_0x3819e9,endY:_0x3fbafa}=_0x266ebb,_0xd9f704=_0x3819e9-_0xb6e049,_0x3c9875=_0x3fbafa-_0x5107f2,_0x33bc42={'labelPosition':_0x5107f2-_0x8e6a4c>=_0x340c63?_0xabd970(0x38d):'bottom','sheetID':_0x133d76,'range':_0x53596b,'color':_0x3dd9d3,'name':_0x5cce79,'selection':_0x4e5e62,'left':_0xb6e049,'top':_0x5107f2,'width':_0xd9f704,'height':_0x3c9875,'evented':!0x1,'zIndex':_0x11f43f};return new _0x31ac93(_0x5cce79,_0x33bc42);});_0x3e3755[_0x15800e(0x1ce)](_0x3f234d,_0x3edbb0),this[_0x15800e(0x3e2)]=new Set(_0x3f234d);}['_removeCollabCursors'](){const _0xbc1fa=_0x3f6827;var _0x4ba365;(_0x4ba365=this[_0xbc1fa(0x3e2)])==null||_0x4ba365[_0xbc1fa(0x384)](_0x8e4dbf=>_0x8e4dbf[_0xbc1fa(0x179)]());}[_0x3f6827(0xaf)](){const _0x170b0d=_0x3f6827;return _0x38caab['getSheetObject'](this[_0x170b0d(0x156)],this['_renderManagerService']);}};_0x2583e4=_0x1ad36d([_0x28e235[_0x3f6827(0xb8)](_0x28e235[_0x3f6827(0x177)][_0x3f6827(0x162)],_0x2583e4),_0x50d857(0x0,_0x28e235['Inject'](_0x2e4db5)),_0x50d857(0x1,_0x28e235[_0x3f6827(0x19b)]),_0x50d857(0x2,_0x1c921f[_0x3f6827(0x201)]),_0x50d857(0x3,_0x28e235['Inject'](_0x28e235[_0x3f6827(0x2c2)]))],_0x2583e4);function _0x2f6ef2(_0x2723cc){const _0x383ff9=_0x3f6827,_0x5d3afd=new Map();return _0x2723cc[_0x383ff9(0x384)](_0xa2ee2e=>{const _0x20f127=_0x383ff9;if(_0x5d3afd[_0x20f127(0x3c0)](_0xa2ee2e[_0x20f127(0x382)])){const _0xa0b7f4=_0x5d3afd['get'](_0xa2ee2e[_0x20f127(0x382)]);_0xa0b7f4[_0x20f127(0x2e6)]+=',\x20'+_0xa2ee2e[_0x20f127(0x2e6)];}else _0x5d3afd[_0x20f127(0x2b2)](_0xa2ee2e['selection'],_0xa2ee2e);}),Array[_0x383ff9(0x228)](_0x5d3afd[_0x383ff9(0x2d8)]());}var _0xc2c828=function(){const _0x50221c=_0x3f6827;return _0xc2c828=Object[_0x50221c(0x2d2)]||function(_0x15f9c6){const _0x5e7190=_0x50221c;for(var _0x3515d2,_0xc05ad5=0x1,_0x212347=arguments[_0x5e7190(0x16b)];_0xc05ad5<_0x212347;_0xc05ad5++){_0x3515d2=arguments[_0xc05ad5];for(var _0x55bc9b in _0x3515d2)Object[_0x5e7190(0x141)][_0x5e7190(0x43f)][_0x5e7190(0x364)](_0x3515d2,_0x55bc9b)&&(_0x15f9c6[_0x55bc9b]=_0x3515d2[_0x55bc9b]);}return _0x15f9c6;},_0xc2c828[_0x50221c(0x44f)](this,arguments);},_0x2b6346=function(_0x548731,_0x8adbac){const _0x3bbfdd=_0x3f6827;var _0x34cad3={};for(var _0x3e2a5c in _0x548731)Object[_0x3bbfdd(0x141)][_0x3bbfdd(0x43f)][_0x3bbfdd(0x364)](_0x548731,_0x3e2a5c)&&_0x8adbac[_0x3bbfdd(0x1fe)](_0x3e2a5c)<0x0&&(_0x34cad3[_0x3e2a5c]=_0x548731[_0x3e2a5c]);if(_0x548731!=null&&typeof Object[_0x3bbfdd(0x108)]==_0x3bbfdd(0x296)){for(var _0x15a3d6=0x0,_0x3e2a5c=Object[_0x3bbfdd(0x108)](_0x548731);_0x15a3d6<_0x3e2a5c[_0x3bbfdd(0x16b)];_0x15a3d6++)_0x8adbac[_0x3bbfdd(0x1fe)](_0x3e2a5c[_0x15a3d6])<0x0&&Object[_0x3bbfdd(0x141)][_0x3bbfdd(0x24c)][_0x3bbfdd(0x364)](_0x548731,_0x3e2a5c[_0x15a3d6])&&(_0x34cad3[_0x3e2a5c[_0x15a3d6]]=_0x548731[_0x3e2a5c[_0x15a3d6]]);}return _0x34cad3;},_0x2533bb=_0x188472['forwardRef'](function(_0x16fe96,_0x3d1c99){const _0x2315e0=_0x3f6827;var _0x4f8750=_0x16fe96['icon'],_0x552f69=_0x16fe96['id'],_0x513546=_0x16fe96[_0x2315e0(0x1cf)],_0x44356f=_0x16fe96[_0x2315e0(0x14b)],_0x55a6f2=_0x2b6346(_0x16fe96,[_0x2315e0(0x34f),'id',_0x2315e0(0x1cf),'extend']),_0x21667b=_0x2315e0(0x434)[_0x2315e0(0x374)](_0x552f69,'\x20')[_0x2315e0(0x374)](_0x513546||'')[_0x2315e0(0xbb)](),_0x376f0d=_0x188472[_0x2315e0(0xe8)]('_'[_0x2315e0(0x374)](_0x128c6e()));return _0x551db2(_0x4f8750,''[_0x2315e0(0x374)](_0x552f69),{'defIds':_0x4f8750[_0x2315e0(0x299)],'idSuffix':_0x376f0d['current']},_0xc2c828({'ref':_0x3d1c99,'className':_0x21667b},_0x55a6f2),_0x44356f);});function _0x551db2(_0x11485e,_0x112bd1,_0x4130d2,_0x412cc2,_0x4c6983){const _0x419475=_0x3f6827;return _0x188472['createElement'](_0x11485e['tag'],_0xc2c828(_0xc2c828({'key':_0x112bd1},_0x2697ec(_0x11485e,_0x4130d2,_0x4c6983)),_0x412cc2),(_0x338034(_0x11485e,_0x4130d2)[_0x419475(0x242)]||[])['map'](function(_0x472e9a,_0x488cb4){const _0x4eda7d=_0x419475;return _0x551db2(_0x472e9a,''[_0x4eda7d(0x374)](_0x112bd1,'-')['concat'](_0x11485e[_0x4eda7d(0x360)],'-')[_0x4eda7d(0x374)](_0x488cb4),_0x4130d2,void 0x0,_0x4c6983);}));}function _0x2697ec(_0x1e7573,_0x2fea30,_0x438223){const _0x554b11=_0x3f6827;var _0x218d51=_0xc2c828({},_0x1e7573[_0x554b11(0x103)]);_0x438223!=null&&_0x438223['colorChannel1']&&_0x218d51[_0x554b11(0x3ac)]===_0x554b11(0x217)&&(_0x218d51[_0x554b11(0x3ac)]=_0x438223['colorChannel1']);var _0x423c44=_0x2fea30[_0x554b11(0x299)];return!_0x423c44||_0x423c44[_0x554b11(0x16b)]===0x0||(_0x1e7573['tag']===_0x554b11(0x23a)&&_0x218d51[_0x554b11(0x176)]&&(_0x218d51[_0x554b11(0x176)]=_0x218d51['xlink:href']+_0x2fea30[_0x554b11(0x42c)]),Object[_0x554b11(0xd5)](_0x218d51)[_0x554b11(0x384)](function(_0x58a523){const _0x29b714=_0x554b11;var _0x52a4aa=_0x58a523[0x0],_0x4003e6=_0x58a523[0x1];typeof _0x4003e6==_0x29b714(0x130)&&(_0x218d51[_0x52a4aa]=_0x4003e6[_0x29b714(0xc6)](/url\(#(.*)\)/,_0x29b714(0x44e)['concat'](_0x2fea30[_0x29b714(0x42c)],')')));})),_0x218d51;}function _0x338034(_0x59e074,_0x467315){const _0x3a92a2=_0x3f6827;var _0x297945,_0x28398d=_0x467315[_0x3a92a2(0x299)];return!_0x28398d||_0x28398d[_0x3a92a2(0x16b)]===0x0?_0x59e074:_0x59e074[_0x3a92a2(0x360)]===_0x3a92a2(0x1de)&&(!((_0x297945=_0x59e074[_0x3a92a2(0x242)])===null||_0x297945===void 0x0)&&_0x297945[_0x3a92a2(0x16b)])?_0xc2c828(_0xc2c828({},_0x59e074),{'children':_0x59e074['children'][_0x3a92a2(0x25f)](function(_0x18ea19){const _0x34d9fe=_0x3a92a2;return typeof _0x18ea19['attrs']['id']=='string'&&_0x28398d&&_0x28398d['indexOf'](_0x18ea19[_0x34d9fe(0x103)]['id'])>-0x1?_0xc2c828(_0xc2c828({},_0x18ea19),{'attrs':_0xc2c828(_0xc2c828({},_0x18ea19['attrs']),{'id':_0x18ea19[_0x34d9fe(0x103)]['id']+_0x467315['idSuffix']})}):_0x18ea19;})}):_0x59e074;}function _0x128c6e(){const _0x28cc60=_0x3f6827;return Math['random']()[_0x28cc60(0x1d9)](0x24)[_0x28cc60(0x143)](0x2,0x8);}_0x2533bb[_0x3f6827(0x32e)]=_0x3f6827(0x326);var _0x1d33fd={'tag':_0x3f6827(0x3ce),'attrs':{'fill':'none','viewBox':_0x3f6827(0x17f),'width':_0x3f6827(0x26d),'height':_0x3f6827(0x26d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x3f6827(0x446),'d':_0x3f6827(0x11e),'strokeLinecap':_0x3f6827(0x264),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3f6827(0x10f)},'children':[{'tag':_0x3f6827(0x13f),'attrs':{'fill':_0x3f6827(0x37e),'d':_0x3f6827(0xf0)}}]}]}],'defIds':[_0x3f6827(0x10f)]},_0x93a5f0=_0x188472['forwardRef'](function(_0x261311,_0x1a0aca){const _0x274730=_0x3f6827;return _0x188472[_0x274730(0xc0)](_0x2533bb,Object[_0x274730(0x2d2)]({},_0x261311,{'id':_0x274730(0x366),'ref':_0x1a0aca,'icon':_0x1d33fd}));});_0x93a5f0['displayName']=_0x3f6827(0x319);var _0x1df628={'tag':_0x3f6827(0x3ce),'attrs':{'fill':_0x3f6827(0x1c4),'viewBox':'0\x200\x2017\x2016','width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x3f6827(0x13f),'attrs':{'stroke':'currentColor','d':_0x3f6827(0x37f),'strokeLinecap':'round','strokeLinejoin':_0x3f6827(0x264),'strokeWidth':1.2}}]},{'tag':_0x3f6827(0x1de),'attrs':{},'children':[{'tag':_0x3f6827(0x348),'attrs':{'id':_0x3f6827(0x28e)},'children':[{'tag':_0x3f6827(0x13f),'attrs':{'fill':'#fff','d':_0x3f6827(0xf0),'transform':'translate(.97)'}}]}]}],'defIds':[_0x3f6827(0x28e)]},_0x175561=_0x188472[_0x3f6827(0x437)](function(_0x16e643,_0x6e2fb0){const _0x563634=_0x3f6827;return _0x188472[_0x563634(0xc0)](_0x2533bb,Object[_0x563634(0x2d2)]({},_0x16e643,{'id':_0x563634(0x219),'ref':_0x6e2fb0,'icon':_0x1df628}));});_0x175561['displayName']='OnLineSingle';const _0x41a09d={'onlineStatusIcon':'univer-online-status-icon','onlineStatusTitle':_0x3f6827(0x2ec),'onlineStatus':_0x3f6827(0x3cb),'online':_0x3f6827(0x2c1),'offline':'univer-offline'};function _0x421ee6(_0x2f22af){const _0x37d495=_0x3f6827;switch(_0x2f22af){case _0x16cedf['OFFLINE']:return'collabStatus.offline';case _0x16cedf[_0x37d495(0x3dc)]:return _0x37d495(0x2ee);case _0x16cedf[_0x37d495(0x9c)]:return _0x37d495(0x144);case _0x16cedf[_0x37d495(0x150)]:return'collabStatus.notCollab';case _0x16cedf[_0x37d495(0x2e3)]:case _0x16cedf[_0x37d495(0x159)]:case _0x16cedf[_0x37d495(0x276)]:return _0x37d495(0x1e8);case _0x16cedf[_0x37d495(0x423)]:return _0x37d495(0x244);}}function _0x3021bf(_0x1e67df){const _0x484666=_0x3f6827,{status$:_0x360291}=_0x1e67df,_0x4878d1=_0x1d23ef[_0x484666(0x401)](_0x360291,_0x16cedf['NOT_COLLAB']),_0x56e9b5=_0x28e235[_0x484666(0x36a)](_0x28e235[_0x484666(0x3a0)]),_0x250ccd=_0x4878d1!==_0x16cedf[_0x484666(0x353)],_0x560e65=_0x56e9b5['t'](_0x421ee6(_0x4878d1)),_0x42378c=_0x44b7b0(_0x41a09d[_0x484666(0x7d)],{[_0x41a09d[_0x484666(0xf7)]]:_0x250ccd,[_0x41a09d['offline']]:!_0x250ccd}),_0x4252c1=_0x250ccd?_0x188472[_0x484666(0xc0)](_0x175561,null):_0x188472['createElement'](_0x93a5f0,null);return _0x188472[_0x484666(0xc0)](_0x484666(0xbc),{'className':_0x42378c},_0x188472[_0x484666(0xc0)](_0x484666(0xbc),{'className':_0x41a09d[_0x484666(0x3dd)]},_0x4252c1),_0x188472[_0x484666(0xc0)](_0x484666(0xbc),{'className':_0x41a09d[_0x484666(0x1fd)]},_0x560e65));}var _0x3fa02e=Object[_0x3f6827(0x328)],_0x94ad3d=Object['getOwnPropertyDescriptor'],_0x514954=(_0x32ad82,_0x5e1bbf,_0x1e9441,_0x128f49)=>{for(var _0x3aa6a3=_0x128f49>0x1?void 0x0:_0x128f49?_0x94ad3d(_0x5e1bbf,_0x1e9441):_0x5e1bbf,_0x296715=_0x32ad82['length']-0x1,_0x23364c;_0x296715>=0x0;_0x296715--)(_0x23364c=_0x32ad82[_0x296715])&&(_0x3aa6a3=(_0x128f49?_0x23364c(_0x5e1bbf,_0x1e9441,_0x3aa6a3):_0x23364c(_0x3aa6a3))||_0x3aa6a3);return _0x128f49&&_0x3aa6a3&&_0x3fa02e(_0x5e1bbf,_0x1e9441,_0x3aa6a3),_0x3aa6a3;},_0x43e3c8=(_0x5d3269,_0x1c6849)=>(_0x25ad36,_0x4f2b1e)=>_0x1c6849(_0x25ad36,_0x4f2b1e,_0x5d3269);_0x538e2a[_0x3f6827(0x430)]=class extends _0x28e235[_0x3f6827(0x29c)]{constructor(_0x38cd1e,_0x314b4c,_0x3b3e87,_0x5547bc){const _0x570567=_0x3f6827;super(),_0x2b7d82(this,_0x570567(0x148),new _0x2820f3[(_0x570567(0x371))](_0x16cedf[_0x570567(0x150)])),(this[_0x570567(0x156)]=_0x38cd1e,this[_0x570567(0x20c)]=_0x314b4c,this[_0x570567(0x3ef)]=_0x3b3e87,this['_collaborationController']=_0x5547bc,this[_0x570567(0x8c)](),this[_0x570567(0x3a4)]());}[_0x3f6827(0x8c)](){const _0x42bc0d=_0x3f6827;this[_0x42bc0d(0x41b)](this[_0x42bc0d(0x20c)][_0x42bc0d(0x391)](_0x1d23ef['BuiltInUIPart'][_0x42bc0d(0x34d)],()=>_0x28e235[_0x42bc0d(0x3a2)](_0x4303e4({'status$':this['_status$']['asObservable']()}),this[_0x42bc0d(0x3ef)])));}['_initStatusListener'](){const _0x5c183b=_0x3f6827;this[_0x5c183b(0x41b)](_0x28e235['toDisposable'](this[_0x5c183b(0x156)]['focused$'][_0x5c183b(0x2ef)](_0x2820f3['switchMap'](()=>{const _0x2981f4=_0x5c183b,_0x3a52fb=this[_0x2981f4(0x156)]['getFocusedUnit']();return _0x3a52fb?this[_0x2981f4(0x428)][_0x2981f4(0xed)](_0x3a52fb[_0x2981f4(0x322)]()):_0x2820f3['of'](null);}),_0x2820f3[_0x5c183b(0x225)](_0x550d0a=>_0x550d0a?_0x550d0a[_0x5c183b(0x3f2)]:_0x2820f3['of'](_0x16cedf[_0x5c183b(0x150)])))[_0x5c183b(0x3cd)](_0x1d2530=>{const _0x1e9bad=_0x5c183b;this['_status$'][_0x1e9bad(0x18d)](_0x1d2530);})));}},_0x538e2a[_0x3f6827(0x430)]=_0x514954([_0x28e235[_0x3f6827(0xb8)](_0x28e235[_0x3f6827(0x177)][_0x3f6827(0xd4)],_0x538e2a[_0x3f6827(0x430)]),_0x43e3c8(0x0,_0x28e235[_0x3f6827(0x19b)]),_0x43e3c8(0x1,_0x1d23ef['IUIPartsService']),_0x43e3c8(0x2,_0x28e235['Inject'](_0x28e235[_0x3f6827(0x3e8)])),_0x43e3c8(0x3,_0x28e235['Inject'](_0x538e2a[_0x3f6827(0x135)]))],_0x538e2a[_0x3f6827(0x430)]);function _0x4303e4(_0x3c2782){const {status$:_0x3421f8}=_0x3c2782;return function(){const _0x2c7fef=_0x45d3;return _0x188472[_0x2c7fef(0xc0)](_0x3021bf,{'status$':_0x3421f8});};}const _0xfaea01=_0x28e235['createIdentifier'](_0x3f6827(0x2da));var _0x863b71=Object[_0x3f6827(0x328)],_0x5c0ae3=Object[_0x3f6827(0x1cb)],_0x34dd7e=(_0xb7d4aa,_0x4c754f,_0x21134e,_0x33f0ce)=>{const _0x21d130=_0x3f6827;for(var _0x36178d=_0x33f0ce>0x1?void 0x0:_0x33f0ce?_0x5c0ae3(_0x4c754f,_0x21134e):_0x4c754f,_0x3c585e=_0xb7d4aa[_0x21d130(0x16b)]-0x1,_0x28d528;_0x3c585e>=0x0;_0x3c585e--)(_0x28d528=_0xb7d4aa[_0x3c585e])&&(_0x36178d=(_0x33f0ce?_0x28d528(_0x4c754f,_0x21134e,_0x36178d):_0x28d528(_0x36178d))||_0x36178d);return _0x33f0ce&&_0x36178d&&_0x863b71(_0x4c754f,_0x21134e,_0x36178d),_0x36178d;},_0xb0d7f3=(_0x5dcab2,_0x1e86c9)=>(_0x437168,_0x2a11e3)=>_0x1e86c9(_0x437168,_0x2a11e3,_0x5dcab2);_0x538e2a[_0x3f6827(0x2d6)]=class extends _0x28e235[_0x3f6827(0x93)]{constructor(_0x1a605d,_0x328064,_0x21346f,_0x4302c3,_0x4303db,_0x3d7b31){const _0x2246f0=_0x3f6827;super(),this[_0x2246f0(0x256)]=_0x1a605d,this['_logService']=_0x328064,this[_0x2246f0(0x11a)]=_0x21346f,this[_0x2246f0(0x2a6)]=_0x4302c3,this[_0x2246f0(0x184)]=_0x4303db,_0x3d7b31?_0x3d7b31==null||_0x3d7b31[_0x2246f0(0x3c8)]()['then'](()=>this['_init']()):(this[_0x2246f0(0x1af)][_0x2246f0(0x293)](_0x2246f0(0x1fc),_0x2246f0(0x399)),this[_0x2246f0(0x3e4)]());}async[_0x3f6827(0x3e4)](){const _0x4ce615=_0x3f6827,_0x53a982=this[_0x4ce615(0x256)][_0x4ce615(0x1ec)](_0x4ce615(0xff)),_0x27009f=this[_0x4ce615(0x256)]['getParam'](_0x4ce615(0x1ba));if(!_0x53a982||!_0x27009f){this['_logService'][_0x4ce615(0x293)](_0x4ce615(0x1fc),_0x4ce615(0x394));return;}switch(Number(_0x27009f)){case _0x2dcfa8['UNIVER_SHEET']:{const _0x253261=await this[_0x4ce615(0x342)](_0x53a982);this['_setupSubUnitSync'](_0x253261);break;}case _0x2dcfa8[_0x4ce615(0x372)]:{await this['_loadDoc'](_0x53a982);break;}default:{this['_logService'][_0x4ce615(0x270)](_0x4ce615(0x1fc),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async['_setupSubUnitSync'](_0x129678){const _0x9538ef=_0x3f6827;await this['_updateSubUnitFromURLParams'](_0x129678),_0x129678[_0x9538ef(0x444)][_0x9538ef(0x2ef)](_0x2820f3[_0x9538ef(0xeb)](this['dispose$']))[_0x9538ef(0x3cd)](_0x9e591=>{const _0x5a7737=_0x9538ef;_0x9e591&&this[_0x5a7737(0x1e5)](_0x9e591);}),this[_0x9538ef(0x256)][_0x9538ef(0x3f4)][_0x9538ef(0x2ef)](_0x2820f3[_0x9538ef(0xeb)](this['dispose$']))['subscribe'](()=>this[_0x9538ef(0x3e7)](_0x129678));}[_0x3f6827(0x1e5)](_0x4c4990,_0x964f4f=!0x1){const _0x55a414=_0x3f6827,_0x55b0dd=this[_0x55a414(0x256)][_0x55a414(0x1ec)](_0x55a414(0x17d));_0x4c4990[_0x55a414(0x32d)]()!==_0x55b0dd&&this[_0x55a414(0x256)]['setParam'](_0x55a414(0x17d),_0x4c4990[_0x55a414(0x32d)](),_0x964f4f);}async[_0x3f6827(0x3e7)](_0x47be53){const _0xe2ca63=_0x3f6827;var _0x3a9c0c;const _0x3914e2=this['_urlService'][_0xe2ca63(0x1ec)](_0xe2ca63(0x17d));if(!_0x3914e2||!_0x47be53['getSheetBySheetId'](_0x3914e2)){const _0x2d1586=_0x47be53[_0xe2ca63(0x343)]()[0x0],_0x3a06e2=_0x47be53['getSheetBySheetId'](_0x2d1586);if(!_0x3a06e2)return;this['_updateURLWithCurrentState'](_0x3a06e2,!0x0),await this['_commandService'][_0xe2ca63(0x203)](_0x48cd6e['SetWorksheetActivateCommand']['id'],{'unitId':_0x47be53['getUnitId'](),'subUnitId':_0x2d1586});return;}((_0x3a9c0c=_0x47be53[_0xe2ca63(0x155)]())==null?void 0x0:_0x3a9c0c[_0xe2ca63(0x32d)]())!==_0x3914e2&&await this[_0xe2ca63(0x11a)]['executeCommand'](_0x48cd6e[_0xe2ca63(0x282)]['id'],{'unitId':_0x47be53['getUnitId'](),'subUnitId':_0x3914e2});}async['_loadSheet'](_0x2dcfc1){const _0x47a4db=_0x3f6827;let _0x41f122=0x0;const _0x3aaded=await this['_localCacheService'][_0x47a4db(0x170)](_0x2dcfc1);return _0x3aaded&&(_0x3aaded[_0x47a4db(0x82)]||_0x3aaded['mutations'][_0x47a4db(0x16b)]!==0x0)&&(_0x41f122=_0x3aaded[_0x47a4db(0x3e9)]),_0x41f122===0x0&&this[_0x47a4db(0x1af)][_0x47a4db(0x293)](_0x47a4db(0x1fc),_0x47a4db(0x1b7)),this[_0x47a4db(0x184)][_0x47a4db(0x44c)](_0x2dcfc1,_0x41f122);}async[_0x3f6827(0x183)](_0xf811a2){const _0x511607=_0x3f6827;let _0x277043=0x0;const _0x424f82=await this['_localCacheService']['loadOfflineData'](_0xf811a2);return _0x424f82&&(_0x424f82[_0x511607(0x82)]||_0x424f82[_0x511607(0x28b)]['length']!==0x0)&&(_0x277043=_0x424f82[_0x511607(0x3e9)]),_0x277043===0x0&&this[_0x511607(0x1af)][_0x511607(0x293)]('[DataLoaderController]',_0x511607(0x1b7)),this[_0x511607(0x184)]['loadDoc'](_0xf811a2,_0x277043);}},_0x538e2a[_0x3f6827(0x2d6)]=_0x34dd7e([_0x28e235[_0x3f6827(0xb8)](_0x28e235[_0x3f6827(0x177)][_0x3f6827(0xd4)],_0x538e2a['DataLoaderController']),_0xb0d7f3(0x0,_0xfaea01),_0xb0d7f3(0x1,_0x28e235[_0x3f6827(0x40e)]),_0xb0d7f3(0x2,_0x28e235[_0x3f6827(0x23d)]),_0xb0d7f3(0x3,_0x28e235[_0x3f6827(0xb5)](_0x538e2a[_0x3f6827(0x249)])),_0xb0d7f3(0x4,_0x28e235[_0x3f6827(0xb5)](_0x4ecbea['SnapshotService'])),_0xb0d7f3(0x5,_0x28e235['Optional'](_0x2602c2[_0x3f6827(0x1aa)]))],_0x538e2a[_0x3f6827(0x2d6)]);var _0x34696c=Object[_0x3f6827(0x328)],_0x12a465=Object[_0x3f6827(0x1cb)],_0xf2d90f=(_0x159530,_0x28bdaf,_0x272485,_0x419978)=>{const _0x314383=_0x3f6827;for(var _0x5c9b68=_0x419978>0x1?void 0x0:_0x419978?_0x12a465(_0x28bdaf,_0x272485):_0x28bdaf,_0x48c63b=_0x159530[_0x314383(0x16b)]-0x1,_0x280d1d;_0x48c63b>=0x0;_0x48c63b--)(_0x280d1d=_0x159530[_0x48c63b])&&(_0x5c9b68=(_0x419978?_0x280d1d(_0x28bdaf,_0x272485,_0x5c9b68):_0x280d1d(_0x5c9b68))||_0x5c9b68);return _0x419978&&_0x5c9b68&&_0x34696c(_0x28bdaf,_0x272485,_0x5c9b68),_0x5c9b68;},_0x2878fe=(_0x24d4b1,_0x6585a3)=>(_0x205c8e,_0x4815f8)=>_0x6585a3(_0x205c8e,_0x4815f8,_0x24d4b1);const _0x40a265=_0x3f6827(0x1fb),_0x54ff0e=_0x3f6827(0x3aa);let _0x2d9bf7=class extends _0x28e235[_0x3f6827(0x29c)]{constructor(_0xb2a39c,_0x51ceb5){const _0x292026=_0x3f6827;super(),this['_univerInstanceService']=_0xb2a39c,this[_0x292026(0x381)]=_0x51ceb5,this[_0x292026(0x3e4)]();}[_0x3f6827(0x3e4)](){const _0x37462a=_0x3f6827;this['disposeWithMe'](_0x28e235[_0x37462a(0x23e)](this[_0x37462a(0x156)][_0x37462a(0xfa)][_0x37462a(0x3cd)](()=>{const _0x800fd2=_0x37462a;var _0x3186ee;const _0x7ecf96=this[_0x800fd2(0x156)]['getFocusedUnit']();let _0x10498b=(_0x3186ee=this['_configService']['getConfig'](_0x40a265))!=null?_0x3186ee:_0x54ff0e;_0x7ecf96 instanceof _0x28e235[_0x800fd2(0x41d)]&&(_0x10498b=_0x7ecf96[_0x800fd2(0x2e6)]),document[_0x800fd2(0x3bf)]=_0x10498b;})));}};_0x2d9bf7=_0xf2d90f([_0x28e235['OnLifecycle'](_0x28e235[_0x3f6827(0x177)][_0x3f6827(0x22c)],_0x2d9bf7),_0x2878fe(0x0,_0x28e235[_0x3f6827(0x19b)]),_0x2878fe(0x1,_0x28e235[_0x3f6827(0x115)])],_0x2d9bf7);var _0x397835=Object['defineProperty'],_0x199736=Object[_0x3f6827(0x1cb)],_0x6de05a=(_0x4e3a5c,_0x8328a4,_0x499bb8,_0x9b7187)=>{const _0x28de75=_0x3f6827;for(var _0x4f68fd=_0x9b7187>0x1?void 0x0:_0x9b7187?_0x199736(_0x8328a4,_0x499bb8):_0x8328a4,_0x267854=_0x4e3a5c[_0x28de75(0x16b)]-0x1,_0x3b46e0;_0x267854>=0x0;_0x267854--)(_0x3b46e0=_0x4e3a5c[_0x267854])&&(_0x4f68fd=(_0x9b7187?_0x3b46e0(_0x8328a4,_0x499bb8,_0x4f68fd):_0x3b46e0(_0x4f68fd))||_0x4f68fd);return _0x9b7187&&_0x4f68fd&&_0x397835(_0x8328a4,_0x499bb8,_0x4f68fd),_0x4f68fd;},_0x40cf83=(_0x1253fc,_0x5ebdbd)=>(_0x4a86c0,_0x18a6c2)=>_0x5ebdbd(_0x4a86c0,_0x18a6c2,_0x1253fc);_0x538e2a['SnapshotServerOverHTTPService']=class{constructor(_0x25a7fa,_0x427766){const _0xc62f27=_0x3f6827;this[_0xc62f27(0x381)]=_0x25a7fa,this[_0xc62f27(0x3fb)]=_0x427766;}async[_0x3f6827(0x1e9)](_0x68feb0,_0x11ab3c){const _0x1935d4=_0x3f6827;var _0x22519f;const {unitID:_0x5c7cd5,type:_0x218677,revision:_0x4f6a48=0x0}=_0x11ab3c,_0x33dd6a=this[_0x1935d4(0xe7)]()+'/'+_0x218677+_0x1935d4(0x1a6)+_0x5c7cd5+_0x1935d4(0x1ac)+_0x4f6a48,_0x3c5ae0=(await this[_0x1935d4(0x3fb)][_0x1935d4(0x450)](_0x33dd6a))[_0x1935d4(0x18b)],_0x571a99=(_0x22519f=_0x3c5ae0[_0x1935d4(0x3fd)])==null?void 0x0:_0x22519f['workbook'];if(_0x571a99){const _0x41e6f5=_0x571a99==null?void 0x0:_0x571a99['originalMeta'],_0x260fa6=_0x28e235['textEncoder'][_0x1935d4(0x27b)](_0x28e235[_0x1935d4(0x429)](_0x41e6f5));_0x571a99['originalMeta']=_0x260fa6,Object['entries'](_0x571a99[_0x1935d4(0x21e)])[_0x1935d4(0x384)](([,_0x106f67])=>{const _0x32c680=_0x1935d4,_0x3c1ab6=_0x106f67['originalMeta'],_0x17fffd=_0x28e235[_0x32c680(0x3ff)][_0x32c680(0x27b)](_0x28e235[_0x32c680(0x429)](_0x3c1ab6));_0x106f67[_0x32c680(0x191)]=_0x17fffd;});}return _0x3c5ae0;}async['getSheetBlock'](_0x3373a6,_0x32794d){const _0x548dbf=_0x3f6827,{unitID:_0x16c90c,type:_0x1f6a04,blockID:_0x3e0634}=_0x32794d,_0x29a525=this[_0x548dbf(0x19f)]()+'/'+_0x1f6a04+_0x548dbf(0x1a6)+_0x16c90c+_0x548dbf(0x1e1)+_0x3e0634;return(await this[_0x548dbf(0x3fb)][_0x548dbf(0x450)](_0x29a525))[_0x548dbf(0x18b)];}async[_0x3f6827(0x116)](_0x1e7e96,_0x118df0){const _0x54b54b=_0x3f6827,{unitID:_0x30e8a7,type:_0x3febdc,from:_0x269528,to:_0x28e64d}=_0x118df0,_0x2a04df=this[_0x54b54b(0x19f)]()+'/'+_0x3febdc+_0x54b54b(0x1a6)+_0x30e8a7+_0x54b54b(0x213)+_0x269528+_0x54b54b(0x266)+_0x28e64d;return(await this[_0x54b54b(0x3fb)]['get'](_0x2a04df))[_0x54b54b(0x18b)];}['_getSnapshotAPIPrefix'](){const _0x3d9235=_0x3f6827;var _0x32b781;return(_0x32b781=this[_0x3d9235(0x381)][_0x3d9235(0x457)](_0x19eb4b))!=null?_0x32b781:this[_0x3d9235(0x19f)]();}[_0x3f6827(0x19f)](){const _0x34e297=_0x3f6827;var _0x2491cb;return(_0x2491cb=this[_0x34e297(0x381)][_0x34e297(0x457)](_0x26cbfd))!=null?_0x2491cb:_0x58bc58;}async[_0x3f6827(0x301)](_0x591934,_0x14a1a7){const _0x1755c8=_0x3f6827,_0x4d1207='/universer-api/snapshot/'+_0x14a1a7['type']+_0x1755c8(0x1a6)+_0x14a1a7[_0x1755c8(0x27d)]+'/resources';return(await this[_0x1755c8(0x3fb)][_0x1755c8(0x450)](_0x4d1207,{'params':{'resourceId':JSON[_0x1755c8(0x2a0)](_0x14a1a7[_0x1755c8(0x3d0)])}}))['body'];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3f6827(0x210)](){const _0xc95387=_0x3f6827;throw new Error(_0xc95387(0x216));}},_0x538e2a[_0x3f6827(0x448)]=_0x6de05a([_0x40cf83(0x0,_0x28e235[_0x3f6827(0x115)]),_0x40cf83(0x1,_0x28e235[_0x3f6827(0xb5)](_0x7b6974[_0x3f6827(0xaa)]))],_0x538e2a[_0x3f6827(0x448)]);var _0xd75126=Object['defineProperty'],_0x34ed3a=Object['getOwnPropertyDescriptor'],_0xa559a0=(_0x2a2e7a,_0x3fa994,_0x864c07,_0x574aea)=>{const _0x343fda=_0x3f6827;for(var _0x3bfd1f=_0x574aea>0x1?void 0x0:_0x574aea?_0x34ed3a(_0x3fa994,_0x864c07):_0x3fa994,_0x3916af=_0x2a2e7a[_0x343fda(0x16b)]-0x1,_0x6101bd;_0x3916af>=0x0;_0x3916af--)(_0x6101bd=_0x2a2e7a[_0x3916af])&&(_0x3bfd1f=(_0x574aea?_0x6101bd(_0x3fa994,_0x864c07,_0x3bfd1f):_0x6101bd(_0x3bfd1f))||_0x3bfd1f);return _0x574aea&&_0x3bfd1f&&_0xd75126(_0x3fa994,_0x864c07,_0x3bfd1f),_0x3bfd1f;},_0x2e94a9=(_0x156f52,_0x35bc84)=>(_0x5ee2f4,_0x3bb687)=>_0x35bc84(_0x5ee2f4,_0x3bb687,_0x156f52);let _0x404988=class extends _0x28e235['LocalUndoRedoService']{constructor(_0x95f2a1,_0x55bb0b,_0x4d7c9f,_0x1fda3d,_0x10ee30){const _0x43e719=_0x3f6827;super(_0x95f2a1,_0x55bb0b,_0x4d7c9f),this[_0x43e719(0x2b0)]=_0x1fda3d,this[_0x43e719(0x1af)]=_0x10ee30;}[_0x3f6827(0x331)](_0x599f19,_0x4df6c4){const _0xa19b75=_0x3f6827,_0x1c8645=this['_getUndoStack'](_0x599f19);if(_0x1c8645)try{const _0x2320e9=this[_0xa19b75(0x136)](_0x1c8645,_0x4df6c4);this[_0xa19b75(0x39d)](_0x599f19,_0x2320e9);}catch(_0x45eddf){this[_0xa19b75(0x1af)][_0xa19b75(0x270)](_0xa19b75(0xee),_0x45eddf),this[_0xa19b75(0xa1)](_0x599f19);}const _0x54cef4=this['_getRedoStack'](_0x599f19);if(_0x54cef4)try{const _0x49eb1e=this[_0xa19b75(0x136)](_0x54cef4,_0x4df6c4);this[_0xa19b75(0x14d)](_0x599f19,_0x49eb1e);}catch(_0x1117ff){this['_logService']['error'](_0x1117ff),this[_0xa19b75(0x358)](_0x599f19);}}[_0x3f6827(0xa1)](_0x4cbe3a){const _0xe9ed45=_0x3f6827,_0x5727b4=this[_0xe9ed45(0x26c)](_0x4cbe3a);_0x5727b4&&(_0x5727b4[_0xe9ed45(0x16b)]=0x0,this[_0xe9ed45(0x261)]());}[_0x3f6827(0x358)](_0x126925){const _0x5254b1=_0x3f6827,_0x3f4b1e=this['_getRedoStack'](_0x126925);_0x3f4b1e&&(_0x3f4b1e[_0x5254b1(0x16b)]=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x50d20e,_0x3d31f3){const _0x1bf23a=_0x3f6827;this[_0x1bf23a(0x20f)][_0x1bf23a(0x2b2)](_0x50d20e,_0x3d31f3),this[_0x1bf23a(0x261)]();}[_0x3f6827(0x14d)](_0x47d76d,_0x47f3d9){const _0x34cedf=_0x3f6827;this[_0x34cedf(0x1be)][_0x34cedf(0x2b2)](_0x47d76d,_0x47f3d9),this['_updateStatus']();}[_0x3f6827(0x136)](_0x159915,_0x4fe88d){const _0x1b8e9f=_0x3f6827,_0x20b195=[];let _0x5a5e66=_0x4fe88d,_0x277a31=_0x4fe88d;for(let _0x3dd15c=_0x159915['length']-0x1;_0x3dd15c>=0x0;_0x3dd15c--){const {unitID:_0x396592,undoMutations:_0x1bafc6,redoMutations:_0x25ca79}=_0x159915[_0x3dd15c],_0x5a1318=this[_0x1b8e9f(0x2b0)][_0x1b8e9f(0x2d3)](_0x5a5e66,_0x1bafc6),_0x1fc6ed=this['_transformService'][_0x1b8e9f(0x2d3)](_0x277a31,_0x25ca79);if(_0x4ecbea[_0x1b8e9f(0x95)](_0x5a1318)||_0x4ecbea[_0x1b8e9f(0x95)](_0x1fc6ed)){this[_0x1b8e9f(0x1af)]['error'](_0x1b8e9f(0xee),_0x1b8e9f(0x2d0),_0x5a1318,_0x1fc6ed);break;}_0x5a5e66=_0x5a1318[_0x1b8e9f(0x35d)],_0x277a31=_0x1fc6ed['c1Prime'],_0x20b195[_0x1b8e9f(0x386)]({'unitID':_0x396592,'undoMutations':_0x5a1318['m2Prime'],'redoMutations':_0x1fc6ed[_0x1b8e9f(0x3c6)]});}return _0x20b195[_0x1b8e9f(0x207)]();}};_0x404988=_0xa559a0([_0x2e94a9(0x0,_0x28e235[_0x3f6827(0x19b)]),_0x2e94a9(0x1,_0x28e235['ICommandService']),_0x2e94a9(0x2,_0x28e235[_0x3f6827(0x107)]),_0x2e94a9(0x3,_0x4ecbea[_0x3f6827(0x111)]),_0x2e94a9(0x4,_0x28e235[_0x3f6827(0x40e)])],_0x404988);class _0x591250 extends _0x28e235[_0x3f6827(0x93)]{constructor(){const _0x19e8a7=_0x3f6827;super(),_0x2b7d82(this,'urlChange$'),this[_0x19e8a7(0x3f4)]=_0x2820f3[_0x19e8a7(0x172)](window,_0x19e8a7(0x453))[_0x19e8a7(0x2ef)](_0x2820f3[_0x19e8a7(0xeb)](this[_0x19e8a7(0x388)]),_0x2820f3[_0x19e8a7(0x3d5)](0x1),_0x2820f3[_0x19e8a7(0x234)](void 0x0));}[_0x3f6827(0x10b)](_0x2ec752,_0x58607e,_0x3f92e6=!0x1){const _0xecd47c=_0x3f6827,_0x2bcc01=new URL(window[_0xecd47c(0x146)][_0xecd47c(0x36e)]);_0x2bcc01['searchParams'][_0xecd47c(0x2b2)](_0x2ec752,_0x58607e),_0x3f92e6?window[_0xecd47c(0x1c6)]['replaceState']('','',_0x2bcc01['toString']()):window[_0xecd47c(0x1c6)][_0xecd47c(0x31e)]('','',_0x2bcc01['toString']());}[_0x3f6827(0x167)](_0x116951,_0x2de8cc=!0x1){const _0xcd1b7f=_0x3f6827,_0x5a3983=new URL(window[_0xcd1b7f(0x146)][_0xcd1b7f(0x36e)]);_0x5a3983[_0xcd1b7f(0x13b)][_0xcd1b7f(0x458)](_0x116951),_0x2de8cc?window[_0xcd1b7f(0x1c6)][_0xcd1b7f(0x416)]('','',_0x5a3983[_0xcd1b7f(0x1d9)]()):window['history']['pushState']('','',_0x5a3983['toString']());}[_0x3f6827(0x1ec)](_0x818ad7){const _0x52f813=_0x3f6827;var _0x291165;return(_0x291165=new URL(window[_0x52f813(0x146)][_0x52f813(0x36e)])[_0x52f813(0x13b)][_0x52f813(0x450)](_0x818ad7))!=null?_0x291165:void 0x0;}}const _0x358c07=_0x3f6827(0xca),_0x5b9a89=_0x3f6827(0x145),_0x537fa9=0x6,_0x3d3323=1.5,_0x427459=0x4,_0x365d9e=1.5,_0x5087ba=_0x3f6827(0x3de);class _0x3c48c7{constructor(_0x321e79,_0x181178,_0x685002,_0x31ae19){const _0x47c239=_0x3f6827;_0x2b7d82(this,_0x47c239(0x248),[]),_0x2b7d82(this,_0x47c239(0x247),null),_0x2b7d82(this,'_textBubble',null),_0x2b7d82(this,_0x47c239(0x2a3),null),_0x2b7d82(this,'_hideTimer',null),_0x2b7d82(this,_0x47c239(0xa3),null),(this[_0x47c239(0x243)]=_0x321e79,this[_0x47c239(0x23c)]=_0x181178,this[_0x47c239(0x138)]=_0x685002,this[_0x47c239(0x375)]=_0x31ae19,this[_0x47c239(0x28c)]());}set[_0x3f6827(0x21d)](_0x5bef24){const _0x4d5ce2=_0x3f6827;_0x5bef24?(this[_0x4d5ce2(0x2a3)]&&this['_anchorDot']['hide'](),this[_0x4d5ce2(0x345)]&&this['_textBubble'][_0x4d5ce2(0x226)]()):(this[_0x4d5ce2(0x2a3)]&&this[_0x4d5ce2(0x2a3)][_0x4d5ce2(0x226)](),this[_0x4d5ce2(0x345)]&&this['_textBubble'][_0x4d5ce2(0x2ac)]());}[_0x3f6827(0x179)](){const _0xf5de7c=_0x3f6827;for(const _0x4e904f of this[_0xf5de7c(0x248)])_0x4e904f[_0xf5de7c(0x179)]();this['_textBubble']&&this[_0xf5de7c(0x345)][_0xf5de7c(0x179)](),this[_0xf5de7c(0x2a3)]&&this[_0xf5de7c(0x2a3)][_0xf5de7c(0x179)](),this[_0xf5de7c(0x247)]&&this[_0xf5de7c(0x247)][_0xf5de7c(0x179)](),this[_0xf5de7c(0xa3)]&&this['_eventUnsubscribe']();}[_0x3f6827(0x28c)](){const _0x111934=_0x3f6827,{_docSkeleton:_0x107d9c,_document:_0x3922b2}=this,{color:_0x466559,name:_0x3060de,ranges:_0x59e47e}=this[_0x111934(0x243)],_0x36f8d3=_0x3922b2[_0x111934(0x189)](),{docsLeft:_0x186cba,docsTop:_0x459a19}=_0x36f8d3,_0x469b71=new _0x1c921f['NodePositionConvertToCursor'](_0x36f8d3,_0x107d9c);for(const {startOffset:_0xf1ed8c,endOffset:_0x1e939a,collapsed:_0x3a73b1,isActive:_0x49f9c7}of _0x59e47e){const _0x43fed0=_0x107d9c[_0x111934(0x40f)](_0xf1ed8c),_0x596fd4=_0x107d9c[_0x111934(0x40f)](_0x1e939a);if(_0x49f9c7){const {contentBoxPointGroup:_0x1763be}=_0x469b71[_0x111934(0x2e7)](_0x596fd4,_0x596fd4);if(_0x1763be['length']===0x0)continue;this['_drawAnchor'](_0x466559,_0x1763be,_0x186cba,_0x459a19,_0x3060de),this[_0x111934(0xa3)]=this['_handleHover']();}if(!_0x3a73b1){const {contentBoxPointGroup:_0x5a7b3d}=_0x469b71['getRangePointData'](_0x43fed0,_0x596fd4);if(_0x5a7b3d[_0x111934(0x16b)]===0x0)continue;this[_0x111934(0x239)](_0x466559,_0x5a7b3d,_0x186cba,_0x459a19);}}}[_0x3f6827(0x400)](_0x39331c,_0x28d132,_0x733f5e,_0x41a3f4,_0x568fd3){const _0x26d975=_0x3f6827,_0x348ddc=this[_0x26d975(0x197)](_0x28d132),{left:_0x21c5ed,top:_0x50ac67,height:_0x1d2bbf}=_0x348ddc,_0x3440ef=this[_0x26d975(0x3fa)](),_0x4c5edd=_0x365d9e/_0x3440ef,_0xfb7583=new _0x1c921f[(_0x26d975(0x1d3))](_0x358c07+_0x28e235[_0x26d975(0x309)]['generateRandomId'](_0x537fa9),{'left':_0x21c5ed+_0x733f5e-_0x4c5edd,'top':_0x50ac67+_0x41a3f4,'height':_0x1d2bbf,'width':_0x3d3323,'fill':_0x39331c||_0x1c921f['getColor'](_0x28e235[_0x26d975(0x19c)][_0x26d975(0x223)],0x0),'strokeWidth':_0x4c5edd,'stroke':_0x5087ba,'evented':!0x0});this[_0x26d975(0x247)]=_0xfb7583,this['_scene'][_0x26d975(0x3c1)](_0xfb7583,_0x1c921f['TEXT_RANGE_LAYER_INDEX']);const _0x30e65b=new _0x1c921f[(_0x26d975(0x1d3))](_0x358c07+_0x28e235[_0x26d975(0x309)][_0x26d975(0x238)](_0x537fa9),{'left':_0x21c5ed+_0x733f5e-_0x4c5edd,'top':_0x50ac67+_0x41a3f4-_0x427459/0x2,'height':_0x427459,'width':_0x427459,'fill':_0x39331c||_0x1c921f[_0x26d975(0x3b8)](_0x28e235[_0x26d975(0x19c)][_0x26d975(0x223)],0x0),'strokeWidth':0x0,'stroke':_0x39331c||_0x1c921f[_0x26d975(0x3b8)](_0x28e235[_0x26d975(0x19c)]['black'],0x0),'evented':!0x1});this[_0x26d975(0x2a3)]=_0x30e65b,this[_0x26d975(0x23c)][_0x26d975(0x3c1)](_0x30e65b,_0x1c921f[_0x26d975(0x152)]);const _0x52a41d=new _0x5acc75(_0x358c07+_0x28e235[_0x26d975(0x309)]['generateRandomId'](_0x537fa9),{'left':_0x21c5ed+_0x733f5e-_0x4c5edd,'top':_0x50ac67+_0x41a3f4-_0x340c63,'text':_0x568fd3,'color':_0x39331c});this[_0x26d975(0x345)]=_0x52a41d,this[_0x26d975(0x23c)][_0x26d975(0x3c1)](_0x52a41d,_0x1c921f[_0x26d975(0x152)]),this[_0x26d975(0x21d)]=!0x1;}[_0x3f6827(0x40c)](){const _0x5679a2=_0x3f6827,_0x3ee8a3=this[_0x5679a2(0x247)][_0x5679a2(0x42a)][_0x5679a2(0x297)](()=>{const _0x24f459=_0x5679a2;this[_0x24f459(0x21d)]=!0x0;}),_0x132cf4=this[_0x5679a2(0x247)][_0x5679a2(0x35a)]['subscribeEvent'](()=>{const _0x116cab=_0x5679a2;this[_0x116cab(0xc2)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1df0e4=_0x5679a2;_0x3ee8a3[_0x1df0e4(0x117)](),_0x132cf4['unsubscribe']();};}[_0x3f6827(0x239)](_0x5f45e9,_0x34cd07,_0xd38172,_0x2e6af7){const _0x1d8bb2=_0x3f6827,_0x4431b9=new _0x28e235['ColorKit'](_0x5f45e9)['setAlpha'](0.2)['toRgbString'](),_0x628eb8=new _0x1c921f[(_0x1d8bb2(0x88))](_0x5b9a89+_0x28e235['Tools'][_0x1d8bb2(0x238)](_0x537fa9),{'pointsGroup':_0x34cd07,'fill':_0x4431b9||_0x1c921f['getColor'](_0x28e235['COLORS'][_0x1d8bb2(0x223)],0.2),'left':_0xd38172,'top':_0x2e6af7,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x1d8bb2(0x386)](_0x628eb8),this[_0x1d8bb2(0x23c)][_0x1d8bb2(0x3c1)](_0x628eb8,_0x1c921f['TEXT_RANGE_LAYER_INDEX']);}[_0x3f6827(0x197)](_0x394b39){const _0x554fb6=_0x394b39[0x0],_0x5ec4d1=_0x554fb6[0x0],_0x1a6a89=_0x554fb6[0x2],{x:_0x4da2f9,y:_0x53cd67}=_0x5ec4d1,{x:_0x4c5a29,y:_0x4e9438}=_0x1a6a89;return{'left':_0x4da2f9,'top':_0x53cd67,'width':_0x4c5a29-_0x4da2f9,'height':_0x4e9438-_0x53cd67};}[_0x3f6827(0x3fa)](){const _0x5cf882=_0x3f6827,{scaleX:_0x48ca96,scaleY:_0x261fdb}=this[_0x5cf882(0x23c)][_0x5cf882(0x271)]();return Math[_0x5cf882(0x231)](_0x48ca96,_0x261fdb);}}var _0x2abdf5=Object[_0x3f6827(0x328)],_0x41543c=Object[_0x3f6827(0x1cb)],_0xa4e941=(_0x35c3e3,_0x5e4865,_0x537eaf,_0x2e4bcb)=>{const _0x5d67fe=_0x3f6827;for(var _0x162042=_0x2e4bcb>0x1?void 0x0:_0x2e4bcb?_0x41543c(_0x5e4865,_0x537eaf):_0x5e4865,_0x4ce903=_0x35c3e3[_0x5d67fe(0x16b)]-0x1,_0x327ff3;_0x4ce903>=0x0;_0x4ce903--)(_0x327ff3=_0x35c3e3[_0x4ce903])&&(_0x162042=(_0x2e4bcb?_0x327ff3(_0x5e4865,_0x537eaf,_0x162042):_0x327ff3(_0x162042))||_0x162042);return _0x2e4bcb&&_0x162042&&_0x2abdf5(_0x5e4865,_0x537eaf,_0x162042),_0x162042;},_0x3b06af=(_0x5944b2,_0x34b49f)=>(_0xcf1243,_0x2c8249)=>_0x34b49f(_0xcf1243,_0x2c8249,_0x5944b2);let _0x5d03af=class extends _0x28e235[_0x3f6827(0x93)]{constructor(_0x4cddfb,_0x557f69,_0x517614,_0x5e375a,_0x4f0a62){const _0x398415=_0x3f6827;super(),_0x2b7d82(this,_0x398415(0x3e2),[]),(this[_0x398415(0x36d)]=_0x4cddfb,this[_0x398415(0x156)]=_0x557f69,this[_0x398415(0x2c6)]=_0x517614,this['_docSkeletonManagerService']=_0x5e375a,this['_themeService']=_0x4f0a62,this['_init']());}[_0x3f6827(0x3e4)](){const _0x384a9b=_0x3f6827;this[_0x384a9b(0x171)]['currentSkeleton$'][_0x384a9b(0x2ef)](_0x1086dc[_0x384a9b(0xeb)](this[_0x384a9b(0x388)]),_0x1086dc[_0x384a9b(0x225)](_0x3b35cd=>{const _0x20bc26=_0x384a9b;if(_0x3b35cd){const _0x265ec3=_0x3b35cd['getViewModel']()[_0x20bc26(0x235)]()[_0x20bc26(0x322)]();return _0x2820f3[_0x20bc26(0x330)](this[_0x20bc26(0x36d)][_0x20bc26(0x3f6)](_0x265ec3),this[_0x20bc26(0x349)][_0x20bc26(0xe2)])[_0x20bc26(0x2ef)](_0x1086dc[_0x20bc26(0x25f)](([_0x569aa4,_0x206ede])=>({'skeleton':_0x3b35cd,'cursors':[..._0x569aa4[_0x20bc26(0x2d8)]()]['flatMap'](_0x4729d7=>({..._0x4729d7,'color':_0x206ede[_0x4729d7[_0x20bc26(0x126)]]}))})));}return _0x2820f3['of']({'skeleton':null,'cursors':[]});}))[_0x384a9b(0x3cd)](({skeleton:_0x2975b0,cursors:_0x17ea07})=>{const _0x5a1fe3=_0x384a9b;this[_0x5a1fe3(0x3fc)](),_0x2975b0&&this[_0x5a1fe3(0x321)](_0x2975b0,_0x17ea07);});}[_0x3f6827(0x321)](_0x5eacae,_0x37cf8f){const _0x166adb=_0x3f6827,_0x5dccf5=this['_getDocObject']();if(_0x5dccf5==null)return;const {scene:_0x30894e,document:_0x2f6f75}=_0x5dccf5,_0x2292ec=_0x37cf8f['map'](_0x1b25a4=>new _0x3c48c7(_0x1b25a4,_0x30894e,_0x5eacae,_0x2f6f75));this[_0x166adb(0x3e2)]=_0x2292ec;}['_removeCollabCursors'](){const _0x225ea0=_0x3f6827;this[_0x225ea0(0x3e2)][_0x225ea0(0x384)](_0x2927ce=>_0x2927ce[_0x225ea0(0x179)]()),this[_0x225ea0(0x3e2)]=[];}[_0x3f6827(0x2b3)](){const _0x257c4a=_0x3f6827;return _0x4e3741[_0x257c4a(0x3a6)](this[_0x257c4a(0x156)],this['_renderManagerService']);}};_0x5d03af=_0xa4e941([_0x28e235[_0x3f6827(0xb8)](_0x28e235[_0x3f6827(0x177)][_0x3f6827(0x162)],_0x5d03af),_0x3b06af(0x0,_0x28e235[_0x3f6827(0xb5)](_0x2e4db5)),_0x3b06af(0x1,_0x28e235[_0x3f6827(0x19b)]),_0x3b06af(0x2,_0x1c921f[_0x3f6827(0x201)]),_0x3b06af(0x3,_0x28e235['Inject'](_0x4e3741[_0x3f6827(0x32b)])),_0x3b06af(0x4,_0x28e235[_0x3f6827(0xb5)](_0x28e235[_0x3f6827(0x2c2)]))],_0x5d03af);var _0x4e3013=Object[_0x3f6827(0x328)],_0x439057=Object['getOwnPropertyDescriptor'],_0x1cf2b6=(_0x159f11,_0x9b9ca8,_0x2ada05,_0x1acd8e)=>{const _0x41c22a=_0x3f6827;for(var _0x548b98=_0x1acd8e>0x1?void 0x0:_0x1acd8e?_0x439057(_0x9b9ca8,_0x2ada05):_0x9b9ca8,_0x223dac=_0x159f11[_0x41c22a(0x16b)]-0x1,_0x50dc1b;_0x223dac>=0x0;_0x223dac--)(_0x50dc1b=_0x159f11[_0x223dac])&&(_0x548b98=(_0x1acd8e?_0x50dc1b(_0x9b9ca8,_0x2ada05,_0x548b98):_0x50dc1b(_0x548b98))||_0x548b98);return _0x1acd8e&&_0x548b98&&_0x4e3013(_0x9b9ca8,_0x2ada05,_0x548b98),_0x548b98;},_0x26bae4=(_0x4276ac,_0x40bf89)=>(_0x543200,_0x32c927)=>_0x40bf89(_0x543200,_0x32c927,_0x4276ac);let _0x16fce5=class{constructor(_0x70816,_0x45f55a,_0x48a731){const _0x27a5a1=_0x3f6827;this[_0x27a5a1(0x381)]=_0x70816,this[_0x27a5a1(0x3fb)]=_0x45f55a,this[_0x27a5a1(0x33c)]=_0x48a731,this[_0x27a5a1(0xf8)]();}[_0x3f6827(0xf8)](){const _0x41a689=_0x3f6827;this[_0x41a689(0x3fb)][_0x41a689(0x31d)]({'priority':0x1,'interceptor':(_0x5df49d,_0x1886fe)=>_0x1886fe(_0x5df49d)[_0x41a689(0x2ef)](_0x2820f3[_0x41a689(0x1a9)](async _0x6e2874=>{const _0x16c97e=_0x41a689,_0x28d0a2=_0x6e2874;if(_0x28d0a2[_0x16c97e(0x2de)]===0x191&&window[_0x16c97e(0x1ca)](this['localeService']['t'](_0x16c97e(0x15a)))){const _0x2d4d94=window[_0x16c97e(0xc5)](window['location'][_0x16c97e(0x36e)]);window[_0x16c97e(0x146)][_0x16c97e(0x36e)]=this[_0x16c97e(0x356)]()+_0x16c97e(0x2e9)+_0x2d4d94;}return _0x28d0a2;}))});}[_0x3f6827(0x356)](){const _0x49cca6=_0x3f6827;var _0x520230;return(_0x520230=this['_configService'][_0x49cca6(0x457)](_0x4aaa4a))!=null?_0x520230:_0x3d36d0;}};_0x16fce5=_0x1cf2b6([_0x26bae4(0x0,_0x28e235[_0x3f6827(0x115)]),_0x26bae4(0x1,_0x28e235[_0x3f6827(0xb5)](_0x7b6974['HTTPService'])),_0x26bae4(0x2,_0x28e235[_0x3f6827(0xb5)](_0x28e235[_0x3f6827(0x3a0)]))],_0x16fce5);var _0x178688=Object[_0x3f6827(0x328)],_0x2e339c=Object[_0x3f6827(0x1cb)],_0xdeeedb=(_0x3efcf4,_0x3bac4a,_0x16d491,_0x1abbdd)=>{const _0x26fef1=_0x3f6827;for(var _0x956fe5=_0x1abbdd>0x1?void 0x0:_0x1abbdd?_0x2e339c(_0x3bac4a,_0x16d491):_0x3bac4a,_0x1ef087=_0x3efcf4[_0x26fef1(0x16b)]-0x1,_0x7fb7e;_0x1ef087>=0x0;_0x1ef087--)(_0x7fb7e=_0x3efcf4[_0x1ef087])&&(_0x956fe5=(_0x1abbdd?_0x7fb7e(_0x3bac4a,_0x16d491,_0x956fe5):_0x7fb7e(_0x956fe5))||_0x956fe5);return _0x1abbdd&&_0x956fe5&&_0x178688(_0x3bac4a,_0x16d491,_0x956fe5),_0x956fe5;},_0x13525b=(_0x353619,_0x1cd71d)=>(_0x4d3a04,_0x36fd68)=>_0x1cd71d(_0x4d3a04,_0x36fd68,_0x353619);const _0x5df963='AUTHZ_URL_KEY',_0x3744cf=_0x3f6827(0x2ab);_0x538e2a[_0x3f6827(0x30f)]=class extends _0x28e235[_0x3f6827(0x29c)]{constructor(_0x2b29b8,_0x4bc940){const _0x3018f2=_0x3f6827;super(),this[_0x3018f2(0x2ea)]=_0x2b29b8,this[_0x3018f2(0x381)]=_0x4bc940,this[_0x3018f2(0x403)]();}['_initMergeInterceptor'](){const _0x5d6307=_0x3f6827,_0x2708e8=this;this[_0x5d6307(0x41b)](this['_HTTPService'][_0x5d6307(0x31d)]({'priority':0x3e7,'interceptor':_0x7b6974['MergeInterceptorFactory']({'isMatch'(_0x4970db){const _0x5db25d=_0x5d6307;var _0x427ce7;if(_0x4970db[_0x5db25d(0x1dc)]===_0x5db25d(0x165)&&((_0x427ce7=_0x4970db[_0x5db25d(0xb1)])!=null&&_0x427ce7[_0x5db25d(0x18b)])){const {objectID:_0x39c6e9,objectType:_0x108503}=_0x4970db[_0x5db25d(0xb1)][_0x5db25d(0x18b)]||{};if(!_0x39c6e9||_0x108503===void 0x0)return!0x1;const _0x21ee68=_0x2708e8[_0x5db25d(0x325)]()+'/'+_0x108503+_0x5db25d(0x120)+_0x39c6e9+_0x5db25d(0x34b);if(_0x4970db[_0x5db25d(0x17c)]===_0x21ee68)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1e5cfc){const _0x538671=_0x5d6307;var _0x4f2411;return(_0x4f2411=_0x1e5cfc['requestParams'])==null?void 0x0:_0x4f2411[_0x538671(0x18b)];},'mergeParamsToRequest'(_0x1beb02,_0x490030){const _0x2727cf=_0x5d6307,_0x496ad9=_0x2708e8[_0x2727cf(0x325)]()+_0x2727cf(0x15b),_0x523005=_0x1beb02[_0x2727cf(0x1e0)]((_0x3ee930,_0x23d373)=>{const _0xc7b626=_0x2727cf,{unitID:_0x3180e6,objectID:_0x177ca3,objectType:_0x476e45,actions:_0x238748}=_0x23d373;return _0x3ee930[_0x3180e6]||(_0x3ee930[_0x3180e6]={}),_0x3ee930[_0x3180e6][_0x177ca3]||(_0x3ee930[_0x3180e6][_0x177ca3]={'objectID':_0x177ca3,'objectType':_0x476e45,'actions':[]}),_0x3ee930[_0x3180e6][_0x177ca3]['actions'][_0xc7b626(0x386)](..._0x238748),_0x3ee930;},{}),_0x261e4f=[];for(const _0x4c96f8 in _0x523005)for(const _0x55a5f9 in _0x523005[_0x4c96f8]){const {actions:_0x2c0878,objectType:_0x336e20}=_0x523005[_0x4c96f8][_0x55a5f9],_0x655e5f=[...new Set(_0x2c0878)];_0x261e4f['push']({'unitID':_0x4c96f8,'objectID':_0x55a5f9,'objectType':_0x336e20,'actions':_0x655e5f});}return new _0x7b6974[(_0x2727cf(0x3f9))](_0x2727cf(0x165),_0x496ad9,{'headers':_0x490030[_0x2727cf(0x195)],'withCredentials':_0x490030[_0x2727cf(0x186)],'responseType':_0x490030[_0x2727cf(0x3e3)],'body':{'requests':_0x261e4f}});}},{'distributeResult'(_0x1141a9,_0x293060){const _0x9aac8e=_0x5d6307,{objectActions:_0x32da1a}=_0x1141a9;return _0x293060[_0x9aac8e(0x25f)](_0x40a86f=>{const _0x2edb78=_0x9aac8e,{unitID:_0x4fdb7c,objectID:_0x44a802,actions:_0x45019f}=_0x40a86f,_0x2c2ddb=_0x32da1a[_0x2edb78(0x11c)](_0x3b831d=>_0x3b831d[_0x2edb78(0x27d)]===_0x4fdb7c&&_0x3b831d[_0x2edb78(0x37b)]===_0x44a802),_0x6847f0=_0x45019f['map'](_0x1af93a=>_0x2c2ddb==null?void 0x0:_0x2c2ddb[_0x2edb78(0x97)][_0x2edb78(0x11c)](_0x2238a7=>_0x2238a7[_0x2edb78(0x32a)]===_0x1af93a))[_0x2edb78(0x44a)](_0x28eb2e=>!!_0x28eb2e);return{'config':_0x40a86f,'result':{'actions':_0x6847f0,'error':_0x1141a9['error']}};});}})}));}['_getAPIPrefixPath'](){const _0x3d75ad=_0x3f6827;var _0x5d1772;return(_0x5d1772=this[_0x3d75ad(0x381)][_0x3d75ad(0x457)](_0x5df963))!=null?_0x5d1772:_0x3744cf;}async['create'](_0x3b7116){const _0x52d7d9=_0x3f6827,_0x387068=this[_0x52d7d9(0x325)]()+'/'+_0x3b7116[_0x52d7d9(0x24b)]+_0x52d7d9(0x318);return(await this[_0x52d7d9(0x2ea)][_0x52d7d9(0x314)](_0x387068,{'body':_0x3b7116}))[_0x52d7d9(0x18b)]['objectID']||'';}async['list'](_0x59d16f){const _0x465760=_0x3f6827,_0x5f830b=this[_0x465760(0x325)]()+_0x465760(0x3ba);return(await this['_HTTPService']['post'](_0x5f830b,{'body':_0x59d16f}))[_0x465760(0x18b)]['objects'];}async[_0x3f6827(0x2f2)](_0x6817a1){const _0x148f27=_0x3f6827,_0x1a4b6e=this['_getAPIPrefixPath']()+'/'+_0x6817a1['objectType']+'/object/'+_0x6817a1[_0x148f27(0x37b)];await this['_HTTPService'][_0x148f27(0x20e)](_0x1a4b6e,{'body':_0x6817a1});}async[_0x3f6827(0x245)](_0x36f43a){const _0x6368b1=_0x3f6827,_0x13539a=this[_0x6368b1(0x325)]()+'/'+_0x36f43a[_0x6368b1(0x24b)]+_0x6368b1(0x120)+_0x36f43a[_0x6368b1(0x37b)]+_0x6368b1(0x34b);return(await this[_0x6368b1(0x2ea)][_0x6368b1(0x314)](_0x13539a,{'body':_0x36f43a}))[_0x6368b1(0x18b)][_0x6368b1(0x97)];}async[_0x3f6827(0x160)](_0x72e4cd){const _0x42509f=_0x3f6827,_0x1fd34f=this['_getAPIPrefixPath']()+_0x42509f(0x15b);return(await this[_0x42509f(0x2ea)][_0x42509f(0x314)](_0x1fd34f,{'body':{'requests':_0x72e4cd}}))['body'][_0x42509f(0x257)];}async[_0x3f6827(0x149)](_0x4ccc75){const _0x2fea00=_0x3f6827,_0x3e5ee7=this[_0x2fea00(0x325)]()+'/'+_0x4ccc75['objectType']+'/role',_0x4968ff=await this[_0x2fea00(0x2ea)]['post'](_0x3e5ee7,{'body':_0x4ccc75});return{'roles':_0x4968ff[_0x2fea00(0x18b)][_0x2fea00(0xa6)],'actions':_0x4968ff[_0x2fea00(0x18b)]['actions']};}async[_0x3f6827(0x9a)](_0x20010d){const _0x11112c=_0x3f6827,_0x5be464=this[_0x11112c(0x325)]()+_0x11112c(0x3d1);await this[_0x11112c(0x2ea)]['delete'](_0x5be464,{'params':{'collaboratorID':_0x20010d[_0x11112c(0x1bf)],'objectID':_0x20010d['objectID'],'unitID':_0x20010d[_0x11112c(0x27d)]}});}async[_0x3f6827(0x94)](_0x5e3b23){const _0x18f11d=_0x3f6827,_0x50c69b=this[_0x18f11d(0x325)]()+_0x18f11d(0x3d1);await this[_0x18f11d(0x2ea)][_0x18f11d(0x11f)](_0x50c69b,{'body':_0x5e3b23});}async[_0x3f6827(0x2f0)](_0x5a9aa5){const _0x763c85=_0x3f6827,_0x1e529e=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x763c85(0x2ea)][_0x763c85(0x314)](_0x1e529e,{'body':_0x5a9aa5});}async[_0x3f6827(0x421)](_0x594cf7){const _0x31cdbf=_0x3f6827,_0x474101=this['_getAPIPrefixPath']()+_0x31cdbf(0x3d1);return(await this['_HTTPService']['get'](_0x474101,{'params':{'objectID':_0x594cf7[_0x31cdbf(0x37b)],'unitID':_0x594cf7[_0x31cdbf(0x27d)]}}))[_0x31cdbf(0x18b)][_0x31cdbf(0x251)];}async['putCollaborators'](_0x3ecd2e){const _0x42aef1=_0x3f6827,_0x2461ec=this[_0x42aef1(0x325)]()+_0x42aef1(0x3d1);await this['_HTTPService'][_0x42aef1(0x20e)](_0x2461ec,{'body':_0x3ecd2e});}},_0x538e2a['AuthzIoHttpService']=_0xdeeedb([_0x13525b(0x0,_0x28e235[_0x3f6827(0xb5)](_0x7b6974[_0x3f6827(0xaa)])),_0x13525b(0x1,_0x28e235[_0x3f6827(0xb5)](_0x28e235['IConfigService']))],_0x538e2a[_0x3f6827(0x30f)]);var _0x46dbce=Object[_0x3f6827(0x328)],_0x91cc56=Object['getOwnPropertyDescriptor'],_0x2864cc=(_0x927119,_0x2b45a3,_0xd21362,_0x156c9d)=>{const _0x10f840=_0x3f6827;for(var _0x9d780f=_0x156c9d>0x1?void 0x0:_0x156c9d?_0x91cc56(_0x2b45a3,_0xd21362):_0x2b45a3,_0x5e557c=_0x927119[_0x10f840(0x16b)]-0x1,_0x76b74f;_0x5e557c>=0x0;_0x5e557c--)(_0x76b74f=_0x927119[_0x5e557c])&&(_0x9d780f=(_0x156c9d?_0x76b74f(_0x2b45a3,_0xd21362,_0x9d780f):_0x76b74f(_0x9d780f))||_0x9d780f);return _0x156c9d&&_0x9d780f&&_0x46dbce(_0x2b45a3,_0xd21362,_0x9d780f),_0x9d780f;},_0xe884ea=(_0x3ba595,_0x21ef4a)=>(_0x44d54b,_0x1454cd)=>_0x21ef4a(_0x44d54b,_0x1454cd,_0x3ba595);const _0x18cd57=['image/png',_0x3f6827(0x3df),_0x3f6827(0x433),_0x3f6827(0x139),_0x3f6827(0x127)],_0x3b9927=0x5*0x400*0x400,_0x29cfa3=_0x3f6827(0x341),_0x269dac=_0x3f6827(0x114),_0xb1625e='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_0x1eb6ec='/universer-api/file/{fileID}/sign-url';_0x538e2a[_0x3f6827(0x8d)]=class{constructor(_0x57e46b,_0x598f2c){const _0x4510da=_0x3f6827;_0x2b7d82(this,'_waitCount',0x0),_0x2b7d82(this,_0x4510da(0x178),new _0x2820f3['Subject']()),_0x2b7d82(this,_0x4510da(0x3d4),this[_0x4510da(0x178)]),_0x2b7d82(this,_0x4510da(0x28a),new Map()),(this[_0x4510da(0x3fb)]=_0x57e46b,this[_0x4510da(0x381)]=_0x598f2c);}['setWaitCount'](_0x13340f){const _0x37bc86=_0x3f6827;this[_0x37bc86(0x34c)]=_0x13340f,this['_change$']['next'](_0x13340f);}[_0x3f6827(0x30c)](_0x27e4f8,_0x1da535){const _0x21f17e=_0x3f6827;if(_0x1da535===_0x212652[_0x21f17e(0x337)][_0x21f17e(0x409)]){const _0x51f45f=new Image();return _0x51f45f[_0x21f17e(0x147)]=_0x27e4f8,_0x51f45f;}return this[_0x21f17e(0x28a)][_0x21f17e(0x450)](_0x27e4f8);}['addImageSourceCache'](_0x2df02d,_0x11a035,_0x292baa){const _0xf636bd=_0x3f6827;_0x11a035===_0x212652[_0xf636bd(0x337)]['BASE64']||_0x292baa==null||this[_0xf636bd(0x28a)][_0xf636bd(0x2b2)](_0x2df02d,_0x292baa);}async[_0x3f6827(0x29b)](_0x33014e){const _0x321b08=_0x3f6827;try{const _0x312075=this['_replaceFileID'](this['_getSignURL'](),''+_0x33014e),_0x17f001=(await this[_0x321b08(0x3fb)]['get'](_0x312075))[_0x321b08(0x18b)];return _0x17f001['error']&&_0x17f001['error'][_0x321b08(0x168)]===_0x22d539['OK']?Promise['resolve'](_0x17f001[_0x321b08(0x17c)]):Promise[_0x321b08(0xab)](_0x17f001[_0x321b08(0x270)]);}catch(_0x347853){return Promise[_0x321b08(0xab)](_0x347853);}}async['saveImage'](_0x136013){const _0x3967cb=_0x3f6827;let _0x5499de='';if(!_0x18cd57['includes'](_0x136013[_0x3967cb(0x1ba)]))return this[_0x3967cb(0x287)](),Promise[_0x3967cb(0xab)](new Error(_0x212652['ImageUploadStatusType']['ERROR_IMAGE_TYPE']));if(_0x136013[_0x3967cb(0x26e)]>_0x3b9927)return this[_0x3967cb(0x287)](),Promise[_0x3967cb(0xab)](new Error(_0x212652[_0x3967cb(0x263)][_0x3967cb(0x12c)]));try{const _0x6885=new FormData();_0x6885[_0x3967cb(0x3ae)](_0x3967cb(0x83),_0x136013);const _0x45be70=this[_0x3967cb(0x33a)]()+_0x3967cb(0x3f3)+_0x136013['size'][_0x3967cb(0x1d9)](),_0x1ec90a=await(await fetch(_0x45be70,{'method':_0x3967cb(0x165),'body':_0x6885}))['json']();if(typeof _0x1ec90a[_0x3967cb(0xce)]!='string')return this[_0x3967cb(0x287)](),Promise[_0x3967cb(0xab)](new Error(_0x212652[_0x3967cb(0x263)][_0x3967cb(0x278)]));_0x5499de=_0x1ec90a[_0x3967cb(0xce)];}catch{return this[_0x3967cb(0x287)](),Promise[_0x3967cb(0xab)](new Error(_0x212652[_0x3967cb(0x263)][_0x3967cb(0x278)]));}return new Promise((_0x385799,_0x41b14b)=>{const _0x41c3e8=_0x3967cb,_0x6731b7=new FileReader();_0x6731b7[_0x41c3e8(0x15c)](_0x136013),_0x6731b7[_0x41c3e8(0x1b2)]=_0x30bb4e=>{const _0x1a1e8d=_0x41c3e8;var _0x2c970d;const _0x54a43f=(_0x2c970d=_0x30bb4e[_0x1a1e8d(0x3e5)])==null?void 0x0:_0x2c970d['result'];if(_0x54a43f==null){this[_0x1a1e8d(0x287)](),_0x41b14b(new Error(_0x212652[_0x1a1e8d(0x263)][_0x1a1e8d(0x278)]));return;}const _0xb496f=_0x28e235[_0x1a1e8d(0x309)][_0x1a1e8d(0x238)](0x6);_0x385799({'imageId':_0xb496f,'imageSourceType':_0x212652['ImageSourceType'][_0x1a1e8d(0x392)],'source':_0x5499de,'base64Cache':_0x54a43f,'status':_0x212652[_0x1a1e8d(0x263)][_0x1a1e8d(0x260)]}),this[_0x1a1e8d(0x287)]();};});}[_0x3f6827(0x33a)](){const _0x5a7374=_0x3f6827;var _0x5f14b0;return(_0x5f14b0=this['_configService'][_0x5a7374(0x457)](_0x29cfa3))!=null?_0x5f14b0:_0x269dac;}[_0x3f6827(0x361)](){const _0x3d6f60=_0x3f6827;var _0x37898c;return(_0x37898c=this[_0x3d6f60(0x381)][_0x3d6f60(0x457)](_0xb1625e))!=null?_0x37898c:_0x1eb6ec;}['_replaceFileID'](_0x26cd69,_0xa7eed7){const _0x50733a=_0x3f6827;return _0x26cd69[_0x50733a(0xc6)]('{fileID}',_0xa7eed7);}['_decreaseWaiting'](){const _0x86dc55=_0x3f6827;this[_0x86dc55(0x34c)]-=0x1,this[_0x86dc55(0x178)][_0x86dc55(0x18d)](this[_0x86dc55(0x34c)]);}},_0x538e2a[_0x3f6827(0x8d)]=_0x2864cc([_0xe884ea(0x0,_0x28e235[_0x3f6827(0xb5)](_0x7b6974['HTTPService'])),_0xe884ea(0x1,_0x28e235['IConfigService'])],_0x538e2a[_0x3f6827(0x8d)]);var _0x1c5899=Object[_0x3f6827(0x328)],_0x1d93ae=Object[_0x3f6827(0x1cb)],_0x59592e=(_0x282ed5,_0x4f6dea,_0x4ef53c,_0x4b9b32)=>{const _0x33ec01=_0x3f6827;for(var _0xbe4f43=_0x4b9b32>0x1?void 0x0:_0x4b9b32?_0x1d93ae(_0x4f6dea,_0x4ef53c):_0x4f6dea,_0x17f9c8=_0x282ed5[_0x33ec01(0x16b)]-0x1,_0x474c0a;_0x17f9c8>=0x0;_0x17f9c8--)(_0x474c0a=_0x282ed5[_0x17f9c8])&&(_0xbe4f43=(_0x4b9b32?_0x474c0a(_0x4f6dea,_0x4ef53c,_0xbe4f43):_0x474c0a(_0xbe4f43))||_0xbe4f43);return _0x4b9b32&&_0xbe4f43&&_0x1c5899(_0x4f6dea,_0x4ef53c,_0xbe4f43),_0xbe4f43;},_0x2e7ad7=(_0x10baaa,_0x5532c1)=>(_0x1731fe,_0x1e9a7a)=>_0x5532c1(_0x1731fe,_0x1e9a7a,_0x10baaa);let _0x44e27e=class extends _0x28e235[_0x3f6827(0x93)]{constructor(_0x43e952,_0x5ac2ff,_0x4b5648,_0x365c3b,_0x16ddb8){const _0x38bbb2=_0x3f6827;super(),this[_0x38bbb2(0x3ef)]=_0x43e952,this[_0x38bbb2(0x156)]=_0x5ac2ff,this[_0x38bbb2(0x9d)]=_0x4b5648,this[_0x38bbb2(0x2aa)]=_0x365c3b,this[_0x38bbb2(0x424)]=_0x16ddb8,this[_0x38bbb2(0x104)](),this[_0x38bbb2(0x3a8)]();}[_0x3f6827(0x3a8)](){const _0x51132d=_0x3f6827,_0x5f602d=async _0x57f527=>{const _0x3b410b=_0x45d3;(await this['_collaborationSessionService']['requireSession'](_0x57f527))[_0x3b410b(0x211)][_0x3b410b(0x2ef)](_0x1086dc[_0x3b410b(0x44a)](_0x3a277a=>_0x3a277a[_0x3b410b(0x12d)]===_0x4ecbea['CollaborationEvent']['SHOULD_CLOSE_CONN']),_0x1086dc[_0x3b410b(0xeb)](this[_0x3b410b(0x388)]))['subscribe'](_0xb4bc5=>{const _0x1deed2=_0x3b410b,_0x455ca1=_0xb4bc5,{reason:_0xd99ad8}=_0x455ca1[_0x1deed2(0xa5)];this[_0x1deed2(0x3ef)][_0x1deed2(0x450)](_0x1d23ef['IMessageService'])['show']({'type':_0x48adea[_0x1deed2(0x157)][_0x1deed2(0x1e7)],'content':this['_localeService']['t'](_0x1deed2(0x1db))+'('+_0xd99ad8+')'}),this['_permissionService']['updatePermissionPoint'](new _0x48cd6e['WorkbookEditablePermission'](_0x57f527)['id'],!0x1),this[_0x1deed2(0x2aa)][_0x1deed2(0x246)](_0x57f527);});};_0x2820f3[_0x51132d(0x33e)](this['_univerInstanceService'][_0x51132d(0x370)](_0x28e235[_0x51132d(0x3af)]['UNIVER_SHEET']),this['_univerInstanceService'][_0x51132d(0x370)](_0x28e235[_0x51132d(0x3af)]['UNIVER_DOC']))[_0x51132d(0x2ef)](_0x1086dc[_0x51132d(0x25f)](_0x3a307e=>_0x3a307e['getUnitId']()),_0x1086dc['filter'](_0x3ac5bf=>!_0x28e235['isInternalEditorID'](_0x3ac5bf)),_0x1086dc[_0x51132d(0xeb)](this[_0x51132d(0x388)]))[_0x51132d(0x3cd)](_0x353c24=>{_0x5f602d(_0x353c24);});}[_0x3f6827(0x104)](){const _0x177a01=_0x3f6827,_0x47d04a=async _0x5485f5=>{const _0x3aae3c=_0x45d3;(await this['_collaborationSessionService']['requireSession'](_0x5485f5))[_0x3aae3c(0x211)][_0x3aae3c(0x2ef)](_0x1086dc[_0x3aae3c(0x44a)](_0x2b4949=>_0x2b4949[_0x3aae3c(0x12d)]===_0x4ecbea['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),_0x1086dc[_0x3aae3c(0xeb)](this[_0x3aae3c(0x388)]))[_0x3aae3c(0x3cd)](_0x129107=>{const _0x30572a=_0x3aae3c,_0x28a95e=_0x129107,{objectId:_0x55b4bd}=_0x28a95e[_0x30572a(0xa5)];_0x55b4bd===_0x5485f5&&this[_0x30572a(0x3ef)][_0x30572a(0x450)](_0x38caab[_0x30572a(0x39b)])['initWorkbookPermissionChange'](_0x5485f5);});};_0x2820f3['merge'](this[_0x177a01(0x156)][_0x177a01(0x370)](_0x28e235['UniverInstanceType']['UNIVER_SHEET']),this[_0x177a01(0x156)][_0x177a01(0x370)](_0x28e235[_0x177a01(0x3af)][_0x177a01(0x372)]))[_0x177a01(0x2ef)](_0x1086dc['map'](_0x40c0dc=>_0x40c0dc[_0x177a01(0x322)]()),_0x1086dc[_0x177a01(0x44a)](_0x2c591b=>!_0x28e235[_0x177a01(0x415)](_0x2c591b)),_0x1086dc['takeUntil'](this[_0x177a01(0x388)]))[_0x177a01(0x3cd)](_0x35ef90=>{_0x47d04a(_0x35ef90);});}};_0x44e27e=_0x59592e([_0x28e235[_0x3f6827(0xb8)](_0x28e235[_0x3f6827(0x177)][_0x3f6827(0xd4)],_0x44e27e),_0x2e7ad7(0x0,_0x28e235[_0x3f6827(0xb5)](_0x28e235['Injector'])),_0x2e7ad7(0x1,_0x28e235[_0x3f6827(0x19b)]),_0x2e7ad7(0x2,_0x28e235[_0x3f6827(0x30d)]),_0x2e7ad7(0x3,_0x28e235[_0x3f6827(0xb5)](_0x538e2a[_0x3f6827(0x17b)])),_0x2e7ad7(0x4,_0x28e235['Inject'](_0x28e235[_0x3f6827(0x3a0)]))],_0x44e27e);var _0x4c724f=Object['defineProperty'],_0x2d57a5=Object[_0x3f6827(0x1cb)],_0xd12eb1=(_0xe73fba,_0x2ce5c5,_0x2ba788)=>_0x2ce5c5 in _0xe73fba?_0x4c724f(_0xe73fba,_0x2ce5c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ba788}):_0xe73fba[_0x2ce5c5]=_0x2ba788,_0x21e605=(_0x22226b,_0xcc45dd,_0x21f162,_0x4ce409)=>{for(var _0x55ea54=_0x4ce409>0x1?void 0x0:_0x4ce409?_0x2d57a5(_0xcc45dd,_0x21f162):_0xcc45dd,_0x3077b1=_0x22226b['length']-0x1,_0x5ad728;_0x3077b1>=0x0;_0x3077b1--)(_0x5ad728=_0x22226b[_0x3077b1])&&(_0x55ea54=(_0x4ce409?_0x5ad728(_0xcc45dd,_0x21f162,_0x55ea54):_0x5ad728(_0x55ea54))||_0x55ea54);return _0x4ce409&&_0x55ea54&&_0x4c724f(_0xcc45dd,_0x21f162,_0x55ea54),_0x55ea54;},_0x4524e4=(_0x547929,_0x69f61f)=>(_0x1d83e6,_0x210958)=>_0x69f61f(_0x1d83e6,_0x210958,_0x547929),_0x34eb55=(_0x497ee4,_0x204750,_0x340052)=>_0xd12eb1(_0x497ee4,_0x204750+'',_0x340052);const _0x14226d=_0x3f6827(0x1b0);_0x538e2a[_0x3f6827(0x1ae)]=class extends _0x28e235[_0x3f6827(0x311)]{constructor(_0xd79a3a,_0x473510,_0xf4b93d){const _0x4aff79=_0x3f6827;super(),this[_0x4aff79(0x163)]=_0xd79a3a,this[_0x4aff79(0x1af)]=_0x473510,this['_injector']=_0xf4b93d;}[_0x3f6827(0x1bb)](_0x4a2512){const _0x50fc9f=_0x3f6827;var _0x2882ca,_0x56316c,_0x53f770,_0x3468bc,_0x37e869;_0x4a2512[_0x50fc9f(0x3c0)](_0x28e235[_0x50fc9f(0x363)])&&this[_0x50fc9f(0x1af)][_0x50fc9f(0x270)](_0x50fc9f(0x132),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x411962=[[_0x28e235[_0x50fc9f(0x363)],{'useClass':_0x404988}],[_0x538e2a[_0x50fc9f(0x17b)]],[_0x18ea56],[_0x7b6974[_0x50fc9f(0xaa)]],[_0xfaea01,{'useClass':_0x591250}],[_0x1d7fc4],[_0x538e2a['LocalCacheService']],[_0x7b6974['WebSocketService']],[_0x187ea5],[_0x1e8d42],[_0x12799f],[_0x581849],[_0x16fce5],[_0x1a0991],[_0x44e27e],[_0x51e16b,{'useClass':(_0x56316c=(_0x2882ca=this[_0x50fc9f(0x163)])==null?void 0x0:_0x2882ca['socketService'])!=null?_0x56316c:_0x538e2a[_0x50fc9f(0x194)]}],[_0x7b6974[_0x50fc9f(0x2f1)],{'useClass':_0x7b6974[_0x50fc9f(0x307)]}],[_0x28e235['ISnapshotServerService'],{'useClass':_0x538e2a[_0x50fc9f(0x448)]}],[_0x28e235[_0x50fc9f(0x10a)],{'useClass':_0x538e2a[_0x50fc9f(0x30f)]}],[_0x212652[_0x50fc9f(0x1b5)],{'useClass':_0x538e2a[_0x50fc9f(0x8d)]}],[_0x538e2a['CollaborationController']],[_0x538e2a[_0x50fc9f(0x2d6)]],[_0x538e2a[_0x50fc9f(0x430)]],[_0x2d9bf7],[_0x2e4db5]];(_0x53f770=this['_config'])!=null&&_0x53f770[_0x50fc9f(0x402)]&&_0x411962[_0x50fc9f(0x386)]([_0x38f70a,{'useClass':_0x52220b}]),((_0x3468bc=this['_config'])==null?void 0x0:_0x3468bc[_0x50fc9f(0x2f9)])==null||this[_0x50fc9f(0x163)][_0x50fc9f(0x2f9)][_0x50fc9f(0x2ce)](_0x28e235[_0x50fc9f(0x3af)][_0x50fc9f(0x33b)])?_0x411962['push']([_0x2583e4]):this[_0x50fc9f(0x163)][_0x50fc9f(0x2f9)][_0x50fc9f(0x2ce)](_0x28e235[_0x50fc9f(0x3af)]['UNIVER_DOC'])&&_0x411962[_0x50fc9f(0x386)]([_0x5d03af]),_0x411962=_0x28e235['mergeOverrideWithDependencies'](_0x411962,(_0x37e869=this[_0x50fc9f(0x163)])==null?void 0x0:_0x37e869['override']),_0x411962[_0x50fc9f(0x384)](_0x471063=>_0x4a2512[_0x50fc9f(0x2fd)](_0x471063)),_0x4a2512[_0x50fc9f(0x450)](_0x7b6974['HTTPService'])['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x7b6974[_0x50fc9f(0x17a)]({'maxParallel':0x6})}),this[_0x50fc9f(0x3c5)]();}['_initModules'](){const _0x2f716c=_0x3f6827;var _0xb5fdcb,_0x92b1e5;(_0xb5fdcb=this[_0x2f716c(0x163)])!=null&&_0xb5fdcb[_0x2f716c(0x2a5)]||this[_0x2f716c(0x3ef)][_0x2f716c(0x450)](_0x538e2a[_0x2f716c(0x249)])['disableLocalCache'](),(_0x92b1e5=this[_0x2f716c(0x163)])!=null&&_0x92b1e5[_0x2f716c(0xb7)]&&this[_0x2f716c(0x3ef)][_0x2f716c(0x450)](_0x16fce5);}},_0x34eb55(_0x538e2a['UniverCollaborationClientPlugin'],_0x3f6827(0x200),_0x14226d),_0x538e2a[_0x3f6827(0x1ae)]=_0x21e605([_0x28e235[_0x3f6827(0x3e1)](_0x4ecbea['UniverCollaborationPlugin']),_0x4524e4(0x1,_0x28e235['ILogService']),_0x4524e4(0x2,_0x28e235['Inject'](_0x28e235[_0x3f6827(0x3e8)]))],_0x538e2a[_0x3f6827(0x1ae)]),_0x538e2a['AUTHZ_URL_KEY']=_0x5df963,_0x538e2a[_0x3f6827(0x218)]=_0x49a23a,_0x538e2a['COLLAB_WEB_SOCKET_URL_KEY']=_0x1837a5,_0x538e2a[_0x3f6827(0xd2)]=_0x16cedf,_0x538e2a[_0x3f6827(0x3a7)]=_0x3021bf,_0x538e2a[_0x3f6827(0x21f)]=_0x1a0991,_0x538e2a['HEARTBEAT_INTERVAL_KEY']=_0x5a9926,_0x538e2a[_0x3f6827(0x40a)]=_0xedd382,_0x538e2a[_0x3f6827(0x28d)]=_0x51e16b,_0x538e2a[_0x3f6827(0x29f)]=_0xfaea01,_0x538e2a['LOCAL_CACHE_INTERVAL_KEY']=_0x461325,_0x538e2a[_0x3f6827(0xbf)]=_0x4aaa4a,_0x538e2a[_0x3f6827(0x1bd)]=_0x3e60d2,_0x538e2a['SNAPSHOT_SERVER_URL_KEY']=_0x26cbfd,_0x538e2a[_0x3f6827(0x3d3)]=_0x19eb4b,_0x538e2a[_0x3f6827(0x2bc)]=_0x158ddb,_0x538e2a[_0x3f6827(0xcc)]=_0x31ac93,_0x538e2a[_0x3f6827(0x3a5)]=_0x591250,_0x538e2a[_0x3f6827(0x262)]=_0x59fc50,_0x538e2a[_0x3f6827(0x1d4)]=_0xd9d8ca,Object[_0x3f6827(0x328)](_0x538e2a,Symbol['toStringTag'],{'value':'Module'});}));function _0x22af(){const _0x1c3e86=['UNIVER_UNKNOWN','DependentOn','_cursors','responseType','_init','target','startColumn','_updateSubUnitFromURLParams','Injector','rev','RETRY_CONNECTING_MAX_COUNT','UniverCore','purple300','triggerDblclick','transformRemoteChangeset','_injector','_unlockTransition','[OfflineState]:\x20received\x20rejection.','status$','?size=','urlChange$','_sessionStatus$','getCollabCursors$','@univerjs/network','_collaborationPaused','HTTPRequest','_getScale','_httpService','_removeCollabCursors','snapshot','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','textEncoder','_drawAnchor','useObservable','enableSingleActiveInstanceLock','_initMergeInterceptor','_sheetSkeletonManagerService','onTransformIME','csAckEvent','_onJoinRoomEvent','UNKNOWN_CODE','BASE64','HEARTBEAT_TIMEOUT_KEY','UserManagerService','_handleHover','[OfflineState]:\x20received\x20acknowledgement.','ILogService','findNodePositionByCharIndex','isArray','RECV','react','_pendingMutations','Error\x20on\x20receiving\x20event','isInternalEditorID','replaceState','LIVESHARE_FETCH_OPERATIONS','updateOfflineData','permission.title','_syncEditingCollabCursorService','disposeWithMe','_createHandler','Workbook','getCurrentRevForDocument','baseRev','_getCurrentRevision','listCollaborators','unshift','SYNCED','_localeService','CHANGESET_REVISION_CONFILICT','isTransformMutationFailure','exports','_collaborationController','b64DecodeUnicode','onPointerEnter$','getMergeData','idSuffix','createInstance','operators','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','DesktopCollaborationStatusDisplayController','liveShareNewHost','_colorAssignService','image/jpg','univerjs-icon\x20univerjs-icon-','_state$','@univerjs/engine-render','forwardRef','_onRemoteRejected','width','parseChangesetToProtocol','InsertRowCommandId','save','contains','USERS_LEAVE','hasOwnProperty','YUUMI_UNABLE_LOAD_URL','_replayCachedMutations','clearTimeout','_onCursorUpdate','activeSheet$','incrementRevForDocument','currentColor','send','SnapshotServerOverHTTPService','\x0aCurrent:\x20','filter','_getMergeRange','loadSheet','startRow','url(#$1','apply','get','red300','_entityInit$','popstate','editingUnit','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','toggleOnline','getConfig','delete','RemoveColCommandId','_socketService','_clearLocalCache','min','onlineStatus','_onMessage','memberID','Unknown\x20user','_send','awaitingChangeset','file','UniverCollaboration','32877CTIzcR','getMember','close$','RegularPolygon','IMessageService','[OfflineState]:\x20received\x20changeset.','_onFetchMissResult','_initStatusComponent','ImageIoService','beginPath','deserializeRangeWithSheet','@univerjs/drawing','_disabled','_lastPointer','RxDisposable','updateCollaborator','isTransformMutationsWithChangesetFailure','_onConnectionFailed','actions','Warning','_onConnectionOpen','deleteCollaborator','awaiting_with_pending','FETCH_MISS','_permissionService','runRefRangeMutations','parse','/universer-api/snapshot','_clearUndo','_event$','_eventUnsubscribe','_queuedRemoteChangesets','data','roles','@univerjs/ui','Subject','isTransformChangesetsSuccess','HTTPService','reject','[CollaborationState]:\x20apply\x20error!','saveOfflineData','getRelativeToViewportCoord','_getSheetObject','_sendHeartbeatTimer','requestParams','WebSocketService','JOIN','_toggleOffline','Inject','makeDirty','enableAuthServer','OnLifecycle','FAIL','interceptor','trim','div','_docStateChangeManagerService','pauseCollaboration','LOGIN_URL_KEY','createElement','joinEvent','_hideTimer','_fetchMissChangesets','@univerjs/engine-formula','encodeURIComponent','replace','_startCollaboration','_cursorInfo$','_waitForHeartbeatResponse','collab-text-anchor-','_type','SheetCollabCursorShape','amd','FileId','304YnqoTW','routeKey','getCurrentUnitForType','CollaborationStatus','onTransformRemoteChangesetByIMECache','Starting','entries','then','fetchThroughInterceptors','isActive','1210986HfYtnn','PERMISSION_REJ','_members','changesets','lineTo','_scheduleHeartbeat','unitId','onlyLocal','failed\x20to\x20apply\x20missed\x20changesets!','currentTheme$','LICENSE_MAX_UNITS_EXCEEDED','sessionStatus$','_handleJoinEvent','row','_getSnapshotAPIPrefix','useRef','UNKNOWN_CMD','synced','takeUntil','HEARTBEAT_TIMEOUT','getCollabEntity$','[CollaborationUndoRedoService]','_transformSelections','M0\x200H16V16H0z','save\x20fail\x20reason\x20is\x20','MUTATION','CommandType','_online','getTime','socket\x20close','online','init','socket\x20open.','focused$','onRemoteAck','_collabSessionService','sheetId','onStateChange','unit','HELLO','APPLY_REVISION_CONFILICT','_userManagerService','attrs','_initUnitPermissionChange','rxjs','handleMoveRange','IContextService','getOwnPropertySymbols','textRanges','IAuthzIoService','setParam','928650fkVbQW','editing\x20status\x20changed\x20to','_transformRemoteChangesetByIMECache','off-line-single_clip0_910_343','offline','ITransformService','endColumn','symbol','/universer-api/stream/file/upload','IConfigService','fetchMissingChangesets','unsubscribe','isEditing','_unitOnClients','_commandService','newValue','find','_disableEditing','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','patch','/object/','_ensureSubject','fetch_missing','debounceTime','_handleHeartbeatEvent','_unitId','color','image/bmp','_joinRoom','csRejEvent','getCurrentSelections','error$','ERROR_EXCEED_SIZE','eventID','_heartbeatTimer','range','string','unload','[UniverCollaborationClientPlugin]','members','onRemoteChangeset','CollaborationController','_transformStack','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_docSkeleton','image/gif','getValue','searchParams','_memberService','COMPLETION_FINISHED','_handleEvent','path','jiqing500','prototype','take','substring','collabStatus.fetchMiss','collab-text-range-','location','src','_status$','listRoles','verdancy600','extend','_onRemoteACK','_substituteRedoStack','onSendChangeset','_removeClearOtherTimer','NOT_COLLAB','SNAPSHOT_INVALID_SNAPSHOT','TEXT_RANGE_LAYER_INDEX','evenodd','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','getActiveSheet','_univerInstanceService','MessageType','c2Prime','AWAITING','auth.needGotoLoginAlert','/-/object/-/batch_allowed','readAsDataURL','cmd','lodash/debounce','session.collaboration-timeout','batchAllowed','onCommandExecuted','Steady','_config','commentUpdate$','POST','DisposableCollection','removeParam','code','UNIVER_SLIDE','SetTextSelectionsOperation','length','_clearScheduledTask','collabCursorState$','roomMembers$','LIVESHARE_REQUEST_HOST','loadOfflineData','_docSkeletonManagerService','fromEvent','HEARTBEAT','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_remoteChangesetQueue','xlink:href','LifecycleStages','_change$','dispose','ThresholdInterceptorFactory','CollaborationSessionService','url','subunit','VIEW_MAIN','0\x200\x2016\x2016','_clearHeartbeatTimer','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','_updateState','_loadDoc','_snapshotService','_socket$','withCredentials','getRoom','MSG_FOR_ERROR','getOffsetConfig','_applyRemoteChangeset','body','_acknowledgedAwaitingChangeset','next','clear','_onRemoteChangeset','slice','originalMeta','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','m1Prime','CollaborationSocketService','headers','_singleActiveUnitService','_getAnchorBounding','createSocket','ILocalStorageService','userID','IUniverInstanceService','COLORS','_startSheetCollabCursor','_onLocalMutation','_getAPIPrefix','updateCursorEvent','RemoveRowCommandId','submit\x20changeset\x20error!','getVpScrollXYInfoByPosToVp','moveTo','getFocusedUnit','/unit/','fillText','LIVESHARE_TERMINATE','concatMap','IRemoteInstanceService','getSheetBySheetId','/rev/','addEventListener','UniverCollaborationClientPlugin','_logService','UNIVER_COLLABORATION_CLIENT_PLUGIN','CompressMutationService','onload','getWorkbookSelections','_onConflict','IImageIoService','USERS_ENTER','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','univer-pro.collaboration-client-socket-service','requireSession','type','onStarting','_getSaveTimeout','SEND_CHANGESET_TIMEOUT_KEY','_redoStacks','collaboratorID','_beforeCloseService','_socketMessageSubscription','_sendingTimer','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','none','_docTransformIMECacheService','history','_sheetTransformSelectionsService','result','OTHER_CLIENTS_EDITING','confirm','getOwnPropertyDescriptor','object','_localStorageService','addObjects','className','_onRecvEvent','_incrementRevisionNumber','asObservable','Rect','serializeCombRequest','_timeoutTimer','_docTransformSelectionsService','infoRsp','onMissedChangesetFetched','toString','column','collaboration.closeRoom','method','_transformIMECache','defs','skeleton','reduce','/block/','UniverDesign','_transformPreviousActiveRange','backgroundColor','_updateURLWithCurrentState','CollaborationEvent','Error','collabStatus.syncing','getUnitOnRev','disposeUnit','6404rzYUci','getParam','APPLY_REJECT','transform','delay','fillStyle','ranges','_tryEnsureSocket','_commentService','getUnitStatus$','COMMENT_UPDATE','_scheduleClearOtherTimer','_unitID','getCurrent','_executeRemoteChangeset','[CollaborationSessionService]','DEFAULT_FILE_NAME','[DataLoaderController]','onlineStatusTitle','indexOf','55tauuZO','pluginName','IRenderManagerService','currentSkeleton$','executeCommand','getItem','@univerjs-pro/collaboration','SUBMIT_CHANGESET','reverse','roomMembers','NEW_CHANGESETS','_collabCursorState$','collaboration.single-unit.warning','_uiPartsService','unknown','put','_undoStacks','saveChangeset','event$','clsx','/fetchmissing?from=','NOT_FOUND','handleInsertRow','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','colorChannel1','COLLAB_SUBMIT_CHANGESET_URL_KEY','on-line-single','_cachedData','_hovered','debounce','_hover','sheets','CommentService','registerOnClose','_getCtorByUniverType','_onCombEvent','black','CollaborationSession','switchMap','show','RETRY_CONNECTING_INTERVAL','from','TOO_MANY_REQUESTS','@univerjs/docs','_color','Ready','updatePermissionPoint','_clearTimeoutTimer','transformMutation','[CollaborationSession]','max','Shape','_messageService','mapTo','getDataModel','createIdentifier','_onRefRangeChange','generateRandomId','_drawRange','use','_startDocCollabCursor','_scene','ICommandService','toDisposable','restore','ACTIVE_UNIT_EVENT_CHANNEL','commentUpdateEvent','children','_cursor','collabStatus.synced','allowed','closeSession','_anchor','_shapes','LocalCacheService','text','objectType','propertyIsEnumerable','getRenderById','setActiveRange','JOINING','setShapeProps','collaborators','_colorIndex','sheetID','UNRECOGNIZED','doc.mutation.rich-text-editing','_urlService','objectActions','startsWith','19528ETbSKm','setCurrentUser','@univerjs/design','connection\x20error','syncEditingCollabCursor','_refRangeService','map','SUCCUSS','_updateStatus','deserializeToCombResponse','ImageUploadStatusType','round','[CollaborationEntity]','&to=','INGEST','LICENSE_IMPORT_SIZE_EXCEEDED','SNAPSHOT_HAS_BEEN_REMOVED','onSyncEditingCollabCursor','isPermissionRej','_getUndoStack','1em','size','SetSelectionsOperation','error','getAncestorScale','UniverNetwork','measureText','all','selections','AWAITING_WITH_PENDING','RefRangeService','ERROR_IMAGE','rxjs/operators','InsertColCommandId','encode','FromArray','unitID','ONLINE','_saveCache','permission.content','_scheduleSaving','SetWorksheetActivateCommand','_retryCount','_entities','_showConflictNotification','WorkbookEditablePermission','_decreaseWaiting','closePath','_unitStatus','_imageSourceCache','mutations','_render','ICollaborationSocketService','on-line-single_clip0_910_349','UNDEFINED','_scheduleCollaborationTimeoutTimer','_ws','transformChangesets','debug','clearInterval','SheetCollaborationEntity','function','subscribeEvent','INotificationService','defIds','_setupBeforeClosingHandler','getImage','Disposable','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','[CollaborationSessionService]:\x20socket\x20error','IURLService','stringify','_transformUndoredo','updateMember','_anchorDot','PSEUDO_FETCH_MISSING_RESULT','enableOfflineEditing','_localCacheService','_onUserJoin','collaboration-client.offline-data-not-saved','exhaustSavingTask','_collaborationSessionService','/universer-api/authz','hide','InsertRangeMoveRightCommandId','_name','docStateChange$','_transformService','_clearCollaborationTimeoutTimer','set','_getDocObject','onTransformSelections','_toggleOnline','shouldCloseConn','COMPRESS_MUTATION_APPLY','_checkMissing','getViewport','onMissingChangesets','[FetchMissState]','SessionStatus','VIEWPORT_KEY','height','_socketReady','_awaitingChangeset','univer-online','ThemeService','_submitChangeset','deepClone','appendMutation','_renderManagerService','INTERNAL_ERROR','_docSyncEditingCollabCursorService','_updateLocalCache','UNAUTHENTICATED','handleIRemoveCol','/universer-api/comb','session.connection-failed','includes','_id','transformStack\x20failed!','_http','assign','transformMutationsWithChangeset','transformByState','_createSocket','DataLoaderController','state$','values','handleDeleteRangeMoveLeft','uni.network.url-service','_syncEditingCollabCursor','conflict','LIVESHARE_OPERATION','status','#FFF','Rectangle','_labelPosition','onMouseMove','PENDING','getTypeOfUnitDisposed$','_clearOtherTimers','name','getRangePointData','[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.','?url=','_HTTPService','_range','univer-online-status-title','message$','collabStatus.conflict','pipe','createCollaborator','IHTTPImplementation','update','_exhaustRemoteChangesetQueue','toggleOffline','INVALID_ARGUMENT','CONNECTOR_DATA_TOO_LARGE','not_collab','getCollabEntity','collaborationUniverTypes','_onCursorDelete','arc','sessionStatus','add','CHANGESET_REJ','getInterceptPoints','IMEInputManagerService','getResourcesRequest','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','removeMember','_revisionService','_undoRedoService','UniverUi','XHRHTTPImplementation','FETCH_MISSING','Tools','_backgroundColor','getCurrentUser','getImageSourceCache','IPermissionService','_socket','AuthzIoHttpService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','Plugin','SHOULD_CLOSE_CONN','UniverEngineRender','post','_createInitialStateImpl','univer-pro.collaboration-client.single-active-unit-service','font','/object','OffLineSingle','_scheduleTimestamp','getCoordByCell','_handler','registerHTTPInterceptor','pushState','_notificationService','_selfUnitIDs','_updateCollabCursors','getUnitId','pending','_scheduleReconnection','_getAPIPrefixPath','UniverIcon','LOCAL_CACHE_INTERVAL','defineProperty','_sessions','action','DocSkeletonManagerService','RevisionService','getSheetId','displayName','LEAVE','combineLatest','transformUndoRedo','IBeforeCloseService','YUUMI_URL_COL_OUT_OF_RANGE','permissionRejEvent','onRemoteRej','PERMISSION_DENIED','ImageSourceType','drawWith','NO_OTHER_CLIENTS_EDITING','_getUploadFileURL','UNIVER_SHEET','localeService','...','merge','parseProtocolChangeset','Vector2','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_loadSheet','getUnhiddenWorksheets','_removeRoom','_textBubble','SEND_CHANGESET_TIMEOUT','129681HAtRzU','clipPath','_themeService','UPDATE_CURSOR','/allowed','_waitCount','HEADER_MENU','close','icon','storage','setItem','setUndoRedoMutationParamsCache','OFFLINE','transformSelections','resend','_getLoginPath','split','_clearRedo','serializeRangeWithSheet','onPointerLeave$','complete','cursorInfo$','c1Prime','_rescheduleHeartbeatEvent','_schedule','tag','_getSignURL','liveShareOperation','IUndoRedoService','call','gold400','off-line-single','awaiting','Optional','@univerjs/sheets-ui','useDependency','session','getActiveRange','_collabCursorController','href','_updateLocalCursor','getTypeOfUnitAdded$','BehaviorSubject','UNIVER_DOC','isTransformMutationsWithChangesetSuccess','concat','_document','UniverRpc','blue400','assignAColorForMemberID','ALREADY_EXISTS','UniverDocs','objectID','_transitionLocked','_handleLeaveEvent','#fff','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','@univerjs/rpc','_configService','selection','with','forEach','_createInitialState','push','React','dispose$','conflict.title','setTimeout','_getSendChangesetTimeout','params','top','SheetsSelectionsService','SheetSkeletonManagerService','getMemberID','registerComponent','UUID','_sendHeartbeat','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[SyncedState]:\x20received\x20rejection.','session.room-full','onCommentUpdate','_retryConnectingTimer','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','registerRefRange','SheetPermissionInitController','_collaborationTimeoutTimer','_substituteUndoStack','enableLocalCache','_saveTaskMap','LocaleService','cursorInfo','connectInjector','state','_initStatusListener','WebURLService','getDocObject','CollaborationStatusDisplay','_initCloseConn','_session','Univer','\x20to\x20','fill','EffectRefRangId','append','UniverInstanceType','_isPermissionRej','getUnitType','subUnitId','LIVESHARE_NEW_HOST','COLLAB_SUBMIT_CHANGESET_URL','15269inPyak','mapDocumentTypeToUniverType','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getColor','collaMsg','/-/object/list','APPLY_PERMISSION_DENIED','IDLE','CHANGESET_ACK','_commentUpdate$','title','has','addObject','_roomMembers$','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_lockTransition','_initModules','m2Prime','_compressMutationService','whenReady','LICENSE_EXPORT_SIZE_EXCEEDED','@univerjs/core','univer-online-status','_draw','subscribe','svg','UniverDrawing','resourceIDs','/collaborator','_onUserLeave','SNAPSHOT_URL_KEY','change$','shareReplay','_state','_roomMembers','sequenceExecute','_snapshotServerService','_assignedColors','open$','CONFLICT','onlineStatusIcon','rgba(255,\x20255,\x20255,\x200.01)','image/jpeg'];_0x22af=function(){return _0x1c3e86;};return _0x22af();}