@univerjs-pro/collaboration-client 0.2.10 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/locale/en-US.json +5 -0
- package/lib/locale/ru-RU.json +5 -0
- package/lib/locale/vi-VN.json +5 -0
- package/lib/locale/zh-CN.json +11 -6
- package/lib/locale/zh-TW.json +5 -0
- package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +1 -1
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +1 -1
- package/lib/types/controllers/collab-status/collab-status.controller.d.ts +1 -1
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +87 -0
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +2 -1
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +4 -88
- package/lib/types/controllers/config.schema.d.ts +5 -0
- package/lib/types/controllers/telemetry.d.ts +11 -0
- package/lib/types/index.d.ts +4 -3
- package/lib/types/locale/zh-CN.d.ts +5 -0
- package/lib/types/plugin.d.ts +3 -2
- package/lib/types/services/collaboration-session/collaboration-session.d.ts +59 -0
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +14 -57
- package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +3 -2
- package/lib/umd/index.js +1 -1
- package/package.json +29 -27
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x87081d=_0x1fa5;(function(_0x47026a,_0x2fa4e1){const _0x29188b=_0x1fa5,_0x58f3ab=_0x47026a();while(!![]){try{const _0xb09fe6=-parseInt(_0x29188b(0x29a))/0x1*(-parseInt(_0x29188b(0x336))/0x2)+parseInt(_0x29188b(0x34e))/0x3*(parseInt(_0x29188b(0x3a3))/0x4)+-parseInt(_0x29188b(0x467))/0x5*(parseInt(_0x29188b(0x287))/0x6)+parseInt(_0x29188b(0x413))/0x7*(-parseInt(_0x29188b(0x3d0))/0x8)+parseInt(_0x29188b(0x4d2))/0x9+-parseInt(_0x29188b(0x33d))/0xa+parseInt(_0x29188b(0x495))/0xb;if(_0xb09fe6===_0x2fa4e1)break;else _0x58f3ab['push'](_0x58f3ab['shift']());}catch(_0x427a9a){_0x58f3ab['push'](_0x58f3ab['shift']());}}}(_0x9ef4,0xc28e3));var Ys=Object['defineProperty'],Ks=(_0x1b3f2a,_0x1d18f6,_0x14c65b)=>_0x1d18f6 in _0x1b3f2a?Ys(_0x1b3f2a,_0x1d18f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14c65b}):_0x1b3f2a[_0x1d18f6]=_0x14c65b,_=(_0x205f17,_0x37f84f,_0x414abf)=>Ks(_0x205f17,typeof _0x37f84f!=_0x87081d(0x38e)?_0x37f84f+'':_0x37f84f,_0x414abf);import{Disposable as _0x1ee863,toDisposable as _0x3b697b,UniverInstanceType as _0x5a714d,Inject as _0x1b956a,UserManagerService as _0x17e09a,IUniverInstanceService as _0x1d5396,createIdentifier as _0x1b08c0,DisposableCollection as _0x173e9c,IConfigService as _0x5d255f,ILogService as _0x82a609,RxDisposable as _0x53ce5a,LocaleService as _0x2db4b8,Injector as _0x4bf6fc,ILocalStorageService as _0x4b5ce8,Tools as _0x1540f0,ICommandService as _0x15992c,JSONX as _0x4266b8,CommandType as _0xc9d637,IPermissionService as _0x5543f8,IUndoRedoService as _0x22132f,sequenceExecute as _0x2a22c6,OnLifecycle as _0x76d0ae,LifecycleStages as _0x28e3b0,Optional as _0x4b698d,Rectangle as _0x1ec52a,ThemeService as _0x4a7906,useDependency as _0x178612,connectInjector as _0x5458e2,Workbook as _0x4ae2cc,LocalUndoRedoService as _0x54179a,IContextService as _0x492a6b,COLORS as _0x5212b1,ColorKit as _0x5c6173,fromEventSubject as _0x240261,isInternalEditorID as _0x387ac1,Plugin as _0x153d86,IAuthzIoService as _0x2d6512,mergeOverrideWithDependencies as _0x5a0091,DependentOn as _0x425aa7}from'@univerjs/core';import{SheetsSelectionsService as _0x5973ef,SetSelectionsOperation as _0x2ce045,InsertSheetMutation as _0x171b5c,EmptyMutation as _0x53ecf2,WorkbookEditablePermission as _0x372984,RefRangeService as _0x2d0dd9,EffectRefRangId as _0x5a0c0b,handleIRemoveRow as _0x39a961,handleIRemoveCol as _0xf02d80,handleMoveRange as _0x3504f5,handleInsertRow as _0x2d43e9,handleInsertRangeMoveRight as _0x320b17,handleInsertRangeMoveDown as _0x5e73fe,handleInsertCol as _0x1d6b1e,handleDeleteRangeMoveUp as _0x3ada4b,handleDeleteRangeMoveLeft as _0x35f3b3,runRefRangeMutations as _0x30e48b,SetWorksheetActivateCommand as _0x53a25c}from'@univerjs/sheets';import{MessageType as _0x4dda16}from'@univerjs/design';import{IBeforeCloseService as _0x276384,IMessageService as _0x14fd53,INotificationService as _0x11083e,useObservable as _0x1e1781,BuiltInUIPart as _0x41f3dc,IUIPartsService as _0x1ccd4c}from'@univerjs/ui';function _0x9ef4(){const _0x2468a3=['[SyncedState]:\x20received\x20acknowledgement.','ALREADY_EXISTS','subUnitId','_checkMissing','USERS_ENTER','/rev/','show','_transformPreviousActiveRange','hide','119OeAuFe','members','onRendered','NEW_CHANGESETS','evenodd','/unit/','pending','_updateCollabCursors','socketService','_updateState','children','mutations','SUCCUSS','currentSkeleton$','filter','submit\x20changeset\x20error!','_redoStacks','JOINING','_state','/allowed','createInstance','params','&assign=','enableAuthServer','collaboration-client.offline-data-not-saved','[CollaborationUndoRedoService]','[SyncedState]:\x20received\x20rejection.','[CollaborationEntity]','_collabCursorState$','_themeService','UNKNOWN_CODE','_removeRoom','onSyncEditingCollabCursor','removeMember','allowed','_color','_event$','_userManagerService','JOIN','_queuedRemoteChangesets','transformMutationsWithChangeset','getImage','HEARTBEAT_TIMEOUT','makeDirty','_renderManagerService','_injector','awaiting','[OfflineState]:\x20received\x20acknowledgement.','socket\x20open.','setWaitCount','_executeRemoteChangeset','M0\x200H16V16H0z','addImageSourceCache','_socketReady','m1Prime','icon','COLLAB_WEB_SOCKET_URL','pauseCollaboration','_urlService','pushState','_sendingTimer','close$','INGEST','LIVESHARE_FETCH_OPERATIONS','getDocRanges','toString','/-/object/-/batch_allowed','joinEvent','_hideTimer','_incrementRevisionNumber','getItem','_localeService','getTime','_shapes','getCellPositionByOffset','Unknown\x20user','location','_beforeCloseService','src','loadDoc','_getSendChangesetTimeout','rev','_scheduleHeartbeat','_onCursorDelete','30JcppEW','offline','_clearScheduledTask','length','_selfUnitIDs','red300','_undoRedoService','_createHandler','_sendHeartbeatTimer','_unitStatus','UNIVER_SHEET','OTHER_CLIENTS_EDITING','image/jpg','interceptor','catch','editing\x20status\x20changed\x20to','_onCombEvent','_onUserJoin','substring','[CollaborationSession]','onTransformChange$','type','_setupBeforeClosingHandler','RemoveRowCommandId','transformMutation','put','liveShareNewHost','csAckEvent','unitId\x20is\x20not\x20found','_textBubble','_context','height','Starting','assignAColorForMemberID','_state$','setInterval','awaitingChangeset','_cursorShapes','_getUndoStack','_notificationService','_cursorInfo$','_localStorageService','_roomMembers','getResourcesRequest','saveChangeset','_assignedColors','12327601ksGrbi','_snapshotServerService','withCredentials','setCurrentUser','headers','current','_getRedoStack','NOT_COLLAB','_anchor','ranges','_getAPIPrefix','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_registerDependencies','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','editingUnit','_getUploadFileURL','_http','_registerRenderDependencies','currentColor','cursorInfo','_lastPointer','_onCursorUpdate','startsWith','tag','/collaborator','CHANGESET_REJ','set','univer-pro.collaboration-client-socket-service','_onRecvEvent','closeSession','_socket$','black','_httpService','cmd','0\x200\x2017\x2016','_collabCursorController','prototype','Error\x20on\x20receiving\x20event','collab-rect-range-','_retryConnectingTimer','_onMessage','attrs','path','NO_OTHER_CLIENTS_EDITING','{fileID}','_docTransformSelectionsService','[UniverCollaborationClientPlugin]','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','idSuffix','[CollaborationSessionService]:\x20socket\x20error','gold400','synced','sheets','_getSaveTimeout','/resources','measureText','isPermissionRej','_hover','moveTo','top','onlyLocal','6566697tSVliI','_transformStack','UUID','debug','xlink:href','_labelPosition','LIVESHARE_TERMINATE','encode','/role','_schedule','toggleOffline','onStateChange','_startDocCollabCursor','_initMergeInterceptor','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','_onLocalMutation','_submitChangeset','_status$','SUBMIT_CHANGESET','body','getCurrentUnitForType','getFocusedUnit','roomMembers','_handleLeaveEvent','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','MUTATION','_disableEditing','drawWith','focused$','_updateSubUnitFromURLParams','createSocket','actions','onMouseMove','csRejEvent','image/gif','on-line-single_clip0_910_349','history','_collaborationSessionService','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','onSendChangeset','_revisionService','_name','list','_init','next','[PendingState]:\x20received\x20rejection.','Error','onPointerEnter$','_initStatusListener','column','getCollabEntity$','onlineStatusTitle','APPLY_REVISION_CONFILICT','LICENSE_MAX_UNITS_EXCEEDED','onlineStatus','code','UnitSnapshot','_getAPIPrefixPath','split','push','random','_collabSessionService','getMember','_transformRemoteChangesetByIMECache','_localCacheService','transformSelections','initWorkbookPermissionChange','USERS_LEAVE','_members','getUnitId','clipPath','session','ACTIVE_UNIT_EVENT_CHANNEL','_waitCount','fillStyle','_createInitialState','url','POST','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','message$','_socketMessageSubscription','UNIVER_DOC','_document','createElement','getUniverSheetInstance','/universer-api/file/{fileID}/sign-url','CONNECTOR_DATA_TOO_LARGE','SEND_CHANGESET_TIMEOUT','forEach','_initCloseConn','setAlpha','_toggleOnline','width','setUndoRedoMutationParamsCache','userID','function','_showConflictNotification','_docStateChangeManagerService','UNIVER_SLIDE','_anchorDot','_permissionService','_commentService','saveSheetBlock','collab-text-anchor-','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','loadOfflineData','fillText','not_collab','triggerDblclick','updatePermissionPoint','COMMENT_UPDATE','commentUpdateEvent','text','_clearLocalCache','_retryCount','SYNCED','_substituteUndoStack','_collaborationController','TOO_MANY_REQUESTS','OffLineSingle','collaboration.single-unit.warning','get','responseType','_cursors','reduce','InsertRangeMoveRightCommandId','updateMember','_getScale','blue400','bottom','transformUndoRedo','resourceIDs','_transformSelections','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','getParam','_getSheetObject','_syncEditingCollabCursor','_sheetTransformSelectionsService','createCollaborator','_backgroundColor','from','onTransformRemoteChangesetByIMECache','_getSnapshotAPIPrefix','socket\x20close','collabStatus.offline','UNDEFINED','string','_docTransformIMECacheService','permission.title','Steady','colorChannel1','getActiveRange','_lockTransition','FAIL','_sessionStatus$','unitId','UPDATE_PERMISSION_OBJ','textRanges','dispose$','_sheetSkeletonManagerService','backgroundColor','setParam','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','MSG_FOR_ERROR','storage','HttpExport','requestParams','getVpScrollXYInfoByPosToVp','exhaustSavingTask','UniverIcon','saveImage','_updateLocalCache','IDLE','key','_sessions','json','_session','FETCH_MISSING','enableLocalCache','getTypeOfUnitDisposed$','executeCommand','asObservable','verdancy600','indexOf','purple300','listCollaborators','HELLO','collabStatus.synced','[OfflineState]:\x20received\x20changeset.','_getMergeRange','saveSnapshot','selections','_clearCollaborationTimeoutTimer','_onRefRangeChange','Univer','_docSyncEditingCollabCursorService','map','_exhaustRemoteChangesetQueue','AWAITING_WITH_PENDING','_handleEvent','addObject','whenReady','updateOfflineData','getCollabCursors$','dispose','NOT_FOUND','_clearOtherTimers','close','use','getMemberID','collabCursorState$','_messageService','UNKNOWN_CMD','isEditing','clearTimeout','values','_commandService','LICENSE_EXPORT_SIZE_EXCEEDED','unknown','&to=','skeleton','registerRefRange','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','getSheetBlock','_initUnitPermissionChange','encodeURIComponent','_configService','send','max','fromCollab','onRemoteRej','getUnhiddenWorksheets','_colorAssignService','CHANGESET_ACK','hovered','FileId','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_eventUnsubscribe','size','DeleteRangeMoveUpCommandId','COMPLETION_FINISHED','conflict.content','_tryEnsureSocket','getMergeData','_colorIndex','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','PERMISSION_DENIED','save','_rescheduleHeartbeatEvent','update','_HTTPService','_initResize','_clearTimeoutTimer','_docSkeletonManagerService','complete','fetchMissingChangesets','YUUMI_RATE_OVER_LIMIT','_isPermissionRej','Undefined','collab-text-range-','engine','getValue','syncEditingCollabCursor','_uiPartsService','/universer-api/snapshot','onTransformSelections','_setupSubUnitSync','_change$','getCurrentRevForDocument','searchParams','getWorkbookSelections','open$','displayName','_compressMutationService','OnLineSingle','_scheduleClearOtherTimer','getCollabEntity','on-line-single','session.connection-failed','483108ZOhfOo','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','error','sheetId','collaboration.closeRoom','_socketService','/universer-api/comb','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','ONLINE','_transformService','clear','_clearRedo','_scheduleReconnection','urlChange$','color','\x20to\x20','_getSignURL','fetchThroughInterceptors','_transformUndoRedoStack','1163649kqLdBA','_docSkeleton','fill','registerComponent','flatMap','replaceTextRanges','doc.mutation.rich-text-editing','SNAPSHOT_HAS_BEEN_REMOVED','_initCommandExecutedListener','error$','_initModules','_onUserLeave','url(#$1','listRoles','unsubscribe','_render','_applyRemoteChangeset','YUUMI_UNABLE_LOAD_URL','add','_unitID','_refreshCollabCursors','_scheduleSaving','_decreaseWaiting','generateRandomId','UNIVER_PROJECT','setActiveRange','_onJoinRoomEvent','baseRev','\x20in\x20_schedule.','getViewport','DeleteRangeMoveLeftCommandId','[DataLoaderController]','HEADER_MENU','_univerInstanceService','_handleJoinEvent','YUUMI_SUBSCRIPTION_NOT_FOUND','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_cursor','memberID','_drawTextRange','LIVESHARE_OPERATION','session.will-retry','clearInterval','OFFLINE','save\x20fail\x20reason\x20is\x20','getTypeOfUnitAdded$','_config','_getCtorByUniverType','propertyIsEnumerable','_drawAnchor','getCurrent','_commentUpdate$','newCsEvent','call','deepClone','infoRsp','LIVESHARE_REQUEST_HOST','url(#off-line-single_clip0_910_343)','HttpImport','isArray','sessionStatus','getSkeleton','state$','patch','trim','state','onRemoteAck','_handleHover','toRgbString','contains','jiqing500','_saveTaskMap','deleteCollaborator','getOffsetConfig','cursorInfo$','stringify','_memberService','_transitionLocked','endRow','_range','labelPosition','selection','getUnitType','_acknowledgedAwaitingChangeset','addEventListener','_updateStatus','_initStatusComponent','range','transformChangesets','fillRule','restore','compose','sessionStatus$','sheetID','fetching\x20missing\x20changesets\x20from\x20','collabStatus.syncing','auth.needGotoLoginAlert','DEFAULT_FILE_NAME','getSheetId','defIds','assign','_onConflict','_loadDoc','_substituteRedoStack','UNAUTHENTICATED','_ensureSubject','_onRemoteACK','_socket','incrementRevForDocument','_joinRoom','registerOnClose','includes','_replayCachedMutations','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_syncEditingCollabCursorService','objectType','LIVESHARE_NEW_HOST','YUUMI_URL_COL_OUT_OF_RANGE','init','_drawRectRange','unit','disableLocalCache','getOwnPropertyDescriptor','conflict.title','requireSession','_disabled','defineProperty','UNIVER_UNKNOWN','div','getInterceptPoints','data','_unitOnClients','changesets','transformRemoteChangeset','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','UNRECOGNIZED','transformByState','_startCollaboration','objects','RETRY_CONNECTING_INTERVAL','event$','?size=','getRoom','unit-cache-','disposeUnit','getCurrentSelections','setShapeProps','enableOfflineEditing','UnitEmbedded','...','[OfflineState]:\x20received\x20rejection.','_awaitingChangeset','COMPRESS_MUTATION_APPLY','_type','univer-online-status','getSheetBySheetId','2HBpnEP','rgba(255,\x20255,\x20255,\x200.01)','pluginName','HEARTBEAT','status$','_onFetchMissResult','name','9238930UDSLhr','_createInitialStateImpl','SNAPSHOT_INVALID_SNAPSHOT','_toggleOffline','leaveEvent','onMissedChangesetFetched','disposeWithMe','_collaborationPaused','getUnitOnRev','onCommentUpdate','subscribe','getOwnPropertySymbols','PENDING','updatePermissionObjEvent','apply','appendMutation','/-/object/list','9OULMde','/universer-api/snapshot/','resize','_online','_startSheetCollabCursor','_waitForHeartbeatResponse','_getLoginPath','objectID','_id','0\x200\x2016\x2016','_hovered','awaiting_with_pending','[CollaborationSessionService]','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','endColumn','translate(.97)','_cachedData','revision','startRow','_snapshotService','snapshot','resend','1em','CHANGESET_REVISION_CONFILICT','BASE64','getAncestorScale','getUndoRedoMutationParamsCache','hasOwnProperty','registerBeforeClose','_unlockTransition','APPLY_NON_SEQUENTIAL_REVISION','session.collaboration-timeout','replaceState','m2Prime','objectActions','replace','_collaborationTimeoutTimer','UPDATE_CURSOR','_getCurrentRevision','ERROR_IMAGE_TYPE','some','unshift','reject','activeSheet$','image/bmp','_clearUndo','target','INVALID_ARGUMENT','_replaceFileID','LOGIN_URL_KEY','&source=','AUTHZ_URL_KEY','has','currentTheme$','toggleOnline','_saveCache','isActive','append','_sendHeartbeat','roomMembers$','getConfig','round','joinRsp','defs','symbol','APPLY_REJECT','setItem','_draw','RECV','_createSocket','_fetchMissChangesets','registerHTTPInterceptor','closePath','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','collaboratorID','image/png','then','min','_clearHeartbeatTimer','_ws','c1Prime','connection\x20error','registerRenderModule','font','/new_changes','452056WfidAq','failed\x20to\x20apply\x20missed\x20changesets!','fetch_missing','_updateURLWithCurrentState','setTimeout','unitID','status','ws://127.0.0.1:8000/universer-api/comb/connect','subunit','_scheduleTimestamp','getRangePointData','row','/universer-api/oidc/authpage','Warning','getCurrentUser','FromArray','INTERNAL_ERROR','localeService','_loadSheet','pipe','conflict','_removeClearOtherTimer','onCommandExecuted','eventID','/object/','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','collabStatus.conflict','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','_onRemoteRejected','_undoStacks','Ready','_pendingMutations','onload','getActiveSheet','SHOULD_CLOSE_CONN','_onConnectionFailed','delete','saveOfflineData','_onConnectionOpen','_getAnchorBounding','resolve','originalMeta','_heartbeatTimer','onPointerLeave$','result','540760IDycKS','slice','file','UNIVER_COLLABORATION_CLIENT_PLUGIN','APPLY_PERMISSION_DENIED','onRemoteChangeset','_timeoutTimer','onStarting','getUnitStatus$','_removeCollabCursors','_roomMembers$','univerjs-icon\x20univerjs-icon-','SNAPSHOT_SERVER_URL_KEY','url(#on-line-single_clip0_910_349)','[PendingState]:\x20received\x20acknowledgement.','_scene','MoveRangeCommandId','_transformIMECache','svg','href','findNodePositionByCharIndex','entries','_imageSourceCache','_logService','lineTo','off-line-single_clip0_910_343','every','find','startColumn','_entityInit$','AWAITING','_remoteChangesetQueue','_send','LEAVE','arc','LICENSE_DISTRO_REJECTED','PSEUDO_FETCH_MISSING_RESULT','_handler','post','_entities','onlineStatusIcon','?url=','parse','PERMISSION_REJ','onPointerMove$','subscribeEvent','_updateLocalCursor','loadSheet','newValue','concat','_transformUndoredo','extend','none','image/jpeg','_singleActiveUnitService','permission.content','collabStatus.notCollab','COMPRESS_MUTATION_SEND'];_0x9ef4=function(){return _0x2468a3;};return _0x9ef4();}import{CollaborationEvent as _0xd3c20c,parseChangesetToProtocol as _0x265bb6,ISnapshotServerService as _0x367e30,RevisionService as _0xa786bc,isTransformMutationFailure as _0x364f8f,isTransformMutationsWithChangesetSuccess as _0x522a4,ITransformService as _0x4e495a,mapDocumentTypeToUniverType as _0x4a77df,isTransformChangesetsSuccess as _0xcffb46,CompressMutationService as _0x1ac7ae,parseProtocolChangeset as _0x55bb16,SnapshotService as _0x5cfad0,textEncoder as _0x310092,b64DecodeUnicode as _0x59c020,isTransformMutationsWithChangesetFailure as _0x519c1a,UniverCollaborationPlugin as _0x361f11}from'@univerjs-pro/collaboration';import{merge as _0x1d3042,Subject as _0x1ace47,BehaviorSubject as _0x2561fc,distinctUntilChanged as _0x1980f0,fromEvent as _0x28ccd8,of as _0x274530,takeUntil as _0x3c23a9,debounceTime as _0x1412d5,filter as _0x4d0abc,switchMap as _0x21055f,combineLatest as _0x138d6c,shareReplay as _0x3b034a,mapTo as _0x310a6c,concatMap as _0x2ccf11}from'rxjs';import{map as _0x414fcf,takeUntil as _0x3e87c2,take as _0x56d486,filter as _0x381935,delay as _0xd2b55d,shareReplay as _0x1f7f7f,switchMap as _0x16e713,throttleTime as _0xcfa107}from'rxjs/operators';import{IMEInputManagerService as _0x34b802,TextSelectionManagerService as _0x188da2,serializeDocRange as _0x249015,RichTextEditingMutation as _0x40568f,DocStateChangeManagerService as _0x17dea7,SetTextSelectionsOperation as _0x28f206,SetDocZoomRatioOperation as _0x46d2fe,DocSkeletonManagerService as _0x26e3ab}from'@univerjs/docs';import{HTTPService as _0x3db34c,WebSocketService as _0x11ce39,MergeInterceptorFactory as _0x5c8e22,HTTPRequest as _0x3fce40,IHTTPImplementation as _0x3c9cbd,XHRHTTPImplementation as _0x39d04d,ThresholdInterceptorFactory as _0x3ef1b2}from'@univerjs/network';import{ImageSourceType as _0x434ac3,ImageUploadStatusType as _0x46d7f0,IImageIoService as _0x13659e}from'@univerjs/drawing';import{Shape as _0x2763bf,Rect as _0x31ca09,Vector2 as _0x5c324a,NodePositionConvertToCursor as _0x5e6c7c,isValidRectRange as _0x4c5cc1,NodePositionConvertToRectRange as _0x564309,getColor as _0x5664c9,TEXT_RANGE_LAYER_INDEX as _0x130379,RegularPolygon as _0x1ef824,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2cbd51,IRenderManagerService as _0x23fc25}from'@univerjs/engine-render';import{deserializeRangeWithSheet as _0x262cf1,serializeRangeWithSheet as _0x448ab0}from'@univerjs/engine-formula';import _0x331994 from'lodash/debounce';import{VIEWPORT_KEY as _0x1e06ce,getCoordByCell as _0x13adfd,getSheetObject as _0x45ba,SheetSkeletonManagerService as _0x1818c9,SheetPermissionInitController as _0x45b80e}from'@univerjs/sheets-ui';import _0x27911f,{forwardRef as _0x2c1bb9,useRef as _0x36697b,createElement as _0x1618fc}from'react';import _0x2a1254 from'clsx';import{IRemoteInstanceService as _0x265857}from'@univerjs/rpc';const an=_0x87081d(0x3dc),cn=_0x87081d(0x278),hn='SNAPSHOT_URL_KEY',_n=_0x87081d(0x1c7),ln=0x7d0,un=_0x87081d(0x44b),dn=_0x87081d(0x3aa),mn='HEARTBEAT_INTERVAL',fn=0x7530,Os=_0x87081d(0x43d),Ds=0x2710,gn=_0x87081d(0x325),Sn=0x4e20,pn='RETRY_CONNECTING_MAX_COUNT',vn=0x3,In='LOCAL_CACHE_INTERVAL',En=0x3e8,Cn='COLLAB_SUBMIT_CHANGESET_URL',bn=_0x87081d(0x28d),Rn=_0x87081d(0x37f),Tn=_0x87081d(0x3af);var Ps=(_0x29a9da=>(_0x29a9da[_0x29a9da[_0x87081d(0x201)]=0x0]=_0x87081d(0x201),_0x29a9da[_0x29a9da['OK']=0x1]='OK',_0x29a9da[_0x29a9da[_0x87081d(0x3b3)]=0x2]=_0x87081d(0x3b3),_0x29a9da[_0x29a9da[_0x87081d(0x266)]=0x3]=_0x87081d(0x266),_0x29a9da[_0x29a9da[_0x87081d(0x23d)]=0x4]=_0x87081d(0x23d),_0x29a9da[_0x29a9da[_0x87081d(0x302)]=0x5]=_0x87081d(0x302),_0x29a9da[_0x29a9da[_0x87081d(0x40b)]=0x6]=_0x87081d(0x40b),_0x29a9da[_0x29a9da['INVALID_ARGUMENT']=0x7]=_0x87081d(0x37d),_0x29a9da[_0x29a9da[_0x87081d(0x1e6)]=0x8]=_0x87081d(0x1e6),_0x29a9da[_0x29a9da['COMPLETION_FINISHED']=0x9]=_0x87081d(0x260),_0x29a9da[_0x29a9da[_0x87081d(0x365)]=0x1389]=_0x87081d(0x365),_0x29a9da[_0x29a9da[_0x87081d(0x33f)]=0x1771]=_0x87081d(0x33f),_0x29a9da[_0x29a9da['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x87081d(0x2a1),_0x29a9da[_0x29a9da[_0x87081d(0x38f)]=0x1b59]=_0x87081d(0x38f),_0x29a9da[_0x29a9da['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x87081d(0x36c),_0x29a9da[_0x29a9da[_0x87081d(0x1a4)]=0x1b5b]=_0x87081d(0x1a4),_0x29a9da[_0x29a9da[_0x87081d(0x3d4)]=0x1b5c]=_0x87081d(0x3d4),_0x29a9da[_0x29a9da[_0x87081d(0x1c6)]=0x1f41]=_0x87081d(0x1c6),_0x29a9da[_0x29a9da[_0x87081d(0x1a5)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x29a9da[_0x29a9da[_0x87081d(0x320)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x29a9da[_0x29a9da['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x29a9da[_0x29a9da[_0x87081d(0x249)]=0x232c]=_0x87081d(0x249),_0x29a9da[_0x29a9da[_0x87081d(0x3f3)]=0x232d]=_0x87081d(0x3f3),_0x29a9da[_0x29a9da[_0x87081d(0x2ab)]=0x2711]=_0x87081d(0x2ab),_0x29a9da[_0x29a9da[_0x87081d(0x30f)]=0x2712]=_0x87081d(0x30f),_0x29a9da[_0x29a9da[_0x87081d(0x270)]=0x2713]=_0x87081d(0x270),_0x29a9da[_0x29a9da[_0x87081d(0x2bd)]=0x2714]=_0x87081d(0x2bd),_0x29a9da[_0x29a9da[_0x87081d(0x321)]=-0x1]=_0x87081d(0x321),_0x29a9da))(Ps||{}),H=(_0x18054c=>(_0x18054c[_0x18054c[_0x87081d(0x319)]=0x0]=_0x87081d(0x319),_0x18054c[_0x18054c[_0x87081d(0x1c1)]=0x1]='UNIVER_DOC',_0x18054c[_0x18054c['UNIVER_SHEET']=0x2]=_0x87081d(0x471),_0x18054c[_0x18054c['UNIVER_SLIDE']=0x3]=_0x87081d(0x1d2),_0x18054c[_0x18054c[_0x87081d(0x2b2)]=0x4]='UNIVER_PROJECT',_0x18054c[_0x18054c[_0x87081d(0x321)]=-0x1]=_0x87081d(0x321),_0x18054c))(H||{}),I=(_0x5309b7=>(_0x5309b7[_0x5309b7[_0x87081d(0x244)]=0x0]=_0x87081d(0x244),_0x5309b7[_0x5309b7['HELLO']=0x1]=_0x87081d(0x22a),_0x5309b7[_0x5309b7['JOIN']=0x2]=_0x87081d(0x439),_0x5309b7[_0x5309b7['LEAVE']=0x3]=_0x87081d(0x3f1),_0x5309b7[_0x5309b7['INGEST']=0x4]='INGEST',_0x5309b7[_0x5309b7[_0x87081d(0x339)]=0x5]=_0x87081d(0x339),_0x5309b7[_0x5309b7[_0x87081d(0x392)]=0x6]=_0x87081d(0x392),_0x5309b7[_0x5309b7[_0x87081d(0x321)]=-0x1]=_0x87081d(0x321),_0x5309b7))(I||{}),jt=(_0x13810b=>(_0x13810b[_0x13810b[_0x87081d(0x431)]=0x0]=_0x87081d(0x431),_0x13810b[_0x13810b['OK']=0x1]='OK',_0x13810b[_0x13810b[_0x87081d(0x209)]=0x2]=_0x87081d(0x209),_0x13810b[_0x13810b['UNRECOGNIZED']=-0x1]=_0x87081d(0x321),_0x13810b))(jt||{}),ws=(_0x59a2c4=>(_0x59a2c4[_0x59a2c4['Undefined']=0x0]=_0x87081d(0x272),_0x59a2c4[_0x59a2c4[_0x87081d(0x2d4)]=0x1]='HttpImport',_0x59a2c4[_0x59a2c4[_0x87081d(0x215)]=0x2]=_0x87081d(0x215),_0x59a2c4[_0x59a2c4[_0x87081d(0x32e)]=0x3]=_0x87081d(0x32e),_0x59a2c4[_0x59a2c4[_0x87081d(0x1a8)]=0x4]=_0x87081d(0x1a8),_0x59a2c4[_0x59a2c4[_0x87081d(0x321)]=-0x1]='UNRECOGNIZED',_0x59a2c4))(ws||{}),On=Object['defineProperty'],Dn=Object[_0x87081d(0x314)],Pn=(_0x48226c,_0x54a2f5,_0x5b2f6a,_0x13a071)=>{for(var _0x18fd8a=_0x13a071>0x1?void 0x0:_0x13a071?Dn(_0x54a2f5,_0x5b2f6a):_0x54a2f5,_0x382b3b=_0x48226c['length']-0x1,_0x40cc99;_0x382b3b>=0x0;_0x382b3b--)(_0x40cc99=_0x48226c[_0x382b3b])&&(_0x18fd8a=(_0x13a071?_0x40cc99(_0x54a2f5,_0x5b2f6a,_0x18fd8a):_0x40cc99(_0x18fd8a))||_0x18fd8a);return _0x13a071&&_0x18fd8a&&On(_0x54a2f5,_0x5b2f6a,_0x18fd8a),_0x18fd8a;},Qt=(_0x4d34a6,_0x29e3f9)=>(_0x4371bd,_0x114203)=>_0x29e3f9(_0x4371bd,_0x114203,_0x4d34a6);let ne=class extends _0x1ee863{constructor(_0x24e8c7,_0x8a2c85){const _0x26a343=_0x87081d;super(),_(this,_0x26a343(0x491),new Map()),(this[_0x26a343(0x2bb)]=_0x24e8c7,this['_userManagerService']=_0x8a2c85,this['disposeWithMe'](_0x3b697b(_0x1d3042(this[_0x26a343(0x2bb)]['getTypeOfUnitDisposed$'](_0x5a714d[_0x26a343(0x471)])['pipe'](_0x414fcf(_0x35496d=>_0x35496d[_0x26a343(0x1b5)]())),this[_0x26a343(0x2bb)][_0x26a343(0x223)](_0x5a714d[_0x26a343(0x1c1)])[_0x26a343(0x3b6)](_0x414fcf(_0x45d8d5=>_0x45d8d5[_0x26a343(0x1b5)]())),this[_0x26a343(0x2bb)]['getTypeOfUnitDisposed$'](_0x5a714d[_0x26a343(0x1d2)])[_0x26a343(0x3b6)](_0x414fcf(_0x5862de=>_0x5862de['getUnitId']())))['subscribe'](_0x4d21d5=>this[_0x26a343(0x432)](_0x4d21d5)))));}[_0x87081d(0x498)](_0x26edf8){const _0x4fbd06=_0x87081d;this[_0x4fbd06(0x438)][_0x4fbd06(0x498)](_0x26edf8);}[_0x87081d(0x3b1)](){const _0x481e06=_0x87081d;return this[_0x481e06(0x438)][_0x481e06(0x3b1)]();}['updateMember'](_0x4bbbad,_0x3437df){const _0x424c41=_0x87081d;let _0x10f449=this['_roomMembers']['get'](_0x4bbbad);_0x10f449||(_0x10f449=new wn(),this[_0x424c41(0x491)][_0x424c41(0x4af)](_0x4bbbad,_0x10f449)),_0x10f449[_0x424c41(0x1ee)](_0x3437df);}[_0x87081d(0x434)](_0x542947,_0x3d1a77){const _0x105b37=_0x87081d,_0x246f78=this[_0x105b37(0x491)][_0x105b37(0x1e9)](_0x542947);_0x246f78&&_0x246f78[_0x105b37(0x434)](_0x3d1a77);}[_0x87081d(0x328)](_0x1d4bdc){const _0x563426=_0x87081d;return this[_0x563426(0x491)]['get'](_0x1d4bdc);}[_0x87081d(0x1ae)](_0x5d1541,_0x55bb58){const _0xdcc965=_0x87081d,_0x5c3c77=this[_0xdcc965(0x491)][_0xdcc965(0x1e9)](_0x5d1541);if(_0x5c3c77)return _0x5c3c77[_0xdcc965(0x1ae)](_0x55bb58);}[_0x87081d(0x432)](_0x54c75e){const _0x2272eb=_0x87081d,_0x43c54c=this['_roomMembers'][_0x2272eb(0x1e9)](_0x54c75e);_0x43c54c&&(_0x43c54c[_0x2272eb(0x23c)](),this[_0x2272eb(0x491)][_0x2272eb(0x3c7)](_0x54c75e));}['dispose'](){const _0x342ff5=_0x87081d;this[_0x342ff5(0x491)][_0x342ff5(0x1c8)](_0x35f56a=>_0x35f56a[_0x342ff5(0x23c)]()),this[_0x342ff5(0x491)]['clear']();}};ne=Pn([Qt(0x0,_0x1d5396),Qt(0x1,_0x1b956a(_0x17e09a))],ne);class wn extends _0x1ee863{constructor(){const _0x4c7495=_0x87081d;super(...arguments),_(this,_0x4c7495(0x1b4),new Map());}[_0x87081d(0x23c)](){const _0xf21503=_0x87081d;this[_0xf21503(0x1b4)][_0xf21503(0x291)]();}[_0x87081d(0x1ee)](_0x64d88f){const _0xcc6a6f=_0x87081d;this['_members'][_0xcc6a6f(0x4af)](_0x64d88f[_0xcc6a6f(0x2c0)],_0x64d88f);}[_0x87081d(0x434)](_0x5b5822){const _0x5afa3b=_0x87081d;this[_0x5afa3b(0x1b4)]['delete'](_0x5b5822);}['getMember'](_0x51433b){const _0x3159c8=_0x87081d;return this['_members'][_0x3159c8(0x1e9)](_0x51433b);}}function Nn(_0x519e00){const _0x3afea2=_0x87081d;var _0x25d090,_0x34921b,_0x37abb0,_0x19c761;const _0x5aff3c=_0x519e00['data'],_0xfdae38=JSON[_0x3afea2(0x3fa)](_0x5aff3c);switch(_0xfdae38[_0x3afea2(0x4b6)]){case I['HEARTBEAT']:case I['HELLO']:{const _0x2c19e7=_0xfdae38[_0x3afea2(0x2d1)];return{..._0xfdae38,'data':_0x2c19e7,'cmd':_0xfdae38['cmd']};}case I[_0x3afea2(0x439)]:{const _0x149000=_0xfdae38[_0x3afea2(0x38c)];return{..._0xfdae38,'data':_0x149000,'cmd':_0xfdae38[_0x3afea2(0x4b6)]};}case I[_0x3afea2(0x392)]:{const _0xc54fe1=_0xfdae38['collaMsg'];switch(_0xc54fe1[_0x3afea2(0x3ba)]){case _0xd3c20c[_0x3afea2(0x3fb)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':(_0x25d090=_0xc54fe1['permissionRejEvent'])==null?void 0x0:_0x25d090['cs']},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x259)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':(_0x34921b=_0xc54fe1[_0x3afea2(0x482)])==null?void 0x0:_0x34921b['cs']},'cmd':_0xfdae38['cmd']};case _0xd3c20c[_0x3afea2(0x416)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':(_0x37abb0=_0xc54fe1[_0x3afea2(0x2ce)])==null?void 0x0:_0x37abb0['cs']},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x4ae)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':(_0x19c761=_0xc54fe1[_0x3afea2(0x4f3)])==null?void 0x0:_0x19c761['cs']},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x373)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1['updateCursorEvent']},'cmd':_0xfdae38['cmd']};case _0xd3c20c[_0x3afea2(0x40e)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1[_0x3afea2(0x456)]},'cmd':_0xfdae38['cmd']};case _0xd3c20c[_0x3afea2(0x1b3)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1[_0x3afea2(0x341)]},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x30e)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1[_0x3afea2(0x481)]},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c['LIVESHARE_FETCH_OPERATIONS']:case _0xd3c20c[_0x3afea2(0x2c2)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1['liveShareOperation']},'cmd':_0xfdae38['cmd']};case _0xd3c20c[_0x3afea2(0x4d8)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1['liveShareNewHost']},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x213)]:return{..._0xfdae38,'data':_0xc54fe1,'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x1de)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1[_0x3afea2(0x1df)]},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x20c)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1[_0x3afea2(0x34a)]},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};case _0xd3c20c[_0x3afea2(0x3c5)]:return{..._0xfdae38,'data':{..._0xc54fe1,'data':_0xc54fe1['shouldCloseConn']},'cmd':_0xfdae38[_0x3afea2(0x4b6)]};default:return _0xfdae38;}}default:return _0xfdae38;}}function Mn(_0xb7394e){const _0x3f2933=_0x87081d;switch(_0xb7394e[_0x3f2933(0x4b6)]){case I[_0x3f2933(0x339)]:case I[_0x3f2933(0x22a)]:return JSON[_0x3f2933(0x2e5)]({'cmd':_0xb7394e['cmd'],'routeKey':_0xb7394e['routeKey']});case I[_0x3f2933(0x451)]:{let _0x304f88;switch(_0xb7394e[_0x3f2933(0x31c)][_0x3f2933(0x3ba)]){case _0xd3c20c['UPDATE_CURSOR']:{_0x304f88={'eventID':_0xd3c20c['UPDATE_CURSOR'],'updateCursorEvent':_0xb7394e[_0x3f2933(0x31c)]['data']};break;}case _0xd3c20c[_0x3f2933(0x1b3)]:{_0x304f88={'eventID':_0xd3c20c[_0x3f2933(0x1b3)],'leaveEvent':_0xb7394e[_0x3f2933(0x31c)]['data']};break;}case _0xd3c20c[_0x3f2933(0x40e)]:{_0x304f88={'eventID':_0xd3c20c['USERS_ENTER'],'joinEvent':_0xb7394e[_0x3f2933(0x31c)][_0x3f2933(0x31c)]};break;}case _0xd3c20c[_0x3f2933(0x30e)]:{_0x304f88={'eventID':_0xd3c20c[_0x3f2933(0x30e)],'liveShareNewHost':_0xb7394e[_0x3f2933(0x31c)][_0x3f2933(0x31c)]};break;}case _0xd3c20c[_0x3f2933(0x2c2)]:{_0x304f88={'eventID':_0xd3c20c[_0x3f2933(0x2c2)],'liveShareOperation':_0xb7394e[_0x3f2933(0x31c)][_0x3f2933(0x31c)]};break;}case _0xd3c20c['LIVESHARE_TERMINATE']:{_0x304f88={'eventID':_0xd3c20c[_0x3f2933(0x4d8)],'liveShareTerminate':_0xb7394e[_0x3f2933(0x31c)][_0x3f2933(0x31c)]};break;}case _0xd3c20c['LIVESHARE_REQUEST_HOST']:{_0x304f88={'eventID':_0xd3c20c[_0x3f2933(0x2d2)],'liveShareRequestHost':_0xb7394e[_0x3f2933(0x31c)][_0x3f2933(0x31c)]};break;}case _0xd3c20c[_0x3f2933(0x452)]:{_0x304f88={'eventID':_0xd3c20c[_0x3f2933(0x452)]};break;}default:_0x304f88={'eventID':_0xb7394e[_0x3f2933(0x31c)]['eventID']};}return JSON['stringify']({'cmd':_0xb7394e[_0x3f2933(0x4b6)],'routeKey':_0xb7394e['routeKey'],'collaMsg':_0x304f88});}case I[_0x3f2933(0x439)]:return JSON[_0x3f2933(0x2e5)]({'cmd':_0xb7394e[_0x3f2933(0x4b6)],'routeKey':_0xb7394e['routeKey'],'joinReq':_0xb7394e['data']});case I[_0x3f2933(0x3f1)]:return JSON[_0x3f2933(0x2e5)]({'cmd':_0xb7394e['cmd'],'routeKey':_0xb7394e['routeKey'],'leaveReq':_0xb7394e[_0x3f2933(0x31c)]});default:throw new Error(_0x3f2933(0x2be));}}var An=Object[_0x87081d(0x318)],Un=Object[_0x87081d(0x314)],yn=(_0x5b8468,_0x3a6e55,_0x11cc0f,_0x34e6aa)=>{for(var _0x272167=_0x34e6aa>0x1?void 0x0:_0x34e6aa?Un(_0x3a6e55,_0x11cc0f):_0x3a6e55,_0x24fb44=_0x5b8468['length']-0x1,_0x3ac852;_0x24fb44>=0x0;_0x24fb44--)(_0x3ac852=_0x5b8468[_0x24fb44])&&(_0x272167=(_0x34e6aa?_0x3ac852(_0x3a6e55,_0x11cc0f,_0x272167):_0x3ac852(_0x272167))||_0x272167);return _0x34e6aa&&_0x272167&&An(_0x3a6e55,_0x11cc0f,_0x272167),_0x272167;},Te=(_0x27194b,_0xbbce4b)=>(_0x704b29,_0x40758b)=>_0xbbce4b(_0x704b29,_0x40758b,_0x27194b);const Ns=_0x1b08c0(_0x87081d(0x4b0));function Ln(_0x51cbde,_0xaeb4f9,_0xe4ac97){const _0x3466fb=_0x87081d;return _0x51cbde+'/'+_0xaeb4f9+_0x3466fb(0x418)+_0xe4ac97+_0x3466fb(0x3a2);}let vt=class{constructor(_0x5968c8,_0x582f40,_0x474dbe,_0x37a141,_0x5aaa1e){const _0x20be78=_0x87081d;this[_0x20be78(0x4a5)]=_0x5968c8,this[_0x20be78(0x39d)]=_0x582f40,this[_0x20be78(0x252)]=_0x474dbe,this[_0x20be78(0x3e7)]=_0x37a141,this[_0x20be78(0x496)]=_0x5aaa1e;}[_0x87081d(0x4f0)](_0x80edf6){const _0x508a7a=_0x87081d,_0xd99378=this['_ws'][_0x508a7a(0x4f0)](_0x80edf6);if(!_0xd99378)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x39e94d=new _0x173e9c(),_0xab5380=new _0x1ace47();_0x39e94d['add'](_0x3b697b(_0xd99378[_0x508a7a(0x450)][_0x508a7a(0x347)](_0x14ae86=>_0xab5380[_0x508a7a(0x4fe)](_0x14ae86)))),_0x39e94d[_0x508a7a(0x2ac)](_0x3b697b(()=>_0xab5380[_0x508a7a(0x26e)]()));const _0x2eabc6=new _0x1ace47();_0x39e94d[_0x508a7a(0x2ac)](_0x3b697b(_0xd99378[_0x508a7a(0x2a3)][_0x508a7a(0x347)](_0x2f3f4a=>_0x2eabc6[_0x508a7a(0x4fe)](_0x2f3f4a)))),_0x39e94d[_0x508a7a(0x2ac)](_0x3b697b(()=>_0x2eabc6['complete']()));const _0x37c1f9=new _0x1ace47();_0x39e94d[_0x508a7a(0x2ac)](_0x3b697b(_0xd99378['message$'][_0x508a7a(0x347)](_0x3942d6=>{const _0x4e80ac=_0x508a7a,_0x3fbedc=Nn(_0x3942d6);_0x37c1f9[_0x4e80ac(0x4fe)](_0x3fbedc);}))),_0x39e94d[_0x508a7a(0x2ac)](_0x3b697b(()=>_0x37c1f9[_0x508a7a(0x26e)]()));const _0x36dfd8=()=>{const _0x558228=_0x508a7a;_0x2eabc6[_0x558228(0x4fe)](new Event('connection\x20error')),_0xab5380['next'](new CloseEvent(_0x558228(0x39f))),_0x32951d[_0x558228(0x23f)]();},_0x32951d={'memberID':'','close$':_0xab5380[_0x508a7a(0x225)](),'error$':_0x2eabc6[_0x508a7a(0x225)](),'open$':_0xd99378['open$'],'message$':_0x37c1f9['asObservable'](),'send':_0x1e3093=>{const _0x3758ca=_0x508a7a;if(_0x1e3093['cmd']===I[_0x3758ca(0x451)]){if(_0x1e3093[_0x3758ca(0x31c)][_0x3758ca(0x3ba)]===_0xd3c20c[_0x3758ca(0x4e4)]){this[_0x3758ca(0x4e2)](_0x32951d,_0x1e3093['data'])[_0x3758ca(0x475)](_0x2c7473=>{const _0x5bab3b=_0x3758ca;this[_0x5bab3b(0x3e7)][_0x5bab3b(0x289)](_0x2c7473),_0x36dfd8();});return;}if(_0x1e3093[_0x3758ca(0x31c)]['eventID']===_0xd3c20c['FETCH_MISSING']){const _0x1f91ca=_0x1e3093[_0x3758ca(0x31c)];this[_0x3758ca(0x394)](_0x1f91ca)[_0x3758ca(0x39a)](_0x4263fc=>{const _0x41e2db=_0x3758ca;_0x37c1f9[_0x41e2db(0x4fe)]({'cmd':I[_0x41e2db(0x392)],'code':jt['OK'],'routeKey':_0x1f91ca[_0x41e2db(0x31c)]['unitID'],'routeType':'','data':{'eventID':_0xd3c20c[_0x41e2db(0x3f4)],'data':{'changesets':_0x4263fc}}});})[_0x3758ca(0x475)](_0x1410c0=>{const _0x473adf=_0x3758ca;this['_logService'][_0x473adf(0x289)](_0x1410c0),_0x36dfd8();});return;}}_0xd99378['send'](Mn(_0x1e3093));},'close':()=>{const _0x38bffd=_0x508a7a;_0xd99378['close'](),_0x39e94d[_0x38bffd(0x23c)]();}};return _0x32951d;}async[_0x87081d(0x4e2)](_0x507260,_0x5f10e7){const _0x538148=_0x87081d;var _0xbfe1d4;const {unitType:_0x382dd9,unitID:_0x1f4f0c,changeset:_0x4d81f6}=_0x5f10e7[_0x538148(0x31c)],_0x11605b={'unitID':_0x1f4f0c,'memberID':_0x507260[_0x538148(0x2c0)],'type':_0x382dd9,'changeset':_0x265bb6(_0x4d81f6)},_0x8dca0b=Ln((_0xbfe1d4=this[_0x538148(0x252)]['getConfig'](Cn))!=null?_0xbfe1d4:bn,_0x382dd9,_0x1f4f0c);try{await this['_http']['post'](_0x8dca0b,{'body':_0x11605b});}catch(_0x2b4183){throw this['_logService'][_0x538148(0x289)](_0x538148(0x47a),_0x538148(0x422)),_0x2b4183;}}async[_0x87081d(0x394)](_0x3c429e){const _0x3c8f7a=_0x87081d,{unitID:_0x2e8f1d,from:_0x15b47c,to:_0x8bca30,unitType:_0x17c1c1}=_0x3c429e[_0x3c8f7a(0x31c)];return(await this[_0x3c8f7a(0x496)][_0x3c8f7a(0x26f)]({'metadata':void 0x0},{'unitID':_0x2e8f1d,'type':_0x17c1c1,'from':_0x15b47c,'to':_0x8bca30}))[_0x3c8f7a(0x31e)];}};vt=yn([Te(0x0,_0x1b956a(_0x3db34c)),Te(0x1,_0x1b956a(_0x11ce39)),Te(0x2,_0x5d255f),Te(0x3,_0x82a609),Te(0x4,_0x367e30)],vt);class Ms{constructor(){const _0x4628cd=_0x87081d;_(this,_0x4628cd(0x2cd),new _0x1ace47()),_(this,'commentUpdate$',this[_0x4628cd(0x2cd)]['asObservable']());}['onCommentUpdate'](_0x22ffeb){const _0x171b4c=_0x87081d;this['_commentUpdate$'][_0x171b4c(0x4fe)](_0x22ffeb);}}var $n=Object[_0x87081d(0x318)],jn=Object[_0x87081d(0x314)],As=(_0x43e4a7,_0xa0d789,_0x36cec2,_0x11a784)=>{for(var _0x5d0111=_0x11a784>0x1?void 0x0:_0x11a784?jn(_0xa0d789,_0x36cec2):_0xa0d789,_0x46686f=_0x43e4a7['length']-0x1,_0x584539;_0x46686f>=0x0;_0x46686f--)(_0x584539=_0x43e4a7[_0x46686f])&&(_0x5d0111=(_0x11a784?_0x584539(_0xa0d789,_0x36cec2,_0x5d0111):_0x584539(_0x5d0111))||_0x5d0111);return _0x11a784&&_0x5d0111&&$n(_0xa0d789,_0x36cec2,_0x5d0111),_0x5d0111;},A=(_0x3ece62,_0x4d40b4)=>(_0x54367e,_0x3c7439)=>_0x4d40b4(_0x54367e,_0x3c7439,_0x3ece62),fe=(_0x45e489=>(_0x45e489[_0x45e489['IDLE']=0x0]=_0x87081d(0x21c),_0x45e489[_0x45e489[_0x87081d(0x424)]=0x1]=_0x87081d(0x424),_0x45e489[_0x45e489[_0x87081d(0x2c5)]=0x2]=_0x87081d(0x2c5),_0x45e489[_0x45e489['ONLINE']=0x3]=_0x87081d(0x28f),_0x45e489))(fe||{});let It=class extends _0x53ce5a{constructor(_0x397439,_0x53540,_0x2d005d,_0x92351d,_0x1a172a,_0x405dc5,_0x199144,_0x3ef932,_0x43613e){const _0x453cd2=_0x87081d;super(),_(this,'_sessionStatus$',new _0x2561fc(0x0)),_(this,_0x453cd2(0x2f6),this[_0x453cd2(0x20a)][_0x453cd2(0x225)]()),_(this,_0x453cd2(0x437),new _0x1ace47()),_(this,'event$',this[_0x453cd2(0x437)][_0x453cd2(0x225)]()),_(this,'_socket'),_(this,_0x453cd2(0x1c0)),_(this,'_collaborationTimeoutTimer'),(this[_0x453cd2(0x2ad)]=_0x397439,this[_0x453cd2(0x3e7)]=_0x2d005d,this[_0x453cd2(0x460)]=_0x92351d,this['_messageService']=_0x1a172a,this['_configService']=_0x405dc5,this[_0x453cd2(0x45a)]=_0x199144,this[_0x453cd2(0x2e6)]=_0x3ef932,this[_0x453cd2(0x1d5)]=_0x43613e,_0x53540[_0x453cd2(0x3b6)](_0x3e87c2(this[_0x453cd2(0x20e)]))[_0x453cd2(0x347)](_0x1225f0=>{const _0x3e86f5=_0x453cd2;var _0xffb32;typeof _0x1225f0>'u'||(this['_socket']=_0x1225f0,_0x1225f0?(this[_0x3e86f5(0x307)](_0x1225f0),this[_0x3e86f5(0x1c0)]=this[_0x3e86f5(0x305)][_0x3e86f5(0x1bf)][_0x3e86f5(0x347)](_0x497903=>{_0x497903['routeKey']===this['_unitID']&&this['_onCombEvent'](_0x497903);})):(this[_0x3e86f5(0x20a)][_0x3e86f5(0x4fe)](0x2),(_0xffb32=this[_0x3e86f5(0x1c0)])==null||_0xffb32[_0x3e86f5(0x2a8)](),this[_0x3e86f5(0x1c0)]=null));}),this[_0x453cd2(0x343)](this[_0x453cd2(0x460)][_0x453cd2(0x308)](()=>{const _0x4b4c5a=_0x453cd2;var _0x247b87;(_0x247b87=this['_socket'])==null||_0x247b87[_0x4b4c5a(0x253)]({'cmd':I[_0x4b4c5a(0x3f1)],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0x362f90=_0x87081d;return this[_0x362f90(0x20a)][_0x362f90(0x275)]();}[_0x87081d(0x241)](){const _0x4087f5=_0x87081d;var _0x246192,_0x38bc0c;return(_0x38bc0c=(_0x246192=this[_0x4087f5(0x305)])==null?void 0x0:_0x246192['memberID'])!=null?_0x38bc0c:null;}[_0x87081d(0x23c)](){const _0x5ac9b3=_0x87081d;super['dispose'](),this[_0x5ac9b3(0x20e)][_0x5ac9b3(0x4fe)](),this[_0x5ac9b3(0x20e)][_0x5ac9b3(0x26e)]();}[_0x87081d(0x23f)](){const _0x5d795d=_0x87081d;var _0x5c7790,_0x5f4a5e;(_0x5c7790=this['_socket'])==null||_0x5c7790['send']({'cmd':I[_0x5d795d(0x3f1)],'data':{'roomID':this[_0x5d795d(0x2ad)]}}),this[_0x5d795d(0x437)][_0x5d795d(0x26e)](),this['_sessionStatus$'][_0x5d795d(0x26e)](),(_0x5f4a5e=this[_0x5d795d(0x305)])==null||_0x5f4a5e['close'](),this[_0x5d795d(0x23c)]();}[_0x87081d(0x477)](_0x5b2c3f){const _0x1d21da=_0x87081d;_0x5b2c3f[_0x1d21da(0x4b6)]===I[_0x1d21da(0x439)]?this[_0x1d21da(0x2b4)](_0x5b2c3f):_0x5b2c3f['cmd']===I[_0x1d21da(0x392)]&&this[_0x1d21da(0x4b1)](_0x5b2c3f);}[_0x87081d(0x307)](_0x3afa1e){const _0x509987=_0x87081d;this[_0x509987(0x20a)][_0x509987(0x4fe)](0x1),_0x3afa1e[_0x509987(0x253)]({'cmd':I[_0x509987(0x439)],'routeKey':this[_0x509987(0x2ad)],'routeType':'','data':{'rooms':[{'roomID':this[_0x509987(0x2ad)]}]}});}[_0x87081d(0x2b4)](_0x516f45){const _0x4b982f=_0x87081d;var _0x246e94;if(_0x516f45[_0x4b982f(0x1a7)]===jt['FAIL']){this[_0x4b982f(0x243)][_0x4b982f(0x410)]({'type':_0x4dda16[_0x4b982f(0x3b0)],'content':this[_0x4b982f(0x45a)]['t']('session.room-full')}),this[_0x4b982f(0x20a)][_0x4b982f(0x4fe)](0x2);return;}this[_0x4b982f(0x20a)][_0x4b982f(0x4fe)](0x3);const _0x54cec3=(_0x246e94=_0x516f45['data']['roomInfos'][this[_0x4b982f(0x2ad)]])==null?void 0x0:_0x246e94[_0x4b982f(0x414)];_0x54cec3&&_0x54cec3[_0x4b982f(0x1c8)](_0x31045f=>this['_memberService']['updateMember'](this['_unitID'],_0x31045f));}[_0x87081d(0x4b1)](_0x4f5308){const _0x2a062b=_0x87081d;try{const _0x545a4d=_0x4f5308[_0x2a062b(0x31c)];switch(_0x545a4d[_0x2a062b(0x3ba)]){case _0xd3c20c[_0x2a062b(0x40e)]:this[_0x2a062b(0x478)](_0x545a4d),this[_0x2a062b(0x437)][_0x2a062b(0x4fe)](_0x545a4d);break;case _0xd3c20c['USERS_LEAVE']:this[_0x2a062b(0x2a5)](_0x545a4d),this[_0x2a062b(0x437)]['next'](_0x545a4d);break;case _0xd3c20c['CHANGESET_ACK']:this[_0x2a062b(0x230)](),this[_0x2a062b(0x437)][_0x2a062b(0x4fe)](_0x545a4d);break;case _0xd3c20c[_0x2a062b(0x213)]:this[_0x2a062b(0x3e7)][_0x2a062b(0x289)](_0x2a062b(0x2c6)+JSON[_0x2a062b(0x2e5)](_0x545a4d)),this[_0x2a062b(0x437)][_0x2a062b(0x4fe)](_0x545a4d);break;case _0xd3c20c[_0x2a062b(0x1de)]:this[_0x2a062b(0x1d5)][_0x2a062b(0x346)](_0x545a4d[_0x2a062b(0x31c)]),this[_0x2a062b(0x437)][_0x2a062b(0x4fe)](_0x545a4d);break;default:this[_0x2a062b(0x437)][_0x2a062b(0x4fe)](_0x545a4d);}}catch(_0x1c21e9){this['_logService'][_0x2a062b(0x289)](_0x1c21e9,_0x4f5308);}}[_0x87081d(0x478)](_0x26c6ac){const _0x49836f=_0x87081d;this[_0x49836f(0x2e6)]['updateMember'](this[_0x49836f(0x2ad)],_0x26c6ac[_0x49836f(0x31c)]);}[_0x87081d(0x2a5)](_0x221093){const _0x4ec162=_0x87081d;this[_0x4ec162(0x2e6)][_0x4ec162(0x434)](this['_unitID'],_0x221093[_0x4ec162(0x31c)][_0x4ec162(0x2c0)]);}async['send'](_0xf607e8,_0x5258b6){const _0x14576b=_0x87081d;if(this[_0x14576b(0x2d6)]!==0x3||!this[_0x14576b(0x305)])throw new Error(_0x14576b(0x1d8));try{_0xf607e8[_0x14576b(0x3ba)]===_0xd3c20c[_0x14576b(0x416)]&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x14576b(0x305)]['send']({'cmd':I['INGEST'],'routeKey':_0x5258b6,'routeType':'','data':_0xf607e8});}catch(_0x4c505f){this[_0x14576b(0x3e7)][_0x14576b(0x289)](_0x4c505f);}}['_scheduleCollaborationTimeoutTimer'](){const _0x43af71=_0x87081d;var _0x1c7853;this[_0x43af71(0x372)]=window[_0x43af71(0x3a7)](()=>{const _0x2f8de5=_0x43af71;this[_0x2f8de5(0x372)]=null,this[_0x2f8de5(0x243)]['show']({'type':_0x4dda16[_0x2f8de5(0x500)],'content':this['_localeService']['t'](_0x2f8de5(0x36d))});},(_0x1c7853=this[_0x43af71(0x252)][_0x43af71(0x38a)](Os))!=null?_0x1c7853:Ds);}['_clearCollaborationTimeoutTimer'](){const _0x30fbca=_0x87081d;this[_0x30fbca(0x372)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x30fbca(0x372)]=null);}};It=As([A(0x2,_0x82a609),A(0x3,_0x276384),A(0x4,_0x14fd53),A(0x5,_0x5d255f),A(0x6,_0x1b956a(_0x2db4b8)),A(0x7,_0x1b956a(ne)),A(0x8,_0x1b956a(Ms))],It);let pe=class extends _0x1ee863{constructor(_0x239418,_0x501a1d,_0x1f20f1,_0x57aebd,_0x437d2e,_0x13657b){const _0x43ecb7=_0x87081d;super(),_(this,_0x43ecb7(0x4b3),new _0x2561fc(void 0x0)),_(this,_0x43ecb7(0x21e),new Map()),_(this,_0x43ecb7(0x4e3),new _0x2561fc(0x0)),_(this,_0x43ecb7(0x33a),this['_status$'][_0x43ecb7(0x225)]()),_(this,'_socketReady',!0x1),_(this,_0x43ecb7(0x46f)),_(this,_0x43ecb7(0x3d6)),_(this,_0x43ecb7(0x4bc)),_(this,_0x43ecb7(0x1e2),0x0),(this[_0x43ecb7(0x440)]=_0x239418,this[_0x43ecb7(0x45a)]=_0x501a1d,this[_0x43ecb7(0x243)]=_0x1f20f1,this[_0x43ecb7(0x3e7)]=_0x57aebd,this[_0x43ecb7(0x252)]=_0x437d2e,this[_0x43ecb7(0x28c)]=_0x13657b);}get[_0x87081d(0x305)](){const _0x5cbc15=_0x87081d;return this['_socket$'][_0x5cbc15(0x275)]();}[_0x87081d(0x23c)](){const _0x154dad=_0x87081d;super['dispose'](),this['_sessions']['forEach'](_0x576455=>_0x576455[_0x154dad(0x23c)]()),this[_0x154dad(0x21e)][_0x154dad(0x291)](),this[_0x154dad(0x4e3)][_0x154dad(0x26e)]();}async[_0x87081d(0x316)](_0x480211){const _0x5bffc2=_0x87081d;if(this['_sessions'][_0x5bffc2(0x382)](_0x480211))return this['_sessions']['get'](_0x480211);this[_0x5bffc2(0x262)]();const _0x821bcc=this[_0x5bffc2(0x440)][_0x5bffc2(0x427)](It,_0x480211,this[_0x5bffc2(0x4b3)][_0x5bffc2(0x225)]());return this[_0x5bffc2(0x21e)][_0x5bffc2(0x4af)](_0x480211,_0x821bcc),_0x821bcc;}[_0x87081d(0x4b2)](_0x56dbdb){const _0x224aa4=_0x87081d;var _0x5efeee;const _0x1ad966=this[_0x224aa4(0x21e)][_0x224aa4(0x1e9)](_0x56dbdb);_0x1ad966&&(this['_sessions']['delete'](_0x56dbdb),_0x1ad966[_0x224aa4(0x23f)]()),this['_sessions']['size']||(_0x5efeee=this[_0x224aa4(0x305)])==null||_0x5efeee['close']();}['_createSocket'](){const _0x31b450=_0x87081d;var _0x4f7876;const _0x1d8411=(_0x4f7876=this[_0x31b450(0x252)][_0x31b450(0x38a)](un))!=null?_0x4f7876:dn;return this[_0x31b450(0x28c)]['createSocket'](_0x1d8411);}[_0x87081d(0x262)](){const _0x12f0f8=_0x87081d;try{const _0x56588d=this[_0x12f0f8(0x393)]();if(_0x56588d){const _0x21138f=_0x56588d['send'];_0x56588d[_0x12f0f8(0x253)]=_0x37a9b3=>(this[_0x12f0f8(0x268)](),_0x21138f[_0x12f0f8(0x34b)](_0x56588d,[_0x37a9b3])),_0x56588d[_0x12f0f8(0x1bf)][_0x12f0f8(0x347)](_0x41f52d=>this[_0x12f0f8(0x4bd)](_0x56588d,_0x41f52d)),_0x56588d[_0x12f0f8(0x2a3)][_0x12f0f8(0x3b6)](_0x56d486(0x1))[_0x12f0f8(0x347)](_0x1043f8=>this['_logService'][_0x12f0f8(0x289)](_0x12f0f8(0x4c6),_0x1043f8)),_0x56588d[_0x12f0f8(0x27f)]['pipe'](_0x56d486(0x1))['subscribe'](()=>{const _0x1a6905=_0x12f0f8;this[_0x1a6905(0x3c9)](_0x56588d);}),_0x56588d[_0x12f0f8(0x450)]['pipe'](_0x56d486(0x1))[_0x12f0f8(0x347)](_0x2c0e94=>{const _0xc821a3=_0x12f0f8;this[_0xc821a3(0x3e7)][_0xc821a3(0x4d5)](_0xc821a3(0x35a),_0xc821a3(0x1ff),_0x2c0e94),this[_0xc821a3(0x3c6)]();});}}catch(_0x12bc10){this[_0x12f0f8(0x3e7)]['error'](_0x12bc10),this[_0x12f0f8(0x3c6)]();}}[_0x87081d(0x3c9)](_0x1d09b3){const _0x4c16e3=_0x87081d;this[_0x4c16e3(0x3e7)][_0x4c16e3(0x4d5)](_0x4c16e3(0x35a),_0x4c16e3(0x443)),_0x1d09b3[_0x4c16e3(0x253)]({'cmd':I[_0x4c16e3(0x22a)]}),this[_0x4c16e3(0x268)]();}[_0x87081d(0x3c6)](){const _0x24f345=_0x87081d;var _0x2ec8b9;this[_0x24f345(0x4e3)][_0x24f345(0x4fe)](0x2),this[_0x24f345(0x4b3)][_0x24f345(0x4fe)](null),this[_0x24f345(0x26c)](),this[_0x24f345(0x39c)](),this[_0x24f345(0x448)]=!0x1,this[_0x24f345(0x1e2)]<((_0x2ec8b9=this[_0x24f345(0x252)]['getConfig'](pn))!=null?_0x2ec8b9:vn)?(this['_scheduleReconnection'](this['_retryCount']),this[_0x24f345(0x1e2)]+=0x1):this['_messageService'][_0x24f345(0x410)]({'type':_0x4dda16[_0x24f345(0x500)],'content':this[_0x24f345(0x45a)]['t'](_0x24f345(0x286))});}[_0x87081d(0x293)](_0x112ab2){const _0x3e2aad=_0x87081d;var _0x15a1cb;const _0x1ef44d=((_0x15a1cb=this[_0x3e2aad(0x252)][_0x3e2aad(0x38a)](gn))!=null?_0x15a1cb:Sn)*0x2**_0x112ab2;this['_messageService'][_0x3e2aad(0x410)]({'type':_0x4dda16['Warning'],'content':this[_0x3e2aad(0x45a)]['t'](_0x3e2aad(0x2c3))}),this[_0x3e2aad(0x4bc)]=setTimeout(()=>{const _0xf7d7cf=_0x3e2aad;this[_0xf7d7cf(0x262)](),clearTimeout(this[_0xf7d7cf(0x4bc)]),this['_retryConnectingTimer']=null;},_0x1ef44d);}['_rescheduleHeartbeatEvent'](){const _0x35685c=_0x87081d;var _0x320afb;this[_0x35685c(0x39c)](),this[_0x35685c(0x46f)]=setTimeout(()=>this['_sendHeartbeat'](),(_0x320afb=this['_configService'][_0x35685c(0x38a)](mn))!=null?_0x320afb:fn);}[_0x87081d(0x388)](){const _0x5ec673=_0x87081d;this[_0x5ec673(0x305)][_0x5ec673(0x253)]({'cmd':I[_0x5ec673(0x339)]}),this[_0x5ec673(0x353)]();}[_0x87081d(0x353)](){const _0x5b54e8=_0x87081d;var _0x35143;this[_0x5b54e8(0x3d6)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x35143=this[_0x5b54e8(0x252)]['getConfig'](Os))!=null?_0x35143:Ds);}['_onMessage'](_0x3ba68f,_0x4cafc2){const _0x2d2f76=_0x87081d,{cmd:_0x18f943}=_0x4cafc2;_0x18f943===I[_0x2d2f76(0x22a)]&&!this[_0x2d2f76(0x448)]&&(_0x3ba68f[_0x2d2f76(0x2c0)]=_0x4cafc2[_0x2d2f76(0x31c)][_0x2d2f76(0x2c0)],this[_0x2d2f76(0x4b3)][_0x2d2f76(0x4fe)](_0x3ba68f),this[_0x2d2f76(0x4e3)]['next'](0x3),this[_0x2d2f76(0x448)]=!0x0),_0x18f943===I['HEARTBEAT']&&this[_0x2d2f76(0x26c)](),this[_0x2d2f76(0x268)]();}[_0x87081d(0x39c)](){const _0x1c0536=_0x87081d;this[_0x1c0536(0x46f)]!=null&&(clearTimeout(this[_0x1c0536(0x46f)]),this[_0x1c0536(0x46f)]=null);}[_0x87081d(0x26c)](){const _0x6dc4a3=_0x87081d;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x6dc4a3(0x3d6)]),this[_0x6dc4a3(0x3d6)]=null);}};pe=As([A(0x0,_0x1b956a(_0x4bf6fc)),A(0x1,_0x1b956a(_0x2db4b8)),A(0x2,_0x14fd53),A(0x3,_0x82a609),A(0x4,_0x5d255f),A(0x5,Ns)],pe);var xn=Object['defineProperty'],Hn=Object['getOwnPropertyDescriptor'],kn=(_0x3907da,_0x36a9b6,_0x2b3dcb,_0x5cc111)=>{for(var _0x18f441=_0x5cc111>0x1?void 0x0:_0x5cc111?Hn(_0x36a9b6,_0x2b3dcb):_0x36a9b6,_0x3af6b7=_0x3907da['length']-0x1,_0x5b4aa7;_0x3af6b7>=0x0;_0x3af6b7--)(_0x5b4aa7=_0x3907da[_0x3af6b7])&&(_0x18f441=(_0x5cc111?_0x5b4aa7(_0x36a9b6,_0x2b3dcb,_0x18f441):_0x5b4aa7(_0x18f441))||_0x18f441);return _0x5cc111&&_0x18f441&&xn(_0x36a9b6,_0x2b3dcb,_0x18f441),_0x18f441;},Oe=(_0x5eb919,_0xb2bca0)=>(_0x5ac118,_0x311c7b)=>_0xb2bca0(_0x5ac118,_0x311c7b,_0x5eb919);let D=class extends _0x1ee863{constructor(_0x16631a,_0x2f19dc,_0x1424d0,_0x58e2aa,_0x486e3d){const _0xeb941b=_0x87081d;super(),_(this,_0xeb941b(0x35e),new Map()),_(this,_0xeb941b(0x2e1),new Map()),_(this,'_disabled',!0x1),(this[_0xeb941b(0x252)]=_0x16631a,this[_0xeb941b(0x490)]=_0x2f19dc,this[_0xeb941b(0x460)]=_0x1424d0,this[_0xeb941b(0x45a)]=_0x58e2aa,this['_revisionService']=_0x486e3d,this[_0xeb941b(0x47d)]());}['disableLocalCache'](){const _0x1a79f5=_0x87081d;this[_0x1a79f5(0x317)]=!0x0;}[_0x87081d(0x222)](){const _0x2d381f=_0x87081d;this[_0x2d381f(0x317)]=!0x1;}[_0x87081d(0x23c)](){const _0x524924=_0x87081d;this[_0x524924(0x218)]()[_0x524924(0x39a)](()=>super['dispose']());}async[_0x87081d(0x1d9)](_0x552a31){const _0xf2b3=_0x87081d;return this[_0xf2b3(0x317)]?null:this[_0xf2b3(0x490)][_0xf2b3(0x459)](es(_0x552a31));}async[_0x87081d(0x3c8)](_0x1e356d,_0x167ecb){const _0x496a9a=_0x87081d;return!!this[_0x496a9a(0x490)]['setItem'](_0x1e356d,_0x167ecb);}[_0x87081d(0x23a)](_0x35161b,_0x72ae2e,_0x73d3f,_0x3d8a6d){const _0x1a0e5c=_0x87081d,_0x259243=this[_0x1a0e5c(0x4fa)][_0x1a0e5c(0x27c)](_0x35161b);this[_0x1a0e5c(0x35e)]['set'](_0x35161b,{'unitID':_0x35161b,'type':_0x72ae2e,'awaitingChangeset':_0x73d3f,'mutations':_0x3d8a6d,'rev':_0x259243}),this[_0x1a0e5c(0x2e1)][_0x1a0e5c(0x382)](_0x35161b)||this[_0x1a0e5c(0x2af)](_0x35161b);}['_scheduleSaving'](_0x12b22d){const _0x3a9bf5=_0x87081d,_0x40ee85=this['_getSaveTimeout']();_0x40ee85===0x0?this['_saveCache'](_0x12b22d):this[_0x3a9bf5(0x2e1)][_0x3a9bf5(0x4af)](_0x12b22d,setTimeout(()=>this[_0x3a9bf5(0x385)](_0x12b22d),_0x40ee85));}[_0x87081d(0x4ca)](){var _0xe31efc;return(_0xe31efc=this['_configService']['getConfig'](In))!=null?_0xe31efc:En;}['_saveCache'](_0x23094c){const _0x4cfdef=_0x87081d,_0x4ed9aa=this[_0x4cfdef(0x2e1)][_0x4cfdef(0x1e9)](_0x23094c);return _0x4ed9aa!==void 0x0&&window[_0x4cfdef(0x246)](_0x4ed9aa),this[_0x4cfdef(0x490)][_0x4cfdef(0x390)](es(_0x23094c),this[_0x4cfdef(0x35e)][_0x4cfdef(0x1e9)](_0x23094c))[_0x4cfdef(0x39a)](()=>this['_saveTaskMap']['delete'](_0x23094c));}async['exhaustSavingTask'](){const _0x5234fe=_0x87081d,_0x2ea257=[];this[_0x5234fe(0x2e1)]['forEach']((_0x326ad6,_0x59b340)=>{const _0x35e17e=_0x5234fe;window[_0x35e17e(0x246)](_0x326ad6),_0x2ea257[_0x35e17e(0x1ab)](this['_saveCache'](_0x59b340)['then'](()=>{this['_saveTaskMap']['delete'](_0x59b340);}));}),await Promise['all'](_0x2ea257);}['_setupBeforeClosingHandler'](){const _0x33fb58=_0x87081d;this['disposeWithMe'](this[_0x33fb58(0x460)][_0x33fb58(0x36a)](()=>{const _0x1ec62b=_0x33fb58;if(this['_saveTaskMap'][_0x1ec62b(0x25e)])return this[_0x1ec62b(0x45a)]['t'](_0x1ec62b(0x42b));}));}};D=kn([Oe(0x0,_0x5d255f),Oe(0x1,_0x4b5ce8),Oe(0x2,_0x276384),Oe(0x3,_0x1b956a(_0x2db4b8)),Oe(0x4,_0x1b956a(_0xa786bc))],D);function es(_0x3de11b){const _0x552ef4=_0x87081d;return _0x552ef4(0x329)+_0x3de11b;}const tt=_0x1b08c0('univer-pro.collaboration-client.single-active-unit-service');var Us=(_0x1d2197=>(_0x1d2197[_0x1d2197[_0x87081d(0x4c0)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x1d2197[_0x1d2197[_0x87081d(0x472)]=0x1]='OTHER_CLIENTS_EDITING',_0x1d2197))(Us||{});const ts=0x7530,ss=_0x87081d(0x1b8);class Vn extends _0x1ee863{constructor(){const _0x5e483d=_0x87081d;super(),_(this,_0x5e483d(0x356),_0x1540f0[_0x5e483d(0x2b1)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x5e483d(0x31d),new Map()),_(this,'_heartbeatTimer',null),_(this,_0x5e483d(0x23e),new Map()),_(this,_0x5e483d(0x470),new Map()),this[_0x5e483d(0x4fd)]();}[_0x87081d(0x23c)](){const _0x2d0735=_0x87081d;super['dispose'](),this[_0x2d0735(0x23e)]['forEach']((_0x5b1b61,_0x45134b)=>this['_removeClearOtherTimer'](_0x45134b)),this[_0x2d0735(0x3cd)]&&window[_0x2d0735(0x2c4)](this['_heartbeatTimer']);}[_0x87081d(0x3d8)](_0x35be89){const _0x107b6b=_0x87081d;return this[_0x107b6b(0x303)](_0x35be89)[_0x107b6b(0x3b6)](_0x1980f0());}[_0x87081d(0x4a3)](_0xc1ef1e){const _0x3978a1=_0x87081d;this[_0x3978a1(0x46b)][_0x3978a1(0x25e)]===0x0&&this[_0x3978a1(0x465)](),this[_0x3978a1(0x46b)][_0x3978a1(0x2ac)](_0xc1ef1e),this[_0x3978a1(0x3f0)]({'type':0x0,'memberID':this[_0x3978a1(0x356)],'unitIDs':[_0xc1ef1e],'isForwarded':!0x1});}[_0x87081d(0x32a)](_0x273ffe){const _0x18687f=_0x87081d;this[_0x18687f(0x46b)][_0x18687f(0x3c7)](_0x273ffe),this[_0x18687f(0x46b)][_0x18687f(0x25e)]===0x0&&this[_0x18687f(0x3cd)]&&window[_0x18687f(0x2c4)](this[_0x18687f(0x3cd)]);}[_0x87081d(0x4fd)](){const _0x1bf2a8=_0x87081d;this[_0x1bf2a8(0x343)](_0x3b697b(_0x28ccd8(window,_0x1bf2a8(0x214))[_0x1bf2a8(0x347)](_0x3c2a48=>{const _0x108c7f=_0x1bf2a8;if(_0x3c2a48[_0x108c7f(0x21d)]!==ss||!_0x3c2a48['newValue'])return;const _0x2d0ebe=JSON['parse'](_0x3c2a48[_0x108c7f(0x400)]);this[_0x108c7f(0x237)](_0x2d0ebe);}))),window[_0x1bf2a8(0x2ee)]('unload',()=>this[_0x1bf2a8(0x3f0)]({'type':0x1,'memberID':this[_0x1bf2a8(0x356)],'unitIDs':Array[_0x1bf2a8(0x1fc)](this[_0x1bf2a8(0x46b)])}));}[_0x87081d(0x237)](_0x580151){const _0x5568df=_0x87081d;switch(_0x580151[_0x5568df(0x47c)]){case 0x0:this[_0x5568df(0x2bc)](_0x580151);break;case 0x1:this[_0x5568df(0x4e9)](_0x580151);break;case 0x2:this['_handleHeartbeatEvent'](_0x580151);break;}}['_handleJoinEvent'](_0x1792d2){const _0x46406b=_0x87081d,{unitIDs:_0x400420,memberID:_0x142658,isForwarded:_0x13967d}=_0x1792d2;_0x400420[_0x46406b(0x1c8)](_0x28a7a8=>{const _0x2a58ee=_0x46406b;if(!_0x13967d&&this[_0x2a58ee(0x31d)]['has'](_0x28a7a8)&&this['_ensureSubject'](_0x28a7a8)[_0x2a58ee(0x4fe)](0x1),!this[_0x2a58ee(0x31d)][_0x2a58ee(0x382)](_0x28a7a8)||!this['_unitOnClients'][_0x2a58ee(0x1e9)](_0x28a7a8)[_0x2a58ee(0x382)](_0x142658)){const _0x45e3f6=this[_0x2a58ee(0x31d)][_0x2a58ee(0x1e9)](_0x28a7a8)||new Set();_0x45e3f6[_0x2a58ee(0x2ac)](_0x142658),this[_0x2a58ee(0x31d)][_0x2a58ee(0x4af)](_0x28a7a8,_0x45e3f6),this[_0x2a58ee(0x283)](_0x142658);}}),_0x13967d||this[_0x46406b(0x3f0)]({'type':0x0,'memberID':this[_0x46406b(0x356)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x87081d(0x283)](_0x14ebde){const _0x52fb4f=_0x87081d;this[_0x52fb4f(0x3b8)](_0x14ebde);const _0x2ebc37=window[_0x52fb4f(0x3a7)](()=>{const _0x6ec7d4=_0x52fb4f;this[_0x6ec7d4(0x31d)][_0x6ec7d4(0x1c8)](_0x2d723b=>{_0x2d723b['delete'](_0x14ebde);});},ts*0x2);this[_0x52fb4f(0x23e)][_0x52fb4f(0x4af)](_0x14ebde,_0x2ebc37);}[_0x87081d(0x3b8)](_0x4e50b4){const _0x4de5d8=_0x87081d;if(this[_0x4de5d8(0x23e)][_0x4de5d8(0x382)](_0x4e50b4)){const _0x438264=this[_0x4de5d8(0x23e)][_0x4de5d8(0x1e9)](_0x4e50b4);_0x438264&&window[_0x4de5d8(0x246)](_0x438264),this[_0x4de5d8(0x23e)][_0x4de5d8(0x4af)](_0x4e50b4,null);}}[_0x87081d(0x4e9)](_0x8c134d){const _0x466c62=_0x87081d,{memberID:_0x2a10d8,unitIDs:_0x53a815}=_0x8c134d;_0x53a815[_0x466c62(0x1c8)](_0xa5978=>{const _0x236dba=_0x466c62;var _0x2aca41;const _0x39ca97=this[_0x236dba(0x31d)][_0x236dba(0x1e9)](_0xa5978);_0x39ca97&&(_0x39ca97[_0x236dba(0x3c7)](_0x2a10d8),(_0x2aca41=this[_0x236dba(0x303)](_0xa5978))==null||_0x2aca41['next'](_0x39ca97[_0x236dba(0x25e)]===0x0?0x0:0x1));}),this[_0x466c62(0x3b8)](_0x2a10d8);}['_handleHeartbeatEvent'](_0x345828){const _0x30b940=_0x87081d;this[_0x30b940(0x283)](_0x345828[_0x30b940(0x2c0)]);}[_0x87081d(0x3f0)](_0x5b33f1){const _0x227f72=_0x87081d;localStorage[_0x227f72(0x390)](ss,JSON[_0x227f72(0x2e5)](_0x5b33f1));}[_0x87081d(0x465)](){const _0x118bb2=_0x87081d;this[_0x118bb2(0x3cd)]=window[_0x118bb2(0x48a)](()=>{const _0x5655db=_0x118bb2;this[_0x5655db(0x3f0)]({'type':0x2,'memberID':this['_id']});},ts);}[_0x87081d(0x303)](_0x6360fe){const _0x55c48e=_0x87081d;return this[_0x55c48e(0x470)][_0x55c48e(0x382)](_0x6360fe)||this[_0x55c48e(0x470)][_0x55c48e(0x4af)](_0x6360fe,new _0x2561fc(0x0)),this[_0x55c48e(0x470)][_0x55c48e(0x1e9)](_0x6360fe);}}var Bn=Object[_0x87081d(0x318)],Fn=Object['getOwnPropertyDescriptor'],Wn=(_0x351ac8,_0x23ac4a,_0x5c634e,_0x5a11e7)=>{const _0x11a528=_0x87081d;for(var _0x53f00c=_0x5a11e7>0x1?void 0x0:_0x5a11e7?Fn(_0x23ac4a,_0x5c634e):_0x23ac4a,_0x1ac95d=_0x351ac8[_0x11a528(0x46a)]-0x1,_0x4e103c;_0x1ac95d>=0x0;_0x1ac95d--)(_0x4e103c=_0x351ac8[_0x1ac95d])&&(_0x53f00c=(_0x5a11e7?_0x4e103c(_0x23ac4a,_0x5c634e,_0x53f00c):_0x4e103c(_0x53f00c))||_0x53f00c);return _0x5a11e7&&_0x53f00c&&Bn(_0x23ac4a,_0x5c634e,_0x53f00c),_0x53f00c;},is=(_0x83509e,_0x302cd8)=>(_0x339e5e,_0x1d6184)=>_0x302cd8(_0x339e5e,_0x1d6184,_0x83509e);let Je=class{constructor(_0x8e516b,_0x34b2de){const _0x3b1e4e=_0x87081d;this[_0x3b1e4e(0x440)]=_0x8e516b,this['_transformService']=_0x34b2de;}['transformIMECache'](_0x41e22){const _0x1e88f0=_0x87081d;this[_0x1e88f0(0x299)](_0x41e22),this[_0x1e88f0(0x411)](_0x41e22);}[_0x87081d(0x31f)](_0x329131){const _0x204bb2=_0x87081d,_0x27b560=this['_injector'][_0x204bb2(0x1e9)](_0x34b802),{redoCache:_0x908ce7}=_0x27b560[_0x204bb2(0x368)]();if(_0x908ce7[_0x204bb2(0x46a)]===0x0)return _0x329131;let _0x4ce157=_0x1540f0[_0x204bb2(0x2d0)](_0x329131['mutations'][0x0]);for(let _0x35d9a2=0x0;_0x35d9a2<_0x908ce7['length'];_0x35d9a2++){const _0x5118d9={'id':_0x204bb2(0x2a0),'params':{..._0x908ce7[_0x35d9a2]}},_0x45d17b=this[_0x204bb2(0x290)][_0x204bb2(0x47f)](_0x4ce157,_0x5118d9,!0x1);if(_0x364f8f(_0x45d17b))throw _0x45d17b['error'];_0x4ce157=_0x45d17b['m1Prime'];}return{..._0x1540f0['deepClone'](_0x329131),'mutations':[_0x4ce157]};}['_transformUndoRedoStack'](_0x1d7671){const _0x5e2fba=_0x87081d,_0x3d3ed1=this['_injector']['get'](_0x34b802),{undoCache:_0x3ea250,redoCache:_0x2e97eb}=_0x3d3ed1[_0x5e2fba(0x368)]();if(_0x3ea250[_0x5e2fba(0x46a)]===0x0||_0x2e97eb[_0x5e2fba(0x46a)]===0x0)return;const _0x591edd=[],_0x58cf0b=[];let _0x802142=_0x1540f0[_0x5e2fba(0x2d0)](_0x1d7671['mutations'][0x0]),_0x50d2ef=_0x1540f0[_0x5e2fba(0x2d0)](_0x1d7671[_0x5e2fba(0x41e)][0x0]);for(let _0x2ed8d2=_0x3ea250[_0x5e2fba(0x46a)]-0x1;_0x2ed8d2>=0x0;_0x2ed8d2--){const _0x1f18e5={'id':_0x5e2fba(0x2a0),'params':{..._0x3ea250[_0x2ed8d2]}},_0x1bd5e8={'id':'doc.mutation.rich-text-editing','params':{..._0x2e97eb[_0x2ed8d2]}},_0x18e37a=this[_0x5e2fba(0x290)][_0x5e2fba(0x47f)](_0x802142,_0x1f18e5,!0x1),_0x1fb1a7=this[_0x5e2fba(0x290)][_0x5e2fba(0x47f)](_0x50d2ef,_0x1bd5e8,!0x1);if(_0x364f8f(_0x18e37a))throw _0x18e37a[_0x5e2fba(0x289)];if(_0x364f8f(_0x1fb1a7))throw _0x1fb1a7[_0x5e2fba(0x289)];_0x591edd[_0x5e2fba(0x377)](_0x18e37a[_0x5e2fba(0x36f)][_0x5e2fba(0x428)]),_0x58cf0b[_0x5e2fba(0x377)](_0x1fb1a7['m2Prime'][_0x5e2fba(0x428)]),_0x802142=_0x18e37a[_0x5e2fba(0x449)],_0x50d2ef=_0x1fb1a7['m1Prime'];}_0x3d3ed1[_0x5e2fba(0x1cd)]({'undoCache':_0x591edd,'redoCache':_0x58cf0b});}[_0x87081d(0x411)](_0x25a86d){const _0x2c3131=_0x87081d,_0x5397c0=this['_injector']['get'](_0x34b802),_0x5bdc8b=_0x5397c0[_0x2c3131(0x207)]();if(_0x5bdc8b==null)return;const _0x2c8fd5=[{'id':_0x2c3131(0x2a0),'params':{'unitId':_0x25a86d[_0x2c3131(0x3a8)],'actions':null,'textRanges':[_0x5bdc8b]}}],_0x13f958=this[_0x2c3131(0x290)][_0x2c3131(0x43b)](_0x25a86d,_0x2c8fd5);if(!_0x522a4(_0x13f958))throw _0x13f958['error'];const _0x123707=_0x13f958[_0x2c3131(0x36f)][0x0][_0x2c3131(0x428)]['textRanges'];Array[_0x2c3131(0x2d5)](_0x123707)&&_0x123707[_0x2c3131(0x46a)]&&_0x5397c0[_0x2c3131(0x2b3)](_0x123707[0x0]);}};Je=Wn([is(0x0,_0x1b956a(_0x4bf6fc)),is(0x1,_0x4e495a)],Je);var Gn=Object['defineProperty'],Yn=Object[_0x87081d(0x314)],Kn=(_0x497b98,_0x2262f2,_0x4a722a,_0x4052a9)=>{const _0x5316b5=_0x87081d;for(var _0x20f6f6=_0x4052a9>0x1?void 0x0:_0x4052a9?Yn(_0x2262f2,_0x4a722a):_0x2262f2,_0x5ef130=_0x497b98[_0x5316b5(0x46a)]-0x1,_0x2316f2;_0x5ef130>=0x0;_0x5ef130--)(_0x2316f2=_0x497b98[_0x5ef130])&&(_0x20f6f6=(_0x4052a9?_0x2316f2(_0x2262f2,_0x4a722a,_0x20f6f6):_0x2316f2(_0x20f6f6))||_0x20f6f6);return _0x4052a9&&_0x20f6f6&&Gn(_0x2262f2,_0x4a722a,_0x20f6f6),_0x20f6f6;},ns=(_0x4567eb,_0xd31eb4)=>(_0x22ba32,_0x183f03)=>_0xd31eb4(_0x22ba32,_0x183f03,_0x4567eb);let ze=class{constructor(_0x3b2a66,_0x133702){const _0x4a0504=_0x87081d;this[_0x4a0504(0x440)]=_0x3b2a66,this[_0x4a0504(0x290)]=_0x133702;}[_0x87081d(0x1b1)](_0x1a39c2){const _0x192227=_0x87081d;var _0x5705e7;const _0xf95fa8=this[_0x192227(0x440)][_0x192227(0x1e9)](_0x188da2),_0x4f786f=(_0x5705e7=_0xf95fa8[_0x192227(0x453)]())!=null?_0x5705e7:[],_0x4d0e90=_0x4f786f==null?void 0x0:_0x4f786f[_0x192227(0x234)](_0x249015);if(_0x4d0e90[_0x192227(0x46a)]===0x0)return;const _0x101cbe=[{'id':_0x192227(0x2a0),'params':{'unitId':_0x1a39c2['unitID'],'actions':null,'textRanges':_0x4d0e90}}],_0x1849a0=this[_0x192227(0x290)][_0x192227(0x43b)](_0x1a39c2,_0x101cbe);if(!_0x522a4(_0x1849a0))throw _0x1849a0['error'];const _0x35e95f=_0x1849a0[_0x192227(0x36f)][0x0][_0x192227(0x428)][_0x192227(0x20d)];Array['isArray'](_0x35e95f)&&_0x35e95f[_0x192227(0x46a)]&&_0xf95fa8[_0x192227(0x29f)](_0x35e95f,!0x1);}};ze=Kn([ns(0x0,_0x1b956a(_0x4bf6fc)),ns(0x1,_0x4e495a)],ze);function ys(_0x4585d3){const _0x4fe9a1=_0x87081d;let _0x3b6f14='';for(const _0x33b2ce of _0x4585d3){const {startOffset:_0x3b6a41,endOffset:_0x1a904c,isActive:_0x125838}=_0x33b2ce;_0x3b6f14[_0x4fe9a1(0x46a)]&&(_0x3b6f14+=','),_0x3b6f14+=_0x3b6a41+':'+_0x1a904c+':'+(_0x125838?'1':'0');}return _0x3b6f14;}function Xn(_0x87e561){const _0x45380b=_0x87081d,_0x236194=_0x87e561['split'](','),_0x780964=[];for(const _0x32d99c of _0x236194){const [_0x29838a,_0x517fbf,_0x4bd2e5]=_0x32d99c[_0x45380b(0x1aa)](':');_0x780964[_0x45380b(0x1ab)]({'startOffset':Number(_0x29838a),'endOffset':Number(_0x517fbf),'collapsed':_0x29838a===_0x517fbf,'isActive':_0x4bd2e5==='1'});}return _0x780964[_0x45380b(0x376)](_0x418e8e=>_0x418e8e[_0x45380b(0x386)])||(_0x780964[0x0][_0x45380b(0x386)]=!0x0),_0x780964;}class xt extends _0x53ce5a{constructor(){const _0x5468f9=_0x87081d;super(...arguments),_(this,_0x5468f9(0x42f),new _0x2561fc(null)),_(this,'collabCursorState$',this['_collabCursorState$'][_0x5468f9(0x225)]());}[_0x87081d(0x276)](_0x2a9aba){const _0x4fda57=_0x87081d,{unitID:_0xa6240a,memberID:_0x5c3ecb,textRanges:_0x3dd3d0}=_0x2a9aba,_0x38fc47=ys(_0x3dd3d0),_0x2d72d6={'unitID':_0xa6240a,'memberID':_0x5c3ecb,'selection':_0x38fc47};this[_0x4fda57(0x42f)][_0x4fda57(0x4fe)](_0x2d72d6);}}var Jn=Object[_0x87081d(0x318)],zn=Object[_0x87081d(0x314)],qn=(_0x666e5a,_0x570ad2,_0x207775,_0x2a83b7)=>{const _0x155de1=_0x87081d;for(var _0x426e68=_0x2a83b7>0x1?void 0x0:_0x2a83b7?zn(_0x570ad2,_0x207775):_0x570ad2,_0x8aa2b2=_0x666e5a[_0x155de1(0x46a)]-0x1,_0x2faf6b;_0x8aa2b2>=0x0;_0x8aa2b2--)(_0x2faf6b=_0x666e5a[_0x8aa2b2])&&(_0x426e68=(_0x2a83b7?_0x2faf6b(_0x570ad2,_0x207775,_0x426e68):_0x2faf6b(_0x426e68))||_0x426e68);return _0x2a83b7&&_0x426e68&&Jn(_0x570ad2,_0x207775,_0x426e68),_0x426e68;},rs=(_0x5a8025,_0x18532a)=>(_0xebc922,_0x3da480)=>_0x18532a(_0xebc922,_0x3da480,_0x5a8025);function Zn(_0x154669){const _0x459c55=_0x87081d,{unitID:_0x542e91,mutations:_0xf34b05}=_0x154669;return{'unitId':_0x542e91,'subUnitId':_0xf34b05[0x0]['params'][_0x459c55(0x40c)]};}let qe=class{constructor(_0x42cbbd,_0x3e0929){const _0x6474b4=_0x87081d;this['_injector']=_0x42cbbd,this[_0x6474b4(0x290)]=_0x3e0929;}[_0x87081d(0x1b1)](_0x433b44){const _0x5b144b=_0x87081d;var _0x5f47e3,_0x3a9796,_0x3e23be;const _0x47ce4c=this[_0x5b144b(0x440)]['get'](_0x5973ef),{unitId:_0x1e7e9f,subUnitId:_0x3dd50e}=Zn(_0x433b44),_0x2bee27=_0x47ce4c[_0x5b144b(0x27e)](_0x1e7e9f)[_0x5b144b(0x32b)]();if(_0x2bee27[_0x5b144b(0x46a)]===0x0||!_0x1e7e9f||!_0x3dd50e)return;const _0x49a7c9=[{'id':_0x2ce045['id'],'params':{'unitId':_0x1e7e9f,'subUnitId':_0x3dd50e,'selections':_0x1540f0[_0x5b144b(0x2d0)](_0x2bee27)}}],_0x5c3448=this[_0x5b144b(0x290)][_0x5b144b(0x43b)](_0x433b44,_0x49a7c9);if(!_0x522a4(_0x5c3448))throw _0x5c3448[_0x5b144b(0x289)];const _0x575f27=(_0x3e23be=(_0x3a9796=(_0x5f47e3=_0x5c3448[_0x5b144b(0x36f)][0x0])==null?void 0x0:_0x5f47e3[_0x5b144b(0x428)])==null?void 0x0:_0x3a9796[_0x5b144b(0x22f)])!=null?_0x3e23be:_0x2bee27;Array[_0x5b144b(0x2d5)](_0x575f27)&&_0x575f27['length']&&this[_0x5b144b(0x440)][_0x5b144b(0x1e9)](_0x15992c)[_0x5b144b(0x224)](_0x2ce045['id'],{'unitId':_0x1e7e9f,'subUnitId':_0x3dd50e,'selections':_0x575f27});}};qe=qn([rs(0x0,_0x1b956a(_0x4bf6fc)),rs(0x1,_0x4e495a)],qe);const Qn=new Set([_0x171b5c['id']]);function os(_0x2d26d8,_0x32363d,_0x4b7b17,_0x1f79be,_0x285707){const _0x2d7dce=_0x87081d;var _0x37d912,_0xe1b76d,_0x18ae95,_0x57057c;const _0x420e81=[];for(const _0x414302 of _0x2d26d8)if(Qn[_0x2d7dce(0x382)](_0x414302['id'])){if(_0x420e81[_0x2d7dce(0x46a)]>0x0)break;_0x420e81[_0x2d7dce(0x1ab)](_0x414302);break;}else _0x420e81['push'](_0x414302);const _0x5774bd=(_0xe1b76d=(_0x37d912=_0x285707['getCurrentUser']())==null?void 0x0:_0x37d912[_0x2d7dce(0x1ce)])!=null?_0xe1b76d:'unknown',_0x4d0227=(_0x57057c=(_0x18ae95=_0x285707['getCurrentUser']())==null?void 0x0:_0x18ae95[_0x2d7dce(0x2c0)])!=null?_0x57057c:'unknown';return{'changeset':{'unitID':_0x32363d,'type':_0x4a77df(_0x4b7b17[_0x2d7dce(0x2ec)](_0x32363d)),'baseRev':_0x1f79be[_0x2d7dce(0x27c)](_0x32363d),'revision':0x0,'userID':_0x5774bd,'memberID':_0x4d0227,'mutations':_0x420e81},'pendingMutations':_0x2d26d8[_0x2d7dce(0x3d1)](_0x420e81[_0x2d7dce(0x46a)])};}function er(_0x359253,_0x1ff16f,_0x3011b5,_0x54e6cc,_0x41ad2c){const _0x544bc4=_0x87081d;var _0x48d667,_0x5b504d,_0x1dd241,_0x35d8fa;const _0x2ec51d=[_0x359253[_0x544bc4(0x1ec)]((_0x975b9e,_0x33319a)=>{const _0x2d4c6a=_0x544bc4;var _0x3ef0be;const {id:_0x4744d}=_0x975b9e,{id:_0x53e639,type:_0x4954b5}=_0x33319a,_0x577b94=(_0x3ef0be=_0x975b9e[_0x2d4c6a(0x428)])!=null?_0x3ef0be:{'actions':null},_0x473fb9=_0x33319a[_0x2d4c6a(0x428)];if(_0x4744d&&_0x4744d!==_0x53e639)throw new Error(_0x2d4c6a(0x4f8)+_0x4744d+'\x20-\x20'+_0x53e639+'.');return{..._0x975b9e,'id':_0x53e639,'type':_0x4954b5,'params':{'unitId':_0x473fb9[_0x2d4c6a(0x20b)],'textRanges':_0x473fb9[_0x2d4c6a(0x20d)],'actions':_0x4266b8[_0x2d4c6a(0x2f5)](_0x577b94[_0x2d4c6a(0x4f1)],_0x473fb9[_0x2d4c6a(0x4f1)])}};},{})],_0x5078db=(_0x5b504d=(_0x48d667=_0x41ad2c['getCurrentUser']())==null?void 0x0:_0x48d667['userID'])!=null?_0x5b504d:_0x544bc4(0x24a),_0x14235b=(_0x35d8fa=(_0x1dd241=_0x41ad2c[_0x544bc4(0x3b1)]())==null?void 0x0:_0x1dd241['memberID'])!=null?_0x35d8fa:_0x544bc4(0x24a);return{'changeset':{'unitID':_0x1ff16f,'type':_0x4a77df(_0x3011b5['getUnitType'](_0x1ff16f)),'baseRev':_0x54e6cc[_0x544bc4(0x27c)](_0x1ff16f),'revision':0x0,'userID':_0x5078db,'memberID':_0x14235b,'mutations':_0x2ec51d},'pendingMutations':[]};}const tr={'id':_0x53ecf2['id'],'type':_0xc9d637[_0x87081d(0x4eb)],'params':{}};var sr=Object[_0x87081d(0x318)],ir=Object['getOwnPropertyDescriptor'],ce=(_0x3a244b,_0x582295,_0x2a1d47,_0x2beeb0)=>{const _0x254f5e=_0x87081d;for(var _0x53465a=_0x2beeb0>0x1?void 0x0:_0x2beeb0?ir(_0x582295,_0x2a1d47):_0x582295,_0x567326=_0x3a244b[_0x254f5e(0x46a)]-0x1,_0x2d8cf4;_0x567326>=0x0;_0x567326--)(_0x2d8cf4=_0x3a244b[_0x567326])&&(_0x53465a=(_0x2beeb0?_0x2d8cf4(_0x582295,_0x2a1d47,_0x53465a):_0x2d8cf4(_0x53465a))||_0x53465a);return _0x2beeb0&&_0x53465a&&sr(_0x582295,_0x2a1d47,_0x53465a),_0x53465a;},f=(_0x4b5d60,_0x5f2bbc)=>(_0x319f33,_0x3c906b)=>_0x5f2bbc(_0x319f33,_0x3c906b,_0x4b5d60),P=(_0x3f2a25=>(_0x3f2a25['NOT_COLLAB']=_0x87081d(0x1db),_0x3f2a25[_0x87081d(0x1e3)]=_0x87081d(0x4c8),_0x3f2a25[_0x87081d(0x349)]=_0x87081d(0x419),_0x3f2a25[_0x87081d(0x3ee)]='awaiting',_0x3f2a25[_0x87081d(0x236)]=_0x87081d(0x359),_0x3f2a25['FETCH_MISS']=_0x87081d(0x3a5),_0x3f2a25['CONFLICT']=_0x87081d(0x3b7),_0x3f2a25[_0x87081d(0x2c5)]=_0x87081d(0x468),_0x3f2a25))(P||{});class he{constructor(_0x1eb8a9,_0x40beaa,_0x555100,_0x4b11ea,_0x51bd7f,_0x5475fa,_0x58baa2,_0x33d990,_0x586bd3){const _0x38076b=_0x87081d;_(this,'_awaitingChangeset',null),_(this,_0x38076b(0x3c2),[]),(this['unitID']=_0x1eb8a9,this[_0x38076b(0x47c)]=_0x40beaa,this['_handler']=_0x51bd7f,this['_commandService']=_0x5475fa,this[_0x38076b(0x46d)]=_0x58baa2,this[_0x38076b(0x4fa)]=_0x33d990,this[_0x38076b(0x1b0)]=_0x586bd3,this[_0x38076b(0x331)]=_0x555100,this[_0x38076b(0x3c2)]=_0x4b11ea);}[_0x87081d(0x40d)](_0xd098eb){const _0x29df99=_0x87081d,_0x5cc7a1=this['_revisionService'][_0x29df99(0x27c)](this[_0x29df99(0x3a8)]);return _0xd098eb['revision']>_0x5cc7a1+0x1?(this[_0x29df99(0x3f5)]['onMissingChangesets']({'from':_0x5cc7a1,'to':_0xd098eb['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x1afcc5){const _0x146f57=_0x87081d;this[_0x146f57(0x46d)][_0x146f57(0x1f2)](this[_0x146f57(0x3a8)],_0x1afcc5);}[_0x87081d(0x1f4)](_0x44734d){const _0x386ed1=_0x87081d;var _0x3546b8,_0x3febd3;(_0x3febd3=(_0x3546b8=this['_handler'])[_0x386ed1(0x279)])==null||_0x3febd3[_0x386ed1(0x2cf)](_0x3546b8,_0x44734d);}[_0x87081d(0x3e1)](_0x52adb6){const _0x2d0262=_0x87081d;var _0x5fbe0a,_0x4d1aa0;return(_0x4d1aa0=(_0x5fbe0a=this[_0x2d0262(0x3f5)])['onTransformIME'])==null?void 0x0:_0x4d1aa0['call'](_0x5fbe0a,_0x52adb6);}['_transformRemoteChangesetByIMECache'](_0x2b7bc2){const _0x20597c=_0x87081d;var _0x28603d,_0xe62096,_0x21a66b;return(_0x21a66b=(_0xe62096=(_0x28603d=this['_handler'])[_0x20597c(0x1fd)])==null?void 0x0:_0xe62096[_0x20597c(0x2cf)](_0x28603d,_0x2b7bc2))!=null?_0x21a66b:_0x2b7bc2;}[_0x87081d(0x1f8)](_0x4e4783){const _0x4269bb=_0x87081d;var _0x3c7fc1,_0x38ad5a;if(this[_0x4269bb(0x47c)]===H[_0x4269bb(0x1c1)]){const {unitID:_0x2dea50,mutations:_0x2225b5,memberID:_0x206dba}=_0x4e4783,_0x1eb3c1=_0x2225b5[0x0][_0x4269bb(0x428)][_0x4269bb(0x20d)];Array[_0x4269bb(0x2d5)](_0x1eb3c1)&&_0x1eb3c1[_0x4269bb(0x46a)]>0x0&&((_0x38ad5a=(_0x3c7fc1=this[_0x4269bb(0x3f5)])[_0x4269bb(0x433)])==null||_0x38ad5a['call'](_0x3c7fc1,{'unitID':_0x2dea50,'memberID':_0x206dba,'textRanges':_0x1eb3c1}));}}[_0x87081d(0x21b)](){const _0x505222=_0x87081d;this[_0x505222(0x1b0)]['updateOfflineData'](this[_0x505222(0x3a8)],this[_0x505222(0x47c)],this['_awaitingChangeset'],this[_0x505222(0x3c2)]);}[_0x87081d(0x374)](){const _0x352fec=_0x87081d;return this[_0x352fec(0x4fa)]['getCurrentRevForDocument'](this[_0x352fec(0x3a8)]);}['_incrementRevisionNumber'](){const _0x11078a=_0x87081d;this[_0x11078a(0x4fa)][_0x11078a(0x306)](this[_0x11078a(0x3a8)]);}['_executeRemoteChangeset'](_0x4265ec){const _0x204da2=_0x87081d;var _0x398e11;const _0x301d50=this[_0x204da2(0x1af)](_0x4265ec),_0x57935a=_0x2a22c6(_0x301d50['mutations'],this[_0x204da2(0x248)],{'fromCollab':!0x0});if(!_0x57935a[_0x204da2(0x3cf)])throw _0x57935a[_0x204da2(0x289)]instanceof Error?_0x57935a[_0x204da2(0x289)]:new Error((_0x398e11=_0x57935a['error'])!=null?_0x398e11:'[CollaborationState]:\x20apply\x20error!');this[_0x204da2(0x3e1)](_0x301d50),this[_0x204da2(0x402)](_0x4265ec),this[_0x204da2(0x1f4)](_0x301d50),this[_0x204da2(0x1f8)](_0x301d50),this[_0x204da2(0x458)]();}}let Ue=class extends he{constructor(_0x23d3b8,_0x2a8269,_0x1d8483,_0x4d9870,_0x5223de,_0x447664,_0x219706,_0x4f757e,_0x2ade7f,_0x111db5){const _0xbdeee=_0x87081d;super(_0x23d3b8,_0x2a8269,null,[],_0x1d8483,_0x4f757e,_0x219706,_0x4d9870,_0x5223de),_(this,'status',_0xbdeee(0x4c8)),(this['_injector']=_0x447664,this[_0xbdeee(0x3e7)]=_0x2ade7f,this[_0xbdeee(0x290)]=_0x111db5);}[_0x87081d(0x34c)](_0x4039f2){const _0xcfd239=_0x87081d,_0x2ee85c=this[_0xcfd239(0x440)][_0xcfd239(0x427)](G,this['unitID'],this[_0xcfd239(0x47c)],[_0x4039f2],this[_0xcfd239(0x3f5)]);return _0x2ee85c[_0xcfd239(0x4db)](),_0x2ee85c[_0xcfd239(0x21b)](),_0x2ee85c;}[_0x87081d(0x3d5)](_0x2126dc){const _0x2e962e=_0x87081d;if(this['_checkMissing'](_0x2126dc))return this['_injector'][_0x2e962e(0x427)](K,this[_0x2e962e(0x3a8)],this['type'],null,[],null,[_0x2126dc],this[_0x2e962e(0x3f5)]);try{const _0x601016=this[_0x2e962e(0x290)][_0x2e962e(0x43b)](_0x2126dc,[tr]);if(_0x522a4(_0x601016)){const {c1Prime:_0x4e3513}=_0x601016;return this[_0x2e962e(0x445)](_0x4e3513),this;}throw _0x601016[_0x2e962e(0x289)];}catch(_0x20ae64){return this[_0x2e962e(0x3e7)][_0x2e962e(0x289)](_0x20ae64),this[_0x2e962e(0x2ff)](!0x1);}}['_onConflict'](_0x5981de){const _0x46b47d=_0x87081d;return this[_0x46b47d(0x440)]['createInstance'](Z,this['unitID'],this[_0x46b47d(0x47c)],null,[],this['_handler'],_0x5981de);}[_0x87081d(0x2dc)](){const _0x191053=_0x87081d;throw new Error(_0x191053(0x40a));}[_0x87081d(0x256)](){const _0x35bc3e=_0x87081d;throw new Error(_0x35bc3e(0x42d));}[_0x87081d(0x4dc)](){const _0x4856af=_0x87081d;return this[_0x4856af(0x440)][_0x4856af(0x427)](Q,this[_0x4856af(0x3a8)],this[_0x4856af(0x47c)],null,[],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x4007c9=_0x87081d;throw new Error(_0x4007c9(0x35b));}};Ue=ce([f(0x3,_0x1b956a(_0xa786bc)),f(0x4,_0x1b956a(D)),f(0x5,_0x1b956a(_0x4bf6fc)),f(0x6,_0x22132f),f(0x7,_0x15992c),f(0x8,_0x82a609),f(0x9,_0x4e495a)],Ue);let G=class extends he{constructor(_0x436ced,_0x3f4710,_0x5b0360,_0x398bc2,_0x14f29c,_0x3b4640,_0x1dab05,_0x590389,_0x37f6d8,_0x716c14,_0x26e204,_0x47a33e,_0x24d1cc,_0x2b2673){const _0x8cd88a=_0x87081d;super(_0x436ced,_0x3f4710,null,_0x5b0360,_0x398bc2,_0x716c14,_0x2b2673,_0x3b4640,_0x1dab05),_(this,'status',_0x8cd88a(0x419)),_(this,_0x8cd88a(0x3ac),null),_(this,_0x8cd88a(0x44f),null),(this[_0x8cd88a(0x440)]=_0x14f29c,this[_0x8cd88a(0x2e6)]=_0x590389,this[_0x8cd88a(0x3e7)]=_0x37f6d8,this['_configService']=_0x26e204,this[_0x8cd88a(0x290)]=_0x47a33e,this['_univerInstanceService']=_0x24d1cc);}[_0x87081d(0x34c)](_0x5993cc){const _0x269b1d=_0x87081d;return this[_0x269b1d(0x3c2)][_0x269b1d(0x1ab)](_0x5993cc),this[_0x269b1d(0x21b)](),this;}['onRemoteChangeset'](_0x363bc2){const _0x2075e1=_0x87081d;if(this['_checkMissing'](_0x363bc2))return this[_0x2075e1(0x469)](),this['_injector'][_0x2075e1(0x427)](K,this['unitID'],this['type'],null,this['_pendingMutations'],null,[_0x363bc2],this['_handler']);try{const _0x2780be=this[_0x2075e1(0x290)][_0x2075e1(0x43b)](_0x363bc2,this[_0x2075e1(0x3c2)]);if(_0x522a4(_0x2780be)){const {c1Prime:_0x196134,m2Prime:_0x33d7d9}=_0x2780be;this[_0x2075e1(0x445)](_0x196134);const _0x2a498c=this[_0x2075e1(0x440)][_0x2075e1(0x427)](G,this[_0x2075e1(0x3a8)],this[_0x2075e1(0x47c)],_0x33d7d9,this[_0x2075e1(0x3f5)]);return this[_0x2075e1(0x469)](),_0x2a498c['_schedule'](this[_0x2075e1(0x3ac)]?Math[_0x2075e1(0x254)](0x0,new Date()['getTime']()-this[_0x2075e1(0x3ac)]):this[_0x2075e1(0x463)]()),_0x2a498c;}throw _0x2780be[_0x2075e1(0x289)];}catch(_0x14a664){return this['_logService'][_0x2075e1(0x289)](_0x14a664),this[_0x2075e1(0x2ff)](!0x1);}}[_0x87081d(0x2dc)](){const _0x1cfbbd=_0x87081d;throw new Error(_0x1cfbbd(0x3de));}['onRemoteRej'](){const _0x547f95=_0x87081d;throw new Error(_0x547f95(0x4ff));}['toggleOffline'](){const _0x25c737=_0x87081d;return this['_clearScheduledTask'](),this[_0x25c737(0x440)][_0x25c737(0x427)](Q,this['unitID'],this[_0x25c737(0x47c)],null,this[_0x25c737(0x3c2)],this['_handler']);}[_0x87081d(0x384)](){return this;}[_0x87081d(0x4db)](_0x1e6859){const _0x562451=_0x87081d;_0x1e6859=_0x1e6859!=null?_0x1e6859:this['_getSendChangesetTimeout'](),this['_scheduleTimestamp']=new Date()[_0x562451(0x45b)](),this[_0x562451(0x44f)]=setTimeout(()=>{const _0x525a71=_0x562451;this[_0x525a71(0x469)]();let _0x27e287=null;switch(this[_0x525a71(0x47c)]){case H[_0x525a71(0x471)]:{_0x27e287=os(this[_0x525a71(0x3c2)],this['unitID'],this['_univerInstanceService'],this[_0x525a71(0x4fa)],this[_0x525a71(0x2e6)]);break;}case H['UNIVER_DOC']:{this[_0x525a71(0x3c2)][_0x525a71(0x3ea)](_0x1a9a5d=>_0x1a9a5d['id']===_0x40568f['id'])?_0x27e287=er(this['_pendingMutations'],this[_0x525a71(0x3a8)],this['_univerInstanceService'],this[_0x525a71(0x4fa)],this[_0x525a71(0x2e6)]):_0x27e287=os(this[_0x525a71(0x3c2)],this['unitID'],this[_0x525a71(0x2bb)],this[_0x525a71(0x4fa)],this[_0x525a71(0x2e6)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x525a71(0x47c)]+_0x525a71(0x2b6));}const {changeset:_0x7fd4f1,pendingMutations:_0xb131b4}=_0x27e287;this['_handler'][_0x525a71(0x4f9)](_0x7fd4f1);const _0xc401d6=_0xb131b4[_0x525a71(0x46a)]?this[_0x525a71(0x440)]['createInstance'](Y,this[_0x525a71(0x3a8)],this['type'],_0x7fd4f1,_0xb131b4,this[_0x525a71(0x3f5)]):this[_0x525a71(0x440)][_0x525a71(0x427)](q,this[_0x525a71(0x3a8)],this['type'],_0x7fd4f1,this['_handler']);_0xc401d6[_0x525a71(0x21b)](),this[_0x525a71(0x3f5)][_0x525a71(0x4dd)](this,_0xc401d6);},_0x1e6859);}[_0x87081d(0x463)](){const _0x22a0b2=_0x87081d;var _0x50f47f;return(_0x50f47f=this[_0x22a0b2(0x252)][_0x22a0b2(0x38a)](_n))!=null?_0x50f47f:ln;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x163fb5=_0x87081d;this[_0x163fb5(0x44f)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x163fb5(0x44f)]=null);}[_0x87081d(0x2ff)](_0x5a53db){const _0x3e61ea=_0x87081d;return this[_0x3e61ea(0x469)](),this[_0x3e61ea(0x440)]['createInstance'](Z,this[_0x3e61ea(0x3a8)],this[_0x3e61ea(0x47c)],null,this[_0x3e61ea(0x3c2)],this[_0x3e61ea(0x3f5)],_0x5a53db);}};G=ce([f(0x4,_0x1b956a(_0x4bf6fc)),f(0x5,_0x1b956a(_0xa786bc)),f(0x6,_0x1b956a(D)),f(0x7,_0x1b956a(ne)),f(0x8,_0x82a609),f(0x9,_0x15992c),f(0xa,_0x5d255f),f(0xb,_0x4e495a),f(0xc,_0x1d5396),f(0xd,_0x22132f)],G);let q=class extends he{constructor(_0x2d2cd6,_0x236d10,_0x5e33b4,_0x1f8f13,_0xb51783,_0x2e51e1,_0x29837d,_0x3e5da4,_0x280873,_0x1c87c2,_0x3c8160){const _0xe9d540=_0x87081d;super(_0x2d2cd6,_0x236d10,_0x5e33b4,[],_0x1f8f13,_0x3e5da4,_0x3c8160,_0x2e51e1,_0x29837d),_(this,_0xe9d540(0x3a9),_0xe9d540(0x441)),(this[_0xe9d540(0x440)]=_0xb51783,this[_0xe9d540(0x3e7)]=_0x280873,this[_0xe9d540(0x290)]=_0x1c87c2);}[_0x87081d(0x34c)](_0x596c6d){const _0x3f5323=_0x87081d,_0x3aa43b=this[_0x3f5323(0x440)][_0x3f5323(0x427)](Y,this[_0x3f5323(0x3a8)],this[_0x3f5323(0x47c)],this['_awaitingChangeset'],[_0x596c6d],this['_handler']);return _0x3aa43b[_0x3f5323(0x21b)](),_0x3aa43b;}[_0x87081d(0x3d5)](_0x5c9d06){const _0x1c4eeb=_0x87081d;if(this[_0x1c4eeb(0x40d)](_0x5c9d06))return this[_0x1c4eeb(0x440)]['createInstance'](K,this['unitID'],this[_0x1c4eeb(0x47c)],this[_0x1c4eeb(0x331)],[],null,[_0x5c9d06],this[_0x1c4eeb(0x3f5)]);try{const _0x27aed9=this[_0x1c4eeb(0x290)][_0x1c4eeb(0x2f2)]([_0x5c9d06],[this[_0x1c4eeb(0x331)]],!0x1);if(_0xcffb46(_0x27aed9)){const {c1Prime:_0x11b99d,c2Prime:_0x9240dd}=_0x27aed9;this['_executeRemoteChangeset'](_0x11b99d[0x0]),_0x9240dd[0x0][_0x1c4eeb(0x2b5)]=this[_0x1c4eeb(0x374)]();const _0x57c35c=this[_0x1c4eeb(0x440)]['createInstance'](q,this[_0x1c4eeb(0x3a8)],this['type'],_0x9240dd[0x0],this['_handler']);return _0x57c35c[_0x1c4eeb(0x21b)](),_0x57c35c;}return this[_0x1c4eeb(0x2ff)](!0x1);}catch(_0x347b33){return this[_0x1c4eeb(0x3e7)][_0x1c4eeb(0x289)](_0x347b33),this[_0x1c4eeb(0x2ff)](!0x1);}}[_0x87081d(0x2dc)](_0x42b43a){const _0x564f5f=_0x87081d,_0x46c501=this['_revisionService'][_0x564f5f(0x27c)](this[_0x564f5f(0x3a8)]);if(_0x42b43a['revision']<_0x46c501-0x1)return this;if(this[_0x564f5f(0x40d)](_0x42b43a))return this[_0x564f5f(0x440)][_0x564f5f(0x427)](K,this[_0x564f5f(0x3a8)],this[_0x564f5f(0x47c)],null,[],this[_0x564f5f(0x331)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x25219c=this[_0x564f5f(0x440)][_0x564f5f(0x427)](Ue,this[_0x564f5f(0x3a8)],this[_0x564f5f(0x47c)],this[_0x564f5f(0x3f5)]);return _0x25219c[_0x564f5f(0x21b)](),_0x25219c;}[_0x87081d(0x256)](_0x1985c7){const _0x394327=_0x87081d;return this[_0x394327(0x2ff)](!!(_0x1985c7!=null&&_0x1985c7[_0x394327(0x4cd)]));}[_0x87081d(0x4dc)](){const _0x3e6358=_0x87081d;return this['_injector'][_0x3e6358(0x427)](Q,this[_0x3e6358(0x3a8)],this['type'],this['_awaitingChangeset'],[],this[_0x3e6358(0x3f5)]);}[_0x87081d(0x384)](){return this;}[_0x87081d(0x363)](){const _0x16d04d=_0x87081d;this[_0x16d04d(0x3f5)][_0x16d04d(0x4f9)](this[_0x16d04d(0x331)]);}['_onConflict'](_0x3fb85b){const _0x4be02e=_0x87081d;return this[_0x4be02e(0x440)]['createInstance'](Z,this['unitID'],this[_0x4be02e(0x47c)],this['_awaitingChangeset'],[],this[_0x4be02e(0x3f5)],_0x3fb85b);}};q=ce([f(0x4,_0x1b956a(_0x4bf6fc)),f(0x5,_0x1b956a(_0xa786bc)),f(0x6,_0x1b956a(D)),f(0x7,_0x15992c),f(0x8,_0x82a609),f(0x9,_0x4e495a),f(0xa,_0x22132f)],q);let Y=class extends he{constructor(_0x75190b,_0x5b23cb,_0x3d22b9,_0x3b668d,_0x335a28,_0x21d750,_0x3d1fb5,_0x3ecf3f,_0x101a2e,_0x4009a5,_0xa7d11b,_0x37a6fc){const _0x4d2091=_0x87081d;super(_0x75190b,_0x5b23cb,_0x3d22b9,_0x3b668d,_0x335a28,_0x101a2e,_0x37a6fc,_0x3d1fb5,_0x3ecf3f),_(this,'status',_0x4d2091(0x359)),(this[_0x4d2091(0x440)]=_0x21d750,this[_0x4d2091(0x3e7)]=_0x4009a5,this['_transformService']=_0xa7d11b);}[_0x87081d(0x34c)](_0x654047){const _0x429ce0=_0x87081d;return this[_0x429ce0(0x3c2)][_0x429ce0(0x1ab)](_0x654047),this;}[_0x87081d(0x3d5)](_0x2b1ed8){const _0x1b46d7=_0x87081d;if(this['_checkMissing'](_0x2b1ed8))return this[_0x1b46d7(0x440)][_0x1b46d7(0x427)](K,this[_0x1b46d7(0x3a8)],this[_0x1b46d7(0x47c)],this[_0x1b46d7(0x331)],this[_0x1b46d7(0x3c2)],null,[_0x2b1ed8],this['_handler']);try{const _0x4195fb=this[_0x1b46d7(0x290)][_0x1b46d7(0x2f2)]([_0x2b1ed8],[this[_0x1b46d7(0x331)]],!0x1);if(_0xcffb46(_0x4195fb)){const {c1Prime:_0x466955,c2Prime:_0xc2e402}=_0x4195fb,_0xc2eaff=this['_transformService']['transformMutationsWithChangeset'](_0x466955[0x0],this['_pendingMutations']);if(_0x522a4(_0xc2eaff)){const {c1Prime:_0x367164,m2Prime:_0x3b6165}=_0xc2eaff;return this[_0x1b46d7(0x445)](_0x367164),_0xc2e402[0x0][_0x1b46d7(0x2b5)]=this[_0x1b46d7(0x374)](),this[_0x1b46d7(0x440)]['createInstance'](Y,this[_0x1b46d7(0x3a8)],this[_0x1b46d7(0x47c)],_0xc2e402[0x0],_0x3b6165,this[_0x1b46d7(0x3f5)]);}throw _0xc2eaff[_0x1b46d7(0x289)];}throw _0x4195fb[_0x1b46d7(0x289)];}catch(_0x5954dc){return this[_0x1b46d7(0x3e7)][_0x1b46d7(0x289)](_0x5954dc),this['_onConflict'](!0x1);}}[_0x87081d(0x2dc)](_0x3c5057){const _0x5bb28a=_0x87081d;if(this['_checkMissing'](_0x3c5057))return this[_0x5bb28a(0x440)][_0x5bb28a(0x427)](K,this[_0x5bb28a(0x3a8)],this[_0x5bb28a(0x47c)],null,this['_pendingMutations'],this['_awaitingChangeset'],[],this[_0x5bb28a(0x3f5)]);this[_0x5bb28a(0x458)]();const _0x48865e=this[_0x5bb28a(0x440)][_0x5bb28a(0x427)](G,this[_0x5bb28a(0x3a8)],this[_0x5bb28a(0x47c)],this[_0x5bb28a(0x3c2)],this[_0x5bb28a(0x3f5)]);return _0x48865e['_schedule'](),_0x48865e[_0x5bb28a(0x21b)](),_0x48865e;}['onRemoteRej'](_0x25cbaf){const _0x39c204=_0x87081d;return this[_0x39c204(0x2ff)](!!(_0x25cbaf!=null&&_0x25cbaf[_0x39c204(0x4cd)]));}[_0x87081d(0x4dc)](){const _0x13b3a4=_0x87081d;return this[_0x13b3a4(0x440)]['createInstance'](Q,this[_0x13b3a4(0x3a8)],this['type'],this[_0x13b3a4(0x331)],this[_0x13b3a4(0x3c2)],this[_0x13b3a4(0x3f5)]);}['toggleOnline'](){return this;}['resend'](){const _0x485ae7=_0x87081d;this[_0x485ae7(0x3f5)][_0x485ae7(0x4f9)](this[_0x485ae7(0x331)]);}['_onConflict'](_0x1c2da7){const _0x1f5229=_0x87081d;return this[_0x1f5229(0x440)]['createInstance'](Z,this[_0x1f5229(0x3a8)],this[_0x1f5229(0x47c)],null,this[_0x1f5229(0x3c2)],this[_0x1f5229(0x3f5)],_0x1c2da7);}};Y=ce([f(0x5,_0x1b956a(_0x4bf6fc)),f(0x6,_0x1b956a(_0xa786bc)),f(0x7,_0x1b956a(D)),f(0x8,_0x15992c),f(0x9,_0x82a609),f(0xa,_0x4e495a),f(0xb,_0x22132f)],Y);let Z=class extends he{constructor(_0x2f147b,_0x5acbb8,_0x5c9547,_0x4bd872,_0x38be1b,_0x118e45=!0x1,_0x4714ba,_0xc15a3c,_0x3f68eb,_0x5a1ebc,_0x2c706c,_0x8c70c3,_0x476787){const _0x21c552=_0x87081d;super(_0x2f147b,_0x5acbb8,_0x5c9547,_0x4bd872,_0x38be1b,_0xc15a3c,_0x3f68eb,_0x2c706c,_0x5a1ebc),_(this,_0x21c552(0x3a9),_0x21c552(0x3b7)),(this[_0x21c552(0x271)]=_0x118e45,this[_0x21c552(0x1d4)]=_0x4714ba,this[_0x21c552(0x45a)]=_0x8c70c3,this[_0x21c552(0x48e)]=_0x476787,this[_0x21c552(0x1d0)](),this[_0x21c552(0x1e1)](),this['_disableEditing']());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x87081d(0x2dc)](){return this;}['onRemoteRej'](){return this;}['toggleOffline'](){return this;}[_0x87081d(0x384)](){return this;}[_0x87081d(0x363)](){const _0x596029=_0x87081d;throw new Error(_0x596029(0x28e));}['_clearLocalCache'](){const _0x5ae664=_0x87081d;this[_0x5ae664(0x1b0)][_0x5ae664(0x23a)](this[_0x5ae664(0x3a8)],this[_0x5ae664(0x47c)],null,[]);}[_0x87081d(0x1d0)](){const _0x28073f=_0x87081d;this['_isPermissionRej']?this[_0x28073f(0x48e)][_0x28073f(0x410)]({'title':this[_0x28073f(0x45a)]['t'](_0x28073f(0x204)),'content':this[_0x28073f(0x45a)]['t'](_0x28073f(0x407)),'type':'error','duration':0x0}):this[_0x28073f(0x48e)][_0x28073f(0x410)]({'title':this['_localeService']['t'](_0x28073f(0x315)),'content':this[_0x28073f(0x45a)]['t'](_0x28073f(0x261)),'type':'error','duration':0x0});}[_0x87081d(0x4ec)](){const _0x2b540a=_0x87081d;this['_permissionService'][_0x2b540a(0x1dd)](new _0x372984(this[_0x2b540a(0x3a8)])['id'],!0x1);}};Z=ce([f(0x6,_0x1b956a(_0x5543f8)),f(0x7,_0x15992c),f(0x8,_0x22132f),f(0x9,_0x1b956a(D)),f(0xa,_0x1b956a(_0xa786bc)),f(0xb,_0x1b956a(_0x2db4b8)),f(0xc,_0x11083e)],Z);let Q=class extends he{constructor(_0x51a5c0,_0x24167c,_0x5090b1,_0x425d64,_0x113f87,_0x2dc8f4,_0x2df86a,_0x50d6f0,_0x359ce8,_0x194b26){const _0x5b8099=_0x87081d;super(_0x51a5c0,_0x24167c,_0x5090b1,_0x425d64,_0x113f87,_0x359ce8,_0x194b26,_0x2df86a,_0x50d6f0),_(this,'status',_0x5b8099(0x468)),this[_0x5b8099(0x440)]=_0x2dc8f4;}[_0x87081d(0x34c)](_0x48b18a){const _0x30d41b=_0x87081d;return this[_0x30d41b(0x3c2)][_0x30d41b(0x1ab)](_0x48b18a),this[_0x30d41b(0x21b)](),this;}[_0x87081d(0x3d5)](_0x5b70fb){const _0x2d6a62=_0x87081d;throw new Error(_0x2d6a62(0x22c));}[_0x87081d(0x2dc)](){const _0x4c96a3=_0x87081d;throw new Error(_0x4c96a3(0x442));}[_0x87081d(0x256)](){const _0x392e23=_0x87081d;throw new Error(_0x392e23(0x330));}['toggleOffline'](){return this;}['toggleOnline'](){const _0x4137b5=_0x87081d,{_injector:_0x5182d6,_pendingMutations:_0x4f8ae7,_awaitingChangeset:_0x3baa97,unitID:_0x25e813,_handler:_0x27cdd8,type:_0x45b192}=this,_0xee8c85=Ls(_0x5182d6,_0x25e813,_0x45b192,_0x3baa97,_0x4f8ae7,_0x27cdd8);return _0xee8c85 instanceof G?_0xee8c85[_0x4137b5(0x4db)]():(_0xee8c85 instanceof Y||_0xee8c85 instanceof q)&&_0xee8c85[_0x4137b5(0x363)](),_0xee8c85;}[_0x87081d(0x363)](){const _0x3a9516=_0x87081d;throw new Error(_0x3a9516(0x4c4));}};Q=ce([f(0x5,_0x1b956a(_0x4bf6fc)),f(0x6,_0x1b956a(_0xa786bc)),f(0x7,_0x1b956a(D)),f(0x8,_0x15992c),f(0x9,_0x22132f)],Q);let K=class extends he{constructor(_0x43d1ec,_0x588d01,_0x149e89,_0x56ccbb,_0x40269a,_0x122227,_0x2553b2,_0x15f37f,_0x53ee99,_0x3f624c,_0x230779,_0x2164e7,_0x5ecff1,_0x36fef5){const _0x5060c8=_0x87081d;super(_0x43d1ec,_0x588d01,_0x149e89,_0x56ccbb,_0x2553b2,_0x2164e7,_0x5ecff1,_0x53ee99,_0x3f624c),_(this,_0x5060c8(0x3a9),'fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x40269a,this['_queuedRemoteChangesets']=_0x122227,this[_0x5060c8(0x440)]=_0x15f37f,this[_0x5060c8(0x3e7)]=_0x230779,this['_transformService']=_0x36fef5);}['onMissedChangesetFetched'](_0x2ee453){const _0x40b96d=_0x87081d;try{const _0x1ed74c=[..._0x2ee453,...this[_0x40b96d(0x43a)]],_0x245584=[this[_0x40b96d(0x331)]||this['_acknowledgedAwaitingChangeset']][_0x40b96d(0x421)](_0x10996d=>!!_0x10996d);let _0x5ec2f8,_0x53165b;if(_0x245584[_0x40b96d(0x46a)]){const _0x8da321=this['_transformService'][_0x40b96d(0x2f2)](_0x1ed74c,_0x245584,!0x1);if(!_0xcffb46(_0x8da321))throw _0x8da321[_0x40b96d(0x289)];_0x5ec2f8=_0x8da321[_0x40b96d(0x39e)],_0x53165b=_0x8da321['c2Prime'];}else _0x5ec2f8=_0x1ed74c,_0x53165b=[];let _0x251fb4=this[_0x40b96d(0x3c2)];_0x5ec2f8[_0x40b96d(0x1c8)](_0x984f69=>{const _0x59c466=_0x40b96d;let _0x4f377b;if(_0x251fb4[_0x59c466(0x46a)]){const _0x2b567d=this[_0x59c466(0x290)][_0x59c466(0x43b)](_0x984f69,_0x251fb4);if(!_0x522a4(_0x2b567d))throw _0x2b567d['error'];_0x4f377b=_0x2b567d['c1Prime'],_0x251fb4=_0x2b567d[_0x59c466(0x36f)];}else _0x4f377b=_0x984f69;this['_executeRemoteChangeset'](_0x4f377b);}),this[_0x40b96d(0x2ed)]&&this[_0x40b96d(0x458)](),this['_awaitingChangeset']&&_0x53165b[_0x40b96d(0x46a)]&&(_0x53165b[0x0][_0x40b96d(0x2b5)]=this[_0x40b96d(0x374)]());let _0x3f41ad;if(this[_0x40b96d(0x331)]&&_0x251fb4[_0x40b96d(0x46a)]!==0x0)_0x3f41ad=this['_injector'][_0x40b96d(0x427)](Y,this[_0x40b96d(0x3a8)],this[_0x40b96d(0x47c)],_0x53165b[0x0],_0x251fb4,this[_0x40b96d(0x3f5)]);else{if(this['_awaitingChangeset']&&_0x251fb4['length']===0x0)_0x53165b[0x0][_0x40b96d(0x2b5)]=this['_getCurrentRevision'](),_0x3f41ad=this[_0x40b96d(0x440)][_0x40b96d(0x427)](q,this['unitID'],this[_0x40b96d(0x47c)],_0x53165b[0x0],this[_0x40b96d(0x3f5)]);else{if(_0x251fb4[_0x40b96d(0x46a)]!==0x0){const _0x255804=this[_0x40b96d(0x440)]['createInstance'](G,this[_0x40b96d(0x3a8)],this[_0x40b96d(0x47c)],_0x251fb4,this[_0x40b96d(0x3f5)]);_0x255804[_0x40b96d(0x4db)](),_0x3f41ad=_0x255804;}else _0x3f41ad=this[_0x40b96d(0x440)][_0x40b96d(0x427)](Ue,this['unitID'],this['type'],this[_0x40b96d(0x3f5)]);}}return _0x3f41ad[_0x40b96d(0x21b)](),_0x3f41ad;}catch(_0x11f2b3){return this[_0x40b96d(0x3e7)][_0x40b96d(0x289)]('[FetchMissState]',_0x40b96d(0x3a4),_0x11f2b3),this[_0x40b96d(0x440)][_0x40b96d(0x427)](Z,this[_0x40b96d(0x3a8)],this[_0x40b96d(0x47c)],this[_0x40b96d(0x331)],this[_0x40b96d(0x3c2)],this[_0x40b96d(0x3f5)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x390bc7){const _0x306ffb=_0x87081d;return this[_0x306ffb(0x3c2)][_0x306ffb(0x1ab)](_0x390bc7),this;}[_0x87081d(0x3d5)](_0xd61ff){const _0xf43fae=_0x87081d;return this[_0xf43fae(0x43a)][_0xf43fae(0x1ab)](_0xd61ff),this;}[_0x87081d(0x2dc)](_0x89831){const _0x1f7c1e=_0x87081d;if(this['_awaitingChangeset'])return this['_acknowledgedAwaitingChangeset']=this[_0x1f7c1e(0x331)],this[_0x1f7c1e(0x331)]=null,this;throw new Error(_0x1f7c1e(0x212));}[_0x87081d(0x256)](_0x378aeb){const _0x34f236=_0x87081d;return this['_onConflict'](!!(_0x378aeb!=null&&_0x378aeb[_0x34f236(0x4cd)]));}[_0x87081d(0x4dc)](){const _0x165ef=_0x87081d;return this[_0x165ef(0x440)][_0x165ef(0x427)](Q,this['unitID'],this[_0x165ef(0x47c)],this[_0x165ef(0x331)],this[_0x165ef(0x3c2)],this[_0x165ef(0x3f5)]);}[_0x87081d(0x384)](){return this;}[_0x87081d(0x2ff)](_0x3171ac){const _0x282626=_0x87081d;return this['_injector'][_0x282626(0x427)](Z,this[_0x282626(0x3a8)],this[_0x282626(0x47c)],this[_0x282626(0x331)],this[_0x282626(0x3c2)],this[_0x282626(0x3f5)],_0x3171ac);}};K=ce([f(0x7,_0x1b956a(_0x4bf6fc)),f(0x8,_0x1b956a(_0xa786bc)),f(0x9,_0x1b956a(D)),f(0xa,_0x82a609),f(0xb,_0x15992c),f(0xc,_0x22132f),f(0xd,_0x4e495a)],K);function Ls(_0x438bed,_0x36e32a,_0x50fcb9,_0x2bfa2b,_0x2dcb4b,_0x48c36e){const _0x7a86cc=_0x87081d;return _0x2bfa2b&&_0x2dcb4b[_0x7a86cc(0x46a)]?_0x438bed[_0x7a86cc(0x427)](Y,_0x36e32a,_0x50fcb9,_0x2bfa2b,_0x2dcb4b,_0x48c36e):_0x2bfa2b?_0x438bed['createInstance'](q,_0x36e32a,_0x50fcb9,_0x2bfa2b,_0x48c36e):_0x2dcb4b[_0x7a86cc(0x46a)]?_0x438bed[_0x7a86cc(0x427)](G,_0x36e32a,_0x50fcb9,_0x2dcb4b,_0x48c36e):_0x438bed[_0x7a86cc(0x427)](Ue,_0x36e32a,_0x50fcb9,_0x48c36e);}var nr=Object[_0x87081d(0x318)],rr=Object[_0x87081d(0x314)],st=(_0x25c7b6,_0xf415d7,_0x492bd8,_0x428af9)=>{const _0x54ec17=_0x87081d;for(var _0x72382a=_0x428af9>0x1?void 0x0:_0x428af9?rr(_0xf415d7,_0x492bd8):_0xf415d7,_0x41162e=_0x25c7b6[_0x54ec17(0x46a)]-0x1,_0x552c42;_0x41162e>=0x0;_0x41162e--)(_0x552c42=_0x25c7b6[_0x41162e])&&(_0x72382a=(_0x428af9?_0x552c42(_0xf415d7,_0x492bd8,_0x72382a):_0x552c42(_0x72382a))||_0x72382a);return _0x428af9&&_0x72382a&&nr(_0xf415d7,_0x492bd8,_0x72382a),_0x72382a;},p=(_0x4cd6d9,_0x50d227)=>(_0x54ddba,_0x45f70f)=>_0x50d227(_0x54ddba,_0x45f70f,_0x4cd6d9);let Me=class extends _0x53ce5a{constructor(_0x56a946,_0x9f84e8,_0x240e0c){const _0xb73cf0=_0x87081d;super(),_(this,_0xb73cf0(0x3f7),new Map()),_(this,_0xb73cf0(0x3ed),new _0x1ace47()),(this[_0xb73cf0(0x440)]=_0x56a946,this['_collabSessionService']=_0x9f84e8,this['_univerInstanceService']=_0x240e0c,this[_0xb73cf0(0x4fd)]());}[_0x87081d(0x23c)](){const _0x258cdf=_0x87081d;super['dispose'](),this[_0x258cdf(0x3f7)][_0x258cdf(0x1c8)](_0x4061d4=>_0x4061d4['dispose']()),this[_0x258cdf(0x3f7)][_0x258cdf(0x291)]();}[_0x87081d(0x284)](_0x2023a7){const _0x47631b=_0x87081d;var _0x1446b3;return(_0x1446b3=this[_0x47631b(0x3f7)]['get'](_0x2023a7))!=null?_0x1446b3:null;}[_0x87081d(0x1a2)](_0x2f1458){const _0x353b60=_0x87081d,_0x71c743=this[_0x353b60(0x284)](_0x2f1458);return _0x71c743?_0x274530(_0x71c743):this[_0x353b60(0x3ed)]['pipe'](_0x381935(_0xa2686a=>_0xa2686a[_0x353b60(0x3a8)]===_0x2f1458));}[_0x87081d(0x4fd)](){const _0x1f30e1=_0x87081d;this[_0x1f30e1(0x2bb)]['getTypeOfUnitAdded$'](_0x5a714d['UNIVER_SHEET'])['pipe'](_0x3c23a9(this['dispose$']),_0xd2b55d(0x10))[_0x1f30e1(0x347)](async _0x55fc70=>{const _0x19ed1a=_0x1f30e1,_0x4ed844=_0x55fc70[_0x19ed1a(0x1b5)](),_0x7173d8=await this[_0x19ed1a(0x323)](_0x4ed844,H[_0x19ed1a(0x471)]);this[_0x19ed1a(0x3f7)][_0x19ed1a(0x4af)](_0x4ed844,_0x7173d8);}),this['_univerInstanceService'][_0x1f30e1(0x2c7)](_0x5a714d['UNIVER_DOC'])[_0x1f30e1(0x3b6)](_0x3c23a9(this[_0x1f30e1(0x20e)]),_0xd2b55d(0x10))['pipe'](_0x381935(_0x21e73e=>!_0x21e73e[_0x1f30e1(0x1b5)]()[_0x1f30e1(0x4ab)]('__')))[_0x1f30e1(0x347)](async _0xdbbf6e=>{const _0x18afe6=_0x1f30e1,_0x5592b8=_0xdbbf6e[_0x18afe6(0x1b5)](),_0x3c0897=await this[_0x18afe6(0x323)](_0x5592b8,H[_0x18afe6(0x1c1)]);this[_0x18afe6(0x3f7)]['set'](_0x5592b8,_0x3c0897);}),_0x1d3042(this[_0x1f30e1(0x2bb)][_0x1f30e1(0x223)](_0x5a714d[_0x1f30e1(0x471)]),this[_0x1f30e1(0x2bb)][_0x1f30e1(0x223)](_0x5a714d[_0x1f30e1(0x1c1)]))[_0x1f30e1(0x3b6)](_0x3c23a9(this[_0x1f30e1(0x20e)]))['subscribe'](_0x38cca3=>{const _0xa7ced2=_0x1f30e1,_0x30b8c3=_0x38cca3[_0xa7ced2(0x1b5)](),_0x45a93a=this[_0xa7ced2(0x3f7)][_0xa7ced2(0x1e9)](_0x30b8c3);_0x45a93a&&(_0x45a93a[_0xa7ced2(0x23c)](),this[_0xa7ced2(0x3f7)][_0xa7ced2(0x3c7)](_0x30b8c3));});}async['_startCollaboration'](_0x527bc0,_0x50426c){const _0x5e7715=_0x87081d,_0x1bc0da=await this[_0x5e7715(0x1ad)][_0x5e7715(0x316)](_0x527bc0),_0x308de9=this[_0x5e7715(0x440)][_0x5e7715(0x427)](this['_getCtorByUniverType'](_0x50426c),_0x527bc0,_0x50426c,_0x1bc0da);return await _0x308de9[_0x5e7715(0x310)](),this[_0x5e7715(0x3ed)][_0x5e7715(0x4fe)](_0x308de9),_0x308de9;}[_0x87081d(0x2c9)](_0x34f925){const _0x409076=_0x87081d;switch(_0x34f925){case H[_0x409076(0x1c1)]:return Et;case H[_0x409076(0x471)]:return Ct;default:throw new Error(_0x409076(0x25c)+_0x34f925);}}};Me=st([_0x76d0ae(_0x28e3b0[_0x87081d(0x487)],Me),p(0x0,_0x1b956a(_0x4bf6fc)),p(0x1,_0x1b956a(pe)),p(0x2,_0x1d5396)],Me);let Ze=class extends _0x53ce5a{constructor(_0x2aca5c,_0x581b86,_0x2fab0a,_0x20ed2a,_0xa8f7b2,_0x214919,_0x31e142,_0x5e6a4a,_0x3cfd5b,_0x994559,_0x5ca70f,_0x568b83,_0x248e49){const _0x410e73=_0x87081d;super(),_(this,_0x410e73(0x489),new _0x2561fc(null)),_(this,_0x410e73(0x2d8),this['_state$'][_0x410e73(0x225)]()),_(this,_0x410e73(0x425)),_(this,'_collaborationPaused',!0x1),_(this,'status$',this[_0x410e73(0x2d8)]['pipe'](_0x414fcf(_0x35b392=>_0x35b392?_0x35b392[_0x410e73(0x3a9)]:P[_0x410e73(0x2c5)]),_0x1f7f7f(0x1))),_(this,_0x410e73(0x2e7),!0x1),_(this,_0x410e73(0x3ef),[]),(this['unitID']=_0x2aca5c,this[_0x410e73(0x333)]=_0x581b86,this[_0x410e73(0x220)]=_0x2fab0a,this[_0x410e73(0x440)]=_0x20ed2a,this[_0x410e73(0x1b0)]=_0xa8f7b2,this[_0x410e73(0x281)]=_0x214919,this['_localeService']=_0x31e142,this[_0x410e73(0x4fa)]=_0x5e6a4a,this[_0x410e73(0x3e7)]=_0x3cfd5b,this['_commandService']=_0x994559,this['_messageService']=_0x5ca70f,this[_0x410e73(0x1d4)]=_0x568b83,this[_0x410e73(0x406)]=_0x248e49);}get[_0x87081d(0x2db)](){const _0x24f874=_0x87081d;return this[_0x24f874(0x425)];}async[_0x87081d(0x310)](){const _0x204945=_0x87081d;if(this[_0x204945(0x2db)])throw new Error(_0x204945(0x30b));await this[_0x204945(0x4fd)]();}[_0x87081d(0x44c)](){const _0x3eee08=_0x87081d;return this[_0x3eee08(0x344)]=!0x0,_0x3b697b(()=>{const _0x2df44a=_0x3eee08;this['_collaborationPaused']=!0x1,this[_0x2df44a(0x235)]();});}['_updateState'](_0x276f75){const _0x5a664b=_0x87081d;this[_0x5a664b(0x425)]=_0x276f75,this['_state$'][_0x5a664b(0x4fe)](_0x276f75);}async['_init'](){const _0x7c87de=_0x87081d;var _0x59077c;return this['_updateState'](await this['_createInitialState']()),this['_singleActiveUnitService']&&((_0x59077c=this[_0x7c87de(0x406)])==null||_0x59077c[_0x7c87de(0x4a3)](this[_0x7c87de(0x3a8)]),this[_0x7c87de(0x343)](_0x3b697b(this[_0x7c87de(0x406)]['getUnitStatus$'](this[_0x7c87de(0x3a8)])[_0x7c87de(0x347)](_0x3994d8=>{const _0x491b45=_0x7c87de;this[_0x491b45(0x3e7)][_0x491b45(0x4d5)]('[CollaborationEntity]',_0x491b45(0x476),_0x3994d8),_0x3994d8===Us[_0x491b45(0x472)]?(this[_0x491b45(0x243)][_0x491b45(0x410)]({'content':this['_localeService']['t'](_0x491b45(0x1e8)),'type':_0x4dda16[_0x491b45(0x3b0)]}),this[_0x491b45(0x1d4)][_0x491b45(0x1dd)](new _0x372984(this[_0x491b45(0x3a8)])['id'],!0x1)):this[_0x491b45(0x1d4)][_0x491b45(0x1dd)](new _0x372984(this[_0x491b45(0x3a8)])['id'],!0x0);})))),this[_0x7c87de(0x343)](_0x3b697b(this[_0x7c87de(0x220)][_0x7c87de(0x2f6)][_0x7c87de(0x347)](_0x571941=>{const _0x34f19c=_0x7c87de;_0x571941===fe['ONLINE']?this[_0x34f19c(0x1cb)]():_0x571941===fe[_0x34f19c(0x2c5)]&&this[_0x34f19c(0x340)]();}))),this[_0x7c87de(0x343)](_0x3b697b(this[_0x7c87de(0x220)][_0x7c87de(0x326)]['subscribe'](_0x53c448=>{const _0x3338d6=_0x7c87de;try{switch(_0x53c448[_0x3338d6(0x3ba)]){case _0xd3c20c[_0x3338d6(0x416)]:{this['_onRemoteChangeset'](_0x55bb16(_0x53c448[_0x3338d6(0x31c)]));break;}case _0xd3c20c['CHANGESET_ACK']:{this['_onRemoteACK'](_0x53c448[_0x3338d6(0x31c)]);break;}case _0xd3c20c['CHANGESET_REJ']:{this[_0x3338d6(0x3bf)]();break;}case _0xd3c20c[_0x3338d6(0x3f4)]:{this[_0x3338d6(0x33b)](_0x53c448[_0x3338d6(0x31c)][_0x3338d6(0x31e)][_0x3338d6(0x234)](_0x30ffd4=>_0x55bb16(_0x30ffd4)));break;}case _0xd3c20c[_0x3338d6(0x3fb)]:this[_0x3338d6(0x3bf)]({'isPermissionRej':!0x0});}}catch(_0x41061b){throw console[_0x3338d6(0x289)](_0x3338d6(0x4ba),_0x41061b),_0x41061b;}}))),this[_0x7c87de(0x425)];}[_0x87081d(0x36b)](){const _0x1eac40=_0x87081d;this[_0x1eac40(0x2e7)]=!0x1;}[_0x87081d(0x208)](){const _0xbb545d=_0x87081d;if(this[_0xbb545d(0x2e7)])throw new Error(_0xbb545d(0x4e0));this[_0xbb545d(0x2e7)]=!0x0;}[_0x87081d(0x4e1)](_0x3410ab){const _0x2c855e=_0x87081d;this['_lockTransition'](),this['_updateState'](this[_0x2c855e(0x425)][_0x2c855e(0x34c)](_0x3410ab)),this[_0x2c855e(0x36b)]();}['_onRemoteChangeset'](_0x5e7bf1){const _0x177b71=_0x87081d;if(!(_0x5e7bf1[_0x177b71(0x35f)]<=this[_0x177b71(0x4fa)][_0x177b71(0x27c)](this[_0x177b71(0x3a8)]))){if(this[_0x177b71(0x344)]){this['_remoteChangesetQueue'][_0x177b71(0x1ab)](_0x5e7bf1);return;}this[_0x177b71(0x2aa)](_0x5e7bf1);}}[_0x87081d(0x235)](){const _0x54755e=_0x87081d;this['_remoteChangesetQueue']['forEach'](_0x545216=>this[_0x54755e(0x2aa)](_0x545216)),this[_0x54755e(0x3ef)]=[];}[_0x87081d(0x2aa)](_0x332b7a){const _0x35a264=_0x87081d,_0x225337=this[_0x35a264(0x281)][_0x35a264(0x474)][_0x35a264(0x298)](this['_compressMutationService'][_0x35a264(0x474)][_0x35a264(0x31b)]()['COMPRESS_MUTATION_APPLY'])(_0x332b7a['mutations'],null)||_0x332b7a[_0x35a264(0x41e)],_0x3e8845={..._0x332b7a,'mutations':_0x225337};this[_0x35a264(0x208)](),this[_0x35a264(0x41c)](this[_0x35a264(0x425)][_0x35a264(0x3d5)](_0x3e8845)),this[_0x35a264(0x36b)]();}[_0x87081d(0x304)](_0x4033ba){const _0x1f10a3=_0x87081d;this['_lockTransition'](),this['_updateState'](this[_0x1f10a3(0x425)]['onRemoteAck'](_0x4033ba)),this[_0x1f10a3(0x36b)]();}[_0x87081d(0x3bf)](_0x5a00ec){const _0x1562f2=_0x87081d;this[_0x1562f2(0x208)](),this[_0x1562f2(0x41c)](this[_0x1562f2(0x425)][_0x1562f2(0x256)](_0x5a00ec)),this['_unlockTransition']();}[_0x87081d(0x33b)](_0x2e660f){const _0x3f586e=_0x87081d;if(!(this['_state']instanceof K))throw new TypeError(_0x3f586e(0x4a2));const _0x2a9fe1=_0x2e660f[_0x3f586e(0x234)](_0x1c0b1c=>{const _0x13c494=_0x3f586e,_0x395793=this[_0x13c494(0x281)][_0x13c494(0x474)][_0x13c494(0x298)](this[_0x13c494(0x281)][_0x13c494(0x474)][_0x13c494(0x31b)]()[_0x13c494(0x332)])(_0x1c0b1c['mutations'],null)||_0x1c0b1c[_0x13c494(0x41e)];return{..._0x1c0b1c,'mutations':_0x395793};});this[_0x3f586e(0x208)](),this[_0x3f586e(0x41c)](this[_0x3f586e(0x425)][_0x3f586e(0x342)](_0x2a9fe1)),this[_0x3f586e(0x36b)]();}['_toggleOffline'](){const _0x10b5db=_0x87081d;this[_0x10b5db(0x208)](),this[_0x10b5db(0x41c)](this[_0x10b5db(0x425)][_0x10b5db(0x4dc)]()),this[_0x10b5db(0x36b)]();}[_0x87081d(0x1cb)](){const _0x4db9f8=_0x87081d;this[_0x4db9f8(0x208)](),this[_0x4db9f8(0x41c)](this['_state'][_0x4db9f8(0x384)]()),this['_unlockTransition']();}async[_0x87081d(0x1bb)](){return new Promise(_0x18736f=>{const _0x59e064=_0x1fa5;this[_0x59e064(0x220)][_0x59e064(0x2f6)]['pipe'](_0x56d486(0x1))[_0x59e064(0x347)](async _0x41a72f=>{const _0x307888=_0x59e064;_0x18736f(await this[_0x307888(0x33e)](_0x41a72f===fe[_0x307888(0x28f)]));});});}[_0x87081d(0x46e)](){const _0xc8bd44=_0x87081d,_0x2918c8=this[_0xc8bd44(0x3a8)];return{'onStateChange':(_0x1ffc0a,_0x2dfd08)=>{const _0x54cb45=_0xc8bd44;if(_0x1ffc0a!==this[_0x54cb45(0x425)])throw new Error('[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x1ffc0a['status']+'\x0aAfter:\x20'+_0x2dfd08[_0x54cb45(0x3a9)]+'\x0aCurrent:\x20'+this['_state']['status']);this[_0x54cb45(0x41c)](_0x2dfd08);},'onSendChangeset':_0x4cb593=>{const _0x4ab5c0=_0xc8bd44,_0x4dcfbd={'eventID':_0xd3c20c[_0x4ab5c0(0x4e4)],'data':{'unitID':_0x4cb593['unitID'],'unitType':this[_0x4ab5c0(0x333)],'changeset':_0x4cb593,'memberID':this['_session'][_0x4ab5c0(0x241)]()}};this[_0x4ab5c0(0x220)][_0x4ab5c0(0x253)](_0x4dcfbd,this[_0x4ab5c0(0x3a8)]);},'onMissingChangesets':({from:_0x14366f,to:_0x4269b8})=>{const _0x282286=_0xc8bd44;this[_0x282286(0x3e7)][_0x282286(0x4d5)](_0x282286(0x42e),_0x282286(0x2f8)+_0x14366f+_0x282286(0x296)+_0x4269b8);const _0x2ac3ce={'eventID':_0xd3c20c[_0x282286(0x221)],'data':{'unitID':_0x2918c8,'unitType':this[_0x282286(0x333)],'from':_0x14366f,'to':_0x4269b8}};this[_0x282286(0x220)][_0x282286(0x253)](_0x2ac3ce,this['unitID']);}};}async[_0x87081d(0x33e)](_0x406ca9){const _0x1c3660=_0x87081d;var _0x12b870,_0x2dd416;const _0x355b85=await this[_0x1c3660(0x1b0)][_0x1c3660(0x1d9)](this[_0x1c3660(0x3a8)]),_0x230184=(_0x12b870=_0x355b85==null?void 0x0:_0x355b85[_0x1c3660(0x41e)])!=null?_0x12b870:[],_0x54fe87=(_0x2dd416=_0x355b85==null?void 0x0:_0x355b85[_0x1c3660(0x48b)])!=null?_0x2dd416:null,_0x469bf4=this[_0x1c3660(0x3a8)];try{this[_0x1c3660(0x30a)](_0x54fe87,_0x230184);}catch(_0x536a6a){this[_0x1c3660(0x3e7)]['error'](_0x536a6a);}const _0x59fa9e=this[_0x1c3660(0x46e)]();if(_0x406ca9){const _0x46e0c9=Ls(this[_0x1c3660(0x440)],_0x469bf4,this[_0x1c3660(0x333)],_0x54fe87,_0x230184,_0x59fa9e);return _0x46e0c9 instanceof G?_0x46e0c9[_0x1c3660(0x4db)]():(_0x46e0c9 instanceof Y||_0x46e0c9 instanceof q)&&_0x46e0c9['resend'](),_0x46e0c9;}return this[_0x1c3660(0x440)][_0x1c3660(0x427)](Q,_0x469bf4,this[_0x1c3660(0x333)],_0x54fe87,_0x230184,_0x59fa9e);}[_0x87081d(0x30a)](_0x51dc73,_0x53de53){const _0x6391a1=_0x87081d;var _0x171866,_0x5c6feb;const _0x599449=this[_0x6391a1(0x281)][_0x6391a1(0x474)][_0x6391a1(0x298)](this['_compressMutationService'][_0x6391a1(0x474)][_0x6391a1(0x31b)]()[_0x6391a1(0x332)]);(_0x171866=_0x599449((_0x51dc73==null?void 0x0:_0x51dc73['mutations'])||[],null))==null||_0x171866[_0x6391a1(0x1c8)](_0x35f69b=>this[_0x6391a1(0x248)][_0x6391a1(0x224)](_0x35f69b['id'],_0x35f69b[_0x6391a1(0x428)])),(_0x5c6feb=_0x599449(_0x53de53||[],null))==null||_0x5c6feb[_0x6391a1(0x1c8)](_0x5ca6cf=>this[_0x6391a1(0x248)][_0x6391a1(0x224)](_0x5ca6cf['id'],_0x5ca6cf[_0x6391a1(0x428)]));}};Ze=st([p(0x3,_0x1b956a(_0x4bf6fc)),p(0x4,_0x1b956a(D)),p(0x5,_0x1b956a(_0x1ac7ae)),p(0x6,_0x1b956a(_0x2db4b8)),p(0x7,_0x1b956a(_0xa786bc)),p(0x8,_0x82a609),p(0x9,_0x15992c),p(0xa,_0x14fd53),p(0xb,_0x5543f8),p(0xc,_0x4b698d(tt))],Ze);let Et=class extends Ze{constructor(_0x449050,_0x1802bd,_0x149b78,_0x4446a8,_0xa811a2,_0x32c2bb,_0x541982,_0x488b31,_0x22e71d,_0x7fd8e6,_0x19d6bb,_0x51bbe2,_0x14d34d,_0xfb3330,_0x58827a,_0x452ff9,_0x4367d9){const _0x14528e=_0x87081d;super(_0x449050,_0x1802bd,_0x149b78,_0x4446a8,_0xa811a2,_0x32c2bb,_0x541982,_0x488b31,_0x14d34d,_0xfb3330,_0x58827a,_0x452ff9,_0x4367d9),this[_0x14528e(0x3a8)]=_0x449050,this[_0x14528e(0x47c)]=_0x1802bd,this[_0x14528e(0x1b7)]=_0x149b78,this[_0x14528e(0x1d1)]=_0x22e71d,this['_docTransformIMECacheService']=_0x7fd8e6,this[_0x14528e(0x4c2)]=_0x19d6bb,this[_0x14528e(0x233)]=_0x51bbe2;}[_0x87081d(0x46e)](){const _0x2b889a=_0x87081d,_0xb98b06=super[_0x2b889a(0x46e)]();return _0xb98b06['onTransformIME']=_0x48156a=>this['_docTransformIMECacheService']['transformIMECache'](_0x48156a),_0xb98b06['onTransformSelections']=_0x3c04d5=>this['_docTransformSelectionsService'][_0x2b889a(0x1b1)](_0x3c04d5),_0xb98b06[_0x2b889a(0x433)]=_0x3d9f8f=>this[_0x2b889a(0x233)]['syncEditingCollabCursor'](_0x3d9f8f),_0xb98b06['onTransformRemoteChangesetByIMECache']=_0x3c5169=>this[_0x2b889a(0x203)][_0x2b889a(0x31f)](_0x3c5169),_0xb98b06;}async[_0x87081d(0x4fd)](){const _0x40e4b3=_0x87081d,_0x564495=await super[_0x40e4b3(0x4fd)]();return this['disposeWithMe'](this[_0x40e4b3(0x248)][_0x40e4b3(0x3b9)]((_0x17ff70,_0x558be0)=>{const _0x3fa54b=_0x40e4b3;if(_0x17ff70[_0x3fa54b(0x47c)]!==_0xc9d637[_0x3fa54b(0x4eb)]||_0x558be0!=null&&_0x558be0['fromCollab']||_0x558be0!=null&&_0x558be0['onlyLocal'])return;const _0x1e3592=_0x17ff70[_0x3fa54b(0x428)];if((_0x1e3592==null?void 0x0:_0x1e3592[_0x3fa54b(0x20b)])!==this[_0x3fa54b(0x3a8)])return;let _0x2c30eb=_0x17ff70;if(_0x2c30eb['id']===_0x40568f['id']){const _0x10d7c5=_0x2c30eb[_0x3fa54b(0x428)];_0x2c30eb={'id':_0x40568f['id'],'type':_0xc9d637['MUTATION'],'params':{'unitId':_0x10d7c5['unitId'],'actions':_0x10d7c5[_0x3fa54b(0x4f1)],'textRanges':null}};}const _0x113bd0=this[_0x3fa54b(0x281)]['interceptor']['fetchThroughInterceptors'](this[_0x3fa54b(0x281)][_0x3fa54b(0x474)][_0x3fa54b(0x31b)]()[_0x3fa54b(0x409)])([_0x2c30eb],null)||[_0x2c30eb];this[_0x3fa54b(0x4e1)](_0x113bd0[0x0]);})),_0x564495;}};Et=st([p(0x3,_0x1b956a(_0x4bf6fc)),p(0x4,_0x1b956a(D)),p(0x5,_0x1b956a(_0x1ac7ae)),p(0x6,_0x1b956a(_0x2db4b8)),p(0x7,_0x1b956a(_0xa786bc)),p(0x8,_0x1b956a(_0x17dea7)),p(0x9,_0x1b956a(Je)),p(0xa,_0x1b956a(ze)),p(0xb,_0x1b956a(xt)),p(0xc,_0x82a609),p(0xd,_0x15992c),p(0xe,_0x14fd53),p(0xf,_0x5543f8),p(0x10,_0x4b698d(tt))],Et);let Ct=class extends Ze{constructor(_0x4464e9,_0x5a5207,_0x539eac,_0x1b3d26,_0x3487b8,_0x5a6e8f,_0x5c1fd7,_0x43ec71,_0x588d6a,_0x23208c,_0x33b584,_0x595d2b,_0x24a097,_0x4e94b4){const _0x3e5138=_0x87081d;super(_0x4464e9,_0x5a5207,_0x539eac,_0x1b3d26,_0x3487b8,_0x5a6e8f,_0x5c1fd7,_0x43ec71,_0x23208c,_0x33b584,_0x595d2b,_0x24a097,_0x4e94b4),this[_0x3e5138(0x3a8)]=_0x4464e9,this[_0x3e5138(0x47c)]=_0x5a5207,this[_0x3e5138(0x1b7)]=_0x539eac,this[_0x3e5138(0x1f9)]=_0x588d6a;}['_createHandler'](){const _0x51f8a7=_0x87081d,_0x176557=super['_createHandler']();return _0x176557[_0x51f8a7(0x279)]=_0x2272a5=>this[_0x51f8a7(0x1f9)][_0x51f8a7(0x1b1)](_0x2272a5),_0x176557;}async['_init'](){const _0x4729cd=_0x87081d,_0x59577b=await super[_0x4729cd(0x4fd)]();return this[_0x4729cd(0x343)](this[_0x4729cd(0x248)]['onCommandExecuted']((_0x13df78,_0xdb37d2)=>{const _0x3897fb=_0x4729cd;if(_0x13df78[_0x3897fb(0x47c)]!==_0xc9d637['MUTATION']||_0xdb37d2!=null&&_0xdb37d2[_0x3897fb(0x255)]||_0xdb37d2!=null&&_0xdb37d2[_0x3897fb(0x4d1)])return;const _0x59fe37=_0x13df78['params'];if((_0x59fe37==null?void 0x0:_0x59fe37[_0x3897fb(0x20b)])!==this[_0x3897fb(0x3a8)])return;const _0x453757=_0x13df78,_0xe164fd=this['_compressMutationService'][_0x3897fb(0x474)]['fetchThroughInterceptors'](this[_0x3897fb(0x281)][_0x3897fb(0x474)][_0x3897fb(0x31b)]()[_0x3897fb(0x409)])([_0x453757],null)||[_0x453757];this[_0x3897fb(0x4e1)](_0xe164fd[0x0]);})),_0x59577b;}};Ct=st([p(0x3,_0x1b956a(_0x4bf6fc)),p(0x4,_0x1b956a(D)),p(0x5,_0x1b956a(_0x1ac7ae)),p(0x6,_0x1b956a(_0x2db4b8)),p(0x7,_0x1b956a(_0xa786bc)),p(0x8,_0x1b956a(qe)),p(0x9,_0x82a609),p(0xa,_0x15992c),p(0xb,_0x14fd53),p(0xc,_0x5543f8),p(0xd,_0x4b698d(tt))],Ct);const as=[_0x87081d(0x228),_0x87081d(0x2e0),_0x87081d(0x226),_0x87081d(0x46c),_0x87081d(0x1f0),_0x87081d(0x4c7)];class Ht extends _0x1ee863{constructor(){super(...arguments),_(this,'_assignedColors',new Map()),_(this,'_colorIndex',0x0);}[_0x87081d(0x488)](_0x4fc30a){const _0x402453=_0x87081d;if(this[_0x402453(0x494)][_0x402453(0x382)](_0x4fc30a))return this[_0x402453(0x494)][_0x402453(0x1e9)](_0x4fc30a);const _0x4eca28=as[this[_0x402453(0x264)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%as[_0x402453(0x46a)],this['_assignedColors'][_0x402453(0x4af)](_0x4fc30a,_0x4eca28),_0x4eca28;}}var or=Object[_0x87081d(0x318)],ar=Object['getOwnPropertyDescriptor'],cr=(_0x4ec4a7,_0x13ddb5,_0x249349,_0x3d8c16)=>{for(var _0x3004fc=_0x3d8c16>0x1?void 0x0:_0x3d8c16?ar(_0x13ddb5,_0x249349):_0x13ddb5,_0x1ccef9=_0x4ec4a7['length']-0x1,_0x4f8b65;_0x1ccef9>=0x0;_0x1ccef9--)(_0x4f8b65=_0x4ec4a7[_0x1ccef9])&&(_0x3004fc=(_0x3d8c16?_0x4f8b65(_0x13ddb5,_0x249349,_0x3004fc):_0x4f8b65(_0x3004fc))||_0x3004fc);return _0x3d8c16&&_0x3004fc&&or(_0x13ddb5,_0x249349,_0x3004fc),_0x3004fc;},le=(_0x15b8d2,_0x80be56)=>(_0x4ea46f,_0x5b90d9)=>_0x80be56(_0x4ea46f,_0x5b90d9,_0x15b8d2);const hr=0x12c,_r=0x64,lr=()=>{let _0x437254=[],_0x438989=!0x1;return _0x43ad85=>{_0x437254['push'](_0x43ad85),_0x438989||(_0x438989=!0x0,setTimeout(()=>{_0x437254['forEach'](_0x434fb1=>_0x434fb1()),_0x437254=[],_0x438989=!0x1;}));};};let bt=class extends _0x53ce5a{constructor(_0x40eed0,_0x1bc92f,_0x227bd1,_0x1310b0,_0x30d945,_0x530534,_0x26c1ff,_0x595116){const _0x5c572c=_0x87081d;super(),_(this,_0x5c572c(0x351),!0x1),_(this,'_init',!0x1),_(this,_0x5c572c(0x48f),new _0x2561fc(new Map())),_(this,_0x5c572c(0x2e4),this[_0x5c572c(0x48f)]['asObservable']()),_(this,_0x5c572c(0x3da),new _0x2561fc([])),_(this,_0x5c572c(0x389),this['_roomMembers$'][_0x5c572c(0x3b6)](_0x1412d5(hr))),_(this,_0x5c572c(0x3fe),_0x331994((_0x42eb5f,_0x469958)=>{const _0x21bfa8=_0x5c572c,_0xcbdbca={'eventID':_0xd3c20c['UPDATE_CURSOR'],'data':{'unitID':this[_0x21bfa8(0x3a8)],'memberID':this[_0x21bfa8(0x220)][_0x21bfa8(0x241)](),'selection':_0x448ab0(_0x42eb5f,_0x469958[_0x21bfa8(0x2f1)])}};this['_session']['send'](_0xcbdbca,this[_0x21bfa8(0x3a8)]);},_r)),(this[_0x5c572c(0x3a8)]=_0x40eed0,this[_0x5c572c(0x220)]=_0x1bc92f,this[_0x5c572c(0x440)]=_0x227bd1,this[_0x5c572c(0x258)]=_0x1310b0,this['_memberService']=_0x30d945,this[_0x5c572c(0x2bb)]=_0x530534,this[_0x5c572c(0x248)]=_0x26c1ff,this['_refRangeService']=_0x595116);}get[_0x87081d(0x4a8)](){const _0xeaca63=_0x87081d;return this[_0xeaca63(0x48f)][_0xeaca63(0x275)]();}get[_0x87081d(0x4e8)](){const _0x59adfc=_0x87081d;return this[_0x59adfc(0x3da)][_0x59adfc(0x275)]();}[_0x87081d(0x23c)](){const _0xa6545f=_0x87081d;super[_0xa6545f(0x23c)](),this[_0xa6545f(0x48f)][_0xa6545f(0x4fe)](new Map()),this[_0xa6545f(0x48f)]['complete'](),this[_0xa6545f(0x3da)][_0xa6545f(0x4fe)]([]),this['_roomMembers$'][_0xa6545f(0x26e)]();}[_0x87081d(0x310)](){const _0x2aa866=_0x87081d;this[_0x2aa866(0x4fd)]||(this[_0x2aa866(0x4fd)]=!0x0,this['_session']['sessionStatus$']['pipe'](_0x3c23a9(this[_0x2aa866(0x20e)]))[_0x2aa866(0x347)](_0x5394ce=>{const _0xf7af0b=_0x2aa866;_0x5394ce===fe[_0xf7af0b(0x28f)]?this[_0xf7af0b(0x1cb)]():this[_0xf7af0b(0x340)]();}),this['_session'][_0x2aa866(0x326)][_0x2aa866(0x3b6)](_0x3c23a9(this['dispose$']))[_0x2aa866(0x347)](_0x4fc768=>{const _0x11a2f5=_0x2aa866,_0x15a5fc=_0x4fc768[_0x11a2f5(0x3ba)];_0x15a5fc===_0xd3c20c[_0x11a2f5(0x373)]&&this[_0x11a2f5(0x4aa)](_0x4fc768),_0x15a5fc===_0xd3c20c[_0x11a2f5(0x1b3)]&&this[_0x11a2f5(0x466)](_0x4fc768);}),this[_0x2aa866(0x231)](),this[_0x2aa866(0x343)](this['_commandService'][_0x2aa866(0x3b9)](_0x460af0=>{const _0x26f89f=_0x2aa866;if(this[_0x26f89f(0x351)]&&_0x460af0['id']===_0x2ce045['id']&&_0x460af0[_0x26f89f(0x428)][_0x26f89f(0x20b)]===this['unitID']){const _0x471b12=_0x460af0['params'];this[_0x26f89f(0x3fe)](_0x471b12['subUnitId'],_0x471b12[_0x26f89f(0x22f)][0x0]);}})));}[_0x87081d(0x4aa)](_0xbcdee9){const _0x5e8e3d=_0x87081d;var _0x3e5168,_0x1bcfca;const {memberID:_0x477b2d,selection:_0x1afd84}=_0xbcdee9[_0x5e8e3d(0x31c)],{sheetName:_0x2faa7f,range:_0xd4ee9}=_0x262cf1(_0x1afd84),_0x3e0290={'name':(_0x1bcfca=(_0x3e5168=this[_0x5e8e3d(0x2e6)][_0x5e8e3d(0x1ae)](this['unitID'],_0x477b2d))==null?void 0x0:_0x3e5168[_0x5e8e3d(0x33c)])!=null?_0x1bcfca:_0x5e8e3d(0x45e),'range':this['_getMergeRange'](_0x2faa7f,_0xd4ee9),'sheetID':_0x2faa7f,'color':this[_0x5e8e3d(0x258)][_0x5e8e3d(0x488)](_0x477b2d),'selection':_0x1afd84},_0x29fd53=this[_0x5e8e3d(0x4a8)];_0x29fd53['set'](_0x477b2d,_0x3e0290),this[_0x5e8e3d(0x48f)]['next'](_0x29fd53);}[_0x87081d(0x466)](_0x214eba){const _0x63c44c=_0x87081d,{memberID:_0x2ce285}=_0x214eba['data'],_0x1e7cfb=this[_0x63c44c(0x4a8)];_0x1e7cfb[_0x63c44c(0x3c7)](_0x2ce285),this[_0x63c44c(0x48f)]['next'](_0x1e7cfb);}[_0x87081d(0x22d)](_0x1a9982,_0x310cc3){const _0x106fb5=_0x87081d;var _0x12f34a,_0x486d1a;const _0x57ef8c=(_0x486d1a=(_0x12f34a=this['_univerInstanceService'][_0x106fb5(0x1c4)](this[_0x106fb5(0x3a8)]))==null?void 0x0:_0x12f34a[_0x106fb5(0x335)](_0x1a9982))==null?void 0x0:_0x486d1a[_0x106fb5(0x263)]();return(_0x57ef8c==null?void 0x0:_0x57ef8c['find'](_0x2c7db0=>_0x1ec52a[_0x106fb5(0x2df)](_0x2c7db0,_0x310cc3)))||_0x310cc3;}[_0x87081d(0x231)](){const _0x44e429=_0x87081d,_0x2ca683=new _0x173e9c(),_0x493c39=lr(),_0xdf31bc=()=>{const _0x1ea89a=_0x1fa5;_0x2ca683[_0x1ea89a(0x23c)]();const _0x2daaed=(_0xe7d27c,_0x516c75,_0x318ee8,_0x31e8c1)=>{const _0x403d14=_0x1ea89a;let _0x2c6600=[];switch(_0xe7d27c['id']){case _0x5a0c0b[_0x403d14(0x2b8)]:{_0x2c6600=_0x35f3b3(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b[_0x403d14(0x25f)]:{_0x2c6600=_0x3ada4b(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b['InsertColCommandId']:{_0x2c6600=_0x1d6b1e(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b['InsertRangeMoveDownCommandId']:{_0x2c6600=_0x5e73fe(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b[_0x403d14(0x1ed)]:{_0x2c6600=_0x320b17(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b['InsertRowCommandId']:{_0x2c6600=_0x2d43e9(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b[_0x403d14(0x3e0)]:{_0x2c6600=_0x3504f5(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b['RemoveColCommandId']:{_0x2c6600=_0xf02d80(_0xe7d27c,_0x31e8c1);break;}case _0x5a0c0b[_0x403d14(0x47e)]:{_0x2c6600=_0x39a961(_0xe7d27c,_0x31e8c1);break;}}const _0x4bc020=_0x30e48b(_0x2c6600,_0x31e8c1),_0x533998=this[_0x403d14(0x4a8)][_0x403d14(0x1e9)](_0x516c75);if(_0x533998&&_0x4bc020){const _0x4a8809={..._0x533998,'range':_0x4bc020};this[_0x403d14(0x4a8)][_0x403d14(0x4af)](_0x516c75,_0x4a8809),_0x493c39(()=>{const _0x366060=_0x403d14,_0x3402a2=this['_refRangeService'][_0x366060(0x24d)](_0x4bc020,_0x17db64=>(_0x3402a2[_0x366060(0x23c)](),_0x2daaed(_0x17db64,_0x516c75,_0x318ee8,_0x4bc020)));_0x2ca683['add'](_0x3402a2);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x1ea89a(0x1c8)]((_0x545882,_0x7dcfdb)=>{const _0x35f1da=_0x1ea89a,{range:_0x10933d,sheetID:_0x58d292}=_0x545882,_0x55aa7d=this['_refRangeService']['registerRefRange'](_0x10933d,_0x52462e=>(_0x55aa7d[_0x35f1da(0x23c)](),_0x2daaed(_0x52462e,_0x7dcfdb,_0x58d292,_0x10933d)));_0x2ca683['add'](_0x55aa7d);});};this['disposeWithMe'](_0x3b697b(this['_cursorInfo$'][_0x44e429(0x347)](()=>{_0xdf31bc();})));}[_0x87081d(0x1cb)](){const _0x4020a1=_0x87081d;var _0x5b5fba,_0x1995c4;if(this[_0x4020a1(0x351)]=!0x0,((_0x5b5fba=this['_univerInstanceService'][_0x4020a1(0x4e7)]())==null?void 0x0:_0x5b5fba['getUnitId']())!==this[_0x4020a1(0x3a8)])return;const _0x28839a=(_0x1995c4=this[_0x4020a1(0x440)][_0x4020a1(0x1e9)](_0x5973ef)['getCurrentSelections']())==null?void 0x0:_0x1995c4[0x0],_0x1f1b3a=this[_0x4020a1(0x2bb)][_0x4020a1(0x4e6)](_0x5a714d[_0x4020a1(0x471)])[_0x4020a1(0x3c4)]();_0x28839a&&_0x1f1b3a&&this[_0x4020a1(0x3fe)](_0x1f1b3a[_0x4020a1(0x2fc)](),_0x28839a);}['_toggleOffline'](){this['_online']=!0x1;}};bt=cr([le(0x2,_0x1b956a(_0x4bf6fc)),le(0x3,_0x1b956a(Ht)),le(0x4,_0x1b956a(ne)),le(0x5,_0x1d5396),le(0x6,_0x15992c),le(0x7,_0x1b956a(_0x2d0dd9))],bt);var ur=Object['defineProperty'],dr=Object[_0x87081d(0x314)],mr=(_0x44767c,_0x1a2bfc,_0x3d69f3,_0x332275)=>{const _0xfbe5c3=_0x87081d;for(var _0x5ee214=_0x332275>0x1?void 0x0:_0x332275?dr(_0x1a2bfc,_0x3d69f3):_0x1a2bfc,_0x2fc6af=_0x44767c[_0xfbe5c3(0x46a)]-0x1,_0x13db13;_0x2fc6af>=0x0;_0x2fc6af--)(_0x13db13=_0x44767c[_0x2fc6af])&&(_0x5ee214=(_0x332275?_0x13db13(_0x1a2bfc,_0x3d69f3,_0x5ee214):_0x13db13(_0x5ee214))||_0x5ee214);return _0x332275&&_0x5ee214&&ur(_0x1a2bfc,_0x3d69f3,_0x5ee214),_0x5ee214;},te=(_0x374ddf,_0x5269b9)=>(_0x591234,_0x15c34b)=>_0x5269b9(_0x591234,_0x15c34b,_0x374ddf);const fr=0x12c,gr=0x64;let Rt=class extends _0x53ce5a{constructor(_0x4823db,_0x5112c1,_0x4ce5e6,_0x14afb9,_0x8b7d81,_0x50b0d8,_0x288172,_0x1e6466,_0x46b899){const _0x203c54=_0x87081d;super(),_(this,_0x203c54(0x351),!0x1),_(this,_0x203c54(0x4fd),!0x1),_(this,_0x203c54(0x48f),new _0x2561fc(new Map())),_(this,_0x203c54(0x2e4),this[_0x203c54(0x48f)]['asObservable']()),_(this,_0x203c54(0x3da),new _0x2561fc([])),_(this,_0x203c54(0x389),this['_roomMembers$']['pipe'](_0x1412d5(fr))),_(this,_0x203c54(0x3fe),_0x331994(_0x314848=>{const _0x350e52=_0x203c54,_0x2942e6={'eventID':_0xd3c20c[_0x350e52(0x373)],'data':{'unitID':this[_0x350e52(0x3a8)],'memberID':this[_0x350e52(0x220)]['getMemberID'](),'selection':ys(_0x314848)}};this['_session']['send'](_0x2942e6,this['unitID']);},gr)),(this['unitID']=_0x4823db,this[_0x203c54(0x220)]=_0x5112c1,this[_0x203c54(0x440)]=_0x4ce5e6,this[_0x203c54(0x258)]=_0x14afb9,this['_memberService']=_0x8b7d81,this[_0x203c54(0x30c)]=_0x50b0d8,this[_0x203c54(0x290)]=_0x288172,this[_0x203c54(0x2bb)]=_0x1e6466,this[_0x203c54(0x248)]=_0x46b899);}get['cursorInfo'](){const _0x2f8a89=_0x87081d;return this[_0x2f8a89(0x48f)][_0x2f8a89(0x275)]();}get[_0x87081d(0x4e8)](){const _0x2be875=_0x87081d;return this[_0x2be875(0x3da)][_0x2be875(0x275)]();}['dispose'](){const _0x125dae=_0x87081d;super[_0x125dae(0x23c)](),this[_0x125dae(0x48f)][_0x125dae(0x4fe)](new Map()),this[_0x125dae(0x48f)]['complete'](),this[_0x125dae(0x3da)][_0x125dae(0x4fe)]([]),this[_0x125dae(0x3da)][_0x125dae(0x26e)]();}[_0x87081d(0x310)](){const _0x413ba7=_0x87081d;this[_0x413ba7(0x4fd)]||(this['_init']=!0x0,this['_session'][_0x413ba7(0x2f6)][_0x413ba7(0x3b6)](_0x3c23a9(this[_0x413ba7(0x20e)]))[_0x413ba7(0x347)](_0x4bd32c=>{const _0xe97d4f=_0x413ba7;_0x4bd32c===fe[_0xe97d4f(0x28f)]?this[_0xe97d4f(0x1cb)]():this['_toggleOffline']();}),this[_0x413ba7(0x220)][_0x413ba7(0x326)]['pipe'](_0x3c23a9(this[_0x413ba7(0x20e)]))[_0x413ba7(0x347)](_0x222cb6=>{const _0x9003fc=_0x413ba7,_0x3e45d1=_0x222cb6['eventID'];_0x3e45d1===_0xd3c20c[_0x9003fc(0x373)]&&this[_0x9003fc(0x4aa)](_0x222cb6),_0x3e45d1===_0xd3c20c[_0x9003fc(0x1b3)]&&this[_0x9003fc(0x466)](_0x222cb6);}),this[_0x413ba7(0x343)](this[_0x413ba7(0x248)][_0x413ba7(0x3b9)](_0xa52c23=>{const _0x58a73c=_0x413ba7,_0xfc6445=_0xa52c23[_0x58a73c(0x428)];_0xfc6445!=null&&this[_0x58a73c(0x351)]&&_0xa52c23['id']===_0x28f206['id']&&_0xfc6445[_0x58a73c(0x20b)]===this[_0x58a73c(0x3a8)]&&_0xfc6445[_0x58a73c(0x245)]===!0x1&&this[_0x58a73c(0x3fe)](_0xfc6445[_0x58a73c(0x49e)]);})),this[_0x413ba7(0x30c)][_0x413ba7(0x242)][_0x413ba7(0x3b6)](_0x3c23a9(this['dispose$']))[_0x413ba7(0x347)](_0x529fbc=>{const _0x2da5fc=_0x413ba7;if((_0x529fbc==null?void 0x0:_0x529fbc[_0x2da5fc(0x3a8)])!==this[_0x2da5fc(0x3a8)])return;const _0x39fe4e={'eventID':_0xd3c20c[_0x2da5fc(0x373)],'data':_0x529fbc};this[_0x2da5fc(0x4aa)](_0x39fe4e);}),this[_0x413ba7(0x343)](this[_0x413ba7(0x248)][_0x413ba7(0x3b9)](_0x2664df=>{const _0x445138=_0x413ba7;if(_0x2664df[_0x445138(0x428)]==null)return;const _0x550296=_0x2664df['params'];if(_0x2664df['id']!==_0x40568f['id']||_0x550296[_0x445138(0x20b)]!==this[_0x445138(0x3a8)])return;const _0x267124={'id':_0x445138(0x2a0),'params':_0x550296},_0x5b9dde=this['cursorInfo'];for(const [_0xeb725e,_0x5df496]of _0x5b9dde){const _0x5a0cd7={'id':_0x445138(0x2a0),'params':{'unitId':this[_0x445138(0x3a8)],'actions':null,'textRanges':_0x5df496['ranges']}},_0x455ca0=this['_transformService'][_0x445138(0x47f)](_0x267124,_0x5a0cd7,!0x1);if(_0x364f8f(_0x455ca0))throw _0x455ca0['error'];_0x5b9dde[_0x445138(0x4af)](_0xeb725e,{..._0x5df496,'ranges':_0x455ca0[_0x445138(0x36f)][_0x445138(0x428)][_0x445138(0x20d)]});}queueMicrotask(()=>{const _0x5d05e2=_0x445138;this[_0x5d05e2(0x48f)]['next'](_0x5b9dde);});})));}[_0x87081d(0x4aa)](_0x22eefb){const _0x2cc232=_0x87081d;var _0xd11398,_0xacddc5;const {memberID:_0x502ed0,selection:_0x441b03}=_0x22eefb[_0x2cc232(0x31c)],_0x394a9e=Xn(_0x441b03),_0x4f94a8=(_0xacddc5=(_0xd11398=this[_0x2cc232(0x2e6)][_0x2cc232(0x1ae)](this['unitID'],_0x502ed0))==null?void 0x0:_0xd11398[_0x2cc232(0x33c)])!=null?_0xacddc5:'Unknown\x20user',_0x5263c2={'color':this['_colorAssignService'][_0x2cc232(0x488)](_0x502ed0),'name':_0x4f94a8,'ranges':_0x394a9e},_0x14dd27=this[_0x2cc232(0x4a8)];_0x14dd27[_0x2cc232(0x4af)](_0x502ed0,_0x5263c2),this[_0x2cc232(0x48f)][_0x2cc232(0x4fe)](_0x14dd27);}['_onCursorDelete'](_0x2ba6b5){const _0xcf18e2=_0x87081d,{memberID:_0xddeaed}=_0x2ba6b5[_0xcf18e2(0x31c)],_0x470e59=this['cursorInfo'];_0x470e59['delete'](_0xddeaed),this[_0xcf18e2(0x48f)][_0xcf18e2(0x4fe)](_0x470e59);}[_0x87081d(0x1cb)](){const _0x3135f2=_0x87081d;var _0x133775;if(this[_0x3135f2(0x351)]=!0x0,((_0x133775=this[_0x3135f2(0x2bb)][_0x3135f2(0x4e7)]())==null?void 0x0:_0x133775[_0x3135f2(0x1b5)]())!==this[_0x3135f2(0x3a8)])return;const _0x3957f9=this['_injector']['get'](_0x188da2)[_0x3135f2(0x453)](),_0x5c218f=_0x3957f9==null?void 0x0:_0x3957f9[_0x3135f2(0x234)](_0x249015);Array['isArray'](_0x5c218f)&&_0x5c218f[_0x3135f2(0x46a)]>0x0&&this[_0x3135f2(0x3fe)](_0x5c218f);}[_0x87081d(0x340)](){const _0x53a68e=_0x87081d;this[_0x53a68e(0x351)]=!0x1;}};Rt=mr([te(0x2,_0x1b956a(_0x4bf6fc)),te(0x3,_0x1b956a(Ht)),te(0x4,_0x1b956a(ne)),te(0x5,_0x1b956a(xt)),te(0x6,_0x4e495a),te(0x7,_0x1d5396),te(0x8,_0x15992c)],Rt);var Sr=Object[_0x87081d(0x318)],pr=Object[_0x87081d(0x314)],vr=(_0x12307d,_0x3d6c62,_0x3da7c6,_0x2293dd)=>{const _0x20f14b=_0x87081d;for(var _0x1307a6=_0x2293dd>0x1?void 0x0:_0x2293dd?pr(_0x3d6c62,_0x3da7c6):_0x3d6c62,_0x369d4d=_0x12307d[_0x20f14b(0x46a)]-0x1,_0x24ecc9;_0x369d4d>=0x0;_0x369d4d--)(_0x24ecc9=_0x12307d[_0x369d4d])&&(_0x1307a6=(_0x2293dd?_0x24ecc9(_0x3d6c62,_0x3da7c6,_0x1307a6):_0x24ecc9(_0x1307a6))||_0x1307a6);return _0x2293dd&&_0x1307a6&&Sr(_0x3d6c62,_0x3da7c6,_0x1307a6),_0x1307a6;},ct=(_0x2a597d,_0x33efe0)=>(_0x334cb1,_0xfbf80d)=>_0x33efe0(_0x334cb1,_0xfbf80d,_0x2a597d);let ge=class extends _0x53ce5a{constructor(_0x151ccc,_0xabfc8,_0x513828){const _0x5cd131=_0x87081d;super(),_(this,_0x5cd131(0x3f7),new Map()),_(this,_0x5cd131(0x3ed),new _0x1ace47()),(this[_0x5cd131(0x2bb)]=_0x151ccc,this['_injector']=_0xabfc8,this[_0x5cd131(0x1ad)]=_0x513828,this['_init']());}[_0x87081d(0x23c)](){const _0x59e765=_0x87081d;super[_0x59e765(0x23c)](),this[_0x59e765(0x3ed)][_0x59e765(0x26e)](),this[_0x59e765(0x3f7)][_0x59e765(0x1c8)](_0x2fc24a=>_0x2fc24a[_0x59e765(0x23c)]());}[_0x87081d(0x23b)](_0x3dc2bd){const _0xcf909e=_0x87081d;return this['_entities'][_0xcf909e(0x382)](_0x3dc2bd)?this[_0xcf909e(0x3f7)]['get'](_0x3dc2bd)[_0xcf909e(0x2e4)]:this['_entityInit$'][_0xcf909e(0x3b6)](_0x4d0abc(_0x5cbdbf=>_0x5cbdbf[_0xcf909e(0x3a8)]===_0x3dc2bd),_0x21055f(_0x4b7e5e=>_0x4b7e5e[_0xcf909e(0x2e4)]));}[_0x87081d(0x4fd)](){const _0x1ef345=_0x87081d;this['_univerInstanceService'][_0x1ef345(0x2c7)](_0x5a714d['UNIVER_SHEET'])[_0x1ef345(0x3b6)](_0x3c23a9(this['dispose$']))[_0x1ef345(0x347)](async _0x540a29=>{const _0x22f03d=_0x1ef345,_0x487096=_0x540a29[_0x22f03d(0x1b5)](),_0x2b3994=await this[_0x22f03d(0x352)](_0x487096);this[_0x22f03d(0x3ed)][_0x22f03d(0x4fe)](_0x2b3994),this[_0x22f03d(0x3f7)]['set'](_0x487096,_0x2b3994);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5a714d[_0x1ef345(0x1c1)])[_0x1ef345(0x3b6)](_0x3c23a9(this[_0x1ef345(0x20e)]))[_0x1ef345(0x3b6)](_0x4d0abc(_0x330f14=>!_0x330f14[_0x1ef345(0x1b5)]()[_0x1ef345(0x4ab)]('__')))[_0x1ef345(0x347)](async _0xd8f53b=>{const _0x242a71=_0x1ef345,_0x1afc74=_0xd8f53b[_0x242a71(0x1b5)](),_0x42dc14=await this['_startDocCollabCursor'](_0x1afc74);this[_0x242a71(0x3ed)]['next'](_0x42dc14),this['_entities'][_0x242a71(0x4af)](_0x1afc74,_0x42dc14);}),_0x1d3042(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5a714d[_0x1ef345(0x1c1)]),this[_0x1ef345(0x2bb)][_0x1ef345(0x223)](_0x5a714d[_0x1ef345(0x471)]))['pipe'](_0x3c23a9(this['dispose$']))['subscribe'](_0x536d0e=>{const _0x25dc18=_0x1ef345,_0x17dc51=_0x536d0e[_0x25dc18(0x1b5)](),_0x56da42=this[_0x25dc18(0x3f7)][_0x25dc18(0x1e9)](_0x17dc51);_0x56da42&&(_0x56da42[_0x25dc18(0x23c)](),this[_0x25dc18(0x3f7)]['delete'](_0x17dc51));});}async[_0x87081d(0x352)](_0x2b80be){const _0x506ef1=_0x87081d,_0x55d9ea=await this['_collabSessionService']['requireSession'](_0x2b80be),_0x3900f8=this['_injector'][_0x506ef1(0x427)](bt,_0x2b80be,_0x55d9ea);return _0x3900f8[_0x506ef1(0x310)](),_0x3900f8;}async[_0x87081d(0x4de)](_0x3817ed){const _0x592dd7=_0x87081d,_0x26d5b0=await this['_collabSessionService']['requireSession'](_0x3817ed),_0x5f1949=this['_injector'][_0x592dd7(0x427)](Rt,_0x3817ed,_0x26d5b0);return _0x5f1949[_0x592dd7(0x310)](),_0x5f1949;}};ge=vr([_0x76d0ae(_0x28e3b0[_0x87081d(0x487)],ge),ct(0x0,_0x1d5396),ct(0x1,_0x1b956a(_0x4bf6fc)),ct(0x2,_0x1b956a(pe))],ge);const ye=0x14,cs=0xc8,ht=0x4,Ir=0x5;function Er(_0xc546b5,_0x5d613a){const _0x38345a=_0x87081d;let {radius:_0x5aea23,width:_0xff0842,height:_0x46eab0}=_0x5d613a;_0x5aea23=_0x5aea23!=null?_0x5aea23:0x0,_0xff0842=_0xff0842!=null?_0xff0842:0x1e,_0x46eab0=_0x46eab0!=null?_0x46eab0:0x1e;let _0x229f5c=0x0,_0xc9e249=0x0,_0x289901=0x0;_0x229f5c=_0xc9e249=_0x289901=Math[_0x38345a(0x39b)](_0x5aea23,_0xff0842/0x2,_0x46eab0/0x2),_0xc546b5['beginPath'](),_0xc546b5[_0x38345a(0x4cf)](_0x229f5c,0x0),_0xc546b5['lineTo'](_0xff0842-_0xc9e249,0x0),_0xc546b5['arc'](_0xff0842-_0xc9e249,_0xc9e249,_0xc9e249,Math['PI']*0x3/0x2,0x0,!0x1),_0xc546b5['lineTo'](_0xff0842,_0x46eab0-_0x289901),_0xc546b5[_0x38345a(0x3f2)](_0xff0842-_0x289901,_0x46eab0-_0x289901,_0x289901,0x0,Math['PI']/0x2,!0x1),_0xc546b5[_0x38345a(0x3e8)](0x0,_0x46eab0),_0xc546b5['lineTo'](0x0,_0x229f5c),_0xc546b5[_0x38345a(0x3f2)](_0x229f5c,_0x229f5c,_0x229f5c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xc546b5[_0x38345a(0x396)](),_0x5d613a['fill']&&(_0xc546b5[_0x38345a(0x267)](),_0xc546b5[_0x38345a(0x1ba)]=_0x5d613a['fill'],_0x5d613a[_0x38345a(0x2f3)]===_0x38345a(0x417)?_0xc546b5[_0x38345a(0x29c)](_0x38345a(0x417)):_0xc546b5[_0x38345a(0x29c)](),_0xc546b5[_0x38345a(0x2f4)]());}class it extends _0x2763bf{constructor(_0x356faf,_0x4128a5){const _0x513536=_0x87081d;super(_0x356faf,_0x4128a5),_(this,_0x513536(0x295)),_(this,'text'),(this[_0x513536(0x295)]=_0x4128a5==null?void 0x0:_0x4128a5[_0x513536(0x295)],this[_0x513536(0x1e0)]=_0x4128a5==null?void 0x0:_0x4128a5[_0x513536(0x1e0)]);}static[_0x87081d(0x4ed)](_0x201e42,_0x13e948){const _0xd957f2=_0x87081d,{text:_0x3af2f3,color:_0x424313}=_0x13e948;_0x201e42[_0xd957f2(0x267)](),_0x201e42[_0xd957f2(0x3a1)]=_0xd957f2(0x4ea);const _0xd4b568=_0x201e42[_0xd957f2(0x4cc)](_0x3af2f3)[_0xd957f2(0x1cc)],_0x33492e=Math['min'](_0xd4b568+0x2*ht,cs);Er(_0x201e42,{'height':ye,'radius':0x4,'width':_0x33492e,'fill':_0x424313,'evented':!0x1}),_0x201e42[_0xd957f2(0x1ba)]='#FFF';const _0x11f874=ht,_0x195826=ye-Ir,_0xac8a47=cs-0x2*ht;if(_0xd4b568>_0xac8a47){let _0x2c6d76='',_0x2e73df=0x0;for(const _0xd47f19 of _0x3af2f3){const _0x460250=_0x201e42['measureText'](_0xd47f19)[_0xd957f2(0x1cc)];if(_0x2e73df+_0x460250<=_0xac8a47-_0x201e42[_0xd957f2(0x4cc)]('...')[_0xd957f2(0x1cc)])_0x2c6d76+=_0xd47f19,_0x2e73df+=_0x460250;else{_0x2c6d76+=_0xd957f2(0x32f);break;}}_0x201e42[_0xd957f2(0x1da)](_0x2c6d76,_0x11f874,_0x195826);}else _0x201e42[_0xd957f2(0x1da)](_0x3af2f3,_0x11f874,_0x195826);_0x201e42['restore']();}['_draw'](_0x23c4b1){const _0x1d83f2=_0x87081d;it[_0x1d83f2(0x4ed)](_0x23c4b1,this);}}const Cr=0x1,br=1.5;class Rr extends _0x2763bf{constructor(_0x45e5c5,_0x4b7708){const _0x6b051=_0x87081d;super(_0x45e5c5,_0x4b7708),_(this,'_color'),_(this,_0x6b051(0x358),!0x1),_(this,_0x6b051(0x2e9)),_(this,'_name',''),_(this,'_labelPosition',_0x6b051(0x4d0)),_(this,'_backgroundColor'),(_0x4b7708&&this[_0x6b051(0x32c)](_0x4b7708),this[_0x6b051(0x19f)][_0x6b051(0x3fd)](()=>this[_0x6b051(0x32c)]({'hovered':!0x0})),this['onPointerLeave$'][_0x6b051(0x3fd)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x2747f6){const _0x47995e=_0x87081d;var _0x66da7,_0x275b7d,_0x290fa8,_0x2015eb,_0x292d6d,_0x5215f8;this[_0x47995e(0x436)]=(_0x66da7=_0x2747f6[_0x47995e(0x295)])!=null?_0x66da7:this[_0x47995e(0x436)],this[_0x47995e(0x358)]=(_0x275b7d=_0x2747f6[_0x47995e(0x25a)])!=null?_0x275b7d:this['_hovered'],this[_0x47995e(0x2e9)]=(_0x290fa8=_0x2747f6[_0x47995e(0x2f1)])!=null?_0x290fa8:this['_range'],this['_name']=(_0x2015eb=_0x2747f6[_0x47995e(0x33c)])!=null?_0x2015eb:this[_0x47995e(0x4fb)],this[_0x47995e(0x4d7)]=(_0x292d6d=_0x2747f6[_0x47995e(0x2ea)])!=null?_0x292d6d:this['_labelPosition'],this[_0x47995e(0x1fb)]=(_0x5215f8=_0x2747f6[_0x47995e(0x210)])!=null?_0x5215f8:this[_0x47995e(0x1fb)],this[_0x47995e(0x322)]({'width':_0x2747f6[_0x47995e(0x1cc)],'height':_0x2747f6[_0x47995e(0x486)]});}['onMouseMove'](_0x24ca8c){const _0x3fa4d5=_0x87081d,{row:_0xcc90cc,column:_0x393097}=_0x24ca8c;if(_0xcc90cc>=this['_range'][_0x3fa4d5(0x360)]&&_0xcc90cc<=this[_0x3fa4d5(0x2e9)][_0x3fa4d5(0x2e8)]&&_0x393097>=this[_0x3fa4d5(0x2e9)][_0x3fa4d5(0x3ec)]&&_0x393097<=this['_range'][_0x3fa4d5(0x35c)]){this[_0x3fa4d5(0x32c)]({'hovered':!0x0});return;}this[_0x3fa4d5(0x32c)]({'hovered':!0x1});}[_0x87081d(0x1dc)](_0x1c7a43){return!0x1;}[_0x87081d(0x391)](_0x3c200b){const _0x10b244=_0x87081d;_0x31ca09[_0x10b244(0x4ed)](_0x3c200b,{'width':this[_0x10b244(0x1cc)],'height':this[_0x10b244(0x486)],'strokeWidth':br,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x10b244(0x1fb)]}),this[_0x10b244(0x358)]&&(_0x3c200b[_0x10b244(0x267)](),_0x3c200b['transform'](0x1,0x0,0x0,0x1,this[_0x10b244(0x1cc)],this[_0x10b244(0x4d7)]===_0x10b244(0x1f1)?0x0:-ye),it['drawWith'](_0x3c200b,{'text':this['_name'],'color':this[_0x10b244(0x436)]}),_0x3c200b['restore']());}}var Tr=Object[_0x87081d(0x318)],Or=Object[_0x87081d(0x314)],Dr=(_0x74a8fc,_0x304a5e,_0x45102f,_0x118e88)=>{const _0x6ae0ed=_0x87081d;for(var _0x38889b=_0x118e88>0x1?void 0x0:_0x118e88?Or(_0x304a5e,_0x45102f):_0x304a5e,_0x48c617=_0x74a8fc[_0x6ae0ed(0x46a)]-0x1,_0x37a106;_0x48c617>=0x0;_0x48c617--)(_0x37a106=_0x74a8fc[_0x48c617])&&(_0x38889b=(_0x118e88?_0x37a106(_0x304a5e,_0x45102f,_0x38889b):_0x37a106(_0x38889b))||_0x38889b);return _0x118e88&&_0x38889b&&Tr(_0x304a5e,_0x45102f,_0x38889b),_0x38889b;},_t=(_0x5966c2,_0x6b209f)=>(_0x436808,_0x29a732)=>_0x6b209f(_0x436808,_0x29a732,_0x5966c2);const Pr=0x1389;let Tt=class extends _0x53ce5a{constructor(_0x314745,_0x272dbd,_0x39661e,_0x1c496d){const _0x2914ae=_0x87081d;super(),_(this,'_cursors',new Set()),_(this,_0x2914ae(0x4a9),null),(this[_0x2914ae(0x485)]=_0x314745,this[_0x2914ae(0x20f)]=_0x272dbd,this[_0x2914ae(0x4b8)]=_0x39661e,this[_0x2914ae(0x430)]=_0x1c496d,this[_0x2914ae(0x4fd)]());}['_init'](){const _0x4d35fe=_0x87081d;this[_0x4d35fe(0x20f)][_0x4d35fe(0x420)][_0x4d35fe(0x3b6)](_0x3e87c2(this[_0x4d35fe(0x20e)]),_0x16e713(_0x46cdec=>{const _0x3ad573=_0x4d35fe;if(_0x46cdec){const _0x43f1ac=_0x46cdec[_0x3ad573(0x28a)];return _0x138d6c(this['_collabCursorController'][_0x3ad573(0x23b)](this[_0x3ad573(0x485)]['unitId']),this[_0x3ad573(0x430)][_0x3ad573(0x383)])[_0x3ad573(0x3b6)](_0x414fcf(([_0x1cdf7a,_0x526003])=>{const _0x487be7=_0x3ad573,_0x1bf89e=new Map();return _0x1cdf7a[_0x487be7(0x1c8)]((_0x2a4f21,_0x15808a)=>{const _0x2dfaa7=_0x487be7;if(_0x2a4f21[_0x2dfaa7(0x2f7)]===_0x43f1ac){const _0x4088c2={..._0x2a4f21};_0x4088c2[_0x2dfaa7(0x295)]=_0x526003[_0x2a4f21[_0x2dfaa7(0x295)]],_0x1bf89e['set'](_0x15808a,_0x4088c2);}}),{'skeleton':_0x46cdec,'cursors':_0x1bf89e};}));}return _0x274530({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1d7f05,cursors:_0x2b5d30})=>{const _0x1c2b1d=_0x4d35fe;this['_removeCollabCursors'](),_0x1d7f05&&this[_0x1c2b1d(0x41a)](_0x1d7f05,_0x2b5d30);}),this[_0x4d35fe(0x20f)][_0x4d35fe(0x420)][_0x4d35fe(0x347)](_0x3d17aa=>{const _0x19a809=_0x4d35fe;if(_0x3d17aa==null)return;const {skeleton:_0xd0c20d}=_0x3d17aa,{scene:_0x5732f1}=this[_0x19a809(0x485)];_0x5732f1[_0x19a809(0x3fc)]['subscribeEvent'](_0x331994(_0x42e2d7=>{const _0x2f98d0=_0x19a809;var _0x33f1d5,_0x14ad50;const {offsetX:_0x2b14bc,offsetY:_0x960a5d}=_0x42e2d7,{x:_0x5e0d2f,y:_0x11e827}=_0x5732f1['getRelativeToViewportCoord'](_0x5c324a[_0x2f98d0(0x3b2)]([_0x2b14bc,_0x960a5d])),{scaleX:_0x1871d9,scaleY:_0x11d3b0}=_0x5732f1[_0x2f98d0(0x367)](),_0x4c0ad0=_0x5732f1[_0x2f98d0(0x2b7)](_0x1e06ce['VIEW_MAIN']),_0x1567f3=_0x5732f1[_0x2f98d0(0x217)](_0x5c324a[_0x2f98d0(0x3b2)]([_0x5e0d2f,_0x11e827]),_0x4c0ad0),_0x146f3f=_0xd0c20d[_0x2f98d0(0x45d)](_0x2b14bc,_0x960a5d,_0x1871d9,_0x11d3b0,_0x1567f3);((_0x33f1d5=this[_0x2f98d0(0x4a9)])==null?void 0x0:_0x33f1d5[_0x2f98d0(0x1a1)])===_0x146f3f[_0x2f98d0(0x1a1)]&&((_0x14ad50=this[_0x2f98d0(0x4a9)])==null?void 0x0:_0x14ad50[_0x2f98d0(0x3ae)])===_0x146f3f[_0x2f98d0(0x3ae)]||this[_0x2f98d0(0x1eb)]['forEach'](_0x5f0ce3=>{const _0x49b2da=_0x2f98d0;_0x5f0ce3[_0x49b2da(0x4f2)](_0x146f3f);});},0x64));});}[_0x87081d(0x41a)](_0x301cd4,_0x88ae62){const _0x4a8968=_0x87081d;var _0x423e47;const _0x27d1ae=(_0x423e47=this[_0x4a8968(0x20f)][_0x4a8968(0x2cc)]())==null?void 0x0:_0x423e47[_0x4a8968(0x24c)];if(!_0x27d1ae)return;const _0x426786=this[_0x4a8968(0x1f7)]();if(!_0x426786)return;this[_0x4a8968(0x1eb)][_0x4a8968(0x1c8)](_0x3fad29=>{const _0x3b80c5=_0x4a8968;_0x3fad29[_0x3b80c5(0x43e)]();});const {scene:_0xa78ce3}=_0x426786,_0x3f5a56=wr(Array[_0x4a8968(0x1fc)](_0x88ae62[_0x4a8968(0x247)]()))[_0x4a8968(0x234)](_0x54d3b8=>{const _0x1a03b3=_0x4a8968,{color:_0x5d654e,range:_0x24b765,name:_0x46182b,selection:_0x197856,sheetID:_0x2a5cbf}=_0x54d3b8,{startColumn:_0x57f826,startRow:_0x5ee401,endColumn:_0x4a1f03,endRow:_0x13b5ed}=_0x24b765,_0x2f579d=_0x13adfd(_0x5ee401,_0x57f826,_0xa78ce3,_0x27d1ae),_0x2805c1=_0x13adfd(_0x13b5ed,_0x4a1f03,_0xa78ce3,_0x27d1ae),{columnHeaderHeightAndMarginTop:_0x4a378b}=_0x27d1ae,{startX:_0x3b8781,startY:_0x399a72}=_0x2f579d,{endX:_0x1076f9,endY:_0x5eaf79}=_0x2805c1,_0x1cd51b=_0x1076f9-_0x3b8781,_0x518d7d=_0x5eaf79-_0x399a72,_0x4b6cfe={'labelPosition':_0x399a72-_0x4a378b>=ye?'top':_0x1a03b3(0x1f1),'sheetID':_0x2a5cbf,'range':_0x24b765,'color':_0x5d654e,'name':_0x46182b,'selection':_0x197856,'left':_0x3b8781,'top':_0x399a72,'width':_0x1cd51b,'height':_0x518d7d,'evented':!0x1,'zIndex':Pr};return new Rr(_0x46182b,_0x4b6cfe);});_0xa78ce3['addObjects'](_0x3f5a56,Cr),this[_0x4a8968(0x1eb)]=new Set(_0x3f5a56);}[_0x87081d(0x3d9)](){const _0x467e31=_0x87081d;var _0x12289a;(_0x12289a=this[_0x467e31(0x1eb)])==null||_0x12289a[_0x467e31(0x1c8)](_0x4ce149=>_0x4ce149[_0x467e31(0x23c)]());}[_0x87081d(0x1f7)](){const _0x4e8e7=_0x87081d;return _0x45ba(this[_0x4e8e7(0x485)][_0x4e8e7(0x312)],this[_0x4e8e7(0x485)]);}};Tt=Dr([_t(0x1,_0x1b956a(_0x1818c9)),_t(0x2,_0x1b956a(ge)),_t(0x3,_0x1b956a(_0x4a7906))],Tt);function wr(_0x270f5f){const _0x41374a=_0x87081d,_0x5711fc=new Map();return _0x270f5f[_0x41374a(0x1c8)](_0x2f5fa1=>{const _0x17d568=_0x41374a;if(_0x5711fc[_0x17d568(0x382)](_0x2f5fa1[_0x17d568(0x2eb)])){const _0x4415ce=_0x5711fc[_0x17d568(0x1e9)](_0x2f5fa1[_0x17d568(0x2eb)]);_0x4415ce[_0x17d568(0x33c)]+=',\x20'+_0x2f5fa1[_0x17d568(0x33c)];}else _0x5711fc[_0x17d568(0x4af)](_0x2f5fa1[_0x17d568(0x2eb)],_0x2f5fa1);}),Array[_0x41374a(0x1fc)](_0x5711fc[_0x41374a(0x247)]());}var U=function(){const _0x1980a2=_0x87081d;return U=Object['assign']||function(_0x2d0623){const _0xc65f5a=_0x1fa5;for(var _0xc2c94f,_0x1d229b=0x1,_0x11c82d=arguments[_0xc65f5a(0x46a)];_0x1d229b<_0x11c82d;_0x1d229b++){_0xc2c94f=arguments[_0x1d229b];for(var _0x454df4 in _0xc2c94f)Object['prototype'][_0xc65f5a(0x369)][_0xc65f5a(0x2cf)](_0xc2c94f,_0x454df4)&&(_0x2d0623[_0x454df4]=_0xc2c94f[_0x454df4]);}return _0x2d0623;},U[_0x1980a2(0x34b)](this,arguments);},Nr=function(_0x224327,_0x406ff4){const _0x8ec94f=_0x87081d;var _0x2fc67b={};for(var _0x41cadf in _0x224327)Object[_0x8ec94f(0x4b9)][_0x8ec94f(0x369)][_0x8ec94f(0x2cf)](_0x224327,_0x41cadf)&&_0x406ff4['indexOf'](_0x41cadf)<0x0&&(_0x2fc67b[_0x41cadf]=_0x224327[_0x41cadf]);if(_0x224327!=null&&typeof Object[_0x8ec94f(0x348)]==_0x8ec94f(0x1cf)){for(var _0x266a79=0x0,_0x41cadf=Object[_0x8ec94f(0x348)](_0x224327);_0x266a79<_0x41cadf[_0x8ec94f(0x46a)];_0x266a79++)_0x406ff4[_0x8ec94f(0x227)](_0x41cadf[_0x266a79])<0x0&&Object[_0x8ec94f(0x4b9)][_0x8ec94f(0x2ca)]['call'](_0x224327,_0x41cadf[_0x266a79])&&(_0x2fc67b[_0x41cadf[_0x266a79]]=_0x224327[_0x41cadf[_0x266a79]]);}return _0x2fc67b;},kt=_0x2c1bb9(function(_0x459e3b,_0x22f72c){const _0x54f993=_0x87081d;var _0x5ebf96=_0x459e3b['icon'],_0x295f06=_0x459e3b['id'],_0x3b3d67=_0x459e3b['className'],_0x289d4d=_0x459e3b[_0x54f993(0x403)],_0x230c95=Nr(_0x459e3b,[_0x54f993(0x44a),'id','className',_0x54f993(0x403)]),_0x5df58e=_0x54f993(0x3db)[_0x54f993(0x401)](_0x295f06,'\x20')[_0x54f993(0x401)](_0x3b3d67||'')[_0x54f993(0x2da)](),_0x55c383=_0x36697b('_'[_0x54f993(0x401)](Ur()));return $s(_0x5ebf96,''['concat'](_0x295f06),{'defIds':_0x5ebf96[_0x54f993(0x2fd)],'idSuffix':_0x55c383[_0x54f993(0x49a)]},U({'ref':_0x22f72c,'className':_0x5df58e},_0x230c95),_0x289d4d);});function $s(_0x2da75f,_0x1d9813,_0x1bc4f7,_0x2839e5,_0x23da81){const _0x43b935=_0x87081d;return _0x1618fc(_0x2da75f['tag'],U(U({'key':_0x1d9813},Mr(_0x2da75f,_0x1bc4f7,_0x23da81)),_0x2839e5),(Ar(_0x2da75f,_0x1bc4f7)['children']||[])[_0x43b935(0x234)](function(_0x43ffad,_0x559f46){const _0x92442c=_0x43b935;return $s(_0x43ffad,''[_0x92442c(0x401)](_0x1d9813,'-')[_0x92442c(0x401)](_0x2da75f[_0x92442c(0x4ac)],'-')[_0x92442c(0x401)](_0x559f46),_0x1bc4f7,void 0x0,_0x23da81);}));}function Mr(_0x2873a6,_0x1aa04a,_0x37c684){const _0x1d2375=_0x87081d;var _0x459cf0=U({},_0x2873a6[_0x1d2375(0x4be)]);_0x37c684!=null&&_0x37c684['colorChannel1']&&_0x459cf0[_0x1d2375(0x29c)]===_0x1d2375(0x206)&&(_0x459cf0['fill']=_0x37c684['colorChannel1']);var _0x4935f7=_0x1aa04a['defIds'];return!_0x4935f7||_0x4935f7[_0x1d2375(0x46a)]===0x0||(_0x2873a6['tag']===_0x1d2375(0x240)&&_0x459cf0[_0x1d2375(0x4d6)]&&(_0x459cf0['xlink:href']=_0x459cf0[_0x1d2375(0x4d6)]+_0x1aa04a[_0x1d2375(0x4c5)]),Object[_0x1d2375(0x3e5)](_0x459cf0)['forEach'](function(_0x2b293d){const _0x1c5b0a=_0x1d2375;var _0x1c0c5e=_0x2b293d[0x0],_0x3bc565=_0x2b293d[0x1];typeof _0x3bc565==_0x1c5b0a(0x202)&&(_0x459cf0[_0x1c0c5e]=_0x3bc565[_0x1c5b0a(0x371)](/url\(#(.*)\)/,_0x1c5b0a(0x2a6)['concat'](_0x1aa04a[_0x1c5b0a(0x4c5)],')')));})),_0x459cf0;}function Ar(_0x34159f,_0x4eb3eb){const _0x18855d=_0x87081d;var _0x2b4b0b,_0x58976c=_0x4eb3eb['defIds'];return!_0x58976c||_0x58976c['length']===0x0?_0x34159f:_0x34159f[_0x18855d(0x4ac)]===_0x18855d(0x38d)&&(!((_0x2b4b0b=_0x34159f['children'])===null||_0x2b4b0b===void 0x0)&&_0x2b4b0b[_0x18855d(0x46a)])?U(U({},_0x34159f),{'children':_0x34159f[_0x18855d(0x41d)][_0x18855d(0x234)](function(_0x273b0e){const _0x21ff85=_0x18855d;return typeof _0x273b0e[_0x21ff85(0x4be)]['id']==_0x21ff85(0x202)&&_0x58976c&&_0x58976c[_0x21ff85(0x227)](_0x273b0e[_0x21ff85(0x4be)]['id'])>-0x1?U(U({},_0x273b0e),{'attrs':U(U({},_0x273b0e[_0x21ff85(0x4be)]),{'id':_0x273b0e[_0x21ff85(0x4be)]['id']+_0x4eb3eb['idSuffix']})}):_0x273b0e;})}):_0x34159f;}function Ur(){const _0xe45a39=_0x87081d;return Math[_0xe45a39(0x1ac)]()[_0xe45a39(0x454)](0x24)[_0xe45a39(0x479)](0x2,0x8);}kt[_0x87081d(0x280)]=_0x87081d(0x219);var yr={'tag':_0x87081d(0x3e2),'attrs':{'fill':_0x87081d(0x404),'viewBox':_0x87081d(0x357),'width':'1em','height':_0x87081d(0x364)},'children':[{'tag':'g','attrs':{'clipPath':_0x87081d(0x2d3)},'children':[{'tag':_0x87081d(0x4bf),'attrs':{'stroke':_0x87081d(0x4a7),'d':_0x87081d(0x3be),'strokeLinecap':_0x87081d(0x38b),'strokeLinejoin':_0x87081d(0x38b),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x87081d(0x1b6),'attrs':{'id':_0x87081d(0x3e9)},'children':[{'tag':_0x87081d(0x4bf),'attrs':{'fill':'#fff','d':_0x87081d(0x446)}}]}]}],'defIds':[_0x87081d(0x3e9)]},js=_0x2c1bb9(function(_0x455bba,_0xddcb18){const _0x366ae7=_0x87081d;return _0x1618fc(kt,Object[_0x366ae7(0x2fe)]({},_0x455bba,{'id':'off-line-single','ref':_0xddcb18,'icon':yr}));});js['displayName']=_0x87081d(0x1e7);var Lr={'tag':_0x87081d(0x3e2),'attrs':{'fill':_0x87081d(0x404),'viewBox':_0x87081d(0x4b7),'width':_0x87081d(0x364),'height':_0x87081d(0x364)},'children':[{'tag':'g','attrs':{'clipPath':_0x87081d(0x3dd)},'children':[{'tag':_0x87081d(0x4bf),'attrs':{'stroke':_0x87081d(0x4a7),'d':_0x87081d(0x1f5),'strokeLinecap':_0x87081d(0x38b),'strokeLinejoin':_0x87081d(0x38b),'strokeWidth':1.2}}]},{'tag':_0x87081d(0x38d),'attrs':{},'children':[{'tag':_0x87081d(0x1b6),'attrs':{'id':_0x87081d(0x4f5)},'children':[{'tag':_0x87081d(0x4bf),'attrs':{'fill':'#fff','d':_0x87081d(0x446),'transform':_0x87081d(0x35d)}}]}]}],'defIds':['on-line-single_clip0_910_349']},xs=_0x2c1bb9(function(_0x32f22b,_0x4f46c3){const _0x254431=_0x87081d;return _0x1618fc(kt,Object['assign']({},_0x32f22b,{'id':_0x254431(0x285),'ref':_0x4f46c3,'icon':Lr}));});xs['displayName']=_0x87081d(0x282);const $r='univer-online-status-icon',jr='univer-online-status-title',xr=_0x87081d(0x334),Hr='univer-online',kr='univer-offline',De={'onlineStatusIcon':$r,'onlineStatusTitle':jr,'onlineStatus':xr,'online':Hr,'offline':kr};function Vr(_0x53f076){const _0x4aac9a=_0x87081d;switch(_0x53f076){case P[_0x4aac9a(0x2c5)]:return _0x4aac9a(0x200);case P['CONFLICT']:return _0x4aac9a(0x3bd);case P['FETCH_MISS']:return'collabStatus.fetchMiss';case P[_0x4aac9a(0x49c)]:return _0x4aac9a(0x408);case P[_0x4aac9a(0x349)]:case P['AWAITING']:case P['AWAITING_WITH_PENDING']:return _0x4aac9a(0x2f9);case P['SYNCED']:return _0x4aac9a(0x22b);}}function Br(_0x228670){const _0xcee7f2=_0x87081d,{status$:_0x1d4c22}=_0x228670,_0x410ced=_0x1e1781(_0x1d4c22,P[_0xcee7f2(0x49c)]),_0x23fab1=_0x178612(_0x2db4b8),_0x12d8e5=_0x410ced!==P[_0xcee7f2(0x2c5)],_0x50969e=_0x23fab1['t'](Vr(_0x410ced)),_0x1d65ba=_0x2a1254(De[_0xcee7f2(0x1a6)],{[De['online']]:_0x12d8e5,[De[_0xcee7f2(0x468)]]:!_0x12d8e5}),_0x27a1b8=_0x12d8e5?_0x27911f['createElement'](xs,null):_0x27911f[_0xcee7f2(0x1c3)](js,null);return _0x27911f[_0xcee7f2(0x1c3)](_0xcee7f2(0x31a),{'className':_0x1d65ba},_0x27911f[_0xcee7f2(0x1c3)](_0xcee7f2(0x31a),{'className':De[_0xcee7f2(0x3f8)]},_0x27a1b8),_0x27911f[_0xcee7f2(0x1c3)](_0xcee7f2(0x31a),{'className':De[_0xcee7f2(0x1a3)]},_0x50969e));}var Fr=Object[_0x87081d(0x318)],Wr=Object[_0x87081d(0x314)],Gr=(_0x304105,_0x45a410,_0x535e91,_0x58ee7d)=>{for(var _0x1852b6=_0x58ee7d>0x1?void 0x0:_0x58ee7d?Wr(_0x45a410,_0x535e91):_0x45a410,_0x4bbf4b=_0x304105['length']-0x1,_0x2b39ef;_0x4bbf4b>=0x0;_0x4bbf4b--)(_0x2b39ef=_0x304105[_0x4bbf4b])&&(_0x1852b6=(_0x58ee7d?_0x2b39ef(_0x45a410,_0x535e91,_0x1852b6):_0x2b39ef(_0x1852b6))||_0x1852b6);return _0x58ee7d&&_0x1852b6&&Fr(_0x45a410,_0x535e91,_0x1852b6),_0x1852b6;},$e=(_0x3b584b,_0x4bae41)=>(_0x1661ec,_0x1ca8dd)=>_0x4bae41(_0x1661ec,_0x1ca8dd,_0x3b584b);let ke=class extends _0x1ee863{constructor(_0x549fff,_0xf5a042,_0x4ec098,_0x5e9c2d){const _0x24ccbc=_0x87081d;super(),_(this,_0x24ccbc(0x4e3),new _0x2561fc(P[_0x24ccbc(0x49c)])),(this['_univerInstanceService']=_0x549fff,this[_0x24ccbc(0x277)]=_0xf5a042,this[_0x24ccbc(0x440)]=_0x4ec098,this[_0x24ccbc(0x1e5)]=_0x5e9c2d,this['_initStatusComponent'](),this[_0x24ccbc(0x1a0)]());}[_0x87081d(0x2f0)](){const _0x45aae4=_0x87081d;this['disposeWithMe'](this[_0x45aae4(0x277)][_0x45aae4(0x29d)](_0x41f3dc[_0x45aae4(0x2ba)],()=>_0x5458e2(Yr({'status$':this[_0x45aae4(0x4e3)][_0x45aae4(0x225)]()}),this[_0x45aae4(0x440)])));}[_0x87081d(0x1a0)](){const _0x233163=_0x87081d;this[_0x233163(0x343)](_0x3b697b(this[_0x233163(0x2bb)]['focused$']['pipe'](_0x21055f(()=>{const _0x20943a=_0x233163,_0x505e5f=this[_0x20943a(0x2bb)][_0x20943a(0x4e7)]();return _0x505e5f?this[_0x20943a(0x1e5)][_0x20943a(0x1a2)](_0x505e5f[_0x20943a(0x1b5)]()):_0x274530(null);}),_0x21055f(_0x2a4956=>_0x2a4956?_0x2a4956[_0x233163(0x33a)]:_0x274530(P[_0x233163(0x49c)])))['subscribe'](_0x4be1df=>{const _0x4449de=_0x233163;this['_status$'][_0x4449de(0x4fe)](_0x4be1df);})));}};ke=Gr([_0x76d0ae(_0x28e3b0[_0x87081d(0x487)],ke),$e(0x0,_0x1d5396),$e(0x1,_0x1ccd4c),$e(0x2,_0x1b956a(_0x4bf6fc)),$e(0x3,_0x1b956a(Me))],ke);function _0x1fa5(_0x24a410,_0x1bc15f){const _0x9ef47a=_0x9ef4();return _0x1fa5=function(_0x1fa52a,_0x4d83b4){_0x1fa52a=_0x1fa52a-0x19f;let _0x317d5a=_0x9ef47a[_0x1fa52a];return _0x317d5a;},_0x1fa5(_0x24a410,_0x1bc15f);}function Yr(_0x2a16ab){const {status$:_0x11e9d2}=_0x2a16ab;return function(){const _0x1f5066=_0x1fa5;return _0x27911f[_0x1f5066(0x1c3)](Br,{'status$':_0x11e9d2});};}const Hs=_0x1b08c0('uni.network.url-service');var Kr=Object[_0x87081d(0x318)],Xr=Object[_0x87081d(0x314)],Jr=(_0x1f52fe,_0x27fc73,_0x261597,_0x45f833)=>{const _0x1dcabd=_0x87081d;for(var _0x313bc5=_0x45f833>0x1?void 0x0:_0x45f833?Xr(_0x27fc73,_0x261597):_0x27fc73,_0x3d56e4=_0x1f52fe[_0x1dcabd(0x46a)]-0x1,_0x51fb7c;_0x3d56e4>=0x0;_0x3d56e4--)(_0x51fb7c=_0x1f52fe[_0x3d56e4])&&(_0x313bc5=(_0x45f833?_0x51fb7c(_0x27fc73,_0x261597,_0x313bc5):_0x51fb7c(_0x313bc5))||_0x313bc5);return _0x45f833&&_0x313bc5&&Kr(_0x27fc73,_0x261597,_0x313bc5),_0x313bc5;},ue=(_0x416d50,_0x4a629c)=>(_0x3c23a3,_0x9863d9)=>_0x4a629c(_0x3c23a3,_0x9863d9,_0x416d50);let Ve=class extends _0x53ce5a{constructor(_0x3ef442,_0x3cf00a,_0x5a15dd,_0x296130,_0x47099f,_0x281fc9){const _0x1f282b=_0x87081d;super(),this[_0x1f282b(0x44d)]=_0x3ef442,this[_0x1f282b(0x3e7)]=_0x3cf00a,this[_0x1f282b(0x248)]=_0x5a15dd,this[_0x1f282b(0x1b0)]=_0x296130,this[_0x1f282b(0x361)]=_0x47099f,_0x281fc9?_0x281fc9==null||_0x281fc9[_0x1f282b(0x239)]()[_0x1f282b(0x39a)](()=>this[_0x1f282b(0x4fd)]()):(this[_0x1f282b(0x3e7)][_0x1f282b(0x4d5)](_0x1f282b(0x2b9),_0x1f282b(0x3bc)),this[_0x1f282b(0x4fd)]());}async['_init'](){const _0x56afe8=_0x87081d,_0x426383=this[_0x56afe8(0x44d)][_0x56afe8(0x1f6)](_0x56afe8(0x312)),_0x4f95fd=this[_0x56afe8(0x44d)][_0x56afe8(0x1f6)](_0x56afe8(0x47c));if(!_0x426383||!_0x4f95fd){this[_0x56afe8(0x3e7)][_0x56afe8(0x4d5)](_0x56afe8(0x2b9),_0x56afe8(0x265));return;}switch(Number(_0x4f95fd)){case H[_0x56afe8(0x471)]:{const _0x1d3a88=await this[_0x56afe8(0x3b5)](_0x426383);this[_0x56afe8(0x27a)](_0x1d3a88);break;}case H[_0x56afe8(0x1c1)]:{await this[_0x56afe8(0x300)](_0x426383);break;}default:{this[_0x56afe8(0x3e7)][_0x56afe8(0x289)]('[DataLoaderController]',_0x56afe8(0x397));break;}}}async[_0x87081d(0x27a)](_0xb542d5){const _0x5c19b1=_0x87081d;await this[_0x5c19b1(0x4ef)](_0xb542d5),_0xb542d5[_0x5c19b1(0x379)]['pipe'](_0x3c23a9(this[_0x5c19b1(0x20e)]))['subscribe'](_0x554458=>{const _0x319d53=_0x5c19b1;_0x554458&&this[_0x319d53(0x3a6)](_0x554458);}),this[_0x5c19b1(0x44d)][_0x5c19b1(0x294)][_0x5c19b1(0x3b6)](_0x3c23a9(this[_0x5c19b1(0x20e)]))[_0x5c19b1(0x347)](()=>this[_0x5c19b1(0x4ef)](_0xb542d5));}['_updateURLWithCurrentState'](_0x4b4dc0,_0x11f3af=!0x1){const _0x317848=_0x87081d,_0x4c737c=this['_urlService'][_0x317848(0x1f6)](_0x317848(0x3ab));_0x4b4dc0[_0x317848(0x2fc)]()!==_0x4c737c&&this[_0x317848(0x44d)][_0x317848(0x211)]('subunit',_0x4b4dc0['getSheetId'](),_0x11f3af);}async[_0x87081d(0x4ef)](_0x3a2f28){const _0x36cb47=_0x87081d;var _0x3afb7d;const _0x7842b=this['_urlService']['getParam'](_0x36cb47(0x3ab));if(!_0x7842b||!_0x3a2f28['getSheetBySheetId'](_0x7842b)){const _0x53bdd5=_0x3a2f28[_0x36cb47(0x257)]()[0x0],_0x48a691=_0x3a2f28[_0x36cb47(0x335)](_0x53bdd5);if(!_0x48a691)return;this['_updateURLWithCurrentState'](_0x48a691,!0x0),await this[_0x36cb47(0x248)][_0x36cb47(0x224)](_0x53a25c['id'],{'unitId':_0x3a2f28[_0x36cb47(0x1b5)](),'subUnitId':_0x53bdd5});return;}((_0x3afb7d=_0x3a2f28[_0x36cb47(0x3c4)]())==null?void 0x0:_0x3afb7d[_0x36cb47(0x2fc)]())!==_0x7842b&&await this[_0x36cb47(0x248)][_0x36cb47(0x224)](_0x53a25c['id'],{'unitId':_0x3a2f28['getUnitId'](),'subUnitId':_0x7842b});}async[_0x87081d(0x3b5)](_0x3e2f55){const _0x457598=_0x87081d;let _0x9764d3=0x0;const _0x5561d6=await this[_0x457598(0x1b0)][_0x457598(0x1d9)](_0x3e2f55);return _0x5561d6&&(_0x5561d6[_0x457598(0x48b)]||_0x5561d6[_0x457598(0x41e)][_0x457598(0x46a)]!==0x0)&&(_0x9764d3=_0x5561d6[_0x457598(0x464)]),_0x9764d3===0x0&&this[_0x457598(0x3e7)]['debug'](_0x457598(0x2b9),_0x457598(0x24e)),this[_0x457598(0x361)][_0x457598(0x3ff)](_0x3e2f55,_0x9764d3);}async['_loadDoc'](_0x4353a7){const _0x11f2f1=_0x87081d;let _0x4b9fc7=0x0;const _0x59b8cb=await this[_0x11f2f1(0x1b0)][_0x11f2f1(0x1d9)](_0x4353a7);return _0x59b8cb&&(_0x59b8cb[_0x11f2f1(0x48b)]||_0x59b8cb['mutations']['length']!==0x0)&&(_0x4b9fc7=_0x59b8cb[_0x11f2f1(0x464)]),_0x4b9fc7===0x0&&this[_0x11f2f1(0x3e7)][_0x11f2f1(0x4d5)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x11f2f1(0x462)](_0x4353a7,_0x4b9fc7);}};Ve=Jr([_0x76d0ae(_0x28e3b0[_0x87081d(0x487)],Ve),ue(0x0,Hs),ue(0x1,_0x82a609),ue(0x2,_0x15992c),ue(0x3,_0x1b956a(D)),ue(0x4,_0x1b956a(_0x5cfad0)),ue(0x5,_0x4b698d(_0x265857))],Ve);var zr=Object[_0x87081d(0x318)],qr=Object['getOwnPropertyDescriptor'],Zr=(_0x9f273d,_0x24bcb8,_0x57d548,_0x4106aa)=>{const _0x2ef0f8=_0x87081d;for(var _0x1f79f7=_0x4106aa>0x1?void 0x0:_0x4106aa?qr(_0x24bcb8,_0x57d548):_0x24bcb8,_0x2eefc0=_0x9f273d[_0x2ef0f8(0x46a)]-0x1,_0x1aae22;_0x2eefc0>=0x0;_0x2eefc0--)(_0x1aae22=_0x9f273d[_0x2eefc0])&&(_0x1f79f7=(_0x4106aa?_0x1aae22(_0x24bcb8,_0x57d548,_0x1f79f7):_0x1aae22(_0x1f79f7))||_0x1f79f7);return _0x4106aa&&_0x1f79f7&&zr(_0x24bcb8,_0x57d548,_0x1f79f7),_0x1f79f7;},hs=(_0xe890fa,_0x419ac3)=>(_0x1ff332,_0x16a3e8)=>_0x419ac3(_0x1ff332,_0x16a3e8,_0xe890fa);const Qr=_0x87081d(0x2fb),eo=_0x87081d(0x232);let Be=class extends _0x1ee863{constructor(_0x519b8d,_0x5105d8){const _0x6783f=_0x87081d;super(),this[_0x6783f(0x2bb)]=_0x519b8d,this['_configService']=_0x5105d8,this[_0x6783f(0x4fd)]();}[_0x87081d(0x4fd)](){const _0x10328f=_0x87081d;this['disposeWithMe'](_0x3b697b(this[_0x10328f(0x2bb)][_0x10328f(0x4ee)][_0x10328f(0x347)](()=>{const _0x23ee34=_0x10328f;var _0x35a66c;const _0x57eff6=this['_univerInstanceService']['getFocusedUnit']();let _0x8ef830=(_0x35a66c=this[_0x23ee34(0x252)][_0x23ee34(0x38a)](Qr))!=null?_0x35a66c:eo;_0x57eff6 instanceof _0x4ae2cc&&(_0x8ef830=_0x57eff6[_0x23ee34(0x33c)]),document['title']=_0x8ef830;})));}};Be=Zr([_0x76d0ae(_0x28e3b0[_0x87081d(0x3c1)],Be),hs(0x0,_0x1d5396),hs(0x1,_0x5d255f)],Be);var to=Object['defineProperty'],so=Object['getOwnPropertyDescriptor'],io=(_0xa2d5d5,_0x12f67d,_0x31f99d,_0x494878)=>{for(var _0x575540=_0x494878>0x1?void 0x0:_0x494878?so(_0x12f67d,_0x31f99d):_0x12f67d,_0x57899c=_0xa2d5d5['length']-0x1,_0x7e0ee;_0x57899c>=0x0;_0x57899c--)(_0x7e0ee=_0xa2d5d5[_0x57899c])&&(_0x575540=(_0x494878?_0x7e0ee(_0x12f67d,_0x31f99d,_0x575540):_0x7e0ee(_0x575540))||_0x575540);return _0x494878&&_0x575540&&to(_0x12f67d,_0x31f99d,_0x575540),_0x575540;},_s=(_0x1383bb,_0x406f6b)=>(_0x472e65,_0x3d7bd8)=>_0x406f6b(_0x472e65,_0x3d7bd8,_0x1383bb);let Ot=class{constructor(_0xb0ba14,_0x55c1e7){const _0xe1231b=_0x87081d;this[_0xe1231b(0x252)]=_0xb0ba14,this[_0xe1231b(0x4b5)]=_0x55c1e7;}async[_0x87081d(0x345)](_0x20d963,_0x9ac43e){const _0x24ff0f=_0x87081d;var _0x2d3c8f;const {unitID:_0x29d5f0,type:_0xdfae06,revision:_0x587e8e=0x0}=_0x9ac43e,_0x2a472d=this[_0x24ff0f(0x1fe)]()+'/'+_0xdfae06+_0x24ff0f(0x418)+_0x29d5f0+_0x24ff0f(0x40f)+_0x587e8e,_0x35d4fe=(await this[_0x24ff0f(0x4b5)]['get'](_0x2a472d))[_0x24ff0f(0x4e5)],_0x14d294=(_0x2d3c8f=_0x35d4fe[_0x24ff0f(0x362)])==null?void 0x0:_0x2d3c8f['workbook'];if(_0x14d294){const _0x499387=_0x14d294==null?void 0x0:_0x14d294[_0x24ff0f(0x3cc)],_0x21dd61=_0x310092['encode'](_0x59c020(_0x499387));_0x14d294[_0x24ff0f(0x3cc)]=_0x21dd61,Object['entries'](_0x14d294[_0x24ff0f(0x4c9)])[_0x24ff0f(0x1c8)](([,_0x5ca978])=>{const _0x47a43e=_0x24ff0f,_0x17203c=_0x5ca978[_0x47a43e(0x3cc)],_0x38ac07=_0x310092[_0x47a43e(0x4d9)](_0x59c020(_0x17203c));_0x5ca978[_0x47a43e(0x3cc)]=_0x38ac07;});}return _0x35d4fe;}async[_0x87081d(0x24f)](_0x1f9ad6,_0x164dc9){const _0x3f4ed1=_0x87081d,{unitID:_0x4d00f6,type:_0x5dd99b,blockID:_0xcc164a}=_0x164dc9,_0x438351=this[_0x3f4ed1(0x49f)]()+'/'+_0x5dd99b+_0x3f4ed1(0x418)+_0x4d00f6+'/block/'+_0xcc164a;return(await this[_0x3f4ed1(0x4b5)][_0x3f4ed1(0x1e9)](_0x438351))['body'];}async[_0x87081d(0x26f)](_0x4b3ba3,_0x101bdc){const _0x3f58e5=_0x87081d,{unitID:_0x21b7e3,type:_0xf31b21,from:_0x7f45bb,to:_0x13a0f4}=_0x101bdc,_0x49fa80=this[_0x3f58e5(0x49f)]()+'/'+_0xf31b21+_0x3f58e5(0x418)+_0x21b7e3+'/fetchmissing?from='+_0x7f45bb+_0x3f58e5(0x24b)+_0x13a0f4;return(await this['_httpService'][_0x3f58e5(0x1e9)](_0x49fa80))['body'];}[_0x87081d(0x1fe)](){const _0x50cd39=_0x87081d;var _0x2c6424;return(_0x2c6424=this['_configService'][_0x50cd39(0x38a)](hn))!=null?_0x2c6424:this[_0x50cd39(0x49f)]();}['_getAPIPrefix'](){const _0x5c644c=_0x87081d;var _0x278346;return(_0x278346=this['_configService'][_0x5c644c(0x38a)](an))!=null?_0x278346:cn;}async[_0x87081d(0x492)](_0x2dcb80,_0x359f08){const _0x1fc136=_0x87081d,_0xbd252e=_0x1fc136(0x34f)+_0x359f08[_0x1fc136(0x47c)]+'/unit/'+_0x359f08['unitID']+_0x1fc136(0x4cb);return(await this[_0x1fc136(0x4b5)][_0x1fc136(0x1e9)](_0xbd252e,{'params':{'resourceId':JSON[_0x1fc136(0x2e5)](_0x359f08[_0x1fc136(0x1f3)])}}))[_0x1fc136(0x4e5)];}[_0x87081d(0x22e)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x87081d(0x1d6)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x87081d(0x493)](){const _0x2cc682=_0x87081d;throw new Error(_0x2cc682(0x1be));}};Ot=io([_s(0x0,_0x5d255f),_s(0x1,_0x1b956a(_0x3db34c))],Ot);var no=Object[_0x87081d(0x318)],ro=Object['getOwnPropertyDescriptor'],oo=(_0x362120,_0x4d6a8e,_0x2c7c96,_0x51a1f1)=>{const _0xaddef2=_0x87081d;for(var _0x588337=_0x51a1f1>0x1?void 0x0:_0x51a1f1?ro(_0x4d6a8e,_0x2c7c96):_0x4d6a8e,_0x33fa30=_0x362120[_0xaddef2(0x46a)]-0x1,_0x532459;_0x33fa30>=0x0;_0x33fa30--)(_0x532459=_0x362120[_0x33fa30])&&(_0x588337=(_0x51a1f1?_0x532459(_0x4d6a8e,_0x2c7c96,_0x588337):_0x532459(_0x588337))||_0x588337);return _0x51a1f1&&_0x588337&&no(_0x4d6a8e,_0x2c7c96,_0x588337),_0x588337;},Pe=(_0x94d0b,_0x336930)=>(_0x16c36c,_0x52a98d)=>_0x336930(_0x16c36c,_0x52a98d,_0x94d0b);let Dt=class extends _0x54179a{constructor(_0xa769e3,_0x3ff0e4,_0x51e1c6,_0x12e179,_0x5cf3c2){const _0x3c46f8=_0x87081d;super(_0xa769e3,_0x3ff0e4,_0x51e1c6),this[_0x3c46f8(0x290)]=_0x12e179,this[_0x3c46f8(0x3e7)]=_0x5cf3c2;}['transformUndoRedo'](_0x1bf162,_0x3e23ba){const _0x339a5c=_0x87081d,_0x1f09e9=this['_getUndoStack'](_0x1bf162);if(_0x1f09e9)try{const _0x131b87=this[_0x339a5c(0x4d3)](_0x1f09e9,_0x3e23ba);this[_0x339a5c(0x1e4)](_0x1bf162,_0x131b87);}catch(_0x4ef936){this[_0x339a5c(0x3e7)][_0x339a5c(0x289)]('[CollaborationUndoRedoService]',_0x4ef936),this[_0x339a5c(0x37b)](_0x1bf162);}const _0x34b9d2=this[_0x339a5c(0x49b)](_0x1bf162);if(_0x34b9d2)try{const _0xbc79dc=this['_transformStack'](_0x34b9d2,_0x3e23ba);this['_substituteRedoStack'](_0x1bf162,_0xbc79dc);}catch(_0xa81953){this[_0x339a5c(0x3e7)][_0x339a5c(0x289)](_0xa81953),this[_0x339a5c(0x292)](_0x1bf162);}}[_0x87081d(0x37b)](_0x1a2b80){const _0x315643=_0x87081d,_0x4f7043=this[_0x315643(0x48d)](_0x1a2b80);_0x4f7043&&(_0x4f7043['length']=0x0,this[_0x315643(0x2ef)]());}[_0x87081d(0x292)](_0x5cbb9a){const _0x12a96f=_0x87081d,_0x598552=this[_0x12a96f(0x49b)](_0x5cbb9a);_0x598552&&(_0x598552[_0x12a96f(0x46a)]=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x33701a,_0x1cf17c){const _0x46d54d=_0x87081d;this[_0x46d54d(0x3c0)][_0x46d54d(0x4af)](_0x33701a,_0x1cf17c),this['_updateStatus']();}[_0x87081d(0x301)](_0x2309fa,_0x17a33b){const _0x403f07=_0x87081d;this[_0x403f07(0x423)][_0x403f07(0x4af)](_0x2309fa,_0x17a33b),this[_0x403f07(0x2ef)]();}[_0x87081d(0x4d3)](_0x1e79d1,_0x2f9cb3){const _0x3fd7a8=_0x87081d,_0x395c3b=[];let _0x2680d6=_0x2f9cb3,_0x29d7ce=_0x2f9cb3;for(let _0x3d1d8f=_0x1e79d1[_0x3fd7a8(0x46a)]-0x1;_0x3d1d8f>=0x0;_0x3d1d8f--){const {unitID:_0x3f340c,undoMutations:_0x5fdcba,redoMutations:_0x2900cd}=_0x1e79d1[_0x3d1d8f],_0x3b190d=this['_transformService'][_0x3fd7a8(0x43b)](_0x2680d6,_0x5fdcba),_0xa33ac8=this['_transformService'][_0x3fd7a8(0x43b)](_0x29d7ce,_0x2900cd);if(_0x519c1a(_0x3b190d)||_0x519c1a(_0xa33ac8)){this['_logService'][_0x3fd7a8(0x289)](_0x3fd7a8(0x42c),'transformStack\x20failed!',_0x3b190d,_0xa33ac8);break;}_0x2680d6=_0x3b190d[_0x3fd7a8(0x39e)],_0x29d7ce=_0xa33ac8[_0x3fd7a8(0x39e)],_0x395c3b[_0x3fd7a8(0x1ab)]({'unitID':_0x3f340c,'undoMutations':_0x3b190d[_0x3fd7a8(0x36f)],'redoMutations':_0xa33ac8[_0x3fd7a8(0x36f)]});}return _0x395c3b['reverse']();}};Dt=oo([Pe(0x0,_0x1d5396),Pe(0x1,_0x15992c),Pe(0x2,_0x492a6b),Pe(0x3,_0x4e495a),Pe(0x4,_0x82a609)],Dt);class ao extends _0x53ce5a{constructor(){const _0x457cbf=_0x87081d;super(),_(this,_0x457cbf(0x294)),this[_0x457cbf(0x294)]=_0x28ccd8(window,'popstate')[_0x457cbf(0x3b6)](_0x3c23a9(this[_0x457cbf(0x20e)]),_0x3b034a(0x1),_0x310a6c(void 0x0));}[_0x87081d(0x211)](_0x5c90c9,_0xd9463b,_0x13eae7=!0x1){const _0x53e5b9=_0x87081d,_0x424a22=new URL(window[_0x53e5b9(0x45f)]['href']);_0x424a22[_0x53e5b9(0x27d)][_0x53e5b9(0x4af)](_0x5c90c9,_0xd9463b),_0x13eae7?window[_0x53e5b9(0x4f6)]['replaceState']('','',_0x424a22['toString']()):window['history'][_0x53e5b9(0x44e)]('','',_0x424a22['toString']());}['removeParam'](_0x274447,_0x3e0380=!0x1){const _0x5cc368=_0x87081d,_0x5530f5=new URL(window[_0x5cc368(0x45f)][_0x5cc368(0x3e3)]);_0x5530f5[_0x5cc368(0x27d)]['delete'](_0x274447),_0x3e0380?window[_0x5cc368(0x4f6)][_0x5cc368(0x36e)]('','',_0x5530f5['toString']()):window[_0x5cc368(0x4f6)]['pushState']('','',_0x5530f5['toString']());}[_0x87081d(0x1f6)](_0x34f942){const _0x354f61=_0x87081d;var _0x21a437;return(_0x21a437=new URL(window[_0x354f61(0x45f)][_0x354f61(0x3e3)])[_0x354f61(0x27d)][_0x354f61(0x1e9)](_0x34f942))!=null?_0x21a437:void 0x0;}}const lt=_0x87081d(0x1d7),co=_0x87081d(0x273),ho=_0x87081d(0x4bb),we=0x6,_o=1.5,ut=0x4,lo=1.5,uo=_0x87081d(0x337);class ls{constructor(_0x39d7f3,_0x3d907f,_0x58b6c6,_0x1208ba){const _0x53e21=_0x87081d;_(this,_0x53e21(0x45c),[]),_(this,'_anchor',null),_(this,_0x53e21(0x484),null),_(this,_0x53e21(0x1d3),null),_(this,_0x53e21(0x457),null),_(this,'_eventUnsubscribe',null),(this[_0x53e21(0x2bf)]=_0x39d7f3,this['_scene']=_0x3d907f,this[_0x53e21(0x29b)]=_0x58b6c6,this[_0x53e21(0x1c2)]=_0x1208ba,this[_0x53e21(0x2a9)]());}set[_0x87081d(0x4ce)](_0x1d601a){const _0x2fec52=_0x87081d;_0x1d601a?(this[_0x2fec52(0x1d3)]&&this[_0x2fec52(0x1d3)][_0x2fec52(0x412)](),this['_textBubble']&&this[_0x2fec52(0x484)][_0x2fec52(0x410)]()):(this['_anchorDot']&&this[_0x2fec52(0x1d3)][_0x2fec52(0x410)](),this[_0x2fec52(0x484)]&&this[_0x2fec52(0x484)][_0x2fec52(0x412)]());}[_0x87081d(0x23c)](){const _0x53dc4f=_0x87081d;for(const _0x2584a5 of this[_0x53dc4f(0x45c)])_0x2584a5[_0x53dc4f(0x23c)]();this[_0x53dc4f(0x484)]&&this[_0x53dc4f(0x484)][_0x53dc4f(0x23c)](),this[_0x53dc4f(0x1d3)]&&this[_0x53dc4f(0x1d3)][_0x53dc4f(0x23c)](),this[_0x53dc4f(0x49d)]&&this[_0x53dc4f(0x49d)]['dispose'](),this['_eventUnsubscribe']&&this[_0x53dc4f(0x25d)]();}[_0x87081d(0x2a9)](){const _0x2401c4=_0x87081d;var _0x45d675;const {_docSkeleton:_0x2af747,_document:_0x5c8b25}=this,{color:_0x35202b,name:_0x13ab1d,ranges:_0x59932d}=this[_0x2401c4(0x2bf)],_0x4fc5cc=_0x5c8b25[_0x2401c4(0x2e3)](),{docsLeft:_0x2b2964,docsTop:_0x17a46d}=_0x4fc5cc,_0x1ee52f=new _0x5e6c7c(_0x4fc5cc,_0x2af747);for(const {startOffset:_0x455a33,endOffset:_0x3d42ad,collapsed:_0x3bdfb2,isActive:_0x111584}of _0x59932d){const _0x4003dc=_0x2af747[_0x2401c4(0x3e4)](_0x455a33),_0x46efa9=_0x2af747['findNodePositionByCharIndex'](_0x3d42ad);if(_0x111584){const {contentBoxPointGroup:_0x3dc789}=_0x1ee52f[_0x2401c4(0x3ad)](_0x46efa9,_0x46efa9);if(_0x3dc789['length']===0x0)continue;this['_drawAnchor'](_0x35202b,_0x3dc789,_0x2b2964,_0x17a46d,_0x13ab1d),this[_0x2401c4(0x25d)]=this[_0x2401c4(0x2dd)]();}if(!_0x3bdfb2&&_0x4003dc&&_0x46efa9){if(_0x4c5cc1(_0x4003dc,_0x46efa9)){const _0x1f73f8=new _0x564309(_0x4fc5cc,_0x2af747),{pointGroup:_0x3f6051}=(_0x45d675=_0x1f73f8[_0x2401c4(0x3ad)](_0x4003dc,_0x46efa9))!=null?_0x45d675:{};if(_0x3f6051==null||_0x3f6051['length']===0x0)continue;this[_0x2401c4(0x311)](_0x35202b,_0x3f6051,_0x2b2964,_0x17a46d);}else{const {contentBoxPointGroup:_0x9a0c78}=_0x1ee52f[_0x2401c4(0x3ad)](_0x4003dc,_0x46efa9);if(_0x9a0c78[_0x2401c4(0x46a)]===0x0)continue;this[_0x2401c4(0x2c1)](_0x35202b,_0x9a0c78,_0x2b2964,_0x17a46d);}}}}[_0x87081d(0x2cb)](_0x2b6bff,_0x5098f4,_0x5170f1,_0x4656cd,_0x298718){const _0x328f73=_0x87081d,_0x4417a5=this[_0x328f73(0x3ca)](_0x5098f4),{left:_0x376e36,top:_0x21d9e1,height:_0x298c9d}=_0x4417a5,_0x5dd731=this[_0x328f73(0x1ef)](),_0x2f688e=lo/_0x5dd731,_0x1d5a04=new _0x31ca09(lt+_0x1540f0[_0x328f73(0x2b1)](we),{'left':_0x376e36+_0x5170f1-_0x2f688e,'top':_0x21d9e1+_0x4656cd,'height':_0x298c9d,'width':_o,'fill':_0x2b6bff||_0x5664c9(_0x5212b1[_0x328f73(0x4b4)],0x0),'strokeWidth':_0x2f688e,'stroke':uo,'evented':!0x0});this['_anchor']=_0x1d5a04,this['_scene'][_0x328f73(0x238)](_0x1d5a04,_0x130379);const _0x51215f=new _0x31ca09(lt+_0x1540f0[_0x328f73(0x2b1)](we),{'left':_0x376e36+_0x5170f1-_0x2f688e,'top':_0x21d9e1+_0x4656cd-ut/0x2,'height':ut,'width':ut,'fill':_0x2b6bff||_0x5664c9(_0x5212b1[_0x328f73(0x4b4)],0x0),'strokeWidth':0x0,'stroke':_0x2b6bff||_0x5664c9(_0x5212b1['black'],0x0),'evented':!0x1});this[_0x328f73(0x1d3)]=_0x51215f,this[_0x328f73(0x3df)][_0x328f73(0x238)](_0x51215f,_0x130379);const _0x4d57e4=new it(lt+_0x1540f0[_0x328f73(0x2b1)](we),{'left':_0x376e36+_0x5170f1-_0x2f688e,'top':_0x21d9e1+_0x4656cd-ye,'text':_0x298718,'color':_0x2b6bff});this[_0x328f73(0x484)]=_0x4d57e4,this['_scene']['addObject'](_0x4d57e4,_0x130379),this[_0x328f73(0x4ce)]=!0x1;}[_0x87081d(0x2dd)](){const _0x56e8f4=_0x87081d,_0x2b9710=this[_0x56e8f4(0x49d)][_0x56e8f4(0x19f)][_0x56e8f4(0x3fd)](()=>{const _0x5149df=_0x56e8f4;this[_0x5149df(0x4ce)]=!0x0;}),_0x55f824=this['_anchor'][_0x56e8f4(0x3ce)][_0x56e8f4(0x3fd)](()=>{const _0x3c08ab=_0x56e8f4;this[_0x3c08ab(0x457)]&&clearTimeout(this[_0x3c08ab(0x457)]),this['_hideTimer']=setTimeout(()=>{const _0xb4e265=_0x3c08ab;this[_0xb4e265(0x4ce)]=!0x1;},0x7d0);});return()=>{const _0x9b0155=_0x56e8f4;_0x2b9710[_0x9b0155(0x2a8)](),_0x55f824[_0x9b0155(0x2a8)]();};}[_0x87081d(0x2c1)](_0xfd8d4a,_0x477c94,_0x4326da,_0x1aad2f){const _0x1a64cc=_0x87081d,_0x4871b9=new _0x5c6173(_0xfd8d4a)[_0x1a64cc(0x1ca)](0.2)[_0x1a64cc(0x2de)](),_0x4cb855=new _0x1ef824(co+_0x1540f0['generateRandomId'](we),{'pointsGroup':_0x477c94,'fill':_0x4871b9||_0x5664c9(_0x5212b1[_0x1a64cc(0x4b4)],0.2),'left':_0x4326da,'top':_0x1aad2f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1a64cc(0x45c)][_0x1a64cc(0x1ab)](_0x4cb855),this[_0x1a64cc(0x3df)][_0x1a64cc(0x238)](_0x4cb855,_0x130379);}['_drawRectRange'](_0x151fca,_0x57562a,_0x2eb4b5,_0x734f18){const _0x4aa825=_0x87081d,_0x45d1f3=new _0x5c6173(_0x151fca)[_0x4aa825(0x1ca)](0.2)[_0x4aa825(0x2de)](),_0x3943a4=new _0x1ef824(ho+_0x1540f0['generateRandomId'](we),{'pointsGroup':_0x57562a,'fill':_0x45d1f3||_0x5664c9(_0x5212b1[_0x4aa825(0x4b4)],0.2),'left':_0x2eb4b5,'top':_0x734f18,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4aa825(0x45c)][_0x4aa825(0x1ab)](_0x3943a4),this[_0x4aa825(0x3df)][_0x4aa825(0x238)](_0x3943a4,_0x130379);}[_0x87081d(0x3ca)](_0x53b961){const _0x3755a7=_0x53b961[0x0],_0x1f80f1=_0x3755a7[0x0],_0x5e7660=_0x3755a7[0x2],{x:_0x1a2c55,y:_0x6cc0a8}=_0x1f80f1,{x:_0x151e93,y:_0x2ac20c}=_0x5e7660;return{'left':_0x1a2c55,'top':_0x6cc0a8,'width':_0x151e93-_0x1a2c55,'height':_0x2ac20c-_0x6cc0a8};}[_0x87081d(0x1ef)](){const _0x5bbf09=_0x87081d,{scaleX:_0x49eb72,scaleY:_0x27cf74}=this[_0x5bbf09(0x3df)][_0x5bbf09(0x367)]();return Math['max'](_0x49eb72,_0x27cf74);}}var mo=Object[_0x87081d(0x318)],fo=Object['getOwnPropertyDescriptor'],go=(_0x54b10b,_0x59979c,_0x5267db,_0x1a2db1)=>{for(var _0xe8b28e=_0x1a2db1>0x1?void 0x0:_0x1a2db1?fo(_0x59979c,_0x5267db):_0x59979c,_0x2bebe2=_0x54b10b['length']-0x1,_0x29350b;_0x2bebe2>=0x0;_0x2bebe2--)(_0x29350b=_0x54b10b[_0x2bebe2])&&(_0xe8b28e=(_0x1a2db1?_0x29350b(_0x59979c,_0x5267db,_0xe8b28e):_0x29350b(_0xe8b28e))||_0xe8b28e);return _0x1a2db1&&_0xe8b28e&&mo(_0x59979c,_0x5267db,_0xe8b28e),_0xe8b28e;},je=(_0x59ff05,_0x2cc2c4)=>(_0x4ceb6e,_0xaecc7c)=>_0x2cc2c4(_0x4ceb6e,_0xaecc7c,_0x59ff05);let Fe=class extends _0x53ce5a{constructor(_0x81b978,_0x20bfc5,_0x103a29,_0x23c5a5,_0x8a094d){const _0xfe7ba=_0x87081d;super(),_(this,_0xfe7ba(0x48c),[]),_(this,_0xfe7ba(0x1eb),[]),(this[_0xfe7ba(0x485)]=_0x81b978,this['_docSkeletonManagerService']=_0x20bfc5,this[_0xfe7ba(0x4b8)]=_0x103a29,this[_0xfe7ba(0x248)]=_0x23c5a5,this[_0xfe7ba(0x430)]=_0x8a094d,this[_0xfe7ba(0x4fd)]());}[_0x87081d(0x4fd)](){const _0x1daa8e=_0x87081d,_0x33f980=this[_0x1daa8e(0x485)][_0x1daa8e(0x20b)],_0x39c622=this[_0x1daa8e(0x26d)];this[_0x1daa8e(0x343)](_0x138d6c([this[_0x1daa8e(0x4b8)][_0x1daa8e(0x23b)](_0x33f980),this[_0x1daa8e(0x430)][_0x1daa8e(0x383)]])[_0x1daa8e(0x3b6)](_0x414fcf(([_0x5861dd,_0x36edb0])=>({'skeleton':_0x39c622[_0x1daa8e(0x2d7)](),'cursors':[..._0x5861dd[_0x1daa8e(0x247)]()][_0x1daa8e(0x29e)](_0x35b84c=>({..._0x35b84c,'color':_0x36edb0[_0x35b84c[_0x1daa8e(0x295)]]}))})))[_0x1daa8e(0x347)](_0x119cf0=>{const _0x194a59=_0x1daa8e;if(this[_0x194a59(0x3d9)](),_0x119cf0){const {skeleton:_0x3c6aa5,cursors:_0x4e52b8}=_0x119cf0;this['_updateCollabCursors'](_0x3c6aa5,_0x4e52b8);}})),this['_initResize'](),this[_0x1daa8e(0x2a2)]();}['_updateCollabCursors'](_0x59f76f,_0xc2d20f){const _0x3eba84=_0x87081d,{scene:_0x53ae77,mainComponent:_0x27e9cf}=this[_0x3eba84(0x485)],_0xe2fd4f=_0xc2d20f[_0x3eba84(0x234)](_0x5c6722=>new ls(_0x5c6722,_0x53ae77,_0x59f76f,_0x27e9cf));this[_0x3eba84(0x48c)]=_0xe2fd4f,this[_0x3eba84(0x1eb)]=_0xc2d20f;}[_0x87081d(0x2ae)](){const _0x162d66=_0x87081d;this[_0x162d66(0x3d9)]();const {scene:_0x4e72d1,mainComponent:_0x1e12eb}=this[_0x162d66(0x485)],_0x5921f9=this['_docSkeletonManagerService'][_0x162d66(0x2d7)](),_0x186b85=this[_0x162d66(0x1eb)]['map'](_0x539be7=>new ls(_0x539be7,_0x4e72d1,_0x5921f9,_0x1e12eb));this[_0x162d66(0x48c)]=_0x186b85;}[_0x87081d(0x3d9)](){const _0x42bc7f=_0x87081d;this['_cursorShapes']['forEach'](_0x18c8ab=>_0x18c8ab['dispose']()),this[_0x42bc7f(0x48c)]=[];}['_initCommandExecutedListener'](){const _0x5e4e90=_0x87081d,_0x5ec101=[_0x46d2fe['id']];this[_0x5e4e90(0x343)](this[_0x5e4e90(0x248)][_0x5e4e90(0x3b9)](_0x7dbe2=>{const _0x3f3729=_0x5e4e90;_0x5ec101[_0x3f3729(0x309)](_0x7dbe2['id'])&&_0x7dbe2[_0x3f3729(0x428)][_0x3f3729(0x20b)]===this[_0x3f3729(0x485)][_0x3f3729(0x20b)]&&this[_0x3f3729(0x2ae)]();}));}[_0x87081d(0x26b)](){const _0x3694cf=_0x87081d;this[_0x3694cf(0x343)](_0x240261(this[_0x3694cf(0x485)][_0x3694cf(0x274)][_0x3694cf(0x47b)])['pipe'](_0x381935(_0x49d2b7=>_0x49d2b7[_0x3694cf(0x47c)]===_0x2cbd51[_0x3694cf(0x350)]),_0xcfa107(0x10))[_0x3694cf(0x347)](()=>{const _0x5ee2eb=_0x3694cf;this[_0x5ee2eb(0x2ae)]();}));}};Fe=go([_0x76d0ae(_0x28e3b0[_0x87081d(0x205)],Fe),je(0x1,_0x1b956a(_0x26e3ab)),je(0x2,_0x1b956a(ge)),je(0x3,_0x15992c),je(0x4,_0x1b956a(_0x4a7906))],Fe);var So=Object[_0x87081d(0x318)],po=Object[_0x87081d(0x314)],vo=(_0x2aacec,_0x346226,_0x8ed806,_0x2c70a1)=>{const _0x304379=_0x87081d;for(var _0x41d075=_0x2c70a1>0x1?void 0x0:_0x2c70a1?po(_0x346226,_0x8ed806):_0x346226,_0x5f42f1=_0x2aacec[_0x304379(0x46a)]-0x1,_0xee53f3;_0x5f42f1>=0x0;_0x5f42f1--)(_0xee53f3=_0x2aacec[_0x5f42f1])&&(_0x41d075=(_0x2c70a1?_0xee53f3(_0x346226,_0x8ed806,_0x41d075):_0xee53f3(_0x41d075))||_0x41d075);return _0x2c70a1&&_0x41d075&&So(_0x346226,_0x8ed806,_0x41d075),_0x41d075;},dt=(_0x339711,_0x11f644)=>(_0x45ad68,_0x199acb)=>_0x11f644(_0x45ad68,_0x199acb,_0x339711);let Qe=class{constructor(_0x95fbd9,_0xc90488,_0x4b26ef){const _0x3883e6=_0x87081d;this[_0x3883e6(0x252)]=_0x95fbd9,this['_httpService']=_0xc90488,this[_0x3883e6(0x3b4)]=_0x4b26ef,this['init']();}[_0x87081d(0x310)](){const _0x558963=_0x87081d;this['_httpService'][_0x558963(0x395)]({'priority':0x1,'interceptor':(_0x4fa7b5,_0x2485f1)=>_0x2485f1(_0x4fa7b5)[_0x558963(0x3b6)](_0x2ccf11(async _0x595f8d=>{const _0x526aee=_0x558963,_0x52b1e8=_0x595f8d;if(_0x52b1e8[_0x526aee(0x3a9)]===0x191&&window['confirm'](this[_0x526aee(0x3b4)]['t'](_0x526aee(0x2fa)))){const _0x22d163=window[_0x526aee(0x251)](window['location'][_0x526aee(0x3e3)]);window[_0x526aee(0x45f)][_0x526aee(0x3e3)]=this[_0x526aee(0x354)]()+_0x526aee(0x3f9)+_0x22d163;}return _0x52b1e8;}))});}[_0x87081d(0x354)](){const _0x10e661=_0x87081d;var _0x290166;return(_0x290166=this[_0x10e661(0x252)][_0x10e661(0x38a)](Rn))!=null?_0x290166:Tn;}};Qe=vo([dt(0x0,_0x5d255f),dt(0x1,_0x1b956a(_0x3db34c)),dt(0x2,_0x1b956a(_0x2db4b8))],Qe);var Io=Object[_0x87081d(0x318)],Eo=Object[_0x87081d(0x314)],Co=(_0x4e926d,_0x1ade63,_0x41aaee,_0x3cf3e8)=>{const _0x2e504b=_0x87081d;for(var _0x1f9dba=_0x3cf3e8>0x1?void 0x0:_0x3cf3e8?Eo(_0x1ade63,_0x41aaee):_0x1ade63,_0x43fa10=_0x4e926d[_0x2e504b(0x46a)]-0x1,_0x143f1f;_0x43fa10>=0x0;_0x43fa10--)(_0x143f1f=_0x4e926d[_0x43fa10])&&(_0x1f9dba=(_0x3cf3e8?_0x143f1f(_0x1ade63,_0x41aaee,_0x1f9dba):_0x143f1f(_0x1f9dba))||_0x1f9dba);return _0x3cf3e8&&_0x1f9dba&&Io(_0x1ade63,_0x41aaee,_0x1f9dba),_0x1f9dba;},us=(_0x4ef6d1,_0x4f59a3)=>(_0x1c4eb3,_0x561e95)=>_0x4f59a3(_0x1c4eb3,_0x561e95,_0x4ef6d1);const bo=_0x87081d(0x381),Ro='/universer-api/authz';let Pt=class extends _0x1ee863{constructor(_0x47dfaa,_0xf8cb22){const _0x458a85=_0x87081d;super(),this[_0x458a85(0x26a)]=_0x47dfaa,this['_configService']=_0xf8cb22,this['_initMergeInterceptor']();}[_0x87081d(0x4df)](){const _0x23e4d1=_0x87081d,_0x3e38ff=this;this[_0x23e4d1(0x343)](this['_HTTPService'][_0x23e4d1(0x395)]({'priority':0x3e7,'interceptor':_0x5c8e22({'isMatch'(_0x420f28){const _0x3818ec=_0x23e4d1;var _0xc9bc6e;if(_0x420f28['method']===_0x3818ec(0x1bd)&&((_0xc9bc6e=_0x420f28[_0x3818ec(0x216)])!=null&&_0xc9bc6e[_0x3818ec(0x4e5)])){const {objectID:_0x4d2ad7,objectType:_0x99f79e}=_0x420f28['requestParams']['body']||{};if(!_0x4d2ad7||_0x99f79e===void 0x0)return!0x1;const _0x3833ba=_0x3e38ff[_0x3818ec(0x1a9)]()+'/'+_0x99f79e+_0x3818ec(0x3bb)+_0x4d2ad7+_0x3818ec(0x426);if(_0x420f28[_0x3818ec(0x1bc)]===_0x3833ba)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x570c11){const _0x1aef98=_0x23e4d1;var _0x3cc1c1;return(_0x3cc1c1=_0x570c11[_0x1aef98(0x216)])==null?void 0x0:_0x3cc1c1[_0x1aef98(0x4e5)];},'mergeParamsToRequest'(_0x34af8d,_0x546094){const _0x2ff26e=_0x23e4d1,_0x2f3ddd=_0x3e38ff[_0x2ff26e(0x1a9)]()+_0x2ff26e(0x455),_0x2a724e=_0x34af8d[_0x2ff26e(0x1ec)]((_0x533bfc,_0x1c8dc3)=>{const _0xdcf547=_0x2ff26e,{unitID:_0xaf6f9e,objectID:_0x1f8529,objectType:_0x8e4b2e,actions:_0x5ec45b}=_0x1c8dc3;return _0x533bfc[_0xaf6f9e]||(_0x533bfc[_0xaf6f9e]={}),_0x533bfc[_0xaf6f9e][_0x1f8529]||(_0x533bfc[_0xaf6f9e][_0x1f8529]={'objectID':_0x1f8529,'objectType':_0x8e4b2e,'actions':[]}),_0x533bfc[_0xaf6f9e][_0x1f8529][_0xdcf547(0x4f1)][_0xdcf547(0x1ab)](..._0x5ec45b),_0x533bfc;},{}),_0x1768ce=[];for(const _0x457268 in _0x2a724e)for(const _0x213b7e in _0x2a724e[_0x457268]){const {actions:_0x580e4a,objectType:_0x4f5f16}=_0x2a724e[_0x457268][_0x213b7e],_0x562331=[...new Set(_0x580e4a)];_0x1768ce[_0x2ff26e(0x1ab)]({'unitID':_0x457268,'objectID':_0x213b7e,'objectType':_0x4f5f16,'actions':_0x562331});}return new _0x3fce40(_0x2ff26e(0x1bd),_0x2f3ddd,{'headers':_0x546094[_0x2ff26e(0x499)],'withCredentials':_0x546094[_0x2ff26e(0x497)],'responseType':_0x546094[_0x2ff26e(0x1ea)],'body':{'requests':_0x1768ce}});}},{'distributeResult'(_0x1f9d92,_0x381f40){const {objectActions:_0x1f9663}=_0x1f9d92;return _0x381f40['map'](_0x3a94f9=>{const _0x1234fc=_0x1fa5,{unitID:_0x2d72ef,objectID:_0x3d8d38,actions:_0x1bff16}=_0x3a94f9,_0x611090=_0x1f9663[_0x1234fc(0x3eb)](_0xaf7fe4=>_0xaf7fe4['unitID']===_0x2d72ef&&_0xaf7fe4['objectID']===_0x3d8d38),_0x44f061=_0x1bff16[_0x1234fc(0x234)](_0x42bdab=>_0x611090==null?void 0x0:_0x611090[_0x1234fc(0x4f1)][_0x1234fc(0x3eb)](_0x4ddfd6=>_0x4ddfd6['action']===_0x42bdab))[_0x1234fc(0x421)](_0x5a0a72=>!!_0x5a0a72);return{'config':_0x3a94f9,'result':{'actions':_0x44f061,'error':_0x1f9d92['error']}};});}})}));}[_0x87081d(0x1a9)](){const _0x558900=_0x87081d;var _0x460b86;return(_0x460b86=this[_0x558900(0x252)][_0x558900(0x38a)](bo))!=null?_0x460b86:Ro;}async['create'](_0x33cb7a){const _0x5d0946=_0x87081d,_0x40c007=this[_0x5d0946(0x1a9)]()+'/'+_0x33cb7a[_0x5d0946(0x30d)]+'/object';return(await this['_HTTPService'][_0x5d0946(0x3f6)](_0x40c007,{'body':_0x33cb7a}))['body'][_0x5d0946(0x355)]||'';}async[_0x87081d(0x4fc)](_0x219c39){const _0x23dfcb=_0x87081d,_0x2878ad=this[_0x23dfcb(0x1a9)]()+_0x23dfcb(0x34d);return(await this[_0x23dfcb(0x26a)][_0x23dfcb(0x3f6)](_0x2878ad,{'body':_0x219c39}))[_0x23dfcb(0x4e5)][_0x23dfcb(0x324)];}async[_0x87081d(0x269)](_0x427e8c){const _0x47c33e=_0x87081d,_0x6c142c=this[_0x47c33e(0x1a9)]()+'/'+_0x427e8c[_0x47c33e(0x30d)]+_0x47c33e(0x3bb)+_0x427e8c['objectID'];await this[_0x47c33e(0x26a)]['put'](_0x6c142c,{'body':_0x427e8c});}async[_0x87081d(0x435)](_0x25a863){const _0x2e50e2=_0x87081d,_0xe79aa3=this[_0x2e50e2(0x1a9)]()+'/'+_0x25a863['objectType']+_0x2e50e2(0x3bb)+_0x25a863[_0x2e50e2(0x355)]+_0x2e50e2(0x426);return(await this[_0x2e50e2(0x26a)]['post'](_0xe79aa3,{'body':_0x25a863}))['body'][_0x2e50e2(0x4f1)];}async['batchAllowed'](_0x27464b){const _0x4ee6ce=_0x87081d,_0x11ca4a=this['_getAPIPrefixPath']()+_0x4ee6ce(0x455);return(await this[_0x4ee6ce(0x26a)]['post'](_0x11ca4a,{'body':{'requests':_0x27464b}}))[_0x4ee6ce(0x4e5)][_0x4ee6ce(0x370)];}async[_0x87081d(0x2a7)](_0x2168ac){const _0x29e6f7=_0x87081d,_0x266186=this[_0x29e6f7(0x1a9)]()+'/'+_0x2168ac[_0x29e6f7(0x30d)]+_0x29e6f7(0x4da),_0x18a5ab=await this[_0x29e6f7(0x26a)][_0x29e6f7(0x3f6)](_0x266186,{'body':_0x2168ac});return{'roles':_0x18a5ab[_0x29e6f7(0x4e5)]['roles'],'actions':_0x18a5ab[_0x29e6f7(0x4e5)][_0x29e6f7(0x4f1)]};}async[_0x87081d(0x2e2)](_0x9ef6fa){const _0x44801b=_0x87081d,_0x390767=this['_getAPIPrefixPath']()+_0x44801b(0x4ad);await this[_0x44801b(0x26a)][_0x44801b(0x3c7)](_0x390767,{'params':{'collaboratorID':_0x9ef6fa[_0x44801b(0x398)],'objectID':_0x9ef6fa[_0x44801b(0x355)],'unitID':_0x9ef6fa[_0x44801b(0x3a8)]}});}async['updateCollaborator'](_0x4a9582){const _0x2f1666=_0x87081d,_0x3406ac=this[_0x2f1666(0x1a9)]()+_0x2f1666(0x4ad);await this[_0x2f1666(0x26a)][_0x2f1666(0x2d9)](_0x3406ac,{'body':_0x4a9582});}async[_0x87081d(0x1fa)](_0x3d3185){const _0xbf145a=_0x87081d,_0x3012ce=this[_0xbf145a(0x1a9)]()+_0xbf145a(0x4ad);await this['_HTTPService'][_0xbf145a(0x3f6)](_0x3012ce,{'body':_0x3d3185});}async[_0x87081d(0x229)](_0x10a948){const _0xc81142=_0x87081d,_0x464981=this['_getAPIPrefixPath']()+_0xc81142(0x4ad);return(await this['_HTTPService'][_0xc81142(0x1e9)](_0x464981,{'params':{'objectID':_0x10a948['objectID'],'unitID':_0x10a948[_0xc81142(0x3a8)]}}))[_0xc81142(0x4e5)]['collaborators'];}async['putCollaborators'](_0x182d74){const _0x36a0ff=_0x87081d,_0x4760c0=this[_0x36a0ff(0x1a9)]()+_0x36a0ff(0x4ad);await this[_0x36a0ff(0x26a)][_0x36a0ff(0x480)](_0x4760c0,{'body':_0x182d74});}};Pt=Co([us(0x0,_0x1b956a(_0x3db34c)),us(0x1,_0x1b956a(_0x5d255f))],Pt);var To=Object[_0x87081d(0x318)],Oo=Object['getOwnPropertyDescriptor'],Do=(_0x54c87e,_0x1ee92c,_0x18d196,_0x4fabf7)=>{const _0x6479c3=_0x87081d;for(var _0x48c974=_0x4fabf7>0x1?void 0x0:_0x4fabf7?Oo(_0x1ee92c,_0x18d196):_0x1ee92c,_0x205596=_0x54c87e[_0x6479c3(0x46a)]-0x1,_0x262a8c;_0x205596>=0x0;_0x205596--)(_0x262a8c=_0x54c87e[_0x205596])&&(_0x48c974=(_0x4fabf7?_0x262a8c(_0x1ee92c,_0x18d196,_0x48c974):_0x262a8c(_0x48c974))||_0x48c974);return _0x4fabf7&&_0x48c974&&To(_0x1ee92c,_0x18d196,_0x48c974),_0x48c974;},mt=(_0x51eefc,_0x39f9f5)=>(_0xa2083f,_0x10b52d)=>_0x39f9f5(_0xa2083f,_0x10b52d,_0x51eefc);const Po=[_0x87081d(0x399),_0x87081d(0x405),_0x87081d(0x473),_0x87081d(0x4f4),_0x87081d(0x37a)],wo=0x5*0x400*0x400,No=_0x87081d(0x288),Mo='/universer-api/stream/file/upload',Ao=_0x87081d(0x4a0),Uo=_0x87081d(0x1c5);let wt=class{constructor(_0x2ee05a,_0x2fdab8,_0x23a6a4){const _0x15df2c=_0x87081d;_(this,'_waitCount',0x0),_(this,_0x15df2c(0x27b),new _0x1ace47()),_(this,'change$',this['_change$']),_(this,'_imageSourceCache',new Map()),(this[_0x15df2c(0x4b5)]=_0x2ee05a,this['_configService']=_0x2fdab8,this[_0x15df2c(0x2bb)]=_0x23a6a4);}[_0x87081d(0x444)](_0x168486){const _0x395153=_0x87081d;this[_0x395153(0x1b9)]=_0x168486,this[_0x395153(0x27b)][_0x395153(0x4fe)](_0x168486);}['getImageSourceCache'](_0x56acc3,_0x321f73){const _0x5bba59=_0x87081d;if(_0x321f73===_0x434ac3[_0x5bba59(0x366)]){const _0x27431a=new Image();return _0x27431a[_0x5bba59(0x461)]=_0x56acc3,_0x27431a;}return this['_imageSourceCache'][_0x5bba59(0x1e9)](_0x56acc3);}[_0x87081d(0x447)](_0x334038,_0x3d4819,_0x109b1b){const _0x19ea01=_0x87081d;_0x3d4819===_0x434ac3[_0x19ea01(0x366)]||_0x109b1b==null||this[_0x19ea01(0x3e6)][_0x19ea01(0x4af)](_0x334038,_0x109b1b);}async[_0x87081d(0x43c)](_0x151dbc){const _0x48e284=_0x87081d;try{const _0x4c7b50=this['_replaceFileID'](this[_0x48e284(0x297)](),''+_0x151dbc),_0x4d0ed9=(await this[_0x48e284(0x4b5)][_0x48e284(0x1e9)](_0x4c7b50))[_0x48e284(0x4e5)];return _0x4d0ed9[_0x48e284(0x289)]&&_0x4d0ed9['error'][_0x48e284(0x1a7)]===Ps['OK']?Promise[_0x48e284(0x3cb)](_0x4d0ed9[_0x48e284(0x1bc)]):Promise[_0x48e284(0x378)](_0x4d0ed9[_0x48e284(0x289)]);}catch(_0x57ff1e){return Promise[_0x48e284(0x378)](_0x57ff1e);}}async[_0x87081d(0x21a)](_0x33eb3c){const _0x3c1d98=_0x87081d;let _0x2c71a1='';if(!Po['includes'](_0x33eb3c[_0x3c1d98(0x47c)]))return this[_0x3c1d98(0x2b0)](),Promise[_0x3c1d98(0x378)](new Error(_0x46d7f0[_0x3c1d98(0x375)]));if(_0x33eb3c[_0x3c1d98(0x25e)]>wo)return this[_0x3c1d98(0x2b0)](),Promise['reject'](new Error(_0x46d7f0['ERROR_EXCEED_SIZE']));try{const _0x34c4cf=new FormData();_0x34c4cf[_0x3c1d98(0x387)](_0x3c1d98(0x3d2),_0x33eb3c);const _0x650fc9=this['_univerInstanceService'][_0x3c1d98(0x4e7)](),_0x557545=_0x650fc9==null?void 0x0:_0x650fc9[_0x3c1d98(0x1b5)]();if(!_0x557545)throw new Error(_0x3c1d98(0x483));const _0x1fdaa5=this['_getUploadFileURL']()+_0x3c1d98(0x327)+_0x33eb3c['size'][_0x3c1d98(0x454)]()+_0x3c1d98(0x380)+ws['UnitEmbedded']+_0x3c1d98(0x429)+encodeURIComponent(_0x557545),_0x3f595e=await(await fetch(_0x1fdaa5,{'method':'POST','body':_0x34c4cf}))[_0x3c1d98(0x21f)]();if(typeof _0x3f595e[_0x3c1d98(0x25b)]!='string')return this[_0x3c1d98(0x2b0)](),Promise[_0x3c1d98(0x378)](new Error(_0x46d7f0['ERROR_IMAGE']));_0x2c71a1=_0x3f595e[_0x3c1d98(0x25b)];}catch{return this[_0x3c1d98(0x2b0)](),Promise['reject'](new Error(_0x46d7f0['ERROR_IMAGE']));}return new Promise((_0x328fb9,_0x1b3fd5)=>{const _0x318fdb=_0x3c1d98,_0x3f8e06=new FileReader();_0x3f8e06['readAsDataURL'](_0x33eb3c),_0x3f8e06[_0x318fdb(0x3c3)]=_0x2c00be=>{const _0x5a7bd3=_0x318fdb;var _0x1034f8;const _0x18ab8e=(_0x1034f8=_0x2c00be[_0x5a7bd3(0x37c)])==null?void 0x0:_0x1034f8['result'];if(_0x18ab8e==null){this[_0x5a7bd3(0x2b0)](),_0x1b3fd5(new Error(_0x46d7f0['ERROR_IMAGE']));return;}const _0x28cd2a=_0x1540f0['generateRandomId'](0x6);_0x328fb9({'imageId':_0x28cd2a,'imageSourceType':_0x434ac3[_0x5a7bd3(0x4d4)],'source':_0x2c71a1,'base64Cache':_0x18ab8e,'status':_0x46d7f0[_0x5a7bd3(0x41f)]}),this[_0x5a7bd3(0x2b0)]();};});}[_0x87081d(0x4a4)](){const _0x1cf62f=_0x87081d;var _0x708501;return(_0x708501=this[_0x1cf62f(0x252)][_0x1cf62f(0x38a)](No))!=null?_0x708501:Mo;}[_0x87081d(0x297)](){const _0x18654e=_0x87081d;var _0x23c875;return(_0x23c875=this[_0x18654e(0x252)][_0x18654e(0x38a)](Ao))!=null?_0x23c875:Uo;}[_0x87081d(0x37e)](_0xb4669,_0x477ffa){const _0x1c8489=_0x87081d;return _0xb4669[_0x1c8489(0x371)](_0x1c8489(0x4c1),_0x477ffa);}[_0x87081d(0x2b0)](){const _0x50c2fd=_0x87081d;this['_waitCount']-=0x1,this[_0x50c2fd(0x27b)][_0x50c2fd(0x4fe)](this['_waitCount']);}};wt=Do([mt(0x0,_0x1b956a(_0x3db34c)),mt(0x1,_0x5d255f),mt(0x2,_0x1b956a(_0x1d5396))],wt);var yo=Object[_0x87081d(0x318)],Lo=Object[_0x87081d(0x314)],$o=(_0x564292,_0x26d482,_0x2fdc20,_0x1dd823)=>{const _0x2b3611=_0x87081d;for(var _0x230f4a=_0x1dd823>0x1?void 0x0:_0x1dd823?Lo(_0x26d482,_0x2fdc20):_0x26d482,_0x17ad80=_0x564292[_0x2b3611(0x46a)]-0x1,_0x510f32;_0x17ad80>=0x0;_0x17ad80--)(_0x510f32=_0x564292[_0x17ad80])&&(_0x230f4a=(_0x1dd823?_0x510f32(_0x26d482,_0x2fdc20,_0x230f4a):_0x510f32(_0x230f4a))||_0x230f4a);return _0x1dd823&&_0x230f4a&&yo(_0x26d482,_0x2fdc20,_0x230f4a),_0x230f4a;},Ne=(_0x5803b9,_0x220ad8)=>(_0x429b22,_0x266aea)=>_0x220ad8(_0x429b22,_0x266aea,_0x5803b9);let We=class extends _0x53ce5a{constructor(_0x2b98ce,_0x5c261f,_0x4b2cb6,_0x55b62f,_0x79732b){const _0x3842f7=_0x87081d;super(),this[_0x3842f7(0x440)]=_0x2b98ce,this[_0x3842f7(0x2bb)]=_0x5c261f,this[_0x3842f7(0x1d4)]=_0x4b2cb6,this[_0x3842f7(0x4f7)]=_0x55b62f,this['_localeService']=_0x79732b,this[_0x3842f7(0x250)](),this['_initCloseConn']();}[_0x87081d(0x1c9)](){const _0x5e9216=_0x87081d,_0x3fc293=async _0x46a842=>{const _0x5605ed=_0x1fa5;(await this[_0x5605ed(0x4f7)][_0x5605ed(0x316)](_0x46a842))['event$']['pipe'](_0x381935(_0x3c84eb=>_0x3c84eb['eventID']===_0xd3c20c[_0x5605ed(0x3c5)]),_0x3e87c2(this[_0x5605ed(0x20e)]))[_0x5605ed(0x347)](_0x288ce9=>{const _0x416078=_0x5605ed,_0x259444=_0x288ce9,{reason:_0x39fca6}=_0x259444[_0x416078(0x31c)];this[_0x416078(0x440)][_0x416078(0x1e9)](_0x14fd53)[_0x416078(0x410)]({'type':_0x4dda16['Error'],'content':this[_0x416078(0x45a)]['t'](_0x416078(0x28b))+'('+_0x39fca6+')'}),this[_0x416078(0x1d4)][_0x416078(0x1dd)](new _0x372984(_0x46a842)['id'],!0x1),this['_collaborationSessionService'][_0x416078(0x4b2)](_0x46a842);});};_0x1d3042(this[_0x5e9216(0x2bb)]['getTypeOfUnitAdded$'](_0x5a714d[_0x5e9216(0x471)]),this[_0x5e9216(0x2bb)][_0x5e9216(0x2c7)](_0x5a714d[_0x5e9216(0x1c1)]))[_0x5e9216(0x3b6)](_0x414fcf(_0x239ce0=>_0x239ce0[_0x5e9216(0x1b5)]()),_0x381935(_0x5903ba=>!_0x387ac1(_0x5903ba)),_0x3e87c2(this[_0x5e9216(0x20e)]))[_0x5e9216(0x347)](_0x5345c8=>{_0x3fc293(_0x5345c8);});}['_initUnitPermissionChange'](){const _0x343d70=_0x87081d,_0x287aaa=async _0x2dad01=>{const _0x5821c9=_0x1fa5;(await this[_0x5821c9(0x4f7)]['requireSession'](_0x2dad01))['event$'][_0x5821c9(0x3b6)](_0x381935(_0xd45fe8=>_0xd45fe8['eventID']===_0xd3c20c[_0x5821c9(0x20c)]),_0x3e87c2(this[_0x5821c9(0x20e)]))['subscribe'](_0x30cb7d=>{const _0x725013=_0x5821c9,_0x85e936=_0x30cb7d,{objectId:_0x44b15a}=_0x85e936['data'],_0x25282c=this[_0x725013(0x440)][_0x725013(0x1e9)](_0x45b80e);_0x44b15a===_0x2dad01?_0x25282c[_0x725013(0x1b2)](_0x2dad01):_0x25282c['refreshPermission'](_0x2dad01,_0x44b15a);});};_0x1d3042(this['_univerInstanceService'][_0x343d70(0x2c7)](_0x5a714d['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5a714d[_0x343d70(0x1c1)]))['pipe'](_0x414fcf(_0x953b9e=>_0x953b9e[_0x343d70(0x1b5)]()),_0x381935(_0x2dceb9=>!_0x387ac1(_0x2dceb9)),_0x3e87c2(this[_0x343d70(0x20e)]))[_0x343d70(0x347)](_0x3874d2=>{_0x287aaa(_0x3874d2);});}};We=$o([_0x76d0ae(_0x28e3b0['Starting'],We),Ne(0x0,_0x1b956a(_0x4bf6fc)),Ne(0x1,_0x1d5396),Ne(0x2,_0x5543f8),Ne(0x3,_0x1b956a(pe)),Ne(0x4,_0x1b956a(_0x2db4b8))],We);var ks=Object[_0x87081d(0x318)],jo=Object[_0x87081d(0x314)],xo=(_0x368578,_0x5e9b81,_0x540645)=>_0x5e9b81 in _0x368578?ks(_0x368578,_0x5e9b81,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x540645}):_0x368578[_0x5e9b81]=_0x540645,Ho=(_0x4e2ff2,_0x40b139,_0x3dd5a0,_0x55c2aa)=>{const _0x2cedbe=_0x87081d;for(var _0x446841=_0x55c2aa>0x1?void 0x0:_0x55c2aa?jo(_0x40b139,_0x3dd5a0):_0x40b139,_0x2afa4b=_0x4e2ff2[_0x2cedbe(0x46a)]-0x1,_0x5a1246;_0x2afa4b>=0x0;_0x2afa4b--)(_0x5a1246=_0x4e2ff2[_0x2afa4b])&&(_0x446841=(_0x55c2aa?_0x5a1246(_0x40b139,_0x3dd5a0,_0x446841):_0x5a1246(_0x446841))||_0x446841);return _0x55c2aa&&_0x446841&&ks(_0x40b139,_0x3dd5a0,_0x446841),_0x446841;},ft=(_0x119928,_0x31a181)=>(_0x287a21,_0x2ed36d)=>_0x31a181(_0x287a21,_0x2ed36d,_0x119928),ko=(_0x568a90,_0x3137b0,_0x432ecf)=>xo(_0x568a90,_0x3137b0+'',_0x432ecf);const Vo=_0x87081d(0x3d3);let Nt=class extends _0x153d86{constructor(_0xcd3b6e,_0x963caf,_0xf51c69,_0x2b04cc){const _0x122921=_0x87081d;super(),this[_0x122921(0x2c8)]=_0xcd3b6e,this[_0x122921(0x3e7)]=_0x963caf,this[_0x122921(0x43f)]=_0xf51c69,this[_0x122921(0x440)]=_0x2b04cc;}[_0x87081d(0x3d7)](){const _0x1ac874=_0x87081d;this[_0x1ac874(0x4a1)]();}[_0x87081d(0x415)](){const _0x35feba=_0x87081d;this[_0x35feba(0x4a6)]();}[_0x87081d(0x4a1)](){const _0x45075f=_0x87081d;var _0x15baad,_0xdb4f44,_0x4afa59,_0x55827a;this[_0x45075f(0x440)][_0x45075f(0x382)](_0x22132f)&&this[_0x45075f(0x3e7)][_0x45075f(0x289)](_0x45075f(0x4c3),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x260f2e=[[_0x22132f,{'useClass':Dt}],[pe],[Ht],[_0x3db34c],[Hs,{'useClass':ao}],[ne],[D],[_0x11ce39],[qe],[ze],[Je],[xt],[Qe],[Ms],[We],[Ns,{'useClass':(_0xdb4f44=(_0x15baad=this['_config'])==null?void 0x0:_0x15baad[_0x45075f(0x41b)])!=null?_0xdb4f44:vt}],[_0x3c9cbd,{'useClass':_0x39d04d}],[_0x367e30,{'useClass':Ot}],[_0x2d6512,{'useClass':Pt}],[_0x13659e,{'useClass':wt}],[Me],[Ve],[ke],[Be],[ge]];(_0x4afa59=this[_0x45075f(0x2c8)])!=null&&_0x4afa59['enableSingleActiveInstanceLock']&&_0x260f2e[_0x45075f(0x1ab)]([tt,{'useClass':Vn}]),_0x260f2e=_0x5a0091(_0x260f2e,(_0x55827a=this[_0x45075f(0x2c8)])==null?void 0x0:_0x55827a['override']),_0x260f2e[_0x45075f(0x1c8)](_0x3181db=>this[_0x45075f(0x440)][_0x45075f(0x2ac)](_0x3181db)),this[_0x45075f(0x2a4)]();}[_0x87081d(0x4a6)](){const _0x5e69ff=_0x87081d;this[_0x5e69ff(0x343)](this['_renderManagerService'][_0x5e69ff(0x3a0)](_0x5a714d[_0x5e69ff(0x1c1)],[Fe])),this[_0x5e69ff(0x343)](this[_0x5e69ff(0x43f)][_0x5e69ff(0x3a0)](_0x5a714d['UNIVER_SHEET'],[Tt]));}['_initModules'](){const _0x1e601f=_0x87081d;var _0x447abf,_0x31b01e;this[_0x1e601f(0x440)][_0x1e601f(0x1e9)](_0x3db34c)[_0x1e601f(0x395)]({'priority':0x14,'interceptor':_0x3ef1b2({'maxParallel':0x6})}),(_0x447abf=this[_0x1e601f(0x2c8)])!=null&&_0x447abf[_0x1e601f(0x32d)]||this[_0x1e601f(0x440)]['get'](D)[_0x1e601f(0x313)](),(_0x31b01e=this[_0x1e601f(0x2c8)])!=null&&_0x31b01e[_0x1e601f(0x42a)]&&this[_0x1e601f(0x440)][_0x1e601f(0x1e9)](Qe);}};ko(Nt,_0x87081d(0x338),Vo),Nt=Ho([_0x425aa7(_0x361f11),ft(0x1,_0x82a609),ft(0x2,_0x23fc25),ft(0x3,_0x1b956a(_0x4bf6fc))],Nt);export{bo as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,Cn as COLLAB_SUBMIT_CHANGESET_URL_KEY,un as COLLAB_WEB_SOCKET_URL_KEY,Me as CollaborationController,It as CollaborationSession,pe as CollaborationSessionService,vt as CollaborationSocketService,P as CollaborationStatus,Br as CollaborationStatusDisplay,Ms as CommentService,Ve as DataLoaderController,ke as DesktopCollaborationStatusDisplayController,mn as HEARTBEAT_INTERVAL_KEY,Os as HEARTBEAT_TIMEOUT_KEY,Ns as ICollaborationSocketService,Hs as IURLService,wt as ImageIoService,In as LOCAL_CACHE_INTERVAL_KEY,Rn as LOGIN_URL_KEY,D as LocalCacheService,_n as SEND_CHANGESET_TIMEOUT_KEY,an as SNAPSHOT_SERVER_URL_KEY,hn as SNAPSHOT_URL_KEY,fe as SessionStatus,Rr as SheetCollabCursorShape,Ct as SheetCollaborationEntity,Ot as SnapshotServerOverHTTPService,Nt as UniverCollaborationClientPlugin,ao as WebURLService,Nn as deserializeToCombResponse,Mn as serializeCombRequest};
|
1
|
+
const _0x2908d8=_0x1140;(function(_0x578747,_0xec2841){const _0x294b8a=_0x1140,_0x59bae2=_0x578747();while(!![]){try{const _0x5ecc62=-parseInt(_0x294b8a(0x20f))/0x1+parseInt(_0x294b8a(0x159))/0x2*(-parseInt(_0x294b8a(0x346))/0x3)+-parseInt(_0x294b8a(0x21d))/0x4+parseInt(_0x294b8a(0x1ea))/0x5+-parseInt(_0x294b8a(0x3a7))/0x6+parseInt(_0x294b8a(0x417))/0x7*(parseInt(_0x294b8a(0x3a1))/0x8)+-parseInt(_0x294b8a(0x14a))/0x9*(-parseInt(_0x294b8a(0x295))/0xa);if(_0x5ecc62===_0xec2841)break;else _0x59bae2['push'](_0x59bae2['shift']());}catch(_0xb85cff){_0x59bae2['push'](_0x59bae2['shift']());}}}(_0x3fc5,0xbca31));var Js=Object['defineProperty'],zs=(_0x53af55,_0x2eca2a,_0x5ddcae)=>_0x2eca2a in _0x53af55?Js(_0x53af55,_0x2eca2a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5ddcae}):_0x53af55[_0x2eca2a]=_0x5ddcae,l=(_0x5b311c,_0x46f3a1,_0x1edb88)=>zs(_0x5b311c,typeof _0x46f3a1!=_0x2908d8(0x3be)?_0x46f3a1+'':_0x46f3a1,_0x1edb88);import{createIdentifier as _0xff730e,DisposableCollection as _0x548484,toDisposable as _0x58e78e,Inject as _0x573d4d,IConfigService as _0x3abdb4,ILogService as _0x38155a,Disposable as _0x5d8459,UniverInstanceType as _0x50520e,UserManagerService as _0x1ac4cb,IUniverInstanceService as _0x52e604,RxDisposable as _0x5afe1b,LocaleService as _0x5071b4,Optional as _0x2b0397,Injector as _0x100ac5,Tools as _0x34c7a8,ILocalStorageService as _0x3997ea,ICommandService as _0x2bd668,JSONX as _0x231ca6,CommandType as _0x49ed46,IPermissionService as _0x1984e0,IUndoRedoService as _0x3ed2c5,sequenceExecute as _0x45fa8f,Rectangle as _0x110525,OnLifecycle as _0x1e52da,LifecycleStages as _0x3ebf67,ThemeService as _0x1e29a1,useDependency as _0x9429d7,connectInjector as _0x143ba4,Workbook as _0x3c5d77,LocalUndoRedoService as _0x181a3f,IContextService as _0x4c4187,COLORS as _0xbb5a24,ColorKit as _0x467b1f,fromEventSubject as _0x536195,isInternalEditorID as _0x512341,Plugin as _0x361fa5,IAuthzIoService as _0x5bd60e,mergeOverrideWithDependencies as _0x320f1a,DependentOn as _0x1f6b2d}from'@univerjs/core';import{Subject as _0x59e98b,merge as _0x52a416,takeUntil as _0x4f72a2,BehaviorSubject as _0x5a6925,distinctUntilChanged as _0xaec0cf,fromEvent as _0x3c1931,map as _0x43f74d,shareReplay as _0x2e7acf,take as _0x462e64,of as _0xc0017a,debounceTime as _0x172aba,filter as _0x230e40,switchMap as _0x1d335,combineLatest as _0x26b443,mapTo as _0x57ea85,concatMap as _0x4586fc}from'rxjs';import{map as _0x391b01,take as _0x2fa718,filter as _0x51803d,delay as _0x12b4d6,takeUntil as _0x5953cf,switchMap as _0x19a6e7,throttleTime as _0x5aa88d}from'rxjs/operators';import{MessageType as _0x42502c,Tooltip as _0x728f60}from'@univerjs/design';import{IBeforeCloseService as _0x4e50c2,IMessageService as _0x6d8428,INotificationService as _0x3bf708,useObservable as _0xbcaa84,BuiltInUIPart as _0x3aecfb,IUIPartsService as _0x5de437}from'@univerjs/ui';import{HTTPService as _0x2d51dc,WebSocketService as _0x4447fb,MergeInterceptorFactory as _0x42b29c,HTTPRequest as _0xaea16d,IHTTPImplementation as _0x4d903c,XHRHTTPImplementation as _0x2527e3,ThresholdInterceptorFactory as _0x108edb}from'@univerjs/network';import{CollaborationEvent as _0x2ca871,parseChangesetToProtocol as _0x355460,ISnapshotServerService as _0x5d1d4f,isTransformMutationFailure as _0x18c8e5,isTransformMutationsWithChangesetSuccess as _0x5a2236,ITransformService as _0x35595c,RevisionService as _0xa35cc,mapDocumentTypeToUniverType as _0x489540,isTransformChangesetsSuccess as _0x3fdc14,parseProtocolChangeset as _0x29c246,CompressMutationService as _0x123deb,SnapshotService as _0x232e25,textEncoder as _0x28a27b,b64DecodeUnicode as _0x556542,isTransformMutationsWithChangesetFailure as _0x2ba11f,UniverCollaborationPlugin as _0x42e95f}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x2b6c9d}from'@univerjs/telemetry';import{IMEInputManagerService as _0x49d2f3,TextSelectionManagerService as _0x459ea4,serializeDocRange as _0x2100d1,RichTextEditingMutation as _0x13ef0c,DocStateChangeManagerService as _0x1211ce,SetTextSelectionsOperation as _0xd5e081,SetDocZoomRatioOperation as _0x585b41,DocSkeletonManagerService as _0x40db62}from'@univerjs/docs';import{SheetsSelectionsService as _0x1f939b,SetSelectionsOperation as _0xb83057,InsertSheetMutation as _0x5a7640,EmptyMutation as _0x474203,WorkbookEditablePermission as _0x4eedfe,RefRangeService as _0x3afbc0,EffectRefRangId as _0x2d4b29,handleIRemoveRow as _0x379c84,handleIRemoveCol as _0x43536b,handleMoveRange as _0x2e70c5,handleInsertRow as _0xcd2977,handleInsertRangeMoveRight as _0x315c1c,handleInsertRangeMoveDown as _0x3c4ee7,handleInsertCol as _0x1a5271,handleDeleteRangeMoveUp as _0x1bdead,handleDeleteRangeMoveLeft as _0x211fe8,runRefRangeMutations as _0x309147,SetWorksheetActivateCommand as _0x217559}from'@univerjs/sheets';import{ImageSourceType as _0x6f3cfe,ImageUploadStatusType as _0x12359d,IImageIoService as _0x404524}from'@univerjs/drawing';import{Shape as _0x3bcf23,Rect as _0x45456d,Vector2 as _0x29234d,NodePositionConvertToCursor as _0x669d7e,isValidRectRange as _0x4a103f,NodePositionConvertToRectRange as _0x38e8fb,getColor as _0x14448f,TEXT_RANGE_LAYER_INDEX as _0x235d07,RegularPolygon as _0x1a1e3b,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x4f4c39,IRenderManagerService as _0x33ca16}from'@univerjs/engine-render';import{deserializeRangeWithSheet as _0x238be7,serializeRangeWithSheet as _0x3f5e75}from'@univerjs/engine-formula';import _0x598329 from'lodash/debounce';import{VIEWPORT_KEY as _0x401402,getCoordByCell as _0x5707a5,getSheetObject as _0x4ce2e8,SheetSkeletonManagerService as _0x4e74c5,SheetPermissionInitController as _0x3c6fe8}from'@univerjs/sheets-ui';import _0x333221,{forwardRef as _0x12f5f1,useRef as _0x201f53,createElement as _0x1f4991,useCallback as _0x4ccb32}from'react';import _0x35bfa9 from'clsx';import{IRemoteInstanceService as _0x1700c5}from'@univerjs/rpc';const un=_0x2908d8(0x1bc),dn=_0x2908d8(0x20b),mn=_0x2908d8(0x465),fn=_0x2908d8(0x28c),gn=0x7d0,Sn='COLLAB_WEB_SOCKET_URL',pn=_0x2908d8(0x3ba),vn=_0x2908d8(0x250),In=0x7530,Ns=_0x2908d8(0x3d0),ys=0x2710,En=_0x2908d8(0x164),Cn=0x4e20,bn=_0x2908d8(0x40d),Tn=0x3,Rn=_0x2908d8(0x428),On=0x3e8,Dn=_0x2908d8(0x279),wn=_0x2908d8(0x394),Pn='LOGIN_URL_KEY',Nn='/universer-api/oidc/authpage';var Ms=(_0x5cc302=>(_0x5cc302[_0x5cc302['UNDEFINED']=0x0]='UNDEFINED',_0x5cc302[_0x5cc302['OK']=0x1]='OK',_0x5cc302[_0x5cc302['INTERNAL_ERROR']=0x2]=_0x2908d8(0x290),_0x5cc302[_0x5cc302[_0x2908d8(0x42c)]=0x3]='PERMISSION_DENIED',_0x5cc302[_0x5cc302[_0x2908d8(0x19d)]=0x4]=_0x2908d8(0x19d),_0x5cc302[_0x5cc302[_0x2908d8(0x236)]=0x5]=_0x2908d8(0x236),_0x5cc302[_0x5cc302[_0x2908d8(0x300)]=0x6]=_0x2908d8(0x300),_0x5cc302[_0x5cc302[_0x2908d8(0x1e5)]=0x7]=_0x2908d8(0x1e5),_0x5cc302[_0x5cc302[_0x2908d8(0x31c)]=0x8]=_0x2908d8(0x31c),_0x5cc302[_0x5cc302['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x5cc302[_0x5cc302[_0x2908d8(0x201)]=0x1389]=_0x2908d8(0x201),_0x5cc302[_0x5cc302[_0x2908d8(0x1cf)]=0x1771]=_0x2908d8(0x1cf),_0x5cc302[_0x5cc302['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x2908d8(0x180),_0x5cc302[_0x5cc302[_0x2908d8(0x37e)]=0x1b59]='APPLY_REJECT',_0x5cc302[_0x5cc302[_0x2908d8(0x2b8)]=0x1b5a]=_0x2908d8(0x2b8),_0x5cc302[_0x5cc302['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x5cc302[_0x5cc302[_0x2908d8(0x436)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x5cc302[_0x5cc302[_0x2908d8(0x481)]=0x1f41]=_0x2908d8(0x481),_0x5cc302[_0x5cc302[_0x2908d8(0x48d)]=0x2329]=_0x2908d8(0x48d),_0x5cc302[_0x5cc302[_0x2908d8(0x381)]=0x232a]=_0x2908d8(0x381),_0x5cc302[_0x5cc302[_0x2908d8(0x2b9)]=0x232b]=_0x2908d8(0x2b9),_0x5cc302[_0x5cc302[_0x2908d8(0x181)]=0x232c]=_0x2908d8(0x181),_0x5cc302[_0x5cc302[_0x2908d8(0x466)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x5cc302[_0x5cc302[_0x2908d8(0x376)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x5cc302[_0x5cc302[_0x2908d8(0x3a4)]=0x2712]=_0x2908d8(0x3a4),_0x5cc302[_0x5cc302['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x2908d8(0x414),_0x5cc302[_0x5cc302[_0x2908d8(0x452)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x5cc302[_0x5cc302[_0x2908d8(0x143)]=-0x1]=_0x2908d8(0x143),_0x5cc302))(Ms||{}),x=(_0x52866b=>(_0x52866b[_0x52866b[_0x2908d8(0x32e)]=0x0]=_0x2908d8(0x32e),_0x52866b[_0x52866b[_0x2908d8(0x461)]=0x1]=_0x2908d8(0x461),_0x52866b[_0x52866b['UNIVER_SHEET']=0x2]=_0x2908d8(0x37d),_0x52866b[_0x52866b[_0x2908d8(0x43f)]=0x3]=_0x2908d8(0x43f),_0x52866b[_0x52866b[_0x2908d8(0x491)]=0x4]='UNIVER_PROJECT',_0x52866b[_0x52866b[_0x2908d8(0x143)]=-0x1]=_0x2908d8(0x143),_0x52866b))(x||{}),I=(_0x23c8f9=>(_0x23c8f9[_0x23c8f9[_0x2908d8(0x148)]=0x0]=_0x2908d8(0x148),_0x23c8f9[_0x23c8f9[_0x2908d8(0x23a)]=0x1]=_0x2908d8(0x23a),_0x23c8f9[_0x23c8f9[_0x2908d8(0x3ed)]=0x2]=_0x2908d8(0x3ed),_0x23c8f9[_0x23c8f9['LEAVE']=0x3]=_0x2908d8(0x287),_0x23c8f9[_0x23c8f9[_0x2908d8(0x210)]=0x4]='INGEST',_0x23c8f9[_0x23c8f9['HEARTBEAT']=0x5]='HEARTBEAT',_0x23c8f9[_0x23c8f9[_0x2908d8(0x3da)]=0x6]=_0x2908d8(0x3da),_0x23c8f9[_0x23c8f9['UNRECOGNIZED']=-0x1]=_0x2908d8(0x143),_0x23c8f9))(I||{}),Ht=(_0x2c4582=>(_0x2c4582[_0x2c4582['UNKNOWN_CODE']=0x0]=_0x2908d8(0x3c1),_0x2c4582[_0x2c4582['OK']=0x1]='OK',_0x2c4582[_0x2c4582[_0x2908d8(0x29f)]=0x2]=_0x2908d8(0x29f),_0x2c4582[_0x2c4582[_0x2908d8(0x143)]=-0x1]=_0x2908d8(0x143),_0x2c4582))(Ht||{}),As=(_0x1cad95=>(_0x1cad95[_0x1cad95[_0x2908d8(0x482)]=0x0]='Undefined',_0x1cad95[_0x1cad95[_0x2908d8(0x251)]=0x1]='HttpImport',_0x1cad95[_0x1cad95[_0x2908d8(0x30a)]=0x2]=_0x2908d8(0x30a),_0x1cad95[_0x1cad95[_0x2908d8(0x283)]=0x3]=_0x2908d8(0x283),_0x1cad95[_0x1cad95[_0x2908d8(0x2e5)]=0x4]=_0x2908d8(0x2e5),_0x1cad95[_0x1cad95[_0x2908d8(0x143)]=-0x1]='UNRECOGNIZED',_0x1cad95))(As||{});function yn(_0x23eb85){const _0x4087f6=_0x2908d8;var _0x86e63f,_0x55794d,_0x3a68c5,_0x34c54d;const _0x4d5ffe=_0x23eb85[_0x4087f6(0x1ee)],_0x31801c=JSON['parse'](_0x4d5ffe);switch(_0x31801c['cmd']){case I[_0x4087f6(0x1e6)]:case I[_0x4087f6(0x23a)]:{const _0x18e280=_0x31801c[_0x4087f6(0x28a)];return{..._0x31801c,'data':_0x18e280,'cmd':_0x31801c[_0x4087f6(0x350)]};}case I[_0x4087f6(0x3ed)]:{const _0x4c5d30=_0x31801c[_0x4087f6(0x403)];return{..._0x31801c,'data':_0x4c5d30,'cmd':_0x31801c[_0x4087f6(0x350)]};}case I['RECV']:{const _0x266d79=_0x31801c[_0x4087f6(0x3a9)];switch(_0x266d79[_0x4087f6(0x1d7)]){case _0x2ca871[_0x4087f6(0x25e)]:return{..._0x31801c,'data':{..._0x266d79,'data':(_0x86e63f=_0x266d79[_0x4087f6(0x269)])==null?void 0x0:_0x86e63f['cs']},'cmd':_0x31801c['cmd']};case _0x2ca871[_0x4087f6(0x3c0)]:return{..._0x31801c,'data':{..._0x266d79,'data':(_0x55794d=_0x266d79[_0x4087f6(0x32d)])==null?void 0x0:_0x55794d['cs']},'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871[_0x4087f6(0x329)]:return{..._0x31801c,'data':{..._0x266d79,'data':(_0x3a68c5=_0x266d79[_0x4087f6(0x41d)])==null?void 0x0:_0x3a68c5['cs']},'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871[_0x4087f6(0x2a7)]:return{..._0x31801c,'data':{..._0x266d79,'data':(_0x34c54d=_0x266d79[_0x4087f6(0x45d)])==null?void 0x0:_0x34c54d['cs']},'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871['UPDATE_CURSOR']:return{..._0x31801c,'data':{..._0x266d79,'data':_0x266d79['updateCursorEvent']},'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871['USERS_ENTER']:return{..._0x31801c,'data':{..._0x266d79,'data':_0x266d79['joinEvent']},'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871[_0x4087f6(0x464)]:return{..._0x31801c,'data':{..._0x266d79,'data':_0x266d79[_0x4087f6(0x441)]},'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871[_0x4087f6(0x2f1)]:return{..._0x31801c,'data':{..._0x266d79,'data':_0x266d79[_0x4087f6(0x1b4)]},'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871[_0x4087f6(0x31b)]:case _0x2ca871['LIVESHARE_OPERATION']:return{..._0x31801c,'data':{..._0x266d79,'data':_0x266d79[_0x4087f6(0x197)]},'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871[_0x4087f6(0x23f)]:return{..._0x31801c,'data':{..._0x266d79,'data':_0x266d79[_0x4087f6(0x1b4)]},'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871[_0x4087f6(0x410)]:return{..._0x31801c,'data':_0x266d79,'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871[_0x4087f6(0x369)]:return{..._0x31801c,'data':{..._0x266d79,'data':_0x266d79[_0x4087f6(0x2bb)]},'cmd':_0x31801c['cmd']};case _0x2ca871[_0x4087f6(0x2ff)]:return{..._0x31801c,'data':{..._0x266d79,'data':_0x266d79[_0x4087f6(0x25d)]},'cmd':_0x31801c[_0x4087f6(0x350)]};case _0x2ca871[_0x4087f6(0x2b0)]:return{..._0x31801c,'data':{..._0x266d79,'data':_0x266d79[_0x4087f6(0x136)]},'cmd':_0x31801c[_0x4087f6(0x350)]};default:return _0x31801c;}}default:return _0x31801c;}}function Mn(_0x57a582){const _0x5295e2=_0x2908d8;switch(_0x57a582[_0x5295e2(0x350)]){case I['HEARTBEAT']:case I['HELLO']:return JSON[_0x5295e2(0x2d3)]({'cmd':_0x57a582[_0x5295e2(0x350)],'routeKey':_0x57a582[_0x5295e2(0x271)]});case I[_0x5295e2(0x210)]:{let _0x22e0e2;switch(_0x57a582[_0x5295e2(0x1ee)]['eventID']){case _0x2ca871[_0x5295e2(0x2de)]:{_0x22e0e2={'eventID':_0x2ca871['UPDATE_CURSOR'],'updateCursorEvent':_0x57a582['data'][_0x5295e2(0x1ee)]};break;}case _0x2ca871[_0x5295e2(0x464)]:{_0x22e0e2={'eventID':_0x2ca871['USERS_LEAVE'],'leaveEvent':_0x57a582['data']['data']};break;}case _0x2ca871[_0x5295e2(0x26a)]:{_0x22e0e2={'eventID':_0x2ca871['USERS_ENTER'],'joinEvent':_0x57a582['data']['data']};break;}case _0x2ca871[_0x5295e2(0x2f1)]:{_0x22e0e2={'eventID':_0x2ca871[_0x5295e2(0x2f1)],'liveShareNewHost':_0x57a582[_0x5295e2(0x1ee)][_0x5295e2(0x1ee)]};break;}case _0x2ca871[_0x5295e2(0x205)]:{_0x22e0e2={'eventID':_0x2ca871[_0x5295e2(0x205)],'liveShareOperation':_0x57a582[_0x5295e2(0x1ee)][_0x5295e2(0x1ee)]};break;}case _0x2ca871[_0x5295e2(0x23f)]:{_0x22e0e2={'eventID':_0x2ca871[_0x5295e2(0x23f)],'liveShareTerminate':_0x57a582['data']['data']};break;}case _0x2ca871[_0x5295e2(0x3a0)]:{_0x22e0e2={'eventID':_0x2ca871[_0x5295e2(0x3a0)],'liveShareRequestHost':_0x57a582[_0x5295e2(0x1ee)][_0x5295e2(0x1ee)]};break;}case _0x2ca871[_0x5295e2(0x31b)]:{_0x22e0e2={'eventID':_0x2ca871['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x22e0e2={'eventID':_0x57a582[_0x5295e2(0x1ee)]['eventID']};}return JSON[_0x5295e2(0x2d3)]({'cmd':_0x57a582[_0x5295e2(0x350)],'routeKey':_0x57a582['routeKey'],'collaMsg':_0x22e0e2});}case I[_0x5295e2(0x3ed)]:return JSON[_0x5295e2(0x2d3)]({'cmd':_0x57a582[_0x5295e2(0x350)],'routeKey':_0x57a582[_0x5295e2(0x271)],'joinReq':_0x57a582['data']});case I[_0x5295e2(0x287)]:return JSON[_0x5295e2(0x2d3)]({'cmd':_0x57a582[_0x5295e2(0x350)],'routeKey':_0x57a582[_0x5295e2(0x271)],'leaveReq':_0x57a582[_0x5295e2(0x1ee)]});default:throw new Error(_0x5295e2(0x3e6));}}var An=Object[_0x2908d8(0x1f6)],Un=Object[_0x2908d8(0x17b)],Ln=(_0x31a2bd,_0x24a6a1,_0x187463,_0x4422fa)=>{const _0xc212c3=_0x2908d8;for(var _0x3e1b4b=_0x4422fa>0x1?void 0x0:_0x4422fa?Un(_0x24a6a1,_0x187463):_0x24a6a1,_0x1181f4=_0x31a2bd[_0xc212c3(0x478)]-0x1,_0x276fda;_0x1181f4>=0x0;_0x1181f4--)(_0x276fda=_0x31a2bd[_0x1181f4])&&(_0x3e1b4b=(_0x4422fa?_0x276fda(_0x24a6a1,_0x187463,_0x3e1b4b):_0x276fda(_0x3e1b4b))||_0x3e1b4b);return _0x4422fa&&_0x3e1b4b&&An(_0x24a6a1,_0x187463,_0x3e1b4b),_0x3e1b4b;},Te=(_0xc18ecb,_0x53102)=>(_0x4d4ad3,_0x195b47)=>_0x53102(_0x4d4ad3,_0x195b47,_0xc18ecb);const Us=_0xff730e(_0x2908d8(0x264));function $n(_0x2e7c8a,_0x52a171,_0x1b3663){const _0x370a37=_0x2908d8;return _0x2e7c8a+'/'+_0x52a171+_0x370a37(0x375)+_0x1b3663+_0x370a37(0x38d);}let Et=class{constructor(_0x16f552,_0x46bb01,_0x364c2a,_0xe7f115,_0x100ae9){const _0xb1e860=_0x2908d8;this[_0xb1e860(0x280)]=_0x16f552,this[_0xb1e860(0x3f8)]=_0x46bb01,this[_0xb1e860(0x168)]=_0x364c2a,this[_0xb1e860(0x49c)]=_0xe7f115,this[_0xb1e860(0x16c)]=_0x100ae9;}[_0x2908d8(0x1d3)](_0xcecb42){const _0x5f5c4d=_0x2908d8,_0x500424=this[_0x5f5c4d(0x3f8)][_0x5f5c4d(0x1d3)](_0xcecb42);if(!_0x500424)throw new Error(_0x5f5c4d(0x3d4));const _0x26ae3c=new _0x548484(),_0x40c6f1=new _0x59e98b();_0x26ae3c[_0x5f5c4d(0x40c)](_0x500424[_0x5f5c4d(0x339)][_0x5f5c4d(0x298)](_0x53b6d9=>_0x40c6f1[_0x5f5c4d(0x151)](_0x53b6d9))),_0x26ae3c[_0x5f5c4d(0x40c)](_0x58e78e(()=>_0x40c6f1[_0x5f5c4d(0x2d4)]()));const _0xd9e87f=new _0x59e98b();_0x26ae3c['add'](_0x500424[_0x5f5c4d(0x480)][_0x5f5c4d(0x298)](_0x18a53d=>_0xd9e87f[_0x5f5c4d(0x151)](_0x18a53d))),_0x26ae3c[_0x5f5c4d(0x40c)](_0x58e78e(()=>_0xd9e87f['complete']()));const _0x43ca9a=new _0x59e98b();_0x26ae3c['add'](_0x500424[_0x5f5c4d(0x3c5)][_0x5f5c4d(0x298)](_0x643f66=>{const _0xbbbe59=_0x5f5c4d,_0x321059=yn(_0x643f66);_0x43ca9a[_0xbbbe59(0x151)](_0x321059);})),_0x26ae3c[_0x5f5c4d(0x40c)](_0x58e78e(()=>_0x43ca9a[_0x5f5c4d(0x2d4)]()));const _0x125f80=()=>{const _0x58f86a=_0x5f5c4d;_0xd9e87f[_0x58f86a(0x151)](new Event('connection\x20error')),_0x40c6f1[_0x58f86a(0x151)](new CloseEvent(_0x58f86a(0x2d2))),_0x6ca882[_0x58f86a(0x26d)]();},_0x6ca882={'memberID':'','close$':_0x40c6f1[_0x5f5c4d(0x165)](),'error$':_0xd9e87f[_0x5f5c4d(0x165)](),'open$':_0x500424[_0x5f5c4d(0x2be)],'message$':_0x43ca9a[_0x5f5c4d(0x165)](),'send':_0xc906da=>{const _0x53ffd7=_0x5f5c4d;if(_0xc906da[_0x53ffd7(0x350)]===I[_0x53ffd7(0x210)]){if(_0xc906da[_0x53ffd7(0x1ee)][_0x53ffd7(0x1d7)]===_0x2ca871[_0x53ffd7(0x208)]){this['_submitChangeset'](_0x6ca882,_0xc906da[_0x53ffd7(0x1ee)])[_0x53ffd7(0x3fc)](_0x40c05f=>{const _0x301506=_0x53ffd7;this[_0x301506(0x49c)][_0x301506(0x2f3)](_0x40c05f),_0x125f80();});return;}if(_0xc906da['data']['eventID']===_0x2ca871[_0x53ffd7(0x1da)]){const _0x2f321e=_0xc906da['data'];this[_0x53ffd7(0x19c)](_0x2f321e)[_0x53ffd7(0x378)](_0x50b1dc=>{const _0x1d6795=_0x53ffd7;_0x43ca9a[_0x1d6795(0x151)]({'cmd':I[_0x1d6795(0x3da)],'code':Ht['OK'],'routeKey':_0x2f321e['data'][_0x1d6795(0x1ae)],'routeType':'','data':{'eventID':_0x2ca871[_0x1d6795(0x457)],'data':{'changesets':_0x50b1dc}}});})[_0x53ffd7(0x3fc)](_0x3c5f65=>{const _0x88f768=_0x53ffd7;this[_0x88f768(0x49c)][_0x88f768(0x2f3)](_0x3c5f65),_0x125f80();});return;}}_0x500424[_0x53ffd7(0x225)](Mn(_0xc906da));},'close':()=>{const _0x1caf71=_0x5f5c4d;_0x500424[_0x1caf71(0x26d)](),_0x26ae3c[_0x1caf71(0x1bf)]();}};return _0x6ca882;}async[_0x2908d8(0x41f)](_0x9ea115,_0xc91d54){const _0xe27ae4=_0x2908d8;var _0x35dd1a;const {unitType:_0x1f2cb5,unitID:_0x4bd5ef,changeset:_0xfd9165}=_0xc91d54[_0xe27ae4(0x1ee)],_0x34956d={'unitID':_0x4bd5ef,'memberID':_0x9ea115['memberID'],'type':_0x1f2cb5,'changeset':_0x355460(_0xfd9165)},_0x349184=$n((_0x35dd1a=this[_0xe27ae4(0x168)][_0xe27ae4(0x157)](Dn))!=null?_0x35dd1a:wn,_0x1f2cb5,_0x4bd5ef);try{await this['_http'][_0xe27ae4(0x2c7)](_0x349184,{'body':_0x34956d});}catch(_0x56abd6){throw this[_0xe27ae4(0x49c)][_0xe27ae4(0x2f3)](_0xe27ae4(0x43c),_0xe27ae4(0x272)),_0x56abd6;}}async[_0x2908d8(0x19c)](_0x4d950d){const _0x464da6=_0x2908d8,{unitID:_0xe4aed,from:_0x42431b,to:_0x247e66,unitType:_0x18db04}=_0x4d950d[_0x464da6(0x1ee)];return(await this[_0x464da6(0x16c)][_0x464da6(0x19f)]({'metadata':void 0x0},{'unitID':_0xe4aed,'type':_0x18db04,'from':_0x42431b,'to':_0x247e66}))[_0x464da6(0x487)];}};Et=Ln([Te(0x0,_0x573d4d(_0x2d51dc)),Te(0x1,_0x573d4d(_0x4447fb)),Te(0x2,_0x3abdb4),Te(0x3,_0x38155a),Te(0x4,_0x5d1d4f)],Et);class Ls{constructor(){const _0x1fad5b=_0x2908d8;l(this,'_commentUpdate$',new _0x59e98b()),l(this,_0x1fad5b(0x368),this[_0x1fad5b(0x382)][_0x1fad5b(0x165)]());}[_0x2908d8(0x13a)](_0x2e28e1){const _0x2313d0=_0x2908d8;this[_0x2313d0(0x382)][_0x2313d0(0x151)](_0x2e28e1);}}var jn=Object[_0x2908d8(0x1f6)],xn=Object[_0x2908d8(0x17b)],Hn=(_0x2d1838,_0xe747ad,_0x4300aa,_0x1ffde5)=>{const _0x46fc43=_0x2908d8;for(var _0x35bf75=_0x1ffde5>0x1?void 0x0:_0x1ffde5?xn(_0xe747ad,_0x4300aa):_0xe747ad,_0x4caf7e=_0x2d1838[_0x46fc43(0x478)]-0x1,_0xb56380;_0x4caf7e>=0x0;_0x4caf7e--)(_0xb56380=_0x2d1838[_0x4caf7e])&&(_0x35bf75=(_0x1ffde5?_0xb56380(_0xe747ad,_0x4300aa,_0x35bf75):_0xb56380(_0x35bf75))||_0x35bf75);return _0x1ffde5&&_0x35bf75&&jn(_0xe747ad,_0x4300aa,_0x35bf75),_0x35bf75;},is=(_0x321247,_0x9be399)=>(_0x547abc,_0x370c4b)=>_0x9be399(_0x547abc,_0x370c4b,_0x321247);let oe=class extends _0x5d8459{constructor(_0x2dc775,_0x3acf37){const _0x523dab=_0x2908d8;super(),l(this,'_roomMembers',new Map()),(this[_0x523dab(0x2c2)]=_0x2dc775,this[_0x523dab(0x1c3)]=_0x3acf37,this[_0x523dab(0x206)](_0x58e78e(_0x52a416(this[_0x523dab(0x2c2)]['getTypeOfUnitDisposed$'](_0x50520e[_0x523dab(0x37d)])[_0x523dab(0x490)](_0x391b01(_0x4dfe76=>_0x4dfe76[_0x523dab(0x18b)]())),this['_univerInstanceService'][_0x523dab(0x46a)](_0x50520e[_0x523dab(0x461)])[_0x523dab(0x490)](_0x391b01(_0x522257=>_0x522257[_0x523dab(0x18b)]())),this[_0x523dab(0x2c2)]['getTypeOfUnitDisposed$'](_0x50520e[_0x523dab(0x43f)])[_0x523dab(0x490)](_0x391b01(_0x10469e=>_0x10469e['getUnitId']())))[_0x523dab(0x298)](_0x2bbc07=>this[_0x523dab(0x1a3)](_0x2bbc07)))));}[_0x2908d8(0x312)](_0x430553){const _0x293fed=_0x2908d8;this[_0x293fed(0x1c3)][_0x293fed(0x312)](_0x430553);}[_0x2908d8(0x32f)](){const _0x253b4e=_0x2908d8;return this[_0x253b4e(0x1c3)][_0x253b4e(0x32f)]();}[_0x2908d8(0x293)](_0x33f0be,_0x2d74cb){const _0x490f4b=_0x2908d8;let _0x324f64=this[_0x490f4b(0x171)][_0x490f4b(0x479)](_0x33f0be);_0x324f64||(_0x324f64=new kn(),this['_roomMembers'][_0x490f4b(0x255)](_0x33f0be,_0x324f64)),_0x324f64['updateMember'](_0x2d74cb);}[_0x2908d8(0x1d8)](_0x16123d,_0x4d63b8){const _0x82bb07=_0x2908d8,_0x4e01fc=this[_0x82bb07(0x171)][_0x82bb07(0x479)](_0x16123d);_0x4e01fc&&_0x4e01fc[_0x82bb07(0x1d8)](_0x4d63b8);}[_0x2908d8(0x1c0)](_0x52bd0d){const _0x3a689e=_0x2908d8;return this['_roomMembers'][_0x3a689e(0x479)](_0x52bd0d);}[_0x2908d8(0x3e4)](_0x5769d1,_0x49c723){const _0x1a1d53=_0x2908d8,_0x478933=this[_0x1a1d53(0x171)][_0x1a1d53(0x479)](_0x5769d1);if(_0x478933)return _0x478933[_0x1a1d53(0x3e4)](_0x49c723);}[_0x2908d8(0x1a3)](_0xc076b3){const _0x56e14e=_0x2908d8,_0x1063cd=this['_roomMembers']['get'](_0xc076b3);_0x1063cd&&(_0x1063cd[_0x56e14e(0x1bf)](),this[_0x56e14e(0x171)]['delete'](_0xc076b3));}[_0x2908d8(0x1bf)](){const _0x42c439=_0x2908d8;this['_roomMembers'][_0x42c439(0x212)](_0x295b16=>_0x295b16[_0x42c439(0x1bf)]()),this[_0x42c439(0x171)][_0x42c439(0x2b1)]();}};oe=Hn([is(0x0,_0x52e604),is(0x1,_0x573d4d(_0x1ac4cb))],oe);class kn extends _0x5d8459{constructor(){const _0x199d6f=_0x2908d8;super(...arguments),l(this,_0x199d6f(0x374),new Map());}[_0x2908d8(0x1bf)](){const _0x567c36=_0x2908d8;this[_0x567c36(0x374)][_0x567c36(0x2b1)]();}[_0x2908d8(0x293)](_0x110eb9){const _0xb69d28=_0x2908d8;this[_0xb69d28(0x374)][_0xb69d28(0x255)](_0x110eb9[_0xb69d28(0x469)],_0x110eb9);}[_0x2908d8(0x1d8)](_0x236e4b){const _0x4dafd0=_0x2908d8;this[_0x4dafd0(0x374)][_0x4dafd0(0x34a)](_0x236e4b);}[_0x2908d8(0x3e4)](_0x3c0fbe){const _0x3c921e=_0x2908d8;return this[_0x3c921e(0x374)][_0x3c921e(0x479)](_0x3c0fbe);}}const Vn=_0x2908d8(0x2bd);function Bn(_0x10959b){const _0x4dd693=_0x2908d8;return JSON[_0x4dd693(0x2d3)](_0x10959b)['length'];}var Fn=Object[_0x2908d8(0x1f6)],Wn=Object[_0x2908d8(0x17b)],Gn=(_0x2fa001,_0x12ee3f,_0x3050ed,_0x4ac0d5)=>{const _0x13f6e2=_0x2908d8;for(var _0x76ef85=_0x4ac0d5>0x1?void 0x0:_0x4ac0d5?Wn(_0x12ee3f,_0x3050ed):_0x12ee3f,_0x4b0315=_0x2fa001[_0x13f6e2(0x478)]-0x1,_0x54325b;_0x4b0315>=0x0;_0x4b0315--)(_0x54325b=_0x2fa001[_0x4b0315])&&(_0x76ef85=(_0x4ac0d5?_0x54325b(_0x12ee3f,_0x3050ed,_0x76ef85):_0x54325b(_0x76ef85))||_0x76ef85);return _0x4ac0d5&&_0x76ef85&&Fn(_0x12ee3f,_0x3050ed,_0x76ef85),_0x76ef85;},X=(_0x5796ba,_0x4fa745)=>(_0x526b76,_0x197abf)=>_0x4fa745(_0x526b76,_0x197abf,_0x5796ba),F=(_0x1d2856=>(_0x1d2856[_0x1d2856['IDLE']=0x0]='IDLE',_0x1d2856[_0x1d2856['JOINING']=0x1]=_0x2908d8(0x334),_0x1d2856[_0x1d2856['OFFLINE']=0x2]='OFFLINE',_0x1d2856[_0x1d2856[_0x2908d8(0x285)]=0x3]='ONLINE',_0x1d2856))(F||{});let Ct=class extends _0x5afe1b{constructor(_0x227f48,_0x22d38e,_0x59f73f,_0x590ff9,_0x422eed,_0x20180f,_0x5f0d98,_0x5dc60d,_0x26b7f0,_0x394a5e){const _0x7ab457=_0x2908d8;super(),l(this,_0x7ab457(0x22d),new _0x5a6925(0x0)),l(this,_0x7ab457(0x278),this['_sessionStatus$']['asObservable']()),l(this,_0x7ab457(0x324),new _0x59e98b()),l(this,'event$',this[_0x7ab457(0x324)][_0x7ab457(0x165)]()),l(this,_0x7ab457(0x3dd)),l(this,_0x7ab457(0x459)),l(this,_0x7ab457(0x3aa)),l(this,_0x7ab457(0x35e),!0x1),l(this,_0x7ab457(0x14e),null),(this[_0x7ab457(0x1fa)]=_0x227f48,this[_0x7ab457(0x49c)]=_0x59f73f,this[_0x7ab457(0x30f)]=_0x590ff9,this[_0x7ab457(0x2fe)]=_0x422eed,this[_0x7ab457(0x168)]=_0x20180f,this['_localeService']=_0x5f0d98,this[_0x7ab457(0x13f)]=_0x5dc60d,this[_0x7ab457(0x437)]=_0x26b7f0,this[_0x7ab457(0x37a)]=_0x394a5e,this[_0x7ab457(0x35e)]=!!this[_0x7ab457(0x37a)],_0x22d38e[_0x7ab457(0x490)](_0x4f72a2(this['dispose$']))['subscribe'](_0x700e8=>{const _0x55202d=_0x7ab457;var _0x470e90;typeof _0x700e8>'u'||(this[_0x55202d(0x3dd)]=_0x700e8,_0x700e8?(this[_0x55202d(0x289)](_0x700e8),this[_0x55202d(0x459)]=this[_0x55202d(0x3dd)][_0x55202d(0x3c5)]['subscribe'](_0x50ed5c=>{const _0x304249=_0x55202d;_0x50ed5c[_0x304249(0x271)]===this['_unitID']&&this[_0x304249(0x450)](_0x50ed5c);})):(this[_0x55202d(0x42d)](),this[_0x55202d(0x22d)]['next'](0x2),(_0x470e90=this['_socketMessageSubscription'])==null||_0x470e90['unsubscribe'](),this[_0x55202d(0x459)]=null));}),this[_0x7ab457(0x206)](this['_beforeCloseService'][_0x7ab457(0x1e7)](()=>{const _0x4f0648=_0x7ab457;var _0x50474a;(_0x50474a=this[_0x4f0648(0x3dd)])==null||_0x50474a[_0x4f0648(0x225)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x4f0648(0x1fa)]}});})));}get['sessionStatus'](){const _0x4f46f3=_0x2908d8;return this['_sessionStatus$'][_0x4f46f3(0x29d)]();}['getMemberID'](){const _0x52d63f=_0x2908d8;var _0x29fc49,_0x3da6c7;return(_0x3da6c7=(_0x29fc49=this[_0x52d63f(0x3dd)])==null?void 0x0:_0x29fc49['memberID'])!=null?_0x3da6c7:null;}['dispose'](){const _0x359586=_0x2908d8;super[_0x359586(0x1bf)](),this['dispose$'][_0x359586(0x151)](),this[_0x359586(0x2ba)][_0x359586(0x2d4)]();}[_0x2908d8(0x26d)](){const _0x1777d1=_0x2908d8;var _0x252d11,_0x114735;this[_0x1777d1(0x42d)](),(_0x252d11=this[_0x1777d1(0x3dd)])==null||_0x252d11[_0x1777d1(0x225)]({'cmd':I[_0x1777d1(0x287)],'data':{'roomID':this[_0x1777d1(0x1fa)]}}),(_0x114735=this[_0x1777d1(0x3dd)])==null||_0x114735[_0x1777d1(0x26d)](),this[_0x1777d1(0x324)][_0x1777d1(0x2d4)](),this['_sessionStatus$'][_0x1777d1(0x2d4)](),this['dispose']();}[_0x2908d8(0x450)](_0x125f6a){const _0x4871e1=_0x2908d8;_0x125f6a[_0x4871e1(0x350)]===I['JOIN']?this['_onJoinRoomEvent'](_0x125f6a):_0x125f6a['cmd']===I[_0x4871e1(0x3da)]&&this[_0x4871e1(0x2ae)](_0x125f6a);}[_0x2908d8(0x289)](_0x2a71fb){const _0x369cc5=_0x2908d8;this[_0x369cc5(0x22d)][_0x369cc5(0x151)](0x1),_0x2a71fb[_0x369cc5(0x225)]({'cmd':I['JOIN'],'routeKey':this[_0x369cc5(0x1fa)],'routeType':'','data':{'rooms':[{'roomID':this[_0x369cc5(0x1fa)]}]}});}[_0x2908d8(0x3f4)](_0x4791e5){const _0x1a3585=_0x2908d8;var _0x4b9031;if(_0x4791e5['code']===Ht[_0x1a3585(0x29f)]){this['_messageService'][_0x1a3585(0x24e)]({'type':_0x42502c[_0x1a3585(0x152)],'content':this['_localeService']['t']('session.room-full')}),this[_0x1a3585(0x22d)][_0x1a3585(0x151)](0x2);return;}this[_0x1a3585(0x22d)][_0x1a3585(0x151)](0x3);const _0x46e66d=(_0x4b9031=_0x4791e5[_0x1a3585(0x1ee)][_0x1a3585(0x423)][this[_0x1a3585(0x1fa)]])==null?void 0x0:_0x4b9031[_0x1a3585(0x3fa)];_0x46e66d&&_0x46e66d['forEach'](_0xed6147=>this[_0x1a3585(0x13f)][_0x1a3585(0x293)](this[_0x1a3585(0x1fa)],_0xed6147));}[_0x2908d8(0x2ae)](_0x4135fb){const _0x57bd54=_0x2908d8;try{const _0x241dbb=_0x4135fb[_0x57bd54(0x1ee)];switch(_0x241dbb[_0x57bd54(0x1d7)]){case _0x2ca871[_0x57bd54(0x26a)]:this[_0x57bd54(0x39c)](_0x241dbb),this[_0x57bd54(0x324)][_0x57bd54(0x151)](_0x241dbb);break;case _0x2ca871[_0x57bd54(0x464)]:this[_0x57bd54(0x45c)](_0x241dbb),this[_0x57bd54(0x324)][_0x57bd54(0x151)](_0x241dbb);break;case _0x2ca871[_0x57bd54(0x3c0)]:this[_0x57bd54(0x2e1)](),this[_0x57bd54(0x146)](),this['_event$'][_0x57bd54(0x151)](_0x241dbb);break;case _0x2ca871[_0x57bd54(0x410)]:this[_0x57bd54(0x49c)][_0x57bd54(0x2f3)](_0x57bd54(0x137)+JSON[_0x57bd54(0x2d3)](_0x241dbb)),this[_0x57bd54(0x324)][_0x57bd54(0x151)](_0x241dbb);break;case _0x2ca871[_0x57bd54(0x369)]:this[_0x57bd54(0x437)][_0x57bd54(0x13a)](_0x241dbb[_0x57bd54(0x1ee)]),this[_0x57bd54(0x324)][_0x57bd54(0x151)](_0x241dbb);break;default:this[_0x57bd54(0x324)][_0x57bd54(0x151)](_0x241dbb);}}catch(_0x5e23c1){this[_0x57bd54(0x49c)][_0x57bd54(0x2f3)](_0x5e23c1,_0x4135fb);}}[_0x2908d8(0x39c)](_0x41a95c){const _0x46222a=_0x2908d8;this['_memberService'][_0x46222a(0x293)](this[_0x46222a(0x1fa)],_0x41a95c[_0x46222a(0x1ee)]);}['_onUserLeave'](_0x521f94){const _0x5af924=_0x2908d8;this[_0x5af924(0x13f)]['removeMember'](this[_0x5af924(0x1fa)],_0x521f94['data'][_0x5af924(0x469)]);}async[_0x2908d8(0x225)](_0xffe17b,_0x54b7e5){const _0x12e1eb=_0x2908d8;if(this[_0x12e1eb(0x27a)]!==0x3||!this['_socket'])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0xffe17b['eventID']===_0x2ca871[_0x12e1eb(0x208)]&&(this[_0x12e1eb(0x291)](),this[_0x12e1eb(0x2ac)](_0xffe17b)),this[_0x12e1eb(0x3dd)][_0x12e1eb(0x225)]({'cmd':I[_0x12e1eb(0x210)],'routeKey':_0x54b7e5,'routeType':'','data':_0xffe17b});}catch(_0x168b84){this['_logService'][_0x12e1eb(0x2f3)](_0x168b84);}}[_0x2908d8(0x291)](){const _0x4e7631=_0x2908d8;var _0x3adc20;this[_0x4e7631(0x3aa)]=window[_0x4e7631(0x49d)](()=>{const _0x21e882=_0x4e7631;this[_0x21e882(0x3aa)]=null,this[_0x21e882(0x2fe)][_0x21e882(0x24e)]({'type':_0x42502c['Error'],'content':this[_0x21e882(0x140)]['t']('session.collaboration-timeout')});},(_0x3adc20=this[_0x4e7631(0x168)]['getConfig'](Ns))!=null?_0x3adc20:ys);}['_clearCollaborationTimeoutTimer'](){const _0x4a1920=_0x2908d8;this[_0x4a1920(0x3aa)]&&(clearTimeout(this[_0x4a1920(0x3aa)]),this['_collaborationTimeoutTimer']=null);}[_0x2908d8(0x2ac)](_0x4f55e8){const _0x315802=_0x2908d8;if(!this[_0x315802(0x35e)])return;const {data:_0x384e50}=_0x4f55e8,{unitID:_0x574e2e,changeset:_0x43e6ba}=_0x384e50,{mutations:_0x460910,type:_0x27dbb5}=_0x43e6ba;this[_0x315802(0x14e)]={'unitId':_0x574e2e,'type':_0x27dbb5,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Bn(_0x460910)};}[_0x2908d8(0x2e1)](){const _0x1ad99c=_0x2908d8;if(this[_0x1ad99c(0x35e)]){if(!this[_0x1ad99c(0x14e)]){this[_0x1ad99c(0x49c)]['error'](_0x1ad99c(0x43c),_0x1ad99c(0x2f6));return;}this[_0x1ad99c(0x14e)][_0x1ad99c(0x41e)]=performance[_0x1ad99c(0x44b)](),this[_0x1ad99c(0x14e)][_0x1ad99c(0x1d0)]=this[_0x1ad99c(0x14e)]['stopTime']-this['_telemetryInfo'][_0x1ad99c(0x246)],this['_telemetryService']['capture'](Vn,this[_0x1ad99c(0x14e)]),this['_telemetryInfo']=null;}}[_0x2908d8(0x42d)](){const _0x5061b8=_0x2908d8;this[_0x5061b8(0x14e)]=null;}};Ct=Gn([X(0x2,_0x38155a),X(0x3,_0x4e50c2),X(0x4,_0x6d8428),X(0x5,_0x3abdb4),X(0x6,_0x573d4d(_0x5071b4)),X(0x7,_0x573d4d(oe)),X(0x8,_0x573d4d(Ls)),X(0x9,_0x2b0397(_0x2b6c9d))],Ct);var Yn=Object[_0x2908d8(0x1f6)],Kn=Object['getOwnPropertyDescriptor'],Xn=(_0xe63e9d,_0x31778d,_0x19dbc9,_0x35c2c5)=>{const _0x127dae=_0x2908d8;for(var _0x1fde41=_0x35c2c5>0x1?void 0x0:_0x35c2c5?Kn(_0x31778d,_0x19dbc9):_0x31778d,_0x237d24=_0xe63e9d[_0x127dae(0x478)]-0x1,_0x477b5a;_0x237d24>=0x0;_0x237d24--)(_0x477b5a=_0xe63e9d[_0x237d24])&&(_0x1fde41=(_0x35c2c5?_0x477b5a(_0x31778d,_0x19dbc9,_0x1fde41):_0x477b5a(_0x1fde41))||_0x1fde41);return _0x35c2c5&&_0x1fde41&&Yn(_0x31778d,_0x19dbc9,_0x1fde41),_0x1fde41;},ue=(_0x3b252f,_0x4304b7)=>(_0x111bae,_0x59de1a)=>_0x4304b7(_0x111bae,_0x59de1a,_0x3b252f);let ae=class extends _0x5d8459{constructor(_0x40904b,_0x497cc6,_0x461c70,_0xcd6585,_0x456f48,_0xce80f3){const _0x15757e=_0x2908d8;super(),l(this,_0x15757e(0x26f),new _0x5a6925(void 0x0)),l(this,_0x15757e(0x16e),this['_socket$']['asObservable']()),l(this,_0x15757e(0x2c8),new Map()),l(this,_0x15757e(0x1a7),new _0x5a6925(F['IDLE'])),l(this,_0x15757e(0x383),this[_0x15757e(0x1a7)][_0x15757e(0x165)]()),l(this,_0x15757e(0x1d2),!0x1),l(this,_0x15757e(0x1c5)),l(this,_0x15757e(0x299),0x0),l(this,'_sendHeartbeatTimer'),l(this,'_timeoutTimer'),(this[_0x15757e(0x333)]=_0x40904b,this[_0x15757e(0x140)]=_0x497cc6,this[_0x15757e(0x2fe)]=_0x461c70,this['_logService']=_0xcd6585,this[_0x15757e(0x168)]=_0x456f48,this['_socketService']=_0xce80f3);}get[_0x2908d8(0x3dd)](){const _0xbe9f47=_0x2908d8;return this[_0xbe9f47(0x26f)][_0xbe9f47(0x29d)]();}['dispose'](){const _0xfe7de9=_0x2908d8;super[_0xfe7de9(0x1bf)](),this[_0xfe7de9(0x2c8)][_0xfe7de9(0x212)](_0x1363a8=>_0x1363a8['dispose']()),this[_0xfe7de9(0x2c8)][_0xfe7de9(0x2b1)](),this['_status$']['complete']();}async[_0x2908d8(0x325)](_0x61e9f9){const _0x288d11=_0x2908d8;if(this[_0x288d11(0x2c8)]['has'](_0x61e9f9))return this[_0x288d11(0x2c8)]['get'](_0x61e9f9);this[_0x288d11(0x310)]();const _0x29f9b5=this[_0x288d11(0x333)][_0x288d11(0x386)](Ct,_0x61e9f9,this[_0x288d11(0x26f)][_0x288d11(0x165)]());return this[_0x288d11(0x2c8)]['set'](_0x61e9f9,_0x29f9b5),_0x29f9b5;}[_0x2908d8(0x3a6)](_0x19613e){const _0x177e93=_0x2908d8;var _0x408154;const _0x5b5b29=this[_0x177e93(0x2c8)]['get'](_0x19613e);_0x5b5b29&&(this[_0x177e93(0x2c8)][_0x177e93(0x34a)](_0x19613e),_0x5b5b29[_0x177e93(0x26d)]()),this[_0x177e93(0x2c8)][_0x177e93(0x134)]||(_0x408154=this[_0x177e93(0x3dd)])==null||_0x408154[_0x177e93(0x26d)]();}['reconnect'](){const _0x3c74fb=_0x2908d8;this[_0x3c74fb(0x299)]=0x0,this[_0x3c74fb(0x1c5)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x3c74fb(0x1c5)]=null),this['_tryReconnect']();}[_0x2908d8(0x244)](){const _0x4daabe=_0x2908d8;var _0x3cf11f;const _0x52f0a9=(_0x3cf11f=this['_configService'][_0x4daabe(0x157)](Sn))!=null?_0x3cf11f:pn;return this[_0x4daabe(0x2ed)][_0x4daabe(0x1d3)](_0x52f0a9);}[_0x2908d8(0x310)](){const _0x4b121d=_0x2908d8;try{const _0x19ae76=this[_0x4b121d(0x244)]();if(_0x19ae76){const _0x3cc7c8=_0x19ae76[_0x4b121d(0x225)];_0x19ae76[_0x4b121d(0x225)]=_0x57e07a=>(this['_rescheduleHeartbeat'](),_0x3cc7c8[_0x4b121d(0x2a9)](_0x19ae76,[_0x57e07a])),_0x19ae76[_0x4b121d(0x3c5)][_0x4b121d(0x298)](_0x1f8cb8=>this['_onMessage'](_0x19ae76,_0x1f8cb8)),_0x19ae76['error$']['pipe'](_0x2fa718(0x1))[_0x4b121d(0x298)](_0x441e84=>this['_logService'][_0x4b121d(0x2f3)](_0x4b121d(0x2b7),_0x441e84)),_0x19ae76[_0x4b121d(0x2be)][_0x4b121d(0x490)](_0x2fa718(0x1))['subscribe'](()=>{const _0x3da9d3=_0x4b121d;this[_0x3da9d3(0x45f)](_0x19ae76);}),_0x19ae76[_0x4b121d(0x339)][_0x4b121d(0x490)](_0x2fa718(0x1))[_0x4b121d(0x298)](_0x454134=>{const _0x140ce0=_0x4b121d;this[_0x140ce0(0x49c)][_0x140ce0(0x2e6)]('[CollaborationSessionService]',_0x140ce0(0x30e),_0x454134),this[_0x140ce0(0x3ef)]();});}}catch(_0x353cbf){this[_0x4b121d(0x49c)][_0x4b121d(0x2f3)](_0x353cbf),this[_0x4b121d(0x3ef)]();}}[_0x2908d8(0x45f)](_0x30c04a){const _0x5b8269=_0x2908d8;this['_logService'][_0x5b8269(0x2e6)]('[CollaborationSessionService]','socket\x20open.'),_0x30c04a[_0x5b8269(0x225)]({'cmd':I[_0x5b8269(0x23a)]}),this[_0x5b8269(0x48c)](),this[_0x5b8269(0x39e)]();}[_0x2908d8(0x39e)](){const _0x1696bb=_0x2908d8,_0x3db1f2=()=>{const _0x15aa97=_0x1140;this[_0x15aa97(0x33c)](),this['_listenToOnlineEvent'](),window[_0x15aa97(0x3f5)](_0x15aa97(0x44a),_0x3db1f2);};window[_0x1696bb(0x1a8)](_0x1696bb(0x44a),_0x3db1f2);}[_0x2908d8(0x33c)](){const _0x161d82=_0x2908d8;this[_0x161d82(0x1d2)]=!0x1,this[_0x161d82(0x1a7)][_0x161d82(0x151)](F[_0x161d82(0x288)]),this[_0x161d82(0x26f)][_0x161d82(0x151)](null),this[_0x161d82(0x3a5)](),this[_0x161d82(0x17d)]();}[_0x2908d8(0x3ef)](){const _0x26f290=_0x2908d8;var _0x3f6103;this['_onOffline'](),this['_retryCount']<((_0x3f6103=this[_0x26f290(0x168)][_0x26f290(0x157)](bn))!=null?_0x3f6103:Tn)?(this[_0x26f290(0x2fe)][_0x26f290(0x24e)]({'key':'collaboration-session-retry','type':_0x42502c[_0x26f290(0x152)],'content':this['_localeService']['t'](_0x26f290(0x193))}),this['_tryReconnect']()):(this[_0x26f290(0x2fe)][_0x26f290(0x24e)]({'key':_0x26f290(0x2fd),'type':_0x42502c[_0x26f290(0x495)],'content':this[_0x26f290(0x140)]['t'](_0x26f290(0x3c4))}),this[_0x26f290(0x248)]());}['_listenToOnlineEvent'](){const _0x2bc984=_0x2908d8,_0x4e5f5f=()=>{const _0x2ec505=_0x1140;this[_0x2ec505(0x1cb)](),window[_0x2ec505(0x3f5)](_0x2ec505(0x170),_0x4e5f5f);};window[_0x2bc984(0x1a8)](_0x2bc984(0x170),_0x4e5f5f),this[_0x2bc984(0x26f)][_0x2bc984(0x490)](_0x51803d(_0x17f511=>!!_0x17f511),_0x2fa718(0x1))[_0x2bc984(0x298)](()=>{const _0x526a3f=_0x2bc984;window[_0x526a3f(0x3f5)]('online',_0x4e5f5f);});}[_0x2908d8(0x294)](){const _0x183e87=_0x2908d8;var _0x196aab;const _0xcf26cd=this[_0x183e87(0x299)],_0x482ebd=_0xcf26cd===0x0?0x0:((_0x196aab=this[_0x183e87(0x168)][_0x183e87(0x157)](En))!=null?_0x196aab:Cn)*0x2**_0xcf26cd;this[_0x183e87(0x1c5)]=window['setTimeout'](()=>{const _0x10e5cb=_0x183e87;clearTimeout(this['_retryConnectingTimer']),this[_0x10e5cb(0x1c5)]=null,this[_0x10e5cb(0x310)]();},_0x482ebd),this['_retryCount']+=0x1;}[_0x2908d8(0x454)](_0x50733b,_0x31d42f){const _0x35d8e3=_0x2908d8,{cmd:_0x47c8e7}=_0x31d42f;_0x47c8e7===I['HELLO']&&!this[_0x35d8e3(0x1d2)]&&(_0x50733b[_0x35d8e3(0x469)]=_0x31d42f[_0x35d8e3(0x1ee)][_0x35d8e3(0x469)],this[_0x35d8e3(0x26f)][_0x35d8e3(0x151)](_0x50733b),this[_0x35d8e3(0x1a7)][_0x35d8e3(0x151)](F['ONLINE']),this[_0x35d8e3(0x1d2)]=!0x0),_0x47c8e7===I['HEARTBEAT']&&this[_0x35d8e3(0x3a5)](),this[_0x35d8e3(0x48c)]();}[_0x2908d8(0x48c)](){const _0x815c23=_0x2908d8;var _0x564bbd;this[_0x815c23(0x17d)](),this[_0x815c23(0x2ec)]=window[_0x815c23(0x49d)](()=>this[_0x815c23(0x207)](),(_0x564bbd=this['_configService']['getConfig'](vn))!=null?_0x564bbd:In);}[_0x2908d8(0x207)](){const _0x480b9f=_0x2908d8;this[_0x480b9f(0x3dd)]['send']({'cmd':I[_0x480b9f(0x1e6)]}),this[_0x480b9f(0x1b0)]();}[_0x2908d8(0x1b0)](){const _0x310ae8=_0x2908d8;var _0x43366c;this[_0x310ae8(0x2fb)]=window['setTimeout'](()=>this[_0x310ae8(0x3ef)](),(_0x43366c=this[_0x310ae8(0x168)]['getConfig'](Ns))!=null?_0x43366c:ys);}[_0x2908d8(0x17d)](){const _0x2abf0e=_0x2908d8;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x2abf0e(0x2ec)]=null);}[_0x2908d8(0x3a5)](){const _0x47cb45=_0x2908d8;this[_0x47cb45(0x2fb)]!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}};ae=Xn([ue(0x0,_0x573d4d(_0x100ac5)),ue(0x1,_0x573d4d(_0x5071b4)),ue(0x2,_0x6d8428),ue(0x3,_0x38155a),ue(0x4,_0x3abdb4),ue(0x5,Us)],ae);var Jn=Object[_0x2908d8(0x1f6)],zn=Object[_0x2908d8(0x17b)],qn=(_0x584c3e,_0x1e232b,_0x3afd30,_0x574bc2)=>{const _0x4b2642=_0x2908d8;for(var _0x2c39fa=_0x574bc2>0x1?void 0x0:_0x574bc2?zn(_0x1e232b,_0x3afd30):_0x1e232b,_0x78b698=_0x584c3e[_0x4b2642(0x478)]-0x1,_0x4c72e2;_0x78b698>=0x0;_0x78b698--)(_0x4c72e2=_0x584c3e[_0x78b698])&&(_0x2c39fa=(_0x574bc2?_0x4c72e2(_0x1e232b,_0x3afd30,_0x2c39fa):_0x4c72e2(_0x2c39fa))||_0x2c39fa);return _0x574bc2&&_0x2c39fa&&Jn(_0x1e232b,_0x3afd30,_0x2c39fa),_0x2c39fa;},ns=(_0x41ab0f,_0x21c65d)=>(_0x3ec562,_0x8b80ea)=>_0x21c65d(_0x3ec562,_0x8b80ea,_0x41ab0f);let Ze=class{constructor(_0x2ee83e,_0x32cdb3){this['_injector']=_0x2ee83e,this['_transformService']=_0x32cdb3;}[_0x2908d8(0x46e)](_0x3ace1d){const _0x1da6cb=_0x2908d8;this['_transformUndoRedoStack'](_0x3ace1d),this[_0x1da6cb(0x365)](_0x3ace1d);}[_0x2908d8(0x1cd)](_0x373ff5){const _0x364cee=_0x2908d8,_0x3fda22=this[_0x364cee(0x333)][_0x364cee(0x479)](_0x49d2f3),{redoCache:_0x2efe9}=_0x3fda22['getUndoRedoMutationParamsCache']();if(_0x2efe9[_0x364cee(0x478)]===0x0)return _0x373ff5;let _0xe98c15=_0x34c7a8[_0x364cee(0x448)](_0x373ff5[_0x364cee(0x467)][0x0]);for(let _0x3ba3a6=0x0;_0x3ba3a6<_0x2efe9[_0x364cee(0x478)];_0x3ba3a6++){const _0x56b3b3={'id':_0x364cee(0x345),'params':{..._0x2efe9[_0x3ba3a6]}},_0x274781=this[_0x364cee(0x389)][_0x364cee(0x2bf)](_0xe98c15,_0x56b3b3,!0x1);if(_0x18c8e5(_0x274781))throw _0x274781[_0x364cee(0x2f3)];_0xe98c15=_0x274781[_0x364cee(0x220)];}return{..._0x34c7a8['deepClone'](_0x373ff5),'mutations':[_0xe98c15]};}[_0x2908d8(0x384)](_0x484c02){const _0x3e0c56=_0x2908d8,_0x3f2a62=this['_injector'][_0x3e0c56(0x479)](_0x49d2f3),{undoCache:_0x2dff07,redoCache:_0x4b47e4}=_0x3f2a62[_0x3e0c56(0x1bd)]();if(_0x2dff07[_0x3e0c56(0x478)]===0x0||_0x4b47e4['length']===0x0)return;const _0xddf703=[],_0xce1e63=[];let _0x4ed673=_0x34c7a8[_0x3e0c56(0x448)](_0x484c02[_0x3e0c56(0x467)][0x0]),_0x3b2a94=_0x34c7a8[_0x3e0c56(0x448)](_0x484c02[_0x3e0c56(0x467)][0x0]);for(let _0x4830bc=_0x2dff07[_0x3e0c56(0x478)]-0x1;_0x4830bc>=0x0;_0x4830bc--){const _0x3223e5={'id':_0x3e0c56(0x345),'params':{..._0x2dff07[_0x4830bc]}},_0x1f3ee4={'id':_0x3e0c56(0x345),'params':{..._0x4b47e4[_0x4830bc]}},_0x176451=this[_0x3e0c56(0x389)][_0x3e0c56(0x2bf)](_0x4ed673,_0x3223e5,!0x1),_0xbc5381=this['_transformService'][_0x3e0c56(0x2bf)](_0x3b2a94,_0x1f3ee4,!0x1);if(_0x18c8e5(_0x176451))throw _0x176451['error'];if(_0x18c8e5(_0xbc5381))throw _0xbc5381[_0x3e0c56(0x2f3)];_0xddf703[_0x3e0c56(0x362)](_0x176451[_0x3e0c56(0x447)]['params']),_0xce1e63[_0x3e0c56(0x362)](_0xbc5381['m2Prime'][_0x3e0c56(0x455)]),_0x4ed673=_0x176451[_0x3e0c56(0x220)],_0x3b2a94=_0xbc5381['m1Prime'];}_0x3f2a62['setUndoRedoMutationParamsCache']({'undoCache':_0xddf703,'redoCache':_0xce1e63});}[_0x2908d8(0x365)](_0x4a856c){const _0x2ac2d2=_0x2908d8,_0x52c8b4=this['_injector'][_0x2ac2d2(0x479)](_0x49d2f3),_0x3b0394=_0x52c8b4[_0x2ac2d2(0x2b6)]();if(_0x3b0394==null)return;const _0x36c76a=[{'id':_0x2ac2d2(0x345),'params':{'unitId':_0x4a856c[_0x2ac2d2(0x1ae)],'actions':null,'textRanges':[_0x3b0394]}}],_0x5038a5=this[_0x2ac2d2(0x389)][_0x2ac2d2(0x27e)](_0x4a856c,_0x36c76a);if(!_0x5a2236(_0x5038a5))throw _0x5038a5[_0x2ac2d2(0x2f3)];const _0x3b834e=_0x5038a5['m2Prime'][0x0]['params'][_0x2ac2d2(0x15b)];Array['isArray'](_0x3b834e)&&_0x3b834e[_0x2ac2d2(0x478)]&&_0x52c8b4[_0x2ac2d2(0x2df)](_0x3b834e[0x0]);}};Ze=qn([ns(0x0,_0x573d4d(_0x100ac5)),ns(0x1,_0x35595c)],Ze);var Zn=Object['defineProperty'],Qn=Object['getOwnPropertyDescriptor'],er=(_0x36a6fa,_0x3cebef,_0x2ede00,_0x377043)=>{const _0x357c2e=_0x2908d8;for(var _0xb59f1d=_0x377043>0x1?void 0x0:_0x377043?Qn(_0x3cebef,_0x2ede00):_0x3cebef,_0x168de4=_0x36a6fa[_0x357c2e(0x478)]-0x1,_0x56c946;_0x168de4>=0x0;_0x168de4--)(_0x56c946=_0x36a6fa[_0x168de4])&&(_0xb59f1d=(_0x377043?_0x56c946(_0x3cebef,_0x2ede00,_0xb59f1d):_0x56c946(_0xb59f1d))||_0xb59f1d);return _0x377043&&_0xb59f1d&&Zn(_0x3cebef,_0x2ede00,_0xb59f1d),_0xb59f1d;},Re=(_0x2080f8,_0xd2104e)=>(_0x562c4d,_0x3f952c)=>_0xd2104e(_0x562c4d,_0x3f952c,_0x2080f8);let D=class extends _0x5d8459{constructor(_0x3f70b7,_0x4e93fa,_0x8f7bb1,_0x58712b,_0x4d2b36){const _0xfa3f38=_0x2908d8;super(),l(this,_0xfa3f38(0x277),new Map()),l(this,_0xfa3f38(0x1f9),new Map()),l(this,_0xfa3f38(0x270),!0x1),(this[_0xfa3f38(0x168)]=_0x3f70b7,this[_0xfa3f38(0x1f5)]=_0x4e93fa,this[_0xfa3f38(0x30f)]=_0x8f7bb1,this[_0xfa3f38(0x140)]=_0x58712b,this['_revisionService']=_0x4d2b36,this['_setupBeforeClosingHandler']());}[_0x2908d8(0x3d8)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x33af30=_0x2908d8;this[_0x33af30(0x270)]=!0x1;}[_0x2908d8(0x1bf)](){const _0xe41fcb=_0x2908d8;this[_0xe41fcb(0x315)]()['then'](()=>super['dispose']());}async[_0x2908d8(0x22b)](_0xcde45){const _0x264331=_0x2908d8;return this['_disabled']?null:this[_0x264331(0x1f5)]['getItem'](rs(_0xcde45));}async[_0x2908d8(0x470)](_0x4acefb,_0x2c7522){const _0xdfe648=_0x2908d8;return!!this[_0xdfe648(0x1f5)][_0xdfe648(0x31e)](_0x4acefb,_0x2c7522);}[_0x2908d8(0x401)](_0x2cbb47,_0x5b1844,_0x1a8519,_0x1c16ce){const _0x461d33=_0x2908d8,_0x25c491=this[_0x461d33(0x3fe)][_0x461d33(0x25b)](_0x2cbb47);this[_0x461d33(0x277)][_0x461d33(0x255)](_0x2cbb47,{'unitID':_0x2cbb47,'type':_0x5b1844,'awaitingChangeset':_0x1a8519,'mutations':_0x1c16ce,'rev':_0x25c491}),this[_0x461d33(0x1f9)][_0x461d33(0x25a)](_0x2cbb47)||this[_0x461d33(0x445)](_0x2cbb47);}['_scheduleSaving'](_0x15dba2){const _0x177490=_0x2908d8,_0x3a3ea2=this['_getSaveTimeout']();_0x3a3ea2===0x0?this[_0x177490(0x44d)](_0x15dba2):this[_0x177490(0x1f9)][_0x177490(0x255)](_0x15dba2,setTimeout(()=>this['_saveCache'](_0x15dba2),_0x3a3ea2));}[_0x2908d8(0x33a)](){const _0x4f2a30=_0x2908d8;var _0x1e45c4;return(_0x1e45c4=this['_configService'][_0x4f2a30(0x157)](Rn))!=null?_0x1e45c4:On;}[_0x2908d8(0x44d)](_0x4318a0){const _0x20ae50=_0x2908d8,_0x26e1ba=this['_saveTaskMap'][_0x20ae50(0x479)](_0x4318a0);return _0x26e1ba!==void 0x0&&window[_0x20ae50(0x319)](_0x26e1ba),this[_0x20ae50(0x1f5)][_0x20ae50(0x31e)](rs(_0x4318a0),this[_0x20ae50(0x277)][_0x20ae50(0x479)](_0x4318a0))[_0x20ae50(0x378)](()=>this[_0x20ae50(0x1f9)][_0x20ae50(0x34a)](_0x4318a0));}async[_0x2908d8(0x315)](){const _0x18e64f=_0x2908d8,_0x53caa6=[];this[_0x18e64f(0x1f9)]['forEach']((_0x2ace05,_0x2da317)=>{const _0x24862c=_0x18e64f;window[_0x24862c(0x319)](_0x2ace05),_0x53caa6['push'](this[_0x24862c(0x44d)](_0x2da317)[_0x24862c(0x378)](()=>{const _0x43be48=_0x24862c;this['_saveTaskMap'][_0x43be48(0x34a)](_0x2da317);}));}),await Promise['all'](_0x53caa6);}[_0x2908d8(0x34c)](){const _0x537763=_0x2908d8;this['disposeWithMe'](this[_0x537763(0x30f)][_0x537763(0x2dd)](()=>{const _0x12f7fc=_0x537763;if(this[_0x12f7fc(0x1f9)][_0x12f7fc(0x134)])return this[_0x12f7fc(0x140)]['t'](_0x12f7fc(0x2a5));}));}};D=er([Re(0x0,_0x3abdb4),Re(0x1,_0x3997ea),Re(0x2,_0x4e50c2),Re(0x3,_0x573d4d(_0x5071b4)),Re(0x4,_0x573d4d(_0xa35cc))],D);function rs(_0x3d2292){const _0x5c479a=_0x2908d8;return _0x5c479a(0x16a)+_0x3d2292;}var tr=Object[_0x2908d8(0x1f6)],sr=Object[_0x2908d8(0x17b)],ir=(_0x1ebd05,_0x32f8c5,_0x3f0da7,_0x55c250)=>{const _0x160398=_0x2908d8;for(var _0x10a64f=_0x55c250>0x1?void 0x0:_0x55c250?sr(_0x32f8c5,_0x3f0da7):_0x32f8c5,_0x497b8a=_0x1ebd05[_0x160398(0x478)]-0x1,_0x590a53;_0x497b8a>=0x0;_0x497b8a--)(_0x590a53=_0x1ebd05[_0x497b8a])&&(_0x10a64f=(_0x55c250?_0x590a53(_0x32f8c5,_0x3f0da7,_0x10a64f):_0x590a53(_0x10a64f))||_0x10a64f);return _0x55c250&&_0x10a64f&&tr(_0x32f8c5,_0x3f0da7,_0x10a64f),_0x10a64f;},ht=(_0x327dad,_0x4d3c79)=>(_0x58e153,_0x41d4e0)=>_0x4d3c79(_0x58e153,_0x41d4e0,_0x327dad);function nr(_0x1d31d2){const _0x51c1a3=_0x2908d8,{unitID:_0xf5fbdf,mutations:_0x5eed71}=_0x1d31d2;return{'unitId':_0xf5fbdf,'subUnitId':_0x5eed71[0x0][_0x51c1a3(0x455)]['subUnitId']};}let Qe=class{constructor(_0x1886d9,_0x468d48,_0x56fe40){const _0x12e4f5=_0x2908d8;this[_0x12e4f5(0x333)]=_0x1886d9,this[_0x12e4f5(0x389)]=_0x468d48,this[_0x12e4f5(0x3f0)]=_0x56fe40;}[_0x2908d8(0x342)](_0x88e571){const _0xf91282=_0x2908d8;var _0x2fd615,_0x3d58aa,_0x5e4d19,_0x10953e,_0x210f1e;const _0x1bc876=this[_0xf91282(0x333)][_0xf91282(0x479)](_0x1f939b),{unitId:_0x398e99,subUnitId:_0x5802d3}=nr(_0x88e571),_0x27b77c=_0x1bc876[_0xf91282(0x33d)](_0x398e99)['getCurrentSelections'](),_0x16c78e=(_0x3d58aa=(_0x2fd615=this[_0xf91282(0x3f0)]['getUnit'](_0x398e99))==null?void 0x0:_0x2fd615['getActiveSheet']())==null?void 0x0:_0x3d58aa[_0xf91282(0x348)]();if(_0x27b77c[_0xf91282(0x478)]===0x0||!_0x398e99||!_0x5802d3)return;const _0x2722f8=[{'id':_0xb83057['id'],'params':{'unitId':_0x398e99,'subUnitId':_0x16c78e,'selections':_0x34c7a8[_0xf91282(0x448)](_0x27b77c)}}],_0x1bd69e=this[_0xf91282(0x389)][_0xf91282(0x27e)](_0x88e571,_0x2722f8);if(!_0x5a2236(_0x1bd69e))throw _0x1bd69e[_0xf91282(0x2f3)];const _0x3c6b96=(_0x210f1e=(_0x10953e=(_0x5e4d19=_0x1bd69e[_0xf91282(0x447)][0x0])==null?void 0x0:_0x5e4d19[_0xf91282(0x455)])==null?void 0x0:_0x10953e[_0xf91282(0x28e)])!=null?_0x210f1e:_0x27b77c;Array[_0xf91282(0x3c2)](_0x3c6b96)&&_0x3c6b96[_0xf91282(0x478)]&&this['_injector'][_0xf91282(0x479)](_0x2bd668)[_0xf91282(0x34d)](_0xb83057['id'],{'unitId':_0x398e99,'subUnitId':_0x5802d3,'selections':_0x3c6b96});}};Qe=ir([ht(0x0,_0x573d4d(_0x100ac5)),ht(0x1,_0x35595c),ht(0x2,_0x52e604)],Qe);const it=_0xff730e('univer-pro.collaboration-client.single-active-unit-service');var $s=(_0x27c153=>(_0x27c153[_0x27c153[_0x2908d8(0x1f0)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x27c153[_0x27c153[_0x2908d8(0x292)]=0x1]='OTHER_CLIENTS_EDITING',_0x27c153))($s||{});const os=0x7530,as=_0x2908d8(0x3ea);class rr extends _0x5d8459{constructor(){const _0x41e590=_0x2908d8;super(),l(this,_0x41e590(0x496),_0x34c7a8[_0x41e590(0x242)]()),l(this,_0x41e590(0x453),new Set()),l(this,_0x41e590(0x3c7),new Map()),l(this,_0x41e590(0x400),null),l(this,'_clearOtherTimers',new Map()),l(this,_0x41e590(0x360),new Map()),this[_0x41e590(0x2c3)]();}[_0x2908d8(0x1bf)](){const _0x27773e=_0x2908d8;super[_0x27773e(0x1bf)](),this[_0x27773e(0x371)][_0x27773e(0x212)]((_0x602fb9,_0x571ea7)=>this[_0x27773e(0x174)](_0x571ea7)),this['_heartbeatTimer']&&window[_0x27773e(0x43b)](this[_0x27773e(0x400)]);}[_0x2908d8(0x195)](_0x402e96){return this['_ensureSubject'](_0x402e96)['pipe'](_0xaec0cf());}[_0x2908d8(0x198)](_0x46c527){const _0x24e5f9=_0x2908d8;this[_0x24e5f9(0x453)][_0x24e5f9(0x134)]===0x0&&this[_0x24e5f9(0x155)](),this[_0x24e5f9(0x453)][_0x24e5f9(0x40c)](_0x46c527),this[_0x24e5f9(0x194)]({'type':0x0,'memberID':this[_0x24e5f9(0x496)],'unitIDs':[_0x46c527],'isForwarded':!0x1});}[_0x2908d8(0x230)](_0x5c7ed9){const _0x4a153f=_0x2908d8;this[_0x4a153f(0x453)]['delete'](_0x5c7ed9),this[_0x4a153f(0x453)]['size']===0x0&&this[_0x4a153f(0x400)]&&window[_0x4a153f(0x43b)](this[_0x4a153f(0x400)]);}['_init'](){const _0x3aaaf3=_0x2908d8;this[_0x3aaaf3(0x206)](_0x58e78e(_0x3c1931(window,'storage')[_0x3aaaf3(0x298)](_0x509b04=>{const _0xcf8009=_0x3aaaf3;if(_0x509b04['key']!==as||!_0x509b04['newValue'])return;const _0xda7474=JSON[_0xcf8009(0x15d)](_0x509b04[_0xcf8009(0x3fb)]);this[_0xcf8009(0x224)](_0xda7474);}))),window[_0x3aaaf3(0x1a8)](_0x3aaaf3(0x2a3),()=>this[_0x3aaaf3(0x194)]({'type':0x1,'memberID':this[_0x3aaaf3(0x496)],'unitIDs':Array[_0x3aaaf3(0x2e4)](this[_0x3aaaf3(0x453)])}));}[_0x2908d8(0x224)](_0x522f86){const _0x4f99ae=_0x2908d8;switch(_0x522f86['type']){case 0x0:this[_0x4f99ae(0x163)](_0x522f86);break;case 0x1:this[_0x4f99ae(0x186)](_0x522f86);break;case 0x2:this['_handleHeartbeatEvent'](_0x522f86);break;}}[_0x2908d8(0x163)](_0x4bb231){const _0x559c50=_0x2908d8,{unitIDs:_0x547685,memberID:_0x4fe3a8,isForwarded:_0x49defa}=_0x4bb231;_0x547685['forEach'](_0x50747a=>{const _0x1a1e83=_0x1140;if(!_0x49defa&&this[_0x1a1e83(0x3c7)]['has'](_0x50747a)&&this[_0x1a1e83(0x28d)](_0x50747a)[_0x1a1e83(0x151)](0x1),!this['_unitOnClients'][_0x1a1e83(0x25a)](_0x50747a)||!this[_0x1a1e83(0x3c7)][_0x1a1e83(0x479)](_0x50747a)[_0x1a1e83(0x25a)](_0x4fe3a8)){const _0x473a6e=this[_0x1a1e83(0x3c7)][_0x1a1e83(0x479)](_0x50747a)||new Set();_0x473a6e['add'](_0x4fe3a8),this[_0x1a1e83(0x3c7)][_0x1a1e83(0x255)](_0x50747a,_0x473a6e),this[_0x1a1e83(0x305)](_0x4fe3a8);}}),_0x49defa||this[_0x559c50(0x194)]({'type':0x0,'memberID':this[_0x559c50(0x496)],'unitIDs':[...this[_0x559c50(0x453)]],'isForwarded':!0x0});}[_0x2908d8(0x305)](_0x2f9494){const _0x645c44=_0x2908d8;this[_0x645c44(0x174)](_0x2f9494);const _0x177684=window[_0x645c44(0x49d)](()=>{const _0x1b942b=_0x645c44;this[_0x1b942b(0x3c7)][_0x1b942b(0x212)](_0x1c548d=>{const _0x320fc8=_0x1b942b;_0x1c548d[_0x320fc8(0x34a)](_0x2f9494);});},os*0x2);this[_0x645c44(0x371)][_0x645c44(0x255)](_0x2f9494,_0x177684);}[_0x2908d8(0x174)](_0x1052d8){const _0x1d8f89=_0x2908d8;if(this[_0x1d8f89(0x371)][_0x1d8f89(0x25a)](_0x1052d8)){const _0x33a8b7=this[_0x1d8f89(0x371)][_0x1d8f89(0x479)](_0x1052d8);_0x33a8b7&&window['clearTimeout'](_0x33a8b7),this['_clearOtherTimers'][_0x1d8f89(0x255)](_0x1052d8,null);}}['_handleLeaveEvent'](_0x336f33){const _0xc86fd2=_0x2908d8,{memberID:_0x268d20,unitIDs:_0x4eb127}=_0x336f33;_0x4eb127[_0xc86fd2(0x212)](_0x4b6c64=>{const _0x231ba4=_0xc86fd2;var _0x3757a2;const _0x4a9349=this[_0x231ba4(0x3c7)]['get'](_0x4b6c64);_0x4a9349&&(_0x4a9349['delete'](_0x268d20),(_0x3757a2=this['_ensureSubject'](_0x4b6c64))==null||_0x3757a2[_0x231ba4(0x151)](_0x4a9349[_0x231ba4(0x134)]===0x0?0x0:0x1));}),this[_0xc86fd2(0x174)](_0x268d20);}[_0x2908d8(0x3bb)](_0x33ab4e){const _0x34a18c=_0x2908d8;this['_scheduleClearOtherTimer'](_0x33ab4e[_0x34a18c(0x469)]);}[_0x2908d8(0x194)](_0x4808a5){const _0x293f68=_0x2908d8;localStorage[_0x293f68(0x31e)](as,JSON['stringify'](_0x4808a5));}['_scheduleHeartbeat'](){const _0x318bcf=_0x2908d8;this[_0x318bcf(0x400)]=window[_0x318bcf(0x361)](()=>{const _0x10759f=_0x318bcf;this[_0x10759f(0x194)]({'type':0x2,'memberID':this['_id']});},os);}[_0x2908d8(0x28d)](_0x4d1830){const _0x263cbc=_0x2908d8;return this[_0x263cbc(0x360)][_0x263cbc(0x25a)](_0x4d1830)||this[_0x263cbc(0x360)][_0x263cbc(0x255)](_0x4d1830,new _0x5a6925(0x0)),this['_unitStatus'][_0x263cbc(0x479)](_0x4d1830);}}function js(_0x3841b8){const _0x39ed2c=_0x2908d8;let _0x19fdea='';for(const _0x296e28 of _0x3841b8){const {startOffset:_0x1e63f0,endOffset:_0xb6a0aa,isActive:_0xcd124f}=_0x296e28;_0x19fdea[_0x39ed2c(0x478)]&&(_0x19fdea+=','),_0x19fdea+=_0x1e63f0+':'+_0xb6a0aa+':'+(_0xcd124f?'1':'0');}return _0x19fdea;}function or(_0x31191c){const _0x1609d8=_0x2908d8,_0x373bdd=_0x31191c['split'](','),_0x5a7666=[];for(const _0x4487ff of _0x373bdd){const [_0x310f61,_0x5880ba,_0x3fe1d8]=_0x4487ff[_0x1609d8(0x1de)](':');_0x5a7666['push']({'startOffset':Number(_0x310f61),'endOffset':Number(_0x5880ba),'collapsed':_0x310f61===_0x5880ba,'isActive':_0x3fe1d8==='1'});}return _0x5a7666[_0x1609d8(0x439)](_0x3a656e=>_0x3a656e[_0x1609d8(0x3b5)])||(_0x5a7666[0x0][_0x1609d8(0x3b5)]=!0x0),_0x5a7666;}class kt extends _0x5afe1b{constructor(){const _0x467771=_0x2908d8;super(...arguments),l(this,'_collabCursorState$',new _0x5a6925(null)),l(this,_0x467771(0x473),this[_0x467771(0x309)][_0x467771(0x165)]());}[_0x2908d8(0x370)](_0x3af49a){const _0x26714f=_0x2908d8,{unitID:_0xdc5a38,memberID:_0x26a6b7,textRanges:_0x47e901}=_0x3af49a,_0x15b709=js(_0x47e901),_0x493bd7={'unitID':_0xdc5a38,'memberID':_0x26a6b7,'selection':_0x15b709};this[_0x26714f(0x309)][_0x26714f(0x151)](_0x493bd7);}}var ar=Object[_0x2908d8(0x1f6)],cr=Object[_0x2908d8(0x17b)],hr=(_0xa54dde,_0x5ed7a4,_0xa172ec,_0x4ef77d)=>{const _0x5d9f7f=_0x2908d8;for(var _0x8d348c=_0x4ef77d>0x1?void 0x0:_0x4ef77d?cr(_0x5ed7a4,_0xa172ec):_0x5ed7a4,_0x170b60=_0xa54dde[_0x5d9f7f(0x478)]-0x1,_0x24bc4f;_0x170b60>=0x0;_0x170b60--)(_0x24bc4f=_0xa54dde[_0x170b60])&&(_0x8d348c=(_0x4ef77d?_0x24bc4f(_0x5ed7a4,_0xa172ec,_0x8d348c):_0x24bc4f(_0x8d348c))||_0x8d348c);return _0x4ef77d&&_0x8d348c&&ar(_0x5ed7a4,_0xa172ec,_0x8d348c),_0x8d348c;},cs=(_0x53161e,_0x3f9a95)=>(_0x1e1a21,_0xd7cf92)=>_0x3f9a95(_0x1e1a21,_0xd7cf92,_0x53161e);let et=class{constructor(_0x473d77,_0x1a82fc){const _0x2cb8d4=_0x2908d8;this[_0x2cb8d4(0x333)]=_0x473d77,this[_0x2cb8d4(0x389)]=_0x1a82fc;}[_0x2908d8(0x342)](_0x39fe50){const _0x33af94=_0x2908d8;var _0x152acc;const _0x4c9263=this[_0x33af94(0x333)][_0x33af94(0x479)](_0x459ea4),_0x560e4a=(_0x152acc=_0x4c9263[_0x33af94(0x13b)]())!=null?_0x152acc:[],_0x29c9a1=_0x560e4a==null?void 0x0:_0x560e4a[_0x33af94(0x267)](_0x2100d1);if(_0x29c9a1['length']===0x0)return;const _0x1cc1b5=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x39fe50[_0x33af94(0x1ae)],'actions':null,'textRanges':_0x29c9a1}}],_0x554f91=this[_0x33af94(0x389)][_0x33af94(0x27e)](_0x39fe50,_0x1cc1b5);if(!_0x5a2236(_0x554f91))throw _0x554f91['error'];const _0x594faa=_0x554f91[_0x33af94(0x447)][0x0]['params'][_0x33af94(0x15b)];Array[_0x33af94(0x3c2)](_0x594faa)&&_0x594faa['length']&&_0x4c9263[_0x33af94(0x372)](_0x594faa,!0x1);}};et=hr([cs(0x0,_0x573d4d(_0x100ac5)),cs(0x1,_0x35595c)],et);const lr=new Set([_0x5a7640['id']]);function hs(_0x156bd9,_0x3822c8,_0x41f5d8,_0x5bf76b,_0x138c3a){const _0x4a8127=_0x2908d8;var _0x4e12f4,_0x5c004d,_0x158c0a,_0x5b7890;const _0x22c5b1=[];for(const _0x29fee3 of _0x156bd9)if(lr[_0x4a8127(0x25a)](_0x29fee3['id'])){if(_0x22c5b1[_0x4a8127(0x478)]>0x0)break;_0x22c5b1[_0x4a8127(0x349)](_0x29fee3);break;}else _0x22c5b1['push'](_0x29fee3);const _0xefe5b4=(_0x5c004d=(_0x4e12f4=_0x138c3a['getCurrentUser']())==null?void 0x0:_0x4e12f4[_0x4a8127(0x471)])!=null?_0x5c004d:_0x4a8127(0x16f),_0x361afc=(_0x5b7890=(_0x158c0a=_0x138c3a['getCurrentUser']())==null?void 0x0:_0x158c0a['memberID'])!=null?_0x5b7890:_0x4a8127(0x16f);return{'changeset':{'unitID':_0x3822c8,'type':_0x489540(_0x41f5d8[_0x4a8127(0x265)](_0x3822c8)),'baseRev':_0x5bf76b['getCurrentRevForDocument'](_0x3822c8),'revision':0x0,'userID':_0xefe5b4,'memberID':_0x361afc,'mutations':_0x22c5b1},'pendingMutations':_0x156bd9[_0x4a8127(0x3e8)](_0x22c5b1[_0x4a8127(0x478)])};}function _r(_0x118da2,_0x2cd6ef,_0x2453db,_0x197238,_0x3af75f){const _0x58788e=_0x2908d8;var _0x4cbc99,_0x4bfcd7,_0x451574,_0x42429d;const _0x26ce45=[_0x118da2['reduce']((_0x32f0e7,_0x2bf7a2)=>{const _0x56d3e1=_0x1140;var _0x2e2cf7;const {id:_0x1f1403}=_0x32f0e7,{id:_0x4cd740,type:_0x1b7f92}=_0x2bf7a2,_0x4c046a=(_0x2e2cf7=_0x32f0e7['params'])!=null?_0x2e2cf7:{'actions':null},_0x191bde=_0x2bf7a2[_0x56d3e1(0x455)];if(_0x1f1403&&_0x1f1403!==_0x4cd740)throw new Error(_0x56d3e1(0x36e)+_0x1f1403+'\x20-\x20'+_0x4cd740+'.');return{..._0x32f0e7,'id':_0x4cd740,'type':_0x1b7f92,'params':{'unitId':_0x191bde[_0x56d3e1(0x498)],'textRanges':_0x191bde[_0x56d3e1(0x15b)],'actions':_0x231ca6[_0x56d3e1(0x3d5)](_0x4c046a[_0x56d3e1(0x3ff)],_0x191bde[_0x56d3e1(0x3ff)])}};},{})],_0x29a2b5=(_0x4bfcd7=(_0x4cbc99=_0x3af75f[_0x58788e(0x32f)]())==null?void 0x0:_0x4cbc99['userID'])!=null?_0x4bfcd7:_0x58788e(0x16f),_0x5ecc69=(_0x42429d=(_0x451574=_0x3af75f[_0x58788e(0x32f)]())==null?void 0x0:_0x451574[_0x58788e(0x469)])!=null?_0x42429d:_0x58788e(0x16f);return{'changeset':{'unitID':_0x2cd6ef,'type':_0x489540(_0x2453db[_0x58788e(0x265)](_0x2cd6ef)),'baseRev':_0x197238[_0x58788e(0x25b)](_0x2cd6ef),'revision':0x0,'userID':_0x29a2b5,'memberID':_0x5ecc69,'mutations':_0x26ce45},'pendingMutations':[]};}const ur={'id':_0x474203['id'],'type':_0x49ed46[_0x2908d8(0x2d1)],'params':{}};var dr=Object[_0x2908d8(0x1f6)],mr=Object[_0x2908d8(0x17b)],he=(_0x320d9b,_0x35d628,_0x409278,_0x1f71ef)=>{for(var _0x516c5d=_0x1f71ef>0x1?void 0x0:_0x1f71ef?mr(_0x35d628,_0x409278):_0x35d628,_0x379ef6=_0x320d9b['length']-0x1,_0x3149c1;_0x379ef6>=0x0;_0x379ef6--)(_0x3149c1=_0x320d9b[_0x379ef6])&&(_0x516c5d=(_0x1f71ef?_0x3149c1(_0x35d628,_0x409278,_0x516c5d):_0x3149c1(_0x516c5d))||_0x516c5d);return _0x1f71ef&&_0x516c5d&&dr(_0x35d628,_0x409278,_0x516c5d),_0x516c5d;},f=(_0x5698ca,_0x31b6e2)=>(_0x7556c9,_0x3ec623)=>_0x31b6e2(_0x7556c9,_0x3ec623,_0x5698ca),w=(_0x576ec0=>(_0x576ec0[_0x2908d8(0x1a9)]='not_collab',_0x576ec0['SYNCED']=_0x2908d8(0x2cd),_0x576ec0[_0x2908d8(0x167)]=_0x2908d8(0x493),_0x576ec0[_0x2908d8(0x1ca)]=_0x2908d8(0x2e9),_0x576ec0['AWAITING_WITH_PENDING']='awaiting_with_pending',_0x576ec0['FETCH_MISS']='fetch_missing',_0x576ec0[_0x2908d8(0x14f)]=_0x2908d8(0x132),_0x576ec0[_0x2908d8(0x288)]=_0x2908d8(0x44a),_0x576ec0))(w||{});class le{constructor(_0x4b6421,_0xc304a5,_0x403b12,_0x5d901b,_0x18f8da,_0xf5abc0,_0xfd712c,_0x147774,_0x2539f9){const _0x57c9a3=_0x2908d8;l(this,_0x57c9a3(0x232),null),l(this,_0x57c9a3(0x2eb),[]),(this[_0x57c9a3(0x1ae)]=_0x4b6421,this[_0x57c9a3(0x161)]=_0xc304a5,this[_0x57c9a3(0x1a6)]=_0x18f8da,this[_0x57c9a3(0x3fd)]=_0xf5abc0,this[_0x57c9a3(0x1eb)]=_0xfd712c,this['_revisionService']=_0x147774,this[_0x57c9a3(0x2fc)]=_0x2539f9,this[_0x57c9a3(0x232)]=_0x403b12,this['_pendingMutations']=_0x5d901b);}[_0x2908d8(0x144)](_0x1e3819){const _0x147117=_0x2908d8,_0xe83b95=this[_0x147117(0x3fe)][_0x147117(0x25b)](this[_0x147117(0x1ae)]);return _0x1e3819[_0x147117(0x425)]>_0xe83b95+0x1?(this[_0x147117(0x1a6)][_0x147117(0x429)]({'from':_0xe83b95,'to':_0x1e3819['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x5798ba){const _0x1ad628=_0x2908d8;this[_0x1ad628(0x1eb)][_0x1ad628(0x393)](this[_0x1ad628(0x1ae)],_0x5798ba);}[_0x2908d8(0x2ab)](_0x223f7e){const _0x1baf01=_0x2908d8;var _0x5094cd,_0x110f59;(_0x110f59=(_0x5094cd=this[_0x1baf01(0x1a6)])[_0x1baf01(0x1e4)])==null||_0x110f59[_0x1baf01(0x189)](_0x5094cd,_0x223f7e);}['_transformIMECache'](_0x1fca37){const _0xc8f371=_0x2908d8;var _0x45d590,_0x71ad95;return(_0x71ad95=(_0x45d590=this[_0xc8f371(0x1a6)])[_0xc8f371(0x245)])==null?void 0x0:_0x71ad95[_0xc8f371(0x189)](_0x45d590,_0x1fca37);}[_0x2908d8(0x3ac)](_0x5edf2c){const _0x1d19b8=_0x2908d8;var _0x15df76,_0x12b0d9,_0x139514;return(_0x139514=(_0x12b0d9=(_0x15df76=this['_handler'])[_0x1d19b8(0x243)])==null?void 0x0:_0x12b0d9[_0x1d19b8(0x189)](_0x15df76,_0x5edf2c))!=null?_0x139514:_0x5edf2c;}[_0x2908d8(0x2bc)](_0x9ce649){const _0x243c91=_0x2908d8;var _0x4eb0a6,_0x2421c8;if(this[_0x243c91(0x161)]===x['UNIVER_DOC']){const {unitID:_0x1db0f1,mutations:_0x1c9180,memberID:_0x31bfda}=_0x9ce649,_0x2437b7=_0x1c9180[0x0][_0x243c91(0x455)]['textRanges'];Array[_0x243c91(0x3c2)](_0x2437b7)&&_0x2437b7[_0x243c91(0x478)]>0x0&&((_0x2421c8=(_0x4eb0a6=this['_handler'])[_0x243c91(0x215)])==null||_0x2421c8['call'](_0x4eb0a6,{'unitID':_0x1db0f1,'memberID':_0x31bfda,'textRanges':_0x2437b7}));}}[_0x2908d8(0x3ab)](){const _0x3a2f22=_0x2908d8;this[_0x3a2f22(0x2fc)][_0x3a2f22(0x401)](this[_0x3a2f22(0x1ae)],this[_0x3a2f22(0x161)],this[_0x3a2f22(0x232)],this['_pendingMutations']);}[_0x2908d8(0x1a0)](){const _0x554365=_0x2908d8;return this[_0x554365(0x3fe)][_0x554365(0x25b)](this['unitID']);}['_incrementRevisionNumber'](){const _0x2cbb34=_0x2908d8;this[_0x2cbb34(0x3fe)][_0x2cbb34(0x26c)](this[_0x2cbb34(0x1ae)]);}['_executeRemoteChangeset'](_0x2b9d0e){const _0x3f2622=_0x2908d8;var _0x928fa8;const _0x1ef652=this[_0x3f2622(0x3ac)](_0x2b9d0e),_0x3bc2be=_0x45fa8f(_0x1ef652[_0x3f2622(0x467)],this[_0x3f2622(0x3fd)],{'fromCollab':!0x0});if(!_0x3bc2be[_0x3f2622(0x38c)])throw _0x3bc2be['error']instanceof Error?_0x3bc2be[_0x3f2622(0x2f3)]:new Error((_0x928fa8=_0x3bc2be[_0x3f2622(0x2f3)])!=null?_0x928fa8:_0x3f2622(0x387));this[_0x3f2622(0x35d)](_0x1ef652),this[_0x3f2622(0x1d1)](_0x2b9d0e),this[_0x3f2622(0x2ab)](_0x1ef652),this[_0x3f2622(0x2bc)](_0x1ef652),this['_incrementRevisionNumber']();}}let Se=class extends le{constructor(_0x1cb565,_0x46c3a4,_0x1917c3,_0xa20b35,_0x4fbe6e,_0xd73f8f,_0x49c556,_0x2d2c7a,_0x43d4c2,_0x1ac704){const _0x32ce5c=_0x2908d8;super(_0x1cb565,_0x46c3a4,null,[],_0x1917c3,_0x2d2c7a,_0x49c556,_0xa20b35,_0x4fbe6e),l(this,'status',_0x32ce5c(0x2cd)),(this[_0x32ce5c(0x333)]=_0xd73f8f,this[_0x32ce5c(0x49c)]=_0x43d4c2,this[_0x32ce5c(0x389)]=_0x1ac704);}['appendMutation'](_0x1fcac7){const _0x43b77f=_0x2908d8,_0x35a02f=this[_0x43b77f(0x333)]['createInstance'](G,this['unitID'],this[_0x43b77f(0x161)],[_0x1fcac7],this[_0x43b77f(0x1a6)]);return _0x35a02f[_0x43b77f(0x25c)](),_0x35a02f['_updateLocalCache'](),_0x35a02f;}['onRemoteChangeset'](_0x9fbc63){const _0x4a0d1f=_0x2908d8;if(this['_checkMissing'](_0x9fbc63))return this[_0x4a0d1f(0x333)]['createInstance'](H,this['unitID'],this[_0x4a0d1f(0x161)],null,[],null,[_0x9fbc63],this[_0x4a0d1f(0x1a6)]);try{const _0x509d63=this['_transformService']['transformMutationsWithChangeset'](_0x9fbc63,[ur]);if(_0x5a2236(_0x509d63)){const {c1Prime:_0x18b69e}=_0x509d63;return this[_0x4a0d1f(0x175)](_0x18b69e),this;}throw _0x509d63['error'];}catch(_0x561e3c){return this[_0x4a0d1f(0x49c)][_0x4a0d1f(0x2f3)](_0x561e3c),this[_0x4a0d1f(0x15c)](!0x1);}}[_0x2908d8(0x15c)](_0x494d0a){const _0x59050e=_0x2908d8;return this['_injector'][_0x59050e(0x386)](Q,this['unitID'],this['type'],null,[],this[_0x59050e(0x1a6)],_0x494d0a);}[_0x2908d8(0x41a)](){const _0x1d38d0=_0x2908d8;throw new Error(_0x1d38d0(0x3eb));}[_0x2908d8(0x2f8)](){const _0x31c2ff=_0x2908d8;throw new Error(_0x31c2ff(0x23e));}[_0x2908d8(0x1c9)](){const _0x5a064f=_0x2908d8;return this[_0x5a064f(0x333)][_0x5a064f(0x386)](ee,this['unitID'],this[_0x5a064f(0x161)],null,[],this['_handler']);}[_0x2908d8(0x3d1)](){return this;}['resend'](){const _0x8c18=_0x2908d8;throw new Error(_0x8c18(0x1ce));}[_0x2908d8(0x145)](){const _0x40cdd0=_0x2908d8,_0x463e48=this['_revisionService'][_0x40cdd0(0x25b)](this['unitID']);return this[_0x40cdd0(0x1a6)][_0x40cdd0(0x429)]({'from':_0x463e48,'to':0x0}),this[_0x40cdd0(0x333)]['createInstance'](H,this[_0x40cdd0(0x1ae)],this[_0x40cdd0(0x161)],null,[],null,[],this[_0x40cdd0(0x1a6)]);}};Se=he([f(0x3,_0x573d4d(_0xa35cc)),f(0x4,_0x573d4d(D)),f(0x5,_0x573d4d(_0x100ac5)),f(0x6,_0x3ed2c5),f(0x7,_0x2bd668),f(0x8,_0x38155a),f(0x9,_0x35595c)],Se);let G=class extends le{constructor(_0x1555fa,_0x266f5d,_0xf72361,_0xcddbef,_0x450702,_0x1e405d,_0x14fb6e,_0x497105,_0x51cb6e,_0x168294,_0x173b22,_0x59d0e4,_0x50b9dc,_0x5cd23a){const _0x115d6c=_0x2908d8;super(_0x1555fa,_0x266f5d,null,_0xf72361,_0xcddbef,_0x168294,_0x5cd23a,_0x1e405d,_0x14fb6e),l(this,_0x115d6c(0x32b),_0x115d6c(0x493)),l(this,_0x115d6c(0x154),null),l(this,_0x115d6c(0x209),null),(this[_0x115d6c(0x333)]=_0x450702,this['_memberService']=_0x497105,this['_logService']=_0x51cb6e,this[_0x115d6c(0x168)]=_0x173b22,this[_0x115d6c(0x389)]=_0x59d0e4,this[_0x115d6c(0x2c2)]=_0x50b9dc);}[_0x2908d8(0x416)](_0xf2841){const _0x4a8d24=_0x2908d8;return this['_pendingMutations'][_0x4a8d24(0x349)](_0xf2841),this[_0x4a8d24(0x3ab)](),this;}[_0x2908d8(0x47f)](_0x3aca11){const _0x5ad270=_0x2908d8;if(this[_0x5ad270(0x144)](_0x3aca11))return this['_clearScheduledTask'](),this[_0x5ad270(0x333)][_0x5ad270(0x386)](H,this[_0x5ad270(0x1ae)],this[_0x5ad270(0x161)],null,this[_0x5ad270(0x2eb)],null,[_0x3aca11],this[_0x5ad270(0x1a6)]);try{const _0x9a0b1e=this[_0x5ad270(0x389)]['transformMutationsWithChangeset'](_0x3aca11,this['_pendingMutations']);if(_0x5a2236(_0x9a0b1e)){const {c1Prime:_0xa78c8a,m2Prime:_0x803c08}=_0x9a0b1e;this['_executeRemoteChangeset'](_0xa78c8a);const _0x19f0cd=this[_0x5ad270(0x333)]['createInstance'](G,this['unitID'],this[_0x5ad270(0x161)],_0x803c08,this[_0x5ad270(0x1a6)]);return this[_0x5ad270(0x47a)](),_0x19f0cd[_0x5ad270(0x25c)](this[_0x5ad270(0x154)]?Math['max'](0x0,new Date()[_0x5ad270(0x3d3)]()-this[_0x5ad270(0x154)]):this[_0x5ad270(0x1e9)]()),_0x19f0cd;}throw _0x9a0b1e['error'];}catch(_0x42dd0e){return this[_0x5ad270(0x49c)]['error'](_0x42dd0e),this[_0x5ad270(0x15c)](!0x1);}}[_0x2908d8(0x41a)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x2908d8(0x2f8)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x2908d8(0x1c9)](){const _0x1878d5=_0x2908d8;return this[_0x1878d5(0x47a)](),this[_0x1878d5(0x333)]['createInstance'](ee,this[_0x1878d5(0x1ae)],this['type'],null,this[_0x1878d5(0x2eb)],this[_0x1878d5(0x1a6)]);}['toggleOnline'](){return this;}[_0x2908d8(0x25c)](_0x377fa6){const _0x2ca9cb=_0x2908d8,_0x28fc6d=_0x377fa6!=null?_0x377fa6:this[_0x2ca9cb(0x1e9)]();this[_0x2ca9cb(0x154)]=new Date()[_0x2ca9cb(0x3d3)](),this[_0x2ca9cb(0x209)]=window['setTimeout'](()=>{const _0x259aa0=_0x2ca9cb;this[_0x259aa0(0x47a)]();let _0x15d00e=null;switch(this[_0x259aa0(0x161)]){case x[_0x259aa0(0x37d)]:{_0x15d00e=hs(this[_0x259aa0(0x2eb)],this[_0x259aa0(0x1ae)],this['_univerInstanceService'],this['_revisionService'],this[_0x259aa0(0x13f)]);break;}case x[_0x259aa0(0x461)]:{this[_0x259aa0(0x2eb)][_0x259aa0(0x22c)](_0x2cde0d=>_0x2cde0d['id']===_0x13ef0c['id'])?_0x15d00e=_r(this['_pendingMutations'],this[_0x259aa0(0x1ae)],this[_0x259aa0(0x2c2)],this[_0x259aa0(0x3fe)],this[_0x259aa0(0x13f)]):_0x15d00e=hs(this['_pendingMutations'],this['unitID'],this[_0x259aa0(0x2c2)],this['_revisionService'],this[_0x259aa0(0x13f)]);break;}default:throw new Error(_0x259aa0(0x20c)+this[_0x259aa0(0x161)]+_0x259aa0(0x3a3));}const {changeset:_0x46b0f4,pendingMutations:_0x109710}=_0x15d00e;this[_0x259aa0(0x1a6)][_0x259aa0(0x338)](_0x46b0f4);const _0x5a9af4=_0x109710[_0x259aa0(0x478)]?this[_0x259aa0(0x333)][_0x259aa0(0x386)](Y,this[_0x259aa0(0x1ae)],this[_0x259aa0(0x161)],_0x46b0f4,_0x109710,this[_0x259aa0(0x1a6)]):this[_0x259aa0(0x333)][_0x259aa0(0x386)](Z,this[_0x259aa0(0x1ae)],this[_0x259aa0(0x161)],_0x46b0f4,this['_handler']);_0x5a9af4[_0x259aa0(0x3ab)](),this[_0x259aa0(0x1a6)][_0x259aa0(0x227)](this,_0x5a9af4);},_0x28fc6d);}[_0x2908d8(0x1e9)](){var _0xefcde4;return(_0xefcde4=this['_configService']['getConfig'](fn))!=null?_0xefcde4:gn;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2908d8(0x47a)](){const _0x5cd1d8=_0x2908d8;this[_0x5cd1d8(0x209)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x5cd1d8(0x209)]=null);}[_0x2908d8(0x15c)](_0x17effd){const _0x2b720a=_0x2908d8;return this[_0x2b720a(0x47a)](),this['_injector'][_0x2b720a(0x386)](Q,this[_0x2b720a(0x1ae)],this[_0x2b720a(0x161)],null,this[_0x2b720a(0x2eb)],this[_0x2b720a(0x1a6)],_0x17effd);}};G=he([f(0x4,_0x573d4d(_0x100ac5)),f(0x5,_0x573d4d(_0xa35cc)),f(0x6,_0x573d4d(D)),f(0x7,_0x573d4d(oe)),f(0x8,_0x38155a),f(0x9,_0x2bd668),f(0xa,_0x3abdb4),f(0xb,_0x35595c),f(0xc,_0x52e604),f(0xd,_0x3ed2c5)],G);let Z=class extends le{constructor(_0x3be5cb,_0x31ea84,_0x5c714e,_0x378d9e,_0x402a8a,_0x3c36c7,_0x5c87be,_0x529a81,_0x28ef6b,_0x5a037b,_0x530792){const _0x4fed66=_0x2908d8;super(_0x3be5cb,_0x31ea84,_0x5c714e,[],_0x378d9e,_0x529a81,_0x530792,_0x3c36c7,_0x5c87be),l(this,_0x4fed66(0x32b),_0x4fed66(0x2e9)),(this[_0x4fed66(0x333)]=_0x402a8a,this['_logService']=_0x28ef6b,this[_0x4fed66(0x389)]=_0x5a037b);}[_0x2908d8(0x416)](_0x291956){const _0x5b38eb=_0x2908d8,_0x34837=this['_injector'][_0x5b38eb(0x386)](Y,this['unitID'],this[_0x5b38eb(0x161)],this['_awaitingChangeset'],[_0x291956],this[_0x5b38eb(0x1a6)]);return _0x34837[_0x5b38eb(0x3ab)](),_0x34837;}['onRemoteChangeset'](_0x3bb78c){const _0x182ede=_0x2908d8;if(this['_checkMissing'](_0x3bb78c))return this[_0x182ede(0x333)][_0x182ede(0x386)](H,this[_0x182ede(0x1ae)],this['type'],this[_0x182ede(0x232)],[],null,[_0x3bb78c],this[_0x182ede(0x1a6)]);try{const _0x7ab2a4=this[_0x182ede(0x389)][_0x182ede(0x415)]([_0x3bb78c],[this[_0x182ede(0x232)]],!0x1);if(_0x3fdc14(_0x7ab2a4)){const {c1Prime:_0x28471c,c2Prime:_0x7f379}=_0x7ab2a4;this[_0x182ede(0x175)](_0x28471c[0x0]),_0x7f379[0x0][_0x182ede(0x3b7)]=this[_0x182ede(0x1a0)]();const _0x1b3dc3=this[_0x182ede(0x333)][_0x182ede(0x386)](Z,this['unitID'],this['type'],_0x7f379[0x0],this[_0x182ede(0x1a6)]);return _0x1b3dc3[_0x182ede(0x3ab)](),_0x1b3dc3;}return this['_onConflict'](!0x1);}catch(_0x3d1d8f){return this[_0x182ede(0x49c)][_0x182ede(0x2f3)](_0x3d1d8f),this[_0x182ede(0x15c)](!0x1);}}[_0x2908d8(0x41a)](_0x1f2231){const _0x2b7998=_0x2908d8,_0x1deb12=this[_0x2b7998(0x3fe)][_0x2b7998(0x25b)](this[_0x2b7998(0x1ae)]);if(_0x1f2231[_0x2b7998(0x425)]<_0x1deb12-0x1)return this;if(this[_0x2b7998(0x144)](_0x1f2231))return this[_0x2b7998(0x333)][_0x2b7998(0x386)](H,this[_0x2b7998(0x1ae)],this[_0x2b7998(0x161)],null,[],this[_0x2b7998(0x232)],[],this[_0x2b7998(0x1a6)]);this[_0x2b7998(0x275)]();const _0x597ce9=this['_injector'][_0x2b7998(0x386)](Se,this[_0x2b7998(0x1ae)],this['type'],this['_handler']);return _0x597ce9[_0x2b7998(0x3ab)](),_0x597ce9;}[_0x2908d8(0x2f8)](_0x27df5a){const _0x514072=_0x2908d8;return this['_onConflict'](!!(_0x27df5a!=null&&_0x27df5a[_0x514072(0x2c1)]));}[_0x2908d8(0x1c9)](){const _0x45a30f=_0x2908d8;return this[_0x45a30f(0x333)][_0x45a30f(0x386)](ee,this['unitID'],this[_0x45a30f(0x161)],this[_0x45a30f(0x232)],[],this['_handler']);}[_0x2908d8(0x3d1)](){return this;}[_0x2908d8(0x26e)](){const _0x26cc3a=_0x2908d8;this[_0x26cc3a(0x1a6)][_0x26cc3a(0x338)](this[_0x26cc3a(0x232)]);}[_0x2908d8(0x15c)](_0x589dd7){const _0x2dd0f5=_0x2908d8;return this[_0x2dd0f5(0x333)][_0x2dd0f5(0x386)](Q,this[_0x2dd0f5(0x1ae)],this['type'],this['_awaitingChangeset'],[],this['_handler'],_0x589dd7);}};Z=he([f(0x4,_0x573d4d(_0x100ac5)),f(0x5,_0x573d4d(_0xa35cc)),f(0x6,_0x573d4d(D)),f(0x7,_0x2bd668),f(0x8,_0x38155a),f(0x9,_0x35595c),f(0xa,_0x3ed2c5)],Z);let Y=class extends le{constructor(_0x1ba616,_0x433350,_0x5747cb,_0x13d735,_0x43e223,_0x525df8,_0x4f3efc,_0x5c4132,_0x3246d0,_0x586ecd,_0x37bf94,_0x3486b3){const _0xb243db=_0x2908d8;super(_0x1ba616,_0x433350,_0x5747cb,_0x13d735,_0x43e223,_0x3246d0,_0x3486b3,_0x4f3efc,_0x5c4132),l(this,'status',_0xb243db(0x440)),(this[_0xb243db(0x333)]=_0x525df8,this[_0xb243db(0x49c)]=_0x586ecd,this[_0xb243db(0x389)]=_0x37bf94);}[_0x2908d8(0x416)](_0x2ad0ac){const _0x4f4557=_0x2908d8;return this[_0x4f4557(0x2eb)]['push'](_0x2ad0ac),this;}[_0x2908d8(0x47f)](_0x47c7f8){const _0x1061ca=_0x2908d8;if(this[_0x1061ca(0x144)](_0x47c7f8))return this[_0x1061ca(0x333)][_0x1061ca(0x386)](H,this['unitID'],this[_0x1061ca(0x161)],this[_0x1061ca(0x232)],this[_0x1061ca(0x2eb)],null,[_0x47c7f8],this['_handler']);try{const _0x514f75=this[_0x1061ca(0x389)][_0x1061ca(0x415)]([_0x47c7f8],[this['_awaitingChangeset']],!0x1);if(_0x3fdc14(_0x514f75)){const {c1Prime:_0x427df5,c2Prime:_0x1b744e}=_0x514f75,_0x543b35=this['_transformService'][_0x1061ca(0x27e)](_0x427df5[0x0],this[_0x1061ca(0x2eb)]);if(_0x5a2236(_0x543b35)){const {c1Prime:_0x1037ea,m2Prime:_0x248fe1}=_0x543b35;return this[_0x1061ca(0x175)](_0x1037ea),_0x1b744e[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x1061ca(0x333)][_0x1061ca(0x386)](Y,this[_0x1061ca(0x1ae)],this['type'],_0x1b744e[0x0],_0x248fe1,this[_0x1061ca(0x1a6)]);}throw _0x543b35[_0x1061ca(0x2f3)];}throw _0x514f75['error'];}catch(_0x144590){return this[_0x1061ca(0x49c)][_0x1061ca(0x2f3)](_0x144590),this[_0x1061ca(0x15c)](!0x1);}}[_0x2908d8(0x41a)](_0x2dd9a5){const _0x5da5dd=_0x2908d8;if(this[_0x5da5dd(0x144)](_0x2dd9a5))return this['_injector']['createInstance'](H,this[_0x5da5dd(0x1ae)],this[_0x5da5dd(0x161)],null,this[_0x5da5dd(0x2eb)],this['_awaitingChangeset'],[],this[_0x5da5dd(0x1a6)]);this[_0x5da5dd(0x275)]();const _0x48b3d6=this['_injector'][_0x5da5dd(0x386)](G,this[_0x5da5dd(0x1ae)],this[_0x5da5dd(0x161)],this['_pendingMutations'],this[_0x5da5dd(0x1a6)]);return _0x48b3d6[_0x5da5dd(0x25c)](),_0x48b3d6['_updateLocalCache'](),_0x48b3d6;}[_0x2908d8(0x2f8)](_0x49ddf5){const _0x57b096=_0x2908d8;return this[_0x57b096(0x15c)](!!(_0x49ddf5!=null&&_0x49ddf5[_0x57b096(0x2c1)]));}['toggleOffline'](){const _0xa58869=_0x2908d8;return this[_0xa58869(0x333)]['createInstance'](ee,this[_0xa58869(0x1ae)],this['type'],this[_0xa58869(0x232)],this[_0xa58869(0x2eb)],this['_handler']);}[_0x2908d8(0x3d1)](){return this;}[_0x2908d8(0x26e)](){const _0x54a9ce=_0x2908d8;this['_handler']['onSendChangeset'](this[_0x54a9ce(0x232)]);}[_0x2908d8(0x15c)](_0x1f7652){const _0x1b3315=_0x2908d8;return this[_0x1b3315(0x333)][_0x1b3315(0x386)](Q,this[_0x1b3315(0x1ae)],this['type'],null,this[_0x1b3315(0x2eb)],this[_0x1b3315(0x1a6)],_0x1f7652);}};Y=he([f(0x5,_0x573d4d(_0x100ac5)),f(0x6,_0x573d4d(_0xa35cc)),f(0x7,_0x573d4d(D)),f(0x8,_0x2bd668),f(0x9,_0x38155a),f(0xa,_0x35595c),f(0xb,_0x3ed2c5)],Y);let Q=class extends le{constructor(_0x2bc6fb,_0x53c2ce,_0x133d82,_0x120b71,_0x39f4e7,_0x47f889=!0x1,_0x249911,_0x30cab2,_0x4e5095,_0x44b138,_0x447645,_0x8520e0,_0x12254e){const _0x4c9755=_0x2908d8;super(_0x2bc6fb,_0x53c2ce,_0x133d82,_0x120b71,_0x39f4e7,_0x30cab2,_0x4e5095,_0x447645,_0x44b138),l(this,'status',_0x4c9755(0x132)),(this[_0x4c9755(0x177)]=_0x47f889,this[_0x4c9755(0x462)]=_0x249911,this[_0x4c9755(0x140)]=_0x8520e0,this['_notificationService']=_0x12254e,this[_0x4c9755(0x427)](),this['_clearLocalCache'](),this[_0x4c9755(0x37b)]());}[_0x2908d8(0x416)](){return this;}[_0x2908d8(0x47f)](){return this;}['onRemoteAck'](){return this;}[_0x2908d8(0x2f8)](){return this;}['toggleOffline'](){return this;}[_0x2908d8(0x3d1)](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2908d8(0x19a)](){const _0x220ad0=_0x2908d8;this[_0x220ad0(0x2fc)][_0x220ad0(0x401)](this[_0x220ad0(0x1ae)],this['type'],null,[]);}['_showConflictNotification'](){const _0x1ce67b=_0x2908d8;this[_0x1ce67b(0x177)]?this[_0x1ce67b(0x1c6)]['show']({'title':this[_0x1ce67b(0x140)]['t'](_0x1ce67b(0x169)),'content':this[_0x1ce67b(0x140)]['t'](_0x1ce67b(0x1e3)),'type':_0x1ce67b(0x2f3),'duration':0x0}):this['_notificationService'][_0x1ce67b(0x24e)]({'title':this['_localeService']['t']('conflict.title'),'content':this[_0x1ce67b(0x140)]['t'](_0x1ce67b(0x1af)),'type':'error','duration':0x0});}[_0x2908d8(0x37b)](){const _0x5b414c=_0x2908d8;this[_0x5b414c(0x462)][_0x5b414c(0x20a)](new _0x4eedfe(this[_0x5b414c(0x1ae)])['id'],!0x1);}};Q=he([f(0x6,_0x573d4d(_0x1984e0)),f(0x7,_0x2bd668),f(0x8,_0x3ed2c5),f(0x9,_0x573d4d(D)),f(0xa,_0x573d4d(_0xa35cc)),f(0xb,_0x573d4d(_0x5071b4)),f(0xc,_0x3bf708)],Q);let ee=class extends le{constructor(_0x343503,_0x52783d,_0x25df14,_0x1360a7,_0x60327c,_0x5ea824,_0x595b90,_0x52a0ef,_0x57be80,_0x439597){const _0x36f929=_0x2908d8;super(_0x343503,_0x52783d,_0x25df14,_0x1360a7,_0x60327c,_0x57be80,_0x439597,_0x595b90,_0x52a0ef),l(this,_0x36f929(0x32b),'offline'),this[_0x36f929(0x333)]=_0x5ea824;}[_0x2908d8(0x416)](_0x4324bc){const _0x28e78b=_0x2908d8;return this[_0x28e78b(0x2eb)]['push'](_0x4324bc),this['_updateLocalCache'](),this;}[_0x2908d8(0x47f)](_0x2535be){const _0x20c156=_0x2908d8;throw new Error(_0x20c156(0x1c2));}[_0x2908d8(0x41a)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x43bad8=_0x2908d8;throw new Error(_0x43bad8(0x3ae));}[_0x2908d8(0x1c9)](){return this;}['toggleOnline'](){const _0xbb6ffc=_0x2908d8,{_injector:_0x681b8e,_pendingMutations:_0x36f902,_awaitingChangeset:_0x628caa,unitID:_0xd3ac76,_handler:_0x532a10,type:_0x2c29c0}=this,_0x2ea16a=xs(_0x681b8e,_0xd3ac76,_0x2c29c0,_0x628caa,_0x36f902,_0x532a10);return _0x2ea16a instanceof G?_0x2ea16a[_0xbb6ffc(0x25c)]():(_0x2ea16a instanceof Y||_0x2ea16a instanceof Z)&&_0x2ea16a[_0xbb6ffc(0x26e)](),_0x2ea16a;}['resend'](){const _0x41eb39=_0x2908d8;throw new Error(_0x41eb39(0x1dd));}};ee=he([f(0x5,_0x573d4d(_0x100ac5)),f(0x6,_0x573d4d(_0xa35cc)),f(0x7,_0x573d4d(D)),f(0x8,_0x2bd668),f(0x9,_0x3ed2c5)],ee);let H=class extends le{constructor(_0x2cd7c5,_0x2bfe77,_0xeb29a4,_0x5ef479,_0xbadba,_0x3449c4,_0xa1509d,_0x33f82a,_0x123571,_0x13b2ff,_0x2a6577,_0xb950b4,_0xd82001,_0x30698e){const _0x12cfad=_0x2908d8;super(_0x2cd7c5,_0x2bfe77,_0xeb29a4,_0x5ef479,_0xa1509d,_0xb950b4,_0xd82001,_0x123571,_0x13b2ff),l(this,_0x12cfad(0x32b),_0x12cfad(0x486)),(this[_0x12cfad(0x1ba)]=_0xbadba,this[_0x12cfad(0x355)]=_0x3449c4,this[_0x12cfad(0x333)]=_0x33f82a,this[_0x12cfad(0x49c)]=_0x2a6577,this['_transformService']=_0x30698e);}['onMissedChangesetFetched'](_0x3e3bde){const _0x5a4182=_0x2908d8;try{const _0x22f681=[..._0x3e3bde,...this['_queuedRemoteChangesets']],_0x2def7e=[this['_awaitingChangeset']||this[_0x5a4182(0x1ba)]]['filter'](_0x2b6d8c=>!!_0x2b6d8c);let _0x29bdff,_0x308028;if(_0x2def7e['length']){const _0x5bdadd=this[_0x5a4182(0x389)][_0x5a4182(0x415)](_0x22f681,_0x2def7e,!0x1);if(!_0x3fdc14(_0x5bdadd))throw _0x5bdadd['error'];_0x29bdff=_0x5bdadd[_0x5a4182(0x483)],_0x308028=_0x5bdadd[_0x5a4182(0x240)];}else _0x29bdff=_0x22f681,_0x308028=[];let _0x2be097=this[_0x5a4182(0x2eb)];_0x29bdff[_0x5a4182(0x212)](_0x40749f=>{const _0x15529e=_0x5a4182;let _0x1c8b20;if(_0x2be097['length']){const _0x34f471=this[_0x15529e(0x389)][_0x15529e(0x27e)](_0x40749f,_0x2be097);if(!_0x5a2236(_0x34f471))throw _0x34f471[_0x15529e(0x2f3)];_0x1c8b20=_0x34f471[_0x15529e(0x483)],_0x2be097=_0x34f471['m2Prime'];}else _0x1c8b20=_0x40749f;this[_0x15529e(0x175)](_0x1c8b20);}),this[_0x5a4182(0x1ba)]&&this[_0x5a4182(0x275)](),this['_awaitingChangeset']&&_0x308028[_0x5a4182(0x478)]&&(_0x308028[0x0][_0x5a4182(0x3b7)]=this[_0x5a4182(0x1a0)]());let _0x41092b;if(this['_awaitingChangeset']&&_0x2be097[_0x5a4182(0x478)]!==0x0)_0x41092b=this[_0x5a4182(0x333)]['createInstance'](Y,this[_0x5a4182(0x1ae)],this[_0x5a4182(0x161)],_0x308028[0x0],_0x2be097,this[_0x5a4182(0x1a6)]);else{if(this['_awaitingChangeset']&&_0x2be097[_0x5a4182(0x478)]===0x0)_0x308028[0x0][_0x5a4182(0x3b7)]=this[_0x5a4182(0x1a0)](),_0x41092b=this[_0x5a4182(0x333)][_0x5a4182(0x386)](Z,this[_0x5a4182(0x1ae)],this['type'],_0x308028[0x0],this['_handler']);else{if(_0x2be097['length']!==0x0){const _0x5625f1=this[_0x5a4182(0x333)]['createInstance'](G,this[_0x5a4182(0x1ae)],this[_0x5a4182(0x161)],_0x2be097,this[_0x5a4182(0x1a6)]);_0x5625f1[_0x5a4182(0x25c)](),_0x41092b=_0x5625f1;}else _0x41092b=this['_injector'][_0x5a4182(0x386)](Se,this[_0x5a4182(0x1ae)],this[_0x5a4182(0x161)],this[_0x5a4182(0x1a6)]);}}return _0x41092b['_updateLocalCache'](),_0x41092b;}catch(_0x459b31){return this[_0x5a4182(0x49c)][_0x5a4182(0x2f3)](_0x5a4182(0x31f),'failed\x20to\x20apply\x20missed\x20changesets!',_0x459b31),this['_injector'][_0x5a4182(0x386)](Q,this[_0x5a4182(0x1ae)],this['type'],this[_0x5a4182(0x232)],this[_0x5a4182(0x2eb)],this['_handler'],!0x1);}}[_0x2908d8(0x26e)](){const _0x5346ed=_0x2908d8;throw new Error(_0x5346ed(0x357));}['appendMutation'](_0x1497d9){const _0x39ab5a=_0x2908d8;return this[_0x39ab5a(0x2eb)][_0x39ab5a(0x349)](_0x1497d9),this;}[_0x2908d8(0x47f)](_0xab494){const _0x446dd0=_0x2908d8;return this[_0x446dd0(0x355)][_0x446dd0(0x349)](_0xab494),this;}[_0x2908d8(0x41a)](_0x233afb){const _0xc0c2e3=_0x2908d8;if(this[_0xc0c2e3(0x232)])return this[_0xc0c2e3(0x1ba)]=this['_awaitingChangeset'],this[_0xc0c2e3(0x232)]=null,this;throw new Error(_0xc0c2e3(0x396));}[_0x2908d8(0x2f8)](_0x18dd8b){const _0x217de4=_0x2908d8;return this[_0x217de4(0x15c)](!!(_0x18dd8b!=null&&_0x18dd8b['isPermissionRej']));}['toggleOffline'](){const _0x104541=_0x2908d8;return this[_0x104541(0x333)][_0x104541(0x386)](ee,this[_0x104541(0x1ae)],this[_0x104541(0x161)],this[_0x104541(0x232)],this['_pendingMutations'],this['_handler']);}[_0x2908d8(0x3d1)](){return this;}[_0x2908d8(0x15c)](_0x4173d2){const _0x66f1d1=_0x2908d8;return this[_0x66f1d1(0x333)][_0x66f1d1(0x386)](Q,this[_0x66f1d1(0x1ae)],this[_0x66f1d1(0x161)],this[_0x66f1d1(0x232)],this['_pendingMutations'],this[_0x66f1d1(0x1a6)],_0x4173d2);}};function _0x1140(_0x524a80,_0xb75292){const _0x3fc58c=_0x3fc5();return _0x1140=function(_0x1140ae,_0x33bd9f){_0x1140ae=_0x1140ae-0x132;let _0x262f6d=_0x3fc58c[_0x1140ae];return _0x262f6d;},_0x1140(_0x524a80,_0xb75292);}H=he([f(0x7,_0x573d4d(_0x100ac5)),f(0x8,_0x573d4d(_0xa35cc)),f(0x9,_0x573d4d(D)),f(0xa,_0x38155a),f(0xb,_0x2bd668),f(0xc,_0x3ed2c5),f(0xd,_0x35595c)],H);function xs(_0x22e49b,_0x27990f,_0x2dccde,_0x4016df,_0x284d14,_0x17dba5){const _0x429bf3=_0x2908d8;return _0x4016df&&_0x284d14[_0x429bf3(0x478)]?_0x22e49b[_0x429bf3(0x386)](Y,_0x27990f,_0x2dccde,_0x4016df,_0x284d14,_0x17dba5):_0x4016df?_0x22e49b['createInstance'](Z,_0x27990f,_0x2dccde,_0x4016df,_0x17dba5):_0x284d14[_0x429bf3(0x478)]?_0x22e49b[_0x429bf3(0x386)](G,_0x27990f,_0x2dccde,_0x284d14,_0x17dba5):_0x22e49b[_0x429bf3(0x386)](Se,_0x27990f,_0x2dccde,_0x17dba5);}function _0x3fc5(){const _0x2b068e=['batchAllowed','onSendChangeset','close$','_getSaveTimeout','max','_onOffline','getWorkbookSelections','getMemberID','getResourcesRequest','engine','_renderManagerService','transformSelections','searchParams','_createInitialState','doc.mutation.rich-text-editing','1494411uPrORL','jiqing500','getSheetId','push','delete','getCurrentUnitForType','_setupBeforeClosingHandler','executeCommand','listRoles','fetching\x20missing\x20changesets\x20from\x20','cmd','image/jpg','_draw','_replaceFileID','icon','_queuedRemoteChangesets','saveSnapshot','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','collaboratorID','_textBubble','_name','getImage','_hideTimer','_transformIMECache','_shouldReportTelemetry','BASE64','_unitStatus','setInterval','unshift','_undoStacks','enableAuthServer','_transformPreviousActiveRange','image/jpeg','_roomMembers$','commentUpdate$','COMMENT_UPDATE','getSkeleton','_toggleOnline','pauseCollaboration','DEFAULT_FILE_NAME','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getInterceptPoints','syncEditingCollabCursor','_clearOtherTimers','replaceTextRanges','uni.network.url-service','_members','/unit/','YUUMI_UNABLE_LOAD_URL','_exhaustRemoteChangesetQueue','then','blue400','_telemetryService','_disableEditing','_hovered','UNIVER_SHEET','APPLY_REJECT','onRendered','file','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_commentUpdate$','status$','_transformUndoRedoStack','none','createInstance','[CollaborationState]:\x20apply\x20error!','transformByState','_transformService','rgba(255,\x20255,\x20255,\x200.01)','_docSkeleton','result','/new_changes','getCollabEntity','_substituteUndoStack','subscribeEvent','roomMembers$','init','transformUndoRedo','/universer-api/comb','session','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','use','...','_getAPIPrefix','getFocusedUnit','_sheetSkeletonManagerService','_onUserJoin','random','_listenToOfflineEvent','hide','LIVESHARE_REQUEST_HOST','136aFERiS','_state$','\x20in\x20_schedule.','YUUMI_URL_COL_OUT_OF_RANGE','_clearTimeoutTimer','closeSession','9221028aoKHjM','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','collaMsg','_collaborationTimeoutTimer','_updateLocalCache','_transformRemoteChangesetByIMECache','_getAPIPrefixPath','[OfflineState]:\x20received\x20rejection.','fillText','getSheetBySheetId','save','/resources','_singleActiveUnitService','currentSkeleton$','isActive','name','baseRev','_onRefRangeChange','onlyLocal','ws://127.0.0.1:8000/universer-api/comb/connect','_handleHeartbeatEvent','onlineStatus','unitId\x20is\x20not\x20found','symbol','responseType','CHANGESET_ACK','UNKNOWN_CODE','isArray','fillStyle','session.connection-failed','message$','saveSheetBlock','_unitOnClients','univer-online-status','SYNCED','values','_urlService','triggerDblclick','state','FileId','encode','HEARTBEAT_TIMEOUT','toggleOnline','registerComponent','getTime','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','compose','url(#off-line-single_clip0_910_343)','_decreaseWaiting','disableLocalCache','univer-online-status-icon','RECV','ERROR_IMAGE','_updateStatus','_socket','COMPRESS_MUTATION_SEND','_render','registerRefRange','originalMeta','rev','tag','getMember','_onRemoteRejected','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','RemoveColCommandId','slice','red300','ACTIVE_UNIT_EVENT_CHANNEL','[SyncedState]:\x20received\x20acknowledgement.','_syncEditingCollabCursorService','JOIN','AWAITING_WITH_PENDING','_onConnectionFailed','_instanceService','div','getRangePointData','_assignedColors','_onJoinRoomEvent','removeEventListener','objectType','_themeService','_ws','backgroundColor','members','newValue','catch','_commandService','_revisionService','actions','_heartbeatTimer','updateOfflineData','InsertRangeMoveRightCommandId','joinRsp','cursorInfo$','auth.needGotoLoginAlert','univer-offline','MoveRangeCommandId','prototype','_imageSourceCache','restore','collaboration.single-unit.warning','add','RETRY_CONNECTING_MAX_COUNT','_startSheetCollabCursor','_redoStacks','MSG_FOR_ERROR','collabStatus.synced','skeleton','_getRedoStack','YUUMI_RATE_OVER_LIMIT','transformChangesets','appendMutation','624610HJfEob','_transitionLocked','toRgbString','onRemoteAck','image/gif','_scene','newCsEvent','stopTime','_submitChangeset','_initResize','_docSkeletonManagerService','_getMergeRange','roomInfos','objectActions','revision','_cursorInfo$','_showConflictNotification','LOCAL_CACHE_INTERVAL','onMissingChangesets','getMergeData','addObject','PERMISSION_DENIED','_throwTelemetryCollaborationNewChangeset','startsWith','_onRemoteChangeset','collabStatus.fetchMiss','RemoveRowCommandId','roomMembers','_getSignURL','_collaborationPaused','_handleHover','APPLY_PERMISSION_DENIED','_commentService','onPointerEnter$','some','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','clearInterval','[CollaborationSession]','onCommandExecuted','makeDirty','UNIVER_SLIDE','awaiting_with_pending','leaveEvent','onlineStatusTitle','idSuffix','getUnhiddenWorksheets','_scheduleSaving','collab-rect-range-','m2Prime','deepClone','getUniverSheetInstance','offline','now','reverse','_saveCache','getCollabCursors$','_drawAnchor','_onCombEvent','_getUndoStack','YUUMI_SUBSCRIPTION_NOT_FOUND','_selfUnitIDs','_onMessage','params','_replayCachedMutations','PSEUDO_FETCH_MISSING_RESULT','assignAColorForMemberID','_socketMessageSubscription','popstate','_clearRedo','_onUserLeave','csRejEvent','getCollabEntity$','_onConnectionOpen','_startDocCollabCursor','UNIVER_DOC','_permissionService','_sheetTransformSelectionsService','USERS_LEAVE','SNAPSHOT_URL_KEY','LICENSE_DISTRO_REJECTED','mutations','min','memberID','getTypeOfUnitDisposed$','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_state','_getSnapshotAPIPrefix','transformIMECache','attrs','saveOfflineData','userID','subunit','collabCursorState$','closePath','unit','ERROR_IMAGE_TYPE','initWorkbookPermissionChange','length','get','_clearScheduledTask','_onRemoteACK','create','_HTTPService','_onCursorUpdate','onRemoteChangeset','error$','CONNECTOR_DATA_TOO_LARGE','Undefined','c1Prime','_createHandler','collab-client.tooltip.reconnect','fetch_missing','changesets','_colorAssignService','_change$','saveChangeset','pluginName','_rescheduleHeartbeat','LICENSE_MAX_UNITS_EXCEEDED','reject','find','pipe','UNIVER_PROJECT','sheets','pending','/fetchmissing?from=','Error','_id','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','unitId','off-line-single_clip0_910_343','sheetId','startColumn','_logService','setTimeout','_shapes','_toggleOffline','conflict','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','size','Starting','shouldCloseConn','save\x20fail\x20reason\x20is\x20','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','findNodePositionByCharIndex','onCommentUpdate','getDocRanges','setShapeProps','subUnitId','_labelPosition','_memberService','_localeService','setAlpha','editing\x20status\x20changed\x20to','UNRECOGNIZED','_checkMissing','fetchMiss','_clearCollaborationTimeoutTimer','_drawRectRange','UNKNOWN_CMD','POST','21969EihStj','_initCloseConn','reduce','_anchorDot','_telemetryInfo','CONFLICT','_loadDoc','next','Warning','whenReady','_scheduleTimestamp','_scheduleHeartbeat','#fff','getConfig','_colorIndex','2jQFPVT','clipPath','textRanges','_onConflict','parse','collab-text-range-','/-/object/-/batch_allowed','focused$','type','width','_handleJoinEvent','RETRY_CONNECTING_INTERVAL','asObservable','collabStatus.notCollab','PENDING','_configService','permission.title','unit-cache-','_docTransformIMECacheService','_snapshotServerService','hovered','socket$','unknown','online','_roomMembers','/universer-api/file/{fileID}/sign-url','{fileID}','_removeClearOtherTimer','_executeRemoteChangeset','measureText','_isPermissionRej','defIds','on-line-single_clip0_910_349','saveImage','getOwnPropertyDescriptor','extend','_clearHeartbeatTimer','_registerRenderDependencies','_lockTransition','SNAPSHOT_HAS_BEEN_REMOVED','LICENSE_EXPORT_SIZE_EXCEEDED','round','DeleteRangeMoveUpCommandId','_initMergeInterceptor','image/bmp','_handleLeaveEvent','setConfig','_eventUnsubscribe','call','unsubscribe','getUnitId','_updateLocalCursor','cursorInfo','removeParam','color','_config','getRelativeToViewportCoord','resize','session.will-retry','_send','getUnitStatus$','VIEW_MAIN','liveShareOperation','editingUnit','UUID','_clearLocalCache','json','_fetchMissChangesets','NOT_FOUND','_remoteChangesetQueue','fetchMissingChangesets','_getCurrentRevision','colorChannel1','_transformStack','_removeRoom','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_collabSessionService','_handler','_status$','addEventListener','NOT_COLLAB','getOffsetConfig','_anchor','defs','listCollaborators','unitID','conflict.content','_waitForHeartbeatResponse','/-/object/list','_unlockTransition','onload','liveShareNewHost','FromArray','_updateSubUnitFromURLParams','change$','_substituteRedoStack','_onLocalMutation','_acknowledgedAwaitingChangeset','fetchThroughInterceptors','SNAPSHOT_SERVER_URL_KEY','getUndoRedoMutationParamsCache','_initCommandExecutedListener','dispose','getRoom','_entityInit$','[OfflineState]:\x20received\x20changeset.','_userManagerService','_setupSubUnitSync','_retryConnectingTimer','_notificationService','_collabCursorController','refreshPermission','toggleOffline','AWAITING','reconnect','_entities','transformRemoteChangeset','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','SNAPSHOT_INVALID_SNAPSHOT','duration','_transformUndoredo','_socketReady','createSocket','flatMap','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','transform','eventID','removeMember','evenodd','FETCH_MISSING','createElement','includes','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','split','_getCtorByUniverType','replaceState','_updateURLWithCurrentState','#FFF','permission.content','onTransformSelections','INVALID_ARGUMENT','HEARTBEAT','registerOnClose','pushState','_getSendChangesetTimeout','7138335RMSetB','_undoRedoService','indexOf','code','data','_backgroundColor','NO_OTHER_CLIENTS_EDITING','COMPRESS_MUTATION_APPLY','_cursorShapes','beginPath','hasOwnProperty','_localStorageService','defineProperty','[CollaborationUndoRedoService]','_type','_saveTaskMap','_unitID','_getAnchorBounding','getTypeOfUnitAdded$','_onFetchMissResult','_onCursorDelete','\x0aCurrent:\x20','text','CHANGESET_REVISION_CONFILICT','gold400','_range','enableSingleActiveInstanceLock','LIVESHARE_OPERATION','disposeWithMe','_sendHeartbeat','SUBMIT_CHANGESET','_sendingTimer','updatePermissionPoint','/universer-api/snapshot','[PendingState]:\x20unhandled\x20univer\x20type:\x20','className','Unknown\x20user','955842dkqPXn','INGEST','onPointerMove$','forEach','/universer-api/authz','_waitCount','onSyncEditingCollabCursor','startRow','_loadSheet','localeService','_createInitialStateImpl','list','transformStack\x20failed!','_initUnitPermissionChange','3119832uNdjNc','location','ranges','m1Prime','top','_getLoginPath','event$','_handleEvent','send','_lastPointer','onStateChange','createCollaborator','_collaborationSessionService','concat','loadOfflineData','every','_sessionStatus$','_httpService','body','disposeUnit','svg','_awaitingChangeset','addImageSourceCache','displayName','/object','UNAUTHENTICATED','_color','resourceIDs','getActiveSheet','HELLO','getCurrentSelections','_session','endRow','[SyncedState]:\x20received\x20rejection.','LIVESHARE_TERMINATE','c2Prime','confirm','generateRandomId','onTransformRemoteChangesetByIMECache','_createSocket','onTransformIME','startTime','_document','_listenToOnlineEvent','_snapshotService','drawWith','objectID','HEADER_MENU','/collaborator','show','readAsDataURL','HEARTBEAT_INTERVAL','HttpImport','black','trim','[DataLoaderController]','set','setParam','onTransformChange$','_context','method','has','getCurrentRevForDocument','_schedule','updatePermissionObjEvent','PERMISSION_REJ','requestParams','_refreshCollabCursors','_docSyncEditingCollabCursorService','univer-online','_updateCollabCursors','univer-pro.collaboration-client-socket-service','getUnitType','_applyRemoteChangeset','map','row','permissionRejEvent','USERS_ENTER','bottom','incrementRevForDocument','close','resend','_socket$','_disabled','routeKey','submit\x20changeset\x20error!','/rev/','_getScale','_incrementRevisionNumber','path','_cachedData','sessionStatus$','COLLAB_SUBMIT_CHANGESET_URL','sessionStatus','OffLineSingle','&source=','collaboration-client.config','transformMutationsWithChangeset','registerRenderModule','_http','selection','_online','UnitEmbedded','awaitingChangeset','ONLINE','_clearUndo','LEAVE','OFFLINE','_joinRoom','infoRsp','urlChange$','SEND_CHANGESET_TIMEOUT','_ensureSubject','selections','DeleteRangeMoveLeftCommandId','INTERNAL_ERROR','_scheduleCollaborationTimeoutTimer','OTHER_CLIENTS_EDITING','updateMember','_tryReconnect','6550LwYEXh','onPointerLeave$','verdancy600','subscribe','_retryCount','&to=','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','column','getValue','addObjects','FAIL','isEditing','assign','currentTheme$','unload','toString','collaboration-client.offline-data-not-saved','getParam','CHANGESET_REJ','/universer-api/snapshot/','apply','M0\x200H16V16H0z','_transformSelections','_startTelemetryCollaborationNewChangeset','arc','_onRecvEvent','[UniverCollaborationClientPlugin]','SHOULD_CLOSE_CONN','clear','range','getOwnPropertySymbols','onStarting','univerjs-icon\x20univerjs-icon-','getActiveRange','[CollaborationSessionService]:\x20socket\x20error','APPLY_NON_SEQUENTIAL_REVISION','LICENSE_IMPORT_SIZE_EXCEEDED','dispose$','commentUpdateEvent','_syncEditingCollabCursor','collaboration_new_changeset','open$','transformMutation','entries','isPermissionRej','_univerInstanceService','_init','children','/block/','getCurrent','post','_sessions','putCollaborators','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_cursor','filter','synced','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','updateCollaborator','collabStatus.syncing','MUTATION','connection\x20error','stringify','complete','&assign=','height','onlineStatusIcon','href','lineTo','InsertRowCommandId','url','collaborators','registerBeforeClose','UPDATE_CURSOR','setActiveRange','currentColor','_stopTelemetryCollaborationNewChangeset','_docStateChangeManagerService','/allowed','from','UnitSnapshot','debug','src','_uiPartsService','awaiting','interceptor','_pendingMutations','_sendHeartbeatTimer','_socketService','history','url(#on-line-single_clip0_910_349)','_hover','LIVESHARE_NEW_HOST','_initStatusComponent','error','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','OnLineSingle','telemetry\x20info\x20is\x20not\x20initialized','InsertColCommandId','onRemoteRej','fill','fromCollab','_timeoutTimer','_localCacheService','collaboration-session-retry','_messageService','UPDATE_PERMISSION_OBJ','ALREADY_EXISTS','string','Steady','_compressMutationService','_cursors','_scheduleClearOtherTimer','loadDoc','UniverIcon','?url=','_collabCursorState$','HttpExport','state$','AUTHZ_URL_KEY','/role','socket\x20close','_beforeCloseService','_tryEnsureSocket','put','setCurrentUser','/object/','_drawTextRange','exhaustSavingTask','xlink:href','_getSheetObject','_startCollaboration','clearTimeout','SUCCUSS','LIVESHARE_FETCH_OPERATIONS','TOO_MANY_REQUESTS','_updateState','setItem','[FetchMissState]','_getUploadFileURL','collaboration.closeRoom','_registerDependencies','1em','_event$','requireSession','objects','replace','propertyIsEnumerable','NEW_CHANGESETS','onMouseMove','status','getSheetBlock','csAckEvent','UNIVER_UNKNOWN','getCurrentUser','_removeCollabCursors','_initModules','ERROR_EXCEED_SIZE','_injector','JOINING','_collaborationController','FETCH_MISS'];_0x3fc5=function(){return _0x2b068e;};return _0x3fc5();}var fr=Object[_0x2908d8(0x1f6)],gr=Object[_0x2908d8(0x17b)],Vt=(_0x4efad8,_0x538356,_0x599406,_0x2aefba)=>{const _0x5a9242=_0x2908d8;for(var _0x4e5f34=_0x2aefba>0x1?void 0x0:_0x2aefba?gr(_0x538356,_0x599406):_0x538356,_0x3e71d7=_0x4efad8[_0x5a9242(0x478)]-0x1,_0x393223;_0x3e71d7>=0x0;_0x3e71d7--)(_0x393223=_0x4efad8[_0x3e71d7])&&(_0x4e5f34=(_0x2aefba?_0x393223(_0x538356,_0x599406,_0x4e5f34):_0x393223(_0x4e5f34))||_0x4e5f34);return _0x2aefba&&_0x4e5f34&&fr(_0x538356,_0x599406,_0x4e5f34),_0x4e5f34;},p=(_0x584b37,_0x3bda94)=>(_0x339e4e,_0x5ae88c)=>_0x3bda94(_0x339e4e,_0x5ae88c,_0x584b37);let tt=class extends _0x5afe1b{constructor(_0x19d5ea,_0x6fa20f,_0x497dba,_0x24d6ce,_0x491952,_0x37ee0a,_0x13cd7e,_0x5c7914,_0x5990d8,_0x264bfd,_0x46def8,_0x6a0f2f,_0x4d2010){const _0x494aa4=_0x2908d8;super(),l(this,_0x494aa4(0x3a2),new _0x5a6925(null)),l(this,'state$',this[_0x494aa4(0x3a2)][_0x494aa4(0x165)]()),l(this,_0x494aa4(0x46c)),l(this,_0x494aa4(0x434),!0x1),l(this,'status$',this[_0x494aa4(0x30b)][_0x494aa4(0x490)](_0x43f74d(_0x52b2c2=>_0x52b2c2?_0x52b2c2[_0x494aa4(0x32b)]:w['OFFLINE']),_0x2e7acf(0x1))),l(this,_0x494aa4(0x418),!0x1),l(this,_0x494aa4(0x19e),[]),(this[_0x494aa4(0x1ae)]=_0x19d5ea,this[_0x494aa4(0x395)]=_0x6fa20f,this['_type']=_0x497dba,this[_0x494aa4(0x333)]=_0x24d6ce,this[_0x494aa4(0x2fc)]=_0x491952,this[_0x494aa4(0x303)]=_0x37ee0a,this['_localeService']=_0x13cd7e,this['_revisionService']=_0x5c7914,this[_0x494aa4(0x49c)]=_0x5990d8,this['_commandService']=_0x264bfd,this[_0x494aa4(0x2fe)]=_0x46def8,this[_0x494aa4(0x462)]=_0x6a0f2f,this[_0x494aa4(0x3b3)]=_0x4d2010);}get[_0x2908d8(0x3cd)](){const _0x440cb5=_0x2908d8;return this[_0x440cb5(0x46c)];}async[_0x2908d8(0x392)](){const _0x4b3e75=_0x2908d8;if(this[_0x4b3e75(0x3cd)])throw new Error(_0x4b3e75(0x133));await this[_0x4b3e75(0x2c3)]();}[_0x2908d8(0x36c)](){const _0x165298=_0x2908d8;return this[_0x165298(0x434)]=!0x0,_0x58e78e(()=>{const _0x1c7333=_0x165298;this[_0x1c7333(0x434)]=!0x1,this[_0x1c7333(0x377)]();});}[_0x2908d8(0x31d)](_0x1579d1){const _0x3c301c=_0x2908d8;this[_0x3c301c(0x46c)]=_0x1579d1,this[_0x3c301c(0x3a2)][_0x3c301c(0x151)](_0x1579d1);}async['_init'](){const _0x28aa4d=_0x2908d8;var _0x1305aa;this[_0x28aa4d(0x31d)](await this[_0x28aa4d(0x344)]()),this[_0x28aa4d(0x3b3)]&&((_0x1305aa=this[_0x28aa4d(0x3b3)])==null||_0x1305aa['editingUnit'](this[_0x28aa4d(0x1ae)]),this['disposeWithMe'](this['_singleActiveUnitService'][_0x28aa4d(0x195)](this[_0x28aa4d(0x1ae)])[_0x28aa4d(0x298)](_0x2d893e=>{const _0x54d44c=_0x28aa4d;this[_0x54d44c(0x49c)][_0x54d44c(0x2e6)]('[CollaborationEntity]',_0x54d44c(0x142),_0x2d893e),_0x2d893e===$s[_0x54d44c(0x292)]?(this[_0x54d44c(0x2fe)]['show']({'content':this[_0x54d44c(0x140)]['t'](_0x54d44c(0x40b)),'type':_0x42502c[_0x54d44c(0x152)]}),this[_0x54d44c(0x462)][_0x54d44c(0x20a)](new _0x4eedfe(this[_0x54d44c(0x1ae)])['id'],!0x1)):this['_permissionService'][_0x54d44c(0x20a)](new _0x4eedfe(this[_0x54d44c(0x1ae)])['id'],!0x0);})));let _0x484590=!0x1;return this[_0x28aa4d(0x206)](this['session']['sessionStatus$'][_0x28aa4d(0x298)](_0x31016e=>{const _0x253d2d=_0x28aa4d;_0x31016e===F[_0x253d2d(0x285)]?this[_0x253d2d(0x36b)](_0x484590):_0x31016e===F[_0x253d2d(0x288)]&&(_0x484590=!0x0,this[_0x253d2d(0x49f)]());})),this[_0x28aa4d(0x206)](this[_0x28aa4d(0x395)][_0x28aa4d(0x223)]['subscribe'](_0x32b699=>{const _0x42162e=_0x28aa4d;try{switch(_0x32b699[_0x42162e(0x1d7)]){case _0x2ca871[_0x42162e(0x329)]:{this[_0x42162e(0x42f)](_0x29c246(_0x32b699['data']));break;}case _0x2ca871[_0x42162e(0x3c0)]:{this[_0x42162e(0x47b)](_0x32b699['data']);break;}case _0x2ca871[_0x42162e(0x2a7)]:{this[_0x42162e(0x3e5)]();break;}case _0x2ca871['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x42162e(0x1fd)](_0x32b699[_0x42162e(0x1ee)][_0x42162e(0x487)][_0x42162e(0x267)](_0x4c3899=>_0x29c246(_0x4c3899)));break;}case _0x2ca871[_0x42162e(0x25e)]:this[_0x42162e(0x3e5)]({'isPermissionRej':!0x0});}}catch(_0xb0d93){throw console[_0x42162e(0x2f3)]('Error\x20on\x20receiving\x20event',_0xb0d93),_0xb0d93;}})),this[_0x28aa4d(0x46c)];}[_0x2908d8(0x1b2)](){const _0x9a22c=_0x2908d8;this[_0x9a22c(0x418)]=!0x1;}[_0x2908d8(0x17f)](){const _0x2b047a=_0x2908d8;if(this[_0x2b047a(0x418)])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[_0x2b047a(0x418)]=!0x0;}[_0x2908d8(0x1b9)](_0x40804c){const _0x3b3877=_0x2908d8;this[_0x3b3877(0x17f)](),this[_0x3b3877(0x31d)](this['_state']['appendMutation'](_0x40804c)),this[_0x3b3877(0x1b2)]();}[_0x2908d8(0x42f)](_0x2d530e){const _0x1073b1=_0x2908d8;if(!(_0x2d530e[_0x1073b1(0x425)]<=this['_revisionService'][_0x1073b1(0x25b)](this[_0x1073b1(0x1ae)]))){if(this[_0x1073b1(0x434)]){this[_0x1073b1(0x19e)]['push'](_0x2d530e);return;}this[_0x1073b1(0x266)](_0x2d530e);}}[_0x2908d8(0x377)](){const _0x201954=_0x2908d8;this[_0x201954(0x19e)][_0x201954(0x212)](_0x2fe23c=>this['_applyRemoteChangeset'](_0x2fe23c)),this[_0x201954(0x19e)]=[];}[_0x2908d8(0x266)](_0x4270c5){const _0x4db024=_0x2908d8,_0x360bbf=this[_0x4db024(0x303)][_0x4db024(0x2ea)][_0x4db024(0x1bb)](this[_0x4db024(0x303)][_0x4db024(0x2ea)][_0x4db024(0x36f)]()[_0x4db024(0x1f1)])(_0x4270c5[_0x4db024(0x467)],null)||_0x4270c5[_0x4db024(0x467)],_0x143804={..._0x4270c5,'mutations':_0x360bbf};this[_0x4db024(0x17f)](),this[_0x4db024(0x31d)](this[_0x4db024(0x46c)][_0x4db024(0x47f)](_0x143804)),this[_0x4db024(0x1b2)]();}[_0x2908d8(0x47b)](_0x241e0d){const _0x5caa04=_0x2908d8;this['_lockTransition'](),this[_0x5caa04(0x31d)](this[_0x5caa04(0x46c)][_0x5caa04(0x41a)](_0x241e0d)),this[_0x5caa04(0x1b2)]();}[_0x2908d8(0x3e5)](_0x5d9062){const _0x30b0a6=_0x2908d8;this[_0x30b0a6(0x17f)](),this[_0x30b0a6(0x31d)](this[_0x30b0a6(0x46c)][_0x30b0a6(0x2f8)](_0x5d9062)),this['_unlockTransition']();}[_0x2908d8(0x1fd)](_0x1044b9){const _0x3baf29=_0x2908d8;if(!(this[_0x3baf29(0x46c)]instanceof H))throw new TypeError(_0x3baf29(0x29b));const _0x5f2cb7=_0x1044b9[_0x3baf29(0x267)](_0x590db9=>{const _0x16e23b=_0x3baf29,_0x3c475b=this[_0x16e23b(0x303)]['interceptor'][_0x16e23b(0x1bb)](this['_compressMutationService']['interceptor'][_0x16e23b(0x36f)]()[_0x16e23b(0x1f1)])(_0x590db9[_0x16e23b(0x467)],null)||_0x590db9['mutations'];return{..._0x590db9,'mutations':_0x3c475b};});this[_0x3baf29(0x17f)](),this[_0x3baf29(0x31d)](this['_state']['onMissedChangesetFetched'](_0x5f2cb7)),this['_unlockTransition']();}[_0x2908d8(0x49f)](){const _0x46b2cf=_0x2908d8;this[_0x46b2cf(0x17f)](),this[_0x46b2cf(0x31d)](this[_0x46b2cf(0x46c)][_0x46b2cf(0x1c9)]()),this['_unlockTransition']();}['_toggleOnline'](_0x46c12d=!0x1){const _0x54211c=_0x2908d8;this[_0x54211c(0x17f)](),this[_0x54211c(0x31d)](this[_0x54211c(0x46c)][_0x54211c(0x3d1)]()),this['_unlockTransition']();const _0x371884=this[_0x54211c(0x46c)];_0x46c12d&&_0x371884 instanceof Se&&(this['_lockTransition'](),this['_updateState'](_0x371884['fetchMiss']()),this[_0x54211c(0x1b2)]());}async[_0x2908d8(0x344)](){return new Promise(_0x37bfbf=>{const _0x3467a7=_0x1140;this['session']['sessionStatus$'][_0x3467a7(0x490)](_0x462e64(0x1))[_0x3467a7(0x298)](async _0xb87178=>{const _0x131524=_0x3467a7;_0x37bfbf(await this[_0x131524(0x219)](_0xb87178===F[_0x131524(0x285)]));});});}[_0x2908d8(0x484)](){const _0x22d82f=_0x2908d8,_0x2cc577=this[_0x22d82f(0x1ae)];return{'onStateChange':(_0x264676,_0x3d4cf3)=>{const _0x35c659=_0x22d82f;if(_0x264676!==this[_0x35c659(0x46c)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x264676['status']+'\x0aAfter:\x20'+_0x3d4cf3['status']+_0x35c659(0x1ff)+this[_0x35c659(0x46c)]['status']);this[_0x35c659(0x31d)](_0x3d4cf3);},'onSendChangeset':_0x1b5d2c=>{const _0x1756dc=_0x22d82f,_0x943f0b={'eventID':_0x2ca871['SUBMIT_CHANGESET'],'data':{'unitID':_0x1b5d2c[_0x1756dc(0x1ae)],'unitType':this[_0x1756dc(0x1f8)],'changeset':_0x1b5d2c,'memberID':this[_0x1756dc(0x395)][_0x1756dc(0x33e)]()}};this[_0x1756dc(0x395)]['send'](_0x943f0b,this[_0x1756dc(0x1ae)]);},'onMissingChangesets':({from:_0x59e194,to:_0x3fe853})=>{const _0x28c985=_0x22d82f;this[_0x28c985(0x49c)][_0x28c985(0x2e6)]('[CollaborationEntity]',_0x28c985(0x34f)+_0x59e194+'\x20to\x20'+_0x3fe853);const _0x51c835={'eventID':_0x2ca871[_0x28c985(0x1da)],'data':{'unitID':_0x2cc577,'unitType':this[_0x28c985(0x1f8)],'from':_0x59e194,'to':_0x3fe853}};this[_0x28c985(0x395)][_0x28c985(0x225)](_0x51c835,this[_0x28c985(0x1ae)]);}};}async[_0x2908d8(0x219)](_0x8bf16c){const _0x31389a=_0x2908d8;var _0x75c80b,_0x3c22d9;const _0x3d7230=await this[_0x31389a(0x2fc)][_0x31389a(0x22b)](this['unitID']),_0x4b7e1c=(_0x75c80b=_0x3d7230==null?void 0x0:_0x3d7230[_0x31389a(0x467)])!=null?_0x75c80b:[],_0x4f649c=(_0x3c22d9=_0x3d7230==null?void 0x0:_0x3d7230[_0x31389a(0x284)])!=null?_0x3c22d9:null,_0x1c7eab=this[_0x31389a(0x1ae)];try{this[_0x31389a(0x456)](_0x4f649c,_0x4b7e1c);}catch(_0x532f9d){this[_0x31389a(0x49c)][_0x31389a(0x2f3)](_0x532f9d);}const _0x6bd9e7=this[_0x31389a(0x484)]();if(_0x8bf16c){const _0x54d5ac=xs(this[_0x31389a(0x333)],_0x1c7eab,this[_0x31389a(0x1f8)],_0x4f649c,_0x4b7e1c,_0x6bd9e7);return _0x54d5ac instanceof G?_0x54d5ac[_0x31389a(0x25c)]():(_0x54d5ac instanceof Y||_0x54d5ac instanceof Z)&&_0x54d5ac[_0x31389a(0x26e)](),_0x54d5ac;}return this[_0x31389a(0x333)][_0x31389a(0x386)](ee,_0x1c7eab,this[_0x31389a(0x1f8)],_0x4f649c,_0x4b7e1c,_0x6bd9e7);}[_0x2908d8(0x456)](_0x5872f8,_0xf72c8c){const _0xd5a334=_0x2908d8;var _0xb96809,_0x3342e4;const _0x466ebb=this[_0xd5a334(0x303)][_0xd5a334(0x2ea)][_0xd5a334(0x1bb)](this[_0xd5a334(0x303)][_0xd5a334(0x2ea)][_0xd5a334(0x36f)]()[_0xd5a334(0x1f1)]);(_0xb96809=_0x466ebb((_0x5872f8==null?void 0x0:_0x5872f8[_0xd5a334(0x467)])||[],null))==null||_0xb96809['forEach'](_0x22abb4=>this['_commandService'][_0xd5a334(0x34d)](_0x22abb4['id'],_0x22abb4['params'])),(_0x3342e4=_0x466ebb(_0xf72c8c||[],null))==null||_0x3342e4[_0xd5a334(0x212)](_0x5ee9b2=>this[_0xd5a334(0x3fd)][_0xd5a334(0x34d)](_0x5ee9b2['id'],_0x5ee9b2[_0xd5a334(0x455)]));}};tt=Vt([p(0x3,_0x573d4d(_0x100ac5)),p(0x4,_0x573d4d(D)),p(0x5,_0x573d4d(_0x123deb)),p(0x6,_0x573d4d(_0x5071b4)),p(0x7,_0x573d4d(_0xa35cc)),p(0x8,_0x38155a),p(0x9,_0x2bd668),p(0xa,_0x6d8428),p(0xb,_0x1984e0),p(0xc,_0x2b0397(it))],tt);let bt=class extends tt{constructor(_0x17c7f2,_0x490901,_0x24101b,_0x5d3a14,_0x48f00e,_0x55321f,_0x5556cf,_0x40553a,_0x171ce3,_0x29268a,_0xb2ac60,_0x407da7,_0x11f1a5,_0x2b71fc,_0x13a6be,_0x10f09a,_0x3b8486){const _0x5e099e=_0x2908d8;super(_0x17c7f2,_0x24101b,_0x490901,_0x5d3a14,_0x48f00e,_0x55321f,_0x5556cf,_0x40553a,_0x11f1a5,_0x2b71fc,_0x13a6be,_0x10f09a,_0x3b8486),this[_0x5e099e(0x1ae)]=_0x17c7f2,this[_0x5e099e(0x161)]=_0x490901,this[_0x5e099e(0x2e2)]=_0x171ce3,this[_0x5e099e(0x16b)]=_0x29268a,this['_docTransformSelectionsService']=_0xb2ac60,this['_docSyncEditingCollabCursorService']=_0x407da7;}[_0x2908d8(0x484)](){const _0x27646b=_0x2908d8,_0x37d0a4=super['_createHandler']();return _0x37d0a4[_0x27646b(0x245)]=_0x601d0e=>this[_0x27646b(0x16b)][_0x27646b(0x46e)](_0x601d0e),_0x37d0a4['onTransformSelections']=_0x14c130=>this['_docTransformSelectionsService']['transformSelections'](_0x14c130),_0x37d0a4[_0x27646b(0x215)]=_0x22c8d1=>this[_0x27646b(0x261)][_0x27646b(0x370)](_0x22c8d1),_0x37d0a4[_0x27646b(0x243)]=_0x34ea92=>this[_0x27646b(0x16b)][_0x27646b(0x1cd)](_0x34ea92),_0x37d0a4;}async[_0x2908d8(0x2c3)](){const _0x2b9fb1=_0x2908d8,_0x3bf87c=await super[_0x2b9fb1(0x2c3)]();return this['disposeWithMe'](this[_0x2b9fb1(0x3fd)][_0x2b9fb1(0x43d)]((_0x3eb2b7,_0x31dcde)=>{const _0x264e9d=_0x2b9fb1;if(_0x3eb2b7['type']!==_0x49ed46[_0x264e9d(0x2d1)]||_0x31dcde!=null&&_0x31dcde[_0x264e9d(0x2fa)]||_0x31dcde!=null&&_0x31dcde[_0x264e9d(0x3b9)])return;const _0xef9b24=_0x3eb2b7[_0x264e9d(0x455)];if((_0xef9b24==null?void 0x0:_0xef9b24['unitId'])!==this[_0x264e9d(0x1ae)])return;let _0x5e7301=_0x3eb2b7;if(_0x5e7301['id']===_0x13ef0c['id']){const _0x27acd1=_0x5e7301[_0x264e9d(0x455)];_0x5e7301={'id':_0x13ef0c['id'],'type':_0x49ed46['MUTATION'],'params':{'unitId':_0x27acd1[_0x264e9d(0x498)],'actions':_0x27acd1[_0x264e9d(0x3ff)],'textRanges':null}};}const _0x360c31=this[_0x264e9d(0x303)][_0x264e9d(0x2ea)]['fetchThroughInterceptors'](this[_0x264e9d(0x303)][_0x264e9d(0x2ea)][_0x264e9d(0x36f)]()['COMPRESS_MUTATION_SEND'])([_0x5e7301],null)||[_0x5e7301];this[_0x264e9d(0x1b9)](_0x360c31[0x0]);})),_0x3bf87c;}};bt=Vt([p(0x3,_0x573d4d(_0x100ac5)),p(0x4,_0x573d4d(D)),p(0x5,_0x573d4d(_0x123deb)),p(0x6,_0x573d4d(_0x5071b4)),p(0x7,_0x573d4d(_0xa35cc)),p(0x8,_0x573d4d(_0x1211ce)),p(0x9,_0x573d4d(Ze)),p(0xa,_0x573d4d(et)),p(0xb,_0x573d4d(kt)),p(0xc,_0x38155a),p(0xd,_0x2bd668),p(0xe,_0x6d8428),p(0xf,_0x1984e0),p(0x10,_0x2b0397(it))],bt);let Tt=class extends tt{constructor(_0x276c35,_0x2281a7,_0x21ce43,_0x2d214d,_0xb42816,_0x3e9264,_0x1925ab,_0x6a009f,_0x3a2555,_0x479ad0,_0x50f3c3,_0x1a8fba,_0x58e0e8,_0x49f881){const _0x3558b8=_0x2908d8;super(_0x276c35,_0x21ce43,_0x2281a7,_0x2d214d,_0xb42816,_0x3e9264,_0x1925ab,_0x6a009f,_0x479ad0,_0x50f3c3,_0x1a8fba,_0x58e0e8,_0x49f881),this['unitID']=_0x276c35,this[_0x3558b8(0x161)]=_0x2281a7,this['_sheetTransformSelectionsService']=_0x3a2555;}['_createHandler'](){const _0x2c3528=_0x2908d8,_0x58aa81=super[_0x2c3528(0x484)]();return _0x58aa81[_0x2c3528(0x1e4)]=_0x431307=>this[_0x2c3528(0x463)][_0x2c3528(0x342)](_0x431307),_0x58aa81;}async[_0x2908d8(0x2c3)](){const _0x597575=_0x2908d8,_0x4d19a7=await super[_0x597575(0x2c3)]();return this[_0x597575(0x206)](this[_0x597575(0x3fd)]['onCommandExecuted']((_0x53d548,_0x1c21a6)=>{const _0xb5c3e4=_0x597575;if(_0x53d548[_0xb5c3e4(0x161)]!==_0x49ed46[_0xb5c3e4(0x2d1)]||_0x1c21a6!=null&&_0x1c21a6['fromCollab']||_0x1c21a6!=null&&_0x1c21a6[_0xb5c3e4(0x3b9)])return;const _0x14a7af=_0x53d548[_0xb5c3e4(0x455)];if((_0x14a7af==null?void 0x0:_0x14a7af[_0xb5c3e4(0x498)])!==this[_0xb5c3e4(0x1ae)])return;const _0x387c14=_0x53d548,_0x39d2db=this[_0xb5c3e4(0x303)][_0xb5c3e4(0x2ea)][_0xb5c3e4(0x1bb)](this[_0xb5c3e4(0x303)][_0xb5c3e4(0x2ea)][_0xb5c3e4(0x36f)]()[_0xb5c3e4(0x3de)])([_0x387c14],null)||[_0x387c14];this['_onLocalMutation'](_0x39d2db[0x0]);})),_0x4d19a7;}};Tt=Vt([p(0x3,_0x573d4d(_0x100ac5)),p(0x4,_0x573d4d(D)),p(0x5,_0x573d4d(_0x123deb)),p(0x6,_0x573d4d(_0x5071b4)),p(0x7,_0x573d4d(_0xa35cc)),p(0x8,_0x573d4d(Qe)),p(0x9,_0x38155a),p(0xa,_0x2bd668),p(0xb,_0x6d8428),p(0xc,_0x1984e0),p(0xd,_0x2b0397(it))],Tt);var Sr=Object['defineProperty'],pr=Object[_0x2908d8(0x17b)],vr=(_0xd5f5e8,_0x2129c8,_0x4c335a,_0x1d5394)=>{for(var _0x3ce164=_0x1d5394>0x1?void 0x0:_0x1d5394?pr(_0x2129c8,_0x4c335a):_0x2129c8,_0x438425=_0xd5f5e8['length']-0x1,_0xf9a25d;_0x438425>=0x0;_0x438425--)(_0xf9a25d=_0xd5f5e8[_0x438425])&&(_0x3ce164=(_0x1d5394?_0xf9a25d(_0x2129c8,_0x4c335a,_0x3ce164):_0xf9a25d(_0x3ce164))||_0x3ce164);return _0x1d5394&&_0x3ce164&&Sr(_0x2129c8,_0x4c335a,_0x3ce164),_0x3ce164;},lt=(_0x40e30c,_0x1af75e)=>(_0x3d3074,_0xdd6f47)=>_0x1af75e(_0x3d3074,_0xdd6f47,_0x40e30c);let Ae=class extends _0x5afe1b{constructor(_0x3a6a8c,_0x1edd0c,_0x248b26){const _0x5b66b7=_0x2908d8;super(),l(this,_0x5b66b7(0x1cc),new Map()),l(this,_0x5b66b7(0x1c1),new _0x59e98b()),(this[_0x5b66b7(0x333)]=_0x3a6a8c,this[_0x5b66b7(0x1a5)]=_0x1edd0c,this[_0x5b66b7(0x2c2)]=_0x248b26,this['_init']());}[_0x2908d8(0x1bf)](){const _0x43be90=_0x2908d8;super[_0x43be90(0x1bf)](),this[_0x43be90(0x1cc)]['forEach'](_0xfa05a6=>_0xfa05a6['dispose']()),this[_0x43be90(0x1cc)]['clear']();}[_0x2908d8(0x38e)](_0xbc9134){const _0x379f02=_0x2908d8;var _0x3e1f77;return(_0x3e1f77=this[_0x379f02(0x1cc)][_0x379f02(0x479)](_0xbc9134))!=null?_0x3e1f77:null;}[_0x2908d8(0x45e)](_0x22d142){const _0x4a6fce=_0x2908d8,_0x4411fe=this['getCollabEntity'](_0x22d142);return _0x4411fe?_0xc0017a(_0x4411fe):this['_entityInit$']['pipe'](_0x51803d(_0x23225c=>_0x23225c[_0x4a6fce(0x1ae)]===_0x22d142));}[_0x2908d8(0x2c3)](){const _0x12087f=_0x2908d8;this['_univerInstanceService'][_0x12087f(0x1fc)](_0x50520e['UNIVER_SHEET'])[_0x12087f(0x490)](_0x4f72a2(this[_0x12087f(0x2ba)]),_0x12b4d6(0x10))[_0x12087f(0x298)](async _0x427630=>{const _0x45d8c8=_0x12087f,_0x3da1c4=_0x427630['getUnitId'](),_0x1b55d3=await this[_0x45d8c8(0x318)](_0x3da1c4,x['UNIVER_SHEET']);this['_entities'][_0x45d8c8(0x255)](_0x3da1c4,_0x1b55d3);}),this[_0x12087f(0x2c2)][_0x12087f(0x1fc)](_0x50520e[_0x12087f(0x461)])[_0x12087f(0x490)](_0x4f72a2(this[_0x12087f(0x2ba)]),_0x12b4d6(0x10))['pipe'](_0x51803d(_0x312b1d=>!_0x312b1d[_0x12087f(0x18b)]()[_0x12087f(0x42e)]('__')))[_0x12087f(0x298)](async _0x4e4c17=>{const _0x1ec308=_0x12087f,_0x122ac3=_0x4e4c17['getUnitId'](),_0x4e7489=await this[_0x1ec308(0x318)](_0x122ac3,x[_0x1ec308(0x461)]);this[_0x1ec308(0x1cc)]['set'](_0x122ac3,_0x4e7489);}),_0x52a416(this[_0x12087f(0x2c2)][_0x12087f(0x46a)](_0x50520e[_0x12087f(0x37d)]),this['_univerInstanceService'][_0x12087f(0x46a)](_0x50520e[_0x12087f(0x461)]))[_0x12087f(0x490)](_0x4f72a2(this[_0x12087f(0x2ba)]))[_0x12087f(0x298)](_0x2db050=>{const _0x2eb7a5=_0x12087f,_0x5e2d5b=_0x2db050[_0x2eb7a5(0x18b)](),_0x46c288=this[_0x2eb7a5(0x1cc)][_0x2eb7a5(0x479)](_0x5e2d5b);_0x46c288&&(_0x46c288['dispose'](),this[_0x2eb7a5(0x1cc)][_0x2eb7a5(0x34a)](_0x5e2d5b));});}async[_0x2908d8(0x318)](_0x8d80ab,_0x59ac3e){const _0x1213ef=_0x2908d8,_0x43f899=await this['_collabSessionService'][_0x1213ef(0x325)](_0x8d80ab),_0x28bbd5=this[_0x1213ef(0x333)][_0x1213ef(0x386)](this['_getCtorByUniverType'](_0x59ac3e),_0x8d80ab,_0x59ac3e,_0x43f899);return await _0x28bbd5['init'](),this['_entityInit$']['next'](_0x28bbd5),_0x28bbd5;}[_0x2908d8(0x1df)](_0x25241){const _0x5c4ab3=_0x2908d8;switch(_0x25241){case x[_0x5c4ab3(0x461)]:return bt;case x[_0x5c4ab3(0x37d)]:return Tt;default:throw new Error(_0x5c4ab3(0x43a)+_0x25241);}}};Ae=vr([lt(0x0,_0x573d4d(_0x100ac5)),lt(0x1,_0x573d4d(ae)),lt(0x2,_0x52e604)],Ae);const ls=['purple300',_0x2908d8(0x347),_0x2908d8(0x297),_0x2908d8(0x3e9),_0x2908d8(0x379),_0x2908d8(0x202)];class Bt extends _0x5d8459{constructor(){const _0x3c8047=_0x2908d8;super(...arguments),l(this,_0x3c8047(0x3f3),new Map()),l(this,_0x3c8047(0x158),0x0);}[_0x2908d8(0x458)](_0x256e59){const _0xc0a568=_0x2908d8;if(this[_0xc0a568(0x3f3)][_0xc0a568(0x25a)](_0x256e59))return this[_0xc0a568(0x3f3)]['get'](_0x256e59);const _0xd0c941=ls[this['_colorIndex']];return this[_0xc0a568(0x158)]=(this[_0xc0a568(0x158)]+0x1)%ls['length'],this[_0xc0a568(0x3f3)][_0xc0a568(0x255)](_0x256e59,_0xd0c941),_0xd0c941;}}var Ir=Object['defineProperty'],Er=Object[_0x2908d8(0x17b)],Cr=(_0x120215,_0x348838,_0x235b2d,_0x27e1bf)=>{const _0x2911c5=_0x2908d8;for(var _0x1b2a5f=_0x27e1bf>0x1?void 0x0:_0x27e1bf?Er(_0x348838,_0x235b2d):_0x348838,_0x21b961=_0x120215[_0x2911c5(0x478)]-0x1,_0x46a4e8;_0x21b961>=0x0;_0x21b961--)(_0x46a4e8=_0x120215[_0x21b961])&&(_0x1b2a5f=(_0x27e1bf?_0x46a4e8(_0x348838,_0x235b2d,_0x1b2a5f):_0x46a4e8(_0x1b2a5f))||_0x1b2a5f);return _0x27e1bf&&_0x1b2a5f&&Ir(_0x348838,_0x235b2d,_0x1b2a5f),_0x1b2a5f;},de=(_0x528b20,_0x11cb09)=>(_0x341ce8,_0x4a653e)=>_0x11cb09(_0x341ce8,_0x4a653e,_0x528b20);const br=0x12c,Tr=0x64,Rr=()=>{let _0x2412bb=[],_0x68f1ce=!0x1;return _0x2c3265=>{_0x2412bb['push'](_0x2c3265),_0x68f1ce||(_0x68f1ce=!0x0,setTimeout(()=>{_0x2412bb['forEach'](_0x8309c0=>_0x8309c0()),_0x2412bb=[],_0x68f1ce=!0x1;}));};};let Rt=class extends _0x5afe1b{constructor(_0x277185,_0x24e2ff,_0x211ee9,_0x33690b,_0x32d4ba,_0x2dcf55,_0x22de91,_0xd8d8fe){const _0x1f31ff=_0x2908d8;super(),l(this,_0x1f31ff(0x282),!0x1),l(this,_0x1f31ff(0x2c3),!0x1),l(this,'_cursorInfo$',new _0x5a6925(new Map())),l(this,'cursorInfo$',this[_0x1f31ff(0x426)][_0x1f31ff(0x165)]()),l(this,'_roomMembers$',new _0x5a6925([])),l(this,_0x1f31ff(0x391),this[_0x1f31ff(0x367)][_0x1f31ff(0x490)](_0x172aba(br))),l(this,_0x1f31ff(0x18c),_0x598329((_0x447604,_0x3b909c)=>{const _0x12d8ff=_0x1f31ff,_0xc7f7f7={'eventID':_0x2ca871[_0x12d8ff(0x2de)],'data':{'unitID':this[_0x12d8ff(0x1ae)],'memberID':this['_session'][_0x12d8ff(0x33e)](),'selection':_0x3f5e75(_0x447604,_0x3b909c[_0x12d8ff(0x2b2)])}};this[_0x12d8ff(0x23c)][_0x12d8ff(0x225)](_0xc7f7f7,this['unitID']);},Tr)),(this[_0x1f31ff(0x1ae)]=_0x277185,this['_session']=_0x24e2ff,this[_0x1f31ff(0x333)]=_0x211ee9,this[_0x1f31ff(0x488)]=_0x33690b,this[_0x1f31ff(0x13f)]=_0x32d4ba,this['_univerInstanceService']=_0x2dcf55,this[_0x1f31ff(0x3fd)]=_0x22de91,this['_refRangeService']=_0xd8d8fe);}get[_0x2908d8(0x18d)](){const _0x1d2871=_0x2908d8;return this['_cursorInfo$'][_0x1d2871(0x29d)]();}get[_0x2908d8(0x432)](){const _0x5ec843=_0x2908d8;return this['_roomMembers$'][_0x5ec843(0x29d)]();}[_0x2908d8(0x1bf)](){const _0x8d3bac=_0x2908d8;super[_0x8d3bac(0x1bf)](),this[_0x8d3bac(0x426)][_0x8d3bac(0x151)](new Map()),this[_0x8d3bac(0x426)][_0x8d3bac(0x2d4)](),this['_roomMembers$'][_0x8d3bac(0x151)]([]),this['_roomMembers$'][_0x8d3bac(0x2d4)]();}['init'](){const _0x29ca65=_0x2908d8;this[_0x29ca65(0x2c3)]||(this['_init']=!0x0,this[_0x29ca65(0x23c)]['sessionStatus$']['pipe'](_0x4f72a2(this['dispose$']))[_0x29ca65(0x298)](_0x4033b9=>{const _0x2b3f1b=_0x29ca65;_0x4033b9===F[_0x2b3f1b(0x285)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x29ca65(0x23c)][_0x29ca65(0x223)][_0x29ca65(0x490)](_0x4f72a2(this[_0x29ca65(0x2ba)]))[_0x29ca65(0x298)](_0x2618b8=>{const _0x1256de=_0x29ca65,_0x34d4fa=_0x2618b8[_0x1256de(0x1d7)];_0x34d4fa===_0x2ca871[_0x1256de(0x2de)]&&this[_0x1256de(0x47e)](_0x2618b8),_0x34d4fa===_0x2ca871[_0x1256de(0x464)]&&this['_onCursorDelete'](_0x2618b8);}),this[_0x29ca65(0x3b8)](),this[_0x29ca65(0x206)](this[_0x29ca65(0x3fd)][_0x29ca65(0x43d)](_0x449c62=>{const _0x5c70a4=_0x29ca65;if(this[_0x5c70a4(0x282)]&&_0x449c62['id']===_0xb83057['id']&&_0x449c62[_0x5c70a4(0x455)][_0x5c70a4(0x498)]===this[_0x5c70a4(0x1ae)]){const _0x57b597=_0x449c62[_0x5c70a4(0x455)];this['_updateLocalCursor'](_0x57b597[_0x5c70a4(0x13d)],_0x57b597[_0x5c70a4(0x28e)][0x0]);}})));}['_onCursorUpdate'](_0x130fda){const _0x4e77b1=_0x2908d8;var _0x1c7c98,_0x116747;const {memberID:_0x38c10d,selection:_0x4e4726}=_0x130fda[_0x4e77b1(0x1ee)],{sheetName:_0x53273f,range:_0x2db23a}=_0x238be7(_0x4e4726),_0x226e56={'name':(_0x116747=(_0x1c7c98=this['_memberService'][_0x4e77b1(0x3e4)](this[_0x4e77b1(0x1ae)],_0x38c10d))==null?void 0x0:_0x1c7c98[_0x4e77b1(0x3b6)])!=null?_0x116747:_0x4e77b1(0x20e),'range':this[_0x4e77b1(0x422)](_0x53273f,_0x2db23a),'sheetID':_0x53273f,'color':this[_0x4e77b1(0x488)]['assignAColorForMemberID'](_0x38c10d),'selection':_0x4e4726},_0x3f8361=this['cursorInfo'];_0x3f8361[_0x4e77b1(0x255)](_0x38c10d,_0x226e56),this['_cursorInfo$'][_0x4e77b1(0x151)](_0x3f8361);}[_0x2908d8(0x1fe)](_0x1d8f1f){const _0x4eb02e=_0x2908d8,{memberID:_0x317d2b}=_0x1d8f1f[_0x4eb02e(0x1ee)],_0x3c89b8=this[_0x4eb02e(0x18d)];_0x3c89b8['delete'](_0x317d2b),this[_0x4eb02e(0x426)][_0x4eb02e(0x151)](_0x3c89b8);}[_0x2908d8(0x422)](_0x2bebfa,_0xfb2d31){const _0x27a5f3=_0x2908d8;var _0x5cae56,_0x54464a;const _0x45401f=(_0x54464a=(_0x5cae56=this[_0x27a5f3(0x2c2)][_0x27a5f3(0x449)](this['unitID']))==null?void 0x0:_0x5cae56[_0x27a5f3(0x3b0)](_0x2bebfa))==null?void 0x0:_0x54464a[_0x27a5f3(0x42a)]();return(_0x45401f==null?void 0x0:_0x45401f['find'](_0x5f1cec=>_0x110525['contains'](_0x5f1cec,_0xfb2d31)))||_0xfb2d31;}[_0x2908d8(0x3b8)](){const _0x112159=_0x2908d8,_0x4294d9=new _0x548484(),_0x491bbf=Rr(),_0x38403b=()=>{const _0x7e7371=_0x1140;_0x4294d9['dispose']();const _0x2ea421=(_0x20ef89,_0x1c72fd,_0x4a21ef,_0x9300f3)=>{const _0x1caeaa=_0x1140;let _0x9248be=[];switch(_0x20ef89['id']){case _0x2d4b29[_0x1caeaa(0x28f)]:{_0x9248be=_0x211fe8(_0x20ef89,_0x9300f3);break;}case _0x2d4b29[_0x1caeaa(0x183)]:{_0x9248be=_0x1bdead(_0x20ef89,_0x9300f3);break;}case _0x2d4b29[_0x1caeaa(0x2f7)]:{_0x9248be=_0x1a5271(_0x20ef89,_0x9300f3);break;}case _0x2d4b29['InsertRangeMoveDownCommandId']:{_0x9248be=_0x3c4ee7(_0x20ef89,_0x9300f3);break;}case _0x2d4b29[_0x1caeaa(0x402)]:{_0x9248be=_0x315c1c(_0x20ef89,_0x9300f3);break;}case _0x2d4b29[_0x1caeaa(0x2da)]:{_0x9248be=_0xcd2977(_0x20ef89,_0x9300f3);break;}case _0x2d4b29[_0x1caeaa(0x407)]:{_0x9248be=_0x2e70c5(_0x20ef89,_0x9300f3);break;}case _0x2d4b29[_0x1caeaa(0x3e7)]:{_0x9248be=_0x43536b(_0x20ef89,_0x9300f3);break;}case _0x2d4b29[_0x1caeaa(0x431)]:{_0x9248be=_0x379c84(_0x20ef89,_0x9300f3);break;}}const _0x482393=_0x309147(_0x9248be,_0x9300f3),_0x5a8991=this['cursorInfo'][_0x1caeaa(0x479)](_0x1c72fd);if(_0x5a8991&&_0x482393){const _0x183579={..._0x5a8991,'range':_0x482393};this[_0x1caeaa(0x18d)]['set'](_0x1c72fd,_0x183579),_0x491bbf(()=>{const _0x51b074=_0x1caeaa,_0x5a2897=this['_refRangeService']['registerRefRange'](_0x482393,_0x5719a9=>(_0x5a2897[_0x51b074(0x1bf)](),_0x2ea421(_0x5719a9,_0x1c72fd,_0x4a21ef,_0x482393)));_0x4294d9[_0x51b074(0x40c)](_0x5a2897);});}return{'redos':[],'undos':[]};};this[_0x7e7371(0x18d)][_0x7e7371(0x212)]((_0x240f30,_0x5d6bd4)=>{const _0x3173a1=_0x7e7371,{range:_0x53d7ab,sheetID:_0x57d93e}=_0x240f30,_0x4c5ea5=this['_refRangeService'][_0x3173a1(0x3e0)](_0x53d7ab,_0x2a8419=>(_0x4c5ea5['dispose'](),_0x2ea421(_0x2a8419,_0x5d6bd4,_0x57d93e,_0x53d7ab)));_0x4294d9[_0x3173a1(0x40c)](_0x4c5ea5);});};this[_0x112159(0x206)](_0x58e78e(this['_cursorInfo$'][_0x112159(0x298)](()=>{_0x38403b();})));}[_0x2908d8(0x36b)](){const _0x14e6d6=_0x2908d8;var _0x1b1579,_0x56754c;if(this[_0x14e6d6(0x282)]=!0x0,((_0x1b1579=this[_0x14e6d6(0x2c2)][_0x14e6d6(0x39a)]())==null?void 0x0:_0x1b1579['getUnitId']())!==this[_0x14e6d6(0x1ae)])return;const _0x4a7b6f=(_0x56754c=this['_injector'][_0x14e6d6(0x479)](_0x1f939b)[_0x14e6d6(0x23b)]())==null?void 0x0:_0x56754c[0x0],_0x8e7ac0=this[_0x14e6d6(0x2c2)][_0x14e6d6(0x34b)](_0x50520e[_0x14e6d6(0x37d)])[_0x14e6d6(0x239)]();_0x4a7b6f&&_0x8e7ac0&&this[_0x14e6d6(0x18c)](_0x8e7ac0[_0x14e6d6(0x348)](),_0x4a7b6f);}['_toggleOffline'](){const _0x5e00bb=_0x2908d8;this[_0x5e00bb(0x282)]=!0x1;}};Rt=Cr([de(0x2,_0x573d4d(_0x100ac5)),de(0x3,_0x573d4d(Bt)),de(0x4,_0x573d4d(oe)),de(0x5,_0x52e604),de(0x6,_0x2bd668),de(0x7,_0x573d4d(_0x3afbc0))],Rt);var Or=Object[_0x2908d8(0x1f6)],Dr=Object[_0x2908d8(0x17b)],wr=(_0x376822,_0x3d41e7,_0x149c62,_0x552352)=>{const _0x38c1ce=_0x2908d8;for(var _0x292412=_0x552352>0x1?void 0x0:_0x552352?Dr(_0x3d41e7,_0x149c62):_0x3d41e7,_0x5937b6=_0x376822[_0x38c1ce(0x478)]-0x1,_0xe914c6;_0x5937b6>=0x0;_0x5937b6--)(_0xe914c6=_0x376822[_0x5937b6])&&(_0x292412=(_0x552352?_0xe914c6(_0x3d41e7,_0x149c62,_0x292412):_0xe914c6(_0x292412))||_0x292412);return _0x552352&&_0x292412&&Or(_0x3d41e7,_0x149c62,_0x292412),_0x292412;},se=(_0x8c3fe8,_0x2bb787)=>(_0x43e1d6,_0x4bdc07)=>_0x2bb787(_0x43e1d6,_0x4bdc07,_0x8c3fe8);const Pr=0x12c,Nr=0x64;let Ot=class extends _0x5afe1b{constructor(_0x3242a5,_0x22345c,_0x471a2d,_0x42a793,_0x492bbe,_0x4dcdc6,_0x42d83c,_0x59ffc0,_0x59fad7){const _0x4de87d=_0x2908d8;super(),l(this,_0x4de87d(0x282),!0x1),l(this,'_init',!0x1),l(this,_0x4de87d(0x426),new _0x5a6925(new Map())),l(this,_0x4de87d(0x404),this['_cursorInfo$']['asObservable']()),l(this,_0x4de87d(0x367),new _0x5a6925([])),l(this,_0x4de87d(0x391),this[_0x4de87d(0x367)][_0x4de87d(0x490)](_0x172aba(Pr))),l(this,'_updateLocalCursor',_0x598329(_0x1ee170=>{const _0xc25fcb=_0x4de87d,_0x34e4cb={'eventID':_0x2ca871['UPDATE_CURSOR'],'data':{'unitID':this[_0xc25fcb(0x1ae)],'memberID':this[_0xc25fcb(0x23c)]['getMemberID'](),'selection':js(_0x1ee170)}};this[_0xc25fcb(0x23c)][_0xc25fcb(0x225)](_0x34e4cb,this[_0xc25fcb(0x1ae)]);},Nr)),(this[_0x4de87d(0x1ae)]=_0x3242a5,this['_session']=_0x22345c,this['_injector']=_0x471a2d,this[_0x4de87d(0x488)]=_0x42a793,this['_memberService']=_0x492bbe,this[_0x4de87d(0x3ec)]=_0x4dcdc6,this[_0x4de87d(0x389)]=_0x42d83c,this['_univerInstanceService']=_0x59ffc0,this[_0x4de87d(0x3fd)]=_0x59fad7);}get[_0x2908d8(0x18d)](){const _0x90a06c=_0x2908d8;return this[_0x90a06c(0x426)][_0x90a06c(0x29d)]();}get[_0x2908d8(0x432)](){const _0x8c18ab=_0x2908d8;return this[_0x8c18ab(0x367)][_0x8c18ab(0x29d)]();}[_0x2908d8(0x1bf)](){const _0x1ec64f=_0x2908d8;super['dispose'](),this[_0x1ec64f(0x426)][_0x1ec64f(0x151)](new Map()),this[_0x1ec64f(0x426)][_0x1ec64f(0x2d4)](),this[_0x1ec64f(0x367)][_0x1ec64f(0x151)]([]),this['_roomMembers$'][_0x1ec64f(0x2d4)]();}[_0x2908d8(0x392)](){const _0x5b3eee=_0x2908d8;this[_0x5b3eee(0x2c3)]||(this[_0x5b3eee(0x2c3)]=!0x0,this['_session'][_0x5b3eee(0x278)][_0x5b3eee(0x490)](_0x4f72a2(this['dispose$']))[_0x5b3eee(0x298)](_0x46a90d=>{const _0x57eac6=_0x5b3eee;_0x46a90d===F[_0x57eac6(0x285)]?this[_0x57eac6(0x36b)]():this[_0x57eac6(0x49f)]();}),this[_0x5b3eee(0x23c)][_0x5b3eee(0x223)]['pipe'](_0x4f72a2(this[_0x5b3eee(0x2ba)]))[_0x5b3eee(0x298)](_0x1ce7ab=>{const _0x368e23=_0x5b3eee,_0xa354a4=_0x1ce7ab[_0x368e23(0x1d7)];_0xa354a4===_0x2ca871[_0x368e23(0x2de)]&&this[_0x368e23(0x47e)](_0x1ce7ab),_0xa354a4===_0x2ca871[_0x368e23(0x464)]&&this[_0x368e23(0x1fe)](_0x1ce7ab);}),this['disposeWithMe'](this[_0x5b3eee(0x3fd)]['onCommandExecuted'](_0x4dd4c5=>{const _0x1ec211=_0x5b3eee,_0x3adf3c=_0x4dd4c5[_0x1ec211(0x455)];_0x3adf3c!=null&&this[_0x1ec211(0x282)]&&_0x4dd4c5['id']===_0xd5e081['id']&&_0x3adf3c[_0x1ec211(0x498)]===this[_0x1ec211(0x1ae)]&&_0x3adf3c[_0x1ec211(0x2a0)]===!0x1&&this['_updateLocalCursor'](_0x3adf3c[_0x1ec211(0x21f)]);})),this[_0x5b3eee(0x3ec)][_0x5b3eee(0x473)]['pipe'](_0x4f72a2(this[_0x5b3eee(0x2ba)]))[_0x5b3eee(0x298)](_0x24a9ce=>{const _0x17682b=_0x5b3eee;if((_0x24a9ce==null?void 0x0:_0x24a9ce['unitID'])!==this[_0x17682b(0x1ae)])return;const _0x1b28dc={'eventID':_0x2ca871[_0x17682b(0x2de)],'data':_0x24a9ce};this['_onCursorUpdate'](_0x1b28dc);}),this['disposeWithMe'](this[_0x5b3eee(0x3fd)][_0x5b3eee(0x43d)](_0x3fc07a=>{const _0x1c8eb8=_0x5b3eee;if(_0x3fc07a[_0x1c8eb8(0x455)]==null)return;const _0xddef00=_0x3fc07a[_0x1c8eb8(0x455)];if(_0x3fc07a['id']!==_0x13ef0c['id']||_0xddef00[_0x1c8eb8(0x498)]!==this[_0x1c8eb8(0x1ae)])return;const _0x396d23={'id':_0x1c8eb8(0x345),'params':_0xddef00},_0x370420=this[_0x1c8eb8(0x18d)];for(const [_0x3cca43,_0x15586c]of _0x370420){const _0x1e805f={'id':_0x1c8eb8(0x345),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x15586c['ranges']}},_0x559301=this[_0x1c8eb8(0x389)][_0x1c8eb8(0x2bf)](_0x396d23,_0x1e805f,!0x1);if(_0x18c8e5(_0x559301))throw _0x559301['error'];_0x370420[_0x1c8eb8(0x255)](_0x3cca43,{..._0x15586c,'ranges':_0x559301[_0x1c8eb8(0x447)][_0x1c8eb8(0x455)]['textRanges']});}queueMicrotask(()=>{const _0x139360=_0x1c8eb8;this[_0x139360(0x426)]['next'](_0x370420);});})));}[_0x2908d8(0x47e)](_0x4cc11c){const _0x222815=_0x2908d8;var _0x240103,_0x4c76a0;const {memberID:_0x46692f,selection:_0x311725}=_0x4cc11c[_0x222815(0x1ee)],_0xc95019=or(_0x311725),_0x1a21d8=(_0x4c76a0=(_0x240103=this[_0x222815(0x13f)]['getMember'](this[_0x222815(0x1ae)],_0x46692f))==null?void 0x0:_0x240103['name'])!=null?_0x4c76a0:_0x222815(0x20e),_0x1889e0={'color':this[_0x222815(0x488)][_0x222815(0x458)](_0x46692f),'name':_0x1a21d8,'ranges':_0xc95019},_0x359907=this[_0x222815(0x18d)];_0x359907['set'](_0x46692f,_0x1889e0),this[_0x222815(0x426)][_0x222815(0x151)](_0x359907);}[_0x2908d8(0x1fe)](_0x24a483){const _0x5ad5e3=_0x2908d8,{memberID:_0x5a071a}=_0x24a483[_0x5ad5e3(0x1ee)],_0x2019b3=this[_0x5ad5e3(0x18d)];_0x2019b3['delete'](_0x5a071a),this['_cursorInfo$'][_0x5ad5e3(0x151)](_0x2019b3);}[_0x2908d8(0x36b)](){const _0x2c5e63=_0x2908d8;var _0x2946c8;if(this['_online']=!0x0,((_0x2946c8=this['_univerInstanceService'][_0x2c5e63(0x39a)]())==null?void 0x0:_0x2946c8[_0x2c5e63(0x18b)]())!==this['unitID'])return;const _0x4352c3=this[_0x2c5e63(0x333)][_0x2c5e63(0x479)](_0x459ea4)[_0x2c5e63(0x13b)](),_0x4772fc=_0x4352c3==null?void 0x0:_0x4352c3[_0x2c5e63(0x267)](_0x2100d1);Array[_0x2c5e63(0x3c2)](_0x4772fc)&&_0x4772fc[_0x2c5e63(0x478)]>0x0&&this['_updateLocalCursor'](_0x4772fc);}[_0x2908d8(0x49f)](){const _0x177553=_0x2908d8;this[_0x177553(0x282)]=!0x1;}};Ot=wr([se(0x2,_0x573d4d(_0x100ac5)),se(0x3,_0x573d4d(Bt)),se(0x4,_0x573d4d(oe)),se(0x5,_0x573d4d(kt)),se(0x6,_0x35595c),se(0x7,_0x52e604),se(0x8,_0x2bd668)],Ot);var yr=Object[_0x2908d8(0x1f6)],Mr=Object[_0x2908d8(0x17b)],Ar=(_0x4a7bfd,_0x3617f7,_0x2e12de,_0x45117e)=>{const _0x1f84e0=_0x2908d8;for(var _0x310548=_0x45117e>0x1?void 0x0:_0x45117e?Mr(_0x3617f7,_0x2e12de):_0x3617f7,_0x261aa5=_0x4a7bfd[_0x1f84e0(0x478)]-0x1,_0x2508a5;_0x261aa5>=0x0;_0x261aa5--)(_0x2508a5=_0x4a7bfd[_0x261aa5])&&(_0x310548=(_0x45117e?_0x2508a5(_0x3617f7,_0x2e12de,_0x310548):_0x2508a5(_0x310548))||_0x310548);return _0x45117e&&_0x310548&&yr(_0x3617f7,_0x2e12de,_0x310548),_0x310548;},_t=(_0xb1a7ec,_0x4920e7)=>(_0x12f2f3,_0x555683)=>_0x4920e7(_0x12f2f3,_0x555683,_0xb1a7ec);let fe=class extends _0x5afe1b{constructor(_0x220853,_0x3f200f,_0x52d91d){const _0x143947=_0x2908d8;super(),l(this,_0x143947(0x1cc),new Map()),l(this,_0x143947(0x1c1),new _0x59e98b()),(this[_0x143947(0x2c2)]=_0x220853,this[_0x143947(0x333)]=_0x3f200f,this[_0x143947(0x1a5)]=_0x52d91d,this[_0x143947(0x2c3)]());}['dispose'](){const _0x164455=_0x2908d8;super[_0x164455(0x1bf)](),this[_0x164455(0x1c1)][_0x164455(0x2d4)](),this[_0x164455(0x1cc)][_0x164455(0x212)](_0x1b6fd9=>_0x1b6fd9[_0x164455(0x1bf)]());}[_0x2908d8(0x44e)](_0x140fb8){const _0x5785e4=_0x2908d8;return this[_0x5785e4(0x1cc)][_0x5785e4(0x25a)](_0x140fb8)?this[_0x5785e4(0x1cc)][_0x5785e4(0x479)](_0x140fb8)[_0x5785e4(0x404)]:this[_0x5785e4(0x1c1)][_0x5785e4(0x490)](_0x230e40(_0x27c816=>_0x27c816[_0x5785e4(0x1ae)]===_0x140fb8),_0x1d335(_0x518f34=>_0x518f34[_0x5785e4(0x404)]));}[_0x2908d8(0x2c3)](){const _0x5ccd94=_0x2908d8;this[_0x5ccd94(0x2c2)][_0x5ccd94(0x1fc)](_0x50520e[_0x5ccd94(0x37d)])[_0x5ccd94(0x490)](_0x4f72a2(this['dispose$']))[_0x5ccd94(0x298)](async _0x189c27=>{const _0x13713e=_0x5ccd94,_0x15152a=_0x189c27[_0x13713e(0x18b)](),_0x2dca46=await this[_0x13713e(0x40e)](_0x15152a);this[_0x13713e(0x1c1)][_0x13713e(0x151)](_0x2dca46),this[_0x13713e(0x1cc)][_0x13713e(0x255)](_0x15152a,_0x2dca46);}),this['_univerInstanceService'][_0x5ccd94(0x1fc)](_0x50520e['UNIVER_DOC'])[_0x5ccd94(0x490)](_0x4f72a2(this[_0x5ccd94(0x2ba)]))[_0x5ccd94(0x490)](_0x230e40(_0x45e3fc=>!_0x45e3fc['getUnitId']()[_0x5ccd94(0x42e)]('__')))[_0x5ccd94(0x298)](async _0x94e06f=>{const _0x133c18=_0x5ccd94,_0xcb1582=_0x94e06f[_0x133c18(0x18b)](),_0x11f603=await this[_0x133c18(0x460)](_0xcb1582);this[_0x133c18(0x1c1)]['next'](_0x11f603),this[_0x133c18(0x1cc)]['set'](_0xcb1582,_0x11f603);}),_0x52a416(this[_0x5ccd94(0x2c2)][_0x5ccd94(0x46a)](_0x50520e[_0x5ccd94(0x461)]),this['_univerInstanceService'][_0x5ccd94(0x46a)](_0x50520e['UNIVER_SHEET']))[_0x5ccd94(0x490)](_0x4f72a2(this[_0x5ccd94(0x2ba)]))[_0x5ccd94(0x298)](_0x293bd9=>{const _0x26504d=_0x5ccd94,_0x104623=_0x293bd9['getUnitId'](),_0x2eefc3=this['_entities'][_0x26504d(0x479)](_0x104623);_0x2eefc3&&(_0x2eefc3['dispose'](),this['_entities']['delete'](_0x104623));});}async[_0x2908d8(0x40e)](_0x55eec1){const _0x3f603a=_0x2908d8,_0x28298e=await this[_0x3f603a(0x1a5)][_0x3f603a(0x325)](_0x55eec1),_0x3d41f4=this['_injector'][_0x3f603a(0x386)](Rt,_0x55eec1,_0x28298e);return _0x3d41f4['init'](),_0x3d41f4;}async[_0x2908d8(0x460)](_0x2598f1){const _0x13321c=_0x2908d8,_0x5cc602=await this[_0x13321c(0x1a5)]['requireSession'](_0x2598f1),_0x5aeab6=this[_0x13321c(0x333)][_0x13321c(0x386)](Ot,_0x2598f1,_0x5cc602);return _0x5aeab6[_0x13321c(0x392)](),_0x5aeab6;}};fe=Ar([_0x1e52da(_0x3ebf67[_0x2908d8(0x135)],fe),_t(0x0,_0x52e604),_t(0x1,_0x573d4d(_0x100ac5)),_t(0x2,_0x573d4d(ae))],fe);const Ue=0x14,_s=0xc8,ut=0x4,Ur=0x5;function Lr(_0x216133,_0x23f60a){const _0x543a52=_0x2908d8;let {radius:_0x4d86a4,width:_0x5e6155,height:_0x2c154c}=_0x23f60a;_0x4d86a4=_0x4d86a4!=null?_0x4d86a4:0x0,_0x5e6155=_0x5e6155!=null?_0x5e6155:0x1e,_0x2c154c=_0x2c154c!=null?_0x2c154c:0x1e;let _0x3161c1=0x0,_0x4d3781=0x0,_0x1bd665=0x0;_0x3161c1=_0x4d3781=_0x1bd665=Math['min'](_0x4d86a4,_0x5e6155/0x2,_0x2c154c/0x2),_0x216133[_0x543a52(0x1f3)](),_0x216133['moveTo'](_0x3161c1,0x0),_0x216133[_0x543a52(0x2d9)](_0x5e6155-_0x4d3781,0x0),_0x216133[_0x543a52(0x2ad)](_0x5e6155-_0x4d3781,_0x4d3781,_0x4d3781,Math['PI']*0x3/0x2,0x0,!0x1),_0x216133[_0x543a52(0x2d9)](_0x5e6155,_0x2c154c-_0x1bd665),_0x216133[_0x543a52(0x2ad)](_0x5e6155-_0x1bd665,_0x2c154c-_0x1bd665,_0x1bd665,0x0,Math['PI']/0x2,!0x1),_0x216133[_0x543a52(0x2d9)](0x0,_0x2c154c),_0x216133[_0x543a52(0x2d9)](0x0,_0x3161c1),_0x216133[_0x543a52(0x2ad)](_0x3161c1,_0x3161c1,_0x3161c1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x216133[_0x543a52(0x474)](),_0x23f60a[_0x543a52(0x2f9)]&&(_0x216133[_0x543a52(0x3b1)](),_0x216133[_0x543a52(0x3c3)]=_0x23f60a['fill'],_0x23f60a['fillRule']==='evenodd'?_0x216133[_0x543a52(0x2f9)](_0x543a52(0x1d9)):_0x216133['fill'](),_0x216133[_0x543a52(0x40a)]());}class nt extends _0x3bcf23{constructor(_0x4e6dd9,_0x14240a){const _0x5d9b78=_0x2908d8;super(_0x4e6dd9,_0x14240a),l(this,_0x5d9b78(0x18f)),l(this,_0x5d9b78(0x200)),(this[_0x5d9b78(0x18f)]=_0x14240a==null?void 0x0:_0x14240a[_0x5d9b78(0x18f)],this['text']=_0x14240a==null?void 0x0:_0x14240a[_0x5d9b78(0x200)]);}static[_0x2908d8(0x24a)](_0xe34a99,_0x8716bd){const _0x509b43=_0x2908d8,{text:_0x387de6,color:_0x5d7a09}=_0x8716bd;_0xe34a99['save'](),_0xe34a99['font']=_0x509b43(0x1a4);const _0x191ebe=_0xe34a99[_0x509b43(0x176)](_0x387de6)[_0x509b43(0x162)],_0x40635d=Math[_0x509b43(0x468)](_0x191ebe+0x2*ut,_s);Lr(_0xe34a99,{'height':Ue,'radius':0x4,'width':_0x40635d,'fill':_0x5d7a09,'evented':!0x1}),_0xe34a99[_0x509b43(0x3c3)]=_0x509b43(0x1e2);const _0x17320c=ut,_0x554cdd=Ue-Ur,_0x4aa3a8=_s-0x2*ut;if(_0x191ebe>_0x4aa3a8){let _0x1d87b6='',_0x2c8307=0x0;for(const _0x15b0fc of _0x387de6){const _0x334e50=_0xe34a99['measureText'](_0x15b0fc)['width'];if(_0x2c8307+_0x334e50<=_0x4aa3a8-_0xe34a99[_0x509b43(0x176)](_0x509b43(0x398))['width'])_0x1d87b6+=_0x15b0fc,_0x2c8307+=_0x334e50;else{_0x1d87b6+=_0x509b43(0x398);break;}}_0xe34a99[_0x509b43(0x3af)](_0x1d87b6,_0x17320c,_0x554cdd);}else _0xe34a99[_0x509b43(0x3af)](_0x387de6,_0x17320c,_0x554cdd);_0xe34a99['restore']();}[_0x2908d8(0x352)](_0xdfd6f1){nt['drawWith'](_0xdfd6f1,this);}}const $r=0x1,jr=1.5;class xr extends _0x3bcf23{constructor(_0x5d3115,_0x15f1a2){const _0x54b727=_0x2908d8;super(_0x5d3115,_0x15f1a2),l(this,_0x54b727(0x237)),l(this,_0x54b727(0x37c),!0x1),l(this,_0x54b727(0x203)),l(this,_0x54b727(0x35a),''),l(this,_0x54b727(0x13e),_0x54b727(0x221)),l(this,_0x54b727(0x1ef)),(_0x15f1a2&&this['setShapeProps'](_0x15f1a2),this[_0x54b727(0x438)][_0x54b727(0x390)](()=>this[_0x54b727(0x13c)]({'hovered':!0x0})),this[_0x54b727(0x296)][_0x54b727(0x390)](()=>this[_0x54b727(0x13c)]({'hovered':!0x1})));}[_0x2908d8(0x13c)](_0x53fb6e){const _0x39318f=_0x2908d8;var _0x2de0f7,_0x8ccb2a,_0x55e7e8,_0x49d6ad,_0x32f88f,_0x1c5753;this[_0x39318f(0x237)]=(_0x2de0f7=_0x53fb6e[_0x39318f(0x18f)])!=null?_0x2de0f7:this[_0x39318f(0x237)],this[_0x39318f(0x37c)]=(_0x8ccb2a=_0x53fb6e[_0x39318f(0x16d)])!=null?_0x8ccb2a:this[_0x39318f(0x37c)],this[_0x39318f(0x203)]=(_0x55e7e8=_0x53fb6e[_0x39318f(0x2b2)])!=null?_0x55e7e8:this[_0x39318f(0x203)],this[_0x39318f(0x35a)]=(_0x49d6ad=_0x53fb6e[_0x39318f(0x3b6)])!=null?_0x49d6ad:this['_name'],this[_0x39318f(0x13e)]=(_0x32f88f=_0x53fb6e['labelPosition'])!=null?_0x32f88f:this[_0x39318f(0x13e)],this['_backgroundColor']=(_0x1c5753=_0x53fb6e[_0x39318f(0x3f9)])!=null?_0x1c5753:this[_0x39318f(0x1ef)],this[_0x39318f(0x388)]({'width':_0x53fb6e[_0x39318f(0x162)],'height':_0x53fb6e[_0x39318f(0x2d6)]});}['onMouseMove'](_0x298b75){const _0x3c70cd=_0x2908d8,{row:_0x1b7c3c,column:_0x30edc4}=_0x298b75;if(_0x1b7c3c>=this['_range'][_0x3c70cd(0x216)]&&_0x1b7c3c<=this['_range'][_0x3c70cd(0x23d)]&&_0x30edc4>=this['_range'][_0x3c70cd(0x49b)]&&_0x30edc4<=this[_0x3c70cd(0x203)]['endColumn']){this[_0x3c70cd(0x13c)]({'hovered':!0x0});return;}this[_0x3c70cd(0x13c)]({'hovered':!0x1});}[_0x2908d8(0x3cc)](_0x38720d){return!0x1;}[_0x2908d8(0x352)](_0x185f8f){const _0x5ac12c=_0x2908d8;_0x45456d[_0x5ac12c(0x24a)](_0x185f8f,{'width':this[_0x5ac12c(0x162)],'height':this[_0x5ac12c(0x2d6)],'strokeWidth':jr,'stroke':this[_0x5ac12c(0x237)],'evented':!0x1,'fill':this[_0x5ac12c(0x1ef)]}),this['_hovered']&&(_0x185f8f[_0x5ac12c(0x3b1)](),_0x185f8f[_0x5ac12c(0x1d6)](0x1,0x0,0x0,0x1,this[_0x5ac12c(0x162)],this['_labelPosition']===_0x5ac12c(0x26b)?0x0:-Ue),nt[_0x5ac12c(0x24a)](_0x185f8f,{'text':this['_name'],'color':this[_0x5ac12c(0x237)]}),_0x185f8f[_0x5ac12c(0x40a)]());}}var Hr=Object[_0x2908d8(0x1f6)],kr=Object['getOwnPropertyDescriptor'],Vr=(_0x2a1f28,_0xbbaddb,_0x300697,_0x2fab7e)=>{const _0x1be4cd=_0x2908d8;for(var _0x2d6ad9=_0x2fab7e>0x1?void 0x0:_0x2fab7e?kr(_0xbbaddb,_0x300697):_0xbbaddb,_0x2c3f5e=_0x2a1f28[_0x1be4cd(0x478)]-0x1,_0x230994;_0x2c3f5e>=0x0;_0x2c3f5e--)(_0x230994=_0x2a1f28[_0x2c3f5e])&&(_0x2d6ad9=(_0x2fab7e?_0x230994(_0xbbaddb,_0x300697,_0x2d6ad9):_0x230994(_0x2d6ad9))||_0x2d6ad9);return _0x2fab7e&&_0x2d6ad9&&Hr(_0xbbaddb,_0x300697,_0x2d6ad9),_0x2d6ad9;},dt=(_0x1fb4dc,_0x5cffc0)=>(_0x48865b,_0x53cb3f)=>_0x5cffc0(_0x48865b,_0x53cb3f,_0x1fb4dc);const Br=0x1389;let Dt=class extends _0x5afe1b{constructor(_0x4cd618,_0x378ee3,_0x31c849,_0x52d2a7){const _0x3ced10=_0x2908d8;super(),l(this,_0x3ced10(0x304),new Set()),l(this,_0x3ced10(0x226),null),(this['_context']=_0x4cd618,this['_sheetSkeletonManagerService']=_0x378ee3,this[_0x3ced10(0x1c7)]=_0x31c849,this[_0x3ced10(0x3f7)]=_0x52d2a7,this['_init']());}[_0x2908d8(0x2c3)](){const _0x527845=_0x2908d8;this[_0x527845(0x39b)][_0x527845(0x3b4)][_0x527845(0x490)](_0x5953cf(this[_0x527845(0x2ba)]),_0x19a6e7(_0x1bc3b6=>{const _0x191102=_0x527845;if(_0x1bc3b6){const _0x46bb3c=_0x1bc3b6[_0x191102(0x49a)];return _0x26b443(this[_0x191102(0x1c7)][_0x191102(0x44e)](this[_0x191102(0x258)][_0x191102(0x498)]),this[_0x191102(0x3f7)][_0x191102(0x2a2)])[_0x191102(0x490)](_0x391b01(([_0x19d93f,_0x4f3787])=>{const _0x11b652=new Map();return _0x19d93f['forEach']((_0x15af2c,_0x2f2fe5)=>{const _0x45d642=_0x1140;if(_0x15af2c['sheetID']===_0x46bb3c){const _0x90b16e={..._0x15af2c};_0x90b16e[_0x45d642(0x18f)]=_0x4f3787[_0x15af2c[_0x45d642(0x18f)]],_0x11b652['set'](_0x2f2fe5,_0x90b16e);}}),{'skeleton':_0x1bc3b6,'cursors':_0x11b652};}));}return _0xc0017a({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1fa0f0,cursors:_0x42e384})=>{const _0x54641c=_0x527845;this[_0x54641c(0x330)](),_0x1fa0f0&&this[_0x54641c(0x263)](_0x1fa0f0,_0x42e384);}),this[_0x527845(0x39b)][_0x527845(0x3b4)]['subscribe'](_0x30785f=>{const _0x223a4f=_0x527845;if(_0x30785f==null)return;const {skeleton:_0x32652d}=_0x30785f,{scene:_0x576b89}=this[_0x223a4f(0x258)];_0x576b89[_0x223a4f(0x211)][_0x223a4f(0x390)](_0x598329(_0x2562db=>{const _0x527894=_0x223a4f;var _0x2a4850,_0x179542;const {offsetX:_0x35ff60,offsetY:_0x3d6c7b}=_0x2562db,{x:_0x68048e,y:_0x184763}=_0x576b89[_0x527894(0x191)](_0x29234d[_0x527894(0x1b5)]([_0x35ff60,_0x3d6c7b])),{scaleX:_0x1abd93,scaleY:_0x38ba79}=_0x576b89['getAncestorScale'](),_0x25cbfc=_0x576b89['getViewport'](_0x401402[_0x527894(0x196)]),_0x342470=_0x576b89['getVpScrollXYInfoByPosToVp'](_0x29234d[_0x527894(0x1b5)]([_0x68048e,_0x184763]),_0x25cbfc),_0x58673c=_0x32652d['getCellPositionByOffset'](_0x35ff60,_0x3d6c7b,_0x1abd93,_0x38ba79,_0x342470);((_0x2a4850=this[_0x527894(0x226)])==null?void 0x0:_0x2a4850[_0x527894(0x29c)])===_0x58673c[_0x527894(0x29c)]&&((_0x179542=this[_0x527894(0x226)])==null?void 0x0:_0x179542[_0x527894(0x268)])===_0x58673c[_0x527894(0x268)]||this[_0x527894(0x304)][_0x527894(0x212)](_0x10a32e=>{const _0x461e68=_0x527894;_0x10a32e[_0x461e68(0x32a)](_0x58673c);});},0x64));});}[_0x2908d8(0x263)](_0x5cc9bb,_0x19209e){const _0x16575b=_0x2908d8;var _0x259459;const _0x59244c=(_0x259459=this[_0x16575b(0x39b)][_0x16575b(0x2c6)]())==null?void 0x0:_0x259459[_0x16575b(0x412)];if(!_0x59244c)return;const _0x203104=this[_0x16575b(0x317)]();if(!_0x203104)return;this['_cursors'][_0x16575b(0x212)](_0x47fd78=>{const _0x39b896=_0x16575b;_0x47fd78[_0x39b896(0x43e)]();});const {scene:_0x3c1801}=_0x203104,_0x526f83=Fr(Array['from'](_0x19209e['values']()))[_0x16575b(0x267)](_0x29ba5a=>{const _0x535847=_0x16575b,{color:_0x407bb7,range:_0x463c75,name:_0x2e14aa,selection:_0x62a502,sheetID:_0x39887d}=_0x29ba5a,{startColumn:_0x34436a,startRow:_0x44a8e8,endColumn:_0x4c6eb1,endRow:_0xe41af3}=_0x463c75,_0x43fbf9=_0x5707a5(_0x44a8e8,_0x34436a,_0x3c1801,_0x59244c),_0x4e238f=_0x5707a5(_0xe41af3,_0x4c6eb1,_0x3c1801,_0x59244c),{columnHeaderHeightAndMarginTop:_0x3202c4}=_0x59244c,{startX:_0x1550aa,startY:_0x5b2713}=_0x43fbf9,{endX:_0x4b699f,endY:_0x29f5ff}=_0x4e238f,_0x5e5cd8=_0x4b699f-_0x1550aa,_0x593d46=_0x29f5ff-_0x5b2713,_0x7c0a70={'labelPosition':_0x5b2713-_0x3202c4>=Ue?_0x535847(0x221):_0x535847(0x26b),'sheetID':_0x39887d,'range':_0x463c75,'color':_0x407bb7,'name':_0x2e14aa,'selection':_0x62a502,'left':_0x1550aa,'top':_0x5b2713,'width':_0x5e5cd8,'height':_0x593d46,'evented':!0x1,'zIndex':Br};return new xr(_0x2e14aa,_0x7c0a70);});_0x3c1801[_0x16575b(0x29e)](_0x526f83,$r),this[_0x16575b(0x304)]=new Set(_0x526f83);}[_0x2908d8(0x330)](){const _0x12b5b6=_0x2908d8;var _0x4f38fe;(_0x4f38fe=this[_0x12b5b6(0x304)])==null||_0x4f38fe['forEach'](_0x13c2b5=>_0x13c2b5[_0x12b5b6(0x1bf)]());}['_getSheetObject'](){const _0x22a02c=_0x2908d8;return _0x4ce2e8(this[_0x22a02c(0x258)][_0x22a02c(0x475)],this['_context']);}};Dt=Vr([dt(0x1,_0x573d4d(_0x4e74c5)),dt(0x2,_0x573d4d(fe)),dt(0x3,_0x573d4d(_0x1e29a1))],Dt);function Fr(_0x1c200d){const _0x13e4d6=_0x2908d8,_0x38b2c7=new Map();return _0x1c200d[_0x13e4d6(0x212)](_0xe1e31a=>{const _0x324e93=_0x13e4d6;if(_0x38b2c7[_0x324e93(0x25a)](_0xe1e31a['selection'])){const _0x475d27=_0x38b2c7[_0x324e93(0x479)](_0xe1e31a[_0x324e93(0x281)]);_0x475d27[_0x324e93(0x3b6)]+=',\x20'+_0xe1e31a[_0x324e93(0x3b6)];}else _0x38b2c7['set'](_0xe1e31a['selection'],_0xe1e31a);}),Array[_0x13e4d6(0x2e4)](_0x38b2c7[_0x13e4d6(0x3ca)]());}var y=function(){const _0x59297f=_0x2908d8;return y=Object[_0x59297f(0x2a1)]||function(_0x413523){const _0x289af8=_0x59297f;for(var _0x401615,_0x463a71=0x1,_0x5d5ef6=arguments[_0x289af8(0x478)];_0x463a71<_0x5d5ef6;_0x463a71++){_0x401615=arguments[_0x463a71];for(var _0x471332 in _0x401615)Object[_0x289af8(0x408)][_0x289af8(0x1f4)][_0x289af8(0x189)](_0x401615,_0x471332)&&(_0x413523[_0x471332]=_0x401615[_0x471332]);}return _0x413523;},y[_0x59297f(0x2a9)](this,arguments);},Wr=function(_0x1ed31d,_0x586816){const _0x523746=_0x2908d8;var _0xb9404e={};for(var _0x358d3a in _0x1ed31d)Object['prototype'][_0x523746(0x1f4)][_0x523746(0x189)](_0x1ed31d,_0x358d3a)&&_0x586816[_0x523746(0x1ec)](_0x358d3a)<0x0&&(_0xb9404e[_0x358d3a]=_0x1ed31d[_0x358d3a]);if(_0x1ed31d!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x310602=0x0,_0x358d3a=Object[_0x523746(0x2b3)](_0x1ed31d);_0x310602<_0x358d3a[_0x523746(0x478)];_0x310602++)_0x586816[_0x523746(0x1ec)](_0x358d3a[_0x310602])<0x0&&Object['prototype'][_0x523746(0x328)][_0x523746(0x189)](_0x1ed31d,_0x358d3a[_0x310602])&&(_0xb9404e[_0x358d3a[_0x310602]]=_0x1ed31d[_0x358d3a[_0x310602]]);}return _0xb9404e;},Ft=_0x12f5f1(function(_0x253dd5,_0xc7ec6f){const _0x238614=_0x2908d8;var _0x115f05=_0x253dd5[_0x238614(0x354)],_0x302b11=_0x253dd5['id'],_0xcf4bc2=_0x253dd5['className'],_0x11ca2d=_0x253dd5[_0x238614(0x17c)],_0xd4b92=Wr(_0x253dd5,['icon','id',_0x238614(0x20d),_0x238614(0x17c)]),_0x2f95a9=_0x238614(0x2b5)[_0x238614(0x22a)](_0x302b11,'\x20')[_0x238614(0x22a)](_0xcf4bc2||'')[_0x238614(0x253)](),_0x345244=_0x201f53('_'[_0x238614(0x22a)](Kr()));return Hs(_0x115f05,''['concat'](_0x302b11),{'defIds':_0x115f05['defIds'],'idSuffix':_0x345244['current']},y({'ref':_0xc7ec6f,'className':_0x2f95a9},_0xd4b92),_0x11ca2d);});function Hs(_0x97a40d,_0x2bb647,_0x4237fa,_0x4f3e92,_0x2003fe){const _0x301630=_0x2908d8;return _0x1f4991(_0x97a40d[_0x301630(0x3e3)],y(y({'key':_0x2bb647},Gr(_0x97a40d,_0x4237fa,_0x2003fe)),_0x4f3e92),(Yr(_0x97a40d,_0x4237fa)[_0x301630(0x2c4)]||[])[_0x301630(0x267)](function(_0x51566a,_0x3efe76){const _0x53e4fe=_0x301630;return Hs(_0x51566a,''['concat'](_0x2bb647,'-')[_0x53e4fe(0x22a)](_0x97a40d[_0x53e4fe(0x3e3)],'-')[_0x53e4fe(0x22a)](_0x3efe76),_0x4237fa,void 0x0,_0x2003fe);}));}function Gr(_0xe94c55,_0x47e2ec,_0x4d566c){const _0x1ba542=_0x2908d8;var _0x144d52=y({},_0xe94c55[_0x1ba542(0x46f)]);_0x4d566c!=null&&_0x4d566c['colorChannel1']&&_0x144d52[_0x1ba542(0x2f9)]===_0x1ba542(0x1a1)&&(_0x144d52[_0x1ba542(0x2f9)]=_0x4d566c['colorChannel1']);var _0x17ef16=_0x47e2ec[_0x1ba542(0x178)];return!_0x17ef16||_0x17ef16['length']===0x0||(_0xe94c55[_0x1ba542(0x3e3)]===_0x1ba542(0x397)&&_0x144d52[_0x1ba542(0x316)]&&(_0x144d52['xlink:href']=_0x144d52[_0x1ba542(0x316)]+_0x47e2ec[_0x1ba542(0x443)]),Object[_0x1ba542(0x2c0)](_0x144d52)[_0x1ba542(0x212)](function(_0x58f8b1){const _0x51b7a6=_0x1ba542;var _0x4eb9cc=_0x58f8b1[0x0],_0x485a4d=_0x58f8b1[0x1];typeof _0x485a4d==_0x51b7a6(0x301)&&(_0x144d52[_0x4eb9cc]=_0x485a4d[_0x51b7a6(0x327)](/url\(#(.*)\)/,'url(#$1'[_0x51b7a6(0x22a)](_0x47e2ec['idSuffix'],')')));})),_0x144d52;}function Yr(_0x494b2b,_0x5ee32e){const _0x2eb8d3=_0x2908d8;var _0x3477a7,_0x573100=_0x5ee32e[_0x2eb8d3(0x178)];return!_0x573100||_0x573100['length']===0x0?_0x494b2b:_0x494b2b[_0x2eb8d3(0x3e3)]===_0x2eb8d3(0x1ac)&&(!((_0x3477a7=_0x494b2b[_0x2eb8d3(0x2c4)])===null||_0x3477a7===void 0x0)&&_0x3477a7[_0x2eb8d3(0x478)])?y(y({},_0x494b2b),{'children':_0x494b2b[_0x2eb8d3(0x2c4)]['map'](function(_0x2a259f){const _0x1dad6a=_0x2eb8d3;return typeof _0x2a259f[_0x1dad6a(0x46f)]['id']=='string'&&_0x573100&&_0x573100[_0x1dad6a(0x1ec)](_0x2a259f['attrs']['id'])>-0x1?y(y({},_0x2a259f),{'attrs':y(y({},_0x2a259f['attrs']),{'id':_0x2a259f[_0x1dad6a(0x46f)]['id']+_0x5ee32e[_0x1dad6a(0x443)]})}):_0x2a259f;})}):_0x494b2b;}function Kr(){const _0x1f65fa=_0x2908d8;return Math[_0x1f65fa(0x39d)]()[_0x1f65fa(0x2a4)](0x24)['substring'](0x2,0x8);}Ft['displayName']=_0x2908d8(0x307);var Xr={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x2908d8(0x323),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2908d8(0x3d6)},'children':[{'tag':_0x2908d8(0x276),'attrs':{'stroke':_0x2908d8(0x2e0),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x2908d8(0x182),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2908d8(0x15a),'attrs':{'id':_0x2908d8(0x499)},'children':[{'tag':_0x2908d8(0x276),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x2908d8(0x499)]},ks=_0x12f5f1(function(_0x47de1c,_0x2d6a97){const _0x2cd957=_0x2908d8;return _0x1f4991(Ft,Object[_0x2cd957(0x2a1)]({},_0x47de1c,{'id':'off-line-single','ref':_0x2d6a97,'icon':Xr}));});ks[_0x2908d8(0x234)]=_0x2908d8(0x27b);var Jr={'tag':_0x2908d8(0x231),'attrs':{'fill':_0x2908d8(0x385),'viewBox':'0\x200\x2017\x2016','width':_0x2908d8(0x323),'height':_0x2908d8(0x323)},'children':[{'tag':'g','attrs':{'clipPath':_0x2908d8(0x2ef)},'children':[{'tag':_0x2908d8(0x276),'attrs':{'stroke':_0x2908d8(0x2e0),'d':_0x2908d8(0x497),'strokeLinecap':'round','strokeLinejoin':_0x2908d8(0x182),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2908d8(0x179)},'children':[{'tag':_0x2908d8(0x276),'attrs':{'fill':_0x2908d8(0x156),'d':_0x2908d8(0x2aa),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2908d8(0x179)]},Vs=_0x12f5f1(function(_0x2954a0,_0x177451){const _0xafc5d5=_0x2908d8;return _0x1f4991(Ft,Object[_0xafc5d5(0x2a1)]({},_0x2954a0,{'id':'on-line-single','ref':_0x177451,'icon':Jr}));});Vs[_0x2908d8(0x234)]=_0x2908d8(0x2f5);const zr=_0x2908d8(0x3d9),qr='univer-online-status-title',Zr=_0x2908d8(0x3c8),Qr=_0x2908d8(0x262),eo=_0x2908d8(0x406),Oe={'onlineStatusIcon':zr,'onlineStatusTitle':qr,'onlineStatus':Zr,'online':Qr,'offline':eo};function to(_0x5af7bd){const _0x18bd0a=_0x2908d8;switch(_0x5af7bd){case w[_0x18bd0a(0x288)]:return'collabStatus.offline';case w[_0x18bd0a(0x14f)]:return'collabStatus.conflict';case w[_0x18bd0a(0x336)]:return _0x18bd0a(0x430);case w[_0x18bd0a(0x1a9)]:return _0x18bd0a(0x166);case w[_0x18bd0a(0x167)]:case w[_0x18bd0a(0x1ca)]:case w[_0x18bd0a(0x3ee)]:return _0x18bd0a(0x2d0);case w[_0x18bd0a(0x3c9)]:return _0x18bd0a(0x411);}}function so(_0x3ea769){const _0xe9d059=_0x2908d8,{status$:_0x59da28}=_0x3ea769,_0x1b3f3a=_0xbcaa84(_0x59da28,w[_0xe9d059(0x1a9)]),_0x48055e=_0x9429d7(_0x5071b4),_0x3295d5=_0x9429d7(ae),_0x31bf77=_0x1b3f3a!==w[_0xe9d059(0x288)],_0x3d5394=_0x48055e['t'](to(_0x1b3f3a)),_0x53ee80=_0x35bfa9(Oe[_0xe9d059(0x3bc)],{[Oe[_0xe9d059(0x170)]]:_0x31bf77,[Oe[_0xe9d059(0x44a)]]:!_0x31bf77}),_0x52721b=_0x31bf77?_0x333221[_0xe9d059(0x1db)](Vs,null):_0x333221[_0xe9d059(0x1db)](ks,null),_0x34c3c3=_0x4ccb32(()=>{_0x31bf77||_0x3295d5['reconnect']();},[_0x31bf77,_0x3295d5]);function _0x57876a(){const _0x3742c4=_0xe9d059;return _0x333221[_0x3742c4(0x1db)](_0x3742c4(0x3f1),{'className':_0x53ee80,'onClick':_0x34c3c3},_0x333221[_0x3742c4(0x1db)]('div',{'className':Oe[_0x3742c4(0x2d7)]},_0x52721b),_0x333221[_0x3742c4(0x1db)](_0x3742c4(0x3f1),{'className':Oe[_0x3742c4(0x442)]},_0x3d5394));}return _0x31bf77?_0x57876a():_0x333221[_0xe9d059(0x1db)](_0x728f60,{'title':_0x48055e['t'](_0xe9d059(0x485))},_0x57876a());}var io=Object[_0x2908d8(0x1f6)],no=Object[_0x2908d8(0x17b)],ro=(_0x3d069f,_0x4ed1ac,_0xbf6b2c,_0x2ae07b)=>{const _0x357d88=_0x2908d8;for(var _0x4f8509=_0x2ae07b>0x1?void 0x0:_0x2ae07b?no(_0x4ed1ac,_0xbf6b2c):_0x4ed1ac,_0x4c8a5e=_0x3d069f[_0x357d88(0x478)]-0x1,_0xf1dc56;_0x4c8a5e>=0x0;_0x4c8a5e--)(_0xf1dc56=_0x3d069f[_0x4c8a5e])&&(_0x4f8509=(_0x2ae07b?_0xf1dc56(_0x4ed1ac,_0xbf6b2c,_0x4f8509):_0xf1dc56(_0x4f8509))||_0x4f8509);return _0x2ae07b&&_0x4f8509&&io(_0x4ed1ac,_0xbf6b2c,_0x4f8509),_0x4f8509;},ke=(_0x2fa9a6,_0x3a8d23)=>(_0x562b3a,_0x4ea800)=>_0x3a8d23(_0x562b3a,_0x4ea800,_0x2fa9a6);let ye=class extends _0x5d8459{constructor(_0x440e81,_0x1bef1f,_0x36aa3e,_0xdbaf9b){const _0x47476a=_0x2908d8;super(),l(this,_0x47476a(0x1a7),new _0x5a6925(w['NOT_COLLAB'])),(this[_0x47476a(0x2c2)]=_0x440e81,this['_uiPartsService']=_0x1bef1f,this[_0x47476a(0x333)]=_0x36aa3e,this[_0x47476a(0x335)]=_0xdbaf9b,this[_0x47476a(0x2f2)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x125b4c=_0x2908d8;this[_0x125b4c(0x206)](this[_0x125b4c(0x2c2)]['focused$']['pipe'](_0x1d335(()=>{const _0x55e559=_0x125b4c,_0x34b450=this[_0x55e559(0x2c2)][_0x55e559(0x39a)]();return _0x34b450?this[_0x55e559(0x335)]['getCollabEntity$'](_0x34b450[_0x55e559(0x18b)]()):_0xc0017a(null);}),_0x1d335(_0x2a636d=>_0x2a636d?_0x2a636d[_0x125b4c(0x383)]:_0xc0017a(w['NOT_COLLAB'])))[_0x125b4c(0x298)](_0x31d0cc=>{const _0x625279=_0x125b4c;this[_0x625279(0x1a7)][_0x625279(0x151)](_0x31d0cc);}));}[_0x2908d8(0x2f2)](){const _0x45fdc2=_0x2908d8;this['disposeWithMe'](this[_0x45fdc2(0x2e8)][_0x45fdc2(0x3d2)](_0x3aecfb[_0x45fdc2(0x24c)],()=>_0x143ba4(oo({'status$':this['_status$'][_0x45fdc2(0x165)]()}),this[_0x45fdc2(0x333)])));}};ye=ro([ke(0x0,_0x52e604),ke(0x1,_0x5de437),ke(0x2,_0x573d4d(_0x100ac5)),ke(0x3,_0x573d4d(Ae))],ye);function oo(_0x1da582){const {status$:_0x4c92ea}=_0x1da582;return function(){const _0x10d1e1=_0x1140;return _0x333221[_0x10d1e1(0x1db)](so,{'status$':_0x4c92ea});};}const Bs=_0xff730e(_0x2908d8(0x373));var ao=Object[_0x2908d8(0x1f6)],co=Object['getOwnPropertyDescriptor'],ho=(_0x51eb62,_0x3dd456,_0x6b4b79,_0x19005e)=>{const _0x1c4d1b=_0x2908d8;for(var _0x4386f0=_0x19005e>0x1?void 0x0:_0x19005e?co(_0x3dd456,_0x6b4b79):_0x3dd456,_0x4fb522=_0x51eb62[_0x1c4d1b(0x478)]-0x1,_0x4617f3;_0x4fb522>=0x0;_0x4fb522--)(_0x4617f3=_0x51eb62[_0x4fb522])&&(_0x4386f0=(_0x19005e?_0x4617f3(_0x3dd456,_0x6b4b79,_0x4386f0):_0x4617f3(_0x4386f0))||_0x4386f0);return _0x19005e&&_0x4386f0&&ao(_0x3dd456,_0x6b4b79,_0x4386f0),_0x4386f0;},me=(_0x16c153,_0x44e033)=>(_0x3a1922,_0x3b08eb)=>_0x44e033(_0x3a1922,_0x3b08eb,_0x16c153);let We=class extends _0x5afe1b{constructor(_0x276345,_0x1ec114,_0x733146,_0x5d06bd,_0x52c21e,_0x36441d){const _0x5b453a=_0x2908d8;super(),this[_0x5b453a(0x3cb)]=_0x276345,this[_0x5b453a(0x49c)]=_0x1ec114,this[_0x5b453a(0x3fd)]=_0x733146,this[_0x5b453a(0x2fc)]=_0x5d06bd,this[_0x5b453a(0x249)]=_0x52c21e,_0x36441d?_0x36441d==null||_0x36441d[_0x5b453a(0x153)]()[_0x5b453a(0x378)](()=>this['_init']()):(this['_logService'][_0x5b453a(0x2e6)](_0x5b453a(0x254),_0x5b453a(0x2ce)),this[_0x5b453a(0x2c3)]());}async[_0x2908d8(0x2c3)](){const _0x5669fe=_0x2908d8,_0x5d5019=this[_0x5669fe(0x3cb)]['getParam']('unit'),_0x4cf5cf=this[_0x5669fe(0x3cb)][_0x5669fe(0x2a6)](_0x5669fe(0x161));if(!_0x5d5019||!_0x4cf5cf){this[_0x5669fe(0x49c)][_0x5669fe(0x2e6)](_0x5669fe(0x254),_0x5669fe(0x138));return;}switch(Number(_0x4cf5cf)){case x[_0x5669fe(0x37d)]:{const _0xe0545e=await this[_0x5669fe(0x217)](_0x5d5019);this['_setupSubUnitSync'](_0xe0545e);break;}case x[_0x5669fe(0x461)]:{await this[_0x5669fe(0x150)](_0x5d5019);break;}default:{this[_0x5669fe(0x49c)][_0x5669fe(0x2f3)](_0x5669fe(0x254),_0x5669fe(0x1d5));break;}}}async[_0x2908d8(0x1c4)](_0x2ac198){const _0x2fdbcd=_0x2908d8;await this[_0x2fdbcd(0x1b6)](_0x2ac198),_0x2ac198['activeSheet$'][_0x2fdbcd(0x490)](_0x4f72a2(this[_0x2fdbcd(0x2ba)]))[_0x2fdbcd(0x298)](_0x5857d6=>{const _0x8e519c=_0x2fdbcd;_0x5857d6&&this[_0x8e519c(0x1e1)](_0x5857d6);}),this[_0x2fdbcd(0x3cb)][_0x2fdbcd(0x28b)][_0x2fdbcd(0x490)](_0x4f72a2(this[_0x2fdbcd(0x2ba)]))[_0x2fdbcd(0x298)](()=>this[_0x2fdbcd(0x1b6)](_0x2ac198));}[_0x2908d8(0x1e1)](_0xab33e,_0x469374=!0x1){const _0x2f5328=_0x2908d8,_0x2a93c2=this[_0x2f5328(0x3cb)]['getParam']('subunit');_0xab33e[_0x2f5328(0x348)]()!==_0x2a93c2&&this[_0x2f5328(0x3cb)]['setParam']('subunit',_0xab33e['getSheetId'](),_0x469374);}async[_0x2908d8(0x1b6)](_0x8807de){const _0x4c4635=_0x2908d8;var _0x517fd2;const _0x4a7c6e=this[_0x4c4635(0x3cb)][_0x4c4635(0x2a6)](_0x4c4635(0x472));if(!_0x4a7c6e||!_0x8807de['getSheetBySheetId'](_0x4a7c6e)){const _0x5459a5=_0x8807de[_0x4c4635(0x444)]()[0x0],_0x1cb364=_0x8807de[_0x4c4635(0x3b0)](_0x5459a5);if(!_0x1cb364)return;this[_0x4c4635(0x1e1)](_0x1cb364,!0x0),await this[_0x4c4635(0x3fd)][_0x4c4635(0x34d)](_0x217559['id'],{'unitId':_0x8807de[_0x4c4635(0x18b)](),'subUnitId':_0x5459a5});return;}((_0x517fd2=_0x8807de['getActiveSheet']())==null?void 0x0:_0x517fd2[_0x4c4635(0x348)]())!==_0x4a7c6e&&await this['_commandService']['executeCommand'](_0x217559['id'],{'unitId':_0x8807de[_0x4c4635(0x18b)](),'subUnitId':_0x4a7c6e});}async[_0x2908d8(0x217)](_0x43e687){const _0x35cf69=_0x2908d8;let _0x4f0d91=0x0;const _0x223b15=await this[_0x35cf69(0x2fc)]['loadOfflineData'](_0x43e687);return _0x223b15&&(_0x223b15[_0x35cf69(0x284)]||_0x223b15[_0x35cf69(0x467)]['length']!==0x0)&&(_0x4f0d91=_0x223b15[_0x35cf69(0x3e2)]),_0x4f0d91===0x0&&this[_0x35cf69(0x49c)][_0x35cf69(0x2e6)](_0x35cf69(0x254),_0x35cf69(0x2f4)),this[_0x35cf69(0x249)]['loadSheet'](_0x43e687,_0x4f0d91);}async[_0x2908d8(0x150)](_0x55928a){const _0x43d4ba=_0x2908d8;let _0x30c906=0x0;const _0x533ef3=await this[_0x43d4ba(0x2fc)][_0x43d4ba(0x22b)](_0x55928a);return _0x533ef3&&(_0x533ef3['awaitingChangeset']||_0x533ef3[_0x43d4ba(0x467)][_0x43d4ba(0x478)]!==0x0)&&(_0x30c906=_0x533ef3['rev']),_0x30c906===0x0&&this[_0x43d4ba(0x49c)][_0x43d4ba(0x2e6)](_0x43d4ba(0x254),_0x43d4ba(0x2f4)),this[_0x43d4ba(0x249)][_0x43d4ba(0x306)](_0x55928a,_0x30c906);}};We=ho([_0x1e52da(_0x3ebf67[_0x2908d8(0x135)],We),me(0x0,Bs),me(0x1,_0x38155a),me(0x2,_0x2bd668),me(0x3,_0x573d4d(D)),me(0x4,_0x573d4d(_0x232e25)),me(0x5,_0x2b0397(_0x1700c5))],We);var lo=Object[_0x2908d8(0x1f6)],_o=Object['getOwnPropertyDescriptor'],uo=(_0x2d0be9,_0x2e5add,_0x4b0be7,_0x186631)=>{const _0x46d631=_0x2908d8;for(var _0x21a972=_0x186631>0x1?void 0x0:_0x186631?_o(_0x2e5add,_0x4b0be7):_0x2e5add,_0x54e0c0=_0x2d0be9[_0x46d631(0x478)]-0x1,_0xa3c848;_0x54e0c0>=0x0;_0x54e0c0--)(_0xa3c848=_0x2d0be9[_0x54e0c0])&&(_0x21a972=(_0x186631?_0xa3c848(_0x2e5add,_0x4b0be7,_0x21a972):_0xa3c848(_0x21a972))||_0x21a972);return _0x186631&&_0x21a972&&lo(_0x2e5add,_0x4b0be7,_0x21a972),_0x21a972;},us=(_0x2e9ebb,_0x7e0f20)=>(_0x5be302,_0x3f4aba)=>_0x7e0f20(_0x5be302,_0x3f4aba,_0x2e9ebb);const mo=_0x2908d8(0x36d),fo='Univer';let Ge=class extends _0x5d8459{constructor(_0xb38031,_0x6af312){const _0x54de5b=_0x2908d8;super(),this['_univerInstanceService']=_0xb38031,this['_configService']=_0x6af312,this[_0x54de5b(0x2c3)]();}[_0x2908d8(0x2c3)](){const _0x271a5c=_0x2908d8;this[_0x271a5c(0x206)](_0x58e78e(this['_univerInstanceService'][_0x271a5c(0x160)][_0x271a5c(0x298)](()=>{const _0x384b7b=_0x271a5c;var _0x565cfa;const _0x316682=this[_0x384b7b(0x2c2)]['getFocusedUnit']();let _0x5c8a8d=(_0x565cfa=this['_configService']['getConfig'](mo))!=null?_0x565cfa:fo;_0x316682 instanceof _0x3c5d77&&(_0x5c8a8d=_0x316682[_0x384b7b(0x3b6)]),document['title']=_0x5c8a8d;})));}};Ge=uo([_0x1e52da(_0x3ebf67['Ready'],Ge),us(0x0,_0x52e604),us(0x1,_0x3abdb4)],Ge);var go=Object['defineProperty'],So=Object[_0x2908d8(0x17b)],po=(_0x25cda1,_0xf139cd,_0x49ce15,_0x426495)=>{const _0x4956ee=_0x2908d8;for(var _0x1dee1c=_0x426495>0x1?void 0x0:_0x426495?So(_0xf139cd,_0x49ce15):_0xf139cd,_0x9e48e9=_0x25cda1[_0x4956ee(0x478)]-0x1,_0x3cbc1d;_0x9e48e9>=0x0;_0x9e48e9--)(_0x3cbc1d=_0x25cda1[_0x9e48e9])&&(_0x1dee1c=(_0x426495?_0x3cbc1d(_0xf139cd,_0x49ce15,_0x1dee1c):_0x3cbc1d(_0x1dee1c))||_0x1dee1c);return _0x426495&&_0x1dee1c&&go(_0xf139cd,_0x49ce15,_0x1dee1c),_0x1dee1c;},ds=(_0x2ad01e,_0x1f645c)=>(_0x5aec77,_0x3068cc)=>_0x1f645c(_0x5aec77,_0x3068cc,_0x2ad01e);let wt=class{constructor(_0x113667,_0x2a16f3){const _0x9262dc=_0x2908d8;this[_0x9262dc(0x168)]=_0x113667,this['_httpService']=_0x2a16f3;}async['getUnitOnRev'](_0x34f6c5,_0x1ccef5){const _0x293f47=_0x2908d8;var _0x22dd3d;const {unitID:_0xd20c9f,type:_0x1f0506,revision:_0x4ee04e=0x0}=_0x1ccef5,_0x216f27=this['_getSnapshotAPIPrefix']()+'/'+_0x1f0506+'/unit/'+_0xd20c9f+_0x293f47(0x273)+_0x4ee04e,_0xbdb855=(await this[_0x293f47(0x22e)][_0x293f47(0x479)](_0x216f27))[_0x293f47(0x22f)],_0x4841b6=(_0x22dd3d=_0xbdb855['snapshot'])==null?void 0x0:_0x22dd3d['workbook'];if(_0x4841b6){const _0x36fbac=_0x4841b6==null?void 0x0:_0x4841b6['originalMeta'],_0x5a10db=_0x28a27b['encode'](_0x556542(_0x36fbac));_0x4841b6[_0x293f47(0x3e1)]=_0x5a10db,Object[_0x293f47(0x2c0)](_0x4841b6[_0x293f47(0x492)])[_0x293f47(0x212)](([,_0x38470f])=>{const _0x5a1d81=_0x293f47,_0x311731=_0x38470f['originalMeta'],_0x2ce11f=_0x28a27b[_0x5a1d81(0x3cf)](_0x556542(_0x311731));_0x38470f[_0x5a1d81(0x3e1)]=_0x2ce11f;});}return _0xbdb855;}async[_0x2908d8(0x32c)](_0x4737a9,_0xbad2fe){const _0x2487e1=_0x2908d8,{unitID:_0xd76da1,type:_0x1de31a,blockID:_0x41a908}=_0xbad2fe,_0x4befb9=this[_0x2487e1(0x399)]()+'/'+_0x1de31a+'/unit/'+_0xd76da1+_0x2487e1(0x2c5)+_0x41a908;return(await this['_httpService'][_0x2487e1(0x479)](_0x4befb9))[_0x2487e1(0x22f)];}async[_0x2908d8(0x19f)](_0x1125f3,_0x2e592b){const _0x54e814=_0x2908d8,{unitID:_0x58dbb9,type:_0x5b6d80,from:_0x2075ec,to:_0x359551}=_0x2e592b,_0x1906d1=this['_getAPIPrefix']()+'/'+_0x5b6d80+_0x54e814(0x375)+_0x58dbb9+_0x54e814(0x494)+_0x2075ec+_0x54e814(0x29a)+_0x359551;return(await this[_0x54e814(0x22e)]['get'](_0x1906d1))[_0x54e814(0x22f)];}[_0x2908d8(0x46d)](){const _0xa24ca=_0x2908d8;var _0x1c0100;return(_0x1c0100=this[_0xa24ca(0x168)][_0xa24ca(0x157)](mn))!=null?_0x1c0100:this[_0xa24ca(0x399)]();}[_0x2908d8(0x399)](){const _0x3c7fb6=_0x2908d8;var _0x460f24;return(_0x460f24=this[_0x3c7fb6(0x168)][_0x3c7fb6(0x157)](un))!=null?_0x460f24:dn;}async[_0x2908d8(0x33f)](_0x507251,_0x42709d){const _0x235848=_0x2908d8,_0x26e958=_0x235848(0x2a8)+_0x42709d[_0x235848(0x161)]+_0x235848(0x375)+_0x42709d['unitID']+_0x235848(0x3b2);return(await this[_0x235848(0x22e)]['get'](_0x26e958,{'params':{'resourceId':JSON[_0x235848(0x2d3)](_0x42709d[_0x235848(0x238)])}}))[_0x235848(0x22f)];}[_0x2908d8(0x356)](){const _0x342490=_0x2908d8;throw new Error(_0x342490(0x2ca));}[_0x2908d8(0x3c6)](){const _0x4aaa8e=_0x2908d8;throw new Error(_0x4aaa8e(0x2ca));}[_0x2908d8(0x48a)](){const _0x18a924=_0x2908d8;throw new Error(_0x18a924(0x2ca));}};wt=po([ds(0x0,_0x3abdb4),ds(0x1,_0x573d4d(_0x2d51dc))],wt);var vo=Object['defineProperty'],Io=Object['getOwnPropertyDescriptor'],Eo=(_0x4c27de,_0x3e09ad,_0x55c5ed,_0x1a942b)=>{const _0x335411=_0x2908d8;for(var _0x2b9d21=_0x1a942b>0x1?void 0x0:_0x1a942b?Io(_0x3e09ad,_0x55c5ed):_0x3e09ad,_0x167787=_0x4c27de[_0x335411(0x478)]-0x1,_0x2a11a6;_0x167787>=0x0;_0x167787--)(_0x2a11a6=_0x4c27de[_0x167787])&&(_0x2b9d21=(_0x1a942b?_0x2a11a6(_0x3e09ad,_0x55c5ed,_0x2b9d21):_0x2a11a6(_0x2b9d21))||_0x2b9d21);return _0x1a942b&&_0x2b9d21&&vo(_0x3e09ad,_0x55c5ed,_0x2b9d21),_0x2b9d21;},De=(_0x44bb77,_0x432f08)=>(_0x1256cc,_0x4d35ee)=>_0x432f08(_0x1256cc,_0x4d35ee,_0x44bb77);let Pt=class extends _0x181a3f{constructor(_0x3c8972,_0x43494c,_0x198eb7,_0x526b49,_0x41f628){const _0x717328=_0x2908d8;super(_0x3c8972,_0x43494c,_0x198eb7),this[_0x717328(0x389)]=_0x526b49,this['_logService']=_0x41f628;}[_0x2908d8(0x393)](_0x16d10b,_0x163450){const _0x563e01=_0x2908d8,_0x3dee41=this[_0x563e01(0x451)](_0x16d10b);if(_0x3dee41)try{const _0x10e977=this[_0x563e01(0x1a2)](_0x3dee41,_0x163450);this[_0x563e01(0x38f)](_0x16d10b,_0x10e977);}catch(_0x244aaf){this['_logService']['error'](_0x563e01(0x1f7),_0x244aaf),this['_clearUndo'](_0x16d10b);}const _0x1e06dc=this[_0x563e01(0x413)](_0x16d10b);if(_0x1e06dc)try{const _0x502b4a=this[_0x563e01(0x1a2)](_0x1e06dc,_0x163450);this[_0x563e01(0x1b8)](_0x16d10b,_0x502b4a);}catch(_0x3098f5){this['_logService'][_0x563e01(0x2f3)](_0x3098f5),this[_0x563e01(0x45b)](_0x16d10b);}}[_0x2908d8(0x286)](_0xac2a9e){const _0x553253=_0x2908d8,_0x373ea9=this[_0x553253(0x451)](_0xac2a9e);_0x373ea9&&(_0x373ea9[_0x553253(0x478)]=0x0,this[_0x553253(0x3dc)]());}[_0x2908d8(0x45b)](_0x183be0){const _0x3657ab=_0x2908d8,_0x4aff02=this[_0x3657ab(0x413)](_0x183be0);_0x4aff02&&(_0x4aff02['length']=0x0,this[_0x3657ab(0x3dc)]());}[_0x2908d8(0x38f)](_0x323fa0,_0x591a9d){const _0x186893=_0x2908d8;this[_0x186893(0x363)]['set'](_0x323fa0,_0x591a9d),this[_0x186893(0x3dc)]();}[_0x2908d8(0x1b8)](_0x12a612,_0x33371c){const _0x3e4325=_0x2908d8;this[_0x3e4325(0x40f)]['set'](_0x12a612,_0x33371c),this[_0x3e4325(0x3dc)]();}[_0x2908d8(0x1a2)](_0x2f9a24,_0x47d079){const _0x41ad85=_0x2908d8,_0x1c5ed5=[];let _0x492f45=_0x47d079,_0x4cb7e1=_0x47d079;for(let _0x11009d=_0x2f9a24[_0x41ad85(0x478)]-0x1;_0x11009d>=0x0;_0x11009d--){const {unitID:_0x2b9f44,undoMutations:_0x5d43b3,redoMutations:_0x3838a6}=_0x2f9a24[_0x11009d],_0x2799e2=this[_0x41ad85(0x389)]['transformMutationsWithChangeset'](_0x492f45,_0x5d43b3),_0x5c171a=this['_transformService'][_0x41ad85(0x27e)](_0x4cb7e1,_0x3838a6);if(_0x2ba11f(_0x2799e2)||_0x2ba11f(_0x5c171a)){this[_0x41ad85(0x49c)][_0x41ad85(0x2f3)](_0x41ad85(0x1f7),_0x41ad85(0x21b),_0x2799e2,_0x5c171a);break;}_0x492f45=_0x2799e2[_0x41ad85(0x483)],_0x4cb7e1=_0x5c171a['c1Prime'],_0x1c5ed5['push']({'unitID':_0x2b9f44,'undoMutations':_0x2799e2['m2Prime'],'redoMutations':_0x5c171a[_0x41ad85(0x447)]});}return _0x1c5ed5[_0x41ad85(0x44c)]();}};Pt=Eo([De(0x0,_0x52e604),De(0x1,_0x2bd668),De(0x2,_0x4c4187),De(0x3,_0x35595c),De(0x4,_0x38155a)],Pt);class Co extends _0x5afe1b{constructor(){const _0x25e263=_0x2908d8;super(),l(this,_0x25e263(0x28b)),this[_0x25e263(0x28b)]=_0x3c1931(window,_0x25e263(0x45a))['pipe'](_0x4f72a2(this[_0x25e263(0x2ba)]),_0x2e7acf(0x1),_0x57ea85(void 0x0));}[_0x2908d8(0x256)](_0x238095,_0x241357,_0x7849ac=!0x1){const _0x292ed6=_0x2908d8,_0xe09924=new URL(window[_0x292ed6(0x21e)][_0x292ed6(0x2d8)]);_0xe09924[_0x292ed6(0x343)][_0x292ed6(0x255)](_0x238095,_0x241357),_0x7849ac?window['history']['replaceState']('','',_0xe09924[_0x292ed6(0x2a4)]()):window['history'][_0x292ed6(0x1e8)]('','',_0xe09924['toString']());}[_0x2908d8(0x18e)](_0x4eaf94,_0x1d3603=!0x1){const _0x2c2f42=_0x2908d8,_0x4cba63=new URL(window['location'][_0x2c2f42(0x2d8)]);_0x4cba63[_0x2c2f42(0x343)][_0x2c2f42(0x34a)](_0x4eaf94),_0x1d3603?window[_0x2c2f42(0x2ee)][_0x2c2f42(0x1e0)]('','',_0x4cba63[_0x2c2f42(0x2a4)]()):window['history'][_0x2c2f42(0x1e8)]('','',_0x4cba63[_0x2c2f42(0x2a4)]());}['getParam'](_0x1095ab){const _0x4970c8=_0x2908d8;var _0x5d857f;return(_0x5d857f=new URL(window[_0x4970c8(0x21e)][_0x4970c8(0x2d8)])[_0x4970c8(0x343)][_0x4970c8(0x479)](_0x1095ab))!=null?_0x5d857f:void 0x0;}}const mt='collab-text-anchor-',bo=_0x2908d8(0x15e),To=_0x2908d8(0x446),we=0x6,Ro=1.5,ft=0x4,Oo=1.5,Do=_0x2908d8(0x38a);class ms{constructor(_0x2cae14,_0x5811ef,_0x246eb6,_0x3340ff){const _0x2f0d71=_0x2908d8;l(this,_0x2f0d71(0x49e),[]),l(this,_0x2f0d71(0x1ab),null),l(this,'_textBubble',null),l(this,'_anchorDot',null),l(this,_0x2f0d71(0x35c),null),l(this,_0x2f0d71(0x188),null),(this[_0x2f0d71(0x2cb)]=_0x2cae14,this[_0x2f0d71(0x41c)]=_0x5811ef,this[_0x2f0d71(0x38b)]=_0x246eb6,this[_0x2f0d71(0x247)]=_0x3340ff,this[_0x2f0d71(0x3df)]());}set[_0x2908d8(0x2f0)](_0xeba352){const _0x35fb00=_0x2908d8;_0xeba352?(this[_0x35fb00(0x14d)]&&this['_anchorDot'][_0x35fb00(0x39f)](),this['_textBubble']&&this['_textBubble']['show']()):(this[_0x35fb00(0x14d)]&&this['_anchorDot'][_0x35fb00(0x24e)](),this[_0x35fb00(0x359)]&&this[_0x35fb00(0x359)][_0x35fb00(0x39f)]());}['dispose'](){const _0x223431=_0x2908d8;for(const _0xd563fa of this[_0x223431(0x49e)])_0xd563fa['dispose']();this['_textBubble']&&this[_0x223431(0x359)][_0x223431(0x1bf)](),this[_0x223431(0x14d)]&&this[_0x223431(0x14d)]['dispose'](),this[_0x223431(0x1ab)]&&this[_0x223431(0x1ab)][_0x223431(0x1bf)](),this['_eventUnsubscribe']&&this[_0x223431(0x188)]();}[_0x2908d8(0x3df)](){const _0x571048=_0x2908d8;var _0x233f46;const {_docSkeleton:_0x2d62fe,_document:_0x39ec0f}=this,{color:_0xec6fd0,name:_0x86d348,ranges:_0x49c72d}=this[_0x571048(0x2cb)],_0x61e39a=_0x39ec0f[_0x571048(0x1aa)](),{docsLeft:_0x33884b,docsTop:_0x29076e}=_0x61e39a,_0x57e4cc=new _0x669d7e(_0x61e39a,_0x2d62fe);for(const {startOffset:_0x4969ba,endOffset:_0x364785,collapsed:_0x4860fd,isActive:_0x17c465}of _0x49c72d){const _0x2c615a=_0x2d62fe['findNodePositionByCharIndex'](_0x4969ba),_0x56ac6f=_0x2d62fe[_0x571048(0x139)](_0x364785);if(_0x17c465){const {contentBoxPointGroup:_0x2b26dc}=_0x57e4cc['getRangePointData'](_0x56ac6f,_0x56ac6f);if(_0x2b26dc[_0x571048(0x478)]===0x0)continue;this[_0x571048(0x44f)](_0xec6fd0,_0x2b26dc,_0x33884b,_0x29076e,_0x86d348),this[_0x571048(0x188)]=this['_handleHover']();}if(!_0x4860fd&&_0x2c615a&&_0x56ac6f){if(_0x4a103f(_0x2c615a,_0x56ac6f)){const _0x417cb3=new _0x38e8fb(_0x61e39a,_0x2d62fe),{pointGroup:_0x34cb5f}=(_0x233f46=_0x417cb3[_0x571048(0x3f2)](_0x2c615a,_0x56ac6f))!=null?_0x233f46:{};if(_0x34cb5f==null||_0x34cb5f[_0x571048(0x478)]===0x0)continue;this[_0x571048(0x147)](_0xec6fd0,_0x34cb5f,_0x33884b,_0x29076e);}else{const {contentBoxPointGroup:_0x2fc085}=_0x57e4cc[_0x571048(0x3f2)](_0x2c615a,_0x56ac6f);if(_0x2fc085[_0x571048(0x478)]===0x0)continue;this[_0x571048(0x314)](_0xec6fd0,_0x2fc085,_0x33884b,_0x29076e);}}}}[_0x2908d8(0x44f)](_0x30f1f3,_0x2f959a,_0x50038c,_0x2360e8,_0x153e51){const _0x4c47a4=_0x2908d8,_0x310426=this[_0x4c47a4(0x1fb)](_0x2f959a),{left:_0x3d6146,top:_0x71d5e4,height:_0x238019}=_0x310426,_0x16ebf2=this[_0x4c47a4(0x274)](),_0x55aea0=Oo/_0x16ebf2,_0x122b98=new _0x45456d(mt+_0x34c7a8[_0x4c47a4(0x242)](we),{'left':_0x3d6146+_0x50038c-_0x55aea0,'top':_0x71d5e4+_0x2360e8,'height':_0x238019,'width':Ro,'fill':_0x30f1f3||_0x14448f(_0xbb5a24[_0x4c47a4(0x252)],0x0),'strokeWidth':_0x55aea0,'stroke':Do,'evented':!0x0});this[_0x4c47a4(0x1ab)]=_0x122b98,this[_0x4c47a4(0x41c)]['addObject'](_0x122b98,_0x235d07);const _0x22ce21=new _0x45456d(mt+_0x34c7a8[_0x4c47a4(0x242)](we),{'left':_0x3d6146+_0x50038c-_0x55aea0,'top':_0x71d5e4+_0x2360e8-ft/0x2,'height':ft,'width':ft,'fill':_0x30f1f3||_0x14448f(_0xbb5a24['black'],0x0),'strokeWidth':0x0,'stroke':_0x30f1f3||_0x14448f(_0xbb5a24[_0x4c47a4(0x252)],0x0),'evented':!0x1});this['_anchorDot']=_0x22ce21,this[_0x4c47a4(0x41c)]['addObject'](_0x22ce21,_0x235d07);const _0x1494a2=new nt(mt+_0x34c7a8['generateRandomId'](we),{'left':_0x3d6146+_0x50038c-_0x55aea0,'top':_0x71d5e4+_0x2360e8-Ue,'text':_0x153e51,'color':_0x30f1f3});this[_0x4c47a4(0x359)]=_0x1494a2,this['_scene'][_0x4c47a4(0x42b)](_0x1494a2,_0x235d07),this[_0x4c47a4(0x2f0)]=!0x1;}[_0x2908d8(0x435)](){const _0x5191fa=_0x2908d8,_0x2345c9=this[_0x5191fa(0x1ab)][_0x5191fa(0x438)][_0x5191fa(0x390)](()=>{const _0x2bc1a8=_0x5191fa;this[_0x2bc1a8(0x2f0)]=!0x0;}),_0x114a44=this[_0x5191fa(0x1ab)]['onPointerLeave$'][_0x5191fa(0x390)](()=>{const _0x3c5afa=_0x5191fa;this[_0x3c5afa(0x35c)]&&clearTimeout(this[_0x3c5afa(0x35c)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x3eb18f=_0x5191fa;_0x2345c9[_0x3eb18f(0x18a)](),_0x114a44[_0x3eb18f(0x18a)]();};}['_drawTextRange'](_0xd32926,_0x5c328f,_0x1f140a,_0x459dd9){const _0x4880bb=_0x2908d8,_0x5dca37=new _0x467b1f(_0xd32926)[_0x4880bb(0x141)](0.2)[_0x4880bb(0x419)](),_0x53168b=new _0x1a1e3b(bo+_0x34c7a8[_0x4880bb(0x242)](we),{'pointsGroup':_0x5c328f,'fill':_0x5dca37||_0x14448f(_0xbb5a24[_0x4880bb(0x252)],0.2),'left':_0x1f140a,'top':_0x459dd9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4880bb(0x49e)][_0x4880bb(0x349)](_0x53168b),this['_scene']['addObject'](_0x53168b,_0x235d07);}[_0x2908d8(0x147)](_0x2b9d4c,_0x3f88c0,_0x59eef9,_0x359889){const _0x162ac2=_0x2908d8,_0x3cc03d=new _0x467b1f(_0x2b9d4c)[_0x162ac2(0x141)](0.2)[_0x162ac2(0x419)](),_0x1a7430=new _0x1a1e3b(To+_0x34c7a8[_0x162ac2(0x242)](we),{'pointsGroup':_0x3f88c0,'fill':_0x3cc03d||_0x14448f(_0xbb5a24['black'],0.2),'left':_0x59eef9,'top':_0x359889,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x1a7430),this['_scene'][_0x162ac2(0x42b)](_0x1a7430,_0x235d07);}[_0x2908d8(0x1fb)](_0x140f37){const _0x574426=_0x140f37[0x0],_0x48b77d=_0x574426[0x0],_0x22cbe9=_0x574426[0x2],{x:_0x4c7aa7,y:_0x333311}=_0x48b77d,{x:_0x3816a9,y:_0x46d8a6}=_0x22cbe9;return{'left':_0x4c7aa7,'top':_0x333311,'width':_0x3816a9-_0x4c7aa7,'height':_0x46d8a6-_0x333311};}[_0x2908d8(0x274)](){const _0x3efb2c=_0x2908d8,{scaleX:_0x56bf09,scaleY:_0x5b8f4c}=this[_0x3efb2c(0x41c)]['getAncestorScale']();return Math[_0x3efb2c(0x33b)](_0x56bf09,_0x5b8f4c);}}var wo=Object[_0x2908d8(0x1f6)],Po=Object[_0x2908d8(0x17b)],No=(_0x35e3a3,_0x28d1b6,_0x479596,_0x2ac68a)=>{const _0x1e7ec4=_0x2908d8;for(var _0x497aff=_0x2ac68a>0x1?void 0x0:_0x2ac68a?Po(_0x28d1b6,_0x479596):_0x28d1b6,_0x805e10=_0x35e3a3[_0x1e7ec4(0x478)]-0x1,_0xc05b61;_0x805e10>=0x0;_0x805e10--)(_0xc05b61=_0x35e3a3[_0x805e10])&&(_0x497aff=(_0x2ac68a?_0xc05b61(_0x28d1b6,_0x479596,_0x497aff):_0xc05b61(_0x497aff))||_0x497aff);return _0x2ac68a&&_0x497aff&&wo(_0x28d1b6,_0x479596,_0x497aff),_0x497aff;},Ve=(_0x291a23,_0x3e9494)=>(_0x223bea,_0x3906a8)=>_0x3e9494(_0x223bea,_0x3906a8,_0x291a23);let Ye=class extends _0x5afe1b{constructor(_0x25d8a3,_0x18fa67,_0xa74af5,_0x54326c,_0x956b0b){const _0x36199e=_0x2908d8;super(),l(this,_0x36199e(0x1f2),[]),l(this,_0x36199e(0x304),[]),(this['_context']=_0x25d8a3,this[_0x36199e(0x421)]=_0x18fa67,this[_0x36199e(0x1c7)]=_0xa74af5,this['_commandService']=_0x54326c,this[_0x36199e(0x3f7)]=_0x956b0b,this[_0x36199e(0x2c3)]());}[_0x2908d8(0x2c3)](){const _0x144814=_0x2908d8,_0x333c32=this[_0x144814(0x258)][_0x144814(0x498)],_0x1793fc=this[_0x144814(0x421)];this[_0x144814(0x206)](_0x26b443([this['_collabCursorController'][_0x144814(0x44e)](_0x333c32),this[_0x144814(0x3f7)][_0x144814(0x2a2)]])[_0x144814(0x490)](_0x391b01(([_0x279ba6,_0x51b3fe])=>({'skeleton':_0x1793fc[_0x144814(0x36a)](),'cursors':[..._0x279ba6[_0x144814(0x3ca)]()][_0x144814(0x1d4)](_0x495707=>({..._0x495707,'color':_0x51b3fe[_0x495707['color']]}))})))[_0x144814(0x298)](_0x499256=>{const _0x5cd9f6=_0x144814;if(this['_removeCollabCursors'](),_0x499256){const {skeleton:_0x36700d,cursors:_0x29d3e6}=_0x499256;this[_0x5cd9f6(0x263)](_0x36700d,_0x29d3e6);}})),this[_0x144814(0x420)](),this[_0x144814(0x1be)]();}[_0x2908d8(0x263)](_0x5a2708,_0x223a64){const _0x3c2ca7=_0x2908d8,{scene:_0x42735a,mainComponent:_0x5eb75c}=this[_0x3c2ca7(0x258)],_0x491294=_0x223a64[_0x3c2ca7(0x267)](_0x2b1d63=>new ms(_0x2b1d63,_0x42735a,_0x5a2708,_0x5eb75c));this[_0x3c2ca7(0x1f2)]=_0x491294,this['_cursors']=_0x223a64;}[_0x2908d8(0x260)](){const _0x327f22=_0x2908d8;this['_removeCollabCursors']();const {scene:_0x569cf0,mainComponent:_0xd71be}=this[_0x327f22(0x258)],_0x435edd=this[_0x327f22(0x421)]['getSkeleton'](),_0x30f8b6=this[_0x327f22(0x304)][_0x327f22(0x267)](_0x1a69e5=>new ms(_0x1a69e5,_0x569cf0,_0x435edd,_0xd71be));this[_0x327f22(0x1f2)]=_0x30f8b6;}[_0x2908d8(0x330)](){const _0x68678a=_0x2908d8;this[_0x68678a(0x1f2)][_0x68678a(0x212)](_0x4b6353=>_0x4b6353['dispose']()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x19a20b=_0x2908d8,_0xaf0597=[_0x585b41['id']];this['disposeWithMe'](this[_0x19a20b(0x3fd)]['onCommandExecuted'](_0x19d803=>{const _0x8e7310=_0x19a20b;_0xaf0597[_0x8e7310(0x1dc)](_0x19d803['id'])&&_0x19d803[_0x8e7310(0x455)]['unitId']===this['_context']['unitId']&&this[_0x8e7310(0x260)]();}));}[_0x2908d8(0x420)](){const _0x3cfd54=_0x2908d8;this[_0x3cfd54(0x206)](_0x536195(this['_context'][_0x3cfd54(0x340)][_0x3cfd54(0x257)])[_0x3cfd54(0x490)](_0x51803d(_0x380553=>_0x380553[_0x3cfd54(0x161)]===_0x4f4c39[_0x3cfd54(0x192)]),_0x5aa88d(0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Ye=No([_0x1e52da(_0x3ebf67[_0x2908d8(0x302)],Ye),Ve(0x1,_0x573d4d(_0x40db62)),Ve(0x2,_0x573d4d(fe)),Ve(0x3,_0x2bd668),Ve(0x4,_0x573d4d(_0x1e29a1))],Ye);var yo=Object[_0x2908d8(0x1f6)],Mo=Object[_0x2908d8(0x17b)],Ao=(_0x28e033,_0x43a2f5,_0x163e9c,_0x4c96a3)=>{for(var _0x1267fa=_0x4c96a3>0x1?void 0x0:_0x4c96a3?Mo(_0x43a2f5,_0x163e9c):_0x43a2f5,_0x21ffd0=_0x28e033['length']-0x1,_0x3e449e;_0x21ffd0>=0x0;_0x21ffd0--)(_0x3e449e=_0x28e033[_0x21ffd0])&&(_0x1267fa=(_0x4c96a3?_0x3e449e(_0x43a2f5,_0x163e9c,_0x1267fa):_0x3e449e(_0x1267fa))||_0x1267fa);return _0x4c96a3&&_0x1267fa&&yo(_0x43a2f5,_0x163e9c,_0x1267fa),_0x1267fa;},gt=(_0x156e3c,_0x1c02e9)=>(_0x1c0a75,_0x3fc518)=>_0x1c02e9(_0x1c0a75,_0x3fc518,_0x156e3c);let st=class{constructor(_0x271747,_0x5a4d30,_0x513dfe){const _0x4423fc=_0x2908d8;this[_0x4423fc(0x168)]=_0x271747,this['_httpService']=_0x5a4d30,this['localeService']=_0x513dfe,this['init']();}[_0x2908d8(0x392)](){const _0xaafef0=_0x2908d8;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x567e4f,_0xfa3892)=>_0xfa3892(_0x567e4f)[_0xaafef0(0x490)](_0x4586fc(async _0x47aca7=>{const _0x5bd9a=_0xaafef0,_0x5f449a=_0x47aca7;if(_0x5f449a[_0x5bd9a(0x32b)]===0x191&&window[_0x5bd9a(0x241)](this[_0x5bd9a(0x218)]['t'](_0x5bd9a(0x405)))){const _0x5577c1=window['encodeURIComponent'](window[_0x5bd9a(0x21e)]['href']);window[_0x5bd9a(0x21e)]['href']=this[_0x5bd9a(0x222)]()+_0x5bd9a(0x308)+_0x5577c1;}return _0x5f449a;}))});}[_0x2908d8(0x222)](){const _0x32acfd=_0x2908d8;var _0x1429f3;return(_0x1429f3=this[_0x32acfd(0x168)][_0x32acfd(0x157)](Pn))!=null?_0x1429f3:Nn;}};st=Ao([gt(0x0,_0x3abdb4),gt(0x1,_0x573d4d(_0x2d51dc)),gt(0x2,_0x573d4d(_0x5071b4))],st);var Uo=Object[_0x2908d8(0x1f6)],Lo=Object['getOwnPropertyDescriptor'],$o=(_0x5214b8,_0x1b2e26,_0x117fa5,_0x592bef)=>{for(var _0x47f6ae=_0x592bef>0x1?void 0x0:_0x592bef?Lo(_0x1b2e26,_0x117fa5):_0x1b2e26,_0xd1882e=_0x5214b8['length']-0x1,_0x2afa69;_0xd1882e>=0x0;_0xd1882e--)(_0x2afa69=_0x5214b8[_0xd1882e])&&(_0x47f6ae=(_0x592bef?_0x2afa69(_0x1b2e26,_0x117fa5,_0x47f6ae):_0x2afa69(_0x47f6ae))||_0x47f6ae);return _0x592bef&&_0x47f6ae&&Uo(_0x1b2e26,_0x117fa5,_0x47f6ae),_0x47f6ae;},fs=(_0x56540b,_0x3fdabe)=>(_0x20e237,_0x161945)=>_0x3fdabe(_0x20e237,_0x161945,_0x56540b);const jo=_0x2908d8(0x30c),xo=_0x2908d8(0x213);let Nt=class extends _0x5d8459{constructor(_0x198449,_0x4a6d4f){const _0x54e2d3=_0x2908d8;super(),this['_HTTPService']=_0x198449,this[_0x54e2d3(0x168)]=_0x4a6d4f,this[_0x54e2d3(0x184)]();}[_0x2908d8(0x184)](){const _0x1ec256=_0x2908d8,_0xe4e9bd=this;this['disposeWithMe'](this[_0x1ec256(0x47d)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x42b29c({'isMatch'(_0x5005ed){const _0x54f651=_0x1ec256;var _0x4bdfb1;if(_0x5005ed[_0x54f651(0x259)]===_0x54f651(0x149)&&((_0x4bdfb1=_0x5005ed['requestParams'])!=null&&_0x4bdfb1[_0x54f651(0x22f)])){const {objectID:_0x52e811,objectType:_0x13541e}=_0x5005ed[_0x54f651(0x25f)][_0x54f651(0x22f)]||{};if(!_0x52e811||_0x13541e===void 0x0)return!0x1;const _0x4a142f=_0xe4e9bd[_0x54f651(0x3ad)]()+'/'+_0x13541e+'/object/'+_0x52e811+_0x54f651(0x2e3);if(_0x5005ed[_0x54f651(0x2db)]===_0x4a142f)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4580ce){const _0x277033=_0x1ec256;var _0x4ec22a;return(_0x4ec22a=_0x4580ce['requestParams'])==null?void 0x0:_0x4ec22a[_0x277033(0x22f)];},'mergeParamsToRequest'(_0x4652b2,_0x319e11){const _0x235a24=_0x1ec256,_0x41601e=_0xe4e9bd[_0x235a24(0x3ad)]()+_0x235a24(0x15f),_0x56682c=_0x4652b2[_0x235a24(0x14c)]((_0x28ef01,_0x36d2c4)=>{const _0x41078d=_0x235a24,{unitID:_0xa8254,objectID:_0x2499c7,objectType:_0xe034a2,actions:_0x11d6f5}=_0x36d2c4;return _0x28ef01[_0xa8254]||(_0x28ef01[_0xa8254]={}),_0x28ef01[_0xa8254][_0x2499c7]||(_0x28ef01[_0xa8254][_0x2499c7]={'objectID':_0x2499c7,'objectType':_0xe034a2,'actions':[]}),_0x28ef01[_0xa8254][_0x2499c7][_0x41078d(0x3ff)][_0x41078d(0x349)](..._0x11d6f5),_0x28ef01;},{}),_0x5c3087=[];for(const _0x5eaa2e in _0x56682c)for(const _0x2b8677 in _0x56682c[_0x5eaa2e]){const {actions:_0x24c96e,objectType:_0x2ccc88}=_0x56682c[_0x5eaa2e][_0x2b8677],_0x2da619=[...new Set(_0x24c96e)];_0x5c3087['push']({'unitID':_0x5eaa2e,'objectID':_0x2b8677,'objectType':_0x2ccc88,'actions':_0x2da619});}return new _0xaea16d(_0x235a24(0x149),_0x41601e,{'headers':_0x319e11['headers'],'withCredentials':_0x319e11['withCredentials'],'responseType':_0x319e11[_0x235a24(0x3bf)],'body':{'requests':_0x5c3087}});}},{'distributeResult'(_0x27da48,_0x4f2149){const {objectActions:_0x42a155}=_0x27da48;return _0x4f2149['map'](_0x3b4b86=>{const _0x199604=_0x1140,{unitID:_0x45c0e4,objectID:_0xa63c1c,actions:_0x26634a}=_0x3b4b86,_0x4a5b4f=_0x42a155[_0x199604(0x48f)](_0x5355fb=>_0x5355fb[_0x199604(0x1ae)]===_0x45c0e4&&_0x5355fb[_0x199604(0x24b)]===_0xa63c1c),_0x1750e1=_0x26634a['map'](_0x1aac53=>_0x4a5b4f==null?void 0x0:_0x4a5b4f[_0x199604(0x3ff)][_0x199604(0x48f)](_0x365687=>_0x365687['action']===_0x1aac53))[_0x199604(0x2cc)](_0x50dfcd=>!!_0x50dfcd);return{'config':_0x3b4b86,'result':{'actions':_0x1750e1,'error':_0x27da48['error']}};});}})}));}[_0x2908d8(0x3ad)](){const _0x3e6e33=_0x2908d8;var _0xab595e;return(_0xab595e=this[_0x3e6e33(0x168)]['getConfig'](jo))!=null?_0xab595e:xo;}async[_0x2908d8(0x47c)](_0x590db8){const _0x2da96b=_0x2908d8,_0x2fc809=this[_0x2da96b(0x3ad)]()+'/'+_0x590db8[_0x2da96b(0x3f6)]+_0x2da96b(0x235);return(await this[_0x2da96b(0x47d)]['post'](_0x2fc809,{'body':_0x590db8}))[_0x2da96b(0x22f)]['objectID']||'';}async[_0x2908d8(0x21a)](_0x1aacf8){const _0x365814=_0x2908d8,_0x295915=this[_0x365814(0x3ad)]()+_0x365814(0x1b1);return(await this[_0x365814(0x47d)][_0x365814(0x2c7)](_0x295915,{'body':_0x1aacf8}))['body'][_0x365814(0x326)];}async['update'](_0x87cdc4){const _0x4cdad1=_0x2908d8,_0x4c6d6c=this[_0x4cdad1(0x3ad)]()+'/'+_0x87cdc4[_0x4cdad1(0x3f6)]+'/object/'+_0x87cdc4[_0x4cdad1(0x24b)];await this['_HTTPService'][_0x4cdad1(0x311)](_0x4c6d6c,{'body':_0x87cdc4});}async['allowed'](_0x5c613c){const _0x1a8895=_0x2908d8,_0x489fb6=this[_0x1a8895(0x3ad)]()+'/'+_0x5c613c[_0x1a8895(0x3f6)]+_0x1a8895(0x313)+_0x5c613c['objectID']+_0x1a8895(0x2e3);return(await this[_0x1a8895(0x47d)][_0x1a8895(0x2c7)](_0x489fb6,{'body':_0x5c613c}))[_0x1a8895(0x22f)][_0x1a8895(0x3ff)];}async[_0x2908d8(0x337)](_0x2dca76){const _0xf3c7bd=_0x2908d8,_0x5ba22b=this[_0xf3c7bd(0x3ad)]()+'/-/object/-/batch_allowed';return(await this[_0xf3c7bd(0x47d)]['post'](_0x5ba22b,{'body':{'requests':_0x2dca76}}))[_0xf3c7bd(0x22f)][_0xf3c7bd(0x424)];}async[_0x2908d8(0x34e)](_0x887912){const _0x8aa550=_0x2908d8,_0x4b02ea=this[_0x8aa550(0x3ad)]()+'/'+_0x887912[_0x8aa550(0x3f6)]+_0x8aa550(0x30d),_0x111a1a=await this[_0x8aa550(0x47d)][_0x8aa550(0x2c7)](_0x4b02ea,{'body':_0x887912});return{'roles':_0x111a1a[_0x8aa550(0x22f)]['roles'],'actions':_0x111a1a[_0x8aa550(0x22f)]['actions']};}async['deleteCollaborator'](_0x42d76b){const _0x54f1fa=_0x2908d8,_0x22269e=this[_0x54f1fa(0x3ad)]()+_0x54f1fa(0x24d);await this[_0x54f1fa(0x47d)][_0x54f1fa(0x34a)](_0x22269e,{'params':{'collaboratorID':_0x42d76b[_0x54f1fa(0x358)],'objectID':_0x42d76b[_0x54f1fa(0x24b)],'unitID':_0x42d76b[_0x54f1fa(0x1ae)]}});}async[_0x2908d8(0x2cf)](_0x134a3b){const _0x81136=_0x2908d8,_0x4cb811=this[_0x81136(0x3ad)]()+'/collaborator';await this['_HTTPService']['patch'](_0x4cb811,{'body':_0x134a3b});}async[_0x2908d8(0x228)](_0x14e8bb){const _0x2737f0=_0x2908d8,_0x39a9ba=this[_0x2737f0(0x3ad)]()+_0x2737f0(0x24d);await this[_0x2737f0(0x47d)]['post'](_0x39a9ba,{'body':_0x14e8bb});}async[_0x2908d8(0x1ad)](_0x53d825){const _0xa9e5c8=_0x2908d8,_0x233293=this['_getAPIPrefixPath']()+_0xa9e5c8(0x24d);return(await this['_HTTPService']['get'](_0x233293,{'params':{'objectID':_0x53d825[_0xa9e5c8(0x24b)],'unitID':_0x53d825[_0xa9e5c8(0x1ae)]}}))[_0xa9e5c8(0x22f)][_0xa9e5c8(0x2dc)];}async[_0x2908d8(0x2c9)](_0x12b82a){const _0x41ccb7=_0x2908d8,_0x116830=this[_0x41ccb7(0x3ad)]()+_0x41ccb7(0x24d);await this[_0x41ccb7(0x47d)][_0x41ccb7(0x311)](_0x116830,{'body':_0x12b82a});}};Nt=$o([fs(0x0,_0x573d4d(_0x2d51dc)),fs(0x1,_0x573d4d(_0x3abdb4))],Nt);var Ho=Object['defineProperty'],ko=Object[_0x2908d8(0x17b)],Vo=(_0x3ce9b3,_0x2eb6e4,_0x436221,_0x20248a)=>{for(var _0x492145=_0x20248a>0x1?void 0x0:_0x20248a?ko(_0x2eb6e4,_0x436221):_0x2eb6e4,_0x2b6fe5=_0x3ce9b3['length']-0x1,_0x89b4c8;_0x2b6fe5>=0x0;_0x2b6fe5--)(_0x89b4c8=_0x3ce9b3[_0x2b6fe5])&&(_0x492145=(_0x20248a?_0x89b4c8(_0x2eb6e4,_0x436221,_0x492145):_0x89b4c8(_0x492145))||_0x492145);return _0x20248a&&_0x492145&&Ho(_0x2eb6e4,_0x436221,_0x492145),_0x492145;},St=(_0x398bff,_0xd84c0b)=>(_0x4ffb4e,_0x4dcde8)=>_0xd84c0b(_0x4ffb4e,_0x4dcde8,_0x398bff);const Bo=['image/png',_0x2908d8(0x366),_0x2908d8(0x351),_0x2908d8(0x41b),_0x2908d8(0x185)],Fo=0x5*0x400*0x400,Wo=_0x2908d8(0x46b),Go='/universer-api/stream/file/upload',Yo='EXCHANGE_SIGN_URL_SERVER_URL_KEY',Ko=_0x2908d8(0x172);let yt=class{constructor(_0x1fa2cd,_0x2e269e,_0x3f5e58){const _0x87a791=_0x2908d8;l(this,_0x87a791(0x214),0x0),l(this,_0x87a791(0x489),new _0x59e98b()),l(this,_0x87a791(0x1b7),this[_0x87a791(0x489)]),l(this,_0x87a791(0x409),new Map()),(this[_0x87a791(0x22e)]=_0x1fa2cd,this[_0x87a791(0x168)]=_0x2e269e,this['_univerInstanceService']=_0x3f5e58);}['setWaitCount'](_0x189f79){const _0x410de2=_0x2908d8;this['_waitCount']=_0x189f79,this[_0x410de2(0x489)][_0x410de2(0x151)](_0x189f79);}['getImageSourceCache'](_0x592343,_0x1d2efd){const _0xc7e28a=_0x2908d8;if(_0x1d2efd===_0x6f3cfe['BASE64']){const _0x266137=new Image();return _0x266137[_0xc7e28a(0x2e7)]=_0x592343,_0x266137;}return this[_0xc7e28a(0x409)][_0xc7e28a(0x479)](_0x592343);}[_0x2908d8(0x233)](_0x372cc9,_0x2c07d9,_0x485335){const _0x4f4d2b=_0x2908d8;_0x2c07d9===_0x6f3cfe[_0x4f4d2b(0x35f)]||_0x485335==null||this[_0x4f4d2b(0x409)][_0x4f4d2b(0x255)](_0x372cc9,_0x485335);}async[_0x2908d8(0x35b)](_0x4d5514){const _0x17e1e5=_0x2908d8;try{const _0x15d4a4=this[_0x17e1e5(0x353)](this[_0x17e1e5(0x433)](),''+_0x4d5514),_0x2dd686=(await this[_0x17e1e5(0x22e)]['get'](_0x15d4a4))[_0x17e1e5(0x22f)];return _0x2dd686[_0x17e1e5(0x2f3)]&&_0x2dd686[_0x17e1e5(0x2f3)][_0x17e1e5(0x1ed)]===Ms['OK']?Promise['resolve'](_0x2dd686[_0x17e1e5(0x2db)]):Promise[_0x17e1e5(0x48e)](_0x2dd686[_0x17e1e5(0x2f3)]);}catch(_0x113f81){return Promise[_0x17e1e5(0x48e)](_0x113f81);}}async[_0x2908d8(0x17a)](_0x49b7d8){const _0x28a75e=_0x2908d8;let _0x2fab5b='';if(!Bo[_0x28a75e(0x1dc)](_0x49b7d8[_0x28a75e(0x161)]))return this[_0x28a75e(0x3d7)](),Promise[_0x28a75e(0x48e)](new Error(_0x12359d[_0x28a75e(0x476)]));if(_0x49b7d8[_0x28a75e(0x134)]>Fo)return this[_0x28a75e(0x3d7)](),Promise['reject'](new Error(_0x12359d[_0x28a75e(0x332)]));try{const _0x23060e=new FormData();_0x23060e['append'](_0x28a75e(0x380),_0x49b7d8);const _0x79ae46=this[_0x28a75e(0x2c2)][_0x28a75e(0x39a)](),_0x436211=_0x79ae46==null?void 0x0:_0x79ae46[_0x28a75e(0x18b)]();if(!_0x436211)throw new Error(_0x28a75e(0x3bd));const _0x2ae3eb=this['_getUploadFileURL']()+'?size='+_0x49b7d8[_0x28a75e(0x134)][_0x28a75e(0x2a4)]()+_0x28a75e(0x27c)+As[_0x28a75e(0x283)]+_0x28a75e(0x2d5)+encodeURIComponent(_0x436211),_0x250df0=await(await fetch(_0x2ae3eb,{'method':_0x28a75e(0x149),'body':_0x23060e}))[_0x28a75e(0x19b)]();if(typeof _0x250df0['FileId']!=_0x28a75e(0x301))return this[_0x28a75e(0x3d7)](),Promise[_0x28a75e(0x48e)](new Error(_0x12359d[_0x28a75e(0x3db)]));_0x2fab5b=_0x250df0[_0x28a75e(0x3ce)];}catch{return this[_0x28a75e(0x3d7)](),Promise[_0x28a75e(0x48e)](new Error(_0x12359d[_0x28a75e(0x3db)]));}return new Promise((_0x56c199,_0x25568c)=>{const _0x280a2e=_0x28a75e,_0x782963=new FileReader();_0x782963[_0x280a2e(0x24f)](_0x49b7d8),_0x782963[_0x280a2e(0x1b3)]=_0x19c7c8=>{const _0x4b5765=_0x280a2e;var _0x22e79b;const _0x28850e=(_0x22e79b=_0x19c7c8['target'])==null?void 0x0:_0x22e79b['result'];if(_0x28850e==null){this[_0x4b5765(0x3d7)](),_0x25568c(new Error(_0x12359d[_0x4b5765(0x3db)]));return;}const _0x388af4=_0x34c7a8['generateRandomId'](0x6);_0x56c199({'imageId':_0x388af4,'imageSourceType':_0x6f3cfe[_0x4b5765(0x199)],'source':_0x2fab5b,'base64Cache':_0x28850e,'status':_0x12359d[_0x4b5765(0x31a)]}),this[_0x4b5765(0x3d7)]();};});}[_0x2908d8(0x320)](){const _0x364954=_0x2908d8;var _0x14e0ad;return(_0x14e0ad=this[_0x364954(0x168)][_0x364954(0x157)](Wo))!=null?_0x14e0ad:Go;}[_0x2908d8(0x433)](){const _0x222492=_0x2908d8;var _0xc8d803;return(_0xc8d803=this['_configService'][_0x222492(0x157)](Yo))!=null?_0xc8d803:Ko;}[_0x2908d8(0x353)](_0x287c72,_0x4d5f22){const _0x403699=_0x2908d8;return _0x287c72[_0x403699(0x327)](_0x403699(0x173),_0x4d5f22);}[_0x2908d8(0x3d7)](){const _0x543904=_0x2908d8;this[_0x543904(0x214)]-=0x1,this[_0x543904(0x489)][_0x543904(0x151)](this[_0x543904(0x214)]);}};yt=Vo([St(0x0,_0x573d4d(_0x2d51dc)),St(0x1,_0x3abdb4),St(0x2,_0x573d4d(_0x52e604))],yt);var Xo=Object[_0x2908d8(0x1f6)],Jo=Object[_0x2908d8(0x17b)],zo=(_0x39bbe2,_0x4846fa,_0x3821e9,_0x44be66)=>{for(var _0x1dab80=_0x44be66>0x1?void 0x0:_0x44be66?Jo(_0x4846fa,_0x3821e9):_0x4846fa,_0x292bf3=_0x39bbe2['length']-0x1,_0x49aa81;_0x292bf3>=0x0;_0x292bf3--)(_0x49aa81=_0x39bbe2[_0x292bf3])&&(_0x1dab80=(_0x44be66?_0x49aa81(_0x4846fa,_0x3821e9,_0x1dab80):_0x49aa81(_0x1dab80))||_0x1dab80);return _0x44be66&&_0x1dab80&&Xo(_0x4846fa,_0x3821e9,_0x1dab80),_0x1dab80;},Pe=(_0x3b0617,_0x47459c)=>(_0x5671bb,_0x538bb8)=>_0x47459c(_0x5671bb,_0x538bb8,_0x3b0617);let Ke=class extends _0x5afe1b{constructor(_0x40cde9,_0x449201,_0x4cd200,_0x106a25,_0x2cc06f){const _0x5415f6=_0x2908d8;super(),this[_0x5415f6(0x333)]=_0x40cde9,this[_0x5415f6(0x2c2)]=_0x449201,this['_permissionService']=_0x4cd200,this[_0x5415f6(0x229)]=_0x106a25,this[_0x5415f6(0x140)]=_0x2cc06f,this['_initUnitPermissionChange'](),this[_0x5415f6(0x14b)]();}[_0x2908d8(0x14b)](){const _0x500507=_0x2908d8,_0x1e9f21=async _0x5433b9=>{const _0x8b2c77=_0x1140;(await this['_collaborationSessionService'][_0x8b2c77(0x325)](_0x5433b9))[_0x8b2c77(0x223)][_0x8b2c77(0x490)](_0x51803d(_0x1d7920=>_0x1d7920[_0x8b2c77(0x1d7)]===_0x2ca871[_0x8b2c77(0x2b0)]),_0x5953cf(this[_0x8b2c77(0x2ba)]))[_0x8b2c77(0x298)](_0xe9fa4f=>{const _0x1d8541=_0x8b2c77,_0x5c43c1=_0xe9fa4f,{reason:_0xa07208}=_0x5c43c1[_0x1d8541(0x1ee)];this['_injector'][_0x1d8541(0x479)](_0x6d8428)[_0x1d8541(0x24e)]({'type':_0x42502c[_0x1d8541(0x495)],'content':this[_0x1d8541(0x140)]['t'](_0x1d8541(0x321))+'('+_0xa07208+')'}),this[_0x1d8541(0x462)]['updatePermissionPoint'](new _0x4eedfe(_0x5433b9)['id'],!0x1),this[_0x1d8541(0x229)][_0x1d8541(0x3a6)](_0x5433b9);});};_0x52a416(this['_univerInstanceService'][_0x500507(0x1fc)](_0x50520e[_0x500507(0x37d)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x50520e[_0x500507(0x461)]))[_0x500507(0x490)](_0x391b01(_0x59bcfe=>_0x59bcfe[_0x500507(0x18b)]()),_0x51803d(_0x190f2e=>!_0x512341(_0x190f2e)),_0x5953cf(this[_0x500507(0x2ba)]))[_0x500507(0x298)](_0x508867=>{_0x1e9f21(_0x508867);});}[_0x2908d8(0x21c)](){const _0x15af6f=_0x2908d8,_0x55e288=async _0x466688=>{const _0x312c63=_0x1140;(await this[_0x312c63(0x229)][_0x312c63(0x325)](_0x466688))['event$']['pipe'](_0x51803d(_0x12bd8f=>_0x12bd8f['eventID']===_0x2ca871[_0x312c63(0x2ff)]),_0x5953cf(this['dispose$']))[_0x312c63(0x298)](_0xf533e6=>{const _0x24be67=_0x312c63,_0x47cb83=_0xf533e6,{objectId:_0xc9d74c}=_0x47cb83[_0x24be67(0x1ee)],_0x237b4a=this[_0x24be67(0x333)][_0x24be67(0x479)](_0x3c6fe8);_0xc9d74c===_0x466688?_0x237b4a[_0x24be67(0x477)](_0x466688):_0x237b4a[_0x24be67(0x1c8)](_0x466688,_0xc9d74c);});};_0x52a416(this[_0x15af6f(0x2c2)][_0x15af6f(0x1fc)](_0x50520e['UNIVER_SHEET']),this['_univerInstanceService'][_0x15af6f(0x1fc)](_0x50520e[_0x15af6f(0x461)]))[_0x15af6f(0x490)](_0x391b01(_0x20897b=>_0x20897b['getUnitId']()),_0x51803d(_0x9fabeb=>!_0x512341(_0x9fabeb)),_0x5953cf(this[_0x15af6f(0x2ba)]))[_0x15af6f(0x298)](_0xca5f5c=>{_0x55e288(_0xca5f5c);});}};Ke=zo([_0x1e52da(_0x3ebf67['Starting'],Ke),Pe(0x0,_0x573d4d(_0x100ac5)),Pe(0x1,_0x52e604),Pe(0x2,_0x1984e0),Pe(0x3,_0x573d4d(ae)),Pe(0x4,_0x573d4d(_0x5071b4))],Ke);const qo=_0x2908d8(0x27d);var Fs=Object[_0x2908d8(0x1f6)],Zo=Object[_0x2908d8(0x17b)],Qo=(_0x2ab6b5,_0x4e22fd,_0x119adf)=>_0x4e22fd in _0x2ab6b5?Fs(_0x2ab6b5,_0x4e22fd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x119adf}):_0x2ab6b5[_0x4e22fd]=_0x119adf,ea=(_0x2b74a6,_0x4256b6,_0x53dc63,_0x15c302)=>{const _0x4253e8=_0x2908d8;for(var _0x1f3b79=_0x15c302>0x1?void 0x0:_0x15c302?Zo(_0x4256b6,_0x53dc63):_0x4256b6,_0x59b747=_0x2b74a6[_0x4253e8(0x478)]-0x1,_0x41e508;_0x59b747>=0x0;_0x59b747--)(_0x41e508=_0x2b74a6[_0x59b747])&&(_0x1f3b79=(_0x15c302?_0x41e508(_0x4256b6,_0x53dc63,_0x1f3b79):_0x41e508(_0x1f3b79))||_0x1f3b79);return _0x15c302&&_0x1f3b79&&Fs(_0x4256b6,_0x53dc63,_0x1f3b79),_0x1f3b79;},Be=(_0x385e1a,_0x2b9bb4)=>(_0x33b7d9,_0x2b54c3)=>_0x2b9bb4(_0x33b7d9,_0x2b54c3,_0x385e1a),ta=(_0x809f3,_0x960343,_0x112738)=>Qo(_0x809f3,_0x960343+'',_0x112738);const sa='UNIVER_COLLABORATION_CLIENT_PLUGIN';let Mt=class extends _0x361fa5{constructor(_0x4b11b1={},_0x52bbdc,_0x337de4,_0x27a57e,_0x23dec7){const _0x1e213b=_0x2908d8;super(),this['_config']=_0x4b11b1,this[_0x1e213b(0x49c)]=_0x52bbdc,this[_0x1e213b(0x341)]=_0x337de4,this[_0x1e213b(0x333)]=_0x27a57e,this[_0x1e213b(0x168)]=_0x23dec7;const {..._0x913479}=this['_config'];this[_0x1e213b(0x168)][_0x1e213b(0x187)](qo,_0x913479);}[_0x2908d8(0x2b4)](){const _0xb50344=_0x2908d8;this[_0xb50344(0x322)]();}[_0x2908d8(0x37f)](){this['_registerRenderDependencies']();}[_0x2908d8(0x322)](){const _0xb117b5=_0x2908d8;var _0xf64f10,_0x52d7c7,_0x3c090d,_0x11838b;this[_0xb117b5(0x333)][_0xb117b5(0x25a)](_0x3ed2c5)&&this['_logService']['error'](_0xb117b5(0x2af),_0xb117b5(0x3a8));let _0x126285=[[_0x3ed2c5,{'useClass':Pt}],[ae],[Bt],[_0x2d51dc],[Bs,{'useClass':Co}],[oe],[D],[_0x4447fb],[Qe],[et],[Ze],[kt],[st],[Ls],[Ke],[Us,{'useClass':(_0x52d7c7=(_0xf64f10=this[_0xb117b5(0x190)])==null?void 0x0:_0xf64f10['socketService'])!=null?_0x52d7c7:Et}],[_0x4d903c,{'useClass':_0x2527e3}],[_0x5d1d4f,{'useClass':wt}],[_0x5bd60e,{'useClass':Nt}],[_0x404524,{'useClass':yt}],[Ae],[We],[ye],[Ge],[fe]];(_0x3c090d=this[_0xb117b5(0x190)])!=null&&_0x3c090d[_0xb117b5(0x204)]&&_0x126285[_0xb117b5(0x349)]([it,{'useClass':rr}]),_0x126285=_0x320f1a(_0x126285,(_0x11838b=this[_0xb117b5(0x190)])==null?void 0x0:_0x11838b['override']),_0x126285[_0xb117b5(0x212)](_0x12ac3d=>this[_0xb117b5(0x333)][_0xb117b5(0x40c)](_0x12ac3d)),this[_0xb117b5(0x331)]();}[_0x2908d8(0x17e)](){const _0x1953a2=_0x2908d8;this[_0x1953a2(0x206)](this[_0x1953a2(0x341)][_0x1953a2(0x27f)](_0x50520e[_0x1953a2(0x461)],[Ye])),this['disposeWithMe'](this['_renderManagerService'][_0x1953a2(0x27f)](_0x50520e[_0x1953a2(0x37d)],[Dt]));}[_0x2908d8(0x331)](){const _0x8859f1=_0x2908d8;var _0x2caf99,_0x2fcef4;this[_0x8859f1(0x333)][_0x8859f1(0x479)](_0x2d51dc)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x108edb({'maxParallel':0x6})}),(_0x2caf99=this[_0x8859f1(0x190)])!=null&&_0x2caf99['enableOfflineEditing']||this[_0x8859f1(0x333)][_0x8859f1(0x479)](D)[_0x8859f1(0x3d8)](),(_0x2fcef4=this['_config'])!=null&&_0x2fcef4[_0x8859f1(0x364)]&&this['_injector'][_0x8859f1(0x479)](st),this['_injector']['get'](Ae),this[_0x8859f1(0x333)]['has'](ye)&&this[_0x8859f1(0x333)][_0x8859f1(0x479)](ye);}};ta(Mt,_0x2908d8(0x48b),sa),Mt=ea([_0x1f6b2d(_0x42e95f),Be(0x1,_0x38155a),Be(0x2,_0x33ca16),Be(0x3,_0x573d4d(_0x100ac5)),Be(0x4,_0x3abdb4)],Mt);export{jo as AUTHZ_URL_KEY,Nt as AuthzIoHttpService,Dn as COLLAB_SUBMIT_CHANGESET_URL_KEY,Sn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,tt as CollaborationEntity,Ct as CollaborationSession,ae as CollaborationSessionService,Et as CollaborationSocketService,w as CollaborationStatus,so as CollaborationStatusDisplay,Ls as CommentService,We as DataLoaderController,ye as DesktopCollaborationStatusDisplayController,bt as DocCollaborationEntity,vn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,Us as ICollaborationSocketService,Bs as IURLService,yt as ImageIoService,Rn as LOCAL_CACHE_INTERVAL_KEY,Pn as LOGIN_URL_KEY,D as LocalCacheService,En as RETRY_CONNECTING_INTERVAL_KEY,bn as RETRY_CONNECTING_MAX_COUNT_KEY,fn as SEND_CHANGESET_TIMEOUT_KEY,un as SNAPSHOT_SERVER_URL_KEY,mn as SNAPSHOT_URL_KEY,F as SessionStatus,xr as SheetCollabCursorShape,Tt as SheetCollaborationEntity,wt as SnapshotServerOverHTTPService,Mt as UniverCollaborationClientPlugin,Co as WebURLService,yn as deserializeToCombResponse,Mn as serializeCombRequest};
|