@univerjs-pro/collaboration-client 0.4.1-nightly.202410241606 → 0.4.1-nightly.202410261605

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x173fa3=_0x33c3;(function(_0x308a22,_0x93585a){const _0x235e76=_0x33c3,_0x47d01d=_0x308a22();while(!![]){try{const _0x136324=-parseInt(_0x235e76(0x1d7))/0x1*(-parseInt(_0x235e76(0x1cc))/0x2)+-parseInt(_0x235e76(0x195))/0x3*(parseInt(_0x235e76(0x2d1))/0x4)+parseInt(_0x235e76(0x1f0))/0x5*(-parseInt(_0x235e76(0x492))/0x6)+parseInt(_0x235e76(0x3ae))/0x7*(-parseInt(_0x235e76(0x38e))/0x8)+-parseInt(_0x235e76(0x2e3))/0x9*(-parseInt(_0x235e76(0x467))/0xa)+parseInt(_0x235e76(0x301))/0xb+parseInt(_0x235e76(0x503))/0xc;if(_0x136324===_0x93585a)break;else _0x47d01d['push'](_0x47d01d['shift']());}catch(_0x57f99a){_0x47d01d['push'](_0x47d01d['shift']());}}}(_0x29b0,0x75f5c));var oi=Object[_0x173fa3(0x309)],ai=(_0x4db46d,_0x55f513,_0x329459)=>_0x55f513 in _0x4db46d?oi(_0x4db46d,_0x55f513,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x329459}):_0x4db46d[_0x55f513]=_0x329459,l=(_0x46a354,_0x45c212,_0x409313)=>ai(_0x46a354,typeof _0x45c212!=_0x173fa3(0x1b9)?_0x45c212+'':_0x45c212,_0x409313);import{createIdentifier as _0x1a0c31,Inject as _0x4f7ed2,Disposable as _0x1ed84d,DisposableCollection as _0x1f9c9d,toDisposable as _0x4a9188,IConfigService as _0x13b27e,ILogService as _0x4329b1,UserManagerService as _0x12c9bc,UniverInstanceType as _0x159e2d,IUniverInstanceService as _0x1e8ecc,LocaleService as _0x15839b,Optional as _0x532e88,RxDisposable as _0x13ba8e,Injector as _0x3b0750,Tools as _0x58e8f0,ILocalStorageService as _0x71f972,Rectangle as _0xa8b8a6,ICommandService as _0xdec94a,DOC_RANGE_TYPE as _0x46c3b0,JSONX as _0xdfd23e,CommandType as _0x12b588,IPermissionService as _0x8f100a,IUndoRedoService as _0x57ccc3,sequenceExecute as _0x24a976,debounce as _0x2d1802,COLORS as _0x51afa6,ColorKit as _0x88bd29,ThemeService as _0x1810fb,fromEventSubject as _0x3c7358,useDependency as _0x5b7ccb,connectInjector as _0x426f7f,Workbook as _0x1b1252,isInternalEditorID as _0xfab1d1,LocalUndoRedoService as _0x2bc6cc,IContextService as _0x163dc9,DependentOn as _0xf1d54,Plugin as _0x3ddd75,touchDependencies as _0x3b1166,IAuthzIoService as _0x588b6d,mergeOverrideWithDependencies as _0x401096}from'@univerjs/core';import{Subject as _0x54d3a4,merge as _0x378f3d,takeUntil as _0x223895,BehaviorSubject as _0x37b5ce,distinctUntilChanged as _0x38f940,fromEvent as _0x25f31e,ReplaySubject as _0x5c8a52,take as _0x13b5e9,map as _0x4afa33,shareReplay as _0x5fb4e1,of as _0x2ad1bd,debounceTime as _0x1fc3db,filter as _0x496185,switchMap as _0x3b6e12,combineLatest as _0x550795,concatMap as _0x2bf06b,mapTo as _0x5297dd}from'rxjs';import{map as _0x595c33,take as _0x4b16ab,filter as _0x3f9fc1,delay as _0xd71fd1,throttleTime as _0x46eb5a,takeUntil as _0x54b271,switchMap as _0x4b9d13}from'rxjs/operators';import{MessageType as _0x180cc7,Tooltip as _0x523a7c}from'@univerjs/design';import{IBeforeCloseService as _0x3b10e0,IMessageService as _0x46e149,INotificationService as _0x21df64,useObservable as _0x1866fc,BuiltInUIPart as _0x185249,IUIPartsService as _0x49f7f8}from'@univerjs/ui';import{HTTPService as _0x33691b,WebSocketService as _0x424bbf,MergeInterceptorFactory as _0x5a1e35,HTTPRequest as _0x20d999,IHTTPImplementation as _0x15deac,XHRHTTPImplementation as _0x13c3e0,ThresholdInterceptorFactory as _0x2fe6df}from'@univerjs/network';import{CollaborationEvent as _0x5f441e,parseChangesetToProtocol as _0x2c88b3,ISnapshotServerService as _0x5dfd2d,isTransformMutationFailure as _0x44527a,isTransformMutationsWithChangesetSuccess as _0x2c439f,ITransformService as _0x4a8bc3,RevisionService as _0x6cbd2e,mapDocumentTypeToUniverType as _0x4c831a,isTransformChangesetsSuccess as _0xec58bb,CompressMutationService as _0x413548,parseProtocolChangeset as _0x4ecc3b,SnapshotService as _0x4c83fe,textEncoder as _0x206e33,b64DecodeUnicode as _0x346f8f,isTransformMutationsWithChangesetFailure as _0x5a59dd,UniverCollaborationPlugin as _0x3ee7ed}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x41517f}from'@univerjs/telemetry';function _0x29b0(){const _0x3f0d4b=['getImage','get','collaMsg','[SyncedState]:\x20received\x20acknowledgement.','/-/object/list','SNAPSHOT_INVALID_SNAPSHOT','transformChangesets','removeParam','setShapeProps','uploadFileServerUrl','textRanges','unitId\x20is\x20not\x20found','getRangePointData','min','getUniverSheetInstance','Unknown\x20user','popstate','visibilitychange','red300','onStarting','state$','body','_ws','[DataLoaderController]','sid','_queuedRemoteChangesets','downloadEndpointUrl','_joinRoom','attrs','_resendTimer','FileId','requestParams','_onRecvEvent','set','_isPermissionRej','APPLY_DUPLICATED','OffLineSingle','_saveTaskMap','isEditing','addObjects','APPLY_NON_SEQUENTIAL_REVISION','subscribe','_hovered','UUID','disposeUnit','_collabSessionService','_uiPartsService','assignAColorForMemberID','_univerInstanceService','href','setWaitCount','transformByState','_renderManagerService','cmd','getTime','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_beforeCloseService','onTransformRemoteChangesetByIMECache','uni.network.url-service','_resendWithTimeout','awaitingChangeset','session.connection-failed','_collaborationPaused','_cursors','_onCombEvent','MoveRangeCommandId','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','onTransformSelections','collabStatus.offline','hasOwnProperty','_collabCursorController','onCommandExecuted','_sheetSkeletonManagerService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','LIVESHARE_NEW_HOST','_getUploadFileURL','_labelPosition','_checkMissing','OFFLINE','data','_updateSubUnitFromURLParams','createCollaborator','_id','init','startsWith','rgba(255,\x20255,\x20255,\x200.01)','collabStatus.conflict','getParam','_getAnchorBounding','encode','awaiting','getSkeleton','objectID','onRemoteAck','_commentService','copyFileMeta','_onMessage','_replayCachedMutations','updateMember','objectType','_backgroundColor','subunit','moveTo','_onJoinRoomEvent','closeSession','_assignedColors','_colorAssignService','objectActions','_removeRoom','urlChange$','focused$','_transformPreviousActiveRange','has','_transformUndoredo','NOT_COLLAB','headers','_socketMessageSubscription','editing\x20status\x20changed\x20to','_tryEnsureSocket','_clearScheduledTask','_getRedoStack','delete','getRelativeToViewportCoord','/universer-api/stream/file/upload','/universer-api/authz','_entityInit$','getInterceptPoints','reverse','_startCollaboration','m1Prime','socket\x20open.','_startTelemetryCollaborationNewChangeset','image/jpeg','collaboration-session-retry','fetchThroughInterceptors','endRow','Warning','_cursorShapes','joinEvent','_instanceService','setAlpha','appendMutation','_registerDependencies','_scheduleSaving','color','SUBMIT_CHANGESET','hovered','getSheetBySheetId','_lastPointer','visibilityState','top','_session','_revisionService','HEARTBEAT','sheetID','translate(.97)','now','MUTATION','icon','syncEditingCollabCursor','getCurrentRevOfUnit','_render','all','params','clipPath','20SQilKR','getRenderById','url(#$1','FromArray','_getSheetObject','InsertRangeMoveRightCommandId','size','text','PSEUDO_FETCH_MISSING_RESULT','call','_undoRedoService','LIVESHARE_TERMINATE','INGEST','append','catch','csAckEvent','round','onPointerLeave$','getLatestCsReqIdBySid','transformRemoteChangeset','result','leaveEvent','_sendHeartbeat','forEach','...','not_collab','getOwnPropertySymbols','collab-text-anchor-','clear','liveShareOperation','/object/','_collaborationController','assign','_createInitialStateImpl','ws://127.0.0.1:8000/universer-api/comb/connect','reduce','fromCollab','beginPath','memberID','getUndoRedoMutationParamsCache','_onLocalMutation','permission.title','unit-cache-','90VNetzC','event$','_sheetTransformSelectionsService','revision','_handleEvent','current','isArray','_getCtorByUniverType','_setupSubUnitSync','_startDocCollabCursor','origin','registerRenderModule','image/jpg','_removeClearOtherTimer','_replaceFileID','_getDownloadEndpointURL','FETCH_MISSING','_docStateChangeManagerService','HEADER_MENU','setTimeout','_handleHeartbeatEvent','toggleOnline','_transformRemoteChangesetByIMECache','isActive','_shouldReportTelemetry','univer-online-status-icon','_scene','_initCloseConn','_onRefRangeChange','session.will-retry','svg','univerjs-icon\x20univerjs-icon-','_resendTimeout','_tryReconnect','black','USERS_LEAVE','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_injector','lineTo','CHANGESET_SHOULD_RETRY','_commentUpdate$','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','UNKNOWN_CMD','collaboration-client.config','_sendHeartbeatTimer','path','RemoveRowCommandId','getItem','getConfig','enableOfflineEditing','setUndoRedoMutationParamsCache','_onConnectionOpen','TEXT','deepClone','_clearRedo','setConfig','0\x200\x2017\x2016','searchParams','pushState','mutations','collabCursorState$','rev','_pendingMutations','random','session','baseRev','collabStatus.notCollab','getOwnPropertyDescriptor','put','InsertRangeMoveDownCommandId','MSG_FOR_ERROR','/role','initWorkbookPermissionChange','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getAncestorScale','refreshPermission','fillText','_initMergeInterceptor','setItem','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_socketService','readAsDataURL','_snapshotServerService','[CollaborationSessionService]','_initModules','onPointerEnter$','close$','saveImage','_hideTimer','_initStatusComponent','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[CollaborationSessionService]:\x20socket\x20error','_socketReady','_transformUndoRedoStack','substring','colorChannel1','_candidateSocket','fillStyle','_onRemoteACK','JOIN','_refreshCollabCursors','engine','Error\x20on\x20receiving\x20event','_shapes','UNIVER_SHEET','height','editingUnit','collabWebSocketUrl','split','liveShareNewHost','_acknowledgedAwaitingChangeset','COLLAB_WEB_SOCKET_URL','FETCH_MISS','2210748JvtjNk','collaborators','[PendingState]:\x20received\x20rejection.','_onCursorUpdate','_scheduleTimestamp','pauseCollaboration','Undefined','routeKey','getMember','_type','/unit/','getUnitType','open$','_transitionLocked','_httpService','arc','#fff','_imageSourceCache','[UniverCollaborationClientPlugin]','listRoles','putCollaborators','CHANGESET_ACK','unsubscribe','flatMap','_remoteChangesetQueue','fill','activeSheet$','disposeWithMe','measureText','15WjIHlK','getMergeData','m2Prime','currentTheme$','row','_syncEditingCollabCursor','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','?url=','_eventUnsubscribe','CONFLICT','xlink:href','getCellPositionByOffset','SNAPSHOT_HAS_BEEN_REMOVED','INVALID_ARGUMENT','parse','cursorInfo$','randomUUID','HELLO','deleteCollaborator','every','apply','_ensureSubject','_updateLocalCache','_onRemoteRejected','patch','docStateChange$','_collabCursorState$','onRemoteRetry','_toggleOffline','DEFAULT_FILE_NAME','_anchorDot','UNAUTHENTICATED','roles','authzUrl','isPermissionRej','_saveCache','symbol','online','_heartbeatTimer','telemetry\x20info\x20is\x20not\x20initialized','onTransformChange$','save\x20fail\x20reason\x20is\x20','_event$','_state$','addImageSourceCache','_listenToOnlineEvent','actions','Error','updatePermissionPoint','none','_onConflict','roomMembers$','_memberService','concat','bind','160794FbaCRT','_singleActiveUnitService','_handleJoinEvent','on-line-single_clip0_910_349','_permissionService','resend','executeCommand','UPDATE_CURSOR','_loadDoc','univer-online-status-title','YUUMI_SUBSCRIPTION_NOT_FOUND','3ZbzxQM','permission.content','idSuffix','push','purple300','_clearOtherTimers','onlineStatusTitle','_clearHeartbeatTimer','_onFetchMissResult','file','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','onMissingChangesets','_createInitialState','/universer-api/file/{fileID}/sign-url','synced','show','onPointerMove$','currentSkeleton$','allowed','create','ERROR_EXCEED_SIZE','onlineStatusIcon','onMissedChangesetFetched','use','LICENSE_IMPORT_SIZE_EXCEEDED','162245ZejQUH','range','localeService','loginUrlKey','find','ranges','trim','message$','_initUnitPermissionChange','endColumn','_context','saveSheetBlock','\x20-\x20','univer-pro.collaboration-client-socket-service','TOO_MANY_REQUESTS','_localStorageService','_color','transformUndoRedo','INTERNAL_ERROR','_initRequestHeader','map','_configService','div','HttpExport','LICENSE_DISTRO_REJECTED','/collaborator','[OfflineState]:\x20received\x20changeset.','entries','ACTIVE_UNIT_EVENT_CHANNEL','includes','M0\x200H16V16H0z','_refRangeService','auth.needGotoLoginAlert','_online','IDLE','_retryCount','_document','string','LICENSE_MAX_UNITS_EXCEEDED','unitId','_getSnapshotAPIPrefix','width','action','sessionStatus','session.room-full','_getSendChangesetTimeout','_startSheetCollabCursor','doc.mutation.rich-text-editing','0\x200\x2016\x2016','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','change$','length','saveSnapshot','_clearLocalCache','awaiting_with_pending','_notificationService','onRemoteChangeset','[CollaborationEntity]','UNKNOWN_CODE','_throwTelemetryCollaborationNewChangeset','UnitSnapshot','onReady','addEventListener','getTypeOfUnitAdded$','newCsEvent','pluginName','onMouseMove','/rev/','updateOfflineData','offline','_decreaseWaiting','indexOf','getCollabCursors$','_roomMembers','unitID','unshift','commentUpdate$','_toggleOnline','_retryConnectingTimer','[FetchMissState]','key','capture','_range','UNIVER_SLIDE','selection','_messageService','_getCurrentRevision','_telemetryService','restore','_awaitingChangeset','history','_docTransformSelectionsService','FAIL','collabStatus.syncing','1em','some','ALREADY_EXISTS','_anchor','NO_OTHER_CLIENTS_EDITING','getUnitId','_cursorInfo$','ERROR_IMAGE_TYPE','exhaustSavingTask','[OfflineState]:\x20received\x20acknowledgement.','_updateState','/object','loadDoc','LIVESHARE_REQUEST_HOST','PENDING','CHANGESET_REJ','_changesetReqId','updateCollaborator','_getUndoStack','_disableEditing','connection\x20error','ONLINE','collaboration_new_changeset','joinRsp','_disabled','drawWith','_name','_redoStacks','RETRY_CONNECTING_MAX_COUNT','_transformStack','pending','_selfUnitIDs','RECT','YUUMI_UNABLE_LOAD_URL','_updateURLWithCurrentState','reqId','_getAPIPrefixPath','DeleteRangeMoveUpCommandId','RemoveColCommandId','LEAVE','univer-online','onRemoteRej','eventID','getCurrentUnitForType','url','registerHTTPInterceptor','_timeoutTimer','_docSyncEditingCollabCursorService','{fileID}','_stopTelemetryCollaborationNewChangeset','onTransformIME','subscribeEvent','OnLineSingle','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','name','off-line-single_clip0_910_343','_docTransformIMECacheService','selections','evenodd','post','debug','originalMeta','from','interceptor','status$','resize','replaceState','defs','_localCacheService','SYNCED','_sendingTimer','Univer','SHOULD_CLOSE_CONN','retryConnectingInterval','onload','_getSaveTimeout','setCurrentUser','USERS_ENTER','clearTimeout','_initCommandExecutedListener','signUrlServerUrl','resolve','ERROR_IMAGE','dispose$','/new_changes','_scheduleHeartbeat','_colorIndex','_onOffline','getCurrent','_drawTextRange','YUUMI_RATE_OVER_LIMIT','_onCursorDelete','submit\x20changeset\x20error!','send','children','_applyRemoteChangeset','hide','fetch_missing','_onRemoteChangeset','conflict','reject','_themeService','url(#on-line-single_clip0_910_349)','extend','startRow','whenReady','fetching\x20missing\x20changesets\x20from\x20','_cursor','disableLocalCache','_initResize','getValue','_lockTransition','clearInterval','sheetId','dispose','_removeCollabCursors','_http','getUnit','onlineStatus','error$','_unlockTransition','_updateCollabCursors','src','tag','_incrementRevisionNumber','_onUserLeave','commentUpdateEvent','_logService','_sender','_sessions','next','155216ZvxXFW','ENSURE_SNAPSHOT_EXECUTION','_roomMembers$','getRandomValues','_entities','_handleLeaveEvent','_registerRenderDependencies','[CollaborationUndoRedoService]','labelPosition','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_HTTPService','_scheduleClearOtherTimer','[SyncedState]:\x20received\x20rejection.','_createHandler','registerBeforeClose','reconnect','close','_rescheduleHeartbeat','946962oiWeaF','triggerDblclick','registerRefRange','asObservable','_localeService','toRgbString','_send','fetchMissingChangesets','/-/object/-/batch_allowed','_config','\x20to\x20','_executeRemoteChangeset','NEW_CHANGESETS','_socket','APPLY_REJECT','socket$','verdancy600','UPDATE_PERMISSION_OBJ','getVpScrollXYInfoByPosToVp','NOT_FOUND','add','_unitOnClients','_onUserJoin','displayName','filter','getCurrentUser','_updateLocalCursor','UNRECOGNIZED','UnitEmbedded','_members','9736188hqzgAE','loadOfflineData','sessionStatus$','_substituteUndoStack','_clearTimeoutTimer','image/gif','_snapshotService','APPLY_REVISION_CONFILICT','defineProperty','_userManagerService','image/png','className','loadSheet','COMPLETION_FINISHED','unknown','onlyLocal','LIVESHARE_OPERATION','_urlService','LOGIN_URL_KEY','/allowed','_getScale','object','save','_sessionStatus$','saveOfflineData','createSocket','APPLY_PERMISSION_DENIED','createElement','_fetchMissChangesets','generateRandomId','createInstance','_textBubble','getViewport','transform','_waitForHeartbeatResponse','getUnitStatus$','csShouldRetryEvent','bottom','COMPRESS_MUTATION_SEND','_compressMutationService','_telemetryInfo','getMemberID','column','COLLAB_SUBMIT_CHANGESET_URL','type','LIVESHARE_FETCH_OPERATIONS','with','addObject','getCollabEntity$','_socket$','AWAITING','transformIMECache','_state','_collaborationTimeoutTimer','RECV','JOINING','stopTime','c1Prime','roomMembers','csRejEvent','_clearUndo','getTypeOfUnitDisposed$','/block/','_handler','_getLoginPath','univer-offline','transformMutation','_collaborationSessionService','_draw','prototype','_drawAnchor','subUnitId','_setupBeforeClosingHandler','[CollaborationState]:\x20apply\x20error!','_showConflictNotification','InsertRowCommandId','_updateStatus','UNIVER_UNKNOWN','conflict.title','\x0aCurrent:\x20','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','setParam','socket\x20close','_changesetSessionId','makeDirty','_drawRectRange','storage','toString','VIEW_MAIN','defIds','pipe','_commandService','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','location','univer-pro.collaboration-client.single-active-unit-service','responseType','getDocRanges','_change$','/universer-api/snapshot/','collab-text-range-','_syncEditingCollabCursorService','transformSelections','_init','_status$','max','slice','collab-rect-range-','override','findNodePositionByCharIndex','replaceTextRanges','font','_exhaustRemoteChangesetQueue','cursorInfo','unload','CHANGESET_REVISION_CONFILICT','unit','then','_onConnectionFailed','removeMember','_unitStatus','onSendChangeset','getCollabEntity','_cachedData','enableAuthServer','members','registerComponent','_unitID','update','UNIVER_DOC','HttpImport','COMPRESS_MUTATION_APPLY','_handleHover','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','changesets','_transformService','onCommentUpdate','LICENSE_EXPORT_SIZE_EXCEEDED','compose','BASE64','function','status','312iDTPLK','startColumn','\x0aAfter:\x20','_docSkeletonManagerService','UNDEFINED','getUnhiddenWorksheets','LOCAL_CACHE_INTERVAL','requireSession','_listenToOfflineEvent','off-line-single','encodeURIComponent','json','_initStatusListener','_waitCount','getFocusedUnit','YUUMI_URL_COL_OUT_OF_RANGE','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','PERMISSION_DENIED','startTime','_getSignURL','_loadSheet','_transformSelections','blue400','transformMutationsWithChangeset','_scheduleCollaborationTimeoutTimer','toLowerCase','newValue','AWAITING_WITH_PENDING','registerOnClose','stringify','_substituteRedoStack','_hover','64085WAnTDN','POST','complete','values','list','_transformIMECache','UNIVER_PROJECT','[OfflineState]:\x20received\x20rejection.','code','getSheetId','error','OTHER_CLIENTS_EDITING','_getAPIPrefix','toggleOffline','collaboration-client.offline-data-not-saved','_submitChangeset','_schedule','CONNECTOR_DATA_TOO_LARGE','[CollaborationSession]','HEARTBEAT_TIMEOUT'];_0x29b0=function(){return _0x3f0d4b;};return _0x29b0();}function _0x33c3(_0x1e530f,_0x6b97f6){const _0x29b0e1=_0x29b0();return _0x33c3=function(_0x33c38d,_0x22a9a9){_0x33c38d=_0x33c38d-0x18c;let _0x2c9323=_0x29b0e1[_0x33c38d];return _0x2c9323;},_0x33c3(_0x1e530f,_0x6b97f6);}import{DocIMEInputManagerService as _0x153626,DocStateChangeManagerService as _0x12095e,NodePositionConvertToCursor as _0x282c61,NodePositionConvertToRectRange as _0x5264f7,TEXT_RANGE_LAYER_INDEX as _0x38cec6,SetDocZoomRatioOperation as _0x116bc2}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x15d139,SetSelectionsOperation as _0x455e5a,InsertSheetMutation as _0x7b95a6,EmptyMutation as _0x511aa2,WorkbookEditablePermission as _0x52a438,RefRangeService as _0x2ac9c5,EffectRefRangId as _0x1876e5,handleIRemoveRow as _0x99cb29,handleIRemoveCol as _0x5d4634,handleMoveRange as _0x3ba698,handleInsertRow as _0x163f59,handleInsertRangeMoveRight as _0x468a25,handleInsertRangeMoveDown as _0x52a909,handleInsertCol as _0x593430,handleDeleteRangeMoveUp as _0x45cf67,handleDeleteRangeMoveLeft as _0x3f6541,runRefRangeMutations as _0x28e3fe,SetWorksheetActivateCommand as _0x5463e2}from'@univerjs/sheets';import{IRenderManagerService as _0x2855ab,Shape as _0x1d45e8,Rect as _0x16757d,getColor as _0x3c5235,RegularPolygon as _0x57827a,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x18c26b,Vector2 as _0x327598}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x35ae8c,RichTextEditingMutation as _0x179d55,SetTextSelectionsOperation as _0x538b13,DocSkeletonManagerService as _0x429479}from'@univerjs/docs';import{ImageSourceType as _0x4349b6,ImageUploadStatusType as _0xb56f1,IImageIoService as _0x21630a}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x32dcd9,serializeRangeWithSheet as _0x233653}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x1921de,VIEWPORT_KEY as _0x8cdd2a,getCoordByCell as _0x5845e5,getSheetObject as _0x1b8540,SheetPermissionInitController as _0x3d90fa}from'@univerjs/sheets-ui';import _0x588026,{forwardRef as _0x431197,useRef as _0x494e8d,createElement as _0xfdbf34,useCallback as _0x2dcebf}from'react';import{IRemoteInstanceService as _0xa2838}from'@univerjs/rpc';import{getAttachHeader as _0x10e2ee}from'@univerjs-pro/license';const In='SNAPSHOT_SERVER_URL_KEY',En='/universer-api/snapshot',Cn='SNAPSHOT_URL_KEY',Ha='SEND_CHANGESET_TIMEOUT',bn=0x7d0,Tn=_0x173fa3(0x501),Rn=_0x173fa3(0x489),On='HEARTBEAT_INTERVAL',Dn=0x7530,Hs=_0x173fa3(0x3c1),xs=0x4e20,wn=0x4e20,Pn=_0x173fa3(0x26a),yn=0x3,Un=_0x173fa3(0x394),Nn=0x3e8,An=_0x173fa3(0x32c),Mn='/universer-api/comb',Ln=_0x173fa3(0x313),$n='/universer-api/oidc/authpage';var ks=(_0xc7809e=>(_0xc7809e[_0xc7809e[_0x173fa3(0x392)]=0x0]=_0x173fa3(0x392),_0xc7809e[_0xc7809e['OK']=0x1]='OK',_0xc7809e[_0xc7809e[_0x173fa3(0x202)]=0x2]=_0x173fa3(0x202),_0xc7809e[_0xc7809e[_0x173fa3(0x39f)]=0x3]=_0x173fa3(0x39f),_0xc7809e[_0xc7809e[_0x173fa3(0x2f6)]=0x4]=_0x173fa3(0x2f6),_0xc7809e[_0xc7809e[_0x173fa3(0x1b4)]=0x5]=_0x173fa3(0x1b4),_0xc7809e[_0xc7809e['ALREADY_EXISTS']=0x6]=_0x173fa3(0x250),_0xc7809e[_0xc7809e['INVALID_ARGUMENT']=0x7]=_0x173fa3(0x1a2),_0xc7809e[_0xc7809e['TOO_MANY_REQUESTS']=0x8]=_0x173fa3(0x1fe),_0xc7809e[_0xc7809e[_0x173fa3(0x30e)]=0x9]='COMPLETION_FINISHED',_0xc7809e[_0xc7809e[_0x173fa3(0x373)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0xc7809e[_0xc7809e[_0x173fa3(0x3c7)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0xc7809e[_0xc7809e[_0x173fa3(0x1a1)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xc7809e[_0xc7809e['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x173fa3(0x2d2),_0xc7809e[_0xc7809e[_0x173fa3(0x2f1)]=0x1b59]=_0x173fa3(0x2f1),_0xc7809e[_0xc7809e[_0x173fa3(0x3ea)]=0x1b5a]=_0x173fa3(0x3ea),_0xc7809e[_0xc7809e[_0x173fa3(0x308)]=0x1b5b]=_0x173fa3(0x308),_0xc7809e[_0xc7809e[_0x173fa3(0x31b)]=0x1b5c]=_0x173fa3(0x31b),_0xc7809e[_0xc7809e[_0x173fa3(0x3e5)]=0x1b5d]=_0x173fa3(0x3e5),_0xc7809e[_0xc7809e[_0x173fa3(0x3bf)]=0x1f41]=_0x173fa3(0x3bf),_0xc7809e[_0xc7809e['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x173fa3(0x216),_0xc7809e[_0xc7809e['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x173fa3(0x404),_0xc7809e[_0xc7809e['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x173fa3(0x1ef),_0xc7809e[_0xc7809e[_0x173fa3(0x389)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0xc7809e[_0xc7809e[_0x173fa3(0x208)]=0x232d]=_0x173fa3(0x208),_0xc7809e[_0xc7809e[_0x173fa3(0x26f)]=0x2711]=_0x173fa3(0x26f),_0xc7809e[_0xc7809e[_0x173fa3(0x39d)]=0x2712]=_0x173fa3(0x39d),_0xc7809e[_0xc7809e[_0x173fa3(0x2a8)]=0x2713]=_0x173fa3(0x2a8),_0xc7809e[_0xc7809e['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x173fa3(0x1d6),_0xc7809e[_0xc7809e[_0x173fa3(0x2fe)]=-0x1]=_0x173fa3(0x2fe),_0xc7809e))(ks||{}),B=(_0xc93871=>(_0xc93871[_0xc93871[_0x173fa3(0x34e)]=0x0]=_0x173fa3(0x34e),_0xc93871[_0xc93871['UNIVER_DOC']=0x1]=_0x173fa3(0x381),_0xc93871[_0xc93871['UNIVER_SHEET']=0x2]='UNIVER_SHEET',_0xc93871[_0xc93871['UNIVER_SLIDE']=0x3]='UNIVER_SLIDE',_0xc93871[_0xc93871[_0x173fa3(0x3b4)]=0x4]=_0x173fa3(0x3b4),_0xc93871[_0xc93871[_0x173fa3(0x2fe)]=-0x1]=_0x173fa3(0x2fe),_0xc93871))(B||{}),I=(_0x18d337=>(_0x18d337[_0x18d337[_0x173fa3(0x4bc)]=0x0]='UNKNOWN_CMD',_0x18d337[_0x18d337[_0x173fa3(0x1a6)]=0x1]='HELLO',_0x18d337[_0x18d337[_0x173fa3(0x4f5)]=0x2]=_0x173fa3(0x4f5),_0x18d337[_0x18d337['LEAVE']=0x3]=_0x173fa3(0x275),_0x18d337[_0x18d337[_0x173fa3(0x473)]=0x4]=_0x173fa3(0x473),_0x18d337[_0x18d337[_0x173fa3(0x45b)]=0x5]='HEARTBEAT',_0x18d337[_0x18d337[_0x173fa3(0x337)]=0x6]='RECV',_0x18d337[_0x18d337['UNRECOGNIZED']=-0x1]=_0x173fa3(0x2fe),_0x18d337))(I||{}),Ft=(_0x6213f0=>(_0x6213f0[_0x6213f0[_0x173fa3(0x22a)]=0x0]=_0x173fa3(0x22a),_0x6213f0[_0x6213f0['OK']=0x1]='OK',_0x6213f0[_0x6213f0['FAIL']=0x2]=_0x173fa3(0x24c),_0x6213f0[_0x6213f0['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x6213f0))(Ft||{}),Bs=(_0x47877e=>(_0x47877e[_0x47877e[_0x173fa3(0x509)]=0x0]=_0x173fa3(0x509),_0x47877e[_0x47877e[_0x173fa3(0x382)]=0x1]=_0x173fa3(0x382),_0x47877e[_0x47877e[_0x173fa3(0x207)]=0x2]=_0x173fa3(0x207),_0x47877e[_0x47877e[_0x173fa3(0x2ff)]=0x3]=_0x173fa3(0x2ff),_0x47877e[_0x47877e[_0x173fa3(0x22c)]=0x4]='UnitSnapshot',_0x47877e[_0x47877e[_0x173fa3(0x2fe)]=-0x1]=_0x173fa3(0x2fe),_0x47877e))(Bs||{});const j=_0x173fa3(0x4bd),jn={};function Hn(_0x222a03){const _0x3c22d2=_0x173fa3;var _0xe1f696,_0x334a4b,_0x23d156,_0x5ed75e,_0x53edc1;const _0x994c7e=_0x222a03[_0x3c22d2(0x411)],_0x1f876d=JSON[_0x3c22d2(0x1a3)](_0x994c7e);switch(_0x1f876d[_0x3c22d2(0x3f7)]){case I[_0x3c22d2(0x45b)]:case I['HELLO']:{const _0x442313=_0x1f876d['infoRsp'];return{..._0x1f876d,'data':_0x442313,'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};}case I[_0x3c22d2(0x4f5)]:{const _0x3a4494=_0x1f876d[_0x3c22d2(0x265)];return{..._0x1f876d,'data':_0x3a4494,'cmd':_0x1f876d['cmd']};}case I['RECV']:{const _0x6b3873=_0x1f876d[_0x3c22d2(0x3c4)];switch(_0x6b3873[_0x3c22d2(0x278)]){case _0x5f441e['PERMISSION_REJ']:return{..._0x1f876d,'data':{..._0x6b3873,'data':(_0xe1f696=_0x6b3873['permissionRejEvent'])==null?void 0x0:_0xe1f696['cs']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x18d)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':(_0x334a4b=_0x6b3873[_0x3c22d2(0x476)])==null?void 0x0:_0x334a4b['cs']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e['NEW_CHANGESETS']:return{..._0x1f876d,'data':{..._0x6b3873,'data':(_0x23d156=_0x6b3873[_0x3c22d2(0x230)])==null?void 0x0:_0x23d156['cs']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x25d)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':(_0x5ed75e=_0x6b3873[_0x3c22d2(0x33c)])==null?void 0x0:_0x5ed75e['cs']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x4b9)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':(_0x53edc1=_0x6b3873[_0x3c22d2(0x325)])==null?void 0x0:_0x53edc1['cs']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e['UPDATE_CURSOR']:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873['updateCursorEvent']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x29b)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873[_0x3c22d2(0x44c)]},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x4b5)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873[_0x3c22d2(0x47c)]},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e['LIVESHARE_NEW_HOST']:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873['liveShareNewHost']},'cmd':_0x1f876d['cmd']};case _0x5f441e[_0x3c22d2(0x32e)]:case _0x5f441e['LIVESHARE_OPERATION']:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873[_0x3c22d2(0x484)]},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e['LIVESHARE_TERMINATE']:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873[_0x3c22d2(0x4ff)]},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e['MSG_FOR_ERROR']:return{..._0x1f876d,'data':_0x6b3873,'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e['COMMENT_UPDATE']:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873[_0x3c22d2(0x2cc)]},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x2f4)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873['updatePermissionObjEvent']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x296)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873['shouldCloseConn']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};default:return _0x1f876d;}}default:return _0x1f876d;}}function xn(_0x5781db){const _0x104400=_0x173fa3;switch(_0x5781db[_0x104400(0x3f7)]){case I[_0x104400(0x45b)]:case I[_0x104400(0x1a6)]:return JSON[_0x104400(0x3ab)]({'cmd':_0x5781db[_0x104400(0x3f7)],'routeKey':_0x5781db[_0x104400(0x50a)]});case I[_0x104400(0x473)]:{let _0x2a7374;switch(_0x5781db[_0x104400(0x411)][_0x104400(0x278)]){case _0x5f441e[_0x104400(0x1d3)]:{_0x2a7374={'eventID':_0x5f441e['UPDATE_CURSOR'],'updateCursorEvent':_0x5781db['data'][_0x104400(0x411)]};break;}case _0x5f441e[_0x104400(0x4b5)]:{_0x2a7374={'eventID':_0x5f441e[_0x104400(0x4b5)],'leaveEvent':_0x5781db[_0x104400(0x411)][_0x104400(0x411)]};break;}case _0x5f441e['USERS_ENTER']:{_0x2a7374={'eventID':_0x5f441e['USERS_ENTER'],'joinEvent':_0x5781db[_0x104400(0x411)][_0x104400(0x411)]};break;}case _0x5f441e[_0x104400(0x40c)]:{_0x2a7374={'eventID':_0x5f441e[_0x104400(0x40c)],'liveShareNewHost':_0x5781db[_0x104400(0x411)][_0x104400(0x411)]};break;}case _0x5f441e[_0x104400(0x311)]:{_0x2a7374={'eventID':_0x5f441e['LIVESHARE_OPERATION'],'liveShareOperation':_0x5781db[_0x104400(0x411)][_0x104400(0x411)]};break;}case _0x5f441e[_0x104400(0x472)]:{_0x2a7374={'eventID':_0x5f441e[_0x104400(0x472)],'liveShareTerminate':_0x5781db['data'][_0x104400(0x411)]};break;}case _0x5f441e[_0x104400(0x25b)]:{_0x2a7374={'eventID':_0x5f441e[_0x104400(0x25b)],'liveShareRequestHost':_0x5781db[_0x104400(0x411)]['data']};break;}case _0x5f441e[_0x104400(0x32e)]:{_0x2a7374={'eventID':_0x5f441e[_0x104400(0x32e)]};break;}default:_0x2a7374={'eventID':_0x5781db[_0x104400(0x411)][_0x104400(0x278)]};}return JSON['stringify']({'cmd':_0x5781db[_0x104400(0x3f7)],'routeKey':_0x5781db['routeKey'],'collaMsg':_0x2a7374});}case I['JOIN']:return JSON[_0x104400(0x3ab)]({'cmd':_0x5781db[_0x104400(0x3f7)],'routeKey':_0x5781db[_0x104400(0x50a)],'joinReq':_0x5781db[_0x104400(0x411)]});case I[_0x104400(0x275)]:return JSON[_0x104400(0x3ab)]({'cmd':_0x5781db['cmd'],'routeKey':_0x5781db[_0x104400(0x50a)],'leaveReq':_0x5781db[_0x104400(0x411)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var kn=Object['defineProperty'],Bn=Object['getOwnPropertyDescriptor'],Vn=(_0x242e4a,_0x56dad6,_0x202e85,_0x580941)=>{const _0x330284=_0x173fa3;for(var _0x34fbc9=_0x580941>0x1?void 0x0:_0x580941?Bn(_0x56dad6,_0x202e85):_0x56dad6,_0x431ca6=_0x242e4a[_0x330284(0x223)]-0x1,_0x16d4da;_0x431ca6>=0x0;_0x431ca6--)(_0x16d4da=_0x242e4a[_0x431ca6])&&(_0x34fbc9=(_0x580941?_0x16d4da(_0x56dad6,_0x202e85,_0x34fbc9):_0x16d4da(_0x34fbc9))||_0x34fbc9);return _0x580941&&_0x34fbc9&&kn(_0x56dad6,_0x202e85,_0x34fbc9),_0x34fbc9;},De=(_0x208009,_0x24940c)=>(_0x3e6c59,_0x30f65f)=>_0x24940c(_0x3e6c59,_0x30f65f,_0x208009);const Vs=_0x1a0c31(_0x173fa3(0x1fd));function Fn(_0x4c7595,_0x2dbda5,_0x3535f4){const _0x5e3ba3=_0x173fa3;return _0x4c7595+'/'+_0x2dbda5+_0x5e3ba3(0x50d)+_0x3535f4+_0x5e3ba3(0x2a2);}let bt=class extends _0x1ed84d{constructor(_0x57ab4e,_0x3efc72,_0x160121,_0x2cc912,_0x5dae2d){const _0x29cb82=_0x173fa3;super(),this['_http']=_0x57ab4e,this[_0x29cb82(0x3d8)]=_0x3efc72,this['_configService']=_0x160121,this[_0x29cb82(0x2cd)]=_0x2cc912,this[_0x29cb82(0x4e4)]=_0x5dae2d;}[_0x173fa3(0x31a)](_0x183677){const _0x2ce8d2=_0x173fa3,_0x5bc1f4=this[_0x2ce8d2(0x3d8)][_0x2ce8d2(0x31a)](_0x183677);if(!_0x5bc1f4)throw new Error(_0x2ce8d2(0x40b));const _0xc5aa70=new _0x1f9c9d(),_0x1a6fca=new _0x54d3a4();_0xc5aa70[_0x2ce8d2(0x2f7)](_0x5bc1f4[_0x2ce8d2(0x4e8)][_0x2ce8d2(0x3eb)](_0xf4fd73=>_0x1a6fca[_0x2ce8d2(0x2d0)](_0xf4fd73))),_0xc5aa70[_0x2ce8d2(0x2f7)](_0x4a9188(()=>_0x1a6fca[_0x2ce8d2(0x3b0)]()));const _0x167603=new _0x54d3a4();_0xc5aa70['add'](_0x5bc1f4[_0x2ce8d2(0x2c5)]['subscribe'](_0x527f1b=>_0x167603[_0x2ce8d2(0x2d0)](_0x527f1b))),_0xc5aa70[_0x2ce8d2(0x2f7)](_0x4a9188(()=>_0x167603[_0x2ce8d2(0x3b0)]()));const _0x361412=new _0x54d3a4();_0xc5aa70[_0x2ce8d2(0x2f7)](_0x5bc1f4[_0x2ce8d2(0x1f7)][_0x2ce8d2(0x3eb)](_0x985b7b=>{const _0x3b0d54=_0x2ce8d2,_0x567988=Hn(_0x985b7b);_0x361412[_0x3b0d54(0x2d0)](_0x567988);})),_0xc5aa70[_0x2ce8d2(0x2f7)](_0x4a9188(()=>_0x361412[_0x2ce8d2(0x3b0)]()));let _0x34edee;const _0x450c2f=()=>{const _0xd4b760=_0x2ce8d2;_0x167603['next'](new Event(_0xd4b760(0x262))),_0x1a6fca[_0xd4b760(0x2d0)](new CloseEvent('connection\x20error')),_0x34edee[_0xd4b760(0x2e1)]();};return _0x34edee={'memberID':'','close$':_0x1a6fca['asObservable'](),'error$':_0x167603['asObservable'](),'open$':_0x5bc1f4[_0x2ce8d2(0x50f)],'message$':_0x361412[_0x2ce8d2(0x2e6)](),'send':_0xe4c762=>{const _0x3726f5=_0x2ce8d2;if(_0xe4c762[_0x3726f5(0x3f7)]===I['INGEST']){if(_0xe4c762[_0x3726f5(0x411)]['eventID']===_0x5f441e[_0x3726f5(0x453)]){this[_0x3726f5(0x3bd)](_0x34edee,_0xe4c762[_0x3726f5(0x411)])[_0x3726f5(0x475)](_0xbb9056=>{const _0x29d05d=_0x3726f5;this[_0x29d05d(0x2cd)]['error'](_0xbb9056),_0x450c2f();});return;}if(_0xe4c762[_0x3726f5(0x411)][_0x3726f5(0x278)]===_0x5f441e[_0x3726f5(0x4a2)]){const _0x2d351c=_0xe4c762[_0x3726f5(0x411)];this[_0x3726f5(0x31d)](_0x2d351c)[_0x3726f5(0x375)](_0x428c38=>{const _0x286b30=_0x3726f5;_0x361412['next']({'cmd':I[_0x286b30(0x337)],'code':Ft['OK'],'routeKey':_0x2d351c['data'][_0x286b30(0x23a)],'routeType':'','data':{'eventID':_0x5f441e['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x428c38}}});})[_0x3726f5(0x475)](_0x9f284a=>{const _0x1f5442=_0x3726f5;this['_logService'][_0x1f5442(0x3b8)](_0x9f284a),_0x450c2f();});return;}}_0x5bc1f4[_0x3726f5(0x2ab)](xn(_0xe4c762));},'close':()=>{const _0x2f5613=_0x2ce8d2;_0x5bc1f4[_0x2f5613(0x2e1)](),_0xc5aa70[_0x2f5613(0x2c0)]();}},_0x34edee;}async[_0x173fa3(0x3bd)](_0x46ebd4,_0x5eb260){const _0x168198=_0x173fa3;var _0x29f0bd,_0x4b66d6;const {unitType:_0x2c75c8,unitID:_0x5696cc,changeset:_0x13f51a}=_0x5eb260['data'],_0x59c27b={'unitID':_0x5696cc,'memberID':_0x46ebd4[_0x168198(0x48d)],'type':_0x2c75c8,'changeset':_0x2c88b3(_0x13f51a)},_0xe736ac=this['_configService'][_0x168198(0x4c2)](An),_0x5c9cd2=this[_0x168198(0x205)]['getConfig'](j),_0xc626d4=Fn((_0x4b66d6=(_0x29f0bd=_0x5c9cd2==null?void 0x0:_0x5c9cd2['collabSubmitChangesetUrl'])!=null?_0x29f0bd:_0xe736ac)!=null?_0x4b66d6:Mn,_0x2c75c8,_0x5696cc);try{await this[_0x168198(0x2c2)][_0x168198(0x289)](_0xc626d4,{'body':_0x59c27b});}catch(_0x5f1a6e){throw this['_logService'][_0x168198(0x3b8)](_0x168198(0x3c0),_0x168198(0x2aa)),_0x5f1a6e;}}async[_0x173fa3(0x31d)](_0x5d8e0a){const _0x1929d8=_0x173fa3,{unitID:_0x1d8d0c,from:_0x4e8a2f,to:_0x40c338,unitType:_0x2683ba}=_0x5d8e0a['data'];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x1d8d0c,'type':_0x2683ba,'from':_0x4e8a2f,'to':_0x40c338}))[_0x1929d8(0x386)];}};bt=Vn([De(0x0,_0x4f7ed2(_0x33691b)),De(0x1,_0x4f7ed2(_0x424bbf)),De(0x2,_0x13b27e),De(0x3,_0x4329b1),De(0x4,_0x5dfd2d)],bt);const Wn=_0x173fa3(0x264);function Gn(_0x338746){const _0x4133a9=_0x173fa3;return JSON[_0x4133a9(0x3ab)](_0x338746)[_0x4133a9(0x223)];}class Fs{constructor(){const _0x78ca80=_0x173fa3;l(this,_0x78ca80(0x4ba),new _0x54d3a4()),l(this,_0x78ca80(0x23c),this[_0x78ca80(0x4ba)][_0x78ca80(0x2e6)]());}[_0x173fa3(0x388)](_0x139a89){const _0x4923ce=_0x173fa3;this[_0x4923ce(0x4ba)]['next'](_0x139a89);}}var Yn=Object[_0x173fa3(0x309)],Kn=Object[_0x173fa3(0x4d5)],Xn=(_0xcd06fa,_0x1c81fa,_0x2e57a0,_0x4b1c45)=>{for(var _0x3baf2d=_0x4b1c45>0x1?void 0x0:_0x4b1c45?Kn(_0x1c81fa,_0x2e57a0):_0x1c81fa,_0x4a7bc7=_0xcd06fa['length']-0x1,_0x4b7b78;_0x4a7bc7>=0x0;_0x4a7bc7--)(_0x4b7b78=_0xcd06fa[_0x4a7bc7])&&(_0x3baf2d=(_0x4b1c45?_0x4b7b78(_0x1c81fa,_0x2e57a0,_0x3baf2d):_0x4b7b78(_0x3baf2d))||_0x3baf2d);return _0x4b1c45&&_0x3baf2d&&Yn(_0x1c81fa,_0x2e57a0,_0x3baf2d),_0x3baf2d;},cs=(_0x222d93,_0x5a4081)=>(_0x1ed2b4,_0x1e85bd)=>_0x5a4081(_0x1ed2b4,_0x1e85bd,_0x222d93);let _e=class extends _0x1ed84d{constructor(_0x26acc8,_0x4fb5b1){const _0x213161=_0x173fa3;super(),l(this,_0x213161(0x239),new Map()),(this[_0x213161(0x3f2)]=_0x26acc8,this[_0x213161(0x30a)]=_0x4fb5b1,this['disposeWithMe'](_0x4a9188(_0x378f3d(this[_0x213161(0x3f2)][_0x213161(0x33e)](_0x159e2d[_0x213161(0x4fa)])[_0x213161(0x35b)](_0x595c33(_0x25a4bc=>_0x25a4bc[_0x213161(0x253)]())),this['_univerInstanceService'][_0x213161(0x33e)](_0x159e2d[_0x213161(0x381)])[_0x213161(0x35b)](_0x595c33(_0x10a951=>_0x10a951[_0x213161(0x253)]())),this[_0x213161(0x3f2)]['getTypeOfUnitDisposed$'](_0x159e2d[_0x213161(0x243)])[_0x213161(0x35b)](_0x595c33(_0x5e10ed=>_0x5e10ed[_0x213161(0x253)]())))[_0x213161(0x3eb)](_0x111b72=>this[_0x213161(0x42e)](_0x111b72)))));}['setCurrentUser'](_0x5ab078){const _0x50d072=_0x173fa3;this['_userManagerService'][_0x50d072(0x29a)](_0x5ab078);}[_0x173fa3(0x2fc)](){const _0x2a4768=_0x173fa3;return this[_0x2a4768(0x30a)][_0x2a4768(0x2fc)]();}[_0x173fa3(0x424)](_0x27e41e,_0x584abd){const _0x3f4f83=_0x173fa3;let _0x535aca=this[_0x3f4f83(0x239)][_0x3f4f83(0x3c3)](_0x27e41e);_0x535aca||(_0x535aca=new qn(),this[_0x3f4f83(0x239)]['set'](_0x27e41e,_0x535aca)),_0x535aca['updateMember'](_0x584abd);}[_0x173fa3(0x377)](_0x181b3f,_0xf4914){const _0x168084=_0x173fa3,_0x2ebac2=this['_roomMembers'][_0x168084(0x3c3)](_0x181b3f);_0x2ebac2&&_0x2ebac2[_0x168084(0x377)](_0xf4914);}['getRoom'](_0x2de059){const _0x4d008f=_0x173fa3;return this['_roomMembers'][_0x4d008f(0x3c3)](_0x2de059);}[_0x173fa3(0x50b)](_0x586720,_0x48802a){const _0x1c8df7=_0x173fa3,_0x1f7c5c=this[_0x1c8df7(0x239)][_0x1c8df7(0x3c3)](_0x586720);if(_0x1f7c5c)return _0x1f7c5c[_0x1c8df7(0x50b)](_0x48802a);}[_0x173fa3(0x42e)](_0x690584){const _0x8867a7=_0x173fa3,_0x30f0d7=this[_0x8867a7(0x239)][_0x8867a7(0x3c3)](_0x690584);_0x30f0d7&&(_0x30f0d7['dispose'](),this['_roomMembers'][_0x8867a7(0x43b)](_0x690584));}[_0x173fa3(0x2c0)](){const _0x50f5bf=_0x173fa3;this[_0x50f5bf(0x239)]['forEach'](_0x19d221=>_0x19d221[_0x50f5bf(0x2c0)]()),this[_0x50f5bf(0x239)][_0x50f5bf(0x483)]();}};_e=Xn([cs(0x0,_0x1e8ecc),cs(0x1,_0x4f7ed2(_0x12c9bc))],_e);class qn extends _0x1ed84d{constructor(){const _0x51801c=_0x173fa3;super(...arguments),l(this,_0x51801c(0x300),new Map());}[_0x173fa3(0x2c0)](){const _0x2f1115=_0x173fa3;this['_members'][_0x2f1115(0x483)]();}[_0x173fa3(0x424)](_0x4525b6){const _0x39553e=_0x173fa3;this['_members'][_0x39553e(0x3e3)](_0x4525b6[_0x39553e(0x48d)],_0x4525b6);}['removeMember'](_0x322f91){const _0x11b163=_0x173fa3;this[_0x11b163(0x300)][_0x11b163(0x43b)](_0x322f91);}[_0x173fa3(0x50b)](_0x4dc039){const _0x14c231=_0x173fa3;return this[_0x14c231(0x300)][_0x14c231(0x3c3)](_0x4dc039);}}var Jn=Object[_0x173fa3(0x309)],zn=Object[_0x173fa3(0x4d5)],Zn=(_0x1374c5,_0x5dc884,_0x58ed1a,_0x1c88c5)=>{const _0x4f32c5=_0x173fa3;for(var _0x2eceb5=_0x1c88c5>0x1?void 0x0:_0x1c88c5?zn(_0x5dc884,_0x58ed1a):_0x5dc884,_0x1c1796=_0x1374c5[_0x4f32c5(0x223)]-0x1,_0xb3d6a4;_0x1c1796>=0x0;_0x1c1796--)(_0xb3d6a4=_0x1374c5[_0x1c1796])&&(_0x2eceb5=(_0x1c88c5?_0xb3d6a4(_0x5dc884,_0x58ed1a,_0x2eceb5):_0xb3d6a4(_0x2eceb5))||_0x2eceb5);return _0x1c88c5&&_0x2eceb5&&Jn(_0x5dc884,_0x58ed1a,_0x2eceb5),_0x2eceb5;},Z=(_0x24147d,_0xa9673f)=>(_0x22ff50,_0x2dd748)=>_0xa9673f(_0x22ff50,_0x2dd748,_0x24147d),X=(_0xd5556e=>(_0xd5556e[_0xd5556e[_0x173fa3(0x212)]=0x0]='IDLE',_0xd5556e[_0xd5556e['JOINING']=0x1]=_0x173fa3(0x338),_0xd5556e[_0xd5556e['OFFLINE']=0x2]=_0x173fa3(0x410),_0xd5556e[_0xd5556e[_0x173fa3(0x263)]=0x3]=_0x173fa3(0x263),_0xd5556e))(X||{});let Tt=class extends _0x13ba8e{constructor(_0x230a94,_0x48a46e,_0x2b06e9,_0x1dbea7,_0xd0e1e2,_0x59165f,_0x4c8ece,_0x23a74,_0x496bb4,_0x1a975e){const _0x3a5e18=_0x173fa3;super(),l(this,_0x3a5e18(0x318),new _0x37b5ce(0x0)),l(this,'sessionStatus$',this[_0x3a5e18(0x318)][_0x3a5e18(0x2e6)]()),l(this,_0x3a5e18(0x1bf),new _0x54d3a4()),l(this,'event$',this[_0x3a5e18(0x1bf)][_0x3a5e18(0x2e6)]()),l(this,_0x3a5e18(0x2f0)),l(this,'_socketMessageSubscription'),l(this,_0x3a5e18(0x336)),l(this,'_shouldReportTelemetry',!0x1),l(this,_0x3a5e18(0x329),null),(this[_0x3a5e18(0x37f)]=_0x230a94,this[_0x3a5e18(0x2cd)]=_0x2b06e9,this[_0x3a5e18(0x3fa)]=_0x1dbea7,this[_0x3a5e18(0x245)]=_0xd0e1e2,this[_0x3a5e18(0x205)]=_0x59165f,this[_0x3a5e18(0x2e7)]=_0x4c8ece,this[_0x3a5e18(0x1c9)]=_0x23a74,this[_0x3a5e18(0x420)]=_0x496bb4,this[_0x3a5e18(0x247)]=_0x1a975e,this[_0x3a5e18(0x4aa)]=!!this[_0x3a5e18(0x247)],_0x48a46e[_0x3a5e18(0x35b)](_0x223895(this[_0x3a5e18(0x2a1)]))[_0x3a5e18(0x3eb)](_0x105623=>{const _0x5ca9b9=_0x3a5e18;var _0x58a414;typeof _0x105623>'u'||(this[_0x5ca9b9(0x2f0)]=_0x105623,_0x105623?(this[_0x5ca9b9(0x3dd)](_0x105623),this[_0x5ca9b9(0x436)]=_0x105623[_0x5ca9b9(0x1f7)][_0x5ca9b9(0x3eb)](_0x1639a1=>{const _0x133d88=_0x5ca9b9;_0x1639a1[_0x133d88(0x50a)]===this['_unitID']&&this[_0x133d88(0x402)](_0x1639a1);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x5ca9b9(0x318)]['next'](0x2),(_0x58a414=this['_socketMessageSubscription'])==null||_0x58a414['unsubscribe'](),this[_0x5ca9b9(0x436)]=null));}),this['disposeWithMe'](this[_0x3a5e18(0x3fa)][_0x3a5e18(0x3aa)](()=>{const _0x362c53=_0x3a5e18;var _0x2703f4;(_0x2703f4=this[_0x362c53(0x2f0)])==null||_0x2703f4[_0x362c53(0x2ab)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x362c53(0x37f)]}});})));}get[_0x173fa3(0x21b)](){const _0x40161c=_0x173fa3;return this[_0x40161c(0x318)]['getValue']();}[_0x173fa3(0x32a)](){const _0x22a913=_0x173fa3;var _0xd88e7d,_0x482b4b;return(_0x482b4b=(_0xd88e7d=this['_socket'])==null?void 0x0:_0xd88e7d[_0x22a913(0x48d)])!=null?_0x482b4b:null;}[_0x173fa3(0x2c0)](){const _0x1114d2=_0x173fa3;super[_0x1114d2(0x2c0)](),this[_0x1114d2(0x2a1)][_0x1114d2(0x2d0)](),this['dispose$'][_0x1114d2(0x3b0)]();}[_0x173fa3(0x2e1)](){const _0x2ecbac=_0x173fa3;var _0x27b5b3,_0x1af916;this[_0x2ecbac(0x22b)](),(_0x27b5b3=this['_socket'])==null||_0x27b5b3[_0x2ecbac(0x2ab)]({'cmd':I[_0x2ecbac(0x275)],'data':{'roomID':this['_unitID']}}),(_0x1af916=this[_0x2ecbac(0x2f0)])==null||_0x1af916[_0x2ecbac(0x2e1)](),this[_0x2ecbac(0x1bf)]['complete'](),this[_0x2ecbac(0x318)][_0x2ecbac(0x3b0)](),this['dispose']();}[_0x173fa3(0x402)](_0x2de260){const _0x512df0=_0x173fa3;_0x2de260[_0x512df0(0x3f7)]===I[_0x512df0(0x4f5)]?this[_0x512df0(0x429)](_0x2de260):_0x2de260['cmd']===I[_0x512df0(0x337)]&&this['_onRecvEvent'](_0x2de260);}[_0x173fa3(0x3dd)](_0x1bb5c0){const _0x45c229=_0x173fa3;this[_0x45c229(0x318)][_0x45c229(0x2d0)](0x1),_0x1bb5c0[_0x45c229(0x2ab)]({'cmd':I[_0x45c229(0x4f5)],'routeKey':this[_0x45c229(0x37f)],'routeType':'','data':{'rooms':[{'roomID':this[_0x45c229(0x37f)]}]}});}[_0x173fa3(0x429)](_0x20196e){const _0x319693=_0x173fa3;var _0x102a4c;if(_0x20196e[_0x319693(0x3b6)]===Ft['FAIL']){this[_0x319693(0x245)]['show']({'type':_0x180cc7[_0x319693(0x44a)],'content':this[_0x319693(0x2e7)]['t'](_0x319693(0x21c))}),this[_0x319693(0x318)][_0x319693(0x2d0)](0x2);return;}this[_0x319693(0x318)]['next'](0x3);const _0x267b7a=(_0x102a4c=_0x20196e[_0x319693(0x411)]['roomInfos'][this[_0x319693(0x37f)]])==null?void 0x0:_0x102a4c[_0x319693(0x37d)];_0x267b7a&&_0x267b7a[_0x319693(0x47e)](_0x4fa663=>this[_0x319693(0x1c9)]['updateMember'](this[_0x319693(0x37f)],_0x4fa663));}[_0x173fa3(0x3e2)](_0x510702){const _0xa8b289=_0x173fa3;try{const _0x11ec3c=_0x510702[_0xa8b289(0x411)];switch(_0x11ec3c['eventID']){case _0x5f441e['USERS_ENTER']:this[_0xa8b289(0x2f9)](_0x11ec3c),this['_event$'][_0xa8b289(0x2d0)](_0x11ec3c);break;case _0x5f441e['USERS_LEAVE']:this[_0xa8b289(0x2cb)](_0x11ec3c),this[_0xa8b289(0x1bf)][_0xa8b289(0x2d0)](_0x11ec3c);break;case _0x5f441e[_0xa8b289(0x18d)]:case _0x5f441e[_0xa8b289(0x4b9)]:this[_0xa8b289(0x27f)](),this['_clearCollaborationTimeoutTimer'](),this[_0xa8b289(0x1bf)][_0xa8b289(0x2d0)](_0x11ec3c);break;case _0x5f441e[_0xa8b289(0x4d8)]:this['_logService'][_0xa8b289(0x3b8)](_0xa8b289(0x1be)+JSON[_0xa8b289(0x3ab)](_0x11ec3c)),this[_0xa8b289(0x1bf)][_0xa8b289(0x2d0)](_0x11ec3c);break;case _0x5f441e['COMMENT_UPDATE']:this[_0xa8b289(0x420)][_0xa8b289(0x388)](_0x11ec3c[_0xa8b289(0x411)]),this[_0xa8b289(0x1bf)][_0xa8b289(0x2d0)](_0x11ec3c);break;default:this[_0xa8b289(0x1bf)][_0xa8b289(0x2d0)](_0x11ec3c);}}catch(_0x4fde47){this['_logService']['error'](_0x4fde47,_0x510702);}}[_0x173fa3(0x2f9)](_0x37987f){const _0x4e5357=_0x173fa3;this[_0x4e5357(0x1c9)]['updateMember'](this[_0x4e5357(0x37f)],_0x37987f[_0x4e5357(0x411)]);}['_onUserLeave'](_0x3715f7){const _0x209d2f=_0x173fa3;this[_0x209d2f(0x1c9)][_0x209d2f(0x377)](this[_0x209d2f(0x37f)],_0x3715f7['data'][_0x209d2f(0x48d)]);}async[_0x173fa3(0x2ab)](_0x6e0d94,_0x4d7b83){const _0x51f77b=_0x173fa3;if(this[_0x51f77b(0x21b)]!==0x3||!this[_0x51f77b(0x2f0)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x6e0d94[_0x51f77b(0x278)]===_0x5f441e[_0x51f77b(0x453)]&&(this[_0x51f77b(0x3a6)](),this[_0x51f77b(0x445)](_0x6e0d94)),this[_0x51f77b(0x2f0)][_0x51f77b(0x2ab)]({'cmd':I[_0x51f77b(0x473)],'routeKey':_0x4d7b83,'routeType':'','data':_0x6e0d94});}catch(_0x70a314){this[_0x51f77b(0x2cd)][_0x51f77b(0x3b8)](_0x70a314);}}[_0x173fa3(0x3a6)](){const _0x359a43=_0x173fa3;var _0x5e1e48;this[_0x359a43(0x336)]=window[_0x359a43(0x4a5)](()=>{const _0x304c4e=_0x359a43;this[_0x304c4e(0x336)]=null,this[_0x304c4e(0x245)]['show']({'type':_0x180cc7['Error'],'content':this[_0x304c4e(0x2e7)]['t']('session.collaboration-timeout')});},(_0x5e1e48=this[_0x359a43(0x205)][_0x359a43(0x4c2)](Hs))!=null?_0x5e1e48:xs);}['_clearCollaborationTimeoutTimer'](){const _0x43e309=_0x173fa3;this[_0x43e309(0x336)]&&(clearTimeout(this[_0x43e309(0x336)]),this[_0x43e309(0x336)]=null);}[_0x173fa3(0x445)](_0x4b5a56){const _0x119bd5=_0x173fa3;if(!this[_0x119bd5(0x4aa)])return;const {data:_0x47044c}=_0x4b5a56,{unitID:_0x420e37,changeset:_0x48e3d0}=_0x47044c,{mutations:_0x265701,type:_0x365ea6}=_0x48e3d0;this[_0x119bd5(0x329)]={'unitId':_0x420e37,'type':_0x365ea6,'startTime':performance[_0x119bd5(0x45e)](),'stopTime':0x0,'duration':0x0,'size':Gn(_0x265701)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x3dcc8b=_0x173fa3;if(this[_0x3dcc8b(0x4aa)]){if(!this[_0x3dcc8b(0x329)]){this[_0x3dcc8b(0x2cd)]['error'](_0x3dcc8b(0x3c0),_0x3dcc8b(0x1bc));return;}this[_0x3dcc8b(0x329)][_0x3dcc8b(0x339)]=performance[_0x3dcc8b(0x45e)](),this['_telemetryInfo']['duration']=this[_0x3dcc8b(0x329)][_0x3dcc8b(0x339)]-this[_0x3dcc8b(0x329)][_0x3dcc8b(0x3a0)],this['_telemetryService'][_0x3dcc8b(0x241)](Wn,this['_telemetryInfo']),this[_0x3dcc8b(0x329)]=null;}}[_0x173fa3(0x22b)](){const _0x58a418=_0x173fa3;this[_0x58a418(0x329)]=null;}};Tt=Zn([Z(0x2,_0x4329b1),Z(0x3,_0x3b10e0),Z(0x4,_0x46e149),Z(0x5,_0x13b27e),Z(0x6,_0x4f7ed2(_0x15839b)),Z(0x7,_0x4f7ed2(_e)),Z(0x8,_0x4f7ed2(Fs)),Z(0x9,_0x532e88(_0x41517f))],Tt);var Qn=Object['defineProperty'],er=Object[_0x173fa3(0x4d5)],tr=(_0x31d96d,_0x59c4ce,_0x174dac,_0x1508a7)=>{for(var _0x3df69b=_0x1508a7>0x1?void 0x0:_0x1508a7?er(_0x59c4ce,_0x174dac):_0x59c4ce,_0x887955=_0x31d96d['length']-0x1,_0x5071d7;_0x887955>=0x0;_0x887955--)(_0x5071d7=_0x31d96d[_0x887955])&&(_0x3df69b=(_0x1508a7?_0x5071d7(_0x59c4ce,_0x174dac,_0x3df69b):_0x5071d7(_0x3df69b))||_0x3df69b);return _0x1508a7&&_0x3df69b&&Qn(_0x59c4ce,_0x174dac,_0x3df69b),_0x3df69b;},Se=(_0x18103f,_0x2b26a7)=>(_0x48b0cd,_0x3e4dee)=>_0x2b26a7(_0x48b0cd,_0x3e4dee,_0x18103f);let ue=class extends _0x1ed84d{constructor(_0x4d0e1a,_0x100e65,_0x388bbe,_0x2dbb9d,_0x22d99a,_0x56ea52){const _0x4fd865=_0x173fa3;super(),l(this,_0x4fd865(0x332),new _0x37b5ce(void 0x0)),l(this,_0x4fd865(0x2f2),this[_0x4fd865(0x332)][_0x4fd865(0x2e6)]()),l(this,_0x4fd865(0x4f2),null),l(this,'_sessions',new Map()),l(this,_0x4fd865(0x368),new _0x37b5ce(X[_0x4fd865(0x212)])),l(this,_0x4fd865(0x28e),this[_0x4fd865(0x368)][_0x4fd865(0x2e6)]()),l(this,_0x4fd865(0x4ee),!0x1),l(this,_0x4fd865(0x23e)),l(this,_0x4fd865(0x213),0x0),l(this,_0x4fd865(0x4be)),l(this,'_timeoutTimer'),(this['_injector']=_0x4d0e1a,this['_localeService']=_0x100e65,this[_0x4fd865(0x245)]=_0x388bbe,this[_0x4fd865(0x2cd)]=_0x2dbb9d,this[_0x4fd865(0x205)]=_0x22d99a,this[_0x4fd865(0x4e2)]=_0x56ea52,this['_initEventListeners']());}get[_0x173fa3(0x2f0)](){return this['_socket$']['getValue']();}['_initEventListeners'](){this['_listenToOfflineEvent'](),this['_listenToOnlineEvent']();}[_0x173fa3(0x2c0)](){const _0x530e41=_0x173fa3;super[_0x530e41(0x2c0)](),this[_0x530e41(0x2cf)][_0x530e41(0x47e)](_0x220ce4=>_0x220ce4[_0x530e41(0x2c0)]()),this[_0x530e41(0x2cf)][_0x530e41(0x483)](),this[_0x530e41(0x368)][_0x530e41(0x3b0)]();}async[_0x173fa3(0x395)](_0x3f71d8){const _0x5ebd01=_0x173fa3;if(this['_sessions']['has'](_0x3f71d8))return this[_0x5ebd01(0x2cf)]['get'](_0x3f71d8);this[_0x5ebd01(0x438)]();const _0x3b09c9=this[_0x5ebd01(0x4b7)][_0x5ebd01(0x31f)](Tt,_0x3f71d8,this['_socket$'][_0x5ebd01(0x2e6)]());return this[_0x5ebd01(0x2cf)][_0x5ebd01(0x3e3)](_0x3f71d8,_0x3b09c9),_0x3b09c9;}[_0x173fa3(0x42a)](_0x1e8efb){const _0x5932cf=_0x173fa3;var _0x55f63f;const _0x1263e7=this[_0x5932cf(0x2cf)][_0x5932cf(0x3c3)](_0x1e8efb);_0x1263e7&&(this[_0x5932cf(0x2cf)][_0x5932cf(0x43b)](_0x1e8efb),_0x1263e7['close']()),this[_0x5932cf(0x2cf)][_0x5932cf(0x46d)]||(_0x55f63f=this[_0x5932cf(0x2f0)])==null||_0x55f63f[_0x5932cf(0x2e1)]();}[_0x173fa3(0x2e0)](){const _0x1a670c=_0x173fa3;this[_0x1a670c(0x213)]=0x0,this[_0x1a670c(0x23e)]!=null&&(clearTimeout(this[_0x1a670c(0x23e)]),this[_0x1a670c(0x23e)]=null),this['_tryReconnect']();}['_createSocket'](){const _0x18aefc=_0x173fa3;var _0x468bf2,_0x4786e6;const _0x298def=this[_0x18aefc(0x205)]['getConfig'](Tn),_0x39dcdb=this[_0x18aefc(0x205)]['getConfig'](j),_0xccf206=(_0x4786e6=(_0x468bf2=_0x39dcdb==null?void 0x0:_0x39dcdb[_0x18aefc(0x4fd)])!=null?_0x468bf2:_0x298def)!=null?_0x4786e6:Rn,_0x39f643=this[_0x18aefc(0x4e2)][_0x18aefc(0x31a)](_0xccf206);return this[_0x18aefc(0x4f2)]=_0x39f643,_0x39f643;}[_0x173fa3(0x438)](){const _0xc8e66c=_0x173fa3;var _0x1ffc17,_0xdfa0d7;try{const _0x2cf624=(_0xdfa0d7=(_0x1ffc17=this[_0xc8e66c(0x2f0)])!=null?_0x1ffc17:this[_0xc8e66c(0x4f2)])!=null?_0xdfa0d7:this['_createSocket']();if(_0x2cf624){const _0x496989=_0x2cf624['send'];_0x2cf624[_0xc8e66c(0x2ab)]=_0x1fd5b1=>(this['_rescheduleHeartbeat'](),_0x496989[_0xc8e66c(0x1a9)](_0x2cf624,[_0x1fd5b1])),_0x2cf624[_0xc8e66c(0x1f7)][_0xc8e66c(0x3eb)](_0x227e54=>this[_0xc8e66c(0x422)](_0x2cf624,_0x227e54)),_0x2cf624[_0xc8e66c(0x2c5)]['pipe'](_0x4b16ab(0x1))[_0xc8e66c(0x3eb)](_0x526f76=>this['_logService']['error'](_0xc8e66c(0x4ed),_0x526f76)),_0x2cf624[_0xc8e66c(0x50f)]['pipe'](_0x4b16ab(0x1))[_0xc8e66c(0x3eb)](()=>{this['_onConnectionOpen'](_0x2cf624);}),_0x2cf624[_0xc8e66c(0x4e8)][_0xc8e66c(0x35b)](_0x4b16ab(0x1))[_0xc8e66c(0x3eb)](_0x594c6b=>{const _0x4c46a3=_0xc8e66c;this['_logService']['debug'](_0x4c46a3(0x4e5),_0x4c46a3(0x353),_0x594c6b),this[_0x4c46a3(0x376)]();});}}catch(_0xeef5ec){this[_0xc8e66c(0x2cd)][_0xc8e66c(0x3b8)](_0xeef5ec),this['_onConnectionFailed']();}}[_0x173fa3(0x4c5)](_0x48231e){const _0x26da6e=_0x173fa3;this['_logService'][_0x26da6e(0x28a)](_0x26da6e(0x4e5),_0x26da6e(0x444)),_0x48231e[_0x26da6e(0x2ab)]({'cmd':I[_0x26da6e(0x1a6)]}),this[_0x26da6e(0x2e2)]();}[_0x173fa3(0x396)](){const _0x2583f6=_0x173fa3;window['addEventListener'](_0x2583f6(0x235),()=>this[_0x2583f6(0x2a5)]());}['_onOffline'](){const _0x2a058c=_0x173fa3;this['_socketReady']=!0x1,this[_0x2a058c(0x4f2)]=null,this[_0x2a058c(0x368)][_0x2a058c(0x2d0)](X['OFFLINE']),this[_0x2a058c(0x332)]['next'](null),this[_0x2a058c(0x305)](),this['_clearHeartbeatTimer']();}[_0x173fa3(0x376)](){const _0xd47cdc=_0x173fa3;var _0xbfca80;this[_0xd47cdc(0x2a5)](),this['_retryCount']<((_0xbfca80=this['_configService'][_0xd47cdc(0x4c2)](Pn))!=null?_0xbfca80:yn)?(this[_0xd47cdc(0x245)][_0xd47cdc(0x1e6)]({'key':_0xd47cdc(0x447),'type':_0x180cc7[_0xd47cdc(0x44a)],'content':this[_0xd47cdc(0x2e7)]['t'](_0xd47cdc(0x4af))}),this[_0xd47cdc(0x4b3)]()):this[_0xd47cdc(0x245)][_0xd47cdc(0x1e6)]({'key':_0xd47cdc(0x447),'type':_0x180cc7[_0xd47cdc(0x1c4)],'content':this[_0xd47cdc(0x2e7)]['t'](_0xd47cdc(0x3ff))});}[_0x173fa3(0x1c2)](){const _0xb41e8a=_0x173fa3,_0x2f7fa9=()=>{const _0x520080=_0x33c3;this[_0x520080(0x2f0)]||this[_0x520080(0x2e0)]();},_0x2821a7=()=>{const _0x1263d8=_0x33c3;this[_0x1263d8(0x2f0)]||document[_0x1263d8(0x457)]==='hidden'||this[_0x1263d8(0x2e0)]();};window[_0xb41e8a(0x22e)](_0xb41e8a(0x1ba),_0x2f7fa9),document[_0xb41e8a(0x22e)](_0xb41e8a(0x3d3),_0x2821a7);}[_0x173fa3(0x4b3)](){const _0x259236=_0x173fa3;var _0xe62698;const _0x521af8=this['_retryCount'],_0x5cef78=this['_configService']['getConfig'](j),_0x39d283=_0x521af8===0x0?0x0:((_0xe62698=_0x5cef78==null?void 0x0:_0x5cef78[_0x259236(0x297)])!=null?_0xe62698:wn)*0x2**_0x521af8;this[_0x259236(0x23e)]=window[_0x259236(0x4a5)](()=>{const _0x6072d1=_0x259236;clearTimeout(this['_retryConnectingTimer']),this[_0x6072d1(0x23e)]=null,this['_tryEnsureSocket']();},_0x39d283),this['_retryCount']+=0x1;}[_0x173fa3(0x422)](_0x2c710c,_0x4396a7){const _0x174709=_0x173fa3,{cmd:_0x40baed}=_0x4396a7;_0x40baed===I[_0x174709(0x1a6)]&&!this['_socketReady']&&(_0x2c710c[_0x174709(0x48d)]=_0x4396a7[_0x174709(0x411)][_0x174709(0x48d)],this[_0x174709(0x332)]['next'](_0x2c710c),this[_0x174709(0x368)][_0x174709(0x2d0)](X[_0x174709(0x263)]),this['_socketReady']=!0x0,this[_0x174709(0x4f2)]=null),_0x40baed===I[_0x174709(0x45b)]&&this[_0x174709(0x305)](),this[_0x174709(0x2e2)]();}[_0x173fa3(0x2e2)](){const _0x5078f7=_0x173fa3;var _0x3db965;this[_0x5078f7(0x1de)](),this[_0x5078f7(0x4be)]=window[_0x5078f7(0x4a5)](()=>this[_0x5078f7(0x47d)](),(_0x3db965=this['_configService'][_0x5078f7(0x4c2)](On))!=null?_0x3db965:Dn);}['_sendHeartbeat'](){const _0x5d1c18=_0x173fa3;this[_0x5d1c18(0x2f0)][_0x5d1c18(0x2ab)]({'cmd':I[_0x5d1c18(0x45b)]}),this[_0x5d1c18(0x323)]();}[_0x173fa3(0x323)](){const _0x172832=_0x173fa3;var _0x2a5c0a;this[_0x172832(0x27c)]=window[_0x172832(0x4a5)](()=>this[_0x172832(0x376)](),(_0x2a5c0a=this[_0x172832(0x205)][_0x172832(0x4c2)](Hs))!=null?_0x2a5c0a:xs);}['_clearHeartbeatTimer'](){const _0x27686d=_0x173fa3;this[_0x27686d(0x4be)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x27686d(0x4be)]=null);}[_0x173fa3(0x305)](){const _0x526d05=_0x173fa3;this[_0x526d05(0x27c)]!=null&&(clearTimeout(this[_0x526d05(0x27c)]),this[_0x526d05(0x27c)]=null);}};ue=tr([Se(0x0,_0x4f7ed2(_0x3b0750)),Se(0x1,_0x4f7ed2(_0x15839b)),Se(0x2,_0x46e149),Se(0x3,_0x4329b1),Se(0x4,_0x13b27e),Se(0x5,Vs)],ue);var T=[];for(var ht=0x0;ht<0x100;++ht)T[_0x173fa3(0x1da)]((ht+0x100)[_0x173fa3(0x358)](0x10)[_0x173fa3(0x36a)](0x1));function sr(_0x17a07d,_0x3b1b72=0x0){const _0x407847=_0x173fa3;return(T[_0x17a07d[_0x3b1b72+0x0]]+T[_0x17a07d[_0x3b1b72+0x1]]+T[_0x17a07d[_0x3b1b72+0x2]]+T[_0x17a07d[_0x3b1b72+0x3]]+'-'+T[_0x17a07d[_0x3b1b72+0x4]]+T[_0x17a07d[_0x3b1b72+0x5]]+'-'+T[_0x17a07d[_0x3b1b72+0x6]]+T[_0x17a07d[_0x3b1b72+0x7]]+'-'+T[_0x17a07d[_0x3b1b72+0x8]]+T[_0x17a07d[_0x3b1b72+0x9]]+'-'+T[_0x17a07d[_0x3b1b72+0xa]]+T[_0x17a07d[_0x3b1b72+0xb]]+T[_0x17a07d[_0x3b1b72+0xc]]+T[_0x17a07d[_0x3b1b72+0xd]]+T[_0x17a07d[_0x3b1b72+0xe]]+T[_0x17a07d[_0x3b1b72+0xf]])[_0x407847(0x3a7)]();}var ke,ir=new Uint8Array(0x10);function nr(){const _0x15d50d=_0x173fa3;if(!ke&&(ke=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x15d50d(0x2d4)]['bind'](crypto),!ke))throw new Error(_0x15d50d(0x351));return ke(ir);}var rr=typeof crypto<'u'&&crypto[_0x173fa3(0x1a5)]&&crypto[_0x173fa3(0x1a5)][_0x173fa3(0x1cb)](crypto);const hs={'randomUUID':rr};function or(_0x35f561,_0x30e2db,_0x2bcdcb){const _0x160eaa=_0x173fa3;if(hs[_0x160eaa(0x1a5)]&&!_0x30e2db&&!_0x35f561)return hs['randomUUID']();_0x35f561=_0x35f561||{};var _0x1971e8=_0x35f561[_0x160eaa(0x4d1)]||(_0x35f561['rng']||nr)();return _0x1971e8[0x6]=_0x1971e8[0x6]&0xf|0x40,_0x1971e8[0x8]=_0x1971e8[0x8]&0x3f|0x80,sr(_0x1971e8);}var ar=Object[_0x173fa3(0x309)],cr=Object[_0x173fa3(0x4d5)],hr=(_0x507c45,_0x19f259,_0x2d6cf9,_0xd1e17)=>{for(var _0x27cddf=_0xd1e17>0x1?void 0x0:_0xd1e17?cr(_0x19f259,_0x2d6cf9):_0x19f259,_0x17eb0c=_0x507c45['length']-0x1,_0x46df26;_0x17eb0c>=0x0;_0x17eb0c--)(_0x46df26=_0x507c45[_0x17eb0c])&&(_0x27cddf=(_0xd1e17?_0x46df26(_0x19f259,_0x2d6cf9,_0x27cddf):_0x46df26(_0x27cddf))||_0x27cddf);return _0xd1e17&&_0x27cddf&&ar(_0x19f259,_0x2d6cf9,_0x27cddf),_0x27cddf;},lt=(_0x1e23b4,_0xadc199)=>(_0x1caad8,_0x55fac5)=>_0xadc199(_0x1caad8,_0x55fac5,_0x1e23b4);let Xe=class{constructor(_0x3670db,_0x160a65,_0x3525e2){const _0x3e2103=_0x173fa3;this['_injector']=_0x3670db,this[_0x3e2103(0x387)]=_0x160a65,this[_0x3e2103(0x3f6)]=_0x3525e2;}[_0x173fa3(0x334)](_0xec9d0c){const _0x16ad77=_0x173fa3;this['_transformUndoRedoStack'](_0xec9d0c),this[_0x16ad77(0x431)](_0xec9d0c);}['transformRemoteChangeset'](_0x4d9df6){const _0x5e58ac=_0x173fa3,{unitID:_0x5e0698}=_0x4d9df6,_0x5ed33e=this[_0x5e58ac(0x3f6)][_0x5e58ac(0x468)](_0x5e0698)[_0x5e58ac(0x32f)](_0x153626),{redoCache:_0x60b187}=_0x5ed33e[_0x5e58ac(0x48e)]();if(_0x60b187[_0x5e58ac(0x223)]===0x0)return _0x4d9df6;let _0x40b47e=_0x58e8f0[_0x5e58ac(0x4c7)](_0x4d9df6[_0x5e58ac(0x4cd)][0x0]);for(let _0x2b0a98=0x0;_0x2b0a98<_0x60b187[_0x5e58ac(0x223)];_0x2b0a98++){const _0x57dd67={'id':_0x5e58ac(0x21f),'params':{..._0x60b187[_0x2b0a98]}},_0x561cc2=this[_0x5e58ac(0x387)][_0x5e58ac(0x343)](_0x40b47e,_0x57dd67,!0x1);if(_0x44527a(_0x561cc2))throw _0x561cc2[_0x5e58ac(0x3b8)];_0x40b47e=_0x561cc2[_0x5e58ac(0x443)];}return{..._0x58e8f0[_0x5e58ac(0x4c7)](_0x4d9df6),'mutations':[_0x40b47e]};}[_0x173fa3(0x4ef)](_0x3f4959){const _0x3cdf5c=_0x173fa3,{unitID:_0x26ff0b}=_0x3f4959,_0x971938=this[_0x3cdf5c(0x3f6)][_0x3cdf5c(0x468)](_0x26ff0b)[_0x3cdf5c(0x32f)](_0x153626),{undoCache:_0x1069c0,redoCache:_0x301479}=_0x971938[_0x3cdf5c(0x48e)]();if(_0x1069c0['length']===0x0||_0x301479[_0x3cdf5c(0x223)]===0x0)return;const _0x2bbb0a=[],_0x1f6550=[];let _0x25c7db=_0x58e8f0[_0x3cdf5c(0x4c7)](_0x3f4959[_0x3cdf5c(0x4cd)][0x0]),_0x3456c0=_0x58e8f0[_0x3cdf5c(0x4c7)](_0x3f4959[_0x3cdf5c(0x4cd)][0x0]);for(let _0x4f582a=_0x1069c0['length']-0x1;_0x4f582a>=0x0;_0x4f582a--){const _0x8ab0a0={'id':_0x3cdf5c(0x21f),'params':{..._0x1069c0[_0x4f582a]}},_0x731f52={'id':'doc.mutation.rich-text-editing','params':{..._0x301479[_0x4f582a]}},_0xbe9e12=this[_0x3cdf5c(0x387)]['transformMutation'](_0x25c7db,_0x8ab0a0,!0x1),_0x2a6a9d=this[_0x3cdf5c(0x387)]['transformMutation'](_0x3456c0,_0x731f52,!0x1);if(_0x44527a(_0xbe9e12))throw _0xbe9e12[_0x3cdf5c(0x3b8)];if(_0x44527a(_0x2a6a9d))throw _0x2a6a9d[_0x3cdf5c(0x3b8)];_0x2bbb0a[_0x3cdf5c(0x23b)](_0xbe9e12[_0x3cdf5c(0x197)][_0x3cdf5c(0x465)]),_0x1f6550[_0x3cdf5c(0x23b)](_0x2a6a9d['m2Prime']['params']),_0x25c7db=_0xbe9e12['m1Prime'],_0x3456c0=_0x2a6a9d[_0x3cdf5c(0x443)];}_0x971938[_0x3cdf5c(0x4c4)]({'undoCache':_0x2bbb0a,'redoCache':_0x1f6550});}[_0x173fa3(0x431)](_0x14a019){const _0x5b9c9a=_0x173fa3,{unitID:_0x4d5d0c}=_0x14a019,_0x31089f=this['_renderManagerService'][_0x5b9c9a(0x468)](_0x4d5d0c)[_0x5b9c9a(0x32f)](_0x153626),_0x733b66=_0x31089f['getActiveRange']();if(_0x733b66==null)return;const _0x1c42ac=[{'id':_0x5b9c9a(0x21f),'params':{'unitId':_0x14a019[_0x5b9c9a(0x23a)],'actions':null,'textRanges':[_0x733b66]}}],_0x6bd811=this[_0x5b9c9a(0x387)][_0x5b9c9a(0x3a5)](_0x14a019,_0x1c42ac);if(!_0x2c439f(_0x6bd811))throw _0x6bd811[_0x5b9c9a(0x3b8)];const _0x50f8c7=_0x6bd811[_0x5b9c9a(0x197)][0x0]['params'][_0x5b9c9a(0x3cc)];Array[_0x5b9c9a(0x498)](_0x50f8c7)&&_0x50f8c7['length']&&_0x31089f['setActiveRange'](_0x50f8c7[0x0]);}};Xe=hr([lt(0x0,_0x4f7ed2(_0x3b0750)),lt(0x1,_0x4a8bc3),lt(0x2,_0x2855ab)],Xe);var lr=Object[_0x173fa3(0x309)],_r=Object[_0x173fa3(0x4d5)],ur=(_0x1518d9,_0x4f2b87,_0x45b199,_0x2595a0)=>{const _0xa78bbe=_0x173fa3;for(var _0x472876=_0x2595a0>0x1?void 0x0:_0x2595a0?_r(_0x4f2b87,_0x45b199):_0x4f2b87,_0x28bd6c=_0x1518d9[_0xa78bbe(0x223)]-0x1,_0x22563a;_0x28bd6c>=0x0;_0x28bd6c--)(_0x22563a=_0x1518d9[_0x28bd6c])&&(_0x472876=(_0x2595a0?_0x22563a(_0x4f2b87,_0x45b199,_0x472876):_0x22563a(_0x472876))||_0x472876);return _0x2595a0&&_0x472876&&lr(_0x4f2b87,_0x45b199,_0x472876),_0x472876;},we=(_0x5ac1e1,_0x1bb620)=>(_0x4eb18d,_0x57e16e)=>_0x1bb620(_0x4eb18d,_0x57e16e,_0x5ac1e1);let D=class extends _0x1ed84d{constructor(_0x5c69d9,_0x393f2b,_0x5779a0,_0x5cddbd,_0x5de830){const _0x346f7e=_0x173fa3;super(),l(this,_0x346f7e(0x37b),new Map()),l(this,_0x346f7e(0x3e7),new Map()),l(this,_0x346f7e(0x266),!0x1),(this['_configService']=_0x5c69d9,this[_0x346f7e(0x1ff)]=_0x393f2b,this[_0x346f7e(0x3fa)]=_0x5779a0,this['_localeService']=_0x5cddbd,this['_revisionService']=_0x5de830,this[_0x346f7e(0x349)]());}['disableLocalCache'](){const _0x3889cc=_0x173fa3;this[_0x3889cc(0x266)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}['dispose'](){const _0x4fa606=_0x173fa3;this[_0x4fa606(0x256)]()[_0x4fa606(0x375)](()=>super[_0x4fa606(0x2c0)]());}async[_0x173fa3(0x302)](_0x3bff55){const _0x55c45f=_0x173fa3;return this[_0x55c45f(0x266)]?null:this[_0x55c45f(0x1ff)][_0x55c45f(0x4c1)](ls(_0x3bff55));}async[_0x173fa3(0x319)](_0x381ce1,_0x1868ec){const _0x3f2dd4=_0x173fa3;return!!this[_0x3f2dd4(0x1ff)][_0x3f2dd4(0x4e0)](_0x381ce1,_0x1868ec);}[_0x173fa3(0x234)](_0x2d3910,_0x2d4152,_0x3e2a9f,_0x35a94b){const _0x1cfa9e=_0x173fa3,_0x9eedb8=this['_revisionService'][_0x1cfa9e(0x462)](_0x2d3910);this[_0x1cfa9e(0x37b)][_0x1cfa9e(0x3e3)](_0x2d3910,{'unitID':_0x2d3910,'type':_0x2d4152,'awaitingChangeset':_0x3e2a9f,'mutations':_0x35a94b,'rev':_0x9eedb8}),this['_saveTaskMap'][_0x1cfa9e(0x432)](_0x2d3910)||this[_0x1cfa9e(0x451)](_0x2d3910);}[_0x173fa3(0x451)](_0x57908c){const _0x4a2e92=_0x173fa3,_0x45cf18=this[_0x4a2e92(0x299)]();_0x45cf18===0x0?this[_0x4a2e92(0x1b8)](_0x57908c):this[_0x4a2e92(0x3e7)][_0x4a2e92(0x3e3)](_0x57908c,setTimeout(()=>this[_0x4a2e92(0x1b8)](_0x57908c),_0x45cf18));}[_0x173fa3(0x299)](){const _0x2e7238=_0x173fa3;var _0x3a3a33;return(_0x3a3a33=this[_0x2e7238(0x205)][_0x2e7238(0x4c2)](Un))!=null?_0x3a3a33:Nn;}[_0x173fa3(0x1b8)](_0x33c726){const _0x2b7037=_0x173fa3,_0x232089=this[_0x2b7037(0x3e7)][_0x2b7037(0x3c3)](_0x33c726);return _0x232089!==void 0x0&&window[_0x2b7037(0x29c)](_0x232089),this['_localStorageService']['setItem'](ls(_0x33c726),this['_cachedData']['get'](_0x33c726))[_0x2b7037(0x375)](()=>this[_0x2b7037(0x3e7)][_0x2b7037(0x43b)](_0x33c726));}async['exhaustSavingTask'](){const _0x1fd074=_0x173fa3,_0xd5d8b9=[];this[_0x1fd074(0x3e7)]['forEach']((_0x15501f,_0x1aba47)=>{const _0x56e27c=_0x1fd074;window[_0x56e27c(0x29c)](_0x15501f),_0xd5d8b9[_0x56e27c(0x1da)](this[_0x56e27c(0x1b8)](_0x1aba47)[_0x56e27c(0x375)](()=>{const _0x80b18e=_0x56e27c;this[_0x80b18e(0x3e7)][_0x80b18e(0x43b)](_0x1aba47);}));}),await Promise[_0x1fd074(0x464)](_0xd5d8b9);}['_setupBeforeClosingHandler'](){const _0x4c93bf=_0x173fa3;this['disposeWithMe'](this[_0x4c93bf(0x3fa)][_0x4c93bf(0x2df)](()=>{const _0x278308=_0x4c93bf;if(this[_0x278308(0x3e7)]['size'])return this[_0x278308(0x2e7)]['t'](_0x278308(0x3bc));}));}};D=ur([we(0x0,_0x13b27e),we(0x1,_0x71f972),we(0x2,_0x3b10e0),we(0x3,_0x4f7ed2(_0x15839b)),we(0x4,_0x4f7ed2(_0x6cbd2e))],D);function ls(_0x4451e0){const _0x7eb033=_0x173fa3;return _0x7eb033(0x491)+_0x4451e0;}var dr=Object[_0x173fa3(0x309)],mr=Object['getOwnPropertyDescriptor'],fr=(_0x4dad28,_0xa373ff,_0x41cb3e,_0x4c8854)=>{for(var _0x2947ef=_0x4c8854>0x1?void 0x0:_0x4c8854?mr(_0xa373ff,_0x41cb3e):_0xa373ff,_0x50be2e=_0x4dad28['length']-0x1,_0x149d14;_0x50be2e>=0x0;_0x50be2e--)(_0x149d14=_0x4dad28[_0x50be2e])&&(_0x2947ef=(_0x4c8854?_0x149d14(_0xa373ff,_0x41cb3e,_0x2947ef):_0x149d14(_0x2947ef))||_0x2947ef);return _0x4c8854&&_0x2947ef&&dr(_0xa373ff,_0x41cb3e,_0x2947ef),_0x2947ef;},_t=(_0x29a10a,_0x247b46)=>(_0x483ed8,_0x4726f7)=>_0x247b46(_0x483ed8,_0x4726f7,_0x29a10a);function gr(_0x1b3813){const _0x23acc5=_0x173fa3,{unitID:_0x2a5f55,mutations:_0x587413}=_0x1b3813;return{'unitId':_0x2a5f55,'subUnitId':_0x587413[0x0]['params'][_0x23acc5(0x348)]};}let qe=class{constructor(_0xac4993,_0x4d72a0,_0x3ec76f){const _0x10eb1b=_0x173fa3;this['_injector']=_0xac4993,this[_0x10eb1b(0x387)]=_0x4d72a0,this[_0x10eb1b(0x44d)]=_0x3ec76f;}[_0x173fa3(0x366)](_0x2992d3){const _0x1325f2=_0x173fa3;var _0x107926,_0x3acb7a,_0x176f2c,_0x2a5ca0;const _0x25072b=this['_injector'][_0x1325f2(0x3c3)](_0x15d139),{unitId:_0x584e37,subUnitId:_0x54a402}=gr(_0x2992d3),_0x325c6d=_0x25072b['getWorkbookSelections'](_0x584e37)['getCurrentSelections'](),_0x5cdf09=(_0x3acb7a=(_0x107926=this[_0x1325f2(0x44d)][_0x1325f2(0x2c3)](_0x584e37))==null?void 0x0:_0x107926['getActiveSheet']())==null?void 0x0:_0x3acb7a[_0x1325f2(0x3b7)]();if(_0x325c6d['length']===0x0||!_0x584e37||!_0x54a402)return;const _0x5f238d=[{'id':_0x455e5a['id'],'params':{'unitId':_0x584e37,'subUnitId':_0x5cdf09,'selections':_0x58e8f0['deepClone'](_0x325c6d)}}],_0x134aef=this[_0x1325f2(0x387)]['transformMutationsWithChangeset'](_0x2992d3,_0x5f238d);if(!_0x2c439f(_0x134aef))throw _0x134aef['error'];const _0x31dc61=(_0x2a5ca0=(_0x176f2c=_0x134aef[_0x1325f2(0x197)][0x0])==null?void 0x0:_0x176f2c['params'])==null?void 0x0:_0x2a5ca0[_0x1325f2(0x287)];if(Array[_0x1325f2(0x498)](_0x31dc61)&&_0x31dc61['length']){if(_0x31dc61[_0x1325f2(0x223)]===_0x5f238d[0x0][_0x1325f2(0x465)][_0x1325f2(0x287)][_0x1325f2(0x223)]&&_0x31dc61[_0x1325f2(0x1a8)]((_0x5b20f0,_0x234275)=>_0xa8b8a6['equals'](_0x5b20f0[_0x1325f2(0x1f1)],_0x5f238d[0x0]['params'][_0x1325f2(0x287)][_0x234275][_0x1325f2(0x1f1)])))return;this[_0x1325f2(0x4b7)][_0x1325f2(0x3c3)](_0xdec94a)[_0x1325f2(0x1d2)](_0x455e5a['id'],{'unitId':_0x584e37,'subUnitId':_0x5cdf09,'selections':_0x31dc61});}}};qe=fr([_t(0x0,_0x4f7ed2(_0x3b0750)),_t(0x1,_0x4a8bc3),_t(0x2,_0x1e8ecc)],qe);const it=_0x1a0c31(_0x173fa3(0x35f));var Ws=(_0x450102=>(_0x450102[_0x450102[_0x173fa3(0x252)]=0x0]=_0x173fa3(0x252),_0x450102[_0x450102['OTHER_CLIENTS_EDITING']=0x1]=_0x173fa3(0x3b9),_0x450102))(Ws||{});const _s=0x7530,us=_0x173fa3(0x20c);class Sr extends _0x1ed84d{constructor(){const _0x45a0a9=_0x173fa3;super(),l(this,_0x45a0a9(0x414),_0x58e8f0[_0x45a0a9(0x31e)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x45a0a9(0x2f8),new Map()),l(this,_0x45a0a9(0x1bb),null),l(this,_0x45a0a9(0x1dc),new Map()),l(this,_0x45a0a9(0x378),new Map()),this[_0x45a0a9(0x367)]();}[_0x173fa3(0x2c0)](){const _0x28af94=_0x173fa3;super[_0x28af94(0x2c0)](),this[_0x28af94(0x1dc)][_0x28af94(0x47e)]((_0x4b5ae5,_0x50426c)=>this['_removeClearOtherTimer'](_0x50426c)),this[_0x28af94(0x1bb)]&&window[_0x28af94(0x2be)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x1e14d4){const _0x9422a6=_0x173fa3;return this[_0x9422a6(0x1aa)](_0x1e14d4)[_0x9422a6(0x35b)](_0x38f940());}['editingUnit'](_0xea2379){const _0x5dcec4=_0x173fa3;this[_0x5dcec4(0x26d)][_0x5dcec4(0x46d)]===0x0&&this[_0x5dcec4(0x2a3)](),this[_0x5dcec4(0x26d)]['add'](_0xea2379),this[_0x5dcec4(0x2e9)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xea2379],'isForwarded':!0x1});}[_0x173fa3(0x3ee)](_0x2e43af){const _0x1343b9=_0x173fa3;this['_selfUnitIDs']['delete'](_0x2e43af),this['_selfUnitIDs'][_0x1343b9(0x46d)]===0x0&&this[_0x1343b9(0x1bb)]&&window[_0x1343b9(0x2be)](this[_0x1343b9(0x1bb)]);}[_0x173fa3(0x367)](){const _0x4ebe06=_0x173fa3;this['disposeWithMe'](_0x4a9188(_0x25f31e(window,_0x4ebe06(0x357))[_0x4ebe06(0x3eb)](_0x4a0f3a=>{const _0x5da9e7=_0x4ebe06;if(_0x4a0f3a[_0x5da9e7(0x240)]!==us||!_0x4a0f3a[_0x5da9e7(0x3a8)])return;const _0x416887=JSON[_0x5da9e7(0x1a3)](_0x4a0f3a[_0x5da9e7(0x3a8)]);this[_0x5da9e7(0x496)](_0x416887);}))),window['addEventListener'](_0x4ebe06(0x372),()=>this['_send']({'type':0x1,'memberID':this[_0x4ebe06(0x414)],'unitIDs':Array[_0x4ebe06(0x28c)](this['_selfUnitIDs'])}));}[_0x173fa3(0x496)](_0x410eab){const _0x2a6ee9=_0x173fa3;switch(_0x410eab[_0x2a6ee9(0x32d)]){case 0x0:this[_0x2a6ee9(0x1ce)](_0x410eab);break;case 0x1:this[_0x2a6ee9(0x2d6)](_0x410eab);break;case 0x2:this[_0x2a6ee9(0x4a6)](_0x410eab);break;}}['_handleJoinEvent'](_0x5daeca){const _0x29f21f=_0x173fa3,{unitIDs:_0x7659a5,memberID:_0x1b5afb,isForwarded:_0x1349c3}=_0x5daeca;_0x7659a5[_0x29f21f(0x47e)](_0x2632e4=>{const _0x3ef7a0=_0x29f21f;if(!_0x1349c3&&this['_unitOnClients'][_0x3ef7a0(0x432)](_0x2632e4)&&this['_ensureSubject'](_0x2632e4)[_0x3ef7a0(0x2d0)](0x1),!this[_0x3ef7a0(0x2f8)][_0x3ef7a0(0x432)](_0x2632e4)||!this[_0x3ef7a0(0x2f8)][_0x3ef7a0(0x3c3)](_0x2632e4)[_0x3ef7a0(0x432)](_0x1b5afb)){const _0x20d51f=this[_0x3ef7a0(0x2f8)][_0x3ef7a0(0x3c3)](_0x2632e4)||new Set();_0x20d51f[_0x3ef7a0(0x2f7)](_0x1b5afb),this[_0x3ef7a0(0x2f8)][_0x3ef7a0(0x3e3)](_0x2632e4,_0x20d51f),this[_0x3ef7a0(0x2dc)](_0x1b5afb);}}),_0x1349c3||this[_0x29f21f(0x2e9)]({'type':0x0,'memberID':this[_0x29f21f(0x414)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x173fa3(0x2dc)](_0x12baf8){const _0x303dfe=_0x173fa3;this[_0x303dfe(0x49f)](_0x12baf8);const _0x1f04c1=window[_0x303dfe(0x4a5)](()=>{const _0x584465=_0x303dfe;this[_0x584465(0x2f8)][_0x584465(0x47e)](_0x5e8fbc=>{const _0xa27540=_0x584465;_0x5e8fbc[_0xa27540(0x43b)](_0x12baf8);});},_s*0x2);this['_clearOtherTimers'][_0x303dfe(0x3e3)](_0x12baf8,_0x1f04c1);}[_0x173fa3(0x49f)](_0x11d314){const _0x5f36a8=_0x173fa3;if(this[_0x5f36a8(0x1dc)][_0x5f36a8(0x432)](_0x11d314)){const _0x3dd50c=this[_0x5f36a8(0x1dc)][_0x5f36a8(0x3c3)](_0x11d314);_0x3dd50c&&window[_0x5f36a8(0x29c)](_0x3dd50c),this['_clearOtherTimers']['set'](_0x11d314,null);}}[_0x173fa3(0x2d6)](_0xc23483){const _0x3698fc=_0x173fa3,{memberID:_0x1d7b80,unitIDs:_0x1edfba}=_0xc23483;_0x1edfba[_0x3698fc(0x47e)](_0x5a2d26=>{const _0x46be6f=_0x3698fc;var _0xd79cd1;const _0x17e95f=this[_0x46be6f(0x2f8)][_0x46be6f(0x3c3)](_0x5a2d26);_0x17e95f&&(_0x17e95f['delete'](_0x1d7b80),(_0xd79cd1=this[_0x46be6f(0x1aa)](_0x5a2d26))==null||_0xd79cd1[_0x46be6f(0x2d0)](_0x17e95f['size']===0x0?0x0:0x1));}),this[_0x3698fc(0x49f)](_0x1d7b80);}[_0x173fa3(0x4a6)](_0x420de7){const _0x3c7088=_0x173fa3;this[_0x3c7088(0x2dc)](_0x420de7[_0x3c7088(0x48d)]);}[_0x173fa3(0x2e9)](_0x4d04a7){const _0x3376c6=_0x173fa3;localStorage[_0x3376c6(0x4e0)](us,JSON[_0x3376c6(0x3ab)](_0x4d04a7));}['_scheduleHeartbeat'](){const _0x586b6a=_0x173fa3;this[_0x586b6a(0x1bb)]=window['setInterval'](()=>{const _0x4c9def=_0x586b6a;this['_send']({'type':0x2,'memberID':this[_0x4c9def(0x414)]});},_s);}[_0x173fa3(0x1aa)](_0x4e43bf){const _0x4c334e=_0x173fa3;return this[_0x4c334e(0x378)][_0x4c334e(0x432)](_0x4e43bf)||this[_0x4c334e(0x378)][_0x4c334e(0x3e3)](_0x4e43bf,new _0x37b5ce(0x0)),this['_unitStatus'][_0x4c334e(0x3c3)](_0x4e43bf);}}function Gs(_0x22c119){const _0x59d261=_0x173fa3;let _0x375dad='';for(const _0x4a9f6d of _0x22c119){const {startOffset:_0x447df9,endOffset:_0x456c0c,isActive:_0xfb2bcc,rangeType:_0xcc974e,segmentId:_0x12f145,segmentPage:_0x3556b0}=_0x4a9f6d;_0x375dad[_0x59d261(0x223)]&&(_0x375dad+=','),_0x375dad+=_0x447df9+':'+_0x456c0c+':'+(_0xfb2bcc?'1':'0')+':'+_0xcc974e+':'+_0x12f145+':'+_0x3556b0;}return _0x375dad;}function pr(_0x1c2bb0){const _0x4a77d7=_0x173fa3,_0x302f51=_0x1c2bb0[_0x4a77d7(0x4fe)](','),_0xb5e32b=[];for(const _0x52b1db of _0x302f51){const [_0xd90f87,_0x3bce9b,_0x2389f5,_0x30629b,_0x27f95a,_0x1113af]=_0x52b1db[_0x4a77d7(0x4fe)](':');_0xb5e32b[_0x4a77d7(0x1da)]({'startOffset':Number(_0xd90f87),'endOffset':Number(_0x3bce9b),'collapsed':_0xd90f87===_0x3bce9b,'isActive':_0x2389f5==='1','rangeType':_0x30629b===_0x46c3b0[_0x4a77d7(0x4c6)]?_0x46c3b0[_0x4a77d7(0x4c6)]:_0x46c3b0[_0x4a77d7(0x26e)],'segmentId':typeof _0x27f95a==_0x4a77d7(0x215)?String(_0x27f95a):'','segmentPage':Number(_0x1113af!=null?_0x1113af:-0x1)});}return _0xb5e32b[_0x4a77d7(0x24f)](_0x3a8617=>_0x3a8617[_0x4a77d7(0x4a9)])||(_0xb5e32b[0x0][_0x4a77d7(0x4a9)]=!0x0),_0xb5e32b;}class Wt extends _0x13ba8e{constructor(){const _0x757994=_0x173fa3;super(...arguments),l(this,_0x757994(0x1af),new _0x37b5ce(null)),l(this,_0x757994(0x4ce),this[_0x757994(0x1af)][_0x757994(0x2e6)]());}[_0x173fa3(0x461)](_0x43394e){const _0x4b281a=_0x173fa3,{unitID:_0x2a66b5,memberID:_0x2a97de,textRanges:_0x51c482}=_0x43394e,_0x48f133=Gs(_0x51c482);if(_0x48f133==='')return;const _0x36289b={'unitID':_0x2a66b5,'memberID':_0x2a97de,'selection':_0x48f133};this[_0x4b281a(0x1af)][_0x4b281a(0x2d0)](_0x36289b);}}var vr=Object[_0x173fa3(0x309)],Ir=Object['getOwnPropertyDescriptor'],Er=(_0x6d39ae,_0x3dbebb,_0x55f03e,_0x111334)=>{for(var _0x24356d=_0x111334>0x1?void 0x0:_0x111334?Ir(_0x3dbebb,_0x55f03e):_0x3dbebb,_0x4e0ab4=_0x6d39ae['length']-0x1,_0x425a5c;_0x4e0ab4>=0x0;_0x4e0ab4--)(_0x425a5c=_0x6d39ae[_0x4e0ab4])&&(_0x24356d=(_0x111334?_0x425a5c(_0x3dbebb,_0x55f03e,_0x24356d):_0x425a5c(_0x24356d))||_0x24356d);return _0x111334&&_0x24356d&&vr(_0x3dbebb,_0x55f03e,_0x24356d),_0x24356d;},ds=(_0x4f0865,_0x5b6195)=>(_0x1eb3d9,_0x5bedd4)=>_0x5b6195(_0x1eb3d9,_0x5bedd4,_0x4f0865);let Je=class{constructor(_0x328d0d,_0x1b7687){const _0x443124=_0x173fa3;this[_0x443124(0x4b7)]=_0x328d0d,this[_0x443124(0x387)]=_0x1b7687;}[_0x173fa3(0x366)](_0x339b43){const _0x396bea=_0x173fa3;var _0x337b47;const _0x151371=this[_0x396bea(0x4b7)][_0x396bea(0x3c3)](_0x35ae8c),_0x1ae2a3=(_0x337b47=_0x151371[_0x396bea(0x361)]())!=null?_0x337b47:[];if(_0x1ae2a3[_0x396bea(0x223)]===0x0)return;const _0x1d0ba9=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x339b43['unitID'],'actions':null,'textRanges':_0x1ae2a3}}],_0x2d971d=this['_transformService'][_0x396bea(0x3a5)](_0x339b43,_0x1d0ba9);if(!_0x2c439f(_0x2d971d))throw _0x2d971d[_0x396bea(0x3b8)];const _0x468148=_0x2d971d['m2Prime'][0x0][_0x396bea(0x465)][_0x396bea(0x3cc)];Array['isArray'](_0x468148)&&_0x468148[_0x396bea(0x223)]&&_0x151371[_0x396bea(0x36e)](_0x468148,!0x1);}};Je=Er([ds(0x0,_0x4f7ed2(_0x3b0750)),ds(0x1,_0x4a8bc3)],Je);const Cr=new Set([_0x7b95a6['id']]);function ms(_0x228ce8,_0x382dc9,_0x15bd17,_0x57f73f,_0x3af8a2){const _0x511dff=_0x173fa3;var _0x38ad33,_0x428911,_0x1e4bbf,_0x5cbc58;const _0x10f034=[];for(const _0xcc33ea of _0x228ce8)if(Cr[_0x511dff(0x432)](_0xcc33ea['id'])){if(_0x10f034[_0x511dff(0x223)]>0x0)break;_0x10f034[_0x511dff(0x1da)](_0xcc33ea);break;}else _0x10f034[_0x511dff(0x1da)](_0xcc33ea);const _0x3adaae=(_0x428911=(_0x38ad33=_0x3af8a2[_0x511dff(0x2fc)]())==null?void 0x0:_0x38ad33['userID'])!=null?_0x428911:_0x511dff(0x30f),_0x245332=(_0x5cbc58=(_0x1e4bbf=_0x3af8a2['getCurrentUser']())==null?void 0x0:_0x1e4bbf[_0x511dff(0x48d)])!=null?_0x5cbc58:_0x511dff(0x30f);return{'changeset':{'unitID':_0x382dc9,'type':_0x4c831a(_0x15bd17[_0x511dff(0x50e)](_0x382dc9)),'baseRev':_0x57f73f['getCurrentRevOfUnit'](_0x382dc9),'revision':0x0,'userID':_0x3adaae,'memberID':_0x245332,'mutations':_0x10f034},'pendingMutations':_0x228ce8[_0x511dff(0x36a)](_0x10f034[_0x511dff(0x223)])};}function br(_0x3963e3,_0x29d19f,_0x5ad046,_0x1d487e,_0x1fb830){const _0x27a488=_0x173fa3;var _0x3dad31,_0x12e02d,_0xa02e9a,_0x6011c9;const _0x355910=[_0x3963e3[_0x27a488(0x48a)]((_0x2f8b5c,_0x418722)=>{const _0x4baf21=_0x27a488;var _0xb38d45;const {id:_0x587095}=_0x2f8b5c,{id:_0x2e6858,type:_0x4078e1}=_0x418722,_0x38f025=(_0xb38d45=_0x2f8b5c[_0x4baf21(0x465)])!=null?_0xb38d45:{'actions':null},_0x4fb33f=_0x418722[_0x4baf21(0x465)];if(_0x587095&&_0x587095!==_0x2e6858)throw new Error(_0x4baf21(0x4b6)+_0x587095+_0x4baf21(0x1fc)+_0x2e6858+'.');return{..._0x2f8b5c,'id':_0x2e6858,'type':_0x4078e1,'params':{'unitId':_0x4fb33f[_0x4baf21(0x217)],'textRanges':_0x4fb33f['textRanges'],'actions':_0xdfd23e[_0x4baf21(0x38a)](_0x38f025[_0x4baf21(0x1c3)],_0x4fb33f[_0x4baf21(0x1c3)])}};},{})],_0x2602d6=(_0x12e02d=(_0x3dad31=_0x1fb830[_0x27a488(0x2fc)]())==null?void 0x0:_0x3dad31['userID'])!=null?_0x12e02d:'unknown',_0x505293=(_0x6011c9=(_0xa02e9a=_0x1fb830['getCurrentUser']())==null?void 0x0:_0xa02e9a[_0x27a488(0x48d)])!=null?_0x6011c9:'unknown';return{'changeset':{'unitID':_0x29d19f,'type':_0x4c831a(_0x5ad046[_0x27a488(0x50e)](_0x29d19f)),'baseRev':_0x1d487e[_0x27a488(0x462)](_0x29d19f),'revision':0x0,'userID':_0x2602d6,'memberID':_0x505293,'mutations':_0x355910},'pendingMutations':[]};}function Ys(_0x23c6f3,_0xd97f69){const _0x61b7ae=_0x173fa3,_0x1a055f=new _0x5c8a52(0x1);return setTimeout(()=>_0x1a055f[_0x61b7ae(0x2d0)](_0xd97f69),_0x23c6f3),_0x1a055f[_0x61b7ae(0x2e6)]()[_0x61b7ae(0x35b)](_0x13b5e9(0x1));}const Tr={'id':_0x511aa2['id'],'type':_0x12b588['MUTATION'],'params':{}};var Rr=Object['defineProperty'],Or=Object[_0x173fa3(0x4d5)],me=(_0x36e6df,_0x105616,_0x82578a,_0x4d2722)=>{const _0x59cca2=_0x173fa3;for(var _0x3db61a=_0x4d2722>0x1?void 0x0:_0x4d2722?Or(_0x105616,_0x82578a):_0x105616,_0xe46681=_0x36e6df[_0x59cca2(0x223)]-0x1,_0x2a4f59;_0xe46681>=0x0;_0xe46681--)(_0x2a4f59=_0x36e6df[_0xe46681])&&(_0x3db61a=(_0x4d2722?_0x2a4f59(_0x105616,_0x82578a,_0x3db61a):_0x2a4f59(_0x3db61a))||_0x3db61a);return _0x4d2722&&_0x3db61a&&Rr(_0x105616,_0x82578a,_0x3db61a),_0x3db61a;},f=(_0x4a7dd5,_0x1622c2)=>(_0x3a71b6,_0x31d5a2)=>_0x1622c2(_0x3a71b6,_0x31d5a2,_0x4a7dd5),w=(_0x1b6846=>(_0x1b6846['NOT_COLLAB']=_0x173fa3(0x480),_0x1b6846['SYNCED']='synced',_0x1b6846[_0x173fa3(0x25c)]=_0x173fa3(0x26c),_0x1b6846[_0x173fa3(0x333)]=_0x173fa3(0x41c),_0x1b6846[_0x173fa3(0x3a9)]=_0x173fa3(0x226),_0x1b6846[_0x173fa3(0x502)]=_0x173fa3(0x2af),_0x1b6846[_0x173fa3(0x19e)]='conflict',_0x1b6846[_0x173fa3(0x410)]=_0x173fa3(0x235),_0x1b6846))(w||{});const Ks=0xea60;class fe{constructor(_0x59c791,_0x2dc999,_0x103366,_0x243950,_0x5295cf,_0x323318,_0x66f063,_0x1ff252,_0x50c8ea){const _0x1ec36e=_0x173fa3;l(this,_0x1ec36e(0x249),null),l(this,_0x1ec36e(0x4d0),[]),(this['unitID']=_0x59c791,this['type']=_0x2dc999,this['_handler']=_0x5295cf,this[_0x1ec36e(0x35c)]=_0x323318,this[_0x1ec36e(0x471)]=_0x66f063,this[_0x1ec36e(0x45a)]=_0x1ff252,this[_0x1ec36e(0x292)]=_0x50c8ea,this[_0x1ec36e(0x249)]=_0x103366,this[_0x1ec36e(0x4d0)]=_0x243950);}[_0x173fa3(0x40f)](_0x1e35cb){const _0xf9d60=_0x173fa3,_0x5a48fb=this[_0xf9d60(0x45a)][_0xf9d60(0x462)](this['unitID']);return _0x1e35cb[_0xf9d60(0x495)]>_0x5a48fb+0x1?(this[_0xf9d60(0x340)][_0xf9d60(0x1e2)]({'from':_0x5a48fb,'to':_0x1e35cb[_0xf9d60(0x495)]-0x1}),!0x0):!0x1;}[_0x173fa3(0x433)](_0x377f11){const _0x3641be=_0x173fa3;this['_undoRedoService'][_0x3641be(0x201)](this[_0x3641be(0x23a)],_0x377f11);}['_transformSelections'](_0x4957ca){const _0x53851d=_0x173fa3;var _0x3c0f5d,_0x22c26f;(_0x22c26f=(_0x3c0f5d=this[_0x53851d(0x340)])[_0x53851d(0x405)])==null||_0x22c26f[_0x53851d(0x470)](_0x3c0f5d,_0x4957ca);}['_transformIMECache'](_0x2953d2){const _0x1de100=_0x173fa3;var _0x425136,_0x2311f1;return(_0x2311f1=(_0x425136=this[_0x1de100(0x340)])[_0x1de100(0x280)])==null?void 0x0:_0x2311f1['call'](_0x425136,_0x2953d2);}[_0x173fa3(0x4a8)](_0x1be37b){const _0x2d7698=_0x173fa3;var _0x34af20,_0xdabb4,_0x4f23c3;return(_0x4f23c3=(_0xdabb4=(_0x34af20=this['_handler'])[_0x2d7698(0x3fb)])==null?void 0x0:_0xdabb4[_0x2d7698(0x470)](_0x34af20,_0x1be37b))!=null?_0x4f23c3:_0x1be37b;}[_0x173fa3(0x19a)](_0x10c4d6){const _0x359da1=_0x173fa3;var _0x24d802,_0x5b3ecf;if(this['type']===B[_0x359da1(0x381)]){const {unitID:_0x48513c,mutations:_0x21d1bb,memberID:_0x20a103}=_0x10c4d6,_0x425432=_0x21d1bb[0x0][_0x359da1(0x465)][_0x359da1(0x3cc)];Array[_0x359da1(0x498)](_0x425432)&&_0x425432[_0x359da1(0x223)]>0x0&&((_0x5b3ecf=(_0x24d802=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x5b3ecf[_0x359da1(0x470)](_0x24d802,{'unitID':_0x48513c,'memberID':_0x20a103,'textRanges':_0x425432}));}}[_0x173fa3(0x1ab)](){const _0x4e9b5e=_0x173fa3;this['_localCacheService'][_0x4e9b5e(0x234)](this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x4e9b5e(0x4d0)]);}['_getCurrentRevision'](){const _0x31c895=_0x173fa3;return this[_0x31c895(0x45a)]['getCurrentRevOfUnit'](this[_0x31c895(0x23a)]);}[_0x173fa3(0x2ca)](){const _0x204c82=_0x173fa3;this[_0x204c82(0x45a)]['incrementRevOfUnit'](this[_0x204c82(0x23a)]);}[_0x173fa3(0x2ee)](_0x43de56){const _0x50eed5=_0x173fa3;var _0x3bf3d6;const _0x2ee0d1=this[_0x50eed5(0x4a8)](_0x43de56),_0x193114=_0x24a976(_0x2ee0d1[_0x50eed5(0x4cd)],this['_commandService'],{'fromCollab':!0x0});if(!_0x193114['result'])throw _0x193114[_0x50eed5(0x3b8)]instanceof Error?_0x193114['error']:new Error((_0x3bf3d6=_0x193114[_0x50eed5(0x3b8)])!=null?_0x3bf3d6:_0x50eed5(0x34a));this[_0x50eed5(0x3b3)](_0x2ee0d1),this[_0x50eed5(0x433)](_0x43de56),this[_0x50eed5(0x3a3)](_0x2ee0d1),this[_0x50eed5(0x19a)](_0x2ee0d1),this[_0x50eed5(0x2ca)]();}}let Ee=class extends fe{constructor(_0x5d7837,_0x5e393b,_0x1d2e1d,_0x502dc5,_0x521ac7,_0x2ea70f,_0xb1548d,_0x31b4b8,_0x5f1d9a,_0x46f9e0){const _0x177829=_0x173fa3;super(_0x5d7837,_0x5e393b,null,[],_0x1d2e1d,_0x31b4b8,_0xb1548d,_0x502dc5,_0x521ac7),l(this,_0x177829(0x38d),_0x177829(0x1e5)),(this[_0x177829(0x4b7)]=_0x2ea70f,this[_0x177829(0x2cd)]=_0x5f1d9a,this[_0x177829(0x387)]=_0x46f9e0);}[_0x173fa3(0x44f)](_0xbc6295){const _0x54e708=_0x173fa3,_0x1526ee=this[_0x54e708(0x4b7)][_0x54e708(0x31f)](J,this[_0x54e708(0x23a)],this[_0x54e708(0x32d)],[_0xbc6295],this[_0x54e708(0x340)]);return _0x1526ee['_schedule'](),_0x1526ee[_0x54e708(0x1ab)](),_0x1526ee;}[_0x173fa3(0x228)](_0x3004e7){const _0x5ad26c=_0x173fa3;if(this[_0x5ad26c(0x40f)](_0x3004e7))return this[_0x5ad26c(0x4b7)][_0x5ad26c(0x31f)](V,this[_0x5ad26c(0x23a)],this[_0x5ad26c(0x32d)],null,[],null,[_0x3004e7],this[_0x5ad26c(0x340)]);try{const _0x222b61=this[_0x5ad26c(0x387)]['transformMutationsWithChangeset'](_0x3004e7,[Tr]);if(_0x2c439f(_0x222b61)){const {c1Prime:_0x58e7df}=_0x222b61;return this['_executeRemoteChangeset'](_0x58e7df),this;}throw _0x222b61[_0x5ad26c(0x3b8)];}catch(_0x497957){return this['_logService'][_0x5ad26c(0x3b8)](_0x497957),this[_0x5ad26c(0x1c7)](!0x1);}}['_onConflict'](_0x48cb1b){const _0x5225bf=_0x173fa3;return this['_injector'][_0x5225bf(0x31f)](se,this[_0x5225bf(0x23a)],this['type'],null,[],this[_0x5225bf(0x340)],_0x48cb1b);}[_0x173fa3(0x41f)](){const _0x4286f5=_0x173fa3;throw new Error(_0x4286f5(0x3c5));}[_0x173fa3(0x277)](){const _0x30e71a=_0x173fa3;throw new Error(_0x30e71a(0x2dd));}[_0x173fa3(0x1b0)](){return this;}[_0x173fa3(0x3bb)](){const _0x23cfd0=_0x173fa3;return this[_0x23cfd0(0x4b7)][_0x23cfd0(0x31f)](ie,this['unitID'],this['type'],null,[],this[_0x23cfd0(0x340)]);}[_0x173fa3(0x4a7)](){return this;}[_0x173fa3(0x1d1)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x4e6008=_0x173fa3,_0x2f5afa=this['_revisionService'][_0x4e6008(0x462)](this['unitID']);return this['_handler'][_0x4e6008(0x1e2)]({'from':_0x2f5afa,'to':0x0}),this[_0x4e6008(0x4b7)]['createInstance'](V,this[_0x4e6008(0x23a)],this[_0x4e6008(0x32d)],null,[],null,[],this[_0x4e6008(0x340)]);}};Ee=me([f(0x3,_0x4f7ed2(_0x6cbd2e)),f(0x4,_0x4f7ed2(D)),f(0x5,_0x4f7ed2(_0x3b0750)),f(0x6,_0x57ccc3),f(0x7,_0xdec94a),f(0x8,_0x4329b1),f(0x9,_0x4a8bc3)],Ee);let J=class extends fe{constructor(_0x2c7bed,_0x28f92f,_0x477d64,_0x26c9f4,_0x354305,_0x2687c9,_0x4977b5,_0x53b3b8,_0x13e06e,_0x5cf786,_0x239316,_0x2f1bcf,_0x32428a,_0x4ee369){const _0x58023a=_0x173fa3;super(_0x2c7bed,_0x28f92f,null,_0x477d64,_0x26c9f4,_0x5cf786,_0x4ee369,_0x2687c9,_0x4977b5),l(this,_0x58023a(0x38d),'pending'),l(this,_0x58023a(0x507),null),l(this,_0x58023a(0x294),null),(this[_0x58023a(0x4b7)]=_0x354305,this[_0x58023a(0x1c9)]=_0x53b3b8,this[_0x58023a(0x2cd)]=_0x13e06e,this['_configService']=_0x239316,this[_0x58023a(0x387)]=_0x2f1bcf,this['_univerInstanceService']=_0x32428a);}[_0x173fa3(0x44f)](_0x13e945){const _0x5e9a5e=_0x173fa3;return this[_0x5e9a5e(0x4d0)]['push'](_0x13e945),this[_0x5e9a5e(0x1ab)](),this;}[_0x173fa3(0x228)](_0x18ad2f){const _0x2e0ae9=_0x173fa3;if(this[_0x2e0ae9(0x40f)](_0x18ad2f))return this[_0x2e0ae9(0x439)](),this[_0x2e0ae9(0x4b7)][_0x2e0ae9(0x31f)](V,this[_0x2e0ae9(0x23a)],this[_0x2e0ae9(0x32d)],null,this[_0x2e0ae9(0x4d0)],null,[_0x18ad2f],this[_0x2e0ae9(0x340)]);try{const _0x8253d2=this[_0x2e0ae9(0x387)][_0x2e0ae9(0x3a5)](_0x18ad2f,this['_pendingMutations']);if(_0x2c439f(_0x8253d2)){const {c1Prime:_0x3f83eb,m2Prime:_0x4baaf8}=_0x8253d2;this[_0x2e0ae9(0x2ee)](_0x3f83eb);const _0x258f5b=this[_0x2e0ae9(0x4b7)]['createInstance'](J,this[_0x2e0ae9(0x23a)],this[_0x2e0ae9(0x32d)],_0x4baaf8,this['_handler']);return this[_0x2e0ae9(0x439)](),_0x258f5b[_0x2e0ae9(0x3be)](this['_scheduleTimestamp']?Math[_0x2e0ae9(0x369)](0x0,new Date()[_0x2e0ae9(0x3f8)]()-this[_0x2e0ae9(0x507)]):this[_0x2e0ae9(0x21d)]()),_0x258f5b;}throw _0x8253d2[_0x2e0ae9(0x3b8)];}catch(_0x518cd3){return this['_logService']['error'](_0x518cd3),this[_0x2e0ae9(0x1c7)](!0x1);}}[_0x173fa3(0x41f)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x173fa3(0x277)](){const _0x134596=_0x173fa3;throw new Error(_0x134596(0x505));}[_0x173fa3(0x1b0)](){return this;}[_0x173fa3(0x3bb)](){const _0x1ceb4b=_0x173fa3;return this[_0x1ceb4b(0x439)](),this['_injector']['createInstance'](ie,this['unitID'],this[_0x1ceb4b(0x32d)],null,this[_0x1ceb4b(0x4d0)],this[_0x1ceb4b(0x340)]);}[_0x173fa3(0x4a7)](){return this;}[_0x173fa3(0x3be)](_0x2be849){const _0x4e1c57=_0x173fa3,_0x266c36=_0x2be849!=null?_0x2be849:this[_0x4e1c57(0x21d)]();this[_0x4e1c57(0x507)]=new Date()['getTime'](),this[_0x4e1c57(0x294)]=window[_0x4e1c57(0x4a5)](()=>{const _0x151182=_0x4e1c57;this[_0x151182(0x439)]();let _0x1b6b57=null;switch(this[_0x151182(0x32d)]){case B[_0x151182(0x4fa)]:{_0x1b6b57=ms(this['_pendingMutations'],this['unitID'],this[_0x151182(0x3f2)],this[_0x151182(0x45a)],this[_0x151182(0x1c9)]);break;}case B['UNIVER_DOC']:{this['_pendingMutations']['every'](_0x598c01=>_0x598c01['id']===_0x179d55['id'])?_0x1b6b57=br(this[_0x151182(0x4d0)],this[_0x151182(0x23a)],this[_0x151182(0x3f2)],this['_revisionService'],this[_0x151182(0x1c9)]):_0x1b6b57=ms(this[_0x151182(0x4d0)],this[_0x151182(0x23a)],this[_0x151182(0x3f2)],this[_0x151182(0x45a)],this[_0x151182(0x1c9)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+'\x20in\x20_schedule.');}const {changeset:_0x394162,pendingMutations:_0x38a183}=_0x1b6b57;this[_0x151182(0x340)]['onSendChangeset'](_0x394162);const _0x93aeb3=_0x38a183[_0x151182(0x223)]?this[_0x151182(0x4b7)][_0x151182(0x31f)](z,this[_0x151182(0x23a)],this[_0x151182(0x32d)],_0x394162,_0x38a183,this[_0x151182(0x340)],void 0x0):this[_0x151182(0x4b7)][_0x151182(0x31f)](te,this[_0x151182(0x23a)],this[_0x151182(0x32d)],_0x394162,this['_handler']);_0x93aeb3[_0x151182(0x1ab)](),this[_0x151182(0x340)]['onStateChange'](this,_0x93aeb3);},_0x266c36);}[_0x173fa3(0x21d)](){const _0x3cedfc=_0x173fa3;var _0x4d3ca7;const _0x881d4b=this[_0x3cedfc(0x205)]['getConfig'](j);return(_0x4d3ca7=_0x881d4b==null?void 0x0:_0x881d4b['sendChangesetTimeout'])!=null?_0x4d3ca7:bn;}['resend'](){const _0x52364b=_0x173fa3;throw new Error(_0x52364b(0x221));}[_0x173fa3(0x439)](){const _0x1a2e75=_0x173fa3;this[_0x1a2e75(0x294)]!=null&&(clearTimeout(this[_0x1a2e75(0x294)]),this[_0x1a2e75(0x294)]=null);}[_0x173fa3(0x1c7)](_0x55a632){const _0x510a3e=_0x173fa3;return this[_0x510a3e(0x439)](),this[_0x510a3e(0x4b7)][_0x510a3e(0x31f)](se,this[_0x510a3e(0x23a)],this['type'],null,this[_0x510a3e(0x4d0)],this[_0x510a3e(0x340)],_0x55a632);}};J=me([f(0x4,_0x4f7ed2(_0x3b0750)),f(0x5,_0x4f7ed2(_0x6cbd2e)),f(0x6,_0x4f7ed2(D)),f(0x7,_0x4f7ed2(_e)),f(0x8,_0x4329b1),f(0x9,_0xdec94a),f(0xa,_0x13b27e),f(0xb,_0x4a8bc3),f(0xc,_0x1e8ecc),f(0xd,_0x57ccc3)],J);let te=class extends fe{constructor(_0x5e9316,_0x102721,_0x2b1f2c,_0x5a5ac7,_0x24e390,_0x5084f2,_0x273a71,_0x57ab9b,_0x3a25fd,_0x569e5d,_0xbee60f){const _0x46e4b8=_0x173fa3;super(_0x5e9316,_0x102721,_0x2b1f2c,[],_0x5a5ac7,_0x57ab9b,_0xbee60f,_0x5084f2,_0x273a71),l(this,_0x46e4b8(0x38d),_0x46e4b8(0x41c)),l(this,'_resendTimeout',0x0),l(this,_0x46e4b8(0x3df)),l(this,_0x46e4b8(0x2ce)),(this['_injector']=_0x24e390,this[_0x46e4b8(0x2cd)]=_0x3a25fd,this[_0x46e4b8(0x387)]=_0x569e5d);}[_0x173fa3(0x44f)](_0xbbe675){const _0x3b6d92=_0x173fa3;this[_0x3b6d92(0x439)]();const _0x1ba7d8=this[_0x3b6d92(0x4b7)]['createInstance'](z,this[_0x3b6d92(0x23a)],this['type'],this['_awaitingChangeset'],[_0xbbe675],this[_0x3b6d92(0x340)],this['_resendTimer']);return _0x1ba7d8[_0x3b6d92(0x1ab)](),_0x1ba7d8;}['onRemoteChangeset'](_0x27e066){const _0x31219e=_0x173fa3;if(this['_checkMissing'](_0x27e066))return this[_0x31219e(0x439)](),this[_0x31219e(0x4b7)]['createInstance'](V,this[_0x31219e(0x23a)],this['type'],this[_0x31219e(0x249)],[],null,[_0x27e066],this[_0x31219e(0x340)]);try{const _0x1005fd=this['_transformService'][_0x31219e(0x3c8)]([_0x27e066],[this[_0x31219e(0x249)]],!0x1);if(_0xec58bb(_0x1005fd)){const {c1Prime:_0x126a44,c2Prime:_0x41020e}=_0x1005fd;this[_0x31219e(0x2ee)](_0x126a44[0x0]),_0x41020e[0x0][_0x31219e(0x4d3)]=this['_getCurrentRevision'](),this[_0x31219e(0x439)]();const _0x263ad4=this[_0x31219e(0x4b7)]['createInstance'](te,this['unitID'],this['type'],_0x41020e[0x0],this['_handler']);return _0x263ad4['_updateLocalCache'](),_0x263ad4;}return this[_0x31219e(0x1c7)](!0x1);}catch(_0x46ee68){return this[_0x31219e(0x2cd)][_0x31219e(0x3b8)](_0x46ee68),this[_0x31219e(0x1c7)](!0x1);}}[_0x173fa3(0x41f)](_0x2123f4){const _0x3d71c3=_0x173fa3;this['_clearScheduledTask']();const _0x59a967=this[_0x3d71c3(0x45a)][_0x3d71c3(0x462)](this['unitID']);if(_0x2123f4['revision']<_0x59a967-0x1)return this;if(this[_0x3d71c3(0x40f)](_0x2123f4))return this[_0x3d71c3(0x4b7)][_0x3d71c3(0x31f)](V,this[_0x3d71c3(0x23a)],this[_0x3d71c3(0x32d)],null,[],this[_0x3d71c3(0x249)],[],this[_0x3d71c3(0x340)]);this[_0x3d71c3(0x2ca)]();const _0xf593c7=this[_0x3d71c3(0x4b7)][_0x3d71c3(0x31f)](Ee,this['unitID'],this[_0x3d71c3(0x32d)],this[_0x3d71c3(0x340)]);return _0xf593c7['_updateLocalCache'](),_0xf593c7;}[_0x173fa3(0x277)](_0x326454){const _0x18011a=_0x173fa3;return this[_0x18011a(0x1c7)](!!(_0x326454!=null&&_0x326454[_0x18011a(0x1b7)]));}[_0x173fa3(0x1b0)](_0x12e342){const _0x388b30=_0x173fa3;return this[_0x388b30(0x4b2)]>Ks?this[_0x388b30(0x3bb)]():(this[_0x388b30(0x3df)]=Ys(this[_0x388b30(0x4b2)],{'timeout':this[_0x388b30(0x4b2)],'reqId':_0x12e342[_0x388b30(0x271)]}),this[_0x388b30(0x2ce)]=this[_0x388b30(0x3df)]['subscribe'](({reqId:_0x593cb8,timeout:_0x836247})=>{const _0x396b7a=_0x388b30;this[_0x396b7a(0x3fd)](_0x593cb8,_0x836247);}),this);}[_0x173fa3(0x3bb)](){const _0x56582e=_0x173fa3;return this[_0x56582e(0x439)](),this['_injector']['createInstance'](ie,this[_0x56582e(0x23a)],this['type'],this['_awaitingChangeset'],[],this[_0x56582e(0x340)]);}[_0x173fa3(0x4a7)](){return this;}[_0x173fa3(0x1d1)](){const _0x27f908=_0x173fa3;this[_0x27f908(0x340)]['onSendChangeset'](this[_0x27f908(0x249)]);}[_0x173fa3(0x1c7)](_0x2b46db){const _0x58a042=_0x173fa3;return this['_clearScheduledTask'](),this['_injector']['createInstance'](se,this[_0x58a042(0x23a)],this['type'],this[_0x58a042(0x249)],[],this[_0x58a042(0x340)],_0x2b46db);}['_resendWithTimeout'](_0xbfda3a,_0x5cd2df){const _0x8c703b=_0x173fa3;var _0x49da73;_0xbfda3a===((_0x49da73=this[_0x8c703b(0x249)])==null?void 0x0:_0x49da73[_0x8c703b(0x271)])&&(this[_0x8c703b(0x1d1)](),this[_0x8c703b(0x4b2)]=_0x5cd2df===0x0?0x3e8:_0x5cd2df*0x2);}['_clearScheduledTask'](){const _0x16b3b4=_0x173fa3;var _0x52097c;(_0x52097c=this[_0x16b3b4(0x2ce)])==null||_0x52097c[_0x16b3b4(0x18e)](),this[_0x16b3b4(0x4b2)]=0x0;}};te=me([f(0x4,_0x4f7ed2(_0x3b0750)),f(0x5,_0x4f7ed2(_0x6cbd2e)),f(0x6,_0x4f7ed2(D)),f(0x7,_0xdec94a),f(0x8,_0x4329b1),f(0x9,_0x4a8bc3),f(0xa,_0x57ccc3)],te);let z=class extends fe{constructor(_0x749996,_0x503eeb,_0x358007,_0x171c44,_0x4630ed,_0x62da99,_0x2d1b5a,_0x2364ba,_0x23dae8,_0x3f4461,_0x1e0a7d,_0x3993d3,_0x1b7a79){const _0x54284e=_0x173fa3;super(_0x749996,_0x503eeb,_0x358007,_0x171c44,_0x4630ed,_0x3f4461,_0x1b7a79,_0x2364ba,_0x23dae8),l(this,_0x54284e(0x38d),_0x54284e(0x226)),l(this,_0x54284e(0x4b2),0x0),l(this,_0x54284e(0x3df)),l(this,_0x54284e(0x2ce)),(this[_0x54284e(0x4b7)]=_0x2d1b5a,this['_logService']=_0x1e0a7d,this[_0x54284e(0x387)]=_0x3993d3,_0x62da99&&(this[_0x54284e(0x3df)]=_0x62da99,this['_sender']=this[_0x54284e(0x3df)][_0x54284e(0x3eb)](({reqId:_0x490cf8,timeout:_0x3a2107})=>{const _0x25d2f9=_0x54284e;this[_0x25d2f9(0x3fd)](_0x490cf8,_0x3a2107);})));}[_0x173fa3(0x44f)](_0x2f1e85){const _0x4a2511=_0x173fa3;return this['_pendingMutations'][_0x4a2511(0x1da)](_0x2f1e85),this;}[_0x173fa3(0x228)](_0x2b0ca2){const _0x57c0b8=_0x173fa3;if(this['_checkMissing'](_0x2b0ca2))return this['_clearScheduledTask'](),this[_0x57c0b8(0x4b7)]['createInstance'](V,this['unitID'],this[_0x57c0b8(0x32d)],this[_0x57c0b8(0x249)],this['_pendingMutations'],null,[_0x2b0ca2],this[_0x57c0b8(0x340)]);try{const _0x4ae245=this['_transformService'][_0x57c0b8(0x3c8)]([_0x2b0ca2],[this['_awaitingChangeset']],!0x1);if(_0xec58bb(_0x4ae245)){const {c1Prime:_0x4e8474,c2Prime:_0x76f801}=_0x4ae245,_0x302c14=this[_0x57c0b8(0x387)][_0x57c0b8(0x3a5)](_0x4e8474[0x0],this[_0x57c0b8(0x4d0)]);if(_0x2c439f(_0x302c14)){const {c1Prime:_0x34491c,m2Prime:_0x4227f9}=_0x302c14;return this[_0x57c0b8(0x2ee)](_0x34491c),_0x76f801[0x0][_0x57c0b8(0x4d3)]=this[_0x57c0b8(0x246)](),this['_clearScheduledTask'](),this['_injector']['createInstance'](z,this[_0x57c0b8(0x23a)],this[_0x57c0b8(0x32d)],_0x76f801[0x0],_0x4227f9,this[_0x57c0b8(0x340)],void 0x0);}throw _0x302c14[_0x57c0b8(0x3b8)];}throw _0x4ae245[_0x57c0b8(0x3b8)];}catch(_0x548d34){return this[_0x57c0b8(0x2cd)][_0x57c0b8(0x3b8)](_0x548d34),this[_0x57c0b8(0x1c7)](!0x1);}}['onRemoteAck'](_0x14df42){const _0x2ae918=_0x173fa3;if(this[_0x2ae918(0x439)](),this[_0x2ae918(0x40f)](_0x14df42))return this['_injector'][_0x2ae918(0x31f)](V,this[_0x2ae918(0x23a)],this[_0x2ae918(0x32d)],null,this[_0x2ae918(0x4d0)],this[_0x2ae918(0x249)],[],this[_0x2ae918(0x340)]);this[_0x2ae918(0x2ca)]();const _0x181865=this[_0x2ae918(0x4b7)][_0x2ae918(0x31f)](J,this[_0x2ae918(0x23a)],this[_0x2ae918(0x32d)],this[_0x2ae918(0x4d0)],this[_0x2ae918(0x340)]);return _0x181865['_schedule'](),_0x181865[_0x2ae918(0x1ab)](),_0x181865;}[_0x173fa3(0x277)](_0x5d7208){const _0xea1213=_0x173fa3;return this[_0xea1213(0x1c7)](!!(_0x5d7208!=null&&_0x5d7208['isPermissionRej']));}[_0x173fa3(0x1b0)](_0x1e69c9){const _0x2b4f84=_0x173fa3;return this[_0x2b4f84(0x4b2)]>Ks?this['toggleOffline']():(this['_resendTimer']=Ys(this[_0x2b4f84(0x4b2)],{'timeout':this[_0x2b4f84(0x4b2)],'reqId':_0x1e69c9['reqId']}),this['_sender']=this['_resendTimer'][_0x2b4f84(0x3eb)](({reqId:_0x2a2710,timeout:_0x92c97b})=>{this['_resendWithTimeout'](_0x2a2710,_0x92c97b);}),this);}['toggleOffline'](){const _0x5241b4=_0x173fa3;return this[_0x5241b4(0x439)](),this[_0x5241b4(0x4b7)][_0x5241b4(0x31f)](ie,this[_0x5241b4(0x23a)],this[_0x5241b4(0x32d)],this[_0x5241b4(0x249)],this[_0x5241b4(0x4d0)],this['_handler']);}[_0x173fa3(0x4a7)](){return this;}[_0x173fa3(0x1d1)](){const _0x2b792c=_0x173fa3;this['_handler'][_0x2b792c(0x379)](this[_0x2b792c(0x249)]);}['_onConflict'](_0x40beeb){const _0x1f43c5=_0x173fa3;return this[_0x1f43c5(0x439)](),this['_injector'][_0x1f43c5(0x31f)](se,this[_0x1f43c5(0x23a)],this[_0x1f43c5(0x32d)],null,this[_0x1f43c5(0x4d0)],this[_0x1f43c5(0x340)],_0x40beeb);}[_0x173fa3(0x3fd)](_0x336e72,_0xb05e2){const _0x37d11b=_0x173fa3;var _0x5360a6;_0x336e72===((_0x5360a6=this[_0x37d11b(0x249)])==null?void 0x0:_0x5360a6[_0x37d11b(0x271)])&&(this[_0x37d11b(0x1d1)](),this[_0x37d11b(0x4b2)]=_0xb05e2===0x0?0x3e8:_0xb05e2*0x2);}[_0x173fa3(0x439)](){const _0x5962e5=_0x173fa3;var _0x34c39e;(_0x34c39e=this[_0x5962e5(0x2ce)])==null||_0x34c39e[_0x5962e5(0x18e)](),this[_0x5962e5(0x4b2)]=0x0;}};z=me([f(0x6,_0x4f7ed2(_0x3b0750)),f(0x7,_0x4f7ed2(_0x6cbd2e)),f(0x8,_0x4f7ed2(D)),f(0x9,_0xdec94a),f(0xa,_0x4329b1),f(0xb,_0x4a8bc3),f(0xc,_0x57ccc3)],z);let se=class extends fe{constructor(_0x12d13b,_0x1ad249,_0xfd5084,_0x27a334,_0x69039e,_0x252f17=!0x1,_0x2c4068,_0x46cfd1,_0xc87da5,_0x1c0d27,_0x3191b5,_0x401182,_0x57e184){const _0x3fb9db=_0x173fa3;super(_0x12d13b,_0x1ad249,_0xfd5084,_0x27a334,_0x69039e,_0x46cfd1,_0xc87da5,_0x3191b5,_0x1c0d27),l(this,_0x3fb9db(0x38d),_0x3fb9db(0x2b1)),(this[_0x3fb9db(0x3e4)]=_0x252f17,this[_0x3fb9db(0x1d0)]=_0x2c4068,this[_0x3fb9db(0x2e7)]=_0x401182,this[_0x3fb9db(0x227)]=_0x57e184,this['_showConflictNotification'](),this[_0x3fb9db(0x225)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x173fa3(0x228)](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}[_0x173fa3(0x1b0)](){return this;}[_0x173fa3(0x3bb)](){return this;}['toggleOnline'](){return this;}['resend'](){const _0x33a019=_0x173fa3;throw new Error(_0x33a019(0x19b));}[_0x173fa3(0x225)](){const _0x275036=_0x173fa3;this[_0x275036(0x292)][_0x275036(0x234)](this[_0x275036(0x23a)],this[_0x275036(0x32d)],null,[]);}[_0x173fa3(0x34b)](){const _0xf0b1cc=_0x173fa3;this[_0xf0b1cc(0x3e4)]?this['_notificationService']['show']({'title':this[_0xf0b1cc(0x2e7)]['t'](_0xf0b1cc(0x490)),'content':this[_0xf0b1cc(0x2e7)]['t'](_0xf0b1cc(0x1d8)),'type':_0xf0b1cc(0x3b8),'duration':0x0}):this[_0xf0b1cc(0x227)][_0xf0b1cc(0x1e6)]({'title':this[_0xf0b1cc(0x2e7)]['t'](_0xf0b1cc(0x34f)),'content':this[_0xf0b1cc(0x2e7)]['t']('conflict.content'),'type':_0xf0b1cc(0x3b8),'duration':0x0});}[_0x173fa3(0x261)](){const _0x4e512c=_0x173fa3;this[_0x4e512c(0x1d0)][_0x4e512c(0x1c5)](new _0x52a438(this[_0x4e512c(0x23a)])['id'],!0x1);}};se=me([f(0x6,_0x4f7ed2(_0x8f100a)),f(0x7,_0xdec94a),f(0x8,_0x57ccc3),f(0x9,_0x4f7ed2(D)),f(0xa,_0x4f7ed2(_0x6cbd2e)),f(0xb,_0x4f7ed2(_0x15839b)),f(0xc,_0x21df64)],se);let ie=class extends fe{constructor(_0x22b0c4,_0x3782dc,_0x73eb43,_0x31ff3b,_0x1b2044,_0x2e350b,_0x5c4fac,_0x110394,_0x57571b,_0x199ac4){const _0x563dd4=_0x173fa3;super(_0x22b0c4,_0x3782dc,_0x73eb43,_0x31ff3b,_0x1b2044,_0x57571b,_0x199ac4,_0x5c4fac,_0x110394),l(this,_0x563dd4(0x38d),'offline'),this[_0x563dd4(0x4b7)]=_0x2e350b;}[_0x173fa3(0x44f)](_0x39b599){const _0x174579=_0x173fa3;return this[_0x174579(0x4d0)][_0x174579(0x1da)](_0x39b599),this['_updateLocalCache'](),this;}[_0x173fa3(0x228)](_0x5f9133){const _0x467c3f=_0x173fa3;throw new Error(_0x467c3f(0x20a));}['onRemoteAck'](){const _0x1d8f1d=_0x173fa3;throw new Error(_0x1d8f1d(0x257));}[_0x173fa3(0x277)](){const _0x15e3b4=_0x173fa3;throw new Error(_0x15e3b4(0x3b5));}[_0x173fa3(0x1b0)](){return this;}[_0x173fa3(0x3bb)](){return this;}['toggleOnline'](){const _0x2b2b7a=_0x173fa3,{_injector:_0x47e0e2,_pendingMutations:_0x61dd7f,_awaitingChangeset:_0x2fdc50,unitID:_0x28e954,_handler:_0x7e2df4,type:_0x2c41d9}=this,_0x3f7b30=Xs(_0x47e0e2,_0x28e954,_0x2c41d9,_0x2fdc50,_0x61dd7f,_0x7e2df4);return _0x3f7b30 instanceof J?_0x3f7b30[_0x2b2b7a(0x3be)]():(_0x3f7b30 instanceof z||_0x3f7b30 instanceof te)&&_0x3f7b30[_0x2b2b7a(0x1d1)](),_0x3f7b30;}[_0x173fa3(0x1d1)](){const _0xafef73=_0x173fa3;throw new Error(_0xafef73(0x39e));}};ie=me([f(0x5,_0x4f7ed2(_0x3b0750)),f(0x6,_0x4f7ed2(_0x6cbd2e)),f(0x7,_0x4f7ed2(D)),f(0x8,_0xdec94a),f(0x9,_0x57ccc3)],ie);let V=class extends fe{constructor(_0x692ced,_0x455976,_0x5b2173,_0x4ec061,_0x3db837,_0x4712b0,_0x51f118,_0x11b88a,_0x210274,_0x22e5ba,_0x3e185a,_0x1fee45,_0x3641dc,_0x1bdb4b){const _0x2b0490=_0x173fa3;super(_0x692ced,_0x455976,_0x5b2173,_0x4ec061,_0x51f118,_0x1fee45,_0x3641dc,_0x210274,_0x22e5ba),l(this,_0x2b0490(0x38d),_0x2b0490(0x2af)),(this[_0x2b0490(0x500)]=_0x3db837,this[_0x2b0490(0x3db)]=_0x4712b0,this[_0x2b0490(0x4b7)]=_0x11b88a,this[_0x2b0490(0x2cd)]=_0x3e185a,this['_transformService']=_0x1bdb4b);}[_0x173fa3(0x1ed)](_0x4d0c62){const _0x53fe4f=_0x173fa3;try{const _0x1170a3=[..._0x4d0c62,...this[_0x53fe4f(0x3db)]],_0xddb6db=[this[_0x53fe4f(0x249)]||this[_0x53fe4f(0x500)]][_0x53fe4f(0x2fb)](_0x27b7d5=>!!_0x27b7d5);let _0x26acdd,_0x3671a8;if(_0xddb6db[_0x53fe4f(0x223)]){const _0x5c7718=this[_0x53fe4f(0x387)][_0x53fe4f(0x3c8)](_0x1170a3,_0xddb6db,!0x1);if(!_0xec58bb(_0x5c7718))throw _0x5c7718[_0x53fe4f(0x3b8)];_0x26acdd=_0x5c7718[_0x53fe4f(0x33a)],_0x3671a8=_0x5c7718['c2Prime'];}else _0x26acdd=_0x1170a3,_0x3671a8=[];let _0x56e252=this[_0x53fe4f(0x4d0)];_0x26acdd['forEach'](_0xebc70c=>{const _0x264dc0=_0x53fe4f;let _0x491adc;if(_0x56e252[_0x264dc0(0x223)]){const _0x188ac5=this['_transformService'][_0x264dc0(0x3a5)](_0xebc70c,_0x56e252);if(!_0x2c439f(_0x188ac5))throw _0x188ac5[_0x264dc0(0x3b8)];_0x491adc=_0x188ac5[_0x264dc0(0x33a)],_0x56e252=_0x188ac5[_0x264dc0(0x197)];}else _0x491adc=_0xebc70c;this[_0x264dc0(0x2ee)](_0x491adc);}),this[_0x53fe4f(0x500)]&&this[_0x53fe4f(0x2ca)](),this[_0x53fe4f(0x249)]&&_0x3671a8[_0x53fe4f(0x223)]&&(_0x3671a8[0x0][_0x53fe4f(0x4d3)]=this['_getCurrentRevision']());let _0x299c0d;if(this[_0x53fe4f(0x249)]&&_0x56e252[_0x53fe4f(0x223)]!==0x0)_0x299c0d=this[_0x53fe4f(0x4b7)][_0x53fe4f(0x31f)](z,this[_0x53fe4f(0x23a)],this[_0x53fe4f(0x32d)],_0x3671a8[0x0],_0x56e252,this['_handler'],void 0x0);else{if(this['_awaitingChangeset']&&_0x56e252[_0x53fe4f(0x223)]===0x0)_0x3671a8[0x0][_0x53fe4f(0x4d3)]=this[_0x53fe4f(0x246)](),_0x299c0d=this['_injector'][_0x53fe4f(0x31f)](te,this[_0x53fe4f(0x23a)],this[_0x53fe4f(0x32d)],_0x3671a8[0x0],this[_0x53fe4f(0x340)]);else{if(_0x56e252[_0x53fe4f(0x223)]!==0x0){const _0x345665=this[_0x53fe4f(0x4b7)][_0x53fe4f(0x31f)](J,this[_0x53fe4f(0x23a)],this[_0x53fe4f(0x32d)],_0x56e252,this['_handler']);_0x345665[_0x53fe4f(0x3be)](),_0x299c0d=_0x345665;}else _0x299c0d=this[_0x53fe4f(0x4b7)][_0x53fe4f(0x31f)](Ee,this['unitID'],this[_0x53fe4f(0x32d)],this[_0x53fe4f(0x340)]);}}return _0x299c0d['_updateLocalCache'](),_0x299c0d;}catch(_0x4ddfd1){return this[_0x53fe4f(0x2cd)][_0x53fe4f(0x3b8)](_0x53fe4f(0x23f),'failed\x20to\x20apply\x20missed\x20changesets!',_0x4ddfd1),this[_0x53fe4f(0x4b7)][_0x53fe4f(0x31f)](se,this[_0x53fe4f(0x23a)],this[_0x53fe4f(0x32d)],this[_0x53fe4f(0x249)],this[_0x53fe4f(0x4d0)],this[_0x53fe4f(0x340)],!0x1);}}[_0x173fa3(0x1d1)](){const _0x596c3c=_0x173fa3;throw new Error(_0x596c3c(0x283));}[_0x173fa3(0x44f)](_0x45edb6){const _0x41c46e=_0x173fa3;return this['_pendingMutations'][_0x41c46e(0x1da)](_0x45edb6),this;}[_0x173fa3(0x228)](_0x5ce238){const _0x47d7c9=_0x173fa3;return this[_0x47d7c9(0x3db)][_0x47d7c9(0x1da)](_0x5ce238),this;}[_0x173fa3(0x41f)](_0x1fb235){const _0x590e83=_0x173fa3;if(this[_0x590e83(0x249)])return this['_acknowledgedAwaitingChangeset']=this[_0x590e83(0x249)],this[_0x590e83(0x249)]=null,this;throw new Error(_0x590e83(0x1e1));}[_0x173fa3(0x277)](_0x187833){const _0x3cc5a2=_0x173fa3;return this[_0x3cc5a2(0x1c7)](!!(_0x187833!=null&&_0x187833['isPermissionRej']));}[_0x173fa3(0x1b0)](){return this;}['toggleOffline'](){const _0x242e71=_0x173fa3;return this[_0x242e71(0x4b7)][_0x242e71(0x31f)](ie,this['unitID'],this[_0x242e71(0x32d)],this[_0x242e71(0x249)],this[_0x242e71(0x4d0)],this['_handler']);}[_0x173fa3(0x4a7)](){return this;}['_onConflict'](_0x50e826){const _0x306563=_0x173fa3;return this['_injector'][_0x306563(0x31f)](se,this[_0x306563(0x23a)],this['type'],this['_awaitingChangeset'],this[_0x306563(0x4d0)],this[_0x306563(0x340)],_0x50e826);}};V=me([f(0x7,_0x4f7ed2(_0x3b0750)),f(0x8,_0x4f7ed2(_0x6cbd2e)),f(0x9,_0x4f7ed2(D)),f(0xa,_0x4329b1),f(0xb,_0xdec94a),f(0xc,_0x57ccc3),f(0xd,_0x4a8bc3)],V);function Xs(_0xf20ead,_0x1c3a87,_0x510df3,_0x357f66,_0x31aae1,_0x4fdbb9){const _0x270d56=_0x173fa3;return _0x357f66&&_0x31aae1[_0x270d56(0x223)]?_0xf20ead[_0x270d56(0x31f)](z,_0x1c3a87,_0x510df3,_0x357f66,_0x31aae1,_0x4fdbb9,void 0x0):_0x357f66?_0xf20ead['createInstance'](te,_0x1c3a87,_0x510df3,_0x357f66,_0x4fdbb9):_0x31aae1[_0x270d56(0x223)]?_0xf20ead['createInstance'](J,_0x1c3a87,_0x510df3,_0x31aae1,_0x4fdbb9):_0xf20ead[_0x270d56(0x31f)](Ee,_0x1c3a87,_0x510df3,_0x4fdbb9);}var Dr=Object[_0x173fa3(0x309)],wr=Object['getOwnPropertyDescriptor'],Gt=(_0x566b17,_0x2c03f6,_0x56b934,_0x23f02f)=>{const _0x40d7c9=_0x173fa3;for(var _0x3be6bc=_0x23f02f>0x1?void 0x0:_0x23f02f?wr(_0x2c03f6,_0x56b934):_0x2c03f6,_0x1ba6fa=_0x566b17[_0x40d7c9(0x223)]-0x1,_0x73dcbe;_0x1ba6fa>=0x0;_0x1ba6fa--)(_0x73dcbe=_0x566b17[_0x1ba6fa])&&(_0x3be6bc=(_0x23f02f?_0x73dcbe(_0x2c03f6,_0x56b934,_0x3be6bc):_0x73dcbe(_0x3be6bc))||_0x3be6bc);return _0x23f02f&&_0x3be6bc&&Dr(_0x2c03f6,_0x56b934,_0x3be6bc),_0x3be6bc;},p=(_0x3bd44f,_0x478a52)=>(_0x224246,_0x42aa93)=>_0x478a52(_0x224246,_0x42aa93,_0x3bd44f);let ze=class extends _0x13ba8e{constructor(_0x4a6f49,_0x2227ce,_0x4fd43b,_0x300c61,_0x5350d2,_0x5091fb,_0x2824e4,_0x1c1a5f,_0x3491eb,_0xe8b4e0,_0x33f46e,_0x1396aa,_0x7a307e){const _0x522d57=_0x173fa3;super(),l(this,_0x522d57(0x1c0),new _0x37b5ce(null)),l(this,'state$',this[_0x522d57(0x1c0)][_0x522d57(0x2e6)]()),l(this,_0x522d57(0x335)),l(this,_0x522d57(0x400),!0x1),l(this,_0x522d57(0x354),''),l(this,_0x522d57(0x25e),0x0),l(this,_0x522d57(0x28e),this[_0x522d57(0x3d6)][_0x522d57(0x35b)](_0x4afa33(_0x26c124=>_0x26c124?_0x26c124[_0x522d57(0x38d)]:w[_0x522d57(0x410)]),_0x5fb4e1(0x1))),l(this,_0x522d57(0x510),!0x1),l(this,_0x522d57(0x190),[]),(this[_0x522d57(0x23a)]=_0x4a6f49,this[_0x522d57(0x4d2)]=_0x2227ce,this[_0x522d57(0x50c)]=_0x4fd43b,this['_injector']=_0x300c61,this['_localCacheService']=_0x5350d2,this[_0x522d57(0x328)]=_0x5091fb,this['_localeService']=_0x2824e4,this['_revisionService']=_0x1c1a5f,this[_0x522d57(0x2cd)]=_0x3491eb,this[_0x522d57(0x35c)]=_0xe8b4e0,this[_0x522d57(0x245)]=_0x33f46e,this[_0x522d57(0x1d0)]=_0x1396aa,this['_singleActiveUnitService']=_0x7a307e);}get['state'](){const _0x58b1e8=_0x173fa3;return this[_0x58b1e8(0x335)];}async['init'](){const _0x4f2894=_0x173fa3;if(this['state'])throw new Error(_0x4f2894(0x35d));await this['_init']();}[_0x173fa3(0x508)](){const _0x35aa24=_0x173fa3;return this[_0x35aa24(0x400)]=!0x0,_0x4a9188(()=>{const _0x5bde14=_0x35aa24;this[_0x5bde14(0x400)]=!0x1,this[_0x5bde14(0x370)]();});}['_updateState'](_0x3e025a){const _0x110abc=_0x173fa3;this[_0x110abc(0x335)]=_0x3e025a,this[_0x110abc(0x1c0)][_0x110abc(0x2d0)](_0x3e025a);}async[_0x173fa3(0x367)](){const _0x7ac7d4=_0x173fa3;var _0x12e4a4;this[_0x7ac7d4(0x258)](await this[_0x7ac7d4(0x1e3)]()),this[_0x7ac7d4(0x1cd)]&&((_0x12e4a4=this[_0x7ac7d4(0x1cd)])==null||_0x12e4a4[_0x7ac7d4(0x4fc)](this[_0x7ac7d4(0x23a)]),this[_0x7ac7d4(0x193)](this[_0x7ac7d4(0x1cd)][_0x7ac7d4(0x324)](this['unitID'])[_0x7ac7d4(0x3eb)](_0x57557e=>{const _0x2c804f=_0x7ac7d4;this['_logService'][_0x2c804f(0x28a)]('[CollaborationEntity]',_0x2c804f(0x437),_0x57557e),_0x57557e===Ws[_0x2c804f(0x3b9)]?(this[_0x2c804f(0x245)]['show']({'content':this[_0x2c804f(0x2e7)]['t']('collaboration.single-unit.warning'),'type':_0x180cc7[_0x2c804f(0x44a)]}),this[_0x2c804f(0x1d0)][_0x2c804f(0x1c5)](new _0x52a438(this[_0x2c804f(0x23a)])['id'],!0x1)):this['_permissionService']['updatePermissionPoint'](new _0x52a438(this['unitID'])['id'],!0x0);})));let _0x2c462b=!0x1;return this['disposeWithMe'](this[_0x7ac7d4(0x4d2)][_0x7ac7d4(0x303)]['subscribe'](_0x5c065a=>{const _0x35730f=_0x7ac7d4;_0x5c065a===X[_0x35730f(0x263)]?this['_toggleOnline'](_0x2c462b):_0x5c065a===X[_0x35730f(0x410)]&&(_0x2c462b=!0x0,this[_0x35730f(0x1b1)]());})),this['disposeWithMe'](this[_0x7ac7d4(0x4d2)][_0x7ac7d4(0x493)][_0x7ac7d4(0x3eb)](_0x34fb5e=>{const _0x444d4d=_0x7ac7d4;try{switch(_0x34fb5e[_0x444d4d(0x278)]){case _0x5f441e[_0x444d4d(0x2ef)]:{this[_0x444d4d(0x2b0)](_0x4ecc3b(_0x34fb5e['data']));break;}case _0x5f441e[_0x444d4d(0x18d)]:{this[_0x444d4d(0x4f4)](_0x34fb5e[_0x444d4d(0x411)]);break;}case _0x5f441e[_0x444d4d(0x25d)]:{this[_0x444d4d(0x1ac)]();break;}case _0x5f441e[_0x444d4d(0x4b9)]:{this['_onRemoteRetry'](_0x34fb5e[_0x444d4d(0x411)]);break;}case _0x5f441e[_0x444d4d(0x46f)]:{this[_0x444d4d(0x1df)](_0x34fb5e[_0x444d4d(0x411)][_0x444d4d(0x386)][_0x444d4d(0x204)](_0xd2ee3e=>_0x4ecc3b(_0xd2ee3e)));break;}case _0x5f441e['PERMISSION_REJ']:this[_0x444d4d(0x1ac)]({'isPermissionRej':!0x0});}}catch(_0x58728b){throw console[_0x444d4d(0x3b8)](_0x444d4d(0x4f8),_0x58728b),_0x58728b;}})),this[_0x7ac7d4(0x335)];}[_0x173fa3(0x2c6)](){const _0x404948=_0x173fa3;this[_0x404948(0x510)]=!0x1;}[_0x173fa3(0x2bd)](){const _0x4bf831=_0x173fa3;if(this[_0x4bf831(0x510)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x4bf831(0x510)]=!0x0;}['_onLocalMutation'](_0x23c61f){const _0x37bf45=_0x173fa3;this['_lockTransition'](),this[_0x37bf45(0x258)](this[_0x37bf45(0x335)][_0x37bf45(0x44f)](_0x23c61f)),this[_0x37bf45(0x2c6)]();}[_0x173fa3(0x2b0)](_0x42b691){const _0x4a6a48=_0x173fa3;if(!(_0x42b691[_0x4a6a48(0x495)]<=this['_revisionService'][_0x4a6a48(0x462)](this['unitID']))){if(this[_0x4a6a48(0x400)]){this['_remoteChangesetQueue']['push'](_0x42b691);return;}this[_0x4a6a48(0x2ad)](_0x42b691);}}[_0x173fa3(0x370)](){const _0x210b27=_0x173fa3;this['_remoteChangesetQueue']['forEach'](_0x1119fc=>this['_applyRemoteChangeset'](_0x1119fc)),this[_0x210b27(0x190)]=[];}['_applyRemoteChangeset'](_0x145610){const _0x4b49ef=_0x173fa3,_0x1cef39=this[_0x4b49ef(0x328)][_0x4b49ef(0x28d)][_0x4b49ef(0x448)](this['_compressMutationService'][_0x4b49ef(0x28d)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x145610[_0x4b49ef(0x4cd)],null)||_0x145610['mutations'],_0x2aee62={..._0x145610,'mutations':_0x1cef39};this['_lockTransition'](),this[_0x4b49ef(0x258)](this['_state']['onRemoteChangeset'](_0x2aee62)),this[_0x4b49ef(0x2c6)]();}['_onRemoteACK'](_0x11f488){const _0x4f2afd=_0x173fa3;this[_0x4f2afd(0x2bd)](),this[_0x4f2afd(0x258)](this[_0x4f2afd(0x335)][_0x4f2afd(0x41f)](_0x11f488)),this[_0x4f2afd(0x2c6)]();}[_0x173fa3(0x1ac)](_0x1f1572){const _0x5cbc06=_0x173fa3;this[_0x5cbc06(0x2bd)](),this[_0x5cbc06(0x258)](this[_0x5cbc06(0x335)][_0x5cbc06(0x277)](_0x1f1572)),this['_unlockTransition']();}['_onRemoteRetry'](_0x228093){const _0x493e6d=_0x173fa3;this[_0x493e6d(0x2bd)](),this[_0x493e6d(0x258)](this[_0x493e6d(0x335)]['onRemoteRetry'](_0x228093)),this[_0x493e6d(0x2c6)]();}[_0x173fa3(0x1df)](_0x37a324){const _0x882bb5=_0x173fa3;if(!(this[_0x882bb5(0x335)]instanceof V))throw new TypeError(_0x882bb5(0x4e1));const _0x2d68e3=_0x37a324[_0x882bb5(0x204)](_0x190ccf=>{const _0x324136=_0x882bb5,_0xaaf6b9=this[_0x324136(0x328)]['interceptor'][_0x324136(0x448)](this[_0x324136(0x328)]['interceptor'][_0x324136(0x440)]()[_0x324136(0x383)])(_0x190ccf[_0x324136(0x4cd)],null)||_0x190ccf[_0x324136(0x4cd)];return{..._0x190ccf,'mutations':_0xaaf6b9};});this[_0x882bb5(0x2bd)](),this[_0x882bb5(0x258)](this[_0x882bb5(0x335)][_0x882bb5(0x1ed)](_0x2d68e3)),this['_unlockTransition']();}[_0x173fa3(0x1b1)](){const _0x452003=_0x173fa3;this['_lockTransition'](),this['_updateState'](this[_0x452003(0x335)]['toggleOffline']()),this[_0x452003(0x2c6)]();}[_0x173fa3(0x23d)](_0xd512cd=!0x1){const _0x4f1812=_0x173fa3;this[_0x4f1812(0x2bd)](),this[_0x4f1812(0x258)](this['_state']['toggleOnline']()),this[_0x4f1812(0x2c6)]();const _0x5b8dc1=this['_state'];_0xd512cd&&_0x5b8dc1 instanceof Ee&&(this[_0x4f1812(0x2bd)](),this['_updateState'](_0x5b8dc1['fetchMiss']()),this['_unlockTransition']());}async[_0x173fa3(0x1e3)](){return new Promise(_0x2d3686=>{const _0x364d0c=_0x33c3;this[_0x364d0c(0x4d2)]['sessionStatus$']['pipe'](_0x13b5e9(0x1))[_0x364d0c(0x3eb)](async _0xf4a2ee=>{const _0x251ae2=_0x364d0c;_0x2d3686(await this[_0x251ae2(0x488)](_0xf4a2ee===X[_0x251ae2(0x263)]));});});}[_0x173fa3(0x2de)](){const _0x5bc00e=_0x173fa3,_0x65b7a2=this[_0x5bc00e(0x23a)];return{'onStateChange':(_0x4d212c,_0x26719e)=>{const _0x37f6e8=_0x5bc00e;if(_0x4d212c!==this[_0x37f6e8(0x335)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x4d212c['status']+_0x37f6e8(0x390)+_0x26719e['status']+_0x37f6e8(0x350)+this[_0x37f6e8(0x335)][_0x37f6e8(0x38d)]);this[_0x37f6e8(0x258)](_0x26719e);},'onSendChangeset':_0x23b2c0=>{const _0x46726d=_0x5bc00e;_0x23b2c0[_0x46726d(0x3da)]||(_0x23b2c0[_0x46726d(0x3da)]=this['_changesetSessionId'],_0x23b2c0[_0x46726d(0x271)]=++this['_changesetReqId']);const _0x136df2={'eventID':_0x5f441e[_0x46726d(0x453)],'data':{'unitID':_0x23b2c0[_0x46726d(0x23a)],'unitType':this['_type'],'changeset':_0x23b2c0,'memberID':this['session']['getMemberID']()}};this[_0x46726d(0x4d2)][_0x46726d(0x2ab)](_0x136df2,this[_0x46726d(0x23a)]);},'onMissingChangesets':({from:_0x43c58c,to:_0x5910f5})=>{const _0x414009=_0x5bc00e;this[_0x414009(0x2cd)][_0x414009(0x28a)](_0x414009(0x229),_0x414009(0x2b8)+_0x43c58c+_0x414009(0x2ed)+_0x5910f5);const _0x4c0383={'eventID':_0x5f441e[_0x414009(0x4a2)],'data':{'unitID':_0x65b7a2,'unitType':this['_type'],'from':_0x43c58c,'to':_0x5910f5}};this[_0x414009(0x4d2)]['send'](_0x4c0383,this[_0x414009(0x23a)]);}};}async[_0x173fa3(0x488)](_0x4937a7){const _0x552654=_0x173fa3;var _0x214f4e,_0x266623;const _0x429ce4=await this[_0x552654(0x292)][_0x552654(0x302)](this[_0x552654(0x23a)]),_0x2cf7c2=(_0x214f4e=_0x429ce4==null?void 0x0:_0x429ce4[_0x552654(0x4cd)])!=null?_0x214f4e:[],_0x13f3e6=(_0x266623=_0x429ce4==null?void 0x0:_0x429ce4[_0x552654(0x3fe)])!=null?_0x266623:null,_0x1ca59f=!!(_0x13f3e6!=null&&_0x13f3e6[_0x552654(0x3da)])&&!!(_0x13f3e6!=null&&_0x13f3e6[_0x552654(0x271)]);this[_0x552654(0x354)]=_0x1ca59f?_0x13f3e6[_0x552654(0x3da)]:or(),this[_0x552654(0x25e)]=_0x1ca59f?_0x13f3e6[_0x552654(0x271)]:0x0;const _0x4f70b7=this['unitID'];try{this['_replayCachedMutations'](_0x13f3e6,_0x2cf7c2);}catch(_0xfbc31c){this[_0x552654(0x2cd)][_0x552654(0x3b8)](_0xfbc31c);}const _0x1cf04d=this[_0x552654(0x2de)]();if(_0x4937a7){const _0x20db5b=Xs(this['_injector'],_0x4f70b7,this[_0x552654(0x50c)],_0x13f3e6,_0x2cf7c2,_0x1cf04d);return _0x20db5b instanceof J?_0x20db5b[_0x552654(0x3be)]():(_0x20db5b instanceof z||_0x20db5b instanceof te)&&_0x20db5b[_0x552654(0x1d1)](),_0x20db5b;}return this[_0x552654(0x4b7)][_0x552654(0x31f)](ie,_0x4f70b7,this[_0x552654(0x50c)],_0x13f3e6,_0x2cf7c2,_0x1cf04d);}[_0x173fa3(0x423)](_0x49efcd,_0x2d86e8){const _0x21a18a=_0x173fa3;var _0x147d16,_0x26060f;const _0x59425c=this[_0x21a18a(0x328)]['interceptor']['fetchThroughInterceptors'](this[_0x21a18a(0x328)][_0x21a18a(0x28d)][_0x21a18a(0x440)]()[_0x21a18a(0x383)]);(_0x147d16=_0x59425c((_0x49efcd==null?void 0x0:_0x49efcd[_0x21a18a(0x4cd)])||[],null))==null||_0x147d16['forEach'](_0x24b135=>this[_0x21a18a(0x35c)][_0x21a18a(0x1d2)](_0x24b135['id'],_0x24b135[_0x21a18a(0x465)])),(_0x26060f=_0x59425c(_0x2d86e8||[],null))==null||_0x26060f[_0x21a18a(0x47e)](_0x1027d6=>this[_0x21a18a(0x35c)][_0x21a18a(0x1d2)](_0x1027d6['id'],_0x1027d6[_0x21a18a(0x465)]));}};ze=Gt([p(0x3,_0x4f7ed2(_0x3b0750)),p(0x4,_0x4f7ed2(D)),p(0x5,_0x4f7ed2(_0x413548)),p(0x6,_0x4f7ed2(_0x15839b)),p(0x7,_0x4f7ed2(_0x6cbd2e)),p(0x8,_0x4329b1),p(0x9,_0xdec94a),p(0xa,_0x46e149),p(0xb,_0x8f100a),p(0xc,_0x532e88(it))],ze);let Rt=class extends ze{constructor(_0x2abca1,_0xa495c4,_0x50a118,_0x114f9c,_0x233088,_0x8b0685,_0xfe9839,_0x4f1333,_0x3fb426,_0x5af4e6,_0xe54e7d,_0xdcba90,_0xbfa3ef,_0x4b6da5,_0x1197df,_0x3991ca,_0x31be43){const _0x204281=_0x173fa3;super(_0x2abca1,_0x50a118,_0xa495c4,_0x114f9c,_0x233088,_0x8b0685,_0xfe9839,_0x4f1333,_0xbfa3ef,_0x4b6da5,_0x1197df,_0x3991ca,_0x31be43),this[_0x204281(0x23a)]=_0x2abca1,this['type']=_0xa495c4,this[_0x204281(0x4a3)]=_0x3fb426,this[_0x204281(0x286)]=_0x5af4e6,this[_0x204281(0x24b)]=_0xe54e7d,this['_docSyncEditingCollabCursorService']=_0xdcba90;}['_createHandler'](){const _0x3c5d2f=_0x173fa3,_0x6ad273=super[_0x3c5d2f(0x2de)]();return _0x6ad273[_0x3c5d2f(0x280)]=_0x233f62=>this[_0x3c5d2f(0x286)][_0x3c5d2f(0x334)](_0x233f62),_0x6ad273['onTransformSelections']=_0x5ee987=>this[_0x3c5d2f(0x24b)][_0x3c5d2f(0x366)](_0x5ee987),_0x6ad273['onSyncEditingCollabCursor']=_0x1ffdaa=>this[_0x3c5d2f(0x27d)][_0x3c5d2f(0x461)](_0x1ffdaa),_0x6ad273['onTransformRemoteChangesetByIMECache']=_0x2ada47=>this['_docTransformIMECacheService'][_0x3c5d2f(0x47a)](_0x2ada47),_0x6ad273;}async['_init'](){const _0x2b610c=_0x173fa3,_0x593e87=await super[_0x2b610c(0x367)]();return this[_0x2b610c(0x4a3)][_0x2b610c(0x1ae)][_0x2b610c(0x35b)](_0x223895(this[_0x2b610c(0x2a1)]))[_0x2b610c(0x3eb)](_0x51429a=>{const _0x1aa698=_0x2b610c;if(_0x51429a==null)return;const {unitId:_0xf08b52,redoState:_0x1b3e6d,commandId:_0x2a18a3}=_0x51429a;if(_0xf08b52!==this['unitID'])return;const _0x484f98={'id':_0x2a18a3,'type':_0x12b588[_0x1aa698(0x45f)],'params':{'unitId':_0xf08b52,'actions':_0x1b3e6d[_0x1aa698(0x1c3)],'textRanges':null}};this[_0x1aa698(0x48f)](_0x484f98);}),_0x593e87;}};Rt=Gt([p(0x3,_0x4f7ed2(_0x3b0750)),p(0x4,_0x4f7ed2(D)),p(0x5,_0x4f7ed2(_0x413548)),p(0x6,_0x4f7ed2(_0x15839b)),p(0x7,_0x4f7ed2(_0x6cbd2e)),p(0x8,_0x4f7ed2(_0x12095e)),p(0x9,_0x4f7ed2(Xe)),p(0xa,_0x4f7ed2(Je)),p(0xb,_0x4f7ed2(Wt)),p(0xc,_0x4329b1),p(0xd,_0xdec94a),p(0xe,_0x46e149),p(0xf,_0x8f100a),p(0x10,_0x532e88(it))],Rt);let Ot=class extends ze{constructor(_0x14b486,_0x7e0a8a,_0x15964c,_0x14491a,_0xd83adc,_0x1c9372,_0x1189d4,_0x20fa93,_0x1a6800,_0x44eed9,_0x259196,_0x297ab2,_0x272f3f,_0x3ab0ab){const _0x30c149=_0x173fa3;super(_0x14b486,_0x15964c,_0x7e0a8a,_0x14491a,_0xd83adc,_0x1c9372,_0x1189d4,_0x20fa93,_0x44eed9,_0x259196,_0x297ab2,_0x272f3f,_0x3ab0ab),this[_0x30c149(0x23a)]=_0x14b486,this[_0x30c149(0x32d)]=_0x7e0a8a,this['_sheetTransformSelectionsService']=_0x1a6800;}[_0x173fa3(0x2de)](){const _0x3a422a=_0x173fa3,_0x167e54=super['_createHandler']();return _0x167e54[_0x3a422a(0x405)]=_0x18770d=>this[_0x3a422a(0x494)][_0x3a422a(0x366)](_0x18770d),_0x167e54;}async[_0x173fa3(0x367)](){const _0x22065a=_0x173fa3,_0xc6d202=await super[_0x22065a(0x367)]();return this[_0x22065a(0x193)](this[_0x22065a(0x35c)][_0x22065a(0x409)]((_0x2d55bb,_0xa3fb0e)=>{const _0xe301a7=_0x22065a;if(_0x2d55bb[_0xe301a7(0x32d)]!==_0x12b588['MUTATION']||_0xa3fb0e!=null&&_0xa3fb0e[_0xe301a7(0x48b)]||_0xa3fb0e!=null&&_0xa3fb0e[_0xe301a7(0x310)])return;const _0x2d3b14=_0x2d55bb['params'];if((_0x2d3b14==null?void 0x0:_0x2d3b14[_0xe301a7(0x217)])!==this['unitID'])return;const _0x206d88=_0x2d55bb,_0xbd861f=this[_0xe301a7(0x328)][_0xe301a7(0x28d)][_0xe301a7(0x448)](this[_0xe301a7(0x328)][_0xe301a7(0x28d)][_0xe301a7(0x440)]()[_0xe301a7(0x327)])([_0x206d88],null)||[_0x206d88];this[_0xe301a7(0x48f)](_0xbd861f[0x0]);})),_0xc6d202;}};Ot=Gt([p(0x3,_0x4f7ed2(_0x3b0750)),p(0x4,_0x4f7ed2(D)),p(0x5,_0x4f7ed2(_0x413548)),p(0x6,_0x4f7ed2(_0x15839b)),p(0x7,_0x4f7ed2(_0x6cbd2e)),p(0x8,_0x4f7ed2(qe)),p(0x9,_0x4329b1),p(0xa,_0xdec94a),p(0xb,_0x46e149),p(0xc,_0x8f100a),p(0xd,_0x532e88(it))],Ot);var Pr=Object[_0x173fa3(0x309)],yr=Object[_0x173fa3(0x4d5)],Ur=(_0x3c7b85,_0x398c06,_0x50c1b0,_0x565c87)=>{const _0x28dcce=_0x173fa3;for(var _0x30fa9c=_0x565c87>0x1?void 0x0:_0x565c87?yr(_0x398c06,_0x50c1b0):_0x398c06,_0x3cecda=_0x3c7b85[_0x28dcce(0x223)]-0x1,_0x32ac3c;_0x3cecda>=0x0;_0x3cecda--)(_0x32ac3c=_0x3c7b85[_0x3cecda])&&(_0x30fa9c=(_0x565c87?_0x32ac3c(_0x398c06,_0x50c1b0,_0x30fa9c):_0x32ac3c(_0x30fa9c))||_0x30fa9c);return _0x565c87&&_0x30fa9c&&Pr(_0x398c06,_0x50c1b0,_0x30fa9c),_0x30fa9c;},ut=(_0x162c61,_0x448205)=>(_0x43eb67,_0x1f3e6e)=>_0x448205(_0x43eb67,_0x1f3e6e,_0x162c61);let $e=class extends _0x13ba8e{constructor(_0x49d9fb,_0x286460,_0x4bd336){const _0x765214=_0x173fa3;super(),l(this,_0x765214(0x2d5),new Map()),l(this,'_entityInit$',new _0x54d3a4()),(this['_injector']=_0x49d9fb,this[_0x765214(0x3ef)]=_0x286460,this[_0x765214(0x3f2)]=_0x4bd336,this[_0x765214(0x367)]());}[_0x173fa3(0x2c0)](){const _0x28c500=_0x173fa3;super[_0x28c500(0x2c0)](),this[_0x28c500(0x2d5)]['forEach'](_0x48ebc2=>_0x48ebc2['dispose']()),this['_entities'][_0x28c500(0x483)]();}[_0x173fa3(0x37a)](_0x4b3808){const _0x41bdb5=_0x173fa3;var _0x40c7e2;return(_0x40c7e2=this[_0x41bdb5(0x2d5)][_0x41bdb5(0x3c3)](_0x4b3808))!=null?_0x40c7e2:null;}[_0x173fa3(0x331)](_0x125a56){const _0xa93347=_0x173fa3,_0x31c498=this[_0xa93347(0x37a)](_0x125a56);return _0x31c498?_0x2ad1bd(_0x31c498):this[_0xa93347(0x43f)]['pipe'](_0x3f9fc1(_0x310e2e=>_0x310e2e[_0xa93347(0x23a)]===_0x125a56));}[_0x173fa3(0x367)](){const _0x1e651c=_0x173fa3;this[_0x1e651c(0x3f2)]['getTypeOfUnitAdded$'](_0x159e2d[_0x1e651c(0x4fa)])[_0x1e651c(0x35b)](_0x223895(this['dispose$']),_0xd71fd1(0x10))[_0x1e651c(0x3eb)](async _0x3e632f=>{const _0xab0b59=_0x1e651c,_0x23d5f9=_0x3e632f[_0xab0b59(0x253)](),_0x1ebc6a=await this[_0xab0b59(0x442)](_0x23d5f9,B['UNIVER_SHEET']);this[_0xab0b59(0x2d5)][_0xab0b59(0x3e3)](_0x23d5f9,_0x1ebc6a);}),this[_0x1e651c(0x3f2)][_0x1e651c(0x22f)](_0x159e2d[_0x1e651c(0x381)])['pipe'](_0x223895(this[_0x1e651c(0x2a1)]),_0xd71fd1(0x10))[_0x1e651c(0x35b)](_0x3f9fc1(_0x594f5a=>!_0x594f5a[_0x1e651c(0x253)]()['startsWith']('__')))['subscribe'](async _0x43b807=>{const _0x567724=_0x1e651c,_0x51f1ca=_0x43b807['getUnitId'](),_0x206ee0=await this[_0x567724(0x442)](_0x51f1ca,B[_0x567724(0x381)]);this[_0x567724(0x2d5)][_0x567724(0x3e3)](_0x51f1ca,_0x206ee0);}),_0x378f3d(this[_0x1e651c(0x3f2)][_0x1e651c(0x33e)](_0x159e2d[_0x1e651c(0x4fa)]),this[_0x1e651c(0x3f2)][_0x1e651c(0x33e)](_0x159e2d['UNIVER_DOC']))[_0x1e651c(0x35b)](_0x223895(this[_0x1e651c(0x2a1)]))[_0x1e651c(0x3eb)](_0x489db7=>{const _0x233e58=_0x1e651c,_0x4373f7=_0x489db7[_0x233e58(0x253)](),_0x5f3f2c=this[_0x233e58(0x2d5)][_0x233e58(0x3c3)](_0x4373f7);_0x5f3f2c&&(_0x5f3f2c[_0x233e58(0x2c0)](),this[_0x233e58(0x2d5)][_0x233e58(0x43b)](_0x4373f7));});}async['_startCollaboration'](_0x99b296,_0x44e7c4){const _0xcb92be=_0x173fa3,_0x3d3494=await this[_0xcb92be(0x3ef)][_0xcb92be(0x395)](_0x99b296),_0xf42d71=this['_injector'][_0xcb92be(0x31f)](this[_0xcb92be(0x499)](_0x44e7c4),_0x99b296,_0x44e7c4,_0x3d3494);return await _0xf42d71[_0xcb92be(0x415)](),this['_entityInit$'][_0xcb92be(0x2d0)](_0xf42d71),_0xf42d71;}[_0x173fa3(0x499)](_0x145b3a){const _0x1de463=_0x173fa3;switch(_0x145b3a){case B['UNIVER_DOC']:return Rt;case B[_0x1de463(0x4fa)]:return Ot;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x145b3a);}}};$e=Ur([ut(0x0,_0x4f7ed2(_0x3b0750)),ut(0x1,_0x4f7ed2(ue)),ut(0x2,_0x1e8ecc)],$e);const fs=[_0x173fa3(0x1db),'jiqing500',_0x173fa3(0x2f3),_0x173fa3(0x3d4),_0x173fa3(0x3a4),'gold400'];class Yt extends _0x1ed84d{constructor(){const _0x2fc741=_0x173fa3;super(...arguments),l(this,_0x2fc741(0x42b),new Map()),l(this,_0x2fc741(0x2a4),0x0);}['assignAColorForMemberID'](_0x1b8dd9){const _0x50f04b=_0x173fa3;if(this[_0x50f04b(0x42b)]['has'](_0x1b8dd9))return this['_assignedColors'][_0x50f04b(0x3c3)](_0x1b8dd9);const _0x24f437=fs[this[_0x50f04b(0x2a4)]];return this['_colorIndex']=(this[_0x50f04b(0x2a4)]+0x1)%fs['length'],this[_0x50f04b(0x42b)][_0x50f04b(0x3e3)](_0x1b8dd9,_0x24f437),_0x24f437;}}var Nr=Object[_0x173fa3(0x309)],Ar=Object[_0x173fa3(0x4d5)],Mr=(_0x5af117,_0x42005f,_0x2697e5,_0x295701)=>{const _0x321693=_0x173fa3;for(var _0x18b805=_0x295701>0x1?void 0x0:_0x295701?Ar(_0x42005f,_0x2697e5):_0x42005f,_0x5b16ab=_0x5af117[_0x321693(0x223)]-0x1,_0x313033;_0x5b16ab>=0x0;_0x5b16ab--)(_0x313033=_0x5af117[_0x5b16ab])&&(_0x18b805=(_0x295701?_0x313033(_0x42005f,_0x2697e5,_0x18b805):_0x313033(_0x18b805))||_0x18b805);return _0x295701&&_0x18b805&&Nr(_0x42005f,_0x2697e5,_0x18b805),_0x18b805;},oe=(_0x7fb2d8,_0x41d828)=>(_0x207142,_0x11bb25)=>_0x41d828(_0x207142,_0x11bb25,_0x7fb2d8);const Lr=0x12c,$r=0x64;let Dt=class extends _0x13ba8e{constructor(_0x3b3957,_0x336306,_0x243969,_0x513bcb,_0x29d5cf,_0x3386e7,_0x449bdd,_0x453a35,_0x4f38e3){const _0x36f95b=_0x173fa3;super(),l(this,'_online',!0x1),l(this,_0x36f95b(0x367),!0x1),l(this,_0x36f95b(0x254),new _0x37b5ce(new Map())),l(this,'cursorInfo$',this[_0x36f95b(0x254)][_0x36f95b(0x2e6)]()),l(this,_0x36f95b(0x2d3),new _0x37b5ce([])),l(this,_0x36f95b(0x1c8),this['_roomMembers$'][_0x36f95b(0x35b)](_0x1fc3db(Lr))),l(this,_0x36f95b(0x2fd),_0x2d1802(_0x3c4226=>{const _0x3a16b2=_0x36f95b,_0xf9d64d={'eventID':_0x5f441e[_0x3a16b2(0x1d3)],'data':{'unitID':this[_0x3a16b2(0x23a)],'memberID':this['_session']['getMemberID'](),'selection':Gs(_0x3c4226)}};this['_session'][_0x3a16b2(0x2ab)](_0xf9d64d,this[_0x3a16b2(0x23a)]);},$r)),(this[_0x36f95b(0x23a)]=_0x3b3957,this[_0x36f95b(0x459)]=_0x336306,this[_0x36f95b(0x4b7)]=_0x243969,this[_0x36f95b(0x42c)]=_0x513bcb,this[_0x36f95b(0x1c9)]=_0x29d5cf,this[_0x36f95b(0x365)]=_0x3386e7,this[_0x36f95b(0x387)]=_0x449bdd,this[_0x36f95b(0x3f2)]=_0x453a35,this['_commandService']=_0x4f38e3);}get[_0x173fa3(0x371)](){const _0x3894b6=_0x173fa3;return this[_0x3894b6(0x254)][_0x3894b6(0x2bc)]();}get['roomMembers'](){const _0x2aca18=_0x173fa3;return this[_0x2aca18(0x2d3)]['getValue']();}[_0x173fa3(0x2c0)](){const _0x4b5ca3=_0x173fa3;super[_0x4b5ca3(0x2c0)](),this[_0x4b5ca3(0x254)][_0x4b5ca3(0x2d0)](new Map()),this['_cursorInfo$'][_0x4b5ca3(0x3b0)](),this['_roomMembers$'][_0x4b5ca3(0x2d0)]([]),this[_0x4b5ca3(0x2d3)][_0x4b5ca3(0x3b0)]();}[_0x173fa3(0x415)](){const _0x1821aa=_0x173fa3;this['_init']||(this[_0x1821aa(0x367)]=!0x0,this[_0x1821aa(0x459)]['sessionStatus$'][_0x1821aa(0x35b)](_0x223895(this[_0x1821aa(0x2a1)]))[_0x1821aa(0x3eb)](_0x1d6774=>{const _0x2fe190=_0x1821aa;_0x1d6774===X[_0x2fe190(0x263)]?this[_0x2fe190(0x23d)]():this[_0x2fe190(0x1b1)]();}),this[_0x1821aa(0x459)]['event$'][_0x1821aa(0x35b)](_0x223895(this[_0x1821aa(0x2a1)]))[_0x1821aa(0x3eb)](_0x2314f3=>{const _0xdd1ec6=_0x1821aa,_0xf74633=_0x2314f3[_0xdd1ec6(0x278)];_0xf74633===_0x5f441e[_0xdd1ec6(0x1d3)]&&this[_0xdd1ec6(0x506)](_0x2314f3),_0xf74633===_0x5f441e[_0xdd1ec6(0x4b5)]&&this[_0xdd1ec6(0x2a9)](_0x2314f3);}),this[_0x1821aa(0x193)](this[_0x1821aa(0x35c)]['onCommandExecuted'](_0x28e4b5=>{const _0x312560=_0x1821aa,_0x521174=_0x28e4b5[_0x312560(0x465)];_0x521174!=null&&this['_online']&&_0x28e4b5['id']===_0x538b13['id']&&_0x521174[_0x312560(0x217)]===this[_0x312560(0x23a)]&&_0x521174[_0x312560(0x3e8)]===!0x1&&_0x521174[_0x312560(0x1f5)][_0x312560(0x223)]>0x0&&this[_0x312560(0x2fd)](_0x521174[_0x312560(0x1f5)]);})),this[_0x1821aa(0x365)][_0x1821aa(0x4ce)][_0x1821aa(0x35b)](_0x223895(this['dispose$']))[_0x1821aa(0x3eb)](_0x3c5f64=>{const _0x9424ff=_0x1821aa;if((_0x3c5f64==null?void 0x0:_0x3c5f64['unitID'])!==this[_0x9424ff(0x23a)])return;const _0xaeb7a4={'eventID':_0x5f441e[_0x9424ff(0x1d3)],'data':_0x3c5f64};this['_onCursorUpdate'](_0xaeb7a4);}),this['disposeWithMe'](this[_0x1821aa(0x35c)][_0x1821aa(0x409)](_0x4f611e=>{const _0x306337=_0x1821aa;if(_0x4f611e[_0x306337(0x465)]==null)return;const _0x44931d=_0x4f611e[_0x306337(0x465)];if(_0x4f611e['id']!==_0x179d55['id']||_0x44931d[_0x306337(0x217)]!==this[_0x306337(0x23a)])return;const _0x4a48d1={'id':_0x306337(0x21f),'params':_0x44931d},_0x329098=this[_0x306337(0x371)];for(const [_0x433ea0,_0x494318]of _0x329098){const _0x2aaffd={'id':_0x306337(0x21f),'params':{'unitId':this[_0x306337(0x23a)],'actions':null,'textRanges':_0x494318[_0x306337(0x1f5)]}},_0x2fef04=this[_0x306337(0x387)]['transformMutation'](_0x4a48d1,_0x2aaffd,!0x1);if(_0x44527a(_0x2fef04))throw _0x2fef04[_0x306337(0x3b8)];_0x329098[_0x306337(0x3e3)](_0x433ea0,{..._0x494318,'ranges':_0x2fef04[_0x306337(0x197)][_0x306337(0x465)]['textRanges']});}queueMicrotask(()=>{const _0x253f13=_0x306337;this['_cursorInfo$'][_0x253f13(0x2d0)](_0x329098);});})));}[_0x173fa3(0x506)](_0x4fb499){const _0x5467ae=_0x173fa3;var _0x1987e8,_0x497acf;const {memberID:_0x55ad3a,selection:_0x517097}=_0x4fb499[_0x5467ae(0x411)],_0x33a8a0=pr(_0x517097),_0x49319e=(_0x497acf=(_0x1987e8=this[_0x5467ae(0x1c9)][_0x5467ae(0x50b)](this[_0x5467ae(0x23a)],_0x55ad3a))==null?void 0x0:_0x1987e8[_0x5467ae(0x284)])!=null?_0x497acf:_0x5467ae(0x3d1),_0xbb6620={'color':this['_colorAssignService'][_0x5467ae(0x3f1)](_0x55ad3a),'name':_0x49319e,'ranges':_0x33a8a0},_0x56be7d=this[_0x5467ae(0x371)];_0x56be7d[_0x5467ae(0x3e3)](_0x55ad3a,_0xbb6620),this[_0x5467ae(0x254)]['next'](_0x56be7d);}[_0x173fa3(0x2a9)](_0x112fb6){const _0x4cfbe5=_0x173fa3,{memberID:_0x153d07}=_0x112fb6['data'],_0x96c7fb=this[_0x4cfbe5(0x371)];_0x96c7fb[_0x4cfbe5(0x43b)](_0x153d07),this[_0x4cfbe5(0x254)]['next'](_0x96c7fb);}[_0x173fa3(0x23d)](){const _0xcbf0e3=_0x173fa3;var _0x1c09e8;if(this[_0xcbf0e3(0x211)]=!0x0,((_0x1c09e8=this['_univerInstanceService'][_0xcbf0e3(0x39c)]())==null?void 0x0:_0x1c09e8[_0xcbf0e3(0x253)]())!==this['unitID'])return;const _0xd1e495=this[_0xcbf0e3(0x4b7)][_0xcbf0e3(0x3c3)](_0x35ae8c)[_0xcbf0e3(0x361)]();Array[_0xcbf0e3(0x498)](_0xd1e495)&&_0xd1e495[_0xcbf0e3(0x223)]>0x0&&this[_0xcbf0e3(0x2fd)](_0xd1e495);}[_0x173fa3(0x1b1)](){const _0x2bf035=_0x173fa3;this[_0x2bf035(0x211)]=!0x1;}};Dt=Mr([oe(0x2,_0x4f7ed2(_0x3b0750)),oe(0x3,_0x4f7ed2(Yt)),oe(0x4,_0x4f7ed2(_e)),oe(0x5,_0x4f7ed2(Wt)),oe(0x6,_0x4a8bc3),oe(0x7,_0x1e8ecc),oe(0x8,_0xdec94a)],Dt);var jr=Object[_0x173fa3(0x309)],Hr=Object[_0x173fa3(0x4d5)],xr=(_0x2f8cef,_0x410ef1,_0x13584d,_0x356c4d)=>{const _0x29ccfd=_0x173fa3;for(var _0x23be7d=_0x356c4d>0x1?void 0x0:_0x356c4d?Hr(_0x410ef1,_0x13584d):_0x410ef1,_0x3a909f=_0x2f8cef[_0x29ccfd(0x223)]-0x1,_0x3c253d;_0x3a909f>=0x0;_0x3a909f--)(_0x3c253d=_0x2f8cef[_0x3a909f])&&(_0x23be7d=(_0x356c4d?_0x3c253d(_0x410ef1,_0x13584d,_0x23be7d):_0x3c253d(_0x23be7d))||_0x23be7d);return _0x356c4d&&_0x23be7d&&jr(_0x410ef1,_0x13584d,_0x23be7d),_0x23be7d;},pe=(_0x5928a0,_0x31a5c4)=>(_0x4a81ee,_0x49ecc0)=>_0x31a5c4(_0x4a81ee,_0x49ecc0,_0x5928a0);const kr=0x12c,Br=0x64,Vr=()=>{let _0xecceb0=[],_0x1b7df6=!0x1;return _0x28e5e0=>{const _0x3cb3a5=_0x33c3;_0xecceb0[_0x3cb3a5(0x1da)](_0x28e5e0),_0x1b7df6||(_0x1b7df6=!0x0,setTimeout(()=>{const _0x519f5d=_0x3cb3a5;_0xecceb0[_0x519f5d(0x47e)](_0xff0e31=>_0xff0e31()),_0xecceb0=[],_0x1b7df6=!0x1;}));};};let wt=class extends _0x13ba8e{constructor(_0x4c8e62,_0x12fdc2,_0x4d0c83,_0x282cfb,_0x1baa4d,_0x549eb5,_0x450a4a,_0x56be1f){const _0xc5050a=_0x173fa3;super(),l(this,_0xc5050a(0x211),!0x1),l(this,_0xc5050a(0x367),!0x1),l(this,_0xc5050a(0x254),new _0x37b5ce(new Map())),l(this,_0xc5050a(0x1a4),this[_0xc5050a(0x254)][_0xc5050a(0x2e6)]()),l(this,_0xc5050a(0x2d3),new _0x37b5ce([])),l(this,'roomMembers$',this[_0xc5050a(0x2d3)][_0xc5050a(0x35b)](_0x1fc3db(kr))),l(this,_0xc5050a(0x2fd),_0x2d1802((_0x3141fe,_0x55bc0b)=>{const _0x45d56a=_0xc5050a,_0x417c33={'eventID':_0x5f441e[_0x45d56a(0x1d3)],'data':{'unitID':this[_0x45d56a(0x23a)],'memberID':this['_session'][_0x45d56a(0x32a)](),'selection':_0x233653(_0x3141fe,_0x55bc0b[_0x45d56a(0x1f1)])}};this[_0x45d56a(0x459)][_0x45d56a(0x2ab)](_0x417c33,this[_0x45d56a(0x23a)]);},Br)),(this['unitID']=_0x4c8e62,this['_session']=_0x12fdc2,this[_0xc5050a(0x4b7)]=_0x4d0c83,this[_0xc5050a(0x42c)]=_0x282cfb,this[_0xc5050a(0x1c9)]=_0x1baa4d,this['_univerInstanceService']=_0x549eb5,this[_0xc5050a(0x35c)]=_0x450a4a,this[_0xc5050a(0x20f)]=_0x56be1f);}get['cursorInfo'](){const _0x8e1f5f=_0x173fa3;return this[_0x8e1f5f(0x254)][_0x8e1f5f(0x2bc)]();}get[_0x173fa3(0x33b)](){const _0x3d2305=_0x173fa3;return this[_0x3d2305(0x2d3)][_0x3d2305(0x2bc)]();}[_0x173fa3(0x2c0)](){const _0x2c33a4=_0x173fa3;super[_0x2c33a4(0x2c0)](),this[_0x2c33a4(0x254)][_0x2c33a4(0x2d0)](new Map()),this[_0x2c33a4(0x254)]['complete'](),this[_0x2c33a4(0x2d3)][_0x2c33a4(0x2d0)]([]),this['_roomMembers$'][_0x2c33a4(0x3b0)]();}[_0x173fa3(0x415)](){const _0x406dc3=_0x173fa3;this[_0x406dc3(0x367)]||(this['_init']=!0x0,this['_session'][_0x406dc3(0x303)][_0x406dc3(0x35b)](_0x223895(this[_0x406dc3(0x2a1)]))[_0x406dc3(0x3eb)](_0x19bf3c=>{const _0x1a4313=_0x406dc3;_0x19bf3c===X[_0x1a4313(0x263)]?this[_0x1a4313(0x23d)]():this[_0x1a4313(0x1b1)]();}),this[_0x406dc3(0x459)][_0x406dc3(0x493)][_0x406dc3(0x35b)](_0x223895(this[_0x406dc3(0x2a1)]))[_0x406dc3(0x3eb)](_0x1fbe05=>{const _0x7ece9=_0x406dc3,_0x21198b=_0x1fbe05['eventID'];_0x21198b===_0x5f441e[_0x7ece9(0x1d3)]&&this['_onCursorUpdate'](_0x1fbe05),_0x21198b===_0x5f441e['USERS_LEAVE']&&this['_onCursorDelete'](_0x1fbe05);}),this[_0x406dc3(0x4ae)](),this[_0x406dc3(0x193)](this[_0x406dc3(0x35c)]['onCommandExecuted'](_0xe774df=>{const _0x5a5813=_0x406dc3;if(this['_online']&&_0xe774df['id']===_0x455e5a['id']&&_0xe774df[_0x5a5813(0x465)][_0x5a5813(0x217)]===this[_0x5a5813(0x23a)]){const _0x53bce1=_0xe774df['params'];this[_0x5a5813(0x2fd)](_0x53bce1[_0x5a5813(0x348)],_0x53bce1[_0x5a5813(0x287)][0x0]);}})));}[_0x173fa3(0x506)](_0x300505){const _0x3c195b=_0x173fa3;var _0x25aa5d,_0x218d36;const {memberID:_0x28bf0b,selection:_0x5802b1}=_0x300505[_0x3c195b(0x411)],{sheetName:_0x420e68,range:_0x421d65}=_0x32dcd9(_0x5802b1),_0x17f5e7={'name':(_0x218d36=(_0x25aa5d=this[_0x3c195b(0x1c9)]['getMember'](this['unitID'],_0x28bf0b))==null?void 0x0:_0x25aa5d[_0x3c195b(0x284)])!=null?_0x218d36:_0x3c195b(0x3d1),'range':this['_getMergeRange'](_0x420e68,_0x421d65),'sheetID':_0x420e68,'color':this[_0x3c195b(0x42c)][_0x3c195b(0x3f1)](_0x28bf0b),'selection':_0x5802b1},_0x5642d6=this[_0x3c195b(0x371)];_0x5642d6[_0x3c195b(0x3e3)](_0x28bf0b,_0x17f5e7),this[_0x3c195b(0x254)][_0x3c195b(0x2d0)](_0x5642d6);}['_onCursorDelete'](_0xe324c1){const _0x1bb17a=_0x173fa3,{memberID:_0x151409}=_0xe324c1[_0x1bb17a(0x411)],_0x39563b=this[_0x1bb17a(0x371)];_0x39563b[_0x1bb17a(0x43b)](_0x151409),this[_0x1bb17a(0x254)][_0x1bb17a(0x2d0)](_0x39563b);}['_getMergeRange'](_0x19545a,_0x1b843d){const _0x2fdc7a=_0x173fa3;var _0x1ca937,_0x3a3da1;const _0x541aa4=(_0x3a3da1=(_0x1ca937=this[_0x2fdc7a(0x3f2)][_0x2fdc7a(0x3d0)](this[_0x2fdc7a(0x23a)]))==null?void 0x0:_0x1ca937[_0x2fdc7a(0x455)](_0x19545a))==null?void 0x0:_0x3a3da1[_0x2fdc7a(0x196)]();return(_0x541aa4==null?void 0x0:_0x541aa4['find'](_0x171f62=>_0xa8b8a6['contains'](_0x171f62,_0x1b843d)))||_0x1b843d;}[_0x173fa3(0x4ae)](){const _0x14da6a=_0x173fa3,_0x3f3b36=new _0x1f9c9d(),_0x5cd8f7=Vr(),_0x40318e=()=>{const _0x2dbb53=_0x33c3;_0x3f3b36[_0x2dbb53(0x2c0)]();const _0x15fc67=(_0x1ccb68,_0xf79b14,_0x35dad6,_0xf6bb40)=>{const _0xb56250=_0x2dbb53;let _0x4a8cde=[];switch(_0x1ccb68['id']){case _0x1876e5['DeleteRangeMoveLeftCommandId']:{_0x4a8cde=_0x3f6541(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x273)]:{_0x4a8cde=_0x45cf67(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5['InsertColCommandId']:{_0x4a8cde=_0x593430(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x4d7)]:{_0x4a8cde=_0x52a909(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x46c)]:{_0x4a8cde=_0x468a25(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x34c)]:{_0x4a8cde=_0x163f59(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x403)]:{_0x4a8cde=_0x3ba698(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x274)]:{_0x4a8cde=_0x5d4634(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x4c0)]:{_0x4a8cde=_0x99cb29(_0x1ccb68,_0xf6bb40);break;}}const _0x5be217=_0x28e3fe(_0x4a8cde,_0xf6bb40),_0x440ee9=this['cursorInfo']['get'](_0xf79b14);if(_0x440ee9&&_0x5be217){const _0x575085={..._0x440ee9,'range':_0x5be217};this[_0xb56250(0x371)][_0xb56250(0x3e3)](_0xf79b14,_0x575085),_0x5cd8f7(()=>{const _0x2994e3=_0xb56250,_0x14b455=this['_refRangeService'][_0x2994e3(0x2e5)](_0x5be217,_0x359853=>(_0x14b455['dispose'](),_0x15fc67(_0x359853,_0xf79b14,_0x35dad6,_0x5be217)));_0x3f3b36[_0x2994e3(0x2f7)](_0x14b455);});}return{'redos':[],'undos':[]};};this[_0x2dbb53(0x371)][_0x2dbb53(0x47e)]((_0x3c414a,_0x3ded92)=>{const _0x3ab0cb=_0x2dbb53,{range:_0x49da9a,sheetID:_0x2993dc}=_0x3c414a,_0x2c74d7=this[_0x3ab0cb(0x20f)][_0x3ab0cb(0x2e5)](_0x49da9a,_0x418a2d=>(_0x2c74d7[_0x3ab0cb(0x2c0)](),_0x15fc67(_0x418a2d,_0x3ded92,_0x2993dc,_0x49da9a)));_0x3f3b36[_0x3ab0cb(0x2f7)](_0x2c74d7);});};this[_0x14da6a(0x193)](_0x4a9188(this[_0x14da6a(0x254)][_0x14da6a(0x3eb)](()=>{_0x40318e();})));}[_0x173fa3(0x23d)](){const _0x3a5797=_0x173fa3;var _0x2a1e51,_0x110566;if(this[_0x3a5797(0x211)]=!0x0,((_0x2a1e51=this['_univerInstanceService'][_0x3a5797(0x39c)]())==null?void 0x0:_0x2a1e51[_0x3a5797(0x253)]())!==this[_0x3a5797(0x23a)])return;const _0x4794ec=(_0x110566=this[_0x3a5797(0x4b7)]['get'](_0x15d139)['getCurrentSelections']())==null?void 0x0:_0x110566[0x0],_0x41a0a4=this['_univerInstanceService'][_0x3a5797(0x279)](_0x159e2d['UNIVER_SHEET'])['getActiveSheet']();_0x4794ec&&_0x41a0a4&&this[_0x3a5797(0x2fd)](_0x41a0a4[_0x3a5797(0x3b7)](),_0x4794ec);}[_0x173fa3(0x1b1)](){const _0x14512d=_0x173fa3;this[_0x14512d(0x211)]=!0x1;}};wt=xr([pe(0x2,_0x4f7ed2(_0x3b0750)),pe(0x3,_0x4f7ed2(Yt)),pe(0x4,_0x4f7ed2(_e)),pe(0x5,_0x1e8ecc),pe(0x6,_0xdec94a),pe(0x7,_0x4f7ed2(_0x2ac9c5))],wt);var Fr=Object[_0x173fa3(0x309)],Wr=Object[_0x173fa3(0x4d5)],Gr=(_0x17576a,_0x268f7e,_0xbc1451,_0x140519)=>{const _0x4fc72b=_0x173fa3;for(var _0x440bd8=_0x140519>0x1?void 0x0:_0x140519?Wr(_0x268f7e,_0xbc1451):_0x268f7e,_0x5bc6fb=_0x17576a[_0x4fc72b(0x223)]-0x1,_0x30c9a4;_0x5bc6fb>=0x0;_0x5bc6fb--)(_0x30c9a4=_0x17576a[_0x5bc6fb])&&(_0x440bd8=(_0x140519?_0x30c9a4(_0x268f7e,_0xbc1451,_0x440bd8):_0x30c9a4(_0x440bd8))||_0x440bd8);return _0x140519&&_0x440bd8&&Fr(_0x268f7e,_0xbc1451,_0x440bd8),_0x440bd8;},dt=(_0x4e1a52,_0x4d33f5)=>(_0x222cad,_0x3d995a)=>_0x4d33f5(_0x222cad,_0x3d995a,_0x4e1a52);let Ce=class extends _0x13ba8e{constructor(_0x19b8c0,_0x57f2e2,_0x2fb594){const _0x4cb43b=_0x173fa3;super(),l(this,'_entities',new Map()),l(this,_0x4cb43b(0x43f),new _0x54d3a4()),(this[_0x4cb43b(0x3f2)]=_0x19b8c0,this[_0x4cb43b(0x4b7)]=_0x57f2e2,this['_collabSessionService']=_0x2fb594,this['_init']());}['dispose'](){const _0x355464=_0x173fa3;super[_0x355464(0x2c0)](),this[_0x355464(0x43f)][_0x355464(0x3b0)](),this[_0x355464(0x2d5)]['forEach'](_0x5853d7=>_0x5853d7[_0x355464(0x2c0)]());}[_0x173fa3(0x238)](_0x3b3715){const _0xecd515=_0x173fa3;return this[_0xecd515(0x2d5)][_0xecd515(0x432)](_0x3b3715)?this['_entities']['get'](_0x3b3715)[_0xecd515(0x1a4)]:this[_0xecd515(0x43f)][_0xecd515(0x35b)](_0x496185(_0x2619a6=>_0x2619a6[_0xecd515(0x23a)]===_0x3b3715),_0x3b6e12(_0x4ee6b4=>_0x4ee6b4[_0xecd515(0x1a4)]));}[_0x173fa3(0x367)](){const _0x24e9fd=_0x173fa3;this[_0x24e9fd(0x3f2)][_0x24e9fd(0x22f)](_0x159e2d[_0x24e9fd(0x4fa)])[_0x24e9fd(0x35b)](_0x223895(this[_0x24e9fd(0x2a1)]))[_0x24e9fd(0x3eb)](async _0x338733=>{const _0x1f5582=_0x24e9fd,_0x5e2908=_0x338733[_0x1f5582(0x253)](),_0x59c912=await this[_0x1f5582(0x21e)](_0x5e2908);this[_0x1f5582(0x43f)][_0x1f5582(0x2d0)](_0x59c912),this[_0x1f5582(0x2d5)][_0x1f5582(0x3e3)](_0x5e2908,_0x59c912);}),this[_0x24e9fd(0x3f2)][_0x24e9fd(0x22f)](_0x159e2d['UNIVER_DOC'])[_0x24e9fd(0x35b)](_0x223895(this[_0x24e9fd(0x2a1)]))['pipe'](_0x496185(_0x391b98=>!_0x391b98[_0x24e9fd(0x253)]()[_0x24e9fd(0x416)]('__')))[_0x24e9fd(0x3eb)](async _0xd4906b=>{const _0x3ec793=_0x24e9fd,_0x598b98=_0xd4906b['getUnitId'](),_0x27b9cb=await this[_0x3ec793(0x49b)](_0x598b98);this['_entityInit$'][_0x3ec793(0x2d0)](_0x27b9cb),this[_0x3ec793(0x2d5)][_0x3ec793(0x3e3)](_0x598b98,_0x27b9cb);}),_0x378f3d(this['_univerInstanceService'][_0x24e9fd(0x33e)](_0x159e2d['UNIVER_DOC']),this['_univerInstanceService'][_0x24e9fd(0x33e)](_0x159e2d['UNIVER_SHEET']))[_0x24e9fd(0x35b)](_0x223895(this[_0x24e9fd(0x2a1)]))[_0x24e9fd(0x3eb)](_0x264b58=>{const _0x2fc23e=_0x24e9fd,_0x562682=_0x264b58[_0x2fc23e(0x253)](),_0x13adee=this[_0x2fc23e(0x2d5)]['get'](_0x562682);_0x13adee&&(_0x13adee[_0x2fc23e(0x2c0)](),this[_0x2fc23e(0x2d5)][_0x2fc23e(0x43b)](_0x562682));});}async[_0x173fa3(0x21e)](_0x2342f3){const _0x491973=_0x173fa3,_0x637c4c=await this['_collabSessionService'][_0x491973(0x395)](_0x2342f3),_0x32041e=this['_injector']['createInstance'](wt,_0x2342f3,_0x637c4c);return _0x32041e[_0x491973(0x415)](),_0x32041e;}async[_0x173fa3(0x49b)](_0x45fb9a){const _0x14502b=_0x173fa3,_0x464f0a=await this['_collabSessionService'][_0x14502b(0x395)](_0x45fb9a),_0x25c209=this[_0x14502b(0x4b7)]['createInstance'](Dt,_0x45fb9a,_0x464f0a);return _0x25c209[_0x14502b(0x415)](),_0x25c209;}};Ce=Gr([dt(0x0,_0x1e8ecc),dt(0x1,_0x4f7ed2(_0x3b0750)),dt(0x2,_0x4f7ed2(ue))],Ce);const je=0x14,gs=0xc8,mt=0x4,Yr=0x5;function Kr(_0x38bd83,_0x3ee890){const _0x505227=_0x173fa3;let {radius:_0x5a8f57,width:_0x4eef83,height:_0x774772}=_0x3ee890;_0x5a8f57=_0x5a8f57!=null?_0x5a8f57:0x0,_0x4eef83=_0x4eef83!=null?_0x4eef83:0x1e,_0x774772=_0x774772!=null?_0x774772:0x1e;let _0x166aad=0x0,_0x21f0e1=0x0,_0x497f43=0x0;_0x166aad=_0x21f0e1=_0x497f43=Math[_0x505227(0x3cf)](_0x5a8f57,_0x4eef83/0x2,_0x774772/0x2),_0x38bd83[_0x505227(0x48c)](),_0x38bd83[_0x505227(0x428)](_0x166aad,0x0),_0x38bd83['lineTo'](_0x4eef83-_0x21f0e1,0x0),_0x38bd83['arc'](_0x4eef83-_0x21f0e1,_0x21f0e1,_0x21f0e1,Math['PI']*0x3/0x2,0x0,!0x1),_0x38bd83[_0x505227(0x4b8)](_0x4eef83,_0x774772-_0x497f43),_0x38bd83[_0x505227(0x512)](_0x4eef83-_0x497f43,_0x774772-_0x497f43,_0x497f43,0x0,Math['PI']/0x2,!0x1),_0x38bd83[_0x505227(0x4b8)](0x0,_0x774772),_0x38bd83[_0x505227(0x4b8)](0x0,_0x166aad),_0x38bd83[_0x505227(0x512)](_0x166aad,_0x166aad,_0x166aad,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x38bd83['closePath'](),_0x3ee890[_0x505227(0x191)]&&(_0x38bd83['save'](),_0x38bd83[_0x505227(0x4f3)]=_0x3ee890[_0x505227(0x191)],_0x3ee890['fillRule']===_0x505227(0x288)?_0x38bd83[_0x505227(0x191)](_0x505227(0x288)):_0x38bd83['fill'](),_0x38bd83[_0x505227(0x248)]());}class nt extends _0x1d45e8{constructor(_0x52c932,_0x5601d3){const _0x59a4d2=_0x173fa3;super(_0x52c932,_0x5601d3),l(this,'color'),l(this,_0x59a4d2(0x46e)),(this[_0x59a4d2(0x452)]=_0x5601d3==null?void 0x0:_0x5601d3['color'],this['text']=_0x5601d3==null?void 0x0:_0x5601d3[_0x59a4d2(0x46e)]);}static[_0x173fa3(0x267)](_0x5703f6,_0x78f91e){const _0x4360c3=_0x173fa3,{text:_0x5d8892,color:_0x24b78e}=_0x78f91e;_0x5703f6[_0x4360c3(0x317)](),_0x5703f6[_0x4360c3(0x36f)]=_0x4360c3(0x4db);const _0x5a7b7c=_0x5703f6['measureText'](_0x5d8892)[_0x4360c3(0x219)],_0x38b712=Math[_0x4360c3(0x3cf)](_0x5a7b7c+0x2*mt,gs);Kr(_0x5703f6,{'height':je,'radius':0x4,'width':_0x38b712,'fill':_0x24b78e,'evented':!0x1}),_0x5703f6['fillStyle']='#FFF';const _0x30a4e7=mt,_0x2351dc=je-Yr,_0x2aeac5=gs-0x2*mt;if(_0x5a7b7c>_0x2aeac5){let _0x52ce98='',_0x4e539a=0x0;for(const _0x3c6bc5 of _0x5d8892){const _0x292b21=_0x5703f6[_0x4360c3(0x194)](_0x3c6bc5)['width'];if(_0x4e539a+_0x292b21<=_0x2aeac5-_0x5703f6[_0x4360c3(0x194)](_0x4360c3(0x47f))[_0x4360c3(0x219)])_0x52ce98+=_0x3c6bc5,_0x4e539a+=_0x292b21;else{_0x52ce98+='...';break;}}_0x5703f6['fillText'](_0x52ce98,_0x30a4e7,_0x2351dc);}else _0x5703f6[_0x4360c3(0x4de)](_0x5d8892,_0x30a4e7,_0x2351dc);_0x5703f6[_0x4360c3(0x248)]();}[_0x173fa3(0x345)](_0xa79893){nt['drawWith'](_0xa79893,this);}}const ft=_0x173fa3(0x482),Xr=_0x173fa3(0x364),qr=_0x173fa3(0x36b),Pe=0x6,Jr=1.5,gt=0x4,zr=1.5,Zr=_0x173fa3(0x417);class Ss{constructor(_0x45de8d,_0x472604,_0x50f27a,_0x58b5aa){const _0x1e50a2=_0x173fa3;l(this,'_shapes',[]),l(this,_0x1e50a2(0x251),null),l(this,_0x1e50a2(0x320),null),l(this,_0x1e50a2(0x1b3),null),l(this,'_hideTimer',null),l(this,'_eventUnsubscribe',null),(this[_0x1e50a2(0x2b9)]=_0x45de8d,this[_0x1e50a2(0x4ac)]=_0x472604,this['_docSkeleton']=_0x50f27a,this[_0x1e50a2(0x214)]=_0x58b5aa,this[_0x1e50a2(0x463)]());}set[_0x173fa3(0x3ad)](_0x2dcf9d){const _0x3f6863=_0x173fa3;_0x2dcf9d?(this[_0x3f6863(0x1b3)]&&this[_0x3f6863(0x1b3)][_0x3f6863(0x2ae)](),this['_textBubble']&&this[_0x3f6863(0x320)][_0x3f6863(0x1e6)]()):(this[_0x3f6863(0x1b3)]&&this[_0x3f6863(0x1b3)][_0x3f6863(0x1e6)](),this['_textBubble']&&this[_0x3f6863(0x320)][_0x3f6863(0x2ae)]());}[_0x173fa3(0x2c0)](){const _0x536a5f=_0x173fa3;for(const _0x4b0e3b of this['_shapes'])_0x4b0e3b[_0x536a5f(0x2c0)]();this[_0x536a5f(0x320)]&&this[_0x536a5f(0x320)][_0x536a5f(0x2c0)](),this[_0x536a5f(0x1b3)]&&this[_0x536a5f(0x1b3)][_0x536a5f(0x2c0)](),this['_anchor']&&this[_0x536a5f(0x251)][_0x536a5f(0x2c0)](),this[_0x536a5f(0x19d)]&&this['_eventUnsubscribe']();}[_0x173fa3(0x463)](){const _0x576b41=_0x173fa3;var _0x635f50;const {_docSkeleton:_0xe1d27a,_document:_0x5aa31c}=this,{color:_0x17d910,name:_0x3e54de,ranges:_0x3d0a59}=this['_cursor'],_0x53375f=_0x5aa31c['getOffsetConfig'](),{docsLeft:_0x4d2f6a,docsTop:_0x4567ee}=_0x53375f,_0x8351c6=new _0x282c61(_0x53375f,_0xe1d27a);for(const {startOffset:_0x1c3caa,endOffset:_0x5ef557,rangeType:_0x5ac289,segmentId:_0x5bbad0,segmentPage:_0x5b88c8,collapsed:_0x74a7f7,isActive:_0x5af565}of _0x3d0a59){const _0x523893=_0xe1d27a[_0x576b41(0x36d)](_0x1c3caa,!0x0,_0x5bbad0,_0x5b88c8);let _0x5ec863=_0xe1d27a[_0x576b41(0x36d)](_0x5ef557,!0x0,_0x5bbad0,_0x5b88c8);if(_0x5ec863==null&&(_0x5ec863=_0xe1d27a[_0x576b41(0x36d)](_0x5ef557-0x1,!0x1,_0x5bbad0,_0x5b88c8)),_0x5af565){const {contentBoxPointGroup:_0x487a45}=_0x8351c6['getRangePointData'](_0x5ec863,_0x5ec863);if(_0x487a45[_0x576b41(0x223)]===0x0)continue;this['_drawAnchor'](_0x17d910,_0x487a45,_0x4d2f6a,_0x4567ee,_0x3e54de),this['_eventUnsubscribe']=this[_0x576b41(0x384)]();}if(!_0x74a7f7&&_0x523893&&_0x5ec863){if(_0x5ac289===_0x46c3b0[_0x576b41(0x26e)]){const _0x3ccbe3=new _0x5264f7(_0x53375f,_0xe1d27a),{pointGroup:_0x106992}=(_0x635f50=_0x3ccbe3[_0x576b41(0x3ce)](_0x523893,_0x5ec863))!=null?_0x635f50:{};if(_0x106992==null||_0x106992[_0x576b41(0x223)]===0x0)continue;this[_0x576b41(0x356)](_0x17d910,_0x106992,_0x4d2f6a,_0x4567ee);}else{const {borderBoxPointGroup:_0x2c2c9a}=_0x8351c6[_0x576b41(0x3ce)](_0x523893,_0x5ec863);if(_0x2c2c9a[_0x576b41(0x223)]===0x0)continue;this[_0x576b41(0x2a7)](_0x17d910,_0x2c2c9a,_0x4d2f6a,_0x4567ee);}}}}[_0x173fa3(0x347)](_0x17cdc5,_0x884c7c,_0x2acb35,_0x3b05df,_0x3c44bb){const _0x59b9c6=_0x173fa3,_0x1a390a=this[_0x59b9c6(0x41a)](_0x884c7c),{left:_0x2a6073,top:_0x3a179f,height:_0x1c5a03}=_0x1a390a,_0x9db244=this[_0x59b9c6(0x315)](),_0x5903a5=zr/_0x9db244,_0x370a37=new _0x16757d(ft+_0x58e8f0[_0x59b9c6(0x31e)](Pe),{'left':_0x2a6073+_0x2acb35-_0x5903a5,'top':_0x3a179f+_0x3b05df,'height':_0x1c5a03,'width':Jr,'fill':_0x17cdc5||_0x3c5235(_0x51afa6[_0x59b9c6(0x4b4)],0x0),'strokeWidth':_0x5903a5,'stroke':Zr,'evented':!0x0});this['_anchor']=_0x370a37,this[_0x59b9c6(0x4ac)]['addObject'](_0x370a37,_0x38cec6);const _0x1c64c9=new _0x16757d(ft+_0x58e8f0[_0x59b9c6(0x31e)](Pe),{'left':_0x2a6073+_0x2acb35-_0x5903a5,'top':_0x3a179f+_0x3b05df-gt/0x2,'height':gt,'width':gt,'fill':_0x17cdc5||_0x3c5235(_0x51afa6[_0x59b9c6(0x4b4)],0x0),'strokeWidth':0x0,'stroke':_0x17cdc5||_0x3c5235(_0x51afa6[_0x59b9c6(0x4b4)],0x0),'evented':!0x1});this[_0x59b9c6(0x1b3)]=_0x1c64c9,this[_0x59b9c6(0x4ac)][_0x59b9c6(0x330)](_0x1c64c9,_0x38cec6);const _0x78d17a=new nt(ft+_0x58e8f0['generateRandomId'](Pe),{'left':_0x2a6073+_0x2acb35-_0x5903a5,'top':_0x3a179f+_0x3b05df-je,'text':_0x3c44bb,'color':_0x17cdc5});this[_0x59b9c6(0x320)]=_0x78d17a,this[_0x59b9c6(0x4ac)][_0x59b9c6(0x330)](_0x78d17a,_0x38cec6),this['_hover']=!0x1;}['_handleHover'](){const _0x2c0c4d=_0x173fa3,_0xc91b4c=this[_0x2c0c4d(0x251)][_0x2c0c4d(0x4e7)][_0x2c0c4d(0x281)](()=>{const _0x5a1e5c=_0x2c0c4d;this[_0x5a1e5c(0x3ad)]=!0x0;}),_0x471a42=this['_anchor'][_0x2c0c4d(0x478)]['subscribeEvent'](()=>{const _0xee138e=_0x2c0c4d;this[_0xee138e(0x4ea)]&&clearTimeout(this[_0xee138e(0x4ea)]),this[_0xee138e(0x4ea)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x34bdf8=_0x2c0c4d;_0xc91b4c[_0x34bdf8(0x18e)](),_0x471a42[_0x34bdf8(0x18e)]();};}[_0x173fa3(0x2a7)](_0x2fab4f,_0x38c747,_0x21dedd,_0x6df7a0){const _0x5ea1c2=_0x173fa3,_0x430323=new _0x88bd29(_0x2fab4f)[_0x5ea1c2(0x44e)](0.2)[_0x5ea1c2(0x2e8)](),_0x503547=new _0x57827a(Xr+_0x58e8f0[_0x5ea1c2(0x31e)](Pe),{'pointsGroup':_0x38c747,'fill':_0x430323||_0x3c5235(_0x51afa6['black'],0.2),'left':_0x21dedd,'top':_0x6df7a0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5ea1c2(0x4f9)][_0x5ea1c2(0x1da)](_0x503547),this[_0x5ea1c2(0x4ac)][_0x5ea1c2(0x330)](_0x503547,_0x38cec6);}[_0x173fa3(0x356)](_0x49b9f4,_0x39b7da,_0x564a6c,_0x5f257e){const _0x1fbd7a=_0x173fa3,_0x2a8322=new _0x88bd29(_0x49b9f4)['setAlpha'](0.2)[_0x1fbd7a(0x2e8)](),_0x391fab=new _0x57827a(qr+_0x58e8f0['generateRandomId'](Pe),{'pointsGroup':_0x39b7da,'fill':_0x2a8322||_0x3c5235(_0x51afa6[_0x1fbd7a(0x4b4)],0.2),'left':_0x564a6c,'top':_0x5f257e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1fbd7a(0x4f9)][_0x1fbd7a(0x1da)](_0x391fab),this[_0x1fbd7a(0x4ac)]['addObject'](_0x391fab,_0x38cec6);}['_getAnchorBounding'](_0x44917d){const _0x3c2948=_0x44917d[0x0],_0x368ca8=_0x3c2948[0x0],_0x3e6480=_0x3c2948[0x2],{x:_0x3c972d,y:_0x3a2cd1}=_0x368ca8,{x:_0x357fbb,y:_0x7af3a}=_0x3e6480;return{'left':_0x3c972d,'top':_0x3a2cd1,'width':_0x357fbb-_0x3c972d,'height':_0x7af3a-_0x3a2cd1};}[_0x173fa3(0x315)](){const _0x1f49e2=_0x173fa3,{scaleX:_0x51ded5,scaleY:_0x57f6e7}=this[_0x1f49e2(0x4ac)][_0x1f49e2(0x4dc)]();return Math[_0x1f49e2(0x369)](_0x51ded5,_0x57f6e7);}}var Qr=Object[_0x173fa3(0x309)],eo=Object['getOwnPropertyDescriptor'],to=(_0x35306a,_0x31f4c7,_0x4ea4eb,_0x4a3d60)=>{const _0x2a9567=_0x173fa3;for(var _0x82f856=_0x4a3d60>0x1?void 0x0:_0x4a3d60?eo(_0x31f4c7,_0x4ea4eb):_0x31f4c7,_0x4dea2d=_0x35306a[_0x2a9567(0x223)]-0x1,_0x5db195;_0x4dea2d>=0x0;_0x4dea2d--)(_0x5db195=_0x35306a[_0x4dea2d])&&(_0x82f856=(_0x4a3d60?_0x5db195(_0x31f4c7,_0x4ea4eb,_0x82f856):_0x5db195(_0x82f856))||_0x82f856);return _0x4a3d60&&_0x82f856&&Qr(_0x31f4c7,_0x4ea4eb,_0x82f856),_0x82f856;},Be=(_0x13b5c2,_0x4653d0)=>(_0x5b1d77,_0x3d520c)=>_0x4653d0(_0x5b1d77,_0x3d520c,_0x13b5c2);let Pt=class extends _0x13ba8e{constructor(_0x18d89c,_0x2d318d,_0x1631a7,_0x346773,_0x3341d3){const _0x49f41d=_0x173fa3;super(),l(this,'_cursorShapes',[]),l(this,_0x49f41d(0x401),[]),(this[_0x49f41d(0x1fa)]=_0x18d89c,this[_0x49f41d(0x391)]=_0x2d318d,this[_0x49f41d(0x408)]=_0x1631a7,this[_0x49f41d(0x35c)]=_0x346773,this[_0x49f41d(0x2b3)]=_0x3341d3,this[_0x49f41d(0x367)]());}[_0x173fa3(0x367)](){const _0x2fe833=_0x173fa3,_0x48a0cd=this[_0x2fe833(0x1fa)][_0x2fe833(0x217)],_0x4bf176=this[_0x2fe833(0x391)];this[_0x2fe833(0x193)](_0x550795([this['_collabCursorController'][_0x2fe833(0x238)](_0x48a0cd),this[_0x2fe833(0x2b3)][_0x2fe833(0x198)]])['pipe'](_0x595c33(([_0x4cbaab,_0x19d6d6])=>({'skeleton':_0x4bf176[_0x2fe833(0x41d)](),'cursors':[..._0x4cbaab[_0x2fe833(0x3b1)]()][_0x2fe833(0x18f)](_0x1ca597=>({..._0x1ca597,'color':_0x19d6d6[_0x1ca597[_0x2fe833(0x452)]]}))})))[_0x2fe833(0x3eb)](_0x53b7b1=>{const _0x5ca7f1=_0x2fe833;if(this[_0x5ca7f1(0x2c1)](),_0x53b7b1){const {skeleton:_0xa5c6f7,cursors:_0x46b29a}=_0x53b7b1;this[_0x5ca7f1(0x2c7)](_0xa5c6f7,_0x46b29a);}})),this[_0x2fe833(0x2bb)](),this[_0x2fe833(0x29d)]();}[_0x173fa3(0x2c7)](_0x7442e6,_0xdcfa5a){const _0x276bb8=_0x173fa3,{scene:_0x1a0e21,mainComponent:_0xe901d4}=this[_0x276bb8(0x1fa)],_0x424aed=_0xdcfa5a['map'](_0x270df1=>new Ss(_0x270df1,_0x1a0e21,_0x7442e6,_0xe901d4));this['_cursorShapes']=_0x424aed,this[_0x276bb8(0x401)]=_0xdcfa5a;}[_0x173fa3(0x4f6)](){const _0x20507a=_0x173fa3;this[_0x20507a(0x2c1)]();const {scene:_0x38cb2d,mainComponent:_0x12cf1e}=this[_0x20507a(0x1fa)],_0x183aba=this[_0x20507a(0x391)][_0x20507a(0x41d)](),_0x3e9dfc=this['_cursors'][_0x20507a(0x204)](_0x3e555e=>new Ss(_0x3e555e,_0x38cb2d,_0x183aba,_0x12cf1e));this[_0x20507a(0x44b)]=_0x3e9dfc;}[_0x173fa3(0x2c1)](){const _0x17e2fc=_0x173fa3;this['_cursorShapes'][_0x17e2fc(0x47e)](_0x90e5c0=>_0x90e5c0[_0x17e2fc(0x2c0)]()),this[_0x17e2fc(0x44b)]=[];}['_initCommandExecutedListener'](){const _0x12ab85=_0x173fa3,_0x33dbd7=[_0x116bc2['id']];this[_0x12ab85(0x193)](this[_0x12ab85(0x35c)][_0x12ab85(0x409)](_0x4981dd=>{const _0x22c9a2=_0x12ab85;_0x33dbd7[_0x22c9a2(0x20d)](_0x4981dd['id'])&&_0x4981dd['params'][_0x22c9a2(0x217)]===this[_0x22c9a2(0x1fa)][_0x22c9a2(0x217)]&&this[_0x22c9a2(0x4f6)]();}));}[_0x173fa3(0x2bb)](){const _0x492697=_0x173fa3;this['disposeWithMe'](_0x3c7358(this[_0x492697(0x1fa)][_0x492697(0x4f7)][_0x492697(0x1bd)])['pipe'](_0x3f9fc1(_0x27edff=>_0x27edff[_0x492697(0x32d)]===_0x18c26b[_0x492697(0x28f)]),_0x46eb5a(0x10))[_0x492697(0x3eb)](()=>{this['_refreshCollabCursors']();}));}};Pt=to([Be(0x1,_0x4f7ed2(_0x429479)),Be(0x2,_0x4f7ed2(Ce)),Be(0x3,_0xdec94a),Be(0x4,_0x4f7ed2(_0x1810fb))],Pt);const so=0x1,io=1.5;class no extends _0x1d45e8{constructor(_0x101c8a,_0xcf244e){const _0x550486=_0x173fa3;super(_0x101c8a,_0xcf244e),l(this,_0x550486(0x200)),l(this,_0x550486(0x3ec),!0x1),l(this,_0x550486(0x242)),l(this,'_name',''),l(this,_0x550486(0x40e),_0x550486(0x458)),l(this,_0x550486(0x426)),(_0xcf244e&&this['setShapeProps'](_0xcf244e),this[_0x550486(0x4e7)][_0x550486(0x281)](()=>this[_0x550486(0x3ca)]({'hovered':!0x0})),this['onPointerLeave$'][_0x550486(0x281)](()=>this[_0x550486(0x3ca)]({'hovered':!0x1})));}[_0x173fa3(0x3ca)](_0x53aa12){const _0x15de2b=_0x173fa3;var _0x2ebdda,_0x4631ca,_0x416b59,_0x2d5530,_0x10a76f,_0x3f2a83;this[_0x15de2b(0x200)]=(_0x2ebdda=_0x53aa12[_0x15de2b(0x452)])!=null?_0x2ebdda:this[_0x15de2b(0x200)],this[_0x15de2b(0x3ec)]=(_0x4631ca=_0x53aa12[_0x15de2b(0x454)])!=null?_0x4631ca:this[_0x15de2b(0x3ec)],this[_0x15de2b(0x242)]=(_0x416b59=_0x53aa12['range'])!=null?_0x416b59:this[_0x15de2b(0x242)],this[_0x15de2b(0x268)]=(_0x2d5530=_0x53aa12[_0x15de2b(0x284)])!=null?_0x2d5530:this[_0x15de2b(0x268)],this[_0x15de2b(0x40e)]=(_0x10a76f=_0x53aa12[_0x15de2b(0x2d9)])!=null?_0x10a76f:this[_0x15de2b(0x40e)],this['_backgroundColor']=(_0x3f2a83=_0x53aa12['backgroundColor'])!=null?_0x3f2a83:this[_0x15de2b(0x426)],this[_0x15de2b(0x3f5)]({'width':_0x53aa12[_0x15de2b(0x219)],'height':_0x53aa12[_0x15de2b(0x4fb)]});}[_0x173fa3(0x232)](_0x177eb8){const _0x2a6bc8=_0x173fa3,{row:_0x51189b,column:_0x14d908}=_0x177eb8;if(_0x51189b>=this[_0x2a6bc8(0x242)][_0x2a6bc8(0x2b6)]&&_0x51189b<=this[_0x2a6bc8(0x242)][_0x2a6bc8(0x449)]&&_0x14d908>=this[_0x2a6bc8(0x242)][_0x2a6bc8(0x38f)]&&_0x14d908<=this['_range'][_0x2a6bc8(0x1f9)]){this[_0x2a6bc8(0x3ca)]({'hovered':!0x0});return;}this[_0x2a6bc8(0x3ca)]({'hovered':!0x1});}[_0x173fa3(0x2e4)](_0x31184a){return!0x1;}[_0x173fa3(0x345)](_0x35b65c){const _0x27a68f=_0x173fa3;_0x16757d[_0x27a68f(0x267)](_0x35b65c,{'width':this[_0x27a68f(0x219)],'height':this[_0x27a68f(0x4fb)],'strokeWidth':io,'stroke':this[_0x27a68f(0x200)],'evented':!0x1,'fill':this[_0x27a68f(0x426)]}),this[_0x27a68f(0x3ec)]&&(_0x35b65c['save'](),_0x35b65c[_0x27a68f(0x322)](0x1,0x0,0x0,0x1,this[_0x27a68f(0x219)],this[_0x27a68f(0x40e)]===_0x27a68f(0x326)?0x0:-je),nt[_0x27a68f(0x267)](_0x35b65c,{'text':this[_0x27a68f(0x268)],'color':this[_0x27a68f(0x200)]}),_0x35b65c['restore']());}}var ro=Object[_0x173fa3(0x309)],oo=Object[_0x173fa3(0x4d5)],ao=(_0x3ba65e,_0x169ef4,_0x1dfb9c,_0x4b164d)=>{for(var _0x20ca19=_0x4b164d>0x1?void 0x0:_0x4b164d?oo(_0x169ef4,_0x1dfb9c):_0x169ef4,_0x53f19c=_0x3ba65e['length']-0x1,_0x1ad01b;_0x53f19c>=0x0;_0x53f19c--)(_0x1ad01b=_0x3ba65e[_0x53f19c])&&(_0x20ca19=(_0x4b164d?_0x1ad01b(_0x169ef4,_0x1dfb9c,_0x20ca19):_0x1ad01b(_0x20ca19))||_0x20ca19);return _0x4b164d&&_0x20ca19&&ro(_0x169ef4,_0x1dfb9c,_0x20ca19),_0x20ca19;},St=(_0x65e116,_0x30244d)=>(_0x2efc6b,_0x10547e)=>_0x30244d(_0x2efc6b,_0x10547e,_0x65e116);const co=0x1389;let yt=class extends _0x13ba8e{constructor(_0x45de99,_0x2ebb37,_0x59a8fc,_0x59f202){const _0x3c07b4=_0x173fa3;super(),l(this,_0x3c07b4(0x401),new Set()),l(this,'_lastPointer',null),(this[_0x3c07b4(0x1fa)]=_0x45de99,this[_0x3c07b4(0x40a)]=_0x2ebb37,this[_0x3c07b4(0x408)]=_0x59a8fc,this[_0x3c07b4(0x2b3)]=_0x59f202,this[_0x3c07b4(0x367)]());}[_0x173fa3(0x367)](){const _0x849feb=_0x173fa3;this[_0x849feb(0x40a)][_0x849feb(0x1e8)]['pipe'](_0x54b271(this[_0x849feb(0x2a1)]),_0x4b9d13(_0x277071=>{const _0xf685ed=_0x849feb;if(_0x277071){const _0x3e8f0d=_0x277071[_0xf685ed(0x2bf)];return _0x550795(this['_collabCursorController'][_0xf685ed(0x238)](this['_context'][_0xf685ed(0x217)]),this[_0xf685ed(0x2b3)][_0xf685ed(0x198)])[_0xf685ed(0x35b)](_0x595c33(([_0x144be1,_0x14197e])=>{const _0x2fed05=_0xf685ed,_0x586b4c=new Map();return _0x144be1[_0x2fed05(0x47e)]((_0x55147d,_0x143987)=>{const _0x555720=_0x2fed05;if(_0x55147d[_0x555720(0x45c)]===_0x3e8f0d){const _0x493b41={..._0x55147d};_0x493b41[_0x555720(0x452)]=_0x14197e[_0x55147d[_0x555720(0x452)]],_0x586b4c['set'](_0x143987,_0x493b41);}}),{'skeleton':_0x277071,'cursors':_0x586b4c};}));}return _0x2ad1bd({'skeleton':null,'cursors':new Map()});}))[_0x849feb(0x3eb)](({skeleton:_0x3b4f2d,cursors:_0x1f0f11})=>{const _0x282495=_0x849feb;this[_0x282495(0x2c1)](),_0x3b4f2d&&this[_0x282495(0x2c7)](_0x3b4f2d,_0x1f0f11);}),this[_0x849feb(0x40a)]['currentSkeleton$'][_0x849feb(0x3eb)](_0x3b4ad7=>{const _0x4ba39e=_0x849feb;if(_0x3b4ad7==null)return;const {skeleton:_0x30e500}=_0x3b4ad7,{scene:_0xc0fc2f}=this[_0x4ba39e(0x1fa)];_0xc0fc2f[_0x4ba39e(0x1e7)][_0x4ba39e(0x281)](_0x2d1802(_0xd67e32=>{const _0x6937e=_0x4ba39e;var _0x45cabf,_0x496672;const {offsetX:_0x14114f,offsetY:_0x3618ba}=_0xd67e32,{x:_0x322fc1,y:_0x4ecd37}=_0xc0fc2f[_0x6937e(0x43c)](_0x327598[_0x6937e(0x46a)]([_0x14114f,_0x3618ba])),{scaleX:_0x30379e,scaleY:_0x585436}=_0xc0fc2f['getAncestorScale'](),_0x463d75=_0xc0fc2f[_0x6937e(0x321)](_0x8cdd2a[_0x6937e(0x359)]),_0xf8f06c=_0xc0fc2f[_0x6937e(0x2f5)](_0x327598[_0x6937e(0x46a)]([_0x322fc1,_0x4ecd37]),_0x463d75),_0x5ade0a=_0x30e500[_0x6937e(0x1a0)](_0x14114f,_0x3618ba,_0x30379e,_0x585436,_0xf8f06c);((_0x45cabf=this['_lastPointer'])==null?void 0x0:_0x45cabf[_0x6937e(0x32b)])===_0x5ade0a[_0x6937e(0x32b)]&&((_0x496672=this[_0x6937e(0x456)])==null?void 0x0:_0x496672[_0x6937e(0x199)])===_0x5ade0a['row']||this[_0x6937e(0x401)]['forEach'](_0x17db13=>{const _0x8ae044=_0x6937e;_0x17db13[_0x8ae044(0x232)](_0x5ade0a);});},0x64));});}[_0x173fa3(0x2c7)](_0x57a8a4,_0x5ba940){const _0x80e51c=_0x173fa3;var _0x56e732;const _0x28e465=(_0x56e732=this['_sheetSkeletonManagerService'][_0x80e51c(0x2a6)]())==null?void 0x0:_0x56e732['skeleton'];if(!_0x28e465)return;const _0x304340=this[_0x80e51c(0x46b)]();if(!_0x304340)return;this['_cursors'][_0x80e51c(0x47e)](_0x4e3004=>{const _0x1e59c6=_0x80e51c;_0x4e3004[_0x1e59c6(0x355)]();});const {scene:_0x146d43}=_0x304340,_0x3d4e10=ho(Array[_0x80e51c(0x28c)](_0x5ba940[_0x80e51c(0x3b1)]()))[_0x80e51c(0x204)](_0x52ef9a=>{const _0x493c96=_0x80e51c,{color:_0x19f6da,range:_0x943adf,name:_0x41fed4,selection:_0x7078f4,sheetID:_0x1d3d62}=_0x52ef9a,{startColumn:_0x44a1b8,startRow:_0x4cfa85,endColumn:_0x3e5bc7,endRow:_0x33749d}=_0x943adf,_0x1c0756=_0x5845e5(_0x4cfa85,_0x44a1b8,_0x146d43,_0x28e465),_0x155a8b=_0x5845e5(_0x33749d,_0x3e5bc7,_0x146d43,_0x28e465),{columnHeaderHeightAndMarginTop:_0x4b3ced}=_0x28e465,{startX:_0x530091,startY:_0x25d2cd}=_0x1c0756,{endX:_0x588922,endY:_0x330379}=_0x155a8b,_0x53fb35=_0x588922-_0x530091,_0x2ef39c=_0x330379-_0x25d2cd,_0x326d4b={'labelPosition':_0x25d2cd-_0x4b3ced>=je?'top':_0x493c96(0x326),'sheetID':_0x1d3d62,'range':_0x943adf,'color':_0x19f6da,'name':_0x41fed4,'selection':_0x7078f4,'left':_0x530091,'top':_0x25d2cd,'width':_0x53fb35,'height':_0x2ef39c,'evented':!0x1,'zIndex':co};return new no(_0x41fed4,_0x326d4b);});_0x146d43[_0x80e51c(0x3e9)](_0x3d4e10,so),this['_cursors']=new Set(_0x3d4e10);}[_0x173fa3(0x2c1)](){const _0x222049=_0x173fa3;var _0x320f3b;(_0x320f3b=this[_0x222049(0x401)])==null||_0x320f3b['forEach'](_0x4006a0=>_0x4006a0['dispose']());}[_0x173fa3(0x46b)](){const _0x3da123=_0x173fa3;return _0x1b8540(this[_0x3da123(0x1fa)][_0x3da123(0x374)],this[_0x3da123(0x1fa)]);}};yt=ao([St(0x1,_0x4f7ed2(_0x1921de)),St(0x2,_0x4f7ed2(Ce)),St(0x3,_0x4f7ed2(_0x1810fb))],yt);function ho(_0x5c9edf){const _0x1072ff=_0x173fa3,_0x1653f9=new Map();return _0x5c9edf['forEach'](_0x948a73=>{const _0x2d12cb=_0x33c3;if(_0x1653f9[_0x2d12cb(0x432)](_0x948a73[_0x2d12cb(0x244)])){const _0x4e1df8=_0x1653f9[_0x2d12cb(0x3c3)](_0x948a73[_0x2d12cb(0x244)]);_0x4e1df8['name']+=',\x20'+_0x948a73[_0x2d12cb(0x284)];}else _0x1653f9[_0x2d12cb(0x3e3)](_0x948a73[_0x2d12cb(0x244)],_0x948a73);}),Array['from'](_0x1653f9[_0x1072ff(0x3b1)]());}var U=function(){const _0x491619=_0x173fa3;return U=Object[_0x491619(0x487)]||function(_0x2f463e){const _0xad96cf=_0x491619;for(var _0x1b9d63,_0x44fc29=0x1,_0x1713c8=arguments[_0xad96cf(0x223)];_0x44fc29<_0x1713c8;_0x44fc29++){_0x1b9d63=arguments[_0x44fc29];for(var _0x43bd69 in _0x1b9d63)Object[_0xad96cf(0x346)][_0xad96cf(0x407)][_0xad96cf(0x470)](_0x1b9d63,_0x43bd69)&&(_0x2f463e[_0x43bd69]=_0x1b9d63[_0x43bd69]);}return _0x2f463e;},U[_0x491619(0x1a9)](this,arguments);},lo=function(_0x2fb46d,_0x330f51){const _0x56acf0=_0x173fa3;var _0x4b54e6={};for(var _0x25ad65 in _0x2fb46d)Object['prototype'][_0x56acf0(0x407)][_0x56acf0(0x470)](_0x2fb46d,_0x25ad65)&&_0x330f51[_0x56acf0(0x237)](_0x25ad65)<0x0&&(_0x4b54e6[_0x25ad65]=_0x2fb46d[_0x25ad65]);if(_0x2fb46d!=null&&typeof Object['getOwnPropertySymbols']==_0x56acf0(0x38c)){for(var _0x1aa9cc=0x0,_0x25ad65=Object[_0x56acf0(0x481)](_0x2fb46d);_0x1aa9cc<_0x25ad65[_0x56acf0(0x223)];_0x1aa9cc++)_0x330f51[_0x56acf0(0x237)](_0x25ad65[_0x1aa9cc])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x56acf0(0x470)](_0x2fb46d,_0x25ad65[_0x1aa9cc])&&(_0x4b54e6[_0x25ad65[_0x1aa9cc]]=_0x2fb46d[_0x25ad65[_0x1aa9cc]]);}return _0x4b54e6;},Kt=_0x431197(function(_0x1fc77e,_0x1feaad){const _0x66312c=_0x173fa3;var _0x2c6961=_0x1fc77e['icon'],_0x1e9a80=_0x1fc77e['id'],_0x336e65=_0x1fc77e[_0x66312c(0x30c)],_0x3c1eae=_0x1fc77e[_0x66312c(0x2b5)],_0x4fb0d8=lo(_0x1fc77e,[_0x66312c(0x460),'id','className','extend']),_0x48c091=_0x66312c(0x4b1)[_0x66312c(0x1ca)](_0x1e9a80,'\x20')[_0x66312c(0x1ca)](_0x336e65||'')[_0x66312c(0x1f6)](),_0x1fbbaa=_0x494e8d('_'['concat'](mo()));return qs(_0x2c6961,''[_0x66312c(0x1ca)](_0x1e9a80),{'defIds':_0x2c6961[_0x66312c(0x35a)],'idSuffix':_0x1fbbaa[_0x66312c(0x497)]},U({'ref':_0x1feaad,'className':_0x48c091},_0x4fb0d8),_0x3c1eae);});function qs(_0x3d2c51,_0x48097c,_0x5f0a72,_0x3f5070,_0x2d71aa){const _0x237a33=_0x173fa3;return _0xfdbf34(_0x3d2c51[_0x237a33(0x2c9)],U(U({'key':_0x48097c},_o(_0x3d2c51,_0x5f0a72,_0x2d71aa)),_0x3f5070),(uo(_0x3d2c51,_0x5f0a72)['children']||[])[_0x237a33(0x204)](function(_0x428242,_0xbf5719){const _0xa4c937=_0x237a33;return qs(_0x428242,''[_0xa4c937(0x1ca)](_0x48097c,'-')[_0xa4c937(0x1ca)](_0x3d2c51[_0xa4c937(0x2c9)],'-')[_0xa4c937(0x1ca)](_0xbf5719),_0x5f0a72,void 0x0,_0x2d71aa);}));}function _o(_0x252b93,_0x262872,_0x44e938){const _0x4e4eea=_0x173fa3;var _0x20a928=U({},_0x252b93[_0x4e4eea(0x3de)]);_0x44e938!=null&&_0x44e938[_0x4e4eea(0x4f1)]&&_0x20a928[_0x4e4eea(0x191)]===_0x4e4eea(0x4f1)&&(_0x20a928[_0x4e4eea(0x191)]=_0x44e938[_0x4e4eea(0x4f1)]);var _0xf2f399=_0x262872[_0x4e4eea(0x35a)];return!_0xf2f399||_0xf2f399[_0x4e4eea(0x223)]===0x0||(_0x252b93['tag']===_0x4e4eea(0x1ee)&&_0x20a928['xlink:href']&&(_0x20a928[_0x4e4eea(0x19f)]=_0x20a928[_0x4e4eea(0x19f)]+_0x262872[_0x4e4eea(0x1d9)]),Object[_0x4e4eea(0x20b)](_0x20a928)['forEach'](function(_0x1775f3){const _0x23994f=_0x4e4eea;var _0x53255e=_0x1775f3[0x0],_0x1132a1=_0x1775f3[0x1];typeof _0x1132a1=='string'&&(_0x20a928[_0x53255e]=_0x1132a1['replace'](/url\(#(.*)\)/,_0x23994f(0x469)[_0x23994f(0x1ca)](_0x262872['idSuffix'],')')));})),_0x20a928;}function uo(_0x4473cd,_0x53c681){const _0x40d43c=_0x173fa3;var _0x526008,_0x316162=_0x53c681[_0x40d43c(0x35a)];return!_0x316162||_0x316162[_0x40d43c(0x223)]===0x0?_0x4473cd:_0x4473cd[_0x40d43c(0x2c9)]===_0x40d43c(0x291)&&(!((_0x526008=_0x4473cd[_0x40d43c(0x2ac)])===null||_0x526008===void 0x0)&&_0x526008[_0x40d43c(0x223)])?U(U({},_0x4473cd),{'children':_0x4473cd[_0x40d43c(0x2ac)]['map'](function(_0xfdb443){const _0x154623=_0x40d43c;return typeof _0xfdb443[_0x154623(0x3de)]['id']==_0x154623(0x215)&&_0x316162&&_0x316162[_0x154623(0x237)](_0xfdb443[_0x154623(0x3de)]['id'])>-0x1?U(U({},_0xfdb443),{'attrs':U(U({},_0xfdb443[_0x154623(0x3de)]),{'id':_0xfdb443[_0x154623(0x3de)]['id']+_0x53c681['idSuffix']})}):_0xfdb443;})}):_0x4473cd;}function mo(){const _0xf568f1=_0x173fa3;return Math['random']()[_0xf568f1(0x358)](0x24)[_0xf568f1(0x4f0)](0x2,0x8);}Kt[_0x173fa3(0x2fa)]='UniverIcon';var fo={'tag':_0x173fa3(0x4b0),'attrs':{'fill':_0x173fa3(0x1c6),'viewBox':_0x173fa3(0x220),'width':_0x173fa3(0x24e),'height':_0x173fa3(0x24e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x173fa3(0x4bb),'strokeLinecap':_0x173fa3(0x477),'strokeLinejoin':_0x173fa3(0x477),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x173fa3(0x466),'attrs':{'id':_0x173fa3(0x285)},'children':[{'tag':_0x173fa3(0x4bf),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},Js=_0x431197(function(_0x464f53,_0x10f3d8){const _0x4d93da=_0x173fa3;return _0xfdbf34(Kt,Object[_0x4d93da(0x487)]({},_0x464f53,{'id':_0x4d93da(0x397),'ref':_0x10f3d8,'icon':fo}));});Js['displayName']=_0x173fa3(0x3e6);var go={'tag':_0x173fa3(0x4b0),'attrs':{'fill':_0x173fa3(0x1c6),'viewBox':_0x173fa3(0x4ca),'width':_0x173fa3(0x24e),'height':_0x173fa3(0x24e)},'children':[{'tag':'g','attrs':{'clipPath':_0x173fa3(0x2b4)},'children':[{'tag':_0x173fa3(0x4bf),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x173fa3(0x477),'strokeLinejoin':_0x173fa3(0x477),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x173fa3(0x466),'attrs':{'id':_0x173fa3(0x1cf)},'children':[{'tag':_0x173fa3(0x4bf),'attrs':{'fill':_0x173fa3(0x513),'d':_0x173fa3(0x20e),'transform':_0x173fa3(0x45d)}}]}]}],'defIds':[_0x173fa3(0x1cf)]},zs=_0x431197(function(_0x27eda6,_0x2c5f03){return _0xfdbf34(Kt,Object['assign']({},_0x27eda6,{'id':'on-line-single','ref':_0x2c5f03,'icon':go}));});zs[_0x173fa3(0x2fa)]=_0x173fa3(0x282);function Zs(_0x516fca){const _0x4031e4=_0x173fa3;var _0x15e55c,_0x4bb2a9,_0x239dbd='';if(typeof _0x516fca==_0x4031e4(0x215)||typeof _0x516fca=='number')_0x239dbd+=_0x516fca;else{if(typeof _0x516fca==_0x4031e4(0x316)){if(Array[_0x4031e4(0x498)](_0x516fca)){var _0x2fc639=_0x516fca['length'];for(_0x15e55c=0x0;_0x15e55c<_0x2fc639;_0x15e55c++)_0x516fca[_0x15e55c]&&(_0x4bb2a9=Zs(_0x516fca[_0x15e55c]))&&(_0x239dbd&&(_0x239dbd+='\x20'),_0x239dbd+=_0x4bb2a9);}else{for(_0x4bb2a9 in _0x516fca)_0x516fca[_0x4bb2a9]&&(_0x239dbd&&(_0x239dbd+='\x20'),_0x239dbd+=_0x4bb2a9);}}}return _0x239dbd;}function So(){const _0x206546=_0x173fa3;for(var _0x4b8060,_0x28676d,_0x46f5ca=0x0,_0x218e40='',_0x94c612=arguments[_0x206546(0x223)];_0x46f5ca<_0x94c612;_0x46f5ca++)(_0x4b8060=arguments[_0x46f5ca])&&(_0x28676d=Zs(_0x4b8060))&&(_0x218e40&&(_0x218e40+='\x20'),_0x218e40+=_0x28676d);return _0x218e40;}const po=_0x173fa3(0x4ab),vo=_0x173fa3(0x1d5),Io='univer-online-status',Eo=_0x173fa3(0x276),Co=_0x173fa3(0x342),ye={'onlineStatusIcon':po,'onlineStatusTitle':vo,'onlineStatus':Io,'online':Eo,'offline':Co};function bo(_0x35221d){const _0x47405a=_0x173fa3;switch(_0x35221d){case w[_0x47405a(0x410)]:return _0x47405a(0x406);case w[_0x47405a(0x19e)]:return _0x47405a(0x418);case w[_0x47405a(0x502)]:return'collabStatus.fetchMiss';case w['NOT_COLLAB']:return _0x47405a(0x4d4);case w[_0x47405a(0x333)]:case w[_0x47405a(0x3a9)]:return _0x47405a(0x24d);case w[_0x47405a(0x293)]:case w[_0x47405a(0x25c)]:return'collabStatus.synced';}}function To(_0x1a41d8){const _0x165943=_0x173fa3,{status$:_0x3a2c0e}=_0x1a41d8,_0x1f4df9=_0x1866fc(_0x3a2c0e,w[_0x165943(0x434)]),_0x2ab780=_0x5b7ccb(_0x15839b),_0x2435ab=_0x5b7ccb(ue),_0x1119e6=_0x1f4df9!==w[_0x165943(0x410)],_0x3a2f01=_0x2ab780['t'](bo(_0x1f4df9)),_0x4add23=So(ye[_0x165943(0x2c4)],{[ye[_0x165943(0x1ba)]]:_0x1119e6,[ye['offline']]:!_0x1119e6}),_0x153409=_0x1119e6?_0x588026[_0x165943(0x31c)](zs,null):_0x588026[_0x165943(0x31c)](Js,null),_0x406363=_0x2dcebf(()=>{const _0x457f01=_0x165943;_0x1119e6||_0x2435ab[_0x457f01(0x2e0)]();},[_0x1119e6,_0x2435ab]);function _0x17b6dd(){const _0x3dec20=_0x165943;return _0x588026[_0x3dec20(0x31c)](_0x3dec20(0x206),{'className':_0x4add23,'onClick':_0x406363},_0x588026[_0x3dec20(0x31c)](_0x3dec20(0x206),{'className':ye[_0x3dec20(0x1ec)]},_0x153409),_0x588026[_0x3dec20(0x31c)](_0x3dec20(0x206),{'className':ye[_0x3dec20(0x1dd)]},_0x3a2f01));}return _0x1119e6?_0x17b6dd():_0x588026[_0x165943(0x31c)](_0x523a7c,{'title':_0x2ab780['t']('collab-client.tooltip.reconnect')},_0x17b6dd());}var Ro=Object[_0x173fa3(0x309)],Oo=Object['getOwnPropertyDescriptor'],Do=(_0x1913b8,_0x2a8b71,_0x1ba4a3,_0x2221d1)=>{const _0x4b0db4=_0x173fa3;for(var _0x1353d1=_0x2221d1>0x1?void 0x0:_0x2221d1?Oo(_0x2a8b71,_0x1ba4a3):_0x2a8b71,_0x365ea0=_0x1913b8[_0x4b0db4(0x223)]-0x1,_0x19580e;_0x365ea0>=0x0;_0x365ea0--)(_0x19580e=_0x1913b8[_0x365ea0])&&(_0x1353d1=(_0x2221d1?_0x19580e(_0x2a8b71,_0x1ba4a3,_0x1353d1):_0x19580e(_0x1353d1))||_0x1353d1);return _0x2221d1&&_0x1353d1&&Ro(_0x2a8b71,_0x1ba4a3,_0x1353d1),_0x1353d1;},Ve=(_0x795a48,_0x28d7a9)=>(_0xfb8a4a,_0xa17329)=>_0x28d7a9(_0xfb8a4a,_0xa17329,_0x795a48);let Me=class extends _0x1ed84d{constructor(_0x4a0a17,_0xd38a50,_0x4a06b6,_0x2123e5){const _0xb5c354=_0x173fa3;super(),l(this,_0xb5c354(0x368),new _0x37b5ce(w[_0xb5c354(0x434)])),(this[_0xb5c354(0x3f2)]=_0x4a0a17,this['_uiPartsService']=_0xd38a50,this['_injector']=_0x4a06b6,this[_0xb5c354(0x486)]=_0x2123e5,this[_0xb5c354(0x4eb)](),this[_0xb5c354(0x39a)]());}[_0x173fa3(0x39a)](){const _0x5b2885=_0x173fa3;this[_0x5b2885(0x193)](this[_0x5b2885(0x3f2)]['focused$'][_0x5b2885(0x35b)](_0x3b6e12(()=>{const _0x4a966b=_0x5b2885,_0x485e3c=this['_univerInstanceService'][_0x4a966b(0x39c)]();return _0x485e3c?this['_collaborationController'][_0x4a966b(0x331)](_0x485e3c[_0x4a966b(0x253)]()):_0x2ad1bd(null);}),_0x3b6e12(_0x2ca20c=>_0x2ca20c?_0x2ca20c['status$']:_0x2ad1bd(w[_0x5b2885(0x434)])))['subscribe'](_0x28cb65=>{const _0x3ad722=_0x5b2885;this[_0x3ad722(0x368)][_0x3ad722(0x2d0)](_0x28cb65);}));}['_initStatusComponent'](){const _0x3eec34=_0x173fa3;this['disposeWithMe'](this[_0x3eec34(0x3f0)][_0x3eec34(0x37e)](_0x185249[_0x3eec34(0x4a4)],()=>_0x426f7f(wo({'status$':this[_0x3eec34(0x368)][_0x3eec34(0x2e6)]()}),this[_0x3eec34(0x4b7)])));}};Me=Do([Ve(0x0,_0x1e8ecc),Ve(0x1,_0x49f7f8),Ve(0x2,_0x4f7ed2(_0x3b0750)),Ve(0x3,_0x4f7ed2($e))],Me);function wo(_0x419591){const {status$:_0x4f489d}=_0x419591;return function(){const _0x403bd4=_0x33c3;return _0x588026[_0x403bd4(0x31c)](To,{'status$':_0x4f489d});};}const Qs=_0x1a0c31(_0x173fa3(0x3fc));var Po=Object['defineProperty'],yo=Object['getOwnPropertyDescriptor'],Uo=(_0x41224c,_0x12f206,_0x40adaa,_0x55881b)=>{const _0x21ba33=_0x173fa3;for(var _0x7c9cf3=_0x55881b>0x1?void 0x0:_0x55881b?yo(_0x12f206,_0x40adaa):_0x12f206,_0x5b04d6=_0x41224c[_0x21ba33(0x223)]-0x1,_0x155f8c;_0x5b04d6>=0x0;_0x5b04d6--)(_0x155f8c=_0x41224c[_0x5b04d6])&&(_0x7c9cf3=(_0x55881b?_0x155f8c(_0x12f206,_0x40adaa,_0x7c9cf3):_0x155f8c(_0x7c9cf3))||_0x7c9cf3);return _0x55881b&&_0x7c9cf3&&Po(_0x12f206,_0x40adaa,_0x7c9cf3),_0x7c9cf3;},ve=(_0x2ea346,_0x34e8d8)=>(_0x4f681d,_0x25f195)=>_0x34e8d8(_0x4f681d,_0x25f195,_0x2ea346);let Ze=class extends _0x13ba8e{constructor(_0x242de4,_0xe91eec,_0x1c6631,_0x50e00d,_0x2f702e,_0x45f5db){const _0x5b8c89=_0x173fa3;super(),this[_0x5b8c89(0x312)]=_0x242de4,this['_logService']=_0xe91eec,this[_0x5b8c89(0x35c)]=_0x1c6631,this['_localCacheService']=_0x50e00d,this[_0x5b8c89(0x307)]=_0x2f702e,_0x45f5db?_0x45f5db==null||_0x45f5db[_0x5b8c89(0x2b7)]()[_0x5b8c89(0x375)](()=>this[_0x5b8c89(0x367)]()):(this[_0x5b8c89(0x2cd)][_0x5b8c89(0x28a)](_0x5b8c89(0x3d9),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x173fa3(0x367)](){const _0x452f48=_0x173fa3,_0x4bfe7b=this[_0x452f48(0x312)][_0x452f48(0x419)](_0x452f48(0x374)),_0x34b1d9=this[_0x452f48(0x312)][_0x452f48(0x419)](_0x452f48(0x32d));if(!_0x4bfe7b||!_0x34b1d9){this[_0x452f48(0x2cd)][_0x452f48(0x28a)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x34b1d9)){case B[_0x452f48(0x4fa)]:{const _0x4d4205=await this[_0x452f48(0x3a2)](_0x4bfe7b);this[_0x452f48(0x49a)](_0x4d4205);break;}case B[_0x452f48(0x381)]:{await this[_0x452f48(0x1d4)](_0x4bfe7b);break;}default:{this[_0x452f48(0x2cd)]['error']('[DataLoaderController]','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x173fa3(0x49a)](_0x36b5c3){const _0x45f489=_0x173fa3;await this['_updateSubUnitFromURLParams'](_0x36b5c3),_0x36b5c3[_0x45f489(0x192)][_0x45f489(0x35b)](_0x223895(this[_0x45f489(0x2a1)]))[_0x45f489(0x3eb)](_0x21909b=>{const _0x2b554b=_0x45f489;_0x21909b&&this[_0x2b554b(0x270)](_0x21909b);}),this[_0x45f489(0x312)][_0x45f489(0x42f)][_0x45f489(0x35b)](_0x223895(this[_0x45f489(0x2a1)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x36b5c3));}[_0x173fa3(0x270)](_0x2e78e3,_0x469609=!0x1){const _0x482ddd=_0x173fa3,_0x212844=this['_urlService'][_0x482ddd(0x419)]('subunit');_0x2e78e3[_0x482ddd(0x3b7)]()!==_0x212844&&this[_0x482ddd(0x312)][_0x482ddd(0x352)]('subunit',_0x2e78e3[_0x482ddd(0x3b7)](),_0x469609);}async[_0x173fa3(0x412)](_0x1b8971){const _0x5cf675=_0x173fa3;var _0x2a5a1a;const _0x47a2d9=this[_0x5cf675(0x312)]['getParam'](_0x5cf675(0x427));if(!_0x47a2d9||!_0x1b8971[_0x5cf675(0x455)](_0x47a2d9)){const _0x5bf6f4=_0x1b8971[_0x5cf675(0x393)]()[0x0],_0x3a8126=_0x1b8971[_0x5cf675(0x455)](_0x5bf6f4);if(!_0x3a8126)return;this['_updateURLWithCurrentState'](_0x3a8126,!0x0),await this[_0x5cf675(0x35c)][_0x5cf675(0x1d2)](_0x5463e2['id'],{'unitId':_0x1b8971['getUnitId'](),'subUnitId':_0x5bf6f4});return;}((_0x2a5a1a=_0x1b8971['getActiveSheet']())==null?void 0x0:_0x2a5a1a[_0x5cf675(0x3b7)]())!==_0x47a2d9&&await this['_commandService'][_0x5cf675(0x1d2)](_0x5463e2['id'],{'unitId':_0x1b8971['getUnitId'](),'subUnitId':_0x47a2d9});}async[_0x173fa3(0x3a2)](_0x2cb0f6){const _0x427855=_0x173fa3;let _0x301a07=0x0;const _0x71d0e7=await this[_0x427855(0x292)]['loadOfflineData'](_0x2cb0f6);return _0x71d0e7&&(_0x71d0e7[_0x427855(0x3fe)]||_0x71d0e7[_0x427855(0x4cd)][_0x427855(0x223)]!==0x0)&&(_0x301a07=_0x71d0e7[_0x427855(0x4cf)]),_0x301a07===0x0&&this[_0x427855(0x2cd)][_0x427855(0x28a)](_0x427855(0x3d9),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x427855(0x307)][_0x427855(0x30d)](_0x2cb0f6,_0x301a07);}async[_0x173fa3(0x1d4)](_0x499883){const _0x5221bd=_0x173fa3;let _0x5276d9=0x0;const _0x430028=await this[_0x5221bd(0x292)][_0x5221bd(0x302)](_0x499883);return _0x430028&&(_0x430028[_0x5221bd(0x3fe)]||_0x430028['mutations'][_0x5221bd(0x223)]!==0x0)&&(_0x5276d9=_0x430028[_0x5221bd(0x4cf)]),_0x5276d9===0x0&&this['_logService'][_0x5221bd(0x28a)](_0x5221bd(0x3d9),_0x5221bd(0x385)),this[_0x5221bd(0x307)][_0x5221bd(0x25a)](_0x499883,_0x5276d9);}};Ze=Uo([ve(0x0,Qs),ve(0x1,_0x4329b1),ve(0x2,_0xdec94a),ve(0x3,_0x4f7ed2(D)),ve(0x4,_0x4f7ed2(_0x4c83fe)),ve(0x5,_0x532e88(_0xa2838))],Ze);var No=Object[_0x173fa3(0x309)],Ao=Object[_0x173fa3(0x4d5)],Mo=(_0x18b09f,_0x522300,_0x167e1d,_0x28aa88)=>{const _0x4a77c0=_0x173fa3;for(var _0x2cff85=_0x28aa88>0x1?void 0x0:_0x28aa88?Ao(_0x522300,_0x167e1d):_0x522300,_0x19b0e0=_0x18b09f[_0x4a77c0(0x223)]-0x1,_0x180dd7;_0x19b0e0>=0x0;_0x19b0e0--)(_0x180dd7=_0x18b09f[_0x19b0e0])&&(_0x2cff85=(_0x28aa88?_0x180dd7(_0x522300,_0x167e1d,_0x2cff85):_0x180dd7(_0x2cff85))||_0x2cff85);return _0x28aa88&&_0x2cff85&&No(_0x522300,_0x167e1d,_0x2cff85),_0x2cff85;},ps=(_0x5916da,_0x5e7a22)=>(_0xa7b728,_0x29647c)=>_0x5e7a22(_0xa7b728,_0x29647c,_0x5916da);const Lo=_0x173fa3(0x1b2),$o=_0x173fa3(0x295);let Qe=class extends _0x1ed84d{constructor(_0xa6afcf,_0x3dc36e){const _0x1253b5=_0x173fa3;super(),this[_0x1253b5(0x3f2)]=_0xa6afcf,this[_0x1253b5(0x205)]=_0x3dc36e,this['_init']();}[_0x173fa3(0x367)](){const _0x291fe0=_0x173fa3;this['disposeWithMe'](this[_0x291fe0(0x3f2)][_0x291fe0(0x430)][_0x291fe0(0x3eb)](()=>{const _0x58c549=_0x291fe0;var _0xb57927;const _0x4c8d86=this[_0x58c549(0x3f2)][_0x58c549(0x39c)]();let _0x28b019=(_0xb57927=this[_0x58c549(0x205)][_0x58c549(0x4c2)](Lo))!=null?_0xb57927:$o;_0x4c8d86 instanceof _0x1b1252&&(_0x28b019=_0x4c8d86[_0x58c549(0x284)]),document['title']=_0x28b019;}));}};Qe=Mo([ps(0x0,_0x1e8ecc),ps(0x1,_0x13b27e)],Qe);var jo=Object['defineProperty'],Ho=Object[_0x173fa3(0x4d5)],xo=(_0xcf2a24,_0x48d1f7,_0x4b14d7,_0x5909ac)=>{const _0x2bd519=_0x173fa3;for(var _0x2aafb5=_0x5909ac>0x1?void 0x0:_0x5909ac?Ho(_0x48d1f7,_0x4b14d7):_0x48d1f7,_0x4e074a=_0xcf2a24[_0x2bd519(0x223)]-0x1,_0x3e64eb;_0x4e074a>=0x0;_0x4e074a--)(_0x3e64eb=_0xcf2a24[_0x4e074a])&&(_0x2aafb5=(_0x5909ac?_0x3e64eb(_0x48d1f7,_0x4b14d7,_0x2aafb5):_0x3e64eb(_0x2aafb5))||_0x2aafb5);return _0x5909ac&&_0x2aafb5&&jo(_0x48d1f7,_0x4b14d7,_0x2aafb5),_0x2aafb5;},pt=(_0x3a1ba2,_0x2f6705)=>(_0x48997e,_0x2a5d39)=>_0x2f6705(_0x48997e,_0x2a5d39,_0x3a1ba2);let et=class{constructor(_0x383050,_0x93f74d,_0x4e28e4){const _0x509367=_0x173fa3;this[_0x509367(0x205)]=_0x383050,this[_0x509367(0x511)]=_0x93f74d,this['localeService']=_0x4e28e4,this['init']();}['init'](){const _0x2834ff=_0x173fa3;this['_httpService'][_0x2834ff(0x27b)]({'priority':0x1,'interceptor':(_0x5b6122,_0x4f8baa)=>_0x4f8baa(_0x5b6122)[_0x2834ff(0x35b)](_0x2bf06b(async _0x4e07da=>{const _0x23afbb=_0x2834ff,_0x4c5291=_0x4e07da;if(_0x4c5291[_0x23afbb(0x38d)]===0x191&&window['confirm'](this[_0x23afbb(0x1f2)]['t'](_0x23afbb(0x210)))){const _0x5c04fd=window[_0x23afbb(0x398)](window[_0x23afbb(0x35e)]['href']);window[_0x23afbb(0x35e)][_0x23afbb(0x3f3)]=this['_getLoginPath']()+_0x23afbb(0x19c)+_0x5c04fd;}return _0x4c5291;}))});}[_0x173fa3(0x341)](){const _0x3bb1d7=_0x173fa3;var _0x2351b1,_0x1aaf98;const _0x57d44b=this[_0x3bb1d7(0x205)][_0x3bb1d7(0x4c2)](Ln),_0x32b387=this[_0x3bb1d7(0x205)][_0x3bb1d7(0x4c2)](j);return(_0x1aaf98=(_0x2351b1=_0x32b387==null?void 0x0:_0x32b387[_0x3bb1d7(0x1f3)])!=null?_0x2351b1:_0x57d44b)!=null?_0x1aaf98:$n;}};et=xo([pt(0x0,_0x13b27e),pt(0x1,_0x4f7ed2(_0x33691b)),pt(0x2,_0x4f7ed2(_0x15839b))],et);var ko=Object[_0x173fa3(0x309)],Bo=Object[_0x173fa3(0x4d5)],Vo=(_0x479a8b,_0x332d27,_0xc68e06,_0x3bf73d)=>{for(var _0x36a69d=_0x3bf73d>0x1?void 0x0:_0x3bf73d?Bo(_0x332d27,_0xc68e06):_0x332d27,_0x56ce76=_0x479a8b['length']-0x1,_0x45a618;_0x56ce76>=0x0;_0x56ce76--)(_0x45a618=_0x479a8b[_0x56ce76])&&(_0x36a69d=(_0x3bf73d?_0x45a618(_0x332d27,_0xc68e06,_0x36a69d):_0x45a618(_0x36a69d))||_0x36a69d);return _0x3bf73d&&_0x36a69d&&ko(_0x332d27,_0xc68e06,_0x36a69d),_0x36a69d;},vs=(_0x10c368,_0x3bba06)=>(_0xe21ccf,_0x5161ec)=>_0x3bba06(_0xe21ccf,_0x5161ec,_0x10c368);const Fo='AUTHZ_URL_KEY',Wo=_0x173fa3(0x43e);let Ut=class extends _0x1ed84d{constructor(_0x36e08a,_0x2c40fc){const _0x289142=_0x173fa3;super(),this[_0x289142(0x2db)]=_0x36e08a,this[_0x289142(0x205)]=_0x2c40fc,this[_0x289142(0x4df)]();}[_0x173fa3(0x4df)](){const _0x3977dc=_0x173fa3,_0x4febc3=this;this[_0x3977dc(0x193)](this[_0x3977dc(0x2db)][_0x3977dc(0x27b)]({'priority':0x3e7,'interceptor':_0x5a1e35({'isMatch'(_0x2140a3){const _0xa94d7b=_0x3977dc;var _0x4a35b5;if(_0x2140a3['method']===_0xa94d7b(0x3af)&&((_0x4a35b5=_0x2140a3[_0xa94d7b(0x3e1)])!=null&&_0x4a35b5[_0xa94d7b(0x3d7)])){const {objectID:_0x341d55,objectType:_0x2aa6c1}=_0x2140a3['requestParams'][_0xa94d7b(0x3d7)]||{};if(!_0x341d55||_0x2aa6c1===void 0x0)return!0x1;const _0x27cef7=_0x4febc3[_0xa94d7b(0x272)]()+'/'+_0x2aa6c1+'/object/'+_0x341d55+_0xa94d7b(0x314);if(_0x2140a3[_0xa94d7b(0x27a)]===_0x27cef7)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x49d88a){const _0x3527b6=_0x3977dc;var _0x34b97e;return(_0x34b97e=_0x49d88a[_0x3527b6(0x3e1)])==null?void 0x0:_0x34b97e[_0x3527b6(0x3d7)];},'mergeParamsToRequest'(_0x3f149e,_0x2e9469){const _0x5e43c1=_0x3977dc,_0x4f7724=_0x4febc3[_0x5e43c1(0x272)]()+'/-/object/-/batch_allowed',_0x3dea26=_0x3f149e['reduce']((_0x568483,_0x445712)=>{const _0x4e5fba=_0x5e43c1,{unitID:_0x386388,objectID:_0x5272c5,objectType:_0x228ecd,actions:_0x103e3f}=_0x445712;return _0x568483[_0x386388]||(_0x568483[_0x386388]={}),_0x568483[_0x386388][_0x5272c5]||(_0x568483[_0x386388][_0x5272c5]={'objectID':_0x5272c5,'objectType':_0x228ecd,'actions':[]}),_0x568483[_0x386388][_0x5272c5][_0x4e5fba(0x1c3)]['push'](..._0x103e3f),_0x568483;},{}),_0x4a89f2=[];for(const _0x521160 in _0x3dea26)for(const _0x4e1877 in _0x3dea26[_0x521160]){const {actions:_0x357982,objectType:_0xec19ed}=_0x3dea26[_0x521160][_0x4e1877],_0x3b8b85=[...new Set(_0x357982)];_0x4a89f2[_0x5e43c1(0x1da)]({'unitID':_0x521160,'objectID':_0x4e1877,'objectType':_0xec19ed,'actions':_0x3b8b85});}return new _0x20d999(_0x5e43c1(0x3af),_0x4f7724,{'headers':_0x2e9469['headers'],'withCredentials':_0x2e9469['withCredentials'],'responseType':_0x2e9469[_0x5e43c1(0x360)],'body':{'requests':_0x4a89f2}});}},{'distributeResult'(_0x563f2a,_0x26b344){const _0x241e2c=_0x3977dc,{objectActions:_0x15dadc}=_0x563f2a;return _0x26b344[_0x241e2c(0x204)](_0x227b7a=>{const _0x21d82b=_0x241e2c,{unitID:_0x45f8c7,objectID:_0x35e572,actions:_0xeb61fb}=_0x227b7a,_0x5a030a=_0x15dadc['find'](_0x5ab627=>_0x5ab627[_0x21d82b(0x23a)]===_0x45f8c7&&_0x5ab627['objectID']===_0x35e572),_0x33a316=_0xeb61fb[_0x21d82b(0x204)](_0x2be622=>_0x5a030a==null?void 0x0:_0x5a030a[_0x21d82b(0x1c3)][_0x21d82b(0x1f4)](_0x9e5382=>_0x9e5382[_0x21d82b(0x21a)]===_0x2be622))['filter'](_0x7615ac=>!!_0x7615ac);return{'config':_0x227b7a,'result':{'actions':_0x33a316,'error':_0x563f2a[_0x21d82b(0x3b8)]}};});}})}));}['_getAPIPrefixPath'](){const _0x1612a9=_0x173fa3;var _0x21d5e1,_0x20ca58;const _0x1631b4=this[_0x1612a9(0x205)][_0x1612a9(0x4c2)](Fo),_0x542af1=this[_0x1612a9(0x205)][_0x1612a9(0x4c2)](j);return(_0x20ca58=(_0x21d5e1=_0x542af1==null?void 0x0:_0x542af1[_0x1612a9(0x1b6)])!=null?_0x21d5e1:_0x1631b4)!=null?_0x20ca58:Wo;}async[_0x173fa3(0x1ea)](_0x457221){const _0x2d8832=_0x173fa3,_0x2543f3=this['_getAPIPrefixPath']()+'/'+_0x457221[_0x2d8832(0x425)]+_0x2d8832(0x259);return(await this[_0x2d8832(0x2db)][_0x2d8832(0x289)](_0x2543f3,{'body':_0x457221}))[_0x2d8832(0x3d7)]['objectID']||'';}async[_0x173fa3(0x3b2)](_0x116fe0){const _0x1f8b94=_0x173fa3,_0x4cec10=this[_0x1f8b94(0x272)]()+_0x1f8b94(0x3c6);return(await this[_0x1f8b94(0x2db)][_0x1f8b94(0x289)](_0x4cec10,{'body':_0x116fe0}))['body']['objects'];}async[_0x173fa3(0x380)](_0xa0b536){const _0x27f7c0=_0x173fa3,_0x4d0cd1=this[_0x27f7c0(0x272)]()+'/'+_0xa0b536[_0x27f7c0(0x425)]+_0x27f7c0(0x485)+_0xa0b536[_0x27f7c0(0x41e)];await this[_0x27f7c0(0x2db)][_0x27f7c0(0x4d6)](_0x4d0cd1,{'body':_0xa0b536});}async[_0x173fa3(0x1e9)](_0x35437d){const _0x5051d9=_0x173fa3,_0x2c8cad=this['_getAPIPrefixPath']()+'/'+_0x35437d['objectType']+_0x5051d9(0x485)+_0x35437d[_0x5051d9(0x41e)]+_0x5051d9(0x314);return(await this[_0x5051d9(0x2db)][_0x5051d9(0x289)](_0x2c8cad,{'body':_0x35437d}))[_0x5051d9(0x3d7)][_0x5051d9(0x1c3)];}async['batchAllowed'](_0x5a5bb5){const _0x431613=_0x173fa3,_0x13607a=this[_0x431613(0x272)]()+_0x431613(0x2eb);return(await this[_0x431613(0x2db)][_0x431613(0x289)](_0x13607a,{'body':{'requests':_0x5a5bb5}}))[_0x431613(0x3d7)][_0x431613(0x42d)];}async[_0x173fa3(0x516)](_0x5e20be){const _0x3b57e8=_0x173fa3,_0x5992ec=this[_0x3b57e8(0x272)]()+'/'+_0x5e20be[_0x3b57e8(0x425)]+_0x3b57e8(0x4d9),_0x468af4=await this[_0x3b57e8(0x2db)][_0x3b57e8(0x289)](_0x5992ec,{'body':_0x5e20be});return{'roles':_0x468af4[_0x3b57e8(0x3d7)][_0x3b57e8(0x1b5)],'actions':_0x468af4[_0x3b57e8(0x3d7)][_0x3b57e8(0x1c3)]};}async[_0x173fa3(0x1a7)](_0x87ff24){const _0x1a82a2=_0x173fa3,_0x405d7b=this[_0x1a82a2(0x272)]()+_0x1a82a2(0x209);await this[_0x1a82a2(0x2db)]['delete'](_0x405d7b,{'params':{'collaboratorID':_0x87ff24['collaboratorID'],'objectID':_0x87ff24[_0x1a82a2(0x41e)],'unitID':_0x87ff24['unitID']}});}async[_0x173fa3(0x25f)](_0x309385){const _0x206ec1=_0x173fa3,_0x3ecd76=this[_0x206ec1(0x272)]()+_0x206ec1(0x209);await this[_0x206ec1(0x2db)][_0x206ec1(0x1ad)](_0x3ecd76,{'body':_0x309385});}async[_0x173fa3(0x413)](_0x37578f){const _0x3389b8=_0x173fa3,_0x207be9=this['_getAPIPrefixPath']()+_0x3389b8(0x209);await this[_0x3389b8(0x2db)]['post'](_0x207be9,{'body':_0x37578f});}async['listCollaborators'](_0x483fc3){const _0x1246b5=_0x173fa3,_0x57c30a=this[_0x1246b5(0x272)]()+_0x1246b5(0x209);return(await this[_0x1246b5(0x2db)][_0x1246b5(0x3c3)](_0x57c30a,{'params':{'objectID':_0x483fc3['objectID'],'unitID':_0x483fc3['unitID']}}))[_0x1246b5(0x3d7)][_0x1246b5(0x504)];}async[_0x173fa3(0x18c)](_0x4ed916){const _0x53c0b9=_0x173fa3,_0x568e2f=this[_0x53c0b9(0x272)]()+_0x53c0b9(0x209);await this['_HTTPService'][_0x53c0b9(0x4d6)](_0x568e2f,{'body':_0x4ed916});}};Ut=Vo([vs(0x0,_0x4f7ed2(_0x33691b)),vs(0x1,_0x4f7ed2(_0x13b27e))],Ut);var Go=Object[_0x173fa3(0x309)],Yo=Object[_0x173fa3(0x4d5)],Ko=(_0x39799e,_0x5092b8,_0x1a4984,_0xdcc60)=>{for(var _0x557708=_0xdcc60>0x1?void 0x0:_0xdcc60?Yo(_0x5092b8,_0x1a4984):_0x5092b8,_0x7d1ce8=_0x39799e['length']-0x1,_0x2d4ad0;_0x7d1ce8>=0x0;_0x7d1ce8--)(_0x2d4ad0=_0x39799e[_0x7d1ce8])&&(_0x557708=(_0xdcc60?_0x2d4ad0(_0x5092b8,_0x1a4984,_0x557708):_0x2d4ad0(_0x557708))||_0x557708);return _0xdcc60&&_0x557708&&Go(_0x5092b8,_0x1a4984,_0x557708),_0x557708;},Xo=(_0x4817eb,_0x5b7d9f)=>(_0x300afa,_0xb54b3c)=>_0x5b7d9f(_0x300afa,_0xb54b3c,_0x4817eb);let tt=class{constructor(_0x142b3e){const _0x1722a6=_0x173fa3;this[_0x1722a6(0x511)]=_0x142b3e,this[_0x1722a6(0x203)]();}[_0x173fa3(0x203)](){const _0x2fe295=_0x173fa3;this['_httpService'][_0x2fe295(0x27b)]({'interceptor':(_0x36189a,_0x779692)=>{const _0x2f3337=_0x2fe295,_0xd5b4b6=_0x36189a[_0x2f3337(0x435)],_0x3fbeaf=_0x10e2ee();return _0x3fbeaf&&_0xd5b4b6['set']('x-univer-host',_0x3fbeaf),_0x779692(_0x36189a);}});}};tt=Ko([Xo(0x0,_0x4f7ed2(_0x33691b))],tt);var qo=Object[_0x173fa3(0x309)],Jo=Object[_0x173fa3(0x4d5)],zo=(_0x51a9cc,_0x4dbf63,_0x1933c5,_0x4cd0e2)=>{for(var _0xab4580=_0x4cd0e2>0x1?void 0x0:_0x4cd0e2?Jo(_0x4dbf63,_0x1933c5):_0x4dbf63,_0x49d0e8=_0x51a9cc['length']-0x1,_0x4d3844;_0x49d0e8>=0x0;_0x49d0e8--)(_0x4d3844=_0x51a9cc[_0x49d0e8])&&(_0xab4580=(_0x4cd0e2?_0x4d3844(_0x4dbf63,_0x1933c5,_0xab4580):_0x4d3844(_0xab4580))||_0xab4580);return _0x4cd0e2&&_0xab4580&&qo(_0x4dbf63,_0x1933c5,_0xab4580),_0xab4580;},vt=(_0x2933f6,_0x2404dc)=>(_0x286e22,_0x332c12)=>_0x2404dc(_0x286e22,_0x332c12,_0x2933f6);const Zo=[_0x173fa3(0x30b),_0x173fa3(0x446),_0x173fa3(0x49e),_0x173fa3(0x306),'image/bmp'],Qo=0x5*0x400*0x400,ea='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',ta=_0x173fa3(0x43d),sa=_0x173fa3(0x3f9),ia=_0x173fa3(0x1e4);let Nt=class{constructor(_0x28f982,_0x3e1de4,_0x2eb8ef){const _0x5c1aaf=_0x173fa3;l(this,_0x5c1aaf(0x39b),0x0),l(this,_0x5c1aaf(0x362),new _0x54d3a4()),l(this,_0x5c1aaf(0x222),this[_0x5c1aaf(0x362)]),l(this,_0x5c1aaf(0x514),new Map()),(this[_0x5c1aaf(0x511)]=_0x28f982,this[_0x5c1aaf(0x205)]=_0x3e1de4,this[_0x5c1aaf(0x3f2)]=_0x2eb8ef);}[_0x173fa3(0x3f4)](_0x39a492){const _0x3a2e37=_0x173fa3;this[_0x3a2e37(0x39b)]=_0x39a492,this[_0x3a2e37(0x362)][_0x3a2e37(0x2d0)](_0x39a492);}['getImageSourceCache'](_0x5216d1,_0x23390e){const _0x57ea16=_0x173fa3;if(_0x23390e===_0x4349b6[_0x57ea16(0x38b)]){const _0x50b7b2=new Image();return _0x50b7b2[_0x57ea16(0x2c8)]=_0x5216d1,_0x50b7b2;}return this[_0x57ea16(0x514)][_0x57ea16(0x3c3)](_0x5216d1);}[_0x173fa3(0x1c1)](_0x3e53e8,_0x3a4256,_0x33101a){const _0x2abecf=_0x173fa3;_0x3a4256===_0x4349b6[_0x2abecf(0x38b)]||_0x33101a==null||this[_0x2abecf(0x514)][_0x2abecf(0x3e3)](_0x3e53e8,_0x33101a);}async[_0x173fa3(0x3c2)](_0x1aa23f){const _0x4e2d83=_0x173fa3;try{const _0x12ebc5=this[_0x4e2d83(0x4a0)](this[_0x4e2d83(0x3a1)](),''+_0x1aa23f),_0x2e266a=(await this[_0x4e2d83(0x511)][_0x4e2d83(0x3c3)](_0x12ebc5))[_0x4e2d83(0x3d7)];if(_0x2e266a['error']&&_0x2e266a[_0x4e2d83(0x3b8)]['code']===ks['OK']){const _0x278d34=new URL(_0x2e266a[_0x4e2d83(0x27a)],this[_0x4e2d83(0x4a1)]())[_0x4e2d83(0x358)]();return Promise[_0x4e2d83(0x29f)](_0x278d34);}return Promise[_0x4e2d83(0x2b2)](_0x2e266a[_0x4e2d83(0x3b8)]);}catch(_0xfc6a63){return Promise[_0x4e2d83(0x2b2)](_0xfc6a63);}}async[_0x173fa3(0x4e9)](_0x4fa5a1){const _0x40e4e6=_0x173fa3;let _0x61e6b7='';if(!Zo['includes'](_0x4fa5a1['type']))return this[_0x40e4e6(0x236)](),Promise[_0x40e4e6(0x2b2)](new Error(_0xb56f1[_0x40e4e6(0x255)]));if(_0x4fa5a1[_0x40e4e6(0x46d)]>Qo)return this[_0x40e4e6(0x236)](),Promise['reject'](new Error(_0xb56f1[_0x40e4e6(0x1eb)]));try{const _0x5e47e1=new FormData();_0x5e47e1[_0x40e4e6(0x474)](_0x40e4e6(0x1e0),_0x4fa5a1);const _0x4b2f20=this[_0x40e4e6(0x3f2)][_0x40e4e6(0x39c)](),_0x1d52eb=_0x4b2f20==null?void 0x0:_0x4b2f20[_0x40e4e6(0x253)]();if(!_0x1d52eb)throw new Error(_0x40e4e6(0x3cd));const _0x283915=this[_0x40e4e6(0x40d)]()+'?size='+_0x4fa5a1['size'][_0x40e4e6(0x358)]()+'&source='+Bs[_0x40e4e6(0x2ff)]+'&assign='+encodeURIComponent(_0x1d52eb),_0x7ef6f2=await(await fetch(_0x283915,{'method':_0x40e4e6(0x3af),'body':_0x5e47e1}))[_0x40e4e6(0x399)]();if(typeof _0x7ef6f2['FileId']!=_0x40e4e6(0x215))return this[_0x40e4e6(0x236)](),Promise[_0x40e4e6(0x2b2)](new Error(_0xb56f1[_0x40e4e6(0x2a0)]));_0x61e6b7=_0x7ef6f2[_0x40e4e6(0x3e0)];}catch{return this[_0x40e4e6(0x236)](),Promise[_0x40e4e6(0x2b2)](new Error(_0xb56f1['ERROR_IMAGE']));}return new Promise((_0x46bfde,_0x4790b0)=>{const _0x5e76fa=_0x40e4e6,_0x5dfdc3=new FileReader();_0x5dfdc3[_0x5e76fa(0x4e3)](_0x4fa5a1),_0x5dfdc3[_0x5e76fa(0x298)]=_0x89dddd=>{const _0x3cd233=_0x5e76fa;var _0x14a6d6;const _0xc14666=(_0x14a6d6=_0x89dddd['target'])==null?void 0x0:_0x14a6d6[_0x3cd233(0x47b)];if(_0xc14666==null){this['_decreaseWaiting'](),_0x4790b0(new Error(_0xb56f1[_0x3cd233(0x2a0)]));return;}const _0x427335=_0x58e8f0[_0x3cd233(0x31e)](0x6);_0x46bfde({'imageId':_0x427335,'imageSourceType':_0x4349b6[_0x3cd233(0x3ed)],'source':_0x61e6b7,'base64Cache':_0xc14666,'status':_0xb56f1['SUCCUSS']}),this[_0x3cd233(0x236)]();};});}['_getUploadFileURL'](){const _0x297726=_0x173fa3;var _0x3224a4,_0x1bff2a;const _0x3b3f78=this[_0x297726(0x205)][_0x297726(0x4c2)](ea),_0x5ab8d9=this[_0x297726(0x205)][_0x297726(0x4c2)](j);return(_0x1bff2a=(_0x3224a4=_0x5ab8d9==null?void 0x0:_0x5ab8d9[_0x297726(0x3cb)])!=null?_0x3224a4:_0x3b3f78)!=null?_0x1bff2a:ta;}[_0x173fa3(0x3a1)](){const _0x214e9e=_0x173fa3;var _0x471d42,_0x2c2a39;const _0x2c85b8=this[_0x214e9e(0x205)][_0x214e9e(0x4c2)](sa),_0x19b752=this[_0x214e9e(0x205)][_0x214e9e(0x4c2)](j);return(_0x2c2a39=(_0x471d42=_0x19b752==null?void 0x0:_0x19b752[_0x214e9e(0x29e)])!=null?_0x471d42:_0x2c85b8)!=null?_0x2c2a39:ia;}[_0x173fa3(0x4a1)](){const _0x1b919e=_0x173fa3;var _0x53368a;const _0x25163f=this[_0x1b919e(0x205)][_0x1b919e(0x4c2)](j);return(_0x53368a=_0x25163f==null?void 0x0:_0x25163f[_0x1b919e(0x3dc)])!=null?_0x53368a:location[_0x1b919e(0x49c)];}[_0x173fa3(0x4a0)](_0x5b37d4,_0x298dc6){const _0xbcf7b0=_0x173fa3;return _0x5b37d4['replace'](_0xbcf7b0(0x27e),_0x298dc6);}['_decreaseWaiting'](){const _0x445b62=_0x173fa3;this[_0x445b62(0x39b)]-=0x1,this[_0x445b62(0x362)]['next'](this[_0x445b62(0x39b)]);}};Nt=zo([vt(0x0,_0x4f7ed2(_0x33691b)),vt(0x1,_0x13b27e),vt(0x2,_0x4f7ed2(_0x1e8ecc))],Nt);var na=Object[_0x173fa3(0x309)],ra=Object[_0x173fa3(0x4d5)],oa=(_0x467996,_0x4b7430,_0x4643ca,_0x3fe199)=>{const _0x5cb32c=_0x173fa3;for(var _0x242c90=_0x3fe199>0x1?void 0x0:_0x3fe199?ra(_0x4b7430,_0x4643ca):_0x4b7430,_0x263064=_0x467996[_0x5cb32c(0x223)]-0x1,_0xc004ef;_0x263064>=0x0;_0x263064--)(_0xc004ef=_0x467996[_0x263064])&&(_0x242c90=(_0x3fe199?_0xc004ef(_0x4b7430,_0x4643ca,_0x242c90):_0xc004ef(_0x242c90))||_0x242c90);return _0x3fe199&&_0x242c90&&na(_0x4b7430,_0x4643ca,_0x242c90),_0x242c90;},Ue=(_0x31123d,_0x3eb9df)=>(_0x4005fd,_0x5caaf6)=>_0x3eb9df(_0x4005fd,_0x5caaf6,_0x31123d);let st=class extends _0x13ba8e{constructor(_0x348969,_0xe4af0c,_0xfa0bd,_0x13f38d,_0x5c17ce){const _0x3c213c=_0x173fa3;super(),this[_0x3c213c(0x4b7)]=_0x348969,this[_0x3c213c(0x3f2)]=_0xe4af0c,this['_permissionService']=_0xfa0bd,this[_0x3c213c(0x344)]=_0x13f38d,this[_0x3c213c(0x2e7)]=_0x5c17ce,this[_0x3c213c(0x1f8)](),this['_initCloseConn']();}[_0x173fa3(0x4ad)](){const _0x1c101a=_0x173fa3,_0x29da62=async _0x21581c=>{const _0x30b8da=_0x33c3;(await this[_0x30b8da(0x344)]['requireSession'](_0x21581c))[_0x30b8da(0x493)][_0x30b8da(0x35b)](_0x3f9fc1(_0xd8c0a7=>_0xd8c0a7[_0x30b8da(0x278)]===_0x5f441e[_0x30b8da(0x296)]),_0x54b271(this[_0x30b8da(0x2a1)]))[_0x30b8da(0x3eb)](_0x5244c7=>{const _0x2f13cc=_0x30b8da,_0x4d930c=_0x5244c7,{reason:_0x14b7b5}=_0x4d930c[_0x2f13cc(0x411)];this[_0x2f13cc(0x4b7)][_0x2f13cc(0x3c3)](_0x46e149)[_0x2f13cc(0x1e6)]({'type':_0x180cc7['Error'],'content':this[_0x2f13cc(0x2e7)]['t']('collaboration.closeRoom')+'('+_0x14b7b5+')'}),this[_0x2f13cc(0x1d0)][_0x2f13cc(0x1c5)](new _0x52a438(_0x21581c)['id'],!0x1),this[_0x2f13cc(0x344)][_0x2f13cc(0x42a)](_0x21581c);});};_0x378f3d(this[_0x1c101a(0x3f2)]['getTypeOfUnitAdded$'](_0x159e2d[_0x1c101a(0x4fa)]),this[_0x1c101a(0x3f2)][_0x1c101a(0x22f)](_0x159e2d['UNIVER_DOC']))[_0x1c101a(0x35b)](_0x595c33(_0x3932a2=>_0x3932a2[_0x1c101a(0x253)]()),_0x3f9fc1(_0x249dba=>!_0xfab1d1(_0x249dba)),_0x54b271(this[_0x1c101a(0x2a1)]))[_0x1c101a(0x3eb)](_0x29146a=>{_0x29da62(_0x29146a);});}[_0x173fa3(0x1f8)](){const _0x4635ea=_0x173fa3,_0x1b7c03=async _0x15f66b=>{const _0x1bc624=_0x33c3;(await this[_0x1bc624(0x344)][_0x1bc624(0x395)](_0x15f66b))[_0x1bc624(0x493)][_0x1bc624(0x35b)](_0x3f9fc1(_0x7e9837=>_0x7e9837[_0x1bc624(0x278)]===_0x5f441e['UPDATE_PERMISSION_OBJ']),_0x54b271(this[_0x1bc624(0x2a1)]))[_0x1bc624(0x3eb)](_0x4bd85b=>{const _0x5cf68d=_0x1bc624,_0x409393=_0x4bd85b,{objectId:_0x4fb3ea}=_0x409393[_0x5cf68d(0x411)],_0x1761a5=this[_0x5cf68d(0x4b7)][_0x5cf68d(0x3c3)](_0x3d90fa);_0x4fb3ea===_0x15f66b?_0x1761a5[_0x5cf68d(0x4da)](_0x15f66b):_0x1761a5[_0x5cf68d(0x4dd)](_0x15f66b,_0x4fb3ea);});};_0x378f3d(this[_0x4635ea(0x3f2)]['getTypeOfUnitAdded$'](_0x159e2d['UNIVER_SHEET']),this[_0x4635ea(0x3f2)]['getTypeOfUnitAdded$'](_0x159e2d[_0x4635ea(0x381)]))[_0x4635ea(0x35b)](_0x595c33(_0x562ac6=>_0x562ac6['getUnitId']()),_0x3f9fc1(_0x3be468=>!_0xfab1d1(_0x3be468)),_0x54b271(this[_0x4635ea(0x2a1)]))[_0x4635ea(0x3eb)](_0x28baca=>{_0x1b7c03(_0x28baca);});}};st=oa([Ue(0x0,_0x4f7ed2(_0x3b0750)),Ue(0x1,_0x1e8ecc),Ue(0x2,_0x8f100a),Ue(0x3,_0x4f7ed2(ue)),Ue(0x4,_0x4f7ed2(_0x15839b))],st);var aa=Object[_0x173fa3(0x309)],ca=Object[_0x173fa3(0x4d5)],ha=(_0xa4f73,_0x288bed,_0x370d73,_0x586ae7)=>{const _0x33c0d7=_0x173fa3;for(var _0x168243=_0x586ae7>0x1?void 0x0:_0x586ae7?ca(_0x288bed,_0x370d73):_0x288bed,_0x51d964=_0xa4f73[_0x33c0d7(0x223)]-0x1,_0x3ff386;_0x51d964>=0x0;_0x51d964--)(_0x3ff386=_0xa4f73[_0x51d964])&&(_0x168243=(_0x586ae7?_0x3ff386(_0x288bed,_0x370d73,_0x168243):_0x3ff386(_0x168243))||_0x168243);return _0x586ae7&&_0x168243&&aa(_0x288bed,_0x370d73,_0x168243),_0x168243;},Is=(_0x5e71b3,_0xe5de6f)=>(_0x4913a2,_0xb8ae47)=>_0xe5de6f(_0x4913a2,_0xb8ae47,_0x5e71b3);let At=class{constructor(_0x36dc16,_0x5960dd){const _0xa12f65=_0x173fa3;this[_0xa12f65(0x205)]=_0x36dc16,this[_0xa12f65(0x511)]=_0x5960dd;}async['getUnitOnRev'](_0x1d8ef9,_0xb729a8){const _0x5b8c25=_0x173fa3;var _0x2ba270;const {unitID:_0x33d8c6,type:_0x1a3f89,revision:_0x1d962c=0x0}=_0xb729a8,_0x4715bc=this[_0x5b8c25(0x218)]()+'/'+_0x1a3f89+'/unit/'+_0x33d8c6+_0x5b8c25(0x233)+_0x1d962c,_0x52ed17=(await this[_0x5b8c25(0x511)]['get'](_0x4715bc))[_0x5b8c25(0x3d7)],_0x5d9d69=(_0x2ba270=_0x52ed17['snapshot'])==null?void 0x0:_0x2ba270['workbook'];if(_0x5d9d69){const _0x42b9cf=_0x5d9d69==null?void 0x0:_0x5d9d69['originalMeta'],_0x331846=_0x206e33['encode'](_0x346f8f(_0x42b9cf));_0x5d9d69['originalMeta']=_0x331846,Object[_0x5b8c25(0x20b)](_0x5d9d69['sheets'])['forEach'](([,_0x471995])=>{const _0x2b72b5=_0x5b8c25,_0xc4111=_0x471995[_0x2b72b5(0x28b)],_0x1c6da9=_0x206e33[_0x2b72b5(0x41b)](_0x346f8f(_0xc4111));_0x471995[_0x2b72b5(0x28b)]=_0x1c6da9;});}return _0x52ed17;}async['getSheetBlock'](_0x57a3ec,_0x126e0d){const _0x4f8582=_0x173fa3,{unitID:_0x44ea49,type:_0x633c47,blockID:_0x3237a0}=_0x126e0d,_0x349d00=this[_0x4f8582(0x3ba)]()+'/'+_0x633c47+_0x4f8582(0x50d)+_0x44ea49+_0x4f8582(0x33f)+_0x3237a0;return(await this[_0x4f8582(0x511)][_0x4f8582(0x3c3)](_0x349d00))[_0x4f8582(0x3d7)];}async['getDeserializedSheetBlock'](_0x4e907d,_0x3eef85){const _0x3bd19d=_0x173fa3,{unitID:_0x2900b0,type:_0x12cbff,blockID:_0x40e3e3}=_0x3eef85,_0x1e2c6e=this['_getAPIPrefix']()+_0x3bd19d(0x33f)+_0x12cbff+_0x3bd19d(0x50d)+_0x2900b0+_0x3bd19d(0x33f)+_0x40e3e3;return(await this[_0x3bd19d(0x511)][_0x3bd19d(0x3c3)](_0x1e2c6e))[_0x3bd19d(0x3d7)];}async[_0x173fa3(0x2ea)](_0x34a756,_0x668c){const _0x42bef7=_0x173fa3,{unitID:_0x69cb81,type:_0x3478c6,from:_0x2b23a2,to:_0x4af9}=_0x668c,_0x3356ce=this[_0x42bef7(0x3ba)]()+'/'+_0x3478c6+_0x42bef7(0x50d)+_0x69cb81+'/fetchmissing?from='+_0x2b23a2+'&to='+_0x4af9;return(await this[_0x42bef7(0x511)][_0x42bef7(0x3c3)](_0x3356ce))[_0x42bef7(0x3d7)];}[_0x173fa3(0x218)](){const _0x3860eb=_0x173fa3;var _0x331a9e;return(_0x331a9e=this[_0x3860eb(0x205)][_0x3860eb(0x4c2)](Cn))!=null?_0x331a9e:this['_getAPIPrefix']();}[_0x173fa3(0x3ba)](){const _0x23e3e2=_0x173fa3;var _0x2b6819,_0x8b1c5f;const _0x1a5dce=this[_0x23e3e2(0x205)][_0x23e3e2(0x4c2)](In),_0x5990d7=this[_0x23e3e2(0x205)][_0x23e3e2(0x4c2)](j);return(_0x8b1c5f=(_0x2b6819=_0x5990d7==null?void 0x0:_0x5990d7['snapshotServerUrl'])!=null?_0x2b6819:_0x1a5dce)!=null?_0x8b1c5f:En;}async['getResourcesRequest'](_0x469b2f,_0x3fe9fe){const _0x314ed8=_0x173fa3,_0x53209f=_0x314ed8(0x363)+_0x3fe9fe[_0x314ed8(0x32d)]+_0x314ed8(0x50d)+_0x3fe9fe[_0x314ed8(0x23a)]+'/resources';return(await this[_0x314ed8(0x511)][_0x314ed8(0x3c3)](_0x53209f,{'params':{'resourceId':JSON[_0x314ed8(0x3ab)](_0x3fe9fe['resourceIDs'])}}))[_0x314ed8(0x3d7)];}[_0x173fa3(0x224)](){const _0x12595e=_0x173fa3;throw new Error(_0x12595e(0x2da));}[_0x173fa3(0x1fb)](){const _0x3412db=_0x173fa3;throw new Error(_0x3412db(0x2da));}['saveChangeset'](){const _0x3476ab=_0x173fa3;throw new Error(_0x3476ab(0x2da));}[_0x173fa3(0x421)](){const _0x325519=_0x173fa3;throw new Error(_0x325519(0x2da));}[_0x173fa3(0x479)](){const _0xb35fab=_0x173fa3;throw new Error(_0xb35fab(0x2da));}};At=ha([Is(0x0,_0x13b27e),Is(0x1,_0x4f7ed2(_0x33691b))],At);var la=Object['defineProperty'],_a=Object['getOwnPropertyDescriptor'],ua=(_0x14bf50,_0x1fb0c0,_0x4e79c9,_0x252c98)=>{for(var _0x7d04d3=_0x252c98>0x1?void 0x0:_0x252c98?_a(_0x1fb0c0,_0x4e79c9):_0x1fb0c0,_0x217247=_0x14bf50['length']-0x1,_0x1d51a4;_0x217247>=0x0;_0x217247--)(_0x1d51a4=_0x14bf50[_0x217247])&&(_0x7d04d3=(_0x252c98?_0x1d51a4(_0x1fb0c0,_0x4e79c9,_0x7d04d3):_0x1d51a4(_0x7d04d3))||_0x7d04d3);return _0x252c98&&_0x7d04d3&&la(_0x1fb0c0,_0x4e79c9,_0x7d04d3),_0x7d04d3;},Ne=(_0x36e38f,_0x571c46)=>(_0x384c2c,_0x2f1b04)=>_0x571c46(_0x384c2c,_0x2f1b04,_0x36e38f);let Mt=class extends _0x2bc6cc{constructor(_0x438187,_0x2c3fd8,_0x2a5a39,_0x3be526,_0x4966e0){super(_0x438187,_0x2c3fd8,_0x2a5a39),this['_transformService']=_0x3be526,this['_logService']=_0x4966e0;}[_0x173fa3(0x201)](_0x33a395,_0x5f5870){const _0x1a0909=_0x173fa3,_0x537ca1=this[_0x1a0909(0x260)](_0x33a395);if(_0x537ca1)try{const _0x3a7253=this[_0x1a0909(0x26b)](_0x537ca1,_0x5f5870);this['_substituteUndoStack'](_0x33a395,_0x3a7253);}catch(_0x2c6dc7){this[_0x1a0909(0x2cd)]['error'](_0x1a0909(0x2d8),_0x2c6dc7),this[_0x1a0909(0x33d)](_0x33a395);}const _0x1886b3=this[_0x1a0909(0x43a)](_0x33a395);if(_0x1886b3)try{const _0x4d9fc2=this[_0x1a0909(0x26b)](_0x1886b3,_0x5f5870);this[_0x1a0909(0x3ac)](_0x33a395,_0x4d9fc2);}catch(_0x37f2a1){this[_0x1a0909(0x2cd)][_0x1a0909(0x3b8)](_0x37f2a1),this[_0x1a0909(0x4c8)](_0x33a395);}}[_0x173fa3(0x33d)](_0x593fdf){const _0x232a53=_0x173fa3,_0x2a71de=this[_0x232a53(0x260)](_0x593fdf);_0x2a71de&&(_0x2a71de[_0x232a53(0x223)]=0x0,this['_updateStatus']());}['_clearRedo'](_0x55e3e3){const _0x2bcabe=_0x173fa3,_0x1c2f4a=this[_0x2bcabe(0x43a)](_0x55e3e3);_0x1c2f4a&&(_0x1c2f4a['length']=0x0,this[_0x2bcabe(0x34d)]());}[_0x173fa3(0x304)](_0x571f47,_0x57acca){this['_undoStacks']['set'](_0x571f47,_0x57acca),this['_updateStatus']();}['_substituteRedoStack'](_0x26041b,_0x533df6){const _0x67bc62=_0x173fa3;this[_0x67bc62(0x269)]['set'](_0x26041b,_0x533df6),this['_updateStatus']();}[_0x173fa3(0x26b)](_0x27177f,_0xae8e4a){const _0x3ce7eb=_0x173fa3,_0x5ad930=[];let _0x4de5e6=_0xae8e4a,_0x48b13c=_0xae8e4a;for(let _0x2055e1=_0x27177f[_0x3ce7eb(0x223)]-0x1;_0x2055e1>=0x0;_0x2055e1--){const {unitID:_0xcfc7cb,undoMutations:_0x376fa8,redoMutations:_0x363b5f}=_0x27177f[_0x2055e1],_0x24d480=this[_0x3ce7eb(0x387)][_0x3ce7eb(0x3a5)](_0x4de5e6,_0x376fa8),_0x4fbbaf=this[_0x3ce7eb(0x387)][_0x3ce7eb(0x3a5)](_0x48b13c,_0x363b5f);if(_0x5a59dd(_0x24d480)||_0x5a59dd(_0x4fbbaf)){this[_0x3ce7eb(0x2cd)][_0x3ce7eb(0x3b8)](_0x3ce7eb(0x2d8),'transformStack\x20failed!',_0x24d480,_0x4fbbaf);break;}_0x4de5e6=_0x24d480[_0x3ce7eb(0x33a)],_0x48b13c=_0x4fbbaf[_0x3ce7eb(0x33a)],_0x5ad930[_0x3ce7eb(0x1da)]({'unitID':_0xcfc7cb,'undoMutations':_0x24d480[_0x3ce7eb(0x197)],'redoMutations':_0x4fbbaf['m2Prime']});}return _0x5ad930[_0x3ce7eb(0x441)]();}};Mt=ua([Ne(0x0,_0x1e8ecc),Ne(0x1,_0xdec94a),Ne(0x2,_0x163dc9),Ne(0x3,_0x4a8bc3),Ne(0x4,_0x4329b1)],Mt);class da extends _0x13ba8e{constructor(){const _0x501f71=_0x173fa3;super(),l(this,_0x501f71(0x42f)),this['urlChange$']=_0x25f31e(window,_0x501f71(0x3d2))['pipe'](_0x223895(this['dispose$']),_0x5fb4e1(0x1),_0x5297dd(void 0x0));}[_0x173fa3(0x352)](_0x45e98b,_0x37ea9f,_0x26ce14=!0x1){const _0x88f494=_0x173fa3,_0x4c2c02=new URL(window[_0x88f494(0x35e)]['href']);_0x4c2c02[_0x88f494(0x4cb)]['set'](_0x45e98b,_0x37ea9f),_0x26ce14?window[_0x88f494(0x24a)]['replaceState']('','',_0x4c2c02[_0x88f494(0x358)]()):window[_0x88f494(0x24a)][_0x88f494(0x4cc)]('','',_0x4c2c02[_0x88f494(0x358)]());}[_0x173fa3(0x3c9)](_0x14e57a,_0x45b672=!0x1){const _0x48b527=_0x173fa3,_0x5db4f7=new URL(window[_0x48b527(0x35e)][_0x48b527(0x3f3)]);_0x5db4f7[_0x48b527(0x4cb)]['delete'](_0x14e57a),_0x45b672?window[_0x48b527(0x24a)][_0x48b527(0x290)]('','',_0x5db4f7[_0x48b527(0x358)]()):window['history']['pushState']('','',_0x5db4f7[_0x48b527(0x358)]());}[_0x173fa3(0x419)](_0x32e781){const _0x5a2452=_0x173fa3;var _0x5ec0ef;return(_0x5ec0ef=new URL(window['location'][_0x5a2452(0x3f3)])[_0x5a2452(0x4cb)][_0x5a2452(0x3c3)](_0x32e781))!=null?_0x5ec0ef:void 0x0;}}var ei=Object[_0x173fa3(0x309)],ma=Object['getOwnPropertyDescriptor'],fa=(_0x1eac1f,_0x1209aa,_0x425b64)=>_0x1209aa in _0x1eac1f?ei(_0x1eac1f,_0x1209aa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x425b64}):_0x1eac1f[_0x1209aa]=_0x425b64,ga=(_0x441b0d,_0x85a50c,_0x5877f4,_0x3df6fb)=>{const _0x6d9291=_0x173fa3;for(var _0xf4c2e9=_0x3df6fb>0x1?void 0x0:_0x3df6fb?ma(_0x85a50c,_0x5877f4):_0x85a50c,_0x28304e=_0x441b0d[_0x6d9291(0x223)]-0x1,_0x45bdd5;_0x28304e>=0x0;_0x28304e--)(_0x45bdd5=_0x441b0d[_0x28304e])&&(_0xf4c2e9=(_0x3df6fb?_0x45bdd5(_0x85a50c,_0x5877f4,_0xf4c2e9):_0x45bdd5(_0xf4c2e9))||_0xf4c2e9);return _0x3df6fb&&_0xf4c2e9&&ei(_0x85a50c,_0x5877f4,_0xf4c2e9),_0xf4c2e9;},Fe=(_0x8015ec,_0x1b2daf)=>(_0x5d365a,_0x5f0954)=>_0x1b2daf(_0x5d365a,_0x5f0954,_0x8015ec),Sa=(_0x1ad15f,_0x3d84d4,_0xf7ff1a)=>fa(_0x1ad15f,_0x3d84d4+'',_0xf7ff1a);const pa='UNIVER_COLLABORATION_CLIENT_PLUGIN';let Lt=class extends _0x3ddd75{constructor(_0x361d80=jn,_0x4ef8df,_0x284bf4,_0xeeabd0,_0x5aae9f){const _0x5d85bd=_0x173fa3;super(),this[_0x5d85bd(0x2ec)]=_0x361d80,this['_logService']=_0x4ef8df,this[_0x5d85bd(0x3f6)]=_0x284bf4,this[_0x5d85bd(0x4b7)]=_0xeeabd0,this[_0x5d85bd(0x205)]=_0x5aae9f;const {..._0x1e7988}=this['_config'];this[_0x5d85bd(0x205)][_0x5d85bd(0x4c9)](j,_0x1e7988);}[_0x173fa3(0x3d5)](){const _0x3c3b15=_0x173fa3;this[_0x3c3b15(0x450)](),_0x3b1166(this[_0x3c3b15(0x4b7)],[[Ce],[Ze],[st]]);}[_0x173fa3(0x22d)](){const _0x260ff1=_0x173fa3;_0x3b1166(this[_0x260ff1(0x4b7)],[[Qe]]);}['onRendered'](){const _0xcde075=_0x173fa3;this[_0xcde075(0x2d7)]();}[_0x173fa3(0x450)](){const _0x18ef3b=_0x173fa3;var _0x4af776,_0x37d841,_0x35a505,_0xe55bac;this[_0x18ef3b(0x4b7)][_0x18ef3b(0x432)](_0x57ccc3)&&this[_0x18ef3b(0x2cd)][_0x18ef3b(0x3b8)](_0x18ef3b(0x515),_0x18ef3b(0x4ec));let _0x516e96=[[_0x57ccc3,{'useClass':Mt}],[ue],[Yt],[_0x33691b],[Qs,{'useClass':da}],[_e],[D],[_0x424bbf],[qe],[Je],[Xe],[Wt],[et],[tt],[Fs],[st],[Vs,{'useClass':(_0x37d841=(_0x4af776=this[_0x18ef3b(0x2ec)])==null?void 0x0:_0x4af776['socketService'])!=null?_0x37d841:bt}],[_0x15deac,{'useClass':_0x13c3e0}],[_0x5dfd2d,{'useClass':At}],[_0x588b6d,{'useClass':Ut}],[_0x21630a,{'useClass':Nt}],[$e],[Ze],[Me],[Qe],[Ce]];(_0x35a505=this[_0x18ef3b(0x2ec)])!=null&&_0x35a505['enableSingleActiveInstanceLock']&&_0x516e96['push']([it,{'useClass':Sr}]),_0x516e96=_0x401096(_0x516e96,(_0xe55bac=this['_config'])==null?void 0x0:_0xe55bac[_0x18ef3b(0x36c)]),_0x516e96[_0x18ef3b(0x47e)](_0x12892f=>this[_0x18ef3b(0x4b7)][_0x18ef3b(0x2f7)](_0x12892f)),this['_initModules']();}[_0x173fa3(0x2d7)](){const _0x13d935=_0x173fa3;this[_0x13d935(0x193)](this[_0x13d935(0x3f6)][_0x13d935(0x49d)](_0x159e2d[_0x13d935(0x381)],[Pt])),this[_0x13d935(0x193)](this[_0x13d935(0x3f6)][_0x13d935(0x49d)](_0x159e2d[_0x13d935(0x4fa)],[yt]));}[_0x173fa3(0x4e6)](){const _0x4c6a9a=_0x173fa3;var _0x78e887,_0x2fcf78;this[_0x4c6a9a(0x4b7)]['get'](_0x33691b)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x2fe6df({'maxParallel':0x6})}),this[_0x4c6a9a(0x4b7)][_0x4c6a9a(0x3c3)](tt),(_0x78e887=this['_config'])!=null&&_0x78e887[_0x4c6a9a(0x4c3)]||this[_0x4c6a9a(0x4b7)][_0x4c6a9a(0x3c3)](D)[_0x4c6a9a(0x2ba)](),(_0x2fcf78=this[_0x4c6a9a(0x2ec)])!=null&&_0x2fcf78[_0x4c6a9a(0x37c)]&&this['_injector']['get'](et),this[_0x4c6a9a(0x4b7)]['get']($e),this[_0x4c6a9a(0x4b7)][_0x4c6a9a(0x432)](Me)&&this[_0x4c6a9a(0x4b7)][_0x4c6a9a(0x3c3)](Me);}};Sa(Lt,_0x173fa3(0x231),pa),Lt=ga([_0xf1d54(_0x3ee7ed),Fe(0x1,_0x4329b1),Fe(0x2,_0x2855ab),Fe(0x3,_0x4f7ed2(_0x3b0750)),Fe(0x4,_0x13b27e)],Lt);export{Fo as AUTHZ_URL_KEY,Ut as AuthzIoHttpService,An as COLLAB_SUBMIT_CHANGESET_URL_KEY,Tn as COLLAB_WEB_SOCKET_URL_KEY,$e as CollaborationController,ze as CollaborationEntity,Tt as CollaborationSession,ue as CollaborationSessionService,bt as CollaborationSocketService,w as CollaborationStatus,To as CollaborationStatusDisplay,Fs as CommentService,Ze as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Rt as DocCollaborationEntity,On as HEARTBEAT_INTERVAL_KEY,Hs as HEARTBEAT_TIMEOUT_KEY,Vs as ICollaborationSocketService,Qs as IURLService,Nt as ImageIoService,Un as LOCAL_CACHE_INTERVAL_KEY,Ln as LOGIN_URL_KEY,D 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,X as SessionStatus,no as SheetCollabCursorShape,Ot as SheetCollaborationEntity,At as SnapshotServerOverHTTPService,Lt as UniverCollaborationClientPlugin,da as WebURLService,Hn as deserializeToCombResponse,xn as serializeCombRequest};
1
+ const _0x2a1bbf=_0x736f;(function(_0x1ed3ab,_0x59eea0){const _0x45fa0c=_0x736f,_0x403b02=_0x1ed3ab();while(!![]){try{const _0x5d8814=-parseInt(_0x45fa0c(0x214))/0x1*(-parseInt(_0x45fa0c(0x23b))/0x2)+-parseInt(_0x45fa0c(0x224))/0x3+parseInt(_0x45fa0c(0x457))/0x4+parseInt(_0x45fa0c(0x355))/0x5*(-parseInt(_0x45fa0c(0x307))/0x6)+-parseInt(_0x45fa0c(0x36c))/0x7+parseInt(_0x45fa0c(0x200))/0x8*(parseInt(_0x45fa0c(0x1ef))/0x9)+parseInt(_0x45fa0c(0x29c))/0xa;if(_0x5d8814===_0x59eea0)break;else _0x403b02['push'](_0x403b02['shift']());}catch(_0x491266){_0x403b02['push'](_0x403b02['shift']());}}}(_0x1894,0x43c76));var oi=Object[_0x2a1bbf(0x4e8)],ai=(_0x143ac8,_0x557008,_0x37150d)=>_0x557008 in _0x143ac8?oi(_0x143ac8,_0x557008,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37150d}):_0x143ac8[_0x557008]=_0x37150d,l=(_0x2d4d3e,_0x333691,_0x3c9618)=>ai(_0x2d4d3e,typeof _0x333691!='symbol'?_0x333691+'':_0x333691,_0x3c9618);import{createIdentifier as _0x211912,Inject as _0x55fbd9,Disposable as _0x33be34,DisposableCollection as _0x3f893b,toDisposable as _0x4817bf,IConfigService as _0x39b511,ILogService as _0x2e1f3f,UserManagerService as _0x2cb297,UniverInstanceType as _0x338b41,IUniverInstanceService as _0x23793a,LocaleService as _0x5d60a9,Optional as _0x318244,RxDisposable as _0x5b2156,Injector as _0x297a6b,Tools as _0x16ec03,ILocalStorageService as _0x34d018,Rectangle as _0x310a7c,ICommandService as _0x31e03d,DOC_RANGE_TYPE as _0x1b0eef,JSONX as _0x49b03c,CommandType as _0xa939ce,IPermissionService as _0x5717a8,IUndoRedoService as _0x2e73bf,sequenceExecute as _0x35fd0b,debounce as _0x5e8353,COLORS as _0x28aeb3,ColorKit as _0x5263cd,ThemeService as _0x1ff8cb,fromEventSubject as _0x18f301,useDependency as _0x2dcbf5,connectInjector as _0x2f5b43,Workbook as _0x1769bf,isInternalEditorID as _0x2d94e5,LocalUndoRedoService as _0x2d5c2f,IContextService as _0x161b3a,DependentOn as _0xa0c5a9,Plugin as _0x13fedb,touchDependencies as _0xf7a1db,IAuthzIoService as _0x4e61b4,mergeOverrideWithDependencies as _0x45dd2f}from'@univerjs/core';import{Subject as _0x3c1bb0,merge as _0xa702ce,takeUntil as _0x3ca91c,BehaviorSubject as _0x5bdcda,distinctUntilChanged as _0x5084da,fromEvent as _0x16101b,ReplaySubject as _0x51e810,take as _0x221894,map as _0x7371d7,shareReplay as _0x35fb95,of as _0x1af720,debounceTime as _0x526258,filter as _0x452b57,switchMap as _0x35505a,combineLatest as _0x53d442,concatMap as _0x481227,mapTo as _0x4ce7e7}from'rxjs';import{map as _0x44f82f,take as _0x1be43b,filter as _0x3edad6,delay as _0x471e8b,throttleTime as _0x5a9dcf,takeUntil as _0x1fdc8d,switchMap as _0x31e616}from'rxjs/operators';import{MessageType as _0xc5184d,Tooltip as _0x2cff21}from'@univerjs/design';import{IBeforeCloseService as _0x232eba,IMessageService as _0x48cba6,INotificationService as _0x32d9d6,useObservable as _0x4b9079,BuiltInUIPart as _0x8ae68f,IUIPartsService as _0x49f96c}from'@univerjs/ui';import{HTTPService as _0x1af781,WebSocketService as _0x4b68b1,MergeInterceptorFactory as _0x4795ff,HTTPRequest as _0x27d178,IHTTPImplementation as _0x511553,XHRHTTPImplementation as _0x3ccdaa,ThresholdInterceptorFactory as _0x210cb}from'@univerjs/network';import{CollaborationEvent as _0x334d1e,parseChangesetToProtocol as _0x28acae,ISnapshotServerService as _0x2dbfcb,isTransformMutationFailure as _0x6a901e,isTransformMutationsWithChangesetSuccess as _0x1e2179,ITransformService as _0xa94b77,RevisionService as _0x4329d3,mapDocumentTypeToUniverType as _0x5e24ef,isTransformChangesetsSuccess as _0x24f5b2,CompressMutationService as _0x1e056f,parseProtocolChangeset as _0x3de1d0,SnapshotService as _0x2cda02,textEncoder as _0x1bbaf9,b64DecodeUnicode as _0x1d2ef7,isTransformMutationsWithChangesetFailure as _0x3042d1,UniverCollaborationPlugin as _0x3ed88a}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x33dd51}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x3f45b5,DocStateChangeManagerService as _0x3e5bab,NodePositionConvertToCursor as _0xf8529d,NodePositionConvertToRectRange as _0x166c71,TEXT_RANGE_LAYER_INDEX as _0x157db6,SetDocZoomRatioOperation as _0x3e7dd2}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x5700b2,SetSelectionsOperation as _0x47bbc3,InsertSheetMutation as _0x111cee,EmptyMutation as _0x84ef87,WorkbookEditablePermission as _0x472927,RefRangeService as _0x27ccfa,EffectRefRangId as _0x7fad79,handleIRemoveRow as _0xbd5b44,handleIRemoveCol as _0x4ae499,handleMoveRange as _0x1bb017,handleInsertRow as _0x533fae,handleInsertRangeMoveRight as _0x1803dd,handleInsertRangeMoveDown as _0x160c6c,handleInsertCol as _0x563eec,handleDeleteRangeMoveUp as _0x440c18,handleDeleteRangeMoveLeft as _0x245967,runRefRangeMutations as _0x5af593,SetWorksheetActivateCommand as _0x5881fc}from'@univerjs/sheets';import{IRenderManagerService as _0x55e37e,Shape as _0x2b454e,Rect as _0x48257f,getColor as _0x3f79d0,RegularPolygon as _0x3b6ba0,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5c0076,Vector2 as _0x185930}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x3f28b3,RichTextEditingMutation as _0x3d88ce,SetTextSelectionsOperation as _0x6fdd1c,DocSkeletonManagerService as _0x22840a}from'@univerjs/docs';import{ImageSourceType as _0xfc3803,ImageUploadStatusType as _0x5f1ff4,IImageIoService as _0x513af4}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x30a980,serializeRangeWithSheet as _0x22c503}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x55360d,VIEWPORT_KEY as _0x2cc272,getCoordByCell as _0x213d9e,getSheetObject as _0x1d769f,SheetPermissionInitController as _0x319165}from'@univerjs/sheets-ui';import _0x340864,{forwardRef as _0x54153c,useRef as _0x121bdb,createElement as _0x2159e6,useCallback as _0x2e4d8e}from'react';import{IRemoteInstanceService as _0x1fcdc1}from'@univerjs/rpc';import{getAttachHeader as _0x590f2f}from'@univerjs-pro/license';const In=_0x2a1bbf(0x4db),En=_0x2a1bbf(0x233),Cn='SNAPSHOT_URL_KEY',Ha='SEND_CHANGESET_TIMEOUT',bn=0x7d0,Tn=_0x2a1bbf(0x45b),Rn=_0x2a1bbf(0x20c),On=_0x2a1bbf(0x367),Dn=0x7530,Hs=_0x2a1bbf(0x3fe),xs=0x4e20,wn=0x4e20,Pn=_0x2a1bbf(0x4b3),yn=0x3,Un=_0x2a1bbf(0x287),Nn=0x3e8,An=_0x2a1bbf(0x328),Mn=_0x2a1bbf(0x409),Ln=_0x2a1bbf(0x2c9),$n=_0x2a1bbf(0x3ea);var ks=(_0x1944c4=>(_0x1944c4[_0x1944c4[_0x2a1bbf(0x2d9)]=0x0]='UNDEFINED',_0x1944c4[_0x1944c4['OK']=0x1]='OK',_0x1944c4[_0x1944c4[_0x2a1bbf(0x1fd)]=0x2]=_0x2a1bbf(0x1fd),_0x1944c4[_0x1944c4[_0x2a1bbf(0x452)]=0x3]=_0x2a1bbf(0x452),_0x1944c4[_0x1944c4['NOT_FOUND']=0x4]='NOT_FOUND',_0x1944c4[_0x1944c4[_0x2a1bbf(0x377)]=0x5]='UNAUTHENTICATED',_0x1944c4[_0x1944c4[_0x2a1bbf(0x335)]=0x6]=_0x2a1bbf(0x335),_0x1944c4[_0x1944c4[_0x2a1bbf(0x1fc)]=0x7]='INVALID_ARGUMENT',_0x1944c4[_0x1944c4[_0x2a1bbf(0x2c1)]=0x8]=_0x2a1bbf(0x2c1),_0x1944c4[_0x1944c4[_0x2a1bbf(0x3d0)]=0x9]=_0x2a1bbf(0x3d0),_0x1944c4[_0x1944c4[_0x2a1bbf(0x4af)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x1944c4[_0x1944c4['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x1944c4[_0x1944c4['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x2a1bbf(0x4c9),_0x1944c4[_0x1944c4[_0x2a1bbf(0x534)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x1944c4[_0x1944c4[_0x2a1bbf(0x4dc)]=0x1b59]=_0x2a1bbf(0x4dc),_0x1944c4[_0x1944c4[_0x2a1bbf(0x531)]=0x1b5a]=_0x2a1bbf(0x531),_0x1944c4[_0x1944c4[_0x2a1bbf(0x333)]=0x1b5b]=_0x2a1bbf(0x333),_0x1944c4[_0x1944c4[_0x2a1bbf(0x43d)]=0x1b5c]=_0x2a1bbf(0x43d),_0x1944c4[_0x1944c4[_0x2a1bbf(0x412)]=0x1b5d]=_0x2a1bbf(0x412),_0x1944c4[_0x1944c4['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x2a1bbf(0x313),_0x1944c4[_0x1944c4[_0x2a1bbf(0x51b)]=0x2329]=_0x2a1bbf(0x51b),_0x1944c4[_0x1944c4[_0x2a1bbf(0x511)]=0x232a]=_0x2a1bbf(0x511),_0x1944c4[_0x1944c4['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x2a1bbf(0x4bb),_0x1944c4[_0x1944c4[_0x2a1bbf(0x3ef)]=0x232c]=_0x2a1bbf(0x3ef),_0x1944c4[_0x1944c4[_0x2a1bbf(0x40c)]=0x232d]=_0x2a1bbf(0x40c),_0x1944c4[_0x1944c4['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x2a1bbf(0x42c),_0x1944c4[_0x1944c4['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x2a1bbf(0x4bc),_0x1944c4[_0x1944c4['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x2a1bbf(0x3de),_0x1944c4[_0x1944c4['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x2a1bbf(0x4a8),_0x1944c4[_0x1944c4['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x1944c4))(ks||{}),B=(_0xcb7f10=>(_0xcb7f10[_0xcb7f10['UNIVER_UNKNOWN']=0x0]=_0x2a1bbf(0x1b3),_0xcb7f10[_0xcb7f10[_0x2a1bbf(0x2ca)]=0x1]=_0x2a1bbf(0x2ca),_0xcb7f10[_0xcb7f10['UNIVER_SHEET']=0x2]=_0x2a1bbf(0x26f),_0xcb7f10[_0xcb7f10[_0x2a1bbf(0x27d)]=0x3]=_0x2a1bbf(0x27d),_0xcb7f10[_0xcb7f10[_0x2a1bbf(0x543)]=0x4]=_0x2a1bbf(0x543),_0xcb7f10[_0xcb7f10[_0x2a1bbf(0x295)]=-0x1]=_0x2a1bbf(0x295),_0xcb7f10))(B||{}),I=(_0x405c70=>(_0x405c70[_0x405c70[_0x2a1bbf(0x213)]=0x0]=_0x2a1bbf(0x213),_0x405c70[_0x405c70[_0x2a1bbf(0x48f)]=0x1]=_0x2a1bbf(0x48f),_0x405c70[_0x405c70[_0x2a1bbf(0x41d)]=0x2]=_0x2a1bbf(0x41d),_0x405c70[_0x405c70[_0x2a1bbf(0x3c5)]=0x3]='LEAVE',_0x405c70[_0x405c70[_0x2a1bbf(0x23f)]=0x4]=_0x2a1bbf(0x23f),_0x405c70[_0x405c70['HEARTBEAT']=0x5]='HEARTBEAT',_0x405c70[_0x405c70[_0x2a1bbf(0x351)]=0x6]=_0x2a1bbf(0x351),_0x405c70[_0x405c70[_0x2a1bbf(0x295)]=-0x1]=_0x2a1bbf(0x295),_0x405c70))(I||{}),Ft=(_0x13bbdf=>(_0x13bbdf[_0x13bbdf['UNKNOWN_CODE']=0x0]=_0x2a1bbf(0x3e2),_0x13bbdf[_0x13bbdf['OK']=0x1]='OK',_0x13bbdf[_0x13bbdf[_0x2a1bbf(0x3d5)]=0x2]=_0x2a1bbf(0x3d5),_0x13bbdf[_0x13bbdf[_0x2a1bbf(0x295)]=-0x1]=_0x2a1bbf(0x295),_0x13bbdf))(Ft||{}),Bs=(_0x12a91c=>(_0x12a91c[_0x12a91c[_0x2a1bbf(0x392)]=0x0]='Undefined',_0x12a91c[_0x12a91c[_0x2a1bbf(0x467)]=0x1]='HttpImport',_0x12a91c[_0x12a91c[_0x2a1bbf(0x24b)]=0x2]=_0x2a1bbf(0x24b),_0x12a91c[_0x12a91c['UnitEmbedded']=0x3]=_0x2a1bbf(0x4f7),_0x12a91c[_0x12a91c['UnitSnapshot']=0x4]='UnitSnapshot',_0x12a91c[_0x12a91c[_0x2a1bbf(0x295)]=-0x1]=_0x2a1bbf(0x295),_0x12a91c))(Bs||{});const j=_0x2a1bbf(0x20a),jn={};function Hn(_0x20dda0){const _0x2889e5=_0x2a1bbf;var _0x1f78e7,_0x4f6d7e,_0x85fa79,_0x6a424e,_0x3025ed;const _0x1dfc6e=_0x20dda0['data'],_0x59021f=JSON[_0x2889e5(0x3df)](_0x1dfc6e);switch(_0x59021f[_0x2889e5(0x3f6)]){case I['HEARTBEAT']:case I[_0x2889e5(0x48f)]:{const _0x27b2c5=_0x59021f['infoRsp'];return{..._0x59021f,'data':_0x27b2c5,'cmd':_0x59021f[_0x2889e5(0x3f6)]};}case I['JOIN']:{const _0x412641=_0x59021f['joinRsp'];return{..._0x59021f,'data':_0x412641,'cmd':_0x59021f[_0x2889e5(0x3f6)]};}case I['RECV']:{const _0x2608c8=_0x59021f[_0x2889e5(0x369)];switch(_0x2608c8['eventID']){case _0x334d1e[_0x2889e5(0x2ec)]:return{..._0x59021f,'data':{..._0x2608c8,'data':(_0x1f78e7=_0x2608c8[_0x2889e5(0x1bf)])==null?void 0x0:_0x1f78e7['cs']},'cmd':_0x59021f['cmd']};case _0x334d1e[_0x2889e5(0x2ee)]:return{..._0x59021f,'data':{..._0x2608c8,'data':(_0x4f6d7e=_0x2608c8[_0x2889e5(0x2d6)])==null?void 0x0:_0x4f6d7e['cs']},'cmd':_0x59021f[_0x2889e5(0x3f6)]};case _0x334d1e[_0x2889e5(0x1d7)]:return{..._0x59021f,'data':{..._0x2608c8,'data':(_0x85fa79=_0x2608c8[_0x2889e5(0x3b9)])==null?void 0x0:_0x85fa79['cs']},'cmd':_0x59021f[_0x2889e5(0x3f6)]};case _0x334d1e[_0x2889e5(0x3cc)]:return{..._0x59021f,'data':{..._0x2608c8,'data':(_0x6a424e=_0x2608c8['csRejEvent'])==null?void 0x0:_0x6a424e['cs']},'cmd':_0x59021f[_0x2889e5(0x3f6)]};case _0x334d1e[_0x2889e5(0x50d)]:return{..._0x59021f,'data':{..._0x2608c8,'data':(_0x3025ed=_0x2608c8[_0x2889e5(0x306)])==null?void 0x0:_0x3025ed['cs']},'cmd':_0x59021f[_0x2889e5(0x3f6)]};case _0x334d1e[_0x2889e5(0x3fb)]:return{..._0x59021f,'data':{..._0x2608c8,'data':_0x2608c8[_0x2889e5(0x1e3)]},'cmd':_0x59021f['cmd']};case _0x334d1e[_0x2889e5(0x29f)]:return{..._0x59021f,'data':{..._0x2608c8,'data':_0x2608c8['joinEvent']},'cmd':_0x59021f[_0x2889e5(0x3f6)]};case _0x334d1e[_0x2889e5(0x529)]:return{..._0x59021f,'data':{..._0x2608c8,'data':_0x2608c8[_0x2889e5(0x1cc)]},'cmd':_0x59021f[_0x2889e5(0x3f6)]};case _0x334d1e[_0x2889e5(0x310)]:return{..._0x59021f,'data':{..._0x2608c8,'data':_0x2608c8[_0x2889e5(0x3ce)]},'cmd':_0x59021f[_0x2889e5(0x3f6)]};case _0x334d1e['LIVESHARE_FETCH_OPERATIONS']:case _0x334d1e[_0x2889e5(0x1b4)]:return{..._0x59021f,'data':{..._0x2608c8,'data':_0x2608c8[_0x2889e5(0x491)]},'cmd':_0x59021f[_0x2889e5(0x3f6)]};case _0x334d1e[_0x2889e5(0x39d)]:return{..._0x59021f,'data':{..._0x2608c8,'data':_0x2608c8['liveShareNewHost']},'cmd':_0x59021f['cmd']};case _0x334d1e[_0x2889e5(0x275)]:return{..._0x59021f,'data':_0x2608c8,'cmd':_0x59021f[_0x2889e5(0x3f6)]};case _0x334d1e[_0x2889e5(0x2fe)]:return{..._0x59021f,'data':{..._0x2608c8,'data':_0x2608c8['commentUpdateEvent']},'cmd':_0x59021f[_0x2889e5(0x3f6)]};case _0x334d1e[_0x2889e5(0x541)]:return{..._0x59021f,'data':{..._0x2608c8,'data':_0x2608c8[_0x2889e5(0x354)]},'cmd':_0x59021f[_0x2889e5(0x3f6)]};case _0x334d1e[_0x2889e5(0x4b7)]:return{..._0x59021f,'data':{..._0x2608c8,'data':_0x2608c8[_0x2889e5(0x399)]},'cmd':_0x59021f[_0x2889e5(0x3f6)]};default:return _0x59021f;}}default:return _0x59021f;}}function xn(_0x40f9df){const _0x1bca21=_0x2a1bbf;switch(_0x40f9df[_0x1bca21(0x3f6)]){case I[_0x1bca21(0x4d7)]:case I['HELLO']:return JSON[_0x1bca21(0x397)]({'cmd':_0x40f9df[_0x1bca21(0x3f6)],'routeKey':_0x40f9df['routeKey']});case I['INGEST']:{let _0x10bec9;switch(_0x40f9df[_0x1bca21(0x500)][_0x1bca21(0x3a3)]){case _0x334d1e[_0x1bca21(0x3fb)]:{_0x10bec9={'eventID':_0x334d1e[_0x1bca21(0x3fb)],'updateCursorEvent':_0x40f9df['data'][_0x1bca21(0x500)]};break;}case _0x334d1e[_0x1bca21(0x529)]:{_0x10bec9={'eventID':_0x334d1e['USERS_LEAVE'],'leaveEvent':_0x40f9df[_0x1bca21(0x500)][_0x1bca21(0x500)]};break;}case _0x334d1e['USERS_ENTER']:{_0x10bec9={'eventID':_0x334d1e[_0x1bca21(0x29f)],'joinEvent':_0x40f9df['data'][_0x1bca21(0x500)]};break;}case _0x334d1e['LIVESHARE_NEW_HOST']:{_0x10bec9={'eventID':_0x334d1e[_0x1bca21(0x310)],'liveShareNewHost':_0x40f9df[_0x1bca21(0x500)][_0x1bca21(0x500)]};break;}case _0x334d1e[_0x1bca21(0x1b4)]:{_0x10bec9={'eventID':_0x334d1e[_0x1bca21(0x1b4)],'liveShareOperation':_0x40f9df[_0x1bca21(0x500)][_0x1bca21(0x500)]};break;}case _0x334d1e[_0x1bca21(0x39d)]:{_0x10bec9={'eventID':_0x334d1e['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x40f9df['data'][_0x1bca21(0x500)]};break;}case _0x334d1e[_0x1bca21(0x315)]:{_0x10bec9={'eventID':_0x334d1e['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x40f9df[_0x1bca21(0x500)][_0x1bca21(0x500)]};break;}case _0x334d1e[_0x1bca21(0x46a)]:{_0x10bec9={'eventID':_0x334d1e['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x10bec9={'eventID':_0x40f9df[_0x1bca21(0x500)]['eventID']};}return JSON['stringify']({'cmd':_0x40f9df['cmd'],'routeKey':_0x40f9df[_0x1bca21(0x2db)],'collaMsg':_0x10bec9});}case I['JOIN']:return JSON[_0x1bca21(0x397)]({'cmd':_0x40f9df[_0x1bca21(0x3f6)],'routeKey':_0x40f9df['routeKey'],'joinReq':_0x40f9df['data']});case I['LEAVE']:return JSON[_0x1bca21(0x397)]({'cmd':_0x40f9df['cmd'],'routeKey':_0x40f9df[_0x1bca21(0x2db)],'leaveReq':_0x40f9df[_0x1bca21(0x500)]});default:throw new Error(_0x1bca21(0x341));}}var kn=Object[_0x2a1bbf(0x4e8)],Bn=Object[_0x2a1bbf(0x2ce)],Vn=(_0x5f4c76,_0x5a116d,_0x40339f,_0x3f5517)=>{for(var _0x5938a8=_0x3f5517>0x1?void 0x0:_0x3f5517?Bn(_0x5a116d,_0x40339f):_0x5a116d,_0x1ba7e5=_0x5f4c76['length']-0x1,_0xf14e7;_0x1ba7e5>=0x0;_0x1ba7e5--)(_0xf14e7=_0x5f4c76[_0x1ba7e5])&&(_0x5938a8=(_0x3f5517?_0xf14e7(_0x5a116d,_0x40339f,_0x5938a8):_0xf14e7(_0x5938a8))||_0x5938a8);return _0x3f5517&&_0x5938a8&&kn(_0x5a116d,_0x40339f,_0x5938a8),_0x5938a8;},De=(_0x5a1add,_0x217320)=>(_0xf5cd5e,_0x282978)=>_0x217320(_0xf5cd5e,_0x282978,_0x5a1add);const Vs=_0x211912(_0x2a1bbf(0x472));function Fn(_0xf20bba,_0x15c842,_0x41d85e){const _0x4951c8=_0x2a1bbf;return _0xf20bba+'/'+_0x15c842+_0x4951c8(0x336)+_0x41d85e+_0x4951c8(0x1fe);}let bt=class extends _0x33be34{constructor(_0x3146b2,_0xe2ff5c,_0x4fd214,_0x3cb969,_0x7a1d83){const _0x421108=_0x2a1bbf;super(),this['_http']=_0x3146b2,this[_0x421108(0x49c)]=_0xe2ff5c,this[_0x421108(0x536)]=_0x4fd214,this[_0x421108(0x33c)]=_0x3cb969,this[_0x421108(0x4ff)]=_0x7a1d83;}['createSocket'](_0x5b40af){const _0x57f471=_0x2a1bbf,_0x80eaf4=this[_0x57f471(0x49c)][_0x57f471(0x2f2)](_0x5b40af);if(!_0x80eaf4)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x6990d=new _0x3f893b(),_0x24eb8d=new _0x3c1bb0();_0x6990d[_0x57f471(0x20f)](_0x80eaf4['close$'][_0x57f471(0x413)](_0x4f7ff7=>_0x24eb8d[_0x57f471(0x2eb)](_0x4f7ff7))),_0x6990d['add'](_0x4817bf(()=>_0x24eb8d[_0x57f471(0x31b)]()));const _0x521e58=new _0x3c1bb0();_0x6990d[_0x57f471(0x20f)](_0x80eaf4[_0x57f471(0x378)][_0x57f471(0x413)](_0x4f7c3a=>_0x521e58[_0x57f471(0x2eb)](_0x4f7c3a))),_0x6990d[_0x57f471(0x20f)](_0x4817bf(()=>_0x521e58[_0x57f471(0x31b)]()));const _0x1c43fb=new _0x3c1bb0();_0x6990d['add'](_0x80eaf4['message$'][_0x57f471(0x413)](_0x42f0cc=>{const _0x2b21b1=_0x57f471,_0x40411f=Hn(_0x42f0cc);_0x1c43fb[_0x2b21b1(0x2eb)](_0x40411f);})),_0x6990d['add'](_0x4817bf(()=>_0x1c43fb[_0x57f471(0x31b)]()));let _0x476f23;const _0x4b0614=()=>{const _0x437350=_0x57f471;_0x521e58[_0x437350(0x2eb)](new Event(_0x437350(0x489))),_0x24eb8d[_0x437350(0x2eb)](new CloseEvent(_0x437350(0x489))),_0x476f23[_0x437350(0x426)]();};return _0x476f23={'memberID':'','close$':_0x24eb8d[_0x57f471(0x251)](),'error$':_0x521e58[_0x57f471(0x251)](),'open$':_0x80eaf4['open$'],'message$':_0x1c43fb['asObservable'](),'send':_0x13976d=>{const _0xd52c31=_0x57f471;if(_0x13976d['cmd']===I[_0xd52c31(0x23f)]){if(_0x13976d['data'][_0xd52c31(0x3a3)]===_0x334d1e[_0xd52c31(0x2a5)]){this['_submitChangeset'](_0x476f23,_0x13976d[_0xd52c31(0x500)])['catch'](_0x3e0124=>{const _0x3173c7=_0xd52c31;this[_0x3173c7(0x33c)][_0x3173c7(0x2c6)](_0x3e0124),_0x4b0614();});return;}if(_0x13976d['data'][_0xd52c31(0x3a3)]===_0x334d1e[_0xd52c31(0x227)]){const _0x5c095f=_0x13976d[_0xd52c31(0x500)];this[_0xd52c31(0x50e)](_0x5c095f)[_0xd52c31(0x3dd)](_0x3ccd84=>{const _0x2578b0=_0xd52c31;_0x1c43fb[_0x2578b0(0x2eb)]({'cmd':I[_0x2578b0(0x351)],'code':Ft['OK'],'routeKey':_0x5c095f[_0x2578b0(0x500)]['unitID'],'routeType':'','data':{'eventID':_0x334d1e[_0x2578b0(0x37f)],'data':{'changesets':_0x3ccd84}}});})[_0xd52c31(0x390)](_0x20e116=>{const _0x36388c=_0xd52c31;this['_logService'][_0x36388c(0x2c6)](_0x20e116),_0x4b0614();});return;}}_0x80eaf4[_0xd52c31(0x1e4)](xn(_0x13976d));},'close':()=>{const _0x26a914=_0x57f471;_0x80eaf4['close'](),_0x6990d[_0x26a914(0x1d0)]();}},_0x476f23;}async[_0x2a1bbf(0x21a)](_0x120795,_0xfd7ad1){const _0x218c7b=_0x2a1bbf;var _0x1f7662,_0x50af39;const {unitType:_0x214c94,unitID:_0x116d43,changeset:_0x58094f}=_0xfd7ad1[_0x218c7b(0x500)],_0x46f6ae={'unitID':_0x116d43,'memberID':_0x120795[_0x218c7b(0x43b)],'type':_0x214c94,'changeset':_0x28acae(_0x58094f)},_0x302ef7=this[_0x218c7b(0x536)][_0x218c7b(0x47c)](An),_0x2d5ef4=this[_0x218c7b(0x536)][_0x218c7b(0x47c)](j),_0x437182=Fn((_0x50af39=(_0x1f7662=_0x2d5ef4==null?void 0x0:_0x2d5ef4[_0x218c7b(0x1e1)])!=null?_0x1f7662:_0x302ef7)!=null?_0x50af39:Mn,_0x214c94,_0x116d43);try{await this['_http'][_0x218c7b(0x252)](_0x437182,{'body':_0x46f6ae});}catch(_0x16a22d){throw this[_0x218c7b(0x33c)][_0x218c7b(0x2c6)]('[CollaborationSession]',_0x218c7b(0x1d3)),_0x16a22d;}}async[_0x2a1bbf(0x50e)](_0x39a9db){const _0x15129e=_0x2a1bbf,{unitID:_0x54f5fd,from:_0x558006,to:_0x4e742f,unitType:_0xbd416a}=_0x39a9db['data'];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x54f5fd,'type':_0xbd416a,'from':_0x558006,'to':_0x4e742f}))[_0x15129e(0x4e1)];}};bt=Vn([De(0x0,_0x55fbd9(_0x1af781)),De(0x1,_0x55fbd9(_0x4b68b1)),De(0x2,_0x39b511),De(0x3,_0x2e1f3f),De(0x4,_0x2dbfcb)],bt);const Wn='collaboration_new_changeset';function Gn(_0x51b132){const _0x3008b5=_0x2a1bbf;return JSON[_0x3008b5(0x397)](_0x51b132)[_0x3008b5(0x1bd)];}class Fs{constructor(){const _0x312a68=_0x2a1bbf;l(this,'_commentUpdate$',new _0x3c1bb0()),l(this,_0x312a68(0x3b8),this[_0x312a68(0x4d2)]['asObservable']());}[_0x2a1bbf(0x23c)](_0x16d23d){const _0x1aad5f=_0x2a1bbf;this[_0x1aad5f(0x4d2)]['next'](_0x16d23d);}}var Yn=Object[_0x2a1bbf(0x4e8)],Kn=Object[_0x2a1bbf(0x2ce)],Xn=(_0x438922,_0x35967c,_0x33fb92,_0x13b77e)=>{const _0x2cdd0c=_0x2a1bbf;for(var _0x202b3d=_0x13b77e>0x1?void 0x0:_0x13b77e?Kn(_0x35967c,_0x33fb92):_0x35967c,_0x264460=_0x438922[_0x2cdd0c(0x1bd)]-0x1,_0x3ff6c9;_0x264460>=0x0;_0x264460--)(_0x3ff6c9=_0x438922[_0x264460])&&(_0x202b3d=(_0x13b77e?_0x3ff6c9(_0x35967c,_0x33fb92,_0x202b3d):_0x3ff6c9(_0x202b3d))||_0x202b3d);return _0x13b77e&&_0x202b3d&&Yn(_0x35967c,_0x33fb92,_0x202b3d),_0x202b3d;},cs=(_0x545257,_0x434a22)=>(_0xf2b0f2,_0x6f7825)=>_0x434a22(_0xf2b0f2,_0x6f7825,_0x545257);let _e=class extends _0x33be34{constructor(_0x1bbf3a,_0x14c87c){const _0x36cc74=_0x2a1bbf;super(),l(this,'_roomMembers',new Map()),(this[_0x36cc74(0x4b4)]=_0x1bbf3a,this['_userManagerService']=_0x14c87c,this[_0x36cc74(0x394)](_0x4817bf(_0xa702ce(this[_0x36cc74(0x4b4)]['getTypeOfUnitDisposed$'](_0x338b41[_0x36cc74(0x26f)])[_0x36cc74(0x497)](_0x44f82f(_0x2298a0=>_0x2298a0[_0x36cc74(0x32e)]())),this[_0x36cc74(0x4b4)]['getTypeOfUnitDisposed$'](_0x338b41[_0x36cc74(0x2ca)])[_0x36cc74(0x497)](_0x44f82f(_0x1f24f9=>_0x1f24f9[_0x36cc74(0x32e)]())),this[_0x36cc74(0x4b4)]['getTypeOfUnitDisposed$'](_0x338b41['UNIVER_SLIDE'])[_0x36cc74(0x497)](_0x44f82f(_0x6ce66d=>_0x6ce66d[_0x36cc74(0x32e)]())))['subscribe'](_0x4f6076=>this['_removeRoom'](_0x4f6076)))));}['setCurrentUser'](_0x3f330e){const _0x49969e=_0x2a1bbf;this[_0x49969e(0x438)][_0x49969e(0x226)](_0x3f330e);}[_0x2a1bbf(0x3eb)](){const _0x47ce8f=_0x2a1bbf;return this[_0x47ce8f(0x438)][_0x47ce8f(0x3eb)]();}[_0x2a1bbf(0x411)](_0xb3459,_0x27437e){const _0x280145=_0x2a1bbf;let _0x36b712=this[_0x280145(0x4bf)][_0x280145(0x380)](_0xb3459);_0x36b712||(_0x36b712=new qn(),this[_0x280145(0x4bf)][_0x280145(0x279)](_0xb3459,_0x36b712)),_0x36b712[_0x280145(0x411)](_0x27437e);}[_0x2a1bbf(0x22f)](_0x10b87e,_0x24fc99){const _0x12a5ec=_0x2a1bbf,_0x3eea12=this[_0x12a5ec(0x4bf)][_0x12a5ec(0x380)](_0x10b87e);_0x3eea12&&_0x3eea12['removeMember'](_0x24fc99);}[_0x2a1bbf(0x425)](_0x4ef7a4){const _0x5166f1=_0x2a1bbf;return this[_0x5166f1(0x4bf)]['get'](_0x4ef7a4);}[_0x2a1bbf(0x503)](_0xb0d6ce,_0x9e3d1){const _0x22464b=_0x2a1bbf,_0x1aabec=this['_roomMembers'][_0x22464b(0x380)](_0xb0d6ce);if(_0x1aabec)return _0x1aabec[_0x22464b(0x503)](_0x9e3d1);}['_removeRoom'](_0x2d7ac6){const _0x3fe863=_0x2a1bbf,_0x32d69c=this[_0x3fe863(0x4bf)]['get'](_0x2d7ac6);_0x32d69c&&(_0x32d69c[_0x3fe863(0x1d0)](),this[_0x3fe863(0x4bf)][_0x3fe863(0x360)](_0x2d7ac6));}['dispose'](){const _0x5a2eaa=_0x2a1bbf;this[_0x5a2eaa(0x4bf)][_0x5a2eaa(0x28a)](_0x295a1a=>_0x295a1a['dispose']()),this[_0x5a2eaa(0x4bf)][_0x5a2eaa(0x21e)]();}};_e=Xn([cs(0x0,_0x23793a),cs(0x1,_0x55fbd9(_0x2cb297))],_e);class qn extends _0x33be34{constructor(){super(...arguments),l(this,'_members',new Map());}['dispose'](){const _0x5e8765=_0x2a1bbf;this[_0x5e8765(0x1b0)][_0x5e8765(0x21e)]();}[_0x2a1bbf(0x411)](_0x56caa7){const _0x543b4c=_0x2a1bbf;this[_0x543b4c(0x1b0)][_0x543b4c(0x279)](_0x56caa7['memberID'],_0x56caa7);}['removeMember'](_0x55f9e7){const _0x26a97e=_0x2a1bbf;this[_0x26a97e(0x1b0)][_0x26a97e(0x360)](_0x55f9e7);}[_0x2a1bbf(0x503)](_0x28622a){const _0x411371=_0x2a1bbf;return this['_members'][_0x411371(0x380)](_0x28622a);}[_0x2a1bbf(0x2e7)](){const _0x17cd24=_0x2a1bbf;return Array[_0x17cd24(0x2f1)](this['_members'][_0x17cd24(0x2cc)]());}}var Jn=Object[_0x2a1bbf(0x4e8)],zn=Object[_0x2a1bbf(0x2ce)],Zn=(_0x1905cf,_0x3cd52f,_0x79aed5,_0x56d214)=>{for(var _0x31f496=_0x56d214>0x1?void 0x0:_0x56d214?zn(_0x3cd52f,_0x79aed5):_0x3cd52f,_0x42c51f=_0x1905cf['length']-0x1,_0x415743;_0x42c51f>=0x0;_0x42c51f--)(_0x415743=_0x1905cf[_0x42c51f])&&(_0x31f496=(_0x56d214?_0x415743(_0x3cd52f,_0x79aed5,_0x31f496):_0x415743(_0x31f496))||_0x31f496);return _0x56d214&&_0x31f496&&Jn(_0x3cd52f,_0x79aed5,_0x31f496),_0x31f496;},Z=(_0x1f7cff,_0x28b4fb)=>(_0x2ce49f,_0x5599b6)=>_0x28b4fb(_0x2ce49f,_0x5599b6,_0x1f7cff),X=(_0x498099=>(_0x498099[_0x498099[_0x2a1bbf(0x25d)]=0x0]=_0x2a1bbf(0x25d),_0x498099[_0x498099[_0x2a1bbf(0x52d)]=0x1]=_0x2a1bbf(0x52d),_0x498099[_0x498099['OFFLINE']=0x2]=_0x2a1bbf(0x36b),_0x498099[_0x498099[_0x2a1bbf(0x435)]=0x3]=_0x2a1bbf(0x435),_0x498099))(X||{});let Tt=class extends _0x5b2156{constructor(_0x20121d,_0x950f65,_0x4ff702,_0xf489e4,_0x5d9f9d,_0x2a1cf6,_0x38b6d0,_0x4ebf36,_0x3ff67a,_0xe04ffd){const _0x3125b9=_0x2a1bbf;super(),l(this,_0x3125b9(0x359),new _0x5bdcda(0x0)),l(this,_0x3125b9(0x4ee),this['_sessionStatus$']['asObservable']()),l(this,'_event$',new _0x3c1bb0()),l(this,_0x3125b9(0x49e),this[_0x3125b9(0x405)][_0x3125b9(0x251)]()),l(this,_0x3125b9(0x208)),l(this,'_socketMessageSubscription'),l(this,_0x3125b9(0x2a0)),l(this,_0x3125b9(0x2e6),!0x1),l(this,_0x3125b9(0x1ec),null),(this[_0x3125b9(0x353)]=_0x20121d,this['_logService']=_0x4ff702,this[_0x3125b9(0x1de)]=_0xf489e4,this[_0x3125b9(0x247)]=_0x5d9f9d,this[_0x3125b9(0x536)]=_0x2a1cf6,this[_0x3125b9(0x442)]=_0x38b6d0,this[_0x3125b9(0x3a1)]=_0x4ebf36,this[_0x3125b9(0x21b)]=_0x3ff67a,this[_0x3125b9(0x1d5)]=_0xe04ffd,this[_0x3125b9(0x2e6)]=!!this[_0x3125b9(0x1d5)],_0x950f65['pipe'](_0x3ca91c(this['dispose$']))[_0x3125b9(0x413)](_0x2b8367=>{const _0x328d09=_0x3125b9;var _0x148609;typeof _0x2b8367>'u'||(this['_socket']=_0x2b8367,_0x2b8367?(this[_0x328d09(0x289)](_0x2b8367),this[_0x328d09(0x238)]=_0x2b8367['message$'][_0x328d09(0x413)](_0x3d8079=>{const _0x2d7bd5=_0x328d09;_0x3d8079[_0x2d7bd5(0x2db)]===this[_0x2d7bd5(0x353)]&&this[_0x2d7bd5(0x26a)](_0x3d8079);})):(this[_0x328d09(0x340)](),this[_0x328d09(0x359)][_0x328d09(0x2eb)](0x2),(_0x148609=this['_socketMessageSubscription'])==null||_0x148609[_0x328d09(0x538)](),this[_0x328d09(0x238)]=null));}),this[_0x3125b9(0x394)](this[_0x3125b9(0x1de)][_0x3125b9(0x4c8)](()=>{const _0x162bb4=_0x3125b9;var _0x5d7850;(_0x5d7850=this['_socket'])==null||_0x5d7850[_0x162bb4(0x1e4)]({'cmd':I[_0x162bb4(0x3c5)],'data':{'roomID':this[_0x162bb4(0x353)]}});})));}get['sessionStatus'](){const _0x53b044=_0x2a1bbf;return this[_0x53b044(0x359)][_0x53b044(0x53c)]();}[_0x2a1bbf(0x32c)](){const _0x1cd646=_0x2a1bbf;var _0x59997d,_0x4a605c;return(_0x4a605c=(_0x59997d=this['_socket'])==null?void 0x0:_0x59997d[_0x1cd646(0x43b)])!=null?_0x4a605c:null;}[_0x2a1bbf(0x1d0)](){const _0x14d401=_0x2a1bbf;super[_0x14d401(0x1d0)](),this[_0x14d401(0x3f3)]['next'](),this[_0x14d401(0x3f3)][_0x14d401(0x31b)]();}[_0x2a1bbf(0x426)](){const _0x1d0cf0=_0x2a1bbf;var _0x90b160,_0x4120a0;this['_throwTelemetryCollaborationNewChangeset'](),(_0x90b160=this[_0x1d0cf0(0x208)])==null||_0x90b160[_0x1d0cf0(0x1e4)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x1d0cf0(0x353)]}}),(_0x4120a0=this['_socket'])==null||_0x4120a0[_0x1d0cf0(0x426)](),this['_event$'][_0x1d0cf0(0x31b)](),this[_0x1d0cf0(0x359)][_0x1d0cf0(0x31b)](),this[_0x1d0cf0(0x1d0)]();}[_0x2a1bbf(0x26a)](_0x31c63e){const _0xdb6d6e=_0x2a1bbf;_0x31c63e[_0xdb6d6e(0x3f6)]===I[_0xdb6d6e(0x41d)]?this['_onJoinRoomEvent'](_0x31c63e):_0x31c63e['cmd']===I[_0xdb6d6e(0x351)]&&this['_onRecvEvent'](_0x31c63e);}[_0x2a1bbf(0x289)](_0x53b345){const _0x15c42c=_0x2a1bbf;this[_0x15c42c(0x359)][_0x15c42c(0x2eb)](0x1),_0x53b345['send']({'cmd':I[_0x15c42c(0x41d)],'routeKey':this[_0x15c42c(0x353)],'routeType':'','data':{'rooms':[{'roomID':this[_0x15c42c(0x353)]}]}});}[_0x2a1bbf(0x1cd)](_0x716fb8){const _0x5d12a4=_0x2a1bbf;var _0x32ee20;if(_0x716fb8['code']===Ft[_0x5d12a4(0x3d5)]){this[_0x5d12a4(0x247)][_0x5d12a4(0x43a)]({'type':_0xc5184d[_0x5d12a4(0x361)],'content':this['_localeService']['t'](_0x5d12a4(0x291))}),this[_0x5d12a4(0x359)][_0x5d12a4(0x2eb)](0x2);return;}this[_0x5d12a4(0x359)][_0x5d12a4(0x2eb)](0x3);const _0xe9bd05=(_0x32ee20=_0x716fb8['data'][_0x5d12a4(0x34f)][this[_0x5d12a4(0x353)]])==null?void 0x0:_0x32ee20[_0x5d12a4(0x3ed)];_0xe9bd05&&_0xe9bd05[_0x5d12a4(0x28a)](_0x1c4e33=>this['_memberService'][_0x5d12a4(0x411)](this[_0x5d12a4(0x353)],_0x1c4e33));}['_onRecvEvent'](_0x453509){const _0x15d1e9=_0x2a1bbf;try{const _0x1cb605=_0x453509['data'];switch(_0x1cb605[_0x15d1e9(0x3a3)]){case _0x334d1e['USERS_ENTER']:this[_0x15d1e9(0x448)](_0x1cb605),this[_0x15d1e9(0x405)][_0x15d1e9(0x2eb)](_0x1cb605);break;case _0x334d1e[_0x15d1e9(0x529)]:this[_0x15d1e9(0x441)](_0x1cb605),this['_event$'][_0x15d1e9(0x2eb)](_0x1cb605);break;case _0x334d1e[_0x15d1e9(0x2ee)]:case _0x334d1e['CHANGESET_SHOULD_RETRY']:this[_0x15d1e9(0x52f)](),this[_0x15d1e9(0x50b)](),this[_0x15d1e9(0x405)][_0x15d1e9(0x2eb)](_0x1cb605);break;case _0x334d1e[_0x15d1e9(0x275)]:this['_logService']['error'](_0x15d1e9(0x40f)+JSON['stringify'](_0x1cb605)),this[_0x15d1e9(0x405)][_0x15d1e9(0x2eb)](_0x1cb605);break;case _0x334d1e[_0x15d1e9(0x2fe)]:this[_0x15d1e9(0x21b)][_0x15d1e9(0x23c)](_0x1cb605[_0x15d1e9(0x500)]),this[_0x15d1e9(0x405)][_0x15d1e9(0x2eb)](_0x1cb605);break;default:this[_0x15d1e9(0x405)][_0x15d1e9(0x2eb)](_0x1cb605);}}catch(_0x3ff7fe){this['_logService'][_0x15d1e9(0x2c6)](_0x3ff7fe,_0x453509);}}[_0x2a1bbf(0x448)](_0x57c427){const _0xa5baae=_0x2a1bbf;this[_0xa5baae(0x3a1)]['updateMember'](this[_0xa5baae(0x353)],_0x57c427['data']);}[_0x2a1bbf(0x441)](_0x491a52){const _0xefe1fb=_0x2a1bbf;this[_0xefe1fb(0x3a1)][_0xefe1fb(0x22f)](this['_unitID'],_0x491a52['data'][_0xefe1fb(0x43b)]);}async['send'](_0xa5bcf,_0x471d57){const _0x177dea=_0x2a1bbf;if(this['sessionStatus']!==0x3||!this[_0x177dea(0x208)])throw new Error(_0x177dea(0x415));try{_0xa5bcf[_0x177dea(0x3a3)]===_0x334d1e['SUBMIT_CHANGESET']&&(this[_0x177dea(0x1ae)](),this[_0x177dea(0x203)](_0xa5bcf)),this[_0x177dea(0x208)][_0x177dea(0x1e4)]({'cmd':I[_0x177dea(0x23f)],'routeKey':_0x471d57,'routeType':'','data':_0xa5bcf});}catch(_0x320545){this[_0x177dea(0x33c)][_0x177dea(0x2c6)](_0x320545);}}[_0x2a1bbf(0x1ae)](){const _0x5c5699=_0x2a1bbf;var _0x531461;this[_0x5c5699(0x2a0)]=window['setTimeout'](()=>{const _0x1dff52=_0x5c5699;this[_0x1dff52(0x2a0)]=null,this['_messageService']['show']({'type':_0xc5184d[_0x1dff52(0x4a3)],'content':this[_0x1dff52(0x442)]['t'](_0x1dff52(0x446))});},(_0x531461=this['_configService'][_0x5c5699(0x47c)](Hs))!=null?_0x531461:xs);}[_0x2a1bbf(0x50b)](){const _0x2924bc=_0x2a1bbf;this[_0x2924bc(0x2a0)]&&(clearTimeout(this[_0x2924bc(0x2a0)]),this['_collaborationTimeoutTimer']=null);}[_0x2a1bbf(0x203)](_0x16686c){const _0x28975c=_0x2a1bbf;if(!this[_0x28975c(0x2e6)])return;const {data:_0x5dbd09}=_0x16686c,{unitID:_0x332fd9,changeset:_0x132c6a}=_0x5dbd09,{mutations:_0x5869a8,type:_0xfe1410}=_0x132c6a;this[_0x28975c(0x1ec)]={'unitId':_0x332fd9,'type':_0xfe1410,'startTime':performance[_0x28975c(0x2ef)](),'stopTime':0x0,'duration':0x0,'size':Gn(_0x5869a8)};}[_0x2a1bbf(0x52f)](){const _0x581771=_0x2a1bbf;if(this[_0x581771(0x2e6)]){if(!this[_0x581771(0x1ec)]){this[_0x581771(0x33c)][_0x581771(0x2c6)](_0x581771(0x3f8),_0x581771(0x4c7));return;}this[_0x581771(0x1ec)][_0x581771(0x3cb)]=performance[_0x581771(0x2ef)](),this[_0x581771(0x1ec)][_0x581771(0x41c)]=this[_0x581771(0x1ec)][_0x581771(0x3cb)]-this[_0x581771(0x1ec)][_0x581771(0x515)],this['_telemetryService'][_0x581771(0x211)](Wn,this[_0x581771(0x1ec)]),this[_0x581771(0x1ec)]=null;}}[_0x2a1bbf(0x340)](){this['_telemetryInfo']=null;}};Tt=Zn([Z(0x2,_0x2e1f3f),Z(0x3,_0x232eba),Z(0x4,_0x48cba6),Z(0x5,_0x39b511),Z(0x6,_0x55fbd9(_0x5d60a9)),Z(0x7,_0x55fbd9(_e)),Z(0x8,_0x55fbd9(Fs)),Z(0x9,_0x318244(_0x33dd51))],Tt);var Qn=Object[_0x2a1bbf(0x4e8)],er=Object[_0x2a1bbf(0x2ce)],tr=(_0x58d61c,_0x1e5dc0,_0x444501,_0x1b5af2)=>{const _0x5a7ff9=_0x2a1bbf;for(var _0x1c185c=_0x1b5af2>0x1?void 0x0:_0x1b5af2?er(_0x1e5dc0,_0x444501):_0x1e5dc0,_0x42a1d5=_0x58d61c[_0x5a7ff9(0x1bd)]-0x1,_0x56fe79;_0x42a1d5>=0x0;_0x42a1d5--)(_0x56fe79=_0x58d61c[_0x42a1d5])&&(_0x1c185c=(_0x1b5af2?_0x56fe79(_0x1e5dc0,_0x444501,_0x1c185c):_0x56fe79(_0x1c185c))||_0x1c185c);return _0x1b5af2&&_0x1c185c&&Qn(_0x1e5dc0,_0x444501,_0x1c185c),_0x1c185c;},Se=(_0x4535d8,_0x5d6bb2)=>(_0x229136,_0x1d4374)=>_0x5d6bb2(_0x229136,_0x1d4374,_0x4535d8);let ue=class extends _0x33be34{constructor(_0x94ab2e,_0x1f4774,_0x15acc9,_0x13a49d,_0x5d285c,_0x183d7e){const _0x3f4617=_0x2a1bbf;super(),l(this,'_socket$',new _0x5bdcda(void 0x0)),l(this,_0x3f4617(0x514),this[_0x3f4617(0x44f)][_0x3f4617(0x251)]()),l(this,'_candidateSocket',null),l(this,'_sessions',new Map()),l(this,_0x3f4617(0x209),new _0x5bdcda(X[_0x3f4617(0x25d)])),l(this,_0x3f4617(0x2b7),this[_0x3f4617(0x209)]['asObservable']()),l(this,_0x3f4617(0x4c0),!0x1),l(this,_0x3f4617(0x4f9)),l(this,'_retryCount',0x0),l(this,_0x3f4617(0x42a)),l(this,'_timeoutTimer'),(this[_0x3f4617(0x4ac)]=_0x94ab2e,this['_localeService']=_0x1f4774,this[_0x3f4617(0x247)]=_0x15acc9,this['_logService']=_0x13a49d,this['_configService']=_0x5d285c,this[_0x3f4617(0x519)]=_0x183d7e,this[_0x3f4617(0x50a)]());}get[_0x2a1bbf(0x208)](){const _0x24a8cb=_0x2a1bbf;return this[_0x24a8cb(0x44f)][_0x24a8cb(0x53c)]();}['_initEventListeners'](){const _0x17f96e=_0x2a1bbf;this[_0x17f96e(0x3c6)](),this[_0x17f96e(0x35e)]();}[_0x2a1bbf(0x1d0)](){const _0x547411=_0x2a1bbf;super[_0x547411(0x1d0)](),this[_0x547411(0x2b2)]['forEach'](_0x3e19e3=>_0x3e19e3[_0x547411(0x1d0)]()),this[_0x547411(0x2b2)][_0x547411(0x21e)](),this[_0x547411(0x209)][_0x547411(0x31b)]();}async['requireSession'](_0x3a6ee1){const _0x237ec9=_0x2a1bbf;if(this[_0x237ec9(0x2b2)][_0x237ec9(0x220)](_0x3a6ee1))return this[_0x237ec9(0x2b2)]['get'](_0x3a6ee1);this[_0x237ec9(0x2b5)]();const _0x2c7525=this[_0x237ec9(0x4ac)][_0x237ec9(0x27e)](Tt,_0x3a6ee1,this[_0x237ec9(0x44f)]['asObservable']());return this[_0x237ec9(0x2b2)][_0x237ec9(0x279)](_0x3a6ee1,_0x2c7525),_0x2c7525;}['closeSession'](_0x179483){const _0x3357f6=_0x2a1bbf;var _0x39761a;const _0x278882=this[_0x3357f6(0x2b2)][_0x3357f6(0x380)](_0x179483);_0x278882&&(this['_sessions'][_0x3357f6(0x360)](_0x179483),_0x278882['close']()),this[_0x3357f6(0x2b2)]['size']||(_0x39761a=this[_0x3357f6(0x208)])==null||_0x39761a['close']();}['reconnect'](){const _0x5f077f=_0x2a1bbf;this[_0x5f077f(0x3da)]=0x0,this[_0x5f077f(0x4f9)]!=null&&(clearTimeout(this[_0x5f077f(0x4f9)]),this[_0x5f077f(0x4f9)]=null),this[_0x5f077f(0x388)]();}[_0x2a1bbf(0x2de)](){const _0x222443=_0x2a1bbf;var _0x1150a7,_0x21c6b4;const _0x598b2f=this[_0x222443(0x536)][_0x222443(0x47c)](Tn),_0x141a38=this['_configService'][_0x222443(0x47c)](j),_0x1cb9b1=(_0x21c6b4=(_0x1150a7=_0x141a38==null?void 0x0:_0x141a38['collabWebSocketUrl'])!=null?_0x1150a7:_0x598b2f)!=null?_0x21c6b4:Rn,_0x38e39f=this['_socketService'][_0x222443(0x2f2)](_0x1cb9b1);return this[_0x222443(0x3cd)]=_0x38e39f,_0x38e39f;}['_tryEnsureSocket'](){const _0x4ddacc=_0x2a1bbf;var _0x5105a3,_0x19f826;try{const _0x52f0d7=(_0x19f826=(_0x5105a3=this['_socket'])!=null?_0x5105a3:this[_0x4ddacc(0x3cd)])!=null?_0x19f826:this['_createSocket']();if(_0x52f0d7){const _0x17685c=_0x52f0d7[_0x4ddacc(0x1e4)];_0x52f0d7[_0x4ddacc(0x1e4)]=_0x39dc39=>(this['_rescheduleHeartbeat'](),_0x17685c[_0x4ddacc(0x1bb)](_0x52f0d7,[_0x39dc39])),_0x52f0d7[_0x4ddacc(0x2f7)][_0x4ddacc(0x413)](_0x52ede1=>this['_onMessage'](_0x52f0d7,_0x52ede1)),_0x52f0d7['error$']['pipe'](_0x1be43b(0x1))[_0x4ddacc(0x413)](_0x37edd6=>this[_0x4ddacc(0x33c)][_0x4ddacc(0x2c6)](_0x4ddacc(0x2a1),_0x37edd6)),_0x52f0d7['open$']['pipe'](_0x1be43b(0x1))['subscribe'](()=>{const _0x27a020=_0x4ddacc;this[_0x27a020(0x35a)](_0x52f0d7);}),_0x52f0d7['close$'][_0x4ddacc(0x497)](_0x1be43b(0x1))[_0x4ddacc(0x413)](_0x503656=>{const _0x36539e=_0x4ddacc;this[_0x36539e(0x33c)][_0x36539e(0x322)]('[CollaborationSessionService]',_0x36539e(0x483),_0x503656),this['_onConnectionFailed']();});}}catch(_0x22f626){this[_0x4ddacc(0x33c)]['error'](_0x22f626),this[_0x4ddacc(0x3af)]();}}['_onConnectionOpen'](_0x967c65){const _0x446127=_0x2a1bbf;this[_0x446127(0x33c)][_0x446127(0x322)]('[CollaborationSessionService]',_0x446127(0x3d8)),_0x967c65[_0x446127(0x1e4)]({'cmd':I[_0x446127(0x48f)]}),this[_0x446127(0x31d)]();}[_0x2a1bbf(0x3c6)](){const _0x42a632=_0x2a1bbf;window[_0x42a632(0x45e)]('offline',()=>this[_0x42a632(0x2dd)]());}[_0x2a1bbf(0x2dd)](){const _0x456a88=_0x2a1bbf;this[_0x456a88(0x4c0)]=!0x1,this[_0x456a88(0x3cd)]=null,this['_status$']['next'](X[_0x456a88(0x36b)]),this[_0x456a88(0x44f)][_0x456a88(0x2eb)](null),this[_0x456a88(0x4e2)](),this[_0x456a88(0x28d)]();}['_onConnectionFailed'](){const _0x4b3695=_0x2a1bbf;var _0xf66641;this['_onOffline'](),this[_0x4b3695(0x3da)]<((_0xf66641=this['_configService'][_0x4b3695(0x47c)](Pn))!=null?_0xf66641:yn)?(this[_0x4b3695(0x247)][_0x4b3695(0x43a)]({'key':'collaboration-session-retry','type':_0xc5184d[_0x4b3695(0x361)],'content':this[_0x4b3695(0x442)]['t'](_0x4b3695(0x46c))}),this[_0x4b3695(0x388)]()):this[_0x4b3695(0x247)][_0x4b3695(0x43a)]({'key':_0x4b3695(0x2e5),'type':_0xc5184d['Error'],'content':this['_localeService']['t'](_0x4b3695(0x1cf))});}[_0x2a1bbf(0x35e)](){const _0x23f3e2=_0x2a1bbf,_0x5eb457=()=>{const _0x8692a1=_0x736f;this['_socket']||this[_0x8692a1(0x2d2)]();},_0x1b9206=()=>{const _0x4738eb=_0x736f;this[_0x4738eb(0x208)]||document['visibilityState']===_0x4738eb(0x2e4)||this[_0x4738eb(0x2d2)]();};window[_0x23f3e2(0x45e)](_0x23f3e2(0x47f),_0x5eb457),document[_0x23f3e2(0x45e)](_0x23f3e2(0x3e3),_0x1b9206);}['_tryReconnect'](){const _0x3b9a61=_0x2a1bbf;var _0x4f0bf8;const _0x5d5c47=this['_retryCount'],_0x370fc6=this[_0x3b9a61(0x536)]['getConfig'](j),_0x410b61=_0x5d5c47===0x0?0x0:((_0x4f0bf8=_0x370fc6==null?void 0x0:_0x370fc6[_0x3b9a61(0x217)])!=null?_0x4f0bf8:wn)*0x2**_0x5d5c47;this[_0x3b9a61(0x4f9)]=window[_0x3b9a61(0x34d)](()=>{const _0x5b015b=_0x3b9a61;clearTimeout(this['_retryConnectingTimer']),this[_0x5b015b(0x4f9)]=null,this[_0x5b015b(0x2b5)]();},_0x410b61),this[_0x3b9a61(0x3da)]+=0x1;}['_onMessage'](_0x1732df,_0x1aea03){const _0x1f5dbb=_0x2a1bbf,{cmd:_0x5007ac}=_0x1aea03;_0x5007ac===I[_0x1f5dbb(0x48f)]&&!this['_socketReady']&&(_0x1732df['memberID']=_0x1aea03[_0x1f5dbb(0x500)]['memberID'],this[_0x1f5dbb(0x44f)][_0x1f5dbb(0x2eb)](_0x1732df),this[_0x1f5dbb(0x209)][_0x1f5dbb(0x2eb)](X[_0x1f5dbb(0x435)]),this[_0x1f5dbb(0x4c0)]=!0x0,this['_candidateSocket']=null),_0x5007ac===I[_0x1f5dbb(0x4d7)]&&this[_0x1f5dbb(0x4e2)](),this[_0x1f5dbb(0x31d)]();}['_rescheduleHeartbeat'](){const _0x4e6ad1=_0x2a1bbf;var _0xdd2246;this['_clearHeartbeatTimer'](),this[_0x4e6ad1(0x42a)]=window[_0x4e6ad1(0x34d)](()=>this[_0x4e6ad1(0x1c6)](),(_0xdd2246=this[_0x4e6ad1(0x536)]['getConfig'](On))!=null?_0xdd2246:Dn);}[_0x2a1bbf(0x1c6)](){const _0xaea079=_0x2a1bbf;this[_0xaea079(0x208)][_0xaea079(0x1e4)]({'cmd':I[_0xaea079(0x4d7)]}),this[_0xaea079(0x39c)]();}[_0x2a1bbf(0x39c)](){const _0x111e8d=_0x2a1bbf;var _0x13422a;this['_timeoutTimer']=window[_0x111e8d(0x34d)](()=>this[_0x111e8d(0x3af)](),(_0x13422a=this[_0x111e8d(0x536)]['getConfig'](Hs))!=null?_0x13422a:xs);}[_0x2a1bbf(0x28d)](){const _0x5ecd6b=_0x2a1bbf;this[_0x5ecd6b(0x42a)]!=null&&(clearTimeout(this[_0x5ecd6b(0x42a)]),this['_sendHeartbeatTimer']=null);}[_0x2a1bbf(0x4e2)](){const _0x3b5741=_0x2a1bbf;this[_0x3b5741(0x2e8)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x3b5741(0x2e8)]=null);}};ue=tr([Se(0x0,_0x55fbd9(_0x297a6b)),Se(0x1,_0x55fbd9(_0x5d60a9)),Se(0x2,_0x48cba6),Se(0x3,_0x2e1f3f),Se(0x4,_0x39b511),Se(0x5,Vs)],ue);var T=[];for(var ht=0x0;ht<0x100;++ht)T['push']((ht+0x100)['toString'](0x10)[_0x2a1bbf(0x4fa)](0x1));function sr(_0x47d0f7,_0x2dbb9d=0x0){return(T[_0x47d0f7[_0x2dbb9d+0x0]]+T[_0x47d0f7[_0x2dbb9d+0x1]]+T[_0x47d0f7[_0x2dbb9d+0x2]]+T[_0x47d0f7[_0x2dbb9d+0x3]]+'-'+T[_0x47d0f7[_0x2dbb9d+0x4]]+T[_0x47d0f7[_0x2dbb9d+0x5]]+'-'+T[_0x47d0f7[_0x2dbb9d+0x6]]+T[_0x47d0f7[_0x2dbb9d+0x7]]+'-'+T[_0x47d0f7[_0x2dbb9d+0x8]]+T[_0x47d0f7[_0x2dbb9d+0x9]]+'-'+T[_0x47d0f7[_0x2dbb9d+0xa]]+T[_0x47d0f7[_0x2dbb9d+0xb]]+T[_0x47d0f7[_0x2dbb9d+0xc]]+T[_0x47d0f7[_0x2dbb9d+0xd]]+T[_0x47d0f7[_0x2dbb9d+0xe]]+T[_0x47d0f7[_0x2dbb9d+0xf]])['toLowerCase']();}var ke,ir=new Uint8Array(0x10);function nr(){const _0x1a5dd2=_0x2a1bbf;if(!ke&&(ke=typeof crypto<'u'&&crypto[_0x1a5dd2(0x1ed)]&&crypto[_0x1a5dd2(0x1ed)][_0x1a5dd2(0x505)](crypto),!ke))throw new Error(_0x1a5dd2(0x504));return ke(ir);}var rr=typeof crypto<'u'&&crypto[_0x2a1bbf(0x2fc)]&&crypto[_0x2a1bbf(0x2fc)][_0x2a1bbf(0x505)](crypto);const hs={'randomUUID':rr};function or(_0x8814aa,_0xd88137,_0x1c099f){const _0x3cfcff=_0x2a1bbf;if(hs[_0x3cfcff(0x2fc)]&&!_0xd88137&&!_0x8814aa)return hs[_0x3cfcff(0x2fc)]();_0x8814aa=_0x8814aa||{};var _0x411d6a=_0x8814aa[_0x3cfcff(0x4cd)]||(_0x8814aa[_0x3cfcff(0x473)]||nr)();return _0x411d6a[0x6]=_0x411d6a[0x6]&0xf|0x40,_0x411d6a[0x8]=_0x411d6a[0x8]&0x3f|0x80,sr(_0x411d6a);}var ar=Object['defineProperty'],cr=Object['getOwnPropertyDescriptor'],hr=(_0x1ab346,_0x4382a9,_0x4aa6a3,_0x316ea8)=>{for(var _0x702936=_0x316ea8>0x1?void 0x0:_0x316ea8?cr(_0x4382a9,_0x4aa6a3):_0x4382a9,_0x45f7a1=_0x1ab346['length']-0x1,_0x336da3;_0x45f7a1>=0x0;_0x45f7a1--)(_0x336da3=_0x1ab346[_0x45f7a1])&&(_0x702936=(_0x316ea8?_0x336da3(_0x4382a9,_0x4aa6a3,_0x702936):_0x336da3(_0x702936))||_0x702936);return _0x316ea8&&_0x702936&&ar(_0x4382a9,_0x4aa6a3,_0x702936),_0x702936;},lt=(_0x5ddb35,_0x2aa86f)=>(_0x1314a0,_0x243b07)=>_0x2aa86f(_0x1314a0,_0x243b07,_0x5ddb35);let Xe=class{constructor(_0x23774e,_0x25b29f,_0x43d8ce){const _0x2748db=_0x2a1bbf;this['_injector']=_0x23774e,this[_0x2748db(0x250)]=_0x25b29f,this[_0x2748db(0x3e9)]=_0x43d8ce;}[_0x2a1bbf(0x38c)](_0x260ced){const _0x217595=_0x2a1bbf;this[_0x217595(0x3be)](_0x260ced),this[_0x217595(0x35c)](_0x260ced);}[_0x2a1bbf(0x1d8)](_0x35cc69){const _0x352604=_0x2a1bbf,{unitID:_0x44449a}=_0x35cc69,_0x157187=this[_0x352604(0x3e9)][_0x352604(0x45c)](_0x44449a)[_0x352604(0x383)](_0x3f45b5),{redoCache:_0x5d662c}=_0x157187[_0x352604(0x433)]();if(_0x5d662c['length']===0x0)return _0x35cc69;let _0x2dc6db=_0x16ec03['deepClone'](_0x35cc69[_0x352604(0x3f1)][0x0]);for(let _0x5aae4b=0x0;_0x5aae4b<_0x5d662c['length'];_0x5aae4b++){const _0x2d6b09={'id':_0x352604(0x283),'params':{..._0x5d662c[_0x5aae4b]}},_0x27329c=this['_transformService'][_0x352604(0x395)](_0x2dc6db,_0x2d6b09,!0x1);if(_0x6a901e(_0x27329c))throw _0x27329c[_0x352604(0x2c6)];_0x2dc6db=_0x27329c[_0x352604(0x267)];}return{..._0x16ec03['deepClone'](_0x35cc69),'mutations':[_0x2dc6db]};}['_transformUndoRedoStack'](_0x3295ed){const _0x2ab31c=_0x2a1bbf,{unitID:_0x41fd64}=_0x3295ed,_0x6d9f62=this[_0x2ab31c(0x3e9)][_0x2ab31c(0x45c)](_0x41fd64)[_0x2ab31c(0x383)](_0x3f45b5),{undoCache:_0x3664c3,redoCache:_0x1baa3a}=_0x6d9f62[_0x2ab31c(0x433)]();if(_0x3664c3[_0x2ab31c(0x1bd)]===0x0||_0x1baa3a[_0x2ab31c(0x1bd)]===0x0)return;const _0x3d7e2d=[],_0x4119b4=[];let _0x185305=_0x16ec03[_0x2ab31c(0x3c3)](_0x3295ed['mutations'][0x0]),_0xc6ebe5=_0x16ec03[_0x2ab31c(0x3c3)](_0x3295ed['mutations'][0x0]);for(let _0x34d1ba=_0x3664c3['length']-0x1;_0x34d1ba>=0x0;_0x34d1ba--){const _0x5aa191={'id':'doc.mutation.rich-text-editing','params':{..._0x3664c3[_0x34d1ba]}},_0x2dd317={'id':_0x2ab31c(0x283),'params':{..._0x1baa3a[_0x34d1ba]}},_0x2dfada=this[_0x2ab31c(0x250)][_0x2ab31c(0x395)](_0x185305,_0x5aa191,!0x1),_0x162677=this[_0x2ab31c(0x250)]['transformMutation'](_0xc6ebe5,_0x2dd317,!0x1);if(_0x6a901e(_0x2dfada))throw _0x2dfada[_0x2ab31c(0x2c6)];if(_0x6a901e(_0x162677))throw _0x162677['error'];_0x3d7e2d[_0x2ab31c(0x30e)](_0x2dfada['m2Prime'][_0x2ab31c(0x294)]),_0x4119b4['unshift'](_0x162677[_0x2ab31c(0x2d8)][_0x2ab31c(0x294)]),_0x185305=_0x2dfada[_0x2ab31c(0x267)],_0xc6ebe5=_0x162677[_0x2ab31c(0x267)];}_0x6d9f62[_0x2ab31c(0x272)]({'undoCache':_0x3d7e2d,'redoCache':_0x4119b4});}[_0x2a1bbf(0x35c)](_0x4efcb4){const _0x54d0ce=_0x2a1bbf,{unitID:_0x2cf753}=_0x4efcb4,_0x347615=this[_0x54d0ce(0x3e9)][_0x54d0ce(0x45c)](_0x2cf753)['with'](_0x3f45b5),_0x354766=_0x347615[_0x54d0ce(0x2bc)]();if(_0x354766==null)return;const _0x41534c=[{'id':_0x54d0ce(0x283),'params':{'unitId':_0x4efcb4[_0x54d0ce(0x3d3)],'actions':null,'textRanges':[_0x354766]}}],_0x4d120c=this[_0x54d0ce(0x250)]['transformMutationsWithChangeset'](_0x4efcb4,_0x41534c);if(!_0x1e2179(_0x4d120c))throw _0x4d120c[_0x54d0ce(0x2c6)];const _0x54eb17=_0x4d120c['m2Prime'][0x0]['params'][_0x54d0ce(0x385)];Array[_0x54d0ce(0x1f8)](_0x54eb17)&&_0x54eb17[_0x54d0ce(0x1bd)]&&_0x347615[_0x54d0ce(0x51e)](_0x54eb17[0x0]);}};Xe=hr([lt(0x0,_0x55fbd9(_0x297a6b)),lt(0x1,_0xa94b77),lt(0x2,_0x55e37e)],Xe);var lr=Object[_0x2a1bbf(0x4e8)],_r=Object[_0x2a1bbf(0x2ce)],ur=(_0x3535e8,_0x2cddf1,_0x1cf797,_0x2ab9a8)=>{const _0x432cf6=_0x2a1bbf;for(var _0x2b9f4b=_0x2ab9a8>0x1?void 0x0:_0x2ab9a8?_r(_0x2cddf1,_0x1cf797):_0x2cddf1,_0x24e513=_0x3535e8[_0x432cf6(0x1bd)]-0x1,_0x54cd47;_0x24e513>=0x0;_0x24e513--)(_0x54cd47=_0x3535e8[_0x24e513])&&(_0x2b9f4b=(_0x2ab9a8?_0x54cd47(_0x2cddf1,_0x1cf797,_0x2b9f4b):_0x54cd47(_0x2b9f4b))||_0x2b9f4b);return _0x2ab9a8&&_0x2b9f4b&&lr(_0x2cddf1,_0x1cf797,_0x2b9f4b),_0x2b9f4b;},we=(_0x4334f9,_0x31f0d2)=>(_0x14e4f3,_0x39374b)=>_0x31f0d2(_0x14e4f3,_0x39374b,_0x4334f9);let D=class extends _0x33be34{constructor(_0x2e6821,_0x404eb7,_0x19f591,_0x5231f2,_0x3a3c4d){const _0x14fd4a=_0x2a1bbf;super(),l(this,_0x14fd4a(0x530),new Map()),l(this,_0x14fd4a(0x2ff),new Map()),l(this,_0x14fd4a(0x201),!0x1),(this['_configService']=_0x2e6821,this[_0x14fd4a(0x2e2)]=_0x404eb7,this[_0x14fd4a(0x1de)]=_0x19f591,this[_0x14fd4a(0x442)]=_0x5231f2,this[_0x14fd4a(0x41e)]=_0x3a3c4d,this[_0x14fd4a(0x25e)]());}[_0x2a1bbf(0x4d3)](){const _0x17f540=_0x2a1bbf;this[_0x17f540(0x201)]=!0x0;}[_0x2a1bbf(0x364)](){const _0x3e5914=_0x2a1bbf;this[_0x3e5914(0x201)]=!0x1;}[_0x2a1bbf(0x1d0)](){const _0x4c1a95=_0x2a1bbf;this[_0x4c1a95(0x370)]()[_0x4c1a95(0x3dd)](()=>super[_0x4c1a95(0x1d0)]());}async[_0x2a1bbf(0x3a7)](_0x27fbdf){const _0x40205a=_0x2a1bbf;return this[_0x40205a(0x201)]?null:this[_0x40205a(0x2e2)]['getItem'](ls(_0x27fbdf));}async[_0x2a1bbf(0x3b6)](_0x2b6833,_0x57c9e7){const _0x237f99=_0x2a1bbf;return!!this[_0x237f99(0x2e2)][_0x237f99(0x278)](_0x2b6833,_0x57c9e7);}[_0x2a1bbf(0x482)](_0x1fc46f,_0x5cff2a,_0x3e06b1,_0x2d96d7){const _0x3df0cf=_0x2a1bbf,_0x2ad05d=this['_revisionService'][_0x3df0cf(0x1b1)](_0x1fc46f);this[_0x3df0cf(0x530)][_0x3df0cf(0x279)](_0x1fc46f,{'unitID':_0x1fc46f,'type':_0x5cff2a,'awaitingChangeset':_0x3e06b1,'mutations':_0x2d96d7,'rev':_0x2ad05d}),this[_0x3df0cf(0x2ff)]['has'](_0x1fc46f)||this[_0x3df0cf(0x2ad)](_0x1fc46f);}[_0x2a1bbf(0x2ad)](_0x3dc943){const _0x1a7086=_0x2a1bbf,_0x29c0ae=this[_0x1a7086(0x4de)]();_0x29c0ae===0x0?this[_0x1a7086(0x1f7)](_0x3dc943):this['_saveTaskMap'][_0x1a7086(0x279)](_0x3dc943,setTimeout(()=>this['_saveCache'](_0x3dc943),_0x29c0ae));}[_0x2a1bbf(0x4de)](){const _0x3c215a=_0x2a1bbf;var _0x597b6a;return(_0x597b6a=this[_0x3c215a(0x536)][_0x3c215a(0x47c)](Un))!=null?_0x597b6a:Nn;}[_0x2a1bbf(0x1f7)](_0x48c236){const _0x5b9c5a=_0x2a1bbf,_0x4dcaf2=this[_0x5b9c5a(0x2ff)][_0x5b9c5a(0x380)](_0x48c236);return _0x4dcaf2!==void 0x0&&window['clearTimeout'](_0x4dcaf2),this[_0x5b9c5a(0x2e2)]['setItem'](ls(_0x48c236),this[_0x5b9c5a(0x530)]['get'](_0x48c236))[_0x5b9c5a(0x3dd)](()=>this[_0x5b9c5a(0x2ff)][_0x5b9c5a(0x360)](_0x48c236));}async['exhaustSavingTask'](){const _0x5898e8=_0x2a1bbf,_0x39fd29=[];this['_saveTaskMap'][_0x5898e8(0x28a)]((_0xccefeb,_0xe4fe78)=>{const _0x3f0e07=_0x5898e8;window[_0x3f0e07(0x1d6)](_0xccefeb),_0x39fd29[_0x3f0e07(0x365)](this['_saveCache'](_0xe4fe78)[_0x3f0e07(0x3dd)](()=>{const _0x427122=_0x3f0e07;this[_0x427122(0x2ff)][_0x427122(0x360)](_0xe4fe78);}));}),await Promise[_0x5898e8(0x28b)](_0x39fd29);}[_0x2a1bbf(0x25e)](){const _0x30239a=_0x2a1bbf;this[_0x30239a(0x394)](this['_beforeCloseService'][_0x30239a(0x4cb)](()=>{const _0x363440=_0x30239a;if(this[_0x363440(0x2ff)][_0x363440(0x406)])return this[_0x363440(0x442)]['t'](_0x363440(0x35f));}));}};D=ur([we(0x0,_0x39b511),we(0x1,_0x34d018),we(0x2,_0x232eba),we(0x3,_0x55fbd9(_0x5d60a9)),we(0x4,_0x55fbd9(_0x4329d3))],D);function ls(_0x218d7e){const _0xaaeec7=_0x2a1bbf;return _0xaaeec7(0x30b)+_0x218d7e;}var dr=Object[_0x2a1bbf(0x4e8)],mr=Object[_0x2a1bbf(0x2ce)],fr=(_0x3ffbb0,_0x41f47e,_0x4e2a51,_0x2fa346)=>{const _0x47d7e4=_0x2a1bbf;for(var _0x6f419=_0x2fa346>0x1?void 0x0:_0x2fa346?mr(_0x41f47e,_0x4e2a51):_0x41f47e,_0x5a07f8=_0x3ffbb0[_0x47d7e4(0x1bd)]-0x1,_0x542b00;_0x5a07f8>=0x0;_0x5a07f8--)(_0x542b00=_0x3ffbb0[_0x5a07f8])&&(_0x6f419=(_0x2fa346?_0x542b00(_0x41f47e,_0x4e2a51,_0x6f419):_0x542b00(_0x6f419))||_0x6f419);return _0x2fa346&&_0x6f419&&dr(_0x41f47e,_0x4e2a51,_0x6f419),_0x6f419;},_t=(_0x414926,_0x15649c)=>(_0x2c0a69,_0x34f89c)=>_0x15649c(_0x2c0a69,_0x34f89c,_0x414926);function gr(_0x46cbe4){const {unitID:_0x26517e,mutations:_0x4446de}=_0x46cbe4;return{'unitId':_0x26517e,'subUnitId':_0x4446de[0x0]['params']['subUnitId']};}let qe=class{constructor(_0x805016,_0x20ceef,_0x471c6f){const _0x36ba57=_0x2a1bbf;this[_0x36ba57(0x4ac)]=_0x805016,this[_0x36ba57(0x250)]=_0x20ceef,this[_0x36ba57(0x3aa)]=_0x471c6f;}[_0x2a1bbf(0x3ae)](_0x36b4d2){const _0x437569=_0x2a1bbf;var _0x2b6283,_0x3778b6,_0x15198d,_0x44dea8;const _0x52873e=this[_0x437569(0x4ac)]['get'](_0x5700b2),{unitId:_0x49a804,subUnitId:_0x5c45ed}=gr(_0x36b4d2),_0x44ba55=_0x52873e['getWorkbookSelections'](_0x49a804)[_0x437569(0x2c4)](),_0x42ef11=(_0x3778b6=(_0x2b6283=this[_0x437569(0x3aa)][_0x437569(0x237)](_0x49a804))==null?void 0x0:_0x2b6283[_0x437569(0x447)]())==null?void 0x0:_0x3778b6[_0x437569(0x460)]();if(_0x44ba55['length']===0x0||!_0x49a804||!_0x5c45ed)return;const _0x5e80d9=[{'id':_0x47bbc3['id'],'params':{'unitId':_0x49a804,'subUnitId':_0x42ef11,'selections':_0x16ec03['deepClone'](_0x44ba55)}}],_0x1fa09c=this[_0x437569(0x250)][_0x437569(0x2b0)](_0x36b4d2,_0x5e80d9);if(!_0x1e2179(_0x1fa09c))throw _0x1fa09c['error'];const _0x366aee=(_0x44dea8=(_0x15198d=_0x1fa09c[_0x437569(0x2d8)][0x0])==null?void 0x0:_0x15198d[_0x437569(0x294)])==null?void 0x0:_0x44dea8[_0x437569(0x4b6)];if(Array[_0x437569(0x1f8)](_0x366aee)&&_0x366aee[_0x437569(0x1bd)]){if(_0x366aee[_0x437569(0x1bd)]===_0x5e80d9[0x0][_0x437569(0x294)]['selections'][_0x437569(0x1bd)]&&_0x366aee[_0x437569(0x2ac)]((_0x553377,_0x3d5374)=>_0x310a7c['equals'](_0x553377['range'],_0x5e80d9[0x0][_0x437569(0x294)][_0x437569(0x4b6)][_0x3d5374][_0x437569(0x204)])))return;this[_0x437569(0x4ac)][_0x437569(0x380)](_0x31e03d)[_0x437569(0x3f5)](_0x47bbc3['id'],{'unitId':_0x49a804,'subUnitId':_0x42ef11,'selections':_0x366aee});}}};qe=fr([_t(0x0,_0x55fbd9(_0x297a6b)),_t(0x1,_0xa94b77),_t(0x2,_0x23793a)],qe);const it=_0x211912('univer-pro.collaboration-client.single-active-unit-service');var Ws=(_0x37a2be=>(_0x37a2be[_0x37a2be['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x2a1bbf(0x2cd),_0x37a2be[_0x37a2be[_0x2a1bbf(0x4fd)]=0x1]='OTHER_CLIENTS_EDITING',_0x37a2be))(Ws||{});const _s=0x7530,us=_0x2a1bbf(0x494);class Sr extends _0x33be34{constructor(){const _0x2ef247=_0x2a1bbf;super(),l(this,_0x2ef247(0x474),_0x16ec03[_0x2ef247(0x4ed)]()),l(this,_0x2ef247(0x25b),new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x2ef247(0x260),null),l(this,_0x2ef247(0x21c),new Map()),l(this,_0x2ef247(0x544),new Map()),this[_0x2ef247(0x53d)]();}[_0x2a1bbf(0x1d0)](){const _0x37a11b=_0x2a1bbf;super[_0x37a11b(0x1d0)](),this[_0x37a11b(0x21c)][_0x37a11b(0x28a)]((_0x312053,_0xfcb768)=>this[_0x37a11b(0x358)](_0xfcb768)),this['_heartbeatTimer']&&window[_0x37a11b(0x29e)](this[_0x37a11b(0x260)]);}[_0x2a1bbf(0x2e9)](_0x4238cc){const _0x126b1e=_0x2a1bbf;return this[_0x126b1e(0x37a)](_0x4238cc)[_0x126b1e(0x497)](_0x5084da());}['editingUnit'](_0x5cce55){const _0x57baa9=_0x2a1bbf;this[_0x57baa9(0x25b)]['size']===0x0&&this[_0x57baa9(0x465)](),this[_0x57baa9(0x25b)][_0x57baa9(0x20f)](_0x5cce55),this['_send']({'type':0x0,'memberID':this[_0x57baa9(0x474)],'unitIDs':[_0x5cce55],'isForwarded':!0x1});}['disposeUnit'](_0x13e79c){const _0x58dd35=_0x2a1bbf;this[_0x58dd35(0x25b)][_0x58dd35(0x360)](_0x13e79c),this[_0x58dd35(0x25b)][_0x58dd35(0x406)]===0x0&&this[_0x58dd35(0x260)]&&window[_0x58dd35(0x29e)](this['_heartbeatTimer']);}['_init'](){const _0x5962ce=_0x2a1bbf;this['disposeWithMe'](_0x4817bf(_0x16101b(window,_0x5962ce(0x386))[_0x5962ce(0x413)](_0x2581bf=>{const _0x14acae=_0x5962ce;if(_0x2581bf['key']!==us||!_0x2581bf['newValue'])return;const _0x37cc44=JSON[_0x14acae(0x3df)](_0x2581bf['newValue']);this[_0x14acae(0x3c1)](_0x37cc44);}))),window[_0x5962ce(0x45e)](_0x5962ce(0x263),()=>this[_0x5962ce(0x463)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x5962ce(0x25b)])}));}[_0x2a1bbf(0x3c1)](_0x225420){const _0x5e776a=_0x2a1bbf;switch(_0x225420['type']){case 0x0:this[_0x5e776a(0x431)](_0x225420);break;case 0x1:this[_0x5e776a(0x205)](_0x225420);break;case 0x2:this[_0x5e776a(0x499)](_0x225420);break;}}[_0x2a1bbf(0x431)](_0x1061c0){const _0x4c6e64=_0x2a1bbf,{unitIDs:_0x2ae1cf,memberID:_0x237eb5,isForwarded:_0x252fda}=_0x1061c0;_0x2ae1cf[_0x4c6e64(0x28a)](_0x303fe0=>{const _0x2db9f2=_0x4c6e64;if(!_0x252fda&&this[_0x2db9f2(0x3d7)]['has'](_0x303fe0)&&this[_0x2db9f2(0x37a)](_0x303fe0)[_0x2db9f2(0x2eb)](0x1),!this[_0x2db9f2(0x3d7)][_0x2db9f2(0x220)](_0x303fe0)||!this[_0x2db9f2(0x3d7)][_0x2db9f2(0x380)](_0x303fe0)[_0x2db9f2(0x220)](_0x237eb5)){const _0x238eec=this[_0x2db9f2(0x3d7)][_0x2db9f2(0x380)](_0x303fe0)||new Set();_0x238eec[_0x2db9f2(0x20f)](_0x237eb5),this[_0x2db9f2(0x3d7)][_0x2db9f2(0x279)](_0x303fe0,_0x238eec),this['_scheduleClearOtherTimer'](_0x237eb5);}}),_0x252fda||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x4c6e64(0x25b)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x395005){const _0x228565=_0x2a1bbf;this[_0x228565(0x358)](_0x395005);const _0x97def7=window[_0x228565(0x34d)](()=>{const _0x19e32f=_0x228565;this['_unitOnClients'][_0x19e32f(0x28a)](_0x17a210=>{_0x17a210['delete'](_0x395005);});},_s*0x2);this[_0x228565(0x21c)][_0x228565(0x279)](_0x395005,_0x97def7);}[_0x2a1bbf(0x358)](_0x20eb1b){const _0x53a50b=_0x2a1bbf;if(this[_0x53a50b(0x21c)][_0x53a50b(0x220)](_0x20eb1b)){const _0x834282=this[_0x53a50b(0x21c)][_0x53a50b(0x380)](_0x20eb1b);_0x834282&&window[_0x53a50b(0x1d6)](_0x834282),this[_0x53a50b(0x21c)]['set'](_0x20eb1b,null);}}['_handleLeaveEvent'](_0x2dc25d){const _0x228e9f=_0x2a1bbf,{memberID:_0xf8c1c5,unitIDs:_0x481eb4}=_0x2dc25d;_0x481eb4[_0x228e9f(0x28a)](_0x4b126a=>{const _0x63048d=_0x228e9f;var _0x5f2e39;const _0x59b10c=this[_0x63048d(0x3d7)][_0x63048d(0x380)](_0x4b126a);_0x59b10c&&(_0x59b10c[_0x63048d(0x360)](_0xf8c1c5),(_0x5f2e39=this['_ensureSubject'](_0x4b126a))==null||_0x5f2e39[_0x63048d(0x2eb)](_0x59b10c[_0x63048d(0x406)]===0x0?0x0:0x1));}),this[_0x228e9f(0x358)](_0xf8c1c5);}[_0x2a1bbf(0x499)](_0x5cd719){const _0xff432b=_0x2a1bbf;this[_0xff432b(0x427)](_0x5cd719[_0xff432b(0x43b)]);}[_0x2a1bbf(0x463)](_0x30099f){const _0x144df8=_0x2a1bbf;localStorage[_0x144df8(0x278)](us,JSON[_0x144df8(0x397)](_0x30099f));}[_0x2a1bbf(0x465)](){const _0x320971=_0x2a1bbf;this[_0x320971(0x260)]=window[_0x320971(0x1b7)](()=>{const _0x32e3b3=_0x320971;this[_0x32e3b3(0x463)]({'type':0x2,'memberID':this['_id']});},_s);}[_0x2a1bbf(0x37a)](_0x8ad524){const _0x351381=_0x2a1bbf;return this['_unitStatus'][_0x351381(0x220)](_0x8ad524)||this[_0x351381(0x544)][_0x351381(0x279)](_0x8ad524,new _0x5bdcda(0x0)),this[_0x351381(0x544)][_0x351381(0x380)](_0x8ad524);}}function Gs(_0x2306c6){const _0x1c08ba=_0x2a1bbf;let _0xa214f9='';for(const _0x2f7e00 of _0x2306c6){const {startOffset:_0x4476a3,endOffset:_0x15cb88,isActive:_0x1d2c34,rangeType:_0x447d51,segmentId:_0x5ec95c,segmentPage:_0x1869a4}=_0x2f7e00;_0xa214f9[_0x1c08ba(0x1bd)]&&(_0xa214f9+=','),_0xa214f9+=_0x4476a3+':'+_0x15cb88+':'+(_0x1d2c34?'1':'0')+':'+_0x447d51+':'+_0x5ec95c+':'+_0x1869a4;}return _0xa214f9;}function pr(_0x2e141a){const _0x54acd5=_0x2a1bbf,_0x45434c=_0x2e141a['split'](','),_0x33d9a0=[];for(const _0x4150dd of _0x45434c){const [_0xd36bb9,_0x40c87c,_0xf1fffe,_0x26230d,_0xc50d10,_0x5d3f2f]=_0x4150dd[_0x54acd5(0x4b9)](':');_0x33d9a0['push']({'startOffset':Number(_0xd36bb9),'endOffset':Number(_0x40c87c),'collapsed':_0xd36bb9===_0x40c87c,'isActive':_0xf1fffe==='1','rangeType':_0x26230d===_0x1b0eef[_0x54acd5(0x461)]?_0x1b0eef[_0x54acd5(0x461)]:_0x1b0eef['RECT'],'segmentId':typeof _0xc50d10=='string'?String(_0xc50d10):'','segmentPage':Number(_0x5d3f2f!=null?_0x5d3f2f:-0x1)});}return _0x33d9a0[_0x54acd5(0x41f)](_0x2825c6=>_0x2825c6['isActive'])||(_0x33d9a0[0x0][_0x54acd5(0x207)]=!0x0),_0x33d9a0;}class Wt extends _0x5b2156{constructor(){const _0x45bd63=_0x2a1bbf;super(...arguments),l(this,'_collabCursorState$',new _0x5bdcda(null)),l(this,_0x45bd63(0x300),this[_0x45bd63(0x215)][_0x45bd63(0x251)]());}[_0x2a1bbf(0x455)](_0x422499){const _0x178969=_0x2a1bbf,{unitID:_0x2cba44,memberID:_0x4607ab,textRanges:_0x3c75ce}=_0x422499,_0x32e37e=Gs(_0x3c75ce);if(_0x32e37e==='')return;const _0x14ab34={'unitID':_0x2cba44,'memberID':_0x4607ab,'selection':_0x32e37e};this[_0x178969(0x215)][_0x178969(0x2eb)](_0x14ab34);}}var vr=Object['defineProperty'],Ir=Object[_0x2a1bbf(0x2ce)],Er=(_0x346bf3,_0x4b88c0,_0x28249,_0x2612fe)=>{for(var _0x298816=_0x2612fe>0x1?void 0x0:_0x2612fe?Ir(_0x4b88c0,_0x28249):_0x4b88c0,_0x17c361=_0x346bf3['length']-0x1,_0x1def69;_0x17c361>=0x0;_0x17c361--)(_0x1def69=_0x346bf3[_0x17c361])&&(_0x298816=(_0x2612fe?_0x1def69(_0x4b88c0,_0x28249,_0x298816):_0x1def69(_0x298816))||_0x298816);return _0x2612fe&&_0x298816&&vr(_0x4b88c0,_0x28249,_0x298816),_0x298816;},ds=(_0x3b2653,_0x364ddd)=>(_0x14668a,_0x3ae151)=>_0x364ddd(_0x14668a,_0x3ae151,_0x3b2653);let Je=class{constructor(_0x17c637,_0x47bdd7){const _0x809286=_0x2a1bbf;this['_injector']=_0x17c637,this[_0x809286(0x250)]=_0x47bdd7;}[_0x2a1bbf(0x3ae)](_0x2c318b){const _0x343224=_0x2a1bbf;var _0x599578;const _0x517d20=this['_injector'][_0x343224(0x380)](_0x3f28b3),_0x520e10=(_0x599578=_0x517d20[_0x343224(0x343)]())!=null?_0x599578:[];if(_0x520e10[_0x343224(0x1bd)]===0x0)return;const _0x49f483=[{'id':_0x343224(0x283),'params':{'unitId':_0x2c318b['unitID'],'actions':null,'textRanges':_0x520e10}}],_0x295a1e=this[_0x343224(0x250)][_0x343224(0x2b0)](_0x2c318b,_0x49f483);if(!_0x1e2179(_0x295a1e))throw _0x295a1e[_0x343224(0x2c6)];const _0x1a88b2=_0x295a1e[_0x343224(0x2d8)][0x0]['params']['textRanges'];Array[_0x343224(0x1f8)](_0x1a88b2)&&_0x1a88b2['length']&&_0x517d20[_0x343224(0x2c5)](_0x1a88b2,!0x1);}};Je=Er([ds(0x0,_0x55fbd9(_0x297a6b)),ds(0x1,_0xa94b77)],Je);const Cr=new Set([_0x111cee['id']]);function ms(_0x1fd9cc,_0x3dd522,_0x2dc122,_0xe6505e,_0x35f365){const _0x309619=_0x2a1bbf;var _0x204fff,_0xa4cc49,_0x24b7d1,_0x213ef9;const _0x46bb61=[];for(const _0x1db3ec of _0x1fd9cc)if(Cr[_0x309619(0x220)](_0x1db3ec['id'])){if(_0x46bb61[_0x309619(0x1bd)]>0x0)break;_0x46bb61[_0x309619(0x365)](_0x1db3ec);break;}else _0x46bb61[_0x309619(0x365)](_0x1db3ec);const _0x214bfe=(_0xa4cc49=(_0x204fff=_0x35f365['getCurrentUser']())==null?void 0x0:_0x204fff['userID'])!=null?_0xa4cc49:_0x309619(0x396),_0x429c0c=(_0x213ef9=(_0x24b7d1=_0x35f365[_0x309619(0x3eb)]())==null?void 0x0:_0x24b7d1[_0x309619(0x43b)])!=null?_0x213ef9:'unknown';return{'changeset':{'unitID':_0x3dd522,'type':_0x5e24ef(_0x2dc122[_0x309619(0x502)](_0x3dd522)),'baseRev':_0xe6505e[_0x309619(0x1b1)](_0x3dd522),'revision':0x0,'userID':_0x214bfe,'memberID':_0x429c0c,'mutations':_0x46bb61},'pendingMutations':_0x1fd9cc['slice'](_0x46bb61['length'])};}function br(_0x367372,_0x1fffc0,_0x8cbe70,_0x35e6b0,_0x22031f){const _0x4da9fe=_0x2a1bbf;var _0x11aed2,_0x4d159f,_0x29ea90,_0x1376a9;const _0x379f2c=[_0x367372[_0x4da9fe(0x1b6)]((_0x43817f,_0x4b658e)=>{const _0x25ad3f=_0x4da9fe;var _0x814708;const {id:_0x102077}=_0x43817f,{id:_0x256f06,type:_0x56f6df}=_0x4b658e,_0x461d5e=(_0x814708=_0x43817f[_0x25ad3f(0x294)])!=null?_0x814708:{'actions':null},_0x38c45d=_0x4b658e[_0x25ad3f(0x294)];if(_0x102077&&_0x102077!==_0x256f06)throw new Error(_0x25ad3f(0x532)+_0x102077+_0x25ad3f(0x2c3)+_0x256f06+'.');return{..._0x43817f,'id':_0x256f06,'type':_0x56f6df,'params':{'unitId':_0x38c45d[_0x25ad3f(0x3a5)],'textRanges':_0x38c45d[_0x25ad3f(0x385)],'actions':_0x49b03c[_0x25ad3f(0x4f8)](_0x461d5e[_0x25ad3f(0x41b)],_0x38c45d[_0x25ad3f(0x41b)])}};},{})],_0x16a840=(_0x4d159f=(_0x11aed2=_0x22031f[_0x4da9fe(0x3eb)]())==null?void 0x0:_0x11aed2[_0x4da9fe(0x373)])!=null?_0x4d159f:_0x4da9fe(0x396),_0x352600=(_0x1376a9=(_0x29ea90=_0x22031f[_0x4da9fe(0x3eb)]())==null?void 0x0:_0x29ea90['memberID'])!=null?_0x1376a9:_0x4da9fe(0x396);return{'changeset':{'unitID':_0x1fffc0,'type':_0x5e24ef(_0x8cbe70[_0x4da9fe(0x502)](_0x1fffc0)),'baseRev':_0x35e6b0[_0x4da9fe(0x1b1)](_0x1fffc0),'revision':0x0,'userID':_0x16a840,'memberID':_0x352600,'mutations':_0x379f2c},'pendingMutations':[]};}function Ys(_0x3f2182,_0x295ebf){const _0x26670d=_0x2a1bbf,_0x3868d4=new _0x51e810(0x1);return setTimeout(()=>_0x3868d4[_0x26670d(0x2eb)](_0x295ebf),_0x3f2182),_0x3868d4[_0x26670d(0x251)]()[_0x26670d(0x497)](_0x221894(0x1));}const Tr={'id':_0x84ef87['id'],'type':_0xa939ce[_0x2a1bbf(0x2b1)],'params':{}};var Rr=Object[_0x2a1bbf(0x4e8)],Or=Object['getOwnPropertyDescriptor'],me=(_0x3a8f68,_0x3f8151,_0x193611,_0x161628)=>{const _0x42ca0a=_0x2a1bbf;for(var _0x415070=_0x161628>0x1?void 0x0:_0x161628?Or(_0x3f8151,_0x193611):_0x3f8151,_0x24dbac=_0x3a8f68[_0x42ca0a(0x1bd)]-0x1,_0x5702ce;_0x24dbac>=0x0;_0x24dbac--)(_0x5702ce=_0x3a8f68[_0x24dbac])&&(_0x415070=(_0x161628?_0x5702ce(_0x3f8151,_0x193611,_0x415070):_0x5702ce(_0x415070))||_0x415070);return _0x161628&&_0x415070&&Rr(_0x3f8151,_0x193611,_0x415070),_0x415070;},f=(_0x2f3892,_0x244314)=>(_0x47e970,_0x7ad8f0)=>_0x244314(_0x47e970,_0x7ad8f0,_0x2f3892),w=(_0x486e2e=>(_0x486e2e[_0x2a1bbf(0x37e)]=_0x2a1bbf(0x3b0),_0x486e2e['SYNCED']=_0x2a1bbf(0x330),_0x486e2e['PENDING']=_0x2a1bbf(0x44c),_0x486e2e[_0x2a1bbf(0x236)]=_0x2a1bbf(0x258),_0x486e2e[_0x2a1bbf(0x4e5)]=_0x2a1bbf(0x384),_0x486e2e[_0x2a1bbf(0x41a)]=_0x2a1bbf(0x311),_0x486e2e[_0x2a1bbf(0x244)]=_0x2a1bbf(0x490),_0x486e2e[_0x2a1bbf(0x36b)]=_0x2a1bbf(0x210),_0x486e2e))(w||{});const Ks=0xea60;class fe{constructor(_0x55930d,_0x4a4407,_0x2feb46,_0x4a50c7,_0x1ddb58,_0x6503a,_0x44702c,_0x3e6489,_0x7686c0){const _0x356ddf=_0x2a1bbf;l(this,_0x356ddf(0x3a9),null),l(this,_0x356ddf(0x346),[]),(this[_0x356ddf(0x3d3)]=_0x55930d,this[_0x356ddf(0x1cb)]=_0x4a4407,this[_0x356ddf(0x2c7)]=_0x1ddb58,this[_0x356ddf(0x4d5)]=_0x6503a,this[_0x356ddf(0x391)]=_0x44702c,this[_0x356ddf(0x41e)]=_0x3e6489,this['_localCacheService']=_0x7686c0,this['_awaitingChangeset']=_0x2feb46,this[_0x356ddf(0x346)]=_0x4a50c7);}[_0x2a1bbf(0x3bf)](_0xaf4d63){const _0x50752c=_0x2a1bbf,_0x25ddbd=this['_revisionService'][_0x50752c(0x1b1)](this[_0x50752c(0x3d3)]);return _0xaf4d63[_0x50752c(0x3a4)]>_0x25ddbd+0x1?(this['_handler'][_0x50752c(0x520)]({'from':_0x25ddbd,'to':_0xaf4d63[_0x50752c(0x3a4)]-0x1}),!0x0):!0x1;}[_0x2a1bbf(0x371)](_0x5d5fa5){const _0x578e64=_0x2a1bbf;this[_0x578e64(0x391)]['transformUndoRedo'](this[_0x578e64(0x3d3)],_0x5d5fa5);}[_0x2a1bbf(0x3ba)](_0x4ce924){const _0x2e74ac=_0x2a1bbf;var _0x1f5568,_0x1b0814;(_0x1b0814=(_0x1f5568=this[_0x2e74ac(0x2c7)])[_0x2e74ac(0x2a7)])==null||_0x1b0814[_0x2e74ac(0x4e6)](_0x1f5568,_0x4ce924);}[_0x2a1bbf(0x2f4)](_0x337129){const _0x32a92c=_0x2a1bbf;var _0x931fb8,_0x56437d;return(_0x56437d=(_0x931fb8=this['_handler'])[_0x32a92c(0x3c4)])==null?void 0x0:_0x56437d[_0x32a92c(0x4e6)](_0x931fb8,_0x337129);}[_0x2a1bbf(0x24a)](_0x5776fd){const _0x24f8dd=_0x2a1bbf;var _0x3f8e89,_0x1eb19c,_0x4c1106;return(_0x4c1106=(_0x1eb19c=(_0x3f8e89=this[_0x24f8dd(0x2c7)])[_0x24f8dd(0x4da)])==null?void 0x0:_0x1eb19c[_0x24f8dd(0x4e6)](_0x3f8e89,_0x5776fd))!=null?_0x4c1106:_0x5776fd;}[_0x2a1bbf(0x271)](_0x5a79bf){const _0x445c75=_0x2a1bbf;var _0x21083d,_0x1e1e7c;if(this['type']===B[_0x445c75(0x2ca)]){const {unitID:_0xebabd2,mutations:_0xd9d0e1,memberID:_0x2ae8a6}=_0x5a79bf,_0x57422a=_0xd9d0e1[0x0][_0x445c75(0x294)][_0x445c75(0x385)];Array[_0x445c75(0x1f8)](_0x57422a)&&_0x57422a['length']>0x0&&((_0x1e1e7c=(_0x21083d=this[_0x445c75(0x2c7)])[_0x445c75(0x398)])==null||_0x1e1e7c['call'](_0x21083d,{'unitID':_0xebabd2,'memberID':_0x2ae8a6,'textRanges':_0x57422a}));}}[_0x2a1bbf(0x3a8)](){const _0x1be434=_0x2a1bbf;this[_0x1be434(0x349)][_0x1be434(0x482)](this['unitID'],this['type'],this[_0x1be434(0x3a9)],this['_pendingMutations']);}[_0x2a1bbf(0x22b)](){const _0x1a5819=_0x2a1bbf;return this[_0x1a5819(0x41e)][_0x1a5819(0x1b1)](this[_0x1a5819(0x3d3)]);}[_0x2a1bbf(0x24d)](){const _0xdae053=_0x2a1bbf;this[_0xdae053(0x41e)][_0xdae053(0x3f4)](this['unitID']);}['_executeRemoteChangeset'](_0x2f7584){const _0x2c0190=_0x2a1bbf;var _0x567d8e;const _0x43d619=this[_0x2c0190(0x24a)](_0x2f7584),_0x148889=_0x35fd0b(_0x43d619[_0x2c0190(0x3f1)],this[_0x2c0190(0x4d5)],{'fromCollab':!0x0});if(!_0x148889[_0x2c0190(0x1ba)])throw _0x148889[_0x2c0190(0x2c6)]instanceof Error?_0x148889['error']:new Error((_0x567d8e=_0x148889['error'])!=null?_0x567d8e:_0x2c0190(0x331));this[_0x2c0190(0x2f4)](_0x43d619),this[_0x2c0190(0x371)](_0x2f7584),this['_transformSelections'](_0x43d619),this[_0x2c0190(0x271)](_0x43d619),this[_0x2c0190(0x24d)]();}}let Ee=class extends fe{constructor(_0xd89bec,_0x124886,_0x58f7f0,_0x1e8fb6,_0xd7e98b,_0x7462b3,_0x241dca,_0x2920d0,_0x1a810a,_0x384121){const _0x466a3a=_0x2a1bbf;super(_0xd89bec,_0x124886,null,[],_0x58f7f0,_0x2920d0,_0x241dca,_0x1e8fb6,_0xd7e98b),l(this,_0x466a3a(0x1db),_0x466a3a(0x330)),(this['_injector']=_0x7462b3,this['_logService']=_0x1a810a,this['_transformService']=_0x384121);}['appendMutation'](_0x33b3a5){const _0xbab0bb=_0x2a1bbf,_0x29bafa=this[_0xbab0bb(0x4ac)][_0xbab0bb(0x27e)](J,this[_0xbab0bb(0x3d3)],this[_0xbab0bb(0x1cb)],[_0x33b3a5],this[_0xbab0bb(0x2c7)]);return _0x29bafa[_0xbab0bb(0x39b)](),_0x29bafa[_0xbab0bb(0x3a8)](),_0x29bafa;}[_0x2a1bbf(0x537)](_0x583a07){const _0x1d286d=_0x2a1bbf;if(this[_0x1d286d(0x3bf)](_0x583a07))return this[_0x1d286d(0x4ac)]['createInstance'](V,this[_0x1d286d(0x3d3)],this['type'],null,[],null,[_0x583a07],this['_handler']);try{const _0x166ffa=this['_transformService']['transformMutationsWithChangeset'](_0x583a07,[Tr]);if(_0x1e2179(_0x166ffa)){const {c1Prime:_0x24c06f}=_0x166ffa;return this[_0x1d286d(0x1e5)](_0x24c06f),this;}throw _0x166ffa[_0x1d286d(0x2c6)];}catch(_0x353bde){return this[_0x1d286d(0x33c)][_0x1d286d(0x2c6)](_0x353bde),this['_onConflict'](!0x1);}}[_0x2a1bbf(0x257)](_0x1d3673){const _0x4a52a7=_0x2a1bbf;return this[_0x4a52a7(0x4ac)][_0x4a52a7(0x27e)](se,this['unitID'],this[_0x4a52a7(0x1cb)],null,[],this[_0x4a52a7(0x2c7)],_0x1d3673);}[_0x2a1bbf(0x2d1)](){const _0x20eb8b=_0x2a1bbf;throw new Error(_0x20eb8b(0x49a));}[_0x2a1bbf(0x522)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x2a1bbf(0x3e1)](){return this;}[_0x2a1bbf(0x2e0)](){const _0x25fde4=_0x2a1bbf;return this[_0x25fde4(0x4ac)]['createInstance'](ie,this[_0x25fde4(0x3d3)],this[_0x25fde4(0x1cb)],null,[],this['_handler']);}[_0x2a1bbf(0x33b)](){return this;}[_0x2a1bbf(0x2fd)](){const _0x42faf0=_0x2a1bbf;throw new Error(_0x42faf0(0x1c7));}['fetchMiss'](){const _0x47db7a=_0x2a1bbf,_0x324e43=this[_0x47db7a(0x41e)][_0x47db7a(0x1b1)](this[_0x47db7a(0x3d3)]);return this[_0x47db7a(0x2c7)]['onMissingChangesets']({'from':_0x324e43,'to':0x0}),this[_0x47db7a(0x4ac)][_0x47db7a(0x27e)](V,this[_0x47db7a(0x3d3)],this['type'],null,[],null,[],this[_0x47db7a(0x2c7)]);}};Ee=me([f(0x3,_0x55fbd9(_0x4329d3)),f(0x4,_0x55fbd9(D)),f(0x5,_0x55fbd9(_0x297a6b)),f(0x6,_0x2e73bf),f(0x7,_0x31e03d),f(0x8,_0x2e1f3f),f(0x9,_0xa94b77)],Ee);let J=class extends fe{constructor(_0x14f65e,_0x19dcb0,_0x136aac,_0xca282,_0x3e2725,_0x52eaef,_0x58b160,_0x39d6cd,_0x580505,_0x1405a9,_0x584bbd,_0x38dfe3,_0x2ecfcc,_0x5169fc){const _0x32fe77=_0x2a1bbf;super(_0x14f65e,_0x19dcb0,null,_0x136aac,_0xca282,_0x1405a9,_0x5169fc,_0x52eaef,_0x58b160),l(this,_0x32fe77(0x1db),_0x32fe77(0x44c)),l(this,'_scheduleTimestamp',null),l(this,'_sendingTimer',null),(this[_0x32fe77(0x4ac)]=_0x3e2725,this['_memberService']=_0x39d6cd,this[_0x32fe77(0x33c)]=_0x580505,this[_0x32fe77(0x536)]=_0x584bbd,this['_transformService']=_0x38dfe3,this['_univerInstanceService']=_0x2ecfcc);}[_0x2a1bbf(0x32b)](_0x508237){const _0x18098a=_0x2a1bbf;return this[_0x18098a(0x346)][_0x18098a(0x365)](_0x508237),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x49acac){const _0x471e72=_0x2a1bbf;if(this[_0x471e72(0x3bf)](_0x49acac))return this[_0x471e72(0x423)](),this[_0x471e72(0x4ac)]['createInstance'](V,this[_0x471e72(0x3d3)],this[_0x471e72(0x1cb)],null,this[_0x471e72(0x346)],null,[_0x49acac],this[_0x471e72(0x2c7)]);try{const _0x78e9c4=this[_0x471e72(0x250)][_0x471e72(0x2b0)](_0x49acac,this['_pendingMutations']);if(_0x1e2179(_0x78e9c4)){const {c1Prime:_0x1d8e48,m2Prime:_0x50f38b}=_0x78e9c4;this[_0x471e72(0x1e5)](_0x1d8e48);const _0x3f8825=this[_0x471e72(0x4ac)][_0x471e72(0x27e)](J,this['unitID'],this['type'],_0x50f38b,this[_0x471e72(0x2c7)]);return this[_0x471e72(0x423)](),_0x3f8825[_0x471e72(0x39b)](this[_0x471e72(0x2ba)]?Math['max'](0x0,new Date()['getTime']()-this[_0x471e72(0x2ba)]):this[_0x471e72(0x4a2)]()),_0x3f8825;}throw _0x78e9c4[_0x471e72(0x2c6)];}catch(_0xdd5325){return this['_logService'][_0x471e72(0x2c6)](_0xdd5325),this[_0x471e72(0x257)](!0x1);}}[_0x2a1bbf(0x2d1)](){const _0x4a386c=_0x2a1bbf;throw new Error(_0x4a386c(0x2a3));}[_0x2a1bbf(0x522)](){const _0x351e7d=_0x2a1bbf;throw new Error(_0x351e7d(0x1b2));}[_0x2a1bbf(0x3e1)](){return this;}[_0x2a1bbf(0x2e0)](){const _0x39d3c8=_0x2a1bbf;return this[_0x39d3c8(0x423)](),this[_0x39d3c8(0x4ac)][_0x39d3c8(0x27e)](ie,this[_0x39d3c8(0x3d3)],this['type'],null,this['_pendingMutations'],this[_0x39d3c8(0x2c7)]);}[_0x2a1bbf(0x33b)](){return this;}[_0x2a1bbf(0x39b)](_0x45360c){const _0x3c9762=_0x2a1bbf,_0x3e9fbc=_0x45360c!=null?_0x45360c:this[_0x3c9762(0x4a2)]();this[_0x3c9762(0x2ba)]=new Date()[_0x3c9762(0x362)](),this[_0x3c9762(0x3e7)]=window[_0x3c9762(0x34d)](()=>{const _0x5283c9=_0x3c9762;this['_clearScheduledTask']();let _0x140589=null;switch(this[_0x5283c9(0x1cb)]){case B[_0x5283c9(0x26f)]:{_0x140589=ms(this[_0x5283c9(0x346)],this[_0x5283c9(0x3d3)],this[_0x5283c9(0x4b4)],this[_0x5283c9(0x41e)],this[_0x5283c9(0x3a1)]);break;}case B[_0x5283c9(0x2ca)]:{this[_0x5283c9(0x346)][_0x5283c9(0x2ac)](_0x49031d=>_0x49031d['id']===_0x3d88ce['id'])?_0x140589=br(this[_0x5283c9(0x346)],this[_0x5283c9(0x3d3)],this['_univerInstanceService'],this[_0x5283c9(0x41e)],this[_0x5283c9(0x3a1)]):_0x140589=ms(this['_pendingMutations'],this[_0x5283c9(0x3d3)],this[_0x5283c9(0x4b4)],this[_0x5283c9(0x41e)],this[_0x5283c9(0x3a1)]);break;}default:throw new Error(_0x5283c9(0x4e9)+this['type']+_0x5283c9(0x3ec));}const {changeset:_0x57d1f2,pendingMutations:_0x209945}=_0x140589;this['_handler'][_0x5283c9(0x372)](_0x57d1f2);const _0x423440=_0x209945[_0x5283c9(0x1bd)]?this[_0x5283c9(0x4ac)]['createInstance'](z,this['unitID'],this[_0x5283c9(0x1cb)],_0x57d1f2,_0x209945,this[_0x5283c9(0x2c7)],void 0x0):this['_injector'][_0x5283c9(0x27e)](te,this['unitID'],this['type'],_0x57d1f2,this[_0x5283c9(0x2c7)]);_0x423440[_0x5283c9(0x3a8)](),this[_0x5283c9(0x2c7)][_0x5283c9(0x3bb)](this,_0x423440);},_0x3e9fbc);}['_getSendChangesetTimeout'](){const _0x42fd6e=_0x2a1bbf;var _0x52a343;const _0x58ae66=this[_0x42fd6e(0x536)][_0x42fd6e(0x47c)](j);return(_0x52a343=_0x58ae66==null?void 0x0:_0x58ae66['sendChangesetTimeout'])!=null?_0x52a343:bn;}[_0x2a1bbf(0x2fd)](){const _0x1897df=_0x2a1bbf;throw new Error(_0x1897df(0x4df));}[_0x2a1bbf(0x423)](){const _0x13e1d9=_0x2a1bbf;this[_0x13e1d9(0x3e7)]!=null&&(clearTimeout(this[_0x13e1d9(0x3e7)]),this[_0x13e1d9(0x3e7)]=null);}[_0x2a1bbf(0x257)](_0x2532b6){const _0x284a25=_0x2a1bbf;return this['_clearScheduledTask'](),this[_0x284a25(0x4ac)]['createInstance'](se,this[_0x284a25(0x3d3)],this['type'],null,this['_pendingMutations'],this[_0x284a25(0x2c7)],_0x2532b6);}};J=me([f(0x4,_0x55fbd9(_0x297a6b)),f(0x5,_0x55fbd9(_0x4329d3)),f(0x6,_0x55fbd9(D)),f(0x7,_0x55fbd9(_e)),f(0x8,_0x2e1f3f),f(0x9,_0x31e03d),f(0xa,_0x39b511),f(0xb,_0xa94b77),f(0xc,_0x23793a),f(0xd,_0x2e73bf)],J);let te=class extends fe{constructor(_0x52139e,_0x13778d,_0x3a331b,_0x24f530,_0x5d9072,_0x4a2d6b,_0x3de006,_0x367fd0,_0x5dff6d,_0x3a3588,_0x3e1c93){const _0x12123f=_0x2a1bbf;super(_0x52139e,_0x13778d,_0x3a331b,[],_0x24f530,_0x367fd0,_0x3e1c93,_0x4a2d6b,_0x3de006),l(this,_0x12123f(0x1db),'awaiting'),l(this,'_resendTimeout',0x0),l(this,_0x12123f(0x344)),l(this,_0x12123f(0x1da)),(this[_0x12123f(0x4ac)]=_0x5d9072,this[_0x12123f(0x33c)]=_0x5dff6d,this['_transformService']=_0x3a3588);}[_0x2a1bbf(0x32b)](_0x3b96b8){const _0x390c93=_0x2a1bbf;this[_0x390c93(0x423)]();const _0xaf0289=this[_0x390c93(0x4ac)][_0x390c93(0x27e)](z,this[_0x390c93(0x3d3)],this['type'],this[_0x390c93(0x3a9)],[_0x3b96b8],this['_handler'],this[_0x390c93(0x344)]);return _0xaf0289['_updateLocalCache'](),_0xaf0289;}[_0x2a1bbf(0x537)](_0x55edaf){const _0x3b9030=_0x2a1bbf;if(this[_0x3b9030(0x3bf)](_0x55edaf))return this['_clearScheduledTask'](),this[_0x3b9030(0x4ac)][_0x3b9030(0x27e)](V,this[_0x3b9030(0x3d3)],this[_0x3b9030(0x1cb)],this[_0x3b9030(0x3a9)],[],null,[_0x55edaf],this['_handler']);try{const _0x977d40=this[_0x3b9030(0x250)][_0x3b9030(0x30a)]([_0x55edaf],[this[_0x3b9030(0x3a9)]],!0x1);if(_0x24f5b2(_0x977d40)){const {c1Prime:_0x215392,c2Prime:_0x4fb9a6}=_0x977d40;this[_0x3b9030(0x1e5)](_0x215392[0x0]),_0x4fb9a6[0x0][_0x3b9030(0x439)]=this[_0x3b9030(0x22b)](),this[_0x3b9030(0x423)]();const _0x5c7670=this[_0x3b9030(0x4ac)][_0x3b9030(0x27e)](te,this[_0x3b9030(0x3d3)],this[_0x3b9030(0x1cb)],_0x4fb9a6[0x0],this['_handler']);return _0x5c7670['_updateLocalCache'](),_0x5c7670;}return this[_0x3b9030(0x257)](!0x1);}catch(_0x12c76f){return this['_logService']['error'](_0x12c76f),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x1c1b90){const _0x511cd8=_0x2a1bbf;this[_0x511cd8(0x423)]();const _0x5ea183=this[_0x511cd8(0x41e)][_0x511cd8(0x1b1)](this[_0x511cd8(0x3d3)]);if(_0x1c1b90['revision']<_0x5ea183-0x1)return this;if(this[_0x511cd8(0x3bf)](_0x1c1b90))return this[_0x511cd8(0x4ac)][_0x511cd8(0x27e)](V,this[_0x511cd8(0x3d3)],this[_0x511cd8(0x1cb)],null,[],this[_0x511cd8(0x3a9)],[],this[_0x511cd8(0x2c7)]);this['_incrementRevisionNumber']();const _0x1152e4=this[_0x511cd8(0x4ac)][_0x511cd8(0x27e)](Ee,this[_0x511cd8(0x3d3)],this[_0x511cd8(0x1cb)],this[_0x511cd8(0x2c7)]);return _0x1152e4[_0x511cd8(0x3a8)](),_0x1152e4;}[_0x2a1bbf(0x522)](_0x1ab672){const _0x5d8220=_0x2a1bbf;return this[_0x5d8220(0x257)](!!(_0x1ab672!=null&&_0x1ab672[_0x5d8220(0x450)]));}[_0x2a1bbf(0x3e1)](_0x26fe7b){const _0xa522a7=_0x2a1bbf;return this[_0xa522a7(0x1b5)]>Ks?this[_0xa522a7(0x2e0)]():(this['_resendTimer']=Ys(this[_0xa522a7(0x1b5)],{'timeout':this[_0xa522a7(0x1b5)],'reqId':_0x26fe7b[_0xa522a7(0x33d)]}),this[_0xa522a7(0x1da)]=this[_0xa522a7(0x344)][_0xa522a7(0x413)](({reqId:_0x2a87e6,timeout:_0x3644bf})=>{const _0x59cd8f=_0xa522a7;this[_0x59cd8f(0x2f6)](_0x2a87e6,_0x3644bf);}),this);}[_0x2a1bbf(0x2e0)](){const _0x191135=_0x2a1bbf;return this[_0x191135(0x423)](),this[_0x191135(0x4ac)][_0x191135(0x27e)](ie,this['unitID'],this[_0x191135(0x1cb)],this[_0x191135(0x3a9)],[],this[_0x191135(0x2c7)]);}[_0x2a1bbf(0x33b)](){return this;}['resend'](){const _0x490ac9=_0x2a1bbf;this[_0x490ac9(0x2c7)]['onSendChangeset'](this[_0x490ac9(0x3a9)]);}[_0x2a1bbf(0x257)](_0x4db2f7){const _0xca2fe5=_0x2a1bbf;return this[_0xca2fe5(0x423)](),this[_0xca2fe5(0x4ac)][_0xca2fe5(0x27e)](se,this['unitID'],this[_0xca2fe5(0x1cb)],this[_0xca2fe5(0x3a9)],[],this[_0xca2fe5(0x2c7)],_0x4db2f7);}[_0x2a1bbf(0x2f6)](_0x4f493e,_0x2250c3){const _0x1c5676=_0x2a1bbf;var _0x1ecd50;_0x4f493e===((_0x1ecd50=this['_awaitingChangeset'])==null?void 0x0:_0x1ecd50['reqId'])&&(this[_0x1c5676(0x2fd)](),this[_0x1c5676(0x1b5)]=_0x2250c3===0x0?0x3e8:_0x2250c3*0x2);}['_clearScheduledTask'](){const _0x43264f=_0x2a1bbf;var _0x29aeb7;(_0x29aeb7=this[_0x43264f(0x1da)])==null||_0x29aeb7[_0x43264f(0x538)](),this[_0x43264f(0x1b5)]=0x0;}};te=me([f(0x4,_0x55fbd9(_0x297a6b)),f(0x5,_0x55fbd9(_0x4329d3)),f(0x6,_0x55fbd9(D)),f(0x7,_0x31e03d),f(0x8,_0x2e1f3f),f(0x9,_0xa94b77),f(0xa,_0x2e73bf)],te);let z=class extends fe{constructor(_0x1ada84,_0x19f911,_0x2a6f33,_0x121207,_0x3c5598,_0x32140d,_0x458656,_0x9cac1d,_0x2b68c2,_0x155ac3,_0xf2a83e,_0x505f68,_0xbb6f96){const _0x21b0c0=_0x2a1bbf;super(_0x1ada84,_0x19f911,_0x2a6f33,_0x121207,_0x3c5598,_0x155ac3,_0xbb6f96,_0x9cac1d,_0x2b68c2),l(this,_0x21b0c0(0x1db),_0x21b0c0(0x384)),l(this,_0x21b0c0(0x1b5),0x0),l(this,_0x21b0c0(0x344)),l(this,_0x21b0c0(0x1da)),(this[_0x21b0c0(0x4ac)]=_0x458656,this[_0x21b0c0(0x33c)]=_0xf2a83e,this['_transformService']=_0x505f68,_0x32140d&&(this[_0x21b0c0(0x344)]=_0x32140d,this[_0x21b0c0(0x1da)]=this[_0x21b0c0(0x344)][_0x21b0c0(0x413)](({reqId:_0x3d0b52,timeout:_0x3392f6})=>{this['_resendWithTimeout'](_0x3d0b52,_0x3392f6);})));}['appendMutation'](_0x8c752b){const _0x3dac94=_0x2a1bbf;return this[_0x3dac94(0x346)]['push'](_0x8c752b),this;}[_0x2a1bbf(0x537)](_0x5d32a4){const _0x50e961=_0x2a1bbf;if(this[_0x50e961(0x3bf)](_0x5d32a4))return this[_0x50e961(0x423)](),this['_injector'][_0x50e961(0x27e)](V,this[_0x50e961(0x3d3)],this[_0x50e961(0x1cb)],this[_0x50e961(0x3a9)],this[_0x50e961(0x346)],null,[_0x5d32a4],this[_0x50e961(0x2c7)]);try{const _0x3a9526=this[_0x50e961(0x250)]['transformChangesets']([_0x5d32a4],[this['_awaitingChangeset']],!0x1);if(_0x24f5b2(_0x3a9526)){const {c1Prime:_0x255c23,c2Prime:_0x569eea}=_0x3a9526,_0x4d81f9=this[_0x50e961(0x250)]['transformMutationsWithChangeset'](_0x255c23[0x0],this[_0x50e961(0x346)]);if(_0x1e2179(_0x4d81f9)){const {c1Prime:_0x3ec3bb,m2Prime:_0x5bc5cd}=_0x4d81f9;return this[_0x50e961(0x1e5)](_0x3ec3bb),_0x569eea[0x0][_0x50e961(0x439)]=this['_getCurrentRevision'](),this[_0x50e961(0x423)](),this[_0x50e961(0x4ac)][_0x50e961(0x27e)](z,this[_0x50e961(0x3d3)],this[_0x50e961(0x1cb)],_0x569eea[0x0],_0x5bc5cd,this[_0x50e961(0x2c7)],void 0x0);}throw _0x4d81f9[_0x50e961(0x2c6)];}throw _0x3a9526[_0x50e961(0x2c6)];}catch(_0x574e22){return this[_0x50e961(0x33c)][_0x50e961(0x2c6)](_0x574e22),this[_0x50e961(0x257)](!0x1);}}[_0x2a1bbf(0x2d1)](_0x7f0d46){const _0x20ff9b=_0x2a1bbf;if(this[_0x20ff9b(0x423)](),this[_0x20ff9b(0x3bf)](_0x7f0d46))return this[_0x20ff9b(0x4ac)]['createInstance'](V,this[_0x20ff9b(0x3d3)],this[_0x20ff9b(0x1cb)],null,this[_0x20ff9b(0x346)],this[_0x20ff9b(0x3a9)],[],this[_0x20ff9b(0x2c7)]);this['_incrementRevisionNumber']();const _0x406fc5=this[_0x20ff9b(0x4ac)]['createInstance'](J,this[_0x20ff9b(0x3d3)],this[_0x20ff9b(0x1cb)],this[_0x20ff9b(0x346)],this[_0x20ff9b(0x2c7)]);return _0x406fc5[_0x20ff9b(0x39b)](),_0x406fc5[_0x20ff9b(0x3a8)](),_0x406fc5;}[_0x2a1bbf(0x522)](_0x57c379){const _0x12ad3e=_0x2a1bbf;return this[_0x12ad3e(0x257)](!!(_0x57c379!=null&&_0x57c379['isPermissionRej']));}['onRemoteRetry'](_0x27adc6){const _0x3d4aeb=_0x2a1bbf;return this[_0x3d4aeb(0x1b5)]>Ks?this[_0x3d4aeb(0x2e0)]():(this[_0x3d4aeb(0x344)]=Ys(this[_0x3d4aeb(0x1b5)],{'timeout':this[_0x3d4aeb(0x1b5)],'reqId':_0x27adc6[_0x3d4aeb(0x33d)]}),this['_sender']=this[_0x3d4aeb(0x344)]['subscribe'](({reqId:_0x3c1cd8,timeout:_0x2c5382})=>{const _0x5959fb=_0x3d4aeb;this[_0x5959fb(0x2f6)](_0x3c1cd8,_0x2c5382);}),this);}[_0x2a1bbf(0x2e0)](){const _0xe54bb8=_0x2a1bbf;return this[_0xe54bb8(0x423)](),this[_0xe54bb8(0x4ac)][_0xe54bb8(0x27e)](ie,this[_0xe54bb8(0x3d3)],this['type'],this[_0xe54bb8(0x3a9)],this['_pendingMutations'],this[_0xe54bb8(0x2c7)]);}[_0x2a1bbf(0x33b)](){return this;}[_0x2a1bbf(0x2fd)](){const _0x303345=_0x2a1bbf;this['_handler'][_0x303345(0x372)](this['_awaitingChangeset']);}[_0x2a1bbf(0x257)](_0x1aa350){const _0x4d4f7d=_0x2a1bbf;return this['_clearScheduledTask'](),this['_injector'][_0x4d4f7d(0x27e)](se,this[_0x4d4f7d(0x3d3)],this['type'],null,this['_pendingMutations'],this[_0x4d4f7d(0x2c7)],_0x1aa350);}[_0x2a1bbf(0x2f6)](_0x4bfbb6,_0x25bd35){const _0x1d5b8b=_0x2a1bbf;var _0x4629f4;_0x4bfbb6===((_0x4629f4=this['_awaitingChangeset'])==null?void 0x0:_0x4629f4[_0x1d5b8b(0x33d)])&&(this[_0x1d5b8b(0x2fd)](),this[_0x1d5b8b(0x1b5)]=_0x25bd35===0x0?0x3e8:_0x25bd35*0x2);}[_0x2a1bbf(0x423)](){const _0x5e58f9=_0x2a1bbf;var _0x4a44e2;(_0x4a44e2=this[_0x5e58f9(0x1da)])==null||_0x4a44e2[_0x5e58f9(0x538)](),this[_0x5e58f9(0x1b5)]=0x0;}};z=me([f(0x6,_0x55fbd9(_0x297a6b)),f(0x7,_0x55fbd9(_0x4329d3)),f(0x8,_0x55fbd9(D)),f(0x9,_0x31e03d),f(0xa,_0x2e1f3f),f(0xb,_0xa94b77),f(0xc,_0x2e73bf)],z);let se=class extends fe{constructor(_0x71e471,_0x135d2c,_0x1941bc,_0x29c083,_0x435ac8,_0x50ad0d=!0x1,_0x98ae73,_0x8a54e,_0x46fd3b,_0x39071a,_0x1bcec1,_0x2537c5,_0x2f1946){const _0x2ea910=_0x2a1bbf;super(_0x71e471,_0x135d2c,_0x1941bc,_0x29c083,_0x435ac8,_0x8a54e,_0x46fd3b,_0x1bcec1,_0x39071a),l(this,_0x2ea910(0x1db),_0x2ea910(0x490)),(this[_0x2ea910(0x3b1)]=_0x50ad0d,this[_0x2ea910(0x506)]=_0x98ae73,this[_0x2ea910(0x442)]=_0x2537c5,this[_0x2ea910(0x434)]=_0x2f1946,this['_showConflictNotification'](),this[_0x2ea910(0x24f)](),this[_0x2ea910(0x481)]());}[_0x2a1bbf(0x32b)](){return this;}[_0x2a1bbf(0x537)](){return this;}['onRemoteAck'](){return this;}[_0x2a1bbf(0x522)](){return this;}[_0x2a1bbf(0x3e1)](){return this;}['toggleOffline'](){return this;}[_0x2a1bbf(0x33b)](){return this;}[_0x2a1bbf(0x2fd)](){const _0x89d3f1=_0x2a1bbf;throw new Error(_0x89d3f1(0x513));}['_clearLocalCache'](){const _0xe57fdf=_0x2a1bbf;this[_0xe57fdf(0x349)][_0xe57fdf(0x482)](this['unitID'],this[_0xe57fdf(0x1cb)],null,[]);}[_0x2a1bbf(0x2b3)](){const _0x487a3a=_0x2a1bbf;this[_0x487a3a(0x3b1)]?this[_0x487a3a(0x434)][_0x487a3a(0x43a)]({'title':this[_0x487a3a(0x442)]['t'](_0x487a3a(0x4ad)),'content':this['_localeService']['t'](_0x487a3a(0x202)),'type':_0x487a3a(0x2c6),'duration':0x0}):this[_0x487a3a(0x434)][_0x487a3a(0x43a)]({'title':this[_0x487a3a(0x442)]['t']('conflict.title'),'content':this[_0x487a3a(0x442)]['t'](_0x487a3a(0x4ef)),'type':_0x487a3a(0x2c6),'duration':0x0});}[_0x2a1bbf(0x481)](){const _0x17aeac=_0x2a1bbf;this[_0x17aeac(0x506)][_0x17aeac(0x303)](new _0x472927(this['unitID'])['id'],!0x1);}};se=me([f(0x6,_0x55fbd9(_0x5717a8)),f(0x7,_0x31e03d),f(0x8,_0x2e73bf),f(0x9,_0x55fbd9(D)),f(0xa,_0x55fbd9(_0x4329d3)),f(0xb,_0x55fbd9(_0x5d60a9)),f(0xc,_0x32d9d6)],se);let ie=class extends fe{constructor(_0x5b5cbd,_0x1d7602,_0x3debf5,_0x1f2cc2,_0x2d18f7,_0xdb8b60,_0x129599,_0x332e46,_0x4a8214,_0x4ec1c9){const _0x5eb8a0=_0x2a1bbf;super(_0x5b5cbd,_0x1d7602,_0x3debf5,_0x1f2cc2,_0x2d18f7,_0x4a8214,_0x4ec1c9,_0x129599,_0x332e46),l(this,_0x5eb8a0(0x1db),_0x5eb8a0(0x210)),this['_injector']=_0xdb8b60;}[_0x2a1bbf(0x32b)](_0x4a4beb){const _0x47fe8c=_0x2a1bbf;return this[_0x47fe8c(0x346)][_0x47fe8c(0x365)](_0x4a4beb),this[_0x47fe8c(0x3a8)](),this;}[_0x2a1bbf(0x537)](_0x14b6b1){const _0x4438a8=_0x2a1bbf;throw new Error(_0x4438a8(0x451));}[_0x2a1bbf(0x2d1)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x2a1bbf(0x522)](){const _0x5ae0b6=_0x2a1bbf;throw new Error(_0x5ae0b6(0x206));}['onRemoteRetry'](){return this;}[_0x2a1bbf(0x2e0)](){return this;}[_0x2a1bbf(0x33b)](){const _0x3ccf3e=_0x2a1bbf,{_injector:_0x440397,_pendingMutations:_0x10e086,_awaitingChangeset:_0x4f8eac,unitID:_0x4923e8,_handler:_0x357022,type:_0x590b1a}=this,_0x5067ed=Xs(_0x440397,_0x4923e8,_0x590b1a,_0x4f8eac,_0x10e086,_0x357022);return _0x5067ed instanceof J?_0x5067ed[_0x3ccf3e(0x39b)]():(_0x5067ed instanceof z||_0x5067ed instanceof te)&&_0x5067ed['resend'](),_0x5067ed;}['resend'](){const _0x520af3=_0x2a1bbf;throw new Error(_0x520af3(0x2a4));}};ie=me([f(0x5,_0x55fbd9(_0x297a6b)),f(0x6,_0x55fbd9(_0x4329d3)),f(0x7,_0x55fbd9(D)),f(0x8,_0x31e03d),f(0x9,_0x2e73bf)],ie);let V=class extends fe{constructor(_0x42eabd,_0x1977fa,_0x22d5a1,_0x38fe98,_0x5454d8,_0x53e7d8,_0x56f9fe,_0x2d98ef,_0x40d0f6,_0x47f57c,_0x246191,_0x3f2242,_0x5e000c,_0x3cfdc3){const _0x5db28a=_0x2a1bbf;super(_0x42eabd,_0x1977fa,_0x22d5a1,_0x38fe98,_0x56f9fe,_0x3f2242,_0x5e000c,_0x40d0f6,_0x47f57c),l(this,_0x5db28a(0x1db),'fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x5454d8,this['_queuedRemoteChangesets']=_0x53e7d8,this[_0x5db28a(0x4ac)]=_0x2d98ef,this[_0x5db28a(0x33c)]=_0x246191,this[_0x5db28a(0x250)]=_0x3cfdc3);}['onMissedChangesetFetched'](_0x3cc9ac){const _0xf36239=_0x2a1bbf;try{const _0x3827a8=[..._0x3cc9ac,...this['_queuedRemoteChangesets']],_0x418112=[this[_0xf36239(0x3a9)]||this[_0xf36239(0x2ae)]][_0xf36239(0x393)](_0x268527=>!!_0x268527);let _0x4ddfd4,_0xc8fb4e;if(_0x418112[_0xf36239(0x1bd)]){const _0x5b6c84=this[_0xf36239(0x250)][_0xf36239(0x30a)](_0x3827a8,_0x418112,!0x1);if(!_0x24f5b2(_0x5b6c84))throw _0x5b6c84['error'];_0x4ddfd4=_0x5b6c84['c1Prime'],_0xc8fb4e=_0x5b6c84[_0xf36239(0x22a)];}else _0x4ddfd4=_0x3827a8,_0xc8fb4e=[];let _0x30827f=this[_0xf36239(0x346)];_0x4ddfd4[_0xf36239(0x28a)](_0x7bf402=>{const _0x220ceb=_0xf36239;let _0x10a7a5;if(_0x30827f[_0x220ceb(0x1bd)]){const _0x5d6f99=this[_0x220ceb(0x250)][_0x220ceb(0x2b0)](_0x7bf402,_0x30827f);if(!_0x1e2179(_0x5d6f99))throw _0x5d6f99[_0x220ceb(0x2c6)];_0x10a7a5=_0x5d6f99[_0x220ceb(0x219)],_0x30827f=_0x5d6f99[_0x220ceb(0x2d8)];}else _0x10a7a5=_0x7bf402;this[_0x220ceb(0x1e5)](_0x10a7a5);}),this[_0xf36239(0x2ae)]&&this['_incrementRevisionNumber'](),this[_0xf36239(0x3a9)]&&_0xc8fb4e[_0xf36239(0x1bd)]&&(_0xc8fb4e[0x0][_0xf36239(0x439)]=this[_0xf36239(0x22b)]());let _0x36de6a;if(this[_0xf36239(0x3a9)]&&_0x30827f[_0xf36239(0x1bd)]!==0x0)_0x36de6a=this['_injector'][_0xf36239(0x27e)](z,this[_0xf36239(0x3d3)],this[_0xf36239(0x1cb)],_0xc8fb4e[0x0],_0x30827f,this[_0xf36239(0x2c7)],void 0x0);else{if(this[_0xf36239(0x3a9)]&&_0x30827f[_0xf36239(0x1bd)]===0x0)_0xc8fb4e[0x0]['baseRev']=this[_0xf36239(0x22b)](),_0x36de6a=this[_0xf36239(0x4ac)][_0xf36239(0x27e)](te,this[_0xf36239(0x3d3)],this[_0xf36239(0x1cb)],_0xc8fb4e[0x0],this['_handler']);else{if(_0x30827f[_0xf36239(0x1bd)]!==0x0){const _0xfa02e8=this[_0xf36239(0x4ac)][_0xf36239(0x27e)](J,this['unitID'],this[_0xf36239(0x1cb)],_0x30827f,this[_0xf36239(0x2c7)]);_0xfa02e8[_0xf36239(0x39b)](),_0x36de6a=_0xfa02e8;}else _0x36de6a=this[_0xf36239(0x4ac)][_0xf36239(0x27e)](Ee,this['unitID'],this[_0xf36239(0x1cb)],this['_handler']);}}return _0x36de6a['_updateLocalCache'](),_0x36de6a;}catch(_0x2f33c8){return this[_0xf36239(0x33c)][_0xf36239(0x2c6)](_0xf36239(0x2c0),_0xf36239(0x1bc),_0x2f33c8),this[_0xf36239(0x4ac)][_0xf36239(0x27e)](se,this[_0xf36239(0x3d3)],this[_0xf36239(0x1cb)],this[_0xf36239(0x3a9)],this[_0xf36239(0x346)],this[_0xf36239(0x2c7)],!0x1);}}['resend'](){const _0x130602=_0x2a1bbf;throw new Error(_0x130602(0x3b4));}['appendMutation'](_0x26d8bf){const _0x321761=_0x2a1bbf;return this[_0x321761(0x346)]['push'](_0x26d8bf),this;}[_0x2a1bbf(0x537)](_0x55e93d){const _0x1e0c9b=_0x2a1bbf;return this[_0x1e0c9b(0x248)][_0x1e0c9b(0x365)](_0x55e93d),this;}[_0x2a1bbf(0x2d1)](_0x1576f1){const _0x4e5c4d=_0x2a1bbf;if(this['_awaitingChangeset'])return this[_0x4e5c4d(0x2ae)]=this[_0x4e5c4d(0x3a9)],this[_0x4e5c4d(0x3a9)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x1cd4dc){const _0x23e9c1=_0x2a1bbf;return this[_0x23e9c1(0x257)](!!(_0x1cd4dc!=null&&_0x1cd4dc[_0x23e9c1(0x450)]));}['onRemoteRetry'](){return this;}[_0x2a1bbf(0x2e0)](){const _0x4151d0=_0x2a1bbf;return this[_0x4151d0(0x4ac)][_0x4151d0(0x27e)](ie,this[_0x4151d0(0x3d3)],this[_0x4151d0(0x1cb)],this[_0x4151d0(0x3a9)],this[_0x4151d0(0x346)],this[_0x4151d0(0x2c7)]);}['toggleOnline'](){return this;}[_0x2a1bbf(0x257)](_0x1c6483){const _0x3ba470=_0x2a1bbf;return this[_0x3ba470(0x4ac)]['createInstance'](se,this[_0x3ba470(0x3d3)],this[_0x3ba470(0x1cb)],this[_0x3ba470(0x3a9)],this[_0x3ba470(0x346)],this['_handler'],_0x1c6483);}};V=me([f(0x7,_0x55fbd9(_0x297a6b)),f(0x8,_0x55fbd9(_0x4329d3)),f(0x9,_0x55fbd9(D)),f(0xa,_0x2e1f3f),f(0xb,_0x31e03d),f(0xc,_0x2e73bf),f(0xd,_0xa94b77)],V);function Xs(_0x442c4c,_0x402cd5,_0x331b5d,_0x38b2d7,_0x2c9416,_0x363780){const _0x558ec7=_0x2a1bbf;return _0x38b2d7&&_0x2c9416[_0x558ec7(0x1bd)]?_0x442c4c['createInstance'](z,_0x402cd5,_0x331b5d,_0x38b2d7,_0x2c9416,_0x363780,void 0x0):_0x38b2d7?_0x442c4c[_0x558ec7(0x27e)](te,_0x402cd5,_0x331b5d,_0x38b2d7,_0x363780):_0x2c9416[_0x558ec7(0x1bd)]?_0x442c4c[_0x558ec7(0x27e)](J,_0x402cd5,_0x331b5d,_0x2c9416,_0x363780):_0x442c4c[_0x558ec7(0x27e)](Ee,_0x402cd5,_0x331b5d,_0x363780);}var Dr=Object['defineProperty'],wr=Object[_0x2a1bbf(0x2ce)],Gt=(_0x811bf9,_0x26acdf,_0x38c39b,_0x426592)=>{const _0xbdee59=_0x2a1bbf;for(var _0x10aa65=_0x426592>0x1?void 0x0:_0x426592?wr(_0x26acdf,_0x38c39b):_0x26acdf,_0x167baa=_0x811bf9[_0xbdee59(0x1bd)]-0x1,_0x41d27d;_0x167baa>=0x0;_0x167baa--)(_0x41d27d=_0x811bf9[_0x167baa])&&(_0x10aa65=(_0x426592?_0x41d27d(_0x26acdf,_0x38c39b,_0x10aa65):_0x41d27d(_0x10aa65))||_0x10aa65);return _0x426592&&_0x10aa65&&Dr(_0x26acdf,_0x38c39b,_0x10aa65),_0x10aa65;},p=(_0x5d6622,_0x1f8aa2)=>(_0x311153,_0x318686)=>_0x1f8aa2(_0x311153,_0x318686,_0x5d6622);let ze=class extends _0x5b2156{constructor(_0x6020b3,_0x1843a3,_0x4f139c,_0x404508,_0x363ecd,_0x177304,_0x36d049,_0x53c02e,_0xd28df0,_0x17c44b,_0x33f6b8,_0x56b7bc,_0x68afb7){const _0x565911=_0x2a1bbf;super(),l(this,'_state$',new _0x5bdcda(null)),l(this,_0x565911(0x1dd),this[_0x565911(0x229)][_0x565911(0x251)]()),l(this,_0x565911(0x3d9)),l(this,_0x565911(0x23a),!0x1),l(this,_0x565911(0x2df),''),l(this,_0x565911(0x1f5),0x0),l(this,_0x565911(0x2b7),this[_0x565911(0x1dd)][_0x565911(0x497)](_0x7371d7(_0x32f450=>_0x32f450?_0x32f450[_0x565911(0x1db)]:w[_0x565911(0x36b)]),_0x35fb95(0x1))),l(this,_0x565911(0x48a),!0x1),l(this,_0x565911(0x46e),[]),(this[_0x565911(0x3d3)]=_0x6020b3,this['session']=_0x1843a3,this[_0x565911(0x232)]=_0x4f139c,this[_0x565911(0x4ac)]=_0x404508,this['_localCacheService']=_0x363ecd,this[_0x565911(0x33a)]=_0x177304,this['_localeService']=_0x36d049,this[_0x565911(0x41e)]=_0x53c02e,this[_0x565911(0x33c)]=_0xd28df0,this['_commandService']=_0x17c44b,this[_0x565911(0x247)]=_0x33f6b8,this[_0x565911(0x506)]=_0x56b7bc,this[_0x565911(0x4ab)]=_0x68afb7);}get[_0x2a1bbf(0x320)](){const _0x33ffa5=_0x2a1bbf;return this[_0x33ffa5(0x3d9)];}async[_0x2a1bbf(0x375)](){const _0x4b0d25=_0x2a1bbf;if(this[_0x4b0d25(0x320)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x4b0d25(0x53d)]();}['pauseCollaboration'](){return this['_collaborationPaused']=!0x0,_0x4817bf(()=>{const _0x2eeda5=_0x736f;this[_0x2eeda5(0x23a)]=!0x1,this[_0x2eeda5(0x546)]();});}[_0x2a1bbf(0x462)](_0x41bd91){const _0x57a8c2=_0x2a1bbf;this[_0x57a8c2(0x3d9)]=_0x41bd91,this['_state$'][_0x57a8c2(0x2eb)](_0x41bd91);}async[_0x2a1bbf(0x53d)](){const _0x46d33d=_0x2a1bbf;var _0xd48f82;this[_0x46d33d(0x462)](await this['_createInitialState']()),this[_0x46d33d(0x4ab)]&&((_0xd48f82=this[_0x46d33d(0x4ab)])==null||_0xd48f82[_0x46d33d(0x4ba)](this['unitID']),this['disposeWithMe'](this[_0x46d33d(0x4ab)][_0x46d33d(0x2e9)](this[_0x46d33d(0x3d3)])[_0x46d33d(0x413)](_0x299654=>{const _0x52d758=_0x46d33d;this[_0x52d758(0x33c)][_0x52d758(0x322)](_0x52d758(0x407),_0x52d758(0x2f0),_0x299654),_0x299654===Ws[_0x52d758(0x4fd)]?(this['_messageService'][_0x52d758(0x43a)]({'content':this[_0x52d758(0x442)]['t'](_0x52d758(0x3f2)),'type':_0xc5184d[_0x52d758(0x361)]}),this[_0x52d758(0x506)][_0x52d758(0x303)](new _0x472927(this[_0x52d758(0x3d3)])['id'],!0x1),this[_0x52d758(0x506)][_0x52d758(0x524)](!0x1)):(this[_0x52d758(0x506)][_0x52d758(0x303)](new _0x472927(this[_0x52d758(0x3d3)])['id'],!0x0),this[_0x52d758(0x506)][_0x52d758(0x524)](!0x0));})));let _0x4888bd=!0x1;return this['disposeWithMe'](this[_0x46d33d(0x312)][_0x46d33d(0x4ee)][_0x46d33d(0x413)](_0x191977=>{const _0x30d745=_0x46d33d;_0x191977===X['ONLINE']?this[_0x30d745(0x2ea)](_0x4888bd):_0x191977===X[_0x30d745(0x36b)]&&(_0x4888bd=!0x0,this[_0x30d745(0x31f)]());})),this[_0x46d33d(0x394)](this['session'][_0x46d33d(0x49e)][_0x46d33d(0x413)](_0x133fc5=>{const _0x153831=_0x46d33d;try{switch(_0x133fc5[_0x153831(0x3a3)]){case _0x334d1e['NEW_CHANGESETS']:{this[_0x153831(0x4ea)](_0x3de1d0(_0x133fc5[_0x153831(0x500)]));break;}case _0x334d1e['CHANGESET_ACK']:{this['_onRemoteACK'](_0x133fc5['data']);break;}case _0x334d1e[_0x153831(0x3cc)]:{this['_onRemoteRejected']();break;}case _0x334d1e[_0x153831(0x50d)]:{this['_onRemoteRetry'](_0x133fc5[_0x153831(0x500)]);break;}case _0x334d1e['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x153831(0x4cf)](_0x133fc5[_0x153831(0x500)]['changesets'][_0x153831(0x443)](_0x24651c=>_0x3de1d0(_0x24651c)));break;}case _0x334d1e[_0x153831(0x2ec)]:this[_0x153831(0x277)]({'isPermissionRej':!0x0});}}catch(_0x4f3bc2){throw console[_0x153831(0x2c6)](_0x153831(0x1ad),_0x4f3bc2),_0x4f3bc2;}})),this['_state'];}[_0x2a1bbf(0x1f0)](){const _0x50ef3e=_0x2a1bbf;this[_0x50ef3e(0x48a)]=!0x1;}[_0x2a1bbf(0x1e2)](){const _0x39be36=_0x2a1bbf;if(this[_0x39be36(0x48a)])throw new Error(_0x39be36(0x4f3));this[_0x39be36(0x48a)]=!0x0;}[_0x2a1bbf(0x53e)](_0x2477bb){const _0x3b72f3=_0x2a1bbf;this[_0x3b72f3(0x1e2)](),this['_updateState'](this[_0x3b72f3(0x3d9)][_0x3b72f3(0x32b)](_0x2477bb)),this[_0x3b72f3(0x1f0)]();}[_0x2a1bbf(0x4ea)](_0x3f2846){const _0x1ac1d0=_0x2a1bbf;if(!(_0x3f2846['revision']<=this[_0x1ac1d0(0x41e)][_0x1ac1d0(0x1b1)](this['unitID']))){if(this['_collaborationPaused']){this[_0x1ac1d0(0x46e)]['push'](_0x3f2846);return;}this['_applyRemoteChangeset'](_0x3f2846);}}[_0x2a1bbf(0x546)](){const _0x310f46=_0x2a1bbf;this[_0x310f46(0x46e)][_0x310f46(0x28a)](_0x23684d=>this[_0x310f46(0x495)](_0x23684d)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x33d463){const _0x25967d=_0x2a1bbf,_0x2e63fa=this[_0x25967d(0x33a)][_0x25967d(0x40e)][_0x25967d(0x212)](this[_0x25967d(0x33a)][_0x25967d(0x40e)][_0x25967d(0x4e4)]()[_0x25967d(0x420)])(_0x33d463['mutations'],null)||_0x33d463[_0x25967d(0x3f1)],_0x5637e6={..._0x33d463,'mutations':_0x2e63fa};this[_0x25967d(0x1e2)](),this['_updateState'](this[_0x25967d(0x3d9)][_0x25967d(0x537)](_0x5637e6)),this[_0x25967d(0x1f0)]();}[_0x2a1bbf(0x36f)](_0x3998e7){const _0x1c6246=_0x2a1bbf;this['_lockTransition'](),this[_0x1c6246(0x462)](this[_0x1c6246(0x3d9)]['onRemoteAck'](_0x3998e7)),this[_0x1c6246(0x1f0)]();}[_0x2a1bbf(0x277)](_0x3fb9d5){const _0x2c090a=_0x2a1bbf;this[_0x2c090a(0x1e2)](),this[_0x2c090a(0x462)](this['_state'][_0x2c090a(0x522)](_0x3fb9d5)),this[_0x2c090a(0x1f0)]();}[_0x2a1bbf(0x42e)](_0x357c31){const _0x584c6c=_0x2a1bbf;this[_0x584c6c(0x1e2)](),this[_0x584c6c(0x462)](this[_0x584c6c(0x3d9)][_0x584c6c(0x3e1)](_0x357c31)),this[_0x584c6c(0x1f0)]();}['_onFetchMissResult'](_0x5c49c0){const _0x3d2f8f=_0x2a1bbf;if(!(this[_0x3d2f8f(0x3d9)]instanceof V))throw new TypeError(_0x3d2f8f(0x517));const _0x27e359=_0x5c49c0['map'](_0x3ea123=>{const _0x50f144=_0x3d2f8f,_0x506306=this[_0x50f144(0x33a)][_0x50f144(0x40e)][_0x50f144(0x212)](this[_0x50f144(0x33a)][_0x50f144(0x40e)][_0x50f144(0x4e4)]()[_0x50f144(0x420)])(_0x3ea123[_0x50f144(0x3f1)],null)||_0x3ea123[_0x50f144(0x3f1)];return{..._0x3ea123,'mutations':_0x506306};});this[_0x3d2f8f(0x1e2)](),this['_updateState'](this[_0x3d2f8f(0x3d9)][_0x3d2f8f(0x3f0)](_0x27e359)),this[_0x3d2f8f(0x1f0)]();}[_0x2a1bbf(0x31f)](){const _0x48623d=_0x2a1bbf;this[_0x48623d(0x1e2)](),this[_0x48623d(0x462)](this[_0x48623d(0x3d9)]['toggleOffline']()),this['_unlockTransition']();}['_toggleOnline'](_0x534cf9=!0x1){const _0x46c12a=_0x2a1bbf;this[_0x46c12a(0x1e2)](),this[_0x46c12a(0x462)](this[_0x46c12a(0x3d9)]['toggleOnline']()),this[_0x46c12a(0x1f0)]();const _0x2a5061=this[_0x46c12a(0x3d9)];_0x534cf9&&_0x2a5061 instanceof Ee&&(this[_0x46c12a(0x1e2)](),this[_0x46c12a(0x462)](_0x2a5061[_0x46c12a(0x2b9)]()),this[_0x46c12a(0x1f0)]());}async['_createInitialState'](){return new Promise(_0x265a37=>{const _0x31ef5f=_0x736f;this[_0x31ef5f(0x312)][_0x31ef5f(0x4ee)][_0x31ef5f(0x497)](_0x221894(0x1))[_0x31ef5f(0x413)](async _0x26ea6c=>{const _0x45e85c=_0x31ef5f;_0x265a37(await this[_0x45e85c(0x228)](_0x26ea6c===X[_0x45e85c(0x435)]));});});}[_0x2a1bbf(0x4f6)](){const _0x25ad36=_0x2a1bbf,_0x596ecf=this[_0x25ad36(0x3d3)];return{'onStateChange':(_0x270387,_0x2c06f4)=>{const _0x5c5432=_0x25ad36;if(_0x270387!==this[_0x5c5432(0x3d9)])throw new Error(_0x5c5432(0x45a)+_0x270387[_0x5c5432(0x1db)]+_0x5c5432(0x357)+_0x2c06f4['status']+_0x5c5432(0x47a)+this[_0x5c5432(0x3d9)][_0x5c5432(0x1db)]);this[_0x5c5432(0x462)](_0x2c06f4);},'onSendChangeset':_0x5c3381=>{const _0x4b8a83=_0x25ad36;_0x5c3381[_0x4b8a83(0x4f1)]||(_0x5c3381[_0x4b8a83(0x4f1)]=this[_0x4b8a83(0x2df)],_0x5c3381['reqId']=++this['_changesetReqId']);const _0x57fc2d={'eventID':_0x334d1e[_0x4b8a83(0x2a5)],'data':{'unitID':_0x5c3381[_0x4b8a83(0x3d3)],'unitType':this['_type'],'changeset':_0x5c3381,'memberID':this[_0x4b8a83(0x312)]['getMemberID']()}};this[_0x4b8a83(0x312)][_0x4b8a83(0x1e4)](_0x57fc2d,this['unitID']);},'onMissingChangesets':({from:_0x17649c,to:_0x1ef1d1})=>{const _0x3a6d4f=_0x25ad36;this[_0x3a6d4f(0x33c)][_0x3a6d4f(0x322)](_0x3a6d4f(0x407),_0x3a6d4f(0x304)+_0x17649c+_0x3a6d4f(0x2d4)+_0x1ef1d1);const _0x5006f={'eventID':_0x334d1e[_0x3a6d4f(0x227)],'data':{'unitID':_0x596ecf,'unitType':this[_0x3a6d4f(0x232)],'from':_0x17649c,'to':_0x1ef1d1}};this[_0x3a6d4f(0x312)][_0x3a6d4f(0x1e4)](_0x5006f,this[_0x3a6d4f(0x3d3)]);}};}async[_0x2a1bbf(0x228)](_0xacbf0f){const _0x132e59=_0x2a1bbf;var _0x2faaff,_0x2ab25e;const _0x30ddb8=await this[_0x132e59(0x349)][_0x132e59(0x3a7)](this[_0x132e59(0x3d3)]),_0x3ff2f7=(_0x2faaff=_0x30ddb8==null?void 0x0:_0x30ddb8[_0x132e59(0x3f1)])!=null?_0x2faaff:[],_0x51c621=(_0x2ab25e=_0x30ddb8==null?void 0x0:_0x30ddb8[_0x132e59(0x484)])!=null?_0x2ab25e:null,_0x42a6c3=!!(_0x51c621!=null&&_0x51c621[_0x132e59(0x4f1)])&&!!(_0x51c621!=null&&_0x51c621[_0x132e59(0x33d)]);this[_0x132e59(0x2df)]=_0x42a6c3?_0x51c621[_0x132e59(0x4f1)]:or(),this[_0x132e59(0x1f5)]=_0x42a6c3?_0x51c621[_0x132e59(0x33d)]:0x0;const _0x137335=this[_0x132e59(0x3d3)];try{this[_0x132e59(0x422)](_0x51c621,_0x3ff2f7);}catch(_0xe3ccba){this['_logService'][_0x132e59(0x2c6)](_0xe3ccba);}const _0x873783=this[_0x132e59(0x4f6)]();if(_0xacbf0f){const _0x499e2d=Xs(this[_0x132e59(0x4ac)],_0x137335,this[_0x132e59(0x232)],_0x51c621,_0x3ff2f7,_0x873783);return _0x499e2d instanceof J?_0x499e2d[_0x132e59(0x39b)]():(_0x499e2d instanceof z||_0x499e2d instanceof te)&&_0x499e2d['resend'](),_0x499e2d;}return this[_0x132e59(0x4ac)][_0x132e59(0x27e)](ie,_0x137335,this[_0x132e59(0x232)],_0x51c621,_0x3ff2f7,_0x873783);}[_0x2a1bbf(0x422)](_0x23a70e,_0x5c8bee){const _0x38058f=_0x2a1bbf;var _0x453955,_0x550a4e;const _0x55e0ce=this[_0x38058f(0x33a)][_0x38058f(0x40e)][_0x38058f(0x212)](this[_0x38058f(0x33a)][_0x38058f(0x40e)][_0x38058f(0x4e4)]()[_0x38058f(0x420)]);(_0x453955=_0x55e0ce((_0x23a70e==null?void 0x0:_0x23a70e[_0x38058f(0x3f1)])||[],null))==null||_0x453955['forEach'](_0x224d1d=>this['_commandService']['executeCommand'](_0x224d1d['id'],_0x224d1d[_0x38058f(0x294)])),(_0x550a4e=_0x55e0ce(_0x5c8bee||[],null))==null||_0x550a4e[_0x38058f(0x28a)](_0x449e7c=>this[_0x38058f(0x4d5)]['executeCommand'](_0x449e7c['id'],_0x449e7c[_0x38058f(0x294)]));}};ze=Gt([p(0x3,_0x55fbd9(_0x297a6b)),p(0x4,_0x55fbd9(D)),p(0x5,_0x55fbd9(_0x1e056f)),p(0x6,_0x55fbd9(_0x5d60a9)),p(0x7,_0x55fbd9(_0x4329d3)),p(0x8,_0x2e1f3f),p(0x9,_0x31e03d),p(0xa,_0x48cba6),p(0xb,_0x5717a8),p(0xc,_0x318244(it))],ze);let Rt=class extends ze{constructor(_0x2919f0,_0x111284,_0x28804b,_0x10d53f,_0x56cd27,_0x5c6320,_0x45dd2a,_0x570c53,_0x2c6f5a,_0x5f4168,_0x21890b,_0xee58fb,_0x3eeb09,_0x5ef949,_0x15e417,_0x4a868a,_0x492b2d){const _0x20e313=_0x2a1bbf;super(_0x2919f0,_0x28804b,_0x111284,_0x10d53f,_0x56cd27,_0x5c6320,_0x45dd2a,_0x570c53,_0x3eeb09,_0x5ef949,_0x15e417,_0x4a868a,_0x492b2d),this[_0x20e313(0x3d3)]=_0x2919f0,this[_0x20e313(0x1cb)]=_0x111284,this[_0x20e313(0x38b)]=_0x2c6f5a,this[_0x20e313(0x254)]=_0x5f4168,this[_0x20e313(0x4ce)]=_0x21890b,this['_docSyncEditingCollabCursorService']=_0xee58fb;}[_0x2a1bbf(0x4f6)](){const _0x2dfcd4=_0x2a1bbf,_0x22b5ee=super[_0x2dfcd4(0x4f6)]();return _0x22b5ee[_0x2dfcd4(0x3c4)]=_0x421718=>this[_0x2dfcd4(0x254)]['transformIMECache'](_0x421718),_0x22b5ee[_0x2dfcd4(0x2a7)]=_0x414c37=>this[_0x2dfcd4(0x4ce)][_0x2dfcd4(0x3ae)](_0x414c37),_0x22b5ee[_0x2dfcd4(0x398)]=_0x16c35e=>this[_0x2dfcd4(0x2d7)]['syncEditingCollabCursor'](_0x16c35e),_0x22b5ee[_0x2dfcd4(0x4da)]=_0x33a36d=>this['_docTransformIMECacheService'][_0x2dfcd4(0x1d8)](_0x33a36d),_0x22b5ee;}async[_0x2a1bbf(0x53d)](){const _0x18186c=_0x2a1bbf,_0x16ac15=await super[_0x18186c(0x53d)]();return this[_0x18186c(0x38b)][_0x18186c(0x43c)][_0x18186c(0x497)](_0x3ca91c(this[_0x18186c(0x3f3)]))[_0x18186c(0x413)](_0x172b0c=>{const _0x2441bb=_0x18186c;if(_0x172b0c==null)return;const {unitId:_0x18dd6a,redoState:_0x143be7,commandId:_0x5cc5a1}=_0x172b0c;if(_0x18dd6a!==this[_0x2441bb(0x3d3)])return;const _0x51d885={'id':_0x5cc5a1,'type':_0xa939ce[_0x2441bb(0x2b1)],'params':{'unitId':_0x18dd6a,'actions':_0x143be7[_0x2441bb(0x41b)],'textRanges':null}};this[_0x2441bb(0x53e)](_0x51d885);}),_0x16ac15;}};Rt=Gt([p(0x3,_0x55fbd9(_0x297a6b)),p(0x4,_0x55fbd9(D)),p(0x5,_0x55fbd9(_0x1e056f)),p(0x6,_0x55fbd9(_0x5d60a9)),p(0x7,_0x55fbd9(_0x4329d3)),p(0x8,_0x55fbd9(_0x3e5bab)),p(0x9,_0x55fbd9(Xe)),p(0xa,_0x55fbd9(Je)),p(0xb,_0x55fbd9(Wt)),p(0xc,_0x2e1f3f),p(0xd,_0x31e03d),p(0xe,_0x48cba6),p(0xf,_0x5717a8),p(0x10,_0x318244(it))],Rt);let Ot=class extends ze{constructor(_0x385558,_0x4bda40,_0x2326d5,_0xa76823,_0x14aadc,_0x2d533f,_0x3fb17f,_0x319f1c,_0x28b60a,_0x20602e,_0x3d8297,_0x15c373,_0x50c41b,_0x5b80e5){const _0x3b49b7=_0x2a1bbf;super(_0x385558,_0x2326d5,_0x4bda40,_0xa76823,_0x14aadc,_0x2d533f,_0x3fb17f,_0x319f1c,_0x20602e,_0x3d8297,_0x15c373,_0x50c41b,_0x5b80e5),this[_0x3b49b7(0x3d3)]=_0x385558,this[_0x3b49b7(0x1cb)]=_0x4bda40,this[_0x3b49b7(0x418)]=_0x28b60a;}['_createHandler'](){const _0x5728bb=_0x2a1bbf,_0x4def9b=super[_0x5728bb(0x4f6)]();return _0x4def9b[_0x5728bb(0x2a7)]=_0x3681d4=>this[_0x5728bb(0x418)][_0x5728bb(0x3ae)](_0x3681d4),_0x4def9b;}async[_0x2a1bbf(0x53d)](){const _0x3e3fa8=_0x2a1bbf,_0x12a603=await super[_0x3e3fa8(0x53d)]();return this[_0x3e3fa8(0x394)](this['_commandService'][_0x3e3fa8(0x36a)]((_0x3bb325,_0x51d47d)=>{const _0x585fff=_0x3e3fa8;if(_0x3bb325[_0x585fff(0x1cb)]!==_0xa939ce[_0x585fff(0x2b1)]||_0x51d47d!=null&&_0x51d47d[_0x585fff(0x51c)]||_0x51d47d!=null&&_0x51d47d[_0x585fff(0x269)])return;const _0xf7dbf0=_0x3bb325[_0x585fff(0x294)];if((_0xf7dbf0==null?void 0x0:_0xf7dbf0[_0x585fff(0x3a5)])!==this[_0x585fff(0x3d3)])return;const _0xa6ab80=_0x3bb325,_0x2aac38=this['_compressMutationService'][_0x585fff(0x40e)][_0x585fff(0x212)](this['_compressMutationService'][_0x585fff(0x40e)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0xa6ab80],null)||[_0xa6ab80];this[_0x585fff(0x53e)](_0x2aac38[0x0]);})),_0x12a603;}};Ot=Gt([p(0x3,_0x55fbd9(_0x297a6b)),p(0x4,_0x55fbd9(D)),p(0x5,_0x55fbd9(_0x1e056f)),p(0x6,_0x55fbd9(_0x5d60a9)),p(0x7,_0x55fbd9(_0x4329d3)),p(0x8,_0x55fbd9(qe)),p(0x9,_0x2e1f3f),p(0xa,_0x31e03d),p(0xb,_0x48cba6),p(0xc,_0x5717a8),p(0xd,_0x318244(it))],Ot);var Pr=Object[_0x2a1bbf(0x4e8)],yr=Object[_0x2a1bbf(0x2ce)],Ur=(_0x373dff,_0x505834,_0x1f960e,_0xaf9b61)=>{const _0xcf6064=_0x2a1bbf;for(var _0x2b7aa0=_0xaf9b61>0x1?void 0x0:_0xaf9b61?yr(_0x505834,_0x1f960e):_0x505834,_0x16c2e9=_0x373dff[_0xcf6064(0x1bd)]-0x1,_0x1ae64d;_0x16c2e9>=0x0;_0x16c2e9--)(_0x1ae64d=_0x373dff[_0x16c2e9])&&(_0x2b7aa0=(_0xaf9b61?_0x1ae64d(_0x505834,_0x1f960e,_0x2b7aa0):_0x1ae64d(_0x2b7aa0))||_0x2b7aa0);return _0xaf9b61&&_0x2b7aa0&&Pr(_0x505834,_0x1f960e,_0x2b7aa0),_0x2b7aa0;},ut=(_0x53823e,_0x15565a)=>(_0x3aaf4e,_0x33583b)=>_0x15565a(_0x3aaf4e,_0x33583b,_0x53823e);let $e=class extends _0x5b2156{constructor(_0x3d242e,_0x4b265c,_0xf2e416){const _0x27efde=_0x2a1bbf;super(),l(this,_0x27efde(0x2d3),new Map()),l(this,_0x27efde(0x284),new _0x3c1bb0()),(this['_injector']=_0x3d242e,this[_0x27efde(0x28c)]=_0x4b265c,this[_0x27efde(0x4b4)]=_0xf2e416,this['_init']());}[_0x2a1bbf(0x1d0)](){const _0x16a947=_0x2a1bbf;super[_0x16a947(0x1d0)](),this[_0x16a947(0x2d3)][_0x16a947(0x28a)](_0x103f28=>_0x103f28['dispose']()),this[_0x16a947(0x2d3)][_0x16a947(0x21e)]();}[_0x2a1bbf(0x337)](_0x46bd04){const _0x4d3712=_0x2a1bbf;var _0x440064;return(_0x440064=this[_0x4d3712(0x2d3)][_0x4d3712(0x380)](_0x46bd04))!=null?_0x440064:null;}['getCollabEntity$'](_0x3f65c9){const _0x31673f=_0x2a1bbf,_0x2d32c6=this['getCollabEntity'](_0x3f65c9);return _0x2d32c6?_0x1af720(_0x2d32c6):this[_0x31673f(0x284)]['pipe'](_0x3edad6(_0x32ea14=>_0x32ea14[_0x31673f(0x3d3)]===_0x3f65c9));}['_init'](){const _0x2fe60e=_0x2a1bbf;this[_0x2fe60e(0x4b4)][_0x2fe60e(0x471)](_0x338b41[_0x2fe60e(0x26f)])[_0x2fe60e(0x497)](_0x3ca91c(this[_0x2fe60e(0x3f3)]),_0x471e8b(0x10))['subscribe'](async _0x421985=>{const _0x545c5d=_0x2fe60e,_0x1a6064=_0x421985[_0x545c5d(0x32e)](),_0x3faf68=await this[_0x545c5d(0x1d1)](_0x1a6064,B[_0x545c5d(0x26f)]);this[_0x545c5d(0x2d3)][_0x545c5d(0x279)](_0x1a6064,_0x3faf68);}),this[_0x2fe60e(0x4b4)][_0x2fe60e(0x471)](_0x338b41['UNIVER_DOC'])[_0x2fe60e(0x497)](_0x3ca91c(this['dispose$']),_0x471e8b(0x10))['pipe'](_0x3edad6(_0x5b5389=>!_0x5b5389['getUnitId']()[_0x2fe60e(0x29a)]('__')))['subscribe'](async _0x3abdcf=>{const _0x29fe92=_0x2fe60e,_0x362886=_0x3abdcf[_0x29fe92(0x32e)](),_0x447283=await this[_0x29fe92(0x1d1)](_0x362886,B[_0x29fe92(0x2ca)]);this[_0x29fe92(0x2d3)]['set'](_0x362886,_0x447283);}),_0xa702ce(this[_0x2fe60e(0x4b4)]['getTypeOfUnitDisposed$'](_0x338b41[_0x2fe60e(0x26f)]),this[_0x2fe60e(0x4b4)][_0x2fe60e(0x535)](_0x338b41[_0x2fe60e(0x2ca)]))[_0x2fe60e(0x497)](_0x3ca91c(this[_0x2fe60e(0x3f3)]))['subscribe'](_0x31cee6=>{const _0x4fa568=_0x2fe60e,_0x3f9363=_0x31cee6[_0x4fa568(0x32e)](),_0x30b388=this[_0x4fa568(0x2d3)]['get'](_0x3f9363);_0x30b388&&(_0x30b388[_0x4fa568(0x1d0)](),this[_0x4fa568(0x2d3)][_0x4fa568(0x360)](_0x3f9363));});}async[_0x2a1bbf(0x1d1)](_0x2d142c,_0xd16609){const _0x5afa47=_0x2a1bbf,_0x5bd668=await this['_collabSessionService'][_0x5afa47(0x3b5)](_0x2d142c),_0x295da9=this[_0x5afa47(0x4ac)]['createInstance'](this[_0x5afa47(0x509)](_0xd16609),_0x2d142c,_0xd16609,_0x5bd668);return await _0x295da9['init'](),this[_0x5afa47(0x284)][_0x5afa47(0x2eb)](_0x295da9),_0x295da9;}[_0x2a1bbf(0x509)](_0x5f1d5e){const _0x31bb22=_0x2a1bbf;switch(_0x5f1d5e){case B[_0x31bb22(0x2ca)]:return Rt;case B['UNIVER_SHEET']:return Ot;default:throw new Error(_0x31bb22(0x259)+_0x5f1d5e);}}};$e=Ur([ut(0x0,_0x55fbd9(_0x297a6b)),ut(0x1,_0x55fbd9(ue)),ut(0x2,_0x23793a)],$e);const fs=[_0x2a1bbf(0x3e8),'jiqing500',_0x2a1bbf(0x24c),'red300',_0x2a1bbf(0x2bd),_0x2a1bbf(0x456)];class Yt extends _0x33be34{constructor(){const _0x5d4962=_0x2a1bbf;super(...arguments),l(this,_0x5d4962(0x241),new Map()),l(this,_0x5d4962(0x348),0x0);}[_0x2a1bbf(0x1af)](_0x3a5a19){const _0x46d985=_0x2a1bbf;if(this[_0x46d985(0x241)]['has'](_0x3a5a19))return this[_0x46d985(0x241)][_0x46d985(0x380)](_0x3a5a19);const _0xee5912=fs[this[_0x46d985(0x348)]];return this[_0x46d985(0x348)]=(this[_0x46d985(0x348)]+0x1)%fs[_0x46d985(0x1bd)],this[_0x46d985(0x241)][_0x46d985(0x279)](_0x3a5a19,_0xee5912),_0xee5912;}}var Nr=Object['defineProperty'],Ar=Object[_0x2a1bbf(0x2ce)],Mr=(_0x2a0647,_0x2e85e8,_0x50236c,_0x1aec0a)=>{const _0x46ed85=_0x2a1bbf;for(var _0x9e7489=_0x1aec0a>0x1?void 0x0:_0x1aec0a?Ar(_0x2e85e8,_0x50236c):_0x2e85e8,_0x5d5c64=_0x2a0647[_0x46ed85(0x1bd)]-0x1,_0x2ffd10;_0x5d5c64>=0x0;_0x5d5c64--)(_0x2ffd10=_0x2a0647[_0x5d5c64])&&(_0x9e7489=(_0x1aec0a?_0x2ffd10(_0x2e85e8,_0x50236c,_0x9e7489):_0x2ffd10(_0x9e7489))||_0x9e7489);return _0x1aec0a&&_0x9e7489&&Nr(_0x2e85e8,_0x50236c,_0x9e7489),_0x9e7489;},oe=(_0x3b2264,_0x46a9f5)=>(_0xe30b4,_0x205d86)=>_0x46a9f5(_0xe30b4,_0x205d86,_0x3b2264);const Lr=0x12c,$r=0x64;let Dt=class extends _0x5b2156{constructor(_0x4951e1,_0x422628,_0x31d0ba,_0x32af77,_0x3d52fa,_0x3867aa,_0xce09a9,_0x1d1fda,_0x42d119){const _0x43d0e0=_0x2a1bbf;super(),l(this,_0x43d0e0(0x225),!0x1),l(this,_0x43d0e0(0x53d),!0x1),l(this,_0x43d0e0(0x316),new _0x5bdcda(new Map())),l(this,'cursorInfo$',this[_0x43d0e0(0x316)][_0x43d0e0(0x251)]()),l(this,_0x43d0e0(0x477),new _0x5bdcda([])),l(this,'roomMembers$',this['_roomMembers$']['pipe'](_0x526258(Lr))),l(this,_0x43d0e0(0x527),_0x5e8353(_0x445d3b=>{const _0x4cf4fd=_0x43d0e0,_0x1ea60b={'eventID':_0x334d1e['UPDATE_CURSOR'],'data':{'unitID':this[_0x4cf4fd(0x3d3)],'memberID':this[_0x4cf4fd(0x2fb)][_0x4cf4fd(0x32c)](),'selection':Gs(_0x445d3b)}};this[_0x4cf4fd(0x2fb)]['send'](_0x1ea60b,this['unitID']);},$r)),(this[_0x43d0e0(0x3d3)]=_0x4951e1,this['_session']=_0x422628,this[_0x43d0e0(0x4ac)]=_0x31d0ba,this['_colorAssignService']=_0x32af77,this[_0x43d0e0(0x3a1)]=_0x3d52fa,this[_0x43d0e0(0x454)]=_0x3867aa,this[_0x43d0e0(0x250)]=_0xce09a9,this[_0x43d0e0(0x4b4)]=_0x1d1fda,this[_0x43d0e0(0x4d5)]=_0x42d119);}get[_0x2a1bbf(0x468)](){const _0x31af25=_0x2a1bbf;return this[_0x31af25(0x316)][_0x31af25(0x53c)]();}get[_0x2a1bbf(0x4dd)](){const _0x12978e=_0x2a1bbf;return this[_0x12978e(0x477)][_0x12978e(0x53c)]();}['dispose'](){const _0x3d2ea6=_0x2a1bbf;super[_0x3d2ea6(0x1d0)](),this[_0x3d2ea6(0x316)][_0x3d2ea6(0x2eb)](new Map()),this['_cursorInfo$'][_0x3d2ea6(0x31b)](),this[_0x3d2ea6(0x477)][_0x3d2ea6(0x2eb)]([]),this[_0x3d2ea6(0x477)]['complete']();}[_0x2a1bbf(0x375)](){const _0x216e2d=_0x2a1bbf;this[_0x216e2d(0x53d)]||(this[_0x216e2d(0x53d)]=!0x0,this[_0x216e2d(0x2fb)][_0x216e2d(0x4ee)][_0x216e2d(0x497)](_0x3ca91c(this['dispose$']))[_0x216e2d(0x413)](_0x5a0e7c=>{const _0x5ee604=_0x216e2d;_0x5a0e7c===X['ONLINE']?this[_0x5ee604(0x2ea)]():this[_0x5ee604(0x31f)]();}),this[_0x216e2d(0x2fb)]['event$'][_0x216e2d(0x497)](_0x3ca91c(this[_0x216e2d(0x3f3)]))[_0x216e2d(0x413)](_0x400771=>{const _0x571700=_0x216e2d,_0xfb393f=_0x400771[_0x571700(0x3a3)];_0xfb393f===_0x334d1e[_0x571700(0x3fb)]&&this[_0x571700(0x1b9)](_0x400771),_0xfb393f===_0x334d1e[_0x571700(0x529)]&&this['_onCursorDelete'](_0x400771);}),this['disposeWithMe'](this[_0x216e2d(0x4d5)][_0x216e2d(0x36a)](_0xbb487e=>{const _0x3e4665=_0x216e2d,_0x2db936=_0xbb487e['params'];_0x2db936!=null&&this[_0x3e4665(0x225)]&&_0xbb487e['id']===_0x6fdd1c['id']&&_0x2db936[_0x3e4665(0x3a5)]===this[_0x3e4665(0x3d3)]&&_0x2db936[_0x3e4665(0x218)]===!0x1&&_0x2db936[_0x3e4665(0x296)][_0x3e4665(0x1bd)]>0x0&&this[_0x3e4665(0x527)](_0x2db936[_0x3e4665(0x296)]);})),this[_0x216e2d(0x454)]['collabCursorState$'][_0x216e2d(0x497)](_0x3ca91c(this[_0x216e2d(0x3f3)]))[_0x216e2d(0x413)](_0x3cd3d9=>{const _0x138495=_0x216e2d;if((_0x3cd3d9==null?void 0x0:_0x3cd3d9[_0x138495(0x3d3)])!==this[_0x138495(0x3d3)])return;const _0x26e6ac={'eventID':_0x334d1e[_0x138495(0x3fb)],'data':_0x3cd3d9};this[_0x138495(0x1b9)](_0x26e6ac);}),this[_0x216e2d(0x394)](this[_0x216e2d(0x4d5)][_0x216e2d(0x36a)](_0x220211=>{const _0x2462db=_0x216e2d;if(_0x220211[_0x2462db(0x294)]==null)return;const _0x365a94=_0x220211[_0x2462db(0x294)];if(_0x220211['id']!==_0x3d88ce['id']||_0x365a94[_0x2462db(0x3a5)]!==this['unitID'])return;const _0x16f159={'id':'doc.mutation.rich-text-editing','params':_0x365a94},_0x9f13c=this[_0x2462db(0x468)];for(const [_0x26c45e,_0x174c47]of _0x9f13c){const _0x4e722b={'id':_0x2462db(0x283),'params':{'unitId':this[_0x2462db(0x3d3)],'actions':null,'textRanges':_0x174c47['ranges']}},_0xc9b82f=this[_0x2462db(0x250)][_0x2462db(0x395)](_0x16f159,_0x4e722b,!0x1);if(_0x6a901e(_0xc9b82f))throw _0xc9b82f[_0x2462db(0x2c6)];_0x9f13c[_0x2462db(0x279)](_0x26c45e,{..._0x174c47,'ranges':_0xc9b82f[_0x2462db(0x2d8)][_0x2462db(0x294)][_0x2462db(0x385)]});}queueMicrotask(()=>{const _0x5c0e1f=_0x2462db;this[_0x5c0e1f(0x316)][_0x5c0e1f(0x2eb)](_0x9f13c);});})));}[_0x2a1bbf(0x1b9)](_0x341778){const _0x4c89a9=_0x2a1bbf;var _0x49b46f,_0x3487b2;const {memberID:_0x3477d6,selection:_0x3cd83c}=_0x341778['data'],_0x2c5dfd=pr(_0x3cd83c),_0xce9b96=(_0x3487b2=(_0x49b46f=this[_0x4c89a9(0x3a1)][_0x4c89a9(0x503)](this[_0x4c89a9(0x3d3)],_0x3477d6))==null?void 0x0:_0x49b46f['name'])!=null?_0x3487b2:_0x4c89a9(0x39a),_0x2325e0={'color':this[_0x4c89a9(0x34b)][_0x4c89a9(0x1af)](_0x3477d6),'name':_0xce9b96,'ranges':_0x2c5dfd},_0x518721=this[_0x4c89a9(0x468)];_0x518721['set'](_0x3477d6,_0x2325e0),this[_0x4c89a9(0x316)][_0x4c89a9(0x2eb)](_0x518721);}['_onCursorDelete'](_0x1c0325){const _0x238aca=_0x2a1bbf,{memberID:_0xe01fec}=_0x1c0325[_0x238aca(0x500)],_0x40d2e0=this[_0x238aca(0x468)];_0x40d2e0[_0x238aca(0x360)](_0xe01fec),this[_0x238aca(0x316)][_0x238aca(0x2eb)](_0x40d2e0);}[_0x2a1bbf(0x2ea)](){const _0x527ee1=_0x2a1bbf;var _0x4fdcf8;if(this[_0x527ee1(0x225)]=!0x0,((_0x4fdcf8=this[_0x527ee1(0x4b4)][_0x527ee1(0x44e)]())==null?void 0x0:_0x4fdcf8[_0x527ee1(0x32e)]())!==this[_0x527ee1(0x3d3)])return;const _0x48bd2b=this[_0x527ee1(0x4ac)][_0x527ee1(0x380)](_0x3f28b3)[_0x527ee1(0x343)]();Array[_0x527ee1(0x1f8)](_0x48bd2b)&&_0x48bd2b[_0x527ee1(0x1bd)]>0x0&&this[_0x527ee1(0x527)](_0x48bd2b);}[_0x2a1bbf(0x31f)](){const _0x18c239=_0x2a1bbf;this[_0x18c239(0x225)]=!0x1;}};Dt=Mr([oe(0x2,_0x55fbd9(_0x297a6b)),oe(0x3,_0x55fbd9(Yt)),oe(0x4,_0x55fbd9(_e)),oe(0x5,_0x55fbd9(Wt)),oe(0x6,_0xa94b77),oe(0x7,_0x23793a),oe(0x8,_0x31e03d)],Dt);var jr=Object['defineProperty'],Hr=Object[_0x2a1bbf(0x2ce)],xr=(_0x201b66,_0x932ef4,_0x390698,_0x4bf93c)=>{const _0x5cb3a7=_0x2a1bbf;for(var _0x243e86=_0x4bf93c>0x1?void 0x0:_0x4bf93c?Hr(_0x932ef4,_0x390698):_0x932ef4,_0x2ff0b1=_0x201b66[_0x5cb3a7(0x1bd)]-0x1,_0x1fc9a1;_0x2ff0b1>=0x0;_0x2ff0b1--)(_0x1fc9a1=_0x201b66[_0x2ff0b1])&&(_0x243e86=(_0x4bf93c?_0x1fc9a1(_0x932ef4,_0x390698,_0x243e86):_0x1fc9a1(_0x243e86))||_0x243e86);return _0x4bf93c&&_0x243e86&&jr(_0x932ef4,_0x390698,_0x243e86),_0x243e86;},pe=(_0x218bd6,_0xece632)=>(_0x164478,_0x378bc4)=>_0xece632(_0x164478,_0x378bc4,_0x218bd6);const kr=0x12c,Br=0x64,Vr=()=>{let _0x274a73=[],_0x2c6769=!0x1;return _0x26f4f2=>{const _0x16232f=_0x736f;_0x274a73[_0x16232f(0x365)](_0x26f4f2),_0x2c6769||(_0x2c6769=!0x0,setTimeout(()=>{const _0x1a1d0e=_0x16232f;_0x274a73[_0x1a1d0e(0x28a)](_0x175fb3=>_0x175fb3()),_0x274a73=[],_0x2c6769=!0x1;}));};};let wt=class extends _0x5b2156{constructor(_0x25a57f,_0x2a7da3,_0x4897de,_0x305806,_0x378e4f,_0x46afcf,_0x100917,_0x41a77a){const _0x31906b=_0x2a1bbf;super(),l(this,_0x31906b(0x225),!0x1),l(this,_0x31906b(0x53d),!0x1),l(this,_0x31906b(0x316),new _0x5bdcda(new Map())),l(this,_0x31906b(0x437),this[_0x31906b(0x316)][_0x31906b(0x251)]()),l(this,_0x31906b(0x477),new _0x5bdcda([])),l(this,_0x31906b(0x4c2),this[_0x31906b(0x477)][_0x31906b(0x497)](_0x526258(kr))),l(this,'_updateLocalCursor',_0x5e8353((_0xf4c7af,_0x18837d)=>{const _0x16b9a2=_0x31906b,_0xde090c={'eventID':_0x334d1e[_0x16b9a2(0x3fb)],'data':{'unitID':this[_0x16b9a2(0x3d3)],'memberID':this[_0x16b9a2(0x2fb)][_0x16b9a2(0x32c)](),'selection':_0x22c503(_0xf4c7af,_0x18837d[_0x16b9a2(0x204)])}};this[_0x16b9a2(0x2fb)]['send'](_0xde090c,this[_0x16b9a2(0x3d3)]);},Br)),(this[_0x31906b(0x3d3)]=_0x25a57f,this[_0x31906b(0x2fb)]=_0x2a7da3,this['_injector']=_0x4897de,this['_colorAssignService']=_0x305806,this[_0x31906b(0x3a1)]=_0x378e4f,this['_univerInstanceService']=_0x46afcf,this[_0x31906b(0x4d5)]=_0x100917,this[_0x31906b(0x26b)]=_0x41a77a);}get[_0x2a1bbf(0x468)](){const _0x5c4ec4=_0x2a1bbf;return this['_cursorInfo$'][_0x5c4ec4(0x53c)]();}get[_0x2a1bbf(0x4dd)](){const _0x52ad1e=_0x2a1bbf;return this[_0x52ad1e(0x477)]['getValue']();}[_0x2a1bbf(0x1d0)](){const _0x45a85c=_0x2a1bbf;super['dispose'](),this[_0x45a85c(0x316)][_0x45a85c(0x2eb)](new Map()),this[_0x45a85c(0x316)]['complete'](),this[_0x45a85c(0x477)][_0x45a85c(0x2eb)]([]),this[_0x45a85c(0x477)][_0x45a85c(0x31b)]();}[_0x2a1bbf(0x375)](){const _0x29aa15=_0x2a1bbf;this[_0x29aa15(0x53d)]||(this[_0x29aa15(0x53d)]=!0x0,this[_0x29aa15(0x2fb)][_0x29aa15(0x4ee)][_0x29aa15(0x497)](_0x3ca91c(this[_0x29aa15(0x3f3)]))['subscribe'](_0x34d593=>{const _0x6678cb=_0x29aa15;_0x34d593===X['ONLINE']?this[_0x6678cb(0x2ea)]():this[_0x6678cb(0x31f)]();}),this[_0x29aa15(0x2fb)][_0x29aa15(0x49e)]['pipe'](_0x3ca91c(this['dispose$']))[_0x29aa15(0x413)](_0x535872=>{const _0x5ad267=_0x29aa15,_0xb5def1=_0x535872[_0x5ad267(0x3a3)];_0xb5def1===_0x334d1e[_0x5ad267(0x3fb)]&&this[_0x5ad267(0x1b9)](_0x535872),_0xb5def1===_0x334d1e[_0x5ad267(0x529)]&&this['_onCursorDelete'](_0x535872);}),this[_0x29aa15(0x280)](),this[_0x29aa15(0x394)](this[_0x29aa15(0x4d5)][_0x29aa15(0x36a)](_0x4ec7dc=>{const _0x42acc7=_0x29aa15;if(this[_0x42acc7(0x225)]&&_0x4ec7dc['id']===_0x47bbc3['id']&&_0x4ec7dc[_0x42acc7(0x294)]['unitId']===this['unitID']){const _0x360d4c=_0x4ec7dc[_0x42acc7(0x294)];this[_0x42acc7(0x527)](_0x360d4c[_0x42acc7(0x3e0)],_0x360d4c[_0x42acc7(0x4b6)][0x0]);}})));}[_0x2a1bbf(0x1b9)](_0x245bfa){const _0x357e27=_0x2a1bbf;var _0x37ef29,_0xca908;const {memberID:_0x29abfb,selection:_0x56823a}=_0x245bfa[_0x357e27(0x500)],{sheetName:_0x23e1b9,range:_0x1c1b23}=_0x30a980(_0x56823a),_0x3b8430={'name':(_0xca908=(_0x37ef29=this[_0x357e27(0x3a1)][_0x357e27(0x503)](this[_0x357e27(0x3d3)],_0x29abfb))==null?void 0x0:_0x37ef29['name'])!=null?_0xca908:_0x357e27(0x39a),'range':this[_0x357e27(0x4f0)](_0x23e1b9,_0x1c1b23),'sheetID':_0x23e1b9,'color':this[_0x357e27(0x34b)]['assignAColorForMemberID'](_0x29abfb),'selection':_0x56823a},_0x57b719=this[_0x357e27(0x468)];_0x57b719[_0x357e27(0x279)](_0x29abfb,_0x3b8430),this['_cursorInfo$'][_0x357e27(0x2eb)](_0x57b719);}['_onCursorDelete'](_0x1fb097){const _0x4752b6=_0x2a1bbf,{memberID:_0x5d61c2}=_0x1fb097['data'],_0x748ca8=this[_0x4752b6(0x468)];_0x748ca8[_0x4752b6(0x360)](_0x5d61c2),this[_0x4752b6(0x316)][_0x4752b6(0x2eb)](_0x748ca8);}[_0x2a1bbf(0x4f0)](_0x1b1f8d,_0x19455f){const _0x15bc1f=_0x2a1bbf;var _0x2794ed,_0x4b9a07;const _0x44410b=(_0x4b9a07=(_0x2794ed=this[_0x15bc1f(0x4b4)][_0x15bc1f(0x3c0)](this[_0x15bc1f(0x3d3)]))==null?void 0x0:_0x2794ed[_0x15bc1f(0x4e3)](_0x1b1f8d))==null?void 0x0:_0x4b9a07['getMergeData']();return(_0x44410b==null?void 0x0:_0x44410b[_0x15bc1f(0x47b)](_0x259ea1=>_0x310a7c[_0x15bc1f(0x1b8)](_0x259ea1,_0x19455f)))||_0x19455f;}['_onRefRangeChange'](){const _0x11ba03=_0x2a1bbf,_0x1d4b05=new _0x3f893b(),_0x52b796=Vr(),_0x40215f=()=>{const _0x5304be=_0x736f;_0x1d4b05['dispose']();const _0xe9ccb6=(_0x3f321c,_0x58b97d,_0x24861b,_0x14e80f)=>{const _0x370829=_0x736f;let _0x3f8b4d=[];switch(_0x3f321c['id']){case _0x7fad79[_0x370829(0x493)]:{_0x3f8b4d=_0x245967(_0x3f321c,_0x14e80f);break;}case _0x7fad79[_0x370829(0x2d0)]:{_0x3f8b4d=_0x440c18(_0x3f321c,_0x14e80f);break;}case _0x7fad79[_0x370829(0x338)]:{_0x3f8b4d=_0x563eec(_0x3f321c,_0x14e80f);break;}case _0x7fad79[_0x370829(0x382)]:{_0x3f8b4d=_0x160c6c(_0x3f321c,_0x14e80f);break;}case _0x7fad79[_0x370829(0x4c6)]:{_0x3f8b4d=_0x1803dd(_0x3f321c,_0x14e80f);break;}case _0x7fad79[_0x370829(0x329)]:{_0x3f8b4d=_0x533fae(_0x3f321c,_0x14e80f);break;}case _0x7fad79[_0x370829(0x31c)]:{_0x3f8b4d=_0x1bb017(_0x3f321c,_0x14e80f);break;}case _0x7fad79[_0x370829(0x540)]:{_0x3f8b4d=_0x4ae499(_0x3f321c,_0x14e80f);break;}case _0x7fad79[_0x370829(0x49d)]:{_0x3f8b4d=_0xbd5b44(_0x3f321c,_0x14e80f);break;}}const _0x286f43=_0x5af593(_0x3f8b4d,_0x14e80f),_0x3a26c=this[_0x370829(0x468)][_0x370829(0x380)](_0x58b97d);if(_0x3a26c&&_0x286f43){const _0x3b98e7={..._0x3a26c,'range':_0x286f43};this['cursorInfo'][_0x370829(0x279)](_0x58b97d,_0x3b98e7),_0x52b796(()=>{const _0x26f5a2=_0x370829,_0x1934bd=this['_refRangeService'][_0x26f5a2(0x2cf)](_0x286f43,_0x548dc4=>(_0x1934bd[_0x26f5a2(0x1d0)](),_0xe9ccb6(_0x548dc4,_0x58b97d,_0x24861b,_0x286f43)));_0x1d4b05[_0x26f5a2(0x20f)](_0x1934bd);});}return{'redos':[],'undos':[]};};this[_0x5304be(0x468)][_0x5304be(0x28a)]((_0x4f9bae,_0x1a6067)=>{const _0x11da7e=_0x5304be,{range:_0x1bc633,sheetID:_0x4ea9cc}=_0x4f9bae,_0x467e5a=this[_0x11da7e(0x26b)][_0x11da7e(0x2cf)](_0x1bc633,_0x1d2ad4=>(_0x467e5a[_0x11da7e(0x1d0)](),_0xe9ccb6(_0x1d2ad4,_0x1a6067,_0x4ea9cc,_0x1bc633)));_0x1d4b05['add'](_0x467e5a);});};this[_0x11ba03(0x394)](_0x4817bf(this[_0x11ba03(0x316)][_0x11ba03(0x413)](()=>{_0x40215f();})));}['_toggleOnline'](){const _0x503d6a=_0x2a1bbf;var _0x299017,_0x2be3b2;if(this['_online']=!0x0,((_0x299017=this['_univerInstanceService'][_0x503d6a(0x44e)]())==null?void 0x0:_0x299017[_0x503d6a(0x32e)]())!==this[_0x503d6a(0x3d3)])return;const _0x456a09=(_0x2be3b2=this[_0x503d6a(0x4ac)][_0x503d6a(0x380)](_0x5700b2)[_0x503d6a(0x2c4)]())==null?void 0x0:_0x2be3b2[0x0],_0x468705=this['_univerInstanceService'][_0x503d6a(0x1c5)](_0x338b41['UNIVER_SHEET'])[_0x503d6a(0x447)]();_0x456a09&&_0x468705&&this['_updateLocalCursor'](_0x468705['getSheetId'](),_0x456a09);}[_0x2a1bbf(0x31f)](){this['_online']=!0x1;}};wt=xr([pe(0x2,_0x55fbd9(_0x297a6b)),pe(0x3,_0x55fbd9(Yt)),pe(0x4,_0x55fbd9(_e)),pe(0x5,_0x23793a),pe(0x6,_0x31e03d),pe(0x7,_0x55fbd9(_0x27ccfa))],wt);var Fr=Object[_0x2a1bbf(0x4e8)],Wr=Object[_0x2a1bbf(0x2ce)],Gr=(_0x5a6dd1,_0x55d296,_0x33c08d,_0x2e4681)=>{const _0x5d8bf4=_0x2a1bbf;for(var _0x23dd3f=_0x2e4681>0x1?void 0x0:_0x2e4681?Wr(_0x55d296,_0x33c08d):_0x55d296,_0x285b50=_0x5a6dd1[_0x5d8bf4(0x1bd)]-0x1,_0xb33db;_0x285b50>=0x0;_0x285b50--)(_0xb33db=_0x5a6dd1[_0x285b50])&&(_0x23dd3f=(_0x2e4681?_0xb33db(_0x55d296,_0x33c08d,_0x23dd3f):_0xb33db(_0x23dd3f))||_0x23dd3f);return _0x2e4681&&_0x23dd3f&&Fr(_0x55d296,_0x33c08d,_0x23dd3f),_0x23dd3f;},dt=(_0x45ae4c,_0x363e97)=>(_0x59463b,_0x11e9c6)=>_0x363e97(_0x59463b,_0x11e9c6,_0x45ae4c);let Ce=class extends _0x5b2156{constructor(_0x122d87,_0x2c12a0,_0x128ab5){const _0x5177c0=_0x2a1bbf;super(),l(this,_0x5177c0(0x2d3),new Map()),l(this,_0x5177c0(0x284),new _0x3c1bb0()),(this[_0x5177c0(0x4b4)]=_0x122d87,this[_0x5177c0(0x4ac)]=_0x2c12a0,this[_0x5177c0(0x28c)]=_0x128ab5,this[_0x5177c0(0x53d)]());}['dispose'](){const _0x356ca9=_0x2a1bbf;super[_0x356ca9(0x1d0)](),this[_0x356ca9(0x284)][_0x356ca9(0x31b)](),this[_0x356ca9(0x2d3)]['forEach'](_0x249915=>_0x249915[_0x356ca9(0x1d0)]());}['getCollabCursors$'](_0x16cb8e){const _0x69cac=_0x2a1bbf;return this[_0x69cac(0x2d3)][_0x69cac(0x220)](_0x16cb8e)?this[_0x69cac(0x2d3)]['get'](_0x16cb8e)[_0x69cac(0x437)]:this[_0x69cac(0x284)]['pipe'](_0x452b57(_0xc499f6=>_0xc499f6[_0x69cac(0x3d3)]===_0x16cb8e),_0x35505a(_0x1ec7a9=>_0x1ec7a9['cursorInfo$']));}[_0x2a1bbf(0x53d)](){const _0x45e1ef=_0x2a1bbf;this[_0x45e1ef(0x4b4)][_0x45e1ef(0x471)](_0x338b41[_0x45e1ef(0x26f)])[_0x45e1ef(0x497)](_0x3ca91c(this[_0x45e1ef(0x3f3)]))[_0x45e1ef(0x413)](async _0x117614=>{const _0x3ed166=_0x45e1ef,_0x3de805=_0x117614[_0x3ed166(0x32e)](),_0x3de6cc=await this[_0x3ed166(0x440)](_0x3de805);this['_entityInit$'][_0x3ed166(0x2eb)](_0x3de6cc),this[_0x3ed166(0x2d3)][_0x3ed166(0x279)](_0x3de805,_0x3de6cc);}),this['_univerInstanceService'][_0x45e1ef(0x471)](_0x338b41['UNIVER_DOC'])['pipe'](_0x3ca91c(this[_0x45e1ef(0x3f3)]))[_0x45e1ef(0x497)](_0x452b57(_0x59a127=>!_0x59a127[_0x45e1ef(0x32e)]()[_0x45e1ef(0x29a)]('__')))['subscribe'](async _0xfbb3a8=>{const _0x3485dc=_0x45e1ef,_0x220b01=_0xfbb3a8[_0x3485dc(0x32e)](),_0x53da2d=await this['_startDocCollabCursor'](_0x220b01);this['_entityInit$'][_0x3485dc(0x2eb)](_0x53da2d),this['_entities'][_0x3485dc(0x279)](_0x220b01,_0x53da2d);}),_0xa702ce(this[_0x45e1ef(0x4b4)][_0x45e1ef(0x535)](_0x338b41['UNIVER_DOC']),this[_0x45e1ef(0x4b4)][_0x45e1ef(0x535)](_0x338b41[_0x45e1ef(0x26f)]))[_0x45e1ef(0x497)](_0x3ca91c(this['dispose$']))[_0x45e1ef(0x413)](_0x45ee89=>{const _0x5cd0da=_0x45e1ef,_0x3434f1=_0x45ee89[_0x5cd0da(0x32e)](),_0x490abd=this[_0x5cd0da(0x2d3)][_0x5cd0da(0x380)](_0x3434f1);_0x490abd&&(_0x490abd[_0x5cd0da(0x1d0)](),this['_entities'][_0x5cd0da(0x360)](_0x3434f1));});}async[_0x2a1bbf(0x440)](_0x5ca3cf){const _0x24e004=_0x2a1bbf,_0xfb0de5=await this[_0x24e004(0x28c)][_0x24e004(0x3b5)](_0x5ca3cf),_0x127389=this[_0x24e004(0x4ac)][_0x24e004(0x27e)](wt,_0x5ca3cf,_0xfb0de5);return _0x127389[_0x24e004(0x375)](),_0x127389;}async[_0x2a1bbf(0x42f)](_0x158386){const _0x330c4f=_0x2a1bbf,_0x53dadf=await this[_0x330c4f(0x28c)][_0x330c4f(0x3b5)](_0x158386),_0x3e41b5=this[_0x330c4f(0x4ac)]['createInstance'](Dt,_0x158386,_0x53dadf);return _0x3e41b5[_0x330c4f(0x375)](),_0x3e41b5;}};Ce=Gr([dt(0x0,_0x23793a),dt(0x1,_0x55fbd9(_0x297a6b)),dt(0x2,_0x55fbd9(ue))],Ce);const je=0x14,gs=0xc8,mt=0x4,Yr=0x5;function Kr(_0x7f802d,_0x5cfbe8){const _0x204742=_0x2a1bbf;let {radius:_0x402c24,width:_0x4defe8,height:_0x2b85dd}=_0x5cfbe8;_0x402c24=_0x402c24!=null?_0x402c24:0x0,_0x4defe8=_0x4defe8!=null?_0x4defe8:0x1e,_0x2b85dd=_0x2b85dd!=null?_0x2b85dd:0x1e;let _0x1c2844=0x0,_0x530d07=0x0,_0x1fd142=0x0;_0x1c2844=_0x530d07=_0x1fd142=Math[_0x204742(0x1ee)](_0x402c24,_0x4defe8/0x2,_0x2b85dd/0x2),_0x7f802d[_0x204742(0x4ca)](),_0x7f802d['moveTo'](_0x1c2844,0x0),_0x7f802d[_0x204742(0x518)](_0x4defe8-_0x530d07,0x0),_0x7f802d[_0x204742(0x480)](_0x4defe8-_0x530d07,_0x530d07,_0x530d07,Math['PI']*0x3/0x2,0x0,!0x1),_0x7f802d[_0x204742(0x518)](_0x4defe8,_0x2b85dd-_0x1fd142),_0x7f802d['arc'](_0x4defe8-_0x1fd142,_0x2b85dd-_0x1fd142,_0x1fd142,0x0,Math['PI']/0x2,!0x1),_0x7f802d[_0x204742(0x518)](0x0,_0x2b85dd),_0x7f802d['lineTo'](0x0,_0x1c2844),_0x7f802d[_0x204742(0x480)](_0x1c2844,_0x1c2844,_0x1c2844,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x7f802d[_0x204742(0x262)](),_0x5cfbe8[_0x204742(0x30f)]&&(_0x7f802d['save'](),_0x7f802d[_0x204742(0x327)]=_0x5cfbe8[_0x204742(0x30f)],_0x5cfbe8['fillRule']===_0x204742(0x4b8)?_0x7f802d[_0x204742(0x30f)](_0x204742(0x4b8)):_0x7f802d[_0x204742(0x30f)](),_0x7f802d[_0x204742(0x2b8)]());}class nt extends _0x2b454e{constructor(_0x2da2b7,_0x5af5fa){const _0x4b5421=_0x2a1bbf;super(_0x2da2b7,_0x5af5fa),l(this,_0x4b5421(0x3ee)),l(this,_0x4b5421(0x292)),(this[_0x4b5421(0x3ee)]=_0x5af5fa==null?void 0x0:_0x5af5fa['color'],this[_0x4b5421(0x292)]=_0x5af5fa==null?void 0x0:_0x5af5fa[_0x4b5421(0x292)]);}static[_0x2a1bbf(0x324)](_0x1092de,_0x5a3fec){const _0x330ca4=_0x2a1bbf,{text:_0x2c1505,color:_0x23a8bc}=_0x5a3fec;_0x1092de[_0x330ca4(0x1f3)](),_0x1092de[_0x330ca4(0x410)]=_0x330ca4(0x4a1);const _0x3df635=_0x1092de[_0x330ca4(0x453)](_0x2c1505)[_0x330ca4(0x432)],_0x135a38=Math[_0x330ca4(0x1ee)](_0x3df635+0x2*mt,gs);Kr(_0x1092de,{'height':je,'radius':0x4,'width':_0x135a38,'fill':_0x23a8bc,'evented':!0x1}),_0x1092de[_0x330ca4(0x327)]=_0x330ca4(0x40a);const _0xa6e4d6=mt,_0x2cfbbf=je-Yr,_0x421d10=gs-0x2*mt;if(_0x3df635>_0x421d10){let _0x277a40='',_0xb5ae4f=0x0;for(const _0x27b325 of _0x2c1505){const _0x3e30d5=_0x1092de[_0x330ca4(0x453)](_0x27b325)[_0x330ca4(0x432)];if(_0xb5ae4f+_0x3e30d5<=_0x421d10-_0x1092de[_0x330ca4(0x453)](_0x330ca4(0x2f8))[_0x330ca4(0x432)])_0x277a40+=_0x27b325,_0xb5ae4f+=_0x3e30d5;else{_0x277a40+='...';break;}}_0x1092de[_0x330ca4(0x402)](_0x277a40,_0xa6e4d6,_0x2cfbbf);}else _0x1092de[_0x330ca4(0x402)](_0x2c1505,_0xa6e4d6,_0x2cfbbf);_0x1092de[_0x330ca4(0x2b8)]();}[_0x2a1bbf(0x508)](_0x38773f){const _0x1303cd=_0x2a1bbf;nt[_0x1303cd(0x324)](_0x38773f,this);}}const ft='collab-text-anchor-',Xr=_0x2a1bbf(0x512),qr=_0x2a1bbf(0x51f),Pe=0x6,Jr=1.5,gt=0x4,zr=1.5,Zr=_0x2a1bbf(0x308);function _0x736f(_0x11a5b0,_0x4d9db1){const _0x18944c=_0x1894();return _0x736f=function(_0x736f0e,_0x9e25c1){_0x736f0e=_0x736f0e-0x1ab;let _0x2791e5=_0x18944c[_0x736f0e];return _0x2791e5;},_0x736f(_0x11a5b0,_0x4d9db1);}class Ss{constructor(_0x11bcce,_0x452f49,_0x1e377e,_0x4464c4){const _0x518a73=_0x2a1bbf;l(this,_0x518a73(0x3a0),[]),l(this,_0x518a73(0x230),null),l(this,'_textBubble',null),l(this,_0x518a73(0x2a9),null),l(this,_0x518a73(0x37c),null),l(this,_0x518a73(0x2d5),null),(this[_0x518a73(0x475)]=_0x11bcce,this[_0x518a73(0x48e)]=_0x452f49,this['_docSkeleton']=_0x1e377e,this[_0x518a73(0x1c0)]=_0x4464c4,this[_0x518a73(0x4b0)]());}set['_hover'](_0xfd0d7f){const _0x2808cd=_0x2a1bbf;_0xfd0d7f?(this['_anchorDot']&&this[_0x2808cd(0x2a9)]['hide'](),this[_0x2808cd(0x539)]&&this[_0x2808cd(0x539)][_0x2808cd(0x43a)]()):(this[_0x2808cd(0x2a9)]&&this[_0x2808cd(0x2a9)][_0x2808cd(0x43a)](),this['_textBubble']&&this['_textBubble'][_0x2808cd(0x1ab)]());}[_0x2a1bbf(0x1d0)](){const _0x1487f2=_0x2a1bbf;for(const _0x2cfdae of this[_0x1487f2(0x3a0)])_0x2cfdae[_0x1487f2(0x1d0)]();this[_0x1487f2(0x539)]&&this[_0x1487f2(0x539)][_0x1487f2(0x1d0)](),this[_0x1487f2(0x2a9)]&&this[_0x1487f2(0x2a9)]['dispose'](),this[_0x1487f2(0x230)]&&this['_anchor']['dispose'](),this[_0x1487f2(0x2d5)]&&this['_eventUnsubscribe']();}[_0x2a1bbf(0x4b0)](){const _0x201f4b=_0x2a1bbf;var _0x449cfb;const {_docSkeleton:_0x3280af,_document:_0x230cd8}=this,{color:_0x4051d1,name:_0x231b32,ranges:_0x54028a}=this[_0x201f4b(0x475)],_0x5af4e1=_0x230cd8[_0x201f4b(0x23e)](),{docsLeft:_0x135de8,docsTop:_0x48ebe2}=_0x5af4e1,_0xda7b64=new _0xf8529d(_0x5af4e1,_0x3280af);for(const {startOffset:_0x3912b9,endOffset:_0x3436dc,rangeType:_0x15a1d4,segmentId:_0x5bb0bf,segmentPage:_0x250470,collapsed:_0x3b4615,isActive:_0x565af3}of _0x54028a){const _0x1f0a5f=_0x3280af[_0x201f4b(0x222)](_0x3912b9,!0x0,_0x5bb0bf,_0x250470);let _0x51245f=_0x3280af['findNodePositionByCharIndex'](_0x3436dc,!0x0,_0x5bb0bf,_0x250470);if(_0x51245f==null&&(_0x51245f=_0x3280af[_0x201f4b(0x222)](_0x3436dc-0x1,!0x1,_0x5bb0bf,_0x250470)),_0x565af3){const {contentBoxPointGroup:_0x3a8be8}=_0xda7b64['getRangePointData'](_0x51245f,_0x51245f);if(_0x3a8be8[_0x201f4b(0x1bd)]===0x0)continue;this[_0x201f4b(0x1ff)](_0x4051d1,_0x3a8be8,_0x135de8,_0x48ebe2,_0x231b32),this[_0x201f4b(0x2d5)]=this[_0x201f4b(0x419)]();}if(!_0x3b4615&&_0x1f0a5f&&_0x51245f){if(_0x15a1d4===_0x1b0eef[_0x201f4b(0x2e1)]){const _0x1a99fd=new _0x166c71(_0x5af4e1,_0x3280af),{pointGroup:_0x223f17}=(_0x449cfb=_0x1a99fd[_0x201f4b(0x3d6)](_0x1f0a5f,_0x51245f))!=null?_0x449cfb:{};if(_0x223f17==null||_0x223f17[_0x201f4b(0x1bd)]===0x0)continue;this['_drawRectRange'](_0x4051d1,_0x223f17,_0x135de8,_0x48ebe2);}else{const {borderBoxPointGroup:_0xf3448c}=_0xda7b64[_0x201f4b(0x3d6)](_0x1f0a5f,_0x51245f);if(_0xf3448c[_0x201f4b(0x1bd)]===0x0)continue;this[_0x201f4b(0x4e7)](_0x4051d1,_0xf3448c,_0x135de8,_0x48ebe2);}}}}[_0x2a1bbf(0x1ff)](_0xa077f8,_0x4aafaa,_0x4ab291,_0xf582a0,_0x2a5b78){const _0x5c0023=_0x2a1bbf,_0x125900=this[_0x5c0023(0x47e)](_0x4aafaa),{left:_0x4bada5,top:_0x33343b,height:_0xed26a}=_0x125900,_0x960c33=this[_0x5c0023(0x4c3)](),_0x18b010=zr/_0x960c33,_0x16b358=new _0x48257f(ft+_0x16ec03['generateRandomId'](Pe),{'left':_0x4bada5+_0x4ab291-_0x18b010,'top':_0x33343b+_0xf582a0,'height':_0xed26a,'width':Jr,'fill':_0xa077f8||_0x3f79d0(_0x28aeb3[_0x5c0023(0x487)],0x0),'strokeWidth':_0x18b010,'stroke':Zr,'evented':!0x0});this['_anchor']=_0x16b358,this[_0x5c0023(0x48e)]['addObject'](_0x16b358,_0x157db6);const _0x250584=new _0x48257f(ft+_0x16ec03[_0x5c0023(0x4ed)](Pe),{'left':_0x4bada5+_0x4ab291-_0x18b010,'top':_0x33343b+_0xf582a0-gt/0x2,'height':gt,'width':gt,'fill':_0xa077f8||_0x3f79d0(_0x28aeb3['black'],0x0),'strokeWidth':0x0,'stroke':_0xa077f8||_0x3f79d0(_0x28aeb3['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x250584,this[_0x5c0023(0x48e)][_0x5c0023(0x256)](_0x250584,_0x157db6);const _0x596d39=new nt(ft+_0x16ec03[_0x5c0023(0x4ed)](Pe),{'left':_0x4bada5+_0x4ab291-_0x18b010,'top':_0x33343b+_0xf582a0-je,'text':_0x2a5b78,'color':_0xa077f8});this['_textBubble']=_0x596d39,this[_0x5c0023(0x48e)][_0x5c0023(0x256)](_0x596d39,_0x157db6),this[_0x5c0023(0x403)]=!0x1;}[_0x2a1bbf(0x419)](){const _0x1b0c0c=_0x2a1bbf,_0x17757d=this[_0x1b0c0c(0x230)][_0x1b0c0c(0x2a2)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x3e8c4b=this[_0x1b0c0c(0x230)][_0x1b0c0c(0x293)][_0x1b0c0c(0x302)](()=>{const _0x4c2900=_0x1b0c0c;this[_0x4c2900(0x37c)]&&clearTimeout(this[_0x4c2900(0x37c)]),this[_0x4c2900(0x37c)]=setTimeout(()=>{const _0x30a1fb=_0x4c2900;this[_0x30a1fb(0x403)]=!0x1;},0x7d0);});return()=>{const _0x4c9a68=_0x1b0c0c;_0x17757d[_0x4c9a68(0x538)](),_0x3e8c4b[_0x4c9a68(0x538)]();};}[_0x2a1bbf(0x4e7)](_0x3ed9ee,_0x4db413,_0x2253e3,_0x51b841){const _0x1c18c6=_0x2a1bbf,_0x4c94fa=new _0x5263cd(_0x3ed9ee)['setAlpha'](0.2)[_0x1c18c6(0x1c8)](),_0x4b062b=new _0x3b6ba0(Xr+_0x16ec03[_0x1c18c6(0x4ed)](Pe),{'pointsGroup':_0x4db413,'fill':_0x4c94fa||_0x3f79d0(_0x28aeb3[_0x1c18c6(0x487)],0.2),'left':_0x2253e3,'top':_0x51b841,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1c18c6(0x3a0)][_0x1c18c6(0x365)](_0x4b062b),this[_0x1c18c6(0x48e)][_0x1c18c6(0x256)](_0x4b062b,_0x157db6);}[_0x2a1bbf(0x3e4)](_0x128eae,_0x316379,_0xc66b3a,_0x52fb02){const _0x547545=_0x2a1bbf,_0x349a0b=new _0x5263cd(_0x128eae)[_0x547545(0x3b7)](0.2)['toRgbString'](),_0x39c3e1=new _0x3b6ba0(qr+_0x16ec03['generateRandomId'](Pe),{'pointsGroup':_0x316379,'fill':_0x349a0b||_0x3f79d0(_0x28aeb3[_0x547545(0x487)],0.2),'left':_0xc66b3a,'top':_0x52fb02,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x547545(0x3a0)][_0x547545(0x365)](_0x39c3e1),this['_scene'][_0x547545(0x256)](_0x39c3e1,_0x157db6);}[_0x2a1bbf(0x47e)](_0x2abff9){const _0x2e5c90=_0x2abff9[0x0],_0x4731c3=_0x2e5c90[0x0],_0x2c5a71=_0x2e5c90[0x2],{x:_0x3c4052,y:_0x48164e}=_0x4731c3,{x:_0x5f3e8c,y:_0x10fc9b}=_0x2c5a71;return{'left':_0x3c4052,'top':_0x48164e,'width':_0x5f3e8c-_0x3c4052,'height':_0x10fc9b-_0x48164e};}['_getScale'](){const _0x50f957=_0x2a1bbf,{scaleX:_0x1b6880,scaleY:_0x2dc401}=this[_0x50f957(0x48e)]['getAncestorScale']();return Math[_0x50f957(0x290)](_0x1b6880,_0x2dc401);}}function _0x1894(){const _0x35d0a2=['cmd','div','[CollaborationSession]','batchAllowed','ERROR_IMAGE','UPDATE_CURSOR','endColumn','indexOf','HEARTBEAT_TIMEOUT','startRow','entries','string','fillText','_hover','socketService','_event$','size','[CollaborationEntity]','collabStatus.fetchMiss','/universer-api/comb','#FFF','_updateURLWithCurrentState','LICENSE_DISTRO_REJECTED','_change$','interceptor','save\x20fail\x20reason\x20is\x20','font','updateMember','APPLY_DUPLICATED','subscribe','getCollabEntity$','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_initMergeInterceptor','_config','_sheetTransformSelectionsService','_handleHover','FETCH_MISS','actions','duration','JOIN','_revisionService','some','COMPRESS_MUTATION_APPLY','includes','_replayCachedMutations','_clearScheduledTask','getCollabCursors$','getRoom','close','_scheduleClearOtherTimer','image/gif','?url=','_sendHeartbeatTimer','replaceState','YUUMI_UNABLE_LOAD_URL','_initCloseConn','_onRemoteRetry','_startDocCollabCursor','objectActions','_handleJoinEvent','width','getUndoRedoMutationParamsCache','_notificationService','ONLINE','getViewport','cursorInfo$','_userManagerService','baseRev','show','memberID','docStateChange$','APPLY_PERMISSION_DENIED','defs','append','_startSheetCollabCursor','_onUserLeave','_localeService','map','_transformStack','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','session.collaboration-timeout','getActiveSheet','_onUserJoin','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','loadSheet','_getRedoStack','pending','startColumn','getFocusedUnit','_socket$','isPermissionRej','[OfflineState]:\x20received\x20changeset.','PERMISSION_DENIED','measureText','_syncEditingCollabCursorService','syncEditingCollabCursor','gold400','69440wCfPdn','selection','href','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','COLLAB_WEB_SOCKET_URL','getRenderById','collabStatus.syncing','addEventListener','_loadDoc','getSheetId','TEXT','_updateState','_send','pushState','_scheduleHeartbeat','_docSkeletonManagerService','HttpImport','cursorInfo','url','LIVESHARE_FETCH_OPERATIONS','onlineStatusIcon','session.will-retry','_updateStatus','_remoteChangesetQueue','height','_getAPIPrefix','getTypeOfUnitAdded$','univer-pro.collaboration-client-socket-service','rng','_id','_cursor','collabStatus.conflict','_roomMembers$','_initResize','_name','\x0aCurrent:\x20','find','getConfig','_refreshCollabCursors','_getAnchorBounding','online','arc','_disableEditing','updateOfflineData','socket\x20close','awaitingChangeset','onlineStatus','addImageSourceCache','black','setConfig','connection\x20error','_transitionLocked','function','collabStatus.offline','setShapeProps','_scene','HELLO','conflict','liveShareOperation','currentSkeleton$','DeleteRangeMoveLeftCommandId','ACTIVE_UNIT_EVENT_CHANNEL','_applyRemoteChangeset','getUnhiddenWorksheets','pipe','_substituteRedoStack','_handleHeartbeatEvent','[SyncedState]:\x20received\x20acknowledgement.','M0\x200H16V16H0z','_ws','RemoveRowCommandId','event$','_loadSheet','initWorkbookPermissionChange','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_getSendChangesetTimeout','Error','list','getImageSourceCache','withCredentials','displayName','YUUMI_SUBSCRIPTION_NOT_FOUND','?size=','saveChangeset','_singleActiveUnitService','_injector','permission.title','headers','CHANGESET_REVISION_CONFILICT','_render','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','enableOfflineEditing','RETRY_CONNECTING_MAX_COUNT','_univerInstanceService','file','selections','SHOULD_CLOSE_CONN','evenodd','split','editingUnit','LICENSE_IMPORT_SIZE_EXCEEDED','YUUMI_URL_COL_OUT_OF_RANGE','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_initUnitPermissionChange','_roomMembers','_socketReady','createCollaborator','roomMembers$','_getScale','toString','SUCCUSS','InsertRangeMoveRightCommandId','telemetry\x20info\x20is\x20not\x20initialized','registerOnClose','SNAPSHOT_HAS_BEEN_REMOVED','beginPath','registerBeforeClose','_backgroundColor','random','_docTransformSelectionsService','_onFetchMissResult','off-line-single_clip0_910_343','hasOwnProperty','_commentUpdate$','disableLocalCache','colorChannel1','_commandService','defIds','HEARTBEAT','addObjects','triggerDblclick','onTransformRemoteChangesetByIMECache','SNAPSHOT_SERVER_URL_KEY','APPLY_REJECT','roomMembers','_getSaveTimeout','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_cursors','changesets','_clearTimeoutTimer','getSheetBySheetId','getInterceptPoints','AWAITING_WITH_PENDING','call','_drawTextRange','defineProperty','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_onRemoteChangeset','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','bottom','generateRandomId','sessionStatus$','conflict.content','_getMergeRange','sid','unit','[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.','off-line-single','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_createHandler','UnitEmbedded','compose','_retryConnectingTimer','slice','_HTTPService','image/png','OTHER_CLIENTS_EDITING','engine','_snapshotServerService','data','xlink:href','getUnitType','getMember','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','bind','_permissionService','onTransformChange$','_draw','_getCtorByUniverType','_initEventListeners','_clearCollaborationTimeoutTimer','currentTheme$','CHANGESET_SHOULD_RETRY','_fetchMissChangesets','/rev/','extend','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','collab-text-range-','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','socket$','startTime','univer-online-status-title','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','lineTo','_socketService','path','LICENSE_MAX_UNITS_EXCEEDED','fromCollab','/universer-api/snapshot/','setActiveRange','collab-rect-range-','onMissingChangesets','registerHTTPInterceptor','onRemoteRej','registerComponent','setShowComponents','_initModules','_httpService','_updateLocalCursor','_getDownloadEndpointURL','USERS_LEAVE','_updateCollabCursors','_getAPIPrefixPath','/role','JOINING','_initStatusComponent','_stopTelemetryCollaborationNewChangeset','_cachedData','APPLY_NON_SEQUENTIAL_REVISION','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getRelativeToViewportCoord','ENSURE_SNAPSHOT_EXECUTION','getTypeOfUnitDisposed$','_configService','onRemoteChangeset','unsubscribe','_textBubble','_updateSubUnitFromURLParams','deleteCollaborator','getValue','_init','_onLocalMutation','column','RemoveColCommandId','UPDATE_PERMISSION_OBJ','&assign=','UNIVER_PROJECT','_unitStatus','children','_exhaustRemoteChangesetQueue','hide','none','Error\x20on\x20receiving\x20event','_scheduleCollaborationTimeoutTimer','assignAColorForMemberID','_members','getCurrentRevOfUnit','[PendingState]:\x20received\x20rejection.','UNIVER_UNKNOWN','LIVESHARE_OPERATION','_resendTimeout','reduce','setInterval','contains','_onCursorUpdate','result','apply','failed\x20to\x20apply\x20missed\x20changesets!','length','url(#on-line-single_clip0_910_349)','permissionRejEvent','_document','on-line-single_clip0_910_349','encodeURIComponent','popstate','getVpScrollXYInfoByPosToVp','getCurrentUnitForType','_sendHeartbeat','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','toRgbString','objects','encode','type','leaveEvent','_onJoinRoomEvent','getImage','session.connection-failed','dispose','_startCollaboration','OnLineSingle','submit\x20changeset\x20error!','_snapshotService','_telemetryService','clearTimeout','NEW_CHANGESETS','transformRemoteChangeset','onMouseMove','_sender','status','searchParams','state$','_beforeCloseService','setParam','resolve','collabSubmitChangesetUrl','_lockTransition','updateCursorEvent','send','_executeRemoteChangeset','_imageSourceCache','top','_hovered','_initRequestHeader','univer-online-status','collabStatus.notCollab','_telemetryInfo','getRandomValues','min','315DCaaIF','_unlockTransition','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','loginUrlKey','save','_getUploadFileURL','_changesetReqId','BASE64','_saveCache','isArray','1em','change$','_color','INVALID_ARGUMENT','INTERNAL_ERROR','/new_changes','_drawAnchor','80312MgoFZP','_disabled','permission.content','_startTelemetryCollaborationNewChangeset','range','_handleLeaveEvent','[OfflineState]:\x20received\x20rejection.','isActive','_socket','_status$','collaboration-client.config','makeDirty','ws://127.0.0.1:8000/universer-api/comb/connect','put','prototype','add','offline','capture','fetchThroughInterceptors','UNKNOWN_CMD','14PXvgVK','_collabCursorState$','/universer-api/stream/file/upload','retryConnectingInterval','isEditing','c1Prime','_submitChangeset','_commentService','_clearOtherTimers','_getSnapshotAPIPrefix','clear','_urlService','has','saveImage','findNodePositionByCharIndex','[CollaborationUndoRedoService]','384981VnnBbf','_online','setCurrentUser','FETCH_MISSING','_createInitialStateImpl','_state$','c2Prime','_getCurrentRevision','originalMeta','_sheetSkeletonManagerService','univer-online','removeMember','_anchor','current','_type','/universer-api/snapshot','json','onReady','AWAITING','getUnit','_socketMessageSubscription','UNIVER_COLLABORATION_CLIENT_PLUGIN','_collaborationPaused','52742KXZiEa','onCommentUpdate','saveSheetBlock','getOffsetConfig','INGEST','transform','_assignedColors','transformByState','collaboration.closeRoom','CONFLICT','_getSignURL','/object/','_messageService','_queuedRemoteChangesets','_lastPointer','_transformRemoteChangesetByIMECache','HttpExport','verdancy600','_incrementRevisionNumber','AUTHZ_URL_KEY','_clearLocalCache','_transformService','asObservable','post','onStarting','_docTransformIMECacheService','clipPath','addObject','_onConflict','awaiting','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_substituteUndoStack','_selfUnitIDs','getUnitOnRev','IDLE','_setupBeforeClosingHandler','_replaceFileID','_heartbeatTimer','_collabCursorController','closePath','unload','location','transformUndoRedo','&source=','m1Prime','replace','onlyLocal','_onCombEvent','_refRangeService','focused$','backgroundColor','getLatestCsReqIdBySid','UNIVER_SHEET','getOwnPropertySymbols','_syncEditingCollabCursor','setUndoRedoMutationParamsCache','_themeService','downloadEndpointUrl','MSG_FOR_ERROR','reverse','_onRemoteRejected','setItem','set','x-univer-host','/resources','onlineStatusTitle','UNIVER_SLIDE','createInstance','ERROR_EXCEED_SIZE','_onRefRangeChange','getSkeleton','round','doc.mutation.rich-text-editing','_entityInit$','uploadFileServerUrl','code','LOCAL_CACHE_INTERVAL','on-line-single','_joinRoom','forEach','all','_collabSessionService','_clearHeartbeatTimer','UniverIcon','trim','max','session.room-full','text','onPointerLeave$','params','UNRECOGNIZED','ranges','origin','registerRenderModule','className','startsWith','_clearUndo','4247060osnGYb','putCollaborators','clearInterval','USERS_ENTER','_collaborationTimeoutTimer','[CollaborationSessionService]:\x20socket\x20error','onPointerEnter$','[PendingState]:\x20received\x20acknowledgement.','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','SUBMIT_CHANGESET','_removeCollabCursors','onTransformSelections','/allowed','_anchorDot','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','_registerRenderDependencies','every','_scheduleSaving','_acknowledgedAwaitingChangeset','/-/object/-/batch_allowed','transformMutationsWithChangeset','MUTATION','_sessions','_showConflictNotification','univerjs-icon\x20univerjs-icon-','_tryEnsureSocket','VIEW_MAIN','status$','restore','fetchMiss','_scheduleTimestamp','createElement','getActiveRange','blue400','UUID','HEADER_MENU','[FetchMissState]','TOO_MANY_REQUESTS','_waitCount','\x20-\x20','getCurrentSelections','replaceTextRanges','error','_handler','Univer','LOGIN_URL_KEY','UNIVER_DOC','_labelPosition','values','NO_OTHER_CLIENTS_EDITING','getOwnPropertyDescriptor','registerRefRange','DeleteRangeMoveUpCommandId','onRemoteAck','reconnect','_entities','\x20to\x20','_eventUnsubscribe','csAckEvent','_docSyncEditingCollabCursorService','m2Prime','UNDEFINED','_context','routeKey','_getLoginPath','_onOffline','_createSocket','_changesetSessionId','toggleOffline','RECT','_localStorageService','enableSingleActiveInstanceLock','hidden','collaboration-session-retry','_shouldReportTelemetry','getAllMembers','_timeoutTimer','getUnitStatus$','_toggleOnline','next','PERMISSION_REJ','svg','CHANGESET_ACK','now','editing\x20status\x20changed\x20to','from','createSocket','responseType','_transformIMECache','FromArray','_resendWithTimeout','message$','...','onRendered','pluginName','_session','randomUUID','resend','COMMENT_UPDATE','_saveTaskMap','collabCursorState$','/block/','subscribeEvent','updatePermissionPoint','fetching\x20missing\x20changesets\x20from\x20','PENDING','csShouldRetryEvent','534zRsbCq','rgba(255,\x20255,\x20255,\x200.01)','body','transformChangesets','unit-cache-','name','authzUrl','unshift','fill','LIVESHARE_NEW_HOST','fetch_missing','session','CONNECTOR_DATA_TOO_LARGE','src','LIVESHARE_REQUEST_HOST','_cursorInfo$','closeSession','getCellPositionByOffset','_getSheetObject','collabStatus.synced','complete','MoveRangeCommandId','_rescheduleHeartbeat','reject','_toggleOffline','state','univer-offline','debug','POST','drawWith','_collaborationSessionService','_setupSubUnitSync','fillStyle','COLLAB_SUBMIT_CHANGESET_URL','InsertRowCommandId','substring','appendMutation','getMemberID','subunit','getUnitId','update','synced','[CollaborationState]:\x20apply\x20error!','_initStatusListener','APPLY_REVISION_CONFILICT','getResourcesRequest','ALREADY_EXISTS','/unit/','getCollabEntity','InsertColCommandId','FileId','_compressMutationService','toggleOnline','_logService','reqId','urlChange$','create','_throwTelemetryCollaborationNewChangeset','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','{fileID}','getDocRanges','_resendTimer','whenReady','_pendingMutations','OffLineSingle','_colorIndex','_localCacheService','rev','_colorAssignService','concat','setTimeout','setWaitCount','roomInfos','listCollaborators','RECV','currentColor','_unitID','updatePermissionObjEvent','20990mcOYVn','number','\x0aAfter:\x20','_removeClearOtherTimer','_sessionStatus$','_onConnectionOpen','url(#off-line-single_clip0_910_343)','_transformPreviousActiveRange','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_listenToOnlineEvent','collaboration-client.offline-data-not-saved','delete','Warning','getTime','_collaborationController','enableLocalCache','push','_cursorShapes','HEARTBEAT_INTERVAL','_range','collaMsg','onCommandExecuted','OFFLINE','2681378nsZWEo','sheetID','refreshPermission','_onRemoteACK','exhaustSavingTask','_transformUndoredo','onSendChangeset','userID','history','init','skeleton','UNAUTHENTICATED','error$','/universer-api/authz','_ensureSubject','_redoStacks','_hideTimer','onPointerMove$','NOT_COLLAB','PSEUDO_FETCH_MISSING_RESULT','get','/collaborator','InsertRangeMoveDownCommandId','with','awaiting_with_pending','textRanges','storage','objectID','_tryReconnect','fetchMissingChangesets','_uiPartsService','_docStateChangeManagerService','transformIMECache','row','requestParams','_clearRedo','catch','_undoRedoService','Undefined','filter','disposeWithMe','transformMutation','unknown','stringify','onSyncEditingCollabCursor','shouldCloseConn','Unknown\x20user','_schedule','_waitForHeartbeatResponse','LIVESHARE_TERMINATE','saveSnapshot','getDeserializedSheetBlock','_shapes','_memberService','_getUndoStack','eventID','revision','unitId','/-/object/list','loadOfflineData','_updateLocalCache','_awaitingChangeset','_instanceService','attrs','icon','tag','transformSelections','_onConnectionFailed','not_collab','_isPermissionRej','getParam','_decreaseWaiting','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','requireSession','saveOfflineData','setAlpha','commentUpdate$','newCsEvent','_transformSelections','onStateChange','_initCommandExecutedListener','[DataLoaderController]','_transformUndoRedoStack','_checkMissing','getUniverSheetInstance','_handleEvent','confirm','deepClone','onTransformIME','LEAVE','_listenToOfflineEvent','[UniverCollaborationClientPlugin]','workbook','auth.needGotoLoginAlert','translate(.97)','stopTime','CHANGESET_REJ','_candidateSocket','liveShareNewHost','0\x200\x2017\x2016','COMPLETION_FINISHED','snapshotServerUrl','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','unitID','idSuffix','FAIL','getRangePointData','_unitOnClients','socket\x20open.','_state','_retryCount','localeService','allowed','then','YUUMI_RATE_OVER_LIMIT','parse','subUnitId','onRemoteRetry','UNKNOWN_CODE','visibilitychange','_drawRectRange','/object','assign','_sendingTimer','purple300','_renderManagerService','/universer-api/oidc/authpage','getCurrentUser','\x20in\x20_schedule.','members','color','LICENSE_EXPORT_SIZE_EXCEEDED','onMissedChangesetFetched','mutations','collaboration.single-unit.warning','dispose$','incrementRevOfUnit','executeCommand'];_0x1894=function(){return _0x35d0a2;};return _0x1894();}var Qr=Object[_0x2a1bbf(0x4e8)],eo=Object['getOwnPropertyDescriptor'],to=(_0x4af8d9,_0x310e37,_0x2f9a1c,_0x5b1ca8)=>{for(var _0x34e5d2=_0x5b1ca8>0x1?void 0x0:_0x5b1ca8?eo(_0x310e37,_0x2f9a1c):_0x310e37,_0x1056b7=_0x4af8d9['length']-0x1,_0x333581;_0x1056b7>=0x0;_0x1056b7--)(_0x333581=_0x4af8d9[_0x1056b7])&&(_0x34e5d2=(_0x5b1ca8?_0x333581(_0x310e37,_0x2f9a1c,_0x34e5d2):_0x333581(_0x34e5d2))||_0x34e5d2);return _0x5b1ca8&&_0x34e5d2&&Qr(_0x310e37,_0x2f9a1c,_0x34e5d2),_0x34e5d2;},Be=(_0xc24c79,_0x63e5b4)=>(_0x510ca2,_0x2c1971)=>_0x63e5b4(_0x510ca2,_0x2c1971,_0xc24c79);let Pt=class extends _0x5b2156{constructor(_0x3bbc41,_0x5dcb87,_0x3ee79a,_0x4d6b93,_0x165838){const _0x58c35c=_0x2a1bbf;super(),l(this,_0x58c35c(0x366),[]),l(this,'_cursors',[]),(this[_0x58c35c(0x2da)]=_0x3bbc41,this[_0x58c35c(0x466)]=_0x5dcb87,this['_collabCursorController']=_0x3ee79a,this[_0x58c35c(0x4d5)]=_0x4d6b93,this[_0x58c35c(0x273)]=_0x165838,this[_0x58c35c(0x53d)]());}[_0x2a1bbf(0x53d)](){const _0x8e0c11=_0x2a1bbf,_0x3a16ca=this[_0x8e0c11(0x2da)][_0x8e0c11(0x3a5)],_0x6bf2c5=this['_docSkeletonManagerService'];this[_0x8e0c11(0x394)](_0x53d442([this[_0x8e0c11(0x261)]['getCollabCursors$'](_0x3a16ca),this[_0x8e0c11(0x273)][_0x8e0c11(0x50c)]])[_0x8e0c11(0x497)](_0x44f82f(([_0x512d94,_0x2759c3])=>({'skeleton':_0x6bf2c5[_0x8e0c11(0x281)](),'cursors':[..._0x512d94[_0x8e0c11(0x2cc)]()]['flatMap'](_0x55c116=>({..._0x55c116,'color':_0x2759c3[_0x55c116['color']]}))})))[_0x8e0c11(0x413)](_0x316d62=>{const _0x3ad2a4=_0x8e0c11;if(this[_0x3ad2a4(0x2a6)](),_0x316d62){const {skeleton:_0xa13675,cursors:_0x5a3f90}=_0x316d62;this[_0x3ad2a4(0x52a)](_0xa13675,_0x5a3f90);}})),this[_0x8e0c11(0x478)](),this[_0x8e0c11(0x3bc)]();}[_0x2a1bbf(0x52a)](_0x289e08,_0x12bdfa){const _0x35ed66=_0x2a1bbf,{scene:_0x2eaa65,mainComponent:_0x15606d}=this[_0x35ed66(0x2da)],_0x2ec108=_0x12bdfa['map'](_0x83ec81=>new Ss(_0x83ec81,_0x2eaa65,_0x289e08,_0x15606d));this[_0x35ed66(0x366)]=_0x2ec108,this[_0x35ed66(0x4e0)]=_0x12bdfa;}[_0x2a1bbf(0x47d)](){const _0x46590c=_0x2a1bbf;this[_0x46590c(0x2a6)]();const {scene:_0x21aa21,mainComponent:_0x251277}=this[_0x46590c(0x2da)],_0x5b4254=this[_0x46590c(0x466)][_0x46590c(0x281)](),_0x2b6cce=this[_0x46590c(0x4e0)][_0x46590c(0x443)](_0x2c5d81=>new Ss(_0x2c5d81,_0x21aa21,_0x5b4254,_0x251277));this[_0x46590c(0x366)]=_0x2b6cce;}[_0x2a1bbf(0x2a6)](){const _0x4835d9=_0x2a1bbf;this[_0x4835d9(0x366)]['forEach'](_0x74882d=>_0x74882d[_0x4835d9(0x1d0)]()),this[_0x4835d9(0x366)]=[];}['_initCommandExecutedListener'](){const _0x538627=_0x2a1bbf,_0x97e802=[_0x3e7dd2['id']];this[_0x538627(0x394)](this[_0x538627(0x4d5)][_0x538627(0x36a)](_0x429e7f=>{const _0x17fe23=_0x538627;_0x97e802[_0x17fe23(0x421)](_0x429e7f['id'])&&_0x429e7f[_0x17fe23(0x294)]['unitId']===this[_0x17fe23(0x2da)][_0x17fe23(0x3a5)]&&this[_0x17fe23(0x47d)]();}));}['_initResize'](){const _0x363bf2=_0x2a1bbf;this[_0x363bf2(0x394)](_0x18f301(this[_0x363bf2(0x2da)][_0x363bf2(0x4fe)][_0x363bf2(0x507)])['pipe'](_0x3edad6(_0xe366db=>_0xe366db['type']===_0x5c0076['resize']),_0x5a9dcf(0x10))[_0x363bf2(0x413)](()=>{const _0x3f3055=_0x363bf2;this[_0x3f3055(0x47d)]();}));}};Pt=to([Be(0x1,_0x55fbd9(_0x22840a)),Be(0x2,_0x55fbd9(Ce)),Be(0x3,_0x31e03d),Be(0x4,_0x55fbd9(_0x1ff8cb))],Pt);const so=0x1,io=1.5;class no extends _0x2b454e{constructor(_0x11d9dd,_0x5f5b41){const _0x115303=_0x2a1bbf;super(_0x11d9dd,_0x5f5b41),l(this,'_color'),l(this,_0x115303(0x1e8),!0x1),l(this,_0x115303(0x368)),l(this,_0x115303(0x479),''),l(this,_0x115303(0x2cb),_0x115303(0x1e7)),l(this,_0x115303(0x4cc)),(_0x5f5b41&&this[_0x115303(0x48d)](_0x5f5b41),this['onPointerEnter$'][_0x115303(0x302)](()=>this[_0x115303(0x48d)]({'hovered':!0x0})),this[_0x115303(0x293)]['subscribeEvent'](()=>this[_0x115303(0x48d)]({'hovered':!0x1})));}['setShapeProps'](_0x458152){const _0x5ac889=_0x2a1bbf;var _0x5125b4,_0xa21627,_0x22c2f6,_0x1ab1ee,_0x31550f,_0x33dc99;this[_0x5ac889(0x1fb)]=(_0x5125b4=_0x458152[_0x5ac889(0x3ee)])!=null?_0x5125b4:this[_0x5ac889(0x1fb)],this['_hovered']=(_0xa21627=_0x458152['hovered'])!=null?_0xa21627:this[_0x5ac889(0x1e8)],this[_0x5ac889(0x368)]=(_0x22c2f6=_0x458152[_0x5ac889(0x204)])!=null?_0x22c2f6:this[_0x5ac889(0x368)],this[_0x5ac889(0x479)]=(_0x1ab1ee=_0x458152[_0x5ac889(0x30c)])!=null?_0x1ab1ee:this[_0x5ac889(0x479)],this[_0x5ac889(0x2cb)]=(_0x31550f=_0x458152['labelPosition'])!=null?_0x31550f:this[_0x5ac889(0x2cb)],this[_0x5ac889(0x4cc)]=(_0x33dc99=_0x458152[_0x5ac889(0x26d)])!=null?_0x33dc99:this[_0x5ac889(0x4cc)],this[_0x5ac889(0x242)]({'width':_0x458152[_0x5ac889(0x432)],'height':_0x458152[_0x5ac889(0x46f)]});}[_0x2a1bbf(0x1d9)](_0x1aee31){const _0x29f17d=_0x2a1bbf,{row:_0x3ab862,column:_0x2a5dbf}=_0x1aee31;if(_0x3ab862>=this[_0x29f17d(0x368)][_0x29f17d(0x3ff)]&&_0x3ab862<=this[_0x29f17d(0x368)]['endRow']&&_0x2a5dbf>=this['_range'][_0x29f17d(0x44d)]&&_0x2a5dbf<=this['_range'][_0x29f17d(0x3fc)]){this[_0x29f17d(0x48d)]({'hovered':!0x0});return;}this[_0x29f17d(0x48d)]({'hovered':!0x1});}[_0x2a1bbf(0x4d9)](_0xd849b8){return!0x1;}[_0x2a1bbf(0x508)](_0x243f4f){const _0x354f0d=_0x2a1bbf;_0x48257f['drawWith'](_0x243f4f,{'width':this[_0x354f0d(0x432)],'height':this[_0x354f0d(0x46f)],'strokeWidth':io,'stroke':this[_0x354f0d(0x1fb)],'evented':!0x1,'fill':this[_0x354f0d(0x4cc)]}),this[_0x354f0d(0x1e8)]&&(_0x243f4f[_0x354f0d(0x1f3)](),_0x243f4f[_0x354f0d(0x240)](0x1,0x0,0x0,0x1,this['width'],this[_0x354f0d(0x2cb)]===_0x354f0d(0x4ec)?0x0:-je),nt['drawWith'](_0x243f4f,{'text':this[_0x354f0d(0x479)],'color':this['_color']}),_0x243f4f[_0x354f0d(0x2b8)]());}}var ro=Object[_0x2a1bbf(0x4e8)],oo=Object['getOwnPropertyDescriptor'],ao=(_0x47de79,_0x52a24d,_0x403718,_0xcd4a3)=>{const _0x478057=_0x2a1bbf;for(var _0x54ad37=_0xcd4a3>0x1?void 0x0:_0xcd4a3?oo(_0x52a24d,_0x403718):_0x52a24d,_0xd68937=_0x47de79[_0x478057(0x1bd)]-0x1,_0x324381;_0xd68937>=0x0;_0xd68937--)(_0x324381=_0x47de79[_0xd68937])&&(_0x54ad37=(_0xcd4a3?_0x324381(_0x52a24d,_0x403718,_0x54ad37):_0x324381(_0x54ad37))||_0x54ad37);return _0xcd4a3&&_0x54ad37&&ro(_0x52a24d,_0x403718,_0x54ad37),_0x54ad37;},St=(_0x232042,_0x2f65db)=>(_0x4e2c2c,_0x4b35e8)=>_0x2f65db(_0x4e2c2c,_0x4b35e8,_0x232042);const co=0x1389;let yt=class extends _0x5b2156{constructor(_0x33622b,_0x248558,_0x4ee4da,_0x4498c5){const _0x105d14=_0x2a1bbf;super(),l(this,_0x105d14(0x4e0),new Set()),l(this,_0x105d14(0x249),null),(this[_0x105d14(0x2da)]=_0x33622b,this[_0x105d14(0x22d)]=_0x248558,this['_collabCursorController']=_0x4ee4da,this[_0x105d14(0x273)]=_0x4498c5,this['_init']());}[_0x2a1bbf(0x53d)](){const _0x436d3d=_0x2a1bbf;this[_0x436d3d(0x22d)][_0x436d3d(0x492)]['pipe'](_0x1fdc8d(this['dispose$']),_0x31e616(_0x3789d6=>{const _0x3003d9=_0x436d3d;if(_0x3789d6){const _0x260b00=_0x3789d6['sheetId'];return _0x53d442(this['_collabCursorController'][_0x3003d9(0x424)](this['_context'][_0x3003d9(0x3a5)]),this[_0x3003d9(0x273)][_0x3003d9(0x50c)])[_0x3003d9(0x497)](_0x44f82f(([_0x5a9d97,_0x582278])=>{const _0xc37b3d=_0x3003d9,_0x6f5587=new Map();return _0x5a9d97[_0xc37b3d(0x28a)]((_0xf1f3eb,_0x12ceb0)=>{const _0x1e6662=_0xc37b3d;if(_0xf1f3eb[_0x1e6662(0x36d)]===_0x260b00){const _0xc6caf2={..._0xf1f3eb};_0xc6caf2[_0x1e6662(0x3ee)]=_0x582278[_0xf1f3eb[_0x1e6662(0x3ee)]],_0x6f5587[_0x1e6662(0x279)](_0x12ceb0,_0xc6caf2);}}),{'skeleton':_0x3789d6,'cursors':_0x6f5587};}));}return _0x1af720({'skeleton':null,'cursors':new Map()});}))[_0x436d3d(0x413)](({skeleton:_0x272d6b,cursors:_0x2cfdd3})=>{const _0x61f13c=_0x436d3d;this[_0x61f13c(0x2a6)](),_0x272d6b&&this['_updateCollabCursors'](_0x272d6b,_0x2cfdd3);}),this[_0x436d3d(0x22d)][_0x436d3d(0x492)][_0x436d3d(0x413)](_0x350293=>{const _0xa1f529=_0x436d3d;if(_0x350293==null)return;const {skeleton:_0x5164ce}=_0x350293,{scene:_0x273c7a}=this[_0xa1f529(0x2da)];_0x273c7a[_0xa1f529(0x37d)][_0xa1f529(0x302)](_0x5e8353(_0x29edc0=>{const _0x256131=_0xa1f529;var _0x55c5bb,_0x2def13;const {offsetX:_0x3ac887,offsetY:_0x223407}=_0x29edc0,{x:_0x28b07d,y:_0x2c6387}=_0x273c7a[_0x256131(0x533)](_0x185930[_0x256131(0x2f5)]([_0x3ac887,_0x223407])),{scaleX:_0x4c2c1a,scaleY:_0x4aba71}=_0x273c7a['getAncestorScale'](),_0x50d6c6=_0x273c7a[_0x256131(0x436)](_0x2cc272[_0x256131(0x2b6)]),_0x391a40=_0x273c7a[_0x256131(0x1c4)](_0x185930[_0x256131(0x2f5)]([_0x28b07d,_0x2c6387]),_0x50d6c6),_0x4a079e=_0x5164ce[_0x256131(0x318)](_0x3ac887,_0x223407,_0x4c2c1a,_0x4aba71,_0x391a40);((_0x55c5bb=this[_0x256131(0x249)])==null?void 0x0:_0x55c5bb[_0x256131(0x53f)])===_0x4a079e[_0x256131(0x53f)]&&((_0x2def13=this[_0x256131(0x249)])==null?void 0x0:_0x2def13[_0x256131(0x38d)])===_0x4a079e[_0x256131(0x38d)]||this[_0x256131(0x4e0)][_0x256131(0x28a)](_0x4b3480=>{_0x4b3480['onMouseMove'](_0x4a079e);});},0x64));});}[_0x2a1bbf(0x52a)](_0x2606d5,_0x24555c){const _0x11d7ba=_0x2a1bbf;var _0x47c217;const _0x3bd5d2=(_0x47c217=this[_0x11d7ba(0x22d)]['getCurrent']())==null?void 0x0:_0x47c217[_0x11d7ba(0x376)];if(!_0x3bd5d2)return;const _0x28d4e9=this[_0x11d7ba(0x319)]();if(!_0x28d4e9)return;this[_0x11d7ba(0x4e0)]['forEach'](_0x55944f=>{const _0x1e7824=_0x11d7ba;_0x55944f[_0x1e7824(0x20b)]();});const {scene:_0x2ebafb}=_0x28d4e9,_0x13be5e=ho(Array['from'](_0x24555c[_0x11d7ba(0x2cc)]()))[_0x11d7ba(0x443)](_0x580306=>{const _0x436dc3=_0x11d7ba,{color:_0x4aaa9d,range:_0x5a21fb,name:_0x48e6cb,selection:_0x297078,sheetID:_0x48640b}=_0x580306,{startColumn:_0x1c5f2f,startRow:_0x1d296e,endColumn:_0x3e1454,endRow:_0x40e3d4}=_0x5a21fb,_0x4ec445=_0x213d9e(_0x1d296e,_0x1c5f2f,_0x2ebafb,_0x3bd5d2),_0x2a6d00=_0x213d9e(_0x40e3d4,_0x3e1454,_0x2ebafb,_0x3bd5d2),{columnHeaderHeightAndMarginTop:_0x2ea01e}=_0x3bd5d2,{startX:_0x305644,startY:_0x39af51}=_0x4ec445,{endX:_0x3f38e5,endY:_0x269716}=_0x2a6d00,_0x4fcd43=_0x3f38e5-_0x305644,_0x2cffb6=_0x269716-_0x39af51,_0x94122f={'labelPosition':_0x39af51-_0x2ea01e>=je?_0x436dc3(0x1e7):'bottom','sheetID':_0x48640b,'range':_0x5a21fb,'color':_0x4aaa9d,'name':_0x48e6cb,'selection':_0x297078,'left':_0x305644,'top':_0x39af51,'width':_0x4fcd43,'height':_0x2cffb6,'evented':!0x1,'zIndex':co};return new no(_0x48e6cb,_0x94122f);});_0x2ebafb[_0x11d7ba(0x4d8)](_0x13be5e,so),this[_0x11d7ba(0x4e0)]=new Set(_0x13be5e);}[_0x2a1bbf(0x2a6)](){const _0x465b47=_0x2a1bbf;var _0x1df2bf;(_0x1df2bf=this[_0x465b47(0x4e0)])==null||_0x1df2bf['forEach'](_0x41371b=>_0x41371b[_0x465b47(0x1d0)]());}[_0x2a1bbf(0x319)](){const _0x98a498=_0x2a1bbf;return _0x1d769f(this[_0x98a498(0x2da)][_0x98a498(0x4f2)],this[_0x98a498(0x2da)]);}};yt=ao([St(0x1,_0x55fbd9(_0x55360d)),St(0x2,_0x55fbd9(Ce)),St(0x3,_0x55fbd9(_0x1ff8cb))],yt);function ho(_0x2b56e3){const _0x2e88c5=_0x2a1bbf,_0x151228=new Map();return _0x2b56e3[_0x2e88c5(0x28a)](_0x152314=>{const _0x172d3c=_0x2e88c5;if(_0x151228[_0x172d3c(0x220)](_0x152314[_0x172d3c(0x458)])){const _0x2433fa=_0x151228['get'](_0x152314[_0x172d3c(0x458)]);_0x2433fa['name']+=',\x20'+_0x152314[_0x172d3c(0x30c)];}else _0x151228['set'](_0x152314[_0x172d3c(0x458)],_0x152314);}),Array[_0x2e88c5(0x2f1)](_0x151228[_0x2e88c5(0x2cc)]());}var U=function(){const _0x1252a8=_0x2a1bbf;return U=Object[_0x1252a8(0x3e6)]||function(_0x10d08d){const _0x194bf7=_0x1252a8;for(var _0x9679e2,_0x41dee5=0x1,_0x13fef5=arguments[_0x194bf7(0x1bd)];_0x41dee5<_0x13fef5;_0x41dee5++){_0x9679e2=arguments[_0x41dee5];for(var _0x2edd75 in _0x9679e2)Object[_0x194bf7(0x20e)][_0x194bf7(0x4d1)][_0x194bf7(0x4e6)](_0x9679e2,_0x2edd75)&&(_0x10d08d[_0x2edd75]=_0x9679e2[_0x2edd75]);}return _0x10d08d;},U[_0x1252a8(0x1bb)](this,arguments);},lo=function(_0x4487f9,_0x18885a){const _0x562b14=_0x2a1bbf;var _0x1a8e28={};for(var _0x255df2 in _0x4487f9)Object[_0x562b14(0x20e)][_0x562b14(0x4d1)][_0x562b14(0x4e6)](_0x4487f9,_0x255df2)&&_0x18885a[_0x562b14(0x3fd)](_0x255df2)<0x0&&(_0x1a8e28[_0x255df2]=_0x4487f9[_0x255df2]);if(_0x4487f9!=null&&typeof Object['getOwnPropertySymbols']==_0x562b14(0x48b)){for(var _0x1dc316=0x0,_0x255df2=Object[_0x562b14(0x270)](_0x4487f9);_0x1dc316<_0x255df2['length'];_0x1dc316++)_0x18885a['indexOf'](_0x255df2[_0x1dc316])<0x0&&Object[_0x562b14(0x20e)]['propertyIsEnumerable']['call'](_0x4487f9,_0x255df2[_0x1dc316])&&(_0x1a8e28[_0x255df2[_0x1dc316]]=_0x4487f9[_0x255df2[_0x1dc316]]);}return _0x1a8e28;},Kt=_0x54153c(function(_0x367ef1,_0x3fa8ec){const _0x3cbbee=_0x2a1bbf;var _0x428055=_0x367ef1['icon'],_0x500600=_0x367ef1['id'],_0x3365b8=_0x367ef1[_0x3cbbee(0x299)],_0x3514c7=_0x367ef1[_0x3cbbee(0x510)],_0x5c98d0=lo(_0x367ef1,[_0x3cbbee(0x3ac),'id',_0x3cbbee(0x299),_0x3cbbee(0x510)]),_0x2a3b65=_0x3cbbee(0x2b4)['concat'](_0x500600,'\x20')['concat'](_0x3365b8||'')[_0x3cbbee(0x28f)](),_0x1e77c7=_0x121bdb('_'[_0x3cbbee(0x34c)](mo()));return qs(_0x428055,''[_0x3cbbee(0x34c)](_0x500600),{'defIds':_0x428055[_0x3cbbee(0x4d6)],'idSuffix':_0x1e77c7[_0x3cbbee(0x231)]},U({'ref':_0x3fa8ec,'className':_0x2a3b65},_0x5c98d0),_0x3514c7);});function qs(_0x4aeb3c,_0x91542b,_0x5435cc,_0x5d7f09,_0x5690b9){const _0x20977a=_0x2a1bbf;return _0x2159e6(_0x4aeb3c['tag'],U(U({'key':_0x91542b},_o(_0x4aeb3c,_0x5435cc,_0x5690b9)),_0x5d7f09),(uo(_0x4aeb3c,_0x5435cc)[_0x20977a(0x545)]||[])[_0x20977a(0x443)](function(_0x45771e,_0x1afd7f){const _0x2dde7a=_0x20977a;return qs(_0x45771e,''['concat'](_0x91542b,'-')[_0x2dde7a(0x34c)](_0x4aeb3c[_0x2dde7a(0x3ad)],'-')[_0x2dde7a(0x34c)](_0x1afd7f),_0x5435cc,void 0x0,_0x5690b9);}));}function _o(_0x1ce384,_0x109502,_0x57f044){const _0x596f9a=_0x2a1bbf;var _0x19085f=U({},_0x1ce384[_0x596f9a(0x3ab)]);_0x57f044!=null&&_0x57f044[_0x596f9a(0x4d4)]&&_0x19085f[_0x596f9a(0x30f)]===_0x596f9a(0x4d4)&&(_0x19085f[_0x596f9a(0x30f)]=_0x57f044[_0x596f9a(0x4d4)]);var _0xc47df5=_0x109502[_0x596f9a(0x4d6)];return!_0xc47df5||_0xc47df5[_0x596f9a(0x1bd)]===0x0||(_0x1ce384['tag']==='use'&&_0x19085f[_0x596f9a(0x501)]&&(_0x19085f[_0x596f9a(0x501)]=_0x19085f[_0x596f9a(0x501)]+_0x109502['idSuffix']),Object[_0x596f9a(0x400)](_0x19085f)[_0x596f9a(0x28a)](function(_0xd2b3a7){const _0x850783=_0x596f9a;var _0x58e96f=_0xd2b3a7[0x0],_0x56f113=_0xd2b3a7[0x1];typeof _0x56f113=='string'&&(_0x19085f[_0x58e96f]=_0x56f113['replace'](/url\(#(.*)\)/,'url(#$1'[_0x850783(0x34c)](_0x109502[_0x850783(0x3d4)],')')));})),_0x19085f;}function uo(_0x81816f,_0x799c8c){const _0x2f2a0c=_0x2a1bbf;var _0x50b411,_0x3fe10d=_0x799c8c[_0x2f2a0c(0x4d6)];return!_0x3fe10d||_0x3fe10d[_0x2f2a0c(0x1bd)]===0x0?_0x81816f:_0x81816f[_0x2f2a0c(0x3ad)]==='defs'&&(!((_0x50b411=_0x81816f[_0x2f2a0c(0x545)])===null||_0x50b411===void 0x0)&&_0x50b411[_0x2f2a0c(0x1bd)])?U(U({},_0x81816f),{'children':_0x81816f[_0x2f2a0c(0x545)][_0x2f2a0c(0x443)](function(_0x84cf14){const _0x1ef722=_0x2f2a0c;return typeof _0x84cf14[_0x1ef722(0x3ab)]['id']=='string'&&_0x3fe10d&&_0x3fe10d[_0x1ef722(0x3fd)](_0x84cf14['attrs']['id'])>-0x1?U(U({},_0x84cf14),{'attrs':U(U({},_0x84cf14['attrs']),{'id':_0x84cf14[_0x1ef722(0x3ab)]['id']+_0x799c8c[_0x1ef722(0x3d4)]})}):_0x84cf14;})}):_0x81816f;}function mo(){const _0x308986=_0x2a1bbf;return Math[_0x308986(0x4cd)]()['toString'](0x24)[_0x308986(0x32a)](0x2,0x8);}Kt['displayName']=_0x2a1bbf(0x28e);var fo={'tag':_0x2a1bbf(0x2ed),'attrs':{'fill':_0x2a1bbf(0x1ac),'viewBox':'0\x200\x2016\x2016','width':_0x2a1bbf(0x1f9),'height':_0x2a1bbf(0x1f9)},'children':[{'tag':'g','attrs':{'clipPath':_0x2a1bbf(0x35b)},'children':[{'tag':_0x2a1bbf(0x51a),'attrs':{'stroke':'currentColor','d':_0x2a1bbf(0x2aa),'strokeLinecap':_0x2a1bbf(0x282),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2a1bbf(0x43e),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2a1bbf(0x4d0)},'children':[{'tag':_0x2a1bbf(0x51a),'attrs':{'fill':'#fff','d':_0x2a1bbf(0x49b)}}]}]}],'defIds':[_0x2a1bbf(0x4d0)]},Js=_0x54153c(function(_0x4738d2,_0x755e4e){const _0x226e12=_0x2a1bbf;return _0x2159e6(Kt,Object[_0x226e12(0x3e6)]({},_0x4738d2,{'id':_0x226e12(0x4f4),'ref':_0x755e4e,'icon':fo}));});Js[_0x2a1bbf(0x4a7)]=_0x2a1bbf(0x347);var go={'tag':_0x2a1bbf(0x2ed),'attrs':{'fill':_0x2a1bbf(0x1ac),'viewBox':_0x2a1bbf(0x3cf),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2a1bbf(0x1be)},'children':[{'tag':_0x2a1bbf(0x51a),'attrs':{'stroke':_0x2a1bbf(0x352),'d':_0x2a1bbf(0x4b1),'strokeLinecap':'round','strokeLinejoin':_0x2a1bbf(0x282),'strokeWidth':1.2}}]},{'tag':_0x2a1bbf(0x43e),'attrs':{},'children':[{'tag':_0x2a1bbf(0x255),'attrs':{'id':_0x2a1bbf(0x1c1)},'children':[{'tag':_0x2a1bbf(0x51a),'attrs':{'fill':'#fff','d':_0x2a1bbf(0x49b),'transform':_0x2a1bbf(0x3ca)}}]}]}],'defIds':[_0x2a1bbf(0x1c1)]},zs=_0x54153c(function(_0x4e4347,_0x35bec2){const _0x5bab8c=_0x2a1bbf;return _0x2159e6(Kt,Object[_0x5bab8c(0x3e6)]({},_0x4e4347,{'id':_0x5bab8c(0x288),'ref':_0x35bec2,'icon':go}));});zs[_0x2a1bbf(0x4a7)]=_0x2a1bbf(0x1d2);function Zs(_0x381c08){const _0x3f69ec=_0x2a1bbf;var _0x5d1eca,_0x1ca0e0,_0x335a76='';if(typeof _0x381c08==_0x3f69ec(0x401)||typeof _0x381c08==_0x3f69ec(0x356))_0x335a76+=_0x381c08;else{if(typeof _0x381c08=='object'){if(Array['isArray'](_0x381c08)){var _0xc434c7=_0x381c08[_0x3f69ec(0x1bd)];for(_0x5d1eca=0x0;_0x5d1eca<_0xc434c7;_0x5d1eca++)_0x381c08[_0x5d1eca]&&(_0x1ca0e0=Zs(_0x381c08[_0x5d1eca]))&&(_0x335a76&&(_0x335a76+='\x20'),_0x335a76+=_0x1ca0e0);}else{for(_0x1ca0e0 in _0x381c08)_0x381c08[_0x1ca0e0]&&(_0x335a76&&(_0x335a76+='\x20'),_0x335a76+=_0x1ca0e0);}}}return _0x335a76;}function So(){const _0x22b28d=_0x2a1bbf;for(var _0x75a836,_0x53a07d,_0x1418e7=0x0,_0x298eed='',_0x46561d=arguments[_0x22b28d(0x1bd)];_0x1418e7<_0x46561d;_0x1418e7++)(_0x75a836=arguments[_0x1418e7])&&(_0x53a07d=Zs(_0x75a836))&&(_0x298eed&&(_0x298eed+='\x20'),_0x298eed+=_0x53a07d);return _0x298eed;}const po='univer-online-status-icon',vo=_0x2a1bbf(0x516),Io=_0x2a1bbf(0x1ea),Eo=_0x2a1bbf(0x22e),Co=_0x2a1bbf(0x321),ye={'onlineStatusIcon':po,'onlineStatusTitle':vo,'onlineStatus':Io,'online':Eo,'offline':Co};function bo(_0x44b4ba){const _0x89b587=_0x2a1bbf;switch(_0x44b4ba){case w[_0x89b587(0x36b)]:return _0x89b587(0x48c);case w['CONFLICT']:return _0x89b587(0x476);case w[_0x89b587(0x41a)]:return _0x89b587(0x408);case w[_0x89b587(0x37e)]:return _0x89b587(0x1eb);case w[_0x89b587(0x236)]:case w[_0x89b587(0x4e5)]:return _0x89b587(0x45d);case w['SYNCED']:case w[_0x89b587(0x305)]:return _0x89b587(0x31a);}}function To(_0x52adc6){const _0x212de2=_0x2a1bbf,{status$:_0x568c37}=_0x52adc6,_0x2fd1a5=_0x4b9079(_0x568c37,w['NOT_COLLAB']),_0x3264c4=_0x2dcbf5(_0x5d60a9),_0x25b658=_0x2dcbf5(ue),_0xd40a0d=_0x2fd1a5!==w[_0x212de2(0x36b)],_0xeac890=_0x3264c4['t'](bo(_0x2fd1a5)),_0x3ad41b=So(ye[_0x212de2(0x485)],{[ye[_0x212de2(0x47f)]]:_0xd40a0d,[ye[_0x212de2(0x210)]]:!_0xd40a0d}),_0x4bd270=_0xd40a0d?_0x340864[_0x212de2(0x2bb)](zs,null):_0x340864[_0x212de2(0x2bb)](Js,null),_0x391269=_0x2e4d8e(()=>{const _0x1a6df0=_0x212de2;_0xd40a0d||_0x25b658[_0x1a6df0(0x2d2)]();},[_0xd40a0d,_0x25b658]);function _0x596f24(){const _0x308110=_0x212de2;return _0x340864[_0x308110(0x2bb)](_0x308110(0x3f7),{'className':_0x3ad41b,'onClick':_0x391269},_0x340864[_0x308110(0x2bb)](_0x308110(0x3f7),{'className':ye[_0x308110(0x46b)]},_0x4bd270),_0x340864['createElement'](_0x308110(0x3f7),{'className':ye[_0x308110(0x27c)]},_0xeac890));}return _0xd40a0d?_0x596f24():_0x340864[_0x212de2(0x2bb)](_0x2cff21,{'title':_0x3264c4['t']('collab-client.tooltip.reconnect')},_0x596f24());}var Ro=Object['defineProperty'],Oo=Object['getOwnPropertyDescriptor'],Do=(_0x74a7dc,_0x3d3ba2,_0x48467b,_0xc079b8)=>{const _0x15cfc8=_0x2a1bbf;for(var _0x236d6e=_0xc079b8>0x1?void 0x0:_0xc079b8?Oo(_0x3d3ba2,_0x48467b):_0x3d3ba2,_0x770351=_0x74a7dc[_0x15cfc8(0x1bd)]-0x1,_0x6aed74;_0x770351>=0x0;_0x770351--)(_0x6aed74=_0x74a7dc[_0x770351])&&(_0x236d6e=(_0xc079b8?_0x6aed74(_0x3d3ba2,_0x48467b,_0x236d6e):_0x6aed74(_0x236d6e))||_0x236d6e);return _0xc079b8&&_0x236d6e&&Ro(_0x3d3ba2,_0x48467b,_0x236d6e),_0x236d6e;},Ve=(_0x2ff9e8,_0x2063e2)=>(_0x4aea11,_0x1a9366)=>_0x2063e2(_0x4aea11,_0x1a9366,_0x2ff9e8);let Me=class extends _0x33be34{constructor(_0x429f16,_0x21dc81,_0x598388,_0x529f63){const _0x1936e5=_0x2a1bbf;super(),l(this,'_status$',new _0x5bdcda(w[_0x1936e5(0x37e)])),(this[_0x1936e5(0x4b4)]=_0x429f16,this[_0x1936e5(0x38a)]=_0x21dc81,this['_injector']=_0x598388,this[_0x1936e5(0x363)]=_0x529f63,this[_0x1936e5(0x52e)](),this[_0x1936e5(0x332)]());}[_0x2a1bbf(0x332)](){const _0x36615f=_0x2a1bbf;this['disposeWithMe'](this[_0x36615f(0x4b4)][_0x36615f(0x26c)][_0x36615f(0x497)](_0x35505a(()=>{const _0x4e38b2=_0x36615f,_0x5bb844=this['_univerInstanceService'][_0x4e38b2(0x44e)]();return _0x5bb844?this[_0x4e38b2(0x363)][_0x4e38b2(0x414)](_0x5bb844['getUnitId']()):_0x1af720(null);}),_0x35505a(_0x3f9f78=>_0x3f9f78?_0x3f9f78[_0x36615f(0x2b7)]:_0x1af720(w[_0x36615f(0x37e)])))['subscribe'](_0x356568=>{const _0x495cee=_0x36615f;this[_0x495cee(0x209)][_0x495cee(0x2eb)](_0x356568);}));}['_initStatusComponent'](){const _0x1370fa=_0x2a1bbf;this[_0x1370fa(0x394)](this[_0x1370fa(0x38a)][_0x1370fa(0x523)](_0x8ae68f[_0x1370fa(0x2bf)],()=>_0x2f5b43(wo({'status$':this[_0x1370fa(0x209)][_0x1370fa(0x251)]()}),this[_0x1370fa(0x4ac)])));}};Me=Do([Ve(0x0,_0x23793a),Ve(0x1,_0x49f96c),Ve(0x2,_0x55fbd9(_0x297a6b)),Ve(0x3,_0x55fbd9($e))],Me);function wo(_0xfed088){const {status$:_0x43fd4e}=_0xfed088;return function(){return _0x340864['createElement'](To,{'status$':_0x43fd4e});};}const Qs=_0x211912('uni.network.url-service');var Po=Object['defineProperty'],yo=Object[_0x2a1bbf(0x2ce)],Uo=(_0x10382e,_0x54bbdc,_0x4fb99e,_0x55d261)=>{const _0x26ebb4=_0x2a1bbf;for(var _0x33a8f4=_0x55d261>0x1?void 0x0:_0x55d261?yo(_0x54bbdc,_0x4fb99e):_0x54bbdc,_0x17ccaa=_0x10382e[_0x26ebb4(0x1bd)]-0x1,_0x440148;_0x17ccaa>=0x0;_0x17ccaa--)(_0x440148=_0x10382e[_0x17ccaa])&&(_0x33a8f4=(_0x55d261?_0x440148(_0x54bbdc,_0x4fb99e,_0x33a8f4):_0x440148(_0x33a8f4))||_0x33a8f4);return _0x55d261&&_0x33a8f4&&Po(_0x54bbdc,_0x4fb99e,_0x33a8f4),_0x33a8f4;},ve=(_0x47d0e3,_0x40f4d5)=>(_0x15b9ac,_0x268981)=>_0x40f4d5(_0x15b9ac,_0x268981,_0x47d0e3);let Ze=class extends _0x5b2156{constructor(_0x116162,_0x34487d,_0x16aa23,_0x49e7a3,_0x46c96e,_0x295ac5){const _0x40bc06=_0x2a1bbf;super(),this['_urlService']=_0x116162,this[_0x40bc06(0x33c)]=_0x34487d,this[_0x40bc06(0x4d5)]=_0x16aa23,this[_0x40bc06(0x349)]=_0x49e7a3,this[_0x40bc06(0x1d4)]=_0x46c96e,_0x295ac5?_0x295ac5==null||_0x295ac5[_0x40bc06(0x345)]()[_0x40bc06(0x3dd)](()=>this['_init']()):(this[_0x40bc06(0x33c)]['debug'](_0x40bc06(0x3bd),_0x40bc06(0x449)),this['_init']());}async['_init'](){const _0x3630bb=_0x2a1bbf,_0x579934=this[_0x3630bb(0x21f)][_0x3630bb(0x3b2)]('unit'),_0x14dc5e=this[_0x3630bb(0x21f)][_0x3630bb(0x3b2)](_0x3630bb(0x1cb));if(!_0x579934||!_0x14dc5e){this[_0x3630bb(0x33c)][_0x3630bb(0x322)](_0x3630bb(0x3bd),_0x3630bb(0x3d2));return;}switch(Number(_0x14dc5e)){case B[_0x3630bb(0x26f)]:{const _0x411db6=await this[_0x3630bb(0x49f)](_0x579934);this[_0x3630bb(0x326)](_0x411db6);break;}case B[_0x3630bb(0x2ca)]:{await this[_0x3630bb(0x45f)](_0x579934);break;}default:{this[_0x3630bb(0x33c)][_0x3630bb(0x2c6)]('[DataLoaderController]',_0x3630bb(0x4eb));break;}}}async[_0x2a1bbf(0x326)](_0x3aace9){const _0x2b7d7b=_0x2a1bbf;await this[_0x2b7d7b(0x53a)](_0x3aace9),_0x3aace9['activeSheet$'][_0x2b7d7b(0x497)](_0x3ca91c(this[_0x2b7d7b(0x3f3)]))[_0x2b7d7b(0x413)](_0x4ea29f=>{const _0x131424=_0x2b7d7b;_0x4ea29f&&this[_0x131424(0x40b)](_0x4ea29f);}),this[_0x2b7d7b(0x21f)][_0x2b7d7b(0x33e)][_0x2b7d7b(0x497)](_0x3ca91c(this[_0x2b7d7b(0x3f3)]))[_0x2b7d7b(0x413)](()=>this[_0x2b7d7b(0x53a)](_0x3aace9));}[_0x2a1bbf(0x40b)](_0x281ebb,_0x294d2c=!0x1){const _0x259c16=_0x2a1bbf,_0x20b422=this['_urlService'][_0x259c16(0x3b2)](_0x259c16(0x32d));_0x281ebb[_0x259c16(0x460)]()!==_0x20b422&&this['_urlService'][_0x259c16(0x1df)](_0x259c16(0x32d),_0x281ebb[_0x259c16(0x460)](),_0x294d2c);}async['_updateSubUnitFromURLParams'](_0x3a6a26){const _0x50e1fa=_0x2a1bbf;var _0x2d4b4e;const _0x2e02b7=this[_0x50e1fa(0x21f)][_0x50e1fa(0x3b2)](_0x50e1fa(0x32d));if(!_0x2e02b7||!_0x3a6a26[_0x50e1fa(0x4e3)](_0x2e02b7)){const _0x2b9a50=_0x3a6a26[_0x50e1fa(0x496)]()[0x0],_0x321423=_0x3a6a26[_0x50e1fa(0x4e3)](_0x2b9a50);if(!_0x321423)return;this[_0x50e1fa(0x40b)](_0x321423,!0x0),await this[_0x50e1fa(0x4d5)][_0x50e1fa(0x3f5)](_0x5881fc['id'],{'unitId':_0x3a6a26[_0x50e1fa(0x32e)](),'subUnitId':_0x2b9a50});return;}((_0x2d4b4e=_0x3a6a26[_0x50e1fa(0x447)]())==null?void 0x0:_0x2d4b4e[_0x50e1fa(0x460)]())!==_0x2e02b7&&await this[_0x50e1fa(0x4d5)][_0x50e1fa(0x3f5)](_0x5881fc['id'],{'unitId':_0x3a6a26['getUnitId'](),'subUnitId':_0x2e02b7});}async[_0x2a1bbf(0x49f)](_0x481d37){const _0x23dec2=_0x2a1bbf;let _0x99b0dd=0x0;const _0x3889fb=await this['_localCacheService']['loadOfflineData'](_0x481d37);return _0x3889fb&&(_0x3889fb['awaitingChangeset']||_0x3889fb[_0x23dec2(0x3f1)]['length']!==0x0)&&(_0x99b0dd=_0x3889fb[_0x23dec2(0x34a)]),_0x99b0dd===0x0&&this['_logService'][_0x23dec2(0x322)]('[DataLoaderController]',_0x23dec2(0x1f1)),this[_0x23dec2(0x1d4)][_0x23dec2(0x44a)](_0x481d37,_0x99b0dd);}async[_0x2a1bbf(0x45f)](_0xc690cf){const _0x3b073a=_0x2a1bbf;let _0x459142=0x0;const _0x4eeb6c=await this[_0x3b073a(0x349)][_0x3b073a(0x3a7)](_0xc690cf);return _0x4eeb6c&&(_0x4eeb6c[_0x3b073a(0x484)]||_0x4eeb6c[_0x3b073a(0x3f1)][_0x3b073a(0x1bd)]!==0x0)&&(_0x459142=_0x4eeb6c[_0x3b073a(0x34a)]),_0x459142===0x0&&this[_0x3b073a(0x33c)][_0x3b073a(0x322)](_0x3b073a(0x3bd),_0x3b073a(0x1f1)),this['_snapshotService']['loadDoc'](_0xc690cf,_0x459142);}};Ze=Uo([ve(0x0,Qs),ve(0x1,_0x2e1f3f),ve(0x2,_0x31e03d),ve(0x3,_0x55fbd9(D)),ve(0x4,_0x55fbd9(_0x2cda02)),ve(0x5,_0x318244(_0x1fcdc1))],Ze);var No=Object[_0x2a1bbf(0x4e8)],Ao=Object['getOwnPropertyDescriptor'],Mo=(_0xfdc61b,_0x5d9238,_0x482c6c,_0x4fc416)=>{const _0x31e92f=_0x2a1bbf;for(var _0x936fb1=_0x4fc416>0x1?void 0x0:_0x4fc416?Ao(_0x5d9238,_0x482c6c):_0x5d9238,_0x2daf21=_0xfdc61b[_0x31e92f(0x1bd)]-0x1,_0x5c4be8;_0x2daf21>=0x0;_0x2daf21--)(_0x5c4be8=_0xfdc61b[_0x2daf21])&&(_0x936fb1=(_0x4fc416?_0x5c4be8(_0x5d9238,_0x482c6c,_0x936fb1):_0x5c4be8(_0x936fb1))||_0x936fb1);return _0x4fc416&&_0x936fb1&&No(_0x5d9238,_0x482c6c,_0x936fb1),_0x936fb1;},ps=(_0x448599,_0x47433b)=>(_0xb87978,_0x1d71c8)=>_0x47433b(_0xb87978,_0x1d71c8,_0x448599);const Lo='DEFAULT_FILE_NAME',$o=_0x2a1bbf(0x2c8);let Qe=class extends _0x33be34{constructor(_0x42c330,_0x5d28fc){const _0x99e8a4=_0x2a1bbf;super(),this[_0x99e8a4(0x4b4)]=_0x42c330,this[_0x99e8a4(0x536)]=_0x5d28fc,this['_init']();}[_0x2a1bbf(0x53d)](){const _0x110d0e=_0x2a1bbf;this[_0x110d0e(0x394)](this[_0x110d0e(0x4b4)][_0x110d0e(0x26c)][_0x110d0e(0x413)](()=>{const _0x3a2871=_0x110d0e;var _0x34a118;const _0x55e625=this[_0x3a2871(0x4b4)][_0x3a2871(0x44e)]();let _0x2387c4=(_0x34a118=this['_configService'][_0x3a2871(0x47c)](Lo))!=null?_0x34a118:$o;_0x55e625 instanceof _0x1769bf&&(_0x2387c4=_0x55e625['name']),document['title']=_0x2387c4;}));}};Qe=Mo([ps(0x0,_0x23793a),ps(0x1,_0x39b511)],Qe);var jo=Object[_0x2a1bbf(0x4e8)],Ho=Object[_0x2a1bbf(0x2ce)],xo=(_0x2dbc6d,_0x25dbb3,_0x491e17,_0xaa4b1)=>{const _0x409085=_0x2a1bbf;for(var _0x397e91=_0xaa4b1>0x1?void 0x0:_0xaa4b1?Ho(_0x25dbb3,_0x491e17):_0x25dbb3,_0x241b54=_0x2dbc6d[_0x409085(0x1bd)]-0x1,_0x372efc;_0x241b54>=0x0;_0x241b54--)(_0x372efc=_0x2dbc6d[_0x241b54])&&(_0x397e91=(_0xaa4b1?_0x372efc(_0x25dbb3,_0x491e17,_0x397e91):_0x372efc(_0x397e91))||_0x397e91);return _0xaa4b1&&_0x397e91&&jo(_0x25dbb3,_0x491e17,_0x397e91),_0x397e91;},pt=(_0x2d25e4,_0x1da6bd)=>(_0x1b705b,_0x578ed8)=>_0x1da6bd(_0x1b705b,_0x578ed8,_0x2d25e4);let et=class{constructor(_0x44d5ec,_0x2aca00,_0x5a3f6b){const _0x3b878f=_0x2a1bbf;this['_configService']=_0x44d5ec,this[_0x3b878f(0x526)]=_0x2aca00,this['localeService']=_0x5a3f6b,this[_0x3b878f(0x375)]();}['init'](){const _0x19bfc6=_0x2a1bbf;this[_0x19bfc6(0x526)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x826d82,_0xcd8ae1)=>_0xcd8ae1(_0x826d82)[_0x19bfc6(0x497)](_0x481227(async _0x2c7e90=>{const _0xd0f4e5=_0x19bfc6,_0x9723e=_0x2c7e90;if(_0x9723e[_0xd0f4e5(0x1db)]===0x191&&window[_0xd0f4e5(0x3c2)](this[_0xd0f4e5(0x3db)]['t'](_0xd0f4e5(0x3c9)))){const _0x394853=window[_0xd0f4e5(0x1c2)](window[_0xd0f4e5(0x264)][_0xd0f4e5(0x459)]);window[_0xd0f4e5(0x264)]['href']=this[_0xd0f4e5(0x2dc)]()+_0xd0f4e5(0x429)+_0x394853;}return _0x9723e;}))});}[_0x2a1bbf(0x2dc)](){const _0x378e43=_0x2a1bbf;var _0x498f2e,_0x22231a;const _0x21a54b=this[_0x378e43(0x536)][_0x378e43(0x47c)](Ln),_0x196044=this[_0x378e43(0x536)][_0x378e43(0x47c)](j);return(_0x22231a=(_0x498f2e=_0x196044==null?void 0x0:_0x196044[_0x378e43(0x1f2)])!=null?_0x498f2e:_0x21a54b)!=null?_0x22231a:$n;}};et=xo([pt(0x0,_0x39b511),pt(0x1,_0x55fbd9(_0x1af781)),pt(0x2,_0x55fbd9(_0x5d60a9))],et);var ko=Object['defineProperty'],Bo=Object[_0x2a1bbf(0x2ce)],Vo=(_0x34c054,_0x1ca98f,_0x55f2a9,_0x3657a4)=>{const _0x418016=_0x2a1bbf;for(var _0x315b24=_0x3657a4>0x1?void 0x0:_0x3657a4?Bo(_0x1ca98f,_0x55f2a9):_0x1ca98f,_0x4dbf2b=_0x34c054[_0x418016(0x1bd)]-0x1,_0x1f9c35;_0x4dbf2b>=0x0;_0x4dbf2b--)(_0x1f9c35=_0x34c054[_0x4dbf2b])&&(_0x315b24=(_0x3657a4?_0x1f9c35(_0x1ca98f,_0x55f2a9,_0x315b24):_0x1f9c35(_0x315b24))||_0x315b24);return _0x3657a4&&_0x315b24&&ko(_0x1ca98f,_0x55f2a9,_0x315b24),_0x315b24;},vs=(_0xe6bd78,_0x5b0400)=>(_0x14a637,_0x46bd8a)=>_0x5b0400(_0x14a637,_0x46bd8a,_0xe6bd78);const Fo=_0x2a1bbf(0x24e),Wo=_0x2a1bbf(0x379);let Ut=class extends _0x33be34{constructor(_0x437171,_0x50bb17){const _0x329f5b=_0x2a1bbf;super(),this[_0x329f5b(0x4fb)]=_0x437171,this[_0x329f5b(0x536)]=_0x50bb17,this[_0x329f5b(0x416)]();}['_initMergeInterceptor'](){const _0xce6897=_0x2a1bbf,_0x10eb71=this;this[_0xce6897(0x394)](this['_HTTPService'][_0xce6897(0x521)]({'priority':0x3e7,'interceptor':_0x4795ff({'isMatch'(_0x13d31a){const _0x1bb79b=_0xce6897;var _0x75d28b;if(_0x13d31a['method']===_0x1bb79b(0x323)&&((_0x75d28b=_0x13d31a[_0x1bb79b(0x38e)])!=null&&_0x75d28b[_0x1bb79b(0x309)])){const {objectID:_0x5a8a50,objectType:_0x2a34ce}=_0x13d31a[_0x1bb79b(0x38e)][_0x1bb79b(0x309)]||{};if(!_0x5a8a50||_0x2a34ce===void 0x0)return!0x1;const _0x4de017=_0x10eb71[_0x1bb79b(0x52b)]()+'/'+_0x2a34ce+_0x1bb79b(0x246)+_0x5a8a50+_0x1bb79b(0x2a8);if(_0x13d31a[_0x1bb79b(0x469)]===_0x4de017)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5150ec){const _0x138c61=_0xce6897;var _0x4b7efa;return(_0x4b7efa=_0x5150ec[_0x138c61(0x38e)])==null?void 0x0:_0x4b7efa[_0x138c61(0x309)];},'mergeParamsToRequest'(_0x4a562f,_0xf02d92){const _0x34ff07=_0xce6897,_0x3e0192=_0x10eb71[_0x34ff07(0x52b)]()+_0x34ff07(0x2af),_0x34d24d=_0x4a562f[_0x34ff07(0x1b6)]((_0x210354,_0x206938)=>{const {unitID:_0x4b6199,objectID:_0x29974b,objectType:_0x4ea371,actions:_0x28c362}=_0x206938;return _0x210354[_0x4b6199]||(_0x210354[_0x4b6199]={}),_0x210354[_0x4b6199][_0x29974b]||(_0x210354[_0x4b6199][_0x29974b]={'objectID':_0x29974b,'objectType':_0x4ea371,'actions':[]}),_0x210354[_0x4b6199][_0x29974b]['actions']['push'](..._0x28c362),_0x210354;},{}),_0x2a6b46=[];for(const _0x4226be in _0x34d24d)for(const _0x914232 in _0x34d24d[_0x4226be]){const {actions:_0x2818ee,objectType:_0x24a709}=_0x34d24d[_0x4226be][_0x914232],_0x5821d3=[...new Set(_0x2818ee)];_0x2a6b46[_0x34ff07(0x365)]({'unitID':_0x4226be,'objectID':_0x914232,'objectType':_0x24a709,'actions':_0x5821d3});}return new _0x27d178('POST',_0x3e0192,{'headers':_0xf02d92[_0x34ff07(0x4ae)],'withCredentials':_0xf02d92[_0x34ff07(0x4a6)],'responseType':_0xf02d92[_0x34ff07(0x2f3)],'body':{'requests':_0x2a6b46}});}},{'distributeResult'(_0x536336,_0x3f1ead){const _0x326b39=_0xce6897,{objectActions:_0x130336}=_0x536336;return _0x3f1ead[_0x326b39(0x443)](_0x459ff0=>{const _0x4b9325=_0x326b39,{unitID:_0x5c32e0,objectID:_0x382cf7,actions:_0x48e240}=_0x459ff0,_0x801086=_0x130336['find'](_0x58f307=>_0x58f307[_0x4b9325(0x3d3)]===_0x5c32e0&&_0x58f307[_0x4b9325(0x387)]===_0x382cf7),_0x1a265f=_0x48e240[_0x4b9325(0x443)](_0x39552a=>_0x801086==null?void 0x0:_0x801086['actions'][_0x4b9325(0x47b)](_0x25cf1c=>_0x25cf1c['action']===_0x39552a))[_0x4b9325(0x393)](_0x23adb7=>!!_0x23adb7);return{'config':_0x459ff0,'result':{'actions':_0x1a265f,'error':_0x536336[_0x4b9325(0x2c6)]}};});}})}));}[_0x2a1bbf(0x52b)](){const _0xf7efc6=_0x2a1bbf;var _0x52fe5e,_0x440eb0;const _0x2137f8=this[_0xf7efc6(0x536)][_0xf7efc6(0x47c)](Fo),_0x3aadbb=this['_configService'][_0xf7efc6(0x47c)](j);return(_0x440eb0=(_0x52fe5e=_0x3aadbb==null?void 0x0:_0x3aadbb[_0xf7efc6(0x30d)])!=null?_0x52fe5e:_0x2137f8)!=null?_0x440eb0:Wo;}async[_0x2a1bbf(0x33f)](_0x19c745){const _0x15db7a=_0x2a1bbf,_0x6f5279=this['_getAPIPrefixPath']()+'/'+_0x19c745['objectType']+_0x15db7a(0x3e5);return(await this[_0x15db7a(0x4fb)][_0x15db7a(0x252)](_0x6f5279,{'body':_0x19c745}))[_0x15db7a(0x309)]['objectID']||'';}async[_0x2a1bbf(0x4a4)](_0x48702b){const _0x120a0b=_0x2a1bbf,_0x9ac370=this[_0x120a0b(0x52b)]()+_0x120a0b(0x3a6);return(await this['_HTTPService']['post'](_0x9ac370,{'body':_0x48702b}))[_0x120a0b(0x309)][_0x120a0b(0x1c9)];}async[_0x2a1bbf(0x32f)](_0x16104f){const _0x2d8cd1=_0x2a1bbf,_0x5aa253=this[_0x2d8cd1(0x52b)]()+'/'+_0x16104f['objectType']+_0x2d8cd1(0x246)+_0x16104f[_0x2d8cd1(0x387)];await this[_0x2d8cd1(0x4fb)][_0x2d8cd1(0x20d)](_0x5aa253,{'body':_0x16104f});}async[_0x2a1bbf(0x3dc)](_0x1f1bfe){const _0x4cad9f=_0x2a1bbf,_0x5ed468=this['_getAPIPrefixPath']()+'/'+_0x1f1bfe['objectType']+_0x4cad9f(0x246)+_0x1f1bfe[_0x4cad9f(0x387)]+_0x4cad9f(0x2a8);return(await this['_HTTPService'][_0x4cad9f(0x252)](_0x5ed468,{'body':_0x1f1bfe}))[_0x4cad9f(0x309)]['actions'];}async[_0x2a1bbf(0x3f9)](_0x527048){const _0x4b4ecd=_0x2a1bbf,_0x50fd6b=this[_0x4b4ecd(0x52b)]()+_0x4b4ecd(0x2af);return(await this[_0x4b4ecd(0x4fb)][_0x4b4ecd(0x252)](_0x50fd6b,{'body':{'requests':_0x527048}}))[_0x4b4ecd(0x309)][_0x4b4ecd(0x430)];}async['listRoles'](_0x2ed048){const _0x208581=_0x2a1bbf,_0x38a3c5=this[_0x208581(0x52b)]()+'/'+_0x2ed048['objectType']+_0x208581(0x52c),_0x147447=await this['_HTTPService'][_0x208581(0x252)](_0x38a3c5,{'body':_0x2ed048});return{'roles':_0x147447[_0x208581(0x309)]['roles'],'actions':_0x147447['body'][_0x208581(0x41b)]};}async[_0x2a1bbf(0x53b)](_0x1e7fea){const _0x63444e=_0x2a1bbf,_0xa3b30=this['_getAPIPrefixPath']()+_0x63444e(0x381);await this['_HTTPService'][_0x63444e(0x360)](_0xa3b30,{'params':{'collaboratorID':_0x1e7fea['collaboratorID'],'objectID':_0x1e7fea[_0x63444e(0x387)],'unitID':_0x1e7fea[_0x63444e(0x3d3)]}});}async['updateCollaborator'](_0x1bcf10){const _0x2ca444=_0x2a1bbf,_0x394ac9=this[_0x2ca444(0x52b)]()+_0x2ca444(0x381);await this['_HTTPService']['patch'](_0x394ac9,{'body':_0x1bcf10});}async[_0x2a1bbf(0x4c1)](_0x188257){const _0xe145d6=_0x2a1bbf,_0x56a39d=this['_getAPIPrefixPath']()+_0xe145d6(0x381);await this['_HTTPService'][_0xe145d6(0x252)](_0x56a39d,{'body':_0x188257});}async[_0x2a1bbf(0x350)](_0x16774e){const _0x331580=_0x2a1bbf,_0x3c8703=this[_0x331580(0x52b)]()+'/collaborator';return(await this['_HTTPService'][_0x331580(0x380)](_0x3c8703,{'params':{'objectID':_0x16774e[_0x331580(0x387)],'unitID':_0x16774e[_0x331580(0x3d3)]}}))[_0x331580(0x309)]['collaborators'];}async[_0x2a1bbf(0x29d)](_0x2f6af9){const _0x17e944=_0x2a1bbf,_0x3d362e=this[_0x17e944(0x52b)]()+_0x17e944(0x381);await this[_0x17e944(0x4fb)]['put'](_0x3d362e,{'body':_0x2f6af9});}};Ut=Vo([vs(0x0,_0x55fbd9(_0x1af781)),vs(0x1,_0x55fbd9(_0x39b511))],Ut);var Go=Object[_0x2a1bbf(0x4e8)],Yo=Object[_0x2a1bbf(0x2ce)],Ko=(_0x189897,_0x23b7c2,_0x4269e6,_0x317a3a)=>{for(var _0x30b07b=_0x317a3a>0x1?void 0x0:_0x317a3a?Yo(_0x23b7c2,_0x4269e6):_0x23b7c2,_0x72fee=_0x189897['length']-0x1,_0x6efd42;_0x72fee>=0x0;_0x72fee--)(_0x6efd42=_0x189897[_0x72fee])&&(_0x30b07b=(_0x317a3a?_0x6efd42(_0x23b7c2,_0x4269e6,_0x30b07b):_0x6efd42(_0x30b07b))||_0x30b07b);return _0x317a3a&&_0x30b07b&&Go(_0x23b7c2,_0x4269e6,_0x30b07b),_0x30b07b;},Xo=(_0x2058d9,_0x16e9a9)=>(_0x5de9af,_0x7191aa)=>_0x16e9a9(_0x5de9af,_0x7191aa,_0x2058d9);let tt=class{constructor(_0x207ede){const _0x3159b9=_0x2a1bbf;this[_0x3159b9(0x526)]=_0x207ede,this['_initRequestHeader']();}[_0x2a1bbf(0x1e9)](){const _0x1cc283=_0x2a1bbf;this[_0x1cc283(0x526)][_0x1cc283(0x521)]({'interceptor':(_0x28a10f,_0x45cff5)=>{const _0x2871e4=_0x1cc283,_0xc37ed5=_0x28a10f['headers'],_0x24e1fd=_0x590f2f();return _0x24e1fd&&_0xc37ed5['set'](_0x2871e4(0x27a),_0x24e1fd),_0x45cff5(_0x28a10f);}});}};tt=Ko([Xo(0x0,_0x55fbd9(_0x1af781))],tt);var qo=Object[_0x2a1bbf(0x4e8)],Jo=Object[_0x2a1bbf(0x2ce)],zo=(_0x410293,_0x51c905,_0x13c2a3,_0x24fee7)=>{const _0x4a17fd=_0x2a1bbf;for(var _0x495c66=_0x24fee7>0x1?void 0x0:_0x24fee7?Jo(_0x51c905,_0x13c2a3):_0x51c905,_0x1f01b3=_0x410293[_0x4a17fd(0x1bd)]-0x1,_0x45fd1c;_0x1f01b3>=0x0;_0x1f01b3--)(_0x45fd1c=_0x410293[_0x1f01b3])&&(_0x495c66=(_0x24fee7?_0x45fd1c(_0x51c905,_0x13c2a3,_0x495c66):_0x45fd1c(_0x495c66))||_0x495c66);return _0x24fee7&&_0x495c66&&qo(_0x51c905,_0x13c2a3,_0x495c66),_0x495c66;},vt=(_0x55c0ab,_0xc46b97)=>(_0x498d11,_0x286046)=>_0xc46b97(_0x498d11,_0x286046,_0x55c0ab);const Zo=[_0x2a1bbf(0x4fc),'image/jpeg','image/jpg',_0x2a1bbf(0x428),'image/bmp'],Qo=0x5*0x400*0x400,ea=_0x2a1bbf(0x4f5),ta=_0x2a1bbf(0x216),sa=_0x2a1bbf(0x35d),ia='/universer-api/file/{fileID}/sign-url';let Nt=class{constructor(_0x225b71,_0x48fe79,_0x2c355a){const _0x84e734=_0x2a1bbf;l(this,_0x84e734(0x2c2),0x0),l(this,_0x84e734(0x40d),new _0x3c1bb0()),l(this,_0x84e734(0x1fa),this[_0x84e734(0x40d)]),l(this,_0x84e734(0x1e6),new Map()),(this[_0x84e734(0x526)]=_0x225b71,this[_0x84e734(0x536)]=_0x48fe79,this['_univerInstanceService']=_0x2c355a);}[_0x2a1bbf(0x34e)](_0xa16e3d){const _0xd6567f=_0x2a1bbf;this[_0xd6567f(0x2c2)]=_0xa16e3d,this[_0xd6567f(0x40d)][_0xd6567f(0x2eb)](_0xa16e3d);}[_0x2a1bbf(0x4a5)](_0x382e4a,_0x5e587d){const _0x5bdbf9=_0x2a1bbf;if(_0x5e587d===_0xfc3803['BASE64']){const _0x3233fa=new Image();return _0x3233fa[_0x5bdbf9(0x314)]=_0x382e4a,_0x3233fa;}return this[_0x5bdbf9(0x1e6)][_0x5bdbf9(0x380)](_0x382e4a);}[_0x2a1bbf(0x486)](_0x4dc0ac,_0x31fdf3,_0x585f2e){const _0x2ea077=_0x2a1bbf;_0x31fdf3===_0xfc3803[_0x2ea077(0x1f6)]||_0x585f2e==null||this['_imageSourceCache']['set'](_0x4dc0ac,_0x585f2e);}async[_0x2a1bbf(0x1ce)](_0x37a4fd){const _0x330182=_0x2a1bbf;try{const _0x3bbe9f=this['_replaceFileID'](this[_0x330182(0x245)](),''+_0x37a4fd),_0x5f663a=(await this[_0x330182(0x526)][_0x330182(0x380)](_0x3bbe9f))['body'];if(_0x5f663a[_0x330182(0x2c6)]&&_0x5f663a[_0x330182(0x2c6)][_0x330182(0x286)]===ks['OK']){const _0x49ea35=new URL(_0x5f663a[_0x330182(0x469)],this[_0x330182(0x528)]())['toString']();return Promise[_0x330182(0x1e0)](_0x49ea35);}return Promise[_0x330182(0x31e)](_0x5f663a[_0x330182(0x2c6)]);}catch(_0xacc353){return Promise[_0x330182(0x31e)](_0xacc353);}}async[_0x2a1bbf(0x221)](_0x398ab8){const _0x1458ff=_0x2a1bbf;let _0x162a66='';if(!Zo[_0x1458ff(0x421)](_0x398ab8[_0x1458ff(0x1cb)]))return this[_0x1458ff(0x3b3)](),Promise[_0x1458ff(0x31e)](new Error(_0x5f1ff4['ERROR_IMAGE_TYPE']));if(_0x398ab8[_0x1458ff(0x406)]>Qo)return this[_0x1458ff(0x3b3)](),Promise[_0x1458ff(0x31e)](new Error(_0x5f1ff4[_0x1458ff(0x27f)]));try{const _0x3d4147=new FormData();_0x3d4147[_0x1458ff(0x43f)](_0x1458ff(0x4b5),_0x398ab8);const _0x12f54c=this['_univerInstanceService']['getFocusedUnit'](),_0x4f2e29=_0x12f54c==null?void 0x0:_0x12f54c[_0x1458ff(0x32e)]();if(!_0x4f2e29)throw new Error('unitId\x20is\x20not\x20found');const _0x3d012d=this['_getUploadFileURL']()+_0x1458ff(0x4a9)+_0x398ab8[_0x1458ff(0x406)][_0x1458ff(0x4c4)]()+_0x1458ff(0x266)+Bs[_0x1458ff(0x4f7)]+_0x1458ff(0x542)+encodeURIComponent(_0x4f2e29),_0x2fd810=await(await fetch(_0x3d012d,{'method':_0x1458ff(0x323),'body':_0x3d4147}))[_0x1458ff(0x234)]();if(typeof _0x2fd810['FileId']!=_0x1458ff(0x401))return this[_0x1458ff(0x3b3)](),Promise['reject'](new Error(_0x5f1ff4[_0x1458ff(0x3fa)]));_0x162a66=_0x2fd810[_0x1458ff(0x339)];}catch{return this[_0x1458ff(0x3b3)](),Promise[_0x1458ff(0x31e)](new Error(_0x5f1ff4['ERROR_IMAGE']));}return new Promise((_0x593f08,_0x3e993e)=>{const _0x27c46b=new FileReader();_0x27c46b['readAsDataURL'](_0x398ab8),_0x27c46b['onload']=_0x5eeab3=>{const _0x5426e8=_0x736f;var _0x54c2f3;const _0x3e300b=(_0x54c2f3=_0x5eeab3['target'])==null?void 0x0:_0x54c2f3[_0x5426e8(0x1ba)];if(_0x3e300b==null){this[_0x5426e8(0x3b3)](),_0x3e993e(new Error(_0x5f1ff4[_0x5426e8(0x3fa)]));return;}const _0x2832c6=_0x16ec03[_0x5426e8(0x4ed)](0x6);_0x593f08({'imageId':_0x2832c6,'imageSourceType':_0xfc3803[_0x5426e8(0x2be)],'source':_0x162a66,'base64Cache':_0x3e300b,'status':_0x5f1ff4[_0x5426e8(0x4c5)]}),this['_decreaseWaiting']();};});}[_0x2a1bbf(0x1f4)](){const _0x2c366f=_0x2a1bbf;var _0x440d8a,_0xcabfd4;const _0x1fc7dc=this['_configService']['getConfig'](ea),_0x390ba0=this['_configService'][_0x2c366f(0x47c)](j);return(_0xcabfd4=(_0x440d8a=_0x390ba0==null?void 0x0:_0x390ba0[_0x2c366f(0x285)])!=null?_0x440d8a:_0x1fc7dc)!=null?_0xcabfd4:ta;}[_0x2a1bbf(0x245)](){const _0x279413=_0x2a1bbf;var _0x57b379,_0x1ba08f;const _0x2afa47=this[_0x279413(0x536)][_0x279413(0x47c)](sa),_0x5004f0=this[_0x279413(0x536)][_0x279413(0x47c)](j);return(_0x1ba08f=(_0x57b379=_0x5004f0==null?void 0x0:_0x5004f0['signUrlServerUrl'])!=null?_0x57b379:_0x2afa47)!=null?_0x1ba08f:ia;}[_0x2a1bbf(0x528)](){const _0x36a998=_0x2a1bbf;var _0x3944b1;const _0x1e2bd2=this[_0x36a998(0x536)][_0x36a998(0x47c)](j);return(_0x3944b1=_0x1e2bd2==null?void 0x0:_0x1e2bd2[_0x36a998(0x274)])!=null?_0x3944b1:location[_0x36a998(0x297)];}[_0x2a1bbf(0x25f)](_0x46d7ac,_0x3d987d){const _0x456a60=_0x2a1bbf;return _0x46d7ac[_0x456a60(0x268)](_0x456a60(0x342),_0x3d987d);}[_0x2a1bbf(0x3b3)](){const _0x1e4de2=_0x2a1bbf;this['_waitCount']-=0x1,this['_change$'][_0x1e4de2(0x2eb)](this[_0x1e4de2(0x2c2)]);}};Nt=zo([vt(0x0,_0x55fbd9(_0x1af781)),vt(0x1,_0x39b511),vt(0x2,_0x55fbd9(_0x23793a))],Nt);var na=Object[_0x2a1bbf(0x4e8)],ra=Object['getOwnPropertyDescriptor'],oa=(_0x2bfb34,_0x118d48,_0x3c2385,_0x4383ea)=>{for(var _0xf4bc7c=_0x4383ea>0x1?void 0x0:_0x4383ea?ra(_0x118d48,_0x3c2385):_0x118d48,_0x24a359=_0x2bfb34['length']-0x1,_0x14b388;_0x24a359>=0x0;_0x24a359--)(_0x14b388=_0x2bfb34[_0x24a359])&&(_0xf4bc7c=(_0x4383ea?_0x14b388(_0x118d48,_0x3c2385,_0xf4bc7c):_0x14b388(_0xf4bc7c))||_0xf4bc7c);return _0x4383ea&&_0xf4bc7c&&na(_0x118d48,_0x3c2385,_0xf4bc7c),_0xf4bc7c;},Ue=(_0x3b3b0a,_0x1e3082)=>(_0x32fbb6,_0x35fa7)=>_0x1e3082(_0x32fbb6,_0x35fa7,_0x3b3b0a);let st=class extends _0x5b2156{constructor(_0xa0685,_0x5532fb,_0x47264c,_0x356cb8,_0x1749bc){const _0x578666=_0x2a1bbf;super(),this[_0x578666(0x4ac)]=_0xa0685,this['_univerInstanceService']=_0x5532fb,this[_0x578666(0x506)]=_0x47264c,this[_0x578666(0x325)]=_0x356cb8,this[_0x578666(0x442)]=_0x1749bc,this[_0x578666(0x4be)](),this[_0x578666(0x42d)]();}['_initCloseConn'](){const _0x263800=_0x2a1bbf,_0x151330=async _0x1719b2=>{const _0x4badb0=_0x736f;(await this['_collaborationSessionService'][_0x4badb0(0x3b5)](_0x1719b2))[_0x4badb0(0x49e)][_0x4badb0(0x497)](_0x3edad6(_0x15c99d=>_0x15c99d['eventID']===_0x334d1e[_0x4badb0(0x4b7)]),_0x1fdc8d(this['dispose$']))[_0x4badb0(0x413)](_0x154947=>{const _0x267e30=_0x4badb0,_0xb04608=_0x154947,{reason:_0x519ed3}=_0xb04608[_0x267e30(0x500)];this[_0x267e30(0x4ac)][_0x267e30(0x380)](_0x48cba6)[_0x267e30(0x43a)]({'type':_0xc5184d['Error'],'content':this[_0x267e30(0x442)]['t'](_0x267e30(0x243))+'('+_0x519ed3+')'}),this[_0x267e30(0x506)][_0x267e30(0x303)](new _0x472927(_0x1719b2)['id'],!0x1),this['_collaborationSessionService'][_0x267e30(0x317)](_0x1719b2);});};_0xa702ce(this[_0x263800(0x4b4)][_0x263800(0x471)](_0x338b41[_0x263800(0x26f)]),this[_0x263800(0x4b4)][_0x263800(0x471)](_0x338b41[_0x263800(0x2ca)]))[_0x263800(0x497)](_0x44f82f(_0xb52847=>_0xb52847['getUnitId']()),_0x3edad6(_0x10829f=>!_0x2d94e5(_0x10829f)),_0x1fdc8d(this['dispose$']))[_0x263800(0x413)](_0x20f538=>{_0x151330(_0x20f538);});}[_0x2a1bbf(0x4be)](){const _0x2c7bf9=_0x2a1bbf,_0x3a683a=async _0x226a65=>{const _0x3eac41=_0x736f;(await this['_collaborationSessionService'][_0x3eac41(0x3b5)](_0x226a65))[_0x3eac41(0x49e)][_0x3eac41(0x497)](_0x3edad6(_0x3f8503=>_0x3f8503[_0x3eac41(0x3a3)]===_0x334d1e['UPDATE_PERMISSION_OBJ']),_0x1fdc8d(this[_0x3eac41(0x3f3)]))['subscribe'](_0x52beb4=>{const _0x1d401e=_0x3eac41,_0x47dd80=_0x52beb4,{objectId:_0x320766}=_0x47dd80[_0x1d401e(0x500)],_0x42fd9b=this[_0x1d401e(0x4ac)][_0x1d401e(0x380)](_0x319165);_0x320766===_0x226a65?_0x42fd9b[_0x1d401e(0x4a0)](_0x226a65):_0x42fd9b[_0x1d401e(0x36e)](_0x226a65,_0x320766);});};_0xa702ce(this[_0x2c7bf9(0x4b4)]['getTypeOfUnitAdded$'](_0x338b41[_0x2c7bf9(0x26f)]),this[_0x2c7bf9(0x4b4)][_0x2c7bf9(0x471)](_0x338b41['UNIVER_DOC']))[_0x2c7bf9(0x497)](_0x44f82f(_0x88002f=>_0x88002f[_0x2c7bf9(0x32e)]()),_0x3edad6(_0x521ca8=>!_0x2d94e5(_0x521ca8)),_0x1fdc8d(this['dispose$']))[_0x2c7bf9(0x413)](_0x1a88b7=>{_0x3a683a(_0x1a88b7);});}};st=oa([Ue(0x0,_0x55fbd9(_0x297a6b)),Ue(0x1,_0x23793a),Ue(0x2,_0x5717a8),Ue(0x3,_0x55fbd9(ue)),Ue(0x4,_0x55fbd9(_0x5d60a9))],st);var aa=Object['defineProperty'],ca=Object[_0x2a1bbf(0x2ce)],ha=(_0x5ae6cf,_0x16bd66,_0x4d50d8,_0x273f57)=>{const _0x1da4b9=_0x2a1bbf;for(var _0xca67d2=_0x273f57>0x1?void 0x0:_0x273f57?ca(_0x16bd66,_0x4d50d8):_0x16bd66,_0x39c16a=_0x5ae6cf[_0x1da4b9(0x1bd)]-0x1,_0x1e6600;_0x39c16a>=0x0;_0x39c16a--)(_0x1e6600=_0x5ae6cf[_0x39c16a])&&(_0xca67d2=(_0x273f57?_0x1e6600(_0x16bd66,_0x4d50d8,_0xca67d2):_0x1e6600(_0xca67d2))||_0xca67d2);return _0x273f57&&_0xca67d2&&aa(_0x16bd66,_0x4d50d8,_0xca67d2),_0xca67d2;},Is=(_0x2d4ed3,_0x41f89a)=>(_0x259929,_0x297199)=>_0x41f89a(_0x259929,_0x297199,_0x2d4ed3);let At=class{constructor(_0x784361,_0x3fca9f){const _0x146147=_0x2a1bbf;this[_0x146147(0x536)]=_0x784361,this[_0x146147(0x526)]=_0x3fca9f;}async[_0x2a1bbf(0x25c)](_0x83ebc,_0x3396f9){const _0x2cdeee=_0x2a1bbf;var _0x2ce8fc;const {unitID:_0x374ea9,type:_0x23ee33,revision:_0x55a79f=0x0}=_0x3396f9,_0x317c66=this[_0x2cdeee(0x21d)]()+'/'+_0x23ee33+_0x2cdeee(0x336)+_0x374ea9+_0x2cdeee(0x50f)+_0x55a79f,_0x1ad4ea=(await this[_0x2cdeee(0x526)][_0x2cdeee(0x380)](_0x317c66))[_0x2cdeee(0x309)],_0x120c42=(_0x2ce8fc=_0x1ad4ea['snapshot'])==null?void 0x0:_0x2ce8fc[_0x2cdeee(0x3c8)];if(_0x120c42){const _0x4daaa6=_0x120c42==null?void 0x0:_0x120c42[_0x2cdeee(0x22c)],_0xb5146c=_0x1bbaf9['encode'](_0x1d2ef7(_0x4daaa6));_0x120c42[_0x2cdeee(0x22c)]=_0xb5146c,Object[_0x2cdeee(0x400)](_0x120c42['sheets'])[_0x2cdeee(0x28a)](([,_0x2845ed])=>{const _0x3cfd56=_0x2cdeee,_0x2cf6ce=_0x2845ed[_0x3cfd56(0x22c)],_0x3e88bd=_0x1bbaf9[_0x3cfd56(0x1ca)](_0x1d2ef7(_0x2cf6ce));_0x2845ed[_0x3cfd56(0x22c)]=_0x3e88bd;});}return _0x1ad4ea;}async['getSheetBlock'](_0x3e4df4,_0x5d27c4){const _0x46e84c=_0x2a1bbf,{unitID:_0x21f0a3,type:_0x39ae2e,blockID:_0x404dab}=_0x5d27c4,_0x5ca97c=this[_0x46e84c(0x470)]()+'/'+_0x39ae2e+_0x46e84c(0x336)+_0x21f0a3+_0x46e84c(0x301)+_0x404dab;return(await this['_httpService']['get'](_0x5ca97c))[_0x46e84c(0x309)];}async[_0x2a1bbf(0x39f)](_0x2b18c9,_0x36ea16){const _0x502c60=_0x2a1bbf,{unitID:_0x431402,type:_0x543e6f,blockID:_0x35fa76}=_0x36ea16,_0x50c6eb=this[_0x502c60(0x470)]()+_0x502c60(0x301)+_0x543e6f+'/unit/'+_0x431402+_0x502c60(0x301)+_0x35fa76;return(await this[_0x502c60(0x526)]['get'](_0x50c6eb))[_0x502c60(0x309)];}async[_0x2a1bbf(0x389)](_0x5412de,_0x3a6f46){const _0x2ddf1a=_0x2a1bbf,{unitID:_0x2f5ff3,type:_0x39fa81,from:_0x4c07a1,to:_0x143b9c}=_0x3a6f46,_0x1133c3=this[_0x2ddf1a(0x470)]()+'/'+_0x39fa81+_0x2ddf1a(0x336)+_0x2f5ff3+'/fetchmissing?from='+_0x4c07a1+'&to='+_0x143b9c;return(await this[_0x2ddf1a(0x526)][_0x2ddf1a(0x380)](_0x1133c3))['body'];}['_getSnapshotAPIPrefix'](){const _0x2fc1ba=_0x2a1bbf;var _0x384878;return(_0x384878=this[_0x2fc1ba(0x536)][_0x2fc1ba(0x47c)](Cn))!=null?_0x384878:this[_0x2fc1ba(0x470)]();}['_getAPIPrefix'](){const _0x1a8763=_0x2a1bbf;var _0x570443,_0x4dbc34;const _0x180877=this[_0x1a8763(0x536)]['getConfig'](In),_0x273564=this[_0x1a8763(0x536)][_0x1a8763(0x47c)](j);return(_0x4dbc34=(_0x570443=_0x273564==null?void 0x0:_0x273564[_0x1a8763(0x3d1)])!=null?_0x570443:_0x180877)!=null?_0x4dbc34:En;}async[_0x2a1bbf(0x334)](_0x4c508e,_0x48c1d8){const _0x1161f5=_0x2a1bbf,_0x124b40=_0x1161f5(0x51d)+_0x48c1d8[_0x1161f5(0x1cb)]+_0x1161f5(0x336)+_0x48c1d8[_0x1161f5(0x3d3)]+_0x1161f5(0x27b);return(await this[_0x1161f5(0x526)]['get'](_0x124b40,{'params':{'resourceId':JSON[_0x1161f5(0x397)](_0x48c1d8['resourceIDs'])}}))['body'];}[_0x2a1bbf(0x39e)](){const _0x4970e9=_0x2a1bbf;throw new Error(_0x4970e9(0x445));}[_0x2a1bbf(0x23d)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x2a1bbf(0x4aa)](){const _0x57df47=_0x2a1bbf;throw new Error(_0x57df47(0x445));}['copyFileMeta'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x2a1bbf(0x26e)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};At=ha([Is(0x0,_0x39b511),Is(0x1,_0x55fbd9(_0x1af781))],At);var la=Object[_0x2a1bbf(0x4e8)],_a=Object['getOwnPropertyDescriptor'],ua=(_0x140784,_0x17f781,_0x563f6a,_0x27158b)=>{for(var _0xaf276d=_0x27158b>0x1?void 0x0:_0x27158b?_a(_0x17f781,_0x563f6a):_0x17f781,_0x2ca68f=_0x140784['length']-0x1,_0x294a7d;_0x2ca68f>=0x0;_0x2ca68f--)(_0x294a7d=_0x140784[_0x2ca68f])&&(_0xaf276d=(_0x27158b?_0x294a7d(_0x17f781,_0x563f6a,_0xaf276d):_0x294a7d(_0xaf276d))||_0xaf276d);return _0x27158b&&_0xaf276d&&la(_0x17f781,_0x563f6a,_0xaf276d),_0xaf276d;},Ne=(_0xcfb468,_0x5e0be5)=>(_0x17e825,_0x51d25f)=>_0x5e0be5(_0x17e825,_0x51d25f,_0xcfb468);let Mt=class extends _0x2d5c2f{constructor(_0x5ef47f,_0x5305c2,_0x2ed26,_0xb8cb62,_0x7c92d2){const _0x260a86=_0x2a1bbf;super(_0x5ef47f,_0x5305c2,_0x2ed26),this[_0x260a86(0x250)]=_0xb8cb62,this[_0x260a86(0x33c)]=_0x7c92d2;}[_0x2a1bbf(0x265)](_0x5e9cb8,_0x4994ed){const _0xa2a8f9=_0x2a1bbf,_0x292f54=this[_0xa2a8f9(0x3a2)](_0x5e9cb8);if(_0x292f54)try{const _0x8b4b39=this[_0xa2a8f9(0x444)](_0x292f54,_0x4994ed);this[_0xa2a8f9(0x25a)](_0x5e9cb8,_0x8b4b39);}catch(_0x3386c5){this[_0xa2a8f9(0x33c)][_0xa2a8f9(0x2c6)](_0xa2a8f9(0x223),_0x3386c5),this['_clearUndo'](_0x5e9cb8);}const _0x4007df=this[_0xa2a8f9(0x44b)](_0x5e9cb8);if(_0x4007df)try{const _0x38c57e=this['_transformStack'](_0x4007df,_0x4994ed);this[_0xa2a8f9(0x498)](_0x5e9cb8,_0x38c57e);}catch(_0x317c3e){this[_0xa2a8f9(0x33c)][_0xa2a8f9(0x2c6)](_0x317c3e),this[_0xa2a8f9(0x38f)](_0x5e9cb8);}}[_0x2a1bbf(0x29b)](_0x5399ce){const _0x23df76=_0x2a1bbf,_0x3b36b5=this['_getUndoStack'](_0x5399ce);_0x3b36b5&&(_0x3b36b5[_0x23df76(0x1bd)]=0x0,this[_0x23df76(0x46d)]());}[_0x2a1bbf(0x38f)](_0x2f71de){const _0x21e444=_0x2a1bbf,_0x54f32e=this[_0x21e444(0x44b)](_0x2f71de);_0x54f32e&&(_0x54f32e[_0x21e444(0x1bd)]=0x0,this[_0x21e444(0x46d)]());}[_0x2a1bbf(0x25a)](_0x30ddc7,_0x41ab4f){const _0x197d91=_0x2a1bbf;this['_undoStacks']['set'](_0x30ddc7,_0x41ab4f),this[_0x197d91(0x46d)]();}['_substituteRedoStack'](_0x4813c2,_0x1d9fd6){const _0x18adf4=_0x2a1bbf;this[_0x18adf4(0x37b)]['set'](_0x4813c2,_0x1d9fd6),this[_0x18adf4(0x46d)]();}['_transformStack'](_0x5e9803,_0x1e8be9){const _0x47d0a4=_0x2a1bbf,_0x26873c=[];let _0x1d1dd6=_0x1e8be9,_0x4edd38=_0x1e8be9;for(let _0x248373=_0x5e9803[_0x47d0a4(0x1bd)]-0x1;_0x248373>=0x0;_0x248373--){const {unitID:_0x52fe69,undoMutations:_0x4e3fba,redoMutations:_0x3aedaa}=_0x5e9803[_0x248373],_0x41b29a=this[_0x47d0a4(0x250)][_0x47d0a4(0x2b0)](_0x1d1dd6,_0x4e3fba),_0x1b0116=this[_0x47d0a4(0x250)][_0x47d0a4(0x2b0)](_0x4edd38,_0x3aedaa);if(_0x3042d1(_0x41b29a)||_0x3042d1(_0x1b0116)){this[_0x47d0a4(0x33c)]['error'](_0x47d0a4(0x223),'transformStack\x20failed!',_0x41b29a,_0x1b0116);break;}_0x1d1dd6=_0x41b29a[_0x47d0a4(0x219)],_0x4edd38=_0x1b0116[_0x47d0a4(0x219)],_0x26873c[_0x47d0a4(0x365)]({'unitID':_0x52fe69,'undoMutations':_0x41b29a[_0x47d0a4(0x2d8)],'redoMutations':_0x1b0116[_0x47d0a4(0x2d8)]});}return _0x26873c[_0x47d0a4(0x276)]();}};Mt=ua([Ne(0x0,_0x23793a),Ne(0x1,_0x31e03d),Ne(0x2,_0x161b3a),Ne(0x3,_0xa94b77),Ne(0x4,_0x2e1f3f)],Mt);class da extends _0x5b2156{constructor(){const _0x246fd8=_0x2a1bbf;super(),l(this,_0x246fd8(0x33e)),this[_0x246fd8(0x33e)]=_0x16101b(window,_0x246fd8(0x1c3))[_0x246fd8(0x497)](_0x3ca91c(this[_0x246fd8(0x3f3)]),_0x35fb95(0x1),_0x4ce7e7(void 0x0));}['setParam'](_0x5e83f7,_0x1ac9fd,_0x23716a=!0x1){const _0x532995=_0x2a1bbf,_0x497d89=new URL(window[_0x532995(0x264)][_0x532995(0x459)]);_0x497d89[_0x532995(0x1dc)]['set'](_0x5e83f7,_0x1ac9fd),_0x23716a?window['history'][_0x532995(0x42b)]('','',_0x497d89[_0x532995(0x4c4)]()):window[_0x532995(0x374)][_0x532995(0x464)]('','',_0x497d89[_0x532995(0x4c4)]());}['removeParam'](_0x35fcfd,_0xbcc15b=!0x1){const _0x14ebce=_0x2a1bbf,_0x23e9c7=new URL(window[_0x14ebce(0x264)][_0x14ebce(0x459)]);_0x23e9c7[_0x14ebce(0x1dc)][_0x14ebce(0x360)](_0x35fcfd),_0xbcc15b?window[_0x14ebce(0x374)][_0x14ebce(0x42b)]('','',_0x23e9c7[_0x14ebce(0x4c4)]()):window['history'][_0x14ebce(0x464)]('','',_0x23e9c7[_0x14ebce(0x4c4)]());}[_0x2a1bbf(0x3b2)](_0x2bdbf0){const _0x266ab8=_0x2a1bbf;var _0x4804bf;return(_0x4804bf=new URL(window['location'][_0x266ab8(0x459)])[_0x266ab8(0x1dc)][_0x266ab8(0x380)](_0x2bdbf0))!=null?_0x4804bf:void 0x0;}}var ei=Object[_0x2a1bbf(0x4e8)],ma=Object['getOwnPropertyDescriptor'],fa=(_0x39ba24,_0x1bbcfb,_0x10b950)=>_0x1bbcfb in _0x39ba24?ei(_0x39ba24,_0x1bbcfb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10b950}):_0x39ba24[_0x1bbcfb]=_0x10b950,ga=(_0x26e6ed,_0x51cb7d,_0x21bd6d,_0x2387bc)=>{const _0x413960=_0x2a1bbf;for(var _0x374c6a=_0x2387bc>0x1?void 0x0:_0x2387bc?ma(_0x51cb7d,_0x21bd6d):_0x51cb7d,_0x57d9b9=_0x26e6ed[_0x413960(0x1bd)]-0x1,_0x139dfb;_0x57d9b9>=0x0;_0x57d9b9--)(_0x139dfb=_0x26e6ed[_0x57d9b9])&&(_0x374c6a=(_0x2387bc?_0x139dfb(_0x51cb7d,_0x21bd6d,_0x374c6a):_0x139dfb(_0x374c6a))||_0x374c6a);return _0x2387bc&&_0x374c6a&&ei(_0x51cb7d,_0x21bd6d,_0x374c6a),_0x374c6a;},Fe=(_0x17b354,_0x5b5a01)=>(_0xd1f512,_0x240f2b)=>_0x5b5a01(_0xd1f512,_0x240f2b,_0x17b354),Sa=(_0xda726e,_0x2349c2,_0x37f875)=>fa(_0xda726e,_0x2349c2+'',_0x37f875);const pa=_0x2a1bbf(0x239);let Lt=class extends _0x13fedb{constructor(_0x4fe16b=jn,_0x2b7a54,_0x359089,_0x229992,_0x47e32d){const _0x399415=_0x2a1bbf;super(),this['_config']=_0x4fe16b,this[_0x399415(0x33c)]=_0x2b7a54,this[_0x399415(0x3e9)]=_0x359089,this[_0x399415(0x4ac)]=_0x229992,this[_0x399415(0x536)]=_0x47e32d;const {..._0x1aa042}=this[_0x399415(0x417)];this[_0x399415(0x536)][_0x399415(0x488)](j,_0x1aa042);}[_0x2a1bbf(0x253)](){const _0x263faa=_0x2a1bbf;this['_registerDependencies'](),_0xf7a1db(this[_0x263faa(0x4ac)],[[Ce],[Ze],[st]]);}[_0x2a1bbf(0x235)](){const _0x202154=_0x2a1bbf;_0xf7a1db(this[_0x202154(0x4ac)],[[Qe]]);}[_0x2a1bbf(0x2f9)](){const _0x1616cd=_0x2a1bbf;this[_0x1616cd(0x2ab)]();}['_registerDependencies'](){const _0x500fe9=_0x2a1bbf;var _0x117247,_0x1b2580,_0x4cc335,_0x1b595f;this[_0x500fe9(0x4ac)][_0x500fe9(0x220)](_0x2e73bf)&&this['_logService']['error'](_0x500fe9(0x3c7),_0x500fe9(0x4bd));let _0xb5e9af=[[_0x2e73bf,{'useClass':Mt}],[ue],[Yt],[_0x1af781],[Qs,{'useClass':da}],[_e],[D],[_0x4b68b1],[qe],[Je],[Xe],[Wt],[et],[tt],[Fs],[st],[Vs,{'useClass':(_0x1b2580=(_0x117247=this['_config'])==null?void 0x0:_0x117247[_0x500fe9(0x404)])!=null?_0x1b2580:bt}],[_0x511553,{'useClass':_0x3ccdaa}],[_0x2dbfcb,{'useClass':At}],[_0x4e61b4,{'useClass':Ut}],[_0x513af4,{'useClass':Nt}],[$e],[Ze],[Me],[Qe],[Ce]];(_0x4cc335=this[_0x500fe9(0x417)])!=null&&_0x4cc335[_0x500fe9(0x2e3)]&&_0xb5e9af[_0x500fe9(0x365)]([it,{'useClass':Sr}]),_0xb5e9af=_0x45dd2f(_0xb5e9af,(_0x1b595f=this[_0x500fe9(0x417)])==null?void 0x0:_0x1b595f['override']),_0xb5e9af[_0x500fe9(0x28a)](_0x23296a=>this['_injector'][_0x500fe9(0x20f)](_0x23296a)),this['_initModules']();}[_0x2a1bbf(0x2ab)](){const _0x2c8806=_0x2a1bbf;this[_0x2c8806(0x394)](this['_renderManagerService'][_0x2c8806(0x298)](_0x338b41['UNIVER_DOC'],[Pt])),this[_0x2c8806(0x394)](this[_0x2c8806(0x3e9)][_0x2c8806(0x298)](_0x338b41[_0x2c8806(0x26f)],[yt]));}[_0x2a1bbf(0x525)](){const _0x4c19bf=_0x2a1bbf;var _0x5f2c7e,_0x47c709;this[_0x4c19bf(0x4ac)][_0x4c19bf(0x380)](_0x1af781)[_0x4c19bf(0x521)]({'priority':0x14,'interceptor':_0x210cb({'maxParallel':0x6})}),this['_injector'][_0x4c19bf(0x380)](tt),(_0x5f2c7e=this[_0x4c19bf(0x417)])!=null&&_0x5f2c7e[_0x4c19bf(0x4b2)]||this['_injector'][_0x4c19bf(0x380)](D)[_0x4c19bf(0x4d3)](),(_0x47c709=this[_0x4c19bf(0x417)])!=null&&_0x47c709['enableAuthServer']&&this[_0x4c19bf(0x4ac)][_0x4c19bf(0x380)](et),this[_0x4c19bf(0x4ac)][_0x4c19bf(0x380)]($e),this[_0x4c19bf(0x4ac)][_0x4c19bf(0x220)](Me)&&this['_injector'][_0x4c19bf(0x380)](Me);}};Sa(Lt,_0x2a1bbf(0x2fa),pa),Lt=ga([_0xa0c5a9(_0x3ed88a),Fe(0x1,_0x2e1f3f),Fe(0x2,_0x55e37e),Fe(0x3,_0x55fbd9(_0x297a6b)),Fe(0x4,_0x39b511)],Lt);export{Fo as AUTHZ_URL_KEY,Ut as AuthzIoHttpService,An as COLLAB_SUBMIT_CHANGESET_URL_KEY,Tn as COLLAB_WEB_SOCKET_URL_KEY,$e as CollaborationController,ze as CollaborationEntity,Tt as CollaborationSession,ue as CollaborationSessionService,bt as CollaborationSocketService,w as CollaborationStatus,To as CollaborationStatusDisplay,Fs as CommentService,Ze as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Rt as DocCollaborationEntity,On as HEARTBEAT_INTERVAL_KEY,Hs as HEARTBEAT_TIMEOUT_KEY,Vs as ICollaborationSocketService,Qs as IURLService,Nt as ImageIoService,Un as LOCAL_CACHE_INTERVAL_KEY,Ln as LOGIN_URL_KEY,D as LocalCacheService,_e as MemberService,Pn as RETRY_CONNECTING_MAX_COUNT_KEY,Ha as SEND_CHANGESET_TIMEOUT_KEY,In as SNAPSHOT_SERVER_URL_KEY,Cn as SNAPSHOT_URL_KEY,X as SessionStatus,no as SheetCollabCursorShape,Ot as SheetCollaborationEntity,At as SnapshotServerOverHTTPService,Lt as UniverCollaborationClientPlugin,da as WebURLService,Hn as deserializeToCombResponse,xn as serializeCombRequest};