@univerjs-pro/collaboration-client 0.4.1-experimental.20241023-bbb123f → 0.4.1-experimental.20241024-0ebc6ee
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +16 -16
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x5009fc=_0x3280;function _0x1a52(){const _0x36814e=['_onRemoteRetry','_setupSubUnitSync','body','_socket','capture','currentSkeleton$','_registerRenderDependencies','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','href','getOwnPropertyDescriptor','removeParam','getRoom','unsubscribe','getSkeleton','...','verdancy600','name','max','Undefined','_undoRedoService','/universer-api/snapshot','sessionStatus$','_disabled','_urlService','_removeCollabCursors','_cachedData','enableSingleActiveInstanceLock','2773337rCUFDv','_snapshotServerService','stringify','UNIVER_SHEET','_resendWithTimeout','unshift','objectID','labelPosition','disposeWithMe','onRemoteChangeset','_getSaveTimeout','_cursor','createInstance','_clearRedo','memberID','onlyLocal','clipPath','_sender','[SyncedState]:\x20received\x20acknowledgement.','RETRY_CONNECTING_MAX_COUNT','_startSheetCollabCursor','_cursors','replaceTextRanges','roomMembers','x-univer-host','onTransformChange$','_scheduleSaving','UNAUTHENTICATED','blue400','commentUpdate$','CHANGESET_REVISION_CONFILICT','_state$','COLLAB_WEB_SOCKET_URL','MoveRangeCommandId','_userManagerService','dispose$','replace','UNRECOGNIZED','SNAPSHOT_INVALID_SNAPSHOT','action','_configService','storage','data','width','setCurrentUser','getParam','then','USERS_ENTER','_updateCollabCursors','getCollabCursors$','/universer-api/comb','collabStatus.conflict','ERROR_IMAGE_TYPE','TOO_MANY_REQUESTS','UNIVER_DOC','_shouldReportTelemetry','_clearUndo','CHANGESET_ACK','_acknowledgedAwaitingChangeset','endColumn','signUrlServerUrl','filter','createElement','getUnitStatus$','unitId\x20is\x20not\x20found','commentUpdateEvent','?url=','SHOULD_CLOSE_CONN','_event$','_sessionStatus$','deleteCollaborator','COMPRESS_MUTATION_SEND','get','_unitOnClients','_colorIndex','on-line-single_clip0_910_349','_drawTextRange','concat','HttpExport','_assignedColors','SUBMIT_CHANGESET','awaitingChangeset','_startCollaboration','column','_collaborationSessionService','collaboration-client.config','round','open$','_startDocCollabCursor','bind','_docTransformIMECacheService','post','0\x200\x2017\x2016','asObservable','rev','getUndoRedoMutationParamsCache','MSG_FOR_ERROR','session.collaboration-timeout','getTypeOfUnitAdded$','_refRangeService','_getSignURL','_singleActiveUnitService','_beforeCloseService','_transformUndoredo','LICENSE_EXPORT_SIZE_EXCEEDED','currentTheme$','_collaborationTimeoutTimer','_initStatusListener','onlineStatus','registerRenderModule','init','_handleHeartbeatEvent','addObject','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','csAckEvent','loginUrlKey','FileId','_removeRoom','_scheduleCollaborationTimeoutTimer','onReady','[CollaborationSession]','editing\x20status\x20changed\x20to','assignAColorForMemberID','_onRemoteChangeset','onTransformRemoteChangesetByIMECache','newCsEvent','unknown','_handleJoinEvent','YUUMI_URL_COL_OUT_OF_RANGE','subscribeEvent','getDeserializedSheetBlock','collaboration_new_changeset','listRoles','_rescheduleHeartbeat','fillRule','[PendingState]:\x20unhandled\x20univer\x20type:\x20','getUnhiddenWorksheets','_onUserLeave','resourceIDs','_getSnapshotAPIPrefix','1861428BxbyFV','propertyIsEnumerable','cmd','path','OTHER_CLIENTS_EDITING','send','_showConflictNotification','\x20-\x20','moveTo','xlink:href','getUniverSheetInstance','ENSURE_SNAPSHOT_EXECUTION','every','ERROR_IMAGE','originalMeta','whenReady','/universer-api/oidc/authpage','_getRedoStack','_entityInit$','_handler','failed\x20to\x20apply\x20missed\x20changesets!','_updateStatus','_unitID','/collaborator','getCollabEntity','prototype','COMPLETION_FINISHED','_context','COMMENT_UPDATE','_getAnchorBounding','_queuedRemoteChangesets','textRanges','_anchorDot','call','_docStateChangeManagerService','ranges','enableOfflineEditing','add','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','updateMember','code','setParam','NOT_FOUND','HELLO','permission.content','INGEST','close$','_snapshotService','rgba(255,\x20255,\x20255,\x200.01)','M0\x200H16V16H0z','sheets','_onRecvEvent','shouldCloseConn','[CollaborationUndoRedoService]','toggleOffline','_onConnectionOpen','_replaceFileID','on-line-single','onlineStatusTitle','_collaborationController','closeSession','YUUMI_SUBSCRIPTION_NOT_FOUND','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getRangePointData','_transformUndoRedoStack','getMergeData','_shapes','saveSnapshot','url(#$1','_memberService','_themeService','_loadSheet','_syncEditingCollabCursor','members','onSendChangeset','fetchMiss','set','unit-cache-','APPLY_NON_SEQUENTIAL_REVISION','setUndoRedoMutationParamsCache','CONNECTOR_DATA_TOO_LARGE','evenodd','_awaitingChangeset','enableAuthServer','_onConnectionFailed','arc','getUnitOnRev','_roomMembers','reduce','UNKNOWN_CMD','reject','JOINING','reqId','setActiveRange','_updateState','onMouseMove','UniverIcon','univer-online-status-title','event$','_getDownloadEndpointURL','10BXsCIn','_sendingTimer','session.room-full','_getScale','transformIMECache','_transformService','getTime','BASE64','closePath','_uiPartsService','_onRemoteRejected','getInterceptPoints','collaboration-client.offline-data-not-saved','_http','disposeUnit','_stopTelemetryCollaborationNewChangeset','object','/object/','univer-online','_textBubble','_handleHover','_submitChangeset','InsertRangeMoveRightCommandId','children','_tryEnsureSocket','collabCursorState$','_scene','text','onCommandExecuted','_toggleOnline','_exhaustRemoteChangesetQueue','_injector','toString','_timeoutTimer','bottom','off-line-single_clip0_910_343','file','Error','pipe','_getLoginPath','userID','subUnitId','m2Prime','_resendTimer','_scheduleClearOtherTimer','getViewport','row','_hovered','/-/object/list','UNKNOWN_CODE','getSheetBySheetId','2VpWFLh','auth.needGotoLoginAlert','joinEvent','onStarting','cursorInfo$','synced','extend','_initCloseConn','LIVESHARE_TERMINATE','_onRemoteACK','_docTransformSelectionsService','image/jpg','confirm','_docSyncEditingCollabCursorService','RemoveRowCommandId','updatePermissionObjEvent','_initEventListeners','number','csRejEvent','getUnitType','AWAITING','_incrementRevisionNumber','getTypeOfUnitDisposed$','interceptor','stopTime','colorChannel1','reconnect','svg','_onCursorUpdate','show','uni.network.url-service','MUTATION','3842996WQdthE','transformRemoteChangeset','c2Prime','icon','createCollaborator','_ws','substring','NEW_CHANGESETS','connection\x20error','requestParams','_messageService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','urlChange$','_imageSourceCache','isEditing','executeCommand','UPDATE_PERMISSION_OBJ','hovered','_listenToOnlineEvent','top','getFocusedUnit','_transformStack','generateRandomId','url','awaiting','_localStorageService','cursorInfo','_selfUnitIDs','_clearCollaborationTimeoutTimer','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_unitStatus','getLatestCsReqIdBySid','updateCollaborator','none','&assign=','infoRsp','/unit/','sheetID','/allowed','registerComponent','_applyRemoteChangeset','LIVESHARE_OPERATION','includes','_updateURLWithCurrentState','getActiveSheet','defIds','off-line-single','_removeClearOtherTimer','_socketMessageSubscription','jiqing500','mutations','onRemoteRej','PERMISSION_REJ','session.will-retry','parse','NO_OTHER_CLIENTS_EDITING','editingUnit','height','1em','_toggleOffline','_docSkeleton','[UniverCollaborationClientPlugin]','[SyncedState]:\x20received\x20rejection.','append','getCurrentRevOfUnit','subunit','removeMember','_decreaseWaiting','save','setTimeout','_getUploadFileURL','LICENSE_IMPORT_SIZE_EXCEEDED','_initResize','triggerDblclick','_labelPosition','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','CHANGESET_REJ','getUnitId','_waitForHeartbeatResponse','onRemoteAck','_ensureSubject','objects','_telemetryService','socketService','_sessions','currentColor','/new_changes','_handleLeaveEvent','push','localeService','idSuffix','saveSheetBlock','_localCacheService','#fff','collaborators','_listenToOfflineEvent','\x20to\x20','hidden','indexOf','onTransformSelections','fillText','1626499WkOYwh','EXCHANGE_SIGN_URL_SERVER_URL_KEY','random','collabStatus.synced','_scheduleHeartbeat','registerBeforeClose','_isPermissionRej','[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.','toRgbString','onMissingChangesets','OffLineSingle','_onRefRangeChange','displayName','ONLINE','_retryConnectingTimer','collabStatus.notCollab','_draw','offline','setAlpha','purple300','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_getCurrentRevision','_refreshCollabCursors','loadSheet','_onJoinRoomEvent','HEADER_MENU','AWAITING_WITH_PENDING','headers','resolve','clearInterval','restore','transformMutation','assign','_online','pushState','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_collabCursorState$','delete','InsertRangeMoveDownCommandId','_range','unitID','_commentService','clearTimeout','beginPath','#FFF','_anchor','_socketService','_color','createSocket','status','awaiting_with_pending','LIVESHARE_NEW_HOST','addObjects','params','_docSkeletonManagerService','_initStatusComponent','drawWith','joinRsp','snapshotServerUrl','all','_revisionService','image/bmp','sessionStatus','SNAPSHOT_SERVER_URL_KEY','COMPRESS_MUTATION_APPLY','save\x20fail\x20reason\x20is\x20','location','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_heartbeatTimer','div','_entities','_initRequestHeader','findNodePositionByCharIndex','_clearLocalCache','Unknown\x20user','setConfig','updateCursorEvent','UNIVER_PROJECT','loadOfflineData','_name','SEND_CHANGESET_TIMEOUT','focused$','isActive','_onCursorDelete','session.connection-failed','YUUMI_RATE_OVER_LIMIT','univer-online-status','_redoStacks','_changesetReqId','getUnit','univer-pro.collaboration-client-socket-service','/object','error','_tryReconnect','_change$','image/gif','json','APPLY_DUPLICATED','docStateChange$','_commentUpdate$','_transitionLocked','_hideTimer','socket\x20close','_cursorInfo$','_updateLocalCursor','UPDATE_CURSOR','some','title','appendMutation','9563050tqTQYj','defs','socket$','next','UUID','_startTelemetryCollaborationNewChangeset','disableLocalCache','csShouldRetryEvent','forEach','_hover','toLowerCase','close','collabSubmitChangesetUrl','submit\x20changeset\x20error!','ERROR_EXCEED_SIZE','fillStyle','getImageSourceCache','m1Prime','onStateChange','registerHTTPInterceptor','_createInitialState','_getSheetObject','conflict','_substituteUndoStack','_permissionService','onPointerLeave$','_onOffline','_colorAssignService','transform','SYNCED','measureText','collaboratorID','transformMutationsWithChangeset','saveImage','_sheetSkeletonManagerService','/block/','_getAPIPrefix','ws://127.0.0.1:8000/universer-api/comb/connect','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','type','updateOfflineData','[CollaborationSessionService]','size','POST','map','toggleOnline','getAncestorScale','RECV','collab-client.tooltip.reconnect','requireSession','_compressMutationService','_disableEditing','sid','setItem','transformByState','getRandomValues','snapshot','image/jpeg','subscribe','getSheetId','_logService','batchAllowed','replaceState','getWorkbookSelections','unit','complete','addEventListener','_remoteChangesetQueue','collaboration-session-retry','_checkMissing','_getAPIPrefixPath','_pendingMutations','_backgroundColor','contains','onPointerEnter$','split','_unlockTransition','FETCH_MISSING','allowed','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_retryCount','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','length','_setupBeforeClosingHandler','getResourcesRequest','_handleEvent','_members','_notificationService','FAIL','_saveTaskMap','_changesetSessionId','collab-text-range-','skeleton','red300','leaveEvent','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','9nGabVS','deepClone','_type','HttpImport','LOGIN_URL_KEY','setShapeProps','debug','_scheduleTimestamp','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','defineProperty','_socket$','onMissedChangesetFetched','getCurrentSelections','hide','_clearTimeoutTimer','getConfig','lineTo','900378FgWoqY','INVALID_ARGUMENT','_getUndoStack','roles','onTransformIME','4087256gcwKDV','_collaborationPaused','UnitEmbedded','registerOnClose','/universer-api/snapshot/','getActiveRange','getMember','resize','LICENSE_MAX_UNITS_EXCEEDED','patch','_cursorShapes','saveChangeset','session','url(#on-line-single_clip0_910_349)','_univerInstanceService','encode','[CollaborationState]:\x20apply\x20error!','message$','state$','catch','slice','actions','url(#off-line-single_clip0_910_343)','withCredentials','SUCCUSS','startRow','_updateLocalCache','_loadDoc','onSyncEditingCollabCursor','_telemetryInfo','AUTHZ_URL_KEY','find','onRemoteRetry','image/png','syncEditingCollabCursor','_getMergeRange','className','IDLE','_clearHeartbeatTimer','apply','ALREADY_EXISTS','_httpService','RemoveColCommandId','getSheetBlock','_socketReady','_createHandler','newValue','fill','baseRev','_clearOtherTimers','uploadFileServerUrl','LIVESHARE_FETCH_OPERATIONS','_drawRectRange','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','searchParams','_lockTransition','state','_instanceService','status$','\x0aAfter:\x20','selection','_roomMembers$','_fetchMissChangesets','_waitCount','_resendTimeout','origin','getValue','onlineStatusIcon','LEAVE','from','color','_commandService','gold400','univer-online-status-icon','_session','isPermissionRej','_clearScheduledTask','Warning','incrementRevOfUnit','USERS_LEAVE','transformChangesets','JOIN','_drawAnchor','_onUserJoin','create','APPLY_REVISION_CONFILICT','dispose','eventID','retryConnectingInterval','NOT_COLLAB','HEARTBEAT','min','OFFLINE','SNAPSHOT_HAS_BEEN_REMOVED','OnLineSingle','/universer-api/file/{fileID}/sign-url','SNAPSHOT_URL_KEY','_registerDependencies','_send','pauseCollaboration','_localeService','now','getDocRanges','getRenderById','InsertColCommandId','history','range','PSEUDO_FETCH_MISSING_RESULT','getMemberID','not_collab','has','entries','getOwnPropertySymbols','CONFLICT','c1Prime','_render','compose','fetchMissingChangesets','FETCH_MISS','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_schedule','LICENSE_DISTRO_REJECTED','conflict.title','put','attrs','_init','[CollaborationSessionService]:\x20socket\x20error','_sheetTransformSelectionsService','_updateSubUnitFromURLParams','startsWith','_throwTelemetryCollaborationNewChangeset','\x0aCurrent:\x20','collabStatus.offline','revision','updatePermissionPoint','_HTTPService','_renderManagerService','addImageSourceCache','onRendered','getCurrentUser','_initModules','_sendHeartbeat','CHANGESET_SHOULD_RETRY','?size=','UNDEFINED','_config','_substituteRedoStack','_initCommandExecutedListener','unitId','liveShareOperation','key','resend','[DataLoaderController]','fetching\x20missing\x20changesets\x20from\x20','_initMergeInterceptor','changesets','_collabCursorController','getCollabEntity$','_transformIMECache','reverse','univer-pro.collaboration-client.single-active-unit-service','_eventUnsubscribe','UNIVER_COLLABORATION_CLIENT_PLUGIN','objectType','transformSelections','selections','UNIVER_SLIDE','hasOwnProperty','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_getSendChangesetTimeout','popstate','[CollaborationEntity]','registerRefRange','fetch_missing','getVpScrollXYInfoByPosToVp','onCommentUpdate','HEARTBEAT_TIMEOUT','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','pending','visibilitychange','_lastPointer','_saveCache','_onCombEvent','current','_transformSelections','_status$','refreshPermission','_transformPreviousActiveRange','startColumn','update','randomUUID','_getCtorByUniverType','/-/object/-/batch_allowed','_executeRemoteChangeset','result','doc.mutation.rich-text-editing','clear','_onConflict','_onLocalMutation','routeKey','/resources','_sendHeartbeatTimer','onload','_transformRemoteChangesetByIMECache','_onFetchMissResult','with','_candidateSocket','_state','tag','black','_collabSessionService','liveShareNewHost','string','_id','INTERNAL_ERROR','LIVESHARE_REQUEST_HOST','collaboration.closeRoom','isArray','values','fetchThroughInterceptors'];_0x1a52=function(){return _0x36814e;};return _0x1a52();}(function(_0x6f6b9,_0x3e0adf){const _0x344b61=_0x3280,_0x478868=_0x6f6b9();while(!![]){try{const _0xed92e7=-parseInt(_0x344b61(0x15f))/0x1*(parseInt(_0x344b61(0xda))/0x2)+-parseInt(_0x344b61(0x3c5))/0x3+parseInt(_0x344b61(0xfa))/0x4+parseInt(_0x344b61(0x429))/0x5*(parseInt(_0x344b61(0x23d))/0x6)+parseInt(_0x344b61(0x339))/0x7+parseInt(_0x344b61(0x242))/0x8*(parseInt(_0x344b61(0x22c))/0x9)+parseInt(_0x344b61(0x1cc))/0xa;if(_0xed92e7===_0x3e0adf)break;else _0x478868['push'](_0x478868['shift']());}catch(_0x2be545){_0x478868['push'](_0x478868['shift']());}}}(_0x1a52,0xd62f7));var ri=Object[_0x5009fc(0x235)],oi=(_0x4955de,_0x3769ba,_0x57b842)=>_0x3769ba in _0x4955de?ri(_0x4955de,_0x3769ba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57b842}):_0x4955de[_0x3769ba]=_0x57b842,l=(_0x135f14,_0x3425bb,_0x30113a)=>oi(_0x135f14,typeof _0x3425bb!='symbol'?_0x3425bb+'':_0x3425bb,_0x30113a);import{createIdentifier as _0x5c6f0d,Inject as _0x1f955f,Disposable as _0x16541d,DisposableCollection as _0xa23355,toDisposable as _0x2b2e4c,IConfigService as _0x4b96c2,ILogService as _0x5cfe43,UserManagerService as _0x1bc870,UniverInstanceType as _0x53f477,IUniverInstanceService as _0x2d78d8,LocaleService as _0x371029,Optional as _0x25fcfd,RxDisposable as _0x5889a4,Injector as _0x97bef,Tools as _0x548d2b,ILocalStorageService as _0x4fd9ec,Rectangle as _0x3b84dd,ICommandService as _0xfcd33f,JSONX as _0x2aaea2,CommandType as _0x5b3aba,IPermissionService as _0x46a842,IUndoRedoService as _0xf4d2d4,sequenceExecute as _0x45d245,debounce as _0x8d4f93,COLORS as _0x4b7722,ColorKit as _0x9ea147,ThemeService as _0x5d658e,fromEventSubject as _0x482453,useDependency as _0x209420,connectInjector as _0x1fc806,Workbook as _0x497a84,isInternalEditorID as _0x594798,LocalUndoRedoService as _0x27b177,IContextService as _0x1bc6ba,DependentOn as _0x39ac8b,Plugin as _0x5daa5a,touchDependencies as _0x1e9d2e,IAuthzIoService as _0x25d73f,mergeOverrideWithDependencies as _0x1224cf}from'@univerjs/core';import{Subject as _0x379f4,merge as _0x370802,takeUntil as _0x810e9a,BehaviorSubject as _0x3a492f,distinctUntilChanged as _0x1fd0e9,fromEvent as _0x35b99f,ReplaySubject as _0x55b851,take as _0x1825da,map as _0x563f1f,shareReplay as _0x2ee8ad,of as _0x347b80,debounceTime as _0x116225,filter as _0x26b580,switchMap as _0xb54ee,combineLatest as _0x1c0847,concatMap as _0x2f78e1,mapTo as _0x505731}from'rxjs';import{map as _0x13fcf1,take as _0x4e7c24,filter as _0x5d3bcc,delay as _0x271981,throttleTime as _0x4bca90,takeUntil as _0x22831a,switchMap as _0x1b8752}from'rxjs/operators';import{MessageType as _0x3738f0,Tooltip as _0x88e8b3}from'@univerjs/design';import{IBeforeCloseService as _0x548106,IMessageService as _0x40b38a,INotificationService as _0x258190,useObservable as _0x39332a,BuiltInUIPart as _0x40f64a,IUIPartsService as _0x475baa}from'@univerjs/ui';import{HTTPService as _0x3a167c,WebSocketService as _0x4a2775,MergeInterceptorFactory as _0x3d00f0,HTTPRequest as _0x4d0064,IHTTPImplementation as _0x930210,XHRHTTPImplementation as _0x3f6857,ThresholdInterceptorFactory as _0x1d972c}from'@univerjs/network';import{CollaborationEvent as _0x5bf9c6,parseChangesetToProtocol as _0x38bdce,ISnapshotServerService as _0x180893,isTransformMutationFailure as _0x4ee9e9,isTransformMutationsWithChangesetSuccess as _0x110ba3,ITransformService as _0x191396,RevisionService as _0x49adf8,mapDocumentTypeToUniverType as _0x5e774f,isTransformChangesetsSuccess as _0x47a6ae,CompressMutationService as _0x3c64bb,parseProtocolChangeset as _0x3a768d,SnapshotService as _0x234f02,textEncoder as _0x4049ad,b64DecodeUnicode as _0x2a5fc5,isTransformMutationsWithChangesetFailure as _0x4cd7ab,UniverCollaborationPlugin as _0x165c9d}from'@univerjs-pro/collaboration';import{ITelemetryService as _0xfb6e22}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0xa62fc1,DocStateChangeManagerService as _0x381024,NodePositionConvertToCursor as _0x438426,isValidRectRange as _0xa20c,NodePositionConvertToRectRange as _0x20f37d,TEXT_RANGE_LAYER_INDEX as _0x3fab62,SetDocZoomRatioOperation as _0x48d2e7}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x5ced1d,SetSelectionsOperation as _0xbeb346,InsertSheetMutation as _0x22989c,EmptyMutation as _0x6b935d,WorkbookEditablePermission as _0x496922,RefRangeService as _0xfc322f,EffectRefRangId as _0x341f0b,handleIRemoveRow as _0x1a7c1f,handleIRemoveCol as _0x2012a5,handleMoveRange as _0x39ef57,handleInsertRow as _0x1a55df,handleInsertRangeMoveRight as _0x16806d,handleInsertRangeMoveDown as _0xd00542,handleInsertCol as _0x16e24d,handleDeleteRangeMoveUp as _0x8f8669,handleDeleteRangeMoveLeft as _0x5eae21,runRefRangeMutations as _0x43ad00,SetWorksheetActivateCommand as _0x1c03e6}from'@univerjs/sheets';import{IRenderManagerService as _0x7fdfc4,Shape as _0x3656aa,Rect as _0x574b0c,getColor as _0x1aeb73,RegularPolygon as _0x465234,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x3d48ac,Vector2 as _0x240869}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x2af257,RichTextEditingMutation as _0x185416,SetTextSelectionsOperation as _0x28119f,DocSkeletonManagerService as _0x4ef7b1}from'@univerjs/docs';import{ImageSourceType as _0x2f7913,ImageUploadStatusType as _0x13fb43,IImageIoService as _0x2be35a}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x410864,serializeRangeWithSheet as _0xfdce30}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x5e78a,VIEWPORT_KEY as _0x3cbf38,getCoordByCell as _0x5b4d99,getSheetObject as _0x1d7703,SheetPermissionInitController as _0xcd44b3}from'@univerjs/sheets-ui';import _0xcdebad,{forwardRef as _0x4b042d,useRef as _0x12589b,createElement as _0x5d5c63,useCallback as _0x15171f}from'react';import{IRemoteInstanceService as _0x2db9d4}from'@univerjs/rpc';import{getAttachHeader as _0x258e3b}from'@univerjs-pro/license';const In=_0x5009fc(0x19e),En=_0x5009fc(0x332),Cn=_0x5009fc(0x2a2),Ha=_0x5009fc(0x1af),bn=0x7d0,Tn=_0x5009fc(0x359),Rn=_0x5009fc(0x1f1),On='HEARTBEAT_INTERVAL',Dn=0x7530,js=_0x5009fc(0x2f2),Hs=0x4e20,wn=0x4e20,Pn=_0x5009fc(0x34c),yn=0x3,Un='LOCAL_CACHE_INTERVAL',Nn=0x3e8,Mn='COLLAB_SUBMIT_CHANGESET_URL',An=_0x5009fc(0x36b),Ln=_0x5009fc(0x230),$n=_0x5009fc(0x3d5);var xs=(_0x235b1a=>(_0x235b1a[_0x235b1a[_0x5009fc(0x2d2)]=0x0]='UNDEFINED',_0x235b1a[_0x235b1a['OK']=0x1]='OK',_0x235b1a[_0x235b1a[_0x5009fc(0x318)]=0x2]=_0x5009fc(0x318),_0x235b1a[_0x235b1a['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x235b1a[_0x235b1a[_0x5009fc(0x3ef)]=0x4]='NOT_FOUND',_0x235b1a[_0x235b1a[_0x5009fc(0x354)]=0x5]=_0x5009fc(0x354),_0x235b1a[_0x235b1a[_0x5009fc(0x26a)]=0x6]=_0x5009fc(0x26a),_0x235b1a[_0x235b1a[_0x5009fc(0x23e)]=0x7]=_0x5009fc(0x23e),_0x235b1a[_0x235b1a['TOO_MANY_REQUESTS']=0x8]=_0x5009fc(0x36e),_0x235b1a[_0x235b1a[_0x5009fc(0x3df)]=0x9]=_0x5009fc(0x3df),_0x235b1a[_0x235b1a[_0x5009fc(0x357)]=0x1389]=_0x5009fc(0x357),_0x235b1a[_0x235b1a[_0x5009fc(0x35f)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x235b1a[_0x235b1a[_0x5009fc(0x29f)]=0x1772]=_0x5009fc(0x29f),_0x235b1a[_0x235b1a[_0x5009fc(0x3d0)]=0x1773]=_0x5009fc(0x3d0),_0x235b1a[_0x235b1a['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x235b1a[_0x235b1a[_0x5009fc(0x413)]=0x1b5a]=_0x5009fc(0x413),_0x235b1a[_0x235b1a['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x5009fc(0x297),_0x235b1a[_0x235b1a['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x235b1a[_0x235b1a[_0x5009fc(0x1c0)]=0x1b5d]=_0x5009fc(0x1c0),_0x235b1a[_0x235b1a[_0x5009fc(0x415)]=0x1f41]=_0x5009fc(0x415),_0x235b1a[_0x235b1a['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x5009fc(0x24a),_0x235b1a[_0x235b1a[_0x5009fc(0x2f3)]=0x232a]=_0x5009fc(0x2f3),_0x235b1a[_0x235b1a[_0x5009fc(0x141)]=0x232b]=_0x5009fc(0x141),_0x235b1a[_0x235b1a[_0x5009fc(0x3a1)]=0x232c]=_0x5009fc(0x3a1),_0x235b1a[_0x235b1a[_0x5009fc(0x2bb)]=0x232d]=_0x5009fc(0x2bb),_0x235b1a[_0x235b1a['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x235b1a[_0x235b1a['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x5009fc(0x3b9),_0x235b1a[_0x235b1a[_0x5009fc(0x1b4)]=0x2713]=_0x5009fc(0x1b4),_0x235b1a[_0x235b1a['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x5009fc(0x402),_0x235b1a[_0x235b1a[_0x5009fc(0x35e)]=-0x1]=_0x5009fc(0x35e),_0x235b1a))(xs||{}),k=(_0x15a986=>(_0x15a986[_0x15a986['UNIVER_UNKNOWN']=0x0]='UNIVER_UNKNOWN',_0x15a986[_0x15a986['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x15a986[_0x15a986[_0x5009fc(0x33c)]=0x2]=_0x5009fc(0x33c),_0x15a986[_0x15a986[_0x5009fc(0x2e8)]=0x3]=_0x5009fc(0x2e8),_0x15a986[_0x15a986[_0x5009fc(0x1ac)]=0x4]='UNIVER_PROJECT',_0x15a986[_0x15a986[_0x5009fc(0x35e)]=-0x1]='UNRECOGNIZED',_0x15a986))(k||{}),I=(_0x8a93ff=>(_0x8a93ff[_0x8a93ff[_0x5009fc(0x41e)]=0x0]='UNKNOWN_CMD',_0x8a93ff[_0x8a93ff[_0x5009fc(0x3f0)]=0x1]=_0x5009fc(0x3f0),_0x8a93ff[_0x8a93ff[_0x5009fc(0x293)]=0x2]=_0x5009fc(0x293),_0x8a93ff[_0x8a93ff[_0x5009fc(0x286)]=0x3]=_0x5009fc(0x286),_0x8a93ff[_0x8a93ff[_0x5009fc(0x3f2)]=0x4]=_0x5009fc(0x3f2),_0x8a93ff[_0x8a93ff[_0x5009fc(0x29c)]=0x5]=_0x5009fc(0x29c),_0x8a93ff[_0x8a93ff[_0x5009fc(0x1fb)]=0x6]=_0x5009fc(0x1fb),_0x8a93ff[_0x8a93ff[_0x5009fc(0x35e)]=-0x1]='UNRECOGNIZED',_0x8a93ff))(I||{}),Vt=(_0xd9fad7=>(_0xd9fad7[_0xd9fad7[_0x5009fc(0xd8)]=0x0]=_0x5009fc(0xd8),_0xd9fad7[_0xd9fad7['OK']=0x1]='OK',_0xd9fad7[_0xd9fad7[_0x5009fc(0x224)]=0x2]='FAIL',_0xd9fad7[_0xd9fad7['UNRECOGNIZED']=-0x1]=_0x5009fc(0x35e),_0xd9fad7))(Vt||{}),ks=(_0x373f07=>(_0x373f07[_0x373f07[_0x5009fc(0x330)]=0x0]=_0x5009fc(0x330),_0x373f07[_0x373f07['HttpImport']=0x1]=_0x5009fc(0x22f),_0x373f07[_0x373f07[_0x5009fc(0x387)]=0x2]='HttpExport',_0x373f07[_0x373f07['UnitEmbedded']=0x3]=_0x5009fc(0x244),_0x373f07[_0x373f07['UnitSnapshot']=0x4]='UnitSnapshot',_0x373f07[_0x373f07['UNRECOGNIZED']=-0x1]=_0x5009fc(0x35e),_0x373f07))(ks||{});const $=_0x5009fc(0x38e),jn={};function Hn(_0x1cdeb2){const _0x9391bf=_0x5009fc;var _0x25f8d7,_0x28aefd,_0x4d08cf,_0x2a6c99,_0x2309aa;const _0xc85090=_0x1cdeb2[_0x9391bf(0x363)],_0x48e72d=JSON['parse'](_0xc85090);switch(_0x48e72d[_0x9391bf(0x3c7)]){case I[_0x9391bf(0x29c)]:case I[_0x9391bf(0x3f0)]:{const _0x380bda=_0x48e72d[_0x9391bf(0x11d)];return{..._0x48e72d,'data':_0x380bda,'cmd':_0x48e72d[_0x9391bf(0x3c7)]};}case I['JOIN']:{const _0x1bb8c4=_0x48e72d[_0x9391bf(0x198)];return{..._0x48e72d,'data':_0x1bb8c4,'cmd':_0x48e72d[_0x9391bf(0x3c7)]};}case I[_0x9391bf(0x1fb)]:{const _0x5d8982=_0x48e72d['collaMsg'];switch(_0x5d8982[_0x9391bf(0x299)]){case _0x5bf9c6[_0x9391bf(0x12e)]:return{..._0x48e72d,'data':{..._0x5d8982,'data':(_0x25f8d7=_0x5d8982['permissionRejEvent'])==null?void 0x0:_0x25f8d7['cs']},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6[_0x9391bf(0x372)]:return{..._0x48e72d,'data':{..._0x5d8982,'data':(_0x28aefd=_0x5d8982[_0x9391bf(0x3ab)])==null?void 0x0:_0x28aefd['cs']},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6['NEW_CHANGESETS']:return{..._0x48e72d,'data':{..._0x5d8982,'data':(_0x4d08cf=_0x5d8982[_0x9391bf(0x3b6)])==null?void 0x0:_0x4d08cf['cs']},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6['CHANGESET_REJ']:return{..._0x48e72d,'data':{..._0x5d8982,'data':(_0x2a6c99=_0x5d8982[_0x9391bf(0xec)])==null?void 0x0:_0x2a6c99['cs']},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6['CHANGESET_SHOULD_RETRY']:return{..._0x48e72d,'data':{..._0x5d8982,'data':(_0x2309aa=_0x5d8982[_0x9391bf(0x1d3)])==null?void 0x0:_0x2309aa['cs']},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6[_0x9391bf(0x1c8)]:return{..._0x48e72d,'data':{..._0x5d8982,'data':_0x5d8982[_0x9391bf(0x1ab)]},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6[_0x9391bf(0x368)]:return{..._0x48e72d,'data':{..._0x5d8982,'data':_0x5d8982[_0x9391bf(0xdc)]},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6[_0x9391bf(0x291)]:return{..._0x48e72d,'data':{..._0x5d8982,'data':_0x5d8982[_0x9391bf(0x22a)]},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6['LIVESHARE_NEW_HOST']:return{..._0x48e72d,'data':{..._0x5d8982,'data':_0x5d8982[_0x9391bf(0x315)]},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6[_0x9391bf(0x275)]:case _0x5bf9c6['LIVESHARE_OPERATION']:return{..._0x48e72d,'data':{..._0x5d8982,'data':_0x5d8982[_0x9391bf(0x2d7)]},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6['LIVESHARE_TERMINATE']:return{..._0x48e72d,'data':{..._0x5d8982,'data':_0x5d8982[_0x9391bf(0x315)]},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6[_0x9391bf(0x399)]:return{..._0x48e72d,'data':_0x5d8982,'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6[_0x9391bf(0x3e1)]:return{..._0x48e72d,'data':{..._0x5d8982,'data':_0x5d8982[_0x9391bf(0x37a)]},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6[_0x9391bf(0x10a)]:return{..._0x48e72d,'data':{..._0x5d8982,'data':_0x5d8982[_0x9391bf(0xe9)]},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};case _0x5bf9c6[_0x9391bf(0x37c)]:return{..._0x48e72d,'data':{..._0x5d8982,'data':_0x5d8982[_0x9391bf(0x3f9)]},'cmd':_0x48e72d[_0x9391bf(0x3c7)]};default:return _0x48e72d;}}default:return _0x48e72d;}}function xn(_0x261390){const _0x5c8c10=_0x5009fc;switch(_0x261390['cmd']){case I[_0x5c8c10(0x29c)]:case I[_0x5c8c10(0x3f0)]:return JSON[_0x5c8c10(0x33b)]({'cmd':_0x261390[_0x5c8c10(0x3c7)],'routeKey':_0x261390[_0x5c8c10(0x309)]});case I[_0x5c8c10(0x3f2)]:{let _0x168f21;switch(_0x261390[_0x5c8c10(0x363)][_0x5c8c10(0x299)]){case _0x5bf9c6[_0x5c8c10(0x1c8)]:{_0x168f21={'eventID':_0x5bf9c6['UPDATE_CURSOR'],'updateCursorEvent':_0x261390[_0x5c8c10(0x363)][_0x5c8c10(0x363)]};break;}case _0x5bf9c6['USERS_LEAVE']:{_0x168f21={'eventID':_0x5bf9c6[_0x5c8c10(0x291)],'leaveEvent':_0x261390[_0x5c8c10(0x363)][_0x5c8c10(0x363)]};break;}case _0x5bf9c6['USERS_ENTER']:{_0x168f21={'eventID':_0x5bf9c6[_0x5c8c10(0x368)],'joinEvent':_0x261390['data'][_0x5c8c10(0x363)]};break;}case _0x5bf9c6[_0x5c8c10(0x192)]:{_0x168f21={'eventID':_0x5bf9c6['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x261390['data'][_0x5c8c10(0x363)]};break;}case _0x5bf9c6[_0x5c8c10(0x123)]:{_0x168f21={'eventID':_0x5bf9c6['LIVESHARE_OPERATION'],'liveShareOperation':_0x261390[_0x5c8c10(0x363)]['data']};break;}case _0x5bf9c6[_0x5c8c10(0xe2)]:{_0x168f21={'eventID':_0x5bf9c6[_0x5c8c10(0xe2)],'liveShareTerminate':_0x261390[_0x5c8c10(0x363)][_0x5c8c10(0x363)]};break;}case _0x5bf9c6['LIVESHARE_REQUEST_HOST']:{_0x168f21={'eventID':_0x5bf9c6[_0x5c8c10(0x319)],'liveShareRequestHost':_0x261390[_0x5c8c10(0x363)][_0x5c8c10(0x363)]};break;}case _0x5bf9c6[_0x5c8c10(0x275)]:{_0x168f21={'eventID':_0x5bf9c6[_0x5c8c10(0x275)]};break;}default:_0x168f21={'eventID':_0x261390[_0x5c8c10(0x363)][_0x5c8c10(0x299)]};}return JSON[_0x5c8c10(0x33b)]({'cmd':_0x261390[_0x5c8c10(0x3c7)],'routeKey':_0x261390['routeKey'],'collaMsg':_0x168f21});}case I[_0x5c8c10(0x293)]:return JSON[_0x5c8c10(0x33b)]({'cmd':_0x261390[_0x5c8c10(0x3c7)],'routeKey':_0x261390[_0x5c8c10(0x309)],'joinReq':_0x261390['data']});case I[_0x5c8c10(0x286)]:return JSON[_0x5c8c10(0x33b)]({'cmd':_0x261390[_0x5c8c10(0x3c7)],'routeKey':_0x261390[_0x5c8c10(0x309)],'leaveReq':_0x261390[_0x5c8c10(0x363)]});default:throw new Error(_0x5c8c10(0x105));}}var kn=Object[_0x5009fc(0x235)],Bn=Object[_0x5009fc(0x327)],Vn=(_0x10a99e,_0x326232,_0x3131fe,_0x4dfac6)=>{const _0x1ec77f=_0x5009fc;for(var _0x13da6c=_0x4dfac6>0x1?void 0x0:_0x4dfac6?Bn(_0x326232,_0x3131fe):_0x326232,_0x4db153=_0x10a99e[_0x1ec77f(0x21e)]-0x1,_0x2390f5;_0x4db153>=0x0;_0x4db153--)(_0x2390f5=_0x10a99e[_0x4db153])&&(_0x13da6c=(_0x4dfac6?_0x2390f5(_0x326232,_0x3131fe,_0x13da6c):_0x2390f5(_0x13da6c))||_0x13da6c);return _0x4dfac6&&_0x13da6c&&kn(_0x326232,_0x3131fe,_0x13da6c),_0x13da6c;},Oe=(_0x52cad4,_0x2179fc)=>(_0x1945f6,_0x39908a)=>_0x2179fc(_0x1945f6,_0x39908a,_0x52cad4);const Bs=_0x5c6f0d(_0x5009fc(0x1b9));function Fn(_0x5cff63,_0x1af451,_0x254f3d){const _0xa33291=_0x5009fc;return _0x5cff63+'/'+_0x1af451+_0xa33291(0x11e)+_0x254f3d+_0xa33291(0x150);}let Ct=class extends _0x16541d{constructor(_0x3e5f4f,_0x54e6e6,_0x223060,_0x22e9b3,_0x301b30){const _0x4ee8a8=_0x5009fc;super(),this['_http']=_0x3e5f4f,this[_0x4ee8a8(0xff)]=_0x54e6e6,this[_0x4ee8a8(0x361)]=_0x223060,this[_0x4ee8a8(0x208)]=_0x22e9b3,this[_0x4ee8a8(0x33a)]=_0x301b30;}['createSocket'](_0x3daf46){const _0x595d29=_0x5009fc,_0x38f70d=this[_0x595d29(0xff)]['createSocket'](_0x3daf46);if(!_0x38f70d)throw new Error(_0x595d29(0x1a2));const _0x2b7c81=new _0xa23355(),_0x25ce63=new _0x379f4();_0x2b7c81[_0x595d29(0x3ea)](_0x38f70d['close$'][_0x595d29(0x206)](_0x1303fc=>_0x25ce63['next'](_0x1303fc))),_0x2b7c81[_0x595d29(0x3ea)](_0x2b2e4c(()=>_0x25ce63['complete']()));const _0x279c1f=new _0x379f4();_0x2b7c81[_0x595d29(0x3ea)](_0x38f70d['error$'][_0x595d29(0x206)](_0x3bc758=>_0x279c1f[_0x595d29(0x1cf)](_0x3bc758))),_0x2b7c81[_0x595d29(0x3ea)](_0x2b2e4c(()=>_0x279c1f['complete']()));const _0x52199f=new _0x379f4();_0x2b7c81['add'](_0x38f70d[_0x595d29(0x253)]['subscribe'](_0x1d18fe=>{const _0x1900e5=Hn(_0x1d18fe);_0x52199f['next'](_0x1900e5);})),_0x2b7c81[_0x595d29(0x3ea)](_0x2b2e4c(()=>_0x52199f[_0x595d29(0x20d)]()));let _0x23be85;const _0xb06145=()=>{const _0x305dd2=_0x595d29;_0x279c1f[_0x305dd2(0x1cf)](new Event(_0x305dd2(0x102))),_0x25ce63[_0x305dd2(0x1cf)](new CloseEvent(_0x305dd2(0x102))),_0x23be85['close']();};return _0x23be85={'memberID':'','close$':_0x25ce63['asObservable'](),'error$':_0x279c1f[_0x595d29(0x396)](),'open$':_0x38f70d[_0x595d29(0x390)],'message$':_0x52199f['asObservable'](),'send':_0x98553e=>{const _0x465542=_0x595d29;if(_0x98553e[_0x465542(0x3c7)]===I[_0x465542(0x3f2)]){if(_0x98553e[_0x465542(0x363)][_0x465542(0x299)]===_0x5bf9c6[_0x465542(0x389)]){this[_0x465542(0x43e)](_0x23be85,_0x98553e[_0x465542(0x363)])['catch'](_0x4a90aa=>{const _0x4144d2=_0x465542;this[_0x4144d2(0x208)]['error'](_0x4a90aa),_0xb06145();});return;}if(_0x98553e[_0x465542(0x363)][_0x465542(0x299)]===_0x5bf9c6[_0x465542(0x219)]){const _0xfa5296=_0x98553e[_0x465542(0x363)];this[_0x465542(0x280)](_0xfa5296)[_0x465542(0x367)](_0x2e7f8d=>{const _0x172e3a=_0x465542;_0x52199f[_0x172e3a(0x1cf)]({'cmd':I[_0x172e3a(0x1fb)],'code':Vt['OK'],'routeKey':_0xfa5296[_0x172e3a(0x363)][_0x172e3a(0x187)],'routeType':'','data':{'eventID':_0x5bf9c6[_0x172e3a(0x2ad)],'data':{'changesets':_0x2e7f8d}}});})[_0x465542(0x255)](_0xc53653=>{const _0xcb0503=_0x465542;this[_0xcb0503(0x208)][_0xcb0503(0x1bb)](_0xc53653),_0xb06145();});return;}}_0x38f70d[_0x465542(0x3ca)](xn(_0x98553e));},'close':()=>{const _0x4c7989=_0x595d29;_0x38f70d[_0x4c7989(0x1d7)](),_0x2b7c81[_0x4c7989(0x298)]();}},_0x23be85;}async[_0x5009fc(0x43e)](_0x2a98f4,_0xa3db37){const _0x34f5d8=_0x5009fc;var _0x4446dc,_0x46d424;const {unitType:_0x32a292,unitID:_0x330ba8,changeset:_0x29ac10}=_0xa3db37[_0x34f5d8(0x363)],_0x5121a4={'unitID':_0x330ba8,'memberID':_0x2a98f4[_0x34f5d8(0x347)],'type':_0x32a292,'changeset':_0x38bdce(_0x29ac10)},_0x5d0393=this['_configService'][_0x34f5d8(0x23b)](Mn),_0x3ecf6c=this[_0x34f5d8(0x361)][_0x34f5d8(0x23b)]($),_0x3aa9d2=Fn((_0x46d424=(_0x4446dc=_0x3ecf6c==null?void 0x0:_0x3ecf6c[_0x34f5d8(0x1d8)])!=null?_0x4446dc:_0x5d0393)!=null?_0x46d424:An,_0x32a292,_0x330ba8);try{await this[_0x34f5d8(0x436)]['post'](_0x3aa9d2,{'body':_0x5121a4});}catch(_0x30ee3f){throw this[_0x34f5d8(0x208)][_0x34f5d8(0x1bb)](_0x34f5d8(0x3b1),_0x34f5d8(0x1d9)),_0x30ee3f;}}async[_0x5009fc(0x280)](_0x55a6f0){const _0x348b10=_0x5009fc,{unitID:_0x2dc1ad,from:_0x298734,to:_0x179b02,unitType:_0x226404}=_0x55a6f0[_0x348b10(0x363)];return(await this[_0x348b10(0x33a)][_0x348b10(0x2b7)]({'metadata':void 0x0},{'unitID':_0x2dc1ad,'type':_0x226404,'from':_0x298734,'to':_0x179b02}))['changesets'];}};Ct=Vn([Oe(0x0,_0x1f955f(_0x3a167c)),Oe(0x1,_0x1f955f(_0x4a2775)),Oe(0x2,_0x4b96c2),Oe(0x3,_0x5cfe43),Oe(0x4,_0x180893)],Ct);const Wn=_0x5009fc(0x3bc);function Gn(_0x3d4715){const _0x3b06aa=_0x5009fc;return JSON['stringify'](_0x3d4715)[_0x3b06aa(0x21e)];}class Vs{constructor(){const _0xb82c3a=_0x5009fc;l(this,_0xb82c3a(0x1c2),new _0x379f4()),l(this,_0xb82c3a(0x356),this['_commentUpdate$']['asObservable']());}[_0x5009fc(0x2f1)](_0x4361a7){const _0x1fd99e=_0x5009fc;this[_0x1fd99e(0x1c2)]['next'](_0x4361a7);}}var Yn=Object[_0x5009fc(0x235)],Kn=Object[_0x5009fc(0x327)],Xn=(_0x17874c,_0x2213fd,_0x119c4f,_0x437358)=>{const _0x5a365c=_0x5009fc;for(var _0x4d1de1=_0x437358>0x1?void 0x0:_0x437358?Kn(_0x2213fd,_0x119c4f):_0x2213fd,_0x449400=_0x17874c[_0x5a365c(0x21e)]-0x1,_0x151383;_0x449400>=0x0;_0x449400--)(_0x151383=_0x17874c[_0x449400])&&(_0x4d1de1=(_0x437358?_0x151383(_0x2213fd,_0x119c4f,_0x4d1de1):_0x151383(_0x4d1de1))||_0x4d1de1);return _0x437358&&_0x4d1de1&&Yn(_0x2213fd,_0x119c4f,_0x4d1de1),_0x4d1de1;},as=(_0x33dd1b,_0xa8d5cd)=>(_0x53c5b5,_0x27aa21)=>_0xa8d5cd(_0x53c5b5,_0x27aa21,_0x33dd1b);let ce=class extends _0x16541d{constructor(_0x3056e6,_0x5e9984){const _0x3098e1=_0x5009fc;super(),l(this,_0x3098e1(0x41c),new Map()),(this[_0x3098e1(0x250)]=_0x3056e6,this[_0x3098e1(0x35b)]=_0x5e9984,this['disposeWithMe'](_0x2b2e4c(_0x370802(this[_0x3098e1(0x250)][_0x3098e1(0xf0)](_0x53f477[_0x3098e1(0x33c)])['pipe'](_0x13fcf1(_0x464ea2=>_0x464ea2[_0x3098e1(0x147)]())),this[_0x3098e1(0x250)][_0x3098e1(0xf0)](_0x53f477[_0x3098e1(0x36f)])[_0x3098e1(0x44f)](_0x13fcf1(_0x3fc812=>_0x3fc812[_0x3098e1(0x147)]())),this[_0x3098e1(0x250)][_0x3098e1(0xf0)](_0x53f477[_0x3098e1(0x2e8)])['pipe'](_0x13fcf1(_0x52adac=>_0x52adac[_0x3098e1(0x147)]())))[_0x3098e1(0x206)](_0x4835fb=>this[_0x3098e1(0x3ae)](_0x4835fb)))));}[_0x5009fc(0x365)](_0x4ae5ee){this['_userManagerService']['setCurrentUser'](_0x4ae5ee);}['getCurrentUser'](){const _0x111afd=_0x5009fc;return this[_0x111afd(0x35b)]['getCurrentUser']();}['updateMember'](_0x5cd23b,_0x4fc732){const _0x4f6baf=_0x5009fc;let _0x347e70=this[_0x4f6baf(0x41c)]['get'](_0x5cd23b);_0x347e70||(_0x347e70=new qn(),this[_0x4f6baf(0x41c)]['set'](_0x5cd23b,_0x347e70)),_0x347e70['updateMember'](_0x4fc732);}[_0x5009fc(0x13c)](_0x4ab3a8,_0x15367e){const _0x21f419=_0x5009fc,_0x321588=this[_0x21f419(0x41c)][_0x21f419(0x381)](_0x4ab3a8);_0x321588&&_0x321588[_0x21f419(0x13c)](_0x15367e);}[_0x5009fc(0x329)](_0x5ef6f9){const _0x5df090=_0x5009fc;return this['_roomMembers'][_0x5df090(0x381)](_0x5ef6f9);}[_0x5009fc(0x248)](_0x56f41e,_0x23cd86){const _0x4c992e=_0x5009fc,_0x42bb09=this[_0x4c992e(0x41c)][_0x4c992e(0x381)](_0x56f41e);if(_0x42bb09)return _0x42bb09[_0x4c992e(0x248)](_0x23cd86);}[_0x5009fc(0x3ae)](_0xf1db59){const _0x1be1e4=_0x5009fc,_0x1731e4=this[_0x1be1e4(0x41c)][_0x1be1e4(0x381)](_0xf1db59);_0x1731e4&&(_0x1731e4[_0x1be1e4(0x298)](),this[_0x1be1e4(0x41c)][_0x1be1e4(0x184)](_0xf1db59));}[_0x5009fc(0x298)](){const _0x25b1d5=_0x5009fc;this[_0x25b1d5(0x41c)][_0x25b1d5(0x1d4)](_0xac9d9a=>_0xac9d9a[_0x25b1d5(0x298)]()),this[_0x25b1d5(0x41c)][_0x25b1d5(0x306)]();}};ce=Xn([as(0x0,_0x2d78d8),as(0x1,_0x1f955f(_0x1bc870))],ce);class qn extends _0x16541d{constructor(){const _0x287764=_0x5009fc;super(...arguments),l(this,_0x287764(0x222),new Map());}[_0x5009fc(0x298)](){const _0xd19605=_0x5009fc;this['_members'][_0xd19605(0x306)]();}[_0x5009fc(0x3ec)](_0x1cf7ba){const _0x2f291e=_0x5009fc;this['_members'][_0x2f291e(0x411)](_0x1cf7ba[_0x2f291e(0x347)],_0x1cf7ba);}['removeMember'](_0x449516){const _0x990104=_0x5009fc;this['_members'][_0x990104(0x184)](_0x449516);}[_0x5009fc(0x248)](_0x140166){const _0x2d9c43=_0x5009fc;return this[_0x2d9c43(0x222)][_0x2d9c43(0x381)](_0x140166);}}var Jn=Object[_0x5009fc(0x235)],zn=Object[_0x5009fc(0x327)],Zn=(_0x53f10c,_0x52e5b8,_0x4bad1a,_0x46c0e0)=>{const _0x23d3f8=_0x5009fc;for(var _0x20b269=_0x46c0e0>0x1?void 0x0:_0x46c0e0?zn(_0x52e5b8,_0x4bad1a):_0x52e5b8,_0x3252a3=_0x53f10c[_0x23d3f8(0x21e)]-0x1,_0x52bc53;_0x3252a3>=0x0;_0x3252a3--)(_0x52bc53=_0x53f10c[_0x3252a3])&&(_0x20b269=(_0x46c0e0?_0x52bc53(_0x52e5b8,_0x4bad1a,_0x20b269):_0x52bc53(_0x20b269))||_0x20b269);return _0x46c0e0&&_0x20b269&&Jn(_0x52e5b8,_0x4bad1a,_0x20b269),_0x20b269;},J=(_0x4fc121,_0x50eb70)=>(_0xbb97c3,_0x1d0698)=>_0x50eb70(_0xbb97c3,_0x1d0698,_0x4fc121),Y=(_0x4b5a82=>(_0x4b5a82[_0x4b5a82[_0x5009fc(0x267)]=0x0]=_0x5009fc(0x267),_0x4b5a82[_0x4b5a82[_0x5009fc(0x420)]=0x1]=_0x5009fc(0x420),_0x4b5a82[_0x4b5a82['OFFLINE']=0x2]=_0x5009fc(0x29e),_0x4b5a82[_0x4b5a82[_0x5009fc(0x16c)]=0x3]=_0x5009fc(0x16c),_0x4b5a82))(Y||{});let bt=class extends _0x5889a4{constructor(_0x21469a,_0x3658c8,_0x3be128,_0x4eaa16,_0x54c7af,_0x38dabf,_0x55c5a0,_0x125593,_0x40d78d,_0x49d7e3){const _0x3d5515=_0x5009fc;super(),l(this,_0x3d5515(0x37e),new _0x3a492f(0x0)),l(this,'sessionStatus$',this[_0x3d5515(0x37e)][_0x3d5515(0x396)]()),l(this,_0x3d5515(0x37d),new _0x379f4()),l(this,_0x3d5515(0x427),this[_0x3d5515(0x37d)][_0x3d5515(0x396)]()),l(this,_0x3d5515(0x321)),l(this,'_socketMessageSubscription'),l(this,'_collaborationTimeoutTimer'),l(this,_0x3d5515(0x370),!0x1),l(this,_0x3d5515(0x25f),null),(this[_0x3d5515(0x3db)]=_0x21469a,this[_0x3d5515(0x208)]=_0x3be128,this['_beforeCloseService']=_0x4eaa16,this[_0x3d5515(0x104)]=_0x54c7af,this[_0x3d5515(0x361)]=_0x38dabf,this['_localeService']=_0x55c5a0,this['_memberService']=_0x125593,this[_0x3d5515(0x188)]=_0x40d78d,this[_0x3d5515(0x14c)]=_0x49d7e3,this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x3658c8['pipe'](_0x810e9a(this[_0x3d5515(0x35c)]))[_0x3d5515(0x206)](_0x2cf4ed=>{const _0x15d92e=_0x3d5515;var _0x39411d;typeof _0x2cf4ed>'u'||(this['_socket']=_0x2cf4ed,_0x2cf4ed?(this['_joinRoom'](_0x2cf4ed),this[_0x15d92e(0x12a)]=_0x2cf4ed[_0x15d92e(0x253)][_0x15d92e(0x206)](_0x536530=>{const _0x1cbb00=_0x15d92e;_0x536530[_0x1cbb00(0x309)]===this['_unitID']&&this[_0x1cbb00(0x2f8)](_0x536530);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x15d92e(0x37e)][_0x15d92e(0x1cf)](0x2),(_0x39411d=this[_0x15d92e(0x12a)])==null||_0x39411d[_0x15d92e(0x32a)](),this[_0x15d92e(0x12a)]=null));}),this[_0x3d5515(0x341)](this[_0x3d5515(0x39f)][_0x3d5515(0x245)](()=>{const _0x4d2d82=_0x3d5515;var _0x2275fa;(_0x2275fa=this[_0x4d2d82(0x321)])==null||_0x2275fa[_0x4d2d82(0x3ca)]({'cmd':I[_0x4d2d82(0x286)],'data':{'roomID':this[_0x4d2d82(0x3db)]}});})));}get[_0x5009fc(0x19d)](){const _0x34a48b=_0x5009fc;return this[_0x34a48b(0x37e)][_0x34a48b(0x284)]();}[_0x5009fc(0x2ae)](){const _0x33ce90=_0x5009fc;var _0x13861a,_0x3ea519;return(_0x3ea519=(_0x13861a=this['_socket'])==null?void 0x0:_0x13861a[_0x33ce90(0x347)])!=null?_0x3ea519:null;}[_0x5009fc(0x298)](){const _0x2dc99b=_0x5009fc;super['dispose'](),this['dispose$'][_0x2dc99b(0x1cf)](),this[_0x2dc99b(0x35c)][_0x2dc99b(0x20d)]();}[_0x5009fc(0x1d7)](){const _0x39ca8e=_0x5009fc;var _0x5d09a3,_0x424cca;this['_throwTelemetryCollaborationNewChangeset'](),(_0x5d09a3=this[_0x39ca8e(0x321)])==null||_0x5d09a3[_0x39ca8e(0x3ca)]({'cmd':I[_0x39ca8e(0x286)],'data':{'roomID':this['_unitID']}}),(_0x424cca=this['_socket'])==null||_0x424cca[_0x39ca8e(0x1d7)](),this[_0x39ca8e(0x37d)]['complete'](),this[_0x39ca8e(0x37e)][_0x39ca8e(0x20d)](),this[_0x39ca8e(0x298)]();}[_0x5009fc(0x2f8)](_0x228461){const _0x2151fb=_0x5009fc;_0x228461[_0x2151fb(0x3c7)]===I[_0x2151fb(0x293)]?this[_0x2151fb(0x177)](_0x228461):_0x228461[_0x2151fb(0x3c7)]===I['RECV']&&this['_onRecvEvent'](_0x228461);}['_joinRoom'](_0x36bba1){const _0x56d616=_0x5009fc;this['_sessionStatus$']['next'](0x1),_0x36bba1['send']({'cmd':I['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x56d616(0x3db)]}]}});}[_0x5009fc(0x177)](_0x1bdf61){const _0x3fff85=_0x5009fc;var _0x56d7e5;if(_0x1bdf61[_0x3fff85(0x3ed)]===Vt[_0x3fff85(0x224)]){this['_messageService'][_0x3fff85(0xf7)]({'type':_0x3738f0[_0x3fff85(0x28f)],'content':this[_0x3fff85(0x2a6)]['t'](_0x3fff85(0x42b))}),this[_0x3fff85(0x37e)]['next'](0x2);return;}this['_sessionStatus$'][_0x3fff85(0x1cf)](0x3);const _0x2fd208=(_0x56d7e5=_0x1bdf61['data']['roomInfos'][this[_0x3fff85(0x3db)]])==null?void 0x0:_0x56d7e5[_0x3fff85(0x40e)];_0x2fd208&&_0x2fd208[_0x3fff85(0x1d4)](_0x3d06b9=>this[_0x3fff85(0x40a)][_0x3fff85(0x3ec)](this[_0x3fff85(0x3db)],_0x3d06b9));}[_0x5009fc(0x3f8)](_0x3879ad){const _0x27f499=_0x5009fc;try{const _0x32b9e2=_0x3879ad[_0x27f499(0x363)];switch(_0x32b9e2[_0x27f499(0x299)]){case _0x5bf9c6['USERS_ENTER']:this[_0x27f499(0x295)](_0x32b9e2),this['_event$'][_0x27f499(0x1cf)](_0x32b9e2);break;case _0x5bf9c6[_0x27f499(0x291)]:this[_0x27f499(0x3c2)](_0x32b9e2),this['_event$']['next'](_0x32b9e2);break;case _0x5bf9c6[_0x27f499(0x372)]:case _0x5bf9c6[_0x27f499(0x2d0)]:this[_0x27f499(0x438)](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x27f499(0x1cf)](_0x32b9e2);break;case _0x5bf9c6['MSG_FOR_ERROR']:this[_0x27f499(0x208)][_0x27f499(0x1bb)](_0x27f499(0x1a0)+JSON[_0x27f499(0x33b)](_0x32b9e2)),this[_0x27f499(0x37d)][_0x27f499(0x1cf)](_0x32b9e2);break;case _0x5bf9c6[_0x27f499(0x3e1)]:this[_0x27f499(0x188)]['onCommentUpdate'](_0x32b9e2[_0x27f499(0x363)]),this[_0x27f499(0x37d)][_0x27f499(0x1cf)](_0x32b9e2);break;default:this['_event$'][_0x27f499(0x1cf)](_0x32b9e2);}}catch(_0x2f18de){this[_0x27f499(0x208)]['error'](_0x2f18de,_0x3879ad);}}[_0x5009fc(0x295)](_0x1616da){const _0xe2cabb=_0x5009fc;this[_0xe2cabb(0x40a)]['updateMember'](this['_unitID'],_0x1616da['data']);}[_0x5009fc(0x3c2)](_0x41e110){const _0x4c6b19=_0x5009fc;this[_0x4c6b19(0x40a)][_0x4c6b19(0x13c)](this['_unitID'],_0x41e110[_0x4c6b19(0x363)][_0x4c6b19(0x347)]);}async[_0x5009fc(0x3ca)](_0x447271,_0x4f60b8){const _0x1a3a71=_0x5009fc;if(this['sessionStatus']!==0x3||!this[_0x1a3a71(0x321)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x447271[_0x1a3a71(0x299)]===_0x5bf9c6[_0x1a3a71(0x389)]&&(this[_0x1a3a71(0x3af)](),this[_0x1a3a71(0x1d1)](_0x447271)),this['_socket'][_0x1a3a71(0x3ca)]({'cmd':I[_0x1a3a71(0x3f2)],'routeKey':_0x4f60b8,'routeType':'','data':_0x447271});}catch(_0x567b24){this[_0x1a3a71(0x208)][_0x1a3a71(0x1bb)](_0x567b24);}}['_scheduleCollaborationTimeoutTimer'](){const _0x3808db=_0x5009fc;var _0x1ff012;this[_0x3808db(0x3a3)]=window[_0x3808db(0x13f)](()=>{const _0x5b3e90=_0x3808db;this[_0x5b3e90(0x3a3)]=null,this[_0x5b3e90(0x104)][_0x5b3e90(0xf7)]({'type':_0x3738f0['Error'],'content':this['_localeService']['t'](_0x5b3e90(0x39a))});},(_0x1ff012=this['_configService']['getConfig'](js))!=null?_0x1ff012:Hs);}[_0x5009fc(0x116)](){const _0x4255aa=_0x5009fc;this[_0x4255aa(0x3a3)]&&(clearTimeout(this[_0x4255aa(0x3a3)]),this[_0x4255aa(0x3a3)]=null);}[_0x5009fc(0x1d1)](_0x1fc19e){const _0x52b45e=_0x5009fc;if(!this[_0x52b45e(0x370)])return;const {data:_0x514c2c}=_0x1fc19e,{unitID:_0x221202,changeset:_0x4d2d62}=_0x514c2c,{mutations:_0x1ab52d,type:_0x285e78}=_0x4d2d62;this['_telemetryInfo']={'unitId':_0x221202,'type':_0x285e78,'startTime':performance[_0x52b45e(0x2a7)](),'stopTime':0x0,'duration':0x0,'size':Gn(_0x1ab52d)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x279496=_0x5009fc;if(this[_0x279496(0x370)]){if(!this['_telemetryInfo']){this[_0x279496(0x208)][_0x279496(0x1bb)](_0x279496(0x3b1),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x279496(0x25f)][_0x279496(0xf2)]=performance[_0x279496(0x2a7)](),this[_0x279496(0x25f)]['duration']=this[_0x279496(0x25f)][_0x279496(0xf2)]-this['_telemetryInfo']['startTime'],this[_0x279496(0x14c)][_0x279496(0x322)](Wn,this[_0x279496(0x25f)]),this['_telemetryInfo']=null;}}[_0x5009fc(0x2c4)](){this['_telemetryInfo']=null;}};bt=Zn([J(0x2,_0x5cfe43),J(0x3,_0x548106),J(0x4,_0x40b38a),J(0x5,_0x4b96c2),J(0x6,_0x1f955f(_0x371029)),J(0x7,_0x1f955f(ce)),J(0x8,_0x1f955f(Vs)),J(0x9,_0x25fcfd(_0xfb6e22))],bt);var Qn=Object[_0x5009fc(0x235)],er=Object[_0x5009fc(0x327)],tr=(_0x5872cd,_0x55a817,_0x46b3a4,_0x84fc75)=>{const _0x27b4dd=_0x5009fc;for(var _0x129a04=_0x84fc75>0x1?void 0x0:_0x84fc75?er(_0x55a817,_0x46b3a4):_0x55a817,_0x257b8e=_0x5872cd[_0x27b4dd(0x21e)]-0x1,_0x2ccba6;_0x257b8e>=0x0;_0x257b8e--)(_0x2ccba6=_0x5872cd[_0x257b8e])&&(_0x129a04=(_0x84fc75?_0x2ccba6(_0x55a817,_0x46b3a4,_0x129a04):_0x2ccba6(_0x129a04))||_0x129a04);return _0x84fc75&&_0x129a04&&Qn(_0x55a817,_0x46b3a4,_0x129a04),_0x129a04;},me=(_0x493420,_0x5a53f6)=>(_0x5e4159,_0x181274)=>_0x5a53f6(_0x5e4159,_0x181274,_0x493420);let he=class extends _0x16541d{constructor(_0x507fc1,_0x426159,_0xc88ab7,_0x1e48a7,_0x2a5964,_0x2a567c){const _0x5689d9=_0x5009fc;super(),l(this,_0x5689d9(0x236),new _0x3a492f(void 0x0)),l(this,_0x5689d9(0x1ce),this[_0x5689d9(0x236)][_0x5689d9(0x396)]()),l(this,'_candidateSocket',null),l(this,'_sessions',new Map()),l(this,_0x5689d9(0x2fb),new _0x3a492f(Y[_0x5689d9(0x267)])),l(this,_0x5689d9(0x27c),this['_status$'][_0x5689d9(0x396)]()),l(this,_0x5689d9(0x26e),!0x1),l(this,_0x5689d9(0x16d)),l(this,_0x5689d9(0x21c),0x0),l(this,_0x5689d9(0x30b)),l(this,'_timeoutTimer'),(this[_0x5689d9(0x448)]=_0x507fc1,this[_0x5689d9(0x2a6)]=_0x426159,this[_0x5689d9(0x104)]=_0xc88ab7,this[_0x5689d9(0x208)]=_0x1e48a7,this[_0x5689d9(0x361)]=_0x2a5964,this[_0x5689d9(0x18d)]=_0x2a567c,this[_0x5689d9(0xea)]());}get[_0x5009fc(0x321)](){const _0x4c7e54=_0x5009fc;return this['_socket$'][_0x4c7e54(0x284)]();}[_0x5009fc(0xea)](){const _0xcd791d=_0x5009fc;this[_0xcd791d(0x159)](),this['_listenToOnlineEvent']();}[_0x5009fc(0x298)](){const _0x1fc1d4=_0x5009fc;super[_0x1fc1d4(0x298)](),this[_0x1fc1d4(0x14e)]['forEach'](_0x279dd2=>_0x279dd2[_0x1fc1d4(0x298)]()),this[_0x1fc1d4(0x14e)][_0x1fc1d4(0x306)](),this[_0x1fc1d4(0x2fb)]['complete']();}async[_0x5009fc(0x1fd)](_0x30cd82){const _0x318444=_0x5009fc;if(this[_0x318444(0x14e)]['has'](_0x30cd82))return this[_0x318444(0x14e)][_0x318444(0x381)](_0x30cd82);this[_0x318444(0x441)]();const _0x3df9f9=this[_0x318444(0x448)]['createInstance'](bt,_0x30cd82,this['_socket$'][_0x318444(0x396)]());return this[_0x318444(0x14e)][_0x318444(0x411)](_0x30cd82,_0x3df9f9),_0x3df9f9;}['closeSession'](_0x2f6f5d){const _0x1bf236=_0x5009fc;var _0x172064;const _0x875bd3=this[_0x1bf236(0x14e)][_0x1bf236(0x381)](_0x2f6f5d);_0x875bd3&&(this['_sessions'][_0x1bf236(0x184)](_0x2f6f5d),_0x875bd3[_0x1bf236(0x1d7)]()),this[_0x1bf236(0x14e)][_0x1bf236(0x1f6)]||(_0x172064=this[_0x1bf236(0x321)])==null||_0x172064[_0x1bf236(0x1d7)]();}[_0x5009fc(0xf4)](){const _0x3ffee7=_0x5009fc;this[_0x3ffee7(0x21c)]=0x0,this[_0x3ffee7(0x16d)]!=null&&(clearTimeout(this[_0x3ffee7(0x16d)]),this['_retryConnectingTimer']=null),this[_0x3ffee7(0x1bc)]();}['_createSocket'](){const _0x5acefc=_0x5009fc;var _0x536026,_0xe6695d;const _0x215757=this[_0x5acefc(0x361)][_0x5acefc(0x23b)](Tn),_0x9f8d91=this[_0x5acefc(0x361)]['getConfig']($),_0x24e267=(_0xe6695d=(_0x536026=_0x9f8d91==null?void 0x0:_0x9f8d91['collabWebSocketUrl'])!=null?_0x536026:_0x215757)!=null?_0xe6695d:Rn,_0x2fd2b2=this[_0x5acefc(0x18d)][_0x5acefc(0x18f)](_0x24e267);return this[_0x5acefc(0x310)]=_0x2fd2b2,_0x2fd2b2;}[_0x5009fc(0x441)](){const _0x105643=_0x5009fc;var _0x4e6b15,_0x27fb98;try{const _0x4b4030=(_0x27fb98=(_0x4e6b15=this[_0x105643(0x321)])!=null?_0x4e6b15:this[_0x105643(0x310)])!=null?_0x27fb98:this['_createSocket']();if(_0x4b4030){const _0x48dbd4=_0x4b4030[_0x105643(0x3ca)];_0x4b4030[_0x105643(0x3ca)]=_0x11f78f=>(this[_0x105643(0x3be)](),_0x48dbd4[_0x105643(0x269)](_0x4b4030,[_0x11f78f])),_0x4b4030[_0x105643(0x253)]['subscribe'](_0x269dfc=>this['_onMessage'](_0x4b4030,_0x269dfc)),_0x4b4030['error$']['pipe'](_0x4e7c24(0x1))[_0x105643(0x206)](_0x59b433=>this[_0x105643(0x208)][_0x105643(0x1bb)](_0x105643(0x2c0),_0x59b433)),_0x4b4030[_0x105643(0x390)][_0x105643(0x44f)](_0x4e7c24(0x1))[_0x105643(0x206)](()=>{this['_onConnectionOpen'](_0x4b4030);}),_0x4b4030[_0x105643(0x3f3)][_0x105643(0x44f)](_0x4e7c24(0x1))[_0x105643(0x206)](_0x3825e9=>{const _0x598bcf=_0x105643;this[_0x598bcf(0x208)][_0x598bcf(0x232)](_0x598bcf(0x1f5),_0x598bcf(0x1c5),_0x3825e9),this[_0x598bcf(0x419)]();});}}catch(_0x1f5694){this[_0x105643(0x208)][_0x105643(0x1bb)](_0x1f5694),this[_0x105643(0x419)]();}}[_0x5009fc(0x3fc)](_0x5784af){const _0x31aedc=_0x5009fc;this[_0x31aedc(0x208)][_0x31aedc(0x232)](_0x31aedc(0x1f5),'socket\x20open.'),_0x5784af['send']({'cmd':I[_0x31aedc(0x3f0)]}),this[_0x31aedc(0x3be)]();}[_0x5009fc(0x159)](){const _0x2bf1c3=_0x5009fc;window[_0x2bf1c3(0x20e)](_0x2bf1c3(0x170),()=>this[_0x2bf1c3(0x1e6)]());}[_0x5009fc(0x1e6)](){const _0x21791e=_0x5009fc;this[_0x21791e(0x26e)]=!0x1,this['_candidateSocket']=null,this[_0x21791e(0x2fb)][_0x21791e(0x1cf)](Y[_0x21791e(0x29e)]),this['_socket$']['next'](null),this[_0x21791e(0x23a)](),this[_0x21791e(0x268)]();}[_0x5009fc(0x419)](){const _0x3b52fc=_0x5009fc;var _0x53cd1b;this['_onOffline'](),this[_0x3b52fc(0x21c)]<((_0x53cd1b=this[_0x3b52fc(0x361)]['getConfig'](Pn))!=null?_0x53cd1b:yn)?(this[_0x3b52fc(0x104)][_0x3b52fc(0xf7)]({'key':_0x3b52fc(0x210),'type':_0x3738f0['Warning'],'content':this['_localeService']['t'](_0x3b52fc(0x12f))}),this[_0x3b52fc(0x1bc)]()):this[_0x3b52fc(0x104)][_0x3b52fc(0xf7)]({'key':'collaboration-session-retry','type':_0x3738f0[_0x3b52fc(0x44e)],'content':this[_0x3b52fc(0x2a6)]['t'](_0x3b52fc(0x1b3))});}[_0x5009fc(0x10c)](){const _0x21e6a2=_0x5009fc,_0x2f4125=()=>{const _0x59bdbe=_0x3280;this[_0x59bdbe(0x321)]||this['reconnect']();},_0x31298f=()=>{const _0x372719=_0x3280;this[_0x372719(0x321)]||document['visibilityState']===_0x372719(0x15b)||this['reconnect']();};window[_0x21e6a2(0x20e)]('online',_0x2f4125),document[_0x21e6a2(0x20e)](_0x21e6a2(0x2f5),_0x31298f);}[_0x5009fc(0x1bc)](){const _0x386b16=_0x5009fc;var _0x18ccbc;const _0x231482=this[_0x386b16(0x21c)],_0x4025e5=this[_0x386b16(0x361)][_0x386b16(0x23b)]($),_0x5a865d=_0x231482===0x0?0x0:((_0x18ccbc=_0x4025e5==null?void 0x0:_0x4025e5[_0x386b16(0x29a)])!=null?_0x18ccbc:wn)*0x2**_0x231482;this[_0x386b16(0x16d)]=window[_0x386b16(0x13f)](()=>{const _0x4fff39=_0x386b16;clearTimeout(this[_0x4fff39(0x16d)]),this[_0x4fff39(0x16d)]=null,this[_0x4fff39(0x441)]();},_0x5a865d),this[_0x386b16(0x21c)]+=0x1;}['_onMessage'](_0x38b942,_0x5f1cf0){const _0x14faa6=_0x5009fc,{cmd:_0x1731c3}=_0x5f1cf0;_0x1731c3===I[_0x14faa6(0x3f0)]&&!this['_socketReady']&&(_0x38b942['memberID']=_0x5f1cf0[_0x14faa6(0x363)][_0x14faa6(0x347)],this[_0x14faa6(0x236)][_0x14faa6(0x1cf)](_0x38b942),this[_0x14faa6(0x2fb)][_0x14faa6(0x1cf)](Y['ONLINE']),this[_0x14faa6(0x26e)]=!0x0,this[_0x14faa6(0x310)]=null),_0x1731c3===I[_0x14faa6(0x29c)]&&this[_0x14faa6(0x23a)](),this['_rescheduleHeartbeat']();}[_0x5009fc(0x3be)](){const _0x21e7ae=_0x5009fc;var _0x1ff34a;this[_0x21e7ae(0x268)](),this[_0x21e7ae(0x30b)]=window[_0x21e7ae(0x13f)](()=>this[_0x21e7ae(0x2cf)](),(_0x1ff34a=this['_configService']['getConfig'](On))!=null?_0x1ff34a:Dn);}[_0x5009fc(0x2cf)](){const _0x4cde4a=_0x5009fc;this['_socket']['send']({'cmd':I[_0x4cde4a(0x29c)]}),this['_waitForHeartbeatResponse']();}[_0x5009fc(0x148)](){const _0x48fcbc=_0x5009fc;var _0x4d368a;this['_timeoutTimer']=window['setTimeout'](()=>this['_onConnectionFailed'](),(_0x4d368a=this[_0x48fcbc(0x361)][_0x48fcbc(0x23b)](js))!=null?_0x4d368a:Hs);}[_0x5009fc(0x268)](){const _0x4a3d6a=_0x5009fc;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x4a3d6a(0x30b)]),this[_0x4a3d6a(0x30b)]=null);}[_0x5009fc(0x23a)](){const _0x154ff0=_0x5009fc;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x154ff0(0x44a)]),this[_0x154ff0(0x44a)]=null);}};he=tr([me(0x0,_0x1f955f(_0x97bef)),me(0x1,_0x1f955f(_0x371029)),me(0x2,_0x40b38a),me(0x3,_0x5cfe43),me(0x4,_0x4b96c2),me(0x5,Bs)],he);var T=[];for(var ct=0x0;ct<0x100;++ct)T[_0x5009fc(0x152)]((ct+0x100)['toString'](0x10)['slice'](0x1));function sr(_0x254ef8,_0x6eb529=0x0){const _0x3d40d4=_0x5009fc;return(T[_0x254ef8[_0x6eb529+0x0]]+T[_0x254ef8[_0x6eb529+0x1]]+T[_0x254ef8[_0x6eb529+0x2]]+T[_0x254ef8[_0x6eb529+0x3]]+'-'+T[_0x254ef8[_0x6eb529+0x4]]+T[_0x254ef8[_0x6eb529+0x5]]+'-'+T[_0x254ef8[_0x6eb529+0x6]]+T[_0x254ef8[_0x6eb529+0x7]]+'-'+T[_0x254ef8[_0x6eb529+0x8]]+T[_0x254ef8[_0x6eb529+0x9]]+'-'+T[_0x254ef8[_0x6eb529+0xa]]+T[_0x254ef8[_0x6eb529+0xb]]+T[_0x254ef8[_0x6eb529+0xc]]+T[_0x254ef8[_0x6eb529+0xd]]+T[_0x254ef8[_0x6eb529+0xe]]+T[_0x254ef8[_0x6eb529+0xf]])[_0x3d40d4(0x1d6)]();}var xe,ir=new Uint8Array(0x10);function nr(){const _0x1e8dac=_0x5009fc;if(!xe&&(xe=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x1e8dac(0x203)]['bind'](crypto),!xe))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return xe(ir);}var rr=typeof crypto<'u'&&crypto[_0x5009fc(0x300)]&&crypto[_0x5009fc(0x300)][_0x5009fc(0x392)](crypto);const cs={'randomUUID':rr};function or(_0x1ee245,_0x4b96e6,_0x27a99b){const _0x14e3bc=_0x5009fc;if(cs[_0x14e3bc(0x300)]&&!_0x4b96e6&&!_0x1ee245)return cs[_0x14e3bc(0x300)]();_0x1ee245=_0x1ee245||{};var _0x1ccba8=_0x1ee245[_0x14e3bc(0x161)]||(_0x1ee245['rng']||nr)();return _0x1ccba8[0x6]=_0x1ccba8[0x6]&0xf|0x40,_0x1ccba8[0x8]=_0x1ccba8[0x8]&0x3f|0x80,sr(_0x1ccba8);}var ar=Object[_0x5009fc(0x235)],cr=Object[_0x5009fc(0x327)],hr=(_0xb4e21c,_0x468eff,_0x35d464,_0x4347b4)=>{const _0x501973=_0x5009fc;for(var _0x34299d=_0x4347b4>0x1?void 0x0:_0x4347b4?cr(_0x468eff,_0x35d464):_0x468eff,_0x34ef42=_0xb4e21c[_0x501973(0x21e)]-0x1,_0x5d9f1e;_0x34ef42>=0x0;_0x34ef42--)(_0x5d9f1e=_0xb4e21c[_0x34ef42])&&(_0x34299d=(_0x4347b4?_0x5d9f1e(_0x468eff,_0x35d464,_0x34299d):_0x5d9f1e(_0x34299d))||_0x34299d);return _0x4347b4&&_0x34299d&&ar(_0x468eff,_0x35d464,_0x34299d),_0x34299d;},ht=(_0x1f8a04,_0x5767e1)=>(_0x2dc2f8,_0x40a523)=>_0x5767e1(_0x2dc2f8,_0x40a523,_0x1f8a04);let Ye=class{constructor(_0x30ce2a,_0x3a1459,_0x1e180c){const _0x9666eb=_0x5009fc;this[_0x9666eb(0x448)]=_0x30ce2a,this[_0x9666eb(0x42e)]=_0x3a1459,this[_0x9666eb(0x2ca)]=_0x1e180c;}[_0x5009fc(0x42d)](_0x1a9530){const _0xff099b=_0x5009fc;this[_0xff099b(0x405)](_0x1a9530),this[_0xff099b(0x2fd)](_0x1a9530);}[_0x5009fc(0xfb)](_0xf8c180){const _0x3b21fa=_0x5009fc,{unitID:_0x4107d9}=_0xf8c180,_0x33d074=this[_0x3b21fa(0x2ca)][_0x3b21fa(0x2a9)](_0x4107d9)[_0x3b21fa(0x30f)](_0xa62fc1),{redoCache:_0x2fcfaa}=_0x33d074[_0x3b21fa(0x398)]();if(_0x2fcfaa[_0x3b21fa(0x21e)]===0x0)return _0xf8c180;let _0x377ae7=_0x548d2b[_0x3b21fa(0x22d)](_0xf8c180[_0x3b21fa(0x12c)][0x0]);for(let _0x5c04ca=0x0;_0x5c04ca<_0x2fcfaa[_0x3b21fa(0x21e)];_0x5c04ca++){const _0x5f502a={'id':_0x3b21fa(0x305),'params':{..._0x2fcfaa[_0x5c04ca]}},_0x48002a=this[_0x3b21fa(0x42e)][_0x3b21fa(0x17e)](_0x377ae7,_0x5f502a,!0x1);if(_0x4ee9e9(_0x48002a))throw _0x48002a['error'];_0x377ae7=_0x48002a[_0x3b21fa(0x1dd)];}return{..._0x548d2b[_0x3b21fa(0x22d)](_0xf8c180),'mutations':[_0x377ae7]};}['_transformUndoRedoStack'](_0xfc83d8){const _0x186184=_0x5009fc,{unitID:_0x3667d6}=_0xfc83d8,_0x4eb1f8=this['_renderManagerService'][_0x186184(0x2a9)](_0x3667d6)['with'](_0xa62fc1),{undoCache:_0x19be09,redoCache:_0x2a5d89}=_0x4eb1f8[_0x186184(0x398)]();if(_0x19be09[_0x186184(0x21e)]===0x0||_0x2a5d89[_0x186184(0x21e)]===0x0)return;const _0x1ef6c8=[],_0x5b1d50=[];let _0x11b063=_0x548d2b[_0x186184(0x22d)](_0xfc83d8[_0x186184(0x12c)][0x0]),_0x3abac4=_0x548d2b[_0x186184(0x22d)](_0xfc83d8[_0x186184(0x12c)][0x0]);for(let _0x28d043=_0x19be09[_0x186184(0x21e)]-0x1;_0x28d043>=0x0;_0x28d043--){const _0x5b5d28={'id':_0x186184(0x305),'params':{..._0x19be09[_0x28d043]}},_0xb7a2eb={'id':'doc.mutation.rich-text-editing','params':{..._0x2a5d89[_0x28d043]}},_0x4d5b2b=this[_0x186184(0x42e)]['transformMutation'](_0x11b063,_0x5b5d28,!0x1),_0x119772=this[_0x186184(0x42e)][_0x186184(0x17e)](_0x3abac4,_0xb7a2eb,!0x1);if(_0x4ee9e9(_0x4d5b2b))throw _0x4d5b2b[_0x186184(0x1bb)];if(_0x4ee9e9(_0x119772))throw _0x119772['error'];_0x1ef6c8[_0x186184(0x33e)](_0x4d5b2b[_0x186184(0xd1)][_0x186184(0x194)]),_0x5b1d50[_0x186184(0x33e)](_0x119772[_0x186184(0xd1)][_0x186184(0x194)]),_0x11b063=_0x4d5b2b[_0x186184(0x1dd)],_0x3abac4=_0x119772[_0x186184(0x1dd)];}_0x4eb1f8[_0x186184(0x414)]({'undoCache':_0x1ef6c8,'redoCache':_0x5b1d50});}[_0x5009fc(0x2fd)](_0x5a5abd){const _0x3175e6=_0x5009fc,{unitID:_0x5e0bb7}=_0x5a5abd,_0x14b33a=this['_renderManagerService'][_0x3175e6(0x2a9)](_0x5e0bb7)['with'](_0xa62fc1),_0x4db52c=_0x14b33a[_0x3175e6(0x247)]();if(_0x4db52c==null)return;const _0x4c8277=[{'id':_0x3175e6(0x305),'params':{'unitId':_0x5a5abd[_0x3175e6(0x187)],'actions':null,'textRanges':[_0x4db52c]}}],_0x287db3=this['_transformService'][_0x3175e6(0x1ec)](_0x5a5abd,_0x4c8277);if(!_0x110ba3(_0x287db3))throw _0x287db3[_0x3175e6(0x1bb)];const _0x47d94c=_0x287db3[_0x3175e6(0xd1)][0x0][_0x3175e6(0x194)][_0x3175e6(0x3e4)];Array['isArray'](_0x47d94c)&&_0x47d94c[_0x3175e6(0x21e)]&&_0x14b33a[_0x3175e6(0x422)](_0x47d94c[0x0]);}};Ye=hr([ht(0x0,_0x1f955f(_0x97bef)),ht(0x1,_0x191396),ht(0x2,_0x7fdfc4)],Ye);var lr=Object[_0x5009fc(0x235)],_r=Object[_0x5009fc(0x327)],ur=(_0x3e9533,_0x3f3224,_0x1b113e,_0x16e6d5)=>{const _0x24bf92=_0x5009fc;for(var _0x1c62a9=_0x16e6d5>0x1?void 0x0:_0x16e6d5?_r(_0x3f3224,_0x1b113e):_0x3f3224,_0xc84818=_0x3e9533[_0x24bf92(0x21e)]-0x1,_0x108de3;_0xc84818>=0x0;_0xc84818--)(_0x108de3=_0x3e9533[_0xc84818])&&(_0x1c62a9=(_0x16e6d5?_0x108de3(_0x3f3224,_0x1b113e,_0x1c62a9):_0x108de3(_0x1c62a9))||_0x1c62a9);return _0x16e6d5&&_0x1c62a9&&lr(_0x3f3224,_0x1b113e,_0x1c62a9),_0x1c62a9;},De=(_0x2cea45,_0x21cd97)=>(_0x40a277,_0x5931df)=>_0x21cd97(_0x40a277,_0x5931df,_0x2cea45);let w=class extends _0x16541d{constructor(_0x268567,_0x3b082a,_0x16347b,_0x59f0e2,_0x17b25d){const _0x14d954=_0x5009fc;super(),l(this,_0x14d954(0x337),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x14d954(0x334),!0x1),(this['_configService']=_0x268567,this[_0x14d954(0x113)]=_0x3b082a,this[_0x14d954(0x39f)]=_0x16347b,this[_0x14d954(0x2a6)]=_0x59f0e2,this[_0x14d954(0x19b)]=_0x17b25d,this[_0x14d954(0x21f)]());}[_0x5009fc(0x1d2)](){const _0x1f0246=_0x5009fc;this[_0x1f0246(0x334)]=!0x0;}['enableLocalCache'](){const _0x18561f=_0x5009fc;this[_0x18561f(0x334)]=!0x1;}['dispose'](){const _0xfa84b6=_0x5009fc;this['exhaustSavingTask']()[_0xfa84b6(0x367)](()=>super[_0xfa84b6(0x298)]());}async[_0x5009fc(0x1ad)](_0x5f637){return this['_disabled']?null:this['_localStorageService']['getItem'](hs(_0x5f637));}async['saveOfflineData'](_0x4c4fde,_0x3f5fcd){const _0x4d1532=_0x5009fc;return!!this[_0x4d1532(0x113)]['setItem'](_0x4c4fde,_0x3f5fcd);}[_0x5009fc(0x1f4)](_0x5311e8,_0x6a6edf,_0x2d2085,_0x49652e){const _0x3286cd=_0x5009fc,_0xb2669=this['_revisionService'][_0x3286cd(0x13a)](_0x5311e8);this['_cachedData']['set'](_0x5311e8,{'unitID':_0x5311e8,'type':_0x6a6edf,'awaitingChangeset':_0x2d2085,'mutations':_0x49652e,'rev':_0xb2669}),this[_0x3286cd(0x225)][_0x3286cd(0x2b0)](_0x5311e8)||this['_scheduleSaving'](_0x5311e8);}[_0x5009fc(0x353)](_0xbdb4a5){const _0x45b92b=_0x5009fc,_0x2d56da=this[_0x45b92b(0x343)]();_0x2d56da===0x0?this[_0x45b92b(0x2f7)](_0xbdb4a5):this['_saveTaskMap'][_0x45b92b(0x411)](_0xbdb4a5,setTimeout(()=>this[_0x45b92b(0x2f7)](_0xbdb4a5),_0x2d56da));}['_getSaveTimeout'](){const _0x114e03=_0x5009fc;var _0xcf889a;return(_0xcf889a=this['_configService'][_0x114e03(0x23b)](Un))!=null?_0xcf889a:Nn;}[_0x5009fc(0x2f7)](_0xe56256){const _0x37a21c=_0x5009fc,_0x3f9bbd=this[_0x37a21c(0x225)][_0x37a21c(0x381)](_0xe56256);return _0x3f9bbd!==void 0x0&&window['clearTimeout'](_0x3f9bbd),this[_0x37a21c(0x113)][_0x37a21c(0x201)](hs(_0xe56256),this[_0x37a21c(0x337)][_0x37a21c(0x381)](_0xe56256))[_0x37a21c(0x367)](()=>this['_saveTaskMap']['delete'](_0xe56256));}async['exhaustSavingTask'](){const _0x51fc19=_0x5009fc,_0x3469b3=[];this['_saveTaskMap'][_0x51fc19(0x1d4)]((_0x5a2a2c,_0x139520)=>{const _0x2a0e50=_0x51fc19;window[_0x2a0e50(0x189)](_0x5a2a2c),_0x3469b3[_0x2a0e50(0x152)](this[_0x2a0e50(0x2f7)](_0x139520)[_0x2a0e50(0x367)](()=>{const _0x253c7a=_0x2a0e50;this[_0x253c7a(0x225)][_0x253c7a(0x184)](_0x139520);}));}),await Promise[_0x51fc19(0x19a)](_0x3469b3);}[_0x5009fc(0x21f)](){const _0x1fcdf3=_0x5009fc;this[_0x1fcdf3(0x341)](this[_0x1fcdf3(0x39f)][_0x1fcdf3(0x164)](()=>{const _0x54f44c=_0x1fcdf3;if(this[_0x54f44c(0x225)]['size'])return this['_localeService']['t'](_0x54f44c(0x435));}));}};w=ur([De(0x0,_0x4b96c2),De(0x1,_0x4fd9ec),De(0x2,_0x548106),De(0x3,_0x1f955f(_0x371029)),De(0x4,_0x1f955f(_0x49adf8))],w);function hs(_0xd8308a){const _0x76aaa1=_0x5009fc;return _0x76aaa1(0x412)+_0xd8308a;}var dr=Object[_0x5009fc(0x235)],mr=Object[_0x5009fc(0x327)],fr=(_0x21f62f,_0x25ae95,_0x1a2d8b,_0x47e4af)=>{for(var _0x41a8ad=_0x47e4af>0x1?void 0x0:_0x47e4af?mr(_0x25ae95,_0x1a2d8b):_0x25ae95,_0x1593dc=_0x21f62f['length']-0x1,_0xfe8cf6;_0x1593dc>=0x0;_0x1593dc--)(_0xfe8cf6=_0x21f62f[_0x1593dc])&&(_0x41a8ad=(_0x47e4af?_0xfe8cf6(_0x25ae95,_0x1a2d8b,_0x41a8ad):_0xfe8cf6(_0x41a8ad))||_0x41a8ad);return _0x47e4af&&_0x41a8ad&&dr(_0x25ae95,_0x1a2d8b,_0x41a8ad),_0x41a8ad;},lt=(_0x1d807e,_0x1ff619)=>(_0x5c313b,_0x1668f6)=>_0x1ff619(_0x5c313b,_0x1668f6,_0x1d807e);function gr(_0x26f492){const _0x4f49f4=_0x5009fc,{unitID:_0x2af946,mutations:_0x587e44}=_0x26f492;return{'unitId':_0x2af946,'subUnitId':_0x587e44[0x0][_0x4f49f4(0x194)][_0x4f49f4(0x452)]};}let Ke=class{constructor(_0x1d1060,_0x95cf83,_0x24302e){const _0x2a9b8f=_0x5009fc;this[_0x2a9b8f(0x448)]=_0x1d1060,this[_0x2a9b8f(0x42e)]=_0x95cf83,this[_0x2a9b8f(0x27b)]=_0x24302e;}[_0x5009fc(0x2e6)](_0x54e702){const _0x409f6f=_0x5009fc;var _0x1b12ae,_0x5ee10c,_0x121b62,_0x11d242;const _0x14ea37=this[_0x409f6f(0x448)][_0x409f6f(0x381)](_0x5ced1d),{unitId:_0x4a9fc2,subUnitId:_0x29ec24}=gr(_0x54e702),_0x33bda9=_0x14ea37[_0x409f6f(0x20b)](_0x4a9fc2)[_0x409f6f(0x238)](),_0x11843f=(_0x5ee10c=(_0x1b12ae=this[_0x409f6f(0x27b)][_0x409f6f(0x1b8)](_0x4a9fc2))==null?void 0x0:_0x1b12ae[_0x409f6f(0x126)]())==null?void 0x0:_0x5ee10c[_0x409f6f(0x207)]();if(_0x33bda9['length']===0x0||!_0x4a9fc2||!_0x29ec24)return;const _0x4788de=[{'id':_0xbeb346['id'],'params':{'unitId':_0x4a9fc2,'subUnitId':_0x11843f,'selections':_0x548d2b['deepClone'](_0x33bda9)}}],_0x490299=this[_0x409f6f(0x42e)][_0x409f6f(0x1ec)](_0x54e702,_0x4788de);if(!_0x110ba3(_0x490299))throw _0x490299[_0x409f6f(0x1bb)];const _0x3060d8=(_0x11d242=(_0x121b62=_0x490299[_0x409f6f(0xd1)][0x0])==null?void 0x0:_0x121b62[_0x409f6f(0x194)])==null?void 0x0:_0x11d242[_0x409f6f(0x2e7)];if(Array['isArray'](_0x3060d8)&&_0x3060d8['length']){if(_0x3060d8[_0x409f6f(0x21e)]===_0x4788de[0x0][_0x409f6f(0x194)][_0x409f6f(0x2e7)]['length']&&_0x3060d8[_0x409f6f(0x3d1)]((_0x1f24b4,_0xba0aba)=>_0x3b84dd['equals'](_0x1f24b4[_0x409f6f(0x2ac)],_0x4788de[0x0][_0x409f6f(0x194)][_0x409f6f(0x2e7)][_0xba0aba]['range'])))return;this[_0x409f6f(0x448)][_0x409f6f(0x381)](_0xfcd33f)[_0x409f6f(0x109)](_0xbeb346['id'],{'unitId':_0x4a9fc2,'subUnitId':_0x11843f,'selections':_0x3060d8});}}};Ke=fr([lt(0x0,_0x1f955f(_0x97bef)),lt(0x1,_0x191396),lt(0x2,_0x2d78d8)],Ke);const tt=_0x5c6f0d(_0x5009fc(0x2e2));var Fs=(_0x1adc73=>(_0x1adc73[_0x1adc73[_0x5009fc(0x131)]=0x0]=_0x5009fc(0x131),_0x1adc73[_0x1adc73['OTHER_CLIENTS_EDITING']=0x1]=_0x5009fc(0x3c9),_0x1adc73))(Fs||{});const ls=0x7530,_s='ACTIVE_UNIT_EVENT_CHANNEL';class Sr extends _0x16541d{constructor(){const _0x599c38=_0x5009fc;super(),l(this,_0x599c38(0x317),_0x548d2b[_0x599c38(0x110)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x599c38(0x382),new Map()),l(this,_0x599c38(0x1a3),null),l(this,'_clearOtherTimers',new Map()),l(this,_0x599c38(0x118),new Map()),this[_0x599c38(0x2bf)]();}['dispose'](){const _0x2a8255=_0x5009fc;super[_0x2a8255(0x298)](),this['_clearOtherTimers'][_0x2a8255(0x1d4)]((_0x24c90c,_0x1481d9)=>this[_0x2a8255(0x129)](_0x1481d9)),this[_0x2a8255(0x1a3)]&&window[_0x2a8255(0x17c)](this[_0x2a8255(0x1a3)]);}['getUnitStatus$'](_0x228a1d){const _0x20373a=_0x5009fc;return this[_0x20373a(0x14a)](_0x228a1d)[_0x20373a(0x44f)](_0x1fd0e9());}['editingUnit'](_0x4b3dd5){const _0x1e8d51=_0x5009fc;this[_0x1e8d51(0x115)]['size']===0x0&&this[_0x1e8d51(0x163)](),this[_0x1e8d51(0x115)][_0x1e8d51(0x3ea)](_0x4b3dd5),this[_0x1e8d51(0x2a4)]({'type':0x0,'memberID':this[_0x1e8d51(0x317)],'unitIDs':[_0x4b3dd5],'isForwarded':!0x1});}[_0x5009fc(0x437)](_0x8dc8e0){const _0x465c6c=_0x5009fc;this[_0x465c6c(0x115)][_0x465c6c(0x184)](_0x8dc8e0),this[_0x465c6c(0x115)]['size']===0x0&&this[_0x465c6c(0x1a3)]&&window[_0x465c6c(0x17c)](this[_0x465c6c(0x1a3)]);}[_0x5009fc(0x2bf)](){const _0x4d1f1c=_0x5009fc;this[_0x4d1f1c(0x341)](_0x2b2e4c(_0x35b99f(window,_0x4d1f1c(0x362))['subscribe'](_0x2f522a=>{const _0x5f2583=_0x4d1f1c;if(_0x2f522a[_0x5f2583(0x2d8)]!==_s||!_0x2f522a[_0x5f2583(0x270)])return;const _0xdfc97d=JSON[_0x5f2583(0x130)](_0x2f522a[_0x5f2583(0x270)]);this[_0x5f2583(0x221)](_0xdfc97d);}))),window[_0x4d1f1c(0x20e)]('unload',()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x5009fc(0x221)](_0x5051fb){const _0x2663b9=_0x5009fc;switch(_0x5051fb[_0x2663b9(0x1f3)]){case 0x0:this[_0x2663b9(0x3b8)](_0x5051fb);break;case 0x1:this[_0x2663b9(0x151)](_0x5051fb);break;case 0x2:this[_0x2663b9(0x3a8)](_0x5051fb);break;}}[_0x5009fc(0x3b8)](_0x239356){const _0x1faed5=_0x5009fc,{unitIDs:_0x24b2b4,memberID:_0x669f42,isForwarded:_0x307c1f}=_0x239356;_0x24b2b4[_0x1faed5(0x1d4)](_0x266ec6=>{const _0x1eb1ea=_0x1faed5;if(!_0x307c1f&&this[_0x1eb1ea(0x382)][_0x1eb1ea(0x2b0)](_0x266ec6)&&this[_0x1eb1ea(0x14a)](_0x266ec6)[_0x1eb1ea(0x1cf)](0x1),!this[_0x1eb1ea(0x382)][_0x1eb1ea(0x2b0)](_0x266ec6)||!this[_0x1eb1ea(0x382)]['get'](_0x266ec6)[_0x1eb1ea(0x2b0)](_0x669f42)){const _0x166dfa=this[_0x1eb1ea(0x382)][_0x1eb1ea(0x381)](_0x266ec6)||new Set();_0x166dfa[_0x1eb1ea(0x3ea)](_0x669f42),this[_0x1eb1ea(0x382)]['set'](_0x266ec6,_0x166dfa),this[_0x1eb1ea(0xd3)](_0x669f42);}}),_0x307c1f||this[_0x1faed5(0x2a4)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x1faed5(0x115)]],'isForwarded':!0x0});}[_0x5009fc(0xd3)](_0x1f3a33){const _0x10d2e3=_0x5009fc;this['_removeClearOtherTimer'](_0x1f3a33);const _0x3669c8=window[_0x10d2e3(0x13f)](()=>{const _0x32200d=_0x10d2e3;this[_0x32200d(0x382)][_0x32200d(0x1d4)](_0x574dc9=>{_0x574dc9['delete'](_0x1f3a33);});},ls*0x2);this[_0x10d2e3(0x273)]['set'](_0x1f3a33,_0x3669c8);}[_0x5009fc(0x129)](_0x177d6b){const _0x5c84b3=_0x5009fc;if(this[_0x5c84b3(0x273)][_0x5c84b3(0x2b0)](_0x177d6b)){const _0x5a2e3a=this[_0x5c84b3(0x273)][_0x5c84b3(0x381)](_0x177d6b);_0x5a2e3a&&window['clearTimeout'](_0x5a2e3a),this[_0x5c84b3(0x273)][_0x5c84b3(0x411)](_0x177d6b,null);}}[_0x5009fc(0x151)](_0x22b0b1){const _0x546716=_0x5009fc,{memberID:_0x235fd9,unitIDs:_0x5caa4e}=_0x22b0b1;_0x5caa4e['forEach'](_0xbcd89e=>{const _0x4c24de=_0x3280;var _0x4a751a;const _0xb38d0e=this['_unitOnClients'][_0x4c24de(0x381)](_0xbcd89e);_0xb38d0e&&(_0xb38d0e[_0x4c24de(0x184)](_0x235fd9),(_0x4a751a=this[_0x4c24de(0x14a)](_0xbcd89e))==null||_0x4a751a[_0x4c24de(0x1cf)](_0xb38d0e[_0x4c24de(0x1f6)]===0x0?0x0:0x1));}),this[_0x546716(0x129)](_0x235fd9);}[_0x5009fc(0x3a8)](_0x20bdc1){const _0x17514b=_0x5009fc;this[_0x17514b(0xd3)](_0x20bdc1[_0x17514b(0x347)]);}[_0x5009fc(0x2a4)](_0x3260e5){localStorage['setItem'](_s,JSON['stringify'](_0x3260e5));}[_0x5009fc(0x163)](){const _0x3f6acb=_0x5009fc;this[_0x3f6acb(0x1a3)]=window['setInterval'](()=>{const _0x49922e=_0x3f6acb;this[_0x49922e(0x2a4)]({'type':0x2,'memberID':this[_0x49922e(0x317)]});},ls);}[_0x5009fc(0x14a)](_0x5de014){const _0x40222b=_0x5009fc;return this[_0x40222b(0x118)]['has'](_0x5de014)||this['_unitStatus'][_0x40222b(0x411)](_0x5de014,new _0x3a492f(0x0)),this[_0x40222b(0x118)]['get'](_0x5de014);}}function Ws(_0x348466){const _0xac340b=_0x5009fc;let _0x184614='';for(const _0x2e2fde of _0x348466){const {startOffset:_0x389a4e,endOffset:_0x5cead3,isActive:_0x1b1829}=_0x2e2fde;_0x184614[_0xac340b(0x21e)]&&(_0x184614+=','),_0x184614+=_0x389a4e+':'+_0x5cead3+':'+(_0x1b1829?'1':'0');}return _0x184614;}function pr(_0x252c0c){const _0x443d4d=_0x5009fc,_0x3d1b49=_0x252c0c[_0x443d4d(0x217)](','),_0x1ab638=[];for(const _0xe0d10e of _0x3d1b49){const [_0x55a5ba,_0x5acf7b,_0x5b82fc]=_0xe0d10e[_0x443d4d(0x217)](':');_0x1ab638[_0x443d4d(0x152)]({'startOffset':Number(_0x55a5ba),'endOffset':Number(_0x5acf7b),'collapsed':_0x55a5ba===_0x5acf7b,'isActive':_0x5b82fc==='1'});}return _0x1ab638[_0x443d4d(0x1c9)](_0x533bd9=>_0x533bd9[_0x443d4d(0x1b1)])||(_0x1ab638[0x0]['isActive']=!0x0),_0x1ab638;}class Ft extends _0x5889a4{constructor(){const _0x47a1ad=_0x5009fc;super(...arguments),l(this,_0x47a1ad(0x183),new _0x3a492f(null)),l(this,_0x47a1ad(0x442),this['_collabCursorState$'][_0x47a1ad(0x396)]());}[_0x5009fc(0x264)](_0x2ac20d){const _0x2de155=_0x5009fc,{unitID:_0x3c3800,memberID:_0x57a27f,textRanges:_0x3cd512}=_0x2ac20d,_0x4e6a18=Ws(_0x3cd512),_0x4124a1={'unitID':_0x3c3800,'memberID':_0x57a27f,'selection':_0x4e6a18};this[_0x2de155(0x183)]['next'](_0x4124a1);}}var vr=Object[_0x5009fc(0x235)],Ir=Object[_0x5009fc(0x327)],Er=(_0x220798,_0x351c1f,_0x27c2f0,_0x3c96ed)=>{const _0x1cd85a=_0x5009fc;for(var _0x4934f3=_0x3c96ed>0x1?void 0x0:_0x3c96ed?Ir(_0x351c1f,_0x27c2f0):_0x351c1f,_0x7ff84=_0x220798[_0x1cd85a(0x21e)]-0x1,_0x13b1fd;_0x7ff84>=0x0;_0x7ff84--)(_0x13b1fd=_0x220798[_0x7ff84])&&(_0x4934f3=(_0x3c96ed?_0x13b1fd(_0x351c1f,_0x27c2f0,_0x4934f3):_0x13b1fd(_0x4934f3))||_0x4934f3);return _0x3c96ed&&_0x4934f3&&vr(_0x351c1f,_0x27c2f0,_0x4934f3),_0x4934f3;},us=(_0xef5b52,_0x4169e8)=>(_0x2b645d,_0x458993)=>_0x4169e8(_0x2b645d,_0x458993,_0xef5b52);let Xe=class{constructor(_0x2cc83c,_0x1dcd40){const _0x3c469c=_0x5009fc;this[_0x3c469c(0x448)]=_0x2cc83c,this['_transformService']=_0x1dcd40;}[_0x5009fc(0x2e6)](_0x14a33b){const _0x1e36a1=_0x5009fc;var _0x87c5f5;const _0x149bc0=this[_0x1e36a1(0x448)][_0x1e36a1(0x381)](_0x2af257),_0xabae53=(_0x87c5f5=_0x149bc0[_0x1e36a1(0x2a8)]())!=null?_0x87c5f5:[];if(_0xabae53['length']===0x0)return;const _0x2e19e3=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x14a33b[_0x1e36a1(0x187)],'actions':null,'textRanges':_0xabae53}}],_0x15a574=this['_transformService'][_0x1e36a1(0x1ec)](_0x14a33b,_0x2e19e3);if(!_0x110ba3(_0x15a574))throw _0x15a574['error'];const _0x418456=_0x15a574[_0x1e36a1(0xd1)][0x0][_0x1e36a1(0x194)][_0x1e36a1(0x3e4)];Array[_0x1e36a1(0x31b)](_0x418456)&&_0x418456[_0x1e36a1(0x21e)]&&_0x149bc0[_0x1e36a1(0x34f)](_0x418456,!0x1);}};Xe=Er([us(0x0,_0x1f955f(_0x97bef)),us(0x1,_0x191396)],Xe);const Cr=new Set([_0x22989c['id']]);function ds(_0x3db9ec,_0x1ba92a,_0x206ed5,_0x4e7e1e,_0x2fbc94){const _0x3dfdb7=_0x5009fc;var _0x4d5f61,_0x4acdd1,_0x23868d,_0x224b02;const _0x18263a=[];for(const _0x48cd94 of _0x3db9ec)if(Cr[_0x3dfdb7(0x2b0)](_0x48cd94['id'])){if(_0x18263a[_0x3dfdb7(0x21e)]>0x0)break;_0x18263a[_0x3dfdb7(0x152)](_0x48cd94);break;}else _0x18263a[_0x3dfdb7(0x152)](_0x48cd94);const _0x177c95=(_0x4acdd1=(_0x4d5f61=_0x2fbc94[_0x3dfdb7(0x2cd)]())==null?void 0x0:_0x4d5f61[_0x3dfdb7(0x451)])!=null?_0x4acdd1:_0x3dfdb7(0x3b7),_0x5a371b=(_0x224b02=(_0x23868d=_0x2fbc94[_0x3dfdb7(0x2cd)]())==null?void 0x0:_0x23868d[_0x3dfdb7(0x347)])!=null?_0x224b02:_0x3dfdb7(0x3b7);return{'changeset':{'unitID':_0x1ba92a,'type':_0x5e774f(_0x206ed5[_0x3dfdb7(0xed)](_0x1ba92a)),'baseRev':_0x4e7e1e[_0x3dfdb7(0x13a)](_0x1ba92a),'revision':0x0,'userID':_0x177c95,'memberID':_0x5a371b,'mutations':_0x18263a},'pendingMutations':_0x3db9ec[_0x3dfdb7(0x256)](_0x18263a[_0x3dfdb7(0x21e)])};}function br(_0x36f084,_0x3548ed,_0x58d97f,_0x31bb5f,_0x577b81){const _0x5af307=_0x5009fc;var _0x2cefe6,_0x607705,_0x478930,_0x53307e;const _0x4df214=[_0x36f084[_0x5af307(0x41d)]((_0x116333,_0x1fd78d)=>{const _0x2a626d=_0x5af307;var _0x23ffd3;const {id:_0x93a9a9}=_0x116333,{id:_0x25c0a8,type:_0x558503}=_0x1fd78d,_0x510e04=(_0x23ffd3=_0x116333[_0x2a626d(0x194)])!=null?_0x23ffd3:{'actions':null},_0x2d9115=_0x1fd78d[_0x2a626d(0x194)];if(_0x93a9a9&&_0x93a9a9!==_0x25c0a8)throw new Error(_0x2a626d(0x325)+_0x93a9a9+_0x2a626d(0x3cc)+_0x25c0a8+'.');return{..._0x116333,'id':_0x25c0a8,'type':_0x558503,'params':{'unitId':_0x2d9115[_0x2a626d(0x2d6)],'textRanges':_0x2d9115[_0x2a626d(0x3e4)],'actions':_0x2aaea2[_0x2a626d(0x2b6)](_0x510e04['actions'],_0x2d9115['actions'])}};},{})],_0x584c49=(_0x607705=(_0x2cefe6=_0x577b81[_0x5af307(0x2cd)]())==null?void 0x0:_0x2cefe6[_0x5af307(0x451)])!=null?_0x607705:'unknown',_0x2d0a4b=(_0x53307e=(_0x478930=_0x577b81[_0x5af307(0x2cd)]())==null?void 0x0:_0x478930[_0x5af307(0x347)])!=null?_0x53307e:'unknown';return{'changeset':{'unitID':_0x3548ed,'type':_0x5e774f(_0x58d97f['getUnitType'](_0x3548ed)),'baseRev':_0x31bb5f[_0x5af307(0x13a)](_0x3548ed),'revision':0x0,'userID':_0x584c49,'memberID':_0x2d0a4b,'mutations':_0x4df214},'pendingMutations':[]};}function Gs(_0x3f0f6f,_0x86025f){const _0x475a96=_0x5009fc,_0x30b08c=new _0x55b851(0x1);return setTimeout(()=>_0x30b08c[_0x475a96(0x1cf)](_0x86025f),_0x3f0f6f),_0x30b08c[_0x475a96(0x396)]()[_0x475a96(0x44f)](_0x1825da(0x1));}const Tr={'id':_0x6b935d['id'],'type':_0x5b3aba[_0x5009fc(0xf9)],'params':{}};var Rr=Object[_0x5009fc(0x235)],Or=Object[_0x5009fc(0x327)],_e=(_0x419ae8,_0x31f059,_0x4e90f2,_0x379ea6)=>{const _0x1e54ec=_0x5009fc;for(var _0x2055b1=_0x379ea6>0x1?void 0x0:_0x379ea6?Or(_0x31f059,_0x4e90f2):_0x31f059,_0x1e3d5e=_0x419ae8[_0x1e54ec(0x21e)]-0x1,_0x3b72bd;_0x1e3d5e>=0x0;_0x1e3d5e--)(_0x3b72bd=_0x419ae8[_0x1e3d5e])&&(_0x2055b1=(_0x379ea6?_0x3b72bd(_0x31f059,_0x4e90f2,_0x2055b1):_0x3b72bd(_0x2055b1))||_0x2055b1);return _0x379ea6&&_0x2055b1&&Rr(_0x31f059,_0x4e90f2,_0x2055b1),_0x2055b1;},f=(_0x3d61d4,_0x2acb11)=>(_0x29c22b,_0x4a4587)=>_0x2acb11(_0x29c22b,_0x4a4587,_0x3d61d4),P=(_0x161cff=>(_0x161cff[_0x5009fc(0x29b)]=_0x5009fc(0x2af),_0x161cff['SYNCED']=_0x5009fc(0xdf),_0x161cff['PENDING']=_0x5009fc(0x2f4),_0x161cff[_0x5009fc(0xee)]='awaiting',_0x161cff[_0x5009fc(0x179)]=_0x5009fc(0x191),_0x161cff['FETCH_MISS']=_0x5009fc(0x2ef),_0x161cff['CONFLICT']=_0x5009fc(0x1e2),_0x161cff[_0x5009fc(0x29e)]='offline',_0x161cff))(P||{});const Ys=0xea60;class ue{constructor(_0x30e4f6,_0x3c0221,_0xd9d0a6,_0x51bf3f,_0x132917,_0x537947,_0x22a1d8,_0x30ebc3,_0x4df3da){const _0x2bf262=_0x5009fc;l(this,_0x2bf262(0x417),null),l(this,_0x2bf262(0x213),[]),(this[_0x2bf262(0x187)]=_0x30e4f6,this['type']=_0x3c0221,this[_0x2bf262(0x3d8)]=_0x132917,this[_0x2bf262(0x289)]=_0x537947,this[_0x2bf262(0x331)]=_0x22a1d8,this[_0x2bf262(0x19b)]=_0x30ebc3,this[_0x2bf262(0x156)]=_0x4df3da,this[_0x2bf262(0x417)]=_0xd9d0a6,this[_0x2bf262(0x213)]=_0x51bf3f);}[_0x5009fc(0x211)](_0x8b198a){const _0x3bab59=_0x5009fc,_0x3bebc0=this['_revisionService'][_0x3bab59(0x13a)](this[_0x3bab59(0x187)]);return _0x8b198a[_0x3bab59(0x2c7)]>_0x3bebc0+0x1?(this['_handler']['onMissingChangesets']({'from':_0x3bebc0,'to':_0x8b198a[_0x3bab59(0x2c7)]-0x1}),!0x0):!0x1;}[_0x5009fc(0x3a0)](_0x268924){const _0x57c1f6=_0x5009fc;this[_0x57c1f6(0x331)]['transformUndoRedo'](this[_0x57c1f6(0x187)],_0x268924);}['_transformSelections'](_0x3ce373){const _0x1f5fb0=_0x5009fc;var _0x166136,_0x54a8ed;(_0x54a8ed=(_0x166136=this[_0x1f5fb0(0x3d8)])[_0x1f5fb0(0x15d)])==null||_0x54a8ed[_0x1f5fb0(0x3e6)](_0x166136,_0x3ce373);}[_0x5009fc(0x2e0)](_0x586c78){const _0x43a783=_0x5009fc;var _0x3f76ed,_0x155b5e;return(_0x155b5e=(_0x3f76ed=this[_0x43a783(0x3d8)])[_0x43a783(0x241)])==null?void 0x0:_0x155b5e[_0x43a783(0x3e6)](_0x3f76ed,_0x586c78);}[_0x5009fc(0x30d)](_0x415e24){const _0x1b03c1=_0x5009fc;var _0x431074,_0x2c4290,_0x574d2d;return(_0x574d2d=(_0x2c4290=(_0x431074=this[_0x1b03c1(0x3d8)])[_0x1b03c1(0x3b5)])==null?void 0x0:_0x2c4290[_0x1b03c1(0x3e6)](_0x431074,_0x415e24))!=null?_0x574d2d:_0x415e24;}[_0x5009fc(0x40d)](_0x2755bc){const _0xf4b718=_0x5009fc;var _0x173c48,_0x10ddf8;if(this[_0xf4b718(0x1f3)]===k[_0xf4b718(0x36f)]){const {unitID:_0x228117,mutations:_0x46dae0,memberID:_0x3bdf56}=_0x2755bc,_0x57c706=_0x46dae0[0x0][_0xf4b718(0x194)][_0xf4b718(0x3e4)];Array[_0xf4b718(0x31b)](_0x57c706)&&_0x57c706['length']>0x0&&((_0x10ddf8=(_0x173c48=this[_0xf4b718(0x3d8)])[_0xf4b718(0x25e)])==null||_0x10ddf8['call'](_0x173c48,{'unitID':_0x228117,'memberID':_0x3bdf56,'textRanges':_0x57c706}));}}['_updateLocalCache'](){const _0x355f00=_0x5009fc;this['_localCacheService'][_0x355f00(0x1f4)](this[_0x355f00(0x187)],this[_0x355f00(0x1f3)],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x5009fc(0x174)](){const _0x542830=_0x5009fc;return this[_0x542830(0x19b)][_0x542830(0x13a)](this[_0x542830(0x187)]);}[_0x5009fc(0xef)](){const _0x5041ae=_0x5009fc;this[_0x5041ae(0x19b)][_0x5041ae(0x290)](this['unitID']);}['_executeRemoteChangeset'](_0x39de8e){const _0xd95246=_0x5009fc;var _0x28ca57;const _0x5f588e=this['_transformRemoteChangesetByIMECache'](_0x39de8e),_0xfec6d7=_0x45d245(_0x5f588e[_0xd95246(0x12c)],this[_0xd95246(0x289)],{'fromCollab':!0x0});if(!_0xfec6d7[_0xd95246(0x304)])throw _0xfec6d7[_0xd95246(0x1bb)]instanceof Error?_0xfec6d7['error']:new Error((_0x28ca57=_0xfec6d7[_0xd95246(0x1bb)])!=null?_0x28ca57:_0xd95246(0x252));this[_0xd95246(0x2e0)](_0x5f588e),this[_0xd95246(0x3a0)](_0x39de8e),this[_0xd95246(0x2fa)](_0x5f588e),this['_syncEditingCollabCursor'](_0x5f588e),this['_incrementRevisionNumber']();}}let pe=class extends ue{constructor(_0x62d7fb,_0x1ed881,_0xd06c2e,_0x42ab4c,_0xd1fe88,_0x2a04c5,_0x445cdd,_0x559f7c,_0x1cab45,_0x374673){const _0x7417f2=_0x5009fc;super(_0x62d7fb,_0x1ed881,null,[],_0xd06c2e,_0x559f7c,_0x445cdd,_0x42ab4c,_0xd1fe88),l(this,_0x7417f2(0x190),_0x7417f2(0xdf)),(this['_injector']=_0x2a04c5,this[_0x7417f2(0x208)]=_0x1cab45,this[_0x7417f2(0x42e)]=_0x374673);}[_0x5009fc(0x1cb)](_0x1642df){const _0x2701df=_0x5009fc,_0x2a8fa1=this[_0x2701df(0x448)][_0x2701df(0x345)](X,this['unitID'],this[_0x2701df(0x1f3)],[_0x1642df],this['_handler']);return _0x2a8fa1['_schedule'](),_0x2a8fa1[_0x2701df(0x25c)](),_0x2a8fa1;}[_0x5009fc(0x342)](_0x4ec21f){const _0x3d4ba0=_0x5009fc;if(this['_checkMissing'](_0x4ec21f))return this[_0x3d4ba0(0x448)]['createInstance'](B,this[_0x3d4ba0(0x187)],this[_0x3d4ba0(0x1f3)],null,[],null,[_0x4ec21f],this[_0x3d4ba0(0x3d8)]);try{const _0x10d4f2=this[_0x3d4ba0(0x42e)][_0x3d4ba0(0x1ec)](_0x4ec21f,[Tr]);if(_0x110ba3(_0x10d4f2)){const {c1Prime:_0x32191e}=_0x10d4f2;return this[_0x3d4ba0(0x303)](_0x32191e),this;}throw _0x10d4f2['error'];}catch(_0x55390f){return this[_0x3d4ba0(0x208)][_0x3d4ba0(0x1bb)](_0x55390f),this['_onConflict'](!0x1);}}[_0x5009fc(0x307)](_0x1b9015){const _0x3de59f=_0x5009fc;return this[_0x3de59f(0x448)]['createInstance'](ee,this[_0x3de59f(0x187)],this[_0x3de59f(0x1f3)],null,[],this[_0x3de59f(0x3d8)],_0x1b9015);}[_0x5009fc(0x149)](){const _0x3a9da0=_0x5009fc;throw new Error(_0x3a9da0(0x34b));}[_0x5009fc(0x12d)](){const _0x22a754=_0x5009fc;throw new Error(_0x22a754(0x138));}[_0x5009fc(0x262)](){return this;}[_0x5009fc(0x3fb)](){const _0x4c11e2=_0x5009fc;return this['_injector']['createInstance'](te,this[_0x4c11e2(0x187)],this['type'],null,[],this['_handler']);}[_0x5009fc(0x1f9)](){return this;}[_0x5009fc(0x2d9)](){const _0x24c895=_0x5009fc;throw new Error(_0x24c895(0x2b9));}[_0x5009fc(0x410)](){const _0x2c7c11=_0x5009fc,_0x5688c6=this[_0x2c7c11(0x19b)][_0x2c7c11(0x13a)](this[_0x2c7c11(0x187)]);return this['_handler'][_0x2c7c11(0x168)]({'from':_0x5688c6,'to':0x0}),this[_0x2c7c11(0x448)]['createInstance'](B,this[_0x2c7c11(0x187)],this[_0x2c7c11(0x1f3)],null,[],null,[],this[_0x2c7c11(0x3d8)]);}};pe=_e([f(0x3,_0x1f955f(_0x49adf8)),f(0x4,_0x1f955f(w)),f(0x5,_0x1f955f(_0x97bef)),f(0x6,_0xf4d2d4),f(0x7,_0xfcd33f),f(0x8,_0x5cfe43),f(0x9,_0x191396)],pe);let X=class extends ue{constructor(_0x213f63,_0xe04e08,_0x136f2d,_0x327441,_0x443b04,_0x4d7a38,_0x1b279a,_0x5545f3,_0x4e312a,_0x237ffb,_0x19c9a5,_0x355c77,_0x57c774,_0x2b4f87){const _0xf2502=_0x5009fc;super(_0x213f63,_0xe04e08,null,_0x136f2d,_0x327441,_0x237ffb,_0x2b4f87,_0x4d7a38,_0x1b279a),l(this,'status','pending'),l(this,_0xf2502(0x233),null),l(this,'_sendingTimer',null),(this[_0xf2502(0x448)]=_0x443b04,this[_0xf2502(0x40a)]=_0x5545f3,this['_logService']=_0x4e312a,this[_0xf2502(0x361)]=_0x19c9a5,this[_0xf2502(0x42e)]=_0x355c77,this[_0xf2502(0x250)]=_0x57c774);}[_0x5009fc(0x1cb)](_0x488d63){const _0x98813c=_0x5009fc;return this[_0x98813c(0x213)][_0x98813c(0x152)](_0x488d63),this[_0x98813c(0x25c)](),this;}[_0x5009fc(0x342)](_0x3e12b6){const _0x285c7b=_0x5009fc;if(this[_0x285c7b(0x211)](_0x3e12b6))return this[_0x285c7b(0x28e)](),this[_0x285c7b(0x448)][_0x285c7b(0x345)](B,this[_0x285c7b(0x187)],this[_0x285c7b(0x1f3)],null,this[_0x285c7b(0x213)],null,[_0x3e12b6],this['_handler']);try{const _0x4f0553=this[_0x285c7b(0x42e)][_0x285c7b(0x1ec)](_0x3e12b6,this[_0x285c7b(0x213)]);if(_0x110ba3(_0x4f0553)){const {c1Prime:_0x45be50,m2Prime:_0x4480fb}=_0x4f0553;this[_0x285c7b(0x303)](_0x45be50);const _0x2906e9=this[_0x285c7b(0x448)][_0x285c7b(0x345)](X,this['unitID'],this['type'],_0x4480fb,this['_handler']);return this[_0x285c7b(0x28e)](),_0x2906e9[_0x285c7b(0x2ba)](this[_0x285c7b(0x233)]?Math[_0x285c7b(0x32f)](0x0,new Date()[_0x285c7b(0x42f)]()-this['_scheduleTimestamp']):this[_0x285c7b(0x2eb)]()),_0x2906e9;}throw _0x4f0553['error'];}catch(_0x48061c){return this[_0x285c7b(0x208)]['error'](_0x48061c),this['_onConflict'](!0x1);}}['onRemoteAck'](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x5009fc(0x12d)](){throw new Error('[PendingState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x5009fc(0x3fb)](){const _0x193665=_0x5009fc;return this[_0x193665(0x28e)](),this[_0x193665(0x448)][_0x193665(0x345)](te,this['unitID'],this[_0x193665(0x1f3)],null,this[_0x193665(0x213)],this[_0x193665(0x3d8)]);}[_0x5009fc(0x1f9)](){return this;}[_0x5009fc(0x2ba)](_0xb81789){const _0x24a35c=_0x5009fc,_0x29d090=_0xb81789!=null?_0xb81789:this[_0x24a35c(0x2eb)]();this[_0x24a35c(0x233)]=new Date()[_0x24a35c(0x42f)](),this['_sendingTimer']=window[_0x24a35c(0x13f)](()=>{const _0x3efba2=_0x24a35c;this[_0x3efba2(0x28e)]();let _0x571661=null;switch(this[_0x3efba2(0x1f3)]){case k[_0x3efba2(0x33c)]:{_0x571661=ds(this[_0x3efba2(0x213)],this[_0x3efba2(0x187)],this['_univerInstanceService'],this[_0x3efba2(0x19b)],this[_0x3efba2(0x40a)]);break;}case k['UNIVER_DOC']:{this[_0x3efba2(0x213)]['every'](_0x385065=>_0x385065['id']===_0x185416['id'])?_0x571661=br(this[_0x3efba2(0x213)],this[_0x3efba2(0x187)],this[_0x3efba2(0x250)],this[_0x3efba2(0x19b)],this['_memberService']):_0x571661=ds(this['_pendingMutations'],this[_0x3efba2(0x187)],this['_univerInstanceService'],this[_0x3efba2(0x19b)],this[_0x3efba2(0x40a)]);break;}default:throw new Error(_0x3efba2(0x3c0)+this[_0x3efba2(0x1f3)]+'\x20in\x20_schedule.');}const {changeset:_0x2b9174,pendingMutations:_0x5654e6}=_0x571661;this[_0x3efba2(0x3d8)]['onSendChangeset'](_0x2b9174);const _0x42b236=_0x5654e6[_0x3efba2(0x21e)]?this[_0x3efba2(0x448)][_0x3efba2(0x345)](q,this[_0x3efba2(0x187)],this[_0x3efba2(0x1f3)],_0x2b9174,_0x5654e6,this[_0x3efba2(0x3d8)],void 0x0):this[_0x3efba2(0x448)]['createInstance'](Q,this[_0x3efba2(0x187)],this[_0x3efba2(0x1f3)],_0x2b9174,this[_0x3efba2(0x3d8)]);_0x42b236[_0x3efba2(0x25c)](),this[_0x3efba2(0x3d8)][_0x3efba2(0x1de)](this,_0x42b236);},_0x29d090);}[_0x5009fc(0x2eb)](){var _0x19ba48;const _0x2e9306=this['_configService']['getConfig']($);return(_0x19ba48=_0x2e9306==null?void 0x0:_0x2e9306['sendChangesetTimeout'])!=null?_0x19ba48:bn;}[_0x5009fc(0x2d9)](){const _0x9a3d0d=_0x5009fc;throw new Error(_0x9a3d0d(0x277));}['_clearScheduledTask'](){const _0x2ea5f1=_0x5009fc;this['_sendingTimer']!=null&&(clearTimeout(this[_0x2ea5f1(0x42a)]),this['_sendingTimer']=null);}[_0x5009fc(0x307)](_0x56d567){const _0x4c567c=_0x5009fc;return this[_0x4c567c(0x28e)](),this[_0x4c567c(0x448)][_0x4c567c(0x345)](ee,this[_0x4c567c(0x187)],this[_0x4c567c(0x1f3)],null,this[_0x4c567c(0x213)],this[_0x4c567c(0x3d8)],_0x56d567);}};X=_e([f(0x4,_0x1f955f(_0x97bef)),f(0x5,_0x1f955f(_0x49adf8)),f(0x6,_0x1f955f(w)),f(0x7,_0x1f955f(ce)),f(0x8,_0x5cfe43),f(0x9,_0xfcd33f),f(0xa,_0x4b96c2),f(0xb,_0x191396),f(0xc,_0x2d78d8),f(0xd,_0xf4d2d4)],X);let Q=class extends ue{constructor(_0x5cebcb,_0xd30034,_0xbf05d6,_0x5cae26,_0x4bf429,_0x2cbaa9,_0x38338d,_0x174869,_0x41bbe8,_0x58d4cd,_0x57e50){const _0x2bee9b=_0x5009fc;super(_0x5cebcb,_0xd30034,_0xbf05d6,[],_0x5cae26,_0x174869,_0x57e50,_0x2cbaa9,_0x38338d),l(this,'status',_0x2bee9b(0x112)),l(this,_0x2bee9b(0x282),0x0),l(this,_0x2bee9b(0xd2)),l(this,'_sender'),(this[_0x2bee9b(0x448)]=_0x4bf429,this[_0x2bee9b(0x208)]=_0x41bbe8,this[_0x2bee9b(0x42e)]=_0x58d4cd);}[_0x5009fc(0x1cb)](_0x50fd13){const _0x43448a=_0x5009fc;this[_0x43448a(0x28e)]();const _0x427b4d=this[_0x43448a(0x448)]['createInstance'](q,this[_0x43448a(0x187)],this[_0x43448a(0x1f3)],this[_0x43448a(0x417)],[_0x50fd13],this[_0x43448a(0x3d8)],this['_resendTimer']);return _0x427b4d[_0x43448a(0x25c)](),_0x427b4d;}['onRemoteChangeset'](_0x348b37){const _0x354805=_0x5009fc;if(this[_0x354805(0x211)](_0x348b37))return this['_clearScheduledTask'](),this[_0x354805(0x448)][_0x354805(0x345)](B,this[_0x354805(0x187)],this[_0x354805(0x1f3)],this['_awaitingChangeset'],[],null,[_0x348b37],this[_0x354805(0x3d8)]);try{const _0x236c6d=this[_0x354805(0x42e)]['transformChangesets']([_0x348b37],[this[_0x354805(0x417)]],!0x1);if(_0x47a6ae(_0x236c6d)){const {c1Prime:_0x5ab3c0,c2Prime:_0x5a25f8}=_0x236c6d;this[_0x354805(0x303)](_0x5ab3c0[0x0]),_0x5a25f8[0x0][_0x354805(0x272)]=this['_getCurrentRevision'](),this[_0x354805(0x28e)]();const _0x10af31=this[_0x354805(0x448)]['createInstance'](Q,this[_0x354805(0x187)],this[_0x354805(0x1f3)],_0x5a25f8[0x0],this[_0x354805(0x3d8)]);return _0x10af31['_updateLocalCache'](),_0x10af31;}return this[_0x354805(0x307)](!0x1);}catch(_0x33a911){return this[_0x354805(0x208)][_0x354805(0x1bb)](_0x33a911),this[_0x354805(0x307)](!0x1);}}[_0x5009fc(0x149)](_0xae6a1){const _0x3d9e3a=_0x5009fc;this[_0x3d9e3a(0x28e)]();const _0xc0d338=this['_revisionService'][_0x3d9e3a(0x13a)](this['unitID']);if(_0xae6a1[_0x3d9e3a(0x2c7)]<_0xc0d338-0x1)return this;if(this[_0x3d9e3a(0x211)](_0xae6a1))return this[_0x3d9e3a(0x448)][_0x3d9e3a(0x345)](B,this['unitID'],this[_0x3d9e3a(0x1f3)],null,[],this[_0x3d9e3a(0x417)],[],this[_0x3d9e3a(0x3d8)]);this[_0x3d9e3a(0xef)]();const _0x4ae105=this['_injector'][_0x3d9e3a(0x345)](pe,this[_0x3d9e3a(0x187)],this[_0x3d9e3a(0x1f3)],this[_0x3d9e3a(0x3d8)]);return _0x4ae105[_0x3d9e3a(0x25c)](),_0x4ae105;}[_0x5009fc(0x12d)](_0x296087){const _0x4da83a=_0x5009fc;return this[_0x4da83a(0x307)](!!(_0x296087!=null&&_0x296087[_0x4da83a(0x28d)]));}[_0x5009fc(0x262)](_0x36c983){const _0x3f6dee=_0x5009fc;return this[_0x3f6dee(0x282)]>Ys?this[_0x3f6dee(0x3fb)]():(this[_0x3f6dee(0xd2)]=Gs(this[_0x3f6dee(0x282)],{'timeout':this['_resendTimeout'],'reqId':_0x36c983[_0x3f6dee(0x421)]}),this[_0x3f6dee(0x34a)]=this['_resendTimer'][_0x3f6dee(0x206)](({reqId:_0x333fc0,timeout:_0x3ceffa})=>{const _0x534c67=_0x3f6dee;this[_0x534c67(0x33d)](_0x333fc0,_0x3ceffa);}),this);}['toggleOffline'](){const _0x69f821=_0x5009fc;return this[_0x69f821(0x28e)](),this[_0x69f821(0x448)]['createInstance'](te,this[_0x69f821(0x187)],this[_0x69f821(0x1f3)],this[_0x69f821(0x417)],[],this[_0x69f821(0x3d8)]);}[_0x5009fc(0x1f9)](){return this;}['resend'](){const _0x4f6455=_0x5009fc;this[_0x4f6455(0x3d8)][_0x4f6455(0x40f)](this[_0x4f6455(0x417)]);}[_0x5009fc(0x307)](_0x1381f6){const _0x4a7ca5=_0x5009fc;return this['_clearScheduledTask'](),this[_0x4a7ca5(0x448)][_0x4a7ca5(0x345)](ee,this[_0x4a7ca5(0x187)],this[_0x4a7ca5(0x1f3)],this[_0x4a7ca5(0x417)],[],this[_0x4a7ca5(0x3d8)],_0x1381f6);}[_0x5009fc(0x33d)](_0x5535b0,_0x2a2b53){const _0x36dcbd=_0x5009fc;var _0x12ec0e;_0x5535b0===((_0x12ec0e=this[_0x36dcbd(0x417)])==null?void 0x0:_0x12ec0e[_0x36dcbd(0x421)])&&(this[_0x36dcbd(0x2d9)](),this[_0x36dcbd(0x282)]=_0x2a2b53===0x0?0x3e8:_0x2a2b53*0x2);}['_clearScheduledTask'](){const _0x167196=_0x5009fc;var _0x67c6ca;(_0x67c6ca=this[_0x167196(0x34a)])==null||_0x67c6ca['unsubscribe'](),this[_0x167196(0x282)]=0x0;}};Q=_e([f(0x4,_0x1f955f(_0x97bef)),f(0x5,_0x1f955f(_0x49adf8)),f(0x6,_0x1f955f(w)),f(0x7,_0xfcd33f),f(0x8,_0x5cfe43),f(0x9,_0x191396),f(0xa,_0xf4d2d4)],Q);let q=class extends ue{constructor(_0x316df2,_0x290869,_0x38bb0b,_0x228fa6,_0x44227e,_0x187431,_0x30893d,_0x47ee90,_0x2fdcc9,_0x43c391,_0x3b4213,_0x52fcd6,_0x263334){const _0x79974b=_0x5009fc;super(_0x316df2,_0x290869,_0x38bb0b,_0x228fa6,_0x44227e,_0x43c391,_0x263334,_0x47ee90,_0x2fdcc9),l(this,_0x79974b(0x190),'awaiting_with_pending'),l(this,'_resendTimeout',0x0),l(this,_0x79974b(0xd2)),l(this,_0x79974b(0x34a)),(this[_0x79974b(0x448)]=_0x30893d,this[_0x79974b(0x208)]=_0x3b4213,this[_0x79974b(0x42e)]=_0x52fcd6,_0x187431&&(this[_0x79974b(0xd2)]=_0x187431,this[_0x79974b(0x34a)]=this[_0x79974b(0xd2)]['subscribe'](({reqId:_0x168ea7,timeout:_0x378ec9})=>{const _0x1f1741=_0x79974b;this[_0x1f1741(0x33d)](_0x168ea7,_0x378ec9);})));}['appendMutation'](_0x2b7d23){const _0x1187c7=_0x5009fc;return this[_0x1187c7(0x213)][_0x1187c7(0x152)](_0x2b7d23),this;}[_0x5009fc(0x342)](_0x28fef4){const _0x5a8a11=_0x5009fc;if(this['_checkMissing'](_0x28fef4))return this['_clearScheduledTask'](),this[_0x5a8a11(0x448)]['createInstance'](B,this[_0x5a8a11(0x187)],this[_0x5a8a11(0x1f3)],this[_0x5a8a11(0x417)],this[_0x5a8a11(0x213)],null,[_0x28fef4],this['_handler']);try{const _0x374467=this[_0x5a8a11(0x42e)][_0x5a8a11(0x292)]([_0x28fef4],[this['_awaitingChangeset']],!0x1);if(_0x47a6ae(_0x374467)){const {c1Prime:_0x6c36aa,c2Prime:_0x4f70ba}=_0x374467,_0x646a4e=this[_0x5a8a11(0x42e)][_0x5a8a11(0x1ec)](_0x6c36aa[0x0],this[_0x5a8a11(0x213)]);if(_0x110ba3(_0x646a4e)){const {c1Prime:_0x80bd1f,m2Prime:_0xb1a4f3}=_0x646a4e;return this['_executeRemoteChangeset'](_0x80bd1f),_0x4f70ba[0x0]['baseRev']=this[_0x5a8a11(0x174)](),this[_0x5a8a11(0x28e)](),this[_0x5a8a11(0x448)][_0x5a8a11(0x345)](q,this['unitID'],this[_0x5a8a11(0x1f3)],_0x4f70ba[0x0],_0xb1a4f3,this[_0x5a8a11(0x3d8)],void 0x0);}throw _0x646a4e['error'];}throw _0x374467[_0x5a8a11(0x1bb)];}catch(_0x3647c6){return this[_0x5a8a11(0x208)][_0x5a8a11(0x1bb)](_0x3647c6),this[_0x5a8a11(0x307)](!0x1);}}[_0x5009fc(0x149)](_0xc931c0){const _0x228178=_0x5009fc;if(this[_0x228178(0x28e)](),this['_checkMissing'](_0xc931c0))return this[_0x228178(0x448)][_0x228178(0x345)](B,this['unitID'],this[_0x228178(0x1f3)],null,this[_0x228178(0x213)],this[_0x228178(0x417)],[],this[_0x228178(0x3d8)]);this[_0x228178(0xef)]();const _0x3636d3=this[_0x228178(0x448)]['createInstance'](X,this['unitID'],this[_0x228178(0x1f3)],this[_0x228178(0x213)],this[_0x228178(0x3d8)]);return _0x3636d3[_0x228178(0x2ba)](),_0x3636d3[_0x228178(0x25c)](),_0x3636d3;}[_0x5009fc(0x12d)](_0x4aa165){const _0x4bd1fe=_0x5009fc;return this[_0x4bd1fe(0x307)](!!(_0x4aa165!=null&&_0x4aa165[_0x4bd1fe(0x28d)]));}[_0x5009fc(0x262)](_0x258c6b){const _0x51c6ef=_0x5009fc;return this[_0x51c6ef(0x282)]>Ys?this['toggleOffline']():(this['_resendTimer']=Gs(this[_0x51c6ef(0x282)],{'timeout':this[_0x51c6ef(0x282)],'reqId':_0x258c6b[_0x51c6ef(0x421)]}),this[_0x51c6ef(0x34a)]=this[_0x51c6ef(0xd2)][_0x51c6ef(0x206)](({reqId:_0x403a17,timeout:_0x33a74d})=>{const _0x4e559b=_0x51c6ef;this[_0x4e559b(0x33d)](_0x403a17,_0x33a74d);}),this);}[_0x5009fc(0x3fb)](){const _0x3d8b90=_0x5009fc;return this[_0x3d8b90(0x28e)](),this['_injector']['createInstance'](te,this['unitID'],this[_0x3d8b90(0x1f3)],this[_0x3d8b90(0x417)],this[_0x3d8b90(0x213)],this[_0x3d8b90(0x3d8)]);}[_0x5009fc(0x1f9)](){return this;}[_0x5009fc(0x2d9)](){const _0x4d0361=_0x5009fc;this[_0x4d0361(0x3d8)][_0x4d0361(0x40f)](this[_0x4d0361(0x417)]);}[_0x5009fc(0x307)](_0x207a20){const _0x1f75cd=_0x5009fc;return this['_clearScheduledTask'](),this['_injector']['createInstance'](ee,this[_0x1f75cd(0x187)],this[_0x1f75cd(0x1f3)],null,this['_pendingMutations'],this[_0x1f75cd(0x3d8)],_0x207a20);}['_resendWithTimeout'](_0x745b6c,_0x412c42){const _0x324742=_0x5009fc;var _0x16caae;_0x745b6c===((_0x16caae=this['_awaitingChangeset'])==null?void 0x0:_0x16caae[_0x324742(0x421)])&&(this['resend'](),this[_0x324742(0x282)]=_0x412c42===0x0?0x3e8:_0x412c42*0x2);}[_0x5009fc(0x28e)](){const _0x55cb73=_0x5009fc;var _0x23f19e;(_0x23f19e=this[_0x55cb73(0x34a)])==null||_0x23f19e[_0x55cb73(0x32a)](),this['_resendTimeout']=0x0;}};q=_e([f(0x6,_0x1f955f(_0x97bef)),f(0x7,_0x1f955f(_0x49adf8)),f(0x8,_0x1f955f(w)),f(0x9,_0xfcd33f),f(0xa,_0x5cfe43),f(0xb,_0x191396),f(0xc,_0xf4d2d4)],q);let ee=class extends ue{constructor(_0x47ede6,_0x58ba89,_0xf241e7,_0x1b07da,_0x1ee52e,_0xac6500=!0x1,_0x3bbe40,_0x30e0ee,_0x1c1fe1,_0x40d8ce,_0x113e2f,_0x36da2b,_0x1dda53){const _0x560dd7=_0x5009fc;super(_0x47ede6,_0x58ba89,_0xf241e7,_0x1b07da,_0x1ee52e,_0x30e0ee,_0x1c1fe1,_0x113e2f,_0x40d8ce),l(this,_0x560dd7(0x190),'conflict'),(this['_isPermissionRej']=_0xac6500,this['_permissionService']=_0x3bbe40,this[_0x560dd7(0x2a6)]=_0x36da2b,this[_0x560dd7(0x223)]=_0x1dda53,this[_0x560dd7(0x3cb)](),this[_0x560dd7(0x1a8)](),this[_0x560dd7(0x1ff)]());}[_0x5009fc(0x1cb)](){return this;}[_0x5009fc(0x342)](){return this;}[_0x5009fc(0x149)](){return this;}['onRemoteRej'](){return this;}[_0x5009fc(0x262)](){return this;}[_0x5009fc(0x3fb)](){return this;}[_0x5009fc(0x1f9)](){return this;}[_0x5009fc(0x2d9)](){const _0x757832=_0x5009fc;throw new Error(_0x757832(0x145));}[_0x5009fc(0x1a8)](){const _0x5b5287=_0x5009fc;this[_0x5b5287(0x156)][_0x5b5287(0x1f4)](this[_0x5b5287(0x187)],this[_0x5b5287(0x1f3)],null,[]);}[_0x5009fc(0x3cb)](){const _0x4d7e81=_0x5009fc;this[_0x4d7e81(0x165)]?this[_0x4d7e81(0x223)][_0x4d7e81(0xf7)]({'title':this[_0x4d7e81(0x2a6)]['t']('permission.title'),'content':this['_localeService']['t'](_0x4d7e81(0x3f1)),'type':'error','duration':0x0}):this['_notificationService'][_0x4d7e81(0xf7)]({'title':this[_0x4d7e81(0x2a6)]['t'](_0x4d7e81(0x2bc)),'content':this[_0x4d7e81(0x2a6)]['t']('conflict.content'),'type':_0x4d7e81(0x1bb),'duration':0x0});}['_disableEditing'](){const _0x1d5040=_0x5009fc;this[_0x1d5040(0x1e4)][_0x1d5040(0x2c8)](new _0x496922(this[_0x1d5040(0x187)])['id'],!0x1);}};ee=_e([f(0x6,_0x1f955f(_0x46a842)),f(0x7,_0xfcd33f),f(0x8,_0xf4d2d4),f(0x9,_0x1f955f(w)),f(0xa,_0x1f955f(_0x49adf8)),f(0xb,_0x1f955f(_0x371029)),f(0xc,_0x258190)],ee);let te=class extends ue{constructor(_0x38ac95,_0x337acd,_0x132581,_0x2c1634,_0x2f0703,_0x23ed55,_0x3d6eed,_0x12033d,_0x47e096,_0x2bcc5b){const _0x17c653=_0x5009fc;super(_0x38ac95,_0x337acd,_0x132581,_0x2c1634,_0x2f0703,_0x47e096,_0x2bcc5b,_0x3d6eed,_0x12033d),l(this,_0x17c653(0x190),_0x17c653(0x170)),this['_injector']=_0x23ed55;}[_0x5009fc(0x1cb)](_0x580138){const _0x1415ef=_0x5009fc;return this['_pendingMutations']['push'](_0x580138),this[_0x1415ef(0x25c)](),this;}[_0x5009fc(0x342)](_0x19496d){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x5009fc(0x149)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x5009fc(0x12d)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x5009fc(0x262)](){return this;}['toggleOffline'](){return this;}[_0x5009fc(0x1f9)](){const _0x269720=_0x5009fc,{_injector:_0x2ff7e0,_pendingMutations:_0x2887e1,_awaitingChangeset:_0x3e2a17,unitID:_0x31a548,_handler:_0x486a67,type:_0xe1d6ea}=this,_0x56af65=Ks(_0x2ff7e0,_0x31a548,_0xe1d6ea,_0x3e2a17,_0x2887e1,_0x486a67);return _0x56af65 instanceof X?_0x56af65[_0x269720(0x2ba)]():(_0x56af65 instanceof q||_0x56af65 instanceof Q)&&_0x56af65['resend'](),_0x56af65;}[_0x5009fc(0x2d9)](){const _0x372ea6=_0x5009fc;throw new Error(_0x372ea6(0x21b));}};te=_e([f(0x5,_0x1f955f(_0x97bef)),f(0x6,_0x1f955f(_0x49adf8)),f(0x7,_0x1f955f(w)),f(0x8,_0xfcd33f),f(0x9,_0xf4d2d4)],te);let B=class extends ue{constructor(_0x2240ef,_0x111780,_0xa4087e,_0x25c8e8,_0x2e9792,_0x4b1180,_0x3ac75a,_0x1b9e66,_0x56ae73,_0x383e86,_0xd7c9be,_0x11f839,_0x366685,_0x164864){const _0x5e4e5c=_0x5009fc;super(_0x2240ef,_0x111780,_0xa4087e,_0x25c8e8,_0x3ac75a,_0x11f839,_0x366685,_0x56ae73,_0x383e86),l(this,_0x5e4e5c(0x190),_0x5e4e5c(0x2ef)),(this[_0x5e4e5c(0x373)]=_0x2e9792,this[_0x5e4e5c(0x3e3)]=_0x4b1180,this[_0x5e4e5c(0x448)]=_0x1b9e66,this['_logService']=_0xd7c9be,this[_0x5e4e5c(0x42e)]=_0x164864);}[_0x5009fc(0x237)](_0x312550){const _0x193703=_0x5009fc;try{const _0x3d2ce7=[..._0x312550,...this[_0x193703(0x3e3)]],_0x1dc628=[this['_awaitingChangeset']||this[_0x193703(0x373)]][_0x193703(0x376)](_0x3c9299=>!!_0x3c9299);let _0x4d0e4d,_0xd7aa2b;if(_0x1dc628[_0x193703(0x21e)]){const _0x29ebe9=this[_0x193703(0x42e)]['transformChangesets'](_0x3d2ce7,_0x1dc628,!0x1);if(!_0x47a6ae(_0x29ebe9))throw _0x29ebe9[_0x193703(0x1bb)];_0x4d0e4d=_0x29ebe9[_0x193703(0x2b4)],_0xd7aa2b=_0x29ebe9[_0x193703(0xfc)];}else _0x4d0e4d=_0x3d2ce7,_0xd7aa2b=[];let _0x412d49=this[_0x193703(0x213)];_0x4d0e4d['forEach'](_0x38cc7f=>{const _0x2dfb99=_0x193703;let _0x338d17;if(_0x412d49['length']){const _0x2f9e99=this['_transformService']['transformMutationsWithChangeset'](_0x38cc7f,_0x412d49);if(!_0x110ba3(_0x2f9e99))throw _0x2f9e99[_0x2dfb99(0x1bb)];_0x338d17=_0x2f9e99['c1Prime'],_0x412d49=_0x2f9e99[_0x2dfb99(0xd1)];}else _0x338d17=_0x38cc7f;this[_0x2dfb99(0x303)](_0x338d17);}),this[_0x193703(0x373)]&&this['_incrementRevisionNumber'](),this[_0x193703(0x417)]&&_0xd7aa2b[_0x193703(0x21e)]&&(_0xd7aa2b[0x0][_0x193703(0x272)]=this[_0x193703(0x174)]());let _0x510bd2;if(this[_0x193703(0x417)]&&_0x412d49[_0x193703(0x21e)]!==0x0)_0x510bd2=this['_injector'][_0x193703(0x345)](q,this[_0x193703(0x187)],this[_0x193703(0x1f3)],_0xd7aa2b[0x0],_0x412d49,this['_handler'],void 0x0);else{if(this[_0x193703(0x417)]&&_0x412d49[_0x193703(0x21e)]===0x0)_0xd7aa2b[0x0][_0x193703(0x272)]=this['_getCurrentRevision'](),_0x510bd2=this[_0x193703(0x448)][_0x193703(0x345)](Q,this[_0x193703(0x187)],this[_0x193703(0x1f3)],_0xd7aa2b[0x0],this[_0x193703(0x3d8)]);else{if(_0x412d49[_0x193703(0x21e)]!==0x0){const _0x546f7f=this[_0x193703(0x448)][_0x193703(0x345)](X,this[_0x193703(0x187)],this['type'],_0x412d49,this['_handler']);_0x546f7f[_0x193703(0x2ba)](),_0x510bd2=_0x546f7f;}else _0x510bd2=this[_0x193703(0x448)][_0x193703(0x345)](pe,this[_0x193703(0x187)],this[_0x193703(0x1f3)],this[_0x193703(0x3d8)]);}}return _0x510bd2[_0x193703(0x25c)](),_0x510bd2;}catch(_0x3f6052){return this[_0x193703(0x208)][_0x193703(0x1bb)]('[FetchMissState]',_0x193703(0x3d9),_0x3f6052),this['_injector'][_0x193703(0x345)](ee,this['unitID'],this[_0x193703(0x1f3)],this['_awaitingChangeset'],this[_0x193703(0x213)],this[_0x193703(0x3d8)],!0x1);}}[_0x5009fc(0x2d9)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x5780e4){const _0x19b710=_0x5009fc;return this['_pendingMutations'][_0x19b710(0x152)](_0x5780e4),this;}[_0x5009fc(0x342)](_0x166792){const _0x420ac8=_0x5009fc;return this['_queuedRemoteChangesets'][_0x420ac8(0x152)](_0x166792),this;}[_0x5009fc(0x149)](_0x195f2a){const _0x2355a4=_0x5009fc;if(this[_0x2355a4(0x417)])return this[_0x2355a4(0x373)]=this[_0x2355a4(0x417)],this[_0x2355a4(0x417)]=null,this;throw new Error(_0x2355a4(0x173));}[_0x5009fc(0x12d)](_0x4b2cfa){const _0x34caa0=_0x5009fc;return this[_0x34caa0(0x307)](!!(_0x4b2cfa!=null&&_0x4b2cfa[_0x34caa0(0x28d)]));}[_0x5009fc(0x262)](){return this;}[_0x5009fc(0x3fb)](){const _0x276f1b=_0x5009fc;return this[_0x276f1b(0x448)][_0x276f1b(0x345)](te,this[_0x276f1b(0x187)],this['type'],this[_0x276f1b(0x417)],this[_0x276f1b(0x213)],this['_handler']);}['toggleOnline'](){return this;}[_0x5009fc(0x307)](_0x38a0f4){const _0x28973f=_0x5009fc;return this[_0x28973f(0x448)][_0x28973f(0x345)](ee,this[_0x28973f(0x187)],this[_0x28973f(0x1f3)],this[_0x28973f(0x417)],this[_0x28973f(0x213)],this[_0x28973f(0x3d8)],_0x38a0f4);}};B=_e([f(0x7,_0x1f955f(_0x97bef)),f(0x8,_0x1f955f(_0x49adf8)),f(0x9,_0x1f955f(w)),f(0xa,_0x5cfe43),f(0xb,_0xfcd33f),f(0xc,_0xf4d2d4),f(0xd,_0x191396)],B);function Ks(_0x2f0748,_0x1c4a27,_0x3ec3d3,_0x3be81f,_0x11994e,_0x3dfd82){const _0x5e0314=_0x5009fc;return _0x3be81f&&_0x11994e['length']?_0x2f0748[_0x5e0314(0x345)](q,_0x1c4a27,_0x3ec3d3,_0x3be81f,_0x11994e,_0x3dfd82,void 0x0):_0x3be81f?_0x2f0748[_0x5e0314(0x345)](Q,_0x1c4a27,_0x3ec3d3,_0x3be81f,_0x3dfd82):_0x11994e[_0x5e0314(0x21e)]?_0x2f0748[_0x5e0314(0x345)](X,_0x1c4a27,_0x3ec3d3,_0x11994e,_0x3dfd82):_0x2f0748[_0x5e0314(0x345)](pe,_0x1c4a27,_0x3ec3d3,_0x3dfd82);}var Dr=Object[_0x5009fc(0x235)],wr=Object[_0x5009fc(0x327)],Wt=(_0x470b8c,_0x2da15a,_0x1c6d6c,_0x334892)=>{for(var _0x3cdc72=_0x334892>0x1?void 0x0:_0x334892?wr(_0x2da15a,_0x1c6d6c):_0x2da15a,_0x576bd1=_0x470b8c['length']-0x1,_0x4465c5;_0x576bd1>=0x0;_0x576bd1--)(_0x4465c5=_0x470b8c[_0x576bd1])&&(_0x3cdc72=(_0x334892?_0x4465c5(_0x2da15a,_0x1c6d6c,_0x3cdc72):_0x4465c5(_0x3cdc72))||_0x3cdc72);return _0x334892&&_0x3cdc72&&Dr(_0x2da15a,_0x1c6d6c,_0x3cdc72),_0x3cdc72;},p=(_0x3de80d,_0x5c105f)=>(_0x3decd4,_0x2462bd)=>_0x5c105f(_0x3decd4,_0x2462bd,_0x3de80d);let qe=class extends _0x5889a4{constructor(_0x39f594,_0x29940b,_0x9082e4,_0x29d4c4,_0x30968f,_0x586fc9,_0x38783e,_0x474bbe,_0x58cc2e,_0x1d18cd,_0x809044,_0x337262,_0x30c3b3){const _0x74ace6=_0x5009fc;super(),l(this,_0x74ace6(0x358),new _0x3a492f(null)),l(this,_0x74ace6(0x254),this[_0x74ace6(0x358)][_0x74ace6(0x396)]()),l(this,_0x74ace6(0x311)),l(this,_0x74ace6(0x243),!0x1),l(this,_0x74ace6(0x226),''),l(this,'_changesetReqId',0x0),l(this,_0x74ace6(0x27c),this[_0x74ace6(0x254)][_0x74ace6(0x44f)](_0x563f1f(_0x4c4eee=>_0x4c4eee?_0x4c4eee['status']:P[_0x74ace6(0x29e)]),_0x2ee8ad(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x74ace6(0x20f),[]),(this['unitID']=_0x39f594,this[_0x74ace6(0x24e)]=_0x29940b,this[_0x74ace6(0x22e)]=_0x9082e4,this[_0x74ace6(0x448)]=_0x29d4c4,this[_0x74ace6(0x156)]=_0x30968f,this['_compressMutationService']=_0x586fc9,this[_0x74ace6(0x2a6)]=_0x38783e,this['_revisionService']=_0x474bbe,this[_0x74ace6(0x208)]=_0x58cc2e,this[_0x74ace6(0x289)]=_0x1d18cd,this[_0x74ace6(0x104)]=_0x809044,this[_0x74ace6(0x1e4)]=_0x337262,this[_0x74ace6(0x39e)]=_0x30c3b3);}get[_0x5009fc(0x27a)](){const _0x48f0c9=_0x5009fc;return this[_0x48f0c9(0x311)];}async[_0x5009fc(0x3a7)](){const _0x1100ad=_0x5009fc;if(this[_0x1100ad(0x27a)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x1100ad(0x2bf)]();}[_0x5009fc(0x2a5)](){const _0x4a1097=_0x5009fc;return this[_0x4a1097(0x243)]=!0x0,_0x2b2e4c(()=>{const _0x1ec453=_0x4a1097;this[_0x1ec453(0x243)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x5009fc(0x423)](_0x491b07){const _0x529b28=_0x5009fc;this[_0x529b28(0x311)]=_0x491b07,this[_0x529b28(0x358)][_0x529b28(0x1cf)](_0x491b07);}async['_init'](){const _0x40e87c=_0x5009fc;var _0x3139c4;this[_0x40e87c(0x423)](await this[_0x40e87c(0x1e0)]()),this[_0x40e87c(0x39e)]&&((_0x3139c4=this[_0x40e87c(0x39e)])==null||_0x3139c4[_0x40e87c(0x132)](this[_0x40e87c(0x187)]),this[_0x40e87c(0x341)](this[_0x40e87c(0x39e)][_0x40e87c(0x378)](this[_0x40e87c(0x187)])['subscribe'](_0x478f0e=>{const _0xf9a9ed=_0x40e87c;this['_logService']['debug'](_0xf9a9ed(0x2ed),_0xf9a9ed(0x3b2),_0x478f0e),_0x478f0e===Fs['OTHER_CLIENTS_EDITING']?(this[_0xf9a9ed(0x104)][_0xf9a9ed(0xf7)]({'content':this[_0xf9a9ed(0x2a6)]['t']('collaboration.single-unit.warning'),'type':_0x3738f0[_0xf9a9ed(0x28f)]}),this[_0xf9a9ed(0x1e4)][_0xf9a9ed(0x2c8)](new _0x496922(this[_0xf9a9ed(0x187)])['id'],!0x1)):this[_0xf9a9ed(0x1e4)][_0xf9a9ed(0x2c8)](new _0x496922(this['unitID'])['id'],!0x0);})));let _0x4cc210=!0x1;return this[_0x40e87c(0x341)](this[_0x40e87c(0x24e)][_0x40e87c(0x333)][_0x40e87c(0x206)](_0x4d4508=>{const _0xcc33c8=_0x40e87c;_0x4d4508===Y[_0xcc33c8(0x16c)]?this[_0xcc33c8(0x446)](_0x4cc210):_0x4d4508===Y[_0xcc33c8(0x29e)]&&(_0x4cc210=!0x0,this[_0xcc33c8(0x135)]());})),this['disposeWithMe'](this['session'][_0x40e87c(0x427)]['subscribe'](_0x40f79c=>{const _0xe11f7e=_0x40e87c;try{switch(_0x40f79c[_0xe11f7e(0x299)]){case _0x5bf9c6[_0xe11f7e(0x101)]:{this[_0xe11f7e(0x3b4)](_0x3a768d(_0x40f79c[_0xe11f7e(0x363)]));break;}case _0x5bf9c6['CHANGESET_ACK']:{this[_0xe11f7e(0xe3)](_0x40f79c['data']);break;}case _0x5bf9c6[_0xe11f7e(0x146)]:{this[_0xe11f7e(0x433)]();break;}case _0x5bf9c6[_0xe11f7e(0x2d0)]:{this[_0xe11f7e(0x31e)](_0x40f79c[_0xe11f7e(0x363)]);break;}case _0x5bf9c6[_0xe11f7e(0x2ad)]:{this['_onFetchMissResult'](_0x40f79c[_0xe11f7e(0x363)][_0xe11f7e(0x2dd)][_0xe11f7e(0x1f8)](_0x50ea92=>_0x3a768d(_0x50ea92)));break;}case _0x5bf9c6[_0xe11f7e(0x12e)]:this[_0xe11f7e(0x433)]({'isPermissionRej':!0x0});}}catch(_0x79ece9){throw console['error']('Error\x20on\x20receiving\x20event',_0x79ece9),_0x79ece9;}})),this['_state'];}[_0x5009fc(0x218)](){const _0x49bc13=_0x5009fc;this[_0x49bc13(0x1c3)]=!0x1;}['_lockTransition'](){const _0x284daa=_0x5009fc;if(this[_0x284daa(0x1c3)])throw new Error(_0x284daa(0x166));this['_transitionLocked']=!0x0;}[_0x5009fc(0x308)](_0x4f8bf4){const _0x4ad096=_0x5009fc;this[_0x4ad096(0x279)](),this[_0x4ad096(0x423)](this[_0x4ad096(0x311)][_0x4ad096(0x1cb)](_0x4f8bf4)),this[_0x4ad096(0x218)]();}[_0x5009fc(0x3b4)](_0x246bff){const _0x51a208=_0x5009fc;if(!(_0x246bff[_0x51a208(0x2c7)]<=this['_revisionService'][_0x51a208(0x13a)](this[_0x51a208(0x187)]))){if(this[_0x51a208(0x243)]){this['_remoteChangesetQueue'][_0x51a208(0x152)](_0x246bff);return;}this['_applyRemoteChangeset'](_0x246bff);}}[_0x5009fc(0x447)](){const _0x3b5c1e=_0x5009fc;this[_0x3b5c1e(0x20f)]['forEach'](_0x29fa4b=>this[_0x3b5c1e(0x122)](_0x29fa4b)),this[_0x3b5c1e(0x20f)]=[];}['_applyRemoteChangeset'](_0x3d9e6f){const _0x54eb77=_0x5009fc,_0xb29997=this['_compressMutationService'][_0x54eb77(0xf1)][_0x54eb77(0x31d)](this[_0x54eb77(0x1fe)][_0x54eb77(0xf1)]['getInterceptPoints']()[_0x54eb77(0x19f)])(_0x3d9e6f[_0x54eb77(0x12c)],null)||_0x3d9e6f['mutations'],_0x3b61c9={..._0x3d9e6f,'mutations':_0xb29997};this[_0x54eb77(0x279)](),this[_0x54eb77(0x423)](this[_0x54eb77(0x311)][_0x54eb77(0x342)](_0x3b61c9)),this[_0x54eb77(0x218)]();}[_0x5009fc(0xe3)](_0x53894f){const _0x2dadf3=_0x5009fc;this['_lockTransition'](),this['_updateState'](this[_0x2dadf3(0x311)][_0x2dadf3(0x149)](_0x53894f)),this[_0x2dadf3(0x218)]();}[_0x5009fc(0x433)](_0x35449d){const _0x514970=_0x5009fc;this[_0x514970(0x279)](),this[_0x514970(0x423)](this[_0x514970(0x311)][_0x514970(0x12d)](_0x35449d)),this['_unlockTransition']();}[_0x5009fc(0x31e)](_0x4bd224){const _0x35fa9d=_0x5009fc;this[_0x35fa9d(0x279)](),this[_0x35fa9d(0x423)](this[_0x35fa9d(0x311)][_0x35fa9d(0x262)](_0x4bd224)),this[_0x35fa9d(0x218)]();}[_0x5009fc(0x30e)](_0x11324e){const _0x125b80=_0x5009fc;if(!(this[_0x125b80(0x311)]instanceof B))throw new TypeError(_0x125b80(0x234));const _0x1ccbbf=_0x11324e[_0x125b80(0x1f8)](_0x39c6e7=>{const _0x34c97b=_0x125b80,_0x12594a=this[_0x34c97b(0x1fe)][_0x34c97b(0xf1)][_0x34c97b(0x31d)](this['_compressMutationService'][_0x34c97b(0xf1)]['getInterceptPoints']()[_0x34c97b(0x19f)])(_0x39c6e7['mutations'],null)||_0x39c6e7[_0x34c97b(0x12c)];return{..._0x39c6e7,'mutations':_0x12594a};});this['_lockTransition'](),this[_0x125b80(0x423)](this[_0x125b80(0x311)]['onMissedChangesetFetched'](_0x1ccbbf)),this[_0x125b80(0x218)]();}[_0x5009fc(0x135)](){const _0x34d7ef=_0x5009fc;this[_0x34d7ef(0x279)](),this[_0x34d7ef(0x423)](this['_state'][_0x34d7ef(0x3fb)]()),this[_0x34d7ef(0x218)]();}[_0x5009fc(0x446)](_0x4d7201=!0x1){const _0x111345=_0x5009fc;this[_0x111345(0x279)](),this[_0x111345(0x423)](this[_0x111345(0x311)]['toggleOnline']()),this[_0x111345(0x218)]();const _0x5853b1=this[_0x111345(0x311)];_0x4d7201&&_0x5853b1 instanceof pe&&(this['_lockTransition'](),this[_0x111345(0x423)](_0x5853b1[_0x111345(0x410)]()),this[_0x111345(0x218)]());}async['_createInitialState'](){return new Promise(_0x588646=>{const _0x25932d=_0x3280;this[_0x25932d(0x24e)][_0x25932d(0x333)]['pipe'](_0x1825da(0x1))[_0x25932d(0x206)](async _0x22313e=>{const _0x52cfb0=_0x25932d;_0x588646(await this['_createInitialStateImpl'](_0x22313e===Y[_0x52cfb0(0x16c)]));});});}[_0x5009fc(0x26f)](){const _0x45dd12=_0x5009fc,_0x45aed0=this[_0x45dd12(0x187)];return{'onStateChange':(_0xfc22af,_0x1a9792)=>{const _0x52052e=_0x45dd12;if(_0xfc22af!==this[_0x52052e(0x311)])throw new Error(_0x52052e(0x3eb)+_0xfc22af[_0x52052e(0x190)]+_0x52052e(0x27d)+_0x1a9792[_0x52052e(0x190)]+_0x52052e(0x2c5)+this[_0x52052e(0x311)]['status']);this['_updateState'](_0x1a9792);},'onSendChangeset':_0x589ca0=>{const _0x5b377e=_0x45dd12;_0x589ca0[_0x5b377e(0x200)]||(_0x589ca0[_0x5b377e(0x200)]=this['_changesetSessionId'],_0x589ca0[_0x5b377e(0x421)]=++this['_changesetReqId']);const _0xcc83f0={'eventID':_0x5bf9c6[_0x5b377e(0x389)],'data':{'unitID':_0x589ca0[_0x5b377e(0x187)],'unitType':this[_0x5b377e(0x22e)],'changeset':_0x589ca0,'memberID':this[_0x5b377e(0x24e)][_0x5b377e(0x2ae)]()}};this[_0x5b377e(0x24e)][_0x5b377e(0x3ca)](_0xcc83f0,this[_0x5b377e(0x187)]);},'onMissingChangesets':({from:_0x558d9e,to:_0x2b741})=>{const _0x4a97e9=_0x45dd12;this[_0x4a97e9(0x208)][_0x4a97e9(0x232)](_0x4a97e9(0x2ed),_0x4a97e9(0x2db)+_0x558d9e+_0x4a97e9(0x15a)+_0x2b741);const _0x12f377={'eventID':_0x5bf9c6[_0x4a97e9(0x219)],'data':{'unitID':_0x45aed0,'unitType':this[_0x4a97e9(0x22e)],'from':_0x558d9e,'to':_0x2b741}};this[_0x4a97e9(0x24e)][_0x4a97e9(0x3ca)](_0x12f377,this[_0x4a97e9(0x187)]);}};}async['_createInitialStateImpl'](_0x4a628e){const _0x35beb9=_0x5009fc;var _0x1979b3,_0x1f0a41;const _0x3d0746=await this[_0x35beb9(0x156)][_0x35beb9(0x1ad)](this[_0x35beb9(0x187)]),_0x3ca198=(_0x1979b3=_0x3d0746==null?void 0x0:_0x3d0746[_0x35beb9(0x12c)])!=null?_0x1979b3:[],_0x5797ae=(_0x1f0a41=_0x3d0746==null?void 0x0:_0x3d0746[_0x35beb9(0x38a)])!=null?_0x1f0a41:null,_0x400f96=!!(_0x5797ae!=null&&_0x5797ae['sid'])&&!!(_0x5797ae!=null&&_0x5797ae[_0x35beb9(0x421)]);this['_changesetSessionId']=_0x400f96?_0x5797ae['sid']:or(),this[_0x35beb9(0x1b7)]=_0x400f96?_0x5797ae[_0x35beb9(0x421)]:0x0;const _0x476f5d=this[_0x35beb9(0x187)];try{this['_replayCachedMutations'](_0x5797ae,_0x3ca198);}catch(_0x59e60a){this[_0x35beb9(0x208)]['error'](_0x59e60a);}const _0xd9fc44=this[_0x35beb9(0x26f)]();if(_0x4a628e){const _0x4d2325=Ks(this[_0x35beb9(0x448)],_0x476f5d,this['_type'],_0x5797ae,_0x3ca198,_0xd9fc44);return _0x4d2325 instanceof X?_0x4d2325[_0x35beb9(0x2ba)]():(_0x4d2325 instanceof q||_0x4d2325 instanceof Q)&&_0x4d2325['resend'](),_0x4d2325;}return this['_injector'][_0x35beb9(0x345)](te,_0x476f5d,this[_0x35beb9(0x22e)],_0x5797ae,_0x3ca198,_0xd9fc44);}['_replayCachedMutations'](_0x1daa83,_0x778ad){const _0x27dd45=_0x5009fc;var _0x764d6e,_0xbb4295;const _0x22b406=this[_0x27dd45(0x1fe)][_0x27dd45(0xf1)]['fetchThroughInterceptors'](this[_0x27dd45(0x1fe)][_0x27dd45(0xf1)][_0x27dd45(0x434)]()[_0x27dd45(0x19f)]);(_0x764d6e=_0x22b406((_0x1daa83==null?void 0x0:_0x1daa83[_0x27dd45(0x12c)])||[],null))==null||_0x764d6e[_0x27dd45(0x1d4)](_0xdab4cc=>this[_0x27dd45(0x289)]['executeCommand'](_0xdab4cc['id'],_0xdab4cc[_0x27dd45(0x194)])),(_0xbb4295=_0x22b406(_0x778ad||[],null))==null||_0xbb4295['forEach'](_0x550e84=>this[_0x27dd45(0x289)][_0x27dd45(0x109)](_0x550e84['id'],_0x550e84[_0x27dd45(0x194)]));}};qe=Wt([p(0x3,_0x1f955f(_0x97bef)),p(0x4,_0x1f955f(w)),p(0x5,_0x1f955f(_0x3c64bb)),p(0x6,_0x1f955f(_0x371029)),p(0x7,_0x1f955f(_0x49adf8)),p(0x8,_0x5cfe43),p(0x9,_0xfcd33f),p(0xa,_0x40b38a),p(0xb,_0x46a842),p(0xc,_0x25fcfd(tt))],qe);let Tt=class extends qe{constructor(_0x547734,_0x2e4872,_0x5938c6,_0xbad314,_0x2817bb,_0x38df32,_0x558d08,_0x42079d,_0x1555bc,_0x52ac82,_0x293cbb,_0x1eb973,_0xcc0eeb,_0x4cbe10,_0x5ce3a5,_0x460b7e,_0x395456){const _0x57345b=_0x5009fc;super(_0x547734,_0x5938c6,_0x2e4872,_0xbad314,_0x2817bb,_0x38df32,_0x558d08,_0x42079d,_0xcc0eeb,_0x4cbe10,_0x5ce3a5,_0x460b7e,_0x395456),this[_0x57345b(0x187)]=_0x547734,this['type']=_0x2e4872,this[_0x57345b(0x3e7)]=_0x1555bc,this[_0x57345b(0x393)]=_0x52ac82,this[_0x57345b(0xe4)]=_0x293cbb,this[_0x57345b(0xe7)]=_0x1eb973;}[_0x5009fc(0x26f)](){const _0x3ce87c=_0x5009fc,_0x1ce195=super[_0x3ce87c(0x26f)]();return _0x1ce195[_0x3ce87c(0x241)]=_0x2da29a=>this[_0x3ce87c(0x393)][_0x3ce87c(0x42d)](_0x2da29a),_0x1ce195['onTransformSelections']=_0x15ba2e=>this['_docTransformSelectionsService']['transformSelections'](_0x15ba2e),_0x1ce195[_0x3ce87c(0x25e)]=_0xc3e52d=>this[_0x3ce87c(0xe7)][_0x3ce87c(0x264)](_0xc3e52d),_0x1ce195['onTransformRemoteChangesetByIMECache']=_0x3853f5=>this[_0x3ce87c(0x393)]['transformRemoteChangeset'](_0x3853f5),_0x1ce195;}async['_init'](){const _0x1f0b99=_0x5009fc,_0xcd96b5=await super[_0x1f0b99(0x2bf)]();return this[_0x1f0b99(0x3e7)][_0x1f0b99(0x1c1)]['pipe'](_0x810e9a(this[_0x1f0b99(0x35c)]))['subscribe'](_0xf28236=>{const _0x142d39=_0x1f0b99;if(_0xf28236==null)return;const {unitId:_0x18c4bb,redoState:_0xc01a73,commandId:_0x47793c}=_0xf28236;if(_0x18c4bb!==this[_0x142d39(0x187)])return;const _0x44f416={'id':_0x47793c,'type':_0x5b3aba[_0x142d39(0xf9)],'params':{'unitId':_0x18c4bb,'actions':_0xc01a73['actions'],'textRanges':null}};this[_0x142d39(0x308)](_0x44f416);}),_0xcd96b5;}};Tt=Wt([p(0x3,_0x1f955f(_0x97bef)),p(0x4,_0x1f955f(w)),p(0x5,_0x1f955f(_0x3c64bb)),p(0x6,_0x1f955f(_0x371029)),p(0x7,_0x1f955f(_0x49adf8)),p(0x8,_0x1f955f(_0x381024)),p(0x9,_0x1f955f(Ye)),p(0xa,_0x1f955f(Xe)),p(0xb,_0x1f955f(Ft)),p(0xc,_0x5cfe43),p(0xd,_0xfcd33f),p(0xe,_0x40b38a),p(0xf,_0x46a842),p(0x10,_0x25fcfd(tt))],Tt);let Rt=class extends qe{constructor(_0x3334fb,_0x44bada,_0x57daa6,_0x253150,_0x4f1109,_0x547c64,_0x2ca811,_0x352413,_0x47588e,_0x59beea,_0x276bf1,_0x13884a,_0x1cb377,_0x3d4bed){const _0xc1d0e3=_0x5009fc;super(_0x3334fb,_0x57daa6,_0x44bada,_0x253150,_0x4f1109,_0x547c64,_0x2ca811,_0x352413,_0x59beea,_0x276bf1,_0x13884a,_0x1cb377,_0x3d4bed),this[_0xc1d0e3(0x187)]=_0x3334fb,this[_0xc1d0e3(0x1f3)]=_0x44bada,this[_0xc1d0e3(0x2c1)]=_0x47588e;}[_0x5009fc(0x26f)](){const _0x3fe33f=_0x5009fc,_0x3cd134=super['_createHandler']();return _0x3cd134[_0x3fe33f(0x15d)]=_0xc58c51=>this['_sheetTransformSelectionsService'][_0x3fe33f(0x2e6)](_0xc58c51),_0x3cd134;}async[_0x5009fc(0x2bf)](){const _0x45cd17=_0x5009fc,_0x145a5d=await super[_0x45cd17(0x2bf)]();return this[_0x45cd17(0x341)](this[_0x45cd17(0x289)][_0x45cd17(0x445)]((_0x2bcc5f,_0x45b8b5)=>{const _0x595f9d=_0x45cd17;if(_0x2bcc5f['type']!==_0x5b3aba['MUTATION']||_0x45b8b5!=null&&_0x45b8b5['fromCollab']||_0x45b8b5!=null&&_0x45b8b5[_0x595f9d(0x348)])return;const _0x5a8fec=_0x2bcc5f['params'];if((_0x5a8fec==null?void 0x0:_0x5a8fec['unitId'])!==this[_0x595f9d(0x187)])return;const _0x429cfa=_0x2bcc5f,_0x102457=this[_0x595f9d(0x1fe)][_0x595f9d(0xf1)][_0x595f9d(0x31d)](this[_0x595f9d(0x1fe)][_0x595f9d(0xf1)][_0x595f9d(0x434)]()[_0x595f9d(0x380)])([_0x429cfa],null)||[_0x429cfa];this['_onLocalMutation'](_0x102457[0x0]);})),_0x145a5d;}};Rt=Wt([p(0x3,_0x1f955f(_0x97bef)),p(0x4,_0x1f955f(w)),p(0x5,_0x1f955f(_0x3c64bb)),p(0x6,_0x1f955f(_0x371029)),p(0x7,_0x1f955f(_0x49adf8)),p(0x8,_0x1f955f(Ke)),p(0x9,_0x5cfe43),p(0xa,_0xfcd33f),p(0xb,_0x40b38a),p(0xc,_0x46a842),p(0xd,_0x25fcfd(tt))],Rt);var Pr=Object[_0x5009fc(0x235)],yr=Object[_0x5009fc(0x327)],Ur=(_0x4a64a2,_0x58a843,_0xec587b,_0x2181fc)=>{const _0x2399c7=_0x5009fc;for(var _0xe17477=_0x2181fc>0x1?void 0x0:_0x2181fc?yr(_0x58a843,_0xec587b):_0x58a843,_0x371379=_0x4a64a2[_0x2399c7(0x21e)]-0x1,_0x43c329;_0x371379>=0x0;_0x371379--)(_0x43c329=_0x4a64a2[_0x371379])&&(_0xe17477=(_0x2181fc?_0x43c329(_0x58a843,_0xec587b,_0xe17477):_0x43c329(_0xe17477))||_0xe17477);return _0x2181fc&&_0xe17477&&Pr(_0x58a843,_0xec587b,_0xe17477),_0xe17477;},_t=(_0x1dd72b,_0x40de63)=>(_0x5c7d65,_0x3f46ec)=>_0x40de63(_0x5c7d65,_0x3f46ec,_0x1dd72b);let Le=class extends _0x5889a4{constructor(_0x47c5f3,_0x1e896c,_0x5d582c){const _0x206192=_0x5009fc;super(),l(this,_0x206192(0x1a5),new Map()),l(this,_0x206192(0x3d7),new _0x379f4()),(this[_0x206192(0x448)]=_0x47c5f3,this[_0x206192(0x314)]=_0x1e896c,this[_0x206192(0x250)]=_0x5d582c,this[_0x206192(0x2bf)]());}['dispose'](){const _0x37ec9f=_0x5009fc;super[_0x37ec9f(0x298)](),this['_entities'][_0x37ec9f(0x1d4)](_0x9cc620=>_0x9cc620['dispose']()),this[_0x37ec9f(0x1a5)][_0x37ec9f(0x306)]();}[_0x5009fc(0x3dd)](_0x26e339){const _0x248180=_0x5009fc;var _0x15330e;return(_0x15330e=this['_entities'][_0x248180(0x381)](_0x26e339))!=null?_0x15330e:null;}[_0x5009fc(0x2df)](_0xa9c19e){const _0x48ea33=_0x5009fc,_0x18be9f=this[_0x48ea33(0x3dd)](_0xa9c19e);return _0x18be9f?_0x347b80(_0x18be9f):this['_entityInit$']['pipe'](_0x5d3bcc(_0x359183=>_0x359183[_0x48ea33(0x187)]===_0xa9c19e));}[_0x5009fc(0x2bf)](){const _0x11825f=_0x5009fc;this[_0x11825f(0x250)]['getTypeOfUnitAdded$'](_0x53f477[_0x11825f(0x33c)])[_0x11825f(0x44f)](_0x810e9a(this[_0x11825f(0x35c)]),_0x271981(0x10))[_0x11825f(0x206)](async _0x2989ee=>{const _0x234cc0=_0x11825f,_0x527725=_0x2989ee[_0x234cc0(0x147)](),_0x5c1449=await this[_0x234cc0(0x38b)](_0x527725,k[_0x234cc0(0x33c)]);this[_0x234cc0(0x1a5)][_0x234cc0(0x411)](_0x527725,_0x5c1449);}),this[_0x11825f(0x250)][_0x11825f(0x39b)](_0x53f477[_0x11825f(0x36f)])[_0x11825f(0x44f)](_0x810e9a(this[_0x11825f(0x35c)]),_0x271981(0x10))['pipe'](_0x5d3bcc(_0x2683ce=>!_0x2683ce[_0x11825f(0x147)]()[_0x11825f(0x2c3)]('__')))[_0x11825f(0x206)](async _0x7f9015=>{const _0x144b57=_0x11825f,_0x26a50d=_0x7f9015['getUnitId'](),_0x971caf=await this[_0x144b57(0x38b)](_0x26a50d,k[_0x144b57(0x36f)]);this[_0x144b57(0x1a5)][_0x144b57(0x411)](_0x26a50d,_0x971caf);}),_0x370802(this[_0x11825f(0x250)][_0x11825f(0xf0)](_0x53f477[_0x11825f(0x33c)]),this['_univerInstanceService'][_0x11825f(0xf0)](_0x53f477[_0x11825f(0x36f)]))['pipe'](_0x810e9a(this[_0x11825f(0x35c)]))[_0x11825f(0x206)](_0x20c45c=>{const _0x2d8163=_0x11825f,_0x1bedfc=_0x20c45c['getUnitId'](),_0xc558b3=this[_0x2d8163(0x1a5)][_0x2d8163(0x381)](_0x1bedfc);_0xc558b3&&(_0xc558b3[_0x2d8163(0x298)](),this[_0x2d8163(0x1a5)][_0x2d8163(0x184)](_0x1bedfc));});}async['_startCollaboration'](_0x497322,_0x29177a){const _0x404351=_0x5009fc,_0x2374b6=await this[_0x404351(0x314)][_0x404351(0x1fd)](_0x497322),_0x1b6bdf=this['_injector']['createInstance'](this['_getCtorByUniverType'](_0x29177a),_0x497322,_0x29177a,_0x2374b6);return await _0x1b6bdf[_0x404351(0x3a7)](),this[_0x404351(0x3d7)][_0x404351(0x1cf)](_0x1b6bdf),_0x1b6bdf;}[_0x5009fc(0x301)](_0x137e11){const _0x2f0cd6=_0x5009fc;switch(_0x137e11){case k[_0x2f0cd6(0x36f)]:return Tt;case k[_0x2f0cd6(0x33c)]:return Rt;default:throw new Error(_0x2f0cd6(0x117)+_0x137e11);}}};Le=Ur([_t(0x0,_0x1f955f(_0x97bef)),_t(0x1,_0x1f955f(he)),_t(0x2,_0x2d78d8)],Le);const ms=[_0x5009fc(0x172),_0x5009fc(0x12b),_0x5009fc(0x32d),_0x5009fc(0x229),_0x5009fc(0x355),_0x5009fc(0x28a)];class Gt extends _0x16541d{constructor(){const _0x40fe5b=_0x5009fc;super(...arguments),l(this,_0x40fe5b(0x388),new Map()),l(this,_0x40fe5b(0x383),0x0);}[_0x5009fc(0x3b3)](_0x2c386f){const _0x2dc218=_0x5009fc;if(this[_0x2dc218(0x388)][_0x2dc218(0x2b0)](_0x2c386f))return this[_0x2dc218(0x388)][_0x2dc218(0x381)](_0x2c386f);const _0x545d53=ms[this[_0x2dc218(0x383)]];return this[_0x2dc218(0x383)]=(this['_colorIndex']+0x1)%ms[_0x2dc218(0x21e)],this[_0x2dc218(0x388)][_0x2dc218(0x411)](_0x2c386f,_0x545d53),_0x545d53;}}var Nr=Object['defineProperty'],Mr=Object[_0x5009fc(0x327)],Ar=(_0x62f338,_0x52699e,_0x2e4e2b,_0xd24807)=>{const _0x56b9f9=_0x5009fc;for(var _0x57c273=_0xd24807>0x1?void 0x0:_0xd24807?Mr(_0x52699e,_0x2e4e2b):_0x52699e,_0x34944c=_0x62f338[_0x56b9f9(0x21e)]-0x1,_0x415a18;_0x34944c>=0x0;_0x34944c--)(_0x415a18=_0x62f338[_0x34944c])&&(_0x57c273=(_0xd24807?_0x415a18(_0x52699e,_0x2e4e2b,_0x57c273):_0x415a18(_0x57c273))||_0x57c273);return _0xd24807&&_0x57c273&&Nr(_0x52699e,_0x2e4e2b,_0x57c273),_0x57c273;},ie=(_0x12989d,_0x111979)=>(_0x3ea8ed,_0x5d0a94)=>_0x111979(_0x3ea8ed,_0x5d0a94,_0x12989d);const Lr=0x12c,$r=0x64;let Ot=class extends _0x5889a4{constructor(_0x41b9d3,_0x434a2b,_0x2ca515,_0x5d07b6,_0x2b54a1,_0x1f096a,_0x47a318,_0x54c3d0,_0x120f14){const _0x30ab51=_0x5009fc;super(),l(this,_0x30ab51(0x180),!0x1),l(this,_0x30ab51(0x2bf),!0x1),l(this,'_cursorInfo$',new _0x3a492f(new Map())),l(this,_0x30ab51(0xde),this[_0x30ab51(0x1c6)][_0x30ab51(0x396)]()),l(this,_0x30ab51(0x27f),new _0x3a492f([])),l(this,'roomMembers$',this['_roomMembers$'][_0x30ab51(0x44f)](_0x116225(Lr))),l(this,_0x30ab51(0x1c7),_0x8d4f93(_0x3ace81=>{const _0x6ead56=_0x30ab51,_0x4980ff={'eventID':_0x5bf9c6[_0x6ead56(0x1c8)],'data':{'unitID':this[_0x6ead56(0x187)],'memberID':this[_0x6ead56(0x28c)]['getMemberID'](),'selection':Ws(_0x3ace81)}};this[_0x6ead56(0x28c)][_0x6ead56(0x3ca)](_0x4980ff,this[_0x6ead56(0x187)]);},$r)),(this['unitID']=_0x41b9d3,this[_0x30ab51(0x28c)]=_0x434a2b,this[_0x30ab51(0x448)]=_0x2ca515,this[_0x30ab51(0x1e7)]=_0x5d07b6,this[_0x30ab51(0x40a)]=_0x2b54a1,this['_syncEditingCollabCursorService']=_0x1f096a,this[_0x30ab51(0x42e)]=_0x47a318,this[_0x30ab51(0x250)]=_0x54c3d0,this[_0x30ab51(0x289)]=_0x120f14);}get[_0x5009fc(0x114)](){const _0xe0a691=_0x5009fc;return this['_cursorInfo$'][_0xe0a691(0x284)]();}get['roomMembers'](){const _0x5f088b=_0x5009fc;return this[_0x5f088b(0x27f)][_0x5f088b(0x284)]();}[_0x5009fc(0x298)](){const _0x30d4db=_0x5009fc;super[_0x30d4db(0x298)](),this[_0x30d4db(0x1c6)][_0x30d4db(0x1cf)](new Map()),this[_0x30d4db(0x1c6)][_0x30d4db(0x20d)](),this[_0x30d4db(0x27f)][_0x30d4db(0x1cf)]([]),this['_roomMembers$'][_0x30d4db(0x20d)]();}[_0x5009fc(0x3a7)](){const _0x322ede=_0x5009fc;this[_0x322ede(0x2bf)]||(this[_0x322ede(0x2bf)]=!0x0,this[_0x322ede(0x28c)][_0x322ede(0x333)]['pipe'](_0x810e9a(this['dispose$']))[_0x322ede(0x206)](_0x331ca1=>{const _0x49b8a5=_0x322ede;_0x331ca1===Y[_0x49b8a5(0x16c)]?this[_0x49b8a5(0x446)]():this[_0x49b8a5(0x135)]();}),this[_0x322ede(0x28c)][_0x322ede(0x427)][_0x322ede(0x44f)](_0x810e9a(this['dispose$']))['subscribe'](_0xcace45=>{const _0x194ad2=_0x322ede,_0x4a104c=_0xcace45[_0x194ad2(0x299)];_0x4a104c===_0x5bf9c6[_0x194ad2(0x1c8)]&&this[_0x194ad2(0xf6)](_0xcace45),_0x4a104c===_0x5bf9c6[_0x194ad2(0x291)]&&this['_onCursorDelete'](_0xcace45);}),this['disposeWithMe'](this[_0x322ede(0x289)][_0x322ede(0x445)](_0x21b815=>{const _0x48a457=_0x322ede,_0x1e2bd3=_0x21b815[_0x48a457(0x194)];_0x1e2bd3!=null&&this[_0x48a457(0x180)]&&_0x21b815['id']===_0x28119f['id']&&_0x1e2bd3[_0x48a457(0x2d6)]===this[_0x48a457(0x187)]&&_0x1e2bd3[_0x48a457(0x108)]===!0x1&&this[_0x48a457(0x1c7)](_0x1e2bd3[_0x48a457(0x3e8)]);})),this['_syncEditingCollabCursorService'][_0x322ede(0x442)]['pipe'](_0x810e9a(this[_0x322ede(0x35c)]))[_0x322ede(0x206)](_0x46ba7c=>{const _0x330ae7=_0x322ede;if((_0x46ba7c==null?void 0x0:_0x46ba7c[_0x330ae7(0x187)])!==this[_0x330ae7(0x187)])return;const _0x1a7e1b={'eventID':_0x5bf9c6[_0x330ae7(0x1c8)],'data':_0x46ba7c};this['_onCursorUpdate'](_0x1a7e1b);}),this[_0x322ede(0x341)](this[_0x322ede(0x289)][_0x322ede(0x445)](_0x2b2eef=>{const _0xa243e8=_0x322ede;if(_0x2b2eef[_0xa243e8(0x194)]==null)return;const _0xcf6eb1=_0x2b2eef['params'];if(_0x2b2eef['id']!==_0x185416['id']||_0xcf6eb1[_0xa243e8(0x2d6)]!==this[_0xa243e8(0x187)])return;const _0x215a7b={'id':_0xa243e8(0x305),'params':_0xcf6eb1},_0x2eb42c=this[_0xa243e8(0x114)];for(const [_0x190751,_0x12173c]of _0x2eb42c){const _0x44e18f={'id':_0xa243e8(0x305),'params':{'unitId':this[_0xa243e8(0x187)],'actions':null,'textRanges':_0x12173c['ranges']}},_0x5f10bd=this['_transformService']['transformMutation'](_0x215a7b,_0x44e18f,!0x1);if(_0x4ee9e9(_0x5f10bd))throw _0x5f10bd[_0xa243e8(0x1bb)];_0x2eb42c[_0xa243e8(0x411)](_0x190751,{..._0x12173c,'ranges':_0x5f10bd[_0xa243e8(0xd1)][_0xa243e8(0x194)][_0xa243e8(0x3e4)]});}queueMicrotask(()=>{const _0x171bb4=_0xa243e8;this[_0x171bb4(0x1c6)][_0x171bb4(0x1cf)](_0x2eb42c);});})));}[_0x5009fc(0xf6)](_0x4a8dba){const _0x4bde70=_0x5009fc;var _0x16f610,_0x27aa81;const {memberID:_0xf279d1,selection:_0x5d1904}=_0x4a8dba[_0x4bde70(0x363)],_0x44bb83=pr(_0x5d1904),_0x2aee9a=(_0x27aa81=(_0x16f610=this[_0x4bde70(0x40a)]['getMember'](this[_0x4bde70(0x187)],_0xf279d1))==null?void 0x0:_0x16f610[_0x4bde70(0x32e)])!=null?_0x27aa81:'Unknown\x20user',_0xda5b9e={'color':this[_0x4bde70(0x1e7)][_0x4bde70(0x3b3)](_0xf279d1),'name':_0x2aee9a,'ranges':_0x44bb83},_0x35d7a6=this['cursorInfo'];_0x35d7a6['set'](_0xf279d1,_0xda5b9e),this['_cursorInfo$'][_0x4bde70(0x1cf)](_0x35d7a6);}[_0x5009fc(0x1b2)](_0x1c5361){const _0x302440=_0x5009fc,{memberID:_0x39d0b0}=_0x1c5361[_0x302440(0x363)],_0x589a83=this[_0x302440(0x114)];_0x589a83[_0x302440(0x184)](_0x39d0b0),this['_cursorInfo$'][_0x302440(0x1cf)](_0x589a83);}[_0x5009fc(0x446)](){const _0x573da5=_0x5009fc;var _0x4a4677;if(this['_online']=!0x0,((_0x4a4677=this[_0x573da5(0x250)]['getFocusedUnit']())==null?void 0x0:_0x4a4677[_0x573da5(0x147)]())!==this['unitID'])return;const _0x495ba8=this[_0x573da5(0x448)][_0x573da5(0x381)](_0x2af257)[_0x573da5(0x2a8)]();Array['isArray'](_0x495ba8)&&_0x495ba8[_0x573da5(0x21e)]>0x0&&this[_0x573da5(0x1c7)](_0x495ba8);}['_toggleOffline'](){this['_online']=!0x1;}};Ot=Ar([ie(0x2,_0x1f955f(_0x97bef)),ie(0x3,_0x1f955f(Gt)),ie(0x4,_0x1f955f(ce)),ie(0x5,_0x1f955f(Ft)),ie(0x6,_0x191396),ie(0x7,_0x2d78d8),ie(0x8,_0xfcd33f)],Ot);var jr=Object[_0x5009fc(0x235)],Hr=Object[_0x5009fc(0x327)],xr=(_0x388c7c,_0x398086,_0x7b4376,_0x239c5a)=>{const _0x3aa499=_0x5009fc;for(var _0x1da4c4=_0x239c5a>0x1?void 0x0:_0x239c5a?Hr(_0x398086,_0x7b4376):_0x398086,_0x3756fd=_0x388c7c[_0x3aa499(0x21e)]-0x1,_0x54c16a;_0x3756fd>=0x0;_0x3756fd--)(_0x54c16a=_0x388c7c[_0x3756fd])&&(_0x1da4c4=(_0x239c5a?_0x54c16a(_0x398086,_0x7b4376,_0x1da4c4):_0x54c16a(_0x1da4c4))||_0x1da4c4);return _0x239c5a&&_0x1da4c4&&jr(_0x398086,_0x7b4376,_0x1da4c4),_0x1da4c4;},fe=(_0x45087f,_0x437231)=>(_0x5e51db,_0x2a6be9)=>_0x437231(_0x5e51db,_0x2a6be9,_0x45087f);const kr=0x12c,Br=0x64,Vr=()=>{let _0x4a704c=[],_0x23786d=!0x1;return _0x352a3d=>{const _0x2cca17=_0x3280;_0x4a704c[_0x2cca17(0x152)](_0x352a3d),_0x23786d||(_0x23786d=!0x0,setTimeout(()=>{const _0x31bde2=_0x2cca17;_0x4a704c[_0x31bde2(0x1d4)](_0x1b6724=>_0x1b6724()),_0x4a704c=[],_0x23786d=!0x1;}));};};let Dt=class extends _0x5889a4{constructor(_0x14e974,_0x266b57,_0x237545,_0x1836ad,_0x440821,_0x21ad44,_0x456967,_0x9924d5){const _0x38d8c3=_0x5009fc;super(),l(this,'_online',!0x1),l(this,'_init',!0x1),l(this,_0x38d8c3(0x1c6),new _0x3a492f(new Map())),l(this,_0x38d8c3(0xde),this[_0x38d8c3(0x1c6)][_0x38d8c3(0x396)]()),l(this,_0x38d8c3(0x27f),new _0x3a492f([])),l(this,'roomMembers$',this[_0x38d8c3(0x27f)]['pipe'](_0x116225(kr))),l(this,_0x38d8c3(0x1c7),_0x8d4f93((_0x262342,_0x115b65)=>{const _0x227a23=_0x38d8c3,_0x199b9c={'eventID':_0x5bf9c6['UPDATE_CURSOR'],'data':{'unitID':this[_0x227a23(0x187)],'memberID':this[_0x227a23(0x28c)][_0x227a23(0x2ae)](),'selection':_0xfdce30(_0x262342,_0x115b65[_0x227a23(0x2ac)])}};this[_0x227a23(0x28c)]['send'](_0x199b9c,this['unitID']);},Br)),(this[_0x38d8c3(0x187)]=_0x14e974,this[_0x38d8c3(0x28c)]=_0x266b57,this[_0x38d8c3(0x448)]=_0x237545,this[_0x38d8c3(0x1e7)]=_0x1836ad,this['_memberService']=_0x440821,this[_0x38d8c3(0x250)]=_0x21ad44,this[_0x38d8c3(0x289)]=_0x456967,this[_0x38d8c3(0x39c)]=_0x9924d5);}get[_0x5009fc(0x114)](){const _0x175219=_0x5009fc;return this[_0x175219(0x1c6)][_0x175219(0x284)]();}get[_0x5009fc(0x350)](){const _0x50371a=_0x5009fc;return this[_0x50371a(0x27f)][_0x50371a(0x284)]();}['dispose'](){const _0x3e6acc=_0x5009fc;super['dispose'](),this[_0x3e6acc(0x1c6)][_0x3e6acc(0x1cf)](new Map()),this[_0x3e6acc(0x1c6)][_0x3e6acc(0x20d)](),this[_0x3e6acc(0x27f)]['next']([]),this['_roomMembers$'][_0x3e6acc(0x20d)]();}[_0x5009fc(0x3a7)](){const _0x4c28bc=_0x5009fc;this['_init']||(this[_0x4c28bc(0x2bf)]=!0x0,this[_0x4c28bc(0x28c)]['sessionStatus$'][_0x4c28bc(0x44f)](_0x810e9a(this[_0x4c28bc(0x35c)]))[_0x4c28bc(0x206)](_0x4cd5fc=>{const _0x1678e5=_0x4c28bc;_0x4cd5fc===Y['ONLINE']?this[_0x1678e5(0x446)]():this[_0x1678e5(0x135)]();}),this[_0x4c28bc(0x28c)]['event$'][_0x4c28bc(0x44f)](_0x810e9a(this['dispose$']))[_0x4c28bc(0x206)](_0x10c380=>{const _0x246554=_0x4c28bc,_0x5aba60=_0x10c380[_0x246554(0x299)];_0x5aba60===_0x5bf9c6[_0x246554(0x1c8)]&&this[_0x246554(0xf6)](_0x10c380),_0x5aba60===_0x5bf9c6['USERS_LEAVE']&&this[_0x246554(0x1b2)](_0x10c380);}),this[_0x4c28bc(0x16a)](),this['disposeWithMe'](this[_0x4c28bc(0x289)][_0x4c28bc(0x445)](_0x193f4b=>{const _0x27aaa2=_0x4c28bc;if(this[_0x27aaa2(0x180)]&&_0x193f4b['id']===_0xbeb346['id']&&_0x193f4b[_0x27aaa2(0x194)][_0x27aaa2(0x2d6)]===this[_0x27aaa2(0x187)]){const _0x3dc45d=_0x193f4b[_0x27aaa2(0x194)];this['_updateLocalCursor'](_0x3dc45d['subUnitId'],_0x3dc45d['selections'][0x0]);}})));}['_onCursorUpdate'](_0x33e1ed){const _0x24758a=_0x5009fc;var _0x24f87,_0x40fad1;const {memberID:_0x231b60,selection:_0x37824f}=_0x33e1ed[_0x24758a(0x363)],{sheetName:_0x460398,range:_0x554969}=_0x410864(_0x37824f),_0x25700f={'name':(_0x40fad1=(_0x24f87=this[_0x24758a(0x40a)][_0x24758a(0x248)](this[_0x24758a(0x187)],_0x231b60))==null?void 0x0:_0x24f87[_0x24758a(0x32e)])!=null?_0x40fad1:_0x24758a(0x1a9),'range':this[_0x24758a(0x265)](_0x460398,_0x554969),'sheetID':_0x460398,'color':this['_colorAssignService'][_0x24758a(0x3b3)](_0x231b60),'selection':_0x37824f},_0x1aaba4=this[_0x24758a(0x114)];_0x1aaba4[_0x24758a(0x411)](_0x231b60,_0x25700f),this[_0x24758a(0x1c6)][_0x24758a(0x1cf)](_0x1aaba4);}[_0x5009fc(0x1b2)](_0x5c1db4){const _0x3a84f6=_0x5009fc,{memberID:_0x120f4a}=_0x5c1db4[_0x3a84f6(0x363)],_0x46dee7=this[_0x3a84f6(0x114)];_0x46dee7[_0x3a84f6(0x184)](_0x120f4a),this[_0x3a84f6(0x1c6)][_0x3a84f6(0x1cf)](_0x46dee7);}[_0x5009fc(0x265)](_0xb43c3c,_0x531b4){const _0x236f69=_0x5009fc;var _0xc73cc7,_0x190a7b;const _0x2f2b3a=(_0x190a7b=(_0xc73cc7=this[_0x236f69(0x250)][_0x236f69(0x3cf)](this['unitID']))==null?void 0x0:_0xc73cc7['getSheetBySheetId'](_0xb43c3c))==null?void 0x0:_0x190a7b[_0x236f69(0x406)]();return(_0x2f2b3a==null?void 0x0:_0x2f2b3a[_0x236f69(0x261)](_0xade33e=>_0x3b84dd[_0x236f69(0x215)](_0xade33e,_0x531b4)))||_0x531b4;}[_0x5009fc(0x16a)](){const _0x5973a3=_0x5009fc,_0x35d4b3=new _0xa23355(),_0x22496d=Vr(),_0x1be77e=()=>{const _0x25b5ae=_0x3280;_0x35d4b3[_0x25b5ae(0x298)]();const _0x53c591=(_0x2f840b,_0x1e226d,_0x23a225,_0x289b97)=>{const _0x51e1ca=_0x25b5ae;let _0x250ac0=[];switch(_0x2f840b['id']){case _0x341f0b['DeleteRangeMoveLeftCommandId']:{_0x250ac0=_0x5eae21(_0x2f840b,_0x289b97);break;}case _0x341f0b['DeleteRangeMoveUpCommandId']:{_0x250ac0=_0x8f8669(_0x2f840b,_0x289b97);break;}case _0x341f0b[_0x51e1ca(0x2aa)]:{_0x250ac0=_0x16e24d(_0x2f840b,_0x289b97);break;}case _0x341f0b[_0x51e1ca(0x185)]:{_0x250ac0=_0xd00542(_0x2f840b,_0x289b97);break;}case _0x341f0b[_0x51e1ca(0x43f)]:{_0x250ac0=_0x16806d(_0x2f840b,_0x289b97);break;}case _0x341f0b['InsertRowCommandId']:{_0x250ac0=_0x1a55df(_0x2f840b,_0x289b97);break;}case _0x341f0b[_0x51e1ca(0x35a)]:{_0x250ac0=_0x39ef57(_0x2f840b,_0x289b97);break;}case _0x341f0b[_0x51e1ca(0x26c)]:{_0x250ac0=_0x2012a5(_0x2f840b,_0x289b97);break;}case _0x341f0b[_0x51e1ca(0xe8)]:{_0x250ac0=_0x1a7c1f(_0x2f840b,_0x289b97);break;}}const _0x531256=_0x43ad00(_0x250ac0,_0x289b97),_0xcb41e7=this[_0x51e1ca(0x114)][_0x51e1ca(0x381)](_0x1e226d);if(_0xcb41e7&&_0x531256){const _0xf77b4d={..._0xcb41e7,'range':_0x531256};this[_0x51e1ca(0x114)][_0x51e1ca(0x411)](_0x1e226d,_0xf77b4d),_0x22496d(()=>{const _0x243772=_0x51e1ca,_0x22765e=this[_0x243772(0x39c)]['registerRefRange'](_0x531256,_0xbeb1d4=>(_0x22765e[_0x243772(0x298)](),_0x53c591(_0xbeb1d4,_0x1e226d,_0x23a225,_0x531256)));_0x35d4b3[_0x243772(0x3ea)](_0x22765e);});}return{'redos':[],'undos':[]};};this[_0x25b5ae(0x114)][_0x25b5ae(0x1d4)]((_0x16ea0e,_0x46cb87)=>{const _0x2b332b=_0x25b5ae,{range:_0x5a439d,sheetID:_0x3310de}=_0x16ea0e,_0xd60787=this[_0x2b332b(0x39c)][_0x2b332b(0x2ee)](_0x5a439d,_0x21868e=>(_0xd60787['dispose'](),_0x53c591(_0x21868e,_0x46cb87,_0x3310de,_0x5a439d)));_0x35d4b3[_0x2b332b(0x3ea)](_0xd60787);});};this[_0x5973a3(0x341)](_0x2b2e4c(this[_0x5973a3(0x1c6)][_0x5973a3(0x206)](()=>{_0x1be77e();})));}[_0x5009fc(0x446)](){const _0x462b3f=_0x5009fc;var _0x1c4d12,_0x4731e8;if(this[_0x462b3f(0x180)]=!0x0,((_0x1c4d12=this[_0x462b3f(0x250)][_0x462b3f(0x10e)]())==null?void 0x0:_0x1c4d12[_0x462b3f(0x147)]())!==this['unitID'])return;const _0x191d36=(_0x4731e8=this['_injector'][_0x462b3f(0x381)](_0x5ced1d)[_0x462b3f(0x238)]())==null?void 0x0:_0x4731e8[0x0],_0x211b61=this[_0x462b3f(0x250)]['getCurrentUnitForType'](_0x53f477[_0x462b3f(0x33c)])[_0x462b3f(0x126)]();_0x191d36&&_0x211b61&&this[_0x462b3f(0x1c7)](_0x211b61[_0x462b3f(0x207)](),_0x191d36);}[_0x5009fc(0x135)](){this['_online']=!0x1;}};Dt=xr([fe(0x2,_0x1f955f(_0x97bef)),fe(0x3,_0x1f955f(Gt)),fe(0x4,_0x1f955f(ce)),fe(0x5,_0x2d78d8),fe(0x6,_0xfcd33f),fe(0x7,_0x1f955f(_0xfc322f))],Dt);var Fr=Object[_0x5009fc(0x235)],Wr=Object[_0x5009fc(0x327)],Gr=(_0x38075d,_0x527cd5,_0x3aeb44,_0x39d527)=>{const _0x3753ec=_0x5009fc;for(var _0x6be67d=_0x39d527>0x1?void 0x0:_0x39d527?Wr(_0x527cd5,_0x3aeb44):_0x527cd5,_0x4364e0=_0x38075d[_0x3753ec(0x21e)]-0x1,_0x4e7da3;_0x4364e0>=0x0;_0x4364e0--)(_0x4e7da3=_0x38075d[_0x4364e0])&&(_0x6be67d=(_0x39d527?_0x4e7da3(_0x527cd5,_0x3aeb44,_0x6be67d):_0x4e7da3(_0x6be67d))||_0x6be67d);return _0x39d527&&_0x6be67d&&Fr(_0x527cd5,_0x3aeb44,_0x6be67d),_0x6be67d;},ut=(_0x5b6004,_0x5129b4)=>(_0x421308,_0xd6d75c)=>_0x5129b4(_0x421308,_0xd6d75c,_0x5b6004);let ve=class extends _0x5889a4{constructor(_0x87e279,_0x4825a7,_0xb10ae5){const _0x17698e=_0x5009fc;super(),l(this,_0x17698e(0x1a5),new Map()),l(this,_0x17698e(0x3d7),new _0x379f4()),(this[_0x17698e(0x250)]=_0x87e279,this[_0x17698e(0x448)]=_0x4825a7,this[_0x17698e(0x314)]=_0xb10ae5,this[_0x17698e(0x2bf)]());}[_0x5009fc(0x298)](){const _0x4f945b=_0x5009fc;super[_0x4f945b(0x298)](),this[_0x4f945b(0x3d7)][_0x4f945b(0x20d)](),this[_0x4f945b(0x1a5)]['forEach'](_0x348982=>_0x348982[_0x4f945b(0x298)]());}[_0x5009fc(0x36a)](_0x4afaf8){const _0x4bde55=_0x5009fc;return this[_0x4bde55(0x1a5)][_0x4bde55(0x2b0)](_0x4afaf8)?this[_0x4bde55(0x1a5)][_0x4bde55(0x381)](_0x4afaf8)['cursorInfo$']:this[_0x4bde55(0x3d7)][_0x4bde55(0x44f)](_0x26b580(_0x339da8=>_0x339da8['unitID']===_0x4afaf8),_0xb54ee(_0x3f196d=>_0x3f196d[_0x4bde55(0xde)]));}[_0x5009fc(0x2bf)](){const _0x488213=_0x5009fc;this['_univerInstanceService'][_0x488213(0x39b)](_0x53f477['UNIVER_SHEET'])[_0x488213(0x44f)](_0x810e9a(this['dispose$']))[_0x488213(0x206)](async _0x9f7dc8=>{const _0x220cf3=_0x488213,_0x3be097=_0x9f7dc8[_0x220cf3(0x147)](),_0x102aad=await this[_0x220cf3(0x34d)](_0x3be097);this['_entityInit$'][_0x220cf3(0x1cf)](_0x102aad),this[_0x220cf3(0x1a5)][_0x220cf3(0x411)](_0x3be097,_0x102aad);}),this[_0x488213(0x250)][_0x488213(0x39b)](_0x53f477[_0x488213(0x36f)])[_0x488213(0x44f)](_0x810e9a(this['dispose$']))[_0x488213(0x44f)](_0x26b580(_0x1ba15d=>!_0x1ba15d[_0x488213(0x147)]()[_0x488213(0x2c3)]('__')))[_0x488213(0x206)](async _0x189e09=>{const _0x342dc2=_0x488213,_0x3c2e6a=_0x189e09[_0x342dc2(0x147)](),_0x419611=await this[_0x342dc2(0x391)](_0x3c2e6a);this[_0x342dc2(0x3d7)][_0x342dc2(0x1cf)](_0x419611),this['_entities'][_0x342dc2(0x411)](_0x3c2e6a,_0x419611);}),_0x370802(this[_0x488213(0x250)]['getTypeOfUnitDisposed$'](_0x53f477[_0x488213(0x36f)]),this[_0x488213(0x250)]['getTypeOfUnitDisposed$'](_0x53f477[_0x488213(0x33c)]))[_0x488213(0x44f)](_0x810e9a(this[_0x488213(0x35c)]))[_0x488213(0x206)](_0x4387f5=>{const _0x1ca6c2=_0x488213,_0x2814c5=_0x4387f5[_0x1ca6c2(0x147)](),_0x3d53af=this[_0x1ca6c2(0x1a5)][_0x1ca6c2(0x381)](_0x2814c5);_0x3d53af&&(_0x3d53af[_0x1ca6c2(0x298)](),this[_0x1ca6c2(0x1a5)][_0x1ca6c2(0x184)](_0x2814c5));});}async[_0x5009fc(0x34d)](_0x563f4e){const _0x2c439b=_0x5009fc,_0x3813cb=await this[_0x2c439b(0x314)][_0x2c439b(0x1fd)](_0x563f4e),_0x2adeac=this[_0x2c439b(0x448)]['createInstance'](Dt,_0x563f4e,_0x3813cb);return _0x2adeac[_0x2c439b(0x3a7)](),_0x2adeac;}async['_startDocCollabCursor'](_0x378923){const _0x31887f=_0x5009fc,_0x4c0584=await this['_collabSessionService'][_0x31887f(0x1fd)](_0x378923),_0x4ce4fa=this[_0x31887f(0x448)][_0x31887f(0x345)](Ot,_0x378923,_0x4c0584);return _0x4ce4fa[_0x31887f(0x3a7)](),_0x4ce4fa;}};ve=Gr([ut(0x0,_0x2d78d8),ut(0x1,_0x1f955f(_0x97bef)),ut(0x2,_0x1f955f(he))],ve);const $e=0x14,fs=0xc8,dt=0x4,Yr=0x5;function Kr(_0x495cd4,_0xecfb3f){const _0x44767b=_0x5009fc;let {radius:_0x3dd77b,width:_0x269268,height:_0x246963}=_0xecfb3f;_0x3dd77b=_0x3dd77b!=null?_0x3dd77b:0x0,_0x269268=_0x269268!=null?_0x269268:0x1e,_0x246963=_0x246963!=null?_0x246963:0x1e;let _0x5dd8b3=0x0,_0x3339bf=0x0,_0x4da87a=0x0;_0x5dd8b3=_0x3339bf=_0x4da87a=Math[_0x44767b(0x29d)](_0x3dd77b,_0x269268/0x2,_0x246963/0x2),_0x495cd4[_0x44767b(0x18a)](),_0x495cd4[_0x44767b(0x3cd)](_0x5dd8b3,0x0),_0x495cd4['lineTo'](_0x269268-_0x3339bf,0x0),_0x495cd4['arc'](_0x269268-_0x3339bf,_0x3339bf,_0x3339bf,Math['PI']*0x3/0x2,0x0,!0x1),_0x495cd4[_0x44767b(0x23c)](_0x269268,_0x246963-_0x4da87a),_0x495cd4[_0x44767b(0x41a)](_0x269268-_0x4da87a,_0x246963-_0x4da87a,_0x4da87a,0x0,Math['PI']/0x2,!0x1),_0x495cd4[_0x44767b(0x23c)](0x0,_0x246963),_0x495cd4[_0x44767b(0x23c)](0x0,_0x5dd8b3),_0x495cd4['arc'](_0x5dd8b3,_0x5dd8b3,_0x5dd8b3,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x495cd4[_0x44767b(0x431)](),_0xecfb3f['fill']&&(_0x495cd4[_0x44767b(0x13e)](),_0x495cd4[_0x44767b(0x1db)]=_0xecfb3f['fill'],_0xecfb3f[_0x44767b(0x3bf)]===_0x44767b(0x416)?_0x495cd4['fill'](_0x44767b(0x416)):_0x495cd4['fill'](),_0x495cd4[_0x44767b(0x17d)]());}class st extends _0x3656aa{constructor(_0x18cf53,_0x4467f2){const _0x515c97=_0x5009fc;super(_0x18cf53,_0x4467f2),l(this,_0x515c97(0x288)),l(this,_0x515c97(0x444)),(this['color']=_0x4467f2==null?void 0x0:_0x4467f2[_0x515c97(0x288)],this[_0x515c97(0x444)]=_0x4467f2==null?void 0x0:_0x4467f2[_0x515c97(0x444)]);}static['drawWith'](_0x4d4a3b,_0x569183){const _0x526364=_0x5009fc,{text:_0xe44ce6,color:_0x284bb2}=_0x569183;_0x4d4a3b[_0x526364(0x13e)](),_0x4d4a3b['font']=_0x526364(0x182);const _0x4b85b2=_0x4d4a3b[_0x526364(0x1ea)](_0xe44ce6)['width'],_0x48b063=Math['min'](_0x4b85b2+0x2*dt,fs);Kr(_0x4d4a3b,{'height':$e,'radius':0x4,'width':_0x48b063,'fill':_0x284bb2,'evented':!0x1}),_0x4d4a3b['fillStyle']=_0x526364(0x18b);const _0xa75771=dt,_0x4d43bf=$e-Yr,_0x1c1c3a=fs-0x2*dt;if(_0x4b85b2>_0x1c1c3a){let _0x4e1fe4='',_0x2b7052=0x0;for(const _0x1451d7 of _0xe44ce6){const _0x33db27=_0x4d4a3b[_0x526364(0x1ea)](_0x1451d7)[_0x526364(0x364)];if(_0x2b7052+_0x33db27<=_0x1c1c3a-_0x4d4a3b[_0x526364(0x1ea)](_0x526364(0x32c))[_0x526364(0x364)])_0x4e1fe4+=_0x1451d7,_0x2b7052+=_0x33db27;else{_0x4e1fe4+='...';break;}}_0x4d4a3b[_0x526364(0x15e)](_0x4e1fe4,_0xa75771,_0x4d43bf);}else _0x4d4a3b['fillText'](_0xe44ce6,_0xa75771,_0x4d43bf);_0x4d4a3b[_0x526364(0x17d)]();}[_0x5009fc(0x16f)](_0x18268c){const _0x4147fc=_0x5009fc;st[_0x4147fc(0x197)](_0x18268c,this);}}const mt='collab-text-anchor-',Xr=_0x5009fc(0x227),qr='collab-rect-range-',we=0x6,Jr=1.5,ft=0x4,zr=1.5,Zr=_0x5009fc(0x3f5);class gs{constructor(_0x4e1d36,_0x46eded,_0x1a3945,_0x1e1d4a){const _0x42bcca=_0x5009fc;l(this,_0x42bcca(0x407),[]),l(this,_0x42bcca(0x18c),null),l(this,_0x42bcca(0x43c),null),l(this,_0x42bcca(0x3e5),null),l(this,_0x42bcca(0x1c4),null),l(this,'_eventUnsubscribe',null),(this[_0x42bcca(0x344)]=_0x4e1d36,this[_0x42bcca(0x443)]=_0x46eded,this[_0x42bcca(0x136)]=_0x1a3945,this['_document']=_0x1e1d4a,this['_render']());}set[_0x5009fc(0x1d5)](_0x3aa7cd){const _0x43104a=_0x5009fc;_0x3aa7cd?(this[_0x43104a(0x3e5)]&&this[_0x43104a(0x3e5)][_0x43104a(0x239)](),this[_0x43104a(0x43c)]&&this[_0x43104a(0x43c)][_0x43104a(0xf7)]()):(this[_0x43104a(0x3e5)]&&this[_0x43104a(0x3e5)][_0x43104a(0xf7)](),this[_0x43104a(0x43c)]&&this[_0x43104a(0x43c)][_0x43104a(0x239)]());}[_0x5009fc(0x298)](){const _0x1208f6=_0x5009fc;for(const _0x332a43 of this[_0x1208f6(0x407)])_0x332a43['dispose']();this['_textBubble']&&this['_textBubble'][_0x1208f6(0x298)](),this[_0x1208f6(0x3e5)]&&this[_0x1208f6(0x3e5)]['dispose'](),this[_0x1208f6(0x18c)]&&this[_0x1208f6(0x18c)]['dispose'](),this[_0x1208f6(0x2e3)]&&this[_0x1208f6(0x2e3)]();}[_0x5009fc(0x2b5)](){const _0x365763=_0x5009fc;var _0x11284d;const {_docSkeleton:_0x9b27e3,_document:_0xdb22d3}=this,{color:_0xfb1b64,name:_0xc890c9,ranges:_0xa2ae96}=this[_0x365763(0x344)],_0x3e0ffa=_0xdb22d3['getOffsetConfig'](),{docsLeft:_0x33a50c,docsTop:_0x25a021}=_0x3e0ffa,_0x1eec66=new _0x438426(_0x3e0ffa,_0x9b27e3);for(const {startOffset:_0x4d5034,endOffset:_0x58242a,collapsed:_0x5a6291,isActive:_0x2d8778}of _0xa2ae96){const _0x56749d=_0x9b27e3['findNodePositionByCharIndex'](_0x4d5034),_0x4af884=_0x9b27e3[_0x365763(0x1a7)](_0x58242a);if(_0x2d8778){const {contentBoxPointGroup:_0x589a7b}=_0x1eec66[_0x365763(0x404)](_0x4af884,_0x4af884);if(_0x589a7b['length']===0x0)continue;this[_0x365763(0x294)](_0xfb1b64,_0x589a7b,_0x33a50c,_0x25a021,_0xc890c9),this[_0x365763(0x2e3)]=this[_0x365763(0x43d)]();}if(!_0x5a6291&&_0x56749d&&_0x4af884){if(_0xa20c(_0x56749d,_0x4af884)){const _0x2c88bc=new _0x20f37d(_0x3e0ffa,_0x9b27e3),{pointGroup:_0x13325b}=(_0x11284d=_0x2c88bc[_0x365763(0x404)](_0x56749d,_0x4af884))!=null?_0x11284d:{};if(_0x13325b==null||_0x13325b[_0x365763(0x21e)]===0x0)continue;this[_0x365763(0x276)](_0xfb1b64,_0x13325b,_0x33a50c,_0x25a021);}else{const {contentBoxPointGroup:_0x59ddc7}=_0x1eec66['getRangePointData'](_0x56749d,_0x4af884);if(_0x59ddc7[_0x365763(0x21e)]===0x0)continue;this[_0x365763(0x385)](_0xfb1b64,_0x59ddc7,_0x33a50c,_0x25a021);}}}}[_0x5009fc(0x294)](_0x19dc53,_0x262e90,_0x16ebbe,_0x4a045c,_0x2a9827){const _0x2b10e9=_0x5009fc,_0x1ce608=this[_0x2b10e9(0x3e2)](_0x262e90),{left:_0x37471b,top:_0x35ab54,height:_0x2f1747}=_0x1ce608,_0x232954=this[_0x2b10e9(0x42c)](),_0x4284be=zr/_0x232954,_0x23ce1c=new _0x574b0c(mt+_0x548d2b['generateRandomId'](we),{'left':_0x37471b+_0x16ebbe-_0x4284be,'top':_0x35ab54+_0x4a045c,'height':_0x2f1747,'width':Jr,'fill':_0x19dc53||_0x1aeb73(_0x4b7722['black'],0x0),'strokeWidth':_0x4284be,'stroke':Zr,'evented':!0x0});this[_0x2b10e9(0x18c)]=_0x23ce1c,this['_scene']['addObject'](_0x23ce1c,_0x3fab62);const _0xec9d57=new _0x574b0c(mt+_0x548d2b[_0x2b10e9(0x110)](we),{'left':_0x37471b+_0x16ebbe-_0x4284be,'top':_0x35ab54+_0x4a045c-ft/0x2,'height':ft,'width':ft,'fill':_0x19dc53||_0x1aeb73(_0x4b7722[_0x2b10e9(0x313)],0x0),'strokeWidth':0x0,'stroke':_0x19dc53||_0x1aeb73(_0x4b7722[_0x2b10e9(0x313)],0x0),'evented':!0x1});this[_0x2b10e9(0x3e5)]=_0xec9d57,this[_0x2b10e9(0x443)][_0x2b10e9(0x3a9)](_0xec9d57,_0x3fab62);const _0x547d06=new st(mt+_0x548d2b['generateRandomId'](we),{'left':_0x37471b+_0x16ebbe-_0x4284be,'top':_0x35ab54+_0x4a045c-$e,'text':_0x2a9827,'color':_0x19dc53});this[_0x2b10e9(0x43c)]=_0x547d06,this[_0x2b10e9(0x443)][_0x2b10e9(0x3a9)](_0x547d06,_0x3fab62),this[_0x2b10e9(0x1d5)]=!0x1;}[_0x5009fc(0x43d)](){const _0x1f9978=_0x5009fc,_0x59fd4c=this['_anchor'][_0x1f9978(0x216)][_0x1f9978(0x3ba)](()=>{const _0x27f167=_0x1f9978;this[_0x27f167(0x1d5)]=!0x0;}),_0x6a23a7=this['_anchor'][_0x1f9978(0x1e5)][_0x1f9978(0x3ba)](()=>{const _0x3009f3=_0x1f9978;this[_0x3009f3(0x1c4)]&&clearTimeout(this[_0x3009f3(0x1c4)]),this[_0x3009f3(0x1c4)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1dc558=_0x1f9978;_0x59fd4c[_0x1dc558(0x32a)](),_0x6a23a7['unsubscribe']();};}['_drawTextRange'](_0x419e83,_0x52eee8,_0x23a010,_0x82dc54){const _0x5eaa54=_0x5009fc,_0x4fd05f=new _0x9ea147(_0x419e83)[_0x5eaa54(0x171)](0.2)[_0x5eaa54(0x167)](),_0x30f4e8=new _0x465234(Xr+_0x548d2b[_0x5eaa54(0x110)](we),{'pointsGroup':_0x52eee8,'fill':_0x4fd05f||_0x1aeb73(_0x4b7722[_0x5eaa54(0x313)],0.2),'left':_0x23a010,'top':_0x82dc54,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x30f4e8),this[_0x5eaa54(0x443)][_0x5eaa54(0x3a9)](_0x30f4e8,_0x3fab62);}['_drawRectRange'](_0x256480,_0x3aef3a,_0x4f1beb,_0x4659bc){const _0x5c964b=_0x5009fc,_0x1c0b31=new _0x9ea147(_0x256480)['setAlpha'](0.2)[_0x5c964b(0x167)](),_0x3733a5=new _0x465234(qr+_0x548d2b['generateRandomId'](we),{'pointsGroup':_0x3aef3a,'fill':_0x1c0b31||_0x1aeb73(_0x4b7722[_0x5c964b(0x313)],0.2),'left':_0x4f1beb,'top':_0x4659bc,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5c964b(0x407)][_0x5c964b(0x152)](_0x3733a5),this[_0x5c964b(0x443)][_0x5c964b(0x3a9)](_0x3733a5,_0x3fab62);}[_0x5009fc(0x3e2)](_0x4432a5){const _0x54a766=_0x4432a5[0x0],_0x2ad17c=_0x54a766[0x0],_0x4404bd=_0x54a766[0x2],{x:_0x59a54e,y:_0x3e1e69}=_0x2ad17c,{x:_0x8e20c1,y:_0x37fcb2}=_0x4404bd;return{'left':_0x59a54e,'top':_0x3e1e69,'width':_0x8e20c1-_0x59a54e,'height':_0x37fcb2-_0x3e1e69};}[_0x5009fc(0x42c)](){const _0x166ddc=_0x5009fc,{scaleX:_0x3f5f21,scaleY:_0x5896a0}=this[_0x166ddc(0x443)]['getAncestorScale']();return Math['max'](_0x3f5f21,_0x5896a0);}}var Qr=Object[_0x5009fc(0x235)],eo=Object['getOwnPropertyDescriptor'],to=(_0x544392,_0x2deff3,_0x4c79c4,_0x4ba8b6)=>{const _0x1be6bb=_0x5009fc;for(var _0x3c1ace=_0x4ba8b6>0x1?void 0x0:_0x4ba8b6?eo(_0x2deff3,_0x4c79c4):_0x2deff3,_0x49b377=_0x544392[_0x1be6bb(0x21e)]-0x1,_0x3259ab;_0x49b377>=0x0;_0x49b377--)(_0x3259ab=_0x544392[_0x49b377])&&(_0x3c1ace=(_0x4ba8b6?_0x3259ab(_0x2deff3,_0x4c79c4,_0x3c1ace):_0x3259ab(_0x3c1ace))||_0x3c1ace);return _0x4ba8b6&&_0x3c1ace&&Qr(_0x2deff3,_0x4c79c4,_0x3c1ace),_0x3c1ace;},ke=(_0x3be081,_0x2d3eb5)=>(_0x494a53,_0x5044f6)=>_0x2d3eb5(_0x494a53,_0x5044f6,_0x3be081);let wt=class extends _0x5889a4{constructor(_0x380c4d,_0x50b4ab,_0x3a7726,_0x440cb0,_0x251a9a){const _0x365c37=_0x5009fc;super(),l(this,'_cursorShapes',[]),l(this,_0x365c37(0x34e),[]),(this[_0x365c37(0x3e0)]=_0x380c4d,this[_0x365c37(0x195)]=_0x50b4ab,this['_collabCursorController']=_0x3a7726,this[_0x365c37(0x289)]=_0x440cb0,this[_0x365c37(0x40b)]=_0x251a9a,this[_0x365c37(0x2bf)]());}[_0x5009fc(0x2bf)](){const _0x29bd16=_0x5009fc,_0x3bc2ef=this['_context'][_0x29bd16(0x2d6)],_0x3341cf=this[_0x29bd16(0x195)];this[_0x29bd16(0x341)](_0x1c0847([this[_0x29bd16(0x2de)]['getCollabCursors$'](_0x3bc2ef),this['_themeService'][_0x29bd16(0x3a2)]])[_0x29bd16(0x44f)](_0x13fcf1(([_0x3cde8d,_0x5669d6])=>({'skeleton':_0x3341cf['getSkeleton'](),'cursors':[..._0x3cde8d['values']()]['flatMap'](_0x2f9ee4=>({..._0x2f9ee4,'color':_0x5669d6[_0x2f9ee4['color']]}))})))[_0x29bd16(0x206)](_0x2f249b=>{const _0x5f0e05=_0x29bd16;if(this['_removeCollabCursors'](),_0x2f249b){const {skeleton:_0x345189,cursors:_0x3cdc2e}=_0x2f249b;this[_0x5f0e05(0x369)](_0x345189,_0x3cdc2e);}})),this[_0x29bd16(0x142)](),this[_0x29bd16(0x2d5)]();}[_0x5009fc(0x369)](_0x462a0c,_0x1c8e16){const _0x1ceae7=_0x5009fc,{scene:_0x46fc79,mainComponent:_0x1d84a2}=this[_0x1ceae7(0x3e0)],_0x46ca0f=_0x1c8e16[_0x1ceae7(0x1f8)](_0xeeaee8=>new gs(_0xeeaee8,_0x46fc79,_0x462a0c,_0x1d84a2));this[_0x1ceae7(0x24c)]=_0x46ca0f,this['_cursors']=_0x1c8e16;}['_refreshCollabCursors'](){const _0x16548b=_0x5009fc;this[_0x16548b(0x336)]();const {scene:_0x588538,mainComponent:_0x27db59}=this[_0x16548b(0x3e0)],_0x77feb1=this[_0x16548b(0x195)][_0x16548b(0x32b)](),_0x13726f=this[_0x16548b(0x34e)][_0x16548b(0x1f8)](_0x34eacc=>new gs(_0x34eacc,_0x588538,_0x77feb1,_0x27db59));this[_0x16548b(0x24c)]=_0x13726f;}[_0x5009fc(0x336)](){const _0x4b6324=_0x5009fc;this[_0x4b6324(0x24c)]['forEach'](_0x4a5858=>_0x4a5858[_0x4b6324(0x298)]()),this[_0x4b6324(0x24c)]=[];}['_initCommandExecutedListener'](){const _0x4530c2=_0x5009fc,_0x17b6df=[_0x48d2e7['id']];this[_0x4530c2(0x341)](this[_0x4530c2(0x289)][_0x4530c2(0x445)](_0x4236b2=>{const _0x136e83=_0x4530c2;_0x17b6df[_0x136e83(0x124)](_0x4236b2['id'])&&_0x4236b2[_0x136e83(0x194)][_0x136e83(0x2d6)]===this[_0x136e83(0x3e0)][_0x136e83(0x2d6)]&&this[_0x136e83(0x175)]();}));}[_0x5009fc(0x142)](){const _0x4aa8fa=_0x5009fc;this['disposeWithMe'](_0x482453(this[_0x4aa8fa(0x3e0)]['engine'][_0x4aa8fa(0x352)])[_0x4aa8fa(0x44f)](_0x5d3bcc(_0x2770ff=>_0x2770ff[_0x4aa8fa(0x1f3)]===_0x3d48ac[_0x4aa8fa(0x249)]),_0x4bca90(0x10))['subscribe'](()=>{const _0x2a7ec4=_0x4aa8fa;this[_0x2a7ec4(0x175)]();}));}};wt=to([ke(0x1,_0x1f955f(_0x4ef7b1)),ke(0x2,_0x1f955f(ve)),ke(0x3,_0xfcd33f),ke(0x4,_0x1f955f(_0x5d658e))],wt);const so=0x1,io=1.5;class no extends _0x3656aa{constructor(_0x2156db,_0x4945cb){const _0x388915=_0x5009fc;super(_0x2156db,_0x4945cb),l(this,'_color'),l(this,_0x388915(0xd6),!0x1),l(this,_0x388915(0x186)),l(this,_0x388915(0x1ae),''),l(this,'_labelPosition',_0x388915(0x10d)),l(this,_0x388915(0x214)),(_0x4945cb&&this[_0x388915(0x231)](_0x4945cb),this[_0x388915(0x216)][_0x388915(0x3ba)](()=>this[_0x388915(0x231)]({'hovered':!0x0})),this[_0x388915(0x1e5)][_0x388915(0x3ba)](()=>this[_0x388915(0x231)]({'hovered':!0x1})));}[_0x5009fc(0x231)](_0x358f46){const _0x374c6f=_0x5009fc;var _0x1b33de,_0x47505b,_0x4f4989,_0x537dbe,_0x314880,_0x5badc8;this['_color']=(_0x1b33de=_0x358f46[_0x374c6f(0x288)])!=null?_0x1b33de:this['_color'],this[_0x374c6f(0xd6)]=(_0x47505b=_0x358f46[_0x374c6f(0x10b)])!=null?_0x47505b:this['_hovered'],this[_0x374c6f(0x186)]=(_0x4f4989=_0x358f46[_0x374c6f(0x2ac)])!=null?_0x4f4989:this[_0x374c6f(0x186)],this[_0x374c6f(0x1ae)]=(_0x537dbe=_0x358f46['name'])!=null?_0x537dbe:this[_0x374c6f(0x1ae)],this[_0x374c6f(0x144)]=(_0x314880=_0x358f46[_0x374c6f(0x340)])!=null?_0x314880:this[_0x374c6f(0x144)],this[_0x374c6f(0x214)]=(_0x5badc8=_0x358f46['backgroundColor'])!=null?_0x5badc8:this[_0x374c6f(0x214)],this[_0x374c6f(0x202)]({'width':_0x358f46[_0x374c6f(0x364)],'height':_0x358f46[_0x374c6f(0x133)]});}[_0x5009fc(0x424)](_0x12ac1e){const _0x1f2036=_0x5009fc,{row:_0x28bc70,column:_0x1ede2f}=_0x12ac1e;if(_0x28bc70>=this[_0x1f2036(0x186)][_0x1f2036(0x25b)]&&_0x28bc70<=this[_0x1f2036(0x186)]['endRow']&&_0x1ede2f>=this['_range'][_0x1f2036(0x2fe)]&&_0x1ede2f<=this[_0x1f2036(0x186)][_0x1f2036(0x374)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x1f2036(0x231)]({'hovered':!0x1});}[_0x5009fc(0x143)](_0x2a5f00){return!0x1;}[_0x5009fc(0x16f)](_0x1a998a){const _0x6af0bd=_0x5009fc;_0x574b0c[_0x6af0bd(0x197)](_0x1a998a,{'width':this[_0x6af0bd(0x364)],'height':this[_0x6af0bd(0x133)],'strokeWidth':io,'stroke':this[_0x6af0bd(0x18e)],'evented':!0x1,'fill':this[_0x6af0bd(0x214)]}),this[_0x6af0bd(0xd6)]&&(_0x1a998a['save'](),_0x1a998a[_0x6af0bd(0x1e8)](0x1,0x0,0x0,0x1,this[_0x6af0bd(0x364)],this[_0x6af0bd(0x144)]==='bottom'?0x0:-$e),st[_0x6af0bd(0x197)](_0x1a998a,{'text':this[_0x6af0bd(0x1ae)],'color':this[_0x6af0bd(0x18e)]}),_0x1a998a['restore']());}}var ro=Object[_0x5009fc(0x235)],oo=Object[_0x5009fc(0x327)],ao=(_0x43b64c,_0x1029d4,_0x55035e,_0x2b3122)=>{const _0x2c54a1=_0x5009fc;for(var _0x5c5af6=_0x2b3122>0x1?void 0x0:_0x2b3122?oo(_0x1029d4,_0x55035e):_0x1029d4,_0x3f9eeb=_0x43b64c[_0x2c54a1(0x21e)]-0x1,_0x2a55da;_0x3f9eeb>=0x0;_0x3f9eeb--)(_0x2a55da=_0x43b64c[_0x3f9eeb])&&(_0x5c5af6=(_0x2b3122?_0x2a55da(_0x1029d4,_0x55035e,_0x5c5af6):_0x2a55da(_0x5c5af6))||_0x5c5af6);return _0x2b3122&&_0x5c5af6&&ro(_0x1029d4,_0x55035e,_0x5c5af6),_0x5c5af6;},gt=(_0x25b447,_0xfbb11b)=>(_0x323042,_0x315826)=>_0xfbb11b(_0x323042,_0x315826,_0x25b447);const co=0x1389;let Pt=class extends _0x5889a4{constructor(_0x137c13,_0x2cc8d5,_0x3fc860,_0x24a992){const _0x3db3d6=_0x5009fc;super(),l(this,_0x3db3d6(0x34e),new Set()),l(this,_0x3db3d6(0x2f6),null),(this['_context']=_0x137c13,this['_sheetSkeletonManagerService']=_0x2cc8d5,this[_0x3db3d6(0x2de)]=_0x3fc860,this['_themeService']=_0x24a992,this['_init']());}[_0x5009fc(0x2bf)](){const _0x3618e1=_0x5009fc;this[_0x3618e1(0x1ee)][_0x3618e1(0x323)]['pipe'](_0x22831a(this['dispose$']),_0x1b8752(_0x19e408=>{const _0x2ba278=_0x3618e1;if(_0x19e408){const _0x1606ac=_0x19e408['sheetId'];return _0x1c0847(this['_collabCursorController'][_0x2ba278(0x36a)](this[_0x2ba278(0x3e0)]['unitId']),this[_0x2ba278(0x40b)][_0x2ba278(0x3a2)])[_0x2ba278(0x44f)](_0x13fcf1(([_0x5ce36f,_0x3111b4])=>{const _0x14f44b=_0x2ba278,_0x399bf1=new Map();return _0x5ce36f[_0x14f44b(0x1d4)]((_0x39a209,_0x229791)=>{const _0x539025=_0x14f44b;if(_0x39a209[_0x539025(0x11f)]===_0x1606ac){const _0x2ff43e={..._0x39a209};_0x2ff43e['color']=_0x3111b4[_0x39a209[_0x539025(0x288)]],_0x399bf1[_0x539025(0x411)](_0x229791,_0x2ff43e);}}),{'skeleton':_0x19e408,'cursors':_0x399bf1};}));}return _0x347b80({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x37cac6,cursors:_0xc05848})=>{const _0x15e44e=_0x3618e1;this[_0x15e44e(0x336)](),_0x37cac6&&this[_0x15e44e(0x369)](_0x37cac6,_0xc05848);}),this[_0x3618e1(0x1ee)][_0x3618e1(0x323)][_0x3618e1(0x206)](_0x2e54fe=>{const _0x2d4e99=_0x3618e1;if(_0x2e54fe==null)return;const {skeleton:_0x3a76ae}=_0x2e54fe,{scene:_0x4e7b97}=this['_context'];_0x4e7b97['onPointerMove$'][_0x2d4e99(0x3ba)](_0x8d4f93(_0x44b373=>{const _0x16426d=_0x2d4e99;var _0x1b07ed,_0x2d84e8;const {offsetX:_0x1f9347,offsetY:_0x4a7bf2}=_0x44b373,{x:_0x139160,y:_0x1caa6d}=_0x4e7b97['getRelativeToViewportCoord'](_0x240869['FromArray']([_0x1f9347,_0x4a7bf2])),{scaleX:_0x24f299,scaleY:_0x958679}=_0x4e7b97[_0x16426d(0x1fa)](),_0x13ae34=_0x4e7b97[_0x16426d(0xd4)](_0x3cbf38['VIEW_MAIN']),_0x408d1e=_0x4e7b97[_0x16426d(0x2f0)](_0x240869['FromArray']([_0x139160,_0x1caa6d]),_0x13ae34),_0x2d899f=_0x3a76ae['getCellPositionByOffset'](_0x1f9347,_0x4a7bf2,_0x24f299,_0x958679,_0x408d1e);((_0x1b07ed=this[_0x16426d(0x2f6)])==null?void 0x0:_0x1b07ed[_0x16426d(0x38c)])===_0x2d899f['column']&&((_0x2d84e8=this[_0x16426d(0x2f6)])==null?void 0x0:_0x2d84e8[_0x16426d(0xd5)])===_0x2d899f['row']||this[_0x16426d(0x34e)]['forEach'](_0x2dffde=>{const _0x4379b6=_0x16426d;_0x2dffde[_0x4379b6(0x424)](_0x2d899f);});},0x64));});}[_0x5009fc(0x369)](_0x14291d,_0x19797d){const _0x3b32c0=_0x5009fc;var _0x1ba430;const _0x471b4=(_0x1ba430=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x1ba430[_0x3b32c0(0x228)];if(!_0x471b4)return;const _0x3b0ace=this[_0x3b32c0(0x1e1)]();if(!_0x3b0ace)return;this['_cursors'][_0x3b32c0(0x1d4)](_0x239023=>{_0x239023['makeDirty']();});const {scene:_0x461783}=_0x3b0ace,_0x1ec2c5=ho(Array[_0x3b32c0(0x287)](_0x19797d[_0x3b32c0(0x31c)]()))[_0x3b32c0(0x1f8)](_0x4e6325=>{const _0x59bb17=_0x3b32c0,{color:_0x4ef159,range:_0x375c69,name:_0x310888,selection:_0x30f1a7,sheetID:_0x2059ee}=_0x4e6325,{startColumn:_0x555d13,startRow:_0x7e4e00,endColumn:_0x37284b,endRow:_0x2bc7e3}=_0x375c69,_0x10d192=_0x5b4d99(_0x7e4e00,_0x555d13,_0x461783,_0x471b4),_0x1d0d71=_0x5b4d99(_0x2bc7e3,_0x37284b,_0x461783,_0x471b4),{columnHeaderHeightAndMarginTop:_0x302315}=_0x471b4,{startX:_0xdc81ac,startY:_0x239223}=_0x10d192,{endX:_0x7fc75e,endY:_0x428af8}=_0x1d0d71,_0x262575=_0x7fc75e-_0xdc81ac,_0x908462=_0x428af8-_0x239223,_0x48c8e1={'labelPosition':_0x239223-_0x302315>=$e?_0x59bb17(0x10d):_0x59bb17(0x44b),'sheetID':_0x2059ee,'range':_0x375c69,'color':_0x4ef159,'name':_0x310888,'selection':_0x30f1a7,'left':_0xdc81ac,'top':_0x239223,'width':_0x262575,'height':_0x908462,'evented':!0x1,'zIndex':co};return new no(_0x310888,_0x48c8e1);});_0x461783[_0x3b32c0(0x193)](_0x1ec2c5,so),this[_0x3b32c0(0x34e)]=new Set(_0x1ec2c5);}[_0x5009fc(0x336)](){const _0x11115d=_0x5009fc;var _0x4f3421;(_0x4f3421=this[_0x11115d(0x34e)])==null||_0x4f3421[_0x11115d(0x1d4)](_0x1aa528=>_0x1aa528[_0x11115d(0x298)]());}[_0x5009fc(0x1e1)](){const _0x346d99=_0x5009fc;return _0x1d7703(this['_context'][_0x346d99(0x20c)],this[_0x346d99(0x3e0)]);}};Pt=ao([gt(0x1,_0x1f955f(_0x5e78a)),gt(0x2,_0x1f955f(ve)),gt(0x3,_0x1f955f(_0x5d658e))],Pt);function ho(_0x174769){const _0x771b7a=_0x5009fc,_0x19534b=new Map();return _0x174769[_0x771b7a(0x1d4)](_0x4f3321=>{const _0xdfec7a=_0x771b7a;if(_0x19534b[_0xdfec7a(0x2b0)](_0x4f3321[_0xdfec7a(0x27e)])){const _0x5332fb=_0x19534b[_0xdfec7a(0x381)](_0x4f3321['selection']);_0x5332fb[_0xdfec7a(0x32e)]+=',\x20'+_0x4f3321[_0xdfec7a(0x32e)];}else _0x19534b['set'](_0x4f3321[_0xdfec7a(0x27e)],_0x4f3321);}),Array[_0x771b7a(0x287)](_0x19534b[_0x771b7a(0x31c)]());}var N=function(){const _0x163dc6=_0x5009fc;return N=Object['assign']||function(_0x1b5b60){const _0x706815=_0x3280;for(var _0xfab839,_0x28c850=0x1,_0x4ba0fb=arguments[_0x706815(0x21e)];_0x28c850<_0x4ba0fb;_0x28c850++){_0xfab839=arguments[_0x28c850];for(var _0x3f3e2c in _0xfab839)Object[_0x706815(0x3de)][_0x706815(0x2e9)][_0x706815(0x3e6)](_0xfab839,_0x3f3e2c)&&(_0x1b5b60[_0x3f3e2c]=_0xfab839[_0x3f3e2c]);}return _0x1b5b60;},N[_0x163dc6(0x269)](this,arguments);},lo=function(_0x4204a9,_0x30d133){const _0xddc948=_0x5009fc;var _0x486e3f={};for(var _0x1a3625 in _0x4204a9)Object[_0xddc948(0x3de)][_0xddc948(0x2e9)][_0xddc948(0x3e6)](_0x4204a9,_0x1a3625)&&_0x30d133[_0xddc948(0x15c)](_0x1a3625)<0x0&&(_0x486e3f[_0x1a3625]=_0x4204a9[_0x1a3625]);if(_0x4204a9!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x48a647=0x0,_0x1a3625=Object[_0xddc948(0x2b2)](_0x4204a9);_0x48a647<_0x1a3625[_0xddc948(0x21e)];_0x48a647++)_0x30d133[_0xddc948(0x15c)](_0x1a3625[_0x48a647])<0x0&&Object['prototype'][_0xddc948(0x3c6)]['call'](_0x4204a9,_0x1a3625[_0x48a647])&&(_0x486e3f[_0x1a3625[_0x48a647]]=_0x4204a9[_0x1a3625[_0x48a647]]);}return _0x486e3f;},Yt=_0x4b042d(function(_0x1965b4,_0x22eafe){const _0x694480=_0x5009fc;var _0x4b6086=_0x1965b4[_0x694480(0xfd)],_0x3284de=_0x1965b4['id'],_0x593959=_0x1965b4[_0x694480(0x266)],_0x55717c=_0x1965b4['extend'],_0x29a457=lo(_0x1965b4,[_0x694480(0xfd),'id','className',_0x694480(0xe0)]),_0x7858d8='univerjs-icon\x20univerjs-icon-'[_0x694480(0x386)](_0x3284de,'\x20')[_0x694480(0x386)](_0x593959||'')['trim'](),_0x4e52ef=_0x12589b('_'[_0x694480(0x386)](mo()));return Xs(_0x4b6086,''['concat'](_0x3284de),{'defIds':_0x4b6086[_0x694480(0x127)],'idSuffix':_0x4e52ef[_0x694480(0x2f9)]},N({'ref':_0x22eafe,'className':_0x7858d8},_0x29a457),_0x55717c);});function Xs(_0x217ef3,_0x55d23f,_0x5338a9,_0x1f1e72,_0x27916b){const _0x30e2e7=_0x5009fc;return _0x5d5c63(_0x217ef3[_0x30e2e7(0x312)],N(N({'key':_0x55d23f},_o(_0x217ef3,_0x5338a9,_0x27916b)),_0x1f1e72),(uo(_0x217ef3,_0x5338a9)[_0x30e2e7(0x440)]||[])[_0x30e2e7(0x1f8)](function(_0x188afd,_0x2482d8){const _0x14e89b=_0x30e2e7;return Xs(_0x188afd,''[_0x14e89b(0x386)](_0x55d23f,'-')[_0x14e89b(0x386)](_0x217ef3['tag'],'-')[_0x14e89b(0x386)](_0x2482d8),_0x5338a9,void 0x0,_0x27916b);}));}function _o(_0x45044d,_0x25f652,_0x2e3420){const _0x239252=_0x5009fc;var _0x512a88=N({},_0x45044d[_0x239252(0x2be)]);_0x2e3420!=null&&_0x2e3420[_0x239252(0xf3)]&&_0x512a88[_0x239252(0x271)]===_0x239252(0xf3)&&(_0x512a88[_0x239252(0x271)]=_0x2e3420[_0x239252(0xf3)]);var _0x34b802=_0x25f652[_0x239252(0x127)];return!_0x34b802||_0x34b802[_0x239252(0x21e)]===0x0||(_0x45044d['tag']==='use'&&_0x512a88['xlink:href']&&(_0x512a88[_0x239252(0x3ce)]=_0x512a88[_0x239252(0x3ce)]+_0x25f652[_0x239252(0x154)]),Object[_0x239252(0x2b1)](_0x512a88)[_0x239252(0x1d4)](function(_0x3189c3){const _0x5cfd8a=_0x239252;var _0x2e9f62=_0x3189c3[0x0],_0x5bb7fc=_0x3189c3[0x1];typeof _0x5bb7fc==_0x5cfd8a(0x316)&&(_0x512a88[_0x2e9f62]=_0x5bb7fc[_0x5cfd8a(0x35d)](/url\(#(.*)\)/,_0x5cfd8a(0x409)[_0x5cfd8a(0x386)](_0x25f652[_0x5cfd8a(0x154)],')')));})),_0x512a88;}function uo(_0x4f8caa,_0x1bee9b){const _0x879fc2=_0x5009fc;var _0x18b254,_0x17357d=_0x1bee9b[_0x879fc2(0x127)];return!_0x17357d||_0x17357d[_0x879fc2(0x21e)]===0x0?_0x4f8caa:_0x4f8caa[_0x879fc2(0x312)]===_0x879fc2(0x1cd)&&(!((_0x18b254=_0x4f8caa[_0x879fc2(0x440)])===null||_0x18b254===void 0x0)&&_0x18b254[_0x879fc2(0x21e)])?N(N({},_0x4f8caa),{'children':_0x4f8caa[_0x879fc2(0x440)][_0x879fc2(0x1f8)](function(_0xdc617a){const _0x591a9f=_0x879fc2;return typeof _0xdc617a[_0x591a9f(0x2be)]['id']==_0x591a9f(0x316)&&_0x17357d&&_0x17357d['indexOf'](_0xdc617a['attrs']['id'])>-0x1?N(N({},_0xdc617a),{'attrs':N(N({},_0xdc617a[_0x591a9f(0x2be)]),{'id':_0xdc617a[_0x591a9f(0x2be)]['id']+_0x1bee9b[_0x591a9f(0x154)]})}):_0xdc617a;})}):_0x4f8caa;}function mo(){const _0x2e8b91=_0x5009fc;return Math[_0x2e8b91(0x161)]()[_0x2e8b91(0x449)](0x24)[_0x2e8b91(0x100)](0x2,0x8);}Yt[_0x5009fc(0x16b)]=_0x5009fc(0x425);var fo={'tag':_0x5009fc(0xf5),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x5009fc(0x134),'height':_0x5009fc(0x134)},'children':[{'tag':'g','attrs':{'clipPath':_0x5009fc(0x258)},'children':[{'tag':_0x5009fc(0x3c8),'attrs':{'stroke':_0x5009fc(0x14f),'d':_0x5009fc(0x1f2),'strokeLinecap':_0x5009fc(0x38f),'strokeLinejoin':_0x5009fc(0x38f),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5009fc(0x349),'attrs':{'id':_0x5009fc(0x44c)},'children':[{'tag':_0x5009fc(0x3c8),'attrs':{'fill':_0x5009fc(0x157),'d':_0x5009fc(0x3f6)}}]}]}],'defIds':[_0x5009fc(0x44c)]},qs=_0x4b042d(function(_0x10fe93,_0x13b4be){const _0x291789=_0x5009fc;return _0x5d5c63(Yt,Object[_0x291789(0x17f)]({},_0x10fe93,{'id':_0x291789(0x128),'ref':_0x13b4be,'icon':fo}));});qs[_0x5009fc(0x16b)]=_0x5009fc(0x169);var go={'tag':_0x5009fc(0xf5),'attrs':{'fill':_0x5009fc(0x11b),'viewBox':_0x5009fc(0x395),'width':_0x5009fc(0x134),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x5009fc(0x24f)},'children':[{'tag':_0x5009fc(0x3c8),'attrs':{'stroke':_0x5009fc(0x14f),'d':_0x5009fc(0x22b),'strokeLinecap':_0x5009fc(0x38f),'strokeLinejoin':_0x5009fc(0x38f),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5009fc(0x384)},'children':[{'tag':_0x5009fc(0x3c8),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x5009fc(0x384)]},Js=_0x4b042d(function(_0x45f2a6,_0x1938f1){const _0x1085bc=_0x5009fc;return _0x5d5c63(Yt,Object[_0x1085bc(0x17f)]({},_0x45f2a6,{'id':_0x1085bc(0x3fe),'ref':_0x1938f1,'icon':go}));});Js[_0x5009fc(0x16b)]=_0x5009fc(0x2a0);function zs(_0x1c81de){const _0x4ee7e5=_0x5009fc;var _0x2361d3,_0x15b939,_0x7ea7b='';if(typeof _0x1c81de==_0x4ee7e5(0x316)||typeof _0x1c81de==_0x4ee7e5(0xeb))_0x7ea7b+=_0x1c81de;else{if(typeof _0x1c81de==_0x4ee7e5(0x439)){if(Array[_0x4ee7e5(0x31b)](_0x1c81de)){var _0x1fd1a3=_0x1c81de[_0x4ee7e5(0x21e)];for(_0x2361d3=0x0;_0x2361d3<_0x1fd1a3;_0x2361d3++)_0x1c81de[_0x2361d3]&&(_0x15b939=zs(_0x1c81de[_0x2361d3]))&&(_0x7ea7b&&(_0x7ea7b+='\x20'),_0x7ea7b+=_0x15b939);}else{for(_0x15b939 in _0x1c81de)_0x1c81de[_0x15b939]&&(_0x7ea7b&&(_0x7ea7b+='\x20'),_0x7ea7b+=_0x15b939);}}}return _0x7ea7b;}function So(){const _0x69f7a5=_0x5009fc;for(var _0x55d9db,_0x3097af,_0x52ef67=0x0,_0x2771c1='',_0x50a369=arguments[_0x69f7a5(0x21e)];_0x52ef67<_0x50a369;_0x52ef67++)(_0x55d9db=arguments[_0x52ef67])&&(_0x3097af=zs(_0x55d9db))&&(_0x2771c1&&(_0x2771c1+='\x20'),_0x2771c1+=_0x3097af);return _0x2771c1;}const po=_0x5009fc(0x28b),vo=_0x5009fc(0x426),Io=_0x5009fc(0x1b5),Eo=_0x5009fc(0x43b),Co='univer-offline',Pe={'onlineStatusIcon':po,'onlineStatusTitle':vo,'onlineStatus':Io,'online':Eo,'offline':Co};function bo(_0x42556b){const _0x5cd4c5=_0x5009fc;switch(_0x42556b){case P[_0x5cd4c5(0x29e)]:return _0x5cd4c5(0x2c6);case P[_0x5cd4c5(0x2b3)]:return _0x5cd4c5(0x36c);case P[_0x5cd4c5(0x2b8)]:return'collabStatus.fetchMiss';case P[_0x5cd4c5(0x29b)]:return _0x5cd4c5(0x16e);case P['AWAITING']:case P[_0x5cd4c5(0x179)]:return'collabStatus.syncing';case P[_0x5cd4c5(0x1e9)]:case P['PENDING']:return _0x5cd4c5(0x162);}}function To(_0x3a83a7){const _0x231a4a=_0x5009fc,{status$:_0x5b7897}=_0x3a83a7,_0x403cbc=_0x39332a(_0x5b7897,P[_0x231a4a(0x29b)]),_0x272145=_0x209420(_0x371029),_0x3e6419=_0x209420(he),_0x35b8a1=_0x403cbc!==P[_0x231a4a(0x29e)],_0x3653b3=_0x272145['t'](bo(_0x403cbc)),_0x486d51=So(Pe[_0x231a4a(0x3a5)],{[Pe['online']]:_0x35b8a1,[Pe[_0x231a4a(0x170)]]:!_0x35b8a1}),_0x264726=_0x35b8a1?_0xcdebad[_0x231a4a(0x377)](Js,null):_0xcdebad[_0x231a4a(0x377)](qs,null),_0x4268d6=_0x15171f(()=>{const _0x2da216=_0x231a4a;_0x35b8a1||_0x3e6419[_0x2da216(0xf4)]();},[_0x35b8a1,_0x3e6419]);function _0x499f82(){const _0x21c79e=_0x231a4a;return _0xcdebad[_0x21c79e(0x377)](_0x21c79e(0x1a4),{'className':_0x486d51,'onClick':_0x4268d6},_0xcdebad[_0x21c79e(0x377)](_0x21c79e(0x1a4),{'className':Pe[_0x21c79e(0x285)]},_0x264726),_0xcdebad['createElement']('div',{'className':Pe[_0x21c79e(0x3ff)]},_0x3653b3));}return _0x35b8a1?_0x499f82():_0xcdebad[_0x231a4a(0x377)](_0x88e8b3,{'title':_0x272145['t'](_0x231a4a(0x1fc))},_0x499f82());}var Ro=Object['defineProperty'],Oo=Object[_0x5009fc(0x327)],Do=(_0x4d072e,_0x3f829b,_0x1a29ed,_0x14fb12)=>{const _0x1e72ea=_0x5009fc;for(var _0x39d0d3=_0x14fb12>0x1?void 0x0:_0x14fb12?Oo(_0x3f829b,_0x1a29ed):_0x3f829b,_0x322301=_0x4d072e[_0x1e72ea(0x21e)]-0x1,_0x2d3a7f;_0x322301>=0x0;_0x322301--)(_0x2d3a7f=_0x4d072e[_0x322301])&&(_0x39d0d3=(_0x14fb12?_0x2d3a7f(_0x3f829b,_0x1a29ed,_0x39d0d3):_0x2d3a7f(_0x39d0d3))||_0x39d0d3);return _0x14fb12&&_0x39d0d3&&Ro(_0x3f829b,_0x1a29ed,_0x39d0d3),_0x39d0d3;},Be=(_0x2cff1e,_0x518821)=>(_0x3963ea,_0x5ef726)=>_0x518821(_0x3963ea,_0x5ef726,_0x2cff1e);let Me=class extends _0x16541d{constructor(_0x34d5ff,_0x25a408,_0x110c5c,_0x8198ca){const _0x718c84=_0x5009fc;super(),l(this,_0x718c84(0x2fb),new _0x3a492f(P[_0x718c84(0x29b)])),(this[_0x718c84(0x250)]=_0x34d5ff,this[_0x718c84(0x432)]=_0x25a408,this[_0x718c84(0x448)]=_0x110c5c,this['_collaborationController']=_0x8198ca,this[_0x718c84(0x196)](),this[_0x718c84(0x3a4)]());}[_0x5009fc(0x3a4)](){const _0x348320=_0x5009fc;this['disposeWithMe'](this[_0x348320(0x250)][_0x348320(0x1b0)]['pipe'](_0xb54ee(()=>{const _0xa3bba=_0x348320,_0x530442=this[_0xa3bba(0x250)]['getFocusedUnit']();return _0x530442?this[_0xa3bba(0x400)][_0xa3bba(0x2df)](_0x530442[_0xa3bba(0x147)]()):_0x347b80(null);}),_0xb54ee(_0x4ae530=>_0x4ae530?_0x4ae530[_0x348320(0x27c)]:_0x347b80(P[_0x348320(0x29b)])))[_0x348320(0x206)](_0x1c63af=>{const _0x5804ab=_0x348320;this['_status$'][_0x5804ab(0x1cf)](_0x1c63af);}));}[_0x5009fc(0x196)](){const _0xc2d14a=_0x5009fc;this[_0xc2d14a(0x341)](this[_0xc2d14a(0x432)][_0xc2d14a(0x121)](_0x40f64a[_0xc2d14a(0x178)],()=>_0x1fc806(wo({'status$':this[_0xc2d14a(0x2fb)]['asObservable']()}),this[_0xc2d14a(0x448)])));}};Me=Do([Be(0x0,_0x2d78d8),Be(0x1,_0x475baa),Be(0x2,_0x1f955f(_0x97bef)),Be(0x3,_0x1f955f(Le))],Me);function wo(_0x3393e5){const {status$:_0xb07d5f}=_0x3393e5;return function(){const _0x9e1c51=_0x3280;return _0xcdebad[_0x9e1c51(0x377)](To,{'status$':_0xb07d5f});};}const Zs=_0x5c6f0d(_0x5009fc(0xf8));var Po=Object[_0x5009fc(0x235)],yo=Object[_0x5009fc(0x327)],Uo=(_0x275f9c,_0x43eaca,_0x98b458,_0x381d40)=>{const _0xd288d1=_0x5009fc;for(var _0x3797c3=_0x381d40>0x1?void 0x0:_0x381d40?yo(_0x43eaca,_0x98b458):_0x43eaca,_0x359905=_0x275f9c[_0xd288d1(0x21e)]-0x1,_0x5d884a;_0x359905>=0x0;_0x359905--)(_0x5d884a=_0x275f9c[_0x359905])&&(_0x3797c3=(_0x381d40?_0x5d884a(_0x43eaca,_0x98b458,_0x3797c3):_0x5d884a(_0x3797c3))||_0x3797c3);return _0x381d40&&_0x3797c3&&Po(_0x43eaca,_0x98b458,_0x3797c3),_0x3797c3;},ge=(_0x154032,_0x52896a)=>(_0x2577f8,_0x3eea0b)=>_0x52896a(_0x2577f8,_0x3eea0b,_0x154032);let Je=class extends _0x5889a4{constructor(_0x59cc16,_0x435820,_0x5d3910,_0x4c8d4f,_0x482d17,_0x3c529d){const _0x9020c1=_0x5009fc;super(),this[_0x9020c1(0x335)]=_0x59cc16,this[_0x9020c1(0x208)]=_0x435820,this[_0x9020c1(0x289)]=_0x5d3910,this[_0x9020c1(0x156)]=_0x4c8d4f,this[_0x9020c1(0x3f4)]=_0x482d17,_0x3c529d?_0x3c529d==null||_0x3c529d[_0x9020c1(0x3d4)]()['then'](()=>this['_init']()):(this[_0x9020c1(0x208)]['debug']('[DataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async['_init'](){const _0x1ea3ab=_0x5009fc,_0x1aaaf1=this[_0x1ea3ab(0x335)][_0x1ea3ab(0x366)]('unit'),_0x4655e0=this[_0x1ea3ab(0x335)][_0x1ea3ab(0x366)](_0x1ea3ab(0x1f3));if(!_0x1aaaf1||!_0x4655e0){this[_0x1ea3ab(0x208)][_0x1ea3ab(0x232)](_0x1ea3ab(0x2da),_0x1ea3ab(0x3aa));return;}switch(Number(_0x4655e0)){case k[_0x1ea3ab(0x33c)]:{const _0x310d7c=await this[_0x1ea3ab(0x40c)](_0x1aaaf1);this[_0x1ea3ab(0x31f)](_0x310d7c);break;}case k[_0x1ea3ab(0x36f)]:{await this[_0x1ea3ab(0x25d)](_0x1aaaf1);break;}default:{this['_logService'][_0x1ea3ab(0x1bb)](_0x1ea3ab(0x2da),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x5009fc(0x31f)](_0x375c28){const _0x4d3f30=_0x5009fc;await this[_0x4d3f30(0x2c2)](_0x375c28),_0x375c28['activeSheet$'][_0x4d3f30(0x44f)](_0x810e9a(this['dispose$']))[_0x4d3f30(0x206)](_0x41162f=>{const _0x567725=_0x4d3f30;_0x41162f&&this[_0x567725(0x125)](_0x41162f);}),this['_urlService'][_0x4d3f30(0x106)][_0x4d3f30(0x44f)](_0x810e9a(this[_0x4d3f30(0x35c)]))[_0x4d3f30(0x206)](()=>this[_0x4d3f30(0x2c2)](_0x375c28));}['_updateURLWithCurrentState'](_0x24db62,_0x1bc6a1=!0x1){const _0x3fb4db=_0x5009fc,_0x2c6ace=this[_0x3fb4db(0x335)][_0x3fb4db(0x366)](_0x3fb4db(0x13b));_0x24db62[_0x3fb4db(0x207)]()!==_0x2c6ace&&this[_0x3fb4db(0x335)]['setParam'](_0x3fb4db(0x13b),_0x24db62[_0x3fb4db(0x207)](),_0x1bc6a1);}async[_0x5009fc(0x2c2)](_0x23e92c){const _0x45d0b8=_0x5009fc;var _0x3baa9e;const _0x58652e=this[_0x45d0b8(0x335)]['getParam'](_0x45d0b8(0x13b));if(!_0x58652e||!_0x23e92c['getSheetBySheetId'](_0x58652e)){const _0x29a995=_0x23e92c[_0x45d0b8(0x3c1)]()[0x0],_0x45cbd4=_0x23e92c[_0x45d0b8(0xd9)](_0x29a995);if(!_0x45cbd4)return;this[_0x45d0b8(0x125)](_0x45cbd4,!0x0),await this[_0x45d0b8(0x289)][_0x45d0b8(0x109)](_0x1c03e6['id'],{'unitId':_0x23e92c[_0x45d0b8(0x147)](),'subUnitId':_0x29a995});return;}((_0x3baa9e=_0x23e92c[_0x45d0b8(0x126)]())==null?void 0x0:_0x3baa9e[_0x45d0b8(0x207)]())!==_0x58652e&&await this[_0x45d0b8(0x289)]['executeCommand'](_0x1c03e6['id'],{'unitId':_0x23e92c[_0x45d0b8(0x147)](),'subUnitId':_0x58652e});}async[_0x5009fc(0x40c)](_0x4854ef){const _0x1954fb=_0x5009fc;let _0x557ac6=0x0;const _0x44a9e5=await this[_0x1954fb(0x156)][_0x1954fb(0x1ad)](_0x4854ef);return _0x44a9e5&&(_0x44a9e5[_0x1954fb(0x38a)]||_0x44a9e5[_0x1954fb(0x12c)]['length']!==0x0)&&(_0x557ac6=_0x44a9e5[_0x1954fb(0x397)]),_0x557ac6===0x0&&this[_0x1954fb(0x208)][_0x1954fb(0x232)](_0x1954fb(0x2da),_0x1954fb(0x21d)),this[_0x1954fb(0x3f4)][_0x1954fb(0x176)](_0x4854ef,_0x557ac6);}async[_0x5009fc(0x25d)](_0x19c09d){const _0x16bf32=_0x5009fc;let _0x356567=0x0;const _0x640cb8=await this[_0x16bf32(0x156)][_0x16bf32(0x1ad)](_0x19c09d);return _0x640cb8&&(_0x640cb8[_0x16bf32(0x38a)]||_0x640cb8[_0x16bf32(0x12c)][_0x16bf32(0x21e)]!==0x0)&&(_0x356567=_0x640cb8[_0x16bf32(0x397)]),_0x356567===0x0&&this[_0x16bf32(0x208)][_0x16bf32(0x232)](_0x16bf32(0x2da),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x16bf32(0x3f4)]['loadDoc'](_0x19c09d,_0x356567);}};Je=Uo([ge(0x0,Zs),ge(0x1,_0x5cfe43),ge(0x2,_0xfcd33f),ge(0x3,_0x1f955f(w)),ge(0x4,_0x1f955f(_0x234f02)),ge(0x5,_0x25fcfd(_0x2db9d4))],Je);var No=Object[_0x5009fc(0x235)],Mo=Object[_0x5009fc(0x327)],Ao=(_0x4e5927,_0x330dfc,_0x4349e0,_0x12afeb)=>{for(var _0x3a6446=_0x12afeb>0x1?void 0x0:_0x12afeb?Mo(_0x330dfc,_0x4349e0):_0x330dfc,_0x4c2863=_0x4e5927['length']-0x1,_0x95124e;_0x4c2863>=0x0;_0x4c2863--)(_0x95124e=_0x4e5927[_0x4c2863])&&(_0x3a6446=(_0x12afeb?_0x95124e(_0x330dfc,_0x4349e0,_0x3a6446):_0x95124e(_0x3a6446))||_0x3a6446);return _0x12afeb&&_0x3a6446&&No(_0x330dfc,_0x4349e0,_0x3a6446),_0x3a6446;},Ss=(_0x468d96,_0x3151d6)=>(_0x1fbc39,_0x54e99c)=>_0x3151d6(_0x1fbc39,_0x54e99c,_0x468d96);const Lo='DEFAULT_FILE_NAME',$o='Univer';let ze=class extends _0x16541d{constructor(_0x45ae2f,_0x2c87c8){const _0x24c3d2=_0x5009fc;super(),this[_0x24c3d2(0x250)]=_0x45ae2f,this[_0x24c3d2(0x361)]=_0x2c87c8,this[_0x24c3d2(0x2bf)]();}[_0x5009fc(0x2bf)](){const _0x53cb9f=_0x5009fc;this[_0x53cb9f(0x341)](this[_0x53cb9f(0x250)][_0x53cb9f(0x1b0)][_0x53cb9f(0x206)](()=>{const _0x1c6189=_0x53cb9f;var _0xb91c8b;const _0x4dbd33=this['_univerInstanceService'][_0x1c6189(0x10e)]();let _0x2e9eca=(_0xb91c8b=this[_0x1c6189(0x361)][_0x1c6189(0x23b)](Lo))!=null?_0xb91c8b:$o;_0x4dbd33 instanceof _0x497a84&&(_0x2e9eca=_0x4dbd33['name']),document[_0x1c6189(0x1ca)]=_0x2e9eca;}));}};ze=Ao([Ss(0x0,_0x2d78d8),Ss(0x1,_0x4b96c2)],ze);var jo=Object[_0x5009fc(0x235)],Ho=Object['getOwnPropertyDescriptor'],xo=(_0x1ab3d2,_0x96df8a,_0x57a99f,_0x180bd6)=>{const _0x4ce53d=_0x5009fc;for(var _0xc833c0=_0x180bd6>0x1?void 0x0:_0x180bd6?Ho(_0x96df8a,_0x57a99f):_0x96df8a,_0x4d9fe6=_0x1ab3d2[_0x4ce53d(0x21e)]-0x1,_0x3f4442;_0x4d9fe6>=0x0;_0x4d9fe6--)(_0x3f4442=_0x1ab3d2[_0x4d9fe6])&&(_0xc833c0=(_0x180bd6?_0x3f4442(_0x96df8a,_0x57a99f,_0xc833c0):_0x3f4442(_0xc833c0))||_0xc833c0);return _0x180bd6&&_0xc833c0&&jo(_0x96df8a,_0x57a99f,_0xc833c0),_0xc833c0;},St=(_0x5623d3,_0x5731b0)=>(_0x1a6198,_0xdfcbce)=>_0x5731b0(_0x1a6198,_0xdfcbce,_0x5623d3);let Ze=class{constructor(_0x23b5fa,_0x569bdb,_0x337875){const _0x53bd5b=_0x5009fc;this[_0x53bd5b(0x361)]=_0x23b5fa,this[_0x53bd5b(0x26b)]=_0x569bdb,this[_0x53bd5b(0x153)]=_0x337875,this[_0x53bd5b(0x3a7)]();}['init'](){this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x501b56,_0x1ca190)=>_0x1ca190(_0x501b56)['pipe'](_0x2f78e1(async _0x69db7e=>{const _0x1b3686=_0x3280,_0x2e8d3b=_0x69db7e;if(_0x2e8d3b[_0x1b3686(0x190)]===0x191&&window[_0x1b3686(0xe6)](this[_0x1b3686(0x153)]['t'](_0x1b3686(0xdb)))){const _0x3f9240=window['encodeURIComponent'](window['location'][_0x1b3686(0x326)]);window['location'][_0x1b3686(0x326)]=this['_getLoginPath']()+_0x1b3686(0x37b)+_0x3f9240;}return _0x2e8d3b;}))});}[_0x5009fc(0x450)](){const _0x1a2936=_0x5009fc;var _0x33c43a,_0xb2ddd4;const _0xe677c9=this[_0x1a2936(0x361)][_0x1a2936(0x23b)](Ln),_0x9f962f=this[_0x1a2936(0x361)]['getConfig']($);return(_0xb2ddd4=(_0x33c43a=_0x9f962f==null?void 0x0:_0x9f962f[_0x1a2936(0x3ac)])!=null?_0x33c43a:_0xe677c9)!=null?_0xb2ddd4:$n;}};Ze=xo([St(0x0,_0x4b96c2),St(0x1,_0x1f955f(_0x3a167c)),St(0x2,_0x1f955f(_0x371029))],Ze);var ko=Object['defineProperty'],Bo=Object['getOwnPropertyDescriptor'],Vo=(_0x5ad291,_0x3d25f5,_0x572329,_0x1e2d0f)=>{const _0x357c98=_0x5009fc;for(var _0x26af0e=_0x1e2d0f>0x1?void 0x0:_0x1e2d0f?Bo(_0x3d25f5,_0x572329):_0x3d25f5,_0x47a34b=_0x5ad291[_0x357c98(0x21e)]-0x1,_0x2efd8;_0x47a34b>=0x0;_0x47a34b--)(_0x2efd8=_0x5ad291[_0x47a34b])&&(_0x26af0e=(_0x1e2d0f?_0x2efd8(_0x3d25f5,_0x572329,_0x26af0e):_0x2efd8(_0x26af0e))||_0x26af0e);return _0x1e2d0f&&_0x26af0e&&ko(_0x3d25f5,_0x572329,_0x26af0e),_0x26af0e;},ps=(_0x3159ad,_0x504c5e)=>(_0x140ef2,_0x5690bf)=>_0x504c5e(_0x140ef2,_0x5690bf,_0x3159ad);const Fo=_0x5009fc(0x260),Wo='/universer-api/authz';let yt=class extends _0x16541d{constructor(_0x336790,_0x4ca1bb){const _0x77a37=_0x5009fc;super(),this[_0x77a37(0x2c9)]=_0x336790,this['_configService']=_0x4ca1bb,this[_0x77a37(0x2dc)]();}[_0x5009fc(0x2dc)](){const _0x155842=_0x5009fc,_0x32ed44=this;this[_0x155842(0x341)](this[_0x155842(0x2c9)][_0x155842(0x1df)]({'priority':0x3e7,'interceptor':_0x3d00f0({'isMatch'(_0x216798){const _0x2972cd=_0x155842;var _0x3f3814;if(_0x216798['method']==='POST'&&((_0x3f3814=_0x216798[_0x2972cd(0x103)])!=null&&_0x3f3814[_0x2972cd(0x320)])){const {objectID:_0x39b30a,objectType:_0xd23064}=_0x216798['requestParams']['body']||{};if(!_0x39b30a||_0xd23064===void 0x0)return!0x1;const _0x19b5c8=_0x32ed44['_getAPIPrefixPath']()+'/'+_0xd23064+_0x2972cd(0x43a)+_0x39b30a+_0x2972cd(0x120);if(_0x216798[_0x2972cd(0x111)]===_0x19b5c8)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2f01b0){const _0x3af0a1=_0x155842;var _0x5e9761;return(_0x5e9761=_0x2f01b0[_0x3af0a1(0x103)])==null?void 0x0:_0x5e9761[_0x3af0a1(0x320)];},'mergeParamsToRequest'(_0x2111d7,_0xcedbd2){const _0x274d6d=_0x155842,_0x27b7bf=_0x32ed44[_0x274d6d(0x212)]()+_0x274d6d(0x302),_0xe0dfa=_0x2111d7[_0x274d6d(0x41d)]((_0x4b70f8,_0x4b0155)=>{const _0x222dcb=_0x274d6d,{unitID:_0x5c6bc7,objectID:_0x121d7c,objectType:_0x19c04c,actions:_0xf90125}=_0x4b0155;return _0x4b70f8[_0x5c6bc7]||(_0x4b70f8[_0x5c6bc7]={}),_0x4b70f8[_0x5c6bc7][_0x121d7c]||(_0x4b70f8[_0x5c6bc7][_0x121d7c]={'objectID':_0x121d7c,'objectType':_0x19c04c,'actions':[]}),_0x4b70f8[_0x5c6bc7][_0x121d7c][_0x222dcb(0x257)][_0x222dcb(0x152)](..._0xf90125),_0x4b70f8;},{}),_0x24d9fc=[];for(const _0x3b5ff7 in _0xe0dfa)for(const _0x103d16 in _0xe0dfa[_0x3b5ff7]){const {actions:_0x172a0c,objectType:_0x30f2d0}=_0xe0dfa[_0x3b5ff7][_0x103d16],_0x32bb25=[...new Set(_0x172a0c)];_0x24d9fc[_0x274d6d(0x152)]({'unitID':_0x3b5ff7,'objectID':_0x103d16,'objectType':_0x30f2d0,'actions':_0x32bb25});}return new _0x4d0064(_0x274d6d(0x1f7),_0x27b7bf,{'headers':_0xcedbd2[_0x274d6d(0x17a)],'withCredentials':_0xcedbd2[_0x274d6d(0x259)],'responseType':_0xcedbd2['responseType'],'body':{'requests':_0x24d9fc}});}},{'distributeResult'(_0x477926,_0x2adb01){const _0x3ad6a1=_0x155842,{objectActions:_0x20f3a2}=_0x477926;return _0x2adb01[_0x3ad6a1(0x1f8)](_0x56c8dc=>{const _0x4f3dc1=_0x3ad6a1,{unitID:_0x233cd0,objectID:_0x3835b3,actions:_0x3c9688}=_0x56c8dc,_0x4281cd=_0x20f3a2[_0x4f3dc1(0x261)](_0x2a04a1=>_0x2a04a1['unitID']===_0x233cd0&&_0x2a04a1[_0x4f3dc1(0x33f)]===_0x3835b3),_0x421ad5=_0x3c9688[_0x4f3dc1(0x1f8)](_0xbe5c19=>_0x4281cd==null?void 0x0:_0x4281cd[_0x4f3dc1(0x257)][_0x4f3dc1(0x261)](_0x2bc712=>_0x2bc712[_0x4f3dc1(0x360)]===_0xbe5c19))[_0x4f3dc1(0x376)](_0x4398a5=>!!_0x4398a5);return{'config':_0x56c8dc,'result':{'actions':_0x421ad5,'error':_0x477926['error']}};});}})}));}[_0x5009fc(0x212)](){const _0x2578ab=_0x5009fc;var _0x3bcacc,_0x3cc24a;const _0xcbfcc8=this[_0x2578ab(0x361)][_0x2578ab(0x23b)](Fo),_0x24d83f=this[_0x2578ab(0x361)]['getConfig']($);return(_0x3cc24a=(_0x3bcacc=_0x24d83f==null?void 0x0:_0x24d83f['authzUrl'])!=null?_0x3bcacc:_0xcbfcc8)!=null?_0x3cc24a:Wo;}async[_0x5009fc(0x296)](_0x529b7d){const _0x14fc99=_0x5009fc,_0x104704=this[_0x14fc99(0x212)]()+'/'+_0x529b7d[_0x14fc99(0x2e5)]+_0x14fc99(0x1ba);return(await this['_HTTPService']['post'](_0x104704,{'body':_0x529b7d}))[_0x14fc99(0x320)]['objectID']||'';}async['list'](_0x39b5f4){const _0x2880a3=_0x5009fc,_0xb33566=this['_getAPIPrefixPath']()+_0x2880a3(0xd7);return(await this['_HTTPService'][_0x2880a3(0x394)](_0xb33566,{'body':_0x39b5f4}))[_0x2880a3(0x320)][_0x2880a3(0x14b)];}async[_0x5009fc(0x2ff)](_0xf10d53){const _0x4f12dc=_0x5009fc,_0x7b54be=this[_0x4f12dc(0x212)]()+'/'+_0xf10d53[_0x4f12dc(0x2e5)]+_0x4f12dc(0x43a)+_0xf10d53[_0x4f12dc(0x33f)];await this[_0x4f12dc(0x2c9)][_0x4f12dc(0x2bd)](_0x7b54be,{'body':_0xf10d53});}async[_0x5009fc(0x21a)](_0x2cbea9){const _0x24652c=_0x5009fc,_0x4efcaa=this[_0x24652c(0x212)]()+'/'+_0x2cbea9[_0x24652c(0x2e5)]+'/object/'+_0x2cbea9[_0x24652c(0x33f)]+_0x24652c(0x120);return(await this[_0x24652c(0x2c9)]['post'](_0x4efcaa,{'body':_0x2cbea9}))['body'][_0x24652c(0x257)];}async[_0x5009fc(0x209)](_0x392e10){const _0x800c12=_0x5009fc,_0x426afc=this[_0x800c12(0x212)]()+_0x800c12(0x302);return(await this[_0x800c12(0x2c9)][_0x800c12(0x394)](_0x426afc,{'body':{'requests':_0x392e10}}))['body']['objectActions'];}async[_0x5009fc(0x3bd)](_0x21db1f){const _0x53fe5f=_0x5009fc,_0x20a226=this[_0x53fe5f(0x212)]()+'/'+_0x21db1f[_0x53fe5f(0x2e5)]+'/role',_0x204c61=await this[_0x53fe5f(0x2c9)][_0x53fe5f(0x394)](_0x20a226,{'body':_0x21db1f});return{'roles':_0x204c61[_0x53fe5f(0x320)][_0x53fe5f(0x240)],'actions':_0x204c61[_0x53fe5f(0x320)]['actions']};}async[_0x5009fc(0x37f)](_0x3051f6){const _0x3bcdb5=_0x5009fc,_0x1c54d7=this['_getAPIPrefixPath']()+_0x3bcdb5(0x3dc);await this[_0x3bcdb5(0x2c9)][_0x3bcdb5(0x184)](_0x1c54d7,{'params':{'collaboratorID':_0x3051f6[_0x3bcdb5(0x1eb)],'objectID':_0x3051f6[_0x3bcdb5(0x33f)],'unitID':_0x3051f6[_0x3bcdb5(0x187)]}});}async[_0x5009fc(0x11a)](_0x3595d5){const _0x12f96b=_0x5009fc,_0x727db3=this['_getAPIPrefixPath']()+_0x12f96b(0x3dc);await this[_0x12f96b(0x2c9)][_0x12f96b(0x24b)](_0x727db3,{'body':_0x3595d5});}async[_0x5009fc(0xfe)](_0x1b3e6f){const _0x1ad43a=_0x5009fc,_0x5be30b=this['_getAPIPrefixPath']()+_0x1ad43a(0x3dc);await this[_0x1ad43a(0x2c9)][_0x1ad43a(0x394)](_0x5be30b,{'body':_0x1b3e6f});}async['listCollaborators'](_0x4bb20a){const _0xb72ef3=_0x5009fc,_0x3235cc=this['_getAPIPrefixPath']()+_0xb72ef3(0x3dc);return(await this[_0xb72ef3(0x2c9)][_0xb72ef3(0x381)](_0x3235cc,{'params':{'objectID':_0x4bb20a[_0xb72ef3(0x33f)],'unitID':_0x4bb20a[_0xb72ef3(0x187)]}}))[_0xb72ef3(0x320)][_0xb72ef3(0x158)];}async['putCollaborators'](_0x20cb8){const _0x1d4644=_0x5009fc,_0x3fa6c5=this[_0x1d4644(0x212)]()+_0x1d4644(0x3dc);await this[_0x1d4644(0x2c9)][_0x1d4644(0x2bd)](_0x3fa6c5,{'body':_0x20cb8});}};yt=Vo([ps(0x0,_0x1f955f(_0x3a167c)),ps(0x1,_0x1f955f(_0x4b96c2))],yt);var Go=Object[_0x5009fc(0x235)],Yo=Object[_0x5009fc(0x327)],Ko=(_0x12cb38,_0x30343f,_0x212dc7,_0x5a33b0)=>{for(var _0x45fe7a=_0x5a33b0>0x1?void 0x0:_0x5a33b0?Yo(_0x30343f,_0x212dc7):_0x30343f,_0x3e2244=_0x12cb38['length']-0x1,_0x3227d5;_0x3e2244>=0x0;_0x3e2244--)(_0x3227d5=_0x12cb38[_0x3e2244])&&(_0x45fe7a=(_0x5a33b0?_0x3227d5(_0x30343f,_0x212dc7,_0x45fe7a):_0x3227d5(_0x45fe7a))||_0x45fe7a);return _0x5a33b0&&_0x45fe7a&&Go(_0x30343f,_0x212dc7,_0x45fe7a),_0x45fe7a;},Xo=(_0x5820c7,_0x145483)=>(_0x451ae5,_0xe8da46)=>_0x145483(_0x451ae5,_0xe8da46,_0x5820c7);function _0x3280(_0x5545ec,_0x5eae49){const _0x1a52d6=_0x1a52();return _0x3280=function(_0x328051,_0x16b12c){_0x328051=_0x328051-0xd1;let _0x4ba8d3=_0x1a52d6[_0x328051];return _0x4ba8d3;},_0x3280(_0x5545ec,_0x5eae49);}let Qe=class{constructor(_0xd0e1c6){const _0x258527=_0x5009fc;this[_0x258527(0x26b)]=_0xd0e1c6,this[_0x258527(0x1a6)]();}[_0x5009fc(0x1a6)](){const _0x315d01=_0x5009fc;this[_0x315d01(0x26b)][_0x315d01(0x1df)]({'interceptor':(_0x3031bd,_0x3943c1)=>{const _0x145e8f=_0x315d01,_0x23c35d=_0x3031bd['headers'],_0x30d59b=_0x258e3b();return _0x30d59b&&_0x23c35d[_0x145e8f(0x411)](_0x145e8f(0x351),_0x30d59b),_0x3943c1(_0x3031bd);}});}};Qe=Ko([Xo(0x0,_0x1f955f(_0x3a167c))],Qe);var qo=Object[_0x5009fc(0x235)],Jo=Object[_0x5009fc(0x327)],zo=(_0x1c24a4,_0x5a573d,_0x29d273,_0x5f134d)=>{const _0x2e923c=_0x5009fc;for(var _0x904685=_0x5f134d>0x1?void 0x0:_0x5f134d?Jo(_0x5a573d,_0x29d273):_0x5a573d,_0x398b34=_0x1c24a4[_0x2e923c(0x21e)]-0x1,_0x4a339a;_0x398b34>=0x0;_0x398b34--)(_0x4a339a=_0x1c24a4[_0x398b34])&&(_0x904685=(_0x5f134d?_0x4a339a(_0x5a573d,_0x29d273,_0x904685):_0x4a339a(_0x904685))||_0x904685);return _0x5f134d&&_0x904685&&qo(_0x5a573d,_0x29d273,_0x904685),_0x904685;},pt=(_0x34cac5,_0x1bd8dd)=>(_0x407842,_0x208d7c)=>_0x1bd8dd(_0x407842,_0x208d7c,_0x34cac5);const Zo=[_0x5009fc(0x263),_0x5009fc(0x205),_0x5009fc(0xe5),_0x5009fc(0x1be),_0x5009fc(0x19c)],Qo=0x5*0x400*0x400,ea='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',ta='/universer-api/stream/file/upload',sa=_0x5009fc(0x160),ia=_0x5009fc(0x2a1);let Ut=class{constructor(_0x326780,_0x57951e,_0x5aaccf){const _0x14866e=_0x5009fc;l(this,_0x14866e(0x281),0x0),l(this,_0x14866e(0x1bd),new _0x379f4()),l(this,'change$',this[_0x14866e(0x1bd)]),l(this,_0x14866e(0x107),new Map()),(this[_0x14866e(0x26b)]=_0x326780,this['_configService']=_0x57951e,this[_0x14866e(0x250)]=_0x5aaccf);}['setWaitCount'](_0xbc2e67){const _0x1d31c7=_0x5009fc;this[_0x1d31c7(0x281)]=_0xbc2e67,this[_0x1d31c7(0x1bd)][_0x1d31c7(0x1cf)](_0xbc2e67);}[_0x5009fc(0x1dc)](_0x116fc9,_0x4b8953){const _0x15f4d0=_0x5009fc;if(_0x4b8953===_0x2f7913[_0x15f4d0(0x430)]){const _0x158f1d=new Image();return _0x158f1d['src']=_0x116fc9,_0x158f1d;}return this[_0x15f4d0(0x107)]['get'](_0x116fc9);}[_0x5009fc(0x2cb)](_0x237c9a,_0x3f96d2,_0x3eb907){const _0x3cbc19=_0x5009fc;_0x3f96d2===_0x2f7913[_0x3cbc19(0x430)]||_0x3eb907==null||this[_0x3cbc19(0x107)][_0x3cbc19(0x411)](_0x237c9a,_0x3eb907);}async['getImage'](_0x23a089){const _0x33ad15=_0x5009fc;try{const _0x1c7e0e=this['_replaceFileID'](this[_0x33ad15(0x39d)](),''+_0x23a089),_0x4390a5=(await this[_0x33ad15(0x26b)][_0x33ad15(0x381)](_0x1c7e0e))['body'];if(_0x4390a5['error']&&_0x4390a5['error'][_0x33ad15(0x3ed)]===xs['OK']){const _0x36ab9e=new URL(_0x4390a5[_0x33ad15(0x111)],this[_0x33ad15(0x428)]())[_0x33ad15(0x449)]();return Promise[_0x33ad15(0x17b)](_0x36ab9e);}return Promise[_0x33ad15(0x41f)](_0x4390a5[_0x33ad15(0x1bb)]);}catch(_0x1b1196){return Promise[_0x33ad15(0x41f)](_0x1b1196);}}async[_0x5009fc(0x1ed)](_0xe1daf7){const _0x11bbb2=_0x5009fc;let _0x5370b8='';if(!Zo[_0x11bbb2(0x124)](_0xe1daf7[_0x11bbb2(0x1f3)]))return this[_0x11bbb2(0x13d)](),Promise[_0x11bbb2(0x41f)](new Error(_0x13fb43[_0x11bbb2(0x36d)]));if(_0xe1daf7[_0x11bbb2(0x1f6)]>Qo)return this[_0x11bbb2(0x13d)](),Promise[_0x11bbb2(0x41f)](new Error(_0x13fb43[_0x11bbb2(0x1da)]));try{const _0x1f2c3c=new FormData();_0x1f2c3c[_0x11bbb2(0x139)](_0x11bbb2(0x44d),_0xe1daf7);const _0x50344b=this[_0x11bbb2(0x250)][_0x11bbb2(0x10e)](),_0x3a3e87=_0x50344b==null?void 0x0:_0x50344b[_0x11bbb2(0x147)]();if(!_0x3a3e87)throw new Error(_0x11bbb2(0x379));const _0x37c9c2=this[_0x11bbb2(0x140)]()+_0x11bbb2(0x2d1)+_0xe1daf7['size'][_0x11bbb2(0x449)]()+'&source='+ks[_0x11bbb2(0x244)]+_0x11bbb2(0x11c)+encodeURIComponent(_0x3a3e87),_0x2c2e16=await(await fetch(_0x37c9c2,{'method':_0x11bbb2(0x1f7),'body':_0x1f2c3c}))[_0x11bbb2(0x1bf)]();if(typeof _0x2c2e16['FileId']!='string')return this[_0x11bbb2(0x13d)](),Promise[_0x11bbb2(0x41f)](new Error(_0x13fb43['ERROR_IMAGE']));_0x5370b8=_0x2c2e16[_0x11bbb2(0x3ad)];}catch{return this['_decreaseWaiting'](),Promise[_0x11bbb2(0x41f)](new Error(_0x13fb43[_0x11bbb2(0x3d2)]));}return new Promise((_0x5f1107,_0x58b0b2)=>{const _0x4ecfe1=_0x11bbb2,_0x49681a=new FileReader();_0x49681a['readAsDataURL'](_0xe1daf7),_0x49681a[_0x4ecfe1(0x30c)]=_0x20f392=>{const _0x264ac2=_0x4ecfe1;var _0xa06679;const _0xe41d73=(_0xa06679=_0x20f392['target'])==null?void 0x0:_0xa06679[_0x264ac2(0x304)];if(_0xe41d73==null){this[_0x264ac2(0x13d)](),_0x58b0b2(new Error(_0x13fb43[_0x264ac2(0x3d2)]));return;}const _0x403051=_0x548d2b['generateRandomId'](0x6);_0x5f1107({'imageId':_0x403051,'imageSourceType':_0x2f7913[_0x264ac2(0x1d0)],'source':_0x5370b8,'base64Cache':_0xe41d73,'status':_0x13fb43[_0x264ac2(0x25a)]}),this[_0x264ac2(0x13d)]();};});}[_0x5009fc(0x140)](){const _0x50d301=_0x5009fc;var _0x3dcc7c,_0x56bcd5;const _0x4094cb=this[_0x50d301(0x361)][_0x50d301(0x23b)](ea),_0x5aca34=this[_0x50d301(0x361)][_0x50d301(0x23b)]($);return(_0x56bcd5=(_0x3dcc7c=_0x5aca34==null?void 0x0:_0x5aca34[_0x50d301(0x274)])!=null?_0x3dcc7c:_0x4094cb)!=null?_0x56bcd5:ta;}[_0x5009fc(0x39d)](){const _0x3e7369=_0x5009fc;var _0x333e09,_0x5156da;const _0xd33f9=this[_0x3e7369(0x361)][_0x3e7369(0x23b)](sa),_0x104648=this[_0x3e7369(0x361)][_0x3e7369(0x23b)]($);return(_0x5156da=(_0x333e09=_0x104648==null?void 0x0:_0x104648[_0x3e7369(0x375)])!=null?_0x333e09:_0xd33f9)!=null?_0x5156da:ia;}['_getDownloadEndpointURL'](){const _0x134b43=_0x5009fc;var _0x12c0fd;const _0x21dcce=this[_0x134b43(0x361)][_0x134b43(0x23b)]($);return(_0x12c0fd=_0x21dcce==null?void 0x0:_0x21dcce['downloadEndpointUrl'])!=null?_0x12c0fd:location[_0x134b43(0x283)];}[_0x5009fc(0x3fd)](_0x4f0ce4,_0x1a4836){const _0x156bf2=_0x5009fc;return _0x4f0ce4[_0x156bf2(0x35d)]('{fileID}',_0x1a4836);}['_decreaseWaiting'](){const _0x132919=_0x5009fc;this[_0x132919(0x281)]-=0x1,this[_0x132919(0x1bd)][_0x132919(0x1cf)](this['_waitCount']);}};Ut=zo([pt(0x0,_0x1f955f(_0x3a167c)),pt(0x1,_0x4b96c2),pt(0x2,_0x1f955f(_0x2d78d8))],Ut);var na=Object['defineProperty'],ra=Object[_0x5009fc(0x327)],oa=(_0x44df2d,_0x5c5410,_0x14bb64,_0x35b329)=>{const _0x2a9242=_0x5009fc;for(var _0x60e708=_0x35b329>0x1?void 0x0:_0x35b329?ra(_0x5c5410,_0x14bb64):_0x5c5410,_0xd8176c=_0x44df2d[_0x2a9242(0x21e)]-0x1,_0x15ae12;_0xd8176c>=0x0;_0xd8176c--)(_0x15ae12=_0x44df2d[_0xd8176c])&&(_0x60e708=(_0x35b329?_0x15ae12(_0x5c5410,_0x14bb64,_0x60e708):_0x15ae12(_0x60e708))||_0x60e708);return _0x35b329&&_0x60e708&&na(_0x5c5410,_0x14bb64,_0x60e708),_0x60e708;},ye=(_0x49a7be,_0x2680ca)=>(_0x25b030,_0x560de8)=>_0x2680ca(_0x25b030,_0x560de8,_0x49a7be);let et=class extends _0x5889a4{constructor(_0x78e5a9,_0x5bd7f4,_0x454dc4,_0x522b46,_0x4ec427){const _0x4e64ea=_0x5009fc;super(),this[_0x4e64ea(0x448)]=_0x78e5a9,this[_0x4e64ea(0x250)]=_0x5bd7f4,this['_permissionService']=_0x454dc4,this[_0x4e64ea(0x38d)]=_0x522b46,this[_0x4e64ea(0x2a6)]=_0x4ec427,this['_initUnitPermissionChange'](),this[_0x4e64ea(0xe1)]();}['_initCloseConn'](){const _0x81475d=_0x5009fc,_0x347721=async _0x15007c=>{const _0x5430dd=_0x3280;(await this[_0x5430dd(0x38d)][_0x5430dd(0x1fd)](_0x15007c))[_0x5430dd(0x427)]['pipe'](_0x5d3bcc(_0x2c3192=>_0x2c3192[_0x5430dd(0x299)]===_0x5bf9c6['SHOULD_CLOSE_CONN']),_0x22831a(this[_0x5430dd(0x35c)]))[_0x5430dd(0x206)](_0x101d72=>{const _0x26cc5a=_0x5430dd,_0x1c6cef=_0x101d72,{reason:_0x5908b0}=_0x1c6cef[_0x26cc5a(0x363)];this[_0x26cc5a(0x448)][_0x26cc5a(0x381)](_0x40b38a)[_0x26cc5a(0xf7)]({'type':_0x3738f0['Error'],'content':this[_0x26cc5a(0x2a6)]['t'](_0x26cc5a(0x31a))+'('+_0x5908b0+')'}),this[_0x26cc5a(0x1e4)][_0x26cc5a(0x2c8)](new _0x496922(_0x15007c)['id'],!0x1),this[_0x26cc5a(0x38d)][_0x26cc5a(0x401)](_0x15007c);});};_0x370802(this[_0x81475d(0x250)][_0x81475d(0x39b)](_0x53f477[_0x81475d(0x33c)]),this['_univerInstanceService'][_0x81475d(0x39b)](_0x53f477['UNIVER_DOC']))['pipe'](_0x13fcf1(_0x3edec5=>_0x3edec5[_0x81475d(0x147)]()),_0x5d3bcc(_0x54eab0=>!_0x594798(_0x54eab0)),_0x22831a(this[_0x81475d(0x35c)]))[_0x81475d(0x206)](_0x5c2f2c=>{_0x347721(_0x5c2f2c);});}['_initUnitPermissionChange'](){const _0x346fec=_0x5009fc,_0x23a71f=async _0x1b6db9=>{const _0x26baee=_0x3280;(await this[_0x26baee(0x38d)][_0x26baee(0x1fd)](_0x1b6db9))[_0x26baee(0x427)]['pipe'](_0x5d3bcc(_0x165a61=>_0x165a61[_0x26baee(0x299)]===_0x5bf9c6['UPDATE_PERMISSION_OBJ']),_0x22831a(this[_0x26baee(0x35c)]))[_0x26baee(0x206)](_0x51a077=>{const _0x3d2a68=_0x26baee,_0x27d6a9=_0x51a077,{objectId:_0x467bab}=_0x27d6a9[_0x3d2a68(0x363)],_0x2fa426=this[_0x3d2a68(0x448)]['get'](_0xcd44b3);_0x467bab===_0x1b6db9?_0x2fa426['initWorkbookPermissionChange'](_0x1b6db9):_0x2fa426[_0x3d2a68(0x2fc)](_0x1b6db9,_0x467bab);});};_0x370802(this['_univerInstanceService'][_0x346fec(0x39b)](_0x53f477[_0x346fec(0x33c)]),this[_0x346fec(0x250)][_0x346fec(0x39b)](_0x53f477[_0x346fec(0x36f)]))[_0x346fec(0x44f)](_0x13fcf1(_0x13be43=>_0x13be43[_0x346fec(0x147)]()),_0x5d3bcc(_0x539a37=>!_0x594798(_0x539a37)),_0x22831a(this[_0x346fec(0x35c)]))[_0x346fec(0x206)](_0x5682dc=>{_0x23a71f(_0x5682dc);});}};et=oa([ye(0x0,_0x1f955f(_0x97bef)),ye(0x1,_0x2d78d8),ye(0x2,_0x46a842),ye(0x3,_0x1f955f(he)),ye(0x4,_0x1f955f(_0x371029))],et);var aa=Object['defineProperty'],ca=Object['getOwnPropertyDescriptor'],ha=(_0xe2a08e,_0x4a4320,_0x5d5e23,_0x2f56fc)=>{const _0x1feaa4=_0x5009fc;for(var _0x54ad11=_0x2f56fc>0x1?void 0x0:_0x2f56fc?ca(_0x4a4320,_0x5d5e23):_0x4a4320,_0x4fed9f=_0xe2a08e[_0x1feaa4(0x21e)]-0x1,_0x47e1a3;_0x4fed9f>=0x0;_0x4fed9f--)(_0x47e1a3=_0xe2a08e[_0x4fed9f])&&(_0x54ad11=(_0x2f56fc?_0x47e1a3(_0x4a4320,_0x5d5e23,_0x54ad11):_0x47e1a3(_0x54ad11))||_0x54ad11);return _0x2f56fc&&_0x54ad11&&aa(_0x4a4320,_0x5d5e23,_0x54ad11),_0x54ad11;},vs=(_0x80874b,_0xa5d567)=>(_0x2cba1d,_0x3e71ae)=>_0xa5d567(_0x2cba1d,_0x3e71ae,_0x80874b);let Nt=class{constructor(_0x3ca590,_0x4e5ed4){const _0x4fc84f=_0x5009fc;this[_0x4fc84f(0x361)]=_0x3ca590,this['_httpService']=_0x4e5ed4;}async[_0x5009fc(0x41b)](_0x5db6b6,_0x25a067){const _0x1a2880=_0x5009fc;var _0x4f8fb2;const {unitID:_0x3ea774,type:_0x4e7e83,revision:_0x5957a9=0x0}=_0x25a067,_0x267089=this[_0x1a2880(0x3c4)]()+'/'+_0x4e7e83+_0x1a2880(0x11e)+_0x3ea774+'/rev/'+_0x5957a9,_0x255114=(await this[_0x1a2880(0x26b)]['get'](_0x267089))[_0x1a2880(0x320)],_0x4f92f5=(_0x4f8fb2=_0x255114[_0x1a2880(0x204)])==null?void 0x0:_0x4f8fb2['workbook'];if(_0x4f92f5){const _0x2faf2f=_0x4f92f5==null?void 0x0:_0x4f92f5[_0x1a2880(0x3d3)],_0x327e28=_0x4049ad[_0x1a2880(0x251)](_0x2a5fc5(_0x2faf2f));_0x4f92f5[_0x1a2880(0x3d3)]=_0x327e28,Object['entries'](_0x4f92f5[_0x1a2880(0x3f7)])[_0x1a2880(0x1d4)](([,_0x4583c3])=>{const _0x1342c9=_0x1a2880,_0x2bda4c=_0x4583c3[_0x1342c9(0x3d3)],_0x2eb1a6=_0x4049ad[_0x1342c9(0x251)](_0x2a5fc5(_0x2bda4c));_0x4583c3[_0x1342c9(0x3d3)]=_0x2eb1a6;});}return _0x255114;}async[_0x5009fc(0x26d)](_0x2ee39a,_0xd89366){const _0x403003=_0x5009fc,{unitID:_0x45ce6b,type:_0x3b0fe8,blockID:_0x5038a8}=_0xd89366,_0x2e81ba=this[_0x403003(0x1f0)]()+'/'+_0x3b0fe8+_0x403003(0x11e)+_0x45ce6b+_0x403003(0x1ef)+_0x5038a8;return(await this[_0x403003(0x26b)][_0x403003(0x381)](_0x2e81ba))[_0x403003(0x320)];}async[_0x5009fc(0x3bb)](_0x105ede,_0x1a1f53){const _0x580ce2=_0x5009fc,{unitID:_0x197a34,type:_0x156eee,blockID:_0x54847b}=_0x1a1f53,_0x99489a=this[_0x580ce2(0x1f0)]()+'/block/'+_0x156eee+'/unit/'+_0x197a34+_0x580ce2(0x1ef)+_0x54847b;return(await this[_0x580ce2(0x26b)][_0x580ce2(0x381)](_0x99489a))[_0x580ce2(0x320)];}async[_0x5009fc(0x2b7)](_0x39255b,_0xc4080f){const _0x37d933=_0x5009fc,{unitID:_0x4960fd,type:_0x43d13b,from:_0x72e139,to:_0x253d38}=_0xc4080f,_0x1d17e4=this['_getAPIPrefix']()+'/'+_0x43d13b+_0x37d933(0x11e)+_0x4960fd+'/fetchmissing?from='+_0x72e139+'&to='+_0x253d38;return(await this[_0x37d933(0x26b)]['get'](_0x1d17e4))[_0x37d933(0x320)];}[_0x5009fc(0x3c4)](){const _0x2dec9c=_0x5009fc;var _0x2e0d3a;return(_0x2e0d3a=this[_0x2dec9c(0x361)][_0x2dec9c(0x23b)](Cn))!=null?_0x2e0d3a:this['_getAPIPrefix']();}[_0x5009fc(0x1f0)](){const _0x28e393=_0x5009fc;var _0x2a08b3,_0x53ad36;const _0x53686a=this['_configService'][_0x28e393(0x23b)](In),_0x23293f=this[_0x28e393(0x361)][_0x28e393(0x23b)]($);return(_0x53ad36=(_0x2a08b3=_0x23293f==null?void 0x0:_0x23293f[_0x28e393(0x199)])!=null?_0x2a08b3:_0x53686a)!=null?_0x53ad36:En;}async[_0x5009fc(0x220)](_0x3da27e,_0x52589f){const _0x1d693b=_0x5009fc,_0x460fd6=_0x1d693b(0x246)+_0x52589f[_0x1d693b(0x1f3)]+_0x1d693b(0x11e)+_0x52589f[_0x1d693b(0x187)]+_0x1d693b(0x30a);return(await this['_httpService'][_0x1d693b(0x381)](_0x460fd6,{'params':{'resourceId':JSON[_0x1d693b(0x33b)](_0x52589f[_0x1d693b(0x3c3)])}}))[_0x1d693b(0x320)];}[_0x5009fc(0x408)](){const _0x5b1369=_0x5009fc;throw new Error(_0x5b1369(0x2ea));}[_0x5009fc(0x155)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x5009fc(0x24d)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x5754ff=_0x5009fc;throw new Error(_0x5754ff(0x2ea));}[_0x5009fc(0x119)](){const _0x15f63f=_0x5009fc;throw new Error(_0x15f63f(0x2ea));}};Nt=ha([vs(0x0,_0x4b96c2),vs(0x1,_0x1f955f(_0x3a167c))],Nt);var la=Object[_0x5009fc(0x235)],_a=Object[_0x5009fc(0x327)],ua=(_0x3e1e0e,_0x312c8b,_0x2484b2,_0xd8a719)=>{const _0x4f0b57=_0x5009fc;for(var _0x33c218=_0xd8a719>0x1?void 0x0:_0xd8a719?_a(_0x312c8b,_0x2484b2):_0x312c8b,_0x5f3a12=_0x3e1e0e[_0x4f0b57(0x21e)]-0x1,_0x5d674b;_0x5f3a12>=0x0;_0x5f3a12--)(_0x5d674b=_0x3e1e0e[_0x5f3a12])&&(_0x33c218=(_0xd8a719?_0x5d674b(_0x312c8b,_0x2484b2,_0x33c218):_0x5d674b(_0x33c218))||_0x33c218);return _0xd8a719&&_0x33c218&&la(_0x312c8b,_0x2484b2,_0x33c218),_0x33c218;},Ue=(_0x4a4af8,_0x9de003)=>(_0x29d7f1,_0x52d840)=>_0x9de003(_0x29d7f1,_0x52d840,_0x4a4af8);let Mt=class extends _0x27b177{constructor(_0x43321b,_0x57a903,_0x24d2b7,_0x3a2821,_0x44f53f){const _0x5d2261=_0x5009fc;super(_0x43321b,_0x57a903,_0x24d2b7),this['_transformService']=_0x3a2821,this[_0x5d2261(0x208)]=_0x44f53f;}['transformUndoRedo'](_0x3f039c,_0x12f495){const _0x4b6486=_0x5009fc,_0x5b7099=this[_0x4b6486(0x23f)](_0x3f039c);if(_0x5b7099)try{const _0x5745a7=this[_0x4b6486(0x10f)](_0x5b7099,_0x12f495);this[_0x4b6486(0x1e3)](_0x3f039c,_0x5745a7);}catch(_0x50c873){this[_0x4b6486(0x208)]['error'](_0x4b6486(0x3fa),_0x50c873),this[_0x4b6486(0x371)](_0x3f039c);}const _0x5004ab=this[_0x4b6486(0x3d6)](_0x3f039c);if(_0x5004ab)try{const _0x1b2931=this['_transformStack'](_0x5004ab,_0x12f495);this[_0x4b6486(0x2d4)](_0x3f039c,_0x1b2931);}catch(_0x1f0d01){this[_0x4b6486(0x208)]['error'](_0x1f0d01),this[_0x4b6486(0x346)](_0x3f039c);}}[_0x5009fc(0x371)](_0x232a95){const _0x2f2e4a=_0x5009fc,_0x1eb184=this[_0x2f2e4a(0x23f)](_0x232a95);_0x1eb184&&(_0x1eb184[_0x2f2e4a(0x21e)]=0x0,this[_0x2f2e4a(0x3da)]());}['_clearRedo'](_0x1fa6e1){const _0xb103a8=_0x5009fc,_0x3b74bc=this[_0xb103a8(0x3d6)](_0x1fa6e1);_0x3b74bc&&(_0x3b74bc[_0xb103a8(0x21e)]=0x0,this[_0xb103a8(0x3da)]());}[_0x5009fc(0x1e3)](_0x1ad3a0,_0x5df0f3){const _0x54201b=_0x5009fc;this['_undoStacks'][_0x54201b(0x411)](_0x1ad3a0,_0x5df0f3),this[_0x54201b(0x3da)]();}[_0x5009fc(0x2d4)](_0x309a8c,_0x5ca4db){const _0x48d0f1=_0x5009fc;this[_0x48d0f1(0x1b6)][_0x48d0f1(0x411)](_0x309a8c,_0x5ca4db),this[_0x48d0f1(0x3da)]();}[_0x5009fc(0x10f)](_0x4dc9c9,_0x2986fb){const _0x473abc=_0x5009fc,_0x4e1f28=[];let _0x52f5d2=_0x2986fb,_0x5af60d=_0x2986fb;for(let _0x5e26b1=_0x4dc9c9[_0x473abc(0x21e)]-0x1;_0x5e26b1>=0x0;_0x5e26b1--){const {unitID:_0x43d9b2,undoMutations:_0x5f35c0,redoMutations:_0x517d1e}=_0x4dc9c9[_0x5e26b1],_0x45aafb=this['_transformService'][_0x473abc(0x1ec)](_0x52f5d2,_0x5f35c0),_0x133186=this['_transformService'][_0x473abc(0x1ec)](_0x5af60d,_0x517d1e);if(_0x4cd7ab(_0x45aafb)||_0x4cd7ab(_0x133186)){this[_0x473abc(0x208)][_0x473abc(0x1bb)](_0x473abc(0x3fa),'transformStack\x20failed!',_0x45aafb,_0x133186);break;}_0x52f5d2=_0x45aafb['c1Prime'],_0x5af60d=_0x133186['c1Prime'],_0x4e1f28[_0x473abc(0x152)]({'unitID':_0x43d9b2,'undoMutations':_0x45aafb[_0x473abc(0xd1)],'redoMutations':_0x133186[_0x473abc(0xd1)]});}return _0x4e1f28[_0x473abc(0x2e1)]();}};Mt=ua([Ue(0x0,_0x2d78d8),Ue(0x1,_0xfcd33f),Ue(0x2,_0x1bc6ba),Ue(0x3,_0x191396),Ue(0x4,_0x5cfe43)],Mt);class da extends _0x5889a4{constructor(){const _0x1ce775=_0x5009fc;super(),l(this,_0x1ce775(0x106)),this[_0x1ce775(0x106)]=_0x35b99f(window,_0x1ce775(0x2ec))[_0x1ce775(0x44f)](_0x810e9a(this[_0x1ce775(0x35c)]),_0x2ee8ad(0x1),_0x505731(void 0x0));}[_0x5009fc(0x3ee)](_0x2f220f,_0x54df37,_0x5ba455=!0x1){const _0x1884c0=_0x5009fc,_0x21e573=new URL(window[_0x1884c0(0x1a1)][_0x1884c0(0x326)]);_0x21e573['searchParams']['set'](_0x2f220f,_0x54df37),_0x5ba455?window[_0x1884c0(0x2ab)][_0x1884c0(0x20a)]('','',_0x21e573[_0x1884c0(0x449)]()):window[_0x1884c0(0x2ab)][_0x1884c0(0x181)]('','',_0x21e573[_0x1884c0(0x449)]());}[_0x5009fc(0x328)](_0x2a0736,_0x195190=!0x1){const _0x32aaee=_0x5009fc,_0x24c480=new URL(window[_0x32aaee(0x1a1)]['href']);_0x24c480[_0x32aaee(0x278)][_0x32aaee(0x184)](_0x2a0736),_0x195190?window[_0x32aaee(0x2ab)]['replaceState']('','',_0x24c480['toString']()):window['history']['pushState']('','',_0x24c480[_0x32aaee(0x449)]());}[_0x5009fc(0x366)](_0x1ad604){const _0x2f7a95=_0x5009fc;var _0x33d4fe;return(_0x33d4fe=new URL(window['location'][_0x2f7a95(0x326)])[_0x2f7a95(0x278)]['get'](_0x1ad604))!=null?_0x33d4fe:void 0x0;}}var Qs=Object[_0x5009fc(0x235)],ma=Object['getOwnPropertyDescriptor'],fa=(_0x7cd04d,_0x51bd0c,_0x50cfd1)=>_0x51bd0c in _0x7cd04d?Qs(_0x7cd04d,_0x51bd0c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50cfd1}):_0x7cd04d[_0x51bd0c]=_0x50cfd1,ga=(_0x35cc68,_0x315e18,_0x3497df,_0x352dd5)=>{const _0x4c8484=_0x5009fc;for(var _0x1c9a96=_0x352dd5>0x1?void 0x0:_0x352dd5?ma(_0x315e18,_0x3497df):_0x315e18,_0x408b32=_0x35cc68[_0x4c8484(0x21e)]-0x1,_0x181b0a;_0x408b32>=0x0;_0x408b32--)(_0x181b0a=_0x35cc68[_0x408b32])&&(_0x1c9a96=(_0x352dd5?_0x181b0a(_0x315e18,_0x3497df,_0x1c9a96):_0x181b0a(_0x1c9a96))||_0x1c9a96);return _0x352dd5&&_0x1c9a96&&Qs(_0x315e18,_0x3497df,_0x1c9a96),_0x1c9a96;},Ve=(_0x5f0782,_0x5a3f4b)=>(_0x4ef9bf,_0x5a7301)=>_0x5a3f4b(_0x4ef9bf,_0x5a7301,_0x5f0782),Sa=(_0x3a5f29,_0x95e05c,_0xe3c183)=>fa(_0x3a5f29,_0x95e05c+'',_0xe3c183);const pa=_0x5009fc(0x2e4);let At=class extends _0x5daa5a{constructor(_0x4037bc=jn,_0x4e619c,_0x513ace,_0x25b540,_0x5633e6){const _0x7baa8e=_0x5009fc;super(),this[_0x7baa8e(0x2d3)]=_0x4037bc,this[_0x7baa8e(0x208)]=_0x4e619c,this[_0x7baa8e(0x2ca)]=_0x513ace,this[_0x7baa8e(0x448)]=_0x25b540,this[_0x7baa8e(0x361)]=_0x5633e6;const {..._0xd13aec}=this[_0x7baa8e(0x2d3)];this[_0x7baa8e(0x361)][_0x7baa8e(0x1aa)]($,_0xd13aec);}[_0x5009fc(0xdd)](){const _0x4aebdf=_0x5009fc;this[_0x4aebdf(0x2a3)](),_0x1e9d2e(this[_0x4aebdf(0x448)],[[ve],[Je],[et]]);}[_0x5009fc(0x3b0)](){const _0x5c5154=_0x5009fc;_0x1e9d2e(this[_0x5c5154(0x448)],[[ze]]);}[_0x5009fc(0x2cc)](){const _0x2dd6bc=_0x5009fc;this[_0x2dd6bc(0x324)]();}['_registerDependencies'](){const _0x10a1bb=_0x5009fc;var _0x256810,_0x345882,_0x106adb,_0x504995;this[_0x10a1bb(0x448)][_0x10a1bb(0x2b0)](_0xf4d2d4)&&this['_logService'][_0x10a1bb(0x1bb)](_0x10a1bb(0x137),_0x10a1bb(0x403));let _0x39917a=[[_0xf4d2d4,{'useClass':Mt}],[he],[Gt],[_0x3a167c],[Zs,{'useClass':da}],[ce],[w],[_0x4a2775],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[Vs],[et],[Bs,{'useClass':(_0x345882=(_0x256810=this['_config'])==null?void 0x0:_0x256810[_0x10a1bb(0x14d)])!=null?_0x345882:Ct}],[_0x930210,{'useClass':_0x3f6857}],[_0x180893,{'useClass':Nt}],[_0x25d73f,{'useClass':yt}],[_0x2be35a,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0x106adb=this[_0x10a1bb(0x2d3)])!=null&&_0x106adb[_0x10a1bb(0x338)]&&_0x39917a[_0x10a1bb(0x152)]([tt,{'useClass':Sr}]),_0x39917a=_0x1224cf(_0x39917a,(_0x504995=this['_config'])==null?void 0x0:_0x504995['override']),_0x39917a['forEach'](_0x43f670=>this[_0x10a1bb(0x448)][_0x10a1bb(0x3ea)](_0x43f670)),this['_initModules']();}[_0x5009fc(0x324)](){const _0x1d8927=_0x5009fc;this[_0x1d8927(0x341)](this[_0x1d8927(0x2ca)][_0x1d8927(0x3a6)](_0x53f477[_0x1d8927(0x36f)],[wt])),this[_0x1d8927(0x341)](this[_0x1d8927(0x2ca)]['registerRenderModule'](_0x53f477['UNIVER_SHEET'],[Pt]));}[_0x5009fc(0x2ce)](){const _0x4add9e=_0x5009fc;var _0x10e567,_0x53717f;this[_0x4add9e(0x448)][_0x4add9e(0x381)](_0x3a167c)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x1d972c({'maxParallel':0x6})}),this[_0x4add9e(0x448)]['get'](Qe),(_0x10e567=this[_0x4add9e(0x2d3)])!=null&&_0x10e567[_0x4add9e(0x3e9)]||this[_0x4add9e(0x448)][_0x4add9e(0x381)](w)[_0x4add9e(0x1d2)](),(_0x53717f=this[_0x4add9e(0x2d3)])!=null&&_0x53717f[_0x4add9e(0x418)]&&this['_injector'][_0x4add9e(0x381)](Ze),this[_0x4add9e(0x448)][_0x4add9e(0x381)](Le),this[_0x4add9e(0x448)][_0x4add9e(0x2b0)](Me)&&this[_0x4add9e(0x448)][_0x4add9e(0x381)](Me);}};Sa(At,'pluginName',pa),At=ga([_0x39ac8b(_0x165c9d),Ve(0x1,_0x5cfe43),Ve(0x2,_0x7fdfc4),Ve(0x3,_0x1f955f(_0x97bef)),Ve(0x4,_0x4b96c2)],At);export{Fo as AUTHZ_URL_KEY,yt as AuthzIoHttpService,Mn as COLLAB_SUBMIT_CHANGESET_URL_KEY,Tn as COLLAB_WEB_SOCKET_URL_KEY,Le as CollaborationController,qe as CollaborationEntity,bt as CollaborationSession,he as CollaborationSessionService,Ct as CollaborationSocketService,P as CollaborationStatus,To as CollaborationStatusDisplay,Vs as CommentService,Je as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,On as HEARTBEAT_INTERVAL_KEY,js as HEARTBEAT_TIMEOUT_KEY,Bs as ICollaborationSocketService,Zs as IURLService,Ut as ImageIoService,Un as LOCAL_CACHE_INTERVAL_KEY,Ln as LOGIN_URL_KEY,w as LocalCacheService,Pn as RETRY_CONNECTING_MAX_COUNT_KEY,Ha as SEND_CHANGESET_TIMEOUT_KEY,In as SNAPSHOT_SERVER_URL_KEY,Cn as SNAPSHOT_URL_KEY,Y as SessionStatus,no as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,da as WebURLService,Hn as deserializeToCombResponse,xn as serializeCombRequest};
|
1
|
+
const _0x513b3b=_0x1736;(function(_0xb1c523,_0x39f4af){const _0x47f0af=_0x1736,_0x54daa3=_0xb1c523();while(!![]){try{const _0x390366=-parseInt(_0x47f0af(0x4b0))/0x1*(parseInt(_0x47f0af(0x39a))/0x2)+parseInt(_0x47f0af(0x315))/0x3*(-parseInt(_0x47f0af(0x25b))/0x4)+-parseInt(_0x47f0af(0x4ce))/0x5*(-parseInt(_0x47f0af(0x46d))/0x6)+parseInt(_0x47f0af(0x3c0))/0x7+parseInt(_0x47f0af(0x26f))/0x8*(parseInt(_0x47f0af(0x416))/0x9)+parseInt(_0x47f0af(0x354))/0xa*(-parseInt(_0x47f0af(0x426))/0xb)+parseInt(_0x47f0af(0x48b))/0xc;if(_0x390366===_0x39f4af)break;else _0x54daa3['push'](_0x54daa3['shift']());}catch(_0x2f142b){_0x54daa3['push'](_0x54daa3['shift']());}}}(_0x26a0,0x620db));var ri=Object[_0x513b3b(0x1a5)],oi=(_0x24d67e,_0x220128,_0x12e7c1)=>_0x220128 in _0x24d67e?ri(_0x24d67e,_0x220128,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12e7c1}):_0x24d67e[_0x220128]=_0x12e7c1,l=(_0x238b35,_0x447a02,_0x4e1b5b)=>oi(_0x238b35,typeof _0x447a02!=_0x513b3b(0x41f)?_0x447a02+'':_0x447a02,_0x4e1b5b);import{createIdentifier as _0x52354a,Inject as _0x53ed15,Disposable as _0x5f406a,DisposableCollection as _0x37f93f,toDisposable as _0x29caef,IConfigService as _0x17c84c,ILogService as _0x385fd2,UserManagerService as _0x445c19,UniverInstanceType as _0x743738,IUniverInstanceService as _0x4c005a,LocaleService as _0x1deb41,Optional as _0x507395,RxDisposable as _0x346899,Injector as _0x3165b6,Tools as _0x31cbda,ILocalStorageService as _0x476566,Rectangle as _0x3deb79,ICommandService as _0x8348c,JSONX as _0x494871,CommandType as _0x4e2bbf,IPermissionService as _0x5f5b14,IUndoRedoService as _0x3e29a6,sequenceExecute as _0x21da1f,debounce as _0x2cf035,COLORS as _0x3de4d2,ColorKit as _0x181f1a,ThemeService as _0xe610aa,fromEventSubject as _0x27e3fd,useDependency as _0x414f16,connectInjector as _0x11ef5a,Workbook as _0x15ef00,isInternalEditorID as _0x6693b5,LocalUndoRedoService as _0x57dce3,IContextService as _0x4af0dd,DependentOn as _0x38b61b,Plugin as _0x2c2bef,touchDependencies as _0x578643,IAuthzIoService as _0x388a42,mergeOverrideWithDependencies as _0x1432ec}from'@univerjs/core';import{Subject as _0x210aee,merge as _0x2f0d88,takeUntil as _0x3bacfd,BehaviorSubject as _0x1edb16,distinctUntilChanged as _0x504670,fromEvent as _0x2832fb,ReplaySubject as _0x3f0a22,take as _0x549142,map as _0x1744c3,shareReplay as _0x1fbf92,of as _0x207817,debounceTime as _0x28cdbb,filter as _0x2ffc6e,switchMap as _0x1317fa,combineLatest as _0x3ff449,concatMap as _0x40a3d7,mapTo as _0x2f02b3}from'rxjs';import{map as _0x50a0b8,take as _0xe6e64a,filter as _0x5bfb9e,delay as _0x3b7ba7,throttleTime as _0x10e087,takeUntil as _0x453931,switchMap as _0x31790b}from'rxjs/operators';import{MessageType as _0x1f1b3b,Tooltip as _0x1850eb}from'@univerjs/design';import{IBeforeCloseService as _0x2077b2,IMessageService as _0x4608dc,INotificationService as _0x1380e0,useObservable as _0x1e1202,BuiltInUIPart as _0x5d8ddb,IUIPartsService as _0x55a85e}from'@univerjs/ui';import{HTTPService as _0x444e74,WebSocketService as _0x40597f,MergeInterceptorFactory as _0x23483c,HTTPRequest as _0x367db5,IHTTPImplementation as _0x34d3c8,XHRHTTPImplementation as _0x1f0359,ThresholdInterceptorFactory as _0x6ca340}from'@univerjs/network';import{CollaborationEvent as _0x46c90b,parseChangesetToProtocol as _0x2297ac,ISnapshotServerService as _0x2c1fe9,isTransformMutationFailure as _0x24fa2f,isTransformMutationsWithChangesetSuccess as _0x16b713,ITransformService as _0x2e5ae8,RevisionService as _0x231b85,mapDocumentTypeToUniverType as _0x376ae6,isTransformChangesetsSuccess as _0x987caa,CompressMutationService as _0x227dad,parseProtocolChangeset as _0x80fd6,SnapshotService as _0x536a79,textEncoder as _0x4e9464,b64DecodeUnicode as _0x54fe81,isTransformMutationsWithChangesetFailure as _0x578d17,UniverCollaborationPlugin as _0x5498e7}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x28e1be}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x163018,DocStateChangeManagerService as _0x1896f0,NodePositionConvertToCursor as _0xe31355,isValidRectRange as _0x4350fa,NodePositionConvertToRectRange as _0x4151a8,TEXT_RANGE_LAYER_INDEX as _0x441006,SetDocZoomRatioOperation as _0x26e6cb}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x4c5ec4,SetSelectionsOperation as _0x246d31,InsertSheetMutation as _0x456f7d,EmptyMutation as _0x71deda,WorkbookEditablePermission as _0x40e1c4,RefRangeService as _0x4a88f5,EffectRefRangId as _0x21405f,handleIRemoveRow as _0x2275d3,handleIRemoveCol as _0x3ff3f3,handleMoveRange as _0x50ae63,handleInsertRow as _0x42fbc0,handleInsertRangeMoveRight as _0x44ef57,handleInsertRangeMoveDown as _0x3b4b4d,handleInsertCol as _0x53a592,handleDeleteRangeMoveUp as _0x3747a5,handleDeleteRangeMoveLeft as _0x12b3ee,runRefRangeMutations as _0x2d1b7f,SetWorksheetActivateCommand as _0xc656da}from'@univerjs/sheets';import{IRenderManagerService as _0xdb11a1,Shape as _0x284381,Rect as _0x57bf2c,getColor as _0x2e720d,RegularPolygon as _0x36c04f,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5264bf,Vector2 as _0x45e6c1}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x2d5996,RichTextEditingMutation as _0x599177,SetTextSelectionsOperation as _0x2e8d24,DocSkeletonManagerService as _0x2a6fef}from'@univerjs/docs';import{ImageSourceType as _0x361782,ImageUploadStatusType as _0x4458b5,IImageIoService as _0xb13959}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x4af056,serializeRangeWithSheet as _0x4f040d}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x3dfcbb,VIEWPORT_KEY as _0x4a3083,getCoordByCell as _0x4c9650,getSheetObject as _0x9b1a87,SheetPermissionInitController as _0x48dac1}from'@univerjs/sheets-ui';import _0x30d3ac,{forwardRef as _0x33fc8d,useRef as _0x3dd20f,createElement as _0x3a56da,useCallback as _0x162ab0}from'react';import{IRemoteInstanceService as _0x5a5e3a}from'@univerjs/rpc';import{getAttachHeader as _0x5841f9}from'@univerjs-pro/license';const In='SNAPSHOT_SERVER_URL_KEY',En=_0x513b3b(0x3ea),Cn=_0x513b3b(0x1b5),Ha=_0x513b3b(0x17c),bn=0x7d0,Tn=_0x513b3b(0x410),Rn='ws://127.0.0.1:8000/universer-api/comb/connect',On=_0x513b3b(0x45d),Dn=0x7530,js=_0x513b3b(0x4d4),Hs=0x4e20,wn=0x4e20,Pn=_0x513b3b(0x2dd),yn=0x3,Un='LOCAL_CACHE_INTERVAL',Nn=0x3e8,Mn=_0x513b3b(0x2d8),An=_0x513b3b(0x2b0),Ln=_0x513b3b(0x367),$n=_0x513b3b(0x20d);var xs=(_0xfb062f=>(_0xfb062f[_0xfb062f[_0x513b3b(0x1e3)]=0x0]=_0x513b3b(0x1e3),_0xfb062f[_0xfb062f['OK']=0x1]='OK',_0xfb062f[_0xfb062f['INTERNAL_ERROR']=0x2]=_0x513b3b(0x3ff),_0xfb062f[_0xfb062f['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0xfb062f[_0xfb062f['NOT_FOUND']=0x4]=_0x513b3b(0x147),_0xfb062f[_0xfb062f[_0x513b3b(0x337)]=0x5]=_0x513b3b(0x337),_0xfb062f[_0xfb062f[_0x513b3b(0x157)]=0x6]=_0x513b3b(0x157),_0xfb062f[_0xfb062f[_0x513b3b(0x343)]=0x7]=_0x513b3b(0x343),_0xfb062f[_0xfb062f[_0x513b3b(0x40d)]=0x8]='TOO_MANY_REQUESTS',_0xfb062f[_0xfb062f['COMPLETION_FINISHED']=0x9]=_0x513b3b(0x432),_0xfb062f[_0xfb062f[_0x513b3b(0x394)]=0x1389]=_0x513b3b(0x394),_0xfb062f[_0xfb062f['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x513b3b(0x468),_0xfb062f[_0xfb062f[_0x513b3b(0x292)]=0x1772]=_0x513b3b(0x292),_0xfb062f[_0xfb062f[_0x513b3b(0x1d1)]=0x1773]=_0x513b3b(0x1d1),_0xfb062f[_0xfb062f[_0x513b3b(0x1ae)]=0x1b59]=_0x513b3b(0x1ae),_0xfb062f[_0xfb062f['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x513b3b(0x26b),_0xfb062f[_0xfb062f[_0x513b3b(0x174)]=0x1b5b]=_0x513b3b(0x174),_0xfb062f[_0xfb062f['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x513b3b(0x179),_0xfb062f[_0xfb062f[_0x513b3b(0x254)]=0x1b5d]=_0x513b3b(0x254),_0xfb062f[_0xfb062f[_0x513b3b(0x44d)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0xfb062f[_0xfb062f[_0x513b3b(0x319)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0xfb062f[_0xfb062f[_0x513b3b(0x19f)]=0x232a]=_0x513b3b(0x19f),_0xfb062f[_0xfb062f['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x513b3b(0x47d),_0xfb062f[_0xfb062f[_0x513b3b(0x3ad)]=0x232c]=_0x513b3b(0x3ad),_0xfb062f[_0xfb062f['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0xfb062f[_0xfb062f[_0x513b3b(0x1df)]=0x2711]=_0x513b3b(0x1df),_0xfb062f[_0xfb062f[_0x513b3b(0x3d1)]=0x2712]=_0x513b3b(0x3d1),_0xfb062f[_0xfb062f['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x513b3b(0x1d5),_0xfb062f[_0xfb062f[_0x513b3b(0x470)]=0x2714]=_0x513b3b(0x470),_0xfb062f[_0xfb062f[_0x513b3b(0x393)]=-0x1]=_0x513b3b(0x393),_0xfb062f))(xs||{}),k=(_0x46a48f=>(_0x46a48f[_0x46a48f[_0x513b3b(0x2c3)]=0x0]='UNIVER_UNKNOWN',_0x46a48f[_0x46a48f[_0x513b3b(0x1a4)]=0x1]='UNIVER_DOC',_0x46a48f[_0x46a48f[_0x513b3b(0x3b6)]=0x2]='UNIVER_SHEET',_0x46a48f[_0x46a48f['UNIVER_SLIDE']=0x3]=_0x513b3b(0x278),_0x46a48f[_0x46a48f[_0x513b3b(0x1ac)]=0x4]=_0x513b3b(0x1ac),_0x46a48f[_0x46a48f[_0x513b3b(0x393)]=-0x1]=_0x513b3b(0x393),_0x46a48f))(k||{}),I=(_0x47d883=>(_0x47d883[_0x47d883[_0x513b3b(0x3d2)]=0x0]='UNKNOWN_CMD',_0x47d883[_0x47d883['HELLO']=0x1]=_0x513b3b(0x27f),_0x47d883[_0x47d883[_0x513b3b(0x341)]=0x2]=_0x513b3b(0x341),_0x47d883[_0x47d883[_0x513b3b(0x2c5)]=0x3]='LEAVE',_0x47d883[_0x47d883[_0x513b3b(0x310)]=0x4]=_0x513b3b(0x310),_0x47d883[_0x47d883['HEARTBEAT']=0x5]=_0x513b3b(0x300),_0x47d883[_0x47d883[_0x513b3b(0x3c4)]=0x6]='RECV',_0x47d883[_0x47d883[_0x513b3b(0x393)]=-0x1]=_0x513b3b(0x393),_0x47d883))(I||{}),Vt=(_0x279930=>(_0x279930[_0x279930[_0x513b3b(0x1bf)]=0x0]='UNKNOWN_CODE',_0x279930[_0x279930['OK']=0x1]='OK',_0x279930[_0x279930[_0x513b3b(0x4d2)]=0x2]=_0x513b3b(0x4d2),_0x279930[_0x279930[_0x513b3b(0x393)]=-0x1]=_0x513b3b(0x393),_0x279930))(Vt||{}),ks=(_0x1a1aae=>(_0x1a1aae[_0x1a1aae['Undefined']=0x0]=_0x513b3b(0x241),_0x1a1aae[_0x1a1aae[_0x513b3b(0x326)]=0x1]=_0x513b3b(0x326),_0x1a1aae[_0x1a1aae['HttpExport']=0x2]=_0x513b3b(0x14d),_0x1a1aae[_0x1a1aae[_0x513b3b(0x1c3)]=0x3]='UnitEmbedded',_0x1a1aae[_0x1a1aae[_0x513b3b(0x159)]=0x4]=_0x513b3b(0x159),_0x1a1aae[_0x1a1aae[_0x513b3b(0x393)]=-0x1]=_0x513b3b(0x393),_0x1a1aae))(ks||{});const $='collaboration-client.config',jn={};function Hn(_0x24731a){const _0x1dac29=_0x513b3b;var _0x2ef85a,_0x26a39f,_0x30c9ad,_0x476949,_0x49f86d;const _0x1553e7=_0x24731a['data'],_0x69348a=JSON['parse'](_0x1553e7);switch(_0x69348a[_0x1dac29(0x322)]){case I[_0x1dac29(0x300)]:case I[_0x1dac29(0x27f)]:{const _0x1d6529=_0x69348a[_0x1dac29(0x4b6)];return{..._0x69348a,'data':_0x1d6529,'cmd':_0x69348a['cmd']};}case I['JOIN']:{const _0x1b9160=_0x69348a[_0x1dac29(0x3a9)];return{..._0x69348a,'data':_0x1b9160,'cmd':_0x69348a['cmd']};}case I[_0x1dac29(0x3c4)]:{const _0x18dba7=_0x69348a[_0x1dac29(0x39f)];switch(_0x18dba7[_0x1dac29(0x2db)]){case _0x46c90b[_0x1dac29(0x4ba)]:return{..._0x69348a,'data':{..._0x18dba7,'data':(_0x2ef85a=_0x18dba7[_0x1dac29(0x3f0)])==null?void 0x0:_0x2ef85a['cs']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x3cf)]:return{..._0x69348a,'data':{..._0x18dba7,'data':(_0x26a39f=_0x18dba7['csAckEvent'])==null?void 0x0:_0x26a39f['cs']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x2c7)]:return{..._0x69348a,'data':{..._0x18dba7,'data':(_0x30c9ad=_0x18dba7[_0x1dac29(0x298)])==null?void 0x0:_0x30c9ad['cs']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x377)]:return{..._0x69348a,'data':{..._0x18dba7,'data':(_0x476949=_0x18dba7['csRejEvent'])==null?void 0x0:_0x476949['cs']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x435)]:return{..._0x69348a,'data':{..._0x18dba7,'data':(_0x49f86d=_0x18dba7[_0x1dac29(0x48e)])==null?void 0x0:_0x49f86d['cs']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x4d3)]:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7['updateCursorEvent']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b['USERS_ENTER']:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7[_0x1dac29(0x366)]},'cmd':_0x69348a['cmd']};case _0x46c90b['USERS_LEAVE']:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7[_0x1dac29(0x45a)]},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x404)]:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7['liveShareNewHost']},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x4aa)]:case _0x46c90b['LIVESHARE_OPERATION']:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7['liveShareOperation']},'cmd':_0x69348a['cmd']};case _0x46c90b['LIVESHARE_TERMINATE']:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7[_0x1dac29(0x167)]},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b[_0x1dac29(0x34b)]:return{..._0x69348a,'data':_0x18dba7,'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b['COMMENT_UPDATE']:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7[_0x1dac29(0x226)]},'cmd':_0x69348a[_0x1dac29(0x322)]};case _0x46c90b['UPDATE_PERMISSION_OBJ']:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7[_0x1dac29(0x455)]},'cmd':_0x69348a['cmd']};case _0x46c90b[_0x1dac29(0x4df)]:return{..._0x69348a,'data':{..._0x18dba7,'data':_0x18dba7[_0x1dac29(0x480)]},'cmd':_0x69348a[_0x1dac29(0x322)]};default:return _0x69348a;}}default:return _0x69348a;}}function xn(_0x5d7a4b){const _0x3cea16=_0x513b3b;switch(_0x5d7a4b[_0x3cea16(0x322)]){case I[_0x3cea16(0x300)]:case I[_0x3cea16(0x27f)]:return JSON[_0x3cea16(0x42b)]({'cmd':_0x5d7a4b['cmd'],'routeKey':_0x5d7a4b['routeKey']});case I['INGEST']:{let _0x971734;switch(_0x5d7a4b['data'][_0x3cea16(0x2db)]){case _0x46c90b[_0x3cea16(0x4d3)]:{_0x971734={'eventID':_0x46c90b[_0x3cea16(0x4d3)],'updateCursorEvent':_0x5d7a4b[_0x3cea16(0x14f)][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x2b5)]:{_0x971734={'eventID':_0x46c90b[_0x3cea16(0x2b5)],'leaveEvent':_0x5d7a4b[_0x3cea16(0x14f)][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x1a8)]:{_0x971734={'eventID':_0x46c90b[_0x3cea16(0x1a8)],'joinEvent':_0x5d7a4b[_0x3cea16(0x14f)][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x404)]:{_0x971734={'eventID':_0x46c90b[_0x3cea16(0x404)],'liveShareNewHost':_0x5d7a4b['data'][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x358)]:{_0x971734={'eventID':_0x46c90b['LIVESHARE_OPERATION'],'liveShareOperation':_0x5d7a4b[_0x3cea16(0x14f)][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x312)]:{_0x971734={'eventID':_0x46c90b['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x5d7a4b[_0x3cea16(0x14f)][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x1db)]:{_0x971734={'eventID':_0x46c90b['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x5d7a4b['data'][_0x3cea16(0x14f)]};break;}case _0x46c90b[_0x3cea16(0x4aa)]:{_0x971734={'eventID':_0x46c90b[_0x3cea16(0x4aa)]};break;}default:_0x971734={'eventID':_0x5d7a4b[_0x3cea16(0x14f)][_0x3cea16(0x2db)]};}return JSON[_0x3cea16(0x42b)]({'cmd':_0x5d7a4b[_0x3cea16(0x322)],'routeKey':_0x5d7a4b[_0x3cea16(0x365)],'collaMsg':_0x971734});}case I[_0x3cea16(0x341)]:return JSON['stringify']({'cmd':_0x5d7a4b['cmd'],'routeKey':_0x5d7a4b[_0x3cea16(0x365)],'joinReq':_0x5d7a4b['data']});case I[_0x3cea16(0x2c5)]:return JSON['stringify']({'cmd':_0x5d7a4b['cmd'],'routeKey':_0x5d7a4b[_0x3cea16(0x365)],'leaveReq':_0x5d7a4b[_0x3cea16(0x14f)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var kn=Object[_0x513b3b(0x1a5)],Bn=Object[_0x513b3b(0x1be)],Vn=(_0x3f7193,_0xfc573a,_0xe14d27,_0x3d788a)=>{const _0x201731=_0x513b3b;for(var _0x22e25c=_0x3d788a>0x1?void 0x0:_0x3d788a?Bn(_0xfc573a,_0xe14d27):_0xfc573a,_0x504dc1=_0x3f7193[_0x201731(0x313)]-0x1,_0x2e4b8b;_0x504dc1>=0x0;_0x504dc1--)(_0x2e4b8b=_0x3f7193[_0x504dc1])&&(_0x22e25c=(_0x3d788a?_0x2e4b8b(_0xfc573a,_0xe14d27,_0x22e25c):_0x2e4b8b(_0x22e25c))||_0x22e25c);return _0x3d788a&&_0x22e25c&&kn(_0xfc573a,_0xe14d27,_0x22e25c),_0x22e25c;},Oe=(_0x29916e,_0x56d762)=>(_0x406882,_0x5ee466)=>_0x56d762(_0x406882,_0x5ee466,_0x29916e);const Bs=_0x52354a(_0x513b3b(0x411));function Fn(_0x24b2bd,_0x135c81,_0x347240){const _0x266587=_0x513b3b;return _0x24b2bd+'/'+_0x135c81+'/unit/'+_0x347240+_0x266587(0x19c);}let Ct=class extends _0x5f406a{constructor(_0x2fa2e9,_0x4dd819,_0x28b246,_0x1e5e66,_0x37598b){const _0x414d8c=_0x513b3b;super(),this[_0x414d8c(0x1d9)]=_0x2fa2e9,this[_0x414d8c(0x3d9)]=_0x4dd819,this[_0x414d8c(0x2cf)]=_0x28b246,this[_0x414d8c(0x4e0)]=_0x1e5e66,this[_0x414d8c(0x34c)]=_0x37598b;}[_0x513b3b(0x183)](_0xebea99){const _0x50a2c5=_0x513b3b,_0x491f9d=this['_ws'][_0x50a2c5(0x183)](_0xebea99);if(!_0x491f9d)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x31f7d2=new _0x37f93f(),_0x10edb9=new _0x210aee();_0x31f7d2[_0x50a2c5(0x2ab)](_0x491f9d[_0x50a2c5(0x4de)][_0x50a2c5(0x465)](_0x3ea02d=>_0x10edb9[_0x50a2c5(0x48d)](_0x3ea02d))),_0x31f7d2[_0x50a2c5(0x2ab)](_0x29caef(()=>_0x10edb9[_0x50a2c5(0x2ff)]()));const _0x57c7b3=new _0x210aee();_0x31f7d2[_0x50a2c5(0x2ab)](_0x491f9d[_0x50a2c5(0x43a)][_0x50a2c5(0x465)](_0x517219=>_0x57c7b3[_0x50a2c5(0x48d)](_0x517219))),_0x31f7d2[_0x50a2c5(0x2ab)](_0x29caef(()=>_0x57c7b3[_0x50a2c5(0x2ff)]()));const _0x2cb2d1=new _0x210aee();_0x31f7d2[_0x50a2c5(0x2ab)](_0x491f9d[_0x50a2c5(0x3bc)][_0x50a2c5(0x465)](_0x4d11d9=>{const _0x564a23=_0x50a2c5,_0x3243d7=Hn(_0x4d11d9);_0x2cb2d1[_0x564a23(0x48d)](_0x3243d7);})),_0x31f7d2[_0x50a2c5(0x2ab)](_0x29caef(()=>_0x2cb2d1[_0x50a2c5(0x2ff)]()));let _0x5bda8d;const _0x1009fc=()=>{const _0x4e015a=_0x50a2c5;_0x57c7b3[_0x4e015a(0x48d)](new Event(_0x4e015a(0x360))),_0x10edb9[_0x4e015a(0x48d)](new CloseEvent(_0x4e015a(0x360))),_0x5bda8d[_0x4e015a(0x2a2)]();};return _0x5bda8d={'memberID':'','close$':_0x10edb9[_0x50a2c5(0x2a4)](),'error$':_0x57c7b3['asObservable'](),'open$':_0x491f9d[_0x50a2c5(0x39b)],'message$':_0x2cb2d1[_0x50a2c5(0x2a4)](),'send':_0x328387=>{const _0x26212f=_0x50a2c5;if(_0x328387[_0x26212f(0x322)]===I[_0x26212f(0x310)]){if(_0x328387[_0x26212f(0x14f)][_0x26212f(0x2db)]===_0x46c90b[_0x26212f(0x29e)]){this['_submitChangeset'](_0x5bda8d,_0x328387[_0x26212f(0x14f)])[_0x26212f(0x2fb)](_0x78af00=>{const _0x25cb2f=_0x26212f;this['_logService'][_0x25cb2f(0x25c)](_0x78af00),_0x1009fc();});return;}if(_0x328387['data'][_0x26212f(0x2db)]===_0x46c90b[_0x26212f(0x1c6)]){const _0x346708=_0x328387[_0x26212f(0x14f)];this[_0x26212f(0x262)](_0x346708)['then'](_0x1e0b42=>{const _0x12cae9=_0x26212f;_0x2cb2d1[_0x12cae9(0x48d)]({'cmd':I[_0x12cae9(0x3c4)],'code':Vt['OK'],'routeKey':_0x346708['data'][_0x12cae9(0x44f)],'routeType':'','data':{'eventID':_0x46c90b[_0x12cae9(0x196)],'data':{'changesets':_0x1e0b42}}});})[_0x26212f(0x2fb)](_0x2d21ec=>{const _0x32d334=_0x26212f;this[_0x32d334(0x4e0)][_0x32d334(0x25c)](_0x2d21ec),_0x1009fc();});return;}}_0x491f9d[_0x26212f(0x415)](xn(_0x328387));},'close':()=>{const _0x13f8ec=_0x50a2c5;_0x491f9d[_0x13f8ec(0x2a2)](),_0x31f7d2[_0x13f8ec(0x3ce)]();}},_0x5bda8d;}async[_0x513b3b(0x22a)](_0x447006,_0x452634){const _0x5e0a72=_0x513b3b;var _0x2ce746,_0x5bbfbe;const {unitType:_0x53ee3f,unitID:_0x452b69,changeset:_0x424dd7}=_0x452634[_0x5e0a72(0x14f)],_0x29104d={'unitID':_0x452b69,'memberID':_0x447006[_0x5e0a72(0x1fc)],'type':_0x53ee3f,'changeset':_0x2297ac(_0x424dd7)},_0x54721c=this[_0x5e0a72(0x2cf)][_0x5e0a72(0x4a0)](Mn),_0x59608f=this[_0x5e0a72(0x2cf)][_0x5e0a72(0x4a0)]($),_0xa68faf=Fn((_0x5bbfbe=(_0x2ce746=_0x59608f==null?void 0x0:_0x59608f[_0x5e0a72(0x14b)])!=null?_0x2ce746:_0x54721c)!=null?_0x5bbfbe:An,_0x53ee3f,_0x452b69);try{await this[_0x5e0a72(0x1d9)][_0x5e0a72(0x34e)](_0xa68faf,{'body':_0x29104d});}catch(_0x354ee0){throw this['_logService'][_0x5e0a72(0x25c)](_0x5e0a72(0x477),_0x5e0a72(0x3fb)),_0x354ee0;}}async[_0x513b3b(0x262)](_0x5b179f){const _0x4a5e1d=_0x513b3b,{unitID:_0x3bc51b,from:_0x4ac483,to:_0x596a02,unitType:_0xc33b81}=_0x5b179f['data'];return(await this[_0x4a5e1d(0x34c)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x3bc51b,'type':_0xc33b81,'from':_0x4ac483,'to':_0x596a02}))[_0x4a5e1d(0x1e6)];}};Ct=Vn([Oe(0x0,_0x53ed15(_0x444e74)),Oe(0x1,_0x53ed15(_0x40597f)),Oe(0x2,_0x17c84c),Oe(0x3,_0x385fd2),Oe(0x4,_0x2c1fe9)],Ct);const Wn='collaboration_new_changeset';function Gn(_0x5e59c6){const _0x4d8882=_0x513b3b;return JSON[_0x4d8882(0x42b)](_0x5e59c6)[_0x4d8882(0x313)];}class Vs{constructor(){const _0x52a407=_0x513b3b;l(this,_0x52a407(0x379),new _0x210aee()),l(this,_0x52a407(0x49e),this[_0x52a407(0x379)][_0x52a407(0x2a4)]());}[_0x513b3b(0x1cf)](_0xe6f13b){const _0x1ccd30=_0x513b3b;this['_commentUpdate$'][_0x1ccd30(0x48d)](_0xe6f13b);}}var Yn=Object[_0x513b3b(0x1a5)],Kn=Object['getOwnPropertyDescriptor'],Xn=(_0x499730,_0x496103,_0x2f4b03,_0x2f67a1)=>{const _0x2b9c81=_0x513b3b;for(var _0x187ed5=_0x2f67a1>0x1?void 0x0:_0x2f67a1?Kn(_0x496103,_0x2f4b03):_0x496103,_0x95ee6f=_0x499730[_0x2b9c81(0x313)]-0x1,_0x4f0beb;_0x95ee6f>=0x0;_0x95ee6f--)(_0x4f0beb=_0x499730[_0x95ee6f])&&(_0x187ed5=(_0x2f67a1?_0x4f0beb(_0x496103,_0x2f4b03,_0x187ed5):_0x4f0beb(_0x187ed5))||_0x187ed5);return _0x2f67a1&&_0x187ed5&&Yn(_0x496103,_0x2f4b03,_0x187ed5),_0x187ed5;},as=(_0x1bdcf9,_0x18f766)=>(_0x1712e2,_0x313b9f)=>_0x18f766(_0x1712e2,_0x313b9f,_0x1bdcf9);let ce=class extends _0x5f406a{constructor(_0x1b79c6,_0x2f855f){const _0x4793f6=_0x513b3b;super(),l(this,_0x4793f6(0x266),new Map()),(this['_univerInstanceService']=_0x1b79c6,this[_0x4793f6(0x378)]=_0x2f855f,this[_0x4793f6(0x233)](_0x29caef(_0x2f0d88(this[_0x4793f6(0x4c4)][_0x4793f6(0x4d9)](_0x743738[_0x4793f6(0x3b6)])[_0x4793f6(0x33b)](_0x50a0b8(_0x140ea4=>_0x140ea4[_0x4793f6(0x389)]())),this[_0x4793f6(0x4c4)][_0x4793f6(0x4d9)](_0x743738['UNIVER_DOC'])[_0x4793f6(0x33b)](_0x50a0b8(_0x1ccad6=>_0x1ccad6[_0x4793f6(0x389)]())),this[_0x4793f6(0x4c4)][_0x4793f6(0x4d9)](_0x743738[_0x4793f6(0x278)])['pipe'](_0x50a0b8(_0x2b6b26=>_0x2b6b26[_0x4793f6(0x389)]())))[_0x4793f6(0x465)](_0x3274e9=>this[_0x4793f6(0x407)](_0x3274e9)))));}[_0x513b3b(0x332)](_0x6220aa){const _0x573344=_0x513b3b;this[_0x573344(0x378)][_0x573344(0x332)](_0x6220aa);}[_0x513b3b(0x3fe)](){return this['_userManagerService']['getCurrentUser']();}['updateMember'](_0x22b8bd,_0xdceb17){const _0x79a9a0=_0x513b3b;let _0x95ecf=this[_0x79a9a0(0x266)]['get'](_0x22b8bd);_0x95ecf||(_0x95ecf=new qn(),this[_0x79a9a0(0x266)][_0x79a9a0(0x3ca)](_0x22b8bd,_0x95ecf)),_0x95ecf[_0x79a9a0(0x3ab)](_0xdceb17);}[_0x513b3b(0x3f4)](_0xfa0c47,_0x14f0c3){const _0x32bec6=_0x513b3b,_0x1ad928=this[_0x32bec6(0x266)]['get'](_0xfa0c47);_0x1ad928&&_0x1ad928[_0x32bec6(0x3f4)](_0x14f0c3);}[_0x513b3b(0x224)](_0x55c1d2){const _0x426688=_0x513b3b;return this[_0x426688(0x266)][_0x426688(0x49f)](_0x55c1d2);}['getMember'](_0x586825,_0x864cd4){const _0x4993e2=_0x513b3b,_0x1542e0=this[_0x4993e2(0x266)][_0x4993e2(0x49f)](_0x586825);if(_0x1542e0)return _0x1542e0[_0x4993e2(0x3e0)](_0x864cd4);}[_0x513b3b(0x407)](_0x3c39c8){const _0x1098fa=_0x513b3b,_0x394a53=this[_0x1098fa(0x266)][_0x1098fa(0x49f)](_0x3c39c8);_0x394a53&&(_0x394a53[_0x1098fa(0x3ce)](),this[_0x1098fa(0x266)][_0x1098fa(0x248)](_0x3c39c8));}[_0x513b3b(0x3ce)](){const _0x1fd239=_0x513b3b;this[_0x1fd239(0x266)][_0x1fd239(0x301)](_0x347592=>_0x347592[_0x1fd239(0x3ce)]()),this[_0x1fd239(0x266)][_0x1fd239(0x4be)]();}};ce=Xn([as(0x0,_0x4c005a),as(0x1,_0x53ed15(_0x445c19))],ce);class qn extends _0x5f406a{constructor(){const _0x33cfe9=_0x513b3b;super(...arguments),l(this,_0x33cfe9(0x212),new Map());}['dispose'](){const _0x2143d2=_0x513b3b;this[_0x2143d2(0x212)]['clear']();}[_0x513b3b(0x3ab)](_0x4046bc){const _0x1b61d2=_0x513b3b;this[_0x1b61d2(0x212)][_0x1b61d2(0x3ca)](_0x4046bc['memberID'],_0x4046bc);}[_0x513b3b(0x3f4)](_0x1996dd){const _0x14fa94=_0x513b3b;this['_members'][_0x14fa94(0x248)](_0x1996dd);}[_0x513b3b(0x3e0)](_0x243a38){const _0x4b8552=_0x513b3b;return this['_members'][_0x4b8552(0x49f)](_0x243a38);}}var Jn=Object[_0x513b3b(0x1a5)],zn=Object[_0x513b3b(0x1be)],Zn=(_0x36d54e,_0x177457,_0x1ced34,_0x2bccad)=>{for(var _0x11cc9e=_0x2bccad>0x1?void 0x0:_0x2bccad?zn(_0x177457,_0x1ced34):_0x177457,_0x429923=_0x36d54e['length']-0x1,_0x47fe67;_0x429923>=0x0;_0x429923--)(_0x47fe67=_0x36d54e[_0x429923])&&(_0x11cc9e=(_0x2bccad?_0x47fe67(_0x177457,_0x1ced34,_0x11cc9e):_0x47fe67(_0x11cc9e))||_0x11cc9e);return _0x2bccad&&_0x11cc9e&&Jn(_0x177457,_0x1ced34,_0x11cc9e),_0x11cc9e;},J=(_0x2144d7,_0x5170e3)=>(_0x75c862,_0xde52f8)=>_0x5170e3(_0x75c862,_0xde52f8,_0x2144d7),Y=(_0x1120d2=>(_0x1120d2[_0x1120d2[_0x513b3b(0x17e)]=0x0]=_0x513b3b(0x17e),_0x1120d2[_0x1120d2[_0x513b3b(0x320)]=0x1]=_0x513b3b(0x320),_0x1120d2[_0x1120d2[_0x513b3b(0x44c)]=0x2]='OFFLINE',_0x1120d2[_0x1120d2[_0x513b3b(0x1f7)]=0x3]='ONLINE',_0x1120d2))(Y||{});let bt=class extends _0x346899{constructor(_0x5f549b,_0x56f09e,_0x45483e,_0x2cb26a,_0x39096b,_0x4d0c34,_0x30ad4d,_0x28ce6e,_0x38d740,_0x3c482e){const _0x4039c6=_0x513b3b;super(),l(this,_0x4039c6(0x2eb),new _0x1edb16(0x0)),l(this,_0x4039c6(0x3a6),this['_sessionStatus$'][_0x4039c6(0x2a4)]()),l(this,_0x4039c6(0x18c),new _0x210aee()),l(this,_0x4039c6(0x47b),this['_event$']['asObservable']()),l(this,'_socket'),l(this,_0x4039c6(0x250)),l(this,'_collaborationTimeoutTimer'),l(this,'_shouldReportTelemetry',!0x1),l(this,_0x4039c6(0x1c0),null),(this[_0x4039c6(0x264)]=_0x5f549b,this[_0x4039c6(0x4e0)]=_0x45483e,this[_0x4039c6(0x336)]=_0x2cb26a,this[_0x4039c6(0x26e)]=_0x39096b,this[_0x4039c6(0x2cf)]=_0x4d0c34,this[_0x4039c6(0x28c)]=_0x30ad4d,this[_0x4039c6(0x21c)]=_0x28ce6e,this[_0x4039c6(0x452)]=_0x38d740,this['_telemetryService']=_0x3c482e,this[_0x4039c6(0x1a0)]=!!this[_0x4039c6(0x231)],_0x56f09e['pipe'](_0x3bacfd(this[_0x4039c6(0x2d2)]))[_0x4039c6(0x465)](_0x39711f=>{const _0x3496fc=_0x4039c6;var _0x2c99d6;typeof _0x39711f>'u'||(this[_0x3496fc(0x1dd)]=_0x39711f,_0x39711f?(this[_0x3496fc(0x180)](_0x39711f),this['_socketMessageSubscription']=_0x39711f['message$'][_0x3496fc(0x465)](_0x376603=>{const _0x1c0b89=_0x3496fc;_0x376603[_0x1c0b89(0x365)]===this[_0x1c0b89(0x264)]&&this[_0x1c0b89(0x240)](_0x376603);})):(this[_0x3496fc(0x4c2)](),this[_0x3496fc(0x2eb)][_0x3496fc(0x48d)](0x2),(_0x2c99d6=this[_0x3496fc(0x250)])==null||_0x2c99d6[_0x3496fc(0x48a)](),this[_0x3496fc(0x250)]=null));}),this['disposeWithMe'](this[_0x4039c6(0x336)][_0x4039c6(0x4ae)](()=>{const _0x5d40d4=_0x4039c6;var _0x16ed8f;(_0x16ed8f=this['_socket'])==null||_0x16ed8f['send']({'cmd':I[_0x5d40d4(0x2c5)],'data':{'roomID':this['_unitID']}});})));}get[_0x513b3b(0x4e1)](){const _0x3930f0=_0x513b3b;return this[_0x3930f0(0x2eb)]['getValue']();}[_0x513b3b(0x45c)](){const _0x5d4527=_0x513b3b;var _0x1de65d,_0x243a62;return(_0x243a62=(_0x1de65d=this[_0x5d4527(0x1dd)])==null?void 0x0:_0x1de65d[_0x5d4527(0x1fc)])!=null?_0x243a62:null;}[_0x513b3b(0x3ce)](){const _0x49e871=_0x513b3b;super['dispose'](),this[_0x49e871(0x2d2)][_0x49e871(0x48d)](),this['dispose$'][_0x49e871(0x2ff)]();}[_0x513b3b(0x2a2)](){const _0x5f16a4=_0x513b3b;var _0x15f34,_0x4569a0;this[_0x5f16a4(0x4c2)](),(_0x15f34=this[_0x5f16a4(0x1dd)])==null||_0x15f34[_0x5f16a4(0x415)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x5f16a4(0x264)]}}),(_0x4569a0=this[_0x5f16a4(0x1dd)])==null||_0x4569a0[_0x5f16a4(0x2a2)](),this[_0x5f16a4(0x18c)][_0x5f16a4(0x2ff)](),this['_sessionStatus$']['complete'](),this[_0x5f16a4(0x3ce)]();}[_0x513b3b(0x240)](_0x5630fc){const _0x20ef6e=_0x513b3b;_0x5630fc[_0x20ef6e(0x322)]===I['JOIN']?this['_onJoinRoomEvent'](_0x5630fc):_0x5630fc[_0x20ef6e(0x322)]===I[_0x20ef6e(0x3c4)]&&this['_onRecvEvent'](_0x5630fc);}[_0x513b3b(0x180)](_0x437ae6){const _0x514eff=_0x513b3b;this['_sessionStatus$']['next'](0x1),_0x437ae6['send']({'cmd':I[_0x514eff(0x341)],'routeKey':this[_0x514eff(0x264)],'routeType':'','data':{'rooms':[{'roomID':this[_0x514eff(0x264)]}]}});}[_0x513b3b(0x351)](_0x1d7c77){const _0x2d47a4=_0x513b3b;var _0x19c549;if(_0x1d7c77[_0x2d47a4(0x1bc)]===Vt['FAIL']){this[_0x2d47a4(0x26e)][_0x2d47a4(0x32b)]({'type':_0x1f1b3b[_0x2d47a4(0x442)],'content':this[_0x2d47a4(0x28c)]['t'](_0x2d47a4(0x2a9))}),this['_sessionStatus$'][_0x2d47a4(0x48d)](0x2);return;}this[_0x2d47a4(0x2eb)][_0x2d47a4(0x48d)](0x3);const _0xc027f4=(_0x19c549=_0x1d7c77[_0x2d47a4(0x14f)][_0x2d47a4(0x36c)][this['_unitID']])==null?void 0x0:_0x19c549[_0x2d47a4(0x249)];_0xc027f4&&_0xc027f4[_0x2d47a4(0x301)](_0x2a770e=>this[_0x2d47a4(0x21c)]['updateMember'](this[_0x2d47a4(0x264)],_0x2a770e));}[_0x513b3b(0x342)](_0x37f726){const _0x44dc9f=_0x513b3b;try{const _0x463aa5=_0x37f726[_0x44dc9f(0x14f)];switch(_0x463aa5[_0x44dc9f(0x2db)]){case _0x46c90b[_0x44dc9f(0x1a8)]:this[_0x44dc9f(0x403)](_0x463aa5),this[_0x44dc9f(0x18c)][_0x44dc9f(0x48d)](_0x463aa5);break;case _0x46c90b['USERS_LEAVE']:this[_0x44dc9f(0x433)](_0x463aa5),this[_0x44dc9f(0x18c)]['next'](_0x463aa5);break;case _0x46c90b['CHANGESET_ACK']:case _0x46c90b[_0x44dc9f(0x435)]:this[_0x44dc9f(0x2ae)](),this[_0x44dc9f(0x158)](),this[_0x44dc9f(0x18c)][_0x44dc9f(0x48d)](_0x463aa5);break;case _0x46c90b[_0x44dc9f(0x34b)]:this[_0x44dc9f(0x4e0)]['error'](_0x44dc9f(0x161)+JSON[_0x44dc9f(0x42b)](_0x463aa5)),this[_0x44dc9f(0x18c)]['next'](_0x463aa5);break;case _0x46c90b[_0x44dc9f(0x1f8)]:this['_commentService'][_0x44dc9f(0x1cf)](_0x463aa5[_0x44dc9f(0x14f)]),this[_0x44dc9f(0x18c)][_0x44dc9f(0x48d)](_0x463aa5);break;default:this[_0x44dc9f(0x18c)]['next'](_0x463aa5);}}catch(_0x421722){this[_0x44dc9f(0x4e0)][_0x44dc9f(0x25c)](_0x421722,_0x37f726);}}[_0x513b3b(0x403)](_0x519b0e){const _0x103ff0=_0x513b3b;this[_0x103ff0(0x21c)][_0x103ff0(0x3ab)](this[_0x103ff0(0x264)],_0x519b0e[_0x103ff0(0x14f)]);}[_0x513b3b(0x433)](_0x392caf){const _0x52460c=_0x513b3b;this[_0x52460c(0x21c)][_0x52460c(0x3f4)](this['_unitID'],_0x392caf[_0x52460c(0x14f)]['memberID']);}async[_0x513b3b(0x415)](_0x136977,_0x4c3988){const _0x176db6=_0x513b3b;if(this['sessionStatus']!==0x3||!this[_0x176db6(0x1dd)])throw new Error(_0x176db6(0x2b3));try{_0x136977[_0x176db6(0x2db)]===_0x46c90b[_0x176db6(0x29e)]&&(this[_0x176db6(0x3c3)](),this[_0x176db6(0x463)](_0x136977)),this['_socket'][_0x176db6(0x415)]({'cmd':I[_0x176db6(0x310)],'routeKey':_0x4c3988,'routeType':'','data':_0x136977});}catch(_0x825992){this[_0x176db6(0x4e0)][_0x176db6(0x25c)](_0x825992);}}['_scheduleCollaborationTimeoutTimer'](){const _0x21dc61=_0x513b3b;var _0x20b35d;this[_0x21dc61(0x235)]=window[_0x21dc61(0x3dc)](()=>{const _0x2a37cc=_0x21dc61;this['_collaborationTimeoutTimer']=null,this[_0x2a37cc(0x26e)][_0x2a37cc(0x32b)]({'type':_0x1f1b3b[_0x2a37cc(0x1ea)],'content':this[_0x2a37cc(0x28c)]['t'](_0x2a37cc(0x363))});},(_0x20b35d=this['_configService'][_0x21dc61(0x4a0)](js))!=null?_0x20b35d:Hs);}[_0x513b3b(0x158)](){const _0x56b9da=_0x513b3b;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x56b9da(0x235)]),this[_0x56b9da(0x235)]=null);}[_0x513b3b(0x463)](_0x6f1581){const _0x40365b=_0x513b3b;if(!this['_shouldReportTelemetry'])return;const {data:_0x48e5ac}=_0x6f1581,{unitID:_0x4461c1,changeset:_0x2b6c1f}=_0x48e5ac,{mutations:_0x519b8e,type:_0x33ec9d}=_0x2b6c1f;this[_0x40365b(0x1c0)]={'unitId':_0x4461c1,'type':_0x33ec9d,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Gn(_0x519b8e)};}[_0x513b3b(0x2ae)](){const _0x1f31d4=_0x513b3b;if(this[_0x1f31d4(0x1a0)]){if(!this[_0x1f31d4(0x1c0)]){this['_logService']['error'](_0x1f31d4(0x477),_0x1f31d4(0x42e));return;}this[_0x1f31d4(0x1c0)][_0x1f31d4(0x43c)]=performance[_0x1f31d4(0x16d)](),this[_0x1f31d4(0x1c0)][_0x1f31d4(0x327)]=this[_0x1f31d4(0x1c0)][_0x1f31d4(0x43c)]-this[_0x1f31d4(0x1c0)][_0x1f31d4(0x2f9)],this[_0x1f31d4(0x231)][_0x1f31d4(0x3f8)](Wn,this[_0x1f31d4(0x1c0)]),this[_0x1f31d4(0x1c0)]=null;}}[_0x513b3b(0x4c2)](){const _0x2e8049=_0x513b3b;this[_0x2e8049(0x1c0)]=null;}};bt=Zn([J(0x2,_0x385fd2),J(0x3,_0x2077b2),J(0x4,_0x4608dc),J(0x5,_0x17c84c),J(0x6,_0x53ed15(_0x1deb41)),J(0x7,_0x53ed15(ce)),J(0x8,_0x53ed15(Vs)),J(0x9,_0x507395(_0x28e1be))],bt);var Qn=Object[_0x513b3b(0x1a5)],er=Object['getOwnPropertyDescriptor'],tr=(_0x554a1a,_0x589910,_0x3a7157,_0xd66a25)=>{const _0x37e55b=_0x513b3b;for(var _0x45e61a=_0xd66a25>0x1?void 0x0:_0xd66a25?er(_0x589910,_0x3a7157):_0x589910,_0xae8322=_0x554a1a[_0x37e55b(0x313)]-0x1,_0x53e76d;_0xae8322>=0x0;_0xae8322--)(_0x53e76d=_0x554a1a[_0xae8322])&&(_0x45e61a=(_0xd66a25?_0x53e76d(_0x589910,_0x3a7157,_0x45e61a):_0x53e76d(_0x45e61a))||_0x45e61a);return _0xd66a25&&_0x45e61a&&Qn(_0x589910,_0x3a7157,_0x45e61a),_0x45e61a;},me=(_0x54441d,_0x4672fb)=>(_0x50ba61,_0x244f34)=>_0x4672fb(_0x50ba61,_0x244f34,_0x54441d);let he=class extends _0x5f406a{constructor(_0x37bc6f,_0x4006b2,_0x129dcf,_0x2d8717,_0xd0551,_0x1ba224){const _0x2011a6=_0x513b3b;super(),l(this,_0x2011a6(0x447),new _0x1edb16(void 0x0)),l(this,_0x2011a6(0x1c5),this['_socket$'][_0x2011a6(0x2a4)]()),l(this,_0x2011a6(0x46c),null),l(this,_0x2011a6(0x24f),new Map()),l(this,'_status$',new _0x1edb16(Y['IDLE'])),l(this,_0x2011a6(0x258),this[_0x2011a6(0x1de)][_0x2011a6(0x2a4)]()),l(this,_0x2011a6(0x457),!0x1),l(this,'_retryConnectingTimer'),l(this,_0x2011a6(0x2d5),0x0),l(this,_0x2011a6(0x27c)),l(this,_0x2011a6(0x481)),(this[_0x2011a6(0x31e)]=_0x37bc6f,this[_0x2011a6(0x28c)]=_0x4006b2,this['_messageService']=_0x129dcf,this['_logService']=_0x2d8717,this[_0x2011a6(0x2cf)]=_0xd0551,this[_0x2011a6(0x1f2)]=_0x1ba224,this['_initEventListeners']());}get[_0x513b3b(0x1dd)](){const _0x3a20e4=_0x513b3b;return this[_0x3a20e4(0x447)][_0x3a20e4(0x3e2)]();}[_0x513b3b(0x353)](){const _0x32deef=_0x513b3b;this['_listenToOfflineEvent'](),this[_0x32deef(0x276)]();}['dispose'](){const _0x333efd=_0x513b3b;super['dispose'](),this[_0x333efd(0x24f)][_0x333efd(0x301)](_0x151c2b=>_0x151c2b[_0x333efd(0x3ce)]()),this[_0x333efd(0x24f)]['clear'](),this[_0x333efd(0x1de)][_0x333efd(0x2ff)]();}async[_0x513b3b(0x23e)](_0x4a68fc){const _0x1f494a=_0x513b3b;if(this['_sessions'][_0x1f494a(0x243)](_0x4a68fc))return this[_0x1f494a(0x24f)]['get'](_0x4a68fc);this[_0x1f494a(0x478)]();const _0xbebaff=this[_0x1f494a(0x31e)][_0x1f494a(0x269)](bt,_0x4a68fc,this['_socket$'][_0x1f494a(0x2a4)]());return this['_sessions'][_0x1f494a(0x3ca)](_0x4a68fc,_0xbebaff),_0xbebaff;}[_0x513b3b(0x36d)](_0x428e4e){const _0x2bb2e2=_0x513b3b;var _0x515821;const _0xbfb4b4=this['_sessions'][_0x2bb2e2(0x49f)](_0x428e4e);_0xbfb4b4&&(this[_0x2bb2e2(0x24f)][_0x2bb2e2(0x248)](_0x428e4e),_0xbfb4b4[_0x2bb2e2(0x2a2)]()),this[_0x2bb2e2(0x24f)]['size']||(_0x515821=this[_0x2bb2e2(0x1dd)])==null||_0x515821[_0x2bb2e2(0x2a2)]();}[_0x513b3b(0x43b)](){const _0x53740c=_0x513b3b;this[_0x53740c(0x2d5)]=0x0,this[_0x53740c(0x388)]!=null&&(clearTimeout(this[_0x53740c(0x388)]),this['_retryConnectingTimer']=null),this['_tryReconnect']();}[_0x513b3b(0x2e1)](){const _0x4712a8=_0x513b3b;var _0x42be1c,_0x120eb6;const _0x53c022=this['_configService'][_0x4712a8(0x4a0)](Tn),_0x36e8ef=this[_0x4712a8(0x2cf)][_0x4712a8(0x4a0)]($),_0x53b3a9=(_0x120eb6=(_0x42be1c=_0x36e8ef==null?void 0x0:_0x36e8ef['collabWebSocketUrl'])!=null?_0x42be1c:_0x53c022)!=null?_0x120eb6:Rn,_0x135c3b=this[_0x4712a8(0x1f2)]['createSocket'](_0x53b3a9);return this[_0x4712a8(0x46c)]=_0x135c3b,_0x135c3b;}[_0x513b3b(0x478)](){const _0x1283f9=_0x513b3b;var _0x7a4315,_0x565e72;try{const _0xdf3b49=(_0x565e72=(_0x7a4315=this[_0x1283f9(0x1dd)])!=null?_0x7a4315:this[_0x1283f9(0x46c)])!=null?_0x565e72:this[_0x1283f9(0x2e1)]();if(_0xdf3b49){const _0x437997=_0xdf3b49[_0x1283f9(0x415)];_0xdf3b49['send']=_0x7da819=>(this[_0x1283f9(0x1f3)](),_0x437997['apply'](_0xdf3b49,[_0x7da819])),_0xdf3b49['message$'][_0x1283f9(0x465)](_0x2fd170=>this['_onMessage'](_0xdf3b49,_0x2fd170)),_0xdf3b49[_0x1283f9(0x43a)]['pipe'](_0xe6e64a(0x1))[_0x1283f9(0x465)](_0x152a25=>this[_0x1283f9(0x4e0)]['error'](_0x1283f9(0x270),_0x152a25)),_0xdf3b49['open$'][_0x1283f9(0x33b)](_0xe6e64a(0x1))['subscribe'](()=>{const _0x5d966e=_0x1283f9;this[_0x5d966e(0x28b)](_0xdf3b49);}),_0xdf3b49[_0x1283f9(0x4de)]['pipe'](_0xe6e64a(0x1))[_0x1283f9(0x465)](_0x590e91=>{const _0x3bbd81=_0x1283f9;this['_logService']['debug'](_0x3bbd81(0x4c6),_0x3bbd81(0x32d),_0x590e91),this[_0x3bbd81(0x487)]();});}}catch(_0x2aabe9){this['_logService']['error'](_0x2aabe9),this['_onConnectionFailed']();}}[_0x513b3b(0x28b)](_0x110461){const _0x26f9b5=_0x513b3b;this[_0x26f9b5(0x4e0)][_0x26f9b5(0x2bc)](_0x26f9b5(0x4c6),_0x26f9b5(0x2fd)),_0x110461[_0x26f9b5(0x415)]({'cmd':I[_0x26f9b5(0x27f)]}),this[_0x26f9b5(0x1f3)]();}[_0x513b3b(0x41a)](){const _0x30ddf4=_0x513b3b;window[_0x30ddf4(0x2a6)](_0x30ddf4(0x1da),()=>this[_0x30ddf4(0x49b)]());}['_onOffline'](){const _0x291722=_0x513b3b;this[_0x291722(0x457)]=!0x1,this[_0x291722(0x46c)]=null,this[_0x291722(0x1de)][_0x291722(0x48d)](Y[_0x291722(0x44c)]),this[_0x291722(0x447)][_0x291722(0x48d)](null),this[_0x291722(0x3b7)](),this[_0x291722(0x3e9)]();}[_0x513b3b(0x487)](){const _0x3bbd4a=_0x513b3b;var _0x36f4f9;this[_0x3bbd4a(0x49b)](),this[_0x3bbd4a(0x2d5)]<((_0x36f4f9=this[_0x3bbd4a(0x2cf)][_0x3bbd4a(0x4a0)](Pn))!=null?_0x36f4f9:yn)?(this[_0x3bbd4a(0x26e)][_0x3bbd4a(0x32b)]({'key':_0x3bbd4a(0x4bd),'type':_0x1f1b3b[_0x3bbd4a(0x442)],'content':this[_0x3bbd4a(0x28c)]['t'](_0x3bbd4a(0x387))}),this[_0x3bbd4a(0x34f)]()):this[_0x3bbd4a(0x26e)][_0x3bbd4a(0x32b)]({'key':'collaboration-session-retry','type':_0x1f1b3b[_0x3bbd4a(0x1ea)],'content':this[_0x3bbd4a(0x28c)]['t'](_0x3bbd4a(0x334))});}[_0x513b3b(0x276)](){const _0x3f597e=_0x513b3b,_0x41428c=()=>{const _0x9fb92d=_0x1736;this[_0x9fb92d(0x1dd)]||this[_0x9fb92d(0x43b)]();},_0x4ff181=()=>{const _0x1b6e57=_0x1736;this['_socket']||document[_0x1b6e57(0x3d0)]===_0x1b6e57(0x4ab)||this['reconnect']();};window[_0x3f597e(0x2a6)](_0x3f597e(0x2a8),_0x41428c),document[_0x3f597e(0x2a6)](_0x3f597e(0x305),_0x4ff181);}[_0x513b3b(0x34f)](){const _0x2ddd94=_0x513b3b;var _0x18dc49;const _0x5d7436=this[_0x2ddd94(0x2d5)],_0xab61e7=this[_0x2ddd94(0x2cf)][_0x2ddd94(0x4a0)]($),_0x2e65a4=_0x5d7436===0x0?0x0:((_0x18dc49=_0xab61e7==null?void 0x0:_0xab61e7[_0x2ddd94(0x21a)])!=null?_0x18dc49:wn)*0x2**_0x5d7436;this[_0x2ddd94(0x388)]=window[_0x2ddd94(0x3dc)](()=>{const _0x55f808=_0x2ddd94;clearTimeout(this['_retryConnectingTimer']),this[_0x55f808(0x388)]=null,this['_tryEnsureSocket']();},_0x2e65a4),this['_retryCount']+=0x1;}[_0x513b3b(0x15b)](_0x290cf6,_0x59c3d0){const _0x50f1d1=_0x513b3b,{cmd:_0x56db27}=_0x59c3d0;_0x56db27===I[_0x50f1d1(0x27f)]&&!this[_0x50f1d1(0x457)]&&(_0x290cf6[_0x50f1d1(0x1fc)]=_0x59c3d0[_0x50f1d1(0x14f)][_0x50f1d1(0x1fc)],this[_0x50f1d1(0x447)][_0x50f1d1(0x48d)](_0x290cf6),this['_status$']['next'](Y[_0x50f1d1(0x1f7)]),this[_0x50f1d1(0x457)]=!0x0,this[_0x50f1d1(0x46c)]=null),_0x56db27===I[_0x50f1d1(0x300)]&&this[_0x50f1d1(0x3b7)](),this[_0x50f1d1(0x1f3)]();}['_rescheduleHeartbeat'](){const _0x4e0222=_0x513b3b;var _0x30c0b2;this['_clearHeartbeatTimer'](),this[_0x4e0222(0x27c)]=window[_0x4e0222(0x3dc)](()=>this['_sendHeartbeat'](),(_0x30c0b2=this[_0x4e0222(0x2cf)][_0x4e0222(0x4a0)](On))!=null?_0x30c0b2:Dn);}[_0x513b3b(0x4b5)](){const _0x5e2156=_0x513b3b;this[_0x5e2156(0x1dd)]['send']({'cmd':I[_0x5e2156(0x300)]}),this[_0x5e2156(0x3a4)]();}['_waitForHeartbeatResponse'](){const _0x494d08=_0x513b3b;var _0x7a4e31;this['_timeoutTimer']=window[_0x494d08(0x3dc)](()=>this[_0x494d08(0x487)](),(_0x7a4e31=this['_configService']['getConfig'](js))!=null?_0x7a4e31:Hs);}[_0x513b3b(0x3e9)](){const _0x153d5b=_0x513b3b;this[_0x153d5b(0x27c)]!=null&&(clearTimeout(this[_0x153d5b(0x27c)]),this[_0x153d5b(0x27c)]=null);}['_clearTimeoutTimer'](){const _0x56ca75=_0x513b3b;this[_0x56ca75(0x481)]!=null&&(clearTimeout(this[_0x56ca75(0x481)]),this[_0x56ca75(0x481)]=null);}};he=tr([me(0x0,_0x53ed15(_0x3165b6)),me(0x1,_0x53ed15(_0x1deb41)),me(0x2,_0x4608dc),me(0x3,_0x385fd2),me(0x4,_0x17c84c),me(0x5,Bs)],he);var T=[];for(var ct=0x0;ct<0x100;++ct)T[_0x513b3b(0x152)]((ct+0x100)[_0x513b3b(0x40b)](0x10)[_0x513b3b(0x193)](0x1));function sr(_0x25a653,_0x4cfe50=0x0){const _0x2500b8=_0x513b3b;return(T[_0x25a653[_0x4cfe50+0x0]]+T[_0x25a653[_0x4cfe50+0x1]]+T[_0x25a653[_0x4cfe50+0x2]]+T[_0x25a653[_0x4cfe50+0x3]]+'-'+T[_0x25a653[_0x4cfe50+0x4]]+T[_0x25a653[_0x4cfe50+0x5]]+'-'+T[_0x25a653[_0x4cfe50+0x6]]+T[_0x25a653[_0x4cfe50+0x7]]+'-'+T[_0x25a653[_0x4cfe50+0x8]]+T[_0x25a653[_0x4cfe50+0x9]]+'-'+T[_0x25a653[_0x4cfe50+0xa]]+T[_0x25a653[_0x4cfe50+0xb]]+T[_0x25a653[_0x4cfe50+0xc]]+T[_0x25a653[_0x4cfe50+0xd]]+T[_0x25a653[_0x4cfe50+0xe]]+T[_0x25a653[_0x4cfe50+0xf]])[_0x2500b8(0x4c9)]();}var xe,ir=new Uint8Array(0x10);function nr(){const _0xc113c3=_0x513b3b;if(!xe&&(xe=typeof crypto<'u'&&crypto[_0xc113c3(0x44b)]&&crypto['getRandomValues'][_0xc113c3(0x1f4)](crypto),!xe))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return xe(ir);}var rr=typeof crypto<'u'&&crypto[_0x513b3b(0x275)]&&crypto[_0x513b3b(0x275)][_0x513b3b(0x1f4)](crypto);function _0x1736(_0x5550c7,_0x277c9c){const _0x26a066=_0x26a0();return _0x1736=function(_0x173615,_0x3077b8){_0x173615=_0x173615-0x145;let _0x4d47f1=_0x26a066[_0x173615];return _0x4d47f1;},_0x1736(_0x5550c7,_0x277c9c);}const cs={'randomUUID':rr};function or(_0x14c5a5,_0x3de3b4,_0x2c0b52){const _0x42176b=_0x513b3b;if(cs[_0x42176b(0x275)]&&!_0x3de3b4&&!_0x14c5a5)return cs['randomUUID']();_0x14c5a5=_0x14c5a5||{};var _0x495478=_0x14c5a5[_0x42176b(0x34d)]||(_0x14c5a5['rng']||nr)();return _0x495478[0x6]=_0x495478[0x6]&0xf|0x40,_0x495478[0x8]=_0x495478[0x8]&0x3f|0x80,sr(_0x495478);}var ar=Object[_0x513b3b(0x1a5)],cr=Object[_0x513b3b(0x1be)],hr=(_0x45a080,_0x2f1125,_0xa542b3,_0x4ed0fb)=>{for(var _0x2a9898=_0x4ed0fb>0x1?void 0x0:_0x4ed0fb?cr(_0x2f1125,_0xa542b3):_0x2f1125,_0x438f46=_0x45a080['length']-0x1,_0x516849;_0x438f46>=0x0;_0x438f46--)(_0x516849=_0x45a080[_0x438f46])&&(_0x2a9898=(_0x4ed0fb?_0x516849(_0x2f1125,_0xa542b3,_0x2a9898):_0x516849(_0x2a9898))||_0x2a9898);return _0x4ed0fb&&_0x2a9898&&ar(_0x2f1125,_0xa542b3,_0x2a9898),_0x2a9898;},ht=(_0x1a2c7e,_0x2023d7)=>(_0x1db214,_0x1be8f8)=>_0x2023d7(_0x1db214,_0x1be8f8,_0x1a2c7e);let Ye=class{constructor(_0x408df3,_0x2a4ce7,_0x24ea5d){const _0x24ce9b=_0x513b3b;this[_0x24ce9b(0x31e)]=_0x408df3,this[_0x24ce9b(0x283)]=_0x2a4ce7,this['_renderManagerService']=_0x24ea5d;}[_0x513b3b(0x314)](_0x3e2f22){const _0x504508=_0x513b3b;this[_0x504508(0x4dd)](_0x3e2f22),this[_0x504508(0x2e7)](_0x3e2f22);}[_0x513b3b(0x26a)](_0x20ad10){const _0x188a20=_0x513b3b,{unitID:_0x39a998}=_0x20ad10,_0x34670f=this[_0x188a20(0x3b9)][_0x188a20(0x192)](_0x39a998)['with'](_0x163018),{redoCache:_0x1b1329}=_0x34670f['getUndoRedoMutationParamsCache']();if(_0x1b1329[_0x188a20(0x313)]===0x0)return _0x20ad10;let _0x12e179=_0x31cbda[_0x188a20(0x39c)](_0x20ad10[_0x188a20(0x421)][0x0]);for(let _0x18709d=0x0;_0x18709d<_0x1b1329['length'];_0x18709d++){const _0x5abbea={'id':_0x188a20(0x1dc),'params':{..._0x1b1329[_0x18709d]}},_0x559b09=this[_0x188a20(0x283)][_0x188a20(0x40a)](_0x12e179,_0x5abbea,!0x1);if(_0x24fa2f(_0x559b09))throw _0x559b09[_0x188a20(0x25c)];_0x12e179=_0x559b09['m1Prime'];}return{..._0x31cbda[_0x188a20(0x39c)](_0x20ad10),'mutations':[_0x12e179]};}[_0x513b3b(0x4dd)](_0x182cce){const _0x5c1f12=_0x513b3b,{unitID:_0xffc5b0}=_0x182cce,_0x5292f2=this['_renderManagerService'][_0x5c1f12(0x192)](_0xffc5b0)['with'](_0x163018),{undoCache:_0x3b4ade,redoCache:_0x478090}=_0x5292f2[_0x5c1f12(0x317)]();if(_0x3b4ade['length']===0x0||_0x478090[_0x5c1f12(0x313)]===0x0)return;const _0xa17ebf=[],_0x58a88b=[];let _0x4a6da1=_0x31cbda['deepClone'](_0x182cce[_0x5c1f12(0x421)][0x0]),_0x31e5e7=_0x31cbda[_0x5c1f12(0x39c)](_0x182cce[_0x5c1f12(0x421)][0x0]);for(let _0x88dc31=_0x3b4ade[_0x5c1f12(0x313)]-0x1;_0x88dc31>=0x0;_0x88dc31--){const _0x5d60a8={'id':_0x5c1f12(0x1dc),'params':{..._0x3b4ade[_0x88dc31]}},_0x19c4a2={'id':_0x5c1f12(0x1dc),'params':{..._0x478090[_0x88dc31]}},_0xb9d032=this[_0x5c1f12(0x283)][_0x5c1f12(0x40a)](_0x4a6da1,_0x5d60a8,!0x1),_0x12ed8a=this[_0x5c1f12(0x283)]['transformMutation'](_0x31e5e7,_0x19c4a2,!0x1);if(_0x24fa2f(_0xb9d032))throw _0xb9d032['error'];if(_0x24fa2f(_0x12ed8a))throw _0x12ed8a[_0x5c1f12(0x25c)];_0xa17ebf[_0x5c1f12(0x2e9)](_0xb9d032[_0x5c1f12(0x2b9)][_0x5c1f12(0x498)]),_0x58a88b[_0x5c1f12(0x2e9)](_0x12ed8a['m2Prime'][_0x5c1f12(0x498)]),_0x4a6da1=_0xb9d032[_0x5c1f12(0x4c7)],_0x31e5e7=_0x12ed8a[_0x5c1f12(0x4c7)];}_0x5292f2[_0x5c1f12(0x1fa)]({'undoCache':_0xa17ebf,'redoCache':_0x58a88b});}[_0x513b3b(0x2e7)](_0x1fe3bd){const _0x5af00c=_0x513b3b,{unitID:_0x30e49a}=_0x1fe3bd,_0x5ca008=this[_0x5af00c(0x3b9)][_0x5af00c(0x192)](_0x30e49a)[_0x5af00c(0x2b1)](_0x163018),_0x32623a=_0x5ca008['getActiveRange']();if(_0x32623a==null)return;const _0x502a44=[{'id':_0x5af00c(0x1dc),'params':{'unitId':_0x1fe3bd['unitID'],'actions':null,'textRanges':[_0x32623a]}}],_0x1ce344=this[_0x5af00c(0x283)][_0x5af00c(0x398)](_0x1fe3bd,_0x502a44);if(!_0x16b713(_0x1ce344))throw _0x1ce344['error'];const _0xe5a0d=_0x1ce344[_0x5af00c(0x2b9)][0x0]['params'][_0x5af00c(0x3b1)];Array[_0x5af00c(0x33f)](_0xe5a0d)&&_0xe5a0d[_0x5af00c(0x313)]&&_0x5ca008[_0x5af00c(0x20e)](_0xe5a0d[0x0]);}};Ye=hr([ht(0x0,_0x53ed15(_0x3165b6)),ht(0x1,_0x2e5ae8),ht(0x2,_0xdb11a1)],Ye);var lr=Object[_0x513b3b(0x1a5)],_r=Object[_0x513b3b(0x1be)],ur=(_0x150633,_0x3b65b2,_0xb83c68,_0x32b183)=>{const _0x462cd9=_0x513b3b;for(var _0x2d55c2=_0x32b183>0x1?void 0x0:_0x32b183?_r(_0x3b65b2,_0xb83c68):_0x3b65b2,_0x39fd32=_0x150633[_0x462cd9(0x313)]-0x1,_0x520c7f;_0x39fd32>=0x0;_0x39fd32--)(_0x520c7f=_0x150633[_0x39fd32])&&(_0x2d55c2=(_0x32b183?_0x520c7f(_0x3b65b2,_0xb83c68,_0x2d55c2):_0x520c7f(_0x2d55c2))||_0x2d55c2);return _0x32b183&&_0x2d55c2&&lr(_0x3b65b2,_0xb83c68,_0x2d55c2),_0x2d55c2;},De=(_0x1b6a21,_0x4ca794)=>(_0x1c57da,_0x30328a)=>_0x4ca794(_0x1c57da,_0x30328a,_0x1b6a21);let w=class extends _0x5f406a{constructor(_0x2090b3,_0x5ccc46,_0x1aaab1,_0x183bb6,_0x4394c7){const _0x556c2b=_0x513b3b;super(),l(this,_0x556c2b(0x3c5),new Map()),l(this,_0x556c2b(0x37d),new Map()),l(this,_0x556c2b(0x355),!0x1),(this[_0x556c2b(0x2cf)]=_0x2090b3,this[_0x556c2b(0x38b)]=_0x5ccc46,this[_0x556c2b(0x336)]=_0x1aaab1,this[_0x556c2b(0x28c)]=_0x183bb6,this[_0x556c2b(0x344)]=_0x4394c7,this['_setupBeforeClosingHandler']());}[_0x513b3b(0x171)](){this['_disabled']=!0x0;}[_0x513b3b(0x299)](){const _0x36d6c9=_0x513b3b;this[_0x36d6c9(0x355)]=!0x1;}['dispose'](){const _0x288c30=_0x513b3b;this[_0x288c30(0x4d8)]()[_0x288c30(0x2cd)](()=>super['dispose']());}async[_0x513b3b(0x263)](_0x455602){const _0xd4f688=_0x513b3b;return this[_0xd4f688(0x355)]?null:this[_0xd4f688(0x38b)][_0xd4f688(0x1e1)](hs(_0x455602));}async[_0x513b3b(0x2ee)](_0x194f70,_0x4db8c8){const _0x2a266c=_0x513b3b;return!!this[_0x2a266c(0x38b)][_0x2a266c(0x4a5)](_0x194f70,_0x4db8c8);}[_0x513b3b(0x400)](_0x14eb11,_0x484345,_0x11b164,_0x1f32c9){const _0x1060d5=_0x513b3b,_0x1d69ad=this[_0x1060d5(0x344)][_0x1060d5(0x324)](_0x14eb11);this[_0x1060d5(0x3c5)][_0x1060d5(0x3ca)](_0x14eb11,{'unitID':_0x14eb11,'type':_0x484345,'awaitingChangeset':_0x11b164,'mutations':_0x1f32c9,'rev':_0x1d69ad}),this[_0x1060d5(0x37d)][_0x1060d5(0x243)](_0x14eb11)||this[_0x1060d5(0x16f)](_0x14eb11);}[_0x513b3b(0x16f)](_0x31ce1b){const _0x2915ec=_0x513b3b,_0x470e4e=this[_0x2915ec(0x36a)]();_0x470e4e===0x0?this[_0x2915ec(0x3bb)](_0x31ce1b):this['_saveTaskMap'][_0x2915ec(0x3ca)](_0x31ce1b,setTimeout(()=>this['_saveCache'](_0x31ce1b),_0x470e4e));}[_0x513b3b(0x36a)](){var _0x19bad3;return(_0x19bad3=this['_configService']['getConfig'](Un))!=null?_0x19bad3:Nn;}[_0x513b3b(0x3bb)](_0x33870e){const _0x4b993f=_0x513b3b,_0x5e747a=this[_0x4b993f(0x37d)]['get'](_0x33870e);return _0x5e747a!==void 0x0&&window[_0x4b993f(0x3e7)](_0x5e747a),this[_0x4b993f(0x38b)][_0x4b993f(0x4a5)](hs(_0x33870e),this['_cachedData']['get'](_0x33870e))['then'](()=>this[_0x4b993f(0x37d)][_0x4b993f(0x248)](_0x33870e));}async[_0x513b3b(0x4d8)](){const _0x3f210b=_0x513b3b,_0x592c5f=[];this['_saveTaskMap'][_0x3f210b(0x301)]((_0x3e6ad6,_0xb72014)=>{const _0x58d538=_0x3f210b;window[_0x58d538(0x3e7)](_0x3e6ad6),_0x592c5f['push'](this[_0x58d538(0x3bb)](_0xb72014)[_0x58d538(0x2cd)](()=>{const _0x2219f8=_0x58d538;this[_0x2219f8(0x37d)][_0x2219f8(0x248)](_0xb72014);}));}),await Promise[_0x3f210b(0x30d)](_0x592c5f);}[_0x513b3b(0x369)](){const _0x2344e2=_0x513b3b;this[_0x2344e2(0x233)](this[_0x2344e2(0x336)][_0x2344e2(0x441)](()=>{const _0x5c9565=_0x2344e2;if(this[_0x5c9565(0x37d)]['size'])return this[_0x5c9565(0x28c)]['t'](_0x5c9565(0x28a));}));}};w=ur([De(0x0,_0x17c84c),De(0x1,_0x476566),De(0x2,_0x2077b2),De(0x3,_0x53ed15(_0x1deb41)),De(0x4,_0x53ed15(_0x231b85))],w);function hs(_0x32cb0b){return'unit-cache-'+_0x32cb0b;}var dr=Object[_0x513b3b(0x1a5)],mr=Object[_0x513b3b(0x1be)],fr=(_0x2050c0,_0x3b6d6e,_0x59efef,_0x379ca2)=>{const _0x18f203=_0x513b3b;for(var _0x445582=_0x379ca2>0x1?void 0x0:_0x379ca2?mr(_0x3b6d6e,_0x59efef):_0x3b6d6e,_0x50c966=_0x2050c0[_0x18f203(0x313)]-0x1,_0x17ee6c;_0x50c966>=0x0;_0x50c966--)(_0x17ee6c=_0x2050c0[_0x50c966])&&(_0x445582=(_0x379ca2?_0x17ee6c(_0x3b6d6e,_0x59efef,_0x445582):_0x17ee6c(_0x445582))||_0x445582);return _0x379ca2&&_0x445582&&dr(_0x3b6d6e,_0x59efef,_0x445582),_0x445582;},lt=(_0x23fadf,_0x2987b3)=>(_0x3cad10,_0x3dd689)=>_0x2987b3(_0x3cad10,_0x3dd689,_0x23fadf);function gr(_0x56039d){const _0x33582e=_0x513b3b,{unitID:_0x3e4bf1,mutations:_0x12e747}=_0x56039d;return{'unitId':_0x3e4bf1,'subUnitId':_0x12e747[0x0][_0x33582e(0x498)][_0x33582e(0x3df)]};}let Ke=class{constructor(_0x2cafc7,_0xd3aef6,_0x52b982){const _0x2e2eaa=_0x513b3b;this['_injector']=_0x2cafc7,this[_0x2e2eaa(0x283)]=_0xd3aef6,this[_0x2e2eaa(0x2e8)]=_0x52b982;}[_0x513b3b(0x439)](_0x1c5504){const _0xeffc6f=_0x513b3b;var _0x46ba6c,_0x2c6ac4,_0x1bc607,_0x47d6c5;const _0x569c58=this[_0xeffc6f(0x31e)]['get'](_0x4c5ec4),{unitId:_0xd60c7,subUnitId:_0x23672e}=gr(_0x1c5504),_0x309c5f=_0x569c58[_0xeffc6f(0x3ee)](_0xd60c7)['getCurrentSelections'](),_0x35c14c=(_0x2c6ac4=(_0x46ba6c=this[_0xeffc6f(0x2e8)][_0xeffc6f(0x3a8)](_0xd60c7))==null?void 0x0:_0x46ba6c['getActiveSheet']())==null?void 0x0:_0x2c6ac4[_0xeffc6f(0x27d)]();if(_0x309c5f[_0xeffc6f(0x313)]===0x0||!_0xd60c7||!_0x23672e)return;const _0x3db89d=[{'id':_0x246d31['id'],'params':{'unitId':_0xd60c7,'subUnitId':_0x35c14c,'selections':_0x31cbda['deepClone'](_0x309c5f)}}],_0x74e675=this[_0xeffc6f(0x283)][_0xeffc6f(0x398)](_0x1c5504,_0x3db89d);if(!_0x16b713(_0x74e675))throw _0x74e675[_0xeffc6f(0x25c)];const _0x37a9a8=(_0x47d6c5=(_0x1bc607=_0x74e675['m2Prime'][0x0])==null?void 0x0:_0x1bc607[_0xeffc6f(0x498)])==null?void 0x0:_0x47d6c5[_0xeffc6f(0x2ca)];if(Array[_0xeffc6f(0x33f)](_0x37a9a8)&&_0x37a9a8[_0xeffc6f(0x313)]){if(_0x37a9a8[_0xeffc6f(0x313)]===_0x3db89d[0x0][_0xeffc6f(0x498)][_0xeffc6f(0x2ca)][_0xeffc6f(0x313)]&&_0x37a9a8['every']((_0x1917c8,_0xce3e25)=>_0x3deb79[_0xeffc6f(0x287)](_0x1917c8['range'],_0x3db89d[0x0]['params'][_0xeffc6f(0x2ca)][_0xce3e25][_0xeffc6f(0x304)])))return;this['_injector'][_0xeffc6f(0x49f)](_0x8348c)[_0xeffc6f(0x374)](_0x246d31['id'],{'unitId':_0xd60c7,'subUnitId':_0x35c14c,'selections':_0x37a9a8});}}};Ke=fr([lt(0x0,_0x53ed15(_0x3165b6)),lt(0x1,_0x2e5ae8),lt(0x2,_0x4c005a)],Ke);const tt=_0x52354a(_0x513b3b(0x3af));var Fs=(_0x1a9de8=>(_0x1a9de8[_0x1a9de8[_0x513b3b(0x46b)]=0x0]=_0x513b3b(0x46b),_0x1a9de8[_0x1a9de8[_0x513b3b(0x1fe)]=0x1]=_0x513b3b(0x1fe),_0x1a9de8))(Fs||{});const ls=0x7530,_s='ACTIVE_UNIT_EVENT_CHANNEL';class Sr extends _0x5f406a{constructor(){const _0x56ec36=_0x513b3b;super(),l(this,_0x56ec36(0x418),_0x31cbda[_0x56ec36(0x22e)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x56ec36(0x209),new Map()),l(this,_0x56ec36(0x338),null),l(this,_0x56ec36(0x28f),new Map()),l(this,_0x56ec36(0x195),new Map()),this[_0x56ec36(0x49c)]();}[_0x513b3b(0x3ce)](){const _0x286b18=_0x513b3b;super[_0x286b18(0x3ce)](),this['_clearOtherTimers'][_0x286b18(0x301)]((_0x1a2f12,_0x2243fb)=>this[_0x286b18(0x236)](_0x2243fb)),this[_0x286b18(0x338)]&&window['clearInterval'](this['_heartbeatTimer']);}['getUnitStatus$'](_0xd2cba2){const _0xcc369f=_0x513b3b;return this['_ensureSubject'](_0xd2cba2)[_0xcc369f(0x33b)](_0x504670());}[_0x513b3b(0x368)](_0x3f332b){const _0x8a2e2f=_0x513b3b;this['_selfUnitIDs'][_0x8a2e2f(0x302)]===0x0&&this[_0x8a2e2f(0x1e8)](),this[_0x8a2e2f(0x169)][_0x8a2e2f(0x2ab)](_0x3f332b),this['_send']({'type':0x0,'memberID':this[_0x8a2e2f(0x418)],'unitIDs':[_0x3f332b],'isForwarded':!0x1});}['disposeUnit'](_0x20959f){const _0x104514=_0x513b3b;this[_0x104514(0x169)][_0x104514(0x248)](_0x20959f),this[_0x104514(0x169)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x104514(0x348)](this['_heartbeatTimer']);}[_0x513b3b(0x49c)](){const _0x2fba76=_0x513b3b;this['disposeWithMe'](_0x29caef(_0x2832fb(window,_0x2fba76(0x225))['subscribe'](_0x4ebd64=>{const _0x3af6b9=_0x2fba76;if(_0x4ebd64[_0x3af6b9(0x422)]!==_s||!_0x4ebd64[_0x3af6b9(0x19e)])return;const _0xc8f5e8=JSON[_0x3af6b9(0x3bf)](_0x4ebd64[_0x3af6b9(0x19e)]);this[_0x3af6b9(0x205)](_0xc8f5e8);}))),window[_0x2fba76(0x2a6)](_0x2fba76(0x493),()=>this[_0x2fba76(0x451)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x2fba76(0x256)](this['_selfUnitIDs'])}));}['_handleEvent'](_0x5feb02){const _0x4834f6=_0x513b3b;switch(_0x5feb02[_0x4834f6(0x30b)]){case 0x0:this[_0x4834f6(0x197)](_0x5feb02);break;case 0x1:this[_0x4834f6(0x163)](_0x5feb02);break;case 0x2:this[_0x4834f6(0x165)](_0x5feb02);break;}}['_handleJoinEvent'](_0x36070f){const _0xaa1348=_0x513b3b,{unitIDs:_0x2ef454,memberID:_0x101bfb,isForwarded:_0x33182a}=_0x36070f;_0x2ef454['forEach'](_0x13c955=>{const _0x2f9a25=_0x1736;if(!_0x33182a&&this[_0x2f9a25(0x209)][_0x2f9a25(0x243)](_0x13c955)&&this[_0x2f9a25(0x234)](_0x13c955)[_0x2f9a25(0x48d)](0x1),!this[_0x2f9a25(0x209)][_0x2f9a25(0x243)](_0x13c955)||!this[_0x2f9a25(0x209)]['get'](_0x13c955)[_0x2f9a25(0x243)](_0x101bfb)){const _0x4cfa39=this['_unitOnClients'][_0x2f9a25(0x49f)](_0x13c955)||new Set();_0x4cfa39[_0x2f9a25(0x2ab)](_0x101bfb),this[_0x2f9a25(0x209)][_0x2f9a25(0x3ca)](_0x13c955,_0x4cfa39),this[_0x2f9a25(0x408)](_0x101bfb);}}),_0x33182a||this['_send']({'type':0x0,'memberID':this[_0xaa1348(0x418)],'unitIDs':[...this[_0xaa1348(0x169)]],'isForwarded':!0x0});}[_0x513b3b(0x408)](_0x4257b2){const _0x588f37=_0x513b3b;this[_0x588f37(0x236)](_0x4257b2);const _0x138385=window[_0x588f37(0x3dc)](()=>{const _0x23d5c4=_0x588f37;this['_unitOnClients'][_0x23d5c4(0x301)](_0x2e798a=>{_0x2e798a['delete'](_0x4257b2);});},ls*0x2);this[_0x588f37(0x28f)][_0x588f37(0x3ca)](_0x4257b2,_0x138385);}[_0x513b3b(0x236)](_0x5c716d){const _0x2d6a04=_0x513b3b;if(this[_0x2d6a04(0x28f)][_0x2d6a04(0x243)](_0x5c716d)){const _0x2bbda3=this[_0x2d6a04(0x28f)][_0x2d6a04(0x49f)](_0x5c716d);_0x2bbda3&&window['clearTimeout'](_0x2bbda3),this['_clearOtherTimers'][_0x2d6a04(0x3ca)](_0x5c716d,null);}}['_handleLeaveEvent'](_0x13dccb){const _0x3848b0=_0x513b3b,{memberID:_0x3d7155,unitIDs:_0x523eaa}=_0x13dccb;_0x523eaa[_0x3848b0(0x301)](_0x48b625=>{const _0xdc2840=_0x3848b0;var _0x579156;const _0x8c9088=this[_0xdc2840(0x209)][_0xdc2840(0x49f)](_0x48b625);_0x8c9088&&(_0x8c9088[_0xdc2840(0x248)](_0x3d7155),(_0x579156=this[_0xdc2840(0x234)](_0x48b625))==null||_0x579156['next'](_0x8c9088['size']===0x0?0x0:0x1));}),this[_0x3848b0(0x236)](_0x3d7155);}[_0x513b3b(0x165)](_0x12fccb){const _0x42a4d5=_0x513b3b;this[_0x42a4d5(0x408)](_0x12fccb['memberID']);}[_0x513b3b(0x451)](_0x5298b2){const _0x1aaa25=_0x513b3b;localStorage[_0x1aaa25(0x4a5)](_s,JSON[_0x1aaa25(0x42b)](_0x5298b2));}[_0x513b3b(0x1e8)](){const _0x78e84c=_0x513b3b;this[_0x78e84c(0x338)]=window['setInterval'](()=>{const _0x5893ec=_0x78e84c;this[_0x5893ec(0x451)]({'type':0x2,'memberID':this['_id']});},ls);}[_0x513b3b(0x234)](_0x31f6be){const _0x14495c=_0x513b3b;return this[_0x14495c(0x195)][_0x14495c(0x243)](_0x31f6be)||this[_0x14495c(0x195)]['set'](_0x31f6be,new _0x1edb16(0x0)),this[_0x14495c(0x195)][_0x14495c(0x49f)](_0x31f6be);}}function Ws(_0x2041c4){const _0xcb19ab=_0x513b3b;let _0x10e0a3='';for(const _0x4b05c2 of _0x2041c4){const {startOffset:_0xde09d8,endOffset:_0x1471e3,isActive:_0x54e812}=_0x4b05c2;_0x10e0a3[_0xcb19ab(0x313)]&&(_0x10e0a3+=','),_0x10e0a3+=_0xde09d8+':'+_0x1471e3+':'+(_0x54e812?'1':'0');}return _0x10e0a3;}function pr(_0x42ea1e){const _0x48fc05=_0x513b3b,_0x24e2c4=_0x42ea1e['split'](','),_0x5cde43=[];for(const _0x2b0437 of _0x24e2c4){const [_0x361080,_0x471901,_0x2561d2]=_0x2b0437[_0x48fc05(0x17d)](':');_0x5cde43[_0x48fc05(0x152)]({'startOffset':Number(_0x361080),'endOffset':Number(_0x471901),'collapsed':_0x361080===_0x471901,'isActive':_0x2561d2==='1'});}return _0x5cde43['some'](_0x4fc475=>_0x4fc475['isActive'])||(_0x5cde43[0x0][_0x48fc05(0x14c)]=!0x0),_0x5cde43;}class Ft extends _0x346899{constructor(){const _0x23723c=_0x513b3b;super(...arguments),l(this,_0x23723c(0x2ed),new _0x1edb16(null)),l(this,'collabCursorState$',this[_0x23723c(0x2ed)][_0x23723c(0x2a4)]());}[_0x513b3b(0x4a8)](_0x2da066){const _0x92b94=_0x513b3b,{unitID:_0x2aa154,memberID:_0x12aa1b,textRanges:_0x488f73}=_0x2da066,_0x52c168=Ws(_0x488f73),_0x1846b1={'unitID':_0x2aa154,'memberID':_0x12aa1b,'selection':_0x52c168};this[_0x92b94(0x2ed)][_0x92b94(0x48d)](_0x1846b1);}}var vr=Object[_0x513b3b(0x1a5)],Ir=Object[_0x513b3b(0x1be)],Er=(_0x402db5,_0x2d85d6,_0x1b4851,_0x4fa3ce)=>{const _0x2145bd=_0x513b3b;for(var _0x1ec7d7=_0x4fa3ce>0x1?void 0x0:_0x4fa3ce?Ir(_0x2d85d6,_0x1b4851):_0x2d85d6,_0x5aaf19=_0x402db5[_0x2145bd(0x313)]-0x1,_0x26012b;_0x5aaf19>=0x0;_0x5aaf19--)(_0x26012b=_0x402db5[_0x5aaf19])&&(_0x1ec7d7=(_0x4fa3ce?_0x26012b(_0x2d85d6,_0x1b4851,_0x1ec7d7):_0x26012b(_0x1ec7d7))||_0x1ec7d7);return _0x4fa3ce&&_0x1ec7d7&&vr(_0x2d85d6,_0x1b4851,_0x1ec7d7),_0x1ec7d7;},us=(_0x1259b8,_0x14de44)=>(_0x47b353,_0x2193e9)=>_0x14de44(_0x47b353,_0x2193e9,_0x1259b8);let Xe=class{constructor(_0x1f1339,_0x2a845f){const _0x17978b=_0x513b3b;this[_0x17978b(0x31e)]=_0x1f1339,this['_transformService']=_0x2a845f;}[_0x513b3b(0x439)](_0xf84ae2){const _0xa0b0e7=_0x513b3b;var _0x2a530c;const _0x56ec01=this[_0xa0b0e7(0x31e)][_0xa0b0e7(0x49f)](_0x2d5996),_0x3f817f=(_0x2a530c=_0x56ec01[_0xa0b0e7(0x372)]())!=null?_0x2a530c:[];if(_0x3f817f[_0xa0b0e7(0x313)]===0x0)return;const _0x5667fe=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xf84ae2[_0xa0b0e7(0x44f)],'actions':null,'textRanges':_0x3f817f}}],_0x4a9166=this[_0xa0b0e7(0x283)][_0xa0b0e7(0x398)](_0xf84ae2,_0x5667fe);if(!_0x16b713(_0x4a9166))throw _0x4a9166[_0xa0b0e7(0x25c)];const _0x3e5176=_0x4a9166['m2Prime'][0x0]['params'][_0xa0b0e7(0x3b1)];Array['isArray'](_0x3e5176)&&_0x3e5176[_0xa0b0e7(0x313)]&&_0x56ec01[_0xa0b0e7(0x25f)](_0x3e5176,!0x1);}};Xe=Er([us(0x0,_0x53ed15(_0x3165b6)),us(0x1,_0x2e5ae8)],Xe);const Cr=new Set([_0x456f7d['id']]);function ds(_0x1770a6,_0x32f8c4,_0x28d0ff,_0x42fc2a,_0x40fc75){const _0x49b2a4=_0x513b3b;var _0x1ebeee,_0x5d2aad,_0x520f0a,_0x4c17a2;const _0x170ab7=[];for(const _0x4766ab of _0x1770a6)if(Cr[_0x49b2a4(0x243)](_0x4766ab['id'])){if(_0x170ab7[_0x49b2a4(0x313)]>0x0)break;_0x170ab7[_0x49b2a4(0x152)](_0x4766ab);break;}else _0x170ab7[_0x49b2a4(0x152)](_0x4766ab);const _0x20b8c7=(_0x5d2aad=(_0x1ebeee=_0x40fc75[_0x49b2a4(0x3fe)]())==null?void 0x0:_0x1ebeee[_0x49b2a4(0x40e)])!=null?_0x5d2aad:_0x49b2a4(0x42a),_0x45fd43=(_0x4c17a2=(_0x520f0a=_0x40fc75[_0x49b2a4(0x3fe)]())==null?void 0x0:_0x520f0a[_0x49b2a4(0x1fc)])!=null?_0x4c17a2:'unknown';return{'changeset':{'unitID':_0x32f8c4,'type':_0x376ae6(_0x28d0ff[_0x49b2a4(0x261)](_0x32f8c4)),'baseRev':_0x42fc2a['getCurrentRevOfUnit'](_0x32f8c4),'revision':0x0,'userID':_0x20b8c7,'memberID':_0x45fd43,'mutations':_0x170ab7},'pendingMutations':_0x1770a6[_0x49b2a4(0x193)](_0x170ab7['length'])};}function br(_0x4aa427,_0x481af9,_0x28191f,_0x19f9a4,_0x2aec6c){const _0x155231=_0x513b3b;var _0x171e01,_0x2a9a67,_0x20a2b1,_0x4af067;const _0x44a37a=[_0x4aa427[_0x155231(0x2cc)]((_0x562ea1,_0x20bf80)=>{const _0x3a7ca6=_0x155231;var _0x4dd4e5;const {id:_0x1d7bac}=_0x562ea1,{id:_0x3eb4de,type:_0x843b57}=_0x20bf80,_0x10612c=(_0x4dd4e5=_0x562ea1['params'])!=null?_0x4dd4e5:{'actions':null},_0x905bd9=_0x20bf80['params'];if(_0x1d7bac&&_0x1d7bac!==_0x3eb4de)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x1d7bac+_0x3a7ca6(0x15e)+_0x3eb4de+'.');return{..._0x562ea1,'id':_0x3eb4de,'type':_0x843b57,'params':{'unitId':_0x905bd9['unitId'],'textRanges':_0x905bd9[_0x3a7ca6(0x3b1)],'actions':_0x494871[_0x3a7ca6(0x412)](_0x10612c[_0x3a7ca6(0x458)],_0x905bd9[_0x3a7ca6(0x458)])}};},{})],_0x369db6=(_0x2a9a67=(_0x171e01=_0x2aec6c[_0x155231(0x3fe)]())==null?void 0x0:_0x171e01[_0x155231(0x40e)])!=null?_0x2a9a67:'unknown',_0x2f8065=(_0x4af067=(_0x20a2b1=_0x2aec6c[_0x155231(0x3fe)]())==null?void 0x0:_0x20a2b1[_0x155231(0x1fc)])!=null?_0x4af067:_0x155231(0x42a);return{'changeset':{'unitID':_0x481af9,'type':_0x376ae6(_0x28191f[_0x155231(0x261)](_0x481af9)),'baseRev':_0x19f9a4[_0x155231(0x324)](_0x481af9),'revision':0x0,'userID':_0x369db6,'memberID':_0x2f8065,'mutations':_0x44a37a},'pendingMutations':[]};}function Gs(_0x33826d,_0x125536){const _0xa66877=_0x513b3b,_0x37583d=new _0x3f0a22(0x1);return setTimeout(()=>_0x37583d[_0xa66877(0x48d)](_0x125536),_0x33826d),_0x37583d[_0xa66877(0x2a4)]()[_0xa66877(0x33b)](_0x549142(0x1));}const Tr={'id':_0x71deda['id'],'type':_0x4e2bbf['MUTATION'],'params':{}};var Rr=Object[_0x513b3b(0x1a5)],Or=Object[_0x513b3b(0x1be)],_e=(_0x265ba1,_0x400053,_0x46f823,_0x504f36)=>{const _0xb35238=_0x513b3b;for(var _0x567891=_0x504f36>0x1?void 0x0:_0x504f36?Or(_0x400053,_0x46f823):_0x400053,_0x3dd8c9=_0x265ba1[_0xb35238(0x313)]-0x1,_0x3e0769;_0x3dd8c9>=0x0;_0x3dd8c9--)(_0x3e0769=_0x265ba1[_0x3dd8c9])&&(_0x567891=(_0x504f36?_0x3e0769(_0x400053,_0x46f823,_0x567891):_0x3e0769(_0x567891))||_0x567891);return _0x504f36&&_0x567891&&Rr(_0x400053,_0x46f823,_0x567891),_0x567891;},f=(_0x59e2da,_0x6f8396)=>(_0x12b3d8,_0x553e7e)=>_0x6f8396(_0x12b3d8,_0x553e7e,_0x59e2da),P=(_0x5201a4=>(_0x5201a4['NOT_COLLAB']='not_collab',_0x5201a4[_0x513b3b(0x149)]=_0x513b3b(0x3fa),_0x5201a4[_0x513b3b(0x2a3)]='pending',_0x5201a4['AWAITING']='awaiting',_0x5201a4[_0x513b3b(0x3f9)]='awaiting_with_pending',_0x5201a4['FETCH_MISS']=_0x513b3b(0x44e),_0x5201a4[_0x513b3b(0x230)]='conflict',_0x5201a4['OFFLINE']=_0x513b3b(0x1da),_0x5201a4))(P||{});const Ys=0xea60;class ue{constructor(_0x142fed,_0x46e23c,_0x26cfc3,_0x21115a,_0x2f0bf8,_0x582f1d,_0x523d78,_0xcf4262,_0x129ec6){const _0x355e4c=_0x513b3b;l(this,'_awaitingChangeset',null),l(this,_0x355e4c(0x47a),[]),(this[_0x355e4c(0x44f)]=_0x142fed,this[_0x355e4c(0x30b)]=_0x46e23c,this[_0x355e4c(0x2d1)]=_0x2f0bf8,this['_commandService']=_0x582f1d,this[_0x355e4c(0x222)]=_0x523d78,this[_0x355e4c(0x344)]=_0xcf4262,this[_0x355e4c(0x2be)]=_0x129ec6,this['_awaitingChangeset']=_0x26cfc3,this[_0x355e4c(0x47a)]=_0x21115a);}['_checkMissing'](_0x2641dd){const _0x1880d2=_0x513b3b,_0x5c1311=this[_0x1880d2(0x344)][_0x1880d2(0x324)](this[_0x1880d2(0x44f)]);return _0x2641dd['revision']>_0x5c1311+0x1?(this[_0x1880d2(0x2d1)]['onMissingChangesets']({'from':_0x5c1311,'to':_0x2641dd[_0x1880d2(0x2de)]-0x1}),!0x0):!0x1;}[_0x513b3b(0x318)](_0x4200a5){const _0x5e50e5=_0x513b3b;this[_0x5e50e5(0x222)]['transformUndoRedo'](this['unitID'],_0x4200a5);}['_transformSelections'](_0x22858d){const _0x1aeb7f=_0x513b3b;var _0xea1507,_0x529e25;(_0x529e25=(_0xea1507=this[_0x1aeb7f(0x2d1)])[_0x1aeb7f(0x294)])==null||_0x529e25[_0x1aeb7f(0x194)](_0xea1507,_0x22858d);}[_0x513b3b(0x331)](_0x4c48e8){const _0x3110b8=_0x513b3b;var _0x2573b6,_0x24901a;return(_0x24901a=(_0x2573b6=this[_0x3110b8(0x2d1)])[_0x3110b8(0x4cd)])==null?void 0x0:_0x24901a[_0x3110b8(0x194)](_0x2573b6,_0x4c48e8);}[_0x513b3b(0x40c)](_0x822e73){const _0x292d8c=_0x513b3b;var _0x209bbe,_0x3b7da0,_0x291c30;return(_0x291c30=(_0x3b7da0=(_0x209bbe=this[_0x292d8c(0x2d1)])[_0x292d8c(0x168)])==null?void 0x0:_0x3b7da0['call'](_0x209bbe,_0x822e73))!=null?_0x291c30:_0x822e73;}[_0x513b3b(0x38d)](_0x2604b0){const _0x506320=_0x513b3b;var _0x4f2fac,_0x51a3bd;if(this[_0x506320(0x30b)]===k[_0x506320(0x1a4)]){const {unitID:_0x4fe523,mutations:_0x3ecebd,memberID:_0x55fd76}=_0x2604b0,_0x104f81=_0x3ecebd[0x0]['params'][_0x506320(0x3b1)];Array[_0x506320(0x33f)](_0x104f81)&&_0x104f81[_0x506320(0x313)]>0x0&&((_0x51a3bd=(_0x4f2fac=this['_handler'])[_0x506320(0x3de)])==null||_0x51a3bd[_0x506320(0x194)](_0x4f2fac,{'unitID':_0x4fe523,'memberID':_0x55fd76,'textRanges':_0x104f81}));}}['_updateLocalCache'](){const _0x2da792=_0x513b3b;this[_0x2da792(0x2be)][_0x2da792(0x400)](this['unitID'],this[_0x2da792(0x30b)],this[_0x2da792(0x371)],this[_0x2da792(0x47a)]);}[_0x513b3b(0x3f5)](){const _0x302250=_0x513b3b;return this[_0x302250(0x344)][_0x302250(0x324)](this[_0x302250(0x44f)]);}['_incrementRevisionNumber'](){const _0x10ad22=_0x513b3b;this[_0x10ad22(0x344)][_0x10ad22(0x23d)](this[_0x10ad22(0x44f)]);}[_0x513b3b(0x2dc)](_0x2e9b63){const _0x42977d=_0x513b3b;var _0x3401a6;const _0x12951e=this[_0x42977d(0x40c)](_0x2e9b63),_0x37c79d=_0x21da1f(_0x12951e[_0x42977d(0x421)],this[_0x42977d(0x2b6)],{'fromCollab':!0x0});if(!_0x37c79d['result'])throw _0x37c79d[_0x42977d(0x25c)]instanceof Error?_0x37c79d[_0x42977d(0x25c)]:new Error((_0x3401a6=_0x37c79d['error'])!=null?_0x3401a6:_0x42977d(0x25e));this[_0x42977d(0x331)](_0x12951e),this[_0x42977d(0x318)](_0x2e9b63),this[_0x42977d(0x37c)](_0x12951e),this[_0x42977d(0x38d)](_0x12951e),this[_0x42977d(0x42d)]();}}let pe=class extends ue{constructor(_0x5613ff,_0x30ba37,_0x555ea7,_0x4d89e4,_0x2b0baa,_0x3d3a3e,_0x416fb9,_0x49c5df,_0x444eba,_0x373368){const _0x40205e=_0x513b3b;super(_0x5613ff,_0x30ba37,null,[],_0x555ea7,_0x49c5df,_0x416fb9,_0x4d89e4,_0x2b0baa),l(this,'status',_0x40205e(0x3fa)),(this[_0x40205e(0x31e)]=_0x3d3a3e,this[_0x40205e(0x4e0)]=_0x444eba,this[_0x40205e(0x283)]=_0x373368);}[_0x513b3b(0x177)](_0x274215){const _0x2366af=_0x513b3b,_0x487d17=this[_0x2366af(0x31e)]['createInstance'](X,this[_0x2366af(0x44f)],this['type'],[_0x274215],this['_handler']);return _0x487d17[_0x2366af(0x3b3)](),_0x487d17[_0x2366af(0x211)](),_0x487d17;}[_0x513b3b(0x148)](_0xdb89d0){const _0x27c399=_0x513b3b;if(this['_checkMissing'](_0xdb89d0))return this[_0x27c399(0x31e)]['createInstance'](B,this['unitID'],this['type'],null,[],null,[_0xdb89d0],this[_0x27c399(0x2d1)]);try{const _0x576c6b=this[_0x27c399(0x283)][_0x27c399(0x398)](_0xdb89d0,[Tr]);if(_0x16b713(_0x576c6b)){const {c1Prime:_0x428fdf}=_0x576c6b;return this[_0x27c399(0x2dc)](_0x428fdf),this;}throw _0x576c6b[_0x27c399(0x25c)];}catch(_0x14bfba){return this[_0x27c399(0x4e0)][_0x27c399(0x25c)](_0x14bfba),this[_0x27c399(0x1c8)](!0x1);}}[_0x513b3b(0x1c8)](_0x4add26){const _0x451664=_0x513b3b;return this[_0x451664(0x31e)][_0x451664(0x269)](ee,this[_0x451664(0x44f)],this[_0x451664(0x30b)],null,[],this['_handler'],_0x4add26);}[_0x513b3b(0x29a)](){const _0x53595e=_0x513b3b;throw new Error(_0x53595e(0x33c));}[_0x513b3b(0x303)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x513b3b(0x420)](){const _0x2980ad=_0x513b3b;return this[_0x2980ad(0x31e)][_0x2980ad(0x269)](te,this['unitID'],this[_0x2980ad(0x30b)],null,[],this[_0x2980ad(0x2d1)]);}[_0x513b3b(0x4b2)](){return this;}[_0x513b3b(0x42c)](){const _0x3630c9=_0x513b3b;throw new Error(_0x3630c9(0x35e));}[_0x513b3b(0x361)](){const _0x1f34c1=_0x513b3b,_0x152afd=this[_0x1f34c1(0x344)][_0x1f34c1(0x324)](this['unitID']);return this[_0x1f34c1(0x2d1)][_0x1f34c1(0x462)]({'from':_0x152afd,'to':0x0}),this['_injector']['createInstance'](B,this[_0x1f34c1(0x44f)],this[_0x1f34c1(0x30b)],null,[],null,[],this[_0x1f34c1(0x2d1)]);}};pe=_e([f(0x3,_0x53ed15(_0x231b85)),f(0x4,_0x53ed15(w)),f(0x5,_0x53ed15(_0x3165b6)),f(0x6,_0x3e29a6),f(0x7,_0x8348c),f(0x8,_0x385fd2),f(0x9,_0x2e5ae8)],pe);let X=class extends ue{constructor(_0x491bba,_0x2a5b5b,_0x477fce,_0x40e233,_0xb61093,_0x4718d6,_0x1f705b,_0x18efeb,_0xce13ad,_0x2335c7,_0x47ba4a,_0x1b2f61,_0x129f6a,_0x226481){const _0x50081d=_0x513b3b;super(_0x491bba,_0x2a5b5b,null,_0x477fce,_0x40e233,_0x2335c7,_0x226481,_0x4718d6,_0x1f705b),l(this,_0x50081d(0x3a7),_0x50081d(0x386)),l(this,_0x50081d(0x350),null),l(this,_0x50081d(0x466),null),(this[_0x50081d(0x31e)]=_0xb61093,this[_0x50081d(0x21c)]=_0x18efeb,this['_logService']=_0xce13ad,this[_0x50081d(0x2cf)]=_0x47ba4a,this[_0x50081d(0x283)]=_0x1b2f61,this[_0x50081d(0x4c4)]=_0x129f6a);}[_0x513b3b(0x177)](_0x235f50){const _0x1ad626=_0x513b3b;return this[_0x1ad626(0x47a)][_0x1ad626(0x152)](_0x235f50),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x2b70ce){const _0x4d8bef=_0x513b3b;if(this[_0x4d8bef(0x425)](_0x2b70ce))return this['_clearScheduledTask'](),this['_injector'][_0x4d8bef(0x269)](B,this[_0x4d8bef(0x44f)],this[_0x4d8bef(0x30b)],null,this[_0x4d8bef(0x47a)],null,[_0x2b70ce],this[_0x4d8bef(0x2d1)]);try{const _0x52ccb1=this[_0x4d8bef(0x283)][_0x4d8bef(0x398)](_0x2b70ce,this[_0x4d8bef(0x47a)]);if(_0x16b713(_0x52ccb1)){const {c1Prime:_0x4b8290,m2Prime:_0x1ed0e9}=_0x52ccb1;this['_executeRemoteChangeset'](_0x4b8290);const _0x4dd4b5=this[_0x4d8bef(0x31e)][_0x4d8bef(0x269)](X,this['unitID'],this[_0x4d8bef(0x30b)],_0x1ed0e9,this[_0x4d8bef(0x2d1)]);return this[_0x4d8bef(0x260)](),_0x4dd4b5[_0x4d8bef(0x3b3)](this[_0x4d8bef(0x350)]?Math[_0x4d8bef(0x1b0)](0x0,new Date()[_0x4d8bef(0x362)]()-this[_0x4d8bef(0x350)]):this[_0x4d8bef(0x151)]()),_0x4dd4b5;}throw _0x52ccb1[_0x4d8bef(0x25c)];}catch(_0x5f3f73){return this[_0x4d8bef(0x4e0)][_0x4d8bef(0x25c)](_0x5f3f73),this[_0x4d8bef(0x1c8)](!0x1);}}[_0x513b3b(0x29a)](){const _0x253cde=_0x513b3b;throw new Error(_0x253cde(0x2f8));}['onRemoteRej'](){const _0x449263=_0x513b3b;throw new Error(_0x449263(0x4d1));}[_0x513b3b(0x15d)](){return this;}['toggleOffline'](){const _0x4ee4c2=_0x513b3b;return this['_clearScheduledTask'](),this[_0x4ee4c2(0x31e)][_0x4ee4c2(0x269)](te,this[_0x4ee4c2(0x44f)],this[_0x4ee4c2(0x30b)],null,this[_0x4ee4c2(0x47a)],this[_0x4ee4c2(0x2d1)]);}[_0x513b3b(0x4b2)](){return this;}[_0x513b3b(0x3b3)](_0x3a576f){const _0x31ba46=_0x513b3b,_0x2e6c18=_0x3a576f!=null?_0x3a576f:this[_0x31ba46(0x151)]();this['_scheduleTimestamp']=new Date()[_0x31ba46(0x362)](),this[_0x31ba46(0x466)]=window['setTimeout'](()=>{const _0x3161b1=_0x31ba46;this['_clearScheduledTask']();let _0x236eda=null;switch(this['type']){case k[_0x3161b1(0x3b6)]:{_0x236eda=ds(this['_pendingMutations'],this['unitID'],this[_0x3161b1(0x4c4)],this['_revisionService'],this[_0x3161b1(0x21c)]);break;}case k[_0x3161b1(0x1a4)]:{this[_0x3161b1(0x47a)]['every'](_0x3a07a5=>_0x3a07a5['id']===_0x599177['id'])?_0x236eda=br(this['_pendingMutations'],this[_0x3161b1(0x44f)],this['_univerInstanceService'],this[_0x3161b1(0x344)],this[_0x3161b1(0x21c)]):_0x236eda=ds(this[_0x3161b1(0x47a)],this[_0x3161b1(0x44f)],this[_0x3161b1(0x4c4)],this['_revisionService'],this[_0x3161b1(0x21c)]);break;}default:throw new Error(_0x3161b1(0x4c3)+this[_0x3161b1(0x30b)]+_0x3161b1(0x1ad));}const {changeset:_0x5af545,pendingMutations:_0x31483d}=_0x236eda;this['_handler']['onSendChangeset'](_0x5af545);const _0x2831e5=_0x31483d[_0x3161b1(0x313)]?this['_injector'][_0x3161b1(0x269)](q,this[_0x3161b1(0x44f)],this['type'],_0x5af545,_0x31483d,this[_0x3161b1(0x2d1)],void 0x0):this[_0x3161b1(0x31e)][_0x3161b1(0x269)](Q,this[_0x3161b1(0x44f)],this['type'],_0x5af545,this[_0x3161b1(0x2d1)]);_0x2831e5[_0x3161b1(0x211)](),this[_0x3161b1(0x2d1)][_0x3161b1(0x4cb)](this,_0x2831e5);},_0x2e6c18);}['_getSendChangesetTimeout'](){const _0x32790=_0x513b3b;var _0x3610ea;const _0x581788=this[_0x32790(0x2cf)]['getConfig']($);return(_0x3610ea=_0x581788==null?void 0x0:_0x581788[_0x32790(0x3c9)])!=null?_0x3610ea:bn;}[_0x513b3b(0x42c)](){const _0x183e1d=_0x513b3b;throw new Error(_0x183e1d(0x219));}['_clearScheduledTask'](){const _0x238133=_0x513b3b;this[_0x238133(0x466)]!=null&&(clearTimeout(this[_0x238133(0x466)]),this[_0x238133(0x466)]=null);}['_onConflict'](_0x1333eb){const _0x2c6feb=_0x513b3b;return this[_0x2c6feb(0x260)](),this[_0x2c6feb(0x31e)][_0x2c6feb(0x269)](ee,this[_0x2c6feb(0x44f)],this['type'],null,this[_0x2c6feb(0x47a)],this[_0x2c6feb(0x2d1)],_0x1333eb);}};X=_e([f(0x4,_0x53ed15(_0x3165b6)),f(0x5,_0x53ed15(_0x231b85)),f(0x6,_0x53ed15(w)),f(0x7,_0x53ed15(ce)),f(0x8,_0x385fd2),f(0x9,_0x8348c),f(0xa,_0x17c84c),f(0xb,_0x2e5ae8),f(0xc,_0x4c005a),f(0xd,_0x3e29a6)],X);let Q=class extends ue{constructor(_0x42b153,_0x92107a,_0x18421d,_0x4e7156,_0x52e440,_0x2e008c,_0x1a5d96,_0x22d4c1,_0x4b5791,_0x16df7e,_0x5da574){const _0x4e24af=_0x513b3b;super(_0x42b153,_0x92107a,_0x18421d,[],_0x4e7156,_0x22d4c1,_0x5da574,_0x2e008c,_0x1a5d96),l(this,_0x4e24af(0x3a7),_0x4e24af(0x3ae)),l(this,_0x4e24af(0x23b),0x0),l(this,_0x4e24af(0x4dc)),l(this,_0x4e24af(0x443)),(this[_0x4e24af(0x31e)]=_0x52e440,this[_0x4e24af(0x4e0)]=_0x4b5791,this[_0x4e24af(0x283)]=_0x16df7e);}['appendMutation'](_0x2284e3){const _0xcccdb8=_0x513b3b;this[_0xcccdb8(0x260)]();const _0x53c39b=this[_0xcccdb8(0x31e)][_0xcccdb8(0x269)](q,this[_0xcccdb8(0x44f)],this[_0xcccdb8(0x30b)],this['_awaitingChangeset'],[_0x2284e3],this[_0xcccdb8(0x2d1)],this[_0xcccdb8(0x4dc)]);return _0x53c39b['_updateLocalCache'](),_0x53c39b;}[_0x513b3b(0x148)](_0x365579){const _0xb443f4=_0x513b3b;if(this[_0xb443f4(0x425)](_0x365579))return this[_0xb443f4(0x260)](),this['_injector'][_0xb443f4(0x269)](B,this['unitID'],this[_0xb443f4(0x30b)],this[_0xb443f4(0x371)],[],null,[_0x365579],this[_0xb443f4(0x2d1)]);try{const _0x2429b5=this[_0xb443f4(0x283)][_0xb443f4(0x346)]([_0x365579],[this[_0xb443f4(0x371)]],!0x1);if(_0x987caa(_0x2429b5)){const {c1Prime:_0x4ec975,c2Prime:_0x4518b0}=_0x2429b5;this[_0xb443f4(0x2dc)](_0x4ec975[0x0]),_0x4518b0[0x0][_0xb443f4(0x3c1)]=this[_0xb443f4(0x3f5)](),this['_clearScheduledTask']();const _0xce3456=this[_0xb443f4(0x31e)][_0xb443f4(0x269)](Q,this[_0xb443f4(0x44f)],this[_0xb443f4(0x30b)],_0x4518b0[0x0],this[_0xb443f4(0x2d1)]);return _0xce3456['_updateLocalCache'](),_0xce3456;}return this[_0xb443f4(0x1c8)](!0x1);}catch(_0x51c7aa){return this[_0xb443f4(0x4e0)][_0xb443f4(0x25c)](_0x51c7aa),this[_0xb443f4(0x1c8)](!0x1);}}['onRemoteAck'](_0x1c308a){const _0x14fc8d=_0x513b3b;this[_0x14fc8d(0x260)]();const _0x39ec8c=this[_0x14fc8d(0x344)][_0x14fc8d(0x324)](this[_0x14fc8d(0x44f)]);if(_0x1c308a[_0x14fc8d(0x2de)]<_0x39ec8c-0x1)return this;if(this['_checkMissing'](_0x1c308a))return this[_0x14fc8d(0x31e)][_0x14fc8d(0x269)](B,this['unitID'],this[_0x14fc8d(0x30b)],null,[],this[_0x14fc8d(0x371)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x1273b3=this['_injector'][_0x14fc8d(0x269)](pe,this['unitID'],this[_0x14fc8d(0x30b)],this[_0x14fc8d(0x2d1)]);return _0x1273b3[_0x14fc8d(0x211)](),_0x1273b3;}[_0x513b3b(0x303)](_0x5e152b){const _0x4fd2f5=_0x513b3b;return this[_0x4fd2f5(0x1c8)](!!(_0x5e152b!=null&&_0x5e152b[_0x4fd2f5(0x21f)]));}[_0x513b3b(0x15d)](_0x51b503){const _0x448129=_0x513b3b;return this[_0x448129(0x23b)]>Ys?this[_0x448129(0x420)]():(this['_resendTimer']=Gs(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x51b503[_0x448129(0x21b)]}),this[_0x448129(0x443)]=this[_0x448129(0x4dc)]['subscribe'](({reqId:_0x30ec58,timeout:_0x590289})=>{const _0x1be5b0=_0x448129;this[_0x1be5b0(0x213)](_0x30ec58,_0x590289);}),this);}[_0x513b3b(0x420)](){const _0x4fa807=_0x513b3b;return this[_0x4fa807(0x260)](),this['_injector']['createInstance'](te,this[_0x4fa807(0x44f)],this[_0x4fa807(0x30b)],this[_0x4fa807(0x371)],[],this[_0x4fa807(0x2d1)]);}[_0x513b3b(0x4b2)](){return this;}[_0x513b3b(0x42c)](){const _0x4eb080=_0x513b3b;this[_0x4eb080(0x2d1)][_0x4eb080(0x17b)](this['_awaitingChangeset']);}[_0x513b3b(0x1c8)](_0x2ed0a2){const _0x1f7bc2=_0x513b3b;return this['_clearScheduledTask'](),this['_injector']['createInstance'](ee,this[_0x1f7bc2(0x44f)],this[_0x1f7bc2(0x30b)],this[_0x1f7bc2(0x371)],[],this[_0x1f7bc2(0x2d1)],_0x2ed0a2);}[_0x513b3b(0x213)](_0x5d0621,_0x262635){const _0xa47247=_0x513b3b;var _0x4accf0;_0x5d0621===((_0x4accf0=this[_0xa47247(0x371)])==null?void 0x0:_0x4accf0[_0xa47247(0x21b)])&&(this['resend'](),this[_0xa47247(0x23b)]=_0x262635===0x0?0x3e8:_0x262635*0x2);}[_0x513b3b(0x260)](){const _0x57ea53=_0x513b3b;var _0x23cf1b;(_0x23cf1b=this[_0x57ea53(0x443)])==null||_0x23cf1b[_0x57ea53(0x48a)](),this[_0x57ea53(0x23b)]=0x0;}};Q=_e([f(0x4,_0x53ed15(_0x3165b6)),f(0x5,_0x53ed15(_0x231b85)),f(0x6,_0x53ed15(w)),f(0x7,_0x8348c),f(0x8,_0x385fd2),f(0x9,_0x2e5ae8),f(0xa,_0x3e29a6)],Q);function _0x26a0(){const _0x1af7e7=['toggleOffline','mutations','key','top','awaitingChangeset','_checkMissing','7139220lssKhI','unitId\x20is\x20not\x20found','collabStatus.conflict','href','unknown','stringify','resend','_incrementRevisionNumber','telemetry\x20info\x20is\x20not\x20initialized','urlChange$','originalMeta','_substituteUndoStack','COMPLETION_FINISHED','_onUserLeave','_getDownloadEndpointURL','CHANGESET_SHOULD_RETRY','_collaborationController','/fetchmissing?from=','round','transformSelections','error$','reconnect','stopTime','sheetId','save','off-line-single_clip0_910_343','currentTheme$','registerBeforeClose','Warning','_sender','BASE64','_colorAssignService','unit','_socket$','InsertRangeMoveRightCommandId','skeleton','_initCommandExecutedListener','getRandomValues','OFFLINE','CONNECTOR_DATA_TOO_LARGE','fetch_missing','unitID','getFocusedUnit','_send','_commentService','rgba(255,\x20255,\x20255,\x200.01)','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','updatePermissionObjEvent','session','_socketReady','actions','trim','leaveEvent','_getMergeRange','getMemberID','HEARTBEAT_INTERVAL','fetching\x20missing\x20changesets\x20from\x20','body','FileId','getInterceptPoints','onMissingChangesets','_startTelemetryCollaborationNewChangeset','RemoveRowCommandId','subscribe','_sendingTimer','addObject','SNAPSHOT_INVALID_SNAPSHOT','image/jpg','_initResize','NO_OTHER_CLIENTS_EDITING','_candidateSocket','4770mBaSrw','collabStatus.offline','onCommandExecuted','YUUMI_SUBSCRIPTION_NOT_FOUND','createCollaborator','_draw','UniverIcon','loadSheet','_loadDoc','registerRenderModule','[CollaborationSession]','_tryEnsureSocket','downloadEndpointUrl','_pendingMutations','event$','_handleHover','LICENSE_IMPORT_SIZE_EXCEEDED','_updateURLWithCurrentState','_themeService','shouldCloseConn','_timeoutTimer','enableAuthServer','getCurrentSelections','append','c2Prime','substring','_onConnectionFailed','onload','_redoStacks','unsubscribe','3994176uEBoZj','_disableEditing','next','csShouldRetryEvent','_onFetchMissResult','string','onlineStatusTitle','arc','unload','_getAPIPrefix','uploadFileServerUrl','makeDirty','defIds','params','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getUniverSheetInstance','_onOffline','_init','json','commentUpdate$','get','getConfig','/resources','currentSkeleton$','_colorIndex','drawWith','setItem','width','_initStatusListener','syncEditingCollabCursor','_initModules','LIVESHARE_FETCH_OPERATIONS','hidden','_collaborationPaused','_imageSourceCache','registerOnClose','_render','36142ixPqvi','lineTo','toggleOnline','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_roomMembers$','_sendHeartbeat','infoRsp','_onRefRangeChange','/object/','update','PERMISSION_REJ','_drawTextRange','hide','collaboration-session-retry','clear','_initMergeInterceptor','_toggleOnline','target','_throwTelemetryCollaborationNewChangeset','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_univerInstanceService','fillText','[CollaborationSessionService]','m1Prime','number','toLowerCase','propertyIsEnumerable','onStateChange','objectType','onTransformIME','4145tuuwiI','change$','initWorkbookPermissionChange','[PendingState]:\x20received\x20rejection.','FAIL','UPDATE_CURSOR','HEARTBEAT_TIMEOUT','setAlpha','attrs','none','exhaustSavingTask','getTypeOfUnitDisposed$','interceptor','_onRemoteRetry','_resendTimer','_transformUndoRedoStack','close$','SHOULD_CLOSE_CONN','_logService','sessionStatus','collaboration.single-unit.warning','init','cursorInfo','NOT_FOUND','onRemoteChangeset','SYNCED','getImageSourceCache','collabSubmitChangesetUrl','isActive','HttpExport','_getSnapshotAPIPrefix','data','_initRequestHeader','_getSendChangesetTimeout','push','_updateState','_state$','getCollabCursors$','[CollaborationEntity]','ALREADY_EXISTS','_clearCollaborationTimeoutTimer','UnitSnapshot','map','_onMessage','selection','onRemoteRetry','\x20-\x20','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','VIEW_MAIN','save\x20fail\x20reason\x20is\x20','_onRemoteChangeset','_handleLeaveEvent','_range','_handleHeartbeatEvent','resolve','liveShareNewHost','onTransformRemoteChangesetByIMECache','_selfUnitIDs','history','ERROR_IMAGE','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','now','entries','_scheduleSaving','_createHandler','disableLocalCache','enableOfflineEditing','_lastPointer','APPLY_REVISION_CONFILICT','restore','onReady','appendMutation','startsWith','APPLY_PERMISSION_DENIED','values','onSendChangeset','SEND_CHANGESET_TIMEOUT','split','IDLE','colorChannel1','_joinRoom','getLatestCsReqIdBySid','collabStatus.synced','createSocket','_clearUndo','onMissedChangesetFetched','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','refreshPermission','column','off-line-single','_docStateChangeManagerService','subunit','_event$','getOffsetConfig','_waitCount','UNIVER_COLLABORATION_CLIENT_PLUGIN','snapshot','_createInitialStateImpl','getRenderById','slice','call','_unitStatus','PSEUDO_FETCH_MISSING_RESULT','_handleJoinEvent','_updateSubUnitFromURLParams','[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.','_onLocalMutation','_getRedoStack','/new_changes','_refreshCollabCursors','newValue','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_shouldReportTelemetry','/rev/','getCollabEntity','cursorInfo$','UNIVER_DOC','defineProperty','objectID','children','USERS_ENTER','image/png','Unknown\x20user','height','UNIVER_PROJECT','\x20in\x20_schedule.','APPLY_REJECT','unitId','max','M0\x200H16V16H0z','_color','ranges','_urlService','SNAPSHOT_URL_KEY','extend','_startDocCollabCursor','url(#$1','setParam','file','_registerDependencies','code','0\x200\x2017\x2016','getOwnPropertyDescriptor','UNKNOWN_CODE','_telemetryInfo','black','endColumn','UnitEmbedded','_collabSessionService','socket$','FETCH_MISSING','&source=','_onConflict','snapshotServerUrl','_scene','_syncEditingCollabCursorService','requestParams','findNodePositionByCharIndex','method','onCommentUpdate','/role','ENSURE_SNAPSHOT_EXECUTION','red300','[OfflineState]:\x20received\x20rejection.','1em','YUUMI_RATE_OVER_LIMIT','setWaitCount','docStateChange$','pushState','_http','offline','LIVESHARE_REQUEST_HOST','doc.mutation.rich-text-editing','_socket','_status$','YUUMI_UNABLE_LOAD_URL','currentColor','getItem','NOT_COLLAB','UNDEFINED','awaiting_with_pending','concat','changesets','_getSignURL','_scheduleHeartbeat','row','Error','xlink:href','_notificationService','searchParams','_getAPIPrefixPath','url','POST','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_socketService','_rescheduleHeartbeat','bind','image/jpeg','headers','ONLINE','COMMENT_UPDATE','title','setUndoRedoMutationParamsCache','allowed','memberID','_onCursorDelete','OTHER_CLIENTS_EDITING','_decreaseWaiting','AWAITING','apply','_docTransformSelectionsService','getRangePointData','univer-online-status','_handleEvent','_drawAnchor','signUrlServerUrl','startColumn','_unitOnClients','localeService','_compressMutationService','rev','/universer-api/oidc/authpage','setActiveRange','/unit/','resize','_updateLocalCache','_members','_resendWithTimeout','roomMembers','registerRefRange','permission.content','_entities','sid','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','retryConnectingInterval','reqId','_memberService','putCollaborators','registerHTTPInterceptor','isPermissionRej','SUCCUSS','/object','_undoRedoService','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getRoom','storage','commentUpdateEvent','workbook','prototype','/block/','_submitChangeset','clipPath','replace','getCurrent','generateRandomId','collab-client.tooltip.reconnect','CONFLICT','_telemetryService','&to=','disposeWithMe','_ensureSubject','_collaborationTimeoutTimer','_removeClearOtherTimer','getViewport','_changesetReqId','_refRangeService','collab-text-range-','_resendTimeout','_queuedRemoteChangesets','incrementRevOfUnit','requireSession','getUnhiddenWorksheets','_onCombEvent','Undefined','getMergeData','has','[DataLoaderController]','x-univer-host','onPointerEnter$','_getScale','delete','members','_anchorDot','[CollaborationUndoRedoService]','collabStatus.syncing','transformByState','_acknowledgedAwaitingChangeset','_sessions','_socketMessageSubscription','_showConflictNotification','path','_changesetSessionId','APPLY_DUPLICATED','reject','from','svg','status$','sheetID','image/bmp','702116hpAywd','error','div','[CollaborationState]:\x20apply\x20error!','replaceTextRanges','_clearScheduledTask','getUnitType','_fetchMissChangesets','loadOfflineData','_unitID','collabStatus.fetchMiss','_roomMembers','_docSyncEditingCollabCursorService','fetchThroughInterceptors','createInstance','transformRemoteChangeset','APPLY_NON_SEQUENTIAL_REVISION','UUID','responseType','_messageService','628816NZDLqn','[CollaborationSessionService]:\x20socket\x20error','setShapeProps','text','_getCtorByUniverType','auth.needGotoLoginAlert','randomUUID','_listenToOnlineEvent','endRow','UNIVER_SLIDE','replaceState','_removeCollabCursors','deleteCollaborator','_sendHeartbeatTimer','getSheetId','_collaborationSessionService','HELLO','_updateCollabCursors','pauseCollaboration','_eventUnsubscribe','_transformService','_shapes','onPointerLeave$','#FFF','equals','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_cursors','collaboration-client.offline-data-not-saved','_onConnectionOpen','_localeService','_hover','fill','_clearOtherTimers','getTypeOfUnitAdded$','0\x200\x2016\x2016','SNAPSHOT_HAS_BEEN_REMOVED','encode','onTransformSelections','origin','\x0aAfter:\x20','_loadSheet','newCsEvent','enableLocalCache','onRemoteAck','_getUndoStack','put','withCredentials','SUBMIT_CHANGESET','Error\x20on\x20receiving\x20event','getAncestorScale','_remoteChangesetQueue','close','PENDING','asObservable','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','addEventListener','assignAColorForMemberID','online','session.room-full','univer-online-status-icon','add','updatePermissionPoint','filter','_stopTelemetryCollaborationNewChangeset','_substituteRedoStack','/universer-api/comb','with','_collabCursorController','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_createInitialState','USERS_LEAVE','_commandService','_updateLocalCursor','roomMembers$','m2Prime','roles','triggerDblclick','debug','_anchor','_localCacheService','blue400','_clearRedo','getVpScrollXYInfoByPosToVp','bottom','UNIVER_UNKNOWN','_isPermissionRej','LEAVE','onTransformChange$','NEW_CHANGESETS','moveTo','_cursorInfo$','selections','isEditing','reduce','then','_replayCachedMutations','_configService','_registerRenderDependencies','_handler','dispose$','getSheetBySheetId','min','_retryCount','reverse','/-/object/-/batch_allowed','COLLAB_SUBMIT_CHANGESET_URL','createElement','gold400','eventID','_executeRemoteChangeset','RETRY_CONNECTING_MAX_COUNT','revision','_updateStatus','c1Prime','_createSocket','onMouseMove','univer-online-status-title','subscribeEvent','_sheetTransformSelectionsService','color','_transformPreviousActiveRange','_instanceService','unshift','FETCH_MISS','_sessionStatus$','listCollaborators','_collabCursorState$','saveOfflineData','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','_state','_docTransformIMECacheService','_name','UPDATE_PERMISSION_OBJ','addImageSourceCache','_HTTPService','loginUrlKey','_docSkeletonManagerService','[PendingState]:\x20received\x20acknowledgement.','startTime','_session','catch','?url=','socket\x20open.','DEFAULT_FILE_NAME','complete','HEARTBEAT','forEach','size','onRemoteRej','range','visibilitychange','_initStatusComponent','onStarting','_type','onlyLocal','_transitionLocked','type','_assignedColors','all','fillRule','activeSheet$','INGEST','_hovered','LIVESHARE_TERMINATE','length','transformIMECache','3ltooxs','saveImage','getUndoRedoMutationParamsCache','_transformUndoredo','LICENSE_MAX_UNITS_EXCEEDED','/allowed','_startSheetCollabCursor','font','tag','_injector','_cursorShapes','JOINING','_backgroundColor','cmd','...','getCurrentRevOfUnit','override','HttpImport','duration','toRgbString','defs','loadDoc','show','create','socket\x20close','_transformStack','includes','displayName','_transformIMECache','setCurrentUser','[OfflineState]:\x20received\x20acknowledgement.','session.connection-failed','focused$','_beforeCloseService','UNAUTHENTICATED','_heartbeatTimer','setConfig','backgroundColor','pipe','[SyncedState]:\x20received\x20acknowledgement.','function','getParam','isArray','getSheetBlock','JOIN','_onRecvEvent','INVALID_ARGUMENT','_revisionService','_clearLocalCache','transformChangesets','collab-rect-range-','clearInterval','getActiveSheet','result','MSG_FOR_ERROR','_snapshotServerService','random','post','_tryReconnect','_scheduleTimestamp','_onJoinRoomEvent','_startCollaboration','_initEventListeners','10lOXrdo','_disabled','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','/-/object/list','LIVESHARE_OPERATION','#fff','uni.network.url-service','_getAnchorBounding','measureText','_initCloseConn','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','icon','connection\x20error','fetchMiss','getTime','session.collaboration-timeout','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','routeKey','joinEvent','LOGIN_URL_KEY','editingUnit','_setupBeforeClosingHandler','_getSaveTimeout','assign','roomInfos','closeSession','hasOwnProperty','COMPRESS_MUTATION_APPLY','FromArray','_awaitingChangeset','getDocRanges','fromCollab','executeCommand','_lockTransition','patch','CHANGESET_REJ','_userManagerService','_commentUpdate$','InsertRangeMoveDownCommandId','src','_transformSelections','_saveTaskMap','_httpService','Univer','MoveRangeCommandId','InsertColCommandId','popstate','_change$','indexOf','transformStack\x20failed!','pending','session.will-retry','_retryConnectingTimer','getUnitId','labelPosition','_localStorageService','_replaceFileID','_syncEditingCollabCursor','DeleteRangeMoveUpCommandId','getResourcesRequest','objectActions','_applyRemoteChangeset','ERROR_EXCEED_SIZE','UNRECOGNIZED','CHANGESET_REVISION_CONFILICT','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_snapshotService','/collaborator','transformMutationsWithChangeset','_sheetSkeletonManagerService','22etRBUw','open$','deepClone','updateCollaborator','_textBubble','collaMsg','_context','getUnitStatus$','image/gif','_config','_waitForHeartbeatResponse','AUTHZ_URL_KEY','sessionStatus$','status','getUnit','joinRsp','/universer-api/file/{fileID}/sign-url','updateMember','_onRemoteRejected','LICENSE_EXPORT_SIZE_EXCEEDED','awaiting','univer-pro.collaboration-client.single-active-unit-service','objects','textRanges','conflict','_schedule','_onCursorUpdate','collabStatus.notCollab','UNIVER_SHEET','_clearTimeoutTimer','on-line-single','_renderManagerService','hovered','_saveCache','message$','/universer-api/snapshot/','{fileID}','parse','1671775yJDGRE','baseRev','removeParam','_scheduleCollaborationTimeoutTimer','RECV','_cachedData','confirm','verdancy600','univerjs-icon\x20univerjs-icon-','sendChangesetTimeout','set','_toggleOffline','state','batchAllowed','dispose','CHANGESET_ACK','visibilityState','YUUMI_URL_COL_OUT_OF_RANGE','UNKNOWN_CMD','purple300','getImage','transform','getOwnPropertySymbols','_document','_entityInit$','_ws','HEADER_MENU','on-line-single_clip0_910_349','setTimeout','engine','onSyncEditingCollabCursor','subUnitId','getMember','_hideTimer','getValue','DeleteRangeMoveLeftCommandId','whenReady','translate(.97)','getUnitOnRev','clearTimeout','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_clearHeartbeatTimer','/universer-api/snapshot','flatMap','[OfflineState]:\x20received\x20changeset.','_getSheetObject','getWorkbookSelections','find','permissionRejEvent','_labelPosition','action','_getUploadFileURL','removeMember','_getCurrentRevision','EXCHANGE_SIGN_URL_SERVER_URL_KEY','saveChangeset','capture','AWAITING_WITH_PENDING','synced','submit\x20changeset\x20error!','_uiPartsService','location','getCurrentUser','INTERNAL_ERROR','updateOfflineData','_getLoginPath','\x20to\x20','_onUserJoin','LIVESHARE_NEW_HOST','_unlockTransition','idSuffix','_removeRoom','_scheduleClearOtherTimer','use','transformMutation','toString','_transformRemoteChangesetByIMECache','TOO_MANY_REQUESTS','userID','_online','COLLAB_WEB_SOCKET_URL','univer-pro.collaboration-client-socket-service','compose','fillStyle','sheets','send','45rCEslm','conflict.title','_id','_permissionService','_listenToOfflineEvent','_singleActiveUnitService','getCellPositionByOffset','name','_cursor','symbol'];_0x26a0=function(){return _0x1af7e7;};return _0x26a0();}let q=class extends ue{constructor(_0x1ecd96,_0x35ae3,_0xa9d91d,_0xdc435b,_0x382bfd,_0x5d3cc3,_0x3339d1,_0x42af0b,_0x840f62,_0x97f311,_0x38b9b1,_0x551564,_0x58e405){const _0x58b848=_0x513b3b;super(_0x1ecd96,_0x35ae3,_0xa9d91d,_0xdc435b,_0x382bfd,_0x97f311,_0x58e405,_0x42af0b,_0x840f62),l(this,_0x58b848(0x3a7),_0x58b848(0x1e4)),l(this,_0x58b848(0x23b),0x0),l(this,'_resendTimer'),l(this,_0x58b848(0x443)),(this['_injector']=_0x3339d1,this['_logService']=_0x38b9b1,this[_0x58b848(0x283)]=_0x551564,_0x5d3cc3&&(this['_resendTimer']=_0x5d3cc3,this[_0x58b848(0x443)]=this['_resendTimer'][_0x58b848(0x465)](({reqId:_0x2687cb,timeout:_0x2f6b3f})=>{const _0x746a71=_0x58b848;this[_0x746a71(0x213)](_0x2687cb,_0x2f6b3f);})));}['appendMutation'](_0x28b12f){const _0x4e5ab2=_0x513b3b;return this[_0x4e5ab2(0x47a)][_0x4e5ab2(0x152)](_0x28b12f),this;}[_0x513b3b(0x148)](_0x192c44){const _0x54a9a0=_0x513b3b;if(this[_0x54a9a0(0x425)](_0x192c44))return this[_0x54a9a0(0x260)](),this['_injector'][_0x54a9a0(0x269)](B,this[_0x54a9a0(0x44f)],this[_0x54a9a0(0x30b)],this['_awaitingChangeset'],this[_0x54a9a0(0x47a)],null,[_0x192c44],this[_0x54a9a0(0x2d1)]);try{const _0x1ceb2f=this['_transformService']['transformChangesets']([_0x192c44],[this[_0x54a9a0(0x371)]],!0x1);if(_0x987caa(_0x1ceb2f)){const {c1Prime:_0x2c6417,c2Prime:_0x4b6cc4}=_0x1ceb2f,_0x3033f2=this['_transformService'][_0x54a9a0(0x398)](_0x2c6417[0x0],this[_0x54a9a0(0x47a)]);if(_0x16b713(_0x3033f2)){const {c1Prime:_0x390eb6,m2Prime:_0x258173}=_0x3033f2;return this['_executeRemoteChangeset'](_0x390eb6),_0x4b6cc4[0x0][_0x54a9a0(0x3c1)]=this[_0x54a9a0(0x3f5)](),this[_0x54a9a0(0x260)](),this['_injector']['createInstance'](q,this['unitID'],this[_0x54a9a0(0x30b)],_0x4b6cc4[0x0],_0x258173,this[_0x54a9a0(0x2d1)],void 0x0);}throw _0x3033f2[_0x54a9a0(0x25c)];}throw _0x1ceb2f[_0x54a9a0(0x25c)];}catch(_0x14f089){return this['_logService']['error'](_0x14f089),this[_0x54a9a0(0x1c8)](!0x1);}}['onRemoteAck'](_0x519bde){const _0x1f4662=_0x513b3b;if(this[_0x1f4662(0x260)](),this[_0x1f4662(0x425)](_0x519bde))return this[_0x1f4662(0x31e)][_0x1f4662(0x269)](B,this['unitID'],this['type'],null,this[_0x1f4662(0x47a)],this[_0x1f4662(0x371)],[],this[_0x1f4662(0x2d1)]);this[_0x1f4662(0x42d)]();const _0x3d94c4=this[_0x1f4662(0x31e)]['createInstance'](X,this[_0x1f4662(0x44f)],this[_0x1f4662(0x30b)],this[_0x1f4662(0x47a)],this[_0x1f4662(0x2d1)]);return _0x3d94c4['_schedule'](),_0x3d94c4[_0x1f4662(0x211)](),_0x3d94c4;}[_0x513b3b(0x303)](_0x477701){const _0x1ad6ea=_0x513b3b;return this[_0x1ad6ea(0x1c8)](!!(_0x477701!=null&&_0x477701['isPermissionRej']));}[_0x513b3b(0x15d)](_0x3786ef){const _0xd335e3=_0x513b3b;return this['_resendTimeout']>Ys?this[_0xd335e3(0x420)]():(this[_0xd335e3(0x4dc)]=Gs(this['_resendTimeout'],{'timeout':this[_0xd335e3(0x23b)],'reqId':_0x3786ef[_0xd335e3(0x21b)]}),this[_0xd335e3(0x443)]=this[_0xd335e3(0x4dc)][_0xd335e3(0x465)](({reqId:_0x11eaea,timeout:_0x7f91d4})=>{this['_resendWithTimeout'](_0x11eaea,_0x7f91d4);}),this);}[_0x513b3b(0x420)](){const _0x11a1cd=_0x513b3b;return this[_0x11a1cd(0x260)](),this[_0x11a1cd(0x31e)][_0x11a1cd(0x269)](te,this[_0x11a1cd(0x44f)],this[_0x11a1cd(0x30b)],this[_0x11a1cd(0x371)],this[_0x11a1cd(0x47a)],this[_0x11a1cd(0x2d1)]);}[_0x513b3b(0x4b2)](){return this;}[_0x513b3b(0x42c)](){const _0x5a86bc=_0x513b3b;this[_0x5a86bc(0x2d1)][_0x5a86bc(0x17b)](this[_0x5a86bc(0x371)]);}[_0x513b3b(0x1c8)](_0x35ea2d){const _0x2c940f=_0x513b3b;return this[_0x2c940f(0x260)](),this[_0x2c940f(0x31e)][_0x2c940f(0x269)](ee,this[_0x2c940f(0x44f)],this['type'],null,this[_0x2c940f(0x47a)],this[_0x2c940f(0x2d1)],_0x35ea2d);}[_0x513b3b(0x213)](_0x430ca9,_0x2f8528){const _0x474052=_0x513b3b;var _0x1a76e3;_0x430ca9===((_0x1a76e3=this[_0x474052(0x371)])==null?void 0x0:_0x1a76e3[_0x474052(0x21b)])&&(this[_0x474052(0x42c)](),this[_0x474052(0x23b)]=_0x2f8528===0x0?0x3e8:_0x2f8528*0x2);}[_0x513b3b(0x260)](){const _0x3829df=_0x513b3b;var _0x53123e;(_0x53123e=this['_sender'])==null||_0x53123e[_0x3829df(0x48a)](),this[_0x3829df(0x23b)]=0x0;}};q=_e([f(0x6,_0x53ed15(_0x3165b6)),f(0x7,_0x53ed15(_0x231b85)),f(0x8,_0x53ed15(w)),f(0x9,_0x8348c),f(0xa,_0x385fd2),f(0xb,_0x2e5ae8),f(0xc,_0x3e29a6)],q);let ee=class extends ue{constructor(_0x1aa771,_0x5771dc,_0x554e65,_0x16d453,_0x2d544e,_0x29d7bc=!0x1,_0x3bb1f0,_0x3cad0a,_0x1dc5aa,_0x3c4a86,_0x1de5ee,_0x31670f,_0x1e1169){const _0x5cd002=_0x513b3b;super(_0x1aa771,_0x5771dc,_0x554e65,_0x16d453,_0x2d544e,_0x3cad0a,_0x1dc5aa,_0x1de5ee,_0x3c4a86),l(this,'status',_0x5cd002(0x3b2)),(this[_0x5cd002(0x2c4)]=_0x29d7bc,this[_0x5cd002(0x419)]=_0x3bb1f0,this[_0x5cd002(0x28c)]=_0x31670f,this[_0x5cd002(0x1ec)]=_0x1e1169,this[_0x5cd002(0x251)](),this[_0x5cd002(0x345)](),this[_0x5cd002(0x48c)]());}[_0x513b3b(0x177)](){return this;}[_0x513b3b(0x148)](){return this;}[_0x513b3b(0x29a)](){return this;}[_0x513b3b(0x303)](){return this;}[_0x513b3b(0x15d)](){return this;}[_0x513b3b(0x420)](){return this;}[_0x513b3b(0x4b2)](){return this;}[_0x513b3b(0x42c)](){const _0x422e3=_0x513b3b;throw new Error(_0x422e3(0x3e8));}['_clearLocalCache'](){const _0x5a3b3d=_0x513b3b;this[_0x5a3b3d(0x2be)][_0x5a3b3d(0x400)](this['unitID'],this[_0x5a3b3d(0x30b)],null,[]);}['_showConflictNotification'](){const _0x1f5d18=_0x513b3b;this['_isPermissionRej']?this[_0x1f5d18(0x1ec)][_0x1f5d18(0x32b)]({'title':this[_0x1f5d18(0x28c)]['t']('permission.title'),'content':this[_0x1f5d18(0x28c)]['t'](_0x1f5d18(0x216)),'type':_0x1f5d18(0x25c),'duration':0x0}):this[_0x1f5d18(0x1ec)][_0x1f5d18(0x32b)]({'title':this[_0x1f5d18(0x28c)]['t'](_0x1f5d18(0x417)),'content':this[_0x1f5d18(0x28c)]['t']('conflict.content'),'type':_0x1f5d18(0x25c),'duration':0x0});}[_0x513b3b(0x48c)](){const _0x1844af=_0x513b3b;this[_0x1844af(0x419)][_0x1844af(0x2ac)](new _0x40e1c4(this[_0x1844af(0x44f)])['id'],!0x1);}};ee=_e([f(0x6,_0x53ed15(_0x5f5b14)),f(0x7,_0x8348c),f(0x8,_0x3e29a6),f(0x9,_0x53ed15(w)),f(0xa,_0x53ed15(_0x231b85)),f(0xb,_0x53ed15(_0x1deb41)),f(0xc,_0x1380e0)],ee);let te=class extends ue{constructor(_0x5a4e6b,_0x3ebac1,_0x33812e,_0x4e0a8e,_0x2972fb,_0x8efdf8,_0x1e0f7c,_0x3e9212,_0x2ab0a7,_0x56a598){const _0x314e9d=_0x513b3b;super(_0x5a4e6b,_0x3ebac1,_0x33812e,_0x4e0a8e,_0x2972fb,_0x2ab0a7,_0x56a598,_0x1e0f7c,_0x3e9212),l(this,_0x314e9d(0x3a7),_0x314e9d(0x1da)),this['_injector']=_0x8efdf8;}[_0x513b3b(0x177)](_0x4ec510){const _0xe9b4d7=_0x513b3b;return this[_0xe9b4d7(0x47a)]['push'](_0x4ec510),this['_updateLocalCache'](),this;}[_0x513b3b(0x148)](_0x55e5db){const _0x31d782=_0x513b3b;throw new Error(_0x31d782(0x3ec));}[_0x513b3b(0x29a)](){const _0x969f53=_0x513b3b;throw new Error(_0x969f53(0x333));}['onRemoteRej'](){const _0x562b61=_0x513b3b;throw new Error(_0x562b61(0x1d3));}[_0x513b3b(0x15d)](){return this;}[_0x513b3b(0x420)](){return this;}[_0x513b3b(0x4b2)](){const _0x1a105b=_0x513b3b,{_injector:_0x1fc4ec,_pendingMutations:_0x5e01be,_awaitingChangeset:_0x439af0,unitID:_0x21734e,_handler:_0x5b1e07,type:_0x198746}=this,_0x24d077=Ks(_0x1fc4ec,_0x21734e,_0x198746,_0x439af0,_0x5e01be,_0x5b1e07);return _0x24d077 instanceof X?_0x24d077[_0x1a105b(0x3b3)]():(_0x24d077 instanceof q||_0x24d077 instanceof Q)&&_0x24d077[_0x1a105b(0x42c)](),_0x24d077;}[_0x513b3b(0x42c)](){const _0x1b07e5=_0x513b3b;throw new Error(_0x1b07e5(0x356));}};te=_e([f(0x5,_0x53ed15(_0x3165b6)),f(0x6,_0x53ed15(_0x231b85)),f(0x7,_0x53ed15(w)),f(0x8,_0x8348c),f(0x9,_0x3e29a6)],te);let B=class extends ue{constructor(_0x4866d7,_0x638fec,_0x277a25,_0x1806ad,_0x2ce2c9,_0x476965,_0x3bd0fc,_0x40aac1,_0x1a80f1,_0x2c5880,_0x526bb6,_0x54269c,_0x4ad9c0,_0x1f246f){const _0x5df2e0=_0x513b3b;super(_0x4866d7,_0x638fec,_0x277a25,_0x1806ad,_0x3bd0fc,_0x54269c,_0x4ad9c0,_0x1a80f1,_0x2c5880),l(this,_0x5df2e0(0x3a7),_0x5df2e0(0x44e)),(this[_0x5df2e0(0x24e)]=_0x2ce2c9,this['_queuedRemoteChangesets']=_0x476965,this[_0x5df2e0(0x31e)]=_0x40aac1,this['_logService']=_0x526bb6,this[_0x5df2e0(0x283)]=_0x1f246f);}[_0x513b3b(0x185)](_0x1698ec){const _0x26d12e=_0x513b3b;try{const _0x55487f=[..._0x1698ec,...this[_0x26d12e(0x23c)]],_0x5a6fc3=[this[_0x26d12e(0x371)]||this[_0x26d12e(0x24e)]][_0x26d12e(0x2ad)](_0xb5e3f4=>!!_0xb5e3f4);let _0x156610,_0x27ad49;if(_0x5a6fc3['length']){const _0x366697=this['_transformService'][_0x26d12e(0x346)](_0x55487f,_0x5a6fc3,!0x1);if(!_0x987caa(_0x366697))throw _0x366697[_0x26d12e(0x25c)];_0x156610=_0x366697[_0x26d12e(0x2e0)],_0x27ad49=_0x366697[_0x26d12e(0x485)];}else _0x156610=_0x55487f,_0x27ad49=[];let _0x4cd347=this[_0x26d12e(0x47a)];_0x156610[_0x26d12e(0x301)](_0x3185e4=>{const _0x11c48f=_0x26d12e;let _0x513ef3;if(_0x4cd347[_0x11c48f(0x313)]){const _0x3b0803=this['_transformService'][_0x11c48f(0x398)](_0x3185e4,_0x4cd347);if(!_0x16b713(_0x3b0803))throw _0x3b0803['error'];_0x513ef3=_0x3b0803[_0x11c48f(0x2e0)],_0x4cd347=_0x3b0803[_0x11c48f(0x2b9)];}else _0x513ef3=_0x3185e4;this[_0x11c48f(0x2dc)](_0x513ef3);}),this[_0x26d12e(0x24e)]&&this['_incrementRevisionNumber'](),this[_0x26d12e(0x371)]&&_0x27ad49[_0x26d12e(0x313)]&&(_0x27ad49[0x0]['baseRev']=this[_0x26d12e(0x3f5)]());let _0x391e60;if(this[_0x26d12e(0x371)]&&_0x4cd347['length']!==0x0)_0x391e60=this['_injector'][_0x26d12e(0x269)](q,this[_0x26d12e(0x44f)],this[_0x26d12e(0x30b)],_0x27ad49[0x0],_0x4cd347,this[_0x26d12e(0x2d1)],void 0x0);else{if(this[_0x26d12e(0x371)]&&_0x4cd347[_0x26d12e(0x313)]===0x0)_0x27ad49[0x0]['baseRev']=this['_getCurrentRevision'](),_0x391e60=this[_0x26d12e(0x31e)][_0x26d12e(0x269)](Q,this[_0x26d12e(0x44f)],this[_0x26d12e(0x30b)],_0x27ad49[0x0],this[_0x26d12e(0x2d1)]);else{if(_0x4cd347[_0x26d12e(0x313)]!==0x0){const _0x4a9229=this['_injector']['createInstance'](X,this['unitID'],this[_0x26d12e(0x30b)],_0x4cd347,this[_0x26d12e(0x2d1)]);_0x4a9229[_0x26d12e(0x3b3)](),_0x391e60=_0x4a9229;}else _0x391e60=this['_injector'][_0x26d12e(0x269)](pe,this['unitID'],this[_0x26d12e(0x30b)],this['_handler']);}}return _0x391e60['_updateLocalCache'](),_0x391e60;}catch(_0xabca39){return this[_0x26d12e(0x4e0)]['error']('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0xabca39),this[_0x26d12e(0x31e)][_0x26d12e(0x269)](ee,this[_0x26d12e(0x44f)],this[_0x26d12e(0x30b)],this['_awaitingChangeset'],this[_0x26d12e(0x47a)],this['_handler'],!0x1);}}[_0x513b3b(0x42c)](){const _0x268391=_0x513b3b;throw new Error(_0x268391(0x1f1));}['appendMutation'](_0x797caa){const _0x5462c4=_0x513b3b;return this[_0x5462c4(0x47a)]['push'](_0x797caa),this;}['onRemoteChangeset'](_0x388b43){const _0x125890=_0x513b3b;return this[_0x125890(0x23c)][_0x125890(0x152)](_0x388b43),this;}['onRemoteAck'](_0x45df11){const _0x48a2be=_0x513b3b;if(this[_0x48a2be(0x371)])return this[_0x48a2be(0x24e)]=this['_awaitingChangeset'],this[_0x48a2be(0x371)]=null,this;throw new Error(_0x48a2be(0x364));}['onRemoteRej'](_0x421e24){const _0x2e046f=_0x513b3b;return this['_onConflict'](!!(_0x421e24!=null&&_0x421e24[_0x2e046f(0x21f)]));}[_0x513b3b(0x15d)](){return this;}[_0x513b3b(0x420)](){const _0x51b05b=_0x513b3b;return this[_0x51b05b(0x31e)][_0x51b05b(0x269)](te,this[_0x51b05b(0x44f)],this[_0x51b05b(0x30b)],this[_0x51b05b(0x371)],this['_pendingMutations'],this['_handler']);}[_0x513b3b(0x4b2)](){return this;}[_0x513b3b(0x1c8)](_0x10336f){const _0x41f457=_0x513b3b;return this[_0x41f457(0x31e)][_0x41f457(0x269)](ee,this['unitID'],this['type'],this[_0x41f457(0x371)],this[_0x41f457(0x47a)],this[_0x41f457(0x2d1)],_0x10336f);}};B=_e([f(0x7,_0x53ed15(_0x3165b6)),f(0x8,_0x53ed15(_0x231b85)),f(0x9,_0x53ed15(w)),f(0xa,_0x385fd2),f(0xb,_0x8348c),f(0xc,_0x3e29a6),f(0xd,_0x2e5ae8)],B);function Ks(_0x56d15f,_0x35e6c3,_0x316ca8,_0x3c1fcc,_0x580152,_0x4033da){const _0x32ebe7=_0x513b3b;return _0x3c1fcc&&_0x580152[_0x32ebe7(0x313)]?_0x56d15f[_0x32ebe7(0x269)](q,_0x35e6c3,_0x316ca8,_0x3c1fcc,_0x580152,_0x4033da,void 0x0):_0x3c1fcc?_0x56d15f[_0x32ebe7(0x269)](Q,_0x35e6c3,_0x316ca8,_0x3c1fcc,_0x4033da):_0x580152[_0x32ebe7(0x313)]?_0x56d15f[_0x32ebe7(0x269)](X,_0x35e6c3,_0x316ca8,_0x580152,_0x4033da):_0x56d15f[_0x32ebe7(0x269)](pe,_0x35e6c3,_0x316ca8,_0x4033da);}var Dr=Object[_0x513b3b(0x1a5)],wr=Object[_0x513b3b(0x1be)],Wt=(_0x52ab6d,_0x71693b,_0x2fbdb7,_0x3ad0fa)=>{const _0x257e1d=_0x513b3b;for(var _0x1b2991=_0x3ad0fa>0x1?void 0x0:_0x3ad0fa?wr(_0x71693b,_0x2fbdb7):_0x71693b,_0x19f318=_0x52ab6d[_0x257e1d(0x313)]-0x1,_0x41316d;_0x19f318>=0x0;_0x19f318--)(_0x41316d=_0x52ab6d[_0x19f318])&&(_0x1b2991=(_0x3ad0fa?_0x41316d(_0x71693b,_0x2fbdb7,_0x1b2991):_0x41316d(_0x1b2991))||_0x1b2991);return _0x3ad0fa&&_0x1b2991&&Dr(_0x71693b,_0x2fbdb7,_0x1b2991),_0x1b2991;},p=(_0x234ca7,_0x3fef2a)=>(_0x4faf48,_0x28f7b5)=>_0x3fef2a(_0x4faf48,_0x28f7b5,_0x234ca7);let qe=class extends _0x346899{constructor(_0xdd140,_0x22068d,_0x5481a7,_0x33e573,_0x14ceae,_0x10389d,_0x32489b,_0x125774,_0x3cceb3,_0x44dab1,_0x2d356a,_0x5133dd,_0x41f33b){const _0x5740eb=_0x513b3b;super(),l(this,_0x5740eb(0x154),new _0x1edb16(null)),l(this,'state$',this['_state$'][_0x5740eb(0x2a4)]()),l(this,_0x5740eb(0x2f0)),l(this,_0x5740eb(0x4ac),!0x1),l(this,_0x5740eb(0x253),''),l(this,_0x5740eb(0x238),0x0),l(this,_0x5740eb(0x258),this['state$'][_0x5740eb(0x33b)](_0x1744c3(_0x462379=>_0x462379?_0x462379[_0x5740eb(0x3a7)]:P[_0x5740eb(0x44c)]),_0x1fbf92(0x1))),l(this,_0x5740eb(0x30a),!0x1),l(this,'_remoteChangesetQueue',[]),(this[_0x5740eb(0x44f)]=_0xdd140,this[_0x5740eb(0x456)]=_0x22068d,this['_type']=_0x5481a7,this[_0x5740eb(0x31e)]=_0x33e573,this[_0x5740eb(0x2be)]=_0x14ceae,this[_0x5740eb(0x20b)]=_0x10389d,this['_localeService']=_0x32489b,this[_0x5740eb(0x344)]=_0x125774,this[_0x5740eb(0x4e0)]=_0x3cceb3,this['_commandService']=_0x44dab1,this[_0x5740eb(0x26e)]=_0x2d356a,this[_0x5740eb(0x419)]=_0x5133dd,this[_0x5740eb(0x41b)]=_0x41f33b);}get[_0x513b3b(0x3cc)](){const _0x289cca=_0x513b3b;return this[_0x289cca(0x2f0)];}async['init'](){const _0x49d597=_0x513b3b;if(this['state'])throw new Error(_0x49d597(0x2a5));await this[_0x49d597(0x49c)]();}[_0x513b3b(0x281)](){const _0x32fa39=_0x513b3b;return this[_0x32fa39(0x4ac)]=!0x0,_0x29caef(()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x513b3b(0x153)](_0x10a6ec){const _0x496d46=_0x513b3b;this[_0x496d46(0x2f0)]=_0x10a6ec,this[_0x496d46(0x154)][_0x496d46(0x48d)](_0x10a6ec);}async[_0x513b3b(0x49c)](){const _0x3df1c5=_0x513b3b;var _0x49967d;this[_0x3df1c5(0x153)](await this[_0x3df1c5(0x2b4)]()),this[_0x3df1c5(0x41b)]&&((_0x49967d=this[_0x3df1c5(0x41b)])==null||_0x49967d[_0x3df1c5(0x368)](this[_0x3df1c5(0x44f)]),this[_0x3df1c5(0x233)](this['_singleActiveUnitService'][_0x3df1c5(0x3a1)](this['unitID'])[_0x3df1c5(0x465)](_0x4e218e=>{const _0x44df80=_0x3df1c5;this[_0x44df80(0x4e0)][_0x44df80(0x2bc)](_0x44df80(0x156),'editing\x20status\x20changed\x20to',_0x4e218e),_0x4e218e===Fs[_0x44df80(0x1fe)]?(this['_messageService'][_0x44df80(0x32b)]({'content':this[_0x44df80(0x28c)]['t'](_0x44df80(0x4e2)),'type':_0x1f1b3b[_0x44df80(0x442)]}),this[_0x44df80(0x419)][_0x44df80(0x2ac)](new _0x40e1c4(this[_0x44df80(0x44f)])['id'],!0x1)):this[_0x44df80(0x419)]['updatePermissionPoint'](new _0x40e1c4(this[_0x44df80(0x44f)])['id'],!0x0);})));let _0x4c5fc5=!0x1;return this['disposeWithMe'](this['session'][_0x3df1c5(0x3a6)][_0x3df1c5(0x465)](_0x2fc646=>{const _0x1ceac4=_0x3df1c5;_0x2fc646===Y['ONLINE']?this[_0x1ceac4(0x4c0)](_0x4c5fc5):_0x2fc646===Y[_0x1ceac4(0x44c)]&&(_0x4c5fc5=!0x0,this[_0x1ceac4(0x3cb)]());})),this['disposeWithMe'](this['session']['event$'][_0x3df1c5(0x465)](_0x52e237=>{const _0x701ee9=_0x3df1c5;try{switch(_0x52e237['eventID']){case _0x46c90b['NEW_CHANGESETS']:{this[_0x701ee9(0x162)](_0x80fd6(_0x52e237['data']));break;}case _0x46c90b[_0x701ee9(0x3cf)]:{this['_onRemoteACK'](_0x52e237[_0x701ee9(0x14f)]);break;}case _0x46c90b['CHANGESET_REJ']:{this[_0x701ee9(0x3ac)]();break;}case _0x46c90b['CHANGESET_SHOULD_RETRY']:{this[_0x701ee9(0x4db)](_0x52e237['data']);break;}case _0x46c90b[_0x701ee9(0x196)]:{this[_0x701ee9(0x48f)](_0x52e237[_0x701ee9(0x14f)][_0x701ee9(0x1e6)][_0x701ee9(0x15a)](_0x533fb6=>_0x80fd6(_0x533fb6)));break;}case _0x46c90b[_0x701ee9(0x4ba)]:this[_0x701ee9(0x3ac)]({'isPermissionRej':!0x0});}}catch(_0x12a353){throw console['error'](_0x701ee9(0x29f),_0x12a353),_0x12a353;}})),this[_0x3df1c5(0x2f0)];}[_0x513b3b(0x405)](){this['_transitionLocked']=!0x1;}[_0x513b3b(0x375)](){const _0x3bf101=_0x513b3b;if(this['_transitionLocked'])throw new Error(_0x3bf101(0x199));this[_0x3bf101(0x30a)]=!0x0;}[_0x513b3b(0x19a)](_0x296966){const _0x1f7b9f=_0x513b3b;this[_0x1f7b9f(0x375)](),this[_0x1f7b9f(0x153)](this[_0x1f7b9f(0x2f0)][_0x1f7b9f(0x177)](_0x296966)),this[_0x1f7b9f(0x405)]();}[_0x513b3b(0x162)](_0x229545){const _0x2bfed5=_0x513b3b;if(!(_0x229545[_0x2bfed5(0x2de)]<=this[_0x2bfed5(0x344)][_0x2bfed5(0x324)](this[_0x2bfed5(0x44f)]))){if(this[_0x2bfed5(0x4ac)]){this[_0x2bfed5(0x2a1)][_0x2bfed5(0x152)](_0x229545);return;}this[_0x2bfed5(0x391)](_0x229545);}}['_exhaustRemoteChangesetQueue'](){const _0xf592d9=_0x513b3b;this[_0xf592d9(0x2a1)][_0xf592d9(0x301)](_0x519a02=>this[_0xf592d9(0x391)](_0x519a02)),this[_0xf592d9(0x2a1)]=[];}[_0x513b3b(0x391)](_0x3b945f){const _0x4a698a=_0x513b3b,_0x1c176d=this['_compressMutationService']['interceptor'][_0x4a698a(0x268)](this[_0x4a698a(0x20b)][_0x4a698a(0x4da)][_0x4a698a(0x461)]()[_0x4a698a(0x36f)])(_0x3b945f[_0x4a698a(0x421)],null)||_0x3b945f['mutations'],_0xdcbd5d={..._0x3b945f,'mutations':_0x1c176d};this[_0x4a698a(0x375)](),this[_0x4a698a(0x153)](this[_0x4a698a(0x2f0)][_0x4a698a(0x148)](_0xdcbd5d)),this[_0x4a698a(0x405)]();}['_onRemoteACK'](_0x57dfac){const _0xb5eba0=_0x513b3b;this[_0xb5eba0(0x375)](),this[_0xb5eba0(0x153)](this[_0xb5eba0(0x2f0)]['onRemoteAck'](_0x57dfac)),this[_0xb5eba0(0x405)]();}[_0x513b3b(0x3ac)](_0x36621d){const _0x379d34=_0x513b3b;this[_0x379d34(0x375)](),this[_0x379d34(0x153)](this[_0x379d34(0x2f0)][_0x379d34(0x303)](_0x36621d)),this[_0x379d34(0x405)]();}[_0x513b3b(0x4db)](_0x3c990b){const _0x29532b=_0x513b3b;this[_0x29532b(0x375)](),this[_0x29532b(0x153)](this[_0x29532b(0x2f0)][_0x29532b(0x15d)](_0x3c990b)),this[_0x29532b(0x405)]();}[_0x513b3b(0x48f)](_0x5e13a3){const _0x219d05=_0x513b3b;if(!(this['_state']instanceof B))throw new TypeError(_0x219d05(0x15f));const _0x413c4f=_0x5e13a3[_0x219d05(0x15a)](_0x424f1d=>{const _0x1c8650=_0x219d05,_0xe3f59c=this[_0x1c8650(0x20b)][_0x1c8650(0x4da)][_0x1c8650(0x268)](this[_0x1c8650(0x20b)][_0x1c8650(0x4da)][_0x1c8650(0x461)]()['COMPRESS_MUTATION_APPLY'])(_0x424f1d[_0x1c8650(0x421)],null)||_0x424f1d[_0x1c8650(0x421)];return{..._0x424f1d,'mutations':_0xe3f59c};});this[_0x219d05(0x375)](),this[_0x219d05(0x153)](this['_state'][_0x219d05(0x185)](_0x413c4f)),this[_0x219d05(0x405)]();}[_0x513b3b(0x3cb)](){const _0x46865d=_0x513b3b;this['_lockTransition'](),this[_0x46865d(0x153)](this[_0x46865d(0x2f0)][_0x46865d(0x420)]()),this[_0x46865d(0x405)]();}['_toggleOnline'](_0x395915=!0x1){const _0x4028a6=_0x513b3b;this[_0x4028a6(0x375)](),this[_0x4028a6(0x153)](this[_0x4028a6(0x2f0)][_0x4028a6(0x4b2)]()),this[_0x4028a6(0x405)]();const _0xdebd17=this['_state'];_0x395915&&_0xdebd17 instanceof pe&&(this[_0x4028a6(0x375)](),this[_0x4028a6(0x153)](_0xdebd17[_0x4028a6(0x361)]()),this[_0x4028a6(0x405)]());}async[_0x513b3b(0x2b4)](){return new Promise(_0x23c95b=>{const _0x1f0bbc=_0x1736;this[_0x1f0bbc(0x456)]['sessionStatus$']['pipe'](_0x549142(0x1))[_0x1f0bbc(0x465)](async _0x1183fb=>{const _0x1c6300=_0x1f0bbc;_0x23c95b(await this[_0x1c6300(0x191)](_0x1183fb===Y[_0x1c6300(0x1f7)]));});});}[_0x513b3b(0x170)](){const _0x5dbf6e=_0x513b3b,_0x24df4a=this[_0x5dbf6e(0x44f)];return{'onStateChange':(_0x1f75aa,_0x18dcaf)=>{const _0x3379d5=_0x5dbf6e;if(_0x1f75aa!==this[_0x3379d5(0x2f0)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x1f75aa[_0x3379d5(0x3a7)]+_0x3379d5(0x296)+_0x18dcaf[_0x3379d5(0x3a7)]+'\x0aCurrent:\x20'+this[_0x3379d5(0x2f0)][_0x3379d5(0x3a7)]);this['_updateState'](_0x18dcaf);},'onSendChangeset':_0x36d2c9=>{const _0x3329c6=_0x5dbf6e;_0x36d2c9[_0x3329c6(0x218)]||(_0x36d2c9[_0x3329c6(0x218)]=this['_changesetSessionId'],_0x36d2c9[_0x3329c6(0x21b)]=++this['_changesetReqId']);const _0x20f959={'eventID':_0x46c90b[_0x3329c6(0x29e)],'data':{'unitID':_0x36d2c9[_0x3329c6(0x44f)],'unitType':this['_type'],'changeset':_0x36d2c9,'memberID':this[_0x3329c6(0x456)][_0x3329c6(0x45c)]()}};this['session'][_0x3329c6(0x415)](_0x20f959,this['unitID']);},'onMissingChangesets':({from:_0x35b7be,to:_0x4b0eea})=>{const _0x2bfd6e=_0x5dbf6e;this['_logService']['debug']('[CollaborationEntity]',_0x2bfd6e(0x45e)+_0x35b7be+_0x2bfd6e(0x402)+_0x4b0eea);const _0x41fde0={'eventID':_0x46c90b[_0x2bfd6e(0x1c6)],'data':{'unitID':_0x24df4a,'unitType':this['_type'],'from':_0x35b7be,'to':_0x4b0eea}};this['session']['send'](_0x41fde0,this[_0x2bfd6e(0x44f)]);}};}async['_createInitialStateImpl'](_0x3db43f){const _0x279773=_0x513b3b;var _0x24826e,_0x4abc6e;const _0x4975f7=await this['_localCacheService']['loadOfflineData'](this[_0x279773(0x44f)]),_0x2d06cd=(_0x24826e=_0x4975f7==null?void 0x0:_0x4975f7[_0x279773(0x421)])!=null?_0x24826e:[],_0x5aa5cb=(_0x4abc6e=_0x4975f7==null?void 0x0:_0x4975f7['awaitingChangeset'])!=null?_0x4abc6e:null,_0xf0fdaf=!!(_0x5aa5cb!=null&&_0x5aa5cb[_0x279773(0x218)])&&!!(_0x5aa5cb!=null&&_0x5aa5cb[_0x279773(0x21b)]);this[_0x279773(0x253)]=_0xf0fdaf?_0x5aa5cb[_0x279773(0x218)]:or(),this['_changesetReqId']=_0xf0fdaf?_0x5aa5cb[_0x279773(0x21b)]:0x0;const _0x4ba70e=this[_0x279773(0x44f)];try{this[_0x279773(0x2ce)](_0x5aa5cb,_0x2d06cd);}catch(_0x2237c7){this[_0x279773(0x4e0)][_0x279773(0x25c)](_0x2237c7);}const _0x507b59=this[_0x279773(0x170)]();if(_0x3db43f){const _0x3aecfc=Ks(this['_injector'],_0x4ba70e,this[_0x279773(0x308)],_0x5aa5cb,_0x2d06cd,_0x507b59);return _0x3aecfc instanceof X?_0x3aecfc[_0x279773(0x3b3)]():(_0x3aecfc instanceof q||_0x3aecfc instanceof Q)&&_0x3aecfc[_0x279773(0x42c)](),_0x3aecfc;}return this['_injector'][_0x279773(0x269)](te,_0x4ba70e,this['_type'],_0x5aa5cb,_0x2d06cd,_0x507b59);}['_replayCachedMutations'](_0xe355a7,_0x51b724){const _0x3698e5=_0x513b3b;var _0x28df3f,_0x203dd8;const _0x2bf86a=this['_compressMutationService'][_0x3698e5(0x4da)][_0x3698e5(0x268)](this[_0x3698e5(0x20b)]['interceptor'][_0x3698e5(0x461)]()[_0x3698e5(0x36f)]);(_0x28df3f=_0x2bf86a((_0xe355a7==null?void 0x0:_0xe355a7[_0x3698e5(0x421)])||[],null))==null||_0x28df3f['forEach'](_0x2e56f4=>this[_0x3698e5(0x2b6)][_0x3698e5(0x374)](_0x2e56f4['id'],_0x2e56f4[_0x3698e5(0x498)])),(_0x203dd8=_0x2bf86a(_0x51b724||[],null))==null||_0x203dd8[_0x3698e5(0x301)](_0x1a8cae=>this[_0x3698e5(0x2b6)][_0x3698e5(0x374)](_0x1a8cae['id'],_0x1a8cae[_0x3698e5(0x498)]));}};qe=Wt([p(0x3,_0x53ed15(_0x3165b6)),p(0x4,_0x53ed15(w)),p(0x5,_0x53ed15(_0x227dad)),p(0x6,_0x53ed15(_0x1deb41)),p(0x7,_0x53ed15(_0x231b85)),p(0x8,_0x385fd2),p(0x9,_0x8348c),p(0xa,_0x4608dc),p(0xb,_0x5f5b14),p(0xc,_0x507395(tt))],qe);let Tt=class extends qe{constructor(_0x2634ba,_0x19f6ee,_0x87101e,_0x5f16cb,_0x2f5984,_0xd67850,_0x6bf3ee,_0x4b00ba,_0x9b906d,_0x394a0b,_0x4d5655,_0x85c65e,_0x4cf313,_0x3a5f79,_0x5e6978,_0x90b8ed,_0x5c459e){const _0x144c0d=_0x513b3b;super(_0x2634ba,_0x87101e,_0x19f6ee,_0x5f16cb,_0x2f5984,_0xd67850,_0x6bf3ee,_0x4b00ba,_0x4cf313,_0x3a5f79,_0x5e6978,_0x90b8ed,_0x5c459e),this['unitID']=_0x2634ba,this[_0x144c0d(0x30b)]=_0x19f6ee,this['_docStateChangeManagerService']=_0x9b906d,this[_0x144c0d(0x2f1)]=_0x394a0b,this[_0x144c0d(0x202)]=_0x4d5655,this['_docSyncEditingCollabCursorService']=_0x85c65e;}[_0x513b3b(0x170)](){const _0x4d819d=_0x513b3b,_0x4d0671=super[_0x4d819d(0x170)]();return _0x4d0671[_0x4d819d(0x4cd)]=_0x188ab1=>this[_0x4d819d(0x2f1)]['transformIMECache'](_0x188ab1),_0x4d0671[_0x4d819d(0x294)]=_0x4d09f6=>this[_0x4d819d(0x202)][_0x4d819d(0x439)](_0x4d09f6),_0x4d0671['onSyncEditingCollabCursor']=_0x5b0147=>this[_0x4d819d(0x267)][_0x4d819d(0x4a8)](_0x5b0147),_0x4d0671[_0x4d819d(0x168)]=_0xadcdb8=>this[_0x4d819d(0x2f1)][_0x4d819d(0x26a)](_0xadcdb8),_0x4d0671;}async[_0x513b3b(0x49c)](){const _0x2f94e8=_0x513b3b,_0xbefd14=await super[_0x2f94e8(0x49c)]();return this[_0x2f94e8(0x18a)][_0x2f94e8(0x1d7)]['pipe'](_0x3bacfd(this[_0x2f94e8(0x2d2)]))[_0x2f94e8(0x465)](_0x35b53b=>{const _0x12b4e7=_0x2f94e8;if(_0x35b53b==null)return;const {unitId:_0x1b0f65,redoState:_0x4d1c74,commandId:_0x30885d}=_0x35b53b;if(_0x1b0f65!==this[_0x12b4e7(0x44f)])return;const _0x5d4d9c={'id':_0x30885d,'type':_0x4e2bbf['MUTATION'],'params':{'unitId':_0x1b0f65,'actions':_0x4d1c74[_0x12b4e7(0x458)],'textRanges':null}};this[_0x12b4e7(0x19a)](_0x5d4d9c);}),_0xbefd14;}};Tt=Wt([p(0x3,_0x53ed15(_0x3165b6)),p(0x4,_0x53ed15(w)),p(0x5,_0x53ed15(_0x227dad)),p(0x6,_0x53ed15(_0x1deb41)),p(0x7,_0x53ed15(_0x231b85)),p(0x8,_0x53ed15(_0x1896f0)),p(0x9,_0x53ed15(Ye)),p(0xa,_0x53ed15(Xe)),p(0xb,_0x53ed15(Ft)),p(0xc,_0x385fd2),p(0xd,_0x8348c),p(0xe,_0x4608dc),p(0xf,_0x5f5b14),p(0x10,_0x507395(tt))],Tt);let Rt=class extends qe{constructor(_0x25c84a,_0x537ff1,_0x56204f,_0x594be3,_0x1e3bcc,_0xb807da,_0x59c506,_0x530dd5,_0x21a1f3,_0x30fe91,_0x403f9a,_0x4cc787,_0x2bd27c,_0xc5c0a0){const _0x1de71a=_0x513b3b;super(_0x25c84a,_0x56204f,_0x537ff1,_0x594be3,_0x1e3bcc,_0xb807da,_0x59c506,_0x530dd5,_0x30fe91,_0x403f9a,_0x4cc787,_0x2bd27c,_0xc5c0a0),this[_0x1de71a(0x44f)]=_0x25c84a,this[_0x1de71a(0x30b)]=_0x537ff1,this[_0x1de71a(0x2e5)]=_0x21a1f3;}[_0x513b3b(0x170)](){const _0xb2a1f5=_0x513b3b,_0x3eb132=super[_0xb2a1f5(0x170)]();return _0x3eb132[_0xb2a1f5(0x294)]=_0x3a3346=>this['_sheetTransformSelectionsService']['transformSelections'](_0x3a3346),_0x3eb132;}async[_0x513b3b(0x49c)](){const _0x2985c0=_0x513b3b,_0x4d27b6=await super[_0x2985c0(0x49c)]();return this[_0x2985c0(0x233)](this[_0x2985c0(0x2b6)][_0x2985c0(0x46f)]((_0x488b7f,_0x512cad)=>{const _0x1730d5=_0x2985c0;if(_0x488b7f['type']!==_0x4e2bbf['MUTATION']||_0x512cad!=null&&_0x512cad[_0x1730d5(0x373)]||_0x512cad!=null&&_0x512cad[_0x1730d5(0x309)])return;const _0x2d743b=_0x488b7f['params'];if((_0x2d743b==null?void 0x0:_0x2d743b[_0x1730d5(0x1af)])!==this[_0x1730d5(0x44f)])return;const _0x227739=_0x488b7f,_0x21ea61=this['_compressMutationService']['interceptor'][_0x1730d5(0x268)](this[_0x1730d5(0x20b)][_0x1730d5(0x4da)][_0x1730d5(0x461)]()['COMPRESS_MUTATION_SEND'])([_0x227739],null)||[_0x227739];this[_0x1730d5(0x19a)](_0x21ea61[0x0]);})),_0x4d27b6;}};Rt=Wt([p(0x3,_0x53ed15(_0x3165b6)),p(0x4,_0x53ed15(w)),p(0x5,_0x53ed15(_0x227dad)),p(0x6,_0x53ed15(_0x1deb41)),p(0x7,_0x53ed15(_0x231b85)),p(0x8,_0x53ed15(Ke)),p(0x9,_0x385fd2),p(0xa,_0x8348c),p(0xb,_0x4608dc),p(0xc,_0x5f5b14),p(0xd,_0x507395(tt))],Rt);var Pr=Object[_0x513b3b(0x1a5)],yr=Object['getOwnPropertyDescriptor'],Ur=(_0x539a89,_0x1ad617,_0x4a708c,_0x566c7c)=>{for(var _0x1d4afb=_0x566c7c>0x1?void 0x0:_0x566c7c?yr(_0x1ad617,_0x4a708c):_0x1ad617,_0x230dea=_0x539a89['length']-0x1,_0x148990;_0x230dea>=0x0;_0x230dea--)(_0x148990=_0x539a89[_0x230dea])&&(_0x1d4afb=(_0x566c7c?_0x148990(_0x1ad617,_0x4a708c,_0x1d4afb):_0x148990(_0x1d4afb))||_0x1d4afb);return _0x566c7c&&_0x1d4afb&&Pr(_0x1ad617,_0x4a708c,_0x1d4afb),_0x1d4afb;},_t=(_0x329236,_0x4cbe5e)=>(_0x29bd97,_0xe2558c)=>_0x4cbe5e(_0x29bd97,_0xe2558c,_0x329236);let Le=class extends _0x346899{constructor(_0x3ff36d,_0xdf1cbe,_0x190bab){const _0x24fc73=_0x513b3b;super(),l(this,'_entities',new Map()),l(this,_0x24fc73(0x3d8),new _0x210aee()),(this[_0x24fc73(0x31e)]=_0x3ff36d,this[_0x24fc73(0x1c4)]=_0xdf1cbe,this[_0x24fc73(0x4c4)]=_0x190bab,this[_0x24fc73(0x49c)]());}[_0x513b3b(0x3ce)](){const _0x4f5663=_0x513b3b;super[_0x4f5663(0x3ce)](),this[_0x4f5663(0x217)][_0x4f5663(0x301)](_0x2e1a27=>_0x2e1a27['dispose']()),this[_0x4f5663(0x217)]['clear']();}[_0x513b3b(0x1a2)](_0x3e4c76){const _0x1d0313=_0x513b3b;var _0x1e17ea;return(_0x1e17ea=this[_0x1d0313(0x217)][_0x1d0313(0x49f)](_0x3e4c76))!=null?_0x1e17ea:null;}['getCollabEntity$'](_0x1f246){const _0x2c4296=_0x513b3b,_0x487dc2=this['getCollabEntity'](_0x1f246);return _0x487dc2?_0x207817(_0x487dc2):this[_0x2c4296(0x3d8)][_0x2c4296(0x33b)](_0x5bfb9e(_0x2d14bc=>_0x2d14bc[_0x2c4296(0x44f)]===_0x1f246));}[_0x513b3b(0x49c)](){const _0x341b32=_0x513b3b;this[_0x341b32(0x4c4)]['getTypeOfUnitAdded$'](_0x743738[_0x341b32(0x3b6)])[_0x341b32(0x33b)](_0x3bacfd(this[_0x341b32(0x2d2)]),_0x3b7ba7(0x10))[_0x341b32(0x465)](async _0x244f41=>{const _0x13eeae=_0x341b32,_0x29f03c=_0x244f41['getUnitId'](),_0x336d10=await this[_0x13eeae(0x352)](_0x29f03c,k[_0x13eeae(0x3b6)]);this['_entities'][_0x13eeae(0x3ca)](_0x29f03c,_0x336d10);}),this[_0x341b32(0x4c4)][_0x341b32(0x290)](_0x743738['UNIVER_DOC'])['pipe'](_0x3bacfd(this['dispose$']),_0x3b7ba7(0x10))[_0x341b32(0x33b)](_0x5bfb9e(_0x4def36=>!_0x4def36['getUnitId']()[_0x341b32(0x178)]('__')))[_0x341b32(0x465)](async _0x2077e1=>{const _0x2af6fc=_0x341b32,_0x35f9ad=_0x2077e1[_0x2af6fc(0x389)](),_0x5a4b10=await this[_0x2af6fc(0x352)](_0x35f9ad,k['UNIVER_DOC']);this[_0x2af6fc(0x217)]['set'](_0x35f9ad,_0x5a4b10);}),_0x2f0d88(this[_0x341b32(0x4c4)]['getTypeOfUnitDisposed$'](_0x743738[_0x341b32(0x3b6)]),this['_univerInstanceService'][_0x341b32(0x4d9)](_0x743738[_0x341b32(0x1a4)]))['pipe'](_0x3bacfd(this['dispose$']))[_0x341b32(0x465)](_0x12c9b9=>{const _0x4dede0=_0x341b32,_0x3334bf=_0x12c9b9['getUnitId'](),_0x41ef1e=this[_0x4dede0(0x217)]['get'](_0x3334bf);_0x41ef1e&&(_0x41ef1e[_0x4dede0(0x3ce)](),this[_0x4dede0(0x217)][_0x4dede0(0x248)](_0x3334bf));});}async[_0x513b3b(0x352)](_0x13d849,_0x5de976){const _0x1af69a=_0x513b3b,_0x194690=await this[_0x1af69a(0x1c4)][_0x1af69a(0x23e)](_0x13d849),_0x1b11d9=this['_injector'][_0x1af69a(0x269)](this[_0x1af69a(0x273)](_0x5de976),_0x13d849,_0x5de976,_0x194690);return await _0x1b11d9['init'](),this[_0x1af69a(0x3d8)][_0x1af69a(0x48d)](_0x1b11d9),_0x1b11d9;}['_getCtorByUniverType'](_0x5f10ce){const _0xc83fa4=_0x513b3b;switch(_0x5f10ce){case k[_0xc83fa4(0x1a4)]:return Tt;case k[_0xc83fa4(0x3b6)]:return Rt;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x5f10ce);}}};Le=Ur([_t(0x0,_0x53ed15(_0x3165b6)),_t(0x1,_0x53ed15(he)),_t(0x2,_0x4c005a)],Le);const ms=[_0x513b3b(0x3d3),'jiqing500',_0x513b3b(0x3c7),_0x513b3b(0x1d2),_0x513b3b(0x2bf),_0x513b3b(0x2da)];class Gt extends _0x5f406a{constructor(){const _0x842918=_0x513b3b;super(...arguments),l(this,_0x842918(0x30c),new Map()),l(this,'_colorIndex',0x0);}[_0x513b3b(0x2a7)](_0x2b3284){const _0x5c4a3c=_0x513b3b;if(this['_assignedColors'][_0x5c4a3c(0x243)](_0x2b3284))return this[_0x5c4a3c(0x30c)][_0x5c4a3c(0x49f)](_0x2b3284);const _0x472123=ms[this[_0x5c4a3c(0x4a3)]];return this[_0x5c4a3c(0x4a3)]=(this['_colorIndex']+0x1)%ms[_0x5c4a3c(0x313)],this['_assignedColors'][_0x5c4a3c(0x3ca)](_0x2b3284,_0x472123),_0x472123;}}var Nr=Object[_0x513b3b(0x1a5)],Mr=Object[_0x513b3b(0x1be)],Ar=(_0xdce78e,_0x20b059,_0x485f6d,_0x55353c)=>{const _0x277e2a=_0x513b3b;for(var _0x240da5=_0x55353c>0x1?void 0x0:_0x55353c?Mr(_0x20b059,_0x485f6d):_0x20b059,_0x5c5d31=_0xdce78e[_0x277e2a(0x313)]-0x1,_0x4868c7;_0x5c5d31>=0x0;_0x5c5d31--)(_0x4868c7=_0xdce78e[_0x5c5d31])&&(_0x240da5=(_0x55353c?_0x4868c7(_0x20b059,_0x485f6d,_0x240da5):_0x4868c7(_0x240da5))||_0x240da5);return _0x55353c&&_0x240da5&&Nr(_0x20b059,_0x485f6d,_0x240da5),_0x240da5;},ie=(_0x47bf4f,_0x4abfd1)=>(_0x1e891e,_0x526e27)=>_0x4abfd1(_0x1e891e,_0x526e27,_0x47bf4f);const Lr=0x12c,$r=0x64;let Ot=class extends _0x346899{constructor(_0x56c2b7,_0x1b7f6a,_0x5e48f7,_0x15c9ba,_0x40490d,_0x238468,_0x409591,_0x6c9e3b,_0x1385d2){const _0xae3b59=_0x513b3b;super(),l(this,'_online',!0x1),l(this,'_init',!0x1),l(this,_0xae3b59(0x2c9),new _0x1edb16(new Map())),l(this,_0xae3b59(0x1a3),this[_0xae3b59(0x2c9)]['asObservable']()),l(this,'_roomMembers$',new _0x1edb16([])),l(this,_0xae3b59(0x2b8),this[_0xae3b59(0x4b4)][_0xae3b59(0x33b)](_0x28cdbb(Lr))),l(this,_0xae3b59(0x2b7),_0x2cf035(_0x339990=>{const _0x2c2a0b=_0xae3b59,_0x38eec7={'eventID':_0x46c90b[_0x2c2a0b(0x4d3)],'data':{'unitID':this[_0x2c2a0b(0x44f)],'memberID':this[_0x2c2a0b(0x2fa)][_0x2c2a0b(0x45c)](),'selection':Ws(_0x339990)}};this[_0x2c2a0b(0x2fa)][_0x2c2a0b(0x415)](_0x38eec7,this[_0x2c2a0b(0x44f)]);},$r)),(this[_0xae3b59(0x44f)]=_0x56c2b7,this[_0xae3b59(0x2fa)]=_0x1b7f6a,this['_injector']=_0x5e48f7,this[_0xae3b59(0x445)]=_0x15c9ba,this['_memberService']=_0x40490d,this[_0xae3b59(0x1cb)]=_0x238468,this[_0xae3b59(0x283)]=_0x409591,this[_0xae3b59(0x4c4)]=_0x6c9e3b,this['_commandService']=_0x1385d2);}get[_0x513b3b(0x146)](){const _0x22507d=_0x513b3b;return this[_0x22507d(0x2c9)][_0x22507d(0x3e2)]();}get[_0x513b3b(0x214)](){const _0x1b8d34=_0x513b3b;return this[_0x1b8d34(0x4b4)][_0x1b8d34(0x3e2)]();}['dispose'](){const _0x51203c=_0x513b3b;super[_0x51203c(0x3ce)](),this[_0x51203c(0x2c9)][_0x51203c(0x48d)](new Map()),this['_cursorInfo$']['complete'](),this[_0x51203c(0x4b4)][_0x51203c(0x48d)]([]),this['_roomMembers$'][_0x51203c(0x2ff)]();}['init'](){const _0x7d852f=_0x513b3b;this[_0x7d852f(0x49c)]||(this[_0x7d852f(0x49c)]=!0x0,this[_0x7d852f(0x2fa)]['sessionStatus$']['pipe'](_0x3bacfd(this['dispose$']))[_0x7d852f(0x465)](_0x5c3b39=>{const _0x2d0b04=_0x7d852f;_0x5c3b39===Y[_0x2d0b04(0x1f7)]?this[_0x2d0b04(0x4c0)]():this[_0x2d0b04(0x3cb)]();}),this[_0x7d852f(0x2fa)][_0x7d852f(0x47b)][_0x7d852f(0x33b)](_0x3bacfd(this['dispose$']))['subscribe'](_0x57910b=>{const _0x3fc68e=_0x7d852f,_0x159204=_0x57910b[_0x3fc68e(0x2db)];_0x159204===_0x46c90b[_0x3fc68e(0x4d3)]&&this['_onCursorUpdate'](_0x57910b),_0x159204===_0x46c90b[_0x3fc68e(0x2b5)]&&this[_0x3fc68e(0x1fd)](_0x57910b);}),this['disposeWithMe'](this[_0x7d852f(0x2b6)][_0x7d852f(0x46f)](_0x571aab=>{const _0x1424bc=_0x7d852f,_0x4d5893=_0x571aab[_0x1424bc(0x498)];_0x4d5893!=null&&this['_online']&&_0x571aab['id']===_0x2e8d24['id']&&_0x4d5893[_0x1424bc(0x1af)]===this[_0x1424bc(0x44f)]&&_0x4d5893[_0x1424bc(0x2cb)]===!0x1&&this[_0x1424bc(0x2b7)](_0x4d5893[_0x1424bc(0x1b3)]);})),this[_0x7d852f(0x1cb)]['collabCursorState$'][_0x7d852f(0x33b)](_0x3bacfd(this['dispose$']))[_0x7d852f(0x465)](_0x2d2c1b=>{const _0x40855e=_0x7d852f;if((_0x2d2c1b==null?void 0x0:_0x2d2c1b[_0x40855e(0x44f)])!==this[_0x40855e(0x44f)])return;const _0x5ee1d8={'eventID':_0x46c90b[_0x40855e(0x4d3)],'data':_0x2d2c1b};this['_onCursorUpdate'](_0x5ee1d8);}),this[_0x7d852f(0x233)](this['_commandService'][_0x7d852f(0x46f)](_0xbaf52f=>{const _0x168b27=_0x7d852f;if(_0xbaf52f[_0x168b27(0x498)]==null)return;const _0x1aca94=_0xbaf52f[_0x168b27(0x498)];if(_0xbaf52f['id']!==_0x599177['id']||_0x1aca94[_0x168b27(0x1af)]!==this[_0x168b27(0x44f)])return;const _0x40774c={'id':_0x168b27(0x1dc),'params':_0x1aca94},_0xafd559=this[_0x168b27(0x146)];for(const [_0x4007e1,_0x5ee0d1]of _0xafd559){const _0x20fbcc={'id':_0x168b27(0x1dc),'params':{'unitId':this[_0x168b27(0x44f)],'actions':null,'textRanges':_0x5ee0d1[_0x168b27(0x1b3)]}},_0x32c90e=this['_transformService'][_0x168b27(0x40a)](_0x40774c,_0x20fbcc,!0x1);if(_0x24fa2f(_0x32c90e))throw _0x32c90e[_0x168b27(0x25c)];_0xafd559['set'](_0x4007e1,{..._0x5ee0d1,'ranges':_0x32c90e[_0x168b27(0x2b9)][_0x168b27(0x498)][_0x168b27(0x3b1)]});}queueMicrotask(()=>{const _0x28044e=_0x168b27;this[_0x28044e(0x2c9)][_0x28044e(0x48d)](_0xafd559);});})));}[_0x513b3b(0x3b4)](_0x45ccde){const _0x5b3ff5=_0x513b3b;var _0x3070bb,_0xb27453;const {memberID:_0x1ea7dd,selection:_0x3197b0}=_0x45ccde[_0x5b3ff5(0x14f)],_0x3dbfd2=pr(_0x3197b0),_0x4a4341=(_0xb27453=(_0x3070bb=this[_0x5b3ff5(0x21c)][_0x5b3ff5(0x3e0)](this[_0x5b3ff5(0x44f)],_0x1ea7dd))==null?void 0x0:_0x3070bb[_0x5b3ff5(0x41d)])!=null?_0xb27453:'Unknown\x20user',_0x5a2f21={'color':this[_0x5b3ff5(0x445)]['assignAColorForMemberID'](_0x1ea7dd),'name':_0x4a4341,'ranges':_0x3dbfd2},_0xfddbbc=this[_0x5b3ff5(0x146)];_0xfddbbc[_0x5b3ff5(0x3ca)](_0x1ea7dd,_0x5a2f21),this['_cursorInfo$'][_0x5b3ff5(0x48d)](_0xfddbbc);}[_0x513b3b(0x1fd)](_0xa13beb){const _0x348e3b=_0x513b3b,{memberID:_0x2e7100}=_0xa13beb['data'],_0x12f2c9=this[_0x348e3b(0x146)];_0x12f2c9['delete'](_0x2e7100),this[_0x348e3b(0x2c9)][_0x348e3b(0x48d)](_0x12f2c9);}[_0x513b3b(0x4c0)](){const _0x11fbec=_0x513b3b;var _0x2a5585;if(this[_0x11fbec(0x40f)]=!0x0,((_0x2a5585=this['_univerInstanceService'][_0x11fbec(0x450)]())==null?void 0x0:_0x2a5585[_0x11fbec(0x389)]())!==this['unitID'])return;const _0x55450c=this[_0x11fbec(0x31e)][_0x11fbec(0x49f)](_0x2d5996)['getDocRanges']();Array[_0x11fbec(0x33f)](_0x55450c)&&_0x55450c[_0x11fbec(0x313)]>0x0&&this[_0x11fbec(0x2b7)](_0x55450c);}[_0x513b3b(0x3cb)](){const _0x488bda=_0x513b3b;this[_0x488bda(0x40f)]=!0x1;}};Ot=Ar([ie(0x2,_0x53ed15(_0x3165b6)),ie(0x3,_0x53ed15(Gt)),ie(0x4,_0x53ed15(ce)),ie(0x5,_0x53ed15(Ft)),ie(0x6,_0x2e5ae8),ie(0x7,_0x4c005a),ie(0x8,_0x8348c)],Ot);var jr=Object['defineProperty'],Hr=Object[_0x513b3b(0x1be)],xr=(_0x1271d3,_0x2112dc,_0x59a67e,_0x939f17)=>{const _0xdd0f86=_0x513b3b;for(var _0x368e10=_0x939f17>0x1?void 0x0:_0x939f17?Hr(_0x2112dc,_0x59a67e):_0x2112dc,_0x464a5c=_0x1271d3[_0xdd0f86(0x313)]-0x1,_0x1012f9;_0x464a5c>=0x0;_0x464a5c--)(_0x1012f9=_0x1271d3[_0x464a5c])&&(_0x368e10=(_0x939f17?_0x1012f9(_0x2112dc,_0x59a67e,_0x368e10):_0x1012f9(_0x368e10))||_0x368e10);return _0x939f17&&_0x368e10&&jr(_0x2112dc,_0x59a67e,_0x368e10),_0x368e10;},fe=(_0x53237f,_0x52be7f)=>(_0x162378,_0x3a546d)=>_0x52be7f(_0x162378,_0x3a546d,_0x53237f);const kr=0x12c,Br=0x64,Vr=()=>{let _0x4a9256=[],_0xccc1b6=!0x1;return _0x2437e8=>{const _0x5f1823=_0x1736;_0x4a9256[_0x5f1823(0x152)](_0x2437e8),_0xccc1b6||(_0xccc1b6=!0x0,setTimeout(()=>{const _0x542fb0=_0x5f1823;_0x4a9256[_0x542fb0(0x301)](_0x2455e4=>_0x2455e4()),_0x4a9256=[],_0xccc1b6=!0x1;}));};};let Dt=class extends _0x346899{constructor(_0x1b5117,_0x1f89fb,_0x38c0bb,_0x13c4f3,_0x4edb85,_0x32ea84,_0x1ba18f,_0x23a300){const _0x4be0a6=_0x513b3b;super(),l(this,_0x4be0a6(0x40f),!0x1),l(this,_0x4be0a6(0x49c),!0x1),l(this,_0x4be0a6(0x2c9),new _0x1edb16(new Map())),l(this,_0x4be0a6(0x1a3),this[_0x4be0a6(0x2c9)][_0x4be0a6(0x2a4)]()),l(this,_0x4be0a6(0x4b4),new _0x1edb16([])),l(this,'roomMembers$',this['_roomMembers$']['pipe'](_0x28cdbb(kr))),l(this,_0x4be0a6(0x2b7),_0x2cf035((_0x28f34f,_0x541386)=>{const _0x1f958d=_0x4be0a6,_0x1f1095={'eventID':_0x46c90b[_0x1f958d(0x4d3)],'data':{'unitID':this[_0x1f958d(0x44f)],'memberID':this[_0x1f958d(0x2fa)][_0x1f958d(0x45c)](),'selection':_0x4f040d(_0x28f34f,_0x541386[_0x1f958d(0x304)])}};this[_0x1f958d(0x2fa)][_0x1f958d(0x415)](_0x1f1095,this[_0x1f958d(0x44f)]);},Br)),(this[_0x4be0a6(0x44f)]=_0x1b5117,this[_0x4be0a6(0x2fa)]=_0x1f89fb,this['_injector']=_0x38c0bb,this[_0x4be0a6(0x445)]=_0x13c4f3,this['_memberService']=_0x4edb85,this[_0x4be0a6(0x4c4)]=_0x32ea84,this[_0x4be0a6(0x2b6)]=_0x1ba18f,this[_0x4be0a6(0x239)]=_0x23a300);}get[_0x513b3b(0x146)](){const _0x453720=_0x513b3b;return this[_0x453720(0x2c9)]['getValue']();}get[_0x513b3b(0x214)](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x2c901a=_0x513b3b;super['dispose'](),this['_cursorInfo$'][_0x2c901a(0x48d)](new Map()),this['_cursorInfo$']['complete'](),this[_0x2c901a(0x4b4)][_0x2c901a(0x48d)]([]),this[_0x2c901a(0x4b4)][_0x2c901a(0x2ff)]();}[_0x513b3b(0x145)](){const _0x139276=_0x513b3b;this[_0x139276(0x49c)]||(this['_init']=!0x0,this['_session'][_0x139276(0x3a6)][_0x139276(0x33b)](_0x3bacfd(this[_0x139276(0x2d2)]))[_0x139276(0x465)](_0x35141e=>{const _0x23720a=_0x139276;_0x35141e===Y[_0x23720a(0x1f7)]?this[_0x23720a(0x4c0)]():this[_0x23720a(0x3cb)]();}),this[_0x139276(0x2fa)][_0x139276(0x47b)][_0x139276(0x33b)](_0x3bacfd(this[_0x139276(0x2d2)]))[_0x139276(0x465)](_0x4d438a=>{const _0x2cf91f=_0x139276,_0x192e5d=_0x4d438a[_0x2cf91f(0x2db)];_0x192e5d===_0x46c90b[_0x2cf91f(0x4d3)]&&this[_0x2cf91f(0x3b4)](_0x4d438a),_0x192e5d===_0x46c90b[_0x2cf91f(0x2b5)]&&this[_0x2cf91f(0x1fd)](_0x4d438a);}),this[_0x139276(0x4b7)](),this['disposeWithMe'](this[_0x139276(0x2b6)]['onCommandExecuted'](_0x838e8e=>{const _0x5ae363=_0x139276;if(this[_0x5ae363(0x40f)]&&_0x838e8e['id']===_0x246d31['id']&&_0x838e8e['params'][_0x5ae363(0x1af)]===this[_0x5ae363(0x44f)]){const _0x4286e7=_0x838e8e[_0x5ae363(0x498)];this['_updateLocalCursor'](_0x4286e7[_0x5ae363(0x3df)],_0x4286e7[_0x5ae363(0x2ca)][0x0]);}})));}[_0x513b3b(0x3b4)](_0x505f35){const _0x47535b=_0x513b3b;var _0xc09d7,_0x5acbc0;const {memberID:_0x12ac32,selection:_0x216b0a}=_0x505f35['data'],{sheetName:_0x177439,range:_0x122bfe}=_0x4af056(_0x216b0a),_0x4b5e4a={'name':(_0x5acbc0=(_0xc09d7=this[_0x47535b(0x21c)][_0x47535b(0x3e0)](this['unitID'],_0x12ac32))==null?void 0x0:_0xc09d7[_0x47535b(0x41d)])!=null?_0x5acbc0:_0x47535b(0x1aa),'range':this[_0x47535b(0x45b)](_0x177439,_0x122bfe),'sheetID':_0x177439,'color':this[_0x47535b(0x445)][_0x47535b(0x2a7)](_0x12ac32),'selection':_0x216b0a},_0x115839=this[_0x47535b(0x146)];_0x115839[_0x47535b(0x3ca)](_0x12ac32,_0x4b5e4a),this[_0x47535b(0x2c9)][_0x47535b(0x48d)](_0x115839);}['_onCursorDelete'](_0x59a729){const _0x578a40=_0x513b3b,{memberID:_0x9f6284}=_0x59a729['data'],_0x31b360=this[_0x578a40(0x146)];_0x31b360[_0x578a40(0x248)](_0x9f6284),this['_cursorInfo$'][_0x578a40(0x48d)](_0x31b360);}[_0x513b3b(0x45b)](_0xbc96e9,_0x37712d){const _0x3986cd=_0x513b3b;var _0x26dd5a,_0xecd7a0;const _0x2cef5f=(_0xecd7a0=(_0x26dd5a=this[_0x3986cd(0x4c4)][_0x3986cd(0x49a)](this[_0x3986cd(0x44f)]))==null?void 0x0:_0x26dd5a[_0x3986cd(0x2d3)](_0xbc96e9))==null?void 0x0:_0xecd7a0[_0x3986cd(0x242)]();return(_0x2cef5f==null?void 0x0:_0x2cef5f['find'](_0x575347=>_0x3deb79['contains'](_0x575347,_0x37712d)))||_0x37712d;}[_0x513b3b(0x4b7)](){const _0xc44d60=_0x513b3b,_0x3b3f73=new _0x37f93f(),_0x4222f9=Vr(),_0xf5e567=()=>{const _0x24c7eb=_0x1736;_0x3b3f73[_0x24c7eb(0x3ce)]();const _0x5c2b77=(_0x17fd95,_0x1b9efa,_0x452895,_0x3f3e1e)=>{const _0x4fd780=_0x24c7eb;let _0x3375a3=[];switch(_0x17fd95['id']){case _0x21405f[_0x4fd780(0x3e3)]:{_0x3375a3=_0x12b3ee(_0x17fd95,_0x3f3e1e);break;}case _0x21405f[_0x4fd780(0x38e)]:{_0x3375a3=_0x3747a5(_0x17fd95,_0x3f3e1e);break;}case _0x21405f[_0x4fd780(0x381)]:{_0x3375a3=_0x53a592(_0x17fd95,_0x3f3e1e);break;}case _0x21405f[_0x4fd780(0x37a)]:{_0x3375a3=_0x3b4b4d(_0x17fd95,_0x3f3e1e);break;}case _0x21405f[_0x4fd780(0x448)]:{_0x3375a3=_0x44ef57(_0x17fd95,_0x3f3e1e);break;}case _0x21405f['InsertRowCommandId']:{_0x3375a3=_0x42fbc0(_0x17fd95,_0x3f3e1e);break;}case _0x21405f[_0x4fd780(0x380)]:{_0x3375a3=_0x50ae63(_0x17fd95,_0x3f3e1e);break;}case _0x21405f['RemoveColCommandId']:{_0x3375a3=_0x3ff3f3(_0x17fd95,_0x3f3e1e);break;}case _0x21405f[_0x4fd780(0x464)]:{_0x3375a3=_0x2275d3(_0x17fd95,_0x3f3e1e);break;}}const _0x45a84b=_0x2d1b7f(_0x3375a3,_0x3f3e1e),_0x11b6e2=this[_0x4fd780(0x146)]['get'](_0x1b9efa);if(_0x11b6e2&&_0x45a84b){const _0x20fbaf={..._0x11b6e2,'range':_0x45a84b};this[_0x4fd780(0x146)][_0x4fd780(0x3ca)](_0x1b9efa,_0x20fbaf),_0x4222f9(()=>{const _0x97ada5=_0x4fd780,_0x53e90f=this[_0x97ada5(0x239)][_0x97ada5(0x215)](_0x45a84b,_0x346416=>(_0x53e90f['dispose'](),_0x5c2b77(_0x346416,_0x1b9efa,_0x452895,_0x45a84b)));_0x3b3f73[_0x97ada5(0x2ab)](_0x53e90f);});}return{'redos':[],'undos':[]};};this[_0x24c7eb(0x146)][_0x24c7eb(0x301)]((_0x950bae,_0x17a7b9)=>{const _0x26be6b=_0x24c7eb,{range:_0x411256,sheetID:_0x19b1fa}=_0x950bae,_0x454d12=this['_refRangeService']['registerRefRange'](_0x411256,_0x1c0ba5=>(_0x454d12[_0x26be6b(0x3ce)](),_0x5c2b77(_0x1c0ba5,_0x17a7b9,_0x19b1fa,_0x411256)));_0x3b3f73[_0x26be6b(0x2ab)](_0x454d12);});};this[_0xc44d60(0x233)](_0x29caef(this['_cursorInfo$']['subscribe'](()=>{_0xf5e567();})));}['_toggleOnline'](){const _0x7c743e=_0x513b3b;var _0x5f568c,_0x30ce20;if(this[_0x7c743e(0x40f)]=!0x0,((_0x5f568c=this[_0x7c743e(0x4c4)][_0x7c743e(0x450)]())==null?void 0x0:_0x5f568c['getUnitId']())!==this[_0x7c743e(0x44f)])return;const _0x41ba56=(_0x30ce20=this[_0x7c743e(0x31e)][_0x7c743e(0x49f)](_0x4c5ec4)[_0x7c743e(0x483)]())==null?void 0x0:_0x30ce20[0x0],_0x465a44=this[_0x7c743e(0x4c4)]['getCurrentUnitForType'](_0x743738[_0x7c743e(0x3b6)])[_0x7c743e(0x349)]();_0x41ba56&&_0x465a44&&this[_0x7c743e(0x2b7)](_0x465a44['getSheetId'](),_0x41ba56);}[_0x513b3b(0x3cb)](){const _0x1006f7=_0x513b3b;this[_0x1006f7(0x40f)]=!0x1;}};Dt=xr([fe(0x2,_0x53ed15(_0x3165b6)),fe(0x3,_0x53ed15(Gt)),fe(0x4,_0x53ed15(ce)),fe(0x5,_0x4c005a),fe(0x6,_0x8348c),fe(0x7,_0x53ed15(_0x4a88f5))],Dt);var Fr=Object[_0x513b3b(0x1a5)],Wr=Object[_0x513b3b(0x1be)],Gr=(_0x1b433e,_0x383288,_0x20f838,_0x5cd216)=>{const _0x569bd3=_0x513b3b;for(var _0x26c2ca=_0x5cd216>0x1?void 0x0:_0x5cd216?Wr(_0x383288,_0x20f838):_0x383288,_0x500f4a=_0x1b433e[_0x569bd3(0x313)]-0x1,_0x5d37f0;_0x500f4a>=0x0;_0x500f4a--)(_0x5d37f0=_0x1b433e[_0x500f4a])&&(_0x26c2ca=(_0x5cd216?_0x5d37f0(_0x383288,_0x20f838,_0x26c2ca):_0x5d37f0(_0x26c2ca))||_0x26c2ca);return _0x5cd216&&_0x26c2ca&&Fr(_0x383288,_0x20f838,_0x26c2ca),_0x26c2ca;},ut=(_0x3e4d26,_0x454f43)=>(_0x207f6a,_0x2f83ca)=>_0x454f43(_0x207f6a,_0x2f83ca,_0x3e4d26);let ve=class extends _0x346899{constructor(_0x199a1b,_0x1bbbc2,_0x258062){const _0x3382a9=_0x513b3b;super(),l(this,_0x3382a9(0x217),new Map()),l(this,_0x3382a9(0x3d8),new _0x210aee()),(this[_0x3382a9(0x4c4)]=_0x199a1b,this['_injector']=_0x1bbbc2,this[_0x3382a9(0x1c4)]=_0x258062,this[_0x3382a9(0x49c)]());}['dispose'](){const _0x107cde=_0x513b3b;super[_0x107cde(0x3ce)](),this['_entityInit$'][_0x107cde(0x2ff)](),this[_0x107cde(0x217)][_0x107cde(0x301)](_0x61fe53=>_0x61fe53[_0x107cde(0x3ce)]());}[_0x513b3b(0x155)](_0x228d84){const _0x24390f=_0x513b3b;return this[_0x24390f(0x217)][_0x24390f(0x243)](_0x228d84)?this[_0x24390f(0x217)]['get'](_0x228d84)['cursorInfo$']:this[_0x24390f(0x3d8)]['pipe'](_0x2ffc6e(_0xa0fb4c=>_0xa0fb4c['unitID']===_0x228d84),_0x1317fa(_0x343113=>_0x343113[_0x24390f(0x1a3)]));}[_0x513b3b(0x49c)](){const _0x1bb2ae=_0x513b3b;this[_0x1bb2ae(0x4c4)][_0x1bb2ae(0x290)](_0x743738['UNIVER_SHEET'])[_0x1bb2ae(0x33b)](_0x3bacfd(this[_0x1bb2ae(0x2d2)]))['subscribe'](async _0x1e32b7=>{const _0x414357=_0x1bb2ae,_0x56bf7=_0x1e32b7[_0x414357(0x389)](),_0x5139ab=await this[_0x414357(0x31b)](_0x56bf7);this[_0x414357(0x3d8)]['next'](_0x5139ab),this[_0x414357(0x217)][_0x414357(0x3ca)](_0x56bf7,_0x5139ab);}),this[_0x1bb2ae(0x4c4)]['getTypeOfUnitAdded$'](_0x743738[_0x1bb2ae(0x1a4)])[_0x1bb2ae(0x33b)](_0x3bacfd(this[_0x1bb2ae(0x2d2)]))[_0x1bb2ae(0x33b)](_0x2ffc6e(_0x26fa04=>!_0x26fa04[_0x1bb2ae(0x389)]()[_0x1bb2ae(0x178)]('__')))[_0x1bb2ae(0x465)](async _0x2aadee=>{const _0x146a64=_0x1bb2ae,_0x4db022=_0x2aadee[_0x146a64(0x389)](),_0x11969b=await this[_0x146a64(0x1b7)](_0x4db022);this[_0x146a64(0x3d8)][_0x146a64(0x48d)](_0x11969b),this[_0x146a64(0x217)][_0x146a64(0x3ca)](_0x4db022,_0x11969b);}),_0x2f0d88(this[_0x1bb2ae(0x4c4)][_0x1bb2ae(0x4d9)](_0x743738[_0x1bb2ae(0x1a4)]),this[_0x1bb2ae(0x4c4)][_0x1bb2ae(0x4d9)](_0x743738[_0x1bb2ae(0x3b6)]))[_0x1bb2ae(0x33b)](_0x3bacfd(this['dispose$']))[_0x1bb2ae(0x465)](_0x5881b6=>{const _0x22fdc3=_0x1bb2ae,_0x23ec26=_0x5881b6[_0x22fdc3(0x389)](),_0x1cd199=this['_entities']['get'](_0x23ec26);_0x1cd199&&(_0x1cd199[_0x22fdc3(0x3ce)](),this[_0x22fdc3(0x217)][_0x22fdc3(0x248)](_0x23ec26));});}async[_0x513b3b(0x31b)](_0x585136){const _0x23b90c=_0x513b3b,_0x736627=await this[_0x23b90c(0x1c4)][_0x23b90c(0x23e)](_0x585136),_0x274962=this[_0x23b90c(0x31e)][_0x23b90c(0x269)](Dt,_0x585136,_0x736627);return _0x274962[_0x23b90c(0x145)](),_0x274962;}async[_0x513b3b(0x1b7)](_0xf965da){const _0x29a5d0=_0x513b3b,_0x5f09b6=await this[_0x29a5d0(0x1c4)][_0x29a5d0(0x23e)](_0xf965da),_0x43d737=this['_injector'][_0x29a5d0(0x269)](Ot,_0xf965da,_0x5f09b6);return _0x43d737[_0x29a5d0(0x145)](),_0x43d737;}};ve=Gr([ut(0x0,_0x4c005a),ut(0x1,_0x53ed15(_0x3165b6)),ut(0x2,_0x53ed15(he))],ve);const $e=0x14,fs=0xc8,dt=0x4,Yr=0x5;function Kr(_0x5b07a7,_0x41a859){const _0x1ea25f=_0x513b3b;let {radius:_0x2ae9ba,width:_0x2e24db,height:_0x1573d0}=_0x41a859;_0x2ae9ba=_0x2ae9ba!=null?_0x2ae9ba:0x0,_0x2e24db=_0x2e24db!=null?_0x2e24db:0x1e,_0x1573d0=_0x1573d0!=null?_0x1573d0:0x1e;let _0x54c561=0x0,_0x236e83=0x0,_0x5eba1e=0x0;_0x54c561=_0x236e83=_0x5eba1e=Math[_0x1ea25f(0x2d4)](_0x2ae9ba,_0x2e24db/0x2,_0x1573d0/0x2),_0x5b07a7['beginPath'](),_0x5b07a7[_0x1ea25f(0x2c8)](_0x54c561,0x0),_0x5b07a7[_0x1ea25f(0x4b1)](_0x2e24db-_0x236e83,0x0),_0x5b07a7['arc'](_0x2e24db-_0x236e83,_0x236e83,_0x236e83,Math['PI']*0x3/0x2,0x0,!0x1),_0x5b07a7[_0x1ea25f(0x4b1)](_0x2e24db,_0x1573d0-_0x5eba1e),_0x5b07a7[_0x1ea25f(0x492)](_0x2e24db-_0x5eba1e,_0x1573d0-_0x5eba1e,_0x5eba1e,0x0,Math['PI']/0x2,!0x1),_0x5b07a7[_0x1ea25f(0x4b1)](0x0,_0x1573d0),_0x5b07a7['lineTo'](0x0,_0x54c561),_0x5b07a7[_0x1ea25f(0x492)](_0x54c561,_0x54c561,_0x54c561,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5b07a7['closePath'](),_0x41a859['fill']&&(_0x5b07a7['save'](),_0x5b07a7['fillStyle']=_0x41a859[_0x1ea25f(0x28e)],_0x41a859[_0x1ea25f(0x30e)]==='evenodd'?_0x5b07a7[_0x1ea25f(0x28e)]('evenodd'):_0x5b07a7[_0x1ea25f(0x28e)](),_0x5b07a7[_0x1ea25f(0x175)]());}class st extends _0x284381{constructor(_0x588c52,_0x3386be){const _0x147bff=_0x513b3b;super(_0x588c52,_0x3386be),l(this,_0x147bff(0x2e6)),l(this,_0x147bff(0x272)),(this[_0x147bff(0x2e6)]=_0x3386be==null?void 0x0:_0x3386be['color'],this[_0x147bff(0x272)]=_0x3386be==null?void 0x0:_0x3386be[_0x147bff(0x272)]);}static[_0x513b3b(0x4a4)](_0x25f760,_0x1ad287){const _0x20e5bf=_0x513b3b,{text:_0x68acfe,color:_0x1224c1}=_0x1ad287;_0x25f760[_0x20e5bf(0x43e)](),_0x25f760[_0x20e5bf(0x31c)]=_0x20e5bf(0x288);const _0xc0600e=_0x25f760[_0x20e5bf(0x35c)](_0x68acfe)[_0x20e5bf(0x4a6)],_0xc3cb43=Math['min'](_0xc0600e+0x2*dt,fs);Kr(_0x25f760,{'height':$e,'radius':0x4,'width':_0xc3cb43,'fill':_0x1224c1,'evented':!0x1}),_0x25f760[_0x20e5bf(0x413)]=_0x20e5bf(0x286);const _0x6eba1e=dt,_0x32045d=$e-Yr,_0x59e5a2=fs-0x2*dt;if(_0xc0600e>_0x59e5a2){let _0x1fbb92='',_0x3862ad=0x0;for(const _0x393895 of _0x68acfe){const _0x32b001=_0x25f760[_0x20e5bf(0x35c)](_0x393895)[_0x20e5bf(0x4a6)];if(_0x3862ad+_0x32b001<=_0x59e5a2-_0x25f760[_0x20e5bf(0x35c)](_0x20e5bf(0x323))['width'])_0x1fbb92+=_0x393895,_0x3862ad+=_0x32b001;else{_0x1fbb92+=_0x20e5bf(0x323);break;}}_0x25f760[_0x20e5bf(0x4c5)](_0x1fbb92,_0x6eba1e,_0x32045d);}else _0x25f760[_0x20e5bf(0x4c5)](_0x68acfe,_0x6eba1e,_0x32045d);_0x25f760['restore']();}['_draw'](_0x4612b2){const _0x521cdb=_0x513b3b;st[_0x521cdb(0x4a4)](_0x4612b2,this);}}const mt='collab-text-anchor-',Xr=_0x513b3b(0x23a),qr=_0x513b3b(0x347),we=0x6,Jr=1.5,ft=0x4,zr=1.5,Zr=_0x513b3b(0x453);class gs{constructor(_0x11981c,_0x12bd14,_0x44be32,_0x56e360){const _0x5d3dae=_0x513b3b;l(this,_0x5d3dae(0x284),[]),l(this,'_anchor',null),l(this,_0x5d3dae(0x39e),null),l(this,_0x5d3dae(0x24a),null),l(this,_0x5d3dae(0x3e1),null),l(this,'_eventUnsubscribe',null),(this['_cursor']=_0x11981c,this[_0x5d3dae(0x1ca)]=_0x12bd14,this['_docSkeleton']=_0x44be32,this[_0x5d3dae(0x3d7)]=_0x56e360,this[_0x5d3dae(0x4af)]());}set[_0x513b3b(0x28d)](_0x539abd){const _0x64668e=_0x513b3b;_0x539abd?(this[_0x64668e(0x24a)]&&this[_0x64668e(0x24a)][_0x64668e(0x4bc)](),this['_textBubble']&&this[_0x64668e(0x39e)][_0x64668e(0x32b)]()):(this[_0x64668e(0x24a)]&&this['_anchorDot']['show'](),this['_textBubble']&&this[_0x64668e(0x39e)][_0x64668e(0x4bc)]());}[_0x513b3b(0x3ce)](){const _0xa60e13=_0x513b3b;for(const _0x17f159 of this['_shapes'])_0x17f159[_0xa60e13(0x3ce)]();this[_0xa60e13(0x39e)]&&this[_0xa60e13(0x39e)]['dispose'](),this[_0xa60e13(0x24a)]&&this[_0xa60e13(0x24a)][_0xa60e13(0x3ce)](),this[_0xa60e13(0x2bd)]&&this['_anchor'][_0xa60e13(0x3ce)](),this[_0xa60e13(0x282)]&&this['_eventUnsubscribe']();}[_0x513b3b(0x4af)](){const _0x3c742a=_0x513b3b;var _0x53314f;const {_docSkeleton:_0x1d6d81,_document:_0xb231cd}=this,{color:_0xc058e6,name:_0x10313d,ranges:_0x1a93cf}=this[_0x3c742a(0x41e)],_0x110ba7=_0xb231cd[_0x3c742a(0x18d)](),{docsLeft:_0x4528f8,docsTop:_0x58e1da}=_0x110ba7,_0x56dd83=new _0xe31355(_0x110ba7,_0x1d6d81);for(const {startOffset:_0x56f2ce,endOffset:_0x1d6d6c,collapsed:_0x2a1bca,isActive:_0x45763c}of _0x1a93cf){const _0x41a423=_0x1d6d81['findNodePositionByCharIndex'](_0x56f2ce),_0xf3cd07=_0x1d6d81[_0x3c742a(0x1cd)](_0x1d6d6c);if(_0x45763c){const {contentBoxPointGroup:_0x7761bf}=_0x56dd83[_0x3c742a(0x203)](_0xf3cd07,_0xf3cd07);if(_0x7761bf['length']===0x0)continue;this[_0x3c742a(0x206)](_0xc058e6,_0x7761bf,_0x4528f8,_0x58e1da,_0x10313d),this['_eventUnsubscribe']=this[_0x3c742a(0x47c)]();}if(!_0x2a1bca&&_0x41a423&&_0xf3cd07){if(_0x4350fa(_0x41a423,_0xf3cd07)){const _0x35c041=new _0x4151a8(_0x110ba7,_0x1d6d81),{pointGroup:_0x4c227e}=(_0x53314f=_0x35c041[_0x3c742a(0x203)](_0x41a423,_0xf3cd07))!=null?_0x53314f:{};if(_0x4c227e==null||_0x4c227e[_0x3c742a(0x313)]===0x0)continue;this['_drawRectRange'](_0xc058e6,_0x4c227e,_0x4528f8,_0x58e1da);}else{const {contentBoxPointGroup:_0x247409}=_0x56dd83[_0x3c742a(0x203)](_0x41a423,_0xf3cd07);if(_0x247409[_0x3c742a(0x313)]===0x0)continue;this[_0x3c742a(0x4bb)](_0xc058e6,_0x247409,_0x4528f8,_0x58e1da);}}}}[_0x513b3b(0x206)](_0x46e406,_0x4a64e3,_0x5b9a2a,_0xf0c960,_0x4e9431){const _0x2fd728=_0x513b3b,_0x5e480b=this[_0x2fd728(0x35b)](_0x4a64e3),{left:_0x5e7400,top:_0x4ef5df,height:_0x566d87}=_0x5e480b,_0x2408d0=this['_getScale'](),_0x568f7d=zr/_0x2408d0,_0x16dd6b=new _0x57bf2c(mt+_0x31cbda['generateRandomId'](we),{'left':_0x5e7400+_0x5b9a2a-_0x568f7d,'top':_0x4ef5df+_0xf0c960,'height':_0x566d87,'width':Jr,'fill':_0x46e406||_0x2e720d(_0x3de4d2['black'],0x0),'strokeWidth':_0x568f7d,'stroke':Zr,'evented':!0x0});this[_0x2fd728(0x2bd)]=_0x16dd6b,this[_0x2fd728(0x1ca)]['addObject'](_0x16dd6b,_0x441006);const _0x5b8908=new _0x57bf2c(mt+_0x31cbda[_0x2fd728(0x22e)](we),{'left':_0x5e7400+_0x5b9a2a-_0x568f7d,'top':_0x4ef5df+_0xf0c960-ft/0x2,'height':ft,'width':ft,'fill':_0x46e406||_0x2e720d(_0x3de4d2[_0x2fd728(0x1c1)],0x0),'strokeWidth':0x0,'stroke':_0x46e406||_0x2e720d(_0x3de4d2['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x5b8908,this[_0x2fd728(0x1ca)]['addObject'](_0x5b8908,_0x441006);const _0x22be38=new st(mt+_0x31cbda[_0x2fd728(0x22e)](we),{'left':_0x5e7400+_0x5b9a2a-_0x568f7d,'top':_0x4ef5df+_0xf0c960-$e,'text':_0x4e9431,'color':_0x46e406});this[_0x2fd728(0x39e)]=_0x22be38,this['_scene'][_0x2fd728(0x467)](_0x22be38,_0x441006),this['_hover']=!0x1;}[_0x513b3b(0x47c)](){const _0x33138f=_0x513b3b,_0x5092ad=this[_0x33138f(0x2bd)][_0x33138f(0x246)]['subscribeEvent'](()=>{const _0x35e52e=_0x33138f;this[_0x35e52e(0x28d)]=!0x0;}),_0x3ebf96=this['_anchor'][_0x33138f(0x285)]['subscribeEvent'](()=>{const _0x5bce31=_0x33138f;this[_0x5bce31(0x3e1)]&&clearTimeout(this[_0x5bce31(0x3e1)]),this[_0x5bce31(0x3e1)]=setTimeout(()=>{const _0x15964a=_0x5bce31;this[_0x15964a(0x28d)]=!0x1;},0x7d0);});return()=>{const _0x3d1db1=_0x33138f;_0x5092ad[_0x3d1db1(0x48a)](),_0x3ebf96[_0x3d1db1(0x48a)]();};}[_0x513b3b(0x4bb)](_0x5f2929,_0x18f4b8,_0x374aa5,_0x146eec){const _0x11ce3d=_0x513b3b,_0x14566a=new _0x181f1a(_0x5f2929)[_0x11ce3d(0x4d5)](0.2)['toRgbString'](),_0x39da6d=new _0x36c04f(Xr+_0x31cbda[_0x11ce3d(0x22e)](we),{'pointsGroup':_0x18f4b8,'fill':_0x14566a||_0x2e720d(_0x3de4d2[_0x11ce3d(0x1c1)],0.2),'left':_0x374aa5,'top':_0x146eec,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x11ce3d(0x284)][_0x11ce3d(0x152)](_0x39da6d),this[_0x11ce3d(0x1ca)][_0x11ce3d(0x467)](_0x39da6d,_0x441006);}['_drawRectRange'](_0x105891,_0x172b15,_0x2e9c70,_0x563618){const _0x321284=_0x513b3b,_0x84371b=new _0x181f1a(_0x105891)[_0x321284(0x4d5)](0.2)[_0x321284(0x328)](),_0x406bbb=new _0x36c04f(qr+_0x31cbda[_0x321284(0x22e)](we),{'pointsGroup':_0x172b15,'fill':_0x84371b||_0x2e720d(_0x3de4d2[_0x321284(0x1c1)],0.2),'left':_0x2e9c70,'top':_0x563618,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x321284(0x284)][_0x321284(0x152)](_0x406bbb),this[_0x321284(0x1ca)][_0x321284(0x467)](_0x406bbb,_0x441006);}[_0x513b3b(0x35b)](_0x1ce9ee){const _0x55d979=_0x1ce9ee[0x0],_0x28a167=_0x55d979[0x0],_0x9a2d95=_0x55d979[0x2],{x:_0x54175f,y:_0x5b3c44}=_0x28a167,{x:_0x41f862,y:_0x1c7a57}=_0x9a2d95;return{'left':_0x54175f,'top':_0x5b3c44,'width':_0x41f862-_0x54175f,'height':_0x1c7a57-_0x5b3c44};}[_0x513b3b(0x247)](){const _0x383df3=_0x513b3b,{scaleX:_0x5b8024,scaleY:_0x446257}=this['_scene'][_0x383df3(0x2a0)]();return Math[_0x383df3(0x1b0)](_0x5b8024,_0x446257);}}var Qr=Object[_0x513b3b(0x1a5)],eo=Object[_0x513b3b(0x1be)],to=(_0x222290,_0x1c276a,_0x5d3b38,_0xf4893d)=>{const _0x47860e=_0x513b3b;for(var _0x5f530f=_0xf4893d>0x1?void 0x0:_0xf4893d?eo(_0x1c276a,_0x5d3b38):_0x1c276a,_0x4efdeb=_0x222290[_0x47860e(0x313)]-0x1,_0x591cc4;_0x4efdeb>=0x0;_0x4efdeb--)(_0x591cc4=_0x222290[_0x4efdeb])&&(_0x5f530f=(_0xf4893d?_0x591cc4(_0x1c276a,_0x5d3b38,_0x5f530f):_0x591cc4(_0x5f530f))||_0x5f530f);return _0xf4893d&&_0x5f530f&&Qr(_0x1c276a,_0x5d3b38,_0x5f530f),_0x5f530f;},ke=(_0x478f39,_0x420857)=>(_0x53a010,_0x49ad7c)=>_0x420857(_0x53a010,_0x49ad7c,_0x478f39);let wt=class extends _0x346899{constructor(_0x436e92,_0x29d61d,_0x1e81bc,_0x202ea9,_0x1d3939){const _0x4e5383=_0x513b3b;super(),l(this,'_cursorShapes',[]),l(this,_0x4e5383(0x289),[]),(this[_0x4e5383(0x3a0)]=_0x436e92,this[_0x4e5383(0x2f7)]=_0x29d61d,this['_collabCursorController']=_0x1e81bc,this[_0x4e5383(0x2b6)]=_0x202ea9,this[_0x4e5383(0x47f)]=_0x1d3939,this['_init']());}[_0x513b3b(0x49c)](){const _0x30a53a=_0x513b3b,_0x598d12=this[_0x30a53a(0x3a0)][_0x30a53a(0x1af)],_0x1518b4=this[_0x30a53a(0x2f7)];this[_0x30a53a(0x233)](_0x3ff449([this[_0x30a53a(0x2b2)]['getCollabCursors$'](_0x598d12),this[_0x30a53a(0x47f)][_0x30a53a(0x440)]])['pipe'](_0x50a0b8(([_0x3f87b7,_0x435e44])=>({'skeleton':_0x1518b4['getSkeleton'](),'cursors':[..._0x3f87b7['values']()][_0x30a53a(0x3eb)](_0x3846cf=>({..._0x3846cf,'color':_0x435e44[_0x3846cf[_0x30a53a(0x2e6)]]}))})))[_0x30a53a(0x465)](_0x298ab4=>{const _0x47cff1=_0x30a53a;if(this[_0x47cff1(0x27a)](),_0x298ab4){const {skeleton:_0x4dd9bc,cursors:_0x2cf511}=_0x298ab4;this[_0x47cff1(0x280)](_0x4dd9bc,_0x2cf511);}})),this[_0x30a53a(0x46a)](),this[_0x30a53a(0x44a)]();}['_updateCollabCursors'](_0x78882,_0x53f589){const _0x18efbd=_0x513b3b,{scene:_0xb41b21,mainComponent:_0x3eb1fe}=this[_0x18efbd(0x3a0)],_0x5439d7=_0x53f589['map'](_0x69391d=>new gs(_0x69391d,_0xb41b21,_0x78882,_0x3eb1fe));this[_0x18efbd(0x31f)]=_0x5439d7,this[_0x18efbd(0x289)]=_0x53f589;}['_refreshCollabCursors'](){const _0xff1cc8=_0x513b3b;this['_removeCollabCursors']();const {scene:_0x54bb3c,mainComponent:_0x337c03}=this[_0xff1cc8(0x3a0)],_0x53da5c=this[_0xff1cc8(0x2f7)]['getSkeleton'](),_0x2a14a7=this['_cursors'][_0xff1cc8(0x15a)](_0x116245=>new gs(_0x116245,_0x54bb3c,_0x53da5c,_0x337c03));this[_0xff1cc8(0x31f)]=_0x2a14a7;}[_0x513b3b(0x27a)](){const _0x523cc7=_0x513b3b;this[_0x523cc7(0x31f)][_0x523cc7(0x301)](_0x1997e6=>_0x1997e6[_0x523cc7(0x3ce)]()),this[_0x523cc7(0x31f)]=[];}[_0x513b3b(0x44a)](){const _0x3bcd28=_0x513b3b,_0x6d1c1=[_0x26e6cb['id']];this[_0x3bcd28(0x233)](this[_0x3bcd28(0x2b6)]['onCommandExecuted'](_0x4c63e5=>{const _0xb94fdf=_0x3bcd28;_0x6d1c1[_0xb94fdf(0x32f)](_0x4c63e5['id'])&&_0x4c63e5[_0xb94fdf(0x498)][_0xb94fdf(0x1af)]===this['_context'][_0xb94fdf(0x1af)]&&this[_0xb94fdf(0x19d)]();}));}['_initResize'](){const _0x33faed=_0x513b3b;this[_0x33faed(0x233)](_0x27e3fd(this[_0x33faed(0x3a0)][_0x33faed(0x3dd)][_0x33faed(0x2c6)])['pipe'](_0x5bfb9e(_0x46f95f=>_0x46f95f[_0x33faed(0x30b)]===_0x5264bf[_0x33faed(0x210)]),_0x10e087(0x10))[_0x33faed(0x465)](()=>{const _0x319d8f=_0x33faed;this[_0x319d8f(0x19d)]();}));}};wt=to([ke(0x1,_0x53ed15(_0x2a6fef)),ke(0x2,_0x53ed15(ve)),ke(0x3,_0x8348c),ke(0x4,_0x53ed15(_0xe610aa))],wt);const so=0x1,io=1.5;class no extends _0x284381{constructor(_0x52a282,_0x49ab6d){const _0x5bac2a=_0x513b3b;super(_0x52a282,_0x49ab6d),l(this,'_color'),l(this,_0x5bac2a(0x311),!0x1),l(this,_0x5bac2a(0x164)),l(this,_0x5bac2a(0x2f2),''),l(this,_0x5bac2a(0x3f1),_0x5bac2a(0x423)),l(this,_0x5bac2a(0x321)),(_0x49ab6d&&this[_0x5bac2a(0x271)](_0x49ab6d),this['onPointerEnter$'][_0x5bac2a(0x2e4)](()=>this[_0x5bac2a(0x271)]({'hovered':!0x0})),this[_0x5bac2a(0x285)][_0x5bac2a(0x2e4)](()=>this[_0x5bac2a(0x271)]({'hovered':!0x1})));}['setShapeProps'](_0x3aabf1){const _0x3d4ff2=_0x513b3b;var _0x34cc9d,_0x5d499e,_0x1241dc,_0x848744,_0x3ed667,_0xcfd87e;this[_0x3d4ff2(0x1b2)]=(_0x34cc9d=_0x3aabf1[_0x3d4ff2(0x2e6)])!=null?_0x34cc9d:this[_0x3d4ff2(0x1b2)],this[_0x3d4ff2(0x311)]=(_0x5d499e=_0x3aabf1[_0x3d4ff2(0x3ba)])!=null?_0x5d499e:this['_hovered'],this[_0x3d4ff2(0x164)]=(_0x1241dc=_0x3aabf1[_0x3d4ff2(0x304)])!=null?_0x1241dc:this['_range'],this[_0x3d4ff2(0x2f2)]=(_0x848744=_0x3aabf1['name'])!=null?_0x848744:this[_0x3d4ff2(0x2f2)],this[_0x3d4ff2(0x3f1)]=(_0x3ed667=_0x3aabf1[_0x3d4ff2(0x38a)])!=null?_0x3ed667:this['_labelPosition'],this['_backgroundColor']=(_0xcfd87e=_0x3aabf1[_0x3d4ff2(0x33a)])!=null?_0xcfd87e:this[_0x3d4ff2(0x321)],this[_0x3d4ff2(0x24d)]({'width':_0x3aabf1[_0x3d4ff2(0x4a6)],'height':_0x3aabf1[_0x3d4ff2(0x1ab)]});}[_0x513b3b(0x2e2)](_0x3cbe58){const _0xcb514=_0x513b3b,{row:_0x467459,column:_0x1dbaf6}=_0x3cbe58;if(_0x467459>=this[_0xcb514(0x164)]['startRow']&&_0x467459<=this[_0xcb514(0x164)][_0xcb514(0x277)]&&_0x1dbaf6>=this[_0xcb514(0x164)][_0xcb514(0x208)]&&_0x1dbaf6<=this[_0xcb514(0x164)][_0xcb514(0x1c2)]){this[_0xcb514(0x271)]({'hovered':!0x0});return;}this[_0xcb514(0x271)]({'hovered':!0x1});}[_0x513b3b(0x2bb)](_0x551d11){return!0x1;}[_0x513b3b(0x472)](_0x246912){const _0x3896cd=_0x513b3b;_0x57bf2c[_0x3896cd(0x4a4)](_0x246912,{'width':this[_0x3896cd(0x4a6)],'height':this['height'],'strokeWidth':io,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x3896cd(0x321)]}),this[_0x3896cd(0x311)]&&(_0x246912[_0x3896cd(0x43e)](),_0x246912[_0x3896cd(0x3d5)](0x1,0x0,0x0,0x1,this[_0x3896cd(0x4a6)],this['_labelPosition']===_0x3896cd(0x2c2)?0x0:-$e),st['drawWith'](_0x246912,{'text':this[_0x3896cd(0x2f2)],'color':this['_color']}),_0x246912['restore']());}}var ro=Object[_0x513b3b(0x1a5)],oo=Object['getOwnPropertyDescriptor'],ao=(_0x28560f,_0x43038d,_0x3cdae0,_0x568293)=>{const _0x131ad7=_0x513b3b;for(var _0xd929d7=_0x568293>0x1?void 0x0:_0x568293?oo(_0x43038d,_0x3cdae0):_0x43038d,_0x115c1f=_0x28560f[_0x131ad7(0x313)]-0x1,_0x6ea78a;_0x115c1f>=0x0;_0x115c1f--)(_0x6ea78a=_0x28560f[_0x115c1f])&&(_0xd929d7=(_0x568293?_0x6ea78a(_0x43038d,_0x3cdae0,_0xd929d7):_0x6ea78a(_0xd929d7))||_0xd929d7);return _0x568293&&_0xd929d7&&ro(_0x43038d,_0x3cdae0,_0xd929d7),_0xd929d7;},gt=(_0x212a0c,_0x14772e)=>(_0x16e31f,_0x1bede3)=>_0x14772e(_0x16e31f,_0x1bede3,_0x212a0c);const co=0x1389;let Pt=class extends _0x346899{constructor(_0x3bdc67,_0x4e26df,_0x7b6ab2,_0x2f1957){const _0x14dfdb=_0x513b3b;super(),l(this,_0x14dfdb(0x289),new Set()),l(this,_0x14dfdb(0x173),null),(this[_0x14dfdb(0x3a0)]=_0x3bdc67,this['_sheetSkeletonManagerService']=_0x4e26df,this['_collabCursorController']=_0x7b6ab2,this[_0x14dfdb(0x47f)]=_0x2f1957,this['_init']());}['_init'](){const _0x46caa4=_0x513b3b;this['_sheetSkeletonManagerService'][_0x46caa4(0x4a2)]['pipe'](_0x453931(this['dispose$']),_0x31790b(_0x3c650c=>{const _0x1be445=_0x46caa4;if(_0x3c650c){const _0x3a02f3=_0x3c650c[_0x1be445(0x43d)];return _0x3ff449(this[_0x1be445(0x2b2)][_0x1be445(0x155)](this[_0x1be445(0x3a0)][_0x1be445(0x1af)]),this['_themeService'][_0x1be445(0x440)])['pipe'](_0x50a0b8(([_0xb20694,_0x4c8891])=>{const _0x1f8af6=_0x1be445,_0x53d1e4=new Map();return _0xb20694[_0x1f8af6(0x301)]((_0x2882e5,_0x5c64c3)=>{const _0x45f22b=_0x1f8af6;if(_0x2882e5[_0x45f22b(0x259)]===_0x3a02f3){const _0x4c7b5e={..._0x2882e5};_0x4c7b5e['color']=_0x4c8891[_0x2882e5['color']],_0x53d1e4[_0x45f22b(0x3ca)](_0x5c64c3,_0x4c7b5e);}}),{'skeleton':_0x3c650c,'cursors':_0x53d1e4};}));}return _0x207817({'skeleton':null,'cursors':new Map()});}))[_0x46caa4(0x465)](({skeleton:_0x262e7e,cursors:_0x1f7049})=>{const _0x9ba3ff=_0x46caa4;this[_0x9ba3ff(0x27a)](),_0x262e7e&&this[_0x9ba3ff(0x280)](_0x262e7e,_0x1f7049);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x46caa4(0x465)](_0x4aeabb=>{const _0x377fc=_0x46caa4;if(_0x4aeabb==null)return;const {skeleton:_0x4322d}=_0x4aeabb,{scene:_0x3b3975}=this[_0x377fc(0x3a0)];_0x3b3975['onPointerMove$'][_0x377fc(0x2e4)](_0x2cf035(_0x32d9a6=>{const _0x3bf871=_0x377fc;var _0x33afab,_0x18dc85;const {offsetX:_0x3cc9b8,offsetY:_0x23e4ba}=_0x32d9a6,{x:_0x1359d6,y:_0x4f7ad8}=_0x3b3975['getRelativeToViewportCoord'](_0x45e6c1[_0x3bf871(0x370)]([_0x3cc9b8,_0x23e4ba])),{scaleX:_0x634418,scaleY:_0x2403eb}=_0x3b3975[_0x3bf871(0x2a0)](),_0x3e094e=_0x3b3975[_0x3bf871(0x237)](_0x4a3083[_0x3bf871(0x160)]),_0x32c7d9=_0x3b3975[_0x3bf871(0x2c1)](_0x45e6c1[_0x3bf871(0x370)]([_0x1359d6,_0x4f7ad8]),_0x3e094e),_0x33370d=_0x4322d[_0x3bf871(0x41c)](_0x3cc9b8,_0x23e4ba,_0x634418,_0x2403eb,_0x32c7d9);((_0x33afab=this[_0x3bf871(0x173)])==null?void 0x0:_0x33afab[_0x3bf871(0x188)])===_0x33370d[_0x3bf871(0x188)]&&((_0x18dc85=this[_0x3bf871(0x173)])==null?void 0x0:_0x18dc85['row'])===_0x33370d[_0x3bf871(0x1e9)]||this[_0x3bf871(0x289)]['forEach'](_0x37f846=>{_0x37f846['onMouseMove'](_0x33370d);});},0x64));});}[_0x513b3b(0x280)](_0x253c64,_0x5d6d7f){const _0x10364f=_0x513b3b;var _0x428542;const _0x45aa69=(_0x428542=this[_0x10364f(0x399)][_0x10364f(0x22d)]())==null?void 0x0:_0x428542[_0x10364f(0x449)];if(!_0x45aa69)return;const _0x37886d=this[_0x10364f(0x3ed)]();if(!_0x37886d)return;this[_0x10364f(0x289)]['forEach'](_0x439064=>{const _0x2c5ad2=_0x10364f;_0x439064[_0x2c5ad2(0x496)]();});const {scene:_0x3c5ea1}=_0x37886d,_0x430786=ho(Array['from'](_0x5d6d7f[_0x10364f(0x17a)]()))['map'](_0x31f176=>{const _0x139973=_0x10364f,{color:_0x74542c,range:_0x397eac,name:_0x2d45c1,selection:_0x6dde27,sheetID:_0x4087e2}=_0x31f176,{startColumn:_0x4b4633,startRow:_0x1a67fe,endColumn:_0x44cf74,endRow:_0x27922a}=_0x397eac,_0x2a108a=_0x4c9650(_0x1a67fe,_0x4b4633,_0x3c5ea1,_0x45aa69),_0x57a4ed=_0x4c9650(_0x27922a,_0x44cf74,_0x3c5ea1,_0x45aa69),{columnHeaderHeightAndMarginTop:_0x4e03d9}=_0x45aa69,{startX:_0x5e641c,startY:_0x42c456}=_0x2a108a,{endX:_0xb36542,endY:_0x49caa9}=_0x57a4ed,_0x5e2ca4=_0xb36542-_0x5e641c,_0x14551f=_0x49caa9-_0x42c456,_0x181d8e={'labelPosition':_0x42c456-_0x4e03d9>=$e?_0x139973(0x423):_0x139973(0x2c2),'sheetID':_0x4087e2,'range':_0x397eac,'color':_0x74542c,'name':_0x2d45c1,'selection':_0x6dde27,'left':_0x5e641c,'top':_0x42c456,'width':_0x5e2ca4,'height':_0x14551f,'evented':!0x1,'zIndex':co};return new no(_0x2d45c1,_0x181d8e);});_0x3c5ea1['addObjects'](_0x430786,so),this[_0x10364f(0x289)]=new Set(_0x430786);}[_0x513b3b(0x27a)](){const _0x20afca=_0x513b3b;var _0x483b3d;(_0x483b3d=this[_0x20afca(0x289)])==null||_0x483b3d['forEach'](_0x329d2d=>_0x329d2d[_0x20afca(0x3ce)]());}[_0x513b3b(0x3ed)](){const _0x29b51b=_0x513b3b;return _0x9b1a87(this[_0x29b51b(0x3a0)][_0x29b51b(0x446)],this['_context']);}};Pt=ao([gt(0x1,_0x53ed15(_0x3dfcbb)),gt(0x2,_0x53ed15(ve)),gt(0x3,_0x53ed15(_0xe610aa))],Pt);function ho(_0x210e3c){const _0x32c1fe=_0x513b3b,_0x1db595=new Map();return _0x210e3c[_0x32c1fe(0x301)](_0x188fc8=>{const _0x241a5c=_0x32c1fe;if(_0x1db595[_0x241a5c(0x243)](_0x188fc8[_0x241a5c(0x15c)])){const _0xea9d3=_0x1db595[_0x241a5c(0x49f)](_0x188fc8['selection']);_0xea9d3[_0x241a5c(0x41d)]+=',\x20'+_0x188fc8[_0x241a5c(0x41d)];}else _0x1db595[_0x241a5c(0x3ca)](_0x188fc8[_0x241a5c(0x15c)],_0x188fc8);}),Array[_0x32c1fe(0x256)](_0x1db595['values']());}var N=function(){const _0x1403d3=_0x513b3b;return N=Object[_0x1403d3(0x36b)]||function(_0x2cf033){const _0x5632ca=_0x1403d3;for(var _0x2ad33b,_0x3ede32=0x1,_0x1ca295=arguments[_0x5632ca(0x313)];_0x3ede32<_0x1ca295;_0x3ede32++){_0x2ad33b=arguments[_0x3ede32];for(var _0x1e76dd in _0x2ad33b)Object[_0x5632ca(0x228)][_0x5632ca(0x36e)]['call'](_0x2ad33b,_0x1e76dd)&&(_0x2cf033[_0x1e76dd]=_0x2ad33b[_0x1e76dd]);}return _0x2cf033;},N[_0x1403d3(0x201)](this,arguments);},lo=function(_0x13562c,_0x2bce2e){const _0x25ece9=_0x513b3b;var _0x5e3b61={};for(var _0x48a8c6 in _0x13562c)Object[_0x25ece9(0x228)]['hasOwnProperty'][_0x25ece9(0x194)](_0x13562c,_0x48a8c6)&&_0x2bce2e['indexOf'](_0x48a8c6)<0x0&&(_0x5e3b61[_0x48a8c6]=_0x13562c[_0x48a8c6]);if(_0x13562c!=null&&typeof Object[_0x25ece9(0x3d6)]==_0x25ece9(0x33d)){for(var _0x3fe67a=0x0,_0x48a8c6=Object[_0x25ece9(0x3d6)](_0x13562c);_0x3fe67a<_0x48a8c6['length'];_0x3fe67a++)_0x2bce2e[_0x25ece9(0x384)](_0x48a8c6[_0x3fe67a])<0x0&&Object['prototype'][_0x25ece9(0x4ca)][_0x25ece9(0x194)](_0x13562c,_0x48a8c6[_0x3fe67a])&&(_0x5e3b61[_0x48a8c6[_0x3fe67a]]=_0x13562c[_0x48a8c6[_0x3fe67a]]);}return _0x5e3b61;},Yt=_0x33fc8d(function(_0x2c6541,_0x46ee69){const _0x3bbd09=_0x513b3b;var _0x8d21ae=_0x2c6541[_0x3bbd09(0x35f)],_0x5cdcbe=_0x2c6541['id'],_0x576788=_0x2c6541['className'],_0x52044b=_0x2c6541[_0x3bbd09(0x1b6)],_0x21f821=lo(_0x2c6541,[_0x3bbd09(0x35f),'id','className',_0x3bbd09(0x1b6)]),_0x460acd=_0x3bbd09(0x3c8)['concat'](_0x5cdcbe,'\x20')[_0x3bbd09(0x1e5)](_0x576788||'')[_0x3bbd09(0x459)](),_0x2c5df9=_0x3dd20f('_'['concat'](mo()));return Xs(_0x8d21ae,''[_0x3bbd09(0x1e5)](_0x5cdcbe),{'defIds':_0x8d21ae['defIds'],'idSuffix':_0x2c5df9['current']},N({'ref':_0x46ee69,'className':_0x460acd},_0x21f821),_0x52044b);});function Xs(_0x5dafc1,_0x2ab5cd,_0x2f559e,_0x1f5368,_0x28eeba){const _0x28425d=_0x513b3b;return _0x3a56da(_0x5dafc1['tag'],N(N({'key':_0x2ab5cd},_o(_0x5dafc1,_0x2f559e,_0x28eeba)),_0x1f5368),(uo(_0x5dafc1,_0x2f559e)['children']||[])[_0x28425d(0x15a)](function(_0x13b0b5,_0x36e6b2){const _0x45df38=_0x28425d;return Xs(_0x13b0b5,''[_0x45df38(0x1e5)](_0x2ab5cd,'-')['concat'](_0x5dafc1[_0x45df38(0x31d)],'-')['concat'](_0x36e6b2),_0x2f559e,void 0x0,_0x28eeba);}));}function _o(_0x34248c,_0x36b8a7,_0x3ea1f7){const _0x2cd01e=_0x513b3b;var _0x5d5392=N({},_0x34248c[_0x2cd01e(0x4d6)]);_0x3ea1f7!=null&&_0x3ea1f7[_0x2cd01e(0x17f)]&&_0x5d5392[_0x2cd01e(0x28e)]===_0x2cd01e(0x17f)&&(_0x5d5392['fill']=_0x3ea1f7[_0x2cd01e(0x17f)]);var _0x6db005=_0x36b8a7[_0x2cd01e(0x497)];return!_0x6db005||_0x6db005[_0x2cd01e(0x313)]===0x0||(_0x34248c[_0x2cd01e(0x31d)]===_0x2cd01e(0x409)&&_0x5d5392[_0x2cd01e(0x1eb)]&&(_0x5d5392[_0x2cd01e(0x1eb)]=_0x5d5392[_0x2cd01e(0x1eb)]+_0x36b8a7['idSuffix']),Object[_0x2cd01e(0x16e)](_0x5d5392)[_0x2cd01e(0x301)](function(_0x17b963){const _0x41f3ae=_0x2cd01e;var _0x5e3d9f=_0x17b963[0x0],_0x27c647=_0x17b963[0x1];typeof _0x27c647==_0x41f3ae(0x490)&&(_0x5d5392[_0x5e3d9f]=_0x27c647[_0x41f3ae(0x22c)](/url\(#(.*)\)/,_0x41f3ae(0x1b8)[_0x41f3ae(0x1e5)](_0x36b8a7[_0x41f3ae(0x406)],')')));})),_0x5d5392;}function uo(_0xce2179,_0x47d672){const _0x710261=_0x513b3b;var _0x13b2ec,_0x2625c2=_0x47d672[_0x710261(0x497)];return!_0x2625c2||_0x2625c2[_0x710261(0x313)]===0x0?_0xce2179:_0xce2179[_0x710261(0x31d)]===_0x710261(0x329)&&(!((_0x13b2ec=_0xce2179[_0x710261(0x1a7)])===null||_0x13b2ec===void 0x0)&&_0x13b2ec[_0x710261(0x313)])?N(N({},_0xce2179),{'children':_0xce2179[_0x710261(0x1a7)][_0x710261(0x15a)](function(_0x4da0e1){const _0x4feb87=_0x710261;return typeof _0x4da0e1[_0x4feb87(0x4d6)]['id']==_0x4feb87(0x490)&&_0x2625c2&&_0x2625c2[_0x4feb87(0x384)](_0x4da0e1[_0x4feb87(0x4d6)]['id'])>-0x1?N(N({},_0x4da0e1),{'attrs':N(N({},_0x4da0e1[_0x4feb87(0x4d6)]),{'id':_0x4da0e1[_0x4feb87(0x4d6)]['id']+_0x47d672[_0x4feb87(0x406)]})}):_0x4da0e1;})}):_0xce2179;}function mo(){const _0x364024=_0x513b3b;return Math['random']()[_0x364024(0x40b)](0x24)[_0x364024(0x486)](0x2,0x8);}Yt[_0x513b3b(0x330)]=_0x513b3b(0x473);var fo={'tag':_0x513b3b(0x257),'attrs':{'fill':_0x513b3b(0x4d7),'viewBox':_0x513b3b(0x291),'width':_0x513b3b(0x1d4),'height':_0x513b3b(0x1d4)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x513b3b(0x252),'attrs':{'stroke':'currentColor','d':_0x513b3b(0x2ef),'strokeLinecap':_0x513b3b(0x438),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x513b3b(0x329),'attrs':{},'children':[{'tag':_0x513b3b(0x22b),'attrs':{'id':_0x513b3b(0x43f)},'children':[{'tag':_0x513b3b(0x252),'attrs':{'fill':'#fff','d':_0x513b3b(0x1b1)}}]}]}],'defIds':[_0x513b3b(0x43f)]},qs=_0x33fc8d(function(_0x4627c8,_0x40023b){const _0x55f272=_0x513b3b;return _0x3a56da(Yt,Object[_0x55f272(0x36b)]({},_0x4627c8,{'id':_0x55f272(0x189),'ref':_0x40023b,'icon':fo}));});qs[_0x513b3b(0x330)]='OffLineSingle';var go={'tag':_0x513b3b(0x257),'attrs':{'fill':'none','viewBox':_0x513b3b(0x1bd),'width':_0x513b3b(0x1d4),'height':_0x513b3b(0x1d4)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x513b3b(0x252),'attrs':{'stroke':_0x513b3b(0x1e0),'d':_0x513b3b(0x454),'strokeLinecap':_0x513b3b(0x438),'strokeLinejoin':_0x513b3b(0x438),'strokeWidth':1.2}}]},{'tag':_0x513b3b(0x329),'attrs':{},'children':[{'tag':_0x513b3b(0x22b),'attrs':{'id':_0x513b3b(0x3db)},'children':[{'tag':_0x513b3b(0x252),'attrs':{'fill':_0x513b3b(0x359),'d':_0x513b3b(0x1b1),'transform':_0x513b3b(0x3e5)}}]}]}],'defIds':[_0x513b3b(0x3db)]},Js=_0x33fc8d(function(_0x462baa,_0x5df6b6){const _0x22b879=_0x513b3b;return _0x3a56da(Yt,Object[_0x22b879(0x36b)]({},_0x462baa,{'id':_0x22b879(0x3b8),'ref':_0x5df6b6,'icon':go}));});Js[_0x513b3b(0x330)]='OnLineSingle';function zs(_0x3f8a1a){const _0x48b691=_0x513b3b;var _0x19e54f,_0x4faaf3,_0x3e4adf='';if(typeof _0x3f8a1a==_0x48b691(0x490)||typeof _0x3f8a1a==_0x48b691(0x4c8))_0x3e4adf+=_0x3f8a1a;else{if(typeof _0x3f8a1a=='object'){if(Array[_0x48b691(0x33f)](_0x3f8a1a)){var _0xb831f4=_0x3f8a1a[_0x48b691(0x313)];for(_0x19e54f=0x0;_0x19e54f<_0xb831f4;_0x19e54f++)_0x3f8a1a[_0x19e54f]&&(_0x4faaf3=zs(_0x3f8a1a[_0x19e54f]))&&(_0x3e4adf&&(_0x3e4adf+='\x20'),_0x3e4adf+=_0x4faaf3);}else{for(_0x4faaf3 in _0x3f8a1a)_0x3f8a1a[_0x4faaf3]&&(_0x3e4adf&&(_0x3e4adf+='\x20'),_0x3e4adf+=_0x4faaf3);}}}return _0x3e4adf;}function So(){const _0xae05b5=_0x513b3b;for(var _0x4a24dd,_0x188c94,_0x39ef8e=0x0,_0x19fa34='',_0x414ea5=arguments[_0xae05b5(0x313)];_0x39ef8e<_0x414ea5;_0x39ef8e++)(_0x4a24dd=arguments[_0x39ef8e])&&(_0x188c94=zs(_0x4a24dd))&&(_0x19fa34&&(_0x19fa34+='\x20'),_0x19fa34+=_0x188c94);return _0x19fa34;}const po=_0x513b3b(0x2aa),vo=_0x513b3b(0x2e3),Io=_0x513b3b(0x204),Eo='univer-online',Co='univer-offline',Pe={'onlineStatusIcon':po,'onlineStatusTitle':vo,'onlineStatus':Io,'online':Eo,'offline':Co};function bo(_0x15578d){const _0x123314=_0x513b3b;switch(_0x15578d){case P[_0x123314(0x44c)]:return _0x123314(0x46e);case P[_0x123314(0x230)]:return _0x123314(0x428);case P[_0x123314(0x2ea)]:return _0x123314(0x265);case P['NOT_COLLAB']:return _0x123314(0x3b5);case P[_0x123314(0x200)]:case P['AWAITING_WITH_PENDING']:return _0x123314(0x24c);case P[_0x123314(0x149)]:case P[_0x123314(0x2a3)]:return _0x123314(0x182);}}function To(_0x56990d){const _0x5be1f2=_0x513b3b,{status$:_0x438074}=_0x56990d,_0x4ba9e1=_0x1e1202(_0x438074,P[_0x5be1f2(0x1e2)]),_0x36c5ea=_0x414f16(_0x1deb41),_0x85ac7b=_0x414f16(he),_0x5b2f13=_0x4ba9e1!==P[_0x5be1f2(0x44c)],_0x505bc4=_0x36c5ea['t'](bo(_0x4ba9e1)),_0x28049e=So(Pe['onlineStatus'],{[Pe[_0x5be1f2(0x2a8)]]:_0x5b2f13,[Pe[_0x5be1f2(0x1da)]]:!_0x5b2f13}),_0x73d324=_0x5b2f13?_0x30d3ac['createElement'](Js,null):_0x30d3ac[_0x5be1f2(0x2d9)](qs,null),_0x57bb4a=_0x162ab0(()=>{const _0x3b2ac2=_0x5be1f2;_0x5b2f13||_0x85ac7b[_0x3b2ac2(0x43b)]();},[_0x5b2f13,_0x85ac7b]);function _0x1f5f05(){const _0x555466=_0x5be1f2;return _0x30d3ac['createElement'](_0x555466(0x25d),{'className':_0x28049e,'onClick':_0x57bb4a},_0x30d3ac['createElement'](_0x555466(0x25d),{'className':Pe['onlineStatusIcon']},_0x73d324),_0x30d3ac[_0x555466(0x2d9)](_0x555466(0x25d),{'className':Pe[_0x555466(0x491)]},_0x505bc4));}return _0x5b2f13?_0x1f5f05():_0x30d3ac[_0x5be1f2(0x2d9)](_0x1850eb,{'title':_0x36c5ea['t'](_0x5be1f2(0x22f))},_0x1f5f05());}var Ro=Object[_0x513b3b(0x1a5)],Oo=Object['getOwnPropertyDescriptor'],Do=(_0x38b374,_0x38319e,_0x323eb5,_0x144228)=>{const _0x4b4819=_0x513b3b;for(var _0x51455c=_0x144228>0x1?void 0x0:_0x144228?Oo(_0x38319e,_0x323eb5):_0x38319e,_0x1e7ec6=_0x38b374[_0x4b4819(0x313)]-0x1,_0x2f44eb;_0x1e7ec6>=0x0;_0x1e7ec6--)(_0x2f44eb=_0x38b374[_0x1e7ec6])&&(_0x51455c=(_0x144228?_0x2f44eb(_0x38319e,_0x323eb5,_0x51455c):_0x2f44eb(_0x51455c))||_0x51455c);return _0x144228&&_0x51455c&&Ro(_0x38319e,_0x323eb5,_0x51455c),_0x51455c;},Be=(_0x5aec09,_0x256011)=>(_0x1bbb4c,_0x58b013)=>_0x256011(_0x1bbb4c,_0x58b013,_0x5aec09);let Me=class extends _0x5f406a{constructor(_0x912cc5,_0x33b578,_0x2f090c,_0x1fafb4){const _0xded4f=_0x513b3b;super(),l(this,_0xded4f(0x1de),new _0x1edb16(P[_0xded4f(0x1e2)])),(this[_0xded4f(0x4c4)]=_0x912cc5,this[_0xded4f(0x3fc)]=_0x33b578,this[_0xded4f(0x31e)]=_0x2f090c,this[_0xded4f(0x436)]=_0x1fafb4,this[_0xded4f(0x306)](),this[_0xded4f(0x4a7)]());}['_initStatusListener'](){const _0x25bffe=_0x513b3b;this['disposeWithMe'](this[_0x25bffe(0x4c4)][_0x25bffe(0x335)][_0x25bffe(0x33b)](_0x1317fa(()=>{const _0x360a97=_0x25bffe,_0x123a23=this['_univerInstanceService'][_0x360a97(0x450)]();return _0x123a23?this[_0x360a97(0x436)]['getCollabEntity$'](_0x123a23['getUnitId']()):_0x207817(null);}),_0x1317fa(_0x5ae584=>_0x5ae584?_0x5ae584[_0x25bffe(0x258)]:_0x207817(P[_0x25bffe(0x1e2)])))[_0x25bffe(0x465)](_0x2e9021=>{const _0x3d89b2=_0x25bffe;this[_0x3d89b2(0x1de)]['next'](_0x2e9021);}));}[_0x513b3b(0x306)](){const _0x101616=_0x513b3b;this[_0x101616(0x233)](this['_uiPartsService']['registerComponent'](_0x5d8ddb[_0x101616(0x3da)],()=>_0x11ef5a(wo({'status$':this[_0x101616(0x1de)]['asObservable']()}),this['_injector'])));}};Me=Do([Be(0x0,_0x4c005a),Be(0x1,_0x55a85e),Be(0x2,_0x53ed15(_0x3165b6)),Be(0x3,_0x53ed15(Le))],Me);function wo(_0x1e8f31){const {status$:_0x531e78}=_0x1e8f31;return function(){const _0x2e8e83=_0x1736;return _0x30d3ac[_0x2e8e83(0x2d9)](To,{'status$':_0x531e78});};}const Zs=_0x52354a(_0x513b3b(0x35a));var Po=Object[_0x513b3b(0x1a5)],yo=Object[_0x513b3b(0x1be)],Uo=(_0x4abb36,_0x103d76,_0x5bae3e,_0x6d51d0)=>{const _0x8a8a37=_0x513b3b;for(var _0x15391f=_0x6d51d0>0x1?void 0x0:_0x6d51d0?yo(_0x103d76,_0x5bae3e):_0x103d76,_0x4c711b=_0x4abb36[_0x8a8a37(0x313)]-0x1,_0x5e82c5;_0x4c711b>=0x0;_0x4c711b--)(_0x5e82c5=_0x4abb36[_0x4c711b])&&(_0x15391f=(_0x6d51d0?_0x5e82c5(_0x103d76,_0x5bae3e,_0x15391f):_0x5e82c5(_0x15391f))||_0x15391f);return _0x6d51d0&&_0x15391f&&Po(_0x103d76,_0x5bae3e,_0x15391f),_0x15391f;},ge=(_0x5f5dac,_0x4ebcf7)=>(_0x56b67f,_0x346999)=>_0x4ebcf7(_0x56b67f,_0x346999,_0x5f5dac);let Je=class extends _0x346899{constructor(_0x34001f,_0x4a964f,_0x275682,_0x3ef191,_0xde931a,_0x4f6a5c){const _0x141c72=_0x513b3b;super(),this[_0x141c72(0x1b4)]=_0x34001f,this[_0x141c72(0x4e0)]=_0x4a964f,this['_commandService']=_0x275682,this[_0x141c72(0x2be)]=_0x3ef191,this['_snapshotService']=_0xde931a,_0x4f6a5c?_0x4f6a5c==null||_0x4f6a5c[_0x141c72(0x3e4)]()[_0x141c72(0x2cd)](()=>this[_0x141c72(0x49c)]()):(this[_0x141c72(0x4e0)][_0x141c72(0x2bc)](_0x141c72(0x244),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x141c72(0x49c)]());}async[_0x513b3b(0x49c)](){const _0xe8a449=_0x513b3b,_0x281703=this[_0xe8a449(0x1b4)]['getParam']('unit'),_0x33dc85=this[_0xe8a449(0x1b4)][_0xe8a449(0x33e)]('type');if(!_0x281703||!_0x33dc85){this[_0xe8a449(0x4e0)][_0xe8a449(0x2bc)](_0xe8a449(0x244),_0xe8a449(0x499));return;}switch(Number(_0x33dc85)){case k['UNIVER_SHEET']:{const _0x59d78e=await this[_0xe8a449(0x297)](_0x281703);this['_setupSubUnitSync'](_0x59d78e);break;}case k['UNIVER_DOC']:{await this[_0xe8a449(0x475)](_0x281703);break;}default:{this[_0xe8a449(0x4e0)][_0xe8a449(0x25c)]('[DataLoaderController]',_0xe8a449(0x223));break;}}}async['_setupSubUnitSync'](_0x5c0a61){const _0x2a7254=_0x513b3b;await this[_0x2a7254(0x198)](_0x5c0a61),_0x5c0a61[_0x2a7254(0x30f)][_0x2a7254(0x33b)](_0x3bacfd(this[_0x2a7254(0x2d2)]))[_0x2a7254(0x465)](_0x3144cb=>{_0x3144cb&&this['_updateURLWithCurrentState'](_0x3144cb);}),this['_urlService'][_0x2a7254(0x42f)][_0x2a7254(0x33b)](_0x3bacfd(this[_0x2a7254(0x2d2)]))[_0x2a7254(0x465)](()=>this[_0x2a7254(0x198)](_0x5c0a61));}[_0x513b3b(0x47e)](_0x3f29c5,_0x1eb974=!0x1){const _0x3514cf=_0x513b3b,_0x4c2548=this[_0x3514cf(0x1b4)][_0x3514cf(0x33e)]('subunit');_0x3f29c5['getSheetId']()!==_0x4c2548&&this[_0x3514cf(0x1b4)][_0x3514cf(0x1b9)]('subunit',_0x3f29c5[_0x3514cf(0x27d)](),_0x1eb974);}async[_0x513b3b(0x198)](_0x597e12){const _0x8336b2=_0x513b3b;var _0x48e383;const _0x24be26=this[_0x8336b2(0x1b4)][_0x8336b2(0x33e)](_0x8336b2(0x18b));if(!_0x24be26||!_0x597e12[_0x8336b2(0x2d3)](_0x24be26)){const _0x40f2d8=_0x597e12[_0x8336b2(0x23f)]()[0x0],_0x193f49=_0x597e12[_0x8336b2(0x2d3)](_0x40f2d8);if(!_0x193f49)return;this[_0x8336b2(0x47e)](_0x193f49,!0x0),await this[_0x8336b2(0x2b6)][_0x8336b2(0x374)](_0xc656da['id'],{'unitId':_0x597e12[_0x8336b2(0x389)](),'subUnitId':_0x40f2d8});return;}((_0x48e383=_0x597e12[_0x8336b2(0x349)]())==null?void 0x0:_0x48e383['getSheetId']())!==_0x24be26&&await this['_commandService'][_0x8336b2(0x374)](_0xc656da['id'],{'unitId':_0x597e12[_0x8336b2(0x389)](),'subUnitId':_0x24be26});}async[_0x513b3b(0x297)](_0x3be51f){const _0x415fda=_0x513b3b;let _0x2c1868=0x0;const _0xde6fe3=await this['_localCacheService'][_0x415fda(0x263)](_0x3be51f);return _0xde6fe3&&(_0xde6fe3[_0x415fda(0x424)]||_0xde6fe3[_0x415fda(0x421)]['length']!==0x0)&&(_0x2c1868=_0xde6fe3[_0x415fda(0x20c)]),_0x2c1868===0x0&&this[_0x415fda(0x4e0)][_0x415fda(0x2bc)](_0x415fda(0x244),_0x415fda(0x395)),this[_0x415fda(0x396)][_0x415fda(0x474)](_0x3be51f,_0x2c1868);}async[_0x513b3b(0x475)](_0x1acfe0){const _0x41153a=_0x513b3b;let _0xcc6e48=0x0;const _0x990fb7=await this['_localCacheService'][_0x41153a(0x263)](_0x1acfe0);return _0x990fb7&&(_0x990fb7['awaitingChangeset']||_0x990fb7[_0x41153a(0x421)][_0x41153a(0x313)]!==0x0)&&(_0xcc6e48=_0x990fb7[_0x41153a(0x20c)]),_0xcc6e48===0x0&&this['_logService'][_0x41153a(0x2bc)]('[DataLoaderController]',_0x41153a(0x395)),this[_0x41153a(0x396)][_0x41153a(0x32a)](_0x1acfe0,_0xcc6e48);}};Je=Uo([ge(0x0,Zs),ge(0x1,_0x385fd2),ge(0x2,_0x8348c),ge(0x3,_0x53ed15(w)),ge(0x4,_0x53ed15(_0x536a79)),ge(0x5,_0x507395(_0x5a5e3a))],Je);var No=Object['defineProperty'],Mo=Object[_0x513b3b(0x1be)],Ao=(_0x3d88fc,_0xd7d8cb,_0x42c327,_0x376449)=>{const _0x2faf21=_0x513b3b;for(var _0x39f07e=_0x376449>0x1?void 0x0:_0x376449?Mo(_0xd7d8cb,_0x42c327):_0xd7d8cb,_0xa71860=_0x3d88fc[_0x2faf21(0x313)]-0x1,_0x12493c;_0xa71860>=0x0;_0xa71860--)(_0x12493c=_0x3d88fc[_0xa71860])&&(_0x39f07e=(_0x376449?_0x12493c(_0xd7d8cb,_0x42c327,_0x39f07e):_0x12493c(_0x39f07e))||_0x39f07e);return _0x376449&&_0x39f07e&&No(_0xd7d8cb,_0x42c327,_0x39f07e),_0x39f07e;},Ss=(_0x3c7be3,_0x1a9cb3)=>(_0x5ee298,_0x585c37)=>_0x1a9cb3(_0x5ee298,_0x585c37,_0x3c7be3);const Lo=_0x513b3b(0x2fe),$o=_0x513b3b(0x37f);let ze=class extends _0x5f406a{constructor(_0x4b5aff,_0x56af20){const _0xc992bc=_0x513b3b;super(),this[_0xc992bc(0x4c4)]=_0x4b5aff,this[_0xc992bc(0x2cf)]=_0x56af20,this[_0xc992bc(0x49c)]();}[_0x513b3b(0x49c)](){const _0x2052bc=_0x513b3b;this[_0x2052bc(0x233)](this['_univerInstanceService'][_0x2052bc(0x335)]['subscribe'](()=>{const _0x3bf587=_0x2052bc;var _0x45682f;const _0x41e101=this[_0x3bf587(0x4c4)]['getFocusedUnit']();let _0x27c7fe=(_0x45682f=this[_0x3bf587(0x2cf)][_0x3bf587(0x4a0)](Lo))!=null?_0x45682f:$o;_0x41e101 instanceof _0x15ef00&&(_0x27c7fe=_0x41e101[_0x3bf587(0x41d)]),document[_0x3bf587(0x1f9)]=_0x27c7fe;}));}};ze=Ao([Ss(0x0,_0x4c005a),Ss(0x1,_0x17c84c)],ze);var jo=Object[_0x513b3b(0x1a5)],Ho=Object[_0x513b3b(0x1be)],xo=(_0x5b52ae,_0x4fe2f3,_0x3ce7d8,_0x4f29a1)=>{const _0x22abf1=_0x513b3b;for(var _0x52f16a=_0x4f29a1>0x1?void 0x0:_0x4f29a1?Ho(_0x4fe2f3,_0x3ce7d8):_0x4fe2f3,_0x53a9e1=_0x5b52ae[_0x22abf1(0x313)]-0x1,_0x1d6ade;_0x53a9e1>=0x0;_0x53a9e1--)(_0x1d6ade=_0x5b52ae[_0x53a9e1])&&(_0x52f16a=(_0x4f29a1?_0x1d6ade(_0x4fe2f3,_0x3ce7d8,_0x52f16a):_0x1d6ade(_0x52f16a))||_0x52f16a);return _0x4f29a1&&_0x52f16a&&jo(_0x4fe2f3,_0x3ce7d8,_0x52f16a),_0x52f16a;},St=(_0xfbe1c6,_0x52217c)=>(_0x63800c,_0x355b72)=>_0x52217c(_0x63800c,_0x355b72,_0xfbe1c6);let Ze=class{constructor(_0x473aff,_0x4e766b,_0x3cc114){const _0x5f1142=_0x513b3b;this['_configService']=_0x473aff,this[_0x5f1142(0x37e)]=_0x4e766b,this[_0x5f1142(0x20a)]=_0x3cc114,this[_0x5f1142(0x145)]();}[_0x513b3b(0x145)](){const _0x2377a4=_0x513b3b;this['_httpService'][_0x2377a4(0x21e)]({'priority':0x1,'interceptor':(_0x36c31c,_0x366af5)=>_0x366af5(_0x36c31c)['pipe'](_0x40a3d7(async _0x280972=>{const _0x223210=_0x2377a4,_0x499007=_0x280972;if(_0x499007[_0x223210(0x3a7)]===0x191&&window[_0x223210(0x3c6)](this['localeService']['t'](_0x223210(0x274)))){const _0x579015=window['encodeURIComponent'](window['location'][_0x223210(0x429)]);window[_0x223210(0x3fd)][_0x223210(0x429)]=this['_getLoginPath']()+_0x223210(0x2fc)+_0x579015;}return _0x499007;}))});}[_0x513b3b(0x401)](){const _0x96a92a=_0x513b3b;var _0x29a766,_0x357c1c;const _0x5edb61=this['_configService'][_0x96a92a(0x4a0)](Ln),_0x442e97=this[_0x96a92a(0x2cf)][_0x96a92a(0x4a0)]($);return(_0x357c1c=(_0x29a766=_0x442e97==null?void 0x0:_0x442e97[_0x96a92a(0x2f6)])!=null?_0x29a766:_0x5edb61)!=null?_0x357c1c:$n;}};Ze=xo([St(0x0,_0x17c84c),St(0x1,_0x53ed15(_0x444e74)),St(0x2,_0x53ed15(_0x1deb41))],Ze);var ko=Object[_0x513b3b(0x1a5)],Bo=Object[_0x513b3b(0x1be)],Vo=(_0x420543,_0x43edad,_0x2de235,_0x3ea535)=>{for(var _0x1985c5=_0x3ea535>0x1?void 0x0:_0x3ea535?Bo(_0x43edad,_0x2de235):_0x43edad,_0x29cdce=_0x420543['length']-0x1,_0x4fb36c;_0x29cdce>=0x0;_0x29cdce--)(_0x4fb36c=_0x420543[_0x29cdce])&&(_0x1985c5=(_0x3ea535?_0x4fb36c(_0x43edad,_0x2de235,_0x1985c5):_0x4fb36c(_0x1985c5))||_0x1985c5);return _0x3ea535&&_0x1985c5&&ko(_0x43edad,_0x2de235,_0x1985c5),_0x1985c5;},ps=(_0x2194c4,_0x26d8ab)=>(_0x34d835,_0x1a725b)=>_0x26d8ab(_0x34d835,_0x1a725b,_0x2194c4);const Fo=_0x513b3b(0x3a5),Wo='/universer-api/authz';let yt=class extends _0x5f406a{constructor(_0x5a3df1,_0x4b2806){const _0x3585eb=_0x513b3b;super(),this['_HTTPService']=_0x5a3df1,this[_0x3585eb(0x2cf)]=_0x4b2806,this[_0x3585eb(0x4bf)]();}[_0x513b3b(0x4bf)](){const _0x45ff6a=_0x513b3b,_0xa3255f=this;this['disposeWithMe'](this['_HTTPService'][_0x45ff6a(0x21e)]({'priority':0x3e7,'interceptor':_0x23483c({'isMatch'(_0x10f18a){const _0x47bc45=_0x45ff6a;var _0x43a664;if(_0x10f18a[_0x47bc45(0x1ce)]==='POST'&&((_0x43a664=_0x10f18a[_0x47bc45(0x1cc)])!=null&&_0x43a664[_0x47bc45(0x45f)])){const {objectID:_0x19987d,objectType:_0x4fe0de}=_0x10f18a['requestParams']['body']||{};if(!_0x19987d||_0x4fe0de===void 0x0)return!0x1;const _0x2e58b6=_0xa3255f[_0x47bc45(0x1ee)]()+'/'+_0x4fe0de+_0x47bc45(0x4b8)+_0x19987d+_0x47bc45(0x31a);if(_0x10f18a['url']===_0x2e58b6)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1dcdec){const _0xec8707=_0x45ff6a;var _0x25fb47;return(_0x25fb47=_0x1dcdec[_0xec8707(0x1cc)])==null?void 0x0:_0x25fb47[_0xec8707(0x45f)];},'mergeParamsToRequest'(_0x24e01c,_0x16a13d){const _0x551e0e=_0x45ff6a,_0x17ec05=_0xa3255f[_0x551e0e(0x1ee)]()+_0x551e0e(0x2d7),_0x21ac13=_0x24e01c[_0x551e0e(0x2cc)]((_0x6eaaf4,_0x5ea929)=>{const _0xc607ab=_0x551e0e,{unitID:_0x724f8d,objectID:_0x470c9c,objectType:_0xd34eed,actions:_0x30fbed}=_0x5ea929;return _0x6eaaf4[_0x724f8d]||(_0x6eaaf4[_0x724f8d]={}),_0x6eaaf4[_0x724f8d][_0x470c9c]||(_0x6eaaf4[_0x724f8d][_0x470c9c]={'objectID':_0x470c9c,'objectType':_0xd34eed,'actions':[]}),_0x6eaaf4[_0x724f8d][_0x470c9c][_0xc607ab(0x458)][_0xc607ab(0x152)](..._0x30fbed),_0x6eaaf4;},{}),_0x286b2e=[];for(const _0x204223 in _0x21ac13)for(const _0x3656be in _0x21ac13[_0x204223]){const {actions:_0x1fb7fb,objectType:_0x102833}=_0x21ac13[_0x204223][_0x3656be],_0x3faa68=[...new Set(_0x1fb7fb)];_0x286b2e[_0x551e0e(0x152)]({'unitID':_0x204223,'objectID':_0x3656be,'objectType':_0x102833,'actions':_0x3faa68});}return new _0x367db5(_0x551e0e(0x1f0),_0x17ec05,{'headers':_0x16a13d[_0x551e0e(0x1f6)],'withCredentials':_0x16a13d[_0x551e0e(0x29d)],'responseType':_0x16a13d[_0x551e0e(0x26d)],'body':{'requests':_0x286b2e}});}},{'distributeResult'(_0x239e37,_0x564773){const _0x5ae65e=_0x45ff6a,{objectActions:_0x2d5296}=_0x239e37;return _0x564773[_0x5ae65e(0x15a)](_0x277733=>{const _0xc89c4=_0x5ae65e,{unitID:_0x413690,objectID:_0x2e715c,actions:_0xe5ff10}=_0x277733,_0x54b7dc=_0x2d5296[_0xc89c4(0x3ef)](_0x3f39e2=>_0x3f39e2[_0xc89c4(0x44f)]===_0x413690&&_0x3f39e2[_0xc89c4(0x1a6)]===_0x2e715c),_0x2767d0=_0xe5ff10[_0xc89c4(0x15a)](_0x3afbef=>_0x54b7dc==null?void 0x0:_0x54b7dc[_0xc89c4(0x458)][_0xc89c4(0x3ef)](_0x34cdea=>_0x34cdea[_0xc89c4(0x3f2)]===_0x3afbef))['filter'](_0x115b5e=>!!_0x115b5e);return{'config':_0x277733,'result':{'actions':_0x2767d0,'error':_0x239e37[_0xc89c4(0x25c)]}};});}})}));}[_0x513b3b(0x1ee)](){const _0x4ea899=_0x513b3b;var _0x563101,_0x24fb21;const _0x54191a=this[_0x4ea899(0x2cf)][_0x4ea899(0x4a0)](Fo),_0x4634ec=this[_0x4ea899(0x2cf)][_0x4ea899(0x4a0)]($);return(_0x24fb21=(_0x563101=_0x4634ec==null?void 0x0:_0x4634ec['authzUrl'])!=null?_0x563101:_0x54191a)!=null?_0x24fb21:Wo;}async[_0x513b3b(0x32c)](_0x3a36c9){const _0x350d1b=_0x513b3b,_0x4f740d=this[_0x350d1b(0x1ee)]()+'/'+_0x3a36c9[_0x350d1b(0x4cc)]+_0x350d1b(0x221);return(await this[_0x350d1b(0x2f5)][_0x350d1b(0x34e)](_0x4f740d,{'body':_0x3a36c9}))[_0x350d1b(0x45f)]['objectID']||'';}async['list'](_0x57cadf){const _0x5f3440=_0x513b3b,_0x3857d5=this[_0x5f3440(0x1ee)]()+_0x5f3440(0x357);return(await this[_0x5f3440(0x2f5)][_0x5f3440(0x34e)](_0x3857d5,{'body':_0x57cadf}))[_0x5f3440(0x45f)][_0x5f3440(0x3b0)];}async[_0x513b3b(0x4b9)](_0x28478d){const _0x3dec56=_0x513b3b,_0x5c4931=this['_getAPIPrefixPath']()+'/'+_0x28478d[_0x3dec56(0x4cc)]+_0x3dec56(0x4b8)+_0x28478d[_0x3dec56(0x1a6)];await this[_0x3dec56(0x2f5)][_0x3dec56(0x29c)](_0x5c4931,{'body':_0x28478d});}async[_0x513b3b(0x1fb)](_0x34f90a){const _0x41c472=_0x513b3b,_0x4e99c5=this['_getAPIPrefixPath']()+'/'+_0x34f90a[_0x41c472(0x4cc)]+_0x41c472(0x4b8)+_0x34f90a[_0x41c472(0x1a6)]+_0x41c472(0x31a);return(await this[_0x41c472(0x2f5)][_0x41c472(0x34e)](_0x4e99c5,{'body':_0x34f90a}))['body'][_0x41c472(0x458)];}async[_0x513b3b(0x3cd)](_0x44f601){const _0x391917=_0x513b3b,_0x2ba8ec=this[_0x391917(0x1ee)]()+_0x391917(0x2d7);return(await this['_HTTPService'][_0x391917(0x34e)](_0x2ba8ec,{'body':{'requests':_0x44f601}}))[_0x391917(0x45f)][_0x391917(0x390)];}async['listRoles'](_0x462f1e){const _0x44b292=_0x513b3b,_0x3a636c=this['_getAPIPrefixPath']()+'/'+_0x462f1e['objectType']+_0x44b292(0x1d0),_0x3a292c=await this[_0x44b292(0x2f5)][_0x44b292(0x34e)](_0x3a636c,{'body':_0x462f1e});return{'roles':_0x3a292c['body'][_0x44b292(0x2ba)],'actions':_0x3a292c[_0x44b292(0x45f)]['actions']};}async[_0x513b3b(0x27b)](_0x50b9bb){const _0x2eb590=_0x513b3b,_0x5ce5a6=this[_0x2eb590(0x1ee)]()+'/collaborator';await this[_0x2eb590(0x2f5)][_0x2eb590(0x248)](_0x5ce5a6,{'params':{'collaboratorID':_0x50b9bb['collaboratorID'],'objectID':_0x50b9bb[_0x2eb590(0x1a6)],'unitID':_0x50b9bb[_0x2eb590(0x44f)]}});}async[_0x513b3b(0x39d)](_0x3ae125){const _0x2bef15=_0x513b3b,_0x1608a8=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x2bef15(0x2f5)][_0x2bef15(0x376)](_0x1608a8,{'body':_0x3ae125});}async[_0x513b3b(0x471)](_0x3133f5){const _0x30923e=_0x513b3b,_0x1871bd=this[_0x30923e(0x1ee)]()+_0x30923e(0x397);await this[_0x30923e(0x2f5)][_0x30923e(0x34e)](_0x1871bd,{'body':_0x3133f5});}async[_0x513b3b(0x2ec)](_0x57fb2b){const _0x32f1da=_0x513b3b,_0x449c7a=this['_getAPIPrefixPath']()+'/collaborator';return(await this['_HTTPService'][_0x32f1da(0x49f)](_0x449c7a,{'params':{'objectID':_0x57fb2b[_0x32f1da(0x1a6)],'unitID':_0x57fb2b[_0x32f1da(0x44f)]}}))['body']['collaborators'];}async[_0x513b3b(0x21d)](_0x2118e8){const _0x983c6f=_0x513b3b,_0x371485=this[_0x983c6f(0x1ee)]()+_0x983c6f(0x397);await this['_HTTPService'][_0x983c6f(0x29c)](_0x371485,{'body':_0x2118e8});}};yt=Vo([ps(0x0,_0x53ed15(_0x444e74)),ps(0x1,_0x53ed15(_0x17c84c))],yt);var Go=Object[_0x513b3b(0x1a5)],Yo=Object['getOwnPropertyDescriptor'],Ko=(_0x5b26a4,_0x8669c2,_0x24304b,_0x36418e)=>{const _0x406517=_0x513b3b;for(var _0x42fb2e=_0x36418e>0x1?void 0x0:_0x36418e?Yo(_0x8669c2,_0x24304b):_0x8669c2,_0x2b033f=_0x5b26a4[_0x406517(0x313)]-0x1,_0x25cead;_0x2b033f>=0x0;_0x2b033f--)(_0x25cead=_0x5b26a4[_0x2b033f])&&(_0x42fb2e=(_0x36418e?_0x25cead(_0x8669c2,_0x24304b,_0x42fb2e):_0x25cead(_0x42fb2e))||_0x42fb2e);return _0x36418e&&_0x42fb2e&&Go(_0x8669c2,_0x24304b,_0x42fb2e),_0x42fb2e;},Xo=(_0x2fda87,_0x53d536)=>(_0x430344,_0x4ee7ee)=>_0x53d536(_0x430344,_0x4ee7ee,_0x2fda87);let Qe=class{constructor(_0x4dddd3){const _0x3a1f7c=_0x513b3b;this[_0x3a1f7c(0x37e)]=_0x4dddd3,this[_0x3a1f7c(0x150)]();}[_0x513b3b(0x150)](){const _0x278729=_0x513b3b;this[_0x278729(0x37e)]['registerHTTPInterceptor']({'interceptor':(_0x121b78,_0x3f71d4)=>{const _0x4c4948=_0x278729,_0x409b18=_0x121b78['headers'],_0xa363ed=_0x5841f9();return _0xa363ed&&_0x409b18[_0x4c4948(0x3ca)](_0x4c4948(0x245),_0xa363ed),_0x3f71d4(_0x121b78);}});}};Qe=Ko([Xo(0x0,_0x53ed15(_0x444e74))],Qe);var qo=Object[_0x513b3b(0x1a5)],Jo=Object[_0x513b3b(0x1be)],zo=(_0x410a49,_0x5dcddb,_0x1c2662,_0x25b44f)=>{const _0xaa8bea=_0x513b3b;for(var _0x5f33d3=_0x25b44f>0x1?void 0x0:_0x25b44f?Jo(_0x5dcddb,_0x1c2662):_0x5dcddb,_0xa9d2aa=_0x410a49[_0xaa8bea(0x313)]-0x1,_0x40d19a;_0xa9d2aa>=0x0;_0xa9d2aa--)(_0x40d19a=_0x410a49[_0xa9d2aa])&&(_0x5f33d3=(_0x25b44f?_0x40d19a(_0x5dcddb,_0x1c2662,_0x5f33d3):_0x40d19a(_0x5f33d3))||_0x5f33d3);return _0x25b44f&&_0x5f33d3&&qo(_0x5dcddb,_0x1c2662,_0x5f33d3),_0x5f33d3;},pt=(_0xf2cf29,_0x1b8722)=>(_0x1f5d71,_0x442f6a)=>_0x1b8722(_0x1f5d71,_0x442f6a,_0xf2cf29);const Zo=[_0x513b3b(0x1a9),_0x513b3b(0x1f5),_0x513b3b(0x469),_0x513b3b(0x3a2),_0x513b3b(0x25a)],Qo=0x5*0x400*0x400,ea=_0x513b3b(0x4b3),ta='/universer-api/stream/file/upload',sa=_0x513b3b(0x3f6),ia=_0x513b3b(0x3aa);let Ut=class{constructor(_0x399864,_0x1f868e,_0x4f2aa0){const _0x28a8f2=_0x513b3b;l(this,_0x28a8f2(0x18e),0x0),l(this,_0x28a8f2(0x383),new _0x210aee()),l(this,_0x28a8f2(0x4cf),this['_change$']),l(this,_0x28a8f2(0x4ad),new Map()),(this[_0x28a8f2(0x37e)]=_0x399864,this[_0x28a8f2(0x2cf)]=_0x1f868e,this[_0x28a8f2(0x4c4)]=_0x4f2aa0);}[_0x513b3b(0x1d6)](_0x136ece){const _0x266285=_0x513b3b;this[_0x266285(0x18e)]=_0x136ece,this[_0x266285(0x383)][_0x266285(0x48d)](_0x136ece);}[_0x513b3b(0x14a)](_0x81c8f0,_0x47913e){const _0x4d6cb3=_0x513b3b;if(_0x47913e===_0x361782[_0x4d6cb3(0x444)]){const _0x4ffa40=new Image();return _0x4ffa40[_0x4d6cb3(0x37b)]=_0x81c8f0,_0x4ffa40;}return this['_imageSourceCache']['get'](_0x81c8f0);}[_0x513b3b(0x2f4)](_0x3d744f,_0x4ad04f,_0x5f196e){const _0x295f36=_0x513b3b;_0x4ad04f===_0x361782[_0x295f36(0x444)]||_0x5f196e==null||this[_0x295f36(0x4ad)][_0x295f36(0x3ca)](_0x3d744f,_0x5f196e);}async[_0x513b3b(0x3d4)](_0x588085){const _0xc14261=_0x513b3b;try{const _0x9d1bdf=this[_0xc14261(0x38c)](this[_0xc14261(0x1e7)](),''+_0x588085),_0x4d364e=(await this[_0xc14261(0x37e)]['get'](_0x9d1bdf))[_0xc14261(0x45f)];if(_0x4d364e[_0xc14261(0x25c)]&&_0x4d364e['error'][_0xc14261(0x1bc)]===xs['OK']){const _0x370545=new URL(_0x4d364e[_0xc14261(0x1ef)],this[_0xc14261(0x434)]())[_0xc14261(0x40b)]();return Promise[_0xc14261(0x166)](_0x370545);}return Promise[_0xc14261(0x255)](_0x4d364e[_0xc14261(0x25c)]);}catch(_0x24f4a8){return Promise[_0xc14261(0x255)](_0x24f4a8);}}async[_0x513b3b(0x316)](_0x2c2b53){const _0x1082ce=_0x513b3b;let _0x1c68ce='';if(!Zo[_0x1082ce(0x32f)](_0x2c2b53[_0x1082ce(0x30b)]))return this[_0x1082ce(0x1ff)](),Promise[_0x1082ce(0x255)](new Error(_0x4458b5['ERROR_IMAGE_TYPE']));if(_0x2c2b53[_0x1082ce(0x302)]>Qo)return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x4458b5[_0x1082ce(0x392)]));try{const _0x270f78=new FormData();_0x270f78[_0x1082ce(0x484)](_0x1082ce(0x1ba),_0x2c2b53);const _0x1bec2d=this[_0x1082ce(0x4c4)][_0x1082ce(0x450)](),_0x3612ee=_0x1bec2d==null?void 0x0:_0x1bec2d[_0x1082ce(0x389)]();if(!_0x3612ee)throw new Error(_0x1082ce(0x427));const _0x2575be=this[_0x1082ce(0x3f3)]()+'?size='+_0x2c2b53[_0x1082ce(0x302)][_0x1082ce(0x40b)]()+_0x1082ce(0x1c7)+ks[_0x1082ce(0x1c3)]+'&assign='+encodeURIComponent(_0x3612ee),_0x1559d2=await(await fetch(_0x2575be,{'method':_0x1082ce(0x1f0),'body':_0x270f78}))[_0x1082ce(0x49d)]();if(typeof _0x1559d2['FileId']!=_0x1082ce(0x490))return this[_0x1082ce(0x1ff)](),Promise['reject'](new Error(_0x4458b5[_0x1082ce(0x16b)]));_0x1c68ce=_0x1559d2[_0x1082ce(0x460)];}catch{return this[_0x1082ce(0x1ff)](),Promise[_0x1082ce(0x255)](new Error(_0x4458b5['ERROR_IMAGE']));}return new Promise((_0x3d07a4,_0x2231a8)=>{const _0x9d758a=_0x1082ce,_0x3a65c0=new FileReader();_0x3a65c0['readAsDataURL'](_0x2c2b53),_0x3a65c0[_0x9d758a(0x488)]=_0x23d6b5=>{const _0x107ed4=_0x9d758a;var _0x6719ed;const _0x3937eb=(_0x6719ed=_0x23d6b5[_0x107ed4(0x4c1)])==null?void 0x0:_0x6719ed[_0x107ed4(0x34a)];if(_0x3937eb==null){this[_0x107ed4(0x1ff)](),_0x2231a8(new Error(_0x4458b5[_0x107ed4(0x16b)]));return;}const _0x5ae809=_0x31cbda[_0x107ed4(0x22e)](0x6);_0x3d07a4({'imageId':_0x5ae809,'imageSourceType':_0x361782[_0x107ed4(0x26c)],'source':_0x1c68ce,'base64Cache':_0x3937eb,'status':_0x4458b5[_0x107ed4(0x220)]}),this['_decreaseWaiting']();};});}[_0x513b3b(0x3f3)](){const _0x57e810=_0x513b3b;var _0x301243,_0x253076;const _0x14a2cb=this[_0x57e810(0x2cf)][_0x57e810(0x4a0)](ea),_0x4c7c64=this['_configService'][_0x57e810(0x4a0)]($);return(_0x253076=(_0x301243=_0x4c7c64==null?void 0x0:_0x4c7c64[_0x57e810(0x495)])!=null?_0x301243:_0x14a2cb)!=null?_0x253076:ta;}[_0x513b3b(0x1e7)](){const _0x5bc287=_0x513b3b;var _0x3acc32,_0x19928b;const _0x3e8eca=this['_configService'][_0x5bc287(0x4a0)](sa),_0x5f09d6=this[_0x5bc287(0x2cf)]['getConfig']($);return(_0x19928b=(_0x3acc32=_0x5f09d6==null?void 0x0:_0x5f09d6[_0x5bc287(0x207)])!=null?_0x3acc32:_0x3e8eca)!=null?_0x19928b:ia;}[_0x513b3b(0x434)](){const _0xc89bed=_0x513b3b;var _0x2ba6fa;const _0x59b896=this[_0xc89bed(0x2cf)][_0xc89bed(0x4a0)]($);return(_0x2ba6fa=_0x59b896==null?void 0x0:_0x59b896[_0xc89bed(0x479)])!=null?_0x2ba6fa:location[_0xc89bed(0x295)];}[_0x513b3b(0x38c)](_0x614712,_0x51cd08){const _0x2acdfb=_0x513b3b;return _0x614712[_0x2acdfb(0x22c)](_0x2acdfb(0x3be),_0x51cd08);}[_0x513b3b(0x1ff)](){const _0x5766e1=_0x513b3b;this[_0x5766e1(0x18e)]-=0x1,this['_change$']['next'](this[_0x5766e1(0x18e)]);}};Ut=zo([pt(0x0,_0x53ed15(_0x444e74)),pt(0x1,_0x17c84c),pt(0x2,_0x53ed15(_0x4c005a))],Ut);var na=Object[_0x513b3b(0x1a5)],ra=Object[_0x513b3b(0x1be)],oa=(_0x478f8f,_0x565c98,_0x40a617,_0x232f52)=>{for(var _0xb1a7a9=_0x232f52>0x1?void 0x0:_0x232f52?ra(_0x565c98,_0x40a617):_0x565c98,_0x2f08b0=_0x478f8f['length']-0x1,_0x29b1f4;_0x2f08b0>=0x0;_0x2f08b0--)(_0x29b1f4=_0x478f8f[_0x2f08b0])&&(_0xb1a7a9=(_0x232f52?_0x29b1f4(_0x565c98,_0x40a617,_0xb1a7a9):_0x29b1f4(_0xb1a7a9))||_0xb1a7a9);return _0x232f52&&_0xb1a7a9&&na(_0x565c98,_0x40a617,_0xb1a7a9),_0xb1a7a9;},ye=(_0x454b6d,_0x351d18)=>(_0x55a72a,_0x2c4906)=>_0x351d18(_0x55a72a,_0x2c4906,_0x454b6d);let et=class extends _0x346899{constructor(_0x3456e3,_0x54af13,_0x1da187,_0x1ca1a4,_0x2c8b5d){const _0x4eccd1=_0x513b3b;super(),this[_0x4eccd1(0x31e)]=_0x3456e3,this[_0x4eccd1(0x4c4)]=_0x54af13,this[_0x4eccd1(0x419)]=_0x1da187,this['_collaborationSessionService']=_0x1ca1a4,this[_0x4eccd1(0x28c)]=_0x2c8b5d,this['_initUnitPermissionChange'](),this[_0x4eccd1(0x35d)]();}['_initCloseConn'](){const _0x3b02a8=_0x513b3b,_0x44f546=async _0x2f8303=>{const _0x26be3a=_0x1736;(await this[_0x26be3a(0x27e)]['requireSession'](_0x2f8303))[_0x26be3a(0x47b)]['pipe'](_0x5bfb9e(_0x2cd79c=>_0x2cd79c[_0x26be3a(0x2db)]===_0x46c90b[_0x26be3a(0x4df)]),_0x453931(this[_0x26be3a(0x2d2)]))[_0x26be3a(0x465)](_0x34aad4=>{const _0x245b63=_0x26be3a,_0x2af495=_0x34aad4,{reason:_0x32fde0}=_0x2af495[_0x245b63(0x14f)];this[_0x245b63(0x31e)][_0x245b63(0x49f)](_0x4608dc)['show']({'type':_0x1f1b3b[_0x245b63(0x1ea)],'content':this[_0x245b63(0x28c)]['t']('collaboration.closeRoom')+'('+_0x32fde0+')'}),this['_permissionService'][_0x245b63(0x2ac)](new _0x40e1c4(_0x2f8303)['id'],!0x1),this['_collaborationSessionService'][_0x245b63(0x36d)](_0x2f8303);});};_0x2f0d88(this[_0x3b02a8(0x4c4)][_0x3b02a8(0x290)](_0x743738['UNIVER_SHEET']),this[_0x3b02a8(0x4c4)][_0x3b02a8(0x290)](_0x743738[_0x3b02a8(0x1a4)]))[_0x3b02a8(0x33b)](_0x50a0b8(_0x1fc3e6=>_0x1fc3e6[_0x3b02a8(0x389)]()),_0x5bfb9e(_0x2870bb=>!_0x6693b5(_0x2870bb)),_0x453931(this[_0x3b02a8(0x2d2)]))['subscribe'](_0x4221e3=>{_0x44f546(_0x4221e3);});}['_initUnitPermissionChange'](){const _0x9b42c8=_0x513b3b,_0x111304=async _0x4cc45b=>{const _0x2ba2e6=_0x1736;(await this['_collaborationSessionService'][_0x2ba2e6(0x23e)](_0x4cc45b))['event$'][_0x2ba2e6(0x33b)](_0x5bfb9e(_0x44bbeb=>_0x44bbeb['eventID']===_0x46c90b[_0x2ba2e6(0x2f3)]),_0x453931(this[_0x2ba2e6(0x2d2)]))[_0x2ba2e6(0x465)](_0x189955=>{const _0x6362df=_0x2ba2e6,_0x49e25a=_0x189955,{objectId:_0x588ad7}=_0x49e25a[_0x6362df(0x14f)],_0x29c4d0=this[_0x6362df(0x31e)][_0x6362df(0x49f)](_0x48dac1);_0x588ad7===_0x4cc45b?_0x29c4d0[_0x6362df(0x4d0)](_0x4cc45b):_0x29c4d0[_0x6362df(0x187)](_0x4cc45b,_0x588ad7);});};_0x2f0d88(this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x743738[_0x9b42c8(0x3b6)]),this[_0x9b42c8(0x4c4)][_0x9b42c8(0x290)](_0x743738['UNIVER_DOC']))[_0x9b42c8(0x33b)](_0x50a0b8(_0x43d443=>_0x43d443[_0x9b42c8(0x389)]()),_0x5bfb9e(_0x151079=>!_0x6693b5(_0x151079)),_0x453931(this[_0x9b42c8(0x2d2)]))[_0x9b42c8(0x465)](_0x31ebf6=>{_0x111304(_0x31ebf6);});}};et=oa([ye(0x0,_0x53ed15(_0x3165b6)),ye(0x1,_0x4c005a),ye(0x2,_0x5f5b14),ye(0x3,_0x53ed15(he)),ye(0x4,_0x53ed15(_0x1deb41))],et);var aa=Object[_0x513b3b(0x1a5)],ca=Object[_0x513b3b(0x1be)],ha=(_0x228f17,_0x4e20d6,_0x3bc3e1,_0x9a64ee)=>{for(var _0x38ad32=_0x9a64ee>0x1?void 0x0:_0x9a64ee?ca(_0x4e20d6,_0x3bc3e1):_0x4e20d6,_0xbedb35=_0x228f17['length']-0x1,_0x28dfe2;_0xbedb35>=0x0;_0xbedb35--)(_0x28dfe2=_0x228f17[_0xbedb35])&&(_0x38ad32=(_0x9a64ee?_0x28dfe2(_0x4e20d6,_0x3bc3e1,_0x38ad32):_0x28dfe2(_0x38ad32))||_0x38ad32);return _0x9a64ee&&_0x38ad32&&aa(_0x4e20d6,_0x3bc3e1,_0x38ad32),_0x38ad32;},vs=(_0x3db671,_0x1adf6e)=>(_0x377b93,_0x3fd3c1)=>_0x1adf6e(_0x377b93,_0x3fd3c1,_0x3db671);let Nt=class{constructor(_0x2170bc,_0xbd6e92){const _0x3c088e=_0x513b3b;this[_0x3c088e(0x2cf)]=_0x2170bc,this[_0x3c088e(0x37e)]=_0xbd6e92;}async[_0x513b3b(0x3e6)](_0x5b530a,_0x1ab101){const _0x2e403e=_0x513b3b;var _0x478f84;const {unitID:_0x169f16,type:_0x32be25,revision:_0x1ccb67=0x0}=_0x1ab101,_0x2b8ee7=this[_0x2e403e(0x14e)]()+'/'+_0x32be25+_0x2e403e(0x20f)+_0x169f16+_0x2e403e(0x1a1)+_0x1ccb67,_0x3c8d73=(await this[_0x2e403e(0x37e)][_0x2e403e(0x49f)](_0x2b8ee7))['body'],_0x97ea94=(_0x478f84=_0x3c8d73[_0x2e403e(0x190)])==null?void 0x0:_0x478f84[_0x2e403e(0x227)];if(_0x97ea94){const _0x71f444=_0x97ea94==null?void 0x0:_0x97ea94[_0x2e403e(0x430)],_0x333554=_0x4e9464[_0x2e403e(0x293)](_0x54fe81(_0x71f444));_0x97ea94[_0x2e403e(0x430)]=_0x333554,Object[_0x2e403e(0x16e)](_0x97ea94[_0x2e403e(0x414)])['forEach'](([,_0x5a6c91])=>{const _0x5b55b7=_0x2e403e,_0x44c3ab=_0x5a6c91[_0x5b55b7(0x430)],_0x1bdd7d=_0x4e9464[_0x5b55b7(0x293)](_0x54fe81(_0x44c3ab));_0x5a6c91[_0x5b55b7(0x430)]=_0x1bdd7d;});}return _0x3c8d73;}async[_0x513b3b(0x340)](_0x3b08e4,_0x36cb4f){const _0x587183=_0x513b3b,{unitID:_0x1dfa4f,type:_0x475bd1,blockID:_0x2f465d}=_0x36cb4f,_0x19fdc7=this[_0x587183(0x494)]()+'/'+_0x475bd1+'/unit/'+_0x1dfa4f+_0x587183(0x229)+_0x2f465d;return(await this[_0x587183(0x37e)]['get'](_0x19fdc7))['body'];}async['getDeserializedSheetBlock'](_0x53e600,_0x2eec71){const _0x4e2878=_0x513b3b,{unitID:_0x265efc,type:_0x3395eb,blockID:_0x38d8c4}=_0x2eec71,_0x48bca3=this[_0x4e2878(0x494)]()+'/block/'+_0x3395eb+_0x4e2878(0x20f)+_0x265efc+_0x4e2878(0x229)+_0x38d8c4;return(await this['_httpService'][_0x4e2878(0x49f)](_0x48bca3))['body'];}async['fetchMissingChangesets'](_0x59701c,_0x4b44a2){const _0x32e621=_0x513b3b,{unitID:_0x163206,type:_0x2487db,from:_0x2a4f5d,to:_0x5edea0}=_0x4b44a2,_0x47198a=this['_getAPIPrefix']()+'/'+_0x2487db+'/unit/'+_0x163206+_0x32e621(0x437)+_0x2a4f5d+_0x32e621(0x232)+_0x5edea0;return(await this[_0x32e621(0x37e)][_0x32e621(0x49f)](_0x47198a))[_0x32e621(0x45f)];}[_0x513b3b(0x14e)](){const _0x174ca2=_0x513b3b;var _0x4e91a6;return(_0x4e91a6=this[_0x174ca2(0x2cf)][_0x174ca2(0x4a0)](Cn))!=null?_0x4e91a6:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0xd90102=_0x513b3b;var _0x4d6496,_0x15835f;const _0x242f8e=this[_0xd90102(0x2cf)]['getConfig'](In),_0x16ead0=this['_configService']['getConfig']($);return(_0x15835f=(_0x4d6496=_0x16ead0==null?void 0x0:_0x16ead0[_0xd90102(0x1c9)])!=null?_0x4d6496:_0x242f8e)!=null?_0x15835f:En;}async[_0x513b3b(0x38f)](_0x2aeeef,_0x111a05){const _0x77d39e=_0x513b3b,_0x1911a1=_0x77d39e(0x3bd)+_0x111a05[_0x77d39e(0x30b)]+'/unit/'+_0x111a05[_0x77d39e(0x44f)]+_0x77d39e(0x4a1);return(await this['_httpService'][_0x77d39e(0x49f)](_0x1911a1,{'params':{'resourceId':JSON[_0x77d39e(0x42b)](_0x111a05['resourceIDs'])}}))['body'];}['saveSnapshot'](){const _0x248059=_0x513b3b;throw new Error(_0x248059(0x16c));}['saveSheetBlock'](){const _0x16875a=_0x513b3b;throw new Error(_0x16875a(0x16c));}[_0x513b3b(0x3f7)](){const _0x126a3d=_0x513b3b;throw new Error(_0x126a3d(0x16c));}['copyFileMeta'](){const _0x1c9232=_0x513b3b;throw new Error(_0x1c9232(0x16c));}[_0x513b3b(0x181)](){const _0x23fb05=_0x513b3b;throw new Error(_0x23fb05(0x16c));}};Nt=ha([vs(0x0,_0x17c84c),vs(0x1,_0x53ed15(_0x444e74))],Nt);var la=Object[_0x513b3b(0x1a5)],_a=Object[_0x513b3b(0x1be)],ua=(_0x1209ea,_0x31830f,_0x14b4b0,_0x2491f3)=>{const _0x40c80d=_0x513b3b;for(var _0x9e7170=_0x2491f3>0x1?void 0x0:_0x2491f3?_a(_0x31830f,_0x14b4b0):_0x31830f,_0x1ca754=_0x1209ea[_0x40c80d(0x313)]-0x1,_0x52418d;_0x1ca754>=0x0;_0x1ca754--)(_0x52418d=_0x1209ea[_0x1ca754])&&(_0x9e7170=(_0x2491f3?_0x52418d(_0x31830f,_0x14b4b0,_0x9e7170):_0x52418d(_0x9e7170))||_0x9e7170);return _0x2491f3&&_0x9e7170&&la(_0x31830f,_0x14b4b0,_0x9e7170),_0x9e7170;},Ue=(_0x24d5bb,_0x46aa3c)=>(_0x5ac91a,_0x4a336a)=>_0x46aa3c(_0x5ac91a,_0x4a336a,_0x24d5bb);let Mt=class extends _0x57dce3{constructor(_0x38d0da,_0x9f0b87,_0x440889,_0x1d321c,_0x2e3d83){const _0x5e91b1=_0x513b3b;super(_0x38d0da,_0x9f0b87,_0x440889),this[_0x5e91b1(0x283)]=_0x1d321c,this['_logService']=_0x2e3d83;}['transformUndoRedo'](_0x3baf8d,_0x5679fb){const _0x543f1e=_0x513b3b,_0x1064e4=this[_0x543f1e(0x29b)](_0x3baf8d);if(_0x1064e4)try{const _0x42377b=this[_0x543f1e(0x32e)](_0x1064e4,_0x5679fb);this[_0x543f1e(0x431)](_0x3baf8d,_0x42377b);}catch(_0x191bde){this['_logService'][_0x543f1e(0x25c)]('[CollaborationUndoRedoService]',_0x191bde),this[_0x543f1e(0x184)](_0x3baf8d);}const _0x1190ab=this[_0x543f1e(0x19b)](_0x3baf8d);if(_0x1190ab)try{const _0x46fced=this[_0x543f1e(0x32e)](_0x1190ab,_0x5679fb);this[_0x543f1e(0x2af)](_0x3baf8d,_0x46fced);}catch(_0x1aa8c5){this[_0x543f1e(0x4e0)][_0x543f1e(0x25c)](_0x1aa8c5),this[_0x543f1e(0x2c0)](_0x3baf8d);}}[_0x513b3b(0x184)](_0x2444a0){const _0x39bf05=_0x513b3b,_0x4ad634=this[_0x39bf05(0x29b)](_0x2444a0);_0x4ad634&&(_0x4ad634[_0x39bf05(0x313)]=0x0,this[_0x39bf05(0x2df)]());}['_clearRedo'](_0x496bb9){const _0x128bd6=_0x513b3b,_0x5b100c=this['_getRedoStack'](_0x496bb9);_0x5b100c&&(_0x5b100c['length']=0x0,this[_0x128bd6(0x2df)]());}[_0x513b3b(0x431)](_0x2c760e,_0x4608c6){const _0x2bb561=_0x513b3b;this['_undoStacks'][_0x2bb561(0x3ca)](_0x2c760e,_0x4608c6),this[_0x2bb561(0x2df)]();}['_substituteRedoStack'](_0x57c48e,_0x3e39a1){const _0x27fe15=_0x513b3b;this[_0x27fe15(0x489)][_0x27fe15(0x3ca)](_0x57c48e,_0x3e39a1),this['_updateStatus']();}['_transformStack'](_0x4f0024,_0x3642c5){const _0x2c3a7e=_0x513b3b,_0x753102=[];let _0x5bfb06=_0x3642c5,_0x56e988=_0x3642c5;for(let _0xc88313=_0x4f0024[_0x2c3a7e(0x313)]-0x1;_0xc88313>=0x0;_0xc88313--){const {unitID:_0x3d28a3,undoMutations:_0x56973a,redoMutations:_0xa82fdf}=_0x4f0024[_0xc88313],_0x1b2553=this[_0x2c3a7e(0x283)][_0x2c3a7e(0x398)](_0x5bfb06,_0x56973a),_0x4a802f=this[_0x2c3a7e(0x283)][_0x2c3a7e(0x398)](_0x56e988,_0xa82fdf);if(_0x578d17(_0x1b2553)||_0x578d17(_0x4a802f)){this[_0x2c3a7e(0x4e0)][_0x2c3a7e(0x25c)](_0x2c3a7e(0x24b),_0x2c3a7e(0x385),_0x1b2553,_0x4a802f);break;}_0x5bfb06=_0x1b2553['c1Prime'],_0x56e988=_0x4a802f[_0x2c3a7e(0x2e0)],_0x753102[_0x2c3a7e(0x152)]({'unitID':_0x3d28a3,'undoMutations':_0x1b2553['m2Prime'],'redoMutations':_0x4a802f[_0x2c3a7e(0x2b9)]});}return _0x753102[_0x2c3a7e(0x2d6)]();}};Mt=ua([Ue(0x0,_0x4c005a),Ue(0x1,_0x8348c),Ue(0x2,_0x4af0dd),Ue(0x3,_0x2e5ae8),Ue(0x4,_0x385fd2)],Mt);class da extends _0x346899{constructor(){const _0x2fbeac=_0x513b3b;super(),l(this,_0x2fbeac(0x42f)),this[_0x2fbeac(0x42f)]=_0x2832fb(window,_0x2fbeac(0x382))[_0x2fbeac(0x33b)](_0x3bacfd(this['dispose$']),_0x1fbf92(0x1),_0x2f02b3(void 0x0));}[_0x513b3b(0x1b9)](_0x1f8694,_0x2746cc,_0x28d5db=!0x1){const _0x5c14bd=_0x513b3b,_0x58f7da=new URL(window['location'][_0x5c14bd(0x429)]);_0x58f7da[_0x5c14bd(0x1ed)]['set'](_0x1f8694,_0x2746cc),_0x28d5db?window[_0x5c14bd(0x16a)][_0x5c14bd(0x279)]('','',_0x58f7da[_0x5c14bd(0x40b)]()):window[_0x5c14bd(0x16a)][_0x5c14bd(0x1d8)]('','',_0x58f7da[_0x5c14bd(0x40b)]());}[_0x513b3b(0x3c2)](_0x51fc29,_0x5f54b9=!0x1){const _0x533295=_0x513b3b,_0x205318=new URL(window[_0x533295(0x3fd)][_0x533295(0x429)]);_0x205318[_0x533295(0x1ed)][_0x533295(0x248)](_0x51fc29),_0x5f54b9?window['history'][_0x533295(0x279)]('','',_0x205318[_0x533295(0x40b)]()):window[_0x533295(0x16a)]['pushState']('','',_0x205318[_0x533295(0x40b)]());}['getParam'](_0x3d4998){const _0x1aad92=_0x513b3b;var _0x2ecad3;return(_0x2ecad3=new URL(window[_0x1aad92(0x3fd)][_0x1aad92(0x429)])[_0x1aad92(0x1ed)][_0x1aad92(0x49f)](_0x3d4998))!=null?_0x2ecad3:void 0x0;}}var Qs=Object[_0x513b3b(0x1a5)],ma=Object[_0x513b3b(0x1be)],fa=(_0x3da3be,_0x460383,_0x1ce3ef)=>_0x460383 in _0x3da3be?Qs(_0x3da3be,_0x460383,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ce3ef}):_0x3da3be[_0x460383]=_0x1ce3ef,ga=(_0x155aca,_0x83935f,_0x55f0db,_0x5f5881)=>{const _0x29048b=_0x513b3b;for(var _0x5afd73=_0x5f5881>0x1?void 0x0:_0x5f5881?ma(_0x83935f,_0x55f0db):_0x83935f,_0x261630=_0x155aca[_0x29048b(0x313)]-0x1,_0x293c6b;_0x261630>=0x0;_0x261630--)(_0x293c6b=_0x155aca[_0x261630])&&(_0x5afd73=(_0x5f5881?_0x293c6b(_0x83935f,_0x55f0db,_0x5afd73):_0x293c6b(_0x5afd73))||_0x5afd73);return _0x5f5881&&_0x5afd73&&Qs(_0x83935f,_0x55f0db,_0x5afd73),_0x5afd73;},Ve=(_0x5ba09e,_0x29f51b)=>(_0x30fedd,_0xa96f0b)=>_0x29f51b(_0x30fedd,_0xa96f0b,_0x5ba09e),Sa=(_0x251edf,_0x41a824,_0x4f9793)=>fa(_0x251edf,_0x41a824+'',_0x4f9793);const pa=_0x513b3b(0x18f);let At=class extends _0x2c2bef{constructor(_0x1badd4=jn,_0x4bde2e,_0x1867f6,_0x40544c,_0x42b33b){const _0x114daa=_0x513b3b;super(),this['_config']=_0x1badd4,this['_logService']=_0x4bde2e,this[_0x114daa(0x3b9)]=_0x1867f6,this[_0x114daa(0x31e)]=_0x40544c,this[_0x114daa(0x2cf)]=_0x42b33b;const {..._0x51bfa1}=this['_config'];this['_configService'][_0x114daa(0x339)]($,_0x51bfa1);}[_0x513b3b(0x307)](){const _0x565809=_0x513b3b;this[_0x565809(0x1bb)](),_0x578643(this[_0x565809(0x31e)],[[ve],[Je],[et]]);}[_0x513b3b(0x176)](){const _0x12ad7b=_0x513b3b;_0x578643(this[_0x12ad7b(0x31e)],[[ze]]);}['onRendered'](){const _0x216f60=_0x513b3b;this[_0x216f60(0x2d0)]();}[_0x513b3b(0x1bb)](){const _0x1a141e=_0x513b3b;var _0x4f83ea,_0x40f96f,_0x25e07b,_0xf617d0;this[_0x1a141e(0x31e)]['has'](_0x3e29a6)&&this[_0x1a141e(0x4e0)]['error']('[UniverCollaborationClientPlugin]',_0x1a141e(0x186));let _0x3c4c9a=[[_0x3e29a6,{'useClass':Mt}],[he],[Gt],[_0x444e74],[Zs,{'useClass':da}],[ce],[w],[_0x40597f],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[Vs],[et],[Bs,{'useClass':(_0x40f96f=(_0x4f83ea=this[_0x1a141e(0x3a3)])==null?void 0x0:_0x4f83ea['socketService'])!=null?_0x40f96f:Ct}],[_0x34d3c8,{'useClass':_0x1f0359}],[_0x2c1fe9,{'useClass':Nt}],[_0x388a42,{'useClass':yt}],[_0xb13959,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0x25e07b=this['_config'])!=null&&_0x25e07b['enableSingleActiveInstanceLock']&&_0x3c4c9a[_0x1a141e(0x152)]([tt,{'useClass':Sr}]),_0x3c4c9a=_0x1432ec(_0x3c4c9a,(_0xf617d0=this[_0x1a141e(0x3a3)])==null?void 0x0:_0xf617d0[_0x1a141e(0x325)]),_0x3c4c9a[_0x1a141e(0x301)](_0x1ca430=>this[_0x1a141e(0x31e)][_0x1a141e(0x2ab)](_0x1ca430)),this[_0x1a141e(0x4a9)]();}[_0x513b3b(0x2d0)](){const _0x444cb9=_0x513b3b;this[_0x444cb9(0x233)](this['_renderManagerService'][_0x444cb9(0x476)](_0x743738[_0x444cb9(0x1a4)],[wt])),this[_0x444cb9(0x233)](this['_renderManagerService'][_0x444cb9(0x476)](_0x743738[_0x444cb9(0x3b6)],[Pt]));}[_0x513b3b(0x4a9)](){const _0x26ec3d=_0x513b3b;var _0x21c64a,_0x56c9c8;this[_0x26ec3d(0x31e)]['get'](_0x444e74)[_0x26ec3d(0x21e)]({'priority':0x14,'interceptor':_0x6ca340({'maxParallel':0x6})}),this[_0x26ec3d(0x31e)][_0x26ec3d(0x49f)](Qe),(_0x21c64a=this[_0x26ec3d(0x3a3)])!=null&&_0x21c64a[_0x26ec3d(0x172)]||this['_injector'][_0x26ec3d(0x49f)](w)[_0x26ec3d(0x171)](),(_0x56c9c8=this[_0x26ec3d(0x3a3)])!=null&&_0x56c9c8[_0x26ec3d(0x482)]&&this[_0x26ec3d(0x31e)]['get'](Ze),this[_0x26ec3d(0x31e)][_0x26ec3d(0x49f)](Le),this[_0x26ec3d(0x31e)]['has'](Me)&&this[_0x26ec3d(0x31e)][_0x26ec3d(0x49f)](Me);}};Sa(At,'pluginName',pa),At=ga([_0x38b61b(_0x5498e7),Ve(0x1,_0x385fd2),Ve(0x2,_0xdb11a1),Ve(0x3,_0x53ed15(_0x3165b6)),Ve(0x4,_0x17c84c)],At);export{Fo as AUTHZ_URL_KEY,yt as AuthzIoHttpService,Mn as COLLAB_SUBMIT_CHANGESET_URL_KEY,Tn as COLLAB_WEB_SOCKET_URL_KEY,Le as CollaborationController,qe as CollaborationEntity,bt as CollaborationSession,he as CollaborationSessionService,Ct as CollaborationSocketService,P as CollaborationStatus,To as CollaborationStatusDisplay,Vs as CommentService,Je as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,On as HEARTBEAT_INTERVAL_KEY,js as HEARTBEAT_TIMEOUT_KEY,Bs as ICollaborationSocketService,Zs as IURLService,Ut as ImageIoService,Un as LOCAL_CACHE_INTERVAL_KEY,Ln as LOGIN_URL_KEY,w as LocalCacheService,Pn as RETRY_CONNECTING_MAX_COUNT_KEY,Ha as SEND_CHANGESET_TIMEOUT_KEY,In as SNAPSHOT_SERVER_URL_KEY,Cn as SNAPSHOT_URL_KEY,Y as SessionStatus,no as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,da as WebURLService,Hn as deserializeToCombResponse,xn as serializeCombRequest};
|