@univerjs-pro/collaboration-client 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x4d174b=_0x2798;(function(_0x1d3afd,_0x5f0fc5){const _0x74585d=_0x2798,_0x49943e=_0x1d3afd();while(!![]){try{const _0x2b024f=-parseInt(_0x74585d(0x1ce))/0x1+-parseInt(_0x74585d(0x1d0))/0x2+-parseInt(_0x74585d(0x306))/0x3*(-parseInt(_0x74585d(0x201))/0x4)+-parseInt(_0x74585d(0x3b6))/0x5*(parseInt(_0x74585d(0x141))/0x6)+parseInt(_0x74585d(0x3d1))/0x7*(parseInt(_0x74585d(0x359))/0x8)+-parseInt(_0x74585d(0x3f6))/0x9*(parseInt(_0x74585d(0x27b))/0xa)+parseInt(_0x74585d(0xc5))/0xb;if(_0x2b024f===_0x5f0fc5)break;else _0x49943e['push'](_0x49943e['shift']());}catch(_0x4d8fc9){_0x49943e['push'](_0x49943e['shift']());}}}(_0x1b10,0x9578f));var Bs=Object['defineProperty'],Ws=(_0x22947c,_0x4c1e62,_0x328808)=>_0x4c1e62 in _0x22947c?Bs(_0x22947c,_0x4c1e62,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x328808}):_0x22947c[_0x4c1e62]=_0x328808,l=(_0x18791c,_0xaf3947,_0x1ab6df)=>Ws(_0x18791c,typeof _0xaf3947!='symbol'?_0xaf3947+'':_0xaf3947,_0x1ab6df);import{Disposable as _0x3d777f,toDisposable as _0x521fe6,UniverInstanceType as _0x1851b1,Inject as _0x5b671c,UserManagerService as _0x37f827,IUniverInstanceService as _0x2269ec,createIdentifier as _0x20ae42,DisposableCollection as _0x57d5bc,IConfigService as _0x15fd76,ILogService as _0x50a504,ISnapshotServerService as _0x31fed6,RxDisposable as _0x52c754,LocaleService as _0x35ebff,Injector as _0x49e10e,ILocalStorageService as _0x195f5f,Tools as _0x1053dd,ICommandService as _0x5bc562,JSONX as _0xa7ba5e,CommandType as _0x4d4345,IPermissionService as _0xf5bbc5,IUndoRedoService as _0x5f56c1,sequenceExecute as _0x37a637,OnLifecycle as _0xbfca41,LifecycleStages as _0x5b23af,Optional as _0x466fab,Rectangle as _0x439eae,ThemeService as _0x2191ad,useDependency as _0x3c7014,connectInjector as _0x5578f9,Workbook as _0x391489,textEncoder as _0x52ba54,b64DecodeUnicode as _0x44db7c,LocalUndoRedoService as _0xca3891,IContextService as _0x1a042d,COLORS as _0x375c72,ColorKit as _0x2cf8bf,isInternalEditorID as _0x48cbdf,Plugin as _0x1b986b,IAuthzIoService as _0x120323,mergeOverrideWithDependencies as _0x28386f,DependentOn as _0x34bd97}from'@univerjs/core';import{SheetsSelectionsService as _0x298766,SetSelectionsOperation as _0x32ba42,InsertSheetMutation as _0x3b1722,EmptyMutation as _0x4866a1,WorkbookEditablePermission as _0x56d014,RefRangeService as _0x30eaeb,EffectRefRangId as _0x52a1d4,handleIRemoveRow as _0x17649b,handleIRemoveCol as _0x22e932,handleMoveRange as _0x4e0a2e,handleInsertRow as _0x345f09,handleInsertRangeMoveRight as _0x255bb6,handleInsertRangeMoveDown as _0x3be4c3,handleInsertCol as _0x326930,handleDeleteRangeMoveUp as _0x1ca379,handleDeleteRangeMoveLeft as _0x881384,runRefRangeMutations as _0x43235e,SetWorksheetActivateCommand as _0x1149a2}from'@univerjs/sheets';import{MessageType as _0x17d4c8}from'@univerjs/design';import{IBeforeCloseService as _0x1799ae,IMessageService as _0x1e8990,INotificationService as _0x13435c,useObservable as _0x3425e9,BuiltInUIPart as _0x36ca7a,IUIPartsService as _0xe5448f}from'@univerjs/ui';import{CollaborationEvent as _0x2c65dc,parseChangesetToProtocol as _0x24fcaf,RevisionService as _0x5d7349,isTransformMutationFailure as _0x8ecfd4,isTransformMutationsWithChangesetSuccess as _0x7aa6dd,ITransformService as _0x174d0f,mapDocumentTypeToUniverType as _0x4a7d91,isTransformChangesetsSuccess as _0x5cb55b,CompressMutationService as _0x2224de,parseProtocolChangeset as _0xf28be5,SnapshotService as _0x8be8c0,isTransformMutationsWithChangesetFailure as _0x3d1247,UniverCollaborationPlugin as _0x5889e9}from'@univerjs-pro/collaboration';import{merge as _0x4e0a85,Subject as _0x49ef1a,BehaviorSubject as _0x16da12,distinctUntilChanged as _0x44a041,fromEvent as _0x2a799c,of as _0x1e95ea,takeUntil as _0xf80876,debounceTime as _0x552316,filter as _0x28963b,switchMap as _0x46582b,combineLatest as _0x2d61f0,shareReplay as _0x1c7dea,mapTo as _0x33a766,concatMap as _0x555673}from'rxjs';import{map as _0x120a2e,takeUntil as _0x21a0e1,take as _0x15818d,filter as _0x22c59c,delay as _0x4fe2db,shareReplay as _0x473611,switchMap as _0x6b8f52}from'rxjs/operators';function _0x1b10(){const _0x13d9f2=['location','getRangePointData','_onCursorUpdate','sheetID','onlineStatus','getTypeOfUnitDisposed$','_collabCursorState$','map','verdancy600','enableAuthServer','image/jpeg','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_executeRemoteChangeset','_updateLocalCursor','conflict','_hideTimer','_getAnchorBounding','_ws','_getMergeRange','YUUMI_UNABLE_LOAD_URL','clear','stringify','UNAUTHENTICATED','SNAPSHOT_HAS_BEEN_REMOVED','data','ERROR_EXCEED_SIZE','blue400','_handleLeaveEvent','sheets','_showConflictNotification','params','_submitChangeset','unit','_waitCount','_unitStatus','_userManagerService','_docSyncEditingCollabCursorService','_init','_sessions','[PendingState]:\x20received\x20acknowledgement.','transformUndoRedo','_unitOnClients','restore','_HTTPService','url(#off-line-single_clip0_910_343)','_setupBeforeClosingHandler','getCurrentRevForDocument','_redoStacks','_updateStatus','string','_updateCollabCursors','_hover','off-line-single_clip0_910_343','_shapes','UNIVER_DOC','moveTo','_themeService','url(#on-line-single_clip0_910_349)','parse','HEARTBEAT_TIMEOUT','_anchor','editingUnit','collab-text-anchor-','_startDocCollabCursor','AWAITING','onMissingChangesets','_renderManagerService','send','NOT_COLLAB','_type','SUBMIT_CHANGESET','CHANGESET_REVISION_CONFILICT','LIVESHARE_FETCH_OPERATIONS','_socketService','ONLINE','onlineStatusIcon','updatePermissionObjEvent','row','getOffsetConfig','univer-online-status','setCurrentUser','min','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_lockTransition','_collaborationSessionService','getWorkbookSelections','children','status$','_memberService','registerOnClose','_handler','memberID','interceptor','OffLineSingle','[SyncedState]:\x20received\x20rejection.','SNAPSHOT_SERVER_URL_KEY','length','_docSkeletonManagerService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','c1Prime','LICENSE_IMPORT_SIZE_EXCEEDED','_retryConnectingTimer','getSheetBySheetId','all','method','target','requireSession','collabStatus.syncing','getCollabEntity$','_collabCursorController','getCurrentSelections','NO_OTHER_CLIENTS_EDITING','getCurrentUnitForType','_state$','patch','_cursor','/unit/','_transitionLocked','_remoteChangesetQueue','COMPRESS_MUTATION_SEND','loadOfflineData','width','univer-online','[CollaborationSessionService]','onRendered','_color','_getSheetObject','_members','UPDATE_CURSOR','#fff','makeDirty','collaboration.closeRoom','closeSession','1610652HWfiWP','LIVESHARE_REQUEST_HOST','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_handleHeartbeatEvent','_logService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','open$','UNDEFINED','_heartbeatTimer','_draw','result','/resources','UNKNOWN_CMD','red300','onStarting','url','collabStatus.conflict','_ensureSubject','closePath','APPLY_NON_SEQUENTIAL_REVISION','MUTATION','collabCursorState$','_initMergeInterceptor','generateRandomId','_onConnectionFailed','path','_colorIndex','setAlpha','_rescheduleHeartbeatEvent','unit-cache-','_onConnectionOpen','_socketReady','_sendHeartbeat','[SyncedState]:\x20received\x20acknowledgement.','push','_clearRedo','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_snapshotService','[OfflineState]:\x20received\x20acknowledgement.','_createSocket','_scheduleTimestamp','save','selection','session.connection-failed','state$','getVpScrollXYInfoByPosToVp','jiqing500','gold400','getRoom','socket\x20open.','awaiting','RETRY_CONNECTING_INTERVAL','_collaborationPaused','onSyncEditingCollabCursor','getMemberID','SEND_CHANGESET_TIMEOUT','xlink:href','_registerRenderDependencies','TOO_MANY_REQUESTS','LOCAL_CACHE_INTERVAL','toggleOffline','getCellPositionByOffset','_joinRoom','_onUserJoin','then','_backgroundColor','HEADER_MENU','_isPermissionRej','set','url(#$1','ERROR_IMAGE_TYPE','_disabled','0\x200\x2016\x2016','OTHER_CLIENTS_EDITING','LIVESHARE_OPERATION','_updateSubUnitFromURLParams','flatMap','infoRsp','saveSnapshot','Error','triggerDblclick','CONNECTOR_DATA_TOO_LARGE','_handleEvent','264utRoYu','_entities','getMember','subscribeEvent','_getSnapshotAPIPrefix','[DataLoaderController]','_session','onlineStatusTitle','top','USERS_ENTER','_waitForHeartbeatResponse','RECV','executeCommand','extend','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','propertyIsEnumerable','_collabSessionService','cmd','COLLAB_WEB_SOCKET_URL','objectActions','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_injector','sheetId','PENDING','conflict.content','localeService','subUnitId','UPDATE_PERMISSION_OBJ','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','_onRecvEvent','color','image/jpg','_id','CHANGESET_ACK','getParam','has','_startSheetCollabCursor','resolve','call','_initModules','withCredentials','_getSignURL','replaceState','joinEvent','_updateURLWithCurrentState','routeKey','state','MoveRangeCommandId','HEARTBEAT','originalMeta','change$','\x20-\x20','initWorkbookPermissionChange','_getRedoStack','setShapeProps','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_unlockTransition','/universer-api/stream/file/upload','permission.content','UNIVER_SLIDE','?url=','_getLoginPath','max','/object/','LOGIN_URL_KEY','text','_socket$','[CollaborationUndoRedoService]','includes','/role','_render','saveChangeset','COMMENT_UPDATE','_loadDoc','_clearLocalCache','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','compose','setItem','_toggleOnline','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','_getCtorByUniverType','FAIL','_range','setUndoRedoMutationParamsCache','allowed','round','removeMember','createSocket','headers','onlyLocal','translate(.97)','toggleOnline','selections','818145NYoRrS','registerRenderModule','FileId','DeleteRangeMoveLeftCommandId','hovered','getActiveRange','createCollaborator','asObservable','loadSheet','svg','currentTheme$','clipPath','_cursors','hide','getInterceptPoints','save\x20fail\x20reason\x20is\x20','incrementRevForDocument','urlChange$','auth.needGotoLoginAlert','updatePermissionPoint','_transformService','_transformPreviousActiveRange','[CollaborationSession]','updateCollaborator','_removeCollabCursors','connection\x20error','_transformIMECache','232981HMrjNi','HELLO','createInstance','_clearOtherTimers','[PendingState]:\x20received\x20rejection.','_lastPointer','onload','_uiPartsService','_hovered','actions','[PendingState]:\x20unhandled\x20univer\x20type:\x20','synced','members','_onMessage','concat','changesets','_sheetTransformSelectionsService','readAsDataURL','subunit','delete','NEW_CHANGESETS','resourceIDs','isPermissionRej','cursorInfo','appendMutation','idSuffix','getAncestorScale','reject','awaitingChangeset','_saveTaskMap','JOINING','collabStatus.synced','_commentUpdate$','updateMember','_cursorInfo$','USERS_LEAVE','_transformSelections','1716471NjgzCJ','_getSendChangesetTimeout','error','[UniverCollaborationClientPlugin]','find','div','pipe','_roomMembers','_applyRemoteChangeset','_checkMissing','sessionStatus$','liveShareNewHost','onCommentUpdate','20107626PkiCtN','unsubscribe','getOwnPropertySymbols','startRow','_imageSourceCache','_localCacheService','_fetchMissChangesets','loadDoc','DeleteRangeMoveUpCommandId','InsertColCommandId','_drawRange','_syncEditingCollabCursor','socket\x20close','_incrementRevisionNumber','_substituteUndoStack','setInterval','\x0aCurrent:\x20','POST','createElement','ACTIVE_UNIT_EVENT_CHANNEL','newCsEvent','_undoRedoService','deepClone','JOIN','dispose$','deleteCollaborator','collaboration.single-unit.warning','Error\x20on\x20receiving\x20event','drawWith','next','_handleHover','disposeWithMe','objectID','_singleActiveUnitService','skeleton','_colorAssignService','collaboration-client.offline-data-not-saved','UUID','defIds','toString','append','_scheduleClearOtherTimer','[CollaborationState]:\x20apply\x20error!','assign','_docTransformSelectionsService','_docStateChangeManagerService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','error$','storage','univer-online-status-icon','collab-text-range-','put','_commentService','_scheduleSaving','apply','image/bmp','onSendChangeset','YUUMI_URL_COL_OUT_OF_RANGE','off-line-single','title','collaborators','/-/object/-/batch_allowed','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_initStatusListener','_onConflict','_replaceFileID','transformSelections','doc.mutation.rich-text-editing','InsertRangeMoveDownCommandId','_transformStack','CONFLICT','eventID','fetch_missing','onRemoteChangeset','list','transformStack\x20failed!','AUTHZ_URL_KEY','activeSheet$','_eventUnsubscribe','findNodePositionByCharIndex','_univerInstanceService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_document','submit\x20changeset\x20error!','collabStatus.offline','setWaitCount','fetchMissingChangesets','disableLocalCache','getMergeData','M0\x200H16V16H0z','init','onTransformSelections','_clearHeartbeatTimer','colorChannel1','trim','removeParam','popstate','_permissionService','permissionRejEvent','_decreaseWaiting','_onRemoteRejected','getViewport','setParam','on-line-single','_context','focused$','prototype','add','onMissedChangesetFetched','Starting','FETCH_MISSING','searchParams','get','\x0aAfter:\x20','session.will-retry','_clearScheduledTask','_initUnitPermissionChange','type','getCurrentUser','_schedule','_localeService','_removeClearOtherTimer','getOwnPropertyDescriptor','catch','24aLnhxV','ranges','revision','UNIVER_UNKNOWN','_httpService','_cachedData','transformMutationsWithChangeset','\x20in\x20_schedule.','not_collab','_scheduleReconnection','status','whenReady','/-/object/list','Warning','post','getUnitId','_getAPIPrefixPath','startColumn','_getUndoStack','body','encodeURIComponent','_createInitialStateImpl','_getAPIPrefix','_startCollaboration','_registerDependencies','measureText','dispose','update','bottom','isArray','_docSkeleton','m2Prime','defs','on-line-single_clip0_910_349','workbook','_clearCollaborationTimeoutTimer','_getCurrentRevision','getActiveSheet','INGEST','requestParams','_transformUndoRedoStack','fillRule','onTransformRemoteChangesetByIMECache','_createInitialState','startsWith','Univer','replace','APPLY_REVISION_CONFILICT','PERMISSION_DENIED','offline','batchAllowed','getTypeOfUnitAdded$','clearTimeout','contains','_undoStacks','_commandService','newValue','OnLineSingle','_refRangeService','CHANGESET_REJ','_socket','/rev/','_localStorageService','reduce','setActiveRange','_awaitingChangeset','addEventListener','COMPRESS_MUTATION_APPLY','mutations','resend','random','_selfUnitIDs','FETCH_MISS','_anchorDot','INTERNAL_ERROR','transformMutation','responseType','transformIMECache','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','fetchThroughInterceptors','_snapshotServerService','currentSkeleton$','snapshot','objects','currentColor','_acknowledgedAwaitingChangeset','_revisionService','_substituteRedoStack','show','pluginName','onMouseMove','_sheetSkeletonManagerService','_onRemoteACK','commentUpdate$','sessionStatus','transformChangesets','_toggleOffline','fill','syncEditingCollabCursor','onRemoteAck','_getUploadFileURL','_event$','_disableEditing','_textBubble','event$','getUnitOnRev','_unitID','height','_urlService','_docTransformIMECacheService','_initStatusComponent','listRoles','[OfflineState]:\x20received\x20rejection.','roomMembers$','_onLocalMutation','range','_notificationService','ERROR_IMAGE','_compressMutationService','_roomMembers$','#FFF','registerBeforeClose','[FetchMissState]','entries','InsertRowCommandId','_saveCache','roomMembers','getCollabEntity','split','_sendingTimer','UNKNOWN_CODE','listCollaborators','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_assignedColors','transformRemoteChangeset','action','onRemoteRej','attrs','forEach','addImageSourceCache','session','872086RvacJh','getUndoRedoMutationParamsCache','1504382UvniQx','NOT_FOUND','getImageSourceCache','_getScale','/allowed','assignAColorForMemberID','exhaustSavingTask','key','setTimeout','csAckEvent','unshift','m1Prime','cursorInfo$','_onJoinRoomEvent','LEAVE','getUnitType','_getSaveTimeout','_tryEnsureSocket','unitID','defineProperty','onCommandExecuted','message$','/collaborator','column','json','image/png','fillText','values','lineTo','conflict.title','onPointerLeave$','close','getConfig','indexOf','univer-online-status-title','_scheduleCollaborationTimeoutTimer','unknown','_send','univer-pro.collaboration-client.single-active-unit-service','_sendHeartbeatTimer','_onCursorDelete','_updateLocalCache','OFFLINE','1em','_onFetchMissResult','_collaborationTimeoutTimer','/block/','rev','getSheetId','4PnOPdy','UNIVER_SHEET','_onCombEvent','onPointerMove$','_entityInit$','_change$','UNRECOGNIZED','addObject','isActive','APPLY_REJECT','icon','_config','_state','src','LICENSE_MAX_UNITS_EXCEEDED','getRelativeToViewportCoord','LICENSE_DISTRO_REJECTED','MSG_FOR_ERROR','use','toRgbString','InsertRangeMoveRightCommandId','image/gif','SHOULD_CLOSE_CONN','_removeRoom','APPLY_PERMISSION_DENIED','&to=','className','commentUpdateEvent','awaiting_with_pending','getUnitStatus$','_createHandler','univer-offline','hasOwnProperty','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','ALREADY_EXISTS','_onUserLeave','_beforeCloseService','shouldCloseConn','csRejEvent','_sessionStatus$','_configService','unitId','_messageService','_name','_syncEditingCollabCursorService','name','_handleJoinEvent','_online','pushState','history','_drawAnchor','baseRev','addObjects','filter','_exhaustRemoteChangesetQueue','_timeoutTimer','registerComponent','_updateState','/object','_setupSubUnitSync','_transformRemoteChangesetByIMECache','univer-pro.collaboration-client-socket-service','SNAPSHOT_URL_KEY','SNAPSHOT_INVALID_SNAPSHOT','registerRefRange','fromCollab','pending','_labelPosition','LIVESHARE_TERMINATE','displayName','Unknown\x20user','objectType','registerHTTPInterceptor','_initCloseConn','FromArray','rgba(255,\x20255,\x20255,\x200.01)','debug','fillStyle','roles','[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.','userID','editing\x20status\x20changed\x20to','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','clearInterval','IDLE','_loadSheet','getValue','arc','_status$','SUCCUSS','/fetchmissing?from=','close$','updateOfflineData','complete','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_collaborationController','_pendingMutations','size','_scheduleHeartbeat','from','function','collabStatus.notCollab','_clearTimeoutTimer','enableSingleActiveInstanceLock','subscribe','encode','_queuedRemoteChangesets','black','_retryCount','PSEUDO_FETCH_MISSING_RESULT','tag','PERMISSION_REJ','onPointerEnter$','href','HEARTBEAT_INTERVAL','_scene','LIVESHARE_NEW_HOST','getFocusedUnit','textRanges','[CollaborationEntity]','_socketMessageSubscription','_http','30mzYNuz','file','purple300','some','_onRemoteChangeset','enableOfflineEditing'];_0x1b10=function(){return _0x13d9f2;};return _0x1b10();}import{IMEInputManagerService as _0x34bf2b,TextSelectionManagerService as _0x2684a6,serializeTextRange as _0x1c3c28,RichTextEditingMutation as _0x257904,DocStateChangeManagerService as _0x199abc,SetTextSelectionsOperation as _0x3741bb,DocSkeletonManagerService as _0x20b350}from'@univerjs/docs';import{HTTPService as _0x45a59b,WebSocketService as _0x260c27,MergeInterceptorFactory as _0x210201,HTTPRequest as _0x5e2413,IHTTPImplementation as _0x5aae1e,XHRHTTPImplementation as _0x52538a,ThresholdInterceptorFactory as _0x50c28f}from'@univerjs/network';import{ImageSourceType as _0x2f95cc,ImageUploadStatusType as _0x55f297,IImageIoService as _0x24c8c0}from'@univerjs/drawing';import{Shape as _0x4a0992,Rect as _0x390a18,Vector2 as _0x3af05d,NodePositionConvertToCursor as _0x45f833,getColor as _0x420307,TEXT_RANGE_LAYER_INDEX as _0x22a117,RegularPolygon as _0x1960e1,IRenderManagerService as _0xa71c3c}from'@univerjs/engine-render';import{deserializeRangeWithSheet as _0x153292,serializeRangeWithSheet as _0xd693b7}from'@univerjs/engine-formula';import _0x7a8360 from'lodash/debounce';import{VIEWPORT_KEY as _0x94aa38,getCoordByCell as _0x1c49f8,getSheetObject as _0x361cc8,SheetSkeletonManagerService as _0xccc92,SheetPermissionInitController as _0x52d8a4}from'@univerjs/sheets-ui';function _0x2798(_0x3286de,_0x8ba0ea){const _0x1b1041=_0x1b10();return _0x2798=function(_0x279807,_0x520b9d){_0x279807=_0x279807-0xb9;let _0x27ca2a=_0x1b1041[_0x279807];return _0x27ca2a;},_0x2798(_0x3286de,_0x8ba0ea);}import _0x33deb0,{forwardRef as _0xc5b87,useRef as _0x485761,createElement as _0x33566a}from'react';import _0x4b7a4e from'clsx';import{IRemoteInstanceService as _0xd560c9}from'@univerjs/rpc';const Zi=_0x4d174b(0x2e0),Qi='/universer-api/snapshot',en=_0x4d174b(0x23f),tn=_0x4d174b(0x33d),sn=0x7d0,nn=_0x4d174b(0x36b),rn='ws://127.0.0.1:8000/universer-api/comb/connect',on=_0x4d174b(0x273),an=0x7530,Ts=_0x4d174b(0x2bc),Rs=0x2710,cn=_0x4d174b(0x339),hn=0x4e20,ln='RETRY_CONNECTING_MAX_COUNT',_n=0x3,un=_0x4d174b(0x341),dn=0x3e8,mn='COLLAB_SUBMIT_CHANGESET_URL',fn='/universer-api/comb',gn=_0x4d174b(0x399),Sn='/universer-api/oidc/authpage';var Os=(_0x428029=>(_0x428029[_0x428029[_0x4d174b(0x30d)]=0x0]=_0x4d174b(0x30d),_0x428029[_0x428029['OK']=0x1]='OK',_0x428029[_0x428029[_0x4d174b(0x18b)]=0x2]=_0x4d174b(0x18b),_0x428029[_0x428029[_0x4d174b(0x171)]=0x3]=_0x4d174b(0x171),_0x428029[_0x428029['NOT_FOUND']=0x4]=_0x4d174b(0x1d1),_0x428029[_0x428029[_0x4d174b(0x297)]=0x5]=_0x4d174b(0x297),_0x428029[_0x428029[_0x4d174b(0x223)]=0x6]=_0x4d174b(0x223),_0x428029[_0x428029['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x428029[_0x428029[_0x4d174b(0x340)]=0x8]=_0x4d174b(0x340),_0x428029[_0x428029['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x428029[_0x428029[_0x4d174b(0x2c8)]=0x1389]=_0x4d174b(0x2c8),_0x428029[_0x428029[_0x4d174b(0x240)]=0x1771]=_0x4d174b(0x240),_0x428029[_0x428029[_0x4d174b(0x298)]=0x1772]=_0x4d174b(0x298),_0x428029[_0x428029[_0x4d174b(0x20a)]=0x1b59]=_0x4d174b(0x20a),_0x428029[_0x428029[_0x4d174b(0x319)]=0x1b5a]=_0x4d174b(0x319),_0x428029[_0x428029[_0x4d174b(0x170)]=0x1b5b]=_0x4d174b(0x170),_0x428029[_0x428029[_0x4d174b(0x219)]=0x1b5c]=_0x4d174b(0x219),_0x428029[_0x428029[_0x4d174b(0x357)]=0x1f41]=_0x4d174b(0x357),_0x428029[_0x428029['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4d174b(0x20f),_0x428029[_0x428029[_0x4d174b(0x116)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x428029[_0x428029[_0x4d174b(0x2e5)]=0x232b]=_0x4d174b(0x2e5),_0x428029[_0x428029['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x428029[_0x428029[_0x4d174b(0x211)]=0x232d]=_0x4d174b(0x211),_0x428029[_0x428029[_0x4d174b(0x294)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x428029[_0x428029[_0x4d174b(0xfe)]=0x2712]=_0x4d174b(0xfe),_0x428029[_0x428029[_0x4d174b(0x207)]=-0x1]=_0x4d174b(0x207),_0x428029))(Os||{}),j=(_0x2d2dd0=>(_0x2d2dd0[_0x2d2dd0['UNIVER_UNKNOWN']=0x0]=_0x4d174b(0x144),_0x2d2dd0[_0x2d2dd0['UNIVER_DOC']=0x1]=_0x4d174b(0x2b7),_0x2d2dd0[_0x2d2dd0[_0x4d174b(0x202)]=0x2]=_0x4d174b(0x202),_0x2d2dd0[_0x2d2dd0[_0x4d174b(0x394)]=0x3]=_0x4d174b(0x394),_0x2d2dd0[_0x2d2dd0[_0x4d174b(0x207)]=-0x1]=_0x4d174b(0x207),_0x2d2dd0))(j||{}),I=(_0x2755ba=>(_0x2755ba[_0x2755ba[_0x4d174b(0x312)]=0x0]=_0x4d174b(0x312),_0x2755ba[_0x2755ba[_0x4d174b(0x3d2)]=0x1]=_0x4d174b(0x3d2),_0x2755ba[_0x2755ba[_0x4d174b(0xdc)]=0x2]=_0x4d174b(0xdc),_0x2755ba[_0x2755ba[_0x4d174b(0x1de)]=0x3]=_0x4d174b(0x1de),_0x2755ba[_0x2755ba[_0x4d174b(0x167)]=0x4]=_0x4d174b(0x167),_0x2755ba[_0x2755ba[_0x4d174b(0x389)]=0x5]=_0x4d174b(0x389),_0x2755ba[_0x2755ba[_0x4d174b(0x364)]=0x6]=_0x4d174b(0x364),_0x2755ba[_0x2755ba[_0x4d174b(0x207)]=-0x1]=_0x4d174b(0x207),_0x2755ba))(I||{}),$t=(_0x3e3bd8=>(_0x3e3bd8[_0x3e3bd8[_0x4d174b(0x1c3)]=0x0]=_0x4d174b(0x1c3),_0x3e3bd8[_0x3e3bd8['OK']=0x1]='OK',_0x3e3bd8[_0x3e3bd8[_0x4d174b(0x3aa)]=0x2]=_0x4d174b(0x3aa),_0x3e3bd8[_0x3e3bd8[_0x4d174b(0x207)]=-0x1]='UNRECOGNIZED',_0x3e3bd8))($t||{}),vn=Object[_0x4d174b(0x1e3)],pn=Object[_0x4d174b(0x13f)],In=(_0x53f9fb,_0x1560c4,_0x29736d,_0x5e9847)=>{const _0x1b92b4=_0x4d174b;for(var _0x47c505=_0x5e9847>0x1?void 0x0:_0x5e9847?pn(_0x1560c4,_0x29736d):_0x1560c4,_0x179a66=_0x53f9fb[_0x1b92b4(0x2e1)]-0x1,_0x26f43f;_0x179a66>=0x0;_0x179a66--)(_0x26f43f=_0x53f9fb[_0x179a66])&&(_0x47c505=(_0x5e9847?_0x26f43f(_0x1560c4,_0x29736d,_0x47c505):_0x26f43f(_0x47c505))||_0x47c505);return _0x5e9847&&_0x47c505&&vn(_0x1560c4,_0x29736d,_0x47c505),_0x47c505;},qt=(_0xe1fed7,_0x115e12)=>(_0x4db2ac,_0x20a25d)=>_0x115e12(_0x4db2ac,_0x20a25d,_0xe1fed7);let te=class extends _0x3d777f{constructor(_0x84a8fd,_0xaed6fa){const _0x394555=_0x4d174b;super(),l(this,'_roomMembers',new Map()),(this[_0x394555(0x115)]=_0x84a8fd,this[_0x394555(0x2a4)]=_0xaed6fa,this[_0x394555(0xe4)](_0x521fe6(_0x4e0a85(this[_0x394555(0x115)]['getTypeOfUnitDisposed$'](_0x1851b1['UNIVER_SHEET'])['pipe'](_0x120a2e(_0x5137dd=>_0x5137dd[_0x394555(0x150)]())),this[_0x394555(0x115)][_0x394555(0x286)](_0x1851b1[_0x394555(0x2b7)])[_0x394555(0xbe)](_0x120a2e(_0x5a41d1=>_0x5a41d1[_0x394555(0x150)]())),this[_0x394555(0x115)][_0x394555(0x286)](_0x1851b1[_0x394555(0x394)])[_0x394555(0xbe)](_0x120a2e(_0x2990ce=>_0x2990ce[_0x394555(0x150)]())))[_0x394555(0x269)](_0x1b4146=>this[_0x394555(0x218)](_0x1b4146)))));}['setCurrentUser'](_0x21d2a0){const _0x13bb11=_0x4d174b;this[_0x13bb11(0x2a4)][_0x13bb11(0x2d1)](_0x21d2a0);}[_0x4d174b(0x13b)](){const _0xd602cd=_0x4d174b;return this[_0xd602cd(0x2a4)]['getCurrentUser']();}[_0x4d174b(0x3f2)](_0x56286a,_0x1056c1){const _0x4e4a5b=_0x4d174b;let _0x2bcf62=this[_0x4e4a5b(0xbf)][_0x4e4a5b(0x135)](_0x56286a);_0x2bcf62||(_0x2bcf62=new En(),this[_0x4e4a5b(0xbf)]['set'](_0x56286a,_0x2bcf62)),_0x2bcf62[_0x4e4a5b(0x3f2)](_0x1056c1);}['removeMember'](_0xc76a09,_0x5e38c4){const _0x398022=_0x4d174b,_0x34027e=this['_roomMembers'][_0x398022(0x135)](_0xc76a09);_0x34027e&&_0x34027e[_0x398022(0x3af)](_0x5e38c4);}[_0x4d174b(0x336)](_0x4c2c5b){const _0x128cb1=_0x4d174b;return this[_0x128cb1(0xbf)][_0x128cb1(0x135)](_0x4c2c5b);}[_0x4d174b(0x35b)](_0x20abc9,_0x26997){const _0x56105c=_0x4d174b,_0xc2cd33=this['_roomMembers'][_0x56105c(0x135)](_0x20abc9);if(_0xc2cd33)return _0xc2cd33[_0x56105c(0x35b)](_0x26997);}['_removeRoom'](_0x11abbb){const _0x4585ee=_0x4d174b,_0x255364=this[_0x4585ee(0xbf)][_0x4585ee(0x135)](_0x11abbb);_0x255364&&(_0x255364[_0x4585ee(0x15b)](),this[_0x4585ee(0xbf)]['delete'](_0x11abbb));}['dispose'](){const _0x2189b4=_0x4d174b;this[_0x2189b4(0xbf)][_0x2189b4(0x1cb)](_0x3a8781=>_0x3a8781[_0x2189b4(0x15b)]()),this[_0x2189b4(0xbf)][_0x2189b4(0x295)]();}};te=In([qt(0x0,_0x2269ec),qt(0x1,_0x5b671c(_0x37f827))],te);class En extends _0x3d777f{constructor(){super(...arguments),l(this,'_members',new Map());}['dispose'](){const _0x569d33=_0x4d174b;this[_0x569d33(0x300)]['clear']();}[_0x4d174b(0x3f2)](_0x2ae8c5){const _0x4bb8a8=_0x4d174b;this[_0x4bb8a8(0x300)][_0x4bb8a8(0x34a)](_0x2ae8c5[_0x4bb8a8(0x2dc)],_0x2ae8c5);}[_0x4d174b(0x3af)](_0x2655b8){const _0x1d7b6c=_0x4d174b;this['_members'][_0x1d7b6c(0x3e4)](_0x2655b8);}[_0x4d174b(0x35b)](_0x2ace8f){const _0x63d7c9=_0x4d174b;return this[_0x63d7c9(0x300)][_0x63d7c9(0x135)](_0x2ace8f);}}function Cn(_0x240187){const _0x5d3ed3=_0x4d174b;var _0x1b87d1,_0x47976b,_0x430629,_0x5a7898;const _0x5e6f8e=_0x240187[_0x5d3ed3(0x299)],_0x24b3c0=JSON[_0x5d3ed3(0x2bb)](_0x5e6f8e);switch(_0x24b3c0[_0x5d3ed3(0x36a)]){case I[_0x5d3ed3(0x389)]:case I[_0x5d3ed3(0x3d2)]:{const _0x37d44d=_0x24b3c0[_0x5d3ed3(0x353)];return{..._0x24b3c0,'data':_0x37d44d,'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};}case I[_0x5d3ed3(0xdc)]:{const _0x3046a7=_0x24b3c0['joinRsp'];return{..._0x24b3c0,'data':_0x3046a7,'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};}case I[_0x5d3ed3(0x364)]:{const _0x564c5a=_0x24b3c0['collaMsg'];switch(_0x564c5a[_0x5d3ed3(0x10c)]){case _0x2c65dc['PERMISSION_REJ']:return{..._0x24b3c0,'data':{..._0x564c5a,'data':(_0x1b87d1=_0x564c5a[_0x5d3ed3(0x127)])==null?void 0x0:_0x1b87d1['cs']},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x37a)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':(_0x47976b=_0x564c5a[_0x5d3ed3(0x1d9)])==null?void 0x0:_0x47976b['cs']},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x3e5)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':(_0x430629=_0x564c5a[_0x5d3ed3(0xd9)])==null?void 0x0:_0x430629['cs']},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x17c)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':(_0x5a7898=_0x564c5a[_0x5d3ed3(0x227)])==null?void 0x0:_0x5a7898['cs']},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc['UPDATE_CURSOR']:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a['updateCursorEvent']},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x362)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a[_0x5d3ed3(0x384)]},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x3f4)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a['leaveEvent']},'cmd':_0x24b3c0['cmd']};case _0x2c65dc[_0x5d3ed3(0x275)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a[_0x5d3ed3(0xc3)]},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x2c9)]:case _0x2c65dc['LIVESHARE_OPERATION']:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a['liveShareOperation']},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc['LIVESHARE_TERMINATE']:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a[_0x5d3ed3(0xc3)]},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x212)]:return{..._0x24b3c0,'data':_0x564c5a,'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x3a1)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a[_0x5d3ed3(0x21c)]},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc[_0x5d3ed3(0x374)]:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a[_0x5d3ed3(0x2cd)]},'cmd':_0x24b3c0[_0x5d3ed3(0x36a)]};case _0x2c65dc['SHOULD_CLOSE_CONN']:return{..._0x24b3c0,'data':{..._0x564c5a,'data':_0x564c5a[_0x5d3ed3(0x226)]},'cmd':_0x24b3c0['cmd']};default:return _0x24b3c0;}}default:return _0x24b3c0;}}function bn(_0x5eab42){const _0x9148a5=_0x4d174b;switch(_0x5eab42[_0x9148a5(0x36a)]){case I[_0x9148a5(0x389)]:case I['HELLO']:return JSON[_0x9148a5(0x296)]({'cmd':_0x5eab42[_0x9148a5(0x36a)],'routeKey':_0x5eab42[_0x9148a5(0x386)]});case I['INGEST']:{let _0x4de16a;switch(_0x5eab42[_0x9148a5(0x299)][_0x9148a5(0x10c)]){case _0x2c65dc[_0x9148a5(0x301)]:{_0x4de16a={'eventID':_0x2c65dc['UPDATE_CURSOR'],'updateCursorEvent':_0x5eab42[_0x9148a5(0x299)][_0x9148a5(0x299)]};break;}case _0x2c65dc['USERS_LEAVE']:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x3f4)],'leaveEvent':_0x5eab42[_0x9148a5(0x299)]['data']};break;}case _0x2c65dc[_0x9148a5(0x362)]:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x362)],'joinEvent':_0x5eab42[_0x9148a5(0x299)][_0x9148a5(0x299)]};break;}case _0x2c65dc[_0x9148a5(0x275)]:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x275)],'liveShareNewHost':_0x5eab42[_0x9148a5(0x299)][_0x9148a5(0x299)]};break;}case _0x2c65dc[_0x9148a5(0x350)]:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x350)],'liveShareOperation':_0x5eab42[_0x9148a5(0x299)][_0x9148a5(0x299)]};break;}case _0x2c65dc[_0x9148a5(0x245)]:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x245)],'liveShareTerminate':_0x5eab42[_0x9148a5(0x299)][_0x9148a5(0x299)]};break;}case _0x2c65dc[_0x9148a5(0x307)]:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x307)],'liveShareRequestHost':_0x5eab42['data'][_0x9148a5(0x299)]};break;}case _0x2c65dc[_0x9148a5(0x2c9)]:{_0x4de16a={'eventID':_0x2c65dc[_0x9148a5(0x2c9)]};break;}default:_0x4de16a={'eventID':_0x5eab42['data'][_0x9148a5(0x10c)]};}return JSON['stringify']({'cmd':_0x5eab42[_0x9148a5(0x36a)],'routeKey':_0x5eab42[_0x9148a5(0x386)],'collaMsg':_0x4de16a});}case I['JOIN']:return JSON['stringify']({'cmd':_0x5eab42[_0x9148a5(0x36a)],'routeKey':_0x5eab42[_0x9148a5(0x386)],'joinReq':_0x5eab42[_0x9148a5(0x299)]});case I[_0x9148a5(0x1de)]:return JSON['stringify']({'cmd':_0x5eab42[_0x9148a5(0x36a)],'routeKey':_0x5eab42['routeKey'],'leaveReq':_0x5eab42[_0x9148a5(0x299)]});default:throw new Error(_0x9148a5(0x1c5));}}var Tn=Object['defineProperty'],Rn=Object[_0x4d174b(0x13f)],On=(_0x1fb2fe,_0x58f6e3,_0x4a3967,_0x4546b)=>{const _0xd58577=_0x4d174b;for(var _0x15348b=_0x4546b>0x1?void 0x0:_0x4546b?Rn(_0x58f6e3,_0x4a3967):_0x58f6e3,_0x7808a2=_0x1fb2fe[_0xd58577(0x2e1)]-0x1,_0x54a770;_0x7808a2>=0x0;_0x7808a2--)(_0x54a770=_0x1fb2fe[_0x7808a2])&&(_0x15348b=(_0x4546b?_0x54a770(_0x58f6e3,_0x4a3967,_0x15348b):_0x54a770(_0x15348b))||_0x15348b);return _0x4546b&&_0x15348b&&Tn(_0x58f6e3,_0x4a3967,_0x15348b),_0x15348b;},Ee=(_0x5bbf2e,_0x5e8e65)=>(_0x560279,_0x5dbae9)=>_0x5e8e65(_0x560279,_0x5dbae9,_0x5bbf2e);const Ds=_0x20ae42(_0x4d174b(0x23e));function Dn(_0x1fd817,_0x53ecf0,_0x45277d){const _0x9deb63=_0x4d174b;return _0x1fd817+'/'+_0x53ecf0+_0x9deb63(0x2f5)+_0x45277d+'/new_changes';}let vt=class{constructor(_0x42475c,_0xb8e332,_0x535edf,_0x1ea24e,_0x5b3dd9){const _0x4c6268=_0x4d174b;this['_http']=_0x42475c,this[_0x4c6268(0x292)]=_0xb8e332,this[_0x4c6268(0x229)]=_0x535edf,this['_logService']=_0x1ea24e,this[_0x4c6268(0x191)]=_0x5b3dd9;}[_0x4d174b(0x3b0)](_0x1143d7){const _0x31629a=_0x4d174b,_0x36fd61=this[_0x31629a(0x292)][_0x31629a(0x3b0)](_0x1143d7);if(!_0x36fd61)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x1bdd58=new _0x57d5bc(),_0x1c2345=new _0x49ef1a();_0x1bdd58[_0x31629a(0x130)](_0x521fe6(_0x36fd61[_0x31629a(0x25c)][_0x31629a(0x269)](_0x5acdf9=>_0x1c2345['next'](_0x5acdf9)))),_0x1bdd58['add'](_0x521fe6(()=>_0x1c2345[_0x31629a(0x25e)]()));const _0x2af0ba=new _0x49ef1a();_0x1bdd58[_0x31629a(0x130)](_0x521fe6(_0x36fd61[_0x31629a(0xf4)][_0x31629a(0x269)](_0x3f2d5a=>_0x2af0ba[_0x31629a(0xe2)](_0x3f2d5a)))),_0x1bdd58[_0x31629a(0x130)](_0x521fe6(()=>_0x2af0ba[_0x31629a(0x25e)]()));const _0x556c21=new _0x49ef1a();_0x1bdd58[_0x31629a(0x130)](_0x521fe6(_0x36fd61['message$'][_0x31629a(0x269)](_0x4b0b4c=>{const _0x235952=Cn(_0x4b0b4c);_0x556c21['next'](_0x235952);}))),_0x1bdd58['add'](_0x521fe6(()=>_0x556c21['complete']()));const _0x15cc0d=()=>{const _0x459391=_0x31629a;_0x2af0ba[_0x459391(0xe2)](new Event(_0x459391(0x3cf))),_0x1c2345[_0x459391(0xe2)](new CloseEvent(_0x459391(0x3cf))),_0x39a0c3[_0x459391(0x1ef)]();},_0x39a0c3={'memberID':'','close$':_0x1c2345[_0x31629a(0x3bd)](),'error$':_0x2af0ba[_0x31629a(0x3bd)](),'open$':_0x36fd61[_0x31629a(0x30c)],'message$':_0x556c21[_0x31629a(0x3bd)](),'send':_0x377789=>{const _0xac9769=_0x31629a;if(_0x377789[_0xac9769(0x36a)]===I[_0xac9769(0x167)]){if(_0x377789['data']['eventID']===_0x2c65dc[_0xac9769(0x2c7)]){this[_0xac9769(0x2a0)](_0x39a0c3,_0x377789[_0xac9769(0x299)])[_0xac9769(0x140)](_0x8fd4aa=>{const _0x5ce2a6=_0xac9769;this[_0x5ce2a6(0x30a)][_0x5ce2a6(0xba)](_0x8fd4aa),_0x15cc0d();});return;}if(_0x377789[_0xac9769(0x299)][_0xac9769(0x10c)]===_0x2c65dc[_0xac9769(0x133)]){const _0x3764e1=_0x377789[_0xac9769(0x299)];this[_0xac9769(0xcb)](_0x3764e1)[_0xac9769(0x346)](_0x1ae01c=>{const _0x2cb990=_0xac9769;_0x556c21[_0x2cb990(0xe2)]({'cmd':I[_0x2cb990(0x364)],'code':$t['OK'],'routeKey':_0x3764e1['data'][_0x2cb990(0x1e2)],'routeType':'','data':{'eventID':_0x2c65dc['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x1ae01c}}});})[_0xac9769(0x140)](_0xe6031d=>{this['_logService']['error'](_0xe6031d),_0x15cc0d();});return;}}_0x36fd61[_0xac9769(0x2c4)](bn(_0x377789));},'close':()=>{const _0x5ca0b8=_0x31629a;_0x36fd61['close'](),_0x1bdd58[_0x5ca0b8(0x15b)]();}};return _0x39a0c3;}async[_0x4d174b(0x2a0)](_0x201ecf,_0x26a4f8){const _0x47b60f=_0x4d174b;var _0xb2b1b0;const {unitType:_0x37ba0e,unitID:_0x10f426,changeset:_0x425af7}=_0x26a4f8['data'],_0x586d79={'unitID':_0x10f426,'memberID':_0x201ecf[_0x47b60f(0x2dc)],'type':_0x37ba0e,'changeset':_0x24fcaf(_0x425af7)},_0x1b1470=Dn((_0xb2b1b0=this[_0x47b60f(0x229)][_0x47b60f(0x1f0)](mn))!=null?_0xb2b1b0:fn,_0x37ba0e,_0x10f426);try{await this[_0x47b60f(0x27a)][_0x47b60f(0x14f)](_0x1b1470,{'body':_0x586d79});}catch(_0x4fe784){throw this[_0x47b60f(0x30a)][_0x47b60f(0xba)](_0x47b60f(0x3cc),_0x47b60f(0x118)),_0x4fe784;}}async[_0x4d174b(0xcb)](_0x3c3788){const _0x16efce=_0x4d174b,{unitID:_0x5ca759,from:_0x3125d4,to:_0x3fc59f,unitType:_0x1e5cf1}=_0x3c3788['data'];return(await this[_0x16efce(0x191)][_0x16efce(0x11b)]({'metadata':void 0x0},{'unitID':_0x5ca759,'type':_0x1e5cf1,'from':_0x3125d4,'to':_0x3fc59f}))[_0x16efce(0x3e0)];}};vt=On([Ee(0x0,_0x5b671c(_0x45a59b)),Ee(0x1,_0x5b671c(_0x260c27)),Ee(0x2,_0x15fd76),Ee(0x3,_0x50a504),Ee(0x4,_0x31fed6)],vt);class Ps{constructor(){const _0x38066f=_0x4d174b;l(this,_0x38066f(0x3f1),new _0x49ef1a()),l(this,_0x38066f(0x19e),this['_commentUpdate$'][_0x38066f(0x3bd)]());}[_0x4d174b(0xc4)](_0x58ee77){const _0x1d50a6=_0x4d174b;this[_0x1d50a6(0x3f1)][_0x1d50a6(0xe2)](_0x58ee77);}}var Pn=Object[_0x4d174b(0x1e3)],wn=Object[_0x4d174b(0x13f)],ws=(_0x550767,_0x4bf563,_0x270f22,_0x3ffaa8)=>{const _0xbbd0b6=_0x4d174b;for(var _0x4c5efa=_0x3ffaa8>0x1?void 0x0:_0x3ffaa8?wn(_0x4bf563,_0x270f22):_0x4bf563,_0x511ad3=_0x550767[_0xbbd0b6(0x2e1)]-0x1,_0x45385d;_0x511ad3>=0x0;_0x511ad3--)(_0x45385d=_0x550767[_0x511ad3])&&(_0x4c5efa=(_0x3ffaa8?_0x45385d(_0x4bf563,_0x270f22,_0x4c5efa):_0x45385d(_0x4c5efa))||_0x4c5efa);return _0x3ffaa8&&_0x4c5efa&&Pn(_0x4bf563,_0x270f22,_0x4c5efa),_0x4c5efa;},M=(_0x3c2025,_0x37724e)=>(_0x25cba6,_0x304d04)=>_0x37724e(_0x25cba6,_0x304d04,_0x3c2025),de=(_0x2f151f=>(_0x2f151f[_0x2f151f['IDLE']=0x0]=_0x4d174b(0x255),_0x2f151f[_0x2f151f['JOINING']=0x1]=_0x4d174b(0x3ef),_0x2f151f[_0x2f151f[_0x4d174b(0x1fa)]=0x2]=_0x4d174b(0x1fa),_0x2f151f[_0x2f151f[_0x4d174b(0x2cb)]=0x3]=_0x4d174b(0x2cb),_0x2f151f))(de||{});let pt=class extends _0x52c754{constructor(_0x35df67,_0x2e81ea,_0x11da7a,_0x124e4b,_0xf8dccd,_0x979b5a,_0x55c539,_0x419cc0,_0x2989c9){const _0x175a83=_0x4d174b;super(),l(this,_0x175a83(0x228),new _0x16da12(0x0)),l(this,'sessionStatus$',this[_0x175a83(0x228)]['asObservable']()),l(this,_0x175a83(0x1a6),new _0x49ef1a()),l(this,_0x175a83(0x1a9),this[_0x175a83(0x1a6)][_0x175a83(0x3bd)]()),l(this,_0x175a83(0x17d)),l(this,'_socketMessageSubscription'),l(this,'_collaborationTimeoutTimer'),(this['_unitID']=_0x35df67,this[_0x175a83(0x30a)]=_0x11da7a,this[_0x175a83(0x225)]=_0x124e4b,this[_0x175a83(0x22b)]=_0xf8dccd,this['_configService']=_0x979b5a,this[_0x175a83(0x13d)]=_0x55c539,this[_0x175a83(0x2d9)]=_0x419cc0,this['_commentService']=_0x2989c9,_0x2e81ea['pipe'](_0x21a0e1(this['dispose$']))[_0x175a83(0x269)](_0x103085=>{const _0x36840b=_0x175a83;var _0x1ded2a;typeof _0x103085>'u'||(this[_0x36840b(0x17d)]=_0x103085,_0x103085?(this[_0x36840b(0x344)](_0x103085),this[_0x36840b(0x279)]=this[_0x36840b(0x17d)][_0x36840b(0x1e5)][_0x36840b(0x269)](_0x3f1df2=>{const _0x27d393=_0x36840b;_0x3f1df2[_0x27d393(0x386)]===this['_unitID']&&this[_0x27d393(0x203)](_0x3f1df2);})):(this[_0x36840b(0x228)][_0x36840b(0xe2)](0x2),(_0x1ded2a=this[_0x36840b(0x279)])==null||_0x1ded2a[_0x36840b(0xc6)](),this[_0x36840b(0x279)]=null));}),this[_0x175a83(0xe4)](this[_0x175a83(0x225)][_0x175a83(0x2da)](()=>{const _0x292ac9=_0x175a83;var _0xb0cf29;(_0xb0cf29=this['_socket'])==null||_0xb0cf29[_0x292ac9(0x2c4)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x292ac9(0x1ab)]}});})));}get['sessionStatus'](){const _0x485f83=_0x4d174b;return this[_0x485f83(0x228)][_0x485f83(0x257)]();}[_0x4d174b(0x33c)](){const _0x3b715e=_0x4d174b;var _0x429d9a,_0x2b9889;return(_0x2b9889=(_0x429d9a=this[_0x3b715e(0x17d)])==null?void 0x0:_0x429d9a[_0x3b715e(0x2dc)])!=null?_0x2b9889:null;}[_0x4d174b(0x15b)](){const _0x539aba=_0x4d174b;super[_0x539aba(0x15b)](),this[_0x539aba(0xdd)]['next'](),this['dispose$']['complete']();}[_0x4d174b(0x1ef)](){const _0x2be7c5=_0x4d174b;var _0x425e5b,_0x390cd8;(_0x425e5b=this['_socket'])==null||_0x425e5b[_0x2be7c5(0x2c4)]({'cmd':I['LEAVE'],'data':{'roomID':this['_unitID']}}),this[_0x2be7c5(0x1a6)]['complete'](),this[_0x2be7c5(0x228)][_0x2be7c5(0x25e)](),(_0x390cd8=this['_socket'])==null||_0x390cd8[_0x2be7c5(0x1ef)](),this[_0x2be7c5(0x15b)]();}[_0x4d174b(0x203)](_0x42454e){const _0x28a798=_0x4d174b;_0x42454e['cmd']===I[_0x28a798(0xdc)]?this[_0x28a798(0x1dd)](_0x42454e):_0x42454e[_0x28a798(0x36a)]===I[_0x28a798(0x364)]&&this[_0x28a798(0x376)](_0x42454e);}['_joinRoom'](_0x532766){const _0x541728=_0x4d174b;this['_sessionStatus$'][_0x541728(0xe2)](0x1),_0x532766[_0x541728(0x2c4)]({'cmd':I[_0x541728(0xdc)],'routeKey':this[_0x541728(0x1ab)],'routeType':'','data':{'rooms':[{'roomID':this[_0x541728(0x1ab)]}]}});}[_0x4d174b(0x1dd)](_0x4b28de){const _0x44b1a0=_0x4d174b;var _0x374462;if(_0x4b28de['code']===$t[_0x44b1a0(0x3aa)]){this[_0x44b1a0(0x22b)][_0x44b1a0(0x199)]({'type':_0x17d4c8['Warning'],'content':this[_0x44b1a0(0x13d)]['t']('session.room-full')}),this['_sessionStatus$'][_0x44b1a0(0xe2)](0x2);return;}this[_0x44b1a0(0x228)][_0x44b1a0(0xe2)](0x3);const _0x168f34=(_0x374462=_0x4b28de[_0x44b1a0(0x299)]['roomInfos'][this[_0x44b1a0(0x1ab)]])==null?void 0x0:_0x374462[_0x44b1a0(0x3dd)];_0x168f34&&_0x168f34[_0x44b1a0(0x1cb)](_0x55da04=>this['_memberService'][_0x44b1a0(0x3f2)](this[_0x44b1a0(0x1ab)],_0x55da04));}[_0x4d174b(0x376)](_0x3c19be){const _0x158cad=_0x4d174b;try{const _0x4df61a=_0x3c19be[_0x158cad(0x299)];switch(_0x4df61a[_0x158cad(0x10c)]){case _0x2c65dc['USERS_ENTER']:this[_0x158cad(0x345)](_0x4df61a),this[_0x158cad(0x1a6)][_0x158cad(0xe2)](_0x4df61a);break;case _0x2c65dc[_0x158cad(0x3f4)]:this[_0x158cad(0x224)](_0x4df61a),this[_0x158cad(0x1a6)][_0x158cad(0xe2)](_0x4df61a);break;case _0x2c65dc['CHANGESET_ACK']:this[_0x158cad(0x164)](),this['_event$'][_0x158cad(0xe2)](_0x4df61a);break;case _0x2c65dc[_0x158cad(0x212)]:this[_0x158cad(0x30a)][_0x158cad(0xba)](_0x158cad(0x3c5)+JSON[_0x158cad(0x296)](_0x4df61a)),this[_0x158cad(0x1a6)][_0x158cad(0xe2)](_0x4df61a);break;case _0x2c65dc[_0x158cad(0x3a1)]:this[_0x158cad(0xf9)][_0x158cad(0xc4)](_0x4df61a['data']),this['_event$'][_0x158cad(0xe2)](_0x4df61a);break;default:this[_0x158cad(0x1a6)][_0x158cad(0xe2)](_0x4df61a);}}catch(_0xfc3b3e){this[_0x158cad(0x30a)][_0x158cad(0xba)](_0xfc3b3e,_0x3c19be);}}[_0x4d174b(0x345)](_0x29285b){const _0x3a066f=_0x4d174b;this[_0x3a066f(0x2d9)][_0x3a066f(0x3f2)](this[_0x3a066f(0x1ab)],_0x29285b[_0x3a066f(0x299)]);}[_0x4d174b(0x224)](_0x26a7bd){const _0x559521=_0x4d174b;this[_0x559521(0x2d9)]['removeMember'](this[_0x559521(0x1ab)],_0x26a7bd['data'][_0x559521(0x2dc)]);}async[_0x4d174b(0x2c4)](_0x1c64bc,_0x20b073){const _0x564cc7=_0x4d174b;if(this[_0x564cc7(0x19f)]!==0x3||!this[_0x564cc7(0x17d)])throw new Error(_0x564cc7(0x32a));try{_0x1c64bc[_0x564cc7(0x10c)]===_0x2c65dc[_0x564cc7(0x3e5)]&&this[_0x564cc7(0x1f3)](),this[_0x564cc7(0x17d)][_0x564cc7(0x2c4)]({'cmd':I[_0x564cc7(0x167)],'routeKey':_0x20b073,'routeType':'','data':_0x1c64bc});}catch(_0x55fe34){this['_logService'][_0x564cc7(0xba)](_0x55fe34);}}[_0x4d174b(0x1f3)](){const _0x313c48=_0x4d174b;var _0x385045;this[_0x313c48(0x1fd)]=window[_0x313c48(0x1d8)](()=>{const _0x507cc1=_0x313c48;this[_0x507cc1(0x1fd)]=null,this['_messageService'][_0x507cc1(0x199)]({'type':_0x17d4c8[_0x507cc1(0x355)],'content':this['_localeService']['t']('session.collaboration-timeout')});},(_0x385045=this['_configService'][_0x313c48(0x1f0)](Ts))!=null?_0x385045:Rs);}[_0x4d174b(0x164)](){const _0x390275=_0x4d174b;this[_0x390275(0x1fd)]&&(clearTimeout(this[_0x390275(0x1fd)]),this[_0x390275(0x1fd)]=null);}};pt=ws([M(0x2,_0x50a504),M(0x3,_0x1799ae),M(0x4,_0x1e8990),M(0x5,_0x15fd76),M(0x6,_0x5b671c(_0x35ebff)),M(0x7,_0x5b671c(te)),M(0x8,_0x5b671c(Ps))],pt);let ge=class extends _0x3d777f{constructor(_0x74857d,_0x2795c3,_0x11a8f4,_0x19e23e,_0x5562d0,_0xf43155){const _0x47cebd=_0x4d174b;super(),l(this,'_socket$',new _0x16da12(void 0x0)),l(this,'_sessions',new Map()),l(this,'_status$',new _0x16da12(0x0)),l(this,_0x47cebd(0x2d8),this[_0x47cebd(0x259)][_0x47cebd(0x3bd)]()),l(this,'_socketReady',!0x1),l(this,_0x47cebd(0x1f7)),l(this,'_timeoutTimer'),l(this,_0x47cebd(0x2e6)),l(this,_0x47cebd(0x26d),0x0),(this[_0x47cebd(0x36e)]=_0x74857d,this[_0x47cebd(0x13d)]=_0x2795c3,this[_0x47cebd(0x22b)]=_0x11a8f4,this['_logService']=_0x19e23e,this[_0x47cebd(0x229)]=_0x5562d0,this[_0x47cebd(0x2ca)]=_0xf43155);}get[_0x4d174b(0x17d)](){const _0x360763=_0x4d174b;return this['_socket$'][_0x360763(0x257)]();}['dispose'](){const _0x1df9cf=_0x4d174b;super[_0x1df9cf(0x15b)](),this[_0x1df9cf(0x2a7)][_0x1df9cf(0x1cb)](_0x5f33d7=>_0x5f33d7['dispose']()),this[_0x1df9cf(0x2a7)][_0x1df9cf(0x295)](),this[_0x1df9cf(0x259)]['complete']();}async[_0x4d174b(0x2eb)](_0x30125c){const _0x510fe2=_0x4d174b;if(this[_0x510fe2(0x2a7)]['has'](_0x30125c))return this[_0x510fe2(0x2a7)][_0x510fe2(0x135)](_0x30125c);this['_tryEnsureSocket']();const _0x4f4965=this[_0x510fe2(0x36e)][_0x510fe2(0x3d3)](pt,_0x30125c,this[_0x510fe2(0x39b)][_0x510fe2(0x3bd)]());return this[_0x510fe2(0x2a7)][_0x510fe2(0x34a)](_0x30125c,_0x4f4965),_0x4f4965;}[_0x4d174b(0x305)](_0x3f757f){const _0x38a3b5=_0x4d174b;var _0x2d6ab4;const _0x89e1c3=this[_0x38a3b5(0x2a7)][_0x38a3b5(0x135)](_0x3f757f);_0x89e1c3&&(this[_0x38a3b5(0x2a7)][_0x38a3b5(0x3e4)](_0x3f757f),_0x89e1c3['close']()),this[_0x38a3b5(0x2a7)][_0x38a3b5(0x262)]||(_0x2d6ab4=this[_0x38a3b5(0x17d)])==null||_0x2d6ab4[_0x38a3b5(0x1ef)]();}[_0x4d174b(0x32d)](){const _0x923d36=_0x4d174b;var _0x38d8a0;const _0x15d8d2=(_0x38d8a0=this['_configService']['getConfig'](nn))!=null?_0x38d8a0:rn;return this[_0x923d36(0x2ca)][_0x923d36(0x3b0)](_0x15d8d2);}[_0x4d174b(0x1e1)](){const _0xa35cc0=_0x4d174b;try{const _0x183fcf=this[_0xa35cc0(0x32d)]();if(_0x183fcf){const _0x50a938=_0x183fcf['send'];_0x183fcf['send']=_0x28b939=>(this[_0xa35cc0(0x322)](),_0x50a938[_0xa35cc0(0xfb)](_0x183fcf,[_0x28b939])),_0x183fcf[_0xa35cc0(0x1e5)][_0xa35cc0(0x269)](_0x1528f7=>this[_0xa35cc0(0x3de)](_0x183fcf,_0x1528f7)),_0x183fcf[_0xa35cc0(0xf4)][_0xa35cc0(0xbe)](_0x15818d(0x1))[_0xa35cc0(0x269)](_0x2a24a=>this[_0xa35cc0(0x30a)][_0xa35cc0(0xba)]('[CollaborationSessionService]:\x20socket\x20error',_0x2a24a)),_0x183fcf[_0xa35cc0(0x30c)][_0xa35cc0(0xbe)](_0x15818d(0x1))[_0xa35cc0(0x269)](()=>{const _0x566e8d=_0xa35cc0;this[_0x566e8d(0x324)](_0x183fcf);}),_0x183fcf[_0xa35cc0(0x25c)]['pipe'](_0x15818d(0x1))['subscribe'](_0x295482=>{const _0x25cfcd=_0xa35cc0;this[_0x25cfcd(0x30a)][_0x25cfcd(0x24d)]('[CollaborationSessionService]',_0x25cfcd(0xd1),_0x295482),this['_onConnectionFailed']();});}}catch(_0x3374c1){this[_0xa35cc0(0x30a)][_0xa35cc0(0xba)](_0x3374c1),this[_0xa35cc0(0x31e)]();}}[_0x4d174b(0x324)](_0x14d7e1){const _0x40f610=_0x4d174b;this[_0x40f610(0x30a)][_0x40f610(0x24d)](_0x40f610(0x2fc),_0x40f610(0x337)),_0x14d7e1[_0x40f610(0x2c4)]({'cmd':I['HELLO']}),this[_0x40f610(0x322)]();}[_0x4d174b(0x31e)](){const _0x1e9a37=_0x4d174b;var _0x105f05;this[_0x1e9a37(0x259)][_0x1e9a37(0xe2)](0x2),this['_socket$']['next'](null),this[_0x1e9a37(0x267)](),this[_0x1e9a37(0x121)](),this[_0x1e9a37(0x325)]=!0x1,this[_0x1e9a37(0x26d)]<((_0x105f05=this[_0x1e9a37(0x229)]['getConfig'](ln))!=null?_0x105f05:_n)?(this[_0x1e9a37(0x14a)](this[_0x1e9a37(0x26d)]),this[_0x1e9a37(0x26d)]+=0x1):this[_0x1e9a37(0x22b)]['show']({'type':_0x17d4c8['Error'],'content':this[_0x1e9a37(0x13d)]['t'](_0x1e9a37(0x331))});}[_0x4d174b(0x14a)](_0x50d9f0){const _0x47c95d=_0x4d174b;var _0x4ddb4d;const _0x3cf421=((_0x4ddb4d=this[_0x47c95d(0x229)]['getConfig'](cn))!=null?_0x4ddb4d:hn)*0x2**_0x50d9f0;this[_0x47c95d(0x22b)][_0x47c95d(0x199)]({'type':_0x17d4c8[_0x47c95d(0x14e)],'content':this[_0x47c95d(0x13d)]['t'](_0x47c95d(0x137))}),this[_0x47c95d(0x2e6)]=setTimeout(()=>{const _0x2c9e04=_0x47c95d;this[_0x2c9e04(0x1e1)](),clearTimeout(this[_0x2c9e04(0x2e6)]),this[_0x2c9e04(0x2e6)]=null;},_0x3cf421);}[_0x4d174b(0x322)](){const _0x51f18a=_0x4d174b;var _0x5de40f;this[_0x51f18a(0x121)](),this[_0x51f18a(0x1f7)]=setTimeout(()=>this[_0x51f18a(0x326)](),(_0x5de40f=this[_0x51f18a(0x229)]['getConfig'](on))!=null?_0x5de40f:an);}['_sendHeartbeat'](){const _0x2281a5=_0x4d174b;this['_socket'][_0x2281a5(0x2c4)]({'cmd':I[_0x2281a5(0x389)]}),this[_0x2281a5(0x363)]();}[_0x4d174b(0x363)](){const _0x250a72=_0x4d174b;var _0x89e0f8;this[_0x250a72(0x238)]=setTimeout(()=>this[_0x250a72(0x31e)](),(_0x89e0f8=this['_configService'][_0x250a72(0x1f0)](Ts))!=null?_0x89e0f8:Rs);}['_onMessage'](_0x4d1294,_0x2484c9){const _0x3c7248=_0x4d174b,{cmd:_0x25a2a3}=_0x2484c9;_0x25a2a3===I[_0x3c7248(0x3d2)]&&!this['_socketReady']&&(_0x4d1294[_0x3c7248(0x2dc)]=_0x2484c9[_0x3c7248(0x299)]['memberID'],this[_0x3c7248(0x39b)][_0x3c7248(0xe2)](_0x4d1294),this['_status$'][_0x3c7248(0xe2)](0x3),this['_socketReady']=!0x0),_0x25a2a3===I['HEARTBEAT']&&this[_0x3c7248(0x267)](),this[_0x3c7248(0x322)]();}[_0x4d174b(0x121)](){const _0x358e45=_0x4d174b;this[_0x358e45(0x1f7)]!=null&&(clearTimeout(this[_0x358e45(0x1f7)]),this[_0x358e45(0x1f7)]=null);}[_0x4d174b(0x267)](){const _0x9fd372=_0x4d174b;this[_0x9fd372(0x238)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x9fd372(0x238)]=null);}};ge=ws([M(0x0,_0x5b671c(_0x49e10e)),M(0x1,_0x5b671c(_0x35ebff)),M(0x2,_0x1e8990),M(0x3,_0x50a504),M(0x4,_0x15fd76),M(0x5,Ds)],ge);var Nn=Object['defineProperty'],Mn=Object[_0x4d174b(0x13f)],An=(_0x402665,_0x485fed,_0x2d5349,_0x4bcb17)=>{const _0x3b5b82=_0x4d174b;for(var _0x58c876=_0x4bcb17>0x1?void 0x0:_0x4bcb17?Mn(_0x485fed,_0x2d5349):_0x485fed,_0x53b45f=_0x402665[_0x3b5b82(0x2e1)]-0x1,_0x1cde2f;_0x53b45f>=0x0;_0x53b45f--)(_0x1cde2f=_0x402665[_0x53b45f])&&(_0x58c876=(_0x4bcb17?_0x1cde2f(_0x485fed,_0x2d5349,_0x58c876):_0x1cde2f(_0x58c876))||_0x58c876);return _0x4bcb17&&_0x58c876&&Nn(_0x485fed,_0x2d5349,_0x58c876),_0x58c876;},Ce=(_0x53aa70,_0x47d7a1)=>(_0x44bf9a,_0xdb6a2b)=>_0x47d7a1(_0x44bf9a,_0xdb6a2b,_0x53aa70);let O=class extends _0x3d777f{constructor(_0x202f46,_0x127acf,_0x24f30c,_0x31bc95,_0x26af17){const _0x369d52=_0x4d174b;super(),l(this,'_cachedData',new Map()),l(this,_0x369d52(0x3ee),new Map()),l(this,_0x369d52(0x34d),!0x1),(this[_0x369d52(0x229)]=_0x202f46,this[_0x369d52(0x17f)]=_0x127acf,this['_beforeCloseService']=_0x24f30c,this['_localeService']=_0x31bc95,this['_revisionService']=_0x26af17,this[_0x369d52(0x2ae)]());}[_0x4d174b(0x11c)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x4d42fb=_0x4d174b;this[_0x4d42fb(0x34d)]=!0x1;}[_0x4d174b(0x15b)](){const _0x338f20=_0x4d174b;this[_0x338f20(0x1d6)]()[_0x338f20(0x346)](()=>super[_0x338f20(0x15b)]());}async[_0x4d174b(0x2f9)](_0x572a08){const _0x2454ea=_0x4d174b;return this[_0x2454ea(0x34d)]?null:this[_0x2454ea(0x17f)]['getItem'](zt(_0x572a08));}async['saveOfflineData'](_0x4a093c,_0x3d8a46){const _0x519c8d=_0x4d174b;return!!this[_0x519c8d(0x17f)][_0x519c8d(0x3a6)](_0x4a093c,_0x3d8a46);}[_0x4d174b(0x25d)](_0x2e86f3,_0x4340f0,_0x47b4a5,_0x4f10af){const _0xd09bdf=_0x4d174b,_0x30ef61=this[_0xd09bdf(0x197)]['getCurrentRevForDocument'](_0x2e86f3);this['_cachedData'][_0xd09bdf(0x34a)](_0x2e86f3,{'unitID':_0x2e86f3,'type':_0x4340f0,'awaitingChangeset':_0x47b4a5,'mutations':_0x4f10af,'rev':_0x30ef61}),this[_0xd09bdf(0x3ee)][_0xd09bdf(0x37c)](_0x2e86f3)||this[_0xd09bdf(0xfa)](_0x2e86f3);}[_0x4d174b(0xfa)](_0x3d5f0d){const _0x548d35=_0x4d174b,_0x5ef522=this['_getSaveTimeout']();_0x5ef522===0x0?this[_0x548d35(0x1be)](_0x3d5f0d):this[_0x548d35(0x3ee)][_0x548d35(0x34a)](_0x3d5f0d,setTimeout(()=>this[_0x548d35(0x1be)](_0x3d5f0d),_0x5ef522));}[_0x4d174b(0x1e0)](){const _0x226206=_0x4d174b;var _0x5ec1e2;return(_0x5ec1e2=this[_0x226206(0x229)]['getConfig'](un))!=null?_0x5ec1e2:dn;}[_0x4d174b(0x1be)](_0x4ac7d4){const _0xaecec6=_0x4d174b,_0x73e08e=this[_0xaecec6(0x3ee)][_0xaecec6(0x135)](_0x4ac7d4);return _0x73e08e!==void 0x0&&window[_0xaecec6(0x175)](_0x73e08e),this[_0xaecec6(0x17f)][_0xaecec6(0x3a6)](zt(_0x4ac7d4),this[_0xaecec6(0x146)]['get'](_0x4ac7d4))['then'](()=>this[_0xaecec6(0x3ee)]['delete'](_0x4ac7d4));}async['exhaustSavingTask'](){const _0x479f0c=_0x4d174b,_0x1e38a7=[];this[_0x479f0c(0x3ee)][_0x479f0c(0x1cb)]((_0x5b864e,_0x185ccd)=>{const _0x42b3a6=_0x479f0c;window[_0x42b3a6(0x175)](_0x5b864e),_0x1e38a7[_0x42b3a6(0x328)](this[_0x42b3a6(0x1be)](_0x185ccd)[_0x42b3a6(0x346)](()=>{const _0x34212a=_0x42b3a6;this['_saveTaskMap'][_0x34212a(0x3e4)](_0x185ccd);}));}),await Promise[_0x479f0c(0x2e8)](_0x1e38a7);}['_setupBeforeClosingHandler'](){const _0x1cdfa6=_0x4d174b;this[_0x1cdfa6(0xe4)](this[_0x1cdfa6(0x225)][_0x1cdfa6(0x1ba)](()=>{const _0x26dac0=_0x1cdfa6;if(this[_0x26dac0(0x3ee)]['size'])return this[_0x26dac0(0x13d)]['t'](_0x26dac0(0xe9));}));}};O=An([Ce(0x0,_0x15fd76),Ce(0x1,_0x195f5f),Ce(0x2,_0x1799ae),Ce(0x3,_0x5b671c(_0x35ebff)),Ce(0x4,_0x5b671c(_0x5d7349))],O);function zt(_0x153465){const _0x3ec3c2=_0x4d174b;return _0x3ec3c2(0x323)+_0x153465;}const et=_0x20ae42(_0x4d174b(0x1f6));var Ns=(_0x5cddf6=>(_0x5cddf6[_0x5cddf6[_0x4d174b(0x2f0)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x5cddf6[_0x5cddf6[_0x4d174b(0x34f)]=0x1]='OTHER_CLIENTS_EDITING',_0x5cddf6))(Ns||{});const Zt=0x7530,Qt=_0x4d174b(0xd8);class yn extends _0x3d777f{constructor(){const _0x271b02=_0x4d174b;super(),l(this,'_id',_0x1053dd[_0x271b02(0x31d)]()),l(this,_0x271b02(0x188),new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x271b02(0x30e),null),l(this,'_clearOtherTimers',new Map()),l(this,_0x271b02(0x2a3),new Map()),this[_0x271b02(0x2a6)]();}[_0x4d174b(0x15b)](){const _0xd7ec4a=_0x4d174b;super[_0xd7ec4a(0x15b)](),this[_0xd7ec4a(0x3d4)][_0xd7ec4a(0x1cb)]((_0x42e30a,_0x4ef13f)=>this[_0xd7ec4a(0x13e)](_0x4ef13f)),this[_0xd7ec4a(0x30e)]&&window[_0xd7ec4a(0x254)](this[_0xd7ec4a(0x30e)]);}['getUnitStatus$'](_0x59f66b){const _0x607829=_0x4d174b;return this[_0x607829(0x317)](_0x59f66b)[_0x607829(0xbe)](_0x44a041());}[_0x4d174b(0x2be)](_0x4b3896){const _0x135a1b=_0x4d174b;this[_0x135a1b(0x188)][_0x135a1b(0x262)]===0x0&&this[_0x135a1b(0x263)](),this[_0x135a1b(0x188)]['add'](_0x4b3896),this['_send']({'type':0x0,'memberID':this[_0x135a1b(0x379)],'unitIDs':[_0x4b3896],'isForwarded':!0x1});}['disposeUnit'](_0x4a3c63){const _0x5e8928=_0x4d174b;this[_0x5e8928(0x188)][_0x5e8928(0x3e4)](_0x4a3c63),this['_selfUnitIDs']['size']===0x0&&this[_0x5e8928(0x30e)]&&window[_0x5e8928(0x254)](this[_0x5e8928(0x30e)]);}[_0x4d174b(0x2a6)](){const _0x3056cb=_0x4d174b;this['disposeWithMe'](_0x521fe6(_0x2a799c(window,_0x3056cb(0xf5))[_0x3056cb(0x269)](_0x2adf85=>{const _0x2bd001=_0x3056cb;if(_0x2adf85[_0x2bd001(0x1d7)]!==Qt||!_0x2adf85[_0x2bd001(0x179)])return;const _0x56a0e8=JSON[_0x2bd001(0x2bb)](_0x2adf85[_0x2bd001(0x179)]);this[_0x2bd001(0x358)](_0x56a0e8);}))),window[_0x3056cb(0x183)]('unload',()=>this[_0x3056cb(0x1f5)]({'type':0x1,'memberID':this[_0x3056cb(0x379)],'unitIDs':Array['from'](this[_0x3056cb(0x188)])}));}[_0x4d174b(0x358)](_0x1489af){const _0x2c6fc7=_0x4d174b;switch(_0x1489af[_0x2c6fc7(0x13a)]){case 0x0:this[_0x2c6fc7(0x22f)](_0x1489af);break;case 0x1:this[_0x2c6fc7(0x29c)](_0x1489af);break;case 0x2:this[_0x2c6fc7(0x309)](_0x1489af);break;}}[_0x4d174b(0x22f)](_0x523739){const _0x37d3df=_0x4d174b,{unitIDs:_0x2e1e6b,memberID:_0x51ba12,isForwarded:_0x53013a}=_0x523739;_0x2e1e6b['forEach'](_0x8224da=>{const _0x520166=_0x2798;if(!_0x53013a&&this['_unitOnClients'][_0x520166(0x37c)](_0x8224da)&&this['_ensureSubject'](_0x8224da)[_0x520166(0xe2)](0x1),!this[_0x520166(0x2aa)][_0x520166(0x37c)](_0x8224da)||!this['_unitOnClients'][_0x520166(0x135)](_0x8224da)['has'](_0x51ba12)){const _0x58ec33=this[_0x520166(0x2aa)][_0x520166(0x135)](_0x8224da)||new Set();_0x58ec33['add'](_0x51ba12),this[_0x520166(0x2aa)]['set'](_0x8224da,_0x58ec33),this['_scheduleClearOtherTimer'](_0x51ba12);}}),_0x53013a||this[_0x37d3df(0x1f5)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x4d174b(0xee)](_0x43e2e0){const _0xf398d2=_0x4d174b;this['_removeClearOtherTimer'](_0x43e2e0);const _0x988d93=window[_0xf398d2(0x1d8)](()=>{const _0x1410cf=_0xf398d2;this['_unitOnClients'][_0x1410cf(0x1cb)](_0x45474c=>{const _0x27c725=_0x1410cf;_0x45474c[_0x27c725(0x3e4)](_0x43e2e0);});},Zt*0x2);this[_0xf398d2(0x3d4)][_0xf398d2(0x34a)](_0x43e2e0,_0x988d93);}[_0x4d174b(0x13e)](_0x3ddc13){const _0x383a4d=_0x4d174b;if(this[_0x383a4d(0x3d4)][_0x383a4d(0x37c)](_0x3ddc13)){const _0x4ded6e=this[_0x383a4d(0x3d4)][_0x383a4d(0x135)](_0x3ddc13);_0x4ded6e&&window[_0x383a4d(0x175)](_0x4ded6e),this[_0x383a4d(0x3d4)][_0x383a4d(0x34a)](_0x3ddc13,null);}}['_handleLeaveEvent'](_0x31f23b){const _0x46457d=_0x4d174b,{memberID:_0x285718,unitIDs:_0x4690ad}=_0x31f23b;_0x4690ad[_0x46457d(0x1cb)](_0x4f7838=>{const _0x1a9070=_0x46457d;var _0x50ec2b;const _0x17b123=this[_0x1a9070(0x2aa)][_0x1a9070(0x135)](_0x4f7838);_0x17b123&&(_0x17b123[_0x1a9070(0x3e4)](_0x285718),(_0x50ec2b=this[_0x1a9070(0x317)](_0x4f7838))==null||_0x50ec2b[_0x1a9070(0xe2)](_0x17b123[_0x1a9070(0x262)]===0x0?0x0:0x1));}),this[_0x46457d(0x13e)](_0x285718);}[_0x4d174b(0x309)](_0x309d26){const _0x39776e=_0x4d174b;this[_0x39776e(0xee)](_0x309d26['memberID']);}[_0x4d174b(0x1f5)](_0x2de315){const _0x5ba895=_0x4d174b;localStorage[_0x5ba895(0x3a6)](Qt,JSON['stringify'](_0x2de315));}[_0x4d174b(0x263)](){const _0x16981b=_0x4d174b;this[_0x16981b(0x30e)]=window[_0x16981b(0xd4)](()=>{const _0x21d07c=_0x16981b;this[_0x21d07c(0x1f5)]({'type':0x2,'memberID':this[_0x21d07c(0x379)]});},Zt);}[_0x4d174b(0x317)](_0x5c7b58){const _0x5011f3=_0x4d174b;return this[_0x5011f3(0x2a3)]['has'](_0x5c7b58)||this[_0x5011f3(0x2a3)][_0x5011f3(0x34a)](_0x5c7b58,new _0x16da12(0x0)),this[_0x5011f3(0x2a3)][_0x5011f3(0x135)](_0x5c7b58);}}var Un=Object[_0x4d174b(0x1e3)],Ln=Object[_0x4d174b(0x13f)],$n=(_0x34314a,_0x1b0cf9,_0x14d78f,_0x122bb8)=>{const _0x4b9496=_0x4d174b;for(var _0x704294=_0x122bb8>0x1?void 0x0:_0x122bb8?Ln(_0x1b0cf9,_0x14d78f):_0x1b0cf9,_0x1dfbb8=_0x34314a[_0x4b9496(0x2e1)]-0x1,_0x32d554;_0x1dfbb8>=0x0;_0x1dfbb8--)(_0x32d554=_0x34314a[_0x1dfbb8])&&(_0x704294=(_0x122bb8?_0x32d554(_0x1b0cf9,_0x14d78f,_0x704294):_0x32d554(_0x704294))||_0x704294);return _0x122bb8&&_0x704294&&Un(_0x1b0cf9,_0x14d78f,_0x704294),_0x704294;},es=(_0x5d1b7a,_0x537f80)=>(_0x5c8e46,_0x12edaa)=>_0x537f80(_0x5c8e46,_0x12edaa,_0x5d1b7a);let Xe=class{constructor(_0x20d63f,_0x503673){const _0x460620=_0x4d174b;this[_0x460620(0x36e)]=_0x20d63f,this[_0x460620(0x3ca)]=_0x503673;}[_0x4d174b(0x18e)](_0x17d19b){const _0x536f3d=_0x4d174b;this[_0x536f3d(0x169)](_0x17d19b),this['_transformPreviousActiveRange'](_0x17d19b);}[_0x4d174b(0x1c7)](_0x54c03d){const _0x59d2b5=_0x4d174b,_0x68164b=this['_injector'][_0x59d2b5(0x135)](_0x34bf2b),{redoCache:_0x1cac8e}=_0x68164b[_0x59d2b5(0x1cf)]();if(_0x1cac8e[_0x59d2b5(0x2e1)]===0x0)return _0x54c03d;let _0x4a551b=_0x1053dd['deepClone'](_0x54c03d['mutations'][0x0]);for(let _0x2065e3=0x0;_0x2065e3<_0x1cac8e[_0x59d2b5(0x2e1)];_0x2065e3++){const _0x985b2f={'id':_0x59d2b5(0x108),'params':{..._0x1cac8e[_0x2065e3]}},_0x282b1f=this[_0x59d2b5(0x3ca)]['transformMutation'](_0x4a551b,_0x985b2f,!0x1);if(_0x8ecfd4(_0x282b1f))throw _0x282b1f[_0x59d2b5(0xba)];_0x4a551b=_0x282b1f['m1Prime'];}return{..._0x1053dd['deepClone'](_0x54c03d),'mutations':[_0x4a551b]};}[_0x4d174b(0x169)](_0x533368){const _0x44cd94=_0x4d174b,_0x32374c=this[_0x44cd94(0x36e)]['get'](_0x34bf2b),{undoCache:_0x19c0c1,redoCache:_0x54bf89}=_0x32374c['getUndoRedoMutationParamsCache']();if(_0x19c0c1[_0x44cd94(0x2e1)]===0x0||_0x54bf89[_0x44cd94(0x2e1)]===0x0)return;const _0x151cc1=[],_0x320640=[];let _0x91d96a=_0x1053dd[_0x44cd94(0xdb)](_0x533368[_0x44cd94(0x185)][0x0]),_0x562112=_0x1053dd[_0x44cd94(0xdb)](_0x533368[_0x44cd94(0x185)][0x0]);for(let _0x571319=_0x19c0c1[_0x44cd94(0x2e1)]-0x1;_0x571319>=0x0;_0x571319--){const _0x4c677c={'id':_0x44cd94(0x108),'params':{..._0x19c0c1[_0x571319]}},_0xcd297e={'id':_0x44cd94(0x108),'params':{..._0x54bf89[_0x571319]}},_0xe0fffa=this[_0x44cd94(0x3ca)][_0x44cd94(0x18c)](_0x91d96a,_0x4c677c,!0x1),_0x159d5b=this['_transformService'][_0x44cd94(0x18c)](_0x562112,_0xcd297e,!0x1);if(_0x8ecfd4(_0xe0fffa))throw _0xe0fffa['error'];if(_0x8ecfd4(_0x159d5b))throw _0x159d5b[_0x44cd94(0xba)];_0x151cc1[_0x44cd94(0x1da)](_0xe0fffa[_0x44cd94(0x160)][_0x44cd94(0x29f)]),_0x320640[_0x44cd94(0x1da)](_0x159d5b[_0x44cd94(0x160)][_0x44cd94(0x29f)]),_0x91d96a=_0xe0fffa[_0x44cd94(0x1db)],_0x562112=_0x159d5b[_0x44cd94(0x1db)];}_0x32374c[_0x44cd94(0x3ac)]({'undoCache':_0x151cc1,'redoCache':_0x320640});}[_0x4d174b(0x3cb)](_0x36f174){const _0x49c0ad=_0x4d174b,_0x29d09d=this[_0x49c0ad(0x36e)]['get'](_0x34bf2b),_0x1464f9=_0x29d09d[_0x49c0ad(0x3bb)]();if(_0x1464f9==null)return;const _0x56c95e=[{'id':_0x49c0ad(0x108),'params':{'unitId':_0x36f174[_0x49c0ad(0x1e2)],'actions':null,'textRanges':[_0x1464f9]}}],_0x283d26=this['_transformService'][_0x49c0ad(0x147)](_0x36f174,_0x56c95e);if(!_0x7aa6dd(_0x283d26))throw _0x283d26['error'];const _0xa622e8=_0x283d26[_0x49c0ad(0x160)][0x0][_0x49c0ad(0x29f)][_0x49c0ad(0x277)];Array['isArray'](_0xa622e8)&&_0xa622e8[_0x49c0ad(0x2e1)]&&_0x29d09d[_0x49c0ad(0x181)](_0xa622e8[0x0]);}};Xe=$n([es(0x0,_0x5b671c(_0x49e10e)),es(0x1,_0x174d0f)],Xe);var jn=Object[_0x4d174b(0x1e3)],xn=Object[_0x4d174b(0x13f)],Hn=(_0x10b896,_0x36d683,_0x3a7575,_0xe852b0)=>{const _0x2c1cab=_0x4d174b;for(var _0x14d4be=_0xe852b0>0x1?void 0x0:_0xe852b0?xn(_0x36d683,_0x3a7575):_0x36d683,_0x521ffb=_0x10b896[_0x2c1cab(0x2e1)]-0x1,_0x457d30;_0x521ffb>=0x0;_0x521ffb--)(_0x457d30=_0x10b896[_0x521ffb])&&(_0x14d4be=(_0xe852b0?_0x457d30(_0x36d683,_0x3a7575,_0x14d4be):_0x457d30(_0x14d4be))||_0x14d4be);return _0xe852b0&&_0x14d4be&&jn(_0x36d683,_0x3a7575,_0x14d4be),_0x14d4be;},ts=(_0x12daa4,_0x3a62f1)=>(_0x17cbc3,_0x4276ee)=>_0x3a62f1(_0x17cbc3,_0x4276ee,_0x12daa4);let Je=class{constructor(_0x15bb2a,_0x5d98f6){const _0x1819b2=_0x4d174b;this[_0x1819b2(0x36e)]=_0x15bb2a,this['_transformService']=_0x5d98f6;}[_0x4d174b(0x107)](_0x4ea180){const _0x549311=_0x4d174b;var _0xc319a9;const _0x123631=this[_0x549311(0x36e)][_0x549311(0x135)](_0x2684a6),_0x220143=(_0xc319a9=_0x123631[_0x549311(0x2ef)]())!=null?_0xc319a9:[],_0xae168c=_0x220143==null?void 0x0:_0x220143[_0x549311(0x288)](_0x1c3c28);if(_0xae168c[_0x549311(0x2e1)]===0x0)return;const _0x4d0e2a=[{'id':_0x549311(0x108),'params':{'unitId':_0x4ea180[_0x549311(0x1e2)],'actions':null,'textRanges':_0xae168c}}],_0x38ce34=this[_0x549311(0x3ca)][_0x549311(0x147)](_0x4ea180,_0x4d0e2a);if(!_0x7aa6dd(_0x38ce34))throw _0x38ce34['error'];const _0x4e9172=_0x38ce34[_0x549311(0x160)][0x0]['params'][_0x549311(0x277)];Array['isArray'](_0x4e9172)&&_0x4e9172[_0x549311(0x2e1)]&&_0x123631['replaceTextRanges'](_0x4e9172,!0x1);}};Je=Hn([ts(0x0,_0x5b671c(_0x49e10e)),ts(0x1,_0x174d0f)],Je);function Ms(_0x506c8f){let _0xb041e4='';for(const _0xbfdbd4 of _0x506c8f){const {startOffset:_0x1f7e8f,endOffset:_0xfd5431,isActive:_0x136f7f}=_0xbfdbd4;_0xb041e4['length']&&(_0xb041e4+=','),_0xb041e4+=_0x1f7e8f+':'+_0xfd5431+':'+(_0x136f7f?'1':'0');}return _0xb041e4;}function kn(_0x272659){const _0x460051=_0x4d174b,_0x7b8407=_0x272659[_0x460051(0x1c1)](','),_0x15d6bc=[];for(const _0x5261df of _0x7b8407){const [_0x3c5b96,_0x4c8251,_0x4dfe96]=_0x5261df[_0x460051(0x1c1)](':');_0x15d6bc['push']({'startOffset':Number(_0x3c5b96),'endOffset':Number(_0x4c8251),'collapsed':_0x3c5b96===_0x4c8251,'isActive':_0x4dfe96==='1'});}return _0x15d6bc[_0x460051(0x27e)](_0x164bcd=>_0x164bcd[_0x460051(0x209)])||(_0x15d6bc[0x0][_0x460051(0x209)]=!0x0),_0x15d6bc;}class jt extends _0x52c754{constructor(){const _0x421ce8=_0x4d174b;super(...arguments),l(this,_0x421ce8(0x287),new _0x16da12(null)),l(this,_0x421ce8(0x31b),this[_0x421ce8(0x287)][_0x421ce8(0x3bd)]());}[_0x4d174b(0x1a3)](_0x3a5ff8){const {unitID:_0x5d7e15,memberID:_0x1fe10a,textRanges:_0x402a5e}=_0x3a5ff8,_0x303109=Ms(_0x402a5e),_0x39af92={'unitID':_0x5d7e15,'memberID':_0x1fe10a,'selection':_0x303109};this['_collabCursorState$']['next'](_0x39af92);}}var Fn=Object[_0x4d174b(0x1e3)],Vn=Object[_0x4d174b(0x13f)],Bn=(_0x21a44e,_0x3f24e8,_0x11bff2,_0x25e8fb)=>{for(var _0x51fd04=_0x25e8fb>0x1?void 0x0:_0x25e8fb?Vn(_0x3f24e8,_0x11bff2):_0x3f24e8,_0x2ae3f2=_0x21a44e['length']-0x1,_0x1a2feb;_0x2ae3f2>=0x0;_0x2ae3f2--)(_0x1a2feb=_0x21a44e[_0x2ae3f2])&&(_0x51fd04=(_0x25e8fb?_0x1a2feb(_0x3f24e8,_0x11bff2,_0x51fd04):_0x1a2feb(_0x51fd04))||_0x51fd04);return _0x25e8fb&&_0x51fd04&&Fn(_0x3f24e8,_0x11bff2,_0x51fd04),_0x51fd04;},ss=(_0x406814,_0x404676)=>(_0x5ee0f6,_0x34400a)=>_0x404676(_0x5ee0f6,_0x34400a,_0x406814);function Wn(_0x316422){const _0x19a0d0=_0x4d174b,{unitID:_0x2083d8,mutations:_0xea64d5}=_0x316422;return{'unitId':_0x2083d8,'subUnitId':_0xea64d5[0x0]['params'][_0x19a0d0(0x373)]};}let qe=class{constructor(_0x5b430a,_0x307395){const _0x33f47d=_0x4d174b;this['_injector']=_0x5b430a,this[_0x33f47d(0x3ca)]=_0x307395;}[_0x4d174b(0x107)](_0x4a565e){const _0x4cb34f=_0x4d174b;var _0x1a86ed,_0x5ab3d0,_0x369339;const _0x46ae4c=this[_0x4cb34f(0x36e)]['get'](_0x298766),{unitId:_0xc9006e,subUnitId:_0x1c963a}=Wn(_0x4a565e),_0x2d2150=_0x46ae4c[_0x4cb34f(0x2d6)](_0xc9006e)[_0x4cb34f(0x2ef)]();if(_0x2d2150[_0x4cb34f(0x2e1)]===0x0||!_0xc9006e||!_0x1c963a)return;const _0x2fbbad=[{'id':_0x32ba42['id'],'params':{'unitId':_0xc9006e,'subUnitId':_0x1c963a,'selections':_0x1053dd[_0x4cb34f(0xdb)](_0x2d2150)}}],_0x103508=this['_transformService'][_0x4cb34f(0x147)](_0x4a565e,_0x2fbbad);if(!_0x7aa6dd(_0x103508))throw _0x103508[_0x4cb34f(0xba)];const _0x42295b=(_0x369339=(_0x5ab3d0=(_0x1a86ed=_0x103508[_0x4cb34f(0x160)][0x0])==null?void 0x0:_0x1a86ed['params'])==null?void 0x0:_0x5ab3d0[_0x4cb34f(0x3b5)])!=null?_0x369339:_0x2d2150;Array['isArray'](_0x42295b)&&_0x42295b[_0x4cb34f(0x2e1)]&&this[_0x4cb34f(0x36e)][_0x4cb34f(0x135)](_0x5bc562)[_0x4cb34f(0x365)](_0x32ba42['id'],{'unitId':_0xc9006e,'subUnitId':_0x1c963a,'selections':_0x42295b});}};qe=Bn([ss(0x0,_0x5b671c(_0x49e10e)),ss(0x1,_0x174d0f)],qe);const Gn=new Set([_0x3b1722['id']]);function is(_0x5cca24,_0x588961,_0x5675f2,_0x5542b6,_0xfc8d22){const _0xedc44d=_0x4d174b;var _0x49d6f6,_0x3b2acc,_0xbe88a2,_0x4afbfd;const _0x1dc6e6=[];for(const _0x5ea2de of _0x5cca24)if(Gn[_0xedc44d(0x37c)](_0x5ea2de['id'])){if(_0x1dc6e6['length']>0x0)break;_0x1dc6e6['push'](_0x5ea2de);break;}else _0x1dc6e6[_0xedc44d(0x328)](_0x5ea2de);const _0x56801f=(_0x3b2acc=(_0x49d6f6=_0xfc8d22['getCurrentUser']())==null?void 0x0:_0x49d6f6[_0xedc44d(0x251)])!=null?_0x3b2acc:'unknown',_0x4642d0=(_0x4afbfd=(_0xbe88a2=_0xfc8d22[_0xedc44d(0x13b)]())==null?void 0x0:_0xbe88a2[_0xedc44d(0x2dc)])!=null?_0x4afbfd:_0xedc44d(0x1f4);return{'changeset':{'unitID':_0x588961,'type':_0x4a7d91(_0x5675f2[_0xedc44d(0x1df)](_0x588961)),'baseRev':_0x5542b6[_0xedc44d(0x2af)](_0x588961),'revision':0x0,'userID':_0x56801f,'memberID':_0x4642d0,'mutations':_0x1dc6e6},'pendingMutations':_0x5cca24['slice'](_0x1dc6e6[_0xedc44d(0x2e1)])};}function Yn(_0x3aa71c,_0x5d9c4d,_0xeaa02f,_0x4360f6,_0x50116b){const _0x20307c=_0x4d174b;var _0x3f13bc,_0x291e37,_0x517364,_0x49df05;const _0x3848cf=[_0x3aa71c[_0x20307c(0x180)]((_0x3d10ba,_0x252c45)=>{const _0x508a5b=_0x20307c;var _0x1388f4;const {id:_0x3e5c2a}=_0x3d10ba,{id:_0x371760,type:_0x2824c7}=_0x252c45,_0x49b0b3=(_0x1388f4=_0x3d10ba['params'])!=null?_0x1388f4:{'actions':null},_0x577164=_0x252c45[_0x508a5b(0x29f)];if(_0x3e5c2a&&_0x3e5c2a!==_0x371760)throw new Error(_0x508a5b(0x390)+_0x3e5c2a+_0x508a5b(0x38c)+_0x371760+'.');return{..._0x3d10ba,'id':_0x371760,'type':_0x2824c7,'params':{'unitId':_0x577164[_0x508a5b(0x22a)],'textRanges':_0x577164[_0x508a5b(0x277)],'actions':_0xa7ba5e[_0x508a5b(0x3a5)](_0x49b0b3['actions'],_0x577164['actions'])}};},{})],_0x565183=(_0x291e37=(_0x3f13bc=_0x50116b['getCurrentUser']())==null?void 0x0:_0x3f13bc[_0x20307c(0x251)])!=null?_0x291e37:_0x20307c(0x1f4),_0x3b48a5=(_0x49df05=(_0x517364=_0x50116b[_0x20307c(0x13b)]())==null?void 0x0:_0x517364['memberID'])!=null?_0x49df05:_0x20307c(0x1f4);return{'changeset':{'unitID':_0x5d9c4d,'type':_0x4a7d91(_0xeaa02f['getUnitType'](_0x5d9c4d)),'baseRev':_0x4360f6[_0x20307c(0x2af)](_0x5d9c4d),'revision':0x0,'userID':_0x565183,'memberID':_0x3b48a5,'mutations':_0x3848cf},'pendingMutations':[]};}const Kn={'id':_0x4866a1['id'],'type':_0x4d4345[_0x4d174b(0x31a)],'params':{}};var Xn=Object['defineProperty'],Jn=Object[_0x4d174b(0x13f)],re=(_0x4ffed7,_0x45c5ca,_0xf725d6,_0x1bdff8)=>{const _0x3d3b0d=_0x4d174b;for(var _0x33cc85=_0x1bdff8>0x1?void 0x0:_0x1bdff8?Jn(_0x45c5ca,_0xf725d6):_0x45c5ca,_0x459003=_0x4ffed7[_0x3d3b0d(0x2e1)]-0x1,_0xe2d039;_0x459003>=0x0;_0x459003--)(_0xe2d039=_0x4ffed7[_0x459003])&&(_0x33cc85=(_0x1bdff8?_0xe2d039(_0x45c5ca,_0xf725d6,_0x33cc85):_0xe2d039(_0x33cc85))||_0x33cc85);return _0x1bdff8&&_0x33cc85&&Xn(_0x45c5ca,_0xf725d6,_0x33cc85),_0x33cc85;},f=(_0x5280bb,_0x4aa9ee)=>(_0x2ca321,_0x3ca1ab)=>_0x4aa9ee(_0x2ca321,_0x3ca1ab,_0x5280bb),P=(_0x39f728=>(_0x39f728['NOT_COLLAB']=_0x4d174b(0x149),_0x39f728['SYNCED']=_0x4d174b(0x3dc),_0x39f728[_0x4d174b(0x370)]='pending',_0x39f728[_0x4d174b(0x2c1)]=_0x4d174b(0x338),_0x39f728['AWAITING_WITH_PENDING']=_0x4d174b(0x21d),_0x39f728[_0x4d174b(0x189)]=_0x4d174b(0x10d),_0x39f728[_0x4d174b(0x10b)]=_0x4d174b(0x28f),_0x39f728['OFFLINE']=_0x4d174b(0x172),_0x39f728))(P||{});class oe{constructor(_0x1e45ef,_0x1da341,_0x1b49a8,_0x39b52f,_0x237bf9,_0x3446ca,_0x41c21a,_0x18813e,_0x2f8c6e){const _0x303df2=_0x4d174b;l(this,'_awaitingChangeset',null),l(this,'_pendingMutations',[]),(this[_0x303df2(0x1e2)]=_0x1e45ef,this['type']=_0x1da341,this['_handler']=_0x237bf9,this[_0x303df2(0x178)]=_0x3446ca,this['_undoRedoService']=_0x41c21a,this['_revisionService']=_0x18813e,this[_0x303df2(0xca)]=_0x2f8c6e,this[_0x303df2(0x182)]=_0x1b49a8,this['_pendingMutations']=_0x39b52f);}['_checkMissing'](_0x1562b9){const _0x3d0620=_0x4d174b,_0x29c91b=this[_0x3d0620(0x197)]['getCurrentRevForDocument'](this[_0x3d0620(0x1e2)]);return _0x1562b9[_0x3d0620(0x143)]>_0x29c91b+0x1?(this['_handler'][_0x3d0620(0x2c2)]({'from':_0x29c91b,'to':_0x1562b9['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x30ed23){const _0x9390e7=_0x4d174b;this[_0x9390e7(0xda)][_0x9390e7(0x2a9)](this[_0x9390e7(0x1e2)],_0x30ed23);}[_0x4d174b(0x3f5)](_0x51c743){const _0x3f311d=_0x4d174b;var _0x24ae21,_0x43b746;(_0x43b746=(_0x24ae21=this[_0x3f311d(0x2db)])[_0x3f311d(0x120)])==null||_0x43b746[_0x3f311d(0x37f)](_0x24ae21,_0x51c743);}[_0x4d174b(0x3d0)](_0x2270a5){const _0x2c5e18=_0x4d174b;var _0xc7b0d1,_0x5f30ae;return(_0x5f30ae=(_0xc7b0d1=this['_handler'])['onTransformIME'])==null?void 0x0:_0x5f30ae[_0x2c5e18(0x37f)](_0xc7b0d1,_0x2270a5);}['_transformRemoteChangesetByIMECache'](_0x1f6d36){const _0x3d1531=_0x4d174b;var _0x432dba,_0x414c97,_0x140647;return(_0x140647=(_0x414c97=(_0x432dba=this[_0x3d1531(0x2db)])[_0x3d1531(0x16b)])==null?void 0x0:_0x414c97[_0x3d1531(0x37f)](_0x432dba,_0x1f6d36))!=null?_0x140647:_0x1f6d36;}[_0x4d174b(0xd0)](_0xb7f3b9){const _0x3e467f=_0x4d174b;var _0x3146f5,_0x40ce74;if(this[_0x3e467f(0x13a)]===j['UNIVER_DOC']){const {unitID:_0x3db759,mutations:_0x5e0fd8,memberID:_0x1eec5a}=_0xb7f3b9,_0x497187=_0x5e0fd8[0x0][_0x3e467f(0x29f)][_0x3e467f(0x277)];Array[_0x3e467f(0x15e)](_0x497187)&&_0x497187[_0x3e467f(0x2e1)]>0x0&&((_0x40ce74=(_0x3146f5=this[_0x3e467f(0x2db)])[_0x3e467f(0x33b)])==null||_0x40ce74[_0x3e467f(0x37f)](_0x3146f5,{'unitID':_0x3db759,'memberID':_0x1eec5a,'textRanges':_0x497187}));}}[_0x4d174b(0x1f9)](){const _0x29e470=_0x4d174b;this[_0x29e470(0xca)][_0x29e470(0x25d)](this[_0x29e470(0x1e2)],this[_0x29e470(0x13a)],this[_0x29e470(0x182)],this[_0x29e470(0x261)]);}['_getCurrentRevision'](){const _0x236be1=_0x4d174b;return this[_0x236be1(0x197)][_0x236be1(0x2af)](this[_0x236be1(0x1e2)]);}[_0x4d174b(0xd2)](){const _0x1c2507=_0x4d174b;this[_0x1c2507(0x197)][_0x1c2507(0x3c6)](this[_0x1c2507(0x1e2)]);}[_0x4d174b(0x28d)](_0x1eaa31){const _0x4f2b7b=_0x4d174b;var _0x3a8089;const _0x30e0a4=this[_0x4f2b7b(0x23d)](_0x1eaa31),_0x31b83b=_0x37a637(_0x30e0a4[_0x4f2b7b(0x185)],this[_0x4f2b7b(0x178)],{'fromCollab':!0x0});if(!_0x31b83b[_0x4f2b7b(0x310)])throw _0x31b83b[_0x4f2b7b(0xba)]instanceof Error?_0x31b83b['error']:new Error((_0x3a8089=_0x31b83b[_0x4f2b7b(0xba)])!=null?_0x3a8089:_0x4f2b7b(0xef));this[_0x4f2b7b(0x3d0)](_0x30e0a4),this['_transformUndoredo'](_0x1eaa31),this[_0x4f2b7b(0x3f5)](_0x30e0a4),this[_0x4f2b7b(0xd0)](_0x30e0a4),this[_0x4f2b7b(0xd2)]();}}let Pe=class extends oe{constructor(_0x2758f7,_0x2fb46a,_0x48745d,_0x1b434e,_0x32675a,_0x11782d,_0x5df27a,_0x18555e,_0x3957fb,_0x55f11f){const _0x2c448b=_0x4d174b;super(_0x2758f7,_0x2fb46a,null,[],_0x48745d,_0x18555e,_0x5df27a,_0x1b434e,_0x32675a),l(this,'status',_0x2c448b(0x3dc)),(this[_0x2c448b(0x36e)]=_0x11782d,this['_logService']=_0x3957fb,this[_0x2c448b(0x3ca)]=_0x55f11f);}['appendMutation'](_0x2fafdd){const _0x145456=_0x4d174b,_0x32a40e=this[_0x145456(0x36e)][_0x145456(0x3d3)](W,this['unitID'],this[_0x145456(0x13a)],[_0x2fafdd],this[_0x145456(0x2db)]);return _0x32a40e[_0x145456(0x13c)](),_0x32a40e[_0x145456(0x1f9)](),_0x32a40e;}[_0x4d174b(0x10e)](_0x544f07){const _0x41b497=_0x4d174b;if(this[_0x41b497(0xc1)](_0x544f07))return this['_injector'][_0x41b497(0x3d3)](Y,this[_0x41b497(0x1e2)],this['type'],null,[],null,[_0x544f07],this[_0x41b497(0x2db)]);try{const _0x125bb7=this[_0x41b497(0x3ca)][_0x41b497(0x147)](_0x544f07,[Kn]);if(_0x7aa6dd(_0x125bb7)){const {c1Prime:_0x7fe45e}=_0x125bb7;return this[_0x41b497(0x28d)](_0x7fe45e),this;}throw _0x125bb7[_0x41b497(0xba)];}catch(_0x1ce068){return this[_0x41b497(0x30a)][_0x41b497(0xba)](_0x1ce068),this[_0x41b497(0x105)](!0x1);}}[_0x4d174b(0x105)](_0x410e74){const _0x5dd346=_0x4d174b;return this[_0x5dd346(0x36e)]['createInstance'](z,this[_0x5dd346(0x1e2)],this['type'],null,[],this[_0x5dd346(0x2db)],_0x410e74);}['onRemoteAck'](){const _0xb0682f=_0x4d174b;throw new Error(_0xb0682f(0x327));}[_0x4d174b(0x1c9)](){const _0x3e28c3=_0x4d174b;throw new Error(_0x3e28c3(0x2df));}[_0x4d174b(0x342)](){const _0x4218bc=_0x4d174b;return this[_0x4218bc(0x36e)][_0x4218bc(0x3d3)](Z,this[_0x4218bc(0x1e2)],this[_0x4218bc(0x13a)],null,[],this['_handler']);}[_0x4d174b(0x3b4)](){return this;}[_0x4d174b(0x186)](){const _0x1835c7=_0x4d174b;throw new Error(_0x1835c7(0xf3));}};Pe=re([f(0x3,_0x5b671c(_0x5d7349)),f(0x4,_0x5b671c(O)),f(0x5,_0x5b671c(_0x49e10e)),f(0x6,_0x5f56c1),f(0x7,_0x5bc562),f(0x8,_0x50a504),f(0x9,_0x174d0f)],Pe);let W=class extends oe{constructor(_0x1da304,_0x34c15e,_0x3dd954,_0x188ef7,_0x412f0b,_0x32ed0d,_0x42ea32,_0x2b8d16,_0x43e5ad,_0x211d84,_0x22c1fe,_0x5e12f2,_0x3e71b8,_0x1f3542){const _0x1185ce=_0x4d174b;super(_0x1da304,_0x34c15e,null,_0x3dd954,_0x188ef7,_0x211d84,_0x1f3542,_0x32ed0d,_0x42ea32),l(this,_0x1185ce(0x14b),_0x1185ce(0x243)),l(this,_0x1185ce(0x32e),null),l(this,_0x1185ce(0x1c2),null),(this['_injector']=_0x412f0b,this[_0x1185ce(0x2d9)]=_0x2b8d16,this['_logService']=_0x43e5ad,this[_0x1185ce(0x229)]=_0x22c1fe,this[_0x1185ce(0x3ca)]=_0x5e12f2,this['_univerInstanceService']=_0x3e71b8);}[_0x4d174b(0x3e9)](_0x59bfa2){const _0x574074=_0x4d174b;return this[_0x574074(0x261)][_0x574074(0x328)](_0x59bfa2),this[_0x574074(0x1f9)](),this;}[_0x4d174b(0x10e)](_0x1f9aeb){const _0x1f22c6=_0x4d174b;if(this[_0x1f22c6(0xc1)](_0x1f9aeb))return this[_0x1f22c6(0x138)](),this[_0x1f22c6(0x36e)][_0x1f22c6(0x3d3)](Y,this[_0x1f22c6(0x1e2)],this[_0x1f22c6(0x13a)],null,this['_pendingMutations'],null,[_0x1f9aeb],this[_0x1f22c6(0x2db)]);try{const _0x445fc0=this[_0x1f22c6(0x3ca)]['transformMutationsWithChangeset'](_0x1f9aeb,this[_0x1f22c6(0x261)]);if(_0x7aa6dd(_0x445fc0)){const {c1Prime:_0x5595f7,m2Prime:_0xd8effb}=_0x445fc0;this[_0x1f22c6(0x28d)](_0x5595f7);const _0x1735d7=this[_0x1f22c6(0x36e)][_0x1f22c6(0x3d3)](W,this[_0x1f22c6(0x1e2)],this['type'],_0xd8effb,this['_handler']);return this[_0x1f22c6(0x138)](),_0x1735d7['_schedule'](this[_0x1f22c6(0x32e)]?Math[_0x1f22c6(0x397)](0x0,new Date()['getTime']()-this['_scheduleTimestamp']):this[_0x1f22c6(0xb9)]()),_0x1735d7;}throw _0x445fc0[_0x1f22c6(0xba)];}catch(_0x41b0b3){return this['_logService'][_0x1f22c6(0xba)](_0x41b0b3),this['_onConflict'](!0x1);}}[_0x4d174b(0x1a4)](){const _0x4a6a55=_0x4d174b;throw new Error(_0x4a6a55(0x2a8));}[_0x4d174b(0x1c9)](){const _0x1d753c=_0x4d174b;throw new Error(_0x1d753c(0x3d5));}[_0x4d174b(0x342)](){const _0x3ce1bc=_0x4d174b;return this[_0x3ce1bc(0x138)](),this[_0x3ce1bc(0x36e)][_0x3ce1bc(0x3d3)](Z,this[_0x3ce1bc(0x1e2)],this['type'],null,this[_0x3ce1bc(0x261)],this[_0x3ce1bc(0x2db)]);}[_0x4d174b(0x3b4)](){return this;}[_0x4d174b(0x13c)](_0x12e2b1){const _0x166a01=_0x4d174b;_0x12e2b1=_0x12e2b1!=null?_0x12e2b1:this[_0x166a01(0xb9)](),this['_scheduleTimestamp']=new Date()['getTime'](),this[_0x166a01(0x1c2)]=setTimeout(()=>{const _0x18f2eb=_0x166a01;this[_0x18f2eb(0x138)]();let _0xa963ce=null;switch(this[_0x18f2eb(0x13a)]){case j[_0x18f2eb(0x202)]:{_0xa963ce=is(this[_0x18f2eb(0x261)],this[_0x18f2eb(0x1e2)],this['_univerInstanceService'],this[_0x18f2eb(0x197)],this['_memberService']);break;}case j[_0x18f2eb(0x2b7)]:{this[_0x18f2eb(0x261)]['every'](_0x2f7702=>_0x2f7702['id']===_0x257904['id'])?_0xa963ce=Yn(this[_0x18f2eb(0x261)],this[_0x18f2eb(0x1e2)],this[_0x18f2eb(0x115)],this[_0x18f2eb(0x197)],this[_0x18f2eb(0x2d9)]):_0xa963ce=is(this[_0x18f2eb(0x261)],this[_0x18f2eb(0x1e2)],this[_0x18f2eb(0x115)],this[_0x18f2eb(0x197)],this['_memberService']);break;}default:throw new Error(_0x18f2eb(0x3db)+this['type']+_0x18f2eb(0x148));}const {changeset:_0x38d854,pendingMutations:_0x47cd76}=_0xa963ce;this[_0x18f2eb(0x2db)][_0x18f2eb(0xfd)](_0x38d854);const _0x49afc6=_0x47cd76['length']?this['_injector'][_0x18f2eb(0x3d3)](G,this[_0x18f2eb(0x1e2)],this[_0x18f2eb(0x13a)],_0x38d854,_0x47cd76,this[_0x18f2eb(0x2db)]):this[_0x18f2eb(0x36e)][_0x18f2eb(0x3d3)](q,this[_0x18f2eb(0x1e2)],this[_0x18f2eb(0x13a)],_0x38d854,this[_0x18f2eb(0x2db)]);_0x49afc6[_0x18f2eb(0x1f9)](),this[_0x18f2eb(0x2db)]['onStateChange'](this,_0x49afc6);},_0x12e2b1);}[_0x4d174b(0xb9)](){const _0x5cf2d8=_0x4d174b;var _0x3a5fb9;return(_0x3a5fb9=this['_configService'][_0x5cf2d8(0x1f0)](tn))!=null?_0x3a5fb9:sn;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0xf8af42=_0x4d174b;this[_0xf8af42(0x1c2)]!=null&&(clearTimeout(this[_0xf8af42(0x1c2)]),this[_0xf8af42(0x1c2)]=null);}[_0x4d174b(0x105)](_0x33882b){const _0x13c4a4=_0x4d174b;return this[_0x13c4a4(0x138)](),this[_0x13c4a4(0x36e)][_0x13c4a4(0x3d3)](z,this['unitID'],this[_0x13c4a4(0x13a)],null,this[_0x13c4a4(0x261)],this['_handler'],_0x33882b);}};W=re([f(0x4,_0x5b671c(_0x49e10e)),f(0x5,_0x5b671c(_0x5d7349)),f(0x6,_0x5b671c(O)),f(0x7,_0x5b671c(te)),f(0x8,_0x50a504),f(0x9,_0x5bc562),f(0xa,_0x15fd76),f(0xb,_0x174d0f),f(0xc,_0x2269ec),f(0xd,_0x5f56c1)],W);let q=class extends oe{constructor(_0x24e838,_0x573346,_0x370572,_0x40b694,_0x10ec20,_0x1579a7,_0x536b7d,_0x5a1696,_0x58973a,_0x161f3b,_0xc5261e){const _0x28f229=_0x4d174b;super(_0x24e838,_0x573346,_0x370572,[],_0x40b694,_0x5a1696,_0xc5261e,_0x1579a7,_0x536b7d),l(this,'status',_0x28f229(0x338)),(this[_0x28f229(0x36e)]=_0x10ec20,this[_0x28f229(0x30a)]=_0x58973a,this[_0x28f229(0x3ca)]=_0x161f3b);}[_0x4d174b(0x3e9)](_0x3533f0){const _0x1f9061=_0x4d174b,_0x438177=this[_0x1f9061(0x36e)]['createInstance'](G,this[_0x1f9061(0x1e2)],this[_0x1f9061(0x13a)],this[_0x1f9061(0x182)],[_0x3533f0],this[_0x1f9061(0x2db)]);return _0x438177[_0x1f9061(0x1f9)](),_0x438177;}[_0x4d174b(0x10e)](_0x1805fb){const _0x56cad1=_0x4d174b;if(this[_0x56cad1(0xc1)](_0x1805fb))return this[_0x56cad1(0x36e)][_0x56cad1(0x3d3)](Y,this[_0x56cad1(0x1e2)],this[_0x56cad1(0x13a)],this['_awaitingChangeset'],[],null,[_0x1805fb],this[_0x56cad1(0x2db)]);try{const _0x33659d=this[_0x56cad1(0x3ca)]['transformChangesets']([_0x1805fb],[this[_0x56cad1(0x182)]],!0x1);if(_0x5cb55b(_0x33659d)){const {c1Prime:_0x13d693,c2Prime:_0x49f3ac}=_0x33659d;this['_executeRemoteChangeset'](_0x13d693[0x0]),_0x49f3ac[0x0]['baseRev']=this[_0x56cad1(0x165)]();const _0xc582ab=this[_0x56cad1(0x36e)][_0x56cad1(0x3d3)](q,this[_0x56cad1(0x1e2)],this[_0x56cad1(0x13a)],_0x49f3ac[0x0],this[_0x56cad1(0x2db)]);return _0xc582ab['_updateLocalCache'](),_0xc582ab;}return this[_0x56cad1(0x105)](!0x1);}catch(_0x1dbbb3){return this[_0x56cad1(0x30a)][_0x56cad1(0xba)](_0x1dbbb3),this['_onConflict'](!0x1);}}[_0x4d174b(0x1a4)](_0x5698f0){const _0x5c772b=_0x4d174b,_0x2d8653=this[_0x5c772b(0x197)]['getCurrentRevForDocument'](this[_0x5c772b(0x1e2)]);if(_0x5698f0[_0x5c772b(0x143)]<_0x2d8653-0x1)return this;if(this[_0x5c772b(0xc1)](_0x5698f0))return this['_injector'][_0x5c772b(0x3d3)](Y,this[_0x5c772b(0x1e2)],this['type'],null,[],this[_0x5c772b(0x182)],[],this[_0x5c772b(0x2db)]);this['_incrementRevisionNumber']();const _0x31764b=this[_0x5c772b(0x36e)][_0x5c772b(0x3d3)](Pe,this['unitID'],this[_0x5c772b(0x13a)],this[_0x5c772b(0x2db)]);return _0x31764b[_0x5c772b(0x1f9)](),_0x31764b;}[_0x4d174b(0x1c9)](_0x5bc4fe){const _0x3e7ad0=_0x4d174b;return this[_0x3e7ad0(0x105)](!!(_0x5bc4fe!=null&&_0x5bc4fe[_0x3e7ad0(0x3e7)]));}['toggleOffline'](){const _0x251a6f=_0x4d174b;return this['_injector'][_0x251a6f(0x3d3)](Z,this[_0x251a6f(0x1e2)],this[_0x251a6f(0x13a)],this[_0x251a6f(0x182)],[],this[_0x251a6f(0x2db)]);}[_0x4d174b(0x3b4)](){return this;}[_0x4d174b(0x186)](){const _0x54f9f1=_0x4d174b;this[_0x54f9f1(0x2db)]['onSendChangeset'](this[_0x54f9f1(0x182)]);}['_onConflict'](_0x502d98){const _0x417bc9=_0x4d174b;return this[_0x417bc9(0x36e)]['createInstance'](z,this['unitID'],this[_0x417bc9(0x13a)],this[_0x417bc9(0x182)],[],this[_0x417bc9(0x2db)],_0x502d98);}};q=re([f(0x4,_0x5b671c(_0x49e10e)),f(0x5,_0x5b671c(_0x5d7349)),f(0x6,_0x5b671c(O)),f(0x7,_0x5bc562),f(0x8,_0x50a504),f(0x9,_0x174d0f),f(0xa,_0x5f56c1)],q);let G=class extends oe{constructor(_0x453611,_0x130b9b,_0x345415,_0x9a7308,_0x32ebbd,_0x549025,_0x470fcb,_0x24555f,_0xe7b36c,_0x34aebe,_0x28f137,_0x1255fe){const _0xc7f661=_0x4d174b;super(_0x453611,_0x130b9b,_0x345415,_0x9a7308,_0x32ebbd,_0xe7b36c,_0x1255fe,_0x470fcb,_0x24555f),l(this,_0xc7f661(0x14b),_0xc7f661(0x21d)),(this[_0xc7f661(0x36e)]=_0x549025,this['_logService']=_0x34aebe,this[_0xc7f661(0x3ca)]=_0x28f137);}[_0x4d174b(0x3e9)](_0x40920e){const _0x36a9f5=_0x4d174b;return this[_0x36a9f5(0x261)][_0x36a9f5(0x328)](_0x40920e),this;}['onRemoteChangeset'](_0x381311){const _0x24093e=_0x4d174b;if(this[_0x24093e(0xc1)](_0x381311))return this[_0x24093e(0x36e)][_0x24093e(0x3d3)](Y,this['unitID'],this[_0x24093e(0x13a)],this[_0x24093e(0x182)],this['_pendingMutations'],null,[_0x381311],this['_handler']);try{const _0x430618=this['_transformService']['transformChangesets']([_0x381311],[this[_0x24093e(0x182)]],!0x1);if(_0x5cb55b(_0x430618)){const {c1Prime:_0x8d94de,c2Prime:_0x3636b2}=_0x430618,_0x1c752f=this[_0x24093e(0x3ca)][_0x24093e(0x147)](_0x8d94de[0x0],this['_pendingMutations']);if(_0x7aa6dd(_0x1c752f)){const {c1Prime:_0x30d3ad,m2Prime:_0x52e3b2}=_0x1c752f;return this[_0x24093e(0x28d)](_0x30d3ad),_0x3636b2[0x0][_0x24093e(0x234)]=this[_0x24093e(0x165)](),this[_0x24093e(0x36e)][_0x24093e(0x3d3)](G,this[_0x24093e(0x1e2)],this[_0x24093e(0x13a)],_0x3636b2[0x0],_0x52e3b2,this['_handler']);}throw _0x1c752f[_0x24093e(0xba)];}throw _0x430618[_0x24093e(0xba)];}catch(_0x18be07){return this[_0x24093e(0x30a)][_0x24093e(0xba)](_0x18be07),this[_0x24093e(0x105)](!0x1);}}[_0x4d174b(0x1a4)](_0x3a1c8d){const _0x495c76=_0x4d174b;if(this[_0x495c76(0xc1)](_0x3a1c8d))return this[_0x495c76(0x36e)]['createInstance'](Y,this[_0x495c76(0x1e2)],this['type'],null,this[_0x495c76(0x261)],this[_0x495c76(0x182)],[],this[_0x495c76(0x2db)]);this['_incrementRevisionNumber']();const _0x222574=this[_0x495c76(0x36e)][_0x495c76(0x3d3)](W,this['unitID'],this[_0x495c76(0x13a)],this[_0x495c76(0x261)],this[_0x495c76(0x2db)]);return _0x222574[_0x495c76(0x13c)](),_0x222574[_0x495c76(0x1f9)](),_0x222574;}[_0x4d174b(0x1c9)](_0x4a832a){const _0x154767=_0x4d174b;return this[_0x154767(0x105)](!!(_0x4a832a!=null&&_0x4a832a['isPermissionRej']));}[_0x4d174b(0x342)](){const _0x305da3=_0x4d174b;return this[_0x305da3(0x36e)][_0x305da3(0x3d3)](Z,this['unitID'],this['type'],this[_0x305da3(0x182)],this['_pendingMutations'],this[_0x305da3(0x2db)]);}['toggleOnline'](){return this;}[_0x4d174b(0x186)](){const _0x437b13=_0x4d174b;this[_0x437b13(0x2db)][_0x437b13(0xfd)](this['_awaitingChangeset']);}[_0x4d174b(0x105)](_0x142f30){const _0x4bf735=_0x4d174b;return this['_injector'][_0x4bf735(0x3d3)](z,this[_0x4bf735(0x1e2)],this['type'],null,this[_0x4bf735(0x261)],this[_0x4bf735(0x2db)],_0x142f30);}};G=re([f(0x5,_0x5b671c(_0x49e10e)),f(0x6,_0x5b671c(_0x5d7349)),f(0x7,_0x5b671c(O)),f(0x8,_0x5bc562),f(0x9,_0x50a504),f(0xa,_0x174d0f),f(0xb,_0x5f56c1)],G);let z=class extends oe{constructor(_0x337fe2,_0x4252e6,_0x335b16,_0x4e9c2a,_0x5bdd2d,_0x7bb888=!0x1,_0x1b1620,_0x36fd21,_0x35a6e9,_0x50ed28,_0x34dccb,_0x4edf45,_0x466d8c){const _0x5d1d17=_0x4d174b;super(_0x337fe2,_0x4252e6,_0x335b16,_0x4e9c2a,_0x5bdd2d,_0x36fd21,_0x35a6e9,_0x34dccb,_0x50ed28),l(this,'status','conflict'),(this[_0x5d1d17(0x349)]=_0x7bb888,this[_0x5d1d17(0x126)]=_0x1b1620,this[_0x5d1d17(0x13d)]=_0x4edf45,this[_0x5d1d17(0x1b5)]=_0x466d8c,this['_showConflictNotification'](),this['_clearLocalCache'](),this[_0x5d1d17(0x1a7)]());}[_0x4d174b(0x3e9)](){return this;}[_0x4d174b(0x10e)](){return this;}[_0x4d174b(0x1a4)](){return this;}[_0x4d174b(0x1c9)](){return this;}[_0x4d174b(0x342)](){return this;}[_0x4d174b(0x3b4)](){return this;}[_0x4d174b(0x186)](){const _0x4a6507=_0x4d174b;throw new Error(_0x4a6507(0x2e3));}[_0x4d174b(0x3a3)](){const _0x3d42a3=_0x4d174b;this[_0x3d42a3(0xca)][_0x3d42a3(0x25d)](this[_0x3d42a3(0x1e2)],this[_0x3d42a3(0x13a)],null,[]);}[_0x4d174b(0x29e)](){const _0x8579e8=_0x4d174b;this[_0x8579e8(0x349)]?this[_0x8579e8(0x1b5)]['show']({'title':this[_0x8579e8(0x13d)]['t']('permission.title'),'content':this[_0x8579e8(0x13d)]['t'](_0x8579e8(0x393)),'type':_0x8579e8(0xba),'duration':0x0}):this['_notificationService']['show']({'title':this['_localeService']['t'](_0x8579e8(0x1ed)),'content':this[_0x8579e8(0x13d)]['t'](_0x8579e8(0x371)),'type':_0x8579e8(0xba),'duration':0x0});}[_0x4d174b(0x1a7)](){const _0x391387=_0x4d174b;this[_0x391387(0x126)]['updatePermissionPoint'](new _0x56d014(this[_0x391387(0x1e2)])['id'],!0x1);}};z=re([f(0x6,_0x5b671c(_0xf5bbc5)),f(0x7,_0x5bc562),f(0x8,_0x5f56c1),f(0x9,_0x5b671c(O)),f(0xa,_0x5b671c(_0x5d7349)),f(0xb,_0x5b671c(_0x35ebff)),f(0xc,_0x13435c)],z);let Z=class extends oe{constructor(_0x45dfd8,_0x2fd6c6,_0x340d3b,_0x2959c5,_0x452c98,_0x5678fb,_0x58fc4d,_0x4cfab0,_0x1ad2ab,_0x203994){const _0x398016=_0x4d174b;super(_0x45dfd8,_0x2fd6c6,_0x340d3b,_0x2959c5,_0x452c98,_0x1ad2ab,_0x203994,_0x58fc4d,_0x4cfab0),l(this,'status','offline'),this[_0x398016(0x36e)]=_0x5678fb;}[_0x4d174b(0x3e9)](_0xcb35f7){const _0x3bdc53=_0x4d174b;return this[_0x3bdc53(0x261)][_0x3bdc53(0x328)](_0xcb35f7),this[_0x3bdc53(0x1f9)](),this;}[_0x4d174b(0x10e)](_0x292dc4){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x536c48=_0x4d174b;throw new Error(_0x536c48(0x32c));}[_0x4d174b(0x1c9)](){const _0x2a238d=_0x4d174b;throw new Error(_0x2a238d(0x1b1));}[_0x4d174b(0x342)](){return this;}[_0x4d174b(0x3b4)](){const _0x3799e3=_0x4d174b,{_injector:_0x5b1400,_pendingMutations:_0x206ac5,_awaitingChangeset:_0xa2418e,unitID:_0x54b9a5,_handler:_0x7406ae,type:_0x3c8318}=this,_0x2e062e=As(_0x5b1400,_0x54b9a5,_0x3c8318,_0xa2418e,_0x206ac5,_0x7406ae);return _0x2e062e instanceof W?_0x2e062e['_schedule']():(_0x2e062e instanceof G||_0x2e062e instanceof q)&&_0x2e062e[_0x3799e3(0x186)](),_0x2e062e;}[_0x4d174b(0x186)](){const _0x1a2d16=_0x4d174b;throw new Error(_0x1a2d16(0x3a4));}};Z=re([f(0x5,_0x5b671c(_0x49e10e)),f(0x6,_0x5b671c(_0x5d7349)),f(0x7,_0x5b671c(O)),f(0x8,_0x5bc562),f(0x9,_0x5f56c1)],Z);let Y=class extends oe{constructor(_0x11ab1b,_0x351d95,_0x20e16a,_0x14649e,_0x475b53,_0x5b713f,_0x50890e,_0x5575cc,_0x2e85fa,_0x286733,_0x3d0d1e,_0x2a8506,_0xa0c213,_0x1c08c5){const _0x5909dd=_0x4d174b;super(_0x11ab1b,_0x351d95,_0x20e16a,_0x14649e,_0x50890e,_0x2a8506,_0xa0c213,_0x2e85fa,_0x286733),l(this,'status',_0x5909dd(0x10d)),(this[_0x5909dd(0x196)]=_0x475b53,this['_queuedRemoteChangesets']=_0x5b713f,this[_0x5909dd(0x36e)]=_0x5575cc,this[_0x5909dd(0x30a)]=_0x3d0d1e,this[_0x5909dd(0x3ca)]=_0x1c08c5);}[_0x4d174b(0x131)](_0x16193b){const _0x135cef=_0x4d174b;try{const _0x2701e7=[..._0x16193b,...this[_0x135cef(0x26b)]],_0x211dbd=[this[_0x135cef(0x182)]||this[_0x135cef(0x196)]][_0x135cef(0x236)](_0x43e074=>!!_0x43e074);let _0x10dc06,_0x2c5283;if(_0x211dbd['length']){const _0x268191=this[_0x135cef(0x3ca)][_0x135cef(0x1a0)](_0x2701e7,_0x211dbd,!0x1);if(!_0x5cb55b(_0x268191))throw _0x268191[_0x135cef(0xba)];_0x10dc06=_0x268191['c1Prime'],_0x2c5283=_0x268191['c2Prime'];}else _0x10dc06=_0x2701e7,_0x2c5283=[];let _0x230890=this['_pendingMutations'];_0x10dc06[_0x135cef(0x1cb)](_0x3a54af=>{const _0x1150d0=_0x135cef;let _0x304a96;if(_0x230890[_0x1150d0(0x2e1)]){const _0x4b0e2b=this[_0x1150d0(0x3ca)][_0x1150d0(0x147)](_0x3a54af,_0x230890);if(!_0x7aa6dd(_0x4b0e2b))throw _0x4b0e2b['error'];_0x304a96=_0x4b0e2b[_0x1150d0(0x2e4)],_0x230890=_0x4b0e2b[_0x1150d0(0x160)];}else _0x304a96=_0x3a54af;this[_0x1150d0(0x28d)](_0x304a96);}),this['_acknowledgedAwaitingChangeset']&&this[_0x135cef(0xd2)](),this[_0x135cef(0x182)]&&_0x2c5283[_0x135cef(0x2e1)]&&(_0x2c5283[0x0][_0x135cef(0x234)]=this['_getCurrentRevision']());let _0x50fbfe;if(this[_0x135cef(0x182)]&&_0x230890[_0x135cef(0x2e1)]!==0x0)_0x50fbfe=this[_0x135cef(0x36e)][_0x135cef(0x3d3)](G,this['unitID'],this['type'],_0x2c5283[0x0],_0x230890,this[_0x135cef(0x2db)]);else{if(this[_0x135cef(0x182)]&&_0x230890[_0x135cef(0x2e1)]===0x0)_0x2c5283[0x0][_0x135cef(0x234)]=this[_0x135cef(0x165)](),_0x50fbfe=this[_0x135cef(0x36e)][_0x135cef(0x3d3)](q,this['unitID'],this[_0x135cef(0x13a)],_0x2c5283[0x0],this['_handler']);else{if(_0x230890[_0x135cef(0x2e1)]!==0x0){const _0x47b4ae=this[_0x135cef(0x36e)]['createInstance'](W,this[_0x135cef(0x1e2)],this[_0x135cef(0x13a)],_0x230890,this[_0x135cef(0x2db)]);_0x47b4ae['_schedule'](),_0x50fbfe=_0x47b4ae;}else _0x50fbfe=this[_0x135cef(0x36e)][_0x135cef(0x3d3)](Pe,this['unitID'],this[_0x135cef(0x13a)],this[_0x135cef(0x2db)]);}}return _0x50fbfe['_updateLocalCache'](),_0x50fbfe;}catch(_0x24d2b7){return this[_0x135cef(0x30a)][_0x135cef(0xba)](_0x135cef(0x1bb),'failed\x20to\x20apply\x20missed\x20changesets!',_0x24d2b7),this[_0x135cef(0x36e)]['createInstance'](z,this[_0x135cef(0x1e2)],this[_0x135cef(0x13a)],this[_0x135cef(0x182)],this[_0x135cef(0x261)],this[_0x135cef(0x2db)],!0x1);}}[_0x4d174b(0x186)](){const _0x4400f7=_0x4d174b;throw new Error(_0x4400f7(0x222));}[_0x4d174b(0x3e9)](_0x486a88){const _0xe25d8c=_0x4d174b;return this[_0xe25d8c(0x261)]['push'](_0x486a88),this;}[_0x4d174b(0x10e)](_0xa47d13){const _0x573fe0=_0x4d174b;return this[_0x573fe0(0x26b)][_0x573fe0(0x328)](_0xa47d13),this;}['onRemoteAck'](_0x45fc9c){const _0x48efdb=_0x4d174b;if(this['_awaitingChangeset'])return this[_0x48efdb(0x196)]=this['_awaitingChangeset'],this[_0x48efdb(0x182)]=null,this;throw new Error(_0x48efdb(0x18f));}[_0x4d174b(0x1c9)](_0x5a281d){const _0x48c708=_0x4d174b;return this[_0x48c708(0x105)](!!(_0x5a281d!=null&&_0x5a281d[_0x48c708(0x3e7)]));}[_0x4d174b(0x342)](){const _0x5de17c=_0x4d174b;return this[_0x5de17c(0x36e)][_0x5de17c(0x3d3)](Z,this[_0x5de17c(0x1e2)],this['type'],this[_0x5de17c(0x182)],this[_0x5de17c(0x261)],this[_0x5de17c(0x2db)]);}[_0x4d174b(0x3b4)](){return this;}['_onConflict'](_0x40939b){const _0x26b4de=_0x4d174b;return this[_0x26b4de(0x36e)][_0x26b4de(0x3d3)](z,this[_0x26b4de(0x1e2)],this[_0x26b4de(0x13a)],this[_0x26b4de(0x182)],this['_pendingMutations'],this[_0x26b4de(0x2db)],_0x40939b);}};Y=re([f(0x7,_0x5b671c(_0x49e10e)),f(0x8,_0x5b671c(_0x5d7349)),f(0x9,_0x5b671c(O)),f(0xa,_0x50a504),f(0xb,_0x5bc562),f(0xc,_0x5f56c1),f(0xd,_0x174d0f)],Y);function As(_0x153886,_0x5ce1f1,_0x335038,_0x4f74a9,_0x1ba5a0,_0x476202){const _0x3db3e1=_0x4d174b;return _0x4f74a9&&_0x1ba5a0[_0x3db3e1(0x2e1)]?_0x153886[_0x3db3e1(0x3d3)](G,_0x5ce1f1,_0x335038,_0x4f74a9,_0x1ba5a0,_0x476202):_0x4f74a9?_0x153886[_0x3db3e1(0x3d3)](q,_0x5ce1f1,_0x335038,_0x4f74a9,_0x476202):_0x1ba5a0[_0x3db3e1(0x2e1)]?_0x153886[_0x3db3e1(0x3d3)](W,_0x5ce1f1,_0x335038,_0x1ba5a0,_0x476202):_0x153886[_0x3db3e1(0x3d3)](Pe,_0x5ce1f1,_0x335038,_0x476202);}var qn=Object[_0x4d174b(0x1e3)],zn=Object[_0x4d174b(0x13f)],tt=(_0x2407d7,_0x18db0a,_0x1f005a,_0xec2cbf)=>{for(var _0x4d9a3d=_0xec2cbf>0x1?void 0x0:_0xec2cbf?zn(_0x18db0a,_0x1f005a):_0x18db0a,_0x4d1736=_0x2407d7['length']-0x1,_0x1f0c0c;_0x4d1736>=0x0;_0x4d1736--)(_0x1f0c0c=_0x2407d7[_0x4d1736])&&(_0x4d9a3d=(_0xec2cbf?_0x1f0c0c(_0x18db0a,_0x1f005a,_0x4d9a3d):_0x1f0c0c(_0x4d9a3d))||_0x4d9a3d);return _0xec2cbf&&_0x4d9a3d&&qn(_0x18db0a,_0x1f005a,_0x4d9a3d),_0x4d9a3d;},v=(_0x1955e1,_0x2de62c)=>(_0x11efab,_0x3f7448)=>_0x2de62c(_0x11efab,_0x3f7448,_0x1955e1);let Oe=class extends _0x52c754{constructor(_0x31e9a5,_0x5edadd,_0x1d180a){const _0x2ff23c=_0x4d174b;super(),l(this,_0x2ff23c(0x35a),new Map()),l(this,_0x2ff23c(0x205),new _0x49ef1a()),(this[_0x2ff23c(0x36e)]=_0x31e9a5,this[_0x2ff23c(0x369)]=_0x5edadd,this[_0x2ff23c(0x115)]=_0x1d180a,this[_0x2ff23c(0x2a6)]());}[_0x4d174b(0x15b)](){const _0x25f4f4=_0x4d174b;super['dispose'](),this[_0x25f4f4(0x35a)]['forEach'](_0x2944f3=>_0x2944f3[_0x25f4f4(0x15b)]()),this['_entities'][_0x25f4f4(0x295)]();}[_0x4d174b(0x1c0)](_0x544515){const _0x42196a=_0x4d174b;var _0x12cee8;return(_0x12cee8=this[_0x42196a(0x35a)][_0x42196a(0x135)](_0x544515))!=null?_0x12cee8:null;}[_0x4d174b(0x2ed)](_0x5e6a2c){const _0x191de6=_0x4d174b,_0x37e95c=this[_0x191de6(0x1c0)](_0x5e6a2c);return _0x37e95c?_0x1e95ea(_0x37e95c):this[_0x191de6(0x205)][_0x191de6(0xbe)](_0x22c59c(_0x3814b9=>_0x3814b9['unitID']===_0x5e6a2c));}[_0x4d174b(0x2a6)](){const _0x369207=_0x4d174b;this['_univerInstanceService'][_0x369207(0x174)](_0x1851b1[_0x369207(0x202)])[_0x369207(0xbe)](_0xf80876(this['dispose$']),_0x4fe2db(0x10))['subscribe'](async _0x231cf9=>{const _0x1889a7=_0x369207,_0x20e375=_0x231cf9[_0x1889a7(0x150)](),_0x22ea9a=await this['_startCollaboration'](_0x20e375,j[_0x1889a7(0x202)]);this['_entities'][_0x1889a7(0x34a)](_0x20e375,_0x22ea9a);}),this[_0x369207(0x115)][_0x369207(0x174)](_0x1851b1[_0x369207(0x2b7)])[_0x369207(0xbe)](_0xf80876(this[_0x369207(0xdd)]),_0x4fe2db(0x10))[_0x369207(0xbe)](_0x22c59c(_0x52723f=>!_0x52723f['getUnitId']()[_0x369207(0x16d)]('__')))[_0x369207(0x269)](async _0x4bdb16=>{const _0x3b934f=_0x369207,_0x1f9ace=_0x4bdb16[_0x3b934f(0x150)](),_0x32dbb8=await this[_0x3b934f(0x158)](_0x1f9ace,j[_0x3b934f(0x2b7)]);this[_0x3b934f(0x35a)]['set'](_0x1f9ace,_0x32dbb8);}),_0x4e0a85(this[_0x369207(0x115)][_0x369207(0x286)](_0x1851b1['UNIVER_SHEET']),this[_0x369207(0x115)]['getTypeOfUnitDisposed$'](_0x1851b1[_0x369207(0x2b7)]))[_0x369207(0xbe)](_0xf80876(this[_0x369207(0xdd)]))[_0x369207(0x269)](_0x46731f=>{const _0x2474fd=_0x369207,_0x3ea938=_0x46731f[_0x2474fd(0x150)](),_0x182bd1=this['_entities'][_0x2474fd(0x135)](_0x3ea938);_0x182bd1&&(_0x182bd1['dispose'](),this[_0x2474fd(0x35a)][_0x2474fd(0x3e4)](_0x3ea938));});}async[_0x4d174b(0x158)](_0xa7e9ae,_0x1e7a2e){const _0x21270b=_0x4d174b,_0x5600a9=await this[_0x21270b(0x369)][_0x21270b(0x2eb)](_0xa7e9ae),_0x40a762=this[_0x21270b(0x36e)]['createInstance'](this[_0x21270b(0x3a9)](_0x1e7a2e),_0xa7e9ae,_0x1e7a2e,_0x5600a9);return await _0x40a762[_0x21270b(0x11f)](),this[_0x21270b(0x205)][_0x21270b(0xe2)](_0x40a762),_0x40a762;}[_0x4d174b(0x3a9)](_0x36d032){const _0x2946aa=_0x4d174b;switch(_0x36d032){case j['UNIVER_DOC']:return It;case j[_0x2946aa(0x202)]:return Et;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x36d032);}}};Oe=tt([_0xbfca41(_0x5b23af[_0x4d174b(0x132)],Oe),v(0x0,_0x5b671c(_0x49e10e)),v(0x1,_0x5b671c(ge)),v(0x2,_0x2269ec)],Oe);let ze=class extends _0x52c754{constructor(_0x299006,_0xce6e5f,_0x207ee5,_0x4189c3,_0x15d751,_0x35b285,_0xf3c9d4,_0x3c4d80,_0x5d7b40,_0xcf6dd,_0xc306f0,_0x5c8da3,_0x16a50e){const _0x2190e2=_0x4d174b;super(),l(this,'_state$',new _0x16da12(null)),l(this,_0x2190e2(0x332),this[_0x2190e2(0x2f2)][_0x2190e2(0x3bd)]()),l(this,'_state'),l(this,'_collaborationPaused',!0x1),l(this,'status$',this[_0x2190e2(0x332)][_0x2190e2(0xbe)](_0x120a2e(_0x302888=>_0x302888?_0x302888[_0x2190e2(0x14b)]:P[_0x2190e2(0x1fa)]),_0x473611(0x1))),l(this,_0x2190e2(0x2f6),!0x1),l(this,'_remoteChangesetQueue',[]),(this[_0x2190e2(0x1e2)]=_0x299006,this[_0x2190e2(0x2c6)]=_0xce6e5f,this['_session']=_0x207ee5,this[_0x2190e2(0x36e)]=_0x4189c3,this[_0x2190e2(0xca)]=_0x15d751,this[_0x2190e2(0x1b7)]=_0x35b285,this[_0x2190e2(0x13d)]=_0xf3c9d4,this[_0x2190e2(0x197)]=_0x3c4d80,this[_0x2190e2(0x30a)]=_0x5d7b40,this['_commandService']=_0xcf6dd,this[_0x2190e2(0x22b)]=_0xc306f0,this['_permissionService']=_0x5c8da3,this[_0x2190e2(0xe6)]=_0x16a50e);}get[_0x4d174b(0x387)](){const _0x1bd0d2=_0x4d174b;return this[_0x1bd0d2(0x20d)];}async[_0x4d174b(0x11f)](){const _0x5ea170=_0x4d174b;if(this[_0x5ea170(0x387)])throw new Error(_0x5ea170(0x367));await this[_0x5ea170(0x2a6)]();}['pauseCollaboration'](){const _0xcc38d5=_0x4d174b;return this[_0xcc38d5(0x33a)]=!0x0,_0x521fe6(()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x170471){const _0x4eddf8=_0x4d174b;this['_state']=_0x170471,this[_0x4eddf8(0x2f2)][_0x4eddf8(0xe2)](_0x170471);}async[_0x4d174b(0x2a6)](){const _0x59fc51=_0x4d174b;var _0x4972a5;return this[_0x59fc51(0x23a)](await this[_0x59fc51(0x16c)]()),this['_singleActiveUnitService']&&((_0x4972a5=this[_0x59fc51(0xe6)])==null||_0x4972a5[_0x59fc51(0x2be)](this[_0x59fc51(0x1e2)]),this[_0x59fc51(0xe4)](_0x521fe6(this[_0x59fc51(0xe6)][_0x59fc51(0x21e)](this[_0x59fc51(0x1e2)])['subscribe'](_0x4e489f=>{const _0x3c8326=_0x59fc51;this[_0x3c8326(0x30a)]['debug'](_0x3c8326(0x278),_0x3c8326(0x252),_0x4e489f),_0x4e489f===Ns[_0x3c8326(0x34f)]?(this['_messageService'][_0x3c8326(0x199)]({'content':this['_localeService']['t'](_0x3c8326(0xdf)),'type':_0x17d4c8[_0x3c8326(0x14e)]}),this[_0x3c8326(0x126)][_0x3c8326(0x3c9)](new _0x56d014(this['unitID'])['id'],!0x1)):this[_0x3c8326(0x126)][_0x3c8326(0x3c9)](new _0x56d014(this[_0x3c8326(0x1e2)])['id'],!0x0);})))),this[_0x59fc51(0xe4)](_0x521fe6(this['_session'][_0x59fc51(0xc2)][_0x59fc51(0x269)](_0x9cd4ca=>{const _0x3f464f=_0x59fc51;_0x9cd4ca===de[_0x3f464f(0x2cb)]?this[_0x3f464f(0x3a7)]():_0x9cd4ca===de[_0x3f464f(0x1fa)]&&this[_0x3f464f(0x1a1)]();}))),this['disposeWithMe'](_0x521fe6(this['_session'][_0x59fc51(0x1a9)][_0x59fc51(0x269)](_0x438e23=>{const _0x433581=_0x59fc51;try{switch(_0x438e23['eventID']){case _0x2c65dc[_0x433581(0x3e5)]:{this['_onRemoteChangeset'](_0xf28be5(_0x438e23[_0x433581(0x299)]));break;}case _0x2c65dc[_0x433581(0x37a)]:{this[_0x433581(0x19d)](_0x438e23[_0x433581(0x299)]);break;}case _0x2c65dc[_0x433581(0x17c)]:{this[_0x433581(0x129)]();break;}case _0x2c65dc[_0x433581(0x26e)]:{this['_onFetchMissResult'](_0x438e23[_0x433581(0x299)]['changesets'][_0x433581(0x288)](_0x4c7cb0=>_0xf28be5(_0x4c7cb0)));break;}case _0x2c65dc[_0x433581(0x270)]:this[_0x433581(0x129)]({'isPermissionRej':!0x0});}}catch(_0x2b5124){throw console[_0x433581(0xba)](_0x433581(0xe0),_0x2b5124),_0x2b5124;}}))),this[_0x59fc51(0x20d)];}[_0x4d174b(0x391)](){this['_transitionLocked']=!0x1;}[_0x4d174b(0x2d4)](){const _0x4bd3e9=_0x4d174b;if(this[_0x4bd3e9(0x2f6)])throw new Error(_0x4bd3e9(0x250));this['_transitionLocked']=!0x0;}['_onLocalMutation'](_0x37fbe5){const _0x5a4acd=_0x4d174b;this[_0x5a4acd(0x2d4)](),this[_0x5a4acd(0x23a)](this['_state'][_0x5a4acd(0x3e9)](_0x37fbe5)),this[_0x5a4acd(0x391)]();}[_0x4d174b(0x27f)](_0x5f0983){const _0x1f6b16=_0x4d174b;if(!(_0x5f0983[_0x1f6b16(0x143)]<=this['_revisionService'][_0x1f6b16(0x2af)](this['unitID']))){if(this['_collaborationPaused']){this[_0x1f6b16(0x2f7)][_0x1f6b16(0x328)](_0x5f0983);return;}this[_0x1f6b16(0xc0)](_0x5f0983);}}[_0x4d174b(0x237)](){const _0x44bca1=_0x4d174b;this[_0x44bca1(0x2f7)][_0x44bca1(0x1cb)](_0x401b18=>this[_0x44bca1(0xc0)](_0x401b18)),this[_0x44bca1(0x2f7)]=[];}[_0x4d174b(0xc0)](_0x2e3cad){const _0x4b3d02=_0x4d174b,_0xa460bb=this[_0x4b3d02(0x1b7)]['interceptor'][_0x4b3d02(0x190)](this[_0x4b3d02(0x1b7)][_0x4b3d02(0x2dd)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x2e3cad['mutations'],null)||_0x2e3cad[_0x4b3d02(0x185)],_0x4641a5={..._0x2e3cad,'mutations':_0xa460bb};this[_0x4b3d02(0x2d4)](),this['_updateState'](this['_state'][_0x4b3d02(0x10e)](_0x4641a5)),this[_0x4b3d02(0x391)]();}[_0x4d174b(0x19d)](_0x44152b){const _0x57cf26=_0x4d174b;this['_lockTransition'](),this['_updateState'](this['_state'][_0x57cf26(0x1a4)](_0x44152b)),this[_0x57cf26(0x391)]();}[_0x4d174b(0x129)](_0x10fc94){const _0x45f6c3=_0x4d174b;this[_0x45f6c3(0x2d4)](),this['_updateState'](this[_0x45f6c3(0x20d)][_0x45f6c3(0x1c9)](_0x10fc94)),this[_0x45f6c3(0x391)]();}[_0x4d174b(0x1fc)](_0x45850e){const _0x18b20f=_0x4d174b;if(!(this[_0x18b20f(0x20d)]instanceof Y))throw new TypeError(_0x18b20f(0x103));const _0x1e4abe=_0x45850e[_0x18b20f(0x288)](_0x1ae8f5=>{const _0x4ebe3f=_0x18b20f,_0x25d10b=this[_0x4ebe3f(0x1b7)][_0x4ebe3f(0x2dd)][_0x4ebe3f(0x190)](this[_0x4ebe3f(0x1b7)][_0x4ebe3f(0x2dd)]['getInterceptPoints']()[_0x4ebe3f(0x184)])(_0x1ae8f5[_0x4ebe3f(0x185)],null)||_0x1ae8f5['mutations'];return{..._0x1ae8f5,'mutations':_0x25d10b};});this['_lockTransition'](),this[_0x18b20f(0x23a)](this['_state'][_0x18b20f(0x131)](_0x1e4abe)),this[_0x18b20f(0x391)]();}['_toggleOffline'](){const _0x3169b5=_0x4d174b;this[_0x3169b5(0x2d4)](),this['_updateState'](this['_state']['toggleOffline']()),this[_0x3169b5(0x391)]();}[_0x4d174b(0x3a7)](){const _0x3769c4=_0x4d174b;this['_lockTransition'](),this['_updateState'](this[_0x3769c4(0x20d)]['toggleOnline']()),this[_0x3769c4(0x391)]();}async['_createInitialState'](){return new Promise(_0x2d00fd=>{const _0x5efe6c=_0x2798;this['_session'][_0x5efe6c(0xc2)]['pipe'](_0x15818d(0x1))[_0x5efe6c(0x269)](async _0x2fb6a7=>{const _0x5c56e0=_0x5efe6c;_0x2d00fd(await this[_0x5c56e0(0x156)](_0x2fb6a7===de[_0x5c56e0(0x2cb)]));});});}[_0x4d174b(0x21f)](){const _0x592863=_0x4d174b,_0x6fd294=this[_0x592863(0x1e2)];return{'onStateChange':(_0x3d4af2,_0x1ea1da)=>{const _0x33e937=_0x592863;if(_0x3d4af2!==this[_0x33e937(0x20d)])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x3d4af2[_0x33e937(0x14b)]+_0x33e937(0x136)+_0x1ea1da['status']+_0x33e937(0xd5)+this['_state'][_0x33e937(0x14b)]);this['_updateState'](_0x1ea1da);},'onSendChangeset':_0x234513=>{const _0x380b85=_0x592863,_0x253e31={'eventID':_0x2c65dc[_0x380b85(0x2c7)],'data':{'unitID':_0x234513[_0x380b85(0x1e2)],'unitType':this['_type'],'changeset':_0x234513,'memberID':this[_0x380b85(0x35f)][_0x380b85(0x33c)]()}};this['_session'][_0x380b85(0x2c4)](_0x253e31,this[_0x380b85(0x1e2)]);},'onMissingChangesets':({from:_0x181784,to:_0x377bd2})=>{const _0xba767a=_0x592863;this[_0xba767a(0x30a)]['debug']('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x181784+'\x20to\x20'+_0x377bd2);const _0x2b6e38={'eventID':_0x2c65dc[_0xba767a(0x133)],'data':{'unitID':_0x6fd294,'unitType':this[_0xba767a(0x2c6)],'from':_0x181784,'to':_0x377bd2}};this[_0xba767a(0x35f)][_0xba767a(0x2c4)](_0x2b6e38,this[_0xba767a(0x1e2)]);}};}async[_0x4d174b(0x156)](_0x5bc1fd){const _0x17a469=_0x4d174b;var _0x5cb81d,_0x3de4eb;const _0x5ed90f=await this[_0x17a469(0xca)][_0x17a469(0x2f9)](this[_0x17a469(0x1e2)]),_0xff483d=(_0x5cb81d=_0x5ed90f==null?void 0x0:_0x5ed90f['mutations'])!=null?_0x5cb81d:[],_0x5bb90d=(_0x3de4eb=_0x5ed90f==null?void 0x0:_0x5ed90f['awaitingChangeset'])!=null?_0x3de4eb:null,_0x3afbeb=this['unitID'];try{this['_replayCachedMutations'](_0x5bb90d,_0xff483d);}catch(_0x5a8cf0){this['_logService'][_0x17a469(0xba)](_0x5a8cf0);}const _0x14482c=this[_0x17a469(0x21f)]();if(_0x5bc1fd){const _0x110ef9=As(this['_injector'],_0x3afbeb,this[_0x17a469(0x2c6)],_0x5bb90d,_0xff483d,_0x14482c);return _0x110ef9 instanceof W?_0x110ef9[_0x17a469(0x13c)]():(_0x110ef9 instanceof G||_0x110ef9 instanceof q)&&_0x110ef9[_0x17a469(0x186)](),_0x110ef9;}return this['_injector']['createInstance'](Z,_0x3afbeb,this[_0x17a469(0x2c6)],_0x5bb90d,_0xff483d,_0x14482c);}['_replayCachedMutations'](_0x32451f,_0x5f49b2){const _0x57b35f=_0x4d174b;var _0x4dc607,_0x281cea;const _0x4a1021=this[_0x57b35f(0x1b7)][_0x57b35f(0x2dd)][_0x57b35f(0x190)](this[_0x57b35f(0x1b7)][_0x57b35f(0x2dd)][_0x57b35f(0x3c4)]()['COMPRESS_MUTATION_APPLY']);(_0x4dc607=_0x4a1021((_0x32451f==null?void 0x0:_0x32451f[_0x57b35f(0x185)])||[],null))==null||_0x4dc607[_0x57b35f(0x1cb)](_0x4a66b6=>this[_0x57b35f(0x178)][_0x57b35f(0x365)](_0x4a66b6['id'],_0x4a66b6[_0x57b35f(0x29f)])),(_0x281cea=_0x4a1021(_0x5f49b2||[],null))==null||_0x281cea[_0x57b35f(0x1cb)](_0x339480=>this[_0x57b35f(0x178)]['executeCommand'](_0x339480['id'],_0x339480[_0x57b35f(0x29f)]));}};ze=tt([v(0x3,_0x5b671c(_0x49e10e)),v(0x4,_0x5b671c(O)),v(0x5,_0x5b671c(_0x2224de)),v(0x6,_0x5b671c(_0x35ebff)),v(0x7,_0x5b671c(_0x5d7349)),v(0x8,_0x50a504),v(0x9,_0x5bc562),v(0xa,_0x1e8990),v(0xb,_0xf5bbc5),v(0xc,_0x466fab(et))],ze);let It=class extends ze{constructor(_0xb3555,_0x5386c5,_0x2b0e46,_0x44f9bf,_0x111316,_0x3d5030,_0x1063ea,_0x37bcf6,_0x411428,_0x9a4d4,_0x541059,_0x1f96c7,_0x414ec7,_0x382362,_0x1f97a0,_0x193709,_0x15fb6f){const _0x3c5dbf=_0x4d174b;super(_0xb3555,_0x5386c5,_0x2b0e46,_0x44f9bf,_0x111316,_0x3d5030,_0x1063ea,_0x37bcf6,_0x414ec7,_0x382362,_0x1f97a0,_0x193709,_0x15fb6f),this[_0x3c5dbf(0x1e2)]=_0xb3555,this['type']=_0x5386c5,this[_0x3c5dbf(0x1cd)]=_0x2b0e46,this[_0x3c5dbf(0xf2)]=_0x411428,this[_0x3c5dbf(0x1ae)]=_0x9a4d4,this[_0x3c5dbf(0xf1)]=_0x541059,this[_0x3c5dbf(0x2a5)]=_0x1f96c7;}[_0x4d174b(0x21f)](){const _0x5931b4=_0x4d174b,_0x2749ac=super['_createHandler']();return _0x2749ac['onTransformIME']=_0x1c0797=>this[_0x5931b4(0x1ae)][_0x5931b4(0x18e)](_0x1c0797),_0x2749ac[_0x5931b4(0x120)]=_0x23b65e=>this[_0x5931b4(0xf1)][_0x5931b4(0x107)](_0x23b65e),_0x2749ac[_0x5931b4(0x33b)]=_0x52bd3e=>this[_0x5931b4(0x2a5)][_0x5931b4(0x1a3)](_0x52bd3e),_0x2749ac['onTransformRemoteChangesetByIMECache']=_0x3ba237=>this[_0x5931b4(0x1ae)][_0x5931b4(0x1c7)](_0x3ba237),_0x2749ac;}async['_init'](){const _0x255671=_0x4d174b,_0xddfd87=await super[_0x255671(0x2a6)]();return this['disposeWithMe'](this['_commandService'][_0x255671(0x1e4)]((_0x48da41,_0x23fa20)=>{const _0x326490=_0x255671;if(_0x48da41['type']!==_0x4d4345[_0x326490(0x31a)]||_0x23fa20!=null&&_0x23fa20['fromCollab']||_0x23fa20!=null&&_0x23fa20[_0x326490(0x3b2)])return;const _0x449d8c=_0x48da41['params'];if((_0x449d8c==null?void 0x0:_0x449d8c[_0x326490(0x22a)])!==this[_0x326490(0x1e2)])return;let _0xa6db38=_0x48da41;if(_0xa6db38['id']===_0x257904['id']){const _0x7528b3=_0xa6db38[_0x326490(0x29f)];_0xa6db38={'id':_0x257904['id'],'type':_0x4d4345[_0x326490(0x31a)],'params':{'unitId':_0x7528b3[_0x326490(0x22a)],'actions':_0x7528b3[_0x326490(0x3da)],'textRanges':null}};}const _0x55cf89=this[_0x326490(0x1b7)][_0x326490(0x2dd)][_0x326490(0x190)](this[_0x326490(0x1b7)][_0x326490(0x2dd)][_0x326490(0x3c4)]()[_0x326490(0x2f8)])([_0xa6db38],null)||[_0xa6db38];this['_onLocalMutation'](_0x55cf89[0x0]);})),_0xddfd87;}};It=tt([v(0x3,_0x5b671c(_0x49e10e)),v(0x4,_0x5b671c(O)),v(0x5,_0x5b671c(_0x2224de)),v(0x6,_0x5b671c(_0x35ebff)),v(0x7,_0x5b671c(_0x5d7349)),v(0x8,_0x5b671c(_0x199abc)),v(0x9,_0x5b671c(Xe)),v(0xa,_0x5b671c(Je)),v(0xb,_0x5b671c(jt)),v(0xc,_0x50a504),v(0xd,_0x5bc562),v(0xe,_0x1e8990),v(0xf,_0xf5bbc5),v(0x10,_0x466fab(et))],It);let Et=class extends ze{constructor(_0x1223b4,_0x73e8de,_0x3526fc,_0x45e25b,_0x4cd143,_0x4c0ef8,_0x4faa8f,_0x36e028,_0x319502,_0x1b349f,_0xa005cb,_0x246d05,_0x2ab3e0,_0x2ec912){const _0x429a6f=_0x4d174b;super(_0x1223b4,_0x73e8de,_0x3526fc,_0x45e25b,_0x4cd143,_0x4c0ef8,_0x4faa8f,_0x36e028,_0x1b349f,_0xa005cb,_0x246d05,_0x2ab3e0,_0x2ec912),this[_0x429a6f(0x1e2)]=_0x1223b4,this[_0x429a6f(0x13a)]=_0x73e8de,this['session']=_0x3526fc,this[_0x429a6f(0x3e1)]=_0x319502;}[_0x4d174b(0x21f)](){const _0x30eba1=_0x4d174b,_0xe04672=super[_0x30eba1(0x21f)]();return _0xe04672[_0x30eba1(0x120)]=_0x3df2cf=>this[_0x30eba1(0x3e1)][_0x30eba1(0x107)](_0x3df2cf),_0xe04672;}async[_0x4d174b(0x2a6)](){const _0x299a5d=_0x4d174b,_0x5d40ee=await super[_0x299a5d(0x2a6)]();return this['disposeWithMe'](this[_0x299a5d(0x178)][_0x299a5d(0x1e4)]((_0x5d9261,_0x9b5d8f)=>{const _0x42606e=_0x299a5d;if(_0x5d9261[_0x42606e(0x13a)]!==_0x4d4345['MUTATION']||_0x9b5d8f!=null&&_0x9b5d8f[_0x42606e(0x242)]||_0x9b5d8f!=null&&_0x9b5d8f[_0x42606e(0x3b2)])return;const _0x47de62=_0x5d9261[_0x42606e(0x29f)];if((_0x47de62==null?void 0x0:_0x47de62[_0x42606e(0x22a)])!==this[_0x42606e(0x1e2)])return;const _0x1c3ffe=_0x5d9261,_0x12564d=this[_0x42606e(0x1b7)][_0x42606e(0x2dd)]['fetchThroughInterceptors'](this[_0x42606e(0x1b7)]['interceptor'][_0x42606e(0x3c4)]()[_0x42606e(0x2f8)])([_0x1c3ffe],null)||[_0x1c3ffe];this[_0x42606e(0x1b3)](_0x12564d[0x0]);})),_0x5d40ee;}};Et=tt([v(0x3,_0x5b671c(_0x49e10e)),v(0x4,_0x5b671c(O)),v(0x5,_0x5b671c(_0x2224de)),v(0x6,_0x5b671c(_0x35ebff)),v(0x7,_0x5b671c(_0x5d7349)),v(0x8,_0x5b671c(qe)),v(0x9,_0x50a504),v(0xa,_0x5bc562),v(0xb,_0x1e8990),v(0xc,_0xf5bbc5),v(0xd,_0x466fab(et))],Et);const ns=[_0x4d174b(0x27d),_0x4d174b(0x334),_0x4d174b(0x289),_0x4d174b(0x313),_0x4d174b(0x29b),_0x4d174b(0x335)];class xt extends _0x3d777f{constructor(){const _0x2d33a1=_0x4d174b;super(...arguments),l(this,_0x2d33a1(0x1c6),new Map()),l(this,'_colorIndex',0x0);}[_0x4d174b(0x1d5)](_0x2c7a5b){const _0x47ace6=_0x4d174b;if(this[_0x47ace6(0x1c6)][_0x47ace6(0x37c)](_0x2c7a5b))return this[_0x47ace6(0x1c6)][_0x47ace6(0x135)](_0x2c7a5b);const _0x1a9763=ns[this[_0x47ace6(0x320)]];return this[_0x47ace6(0x320)]=(this[_0x47ace6(0x320)]+0x1)%ns[_0x47ace6(0x2e1)],this[_0x47ace6(0x1c6)][_0x47ace6(0x34a)](_0x2c7a5b,_0x1a9763),_0x1a9763;}}var Zn=Object[_0x4d174b(0x1e3)],Qn=Object['getOwnPropertyDescriptor'],er=(_0x28445c,_0x18b0d0,_0x9406c,_0xad7db3)=>{for(var _0xb2fcc1=_0xad7db3>0x1?void 0x0:_0xad7db3?Qn(_0x18b0d0,_0x9406c):_0x18b0d0,_0xe21dd5=_0x28445c['length']-0x1,_0x47a9f3;_0xe21dd5>=0x0;_0xe21dd5--)(_0x47a9f3=_0x28445c[_0xe21dd5])&&(_0xb2fcc1=(_0xad7db3?_0x47a9f3(_0x18b0d0,_0x9406c,_0xb2fcc1):_0x47a9f3(_0xb2fcc1))||_0xb2fcc1);return _0xad7db3&&_0xb2fcc1&&Zn(_0x18b0d0,_0x9406c,_0xb2fcc1),_0xb2fcc1;},ce=(_0x1487f1,_0x2fe3ed)=>(_0x52877e,_0x2162f2)=>_0x2fe3ed(_0x52877e,_0x2162f2,_0x1487f1);const tr=0x12c,sr=0x64,ir=()=>{let _0x3dc8cb=[],_0x1df939=!0x1;return _0x388666=>{const _0x9f283c=_0x2798;_0x3dc8cb[_0x9f283c(0x328)](_0x388666),_0x1df939||(_0x1df939=!0x0,setTimeout(()=>{const _0xc42898=_0x9f283c;_0x3dc8cb[_0xc42898(0x1cb)](_0x4c8a73=>_0x4c8a73()),_0x3dc8cb=[],_0x1df939=!0x1;}));};};let Ct=class extends _0x52c754{constructor(_0x51f36c,_0x3fb168,_0x44fd1e,_0x41fa3f,_0xcf6515,_0x27a195,_0x30688c,_0x462c82){const _0x55571f=_0x4d174b;super(),l(this,_0x55571f(0x230),!0x1),l(this,_0x55571f(0x2a6),!0x1),l(this,_0x55571f(0x3f3),new _0x16da12(new Map())),l(this,_0x55571f(0x1dc),this[_0x55571f(0x3f3)][_0x55571f(0x3bd)]()),l(this,_0x55571f(0x1b8),new _0x16da12([])),l(this,_0x55571f(0x1b2),this['_roomMembers$'][_0x55571f(0xbe)](_0x552316(tr))),l(this,_0x55571f(0x28e),_0x7a8360((_0xd172c8,_0x4c500b)=>{const _0x545c7c=_0x55571f,_0x5eb5da={'eventID':_0x2c65dc[_0x545c7c(0x301)],'data':{'unitID':this[_0x545c7c(0x1e2)],'memberID':this['_session'][_0x545c7c(0x33c)](),'selection':_0xd693b7(_0xd172c8,_0x4c500b[_0x545c7c(0x1b4)])}};this[_0x545c7c(0x35f)][_0x545c7c(0x2c4)](_0x5eb5da,this[_0x545c7c(0x1e2)]);},sr)),(this[_0x55571f(0x1e2)]=_0x51f36c,this[_0x55571f(0x35f)]=_0x3fb168,this['_injector']=_0x44fd1e,this[_0x55571f(0xe8)]=_0x41fa3f,this[_0x55571f(0x2d9)]=_0xcf6515,this[_0x55571f(0x115)]=_0x27a195,this[_0x55571f(0x178)]=_0x30688c,this[_0x55571f(0x17b)]=_0x462c82);}get[_0x4d174b(0x3e8)](){const _0x3e884e=_0x4d174b;return this[_0x3e884e(0x3f3)][_0x3e884e(0x257)]();}get[_0x4d174b(0x1bf)](){const _0x5a3fde=_0x4d174b;return this[_0x5a3fde(0x1b8)][_0x5a3fde(0x257)]();}[_0x4d174b(0x15b)](){const _0x35f780=_0x4d174b;super[_0x35f780(0x15b)](),this[_0x35f780(0x3f3)][_0x35f780(0xe2)](new Map()),this[_0x35f780(0x3f3)][_0x35f780(0x25e)](),this[_0x35f780(0x1b8)][_0x35f780(0xe2)]([]),this[_0x35f780(0x1b8)][_0x35f780(0x25e)]();}[_0x4d174b(0x11f)](){const _0x52763d=_0x4d174b;this[_0x52763d(0x2a6)]||(this['_init']=!0x0,this[_0x52763d(0x35f)][_0x52763d(0xc2)][_0x52763d(0xbe)](_0xf80876(this[_0x52763d(0xdd)]))[_0x52763d(0x269)](_0x135174=>{const _0x49c06d=_0x52763d;_0x135174===de['ONLINE']?this[_0x49c06d(0x3a7)]():this[_0x49c06d(0x1a1)]();}),this['_session'][_0x52763d(0x1a9)][_0x52763d(0xbe)](_0xf80876(this[_0x52763d(0xdd)]))[_0x52763d(0x269)](_0x316c52=>{const _0x1b62e5=_0x52763d,_0x5b7701=_0x316c52['eventID'];_0x5b7701===_0x2c65dc[_0x1b62e5(0x301)]&&this[_0x1b62e5(0x283)](_0x316c52),_0x5b7701===_0x2c65dc[_0x1b62e5(0x3f4)]&&this[_0x1b62e5(0x1f8)](_0x316c52);}),this['_onRefRangeChange'](),this[_0x52763d(0xe4)](this[_0x52763d(0x178)][_0x52763d(0x1e4)](_0x5a6744=>{const _0x288d25=_0x52763d;if(this['_online']&&_0x5a6744['id']===_0x32ba42['id']&&_0x5a6744[_0x288d25(0x29f)][_0x288d25(0x22a)]===this[_0x288d25(0x1e2)]){const _0x3da4f0=_0x5a6744['params'];this[_0x288d25(0x28e)](_0x3da4f0[_0x288d25(0x373)],_0x3da4f0[_0x288d25(0x3b5)][0x0]);}})));}[_0x4d174b(0x283)](_0x27e27f){const _0x1d9b5c=_0x4d174b;var _0x493a4b,_0x23acc4;const {memberID:_0x2cbbcf,selection:_0x2f90d5}=_0x27e27f[_0x1d9b5c(0x299)],{sheetName:_0x1599f0,range:_0x344d4a}=_0x153292(_0x2f90d5),_0x2f1ce6={'name':(_0x23acc4=(_0x493a4b=this[_0x1d9b5c(0x2d9)][_0x1d9b5c(0x35b)](this[_0x1d9b5c(0x1e2)],_0x2cbbcf))==null?void 0x0:_0x493a4b[_0x1d9b5c(0x22e)])!=null?_0x23acc4:_0x1d9b5c(0x247),'range':this[_0x1d9b5c(0x293)](_0x1599f0,_0x344d4a),'sheetID':_0x1599f0,'color':this[_0x1d9b5c(0xe8)][_0x1d9b5c(0x1d5)](_0x2cbbcf),'selection':_0x2f90d5},_0x5ea376=this[_0x1d9b5c(0x3e8)];_0x5ea376[_0x1d9b5c(0x34a)](_0x2cbbcf,_0x2f1ce6),this[_0x1d9b5c(0x3f3)]['next'](_0x5ea376);}[_0x4d174b(0x1f8)](_0x463c61){const _0xb07c44=_0x4d174b,{memberID:_0x26bd0f}=_0x463c61[_0xb07c44(0x299)],_0x1fdf5d=this['cursorInfo'];_0x1fdf5d['delete'](_0x26bd0f),this[_0xb07c44(0x3f3)][_0xb07c44(0xe2)](_0x1fdf5d);}['_getMergeRange'](_0x234bda,_0x335ef5){const _0x4d6319=_0x4d174b;var _0x512180,_0x100133;const _0x410cc9=(_0x100133=(_0x512180=this[_0x4d6319(0x115)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x512180[_0x4d6319(0x2e7)](_0x234bda))==null?void 0x0:_0x100133[_0x4d6319(0x11d)]();return(_0x410cc9==null?void 0x0:_0x410cc9[_0x4d6319(0xbc)](_0x22737b=>_0x439eae[_0x4d6319(0x176)](_0x22737b,_0x335ef5)))||_0x335ef5;}['_onRefRangeChange'](){const _0x552af0=_0x4d174b,_0x377bbc=new _0x57d5bc(),_0x3814e9=ir(),_0x5c48c9=()=>{const _0x595ede=_0x2798;_0x377bbc['dispose']();const _0xe619f7=(_0x1ad789,_0x444625,_0xd9f226,_0x2e450a)=>{const _0x260243=_0x2798;let _0x3b7ab2=[];switch(_0x1ad789['id']){case _0x52a1d4[_0x260243(0x3b9)]:{_0x3b7ab2=_0x881384(_0x1ad789,_0x2e450a);break;}case _0x52a1d4[_0x260243(0xcd)]:{_0x3b7ab2=_0x1ca379(_0x1ad789,_0x2e450a);break;}case _0x52a1d4[_0x260243(0xce)]:{_0x3b7ab2=_0x326930(_0x1ad789,_0x2e450a);break;}case _0x52a1d4[_0x260243(0x109)]:{_0x3b7ab2=_0x3be4c3(_0x1ad789,_0x2e450a);break;}case _0x52a1d4[_0x260243(0x215)]:{_0x3b7ab2=_0x255bb6(_0x1ad789,_0x2e450a);break;}case _0x52a1d4[_0x260243(0x1bd)]:{_0x3b7ab2=_0x345f09(_0x1ad789,_0x2e450a);break;}case _0x52a1d4[_0x260243(0x388)]:{_0x3b7ab2=_0x4e0a2e(_0x1ad789,_0x2e450a);break;}case _0x52a1d4['RemoveColCommandId']:{_0x3b7ab2=_0x22e932(_0x1ad789,_0x2e450a);break;}case _0x52a1d4['RemoveRowCommandId']:{_0x3b7ab2=_0x17649b(_0x1ad789,_0x2e450a);break;}}const _0x4dbcb0=_0x43235e(_0x3b7ab2,_0x2e450a),_0x48a02e=this[_0x260243(0x3e8)][_0x260243(0x135)](_0x444625);if(_0x48a02e&&_0x4dbcb0){const _0x49d11f={..._0x48a02e,'range':_0x4dbcb0};this[_0x260243(0x3e8)][_0x260243(0x34a)](_0x444625,_0x49d11f),_0x3814e9(()=>{const _0x255e6a=_0x260243,_0x42f9d6=this[_0x255e6a(0x17b)][_0x255e6a(0x241)](_0x4dbcb0,_0x29652c=>(_0x42f9d6[_0x255e6a(0x15b)](),_0xe619f7(_0x29652c,_0x444625,_0xd9f226,_0x4dbcb0)));_0x377bbc['add'](_0x42f9d6);});}return{'redos':[],'undos':[]};};this[_0x595ede(0x3e8)][_0x595ede(0x1cb)]((_0x345c24,_0x54b252)=>{const _0x250cd6=_0x595ede,{range:_0x2eed8f,sheetID:_0x23f651}=_0x345c24,_0x493a6c=this[_0x250cd6(0x17b)][_0x250cd6(0x241)](_0x2eed8f,_0x10bb89=>(_0x493a6c['dispose'](),_0xe619f7(_0x10bb89,_0x54b252,_0x23f651,_0x2eed8f)));_0x377bbc[_0x250cd6(0x130)](_0x493a6c);});};this[_0x552af0(0xe4)](_0x521fe6(this[_0x552af0(0x3f3)][_0x552af0(0x269)](()=>{_0x5c48c9();})));}[_0x4d174b(0x3a7)](){const _0x539cb5=_0x4d174b;var _0x20f90b,_0x195fa8;if(this[_0x539cb5(0x230)]=!0x0,((_0x20f90b=this[_0x539cb5(0x115)]['getFocusedUnit']())==null?void 0x0:_0x20f90b[_0x539cb5(0x150)]())!==this[_0x539cb5(0x1e2)])return;const _0x39a7d3=(_0x195fa8=this[_0x539cb5(0x36e)][_0x539cb5(0x135)](_0x298766)[_0x539cb5(0x2ef)]())==null?void 0x0:_0x195fa8[0x0],_0x5abcce=this['_univerInstanceService'][_0x539cb5(0x2f1)](_0x1851b1[_0x539cb5(0x202)])[_0x539cb5(0x166)]();_0x39a7d3&&_0x5abcce&&this['_updateLocalCursor'](_0x5abcce['getSheetId'](),_0x39a7d3);}[_0x4d174b(0x1a1)](){const _0x2241ed=_0x4d174b;this[_0x2241ed(0x230)]=!0x1;}};Ct=er([ce(0x2,_0x5b671c(_0x49e10e)),ce(0x3,_0x5b671c(xt)),ce(0x4,_0x5b671c(te)),ce(0x5,_0x2269ec),ce(0x6,_0x5bc562),ce(0x7,_0x5b671c(_0x30eaeb))],Ct);var nr=Object[_0x4d174b(0x1e3)],rr=Object[_0x4d174b(0x13f)],or=(_0x5275b7,_0x3e12b8,_0x2df383,_0x390fb2)=>{const _0x28718c=_0x4d174b;for(var _0x2602db=_0x390fb2>0x1?void 0x0:_0x390fb2?rr(_0x3e12b8,_0x2df383):_0x3e12b8,_0x482993=_0x5275b7[_0x28718c(0x2e1)]-0x1,_0x59b043;_0x482993>=0x0;_0x482993--)(_0x59b043=_0x5275b7[_0x482993])&&(_0x2602db=(_0x390fb2?_0x59b043(_0x3e12b8,_0x2df383,_0x2602db):_0x59b043(_0x2602db))||_0x2602db);return _0x390fb2&&_0x2602db&&nr(_0x3e12b8,_0x2df383,_0x2602db),_0x2602db;},Q=(_0x6e717,_0x1cdc4b)=>(_0x22b788,_0x51edbf)=>_0x1cdc4b(_0x22b788,_0x51edbf,_0x6e717);const ar=0x12c,cr=0x64;let bt=class extends _0x52c754{constructor(_0x5590dd,_0x453e23,_0x14bf44,_0x1b8b11,_0x7ac4a1,_0x11a1c9,_0x41cd75,_0x4bda77,_0x4cb220){const _0x4aa358=_0x4d174b;super(),l(this,'_online',!0x1),l(this,_0x4aa358(0x2a6),!0x1),l(this,'_cursorInfo$',new _0x16da12(new Map())),l(this,_0x4aa358(0x1dc),this[_0x4aa358(0x3f3)][_0x4aa358(0x3bd)]()),l(this,_0x4aa358(0x1b8),new _0x16da12([])),l(this,_0x4aa358(0x1b2),this['_roomMembers$'][_0x4aa358(0xbe)](_0x552316(ar))),l(this,_0x4aa358(0x28e),_0x7a8360(_0x3f994d=>{const _0x2c426d=_0x4aa358,_0x4d0124={'eventID':_0x2c65dc['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x2c426d(0x35f)][_0x2c426d(0x33c)](),'selection':Ms(_0x3f994d)}};this['_session'][_0x2c426d(0x2c4)](_0x4d0124,this[_0x2c426d(0x1e2)]);},cr)),(this[_0x4aa358(0x1e2)]=_0x5590dd,this[_0x4aa358(0x35f)]=_0x453e23,this['_injector']=_0x14bf44,this[_0x4aa358(0xe8)]=_0x1b8b11,this[_0x4aa358(0x2d9)]=_0x7ac4a1,this[_0x4aa358(0x22d)]=_0x11a1c9,this[_0x4aa358(0x3ca)]=_0x41cd75,this[_0x4aa358(0x115)]=_0x4bda77,this['_commandService']=_0x4cb220);}get[_0x4d174b(0x3e8)](){const _0x420823=_0x4d174b;return this[_0x420823(0x3f3)]['getValue']();}get['roomMembers'](){const _0x23862b=_0x4d174b;return this[_0x23862b(0x1b8)][_0x23862b(0x257)]();}[_0x4d174b(0x15b)](){const _0x3bb1be=_0x4d174b;super[_0x3bb1be(0x15b)](),this[_0x3bb1be(0x3f3)][_0x3bb1be(0xe2)](new Map()),this['_cursorInfo$']['complete'](),this[_0x3bb1be(0x1b8)]['next']([]),this[_0x3bb1be(0x1b8)][_0x3bb1be(0x25e)]();}[_0x4d174b(0x11f)](){const _0x4a7b2b=_0x4d174b;this[_0x4a7b2b(0x2a6)]||(this[_0x4a7b2b(0x2a6)]=!0x0,this[_0x4a7b2b(0x35f)]['sessionStatus$'][_0x4a7b2b(0xbe)](_0xf80876(this[_0x4a7b2b(0xdd)]))[_0x4a7b2b(0x269)](_0x3a2e3e=>{const _0x5d9bc4=_0x4a7b2b;_0x3a2e3e===de[_0x5d9bc4(0x2cb)]?this['_toggleOnline']():this[_0x5d9bc4(0x1a1)]();}),this[_0x4a7b2b(0x35f)][_0x4a7b2b(0x1a9)]['pipe'](_0xf80876(this['dispose$']))['subscribe'](_0x3ebf78=>{const _0x104f34=_0x4a7b2b,_0x10c581=_0x3ebf78['eventID'];_0x10c581===_0x2c65dc[_0x104f34(0x301)]&&this[_0x104f34(0x283)](_0x3ebf78),_0x10c581===_0x2c65dc[_0x104f34(0x3f4)]&&this['_onCursorDelete'](_0x3ebf78);}),this[_0x4a7b2b(0xe4)](this['_commandService']['onCommandExecuted'](_0x30d700=>{const _0x489768=_0x4a7b2b,_0x21ec91=_0x30d700[_0x489768(0x29f)];_0x21ec91!=null&&this['_online']&&_0x30d700['id']===_0x3741bb['id']&&_0x21ec91[_0x489768(0x22a)]===this[_0x489768(0x1e2)]&&_0x21ec91['isEditing']===!0x1&&this['_updateLocalCursor'](_0x21ec91[_0x489768(0x142)]);})),this[_0x4a7b2b(0x22d)][_0x4a7b2b(0x31b)]['pipe'](_0xf80876(this[_0x4a7b2b(0xdd)]))[_0x4a7b2b(0x269)](_0x1828b2=>{const _0x2fdae2=_0x4a7b2b;if((_0x1828b2==null?void 0x0:_0x1828b2[_0x2fdae2(0x1e2)])!==this[_0x2fdae2(0x1e2)])return;const _0x2ddb15={'eventID':_0x2c65dc['UPDATE_CURSOR'],'data':_0x1828b2};this[_0x2fdae2(0x283)](_0x2ddb15);}),this[_0x4a7b2b(0xe4)](this['_commandService'][_0x4a7b2b(0x1e4)](_0x17b44d=>{const _0x5b08c2=_0x4a7b2b;if(_0x17b44d[_0x5b08c2(0x29f)]==null)return;const _0x3d0f11=_0x17b44d[_0x5b08c2(0x29f)];if(_0x17b44d['id']!==_0x257904['id']||_0x3d0f11['unitId']!==this[_0x5b08c2(0x1e2)])return;const _0x212afa={'id':_0x5b08c2(0x108),'params':_0x3d0f11},_0x15a60e=this[_0x5b08c2(0x3e8)];for(const [_0x498d5f,_0x425dec]of _0x15a60e){const _0x53e401={'id':_0x5b08c2(0x108),'params':{'unitId':this[_0x5b08c2(0x1e2)],'actions':null,'textRanges':_0x425dec[_0x5b08c2(0x142)]}},_0x1d61e1=this[_0x5b08c2(0x3ca)]['transformMutation'](_0x212afa,_0x53e401,!0x1);if(_0x8ecfd4(_0x1d61e1))throw _0x1d61e1[_0x5b08c2(0xba)];_0x15a60e[_0x5b08c2(0x34a)](_0x498d5f,{..._0x425dec,'ranges':_0x1d61e1[_0x5b08c2(0x160)][_0x5b08c2(0x29f)][_0x5b08c2(0x277)]});}queueMicrotask(()=>{const _0x1157ad=_0x5b08c2;this[_0x1157ad(0x3f3)][_0x1157ad(0xe2)](_0x15a60e);});})));}[_0x4d174b(0x283)](_0x39ac72){const _0xcd400d=_0x4d174b;var _0x43a723,_0x5c98af;const {memberID:_0x8bedb9,selection:_0x459538}=_0x39ac72[_0xcd400d(0x299)],_0x39151f=kn(_0x459538),_0x3dcc0a=(_0x5c98af=(_0x43a723=this[_0xcd400d(0x2d9)][_0xcd400d(0x35b)](this[_0xcd400d(0x1e2)],_0x8bedb9))==null?void 0x0:_0x43a723[_0xcd400d(0x22e)])!=null?_0x5c98af:_0xcd400d(0x247),_0x11a2a5={'color':this[_0xcd400d(0xe8)][_0xcd400d(0x1d5)](_0x8bedb9),'name':_0x3dcc0a,'ranges':_0x39151f},_0x5bce07=this[_0xcd400d(0x3e8)];_0x5bce07['set'](_0x8bedb9,_0x11a2a5),this['_cursorInfo$'][_0xcd400d(0xe2)](_0x5bce07);}[_0x4d174b(0x1f8)](_0xc91159){const _0x3c7faf=_0x4d174b,{memberID:_0x95356e}=_0xc91159[_0x3c7faf(0x299)],_0x4c6c26=this[_0x3c7faf(0x3e8)];_0x4c6c26[_0x3c7faf(0x3e4)](_0x95356e),this[_0x3c7faf(0x3f3)][_0x3c7faf(0xe2)](_0x4c6c26);}[_0x4d174b(0x3a7)](){const _0x4fc97b=_0x4d174b;var _0x2e60c8;if(this[_0x4fc97b(0x230)]=!0x0,((_0x2e60c8=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x2e60c8[_0x4fc97b(0x150)]())!==this[_0x4fc97b(0x1e2)])return;const _0xad46f6=this[_0x4fc97b(0x36e)][_0x4fc97b(0x135)](_0x2684a6)[_0x4fc97b(0x2ef)](),_0x27eea4=_0xad46f6==null?void 0x0:_0xad46f6[_0x4fc97b(0x288)](_0x1c3c28);Array[_0x4fc97b(0x15e)](_0x27eea4)&&_0x27eea4[_0x4fc97b(0x2e1)]>0x0&&this[_0x4fc97b(0x28e)](_0x27eea4);}[_0x4d174b(0x1a1)](){const _0x3abe37=_0x4d174b;this[_0x3abe37(0x230)]=!0x1;}};bt=or([Q(0x2,_0x5b671c(_0x49e10e)),Q(0x3,_0x5b671c(xt)),Q(0x4,_0x5b671c(te)),Q(0x5,_0x5b671c(jt)),Q(0x6,_0x174d0f),Q(0x7,_0x2269ec),Q(0x8,_0x5bc562)],bt);var hr=Object[_0x4d174b(0x1e3)],lr=Object[_0x4d174b(0x13f)],_r=(_0x42b032,_0x467c22,_0x50a7aa,_0x2801cd)=>{const _0x19e847=_0x4d174b;for(var _0x44c376=_0x2801cd>0x1?void 0x0:_0x2801cd?lr(_0x467c22,_0x50a7aa):_0x467c22,_0x49b6dd=_0x42b032[_0x19e847(0x2e1)]-0x1,_0x1a14bb;_0x49b6dd>=0x0;_0x49b6dd--)(_0x1a14bb=_0x42b032[_0x49b6dd])&&(_0x44c376=(_0x2801cd?_0x1a14bb(_0x467c22,_0x50a7aa,_0x44c376):_0x1a14bb(_0x44c376))||_0x44c376);return _0x2801cd&&_0x44c376&&hr(_0x467c22,_0x50a7aa,_0x44c376),_0x44c376;},ct=(_0x1f8188,_0x5f47d2)=>(_0x4af04f,_0x3fea61)=>_0x5f47d2(_0x4af04f,_0x3fea61,_0x1f8188);let me=class extends _0x52c754{constructor(_0x4d2438,_0xd2a5a3,_0x5b241a){const _0x356cac=_0x4d174b;super(),l(this,'_entities',new Map()),l(this,_0x356cac(0x205),new _0x49ef1a()),(this[_0x356cac(0x115)]=_0x4d2438,this[_0x356cac(0x36e)]=_0xd2a5a3,this[_0x356cac(0x369)]=_0x5b241a,this[_0x356cac(0x2a6)]());}[_0x4d174b(0x15b)](){const _0x83369=_0x4d174b;super[_0x83369(0x15b)](),this[_0x83369(0x205)][_0x83369(0x25e)](),this[_0x83369(0x35a)]['forEach'](_0x5d5387=>_0x5d5387[_0x83369(0x15b)]());}['getCollabCursors$'](_0x22c4fb){const _0xaca66c=_0x4d174b;return this[_0xaca66c(0x35a)][_0xaca66c(0x37c)](_0x22c4fb)?this[_0xaca66c(0x35a)][_0xaca66c(0x135)](_0x22c4fb)[_0xaca66c(0x1dc)]:this['_entityInit$'][_0xaca66c(0xbe)](_0x28963b(_0x338422=>_0x338422[_0xaca66c(0x1e2)]===_0x22c4fb),_0x46582b(_0x3609e4=>_0x3609e4[_0xaca66c(0x1dc)]));}[_0x4d174b(0x2a6)](){const _0x295108=_0x4d174b;this[_0x295108(0x115)][_0x295108(0x174)](_0x1851b1[_0x295108(0x202)])[_0x295108(0xbe)](_0xf80876(this[_0x295108(0xdd)]))[_0x295108(0x269)](async _0x10cca1=>{const _0x182f86=_0x295108,_0x19a0f2=_0x10cca1[_0x182f86(0x150)](),_0x27c641=await this[_0x182f86(0x37d)](_0x19a0f2);this[_0x182f86(0x205)]['next'](_0x27c641),this[_0x182f86(0x35a)][_0x182f86(0x34a)](_0x19a0f2,_0x27c641);}),this[_0x295108(0x115)][_0x295108(0x174)](_0x1851b1['UNIVER_DOC'])[_0x295108(0xbe)](_0xf80876(this[_0x295108(0xdd)]))[_0x295108(0xbe)](_0x28963b(_0x652056=>!_0x652056['getUnitId']()['startsWith']('__')))[_0x295108(0x269)](async _0x4cc8a3=>{const _0x54638a=_0x295108,_0x43a0d5=_0x4cc8a3['getUnitId'](),_0xc0ef6e=await this['_startDocCollabCursor'](_0x43a0d5);this['_entityInit$']['next'](_0xc0ef6e),this[_0x54638a(0x35a)]['set'](_0x43a0d5,_0xc0ef6e);}),_0x4e0a85(this['_univerInstanceService'][_0x295108(0x286)](_0x1851b1[_0x295108(0x2b7)]),this[_0x295108(0x115)][_0x295108(0x286)](_0x1851b1['UNIVER_SHEET']))['pipe'](_0xf80876(this[_0x295108(0xdd)]))[_0x295108(0x269)](_0x50bba4=>{const _0x57c2a5=_0x295108,_0x40fa75=_0x50bba4[_0x57c2a5(0x150)](),_0x1c1685=this[_0x57c2a5(0x35a)][_0x57c2a5(0x135)](_0x40fa75);_0x1c1685&&(_0x1c1685['dispose'](),this[_0x57c2a5(0x35a)][_0x57c2a5(0x3e4)](_0x40fa75));});}async['_startSheetCollabCursor'](_0x5741f8){const _0x5ee0e2=_0x4d174b,_0xc1d816=await this[_0x5ee0e2(0x369)]['requireSession'](_0x5741f8),_0x1f3760=this[_0x5ee0e2(0x36e)][_0x5ee0e2(0x3d3)](Ct,_0x5741f8,_0xc1d816);return _0x1f3760['init'](),_0x1f3760;}async[_0x4d174b(0x2c0)](_0x4b5b49){const _0x47b8c6=_0x4d174b,_0x18b7ca=await this[_0x47b8c6(0x369)]['requireSession'](_0x4b5b49),_0x2ede5a=this[_0x47b8c6(0x36e)][_0x47b8c6(0x3d3)](bt,_0x4b5b49,_0x18b7ca);return _0x2ede5a[_0x47b8c6(0x11f)](),_0x2ede5a;}};me=_r([_0xbfca41(_0x5b23af[_0x4d174b(0x132)],me),ct(0x0,_0x2269ec),ct(0x1,_0x5b671c(_0x49e10e)),ct(0x2,_0x5b671c(ge))],me);const we=0x14,rs=0xc8,ht=0x4,ur=0x5;function dr(_0x3c5079,_0x2d5088){const _0x433743=_0x4d174b;let {radius:_0x2762ad,width:_0xef11b4,height:_0x56cb84}=_0x2d5088;_0x2762ad=_0x2762ad!=null?_0x2762ad:0x0,_0xef11b4=_0xef11b4!=null?_0xef11b4:0x1e,_0x56cb84=_0x56cb84!=null?_0x56cb84:0x1e;let _0x5d746f=0x0,_0x5e8a50=0x0,_0x1faacb=0x0;_0x5d746f=_0x5e8a50=_0x1faacb=Math['min'](_0x2762ad,_0xef11b4/0x2,_0x56cb84/0x2),_0x3c5079['beginPath'](),_0x3c5079[_0x433743(0x2b8)](_0x5d746f,0x0),_0x3c5079[_0x433743(0x1ec)](_0xef11b4-_0x5e8a50,0x0),_0x3c5079[_0x433743(0x258)](_0xef11b4-_0x5e8a50,_0x5e8a50,_0x5e8a50,Math['PI']*0x3/0x2,0x0,!0x1),_0x3c5079[_0x433743(0x1ec)](_0xef11b4,_0x56cb84-_0x1faacb),_0x3c5079[_0x433743(0x258)](_0xef11b4-_0x1faacb,_0x56cb84-_0x1faacb,_0x1faacb,0x0,Math['PI']/0x2,!0x1),_0x3c5079['lineTo'](0x0,_0x56cb84),_0x3c5079['lineTo'](0x0,_0x5d746f),_0x3c5079['arc'](_0x5d746f,_0x5d746f,_0x5d746f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3c5079[_0x433743(0x318)](),_0x2d5088[_0x433743(0x1a2)]&&(_0x3c5079[_0x433743(0x32f)](),_0x3c5079[_0x433743(0x24e)]=_0x2d5088[_0x433743(0x1a2)],_0x2d5088[_0x433743(0x16a)]==='evenodd'?_0x3c5079[_0x433743(0x1a2)]('evenodd'):_0x3c5079['fill'](),_0x3c5079['restore']());}class st extends _0x4a0992{constructor(_0xe11e81,_0x272da8){const _0x38f892=_0x4d174b;super(_0xe11e81,_0x272da8),l(this,_0x38f892(0x377)),l(this,'text'),(this[_0x38f892(0x377)]=_0x272da8==null?void 0x0:_0x272da8[_0x38f892(0x377)],this['text']=_0x272da8==null?void 0x0:_0x272da8[_0x38f892(0x39a)]);}static[_0x4d174b(0xe1)](_0x41d8e2,_0x176446){const _0x4bfa8f=_0x4d174b,{text:_0x156d1a,color:_0x32e790}=_0x176446;_0x41d8e2['save'](),_0x41d8e2['font']=_0x4bfa8f(0x36d);const _0x3772c3=_0x41d8e2[_0x4bfa8f(0x15a)](_0x156d1a)[_0x4bfa8f(0x2fa)],_0x27439d=Math[_0x4bfa8f(0x2d2)](_0x3772c3+0x2*ht,rs);dr(_0x41d8e2,{'height':we,'radius':0x4,'width':_0x27439d,'fill':_0x32e790,'evented':!0x1}),_0x41d8e2[_0x4bfa8f(0x24e)]=_0x4bfa8f(0x1b9);const _0x4baf55=ht,_0x4b407b=we-ur,_0x142628=rs-0x2*ht;if(_0x3772c3>_0x142628){let _0x44f09e='',_0x3ee199=0x0;for(const _0x467c62 of _0x156d1a){const _0x3d2f47=_0x41d8e2[_0x4bfa8f(0x15a)](_0x467c62)[_0x4bfa8f(0x2fa)];if(_0x3ee199+_0x3d2f47<=_0x142628-_0x41d8e2[_0x4bfa8f(0x15a)]('...')['width'])_0x44f09e+=_0x467c62,_0x3ee199+=_0x3d2f47;else{_0x44f09e+='...';break;}}_0x41d8e2[_0x4bfa8f(0x1ea)](_0x44f09e,_0x4baf55,_0x4b407b);}else _0x41d8e2['fillText'](_0x156d1a,_0x4baf55,_0x4b407b);_0x41d8e2['restore']();}[_0x4d174b(0x30f)](_0x401697){const _0x1f9294=_0x4d174b;st[_0x1f9294(0xe1)](_0x401697,this);}}const mr=0x1,fr=1.5;class gr extends _0x4a0992{constructor(_0x3cf0ea,_0x44123c){const _0x355a35=_0x4d174b;super(_0x3cf0ea,_0x44123c),l(this,_0x355a35(0x2fe)),l(this,_0x355a35(0x3d9),!0x1),l(this,_0x355a35(0x3ab)),l(this,_0x355a35(0x22c),''),l(this,'_labelPosition','top'),l(this,'_backgroundColor'),(_0x44123c&&this[_0x355a35(0x38f)](_0x44123c),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x355a35(0x38f)]({'hovered':!0x0})),this[_0x355a35(0x1ee)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0xbca1ce){const _0x3653bf=_0x4d174b;var _0x2e5620,_0x26bcd7,_0x178f79,_0x2760ba,_0x5ac0a1,_0xec6cd9;this[_0x3653bf(0x2fe)]=(_0x2e5620=_0xbca1ce[_0x3653bf(0x377)])!=null?_0x2e5620:this[_0x3653bf(0x2fe)],this[_0x3653bf(0x3d9)]=(_0x26bcd7=_0xbca1ce[_0x3653bf(0x3ba)])!=null?_0x26bcd7:this[_0x3653bf(0x3d9)],this[_0x3653bf(0x3ab)]=(_0x178f79=_0xbca1ce[_0x3653bf(0x1b4)])!=null?_0x178f79:this[_0x3653bf(0x3ab)],this[_0x3653bf(0x22c)]=(_0x2760ba=_0xbca1ce[_0x3653bf(0x22e)])!=null?_0x2760ba:this['_name'],this[_0x3653bf(0x244)]=(_0x5ac0a1=_0xbca1ce['labelPosition'])!=null?_0x5ac0a1:this[_0x3653bf(0x244)],this[_0x3653bf(0x347)]=(_0xec6cd9=_0xbca1ce['backgroundColor'])!=null?_0xec6cd9:this['_backgroundColor'],this['transformByState']({'width':_0xbca1ce['width'],'height':_0xbca1ce[_0x3653bf(0x1ac)]});}[_0x4d174b(0x19b)](_0x328e6f){const _0x219a86=_0x4d174b,{row:_0x5c739d,column:_0x1fa5ba}=_0x328e6f;if(_0x5c739d>=this[_0x219a86(0x3ab)][_0x219a86(0xc8)]&&_0x5c739d<=this[_0x219a86(0x3ab)]['endRow']&&_0x1fa5ba>=this['_range'][_0x219a86(0x152)]&&_0x1fa5ba<=this[_0x219a86(0x3ab)]['endColumn']){this[_0x219a86(0x38f)]({'hovered':!0x0});return;}this[_0x219a86(0x38f)]({'hovered':!0x1});}[_0x4d174b(0x356)](_0x427071){return!0x1;}[_0x4d174b(0x30f)](_0x840be7){const _0x66fc70=_0x4d174b;_0x390a18[_0x66fc70(0xe1)](_0x840be7,{'width':this[_0x66fc70(0x2fa)],'height':this[_0x66fc70(0x1ac)],'strokeWidth':fr,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x66fc70(0x347)]}),this[_0x66fc70(0x3d9)]&&(_0x840be7[_0x66fc70(0x32f)](),_0x840be7['transform'](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x66fc70(0x15d)?0x0:-we),st['drawWith'](_0x840be7,{'text':this[_0x66fc70(0x22c)],'color':this[_0x66fc70(0x2fe)]}),_0x840be7[_0x66fc70(0x2ab)]());}}var Sr=Object[_0x4d174b(0x1e3)],vr=Object[_0x4d174b(0x13f)],pr=(_0x43fad3,_0x3b8824,_0x309b77,_0x230978)=>{const _0x411c6e=_0x4d174b;for(var _0x5b5e16=_0x230978>0x1?void 0x0:_0x230978?vr(_0x3b8824,_0x309b77):_0x3b8824,_0x23a5b7=_0x43fad3[_0x411c6e(0x2e1)]-0x1,_0x567202;_0x23a5b7>=0x0;_0x23a5b7--)(_0x567202=_0x43fad3[_0x23a5b7])&&(_0x5b5e16=(_0x230978?_0x567202(_0x3b8824,_0x309b77,_0x5b5e16):_0x567202(_0x5b5e16))||_0x5b5e16);return _0x230978&&_0x5b5e16&&Sr(_0x3b8824,_0x309b77,_0x5b5e16),_0x5b5e16;},lt=(_0x307cb8,_0x481ecb)=>(_0x2e42a1,_0x59e497)=>_0x481ecb(_0x2e42a1,_0x59e497,_0x307cb8);const Ir=0x1389;let Tt=class extends _0x52c754{constructor(_0x49fe7c,_0x3db4c9,_0x223182,_0x1e21cd){const _0x57bc39=_0x4d174b;super(),l(this,_0x57bc39(0x3c2),new Set()),l(this,_0x57bc39(0x3d6),null),(this[_0x57bc39(0x12d)]=_0x49fe7c,this[_0x57bc39(0x19c)]=_0x3db4c9,this[_0x57bc39(0x2ee)]=_0x223182,this[_0x57bc39(0x2b9)]=_0x1e21cd,this['_init']());}[_0x4d174b(0x2a6)](){const _0x73ee20=_0x4d174b;this[_0x73ee20(0x19c)]['currentSkeleton$'][_0x73ee20(0xbe)](_0x21a0e1(this[_0x73ee20(0xdd)]),_0x6b8f52(_0x115c15=>{const _0x28eab7=_0x73ee20;if(_0x115c15){const _0x1d3b1b=_0x115c15[_0x28eab7(0x36f)];return _0x2d61f0(this[_0x28eab7(0x2ee)]['getCollabCursors$'](this[_0x28eab7(0x12d)][_0x28eab7(0x22a)]),this[_0x28eab7(0x2b9)][_0x28eab7(0x3c0)])['pipe'](_0x120a2e(([_0x54ae91,_0x1d9fa9])=>{const _0x4ee779=_0x28eab7,_0x7878b3=new Map();return _0x54ae91[_0x4ee779(0x1cb)]((_0x3bbaaa,_0x1176f2)=>{const _0x36544b=_0x4ee779;if(_0x3bbaaa[_0x36544b(0x284)]===_0x1d3b1b){const _0x15adb7={..._0x3bbaaa};_0x15adb7[_0x36544b(0x377)]=_0x1d9fa9[_0x3bbaaa['color']],_0x7878b3[_0x36544b(0x34a)](_0x1176f2,_0x15adb7);}}),{'skeleton':_0x115c15,'cursors':_0x7878b3};}));}return _0x1e95ea({'skeleton':null,'cursors':new Map()});}))[_0x73ee20(0x269)](({skeleton:_0x2aeb39,cursors:_0x4cd046})=>{const _0x2d47eb=_0x73ee20;this[_0x2d47eb(0x3ce)](),_0x2aeb39&&this['_updateCollabCursors'](_0x2aeb39,_0x4cd046);}),this['_sheetSkeletonManagerService'][_0x73ee20(0x192)][_0x73ee20(0x269)](_0x24c1d8=>{const _0x559e59=_0x73ee20;if(_0x24c1d8==null)return;const {skeleton:_0x2e16b9}=_0x24c1d8,{scene:_0x23e585}=this[_0x559e59(0x12d)];_0x23e585[_0x559e59(0x204)][_0x559e59(0x35c)](_0x7a8360(_0x478f81=>{const _0x2ef94c=_0x559e59;var _0x57a64c,_0x393fae;const {offsetX:_0x504ed9,offsetY:_0x3be40c}=_0x478f81,{x:_0x3a5147,y:_0x5e92ec}=_0x23e585[_0x2ef94c(0x210)](_0x3af05d[_0x2ef94c(0x24b)]([_0x504ed9,_0x3be40c])),{scaleX:_0x41246d,scaleY:_0x55f535}=_0x23e585[_0x2ef94c(0x3eb)](),_0x3db744=_0x23e585[_0x2ef94c(0x12a)](_0x94aa38['VIEW_MAIN']),_0x149cd0=_0x23e585[_0x2ef94c(0x333)](_0x3af05d[_0x2ef94c(0x24b)]([_0x3a5147,_0x5e92ec]),_0x3db744),_0x2c048a=_0x2e16b9[_0x2ef94c(0x343)](_0x504ed9,_0x3be40c,_0x41246d,_0x55f535,_0x149cd0);((_0x57a64c=this[_0x2ef94c(0x3d6)])==null?void 0x0:_0x57a64c[_0x2ef94c(0x1e7)])===_0x2c048a[_0x2ef94c(0x1e7)]&&((_0x393fae=this['_lastPointer'])==null?void 0x0:_0x393fae['row'])===_0x2c048a[_0x2ef94c(0x2ce)]||this[_0x2ef94c(0x3c2)]['forEach'](_0x1c37c7=>{_0x1c37c7['onMouseMove'](_0x2c048a);});},0x64));});}[_0x4d174b(0x2b3)](_0x4efbbd,_0x404322){const _0xca21cc=_0x4d174b;var _0x1688fa;const _0x1fccf4=(_0x1688fa=this[_0xca21cc(0x19c)]['getCurrent']())==null?void 0x0:_0x1688fa[_0xca21cc(0xe7)];if(!_0x1fccf4)return;const _0x45ed9c=this[_0xca21cc(0x2ff)]();if(!_0x45ed9c)return;this[_0xca21cc(0x3c2)][_0xca21cc(0x1cb)](_0x358f27=>{const _0x38e500=_0xca21cc;_0x358f27[_0x38e500(0x303)]();});const {scene:_0x306e2a}=_0x45ed9c,_0x5138b7=Er(Array[_0xca21cc(0x264)](_0x404322[_0xca21cc(0x1eb)]()))['map'](_0x209a84=>{const _0x1c4be6=_0xca21cc,{color:_0x4d646c,range:_0xa14b55,name:_0x432cf9,selection:_0x15b0ae,sheetID:_0x481a19}=_0x209a84,{startColumn:_0x93feed,startRow:_0x3ed60d,endColumn:_0x4a7ee1,endRow:_0x374143}=_0xa14b55,_0x2271b0=_0x1c49f8(_0x3ed60d,_0x93feed,_0x306e2a,_0x1fccf4),_0x30a7d8=_0x1c49f8(_0x374143,_0x4a7ee1,_0x306e2a,_0x1fccf4),{columnHeaderHeightAndMarginTop:_0x3aadb3}=_0x1fccf4,{startX:_0x4f2f74,startY:_0x1babf0}=_0x2271b0,{endX:_0x5f015a,endY:_0x4833d7}=_0x30a7d8,_0x508e8f=_0x5f015a-_0x4f2f74,_0x1e2d6f=_0x4833d7-_0x1babf0,_0x43c369={'labelPosition':_0x1babf0-_0x3aadb3>=we?_0x1c4be6(0x361):_0x1c4be6(0x15d),'sheetID':_0x481a19,'range':_0xa14b55,'color':_0x4d646c,'name':_0x432cf9,'selection':_0x15b0ae,'left':_0x4f2f74,'top':_0x1babf0,'width':_0x508e8f,'height':_0x1e2d6f,'evented':!0x1,'zIndex':Ir};return new gr(_0x432cf9,_0x43c369);});_0x306e2a[_0xca21cc(0x235)](_0x5138b7,mr),this[_0xca21cc(0x3c2)]=new Set(_0x5138b7);}[_0x4d174b(0x3ce)](){const _0x532070=_0x4d174b;var _0x2a0dde;(_0x2a0dde=this['_cursors'])==null||_0x2a0dde['forEach'](_0xbcf6f3=>_0xbcf6f3[_0x532070(0x15b)]());}[_0x4d174b(0x2ff)](){const _0x123897=_0x4d174b;return _0x361cc8(this[_0x123897(0x12d)]['unit'],this[_0x123897(0x12d)]);}};Tt=pr([lt(0x1,_0x5b671c(_0xccc92)),lt(0x2,_0x5b671c(me)),lt(0x3,_0x5b671c(_0x2191ad))],Tt);function Er(_0x2a335d){const _0xba3402=_0x4d174b,_0x4c9a01=new Map();return _0x2a335d[_0xba3402(0x1cb)](_0xb81711=>{const _0x29eb6f=_0xba3402;if(_0x4c9a01['has'](_0xb81711['selection'])){const _0x5de168=_0x4c9a01[_0x29eb6f(0x135)](_0xb81711[_0x29eb6f(0x330)]);_0x5de168[_0x29eb6f(0x22e)]+=',\x20'+_0xb81711[_0x29eb6f(0x22e)];}else _0x4c9a01[_0x29eb6f(0x34a)](_0xb81711[_0x29eb6f(0x330)],_0xb81711);}),Array[_0xba3402(0x264)](_0x4c9a01[_0xba3402(0x1eb)]());}var A=function(){const _0x184090=_0x4d174b;return A=Object[_0x184090(0xf0)]||function(_0x31d7e6){const _0x19656f=_0x184090;for(var _0x1b4578,_0xb552db=0x1,_0x2155b5=arguments[_0x19656f(0x2e1)];_0xb552db<_0x2155b5;_0xb552db++){_0x1b4578=arguments[_0xb552db];for(var _0xf30e21 in _0x1b4578)Object[_0x19656f(0x12f)][_0x19656f(0x221)][_0x19656f(0x37f)](_0x1b4578,_0xf30e21)&&(_0x31d7e6[_0xf30e21]=_0x1b4578[_0xf30e21]);}return _0x31d7e6;},A[_0x184090(0xfb)](this,arguments);},Cr=function(_0x3d26e9,_0x33c137){const _0x557564=_0x4d174b;var _0x27463a={};for(var _0x14923e in _0x3d26e9)Object['prototype']['hasOwnProperty'][_0x557564(0x37f)](_0x3d26e9,_0x14923e)&&_0x33c137['indexOf'](_0x14923e)<0x0&&(_0x27463a[_0x14923e]=_0x3d26e9[_0x14923e]);if(_0x3d26e9!=null&&typeof Object['getOwnPropertySymbols']==_0x557564(0x265)){for(var _0x13c8a7=0x0,_0x14923e=Object[_0x557564(0xc7)](_0x3d26e9);_0x13c8a7<_0x14923e['length'];_0x13c8a7++)_0x33c137[_0x557564(0x1f1)](_0x14923e[_0x13c8a7])<0x0&&Object[_0x557564(0x12f)][_0x557564(0x368)][_0x557564(0x37f)](_0x3d26e9,_0x14923e[_0x13c8a7])&&(_0x27463a[_0x14923e[_0x13c8a7]]=_0x3d26e9[_0x14923e[_0x13c8a7]]);}return _0x27463a;},Ht=_0xc5b87(function(_0x840fb8,_0x306105){const _0x40ebef=_0x4d174b;var _0x3ed32c=_0x840fb8[_0x40ebef(0x20b)],_0x3c3d2f=_0x840fb8['id'],_0x3a015b=_0x840fb8[_0x40ebef(0x21b)],_0x5bca80=_0x840fb8[_0x40ebef(0x366)],_0x48c894=Cr(_0x840fb8,[_0x40ebef(0x20b),'id',_0x40ebef(0x21b),'extend']),_0x4e7b3f='univerjs-icon\x20univerjs-icon-'[_0x40ebef(0x3df)](_0x3c3d2f,'\x20')[_0x40ebef(0x3df)](_0x3a015b||'')[_0x40ebef(0x123)](),_0xdb8c8e=_0x485761('_'[_0x40ebef(0x3df)](Rr()));return ys(_0x3ed32c,''[_0x40ebef(0x3df)](_0x3c3d2f),{'defIds':_0x3ed32c[_0x40ebef(0xeb)],'idSuffix':_0xdb8c8e['current']},A({'ref':_0x306105,'className':_0x4e7b3f},_0x48c894),_0x5bca80);});function ys(_0xdb47ad,_0x596681,_0x509eaa,_0x12b036,_0x12efba){const _0x193422=_0x4d174b;return _0x33566a(_0xdb47ad['tag'],A(A({'key':_0x596681},br(_0xdb47ad,_0x509eaa,_0x12efba)),_0x12b036),(Tr(_0xdb47ad,_0x509eaa)[_0x193422(0x2d7)]||[])['map'](function(_0x4cf873,_0x2e6c7c){const _0x293066=_0x193422;return ys(_0x4cf873,''[_0x293066(0x3df)](_0x596681,'-')[_0x293066(0x3df)](_0xdb47ad['tag'],'-')[_0x293066(0x3df)](_0x2e6c7c),_0x509eaa,void 0x0,_0x12efba);}));}function br(_0x48f602,_0x19c41f,_0x5d0bfa){const _0x5ef0e1=_0x4d174b;var _0x293b91=A({},_0x48f602[_0x5ef0e1(0x1ca)]);_0x5d0bfa!=null&&_0x5d0bfa[_0x5ef0e1(0x122)]&&_0x293b91[_0x5ef0e1(0x1a2)]===_0x5ef0e1(0x122)&&(_0x293b91['fill']=_0x5d0bfa[_0x5ef0e1(0x122)]);var _0x474a4d=_0x19c41f['defIds'];return!_0x474a4d||_0x474a4d['length']===0x0||(_0x48f602[_0x5ef0e1(0x26f)]===_0x5ef0e1(0x213)&&_0x293b91[_0x5ef0e1(0x33e)]&&(_0x293b91[_0x5ef0e1(0x33e)]=_0x293b91[_0x5ef0e1(0x33e)]+_0x19c41f[_0x5ef0e1(0x3ea)]),Object['entries'](_0x293b91)[_0x5ef0e1(0x1cb)](function(_0x321f69){const _0x2a7f7c=_0x5ef0e1;var _0x3b4a52=_0x321f69[0x0],_0x32774d=_0x321f69[0x1];typeof _0x32774d==_0x2a7f7c(0x2b2)&&(_0x293b91[_0x3b4a52]=_0x32774d['replace'](/url\(#(.*)\)/,_0x2a7f7c(0x34b)[_0x2a7f7c(0x3df)](_0x19c41f[_0x2a7f7c(0x3ea)],')')));})),_0x293b91;}function Tr(_0xd00680,_0x1d28ef){const _0x3dd8d3=_0x4d174b;var _0x3e44d6,_0x3817d9=_0x1d28ef['defIds'];return!_0x3817d9||_0x3817d9[_0x3dd8d3(0x2e1)]===0x0?_0xd00680:_0xd00680[_0x3dd8d3(0x26f)]===_0x3dd8d3(0x161)&&(!((_0x3e44d6=_0xd00680[_0x3dd8d3(0x2d7)])===null||_0x3e44d6===void 0x0)&&_0x3e44d6[_0x3dd8d3(0x2e1)])?A(A({},_0xd00680),{'children':_0xd00680[_0x3dd8d3(0x2d7)]['map'](function(_0x49e3fa){const _0x1882f1=_0x3dd8d3;return typeof _0x49e3fa['attrs']['id']=='string'&&_0x3817d9&&_0x3817d9['indexOf'](_0x49e3fa['attrs']['id'])>-0x1?A(A({},_0x49e3fa),{'attrs':A(A({},_0x49e3fa[_0x1882f1(0x1ca)]),{'id':_0x49e3fa[_0x1882f1(0x1ca)]['id']+_0x1d28ef[_0x1882f1(0x3ea)]})}):_0x49e3fa;})}):_0xd00680;}function Rr(){const _0x511476=_0x4d174b;return Math[_0x511476(0x187)]()[_0x511476(0xec)](0x24)['substring'](0x2,0x8);}Ht[_0x4d174b(0x246)]='UniverIcon';var Or={'tag':'svg','attrs':{'fill':'none','viewBox':_0x4d174b(0x34e),'width':'1em','height':_0x4d174b(0x1fb)},'children':[{'tag':'g','attrs':{'clipPath':_0x4d174b(0x2ad)},'children':[{'tag':'path','attrs':{'stroke':_0x4d174b(0x195),'d':_0x4d174b(0x375),'strokeLinecap':_0x4d174b(0x3ae),'strokeLinejoin':_0x4d174b(0x3ae),'strokeWidth':1.2}}]},{'tag':_0x4d174b(0x161),'attrs':{},'children':[{'tag':_0x4d174b(0x3c1),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x4d174b(0x11e)}}]}]}],'defIds':[_0x4d174b(0x2b5)]},Us=_0xc5b87(function(_0x309041,_0x4064de){const _0x14b769=_0x4d174b;return _0x33566a(Ht,Object[_0x14b769(0xf0)]({},_0x309041,{'id':_0x14b769(0xff),'ref':_0x4064de,'icon':Or}));});Us['displayName']=_0x4d174b(0x2de);var Dr={'tag':_0x4d174b(0x3bf),'attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x4d174b(0x1fb)},'children':[{'tag':'g','attrs':{'clipPath':_0x4d174b(0x2ba)},'children':[{'tag':_0x4d174b(0x31f),'attrs':{'stroke':_0x4d174b(0x195),'d':_0x4d174b(0x3a8),'strokeLinecap':'round','strokeLinejoin':_0x4d174b(0x3ae),'strokeWidth':1.2}}]},{'tag':_0x4d174b(0x161),'attrs':{},'children':[{'tag':_0x4d174b(0x3c1),'attrs':{'id':_0x4d174b(0x162)},'children':[{'tag':_0x4d174b(0x31f),'attrs':{'fill':_0x4d174b(0x302),'d':_0x4d174b(0x11e),'transform':_0x4d174b(0x3b3)}}]}]}],'defIds':[_0x4d174b(0x162)]},Ls=_0xc5b87(function(_0xbeb061,_0x3ee872){const _0x2450e6=_0x4d174b;return _0x33566a(Ht,Object[_0x2450e6(0xf0)]({},_0xbeb061,{'id':_0x2450e6(0x12c),'ref':_0x3ee872,'icon':Dr}));});Ls[_0x4d174b(0x246)]=_0x4d174b(0x17a);const Pr=_0x4d174b(0xf6),wr=_0x4d174b(0x1f2),Nr=_0x4d174b(0x2d0),Mr=_0x4d174b(0x2fb),Ar=_0x4d174b(0x220),be={'onlineStatusIcon':Pr,'onlineStatusTitle':wr,'onlineStatus':Nr,'online':Mr,'offline':Ar};function yr(_0x2b770d){const _0x2840d9=_0x4d174b;switch(_0x2b770d){case P[_0x2840d9(0x1fa)]:return _0x2840d9(0x119);case P[_0x2840d9(0x10b)]:return _0x2840d9(0x316);case P[_0x2840d9(0x189)]:return'collabStatus.fetchMiss';case P['NOT_COLLAB']:return _0x2840d9(0x266);case P[_0x2840d9(0x370)]:case P[_0x2840d9(0x2c1)]:case P['AWAITING_WITH_PENDING']:return _0x2840d9(0x2ec);case P['SYNCED']:return _0x2840d9(0x3f0);}}function Ur(_0x4b4f1f){const _0x1cfaeb=_0x4d174b,{status$:_0x2cedf4}=_0x4b4f1f,_0x507cf0=_0x3425e9(_0x2cedf4,P['NOT_COLLAB']),_0x10a931=_0x3c7014(_0x35ebff),_0xe12c52=_0x507cf0!==P[_0x1cfaeb(0x1fa)],_0x3c8b67=_0x10a931['t'](yr(_0x507cf0)),_0x2a4018=_0x4b7a4e(be[_0x1cfaeb(0x285)],{[be['online']]:_0xe12c52,[be[_0x1cfaeb(0x172)]]:!_0xe12c52}),_0x224b01=_0xe12c52?_0x33deb0[_0x1cfaeb(0xd7)](Ls,null):_0x33deb0[_0x1cfaeb(0xd7)](Us,null);return _0x33deb0[_0x1cfaeb(0xd7)](_0x1cfaeb(0xbd),{'className':_0x2a4018},_0x33deb0[_0x1cfaeb(0xd7)]('div',{'className':be[_0x1cfaeb(0x2cc)]},_0x224b01),_0x33deb0['createElement']('div',{'className':be[_0x1cfaeb(0x360)]},_0x3c8b67));}var Lr=Object[_0x4d174b(0x1e3)],$r=Object['getOwnPropertyDescriptor'],jr=(_0x4a6c26,_0x5c41ef,_0x7807e1,_0x338606)=>{const _0x3e5efc=_0x4d174b;for(var _0x1b0492=_0x338606>0x1?void 0x0:_0x338606?$r(_0x5c41ef,_0x7807e1):_0x5c41ef,_0x4120f2=_0x4a6c26[_0x3e5efc(0x2e1)]-0x1,_0x4a3df8;_0x4120f2>=0x0;_0x4120f2--)(_0x4a3df8=_0x4a6c26[_0x4120f2])&&(_0x1b0492=(_0x338606?_0x4a3df8(_0x5c41ef,_0x7807e1,_0x1b0492):_0x4a3df8(_0x1b0492))||_0x1b0492);return _0x338606&&_0x1b0492&&Lr(_0x5c41ef,_0x7807e1,_0x1b0492),_0x1b0492;},Ue=(_0xcc0721,_0x54722a)=>(_0x1941be,_0x131069)=>_0x54722a(_0x1941be,_0x131069,_0xcc0721);let He=class extends _0x3d777f{constructor(_0x15e73a,_0x2eb855,_0x548f5e,_0x457fba){const _0x4c4d0c=_0x4d174b;super(),l(this,_0x4c4d0c(0x259),new _0x16da12(P[_0x4c4d0c(0x2c5)])),(this['_univerInstanceService']=_0x15e73a,this[_0x4c4d0c(0x3d8)]=_0x2eb855,this[_0x4c4d0c(0x36e)]=_0x548f5e,this[_0x4c4d0c(0x260)]=_0x457fba,this[_0x4c4d0c(0x1af)](),this['_initStatusListener']());}['_initStatusComponent'](){const _0x293d6a=_0x4d174b;this[_0x293d6a(0xe4)](this[_0x293d6a(0x3d8)][_0x293d6a(0x239)](_0x36ca7a[_0x293d6a(0x348)],()=>_0x5578f9(xr({'status$':this[_0x293d6a(0x259)][_0x293d6a(0x3bd)]()}),this[_0x293d6a(0x36e)])));}[_0x4d174b(0x104)](){const _0x32c74d=_0x4d174b;this['disposeWithMe'](_0x521fe6(this[_0x32c74d(0x115)][_0x32c74d(0x12e)]['pipe'](_0x46582b(()=>{const _0x3d277a=_0x32c74d,_0x5ce6b1=this[_0x3d277a(0x115)][_0x3d277a(0x276)]();return _0x5ce6b1?this['_collaborationController'][_0x3d277a(0x2ed)](_0x5ce6b1[_0x3d277a(0x150)]()):_0x1e95ea(null);}),_0x46582b(_0xbe4d20=>_0xbe4d20?_0xbe4d20[_0x32c74d(0x2d8)]:_0x1e95ea(P['NOT_COLLAB'])))['subscribe'](_0x191a98=>{const _0x51c7df=_0x32c74d;this[_0x51c7df(0x259)][_0x51c7df(0xe2)](_0x191a98);})));}};He=jr([_0xbfca41(_0x5b23af[_0x4d174b(0x132)],He),Ue(0x0,_0x2269ec),Ue(0x1,_0xe5448f),Ue(0x2,_0x5b671c(_0x49e10e)),Ue(0x3,_0x5b671c(Oe))],He);function xr(_0x20868a){const {status$:_0x2a746e}=_0x20868a;return function(){const _0x262882=_0x2798;return _0x33deb0[_0x262882(0xd7)](Ur,{'status$':_0x2a746e});};}const $s=_0x20ae42('uni.network.url-service');var Hr=Object[_0x4d174b(0x1e3)],kr=Object[_0x4d174b(0x13f)],Fr=(_0x4959eb,_0x317b75,_0x485dec,_0x502b5f)=>{const _0x270d5a=_0x4d174b;for(var _0x394c60=_0x502b5f>0x1?void 0x0:_0x502b5f?kr(_0x317b75,_0x485dec):_0x317b75,_0x31852a=_0x4959eb[_0x270d5a(0x2e1)]-0x1,_0x4f2e86;_0x31852a>=0x0;_0x31852a--)(_0x4f2e86=_0x4959eb[_0x31852a])&&(_0x394c60=(_0x502b5f?_0x4f2e86(_0x317b75,_0x485dec,_0x394c60):_0x4f2e86(_0x394c60))||_0x394c60);return _0x502b5f&&_0x394c60&&Hr(_0x317b75,_0x485dec,_0x394c60),_0x394c60;},he=(_0x38cdce,_0x17b669)=>(_0x4ba5af,_0x16af7d)=>_0x17b669(_0x4ba5af,_0x16af7d,_0x38cdce);let ke=class extends _0x52c754{constructor(_0x1487f6,_0x4d5921,_0x5cc1c7,_0x315694,_0x2f6468,_0xd8fdf8){const _0x216279=_0x4d174b;super(),this[_0x216279(0x1ad)]=_0x1487f6,this[_0x216279(0x30a)]=_0x4d5921,this[_0x216279(0x178)]=_0x5cc1c7,this['_localCacheService']=_0x315694,this[_0x216279(0x32b)]=_0x2f6468,_0xd8fdf8?_0xd8fdf8==null||_0xd8fdf8[_0x216279(0x14c)]()[_0x216279(0x346)](()=>this[_0x216279(0x2a6)]()):(this[_0x216279(0x30a)][_0x216279(0x24d)](_0x216279(0x35e),_0x216279(0x308)),this[_0x216279(0x2a6)]());}async[_0x4d174b(0x2a6)](){const _0x20a677=_0x4d174b,_0x5266aa=this['_urlService']['getParam'](_0x20a677(0x2a1)),_0x8a9aad=this[_0x20a677(0x1ad)][_0x20a677(0x37b)](_0x20a677(0x13a));if(!_0x5266aa||!_0x8a9aad){this[_0x20a677(0x30a)][_0x20a677(0x24d)](_0x20a677(0x35e),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x8a9aad)){case j[_0x20a677(0x202)]:{const _0x2c44f6=await this['_loadSheet'](_0x5266aa);this[_0x20a677(0x23c)](_0x2c44f6);break;}case j['UNIVER_DOC']:{await this['_loadDoc'](_0x5266aa);break;}default:{this[_0x20a677(0x30a)][_0x20a677(0xba)](_0x20a677(0x35e),_0x20a677(0x2d3));break;}}}async[_0x4d174b(0x23c)](_0x3a2d3b){const _0xca1606=_0x4d174b;await this[_0xca1606(0x351)](_0x3a2d3b),_0x3a2d3b[_0xca1606(0x112)][_0xca1606(0xbe)](_0xf80876(this['dispose$']))[_0xca1606(0x269)](_0x47f37f=>{_0x47f37f&&this['_updateURLWithCurrentState'](_0x47f37f);}),this[_0xca1606(0x1ad)]['urlChange$']['pipe'](_0xf80876(this[_0xca1606(0xdd)]))[_0xca1606(0x269)](()=>this[_0xca1606(0x351)](_0x3a2d3b));}[_0x4d174b(0x385)](_0x30d331,_0x310243=!0x1){const _0x303927=_0x4d174b,_0x3a18b7=this['_urlService'][_0x303927(0x37b)](_0x303927(0x3e3));_0x30d331[_0x303927(0x200)]()!==_0x3a18b7&&this[_0x303927(0x1ad)][_0x303927(0x12b)](_0x303927(0x3e3),_0x30d331[_0x303927(0x200)](),_0x310243);}async[_0x4d174b(0x351)](_0x45edd9){const _0x10ab21=_0x4d174b;var _0x52aa25;const _0x29143b=this[_0x10ab21(0x1ad)][_0x10ab21(0x37b)](_0x10ab21(0x3e3));if(!_0x29143b||!_0x45edd9[_0x10ab21(0x2e7)](_0x29143b)){const _0x4b4903=_0x45edd9['getUnhiddenWorksheets']()[0x0],_0x1da3b8=_0x45edd9[_0x10ab21(0x2e7)](_0x4b4903);if(!_0x1da3b8)return;this['_updateURLWithCurrentState'](_0x1da3b8,!0x0),await this['_commandService'][_0x10ab21(0x365)](_0x1149a2['id'],{'unitId':_0x45edd9[_0x10ab21(0x150)](),'subUnitId':_0x4b4903});return;}((_0x52aa25=_0x45edd9[_0x10ab21(0x166)]())==null?void 0x0:_0x52aa25[_0x10ab21(0x200)]())!==_0x29143b&&await this[_0x10ab21(0x178)][_0x10ab21(0x365)](_0x1149a2['id'],{'unitId':_0x45edd9[_0x10ab21(0x150)](),'subUnitId':_0x29143b});}async[_0x4d174b(0x256)](_0x3e7dea){const _0x55ef7b=_0x4d174b;let _0x58f70c=0x0;const _0x1c1afd=await this[_0x55ef7b(0xca)]['loadOfflineData'](_0x3e7dea);return _0x1c1afd&&(_0x1c1afd[_0x55ef7b(0x3ed)]||_0x1c1afd[_0x55ef7b(0x185)][_0x55ef7b(0x2e1)]!==0x0)&&(_0x58f70c=_0x1c1afd[_0x55ef7b(0x1ff)]),_0x58f70c===0x0&&this[_0x55ef7b(0x30a)][_0x55ef7b(0x24d)]('[DataLoaderController]',_0x55ef7b(0x253)),this[_0x55ef7b(0x32b)][_0x55ef7b(0x3be)](_0x3e7dea,_0x58f70c);}async[_0x4d174b(0x3a2)](_0x35cc9d){const _0x3edb0c=_0x4d174b;let _0x51c542=0x0;const _0x156dae=await this[_0x3edb0c(0xca)][_0x3edb0c(0x2f9)](_0x35cc9d);return _0x156dae&&(_0x156dae[_0x3edb0c(0x3ed)]||_0x156dae[_0x3edb0c(0x185)][_0x3edb0c(0x2e1)]!==0x0)&&(_0x51c542=_0x156dae[_0x3edb0c(0x1ff)]),_0x51c542===0x0&&this[_0x3edb0c(0x30a)][_0x3edb0c(0x24d)](_0x3edb0c(0x35e),_0x3edb0c(0x253)),this[_0x3edb0c(0x32b)][_0x3edb0c(0xcc)](_0x35cc9d,_0x51c542);}};ke=Fr([_0xbfca41(_0x5b23af[_0x4d174b(0x132)],ke),he(0x0,$s),he(0x1,_0x50a504),he(0x2,_0x5bc562),he(0x3,_0x5b671c(O)),he(0x4,_0x5b671c(_0x8be8c0)),he(0x5,_0x466fab(_0xd560c9))],ke);var Vr=Object['defineProperty'],Br=Object[_0x4d174b(0x13f)],Wr=(_0x2760e2,_0x54c299,_0x1d089b,_0xf5b61b)=>{const _0x305934=_0x4d174b;for(var _0x4d6ece=_0xf5b61b>0x1?void 0x0:_0xf5b61b?Br(_0x54c299,_0x1d089b):_0x54c299,_0x529aaf=_0x2760e2[_0x305934(0x2e1)]-0x1,_0x48a3ad;_0x529aaf>=0x0;_0x529aaf--)(_0x48a3ad=_0x2760e2[_0x529aaf])&&(_0x4d6ece=(_0xf5b61b?_0x48a3ad(_0x54c299,_0x1d089b,_0x4d6ece):_0x48a3ad(_0x4d6ece))||_0x4d6ece);return _0xf5b61b&&_0x4d6ece&&Vr(_0x54c299,_0x1d089b,_0x4d6ece),_0x4d6ece;},os=(_0x32e87c,_0x1274e8)=>(_0x12564a,_0x3c8082)=>_0x1274e8(_0x12564a,_0x3c8082,_0x32e87c);const Gr='DEFAULT_FILE_NAME',Yr=_0x4d174b(0x16e);let Fe=class extends _0x3d777f{constructor(_0x47a93b,_0x3cc56a){const _0x181922=_0x4d174b;super(),this[_0x181922(0x115)]=_0x47a93b,this[_0x181922(0x229)]=_0x3cc56a,this[_0x181922(0x2a6)]();}[_0x4d174b(0x2a6)](){const _0x5342f4=_0x4d174b;this['disposeWithMe'](_0x521fe6(this[_0x5342f4(0x115)]['focused$']['subscribe'](()=>{const _0x2955ca=_0x5342f4;var _0x1f3ae3;const _0x3f3681=this[_0x2955ca(0x115)]['getFocusedUnit']();let _0x487792=(_0x1f3ae3=this['_configService'][_0x2955ca(0x1f0)](Gr))!=null?_0x1f3ae3:Yr;_0x3f3681 instanceof _0x391489&&(_0x487792=_0x3f3681[_0x2955ca(0x22e)]),document[_0x2955ca(0x100)]=_0x487792;})));}};Fe=Wr([_0xbfca41(_0x5b23af['Ready'],Fe),os(0x0,_0x2269ec),os(0x1,_0x15fd76)],Fe);var Kr=Object[_0x4d174b(0x1e3)],Xr=Object['getOwnPropertyDescriptor'],Jr=(_0x362175,_0x155b50,_0x353363,_0x3eb165)=>{const _0x4dd4ee=_0x4d174b;for(var _0xddbf03=_0x3eb165>0x1?void 0x0:_0x3eb165?Xr(_0x155b50,_0x353363):_0x155b50,_0x1831c1=_0x362175[_0x4dd4ee(0x2e1)]-0x1,_0x306319;_0x1831c1>=0x0;_0x1831c1--)(_0x306319=_0x362175[_0x1831c1])&&(_0xddbf03=(_0x3eb165?_0x306319(_0x155b50,_0x353363,_0xddbf03):_0x306319(_0xddbf03))||_0xddbf03);return _0x3eb165&&_0xddbf03&&Kr(_0x155b50,_0x353363,_0xddbf03),_0xddbf03;},as=(_0x4cd861,_0x36ea31)=>(_0x544a6d,_0xc1be50)=>_0x36ea31(_0x544a6d,_0xc1be50,_0x4cd861);let Rt=class{constructor(_0x3688a0,_0x24fcaa){const _0x4ea54c=_0x4d174b;this[_0x4ea54c(0x229)]=_0x3688a0,this[_0x4ea54c(0x145)]=_0x24fcaa;}async[_0x4d174b(0x1aa)](_0xf9bf98,_0x2b9162){const _0x302430=_0x4d174b;var _0x5ecf7e;const {unitID:_0x1d18d1,type:_0x38f90a,revision:_0xdb6ad6=0x0}=_0x2b9162,_0xce412c=this[_0x302430(0x35d)]()+'/'+_0x38f90a+'/unit/'+_0x1d18d1+_0x302430(0x17e)+_0xdb6ad6,_0xf31f68=(await this[_0x302430(0x145)]['get'](_0xce412c))[_0x302430(0x154)],_0x2a1e0a=(_0x5ecf7e=_0xf31f68[_0x302430(0x193)])==null?void 0x0:_0x5ecf7e[_0x302430(0x163)];if(_0x2a1e0a){const _0x17dc60=_0x2a1e0a==null?void 0x0:_0x2a1e0a[_0x302430(0x38a)],_0x491cf8=_0x52ba54['encode'](_0x44db7c(_0x17dc60));_0x2a1e0a['originalMeta']=_0x491cf8,Object[_0x302430(0x1bc)](_0x2a1e0a[_0x302430(0x29d)])[_0x302430(0x1cb)](([,_0xb94251])=>{const _0x5b06cd=_0x302430,_0x2d8cc8=_0xb94251[_0x5b06cd(0x38a)],_0x5af500=_0x52ba54[_0x5b06cd(0x26a)](_0x44db7c(_0x2d8cc8));_0xb94251[_0x5b06cd(0x38a)]=_0x5af500;});}return _0xf31f68;}async['getSheetBlock'](_0x31fcc5,_0x53c856){const _0xf3564d=_0x4d174b,{unitID:_0x1bd355,type:_0x51a646,blockID:_0x4ff80b}=_0x53c856,_0x1e836c=this[_0xf3564d(0x157)]()+'/'+_0x51a646+_0xf3564d(0x2f5)+_0x1bd355+_0xf3564d(0x1fe)+_0x4ff80b;return(await this['_httpService']['get'](_0x1e836c))['body'];}async[_0x4d174b(0x11b)](_0x2101c2,_0x281add){const _0x19a727=_0x4d174b,{unitID:_0x383ee6,type:_0x25461a,from:_0x387299,to:_0x3387c4}=_0x281add,_0x35afe8=this[_0x19a727(0x157)]()+'/'+_0x25461a+_0x19a727(0x2f5)+_0x383ee6+_0x19a727(0x25b)+_0x387299+_0x19a727(0x21a)+_0x3387c4;return(await this['_httpService']['get'](_0x35afe8))[_0x19a727(0x154)];}[_0x4d174b(0x35d)](){const _0x14fce7=_0x4d174b;var _0x16d970;return(_0x16d970=this['_configService'][_0x14fce7(0x1f0)](en))!=null?_0x16d970:this[_0x14fce7(0x157)]();}['_getAPIPrefix'](){const _0x1e9bc1=_0x4d174b;var _0x47526c;return(_0x47526c=this[_0x1e9bc1(0x229)][_0x1e9bc1(0x1f0)](Zi))!=null?_0x47526c:Qi;}async['getResourcesRequest'](_0x56e2a8,_0x5cd1cb){const _0x45f60f=_0x4d174b,_0x328542='/universer-api/snapshot/'+_0x5cd1cb[_0x45f60f(0x13a)]+_0x45f60f(0x2f5)+_0x5cd1cb[_0x45f60f(0x1e2)]+_0x45f60f(0x311);return(await this[_0x45f60f(0x145)]['get'](_0x328542,{'params':{'resourceId':JSON['stringify'](_0x5cd1cb[_0x45f60f(0x3e6)])}}))[_0x45f60f(0x154)];}[_0x4d174b(0x354)](){const _0x1942c0=_0x4d174b;throw new Error(_0x1942c0(0x30b));}['saveSheetBlock'](){const _0x5ddfc8=_0x4d174b;throw new Error(_0x5ddfc8(0x30b));}[_0x4d174b(0x3a0)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Rt=Jr([as(0x0,_0x15fd76),as(0x1,_0x5b671c(_0x45a59b))],Rt);var qr=Object[_0x4d174b(0x1e3)],zr=Object[_0x4d174b(0x13f)],Zr=(_0x1f16ed,_0x5e35f2,_0x192b55,_0x3d64b6)=>{const _0x801a39=_0x4d174b;for(var _0x3c9fab=_0x3d64b6>0x1?void 0x0:_0x3d64b6?zr(_0x5e35f2,_0x192b55):_0x5e35f2,_0x41cbf6=_0x1f16ed[_0x801a39(0x2e1)]-0x1,_0x173568;_0x41cbf6>=0x0;_0x41cbf6--)(_0x173568=_0x1f16ed[_0x41cbf6])&&(_0x3c9fab=(_0x3d64b6?_0x173568(_0x5e35f2,_0x192b55,_0x3c9fab):_0x173568(_0x3c9fab))||_0x3c9fab);return _0x3d64b6&&_0x3c9fab&&qr(_0x5e35f2,_0x192b55,_0x3c9fab),_0x3c9fab;},Te=(_0x10b3e5,_0x149225)=>(_0x2f0540,_0x130ed3)=>_0x149225(_0x2f0540,_0x130ed3,_0x10b3e5);let Ot=class extends _0xca3891{constructor(_0x3e3717,_0x4d67fb,_0x4fa724,_0x1c32ef,_0x3fa252){const _0x17a251=_0x4d174b;super(_0x3e3717,_0x4d67fb,_0x4fa724),this[_0x17a251(0x3ca)]=_0x1c32ef,this[_0x17a251(0x30a)]=_0x3fa252;}[_0x4d174b(0x2a9)](_0x5c862c,_0x54cb19){const _0x5ee210=_0x4d174b,_0x5ec9ed=this[_0x5ee210(0x153)](_0x5c862c);if(_0x5ec9ed)try{const _0x4d30b7=this[_0x5ee210(0x10a)](_0x5ec9ed,_0x54cb19);this[_0x5ee210(0xd3)](_0x5c862c,_0x4d30b7);}catch(_0x2fc881){this[_0x5ee210(0x30a)][_0x5ee210(0xba)](_0x5ee210(0x39c),_0x2fc881),this['_clearUndo'](_0x5c862c);}const _0x16d52d=this['_getRedoStack'](_0x5c862c);if(_0x16d52d)try{const _0x40ef6f=this[_0x5ee210(0x10a)](_0x16d52d,_0x54cb19);this[_0x5ee210(0x198)](_0x5c862c,_0x40ef6f);}catch(_0x23e4b6){this['_logService'][_0x5ee210(0xba)](_0x23e4b6),this[_0x5ee210(0x329)](_0x5c862c);}}['_clearUndo'](_0x2f6b0a){const _0x4be6f7=_0x4d174b,_0x164053=this[_0x4be6f7(0x153)](_0x2f6b0a);_0x164053&&(_0x164053[_0x4be6f7(0x2e1)]=0x0,this['_updateStatus']());}[_0x4d174b(0x329)](_0x3ed24a){const _0xb09014=_0x4d174b,_0x16d9c0=this[_0xb09014(0x38e)](_0x3ed24a);_0x16d9c0&&(_0x16d9c0[_0xb09014(0x2e1)]=0x0,this[_0xb09014(0x2b1)]());}[_0x4d174b(0xd3)](_0x38ab20,_0x9922a1){const _0x52d808=_0x4d174b;this[_0x52d808(0x177)][_0x52d808(0x34a)](_0x38ab20,_0x9922a1),this[_0x52d808(0x2b1)]();}['_substituteRedoStack'](_0x5ba6b3,_0x193e2c){const _0x27f913=_0x4d174b;this[_0x27f913(0x2b0)][_0x27f913(0x34a)](_0x5ba6b3,_0x193e2c),this[_0x27f913(0x2b1)]();}[_0x4d174b(0x10a)](_0x2ce5c8,_0x31a1a1){const _0x5b582e=_0x4d174b,_0x28b59=[];let _0x5f14fd=_0x31a1a1,_0x1e0ff9=_0x31a1a1;for(let _0x3055c0=_0x2ce5c8[_0x5b582e(0x2e1)]-0x1;_0x3055c0>=0x0;_0x3055c0--){const {unitID:_0x2639cf,undoMutations:_0x2fd30f,redoMutations:_0x46583d}=_0x2ce5c8[_0x3055c0],_0x531ac1=this['_transformService'][_0x5b582e(0x147)](_0x5f14fd,_0x2fd30f),_0x4ab571=this[_0x5b582e(0x3ca)]['transformMutationsWithChangeset'](_0x1e0ff9,_0x46583d);if(_0x3d1247(_0x531ac1)||_0x3d1247(_0x4ab571)){this[_0x5b582e(0x30a)][_0x5b582e(0xba)](_0x5b582e(0x39c),_0x5b582e(0x110),_0x531ac1,_0x4ab571);break;}_0x5f14fd=_0x531ac1[_0x5b582e(0x2e4)],_0x1e0ff9=_0x4ab571[_0x5b582e(0x2e4)],_0x28b59[_0x5b582e(0x328)]({'unitID':_0x2639cf,'undoMutations':_0x531ac1['m2Prime'],'redoMutations':_0x4ab571[_0x5b582e(0x160)]});}return _0x28b59['reverse']();}};Ot=Zr([Te(0x0,_0x2269ec),Te(0x1,_0x5bc562),Te(0x2,_0x1a042d),Te(0x3,_0x174d0f),Te(0x4,_0x50a504)],Ot);class Qr extends _0x52c754{constructor(){const _0x2e082a=_0x4d174b;super(),l(this,_0x2e082a(0x3c7)),this[_0x2e082a(0x3c7)]=_0x2a799c(window,_0x2e082a(0x125))[_0x2e082a(0xbe)](_0xf80876(this['dispose$']),_0x1c7dea(0x1),_0x33a766(void 0x0));}[_0x4d174b(0x12b)](_0x4feb92,_0x1397fb,_0x144b30=!0x1){const _0x4385e5=_0x4d174b,_0xcec4b3=new URL(window[_0x4385e5(0x281)][_0x4385e5(0x272)]);_0xcec4b3[_0x4385e5(0x134)][_0x4385e5(0x34a)](_0x4feb92,_0x1397fb),_0x144b30?window[_0x4385e5(0x232)][_0x4385e5(0x383)]('','',_0xcec4b3['toString']()):window[_0x4385e5(0x232)][_0x4385e5(0x231)]('','',_0xcec4b3[_0x4385e5(0xec)]());}[_0x4d174b(0x124)](_0x4ac034,_0x377a7c=!0x1){const _0x7c0e14=_0x4d174b,_0x1415ca=new URL(window[_0x7c0e14(0x281)][_0x7c0e14(0x272)]);_0x1415ca[_0x7c0e14(0x134)][_0x7c0e14(0x3e4)](_0x4ac034),_0x377a7c?window[_0x7c0e14(0x232)][_0x7c0e14(0x383)]('','',_0x1415ca[_0x7c0e14(0xec)]()):window[_0x7c0e14(0x232)][_0x7c0e14(0x231)]('','',_0x1415ca[_0x7c0e14(0xec)]());}[_0x4d174b(0x37b)](_0x1e1feb){const _0x10d51b=_0x4d174b;var _0x53d62f;return(_0x53d62f=new URL(window[_0x10d51b(0x281)][_0x10d51b(0x272)])[_0x10d51b(0x134)]['get'](_0x1e1feb))!=null?_0x53d62f:void 0x0;}}const _t=_0x4d174b(0x2bf),eo=_0x4d174b(0xf7),Le=0x6,to=1.5,ut=0x4,so=1.5,io=_0x4d174b(0x24c);class no{constructor(_0x32a81f,_0x37acd7,_0xa444e8,_0x1e61ca){const _0xa2905e=_0x4d174b;l(this,_0xa2905e(0x2b6),[]),l(this,_0xa2905e(0x2bd),null),l(this,_0xa2905e(0x1a8),null),l(this,_0xa2905e(0x18a),null),l(this,_0xa2905e(0x290),null),l(this,'_eventUnsubscribe',null),(this[_0xa2905e(0x2f4)]=_0x32a81f,this[_0xa2905e(0x274)]=_0x37acd7,this[_0xa2905e(0x15f)]=_0xa444e8,this[_0xa2905e(0x117)]=_0x1e61ca,this[_0xa2905e(0x39f)]());}set[_0x4d174b(0x2b4)](_0x4c063c){const _0x56bedd=_0x4d174b;_0x4c063c?(this[_0x56bedd(0x18a)]&&this[_0x56bedd(0x18a)][_0x56bedd(0x3c3)](),this[_0x56bedd(0x1a8)]&&this[_0x56bedd(0x1a8)][_0x56bedd(0x199)]()):(this[_0x56bedd(0x18a)]&&this[_0x56bedd(0x18a)]['show'](),this[_0x56bedd(0x1a8)]&&this[_0x56bedd(0x1a8)]['hide']());}[_0x4d174b(0x15b)](){const _0x4712c6=_0x4d174b;for(const _0x58b79a of this[_0x4712c6(0x2b6)])_0x58b79a['dispose']();this[_0x4712c6(0x1a8)]&&this[_0x4712c6(0x1a8)][_0x4712c6(0x15b)](),this[_0x4712c6(0x18a)]&&this['_anchorDot']['dispose'](),this['_anchor']&&this[_0x4712c6(0x2bd)][_0x4712c6(0x15b)](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x4d174b(0x39f)](){const _0x3dc542=_0x4d174b,{_docSkeleton:_0x141375,_document:_0x486227}=this,{color:_0x1b34f1,name:_0x39c705,ranges:_0x4311be}=this[_0x3dc542(0x2f4)],_0x23f899=_0x486227[_0x3dc542(0x2cf)](),{docsLeft:_0x1c47b8,docsTop:_0x308dd1}=_0x23f899,_0x3a52fd=new _0x45f833(_0x23f899,_0x141375);for(const {startOffset:_0x132210,endOffset:_0x9194e5,collapsed:_0x3dc468,isActive:_0x44feb9}of _0x4311be){const _0x366e83=_0x141375['findNodePositionByCharIndex'](_0x132210),_0x88a552=_0x141375[_0x3dc542(0x114)](_0x9194e5);if(_0x44feb9){const {contentBoxPointGroup:_0x18e8d9}=_0x3a52fd[_0x3dc542(0x282)](_0x88a552,_0x88a552);if(_0x18e8d9[_0x3dc542(0x2e1)]===0x0)continue;this['_drawAnchor'](_0x1b34f1,_0x18e8d9,_0x1c47b8,_0x308dd1,_0x39c705),this[_0x3dc542(0x113)]=this[_0x3dc542(0xe3)]();}if(!_0x3dc468){const {contentBoxPointGroup:_0x561eaf}=_0x3a52fd[_0x3dc542(0x282)](_0x366e83,_0x88a552);if(_0x561eaf[_0x3dc542(0x2e1)]===0x0)continue;this[_0x3dc542(0xcf)](_0x1b34f1,_0x561eaf,_0x1c47b8,_0x308dd1);}}}[_0x4d174b(0x233)](_0x536560,_0x17b34e,_0x3e09e6,_0x4a66bc,_0x1da390){const _0x299b6f=_0x4d174b,_0x1404c1=this[_0x299b6f(0x291)](_0x17b34e),{left:_0x5226ff,top:_0xffae6,height:_0x331bd6}=_0x1404c1,_0x381a6e=this[_0x299b6f(0x1d3)](),_0x556888=so/_0x381a6e,_0xf0356b=new _0x390a18(_t+_0x1053dd[_0x299b6f(0x31d)](Le),{'left':_0x5226ff+_0x3e09e6-_0x556888,'top':_0xffae6+_0x4a66bc,'height':_0x331bd6,'width':to,'fill':_0x536560||_0x420307(_0x375c72['black'],0x0),'strokeWidth':_0x556888,'stroke':io,'evented':!0x0});this[_0x299b6f(0x2bd)]=_0xf0356b,this[_0x299b6f(0x274)][_0x299b6f(0x208)](_0xf0356b,_0x22a117);const _0x1d8098=new _0x390a18(_t+_0x1053dd['generateRandomId'](Le),{'left':_0x5226ff+_0x3e09e6-_0x556888,'top':_0xffae6+_0x4a66bc-ut/0x2,'height':ut,'width':ut,'fill':_0x536560||_0x420307(_0x375c72[_0x299b6f(0x26c)],0x0),'strokeWidth':0x0,'stroke':_0x536560||_0x420307(_0x375c72[_0x299b6f(0x26c)],0x0),'evented':!0x1});this[_0x299b6f(0x18a)]=_0x1d8098,this[_0x299b6f(0x274)]['addObject'](_0x1d8098,_0x22a117);const _0x114dd7=new st(_t+_0x1053dd['generateRandomId'](Le),{'left':_0x5226ff+_0x3e09e6-_0x556888,'top':_0xffae6+_0x4a66bc-we,'text':_0x1da390,'color':_0x536560});this[_0x299b6f(0x1a8)]=_0x114dd7,this['_scene'][_0x299b6f(0x208)](_0x114dd7,_0x22a117),this[_0x299b6f(0x2b4)]=!0x1;}[_0x4d174b(0xe3)](){const _0x51be6b=_0x4d174b,_0x20221b=this[_0x51be6b(0x2bd)][_0x51be6b(0x271)][_0x51be6b(0x35c)](()=>{this['_hover']=!0x0;}),_0x577e32=this[_0x51be6b(0x2bd)][_0x51be6b(0x1ee)][_0x51be6b(0x35c)](()=>{const _0x370526=_0x51be6b;this[_0x370526(0x290)]&&clearTimeout(this[_0x370526(0x290)]),this['_hideTimer']=setTimeout(()=>{const _0xac8c8c=_0x370526;this[_0xac8c8c(0x2b4)]=!0x1;},0x7d0);});return()=>{const _0x432da6=_0x51be6b;_0x20221b[_0x432da6(0xc6)](),_0x577e32[_0x432da6(0xc6)]();};}[_0x4d174b(0xcf)](_0x43d08a,_0x567093,_0x5d9dba,_0x506bfe){const _0x389555=_0x4d174b,_0x472c06=new _0x2cf8bf(_0x43d08a)[_0x389555(0x321)](0.2)[_0x389555(0x214)](),_0x4e36c4=new _0x1960e1(eo+_0x1053dd[_0x389555(0x31d)](Le),{'pointsGroup':_0x567093,'fill':_0x472c06||_0x420307(_0x375c72[_0x389555(0x26c)],0.2),'left':_0x5d9dba,'top':_0x506bfe,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x389555(0x2b6)]['push'](_0x4e36c4),this[_0x389555(0x274)]['addObject'](_0x4e36c4,_0x22a117);}[_0x4d174b(0x291)](_0x4ae052){const _0x603fe7=_0x4ae052[0x0],_0x254682=_0x603fe7[0x0],_0xeadaf1=_0x603fe7[0x2],{x:_0x57f7fc,y:_0x17007e}=_0x254682,{x:_0x30d601,y:_0x924f8d}=_0xeadaf1;return{'left':_0x57f7fc,'top':_0x17007e,'width':_0x30d601-_0x57f7fc,'height':_0x924f8d-_0x17007e};}[_0x4d174b(0x1d3)](){const _0x50be3e=_0x4d174b,{scaleX:_0x5a9ac5,scaleY:_0x26ebe4}=this[_0x50be3e(0x274)][_0x50be3e(0x3eb)]();return Math[_0x50be3e(0x397)](_0x5a9ac5,_0x26ebe4);}}var ro=Object[_0x4d174b(0x1e3)],oo=Object[_0x4d174b(0x13f)],ao=(_0x7ee356,_0x1dff31,_0x11e2b9,_0xf24f4e)=>{for(var _0x14fdff=_0xf24f4e>0x1?void 0x0:_0xf24f4e?oo(_0x1dff31,_0x11e2b9):_0x1dff31,_0x1f6fa5=_0x7ee356['length']-0x1,_0x4e6885;_0x1f6fa5>=0x0;_0x1f6fa5--)(_0x4e6885=_0x7ee356[_0x1f6fa5])&&(_0x14fdff=(_0xf24f4e?_0x4e6885(_0x1dff31,_0x11e2b9,_0x14fdff):_0x4e6885(_0x14fdff))||_0x14fdff);return _0xf24f4e&&_0x14fdff&&ro(_0x1dff31,_0x11e2b9,_0x14fdff),_0x14fdff;},$e=(_0x2923c0,_0x24b226)=>(_0x2e60a1,_0x24519d)=>_0x24b226(_0x2e60a1,_0x24519d,_0x2923c0);let Ve=class extends _0x52c754{constructor(_0x3fe818,_0xb11fa0,_0x3f8359,_0x1ed71c,_0x33dd2f){const _0x2e199b=_0x4d174b;super(),l(this,_0x2e199b(0x3c2),[]),(this['_context']=_0x3fe818,this[_0x2e199b(0x2e2)]=_0xb11fa0,this['_collabCursorController']=_0x3f8359,this[_0x2e199b(0x2c3)]=_0x1ed71c,this['_themeService']=_0x33dd2f,this['_init']());}['_init'](){const _0x246c4a=_0x4d174b,_0x23f7d7=this[_0x246c4a(0x12d)][_0x246c4a(0x22a)],_0x2dcff4=this[_0x246c4a(0x2e2)];this[_0x246c4a(0xe4)](_0x2d61f0([this[_0x246c4a(0x2ee)]['getCollabCursors$'](_0x23f7d7),this[_0x246c4a(0x2b9)][_0x246c4a(0x3c0)]])['pipe'](_0x120a2e(([_0x395bc3,_0x1e7968])=>({'skeleton':_0x2dcff4['getSkeleton'](),'cursors':[..._0x395bc3[_0x246c4a(0x1eb)]()][_0x246c4a(0x352)](_0x1421b6=>({..._0x1421b6,'color':_0x1e7968[_0x1421b6[_0x246c4a(0x377)]]}))})))[_0x246c4a(0x269)](_0xfd2039=>{const _0x1d686b=_0x246c4a;if(this[_0x1d686b(0x3ce)](),_0xfd2039){const {skeleton:_0xc7aa88,cursors:_0x57e04f}=_0xfd2039;this[_0x1d686b(0x2b3)](_0xc7aa88,_0x57e04f);}}));}['_updateCollabCursors'](_0x1265fd,_0x4e5309){const _0x41c5fe=_0x4d174b,{scene:_0x91a442,mainComponent:_0x740780}=this['_context'],_0x451c5d=_0x4e5309[_0x41c5fe(0x288)](_0x3396ed=>new no(_0x3396ed,_0x91a442,_0x1265fd,_0x740780));this[_0x41c5fe(0x3c2)]=_0x451c5d;}[_0x4d174b(0x3ce)](){const _0x2b8f1a=_0x4d174b;this[_0x2b8f1a(0x3c2)][_0x2b8f1a(0x1cb)](_0x4cabaf=>_0x4cabaf[_0x2b8f1a(0x15b)]()),this[_0x2b8f1a(0x3c2)]=[];}};Ve=ao([_0xbfca41(_0x5b23af['Steady'],Ve),$e(0x1,_0x5b671c(_0x20b350)),$e(0x2,_0x5b671c(me)),$e(0x3,_0xa71c3c),$e(0x4,_0x5b671c(_0x2191ad))],Ve);var co=Object[_0x4d174b(0x1e3)],ho=Object['getOwnPropertyDescriptor'],lo=(_0x1facc2,_0x32a06c,_0x769da3,_0x1cdc84)=>{for(var _0x53a9e2=_0x1cdc84>0x1?void 0x0:_0x1cdc84?ho(_0x32a06c,_0x769da3):_0x32a06c,_0xabf11d=_0x1facc2['length']-0x1,_0x8fa756;_0xabf11d>=0x0;_0xabf11d--)(_0x8fa756=_0x1facc2[_0xabf11d])&&(_0x53a9e2=(_0x1cdc84?_0x8fa756(_0x32a06c,_0x769da3,_0x53a9e2):_0x8fa756(_0x53a9e2))||_0x53a9e2);return _0x1cdc84&&_0x53a9e2&&co(_0x32a06c,_0x769da3,_0x53a9e2),_0x53a9e2;},dt=(_0x337699,_0x24f7bb)=>(_0x44a871,_0x288478)=>_0x24f7bb(_0x44a871,_0x288478,_0x337699);let Ze=class{constructor(_0x139293,_0x459619,_0x1fa3e0){const _0x5378d7=_0x4d174b;this[_0x5378d7(0x229)]=_0x139293,this[_0x5378d7(0x145)]=_0x459619,this[_0x5378d7(0x372)]=_0x1fa3e0,this[_0x5378d7(0x11f)]();}['init'](){const _0x5d4187=_0x4d174b;this[_0x5d4187(0x145)][_0x5d4187(0x249)]({'priority':0x1,'interceptor':(_0x246ffa,_0x3d9ff2)=>_0x3d9ff2(_0x246ffa)[_0x5d4187(0xbe)](_0x555673(async _0x43343d=>{const _0x496792=_0x5d4187,_0x359992=_0x43343d;if(_0x359992[_0x496792(0x14b)]===0x191&&window['confirm'](this[_0x496792(0x372)]['t'](_0x496792(0x3c8)))){const _0x503daf=window[_0x496792(0x155)](window['location'][_0x496792(0x272)]);window['location']['href']=this['_getLoginPath']()+_0x496792(0x395)+_0x503daf;}return _0x359992;}))});}[_0x4d174b(0x396)](){const _0x4084f9=_0x4d174b;var _0x11323d;return(_0x11323d=this[_0x4084f9(0x229)][_0x4084f9(0x1f0)](gn))!=null?_0x11323d:Sn;}};Ze=lo([dt(0x0,_0x15fd76),dt(0x1,_0x5b671c(_0x45a59b)),dt(0x2,_0x5b671c(_0x35ebff))],Ze);var _o=Object[_0x4d174b(0x1e3)],uo=Object[_0x4d174b(0x13f)],mo=(_0x57b2cd,_0x4442de,_0x55d29d,_0x107ad8)=>{const _0x6cb14a=_0x4d174b;for(var _0x3bc3b8=_0x107ad8>0x1?void 0x0:_0x107ad8?uo(_0x4442de,_0x55d29d):_0x4442de,_0x298d64=_0x57b2cd[_0x6cb14a(0x2e1)]-0x1,_0xa2d7e3;_0x298d64>=0x0;_0x298d64--)(_0xa2d7e3=_0x57b2cd[_0x298d64])&&(_0x3bc3b8=(_0x107ad8?_0xa2d7e3(_0x4442de,_0x55d29d,_0x3bc3b8):_0xa2d7e3(_0x3bc3b8))||_0x3bc3b8);return _0x107ad8&&_0x3bc3b8&&_o(_0x4442de,_0x55d29d,_0x3bc3b8),_0x3bc3b8;},cs=(_0x2c93dc,_0x7b3688)=>(_0x4b103e,_0x32a859)=>_0x7b3688(_0x4b103e,_0x32a859,_0x2c93dc);const fo=_0x4d174b(0x111),go='/universer-api/authz';let Dt=class extends _0x3d777f{constructor(_0x10d3bb,_0x2c375f){const _0x607eb1=_0x4d174b;super(),this[_0x607eb1(0x2ac)]=_0x10d3bb,this[_0x607eb1(0x229)]=_0x2c375f,this[_0x607eb1(0x31c)]();}['_initMergeInterceptor'](){const _0x11ce52=_0x4d174b,_0x4f5c3b=this;this['disposeWithMe'](this[_0x11ce52(0x2ac)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x210201({'isMatch'(_0x28d447){const _0xce233d=_0x11ce52;var _0x41c9a0;if(_0x28d447[_0xce233d(0x2e9)]===_0xce233d(0xd6)&&((_0x41c9a0=_0x28d447[_0xce233d(0x168)])!=null&&_0x41c9a0[_0xce233d(0x154)])){const {objectID:_0x32233b,objectType:_0x14ab60}=_0x28d447[_0xce233d(0x168)]['body']||{};if(!_0x32233b||_0x14ab60===void 0x0)return!0x1;const _0x2a6458=_0x4f5c3b[_0xce233d(0x151)]()+'/'+_0x14ab60+_0xce233d(0x398)+_0x32233b+_0xce233d(0x1d4);if(_0x28d447['url']===_0x2a6458)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4d521c){const _0x2f6129=_0x11ce52;var _0x5f2734;return(_0x5f2734=_0x4d521c['requestParams'])==null?void 0x0:_0x5f2734[_0x2f6129(0x154)];},'mergeParamsToRequest'(_0x54fdb2,_0x24b1aa){const _0x1a9fcf=_0x11ce52,_0x712159=_0x4f5c3b[_0x1a9fcf(0x151)]()+_0x1a9fcf(0x102),_0x2dc653=_0x54fdb2['reduce']((_0x302210,_0x11a0b3)=>{const _0x4e19a9=_0x1a9fcf,{unitID:_0x44b69b,objectID:_0x3d0626,objectType:_0x70e56f,actions:_0x289fbe}=_0x11a0b3;return _0x302210[_0x44b69b]||(_0x302210[_0x44b69b]={}),_0x302210[_0x44b69b][_0x3d0626]||(_0x302210[_0x44b69b][_0x3d0626]={'objectID':_0x3d0626,'objectType':_0x70e56f,'actions':[]}),_0x302210[_0x44b69b][_0x3d0626][_0x4e19a9(0x3da)][_0x4e19a9(0x328)](..._0x289fbe),_0x302210;},{}),_0x777543=[];for(const _0x4da79a in _0x2dc653)for(const _0x4b88ac in _0x2dc653[_0x4da79a]){const {actions:_0x4bafcc,objectType:_0x28a13a}=_0x2dc653[_0x4da79a][_0x4b88ac],_0x476271=[...new Set(_0x4bafcc)];_0x777543['push']({'unitID':_0x4da79a,'objectID':_0x4b88ac,'objectType':_0x28a13a,'actions':_0x476271});}return new _0x5e2413('POST',_0x712159,{'headers':_0x24b1aa[_0x1a9fcf(0x3b1)],'withCredentials':_0x24b1aa[_0x1a9fcf(0x381)],'responseType':_0x24b1aa[_0x1a9fcf(0x18d)],'body':{'requests':_0x777543}});}},{'distributeResult'(_0x33a1df,_0x449a6f){const _0x5b8b3a=_0x11ce52,{objectActions:_0x553a67}=_0x33a1df;return _0x449a6f[_0x5b8b3a(0x288)](_0x40e4e2=>{const _0x131058=_0x5b8b3a,{unitID:_0x21d6bd,objectID:_0x57493d,actions:_0x17ab90}=_0x40e4e2,_0x22f402=_0x553a67[_0x131058(0xbc)](_0x43b44f=>_0x43b44f[_0x131058(0x1e2)]===_0x21d6bd&&_0x43b44f[_0x131058(0xe5)]===_0x57493d),_0x2d609a=_0x17ab90[_0x131058(0x288)](_0x142f3e=>_0x22f402==null?void 0x0:_0x22f402['actions']['find'](_0xb67b68=>_0xb67b68[_0x131058(0x1c8)]===_0x142f3e))[_0x131058(0x236)](_0x51fa24=>!!_0x51fa24);return{'config':_0x40e4e2,'result':{'actions':_0x2d609a,'error':_0x33a1df['error']}};});}})}));}[_0x4d174b(0x151)](){const _0x198d29=_0x4d174b;var _0x5068d6;return(_0x5068d6=this[_0x198d29(0x229)][_0x198d29(0x1f0)](fo))!=null?_0x5068d6:go;}async['create'](_0x2434c8){const _0x3066d5=_0x4d174b,_0x116bb5=this[_0x3066d5(0x151)]()+'/'+_0x2434c8[_0x3066d5(0x248)]+_0x3066d5(0x23b);return(await this[_0x3066d5(0x2ac)]['post'](_0x116bb5,{'body':_0x2434c8}))['body'][_0x3066d5(0xe5)]||'';}async[_0x4d174b(0x10f)](_0x2b2846){const _0x468927=_0x4d174b,_0x2f177e=this['_getAPIPrefixPath']()+_0x468927(0x14d);return(await this['_HTTPService'][_0x468927(0x14f)](_0x2f177e,{'body':_0x2b2846}))[_0x468927(0x154)][_0x468927(0x194)];}async[_0x4d174b(0x15c)](_0x1fb778){const _0x14b0ef=_0x4d174b,_0x5c4aaa=this[_0x14b0ef(0x151)]()+'/'+_0x1fb778[_0x14b0ef(0x248)]+_0x14b0ef(0x398)+_0x1fb778[_0x14b0ef(0xe5)];await this[_0x14b0ef(0x2ac)][_0x14b0ef(0xf8)](_0x5c4aaa,{'body':_0x1fb778});}async[_0x4d174b(0x3ad)](_0x4661d1){const _0x5165c5=_0x4d174b,_0x251758=this[_0x5165c5(0x151)]()+'/'+_0x4661d1['objectType']+_0x5165c5(0x398)+_0x4661d1['objectID']+_0x5165c5(0x1d4);return(await this['_HTTPService']['post'](_0x251758,{'body':_0x4661d1}))[_0x5165c5(0x154)][_0x5165c5(0x3da)];}async[_0x4d174b(0x173)](_0x2b92c9){const _0x152272=_0x4d174b,_0x3f43bc=this[_0x152272(0x151)]()+_0x152272(0x102);return(await this[_0x152272(0x2ac)][_0x152272(0x14f)](_0x3f43bc,{'body':{'requests':_0x2b92c9}}))[_0x152272(0x154)][_0x152272(0x36c)];}async[_0x4d174b(0x1b0)](_0x3e0e3c){const _0x423cb5=_0x4d174b,_0xcb0e43=this[_0x423cb5(0x151)]()+'/'+_0x3e0e3c['objectType']+_0x423cb5(0x39e),_0x4123fc=await this[_0x423cb5(0x2ac)][_0x423cb5(0x14f)](_0xcb0e43,{'body':_0x3e0e3c});return{'roles':_0x4123fc[_0x423cb5(0x154)][_0x423cb5(0x24f)],'actions':_0x4123fc[_0x423cb5(0x154)]['actions']};}async[_0x4d174b(0xde)](_0x5b666e){const _0x2d3eb5=_0x4d174b,_0x4d5cd7=this[_0x2d3eb5(0x151)]()+_0x2d3eb5(0x1e6);await this[_0x2d3eb5(0x2ac)][_0x2d3eb5(0x3e4)](_0x4d5cd7,{'params':{'collaboratorID':_0x5b666e['collaboratorID'],'objectID':_0x5b666e[_0x2d3eb5(0xe5)],'unitID':_0x5b666e[_0x2d3eb5(0x1e2)]}});}async[_0x4d174b(0x3cd)](_0xa42bbc){const _0x5abdf6=_0x4d174b,_0x1fe1d5=this['_getAPIPrefixPath']()+_0x5abdf6(0x1e6);await this[_0x5abdf6(0x2ac)][_0x5abdf6(0x2f3)](_0x1fe1d5,{'body':_0xa42bbc});}async[_0x4d174b(0x3bc)](_0x4efa8d){const _0x46d99e=_0x4d174b,_0xc5fd7e=this[_0x46d99e(0x151)]()+_0x46d99e(0x1e6);await this[_0x46d99e(0x2ac)][_0x46d99e(0x14f)](_0xc5fd7e,{'body':_0x4efa8d});}async[_0x4d174b(0x1c4)](_0x4335e1){const _0xef1362=_0x4d174b,_0x47f42e=this['_getAPIPrefixPath']()+'/collaborator';return(await this[_0xef1362(0x2ac)][_0xef1362(0x135)](_0x47f42e,{'params':{'objectID':_0x4335e1['objectID'],'unitID':_0x4335e1[_0xef1362(0x1e2)]}}))[_0xef1362(0x154)][_0xef1362(0x101)];}async['putCollaborators'](_0x3b7c8e){const _0x5994d7=_0x4d174b,_0xbde44=this[_0x5994d7(0x151)]()+'/collaborator';await this['_HTTPService']['put'](_0xbde44,{'body':_0x3b7c8e});}};Dt=mo([cs(0x0,_0x5b671c(_0x45a59b)),cs(0x1,_0x5b671c(_0x15fd76))],Dt);var So=Object[_0x4d174b(0x1e3)],vo=Object['getOwnPropertyDescriptor'],po=(_0x41eeff,_0x2c127f,_0x3aea62,_0x4bfddf)=>{for(var _0x372627=_0x4bfddf>0x1?void 0x0:_0x4bfddf?vo(_0x2c127f,_0x3aea62):_0x2c127f,_0x17c001=_0x41eeff['length']-0x1,_0xfbcb8c;_0x17c001>=0x0;_0x17c001--)(_0xfbcb8c=_0x41eeff[_0x17c001])&&(_0x372627=(_0x4bfddf?_0xfbcb8c(_0x2c127f,_0x3aea62,_0x372627):_0xfbcb8c(_0x372627))||_0x372627);return _0x4bfddf&&_0x372627&&So(_0x2c127f,_0x3aea62,_0x372627),_0x372627;},hs=(_0x4cfbc4,_0x767b93)=>(_0x26ca4d,_0x1d1c9e)=>_0x767b93(_0x26ca4d,_0x1d1c9e,_0x4cfbc4);const Io=[_0x4d174b(0x1e9),_0x4d174b(0x28b),_0x4d174b(0x378),_0x4d174b(0x216),_0x4d174b(0xfc)],Eo=0x5*0x400*0x400,Co=_0x4d174b(0x25f),bo=_0x4d174b(0x392),To=_0x4d174b(0x28c),Ro='/universer-api/file/{fileID}/sign-url';let Pt=class{constructor(_0x12f7dc,_0x183b65){const _0x292e85=_0x4d174b;l(this,_0x292e85(0x2a2),0x0),l(this,_0x292e85(0x206),new _0x49ef1a()),l(this,_0x292e85(0x38b),this[_0x292e85(0x206)]),l(this,_0x292e85(0xc9),new Map()),(this[_0x292e85(0x145)]=_0x12f7dc,this[_0x292e85(0x229)]=_0x183b65);}[_0x4d174b(0x11a)](_0x4e4f4f){const _0x3e6c2c=_0x4d174b;this['_waitCount']=_0x4e4f4f,this[_0x3e6c2c(0x206)][_0x3e6c2c(0xe2)](_0x4e4f4f);}[_0x4d174b(0x1d2)](_0x3919c5,_0x31e7b9){const _0x2086be=_0x4d174b;if(_0x31e7b9===_0x2f95cc['BASE64']){const _0x1532f5=new Image();return _0x1532f5[_0x2086be(0x20e)]=_0x3919c5,_0x1532f5;}return this[_0x2086be(0xc9)][_0x2086be(0x135)](_0x3919c5);}[_0x4d174b(0x1cc)](_0x42c8d7,_0x1c7772,_0x1929c0){const _0x3d3109=_0x4d174b;_0x1c7772===_0x2f95cc['BASE64']||_0x1929c0==null||this[_0x3d3109(0xc9)][_0x3d3109(0x34a)](_0x42c8d7,_0x1929c0);}async['getImage'](_0x81063e){const _0x3ad04c=_0x4d174b;try{const _0x19a5a0=this[_0x3ad04c(0x106)](this[_0x3ad04c(0x382)](),''+_0x81063e),_0xee57ac=(await this['_httpService']['get'](_0x19a5a0))[_0x3ad04c(0x154)];return _0xee57ac[_0x3ad04c(0xba)]&&_0xee57ac[_0x3ad04c(0xba)]['code']===Os['OK']?Promise[_0x3ad04c(0x37e)](_0xee57ac[_0x3ad04c(0x315)]):Promise['reject'](_0xee57ac[_0x3ad04c(0xba)]);}catch(_0xa5defa){return Promise[_0x3ad04c(0x3ec)](_0xa5defa);}}async['saveImage'](_0x543f39){const _0x4f438e=_0x4d174b;let _0x74c001='';if(!Io[_0x4f438e(0x39d)](_0x543f39[_0x4f438e(0x13a)]))return this[_0x4f438e(0x128)](),Promise['reject'](new Error(_0x55f297[_0x4f438e(0x34c)]));if(_0x543f39['size']>Eo)return this['_decreaseWaiting'](),Promise[_0x4f438e(0x3ec)](new Error(_0x55f297[_0x4f438e(0x29a)]));try{const _0x2f2440=new FormData();_0x2f2440[_0x4f438e(0xed)](_0x4f438e(0x27c),_0x543f39);const _0x2f6fb1=this[_0x4f438e(0x1a5)]()+'?size='+_0x543f39[_0x4f438e(0x262)][_0x4f438e(0xec)](),_0x1cf352=await(await fetch(_0x2f6fb1,{'method':_0x4f438e(0xd6),'body':_0x2f2440}))[_0x4f438e(0x1e8)]();if(typeof _0x1cf352[_0x4f438e(0x3b8)]!='string')return this['_decreaseWaiting'](),Promise[_0x4f438e(0x3ec)](new Error(_0x55f297[_0x4f438e(0x1b6)]));_0x74c001=_0x1cf352[_0x4f438e(0x3b8)];}catch{return this[_0x4f438e(0x128)](),Promise[_0x4f438e(0x3ec)](new Error(_0x55f297[_0x4f438e(0x1b6)]));}return new Promise((_0x5665ea,_0x52b3b4)=>{const _0x31850d=_0x4f438e,_0x12f4d8=new FileReader();_0x12f4d8[_0x31850d(0x3e2)](_0x543f39),_0x12f4d8[_0x31850d(0x3d7)]=_0x51b6de=>{const _0x55052e=_0x31850d;var _0x226d39;const _0x341fb6=(_0x226d39=_0x51b6de[_0x55052e(0x2ea)])==null?void 0x0:_0x226d39[_0x55052e(0x310)];if(_0x341fb6==null){this['_decreaseWaiting'](),_0x52b3b4(new Error(_0x55f297[_0x55052e(0x1b6)]));return;}const _0x4d7e12=_0x1053dd[_0x55052e(0x31d)](0x6);_0x5665ea({'imageId':_0x4d7e12,'imageSourceType':_0x2f95cc[_0x55052e(0xea)],'source':_0x74c001,'base64Cache':_0x341fb6,'status':_0x55f297[_0x55052e(0x25a)]}),this[_0x55052e(0x128)]();};});}[_0x4d174b(0x1a5)](){const _0x13b760=_0x4d174b;var _0x591ef4;return(_0x591ef4=this[_0x13b760(0x229)]['getConfig'](Co))!=null?_0x591ef4:bo;}['_getSignURL'](){const _0x244265=_0x4d174b;var _0x4e98d8;return(_0x4e98d8=this[_0x244265(0x229)][_0x244265(0x1f0)](To))!=null?_0x4e98d8:Ro;}[_0x4d174b(0x106)](_0x25e5e8,_0x23b0e9){const _0x4a5f7a=_0x4d174b;return _0x25e5e8[_0x4a5f7a(0x16f)]('{fileID}',_0x23b0e9);}[_0x4d174b(0x128)](){const _0xfe03e5=_0x4d174b;this[_0xfe03e5(0x2a2)]-=0x1,this[_0xfe03e5(0x206)][_0xfe03e5(0xe2)](this[_0xfe03e5(0x2a2)]);}};Pt=po([hs(0x0,_0x5b671c(_0x45a59b)),hs(0x1,_0x15fd76)],Pt);var Oo=Object[_0x4d174b(0x1e3)],Do=Object['getOwnPropertyDescriptor'],Po=(_0x216f9c,_0x47debd,_0x5e8141,_0xe248f7)=>{const _0x1bf043=_0x4d174b;for(var _0x47a77a=_0xe248f7>0x1?void 0x0:_0xe248f7?Do(_0x47debd,_0x5e8141):_0x47debd,_0x153d4f=_0x216f9c[_0x1bf043(0x2e1)]-0x1,_0x449572;_0x153d4f>=0x0;_0x153d4f--)(_0x449572=_0x216f9c[_0x153d4f])&&(_0x47a77a=(_0xe248f7?_0x449572(_0x47debd,_0x5e8141,_0x47a77a):_0x449572(_0x47a77a))||_0x47a77a);return _0xe248f7&&_0x47a77a&&Oo(_0x47debd,_0x5e8141,_0x47a77a),_0x47a77a;},Re=(_0x38b4f6,_0x1c567b)=>(_0x4ad3d1,_0x3617cd)=>_0x1c567b(_0x4ad3d1,_0x3617cd,_0x38b4f6);let Be=class extends _0x52c754{constructor(_0x105696,_0xceb2c6,_0x49b10a,_0x128f29,_0x3f0fe3){const _0x591cfe=_0x4d174b;super(),this['_injector']=_0x105696,this[_0x591cfe(0x115)]=_0xceb2c6,this['_permissionService']=_0x49b10a,this[_0x591cfe(0x2d5)]=_0x128f29,this['_localeService']=_0x3f0fe3,this['_initUnitPermissionChange'](),this[_0x591cfe(0x24a)]();}['_initCloseConn'](){const _0x4b4638=_0x4d174b,_0x5d40a2=async _0x2f816c=>{const _0x525ad4=_0x2798;(await this[_0x525ad4(0x2d5)][_0x525ad4(0x2eb)](_0x2f816c))[_0x525ad4(0x1a9)][_0x525ad4(0xbe)](_0x22c59c(_0x4c1ceb=>_0x4c1ceb['eventID']===_0x2c65dc[_0x525ad4(0x217)]),_0x21a0e1(this[_0x525ad4(0xdd)]))['subscribe'](_0x154798=>{const _0x4a0bef=_0x525ad4,_0x5e2aa1=_0x154798,{reason:_0x1d7a6e}=_0x5e2aa1['data'];this['_injector'][_0x4a0bef(0x135)](_0x1e8990)[_0x4a0bef(0x199)]({'type':_0x17d4c8['Error'],'content':this[_0x4a0bef(0x13d)]['t'](_0x4a0bef(0x304))+'('+_0x1d7a6e+')'}),this[_0x4a0bef(0x126)][_0x4a0bef(0x3c9)](new _0x56d014(_0x2f816c)['id'],!0x1),this[_0x4a0bef(0x2d5)][_0x4a0bef(0x305)](_0x2f816c);});};_0x4e0a85(this[_0x4b4638(0x115)][_0x4b4638(0x174)](_0x1851b1[_0x4b4638(0x202)]),this[_0x4b4638(0x115)][_0x4b4638(0x174)](_0x1851b1[_0x4b4638(0x2b7)]))['pipe'](_0x120a2e(_0x33f4ca=>_0x33f4ca[_0x4b4638(0x150)]()),_0x22c59c(_0x445f32=>!_0x48cbdf(_0x445f32)),_0x21a0e1(this[_0x4b4638(0xdd)]))[_0x4b4638(0x269)](_0x4fdbb8=>{_0x5d40a2(_0x4fdbb8);});}[_0x4d174b(0x139)](){const _0xcea6b1=_0x4d174b,_0x337ed9=async _0x640fc0=>{const _0x558ef7=_0x2798;(await this[_0x558ef7(0x2d5)][_0x558ef7(0x2eb)](_0x640fc0))[_0x558ef7(0x1a9)][_0x558ef7(0xbe)](_0x22c59c(_0x19738c=>_0x19738c[_0x558ef7(0x10c)]===_0x2c65dc[_0x558ef7(0x374)]),_0x21a0e1(this[_0x558ef7(0xdd)]))[_0x558ef7(0x269)](_0x2899b9=>{const _0x6dd3cd=_0x558ef7,_0x4778c6=_0x2899b9,{objectId:_0x5b9de9}=_0x4778c6[_0x6dd3cd(0x299)];_0x5b9de9===_0x640fc0&&this[_0x6dd3cd(0x36e)][_0x6dd3cd(0x135)](_0x52d8a4)[_0x6dd3cd(0x38d)](_0x640fc0);});};_0x4e0a85(this[_0xcea6b1(0x115)]['getTypeOfUnitAdded$'](_0x1851b1['UNIVER_SHEET']),this['_univerInstanceService'][_0xcea6b1(0x174)](_0x1851b1[_0xcea6b1(0x2b7)]))[_0xcea6b1(0xbe)](_0x120a2e(_0x5c2ff1=>_0x5c2ff1[_0xcea6b1(0x150)]()),_0x22c59c(_0x3aa4be=>!_0x48cbdf(_0x3aa4be)),_0x21a0e1(this[_0xcea6b1(0xdd)]))['subscribe'](_0x4298cd=>{_0x337ed9(_0x4298cd);});}};Be=Po([_0xbfca41(_0x5b23af[_0x4d174b(0x132)],Be),Re(0x0,_0x5b671c(_0x49e10e)),Re(0x1,_0x2269ec),Re(0x2,_0xf5bbc5),Re(0x3,_0x5b671c(ge)),Re(0x4,_0x5b671c(_0x35ebff))],Be);var js=Object[_0x4d174b(0x1e3)],wo=Object[_0x4d174b(0x13f)],No=(_0x323000,_0x322804,_0x3fe592)=>_0x322804 in _0x323000?js(_0x323000,_0x322804,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fe592}):_0x323000[_0x322804]=_0x3fe592,Mo=(_0x4936db,_0x7d7a25,_0x1e35c3,_0x2969bf)=>{const _0x5f9f7=_0x4d174b;for(var _0x45a81d=_0x2969bf>0x1?void 0x0:_0x2969bf?wo(_0x7d7a25,_0x1e35c3):_0x7d7a25,_0x460dc1=_0x4936db[_0x5f9f7(0x2e1)]-0x1,_0x1b7fa7;_0x460dc1>=0x0;_0x460dc1--)(_0x1b7fa7=_0x4936db[_0x460dc1])&&(_0x45a81d=(_0x2969bf?_0x1b7fa7(_0x7d7a25,_0x1e35c3,_0x45a81d):_0x1b7fa7(_0x45a81d))||_0x45a81d);return _0x2969bf&&_0x45a81d&&js(_0x7d7a25,_0x1e35c3,_0x45a81d),_0x45a81d;},mt=(_0x264c55,_0x3552ce)=>(_0x5a59db,_0x4d2e79)=>_0x3552ce(_0x5a59db,_0x4d2e79,_0x264c55),Ao=(_0x2e2079,_0x38f182,_0x38a0fc)=>No(_0x2e2079,_0x38f182+'',_0x38a0fc);const yo='UNIVER_COLLABORATION_CLIENT_PLUGIN';let wt=class extends _0x1b986b{constructor(_0xc3b997,_0x5a6713,_0x47f0d0,_0xb6891f){const _0x2afb2a=_0x4d174b;super(),this[_0x2afb2a(0x20c)]=_0xc3b997,this[_0x2afb2a(0x30a)]=_0x5a6713,this[_0x2afb2a(0x2c3)]=_0x47f0d0,this[_0x2afb2a(0x36e)]=_0xb6891f;}[_0x4d174b(0x314)](_0x340f70){const _0x43f497=_0x4d174b;this[_0x43f497(0x159)](_0x340f70);}[_0x4d174b(0x2fd)](){const _0x427120=_0x4d174b;this[_0x427120(0x33f)]();}[_0x4d174b(0x159)](_0x3a193d){const _0x17a12d=_0x4d174b;var _0x12bf67,_0x2b1e18,_0x56e7a8,_0x21d839;_0x3a193d[_0x17a12d(0x37c)](_0x5f56c1)&&this[_0x17a12d(0x30a)][_0x17a12d(0xba)](_0x17a12d(0xbb),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x2edbe8=[[_0x5f56c1,{'useClass':Ot}],[ge],[xt],[_0x45a59b],[$s,{'useClass':Qr}],[te],[O],[_0x260c27],[qe],[Je],[Xe],[jt],[Ze],[Ps],[Be],[Ds,{'useClass':(_0x2b1e18=(_0x12bf67=this['_config'])==null?void 0x0:_0x12bf67['socketService'])!=null?_0x2b1e18:vt}],[_0x5aae1e,{'useClass':_0x52538a}],[_0x31fed6,{'useClass':Rt}],[_0x120323,{'useClass':Dt}],[_0x24c8c0,{'useClass':Pt}],[Oe],[ke],[He],[Fe],[me]];(_0x56e7a8=this[_0x17a12d(0x20c)])!=null&&_0x56e7a8[_0x17a12d(0x268)]&&_0x2edbe8[_0x17a12d(0x328)]([et,{'useClass':yn}]),_0x2edbe8=_0x28386f(_0x2edbe8,(_0x21d839=this[_0x17a12d(0x20c)])==null?void 0x0:_0x21d839['override']),_0x2edbe8['forEach'](_0x165ff2=>_0x3a193d['add'](_0x165ff2)),this[_0x17a12d(0x380)]();}[_0x4d174b(0x33f)](){const _0x46f73c=_0x4d174b;this['disposeWithMe'](this[_0x46f73c(0x2c3)]['registerRenderModule'](_0x1851b1[_0x46f73c(0x2b7)],[Ve])),this[_0x46f73c(0xe4)](this[_0x46f73c(0x2c3)][_0x46f73c(0x3b7)](_0x1851b1['UNIVER_SHEET'],[Tt]));}[_0x4d174b(0x380)](){const _0x513b9d=_0x4d174b;var _0xdeff0d,_0x1c72d9;this[_0x513b9d(0x36e)][_0x513b9d(0x135)](_0x45a59b)[_0x513b9d(0x249)]({'priority':0x14,'interceptor':_0x50c28f({'maxParallel':0x6})}),(_0xdeff0d=this[_0x513b9d(0x20c)])!=null&&_0xdeff0d[_0x513b9d(0x280)]||this[_0x513b9d(0x36e)][_0x513b9d(0x135)](O)[_0x513b9d(0x11c)](),(_0x1c72d9=this[_0x513b9d(0x20c)])!=null&&_0x1c72d9[_0x513b9d(0x28a)]&&this[_0x513b9d(0x36e)][_0x513b9d(0x135)](Ze);}};Ao(wt,_0x4d174b(0x19a),yo),wt=Mo([_0x34bd97(_0x5889e9),mt(0x1,_0x50a504),mt(0x2,_0xa71c3c),mt(0x3,_0x5b671c(_0x49e10e))],wt);export{fo as AUTHZ_URL_KEY,Dt as AuthzIoHttpService,mn as COLLAB_SUBMIT_CHANGESET_URL_KEY,nn as COLLAB_WEB_SOCKET_URL_KEY,Oe as CollaborationController,pt as CollaborationSession,ge as CollaborationSessionService,vt as CollaborationSocketService,P as CollaborationStatus,Ur as CollaborationStatusDisplay,Ps as CommentService,ke as DataLoaderController,He as DesktopCollaborationStatusDisplayController,on as HEARTBEAT_INTERVAL_KEY,Ts as HEARTBEAT_TIMEOUT_KEY,Ds as ICollaborationSocketService,$s as IURLService,Pt as ImageIoService,un as LOCAL_CACHE_INTERVAL_KEY,gn as LOGIN_URL_KEY,O as LocalCacheService,tn as SEND_CHANGESET_TIMEOUT_KEY,Zi as SNAPSHOT_SERVER_URL_KEY,en as SNAPSHOT_URL_KEY,de as SessionStatus,gr as SheetCollabCursorShape,Et as SheetCollaborationEntity,Rt as SnapshotServerOverHTTPService,wt as UniverCollaborationClientPlugin,Qr as WebURLService,Cn as deserializeToCombResponse,bn as serializeCombRequest};
|
1
|
+
const _0x1e1deb=_0x44de;(function(_0x5caaba,_0xf4c842){const _0x31c50a=_0x44de,_0x1ed9d0=_0x5caaba();while(!![]){try{const _0x277aec=parseInt(_0x31c50a(0x22c))/0x1*(-parseInt(_0x31c50a(0x1ed))/0x2)+-parseInt(_0x31c50a(0x1f0))/0x3+parseInt(_0x31c50a(0x2cb))/0x4+parseInt(_0x31c50a(0x153))/0x5+-parseInt(_0x31c50a(0x235))/0x6*(-parseInt(_0x31c50a(0x1e7))/0x7)+-parseInt(_0x31c50a(0x2eb))/0x8*(parseInt(_0x31c50a(0x108))/0x9)+-parseInt(_0x31c50a(0x1d2))/0xa;if(_0x277aec===_0xf4c842)break;else _0x1ed9d0['push'](_0x1ed9d0['shift']());}catch(_0x1c31bd){_0x1ed9d0['push'](_0x1ed9d0['shift']());}}}(_0x48fb,0x7b1ff));var Gs=Object[_0x1e1deb(0x158)],Ys=(_0x1e9254,_0x27915c,_0x10e9dc)=>_0x27915c in _0x1e9254?Gs(_0x1e9254,_0x27915c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10e9dc}):_0x1e9254[_0x27915c]=_0x10e9dc,l=(_0x56df29,_0x505eb8,_0x49369f)=>Ys(_0x56df29,typeof _0x505eb8!=_0x1e1deb(0x180)?_0x505eb8+'':_0x505eb8,_0x49369f);import{Disposable as _0xc94eea,toDisposable as _0x4259e5,UniverInstanceType as _0x37298b,Inject as _0x441fe2,UserManagerService as _0x12c7a1,IUniverInstanceService as _0x4902a5,createIdentifier as _0x32feec,DisposableCollection as _0x5b86e3,IConfigService as _0x5445a8,ILogService as _0x5f4df3,ISnapshotServerService as _0x4a4d9b,RxDisposable as _0x5b9cf1,LocaleService as _0x2cfe85,Injector as _0x9c5d64,ILocalStorageService as _0x2f04ba,Tools as _0x4526c0,ICommandService as _0x9845f,JSONX as _0x564a09,CommandType as _0x5cd9c4,IPermissionService as _0x3660f2,IUndoRedoService as _0x416533,sequenceExecute as _0x35dc8f,OnLifecycle as _0x3e0133,LifecycleStages as _0x1781f1,Optional as _0x16cd37,Rectangle as _0xf02aa9,ThemeService as _0x5af768,useDependency as _0x12a590,connectInjector as _0x1bcf38,Workbook as _0x5a1e31,textEncoder as _0x3faa9c,b64DecodeUnicode as _0x41bd2d,LocalUndoRedoService as _0x3da1d9,IContextService as _0x3def4f,COLORS as _0x5090fb,ColorKit as _0x1d709d,fromEventSubject as _0x3cb543,isInternalEditorID as _0x2f9fa5,Plugin as _0x14ee3b,IAuthzIoService as _0x2914fb,mergeOverrideWithDependencies as _0x117d0f,DependentOn as _0xb27d8b}from'@univerjs/core';import{SheetsSelectionsService as _0x402922,SetSelectionsOperation as _0x37d621,InsertSheetMutation as _0x447932,EmptyMutation as _0x4bcf83,WorkbookEditablePermission as _0x230e97,RefRangeService as _0x298890,EffectRefRangId as _0x5d94fe,handleIRemoveRow as _0x361c3a,handleIRemoveCol as _0x1cf9bc,handleMoveRange as _0x158655,handleInsertRow as _0x4865ab,handleInsertRangeMoveRight as _0x5abfa3,handleInsertRangeMoveDown as _0x4c8313,handleInsertCol as _0x3fcda2,handleDeleteRangeMoveUp as _0x31ef26,handleDeleteRangeMoveLeft as _0x5f1e8b,runRefRangeMutations as _0x1df086,SetWorksheetActivateCommand as _0x2576c5}from'@univerjs/sheets';import{MessageType as _0x3eac95}from'@univerjs/design';import{IBeforeCloseService as _0x1a3f95,IMessageService as _0x49507b,INotificationService as _0x73ec84,useObservable as _0x40760a,BuiltInUIPart as _0x37823b,IUIPartsService as _0xbabd5f}from'@univerjs/ui';import{CollaborationEvent as _0x1c415b,parseChangesetToProtocol as _0x23ced7,RevisionService as _0xaeae41,isTransformMutationFailure as _0x1d42ec,isTransformMutationsWithChangesetSuccess as _0x4f645f,ITransformService as _0x1e0f5c,mapDocumentTypeToUniverType as _0x4d8b7d,isTransformChangesetsSuccess as _0x316cc8,CompressMutationService as _0x4ef08c,parseProtocolChangeset as _0x485874,SnapshotService as _0x1e8d71,isTransformMutationsWithChangesetFailure as _0x5339fb,UniverCollaborationPlugin as _0x5d157c}from'@univerjs-pro/collaboration';import{merge as _0x5726e7,Subject as _0x365a49,BehaviorSubject as _0x16d05d,distinctUntilChanged as _0x306a98,fromEvent as _0x1fd07d,of as _0x4f1794,takeUntil as _0x3f75b0,debounceTime as _0x380776,filter as _0x4543ab,switchMap as _0xd6054c,combineLatest as _0x1a6529,shareReplay as _0xaffb9f,mapTo as _0x497582,concatMap as _0x4ff395}from'rxjs';import{map as _0x5ac769,takeUntil as _0x946afe,take as _0x59ece1,filter as _0x190413,delay as _0x12d8e6,shareReplay as _0xec62cf,switchMap as _0x4abf00,throttleTime as _0x4faae9}from'rxjs/operators';import{IMEInputManagerService as _0x3c7fed,TextSelectionManagerService as _0x490704,serializeDocRange as _0x14d063,RichTextEditingMutation as _0x54abea,DocStateChangeManagerService as _0x30c46a,SetTextSelectionsOperation as _0x1ed2cb,SetDocZoomRatioOperation as _0x21025d,DocSkeletonManagerService as _0x1b04a5}from'@univerjs/docs';import{HTTPService as _0x34ef08,WebSocketService as _0x3ee676,MergeInterceptorFactory as _0x57c1a3,HTTPRequest as _0x3f5fe8,IHTTPImplementation as _0x2a4f7d,XHRHTTPImplementation as _0xea0666,ThresholdInterceptorFactory as _0x43013b}from'@univerjs/network';import{ImageSourceType as _0x53415e,ImageUploadStatusType as _0x3a4a7b,IImageIoService as _0x19b622}from'@univerjs/drawing';import{Shape as _0x26e4f3,Rect as _0xb0d98f,Vector2 as _0x261805,NodePositionConvertToCursor as _0x23cfc5,isValidRectRange as _0x4e3ab9,NodePositionConvertToRectRange as _0x52f652,getColor as _0x2c779e,TEXT_RANGE_LAYER_INDEX as _0x261e5f,RegularPolygon as _0x3fb47a,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x3aecba,IRenderManagerService as _0x2b632b}from'@univerjs/engine-render';import{deserializeRangeWithSheet as _0x370f5d,serializeRangeWithSheet as _0x419817}from'@univerjs/engine-formula';import _0x21f8bc from'lodash/debounce';import{VIEWPORT_KEY as _0x148a75,getCoordByCell as _0x2dd2e3,getSheetObject as _0x8759c1,SheetSkeletonManagerService as _0x1b2381,SheetPermissionInitController as _0x357f80}from'@univerjs/sheets-ui';import _0xed19ed,{forwardRef as _0x4c5978,useRef as _0x42a52e,createElement as _0x5dad64}from'react';import _0x513823 from'clsx';import{IRemoteInstanceService as _0x182e1b}from'@univerjs/rpc';const on=_0x1e1deb(0x347),an=_0x1e1deb(0x401),cn=_0x1e1deb(0x1b5),hn=_0x1e1deb(0x210),ln=0x7d0,_n=_0x1e1deb(0x30a),un=_0x1e1deb(0x1a9),dn=_0x1e1deb(0x297),mn=0x7530,Os=_0x1e1deb(0x239),Ds=0x2710,fn=_0x1e1deb(0x2c3),gn=0x4e20,Sn=_0x1e1deb(0x1f5),pn=0x3,vn=_0x1e1deb(0x41c),In=0x3e8,En=_0x1e1deb(0x120),Cn=_0x1e1deb(0x3af),bn='LOGIN_URL_KEY',Tn=_0x1e1deb(0x224);var Ps=(_0x2ff3ab=>(_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x36e)]=0x0]=_0x1e1deb(0x36e),_0x2ff3ab[_0x2ff3ab['OK']=0x1]='OK',_0x2ff3ab[_0x2ff3ab['INTERNAL_ERROR']=0x2]=_0x1e1deb(0x31a),_0x2ff3ab[_0x2ff3ab['PERMISSION_DENIED']=0x3]=_0x1e1deb(0x2f5),_0x2ff3ab[_0x2ff3ab['NOT_FOUND']=0x4]=_0x1e1deb(0x123),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x2fe)]=0x5]='UNAUTHENTICATED',_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x2bb)]=0x6]=_0x1e1deb(0x2bb),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x1c0)]=0x7]=_0x1e1deb(0x1c0),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x267)]=0x8]=_0x1e1deb(0x267),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x326)]=0x9]=_0x1e1deb(0x326),_0x2ff3ab[_0x2ff3ab['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2ff3ab[_0x2ff3ab['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x2b7)]=0x1772]=_0x1e1deb(0x2b7),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x1a3)]=0x1b59]='APPLY_REJECT',_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x378)]=0x1b5a]=_0x1e1deb(0x378),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x343)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x321)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x2ff3ab[_0x2ff3ab['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x1e1deb(0x1a5),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x284)]=0x2329]=_0x1e1deb(0x284),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0xfb)]=0x232a]=_0x1e1deb(0xfb),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x3b2)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x3ac)]=0x232c]=_0x1e1deb(0x3ac),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x13d)]=0x232d]=_0x1e1deb(0x13d),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x122)]=0x2711]=_0x1e1deb(0x122),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x285)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x391)]=0x2713]=_0x1e1deb(0x391),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x2e0)]=0x2714]=_0x1e1deb(0x2e0),_0x2ff3ab[_0x2ff3ab[_0x1e1deb(0x1b1)]=-0x1]=_0x1e1deb(0x1b1),_0x2ff3ab))(Ps||{}),x=(_0x310cc1=>(_0x310cc1[_0x310cc1[_0x1e1deb(0x234)]=0x0]=_0x1e1deb(0x234),_0x310cc1[_0x310cc1[_0x1e1deb(0x1c7)]=0x1]=_0x1e1deb(0x1c7),_0x310cc1[_0x310cc1['UNIVER_SHEET']=0x2]=_0x1e1deb(0x3d0),_0x310cc1[_0x310cc1[_0x1e1deb(0x41b)]=0x3]='UNIVER_SLIDE',_0x310cc1[_0x310cc1[_0x1e1deb(0x1b1)]=-0x1]=_0x1e1deb(0x1b1),_0x310cc1))(x||{}),I=(_0x5bb7f0=>(_0x5bb7f0[_0x5bb7f0[_0x1e1deb(0x17e)]=0x0]='UNKNOWN_CMD',_0x5bb7f0[_0x5bb7f0[_0x1e1deb(0x37f)]=0x1]='HELLO',_0x5bb7f0[_0x5bb7f0['JOIN']=0x2]=_0x1e1deb(0x14f),_0x5bb7f0[_0x5bb7f0[_0x1e1deb(0x3ca)]=0x3]=_0x1e1deb(0x3ca),_0x5bb7f0[_0x5bb7f0[_0x1e1deb(0x420)]=0x4]=_0x1e1deb(0x420),_0x5bb7f0[_0x5bb7f0['HEARTBEAT']=0x5]='HEARTBEAT',_0x5bb7f0[_0x5bb7f0[_0x1e1deb(0x3c5)]=0x6]=_0x1e1deb(0x3c5),_0x5bb7f0[_0x5bb7f0[_0x1e1deb(0x1b1)]=-0x1]=_0x1e1deb(0x1b1),_0x5bb7f0))(I||{}),$t=(_0xdea636=>(_0xdea636[_0xdea636[_0x1e1deb(0x21e)]=0x0]=_0x1e1deb(0x21e),_0xdea636[_0xdea636['OK']=0x1]='OK',_0xdea636[_0xdea636['FAIL']=0x2]='FAIL',_0xdea636[_0xdea636[_0x1e1deb(0x1b1)]=-0x1]=_0x1e1deb(0x1b1),_0xdea636))($t||{}),Rn=Object['defineProperty'],On=Object['getOwnPropertyDescriptor'],Dn=(_0x171d31,_0x124962,_0x12b32d,_0x199f79)=>{const _0x2ac37d=_0x1e1deb;for(var _0x3fa628=_0x199f79>0x1?void 0x0:_0x199f79?On(_0x124962,_0x12b32d):_0x124962,_0x12a6f1=_0x171d31[_0x2ac37d(0x426)]-0x1,_0x4760a8;_0x12a6f1>=0x0;_0x12a6f1--)(_0x4760a8=_0x171d31[_0x12a6f1])&&(_0x3fa628=(_0x199f79?_0x4760a8(_0x124962,_0x12b32d,_0x3fa628):_0x4760a8(_0x3fa628))||_0x3fa628);return _0x199f79&&_0x3fa628&&Rn(_0x124962,_0x12b32d,_0x3fa628),_0x3fa628;},Zt=(_0xd518a6,_0x28199a)=>(_0x301d51,_0x219caa)=>_0x28199a(_0x301d51,_0x219caa,_0xd518a6);let ne=class extends _0xc94eea{constructor(_0x453fac,_0x2b579e){const _0x25ee89=_0x1e1deb;super(),l(this,_0x25ee89(0x2cf),new Map()),(this['_univerInstanceService']=_0x453fac,this['_userManagerService']=_0x2b579e,this[_0x25ee89(0x32e)](_0x4259e5(_0x5726e7(this[_0x25ee89(0x145)][_0x25ee89(0x363)](_0x37298b[_0x25ee89(0x3d0)])[_0x25ee89(0x119)](_0x5ac769(_0xb76318=>_0xb76318[_0x25ee89(0x3cf)]())),this[_0x25ee89(0x145)][_0x25ee89(0x363)](_0x37298b['UNIVER_DOC'])[_0x25ee89(0x119)](_0x5ac769(_0x52e1f4=>_0x52e1f4[_0x25ee89(0x3cf)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x37298b['UNIVER_SLIDE'])['pipe'](_0x5ac769(_0x57ba0e=>_0x57ba0e[_0x25ee89(0x3cf)]())))[_0x25ee89(0x3e0)](_0x47680e=>this['_removeRoom'](_0x47680e)))));}['setCurrentUser'](_0x2131d5){const _0x3fd17d=_0x1e1deb;this['_userManagerService'][_0x3fd17d(0x380)](_0x2131d5);}[_0x1e1deb(0x20c)](){const _0x289c3a=_0x1e1deb;return this[_0x289c3a(0x192)][_0x289c3a(0x20c)]();}[_0x1e1deb(0x23f)](_0xbabbee,_0x5f3856){const _0x2d0537=_0x1e1deb;let _0x210e1b=this[_0x2d0537(0x2cf)]['get'](_0xbabbee);_0x210e1b||(_0x210e1b=new Pn(),this[_0x2d0537(0x2cf)][_0x2d0537(0x394)](_0xbabbee,_0x210e1b)),_0x210e1b['updateMember'](_0x5f3856);}[_0x1e1deb(0x238)](_0x76d36b,_0x45e793){const _0x9129f5=_0x1e1deb,_0x3d2f9b=this['_roomMembers'][_0x9129f5(0x10a)](_0x76d36b);_0x3d2f9b&&_0x3d2f9b[_0x9129f5(0x238)](_0x45e793);}[_0x1e1deb(0x42e)](_0x193658){const _0x2fa797=_0x1e1deb;return this[_0x2fa797(0x2cf)]['get'](_0x193658);}[_0x1e1deb(0x3a0)](_0x428ca9,_0x4be60b){const _0x5b255f=_0x1e1deb,_0x230529=this[_0x5b255f(0x2cf)]['get'](_0x428ca9);if(_0x230529)return _0x230529[_0x5b255f(0x3a0)](_0x4be60b);}[_0x1e1deb(0x3fa)](_0x5c91e8){const _0x5cf32e=_0x1e1deb,_0x684035=this[_0x5cf32e(0x2cf)][_0x5cf32e(0x10a)](_0x5c91e8);_0x684035&&(_0x684035['dispose'](),this[_0x5cf32e(0x2cf)][_0x5cf32e(0x36f)](_0x5c91e8));}[_0x1e1deb(0x1de)](){const _0x4da830=_0x1e1deb;this[_0x4da830(0x2cf)][_0x4da830(0x23e)](_0x275d0c=>_0x275d0c[_0x4da830(0x1de)]()),this[_0x4da830(0x2cf)][_0x4da830(0x124)]();}};ne=Dn([Zt(0x0,_0x4902a5),Zt(0x1,_0x441fe2(_0x12c7a1))],ne);class Pn extends _0xc94eea{constructor(){super(...arguments),l(this,'_members',new Map());}['dispose'](){const _0x42df64=_0x1e1deb;this[_0x42df64(0x3f1)]['clear']();}[_0x1e1deb(0x23f)](_0x286440){const _0xcc55ac=_0x1e1deb;this[_0xcc55ac(0x3f1)]['set'](_0x286440[_0xcc55ac(0x283)],_0x286440);}[_0x1e1deb(0x238)](_0x2af5c0){this['_members']['delete'](_0x2af5c0);}[_0x1e1deb(0x3a0)](_0x2b4dfb){const _0x2226f7=_0x1e1deb;return this[_0x2226f7(0x3f1)]['get'](_0x2b4dfb);}}function wn(_0x4957fd){const _0x3d48b0=_0x1e1deb;var _0x5e161e,_0x50581e,_0x7e86ea,_0x3fe3ac;const _0x156b8e=_0x4957fd[_0x3d48b0(0x265)],_0x5abd0a=JSON['parse'](_0x156b8e);switch(_0x5abd0a[_0x3d48b0(0x129)]){case I[_0x3d48b0(0x410)]:case I[_0x3d48b0(0x37f)]:{const _0x1ac88b=_0x5abd0a[_0x3d48b0(0xfa)];return{..._0x5abd0a,'data':_0x1ac88b,'cmd':_0x5abd0a[_0x3d48b0(0x129)]};}case I['JOIN']:{const _0x25c109=_0x5abd0a[_0x3d48b0(0x324)];return{..._0x5abd0a,'data':_0x25c109,'cmd':_0x5abd0a[_0x3d48b0(0x129)]};}case I[_0x3d48b0(0x3c5)]:{const _0x3d0697=_0x5abd0a[_0x3d48b0(0x24f)];switch(_0x3d0697[_0x3d48b0(0x2f8)]){case _0x1c415b[_0x3d48b0(0x436)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':(_0x5e161e=_0x3d0697[_0x3d48b0(0x3b5)])==null?void 0x0:_0x5e161e['cs']},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b[_0x3d48b0(0x402)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':(_0x50581e=_0x3d0697[_0x3d48b0(0x242)])==null?void 0x0:_0x50581e['cs']},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b[_0x3d48b0(0x38c)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':(_0x7e86ea=_0x3d0697[_0x3d48b0(0x262)])==null?void 0x0:_0x7e86ea['cs']},'cmd':_0x5abd0a['cmd']};case _0x1c415b[_0x3d48b0(0x3fb)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':(_0x3fe3ac=_0x3d0697[_0x3d48b0(0x3de)])==null?void 0x0:_0x3fe3ac['cs']},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b[_0x3d48b0(0x21d)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697['updateCursorEvent']},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b['USERS_ENTER']:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697[_0x3d48b0(0x399)]},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b[_0x3d48b0(0x25e)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697['leaveEvent']},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b[_0x3d48b0(0x2c5)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697[_0x3d48b0(0x3d6)]},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b['LIVESHARE_FETCH_OPERATIONS']:case _0x1c415b[_0x3d48b0(0x1dc)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697[_0x3d48b0(0x148)]},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b['LIVESHARE_TERMINATE']:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697[_0x3d48b0(0x3d6)]},'cmd':_0x5abd0a['cmd']};case _0x1c415b[_0x3d48b0(0x422)]:return{..._0x5abd0a,'data':_0x3d0697,'cmd':_0x5abd0a[_0x3d48b0(0x129)]};case _0x1c415b['COMMENT_UPDATE']:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697['commentUpdateEvent']},'cmd':_0x5abd0a['cmd']};case _0x1c415b[_0x3d48b0(0x207)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697['updatePermissionObjEvent']},'cmd':_0x5abd0a['cmd']};case _0x1c415b[_0x3d48b0(0x171)]:return{..._0x5abd0a,'data':{..._0x3d0697,'data':_0x3d0697[_0x3d48b0(0x27a)]},'cmd':_0x5abd0a[_0x3d48b0(0x129)]};default:return _0x5abd0a;}}default:return _0x5abd0a;}}function Nn(_0x5c7866){const _0x2a5a4f=_0x1e1deb;switch(_0x5c7866['cmd']){case I[_0x2a5a4f(0x410)]:case I[_0x2a5a4f(0x37f)]:return JSON[_0x2a5a4f(0x32f)]({'cmd':_0x5c7866['cmd'],'routeKey':_0x5c7866[_0x2a5a4f(0x349)]});case I[_0x2a5a4f(0x420)]:{let _0x4ad669;switch(_0x5c7866[_0x2a5a4f(0x265)][_0x2a5a4f(0x2f8)]){case _0x1c415b[_0x2a5a4f(0x21d)]:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x21d)],'updateCursorEvent':_0x5c7866[_0x2a5a4f(0x265)][_0x2a5a4f(0x265)]};break;}case _0x1c415b[_0x2a5a4f(0x25e)]:{_0x4ad669={'eventID':_0x1c415b['USERS_LEAVE'],'leaveEvent':_0x5c7866[_0x2a5a4f(0x265)][_0x2a5a4f(0x265)]};break;}case _0x1c415b['USERS_ENTER']:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x29f)],'joinEvent':_0x5c7866[_0x2a5a4f(0x265)][_0x2a5a4f(0x265)]};break;}case _0x1c415b[_0x2a5a4f(0x2c5)]:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x2c5)],'liveShareNewHost':_0x5c7866[_0x2a5a4f(0x265)][_0x2a5a4f(0x265)]};break;}case _0x1c415b[_0x2a5a4f(0x1dc)]:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x1dc)],'liveShareOperation':_0x5c7866[_0x2a5a4f(0x265)]['data']};break;}case _0x1c415b[_0x2a5a4f(0x1bb)]:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x1bb)],'liveShareTerminate':_0x5c7866[_0x2a5a4f(0x265)][_0x2a5a4f(0x265)]};break;}case _0x1c415b['LIVESHARE_REQUEST_HOST']:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x2ab)],'liveShareRequestHost':_0x5c7866[_0x2a5a4f(0x265)]['data']};break;}case _0x1c415b['LIVESHARE_FETCH_OPERATIONS']:{_0x4ad669={'eventID':_0x1c415b[_0x2a5a4f(0x139)]};break;}default:_0x4ad669={'eventID':_0x5c7866['data'][_0x2a5a4f(0x2f8)]};}return JSON[_0x2a5a4f(0x32f)]({'cmd':_0x5c7866[_0x2a5a4f(0x129)],'routeKey':_0x5c7866['routeKey'],'collaMsg':_0x4ad669});}case I['JOIN']:return JSON['stringify']({'cmd':_0x5c7866['cmd'],'routeKey':_0x5c7866['routeKey'],'joinReq':_0x5c7866['data']});case I[_0x2a5a4f(0x3ca)]:return JSON['stringify']({'cmd':_0x5c7866[_0x2a5a4f(0x129)],'routeKey':_0x5c7866['routeKey'],'leaveReq':_0x5c7866[_0x2a5a4f(0x265)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var Mn=Object[_0x1e1deb(0x158)],An=Object['getOwnPropertyDescriptor'],yn=(_0x3e9988,_0x511b74,_0x578662,_0x2f23e5)=>{const _0x78c512=_0x1e1deb;for(var _0x132225=_0x2f23e5>0x1?void 0x0:_0x2f23e5?An(_0x511b74,_0x578662):_0x511b74,_0x7e2168=_0x3e9988[_0x78c512(0x426)]-0x1,_0x351478;_0x7e2168>=0x0;_0x7e2168--)(_0x351478=_0x3e9988[_0x7e2168])&&(_0x132225=(_0x2f23e5?_0x351478(_0x511b74,_0x578662,_0x132225):_0x351478(_0x132225))||_0x132225);return _0x2f23e5&&_0x132225&&Mn(_0x511b74,_0x578662,_0x132225),_0x132225;},Re=(_0xcbcb1f,_0x41a5ec)=>(_0x3628d6,_0x152677)=>_0x41a5ec(_0x3628d6,_0x152677,_0xcbcb1f);const ws=_0x32feec(_0x1e1deb(0x1e0));function Un(_0x5ebece,_0x18ea01,_0x5e1d29){const _0x7f0b9b=_0x1e1deb;return _0x5ebece+'/'+_0x18ea01+_0x7f0b9b(0x19e)+_0x5e1d29+_0x7f0b9b(0x294);}let pt=class{constructor(_0x40ca17,_0xbeea79,_0x26dff6,_0x266166,_0x1a735d){const _0x2b2a2e=_0x1e1deb;this[_0x2b2a2e(0x1aa)]=_0x40ca17,this[_0x2b2a2e(0x1dd)]=_0xbeea79,this[_0x2b2a2e(0x26b)]=_0x26dff6,this['_logService']=_0x266166,this[_0x2b2a2e(0x18f)]=_0x1a735d;}['createSocket'](_0x4cd524){const _0x273813=_0x1e1deb,_0x4bd368=this[_0x273813(0x1dd)][_0x273813(0x17f)](_0x4cd524);if(!_0x4bd368)throw new Error(_0x273813(0x2f1));const _0x4da524=new _0x5b86e3(),_0x546453=new _0x365a49();_0x4da524[_0x273813(0x11a)](_0x4259e5(_0x4bd368[_0x273813(0x34e)][_0x273813(0x3e0)](_0x37a33c=>_0x546453[_0x273813(0x3cd)](_0x37a33c)))),_0x4da524[_0x273813(0x11a)](_0x4259e5(()=>_0x546453[_0x273813(0x433)]()));const _0x1fd6d6=new _0x365a49();_0x4da524[_0x273813(0x11a)](_0x4259e5(_0x4bd368['error$'][_0x273813(0x3e0)](_0xf82dde=>_0x1fd6d6['next'](_0xf82dde)))),_0x4da524[_0x273813(0x11a)](_0x4259e5(()=>_0x1fd6d6[_0x273813(0x433)]()));const _0xd21716=new _0x365a49();_0x4da524[_0x273813(0x11a)](_0x4259e5(_0x4bd368[_0x273813(0x2e2)]['subscribe'](_0x2b2375=>{const _0xcdaf6=_0x273813,_0x17c263=wn(_0x2b2375);_0xd21716[_0xcdaf6(0x3cd)](_0x17c263);}))),_0x4da524[_0x273813(0x11a)](_0x4259e5(()=>_0xd21716[_0x273813(0x433)]()));const _0x1d31de=()=>{const _0x2f03e0=_0x273813;_0x1fd6d6[_0x2f03e0(0x3cd)](new Event(_0x2f03e0(0x193))),_0x546453[_0x2f03e0(0x3cd)](new CloseEvent(_0x2f03e0(0x193))),_0x342176[_0x2f03e0(0x2fd)]();},_0x342176={'memberID':'','close$':_0x546453[_0x273813(0x14e)](),'error$':_0x1fd6d6[_0x273813(0x14e)](),'open$':_0x4bd368[_0x273813(0x386)],'message$':_0xd21716['asObservable'](),'send':_0xc17685=>{const _0x5471ce=_0x273813;if(_0xc17685[_0x5471ce(0x129)]===I['INGEST']){if(_0xc17685[_0x5471ce(0x265)][_0x5471ce(0x2f8)]===_0x1c415b[_0x5471ce(0x181)]){this[_0x5471ce(0x1ca)](_0x342176,_0xc17685[_0x5471ce(0x265)])[_0x5471ce(0x1ce)](_0x300f93=>{const _0x1b063e=_0x5471ce;this[_0x1b063e(0x12a)][_0x1b063e(0x1f8)](_0x300f93),_0x1d31de();});return;}if(_0xc17685[_0x5471ce(0x265)][_0x5471ce(0x2f8)]===_0x1c415b[_0x5471ce(0x15e)]){const _0x5da9cd=_0xc17685[_0x5471ce(0x265)];this[_0x5471ce(0x31b)](_0x5da9cd)[_0x5471ce(0x1e8)](_0x547497=>{const _0x26edb7=_0x5471ce;_0xd21716[_0x26edb7(0x3cd)]({'cmd':I[_0x26edb7(0x3c5)],'code':$t['OK'],'routeKey':_0x5da9cd['data'][_0x26edb7(0x370)],'routeType':'','data':{'eventID':_0x1c415b[_0x26edb7(0x2ff)],'data':{'changesets':_0x547497}}});})[_0x5471ce(0x1ce)](_0x3b42c1=>{const _0x4fc30f=_0x5471ce;this[_0x4fc30f(0x12a)][_0x4fc30f(0x1f8)](_0x3b42c1),_0x1d31de();});return;}}_0x4bd368[_0x5471ce(0x409)](Nn(_0xc17685));},'close':()=>{const _0x2d5935=_0x273813;_0x4bd368[_0x2d5935(0x2fd)](),_0x4da524[_0x2d5935(0x1de)]();}};return _0x342176;}async[_0x1e1deb(0x1ca)](_0x4e2132,_0x476a41){const _0x60d27a=_0x1e1deb;var _0x1f6727;const {unitType:_0x48d84d,unitID:_0x3762d6,changeset:_0x33ed30}=_0x476a41['data'],_0x221f7c={'unitID':_0x3762d6,'memberID':_0x4e2132[_0x60d27a(0x283)],'type':_0x48d84d,'changeset':_0x23ced7(_0x33ed30)},_0x55a90d=Un((_0x1f6727=this[_0x60d27a(0x26b)][_0x60d27a(0x35c)](En))!=null?_0x1f6727:Cn,_0x48d84d,_0x3762d6);try{await this[_0x60d27a(0x1aa)]['post'](_0x55a90d,{'body':_0x221f7c});}catch(_0x87e9e){throw this['_logService'][_0x60d27a(0x1f8)]('[CollaborationSession]',_0x60d27a(0x190)),_0x87e9e;}}async[_0x1e1deb(0x31b)](_0x172d40){const _0x5c332f=_0x1e1deb,{unitID:_0x1b4020,from:_0x42f7d1,to:_0x58353c,unitType:_0x4161e6}=_0x172d40[_0x5c332f(0x265)];return(await this[_0x5c332f(0x18f)][_0x5c332f(0x1d9)]({'metadata':void 0x0},{'unitID':_0x1b4020,'type':_0x4161e6,'from':_0x42f7d1,'to':_0x58353c}))[_0x5c332f(0x247)];}};pt=yn([Re(0x0,_0x441fe2(_0x34ef08)),Re(0x1,_0x441fe2(_0x3ee676)),Re(0x2,_0x5445a8),Re(0x3,_0x5f4df3),Re(0x4,_0x4a4d9b)],pt);class Ns{constructor(){const _0x36ff62=_0x1e1deb;l(this,_0x36ff62(0x156),new _0x365a49()),l(this,_0x36ff62(0x365),this[_0x36ff62(0x156)]['asObservable']());}[_0x1e1deb(0x22f)](_0x575e87){const _0x3c218a=_0x1e1deb;this[_0x3c218a(0x156)][_0x3c218a(0x3cd)](_0x575e87);}}var Ln=Object['defineProperty'],$n=Object[_0x1e1deb(0x32c)],Ms=(_0x59a1a4,_0x3cc291,_0x460f09,_0x3b89db)=>{const _0x1a35ae=_0x1e1deb;for(var _0x39d821=_0x3b89db>0x1?void 0x0:_0x3b89db?$n(_0x3cc291,_0x460f09):_0x3cc291,_0x44deaf=_0x59a1a4[_0x1a35ae(0x426)]-0x1,_0x2c1263;_0x44deaf>=0x0;_0x44deaf--)(_0x2c1263=_0x59a1a4[_0x44deaf])&&(_0x39d821=(_0x3b89db?_0x2c1263(_0x3cc291,_0x460f09,_0x39d821):_0x2c1263(_0x39d821))||_0x39d821);return _0x3b89db&&_0x39d821&&Ln(_0x3cc291,_0x460f09,_0x39d821),_0x39d821;},A=(_0x40e2b2,_0xb0a5cc)=>(_0x5f4f3c,_0x379a1a)=>_0xb0a5cc(_0x5f4f3c,_0x379a1a,_0x40e2b2),fe=(_0x86d639=>(_0x86d639[_0x86d639['IDLE']=0x0]=_0x1e1deb(0x21f),_0x86d639[_0x86d639[_0x1e1deb(0x3ab)]=0x1]='JOINING',_0x86d639[_0x86d639[_0x1e1deb(0x328)]=0x2]=_0x1e1deb(0x328),_0x86d639[_0x86d639[_0x1e1deb(0x3c2)]=0x3]='ONLINE',_0x86d639))(fe||{});let vt=class extends _0x5b9cf1{constructor(_0x4d6248,_0x377495,_0x78867,_0x513102,_0x2072fb,_0x21ed35,_0x5b35ee,_0x193cce,_0x311637){const _0x37e373=_0x1e1deb;super(),l(this,_0x37e373(0x286),new _0x16d05d(0x0)),l(this,'sessionStatus$',this[_0x37e373(0x286)][_0x37e373(0x14e)]()),l(this,_0x37e373(0x141),new _0x365a49()),l(this,_0x37e373(0x19f),this[_0x37e373(0x141)][_0x37e373(0x14e)]()),l(this,'_socket'),l(this,_0x37e373(0x2df)),l(this,_0x37e373(0x2b5)),(this['_unitID']=_0x4d6248,this[_0x37e373(0x12a)]=_0x78867,this[_0x37e373(0x27b)]=_0x513102,this[_0x37e373(0x130)]=_0x2072fb,this[_0x37e373(0x26b)]=_0x21ed35,this[_0x37e373(0x367)]=_0x5b35ee,this[_0x37e373(0x13e)]=_0x193cce,this[_0x37e373(0x37d)]=_0x311637,_0x377495[_0x37e373(0x119)](_0x946afe(this['dispose$']))[_0x37e373(0x3e0)](_0x2fcf70=>{const _0x490c07=_0x37e373;var _0x23eb0b;typeof _0x2fcf70>'u'||(this[_0x490c07(0x34b)]=_0x2fcf70,_0x2fcf70?(this[_0x490c07(0x2f6)](_0x2fcf70),this[_0x490c07(0x2df)]=this[_0x490c07(0x34b)]['message$'][_0x490c07(0x3e0)](_0x83ff33=>{const _0x1fc0be=_0x490c07;_0x83ff33['routeKey']===this[_0x1fc0be(0x2c9)]&&this['_onCombEvent'](_0x83ff33);})):(this['_sessionStatus$'][_0x490c07(0x3cd)](0x2),(_0x23eb0b=this[_0x490c07(0x2df)])==null||_0x23eb0b[_0x490c07(0x376)](),this[_0x490c07(0x2df)]=null));}),this[_0x37e373(0x32e)](this[_0x37e373(0x27b)]['registerOnClose'](()=>{const _0x5998b8=_0x37e373;var _0x534126;(_0x534126=this[_0x5998b8(0x34b)])==null||_0x534126[_0x5998b8(0x409)]({'cmd':I[_0x5998b8(0x3ca)],'data':{'roomID':this[_0x5998b8(0x2c9)]}});})));}get[_0x1e1deb(0x143)](){return this['_sessionStatus$']['getValue']();}['getMemberID'](){const _0x7acdd1=_0x1e1deb;var _0x45092a,_0x54057e;return(_0x54057e=(_0x45092a=this[_0x7acdd1(0x34b)])==null?void 0x0:_0x45092a[_0x7acdd1(0x283)])!=null?_0x54057e:null;}[_0x1e1deb(0x1de)](){const _0xf22381=_0x1e1deb;super[_0xf22381(0x1de)](),this['dispose$'][_0xf22381(0x3cd)](),this['dispose$'][_0xf22381(0x433)]();}['close'](){const _0x4b8f6c=_0x1e1deb;var _0x29327b,_0x4dbe41;(_0x29327b=this[_0x4b8f6c(0x34b)])==null||_0x29327b[_0x4b8f6c(0x409)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x4b8f6c(0x2c9)]}}),this['_event$'][_0x4b8f6c(0x433)](),this[_0x4b8f6c(0x286)][_0x4b8f6c(0x433)](),(_0x4dbe41=this[_0x4b8f6c(0x34b)])==null||_0x4dbe41[_0x4b8f6c(0x2fd)](),this[_0x4b8f6c(0x1de)]();}['_onCombEvent'](_0x367600){const _0x3f2300=_0x1e1deb;_0x367600[_0x3f2300(0x129)]===I[_0x3f2300(0x14f)]?this[_0x3f2300(0x2a9)](_0x367600):_0x367600[_0x3f2300(0x129)]===I[_0x3f2300(0x3c5)]&&this['_onRecvEvent'](_0x367600);}['_joinRoom'](_0x5f24d0){const _0x5a5574=_0x1e1deb;this[_0x5a5574(0x286)][_0x5a5574(0x3cd)](0x1),_0x5f24d0['send']({'cmd':I[_0x5a5574(0x14f)],'routeKey':this[_0x5a5574(0x2c9)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5a5574(0x2c9)]}]}});}['_onJoinRoomEvent'](_0x118934){const _0x120080=_0x1e1deb;var _0x484f80;if(_0x118934[_0x120080(0x1d5)]===$t[_0x120080(0x388)]){this[_0x120080(0x130)]['show']({'type':_0x3eac95['Warning'],'content':this[_0x120080(0x367)]['t'](_0x120080(0x40d))}),this[_0x120080(0x286)][_0x120080(0x3cd)](0x2);return;}this[_0x120080(0x286)][_0x120080(0x3cd)](0x3);const _0x4e909d=(_0x484f80=_0x118934[_0x120080(0x265)][_0x120080(0x27f)][this['_unitID']])==null?void 0x0:_0x484f80[_0x120080(0x42c)];_0x4e909d&&_0x4e909d[_0x120080(0x23e)](_0x2f2958=>this[_0x120080(0x13e)]['updateMember'](this[_0x120080(0x2c9)],_0x2f2958));}['_onRecvEvent'](_0x3e54f2){const _0x94b683=_0x1e1deb;try{const _0xff73d2=_0x3e54f2[_0x94b683(0x265)];switch(_0xff73d2['eventID']){case _0x1c415b['USERS_ENTER']:this[_0x94b683(0x104)](_0xff73d2),this[_0x94b683(0x141)][_0x94b683(0x3cd)](_0xff73d2);break;case _0x1c415b[_0x94b683(0x25e)]:this[_0x94b683(0x3e5)](_0xff73d2),this[_0x94b683(0x141)][_0x94b683(0x3cd)](_0xff73d2);break;case _0x1c415b[_0x94b683(0x402)]:this[_0x94b683(0x39b)](),this[_0x94b683(0x141)][_0x94b683(0x3cd)](_0xff73d2);break;case _0x1c415b[_0x94b683(0x422)]:this[_0x94b683(0x12a)]['error'](_0x94b683(0x38e)+JSON[_0x94b683(0x32f)](_0xff73d2)),this['_event$'][_0x94b683(0x3cd)](_0xff73d2);break;case _0x1c415b[_0x94b683(0x2e4)]:this[_0x94b683(0x37d)]['onCommentUpdate'](_0xff73d2[_0x94b683(0x265)]),this['_event$'][_0x94b683(0x3cd)](_0xff73d2);break;default:this['_event$'][_0x94b683(0x3cd)](_0xff73d2);}}catch(_0x6b06b){this[_0x94b683(0x12a)][_0x94b683(0x1f8)](_0x6b06b,_0x3e54f2);}}[_0x1e1deb(0x104)](_0x584d33){const _0x4ec899=_0x1e1deb;this[_0x4ec899(0x13e)][_0x4ec899(0x23f)](this[_0x4ec899(0x2c9)],_0x584d33[_0x4ec899(0x265)]);}[_0x1e1deb(0x3e5)](_0x3aac67){const _0xe984d3=_0x1e1deb;this[_0xe984d3(0x13e)][_0xe984d3(0x238)](this[_0xe984d3(0x2c9)],_0x3aac67[_0xe984d3(0x265)][_0xe984d3(0x283)]);}async[_0x1e1deb(0x409)](_0x254998,_0xb16380){const _0xc4f00=_0x1e1deb;if(this[_0xc4f00(0x143)]!==0x3||!this[_0xc4f00(0x34b)])throw new Error(_0xc4f00(0x215));try{_0x254998[_0xc4f00(0x2f8)]===_0x1c415b[_0xc4f00(0x38c)]&&this[_0xc4f00(0x14c)](),this[_0xc4f00(0x34b)][_0xc4f00(0x409)]({'cmd':I[_0xc4f00(0x420)],'routeKey':_0xb16380,'routeType':'','data':_0x254998});}catch(_0x308f59){this[_0xc4f00(0x12a)]['error'](_0x308f59);}}[_0x1e1deb(0x14c)](){const _0x53b5c6=_0x1e1deb;var _0x2cdf00;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x22574f=_0x44de;this[_0x22574f(0x2b5)]=null,this[_0x22574f(0x130)][_0x22574f(0x154)]({'type':_0x3eac95['Error'],'content':this['_localeService']['t'](_0x22574f(0x3d1))});},(_0x2cdf00=this[_0x53b5c6(0x26b)]['getConfig'](Os))!=null?_0x2cdf00:Ds);}[_0x1e1deb(0x39b)](){const _0x46924b=_0x1e1deb;this[_0x46924b(0x2b5)]&&(clearTimeout(this[_0x46924b(0x2b5)]),this['_collaborationTimeoutTimer']=null);}};vt=Ms([A(0x2,_0x5f4df3),A(0x3,_0x1a3f95),A(0x4,_0x49507b),A(0x5,_0x5445a8),A(0x6,_0x441fe2(_0x2cfe85)),A(0x7,_0x441fe2(ne)),A(0x8,_0x441fe2(Ns))],vt);let pe=class extends _0xc94eea{constructor(_0x21b382,_0x57f318,_0x2550fd,_0x1ff16a,_0x15196c,_0x3ce70b){const _0xbf0374=_0x1e1deb;super(),l(this,_0xbf0374(0x3b8),new _0x16d05d(void 0x0)),l(this,_0xbf0374(0x21b),new Map()),l(this,'_status$',new _0x16d05d(0x0)),l(this,_0xbf0374(0x200),this['_status$'][_0xbf0374(0x14e)]()),l(this,_0xbf0374(0x11f),!0x1),l(this,_0xbf0374(0x296)),l(this,_0xbf0374(0x1f6)),l(this,_0xbf0374(0x100)),l(this,'_retryCount',0x0),(this[_0xbf0374(0x432)]=_0x21b382,this['_localeService']=_0x57f318,this['_messageService']=_0x2550fd,this['_logService']=_0x1ff16a,this[_0xbf0374(0x26b)]=_0x15196c,this[_0xbf0374(0x1b9)]=_0x3ce70b);}get[_0x1e1deb(0x34b)](){const _0x5e7a30=_0x1e1deb;return this['_socket$'][_0x5e7a30(0x107)]();}[_0x1e1deb(0x1de)](){const _0x46d5b6=_0x1e1deb;super[_0x46d5b6(0x1de)](),this[_0x46d5b6(0x21b)]['forEach'](_0x560dac=>_0x560dac[_0x46d5b6(0x1de)]()),this[_0x46d5b6(0x21b)]['clear'](),this['_status$']['complete']();}async[_0x1e1deb(0x2c6)](_0x291c56){const _0xea4af6=_0x1e1deb;if(this[_0xea4af6(0x21b)][_0xea4af6(0x1e3)](_0x291c56))return this[_0xea4af6(0x21b)][_0xea4af6(0x10a)](_0x291c56);this['_tryEnsureSocket']();const _0xbc1966=this[_0xea4af6(0x432)]['createInstance'](vt,_0x291c56,this[_0xea4af6(0x3b8)][_0xea4af6(0x14e)]());return this['_sessions'][_0xea4af6(0x394)](_0x291c56,_0xbc1966),_0xbc1966;}[_0x1e1deb(0x2ad)](_0x386b00){const _0x30be5f=_0x1e1deb;var _0x5ba5a6;const _0x5957df=this[_0x30be5f(0x21b)][_0x30be5f(0x10a)](_0x386b00);_0x5957df&&(this[_0x30be5f(0x21b)][_0x30be5f(0x36f)](_0x386b00),_0x5957df[_0x30be5f(0x2fd)]()),this['_sessions'][_0x30be5f(0x1b4)]||(_0x5ba5a6=this['_socket'])==null||_0x5ba5a6[_0x30be5f(0x2fd)]();}[_0x1e1deb(0x211)](){const _0x5f30ea=_0x1e1deb;var _0x20171d;const _0x5d6bc3=(_0x20171d=this[_0x5f30ea(0x26b)][_0x5f30ea(0x35c)](_n))!=null?_0x20171d:un;return this[_0x5f30ea(0x1b9)][_0x5f30ea(0x17f)](_0x5d6bc3);}[_0x1e1deb(0x417)](){const _0x1d345e=_0x1e1deb;try{const _0x767896=this[_0x1d345e(0x211)]();if(_0x767896){const _0x1dc594=_0x767896[_0x1d345e(0x409)];_0x767896[_0x1d345e(0x409)]=_0x23a864=>(this[_0x1d345e(0x3b7)](),_0x1dc594['apply'](_0x767896,[_0x23a864])),_0x767896['message$']['subscribe'](_0x55f1d3=>this[_0x1d345e(0x40f)](_0x767896,_0x55f1d3)),_0x767896[_0x1d345e(0x2bc)][_0x1d345e(0x119)](_0x59ece1(0x1))['subscribe'](_0x485a22=>this[_0x1d345e(0x12a)][_0x1d345e(0x1f8)](_0x1d345e(0x3c4),_0x485a22)),_0x767896[_0x1d345e(0x386)]['pipe'](_0x59ece1(0x1))[_0x1d345e(0x3e0)](()=>{const _0x3836ad=_0x1d345e;this[_0x3836ad(0x187)](_0x767896);}),_0x767896[_0x1d345e(0x34e)][_0x1d345e(0x119)](_0x59ece1(0x1))[_0x1d345e(0x3e0)](_0x5deb2d=>{const _0xe45d5b=_0x1d345e;this[_0xe45d5b(0x12a)][_0xe45d5b(0x1fc)](_0xe45d5b(0x42d),_0xe45d5b(0x3d4),_0x5deb2d),this[_0xe45d5b(0x41f)]();});}}catch(_0x5b005d){this[_0x1d345e(0x12a)][_0x1d345e(0x1f8)](_0x5b005d),this[_0x1d345e(0x41f)]();}}[_0x1e1deb(0x187)](_0x49f32d){const _0x50060f=_0x1e1deb;this[_0x50060f(0x12a)][_0x50060f(0x1fc)](_0x50060f(0x42d),_0x50060f(0x1d1)),_0x49f32d[_0x50060f(0x409)]({'cmd':I[_0x50060f(0x37f)]}),this[_0x50060f(0x3b7)]();}[_0x1e1deb(0x41f)](){const _0x5ad37a=_0x1e1deb;var _0x50f615;this['_status$'][_0x5ad37a(0x3cd)](0x2),this[_0x5ad37a(0x3b8)]['next'](null),this['_clearTimeoutTimer'](),this[_0x5ad37a(0x360)](),this[_0x5ad37a(0x11f)]=!0x1,this['_retryCount']<((_0x50f615=this[_0x5ad37a(0x26b)][_0x5ad37a(0x35c)](Sn))!=null?_0x50f615:pn)?(this[_0x5ad37a(0x34d)](this[_0x5ad37a(0x289)]),this[_0x5ad37a(0x289)]+=0x1):this['_messageService'][_0x5ad37a(0x154)]({'type':_0x3eac95['Error'],'content':this[_0x5ad37a(0x367)]['t'](_0x5ad37a(0x2d5))});}[_0x1e1deb(0x34d)](_0x12bd01){const _0x4f6bfb=_0x1e1deb;var _0x955c7b;const _0x1bc460=((_0x955c7b=this['_configService'][_0x4f6bfb(0x35c)](fn))!=null?_0x955c7b:gn)*0x2**_0x12bd01;this[_0x4f6bfb(0x130)][_0x4f6bfb(0x154)]({'type':_0x3eac95[_0x4f6bfb(0x15d)],'content':this[_0x4f6bfb(0x367)]['t']('session.will-retry')}),this[_0x4f6bfb(0x100)]=setTimeout(()=>{const _0x40b133=_0x4f6bfb;this['_tryEnsureSocket'](),clearTimeout(this[_0x40b133(0x100)]),this['_retryConnectingTimer']=null;},_0x1bc460);}['_rescheduleHeartbeatEvent'](){const _0x457d26=_0x1e1deb;var _0xc226a3;this[_0x457d26(0x360)](),this[_0x457d26(0x296)]=setTimeout(()=>this[_0x457d26(0x3ce)](),(_0xc226a3=this['_configService'][_0x457d26(0x35c)](dn))!=null?_0xc226a3:mn);}[_0x1e1deb(0x3ce)](){const _0x4e6630=_0x1e1deb;this[_0x4e6630(0x34b)][_0x4e6630(0x409)]({'cmd':I[_0x4e6630(0x410)]}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x557c6d=_0x1e1deb;var _0x33425a;this[_0x557c6d(0x1f6)]=setTimeout(()=>this[_0x557c6d(0x41f)](),(_0x33425a=this[_0x557c6d(0x26b)]['getConfig'](Os))!=null?_0x33425a:Ds);}[_0x1e1deb(0x40f)](_0x27d8cf,_0x3d0b02){const _0x24be46=_0x1e1deb,{cmd:_0x4c9958}=_0x3d0b02;_0x4c9958===I['HELLO']&&!this[_0x24be46(0x11f)]&&(_0x27d8cf[_0x24be46(0x283)]=_0x3d0b02[_0x24be46(0x265)][_0x24be46(0x283)],this[_0x24be46(0x3b8)]['next'](_0x27d8cf),this[_0x24be46(0x2ea)][_0x24be46(0x3cd)](0x3),this[_0x24be46(0x11f)]=!0x0),_0x4c9958===I[_0x24be46(0x410)]&&this[_0x24be46(0x2cd)](),this[_0x24be46(0x3b7)]();}[_0x1e1deb(0x360)](){const _0x558ca8=_0x1e1deb;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x558ca8(0x296)]=null);}[_0x1e1deb(0x2cd)](){const _0x348fe2=_0x1e1deb;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x348fe2(0x1f6)]),this[_0x348fe2(0x1f6)]=null);}};pe=Ms([A(0x0,_0x441fe2(_0x9c5d64)),A(0x1,_0x441fe2(_0x2cfe85)),A(0x2,_0x49507b),A(0x3,_0x5f4df3),A(0x4,_0x5445a8),A(0x5,ws)],pe);var jn=Object[_0x1e1deb(0x158)],xn=Object[_0x1e1deb(0x32c)],Hn=(_0x4ee1e6,_0x4d3d03,_0x22641f,_0x313049)=>{const _0x43e972=_0x1e1deb;for(var _0x2f50a9=_0x313049>0x1?void 0x0:_0x313049?xn(_0x4d3d03,_0x22641f):_0x4d3d03,_0xf408a6=_0x4ee1e6[_0x43e972(0x426)]-0x1,_0x18aa20;_0xf408a6>=0x0;_0xf408a6--)(_0x18aa20=_0x4ee1e6[_0xf408a6])&&(_0x2f50a9=(_0x313049?_0x18aa20(_0x4d3d03,_0x22641f,_0x2f50a9):_0x18aa20(_0x2f50a9))||_0x2f50a9);return _0x313049&&_0x2f50a9&&jn(_0x4d3d03,_0x22641f,_0x2f50a9),_0x2f50a9;},Oe=(_0x376b62,_0x21e249)=>(_0x34fdbe,_0x5bd022)=>_0x21e249(_0x34fdbe,_0x5bd022,_0x376b62);let D=class extends _0xc94eea{constructor(_0x2d93f0,_0x14702e,_0x1bc6a4,_0x2f9cc6,_0x327b3c){const _0x481e0f=_0x1e1deb;super(),l(this,_0x481e0f(0x3e4),new Map()),l(this,_0x481e0f(0x354),new Map()),l(this,_0x481e0f(0x320),!0x1),(this['_configService']=_0x2d93f0,this[_0x481e0f(0x115)]=_0x14702e,this[_0x481e0f(0x27b)]=_0x1bc6a4,this['_localeService']=_0x2f9cc6,this['_revisionService']=_0x327b3c,this['_setupBeforeClosingHandler']());}['disableLocalCache'](){const _0x2dcd3e=_0x1e1deb;this[_0x2dcd3e(0x320)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}[_0x1e1deb(0x1de)](){const _0x22f33d=_0x1e1deb;this[_0x22f33d(0x2c8)]()[_0x22f33d(0x1e8)](()=>super[_0x22f33d(0x1de)]());}async['loadOfflineData'](_0xa45001){const _0x1c02d7=_0x1e1deb;return this[_0x1c02d7(0x320)]?null:this[_0x1c02d7(0x115)][_0x1c02d7(0x19d)](Qt(_0xa45001));}async['saveOfflineData'](_0x1a3eec,_0x1cbbdc){const _0x38f654=_0x1e1deb;return!!this[_0x38f654(0x115)][_0x38f654(0x28b)](_0x1a3eec,_0x1cbbdc);}[_0x1e1deb(0x2b4)](_0x3cf491,_0x451b62,_0x1de051,_0x58c610){const _0xe9bc76=_0x1e1deb,_0x58a5f1=this[_0xe9bc76(0x2d6)][_0xe9bc76(0x202)](_0x3cf491);this['_cachedData'][_0xe9bc76(0x394)](_0x3cf491,{'unitID':_0x3cf491,'type':_0x451b62,'awaitingChangeset':_0x1de051,'mutations':_0x58c610,'rev':_0x58a5f1}),this[_0xe9bc76(0x354)][_0xe9bc76(0x1e3)](_0x3cf491)||this[_0xe9bc76(0x29b)](_0x3cf491);}['_scheduleSaving'](_0x2055fa){const _0x36e4e6=_0x1e1deb,_0x1d9bf0=this['_getSaveTimeout']();_0x1d9bf0===0x0?this[_0x36e4e6(0x39e)](_0x2055fa):this[_0x36e4e6(0x354)][_0x36e4e6(0x394)](_0x2055fa,setTimeout(()=>this[_0x36e4e6(0x39e)](_0x2055fa),_0x1d9bf0));}['_getSaveTimeout'](){var _0xf61a13;return(_0xf61a13=this['_configService']['getConfig'](vn))!=null?_0xf61a13:In;}['_saveCache'](_0xc62227){const _0x4b3177=_0x1e1deb,_0x2b7597=this[_0x4b3177(0x354)][_0x4b3177(0x10a)](_0xc62227);return _0x2b7597!==void 0x0&&window[_0x4b3177(0x339)](_0x2b7597),this[_0x4b3177(0x115)][_0x4b3177(0x28b)](Qt(_0xc62227),this[_0x4b3177(0x3e4)][_0x4b3177(0x10a)](_0xc62227))[_0x4b3177(0x1e8)](()=>this[_0x4b3177(0x354)][_0x4b3177(0x36f)](_0xc62227));}async[_0x1e1deb(0x2c8)](){const _0x4e168d=_0x1e1deb,_0x12c518=[];this['_saveTaskMap'][_0x4e168d(0x23e)]((_0x4e3e4f,_0x3e6436)=>{const _0x426b8=_0x4e168d;window[_0x426b8(0x339)](_0x4e3e4f),_0x12c518['push'](this[_0x426b8(0x39e)](_0x3e6436)['then'](()=>{const _0x166ce4=_0x426b8;this[_0x166ce4(0x354)]['delete'](_0x3e6436);}));}),await Promise['all'](_0x12c518);}[_0x1e1deb(0x28c)](){const _0x40ab2b=_0x1e1deb;this[_0x40ab2b(0x32e)](this[_0x40ab2b(0x27b)][_0x40ab2b(0x1fe)](()=>{const _0x4e42e4=_0x40ab2b;if(this[_0x4e42e4(0x354)][_0x4e42e4(0x1b4)])return this[_0x4e42e4(0x367)]['t']('collaboration-client.offline-data-not-saved');}));}};D=Hn([Oe(0x0,_0x5445a8),Oe(0x1,_0x2f04ba),Oe(0x2,_0x1a3f95),Oe(0x3,_0x441fe2(_0x2cfe85)),Oe(0x4,_0x441fe2(_0xaeae41))],D);function Qt(_0x3c404b){return'unit-cache-'+_0x3c404b;}const tt=_0x32feec('univer-pro.collaboration-client.single-active-unit-service');var As=(_0x375917=>(_0x375917[_0x375917[_0x1e1deb(0x17a)]=0x0]=_0x1e1deb(0x17a),_0x375917[_0x375917[_0x1e1deb(0x288)]=0x1]=_0x1e1deb(0x288),_0x375917))(As||{});const es=0x7530,ts=_0x1e1deb(0x2c7);class kn extends _0xc94eea{constructor(){const _0x5b6d92=_0x1e1deb;super(),l(this,'_id',_0x4526c0[_0x5b6d92(0x259)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x5b6d92(0x219),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x5b6d92(0x24a),new Map()),l(this,_0x5b6d92(0x366),new Map()),this['_init']();}[_0x1e1deb(0x1de)](){const _0x5978a0=_0x1e1deb;super['dispose'](),this[_0x5978a0(0x24a)][_0x5978a0(0x23e)]((_0x5e8bfd,_0x4696e4)=>this['_removeClearOtherTimer'](_0x4696e4)),this[_0x5978a0(0x253)]&&window[_0x5978a0(0x194)](this[_0x5978a0(0x253)]);}[_0x1e1deb(0x2ac)](_0xb470db){const _0x5edb9a=_0x1e1deb;return this['_ensureSubject'](_0xb470db)[_0x5edb9a(0x119)](_0x306a98());}[_0x1e1deb(0x2f9)](_0x1d12c6){const _0x40cad8=_0x1e1deb;this['_selfUnitIDs']['size']===0x0&&this[_0x40cad8(0x109)](),this['_selfUnitIDs'][_0x40cad8(0x11a)](_0x1d12c6),this[_0x40cad8(0x2de)]({'type':0x0,'memberID':this[_0x40cad8(0x1e2)],'unitIDs':[_0x1d12c6],'isForwarded':!0x1});}['disposeUnit'](_0x5c9fcf){const _0x599933=_0x1e1deb;this[_0x599933(0x2b0)][_0x599933(0x36f)](_0x5c9fcf),this[_0x599933(0x2b0)][_0x599933(0x1b4)]===0x0&&this['_heartbeatTimer']&&window[_0x599933(0x194)](this[_0x599933(0x253)]);}['_init'](){const _0x1fb32c=_0x1e1deb;this[_0x1fb32c(0x32e)](_0x4259e5(_0x1fd07d(window,_0x1fb32c(0x208))[_0x1fb32c(0x3e0)](_0x4d0a2a=>{const _0x838156=_0x1fb32c;if(_0x4d0a2a['key']!==ts||!_0x4d0a2a[_0x838156(0x256)])return;const _0x3478e9=JSON[_0x838156(0x1e1)](_0x4d0a2a[_0x838156(0x256)]);this[_0x838156(0x261)](_0x3478e9);}))),window[_0x1fb32c(0x397)](_0x1fb32c(0x3f4),()=>this['_send']({'type':0x1,'memberID':this[_0x1fb32c(0x1e2)],'unitIDs':Array[_0x1fb32c(0x427)](this[_0x1fb32c(0x2b0)])}));}[_0x1e1deb(0x261)](_0x415aad){const _0x3b7d50=_0x1e1deb;switch(_0x415aad[_0x3b7d50(0x2cc)]){case 0x0:this['_handleJoinEvent'](_0x415aad);break;case 0x1:this[_0x3b7d50(0x1bd)](_0x415aad);break;case 0x2:this['_handleHeartbeatEvent'](_0x415aad);break;}}[_0x1e1deb(0x11d)](_0x39154f){const _0x572c5d=_0x1e1deb,{unitIDs:_0x110c48,memberID:_0x3d3d22,isForwarded:_0x6017ca}=_0x39154f;_0x110c48[_0x572c5d(0x23e)](_0x19754e=>{const _0x54af23=_0x572c5d;if(!_0x6017ca&&this['_unitOnClients']['has'](_0x19754e)&&this[_0x54af23(0x1b2)](_0x19754e)['next'](0x1),!this[_0x54af23(0x219)][_0x54af23(0x1e3)](_0x19754e)||!this[_0x54af23(0x219)]['get'](_0x19754e)[_0x54af23(0x1e3)](_0x3d3d22)){const _0x722057=this[_0x54af23(0x219)][_0x54af23(0x10a)](_0x19754e)||new Set();_0x722057[_0x54af23(0x11a)](_0x3d3d22),this['_unitOnClients']['set'](_0x19754e,_0x722057),this[_0x54af23(0x18e)](_0x3d3d22);}}),_0x6017ca||this[_0x572c5d(0x2de)]({'type':0x0,'memberID':this[_0x572c5d(0x1e2)],'unitIDs':[...this[_0x572c5d(0x2b0)]],'isForwarded':!0x0});}[_0x1e1deb(0x18e)](_0x2337db){const _0x140413=_0x1e1deb;this['_removeClearOtherTimer'](_0x2337db);const _0x446163=window[_0x140413(0x245)](()=>{const _0x3725f1=_0x140413;this[_0x3725f1(0x219)][_0x3725f1(0x23e)](_0x1934cb=>{const _0x3f68fa=_0x3725f1;_0x1934cb[_0x3f68fa(0x36f)](_0x2337db);});},es*0x2);this[_0x140413(0x24a)][_0x140413(0x394)](_0x2337db,_0x446163);}['_removeClearOtherTimer'](_0x47934e){const _0x4129f4=_0x1e1deb;if(this['_clearOtherTimers'][_0x4129f4(0x1e3)](_0x47934e)){const _0x1a57b0=this[_0x4129f4(0x24a)][_0x4129f4(0x10a)](_0x47934e);_0x1a57b0&&window['clearTimeout'](_0x1a57b0),this[_0x4129f4(0x24a)][_0x4129f4(0x394)](_0x47934e,null);}}['_handleLeaveEvent'](_0x221a8d){const _0x228b70=_0x1e1deb,{memberID:_0x5cdf3f,unitIDs:_0x3cb7a9}=_0x221a8d;_0x3cb7a9['forEach'](_0x15f865=>{const _0x370055=_0x44de;var _0x5bcf40;const _0x4d5c1f=this['_unitOnClients'][_0x370055(0x10a)](_0x15f865);_0x4d5c1f&&(_0x4d5c1f['delete'](_0x5cdf3f),(_0x5bcf40=this[_0x370055(0x1b2)](_0x15f865))==null||_0x5bcf40[_0x370055(0x3cd)](_0x4d5c1f['size']===0x0?0x0:0x1));}),this[_0x228b70(0x301)](_0x5cdf3f);}[_0x1e1deb(0x277)](_0x1c78c8){const _0x27b36a=_0x1e1deb;this[_0x27b36a(0x18e)](_0x1c78c8[_0x27b36a(0x283)]);}[_0x1e1deb(0x2de)](_0x3bb720){const _0x6dc241=_0x1e1deb;localStorage[_0x6dc241(0x28b)](ts,JSON[_0x6dc241(0x32f)](_0x3bb720));}[_0x1e1deb(0x109)](){const _0xbdc7f9=_0x1e1deb;this[_0xbdc7f9(0x253)]=window[_0xbdc7f9(0x3ef)](()=>{const _0x115c54=_0xbdc7f9;this[_0x115c54(0x2de)]({'type':0x2,'memberID':this[_0x115c54(0x1e2)]});},es);}[_0x1e1deb(0x1b2)](_0x302c38){const _0x533489=_0x1e1deb;return this['_unitStatus'][_0x533489(0x1e3)](_0x302c38)||this[_0x533489(0x366)][_0x533489(0x394)](_0x302c38,new _0x16d05d(0x0)),this[_0x533489(0x366)]['get'](_0x302c38);}}var Fn=Object['defineProperty'],Vn=Object[_0x1e1deb(0x32c)],Bn=(_0xd78208,_0xc6466b,_0x3cd3d6,_0x211814)=>{const _0xfa355f=_0x1e1deb;for(var _0x39a585=_0x211814>0x1?void 0x0:_0x211814?Vn(_0xc6466b,_0x3cd3d6):_0xc6466b,_0x186c48=_0xd78208[_0xfa355f(0x426)]-0x1,_0x621efa;_0x186c48>=0x0;_0x186c48--)(_0x621efa=_0xd78208[_0x186c48])&&(_0x39a585=(_0x211814?_0x621efa(_0xc6466b,_0x3cd3d6,_0x39a585):_0x621efa(_0x39a585))||_0x39a585);return _0x211814&&_0x39a585&&Fn(_0xc6466b,_0x3cd3d6,_0x39a585),_0x39a585;},ss=(_0xf9a308,_0x56c1a4)=>(_0x1a4b6e,_0x441d02)=>_0x56c1a4(_0x1a4b6e,_0x441d02,_0xf9a308);let Je=class{constructor(_0x25138b,_0x2d7fcc){const _0x2f5a73=_0x1e1deb;this[_0x2f5a73(0x432)]=_0x25138b,this[_0x2f5a73(0x258)]=_0x2d7fcc;}[_0x1e1deb(0x218)](_0x1fc50e){const _0x5ecf6c=_0x1e1deb;this[_0x5ecf6c(0x361)](_0x1fc50e),this[_0x5ecf6c(0x323)](_0x1fc50e);}['transformRemoteChangeset'](_0x1a2fdd){const _0x50f1d0=_0x1e1deb,_0x18641d=this[_0x50f1d0(0x432)][_0x50f1d0(0x10a)](_0x3c7fed),{redoCache:_0x277a98}=_0x18641d[_0x50f1d0(0x1cc)]();if(_0x277a98['length']===0x0)return _0x1a2fdd;let _0x5d7099=_0x4526c0['deepClone'](_0x1a2fdd[_0x50f1d0(0x357)][0x0]);for(let _0x3a6de5=0x0;_0x3a6de5<_0x277a98[_0x50f1d0(0x426)];_0x3a6de5++){const _0x3097ce={'id':'doc.mutation.rich-text-editing','params':{..._0x277a98[_0x3a6de5]}},_0x1aca7d=this['_transformService'][_0x50f1d0(0x2d3)](_0x5d7099,_0x3097ce,!0x1);if(_0x1d42ec(_0x1aca7d))throw _0x1aca7d[_0x50f1d0(0x1f8)];_0x5d7099=_0x1aca7d[_0x50f1d0(0x11b)];}return{..._0x4526c0[_0x50f1d0(0x152)](_0x1a2fdd),'mutations':[_0x5d7099]};}[_0x1e1deb(0x361)](_0xd97128){const _0x1068e0=_0x1e1deb,_0x32e2a6=this[_0x1068e0(0x432)][_0x1068e0(0x10a)](_0x3c7fed),{undoCache:_0x2bf140,redoCache:_0x21dde7}=_0x32e2a6[_0x1068e0(0x1cc)]();if(_0x2bf140[_0x1068e0(0x426)]===0x0||_0x21dde7[_0x1068e0(0x426)]===0x0)return;const _0x1ffcdf=[],_0x5343b7=[];let _0x1af9bd=_0x4526c0[_0x1068e0(0x152)](_0xd97128['mutations'][0x0]),_0x2cd462=_0x4526c0[_0x1068e0(0x152)](_0xd97128[_0x1068e0(0x357)][0x0]);for(let _0x1ec60b=_0x2bf140[_0x1068e0(0x426)]-0x1;_0x1ec60b>=0x0;_0x1ec60b--){const _0x105321={'id':_0x1068e0(0x412),'params':{..._0x2bf140[_0x1ec60b]}},_0x31a7b9={'id':_0x1068e0(0x412),'params':{..._0x21dde7[_0x1ec60b]}},_0x36ce86=this[_0x1068e0(0x258)][_0x1068e0(0x2d3)](_0x1af9bd,_0x105321,!0x1),_0x260dbd=this[_0x1068e0(0x258)][_0x1068e0(0x2d3)](_0x2cd462,_0x31a7b9,!0x1);if(_0x1d42ec(_0x36ce86))throw _0x36ce86[_0x1068e0(0x1f8)];if(_0x1d42ec(_0x260dbd))throw _0x260dbd[_0x1068e0(0x1f8)];_0x1ffcdf[_0x1068e0(0x2b9)](_0x36ce86['m2Prime'][_0x1068e0(0x42b)]),_0x5343b7[_0x1068e0(0x2b9)](_0x260dbd[_0x1068e0(0x2fa)][_0x1068e0(0x42b)]),_0x1af9bd=_0x36ce86['m1Prime'],_0x2cd462=_0x260dbd[_0x1068e0(0x11b)];}_0x32e2a6['setUndoRedoMutationParamsCache']({'undoCache':_0x1ffcdf,'redoCache':_0x5343b7});}['_transformPreviousActiveRange'](_0x117136){const _0x88b7e8=_0x1e1deb,_0x1603ea=this[_0x88b7e8(0x432)][_0x88b7e8(0x10a)](_0x3c7fed),_0x882f18=_0x1603ea[_0x88b7e8(0x3e2)]();if(_0x882f18==null)return;const _0x440087=[{'id':_0x88b7e8(0x412),'params':{'unitId':_0x117136[_0x88b7e8(0x370)],'actions':null,'textRanges':[_0x882f18]}}],_0x35304a=this[_0x88b7e8(0x258)][_0x88b7e8(0x3a3)](_0x117136,_0x440087);if(!_0x4f645f(_0x35304a))throw _0x35304a[_0x88b7e8(0x1f8)];const _0x5de1c9=_0x35304a[_0x88b7e8(0x2fa)][0x0][_0x88b7e8(0x42b)][_0x88b7e8(0x203)];Array[_0x88b7e8(0x117)](_0x5de1c9)&&_0x5de1c9[_0x88b7e8(0x426)]&&_0x1603ea['setActiveRange'](_0x5de1c9[0x0]);}};Je=Bn([ss(0x0,_0x441fe2(_0x9c5d64)),ss(0x1,_0x1e0f5c)],Je);var Wn=Object[_0x1e1deb(0x158)],Gn=Object['getOwnPropertyDescriptor'],Yn=(_0x388f04,_0x3e04a6,_0x29c922,_0x65f95)=>{for(var _0x35aaab=_0x65f95>0x1?void 0x0:_0x65f95?Gn(_0x3e04a6,_0x29c922):_0x3e04a6,_0x313143=_0x388f04['length']-0x1,_0x20110c;_0x313143>=0x0;_0x313143--)(_0x20110c=_0x388f04[_0x313143])&&(_0x35aaab=(_0x65f95?_0x20110c(_0x3e04a6,_0x29c922,_0x35aaab):_0x20110c(_0x35aaab))||_0x35aaab);return _0x65f95&&_0x35aaab&&Wn(_0x3e04a6,_0x29c922,_0x35aaab),_0x35aaab;},is=(_0x55ece1,_0x518a46)=>(_0x54d57f,_0x4d6be6)=>_0x518a46(_0x54d57f,_0x4d6be6,_0x55ece1);let ze=class{constructor(_0x414078,_0x327a78){const _0x45ccce=_0x1e1deb;this[_0x45ccce(0x432)]=_0x414078,this[_0x45ccce(0x258)]=_0x327a78;}[_0x1e1deb(0x137)](_0x390a97){const _0x5d5e14=_0x1e1deb;var _0x31119b;const _0x229f0c=this[_0x5d5e14(0x432)][_0x5d5e14(0x10a)](_0x490704),_0x24e168=(_0x31119b=_0x229f0c[_0x5d5e14(0x31f)]())!=null?_0x31119b:[],_0x1980de=_0x24e168==null?void 0x0:_0x24e168[_0x5d5e14(0x230)](_0x14d063);if(_0x1980de[_0x5d5e14(0x426)]===0x0)return;const _0x212c1c=[{'id':_0x5d5e14(0x412),'params':{'unitId':_0x390a97[_0x5d5e14(0x370)],'actions':null,'textRanges':_0x1980de}}],_0x109915=this['_transformService']['transformMutationsWithChangeset'](_0x390a97,_0x212c1c);if(!_0x4f645f(_0x109915))throw _0x109915[_0x5d5e14(0x1f8)];const _0x59f8fc=_0x109915[_0x5d5e14(0x2fa)][0x0][_0x5d5e14(0x42b)]['textRanges'];Array[_0x5d5e14(0x117)](_0x59f8fc)&&_0x59f8fc[_0x5d5e14(0x426)]&&_0x229f0c[_0x5d5e14(0x273)](_0x59f8fc,!0x1);}};ze=Yn([is(0x0,_0x441fe2(_0x9c5d64)),is(0x1,_0x1e0f5c)],ze);function ys(_0x1db956){const _0x295dbe=_0x1e1deb;let _0x14cf0e='';for(const _0x231ded of _0x1db956){const {startOffset:_0x15b5f1,endOffset:_0x275c66,isActive:_0x44d914}=_0x231ded;_0x14cf0e[_0x295dbe(0x426)]&&(_0x14cf0e+=','),_0x14cf0e+=_0x15b5f1+':'+_0x275c66+':'+(_0x44d914?'1':'0');}return _0x14cf0e;}function Kn(_0x4a174c){const _0x3d6640=_0x1e1deb,_0x4e39b4=_0x4a174c['split'](','),_0x252d03=[];for(const _0x58c431 of _0x4e39b4){const [_0x1766c6,_0x23f45d,_0x44c456]=_0x58c431[_0x3d6640(0x2a1)](':');_0x252d03[_0x3d6640(0x39d)]({'startOffset':Number(_0x1766c6),'endOffset':Number(_0x23f45d),'collapsed':_0x1766c6===_0x23f45d,'isActive':_0x44c456==='1'});}return _0x252d03['some'](_0x287abc=>_0x287abc['isActive'])||(_0x252d03[0x0][_0x3d6640(0x3d9)]=!0x0),_0x252d03;}class jt extends _0x5b9cf1{constructor(){const _0x4d48f3=_0x1e1deb;super(...arguments),l(this,_0x4d48f3(0x26e),new _0x16d05d(null)),l(this,'collabCursorState$',this[_0x4d48f3(0x26e)][_0x4d48f3(0x14e)]());}[_0x1e1deb(0x40e)](_0x58bfc0){const _0x18781e=_0x1e1deb,{unitID:_0xa22bf3,memberID:_0x28de4a,textRanges:_0x39b7}=_0x58bfc0,_0x3a99ff=ys(_0x39b7),_0x4c2694={'unitID':_0xa22bf3,'memberID':_0x28de4a,'selection':_0x3a99ff};this[_0x18781e(0x26e)]['next'](_0x4c2694);}}var Xn=Object['defineProperty'],Jn=Object['getOwnPropertyDescriptor'],zn=(_0x967ada,_0x4842b9,_0x7a5738,_0x3c57ee)=>{const _0x5df762=_0x1e1deb;for(var _0x5613d0=_0x3c57ee>0x1?void 0x0:_0x3c57ee?Jn(_0x4842b9,_0x7a5738):_0x4842b9,_0x2b06a9=_0x967ada[_0x5df762(0x426)]-0x1,_0x5ca6d9;_0x2b06a9>=0x0;_0x2b06a9--)(_0x5ca6d9=_0x967ada[_0x2b06a9])&&(_0x5613d0=(_0x3c57ee?_0x5ca6d9(_0x4842b9,_0x7a5738,_0x5613d0):_0x5ca6d9(_0x5613d0))||_0x5613d0);return _0x3c57ee&&_0x5613d0&&Xn(_0x4842b9,_0x7a5738,_0x5613d0),_0x5613d0;},ns=(_0x99a6da,_0x5409f6)=>(_0x3366dd,_0xd1a7cc)=>_0x5409f6(_0x3366dd,_0xd1a7cc,_0x99a6da);function _0x44de(_0x18dc17,_0x3abca2){const _0x48fbad=_0x48fb();return _0x44de=function(_0x44de12,_0x7cde9b){_0x44de12=_0x44de12-0xfa;let _0xe2f919=_0x48fbad[_0x44de12];return _0xe2f919;},_0x44de(_0x18dc17,_0x3abca2);}function qn(_0x1f6084){const _0x40f5bb=_0x1e1deb,{unitID:_0x151892,mutations:_0x2a3d0b}=_0x1f6084;return{'unitId':_0x151892,'subUnitId':_0x2a3d0b[0x0][_0x40f5bb(0x42b)][_0x40f5bb(0x3b0)]};}let qe=class{constructor(_0x45f6b2,_0x5cf77d){const _0x25d535=_0x1e1deb;this['_injector']=_0x45f6b2,this[_0x25d535(0x258)]=_0x5cf77d;}[_0x1e1deb(0x137)](_0x1879c2){const _0x3d438e=_0x1e1deb;var _0x259013,_0x49d3fa,_0x3604d6;const _0x50b2b7=this[_0x3d438e(0x432)][_0x3d438e(0x10a)](_0x402922),{unitId:_0x1dfef8,subUnitId:_0x5e8641}=qn(_0x1879c2),_0x32b3fb=_0x50b2b7[_0x3d438e(0x160)](_0x1dfef8)[_0x3d438e(0x310)]();if(_0x32b3fb[_0x3d438e(0x426)]===0x0||!_0x1dfef8||!_0x5e8641)return;const _0x1b3167=[{'id':_0x37d621['id'],'params':{'unitId':_0x1dfef8,'subUnitId':_0x5e8641,'selections':_0x4526c0[_0x3d438e(0x152)](_0x32b3fb)}}],_0x120e92=this[_0x3d438e(0x258)]['transformMutationsWithChangeset'](_0x1879c2,_0x1b3167);if(!_0x4f645f(_0x120e92))throw _0x120e92[_0x3d438e(0x1f8)];const _0xf95e11=(_0x3604d6=(_0x49d3fa=(_0x259013=_0x120e92[_0x3d438e(0x2fa)][0x0])==null?void 0x0:_0x259013['params'])==null?void 0x0:_0x49d3fa[_0x3d438e(0x287)])!=null?_0x3604d6:_0x32b3fb;Array[_0x3d438e(0x117)](_0xf95e11)&&_0xf95e11['length']&&this['_injector']['get'](_0x9845f)[_0x3d438e(0x3e7)](_0x37d621['id'],{'unitId':_0x1dfef8,'subUnitId':_0x5e8641,'selections':_0xf95e11});}};qe=zn([ns(0x0,_0x441fe2(_0x9c5d64)),ns(0x1,_0x1e0f5c)],qe);const Zn=new Set([_0x447932['id']]);function rs(_0x24d909,_0x455ae4,_0x465880,_0x553ff0,_0x2403ae){const _0x175b34=_0x1e1deb;var _0x47629f,_0x10d79e,_0x32b3ae,_0x13b184;const _0x22e1de=[];for(const _0x61964c of _0x24d909)if(Zn[_0x175b34(0x1e3)](_0x61964c['id'])){if(_0x22e1de[_0x175b34(0x426)]>0x0)break;_0x22e1de[_0x175b34(0x39d)](_0x61964c);break;}else _0x22e1de[_0x175b34(0x39d)](_0x61964c);const _0x463ad3=(_0x10d79e=(_0x47629f=_0x2403ae[_0x175b34(0x20c)]())==null?void 0x0:_0x47629f['userID'])!=null?_0x10d79e:_0x175b34(0x2d9),_0x57c117=(_0x13b184=(_0x32b3ae=_0x2403ae[_0x175b34(0x20c)]())==null?void 0x0:_0x32b3ae[_0x175b34(0x283)])!=null?_0x13b184:'unknown';return{'changeset':{'unitID':_0x455ae4,'type':_0x4d8b7d(_0x465880['getUnitType'](_0x455ae4)),'baseRev':_0x553ff0[_0x175b34(0x202)](_0x455ae4),'revision':0x0,'userID':_0x463ad3,'memberID':_0x57c117,'mutations':_0x22e1de},'pendingMutations':_0x24d909[_0x175b34(0x1d7)](_0x22e1de[_0x175b34(0x426)])};}function Qn(_0x3dbc47,_0x21f4c1,_0x47e06b,_0xce29bc,_0x4bc00b){const _0x4bc76e=_0x1e1deb;var _0x3321fa,_0x13e1c2,_0x58d6f0,_0x48ec35;const _0x201d36=[_0x3dbc47['reduce']((_0x1e6de2,_0x241d77)=>{const _0x56ce39=_0x44de;var _0x50c451;const {id:_0x59ae12}=_0x1e6de2,{id:_0x4a024a,type:_0x29c5c3}=_0x241d77,_0x29d323=(_0x50c451=_0x1e6de2[_0x56ce39(0x42b)])!=null?_0x50c451:{'actions':null},_0x5c5fcb=_0x241d77['params'];if(_0x59ae12&&_0x59ae12!==_0x4a024a)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x59ae12+_0x56ce39(0x106)+_0x4a024a+'.');return{..._0x1e6de2,'id':_0x4a024a,'type':_0x29c5c3,'params':{'unitId':_0x5c5fcb[_0x56ce39(0x439)],'textRanges':_0x5c5fcb[_0x56ce39(0x203)],'actions':_0x564a09[_0x56ce39(0x381)](_0x29d323[_0x56ce39(0x15f)],_0x5c5fcb[_0x56ce39(0x15f)])}};},{})],_0x210753=(_0x13e1c2=(_0x3321fa=_0x4bc00b[_0x4bc76e(0x20c)]())==null?void 0x0:_0x3321fa[_0x4bc76e(0x314)])!=null?_0x13e1c2:'unknown',_0x37bceb=(_0x48ec35=(_0x58d6f0=_0x4bc00b[_0x4bc76e(0x20c)]())==null?void 0x0:_0x58d6f0[_0x4bc76e(0x283)])!=null?_0x48ec35:_0x4bc76e(0x2d9);return{'changeset':{'unitID':_0x21f4c1,'type':_0x4d8b7d(_0x47e06b[_0x4bc76e(0x182)](_0x21f4c1)),'baseRev':_0xce29bc['getCurrentRevForDocument'](_0x21f4c1),'revision':0x0,'userID':_0x210753,'memberID':_0x37bceb,'mutations':_0x201d36},'pendingMutations':[]};}const er={'id':_0x4bcf83['id'],'type':_0x5cd9c4[_0x1e1deb(0x173)],'params':{}};var tr=Object[_0x1e1deb(0x158)],sr=Object['getOwnPropertyDescriptor'],ce=(_0x4d15f3,_0x4ac7d8,_0x5be020,_0xe34def)=>{const _0x28c052=_0x1e1deb;for(var _0x3beb5e=_0xe34def>0x1?void 0x0:_0xe34def?sr(_0x4ac7d8,_0x5be020):_0x4ac7d8,_0x1330b4=_0x4d15f3[_0x28c052(0x426)]-0x1,_0x38d1a0;_0x1330b4>=0x0;_0x1330b4--)(_0x38d1a0=_0x4d15f3[_0x1330b4])&&(_0x3beb5e=(_0xe34def?_0x38d1a0(_0x4ac7d8,_0x5be020,_0x3beb5e):_0x38d1a0(_0x3beb5e))||_0x3beb5e);return _0xe34def&&_0x3beb5e&&tr(_0x4ac7d8,_0x5be020,_0x3beb5e),_0x3beb5e;},f=(_0x2997db,_0x1476bf)=>(_0x1fd000,_0x1f9242)=>_0x1476bf(_0x1fd000,_0x1f9242,_0x2997db),P=(_0x2e88a5=>(_0x2e88a5['NOT_COLLAB']=_0x1e1deb(0x19a),_0x2e88a5[_0x1e1deb(0x23d)]='synced',_0x2e88a5['PENDING']=_0x1e1deb(0x3f2),_0x2e88a5['AWAITING']=_0x1e1deb(0x3a2),_0x2e88a5[_0x1e1deb(0x1b7)]=_0x1e1deb(0x1f9),_0x2e88a5['FETCH_MISS']='fetch_missing',_0x2e88a5[_0x1e1deb(0x2dc)]=_0x1e1deb(0x142),_0x2e88a5[_0x1e1deb(0x328)]=_0x1e1deb(0x291),_0x2e88a5))(P||{});class he{constructor(_0xfb08,_0xd5fdd2,_0x17e028,_0x5bdeee,_0x266644,_0x1709d5,_0x4f8502,_0x2d7435,_0x13afc7){const _0x34351a=_0x1e1deb;l(this,_0x34351a(0x332),null),l(this,_0x34351a(0x23c),[]),(this['unitID']=_0xfb08,this[_0x34351a(0x2cc)]=_0xd5fdd2,this['_handler']=_0x266644,this[_0x34351a(0x1fb)]=_0x1709d5,this[_0x34351a(0x1d0)]=_0x4f8502,this[_0x34351a(0x2d6)]=_0x2d7435,this[_0x34351a(0x1f2)]=_0x13afc7,this[_0x34351a(0x332)]=_0x17e028,this[_0x34351a(0x23c)]=_0x5bdeee);}[_0x1e1deb(0x319)](_0x45ec3c){const _0x2a6483=_0x1e1deb,_0x4e044a=this[_0x2a6483(0x2d6)][_0x2a6483(0x202)](this[_0x2a6483(0x370)]);return _0x45ec3c[_0x2a6483(0x126)]>_0x4e044a+0x1?(this['_handler'][_0x2a6483(0x34f)]({'from':_0x4e044a,'to':_0x45ec3c[_0x2a6483(0x126)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x22bcee){const _0x4e286e=_0x1e1deb;this[_0x4e286e(0x1d0)][_0x4e286e(0x2f2)](this[_0x4e286e(0x370)],_0x22bcee);}['_transformSelections'](_0x2cd441){const _0x36f245=_0x1e1deb;var _0xaf70f9,_0x19cb46;(_0x19cb46=(_0xaf70f9=this['_handler'])['onTransformSelections'])==null||_0x19cb46[_0x36f245(0x2fb)](_0xaf70f9,_0x2cd441);}[_0x1e1deb(0x3c3)](_0x5409d9){const _0x403e2e=_0x1e1deb;var _0xe9bb97,_0x27ba34;return(_0x27ba34=(_0xe9bb97=this[_0x403e2e(0x373)])['onTransformIME'])==null?void 0x0:_0x27ba34[_0x403e2e(0x2fb)](_0xe9bb97,_0x5409d9);}[_0x1e1deb(0x3cb)](_0xfd3fee){const _0x51b7fa=_0x1e1deb;var _0x44a0f6,_0x3d2708,_0x23a5b4;return(_0x23a5b4=(_0x3d2708=(_0x44a0f6=this[_0x51b7fa(0x373)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x3d2708[_0x51b7fa(0x2fb)](_0x44a0f6,_0xfd3fee))!=null?_0x23a5b4:_0xfd3fee;}[_0x1e1deb(0x407)](_0x510d3b){const _0x52a0d8=_0x1e1deb;var _0x280155,_0x235f07;if(this[_0x52a0d8(0x2cc)]===x['UNIVER_DOC']){const {unitID:_0x5657cc,mutations:_0x33b2c7,memberID:_0x516fb6}=_0x510d3b,_0x495275=_0x33b2c7[0x0][_0x52a0d8(0x42b)][_0x52a0d8(0x203)];Array[_0x52a0d8(0x117)](_0x495275)&&_0x495275[_0x52a0d8(0x426)]>0x0&&((_0x235f07=(_0x280155=this[_0x52a0d8(0x373)])[_0x52a0d8(0x3ff)])==null||_0x235f07[_0x52a0d8(0x2fb)](_0x280155,{'unitID':_0x5657cc,'memberID':_0x516fb6,'textRanges':_0x495275}));}}['_updateLocalCache'](){const _0xdac977=_0x1e1deb;this[_0xdac977(0x1f2)][_0xdac977(0x2b4)](this[_0xdac977(0x370)],this[_0xdac977(0x2cc)],this[_0xdac977(0x332)],this['_pendingMutations']);}[_0x1e1deb(0x149)](){const _0x8ea5cd=_0x1e1deb;return this['_revisionService'][_0x8ea5cd(0x202)](this[_0x8ea5cd(0x370)]);}[_0x1e1deb(0x22b)](){const _0x1d435c=_0x1e1deb;this['_revisionService']['incrementRevForDocument'](this[_0x1d435c(0x370)]);}[_0x1e1deb(0x1ac)](_0x15165c){const _0x38bedf=_0x1e1deb;var _0x3384cc;const _0x524d8e=this[_0x38bedf(0x3cb)](_0x15165c),_0x29c7cb=_0x35dc8f(_0x524d8e[_0x38bedf(0x357)],this[_0x38bedf(0x1fb)],{'fromCollab':!0x0});if(!_0x29c7cb['result'])throw _0x29c7cb[_0x38bedf(0x1f8)]instanceof Error?_0x29c7cb['error']:new Error((_0x3384cc=_0x29c7cb['error'])!=null?_0x3384cc:_0x38bedf(0x12c));this[_0x38bedf(0x3c3)](_0x524d8e),this[_0x38bedf(0x18d)](_0x15165c),this[_0x38bedf(0x3f8)](_0x524d8e),this['_syncEditingCollabCursor'](_0x524d8e),this[_0x38bedf(0x22b)]();}}let ye=class extends he{constructor(_0x24cd87,_0x2b22ae,_0x376e41,_0x95b44b,_0x5c4581,_0x3cedcb,_0x1a4a24,_0x4a7712,_0x2ba433,_0x65e7d6){const _0x4b4faf=_0x1e1deb;super(_0x24cd87,_0x2b22ae,null,[],_0x376e41,_0x4a7712,_0x1a4a24,_0x95b44b,_0x5c4581),l(this,_0x4b4faf(0x356),_0x4b4faf(0x368)),(this[_0x4b4faf(0x432)]=_0x3cedcb,this['_logService']=_0x2ba433,this[_0x4b4faf(0x258)]=_0x65e7d6);}[_0x1e1deb(0x374)](_0x5bfc8f){const _0x3ac634=_0x1e1deb,_0x2663b6=this[_0x3ac634(0x432)][_0x3ac634(0x116)](G,this['unitID'],this[_0x3ac634(0x2cc)],[_0x5bfc8f],this[_0x3ac634(0x373)]);return _0x2663b6[_0x3ac634(0x198)](),_0x2663b6[_0x3ac634(0x32b)](),_0x2663b6;}[_0x1e1deb(0x25b)](_0x3e0cfa){const _0x243edf=_0x1e1deb;if(this['_checkMissing'](_0x3e0cfa))return this[_0x243edf(0x432)][_0x243edf(0x116)](K,this[_0x243edf(0x370)],this[_0x243edf(0x2cc)],null,[],null,[_0x3e0cfa],this[_0x243edf(0x373)]);try{const _0x8f2a5=this[_0x243edf(0x258)]['transformMutationsWithChangeset'](_0x3e0cfa,[er]);if(_0x4f645f(_0x8f2a5)){const {c1Prime:_0x15e3c0}=_0x8f2a5;return this[_0x243edf(0x1ac)](_0x15e3c0),this;}throw _0x8f2a5['error'];}catch(_0x3d7b66){return this[_0x243edf(0x12a)][_0x243edf(0x1f8)](_0x3d7b66),this[_0x243edf(0x359)](!0x1);}}[_0x1e1deb(0x359)](_0x39e4af){const _0x141d62=_0x1e1deb;return this['_injector'][_0x141d62(0x116)](Z,this[_0x141d62(0x370)],this[_0x141d62(0x2cc)],null,[],this[_0x141d62(0x373)],_0x39e4af);}[_0x1e1deb(0x379)](){const _0x45fc26=_0x1e1deb;throw new Error(_0x45fc26(0x35a));}[_0x1e1deb(0x37e)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x34a200=_0x1e1deb;return this[_0x34a200(0x432)][_0x34a200(0x116)](Q,this[_0x34a200(0x370)],this[_0x34a200(0x2cc)],null,[],this['_handler']);}['toggleOnline'](){return this;}[_0x1e1deb(0x372)](){const _0x445890=_0x1e1deb;throw new Error(_0x445890(0x32a));}};ye=ce([f(0x3,_0x441fe2(_0xaeae41)),f(0x4,_0x441fe2(D)),f(0x5,_0x441fe2(_0x9c5d64)),f(0x6,_0x416533),f(0x7,_0x9845f),f(0x8,_0x5f4df3),f(0x9,_0x1e0f5c)],ye);let G=class extends he{constructor(_0x311956,_0x4bafe7,_0x3b9a93,_0x23022b,_0x5ac925,_0x595466,_0x20c521,_0x217292,_0x1409eb,_0x1e7a60,_0x4c0c30,_0x1d0fa5,_0x2e44cf,_0x13c5dd){const _0x2eb3f5=_0x1e1deb;super(_0x311956,_0x4bafe7,null,_0x3b9a93,_0x23022b,_0x1e7a60,_0x13c5dd,_0x595466,_0x20c521),l(this,'status','pending'),l(this,'_scheduleTimestamp',null),l(this,_0x2eb3f5(0x266),null),(this[_0x2eb3f5(0x432)]=_0x5ac925,this[_0x2eb3f5(0x13e)]=_0x217292,this[_0x2eb3f5(0x12a)]=_0x1409eb,this[_0x2eb3f5(0x26b)]=_0x4c0c30,this[_0x2eb3f5(0x258)]=_0x1d0fa5,this['_univerInstanceService']=_0x2e44cf);}[_0x1e1deb(0x374)](_0x300643){const _0x1669a8=_0x1e1deb;return this[_0x1669a8(0x23c)][_0x1669a8(0x39d)](_0x300643),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x47fe00){const _0x3083b5=_0x1e1deb;if(this[_0x3083b5(0x319)](_0x47fe00))return this[_0x3083b5(0x355)](),this[_0x3083b5(0x432)]['createInstance'](K,this[_0x3083b5(0x370)],this[_0x3083b5(0x2cc)],null,this[_0x3083b5(0x23c)],null,[_0x47fe00],this[_0x3083b5(0x373)]);try{const _0x1ecea7=this['_transformService'][_0x3083b5(0x3a3)](_0x47fe00,this['_pendingMutations']);if(_0x4f645f(_0x1ecea7)){const {c1Prime:_0x148479,m2Prime:_0x508860}=_0x1ecea7;this[_0x3083b5(0x1ac)](_0x148479);const _0x494c6a=this[_0x3083b5(0x432)][_0x3083b5(0x116)](G,this[_0x3083b5(0x370)],this[_0x3083b5(0x2cc)],_0x508860,this['_handler']);return this[_0x3083b5(0x355)](),_0x494c6a[_0x3083b5(0x198)](this[_0x3083b5(0x1e9)]?Math[_0x3083b5(0x274)](0x0,new Date()[_0x3083b5(0x12b)]()-this[_0x3083b5(0x1e9)]):this[_0x3083b5(0x362)]()),_0x494c6a;}throw _0x1ecea7[_0x3083b5(0x1f8)];}catch(_0x6c9c2c){return this[_0x3083b5(0x12a)][_0x3083b5(0x1f8)](_0x6c9c2c),this['_onConflict'](!0x1);}}[_0x1e1deb(0x379)](){const _0x34560a=_0x1e1deb;throw new Error(_0x34560a(0x431));}[_0x1e1deb(0x37e)](){const _0x1bd64d=_0x1e1deb;throw new Error(_0x1bd64d(0x255));}[_0x1e1deb(0x2dd)](){const _0x293159=_0x1e1deb;return this[_0x293159(0x355)](),this[_0x293159(0x432)][_0x293159(0x116)](Q,this[_0x293159(0x370)],this[_0x293159(0x2cc)],null,this[_0x293159(0x23c)],this[_0x293159(0x373)]);}[_0x1e1deb(0x13a)](){return this;}[_0x1e1deb(0x198)](_0x15f770){const _0x5ea99c=_0x1e1deb;_0x15f770=_0x15f770!=null?_0x15f770:this[_0x5ea99c(0x362)](),this['_scheduleTimestamp']=new Date()[_0x5ea99c(0x12b)](),this[_0x5ea99c(0x266)]=setTimeout(()=>{const _0x16848d=_0x5ea99c;this[_0x16848d(0x355)]();let _0x32768c=null;switch(this[_0x16848d(0x2cc)]){case x['UNIVER_SHEET']:{_0x32768c=rs(this[_0x16848d(0x23c)],this[_0x16848d(0x370)],this[_0x16848d(0x145)],this[_0x16848d(0x2d6)],this[_0x16848d(0x13e)]);break;}case x[_0x16848d(0x1c7)]:{this[_0x16848d(0x23c)][_0x16848d(0x3a1)](_0x1d5203=>_0x1d5203['id']===_0x54abea['id'])?_0x32768c=Qn(this['_pendingMutations'],this[_0x16848d(0x370)],this['_univerInstanceService'],this[_0x16848d(0x2d6)],this[_0x16848d(0x13e)]):_0x32768c=rs(this['_pendingMutations'],this[_0x16848d(0x370)],this[_0x16848d(0x145)],this[_0x16848d(0x2d6)],this[_0x16848d(0x13e)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x16848d(0x2cc)]+_0x16848d(0x164));}const {changeset:_0x2af2b5,pendingMutations:_0x11f75d}=_0x32768c;this[_0x16848d(0x373)][_0x16848d(0x15c)](_0x2af2b5);const _0x19e322=_0x11f75d[_0x16848d(0x426)]?this[_0x16848d(0x432)][_0x16848d(0x116)](Y,this['unitID'],this[_0x16848d(0x2cc)],_0x2af2b5,_0x11f75d,this[_0x16848d(0x373)]):this[_0x16848d(0x432)][_0x16848d(0x116)](q,this[_0x16848d(0x370)],this[_0x16848d(0x2cc)],_0x2af2b5,this[_0x16848d(0x373)]);_0x19e322['_updateLocalCache'](),this[_0x16848d(0x373)]['onStateChange'](this,_0x19e322);},_0x15f770);}[_0x1e1deb(0x362)](){var _0x4a2473;return(_0x4a2473=this['_configService']['getConfig'](hn))!=null?_0x4a2473:ln;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1e1deb(0x355)](){const _0x4310a1=_0x1e1deb;this[_0x4310a1(0x266)]!=null&&(clearTimeout(this[_0x4310a1(0x266)]),this[_0x4310a1(0x266)]=null);}[_0x1e1deb(0x359)](_0x4a574e){const _0xf1b101=_0x1e1deb;return this['_clearScheduledTask'](),this[_0xf1b101(0x432)][_0xf1b101(0x116)](Z,this[_0xf1b101(0x370)],this[_0xf1b101(0x2cc)],null,this[_0xf1b101(0x23c)],this[_0xf1b101(0x373)],_0x4a574e);}};G=ce([f(0x4,_0x441fe2(_0x9c5d64)),f(0x5,_0x441fe2(_0xaeae41)),f(0x6,_0x441fe2(D)),f(0x7,_0x441fe2(ne)),f(0x8,_0x5f4df3),f(0x9,_0x9845f),f(0xa,_0x5445a8),f(0xb,_0x1e0f5c),f(0xc,_0x4902a5),f(0xd,_0x416533)],G);let q=class extends he{constructor(_0xbf79d9,_0x33819d,_0x207e59,_0x4b68e6,_0x238611,_0x18097d,_0x55aba0,_0x2ef123,_0x2fd63d,_0x12e951,_0x5f4fd9){const _0x484cfd=_0x1e1deb;super(_0xbf79d9,_0x33819d,_0x207e59,[],_0x4b68e6,_0x2ef123,_0x5f4fd9,_0x18097d,_0x55aba0),l(this,_0x484cfd(0x356),_0x484cfd(0x3a2)),(this[_0x484cfd(0x432)]=_0x238611,this['_logService']=_0x2fd63d,this['_transformService']=_0x12e951);}['appendMutation'](_0x4e0e3c){const _0x336b12=_0x1e1deb,_0x3a9f34=this[_0x336b12(0x432)][_0x336b12(0x116)](Y,this['unitID'],this[_0x336b12(0x2cc)],this[_0x336b12(0x332)],[_0x4e0e3c],this[_0x336b12(0x373)]);return _0x3a9f34['_updateLocalCache'](),_0x3a9f34;}[_0x1e1deb(0x25b)](_0x4f4144){const _0x5a876d=_0x1e1deb;if(this[_0x5a876d(0x319)](_0x4f4144))return this[_0x5a876d(0x432)][_0x5a876d(0x116)](K,this[_0x5a876d(0x370)],this[_0x5a876d(0x2cc)],this['_awaitingChangeset'],[],null,[_0x4f4144],this[_0x5a876d(0x373)]);try{const _0x449748=this['_transformService'][_0x5a876d(0x3e9)]([_0x4f4144],[this['_awaitingChangeset']],!0x1);if(_0x316cc8(_0x449748)){const {c1Prime:_0x112099,c2Prime:_0x12d0aa}=_0x449748;this[_0x5a876d(0x1ac)](_0x112099[0x0]),_0x12d0aa[0x0][_0x5a876d(0x212)]=this[_0x5a876d(0x149)]();const _0x1b6d00=this['_injector']['createInstance'](q,this['unitID'],this[_0x5a876d(0x2cc)],_0x12d0aa[0x0],this[_0x5a876d(0x373)]);return _0x1b6d00['_updateLocalCache'](),_0x1b6d00;}return this[_0x5a876d(0x359)](!0x1);}catch(_0x5c1f5a){return this[_0x5a876d(0x12a)][_0x5a876d(0x1f8)](_0x5c1f5a),this[_0x5a876d(0x359)](!0x1);}}[_0x1e1deb(0x379)](_0x5691d5){const _0x3a556d=_0x1e1deb,_0x435b5c=this[_0x3a556d(0x2d6)]['getCurrentRevForDocument'](this['unitID']);if(_0x5691d5[_0x3a556d(0x126)]<_0x435b5c-0x1)return this;if(this[_0x3a556d(0x319)](_0x5691d5))return this[_0x3a556d(0x432)]['createInstance'](K,this[_0x3a556d(0x370)],this[_0x3a556d(0x2cc)],null,[],this[_0x3a556d(0x332)],[],this[_0x3a556d(0x373)]);this['_incrementRevisionNumber']();const _0x1fccfe=this[_0x3a556d(0x432)][_0x3a556d(0x116)](ye,this[_0x3a556d(0x370)],this[_0x3a556d(0x2cc)],this[_0x3a556d(0x373)]);return _0x1fccfe[_0x3a556d(0x32b)](),_0x1fccfe;}[_0x1e1deb(0x37e)](_0x56ae55){const _0x52f4f8=_0x1e1deb;return this[_0x52f4f8(0x359)](!!(_0x56ae55!=null&&_0x56ae55['isPermissionRej']));}[_0x1e1deb(0x2dd)](){const _0x3db6ac=_0x1e1deb;return this[_0x3db6ac(0x432)][_0x3db6ac(0x116)](Q,this[_0x3db6ac(0x370)],this[_0x3db6ac(0x2cc)],this[_0x3db6ac(0x332)],[],this[_0x3db6ac(0x373)]);}[_0x1e1deb(0x13a)](){return this;}[_0x1e1deb(0x372)](){const _0x27b9a4=_0x1e1deb;this[_0x27b9a4(0x373)][_0x27b9a4(0x15c)](this[_0x27b9a4(0x332)]);}[_0x1e1deb(0x359)](_0x44690f){const _0x478ba4=_0x1e1deb;return this[_0x478ba4(0x432)][_0x478ba4(0x116)](Z,this['unitID'],this[_0x478ba4(0x2cc)],this[_0x478ba4(0x332)],[],this[_0x478ba4(0x373)],_0x44690f);}};q=ce([f(0x4,_0x441fe2(_0x9c5d64)),f(0x5,_0x441fe2(_0xaeae41)),f(0x6,_0x441fe2(D)),f(0x7,_0x9845f),f(0x8,_0x5f4df3),f(0x9,_0x1e0f5c),f(0xa,_0x416533)],q);let Y=class extends he{constructor(_0x1c5598,_0x55ac7d,_0x109cd5,_0x53310d,_0x1cb1de,_0x535291,_0x990d7b,_0x22dca9,_0x8f712,_0x4e3e3f,_0x4d7b92,_0x45bd63){const _0x311c51=_0x1e1deb;super(_0x1c5598,_0x55ac7d,_0x109cd5,_0x53310d,_0x1cb1de,_0x8f712,_0x45bd63,_0x990d7b,_0x22dca9),l(this,_0x311c51(0x356),_0x311c51(0x1f9)),(this['_injector']=_0x535291,this[_0x311c51(0x12a)]=_0x4e3e3f,this[_0x311c51(0x258)]=_0x4d7b92);}['appendMutation'](_0x296f0c){const _0x474d05=_0x1e1deb;return this[_0x474d05(0x23c)]['push'](_0x296f0c),this;}[_0x1e1deb(0x25b)](_0x1e317b){const _0x16b0fe=_0x1e1deb;if(this['_checkMissing'](_0x1e317b))return this[_0x16b0fe(0x432)][_0x16b0fe(0x116)](K,this[_0x16b0fe(0x370)],this['type'],this[_0x16b0fe(0x332)],this[_0x16b0fe(0x23c)],null,[_0x1e317b],this[_0x16b0fe(0x373)]);try{const _0x3e992f=this[_0x16b0fe(0x258)][_0x16b0fe(0x3e9)]([_0x1e317b],[this['_awaitingChangeset']],!0x1);if(_0x316cc8(_0x3e992f)){const {c1Prime:_0x598330,c2Prime:_0x3603ae}=_0x3e992f,_0xdc2477=this[_0x16b0fe(0x258)]['transformMutationsWithChangeset'](_0x598330[0x0],this[_0x16b0fe(0x23c)]);if(_0x4f645f(_0xdc2477)){const {c1Prime:_0x2edce6,m2Prime:_0xec2b1d}=_0xdc2477;return this[_0x16b0fe(0x1ac)](_0x2edce6),_0x3603ae[0x0][_0x16b0fe(0x212)]=this[_0x16b0fe(0x149)](),this[_0x16b0fe(0x432)][_0x16b0fe(0x116)](Y,this[_0x16b0fe(0x370)],this['type'],_0x3603ae[0x0],_0xec2b1d,this[_0x16b0fe(0x373)]);}throw _0xdc2477['error'];}throw _0x3e992f[_0x16b0fe(0x1f8)];}catch(_0x1852de){return this[_0x16b0fe(0x12a)][_0x16b0fe(0x1f8)](_0x1852de),this[_0x16b0fe(0x359)](!0x1);}}[_0x1e1deb(0x379)](_0xcd1fbb){const _0x402358=_0x1e1deb;if(this[_0x402358(0x319)](_0xcd1fbb))return this[_0x402358(0x432)][_0x402358(0x116)](K,this['unitID'],this[_0x402358(0x2cc)],null,this['_pendingMutations'],this[_0x402358(0x332)],[],this['_handler']);this[_0x402358(0x22b)]();const _0x215df=this[_0x402358(0x432)]['createInstance'](G,this[_0x402358(0x370)],this[_0x402358(0x2cc)],this[_0x402358(0x23c)],this[_0x402358(0x373)]);return _0x215df[_0x402358(0x198)](),_0x215df[_0x402358(0x32b)](),_0x215df;}[_0x1e1deb(0x37e)](_0x53b870){const _0x4f8615=_0x1e1deb;return this['_onConflict'](!!(_0x53b870!=null&&_0x53b870[_0x4f8615(0x32d)]));}[_0x1e1deb(0x2dd)](){const _0x3dfd76=_0x1e1deb;return this[_0x3dfd76(0x432)][_0x3dfd76(0x116)](Q,this['unitID'],this[_0x3dfd76(0x2cc)],this['_awaitingChangeset'],this[_0x3dfd76(0x23c)],this[_0x3dfd76(0x373)]);}[_0x1e1deb(0x13a)](){return this;}[_0x1e1deb(0x372)](){const _0x42accc=_0x1e1deb;this['_handler'][_0x42accc(0x15c)](this['_awaitingChangeset']);}[_0x1e1deb(0x359)](_0x483b69){const _0xfae14f=_0x1e1deb;return this[_0xfae14f(0x432)][_0xfae14f(0x116)](Z,this[_0xfae14f(0x370)],this[_0xfae14f(0x2cc)],null,this[_0xfae14f(0x23c)],this[_0xfae14f(0x373)],_0x483b69);}};Y=ce([f(0x5,_0x441fe2(_0x9c5d64)),f(0x6,_0x441fe2(_0xaeae41)),f(0x7,_0x441fe2(D)),f(0x8,_0x9845f),f(0x9,_0x5f4df3),f(0xa,_0x1e0f5c),f(0xb,_0x416533)],Y);let Z=class extends he{constructor(_0x47c831,_0x381247,_0x586de1,_0x3b6a91,_0x3f0a44,_0x3425ff=!0x1,_0x4870f5,_0x171b6a,_0x1478de,_0x39228f,_0x4c9e0b,_0x20dc09,_0x4ddedc){const _0x3620e3=_0x1e1deb;super(_0x47c831,_0x381247,_0x586de1,_0x3b6a91,_0x3f0a44,_0x171b6a,_0x1478de,_0x4c9e0b,_0x39228f),l(this,_0x3620e3(0x356),_0x3620e3(0x142)),(this[_0x3620e3(0x2e3)]=_0x3425ff,this[_0x3620e3(0x1eb)]=_0x4870f5,this['_localeService']=_0x20dc09,this[_0x3620e3(0x3dd)]=_0x4ddedc,this[_0x3620e3(0x2ca)](),this['_clearLocalCache'](),this['_disableEditing']());}[_0x1e1deb(0x374)](){return this;}['onRemoteChangeset'](){return this;}[_0x1e1deb(0x379)](){return this;}[_0x1e1deb(0x37e)](){return this;}[_0x1e1deb(0x2dd)](){return this;}[_0x1e1deb(0x13a)](){return this;}[_0x1e1deb(0x372)](){const _0x2dc7a2=_0x1e1deb;throw new Error(_0x2dc7a2(0x35e));}[_0x1e1deb(0x377)](){const _0x191080=_0x1e1deb;this[_0x191080(0x1f2)]['updateOfflineData'](this[_0x191080(0x370)],this['type'],null,[]);}[_0x1e1deb(0x2ca)](){const _0xbf1449=_0x1e1deb;this[_0xbf1449(0x2e3)]?this[_0xbf1449(0x3dd)][_0xbf1449(0x154)]({'title':this[_0xbf1449(0x367)]['t']('permission.title'),'content':this[_0xbf1449(0x367)]['t'](_0xbf1449(0x217)),'type':_0xbf1449(0x1f8),'duration':0x0}):this['_notificationService']['show']({'title':this[_0xbf1449(0x367)]['t'](_0xbf1449(0x30e)),'content':this[_0xbf1449(0x367)]['t'](_0xbf1449(0x1a7)),'type':_0xbf1449(0x1f8),'duration':0x0});}[_0x1e1deb(0x169)](){const _0x43f8a9=_0x1e1deb;this[_0x43f8a9(0x1eb)][_0x43f8a9(0x3ba)](new _0x230e97(this['unitID'])['id'],!0x1);}};Z=ce([f(0x6,_0x441fe2(_0x3660f2)),f(0x7,_0x9845f),f(0x8,_0x416533),f(0x9,_0x441fe2(D)),f(0xa,_0x441fe2(_0xaeae41)),f(0xb,_0x441fe2(_0x2cfe85)),f(0xc,_0x73ec84)],Z);let Q=class extends he{constructor(_0x4033ed,_0x294e68,_0x42ae01,_0x1ae8fa,_0x4a9923,_0x28c475,_0x445d82,_0x3de675,_0x3f2eb6,_0x2b6b18){const _0x4cf51f=_0x1e1deb;super(_0x4033ed,_0x294e68,_0x42ae01,_0x1ae8fa,_0x4a9923,_0x3f2eb6,_0x2b6b18,_0x445d82,_0x3de675),l(this,_0x4cf51f(0x356),'offline'),this['_injector']=_0x28c475;}['appendMutation'](_0x19d234){const _0x44a949=_0x1e1deb;return this[_0x44a949(0x23c)][_0x44a949(0x39d)](_0x19d234),this[_0x44a949(0x32b)](),this;}[_0x1e1deb(0x25b)](_0x31afe7){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0xb10699=_0x1e1deb;throw new Error(_0xb10699(0x26a));}[_0x1e1deb(0x37e)](){const _0x1395d2=_0x1e1deb;throw new Error(_0x1395d2(0x371));}[_0x1e1deb(0x2dd)](){return this;}['toggleOnline'](){const _0x37d1ab=_0x1e1deb,{_injector:_0x31e81f,_pendingMutations:_0x30cb4a,_awaitingChangeset:_0x2f4d56,unitID:_0x2d5b68,_handler:_0x592196,type:_0x2c9179}=this,_0x45df02=Us(_0x31e81f,_0x2d5b68,_0x2c9179,_0x2f4d56,_0x30cb4a,_0x592196);return _0x45df02 instanceof G?_0x45df02[_0x37d1ab(0x198)]():(_0x45df02 instanceof Y||_0x45df02 instanceof q)&&_0x45df02[_0x37d1ab(0x372)](),_0x45df02;}[_0x1e1deb(0x372)](){const _0x5ce96e=_0x1e1deb;throw new Error(_0x5ce96e(0x3da));}};Q=ce([f(0x5,_0x441fe2(_0x9c5d64)),f(0x6,_0x441fe2(_0xaeae41)),f(0x7,_0x441fe2(D)),f(0x8,_0x9845f),f(0x9,_0x416533)],Q);let K=class extends he{constructor(_0x5413fa,_0x10b864,_0x24d54e,_0x300b16,_0x35cc00,_0x35295d,_0xe20ac1,_0x28979e,_0x4637b7,_0x26d5f0,_0x181bcd,_0x1c0b77,_0x18fd54,_0x18e5ba){const _0x31c961=_0x1e1deb;super(_0x5413fa,_0x10b864,_0x24d54e,_0x300b16,_0xe20ac1,_0x1c0b77,_0x18fd54,_0x4637b7,_0x26d5f0),l(this,_0x31c961(0x356),_0x31c961(0x2b1)),(this[_0x31c961(0x3b4)]=_0x35cc00,this[_0x31c961(0x135)]=_0x35295d,this[_0x31c961(0x432)]=_0x28979e,this[_0x31c961(0x12a)]=_0x181bcd,this[_0x31c961(0x258)]=_0x18e5ba);}['onMissedChangesetFetched'](_0x352185){const _0x5a1a1b=_0x1e1deb;try{const _0xd2a67f=[..._0x352185,...this[_0x5a1a1b(0x135)]],_0x5b9a9c=[this[_0x5a1a1b(0x332)]||this[_0x5a1a1b(0x3b4)]][_0x5a1a1b(0x3fd)](_0x18ca98=>!!_0x18ca98);let _0x47a729,_0x5cb6ad;if(_0x5b9a9c[_0x5a1a1b(0x426)]){const _0x2ce4d1=this[_0x5a1a1b(0x258)][_0x5a1a1b(0x3e9)](_0xd2a67f,_0x5b9a9c,!0x1);if(!_0x316cc8(_0x2ce4d1))throw _0x2ce4d1[_0x5a1a1b(0x1f8)];_0x47a729=_0x2ce4d1[_0x5a1a1b(0x1ba)],_0x5cb6ad=_0x2ce4d1['c2Prime'];}else _0x47a729=_0xd2a67f,_0x5cb6ad=[];let _0x43119d=this[_0x5a1a1b(0x23c)];_0x47a729[_0x5a1a1b(0x23e)](_0x189226=>{const _0x5a3e9=_0x5a1a1b;let _0x4644e6;if(_0x43119d['length']){const _0x1ab949=this[_0x5a3e9(0x258)]['transformMutationsWithChangeset'](_0x189226,_0x43119d);if(!_0x4f645f(_0x1ab949))throw _0x1ab949[_0x5a3e9(0x1f8)];_0x4644e6=_0x1ab949[_0x5a3e9(0x1ba)],_0x43119d=_0x1ab949[_0x5a3e9(0x2fa)];}else _0x4644e6=_0x189226;this[_0x5a3e9(0x1ac)](_0x4644e6);}),this[_0x5a1a1b(0x3b4)]&&this[_0x5a1a1b(0x22b)](),this['_awaitingChangeset']&&_0x5cb6ad[_0x5a1a1b(0x426)]&&(_0x5cb6ad[0x0][_0x5a1a1b(0x212)]=this[_0x5a1a1b(0x149)]());let _0x304130;if(this[_0x5a1a1b(0x332)]&&_0x43119d[_0x5a1a1b(0x426)]!==0x0)_0x304130=this[_0x5a1a1b(0x432)][_0x5a1a1b(0x116)](Y,this['unitID'],this[_0x5a1a1b(0x2cc)],_0x5cb6ad[0x0],_0x43119d,this[_0x5a1a1b(0x373)]);else{if(this[_0x5a1a1b(0x332)]&&_0x43119d['length']===0x0)_0x5cb6ad[0x0][_0x5a1a1b(0x212)]=this['_getCurrentRevision'](),_0x304130=this[_0x5a1a1b(0x432)]['createInstance'](q,this[_0x5a1a1b(0x370)],this['type'],_0x5cb6ad[0x0],this[_0x5a1a1b(0x373)]);else{if(_0x43119d['length']!==0x0){const _0x86efe3=this[_0x5a1a1b(0x432)][_0x5a1a1b(0x116)](G,this['unitID'],this['type'],_0x43119d,this[_0x5a1a1b(0x373)]);_0x86efe3['_schedule'](),_0x304130=_0x86efe3;}else _0x304130=this[_0x5a1a1b(0x432)][_0x5a1a1b(0x116)](ye,this['unitID'],this[_0x5a1a1b(0x2cc)],this['_handler']);}}return _0x304130[_0x5a1a1b(0x32b)](),_0x304130;}catch(_0x550117){return this['_logService'][_0x5a1a1b(0x1f8)](_0x5a1a1b(0x290),_0x5a1a1b(0x26f),_0x550117),this[_0x5a1a1b(0x432)][_0x5a1a1b(0x116)](Z,this[_0x5a1a1b(0x370)],this[_0x5a1a1b(0x2cc)],this[_0x5a1a1b(0x332)],this[_0x5a1a1b(0x23c)],this[_0x5a1a1b(0x373)],!0x1);}}[_0x1e1deb(0x372)](){const _0x45f47c=_0x1e1deb;throw new Error(_0x45f47c(0x144));}[_0x1e1deb(0x374)](_0x5cb69b){const _0x1b773e=_0x1e1deb;return this[_0x1b773e(0x23c)][_0x1b773e(0x39d)](_0x5cb69b),this;}[_0x1e1deb(0x25b)](_0x407148){const _0x199083=_0x1e1deb;return this[_0x199083(0x135)][_0x199083(0x39d)](_0x407148),this;}[_0x1e1deb(0x379)](_0x4369e2){const _0x175780=_0x1e1deb;if(this[_0x175780(0x332)])return this['_acknowledgedAwaitingChangeset']=this[_0x175780(0x332)],this[_0x175780(0x332)]=null,this;throw new Error(_0x175780(0x27d));}['onRemoteRej'](_0xe91030){const _0x19e25=_0x1e1deb;return this[_0x19e25(0x359)](!!(_0xe91030!=null&&_0xe91030['isPermissionRej']));}[_0x1e1deb(0x2dd)](){const _0x24daff=_0x1e1deb;return this['_injector']['createInstance'](Q,this[_0x24daff(0x370)],this['type'],this['_awaitingChangeset'],this[_0x24daff(0x23c)],this[_0x24daff(0x373)]);}['toggleOnline'](){return this;}[_0x1e1deb(0x359)](_0xb28e10){const _0x516a3f=_0x1e1deb;return this[_0x516a3f(0x432)]['createInstance'](Z,this[_0x516a3f(0x370)],this['type'],this['_awaitingChangeset'],this[_0x516a3f(0x23c)],this['_handler'],_0xb28e10);}};K=ce([f(0x7,_0x441fe2(_0x9c5d64)),f(0x8,_0x441fe2(_0xaeae41)),f(0x9,_0x441fe2(D)),f(0xa,_0x5f4df3),f(0xb,_0x9845f),f(0xc,_0x416533),f(0xd,_0x1e0f5c)],K);function Us(_0x579dec,_0x46bd78,_0x1ebb8c,_0x13829d,_0x12331f,_0x2a5cae){const _0x4e6c22=_0x1e1deb;return _0x13829d&&_0x12331f[_0x4e6c22(0x426)]?_0x579dec[_0x4e6c22(0x116)](Y,_0x46bd78,_0x1ebb8c,_0x13829d,_0x12331f,_0x2a5cae):_0x13829d?_0x579dec['createInstance'](q,_0x46bd78,_0x1ebb8c,_0x13829d,_0x2a5cae):_0x12331f[_0x4e6c22(0x426)]?_0x579dec[_0x4e6c22(0x116)](G,_0x46bd78,_0x1ebb8c,_0x12331f,_0x2a5cae):_0x579dec[_0x4e6c22(0x116)](ye,_0x46bd78,_0x1ebb8c,_0x2a5cae);}var ir=Object[_0x1e1deb(0x158)],nr=Object[_0x1e1deb(0x32c)],st=(_0x48e165,_0x416c0b,_0x51291f,_0x451ff2)=>{const _0x54fda0=_0x1e1deb;for(var _0x4ce40e=_0x451ff2>0x1?void 0x0:_0x451ff2?nr(_0x416c0b,_0x51291f):_0x416c0b,_0x163375=_0x48e165[_0x54fda0(0x426)]-0x1,_0x460e26;_0x163375>=0x0;_0x163375--)(_0x460e26=_0x48e165[_0x163375])&&(_0x4ce40e=(_0x451ff2?_0x460e26(_0x416c0b,_0x51291f,_0x4ce40e):_0x460e26(_0x4ce40e))||_0x4ce40e);return _0x451ff2&&_0x4ce40e&&ir(_0x416c0b,_0x51291f,_0x4ce40e),_0x4ce40e;},p=(_0xee83f7,_0x169274)=>(_0x1b5003,_0x5b464a)=>_0x169274(_0x1b5003,_0x5b464a,_0xee83f7);let Me=class extends _0x5b9cf1{constructor(_0x509b45,_0x291204,_0x3e294d){const _0x2c87b9=_0x1e1deb;super(),l(this,'_entities',new Map()),l(this,_0x2c87b9(0x325),new _0x365a49()),(this[_0x2c87b9(0x432)]=_0x509b45,this[_0x2c87b9(0x341)]=_0x291204,this['_univerInstanceService']=_0x3e294d,this[_0x2c87b9(0x37a)]());}['dispose'](){const _0x5390a0=_0x1e1deb;super['dispose'](),this['_entities'][_0x5390a0(0x23e)](_0x4f282c=>_0x4f282c[_0x5390a0(0x1de)]()),this['_entities'][_0x5390a0(0x124)]();}['getCollabEntity'](_0x27039e){const _0x2c9152=_0x1e1deb;var _0x2701f3;return(_0x2701f3=this[_0x2c9152(0x272)]['get'](_0x27039e))!=null?_0x2701f3:null;}[_0x1e1deb(0x1d3)](_0x4ffc56){const _0x1c00ee=_0x1e1deb,_0x32c325=this['getCollabEntity'](_0x4ffc56);return _0x32c325?_0x4f1794(_0x32c325):this[_0x1c00ee(0x325)][_0x1c00ee(0x119)](_0x190413(_0x490ced=>_0x490ced[_0x1c00ee(0x370)]===_0x4ffc56));}[_0x1e1deb(0x37a)](){const _0x5b0435=_0x1e1deb;this[_0x5b0435(0x145)][_0x5b0435(0x405)](_0x37298b[_0x5b0435(0x3d0)])['pipe'](_0x3f75b0(this[_0x5b0435(0x413)]),_0x12d8e6(0x10))['subscribe'](async _0x499dd4=>{const _0x1e1229=_0x5b0435,_0x43f234=_0x499dd4['getUnitId'](),_0x6da999=await this[_0x1e1229(0x38f)](_0x43f234,x[_0x1e1229(0x3d0)]);this[_0x1e1229(0x272)]['set'](_0x43f234,_0x6da999);}),this[_0x5b0435(0x145)]['getTypeOfUnitAdded$'](_0x37298b[_0x5b0435(0x1c7)])[_0x5b0435(0x119)](_0x3f75b0(this['dispose$']),_0x12d8e6(0x10))[_0x5b0435(0x119)](_0x190413(_0x5d5cb4=>!_0x5d5cb4['getUnitId']()[_0x5b0435(0x240)]('__')))[_0x5b0435(0x3e0)](async _0x1bb952=>{const _0x198b8e=_0x5b0435,_0x26e91c=_0x1bb952[_0x198b8e(0x3cf)](),_0x4669b3=await this['_startCollaboration'](_0x26e91c,x[_0x198b8e(0x1c7)]);this[_0x198b8e(0x272)][_0x198b8e(0x394)](_0x26e91c,_0x4669b3);}),_0x5726e7(this[_0x5b0435(0x145)]['getTypeOfUnitDisposed$'](_0x37298b['UNIVER_SHEET']),this[_0x5b0435(0x145)]['getTypeOfUnitDisposed$'](_0x37298b[_0x5b0435(0x1c7)]))[_0x5b0435(0x119)](_0x3f75b0(this['dispose$']))[_0x5b0435(0x3e0)](_0x4e3e8d=>{const _0xbd1a18=_0x5b0435,_0x28b29c=_0x4e3e8d[_0xbd1a18(0x3cf)](),_0x5dc702=this[_0xbd1a18(0x272)][_0xbd1a18(0x10a)](_0x28b29c);_0x5dc702&&(_0x5dc702[_0xbd1a18(0x1de)](),this[_0xbd1a18(0x272)]['delete'](_0x28b29c));});}async[_0x1e1deb(0x38f)](_0xd132ec,_0x485567){const _0x6a96be=_0x1e1deb,_0x259989=await this['_collabSessionService'][_0x6a96be(0x2c6)](_0xd132ec),_0xa5e8a1=this['_injector'][_0x6a96be(0x116)](this[_0x6a96be(0x1d8)](_0x485567),_0xd132ec,_0x485567,_0x259989);return await _0xa5e8a1[_0x6a96be(0x3db)](),this[_0x6a96be(0x325)]['next'](_0xa5e8a1),_0xa5e8a1;}[_0x1e1deb(0x1d8)](_0x2d58b0){const _0x4854b7=_0x1e1deb;switch(_0x2d58b0){case x['UNIVER_DOC']:return It;case x[_0x4854b7(0x3d0)]:return Et;default:throw new Error(_0x4854b7(0x2e5)+_0x2d58b0);}}};Me=st([_0x3e0133(_0x1781f1[_0x1e1deb(0x3bd)],Me),p(0x0,_0x441fe2(_0x9c5d64)),p(0x1,_0x441fe2(pe)),p(0x2,_0x4902a5)],Me);let Ze=class extends _0x5b9cf1{constructor(_0x36f389,_0x1129b4,_0x1599de,_0x363f83,_0x523d17,_0x1f1971,_0x51f01c,_0x477fcc,_0x4f09ad,_0x50ac2a,_0x31773c,_0xbb257e,_0x1354cc){const _0x4c8e67=_0x1e1deb;super(),l(this,_0x4c8e67(0x128),new _0x16d05d(null)),l(this,_0x4c8e67(0x229),this[_0x4c8e67(0x128)]['asObservable']()),l(this,_0x4c8e67(0x195)),l(this,_0x4c8e67(0x2d4),!0x1),l(this,'status$',this[_0x4c8e67(0x229)][_0x4c8e67(0x119)](_0x5ac769(_0x1b3212=>_0x1b3212?_0x1b3212[_0x4c8e67(0x356)]:P[_0x4c8e67(0x328)]),_0xec62cf(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x4c8e67(0x1ae),[]),(this[_0x4c8e67(0x370)]=_0x36f389,this[_0x4c8e67(0x33f)]=_0x1129b4,this[_0x4c8e67(0x188)]=_0x1599de,this[_0x4c8e67(0x432)]=_0x363f83,this['_localCacheService']=_0x523d17,this['_compressMutationService']=_0x1f1971,this['_localeService']=_0x51f01c,this[_0x4c8e67(0x2d6)]=_0x477fcc,this[_0x4c8e67(0x12a)]=_0x4f09ad,this[_0x4c8e67(0x1fb)]=_0x50ac2a,this[_0x4c8e67(0x130)]=_0x31773c,this['_permissionService']=_0xbb257e,this[_0x4c8e67(0x3ea)]=_0x1354cc);}get['state'](){const _0x31db9a=_0x1e1deb;return this[_0x31db9a(0x195)];}async['init'](){const _0x31b9cd=_0x1e1deb;if(this['state'])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x31b9cd(0x37a)]();}[_0x1e1deb(0x1c9)](){return this['_collaborationPaused']=!0x0,_0x4259e5(()=>{const _0x5eec24=_0x44de;this[_0x5eec24(0x2d4)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x1e1deb(0x330)](_0x269e6b){const _0x4104dc=_0x1e1deb;this[_0x4104dc(0x195)]=_0x269e6b,this[_0x4104dc(0x128)]['next'](_0x269e6b);}async[_0x1e1deb(0x37a)](){const _0x548a85=_0x1e1deb;var _0x4ecf58;return this[_0x548a85(0x330)](await this[_0x548a85(0x1a1)]()),this[_0x548a85(0x3ea)]&&((_0x4ecf58=this[_0x548a85(0x3ea)])==null||_0x4ecf58[_0x548a85(0x2f9)](this[_0x548a85(0x370)]),this[_0x548a85(0x32e)](_0x4259e5(this['_singleActiveUnitService'][_0x548a85(0x2ac)](this[_0x548a85(0x370)])[_0x548a85(0x3e0)](_0x48c6b6=>{const _0x58fa6c=_0x548a85;this[_0x58fa6c(0x12a)]['debug'](_0x58fa6c(0x20f),'editing\x20status\x20changed\x20to',_0x48c6b6),_0x48c6b6===As[_0x58fa6c(0x288)]?(this['_messageService']['show']({'content':this['_localeService']['t'](_0x58fa6c(0x336)),'type':_0x3eac95[_0x58fa6c(0x15d)]}),this[_0x58fa6c(0x1eb)][_0x58fa6c(0x3ba)](new _0x230e97(this[_0x58fa6c(0x370)])['id'],!0x1)):this['_permissionService'][_0x58fa6c(0x3ba)](new _0x230e97(this[_0x58fa6c(0x370)])['id'],!0x0);})))),this[_0x548a85(0x32e)](_0x4259e5(this[_0x548a85(0x188)][_0x548a85(0x220)]['subscribe'](_0x1b3d89=>{const _0x2248e5=_0x548a85;_0x1b3d89===fe[_0x2248e5(0x3c2)]?this['_toggleOnline']():_0x1b3d89===fe[_0x2248e5(0x328)]&&this[_0x2248e5(0x437)]();}))),this[_0x548a85(0x32e)](_0x4259e5(this['_session'][_0x548a85(0x19f)][_0x548a85(0x3e0)](_0x2ac18d=>{const _0x50b20e=_0x548a85;try{switch(_0x2ac18d[_0x50b20e(0x2f8)]){case _0x1c415b[_0x50b20e(0x38c)]:{this[_0x50b20e(0x127)](_0x485874(_0x2ac18d[_0x50b20e(0x265)]));break;}case _0x1c415b[_0x50b20e(0x402)]:{this['_onRemoteACK'](_0x2ac18d[_0x50b20e(0x265)]);break;}case _0x1c415b[_0x50b20e(0x3fb)]:{this['_onRemoteRejected']();break;}case _0x1c415b[_0x50b20e(0x2ff)]:{this[_0x50b20e(0x214)](_0x2ac18d['data'][_0x50b20e(0x247)][_0x50b20e(0x230)](_0x12692b=>_0x485874(_0x12692b)));break;}case _0x1c415b[_0x50b20e(0x436)]:this[_0x50b20e(0x1a4)]({'isPermissionRej':!0x0});}}catch(_0x2a0fcf){throw console[_0x50b20e(0x1f8)]('Error\x20on\x20receiving\x20event',_0x2a0fcf),_0x2a0fcf;}}))),this[_0x548a85(0x195)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x1e1deb(0x3b1)](){const _0x4f0ddd=_0x1e1deb;if(this[_0x4f0ddd(0x322)])throw new Error('[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.');this[_0x4f0ddd(0x322)]=!0x0;}[_0x1e1deb(0x2f3)](_0x46d15e){const _0x9726d5=_0x1e1deb;this[_0x9726d5(0x3b1)](),this[_0x9726d5(0x330)](this[_0x9726d5(0x195)]['appendMutation'](_0x46d15e)),this[_0x9726d5(0x125)]();}[_0x1e1deb(0x127)](_0x5d5ebb){const _0x1e552c=_0x1e1deb;if(!(_0x5d5ebb[_0x1e552c(0x126)]<=this[_0x1e552c(0x2d6)]['getCurrentRevForDocument'](this['unitID']))){if(this['_collaborationPaused']){this[_0x1e552c(0x1ae)]['push'](_0x5d5ebb);return;}this[_0x1e552c(0x382)](_0x5d5ebb);}}[_0x1e1deb(0x406)](){const _0x30e053=_0x1e1deb;this[_0x30e053(0x1ae)][_0x30e053(0x23e)](_0x12b2bc=>this[_0x30e053(0x382)](_0x12b2bc)),this['_remoteChangesetQueue']=[];}[_0x1e1deb(0x382)](_0x225df3){const _0x53d40a=_0x1e1deb,_0x49695b=this[_0x53d40a(0x312)]['interceptor'][_0x53d40a(0x184)](this[_0x53d40a(0x312)][_0x53d40a(0x3c1)][_0x53d40a(0x3d2)]()[_0x53d40a(0x1b3)])(_0x225df3[_0x53d40a(0x357)],null)||_0x225df3[_0x53d40a(0x357)],_0x4d5023={..._0x225df3,'mutations':_0x49695b};this[_0x53d40a(0x3b1)](),this['_updateState'](this[_0x53d40a(0x195)][_0x53d40a(0x25b)](_0x4d5023)),this[_0x53d40a(0x125)]();}['_onRemoteACK'](_0x5250dd){const _0x33ae49=_0x1e1deb;this[_0x33ae49(0x3b1)](),this['_updateState'](this[_0x33ae49(0x195)][_0x33ae49(0x379)](_0x5250dd)),this[_0x33ae49(0x125)]();}['_onRemoteRejected'](_0x45fa86){const _0x343ebd=_0x1e1deb;this['_lockTransition'](),this[_0x343ebd(0x330)](this[_0x343ebd(0x195)]['onRemoteRej'](_0x45fa86)),this[_0x343ebd(0x125)]();}[_0x1e1deb(0x214)](_0x2fc339){const _0x115f22=_0x1e1deb;if(!(this[_0x115f22(0x195)]instanceof K))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x24b9bd=_0x2fc339['map'](_0x5ed02d=>{const _0x53dabe=_0x115f22,_0xf8fb97=this[_0x53dabe(0x312)]['interceptor'][_0x53dabe(0x184)](this[_0x53dabe(0x312)]['interceptor'][_0x53dabe(0x3d2)]()[_0x53dabe(0x1b3)])(_0x5ed02d[_0x53dabe(0x357)],null)||_0x5ed02d[_0x53dabe(0x357)];return{..._0x5ed02d,'mutations':_0xf8fb97};});this[_0x115f22(0x3b1)](),this[_0x115f22(0x330)](this[_0x115f22(0x195)]['onMissedChangesetFetched'](_0x24b9bd)),this[_0x115f22(0x125)]();}[_0x1e1deb(0x437)](){const _0x21c958=_0x1e1deb;this[_0x21c958(0x3b1)](),this['_updateState'](this[_0x21c958(0x195)]['toggleOffline']()),this[_0x21c958(0x125)]();}[_0x1e1deb(0x225)](){const _0x3a59a4=_0x1e1deb;this[_0x3a59a4(0x3b1)](),this[_0x3a59a4(0x330)](this[_0x3a59a4(0x195)][_0x3a59a4(0x13a)]()),this[_0x3a59a4(0x125)]();}async[_0x1e1deb(0x1a1)](){return new Promise(_0x53e659=>{const _0xfeb62a=_0x44de;this[_0xfeb62a(0x188)][_0xfeb62a(0x220)][_0xfeb62a(0x119)](_0x59ece1(0x1))[_0xfeb62a(0x3e0)](async _0x2fcf63=>{const _0x40c2cf=_0xfeb62a;_0x53e659(await this[_0x40c2cf(0x28f)](_0x2fcf63===fe[_0x40c2cf(0x3c2)]));});});}[_0x1e1deb(0x300)](){const _0x4e1227=_0x1e1deb,_0x2302c8=this[_0x4e1227(0x370)];return{'onStateChange':(_0x3192e2,_0x536819)=>{const _0x1769a4=_0x4e1227;if(_0x3192e2!==this[_0x1769a4(0x195)])throw new Error(_0x1769a4(0x1b0)+_0x3192e2[_0x1769a4(0x356)]+_0x1769a4(0x315)+_0x536819[_0x1769a4(0x356)]+'\x0aCurrent:\x20'+this[_0x1769a4(0x195)]['status']);this[_0x1769a4(0x330)](_0x536819);},'onSendChangeset':_0x47aedd=>{const _0x4dadb6=_0x4e1227,_0x47f3a6={'eventID':_0x1c415b['SUBMIT_CHANGESET'],'data':{'unitID':_0x47aedd['unitID'],'unitType':this[_0x4dadb6(0x33f)],'changeset':_0x47aedd,'memberID':this[_0x4dadb6(0x188)][_0x4dadb6(0x3be)]()}};this[_0x4dadb6(0x188)][_0x4dadb6(0x409)](_0x47f3a6,this[_0x4dadb6(0x370)]);},'onMissingChangesets':({from:_0x11028d,to:_0x201bec})=>{const _0x344473=_0x4e1227;this[_0x344473(0x12a)]['debug'](_0x344473(0x20f),_0x344473(0x415)+_0x11028d+'\x20to\x20'+_0x201bec);const _0x24850b={'eventID':_0x1c415b[_0x344473(0x15e)],'data':{'unitID':_0x2302c8,'unitType':this[_0x344473(0x33f)],'from':_0x11028d,'to':_0x201bec}};this['_session'][_0x344473(0x409)](_0x24850b,this[_0x344473(0x370)]);}};}async[_0x1e1deb(0x28f)](_0x34fbea){const _0x2e6196=_0x1e1deb;var _0x2418b8,_0x1317bc;const _0x5d3816=await this[_0x2e6196(0x1f2)][_0x2e6196(0x329)](this[_0x2e6196(0x370)]),_0x46e058=(_0x2418b8=_0x5d3816==null?void 0x0:_0x5d3816['mutations'])!=null?_0x2418b8:[],_0x2fc0a4=(_0x1317bc=_0x5d3816==null?void 0x0:_0x5d3816[_0x2e6196(0x22e)])!=null?_0x1317bc:null,_0x629462=this[_0x2e6196(0x370)];try{this[_0x2e6196(0x16e)](_0x2fc0a4,_0x46e058);}catch(_0x1a1243){this[_0x2e6196(0x12a)][_0x2e6196(0x1f8)](_0x1a1243);}const _0x2dc677=this[_0x2e6196(0x300)]();if(_0x34fbea){const _0x3ad1f0=Us(this[_0x2e6196(0x432)],_0x629462,this[_0x2e6196(0x33f)],_0x2fc0a4,_0x46e058,_0x2dc677);return _0x3ad1f0 instanceof G?_0x3ad1f0[_0x2e6196(0x198)]():(_0x3ad1f0 instanceof Y||_0x3ad1f0 instanceof q)&&_0x3ad1f0['resend'](),_0x3ad1f0;}return this['_injector'][_0x2e6196(0x116)](Q,_0x629462,this['_type'],_0x2fc0a4,_0x46e058,_0x2dc677);}[_0x1e1deb(0x16e)](_0x346910,_0xce41be){const _0x44e2c8=_0x1e1deb;var _0x6c8128,_0x20cec4;const _0x44723e=this['_compressMutationService'][_0x44e2c8(0x3c1)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x44e2c8(0x3c1)]['getInterceptPoints']()[_0x44e2c8(0x1b3)]);(_0x6c8128=_0x44723e((_0x346910==null?void 0x0:_0x346910[_0x44e2c8(0x357)])||[],null))==null||_0x6c8128[_0x44e2c8(0x23e)](_0x13267d=>this[_0x44e2c8(0x1fb)]['executeCommand'](_0x13267d['id'],_0x13267d[_0x44e2c8(0x42b)])),(_0x20cec4=_0x44723e(_0xce41be||[],null))==null||_0x20cec4[_0x44e2c8(0x23e)](_0x35af36=>this[_0x44e2c8(0x1fb)]['executeCommand'](_0x35af36['id'],_0x35af36[_0x44e2c8(0x42b)]));}};Ze=st([p(0x3,_0x441fe2(_0x9c5d64)),p(0x4,_0x441fe2(D)),p(0x5,_0x441fe2(_0x4ef08c)),p(0x6,_0x441fe2(_0x2cfe85)),p(0x7,_0x441fe2(_0xaeae41)),p(0x8,_0x5f4df3),p(0x9,_0x9845f),p(0xa,_0x49507b),p(0xb,_0x3660f2),p(0xc,_0x16cd37(tt))],Ze);let It=class extends Ze{constructor(_0x359404,_0x56e96b,_0x30c039,_0x26c5bb,_0x1c93d5,_0x118725,_0x579c05,_0x236d9a,_0x43f6cf,_0x2c7ec4,_0x196a6d,_0x5b14db,_0x187016,_0x35b023,_0x1a2ce6,_0x529075,_0x3701ed){const _0x51004e=_0x1e1deb;super(_0x359404,_0x56e96b,_0x30c039,_0x26c5bb,_0x1c93d5,_0x118725,_0x579c05,_0x236d9a,_0x187016,_0x35b023,_0x1a2ce6,_0x529075,_0x3701ed),this[_0x51004e(0x370)]=_0x359404,this['type']=_0x56e96b,this['session']=_0x30c039,this['_docStateChangeManagerService']=_0x43f6cf,this[_0x51004e(0x185)]=_0x2c7ec4,this[_0x51004e(0x29e)]=_0x196a6d,this['_docSyncEditingCollabCursorService']=_0x5b14db;}[_0x1e1deb(0x300)](){const _0x2f6400=_0x1e1deb,_0x4d6a89=super[_0x2f6400(0x300)]();return _0x4d6a89[_0x2f6400(0x2d2)]=_0x520a34=>this[_0x2f6400(0x185)][_0x2f6400(0x218)](_0x520a34),_0x4d6a89[_0x2f6400(0xfe)]=_0x13146d=>this[_0x2f6400(0x29e)][_0x2f6400(0x137)](_0x13146d),_0x4d6a89[_0x2f6400(0x3ff)]=_0x172914=>this[_0x2f6400(0x29c)][_0x2f6400(0x40e)](_0x172914),_0x4d6a89[_0x2f6400(0x1c5)]=_0xa4dfa7=>this[_0x2f6400(0x185)][_0x2f6400(0x3f9)](_0xa4dfa7),_0x4d6a89;}async[_0x1e1deb(0x37a)](){const _0x228b58=_0x1e1deb,_0x1be8b0=await super[_0x228b58(0x37a)]();return this[_0x228b58(0x32e)](this[_0x228b58(0x1fb)][_0x228b58(0x250)]((_0x53e24f,_0x24a276)=>{const _0x3fbb43=_0x228b58;if(_0x53e24f[_0x3fbb43(0x2cc)]!==_0x5cd9c4[_0x3fbb43(0x173)]||_0x24a276!=null&&_0x24a276[_0x3fbb43(0x292)]||_0x24a276!=null&&_0x24a276[_0x3fbb43(0x270)])return;const _0x2359a3=_0x53e24f[_0x3fbb43(0x42b)];if((_0x2359a3==null?void 0x0:_0x2359a3['unitId'])!==this[_0x3fbb43(0x370)])return;let _0x343ffe=_0x53e24f;if(_0x343ffe['id']===_0x54abea['id']){const _0x3fd6d3=_0x343ffe[_0x3fbb43(0x42b)];_0x343ffe={'id':_0x54abea['id'],'type':_0x5cd9c4[_0x3fbb43(0x173)],'params':{'unitId':_0x3fd6d3[_0x3fbb43(0x439)],'actions':_0x3fd6d3['actions'],'textRanges':null}};}const _0x1cbdf3=this[_0x3fbb43(0x312)][_0x3fbb43(0x3c1)]['fetchThroughInterceptors'](this[_0x3fbb43(0x312)][_0x3fbb43(0x3c1)][_0x3fbb43(0x3d2)]()[_0x3fbb43(0x344)])([_0x343ffe],null)||[_0x343ffe];this[_0x3fbb43(0x2f3)](_0x1cbdf3[0x0]);})),_0x1be8b0;}};It=st([p(0x3,_0x441fe2(_0x9c5d64)),p(0x4,_0x441fe2(D)),p(0x5,_0x441fe2(_0x4ef08c)),p(0x6,_0x441fe2(_0x2cfe85)),p(0x7,_0x441fe2(_0xaeae41)),p(0x8,_0x441fe2(_0x30c46a)),p(0x9,_0x441fe2(Je)),p(0xa,_0x441fe2(ze)),p(0xb,_0x441fe2(jt)),p(0xc,_0x5f4df3),p(0xd,_0x9845f),p(0xe,_0x49507b),p(0xf,_0x3660f2),p(0x10,_0x16cd37(tt))],It);let Et=class extends Ze{constructor(_0xa19b1c,_0x522f30,_0x21b901,_0x7db238,_0x343306,_0x241c5f,_0x3a4710,_0x5743a6,_0x3e4f07,_0x4e3047,_0x2a8dcd,_0x5a5792,_0x2ea1a3,_0x4f87c3){const _0x2258a9=_0x1e1deb;super(_0xa19b1c,_0x522f30,_0x21b901,_0x7db238,_0x343306,_0x241c5f,_0x3a4710,_0x5743a6,_0x4e3047,_0x2a8dcd,_0x5a5792,_0x2ea1a3,_0x4f87c3),this[_0x2258a9(0x370)]=_0xa19b1c,this['type']=_0x522f30,this[_0x2258a9(0x11e)]=_0x21b901,this[_0x2258a9(0x174)]=_0x3e4f07;}[_0x1e1deb(0x300)](){const _0x310f9d=_0x1e1deb,_0x2ef298=super[_0x310f9d(0x300)]();return _0x2ef298[_0x310f9d(0xfe)]=_0x418d3f=>this[_0x310f9d(0x174)]['transformSelections'](_0x418d3f),_0x2ef298;}async['_init'](){const _0x40e195=_0x1e1deb,_0x120c0f=await super['_init']();return this[_0x40e195(0x32e)](this[_0x40e195(0x1fb)][_0x40e195(0x250)]((_0x1cb520,_0x3785e0)=>{const _0x39b850=_0x40e195;if(_0x1cb520[_0x39b850(0x2cc)]!==_0x5cd9c4[_0x39b850(0x173)]||_0x3785e0!=null&&_0x3785e0['fromCollab']||_0x3785e0!=null&&_0x3785e0[_0x39b850(0x270)])return;const _0x323ac4=_0x1cb520[_0x39b850(0x42b)];if((_0x323ac4==null?void 0x0:_0x323ac4[_0x39b850(0x439)])!==this[_0x39b850(0x370)])return;const _0x37ba9e=_0x1cb520,_0x48510b=this[_0x39b850(0x312)][_0x39b850(0x3c1)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x37ba9e],null)||[_0x37ba9e];this[_0x39b850(0x2f3)](_0x48510b[0x0]);})),_0x120c0f;}};Et=st([p(0x3,_0x441fe2(_0x9c5d64)),p(0x4,_0x441fe2(D)),p(0x5,_0x441fe2(_0x4ef08c)),p(0x6,_0x441fe2(_0x2cfe85)),p(0x7,_0x441fe2(_0xaeae41)),p(0x8,_0x441fe2(qe)),p(0x9,_0x5f4df3),p(0xa,_0x9845f),p(0xb,_0x49507b),p(0xc,_0x3660f2),p(0xd,_0x16cd37(tt))],Et);const os=[_0x1e1deb(0x38b),'jiqing500',_0x1e1deb(0x34a),_0x1e1deb(0x369),_0x1e1deb(0x275),_0x1e1deb(0x2c4)];class xt extends _0xc94eea{constructor(){const _0x2e59f0=_0x1e1deb;super(...arguments),l(this,_0x2e59f0(0x36b),new Map()),l(this,_0x2e59f0(0x28a),0x0);}[_0x1e1deb(0x3bf)](_0x470b83){const _0x25a40e=_0x1e1deb;if(this[_0x25a40e(0x36b)]['has'](_0x470b83))return this[_0x25a40e(0x36b)][_0x25a40e(0x10a)](_0x470b83);const _0x5cb892=os[this[_0x25a40e(0x28a)]];return this[_0x25a40e(0x28a)]=(this[_0x25a40e(0x28a)]+0x1)%os[_0x25a40e(0x426)],this[_0x25a40e(0x36b)]['set'](_0x470b83,_0x5cb892),_0x5cb892;}}var rr=Object['defineProperty'],or=Object[_0x1e1deb(0x32c)],ar=(_0x5c0c52,_0x1c47c7,_0x203b27,_0x438e61)=>{const _0x1e5e13=_0x1e1deb;for(var _0x2e701a=_0x438e61>0x1?void 0x0:_0x438e61?or(_0x1c47c7,_0x203b27):_0x1c47c7,_0x20d5a3=_0x5c0c52[_0x1e5e13(0x426)]-0x1,_0x577512;_0x20d5a3>=0x0;_0x20d5a3--)(_0x577512=_0x5c0c52[_0x20d5a3])&&(_0x2e701a=(_0x438e61?_0x577512(_0x1c47c7,_0x203b27,_0x2e701a):_0x577512(_0x2e701a))||_0x2e701a);return _0x438e61&&_0x2e701a&&rr(_0x1c47c7,_0x203b27,_0x2e701a),_0x2e701a;},_e=(_0x54e9fe,_0x19c3c3)=>(_0x3886e7,_0x27df62)=>_0x19c3c3(_0x3886e7,_0x27df62,_0x54e9fe);const cr=0x12c,hr=0x64,lr=()=>{let _0x4950f8=[],_0x30a567=!0x1;return _0x5c54f6=>{const _0x4cd4d5=_0x44de;_0x4950f8[_0x4cd4d5(0x39d)](_0x5c54f6),_0x30a567||(_0x30a567=!0x0,setTimeout(()=>{const _0x165b1b=_0x4cd4d5;_0x4950f8[_0x165b1b(0x23e)](_0x4082dc=>_0x4082dc()),_0x4950f8=[],_0x30a567=!0x1;}));};};let Ct=class extends _0x5b9cf1{constructor(_0x4e9f03,_0x511d86,_0x1b7a28,_0x2032a7,_0x3d55da,_0x1ab1f8,_0x18bdae,_0x9d287){const _0x557274=_0x1e1deb;super(),l(this,'_online',!0x1),l(this,_0x557274(0x37a),!0x1),l(this,_0x557274(0x42f),new _0x16d05d(new Map())),l(this,_0x557274(0x430),this[_0x557274(0x42f)][_0x557274(0x14e)]()),l(this,_0x557274(0x1cd),new _0x16d05d([])),l(this,_0x557274(0x421),this[_0x557274(0x1cd)][_0x557274(0x119)](_0x380776(cr))),l(this,_0x557274(0x22d),_0x21f8bc((_0x5cf6c9,_0x1f1997)=>{const _0x5b1bc8=_0x557274,_0x577a47={'eventID':_0x1c415b[_0x5b1bc8(0x21d)],'data':{'unitID':this[_0x5b1bc8(0x370)],'memberID':this['_session'][_0x5b1bc8(0x3be)](),'selection':_0x419817(_0x5cf6c9,_0x1f1997['range'])}};this[_0x5b1bc8(0x188)][_0x5b1bc8(0x409)](_0x577a47,this[_0x5b1bc8(0x370)]);},hr)),(this['unitID']=_0x4e9f03,this[_0x557274(0x188)]=_0x511d86,this[_0x557274(0x432)]=_0x1b7a28,this[_0x557274(0x231)]=_0x2032a7,this[_0x557274(0x13e)]=_0x3d55da,this['_univerInstanceService']=_0x1ab1f8,this['_commandService']=_0x18bdae,this['_refRangeService']=_0x9d287);}get[_0x1e1deb(0x30d)](){const _0x2e23c9=_0x1e1deb;return this['_cursorInfo$'][_0x2e23c9(0x107)]();}get[_0x1e1deb(0x25d)](){const _0x4a8f9b=_0x1e1deb;return this[_0x4a8f9b(0x1cd)][_0x4a8f9b(0x107)]();}[_0x1e1deb(0x1de)](){const _0x3913b5=_0x1e1deb;super[_0x3913b5(0x1de)](),this[_0x3913b5(0x42f)]['next'](new Map()),this['_cursorInfo$']['complete'](),this[_0x3913b5(0x1cd)][_0x3913b5(0x3cd)]([]),this[_0x3913b5(0x1cd)][_0x3913b5(0x433)]();}['init'](){const _0x54d00e=_0x1e1deb;this[_0x54d00e(0x37a)]||(this['_init']=!0x0,this[_0x54d00e(0x188)][_0x54d00e(0x220)][_0x54d00e(0x119)](_0x3f75b0(this[_0x54d00e(0x413)]))[_0x54d00e(0x3e0)](_0x50e4f9=>{const _0x40111a=_0x54d00e;_0x50e4f9===fe[_0x40111a(0x3c2)]?this[_0x40111a(0x225)]():this[_0x40111a(0x437)]();}),this[_0x54d00e(0x188)][_0x54d00e(0x19f)]['pipe'](_0x3f75b0(this[_0x54d00e(0x413)]))[_0x54d00e(0x3e0)](_0x458fc1=>{const _0x57bc0b=_0x54d00e,_0xf77f0c=_0x458fc1[_0x57bc0b(0x2f8)];_0xf77f0c===_0x1c415b[_0x57bc0b(0x21d)]&&this[_0x57bc0b(0x352)](_0x458fc1),_0xf77f0c===_0x1c415b[_0x57bc0b(0x25e)]&&this[_0x57bc0b(0x2a2)](_0x458fc1);}),this[_0x54d00e(0x2e7)](),this[_0x54d00e(0x32e)](this[_0x54d00e(0x1fb)][_0x54d00e(0x250)](_0x26c1d9=>{const _0x51605b=_0x54d00e;if(this[_0x51605b(0x132)]&&_0x26c1d9['id']===_0x37d621['id']&&_0x26c1d9[_0x51605b(0x42b)][_0x51605b(0x439)]===this[_0x51605b(0x370)]){const _0x3da80b=_0x26c1d9[_0x51605b(0x42b)];this['_updateLocalCursor'](_0x3da80b[_0x51605b(0x3b0)],_0x3da80b['selections'][0x0]);}})));}[_0x1e1deb(0x352)](_0x38b9f7){const _0x2fe3b3=_0x1e1deb;var _0x4685b9,_0x42f28a;const {memberID:_0x5c9b22,selection:_0x5c34b2}=_0x38b9f7['data'],{sheetName:_0x1cd938,range:_0x22683a}=_0x370f5d(_0x5c34b2),_0x45ac40={'name':(_0x42f28a=(_0x4685b9=this[_0x2fe3b3(0x13e)]['getMember'](this[_0x2fe3b3(0x370)],_0x5c9b22))==null?void 0x0:_0x4685b9[_0x2fe3b3(0x10e)])!=null?_0x42f28a:_0x2fe3b3(0x28e),'range':this[_0x2fe3b3(0x1b8)](_0x1cd938,_0x22683a),'sheetID':_0x1cd938,'color':this[_0x2fe3b3(0x231)][_0x2fe3b3(0x3bf)](_0x5c9b22),'selection':_0x5c34b2},_0x716212=this[_0x2fe3b3(0x30d)];_0x716212[_0x2fe3b3(0x394)](_0x5c9b22,_0x45ac40),this[_0x2fe3b3(0x42f)]['next'](_0x716212);}[_0x1e1deb(0x2a2)](_0x14528c){const _0x3e7c05=_0x1e1deb,{memberID:_0xa3bdd9}=_0x14528c[_0x3e7c05(0x265)],_0x12f015=this['cursorInfo'];_0x12f015['delete'](_0xa3bdd9),this[_0x3e7c05(0x42f)][_0x3e7c05(0x3cd)](_0x12f015);}[_0x1e1deb(0x1b8)](_0x1f2a52,_0x3469ff){const _0x49c2f9=_0x1e1deb;var _0xe1d6ca,_0x75541b;const _0x4e7748=(_0x75541b=(_0xe1d6ca=this[_0x49c2f9(0x145)][_0x49c2f9(0x351)](this[_0x49c2f9(0x370)]))==null?void 0x0:_0xe1d6ca[_0x49c2f9(0x2ee)](_0x1f2a52))==null?void 0x0:_0x75541b['getMergeData']();return(_0x4e7748==null?void 0x0:_0x4e7748['find'](_0x211ddb=>_0xf02aa9[_0x49c2f9(0x1cf)](_0x211ddb,_0x3469ff)))||_0x3469ff;}['_onRefRangeChange'](){const _0x3a6dc4=_0x1e1deb,_0xe3fdf9=new _0x5b86e3(),_0x10d318=lr(),_0x4586b8=()=>{const _0x917949=_0x44de;_0xe3fdf9[_0x917949(0x1de)]();const _0xa7555a=(_0x4886af,_0x9d81cb,_0x3926e9,_0x445848)=>{const _0x5f323c=_0x917949;let _0x137562=[];switch(_0x4886af['id']){case _0x5d94fe[_0x5f323c(0x419)]:{_0x137562=_0x5f1e8b(_0x4886af,_0x445848);break;}case _0x5d94fe['DeleteRangeMoveUpCommandId']:{_0x137562=_0x31ef26(_0x4886af,_0x445848);break;}case _0x5d94fe[_0x5f323c(0x3f3)]:{_0x137562=_0x3fcda2(_0x4886af,_0x445848);break;}case _0x5d94fe[_0x5f323c(0x316)]:{_0x137562=_0x4c8313(_0x4886af,_0x445848);break;}case _0x5d94fe['InsertRangeMoveRightCommandId']:{_0x137562=_0x5abfa3(_0x4886af,_0x445848);break;}case _0x5d94fe['InsertRowCommandId']:{_0x137562=_0x4865ab(_0x4886af,_0x445848);break;}case _0x5d94fe[_0x5f323c(0x3c9)]:{_0x137562=_0x158655(_0x4886af,_0x445848);break;}case _0x5d94fe[_0x5f323c(0x404)]:{_0x137562=_0x1cf9bc(_0x4886af,_0x445848);break;}case _0x5d94fe[_0x5f323c(0x26c)]:{_0x137562=_0x361c3a(_0x4886af,_0x445848);break;}}const _0x57be6a=_0x1df086(_0x137562,_0x445848),_0x38727c=this[_0x5f323c(0x30d)]['get'](_0x9d81cb);if(_0x38727c&&_0x57be6a){const _0x61ee33={..._0x38727c,'range':_0x57be6a};this['cursorInfo'][_0x5f323c(0x394)](_0x9d81cb,_0x61ee33),_0x10d318(()=>{const _0x1c8741=_0x5f323c,_0x269d9c=this[_0x1c8741(0x2b8)][_0x1c8741(0x1d6)](_0x57be6a,_0x3411b1=>(_0x269d9c['dispose'](),_0xa7555a(_0x3411b1,_0x9d81cb,_0x3926e9,_0x57be6a)));_0xe3fdf9['add'](_0x269d9c);});}return{'redos':[],'undos':[]};};this[_0x917949(0x30d)][_0x917949(0x23e)]((_0x4d88ef,_0x26d583)=>{const _0x377cb4=_0x917949,{range:_0x45913e,sheetID:_0x10fc86}=_0x4d88ef,_0x2a4792=this[_0x377cb4(0x2b8)]['registerRefRange'](_0x45913e,_0x429f4d=>(_0x2a4792[_0x377cb4(0x1de)](),_0xa7555a(_0x429f4d,_0x26d583,_0x10fc86,_0x45913e)));_0xe3fdf9[_0x377cb4(0x11a)](_0x2a4792);});};this['disposeWithMe'](_0x4259e5(this[_0x3a6dc4(0x42f)][_0x3a6dc4(0x3e0)](()=>{_0x4586b8();})));}[_0x1e1deb(0x225)](){const _0x14af37=_0x1e1deb;var _0x4331d6,_0x2c27ff;if(this['_online']=!0x0,((_0x4331d6=this['_univerInstanceService'][_0x14af37(0x228)]())==null?void 0x0:_0x4331d6['getUnitId']())!==this[_0x14af37(0x370)])return;const _0x29ff7e=(_0x2c27ff=this['_injector'][_0x14af37(0x10a)](_0x402922)[_0x14af37(0x310)]())==null?void 0x0:_0x2c27ff[0x0],_0x177507=this[_0x14af37(0x145)]['getCurrentUnitForType'](_0x37298b[_0x14af37(0x3d0)])['getActiveSheet']();_0x29ff7e&&_0x177507&&this['_updateLocalCursor'](_0x177507[_0x14af37(0x2c2)](),_0x29ff7e);}[_0x1e1deb(0x437)](){const _0x4afecc=_0x1e1deb;this[_0x4afecc(0x132)]=!0x1;}};Ct=ar([_e(0x2,_0x441fe2(_0x9c5d64)),_e(0x3,_0x441fe2(xt)),_e(0x4,_0x441fe2(ne)),_e(0x5,_0x4902a5),_e(0x6,_0x9845f),_e(0x7,_0x441fe2(_0x298890))],Ct);var _r=Object[_0x1e1deb(0x158)],ur=Object[_0x1e1deb(0x32c)],dr=(_0x2e92fb,_0x554deb,_0xcbae60,_0x5611b6)=>{const _0x464353=_0x1e1deb;for(var _0x1d7cd3=_0x5611b6>0x1?void 0x0:_0x5611b6?ur(_0x554deb,_0xcbae60):_0x554deb,_0x48a9b2=_0x2e92fb[_0x464353(0x426)]-0x1,_0x5ea5c1;_0x48a9b2>=0x0;_0x48a9b2--)(_0x5ea5c1=_0x2e92fb[_0x48a9b2])&&(_0x1d7cd3=(_0x5611b6?_0x5ea5c1(_0x554deb,_0xcbae60,_0x1d7cd3):_0x5ea5c1(_0x1d7cd3))||_0x1d7cd3);return _0x5611b6&&_0x1d7cd3&&_r(_0x554deb,_0xcbae60,_0x1d7cd3),_0x1d7cd3;},te=(_0x47ca82,_0x6dbd99)=>(_0xe49b80,_0x1ee1bd)=>_0x6dbd99(_0xe49b80,_0x1ee1bd,_0x47ca82);const mr=0x12c,fr=0x64;let bt=class extends _0x5b9cf1{constructor(_0xbcce6d,_0x202292,_0x4b679,_0x47b55d,_0x1f1b4d,_0x37ec6f,_0x23652a,_0x52f160,_0x279095){const _0x179e4c=_0x1e1deb;super(),l(this,_0x179e4c(0x132),!0x1),l(this,_0x179e4c(0x37a),!0x1),l(this,_0x179e4c(0x42f),new _0x16d05d(new Map())),l(this,_0x179e4c(0x430),this[_0x179e4c(0x42f)][_0x179e4c(0x14e)]()),l(this,'_roomMembers$',new _0x16d05d([])),l(this,_0x179e4c(0x421),this['_roomMembers$'][_0x179e4c(0x119)](_0x380776(mr))),l(this,'_updateLocalCursor',_0x21f8bc(_0xe2dfd4=>{const _0x4d4f7d=_0x179e4c,_0x4ec18c={'eventID':_0x1c415b[_0x4d4f7d(0x21d)],'data':{'unitID':this[_0x4d4f7d(0x370)],'memberID':this[_0x4d4f7d(0x188)][_0x4d4f7d(0x3be)](),'selection':ys(_0xe2dfd4)}};this[_0x4d4f7d(0x188)][_0x4d4f7d(0x409)](_0x4ec18c,this[_0x4d4f7d(0x370)]);},fr)),(this[_0x179e4c(0x370)]=_0xbcce6d,this['_session']=_0x202292,this[_0x179e4c(0x432)]=_0x4b679,this[_0x179e4c(0x231)]=_0x47b55d,this['_memberService']=_0x1f1b4d,this[_0x179e4c(0x2a4)]=_0x37ec6f,this[_0x179e4c(0x258)]=_0x23652a,this[_0x179e4c(0x145)]=_0x52f160,this[_0x179e4c(0x1fb)]=_0x279095);}get[_0x1e1deb(0x30d)](){const _0x427cc7=_0x1e1deb;return this['_cursorInfo$'][_0x427cc7(0x107)]();}get[_0x1e1deb(0x25d)](){const _0x27a25f=_0x1e1deb;return this['_roomMembers$'][_0x27a25f(0x107)]();}[_0x1e1deb(0x1de)](){const _0x406897=_0x1e1deb;super[_0x406897(0x1de)](),this[_0x406897(0x42f)][_0x406897(0x3cd)](new Map()),this[_0x406897(0x42f)][_0x406897(0x433)](),this[_0x406897(0x1cd)][_0x406897(0x3cd)]([]),this[_0x406897(0x1cd)]['complete']();}[_0x1e1deb(0x3db)](){const _0x583c2b=_0x1e1deb;this[_0x583c2b(0x37a)]||(this['_init']=!0x0,this['_session'][_0x583c2b(0x220)][_0x583c2b(0x119)](_0x3f75b0(this[_0x583c2b(0x413)]))[_0x583c2b(0x3e0)](_0x28f46a=>{const _0x582311=_0x583c2b;_0x28f46a===fe['ONLINE']?this[_0x582311(0x225)]():this['_toggleOffline']();}),this[_0x583c2b(0x188)][_0x583c2b(0x19f)][_0x583c2b(0x119)](_0x3f75b0(this[_0x583c2b(0x413)]))[_0x583c2b(0x3e0)](_0x376baa=>{const _0x285be2=_0x583c2b,_0x12639f=_0x376baa['eventID'];_0x12639f===_0x1c415b['UPDATE_CURSOR']&&this[_0x285be2(0x352)](_0x376baa),_0x12639f===_0x1c415b[_0x285be2(0x25e)]&&this[_0x285be2(0x2a2)](_0x376baa);}),this['disposeWithMe'](this['_commandService'][_0x583c2b(0x250)](_0x2f0425=>{const _0x450240=_0x583c2b,_0x1a1e9c=_0x2f0425[_0x450240(0x42b)];_0x1a1e9c!=null&&this[_0x450240(0x132)]&&_0x2f0425['id']===_0x1ed2cb['id']&&_0x1a1e9c[_0x450240(0x439)]===this[_0x450240(0x370)]&&_0x1a1e9c[_0x450240(0x348)]===!0x1&&this[_0x450240(0x22d)](_0x1a1e9c[_0x450240(0x345)]);})),this['_syncEditingCollabCursorService'][_0x583c2b(0x138)][_0x583c2b(0x119)](_0x3f75b0(this[_0x583c2b(0x413)]))[_0x583c2b(0x3e0)](_0x3c56ea=>{const _0x5a9b06=_0x583c2b;if((_0x3c56ea==null?void 0x0:_0x3c56ea[_0x5a9b06(0x370)])!==this['unitID'])return;const _0x1ceb45={'eventID':_0x1c415b['UPDATE_CURSOR'],'data':_0x3c56ea};this[_0x5a9b06(0x352)](_0x1ceb45);}),this['disposeWithMe'](this[_0x583c2b(0x1fb)][_0x583c2b(0x250)](_0x172710=>{const _0x5c2352=_0x583c2b;if(_0x172710[_0x5c2352(0x42b)]==null)return;const _0x3c6752=_0x172710[_0x5c2352(0x42b)];if(_0x172710['id']!==_0x54abea['id']||_0x3c6752[_0x5c2352(0x439)]!==this[_0x5c2352(0x370)])return;const _0x2eee03={'id':_0x5c2352(0x412),'params':_0x3c6752},_0x505cef=this[_0x5c2352(0x30d)];for(const [_0x44c87c,_0xcc40dd]of _0x505cef){const _0x5866b8={'id':_0x5c2352(0x412),'params':{'unitId':this[_0x5c2352(0x370)],'actions':null,'textRanges':_0xcc40dd[_0x5c2352(0x345)]}},_0x292b95=this[_0x5c2352(0x258)][_0x5c2352(0x2d3)](_0x2eee03,_0x5866b8,!0x1);if(_0x1d42ec(_0x292b95))throw _0x292b95[_0x5c2352(0x1f8)];_0x505cef[_0x5c2352(0x394)](_0x44c87c,{..._0xcc40dd,'ranges':_0x292b95[_0x5c2352(0x2fa)][_0x5c2352(0x42b)][_0x5c2352(0x203)]});}queueMicrotask(()=>{const _0x5a7bd1=_0x5c2352;this[_0x5a7bd1(0x42f)]['next'](_0x505cef);});})));}[_0x1e1deb(0x352)](_0x5c8291){const _0x367221=_0x1e1deb;var _0x19a125,_0x4a45d;const {memberID:_0x4ae349,selection:_0x5a8a5c}=_0x5c8291['data'],_0x44d5b8=Kn(_0x5a8a5c),_0x3ed819=(_0x4a45d=(_0x19a125=this['_memberService'][_0x367221(0x3a0)](this[_0x367221(0x370)],_0x4ae349))==null?void 0x0:_0x19a125[_0x367221(0x10e)])!=null?_0x4a45d:_0x367221(0x28e),_0x4b500a={'color':this[_0x367221(0x231)][_0x367221(0x3bf)](_0x4ae349),'name':_0x3ed819,'ranges':_0x44d5b8},_0x26b593=this[_0x367221(0x30d)];_0x26b593['set'](_0x4ae349,_0x4b500a),this[_0x367221(0x42f)][_0x367221(0x3cd)](_0x26b593);}[_0x1e1deb(0x2a2)](_0x3a0293){const _0x1d1916=_0x1e1deb,{memberID:_0x129ef2}=_0x3a0293[_0x1d1916(0x265)],_0x48d62d=this[_0x1d1916(0x30d)];_0x48d62d[_0x1d1916(0x36f)](_0x129ef2),this[_0x1d1916(0x42f)][_0x1d1916(0x3cd)](_0x48d62d);}[_0x1e1deb(0x225)](){const _0x18f2e0=_0x1e1deb;var _0x21820c;if(this['_online']=!0x0,((_0x21820c=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x21820c[_0x18f2e0(0x3cf)]())!==this['unitID'])return;const _0xced87=this['_injector']['get'](_0x490704)[_0x18f2e0(0x31f)](),_0x3c36b0=_0xced87==null?void 0x0:_0xced87['map'](_0x14d063);Array[_0x18f2e0(0x117)](_0x3c36b0)&&_0x3c36b0['length']>0x0&&this[_0x18f2e0(0x22d)](_0x3c36b0);}[_0x1e1deb(0x437)](){const _0x52823f=_0x1e1deb;this[_0x52823f(0x132)]=!0x1;}};bt=dr([te(0x2,_0x441fe2(_0x9c5d64)),te(0x3,_0x441fe2(xt)),te(0x4,_0x441fe2(ne)),te(0x5,_0x441fe2(jt)),te(0x6,_0x1e0f5c),te(0x7,_0x4902a5),te(0x8,_0x9845f)],bt);var gr=Object[_0x1e1deb(0x158)],Sr=Object[_0x1e1deb(0x32c)],pr=(_0x2fd3c3,_0x31cc47,_0x130d55,_0x5d098d)=>{const _0x9b0a8b=_0x1e1deb;for(var _0x2f9bb8=_0x5d098d>0x1?void 0x0:_0x5d098d?Sr(_0x31cc47,_0x130d55):_0x31cc47,_0x11fc9a=_0x2fd3c3[_0x9b0a8b(0x426)]-0x1,_0x1f5615;_0x11fc9a>=0x0;_0x11fc9a--)(_0x1f5615=_0x2fd3c3[_0x11fc9a])&&(_0x2f9bb8=(_0x5d098d?_0x1f5615(_0x31cc47,_0x130d55,_0x2f9bb8):_0x1f5615(_0x2f9bb8))||_0x2f9bb8);return _0x5d098d&&_0x2f9bb8&&gr(_0x31cc47,_0x130d55,_0x2f9bb8),_0x2f9bb8;},ct=(_0x50b993,_0xe197fb)=>(_0x191dd0,_0x3b0701)=>_0xe197fb(_0x191dd0,_0x3b0701,_0x50b993);let ge=class extends _0x5b9cf1{constructor(_0x11d64d,_0x517c96,_0x3bf14c){const _0x40646b=_0x1e1deb;super(),l(this,'_entities',new Map()),l(this,_0x40646b(0x325),new _0x365a49()),(this[_0x40646b(0x145)]=_0x11d64d,this[_0x40646b(0x432)]=_0x517c96,this[_0x40646b(0x341)]=_0x3bf14c,this[_0x40646b(0x37a)]());}[_0x1e1deb(0x1de)](){const _0x203e4c=_0x1e1deb;super[_0x203e4c(0x1de)](),this[_0x203e4c(0x325)][_0x203e4c(0x433)](),this[_0x203e4c(0x272)][_0x203e4c(0x23e)](_0x31f7da=>_0x31f7da['dispose']());}[_0x1e1deb(0x19c)](_0x197472){const _0x875ea6=_0x1e1deb;return this[_0x875ea6(0x272)][_0x875ea6(0x1e3)](_0x197472)?this[_0x875ea6(0x272)][_0x875ea6(0x10a)](_0x197472)[_0x875ea6(0x430)]:this[_0x875ea6(0x325)][_0x875ea6(0x119)](_0x4543ab(_0x573f37=>_0x573f37[_0x875ea6(0x370)]===_0x197472),_0xd6054c(_0x3aa0b9=>_0x3aa0b9[_0x875ea6(0x430)]));}[_0x1e1deb(0x37a)](){const _0x4f3a8b=_0x1e1deb;this[_0x4f3a8b(0x145)][_0x4f3a8b(0x405)](_0x37298b['UNIVER_SHEET'])[_0x4f3a8b(0x119)](_0x3f75b0(this['dispose$']))[_0x4f3a8b(0x3e0)](async _0x496678=>{const _0x5701d0=_0x4f3a8b,_0x4ea4ff=_0x496678[_0x5701d0(0x3cf)](),_0x4941fa=await this['_startSheetCollabCursor'](_0x4ea4ff);this[_0x5701d0(0x325)]['next'](_0x4941fa),this[_0x5701d0(0x272)]['set'](_0x4ea4ff,_0x4941fa);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x37298b[_0x4f3a8b(0x1c7)])[_0x4f3a8b(0x119)](_0x3f75b0(this[_0x4f3a8b(0x413)]))[_0x4f3a8b(0x119)](_0x4543ab(_0x396c76=>!_0x396c76[_0x4f3a8b(0x3cf)]()['startsWith']('__')))[_0x4f3a8b(0x3e0)](async _0x212673=>{const _0x378346=_0x4f3a8b,_0x2c4194=_0x212673[_0x378346(0x3cf)](),_0x24b8f1=await this[_0x378346(0x35b)](_0x2c4194);this[_0x378346(0x325)]['next'](_0x24b8f1),this[_0x378346(0x272)][_0x378346(0x394)](_0x2c4194,_0x24b8f1);}),_0x5726e7(this[_0x4f3a8b(0x145)][_0x4f3a8b(0x363)](_0x37298b['UNIVER_DOC']),this[_0x4f3a8b(0x145)][_0x4f3a8b(0x363)](_0x37298b[_0x4f3a8b(0x3d0)]))[_0x4f3a8b(0x119)](_0x3f75b0(this[_0x4f3a8b(0x413)]))[_0x4f3a8b(0x3e0)](_0x3e5738=>{const _0x4b44b0=_0x4f3a8b,_0xebe98c=_0x3e5738[_0x4b44b0(0x3cf)](),_0x4848d3=this[_0x4b44b0(0x272)]['get'](_0xebe98c);_0x4848d3&&(_0x4848d3[_0x4b44b0(0x1de)](),this[_0x4b44b0(0x272)]['delete'](_0xebe98c));});}async[_0x1e1deb(0x3c8)](_0x4c3944){const _0xcd6beb=_0x1e1deb,_0x23e121=await this[_0xcd6beb(0x341)]['requireSession'](_0x4c3944),_0x390b84=this[_0xcd6beb(0x432)][_0xcd6beb(0x116)](Ct,_0x4c3944,_0x23e121);return _0x390b84[_0xcd6beb(0x3db)](),_0x390b84;}async[_0x1e1deb(0x35b)](_0x2108f2){const _0x28fb16=_0x1e1deb,_0x562c77=await this['_collabSessionService'][_0x28fb16(0x2c6)](_0x2108f2),_0x587c69=this[_0x28fb16(0x432)]['createInstance'](bt,_0x2108f2,_0x562c77);return _0x587c69[_0x28fb16(0x3db)](),_0x587c69;}};ge=pr([_0x3e0133(_0x1781f1[_0x1e1deb(0x3bd)],ge),ct(0x0,_0x4902a5),ct(0x1,_0x441fe2(_0x9c5d64)),ct(0x2,_0x441fe2(pe))],ge);const Ue=0x14,as=0xc8,ht=0x4,vr=0x5;function Ir(_0x4fae90,_0x55c097){const _0x332056=_0x1e1deb;let {radius:_0x18a8eb,width:_0xcdf00e,height:_0xec2079}=_0x55c097;_0x18a8eb=_0x18a8eb!=null?_0x18a8eb:0x0,_0xcdf00e=_0xcdf00e!=null?_0xcdf00e:0x1e,_0xec2079=_0xec2079!=null?_0xec2079:0x1e;let _0x157922=0x0,_0x2974ce=0x0,_0x145dc8=0x0;_0x157922=_0x2974ce=_0x145dc8=Math[_0x332056(0x414)](_0x18a8eb,_0xcdf00e/0x2,_0xec2079/0x2),_0x4fae90[_0x332056(0x36d)](),_0x4fae90['moveTo'](_0x157922,0x0),_0x4fae90['lineTo'](_0xcdf00e-_0x2974ce,0x0),_0x4fae90['arc'](_0xcdf00e-_0x2974ce,_0x2974ce,_0x2974ce,Math['PI']*0x3/0x2,0x0,!0x1),_0x4fae90['lineTo'](_0xcdf00e,_0xec2079-_0x145dc8),_0x4fae90[_0x332056(0x2ae)](_0xcdf00e-_0x145dc8,_0xec2079-_0x145dc8,_0x145dc8,0x0,Math['PI']/0x2,!0x1),_0x4fae90[_0x332056(0x299)](0x0,_0xec2079),_0x4fae90['lineTo'](0x0,_0x157922),_0x4fae90[_0x332056(0x2ae)](_0x157922,_0x157922,_0x157922,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4fae90[_0x332056(0x27e)](),_0x55c097[_0x332056(0x248)]&&(_0x4fae90[_0x332056(0x2e8)](),_0x4fae90['fillStyle']=_0x55c097[_0x332056(0x248)],_0x55c097[_0x332056(0x112)]===_0x332056(0x3cc)?_0x4fae90[_0x332056(0x248)](_0x332056(0x3cc)):_0x4fae90[_0x332056(0x248)](),_0x4fae90['restore']());}class it extends _0x26e4f3{constructor(_0x778f19,_0x355f1c){const _0x51c1d6=_0x1e1deb;super(_0x778f19,_0x355f1c),l(this,_0x51c1d6(0x39f)),l(this,_0x51c1d6(0x2ce)),(this[_0x51c1d6(0x39f)]=_0x355f1c==null?void 0x0:_0x355f1c[_0x51c1d6(0x39f)],this[_0x51c1d6(0x2ce)]=_0x355f1c==null?void 0x0:_0x355f1c['text']);}static[_0x1e1deb(0x3dc)](_0x2e5c4c,_0x58259c){const _0x234a7f=_0x1e1deb,{text:_0x42336e,color:_0x8b4830}=_0x58259c;_0x2e5c4c['save'](),_0x2e5c4c[_0x234a7f(0x3df)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0xca54fa=_0x2e5c4c['measureText'](_0x42336e)[_0x234a7f(0x3b3)],_0x382391=Math[_0x234a7f(0x414)](_0xca54fa+0x2*ht,as);Ir(_0x2e5c4c,{'height':Ue,'radius':0x4,'width':_0x382391,'fill':_0x8b4830,'evented':!0x1}),_0x2e5c4c[_0x234a7f(0x271)]='#FFF';const _0xb107f6=ht,_0x10f815=Ue-vr,_0x23c570=as-0x2*ht;if(_0xca54fa>_0x23c570){let _0x2b0b1a='',_0xf37d96=0x0;for(const _0x5c80a9 of _0x42336e){const _0x461fb5=_0x2e5c4c[_0x234a7f(0x16d)](_0x5c80a9)[_0x234a7f(0x3b3)];if(_0xf37d96+_0x461fb5<=_0x23c570-_0x2e5c4c[_0x234a7f(0x16d)](_0x234a7f(0x20e))[_0x234a7f(0x3b3)])_0x2b0b1a+=_0x5c80a9,_0xf37d96+=_0x461fb5;else{_0x2b0b1a+=_0x234a7f(0x20e);break;}}_0x2e5c4c[_0x234a7f(0x14b)](_0x2b0b1a,_0xb107f6,_0x10f815);}else _0x2e5c4c[_0x234a7f(0x14b)](_0x42336e,_0xb107f6,_0x10f815);_0x2e5c4c[_0x234a7f(0x41d)]();}[_0x1e1deb(0x10d)](_0x3485b8){const _0x5bd01d=_0x1e1deb;it[_0x5bd01d(0x3dc)](_0x3485b8,this);}}const Er=0x1,Cr=1.5;class br extends _0x26e4f3{constructor(_0x26f13c,_0x14d361){const _0x3b1def=_0x1e1deb;super(_0x26f13c,_0x14d361),l(this,_0x3b1def(0x2aa)),l(this,_0x3b1def(0x155),!0x1),l(this,_0x3b1def(0x411)),l(this,_0x3b1def(0x102),''),l(this,_0x3b1def(0x113),_0x3b1def(0x2da)),l(this,_0x3b1def(0x233)),(_0x14d361&&this['setShapeProps'](_0x14d361),this[_0x3b1def(0x1c8)][_0x3b1def(0x364)](()=>this[_0x3b1def(0x384)]({'hovered':!0x0})),this['onPointerLeave$'][_0x3b1def(0x364)](()=>this[_0x3b1def(0x384)]({'hovered':!0x1})));}['setShapeProps'](_0x12ce4f){const _0x509e63=_0x1e1deb;var _0x5d3f58,_0xd0baf7,_0x32e5eb,_0x21c9a3,_0x320994,_0x2a966a;this['_color']=(_0x5d3f58=_0x12ce4f[_0x509e63(0x39f)])!=null?_0x5d3f58:this[_0x509e63(0x2aa)],this['_hovered']=(_0xd0baf7=_0x12ce4f['hovered'])!=null?_0xd0baf7:this[_0x509e63(0x155)],this['_range']=(_0x32e5eb=_0x12ce4f['range'])!=null?_0x32e5eb:this[_0x509e63(0x411)],this[_0x509e63(0x102)]=(_0x21c9a3=_0x12ce4f[_0x509e63(0x10e)])!=null?_0x21c9a3:this[_0x509e63(0x102)],this[_0x509e63(0x113)]=(_0x320994=_0x12ce4f[_0x509e63(0x18c)])!=null?_0x320994:this[_0x509e63(0x113)],this['_backgroundColor']=(_0x2a966a=_0x12ce4f[_0x509e63(0x429)])!=null?_0x2a966a:this[_0x509e63(0x233)],this['transformByState']({'width':_0x12ce4f[_0x509e63(0x3b3)],'height':_0x12ce4f[_0x509e63(0x2e1)]});}[_0x1e1deb(0x295)](_0x11e636){const _0x535666=_0x1e1deb,{row:_0x12380e,column:_0x4570fc}=_0x11e636;if(_0x12380e>=this[_0x535666(0x411)][_0x535666(0x2c1)]&&_0x12380e<=this[_0x535666(0x411)][_0x535666(0x1be)]&&_0x4570fc>=this[_0x535666(0x411)][_0x535666(0x236)]&&_0x4570fc<=this[_0x535666(0x411)][_0x535666(0x1c1)]){this[_0x535666(0x384)]({'hovered':!0x0});return;}this[_0x535666(0x384)]({'hovered':!0x1});}[_0x1e1deb(0x40c)](_0xd8efa8){return!0x1;}[_0x1e1deb(0x10d)](_0x335a6c){const _0x2f19fe=_0x1e1deb;_0xb0d98f['drawWith'](_0x335a6c,{'width':this[_0x2f19fe(0x3b3)],'height':this[_0x2f19fe(0x2e1)],'strokeWidth':Cr,'stroke':this['_color'],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x2f19fe(0x155)]&&(_0x335a6c[_0x2f19fe(0x2e8)](),_0x335a6c[_0x2f19fe(0x3f0)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']==='bottom'?0x0:-Ue),it[_0x2f19fe(0x3dc)](_0x335a6c,{'text':this[_0x2f19fe(0x102)],'color':this[_0x2f19fe(0x2aa)]}),_0x335a6c[_0x2f19fe(0x41d)]());}}var Tr=Object[_0x1e1deb(0x158)],Rr=Object['getOwnPropertyDescriptor'],Or=(_0x84c562,_0x2b3f89,_0x19547b,_0x662895)=>{const _0x5443f5=_0x1e1deb;for(var _0x51a268=_0x662895>0x1?void 0x0:_0x662895?Rr(_0x2b3f89,_0x19547b):_0x2b3f89,_0x2d551c=_0x84c562[_0x5443f5(0x426)]-0x1,_0x373ef4;_0x2d551c>=0x0;_0x2d551c--)(_0x373ef4=_0x84c562[_0x2d551c])&&(_0x51a268=(_0x662895?_0x373ef4(_0x2b3f89,_0x19547b,_0x51a268):_0x373ef4(_0x51a268))||_0x51a268);return _0x662895&&_0x51a268&&Tr(_0x2b3f89,_0x19547b,_0x51a268),_0x51a268;},lt=(_0x55d54a,_0x53e4d7)=>(_0x3007d7,_0x3981f8)=>_0x53e4d7(_0x3007d7,_0x3981f8,_0x55d54a);const Dr=0x1389;let Tt=class extends _0x5b9cf1{constructor(_0x3fd35e,_0x46ecc0,_0x380d3c,_0x103ed3){const _0x412eb2=_0x1e1deb;super(),l(this,'_cursors',new Set()),l(this,_0x412eb2(0x15a),null),(this[_0x412eb2(0x428)]=_0x3fd35e,this[_0x412eb2(0x2f0)]=_0x46ecc0,this['_collabCursorController']=_0x380d3c,this[_0x412eb2(0x281)]=_0x103ed3,this[_0x412eb2(0x37a)]());}[_0x1e1deb(0x37a)](){const _0x4ae974=_0x1e1deb;this[_0x4ae974(0x2f0)]['currentSkeleton$'][_0x4ae974(0x119)](_0x946afe(this[_0x4ae974(0x413)]),_0x4abf00(_0x42a5a3=>{const _0x3e5a55=_0x4ae974;if(_0x42a5a3){const _0x1c0294=_0x42a5a3[_0x3e5a55(0x35f)];return _0x1a6529(this[_0x3e5a55(0x307)][_0x3e5a55(0x19c)](this[_0x3e5a55(0x428)][_0x3e5a55(0x439)]),this[_0x3e5a55(0x281)][_0x3e5a55(0x24e)])[_0x3e5a55(0x119)](_0x5ac769(([_0x1edbf7,_0x4c4ca9])=>{const _0x22fb7c=_0x3e5a55,_0x1c5d8b=new Map();return _0x1edbf7[_0x22fb7c(0x23e)]((_0x550341,_0x26bd18)=>{const _0x50d53b=_0x22fb7c;if(_0x550341[_0x50d53b(0x438)]===_0x1c0294){const _0x4eb6ca={..._0x550341};_0x4eb6ca[_0x50d53b(0x39f)]=_0x4c4ca9[_0x550341['color']],_0x1c5d8b[_0x50d53b(0x394)](_0x26bd18,_0x4eb6ca);}}),{'skeleton':_0x42a5a3,'cursors':_0x1c5d8b};}));}return _0x4f1794({'skeleton':null,'cursors':new Map()});}))[_0x4ae974(0x3e0)](({skeleton:_0x32e391,cursors:_0x414bca})=>{const _0x540905=_0x4ae974;this[_0x540905(0x383)](),_0x32e391&&this['_updateCollabCursors'](_0x32e391,_0x414bca);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x4ae974(0x3e0)](_0x38a844=>{const _0x2a1f90=_0x4ae974;if(_0x38a844==null)return;const {skeleton:_0x16c7df}=_0x38a844,{scene:_0x285ec8}=this[_0x2a1f90(0x428)];_0x285ec8[_0x2a1f90(0x167)][_0x2a1f90(0x364)](_0x21f8bc(_0x25fb68=>{const _0x38a6c6=_0x2a1f90;var _0x5c348a,_0x2baddd;const {offsetX:_0x495000,offsetY:_0x2e86fc}=_0x25fb68,{x:_0x268ffc,y:_0x1a434d}=_0x285ec8['getRelativeToViewportCoord'](_0x261805[_0x38a6c6(0x172)]([_0x495000,_0x2e86fc])),{scaleX:_0x310ff8,scaleY:_0x2b0a64}=_0x285ec8[_0x38a6c6(0x197)](),_0x505959=_0x285ec8[_0x38a6c6(0x1f4)](_0x148a75[_0x38a6c6(0x33b)]),_0x3ef1ff=_0x285ec8[_0x38a6c6(0x276)](_0x261805[_0x38a6c6(0x172)]([_0x268ffc,_0x1a434d]),_0x505959),_0x2709f1=_0x16c7df['getCellPositionByOffset'](_0x495000,_0x2e86fc,_0x310ff8,_0x2b0a64,_0x3ef1ff);((_0x5c348a=this[_0x38a6c6(0x15a)])==null?void 0x0:_0x5c348a[_0x38a6c6(0x24d)])===_0x2709f1[_0x38a6c6(0x24d)]&&((_0x2baddd=this[_0x38a6c6(0x15a)])==null?void 0x0:_0x2baddd[_0x38a6c6(0x1f7)])===_0x2709f1[_0x38a6c6(0x1f7)]||this['_cursors'][_0x38a6c6(0x23e)](_0x309f8a=>{_0x309f8a['onMouseMove'](_0x2709f1);});},0x64));});}[_0x1e1deb(0x31e)](_0x451f4e,_0x440322){const _0x3c27b5=_0x1e1deb;var _0x39ccbd;const _0x4db93f=(_0x39ccbd=this[_0x3c27b5(0x2f0)][_0x3c27b5(0x298)]())==null?void 0x0:_0x39ccbd['skeleton'];if(!_0x4db93f)return;const _0x39d6e5=this[_0x3c27b5(0x23b)]();if(!_0x39d6e5)return;this['_cursors'][_0x3c27b5(0x23e)](_0x494a3f=>{_0x494a3f['makeDirty']();});const {scene:_0x40f750}=_0x39d6e5,_0x34f114=Pr(Array[_0x3c27b5(0x427)](_0x440322[_0x3c27b5(0x1ec)]()))[_0x3c27b5(0x230)](_0x4b5c43=>{const _0x530638=_0x3c27b5,{color:_0x13fe40,range:_0x4af9a6,name:_0x11d793,selection:_0x5bc2f5,sheetID:_0x5221cb}=_0x4b5c43,{startColumn:_0x2a6c17,startRow:_0x5ee295,endColumn:_0x528ab8,endRow:_0x48e823}=_0x4af9a6,_0x279133=_0x2dd2e3(_0x5ee295,_0x2a6c17,_0x40f750,_0x4db93f),_0x2e5178=_0x2dd2e3(_0x48e823,_0x528ab8,_0x40f750,_0x4db93f),{columnHeaderHeightAndMarginTop:_0xdec1c0}=_0x4db93f,{startX:_0x1f6506,startY:_0x404e20}=_0x279133,{endX:_0x2cef1a,endY:_0x22b5a5}=_0x2e5178,_0x4ed481=_0x2cef1a-_0x1f6506,_0x42ca7d=_0x22b5a5-_0x404e20,_0x21a154={'labelPosition':_0x404e20-_0xdec1c0>=Ue?_0x530638(0x2da):'bottom','sheetID':_0x5221cb,'range':_0x4af9a6,'color':_0x13fe40,'name':_0x11d793,'selection':_0x5bc2f5,'left':_0x1f6506,'top':_0x404e20,'width':_0x4ed481,'height':_0x42ca7d,'evented':!0x1,'zIndex':Dr};return new br(_0x11d793,_0x21a154);});_0x40f750[_0x3c27b5(0x3eb)](_0x34f114,Er),this[_0x3c27b5(0x18b)]=new Set(_0x34f114);}['_removeCollabCursors'](){const _0x54f433=_0x1e1deb;var _0x313a15;(_0x313a15=this[_0x54f433(0x18b)])==null||_0x313a15['forEach'](_0x1782a7=>_0x1782a7[_0x54f433(0x1de)]());}[_0x1e1deb(0x23b)](){const _0x546022=_0x1e1deb;return _0x8759c1(this[_0x546022(0x428)]['unit'],this['_context']);}};Tt=Or([lt(0x1,_0x441fe2(_0x1b2381)),lt(0x2,_0x441fe2(ge)),lt(0x3,_0x441fe2(_0x5af768))],Tt);function Pr(_0x19e1bc){const _0x14df0b=_0x1e1deb,_0x5196b5=new Map();return _0x19e1bc[_0x14df0b(0x23e)](_0x371068=>{const _0x3d8f81=_0x14df0b;if(_0x5196b5[_0x3d8f81(0x1e3)](_0x371068['selection'])){const _0x488ebb=_0x5196b5['get'](_0x371068[_0x3d8f81(0x3ad)]);_0x488ebb['name']+=',\x20'+_0x371068[_0x3d8f81(0x10e)];}else _0x5196b5[_0x3d8f81(0x394)](_0x371068[_0x3d8f81(0x3ad)],_0x371068);}),Array['from'](_0x5196b5['values']());}var y=function(){const _0x5a892f=_0x1e1deb;return y=Object[_0x5a892f(0x2fc)]||function(_0x3f3e1a){const _0x37adc6=_0x5a892f;for(var _0x6ffb07,_0x3e6933=0x1,_0x32a8bb=arguments['length'];_0x3e6933<_0x32a8bb;_0x3e6933++){_0x6ffb07=arguments[_0x3e6933];for(var _0x2c4f34 in _0x6ffb07)Object[_0x37adc6(0x1c2)][_0x37adc6(0x246)][_0x37adc6(0x2fb)](_0x6ffb07,_0x2c4f34)&&(_0x3f3e1a[_0x2c4f34]=_0x6ffb07[_0x2c4f34]);}return _0x3f3e1a;},y['apply'](this,arguments);},wr=function(_0x4704e7,_0x39dc15){const _0x2312d8=_0x1e1deb;var _0x2fced2={};for(var _0x2273f1 in _0x4704e7)Object[_0x2312d8(0x1c2)][_0x2312d8(0x246)][_0x2312d8(0x2fb)](_0x4704e7,_0x2273f1)&&_0x39dc15[_0x2312d8(0x196)](_0x2273f1)<0x0&&(_0x2fced2[_0x2273f1]=_0x4704e7[_0x2273f1]);if(_0x4704e7!=null&&typeof Object[_0x2312d8(0x2a5)]==_0x2312d8(0x408)){for(var _0x1a5ee1=0x0,_0x2273f1=Object[_0x2312d8(0x2a5)](_0x4704e7);_0x1a5ee1<_0x2273f1[_0x2312d8(0x426)];_0x1a5ee1++)_0x39dc15['indexOf'](_0x2273f1[_0x1a5ee1])<0x0&&Object['prototype'][_0x2312d8(0x305)][_0x2312d8(0x2fb)](_0x4704e7,_0x2273f1[_0x1a5ee1])&&(_0x2fced2[_0x2273f1[_0x1a5ee1]]=_0x4704e7[_0x2273f1[_0x1a5ee1]]);}return _0x2fced2;},Ht=_0x4c5978(function(_0x128bf2,_0x47c970){const _0x155037=_0x1e1deb;var _0x20675c=_0x128bf2['icon'],_0x85792b=_0x128bf2['id'],_0x532d2c=_0x128bf2[_0x155037(0x13b)],_0x2be95d=_0x128bf2['extend'],_0x5b776c=wr(_0x128bf2,[_0x155037(0x232),'id',_0x155037(0x13b),_0x155037(0x41e)]),_0x2dff62='univerjs-icon\x20univerjs-icon-'['concat'](_0x85792b,'\x20')[_0x155037(0x114)](_0x532d2c||'')[_0x155037(0x1e6)](),_0x3afa59=_0x42a52e('_'[_0x155037(0x114)](Ar()));return Ls(_0x20675c,''[_0x155037(0x114)](_0x85792b),{'defIds':_0x20675c[_0x155037(0x263)],'idSuffix':_0x3afa59[_0x155037(0x257)]},y({'ref':_0x47c970,'className':_0x2dff62},_0x5b776c),_0x2be95d);});function Ls(_0x5613b1,_0x3d68b5,_0x2b2edd,_0xd0487,_0x4b7e3c){const _0x24fb55=_0x1e1deb;return _0x5dad64(_0x5613b1['tag'],y(y({'key':_0x3d68b5},Nr(_0x5613b1,_0x2b2edd,_0x4b7e3c)),_0xd0487),(Mr(_0x5613b1,_0x2b2edd)[_0x24fb55(0x3d5)]||[])[_0x24fb55(0x230)](function(_0x3fc766,_0x403429){const _0x21ab84=_0x24fb55;return Ls(_0x3fc766,''['concat'](_0x3d68b5,'-')[_0x21ab84(0x114)](_0x5613b1[_0x21ab84(0x2e6)],'-')[_0x21ab84(0x114)](_0x403429),_0x2b2edd,void 0x0,_0x4b7e3c);}));}function Nr(_0x377fd9,_0x165002,_0x39762b){const _0x4e33dc=_0x1e1deb;var _0x2602a0=y({},_0x377fd9['attrs']);_0x39762b!=null&&_0x39762b[_0x4e33dc(0x1a8)]&&_0x2602a0[_0x4e33dc(0x248)]===_0x4e33dc(0x1a8)&&(_0x2602a0[_0x4e33dc(0x248)]=_0x39762b[_0x4e33dc(0x1a8)]);var _0x2c79d9=_0x165002[_0x4e33dc(0x263)];return!_0x2c79d9||_0x2c79d9[_0x4e33dc(0x426)]===0x0||(_0x377fd9[_0x4e33dc(0x2e6)]===_0x4e33dc(0x12e)&&_0x2602a0[_0x4e33dc(0x254)]&&(_0x2602a0['xlink:href']=_0x2602a0['xlink:href']+_0x165002['idSuffix']),Object['entries'](_0x2602a0)[_0x4e33dc(0x23e)](function(_0x5c5d16){const _0x33157b=_0x4e33dc;var _0x53e2eb=_0x5c5d16[0x0],_0x5e1a39=_0x5c5d16[0x1];typeof _0x5e1a39==_0x33157b(0x159)&&(_0x2602a0[_0x53e2eb]=_0x5e1a39[_0x33157b(0x20a)](/url\(#(.*)\)/,'url(#$1'[_0x33157b(0x114)](_0x165002[_0x33157b(0x20b)],')')));})),_0x2602a0;}function Mr(_0x2fd192,_0x418d82){const _0x132b67=_0x1e1deb;var _0x364f4e,_0xa0ea27=_0x418d82[_0x132b67(0x263)];return!_0xa0ea27||_0xa0ea27[_0x132b67(0x426)]===0x0?_0x2fd192:_0x2fd192[_0x132b67(0x2e6)]===_0x132b67(0x26d)&&(!((_0x364f4e=_0x2fd192['children'])===null||_0x364f4e===void 0x0)&&_0x364f4e[_0x132b67(0x426)])?y(y({},_0x2fd192),{'children':_0x2fd192[_0x132b67(0x3d5)][_0x132b67(0x230)](function(_0xccec19){const _0xec6668=_0x132b67;return typeof _0xccec19[_0xec6668(0x206)]['id']==_0xec6668(0x159)&&_0xa0ea27&&_0xa0ea27[_0xec6668(0x196)](_0xccec19[_0xec6668(0x206)]['id'])>-0x1?y(y({},_0xccec19),{'attrs':y(y({},_0xccec19[_0xec6668(0x206)]),{'id':_0xccec19[_0xec6668(0x206)]['id']+_0x418d82['idSuffix']})}):_0xccec19;})}):_0x2fd192;}function Ar(){const _0x1b560c=_0x1e1deb;return Math[_0x1b560c(0x216)]()[_0x1b560c(0x400)](0x24)[_0x1b560c(0x1a2)](0x2,0x8);}Ht['displayName']=_0x1e1deb(0x398);var yr={'tag':_0x1e1deb(0x2ec),'attrs':{'fill':_0x1e1deb(0x170),'viewBox':_0x1e1deb(0x157),'width':_0x1e1deb(0x1bc),'height':_0x1e1deb(0x1bc)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x1e1deb(0x1ea),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x1e1deb(0x24b),'strokeLinejoin':_0x1e1deb(0x24b),'strokeWidth':1.2}}]},{'tag':_0x1e1deb(0x26d),'attrs':{},'children':[{'tag':_0x1e1deb(0x40b),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x1e1deb(0x2bd),'attrs':{'fill':_0x1e1deb(0x416),'d':_0x1e1deb(0x1c6)}}]}]}],'defIds':['off-line-single_clip0_910_343']},$s=_0x4c5978(function(_0x3a7ab8,_0x503e27){const _0x9be884=_0x1e1deb;return _0x5dad64(Ht,Object[_0x9be884(0x2fc)]({},_0x3a7ab8,{'id':_0x9be884(0x16b),'ref':_0x503e27,'icon':yr}));});$s['displayName']='OffLineSingle';var Ur={'tag':'svg','attrs':{'fill':_0x1e1deb(0x170),'viewBox':_0x1e1deb(0x25c),'width':_0x1e1deb(0x1bc),'height':_0x1e1deb(0x1bc)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x1e1deb(0x1ea),'d':_0x1e1deb(0x205),'strokeLinecap':_0x1e1deb(0x24b),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1e1deb(0x26d),'attrs':{},'children':[{'tag':_0x1e1deb(0x40b),'attrs':{'id':_0x1e1deb(0x35d)},'children':[{'tag':_0x1e1deb(0x2bd),'attrs':{'fill':_0x1e1deb(0x416),'d':_0x1e1deb(0x1c6),'transform':_0x1e1deb(0x13c)}}]}]}],'defIds':[_0x1e1deb(0x35d)]},js=_0x4c5978(function(_0xaa6dc8,_0x226221){const _0x393908=_0x1e1deb;return _0x5dad64(Ht,Object[_0x393908(0x2fc)]({},_0xaa6dc8,{'id':_0x393908(0x2ba),'ref':_0x226221,'icon':Ur}));});js[_0x1e1deb(0x2a0)]='OnLineSingle';const Lr=_0x1e1deb(0x3d8),$r='univer-online-status-title',jr='univer-online-status',xr=_0x1e1deb(0x279),Hr=_0x1e1deb(0x1c3),De={'onlineStatusIcon':Lr,'onlineStatusTitle':$r,'onlineStatus':jr,'online':xr,'offline':Hr};function kr(_0x3f615b){const _0xc24b35=_0x1e1deb;switch(_0x3f615b){case P['OFFLINE']:return'collabStatus.offline';case P['CONFLICT']:return _0xc24b35(0x29a);case P[_0xc24b35(0x3c6)]:return _0xc24b35(0x390);case P['NOT_COLLAB']:return _0xc24b35(0x318);case P[_0xc24b35(0x2ef)]:case P['AWAITING']:case P[_0xc24b35(0x1b7)]:return _0xc24b35(0x19b);case P[_0xc24b35(0x23d)]:return _0xc24b35(0x133);}}function Fr(_0x5322c2){const _0xf3a9c3=_0x1e1deb,{status$:_0x4082d1}=_0x5322c2,_0x2290ec=_0x40760a(_0x4082d1,P[_0xf3a9c3(0x105)]),_0x87a24d=_0x12a590(_0x2cfe85),_0x381ca2=_0x2290ec!==P[_0xf3a9c3(0x328)],_0x3ba8ce=_0x87a24d['t'](kr(_0x2290ec)),_0x587275=_0x513823(De[_0xf3a9c3(0x147)],{[De[_0xf3a9c3(0x2b3)]]:_0x381ca2,[De[_0xf3a9c3(0x291)]]:!_0x381ca2}),_0x582921=_0x381ca2?_0xed19ed[_0xf3a9c3(0x350)](js,null):_0xed19ed[_0xf3a9c3(0x350)]($s,null);return _0xed19ed[_0xf3a9c3(0x350)](_0xf3a9c3(0x36c),{'className':_0x587275},_0xed19ed[_0xf3a9c3(0x350)](_0xf3a9c3(0x36c),{'className':De[_0xf3a9c3(0x3a6)]},_0x582921),_0xed19ed[_0xf3a9c3(0x350)](_0xf3a9c3(0x36c),{'className':De[_0xf3a9c3(0x3aa)]},_0x3ba8ce));}var Vr=Object[_0x1e1deb(0x158)],Br=Object[_0x1e1deb(0x32c)],Wr=(_0x1a2edd,_0x5c4e18,_0xd8bbb8,_0x2755b5)=>{const _0x2022ae=_0x1e1deb;for(var _0x19fbaa=_0x2755b5>0x1?void 0x0:_0x2755b5?Br(_0x5c4e18,_0xd8bbb8):_0x5c4e18,_0x118871=_0x1a2edd[_0x2022ae(0x426)]-0x1,_0x48891d;_0x118871>=0x0;_0x118871--)(_0x48891d=_0x1a2edd[_0x118871])&&(_0x19fbaa=(_0x2755b5?_0x48891d(_0x5c4e18,_0xd8bbb8,_0x19fbaa):_0x48891d(_0x19fbaa))||_0x19fbaa);return _0x2755b5&&_0x19fbaa&&Vr(_0x5c4e18,_0xd8bbb8,_0x19fbaa),_0x19fbaa;},$e=(_0x1d02c5,_0x5a6818)=>(_0x473fd6,_0x50e811)=>_0x5a6818(_0x473fd6,_0x50e811,_0x1d02c5);let ke=class extends _0xc94eea{constructor(_0x4133ff,_0x3a71a4,_0x409fcb,_0xf57783){const _0x377612=_0x1e1deb;super(),l(this,'_status$',new _0x16d05d(P[_0x377612(0x105)])),(this['_univerInstanceService']=_0x4133ff,this[_0x377612(0x237)]=_0x3a71a4,this['_injector']=_0x409fcb,this[_0x377612(0x3a8)]=_0xf57783,this[_0x377612(0x3a7)](),this[_0x377612(0x3bc)]());}['_initStatusComponent'](){const _0x35df1d=_0x1e1deb;this[_0x35df1d(0x32e)](this[_0x35df1d(0x237)]['registerComponent'](_0x37823b[_0x35df1d(0x3bb)],()=>_0x1bcf38(Gr({'status$':this[_0x35df1d(0x2ea)]['asObservable']()}),this['_injector'])));}[_0x1e1deb(0x3bc)](){const _0x214058=_0x1e1deb;this['disposeWithMe'](_0x4259e5(this['_univerInstanceService'][_0x214058(0xfd)][_0x214058(0x119)](_0xd6054c(()=>{const _0xf4f46e=_0x214058,_0x4cec09=this[_0xf4f46e(0x145)][_0xf4f46e(0x228)]();return _0x4cec09?this[_0xf4f46e(0x3a8)][_0xf4f46e(0x1d3)](_0x4cec09[_0xf4f46e(0x3cf)]()):_0x4f1794(null);}),_0xd6054c(_0x23f60f=>_0x23f60f?_0x23f60f[_0x214058(0x200)]:_0x4f1794(P['NOT_COLLAB'])))['subscribe'](_0x5cbbc7=>{const _0x4eac9a=_0x214058;this[_0x4eac9a(0x2ea)][_0x4eac9a(0x3cd)](_0x5cbbc7);})));}};ke=Wr([_0x3e0133(_0x1781f1[_0x1e1deb(0x3bd)],ke),$e(0x0,_0x4902a5),$e(0x1,_0xbabd5f),$e(0x2,_0x441fe2(_0x9c5d64)),$e(0x3,_0x441fe2(Me))],ke);function Gr(_0x8fcc7f){const {status$:_0x3e3663}=_0x8fcc7f;return function(){const _0x43e62f=_0x44de;return _0xed19ed[_0x43e62f(0x350)](Fr,{'status$':_0x3e3663});};}const xs=_0x32feec(_0x1e1deb(0x3ec));var Yr=Object['defineProperty'],Kr=Object[_0x1e1deb(0x32c)],Xr=(_0x44be9c,_0x4c0221,_0x4cac6e,_0x2e0d00)=>{const _0x4bcffd=_0x1e1deb;for(var _0x179476=_0x2e0d00>0x1?void 0x0:_0x2e0d00?Kr(_0x4c0221,_0x4cac6e):_0x4c0221,_0x191e7b=_0x44be9c[_0x4bcffd(0x426)]-0x1,_0x429a2f;_0x191e7b>=0x0;_0x191e7b--)(_0x429a2f=_0x44be9c[_0x191e7b])&&(_0x179476=(_0x2e0d00?_0x429a2f(_0x4c0221,_0x4cac6e,_0x179476):_0x429a2f(_0x179476))||_0x179476);return _0x2e0d00&&_0x179476&&Yr(_0x4c0221,_0x4cac6e,_0x179476),_0x179476;},ue=(_0x4988f6,_0x363bf8)=>(_0x3e208c,_0x43c652)=>_0x363bf8(_0x3e208c,_0x43c652,_0x4988f6);let Fe=class extends _0x5b9cf1{constructor(_0x12fc25,_0x536dbc,_0x3acce0,_0x4d21dc,_0x18021c,_0xac6f2b){const _0x136833=_0x1e1deb;super(),this[_0x136833(0x3ed)]=_0x12fc25,this['_logService']=_0x536dbc,this['_commandService']=_0x3acce0,this['_localCacheService']=_0x4d21dc,this[_0x136833(0x40a)]=_0x18021c,_0xac6f2b?_0xac6f2b==null||_0xac6f2b[_0x136833(0x199)]()[_0x136833(0x1e8)](()=>this[_0x136833(0x37a)]()):(this['_logService'][_0x136833(0x1fc)]('[DataLoaderController]',_0x136833(0x24c)),this[_0x136833(0x37a)]());}async['_init'](){const _0x26e9ed=_0x1e1deb,_0x59182c=this[_0x26e9ed(0x3ed)]['getParam'](_0x26e9ed(0x418)),_0x148378=this[_0x26e9ed(0x3ed)][_0x26e9ed(0x14a)](_0x26e9ed(0x2cc));if(!_0x59182c||!_0x148378){this['_logService']['debug'](_0x26e9ed(0x189),_0x26e9ed(0x337));return;}switch(Number(_0x148378)){case x[_0x26e9ed(0x3d0)]:{const _0x5498bd=await this[_0x26e9ed(0x311)](_0x59182c);this[_0x26e9ed(0x3e6)](_0x5498bd);break;}case x[_0x26e9ed(0x1c7)]:{await this[_0x26e9ed(0x3ae)](_0x59182c);break;}default:{this[_0x26e9ed(0x12a)][_0x26e9ed(0x1f8)](_0x26e9ed(0x189),_0x26e9ed(0xfc));break;}}}async[_0x1e1deb(0x3e6)](_0x3754d3){const _0x5d148f=_0x1e1deb;await this[_0x5d148f(0x25a)](_0x3754d3),_0x3754d3['activeSheet$'][_0x5d148f(0x119)](_0x3f75b0(this[_0x5d148f(0x413)]))['subscribe'](_0x132ca6=>{const _0x1dad28=_0x5d148f;_0x132ca6&&this[_0x1dad28(0x168)](_0x132ca6);}),this[_0x5d148f(0x3ed)]['urlChange$'][_0x5d148f(0x119)](_0x3f75b0(this[_0x5d148f(0x413)]))[_0x5d148f(0x3e0)](()=>this[_0x5d148f(0x25a)](_0x3754d3));}[_0x1e1deb(0x168)](_0x4baec9,_0x3565d0=!0x1){const _0x2270cb=_0x1e1deb,_0x583aa2=this['_urlService'][_0x2270cb(0x14a)](_0x2270cb(0x3fc));_0x4baec9['getSheetId']()!==_0x583aa2&&this['_urlService']['setParam']('subunit',_0x4baec9[_0x2270cb(0x2c2)](),_0x3565d0);}async['_updateSubUnitFromURLParams'](_0x46bcf2){const _0x3eda58=_0x1e1deb;var _0x1afcfc;const _0x5ce5cd=this['_urlService'][_0x3eda58(0x14a)](_0x3eda58(0x3fc));if(!_0x5ce5cd||!_0x46bcf2[_0x3eda58(0x2ee)](_0x5ce5cd)){const _0x183010=_0x46bcf2[_0x3eda58(0x1a6)]()[0x0],_0x2d2101=_0x46bcf2['getSheetBySheetId'](_0x183010);if(!_0x2d2101)return;this['_updateURLWithCurrentState'](_0x2d2101,!0x0),await this['_commandService'][_0x3eda58(0x3e7)](_0x2576c5['id'],{'unitId':_0x46bcf2['getUnitId'](),'subUnitId':_0x183010});return;}((_0x1afcfc=_0x46bcf2[_0x3eda58(0x39a)]())==null?void 0x0:_0x1afcfc[_0x3eda58(0x2c2)]())!==_0x5ce5cd&&await this[_0x3eda58(0x1fb)]['executeCommand'](_0x2576c5['id'],{'unitId':_0x46bcf2['getUnitId'](),'subUnitId':_0x5ce5cd});}async[_0x1e1deb(0x311)](_0x416964){const _0x5d73a4=_0x1e1deb;let _0x1a18ff=0x0;const _0x33cbd5=await this['_localCacheService']['loadOfflineData'](_0x416964);return _0x33cbd5&&(_0x33cbd5['awaitingChangeset']||_0x33cbd5['mutations'][_0x5d73a4(0x426)]!==0x0)&&(_0x1a18ff=_0x33cbd5[_0x5d73a4(0x209)]),_0x1a18ff===0x0&&this[_0x5d73a4(0x12a)][_0x5d73a4(0x1fc)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x5d73a4(0x40a)][_0x5d73a4(0x3fe)](_0x416964,_0x1a18ff);}async[_0x1e1deb(0x3ae)](_0x5b7308){const _0x4bf896=_0x1e1deb;let _0x22eff0=0x0;const _0x5abdbd=await this['_localCacheService'][_0x4bf896(0x329)](_0x5b7308);return _0x5abdbd&&(_0x5abdbd[_0x4bf896(0x22e)]||_0x5abdbd[_0x4bf896(0x357)][_0x4bf896(0x426)]!==0x0)&&(_0x22eff0=_0x5abdbd['rev']),_0x22eff0===0x0&&this[_0x4bf896(0x12a)][_0x4bf896(0x1fc)](_0x4bf896(0x189),_0x4bf896(0x16f)),this[_0x4bf896(0x40a)][_0x4bf896(0x280)](_0x5b7308,_0x22eff0);}};Fe=Xr([_0x3e0133(_0x1781f1[_0x1e1deb(0x3bd)],Fe),ue(0x0,xs),ue(0x1,_0x5f4df3),ue(0x2,_0x9845f),ue(0x3,_0x441fe2(D)),ue(0x4,_0x441fe2(_0x1e8d71)),ue(0x5,_0x16cd37(_0x182e1b))],Fe);var Jr=Object[_0x1e1deb(0x158)],zr=Object[_0x1e1deb(0x32c)],qr=(_0x280f13,_0x182afa,_0x5d3e0c,_0x18de35)=>{for(var _0x2263c3=_0x18de35>0x1?void 0x0:_0x18de35?zr(_0x182afa,_0x5d3e0c):_0x182afa,_0x54e851=_0x280f13['length']-0x1,_0x49440c;_0x54e851>=0x0;_0x54e851--)(_0x49440c=_0x280f13[_0x54e851])&&(_0x2263c3=(_0x18de35?_0x49440c(_0x182afa,_0x5d3e0c,_0x2263c3):_0x49440c(_0x2263c3))||_0x2263c3);return _0x18de35&&_0x2263c3&&Jr(_0x182afa,_0x5d3e0c,_0x2263c3),_0x2263c3;},cs=(_0x4ff45e,_0x219b4c)=>(_0x23a5cf,_0x47e372)=>_0x219b4c(_0x23a5cf,_0x47e372,_0x4ff45e);const Zr=_0x1e1deb(0x3b9),Qr=_0x1e1deb(0x183);let Ve=class extends _0xc94eea{constructor(_0x57c508,_0x23be06){const _0x1a6c62=_0x1e1deb;super(),this[_0x1a6c62(0x145)]=_0x57c508,this[_0x1a6c62(0x26b)]=_0x23be06,this[_0x1a6c62(0x37a)]();}[_0x1e1deb(0x37a)](){const _0x434d54=_0x1e1deb;this['disposeWithMe'](_0x4259e5(this['_univerInstanceService'][_0x434d54(0xfd)][_0x434d54(0x3e0)](()=>{const _0x1c7fa2=_0x434d54;var _0xb51369;const _0x174685=this[_0x1c7fa2(0x145)][_0x1c7fa2(0x228)]();let _0x5dbb1e=(_0xb51369=this[_0x1c7fa2(0x26b)][_0x1c7fa2(0x35c)](Zr))!=null?_0xb51369:Qr;_0x174685 instanceof _0x5a1e31&&(_0x5dbb1e=_0x174685[_0x1c7fa2(0x10e)]),document[_0x1c7fa2(0x244)]=_0x5dbb1e;})));}};Ve=qr([_0x3e0133(_0x1781f1[_0x1e1deb(0x249)],Ve),cs(0x0,_0x4902a5),cs(0x1,_0x5445a8)],Ve);var eo=Object[_0x1e1deb(0x158)],to=Object['getOwnPropertyDescriptor'],so=(_0x15125f,_0x502626,_0x507335,_0x41af40)=>{const _0x5f1573=_0x1e1deb;for(var _0x335fdb=_0x41af40>0x1?void 0x0:_0x41af40?to(_0x502626,_0x507335):_0x502626,_0x2d038f=_0x15125f[_0x5f1573(0x426)]-0x1,_0x62744d;_0x2d038f>=0x0;_0x2d038f--)(_0x62744d=_0x15125f[_0x2d038f])&&(_0x335fdb=(_0x41af40?_0x62744d(_0x502626,_0x507335,_0x335fdb):_0x62744d(_0x335fdb))||_0x335fdb);return _0x41af40&&_0x335fdb&&eo(_0x502626,_0x507335,_0x335fdb),_0x335fdb;},hs=(_0x1c81d3,_0x2ac7b9)=>(_0x21243f,_0x2db129)=>_0x2ac7b9(_0x21243f,_0x2db129,_0x1c81d3);let Rt=class{constructor(_0x217442,_0x5f30f9){const _0x59038a=_0x1e1deb;this['_configService']=_0x217442,this[_0x59038a(0x2d1)]=_0x5f30f9;}async[_0x1e1deb(0x309)](_0x4abab7,_0x5c61bb){const _0x1357ca=_0x1e1deb;var _0x1c849a;const {unitID:_0x36b1cc,type:_0x5d54c5,revision:_0x5f404c=0x0}=_0x5c61bb,_0x248159=this[_0x1357ca(0x1db)]()+'/'+_0x5d54c5+_0x1357ca(0x19e)+_0x36b1cc+_0x1357ca(0x303)+_0x5f404c,_0x244d3f=(await this[_0x1357ca(0x2d1)][_0x1357ca(0x10a)](_0x248159))['body'],_0x4677e9=(_0x1c849a=_0x244d3f[_0x1357ca(0x17c)])==null?void 0x0:_0x1c849a[_0x1357ca(0x30f)];if(_0x4677e9){const _0x5c0bfc=_0x4677e9==null?void 0x0:_0x4677e9[_0x1357ca(0x33d)],_0x234b86=_0x3faa9c[_0x1357ca(0x2b6)](_0x41bd2d(_0x5c0bfc));_0x4677e9[_0x1357ca(0x33d)]=_0x234b86,Object['entries'](_0x4677e9[_0x1357ca(0x331)])[_0x1357ca(0x23e)](([,_0x465410])=>{const _0x595597=_0x1357ca,_0x5134f1=_0x465410[_0x595597(0x33d)],_0x403ab6=_0x3faa9c['encode'](_0x41bd2d(_0x5134f1));_0x465410[_0x595597(0x33d)]=_0x403ab6;});}return _0x244d3f;}async[_0x1e1deb(0x39c)](_0x3be9e7,_0x367347){const _0x4d3200=_0x1e1deb,{unitID:_0xae3727,type:_0x52861d,blockID:_0x49deff}=_0x367347,_0x486564=this['_getAPIPrefix']()+'/'+_0x52861d+_0x4d3200(0x19e)+_0xae3727+'/block/'+_0x49deff;return(await this['_httpService']['get'](_0x486564))[_0x4d3200(0x434)];}async['fetchMissingChangesets'](_0xdb636b,_0x313032){const _0x243bac=_0x1e1deb,{unitID:_0x5aabe8,type:_0x4e2c16,from:_0x5a92e3,to:_0x2c4f76}=_0x313032,_0x4d314e=this[_0x243bac(0x34c)]()+'/'+_0x4e2c16+_0x243bac(0x19e)+_0x5aabe8+_0x243bac(0x1fa)+_0x5a92e3+_0x243bac(0x1b6)+_0x2c4f76;return(await this['_httpService'][_0x243bac(0x10a)](_0x4d314e))[_0x243bac(0x434)];}[_0x1e1deb(0x1db)](){const _0xbb3b60=_0x1e1deb;var _0x72421a;return(_0x72421a=this[_0xbb3b60(0x26b)]['getConfig'](cn))!=null?_0x72421a:this['_getAPIPrefix']();}[_0x1e1deb(0x34c)](){const _0x344aed=_0x1e1deb;var _0x4e45c8;return(_0x4e45c8=this['_configService'][_0x344aed(0x35c)](on))!=null?_0x4e45c8:an;}async[_0x1e1deb(0x25f)](_0x5ab554,_0x285625){const _0x3f93f8=_0x1e1deb,_0x5f46d3='/universer-api/snapshot/'+_0x285625[_0x3f93f8(0x2cc)]+_0x3f93f8(0x19e)+_0x285625[_0x3f93f8(0x370)]+'/resources';return(await this[_0x3f93f8(0x2d1)][_0x3f93f8(0x10a)](_0x5f46d3,{'params':{'resourceId':JSON[_0x3f93f8(0x32f)](_0x285625['resourceIDs'])}}))[_0x3f93f8(0x434)];}['saveSnapshot'](){const _0x5ba0bf=_0x1e1deb;throw new Error(_0x5ba0bf(0x3a5));}[_0x1e1deb(0x178)](){const _0x183c87=_0x1e1deb;throw new Error(_0x183c87(0x3a5));}[_0x1e1deb(0x140)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Rt=so([hs(0x0,_0x5445a8),hs(0x1,_0x441fe2(_0x34ef08))],Rt);var io=Object[_0x1e1deb(0x158)],no=Object['getOwnPropertyDescriptor'],ro=(_0x1452b2,_0x1e5a6e,_0xd640cf,_0x5ef52a)=>{const _0x493bab=_0x1e1deb;for(var _0x267e60=_0x5ef52a>0x1?void 0x0:_0x5ef52a?no(_0x1e5a6e,_0xd640cf):_0x1e5a6e,_0x43b008=_0x1452b2[_0x493bab(0x426)]-0x1,_0x49c055;_0x43b008>=0x0;_0x43b008--)(_0x49c055=_0x1452b2[_0x43b008])&&(_0x267e60=(_0x5ef52a?_0x49c055(_0x1e5a6e,_0xd640cf,_0x267e60):_0x49c055(_0x267e60))||_0x267e60);return _0x5ef52a&&_0x267e60&&io(_0x1e5a6e,_0xd640cf,_0x267e60),_0x267e60;},Pe=(_0x44aacb,_0xbc1b2c)=>(_0x1d804c,_0x52376d)=>_0xbc1b2c(_0x1d804c,_0x52376d,_0x44aacb);let Ot=class extends _0x3da1d9{constructor(_0x1f4175,_0x5ef20c,_0x2c397b,_0x5bb33f,_0x24e15c){const _0xb62b81=_0x1e1deb;super(_0x1f4175,_0x5ef20c,_0x2c397b),this[_0xb62b81(0x258)]=_0x5bb33f,this[_0xb62b81(0x12a)]=_0x24e15c;}[_0x1e1deb(0x2f2)](_0x198da2,_0x19b569){const _0x260ae1=_0x1e1deb,_0x2ac096=this['_getUndoStack'](_0x198da2);if(_0x2ac096)try{const _0x2f5762=this[_0x260ae1(0x33a)](_0x2ac096,_0x19b569);this[_0x260ae1(0x134)](_0x198da2,_0x2f5762);}catch(_0x5be885){this[_0x260ae1(0x12a)][_0x260ae1(0x1f8)](_0x260ae1(0x2f7),_0x5be885),this[_0x260ae1(0x2bf)](_0x198da2);}const _0x547600=this[_0x260ae1(0x191)](_0x198da2);if(_0x547600)try{const _0x187b46=this[_0x260ae1(0x33a)](_0x547600,_0x19b569);this[_0x260ae1(0x2b2)](_0x198da2,_0x187b46);}catch(_0xbe45cf){this[_0x260ae1(0x12a)][_0x260ae1(0x1f8)](_0xbe45cf),this[_0x260ae1(0x2e9)](_0x198da2);}}['_clearUndo'](_0x3359ea){const _0x2fbe63=_0x1e1deb,_0x380e28=this[_0x2fbe63(0x251)](_0x3359ea);_0x380e28&&(_0x380e28[_0x2fbe63(0x426)]=0x0,this[_0x2fbe63(0x353)]());}[_0x1e1deb(0x2e9)](_0x7d43ac){const _0x31f916=this['_getRedoStack'](_0x7d43ac);_0x31f916&&(_0x31f916['length']=0x0,this['_updateStatus']());}[_0x1e1deb(0x134)](_0x299506,_0x5d3f64){const _0x22df89=_0x1e1deb;this[_0x22df89(0x2a7)][_0x22df89(0x394)](_0x299506,_0x5d3f64),this[_0x22df89(0x353)]();}['_substituteRedoStack'](_0x1f1810,_0x34675a){const _0x3c279c=_0x1e1deb;this[_0x3c279c(0x37b)]['set'](_0x1f1810,_0x34675a),this[_0x3c279c(0x353)]();}[_0x1e1deb(0x33a)](_0x4536b6,_0x1b4b20){const _0x572fac=_0x1e1deb,_0x4d04d2=[];let _0x29fccb=_0x1b4b20,_0x1c71cf=_0x1b4b20;for(let _0x2a75c4=_0x4536b6[_0x572fac(0x426)]-0x1;_0x2a75c4>=0x0;_0x2a75c4--){const {unitID:_0x5a3210,undoMutations:_0x515979,redoMutations:_0x52c9bd}=_0x4536b6[_0x2a75c4],_0x1d51e1=this[_0x572fac(0x258)]['transformMutationsWithChangeset'](_0x29fccb,_0x515979),_0x23e11e=this[_0x572fac(0x258)][_0x572fac(0x3a3)](_0x1c71cf,_0x52c9bd);if(_0x5339fb(_0x1d51e1)||_0x5339fb(_0x23e11e)){this[_0x572fac(0x12a)][_0x572fac(0x1f8)](_0x572fac(0x2f7),_0x572fac(0x387),_0x1d51e1,_0x23e11e);break;}_0x29fccb=_0x1d51e1['c1Prime'],_0x1c71cf=_0x23e11e['c1Prime'],_0x4d04d2[_0x572fac(0x39d)]({'unitID':_0x5a3210,'undoMutations':_0x1d51e1[_0x572fac(0x2fa)],'redoMutations':_0x23e11e[_0x572fac(0x2fa)]});}return _0x4d04d2[_0x572fac(0x269)]();}};Ot=ro([Pe(0x0,_0x4902a5),Pe(0x1,_0x9845f),Pe(0x2,_0x3def4f),Pe(0x3,_0x1e0f5c),Pe(0x4,_0x5f4df3)],Ot);class oo extends _0x5b9cf1{constructor(){const _0x2f2309=_0x1e1deb;super(),l(this,_0x2f2309(0x1ab)),this[_0x2f2309(0x1ab)]=_0x1fd07d(window,_0x2f2309(0x20d))[_0x2f2309(0x119)](_0x3f75b0(this[_0x2f2309(0x413)]),_0xaffb9f(0x1),_0x497582(void 0x0));}[_0x1e1deb(0x3d7)](_0x50712a,_0x1ee5f8,_0x26b221=!0x1){const _0x2f639e=_0x1e1deb,_0x24c4b6=new URL(window[_0x2f639e(0x2f4)]['href']);_0x24c4b6[_0x2f639e(0x118)][_0x2f639e(0x394)](_0x50712a,_0x1ee5f8),_0x26b221?window[_0x2f639e(0x424)][_0x2f639e(0x21c)]('','',_0x24c4b6[_0x2f639e(0x400)]()):window['history'][_0x2f639e(0x335)]('','',_0x24c4b6[_0x2f639e(0x400)]());}['removeParam'](_0x2628fe,_0x438393=!0x1){const _0x1f8ce0=_0x1e1deb,_0x14e136=new URL(window['location'][_0x1f8ce0(0x111)]);_0x14e136[_0x1f8ce0(0x118)][_0x1f8ce0(0x36f)](_0x2628fe),_0x438393?window['history'][_0x1f8ce0(0x21c)]('','',_0x14e136['toString']()):window[_0x1f8ce0(0x424)][_0x1f8ce0(0x335)]('','',_0x14e136[_0x1f8ce0(0x400)]());}['getParam'](_0x3c9dfa){const _0x2f7dbb=_0x1e1deb;var _0x4fc706;return(_0x4fc706=new URL(window[_0x2f7dbb(0x2f4)][_0x2f7dbb(0x111)])[_0x2f7dbb(0x118)][_0x2f7dbb(0x10a)](_0x3c9dfa))!=null?_0x4fc706:void 0x0;}}const _t=_0x1e1deb(0x308),ao=_0x1e1deb(0x282),co=_0x1e1deb(0x151),we=0x6,ho=1.5,ut=0x4,lo=1.5,_o=_0x1e1deb(0x435);class ls{constructor(_0x10eccd,_0x2a0e67,_0x36714b,_0x484bcb){const _0x41e7b6=_0x1e1deb;l(this,_0x41e7b6(0x2d8),[]),l(this,_0x41e7b6(0x1e5),null),l(this,_0x41e7b6(0x2a3),null),l(this,_0x41e7b6(0x3ee),null),l(this,_0x41e7b6(0x1df),null),l(this,_0x41e7b6(0x12d),null),(this[_0x41e7b6(0x17b)]=_0x10eccd,this[_0x41e7b6(0x227)]=_0x2a0e67,this[_0x41e7b6(0x403)]=_0x36714b,this[_0x41e7b6(0x340)]=_0x484bcb,this[_0x41e7b6(0x136)]());}set[_0x1e1deb(0x1ef)](_0x361f75){const _0x2ac9b8=_0x1e1deb;_0x361f75?(this[_0x2ac9b8(0x3ee)]&&this[_0x2ac9b8(0x3ee)][_0x2ac9b8(0x389)](),this['_textBubble']&&this['_textBubble'][_0x2ac9b8(0x154)]()):(this[_0x2ac9b8(0x3ee)]&&this['_anchorDot'][_0x2ac9b8(0x154)](),this[_0x2ac9b8(0x2a3)]&&this['_textBubble'][_0x2ac9b8(0x389)]());}[_0x1e1deb(0x1de)](){const _0x432ac4=_0x1e1deb;for(const _0x4a3db9 of this[_0x432ac4(0x2d8)])_0x4a3db9[_0x432ac4(0x1de)]();this['_textBubble']&&this[_0x432ac4(0x2a3)][_0x432ac4(0x1de)](),this[_0x432ac4(0x3ee)]&&this['_anchorDot'][_0x432ac4(0x1de)](),this[_0x432ac4(0x1e5)]&&this[_0x432ac4(0x1e5)]['dispose'](),this[_0x432ac4(0x12d)]&&this[_0x432ac4(0x12d)]();}['_render'](){const _0x5a8dc8=_0x1e1deb;var _0x5bd4bc;const {_docSkeleton:_0xce096,_document:_0x4884dc}=this,{color:_0x12876e,name:_0x2c381b,ranges:_0x5cd29d}=this[_0x5a8dc8(0x17b)],_0x26f5c0=_0x4884dc[_0x5a8dc8(0x41a)](),{docsLeft:_0x42b46c,docsTop:_0x53581e}=_0x26f5c0,_0xbce8e3=new _0x23cfc5(_0x26f5c0,_0xce096);for(const {startOffset:_0x80f0e5,endOffset:_0x5dc4bb,collapsed:_0x233c7b,isActive:_0xf6a7a9}of _0x5cd29d){const _0x41a783=_0xce096[_0x5a8dc8(0x2a8)](_0x80f0e5),_0x26234a=_0xce096['findNodePositionByCharIndex'](_0x5dc4bb);if(_0xf6a7a9){const {contentBoxPointGroup:_0x21c0f2}=_0xbce8e3['getRangePointData'](_0x26234a,_0x26234a);if(_0x21c0f2[_0x5a8dc8(0x426)]===0x0)continue;this[_0x5a8dc8(0x12f)](_0x12876e,_0x21c0f2,_0x42b46c,_0x53581e,_0x2c381b),this[_0x5a8dc8(0x12d)]=this[_0x5a8dc8(0xff)]();}if(!_0x233c7b&&_0x41a783&&_0x26234a){if(_0x4e3ab9(_0x41a783,_0x26234a)){const _0x5f57d1=new _0x52f652(_0x26f5c0,_0xce096),{pointGroup:_0x8f8643}=(_0x5bd4bc=_0x5f57d1['getRangePointData'](_0x41a783,_0x26234a))!=null?_0x5bd4bc:{};if(_0x8f8643==null||_0x8f8643['length']===0x0)continue;this[_0x5a8dc8(0x21a)](_0x12876e,_0x8f8643,_0x42b46c,_0x53581e);}else{const {contentBoxPointGroup:_0x5d5d03}=_0xbce8e3[_0x5a8dc8(0x110)](_0x41a783,_0x26234a);if(_0x5d5d03[_0x5a8dc8(0x426)]===0x0)continue;this['_drawTextRange'](_0x12876e,_0x5d5d03,_0x42b46c,_0x53581e);}}}}['_drawAnchor'](_0x3524b8,_0x20d86b,_0x1af146,_0x262c54,_0xae6fe9){const _0x503508=_0x1e1deb,_0x3fe50b=this[_0x503508(0x18a)](_0x20d86b),{left:_0x208aa0,top:_0x1a8e7a,height:_0xdbffd5}=_0x3fe50b,_0x388bdb=this['_getScale'](),_0x17b3a8=lo/_0x388bdb,_0x322af9=new _0xb0d98f(_t+_0x4526c0['generateRandomId'](we),{'left':_0x208aa0+_0x1af146-_0x17b3a8,'top':_0x1a8e7a+_0x262c54,'height':_0xdbffd5,'width':ho,'fill':_0x3524b8||_0x2c779e(_0x5090fb[_0x503508(0x16c)],0x0),'strokeWidth':_0x17b3a8,'stroke':_o,'evented':!0x0});this['_anchor']=_0x322af9,this[_0x503508(0x227)][_0x503508(0x161)](_0x322af9,_0x261e5f);const _0x4b90e2=new _0xb0d98f(_t+_0x4526c0[_0x503508(0x259)](we),{'left':_0x208aa0+_0x1af146-_0x17b3a8,'top':_0x1a8e7a+_0x262c54-ut/0x2,'height':ut,'width':ut,'fill':_0x3524b8||_0x2c779e(_0x5090fb[_0x503508(0x16c)],0x0),'strokeWidth':0x0,'stroke':_0x3524b8||_0x2c779e(_0x5090fb[_0x503508(0x16c)],0x0),'evented':!0x1});this[_0x503508(0x3ee)]=_0x4b90e2,this['_scene'][_0x503508(0x161)](_0x4b90e2,_0x261e5f);const _0x4366bc=new it(_t+_0x4526c0[_0x503508(0x259)](we),{'left':_0x208aa0+_0x1af146-_0x17b3a8,'top':_0x1a8e7a+_0x262c54-Ue,'text':_0xae6fe9,'color':_0x3524b8});this[_0x503508(0x2a3)]=_0x4366bc,this['_scene'][_0x503508(0x161)](_0x4366bc,_0x261e5f),this[_0x503508(0x1ef)]=!0x1;}[_0x1e1deb(0xff)](){const _0x10f24e=_0x1e1deb,_0x525126=this[_0x10f24e(0x1e5)][_0x10f24e(0x1c8)][_0x10f24e(0x364)](()=>{const _0xe8e760=_0x10f24e;this[_0xe8e760(0x1ef)]=!0x0;}),_0x444691=this[_0x10f24e(0x1e5)]['onPointerLeave$'][_0x10f24e(0x364)](()=>{const _0xd466bd=_0x10f24e;this[_0xd466bd(0x1df)]&&clearTimeout(this['_hideTimer']),this[_0xd466bd(0x1df)]=setTimeout(()=>{const _0x42399a=_0xd466bd;this[_0x42399a(0x1ef)]=!0x1;},0x7d0);});return()=>{const _0x2fc9dc=_0x10f24e;_0x525126[_0x2fc9dc(0x376)](),_0x444691[_0x2fc9dc(0x376)]();};}[_0x1e1deb(0x327)](_0x21df58,_0x261408,_0x309978,_0x2e1957){const _0x2d2f25=_0x1e1deb,_0x5e42f3=new _0x1d709d(_0x21df58)[_0x2d2f25(0x1cb)](0.2)[_0x2d2f25(0x10b)](),_0x2f8150=new _0x3fb47a(ao+_0x4526c0[_0x2d2f25(0x259)](we),{'pointsGroup':_0x261408,'fill':_0x5e42f3||_0x2c779e(_0x5090fb[_0x2d2f25(0x16c)],0.2),'left':_0x309978,'top':_0x2e1957,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2d2f25(0x2d8)][_0x2d2f25(0x39d)](_0x2f8150),this[_0x2d2f25(0x227)][_0x2d2f25(0x161)](_0x2f8150,_0x261e5f);}[_0x1e1deb(0x21a)](_0x546779,_0x52d491,_0x1550c5,_0x424bda){const _0x97ff82=_0x1e1deb,_0x27dc54=new _0x1d709d(_0x546779)[_0x97ff82(0x1cb)](0.2)[_0x97ff82(0x10b)](),_0x265569=new _0x3fb47a(co+_0x4526c0[_0x97ff82(0x259)](we),{'pointsGroup':_0x52d491,'fill':_0x27dc54||_0x2c779e(_0x5090fb['black'],0.2),'left':_0x1550c5,'top':_0x424bda,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x97ff82(0x39d)](_0x265569),this['_scene'][_0x97ff82(0x161)](_0x265569,_0x261e5f);}[_0x1e1deb(0x18a)](_0x463cb1){const _0x4b5703=_0x463cb1[0x0],_0xb40da1=_0x4b5703[0x0],_0x23a388=_0x4b5703[0x2],{x:_0x1f185c,y:_0x3963a7}=_0xb40da1,{x:_0x24a21a,y:_0x3fe9f6}=_0x23a388;return{'left':_0x1f185c,'top':_0x3963a7,'width':_0x24a21a-_0x1f185c,'height':_0x3fe9f6-_0x3963a7};}[_0x1e1deb(0x3b6)](){const _0x1bf155=_0x1e1deb,{scaleX:_0x1c261d,scaleY:_0x1220ef}=this['_scene'][_0x1bf155(0x197)]();return Math[_0x1bf155(0x274)](_0x1c261d,_0x1220ef);}}var uo=Object[_0x1e1deb(0x158)],mo=Object['getOwnPropertyDescriptor'],fo=(_0x2fd6a0,_0x1b703e,_0x43bc04,_0x3b2e09)=>{const _0x57f08e=_0x1e1deb;for(var _0x4300c7=_0x3b2e09>0x1?void 0x0:_0x3b2e09?mo(_0x1b703e,_0x43bc04):_0x1b703e,_0x4bca6d=_0x2fd6a0[_0x57f08e(0x426)]-0x1,_0x9c390e;_0x4bca6d>=0x0;_0x4bca6d--)(_0x9c390e=_0x2fd6a0[_0x4bca6d])&&(_0x4300c7=(_0x3b2e09?_0x9c390e(_0x1b703e,_0x43bc04,_0x4300c7):_0x9c390e(_0x4300c7))||_0x4300c7);return _0x3b2e09&&_0x4300c7&&uo(_0x1b703e,_0x43bc04,_0x4300c7),_0x4300c7;},je=(_0xc07444,_0x8872e8)=>(_0x120429,_0xbd9e49)=>_0x8872e8(_0x120429,_0xbd9e49,_0xc07444);let Be=class extends _0x5b9cf1{constructor(_0x44b30b,_0x10905a,_0x5da8f4,_0x5109a0,_0x59d2d5){const _0x4fc687=_0x1e1deb;super(),l(this,'_cursorShapes',[]),l(this,_0x4fc687(0x18b),[]),(this[_0x4fc687(0x428)]=_0x44b30b,this[_0x4fc687(0x338)]=_0x10905a,this['_collabCursorController']=_0x5da8f4,this[_0x4fc687(0x1fb)]=_0x5109a0,this[_0x4fc687(0x281)]=_0x59d2d5,this[_0x4fc687(0x37a)]());}[_0x1e1deb(0x37a)](){const _0x1c8e27=_0x1e1deb,_0x5f02c3=this['_context'][_0x1c8e27(0x439)],_0x301ef6=this[_0x1c8e27(0x338)];this[_0x1c8e27(0x32e)](_0x1a6529([this[_0x1c8e27(0x307)]['getCollabCursors$'](_0x5f02c3),this[_0x1c8e27(0x281)]['currentTheme$']])[_0x1c8e27(0x119)](_0x5ac769(([_0x5175ce,_0x31db80])=>({'skeleton':_0x301ef6[_0x1c8e27(0x176)](),'cursors':[..._0x5175ce[_0x1c8e27(0x1ec)]()][_0x1c8e27(0x268)](_0x30a1e5=>({..._0x30a1e5,'color':_0x31db80[_0x30a1e5[_0x1c8e27(0x39f)]]}))})))[_0x1c8e27(0x3e0)](_0x35a2b7=>{const _0x1b9da4=_0x1c8e27;if(this[_0x1b9da4(0x383)](),_0x35a2b7){const {skeleton:_0x21ebe1,cursors:_0x567ac1}=_0x35a2b7;this['_updateCollabCursors'](_0x21ebe1,_0x567ac1);}})),this['_initResize'](),this[_0x1c8e27(0x36a)]();}[_0x1e1deb(0x31e)](_0x281ade,_0x165566){const _0x533def=_0x1e1deb,{scene:_0x27caf7,mainComponent:_0x4bcdb9}=this[_0x533def(0x428)],_0x393cbc=_0x165566[_0x533def(0x230)](_0x1b74d0=>new ls(_0x1b74d0,_0x27caf7,_0x281ade,_0x4bcdb9));this['_cursorShapes']=_0x393cbc,this['_cursors']=_0x165566;}[_0x1e1deb(0x425)](){const _0x171314=_0x1e1deb;this[_0x171314(0x383)]();const {scene:_0x6a3993,mainComponent:_0x2d3d30}=this[_0x171314(0x428)],_0x346d49=this[_0x171314(0x338)][_0x171314(0x176)](),_0x387ce7=this['_cursors'][_0x171314(0x230)](_0x429713=>new ls(_0x429713,_0x6a3993,_0x346d49,_0x2d3d30));this[_0x171314(0x150)]=_0x387ce7;}[_0x1e1deb(0x383)](){const _0x2e6ea6=_0x1e1deb;this[_0x2e6ea6(0x150)][_0x2e6ea6(0x23e)](_0x49124b=>_0x49124b[_0x2e6ea6(0x1de)]()),this[_0x2e6ea6(0x150)]=[];}['_initCommandExecutedListener'](){const _0x2a3cbd=_0x1e1deb,_0xda4e21=[_0x21025d['id']];this[_0x2a3cbd(0x32e)](this[_0x2a3cbd(0x1fb)][_0x2a3cbd(0x250)](_0x1b5270=>{const _0x305795=_0x2a3cbd;_0xda4e21[_0x305795(0x23a)](_0x1b5270['id'])&&_0x1b5270[_0x305795(0x42b)][_0x305795(0x439)]===this[_0x305795(0x428)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x1e1deb(0x30c)](){const _0x1d78de=_0x1e1deb;this['disposeWithMe'](_0x3cb543(this[_0x1d78de(0x428)][_0x1d78de(0x313)][_0x1d78de(0x252)])[_0x1d78de(0x119)](_0x190413(_0x36b30c=>_0x36b30c['type']===_0x3aecba[_0x1d78de(0x1ad)]),_0x4faae9(0x10))[_0x1d78de(0x3e0)](()=>{const _0x49e7de=_0x1d78de;this[_0x49e7de(0x425)]();}));}};Be=fo([_0x3e0133(_0x1781f1[_0x1e1deb(0x2ed)],Be),je(0x1,_0x441fe2(_0x1b04a5)),je(0x2,_0x441fe2(ge)),je(0x3,_0x9845f),je(0x4,_0x441fe2(_0x5af768))],Be);function _0x48fb(){const _0x313528=['transformMutationsWithChangeset','objectActions','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','onlineStatusIcon','_initStatusComponent','_collaborationController','_change$','onlineStatusTitle','JOINING','LICENSE_EXPORT_SIZE_EXCEEDED','selection','_loadDoc','/universer-api/comb','subUnitId','_lockTransition','LICENSE_IMPORT_SIZE_EXCEEDED','width','_acknowledgedAwaitingChangeset','permissionRejEvent','_getScale','_rescheduleHeartbeatEvent','_socket$','DEFAULT_FILE_NAME','updatePermissionPoint','HEADER_MENU','_initStatusListener','Starting','getMemberID','assignAColorForMemberID','_collaborationSessionService','interceptor','ONLINE','_transformIMECache','[CollaborationSessionService]:\x20socket\x20error','RECV','FETCH_MISS','image/gif','_startSheetCollabCursor','MoveRangeCommandId','LEAVE','_transformRemoteChangesetByIMECache','evenodd','next','_sendHeartbeat','getUnitId','UNIVER_SHEET','session.collaboration-timeout','getInterceptPoints','_initCloseConn','socket\x20close','children','liveShareNewHost','setParam','univer-online-status-icon','isActive','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','init','drawWith','_notificationService','csRejEvent','font','subscribe','[UniverCollaborationClientPlugin]','getActiveRange','allowed','_cachedData','_onUserLeave','_setupSubUnitSync','executeCommand','reject','transformChangesets','_singleActiveUnitService','addObjects','uni.network.url-service','_urlService','_anchorDot','setInterval','transform','_members','pending','InsertColCommandId','unload','/-/object/-/batch_allowed','objects','saveImage','_transformSelections','transformRemoteChangeset','_removeRoom','CHANGESET_REJ','subunit','filter','loadSheet','onSyncEditingCollabCursor','toString','/universer-api/snapshot','CHANGESET_ACK','_docSkeleton','RemoveColCommandId','getTypeOfUnitAdded$','_exhaustRemoteChangesetQueue','_syncEditingCollabCursor','function','send','_snapshotService','clipPath','triggerDblclick','session.room-full','syncEditingCollabCursor','_onMessage','HEARTBEAT','_range','doc.mutation.rich-text-editing','dispose$','min','fetching\x20missing\x20changesets\x20from\x20','#fff','_tryEnsureSocket','unit','DeleteRangeMoveLeftCommandId','getOffsetConfig','UNIVER_SLIDE','LOCAL_CACHE_INTERVAL','restore','extend','_onConnectionFailed','INGEST','roomMembers$','MSG_FOR_ERROR','_waitCount','history','_refreshCollabCursors','length','from','_context','backgroundColor','override','params','members','[CollaborationSessionService]','getRoom','_cursorInfo$','cursorInfo$','[PendingState]:\x20received\x20acknowledgement.','_injector','complete','body','rgba(255,\x20255,\x20255,\x200.01)','PERMISSION_REJ','_toggleOffline','sheetID','unitId','infoRsp','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','focused$','onTransformSelections','_handleHover','_retryConnectingTimer','ERROR_IMAGE','_name','json','_onUserJoin','NOT_COLLAB','\x20-\x20','getValue','9nTpKTq','_scheduleHeartbeat','get','toRgbString','POST','_draw','name','_replaceFileID','getRangePointData','href','fillRule','_labelPosition','concat','_localStorageService','createInstance','isArray','searchParams','pipe','add','m1Prime','responseType','_handleJoinEvent','session','_socketReady','COLLAB_SUBMIT_CHANGESET_URL','/object/','YUUMI_UNABLE_LOAD_URL','NOT_FOUND','clear','_unlockTransition','revision','_onRemoteChangeset','_state$','cmd','_logService','getTime','[CollaborationState]:\x20apply\x20error!','_eventUnsubscribe','use','_drawAnchor','_messageService','objectType','_online','collabStatus.synced','_substituteUndoStack','_queuedRemoteChangesets','_render','transformSelections','collabCursorState$','LIVESHARE_FETCH_OPERATIONS','toggleOnline','className','translate(.97)','LICENSE_DISTRO_REJECTED','_memberService','readAsDataURL','saveChangeset','_event$','conflict','sessionStatus','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_univerInstanceService','onload','onlineStatus','liveShareOperation','_getCurrentRevision','getParam','fillText','_scheduleCollaborationTimeoutTimer','collaboratorID','asObservable','JOIN','_cursorShapes','collab-rect-range-','deepClone','3963470poEgnt','show','_hovered','_commentUpdate$','0\x200\x2016\x2016','defineProperty','string','_lastPointer','list','onSendChangeset','Warning','FETCH_MISSING','actions','getWorkbookSelections','addObject','append','withCredentials','\x20in\x20_schedule.','_getSignURL','putCollaborators','onPointerMove$','_updateURLWithCurrentState','_disableEditing','/collaborator','off-line-single','black','measureText','_replayCachedMutations','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','none','SHOULD_CLOSE_CONN','FromArray','MUTATION','_sheetTransformSelectionsService','image/bmp','getSkeleton','_registerDependencies','saveSheetBlock','setWaitCount','NO_OTHER_CLIENTS_EDITING','_cursor','snapshot','enableAuthServer','UNKNOWN_CMD','createSocket','symbol','SUBMIT_CHANGESET','getUnitType','Univer','fetchThroughInterceptors','_docTransformIMECacheService','socketService','_onConnectionOpen','_session','[DataLoaderController]','_getAnchorBounding','_cursors','labelPosition','_transformUndoredo','_scheduleClearOtherTimer','_snapshotServerService','submit\x20changeset\x20error!','_getRedoStack','_userManagerService','connection\x20error','clearInterval','_state','indexOf','getAncestorScale','_schedule','whenReady','not_collab','collabStatus.syncing','getCollabCursors$','getItem','/unit/','event$','UNIVER_COLLABORATION_CLIENT_PLUGIN','_createInitialState','substring','APPLY_REJECT','_onRemoteRejected','CONNECTOR_DATA_TOO_LARGE','getUnhiddenWorksheets','conflict.content','colorChannel1','ws://127.0.0.1:8000/universer-api/comb/connect','_http','urlChange$','_executeRemoteChangeset','resize','_remoteChangesetQueue','src','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','UNRECOGNIZED','_ensureSubject','COMPRESS_MUTATION_APPLY','size','SNAPSHOT_URL_KEY','&to=','AWAITING_WITH_PENDING','_getMergeRange','_socketService','c1Prime','LIVESHARE_TERMINATE','1em','_handleLeaveEvent','endRow','{fileID}','INVALID_ARGUMENT','endColumn','prototype','univer-offline','confirm','onTransformRemoteChangesetByIMECache','M0\x200H16V16H0z','UNIVER_DOC','onPointerEnter$','pauseCollaboration','_submitChangeset','setAlpha','getUndoRedoMutationParamsCache','_roomMembers$','catch','contains','_undoRedoService','socket\x20open.','1028130wtKxYy','getCollabEntity$','_imageSourceCache','code','registerRefRange','slice','_getCtorByUniverType','fetchMissingChangesets','_getAPIPrefixPath','_getSnapshotAPIPrefix','LIVESHARE_OPERATION','_ws','dispose','_hideTimer','univer-pro.collaboration-client-socket-service','parse','_id','has','encodeURIComponent','_anchor','trim','805LyhGIC','then','_scheduleTimestamp','currentColor','_permissionService','values','338yrKBja','onStarting','_hover','916455TxfTlp','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_localCacheService','/universer-api/authz','getViewport','RETRY_CONNECTING_MAX_COUNT','_timeoutTimer','row','error','awaiting_with_pending','/fetchmissing?from=','_commandService','debug','_decreaseWaiting','registerBeforeClose','AUTHZ_URL_KEY','status$','getImage','getCurrentRevForDocument','textRanges','enableOfflineEditing','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','attrs','UPDATE_PERMISSION_OBJ','storage','rev','replace','idSuffix','getCurrentUser','popstate','...','[CollaborationEntity]','SEND_CHANGESET_TIMEOUT','_createSocket','baseRev','objectID','_onFetchMissResult','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','random','permission.content','transformIMECache','_unitOnClients','_drawRectRange','_sessions','replaceState','UPDATE_CURSOR','UNKNOWN_CODE','IDLE','sessionStatus$','auth.needGotoLoginAlert','updateCollaborator','_initMergeInterceptor','/universer-api/oidc/authpage','_toggleOnline','FileId','_scene','getFocusedUnit','state$','/universer-api/file/{fileID}/sign-url','_incrementRevisionNumber','3243TLrxeF','_updateLocalCursor','awaitingChangeset','onCommentUpdate','map','_colorAssignService','icon','_backgroundColor','UNIVER_UNKNOWN','22986fnXIJj','startColumn','_uiPartsService','removeMember','HEARTBEAT_TIMEOUT','includes','_getSheetObject','_pendingMutations','SYNCED','forEach','updateMember','startsWith','_initUnitPermissionChange','csAckEvent','listRoles','title','setTimeout','hasOwnProperty','changesets','fill','Ready','_clearOtherTimers','round','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','column','currentTheme$','collaMsg','onCommandExecuted','_getUndoStack','onTransformChange$','_heartbeatTimer','xlink:href','[PendingState]:\x20received\x20rejection.','newValue','current','_transformService','generateRandomId','_updateSubUnitFromURLParams','onRemoteChangeset','0\x200\x2017\x2016','roomMembers','USERS_LEAVE','getResourcesRequest','image/jpeg','_handleEvent','newCsEvent','defIds','onRendered','data','_sendingTimer','TOO_MANY_REQUESTS','flatMap','reverse','[OfflineState]:\x20received\x20acknowledgement.','_configService','RemoveRowCommandId','defs','_collabCursorState$','failed\x20to\x20apply\x20missed\x20changesets!','onlyLocal','fillStyle','_entities','replaceTextRanges','max','blue400','getVpScrollXYInfoByPosToVp','_handleHeartbeatEvent','disableLocalCache','univer-online','shouldCloseConn','_beforeCloseService','image/jpg','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','closePath','roomInfos','loadDoc','_themeService','collab-text-range-','memberID','LICENSE_MAX_UNITS_EXCEEDED','YUUMI_URL_COL_OUT_OF_RANGE','_sessionStatus$','selections','OTHER_CLIENTS_EDITING','_retryCount','_colorIndex','setItem','_setupBeforeClosingHandler','_initModules','Unknown\x20user','_createInitialStateImpl','[FetchMissState]','offline','fromCollab','pluginName','/new_changes','onMouseMove','_sendHeartbeatTimer','HEARTBEAT_INTERVAL','getCurrent','lineTo','collabStatus.conflict','_scheduleSaving','_docSyncEditingCollabCursorService','/-/object/list','_docTransformSelectionsService','USERS_ENTER','displayName','split','_onCursorDelete','_textBubble','_syncEditingCollabCursorService','getOwnPropertySymbols','_HTTPService','_undoStacks','findNodePositionByCharIndex','_onJoinRoomEvent','_color','LIVESHARE_REQUEST_HOST','getUnitStatus$','closeSession','arc','_renderManagerService','_selfUnitIDs','fetch_missing','_substituteRedoStack','online','updateOfflineData','_collaborationTimeoutTimer','encode','SNAPSHOT_HAS_BEEN_REMOVED','_refRangeService','unshift','on-line-single','ALREADY_EXISTS','error$','path','getImageSourceCache','_clearUndo','localeService','startRow','getSheetId','RETRY_CONNECTING_INTERVAL','gold400','LIVESHARE_NEW_HOST','requireSession','ACTIVE_UNIT_EVENT_CHANNEL','exhaustSavingTask','_unitID','_showConflictNotification','2103804dZmSdw','type','_clearTimeoutTimer','text','_roomMembers','enableSingleActiveInstanceLock','_httpService','onTransformIME','transformMutation','_collaborationPaused','session.connection-failed','_revisionService','find','_shapes','unknown','top','action','CONFLICT','toggleOffline','_send','_socketMessageSubscription','YUUMI_SUBSCRIPTION_NOT_FOUND','height','message$','_isPermissionRej','COMMENT_UPDATE','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','tag','_onRefRangeChange','save','_clearRedo','_status$','2388208RnnXjJ','svg','Steady','getSheetBySheetId','PENDING','_sheetSkeletonManagerService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','transformUndoRedo','_onLocalMutation','location','PERMISSION_DENIED','_joinRoom','[CollaborationUndoRedoService]','eventID','editingUnit','m2Prime','call','assign','close','UNAUTHENTICATED','PSEUDO_FETCH_MISSING_RESULT','_createHandler','_removeClearOtherTimer','?url=','/rev/','_registerRenderDependencies','propertyIsEnumerable','resolve','_collabCursorController','collab-text-anchor-','getUnitOnRev','COLLAB_WEB_SOCKET_URL','url','_initResize','cursorInfo','conflict.title','workbook','getCurrentSelections','_loadSheet','_compressMutationService','engine','userID','\x0aAfter:\x20','InsertRangeMoveDownCommandId','_config','collabStatus.notCollab','_checkMissing','INTERNAL_ERROR','_fetchMissChangesets','file','registerHTTPInterceptor','_updateCollabCursors','getDocRanges','_disabled','APPLY_PERMISSION_DENIED','_transitionLocked','_transformPreviousActiveRange','joinRsp','_entityInit$','COMPLETION_FINISHED','_drawTextRange','OFFLINE','loadOfflineData','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_updateLocalCache','getOwnPropertyDescriptor','isPermissionRej','disposeWithMe','stringify','_updateState','sheets','_awaitingChangeset','roles','addImageSourceCache','pushState','collaboration.single-unit.warning','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_docSkeletonManagerService','clearTimeout','_transformStack','VIEW_MAIN','Error','originalMeta','BASE64','_type','_document','_collabSessionService','target','APPLY_REVISION_CONFILICT','COMPRESS_MUTATION_SEND','ranges','_getUploadFileURL','SNAPSHOT_SERVER_URL_KEY','isEditing','routeKey','verdancy600','_socket','_getAPIPrefix','_scheduleReconnection','close$','onMissingChangesets','createElement','getUniverSheetInstance','_onCursorUpdate','_updateStatus','_saveTaskMap','_clearScheduledTask','status','mutations','post','_onConflict','[SyncedState]:\x20received\x20acknowledgement.','_startDocCollabCursor','getConfig','on-line-single_clip0_910_349','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','sheetId','_clearHeartbeatTimer','_transformUndoRedoStack','_getSendChangesetTimeout','getTypeOfUnitDisposed$','subscribeEvent','commentUpdate$','_unitStatus','_localeService','synced','red300','_initCommandExecutedListener','_assignedColors','div','beginPath','UNDEFINED','delete','unitID','[OfflineState]:\x20received\x20rejection.','resend','_handler','appendMutation','patch','unsubscribe','_clearLocalCache','APPLY_NON_SEQUENTIAL_REVISION','onRemoteAck','_init','_redoStacks','method','_commentService','onRemoteRej','HELLO','setCurrentUser','compose','_applyRemoteChangeset','_removeCollabCursors','setShapeProps','/allowed','open$','transformStack\x20failed!','FAIL','hide','requestParams','purple300','NEW_CHANGESETS','create','save\x20fail\x20reason\x20is\x20','_startCollaboration','collabStatus.fetchMiss','YUUMI_RATE_OVER_LIMIT','change$','put','set','ERROR_IMAGE_TYPE','UUID','addEventListener','UniverIcon','joinEvent','getActiveSheet','_clearCollaborationTimeoutTimer','getSheetBlock','push','_saveCache','color','getMember','every','awaiting'];_0x48fb=function(){return _0x313528;};return _0x48fb();}var go=Object[_0x1e1deb(0x158)],So=Object[_0x1e1deb(0x32c)],po=(_0x8440c6,_0x3dc453,_0x456eeb,_0x39eb3b)=>{for(var _0xccc40b=_0x39eb3b>0x1?void 0x0:_0x39eb3b?So(_0x3dc453,_0x456eeb):_0x3dc453,_0xad14ef=_0x8440c6['length']-0x1,_0x277943;_0xad14ef>=0x0;_0xad14ef--)(_0x277943=_0x8440c6[_0xad14ef])&&(_0xccc40b=(_0x39eb3b?_0x277943(_0x3dc453,_0x456eeb,_0xccc40b):_0x277943(_0xccc40b))||_0xccc40b);return _0x39eb3b&&_0xccc40b&&go(_0x3dc453,_0x456eeb,_0xccc40b),_0xccc40b;},dt=(_0x1b153b,_0x383563)=>(_0x2f09fa,_0x4ff221)=>_0x383563(_0x2f09fa,_0x4ff221,_0x1b153b);let Qe=class{constructor(_0x3690d1,_0x4c346a,_0x14e04e){const _0x263b51=_0x1e1deb;this[_0x263b51(0x26b)]=_0x3690d1,this['_httpService']=_0x4c346a,this[_0x263b51(0x2c0)]=_0x14e04e,this['init']();}['init'](){const _0x364257=_0x1e1deb;this[_0x364257(0x2d1)][_0x364257(0x31d)]({'priority':0x1,'interceptor':(_0x29295f,_0x566720)=>_0x566720(_0x29295f)[_0x364257(0x119)](_0x4ff395(async _0xd368a6=>{const _0x2a1264=_0x364257,_0x57cd53=_0xd368a6;if(_0x57cd53[_0x2a1264(0x356)]===0x191&&window[_0x2a1264(0x1c4)](this[_0x2a1264(0x2c0)]['t'](_0x2a1264(0x221)))){const _0x5379d8=window[_0x2a1264(0x1e4)](window[_0x2a1264(0x2f4)][_0x2a1264(0x111)]);window[_0x2a1264(0x2f4)][_0x2a1264(0x111)]=this['_getLoginPath']()+_0x2a1264(0x302)+_0x5379d8;}return _0x57cd53;}))});}['_getLoginPath'](){const _0x5818ab=_0x1e1deb;var _0x38c57e;return(_0x38c57e=this['_configService'][_0x5818ab(0x35c)](bn))!=null?_0x38c57e:Tn;}};Qe=po([dt(0x0,_0x5445a8),dt(0x1,_0x441fe2(_0x34ef08)),dt(0x2,_0x441fe2(_0x2cfe85))],Qe);var vo=Object[_0x1e1deb(0x158)],Io=Object[_0x1e1deb(0x32c)],Eo=(_0x4681fd,_0x30550a,_0x2613bb,_0x2fd22e)=>{const _0x36de3b=_0x1e1deb;for(var _0x39e0ce=_0x2fd22e>0x1?void 0x0:_0x2fd22e?Io(_0x30550a,_0x2613bb):_0x30550a,_0x4d6d4f=_0x4681fd[_0x36de3b(0x426)]-0x1,_0x4ce219;_0x4d6d4f>=0x0;_0x4d6d4f--)(_0x4ce219=_0x4681fd[_0x4d6d4f])&&(_0x39e0ce=(_0x2fd22e?_0x4ce219(_0x30550a,_0x2613bb,_0x39e0ce):_0x4ce219(_0x39e0ce))||_0x39e0ce);return _0x2fd22e&&_0x39e0ce&&vo(_0x30550a,_0x2613bb,_0x39e0ce),_0x39e0ce;},_s=(_0x56b7c1,_0x37b34a)=>(_0x494a87,_0x34379a)=>_0x37b34a(_0x494a87,_0x34379a,_0x56b7c1);const Co=_0x1e1deb(0x1ff),bo=_0x1e1deb(0x1f3);let Dt=class extends _0xc94eea{constructor(_0x21d1bf,_0x5d4d8f){const _0x2c2d13=_0x1e1deb;super(),this[_0x2c2d13(0x2a6)]=_0x21d1bf,this[_0x2c2d13(0x26b)]=_0x5d4d8f,this[_0x2c2d13(0x223)]();}[_0x1e1deb(0x223)](){const _0x410e64=_0x1e1deb,_0x111159=this;this[_0x410e64(0x32e)](this[_0x410e64(0x2a6)][_0x410e64(0x31d)]({'priority':0x3e7,'interceptor':_0x57c1a3({'isMatch'(_0x342ccd){const _0x1bcd12=_0x410e64;var _0x293a05;if(_0x342ccd[_0x1bcd12(0x37c)]===_0x1bcd12(0x10c)&&((_0x293a05=_0x342ccd[_0x1bcd12(0x38a)])!=null&&_0x293a05['body'])){const {objectID:_0x209144,objectType:_0x31bcc3}=_0x342ccd[_0x1bcd12(0x38a)][_0x1bcd12(0x434)]||{};if(!_0x209144||_0x31bcc3===void 0x0)return!0x1;const _0x2a4188=_0x111159['_getAPIPrefixPath']()+'/'+_0x31bcc3+_0x1bcd12(0x121)+_0x209144+_0x1bcd12(0x385);if(_0x342ccd[_0x1bcd12(0x30b)]===_0x2a4188)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5832ea){const _0x5e39bf=_0x410e64;var _0x47428e;return(_0x47428e=_0x5832ea[_0x5e39bf(0x38a)])==null?void 0x0:_0x47428e[_0x5e39bf(0x434)];},'mergeParamsToRequest'(_0x393289,_0x3ee5be){const _0x49eb18=_0x410e64,_0x753e8f=_0x111159[_0x49eb18(0x1da)]()+'/-/object/-/batch_allowed',_0x920126=_0x393289['reduce']((_0x150d1b,_0x3acba8)=>{const _0x433a4e=_0x49eb18,{unitID:_0x355f14,objectID:_0x123699,objectType:_0x1b0e2a,actions:_0x4a3a5f}=_0x3acba8;return _0x150d1b[_0x355f14]||(_0x150d1b[_0x355f14]={}),_0x150d1b[_0x355f14][_0x123699]||(_0x150d1b[_0x355f14][_0x123699]={'objectID':_0x123699,'objectType':_0x1b0e2a,'actions':[]}),_0x150d1b[_0x355f14][_0x123699][_0x433a4e(0x15f)][_0x433a4e(0x39d)](..._0x4a3a5f),_0x150d1b;},{}),_0x5ae5ac=[];for(const _0x3da7a1 in _0x920126)for(const _0x59472f in _0x920126[_0x3da7a1]){const {actions:_0x2671e1,objectType:_0x5135e6}=_0x920126[_0x3da7a1][_0x59472f],_0x28b33c=[...new Set(_0x2671e1)];_0x5ae5ac[_0x49eb18(0x39d)]({'unitID':_0x3da7a1,'objectID':_0x59472f,'objectType':_0x5135e6,'actions':_0x28b33c});}return new _0x3f5fe8(_0x49eb18(0x10c),_0x753e8f,{'headers':_0x3ee5be['headers'],'withCredentials':_0x3ee5be[_0x49eb18(0x163)],'responseType':_0x3ee5be[_0x49eb18(0x11c)],'body':{'requests':_0x5ae5ac}});}},{'distributeResult'(_0x41bd78,_0x27df9f){const _0xa61491=_0x410e64,{objectActions:_0x35ee39}=_0x41bd78;return _0x27df9f[_0xa61491(0x230)](_0x260a09=>{const _0x2c5f69=_0xa61491,{unitID:_0x39f3ca,objectID:_0x583373,actions:_0x4c0643}=_0x260a09,_0xf94f30=_0x35ee39['find'](_0x57084e=>_0x57084e['unitID']===_0x39f3ca&&_0x57084e[_0x2c5f69(0x213)]===_0x583373),_0xe13816=_0x4c0643['map'](_0x437cd2=>_0xf94f30==null?void 0x0:_0xf94f30['actions'][_0x2c5f69(0x2d7)](_0x17bffc=>_0x17bffc[_0x2c5f69(0x2db)]===_0x437cd2))[_0x2c5f69(0x3fd)](_0xde5c47=>!!_0xde5c47);return{'config':_0x260a09,'result':{'actions':_0xe13816,'error':_0x41bd78[_0x2c5f69(0x1f8)]}};});}})}));}[_0x1e1deb(0x1da)](){const _0x369a51=_0x1e1deb;var _0x3abd10;return(_0x3abd10=this[_0x369a51(0x26b)]['getConfig'](Co))!=null?_0x3abd10:bo;}async[_0x1e1deb(0x38d)](_0x369c16){const _0x1366ae=_0x1e1deb,_0x130277=this[_0x1366ae(0x1da)]()+'/'+_0x369c16['objectType']+'/object';return(await this['_HTTPService']['post'](_0x130277,{'body':_0x369c16}))[_0x1366ae(0x434)][_0x1366ae(0x213)]||'';}async[_0x1e1deb(0x15b)](_0x2b5b85){const _0x2ae2bd=_0x1e1deb,_0x527a73=this['_getAPIPrefixPath']()+_0x2ae2bd(0x29d);return(await this[_0x2ae2bd(0x2a6)]['post'](_0x527a73,{'body':_0x2b5b85}))[_0x2ae2bd(0x434)][_0x2ae2bd(0x3f6)];}async['update'](_0x52e6dc){const _0x21aaea=_0x1e1deb,_0x13c2be=this[_0x21aaea(0x1da)]()+'/'+_0x52e6dc[_0x21aaea(0x131)]+_0x21aaea(0x121)+_0x52e6dc[_0x21aaea(0x213)];await this[_0x21aaea(0x2a6)][_0x21aaea(0x393)](_0x13c2be,{'body':_0x52e6dc});}async[_0x1e1deb(0x3e3)](_0x96d540){const _0x4bf61f=_0x1e1deb,_0x3ba920=this[_0x4bf61f(0x1da)]()+'/'+_0x96d540[_0x4bf61f(0x131)]+_0x4bf61f(0x121)+_0x96d540[_0x4bf61f(0x213)]+_0x4bf61f(0x385);return(await this['_HTTPService'][_0x4bf61f(0x358)](_0x3ba920,{'body':_0x96d540}))[_0x4bf61f(0x434)][_0x4bf61f(0x15f)];}async['batchAllowed'](_0x3e2a79){const _0x5a5d5e=_0x1e1deb,_0x1fd85e=this[_0x5a5d5e(0x1da)]()+_0x5a5d5e(0x3f5);return(await this[_0x5a5d5e(0x2a6)][_0x5a5d5e(0x358)](_0x1fd85e,{'body':{'requests':_0x3e2a79}}))['body'][_0x5a5d5e(0x3a4)];}async[_0x1e1deb(0x243)](_0x32c852){const _0x5b374b=_0x1e1deb,_0x5f5d16=this[_0x5b374b(0x1da)]()+'/'+_0x32c852[_0x5b374b(0x131)]+'/role',_0x2903a9=await this[_0x5b374b(0x2a6)][_0x5b374b(0x358)](_0x5f5d16,{'body':_0x32c852});return{'roles':_0x2903a9[_0x5b374b(0x434)][_0x5b374b(0x333)],'actions':_0x2903a9[_0x5b374b(0x434)][_0x5b374b(0x15f)]};}async['deleteCollaborator'](_0x531d07){const _0x4316f4=_0x1e1deb,_0x130f3e=this['_getAPIPrefixPath']()+_0x4316f4(0x16a);await this['_HTTPService'][_0x4316f4(0x36f)](_0x130f3e,{'params':{'collaboratorID':_0x531d07[_0x4316f4(0x14d)],'objectID':_0x531d07[_0x4316f4(0x213)],'unitID':_0x531d07[_0x4316f4(0x370)]}});}async[_0x1e1deb(0x222)](_0x47bdce){const _0x219354=_0x1e1deb,_0x5ea432=this[_0x219354(0x1da)]()+'/collaborator';await this[_0x219354(0x2a6)][_0x219354(0x375)](_0x5ea432,{'body':_0x47bdce});}async['createCollaborator'](_0x3edb57){const _0x381275=_0x1e1deb,_0x102f8c=this['_getAPIPrefixPath']()+_0x381275(0x16a);await this[_0x381275(0x2a6)][_0x381275(0x358)](_0x102f8c,{'body':_0x3edb57});}async['listCollaborators'](_0x4d59c0){const _0x256f09=_0x1e1deb,_0xebd78e=this[_0x256f09(0x1da)]()+_0x256f09(0x16a);return(await this[_0x256f09(0x2a6)]['get'](_0xebd78e,{'params':{'objectID':_0x4d59c0['objectID'],'unitID':_0x4d59c0[_0x256f09(0x370)]}}))[_0x256f09(0x434)]['collaborators'];}async[_0x1e1deb(0x166)](_0x59f3d4){const _0xf4f4b8=_0x1e1deb,_0x432e76=this['_getAPIPrefixPath']()+_0xf4f4b8(0x16a);await this[_0xf4f4b8(0x2a6)][_0xf4f4b8(0x393)](_0x432e76,{'body':_0x59f3d4});}};Dt=Eo([_s(0x0,_0x441fe2(_0x34ef08)),_s(0x1,_0x441fe2(_0x5445a8))],Dt);var To=Object[_0x1e1deb(0x158)],Ro=Object[_0x1e1deb(0x32c)],Oo=(_0x37962c,_0x503155,_0x26d866,_0xbf2cc7)=>{const _0x1fa7ae=_0x1e1deb;for(var _0x28f91b=_0xbf2cc7>0x1?void 0x0:_0xbf2cc7?Ro(_0x503155,_0x26d866):_0x503155,_0x28b907=_0x37962c[_0x1fa7ae(0x426)]-0x1,_0x53a284;_0x28b907>=0x0;_0x28b907--)(_0x53a284=_0x37962c[_0x28b907])&&(_0x28f91b=(_0xbf2cc7?_0x53a284(_0x503155,_0x26d866,_0x28f91b):_0x53a284(_0x28f91b))||_0x28f91b);return _0xbf2cc7&&_0x28f91b&&To(_0x503155,_0x26d866,_0x28f91b),_0x28f91b;},us=(_0x29e87b,_0x1aaae3)=>(_0x2cb58c,_0x4f11a9)=>_0x1aaae3(_0x2cb58c,_0x4f11a9,_0x29e87b);const Do=['image/png',_0x1e1deb(0x260),_0x1e1deb(0x27c),_0x1e1deb(0x3c7),_0x1e1deb(0x175)],Po=0x5*0x400*0x400,wo='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',No='/universer-api/stream/file/upload',Mo='EXCHANGE_SIGN_URL_SERVER_URL_KEY',Ao=_0x1e1deb(0x22a);let Pt=class{constructor(_0x1ce7c8,_0x33d74c){const _0x34032b=_0x1e1deb;l(this,_0x34032b(0x423),0x0),l(this,_0x34032b(0x3a9),new _0x365a49()),l(this,_0x34032b(0x392),this[_0x34032b(0x3a9)]),l(this,_0x34032b(0x1d4),new Map()),(this['_httpService']=_0x1ce7c8,this[_0x34032b(0x26b)]=_0x33d74c);}[_0x1e1deb(0x179)](_0x329eb4){const _0x148a5c=_0x1e1deb;this[_0x148a5c(0x423)]=_0x329eb4,this[_0x148a5c(0x3a9)][_0x148a5c(0x3cd)](_0x329eb4);}[_0x1e1deb(0x2be)](_0x498d0e,_0x266623){const _0x37f56b=_0x1e1deb;if(_0x266623===_0x53415e[_0x37f56b(0x33e)]){const _0x35cd22=new Image();return _0x35cd22[_0x37f56b(0x1af)]=_0x498d0e,_0x35cd22;}return this[_0x37f56b(0x1d4)]['get'](_0x498d0e);}[_0x1e1deb(0x334)](_0x45937d,_0x1eb2b9,_0x511769){const _0x5380b6=_0x1e1deb;_0x1eb2b9===_0x53415e['BASE64']||_0x511769==null||this[_0x5380b6(0x1d4)][_0x5380b6(0x394)](_0x45937d,_0x511769);}async[_0x1e1deb(0x201)](_0xd2a422){const _0x19b7c2=_0x1e1deb;try{const _0x116ff8=this[_0x19b7c2(0x10f)](this[_0x19b7c2(0x165)](),''+_0xd2a422),_0x56bfa3=(await this['_httpService'][_0x19b7c2(0x10a)](_0x116ff8))[_0x19b7c2(0x434)];return _0x56bfa3['error']&&_0x56bfa3[_0x19b7c2(0x1f8)]['code']===Ps['OK']?Promise[_0x19b7c2(0x306)](_0x56bfa3[_0x19b7c2(0x30b)]):Promise[_0x19b7c2(0x3e8)](_0x56bfa3[_0x19b7c2(0x1f8)]);}catch(_0x3ad13e){return Promise[_0x19b7c2(0x3e8)](_0x3ad13e);}}async[_0x1e1deb(0x3f7)](_0x2dc082){const _0x432d22=_0x1e1deb;let _0x49e34b='';if(!Do['includes'](_0x2dc082['type']))return this[_0x432d22(0x1fd)](),Promise[_0x432d22(0x3e8)](new Error(_0x3a4a7b[_0x432d22(0x395)]));if(_0x2dc082[_0x432d22(0x1b4)]>Po)return this['_decreaseWaiting'](),Promise[_0x432d22(0x3e8)](new Error(_0x3a4a7b['ERROR_EXCEED_SIZE']));try{const _0x4934ad=new FormData();_0x4934ad[_0x432d22(0x162)](_0x432d22(0x31c),_0x2dc082);const _0x551068=this[_0x432d22(0x346)]()+'?size='+_0x2dc082['size']['toString'](),_0x46523a=await(await fetch(_0x551068,{'method':_0x432d22(0x10c),'body':_0x4934ad}))[_0x432d22(0x103)]();if(typeof _0x46523a[_0x432d22(0x226)]!='string')return this[_0x432d22(0x1fd)](),Promise[_0x432d22(0x3e8)](new Error(_0x3a4a7b['ERROR_IMAGE']));_0x49e34b=_0x46523a[_0x432d22(0x226)];}catch{return this[_0x432d22(0x1fd)](),Promise['reject'](new Error(_0x3a4a7b[_0x432d22(0x101)]));}return new Promise((_0x48be28,_0x4431f9)=>{const _0xc16006=_0x432d22,_0x5b83b7=new FileReader();_0x5b83b7[_0xc16006(0x13f)](_0x2dc082),_0x5b83b7[_0xc16006(0x146)]=_0x4a2f89=>{const _0x325f0=_0xc16006;var _0x43c9bf;const _0x54074f=(_0x43c9bf=_0x4a2f89[_0x325f0(0x342)])==null?void 0x0:_0x43c9bf['result'];if(_0x54074f==null){this[_0x325f0(0x1fd)](),_0x4431f9(new Error(_0x3a4a7b[_0x325f0(0x101)]));return;}const _0x49aa30=_0x4526c0[_0x325f0(0x259)](0x6);_0x48be28({'imageId':_0x49aa30,'imageSourceType':_0x53415e[_0x325f0(0x396)],'source':_0x49e34b,'base64Cache':_0x54074f,'status':_0x3a4a7b['SUCCUSS']}),this[_0x325f0(0x1fd)]();};});}[_0x1e1deb(0x346)](){const _0x28a5db=_0x1e1deb;var _0x102efb;return(_0x102efb=this[_0x28a5db(0x26b)][_0x28a5db(0x35c)](wo))!=null?_0x102efb:No;}['_getSignURL'](){const _0x84b9d9=_0x1e1deb;var _0x288752;return(_0x288752=this[_0x84b9d9(0x26b)][_0x84b9d9(0x35c)](Mo))!=null?_0x288752:Ao;}['_replaceFileID'](_0x2fde90,_0x771aae){const _0x187a3a=_0x1e1deb;return _0x2fde90[_0x187a3a(0x20a)](_0x187a3a(0x1bf),_0x771aae);}[_0x1e1deb(0x1fd)](){this['_waitCount']-=0x1,this['_change$']['next'](this['_waitCount']);}};Pt=Oo([us(0x0,_0x441fe2(_0x34ef08)),us(0x1,_0x5445a8)],Pt);var yo=Object[_0x1e1deb(0x158)],Uo=Object[_0x1e1deb(0x32c)],Lo=(_0x3ac11c,_0xe60ef9,_0x2fc2c3,_0x5ad2da)=>{const _0x3ceb83=_0x1e1deb;for(var _0xed29ba=_0x5ad2da>0x1?void 0x0:_0x5ad2da?Uo(_0xe60ef9,_0x2fc2c3):_0xe60ef9,_0x301d69=_0x3ac11c[_0x3ceb83(0x426)]-0x1,_0x32e4bb;_0x301d69>=0x0;_0x301d69--)(_0x32e4bb=_0x3ac11c[_0x301d69])&&(_0xed29ba=(_0x5ad2da?_0x32e4bb(_0xe60ef9,_0x2fc2c3,_0xed29ba):_0x32e4bb(_0xed29ba))||_0xed29ba);return _0x5ad2da&&_0xed29ba&&yo(_0xe60ef9,_0x2fc2c3,_0xed29ba),_0xed29ba;},Ne=(_0x2c9aa4,_0x2508f9)=>(_0x1f18d2,_0x2e3081)=>_0x2508f9(_0x1f18d2,_0x2e3081,_0x2c9aa4);let We=class extends _0x5b9cf1{constructor(_0x4e0e48,_0x452281,_0x88119d,_0xfc9f0b,_0x236e11){const _0x257dce=_0x1e1deb;super(),this[_0x257dce(0x432)]=_0x4e0e48,this[_0x257dce(0x145)]=_0x452281,this['_permissionService']=_0x88119d,this[_0x257dce(0x3c0)]=_0xfc9f0b,this[_0x257dce(0x367)]=_0x236e11,this[_0x257dce(0x241)](),this[_0x257dce(0x3d3)]();}[_0x1e1deb(0x3d3)](){const _0x3700e4=_0x1e1deb,_0xe1762c=async _0x51e286=>{const _0x2c1c4d=_0x44de;(await this[_0x2c1c4d(0x3c0)]['requireSession'](_0x51e286))['event$'][_0x2c1c4d(0x119)](_0x190413(_0x27e1fd=>_0x27e1fd[_0x2c1c4d(0x2f8)]===_0x1c415b[_0x2c1c4d(0x171)]),_0x946afe(this[_0x2c1c4d(0x413)]))[_0x2c1c4d(0x3e0)](_0x167378=>{const _0x33ef9d=_0x2c1c4d,_0x1636c3=_0x167378,{reason:_0x44f334}=_0x1636c3[_0x33ef9d(0x265)];this['_injector']['get'](_0x49507b)[_0x33ef9d(0x154)]({'type':_0x3eac95[_0x33ef9d(0x33c)],'content':this[_0x33ef9d(0x367)]['t']('collaboration.closeRoom')+'('+_0x44f334+')'}),this['_permissionService'][_0x33ef9d(0x3ba)](new _0x230e97(_0x51e286)['id'],!0x1),this[_0x33ef9d(0x3c0)][_0x33ef9d(0x2ad)](_0x51e286);});};_0x5726e7(this['_univerInstanceService'][_0x3700e4(0x405)](_0x37298b[_0x3700e4(0x3d0)]),this[_0x3700e4(0x145)][_0x3700e4(0x405)](_0x37298b[_0x3700e4(0x1c7)]))[_0x3700e4(0x119)](_0x5ac769(_0x5cdbdc=>_0x5cdbdc[_0x3700e4(0x3cf)]()),_0x190413(_0x30acf5=>!_0x2f9fa5(_0x30acf5)),_0x946afe(this[_0x3700e4(0x413)]))[_0x3700e4(0x3e0)](_0x2faaa9=>{_0xe1762c(_0x2faaa9);});}['_initUnitPermissionChange'](){const _0x261994=_0x1e1deb,_0x14bcf2=async _0x5b5c71=>{const _0x4f25ac=_0x44de;(await this[_0x4f25ac(0x3c0)]['requireSession'](_0x5b5c71))[_0x4f25ac(0x19f)][_0x4f25ac(0x119)](_0x190413(_0xf615a5=>_0xf615a5[_0x4f25ac(0x2f8)]===_0x1c415b[_0x4f25ac(0x207)]),_0x946afe(this['dispose$']))[_0x4f25ac(0x3e0)](_0x1a05a2=>{const _0x3abd46=_0x4f25ac,_0x58d481=_0x1a05a2,{objectId:_0x20bd23}=_0x58d481[_0x3abd46(0x265)];_0x20bd23===_0x5b5c71&&this[_0x3abd46(0x432)]['get'](_0x357f80)['initWorkbookPermissionChange'](_0x5b5c71);});};_0x5726e7(this['_univerInstanceService'][_0x261994(0x405)](_0x37298b['UNIVER_SHEET']),this[_0x261994(0x145)][_0x261994(0x405)](_0x37298b[_0x261994(0x1c7)]))[_0x261994(0x119)](_0x5ac769(_0x45d7d5=>_0x45d7d5[_0x261994(0x3cf)]()),_0x190413(_0x76fa0=>!_0x2f9fa5(_0x76fa0)),_0x946afe(this[_0x261994(0x413)]))['subscribe'](_0x44b5fc=>{_0x14bcf2(_0x44b5fc);});}};We=Lo([_0x3e0133(_0x1781f1[_0x1e1deb(0x3bd)],We),Ne(0x0,_0x441fe2(_0x9c5d64)),Ne(0x1,_0x4902a5),Ne(0x2,_0x3660f2),Ne(0x3,_0x441fe2(pe)),Ne(0x4,_0x441fe2(_0x2cfe85))],We);var Hs=Object[_0x1e1deb(0x158)],$o=Object['getOwnPropertyDescriptor'],jo=(_0x13a62f,_0x304f23,_0x2d1cee)=>_0x304f23 in _0x13a62f?Hs(_0x13a62f,_0x304f23,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d1cee}):_0x13a62f[_0x304f23]=_0x2d1cee,xo=(_0x447c3d,_0x33da96,_0x5c5cc1,_0x29c0b9)=>{for(var _0x283348=_0x29c0b9>0x1?void 0x0:_0x29c0b9?$o(_0x33da96,_0x5c5cc1):_0x33da96,_0x52efe9=_0x447c3d['length']-0x1,_0x461791;_0x52efe9>=0x0;_0x52efe9--)(_0x461791=_0x447c3d[_0x52efe9])&&(_0x283348=(_0x29c0b9?_0x461791(_0x33da96,_0x5c5cc1,_0x283348):_0x461791(_0x283348))||_0x283348);return _0x29c0b9&&_0x283348&&Hs(_0x33da96,_0x5c5cc1,_0x283348),_0x283348;},mt=(_0x20c2d6,_0x33eab4)=>(_0x3c8b84,_0x4413a0)=>_0x33eab4(_0x3c8b84,_0x4413a0,_0x20c2d6),Ho=(_0x564121,_0x3a7e02,_0x179853)=>jo(_0x564121,_0x3a7e02+'',_0x179853);const ko=_0x1e1deb(0x1a0);let wt=class extends _0x14ee3b{constructor(_0x7b993d,_0x24bd96,_0x40e79f,_0x10bad2){const _0x186333=_0x1e1deb;super(),this[_0x186333(0x317)]=_0x7b993d,this[_0x186333(0x12a)]=_0x24bd96,this[_0x186333(0x2af)]=_0x40e79f,this[_0x186333(0x432)]=_0x10bad2;}[_0x1e1deb(0x1ee)](_0x3c294d){this['_registerDependencies'](_0x3c294d);}[_0x1e1deb(0x264)](){const _0x5d1cae=_0x1e1deb;this[_0x5d1cae(0x304)]();}[_0x1e1deb(0x177)](_0x21fea1){const _0x18ab8e=_0x1e1deb;var _0x4004d2,_0x5c1d66,_0x171fa4,_0x55af7a;_0x21fea1['has'](_0x416533)&&this[_0x18ab8e(0x12a)][_0x18ab8e(0x1f8)](_0x18ab8e(0x3e1),_0x18ab8e(0x1f1));let _0x13a052=[[_0x416533,{'useClass':Ot}],[pe],[xt],[_0x34ef08],[xs,{'useClass':oo}],[ne],[D],[_0x3ee676],[qe],[ze],[Je],[jt],[Qe],[Ns],[We],[ws,{'useClass':(_0x5c1d66=(_0x4004d2=this['_config'])==null?void 0x0:_0x4004d2[_0x18ab8e(0x186)])!=null?_0x5c1d66:pt}],[_0x2a4f7d,{'useClass':_0xea0666}],[_0x4a4d9b,{'useClass':Rt}],[_0x2914fb,{'useClass':Dt}],[_0x19b622,{'useClass':Pt}],[Me],[Fe],[ke],[Ve],[ge]];(_0x171fa4=this['_config'])!=null&&_0x171fa4[_0x18ab8e(0x2d0)]&&_0x13a052['push']([tt,{'useClass':kn}]),_0x13a052=_0x117d0f(_0x13a052,(_0x55af7a=this['_config'])==null?void 0x0:_0x55af7a[_0x18ab8e(0x42a)]),_0x13a052[_0x18ab8e(0x23e)](_0x4be868=>_0x21fea1[_0x18ab8e(0x11a)](_0x4be868)),this[_0x18ab8e(0x28d)]();}[_0x1e1deb(0x304)](){const _0x52b1a2=_0x1e1deb;this[_0x52b1a2(0x32e)](this[_0x52b1a2(0x2af)]['registerRenderModule'](_0x37298b[_0x52b1a2(0x1c7)],[Be])),this[_0x52b1a2(0x32e)](this[_0x52b1a2(0x2af)]['registerRenderModule'](_0x37298b[_0x52b1a2(0x3d0)],[Tt]));}[_0x1e1deb(0x28d)](){const _0x386780=_0x1e1deb;var _0x9d1d6,_0x1ecd93;this[_0x386780(0x432)][_0x386780(0x10a)](_0x34ef08)[_0x386780(0x31d)]({'priority':0x14,'interceptor':_0x43013b({'maxParallel':0x6})}),(_0x9d1d6=this[_0x386780(0x317)])!=null&&_0x9d1d6[_0x386780(0x204)]||this[_0x386780(0x432)][_0x386780(0x10a)](D)[_0x386780(0x278)](),(_0x1ecd93=this[_0x386780(0x317)])!=null&&_0x1ecd93[_0x386780(0x17d)]&&this[_0x386780(0x432)][_0x386780(0x10a)](Qe);}};Ho(wt,_0x1e1deb(0x293),ko),wt=xo([_0xb27d8b(_0x5d157c),mt(0x1,_0x5f4df3),mt(0x2,_0x2b632b),mt(0x3,_0x441fe2(_0x9c5d64))],wt);export{Co as AUTHZ_URL_KEY,Dt as AuthzIoHttpService,En as COLLAB_SUBMIT_CHANGESET_URL_KEY,_n as COLLAB_WEB_SOCKET_URL_KEY,Me as CollaborationController,vt as CollaborationSession,pe as CollaborationSessionService,pt as CollaborationSocketService,P as CollaborationStatus,Fr as CollaborationStatusDisplay,Ns as CommentService,Fe as DataLoaderController,ke as DesktopCollaborationStatusDisplayController,dn as HEARTBEAT_INTERVAL_KEY,Os as HEARTBEAT_TIMEOUT_KEY,ws as ICollaborationSocketService,xs as IURLService,Pt as ImageIoService,vn as LOCAL_CACHE_INTERVAL_KEY,bn as LOGIN_URL_KEY,D as LocalCacheService,hn as SEND_CHANGESET_TIMEOUT_KEY,on as SNAPSHOT_SERVER_URL_KEY,cn as SNAPSHOT_URL_KEY,fe as SessionStatus,br as SheetCollabCursorShape,Et as SheetCollaborationEntity,Rt as SnapshotServerOverHTTPService,wt as UniverCollaborationClientPlugin,oo as WebURLService,wn as deserializeToCombResponse,Nn as serializeCombRequest};
|