@univerjs-pro/collaboration-client 0.2.2 → 0.2.4-alpha.0
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 +2 -1
- package/lib/locale/ru-RU.json +2 -1
- package/lib/locale/vi-VN.json +33 -0
- package/lib/locale/zh-CN.json +2 -1
- package/lib/locale/zh-TW.json +33 -0
- package/lib/types/controllers/collab-cursor/__tests__/doc-collab-cursor.controller.spec.d.ts +1 -2
- package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +1 -2
- package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +1 -2
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +1 -2
- package/lib/types/controllers/collab-status/collab-status.controller.d.ts +1 -2
- package/lib/types/controllers/collaboration/__tests__/mock-text-selection-render-manager.service.d.ts +1 -1
- package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +2 -2
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +1 -2
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +1 -2
- package/lib/types/locale/vi-VN.d.ts +4 -0
- package/lib/types/locale/zh-CN.d.ts +1 -0
- package/lib/types/locale/zh-TW.d.ts +4 -0
- package/lib/types/plugin.d.ts +1 -2
- package/lib/types/services/auth-server/authz-io-http.service.d.ts +3 -2
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +3 -2
- package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +1 -1
- package/lib/types/services/permission/permission.service.d.ts +13 -0
- package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +5 -1
- package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +1 -1
- package/lib/types/services/socket/collaboration-socket.service.d.ts +1 -1
- package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +1 -1
- package/lib/types/services/url/url.service.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +33 -35
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x29c6a6=_0x34fd;(function(_0x396b14,_0x50ab69){const _0x2af0c2=_0x34fd,_0x203107=_0x396b14();while(!![]){try{const _0x79b079=parseInt(_0x2af0c2(0x3f8))/0x1*(-parseInt(_0x2af0c2(0x22d))/0x2)+-parseInt(_0x2af0c2(0x1d7))/0x3+parseInt(_0x2af0c2(0x3ba))/0x4*(parseInt(_0x2af0c2(0x45d))/0x5)+parseInt(_0x2af0c2(0x3aa))/0x6*(parseInt(_0x2af0c2(0x263))/0x7)+parseInt(_0x2af0c2(0x3f5))/0x8+-parseInt(_0x2af0c2(0x360))/0x9+-parseInt(_0x2af0c2(0x31c))/0xa*(-parseInt(_0x2af0c2(0x444))/0xb);if(_0x79b079===_0x50ab69)break;else _0x203107['push'](_0x203107['shift']());}catch(_0x36c57a){_0x203107['push'](_0x203107['shift']());}}}(_0x438e,0xbdcb9));var xs=Object['defineProperty'],Fs=(_0x524972,_0x471264,_0x4a1fc7)=>_0x471264 in _0x524972?xs(_0x524972,_0x471264,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a1fc7}):_0x524972[_0x471264]=_0x4a1fc7,l=(_0x14b81d,_0x2c47a7,_0x3244bd)=>Fs(_0x14b81d,typeof _0x2c47a7!='symbol'?_0x2c47a7+'':_0x2c47a7,_0x3244bd);import{Disposable as _0xc93720,toDisposable as _0x359428,UniverInstanceType as _0x17600d,UserManagerService as _0x24fbbe,IUniverInstanceService as _0x33e391,DisposableCollection as _0x3543bd,IConfigService as _0x575c32,ILogService as _0x2125ae,ISnapshotServerService as _0x2e217d,RxDisposable as _0x39fd47,LocaleService as _0x2f64f,ILocalStorageService as _0x3325f8,Tools as _0x1394f4,ICommandService as _0x594d06,JSONX as _0x4686a0,IPermissionService as _0x478858,IUndoRedoService as _0x58b491,sequenceExecute as _0x4025ef,OnLifecycle as _0x2d1123,LifecycleStages as _0xb39fe5,CommandType as _0x4dcc25,Rectangle as _0x35b9e8,ThemeService as _0x474371,Workbook as _0x9198e0,textEncoder as _0x395f16,b64DecodeUnicode as _0x44581b,LocalUndoRedoService as _0x59e73e,IContextService as _0x2d2798,COLORS as _0x82bf70,ColorKit as _0x323ad1,Plugin as _0x353e3b,IAuthzIoService as _0x2f8250,mergeOverrideWithDependencies as _0x55370c,DependentOn as _0x578ae7}from'@univerjs/core';import{SelectionManagerService as _0x543329,SetSelectionsOperation as _0x57025f,InsertSheetMutation as _0x2ae46a,WorkbookEditablePermission as _0x390ee3,RefRangeService as _0x5e51b6,EffectRefRangId as _0x2d6399,handleIRemoveRow as _0x508fe0,handleIRemoveCol as _0x5357dc,handleMoveRange as _0x49f706,handleInsertRow as _0x5152e3,handleInsertRangeMoveRight as _0x3c5fe4,handleInsertRangeMoveDown as _0x5d05d0,handleInsertCol as _0x180534,handleDeleteRangeMoveUp as _0x5b7d4a,handleDeleteRangeMoveLeft as _0x23fee4,runRefRangeMutations as _0x1f0979,SetWorksheetActivateCommand as _0x3b91fc}from'@univerjs/sheets';import{MessageType as _0x15c0da}from'@univerjs/design';import{IBeforeCloseService as _0x3ef89e,IMessageService as _0x367db8,INotificationService as _0x4ee021,useObservable as _0x2b20e3,BuiltInUIPart as _0x1f5713,IUIPartsService as _0x38bd02}from'@univerjs/ui';import{CollaborationEvent as _0x5911b8,parseChangesetToProtocol as _0x12ffd7,RevisionService as _0x353354,isTransformMutationFailure as _0x42961a,isTransformMutationsWithChangesetSuccess as _0x589ac1,ITransformService as _0xd13d4c,mapDocumentTypeToUniverType as _0x385526,isTransformChangesetsSuccess as _0x389cf2,CompressMutationService as _0x969bae,parseProtocolChangeset as _0x8de20b,SnapshotService as _0x17638f,isTransformMutationsWithChangesetFailure as _0x4703e4,UniverCollaborationPlugin as _0x8aafa7}from'@univerjs-pro/collaboration';function _0x438e(){const _0x471b9e=['docStateChange$','dispose$','patch','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','Unknown\x20user','socketService','_onCursorUpdate','onMissingChangesets','UNIVER_COLLABORATION_CLIENT_PLUGIN','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','_event$','collabCursorState$','[CollaborationUndoRedoService]','onCommentUpdate','setShapeProps','conflict','interceptor','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_tryEnsureSocket','findNodePositionByCharIndex','_initStatusComponent','_status$','updateCollaborator','slice','_updateLocalCursor','transform','getCellPositionByOffset','transformByState','_clearOtherTimers','ERROR_IMAGE','_localeService','_getUndoStack','appendMutation','string','error','tag','_startDocCollabCursor','pushState','allowed','7160535lMPuUw','assignAColorForMemberID','get','debug','_joinRoom','mutations','_waitCount','_transformService','submit\x20changeset\x20error!','_transformRemoteChangesetByIMECache','_undoRedoService','collaMsg','searchParams','transformIMECache','getActiveSheet','isActive','whenReady','activeSheet$','hovered','_document','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','_socket','stringify','_removeCollabCursors','dispose','not_collab','_getMergeRange','RECV','INTERNAL_ERROR','parse','getViewport','MoveRangeCommandId','[OfflineState]:\x20received\x20rejection.','change$','changesets','DeleteRangeMoveUpCommandId','append','none','_disableEditing','_redoStacks','HEARTBEAT_INTERVAL','sheetId','_saveTaskMap','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_send','getUnitId','_getRedoStack','LICENSE_MAX_UNITS_EXCEEDED','UNKNOWN_CODE','_clearTimeoutTimer','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','collaboratorID','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','url','_sendHeartbeat','synced','_anchorDot','FETCH_MISS','FETCH_MISSING','black','propertyIsEnumerable','OTHER_CLIENTS_EDITING','getImageSourceCache','_submitChangeset','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','RETRY_CONNECTING_INTERVAL','onMouseMove','_scheduleClearOtherTimer','reject','event$','LICENSE_DISTRO_REJECTED','path','_session','hasOwnProperty','180eWCxye','registerHTTPInterceptor','COLLAB_SUBMIT_CHANGESET_URL','getUnitStatus$','measureText','next','M0\x200H16V16H0z','_onConnectionFailed','editing\x20status\x20changed\x20to','CONNECTOR_DATA_TOO_LARGE','UNIVER_SHEET','_scheduleTimestamp','getRelativeCoord','_docSyncEditingCollabCursorService','roomInfos','updateMember','1170284YUZZaj','_imageSourceCache','random','loadOfflineData','?size=','_toggleOnline','pending','filter','enableOfflineEditing','createCollaborator','AWAITING_WITH_PENDING','_drawRange','clear','params','fetch_missing','liveShareNewHost','CHANGESET_REJ','[CollaborationSessionService]','getImage','_handleEvent','baseRev','_onRecvEvent','currentSkeleton$','image/bmp','_members','_renderManagerService','getMergeData','getValue','_cachedData','_commandService','_syncEditingCollabCursor','_transformUndoRedoStack','InsertRangeMoveRightCommandId','setCurrentUser','_substituteUndoStack','evenodd','registerComponent','_change$','_retryCount','saveSnapshot','history','_colorIndex','lineTo','_selfUnitIDs','/universer-api/authz','[PendingState]:\x20received\x20acknowledgement.','_startCollaboration','startColumn','status','LIVESHARE_FETCH_OPERATIONS','_createSocket','awaiting_with_pending','_socketReady','reduce','data','_config','UNIVER_DOC','defineProperty','className','3009992lmFRDv','pauseCollaboration','ALREADY_EXISTS','308jCecvV','encode','close','_lockTransition','override','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','onlineStatusTitle','_removeRoom','jiqing500','fetchMissingChangesets','_updateURLWithCurrentState','awaiting','result','top','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_isPermissionRej','HEADER_MENU','_collaborationController','/new_changes','[DataLoaderController]','json','userID','objects','transformMutation','_onRefRangeChange','_incrementRevisionNumber','_color','...','MUTATION','off-line-single_clip0_910_343','_getCurrentRevision','subunit','INVALID_ARGUMENT','?url=','_getDocObject','image/gif','row','onCommandExecuted','generateRandomId','labelPosition','_substituteRedoStack','_syncEditingCollabCursorService','flatMap','getUnitOnRev','_userManagerService','error$','_messageService','addEventListener','CONFLICT','/object','arc','UNIVER_UNKNOWN','transformRemoteChangeset','_clearCollaborationTimeoutTimer','getSheetBySheetId','UNRECOGNIZED','AUTHZ_URL_KEY','length','/rev/','getCurrentRevForDocument','onRemoteChangeset','c2Prime','univer-online','children','state','_handleHeartbeatEvent','createInstance','\x20-\x20','_checkMissing','_rescheduleHeartbeatEvent','CHANGESET_ACK','_handleHover','_loadSheet','IDLE','/-/object/-/batch_allowed','leaveEvent','11OCgDLD','blue400','addObject','registerBeforeClose','LOGIN_URL_KEY','_docStateChangeManagerService','sheetID','COMPLETION_FINISHED','unit-cache-','PERMISSION_REJ','_themeService','syncEditingCollabCursor','c1Prime','LIVESHARE_OPERATION','getOffsetConfig','verdancy600','entries','unsubscribe','updatePermissionPoint','delete','unitId','_initModules','_updateStatus','_anchor','_updateCollabCursors','25flMyEK','image/jpg','message$','subscribe','newCsEvent','_assignedColors','getCurrent','doc.mutation.rich-text-editing','fetchThroughInterceptors','_cursors','_queuedRemoteChangesets','INGEST','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','clearTimeout','getRoom','endColumn','function','Error','has','getScrollXYByRelativeCoords','restore','NEW_CHANGESETS','collab-text-anchor-','joinEvent','_remoteChangesetQueue','UUID','univer-pro.collaboration-client-socket-service','_notificationService','_collaborationTimeoutTimer','show','name','onStarting','_singleActiveUnitService','open$','sheets','_commentUpdate$','getRenderById','_removeClearOtherTimer','NOT_COLLAB','_permissionService','NO_OTHER_CLIENTS_EDITING','uni.network.url-service','commentUpdate$','_online','resend','newValue','univer-pro.collaboration-client.single-active-unit-service','getMemberID','_refRangeService','getOwnPropertyDescriptor','onRemoteRej','ONLINE','fetching\x20missing\x20changesets\x20from\x20','_getSaveTimeout','_roomMembers','column','univer-online-status','_state$','add','conflict.title','collab-text-range-','_getSendChangesetTimeout','_univerInstanceService','USERS_LEAVE','saveImage','beginPath','getRangePointData','bottom','LIVESHARE_NEW_HOST','size','from','_cursor','batchAllowed','setInterval','/collaborator','_colorAssignService','_clearHeartbeatTimer','_sheetTransformSelectionsService','url(#$1','YUUMI_URL_COL_OUT_OF_RANGE','getSheetBlock','displayName','subscribeEvent','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_onRemoteChangeset','_scene','removeParam','/fetchmissing?from=','OFFLINE','_onCursorDelete','_getLoginPath','getCurrentUser','enableSingleActiveInstanceLock','HEARTBEAT','getItem','Starting','_setupBeforeClosingHandler','onTransformSelections','body','[OfflineState]:\x20received\x20acknowledgement.','/universer-api/snapshot','_getAnchorBounding','_docSkeletonManagerService','#fff','onSendChangeset','AWAITING','LIVESHARE_REQUEST_HOST','status$','unload','APPLY_PERMISSION_DENIED','univerjs-icon\x20univerjs-icon-','_saveCache','split','_onUserLeave','TOO_MANY_REQUESTS','originalMeta','getTypeOfUnitDisposed$','translate(.97)','[CollaborationEntity]','_applyRemoteChangeset','currentColor','OffLineSingle','/unit/','COLLAB_WEB_SOCKET_URL','_entities','_roomMembers$','asObservable','pipe','getUniverSheetInstance','clearInterval','\x20to\x20','_localStorageService','_compressMutationService','SUBMIT_CHANGESET','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_textBubble','rev','requireSession','_onConflict','incrementRevForDocument','onSyncEditingCollabCursor','_pendingMutations','JOIN','getCurrentUnitForType','cursorInfo$','HEARTBEAT_TIMEOUT','call','cmd','HELLO','session.collaboration-timeout','getDataModel','univer-online-status-title','_snapshotService','COMPRESS_MUTATION_APPLY','putCollaborators','_scheduleCollaborationTimeoutTimer','_updateLocalCache','isPermissionRej','_awaitingChangeset','_socketMessageSubscription','fromCollab','permission.content','on-line-single_clip0_910_349','_handler','unitID','_onMessage','onlineStatus','sessionStatus$','_clearLocalCache','_shapes','Ready','_transitionLocked','LICENSE_IMPORT_SIZE_EXCEEDED','toString','\x0aCurrent:\x20','_heartbeatTimer','session.room-full','2500425WpmCRC','_collaborationPaused','getUnitType','RETRY_CONNECTING_MAX_COUNT','idSuffix','updateOfflineData','readAsDataURL','selections','saveOfflineData','_createInitialStateImpl','_showConflictNotification','urlChange$','contains','_updateSubUnitFromURLParams','collabStatus.synced','setParam','key','skeleton','on-line-single','DEFAULT_FILE_NAME','_decreaseWaiting','_localCacheService','getCollabCursors$','href','_handleJoinEvent','substring','APPLY_REJECT','&to=','PENDING','_toggleOffline','find','concat','getTypeOfUnitAdded$','_labelPosition','map','xlink:href','disposeWithMe','drawWith','_socket$','enableAuthServer','csRejEvent','_onRemoteACK','assign','editingUnit','_exhaustSavingTask','[OfflineState]:\x20received\x20changeset.','_waitForHeartbeatResponse','_id','transformChangesets','_httpService','JOINING','COMMENT_UPDATE','_initStatusListener','EXCHANGE_SIGN_URL_SERVER_URL_KEY','UniverIcon','_scheduleReconnection','deepClone','/object/','_configService','_range','VIEW_MAIN','_logService','objectID','transformMutationsWithChangeset','_getSnapshotAPIPrefix','_ws','UNDEFINED','_replaceFileID','includes','isArray','transformSelections','fillText','text','loadSheet','unknown','Steady','_http','textRanges','_hideTimer','onload','routeKey','getInterceptPoints','permission.title','executeCommand','_transformSelections','InsertColCommandId','8516yRLYOS','clipPath','SEND_CHANGESET_TIMEOUT','_revisionService','_socketService','SNAPSHOT_INVALID_SNAPSHOT','online','_draw','cursorInfo','type','updateCursorEvent','InsertRowCommandId','_getCtorByUniverType','code','permissionRejEvent','_memberService','socket\x20close','init','members','_beforeCloseService','color','toggleOffline','post','getAncestorScale','workbook','_sessions','addImageSourceCache','_loadDoc','getMember','auth.needGotoLoginAlert','deleteCollaborator','_getSignURL','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getResourcesRequest','onStateChange','values','indexOf','_HTTPService','colorChannel1','_onRemoteRejected','_handleLeaveEvent','onMissedChangesetFetched','createSocket','COMPRESS_MUTATION_SEND','_eventUnsubscribe','m1Prime','_render','_scheduleSaving','collabStatus.offline','getActiveRange','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','setTimeout','list','collaboration.single-unit.warning','198828kNaOZo','memberID','defs','_collabSessionService','onTransformRemoteChangesetByIMECache','APPLY_NON_SEQUENTIAL_REVISION','NOT_FOUND','font','getTime','_docTransformIMECacheService','replaceState','_name','_init','_entityInit$','SNAPSHOT_HAS_BEEN_REMOVED','_executeRemoteChangeset','closePath','_startSheetCollabCursor','_sendingTimer','collabStatus.notCollab','_getSheetObject','ranges','ERROR_IMAGE_TYPE','session','_onCombEvent','actions','unit','confirm','RemoveRowCommandId','univer-online-status-icon','disableLocalCache','disposeUnit','_sheetSkeletonManagerService','roomMembers','_setupSubUnitSync','failed\x20to\x20apply\x20missed\x20changesets!','url(#on-line-single_clip0_910_349)','addObjects','_hovered','max','_scheduleHeartbeat','setActiveRange','sessionStatus','localeService','RemoveColCommandId','put','_ensureSubject','compose','send','with','Error\x20on\x20receiving\x20event','MSG_FOR_ERROR','m2Prime','_uiPartsService','_commentService','moveTo','getConfig','_onLocalMutation','unshift','[CollaborationSession]','LIVESHARE_TERMINATE','_getAPIPrefix','icon','_state','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','{fileID}','/universer-api/stream/file/upload','/-/object/list','setUndoRedoMutationParamsCache','save','_snapshotServerService','UPDATE_CURSOR','prototype','liveShareOperation','onPointerEnter$','enableLocalCache','BASE64','registerRefRange','toggleOnline','extend','_acknowledgedAwaitingChangeset','_sendHeartbeatTimer','height','popstate','catch','min','listRoles','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getSheetId','setItem','encodeURIComponent','_timeoutTimer','_collabCursorController','hide','DeleteRangeMoveLeftCommandId','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','off-line-single','svg','_retryConnectingTimer','gold400','_hover','round','_getAPIPrefixPath','FromArray','[CollaborationState]:\x20apply\x20error!','attrs','FileId','[SyncedState]:\x20received\x20acknowledgement.','ERROR_EXCEED_SIZE','[PendingState]:\x20received\x20rejection.','setWaitCount','selection','roles','getParam','fill','removeMember','fillStyle','_fetchMissChangesets','_cursorInfo$','isEditing','connection\x20error','_onUserJoin','div','offline','_lastPointer','saveChangeset','getFocusedUnit','_undoStacks','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_getScale','0\x200\x2017\x2016','awaitingChangeset','_urlService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','all','joinRsp','/universer-api/oidc/authpage','collaborationUniverTypes','complete','_onJoinRoomEvent','CHANGESET_REVISION_CONFILICT','_disabled','getOwnPropertySymbols','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_createHandler','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getCollabEntity$','USERS_ENTER','push','createElement','_updateState','eventID','_clearRedo','_unitOnClients','_exhaustRemoteChangesetQueue','objectType','LICENSE_EXPORT_SIZE_EXCEEDED','FAIL','file','_transformUndoredo','_schedule','collabStatus.conflict','getSelections','image/jpeg','range','_transformPreviousActiveRange','UNKNOWN_CMD','_onFetchMissResult','roomMembers$','_onConnectionOpen','SYNCED','_drawAnchor','width','_unlockTransition','PSEUDO_FETCH_MISSING_RESULT','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_getUploadFileURL','UNIVER_SLIDE','current','_replayCachedMutations','_clearUndo','[PendingState]:\x20unhandled\x20univer\x20type:\x20','1em','defIds','forEach','10267310bPkzGe','onRemoteAck','_type','_injector','set','_collabCursorState$','csAckEvent','_transformStack','getCollabEntity','_unitId','create','then','\x20in\x20_schedule.','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','LEAVE','SNAPSHOT_URL_KEY','Warning','\x0aAfter:\x20','replace','revision','_unitID','onPointerLeave$','UNAUTHENTICATED','location','_clearScheduledTask','_sessionStatus$','_createInitialState','focused$','triggerDblclick'];_0x438e=function(){return _0x471b9e;};return _0x438e();}import{Inject as _0x558bc4,createIdentifier as _0x451f50,Injector as _0x4ead3f,Optional as _0x2cbf69}from'@wendellhu/redi';import{merge as _0x2e2fc7,Subject as _0x2ef673,BehaviorSubject as _0x2ae6a5,distinctUntilChanged as _0x362e05,fromEvent as _0x68731a,of as _0x41c67f,takeUntil as _0x26437e,debounceTime as _0x3c2ea7,filter as _0x4b51e3,switchMap as _0x3931dc,combineLatest as _0x45bbb6,shareReplay as _0x133b83,mapTo as _0x4225bf,concatMap as _0x3efc49}from'rxjs';import{map as _0x6aec6c,takeUntil as _0x380119,take as _0x1c0ea1,filter as _0x7426b5,delay as _0x4f7269,shareReplay as _0x4f7c12,switchMap as _0x5e300c}from'rxjs/operators';import{IMEInputManagerService as _0x25857e,TextSelectionManagerService as _0x4c35a6,serializeTextRange as _0x547357,DocStateChangeManagerService as _0x2a623e,SetTextSelectionsOperation as _0x3476b3,RichTextEditingMutation as _0x4f4c8f,getDocObject as _0xfcb5c7,DocSkeletonManagerService as _0x5e1842}from'@univerjs/docs';import{HTTPService as _0x180bd0,WebSocketService as _0x1ee783,IHTTPImplementation as _0xb8d666,XHRHTTPImplementation as _0x3c390c,ThresholdInterceptorFactory as _0x19e0db}from'@univerjs/network';import{ImageSourceType as _0x23f70d,ImageUploadStatusType as _0x2808dd,IImageIoService as _0x2325f4}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x511cc9,serializeRangeWithSheet as _0x2a0dc7}from'@univerjs/engine-formula';import _0x284565 from'lodash/debounce';import{Shape as _0x169d33,Rect as _0x274a4d,Vector2 as _0x27c809,IRenderManagerService as _0x3bdd8b,NodePositionConvertToCursor as _0x473a03,getColor as _0x960864,TEXT_RANGE_LAYER_INDEX as _0x3d5abd,RegularPolygon as _0xba4fd4}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x53c5c9,VIEWPORT_KEY as _0x594710,getCoordByCell as _0x53d697,getSheetObject as _0x2b1a41}from'@univerjs/sheets-ui';import{useDependency as _0x4e0bd3,connectInjector as _0x5254e3}from'@wendellhu/redi/react-bindings';import _0x103fdd,{forwardRef as _0x45e47d,useRef as _0x49f40c,createElement as _0x1b0b54}from'react';import _0x3c1621 from'clsx';import{IRemoteInstanceService as _0x4b3972}from'@univerjs/rpc';const Gi='SNAPSHOT_SERVER_URL_KEY',Yi=_0x29c6a6(0x4c1),Ki=_0x29c6a6(0x32b),Xi=_0x29c6a6(0x22f),Ji=0x7d0,zi=_0x29c6a6(0x4d8),Zi='ws://127.0.0.1:8000/universer-api/comb/connect',qi=_0x29c6a6(0x388),Qi=0x7530,Is=_0x29c6a6(0x4ee),Es=0x2710,en=_0x29c6a6(0x3a1),tn=0x4e20,sn=_0x29c6a6(0x1da),nn=0x3,rn='LOCAL_CACHE_INTERVAL',on=0x3e8,an=_0x29c6a6(0x3ac),cn='/universer-api/comb',hn=_0x29c6a6(0x448),ln=_0x29c6a6(0x2eb);var Cs=(_0x522787=>(_0x522787[_0x522787[_0x29c6a6(0x219)]=0x0]=_0x29c6a6(0x219),_0x522787[_0x522787['OK']=0x1]='OK',_0x522787[_0x522787[_0x29c6a6(0x37c)]=0x2]=_0x29c6a6(0x37c),_0x522787[_0x522787['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x522787[_0x522787[_0x29c6a6(0x269)]=0x4]='NOT_FOUND',_0x522787[_0x522787['UNAUTHENTICATED']=0x5]=_0x29c6a6(0x332),_0x522787[_0x522787[_0x29c6a6(0x3f7)]=0x6]=_0x29c6a6(0x3f7),_0x522787[_0x522787[_0x29c6a6(0x418)]=0x7]='INVALID_ARGUMENT',_0x522787[_0x522787[_0x29c6a6(0x4cf)]=0x8]='TOO_MANY_REQUESTS',_0x522787[_0x522787[_0x29c6a6(0x44b)]=0x9]='COMPLETION_FINISHED',_0x522787[_0x522787[_0x29c6a6(0x2ef)]=0x1389]=_0x29c6a6(0x2ef),_0x522787[_0x522787[_0x29c6a6(0x232)]=0x1771]=_0x29c6a6(0x232),_0x522787[_0x522787[_0x29c6a6(0x271)]=0x1772]=_0x29c6a6(0x271),_0x522787[_0x522787[_0x29c6a6(0x1f1)]=0x1b59]='APPLY_REJECT',_0x522787[_0x522787[_0x29c6a6(0x268)]=0x1b5a]=_0x29c6a6(0x268),_0x522787[_0x522787['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x522787[_0x522787[_0x29c6a6(0x4ca)]=0x1b5c]=_0x29c6a6(0x4ca),_0x522787[_0x522787['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x29c6a6(0x3b3),_0x522787[_0x522787[_0x29c6a6(0x38f)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x522787[_0x522787[_0x29c6a6(0x2e3)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x522787[_0x522787[_0x29c6a6(0x1d2)]=0x232b]=_0x29c6a6(0x1d2),_0x522787[_0x522787[_0x29c6a6(0x2ff)]=0x232c]=_0x29c6a6(0x2ff),_0x522787[_0x522787[_0x29c6a6(0x3a6)]=0x232d]=_0x29c6a6(0x3a6),_0x522787[_0x522787['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x522787[_0x522787[_0x29c6a6(0x4ac)]=0x2712]=_0x29c6a6(0x4ac),_0x522787[_0x522787[_0x29c6a6(0x42f)]=-0x1]=_0x29c6a6(0x42f),_0x522787))(Cs||{}),H=(_0x30793d=>(_0x30793d[_0x30793d[_0x29c6a6(0x42b)]=0x0]='UNIVER_UNKNOWN',_0x30793d[_0x30793d[_0x29c6a6(0x3f2)]=0x1]=_0x29c6a6(0x3f2),_0x30793d[_0x30793d['UNIVER_SHEET']=0x2]=_0x29c6a6(0x3b4),_0x30793d[_0x30793d[_0x29c6a6(0x314)]=0x3]=_0x29c6a6(0x314),_0x30793d[_0x30793d[_0x29c6a6(0x42f)]=-0x1]='UNRECOGNIZED',_0x30793d))(H||{}),I=(_0x12b4d2=>(_0x12b4d2[_0x12b4d2['UNKNOWN_CMD']=0x0]=_0x29c6a6(0x309),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x1ba)]=0x1]=_0x29c6a6(0x1ba),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x4eb)]=0x2]=_0x29c6a6(0x4eb),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x32a)]=0x3]=_0x29c6a6(0x32a),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x468)]=0x4]=_0x29c6a6(0x468),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x4ba)]=0x5]=_0x29c6a6(0x4ba),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x37b)]=0x6]=_0x29c6a6(0x37b),_0x12b4d2[_0x12b4d2[_0x29c6a6(0x42f)]=-0x1]=_0x29c6a6(0x42f),_0x12b4d2))(I||{}),Nt=(_0xfc2511=>(_0xfc2511[_0xfc2511['UNKNOWN_CODE']=0x0]=_0x29c6a6(0x390),_0xfc2511[_0xfc2511['OK']=0x1]='OK',_0xfc2511[_0xfc2511[_0x29c6a6(0x300)]=0x2]=_0x29c6a6(0x300),_0xfc2511[_0xfc2511[_0x29c6a6(0x42f)]=-0x1]='UNRECOGNIZED',_0xfc2511))(Nt||{}),_n=Object[_0x29c6a6(0x3f3)],un=Object[_0x29c6a6(0x48e)],dn=(_0x212a8d,_0x3fee49,_0x3e6cca,_0x3bf492)=>{const _0x1e2bff=_0x29c6a6;for(var _0x48fdcd=_0x3bf492>0x1?void 0x0:_0x3bf492?un(_0x3fee49,_0x3e6cca):_0x3fee49,_0x321233=_0x212a8d[_0x1e2bff(0x431)]-0x1,_0x5085b9;_0x321233>=0x0;_0x321233--)(_0x5085b9=_0x212a8d[_0x321233])&&(_0x48fdcd=(_0x3bf492?_0x5085b9(_0x3fee49,_0x3e6cca,_0x48fdcd):_0x5085b9(_0x48fdcd))||_0x48fdcd);return _0x3bf492&&_0x48fdcd&&_n(_0x3fee49,_0x3e6cca,_0x48fdcd),_0x48fdcd;},Wt=(_0x8a1025,_0x53ef44)=>(_0x27983f,_0x276b45)=>_0x53ef44(_0x27983f,_0x276b45,_0x8a1025);let ee=class extends _0xc93720{constructor(_0x4d0f96,_0x14cd35){const _0x2f6708=_0x29c6a6;super(),l(this,'_roomMembers',new Map()),(this['_univerInstanceService']=_0x4d0f96,this[_0x2f6708(0x424)]=_0x14cd35,this['disposeWithMe'](_0x359428(_0x2e2fc7(this['_univerInstanceService'][_0x2f6708(0x4d1)](_0x17600d[_0x2f6708(0x3b4)])[_0x2f6708(0x4dc)](_0x6aec6c(_0x2bb1dc=>_0x2bb1dc[_0x2f6708(0x38d)]())),this[_0x2f6708(0x49b)][_0x2f6708(0x4d1)](_0x17600d[_0x2f6708(0x3f2)])[_0x2f6708(0x4dc)](_0x6aec6c(_0x2bdce6=>_0x2bdce6[_0x2f6708(0x38d)]())),this['_univerInstanceService'][_0x2f6708(0x4d1)](_0x17600d['UNIVER_SLIDE'])[_0x2f6708(0x4dc)](_0x6aec6c(_0x49490f=>_0x49490f[_0x2f6708(0x38d)]())))[_0x2f6708(0x460)](_0x1ddf17=>this[_0x2f6708(0x3ff)](_0x1ddf17)))));}[_0x29c6a6(0x3db)](_0x1998c1){const _0x24a225=_0x29c6a6;this[_0x24a225(0x424)][_0x24a225(0x3db)](_0x1998c1);}[_0x29c6a6(0x4b8)](){const _0x3c76fc=_0x29c6a6;return this[_0x3c76fc(0x424)][_0x3c76fc(0x4b8)]();}[_0x29c6a6(0x3b9)](_0x4bf027,_0x138b04){const _0x1dc938=_0x29c6a6;let _0x4fb6a7=this[_0x1dc938(0x493)]['get'](_0x4bf027);_0x4fb6a7||(_0x4fb6a7=new fn(),this[_0x1dc938(0x493)]['set'](_0x4bf027,_0x4fb6a7)),_0x4fb6a7['updateMember'](_0x138b04);}['removeMember'](_0x19a15e,_0x46f601){const _0x33d335=_0x29c6a6,_0x3a48d7=this[_0x33d335(0x493)][_0x33d335(0x362)](_0x19a15e);_0x3a48d7&&_0x3a48d7[_0x33d335(0x2d6)](_0x46f601);}[_0x29c6a6(0x46b)](_0x500603){const _0x3cdc83=_0x29c6a6;return this[_0x3cdc83(0x493)][_0x3cdc83(0x362)](_0x500603);}[_0x29c6a6(0x249)](_0x38cf7b,_0x588f50){const _0x6adf0d=_0x29c6a6,_0x3226d7=this[_0x6adf0d(0x493)][_0x6adf0d(0x362)](_0x38cf7b);if(_0x3226d7)return _0x3226d7[_0x6adf0d(0x249)](_0x588f50);}['_removeRoom'](_0x2cc273){const _0x329ce2=_0x29c6a6,_0x359ef5=this[_0x329ce2(0x493)][_0x329ce2(0x362)](_0x2cc273);_0x359ef5&&(_0x359ef5['dispose'](),this[_0x329ce2(0x493)][_0x329ce2(0x457)](_0x2cc273));}['dispose'](){const _0x540606=_0x29c6a6;this[_0x540606(0x493)][_0x540606(0x31b)](_0x3e36d9=>_0x3e36d9[_0x540606(0x378)]()),this[_0x540606(0x493)][_0x540606(0x3c6)]();}};ee=dn([Wt(0x0,_0x33e391),Wt(0x1,_0x558bc4(_0x24fbbe))],ee);class fn extends _0xc93720{constructor(){const _0x15295e=_0x29c6a6;super(...arguments),l(this,_0x15295e(0x3d2),new Map());}[_0x29c6a6(0x378)](){const _0x10ffa6=_0x29c6a6;this[_0x10ffa6(0x3d2)][_0x10ffa6(0x3c6)]();}[_0x29c6a6(0x3b9)](_0x35fac7){const _0x2af3a8=_0x29c6a6;this['_members'][_0x2af3a8(0x320)](_0x35fac7[_0x2af3a8(0x264)],_0x35fac7);}[_0x29c6a6(0x2d6)](_0x480c77){const _0x5ebe18=_0x29c6a6;this[_0x5ebe18(0x3d2)][_0x5ebe18(0x457)](_0x480c77);}[_0x29c6a6(0x249)](_0xfeb500){const _0x328c40=_0x29c6a6;return this[_0x328c40(0x3d2)][_0x328c40(0x362)](_0xfeb500);}}function gn(_0x373106){const _0x586f87=_0x29c6a6;var _0x2498fc,_0x4a78b0,_0x4008a6,_0x5437ca;const _0x30bd5a=_0x373106[_0x586f87(0x3f0)],_0x34b29a=JSON[_0x586f87(0x37d)](_0x30bd5a);switch(_0x34b29a['cmd']){case I[_0x586f87(0x4ba)]:case I['HELLO']:{const _0x4deb55=_0x34b29a['infoRsp'];return{..._0x34b29a,'data':_0x4deb55,'cmd':_0x34b29a[_0x586f87(0x1b9)]};}case I[_0x586f87(0x4eb)]:{const _0x286fd7=_0x34b29a[_0x586f87(0x2ea)];return{..._0x34b29a,'data':_0x286fd7,'cmd':_0x34b29a[_0x586f87(0x1b9)]};}case I[_0x586f87(0x37b)]:{const _0x58531e=_0x34b29a[_0x586f87(0x36b)];switch(_0x58531e[_0x586f87(0x2fa)]){case _0x5911b8[_0x586f87(0x44d)]:return{..._0x34b29a,'data':{..._0x58531e,'data':(_0x2498fc=_0x58531e[_0x586f87(0x23b)])==null?void 0x0:_0x2498fc['cs']},'cmd':_0x34b29a['cmd']};case _0x5911b8[_0x586f87(0x43e)]:return{..._0x34b29a,'data':{..._0x58531e,'data':(_0x4a78b0=_0x58531e[_0x586f87(0x322)])==null?void 0x0:_0x4a78b0['cs']},'cmd':_0x34b29a['cmd']};case _0x5911b8['NEW_CHANGESETS']:return{..._0x34b29a,'data':{..._0x58531e,'data':(_0x4008a6=_0x58531e[_0x586f87(0x461)])==null?void 0x0:_0x4008a6['cs']},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8['CHANGESET_REJ']:return{..._0x34b29a,'data':{..._0x58531e,'data':(_0x5437ca=_0x58531e[_0x586f87(0x1ff)])==null?void 0x0:_0x5437ca['cs']},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8[_0x586f87(0x2aa)]:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e[_0x586f87(0x237)]},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8[_0x586f87(0x2f6)]:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e[_0x586f87(0x474)]},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8[_0x586f87(0x49c)]:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e[_0x586f87(0x443)]},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8['LIVESHARE_NEW_HOST']:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e[_0x586f87(0x3c9)]},'cmd':_0x34b29a['cmd']};case _0x5911b8[_0x586f87(0x3eb)]:case _0x5911b8[_0x586f87(0x451)]:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e[_0x586f87(0x2ac)]},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8[_0x586f87(0x29f)]:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e[_0x586f87(0x3c9)]},'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8[_0x586f87(0x296)]:return{..._0x34b29a,'data':_0x58531e,'cmd':_0x34b29a[_0x586f87(0x1b9)]};case _0x5911b8[_0x586f87(0x20a)]:return{..._0x34b29a,'data':{..._0x58531e,'data':_0x58531e['commentUpdateEvent']},'cmd':_0x34b29a[_0x586f87(0x1b9)]};default:return _0x34b29a;}}default:return _0x34b29a;}}function mn(_0x3faf8e){const _0x47937c=_0x29c6a6;switch(_0x3faf8e[_0x47937c(0x1b9)]){case I['HEARTBEAT']:case I[_0x47937c(0x1ba)]:return JSON['stringify']({'cmd':_0x3faf8e['cmd'],'routeKey':_0x3faf8e[_0x47937c(0x227)]});case I[_0x47937c(0x468)]:{let _0x25e249;switch(_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x2fa)]){case _0x5911b8[_0x47937c(0x2aa)]:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x2aa)],'updateCursorEvent':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x3f0)]};break;}case _0x5911b8[_0x47937c(0x49c)]:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x49c)],'leaveEvent':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x3f0)]};break;}case _0x5911b8[_0x47937c(0x2f6)]:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x2f6)],'joinEvent':_0x3faf8e['data']['data']};break;}case _0x5911b8['LIVESHARE_NEW_HOST']:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x4a1)],'liveShareNewHost':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x3f0)]};break;}case _0x5911b8['LIVESHARE_OPERATION']:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x451)],'liveShareOperation':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x3f0)]};break;}case _0x5911b8[_0x47937c(0x29f)]:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x29f)],'liveShareTerminate':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x3f0)]};break;}case _0x5911b8[_0x47937c(0x4c7)]:{_0x25e249={'eventID':_0x5911b8['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x3f0)]};break;}case _0x5911b8[_0x47937c(0x3eb)]:{_0x25e249={'eventID':_0x5911b8[_0x47937c(0x3eb)]};break;}default:_0x25e249={'eventID':_0x3faf8e[_0x47937c(0x3f0)][_0x47937c(0x2fa)]};}return JSON[_0x47937c(0x376)]({'cmd':_0x3faf8e['cmd'],'routeKey':_0x3faf8e[_0x47937c(0x227)],'collaMsg':_0x25e249});}case I[_0x47937c(0x4eb)]:return JSON['stringify']({'cmd':_0x3faf8e[_0x47937c(0x1b9)],'routeKey':_0x3faf8e[_0x47937c(0x227)],'joinReq':_0x3faf8e['data']});case I[_0x47937c(0x32a)]:return JSON['stringify']({'cmd':_0x3faf8e[_0x47937c(0x1b9)],'routeKey':_0x3faf8e['routeKey'],'leaveReq':_0x3faf8e[_0x47937c(0x3f0)]});default:throw new Error(_0x47937c(0x4b0));}}var Sn=Object[_0x29c6a6(0x3f3)],vn=Object['getOwnPropertyDescriptor'],pn=(_0xace02d,_0x4e305e,_0x22fb74,_0x8849fa)=>{const _0x44ea25=_0x29c6a6;for(var _0x38549e=_0x8849fa>0x1?void 0x0:_0x8849fa?vn(_0x4e305e,_0x22fb74):_0x4e305e,_0x37bb79=_0xace02d[_0x44ea25(0x431)]-0x1,_0x264c61;_0x37bb79>=0x0;_0x37bb79--)(_0x264c61=_0xace02d[_0x37bb79])&&(_0x38549e=(_0x8849fa?_0x264c61(_0x4e305e,_0x22fb74,_0x38549e):_0x264c61(_0x38549e))||_0x38549e);return _0x8849fa&&_0x38549e&&Sn(_0x4e305e,_0x22fb74,_0x38549e),_0x38549e;},me=(_0x457103,_0x1d5617)=>(_0xe000a3,_0x2d65b6)=>_0x1d5617(_0xe000a3,_0x2d65b6,_0x457103);const bs=_0x451f50(_0x29c6a6(0x477));function In(_0x357977,_0x48e74f,_0x59725c){const _0x48de=_0x29c6a6;return _0x357977+'/'+_0x48e74f+_0x48de(0x4d7)+_0x59725c+_0x48de(0x40a);}let _t=class{constructor(_0x359a23,_0x494236,_0x2556b4,_0x5967ef,_0x1eb8d8){const _0x6804f6=_0x29c6a6;this[_0x6804f6(0x223)]=_0x359a23,this[_0x6804f6(0x218)]=_0x494236,this[_0x6804f6(0x211)]=_0x2556b4,this[_0x6804f6(0x214)]=_0x5967ef,this[_0x6804f6(0x2a9)]=_0x1eb8d8;}[_0x29c6a6(0x257)](_0x3282f3){const _0x1fedd4=_0x29c6a6,_0x26090e=this[_0x1fedd4(0x218)][_0x1fedd4(0x257)](_0x3282f3);if(!_0x26090e)throw new Error(_0x1fedd4(0x3fd));const _0x5d5924=new _0x3543bd(),_0x1fad41=new _0x2ef673();_0x5d5924[_0x1fedd4(0x497)](_0x359428(_0x26090e['close$']['subscribe'](_0x27a99d=>_0x1fad41['next'](_0x27a99d)))),_0x5d5924[_0x1fedd4(0x497)](_0x359428(()=>_0x1fad41[_0x1fedd4(0x2ed)]()));const _0x5c7d1b=new _0x2ef673();_0x5d5924[_0x1fedd4(0x497)](_0x359428(_0x26090e[_0x1fedd4(0x425)][_0x1fedd4(0x460)](_0x19bd38=>_0x5c7d1b[_0x1fedd4(0x3af)](_0x19bd38)))),_0x5d5924['add'](_0x359428(()=>_0x5c7d1b[_0x1fedd4(0x2ed)]()));const _0x8203ce=new _0x2ef673();_0x5d5924['add'](_0x359428(_0x26090e[_0x1fedd4(0x45f)]['subscribe'](_0x47972c=>{const _0x5c1d24=_0x1fedd4,_0xbbd18b=gn(_0x47972c);_0x8203ce[_0x5c1d24(0x3af)](_0xbbd18b);}))),_0x5d5924['add'](_0x359428(()=>_0x8203ce[_0x1fedd4(0x2ed)]()));const _0x3ac2ee=()=>{const _0x2adc63=_0x1fedd4;_0x5c7d1b[_0x2adc63(0x3af)](new Event(_0x2adc63(0x2db))),_0x1fad41[_0x2adc63(0x3af)](new CloseEvent(_0x2adc63(0x2db))),_0x5e49b1['close']();},_0x5e49b1={'memberID':'','close$':_0x1fad41[_0x1fedd4(0x4db)](),'error$':_0x5c7d1b[_0x1fedd4(0x4db)](),'open$':_0x26090e[_0x1fedd4(0x47e)],'message$':_0x8203ce[_0x1fedd4(0x4db)](),'send':_0x78f310=>{const _0x463830=_0x1fedd4;if(_0x78f310[_0x463830(0x1b9)]===I[_0x463830(0x468)]){if(_0x78f310[_0x463830(0x3f0)][_0x463830(0x2fa)]===_0x5911b8[_0x463830(0x4e2)]){this[_0x463830(0x39f)](_0x5e49b1,_0x78f310[_0x463830(0x3f0)])[_0x463830(0x2b7)](_0x323e23=>{const _0x5676a7=_0x463830;this[_0x5676a7(0x214)][_0x5676a7(0x35b)](_0x323e23),_0x3ac2ee();});return;}if(_0x78f310[_0x463830(0x3f0)][_0x463830(0x2fa)]===_0x5911b8['FETCH_MISSING']){const _0x559d95=_0x78f310[_0x463830(0x3f0)];this[_0x463830(0x2d8)](_0x559d95)[_0x463830(0x327)](_0x32c304=>{const _0x1b6ebc=_0x463830;_0x8203ce['next']({'cmd':I[_0x1b6ebc(0x37b)],'code':Nt['OK'],'routeKey':_0x559d95[_0x1b6ebc(0x3f0)][_0x1b6ebc(0x1ca)],'routeType':'','data':{'eventID':_0x5911b8[_0x1b6ebc(0x311)],'data':{'changesets':_0x32c304}}});})[_0x463830(0x2b7)](_0x48dfa4=>{const _0x399ea2=_0x463830;this[_0x399ea2(0x214)][_0x399ea2(0x35b)](_0x48dfa4),_0x3ac2ee();});return;}}_0x26090e[_0x463830(0x293)](mn(_0x78f310));},'close':()=>{const _0x1cd768=_0x1fedd4;_0x26090e[_0x1cd768(0x3fa)](),_0x5d5924[_0x1cd768(0x378)]();}};return _0x5e49b1;}async['_submitChangeset'](_0x1ebc9c,_0x2fc687){const _0x40270e=_0x29c6a6;var _0x2a3354;const {unitType:_0x1919cb,unitID:_0x142139,changeset:_0x6d91c3}=_0x2fc687[_0x40270e(0x3f0)],_0x2f9124={'unitID':_0x142139,'memberID':_0x1ebc9c[_0x40270e(0x264)],'type':_0x1919cb,'changeset':_0x12ffd7(_0x6d91c3)},_0x5106e8=In((_0x2a3354=this[_0x40270e(0x211)]['getConfig'](an))!=null?_0x2a3354:cn,_0x1919cb,_0x142139);try{await this['_http'][_0x40270e(0x243)](_0x5106e8,{'body':_0x2f9124});}catch(_0x267b27){throw this[_0x40270e(0x214)][_0x40270e(0x35b)](_0x40270e(0x29e),_0x40270e(0x368)),_0x267b27;}}async[_0x29c6a6(0x2d8)](_0x4e5276){const _0x1b6801=_0x29c6a6,{unitID:_0x202818,from:_0xb0342d,to:_0x5972be,unitType:_0x54e48b}=_0x4e5276[_0x1b6801(0x3f0)];return(await this[_0x1b6801(0x2a9)][_0x1b6801(0x401)]({'metadata':void 0x0},{'unitID':_0x202818,'type':_0x54e48b,'from':_0xb0342d,'to':_0x5972be}))['changesets'];}};_t=pn([me(0x0,_0x558bc4(_0x180bd0)),me(0x1,_0x558bc4(_0x1ee783)),me(0x2,_0x575c32),me(0x3,_0x2125ae),me(0x4,_0x2e217d)],_t);class Rs{constructor(){const _0x59faac=_0x29c6a6;l(this,_0x59faac(0x480),new _0x2ef673()),l(this,_0x59faac(0x487),this['_commentUpdate$'][_0x59faac(0x4db)]());}[_0x29c6a6(0x346)](_0x5a95d0){const _0x40e3ba=_0x29c6a6;this['_commentUpdate$'][_0x40e3ba(0x3af)](_0x5a95d0);}}var En=Object['defineProperty'],Cn=Object[_0x29c6a6(0x48e)],Ts=(_0x38ce78,_0x231985,_0x5d096c,_0x5bb2a1)=>{const _0x5c124f=_0x29c6a6;for(var _0x34f8f6=_0x5bb2a1>0x1?void 0x0:_0x5bb2a1?Cn(_0x231985,_0x5d096c):_0x231985,_0x57f271=_0x38ce78[_0x5c124f(0x431)]-0x1,_0x158a60;_0x57f271>=0x0;_0x57f271--)(_0x158a60=_0x38ce78[_0x57f271])&&(_0x34f8f6=(_0x5bb2a1?_0x158a60(_0x231985,_0x5d096c,_0x34f8f6):_0x158a60(_0x34f8f6))||_0x34f8f6);return _0x5bb2a1&&_0x34f8f6&&En(_0x231985,_0x5d096c,_0x34f8f6),_0x34f8f6;},M=(_0x1a1bf6,_0xbe3ce6)=>(_0x100cff,_0x4115bb)=>_0xbe3ce6(_0x100cff,_0x4115bb,_0x1a1bf6),_e=(_0xc7e068=>(_0xc7e068[_0xc7e068[_0x29c6a6(0x441)]=0x0]=_0x29c6a6(0x441),_0xc7e068[_0xc7e068[_0x29c6a6(0x209)]=0x1]=_0x29c6a6(0x209),_0xc7e068[_0xc7e068[_0x29c6a6(0x4b5)]=0x2]=_0x29c6a6(0x4b5),_0xc7e068[_0xc7e068[_0x29c6a6(0x490)]=0x3]=_0x29c6a6(0x490),_0xc7e068))(_e||{});let ut=class extends _0x39fd47{constructor(_0x4f5029,_0x2788c8,_0x2dce1c,_0x124853,_0xce39c9,_0x4e8c24,_0x369871,_0x186963,_0x10b24e){const _0x272c9b=_0x29c6a6;super(),l(this,_0x272c9b(0x335),new _0x2ae6a5(0x0)),l(this,_0x272c9b(0x1cd),this[_0x272c9b(0x335)][_0x272c9b(0x4db)]()),l(this,'_event$',new _0x2ef673()),l(this,_0x272c9b(0x3a5),this[_0x272c9b(0x343)][_0x272c9b(0x4db)]()),l(this,_0x272c9b(0x375)),l(this,'_socketMessageSubscription'),l(this,_0x272c9b(0x479)),(this[_0x272c9b(0x330)]=_0x4f5029,this[_0x272c9b(0x214)]=_0x2dce1c,this[_0x272c9b(0x240)]=_0x124853,this[_0x272c9b(0x426)]=_0xce39c9,this['_configService']=_0x4e8c24,this[_0x272c9b(0x357)]=_0x369871,this[_0x272c9b(0x23c)]=_0x186963,this[_0x272c9b(0x299)]=_0x10b24e,_0x2788c8['pipe'](_0x380119(this[_0x272c9b(0x33a)]))[_0x272c9b(0x460)](_0x21b01a=>{const _0x2911ed=_0x272c9b;var _0x4e385b;typeof _0x21b01a>'u'||(this[_0x2911ed(0x375)]=_0x21b01a,_0x21b01a?(this['_joinRoom'](_0x21b01a),this['_socketMessageSubscription']=this[_0x2911ed(0x375)][_0x2911ed(0x45f)]['subscribe'](_0x430d40=>{const _0x54929d=_0x2911ed;_0x430d40['routeKey']===this[_0x54929d(0x330)]&&this[_0x54929d(0x27b)](_0x430d40);})):(this['_sessionStatus$']['next'](0x2),(_0x4e385b=this[_0x2911ed(0x1c5)])==null||_0x4e385b[_0x2911ed(0x455)](),this[_0x2911ed(0x1c5)]=null));}),this[_0x272c9b(0x1fb)](this['_beforeCloseService']['registerOnClose'](()=>{const _0x33e5ea=_0x272c9b;var _0x155ab4;(_0x155ab4=this[_0x33e5ea(0x375)])==null||_0x155ab4[_0x33e5ea(0x293)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x33e5ea(0x330)]}});})));}get[_0x29c6a6(0x28d)](){const _0x1f100c=_0x29c6a6;return this[_0x1f100c(0x335)][_0x1f100c(0x3d5)]();}[_0x29c6a6(0x48c)](){const _0x52fc22=_0x29c6a6;var _0x3ab918,_0x585dfd;return(_0x585dfd=(_0x3ab918=this[_0x52fc22(0x375)])==null?void 0x0:_0x3ab918[_0x52fc22(0x264)])!=null?_0x585dfd:null;}[_0x29c6a6(0x378)](){const _0x4b9490=_0x29c6a6;super['dispose'](),this[_0x4b9490(0x33a)][_0x4b9490(0x3af)](),this[_0x4b9490(0x33a)]['complete']();}[_0x29c6a6(0x27b)](_0x550df4){const _0x5e6226=_0x29c6a6;_0x550df4['cmd']===I[_0x5e6226(0x4eb)]?this['_onJoinRoomEvent'](_0x550df4):_0x550df4[_0x5e6226(0x1b9)]===I[_0x5e6226(0x37b)]&&this['_onRecvEvent'](_0x550df4);}[_0x29c6a6(0x364)](_0x76c5d){const _0x1c173c=_0x29c6a6;this[_0x1c173c(0x335)][_0x1c173c(0x3af)](0x1),_0x76c5d[_0x1c173c(0x293)]({'cmd':I[_0x1c173c(0x4eb)],'routeKey':this[_0x1c173c(0x330)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x29c6a6(0x2ee)](_0x5d6a45){const _0x34eda4=_0x29c6a6;var _0x163a40;if(_0x5d6a45[_0x34eda4(0x23a)]===Nt[_0x34eda4(0x300)]){this[_0x34eda4(0x426)][_0x34eda4(0x47a)]({'type':_0x15c0da[_0x34eda4(0x32c)],'content':this[_0x34eda4(0x357)]['t'](_0x34eda4(0x1d6))}),this[_0x34eda4(0x335)][_0x34eda4(0x3af)](0x2);return;}this[_0x34eda4(0x335)]['next'](0x3);const _0x5f4439=(_0x163a40=_0x5d6a45[_0x34eda4(0x3f0)][_0x34eda4(0x3b8)][this[_0x34eda4(0x330)]])==null?void 0x0:_0x163a40[_0x34eda4(0x23f)];_0x5f4439&&_0x5f4439[_0x34eda4(0x31b)](_0x34ce30=>this['_memberService'][_0x34eda4(0x3b9)](this[_0x34eda4(0x330)],_0x34ce30));}[_0x29c6a6(0x3cf)](_0x119cf2){const _0x43aa28=_0x29c6a6;try{const _0x13f753=_0x119cf2[_0x43aa28(0x3f0)];switch(_0x13f753[_0x43aa28(0x2fa)]){case _0x5911b8['USERS_ENTER']:this[_0x43aa28(0x2dc)](_0x13f753),this['_event$'][_0x43aa28(0x3af)](_0x13f753);break;case _0x5911b8['USERS_LEAVE']:this[_0x43aa28(0x4ce)](_0x13f753),this[_0x43aa28(0x343)]['next'](_0x13f753);break;case _0x5911b8[_0x43aa28(0x43e)]:this[_0x43aa28(0x42d)](),this[_0x43aa28(0x343)][_0x43aa28(0x3af)](_0x13f753);break;case _0x5911b8['MSG_FOR_ERROR']:this[_0x43aa28(0x214)]['error']('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x13f753)),this[_0x43aa28(0x343)]['next'](_0x13f753);break;case _0x5911b8['COMMENT_UPDATE']:this[_0x43aa28(0x299)][_0x43aa28(0x346)](_0x13f753['data']),this[_0x43aa28(0x343)][_0x43aa28(0x3af)](_0x13f753);break;default:this[_0x43aa28(0x343)][_0x43aa28(0x3af)](_0x13f753);}}catch(_0x119c6e){this[_0x43aa28(0x214)][_0x43aa28(0x35b)](_0x119c6e,_0x119cf2);}}[_0x29c6a6(0x2dc)](_0x45aaa3){const _0x3b1889=_0x29c6a6;this[_0x3b1889(0x23c)]['updateMember'](this['_unitID'],_0x45aaa3[_0x3b1889(0x3f0)]);}[_0x29c6a6(0x4ce)](_0x54299c){const _0x46d04c=_0x29c6a6;this['_memberService'][_0x46d04c(0x2d6)](this['_unitID'],_0x54299c[_0x46d04c(0x3f0)][_0x46d04c(0x264)]);}async[_0x29c6a6(0x293)](_0x55b88b,_0x6b511a){const _0x17009d=_0x29c6a6;if(this[_0x17009d(0x28d)]!==0x3||!this[_0x17009d(0x375)])throw new Error(_0x17009d(0x329));try{_0x55b88b[_0x17009d(0x2fa)]===_0x5911b8[_0x17009d(0x472)]&&this[_0x17009d(0x1c1)](),this['_socket']['send']({'cmd':I[_0x17009d(0x468)],'routeKey':_0x6b511a,'routeType':'','data':_0x55b88b});}catch(_0x4acced){this[_0x17009d(0x214)][_0x17009d(0x35b)](_0x4acced);}}['_scheduleCollaborationTimeoutTimer'](){const _0x436c8e=_0x29c6a6;var _0x1635d9;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x229e96=_0x34fd;this[_0x229e96(0x479)]=null,this[_0x229e96(0x426)][_0x229e96(0x47a)]({'type':_0x15c0da[_0x229e96(0x46e)],'content':this['_localeService']['t'](_0x229e96(0x1bb))});},(_0x1635d9=this[_0x436c8e(0x211)][_0x436c8e(0x29b)](Is))!=null?_0x1635d9:Es);}['_clearCollaborationTimeoutTimer'](){const _0xd40d2=_0x29c6a6;this[_0xd40d2(0x479)]&&(clearTimeout(this[_0xd40d2(0x479)]),this[_0xd40d2(0x479)]=null);}};ut=Ts([M(0x2,_0x2125ae),M(0x3,_0x3ef89e),M(0x4,_0x367db8),M(0x5,_0x575c32),M(0x6,_0x558bc4(_0x2f64f)),M(0x7,_0x558bc4(ee)),M(0x8,_0x558bc4(Rs))],ut);let Re=class extends _0xc93720{constructor(_0x505143,_0x30a5dc,_0x4d686d,_0x5bd893,_0x45c023,_0x13b42c){const _0x40d3f9=_0x29c6a6;super(),l(this,'_socket$',new _0x2ae6a5(void 0x0)),l(this,_0x40d3f9(0x246),new Map()),l(this,_0x40d3f9(0x34e),new _0x2ae6a5(0x0)),l(this,_0x40d3f9(0x4c8),this[_0x40d3f9(0x34e)][_0x40d3f9(0x4db)]()),l(this,'_socketReady',!0x1),l(this,_0x40d3f9(0x2b4)),l(this,_0x40d3f9(0x2be)),l(this,_0x40d3f9(0x2c5)),l(this,_0x40d3f9(0x3e0),0x0),(this[_0x40d3f9(0x31f)]=_0x505143,this[_0x40d3f9(0x357)]=_0x30a5dc,this[_0x40d3f9(0x426)]=_0x4d686d,this[_0x40d3f9(0x214)]=_0x5bd893,this['_configService']=_0x45c023,this[_0x40d3f9(0x231)]=_0x13b42c);}get[_0x29c6a6(0x375)](){const _0x197ef6=_0x29c6a6;return this[_0x197ef6(0x1fd)]['getValue']();}['dispose'](){const _0x49a1ef=_0x29c6a6;super[_0x49a1ef(0x378)](),this[_0x49a1ef(0x246)]['forEach'](_0x18a20e=>_0x18a20e['dispose']()),this[_0x49a1ef(0x246)]['clear'](),this[_0x49a1ef(0x34e)]['complete']();}async[_0x29c6a6(0x4e6)](_0x21d680){const _0x56a588=_0x29c6a6;if(this[_0x56a588(0x246)]['has'](_0x21d680))return this['_sessions'][_0x56a588(0x362)](_0x21d680);this[_0x56a588(0x34b)]();const _0x320419=this[_0x56a588(0x31f)][_0x56a588(0x43a)](ut,_0x21d680,this['_socket$']['asObservable']());return this[_0x56a588(0x246)]['set'](_0x21d680,_0x320419),_0x320419;}['_createSocket'](){const _0x5c5c38=_0x29c6a6;var _0x3a7d05;const _0x495465=(_0x3a7d05=this[_0x5c5c38(0x211)][_0x5c5c38(0x29b)](zi))!=null?_0x3a7d05:Zi;return this['_socketService'][_0x5c5c38(0x257)](_0x495465);}[_0x29c6a6(0x34b)](){const _0x331c0b=_0x29c6a6;try{const _0x29979a=this[_0x331c0b(0x3ec)]();if(_0x29979a){const _0x3376d8=_0x29979a[_0x331c0b(0x293)];_0x29979a[_0x331c0b(0x293)]=_0x348c18=>(this[_0x331c0b(0x43d)](),_0x3376d8['apply'](_0x29979a,[_0x348c18])),_0x29979a[_0x331c0b(0x45f)][_0x331c0b(0x460)](_0x550919=>this[_0x331c0b(0x1cb)](_0x29979a,_0x550919)),_0x29979a[_0x331c0b(0x425)][_0x331c0b(0x4dc)](_0x1c0ea1(0x1))[_0x331c0b(0x460)](_0x4da20e=>this['_logService']['error']('[CollaborationSessionService]:\x20socket\x20error',_0x4da20e)),_0x29979a[_0x331c0b(0x47e)][_0x331c0b(0x4dc)](_0x1c0ea1(0x1))[_0x331c0b(0x460)](()=>{const _0x4f4374=_0x331c0b;this[_0x4f4374(0x30c)](_0x29979a);}),_0x29979a['close$'][_0x331c0b(0x4dc)](_0x1c0ea1(0x1))[_0x331c0b(0x460)](_0x16f3e4=>{const _0x73d18=_0x331c0b;this[_0x73d18(0x214)][_0x73d18(0x363)](_0x73d18(0x3cb),_0x73d18(0x23d),_0x16f3e4),this[_0x73d18(0x3b1)]();});}}catch(_0x4ae036){this['_logService'][_0x331c0b(0x35b)](_0x4ae036),this[_0x331c0b(0x3b1)]();}}[_0x29c6a6(0x30c)](_0x39585d){const _0x1149a6=_0x29c6a6;this['_logService']['debug'](_0x1149a6(0x3cb),'socket\x20open.'),_0x39585d['send']({'cmd':I[_0x1149a6(0x1ba)]}),this[_0x1149a6(0x43d)]();}['_onConnectionFailed'](){const _0x70522e=_0x29c6a6;var _0x5786a0;this['_status$'][_0x70522e(0x3af)](0x2),this[_0x70522e(0x1fd)][_0x70522e(0x3af)](null),this[_0x70522e(0x391)](),this[_0x70522e(0x4a9)](),this[_0x70522e(0x3ee)]=!0x1,this[_0x70522e(0x3e0)]<((_0x5786a0=this['_configService']['getConfig'](sn))!=null?_0x5786a0:nn)?(this[_0x70522e(0x20e)](this[_0x70522e(0x3e0)]),this[_0x70522e(0x3e0)]+=0x1):this['_messageService'][_0x70522e(0x47a)]({'type':_0x15c0da[_0x70522e(0x46e)],'content':this[_0x70522e(0x357)]['t']('session.connection-failed')});}['_scheduleReconnection'](_0x333a8d){const _0x41358b=_0x29c6a6;var _0xd20660;const _0x4ff06e=((_0xd20660=this[_0x41358b(0x211)][_0x41358b(0x29b)](en))!=null?_0xd20660:tn)*0x2**_0x333a8d;this[_0x41358b(0x426)][_0x41358b(0x47a)]({'type':_0x15c0da['Warning'],'content':this[_0x41358b(0x357)]['t']('session.will-retry')}),this[_0x41358b(0x2c5)]=setTimeout(()=>{const _0x5735cf=_0x41358b;this[_0x5735cf(0x34b)](),clearTimeout(this[_0x5735cf(0x2c5)]),this[_0x5735cf(0x2c5)]=null;},_0x4ff06e);}[_0x29c6a6(0x43d)](){const _0x546b5e=_0x29c6a6;var _0x5b4760;this[_0x546b5e(0x4a9)](),this[_0x546b5e(0x2b4)]=setTimeout(()=>this[_0x546b5e(0x396)](),(_0x5b4760=this['_configService'][_0x546b5e(0x29b)](qi))!=null?_0x5b4760:Qi);}[_0x29c6a6(0x396)](){const _0x12d91d=_0x29c6a6;this[_0x12d91d(0x375)][_0x12d91d(0x293)]({'cmd':I['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x29c6a6(0x205)](){const _0x27af85=_0x29c6a6;var _0x58a183;this['_timeoutTimer']=setTimeout(()=>this[_0x27af85(0x3b1)](),(_0x58a183=this['_configService'][_0x27af85(0x29b)](Is))!=null?_0x58a183:Es);}[_0x29c6a6(0x1cb)](_0x265cb7,_0x15f6b1){const _0x1243ca=_0x29c6a6,{cmd:_0x15de3b}=_0x15f6b1;_0x15de3b===I[_0x1243ca(0x1ba)]&&!this[_0x1243ca(0x3ee)]&&(_0x265cb7[_0x1243ca(0x264)]=_0x15f6b1[_0x1243ca(0x3f0)][_0x1243ca(0x264)],this['_socket$']['next'](_0x265cb7),this['_status$'][_0x1243ca(0x3af)](0x3),this[_0x1243ca(0x3ee)]=!0x0),_0x15de3b===I[_0x1243ca(0x4ba)]&&this[_0x1243ca(0x391)](),this[_0x1243ca(0x43d)]();}['_clearHeartbeatTimer'](){const _0x46d6c3=_0x29c6a6;this[_0x46d6c3(0x2b4)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x46d6c3(0x2b4)]=null);}['_clearTimeoutTimer'](){const _0x49c3b7=_0x29c6a6;this[_0x49c3b7(0x2be)]!=null&&(clearTimeout(this[_0x49c3b7(0x2be)]),this['_timeoutTimer']=null);}};Re=Ts([M(0x0,_0x558bc4(_0x4ead3f)),M(0x1,_0x558bc4(_0x2f64f)),M(0x2,_0x367db8),M(0x3,_0x2125ae),M(0x4,_0x575c32),M(0x5,bs)],Re);var bn=Object['defineProperty'],Rn=Object[_0x29c6a6(0x48e)],Tn=(_0xde32f9,_0x37169c,_0x25de7e,_0x26e3be)=>{for(var _0x24833f=_0x26e3be>0x1?void 0x0:_0x26e3be?Rn(_0x37169c,_0x25de7e):_0x37169c,_0x272366=_0xde32f9['length']-0x1,_0x2f5cc6;_0x272366>=0x0;_0x272366--)(_0x2f5cc6=_0xde32f9[_0x272366])&&(_0x24833f=(_0x26e3be?_0x2f5cc6(_0x37169c,_0x25de7e,_0x24833f):_0x2f5cc6(_0x24833f))||_0x24833f);return _0x26e3be&&_0x24833f&&bn(_0x37169c,_0x25de7e,_0x24833f),_0x24833f;},Se=(_0x3ca309,_0x32abf7)=>(_0x227d12,_0x8c6cde)=>_0x32abf7(_0x227d12,_0x8c6cde,_0x3ca309);let D=class extends _0xc93720{constructor(_0x2cae78,_0xff86db,_0x1bfe63,_0x22cd9b,_0x1d7fa5){const _0x31d902=_0x29c6a6;super(),l(this,_0x31d902(0x3d6),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x31d902(0x2f0),!0x1),(this[_0x31d902(0x211)]=_0x2cae78,this[_0x31d902(0x4e0)]=_0xff86db,this['_beforeCloseService']=_0x1bfe63,this[_0x31d902(0x357)]=_0x22cd9b,this[_0x31d902(0x230)]=_0x1d7fa5,this['_setupBeforeClosingHandler']());}[_0x29c6a6(0x281)](){const _0x2c60fe=_0x29c6a6;this[_0x2c60fe(0x2f0)]=!0x0;}[_0x29c6a6(0x2ae)](){const _0x465854=_0x29c6a6;this[_0x465854(0x2f0)]=!0x1;}[_0x29c6a6(0x378)](){const _0x2d4b38=_0x29c6a6;this[_0x2d4b38(0x203)]()[_0x2d4b38(0x327)](()=>super['dispose']());}async[_0x29c6a6(0x3bd)](_0x3018fe){const _0x1b4303=_0x29c6a6;return this['_disabled']?null:this[_0x1b4303(0x4e0)][_0x1b4303(0x4bb)](Gt(_0x3018fe));}async[_0x29c6a6(0x1df)](_0x4a80f2,_0x2328e6){const _0x4ef453=_0x29c6a6;return!!this[_0x4ef453(0x4e0)][_0x4ef453(0x2bc)](_0x4a80f2,_0x2328e6);}[_0x29c6a6(0x1dc)](_0x4c14b5,_0x1165e,_0x4ee65b,_0x2d4e01){const _0x4beb11=_0x29c6a6,_0xf6a338=this['_revisionService'][_0x4beb11(0x433)](_0x4c14b5);this[_0x4beb11(0x3d6)]['set'](_0x4c14b5,{'unitID':_0x4c14b5,'type':_0x1165e,'awaitingChangeset':_0x4ee65b,'mutations':_0x2d4e01,'rev':_0xf6a338}),this['_saveTaskMap'][_0x4beb11(0x46f)](_0x4c14b5)||this[_0x4beb11(0x25c)](_0x4c14b5);}[_0x29c6a6(0x25c)](_0x2cfcd0){const _0x33180d=_0x29c6a6,_0x53550c=this['_getSaveTimeout']();_0x53550c===0x0?this[_0x33180d(0x4cc)](_0x2cfcd0):this['_saveTaskMap'][_0x33180d(0x320)](_0x2cfcd0,setTimeout(()=>this[_0x33180d(0x4cc)](_0x2cfcd0),_0x53550c));}[_0x29c6a6(0x492)](){var _0x318158;return(_0x318158=this['_configService']['getConfig'](rn))!=null?_0x318158:on;}[_0x29c6a6(0x4cc)](_0x895e19){const _0x1fa25b=_0x29c6a6,_0x20960e=this[_0x1fa25b(0x38a)][_0x1fa25b(0x362)](_0x895e19);return _0x20960e!==void 0x0&&window['clearTimeout'](_0x20960e),this[_0x1fa25b(0x4e0)][_0x1fa25b(0x2bc)](Gt(_0x895e19),this['_cachedData']['get'](_0x895e19))[_0x1fa25b(0x327)](()=>this['_saveTaskMap'][_0x1fa25b(0x457)](_0x895e19));}async['_exhaustSavingTask'](){const _0x112f8d=_0x29c6a6,_0x4d0835=[];this[_0x112f8d(0x38a)][_0x112f8d(0x31b)]((_0xe39df2,_0x4626ab)=>{const _0x743344=_0x112f8d;window[_0x743344(0x46a)](_0xe39df2),_0x4d0835[_0x743344(0x2f7)](this[_0x743344(0x4cc)](_0x4626ab)[_0x743344(0x327)](()=>{this['_saveTaskMap']['delete'](_0x4626ab);}));}),await Promise[_0x112f8d(0x2e9)](_0x4d0835);}[_0x29c6a6(0x4bd)](){const _0x55a30c=_0x29c6a6;this['disposeWithMe'](this[_0x55a30c(0x240)][_0x55a30c(0x447)](()=>{const _0x5ded20=_0x55a30c;if(this[_0x5ded20(0x38a)]['size'])return this[_0x5ded20(0x357)]['t']('collaboration-client.offline-data-not-saved');}));}};D=Tn([Se(0x0,_0x575c32),Se(0x1,_0x3325f8),Se(0x2,_0x3ef89e),Se(0x3,_0x558bc4(_0x2f64f)),Se(0x4,_0x558bc4(_0x353354))],D);function Gt(_0x3ba5c0){const _0x429152=_0x29c6a6;return _0x429152(0x44c)+_0x3ba5c0;}const Xe=_0x451f50(_0x29c6a6(0x48b));var Os=(_0x1edc51=>(_0x1edc51[_0x1edc51[_0x29c6a6(0x485)]=0x0]=_0x29c6a6(0x485),_0x1edc51[_0x1edc51[_0x29c6a6(0x39d)]=0x1]='OTHER_CLIENTS_EDITING',_0x1edc51))(Os||{});const Yt=0x7530,Kt='ACTIVE_UNIT_EVENT_CHANNEL';class On extends _0xc93720{constructor(){const _0x5b63ab=_0x29c6a6;super(),l(this,'_id',_0x1394f4['generateRandomId']()),l(this,'_selfUnitIDs',new Set()),l(this,_0x5b63ab(0x2fc),new Map()),l(this,_0x5b63ab(0x1d5),null),l(this,_0x5b63ab(0x355),new Map()),l(this,'_unitStatus',new Map()),this['_init']();}[_0x29c6a6(0x378)](){const _0x28f118=_0x29c6a6;super['dispose'](),this[_0x28f118(0x355)]['forEach']((_0x39dc2f,_0x2074a8)=>this[_0x28f118(0x482)](_0x2074a8)),this[_0x28f118(0x1d5)]&&window[_0x28f118(0x4de)](this[_0x28f118(0x1d5)]);}[_0x29c6a6(0x3ad)](_0x3a4f82){return this['_ensureSubject'](_0x3a4f82)['pipe'](_0x362e05());}[_0x29c6a6(0x202)](_0x4d364c){const _0x389a36=_0x29c6a6;this[_0x389a36(0x3e5)][_0x389a36(0x4a2)]===0x0&&this[_0x389a36(0x28b)](),this['_selfUnitIDs'][_0x389a36(0x497)](_0x4d364c),this[_0x389a36(0x38c)]({'type':0x0,'memberID':this[_0x389a36(0x206)],'unitIDs':[_0x4d364c],'isForwarded':!0x1});}[_0x29c6a6(0x282)](_0x1dff89){const _0x439d8a=_0x29c6a6;this[_0x439d8a(0x3e5)][_0x439d8a(0x457)](_0x1dff89),this['_selfUnitIDs'][_0x439d8a(0x4a2)]===0x0&&this[_0x439d8a(0x1d5)]&&window[_0x439d8a(0x4de)](this[_0x439d8a(0x1d5)]);}['_init'](){const _0x223237=_0x29c6a6;this[_0x223237(0x1fb)](_0x359428(_0x68731a(window,'storage')[_0x223237(0x460)](_0x3a0e06=>{const _0x19150d=_0x223237;if(_0x3a0e06[_0x19150d(0x1e7)]!==Kt||!_0x3a0e06[_0x19150d(0x48a)])return;const _0x104968=JSON[_0x19150d(0x37d)](_0x3a0e06[_0x19150d(0x48a)]);this[_0x19150d(0x3cd)](_0x104968);}))),window[_0x223237(0x427)](_0x223237(0x4c9),()=>this[_0x223237(0x38c)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x223237(0x4a3)](this['_selfUnitIDs'])}));}['_handleEvent'](_0x58ba45){const _0x4c6d81=_0x29c6a6;switch(_0x58ba45[_0x4c6d81(0x236)]){case 0x0:this[_0x4c6d81(0x1ef)](_0x58ba45);break;case 0x1:this[_0x4c6d81(0x255)](_0x58ba45);break;case 0x2:this[_0x4c6d81(0x439)](_0x58ba45);break;}}[_0x29c6a6(0x1ef)](_0x5bcc30){const _0x2b49c7=_0x29c6a6,{unitIDs:_0x3c31fa,memberID:_0x15d3f6,isForwarded:_0x20b059}=_0x5bcc30;_0x3c31fa[_0x2b49c7(0x31b)](_0x191b94=>{const _0x44ff66=_0x2b49c7;if(!_0x20b059&&this[_0x44ff66(0x2fc)][_0x44ff66(0x46f)](_0x191b94)&&this[_0x44ff66(0x291)](_0x191b94)[_0x44ff66(0x3af)](0x1),!this[_0x44ff66(0x2fc)][_0x44ff66(0x46f)](_0x191b94)||!this[_0x44ff66(0x2fc)][_0x44ff66(0x362)](_0x191b94)['has'](_0x15d3f6)){const _0x4c2bd1=this['_unitOnClients'][_0x44ff66(0x362)](_0x191b94)||new Set();_0x4c2bd1[_0x44ff66(0x497)](_0x15d3f6),this[_0x44ff66(0x2fc)]['set'](_0x191b94,_0x4c2bd1),this['_scheduleClearOtherTimer'](_0x15d3f6);}}),_0x20b059||this[_0x2b49c7(0x38c)]({'type':0x0,'memberID':this[_0x2b49c7(0x206)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x29c6a6(0x3a3)](_0x2ba1a0){const _0x3593f7=_0x29c6a6;this[_0x3593f7(0x482)](_0x2ba1a0);const _0x496755=window[_0x3593f7(0x260)](()=>{const _0x3f44b0=_0x3593f7;this[_0x3f44b0(0x2fc)][_0x3f44b0(0x31b)](_0x14aa99=>{_0x14aa99['delete'](_0x2ba1a0);});},Yt*0x2);this[_0x3593f7(0x355)][_0x3593f7(0x320)](_0x2ba1a0,_0x496755);}[_0x29c6a6(0x482)](_0xf57aa4){const _0x5e5167=_0x29c6a6;if(this['_clearOtherTimers'][_0x5e5167(0x46f)](_0xf57aa4)){const _0x16b59c=this[_0x5e5167(0x355)][_0x5e5167(0x362)](_0xf57aa4);_0x16b59c&&window['clearTimeout'](_0x16b59c),this[_0x5e5167(0x355)][_0x5e5167(0x320)](_0xf57aa4,null);}}[_0x29c6a6(0x255)](_0xadbe38){const _0x5b833=_0x29c6a6,{memberID:_0x1e5f3e,unitIDs:_0x47c199}=_0xadbe38;_0x47c199[_0x5b833(0x31b)](_0x3e255a=>{const _0x1f4ff8=_0x5b833;var _0xc33baa;const _0x315761=this['_unitOnClients']['get'](_0x3e255a);_0x315761&&(_0x315761[_0x1f4ff8(0x457)](_0x1e5f3e),(_0xc33baa=this['_ensureSubject'](_0x3e255a))==null||_0xc33baa[_0x1f4ff8(0x3af)](_0x315761['size']===0x0?0x0:0x1));}),this[_0x5b833(0x482)](_0x1e5f3e);}['_handleHeartbeatEvent'](_0x320226){const _0x3b8521=_0x29c6a6;this[_0x3b8521(0x3a3)](_0x320226['memberID']);}[_0x29c6a6(0x38c)](_0x501c19){const _0x2bb8b8=_0x29c6a6;localStorage[_0x2bb8b8(0x2bc)](Kt,JSON[_0x2bb8b8(0x376)](_0x501c19));}[_0x29c6a6(0x28b)](){const _0x36cb6b=_0x29c6a6;this[_0x36cb6b(0x1d5)]=window[_0x36cb6b(0x4a6)](()=>{const _0x27f364=_0x36cb6b;this[_0x27f364(0x38c)]({'type':0x2,'memberID':this['_id']});},Yt);}[_0x29c6a6(0x291)](_0x23b830){const _0x2721aa=_0x29c6a6;return this['_unitStatus'][_0x2721aa(0x46f)](_0x23b830)||this['_unitStatus'][_0x2721aa(0x320)](_0x23b830,new _0x2ae6a5(0x0)),this['_unitStatus']['get'](_0x23b830);}}var Dn=Object[_0x29c6a6(0x3f3)],wn=Object['getOwnPropertyDescriptor'],Pn=(_0x2ae2e2,_0x48b57d,_0x50dd3d,_0x3eeaaf)=>{for(var _0x659811=_0x3eeaaf>0x1?void 0x0:_0x3eeaaf?wn(_0x48b57d,_0x50dd3d):_0x48b57d,_0x428494=_0x2ae2e2['length']-0x1,_0x56fb36;_0x428494>=0x0;_0x428494--)(_0x56fb36=_0x2ae2e2[_0x428494])&&(_0x659811=(_0x3eeaaf?_0x56fb36(_0x48b57d,_0x50dd3d,_0x659811):_0x56fb36(_0x659811))||_0x659811);return _0x3eeaaf&&_0x659811&&Dn(_0x48b57d,_0x50dd3d,_0x659811),_0x659811;},Xt=(_0x3f2038,_0x26e9c9)=>(_0x1b5035,_0x9bebe5)=>_0x26e9c9(_0x1b5035,_0x9bebe5,_0x3f2038);let Be=class{constructor(_0x31ef4f,_0x4ca7f6){const _0xca0c24=_0x29c6a6;this['_injector']=_0x31ef4f,this[_0xca0c24(0x367)]=_0x4ca7f6;}['transformIMECache'](_0x4baaf8){const _0x57c9d2=_0x29c6a6;this[_0x57c9d2(0x3d9)](_0x4baaf8),this[_0x57c9d2(0x308)](_0x4baaf8);}[_0x29c6a6(0x42c)](_0x24f4ae){const _0x2c9a06=_0x29c6a6,_0x1405c6=this['_injector'][_0x2c9a06(0x362)](_0x25857e),{redoCache:_0x33b751}=_0x1405c6['getUndoRedoMutationParamsCache']();if(_0x33b751[_0x2c9a06(0x431)]===0x0)return _0x24f4ae;let _0x2e234c=_0x1394f4['deepClone'](_0x24f4ae[_0x2c9a06(0x365)][0x0]);for(let _0x2483c6=0x0;_0x2483c6<_0x33b751[_0x2c9a06(0x431)];_0x2483c6++){const _0xa55d88={'id':'doc.mutation.rich-text-editing','params':{..._0x33b751[_0x2483c6]}},_0x152726=this[_0x2c9a06(0x367)][_0x2c9a06(0x40f)](_0x2e234c,_0xa55d88,!0x1);if(_0x42961a(_0x152726))throw _0x152726[_0x2c9a06(0x35b)];_0x2e234c=_0x152726[_0x2c9a06(0x25a)];}return{..._0x1394f4[_0x2c9a06(0x20f)](_0x24f4ae),'mutations':[_0x2e234c]};}[_0x29c6a6(0x3d9)](_0x1e68b2){const _0x44d975=_0x29c6a6,_0x3ee7a8=this['_injector'][_0x44d975(0x362)](_0x25857e),{undoCache:_0x343db4,redoCache:_0x4e8933}=_0x3ee7a8['getUndoRedoMutationParamsCache']();if(_0x343db4['length']===0x0||_0x4e8933[_0x44d975(0x431)]===0x0)return;const _0x18663a=[],_0x5d205a=[];let _0x718252=_0x1394f4[_0x44d975(0x20f)](_0x1e68b2[_0x44d975(0x365)][0x0]),_0x59b089=_0x1394f4[_0x44d975(0x20f)](_0x1e68b2[_0x44d975(0x365)][0x0]);for(let _0x106fcc=_0x343db4[_0x44d975(0x431)]-0x1;_0x106fcc>=0x0;_0x106fcc--){const _0x235cbb={'id':_0x44d975(0x464),'params':{..._0x343db4[_0x106fcc]}},_0x5f5bb0={'id':_0x44d975(0x464),'params':{..._0x4e8933[_0x106fcc]}},_0x1b8ff0=this[_0x44d975(0x367)][_0x44d975(0x40f)](_0x718252,_0x235cbb,!0x1),_0x2c1b28=this['_transformService'][_0x44d975(0x40f)](_0x59b089,_0x5f5bb0,!0x1);if(_0x42961a(_0x1b8ff0))throw _0x1b8ff0['error'];if(_0x42961a(_0x2c1b28))throw _0x2c1b28[_0x44d975(0x35b)];_0x18663a[_0x44d975(0x29d)](_0x1b8ff0[_0x44d975(0x297)]['params']),_0x5d205a[_0x44d975(0x29d)](_0x2c1b28[_0x44d975(0x297)][_0x44d975(0x3c7)]),_0x718252=_0x1b8ff0[_0x44d975(0x25a)],_0x59b089=_0x2c1b28['m1Prime'];}_0x3ee7a8[_0x44d975(0x2a7)]({'undoCache':_0x18663a,'redoCache':_0x5d205a});}['_transformPreviousActiveRange'](_0x3f33d1){const _0x54f89b=_0x29c6a6,_0x27eba4=this[_0x54f89b(0x31f)][_0x54f89b(0x362)](_0x25857e),_0x1f1bf4=_0x27eba4[_0x54f89b(0x25e)]();if(_0x1f1bf4==null)return;const _0x35f4c2=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3f33d1['unitID'],'actions':null,'textRanges':[_0x1f1bf4]}}],_0x303629=this[_0x54f89b(0x367)][_0x54f89b(0x216)](_0x3f33d1,_0x35f4c2);if(!_0x589ac1(_0x303629))throw _0x303629['error'];const _0x2a2e46=_0x303629[_0x54f89b(0x297)][0x0][_0x54f89b(0x3c7)][_0x54f89b(0x224)];Array[_0x54f89b(0x21c)](_0x2a2e46)&&_0x2a2e46['length']&&_0x27eba4[_0x54f89b(0x28c)](_0x2a2e46[0x0]);}};Be=Pn([Xt(0x0,_0x558bc4(_0x4ead3f)),Xt(0x1,_0xd13d4c)],Be);var Nn=Object['defineProperty'],Mn=Object['getOwnPropertyDescriptor'],An=(_0x274405,_0x1b559d,_0x3829b2,_0x105aac)=>{for(var _0x39a62b=_0x105aac>0x1?void 0x0:_0x105aac?Mn(_0x1b559d,_0x3829b2):_0x1b559d,_0x41197e=_0x274405['length']-0x1,_0x198276;_0x41197e>=0x0;_0x41197e--)(_0x198276=_0x274405[_0x41197e])&&(_0x39a62b=(_0x105aac?_0x198276(_0x1b559d,_0x3829b2,_0x39a62b):_0x198276(_0x39a62b))||_0x39a62b);return _0x105aac&&_0x39a62b&&Nn(_0x1b559d,_0x3829b2,_0x39a62b),_0x39a62b;},Jt=(_0x2bbb78,_0x1a27f3)=>(_0x3e1e16,_0x2d55ed)=>_0x1a27f3(_0x3e1e16,_0x2d55ed,_0x2bbb78);let ke=class{constructor(_0xfe915c,_0x268c5f){const _0x1efec8=_0x29c6a6;this['_injector']=_0xfe915c,this[_0x1efec8(0x367)]=_0x268c5f;}[_0x29c6a6(0x21d)](_0x3b9fa5){const _0xebbe31=_0x29c6a6;var _0x19fbf7;const _0x4b4162=this[_0xebbe31(0x31f)][_0xebbe31(0x362)](_0x4c35a6),_0x250394=(_0x19fbf7=_0x4b4162[_0xebbe31(0x305)]())!=null?_0x19fbf7:[],_0x2e1775=_0x250394==null?void 0x0:_0x250394[_0xebbe31(0x1f9)](_0x547357);if(_0x2e1775['length']===0x0)return;const _0x174eaf=[{'id':_0xebbe31(0x464),'params':{'unitId':_0x3b9fa5[_0xebbe31(0x1ca)],'actions':null,'textRanges':_0x2e1775}}],_0x1c8b00=this[_0xebbe31(0x367)][_0xebbe31(0x216)](_0x3b9fa5,_0x174eaf);if(!_0x589ac1(_0x1c8b00))throw _0x1c8b00[_0xebbe31(0x35b)];const _0x4c6d1e=_0x1c8b00[_0xebbe31(0x297)][0x0]['params'][_0xebbe31(0x224)];Array[_0xebbe31(0x21c)](_0x4c6d1e)&&_0x4c6d1e[_0xebbe31(0x431)]&&_0x4b4162['replaceTextRanges'](_0x4c6d1e,!0x1);}};ke=An([Jt(0x0,_0x558bc4(_0x4ead3f)),Jt(0x1,_0xd13d4c)],ke);function Ds(_0x3380b2){const _0x3787ac=_0x29c6a6;let _0x2d2cc3='';for(const _0x2863ef of _0x3380b2){const {startOffset:_0x24ca00,endOffset:_0x46335a,isActive:_0x4d1615}=_0x2863ef;_0x2d2cc3[_0x3787ac(0x431)]&&(_0x2d2cc3+=','),_0x2d2cc3+=_0x24ca00+':'+_0x46335a+':'+(_0x4d1615?'1':'0');}return _0x2d2cc3;}function yn(_0x374296){const _0xbf307e=_0x29c6a6,_0x3bc9b5=_0x374296[_0xbf307e(0x4cd)](','),_0x244a3a=[];for(const _0x4c17a0 of _0x3bc9b5){const [_0x41f9ba,_0x464976,_0x3aa64d]=_0x4c17a0[_0xbf307e(0x4cd)](':');_0x244a3a[_0xbf307e(0x2f7)]({'startOffset':Number(_0x41f9ba),'endOffset':Number(_0x464976),'collapsed':_0x41f9ba===_0x464976,'isActive':_0x3aa64d==='1'});}return _0x244a3a['some'](_0x21a71a=>_0x21a71a[_0xbf307e(0x36f)])||(_0x244a3a[0x0][_0xbf307e(0x36f)]=!0x0),_0x244a3a;}class Mt extends _0x39fd47{constructor(){const _0x28baa3=_0x29c6a6;super(...arguments),l(this,_0x28baa3(0x321),new _0x2ae6a5(null)),l(this,_0x28baa3(0x344),this[_0x28baa3(0x321)][_0x28baa3(0x4db)]());}[_0x29c6a6(0x44f)](_0x18263a){const _0x3585c0=_0x29c6a6,{unitID:_0x1ae5ca,memberID:_0xea2e96,textRanges:_0x5eebbc}=_0x18263a,_0x5afb86=Ds(_0x5eebbc),_0x554b1e={'unitID':_0x1ae5ca,'memberID':_0xea2e96,'selection':_0x5afb86};this['_collabCursorState$'][_0x3585c0(0x3af)](_0x554b1e);}}var Un=Object['defineProperty'],Ln=Object[_0x29c6a6(0x48e)],$n=(_0x3497cc,_0x467d26,_0x2639e4,_0x4e9632)=>{const _0x1e56c5=_0x29c6a6;for(var _0x1333ca=_0x4e9632>0x1?void 0x0:_0x4e9632?Ln(_0x467d26,_0x2639e4):_0x467d26,_0x23e62e=_0x3497cc[_0x1e56c5(0x431)]-0x1,_0x177b0b;_0x23e62e>=0x0;_0x23e62e--)(_0x177b0b=_0x3497cc[_0x23e62e])&&(_0x1333ca=(_0x4e9632?_0x177b0b(_0x467d26,_0x2639e4,_0x1333ca):_0x177b0b(_0x1333ca))||_0x1333ca);return _0x4e9632&&_0x1333ca&&Un(_0x467d26,_0x2639e4,_0x1333ca),_0x1333ca;},zt=(_0x42740d,_0x37a491)=>(_0x4ab9fa,_0x1bfa39)=>_0x37a491(_0x4ab9fa,_0x1bfa39,_0x42740d);let Ve=class{constructor(_0xd80573,_0x272f32){const _0x4f38e3=_0x29c6a6;this[_0x4f38e3(0x31f)]=_0xd80573,this[_0x4f38e3(0x367)]=_0x272f32;}['transformSelections'](_0x48e163){const _0x32abf0=_0x29c6a6;var _0xbeb9e5,_0x6f9081,_0x5b5396,_0x41d2b1;const _0x510ced=this['_injector'][_0x32abf0(0x362)](_0x543329),{pluginName:_0x5292b7,unitId:_0x3595b1,sheetId:_0x55e3dc}=_0x510ced[_0x32abf0(0x463)]()||{},_0x204eb5=(_0xbeb9e5=_0x510ced[_0x32abf0(0x305)]())!=null?_0xbeb9e5:[];if(_0x204eb5[_0x32abf0(0x431)]===0x0||!_0x5292b7||!_0x3595b1||!_0x55e3dc)return;const _0x4150c1=[{'id':_0x57025f['id'],'params':{'unitId':_0x3595b1,'subUnitId':_0x55e3dc,'pluginName':_0x5292b7,'selections':_0x1394f4[_0x32abf0(0x20f)](_0x204eb5)}}],_0x1059d9=this[_0x32abf0(0x367)][_0x32abf0(0x216)](_0x48e163,_0x4150c1);if(!_0x589ac1(_0x1059d9))throw _0x1059d9[_0x32abf0(0x35b)];const _0x2eeec0=(_0x41d2b1=(_0x5b5396=(_0x6f9081=_0x1059d9[_0x32abf0(0x297)][0x0])==null?void 0x0:_0x6f9081[_0x32abf0(0x3c7)])==null?void 0x0:_0x5b5396['selections'])!=null?_0x41d2b1:_0x204eb5;Array[_0x32abf0(0x21c)](_0x2eeec0)&&_0x2eeec0[_0x32abf0(0x431)]&&this['_injector'][_0x32abf0(0x362)](_0x594d06)[_0x32abf0(0x22a)](_0x57025f['id'],{'unitId':_0x3595b1,'subUnitId':_0x55e3dc,'pluginName':_0x5292b7,'selections':_0x2eeec0});}};Ve=$n([zt(0x0,_0x558bc4(_0x4ead3f)),zt(0x1,_0xd13d4c)],Ve);const jn=new Set([_0x2ae46a['id']]);function Hn(_0x1c49ed,_0x54b000,_0x548f7d,_0x18c3ea,_0x5bf92f){const _0x389d3e=_0x29c6a6;var _0x333557,_0x362ef4,_0x46378b,_0x5663c7;const _0x453b6f=[];for(const _0x448970 of _0x1c49ed)if(jn[_0x389d3e(0x46f)](_0x448970['id'])){if(_0x453b6f[_0x389d3e(0x431)]>0x0)break;_0x453b6f[_0x389d3e(0x2f7)](_0x448970);break;}else _0x453b6f[_0x389d3e(0x2f7)](_0x448970);const _0xfa13f6=(_0x362ef4=(_0x333557=_0x5bf92f[_0x389d3e(0x4b8)]())==null?void 0x0:_0x333557['userID'])!=null?_0x362ef4:_0x389d3e(0x221),_0x1c7bf8=(_0x5663c7=(_0x46378b=_0x5bf92f['getCurrentUser']())==null?void 0x0:_0x46378b[_0x389d3e(0x264)])!=null?_0x5663c7:_0x389d3e(0x221);return{'changeset':{'unitID':_0x54b000,'type':_0x385526(_0x548f7d[_0x389d3e(0x1d9)](_0x54b000)),'baseRev':_0x18c3ea[_0x389d3e(0x433)](_0x54b000),'revision':0x0,'userID':_0xfa13f6,'memberID':_0x1c7bf8,'mutations':_0x453b6f},'pendingMutations':_0x1c49ed[_0x389d3e(0x350)](_0x453b6f[_0x389d3e(0x431)])};}function xn(_0x4cd8f9,_0x5db503,_0x169570,_0x96556c,_0xb8c34c){const _0x2085b0=_0x29c6a6;var _0x50d9e9,_0x38cf1a,_0x4a63fd,_0x533f8e;const _0x4e7804=[_0x4cd8f9[_0x2085b0(0x3ef)]((_0x200141,_0x49ada3)=>{const _0x23e700=_0x2085b0;var _0x43e569;const {id:_0x3d06a1}=_0x200141,{id:_0x2f65ba,type:_0x5bab5e}=_0x49ada3,_0x126fc8=(_0x43e569=_0x200141[_0x23e700(0x3c7)])!=null?_0x43e569:{'actions':null},_0x1ab739=_0x49ada3[_0x23e700(0x3c7)];if(_0x3d06a1&&_0x3d06a1!==_0x2f65ba)throw new Error(_0x23e700(0x33c)+_0x3d06a1+_0x23e700(0x43b)+_0x2f65ba+'.');return{..._0x200141,'id':_0x2f65ba,'type':_0x5bab5e,'params':{'unitId':_0x1ab739[_0x23e700(0x458)],'textRanges':_0x1ab739[_0x23e700(0x224)],'actions':_0x4686a0[_0x23e700(0x292)](_0x126fc8[_0x23e700(0x27c)],_0x1ab739[_0x23e700(0x27c)])}};},{})],_0x43bed7=(_0x38cf1a=(_0x50d9e9=_0xb8c34c[_0x2085b0(0x4b8)]())==null?void 0x0:_0x50d9e9[_0x2085b0(0x40d)])!=null?_0x38cf1a:'unknown',_0xee99d=(_0x533f8e=(_0x4a63fd=_0xb8c34c[_0x2085b0(0x4b8)]())==null?void 0x0:_0x4a63fd[_0x2085b0(0x264)])!=null?_0x533f8e:_0x2085b0(0x221);return{'changeset':{'unitID':_0x5db503,'type':_0x385526(_0x169570[_0x2085b0(0x1d9)](_0x5db503)),'baseRev':_0x96556c['getCurrentRevForDocument'](_0x5db503),'revision':0x0,'userID':_0x43bed7,'memberID':_0xee99d,'mutations':_0x4e7804},'pendingMutations':[]};}var Fn=Object[_0x29c6a6(0x3f3)],Bn=Object['getOwnPropertyDescriptor'],ne=(_0x739fbb,_0x166da5,_0x207347,_0x337fb6)=>{for(var _0x4b3fcf=_0x337fb6>0x1?void 0x0:_0x337fb6?Bn(_0x166da5,_0x207347):_0x166da5,_0x2fe473=_0x739fbb['length']-0x1,_0x16caca;_0x2fe473>=0x0;_0x2fe473--)(_0x16caca=_0x739fbb[_0x2fe473])&&(_0x4b3fcf=(_0x337fb6?_0x16caca(_0x166da5,_0x207347,_0x4b3fcf):_0x16caca(_0x4b3fcf))||_0x4b3fcf);return _0x337fb6&&_0x4b3fcf&&Fn(_0x166da5,_0x207347,_0x4b3fcf),_0x4b3fcf;},g=(_0x40a697,_0x4f85e5)=>(_0x392c6b,_0x1cd4ab)=>_0x4f85e5(_0x392c6b,_0x1cd4ab,_0x40a697),P=(_0x36b39d=>(_0x36b39d[_0x29c6a6(0x483)]=_0x29c6a6(0x379),_0x36b39d[_0x29c6a6(0x30d)]=_0x29c6a6(0x397),_0x36b39d[_0x29c6a6(0x1f3)]='pending',_0x36b39d[_0x29c6a6(0x4c6)]=_0x29c6a6(0x403),_0x36b39d[_0x29c6a6(0x3c4)]=_0x29c6a6(0x3ed),_0x36b39d[_0x29c6a6(0x399)]=_0x29c6a6(0x3c8),_0x36b39d['CONFLICT']=_0x29c6a6(0x348),_0x36b39d[_0x29c6a6(0x4b5)]=_0x29c6a6(0x2de),_0x36b39d))(P||{});class re{constructor(_0x306641,_0x58b846,_0x5adbaf,_0x886183,_0xc67bb9,_0x3f0381,_0x42d22e,_0x2949d2,_0xc4b34b){const _0x33c4b0=_0x29c6a6;l(this,_0x33c4b0(0x1c4),null),l(this,_0x33c4b0(0x4ea),[]),(this[_0x33c4b0(0x1ca)]=_0x306641,this[_0x33c4b0(0x236)]=_0x58b846,this[_0x33c4b0(0x1c9)]=_0xc67bb9,this[_0x33c4b0(0x3d7)]=_0x3f0381,this['_undoRedoService']=_0x42d22e,this[_0x33c4b0(0x230)]=_0x2949d2,this[_0x33c4b0(0x1ec)]=_0xc4b34b,this['_awaitingChangeset']=_0x5adbaf,this[_0x33c4b0(0x4ea)]=_0x886183);}[_0x29c6a6(0x43c)](_0x42b810){const _0x173f85=_0x29c6a6,_0x24bee0=this['_revisionService']['getCurrentRevForDocument'](this[_0x173f85(0x1ca)]);return _0x42b810[_0x173f85(0x32f)]>_0x24bee0+0x1?(this[_0x173f85(0x1c9)][_0x173f85(0x340)]({'from':_0x24bee0,'to':_0x42b810['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x25a31a){const _0x4c7559=_0x29c6a6;this[_0x4c7559(0x36a)]['transformUndoRedo'](this[_0x4c7559(0x1ca)],_0x25a31a);}[_0x29c6a6(0x22b)](_0x2e4fcc){const _0x41eb18=_0x29c6a6;var _0x4aaf09,_0x3fbc71;(_0x3fbc71=(_0x4aaf09=this[_0x41eb18(0x1c9)])['onTransformSelections'])==null||_0x3fbc71['call'](_0x4aaf09,_0x2e4fcc);}['_transformIMECache'](_0x17941e){const _0x40c08d=_0x29c6a6;var _0x462b5f,_0x4f9895;return(_0x4f9895=(_0x462b5f=this[_0x40c08d(0x1c9)])['onTransformIME'])==null?void 0x0:_0x4f9895[_0x40c08d(0x4ef)](_0x462b5f,_0x17941e);}[_0x29c6a6(0x369)](_0x5c8486){const _0x4d1823=_0x29c6a6;var _0x2011e1,_0xab0560,_0x1e8be3;return(_0x1e8be3=(_0xab0560=(_0x2011e1=this[_0x4d1823(0x1c9)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0xab0560[_0x4d1823(0x4ef)](_0x2011e1,_0x5c8486))!=null?_0x1e8be3:_0x5c8486;}[_0x29c6a6(0x3d8)](_0x42516b){const _0x5a1300=_0x29c6a6;var _0x2cb1b8,_0x2000c7;if(this[_0x5a1300(0x236)]===H[_0x5a1300(0x3f2)]){const {unitID:_0x2bb5d4,mutations:_0x29f589,memberID:_0x3b0f15}=_0x42516b,_0x1dd4cd=_0x29f589[0x0][_0x5a1300(0x3c7)][_0x5a1300(0x224)];Array[_0x5a1300(0x21c)](_0x1dd4cd)&&_0x1dd4cd[_0x5a1300(0x431)]>0x0&&((_0x2000c7=(_0x2cb1b8=this['_handler'])[_0x5a1300(0x4e9)])==null||_0x2000c7['call'](_0x2cb1b8,{'unitID':_0x2bb5d4,'memberID':_0x3b0f15,'textRanges':_0x1dd4cd}));}}[_0x29c6a6(0x1c2)](){const _0x309915=_0x29c6a6;this[_0x309915(0x1ec)][_0x309915(0x1dc)](this[_0x309915(0x1ca)],this[_0x309915(0x236)],this[_0x309915(0x1c4)],this['_pendingMutations']);}[_0x29c6a6(0x416)](){return this['_revisionService']['getCurrentRevForDocument'](this['unitID']);}[_0x29c6a6(0x411)](){const _0xf875c9=_0x29c6a6;this[_0xf875c9(0x230)][_0xf875c9(0x4e8)](this[_0xf875c9(0x1ca)]);}[_0x29c6a6(0x272)](_0x25b6a6){const _0x5e5be0=_0x29c6a6;var _0x1fd849;const _0x4ee119=this[_0x5e5be0(0x369)](_0x25b6a6),_0x525ac4=_0x4025ef(_0x4ee119[_0x5e5be0(0x365)],this[_0x5e5be0(0x3d7)],{'fromCollab':!0x0});if(!_0x525ac4[_0x5e5be0(0x404)])throw _0x525ac4[_0x5e5be0(0x35b)]instanceof Error?_0x525ac4['error']:new Error((_0x1fd849=_0x525ac4['error'])!=null?_0x1fd849:_0x5e5be0(0x2cb));this['_transformIMECache'](_0x4ee119),this[_0x5e5be0(0x302)](_0x25b6a6),this[_0x5e5be0(0x22b)](_0x4ee119),this['_syncEditingCollabCursor'](_0x4ee119),this[_0x5e5be0(0x411)]();}}let Te=class extends re{constructor(_0x4c146f,_0x25a1b2,_0xba29bc,_0x99b4f,_0x677706,_0x4b1f9b,_0x353fb1,_0xc86c8f,_0x1de3b2){const _0x16e599=_0x29c6a6;super(_0x4c146f,_0x25a1b2,null,[],_0xba29bc,_0xc86c8f,_0x353fb1,_0x99b4f,_0x677706),l(this,_0x16e599(0x3ea),_0x16e599(0x397)),(this['_injector']=_0x4b1f9b,this[_0x16e599(0x214)]=_0x1de3b2);}['appendMutation'](_0x483b92){const _0x4e8631=_0x29c6a6,_0x21f47d=this[_0x4e8631(0x31f)]['createInstance'](k,this['unitID'],this[_0x4e8631(0x236)],[_0x483b92],this[_0x4e8631(0x1c9)]);return _0x21f47d[_0x4e8631(0x303)](),_0x21f47d[_0x4e8631(0x1c2)](),_0x21f47d;}[_0x29c6a6(0x434)](_0x5599c4){const _0x2dadee=_0x29c6a6;if(this['_checkMissing'](_0x5599c4))return this[_0x2dadee(0x31f)]['createInstance'](W,this[_0x2dadee(0x1ca)],this[_0x2dadee(0x236)],null,[],null,[_0x5599c4],this[_0x2dadee(0x1c9)]);try{return this[_0x2dadee(0x272)](_0x5599c4),this;}catch(_0x1316b5){return this[_0x2dadee(0x214)][_0x2dadee(0x35b)](_0x2dadee(0x469),_0x1316b5),this;}}['onRemoteAck'](){const _0x3a20a7=_0x29c6a6;throw new Error(_0x3a20a7(0x2ce));}[_0x29c6a6(0x48f)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x4a9601=_0x29c6a6;return this['_injector'][_0x4a9601(0x43a)](J,this[_0x4a9601(0x1ca)],this['type'],null,[],this[_0x4a9601(0x1c9)]);}[_0x29c6a6(0x2b1)](){return this;}['resend'](){const _0x16c17e=_0x29c6a6;throw new Error(_0x16c17e(0x38b));}};Te=ne([g(0x3,_0x558bc4(_0x353354)),g(0x4,_0x558bc4(D)),g(0x5,_0x558bc4(_0x4ead3f)),g(0x6,_0x58b491),g(0x7,_0x594d06),g(0x8,_0x2125ae)],Te);let k=class extends re{constructor(_0x5dc6ac,_0x3a7dce,_0x1b868a,_0x5a10d6,_0x59d095,_0x1a522b,_0x4d9326,_0x2f59cc,_0x382430,_0x1d5138,_0x366eb9,_0x5559da,_0x123970,_0x235c32){const _0x1afd47=_0x29c6a6;super(_0x5dc6ac,_0x3a7dce,null,_0x1b868a,_0x5a10d6,_0x1d5138,_0x235c32,_0x1a522b,_0x4d9326),l(this,'status',_0x1afd47(0x3c0)),l(this,'_scheduleTimestamp',null),l(this,_0x1afd47(0x275),null),(this[_0x1afd47(0x31f)]=_0x59d095,this[_0x1afd47(0x23c)]=_0x2f59cc,this[_0x1afd47(0x214)]=_0x382430,this['_configService']=_0x366eb9,this[_0x1afd47(0x367)]=_0x5559da,this[_0x1afd47(0x49b)]=_0x123970);}[_0x29c6a6(0x359)](_0x32c863){const _0x42b4d9=_0x29c6a6;return this[_0x42b4d9(0x4ea)]['push'](_0x32c863),this[_0x42b4d9(0x1c2)](),this;}[_0x29c6a6(0x434)](_0x38da4a){const _0x42dc13=_0x29c6a6;if(this['_checkMissing'](_0x38da4a))return this[_0x42dc13(0x334)](),this[_0x42dc13(0x31f)]['createInstance'](W,this[_0x42dc13(0x1ca)],this['type'],null,this[_0x42dc13(0x4ea)],null,[_0x38da4a],this[_0x42dc13(0x1c9)]);try{const _0x5a8618=this[_0x42dc13(0x367)]['transformMutationsWithChangeset'](_0x38da4a,this[_0x42dc13(0x4ea)]);if(_0x589ac1(_0x5a8618)){const {c1Prime:_0x55d434,m2Prime:_0x482db1}=_0x5a8618;this[_0x42dc13(0x272)](_0x55d434);const _0x315969=this[_0x42dc13(0x31f)][_0x42dc13(0x43a)](k,this[_0x42dc13(0x1ca)],this[_0x42dc13(0x236)],_0x482db1,this[_0x42dc13(0x1c9)]);return this[_0x42dc13(0x334)](),_0x315969[_0x42dc13(0x303)](this[_0x42dc13(0x3b5)]?Math[_0x42dc13(0x28a)](0x0,new Date()[_0x42dc13(0x26b)]()-this['_scheduleTimestamp']):this[_0x42dc13(0x49a)]()),_0x315969;}throw _0x5a8618[_0x42dc13(0x35b)];}catch(_0x424022){return this[_0x42dc13(0x214)][_0x42dc13(0x35b)](_0x424022),this['_onConflict'](!0x1);}}[_0x29c6a6(0x31d)](){const _0x405c7e=_0x29c6a6;throw new Error(_0x405c7e(0x3e7));}[_0x29c6a6(0x48f)](){const _0x33b3dc=_0x29c6a6;throw new Error(_0x33b3dc(0x2d0));}['toggleOffline'](){const _0x59742f=_0x29c6a6;return this[_0x59742f(0x334)](),this[_0x59742f(0x31f)]['createInstance'](J,this[_0x59742f(0x1ca)],this[_0x59742f(0x236)],null,this['_pendingMutations'],this[_0x59742f(0x1c9)]);}[_0x29c6a6(0x2b1)](){return this;}['_schedule'](_0x395d48){const _0x5a1ebe=_0x29c6a6;_0x395d48=_0x395d48!=null?_0x395d48:this[_0x5a1ebe(0x49a)](),this[_0x5a1ebe(0x3b5)]=new Date()['getTime'](),this[_0x5a1ebe(0x275)]=setTimeout(()=>{const _0x4c3996=_0x5a1ebe;this[_0x4c3996(0x334)]();let _0x220011=null;switch(this[_0x4c3996(0x236)]){case H[_0x4c3996(0x3b4)]:{_0x220011=Hn(this['_pendingMutations'],this['unitID'],this[_0x4c3996(0x49b)],this[_0x4c3996(0x230)],this[_0x4c3996(0x23c)]);break;}case H[_0x4c3996(0x3f2)]:{_0x220011=xn(this[_0x4c3996(0x4ea)],this[_0x4c3996(0x1ca)],this[_0x4c3996(0x49b)],this[_0x4c3996(0x230)],this[_0x4c3996(0x23c)]);break;}default:throw new Error(_0x4c3996(0x318)+this[_0x4c3996(0x236)]+_0x4c3996(0x328));}const {changeset:_0x16ca96,pendingMutations:_0x395c93}=_0x220011;this['_handler'][_0x4c3996(0x4c5)](_0x16ca96);const _0x418c62=_0x395c93['length']?this['_injector']['createInstance'](V,this[_0x4c3996(0x1ca)],this['type'],_0x16ca96,_0x395c93,this[_0x4c3996(0x1c9)]):this['_injector'][_0x4c3996(0x43a)](X,this[_0x4c3996(0x1ca)],this[_0x4c3996(0x236)],_0x16ca96,this['_handler']);_0x418c62[_0x4c3996(0x1c2)](),this['_handler'][_0x4c3996(0x24f)](this,_0x418c62);},_0x395d48);}[_0x29c6a6(0x49a)](){const _0x585716=_0x29c6a6;var _0x2f7834;return(_0x2f7834=this[_0x585716(0x211)][_0x585716(0x29b)](Xi))!=null?_0x2f7834:Ji;}[_0x29c6a6(0x489)](){const _0x39f679=_0x29c6a6;throw new Error(_0x39f679(0x34a));}[_0x29c6a6(0x334)](){const _0x5d9bcc=_0x29c6a6;this[_0x5d9bcc(0x275)]!=null&&(clearTimeout(this[_0x5d9bcc(0x275)]),this[_0x5d9bcc(0x275)]=null);}[_0x29c6a6(0x4e7)](_0x46d99a){const _0x128a6f=_0x29c6a6;return this['_clearScheduledTask'](),this[_0x128a6f(0x31f)][_0x128a6f(0x43a)](te,this[_0x128a6f(0x1ca)],this['type'],null,this['_pendingMutations'],this[_0x128a6f(0x1c9)],_0x46d99a);}};k=ne([g(0x4,_0x558bc4(_0x4ead3f)),g(0x5,_0x558bc4(_0x353354)),g(0x6,_0x558bc4(D)),g(0x7,_0x558bc4(ee)),g(0x8,_0x2125ae),g(0x9,_0x594d06),g(0xa,_0x575c32),g(0xb,_0xd13d4c),g(0xc,_0x33e391),g(0xd,_0x58b491)],k);let X=class extends re{constructor(_0x53c522,_0x1dc396,_0x5082d2,_0x443801,_0x4c0fda,_0x5b1c03,_0xc6779b,_0x16857e,_0x32e07e,_0x4b4aac,_0x12b832){const _0x2d148a=_0x29c6a6;super(_0x53c522,_0x1dc396,_0x5082d2,[],_0x443801,_0x16857e,_0x12b832,_0x5b1c03,_0xc6779b),l(this,_0x2d148a(0x3ea),'awaiting'),(this[_0x2d148a(0x31f)]=_0x4c0fda,this[_0x2d148a(0x214)]=_0x32e07e,this[_0x2d148a(0x367)]=_0x4b4aac);}[_0x29c6a6(0x359)](_0x281b0e){const _0x1950d3=_0x29c6a6,_0x1399f0=this['_injector'][_0x1950d3(0x43a)](V,this[_0x1950d3(0x1ca)],this[_0x1950d3(0x236)],this['_awaitingChangeset'],[_0x281b0e],this[_0x1950d3(0x1c9)]);return _0x1399f0[_0x1950d3(0x1c2)](),_0x1399f0;}[_0x29c6a6(0x434)](_0x3bee9a){const _0x57e6d2=_0x29c6a6;if(this['_checkMissing'](_0x3bee9a))return this[_0x57e6d2(0x31f)][_0x57e6d2(0x43a)](W,this[_0x57e6d2(0x1ca)],this[_0x57e6d2(0x236)],this['_awaitingChangeset'],[],null,[_0x3bee9a],this[_0x57e6d2(0x1c9)]);try{const _0x2eadbe=this[_0x57e6d2(0x367)][_0x57e6d2(0x207)]([_0x3bee9a],[this[_0x57e6d2(0x1c4)]],!0x1);if(_0x389cf2(_0x2eadbe)){const {c1Prime:_0x2418ba,c2Prime:_0x29264d}=_0x2eadbe;this[_0x57e6d2(0x272)](_0x2418ba[0x0]),_0x29264d[0x0][_0x57e6d2(0x3ce)]=this[_0x57e6d2(0x416)]();const _0x230a31=this[_0x57e6d2(0x31f)]['createInstance'](X,this[_0x57e6d2(0x1ca)],this[_0x57e6d2(0x236)],_0x29264d[0x0],this[_0x57e6d2(0x1c9)]);return _0x230a31['_updateLocalCache'](),_0x230a31;}return this[_0x57e6d2(0x4e7)](!0x1);}catch(_0x567527){return this[_0x57e6d2(0x214)][_0x57e6d2(0x35b)](_0x567527),this[_0x57e6d2(0x4e7)](!0x1);}}[_0x29c6a6(0x31d)](_0x5cd8ef){const _0x20401b=_0x29c6a6,_0x5cb439=this['_revisionService'][_0x20401b(0x433)](this[_0x20401b(0x1ca)]);if(_0x5cd8ef['revision']<_0x5cb439-0x1)return this;if(this[_0x20401b(0x43c)](_0x5cd8ef))return this[_0x20401b(0x31f)][_0x20401b(0x43a)](W,this['unitID'],this['type'],null,[],this[_0x20401b(0x1c4)],[],this[_0x20401b(0x1c9)]);this[_0x20401b(0x411)]();const _0x448b4e=this['_injector'][_0x20401b(0x43a)](Te,this['unitID'],this['type'],this[_0x20401b(0x1c9)]);return _0x448b4e['_updateLocalCache'](),_0x448b4e;}[_0x29c6a6(0x48f)](_0x2ed657){const _0x319fee=_0x29c6a6;return this[_0x319fee(0x4e7)](!!(_0x2ed657!=null&&_0x2ed657[_0x319fee(0x1c3)]));}[_0x29c6a6(0x242)](){const _0x1ca569=_0x29c6a6;return this[_0x1ca569(0x31f)][_0x1ca569(0x43a)](J,this['unitID'],this['type'],this[_0x1ca569(0x1c4)],[],this['_handler']);}[_0x29c6a6(0x2b1)](){return this;}[_0x29c6a6(0x489)](){const _0x2b822d=_0x29c6a6;this[_0x2b822d(0x1c9)][_0x2b822d(0x4c5)](this[_0x2b822d(0x1c4)]);}['_onConflict'](_0x2cff33){const _0x39593d=_0x29c6a6;return this[_0x39593d(0x31f)][_0x39593d(0x43a)](te,this[_0x39593d(0x1ca)],this[_0x39593d(0x236)],this[_0x39593d(0x1c4)],[],this[_0x39593d(0x1c9)],_0x2cff33);}};X=ne([g(0x4,_0x558bc4(_0x4ead3f)),g(0x5,_0x558bc4(_0x353354)),g(0x6,_0x558bc4(D)),g(0x7,_0x594d06),g(0x8,_0x2125ae),g(0x9,_0xd13d4c),g(0xa,_0x58b491)],X);let V=class extends re{constructor(_0x223038,_0x3801f5,_0x161916,_0x1b26e0,_0x284689,_0x488fd9,_0x59dedd,_0x388d66,_0x3cd293,_0x229b12,_0x381f50,_0x49af50){const _0x89ccb=_0x29c6a6;super(_0x223038,_0x3801f5,_0x161916,_0x1b26e0,_0x284689,_0x3cd293,_0x49af50,_0x59dedd,_0x388d66),l(this,'status',_0x89ccb(0x3ed)),(this[_0x89ccb(0x31f)]=_0x488fd9,this[_0x89ccb(0x214)]=_0x229b12,this['_transformService']=_0x381f50);}[_0x29c6a6(0x359)](_0xd5ea89){const _0x1ba9aa=_0x29c6a6;return this[_0x1ba9aa(0x4ea)][_0x1ba9aa(0x2f7)](_0xd5ea89),this;}[_0x29c6a6(0x434)](_0x23961d){const _0x6b68bd=_0x29c6a6;if(this[_0x6b68bd(0x43c)](_0x23961d))return this[_0x6b68bd(0x31f)][_0x6b68bd(0x43a)](W,this[_0x6b68bd(0x1ca)],this[_0x6b68bd(0x236)],this[_0x6b68bd(0x1c4)],this['_pendingMutations'],null,[_0x23961d],this['_handler']);try{const _0x466108=this[_0x6b68bd(0x367)][_0x6b68bd(0x207)]([_0x23961d],[this[_0x6b68bd(0x1c4)]],!0x1);if(_0x389cf2(_0x466108)){const {c1Prime:_0x165d1e,c2Prime:_0x30c1c2}=_0x466108,_0xbbd47c=this[_0x6b68bd(0x367)][_0x6b68bd(0x216)](_0x165d1e[0x0],this[_0x6b68bd(0x4ea)]);if(_0x589ac1(_0xbbd47c)){const {c1Prime:_0x35b778,m2Prime:_0x5bdc16}=_0xbbd47c;return this[_0x6b68bd(0x272)](_0x35b778),_0x30c1c2[0x0][_0x6b68bd(0x3ce)]=this[_0x6b68bd(0x416)](),this['_injector'][_0x6b68bd(0x43a)](V,this[_0x6b68bd(0x1ca)],this[_0x6b68bd(0x236)],_0x30c1c2[0x0],_0x5bdc16,this[_0x6b68bd(0x1c9)]);}throw _0xbbd47c['error'];}throw _0x466108[_0x6b68bd(0x35b)];}catch(_0x465134){return this['_logService'][_0x6b68bd(0x35b)](_0x465134),this['_onConflict'](!0x1);}}[_0x29c6a6(0x31d)](_0x36bb5a){const _0xadee6a=_0x29c6a6;if(this[_0xadee6a(0x43c)](_0x36bb5a))return this[_0xadee6a(0x31f)][_0xadee6a(0x43a)](W,this['unitID'],this[_0xadee6a(0x236)],null,this[_0xadee6a(0x4ea)],this['_awaitingChangeset'],[],this[_0xadee6a(0x1c9)]);this['_incrementRevisionNumber']();const _0x822f6f=this[_0xadee6a(0x31f)][_0xadee6a(0x43a)](k,this[_0xadee6a(0x1ca)],this[_0xadee6a(0x236)],this[_0xadee6a(0x4ea)],this[_0xadee6a(0x1c9)]);return _0x822f6f['_schedule'](),_0x822f6f[_0xadee6a(0x1c2)](),_0x822f6f;}[_0x29c6a6(0x48f)](_0x4d8be0){const _0x34af63=_0x29c6a6;return this[_0x34af63(0x4e7)](!!(_0x4d8be0!=null&&_0x4d8be0[_0x34af63(0x1c3)]));}['toggleOffline'](){const _0xa4273f=_0x29c6a6;return this[_0xa4273f(0x31f)][_0xa4273f(0x43a)](J,this['unitID'],this['type'],this[_0xa4273f(0x1c4)],this[_0xa4273f(0x4ea)],this[_0xa4273f(0x1c9)]);}['toggleOnline'](){return this;}['resend'](){const _0xb47786=_0x29c6a6;this[_0xb47786(0x1c9)][_0xb47786(0x4c5)](this[_0xb47786(0x1c4)]);}['_onConflict'](_0x1b1bc1){const _0xb13db1=_0x29c6a6;return this[_0xb13db1(0x31f)][_0xb13db1(0x43a)](te,this[_0xb13db1(0x1ca)],this[_0xb13db1(0x236)],null,this[_0xb13db1(0x4ea)],this['_handler'],_0x1b1bc1);}};V=ne([g(0x5,_0x558bc4(_0x4ead3f)),g(0x6,_0x558bc4(_0x353354)),g(0x7,_0x558bc4(D)),g(0x8,_0x594d06),g(0x9,_0x2125ae),g(0xa,_0xd13d4c),g(0xb,_0x58b491)],V);let te=class extends re{constructor(_0x5209ad,_0x59786a,_0x2508e9,_0x3986b8,_0x4daba2,_0x236ac2=!0x1,_0x5d7d01,_0x33b678,_0x7b3d83,_0x5cc978,_0x4017f6,_0x56e5a6,_0x1dd204){const _0x57a554=_0x29c6a6;super(_0x5209ad,_0x59786a,_0x2508e9,_0x3986b8,_0x4daba2,_0x33b678,_0x7b3d83,_0x4017f6,_0x5cc978),l(this,_0x57a554(0x3ea),_0x57a554(0x348)),(this[_0x57a554(0x407)]=_0x236ac2,this[_0x57a554(0x484)]=_0x5d7d01,this[_0x57a554(0x357)]=_0x56e5a6,this['_notificationService']=_0x1dd204,this[_0x57a554(0x1e1)](),this[_0x57a554(0x1ce)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x29c6a6(0x434)](){return this;}[_0x29c6a6(0x31d)](){return this;}[_0x29c6a6(0x48f)](){return this;}[_0x29c6a6(0x242)](){return this;}['toggleOnline'](){return this;}[_0x29c6a6(0x489)](){const _0x47aeb2=_0x29c6a6;throw new Error(_0x47aeb2(0x406));}[_0x29c6a6(0x1ce)](){const _0x52d1cf=_0x29c6a6;this[_0x52d1cf(0x1ec)][_0x52d1cf(0x1dc)](this[_0x52d1cf(0x1ca)],this[_0x52d1cf(0x236)],null,[]);}[_0x29c6a6(0x1e1)](){const _0x153354=_0x29c6a6;this[_0x153354(0x407)]?this[_0x153354(0x478)][_0x153354(0x47a)]({'title':this[_0x153354(0x357)]['t'](_0x153354(0x229)),'content':this['_localeService']['t'](_0x153354(0x1c7)),'type':_0x153354(0x35b),'duration':0x0}):this['_notificationService']['show']({'title':this[_0x153354(0x357)]['t'](_0x153354(0x498)),'content':this[_0x153354(0x357)]['t']('conflict.content'),'type':'error','duration':0x0});}[_0x29c6a6(0x386)](){const _0x5ebb5b=_0x29c6a6;this[_0x5ebb5b(0x484)][_0x5ebb5b(0x456)](new _0x390ee3(this[_0x5ebb5b(0x1ca)])['id'],!0x1);}};te=ne([g(0x6,_0x558bc4(_0x478858)),g(0x7,_0x594d06),g(0x8,_0x58b491),g(0x9,_0x558bc4(D)),g(0xa,_0x558bc4(_0x353354)),g(0xb,_0x558bc4(_0x2f64f)),g(0xc,_0x4ee021)],te);let J=class extends re{constructor(_0x4162f3,_0x41f2c0,_0x194f1e,_0x2b7cb5,_0x4dc18c,_0x5e267e,_0x1ebdb1,_0x2a0b5b,_0x127a00,_0x5b549f){const _0x4db6af=_0x29c6a6;super(_0x4162f3,_0x41f2c0,_0x194f1e,_0x2b7cb5,_0x4dc18c,_0x127a00,_0x5b549f,_0x1ebdb1,_0x2a0b5b),l(this,_0x4db6af(0x3ea),_0x4db6af(0x2de)),this[_0x4db6af(0x31f)]=_0x5e267e;}[_0x29c6a6(0x359)](_0x4fa905){const _0x47a0e2=_0x29c6a6;return this[_0x47a0e2(0x4ea)][_0x47a0e2(0x2f7)](_0x4fa905),this[_0x47a0e2(0x1c2)](),this;}['onRemoteChangeset'](_0xc8c005){const _0x3e0f85=_0x29c6a6;throw new Error(_0x3e0f85(0x204));}['onRemoteAck'](){const _0x40c869=_0x29c6a6;throw new Error(_0x40c869(0x4c0));}[_0x29c6a6(0x48f)](){const _0xdb5ba4=_0x29c6a6;throw new Error(_0xdb5ba4(0x380));}[_0x29c6a6(0x242)](){return this;}['toggleOnline'](){const _0x20bf75=_0x29c6a6,{_injector:_0x1ca030,_pendingMutations:_0x357d33,_awaitingChangeset:_0x278548,unitID:_0x1b6e05,_handler:_0x36215f,type:_0x3db083}=this,_0x369f22=ws(_0x1ca030,_0x1b6e05,_0x3db083,_0x278548,_0x357d33,_0x36215f);return _0x369f22 instanceof k?_0x369f22[_0x20bf75(0x303)]():(_0x369f22 instanceof V||_0x369f22 instanceof X)&&_0x369f22['resend'](),_0x369f22;}[_0x29c6a6(0x489)](){const _0x40c408=_0x29c6a6;throw new Error(_0x40c408(0x25f));}};J=ne([g(0x5,_0x558bc4(_0x4ead3f)),g(0x6,_0x558bc4(_0x353354)),g(0x7,_0x558bc4(D)),g(0x8,_0x594d06),g(0x9,_0x58b491)],J);let W=class extends re{constructor(_0x533a7c,_0x5d804d,_0x1f75b3,_0x4ec7fc,_0x373c77,_0x14a33c,_0x2bd512,_0x5ea9fe,_0x350ff6,_0x20c6ef,_0x17d3d7,_0x39dfba,_0x33e23f,_0x5d2de6){const _0x1b33c9=_0x29c6a6;super(_0x533a7c,_0x5d804d,_0x1f75b3,_0x4ec7fc,_0x2bd512,_0x39dfba,_0x33e23f,_0x350ff6,_0x20c6ef),l(this,_0x1b33c9(0x3ea),_0x1b33c9(0x3c8)),(this['_acknowledgedAwaitingChangeset']=_0x373c77,this[_0x1b33c9(0x467)]=_0x14a33c,this[_0x1b33c9(0x31f)]=_0x5ea9fe,this[_0x1b33c9(0x214)]=_0x17d3d7,this['_transformService']=_0x5d2de6);}['onMissedChangesetFetched'](_0x31b5eb){const _0x461e4a=_0x29c6a6;try{const _0x11a4ca=[..._0x31b5eb,...this[_0x461e4a(0x467)]],_0x1e0118=[this[_0x461e4a(0x1c4)]||this['_acknowledgedAwaitingChangeset']][_0x461e4a(0x3c1)](_0x415e88=>!!_0x415e88);let _0x270044,_0xf52ac6;if(_0x1e0118['length']){const _0x3ab604=this['_transformService'][_0x461e4a(0x207)](_0x11a4ca,_0x1e0118,!0x1);if(!_0x389cf2(_0x3ab604))throw _0x3ab604[_0x461e4a(0x35b)];_0x270044=_0x3ab604[_0x461e4a(0x450)],_0xf52ac6=_0x3ab604[_0x461e4a(0x435)];}else _0x270044=_0x11a4ca,_0xf52ac6=[];let _0xf9ad8f=this['_pendingMutations'];_0x270044['forEach'](_0x36d4d9=>{const _0x37ad59=_0x461e4a;let _0x474d21;if(_0xf9ad8f[_0x37ad59(0x431)]){const _0x16f0f4=this[_0x37ad59(0x367)][_0x37ad59(0x216)](_0x36d4d9,_0xf9ad8f);if(!_0x589ac1(_0x16f0f4))throw _0x16f0f4[_0x37ad59(0x35b)];_0x474d21=_0x16f0f4[_0x37ad59(0x450)],_0xf9ad8f=_0x16f0f4['m2Prime'];}else _0x474d21=_0x36d4d9;this['_executeRemoteChangeset'](_0x474d21);}),this[_0x461e4a(0x2b3)]&&this[_0x461e4a(0x411)](),this[_0x461e4a(0x1c4)]&&_0xf52ac6[_0x461e4a(0x431)]&&(_0xf52ac6[0x0][_0x461e4a(0x3ce)]=this['_getCurrentRevision']());let _0x21b7b6;if(this['_awaitingChangeset']&&_0xf9ad8f[_0x461e4a(0x431)]!==0x0)_0x21b7b6=this[_0x461e4a(0x31f)][_0x461e4a(0x43a)](V,this[_0x461e4a(0x1ca)],this['type'],_0xf52ac6[0x0],_0xf9ad8f,this['_handler']);else{if(this[_0x461e4a(0x1c4)]&&_0xf9ad8f[_0x461e4a(0x431)]===0x0)_0xf52ac6[0x0][_0x461e4a(0x3ce)]=this[_0x461e4a(0x416)](),_0x21b7b6=this[_0x461e4a(0x31f)][_0x461e4a(0x43a)](X,this['unitID'],this[_0x461e4a(0x236)],_0xf52ac6[0x0],this['_handler']);else{if(_0xf9ad8f[_0x461e4a(0x431)]!==0x0){const _0x3a7568=this[_0x461e4a(0x31f)][_0x461e4a(0x43a)](k,this[_0x461e4a(0x1ca)],this[_0x461e4a(0x236)],_0xf9ad8f,this['_handler']);_0x3a7568[_0x461e4a(0x303)](),_0x21b7b6=_0x3a7568;}else _0x21b7b6=this[_0x461e4a(0x31f)][_0x461e4a(0x43a)](Te,this[_0x461e4a(0x1ca)],this['type'],this[_0x461e4a(0x1c9)]);}}return _0x21b7b6[_0x461e4a(0x1c2)](),_0x21b7b6;}catch(_0xc33cc){return this[_0x461e4a(0x214)][_0x461e4a(0x35b)]('[FetchMissState]',_0x461e4a(0x286),_0xc33cc),this[_0x461e4a(0x31f)][_0x461e4a(0x43a)](te,this[_0x461e4a(0x1ca)],this[_0x461e4a(0x236)],this['_awaitingChangeset'],this[_0x461e4a(0x4ea)],this['_handler'],!0x1);}}[_0x29c6a6(0x489)](){const _0x50b32e=_0x29c6a6;throw new Error(_0x50b32e(0x2f2));}[_0x29c6a6(0x359)](_0x535a34){const _0x469c34=_0x29c6a6;return this[_0x469c34(0x4ea)][_0x469c34(0x2f7)](_0x535a34),this;}[_0x29c6a6(0x434)](_0x5bc74d){const _0x45f2d1=_0x29c6a6;return this[_0x45f2d1(0x467)][_0x45f2d1(0x2f7)](_0x5bc74d),this;}['onRemoteAck'](_0x4669c5){const _0x2aaf3c=_0x29c6a6;if(this[_0x2aaf3c(0x1c4)])return this[_0x2aaf3c(0x2b3)]=this[_0x2aaf3c(0x1c4)],this[_0x2aaf3c(0x1c4)]=null,this;throw new Error(_0x2aaf3c(0x394));}['onRemoteRej'](_0x50985b){const _0x5800fc=_0x29c6a6;return this[_0x5800fc(0x4e7)](!!(_0x50985b!=null&&_0x50985b[_0x5800fc(0x1c3)]));}['toggleOffline'](){const _0x4bf71d=_0x29c6a6;return this[_0x4bf71d(0x31f)][_0x4bf71d(0x43a)](J,this[_0x4bf71d(0x1ca)],this[_0x4bf71d(0x236)],this[_0x4bf71d(0x1c4)],this[_0x4bf71d(0x4ea)],this[_0x4bf71d(0x1c9)]);}['toggleOnline'](){return this;}[_0x29c6a6(0x4e7)](_0x47fa14){const _0xdc2ff0=_0x29c6a6;return this[_0xdc2ff0(0x31f)][_0xdc2ff0(0x43a)](te,this['unitID'],this[_0xdc2ff0(0x236)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],_0x47fa14);}};W=ne([g(0x7,_0x558bc4(_0x4ead3f)),g(0x8,_0x558bc4(_0x353354)),g(0x9,_0x558bc4(D)),g(0xa,_0x2125ae),g(0xb,_0x594d06),g(0xc,_0x58b491),g(0xd,_0xd13d4c)],W);function ws(_0x37dbc9,_0x12ebc4,_0x43efeb,_0x567d93,_0x20503d,_0x1e93f6){const _0x10be5f=_0x29c6a6;return _0x567d93&&_0x20503d['length']?_0x37dbc9['createInstance'](V,_0x12ebc4,_0x43efeb,_0x567d93,_0x20503d,_0x1e93f6):_0x567d93?_0x37dbc9[_0x10be5f(0x43a)](X,_0x12ebc4,_0x43efeb,_0x567d93,_0x1e93f6):_0x20503d[_0x10be5f(0x431)]?_0x37dbc9['createInstance'](k,_0x12ebc4,_0x43efeb,_0x20503d,_0x1e93f6):_0x37dbc9[_0x10be5f(0x43a)](Te,_0x12ebc4,_0x43efeb,_0x1e93f6);}var kn=Object['defineProperty'],Vn=Object[_0x29c6a6(0x48e)],Je=(_0x459bc4,_0x5f1d6c,_0x5d5c9b,_0x38c6ef)=>{const _0x4778be=_0x29c6a6;for(var _0x3b857f=_0x38c6ef>0x1?void 0x0:_0x38c6ef?Vn(_0x5f1d6c,_0x5d5c9b):_0x5f1d6c,_0x1b1d79=_0x459bc4[_0x4778be(0x431)]-0x1,_0x44476a;_0x1b1d79>=0x0;_0x1b1d79--)(_0x44476a=_0x459bc4[_0x1b1d79])&&(_0x3b857f=(_0x38c6ef?_0x44476a(_0x5f1d6c,_0x5d5c9b,_0x3b857f):_0x44476a(_0x3b857f))||_0x3b857f);return _0x38c6ef&&_0x3b857f&&kn(_0x5f1d6c,_0x5d5c9b,_0x3b857f),_0x3b857f;},S=(_0x439f7c,_0x45451a)=>(_0x1d74c2,_0x2191d5)=>_0x45451a(_0x1d74c2,_0x2191d5,_0x439f7c);let Ee=class extends _0x39fd47{constructor(_0x219cb6,_0x3f88ed,_0x4e3ef4){const _0x555684=_0x29c6a6;super(),l(this,_0x555684(0x4d9),new Map()),l(this,_0x555684(0x270),new _0x2ef673()),(this[_0x555684(0x31f)]=_0x219cb6,this[_0x555684(0x266)]=_0x3f88ed,this[_0x555684(0x49b)]=_0x4e3ef4,this[_0x555684(0x26f)]());}[_0x29c6a6(0x378)](){const _0x1e8d1f=_0x29c6a6;super[_0x1e8d1f(0x378)](),this[_0x1e8d1f(0x4d9)][_0x1e8d1f(0x31b)](_0x25e09b=>_0x25e09b[_0x1e8d1f(0x378)]()),this[_0x1e8d1f(0x4d9)][_0x1e8d1f(0x3c6)]();}[_0x29c6a6(0x324)](_0x15c28a){const _0x586796=_0x29c6a6;var _0x160f11;return(_0x160f11=this['_entities'][_0x586796(0x362)](_0x15c28a))!=null?_0x160f11:null;}[_0x29c6a6(0x2f5)](_0x2e357e){const _0x4a64d7=_0x29c6a6,_0x220c3b=this[_0x4a64d7(0x324)](_0x2e357e);return _0x220c3b?_0x41c67f(_0x220c3b):this[_0x4a64d7(0x270)][_0x4a64d7(0x4dc)](_0x7426b5(_0x4a9dcb=>_0x4a9dcb[_0x4a64d7(0x1ca)]===_0x2e357e));}[_0x29c6a6(0x26f)](){const _0x29909e=_0x29c6a6;this[_0x29909e(0x49b)]['getTypeOfUnitAdded$'](_0x17600d['UNIVER_SHEET'])[_0x29909e(0x4dc)](_0x26437e(this['dispose$']),_0x4f7269(0x10))['subscribe'](async _0x6c39b0=>{const _0x8cb4=_0x29909e,_0x2ca33e=_0x6c39b0[_0x8cb4(0x38d)](),_0x17afe8=await this['_startCollaboration'](_0x2ca33e,H['UNIVER_SHEET']);this['_entities'][_0x8cb4(0x320)](_0x2ca33e,_0x17afe8);}),this['_univerInstanceService'][_0x29909e(0x1f7)](_0x17600d[_0x29909e(0x3f2)])[_0x29909e(0x4dc)](_0x26437e(this['dispose$']),_0x4f7269(0x10))[_0x29909e(0x4dc)](_0x7426b5(_0x58b25c=>!_0x58b25c[_0x29909e(0x38d)]()['startsWith']('__')))[_0x29909e(0x460)](async _0x537890=>{const _0x566ad6=_0x29909e,_0x5cf853=_0x537890[_0x566ad6(0x38d)](),_0x3aa4ba=await this['_startCollaboration'](_0x5cf853,H['UNIVER_DOC']);this['_entities'][_0x566ad6(0x320)](_0x5cf853,_0x3aa4ba);}),_0x2e2fc7(this[_0x29909e(0x49b)][_0x29909e(0x4d1)](_0x17600d[_0x29909e(0x3b4)]),this[_0x29909e(0x49b)]['getTypeOfUnitDisposed$'](_0x17600d['UNIVER_DOC']))[_0x29909e(0x4dc)](_0x26437e(this[_0x29909e(0x33a)]))[_0x29909e(0x460)](_0x42e834=>{const _0x3f17df=_0x29909e,_0x41c792=_0x42e834[_0x3f17df(0x38d)](),_0x494f6c=this[_0x3f17df(0x4d9)][_0x3f17df(0x362)](_0x41c792);_0x494f6c&&(_0x494f6c[_0x3f17df(0x378)](),this[_0x3f17df(0x4d9)][_0x3f17df(0x457)](_0x41c792));});}async[_0x29c6a6(0x3e8)](_0x563740,_0x481a94){const _0x9d0f1e=_0x29c6a6,_0x3f3995=await this[_0x9d0f1e(0x266)][_0x9d0f1e(0x4e6)](_0x563740),_0x4ae11f=this['_injector']['createInstance'](this[_0x9d0f1e(0x239)](_0x481a94),_0x563740,_0x481a94,_0x3f3995);return await _0x4ae11f['init'](),this['_entityInit$'][_0x9d0f1e(0x3af)](_0x4ae11f),_0x4ae11f;}['_getCtorByUniverType'](_0x5551fb){const _0x281394=_0x29c6a6;switch(_0x5551fb){case H['UNIVER_DOC']:return dt;case H['UNIVER_SHEET']:return ft;default:throw new Error(_0x281394(0x2ba)+_0x5551fb);}}};Ee=Je([_0x2d1123(_0xb39fe5[_0x29c6a6(0x4bc)],Ee),S(0x0,_0x558bc4(_0x4ead3f)),S(0x1,_0x558bc4(Re)),S(0x2,_0x33e391)],Ee);let We=class extends _0x39fd47{constructor(_0x4ada28,_0x10f6bd,_0x429d61,_0x5b38e7,_0x23c7d2,_0x2f0160,_0x32c6e0,_0x492bd5,_0x4acae7,_0x410a81,_0x2320df,_0x95188d,_0x389cc3){const _0x1e85ad=_0x29c6a6;super(),l(this,'_state$',new _0x2ae6a5(null)),l(this,'state$',this[_0x1e85ad(0x496)]['asObservable']()),l(this,_0x1e85ad(0x2a2)),l(this,_0x1e85ad(0x1d8),!0x1),l(this,'status$',this['state$'][_0x1e85ad(0x4dc)](_0x6aec6c(_0x2940e1=>_0x2940e1?_0x2940e1[_0x1e85ad(0x3ea)]:P[_0x1e85ad(0x4b5)]),_0x4f7c12(0x1))),l(this,_0x1e85ad(0x1d1),!0x1),l(this,_0x1e85ad(0x475),[]),(this[_0x1e85ad(0x1ca)]=_0x4ada28,this['_type']=_0x10f6bd,this[_0x1e85ad(0x3a8)]=_0x429d61,this[_0x1e85ad(0x31f)]=_0x5b38e7,this[_0x1e85ad(0x1ec)]=_0x23c7d2,this[_0x1e85ad(0x4e1)]=_0x2f0160,this[_0x1e85ad(0x357)]=_0x32c6e0,this[_0x1e85ad(0x230)]=_0x492bd5,this[_0x1e85ad(0x214)]=_0x4acae7,this[_0x1e85ad(0x3d7)]=_0x410a81,this[_0x1e85ad(0x426)]=_0x2320df,this[_0x1e85ad(0x484)]=_0x95188d,this[_0x1e85ad(0x47d)]=_0x389cc3);}get[_0x29c6a6(0x438)](){const _0x4b4543=_0x29c6a6;return this[_0x4b4543(0x2a2)];}async[_0x29c6a6(0x23e)](){const _0x2f907e=_0x29c6a6;if(this[_0x2f907e(0x438)])throw new Error(_0x2f907e(0x24d));await this[_0x2f907e(0x26f)]();}[_0x29c6a6(0x3f6)](){const _0x58f373=_0x29c6a6;return this[_0x58f373(0x1d8)]=!0x0,_0x359428(()=>{const _0x14037d=_0x58f373;this[_0x14037d(0x1d8)]=!0x1,this[_0x14037d(0x2fd)]();});}[_0x29c6a6(0x2f9)](_0x244387){const _0x27eeb0=_0x29c6a6;this['_state']=_0x244387,this['_state$'][_0x27eeb0(0x3af)](_0x244387);}async[_0x29c6a6(0x26f)](){const _0x4adac9=_0x29c6a6;var _0x5b0d8a;return this[_0x4adac9(0x2f9)](await this[_0x4adac9(0x336)]()),this[_0x4adac9(0x47d)]&&((_0x5b0d8a=this[_0x4adac9(0x47d)])==null||_0x5b0d8a[_0x4adac9(0x202)](this[_0x4adac9(0x1ca)]),this['disposeWithMe'](_0x359428(this[_0x4adac9(0x47d)][_0x4adac9(0x3ad)](this['unitID'])[_0x4adac9(0x460)](_0x465626=>{const _0x26565f=_0x4adac9;this[_0x26565f(0x214)]['debug']('[CollaborationEntity]',_0x26565f(0x3b2),_0x465626),_0x465626===Os[_0x26565f(0x39d)]?(this['_messageService']['show']({'content':this['_localeService']['t'](_0x26565f(0x262)),'type':_0x15c0da[_0x26565f(0x32c)]}),this[_0x26565f(0x484)][_0x26565f(0x456)](new _0x390ee3(this[_0x26565f(0x1ca)])['id'],!0x1)):this[_0x26565f(0x484)]['updatePermissionPoint'](new _0x390ee3(this['unitID'])['id'],!0x0);})))),this['disposeWithMe'](_0x359428(this[_0x4adac9(0x3a8)][_0x4adac9(0x1cd)]['subscribe'](_0x22b9b7=>{const _0x1ea5ce=_0x4adac9;_0x22b9b7===_e[_0x1ea5ce(0x490)]?this['_toggleOnline']():_0x22b9b7===_e[_0x1ea5ce(0x4b5)]&&this[_0x1ea5ce(0x1f4)]();}))),this[_0x4adac9(0x1fb)](_0x359428(this[_0x4adac9(0x3a8)]['event$']['subscribe'](_0x1d8b0f=>{const _0x4e1de5=_0x4adac9;try{switch(_0x1d8b0f[_0x4e1de5(0x2fa)]){case _0x5911b8[_0x4e1de5(0x472)]:{this['_onRemoteChangeset'](_0x8de20b(_0x1d8b0f[_0x4e1de5(0x3f0)]));break;}case _0x5911b8['CHANGESET_ACK']:{this['_onRemoteACK'](_0x1d8b0f[_0x4e1de5(0x3f0)]);break;}case _0x5911b8[_0x4e1de5(0x3ca)]:{this['_onRemoteRejected']();break;}case _0x5911b8[_0x4e1de5(0x311)]:{this[_0x4e1de5(0x30a)](_0x1d8b0f[_0x4e1de5(0x3f0)][_0x4e1de5(0x382)][_0x4e1de5(0x1f9)](_0x45cf82=>_0x8de20b(_0x45cf82)));break;}case _0x5911b8[_0x4e1de5(0x44d)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x3baddb){throw console[_0x4e1de5(0x35b)](_0x4e1de5(0x295),_0x3baddb),_0x3baddb;}}))),this[_0x4adac9(0x2a2)];}[_0x29c6a6(0x310)](){const _0x57c183=_0x29c6a6;this[_0x57c183(0x1d1)]=!0x1;}[_0x29c6a6(0x3fb)](){const _0x1d111d=_0x29c6a6;if(this[_0x1d111d(0x1d1)])throw new Error(_0x1d111d(0x2c2));this[_0x1d111d(0x1d1)]=!0x0;}[_0x29c6a6(0x29c)](_0xcf725a){const _0x28f35d=_0x29c6a6;this[_0x28f35d(0x3fb)](),this[_0x28f35d(0x2f9)](this[_0x28f35d(0x2a2)][_0x28f35d(0x359)](_0xcf725a)),this['_unlockTransition']();}[_0x29c6a6(0x4b1)](_0x4d4beb){const _0x4d1a73=_0x29c6a6;if(!(_0x4d4beb[_0x4d1a73(0x32f)]<=this[_0x4d1a73(0x230)][_0x4d1a73(0x433)](this['unitID']))){if(this['_collaborationPaused']){this[_0x4d1a73(0x475)][_0x4d1a73(0x2f7)](_0x4d4beb);return;}this[_0x4d1a73(0x4d4)](_0x4d4beb);}}[_0x29c6a6(0x2fd)](){const _0x4b9ebd=_0x29c6a6;this[_0x4b9ebd(0x475)][_0x4b9ebd(0x31b)](_0x4d1b24=>this['_applyRemoteChangeset'](_0x4d1b24)),this[_0x4b9ebd(0x475)]=[];}[_0x29c6a6(0x4d4)](_0x3fcf2){const _0x3094d5=_0x29c6a6,_0x2c39d6=this[_0x3094d5(0x4e1)]['interceptor'][_0x3094d5(0x465)](this['_compressMutationService'][_0x3094d5(0x349)][_0x3094d5(0x228)]()[_0x3094d5(0x1bf)])(_0x3fcf2[_0x3094d5(0x365)],null)||_0x3fcf2[_0x3094d5(0x365)],_0x3baf0b={..._0x3fcf2,'mutations':_0x2c39d6};this['_lockTransition'](),this[_0x3094d5(0x2f9)](this[_0x3094d5(0x2a2)]['onRemoteChangeset'](_0x3baf0b)),this['_unlockTransition']();}[_0x29c6a6(0x200)](_0x1dc52c){const _0x3d7157=_0x29c6a6;this[_0x3d7157(0x3fb)](),this[_0x3d7157(0x2f9)](this[_0x3d7157(0x2a2)][_0x3d7157(0x31d)](_0x1dc52c)),this['_unlockTransition']();}[_0x29c6a6(0x254)](_0x1f4bb7){const _0x51efcc=_0x29c6a6;this[_0x51efcc(0x3fb)](),this[_0x51efcc(0x2f9)](this[_0x51efcc(0x2a2)][_0x51efcc(0x48f)](_0x1f4bb7)),this[_0x51efcc(0x310)]();}[_0x29c6a6(0x30a)](_0x2f8469){const _0x381b4b=_0x29c6a6;if(!(this[_0x381b4b(0x2a2)]instanceof W))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x4372c4=_0x2f8469[_0x381b4b(0x1f9)](_0x34abcd=>{const _0x30f331=_0x381b4b,_0xd6d416=this[_0x30f331(0x4e1)][_0x30f331(0x349)][_0x30f331(0x465)](this[_0x30f331(0x4e1)][_0x30f331(0x349)][_0x30f331(0x228)]()[_0x30f331(0x1bf)])(_0x34abcd['mutations'],null)||_0x34abcd[_0x30f331(0x365)];return{..._0x34abcd,'mutations':_0xd6d416};});this['_lockTransition'](),this[_0x381b4b(0x2f9)](this['_state'][_0x381b4b(0x256)](_0x4372c4)),this['_unlockTransition']();}[_0x29c6a6(0x1f4)](){const _0x5e5599=_0x29c6a6;this[_0x5e5599(0x3fb)](),this[_0x5e5599(0x2f9)](this['_state']['toggleOffline']()),this[_0x5e5599(0x310)]();}[_0x29c6a6(0x3bf)](){const _0x3cb878=_0x29c6a6;this[_0x3cb878(0x3fb)](),this['_updateState'](this[_0x3cb878(0x2a2)][_0x3cb878(0x2b1)]()),this[_0x3cb878(0x310)]();}async[_0x29c6a6(0x336)](){return new Promise(_0x3e8b67=>{const _0x52d190=_0x34fd;this[_0x52d190(0x3a8)][_0x52d190(0x1cd)][_0x52d190(0x4dc)](_0x1c0ea1(0x1))[_0x52d190(0x460)](async _0x18deef=>{const _0x80fa39=_0x52d190;_0x3e8b67(await this[_0x80fa39(0x1e0)](_0x18deef===_e[_0x80fa39(0x490)]));});});}[_0x29c6a6(0x2f3)](){const _0x3aff72=_0x29c6a6,_0x213d1d=this[_0x3aff72(0x1ca)];return{'onStateChange':(_0x599649,_0xf26d9b)=>{const _0x196c33=_0x3aff72;if(_0x599649!==this[_0x196c33(0x2a2)])throw new Error(_0x196c33(0x312)+_0x599649['status']+_0x196c33(0x32d)+_0xf26d9b[_0x196c33(0x3ea)]+_0x196c33(0x1d4)+this[_0x196c33(0x2a2)][_0x196c33(0x3ea)]);this[_0x196c33(0x2f9)](_0xf26d9b);},'onSendChangeset':_0x40e753=>{const _0x5b6579=_0x3aff72,_0x9918fb={'eventID':_0x5911b8[_0x5b6579(0x4e2)],'data':{'unitID':_0x40e753[_0x5b6579(0x1ca)],'unitType':this[_0x5b6579(0x31e)],'changeset':_0x40e753,'memberID':this[_0x5b6579(0x3a8)][_0x5b6579(0x48c)]()}};this[_0x5b6579(0x3a8)][_0x5b6579(0x293)](_0x9918fb,this['unitID']);},'onMissingChangesets':({from:_0x1f9d5,to:_0x259971})=>{const _0x53c291=_0x3aff72;this['_logService'][_0x53c291(0x363)](_0x53c291(0x4d3),_0x53c291(0x491)+_0x1f9d5+_0x53c291(0x4df)+_0x259971);const _0xa9ce22={'eventID':_0x5911b8[_0x53c291(0x39a)],'data':{'unitID':_0x213d1d,'unitType':this[_0x53c291(0x31e)],'from':_0x1f9d5,'to':_0x259971}};this[_0x53c291(0x3a8)][_0x53c291(0x293)](_0xa9ce22,this[_0x53c291(0x1ca)]);}};}async['_createInitialStateImpl'](_0xa85c53){const _0x2927de=_0x29c6a6;var _0x3210d2,_0x203875;const _0x2fe129=await this[_0x2927de(0x1ec)][_0x2927de(0x3bd)](this[_0x2927de(0x1ca)]),_0xa140a9=(_0x3210d2=_0x2fe129==null?void 0x0:_0x2fe129[_0x2927de(0x365)])!=null?_0x3210d2:[],_0x3a7d1a=(_0x203875=_0x2fe129==null?void 0x0:_0x2fe129[_0x2927de(0x2e6)])!=null?_0x203875:null,_0x3f5d8b=this[_0x2927de(0x1ca)];try{this['_replayCachedMutations'](_0x3a7d1a,_0xa140a9);}catch(_0x480d10){this[_0x2927de(0x214)][_0x2927de(0x35b)](_0x480d10);}const _0x3c2e3b=this[_0x2927de(0x2f3)]();if(_0xa85c53){const _0x15f7e7=ws(this['_injector'],_0x3f5d8b,this[_0x2927de(0x31e)],_0x3a7d1a,_0xa140a9,_0x3c2e3b);return _0x15f7e7 instanceof k?_0x15f7e7[_0x2927de(0x303)]():(_0x15f7e7 instanceof V||_0x15f7e7 instanceof X)&&_0x15f7e7['resend'](),_0x15f7e7;}return this[_0x2927de(0x31f)][_0x2927de(0x43a)](J,_0x3f5d8b,this[_0x2927de(0x31e)],_0x3a7d1a,_0xa140a9,_0x3c2e3b);}[_0x29c6a6(0x316)](_0x228848,_0x1e1aea){const _0x3193ed=_0x29c6a6;var _0x165705,_0x73edbf;const _0xc30f=this[_0x3193ed(0x4e1)]['interceptor'][_0x3193ed(0x465)](this[_0x3193ed(0x4e1)][_0x3193ed(0x349)][_0x3193ed(0x228)]()[_0x3193ed(0x1bf)]);(_0x165705=_0xc30f((_0x228848==null?void 0x0:_0x228848[_0x3193ed(0x365)])||[],null))==null||_0x165705[_0x3193ed(0x31b)](_0x49adc9=>this[_0x3193ed(0x3d7)][_0x3193ed(0x22a)](_0x49adc9['id'],_0x49adc9[_0x3193ed(0x3c7)])),(_0x73edbf=_0xc30f(_0x1e1aea||[],null))==null||_0x73edbf[_0x3193ed(0x31b)](_0x5f08b3=>this[_0x3193ed(0x3d7)][_0x3193ed(0x22a)](_0x5f08b3['id'],_0x5f08b3[_0x3193ed(0x3c7)]));}};We=Je([S(0x3,_0x558bc4(_0x4ead3f)),S(0x4,_0x558bc4(D)),S(0x5,_0x558bc4(_0x969bae)),S(0x6,_0x558bc4(_0x2f64f)),S(0x7,_0x558bc4(_0x353354)),S(0x8,_0x2125ae),S(0x9,_0x594d06),S(0xa,_0x367db8),S(0xb,_0x478858),S(0xc,_0x2cbf69(Xe))],We);let dt=class extends We{constructor(_0x8f27fb,_0x41521e,_0x2e47a8,_0x1eb470,_0x5dd54e,_0x3573a4,_0x1f3c4c,_0x8eb3e,_0x369d76,_0x368515,_0x437b59,_0x35021b,_0x30f3ea,_0x1ce386,_0x4fcda2,_0xe5bcbf,_0x3fd351){const _0x5349ea=_0x29c6a6;super(_0x8f27fb,_0x41521e,_0x2e47a8,_0x1eb470,_0x5dd54e,_0x3573a4,_0x1f3c4c,_0x8eb3e,_0x30f3ea,_0x1ce386,_0x4fcda2,_0xe5bcbf,_0x3fd351),this[_0x5349ea(0x1ca)]=_0x8f27fb,this[_0x5349ea(0x236)]=_0x41521e,this[_0x5349ea(0x27a)]=_0x2e47a8,this['_docStateChangeManagerService']=_0x369d76,this[_0x5349ea(0x26c)]=_0x368515,this['_docTransformSelectionsService']=_0x437b59,this[_0x5349ea(0x3b7)]=_0x35021b;}[_0x29c6a6(0x2f3)](){const _0x569abb=_0x29c6a6,_0x1e9c13=super['_createHandler']();return _0x1e9c13['onTransformIME']=_0x136068=>this[_0x569abb(0x26c)][_0x569abb(0x36d)](_0x136068),_0x1e9c13[_0x569abb(0x4be)]=_0x2a1b0b=>this['_docTransformSelectionsService'][_0x569abb(0x21d)](_0x2a1b0b),_0x1e9c13[_0x569abb(0x4e9)]=_0xae979=>this['_docSyncEditingCollabCursorService'][_0x569abb(0x44f)](_0xae979),_0x1e9c13[_0x569abb(0x267)]=_0x2e14f3=>this[_0x569abb(0x26c)][_0x569abb(0x42c)](_0x2e14f3),_0x1e9c13;}async[_0x29c6a6(0x26f)](){const _0x5a5c9d=_0x29c6a6,_0x32c4ff=await super['_init']();return this[_0x5a5c9d(0x449)][_0x5a5c9d(0x339)][_0x5a5c9d(0x4dc)](_0x26437e(this[_0x5a5c9d(0x33a)]))[_0x5a5c9d(0x460)](_0x4ec351=>{const _0x3d4e5d=_0x5a5c9d;if(_0x4ec351==null)return;const {unitId:_0x53924f,redoState:_0x9dd56f,commandId:_0x197857}=_0x4ec351;if(_0x53924f!==this[_0x3d4e5d(0x1ca)])return;const _0xfc2020={'id':_0x197857,'type':_0x4dcc25['MUTATION'],'params':{'unitId':_0x53924f,'actions':_0x9dd56f[_0x3d4e5d(0x27c)],'textRanges':null}};this[_0x3d4e5d(0x29c)](_0xfc2020);}),_0x32c4ff;}};dt=Je([S(0x3,_0x558bc4(_0x4ead3f)),S(0x4,_0x558bc4(D)),S(0x5,_0x558bc4(_0x969bae)),S(0x6,_0x558bc4(_0x2f64f)),S(0x7,_0x558bc4(_0x353354)),S(0x8,_0x558bc4(_0x2a623e)),S(0x9,_0x558bc4(Be)),S(0xa,_0x558bc4(ke)),S(0xb,_0x558bc4(Mt)),S(0xc,_0x2125ae),S(0xd,_0x594d06),S(0xe,_0x367db8),S(0xf,_0x478858),S(0x10,_0x2cbf69(Xe))],dt);let ft=class extends We{constructor(_0x5543ad,_0x12509e,_0x3863cc,_0x27c4aa,_0x38e6a1,_0x3c4ae4,_0x1c36da,_0x4707a4,_0x1274d6,_0x5d31e4,_0x18fc3e,_0x15b6ff,_0x230ecc,_0x1a0dd0){const _0x117143=_0x29c6a6;super(_0x5543ad,_0x12509e,_0x3863cc,_0x27c4aa,_0x38e6a1,_0x3c4ae4,_0x1c36da,_0x4707a4,_0x5d31e4,_0x18fc3e,_0x15b6ff,_0x230ecc,_0x1a0dd0),this['unitID']=_0x5543ad,this[_0x117143(0x236)]=_0x12509e,this['session']=_0x3863cc,this[_0x117143(0x4aa)]=_0x1274d6;}['_createHandler'](){const _0x456c09=_0x29c6a6,_0x572c8a=super[_0x456c09(0x2f3)]();return _0x572c8a['onTransformSelections']=_0x161b93=>this[_0x456c09(0x4aa)][_0x456c09(0x21d)](_0x161b93),_0x572c8a;}async[_0x29c6a6(0x26f)](){const _0x2a6561=_0x29c6a6,_0x52c3cb=await super[_0x2a6561(0x26f)]();return this[_0x2a6561(0x1fb)](this['_commandService'][_0x2a6561(0x41d)]((_0x19d790,_0xeb4de2)=>{const _0x4ac3a3=_0x2a6561;if(_0x19d790[_0x4ac3a3(0x236)]!==_0x4dcc25[_0x4ac3a3(0x414)]||_0xeb4de2!=null&&_0xeb4de2[_0x4ac3a3(0x1c6)]||_0xeb4de2!=null&&_0xeb4de2['onlyLocal'])return;const _0x32dd4c=_0x19d790['params'];if((_0x32dd4c==null?void 0x0:_0x32dd4c[_0x4ac3a3(0x458)])!==this['unitID'])return;const _0x41aa6d=_0x19d790,_0x20855f=this[_0x4ac3a3(0x4e1)][_0x4ac3a3(0x349)][_0x4ac3a3(0x465)](this[_0x4ac3a3(0x4e1)][_0x4ac3a3(0x349)][_0x4ac3a3(0x228)]()[_0x4ac3a3(0x258)])([_0x41aa6d],null)||[_0x41aa6d];this[_0x4ac3a3(0x29c)](_0x20855f[0x0]);})),_0x52c3cb;}};ft=Je([S(0x3,_0x558bc4(_0x4ead3f)),S(0x4,_0x558bc4(D)),S(0x5,_0x558bc4(_0x969bae)),S(0x6,_0x558bc4(_0x2f64f)),S(0x7,_0x558bc4(_0x353354)),S(0x8,_0x558bc4(Ve)),S(0x9,_0x2125ae),S(0xa,_0x594d06),S(0xb,_0x367db8),S(0xc,_0x478858),S(0xd,_0x2cbf69(Xe))],ft);const Zt=['purple300',_0x29c6a6(0x400),_0x29c6a6(0x453),'red300',_0x29c6a6(0x445),_0x29c6a6(0x2c6)];class At extends _0xc93720{constructor(){const _0x17961d=_0x29c6a6;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x17961d(0x3e3),0x0);}[_0x29c6a6(0x361)](_0x5a7d14){const _0x24f19f=_0x29c6a6;if(this[_0x24f19f(0x462)]['has'](_0x5a7d14))return this[_0x24f19f(0x462)]['get'](_0x5a7d14);const _0x1da129=Zt[this[_0x24f19f(0x3e3)]];return this['_colorIndex']=(this[_0x24f19f(0x3e3)]+0x1)%Zt[_0x24f19f(0x431)],this['_assignedColors'][_0x24f19f(0x320)](_0x5a7d14,_0x1da129),_0x1da129;}}var Wn=Object['defineProperty'],Gn=Object[_0x29c6a6(0x48e)],Yn=(_0x11b655,_0x397e71,_0x41396e,_0x2b3624)=>{for(var _0x128c46=_0x2b3624>0x1?void 0x0:_0x2b3624?Gn(_0x397e71,_0x41396e):_0x397e71,_0x154be2=_0x11b655['length']-0x1,_0x4ad1f7;_0x154be2>=0x0;_0x154be2--)(_0x4ad1f7=_0x11b655[_0x154be2])&&(_0x128c46=(_0x2b3624?_0x4ad1f7(_0x397e71,_0x41396e,_0x128c46):_0x4ad1f7(_0x128c46))||_0x128c46);return _0x2b3624&&_0x128c46&&Wn(_0x397e71,_0x41396e,_0x128c46),_0x128c46;},ae=(_0x4540aa,_0x3e2033)=>(_0xfde131,_0x29cf00)=>_0x3e2033(_0xfde131,_0x29cf00,_0x4540aa);const Kn=0x12c,Xn=0x64,Jn=()=>{let _0x591a21=[],_0x9df685=!0x1;return _0x2fb43a=>{const _0x557374=_0x34fd;_0x591a21[_0x557374(0x2f7)](_0x2fb43a),_0x9df685||(_0x9df685=!0x0,setTimeout(()=>{const _0x4d7e36=_0x557374;_0x591a21[_0x4d7e36(0x31b)](_0x46d5fd=>_0x46d5fd()),_0x591a21=[],_0x9df685=!0x1;}));};};let gt=class extends _0x39fd47{constructor(_0x4e398f,_0x47c2d5,_0x4a1908,_0x4fda1d,_0x2c43fe,_0x4dd092,_0x381345,_0x45d337){const _0x4143b5=_0x29c6a6;super(),l(this,_0x4143b5(0x488),!0x1),l(this,_0x4143b5(0x26f),!0x1),l(this,'_cursorInfo$',new _0x2ae6a5(new Map())),l(this,_0x4143b5(0x4ed),this[_0x4143b5(0x2d9)][_0x4143b5(0x4db)]()),l(this,'_roomMembers$',new _0x2ae6a5([])),l(this,_0x4143b5(0x30b),this['_roomMembers$'][_0x4143b5(0x4dc)](_0x3c2ea7(Kn))),l(this,_0x4143b5(0x351),_0x284565((_0x56059b,_0x2463b9)=>{const _0x3c0042=_0x4143b5,_0x10f091={'eventID':_0x5911b8['UPDATE_CURSOR'],'data':{'unitID':this[_0x3c0042(0x1ca)],'memberID':this[_0x3c0042(0x3a8)]['getMemberID'](),'selection':_0x2a0dc7(_0x56059b,_0x2463b9[_0x3c0042(0x307)])}};this['_session']['send'](_0x10f091,this[_0x3c0042(0x1ca)]);},Xn)),(this[_0x4143b5(0x1ca)]=_0x4e398f,this[_0x4143b5(0x3a8)]=_0x47c2d5,this[_0x4143b5(0x31f)]=_0x4a1908,this['_colorAssignService']=_0x4fda1d,this[_0x4143b5(0x23c)]=_0x2c43fe,this['_univerInstanceService']=_0x4dd092,this['_commandService']=_0x381345,this[_0x4143b5(0x48d)]=_0x45d337);}get['cursorInfo'](){const _0x3d291e=_0x29c6a6;return this[_0x3d291e(0x2d9)][_0x3d291e(0x3d5)]();}get[_0x29c6a6(0x284)](){const _0x1e7a8d=_0x29c6a6;return this[_0x1e7a8d(0x4da)]['getValue']();}['dispose'](){const _0x2ce58c=_0x29c6a6;super[_0x2ce58c(0x378)](),this[_0x2ce58c(0x2d9)][_0x2ce58c(0x3af)](new Map()),this[_0x2ce58c(0x2d9)][_0x2ce58c(0x2ed)](),this[_0x2ce58c(0x4da)][_0x2ce58c(0x3af)]([]),this[_0x2ce58c(0x4da)]['complete']();}[_0x29c6a6(0x23e)](){const _0x2e9ecf=_0x29c6a6;this[_0x2e9ecf(0x26f)]||(this['_init']=!0x0,this[_0x2e9ecf(0x3a8)][_0x2e9ecf(0x1cd)][_0x2e9ecf(0x4dc)](_0x26437e(this[_0x2e9ecf(0x33a)]))[_0x2e9ecf(0x460)](_0x5d01c3=>{const _0x26d0d8=_0x2e9ecf;_0x5d01c3===_e[_0x26d0d8(0x490)]?this[_0x26d0d8(0x3bf)]():this['_toggleOffline']();}),this['_session']['event$'][_0x2e9ecf(0x4dc)](_0x26437e(this[_0x2e9ecf(0x33a)]))[_0x2e9ecf(0x460)](_0x5e5395=>{const _0x16bdb1=_0x2e9ecf,_0x50be19=_0x5e5395[_0x16bdb1(0x2fa)];_0x50be19===_0x5911b8[_0x16bdb1(0x2aa)]&&this[_0x16bdb1(0x33f)](_0x5e5395),_0x50be19===_0x5911b8[_0x16bdb1(0x49c)]&&this['_onCursorDelete'](_0x5e5395);}),this[_0x2e9ecf(0x410)](),this['disposeWithMe'](this['_commandService'][_0x2e9ecf(0x41d)](_0x1ef98b=>{const _0x4ef11c=_0x2e9ecf;if(this[_0x4ef11c(0x488)]&&_0x1ef98b['id']===_0x57025f['id']&&_0x1ef98b[_0x4ef11c(0x3c7)][_0x4ef11c(0x458)]===this['unitID']){const _0x4f4e31=_0x1ef98b[_0x4ef11c(0x3c7)];this[_0x4ef11c(0x351)](_0x4f4e31['subUnitId'],_0x4f4e31[_0x4ef11c(0x1de)][0x0]);}})));}[_0x29c6a6(0x33f)](_0x278723){const _0x54403b=_0x29c6a6;var _0x11852e,_0x57d35b;const {memberID:_0x1e0931,selection:_0x571996}=_0x278723['data'],{sheetName:_0xeea95,range:_0x28e575}=_0x511cc9(_0x571996),_0x4ed93e={'name':(_0x57d35b=(_0x11852e=this[_0x54403b(0x23c)][_0x54403b(0x249)](this[_0x54403b(0x1ca)],_0x1e0931))==null?void 0x0:_0x11852e[_0x54403b(0x47b)])!=null?_0x57d35b:_0x54403b(0x33d),'range':this[_0x54403b(0x37a)](_0xeea95,_0x28e575),'sheetID':_0xeea95,'color':this[_0x54403b(0x4a8)]['assignAColorForMemberID'](_0x1e0931),'selection':_0x571996},_0x42ba35=this['cursorInfo'];_0x42ba35[_0x54403b(0x320)](_0x1e0931,_0x4ed93e),this[_0x54403b(0x2d9)][_0x54403b(0x3af)](_0x42ba35);}[_0x29c6a6(0x4b6)](_0x578221){const _0x5f0eb8=_0x29c6a6,{memberID:_0x42f9d8}=_0x578221[_0x5f0eb8(0x3f0)],_0x220d96=this['cursorInfo'];_0x220d96[_0x5f0eb8(0x457)](_0x42f9d8),this[_0x5f0eb8(0x2d9)][_0x5f0eb8(0x3af)](_0x220d96);}[_0x29c6a6(0x37a)](_0x9c552e,_0x2f6e5f){const _0x44e5fe=_0x29c6a6;var _0x122039,_0x5b2c7e;const _0x1e12a8=(_0x5b2c7e=(_0x122039=this[_0x44e5fe(0x49b)][_0x44e5fe(0x4dd)](this['unitID']))==null?void 0x0:_0x122039['getSheetBySheetId'](_0x9c552e))==null?void 0x0:_0x5b2c7e[_0x44e5fe(0x3d4)]();return(_0x1e12a8==null?void 0x0:_0x1e12a8[_0x44e5fe(0x1f5)](_0x1c058e=>_0x35b9e8[_0x44e5fe(0x1e3)](_0x1c058e,_0x2f6e5f)))||_0x2f6e5f;}['_onRefRangeChange'](){const _0x4c751c=_0x29c6a6,_0x5d0015=new _0x3543bd(),_0x22ad4e=Jn(),_0x3fe58d=()=>{const _0xa2496c=_0x34fd;_0x5d0015[_0xa2496c(0x378)]();const _0x17cbf7=(_0x10b831,_0x1e3765,_0x2fd858,_0x3d5839)=>{const _0x1575f7=_0xa2496c;let _0x3e50d1=[];switch(_0x10b831['id']){case _0x2d6399[_0x1575f7(0x2c1)]:{_0x3e50d1=_0x23fee4(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x383)]:{_0x3e50d1=_0x5b7d4a(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x22c)]:{_0x3e50d1=_0x180534(_0x10b831,_0x3d5839);break;}case _0x2d6399['InsertRangeMoveDownCommandId']:{_0x3e50d1=_0x5d05d0(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x3da)]:{_0x3e50d1=_0x3c5fe4(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x238)]:{_0x3e50d1=_0x5152e3(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x37f)]:{_0x3e50d1=_0x49f706(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x28f)]:{_0x3e50d1=_0x5357dc(_0x10b831,_0x3d5839);break;}case _0x2d6399[_0x1575f7(0x27f)]:{_0x3e50d1=_0x508fe0(_0x10b831,_0x3d5839);break;}}const _0xb92f58=_0x1f0979(_0x3e50d1,_0x3d5839),_0x354913=this['cursorInfo'][_0x1575f7(0x362)](_0x1e3765);if(_0x354913&&_0xb92f58){const _0x9a06a3={..._0x354913,'range':_0xb92f58};this['cursorInfo'][_0x1575f7(0x320)](_0x1e3765,_0x9a06a3),_0x22ad4e(()=>{const _0x1ceb00=_0x1575f7,_0x35e889=this['_refRangeService'][_0x1ceb00(0x2b0)](_0xb92f58,_0x141a53=>(_0x35e889[_0x1ceb00(0x378)](),_0x17cbf7(_0x141a53,_0x1e3765,_0x2fd858,_0xb92f58)));_0x5d0015[_0x1ceb00(0x497)](_0x35e889);});}return{'redos':[],'undos':[]};};this[_0xa2496c(0x235)][_0xa2496c(0x31b)]((_0x4041c6,_0x4d7e83)=>{const _0x2b98a9=_0xa2496c,{range:_0x5bc296,sheetID:_0x4094c3}=_0x4041c6,_0x1f130a=this[_0x2b98a9(0x48d)][_0x2b98a9(0x2b0)](_0x5bc296,_0x143656=>(_0x1f130a[_0x2b98a9(0x378)](),_0x17cbf7(_0x143656,_0x4d7e83,_0x4094c3,_0x5bc296)));_0x5d0015[_0x2b98a9(0x497)](_0x1f130a);});};this['disposeWithMe'](_0x359428(this[_0x4c751c(0x2d9)]['subscribe'](()=>{_0x3fe58d();})));}[_0x29c6a6(0x3bf)](){const _0x24235e=_0x29c6a6;var _0x1b4137,_0x481608;if(this['_online']=!0x0,((_0x1b4137=this['_univerInstanceService'][_0x24235e(0x2e1)]())==null?void 0x0:_0x1b4137[_0x24235e(0x38d)]())!==this['unitID'])return;const _0x2e46e6=(_0x481608=this[_0x24235e(0x31f)][_0x24235e(0x362)](_0x543329)['getSelections']())==null?void 0x0:_0x481608[0x0],_0x4f1908=this[_0x24235e(0x49b)][_0x24235e(0x4ec)](_0x17600d[_0x24235e(0x3b4)])[_0x24235e(0x36e)]();_0x2e46e6&&_0x4f1908&&this[_0x24235e(0x351)](_0x4f1908[_0x24235e(0x2bb)](),_0x2e46e6);}['_toggleOffline'](){const _0x6c5109=_0x29c6a6;this[_0x6c5109(0x488)]=!0x1;}};gt=Yn([ae(0x2,_0x558bc4(_0x4ead3f)),ae(0x3,_0x558bc4(At)),ae(0x4,_0x558bc4(ee)),ae(0x5,_0x33e391),ae(0x6,_0x594d06),ae(0x7,_0x558bc4(_0x5e51b6))],gt);var zn=Object[_0x29c6a6(0x3f3)],Zn=Object[_0x29c6a6(0x48e)],qn=(_0x46bfa5,_0x15c13a,_0x38a7dd,_0x437464)=>{const _0x2cd8d4=_0x29c6a6;for(var _0x536f83=_0x437464>0x1?void 0x0:_0x437464?Zn(_0x15c13a,_0x38a7dd):_0x15c13a,_0x4477c3=_0x46bfa5[_0x2cd8d4(0x431)]-0x1,_0x2542da;_0x4477c3>=0x0;_0x4477c3--)(_0x2542da=_0x46bfa5[_0x4477c3])&&(_0x536f83=(_0x437464?_0x2542da(_0x15c13a,_0x38a7dd,_0x536f83):_0x2542da(_0x536f83))||_0x536f83);return _0x437464&&_0x536f83&&zn(_0x15c13a,_0x38a7dd,_0x536f83),_0x536f83;},q=(_0x115bcf,_0x5c7d7d)=>(_0x369829,_0x2798de)=>_0x5c7d7d(_0x369829,_0x2798de,_0x115bcf);const Qn=0x12c,er=0x64;let mt=class extends _0x39fd47{constructor(_0x4ff57b,_0x48a0be,_0x42e897,_0x2aa41e,_0x10d3f3,_0x5623ed,_0x1123f0,_0x13823d,_0x522d58){const _0x283a7d=_0x29c6a6;super(),l(this,'_online',!0x1),l(this,_0x283a7d(0x26f),!0x1),l(this,'_cursorInfo$',new _0x2ae6a5(new Map())),l(this,_0x283a7d(0x4ed),this['_cursorInfo$']['asObservable']()),l(this,_0x283a7d(0x4da),new _0x2ae6a5([])),l(this,_0x283a7d(0x30b),this[_0x283a7d(0x4da)][_0x283a7d(0x4dc)](_0x3c2ea7(Qn))),l(this,_0x283a7d(0x351),_0x284565(_0x306860=>{const _0x556c41=_0x283a7d,_0x31c7ed={'eventID':_0x5911b8[_0x556c41(0x2aa)],'data':{'unitID':this[_0x556c41(0x1ca)],'memberID':this[_0x556c41(0x3a8)][_0x556c41(0x48c)](),'selection':Ds(_0x306860)}};this[_0x556c41(0x3a8)][_0x556c41(0x293)](_0x31c7ed,this[_0x556c41(0x1ca)]);},er)),(this[_0x283a7d(0x1ca)]=_0x4ff57b,this[_0x283a7d(0x3a8)]=_0x48a0be,this[_0x283a7d(0x31f)]=_0x42e897,this[_0x283a7d(0x4a8)]=_0x2aa41e,this[_0x283a7d(0x23c)]=_0x10d3f3,this[_0x283a7d(0x421)]=_0x5623ed,this[_0x283a7d(0x367)]=_0x1123f0,this[_0x283a7d(0x49b)]=_0x13823d,this[_0x283a7d(0x3d7)]=_0x522d58);}get['cursorInfo'](){const _0x474e77=_0x29c6a6;return this[_0x474e77(0x2d9)][_0x474e77(0x3d5)]();}get[_0x29c6a6(0x284)](){const _0x1b4522=_0x29c6a6;return this[_0x1b4522(0x4da)][_0x1b4522(0x3d5)]();}['dispose'](){const _0x4714fb=_0x29c6a6;super[_0x4714fb(0x378)](),this[_0x4714fb(0x2d9)][_0x4714fb(0x3af)](new Map()),this[_0x4714fb(0x2d9)][_0x4714fb(0x2ed)](),this[_0x4714fb(0x4da)][_0x4714fb(0x3af)]([]),this[_0x4714fb(0x4da)][_0x4714fb(0x2ed)]();}[_0x29c6a6(0x23e)](){const _0x2bb3ce=_0x29c6a6;this['_init']||(this[_0x2bb3ce(0x26f)]=!0x0,this[_0x2bb3ce(0x3a8)][_0x2bb3ce(0x1cd)]['pipe'](_0x26437e(this[_0x2bb3ce(0x33a)]))[_0x2bb3ce(0x460)](_0x24cd1f=>{const _0x238b8d=_0x2bb3ce;_0x24cd1f===_e[_0x238b8d(0x490)]?this[_0x238b8d(0x3bf)]():this[_0x238b8d(0x1f4)]();}),this[_0x2bb3ce(0x3a8)]['event$']['pipe'](_0x26437e(this[_0x2bb3ce(0x33a)]))['subscribe'](_0x1434b5=>{const _0x5a6c88=_0x2bb3ce,_0x5c5da2=_0x1434b5[_0x5a6c88(0x2fa)];_0x5c5da2===_0x5911b8[_0x5a6c88(0x2aa)]&&this[_0x5a6c88(0x33f)](_0x1434b5),_0x5c5da2===_0x5911b8[_0x5a6c88(0x49c)]&&this[_0x5a6c88(0x4b6)](_0x1434b5);}),this[_0x2bb3ce(0x1fb)](this[_0x2bb3ce(0x3d7)][_0x2bb3ce(0x41d)](_0x4e7a3a=>{const _0x56e5f4=_0x2bb3ce,_0x39860e=_0x4e7a3a[_0x56e5f4(0x3c7)];_0x39860e!=null&&this[_0x56e5f4(0x488)]&&_0x4e7a3a['id']===_0x3476b3['id']&&_0x39860e[_0x56e5f4(0x458)]===this['unitID']&&_0x39860e[_0x56e5f4(0x2da)]===!0x1&&this[_0x56e5f4(0x351)](_0x39860e[_0x56e5f4(0x278)]);})),this[_0x2bb3ce(0x421)][_0x2bb3ce(0x344)]['pipe'](_0x26437e(this[_0x2bb3ce(0x33a)]))[_0x2bb3ce(0x460)](_0x271cca=>{const _0x1d7634=_0x2bb3ce;if((_0x271cca==null?void 0x0:_0x271cca['unitID'])!==this[_0x1d7634(0x1ca)])return;const _0x2c4f51={'eventID':_0x5911b8[_0x1d7634(0x2aa)],'data':_0x271cca};this['_onCursorUpdate'](_0x2c4f51);}),this[_0x2bb3ce(0x1fb)](this[_0x2bb3ce(0x3d7)][_0x2bb3ce(0x41d)](_0x9f3492=>{const _0x6c4881=_0x2bb3ce;if(_0x9f3492[_0x6c4881(0x3c7)]==null)return;const _0x558bd3=_0x9f3492[_0x6c4881(0x3c7)];if(_0x9f3492['id']!==_0x4f4c8f['id']||_0x558bd3[_0x6c4881(0x458)]!==this[_0x6c4881(0x1ca)])return;const _0x2ce950={'id':'doc.mutation.rich-text-editing','params':_0x558bd3},_0x3b785d=this[_0x6c4881(0x235)];for(const [_0x459093,_0x46df9f]of _0x3b785d){const _0x431bcc={'id':_0x6c4881(0x464),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x46df9f[_0x6c4881(0x278)]}},_0x27456d=this[_0x6c4881(0x367)][_0x6c4881(0x40f)](_0x2ce950,_0x431bcc,!0x1);if(_0x42961a(_0x27456d))throw _0x27456d['error'];_0x3b785d[_0x6c4881(0x320)](_0x459093,{..._0x46df9f,'ranges':_0x27456d['m2Prime'][_0x6c4881(0x3c7)][_0x6c4881(0x224)]});}queueMicrotask(()=>{const _0x471f30=_0x6c4881;this[_0x471f30(0x2d9)][_0x471f30(0x3af)](_0x3b785d);});})));}[_0x29c6a6(0x33f)](_0x3925b7){const _0x5ab002=_0x29c6a6;var _0xab636e,_0x1e5eca;const {memberID:_0x39fab5,selection:_0x1cbd3b}=_0x3925b7[_0x5ab002(0x3f0)],_0x2e79d3=yn(_0x1cbd3b),_0xe430c=(_0x1e5eca=(_0xab636e=this[_0x5ab002(0x23c)][_0x5ab002(0x249)](this[_0x5ab002(0x1ca)],_0x39fab5))==null?void 0x0:_0xab636e[_0x5ab002(0x47b)])!=null?_0x1e5eca:_0x5ab002(0x33d),_0x3f7f9f={'color':this['_colorAssignService'][_0x5ab002(0x361)](_0x39fab5),'name':_0xe430c,'ranges':_0x2e79d3},_0xfcc77d=this[_0x5ab002(0x235)];_0xfcc77d[_0x5ab002(0x320)](_0x39fab5,_0x3f7f9f),this[_0x5ab002(0x2d9)]['next'](_0xfcc77d);}[_0x29c6a6(0x4b6)](_0x3f43c4){const _0x546373=_0x29c6a6,{memberID:_0x5bc3be}=_0x3f43c4[_0x546373(0x3f0)],_0x43b9ca=this['cursorInfo'];_0x43b9ca['delete'](_0x5bc3be),this[_0x546373(0x2d9)][_0x546373(0x3af)](_0x43b9ca);}['_toggleOnline'](){const _0xa4d0e4=_0x29c6a6;var _0x8ed251;if(this[_0xa4d0e4(0x488)]=!0x0,((_0x8ed251=this['_univerInstanceService'][_0xa4d0e4(0x2e1)]())==null?void 0x0:_0x8ed251[_0xa4d0e4(0x38d)]())!==this['unitID'])return;const _0x3bc7d0=this[_0xa4d0e4(0x31f)][_0xa4d0e4(0x362)](_0x4c35a6)[_0xa4d0e4(0x305)](),_0x28f1b0=_0x3bc7d0==null?void 0x0:_0x3bc7d0['map'](_0x547357);Array['isArray'](_0x28f1b0)&&_0x28f1b0[_0xa4d0e4(0x431)]>0x0&&this[_0xa4d0e4(0x351)](_0x28f1b0);}[_0x29c6a6(0x1f4)](){this['_online']=!0x1;}};mt=qn([q(0x2,_0x558bc4(_0x4ead3f)),q(0x3,_0x558bc4(At)),q(0x4,_0x558bc4(ee)),q(0x5,_0x558bc4(Mt)),q(0x6,_0xd13d4c),q(0x7,_0x33e391),q(0x8,_0x594d06)],mt);var tr=Object[_0x29c6a6(0x3f3)],sr=Object['getOwnPropertyDescriptor'],ir=(_0x5ad03d,_0x217e25,_0x360d38,_0x930ed5)=>{const _0x7dae8a=_0x29c6a6;for(var _0x1af1ae=_0x930ed5>0x1?void 0x0:_0x930ed5?sr(_0x217e25,_0x360d38):_0x217e25,_0x3f36ba=_0x5ad03d[_0x7dae8a(0x431)]-0x1,_0x20c442;_0x3f36ba>=0x0;_0x3f36ba--)(_0x20c442=_0x5ad03d[_0x3f36ba])&&(_0x1af1ae=(_0x930ed5?_0x20c442(_0x217e25,_0x360d38,_0x1af1ae):_0x20c442(_0x1af1ae))||_0x1af1ae);return _0x930ed5&&_0x1af1ae&&tr(_0x217e25,_0x360d38,_0x1af1ae),_0x1af1ae;},st=(_0x300cd5,_0x296cf7)=>(_0x1e011a,_0x2d501d)=>_0x296cf7(_0x1e011a,_0x2d501d,_0x300cd5);let ue=class extends _0x39fd47{constructor(_0x1c34f0,_0x578a1c,_0x18251c){const _0x21bd3b=_0x29c6a6;super(),l(this,'_entities',new Map()),l(this,_0x21bd3b(0x270),new _0x2ef673()),(this[_0x21bd3b(0x49b)]=_0x1c34f0,this['_injector']=_0x578a1c,this[_0x21bd3b(0x266)]=_0x18251c,this['_init']());}['dispose'](){const _0x4f0982=_0x29c6a6;super['dispose'](),this[_0x4f0982(0x270)]['complete'](),this[_0x4f0982(0x4d9)][_0x4f0982(0x31b)](_0xba75d8=>_0xba75d8[_0x4f0982(0x378)]());}[_0x29c6a6(0x1ed)](_0x17464d){const _0x1a00e5=_0x29c6a6;return this[_0x1a00e5(0x4d9)][_0x1a00e5(0x46f)](_0x17464d)?this[_0x1a00e5(0x4d9)][_0x1a00e5(0x362)](_0x17464d)[_0x1a00e5(0x4ed)]:this[_0x1a00e5(0x270)][_0x1a00e5(0x4dc)](_0x4b51e3(_0x556464=>_0x556464[_0x1a00e5(0x1ca)]===_0x17464d),_0x3931dc(_0x484a01=>_0x484a01[_0x1a00e5(0x4ed)]));}[_0x29c6a6(0x26f)](){const _0x236b32=_0x29c6a6;this[_0x236b32(0x49b)][_0x236b32(0x1f7)](_0x17600d['UNIVER_SHEET'])[_0x236b32(0x4dc)](_0x26437e(this[_0x236b32(0x33a)]))['subscribe'](async _0x31d238=>{const _0x479c27=_0x236b32,_0x305c29=_0x31d238[_0x479c27(0x38d)](),_0x33e06d=await this[_0x479c27(0x274)](_0x305c29);this[_0x479c27(0x270)][_0x479c27(0x3af)](_0x33e06d),this[_0x479c27(0x4d9)][_0x479c27(0x320)](_0x305c29,_0x33e06d);}),this[_0x236b32(0x49b)][_0x236b32(0x1f7)](_0x17600d['UNIVER_DOC'])['pipe'](_0x26437e(this[_0x236b32(0x33a)]))[_0x236b32(0x4dc)](_0x4b51e3(_0x1293f1=>!_0x1293f1[_0x236b32(0x38d)]()['startsWith']('__')))[_0x236b32(0x460)](async _0x5e6b61=>{const _0x565a0f=_0x236b32,_0x389274=_0x5e6b61[_0x565a0f(0x38d)](),_0x32aafa=await this[_0x565a0f(0x35d)](_0x389274);this[_0x565a0f(0x270)][_0x565a0f(0x3af)](_0x32aafa),this[_0x565a0f(0x4d9)][_0x565a0f(0x320)](_0x389274,_0x32aafa);}),_0x2e2fc7(this[_0x236b32(0x49b)][_0x236b32(0x4d1)](_0x17600d[_0x236b32(0x3f2)]),this[_0x236b32(0x49b)][_0x236b32(0x4d1)](_0x17600d[_0x236b32(0x3b4)]))[_0x236b32(0x4dc)](_0x26437e(this['dispose$']))[_0x236b32(0x460)](_0x445b45=>{const _0x8393a=_0x236b32,_0x5d1130=_0x445b45[_0x8393a(0x38d)](),_0x27f69c=this[_0x8393a(0x4d9)]['get'](_0x5d1130);_0x27f69c&&(_0x27f69c[_0x8393a(0x378)](),this['_entities'][_0x8393a(0x457)](_0x5d1130));});}async[_0x29c6a6(0x274)](_0x48174b){const _0x191d1d=_0x29c6a6,_0x5613b5=await this[_0x191d1d(0x266)][_0x191d1d(0x4e6)](_0x48174b),_0x25239a=this['_injector'][_0x191d1d(0x43a)](gt,_0x48174b,_0x5613b5);return _0x25239a[_0x191d1d(0x23e)](),_0x25239a;}async['_startDocCollabCursor'](_0x4e4695){const _0x47b652=_0x29c6a6,_0x173281=await this[_0x47b652(0x266)][_0x47b652(0x4e6)](_0x4e4695),_0x6980f3=this[_0x47b652(0x31f)][_0x47b652(0x43a)](mt,_0x4e4695,_0x173281);return _0x6980f3['init'](),_0x6980f3;}};ue=ir([_0x2d1123(_0xb39fe5[_0x29c6a6(0x4bc)],ue),st(0x0,_0x33e391),st(0x1,_0x558bc4(_0x4ead3f)),st(0x2,_0x558bc4(Re))],ue);const Oe=0x14,qt=0xc8,it=0x4,nr=0x5;function rr(_0x2be93e,_0x419412){const _0x1c69e7=_0x29c6a6;let {radius:_0x1e587a,width:_0xbaa34e,height:_0xe48f09}=_0x419412;_0x1e587a=_0x1e587a!=null?_0x1e587a:0x0,_0xbaa34e=_0xbaa34e!=null?_0xbaa34e:0x1e,_0xe48f09=_0xe48f09!=null?_0xe48f09:0x1e;let _0x194361=0x0,_0x583221=0x0,_0xb38475=0x0;_0x194361=_0x583221=_0xb38475=Math[_0x1c69e7(0x2b8)](_0x1e587a,_0xbaa34e/0x2,_0xe48f09/0x2),_0x2be93e[_0x1c69e7(0x49e)](),_0x2be93e[_0x1c69e7(0x29a)](_0x194361,0x0),_0x2be93e[_0x1c69e7(0x3e4)](_0xbaa34e-_0x583221,0x0),_0x2be93e[_0x1c69e7(0x42a)](_0xbaa34e-_0x583221,_0x583221,_0x583221,Math['PI']*0x3/0x2,0x0,!0x1),_0x2be93e['lineTo'](_0xbaa34e,_0xe48f09-_0xb38475),_0x2be93e['arc'](_0xbaa34e-_0xb38475,_0xe48f09-_0xb38475,_0xb38475,0x0,Math['PI']/0x2,!0x1),_0x2be93e[_0x1c69e7(0x3e4)](0x0,_0xe48f09),_0x2be93e[_0x1c69e7(0x3e4)](0x0,_0x194361),_0x2be93e[_0x1c69e7(0x42a)](_0x194361,_0x194361,_0x194361,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2be93e[_0x1c69e7(0x273)](),_0x419412[_0x1c69e7(0x2d5)]&&(_0x2be93e[_0x1c69e7(0x2a8)](),_0x2be93e[_0x1c69e7(0x2d7)]=_0x419412[_0x1c69e7(0x2d5)],_0x419412['fillRule']===_0x1c69e7(0x3dd)?_0x2be93e[_0x1c69e7(0x2d5)]('evenodd'):_0x2be93e[_0x1c69e7(0x2d5)](),_0x2be93e[_0x1c69e7(0x471)]());}class ze extends _0x169d33{constructor(_0x1cd545,_0x4d16a5){const _0x2dbf3a=_0x29c6a6;super(_0x1cd545,_0x4d16a5),l(this,_0x2dbf3a(0x241)),l(this,_0x2dbf3a(0x21f)),(this['color']=_0x4d16a5==null?void 0x0:_0x4d16a5[_0x2dbf3a(0x241)],this[_0x2dbf3a(0x21f)]=_0x4d16a5==null?void 0x0:_0x4d16a5[_0x2dbf3a(0x21f)]);}static[_0x29c6a6(0x1fc)](_0x126dfb,_0x19f015){const _0x18e827=_0x29c6a6,{text:_0xd1d6d,color:_0x1cb3a5}=_0x19f015;_0x126dfb[_0x18e827(0x2a8)](),_0x126dfb[_0x18e827(0x26a)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x42b74d=_0x126dfb[_0x18e827(0x3ae)](_0xd1d6d)[_0x18e827(0x30f)],_0x151e99=Math[_0x18e827(0x2b8)](_0x42b74d+0x2*it,qt);rr(_0x126dfb,{'height':Oe,'radius':0x4,'width':_0x151e99,'fill':_0x1cb3a5,'evented':!0x1}),_0x126dfb[_0x18e827(0x2d7)]='#FFF';const _0x39b962=it,_0x3cef3a=Oe-nr,_0x2c0388=qt-0x2*it;if(_0x42b74d>_0x2c0388){let _0x1f44f8='',_0x57c41d=0x0;for(const _0x5e031a of _0xd1d6d){const _0x271a82=_0x126dfb['measureText'](_0x5e031a)['width'];if(_0x57c41d+_0x271a82<=_0x2c0388-_0x126dfb[_0x18e827(0x3ae)](_0x18e827(0x413))[_0x18e827(0x30f)])_0x1f44f8+=_0x5e031a,_0x57c41d+=_0x271a82;else{_0x1f44f8+='...';break;}}_0x126dfb[_0x18e827(0x21e)](_0x1f44f8,_0x39b962,_0x3cef3a);}else _0x126dfb[_0x18e827(0x21e)](_0xd1d6d,_0x39b962,_0x3cef3a);_0x126dfb[_0x18e827(0x471)]();}[_0x29c6a6(0x234)](_0x2d5362){const _0x3ae764=_0x29c6a6;ze[_0x3ae764(0x1fc)](_0x2d5362,this);}}const or=0x1,ar=1.5;class cr extends _0x169d33{constructor(_0xac895e,_0x52608a){const _0x46ae3a=_0x29c6a6;super(_0xac895e,_0x52608a),l(this,_0x46ae3a(0x412)),l(this,_0x46ae3a(0x289),!0x1),l(this,_0x46ae3a(0x212)),l(this,'_name',''),l(this,'_labelPosition','top'),(_0x52608a&&this[_0x46ae3a(0x347)](_0x52608a),this[_0x46ae3a(0x2ad)][_0x46ae3a(0x4af)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x46ae3a(0x331)][_0x46ae3a(0x4af)](()=>this[_0x46ae3a(0x347)]({'hovered':!0x1})));}[_0x29c6a6(0x347)](_0x491898){const _0x17b9e4=_0x29c6a6;var _0x17b619,_0x50be45,_0x3b6154,_0x254d44,_0x5796db;this[_0x17b9e4(0x412)]=(_0x17b619=_0x491898[_0x17b9e4(0x241)])!=null?_0x17b619:this['_color'],this['_hovered']=(_0x50be45=_0x491898[_0x17b9e4(0x372)])!=null?_0x50be45:this['_hovered'],this[_0x17b9e4(0x212)]=(_0x3b6154=_0x491898[_0x17b9e4(0x307)])!=null?_0x3b6154:this[_0x17b9e4(0x212)],this['_name']=(_0x254d44=_0x491898[_0x17b9e4(0x47b)])!=null?_0x254d44:this[_0x17b9e4(0x26e)],this[_0x17b9e4(0x1f8)]=(_0x5796db=_0x491898[_0x17b9e4(0x41f)])!=null?_0x5796db:this['_labelPosition'],this[_0x17b9e4(0x354)]({'width':_0x491898['width'],'height':_0x491898[_0x17b9e4(0x2b5)]});}[_0x29c6a6(0x3a2)](_0x38aa6c){const _0x27ad6d=_0x29c6a6,{row:_0x5a9e8d,column:_0x2b3f42}=_0x38aa6c;if(_0x5a9e8d>=this[_0x27ad6d(0x212)]['startRow']&&_0x5a9e8d<=this[_0x27ad6d(0x212)]['endRow']&&_0x2b3f42>=this[_0x27ad6d(0x212)][_0x27ad6d(0x3e9)]&&_0x2b3f42<=this[_0x27ad6d(0x212)][_0x27ad6d(0x46c)]){this[_0x27ad6d(0x347)]({'hovered':!0x0});return;}this[_0x27ad6d(0x347)]({'hovered':!0x1});}[_0x29c6a6(0x338)](_0x33c463){return!0x1;}[_0x29c6a6(0x234)](_0xcbe54b){const _0x4e74b6=_0x29c6a6;_0x274a4d[_0x4e74b6(0x1fc)](_0xcbe54b,{'width':this[_0x4e74b6(0x30f)],'height':this[_0x4e74b6(0x2b5)],'strokeWidth':ar,'stroke':this[_0x4e74b6(0x412)],'evented':!0x1}),this[_0x4e74b6(0x289)]&&(_0xcbe54b['save'](),_0xcbe54b[_0x4e74b6(0x352)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x4e74b6(0x4a0)?0x0:-Oe),ze[_0x4e74b6(0x1fc)](_0xcbe54b,{'text':this[_0x4e74b6(0x26e)],'color':this['_color']}),_0xcbe54b[_0x4e74b6(0x471)]());}}var hr=Object[_0x29c6a6(0x3f3)],lr=Object[_0x29c6a6(0x48e)],_r=(_0x4bd48c,_0x3b12d0,_0x2b593c,_0x3b1b17)=>{const _0x46f79a=_0x29c6a6;for(var _0x312c0a=_0x3b1b17>0x1?void 0x0:_0x3b1b17?lr(_0x3b12d0,_0x2b593c):_0x3b12d0,_0x4511fc=_0x4bd48c[_0x46f79a(0x431)]-0x1,_0x3acda1;_0x4511fc>=0x0;_0x4511fc--)(_0x3acda1=_0x4bd48c[_0x4511fc])&&(_0x312c0a=(_0x3b1b17?_0x3acda1(_0x3b12d0,_0x2b593c,_0x312c0a):_0x3acda1(_0x312c0a))||_0x312c0a);return _0x3b1b17&&_0x312c0a&&hr(_0x3b12d0,_0x2b593c,_0x312c0a),_0x312c0a;},Me=(_0x228eaa,_0x51ee05)=>(_0x197b74,_0x472c02)=>_0x51ee05(_0x197b74,_0x472c02,_0x228eaa);const ur=0x1389;let $e=class extends _0x39fd47{constructor(_0x434a52,_0x15b3f3,_0x26eb4d,_0xf7f709){const _0x10113b=_0x29c6a6;super(),l(this,'_cursors',new Set()),l(this,_0x10113b(0x2df),null),(this[_0x10113b(0x2bf)]=_0x434a52,this[_0x10113b(0x49b)]=_0x15b3f3,this[_0x10113b(0x3d3)]=_0x26eb4d,this[_0x10113b(0x44e)]=_0xf7f709,this[_0x10113b(0x26f)]());}get['_sheetSkeletonManagerService'](){const _0xc6660f=_0x29c6a6;return this['_renderManagerService']['getRenderById'](this[_0xc6660f(0x49b)]['getCurrentUnitForType'](_0x17600d[_0xc6660f(0x3b4)])[_0xc6660f(0x38d)]())[_0xc6660f(0x294)](_0x53c5c9);}get['_unitId'](){const _0x41c87f=_0x29c6a6;return this[_0x41c87f(0x49b)][_0x41c87f(0x4ec)](_0x17600d[_0x41c87f(0x3b4)])[_0x41c87f(0x38d)]();}[_0x29c6a6(0x26f)](){const _0xa844be=_0x29c6a6;this[_0xa844be(0x283)][_0xa844be(0x3d0)][_0xa844be(0x4dc)](_0x380119(this[_0xa844be(0x33a)]),_0x5e300c(_0x5115a1=>{const _0x2fff45=_0xa844be;if(_0x5115a1){const _0x3aa3f3=_0x5115a1[_0x2fff45(0x389)];return _0x45bbb6(this[_0x2fff45(0x2bf)][_0x2fff45(0x1ed)](this[_0x2fff45(0x325)]),this[_0x2fff45(0x44e)]['currentTheme$'])['pipe'](_0x6aec6c(([_0x75a2fb,_0x31a921])=>{const _0x547905=_0x2fff45,_0x5797eb=new Map();return _0x75a2fb[_0x547905(0x31b)]((_0x48e840,_0x5a1d0a)=>{const _0x5b92c5=_0x547905;if(_0x48e840[_0x5b92c5(0x44a)]===_0x3aa3f3){const _0x47f0ab={..._0x48e840};_0x47f0ab[_0x5b92c5(0x241)]=_0x31a921[_0x48e840['color']],_0x5797eb[_0x5b92c5(0x320)](_0x5a1d0a,_0x47f0ab);}}),{'skeleton':_0x5115a1,'cursors':_0x5797eb};}));}return _0x41c67f({'skeleton':null,'cursors':new Map()});}))[_0xa844be(0x460)](({skeleton:_0x53bc63,cursors:_0x2369b0})=>{const _0x131f40=_0xa844be;this[_0x131f40(0x377)](),_0x53bc63&&this[_0x131f40(0x45c)](_0x53bc63,_0x2369b0);}),this['_sheetSkeletonManagerService'][_0xa844be(0x3d0)]['subscribe'](_0x493514=>{const _0x5d25a0=_0xa844be;if(_0x493514==null)return;const {skeleton:_0x2db08a}=_0x493514,_0x21c62f=this['_renderManagerService'][_0x5d25a0(0x481)](this[_0x5d25a0(0x325)]),{scene:_0x3aead6}=_0x21c62f;_0x3aead6['onPointerMove$']['subscribeEvent'](_0x284565(_0x1bfa9a=>{const _0x1ec8db=_0x5d25a0;var _0x2fa049,_0x490dcd;const {offsetX:_0x595735,offsetY:_0x4769dc}=_0x1bfa9a,{x:_0x28aa71,y:_0x528616}=_0x3aead6[_0x1ec8db(0x3b6)](_0x27c809['FromArray']([_0x595735,_0x4769dc])),{scaleX:_0x5aea51,scaleY:_0x15df8a}=_0x3aead6[_0x1ec8db(0x244)](),_0x165360=_0x3aead6[_0x1ec8db(0x37e)](_0x594710[_0x1ec8db(0x213)]),_0xc6b0b1=_0x3aead6[_0x1ec8db(0x470)](_0x27c809[_0x1ec8db(0x2ca)]([_0x28aa71,_0x528616]),_0x165360),_0x1f708f=_0x2db08a[_0x1ec8db(0x353)](_0x595735,_0x4769dc,_0x5aea51,_0x15df8a,_0xc6b0b1);((_0x2fa049=this[_0x1ec8db(0x2df)])==null?void 0x0:_0x2fa049[_0x1ec8db(0x494)])===_0x1f708f[_0x1ec8db(0x494)]&&((_0x490dcd=this[_0x1ec8db(0x2df)])==null?void 0x0:_0x490dcd['row'])===_0x1f708f[_0x1ec8db(0x41c)]||this[_0x1ec8db(0x466)][_0x1ec8db(0x31b)](_0x49b3f8=>{const _0xe1d02c=_0x1ec8db;_0x49b3f8[_0xe1d02c(0x3a2)](_0x1f708f);});},0x64));});}[_0x29c6a6(0x45c)](_0x1a4661,_0x4b4ce5){const _0x17a1df=_0x29c6a6;var _0x4005c9;const _0x15425f=(_0x4005c9=this[_0x17a1df(0x283)][_0x17a1df(0x463)]())==null?void 0x0:_0x4005c9[_0x17a1df(0x1e8)];if(!_0x15425f)return;const _0x143dec=this['_getSheetObject']();if(!_0x143dec)return;this[_0x17a1df(0x466)]['forEach'](_0x29bc3b=>{_0x29bc3b['makeDirty']();});const {scene:_0x9961b8}=_0x143dec,_0x193b4d=dr(Array[_0x17a1df(0x4a3)](_0x4b4ce5[_0x17a1df(0x250)]()))[_0x17a1df(0x1f9)](_0x536193=>{const _0x38e614=_0x17a1df,{color:_0x44e990,range:_0x41b996,name:_0x446c76,selection:_0x2b2f12,sheetID:_0x409efb}=_0x536193,{startColumn:_0x1a5531,startRow:_0x1151c0,endColumn:_0x123394,endRow:_0x52da71}=_0x41b996,_0x306542=_0x53d697(_0x1151c0,_0x1a5531,_0x9961b8,_0x15425f),_0x292a47=_0x53d697(_0x52da71,_0x123394,_0x9961b8,_0x15425f),{columnHeaderHeightAndMarginTop:_0x56ae51}=_0x15425f,{startX:_0x12a882,startY:_0x5c1d13}=_0x306542,{endX:_0x1bb256,endY:_0x34773c}=_0x292a47,_0x18f512=_0x1bb256-_0x12a882,_0x2e038d=_0x34773c-_0x5c1d13,_0x1efb1a={'labelPosition':_0x5c1d13-_0x56ae51>=Oe?_0x38e614(0x405):_0x38e614(0x4a0),'sheetID':_0x409efb,'range':_0x41b996,'color':_0x44e990,'name':_0x446c76,'selection':_0x2b2f12,'left':_0x12a882,'top':_0x5c1d13,'width':_0x18f512,'height':_0x2e038d,'evented':!0x1,'zIndex':ur};return new cr(_0x446c76,_0x1efb1a);});_0x9961b8[_0x17a1df(0x288)](_0x193b4d,or),this[_0x17a1df(0x466)]=new Set(_0x193b4d);}[_0x29c6a6(0x377)](){const _0x4bb006=_0x29c6a6;var _0x39742e;(_0x39742e=this[_0x4bb006(0x466)])==null||_0x39742e[_0x4bb006(0x31b)](_0x559f76=>_0x559f76[_0x4bb006(0x378)]());}[_0x29c6a6(0x277)](){const _0x3a0d26=_0x29c6a6;return _0x2b1a41(this[_0x3a0d26(0x49b)],this[_0x3a0d26(0x3d3)]);}};$e=_r([_0x2d1123(_0xb39fe5[_0x29c6a6(0x222)],$e),Me(0x0,_0x558bc4(ue)),Me(0x1,_0x33e391),Me(0x2,_0x3bdd8b),Me(0x3,_0x558bc4(_0x474371))],$e);function dr(_0x128cf5){const _0x31be6e=_0x29c6a6,_0x588fb0=new Map();return _0x128cf5[_0x31be6e(0x31b)](_0x197a4a=>{const _0x2fecff=_0x31be6e;if(_0x588fb0['has'](_0x197a4a[_0x2fecff(0x2d2)])){const _0x3fd533=_0x588fb0['get'](_0x197a4a['selection']);_0x3fd533[_0x2fecff(0x47b)]+=',\x20'+_0x197a4a[_0x2fecff(0x47b)];}else _0x588fb0[_0x2fecff(0x320)](_0x197a4a[_0x2fecff(0x2d2)],_0x197a4a);}),Array[_0x31be6e(0x4a3)](_0x588fb0[_0x31be6e(0x250)]());}var A=function(){const _0x419404=_0x29c6a6;return A=Object[_0x419404(0x201)]||function(_0x564f6f){const _0x50e144=_0x419404;for(var _0x141e4d,_0x273355=0x1,_0x194902=arguments[_0x50e144(0x431)];_0x273355<_0x194902;_0x273355++){_0x141e4d=arguments[_0x273355];for(var _0x1562b0 in _0x141e4d)Object['prototype'][_0x50e144(0x3a9)][_0x50e144(0x4ef)](_0x141e4d,_0x1562b0)&&(_0x564f6f[_0x1562b0]=_0x141e4d[_0x1562b0]);}return _0x564f6f;},A['apply'](this,arguments);},fr=function(_0x33d4b6,_0x3efc38){const _0x7ef59d=_0x29c6a6;var _0x3d05ee={};for(var _0xb8ca15 in _0x33d4b6)Object[_0x7ef59d(0x2ab)][_0x7ef59d(0x3a9)]['call'](_0x33d4b6,_0xb8ca15)&&_0x3efc38[_0x7ef59d(0x251)](_0xb8ca15)<0x0&&(_0x3d05ee[_0xb8ca15]=_0x33d4b6[_0xb8ca15]);if(_0x33d4b6!=null&&typeof Object[_0x7ef59d(0x2f1)]==_0x7ef59d(0x46d)){for(var _0x4c041b=0x0,_0xb8ca15=Object[_0x7ef59d(0x2f1)](_0x33d4b6);_0x4c041b<_0xb8ca15[_0x7ef59d(0x431)];_0x4c041b++)_0x3efc38['indexOf'](_0xb8ca15[_0x4c041b])<0x0&&Object[_0x7ef59d(0x2ab)][_0x7ef59d(0x39c)][_0x7ef59d(0x4ef)](_0x33d4b6,_0xb8ca15[_0x4c041b])&&(_0x3d05ee[_0xb8ca15[_0x4c041b]]=_0x33d4b6[_0xb8ca15[_0x4c041b]]);}return _0x3d05ee;},yt=_0x45e47d(function(_0xd3a7f,_0xb0d6d6){const _0x33c3cc=_0x29c6a6;var _0x2e44c3=_0xd3a7f[_0x33c3cc(0x2a1)],_0x2a6eea=_0xd3a7f['id'],_0x592df7=_0xd3a7f[_0x33c3cc(0x3f4)],_0x275124=_0xd3a7f[_0x33c3cc(0x2b2)],_0x120f6c=fr(_0xd3a7f,[_0x33c3cc(0x2a1),'id',_0x33c3cc(0x3f4),_0x33c3cc(0x2b2)]),_0x4124e4=_0x33c3cc(0x4cb)['concat'](_0x2a6eea,'\x20')['concat'](_0x592df7||'')['trim'](),_0x289f24=_0x49f40c('_'[_0x33c3cc(0x1f6)](Sr()));return Ps(_0x2e44c3,''[_0x33c3cc(0x1f6)](_0x2a6eea),{'defIds':_0x2e44c3[_0x33c3cc(0x31a)],'idSuffix':_0x289f24[_0x33c3cc(0x315)]},A({'ref':_0xb0d6d6,'className':_0x4124e4},_0x120f6c),_0x275124);});function Ps(_0x395267,_0x2cd9c6,_0x2536a6,_0x34990d,_0x2e4a30){const _0x7cc00f=_0x29c6a6;return _0x1b0b54(_0x395267[_0x7cc00f(0x35c)],A(A({'key':_0x2cd9c6},gr(_0x395267,_0x2536a6,_0x2e4a30)),_0x34990d),(mr(_0x395267,_0x2536a6)[_0x7cc00f(0x437)]||[])[_0x7cc00f(0x1f9)](function(_0x573d5f,_0x2d4ae5){const _0x75275f=_0x7cc00f;return Ps(_0x573d5f,''['concat'](_0x2cd9c6,'-')[_0x75275f(0x1f6)](_0x395267['tag'],'-')[_0x75275f(0x1f6)](_0x2d4ae5),_0x2536a6,void 0x0,_0x2e4a30);}));}function gr(_0x4c0ec0,_0x3f5e79,_0x372174){const _0x30d3e8=_0x29c6a6;var _0x573299=A({},_0x4c0ec0[_0x30d3e8(0x2cc)]);_0x372174!=null&&_0x372174[_0x30d3e8(0x253)]&&_0x573299['fill']===_0x30d3e8(0x253)&&(_0x573299[_0x30d3e8(0x2d5)]=_0x372174[_0x30d3e8(0x253)]);var _0x28862c=_0x3f5e79[_0x30d3e8(0x31a)];return!_0x28862c||_0x28862c[_0x30d3e8(0x431)]===0x0||(_0x4c0ec0[_0x30d3e8(0x35c)]==='use'&&_0x573299[_0x30d3e8(0x1fa)]&&(_0x573299[_0x30d3e8(0x1fa)]=_0x573299[_0x30d3e8(0x1fa)]+_0x3f5e79['idSuffix']),Object[_0x30d3e8(0x454)](_0x573299)['forEach'](function(_0x33136b){const _0x3e3a14=_0x30d3e8;var _0x5e128a=_0x33136b[0x0],_0x36ea0d=_0x33136b[0x1];typeof _0x36ea0d==_0x3e3a14(0x35a)&&(_0x573299[_0x5e128a]=_0x36ea0d[_0x3e3a14(0x32e)](/url\(#(.*)\)/,_0x3e3a14(0x4ab)[_0x3e3a14(0x1f6)](_0x3f5e79[_0x3e3a14(0x1db)],')')));})),_0x573299;}function mr(_0x317802,_0x554696){const _0x5a297b=_0x29c6a6;var _0x7e802f,_0x542a8c=_0x554696[_0x5a297b(0x31a)];return!_0x542a8c||_0x542a8c[_0x5a297b(0x431)]===0x0?_0x317802:_0x317802[_0x5a297b(0x35c)]===_0x5a297b(0x265)&&(!((_0x7e802f=_0x317802['children'])===null||_0x7e802f===void 0x0)&&_0x7e802f[_0x5a297b(0x431)])?A(A({},_0x317802),{'children':_0x317802[_0x5a297b(0x437)][_0x5a297b(0x1f9)](function(_0x5daa46){const _0x197909=_0x5a297b;return typeof _0x5daa46[_0x197909(0x2cc)]['id']==_0x197909(0x35a)&&_0x542a8c&&_0x542a8c[_0x197909(0x251)](_0x5daa46['attrs']['id'])>-0x1?A(A({},_0x5daa46),{'attrs':A(A({},_0x5daa46[_0x197909(0x2cc)]),{'id':_0x5daa46[_0x197909(0x2cc)]['id']+_0x554696[_0x197909(0x1db)]})}):_0x5daa46;})}):_0x317802;}function Sr(){const _0x128338=_0x29c6a6;return Math[_0x128338(0x3bc)]()['toString'](0x24)[_0x128338(0x1f0)](0x2,0x8);}yt[_0x29c6a6(0x4ae)]=_0x29c6a6(0x20d);var vr={'tag':'svg','attrs':{'fill':_0x29c6a6(0x385),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x29c6a6(0x319)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x29c6a6(0x4d5),'d':_0x29c6a6(0x374),'strokeLinecap':_0x29c6a6(0x2c8),'strokeLinejoin':_0x29c6a6(0x2c8),'strokeWidth':1.2}}]},{'tag':_0x29c6a6(0x265),'attrs':{},'children':[{'tag':_0x29c6a6(0x22e),'attrs':{'id':_0x29c6a6(0x415)},'children':[{'tag':_0x29c6a6(0x3a7),'attrs':{'fill':_0x29c6a6(0x4c4),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x29c6a6(0x415)]},Ns=_0x45e47d(function(_0x143453,_0x32df55){const _0x3d2399=_0x29c6a6;return _0x1b0b54(yt,Object['assign']({},_0x143453,{'id':_0x3d2399(0x2c3),'ref':_0x32df55,'icon':vr}));});Ns[_0x29c6a6(0x4ae)]=_0x29c6a6(0x4d6);var pr={'tag':_0x29c6a6(0x2c4),'attrs':{'fill':_0x29c6a6(0x385),'viewBox':_0x29c6a6(0x2e5),'width':_0x29c6a6(0x319),'height':_0x29c6a6(0x319)},'children':[{'tag':'g','attrs':{'clipPath':_0x29c6a6(0x287)},'children':[{'tag':_0x29c6a6(0x3a7),'attrs':{'stroke':_0x29c6a6(0x4d5),'d':_0x29c6a6(0x342),'strokeLinecap':_0x29c6a6(0x2c8),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x29c6a6(0x22e),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x29c6a6(0x3a7),'attrs':{'fill':_0x29c6a6(0x4c4),'d':_0x29c6a6(0x3b0),'transform':_0x29c6a6(0x4d2)}}]}]}],'defIds':[_0x29c6a6(0x1c8)]},Ms=_0x45e47d(function(_0x49b9f5,_0x429990){const _0x51b3a7=_0x29c6a6;return _0x1b0b54(yt,Object[_0x51b3a7(0x201)]({},_0x49b9f5,{'id':_0x51b3a7(0x1e9),'ref':_0x429990,'icon':pr}));});Ms[_0x29c6a6(0x4ae)]='OnLineSingle';const Ir=_0x29c6a6(0x280),Er=_0x29c6a6(0x1bd),Cr=_0x29c6a6(0x495),br=_0x29c6a6(0x436),Rr='univer-offline',ve={'onlineStatusIcon':Ir,'onlineStatusTitle':Er,'onlineStatus':Cr,'online':br,'offline':Rr};function Tr(_0x46d9ea){const _0x2163c3=_0x29c6a6;switch(_0x46d9ea){case P[_0x2163c3(0x4b5)]:return _0x2163c3(0x25d);case P[_0x2163c3(0x428)]:return _0x2163c3(0x304);case P['FETCH_MISS']:return'collabStatus.fetchMiss';case P[_0x2163c3(0x483)]:return _0x2163c3(0x276);case P[_0x2163c3(0x1f3)]:case P[_0x2163c3(0x4c6)]:case P['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case P['SYNCED']:return _0x2163c3(0x1e5);}}function Or(_0x2de2e6){const _0x1c78ff=_0x29c6a6,{status$:_0xe3eba6}=_0x2de2e6,_0x7dec32=_0x2b20e3(_0xe3eba6,P[_0x1c78ff(0x483)]),_0x534237=_0x4e0bd3(_0x2f64f),_0x56af53=_0x7dec32!==P[_0x1c78ff(0x4b5)],_0x31acbf=_0x534237['t'](Tr(_0x7dec32)),_0x4e9e70=_0x3c1621(ve[_0x1c78ff(0x1cc)],{[ve[_0x1c78ff(0x233)]]:_0x56af53,[ve[_0x1c78ff(0x2de)]]:!_0x56af53}),_0x61fab9=_0x56af53?_0x103fdd[_0x1c78ff(0x2f8)](Ms,null):_0x103fdd[_0x1c78ff(0x2f8)](Ns,null);return _0x103fdd[_0x1c78ff(0x2f8)](_0x1c78ff(0x2dd),{'className':_0x4e9e70},_0x103fdd['createElement'](_0x1c78ff(0x2dd),{'className':ve['onlineStatusIcon']},_0x61fab9),_0x103fdd[_0x1c78ff(0x2f8)]('div',{'className':ve[_0x1c78ff(0x3fe)]},_0x31acbf));}var Dr=Object[_0x29c6a6(0x3f3)],wr=Object[_0x29c6a6(0x48e)],Pr=(_0x512e41,_0xa79ffe,_0x248665,_0x1055ff)=>{const _0x53a769=_0x29c6a6;for(var _0x16a34c=_0x1055ff>0x1?void 0x0:_0x1055ff?wr(_0xa79ffe,_0x248665):_0xa79ffe,_0x5576b4=_0x512e41[_0x53a769(0x431)]-0x1,_0x1f71bb;_0x5576b4>=0x0;_0x5576b4--)(_0x1f71bb=_0x512e41[_0x5576b4])&&(_0x16a34c=(_0x1055ff?_0x1f71bb(_0xa79ffe,_0x248665,_0x16a34c):_0x1f71bb(_0x16a34c))||_0x16a34c);return _0x1055ff&&_0x16a34c&&Dr(_0xa79ffe,_0x248665,_0x16a34c),_0x16a34c;},Ae=(_0x992632,_0x1a1e77)=>(_0x59bac5,_0x1d22bf)=>_0x1a1e77(_0x59bac5,_0x1d22bf,_0x992632);let je=class extends _0xc93720{constructor(_0x89217d,_0x2cc951,_0x19366a,_0x287c6a){const _0x18c892=_0x29c6a6;super(),l(this,_0x18c892(0x34e),new _0x2ae6a5(P[_0x18c892(0x483)])),(this[_0x18c892(0x49b)]=_0x89217d,this[_0x18c892(0x298)]=_0x2cc951,this['_injector']=_0x19366a,this[_0x18c892(0x409)]=_0x287c6a,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x29c6a6(0x34d)](){const _0x4408e0=_0x29c6a6;this['disposeWithMe'](this[_0x4408e0(0x298)][_0x4408e0(0x3de)](_0x1f5713[_0x4408e0(0x408)],()=>_0x5254e3(Nr({'status$':this[_0x4408e0(0x34e)][_0x4408e0(0x4db)]()}),this['_injector'])));}[_0x29c6a6(0x20b)](){const _0x3bb08d=_0x29c6a6;this[_0x3bb08d(0x1fb)](_0x359428(this[_0x3bb08d(0x49b)][_0x3bb08d(0x337)][_0x3bb08d(0x4dc)](_0x3931dc(()=>{const _0x1511b0=_0x3bb08d,_0xa28194=this[_0x1511b0(0x49b)][_0x1511b0(0x2e1)]();return _0xa28194?this[_0x1511b0(0x409)]['getCollabEntity$'](_0xa28194[_0x1511b0(0x38d)]()):_0x41c67f(null);}),_0x3931dc(_0x4feafc=>_0x4feafc?_0x4feafc[_0x3bb08d(0x4c8)]:_0x41c67f(P[_0x3bb08d(0x483)])))[_0x3bb08d(0x460)](_0x3aefd6=>{const _0x45b072=_0x3bb08d;this[_0x45b072(0x34e)][_0x45b072(0x3af)](_0x3aefd6);})));}};je=Pr([_0x2d1123(_0xb39fe5[_0x29c6a6(0x4bc)],je),Ae(0x0,_0x33e391),Ae(0x1,_0x38bd02),Ae(0x2,_0x558bc4(_0x4ead3f)),Ae(0x3,_0x558bc4(Ee))],je);function Nr(_0x411c9d){const {status$:_0x4aefcb}=_0x411c9d;return function(){const _0x5c1505=_0x34fd;return _0x103fdd[_0x5c1505(0x2f8)](Or,{'status$':_0x4aefcb});};}const As=_0x451f50(_0x29c6a6(0x486));var Mr=Object[_0x29c6a6(0x3f3)],Ar=Object[_0x29c6a6(0x48e)],yr=(_0x1d41eb,_0x35fc42,_0x1ff204,_0x203dbe)=>{const _0xa28a9d=_0x29c6a6;for(var _0x1068e9=_0x203dbe>0x1?void 0x0:_0x203dbe?Ar(_0x35fc42,_0x1ff204):_0x35fc42,_0x1fbb22=_0x1d41eb[_0xa28a9d(0x431)]-0x1,_0x501a81;_0x1fbb22>=0x0;_0x1fbb22--)(_0x501a81=_0x1d41eb[_0x1fbb22])&&(_0x1068e9=(_0x203dbe?_0x501a81(_0x35fc42,_0x1ff204,_0x1068e9):_0x501a81(_0x1068e9))||_0x1068e9);return _0x203dbe&&_0x1068e9&&Mr(_0x35fc42,_0x1ff204,_0x1068e9),_0x1068e9;},ce=(_0x1552d1,_0x4c5853)=>(_0x4ea0b7,_0x4b5d16)=>_0x4c5853(_0x4ea0b7,_0x4b5d16,_0x1552d1);let He=class extends _0x39fd47{constructor(_0x41ad84,_0x1caecb,_0x5d8b02,_0x37f278,_0xf5fa1f,_0xbe571d){const _0x5936c2=_0x29c6a6;super(),this['_urlService']=_0x41ad84,this['_logService']=_0x1caecb,this[_0x5936c2(0x3d7)]=_0x5d8b02,this[_0x5936c2(0x1ec)]=_0x37f278,this[_0x5936c2(0x1be)]=_0xf5fa1f,_0xbe571d?_0xbe571d==null||_0xbe571d[_0x5936c2(0x370)]()['then'](()=>this['_init']()):(this[_0x5936c2(0x214)][_0x5936c2(0x363)](_0x5936c2(0x40b),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x5936c2(0x26f)]());}async[_0x29c6a6(0x26f)](){const _0x5d390d=_0x29c6a6,_0x1a57c6=this[_0x5d390d(0x2e7)][_0x5d390d(0x2d4)](_0x5d390d(0x27d)),_0x2f8464=this[_0x5d390d(0x2e7)][_0x5d390d(0x2d4)](_0x5d390d(0x236));if(!_0x1a57c6||!_0x2f8464){this[_0x5d390d(0x214)]['debug'](_0x5d390d(0x40b),_0x5d390d(0x2a3));return;}switch(Number(_0x2f8464)){case H['UNIVER_SHEET']:{const _0x3c0ca=await this[_0x5d390d(0x440)](_0x1a57c6);this['_setupSubUnitSync'](_0x3c0ca);break;}case H['UNIVER_DOC']:{await this[_0x5d390d(0x248)](_0x1a57c6);break;}default:{this[_0x5d390d(0x214)][_0x5d390d(0x35b)]('[DataLoaderController]',_0x5d390d(0x4e3));break;}}}async[_0x29c6a6(0x285)](_0x5430ff){const _0x1ebbbb=_0x29c6a6;await this[_0x1ebbbb(0x1e4)](_0x5430ff),_0x5430ff[_0x1ebbbb(0x371)][_0x1ebbbb(0x4dc)](_0x26437e(this[_0x1ebbbb(0x33a)]))[_0x1ebbbb(0x460)](_0x558a71=>{const _0x30451f=_0x1ebbbb;_0x558a71&&this[_0x30451f(0x402)](_0x558a71);}),this[_0x1ebbbb(0x2e7)][_0x1ebbbb(0x1e2)][_0x1ebbbb(0x4dc)](_0x26437e(this[_0x1ebbbb(0x33a)]))['subscribe'](()=>this[_0x1ebbbb(0x1e4)](_0x5430ff));}[_0x29c6a6(0x402)](_0x87d9c4,_0xdfe868=!0x1){const _0x2f6d22=_0x29c6a6,_0x450e50=this[_0x2f6d22(0x2e7)]['getParam'](_0x2f6d22(0x417));_0x87d9c4[_0x2f6d22(0x2bb)]()!==_0x450e50&&this['_urlService'][_0x2f6d22(0x1e6)](_0x2f6d22(0x417),_0x87d9c4['getSheetId'](),_0xdfe868);}async[_0x29c6a6(0x1e4)](_0x4c2ead){const _0x1025da=_0x29c6a6;var _0xf17677;const _0x43c454=this[_0x1025da(0x2e7)]['getParam']('subunit');if(!_0x43c454||!_0x4c2ead[_0x1025da(0x42e)](_0x43c454)){const _0x70c3a1=_0x4c2ead['getUnhiddenWorksheets']()[0x0],_0x2805d9=_0x4c2ead[_0x1025da(0x42e)](_0x70c3a1);if(!_0x2805d9)return;this[_0x1025da(0x402)](_0x2805d9,!0x0),await this[_0x1025da(0x3d7)][_0x1025da(0x22a)](_0x3b91fc['id'],{'unitId':_0x4c2ead[_0x1025da(0x38d)](),'subUnitId':_0x70c3a1});return;}((_0xf17677=_0x4c2ead[_0x1025da(0x36e)]())==null?void 0x0:_0xf17677[_0x1025da(0x2bb)]())!==_0x43c454&&await this[_0x1025da(0x3d7)][_0x1025da(0x22a)](_0x3b91fc['id'],{'unitId':_0x4c2ead['getUnitId'](),'subUnitId':_0x43c454});}async[_0x29c6a6(0x440)](_0x30699c){const _0x14694f=_0x29c6a6;let _0x38ca93=0x0;const _0x5cd6a8=await this[_0x14694f(0x1ec)][_0x14694f(0x3bd)](_0x30699c);return _0x5cd6a8&&(_0x5cd6a8[_0x14694f(0x2e6)]||_0x5cd6a8[_0x14694f(0x365)][_0x14694f(0x431)]!==0x0)&&(_0x38ca93=_0x5cd6a8['rev']),_0x38ca93===0x0&&this[_0x14694f(0x214)][_0x14694f(0x363)](_0x14694f(0x40b),_0x14694f(0x3a0)),this[_0x14694f(0x1be)][_0x14694f(0x220)](_0x30699c,_0x38ca93);}async[_0x29c6a6(0x248)](_0x125e58){const _0x36812d=_0x29c6a6;let _0xcdbc7f=0x0;const _0x38db3f=await this[_0x36812d(0x1ec)]['loadOfflineData'](_0x125e58);return _0x38db3f&&(_0x38db3f[_0x36812d(0x2e6)]||_0x38db3f['mutations'][_0x36812d(0x431)]!==0x0)&&(_0xcdbc7f=_0x38db3f[_0x36812d(0x4e5)]),_0xcdbc7f===0x0&&this[_0x36812d(0x214)][_0x36812d(0x363)](_0x36812d(0x40b),_0x36812d(0x3a0)),this[_0x36812d(0x1be)]['loadDoc'](_0x125e58,_0xcdbc7f);}};He=yr([_0x2d1123(_0xb39fe5[_0x29c6a6(0x4bc)],He),ce(0x0,As),ce(0x1,_0x2125ae),ce(0x2,_0x594d06),ce(0x3,_0x558bc4(D)),ce(0x4,_0x558bc4(_0x17638f)),ce(0x5,_0x2cbf69(_0x4b3972))],He);var Ur=Object[_0x29c6a6(0x3f3)],Lr=Object[_0x29c6a6(0x48e)],$r=(_0x4c695f,_0x494e85,_0x30249a,_0x3e67b4)=>{for(var _0x395f44=_0x3e67b4>0x1?void 0x0:_0x3e67b4?Lr(_0x494e85,_0x30249a):_0x494e85,_0x29a838=_0x4c695f['length']-0x1,_0x4bb573;_0x29a838>=0x0;_0x29a838--)(_0x4bb573=_0x4c695f[_0x29a838])&&(_0x395f44=(_0x3e67b4?_0x4bb573(_0x494e85,_0x30249a,_0x395f44):_0x4bb573(_0x395f44))||_0x395f44);return _0x3e67b4&&_0x395f44&&Ur(_0x494e85,_0x30249a,_0x395f44),_0x395f44;},Qt=(_0x4cae49,_0x3c4d3a)=>(_0x5f4853,_0x4a807a)=>_0x3c4d3a(_0x5f4853,_0x4a807a,_0x4cae49);const jr=_0x29c6a6(0x1ea),Hr='Univer';let xe=class extends _0xc93720{constructor(_0x4735ba,_0xccdb3d){const _0xc6209f=_0x29c6a6;super(),this['_univerInstanceService']=_0x4735ba,this['_configService']=_0xccdb3d,this[_0xc6209f(0x26f)]();}['_init'](){const _0xb6974f=_0x29c6a6;this[_0xb6974f(0x1fb)](_0x359428(this['_univerInstanceService'][_0xb6974f(0x337)]['subscribe'](()=>{const _0x4a73e7=_0xb6974f;var _0x31960e;const _0x867d7a=this[_0x4a73e7(0x49b)][_0x4a73e7(0x2e1)]();let _0x2c889d=(_0x31960e=this['_configService']['getConfig'](jr))!=null?_0x31960e:Hr;_0x867d7a instanceof _0x9198e0&&(_0x2c889d=_0x867d7a[_0x4a73e7(0x47b)]),document['title']=_0x2c889d;})));}};xe=$r([_0x2d1123(_0xb39fe5[_0x29c6a6(0x1d0)],xe),Qt(0x0,_0x33e391),Qt(0x1,_0x575c32)],xe);var xr=Object['defineProperty'],Fr=Object[_0x29c6a6(0x48e)],Br=(_0x2a4680,_0x2b7b4c,_0x5753,_0x2dfb27)=>{for(var _0x3bc4e7=_0x2dfb27>0x1?void 0x0:_0x2dfb27?Fr(_0x2b7b4c,_0x5753):_0x2b7b4c,_0x20795e=_0x2a4680['length']-0x1,_0x5e1c62;_0x20795e>=0x0;_0x20795e--)(_0x5e1c62=_0x2a4680[_0x20795e])&&(_0x3bc4e7=(_0x2dfb27?_0x5e1c62(_0x2b7b4c,_0x5753,_0x3bc4e7):_0x5e1c62(_0x3bc4e7))||_0x3bc4e7);return _0x2dfb27&&_0x3bc4e7&&xr(_0x2b7b4c,_0x5753,_0x3bc4e7),_0x3bc4e7;},es=(_0x2c2bf2,_0xd50a0d)=>(_0x4d21a5,_0x3d62c1)=>_0xd50a0d(_0x4d21a5,_0x3d62c1,_0x2c2bf2);let St=class{constructor(_0x46dcea,_0x1da6f1){const _0x36b581=_0x29c6a6;this[_0x36b581(0x211)]=_0x46dcea,this[_0x36b581(0x208)]=_0x1da6f1;}async[_0x29c6a6(0x423)](_0x16edbf,_0x590875){const _0x2c6dd3=_0x29c6a6;var _0x378f72;const {unitID:_0x1343df,type:_0x44195c,revision:_0x159488=0x0}=_0x590875,_0x1bcbf3=this['_getSnapshotAPIPrefix']()+'/'+_0x44195c+_0x2c6dd3(0x4d7)+_0x1343df+_0x2c6dd3(0x432)+(_0x159488===0x1?0x0:_0x159488),_0x1f5fd5=(await this['_httpService'][_0x2c6dd3(0x362)](_0x1bcbf3))[_0x2c6dd3(0x4bf)],_0x448d2c=(_0x378f72=_0x1f5fd5['snapshot'])==null?void 0x0:_0x378f72[_0x2c6dd3(0x245)];if(_0x448d2c){const _0x5e1106=_0x448d2c==null?void 0x0:_0x448d2c[_0x2c6dd3(0x4d0)],_0x134cb8=_0x395f16[_0x2c6dd3(0x3f9)](_0x44581b(_0x5e1106));_0x448d2c['originalMeta']=_0x134cb8,Object[_0x2c6dd3(0x454)](_0x448d2c[_0x2c6dd3(0x47f)])[_0x2c6dd3(0x31b)](([,_0x5066e1])=>{const _0x14b79e=_0x2c6dd3,_0x49b61a=_0x5066e1[_0x14b79e(0x4d0)],_0x324e33=_0x395f16[_0x14b79e(0x3f9)](_0x44581b(_0x49b61a));_0x5066e1['originalMeta']=_0x324e33;});}return _0x1f5fd5;}async[_0x29c6a6(0x4ad)](_0x297966,_0x5a3f07){const _0x2951e4=_0x29c6a6,{unitID:_0x3db856,type:_0x397e6e,blockID:_0x591a3a}=_0x5a3f07,_0x1f6d3a=this[_0x2951e4(0x2a0)]()+'/'+_0x397e6e+_0x2951e4(0x4d7)+_0x3db856+'/block/'+_0x591a3a;return(await this[_0x2951e4(0x208)][_0x2951e4(0x362)](_0x1f6d3a))['body'];}async[_0x29c6a6(0x401)](_0x341673,_0x58312b){const _0x10c7ad=_0x29c6a6,{unitID:_0x4658af,type:_0x463238,from:_0x583a81,to:_0x5b4fc0}=_0x58312b,_0x193bf1=this[_0x10c7ad(0x2a0)]()+'/'+_0x463238+_0x10c7ad(0x4d7)+_0x4658af+_0x10c7ad(0x4b4)+_0x583a81+_0x10c7ad(0x1f2)+_0x5b4fc0;return(await this[_0x10c7ad(0x208)][_0x10c7ad(0x362)](_0x193bf1))[_0x10c7ad(0x4bf)];}[_0x29c6a6(0x217)](){const _0x57f42e=_0x29c6a6;var _0x3880a7;return(_0x3880a7=this[_0x57f42e(0x211)]['getConfig'](Ki))!=null?_0x3880a7:this[_0x57f42e(0x2a0)]();}[_0x29c6a6(0x2a0)](){const _0x215798=_0x29c6a6;var _0x2eabff;return(_0x2eabff=this[_0x215798(0x211)][_0x215798(0x29b)](Gi))!=null?_0x2eabff:Yi;}async[_0x29c6a6(0x24e)](_0x2faa07,_0x4a2129){const _0x1a5089=_0x29c6a6,_0x153430='/universer-api/snapshot/'+_0x4a2129[_0x1a5089(0x236)]+_0x1a5089(0x4d7)+_0x4a2129[_0x1a5089(0x1ca)]+'/resources';return(await this[_0x1a5089(0x208)]['get'](_0x153430,{'params':{'resourceId':JSON[_0x1a5089(0x376)](_0x4a2129['resourceIDs'])}}))['body'];}[_0x29c6a6(0x3e1)](){const _0xbc1d2c=_0x29c6a6;throw new Error(_0xbc1d2c(0x2e8));}['saveSheetBlock'](){const _0x94cd56=_0x29c6a6;throw new Error(_0x94cd56(0x2e8));}[_0x29c6a6(0x2e0)](){const _0x5d8928=_0x29c6a6;throw new Error(_0x5d8928(0x2e8));}};St=Br([es(0x0,_0x575c32),es(0x1,_0x558bc4(_0x180bd0))],St);var kr=Object['defineProperty'],Vr=Object['getOwnPropertyDescriptor'],Wr=(_0x4dada4,_0x22fc72,_0x334d24,_0x1df2cf)=>{const _0x4ce75a=_0x29c6a6;for(var _0x416d99=_0x1df2cf>0x1?void 0x0:_0x1df2cf?Vr(_0x22fc72,_0x334d24):_0x22fc72,_0x2a012d=_0x4dada4[_0x4ce75a(0x431)]-0x1,_0x6948df;_0x2a012d>=0x0;_0x2a012d--)(_0x6948df=_0x4dada4[_0x2a012d])&&(_0x416d99=(_0x1df2cf?_0x6948df(_0x22fc72,_0x334d24,_0x416d99):_0x6948df(_0x416d99))||_0x416d99);return _0x1df2cf&&_0x416d99&&kr(_0x22fc72,_0x334d24,_0x416d99),_0x416d99;},pe=(_0x583024,_0x3f8b0c)=>(_0x430057,_0x12ac22)=>_0x3f8b0c(_0x430057,_0x12ac22,_0x583024);let vt=class extends _0x59e73e{constructor(_0x445fad,_0x18df09,_0x2eb563,_0x106b10,_0x518b5c){const _0x44acdb=_0x29c6a6;super(_0x445fad,_0x18df09,_0x2eb563),this[_0x44acdb(0x367)]=_0x106b10,this['_logService']=_0x518b5c;}['transformUndoRedo'](_0x6c1671,_0xac36e5){const _0x14bb44=_0x29c6a6,_0x5a25f=this[_0x14bb44(0x358)](_0x6c1671);if(_0x5a25f)try{const _0x4bd8a8=this[_0x14bb44(0x323)](_0x5a25f,_0xac36e5);this[_0x14bb44(0x3dc)](_0x6c1671,_0x4bd8a8);}catch(_0x41b853){this[_0x14bb44(0x214)][_0x14bb44(0x35b)]('[CollaborationUndoRedoService]',_0x41b853),this[_0x14bb44(0x317)](_0x6c1671);}const _0x33e15b=this['_getRedoStack'](_0x6c1671);if(_0x33e15b)try{const _0x5470a2=this[_0x14bb44(0x323)](_0x33e15b,_0xac36e5);this[_0x14bb44(0x420)](_0x6c1671,_0x5470a2);}catch(_0xb5a3b5){this['_logService'][_0x14bb44(0x35b)](_0xb5a3b5),this['_clearRedo'](_0x6c1671);}}[_0x29c6a6(0x317)](_0x942e4f){const _0x578c39=_0x29c6a6,_0x161586=this[_0x578c39(0x358)](_0x942e4f);_0x161586&&(_0x161586[_0x578c39(0x431)]=0x0,this[_0x578c39(0x45a)]());}[_0x29c6a6(0x2fb)](_0x1887f7){const _0x38a0c4=_0x29c6a6,_0x465ee1=this[_0x38a0c4(0x38e)](_0x1887f7);_0x465ee1&&(_0x465ee1[_0x38a0c4(0x431)]=0x0,this[_0x38a0c4(0x45a)]());}[_0x29c6a6(0x3dc)](_0x2bb600,_0x390b73){const _0x7ece84=_0x29c6a6;this[_0x7ece84(0x2e2)][_0x7ece84(0x320)](_0x2bb600,_0x390b73),this['_updateStatus']();}['_substituteRedoStack'](_0x37f303,_0x4742f3){const _0x4cf935=_0x29c6a6;this[_0x4cf935(0x387)][_0x4cf935(0x320)](_0x37f303,_0x4742f3),this['_updateStatus']();}[_0x29c6a6(0x323)](_0x2c8636,_0x77128a){const _0x2e9be6=_0x29c6a6,_0xe370ea=[];let _0xb7c2ae=_0x77128a,_0x4edd56=_0x77128a;for(let _0x46496d=_0x2c8636['length']-0x1;_0x46496d>=0x0;_0x46496d--){const {unitID:_0x3f1566,undoMutations:_0x59aca3,redoMutations:_0x3ed1a5}=_0x2c8636[_0x46496d],_0x5a8fa3=this[_0x2e9be6(0x367)][_0x2e9be6(0x216)](_0xb7c2ae,_0x59aca3),_0x1361a2=this[_0x2e9be6(0x367)][_0x2e9be6(0x216)](_0x4edd56,_0x3ed1a5);if(_0x4703e4(_0x5a8fa3)||_0x4703e4(_0x1361a2)){this[_0x2e9be6(0x214)]['error'](_0x2e9be6(0x345),'transformStack\x20failed!',_0x5a8fa3,_0x1361a2);break;}_0xb7c2ae=_0x5a8fa3[_0x2e9be6(0x450)],_0x4edd56=_0x1361a2[_0x2e9be6(0x450)],_0xe370ea[_0x2e9be6(0x2f7)]({'unitID':_0x3f1566,'undoMutations':_0x5a8fa3[_0x2e9be6(0x297)],'redoMutations':_0x1361a2['m2Prime']});}return _0xe370ea['reverse']();}};vt=Wr([pe(0x0,_0x33e391),pe(0x1,_0x594d06),pe(0x2,_0x2d2798),pe(0x3,_0xd13d4c),pe(0x4,_0x2125ae)],vt);class Gr extends _0x39fd47{constructor(){const _0x4e0e1d=_0x29c6a6;super(),l(this,_0x4e0e1d(0x1e2)),this['urlChange$']=_0x68731a(window,_0x4e0e1d(0x2b6))['pipe'](_0x26437e(this[_0x4e0e1d(0x33a)]),_0x133b83(0x1),_0x4225bf(void 0x0));}['setParam'](_0x31d8f1,_0x1d69ec,_0x11e356=!0x1){const _0x3be5f8=_0x29c6a6,_0x2d862d=new URL(window[_0x3be5f8(0x333)][_0x3be5f8(0x1ee)]);_0x2d862d[_0x3be5f8(0x36c)][_0x3be5f8(0x320)](_0x31d8f1,_0x1d69ec),_0x11e356?window[_0x3be5f8(0x3e2)][_0x3be5f8(0x26d)]('','',_0x2d862d[_0x3be5f8(0x1d3)]()):window['history'][_0x3be5f8(0x35e)]('','',_0x2d862d[_0x3be5f8(0x1d3)]());}[_0x29c6a6(0x4b3)](_0x5a802e,_0x53034a=!0x1){const _0x1c64a3=_0x29c6a6,_0x16a5e3=new URL(window['location'][_0x1c64a3(0x1ee)]);_0x16a5e3[_0x1c64a3(0x36c)][_0x1c64a3(0x457)](_0x5a802e),_0x53034a?window[_0x1c64a3(0x3e2)][_0x1c64a3(0x26d)]('','',_0x16a5e3[_0x1c64a3(0x1d3)]()):window[_0x1c64a3(0x3e2)][_0x1c64a3(0x35e)]('','',_0x16a5e3['toString']());}[_0x29c6a6(0x2d4)](_0x1d8bef){const _0x22f00=_0x29c6a6;var _0x57af6d;return(_0x57af6d=new URL(window[_0x22f00(0x333)]['href'])[_0x22f00(0x36c)]['get'](_0x1d8bef))!=null?_0x57af6d:void 0x0;}}const nt=_0x29c6a6(0x473),Yr=_0x29c6a6(0x499),ye=0x6,Kr=1.5,rt=0x4,Xr=1.5,Jr='rgba(255,\x20255,\x20255,\x200.01)';class zr{constructor(_0x38b565,_0x486137,_0x1fd6aa,_0x208626){const _0x5995=_0x29c6a6;l(this,_0x5995(0x1cf),[]),l(this,_0x5995(0x45b),null),l(this,'_textBubble',null),l(this,'_anchorDot',null),l(this,_0x5995(0x225),null),l(this,_0x5995(0x259),null),(this[_0x5995(0x4a4)]=_0x38b565,this[_0x5995(0x4b2)]=_0x486137,this['_docSkeleton']=_0x1fd6aa,this[_0x5995(0x373)]=_0x208626,this[_0x5995(0x25b)]());}set['_hover'](_0x322ebf){const _0x5b6ae8=_0x29c6a6;_0x322ebf?(this[_0x5b6ae8(0x398)]&&this['_anchorDot'][_0x5b6ae8(0x2c0)](),this[_0x5b6ae8(0x4e4)]&&this[_0x5b6ae8(0x4e4)]['show']()):(this[_0x5b6ae8(0x398)]&&this[_0x5b6ae8(0x398)]['show'](),this['_textBubble']&&this[_0x5b6ae8(0x4e4)][_0x5b6ae8(0x2c0)]());}['dispose'](){const _0x112a01=_0x29c6a6;for(const _0x9a2fc1 of this['_shapes'])_0x9a2fc1[_0x112a01(0x378)]();this['_textBubble']&&this['_textBubble'][_0x112a01(0x378)](),this[_0x112a01(0x398)]&&this[_0x112a01(0x398)][_0x112a01(0x378)](),this['_anchor']&&this[_0x112a01(0x45b)][_0x112a01(0x378)](),this[_0x112a01(0x259)]&&this[_0x112a01(0x259)]();}[_0x29c6a6(0x25b)](){const _0x3b58ea=_0x29c6a6,{_docSkeleton:_0x4f5148,_document:_0x501176}=this,{color:_0x16ef61,name:_0x48aa9f,ranges:_0x5df7d4}=this[_0x3b58ea(0x4a4)],_0x232f3b=_0x501176[_0x3b58ea(0x452)](),{docsLeft:_0x50c7de,docsTop:_0x290e52}=_0x232f3b,_0x429108=new _0x473a03(_0x232f3b,_0x4f5148);for(const {startOffset:_0x186210,endOffset:_0x3a64d9,collapsed:_0x41911e,isActive:_0x672dd0}of _0x5df7d4){const _0x3fc87d=_0x4f5148['findNodePositionByCharIndex'](_0x186210),_0x5cab65=_0x4f5148[_0x3b58ea(0x34c)](_0x3a64d9);if(_0x672dd0){const {contentBoxPointGroup:_0x38abaa}=_0x429108[_0x3b58ea(0x49f)](_0x5cab65,_0x5cab65);if(_0x38abaa[_0x3b58ea(0x431)]===0x0)continue;this[_0x3b58ea(0x30e)](_0x16ef61,_0x38abaa,_0x50c7de,_0x290e52,_0x48aa9f),this['_eventUnsubscribe']=this[_0x3b58ea(0x43f)]();}if(!_0x41911e){const {contentBoxPointGroup:_0x5d7e0d}=_0x429108['getRangePointData'](_0x3fc87d,_0x5cab65);if(_0x5d7e0d[_0x3b58ea(0x431)]===0x0)continue;this[_0x3b58ea(0x3c5)](_0x16ef61,_0x5d7e0d,_0x50c7de,_0x290e52);}}}[_0x29c6a6(0x30e)](_0x187a6b,_0x4e4e0b,_0x42cd8c,_0x336342,_0x313e0f){const _0x4b57e9=_0x29c6a6,_0x2897e4=this[_0x4b57e9(0x4c2)](_0x4e4e0b),{left:_0x4d70cb,top:_0x1d314f,height:_0x3bf6d1}=_0x2897e4,_0x18e95f=this['_getScale'](),_0x4116bb=Xr/_0x18e95f,_0x3cd76f=new _0x274a4d(nt+_0x1394f4[_0x4b57e9(0x41e)](ye),{'left':_0x4d70cb+_0x42cd8c-_0x4116bb,'top':_0x1d314f+_0x336342,'height':_0x3bf6d1,'width':Kr,'fill':_0x187a6b||_0x960864(_0x82bf70[_0x4b57e9(0x39b)],0x0),'strokeWidth':_0x4116bb,'stroke':Jr,'evented':!0x0});this['_anchor']=_0x3cd76f,this[_0x4b57e9(0x4b2)][_0x4b57e9(0x446)](_0x3cd76f,_0x3d5abd);const _0x1d8bbf=new _0x274a4d(nt+_0x1394f4['generateRandomId'](ye),{'left':_0x4d70cb+_0x42cd8c-_0x4116bb,'top':_0x1d314f+_0x336342-rt/0x2,'height':rt,'width':rt,'fill':_0x187a6b||_0x960864(_0x82bf70[_0x4b57e9(0x39b)],0x0),'strokeWidth':0x0,'stroke':_0x187a6b||_0x960864(_0x82bf70[_0x4b57e9(0x39b)],0x0),'evented':!0x1});this[_0x4b57e9(0x398)]=_0x1d8bbf,this[_0x4b57e9(0x4b2)][_0x4b57e9(0x446)](_0x1d8bbf,_0x3d5abd);const _0x3a0079=new ze(nt+_0x1394f4[_0x4b57e9(0x41e)](ye),{'left':_0x4d70cb+_0x42cd8c-_0x4116bb,'top':_0x1d314f+_0x336342-Oe,'text':_0x313e0f,'color':_0x187a6b});this['_textBubble']=_0x3a0079,this['_scene']['addObject'](_0x3a0079,_0x3d5abd),this['_hover']=!0x1;}[_0x29c6a6(0x43f)](){const _0x2b313f=_0x29c6a6,_0x2bf0fe=this[_0x2b313f(0x45b)]['onPointerEnter$'][_0x2b313f(0x4af)](()=>{const _0x502dc2=_0x2b313f;this[_0x502dc2(0x2c7)]=!0x0;}),_0x1d3091=this['_anchor'][_0x2b313f(0x331)][_0x2b313f(0x4af)](()=>{const _0x539dc6=_0x2b313f;this[_0x539dc6(0x225)]&&clearTimeout(this[_0x539dc6(0x225)]),this['_hideTimer']=setTimeout(()=>{const _0x40b99e=_0x539dc6;this[_0x40b99e(0x2c7)]=!0x1;},0x7d0);});return()=>{_0x2bf0fe['unsubscribe'](),_0x1d3091['unsubscribe']();};}[_0x29c6a6(0x3c5)](_0x36cb31,_0x19d44b,_0x328730,_0x3c854f){const _0x4f49a3=_0x29c6a6,_0x50faf6=new _0x323ad1(_0x36cb31)['setAlpha'](0.2)['toRgbString'](),_0x9c8988=new _0xba4fd4(Yr+_0x1394f4[_0x4f49a3(0x41e)](ye),{'pointsGroup':_0x19d44b,'fill':_0x50faf6||_0x960864(_0x82bf70[_0x4f49a3(0x39b)],0.2),'left':_0x328730,'top':_0x3c854f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4f49a3(0x1cf)][_0x4f49a3(0x2f7)](_0x9c8988),this[_0x4f49a3(0x4b2)][_0x4f49a3(0x446)](_0x9c8988,_0x3d5abd);}[_0x29c6a6(0x4c2)](_0x69178d){const _0x5065e7=_0x69178d[0x0],_0x541674=_0x5065e7[0x0],_0x35d03a=_0x5065e7[0x2],{x:_0x31e8f0,y:_0x43c232}=_0x541674,{x:_0x356d73,y:_0x2a9cec}=_0x35d03a;return{'left':_0x31e8f0,'top':_0x43c232,'width':_0x356d73-_0x31e8f0,'height':_0x2a9cec-_0x43c232};}[_0x29c6a6(0x2e4)](){const _0x3db1a9=_0x29c6a6,{scaleX:_0x4c33e4,scaleY:_0x5b6055}=this[_0x3db1a9(0x4b2)][_0x3db1a9(0x244)]();return Math[_0x3db1a9(0x28a)](_0x4c33e4,_0x5b6055);}}var Zr=Object['defineProperty'],qr=Object[_0x29c6a6(0x48e)],Qr=(_0x389e69,_0x514b1a,_0x37cf0f,_0x30bea6)=>{const _0x436862=_0x29c6a6;for(var _0x4c3af5=_0x30bea6>0x1?void 0x0:_0x30bea6?qr(_0x514b1a,_0x37cf0f):_0x514b1a,_0x35df19=_0x389e69[_0x436862(0x431)]-0x1,_0x1b057c;_0x35df19>=0x0;_0x35df19--)(_0x1b057c=_0x389e69[_0x35df19])&&(_0x4c3af5=(_0x30bea6?_0x1b057c(_0x514b1a,_0x37cf0f,_0x4c3af5):_0x1b057c(_0x4c3af5))||_0x4c3af5);return _0x30bea6&&_0x4c3af5&&Zr(_0x514b1a,_0x37cf0f,_0x4c3af5),_0x4c3af5;},Ie=(_0x1d4902,_0x1c3ded)=>(_0x4a9ccf,_0x557d32)=>_0x1c3ded(_0x4a9ccf,_0x557d32,_0x1d4902);let Fe=class extends _0x39fd47{constructor(_0x5186aa,_0x2356c1,_0x459613,_0x30770a,_0x223c9a){const _0x287419=_0x29c6a6;super(),l(this,_0x287419(0x466),[]),(this[_0x287419(0x2bf)]=_0x5186aa,this[_0x287419(0x49b)]=_0x2356c1,this[_0x287419(0x3d3)]=_0x459613,this[_0x287419(0x4c3)]=_0x30770a,this[_0x287419(0x44e)]=_0x223c9a,this[_0x287419(0x26f)]());}['_init'](){const _0x35ed85=_0x29c6a6;this[_0x35ed85(0x4c3)][_0x35ed85(0x3d0)][_0x35ed85(0x4dc)](_0x380119(this[_0x35ed85(0x33a)]),_0x5e300c(_0x196a61=>{const _0x58d2b2=_0x35ed85;if(_0x196a61){const _0xde4e6f=_0x196a61['getViewModel']()[_0x58d2b2(0x1bc)]()[_0x58d2b2(0x38d)]();return _0x45bbb6(this['_collabCursorController'][_0x58d2b2(0x1ed)](_0xde4e6f),this[_0x58d2b2(0x44e)]['currentTheme$'])[_0x58d2b2(0x4dc)](_0x6aec6c(([_0x3ec8ec,_0x33a280])=>({'skeleton':_0x196a61,'cursors':[..._0x3ec8ec[_0x58d2b2(0x250)]()][_0x58d2b2(0x422)](_0x10a5aa=>({..._0x10a5aa,'color':_0x33a280[_0x10a5aa[_0x58d2b2(0x241)]]}))})));}return _0x41c67f({'skeleton':null,'cursors':[]});}))['subscribe'](({skeleton:_0x5091c6,cursors:_0x226b51})=>{this['_removeCollabCursors'](),_0x5091c6&&this['_updateCollabCursors'](_0x5091c6,_0x226b51);});}['_updateCollabCursors'](_0x56624e,_0x233831){const _0x24e525=_0x29c6a6,_0x27ac15=this[_0x24e525(0x41a)]();if(_0x27ac15==null)return;const {scene:_0x69b85c,document:_0x55009d}=_0x27ac15,_0x48cec1=_0x233831[_0x24e525(0x1f9)](_0x56e002=>new zr(_0x56e002,_0x69b85c,_0x56624e,_0x55009d));this[_0x24e525(0x466)]=_0x48cec1;}['_removeCollabCursors'](){const _0x1dd880=_0x29c6a6;this[_0x1dd880(0x466)][_0x1dd880(0x31b)](_0x53bae4=>_0x53bae4['dispose']()),this[_0x1dd880(0x466)]=[];}[_0x29c6a6(0x41a)](){const _0x4afa60=_0x29c6a6;return _0xfcb5c7(this['_univerInstanceService'],this[_0x4afa60(0x3d3)]);}};Fe=Qr([_0x2d1123(_0xb39fe5['Steady'],Fe),Ie(0x0,_0x558bc4(ue)),Ie(0x1,_0x33e391),Ie(0x2,_0x3bdd8b),Ie(0x3,_0x558bc4(_0x5e1842)),Ie(0x4,_0x558bc4(_0x474371))],Fe);var eo=Object['defineProperty'],to=Object[_0x29c6a6(0x48e)],so=(_0x3e26cb,_0xd48107,_0x2a4631,_0x563a33)=>{const _0x2e8111=_0x29c6a6;for(var _0x16c3e3=_0x563a33>0x1?void 0x0:_0x563a33?to(_0xd48107,_0x2a4631):_0xd48107,_0x3cd9ae=_0x3e26cb[_0x2e8111(0x431)]-0x1,_0x2b86aa;_0x3cd9ae>=0x0;_0x3cd9ae--)(_0x2b86aa=_0x3e26cb[_0x3cd9ae])&&(_0x16c3e3=(_0x563a33?_0x2b86aa(_0xd48107,_0x2a4631,_0x16c3e3):_0x2b86aa(_0x16c3e3))||_0x16c3e3);return _0x563a33&&_0x16c3e3&&eo(_0xd48107,_0x2a4631,_0x16c3e3),_0x16c3e3;},ot=(_0x385ab4,_0x4fd24b)=>(_0x8bc8d8,_0x548897)=>_0x4fd24b(_0x8bc8d8,_0x548897,_0x385ab4);let Ge=class{constructor(_0x1e4098,_0x6cc07c,_0x120aee){const _0x2b022e=_0x29c6a6;this[_0x2b022e(0x211)]=_0x1e4098,this[_0x2b022e(0x208)]=_0x6cc07c,this[_0x2b022e(0x28e)]=_0x120aee,this[_0x2b022e(0x23e)]();}['init'](){const _0x205a50=_0x29c6a6;this[_0x205a50(0x208)][_0x205a50(0x3ab)]({'priority':0x1,'interceptor':(_0x4cd5f8,_0x2b75c0)=>_0x2b75c0(_0x4cd5f8)[_0x205a50(0x4dc)](_0x3efc49(async _0xb61e39=>{const _0x31b594=_0x205a50,_0x1a4c39=_0xb61e39;if(_0x1a4c39[_0x31b594(0x3ea)]===0x191&&window[_0x31b594(0x27e)](this[_0x31b594(0x28e)]['t'](_0x31b594(0x24a)))){const _0x2d2a46=window[_0x31b594(0x2bd)](window['location'][_0x31b594(0x1ee)]);window[_0x31b594(0x333)][_0x31b594(0x1ee)]=this[_0x31b594(0x4b7)]()+_0x31b594(0x419)+_0x2d2a46;}return _0x1a4c39;}))});}[_0x29c6a6(0x4b7)](){const _0x387a59=_0x29c6a6;var _0x16073f;return(_0x16073f=this[_0x387a59(0x211)][_0x387a59(0x29b)](hn))!=null?_0x16073f:ln;}};Ge=so([ot(0x0,_0x575c32),ot(0x1,_0x558bc4(_0x180bd0)),ot(0x2,_0x558bc4(_0x2f64f))],Ge);var io=Object[_0x29c6a6(0x3f3)],no=Object[_0x29c6a6(0x48e)],ro=(_0x247c1d,_0x3d7751,_0x3220ad,_0x3d9b50)=>{const _0x139491=_0x29c6a6;for(var _0xada200=_0x3d9b50>0x1?void 0x0:_0x3d9b50?no(_0x3d7751,_0x3220ad):_0x3d7751,_0x1a871d=_0x247c1d[_0x139491(0x431)]-0x1,_0x5024c2;_0x1a871d>=0x0;_0x1a871d--)(_0x5024c2=_0x247c1d[_0x1a871d])&&(_0xada200=(_0x3d9b50?_0x5024c2(_0x3d7751,_0x3220ad,_0xada200):_0x5024c2(_0xada200))||_0xada200);return _0x3d9b50&&_0xada200&&io(_0x3d7751,_0x3220ad,_0xada200),_0xada200;},ts=(_0x22d851,_0x433791)=>(_0x263911,_0x4e85e0)=>_0x433791(_0x263911,_0x4e85e0,_0x22d851);const oo=_0x29c6a6(0x430),ao=_0x29c6a6(0x3e6);let pt=class{constructor(_0x515a7e,_0x21a138){const _0x7fd4ca=_0x29c6a6;this[_0x7fd4ca(0x252)]=_0x515a7e,this[_0x7fd4ca(0x211)]=_0x21a138;}['_getAPIPrefixPath'](){const _0x4d26e4=_0x29c6a6;var _0x143662;return(_0x143662=this[_0x4d26e4(0x211)][_0x4d26e4(0x29b)](oo))!=null?_0x143662:ao;}async[_0x29c6a6(0x326)](_0x490b66){const _0x5843d7=_0x29c6a6,_0x19e4c4=this['_getAPIPrefixPath']()+'/'+_0x490b66[_0x5843d7(0x2fe)]+_0x5843d7(0x429);return(await this[_0x5843d7(0x252)][_0x5843d7(0x243)](_0x19e4c4,{'body':_0x490b66}))['body'][_0x5843d7(0x215)]||'';}async[_0x29c6a6(0x261)](_0x2f6046){const _0x529866=_0x29c6a6,_0x17abce=this['_getAPIPrefixPath']()+_0x529866(0x2a6);return(await this['_HTTPService'][_0x529866(0x243)](_0x17abce,{'body':_0x2f6046}))[_0x529866(0x4bf)][_0x529866(0x40e)];}async['update'](_0x336f89){const _0xb56b2b=_0x29c6a6,_0x230fe=this[_0xb56b2b(0x2c9)]()+'/'+_0x336f89[_0xb56b2b(0x2fe)]+_0xb56b2b(0x210)+_0x336f89[_0xb56b2b(0x215)];await this[_0xb56b2b(0x252)][_0xb56b2b(0x290)](_0x230fe,{'body':_0x336f89});}async[_0x29c6a6(0x35f)](_0x5924e0){const _0xfe8c51=_0x29c6a6,_0xb49cc4=this['_getAPIPrefixPath']()+'/'+_0x5924e0[_0xfe8c51(0x2fe)]+_0xfe8c51(0x210)+_0x5924e0['objectID']+'/allowed';return(await this['_HTTPService'][_0xfe8c51(0x243)](_0xb49cc4,{'body':_0x5924e0}))[_0xfe8c51(0x4bf)][_0xfe8c51(0x27c)];}async[_0x29c6a6(0x4a5)](_0x50feb2){const _0x5cd379=_0x29c6a6,_0x137763=this['_getAPIPrefixPath']()+_0x5cd379(0x442);return(await this['_HTTPService'][_0x5cd379(0x243)](_0x137763,{'body':{'requests':_0x50feb2}}))[_0x5cd379(0x4bf)]['objectActions'];}async[_0x29c6a6(0x2b9)](_0xc348f){const _0x2fef70=_0x29c6a6,_0x26792a=this[_0x2fef70(0x2c9)]()+'/'+_0xc348f[_0x2fef70(0x2fe)]+'/role',_0x200152=await this[_0x2fef70(0x252)]['post'](_0x26792a,{'body':_0xc348f});return{'roles':_0x200152[_0x2fef70(0x4bf)][_0x2fef70(0x2d3)],'actions':_0x200152[_0x2fef70(0x4bf)][_0x2fef70(0x27c)]};}async[_0x29c6a6(0x24b)](_0xf5d11b){const _0x2508bd=_0x29c6a6,_0x115bf9=this['_getAPIPrefixPath']()+_0x2508bd(0x4a7);await this['_HTTPService'][_0x2508bd(0x457)](_0x115bf9,{'params':{'collaboratorID':_0xf5d11b[_0x2508bd(0x393)],'objectID':_0xf5d11b[_0x2508bd(0x215)],'unitID':_0xf5d11b['unitID']}});}async[_0x29c6a6(0x34f)](_0x173494){const _0x252952=_0x29c6a6,_0x1c85eb=this[_0x252952(0x2c9)]()+'/collaborator';await this[_0x252952(0x252)][_0x252952(0x33b)](_0x1c85eb,{'body':_0x173494});}async[_0x29c6a6(0x3c3)](_0x44dff0){const _0x517f94=_0x29c6a6,_0xf4d1df=this['_getAPIPrefixPath']()+_0x517f94(0x4a7);await this['_HTTPService'][_0x517f94(0x243)](_0xf4d1df,{'body':_0x44dff0});}async['listCollaborators'](_0x3158cd){const _0x382f45=_0x29c6a6,_0x13db1e=this[_0x382f45(0x2c9)]()+'/collaborator';return(await this[_0x382f45(0x252)][_0x382f45(0x362)](_0x13db1e,{'params':{'objectID':_0x3158cd[_0x382f45(0x215)],'unitID':_0x3158cd[_0x382f45(0x1ca)]}}))[_0x382f45(0x4bf)]['collaborators'];}async[_0x29c6a6(0x1c0)](_0x468132){const _0x2147dd=_0x29c6a6,_0x369b0a=this['_getAPIPrefixPath']()+_0x2147dd(0x4a7);await this['_HTTPService'][_0x2147dd(0x290)](_0x369b0a,{'body':_0x468132});}};pt=ro([ts(0x0,_0x558bc4(_0x180bd0)),ts(0x1,_0x558bc4(_0x575c32))],pt);var co=Object[_0x29c6a6(0x3f3)],ho=Object[_0x29c6a6(0x48e)],lo=(_0x16d07a,_0x28602b,_0x472d27,_0x1d599d)=>{const _0x22f6a7=_0x29c6a6;for(var _0x272e00=_0x1d599d>0x1?void 0x0:_0x1d599d?ho(_0x28602b,_0x472d27):_0x28602b,_0x2abf54=_0x16d07a[_0x22f6a7(0x431)]-0x1,_0x5b5c34;_0x2abf54>=0x0;_0x2abf54--)(_0x5b5c34=_0x16d07a[_0x2abf54])&&(_0x272e00=(_0x1d599d?_0x5b5c34(_0x28602b,_0x472d27,_0x272e00):_0x5b5c34(_0x272e00))||_0x272e00);return _0x1d599d&&_0x272e00&&co(_0x28602b,_0x472d27,_0x272e00),_0x272e00;},ss=(_0x397b10,_0x540bb3)=>(_0x45a38b,_0x1a457d)=>_0x540bb3(_0x45a38b,_0x1a457d,_0x397b10);const _o=['image/png',_0x29c6a6(0x306),_0x29c6a6(0x45e),_0x29c6a6(0x41b),_0x29c6a6(0x3d1)],uo=0x5*0x400*0x400,fo=_0x29c6a6(0x392),go=_0x29c6a6(0x2a5),mo=_0x29c6a6(0x20c),So='/universer-api/file/{fileID}/sign-url';let It=class{constructor(_0x2038b3,_0x1007b8){const _0x3534ae=_0x29c6a6;l(this,'_waitCount',0x0),l(this,_0x3534ae(0x3df),new _0x2ef673()),l(this,_0x3534ae(0x381),this[_0x3534ae(0x3df)]),l(this,_0x3534ae(0x3bb),new Map()),(this[_0x3534ae(0x208)]=_0x2038b3,this['_configService']=_0x1007b8);}[_0x29c6a6(0x2d1)](_0x519f04){const _0x4a4966=_0x29c6a6;this[_0x4a4966(0x366)]=_0x519f04,this[_0x4a4966(0x3df)][_0x4a4966(0x3af)](_0x519f04);}[_0x29c6a6(0x39e)](_0x55bab5,_0x49b26a){const _0x283d83=_0x29c6a6;if(_0x49b26a===_0x23f70d['BASE64']){const _0x48a8e0=new Image();return _0x48a8e0['src']=_0x55bab5,_0x48a8e0;}return this['_imageSourceCache'][_0x283d83(0x362)](_0x55bab5);}[_0x29c6a6(0x247)](_0x3ee91e,_0x53299b,_0x3a9d47){const _0x2453c3=_0x29c6a6;_0x53299b===_0x23f70d[_0x2453c3(0x2af)]||_0x3a9d47==null||this[_0x2453c3(0x3bb)][_0x2453c3(0x320)](_0x3ee91e,_0x3a9d47);}async[_0x29c6a6(0x3cc)](_0x415b92){const _0x5b59ea=_0x29c6a6;try{const _0x474cd1=this[_0x5b59ea(0x21a)](this['_getSignURL'](),''+_0x415b92),_0x4c7424=(await this[_0x5b59ea(0x208)][_0x5b59ea(0x362)](_0x474cd1))[_0x5b59ea(0x4bf)];return _0x4c7424[_0x5b59ea(0x35b)]&&_0x4c7424[_0x5b59ea(0x35b)][_0x5b59ea(0x23a)]===Cs['OK']?Promise['resolve'](_0x4c7424[_0x5b59ea(0x395)]):Promise[_0x5b59ea(0x3a4)](_0x4c7424['error']);}catch(_0x24aece){return Promise[_0x5b59ea(0x3a4)](_0x24aece);}}async[_0x29c6a6(0x49d)](_0x505358){const _0x41dd5b=_0x29c6a6;let _0x9f08c5='';if(!_o[_0x41dd5b(0x21b)](_0x505358[_0x41dd5b(0x236)]))return this[_0x41dd5b(0x1eb)](),Promise['reject'](new Error(_0x2808dd[_0x41dd5b(0x279)]));if(_0x505358[_0x41dd5b(0x4a2)]>uo)return this['_decreaseWaiting'](),Promise[_0x41dd5b(0x3a4)](new Error(_0x2808dd[_0x41dd5b(0x2cf)]));try{const _0x3da462=new FormData();_0x3da462[_0x41dd5b(0x384)](_0x41dd5b(0x301),_0x505358);const _0xc8aaa1=this[_0x41dd5b(0x313)]()+_0x41dd5b(0x3be)+_0x505358[_0x41dd5b(0x4a2)][_0x41dd5b(0x1d3)](),_0x485579=await(await fetch(_0xc8aaa1,{'method':'POST','body':_0x3da462}))[_0x41dd5b(0x40c)]();if(typeof _0x485579[_0x41dd5b(0x2cd)]!='string')return this[_0x41dd5b(0x1eb)](),Promise[_0x41dd5b(0x3a4)](new Error(_0x2808dd['ERROR_IMAGE']));_0x9f08c5=_0x485579[_0x41dd5b(0x2cd)];}catch{return this[_0x41dd5b(0x1eb)](),Promise['reject'](new Error(_0x2808dd[_0x41dd5b(0x356)]));}return new Promise((_0x541490,_0x34d652)=>{const _0x1ba6a5=_0x41dd5b,_0x54aa7b=new FileReader();_0x54aa7b[_0x1ba6a5(0x1dd)](_0x505358),_0x54aa7b[_0x1ba6a5(0x226)]=_0x991bd1=>{const _0x58431e=_0x1ba6a5;var _0x6a7e1a;const _0x5622ed=(_0x6a7e1a=_0x991bd1['target'])==null?void 0x0:_0x6a7e1a['result'];if(_0x5622ed==null){this[_0x58431e(0x1eb)](),_0x34d652(new Error(_0x2808dd[_0x58431e(0x356)]));return;}const _0x2ccaaa=_0x1394f4['generateRandomId'](0x6);_0x541490({'imageId':_0x2ccaaa,'imageSourceType':_0x23f70d[_0x58431e(0x476)],'source':_0x9f08c5,'base64Cache':_0x5622ed,'status':_0x2808dd['SUCCUSS']}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x40f9ed=_0x29c6a6;var _0x26f345;return(_0x26f345=this[_0x40f9ed(0x211)]['getConfig'](fo))!=null?_0x26f345:go;}[_0x29c6a6(0x24c)](){const _0x1dbd7b=_0x29c6a6;var _0x4aa89;return(_0x4aa89=this[_0x1dbd7b(0x211)][_0x1dbd7b(0x29b)](mo))!=null?_0x4aa89:So;}[_0x29c6a6(0x21a)](_0x426ad2,_0x4d6338){const _0x350549=_0x29c6a6;return _0x426ad2[_0x350549(0x32e)](_0x350549(0x2a4),_0x4d6338);}[_0x29c6a6(0x1eb)](){const _0x5c4ced=_0x29c6a6;this['_waitCount']-=0x1,this[_0x5c4ced(0x3df)]['next'](this[_0x5c4ced(0x366)]);}};It=lo([ss(0x0,_0x558bc4(_0x180bd0)),ss(0x1,_0x575c32)],It);var ys=Object[_0x29c6a6(0x3f3)],vo=Object['getOwnPropertyDescriptor'],po=(_0x3aba43,_0xa1bf5a,_0x25cdae)=>_0xa1bf5a in _0x3aba43?ys(_0x3aba43,_0xa1bf5a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25cdae}):_0x3aba43[_0xa1bf5a]=_0x25cdae,Io=(_0x45746a,_0x4e9349,_0x35eb7c,_0x43cc0a)=>{for(var _0x91453a=_0x43cc0a>0x1?void 0x0:_0x43cc0a?vo(_0x4e9349,_0x35eb7c):_0x4e9349,_0x4f4de2=_0x45746a['length']-0x1,_0x4e3870;_0x4f4de2>=0x0;_0x4f4de2--)(_0x4e3870=_0x45746a[_0x4f4de2])&&(_0x91453a=(_0x43cc0a?_0x4e3870(_0x4e9349,_0x35eb7c,_0x91453a):_0x4e3870(_0x91453a))||_0x91453a);return _0x43cc0a&&_0x91453a&&ys(_0x4e9349,_0x35eb7c,_0x91453a),_0x91453a;},is=(_0x40d33e,_0x1ecf61)=>(_0x4a7852,_0x20b0f8)=>_0x1ecf61(_0x4a7852,_0x20b0f8,_0x40d33e),Eo=(_0x882d07,_0x3a6dc3,_0x2b25e6)=>po(_0x882d07,_0x3a6dc3+'',_0x2b25e6);const Co=_0x29c6a6(0x341);let Et=class extends _0x353e3b{constructor(_0x1f1614,_0x41bce4,_0x48b2d4){const _0x1f7605=_0x29c6a6;super(),this['_config']=_0x1f1614,this['_logService']=_0x41bce4,this[_0x1f7605(0x31f)]=_0x48b2d4;}[_0x29c6a6(0x47c)](_0x584475){const _0x2a3f87=_0x29c6a6;var _0x6da73f,_0xb38985,_0x22b18b,_0x1035ec,_0x38cb8c;_0x584475[_0x2a3f87(0x46f)](_0x58b491)&&this[_0x2a3f87(0x214)][_0x2a3f87(0x35b)]('[UniverCollaborationClientPlugin]',_0x2a3f87(0x2f4));let _0x403d76=[[_0x58b491,{'useClass':vt}],[Re],[At],[_0x180bd0],[As,{'useClass':Gr}],[ee],[D],[_0x1ee783],[Ve],[ke],[Be],[Mt],[Ge],[Rs],[bs,{'useClass':(_0xb38985=(_0x6da73f=this[_0x2a3f87(0x3f1)])==null?void 0x0:_0x6da73f[_0x2a3f87(0x33e)])!=null?_0xb38985:_t}],[_0xb8d666,{'useClass':_0x3c390c}],[_0x2e217d,{'useClass':St}],[_0x2f8250,{'useClass':pt}],[_0x2325f4,{'useClass':It}],[Ee],[He],[je],[xe],[ue]];(_0x22b18b=this[_0x2a3f87(0x3f1)])!=null&&_0x22b18b[_0x2a3f87(0x4b9)]&&_0x403d76['push']([Xe,{'useClass':On}]),((_0x1035ec=this[_0x2a3f87(0x3f1)])==null?void 0x0:_0x1035ec[_0x2a3f87(0x2ec)])==null||this[_0x2a3f87(0x3f1)][_0x2a3f87(0x2ec)]['includes'](_0x17600d[_0x2a3f87(0x3b4)])?_0x403d76[_0x2a3f87(0x2f7)]([$e]):this[_0x2a3f87(0x3f1)][_0x2a3f87(0x2ec)]['includes'](_0x17600d[_0x2a3f87(0x3f2)])&&_0x403d76[_0x2a3f87(0x2f7)]([Fe]),_0x403d76=_0x55370c(_0x403d76,(_0x38cb8c=this[_0x2a3f87(0x3f1)])==null?void 0x0:_0x38cb8c[_0x2a3f87(0x3fc)]),_0x403d76[_0x2a3f87(0x31b)](_0x4c48ac=>_0x584475[_0x2a3f87(0x497)](_0x4c48ac)),_0x584475[_0x2a3f87(0x362)](_0x180bd0)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x19e0db({'maxParallel':0x6})}),this['_initModules']();}[_0x29c6a6(0x459)](){const _0x33c440=_0x29c6a6;var _0x3996e2,_0x1001e3;(_0x3996e2=this[_0x33c440(0x3f1)])!=null&&_0x3996e2[_0x33c440(0x3c2)]||this[_0x33c440(0x31f)][_0x33c440(0x362)](D)['disableLocalCache'](),(_0x1001e3=this[_0x33c440(0x3f1)])!=null&&_0x1001e3[_0x33c440(0x1fe)]&&this['_injector']['get'](Ge);}};function _0x34fd(_0x3f7695,_0x5f4b29){const _0x438e10=_0x438e();return _0x34fd=function(_0x34fdc7,_0x77adf){_0x34fdc7=_0x34fdc7-0x1b9;let _0x5416e2=_0x438e10[_0x34fdc7];return _0x5416e2;},_0x34fd(_0x3f7695,_0x5f4b29);}Eo(Et,'pluginName',Co),Et=Io([_0x578ae7(_0x8aafa7),is(0x1,_0x2125ae),is(0x2,_0x558bc4(_0x4ead3f))],Et);export{oo as AUTHZ_URL_KEY,pt as AuthzIoHttpService,an as COLLAB_SUBMIT_CHANGESET_URL_KEY,zi as COLLAB_WEB_SOCKET_URL_KEY,Ee as CollaborationController,ut as CollaborationSession,Re as CollaborationSessionService,_t as CollaborationSocketService,P as CollaborationStatus,Or as CollaborationStatusDisplay,Rs as CommentService,He as DataLoaderController,je as DesktopCollaborationStatusDisplayController,qi as HEARTBEAT_INTERVAL_KEY,Is as HEARTBEAT_TIMEOUT_KEY,bs as ICollaborationSocketService,As as IURLService,rn as LOCAL_CACHE_INTERVAL_KEY,hn as LOGIN_URL_KEY,D as LocalCacheService,Xi as SEND_CHANGESET_TIMEOUT_KEY,Gi as SNAPSHOT_SERVER_URL_KEY,Ki as SNAPSHOT_URL_KEY,_e as SessionStatus,Et as UniverCollaborationClientPlugin,Gr as WebURLService,gn as deserializeToCombResponse,mn as serializeCombRequest};
|
1
|
+
const _0xade8c=_0x4292;(function(_0x21b30c,_0x3923af){const _0x10a9c4=_0x4292,_0x524235=_0x21b30c();while(!![]){try{const _0x508c70=parseInt(_0x10a9c4(0x217))/0x1*(parseInt(_0x10a9c4(0xff))/0x2)+-parseInt(_0x10a9c4(0x354))/0x3*(parseInt(_0x10a9c4(0x1ac))/0x4)+-parseInt(_0x10a9c4(0x11e))/0x5*(parseInt(_0x10a9c4(0x245))/0x6)+-parseInt(_0x10a9c4(0x33d))/0x7+parseInt(_0x10a9c4(0x2d1))/0x8+-parseInt(_0x10a9c4(0x1e8))/0x9+parseInt(_0x10a9c4(0x190))/0xa;if(_0x508c70===_0x3923af)break;else _0x524235['push'](_0x524235['shift']());}catch(_0x570b09){_0x524235['push'](_0x524235['shift']());}}}(_0x2636,0x68c84));var Bs=Object['defineProperty'],ks=(_0x39d76b,_0x5862bb,_0x1aa289)=>_0x5862bb in _0x39d76b?Bs(_0x39d76b,_0x5862bb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1aa289}):_0x39d76b[_0x5862bb]=_0x1aa289,l=(_0x542668,_0x459808,_0x58df3c)=>ks(_0x542668,typeof _0x459808!=_0xade8c(0x29e)?_0x459808+'':_0x459808,_0x58df3c);import{Disposable as _0x5297f3,toDisposable as _0x45cb21,UniverInstanceType as _0x9cd059,Inject as _0xd901da,UserManagerService as _0x371b9f,IUniverInstanceService as _0x3b87df,createIdentifier as _0xc3d169,DisposableCollection as _0x5e2383,IConfigService as _0x531a6b,ILogService as _0x255408,ISnapshotServerService as _0x5610c3,RxDisposable as _0x3fb7e3,LocaleService as _0x3fbf2b,Injector as _0x3c61ae,ILocalStorageService as _0x944e2d,Tools as _0x398800,ICommandService as _0x3f64f1,JSONX as _0x5d1c82,IPermissionService as _0x1b6020,IUndoRedoService as _0x1bc0b8,sequenceExecute as _0x45596a,OnLifecycle as _0x22ab7a,LifecycleStages as _0x35f1ee,Optional as _0x3badbf,CommandType as _0x25ba1e,Rectangle as _0x16c0da,ThemeService as _0x42d43e,useDependency as _0x2a3075,connectInjector as _0x5760b9,Workbook as _0x5e425c,textEncoder as _0x53c3e8,b64DecodeUnicode as _0x5ccd98,LocalUndoRedoService as _0x71087,IContextService as _0x23bea4,COLORS as _0x143f52,ColorKit as _0x410434,isInternalEditorID as _0x142b75,Plugin as _0xde0405,IAuthzIoService as _0x4e5c79,mergeOverrideWithDependencies as _0x2e36c0,DependentOn as _0x4bdc3b}from'@univerjs/core';import{SheetsSelectionsService as _0x49acad,SetSelectionsOperation as _0x45efda,InsertSheetMutation as _0x4fe9a1,WorkbookEditablePermission as _0xaddd59,RefRangeService as _0x2d1308,EffectRefRangId as _0x117f68,handleIRemoveRow as _0x4e9436,handleIRemoveCol as _0x4a8c83,handleMoveRange as _0x269fef,handleInsertRow as _0x59ae3e,handleInsertRangeMoveRight as _0x5acc49,handleInsertRangeMoveDown as _0x273ca7,handleInsertCol as _0x2fe4c1,handleDeleteRangeMoveUp as _0x1ec5bf,handleDeleteRangeMoveLeft as _0x4b1cd0,runRefRangeMutations as _0x40799b,SetWorksheetActivateCommand as _0x3fc4c1}from'@univerjs/sheets';import{MessageType as _0x4d4329}from'@univerjs/design';import{IBeforeCloseService as _0x477bf3,IMessageService as _0x48de42,INotificationService as _0x4cb594,useObservable as _0x190b58,BuiltInUIPart as _0x3b73a8,IUIPartsService as _0x6b2e9f}from'@univerjs/ui';import{CollaborationEvent as _0x1b9133,parseChangesetToProtocol as _0x391abe,RevisionService as _0x432311,isTransformMutationFailure as _0x1054d7,isTransformMutationsWithChangesetSuccess as _0x504c1f,ITransformService as _0x581964,mapDocumentTypeToUniverType as _0x19393c,isTransformChangesetsSuccess as _0x288394,CompressMutationService as _0x150830,parseProtocolChangeset as _0x28c9a8,SnapshotService as _0x570f37,isTransformMutationsWithChangesetFailure as _0xb6937e,UniverCollaborationPlugin as _0x4c40a3}from'@univerjs-pro/collaboration';import{merge as _0x52fd0c,Subject as _0x3718e0,BehaviorSubject as _0x1a37bf,distinctUntilChanged as _0x3cc420,fromEvent as _0x52fa92,of as _0x3ff30b,takeUntil as _0x2473df,debounceTime as _0x2ec9db,filter as _0x2a5048,switchMap as _0x2075a8,combineLatest as _0x5930bd,shareReplay as _0x23e965,mapTo as _0x53ba30,concatMap as _0x5af94b}from'rxjs';import{map as _0x176ea9,takeUntil as _0x68ef5b,take as _0x4efd5d,filter as _0x4c2296,delay as _0xf4f725,shareReplay as _0x3b73a3,switchMap as _0x1b27ff}from'rxjs/operators';import{IMEInputManagerService as _0x42fcd8,TextSelectionManagerService as _0x33f09e,serializeTextRange as _0x5b7fb3,DocStateChangeManagerService as _0x36a6d8,SetTextSelectionsOperation as _0x55ed86,RichTextEditingMutation as _0x372b8c,getDocObject as _0x570b80,DocSkeletonManagerService as _0x55bc8c}from'@univerjs/docs';import{HTTPService as _0x32bb9e,WebSocketService as _0x56a40f,MergeInterceptorFactory as _0x3f4d36,HTTPRequest as _0x2026b9,IHTTPImplementation as _0x2364b6,XHRHTTPImplementation as _0x11d4c7,ThresholdInterceptorFactory as _0x53aaa4}from'@univerjs/network';import{ImageSourceType as _0x146d1d,ImageUploadStatusType as _0x200c2c,IImageIoService as _0x355890}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x35f0e9,serializeRangeWithSheet as _0x1b1c8a}from'@univerjs/engine-formula';import _0x1ebe66 from'lodash/debounce';import{Shape as _0xd0c38,Rect as _0x2d5bd9,Vector2 as _0x4a4da3,IRenderManagerService as _0x1e26e7,NodePositionConvertToCursor as _0x362ef3,getColor as _0x42b6d4,TEXT_RANGE_LAYER_INDEX as _0x54aa29,RegularPolygon as _0x40800c}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x3c67f3,VIEWPORT_KEY as _0x1eba95,getCoordByCell as _0x287034,getSheetObject as _0x2a0247,SheetPermissionInitController as _0x331505}from'@univerjs/sheets-ui';import _0xeb971e,{forwardRef as _0x27c31b,useRef as _0x5ddd21,createElement as _0x5a9803}from'react';import _0xf44121 from'clsx';function _0x4292(_0xd54a48,_0x57481d){const _0x263610=_0x2636();return _0x4292=function(_0x4292b7,_0x37895d){_0x4292b7=_0x4292b7-0x78;let _0x183a12=_0x263610[_0x4292b7];return _0x183a12;},_0x4292(_0xd54a48,_0x57481d);}import{IRemoteInstanceService as _0x56e60a}from'@univerjs/rpc';const zi=_0xade8c(0xe1),Zi='/universer-api/snapshot',Qi='SNAPSHOT_URL_KEY',en=_0xade8c(0xa2),tn=0x7d0,sn=_0xade8c(0xf9),nn=_0xade8c(0x19a),rn=_0xade8c(0x39f),on=0x7530,bs=_0xade8c(0x385),Ts=0x2710,an='RETRY_CONNECTING_INTERVAL',cn=0x4e20,hn='RETRY_CONNECTING_MAX_COUNT',ln=0x3,_n=_0xade8c(0xde),un=0x3e8,dn=_0xade8c(0x377),fn=_0xade8c(0x23f),mn='LOGIN_URL_KEY',gn='/universer-api/oidc/authpage';var Rs=(_0x25a34b=>(_0x25a34b[_0x25a34b[_0xade8c(0x278)]=0x0]=_0xade8c(0x278),_0x25a34b[_0x25a34b['OK']=0x1]='OK',_0x25a34b[_0x25a34b['INTERNAL_ERROR']=0x2]=_0xade8c(0x389),_0x25a34b[_0x25a34b[_0xade8c(0x1a8)]=0x3]=_0xade8c(0x1a8),_0x25a34b[_0x25a34b[_0xade8c(0xef)]=0x4]=_0xade8c(0xef),_0x25a34b[_0x25a34b[_0xade8c(0x232)]=0x5]=_0xade8c(0x232),_0x25a34b[_0x25a34b[_0xade8c(0x33c)]=0x6]=_0xade8c(0x33c),_0x25a34b[_0x25a34b[_0xade8c(0xd9)]=0x7]=_0xade8c(0xd9),_0x25a34b[_0x25a34b['TOO_MANY_REQUESTS']=0x8]=_0xade8c(0x2d8),_0x25a34b[_0x25a34b[_0xade8c(0x196)]=0x9]=_0xade8c(0x196),_0x25a34b[_0x25a34b[_0xade8c(0x27d)]=0x1389]=_0xade8c(0x27d),_0x25a34b[_0x25a34b[_0xade8c(0x11f)]=0x1771]=_0xade8c(0x11f),_0x25a34b[_0x25a34b['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0xade8c(0x90),_0x25a34b[_0x25a34b[_0xade8c(0xf6)]=0x1b59]=_0xade8c(0xf6),_0x25a34b[_0x25a34b[_0xade8c(0x3ad)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x25a34b[_0x25a34b[_0xade8c(0xfd)]=0x1b5b]=_0xade8c(0xfd),_0x25a34b[_0x25a34b[_0xade8c(0x30e)]=0x1b5c]=_0xade8c(0x30e),_0x25a34b[_0x25a34b[_0xade8c(0xb4)]=0x1f41]=_0xade8c(0xb4),_0x25a34b[_0x25a34b[_0xade8c(0x276)]=0x2329]=_0xade8c(0x276),_0x25a34b[_0x25a34b[_0xade8c(0x14f)]=0x232a]=_0xade8c(0x14f),_0x25a34b[_0x25a34b[_0xade8c(0xb5)]=0x232b]=_0xade8c(0xb5),_0x25a34b[_0x25a34b[_0xade8c(0x327)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x25a34b[_0x25a34b['LICENSE_DISTRO_REJECTED']=0x232d]=_0xade8c(0x394),_0x25a34b[_0x25a34b[_0xade8c(0x2bb)]=0x2711]=_0xade8c(0x2bb),_0x25a34b[_0x25a34b['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0xade8c(0x103),_0x25a34b[_0x25a34b['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x25a34b))(Rs||{}),H=(_0x2505a2=>(_0x2505a2[_0x2505a2[_0xade8c(0xc5)]=0x0]=_0xade8c(0xc5),_0x2505a2[_0x2505a2[_0xade8c(0x1c7)]=0x1]='UNIVER_DOC',_0x2505a2[_0x2505a2[_0xade8c(0x3a3)]=0x2]=_0xade8c(0x3a3),_0x2505a2[_0x2505a2[_0xade8c(0x170)]=0x3]=_0xade8c(0x170),_0x2505a2[_0x2505a2['UNRECOGNIZED']=-0x1]=_0xade8c(0x36e),_0x2505a2))(H||{}),I=(_0x4322e2=>(_0x4322e2[_0x4322e2[_0xade8c(0x3a6)]=0x0]=_0xade8c(0x3a6),_0x4322e2[_0x4322e2['HELLO']=0x1]='HELLO',_0x4322e2[_0x4322e2[_0xade8c(0xa8)]=0x2]=_0xade8c(0xa8),_0x4322e2[_0x4322e2[_0xade8c(0x308)]=0x3]=_0xade8c(0x308),_0x4322e2[_0x4322e2['INGEST']=0x4]='INGEST',_0x4322e2[_0x4322e2[_0xade8c(0x1eb)]=0x5]=_0xade8c(0x1eb),_0x4322e2[_0x4322e2[_0xade8c(0x370)]=0x6]=_0xade8c(0x370),_0x4322e2[_0x4322e2[_0xade8c(0x36e)]=-0x1]=_0xade8c(0x36e),_0x4322e2))(I||{}),yt=(_0x22cef8=>(_0x22cef8[_0x22cef8[_0xade8c(0x1c0)]=0x0]='UNKNOWN_CODE',_0x22cef8[_0x22cef8['OK']=0x1]='OK',_0x22cef8[_0x22cef8[_0xade8c(0x140)]=0x2]=_0xade8c(0x140),_0x22cef8[_0x22cef8['UNRECOGNIZED']=-0x1]=_0xade8c(0x36e),_0x22cef8))(yt||{}),Sn=Object[_0xade8c(0x36b)],vn=Object[_0xade8c(0x22b)],pn=(_0x53e36c,_0x38424e,_0x5df1c5,_0x46e19d)=>{const _0xfd67c2=_0xade8c;for(var _0x17ef66=_0x46e19d>0x1?void 0x0:_0x46e19d?vn(_0x38424e,_0x5df1c5):_0x38424e,_0xcb4644=_0x53e36c[_0xfd67c2(0x331)]-0x1,_0x58d436;_0xcb4644>=0x0;_0xcb4644--)(_0x58d436=_0x53e36c[_0xcb4644])&&(_0x17ef66=(_0x46e19d?_0x58d436(_0x38424e,_0x5df1c5,_0x17ef66):_0x58d436(_0x17ef66))||_0x17ef66);return _0x46e19d&&_0x17ef66&&Sn(_0x38424e,_0x5df1c5,_0x17ef66),_0x17ef66;},Kt=(_0x5a0ae6,_0x48a509)=>(_0x2c6168,_0x5d9a80)=>_0x48a509(_0x2c6168,_0x5d9a80,_0x5a0ae6);let ne=class extends _0x5297f3{constructor(_0x5c04dd,_0xef95c){const _0x5e19c0=_0xade8c;super(),l(this,_0x5e19c0(0xf2),new Map()),(this[_0x5e19c0(0x1c2)]=_0x5c04dd,this[_0x5e19c0(0x1d9)]=_0xef95c,this[_0x5e19c0(0x1f1)](_0x45cb21(_0x52fd0c(this[_0x5e19c0(0x1c2)][_0x5e19c0(0x1a4)](_0x9cd059['UNIVER_SHEET'])[_0x5e19c0(0x2fe)](_0x176ea9(_0x1f9941=>_0x1f9941['getUnitId']())),this[_0x5e19c0(0x1c2)][_0x5e19c0(0x1a4)](_0x9cd059['UNIVER_DOC'])['pipe'](_0x176ea9(_0x318f67=>_0x318f67[_0x5e19c0(0x350)]())),this[_0x5e19c0(0x1c2)][_0x5e19c0(0x1a4)](_0x9cd059[_0x5e19c0(0x170)])['pipe'](_0x176ea9(_0x5059fb=>_0x5059fb['getUnitId']())))[_0x5e19c0(0xbf)](_0x258f93=>this[_0x5e19c0(0x20e)](_0x258f93)))));}[_0xade8c(0x174)](_0x147653){const _0x242f27=_0xade8c;this[_0x242f27(0x1d9)][_0x242f27(0x174)](_0x147653);}[_0xade8c(0x31f)](){const _0x5994be=_0xade8c;return this[_0x5994be(0x1d9)]['getCurrentUser']();}[_0xade8c(0x1ce)](_0x203037,_0x286bd5){const _0x529506=_0xade8c;let _0x46db06=this[_0x529506(0xf2)]['get'](_0x203037);_0x46db06||(_0x46db06=new In(),this[_0x529506(0xf2)][_0x529506(0xbd)](_0x203037,_0x46db06)),_0x46db06[_0x529506(0x1ce)](_0x286bd5);}[_0xade8c(0x32c)](_0x4b75a1,_0x54d24a){const _0x1b6998=_0xade8c,_0x37a6e7=this[_0x1b6998(0xf2)][_0x1b6998(0x275)](_0x4b75a1);_0x37a6e7&&_0x37a6e7[_0x1b6998(0x32c)](_0x54d24a);}[_0xade8c(0x2b2)](_0x1efd8f){const _0x1e85e9=_0xade8c;return this[_0x1e85e9(0xf2)][_0x1e85e9(0x275)](_0x1efd8f);}[_0xade8c(0xa5)](_0x6d9537,_0x2bb3ef){const _0x6d94c=_0xade8c,_0x479ffb=this['_roomMembers'][_0x6d94c(0x275)](_0x6d9537);if(_0x479ffb)return _0x479ffb[_0x6d94c(0xa5)](_0x2bb3ef);}[_0xade8c(0x20e)](_0x4d3ae7){const _0x3ff6c7=_0xade8c,_0x8210f6=this[_0x3ff6c7(0xf2)][_0x3ff6c7(0x275)](_0x4d3ae7);_0x8210f6&&(_0x8210f6[_0x3ff6c7(0x199)](),this[_0x3ff6c7(0xf2)][_0x3ff6c7(0x39d)](_0x4d3ae7));}[_0xade8c(0x199)](){const _0x5a6516=_0xade8c;this[_0x5a6516(0xf2)]['forEach'](_0x54e41e=>_0x54e41e['dispose']()),this[_0x5a6516(0xf2)][_0x5a6516(0x287)]();}};ne=pn([Kt(0x0,_0x3b87df),Kt(0x1,_0xd901da(_0x371b9f))],ne);class In extends _0x5297f3{constructor(){const _0x59fbbc=_0xade8c;super(...arguments),l(this,_0x59fbbc(0xc7),new Map());}['dispose'](){const _0x41ee51=_0xade8c;this[_0x41ee51(0xc7)][_0x41ee51(0x287)]();}[_0xade8c(0x1ce)](_0x4b8927){const _0x1dadbb=_0xade8c;this[_0x1dadbb(0xc7)][_0x1dadbb(0xbd)](_0x4b8927[_0x1dadbb(0x216)],_0x4b8927);}[_0xade8c(0x32c)](_0x41aa80){const _0x1c4e6c=_0xade8c;this['_members'][_0x1c4e6c(0x39d)](_0x41aa80);}[_0xade8c(0xa5)](_0x4a26c9){const _0x2d54f1=_0xade8c;return this[_0x2d54f1(0xc7)]['get'](_0x4a26c9);}}function En(_0x33a74d){const _0x219928=_0xade8c;var _0x5d91e5,_0x16e8ea,_0x7b1fe8,_0x5d6059;const _0x2b6881=_0x33a74d[_0x219928(0x19b)],_0x1a50c0=JSON['parse'](_0x2b6881);switch(_0x1a50c0[_0x219928(0x25f)]){case I['HEARTBEAT']:case I[_0x219928(0x219)]:{const _0x1a5581=_0x1a50c0[_0x219928(0x9b)];return{..._0x1a50c0,'data':_0x1a5581,'cmd':_0x1a50c0[_0x219928(0x25f)]};}case I[_0x219928(0xa8)]:{const _0x4b0ba8=_0x1a50c0[_0x219928(0xb0)];return{..._0x1a50c0,'data':_0x4b0ba8,'cmd':_0x1a50c0[_0x219928(0x25f)]};}case I['RECV']:{const _0x3fef90=_0x1a50c0[_0x219928(0x393)];switch(_0x3fef90['eventID']){case _0x1b9133['PERMISSION_REJ']:return{..._0x1a50c0,'data':{..._0x3fef90,'data':(_0x5d91e5=_0x3fef90[_0x219928(0x367)])==null?void 0x0:_0x5d91e5['cs']},'cmd':_0x1a50c0[_0x219928(0x25f)]};case _0x1b9133[_0x219928(0x29b)]:return{..._0x1a50c0,'data':{..._0x3fef90,'data':(_0x16e8ea=_0x3fef90[_0x219928(0x179)])==null?void 0x0:_0x16e8ea['cs']},'cmd':_0x1a50c0[_0x219928(0x25f)]};case _0x1b9133[_0x219928(0x1a9)]:return{..._0x1a50c0,'data':{..._0x3fef90,'data':(_0x7b1fe8=_0x3fef90['newCsEvent'])==null?void 0x0:_0x7b1fe8['cs']},'cmd':_0x1a50c0[_0x219928(0x25f)]};case _0x1b9133['CHANGESET_REJ']:return{..._0x1a50c0,'data':{..._0x3fef90,'data':(_0x5d6059=_0x3fef90[_0x219928(0xb9)])==null?void 0x0:_0x5d6059['cs']},'cmd':_0x1a50c0['cmd']};case _0x1b9133[_0x219928(0x390)]:return{..._0x1a50c0,'data':{..._0x3fef90,'data':_0x3fef90[_0x219928(0x10d)]},'cmd':_0x1a50c0[_0x219928(0x25f)]};case _0x1b9133[_0x219928(0x25a)]:return{..._0x1a50c0,'data':{..._0x3fef90,'data':_0x3fef90[_0x219928(0xe0)]},'cmd':_0x1a50c0[_0x219928(0x25f)]};case _0x1b9133[_0x219928(0x8b)]:return{..._0x1a50c0,'data':{..._0x3fef90,'data':_0x3fef90[_0x219928(0x36d)]},'cmd':_0x1a50c0[_0x219928(0x25f)]};case _0x1b9133[_0x219928(0x250)]:return{..._0x1a50c0,'data':{..._0x3fef90,'data':_0x3fef90['liveShareNewHost']},'cmd':_0x1a50c0['cmd']};case _0x1b9133['LIVESHARE_FETCH_OPERATIONS']:case _0x1b9133['LIVESHARE_OPERATION']:return{..._0x1a50c0,'data':{..._0x3fef90,'data':_0x3fef90[_0x219928(0x2a8)]},'cmd':_0x1a50c0[_0x219928(0x25f)]};case _0x1b9133[_0x219928(0xf8)]:return{..._0x1a50c0,'data':{..._0x3fef90,'data':_0x3fef90[_0x219928(0xe8)]},'cmd':_0x1a50c0[_0x219928(0x25f)]};case _0x1b9133[_0x219928(0x1a3)]:return{..._0x1a50c0,'data':_0x3fef90,'cmd':_0x1a50c0['cmd']};case _0x1b9133[_0x219928(0xdf)]:return{..._0x1a50c0,'data':{..._0x3fef90,'data':_0x3fef90[_0x219928(0x24b)]},'cmd':_0x1a50c0[_0x219928(0x25f)]};case _0x1b9133[_0x219928(0x130)]:return{..._0x1a50c0,'data':{..._0x3fef90,'data':_0x3fef90['updatePermissionObjEvent']},'cmd':_0x1a50c0[_0x219928(0x25f)]};case _0x1b9133['SHOULD_CLOSE_CONN']:return{..._0x1a50c0,'data':{..._0x3fef90,'data':_0x3fef90[_0x219928(0x3b7)]},'cmd':_0x1a50c0[_0x219928(0x25f)]};default:return _0x1a50c0;}}default:return _0x1a50c0;}}function Cn(_0x1bc10a){const _0x2b2f5e=_0xade8c;switch(_0x1bc10a[_0x2b2f5e(0x25f)]){case I['HEARTBEAT']:case I['HELLO']:return JSON[_0x2b2f5e(0x2b0)]({'cmd':_0x1bc10a['cmd'],'routeKey':_0x1bc10a['routeKey']});case I[_0x2b2f5e(0x315)]:{let _0x2ae2e2;switch(_0x1bc10a[_0x2b2f5e(0x19b)][_0x2b2f5e(0x13b)]){case _0x1b9133['UPDATE_CURSOR']:{_0x2ae2e2={'eventID':_0x1b9133[_0x2b2f5e(0x390)],'updateCursorEvent':_0x1bc10a['data'][_0x2b2f5e(0x19b)]};break;}case _0x1b9133['USERS_LEAVE']:{_0x2ae2e2={'eventID':_0x1b9133[_0x2b2f5e(0x8b)],'leaveEvent':_0x1bc10a[_0x2b2f5e(0x19b)][_0x2b2f5e(0x19b)]};break;}case _0x1b9133[_0x2b2f5e(0x25a)]:{_0x2ae2e2={'eventID':_0x1b9133[_0x2b2f5e(0x25a)],'joinEvent':_0x1bc10a[_0x2b2f5e(0x19b)][_0x2b2f5e(0x19b)]};break;}case _0x1b9133[_0x2b2f5e(0x250)]:{_0x2ae2e2={'eventID':_0x1b9133[_0x2b2f5e(0x250)],'liveShareNewHost':_0x1bc10a[_0x2b2f5e(0x19b)][_0x2b2f5e(0x19b)]};break;}case _0x1b9133[_0x2b2f5e(0x2a0)]:{_0x2ae2e2={'eventID':_0x1b9133['LIVESHARE_OPERATION'],'liveShareOperation':_0x1bc10a[_0x2b2f5e(0x19b)][_0x2b2f5e(0x19b)]};break;}case _0x1b9133[_0x2b2f5e(0xf8)]:{_0x2ae2e2={'eventID':_0x1b9133['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x1bc10a['data'][_0x2b2f5e(0x19b)]};break;}case _0x1b9133[_0x2b2f5e(0x1cc)]:{_0x2ae2e2={'eventID':_0x1b9133[_0x2b2f5e(0x1cc)],'liveShareRequestHost':_0x1bc10a['data'][_0x2b2f5e(0x19b)]};break;}case _0x1b9133[_0x2b2f5e(0x259)]:{_0x2ae2e2={'eventID':_0x1b9133[_0x2b2f5e(0x259)]};break;}default:_0x2ae2e2={'eventID':_0x1bc10a[_0x2b2f5e(0x19b)]['eventID']};}return JSON[_0x2b2f5e(0x2b0)]({'cmd':_0x1bc10a[_0x2b2f5e(0x25f)],'routeKey':_0x1bc10a[_0x2b2f5e(0x2c5)],'collaMsg':_0x2ae2e2});}case I[_0x2b2f5e(0xa8)]:return JSON[_0x2b2f5e(0x2b0)]({'cmd':_0x1bc10a[_0x2b2f5e(0x25f)],'routeKey':_0x1bc10a[_0x2b2f5e(0x2c5)],'joinReq':_0x1bc10a[_0x2b2f5e(0x19b)]});case I[_0x2b2f5e(0x308)]:return JSON[_0x2b2f5e(0x2b0)]({'cmd':_0x1bc10a[_0x2b2f5e(0x25f)],'routeKey':_0x1bc10a[_0x2b2f5e(0x2c5)],'leaveReq':_0x1bc10a[_0x2b2f5e(0x19b)]});default:throw new Error(_0x2b2f5e(0x155));}}var bn=Object[_0xade8c(0x36b)],Tn=Object['getOwnPropertyDescriptor'],Rn=(_0x58b028,_0x23dfea,_0x593207,_0xae2026)=>{for(var _0x58a514=_0xae2026>0x1?void 0x0:_0xae2026?Tn(_0x23dfea,_0x593207):_0x23dfea,_0x1c692a=_0x58b028['length']-0x1,_0x1074a3;_0x1c692a>=0x0;_0x1c692a--)(_0x1074a3=_0x58b028[_0x1c692a])&&(_0x58a514=(_0xae2026?_0x1074a3(_0x23dfea,_0x593207,_0x58a514):_0x1074a3(_0x58a514))||_0x58a514);return _0xae2026&&_0x58a514&&bn(_0x23dfea,_0x593207,_0x58a514),_0x58a514;},Ee=(_0x4879c5,_0x18cac9)=>(_0x3ce321,_0x46430e)=>_0x18cac9(_0x3ce321,_0x46430e,_0x4879c5);const Os=_0xc3d169(_0xade8c(0x25d));function On(_0x163d19,_0x3ffc48,_0x18e210){const _0x5a2dbd=_0xade8c;return _0x163d19+'/'+_0x3ffc48+_0x5a2dbd(0x302)+_0x18e210+_0x5a2dbd(0x32e);}let gt=class{constructor(_0x3a207a,_0x272a1f,_0x1dfae9,_0x1259c9,_0x19969f){const _0x2af20c=_0xade8c;this[_0x2af20c(0x11b)]=_0x3a207a,this[_0x2af20c(0x335)]=_0x272a1f,this[_0x2af20c(0x253)]=_0x1dfae9,this[_0x2af20c(0x37f)]=_0x1259c9,this[_0x2af20c(0x355)]=_0x19969f;}['createSocket'](_0x122be5){const _0x392464=_0xade8c,_0x59178d=this['_ws']['createSocket'](_0x122be5);if(!_0x59178d)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x1b6a3d=new _0x5e2383(),_0x3aa7c0=new _0x3718e0();_0x1b6a3d[_0x392464(0x21f)](_0x45cb21(_0x59178d[_0x392464(0x285)]['subscribe'](_0x159ff1=>_0x3aa7c0[_0x392464(0xab)](_0x159ff1)))),_0x1b6a3d[_0x392464(0x21f)](_0x45cb21(()=>_0x3aa7c0['complete']()));const _0xeb16a=new _0x3718e0();_0x1b6a3d[_0x392464(0x21f)](_0x45cb21(_0x59178d['error$'][_0x392464(0xbf)](_0x54ba92=>_0xeb16a['next'](_0x54ba92)))),_0x1b6a3d[_0x392464(0x21f)](_0x45cb21(()=>_0xeb16a[_0x392464(0x239)]()));const _0x45bf6d=new _0x3718e0();_0x1b6a3d[_0x392464(0x21f)](_0x45cb21(_0x59178d[_0x392464(0x20c)][_0x392464(0xbf)](_0x5d59be=>{const _0x2ad90c=_0x392464,_0x98ec8a=En(_0x5d59be);_0x45bf6d[_0x2ad90c(0xab)](_0x98ec8a);}))),_0x1b6a3d[_0x392464(0x21f)](_0x45cb21(()=>_0x45bf6d[_0x392464(0x239)]()));const _0x107b0c=()=>{const _0x2ea338=_0x392464;_0xeb16a[_0x2ea338(0xab)](new Event(_0x2ea338(0x13a))),_0x3aa7c0['next'](new CloseEvent(_0x2ea338(0x13a))),_0x743285['close']();},_0x743285={'memberID':'','close$':_0x3aa7c0['asObservable'](),'error$':_0xeb16a[_0x392464(0x329)](),'open$':_0x59178d['open$'],'message$':_0x45bf6d[_0x392464(0x329)](),'send':_0x54ffea=>{const _0x49b573=_0x392464;if(_0x54ffea[_0x49b573(0x25f)]===I[_0x49b573(0x315)]){if(_0x54ffea['data'][_0x49b573(0x13b)]===_0x1b9133[_0x49b573(0x35a)]){this[_0x49b573(0x391)](_0x743285,_0x54ffea[_0x49b573(0x19b)])[_0x49b573(0x23d)](_0xb9ffb2=>{const _0x555ece=_0x49b573;this[_0x555ece(0x37f)]['error'](_0xb9ffb2),_0x107b0c();});return;}if(_0x54ffea['data'][_0x49b573(0x13b)]===_0x1b9133[_0x49b573(0x34f)]){const _0x5c32a7=_0x54ffea[_0x49b573(0x19b)];this[_0x49b573(0x358)](_0x5c32a7)[_0x49b573(0x2dd)](_0x484349=>{const _0x500ed6=_0x49b573;_0x45bf6d[_0x500ed6(0xab)]({'cmd':I[_0x500ed6(0x370)],'code':yt['OK'],'routeKey':_0x5c32a7['data'][_0x500ed6(0x14d)],'routeType':'','data':{'eventID':_0x1b9133[_0x500ed6(0x25b)],'data':{'changesets':_0x484349}}});})[_0x49b573(0x23d)](_0x54a682=>{const _0x30eae1=_0x49b573;this[_0x30eae1(0x37f)][_0x30eae1(0x2cf)](_0x54a682),_0x107b0c();});return;}}_0x59178d['send'](Cn(_0x54ffea));},'close':()=>{const _0x29d813=_0x392464;_0x59178d[_0x29d813(0x17e)](),_0x1b6a3d[_0x29d813(0x199)]();}};return _0x743285;}async[_0xade8c(0x391)](_0x4372ec,_0x3f26a5){const _0x59b82b=_0xade8c;var _0x576ae2;const {unitType:_0x903c27,unitID:_0x27009a,changeset:_0x253338}=_0x3f26a5[_0x59b82b(0x19b)],_0x4b9ade={'unitID':_0x27009a,'memberID':_0x4372ec[_0x59b82b(0x216)],'type':_0x903c27,'changeset':_0x391abe(_0x253338)},_0x5b7e86=On((_0x576ae2=this[_0x59b82b(0x253)]['getConfig'](dn))!=null?_0x576ae2:fn,_0x903c27,_0x27009a);try{await this['_http'][_0x59b82b(0x35d)](_0x5b7e86,{'body':_0x4b9ade});}catch(_0x1217c8){throw this[_0x59b82b(0x37f)][_0x59b82b(0x2cf)]('[CollaborationSession]',_0x59b82b(0x305)),_0x1217c8;}}async[_0xade8c(0x358)](_0x2dff58){const _0x3459f3=_0xade8c,{unitID:_0x28ed22,from:_0xdb46cb,to:_0x42f5d5,unitType:_0x41e4bf}=_0x2dff58[_0x3459f3(0x19b)];return(await this[_0x3459f3(0x355)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x28ed22,'type':_0x41e4bf,'from':_0xdb46cb,'to':_0x42f5d5}))[_0x3459f3(0xe4)];}};gt=Rn([Ee(0x0,_0xd901da(_0x32bb9e)),Ee(0x1,_0xd901da(_0x56a40f)),Ee(0x2,_0x531a6b),Ee(0x3,_0x255408),Ee(0x4,_0x5610c3)],gt);class Ds{constructor(){const _0x23492c=_0xade8c;l(this,_0x23492c(0x8d),new _0x3718e0()),l(this,_0x23492c(0x115),this[_0x23492c(0x8d)][_0x23492c(0x329)]());}[_0xade8c(0x96)](_0x5c0ea8){const _0x179267=_0xade8c;this[_0x179267(0x8d)][_0x179267(0xab)](_0x5c0ea8);}}var Dn=Object[_0xade8c(0x36b)],Pn=Object[_0xade8c(0x22b)],Ps=(_0x351f34,_0x3c5a2e,_0x2659b6,_0x337e85)=>{const _0x12224b=_0xade8c;for(var _0x9fdb39=_0x337e85>0x1?void 0x0:_0x337e85?Pn(_0x3c5a2e,_0x2659b6):_0x3c5a2e,_0x4675e8=_0x351f34[_0x12224b(0x331)]-0x1,_0x2c1fa0;_0x4675e8>=0x0;_0x4675e8--)(_0x2c1fa0=_0x351f34[_0x4675e8])&&(_0x9fdb39=(_0x337e85?_0x2c1fa0(_0x3c5a2e,_0x2659b6,_0x9fdb39):_0x2c1fa0(_0x9fdb39))||_0x9fdb39);return _0x337e85&&_0x9fdb39&&Dn(_0x3c5a2e,_0x2659b6,_0x9fdb39),_0x9fdb39;},M=(_0x562975,_0x3af1d8)=>(_0x22db07,_0x1bdd7f)=>_0x3af1d8(_0x22db07,_0x1bdd7f,_0x562975),de=(_0x3e8c2e=>(_0x3e8c2e[_0x3e8c2e['IDLE']=0x0]=_0xade8c(0x3ac),_0x3e8c2e[_0x3e8c2e[_0xade8c(0x3b6)]=0x1]=_0xade8c(0x3b6),_0x3e8c2e[_0x3e8c2e['OFFLINE']=0x2]=_0xade8c(0x262),_0x3e8c2e[_0x3e8c2e['ONLINE']=0x3]=_0xade8c(0x241),_0x3e8c2e))(de||{});let St=class extends _0x3fb7e3{constructor(_0x3cb910,_0x19f58e,_0x4ca11b,_0x566164,_0x250393,_0x27ebfa,_0x23dfce,_0x29cb0b,_0x338d20){const _0x45c73f=_0xade8c;super(),l(this,_0x45c73f(0x2fa),new _0x1a37bf(0x0)),l(this,_0x45c73f(0x17f),this[_0x45c73f(0x2fa)]['asObservable']()),l(this,_0x45c73f(0x2b7),new _0x3718e0()),l(this,_0x45c73f(0x2ea),this[_0x45c73f(0x2b7)][_0x45c73f(0x329)]()),l(this,'_socket'),l(this,_0x45c73f(0x39a)),l(this,'_collaborationTimeoutTimer'),(this[_0x45c73f(0x34b)]=_0x3cb910,this[_0x45c73f(0x37f)]=_0x4ca11b,this[_0x45c73f(0x272)]=_0x566164,this[_0x45c73f(0x368)]=_0x250393,this['_configService']=_0x27ebfa,this[_0x45c73f(0x148)]=_0x23dfce,this[_0x45c73f(0x311)]=_0x29cb0b,this[_0x45c73f(0x388)]=_0x338d20,_0x19f58e['pipe'](_0x68ef5b(this[_0x45c73f(0x13d)]))['subscribe'](_0x4bc210=>{const _0x4e8b9e=_0x45c73f;var _0x5150c2;typeof _0x4bc210>'u'||(this[_0x4e8b9e(0x14c)]=_0x4bc210,_0x4bc210?(this[_0x4e8b9e(0x3a7)](_0x4bc210),this[_0x4e8b9e(0x39a)]=this[_0x4e8b9e(0x14c)][_0x4e8b9e(0x20c)][_0x4e8b9e(0xbf)](_0x18496e=>{const _0x5d64de=_0x4e8b9e;_0x18496e[_0x5d64de(0x2c5)]===this[_0x5d64de(0x34b)]&&this['_onCombEvent'](_0x18496e);})):(this[_0x4e8b9e(0x2fa)][_0x4e8b9e(0xab)](0x2),(_0x5150c2=this[_0x4e8b9e(0x39a)])==null||_0x5150c2['unsubscribe'](),this[_0x4e8b9e(0x39a)]=null));}),this[_0x45c73f(0x1f1)](this['_beforeCloseService'][_0x45c73f(0x3a8)](()=>{const _0xa8b2e3=_0x45c73f;var _0x106051;(_0x106051=this['_socket'])==null||_0x106051['send']({'cmd':I['LEAVE'],'data':{'roomID':this[_0xa8b2e3(0x34b)]}});})));}get['sessionStatus'](){const _0xa26297=_0xade8c;return this['_sessionStatus$'][_0xa26297(0x17d)]();}[_0xade8c(0xdc)](){const _0x5c25a9=_0xade8c;var _0x5c359f,_0x461e8c;return(_0x461e8c=(_0x5c359f=this[_0x5c25a9(0x14c)])==null?void 0x0:_0x5c359f[_0x5c25a9(0x216)])!=null?_0x461e8c:null;}[_0xade8c(0x199)](){const _0x551025=_0xade8c;super[_0x551025(0x199)](),this[_0x551025(0x13d)][_0x551025(0xab)](),this[_0x551025(0x13d)]['complete']();}[_0xade8c(0x17e)](){const _0x26646b=_0xade8c;var _0x1ec21d,_0x8a75f;(_0x1ec21d=this[_0x26646b(0x14c)])==null||_0x1ec21d[_0x26646b(0x18a)]({'cmd':I[_0x26646b(0x308)],'data':{'roomID':this[_0x26646b(0x34b)]}}),this[_0x26646b(0x2b7)][_0x26646b(0x239)](),this[_0x26646b(0x2fa)][_0x26646b(0x239)](),(_0x8a75f=this[_0x26646b(0x14c)])==null||_0x8a75f['close'](),this['dispose']();}[_0xade8c(0x3aa)](_0x9445f9){const _0x2fd48c=_0xade8c;_0x9445f9[_0x2fd48c(0x25f)]===I[_0x2fd48c(0xa8)]?this['_onJoinRoomEvent'](_0x9445f9):_0x9445f9[_0x2fd48c(0x25f)]===I[_0x2fd48c(0x370)]&&this[_0x2fd48c(0x347)](_0x9445f9);}['_joinRoom'](_0x21d843){const _0xee7f40=_0xade8c;this['_sessionStatus$'][_0xee7f40(0xab)](0x1),_0x21d843[_0xee7f40(0x18a)]({'cmd':I[_0xee7f40(0xa8)],'routeKey':this[_0xee7f40(0x34b)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0xade8c(0x274)](_0x142a77){const _0x5537a3=_0xade8c;var _0x5783be;if(_0x142a77[_0x5537a3(0x2d3)]===yt['FAIL']){this['_messageService'][_0x5537a3(0xfa)]({'type':_0x4d4329[_0x5537a3(0x398)],'content':this[_0x5537a3(0x148)]['t'](_0x5537a3(0x221))}),this[_0x5537a3(0x2fa)][_0x5537a3(0xab)](0x2);return;}this[_0x5537a3(0x2fa)]['next'](0x3);const _0x1c4c0f=(_0x5783be=_0x142a77['data']['roomInfos'][this[_0x5537a3(0x34b)]])==null?void 0x0:_0x5783be[_0x5537a3(0x279)];_0x1c4c0f&&_0x1c4c0f[_0x5537a3(0x2f2)](_0x46a7bd=>this['_memberService']['updateMember'](this[_0x5537a3(0x34b)],_0x46a7bd));}[_0xade8c(0x347)](_0x2c0e9f){const _0x24a36b=_0xade8c;try{const _0x28fc1c=_0x2c0e9f[_0x24a36b(0x19b)];switch(_0x28fc1c[_0x24a36b(0x13b)]){case _0x1b9133[_0x24a36b(0x25a)]:this[_0x24a36b(0xca)](_0x28fc1c),this['_event$'][_0x24a36b(0xab)](_0x28fc1c);break;case _0x1b9133[_0x24a36b(0x8b)]:this[_0x24a36b(0x357)](_0x28fc1c),this[_0x24a36b(0x2b7)]['next'](_0x28fc1c);break;case _0x1b9133[_0x24a36b(0x29b)]:this[_0x24a36b(0x1cd)](),this[_0x24a36b(0x2b7)][_0x24a36b(0xab)](_0x28fc1c);break;case _0x1b9133[_0x24a36b(0x1a3)]:this['_logService'][_0x24a36b(0x2cf)](_0x24a36b(0x1d4)+JSON[_0x24a36b(0x2b0)](_0x28fc1c)),this[_0x24a36b(0x2b7)][_0x24a36b(0xab)](_0x28fc1c);break;case _0x1b9133[_0x24a36b(0xdf)]:this['_commentService'][_0x24a36b(0x96)](_0x28fc1c[_0x24a36b(0x19b)]),this[_0x24a36b(0x2b7)][_0x24a36b(0xab)](_0x28fc1c);break;default:this[_0x24a36b(0x2b7)]['next'](_0x28fc1c);}}catch(_0x3c4978){this['_logService']['error'](_0x3c4978,_0x2c0e9f);}}[_0xade8c(0xca)](_0x14cdeb){const _0x1c7178=_0xade8c;this[_0x1c7178(0x311)]['updateMember'](this[_0x1c7178(0x34b)],_0x14cdeb['data']);}[_0xade8c(0x357)](_0x552388){const _0x561f38=_0xade8c;this[_0x561f38(0x311)]['removeMember'](this[_0x561f38(0x34b)],_0x552388[_0x561f38(0x19b)][_0x561f38(0x216)]);}async['send'](_0x5b826d,_0x2adbd8){const _0x22e1d7=_0xade8c;if(this[_0x22e1d7(0x273)]!==0x3||!this[_0x22e1d7(0x14c)])throw new Error(_0x22e1d7(0x231));try{_0x5b826d['eventID']===_0x1b9133['NEW_CHANGESETS']&&this[_0x22e1d7(0x159)](),this[_0x22e1d7(0x14c)]['send']({'cmd':I[_0x22e1d7(0x315)],'routeKey':_0x2adbd8,'routeType':'','data':_0x5b826d});}catch(_0x4b9973){this[_0x22e1d7(0x37f)][_0x22e1d7(0x2cf)](_0x4b9973);}}[_0xade8c(0x159)](){const _0x564789=_0xade8c;var _0x503560;this[_0x564789(0x286)]=window[_0x564789(0x234)](()=>{const _0x4d13f7=_0x564789;this[_0x4d13f7(0x286)]=null,this[_0x4d13f7(0x368)][_0x4d13f7(0xfa)]({'type':_0x4d4329[_0x4d13f7(0xbe)],'content':this[_0x4d13f7(0x148)]['t']('session.collaboration-timeout')});},(_0x503560=this[_0x564789(0x253)]['getConfig'](bs))!=null?_0x503560:Ts);}[_0xade8c(0x1cd)](){const _0x4b0a98=_0xade8c;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x4b0a98(0x286)]),this[_0x4b0a98(0x286)]=null);}};St=Ps([M(0x2,_0x255408),M(0x3,_0x477bf3),M(0x4,_0x48de42),M(0x5,_0x531a6b),M(0x6,_0xd901da(_0x3fbf2b)),M(0x7,_0xd901da(ne)),M(0x8,_0xd901da(Ds))],St);let ge=class extends _0x5297f3{constructor(_0x93a508,_0x6dd421,_0x161d81,_0x4fd5f1,_0x1d5b69,_0x31f97a){const _0x1c0072=_0xade8c;super(),l(this,_0x1c0072(0x2b4),new _0x1a37bf(void 0x0)),l(this,_0x1c0072(0x1c9),new Map()),l(this,_0x1c0072(0x257),new _0x1a37bf(0x0)),l(this,_0x1c0072(0x1ed),this['_status$'][_0x1c0072(0x329)]()),l(this,_0x1c0072(0x26a),!0x1),l(this,_0x1c0072(0x197)),l(this,_0x1c0072(0x2de)),l(this,'_retryConnectingTimer'),l(this,_0x1c0072(0x12e),0x0),(this[_0x1c0072(0xcc)]=_0x93a508,this['_localeService']=_0x6dd421,this['_messageService']=_0x161d81,this[_0x1c0072(0x37f)]=_0x4fd5f1,this['_configService']=_0x1d5b69,this['_socketService']=_0x31f97a);}get[_0xade8c(0x14c)](){const _0xdd0aba=_0xade8c;return this[_0xdd0aba(0x2b4)][_0xdd0aba(0x17d)]();}['dispose'](){const _0x553dc4=_0xade8c;super['dispose'](),this[_0x553dc4(0x1c9)]['forEach'](_0x1be397=>_0x1be397[_0x553dc4(0x199)]()),this['_sessions']['clear'](),this[_0x553dc4(0x257)]['complete']();}async[_0xade8c(0x12b)](_0x1c1923){const _0x49817a=_0xade8c;if(this[_0x49817a(0x1c9)][_0x49817a(0x1e7)](_0x1c1923))return this['_sessions'][_0x49817a(0x275)](_0x1c1923);this[_0x49817a(0x242)]();const _0x569f94=this[_0x49817a(0xcc)][_0x49817a(0x371)](St,_0x1c1923,this[_0x49817a(0x2b4)][_0x49817a(0x329)]());return this[_0x49817a(0x1c9)][_0x49817a(0xbd)](_0x1c1923,_0x569f94),_0x569f94;}[_0xade8c(0x38a)](_0x1db196){const _0x100c5a=_0xade8c;var _0x101697;const _0x2c2a3f=this[_0x100c5a(0x1c9)][_0x100c5a(0x275)](_0x1db196);_0x2c2a3f&&(this[_0x100c5a(0x1c9)][_0x100c5a(0x39d)](_0x1db196),_0x2c2a3f[_0x100c5a(0x17e)]()),this[_0x100c5a(0x1c9)]['size']||(_0x101697=this['_socket'])==null||_0x101697[_0x100c5a(0x17e)]();}['_createSocket'](){const _0xd779f7=_0xade8c;var _0x56f197;const _0x953530=(_0x56f197=this[_0xd779f7(0x253)][_0xd779f7(0x1df)](sn))!=null?_0x56f197:nn;return this[_0xd779f7(0x1b6)][_0xd779f7(0x133)](_0x953530);}[_0xade8c(0x242)](){const _0x10cec3=_0xade8c;try{const _0x28d583=this[_0x10cec3(0x1e5)]();if(_0x28d583){const _0x2d9b02=_0x28d583[_0x10cec3(0x18a)];_0x28d583['send']=_0x410133=>(this['_rescheduleHeartbeatEvent'](),_0x2d9b02[_0x10cec3(0x277)](_0x28d583,[_0x410133])),_0x28d583[_0x10cec3(0x20c)]['subscribe'](_0x5c22b0=>this['_onMessage'](_0x28d583,_0x5c22b0)),_0x28d583[_0x10cec3(0x1bf)][_0x10cec3(0x2fe)](_0x4efd5d(0x1))[_0x10cec3(0xbf)](_0x4928e1=>this[_0x10cec3(0x37f)]['error'](_0x10cec3(0x28a),_0x4928e1)),_0x28d583['open$']['pipe'](_0x4efd5d(0x1))['subscribe'](()=>{this['_onConnectionOpen'](_0x28d583);}),_0x28d583[_0x10cec3(0x285)][_0x10cec3(0x2fe)](_0x4efd5d(0x1))[_0x10cec3(0xbf)](_0x4daaf4=>{const _0x4be295=_0x10cec3;this[_0x4be295(0x37f)][_0x4be295(0x180)]('[CollaborationSessionService]',_0x4be295(0x149),_0x4daaf4),this[_0x4be295(0x38b)]();});}}catch(_0x497487){this[_0x10cec3(0x37f)][_0x10cec3(0x2cf)](_0x497487),this[_0x10cec3(0x38b)]();}}[_0xade8c(0x160)](_0x216336){const _0x1a094c=_0xade8c;this['_logService'][_0x1a094c(0x180)](_0x1a094c(0x248),_0x1a094c(0x2e3)),_0x216336[_0x1a094c(0x18a)]({'cmd':I[_0x1a094c(0x219)]}),this[_0x1a094c(0x260)]();}[_0xade8c(0x38b)](){const _0x38cdc8=_0xade8c;var _0x105394;this[_0x38cdc8(0x257)][_0x38cdc8(0xab)](0x2),this['_socket$']['next'](null),this['_clearTimeoutTimer'](),this[_0x38cdc8(0x236)](),this[_0x38cdc8(0x26a)]=!0x1,this[_0x38cdc8(0x12e)]<((_0x105394=this[_0x38cdc8(0x253)][_0x38cdc8(0x1df)](hn))!=null?_0x105394:ln)?(this['_scheduleReconnection'](this[_0x38cdc8(0x12e)]),this[_0x38cdc8(0x12e)]+=0x1):this[_0x38cdc8(0x368)][_0x38cdc8(0xfa)]({'type':_0x4d4329[_0x38cdc8(0xbe)],'content':this['_localeService']['t'](_0x38cdc8(0x11c))});}[_0xade8c(0x1b5)](_0x4dda43){const _0x196abe=_0xade8c;var _0x46d726;const _0xac68b=((_0x46d726=this[_0x196abe(0x253)][_0x196abe(0x1df)](an))!=null?_0x46d726:cn)*0x2**_0x4dda43;this[_0x196abe(0x368)][_0x196abe(0xfa)]({'type':_0x4d4329['Warning'],'content':this['_localeService']['t']('session.will-retry')}),this[_0x196abe(0x26d)]=setTimeout(()=>{const _0x4759f1=_0x196abe;this[_0x4759f1(0x242)](),clearTimeout(this[_0x4759f1(0x26d)]),this['_retryConnectingTimer']=null;},_0xac68b);}[_0xade8c(0x260)](){const _0x102aa8=_0xade8c;var _0x46fc26;this[_0x102aa8(0x236)](),this[_0x102aa8(0x197)]=setTimeout(()=>this[_0x102aa8(0x2da)](),(_0x46fc26=this[_0x102aa8(0x253)][_0x102aa8(0x1df)](rn))!=null?_0x46fc26:on);}[_0xade8c(0x2da)](){const _0x28b203=_0xade8c;this[_0x28b203(0x14c)][_0x28b203(0x18a)]({'cmd':I[_0x28b203(0x1eb)]}),this['_waitForHeartbeatResponse']();}[_0xade8c(0x382)](){const _0x5803f7=_0xade8c;var _0x19c4c2;this[_0x5803f7(0x2de)]=setTimeout(()=>this[_0x5803f7(0x38b)](),(_0x19c4c2=this[_0x5803f7(0x253)][_0x5803f7(0x1df)](bs))!=null?_0x19c4c2:Ts);}[_0xade8c(0x1ea)](_0x46b920,_0x14e17d){const _0x35ff9b=_0xade8c,{cmd:_0x437575}=_0x14e17d;_0x437575===I[_0x35ff9b(0x219)]&&!this[_0x35ff9b(0x26a)]&&(_0x46b920[_0x35ff9b(0x216)]=_0x14e17d[_0x35ff9b(0x19b)][_0x35ff9b(0x216)],this['_socket$'][_0x35ff9b(0xab)](_0x46b920),this['_status$'][_0x35ff9b(0xab)](0x3),this[_0x35ff9b(0x26a)]=!0x0),_0x437575===I[_0x35ff9b(0x1eb)]&&this['_clearTimeoutTimer'](),this[_0x35ff9b(0x260)]();}[_0xade8c(0x236)](){const _0x1c47fc=_0xade8c;this[_0x1c47fc(0x197)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x1c47fc(0x197)]=null);}[_0xade8c(0x127)](){const _0x57e3f7=_0xade8c;this[_0x57e3f7(0x2de)]!=null&&(clearTimeout(this[_0x57e3f7(0x2de)]),this['_timeoutTimer']=null);}};ge=Ps([M(0x0,_0xd901da(_0x3c61ae)),M(0x1,_0xd901da(_0x3fbf2b)),M(0x2,_0x48de42),M(0x3,_0x255408),M(0x4,_0x531a6b),M(0x5,Os)],ge);var wn=Object[_0xade8c(0x36b)],Nn=Object['getOwnPropertyDescriptor'],Mn=(_0x3d7949,_0x53476a,_0x5f9b89,_0x504fde)=>{const _0x5ad7a5=_0xade8c;for(var _0x545046=_0x504fde>0x1?void 0x0:_0x504fde?Nn(_0x53476a,_0x5f9b89):_0x53476a,_0x1144fe=_0x3d7949[_0x5ad7a5(0x331)]-0x1,_0xae66f6;_0x1144fe>=0x0;_0x1144fe--)(_0xae66f6=_0x3d7949[_0x1144fe])&&(_0x545046=(_0x504fde?_0xae66f6(_0x53476a,_0x5f9b89,_0x545046):_0xae66f6(_0x545046))||_0x545046);return _0x504fde&&_0x545046&&wn(_0x53476a,_0x5f9b89,_0x545046),_0x545046;},Ce=(_0x5cff04,_0x2c8066)=>(_0x3a951f,_0x5e5617)=>_0x2c8066(_0x3a951f,_0x5e5617,_0x5cff04);let D=class extends _0x5297f3{constructor(_0x2e9de0,_0x299797,_0x43c333,_0x39ca4b,_0xb9e059){const _0x822978=_0xade8c;super(),l(this,_0x822978(0x13f),new Map()),l(this,_0x822978(0x243),new Map()),l(this,'_disabled',!0x1),(this[_0x822978(0x253)]=_0x2e9de0,this['_localStorageService']=_0x299797,this[_0x822978(0x272)]=_0x43c333,this['_localeService']=_0x39ca4b,this[_0x822978(0x30a)]=_0xb9e059,this[_0x822978(0x295)]());}[_0xade8c(0x164)](){const _0x3077e5=_0xade8c;this[_0x3077e5(0x26b)]=!0x0;}[_0xade8c(0x3ab)](){const _0x10573a=_0xade8c;this[_0x10573a(0x26b)]=!0x1;}['dispose'](){const _0x42f673=_0xade8c;this[_0x42f673(0x163)]()[_0x42f673(0x2dd)](()=>super[_0x42f673(0x199)]());}async[_0xade8c(0x1c1)](_0x561713){const _0xbbbb28=_0xade8c;return this[_0xbbbb28(0x26b)]?null:this[_0xbbbb28(0x121)]['getItem'](Xt(_0x561713));}async[_0xade8c(0x2f9)](_0xb78ddb,_0x3eacaa){const _0x4e0816=_0xade8c;return!!this['_localStorageService'][_0x4e0816(0x284)](_0xb78ddb,_0x3eacaa);}['updateOfflineData'](_0x4b093,_0x352f81,_0xe733ad,_0x32a301){const _0xe5ab94=_0xade8c,_0x1a6ace=this[_0xe5ab94(0x30a)][_0xe5ab94(0x7e)](_0x4b093);this[_0xe5ab94(0x13f)]['set'](_0x4b093,{'unitID':_0x4b093,'type':_0x352f81,'awaitingChangeset':_0xe733ad,'mutations':_0x32a301,'rev':_0x1a6ace}),this[_0xe5ab94(0x243)][_0xe5ab94(0x1e7)](_0x4b093)||this[_0xe5ab94(0x173)](_0x4b093);}['_scheduleSaving'](_0x3b6dc1){const _0x245349=_0xade8c,_0x191cd0=this['_getSaveTimeout']();_0x191cd0===0x0?this[_0x245349(0x384)](_0x3b6dc1):this[_0x245349(0x243)][_0x245349(0xbd)](_0x3b6dc1,setTimeout(()=>this[_0x245349(0x384)](_0x3b6dc1),_0x191cd0));}[_0xade8c(0x9f)](){const _0x1b8f80=_0xade8c;var _0x4d1ce1;return(_0x4d1ce1=this[_0x1b8f80(0x253)][_0x1b8f80(0x1df)](_n))!=null?_0x4d1ce1:un;}[_0xade8c(0x384)](_0x58948e){const _0x594b5c=_0xade8c,_0x434b5b=this[_0x594b5c(0x243)][_0x594b5c(0x275)](_0x58948e);return _0x434b5b!==void 0x0&&window[_0x594b5c(0xc0)](_0x434b5b),this[_0x594b5c(0x121)][_0x594b5c(0x284)](Xt(_0x58948e),this[_0x594b5c(0x13f)][_0x594b5c(0x275)](_0x58948e))['then'](()=>this['_saveTaskMap']['delete'](_0x58948e));}async[_0xade8c(0x163)](){const _0x6eab45=_0xade8c,_0x161866=[];this[_0x6eab45(0x243)][_0x6eab45(0x2f2)]((_0x194786,_0x226505)=>{const _0x28bca3=_0x6eab45;window['clearTimeout'](_0x194786),_0x161866[_0x28bca3(0x142)](this[_0x28bca3(0x384)](_0x226505)['then'](()=>{const _0x2a2b06=_0x28bca3;this[_0x2a2b06(0x243)][_0x2a2b06(0x39d)](_0x226505);}));}),await Promise[_0x6eab45(0x342)](_0x161866);}[_0xade8c(0x295)](){const _0x3ab17f=_0xade8c;this[_0x3ab17f(0x1f1)](this['_beforeCloseService'][_0x3ab17f(0x101)](()=>{const _0x453e09=_0x3ab17f;if(this['_saveTaskMap'][_0x453e09(0x337)])return this['_localeService']['t'](_0x453e09(0x288));}));}};D=Mn([Ce(0x0,_0x531a6b),Ce(0x1,_0x944e2d),Ce(0x2,_0x477bf3),Ce(0x3,_0xd901da(_0x3fbf2b)),Ce(0x4,_0xd901da(_0x432311))],D);function Xt(_0x2e4aea){const _0x14c20e=_0xade8c;return _0x14c20e(0x32f)+_0x2e4aea;}const et=_0xc3d169(_0xade8c(0x2d6));var ws=(_0x58dc43=>(_0x58dc43[_0x58dc43[_0xade8c(0x2e1)]=0x0]=_0xade8c(0x2e1),_0x58dc43[_0x58dc43['OTHER_CLIENTS_EDITING']=0x1]=_0xade8c(0x30c),_0x58dc43))(ws||{});const Jt=0x7530,qt='ACTIVE_UNIT_EVENT_CHANNEL';class An extends _0x5297f3{constructor(){const _0x2e0d38=_0xade8c;super(),l(this,_0x2e0d38(0x1e0),_0x398800['generateRandomId']()),l(this,_0x2e0d38(0x21b),new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x2e0d38(0x2f1),null),l(this,_0x2e0d38(0x139),new Map()),l(this,_0x2e0d38(0x1da),new Map()),this['_init']();}['dispose'](){const _0x167cad=_0xade8c;super['dispose'](),this[_0x167cad(0x139)]['forEach']((_0x230d3b,_0x36f397)=>this[_0x167cad(0x198)](_0x36f397)),this[_0x167cad(0x2f1)]&&window['clearInterval'](this[_0x167cad(0x2f1)]);}[_0xade8c(0x1be)](_0x4ce6da){return this['_ensureSubject'](_0x4ce6da)['pipe'](_0x3cc420());}[_0xade8c(0x128)](_0x51ddf6){const _0x1fbfe0=_0xade8c;this[_0x1fbfe0(0x21b)][_0x1fbfe0(0x337)]===0x0&&this[_0x1fbfe0(0x1f3)](),this['_selfUnitIDs'][_0x1fbfe0(0x21f)](_0x51ddf6),this[_0x1fbfe0(0xf1)]({'type':0x0,'memberID':this[_0x1fbfe0(0x1e0)],'unitIDs':[_0x51ddf6],'isForwarded':!0x1});}['disposeUnit'](_0x6cedfb){const _0x309282=_0xade8c;this[_0x309282(0x21b)][_0x309282(0x39d)](_0x6cedfb),this[_0x309282(0x21b)]['size']===0x0&&this[_0x309282(0x2f1)]&&window[_0x309282(0x2f5)](this[_0x309282(0x2f1)]);}['_init'](){const _0x324291=_0xade8c;this['disposeWithMe'](_0x45cb21(_0x52fa92(window,_0x324291(0x2b3))[_0x324291(0xbf)](_0x226cd7=>{const _0x53d723=_0x324291;if(_0x226cd7['key']!==qt||!_0x226cd7[_0x53d723(0x28b)])return;const _0x15df89=JSON['parse'](_0x226cd7['newValue']);this[_0x53d723(0x224)](_0x15df89);}))),window['addEventListener'](_0x324291(0x111),()=>this['_send']({'type':0x1,'memberID':this[_0x324291(0x1e0)],'unitIDs':Array[_0x324291(0x310)](this[_0x324291(0x21b)])}));}[_0xade8c(0x224)](_0x238693){const _0x2368cd=_0xade8c;switch(_0x238693[_0x2368cd(0x207)]){case 0x0:this['_handleJoinEvent'](_0x238693);break;case 0x1:this[_0x2368cd(0x339)](_0x238693);break;case 0x2:this[_0x2368cd(0x211)](_0x238693);break;}}['_handleJoinEvent'](_0x267161){const _0x1383ea=_0xade8c,{unitIDs:_0x5db4e2,memberID:_0x23083b,isForwarded:_0x27847a}=_0x267161;_0x5db4e2[_0x1383ea(0x2f2)](_0x2a211d=>{const _0xc766bd=_0x1383ea;if(!_0x27847a&&this[_0xc766bd(0x1fb)][_0xc766bd(0x1e7)](_0x2a211d)&&this[_0xc766bd(0x184)](_0x2a211d)['next'](0x1),!this[_0xc766bd(0x1fb)]['has'](_0x2a211d)||!this[_0xc766bd(0x1fb)][_0xc766bd(0x275)](_0x2a211d)['has'](_0x23083b)){const _0x533ea1=this['_unitOnClients']['get'](_0x2a211d)||new Set();_0x533ea1[_0xc766bd(0x21f)](_0x23083b),this[_0xc766bd(0x1fb)]['set'](_0x2a211d,_0x533ea1),this[_0xc766bd(0x30f)](_0x23083b);}}),_0x27847a||this[_0x1383ea(0xf1)]({'type':0x0,'memberID':this[_0x1383ea(0x1e0)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x30912b){const _0x7e0db3=_0xade8c;this[_0x7e0db3(0x198)](_0x30912b);const _0x22f94b=window[_0x7e0db3(0x234)](()=>{const _0xa1f496=_0x7e0db3;this[_0xa1f496(0x1fb)][_0xa1f496(0x2f2)](_0x1f0621=>{const _0x316a0f=_0xa1f496;_0x1f0621[_0x316a0f(0x39d)](_0x30912b);});},Jt*0x2);this[_0x7e0db3(0x139)]['set'](_0x30912b,_0x22f94b);}[_0xade8c(0x198)](_0x511956){const _0x1690e0=_0xade8c;if(this[_0x1690e0(0x139)]['has'](_0x511956)){const _0x432761=this[_0x1690e0(0x139)][_0x1690e0(0x275)](_0x511956);_0x432761&&window['clearTimeout'](_0x432761),this[_0x1690e0(0x139)][_0x1690e0(0xbd)](_0x511956,null);}}[_0xade8c(0x339)](_0x49499f){const _0x311efa=_0xade8c,{memberID:_0x3d8451,unitIDs:_0x3e10b7}=_0x49499f;_0x3e10b7[_0x311efa(0x2f2)](_0x492fb=>{const _0x2f4ec6=_0x311efa;var _0x21816a;const _0x58f307=this[_0x2f4ec6(0x1fb)][_0x2f4ec6(0x275)](_0x492fb);_0x58f307&&(_0x58f307[_0x2f4ec6(0x39d)](_0x3d8451),(_0x21816a=this[_0x2f4ec6(0x184)](_0x492fb))==null||_0x21816a[_0x2f4ec6(0xab)](_0x58f307[_0x2f4ec6(0x337)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x3d8451);}[_0xade8c(0x211)](_0x4c275f){const _0x5d1e9e=_0xade8c;this[_0x5d1e9e(0x30f)](_0x4c275f['memberID']);}[_0xade8c(0xf1)](_0x1df58e){const _0x37c3e1=_0xade8c;localStorage[_0x37c3e1(0x284)](qt,JSON[_0x37c3e1(0x2b0)](_0x1df58e));}[_0xade8c(0x1f3)](){const _0x1fc84f=_0xade8c;this['_heartbeatTimer']=window[_0x1fc84f(0x269)](()=>{const _0x47b496=_0x1fc84f;this[_0x47b496(0xf1)]({'type':0x2,'memberID':this[_0x47b496(0x1e0)]});},Jt);}[_0xade8c(0x184)](_0x2afa1d){const _0x54e14c=_0xade8c;return this[_0x54e14c(0x1da)][_0x54e14c(0x1e7)](_0x2afa1d)||this['_unitStatus']['set'](_0x2afa1d,new _0x1a37bf(0x0)),this[_0x54e14c(0x1da)][_0x54e14c(0x275)](_0x2afa1d);}}var yn=Object['defineProperty'],Un=Object[_0xade8c(0x22b)],Ln=(_0x244d15,_0x16b13f,_0x5b08f5,_0x549a36)=>{const _0x15bca9=_0xade8c;for(var _0x12c8f2=_0x549a36>0x1?void 0x0:_0x549a36?Un(_0x16b13f,_0x5b08f5):_0x16b13f,_0x15fc01=_0x244d15[_0x15bca9(0x331)]-0x1,_0x21d968;_0x15fc01>=0x0;_0x15fc01--)(_0x21d968=_0x244d15[_0x15fc01])&&(_0x12c8f2=(_0x549a36?_0x21d968(_0x16b13f,_0x5b08f5,_0x12c8f2):_0x21d968(_0x12c8f2))||_0x12c8f2);return _0x549a36&&_0x12c8f2&&yn(_0x16b13f,_0x5b08f5,_0x12c8f2),_0x12c8f2;},zt=(_0x4a2b89,_0x3f60c6)=>(_0x1dca1c,_0x247ef7)=>_0x3f60c6(_0x1dca1c,_0x247ef7,_0x4a2b89);let Xe=class{constructor(_0xe274b1,_0x16621e){this['_injector']=_0xe274b1,this['_transformService']=_0x16621e;}[_0xade8c(0x105)](_0x430bfb){const _0x3ebb69=_0xade8c;this[_0x3ebb69(0xce)](_0x430bfb),this[_0x3ebb69(0x84)](_0x430bfb);}[_0xade8c(0x17a)](_0x4be85c){const _0x43e9df=_0xade8c,_0x107255=this['_injector']['get'](_0x42fcd8),{redoCache:_0x4761ed}=_0x107255[_0x43e9df(0x237)]();if(_0x4761ed[_0x43e9df(0x331)]===0x0)return _0x4be85c;let _0x55e778=_0x398800[_0x43e9df(0x383)](_0x4be85c[_0x43e9df(0xf5)][0x0]);for(let _0x2cdff=0x0;_0x2cdff<_0x4761ed[_0x43e9df(0x331)];_0x2cdff++){const _0x160bcc={'id':_0x43e9df(0x39b),'params':{..._0x4761ed[_0x2cdff]}},_0xd82501=this[_0x43e9df(0x8e)][_0x43e9df(0xaa)](_0x55e778,_0x160bcc,!0x1);if(_0x1054d7(_0xd82501))throw _0xd82501[_0x43e9df(0x2cf)];_0x55e778=_0xd82501[_0x43e9df(0x16b)];}return{..._0x398800[_0x43e9df(0x383)](_0x4be85c),'mutations':[_0x55e778]};}[_0xade8c(0xce)](_0x304bec){const _0x354c16=_0xade8c,_0x262563=this['_injector'][_0x354c16(0x275)](_0x42fcd8),{undoCache:_0x348d9d,redoCache:_0x247af0}=_0x262563[_0x354c16(0x237)]();if(_0x348d9d['length']===0x0||_0x247af0[_0x354c16(0x331)]===0x0)return;const _0x1521e6=[],_0x92ee78=[];let _0x511c80=_0x398800['deepClone'](_0x304bec[_0x354c16(0xf5)][0x0]),_0x5ed1d8=_0x398800[_0x354c16(0x383)](_0x304bec[_0x354c16(0xf5)][0x0]);for(let _0x2c7216=_0x348d9d[_0x354c16(0x331)]-0x1;_0x2c7216>=0x0;_0x2c7216--){const _0x1a49c9={'id':_0x354c16(0x39b),'params':{..._0x348d9d[_0x2c7216]}},_0x3b687b={'id':_0x354c16(0x39b),'params':{..._0x247af0[_0x2c7216]}},_0x3df178=this[_0x354c16(0x8e)][_0x354c16(0xaa)](_0x511c80,_0x1a49c9,!0x1),_0x443b84=this[_0x354c16(0x8e)]['transformMutation'](_0x5ed1d8,_0x3b687b,!0x1);if(_0x1054d7(_0x3df178))throw _0x3df178[_0x354c16(0x2cf)];if(_0x1054d7(_0x443b84))throw _0x443b84[_0x354c16(0x2cf)];_0x1521e6[_0x354c16(0x14a)](_0x3df178[_0x354c16(0x244)][_0x354c16(0x27a)]),_0x92ee78[_0x354c16(0x14a)](_0x443b84[_0x354c16(0x244)][_0x354c16(0x27a)]),_0x511c80=_0x3df178[_0x354c16(0x16b)],_0x5ed1d8=_0x443b84[_0x354c16(0x16b)];}_0x262563[_0x354c16(0x9a)]({'undoCache':_0x1521e6,'redoCache':_0x92ee78});}[_0xade8c(0x84)](_0x11a583){const _0x5a114c=_0xade8c,_0x599849=this['_injector']['get'](_0x42fcd8),_0x210d52=_0x599849[_0x5a114c(0x2a3)]();if(_0x210d52==null)return;const _0x8d6817=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x11a583[_0x5a114c(0x14d)],'actions':null,'textRanges':[_0x210d52]}}],_0x1a69b8=this[_0x5a114c(0x8e)][_0x5a114c(0x392)](_0x11a583,_0x8d6817);if(!_0x504c1f(_0x1a69b8))throw _0x1a69b8[_0x5a114c(0x2cf)];const _0xc3d9ff=_0x1a69b8[_0x5a114c(0x244)][0x0][_0x5a114c(0x27a)][_0x5a114c(0x22f)];Array[_0x5a114c(0xc9)](_0xc3d9ff)&&_0xc3d9ff['length']&&_0x599849[_0x5a114c(0x166)](_0xc3d9ff[0x0]);}};Xe=Ln([zt(0x0,_0xd901da(_0x3c61ae)),zt(0x1,_0x581964)],Xe);var $n=Object[_0xade8c(0x36b)],jn=Object[_0xade8c(0x22b)],Hn=(_0x6b3b49,_0x15ce14,_0xec830,_0x3af955)=>{for(var _0x44f2e4=_0x3af955>0x1?void 0x0:_0x3af955?jn(_0x15ce14,_0xec830):_0x15ce14,_0x5abb4c=_0x6b3b49['length']-0x1,_0xf8ac5e;_0x5abb4c>=0x0;_0x5abb4c--)(_0xf8ac5e=_0x6b3b49[_0x5abb4c])&&(_0x44f2e4=(_0x3af955?_0xf8ac5e(_0x15ce14,_0xec830,_0x44f2e4):_0xf8ac5e(_0x44f2e4))||_0x44f2e4);return _0x3af955&&_0x44f2e4&&$n(_0x15ce14,_0xec830,_0x44f2e4),_0x44f2e4;},Zt=(_0x411673,_0x1a0ccb)=>(_0x90df26,_0x34f2be)=>_0x1a0ccb(_0x90df26,_0x34f2be,_0x411673);let Je=class{constructor(_0x3ccf47,_0x43bc65){const _0x37e7f0=_0xade8c;this['_injector']=_0x3ccf47,this[_0x37e7f0(0x8e)]=_0x43bc65;}[_0xade8c(0x2f4)](_0x296c52){const _0x1a355d=_0xade8c;var _0x487946;const _0x3b422f=this['_injector'][_0x1a355d(0x275)](_0x33f09e),_0x5ca76a=(_0x487946=_0x3b422f[_0x1a355d(0x200)]())!=null?_0x487946:[],_0x189596=_0x5ca76a==null?void 0x0:_0x5ca76a[_0x1a355d(0x39e)](_0x5b7fb3);if(_0x189596[_0x1a355d(0x331)]===0x0)return;const _0x402d42=[{'id':_0x1a355d(0x39b),'params':{'unitId':_0x296c52[_0x1a355d(0x14d)],'actions':null,'textRanges':_0x189596}}],_0x978c8c=this['_transformService'][_0x1a355d(0x392)](_0x296c52,_0x402d42);if(!_0x504c1f(_0x978c8c))throw _0x978c8c['error'];const _0x29d1cc=_0x978c8c[_0x1a355d(0x244)][0x0]['params'][_0x1a355d(0x22f)];Array[_0x1a355d(0xc9)](_0x29d1cc)&&_0x29d1cc[_0x1a355d(0x331)]&&_0x3b422f[_0x1a355d(0x291)](_0x29d1cc,!0x1);}};Je=Hn([Zt(0x0,_0xd901da(_0x3c61ae)),Zt(0x1,_0x581964)],Je);function Ns(_0x42607d){const _0x48d54a=_0xade8c;let _0x2067d3='';for(const _0x57c6a2 of _0x42607d){const {startOffset:_0x6c8340,endOffset:_0x2aca13,isActive:_0x1615b5}=_0x57c6a2;_0x2067d3[_0x48d54a(0x331)]&&(_0x2067d3+=','),_0x2067d3+=_0x6c8340+':'+_0x2aca13+':'+(_0x1615b5?'1':'0');}return _0x2067d3;}function xn(_0xae30d4){const _0x2f85f1=_0xade8c,_0x3dbda6=_0xae30d4[_0x2f85f1(0x18c)](','),_0x1b3446=[];for(const _0x4acd12 of _0x3dbda6){const [_0xabed75,_0x5cb806,_0x186469]=_0x4acd12[_0x2f85f1(0x18c)](':');_0x1b3446[_0x2f85f1(0x142)]({'startOffset':Number(_0xabed75),'endOffset':Number(_0x5cb806),'collapsed':_0xabed75===_0x5cb806,'isActive':_0x186469==='1'});}return _0x1b3446[_0x2f85f1(0x2fb)](_0x563a1e=>_0x563a1e['isActive'])||(_0x1b3446[0x0]['isActive']=!0x0),_0x1b3446;}class Ut extends _0x3fb7e3{constructor(){const _0x5353d4=_0xade8c;super(...arguments),l(this,_0x5353d4(0x3a4),new _0x1a37bf(null)),l(this,_0x5353d4(0x144),this[_0x5353d4(0x3a4)][_0x5353d4(0x329)]());}[_0xade8c(0x297)](_0x2c1ccb){const _0x278c70=_0xade8c,{unitID:_0x5bc552,memberID:_0x36e805,textRanges:_0x2b6e82}=_0x2c1ccb,_0x2acc63=Ns(_0x2b6e82),_0x3482bf={'unitID':_0x5bc552,'memberID':_0x36e805,'selection':_0x2acc63};this['_collabCursorState$'][_0x278c70(0xab)](_0x3482bf);}}var Fn=Object[_0xade8c(0x36b)],Vn=Object[_0xade8c(0x22b)],Bn=(_0x4247b2,_0x5ba632,_0x55283e,_0x2332b6)=>{const _0x56d668=_0xade8c;for(var _0x300343=_0x2332b6>0x1?void 0x0:_0x2332b6?Vn(_0x5ba632,_0x55283e):_0x5ba632,_0x4ce389=_0x4247b2[_0x56d668(0x331)]-0x1,_0x34c8e7;_0x4ce389>=0x0;_0x4ce389--)(_0x34c8e7=_0x4247b2[_0x4ce389])&&(_0x300343=(_0x2332b6?_0x34c8e7(_0x5ba632,_0x55283e,_0x300343):_0x34c8e7(_0x300343))||_0x300343);return _0x2332b6&&_0x300343&&Fn(_0x5ba632,_0x55283e,_0x300343),_0x300343;},Qt=(_0x2ab113,_0x32470e)=>(_0xfdbb06,_0x8b375b)=>_0x32470e(_0xfdbb06,_0x8b375b,_0x2ab113);function kn(_0x9f407d){const _0x366065=_0xade8c,{unitID:_0x4ccdaf,mutations:_0x43b054}=_0x9f407d;return{'unitId':_0x4ccdaf,'subUnitId':_0x43b054[0x0][_0x366065(0x27a)][_0x366065(0x205)]};}let qe=class{constructor(_0x22cec8,_0x54dc63){this['_injector']=_0x22cec8,this['_transformService']=_0x54dc63;}[_0xade8c(0x2f4)](_0x49f737){const _0x22586d=_0xade8c;var _0x1c6ec9,_0x3138df,_0x1c07c3;const _0x3baf10=this[_0x22586d(0xcc)][_0x22586d(0x275)](_0x49acad),{unitId:_0x3fffab,subUnitId:_0x41e53f}=kn(_0x49f737),_0x1e2deb=_0x3baf10[_0x22586d(0x106)](_0x3fffab)[_0x22586d(0x200)]();if(_0x1e2deb[_0x22586d(0x331)]===0x0||!_0x3fffab||!_0x41e53f)return;const _0x40e612=[{'id':_0x45efda['id'],'params':{'unitId':_0x3fffab,'subUnitId':_0x41e53f,'selections':_0x398800['deepClone'](_0x1e2deb)}}],_0x589fb3=this[_0x22586d(0x8e)][_0x22586d(0x392)](_0x49f737,_0x40e612);if(!_0x504c1f(_0x589fb3))throw _0x589fb3[_0x22586d(0x2cf)];const _0x31e18e=(_0x1c07c3=(_0x3138df=(_0x1c6ec9=_0x589fb3[_0x22586d(0x244)][0x0])==null?void 0x0:_0x1c6ec9[_0x22586d(0x27a)])==null?void 0x0:_0x3138df[_0x22586d(0xb3)])!=null?_0x1c07c3:_0x1e2deb;Array[_0x22586d(0xc9)](_0x31e18e)&&_0x31e18e[_0x22586d(0x331)]&&this[_0x22586d(0xcc)][_0x22586d(0x275)](_0x3f64f1)['executeCommand'](_0x45efda['id'],{'unitId':_0x3fffab,'subUnitId':_0x41e53f,'selections':_0x31e18e});}};qe=Bn([Qt(0x0,_0xd901da(_0x3c61ae)),Qt(0x1,_0x581964)],qe);const Wn=new Set([_0x4fe9a1['id']]);function Gn(_0x18de21,_0x5524de,_0x277a62,_0x4d0548,_0x3dd1ec){const _0x5b2734=_0xade8c;var _0x49612d,_0xd13e47,_0x15b946,_0x9b6d9b;const _0x3c889b=[];for(const _0x90e587 of _0x18de21)if(Wn[_0x5b2734(0x1e7)](_0x90e587['id'])){if(_0x3c889b[_0x5b2734(0x331)]>0x0)break;_0x3c889b[_0x5b2734(0x142)](_0x90e587);break;}else _0x3c889b[_0x5b2734(0x142)](_0x90e587);const _0x4b106b=(_0xd13e47=(_0x49612d=_0x3dd1ec[_0x5b2734(0x31f)]())==null?void 0x0:_0x49612d[_0x5b2734(0xc8)])!=null?_0xd13e47:_0x5b2734(0xc2),_0x5a5ba1=(_0x9b6d9b=(_0x15b946=_0x3dd1ec[_0x5b2734(0x31f)]())==null?void 0x0:_0x15b946[_0x5b2734(0x216)])!=null?_0x9b6d9b:_0x5b2734(0xc2);return{'changeset':{'unitID':_0x5524de,'type':_0x19393c(_0x277a62[_0x5b2734(0x91)](_0x5524de)),'baseRev':_0x4d0548['getCurrentRevForDocument'](_0x5524de),'revision':0x0,'userID':_0x4b106b,'memberID':_0x5a5ba1,'mutations':_0x3c889b},'pendingMutations':_0x18de21[_0x5b2734(0x1e9)](_0x3c889b[_0x5b2734(0x331)])};}function Yn(_0x221371,_0x3db61c,_0x1dde23,_0x391f8e,_0xe57557){const _0x2176cd=_0xade8c;var _0x1f6945,_0x24e15c,_0x169f5f,_0x3f30b9;const _0x41505d=[_0x221371[_0x2176cd(0x214)]((_0x3f40bd,_0x375557)=>{const _0x47c5df=_0x2176cd;var _0x5e5ece;const {id:_0x4a0b35}=_0x3f40bd,{id:_0x42d702,type:_0x342eda}=_0x375557,_0x1085b1=(_0x5e5ece=_0x3f40bd['params'])!=null?_0x5e5ece:{'actions':null},_0x1e0b20=_0x375557[_0x47c5df(0x27a)];if(_0x4a0b35&&_0x4a0b35!==_0x42d702)throw new Error(_0x47c5df(0x270)+_0x4a0b35+_0x47c5df(0x372)+_0x42d702+'.');return{..._0x3f40bd,'id':_0x42d702,'type':_0x342eda,'params':{'unitId':_0x1e0b20[_0x47c5df(0x158)],'textRanges':_0x1e0b20['textRanges'],'actions':_0x5d1c82[_0x47c5df(0x1e6)](_0x1085b1[_0x47c5df(0x2ba)],_0x1e0b20['actions'])}};},{})],_0x51f46f=(_0x24e15c=(_0x1f6945=_0xe57557[_0x2176cd(0x31f)]())==null?void 0x0:_0x1f6945[_0x2176cd(0xc8)])!=null?_0x24e15c:'unknown',_0x178ccf=(_0x3f30b9=(_0x169f5f=_0xe57557[_0x2176cd(0x31f)]())==null?void 0x0:_0x169f5f[_0x2176cd(0x216)])!=null?_0x3f30b9:'unknown';return{'changeset':{'unitID':_0x3db61c,'type':_0x19393c(_0x1dde23['getUnitType'](_0x3db61c)),'baseRev':_0x391f8e[_0x2176cd(0x7e)](_0x3db61c),'revision':0x0,'userID':_0x51f46f,'memberID':_0x178ccf,'mutations':_0x41505d},'pendingMutations':[]};}var Kn=Object['defineProperty'],Xn=Object[_0xade8c(0x22b)],oe=(_0x1b182b,_0x1afebf,_0x4af33c,_0x286b9e)=>{const _0x1ecb93=_0xade8c;for(var _0x2c7520=_0x286b9e>0x1?void 0x0:_0x286b9e?Xn(_0x1afebf,_0x4af33c):_0x1afebf,_0x57f282=_0x1b182b[_0x1ecb93(0x331)]-0x1,_0x5e8c3a;_0x57f282>=0x0;_0x57f282--)(_0x5e8c3a=_0x1b182b[_0x57f282])&&(_0x2c7520=(_0x286b9e?_0x5e8c3a(_0x1afebf,_0x4af33c,_0x2c7520):_0x5e8c3a(_0x2c7520))||_0x2c7520);return _0x286b9e&&_0x2c7520&&Kn(_0x1afebf,_0x4af33c,_0x2c7520),_0x2c7520;},m=(_0x2c56cd,_0x55856d)=>(_0x458f21,_0x310e39)=>_0x55856d(_0x458f21,_0x310e39,_0x2c56cd),w=(_0x1d9dd3=>(_0x1d9dd3['NOT_COLLAB']=_0xade8c(0x1dc),_0x1d9dd3[_0xade8c(0xd0)]='synced',_0x1d9dd3[_0xade8c(0x116)]=_0xade8c(0x29a),_0x1d9dd3[_0xade8c(0x324)]=_0xade8c(0xcb),_0x1d9dd3[_0xade8c(0x22e)]=_0xade8c(0x169),_0x1d9dd3[_0xade8c(0x31d)]=_0xade8c(0x3ae),_0x1d9dd3['CONFLICT']=_0xade8c(0x187),_0x1d9dd3[_0xade8c(0x262)]=_0xade8c(0xcd),_0x1d9dd3))(w||{});class ae{constructor(_0x349fb6,_0x3c17b3,_0xa4f4ef,_0x2d5fc1,_0x1e40ff,_0x5a2acf,_0x12846b,_0x52b0ce,_0x1d1207){const _0x4d9c95=_0xade8c;l(this,'_awaitingChangeset',null),l(this,_0x4d9c95(0x34a),[]),(this[_0x4d9c95(0x14d)]=_0x349fb6,this[_0x4d9c95(0x207)]=_0x3c17b3,this[_0x4d9c95(0x289)]=_0x1e40ff,this[_0x4d9c95(0x1ba)]=_0x5a2acf,this[_0x4d9c95(0x240)]=_0x12846b,this[_0x4d9c95(0x30a)]=_0x52b0ce,this[_0x4d9c95(0xf7)]=_0x1d1207,this['_awaitingChangeset']=_0xa4f4ef,this[_0x4d9c95(0x34a)]=_0x2d5fc1);}[_0xade8c(0x3a9)](_0x34432c){const _0x158113=_0xade8c,_0x3fea2f=this[_0x158113(0x30a)]['getCurrentRevForDocument'](this[_0x158113(0x14d)]);return _0x34432c[_0x158113(0x212)]>_0x3fea2f+0x1?(this[_0x158113(0x289)][_0x158113(0x1fd)]({'from':_0x3fea2f,'to':_0x34432c[_0x158113(0x212)]-0x1}),!0x0):!0x1;}[_0xade8c(0x360)](_0x4ce768){const _0x270af4=_0xade8c;this[_0x270af4(0x240)][_0x270af4(0x31b)](this[_0x270af4(0x14d)],_0x4ce768);}[_0xade8c(0x26f)](_0x58f0a0){const _0x137c2=_0xade8c;var _0x1e2dbf,_0x5594b4;(_0x5594b4=(_0x1e2dbf=this[_0x137c2(0x289)])[_0x137c2(0x366)])==null||_0x5594b4[_0x137c2(0x33b)](_0x1e2dbf,_0x58f0a0);}['_transformIMECache'](_0x32a298){const _0x5db926=_0xade8c;var _0x56b49e,_0x347720;return(_0x347720=(_0x56b49e=this[_0x5db926(0x289)])[_0x5db926(0x1bc)])==null?void 0x0:_0x347720['call'](_0x56b49e,_0x32a298);}['_transformRemoteChangesetByIMECache'](_0x3e5a02){const _0x5bc975=_0xade8c;var _0x3b9e21,_0xb934d7,_0x30d43a;return(_0x30d43a=(_0xb934d7=(_0x3b9e21=this[_0x5bc975(0x289)])[_0x5bc975(0x161)])==null?void 0x0:_0xb934d7['call'](_0x3b9e21,_0x3e5a02))!=null?_0x30d43a:_0x3e5a02;}[_0xade8c(0x124)](_0xcf6e4e){const _0x389b5a=_0xade8c;var _0x178064,_0x4f2af2;if(this[_0x389b5a(0x207)]===H[_0x389b5a(0x1c7)]){const {unitID:_0x39e5de,mutations:_0x4a4220,memberID:_0x47100b}=_0xcf6e4e,_0x11bd4c=_0x4a4220[0x0]['params'][_0x389b5a(0x22f)];Array[_0x389b5a(0xc9)](_0x11bd4c)&&_0x11bd4c[_0x389b5a(0x331)]>0x0&&((_0x4f2af2=(_0x178064=this[_0x389b5a(0x289)])[_0x389b5a(0x2b8)])==null||_0x4f2af2['call'](_0x178064,{'unitID':_0x39e5de,'memberID':_0x47100b,'textRanges':_0x11bd4c}));}}[_0xade8c(0x386)](){const _0x27ee2d=_0xade8c;this[_0x27ee2d(0xf7)]['updateOfflineData'](this[_0x27ee2d(0x14d)],this['type'],this['_awaitingChangeset'],this[_0x27ee2d(0x34a)]);}[_0xade8c(0x268)](){const _0x358977=_0xade8c;return this[_0x358977(0x30a)][_0x358977(0x7e)](this['unitID']);}[_0xade8c(0x2d7)](){const _0x53dbc0=_0xade8c;this['_revisionService'][_0x53dbc0(0x2be)](this[_0x53dbc0(0x14d)]);}[_0xade8c(0x153)](_0x2a4422){const _0x49c526=_0xade8c;var _0x4333c8;const _0x409ecf=this['_transformRemoteChangesetByIMECache'](_0x2a4422),_0x1306a5=_0x45596a(_0x409ecf['mutations'],this[_0x49c526(0x1ba)],{'fromCollab':!0x0});if(!_0x1306a5[_0x49c526(0x24c)])throw _0x1306a5['error']instanceof Error?_0x1306a5['error']:new Error((_0x4333c8=_0x1306a5[_0x49c526(0x2cf)])!=null?_0x4333c8:'[CollaborationState]:\x20apply\x20error!');this['_transformIMECache'](_0x409ecf),this['_transformUndoredo'](_0x2a4422),this[_0x49c526(0x26f)](_0x409ecf),this['_syncEditingCollabCursor'](_0x409ecf),this[_0x49c526(0x2d7)]();}}let Ne=class extends ae{constructor(_0x24299f,_0x527b7d,_0x12b53d,_0x2e55a3,_0x474657,_0x193d50,_0x2f04f6,_0x2cb249,_0x255454){const _0x4d6827=_0xade8c;super(_0x24299f,_0x527b7d,null,[],_0x12b53d,_0x2cb249,_0x2f04f6,_0x2e55a3,_0x474657),l(this,'status','synced'),(this[_0x4d6827(0xcc)]=_0x193d50,this[_0x4d6827(0x37f)]=_0x255454);}['appendMutation'](_0x1c15ce){const _0x39d139=_0xade8c,_0x2213cd=this[_0x39d139(0xcc)][_0x39d139(0x371)](k,this[_0x39d139(0x14d)],this['type'],[_0x1c15ce],this[_0x39d139(0x289)]);return _0x2213cd[_0x39d139(0x330)](),_0x2213cd[_0x39d139(0x386)](),_0x2213cd;}[_0xade8c(0x2cb)](_0x590a29){const _0x533723=_0xade8c;if(this[_0x533723(0x3a9)](_0x590a29))return this['_injector'][_0x533723(0x371)](G,this[_0x533723(0x14d)],this[_0x533723(0x207)],null,[],null,[_0x590a29],this[_0x533723(0x289)]);try{return this['_executeRemoteChangeset'](_0x590a29),this;}catch(_0x51e1cb){return this[_0x533723(0x37f)][_0x533723(0x2cf)](_0x533723(0x313),_0x51e1cb),this;}}[_0xade8c(0x25e)](){const _0x407c30=_0xade8c;throw new Error(_0x407c30(0xf4));}[_0xade8c(0xaf)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x418712=_0xade8c;return this[_0x418712(0xcc)][_0x418712(0x371)](z,this['unitID'],this[_0x418712(0x207)],null,[],this[_0x418712(0x289)]);}[_0xade8c(0x27f)](){return this;}['resend'](){const _0x27a02e=_0xade8c;throw new Error(_0x27a02e(0xb2));}};Ne=oe([m(0x3,_0xd901da(_0x432311)),m(0x4,_0xd901da(D)),m(0x5,_0xd901da(_0x3c61ae)),m(0x6,_0x1bc0b8),m(0x7,_0x3f64f1),m(0x8,_0x255408)],Ne);let k=class extends ae{constructor(_0x488e7e,_0x11c402,_0xa3b98c,_0x3ed495,_0x174b77,_0x49bf1c,_0x4da62b,_0x52f726,_0x457813,_0x59bb19,_0x27d471,_0x3f91a5,_0x467407,_0x43a477){const _0x42af87=_0xade8c;super(_0x488e7e,_0x11c402,null,_0xa3b98c,_0x3ed495,_0x59bb19,_0x43a477,_0x49bf1c,_0x4da62b),l(this,_0x42af87(0x3b8),_0x42af87(0x29a)),l(this,_0x42af87(0x1b8),null),l(this,'_sendingTimer',null),(this['_injector']=_0x174b77,this[_0x42af87(0x311)]=_0x52f726,this[_0x42af87(0x37f)]=_0x457813,this[_0x42af87(0x253)]=_0x27d471,this[_0x42af87(0x8e)]=_0x3f91a5,this[_0x42af87(0x1c2)]=_0x467407);}['appendMutation'](_0x16aa09){const _0x28cd2f=_0xade8c;return this[_0x28cd2f(0x34a)][_0x28cd2f(0x142)](_0x16aa09),this[_0x28cd2f(0x386)](),this;}['onRemoteChangeset'](_0x11ea75){const _0x640b62=_0xade8c;if(this[_0x640b62(0x3a9)](_0x11ea75))return this[_0x640b62(0x28c)](),this[_0x640b62(0xcc)][_0x640b62(0x371)](G,this['unitID'],this[_0x640b62(0x207)],null,this[_0x640b62(0x34a)],null,[_0x11ea75],this[_0x640b62(0x289)]);try{const _0x354eb7=this['_transformService'][_0x640b62(0x392)](_0x11ea75,this[_0x640b62(0x34a)]);if(_0x504c1f(_0x354eb7)){const {c1Prime:_0x54bdf0,m2Prime:_0x377505}=_0x354eb7;this['_executeRemoteChangeset'](_0x54bdf0);const _0x1d4d80=this[_0x640b62(0xcc)][_0x640b62(0x371)](k,this['unitID'],this[_0x640b62(0x207)],_0x377505,this['_handler']);return this[_0x640b62(0x28c)](),_0x1d4d80[_0x640b62(0x330)](this[_0x640b62(0x1b8)]?Math[_0x640b62(0x23c)](0x0,new Date()[_0x640b62(0x126)]()-this[_0x640b62(0x1b8)]):this[_0x640b62(0x369)]()),_0x1d4d80;}throw _0x354eb7[_0x640b62(0x2cf)];}catch(_0x5f1fad){return this[_0x640b62(0x37f)][_0x640b62(0x2cf)](_0x5f1fad),this[_0x640b62(0x2d4)](!0x1);}}['onRemoteAck'](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[PendingState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x2a77f3=_0xade8c;return this[_0x2a77f3(0x28c)](),this[_0x2a77f3(0xcc)][_0x2a77f3(0x371)](z,this[_0x2a77f3(0x14d)],this['type'],null,this[_0x2a77f3(0x34a)],this[_0x2a77f3(0x289)]);}['toggleOnline'](){return this;}[_0xade8c(0x330)](_0x182b2e){const _0x45946b=_0xade8c;_0x182b2e=_0x182b2e!=null?_0x182b2e:this[_0x45946b(0x369)](),this[_0x45946b(0x1b8)]=new Date()['getTime'](),this[_0x45946b(0x2e0)]=setTimeout(()=>{const _0x181c57=_0x45946b;this[_0x181c57(0x28c)]();let _0x129867=null;switch(this['type']){case H[_0x181c57(0x3a3)]:{_0x129867=Gn(this[_0x181c57(0x34a)],this[_0x181c57(0x14d)],this['_univerInstanceService'],this[_0x181c57(0x30a)],this[_0x181c57(0x311)]);break;}case H['UNIVER_DOC']:{_0x129867=Yn(this[_0x181c57(0x34a)],this[_0x181c57(0x14d)],this[_0x181c57(0x1c2)],this[_0x181c57(0x30a)],this[_0x181c57(0x311)]);break;}default:throw new Error(_0x181c57(0x2c7)+this['type']+_0x181c57(0x322));}const {changeset:_0x2f4f73,pendingMutations:_0x932448}=_0x129867;this[_0x181c57(0x289)][_0x181c57(0x1d3)](_0x2f4f73);const _0x5d78f2=_0x932448['length']?this['_injector'][_0x181c57(0x371)](W,this['unitID'],this[_0x181c57(0x207)],_0x2f4f73,_0x932448,this['_handler']):this['_injector'][_0x181c57(0x371)](q,this[_0x181c57(0x14d)],this['type'],_0x2f4f73,this['_handler']);_0x5d78f2[_0x181c57(0x386)](),this[_0x181c57(0x289)][_0x181c57(0x3b9)](this,_0x5d78f2);},_0x182b2e);}[_0xade8c(0x369)](){const _0x30e050=_0xade8c;var _0xd28c2b;return(_0xd28c2b=this[_0x30e050(0x253)][_0x30e050(0x1df)](en))!=null?_0xd28c2b:tn;}[_0xade8c(0x1a7)](){const _0x24d0d0=_0xade8c;throw new Error(_0x24d0d0(0x2e6));}[_0xade8c(0x28c)](){const _0x3041a4=_0xade8c;this[_0x3041a4(0x2e0)]!=null&&(clearTimeout(this[_0x3041a4(0x2e0)]),this[_0x3041a4(0x2e0)]=null);}[_0xade8c(0x2d4)](_0x96bb0e){const _0x28b413=_0xade8c;return this[_0x28b413(0x28c)](),this['_injector']['createInstance'](re,this[_0x28b413(0x14d)],this['type'],null,this[_0x28b413(0x34a)],this[_0x28b413(0x289)],_0x96bb0e);}};k=oe([m(0x4,_0xd901da(_0x3c61ae)),m(0x5,_0xd901da(_0x432311)),m(0x6,_0xd901da(D)),m(0x7,_0xd901da(ne)),m(0x8,_0x255408),m(0x9,_0x3f64f1),m(0xa,_0x531a6b),m(0xb,_0x581964),m(0xc,_0x3b87df),m(0xd,_0x1bc0b8)],k);let q=class extends ae{constructor(_0x1d39d8,_0x351017,_0x4297a4,_0x26103f,_0x28d90c,_0x53f47a,_0x2d59c9,_0x692759,_0x7b589f,_0x583c7b,_0x17ff7b){const _0x22da82=_0xade8c;super(_0x1d39d8,_0x351017,_0x4297a4,[],_0x26103f,_0x692759,_0x17ff7b,_0x53f47a,_0x2d59c9),l(this,'status',_0x22da82(0xcb)),(this[_0x22da82(0xcc)]=_0x28d90c,this[_0x22da82(0x37f)]=_0x7b589f,this[_0x22da82(0x8e)]=_0x583c7b);}[_0xade8c(0x2b6)](_0xa57ea9){const _0x88a2b2=_0xade8c,_0x22b1f3=this[_0x88a2b2(0xcc)]['createInstance'](W,this[_0x88a2b2(0x14d)],this['type'],this[_0x88a2b2(0x78)],[_0xa57ea9],this[_0x88a2b2(0x289)]);return _0x22b1f3[_0x88a2b2(0x386)](),_0x22b1f3;}[_0xade8c(0x2cb)](_0x295eb4){const _0x32ec93=_0xade8c;if(this[_0x32ec93(0x3a9)](_0x295eb4))return this['_injector'][_0x32ec93(0x371)](G,this[_0x32ec93(0x14d)],this[_0x32ec93(0x207)],this['_awaitingChangeset'],[],null,[_0x295eb4],this[_0x32ec93(0x289)]);try{const _0x2d9de8=this[_0x32ec93(0x8e)][_0x32ec93(0x218)]([_0x295eb4],[this[_0x32ec93(0x78)]],!0x1);if(_0x288394(_0x2d9de8)){const {c1Prime:_0x34f8ea,c2Prime:_0x520cb8}=_0x2d9de8;this['_executeRemoteChangeset'](_0x34f8ea[0x0]),_0x520cb8[0x0]['baseRev']=this[_0x32ec93(0x268)]();const _0x505c1a=this['_injector'][_0x32ec93(0x371)](q,this['unitID'],this[_0x32ec93(0x207)],_0x520cb8[0x0],this['_handler']);return _0x505c1a[_0x32ec93(0x386)](),_0x505c1a;}return this[_0x32ec93(0x2d4)](!0x1);}catch(_0x11f16e){return this[_0x32ec93(0x37f)][_0x32ec93(0x2cf)](_0x11f16e),this[_0x32ec93(0x2d4)](!0x1);}}[_0xade8c(0x25e)](_0x3e1b4e){const _0x5784bb=_0xade8c,_0x3b83fd=this[_0x5784bb(0x30a)]['getCurrentRevForDocument'](this['unitID']);if(_0x3e1b4e[_0x5784bb(0x212)]<_0x3b83fd-0x1)return this;if(this[_0x5784bb(0x3a9)](_0x3e1b4e))return this['_injector'][_0x5784bb(0x371)](G,this[_0x5784bb(0x14d)],this[_0x5784bb(0x207)],null,[],this[_0x5784bb(0x78)],[],this[_0x5784bb(0x289)]);this[_0x5784bb(0x2d7)]();const _0x1147d8=this['_injector']['createInstance'](Ne,this['unitID'],this['type'],this['_handler']);return _0x1147d8[_0x5784bb(0x386)](),_0x1147d8;}[_0xade8c(0xaf)](_0x249495){const _0x8b8500=_0xade8c;return this[_0x8b8500(0x2d4)](!!(_0x249495!=null&&_0x249495[_0x8b8500(0x151)]));}['toggleOffline'](){const _0xff8f6=_0xade8c;return this['_injector'][_0xff8f6(0x371)](z,this[_0xff8f6(0x14d)],this[_0xff8f6(0x207)],this[_0xff8f6(0x78)],[],this[_0xff8f6(0x289)]);}['toggleOnline'](){return this;}[_0xade8c(0x1a7)](){const _0x89aff9=_0xade8c;this[_0x89aff9(0x289)]['onSendChangeset'](this[_0x89aff9(0x78)]);}['_onConflict'](_0x571a16){const _0x5c5556=_0xade8c;return this[_0x5c5556(0xcc)][_0x5c5556(0x371)](re,this[_0x5c5556(0x14d)],this['type'],this[_0x5c5556(0x78)],[],this[_0x5c5556(0x289)],_0x571a16);}};q=oe([m(0x4,_0xd901da(_0x3c61ae)),m(0x5,_0xd901da(_0x432311)),m(0x6,_0xd901da(D)),m(0x7,_0x3f64f1),m(0x8,_0x255408),m(0x9,_0x581964),m(0xa,_0x1bc0b8)],q);let W=class extends ae{constructor(_0x29d5fd,_0x1027fa,_0x362c17,_0x4f255a,_0x23816d,_0x23d70a,_0x3bf95c,_0x30a218,_0xb757b0,_0x230384,_0x1bb6e0,_0x50ef05){const _0x4351aa=_0xade8c;super(_0x29d5fd,_0x1027fa,_0x362c17,_0x4f255a,_0x23816d,_0xb757b0,_0x50ef05,_0x3bf95c,_0x30a218),l(this,_0x4351aa(0x3b8),_0x4351aa(0x169)),(this[_0x4351aa(0xcc)]=_0x23d70a,this[_0x4351aa(0x37f)]=_0x230384,this['_transformService']=_0x1bb6e0);}[_0xade8c(0x2b6)](_0x53e2d1){const _0x527a1e=_0xade8c;return this[_0x527a1e(0x34a)][_0x527a1e(0x142)](_0x53e2d1),this;}['onRemoteChangeset'](_0x55869d){const _0x1c78ad=_0xade8c;if(this[_0x1c78ad(0x3a9)](_0x55869d))return this[_0x1c78ad(0xcc)][_0x1c78ad(0x371)](G,this['unitID'],this[_0x1c78ad(0x207)],this[_0x1c78ad(0x78)],this[_0x1c78ad(0x34a)],null,[_0x55869d],this['_handler']);try{const _0x4e42a3=this[_0x1c78ad(0x8e)][_0x1c78ad(0x218)]([_0x55869d],[this[_0x1c78ad(0x78)]],!0x1);if(_0x288394(_0x4e42a3)){const {c1Prime:_0x12e287,c2Prime:_0x1eb4b2}=_0x4e42a3,_0x15daa3=this[_0x1c78ad(0x8e)]['transformMutationsWithChangeset'](_0x12e287[0x0],this[_0x1c78ad(0x34a)]);if(_0x504c1f(_0x15daa3)){const {c1Prime:_0xeaf847,m2Prime:_0x4381ca}=_0x15daa3;return this[_0x1c78ad(0x153)](_0xeaf847),_0x1eb4b2[0x0]['baseRev']=this[_0x1c78ad(0x268)](),this[_0x1c78ad(0xcc)][_0x1c78ad(0x371)](W,this[_0x1c78ad(0x14d)],this['type'],_0x1eb4b2[0x0],_0x4381ca,this[_0x1c78ad(0x289)]);}throw _0x15daa3[_0x1c78ad(0x2cf)];}throw _0x4e42a3[_0x1c78ad(0x2cf)];}catch(_0x6a6a5d){return this['_logService']['error'](_0x6a6a5d),this['_onConflict'](!0x1);}}[_0xade8c(0x25e)](_0x38463c){const _0x3aa81a=_0xade8c;if(this[_0x3aa81a(0x3a9)](_0x38463c))return this[_0x3aa81a(0xcc)][_0x3aa81a(0x371)](G,this[_0x3aa81a(0x14d)],this[_0x3aa81a(0x207)],null,this[_0x3aa81a(0x34a)],this[_0x3aa81a(0x78)],[],this[_0x3aa81a(0x289)]);this[_0x3aa81a(0x2d7)]();const _0x17254e=this[_0x3aa81a(0xcc)]['createInstance'](k,this['unitID'],this['type'],this[_0x3aa81a(0x34a)],this[_0x3aa81a(0x289)]);return _0x17254e[_0x3aa81a(0x330)](),_0x17254e[_0x3aa81a(0x386)](),_0x17254e;}[_0xade8c(0xaf)](_0x19196d){const _0x512b25=_0xade8c;return this['_onConflict'](!!(_0x19196d!=null&&_0x19196d[_0x512b25(0x151)]));}[_0xade8c(0x11d)](){const _0x1229ef=_0xade8c;return this[_0x1229ef(0xcc)]['createInstance'](z,this['unitID'],this[_0x1229ef(0x207)],this[_0x1229ef(0x78)],this['_pendingMutations'],this[_0x1229ef(0x289)]);}['toggleOnline'](){return this;}[_0xade8c(0x1a7)](){const _0x20a993=_0xade8c;this[_0x20a993(0x289)][_0x20a993(0x1d3)](this[_0x20a993(0x78)]);}[_0xade8c(0x2d4)](_0x29c269){const _0x52aea1=_0xade8c;return this[_0x52aea1(0xcc)][_0x52aea1(0x371)](re,this[_0x52aea1(0x14d)],this[_0x52aea1(0x207)],null,this[_0x52aea1(0x34a)],this['_handler'],_0x29c269);}};W=oe([m(0x5,_0xd901da(_0x3c61ae)),m(0x6,_0xd901da(_0x432311)),m(0x7,_0xd901da(D)),m(0x8,_0x3f64f1),m(0x9,_0x255408),m(0xa,_0x581964),m(0xb,_0x1bc0b8)],W);let re=class extends ae{constructor(_0x273927,_0x5dcdbc,_0x42c690,_0x43f095,_0x38b8c2,_0x14510a=!0x1,_0x328e54,_0x482074,_0x337177,_0x44fa5a,_0x11d826,_0x53d0b0,_0x13eb18){const _0x1dbaab=_0xade8c;super(_0x273927,_0x5dcdbc,_0x42c690,_0x43f095,_0x38b8c2,_0x482074,_0x337177,_0x11d826,_0x44fa5a),l(this,_0x1dbaab(0x3b8),'conflict'),(this[_0x1dbaab(0x247)]=_0x14510a,this[_0x1dbaab(0x10f)]=_0x328e54,this[_0x1dbaab(0x148)]=_0x53d0b0,this[_0x1dbaab(0x19c)]=_0x13eb18,this[_0x1dbaab(0x2c0)](),this[_0x1dbaab(0x319)](),this[_0x1dbaab(0x11a)]());}[_0xade8c(0x2b6)](){return this;}['onRemoteChangeset'](){return this;}[_0xade8c(0x25e)](){return this;}[_0xade8c(0xaf)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0xade8c(0x1a7)](){const _0xb25f0a=_0xade8c;throw new Error(_0xb25f0a(0x20d));}[_0xade8c(0x319)](){const _0x3b6364=_0xade8c;this[_0x3b6364(0xf7)][_0x3b6364(0x15e)](this[_0x3b6364(0x14d)],this[_0x3b6364(0x207)],null,[]);}[_0xade8c(0x2c0)](){const _0x3db941=_0xade8c;this['_isPermissionRej']?this['_notificationService'][_0x3db941(0xfa)]({'title':this[_0x3db941(0x148)]['t']('permission.title'),'content':this[_0x3db941(0x148)]['t']('permission.content'),'type':_0x3db941(0x2cf),'duration':0x0}):this['_notificationService']['show']({'title':this[_0x3db941(0x148)]['t']('conflict.title'),'content':this['_localeService']['t']('conflict.content'),'type':'error','duration':0x0});}['_disableEditing'](){const _0x28935e=_0xade8c;this[_0x28935e(0x10f)][_0x28935e(0xd7)](new _0xaddd59(this[_0x28935e(0x14d)])['id'],!0x1);}};re=oe([m(0x6,_0xd901da(_0x1b6020)),m(0x7,_0x3f64f1),m(0x8,_0x1bc0b8),m(0x9,_0xd901da(D)),m(0xa,_0xd901da(_0x432311)),m(0xb,_0xd901da(_0x3fbf2b)),m(0xc,_0x4cb594)],re);let z=class extends ae{constructor(_0xbf1634,_0x1f7dff,_0x3930c0,_0x33e18e,_0x299507,_0x33ee90,_0x226701,_0x3433be,_0x1f8f7a,_0x4ca7e8){const _0x46d234=_0xade8c;super(_0xbf1634,_0x1f7dff,_0x3930c0,_0x33e18e,_0x299507,_0x1f8f7a,_0x4ca7e8,_0x226701,_0x3433be),l(this,'status',_0x46d234(0xcd)),this[_0x46d234(0xcc)]=_0x33ee90;}[_0xade8c(0x2b6)](_0x3def75){const _0x42e602=_0xade8c;return this[_0x42e602(0x34a)][_0x42e602(0x142)](_0x3def75),this[_0x42e602(0x386)](),this;}[_0xade8c(0x2cb)](_0x417ded){const _0x369c99=_0xade8c;throw new Error(_0x369c99(0x2bf));}[_0xade8c(0x25e)](){const _0x346106=_0xade8c;throw new Error(_0x346106(0xd8));}[_0xade8c(0xaf)](){const _0xf675c7=_0xade8c;throw new Error(_0xf675c7(0x1d2));}[_0xade8c(0x11d)](){return this;}['toggleOnline'](){const _0x130b7e=_0xade8c,{_injector:_0x5d6a41,_pendingMutations:_0x53dccf,_awaitingChangeset:_0x276f72,unitID:_0x789892,_handler:_0x390709,type:_0x2f5c1b}=this,_0x174d46=Ms(_0x5d6a41,_0x789892,_0x2f5c1b,_0x276f72,_0x53dccf,_0x390709);return _0x174d46 instanceof k?_0x174d46[_0x130b7e(0x330)]():(_0x174d46 instanceof W||_0x174d46 instanceof q)&&_0x174d46['resend'](),_0x174d46;}[_0xade8c(0x1a7)](){const _0x495fa9=_0xade8c;throw new Error(_0x495fa9(0xdd));}};z=oe([m(0x5,_0xd901da(_0x3c61ae)),m(0x6,_0xd901da(_0x432311)),m(0x7,_0xd901da(D)),m(0x8,_0x3f64f1),m(0x9,_0x1bc0b8)],z);let G=class extends ae{constructor(_0x26c004,_0x4abcfd,_0x5946cb,_0x14eef6,_0x123029,_0x3b3e9d,_0x3add7c,_0x441087,_0x59860c,_0xa4840f,_0x200c62,_0x3cb1b6,_0x59165f,_0x5e6fe5){const _0x439c66=_0xade8c;super(_0x26c004,_0x4abcfd,_0x5946cb,_0x14eef6,_0x3add7c,_0x3cb1b6,_0x59165f,_0x59860c,_0xa4840f),l(this,_0x439c66(0x3b8),_0x439c66(0x3ae)),(this[_0x439c66(0x1cb)]=_0x123029,this[_0x439c66(0x24a)]=_0x3b3e9d,this[_0x439c66(0xcc)]=_0x441087,this['_logService']=_0x200c62,this['_transformService']=_0x5e6fe5);}['onMissedChangesetFetched'](_0x18e2c4){const _0x4d90ce=_0xade8c;try{const _0x2995ee=[..._0x18e2c4,...this[_0x4d90ce(0x24a)]],_0x33854b=[this['_awaitingChangeset']||this[_0x4d90ce(0x1cb)]][_0x4d90ce(0x2a9)](_0x160949=>!!_0x160949);let _0x3a9f4a,_0x4d9240;if(_0x33854b[_0x4d90ce(0x331)]){const _0x26459d=this[_0x4d90ce(0x8e)][_0x4d90ce(0x218)](_0x2995ee,_0x33854b,!0x1);if(!_0x288394(_0x26459d))throw _0x26459d[_0x4d90ce(0x2cf)];_0x3a9f4a=_0x26459d['c1Prime'],_0x4d9240=_0x26459d[_0x4d90ce(0x195)];}else _0x3a9f4a=_0x2995ee,_0x4d9240=[];let _0x1b0568=this[_0x4d90ce(0x34a)];_0x3a9f4a[_0x4d90ce(0x2f2)](_0x5ff5fe=>{const _0x53b15e=_0x4d90ce;let _0xa4fa6c;if(_0x1b0568[_0x53b15e(0x331)]){const _0x491a5f=this[_0x53b15e(0x8e)][_0x53b15e(0x392)](_0x5ff5fe,_0x1b0568);if(!_0x504c1f(_0x491a5f))throw _0x491a5f[_0x53b15e(0x2cf)];_0xa4fa6c=_0x491a5f[_0x53b15e(0x233)],_0x1b0568=_0x491a5f['m2Prime'];}else _0xa4fa6c=_0x5ff5fe;this[_0x53b15e(0x153)](_0xa4fa6c);}),this[_0x4d90ce(0x1cb)]&&this[_0x4d90ce(0x2d7)](),this[_0x4d90ce(0x78)]&&_0x4d9240[_0x4d90ce(0x331)]&&(_0x4d9240[0x0][_0x4d90ce(0x2f0)]=this['_getCurrentRevision']());let _0x3cc308;if(this[_0x4d90ce(0x78)]&&_0x1b0568['length']!==0x0)_0x3cc308=this[_0x4d90ce(0xcc)][_0x4d90ce(0x371)](W,this[_0x4d90ce(0x14d)],this[_0x4d90ce(0x207)],_0x4d9240[0x0],_0x1b0568,this['_handler']);else{if(this['_awaitingChangeset']&&_0x1b0568['length']===0x0)_0x4d9240[0x0][_0x4d90ce(0x2f0)]=this[_0x4d90ce(0x268)](),_0x3cc308=this[_0x4d90ce(0xcc)][_0x4d90ce(0x371)](q,this['unitID'],this[_0x4d90ce(0x207)],_0x4d9240[0x0],this[_0x4d90ce(0x289)]);else{if(_0x1b0568['length']!==0x0){const _0x11dd33=this[_0x4d90ce(0xcc)][_0x4d90ce(0x371)](k,this[_0x4d90ce(0x14d)],this[_0x4d90ce(0x207)],_0x1b0568,this['_handler']);_0x11dd33['_schedule'](),_0x3cc308=_0x11dd33;}else _0x3cc308=this['_injector'][_0x4d90ce(0x371)](Ne,this['unitID'],this[_0x4d90ce(0x207)],this[_0x4d90ce(0x289)]);}}return _0x3cc308[_0x4d90ce(0x386)](),_0x3cc308;}catch(_0x33888d){return this[_0x4d90ce(0x37f)][_0x4d90ce(0x2cf)]('[FetchMissState]',_0x4d90ce(0xc4),_0x33888d),this[_0x4d90ce(0xcc)][_0x4d90ce(0x371)](re,this[_0x4d90ce(0x14d)],this[_0x4d90ce(0x207)],this[_0x4d90ce(0x78)],this[_0x4d90ce(0x34a)],this['_handler'],!0x1);}}[_0xade8c(0x1a7)](){const _0x5e6d1c=_0xade8c;throw new Error(_0x5e6d1c(0x1a5));}['appendMutation'](_0x3c2ac2){const _0x1df860=_0xade8c;return this[_0x1df860(0x34a)]['push'](_0x3c2ac2),this;}[_0xade8c(0x2cb)](_0x50649e){const _0x224d4c=_0xade8c;return this[_0x224d4c(0x24a)][_0x224d4c(0x142)](_0x50649e),this;}[_0xade8c(0x25e)](_0x3542d8){const _0x4c7381=_0xade8c;if(this[_0x4c7381(0x78)])return this[_0x4c7381(0x1cb)]=this[_0x4c7381(0x78)],this[_0x4c7381(0x78)]=null,this;throw new Error(_0x4c7381(0x15a));}[_0xade8c(0xaf)](_0x53f529){const _0x44b411=_0xade8c;return this[_0x44b411(0x2d4)](!!(_0x53f529!=null&&_0x53f529[_0x44b411(0x151)]));}[_0xade8c(0x11d)](){const _0xa1e36b=_0xade8c;return this['_injector']['createInstance'](z,this[_0xa1e36b(0x14d)],this['type'],this[_0xa1e36b(0x78)],this[_0xa1e36b(0x34a)],this['_handler']);}[_0xade8c(0x27f)](){return this;}['_onConflict'](_0x47c1f6){const _0x17beb1=_0xade8c;return this[_0x17beb1(0xcc)][_0x17beb1(0x371)](re,this[_0x17beb1(0x14d)],this[_0x17beb1(0x207)],this[_0x17beb1(0x78)],this['_pendingMutations'],this['_handler'],_0x47c1f6);}};G=oe([m(0x7,_0xd901da(_0x3c61ae)),m(0x8,_0xd901da(_0x432311)),m(0x9,_0xd901da(D)),m(0xa,_0x255408),m(0xb,_0x3f64f1),m(0xc,_0x1bc0b8),m(0xd,_0x581964)],G);function Ms(_0x512fec,_0x42a104,_0x44463d,_0x111821,_0x36684c,_0x4c246a){const _0x58ee30=_0xade8c;return _0x111821&&_0x36684c[_0x58ee30(0x331)]?_0x512fec[_0x58ee30(0x371)](W,_0x42a104,_0x44463d,_0x111821,_0x36684c,_0x4c246a):_0x111821?_0x512fec['createInstance'](q,_0x42a104,_0x44463d,_0x111821,_0x4c246a):_0x36684c[_0x58ee30(0x331)]?_0x512fec[_0x58ee30(0x371)](k,_0x42a104,_0x44463d,_0x36684c,_0x4c246a):_0x512fec[_0x58ee30(0x371)](Ne,_0x42a104,_0x44463d,_0x4c246a);}var Jn=Object[_0xade8c(0x36b)],qn=Object[_0xade8c(0x22b)],tt=(_0x41534c,_0x44eae0,_0x4cc2e2,_0x16cac8)=>{const _0x8d9a74=_0xade8c;for(var _0x9e18b3=_0x16cac8>0x1?void 0x0:_0x16cac8?qn(_0x44eae0,_0x4cc2e2):_0x44eae0,_0x997bc=_0x41534c[_0x8d9a74(0x331)]-0x1,_0x4ba834;_0x997bc>=0x0;_0x997bc--)(_0x4ba834=_0x41534c[_0x997bc])&&(_0x9e18b3=(_0x16cac8?_0x4ba834(_0x44eae0,_0x4cc2e2,_0x9e18b3):_0x4ba834(_0x9e18b3))||_0x9e18b3);return _0x16cac8&&_0x9e18b3&&Jn(_0x44eae0,_0x4cc2e2,_0x9e18b3),_0x9e18b3;},S=(_0x6ebbbe,_0x58114c)=>(_0x4f84c6,_0x1d54ef)=>_0x58114c(_0x4f84c6,_0x1d54ef,_0x6ebbbe);let De=class extends _0x3fb7e3{constructor(_0x56901d,_0x4a6730,_0x39b4a8){const _0x173b8a=_0xade8c;super(),l(this,_0x173b8a(0x306),new Map()),l(this,_0x173b8a(0x320),new _0x3718e0()),(this[_0x173b8a(0xcc)]=_0x56901d,this['_collabSessionService']=_0x4a6730,this[_0x173b8a(0x1c2)]=_0x39b4a8,this[_0x173b8a(0x312)]());}[_0xade8c(0x199)](){const _0x28a451=_0xade8c;super[_0x28a451(0x199)](),this[_0x28a451(0x306)][_0x28a451(0x2f2)](_0x41f8f5=>_0x41f8f5[_0x28a451(0x199)]()),this[_0x28a451(0x306)][_0x28a451(0x287)]();}[_0xade8c(0xa0)](_0x43a4f6){const _0x1c7ad1=_0xade8c;var _0x55095c;return(_0x55095c=this[_0x1c7ad1(0x306)][_0x1c7ad1(0x275)](_0x43a4f6))!=null?_0x55095c:null;}[_0xade8c(0x36a)](_0x523a2e){const _0x42ae8b=_0xade8c,_0x3c5a80=this[_0x42ae8b(0xa0)](_0x523a2e);return _0x3c5a80?_0x3ff30b(_0x3c5a80):this[_0x42ae8b(0x320)]['pipe'](_0x4c2296(_0x148474=>_0x148474[_0x42ae8b(0x14d)]===_0x523a2e));}[_0xade8c(0x312)](){const _0x3425bb=_0xade8c;this[_0x3425bb(0x1c2)][_0x3425bb(0x252)](_0x9cd059[_0x3425bb(0x3a3)])['pipe'](_0x2473df(this[_0x3425bb(0x13d)]),_0xf4f725(0x10))[_0x3425bb(0xbf)](async _0x132aa2=>{const _0x2799cf=_0x3425bb,_0x2cff99=_0x132aa2[_0x2799cf(0x350)](),_0x576ce0=await this[_0x2799cf(0x2ae)](_0x2cff99,H[_0x2799cf(0x3a3)]);this[_0x2799cf(0x306)][_0x2799cf(0xbd)](_0x2cff99,_0x576ce0);}),this[_0x3425bb(0x1c2)]['getTypeOfUnitAdded$'](_0x9cd059[_0x3425bb(0x1c7)])[_0x3425bb(0x2fe)](_0x2473df(this[_0x3425bb(0x13d)]),_0xf4f725(0x10))[_0x3425bb(0x2fe)](_0x4c2296(_0x29e649=>!_0x29e649['getUnitId']()[_0x3425bb(0xfc)]('__')))['subscribe'](async _0x5dc480=>{const _0x599e99=_0x3425bb,_0x151f0e=_0x5dc480[_0x599e99(0x350)](),_0xd0ec70=await this['_startCollaboration'](_0x151f0e,H[_0x599e99(0x1c7)]);this[_0x599e99(0x306)]['set'](_0x151f0e,_0xd0ec70);}),_0x52fd0c(this[_0x3425bb(0x1c2)][_0x3425bb(0x1a4)](_0x9cd059['UNIVER_SHEET']),this[_0x3425bb(0x1c2)][_0x3425bb(0x1a4)](_0x9cd059[_0x3425bb(0x1c7)]))['pipe'](_0x2473df(this[_0x3425bb(0x13d)]))[_0x3425bb(0xbf)](_0x490999=>{const _0x3028fa=_0x3425bb,_0x480dba=_0x490999[_0x3028fa(0x350)](),_0x481848=this[_0x3028fa(0x306)][_0x3028fa(0x275)](_0x480dba);_0x481848&&(_0x481848[_0x3028fa(0x199)](),this[_0x3028fa(0x306)]['delete'](_0x480dba));});}async[_0xade8c(0x2ae)](_0x19ae22,_0x127e4c){const _0x17fd54=_0xade8c,_0x15ad7f=await this['_collabSessionService'][_0x17fd54(0x12b)](_0x19ae22),_0x46cd09=this[_0x17fd54(0xcc)][_0x17fd54(0x371)](this[_0x17fd54(0x22d)](_0x127e4c),_0x19ae22,_0x127e4c,_0x15ad7f);return await _0x46cd09[_0x17fd54(0x254)](),this[_0x17fd54(0x320)][_0x17fd54(0xab)](_0x46cd09),_0x46cd09;}[_0xade8c(0x22d)](_0xed51fa){const _0x2f445f=_0xade8c;switch(_0xed51fa){case H[_0x2f445f(0x1c7)]:return vt;case H[_0x2f445f(0x3a3)]:return pt;default:throw new Error(_0x2f445f(0x300)+_0xed51fa);}}};De=tt([_0x22ab7a(_0x35f1ee[_0xade8c(0xd2)],De),S(0x0,_0xd901da(_0x3c61ae)),S(0x1,_0xd901da(ge)),S(0x2,_0x3b87df)],De);let ze=class extends _0x3fb7e3{constructor(_0x13c257,_0x5bf7d1,_0x516198,_0x2ee067,_0x144bd3,_0x3130f1,_0x3200c0,_0x548e66,_0x3a0774,_0x454f8c,_0x20708f,_0x599181,_0x497a8b){const _0x43ceb7=_0xade8c;super(),l(this,_0x43ceb7(0x141),new _0x1a37bf(null)),l(this,'state$',this['_state$'][_0x43ceb7(0x329)]()),l(this,_0x43ceb7(0xad)),l(this,_0x43ceb7(0x24d),!0x1),l(this,_0x43ceb7(0x1ed),this[_0x43ceb7(0x2c1)][_0x43ceb7(0x2fe)](_0x176ea9(_0x2a3409=>_0x2a3409?_0x2a3409[_0x43ceb7(0x3b8)]:w[_0x43ceb7(0x262)]),_0x3b73a3(0x1))),l(this,'_transitionLocked',!0x1),l(this,'_remoteChangesetQueue',[]),(this[_0x43ceb7(0x14d)]=_0x13c257,this[_0x43ceb7(0x10c)]=_0x5bf7d1,this[_0x43ceb7(0x8f)]=_0x516198,this[_0x43ceb7(0xcc)]=_0x2ee067,this['_localCacheService']=_0x144bd3,this[_0x43ceb7(0xb6)]=_0x3130f1,this['_localeService']=_0x3200c0,this['_revisionService']=_0x548e66,this[_0x43ceb7(0x37f)]=_0x3a0774,this['_commandService']=_0x454f8c,this[_0x43ceb7(0x368)]=_0x20708f,this[_0x43ceb7(0x10f)]=_0x599181,this['_singleActiveUnitService']=_0x497a8b);}get[_0xade8c(0x271)](){const _0x1dfbf4=_0xade8c;return this[_0x1dfbf4(0xad)];}async['init'](){const _0x420e33=_0xade8c;if(this['state'])throw new Error(_0x420e33(0x31a));await this[_0x420e33(0x312)]();}[_0xade8c(0x2d9)](){return this['_collaborationPaused']=!0x0,_0x45cb21(()=>{const _0x302742=_0x4292;this[_0x302742(0x24d)]=!0x1,this[_0x302742(0x299)]();});}[_0xade8c(0x3b0)](_0x190c4d){const _0x492ed3=_0xade8c;this[_0x492ed3(0xad)]=_0x190c4d,this[_0x492ed3(0x141)][_0x492ed3(0xab)](_0x190c4d);}async['_init'](){const _0x3bebe1=_0xade8c;var _0x2d716a;return this[_0x3bebe1(0x3b0)](await this[_0x3bebe1(0x396)]()),this['_singleActiveUnitService']&&((_0x2d716a=this[_0x3bebe1(0x97)])==null||_0x2d716a[_0x3bebe1(0x128)](this[_0x3bebe1(0x14d)]),this[_0x3bebe1(0x1f1)](_0x45cb21(this[_0x3bebe1(0x97)]['getUnitStatus$'](this[_0x3bebe1(0x14d)])[_0x3bebe1(0xbf)](_0x16f438=>{const _0x3babec=_0x3bebe1;this[_0x3babec(0x37f)]['debug'](_0x3babec(0x201),_0x3babec(0x113),_0x16f438),_0x16f438===ws[_0x3babec(0x30c)]?(this[_0x3babec(0x368)][_0x3babec(0xfa)]({'content':this['_localeService']['t'](_0x3babec(0x27b)),'type':_0x4d4329[_0x3babec(0x398)]}),this[_0x3babec(0x10f)][_0x3babec(0xd7)](new _0xaddd59(this[_0x3babec(0x14d)])['id'],!0x1)):this[_0x3babec(0x10f)][_0x3babec(0xd7)](new _0xaddd59(this['unitID'])['id'],!0x0);})))),this['disposeWithMe'](_0x45cb21(this['_session'][_0x3bebe1(0x17f)][_0x3bebe1(0xbf)](_0x2b4c73=>{const _0x18250e=_0x3bebe1;_0x2b4c73===de['ONLINE']?this[_0x18250e(0x318)]():_0x2b4c73===de[_0x18250e(0x262)]&&this['_toggleOffline']();}))),this['disposeWithMe'](_0x45cb21(this[_0x3bebe1(0x8f)]['event$'][_0x3bebe1(0xbf)](_0x37ac76=>{const _0x5ce55c=_0x3bebe1;try{switch(_0x37ac76[_0x5ce55c(0x13b)]){case _0x1b9133[_0x5ce55c(0x1a9)]:{this[_0x5ce55c(0x19e)](_0x28c9a8(_0x37ac76['data']));break;}case _0x1b9133[_0x5ce55c(0x29b)]:{this[_0x5ce55c(0x30b)](_0x37ac76[_0x5ce55c(0x19b)]);break;}case _0x1b9133['CHANGESET_REJ']:{this[_0x5ce55c(0xb7)]();break;}case _0x1b9133[_0x5ce55c(0x25b)]:{this[_0x5ce55c(0x109)](_0x37ac76[_0x5ce55c(0x19b)][_0x5ce55c(0xe4)][_0x5ce55c(0x39e)](_0x141642=>_0x28c9a8(_0x141642)));break;}case _0x1b9133['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x1beb88){throw console[_0x5ce55c(0x2cf)]('Error\x20on\x20receiving\x20event',_0x1beb88),_0x1beb88;}}))),this[_0x3bebe1(0xad)];}[_0xade8c(0x2e9)](){const _0x8207f9=_0xade8c;this[_0x8207f9(0x150)]=!0x1;}['_lockTransition'](){const _0x2ae4bf=_0xade8c;if(this[_0x2ae4bf(0x150)])throw new Error(_0x2ae4bf(0x31c));this[_0x2ae4bf(0x150)]=!0x0;}[_0xade8c(0x352)](_0x4e0913){const _0x434cfd=_0xade8c;this[_0x434cfd(0x2b5)](),this['_updateState'](this[_0x434cfd(0xad)][_0x434cfd(0x2b6)](_0x4e0913)),this[_0x434cfd(0x2e9)]();}[_0xade8c(0x19e)](_0x1a5cef){const _0x535a09=_0xade8c;if(!(_0x1a5cef[_0x535a09(0x212)]<=this[_0x535a09(0x30a)][_0x535a09(0x7e)](this[_0x535a09(0x14d)]))){if(this[_0x535a09(0x24d)]){this[_0x535a09(0xa3)][_0x535a09(0x142)](_0x1a5cef);return;}this[_0x535a09(0x229)](_0x1a5cef);}}[_0xade8c(0x299)](){const _0x521ca8=_0xade8c;this[_0x521ca8(0xa3)][_0x521ca8(0x2f2)](_0x12f5eb=>this[_0x521ca8(0x229)](_0x12f5eb)),this['_remoteChangesetQueue']=[];}[_0xade8c(0x229)](_0x31f4b7){const _0x5030c3=_0xade8c,_0x544f44=this[_0x5030c3(0xb6)]['interceptor'][_0x5030c3(0x1a1)](this['_compressMutationService'][_0x5030c3(0x1c4)]['getInterceptPoints']()[_0x5030c3(0x2c4)])(_0x31f4b7['mutations'],null)||_0x31f4b7['mutations'],_0x18252c={..._0x31f4b7,'mutations':_0x544f44};this[_0x5030c3(0x2b5)](),this['_updateState'](this[_0x5030c3(0xad)][_0x5030c3(0x2cb)](_0x18252c)),this[_0x5030c3(0x2e9)]();}[_0xade8c(0x30b)](_0x4743ef){const _0x20d042=_0xade8c;this[_0x20d042(0x2b5)](),this[_0x20d042(0x3b0)](this['_state']['onRemoteAck'](_0x4743ef)),this['_unlockTransition']();}[_0xade8c(0xb7)](_0x455b39){const _0x4a0576=_0xade8c;this[_0x4a0576(0x2b5)](),this[_0x4a0576(0x3b0)](this['_state'][_0x4a0576(0xaf)](_0x455b39)),this[_0x4a0576(0x2e9)]();}['_onFetchMissResult'](_0x585cb3){const _0x33f613=_0xade8c;if(!(this[_0x33f613(0xad)]instanceof G))throw new TypeError(_0x33f613(0x183));const _0x5a4d31=_0x585cb3['map'](_0x69dc9d=>{const _0x13b7f9=_0x33f613,_0x4dbd68=this['_compressMutationService'][_0x13b7f9(0x1c4)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x13b7f9(0x1c4)][_0x13b7f9(0x343)]()['COMPRESS_MUTATION_APPLY'])(_0x69dc9d[_0x13b7f9(0xf5)],null)||_0x69dc9d['mutations'];return{..._0x69dc9d,'mutations':_0x4dbd68};});this['_lockTransition'](),this[_0x33f613(0x3b0)](this[_0x33f613(0xad)][_0x33f613(0x37b)](_0x5a4d31)),this[_0x33f613(0x2e9)]();}[_0xade8c(0x209)](){const _0x1a53e2=_0xade8c;this[_0x1a53e2(0x2b5)](),this['_updateState'](this[_0x1a53e2(0xad)][_0x1a53e2(0x11d)]()),this[_0x1a53e2(0x2e9)]();}[_0xade8c(0x318)](){const _0xcd8cdf=_0xade8c;this[_0xcd8cdf(0x2b5)](),this[_0xcd8cdf(0x3b0)](this[_0xcd8cdf(0xad)][_0xcd8cdf(0x27f)]()),this[_0xcd8cdf(0x2e9)]();}async[_0xade8c(0x396)](){return new Promise(_0x2599ba=>{const _0xf9ee30=_0x4292;this[_0xf9ee30(0x8f)][_0xf9ee30(0x17f)][_0xf9ee30(0x2fe)](_0x4efd5d(0x1))[_0xf9ee30(0xbf)](async _0x90d580=>{const _0x49f410=_0xf9ee30;_0x2599ba(await this['_createInitialStateImpl'](_0x90d580===de[_0x49f410(0x241)]));});});}['_createHandler'](){const _0x17b786=_0xade8c,_0x2cd08d=this[_0x17b786(0x14d)];return{'onStateChange':(_0x46d870,_0x54b011)=>{const _0x1cdac7=_0x17b786;if(_0x46d870!==this[_0x1cdac7(0xad)])throw new Error(_0x1cdac7(0xf3)+_0x46d870[_0x1cdac7(0x3b8)]+_0x1cdac7(0x182)+_0x54b011['status']+'\x0aCurrent:\x20'+this['_state']['status']);this[_0x1cdac7(0x3b0)](_0x54b011);},'onSendChangeset':_0x1c3c1d=>{const _0x320115=_0x17b786,_0x156b85={'eventID':_0x1b9133[_0x320115(0x35a)],'data':{'unitID':_0x1c3c1d['unitID'],'unitType':this[_0x320115(0x10c)],'changeset':_0x1c3c1d,'memberID':this['_session']['getMemberID']()}};this[_0x320115(0x8f)][_0x320115(0x18a)](_0x156b85,this[_0x320115(0x14d)]);},'onMissingChangesets':({from:_0x471662,to:_0x12d738})=>{const _0x35deb1=_0x17b786;this[_0x35deb1(0x37f)][_0x35deb1(0x180)]('[CollaborationEntity]',_0x35deb1(0xa1)+_0x471662+'\x20to\x20'+_0x12d738);const _0x1154e5={'eventID':_0x1b9133[_0x35deb1(0x34f)],'data':{'unitID':_0x2cd08d,'unitType':this[_0x35deb1(0x10c)],'from':_0x471662,'to':_0x12d738}};this[_0x35deb1(0x8f)][_0x35deb1(0x18a)](_0x1154e5,this[_0x35deb1(0x14d)]);}};}async[_0xade8c(0x36c)](_0x25c2be){const _0x5036b1=_0xade8c;var _0x49976,_0x51393d;const _0x344050=await this[_0x5036b1(0xf7)][_0x5036b1(0x1c1)](this[_0x5036b1(0x14d)]),_0x3e7f7a=(_0x49976=_0x344050==null?void 0x0:_0x344050[_0x5036b1(0xf5)])!=null?_0x49976:[],_0x15a7da=(_0x51393d=_0x344050==null?void 0x0:_0x344050[_0x5036b1(0x206)])!=null?_0x51393d:null,_0x2b2782=this[_0x5036b1(0x14d)];try{this['_replayCachedMutations'](_0x15a7da,_0x3e7f7a);}catch(_0x5c531f){this['_logService'][_0x5036b1(0x2cf)](_0x5c531f);}const _0xf7dd4c=this[_0x5036b1(0xa7)]();if(_0x25c2be){const _0xd8dba0=Ms(this[_0x5036b1(0xcc)],_0x2b2782,this[_0x5036b1(0x10c)],_0x15a7da,_0x3e7f7a,_0xf7dd4c);return _0xd8dba0 instanceof k?_0xd8dba0['_schedule']():(_0xd8dba0 instanceof W||_0xd8dba0 instanceof q)&&_0xd8dba0[_0x5036b1(0x1a7)](),_0xd8dba0;}return this['_injector'][_0x5036b1(0x371)](z,_0x2b2782,this[_0x5036b1(0x10c)],_0x15a7da,_0x3e7f7a,_0xf7dd4c);}[_0xade8c(0x129)](_0x1ea1ad,_0x8f6027){const _0x53b74b=_0xade8c;var _0x3168f3,_0xe4d3fb;const _0x4ac9af=this[_0x53b74b(0xb6)][_0x53b74b(0x1c4)]['fetchThroughInterceptors'](this[_0x53b74b(0xb6)][_0x53b74b(0x1c4)][_0x53b74b(0x343)]()['COMPRESS_MUTATION_APPLY']);(_0x3168f3=_0x4ac9af((_0x1ea1ad==null?void 0x0:_0x1ea1ad[_0x53b74b(0xf5)])||[],null))==null||_0x3168f3['forEach'](_0x2e07c2=>this[_0x53b74b(0x1ba)][_0x53b74b(0x340)](_0x2e07c2['id'],_0x2e07c2['params'])),(_0xe4d3fb=_0x4ac9af(_0x8f6027||[],null))==null||_0xe4d3fb[_0x53b74b(0x2f2)](_0x1f6fcf=>this[_0x53b74b(0x1ba)]['executeCommand'](_0x1f6fcf['id'],_0x1f6fcf[_0x53b74b(0x27a)]));}};ze=tt([S(0x3,_0xd901da(_0x3c61ae)),S(0x4,_0xd901da(D)),S(0x5,_0xd901da(_0x150830)),S(0x6,_0xd901da(_0x3fbf2b)),S(0x7,_0xd901da(_0x432311)),S(0x8,_0x255408),S(0x9,_0x3f64f1),S(0xa,_0x48de42),S(0xb,_0x1b6020),S(0xc,_0x3badbf(et))],ze);let vt=class extends ze{constructor(_0x5924cb,_0x3d28ca,_0x45ac60,_0x18c30c,_0x326690,_0x151270,_0x115a24,_0x3982a1,_0x14268b,_0x527ce8,_0x182052,_0x529153,_0x4b0ec2,_0x2296a2,_0x2fbf34,_0xe6a5f0,_0x4fb299){const _0x155575=_0xade8c;super(_0x5924cb,_0x3d28ca,_0x45ac60,_0x18c30c,_0x326690,_0x151270,_0x115a24,_0x3982a1,_0x4b0ec2,_0x2296a2,_0x2fbf34,_0xe6a5f0,_0x4fb299),this[_0x155575(0x14d)]=_0x5924cb,this['type']=_0x3d28ca,this[_0x155575(0x1ef)]=_0x45ac60,this['_docStateChangeManagerService']=_0x14268b,this[_0x155575(0x157)]=_0x527ce8,this[_0x155575(0x3a2)]=_0x182052,this[_0x155575(0xb8)]=_0x529153;}[_0xade8c(0xa7)](){const _0x20285d=_0xade8c,_0x31b488=super['_createHandler']();return _0x31b488['onTransformIME']=_0x788139=>this['_docTransformIMECacheService'][_0x20285d(0x105)](_0x788139),_0x31b488[_0x20285d(0x366)]=_0x4ac55b=>this[_0x20285d(0x3a2)][_0x20285d(0x2f4)](_0x4ac55b),_0x31b488[_0x20285d(0x2b8)]=_0x5ece15=>this[_0x20285d(0xb8)][_0x20285d(0x297)](_0x5ece15),_0x31b488[_0x20285d(0x161)]=_0x5943af=>this[_0x20285d(0x157)][_0x20285d(0x17a)](_0x5943af),_0x31b488;}async['_init'](){const _0x35ef61=_0xade8c,_0x47c4ca=await super[_0x35ef61(0x312)]();return this['_docStateChangeManagerService']['docStateChange$'][_0x35ef61(0x2fe)](_0x2473df(this['dispose$']))[_0x35ef61(0xbf)](_0x2fc0dc=>{const _0x555691=_0x35ef61;if(_0x2fc0dc==null)return;const {unitId:_0xaf5ab9,redoState:_0xbd967a,commandId:_0xfb2fe}=_0x2fc0dc;if(_0xaf5ab9!==this[_0x555691(0x14d)])return;const _0x522b15={'id':_0xfb2fe,'type':_0x25ba1e[_0x555691(0x79)],'params':{'unitId':_0xaf5ab9,'actions':_0xbd967a[_0x555691(0x2ba)],'textRanges':null}};this[_0x555691(0x352)](_0x522b15);}),_0x47c4ca;}};vt=tt([S(0x3,_0xd901da(_0x3c61ae)),S(0x4,_0xd901da(D)),S(0x5,_0xd901da(_0x150830)),S(0x6,_0xd901da(_0x3fbf2b)),S(0x7,_0xd901da(_0x432311)),S(0x8,_0xd901da(_0x36a6d8)),S(0x9,_0xd901da(Xe)),S(0xa,_0xd901da(Je)),S(0xb,_0xd901da(Ut)),S(0xc,_0x255408),S(0xd,_0x3f64f1),S(0xe,_0x48de42),S(0xf,_0x1b6020),S(0x10,_0x3badbf(et))],vt);let pt=class extends ze{constructor(_0x5f18ae,_0x3a6692,_0xc7e70b,_0x4f11f9,_0x10c13c,_0x3215df,_0xf52d4,_0x5291d5,_0x3252ba,_0x4376bb,_0x2aea96,_0x250b43,_0x4ca628,_0x389e20){const _0x35cbd6=_0xade8c;super(_0x5f18ae,_0x3a6692,_0xc7e70b,_0x4f11f9,_0x10c13c,_0x3215df,_0xf52d4,_0x5291d5,_0x4376bb,_0x2aea96,_0x250b43,_0x4ca628,_0x389e20),this[_0x35cbd6(0x14d)]=_0x5f18ae,this[_0x35cbd6(0x207)]=_0x3a6692,this[_0x35cbd6(0x1ef)]=_0xc7e70b,this['_sheetTransformSelectionsService']=_0x3252ba;}[_0xade8c(0xa7)](){const _0x9f092f=_0xade8c,_0x44a92a=super[_0x9f092f(0xa7)]();return _0x44a92a['onTransformSelections']=_0x37d6a7=>this['_sheetTransformSelectionsService'][_0x9f092f(0x2f4)](_0x37d6a7),_0x44a92a;}async[_0xade8c(0x312)](){const _0x4906eb=_0xade8c,_0xfa0f0c=await super[_0x4906eb(0x312)]();return this['disposeWithMe'](this[_0x4906eb(0x1ba)][_0x4906eb(0x8a)]((_0x55769b,_0x4fad19)=>{const _0x1536af=_0x4906eb;if(_0x55769b[_0x1536af(0x207)]!==_0x25ba1e[_0x1536af(0x79)]||_0x4fad19!=null&&_0x4fad19[_0x1536af(0x177)]||_0x4fad19!=null&&_0x4fad19['onlyLocal'])return;const _0x3ae25a=_0x55769b[_0x1536af(0x27a)];if((_0x3ae25a==null?void 0x0:_0x3ae25a['unitId'])!==this[_0x1536af(0x14d)])return;const _0x41750a=_0x55769b,_0x7e0d42=this[_0x1536af(0xb6)]['interceptor'][_0x1536af(0x1a1)](this[_0x1536af(0xb6)][_0x1536af(0x1c4)][_0x1536af(0x343)]()[_0x1536af(0x7d)])([_0x41750a],null)||[_0x41750a];this['_onLocalMutation'](_0x7e0d42[0x0]);})),_0xfa0f0c;}};pt=tt([S(0x3,_0xd901da(_0x3c61ae)),S(0x4,_0xd901da(D)),S(0x5,_0xd901da(_0x150830)),S(0x6,_0xd901da(_0x3fbf2b)),S(0x7,_0xd901da(_0x432311)),S(0x8,_0xd901da(qe)),S(0x9,_0x255408),S(0xa,_0x3f64f1),S(0xb,_0x48de42),S(0xc,_0x1b6020),S(0xd,_0x3badbf(et))],pt);const es=[_0xade8c(0x2ff),_0xade8c(0x122),'verdancy600',_0xade8c(0x12f),_0xade8c(0x162),_0xade8c(0x2f6)];class Lt extends _0x5297f3{constructor(){const _0x5f445c=_0xade8c;super(...arguments),l(this,_0x5f445c(0x2aa),new Map()),l(this,_0x5f445c(0x37a),0x0);}['assignAColorForMemberID'](_0x29d1de){const _0x4412ed=_0xade8c;if(this[_0x4412ed(0x2aa)]['has'](_0x29d1de))return this[_0x4412ed(0x2aa)][_0x4412ed(0x275)](_0x29d1de);const _0x5b7cae=es[this[_0x4412ed(0x37a)]];return this[_0x4412ed(0x37a)]=(this[_0x4412ed(0x37a)]+0x1)%es['length'],this['_assignedColors'][_0x4412ed(0xbd)](_0x29d1de,_0x5b7cae),_0x5b7cae;}}var zn=Object['defineProperty'],Zn=Object['getOwnPropertyDescriptor'],Qn=(_0x5c6b91,_0x192852,_0x4fb3de,_0x57125c)=>{for(var _0x480355=_0x57125c>0x1?void 0x0:_0x57125c?Zn(_0x192852,_0x4fb3de):_0x192852,_0x3ddca7=_0x5c6b91['length']-0x1,_0x313168;_0x3ddca7>=0x0;_0x3ddca7--)(_0x313168=_0x5c6b91[_0x3ddca7])&&(_0x480355=(_0x57125c?_0x313168(_0x192852,_0x4fb3de,_0x480355):_0x313168(_0x480355))||_0x480355);return _0x57125c&&_0x480355&&zn(_0x192852,_0x4fb3de,_0x480355),_0x480355;},he=(_0x15ec39,_0x2250d9)=>(_0x257be7,_0x48bc37)=>_0x2250d9(_0x257be7,_0x48bc37,_0x15ec39);const er=0x12c,tr=0x64,sr=()=>{let _0x4640ea=[],_0x1516ec=!0x1;return _0x20c656=>{_0x4640ea['push'](_0x20c656),_0x1516ec||(_0x1516ec=!0x0,setTimeout(()=>{const _0x249c2c=_0x4292;_0x4640ea[_0x249c2c(0x2f2)](_0x64d09=>_0x64d09()),_0x4640ea=[],_0x1516ec=!0x1;}));};};let It=class extends _0x3fb7e3{constructor(_0x58dc65,_0x4fc353,_0x4878fa,_0x525431,_0x31c13a,_0x2e170e,_0x30045b,_0x595467){const _0x1fa963=_0xade8c;super(),l(this,_0x1fa963(0x93),!0x1),l(this,_0x1fa963(0x312),!0x1),l(this,_0x1fa963(0x280),new _0x1a37bf(new Map())),l(this,'cursorInfo$',this[_0x1fa963(0x280)]['asObservable']()),l(this,_0x1fa963(0x225),new _0x1a37bf([])),l(this,_0x1fa963(0x35c),this[_0x1fa963(0x225)][_0x1fa963(0x2fe)](_0x2ec9db(er))),l(this,_0x1fa963(0x1c5),_0x1ebe66((_0x1aed9e,_0x2c4332)=>{const _0x45b4f1=_0x1fa963,_0xa66a41={'eventID':_0x1b9133[_0x45b4f1(0x390)],'data':{'unitID':this['unitID'],'memberID':this[_0x45b4f1(0x8f)]['getMemberID'](),'selection':_0x1b1c8a(_0x1aed9e,_0x2c4332[_0x45b4f1(0x2c3)])}};this[_0x45b4f1(0x8f)][_0x45b4f1(0x18a)](_0xa66a41,this[_0x45b4f1(0x14d)]);},tr)),(this[_0x1fa963(0x14d)]=_0x58dc65,this[_0x1fa963(0x8f)]=_0x4fc353,this['_injector']=_0x4878fa,this[_0x1fa963(0x258)]=_0x525431,this[_0x1fa963(0x311)]=_0x31c13a,this[_0x1fa963(0x1c2)]=_0x2e170e,this['_commandService']=_0x30045b,this['_refRangeService']=_0x595467);}get[_0xade8c(0x294)](){const _0x4211ec=_0xade8c;return this['_cursorInfo$'][_0x4211ec(0x17d)]();}get['roomMembers'](){const _0x4c4ab8=_0xade8c;return this[_0x4c4ab8(0x225)][_0x4c4ab8(0x17d)]();}[_0xade8c(0x199)](){const _0x2f780e=_0xade8c;super[_0x2f780e(0x199)](),this[_0x2f780e(0x280)][_0x2f780e(0xab)](new Map()),this[_0x2f780e(0x280)][_0x2f780e(0x239)](),this['_roomMembers$'][_0x2f780e(0xab)]([]),this['_roomMembers$'][_0x2f780e(0x239)]();}[_0xade8c(0x254)](){const _0x46a67b=_0xade8c;this[_0x46a67b(0x312)]||(this[_0x46a67b(0x312)]=!0x0,this['_session']['sessionStatus$'][_0x46a67b(0x2fe)](_0x2473df(this[_0x46a67b(0x13d)]))[_0x46a67b(0xbf)](_0x1f6c3e=>{const _0x32b169=_0x46a67b;_0x1f6c3e===de[_0x32b169(0x241)]?this[_0x32b169(0x318)]():this['_toggleOffline']();}),this[_0x46a67b(0x8f)][_0x46a67b(0x2ea)][_0x46a67b(0x2fe)](_0x2473df(this['dispose$']))[_0x46a67b(0xbf)](_0x1475be=>{const _0x17e634=_0x46a67b,_0x2ac722=_0x1475be[_0x17e634(0x13b)];_0x2ac722===_0x1b9133['UPDATE_CURSOR']&&this[_0x17e634(0x32d)](_0x1475be),_0x2ac722===_0x1b9133[_0x17e634(0x8b)]&&this[_0x17e634(0x1aa)](_0x1475be);}),this['_onRefRangeChange'](),this[_0x46a67b(0x1f1)](this[_0x46a67b(0x1ba)][_0x46a67b(0x8a)](_0x4b4c4c=>{const _0x189fec=_0x46a67b;if(this[_0x189fec(0x93)]&&_0x4b4c4c['id']===_0x45efda['id']&&_0x4b4c4c['params'][_0x189fec(0x158)]===this[_0x189fec(0x14d)]){const _0x359609=_0x4b4c4c['params'];this[_0x189fec(0x1c5)](_0x359609[_0x189fec(0x205)],_0x359609[_0x189fec(0xb3)][0x0]);}})));}[_0xade8c(0x32d)](_0x487874){const _0x30af03=_0xade8c;var _0x5967ba,_0xc53d49;const {memberID:_0x4fd97d,selection:_0x3e0ed3}=_0x487874[_0x30af03(0x19b)],{sheetName:_0x12229e,range:_0x2b1c8a}=_0x35f0e9(_0x3e0ed3),_0x279bb1={'name':(_0xc53d49=(_0x5967ba=this[_0x30af03(0x311)][_0x30af03(0xa5)](this[_0x30af03(0x14d)],_0x4fd97d))==null?void 0x0:_0x5967ba[_0x30af03(0x89)])!=null?_0xc53d49:_0x30af03(0x381),'range':this[_0x30af03(0x1b1)](_0x12229e,_0x2b1c8a),'sheetID':_0x12229e,'color':this[_0x30af03(0x258)]['assignAColorForMemberID'](_0x4fd97d),'selection':_0x3e0ed3},_0x942893=this[_0x30af03(0x294)];_0x942893[_0x30af03(0xbd)](_0x4fd97d,_0x279bb1),this['_cursorInfo$'][_0x30af03(0xab)](_0x942893);}[_0xade8c(0x1aa)](_0x35ff84){const _0x5e5ea4=_0xade8c,{memberID:_0x262508}=_0x35ff84[_0x5e5ea4(0x19b)],_0x5b7155=this[_0x5e5ea4(0x294)];_0x5b7155[_0x5e5ea4(0x39d)](_0x262508),this[_0x5e5ea4(0x280)][_0x5e5ea4(0xab)](_0x5b7155);}[_0xade8c(0x1b1)](_0x3c31d0,_0x4815c2){const _0x507e28=_0xade8c;var _0x5441df,_0x959ee5;const _0xb1a01e=(_0x959ee5=(_0x5441df=this[_0x507e28(0x1c2)][_0x507e28(0x351)](this['unitID']))==null?void 0x0:_0x5441df[_0x507e28(0x13e)](_0x3c31d0))==null?void 0x0:_0x959ee5['getMergeData']();return(_0xb1a01e==null?void 0x0:_0xb1a01e[_0x507e28(0x18f)](_0x245fa2=>_0x16c0da[_0x507e28(0x17b)](_0x245fa2,_0x4815c2)))||_0x4815c2;}[_0xade8c(0x3a5)](){const _0x4f6b21=new _0x5e2383(),_0x56e604=sr(),_0x4e14d3=()=>{const _0x47f40a=_0x4292;_0x4f6b21[_0x47f40a(0x199)]();const _0xf7e318=(_0x5e9f17,_0x2a104f,_0x3a606b,_0x552155)=>{const _0x42ae36=_0x47f40a;let _0x19a19a=[];switch(_0x5e9f17['id']){case _0x117f68[_0x42ae36(0x1ab)]:{_0x19a19a=_0x4b1cd0(_0x5e9f17,_0x552155);break;}case _0x117f68['DeleteRangeMoveUpCommandId']:{_0x19a19a=_0x1ec5bf(_0x5e9f17,_0x552155);break;}case _0x117f68[_0x42ae36(0x132)]:{_0x19a19a=_0x2fe4c1(_0x5e9f17,_0x552155);break;}case _0x117f68['InsertRangeMoveDownCommandId']:{_0x19a19a=_0x273ca7(_0x5e9f17,_0x552155);break;}case _0x117f68['InsertRangeMoveRightCommandId']:{_0x19a19a=_0x5acc49(_0x5e9f17,_0x552155);break;}case _0x117f68[_0x42ae36(0xe7)]:{_0x19a19a=_0x59ae3e(_0x5e9f17,_0x552155);break;}case _0x117f68[_0x42ae36(0xd1)]:{_0x19a19a=_0x269fef(_0x5e9f17,_0x552155);break;}case _0x117f68[_0x42ae36(0x1f4)]:{_0x19a19a=_0x4a8c83(_0x5e9f17,_0x552155);break;}case _0x117f68[_0x42ae36(0xee)]:{_0x19a19a=_0x4e9436(_0x5e9f17,_0x552155);break;}}const _0x32a099=_0x40799b(_0x19a19a,_0x552155),_0x43858b=this[_0x42ae36(0x294)]['get'](_0x2a104f);if(_0x43858b&&_0x32a099){const _0x40543c={..._0x43858b,'range':_0x32a099};this[_0x42ae36(0x294)][_0x42ae36(0xbd)](_0x2a104f,_0x40543c),_0x56e604(()=>{const _0x43c078=_0x42ae36,_0x17f43a=this[_0x43c078(0x37e)][_0x43c078(0x376)](_0x32a099,_0x370bf6=>(_0x17f43a[_0x43c078(0x199)](),_0xf7e318(_0x370bf6,_0x2a104f,_0x3a606b,_0x32a099)));_0x4f6b21[_0x43c078(0x21f)](_0x17f43a);});}return{'redos':[],'undos':[]};};this[_0x47f40a(0x294)]['forEach']((_0xa780b8,_0x8b9b7c)=>{const _0x2fb58a=_0x47f40a,{range:_0x33e838,sheetID:_0x3ec949}=_0xa780b8,_0xc863d9=this[_0x2fb58a(0x37e)][_0x2fb58a(0x376)](_0x33e838,_0x532b5b=>(_0xc863d9[_0x2fb58a(0x199)](),_0xf7e318(_0x532b5b,_0x8b9b7c,_0x3ec949,_0x33e838)));_0x4f6b21[_0x2fb58a(0x21f)](_0xc863d9);});};this['disposeWithMe'](_0x45cb21(this['_cursorInfo$']['subscribe'](()=>{_0x4e14d3();})));}['_toggleOnline'](){const _0x268019=_0xade8c;var _0x3f256d,_0x4ef46d;if(this['_online']=!0x0,((_0x3f256d=this[_0x268019(0x1c2)][_0x268019(0x16f)]())==null?void 0x0:_0x3f256d[_0x268019(0x350)]())!==this['unitID'])return;const _0x3de083=(_0x4ef46d=this['_injector'][_0x268019(0x275)](_0x49acad)[_0x268019(0x200)]())==null?void 0x0:_0x4ef46d[0x0],_0x42a17f=this[_0x268019(0x1c2)][_0x268019(0x227)](_0x9cd059[_0x268019(0x3a3)])[_0x268019(0x387)]();_0x3de083&&_0x42a17f&&this[_0x268019(0x1c5)](_0x42a17f[_0x268019(0x16e)](),_0x3de083);}['_toggleOffline'](){this['_online']=!0x1;}};It=Qn([he(0x2,_0xd901da(_0x3c61ae)),he(0x3,_0xd901da(Lt)),he(0x4,_0xd901da(ne)),he(0x5,_0x3b87df),he(0x6,_0x3f64f1),he(0x7,_0xd901da(_0x2d1308))],It);var ir=Object[_0xade8c(0x36b)],nr=Object['getOwnPropertyDescriptor'],rr=(_0xbfc68e,_0x206e04,_0x3d0741,_0x54e0b0)=>{for(var _0x1a21f9=_0x54e0b0>0x1?void 0x0:_0x54e0b0?nr(_0x206e04,_0x3d0741):_0x206e04,_0x5bae2f=_0xbfc68e['length']-0x1,_0x1648cb;_0x5bae2f>=0x0;_0x5bae2f--)(_0x1648cb=_0xbfc68e[_0x5bae2f])&&(_0x1a21f9=(_0x54e0b0?_0x1648cb(_0x206e04,_0x3d0741,_0x1a21f9):_0x1648cb(_0x1a21f9))||_0x1a21f9);return _0x54e0b0&&_0x1a21f9&&ir(_0x206e04,_0x3d0741,_0x1a21f9),_0x1a21f9;},te=(_0x199577,_0x4f4ab1)=>(_0x4071eb,_0x597822)=>_0x4f4ab1(_0x4071eb,_0x597822,_0x199577);const or=0x12c,ar=0x64;let Et=class extends _0x3fb7e3{constructor(_0x4040,_0x5c2b84,_0x4235ff,_0x203170,_0x2f0b50,_0x34527b,_0x380c63,_0x43984b,_0xcace45){const _0xc961d5=_0xade8c;super(),l(this,_0xc961d5(0x93),!0x1),l(this,_0xc961d5(0x312),!0x1),l(this,_0xc961d5(0x280),new _0x1a37bf(new Map())),l(this,_0xc961d5(0x3a0),this[_0xc961d5(0x280)]['asObservable']()),l(this,_0xc961d5(0x225),new _0x1a37bf([])),l(this,_0xc961d5(0x35c),this[_0xc961d5(0x225)][_0xc961d5(0x2fe)](_0x2ec9db(or))),l(this,'_updateLocalCursor',_0x1ebe66(_0x5e3d4b=>{const _0x5cc3c7=_0xc961d5,_0x16d805={'eventID':_0x1b9133[_0x5cc3c7(0x390)],'data':{'unitID':this['unitID'],'memberID':this[_0x5cc3c7(0x8f)][_0x5cc3c7(0xdc)](),'selection':Ns(_0x5e3d4b)}};this['_session'][_0x5cc3c7(0x18a)](_0x16d805,this[_0x5cc3c7(0x14d)]);},ar)),(this[_0xc961d5(0x14d)]=_0x4040,this[_0xc961d5(0x8f)]=_0x5c2b84,this[_0xc961d5(0xcc)]=_0x4235ff,this[_0xc961d5(0x258)]=_0x203170,this[_0xc961d5(0x311)]=_0x2f0b50,this[_0xc961d5(0x1e2)]=_0x34527b,this[_0xc961d5(0x8e)]=_0x380c63,this[_0xc961d5(0x1c2)]=_0x43984b,this[_0xc961d5(0x1ba)]=_0xcace45);}get[_0xade8c(0x294)](){const _0x4a0b55=_0xade8c;return this[_0x4a0b55(0x280)][_0x4a0b55(0x17d)]();}get[_0xade8c(0xe2)](){const _0x3ad072=_0xade8c;return this[_0x3ad072(0x225)]['getValue']();}[_0xade8c(0x199)](){const _0x33a77d=_0xade8c;super[_0x33a77d(0x199)](),this['_cursorInfo$'][_0x33a77d(0xab)](new Map()),this[_0x33a77d(0x280)]['complete'](),this[_0x33a77d(0x225)][_0x33a77d(0xab)]([]),this['_roomMembers$'][_0x33a77d(0x239)]();}['init'](){const _0x239c90=_0xade8c;this[_0x239c90(0x312)]||(this['_init']=!0x0,this['_session']['sessionStatus$'][_0x239c90(0x2fe)](_0x2473df(this['dispose$']))[_0x239c90(0xbf)](_0x35ad3f=>{const _0x1cd188=_0x239c90;_0x35ad3f===de[_0x1cd188(0x241)]?this[_0x1cd188(0x318)]():this['_toggleOffline']();}),this[_0x239c90(0x8f)][_0x239c90(0x2ea)][_0x239c90(0x2fe)](_0x2473df(this[_0x239c90(0x13d)]))[_0x239c90(0xbf)](_0xf2db09=>{const _0x55644b=_0x239c90,_0x4108fa=_0xf2db09['eventID'];_0x4108fa===_0x1b9133[_0x55644b(0x390)]&&this[_0x55644b(0x32d)](_0xf2db09),_0x4108fa===_0x1b9133[_0x55644b(0x8b)]&&this[_0x55644b(0x1aa)](_0xf2db09);}),this[_0x239c90(0x1f1)](this[_0x239c90(0x1ba)]['onCommandExecuted'](_0x3cd557=>{const _0x191651=_0x239c90,_0x26e6e4=_0x3cd557[_0x191651(0x27a)];_0x26e6e4!=null&&this[_0x191651(0x93)]&&_0x3cd557['id']===_0x55ed86['id']&&_0x26e6e4['unitId']===this[_0x191651(0x14d)]&&_0x26e6e4[_0x191651(0xe3)]===!0x1&&this[_0x191651(0x1c5)](_0x26e6e4['ranges']);})),this[_0x239c90(0x1e2)][_0x239c90(0x144)][_0x239c90(0x2fe)](_0x2473df(this[_0x239c90(0x13d)]))[_0x239c90(0xbf)](_0x564cd4=>{const _0x979ef0=_0x239c90;if((_0x564cd4==null?void 0x0:_0x564cd4[_0x979ef0(0x14d)])!==this[_0x979ef0(0x14d)])return;const _0x4f4f53={'eventID':_0x1b9133[_0x979ef0(0x390)],'data':_0x564cd4};this[_0x979ef0(0x32d)](_0x4f4f53);}),this[_0x239c90(0x1f1)](this['_commandService']['onCommandExecuted'](_0x33b8d9=>{const _0x4f8843=_0x239c90;if(_0x33b8d9[_0x4f8843(0x27a)]==null)return;const _0x475d26=_0x33b8d9[_0x4f8843(0x27a)];if(_0x33b8d9['id']!==_0x372b8c['id']||_0x475d26['unitId']!==this[_0x4f8843(0x14d)])return;const _0x50d2a6={'id':'doc.mutation.rich-text-editing','params':_0x475d26},_0x537402=this[_0x4f8843(0x294)];for(const [_0x32d64b,_0xde275]of _0x537402){const _0x279a83={'id':_0x4f8843(0x39b),'params':{'unitId':this[_0x4f8843(0x14d)],'actions':null,'textRanges':_0xde275[_0x4f8843(0x2a4)]}},_0x218cc1=this[_0x4f8843(0x8e)][_0x4f8843(0xaa)](_0x50d2a6,_0x279a83,!0x1);if(_0x1054d7(_0x218cc1))throw _0x218cc1[_0x4f8843(0x2cf)];_0x537402[_0x4f8843(0xbd)](_0x32d64b,{..._0xde275,'ranges':_0x218cc1[_0x4f8843(0x244)]['params'][_0x4f8843(0x22f)]});}queueMicrotask(()=>{const _0x5949fc=_0x4f8843;this[_0x5949fc(0x280)][_0x5949fc(0xab)](_0x537402);});})));}[_0xade8c(0x32d)](_0x5cbd59){const _0x3f0989=_0xade8c;var _0xfe5789,_0x3f4bfa;const {memberID:_0x264c98,selection:_0x511b95}=_0x5cbd59[_0x3f0989(0x19b)],_0x582ba4=xn(_0x511b95),_0x945ad7=(_0x3f4bfa=(_0xfe5789=this['_memberService'][_0x3f0989(0xa5)](this[_0x3f0989(0x14d)],_0x264c98))==null?void 0x0:_0xfe5789['name'])!=null?_0x3f4bfa:_0x3f0989(0x381),_0x9824d3={'color':this[_0x3f0989(0x258)][_0x3f0989(0x356)](_0x264c98),'name':_0x945ad7,'ranges':_0x582ba4},_0x27a25c=this[_0x3f0989(0x294)];_0x27a25c[_0x3f0989(0xbd)](_0x264c98,_0x9824d3),this[_0x3f0989(0x280)][_0x3f0989(0xab)](_0x27a25c);}['_onCursorDelete'](_0x5ca11b){const _0x9df0a9=_0xade8c,{memberID:_0x2b3cee}=_0x5ca11b['data'],_0x1fb4ef=this[_0x9df0a9(0x294)];_0x1fb4ef[_0x9df0a9(0x39d)](_0x2b3cee),this[_0x9df0a9(0x280)][_0x9df0a9(0xab)](_0x1fb4ef);}[_0xade8c(0x318)](){const _0x5f024f=_0xade8c;var _0x1e27f2;if(this[_0x5f024f(0x93)]=!0x0,((_0x1e27f2=this['_univerInstanceService'][_0x5f024f(0x16f)]())==null?void 0x0:_0x1e27f2[_0x5f024f(0x350)]())!==this[_0x5f024f(0x14d)])return;const _0x371742=this['_injector'][_0x5f024f(0x275)](_0x33f09e)[_0x5f024f(0x200)](),_0x49e943=_0x371742==null?void 0x0:_0x371742['map'](_0x5b7fb3);Array[_0x5f024f(0xc9)](_0x49e943)&&_0x49e943[_0x5f024f(0x331)]>0x0&&this[_0x5f024f(0x1c5)](_0x49e943);}[_0xade8c(0x209)](){const _0x1da93a=_0xade8c;this[_0x1da93a(0x93)]=!0x1;}};Et=rr([te(0x2,_0xd901da(_0x3c61ae)),te(0x3,_0xd901da(Lt)),te(0x4,_0xd901da(ne)),te(0x5,_0xd901da(Ut)),te(0x6,_0x581964),te(0x7,_0x3b87df),te(0x8,_0x3f64f1)],Et);var cr=Object[_0xade8c(0x36b)],hr=Object['getOwnPropertyDescriptor'],lr=(_0x4deff2,_0x311709,_0x3c9c92,_0x2a7abe)=>{const _0x53c650=_0xade8c;for(var _0x1403d1=_0x2a7abe>0x1?void 0x0:_0x2a7abe?hr(_0x311709,_0x3c9c92):_0x311709,_0x550948=_0x4deff2[_0x53c650(0x331)]-0x1,_0x5ec28f;_0x550948>=0x0;_0x550948--)(_0x5ec28f=_0x4deff2[_0x550948])&&(_0x1403d1=(_0x2a7abe?_0x5ec28f(_0x311709,_0x3c9c92,_0x1403d1):_0x5ec28f(_0x1403d1))||_0x1403d1);return _0x2a7abe&&_0x1403d1&&cr(_0x311709,_0x3c9c92,_0x1403d1),_0x1403d1;},ct=(_0x17baae,_0x5c201a)=>(_0x6e4d8b,_0x506bc5)=>_0x5c201a(_0x6e4d8b,_0x506bc5,_0x17baae);let fe=class extends _0x3fb7e3{constructor(_0x54ace0,_0x325f95,_0x5e79d4){const _0x543626=_0xade8c;super(),l(this,'_entities',new Map()),l(this,_0x543626(0x320),new _0x3718e0()),(this[_0x543626(0x1c2)]=_0x54ace0,this['_injector']=_0x325f95,this[_0x543626(0x2fd)]=_0x5e79d4,this[_0x543626(0x312)]());}['dispose'](){const _0x5dd0cb=_0xade8c;super[_0x5dd0cb(0x199)](),this['_entityInit$'][_0x5dd0cb(0x239)](),this[_0x5dd0cb(0x306)][_0x5dd0cb(0x2f2)](_0x51b32f=>_0x51b32f[_0x5dd0cb(0x199)]());}[_0xade8c(0x1f8)](_0x269a75){const _0x15c7de=_0xade8c;return this['_entities'][_0x15c7de(0x1e7)](_0x269a75)?this[_0x15c7de(0x306)][_0x15c7de(0x275)](_0x269a75)[_0x15c7de(0x3a0)]:this[_0x15c7de(0x320)][_0x15c7de(0x2fe)](_0x2a5048(_0x3e16d8=>_0x3e16d8[_0x15c7de(0x14d)]===_0x269a75),_0x2075a8(_0x37eee6=>_0x37eee6[_0x15c7de(0x3a0)]));}['_init'](){const _0x281a13=_0xade8c;this['_univerInstanceService'][_0x281a13(0x252)](_0x9cd059[_0x281a13(0x3a3)])[_0x281a13(0x2fe)](_0x2473df(this[_0x281a13(0x13d)]))[_0x281a13(0xbf)](async _0x28e18a=>{const _0x2e4285=_0x281a13,_0x1f8da6=_0x28e18a[_0x2e4285(0x350)](),_0x482291=await this[_0x2e4285(0x99)](_0x1f8da6);this[_0x2e4285(0x320)][_0x2e4285(0xab)](_0x482291),this['_entities']['set'](_0x1f8da6,_0x482291);}),this[_0x281a13(0x1c2)][_0x281a13(0x252)](_0x9cd059[_0x281a13(0x1c7)])[_0x281a13(0x2fe)](_0x2473df(this[_0x281a13(0x13d)]))[_0x281a13(0x2fe)](_0x2a5048(_0x3ff9c4=>!_0x3ff9c4['getUnitId']()[_0x281a13(0xfc)]('__')))[_0x281a13(0xbf)](async _0x48efa9=>{const _0x1d5dc9=_0x281a13,_0x21b5aa=_0x48efa9[_0x1d5dc9(0x350)](),_0x579848=await this[_0x1d5dc9(0x290)](_0x21b5aa);this['_entityInit$'][_0x1d5dc9(0xab)](_0x579848),this[_0x1d5dc9(0x306)][_0x1d5dc9(0xbd)](_0x21b5aa,_0x579848);}),_0x52fd0c(this[_0x281a13(0x1c2)][_0x281a13(0x1a4)](_0x9cd059[_0x281a13(0x1c7)]),this['_univerInstanceService'][_0x281a13(0x1a4)](_0x9cd059[_0x281a13(0x3a3)]))[_0x281a13(0x2fe)](_0x2473df(this[_0x281a13(0x13d)]))[_0x281a13(0xbf)](_0x12f577=>{const _0x562514=_0x281a13,_0x12df5a=_0x12f577[_0x562514(0x350)](),_0x1d9472=this[_0x562514(0x306)][_0x562514(0x275)](_0x12df5a);_0x1d9472&&(_0x1d9472[_0x562514(0x199)](),this['_entities'][_0x562514(0x39d)](_0x12df5a));});}async['_startSheetCollabCursor'](_0x10fcf5){const _0x27e700=_0xade8c,_0x5c6cd6=await this[_0x27e700(0x2fd)][_0x27e700(0x12b)](_0x10fcf5),_0x546ca4=this[_0x27e700(0xcc)][_0x27e700(0x371)](It,_0x10fcf5,_0x5c6cd6);return _0x546ca4['init'](),_0x546ca4;}async[_0xade8c(0x290)](_0xc04a07){const _0x4cbb40=_0xade8c,_0x439870=await this['_collabSessionService'][_0x4cbb40(0x12b)](_0xc04a07),_0x3a2b28=this[_0x4cbb40(0xcc)][_0x4cbb40(0x371)](Et,_0xc04a07,_0x439870);return _0x3a2b28['init'](),_0x3a2b28;}};fe=lr([_0x22ab7a(_0x35f1ee[_0xade8c(0xd2)],fe),ct(0x0,_0x3b87df),ct(0x1,_0xd901da(_0x3c61ae)),ct(0x2,_0xd901da(ge))],fe);const Me=0x14,ts=0xc8,ht=0x4,_r=0x5;function ur(_0x2633ae,_0x3e95d8){const _0x4afb53=_0xade8c;let {radius:_0x2e57a0,width:_0x1408e4,height:_0x3eef43}=_0x3e95d8;_0x2e57a0=_0x2e57a0!=null?_0x2e57a0:0x0,_0x1408e4=_0x1408e4!=null?_0x1408e4:0x1e,_0x3eef43=_0x3eef43!=null?_0x3eef43:0x1e;let _0x846488=0x0,_0x3f3135=0x0,_0x270cf0=0x0;_0x846488=_0x3f3135=_0x270cf0=Math[_0x4afb53(0x194)](_0x2e57a0,_0x1408e4/0x2,_0x3eef43/0x2),_0x2633ae['beginPath'](),_0x2633ae[_0x4afb53(0x37c)](_0x846488,0x0),_0x2633ae[_0x4afb53(0x18b)](_0x1408e4-_0x3f3135,0x0),_0x2633ae[_0x4afb53(0x165)](_0x1408e4-_0x3f3135,_0x3f3135,_0x3f3135,Math['PI']*0x3/0x2,0x0,!0x1),_0x2633ae[_0x4afb53(0x18b)](_0x1408e4,_0x3eef43-_0x270cf0),_0x2633ae[_0x4afb53(0x165)](_0x1408e4-_0x270cf0,_0x3eef43-_0x270cf0,_0x270cf0,0x0,Math['PI']/0x2,!0x1),_0x2633ae[_0x4afb53(0x18b)](0x0,_0x3eef43),_0x2633ae[_0x4afb53(0x18b)](0x0,_0x846488),_0x2633ae['arc'](_0x846488,_0x846488,_0x846488,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2633ae[_0x4afb53(0x29f)](),_0x3e95d8['fill']&&(_0x2633ae[_0x4afb53(0x325)](),_0x2633ae[_0x4afb53(0x1db)]=_0x3e95d8[_0x4afb53(0x204)],_0x3e95d8[_0x4afb53(0x1f0)]==='evenodd'?_0x2633ae[_0x4afb53(0x204)](_0x4afb53(0x112)):_0x2633ae['fill'](),_0x2633ae[_0x4afb53(0x191)]());}class st extends _0xd0c38{constructor(_0x2d2f70,_0x1fdc62){const _0x3eb6dc=_0xade8c;super(_0x2d2f70,_0x1fdc62),l(this,_0x3eb6dc(0xe6)),l(this,_0x3eb6dc(0x29c)),(this[_0x3eb6dc(0xe6)]=_0x1fdc62==null?void 0x0:_0x1fdc62[_0x3eb6dc(0xe6)],this[_0x3eb6dc(0x29c)]=_0x1fdc62==null?void 0x0:_0x1fdc62[_0x3eb6dc(0x29c)]);}static[_0xade8c(0x301)](_0x3fbd97,_0x37c93c){const _0x474765=_0xade8c,{text:_0x2dd524,color:_0x1b1c3d}=_0x37c93c;_0x3fbd97['save'](),_0x3fbd97['font']=_0x474765(0xc6);const _0xaf86c7=_0x3fbd97[_0x474765(0x1fc)](_0x2dd524)['width'],_0x557724=Math[_0x474765(0x194)](_0xaf86c7+0x2*ht,ts);ur(_0x3fbd97,{'height':Me,'radius':0x4,'width':_0x557724,'fill':_0x1b1c3d,'evented':!0x1}),_0x3fbd97[_0x474765(0x1db)]=_0x474765(0x264);const _0x3e722a=ht,_0x59dd9e=Me-_r,_0x5dfb0e=ts-0x2*ht;if(_0xaf86c7>_0x5dfb0e){let _0x2d060b='',_0x384039=0x0;for(const _0x438d57 of _0x2dd524){const _0x337d61=_0x3fbd97[_0x474765(0x1fc)](_0x438d57)['width'];if(_0x384039+_0x337d61<=_0x5dfb0e-_0x3fbd97[_0x474765(0x1fc)]('...')[_0x474765(0x9e)])_0x2d060b+=_0x438d57,_0x384039+=_0x337d61;else{_0x2d060b+=_0x474765(0x317);break;}}_0x3fbd97[_0x474765(0x1c3)](_0x2d060b,_0x3e722a,_0x59dd9e);}else _0x3fbd97['fillText'](_0x2dd524,_0x3e722a,_0x59dd9e);_0x3fbd97[_0x474765(0x191)]();}[_0xade8c(0x176)](_0x1000bd){st['drawWith'](_0x1000bd,this);}}const dr=0x1,fr=1.5;class mr extends _0xd0c38{constructor(_0x263a52,_0x28a6fd){const _0x4c4113=_0xade8c;super(_0x263a52,_0x28a6fd),l(this,_0x4c4113(0x16c)),l(this,_0x4c4113(0x304),!0x1),l(this,_0x4c4113(0x27e)),l(this,_0x4c4113(0xa9),''),l(this,_0x4c4113(0x307),'top'),(_0x28a6fd&&this[_0x4c4113(0x22c)](_0x28a6fd),this[_0x4c4113(0x1d1)][_0x4c4113(0x17c)](()=>this[_0x4c4113(0x22c)]({'hovered':!0x0})),this[_0x4c4113(0xba)][_0x4c4113(0x17c)](()=>this[_0x4c4113(0x22c)]({'hovered':!0x1})));}[_0xade8c(0x22c)](_0x5c9917){const _0xc0bf95=_0xade8c;var _0x131cc5,_0x5d28fb,_0x4c699a,_0x1bd3e8,_0x24373a;this['_color']=(_0x131cc5=_0x5c9917[_0xc0bf95(0xe6)])!=null?_0x131cc5:this['_color'],this['_hovered']=(_0x5d28fb=_0x5c9917[_0xc0bf95(0x1d5)])!=null?_0x5d28fb:this[_0xc0bf95(0x304)],this[_0xc0bf95(0x27e)]=(_0x4c699a=_0x5c9917['range'])!=null?_0x4c699a:this[_0xc0bf95(0x27e)],this[_0xc0bf95(0xa9)]=(_0x1bd3e8=_0x5c9917['name'])!=null?_0x1bd3e8:this['_name'],this[_0xc0bf95(0x307)]=(_0x24373a=_0x5c9917[_0xc0bf95(0x10e)])!=null?_0x24373a:this['_labelPosition'],this[_0xc0bf95(0x375)]({'width':_0x5c9917[_0xc0bf95(0x9e)],'height':_0x5c9917[_0xc0bf95(0x267)]});}[_0xade8c(0x2fc)](_0x2b85b7){const _0x2f3288=_0xade8c,{row:_0x77607a,column:_0x324ce2}=_0x2b85b7;if(_0x77607a>=this[_0x2f3288(0x27e)]['startRow']&&_0x77607a<=this[_0x2f3288(0x27e)][_0x2f3288(0x137)]&&_0x324ce2>=this['_range'][_0x2f3288(0x215)]&&_0x324ce2<=this[_0x2f3288(0x27e)][_0x2f3288(0x2cc)]){this[_0x2f3288(0x22c)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0xade8c(0xeb)](_0x50366d){return!0x1;}[_0xade8c(0x176)](_0x284460){const _0x6aa118=_0xade8c;_0x2d5bd9['drawWith'](_0x284460,{'width':this[_0x6aa118(0x9e)],'height':this['height'],'strokeWidth':fr,'stroke':this[_0x6aa118(0x16c)],'evented':!0x1}),this['_hovered']&&(_0x284460[_0x6aa118(0x325)](),_0x284460[_0x6aa118(0x7f)](0x1,0x0,0x0,0x1,this[_0x6aa118(0x9e)],this['_labelPosition']===_0x6aa118(0x2ac)?0x0:-Me),st[_0x6aa118(0x301)](_0x284460,{'text':this[_0x6aa118(0xa9)],'color':this['_color']}),_0x284460[_0x6aa118(0x191)]());}}var gr=Object[_0xade8c(0x36b)],Sr=Object['getOwnPropertyDescriptor'],vr=(_0x46e265,_0x55ea1d,_0x4841d4,_0x202b6c)=>{const _0x9cccd9=_0xade8c;for(var _0x3c7db1=_0x202b6c>0x1?void 0x0:_0x202b6c?Sr(_0x55ea1d,_0x4841d4):_0x55ea1d,_0x33c6eb=_0x46e265[_0x9cccd9(0x331)]-0x1,_0x19d847;_0x33c6eb>=0x0;_0x33c6eb--)(_0x19d847=_0x46e265[_0x33c6eb])&&(_0x3c7db1=(_0x202b6c?_0x19d847(_0x55ea1d,_0x4841d4,_0x3c7db1):_0x19d847(_0x3c7db1))||_0x3c7db1);return _0x202b6c&&_0x3c7db1&&gr(_0x55ea1d,_0x4841d4,_0x3c7db1),_0x3c7db1;},$e=(_0x1f8354,_0x4831af)=>(_0x181f70,_0x35a479)=>_0x4831af(_0x181f70,_0x35a479,_0x1f8354);const pr=0x1389;let Ve=class extends _0x3fb7e3{constructor(_0x30e584,_0x4bcaf4,_0x24102d,_0x51ddef){const _0xec9ac1=_0xade8c;super(),l(this,_0xec9ac1(0x249),new Set()),l(this,_0xec9ac1(0x123),null),(this['_collabCursorController']=_0x30e584,this[_0xec9ac1(0x1c2)]=_0x4bcaf4,this['_renderManagerService']=_0x24102d,this[_0xec9ac1(0x26c)]=_0x51ddef,this[_0xec9ac1(0x312)]());}get['_sheetSkeletonManagerService'](){const _0x15fae5=_0xade8c;return this[_0x15fae5(0x2ec)][_0x15fae5(0x21a)](this[_0x15fae5(0x1c2)][_0x15fae5(0x227)](_0x9cd059[_0x15fae5(0x3a3)])[_0x15fae5(0x350)]())[_0x15fae5(0xbb)](_0x3c67f3);}get['_unitId'](){const _0x55b068=_0xade8c;return this[_0x55b068(0x1c2)][_0x55b068(0x227)](_0x9cd059[_0x55b068(0x3a3)])['getUnitId']();}['_init'](){const _0x12467c=_0xade8c;this['_sheetSkeletonManagerService']['currentSkeleton$']['pipe'](_0x68ef5b(this[_0x12467c(0x13d)]),_0x1b27ff(_0x334e4d=>{const _0x1b782c=_0x12467c;if(_0x334e4d){const _0x2bb714=_0x334e4d[_0x1b782c(0x83)];return _0x5930bd(this[_0x1b782c(0x2e8)][_0x1b782c(0x1f8)](this[_0x1b782c(0x38c)]),this[_0x1b782c(0x26c)][_0x1b782c(0x30d)])['pipe'](_0x176ea9(([_0x507ef2,_0x11de09])=>{const _0x566fb6=_0x1b782c,_0x298fed=new Map();return _0x507ef2[_0x566fb6(0x2f2)]((_0x491e63,_0x43a060)=>{const _0x2be796=_0x566fb6;if(_0x491e63[_0x2be796(0x303)]===_0x2bb714){const _0x142966={..._0x491e63};_0x142966[_0x2be796(0xe6)]=_0x11de09[_0x491e63['color']],_0x298fed['set'](_0x43a060,_0x142966);}}),{'skeleton':_0x334e4d,'cursors':_0x298fed};}));}return _0x3ff30b({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x28cf45,cursors:_0x1f0862})=>{this['_removeCollabCursors'](),_0x28cf45&&this['_updateCollabCursors'](_0x28cf45,_0x1f0862);}),this['_sheetSkeletonManagerService'][_0x12467c(0x2ed)]['subscribe'](_0x187c90=>{const _0x24738e=_0x12467c;if(_0x187c90==null)return;const {skeleton:_0x1b4d40}=_0x187c90,_0x1c8ade=this[_0x24738e(0x2ec)]['getRenderById'](this['_unitId']),{scene:_0xdc13b}=_0x1c8ade;_0xdc13b[_0x24738e(0x12a)][_0x24738e(0x17c)](_0x1ebe66(_0x266f26=>{const _0x2d013e=_0x24738e;var _0x48e72c,_0x358deb;const {offsetX:_0x43f815,offsetY:_0x4aaf4e}=_0x266f26,{x:_0x161433,y:_0x397bac}=_0xdc13b[_0x2d013e(0x2ab)](_0x4a4da3[_0x2d013e(0x87)]([_0x43f815,_0x4aaf4e])),{scaleX:_0x30e582,scaleY:_0x2c850b}=_0xdc13b['getAncestorScale'](),_0x12087e=_0xdc13b[_0x2d013e(0x223)](_0x1eba95[_0x2d013e(0x2c6)]),_0x526264=_0xdc13b[_0x2d013e(0x265)](_0x4a4da3[_0x2d013e(0x87)]([_0x161433,_0x397bac]),_0x12087e),_0x1f8987=_0x1b4d40[_0x2d013e(0x2c8)](_0x43f815,_0x4aaf4e,_0x30e582,_0x2c850b,_0x526264);((_0x48e72c=this[_0x2d013e(0x123)])==null?void 0x0:_0x48e72c[_0x2d013e(0x10b)])===_0x1f8987[_0x2d013e(0x10b)]&&((_0x358deb=this[_0x2d013e(0x123)])==null?void 0x0:_0x358deb[_0x2d013e(0x1b2)])===_0x1f8987[_0x2d013e(0x1b2)]||this[_0x2d013e(0x249)][_0x2d013e(0x2f2)](_0x1b853d=>{_0x1b853d['onMouseMove'](_0x1f8987);});},0x64));});}['_updateCollabCursors'](_0x257b6c,_0x206af6){const _0x42d798=_0xade8c;var _0x5f466c;const _0x272a2c=(_0x5f466c=this['_sheetSkeletonManagerService'][_0x42d798(0x143)]())==null?void 0x0:_0x5f466c[_0x42d798(0x348)];if(!_0x272a2c)return;const _0x1788d9=this['_getSheetObject']();if(!_0x1788d9)return;this['_cursors'][_0x42d798(0x2f2)](_0x478fe4=>{const _0x3daf66=_0x42d798;_0x478fe4[_0x3daf66(0x2e5)]();});const {scene:_0x4579da}=_0x1788d9,_0x3d1c79=Ir(Array[_0x42d798(0x310)](_0x206af6[_0x42d798(0x1ee)]()))[_0x42d798(0x39e)](_0x436a91=>{const _0x227e57=_0x42d798,{color:_0x427f4c,range:_0x1deb93,name:_0x1fd310,selection:_0x3680c9,sheetID:_0x5718eb}=_0x436a91,{startColumn:_0x459328,startRow:_0x110a99,endColumn:_0x165774,endRow:_0x2aa6d6}=_0x1deb93,_0x329089=_0x287034(_0x110a99,_0x459328,_0x4579da,_0x272a2c),_0x43de15=_0x287034(_0x2aa6d6,_0x165774,_0x4579da,_0x272a2c),{columnHeaderHeightAndMarginTop:_0x3a3f7d}=_0x272a2c,{startX:_0x2add5b,startY:_0xca8adc}=_0x329089,{endX:_0x552b2a,endY:_0x1a29d9}=_0x43de15,_0x150b33=_0x552b2a-_0x2add5b,_0x2bb160=_0x1a29d9-_0xca8adc,_0x5948a7={'labelPosition':_0xca8adc-_0x3a3f7d>=Me?_0x227e57(0x1f6):_0x227e57(0x2ac),'sheetID':_0x5718eb,'range':_0x1deb93,'color':_0x427f4c,'name':_0x1fd310,'selection':_0x3680c9,'left':_0x2add5b,'top':_0xca8adc,'width':_0x150b33,'height':_0x2bb160,'evented':!0x1,'zIndex':pr};return new mr(_0x1fd310,_0x5948a7);});_0x4579da[_0x42d798(0x152)](_0x3d1c79,dr),this['_cursors']=new Set(_0x3d1c79);}[_0xade8c(0x2db)](){const _0x236e5f=_0xade8c;var _0x45c97b;(_0x45c97b=this['_cursors'])==null||_0x45c97b[_0x236e5f(0x2f2)](_0x55dda1=>_0x55dda1[_0x236e5f(0x199)]());}[_0xade8c(0xa4)](){const _0x58a0eb=_0xade8c;return _0x2a0247(this['_univerInstanceService'],this[_0x58a0eb(0x2ec)]);}};Ve=vr([_0x22ab7a(_0x35f1ee[_0xade8c(0x1a6)],Ve),$e(0x0,_0xd901da(fe)),$e(0x1,_0x3b87df),$e(0x2,_0x1e26e7),$e(0x3,_0xd901da(_0x42d43e))],Ve);function Ir(_0x212e7e){const _0x2e1ccd=_0xade8c,_0x34aa93=new Map();return _0x212e7e[_0x2e1ccd(0x2f2)](_0x3512c1=>{const _0x197cea=_0x2e1ccd;if(_0x34aa93[_0x197cea(0x1e7)](_0x3512c1['selection'])){const _0xca84f=_0x34aa93['get'](_0x3512c1[_0x197cea(0x2b9)]);_0xca84f['name']+=',\x20'+_0x3512c1[_0x197cea(0x89)];}else _0x34aa93[_0x197cea(0xbd)](_0x3512c1[_0x197cea(0x2b9)],_0x3512c1);}),Array[_0x2e1ccd(0x310)](_0x34aa93[_0x2e1ccd(0x1ee)]());}var A=function(){const _0xcad473=_0xade8c;return A=Object[_0xcad473(0x120)]||function(_0x3bb14e){const _0x9778f4=_0xcad473;for(var _0xef3b00,_0x47048f=0x1,_0x55d4dc=arguments['length'];_0x47048f<_0x55d4dc;_0x47048f++){_0xef3b00=arguments[_0x47048f];for(var _0x4fd98b in _0xef3b00)Object['prototype']['hasOwnProperty'][_0x9778f4(0x33b)](_0xef3b00,_0x4fd98b)&&(_0x3bb14e[_0x4fd98b]=_0xef3b00[_0x4fd98b]);}return _0x3bb14e;},A[_0xcad473(0x277)](this,arguments);},Er=function(_0x1980b9,_0x380e28){const _0x361970=_0xade8c;var _0x3203e9={};for(var _0x3f7850 in _0x1980b9)Object[_0x361970(0x2bc)][_0x361970(0x220)][_0x361970(0x33b)](_0x1980b9,_0x3f7850)&&_0x380e28[_0x361970(0x332)](_0x3f7850)<0x0&&(_0x3203e9[_0x3f7850]=_0x1980b9[_0x3f7850]);if(_0x1980b9!=null&&typeof Object[_0x361970(0x35b)]==_0x361970(0x26e)){for(var _0x4912cd=0x0,_0x3f7850=Object['getOwnPropertySymbols'](_0x1980b9);_0x4912cd<_0x3f7850[_0x361970(0x331)];_0x4912cd++)_0x380e28[_0x361970(0x332)](_0x3f7850[_0x4912cd])<0x0&&Object[_0x361970(0x2bc)][_0x361970(0x202)][_0x361970(0x33b)](_0x1980b9,_0x3f7850[_0x4912cd])&&(_0x3203e9[_0x3f7850[_0x4912cd]]=_0x1980b9[_0x3f7850[_0x4912cd]]);}return _0x3203e9;},$t=_0x27c31b(function(_0x3bd03d,_0x5762c3){const _0x858daf=_0xade8c;var _0x219f55=_0x3bd03d[_0x858daf(0x1d7)],_0x22647e=_0x3bd03d['id'],_0xc8177d=_0x3bd03d[_0x858daf(0x1b4)],_0x1f3f61=_0x3bd03d[_0x858daf(0x15c)],_0x4eb13d=Er(_0x3bd03d,[_0x858daf(0x1d7),'id',_0x858daf(0x1b4),_0x858daf(0x15c)]),_0x2c92ac='univerjs-icon\x20univerjs-icon-'[_0x858daf(0x131)](_0x22647e,'\x20')[_0x858daf(0x131)](_0xc8177d||'')[_0x858daf(0xac)](),_0xe6cb10=_0x5ddd21('_'['concat'](Tr()));return As(_0x219f55,''[_0x858daf(0x131)](_0x22647e),{'defIds':_0x219f55[_0x858daf(0x33e)],'idSuffix':_0xe6cb10['current']},A({'ref':_0x5762c3,'className':_0x2c92ac},_0x4eb13d),_0x1f3f61);});function As(_0x2177b7,_0xd515cc,_0x115529,_0x2d6381,_0x59ff77){const _0xa32a79=_0xade8c;return _0x5a9803(_0x2177b7[_0xa32a79(0xcf)],A(A({'key':_0xd515cc},Cr(_0x2177b7,_0x115529,_0x59ff77)),_0x2d6381),(br(_0x2177b7,_0x115529)[_0xa32a79(0x117)]||[])[_0xa32a79(0x39e)](function(_0x4cfb57,_0x225afb){const _0x51d783=_0xa32a79;return As(_0x4cfb57,''[_0x51d783(0x131)](_0xd515cc,'-')['concat'](_0x2177b7[_0x51d783(0xcf)],'-')[_0x51d783(0x131)](_0x225afb),_0x115529,void 0x0,_0x59ff77);}));}function Cr(_0x377258,_0x3120f2,_0x4d5b04){const _0x589845=_0xade8c;var _0x561803=A({},_0x377258[_0x589845(0xfe)]);_0x4d5b04!=null&&_0x4d5b04['colorChannel1']&&_0x561803[_0x589845(0x204)]===_0x589845(0xd3)&&(_0x561803[_0x589845(0x204)]=_0x4d5b04['colorChannel1']);var _0x45b7ae=_0x3120f2[_0x589845(0x33e)];return!_0x45b7ae||_0x45b7ae[_0x589845(0x331)]===0x0||(_0x377258[_0x589845(0xcf)]===_0x589845(0x314)&&_0x561803[_0x589845(0x2f7)]&&(_0x561803['xlink:href']=_0x561803[_0x589845(0x2f7)]+_0x3120f2[_0x589845(0x10a)]),Object[_0x589845(0x85)](_0x561803)[_0x589845(0x2f2)](function(_0x25f15a){const _0x5fa0c2=_0x589845;var _0x6ff8dc=_0x25f15a[0x0],_0x3ce2c5=_0x25f15a[0x1];typeof _0x3ce2c5==_0x5fa0c2(0x36f)&&(_0x561803[_0x6ff8dc]=_0x3ce2c5[_0x5fa0c2(0x14e)](/url\(#(.*)\)/,_0x5fa0c2(0x3b2)[_0x5fa0c2(0x131)](_0x3120f2['idSuffix'],')')));})),_0x561803;}function br(_0x5af1e8,_0x518251){const _0x3e7884=_0xade8c;var _0x17c860,_0x21247a=_0x518251[_0x3e7884(0x33e)];return!_0x21247a||_0x21247a[_0x3e7884(0x331)]===0x0?_0x5af1e8:_0x5af1e8['tag']==='defs'&&(!((_0x17c860=_0x5af1e8[_0x3e7884(0x117)])===null||_0x17c860===void 0x0)&&_0x17c860['length'])?A(A({},_0x5af1e8),{'children':_0x5af1e8['children'][_0x3e7884(0x39e)](function(_0x5defa7){const _0x575f71=_0x3e7884;return typeof _0x5defa7[_0x575f71(0xfe)]['id']==_0x575f71(0x36f)&&_0x21247a&&_0x21247a['indexOf'](_0x5defa7[_0x575f71(0xfe)]['id'])>-0x1?A(A({},_0x5defa7),{'attrs':A(A({},_0x5defa7[_0x575f71(0xfe)]),{'id':_0x5defa7[_0x575f71(0xfe)]['id']+_0x518251['idSuffix']})}):_0x5defa7;})}):_0x5af1e8;}function Tr(){const _0x4875b4=_0xade8c;return Math[_0x4875b4(0x107)]()[_0x4875b4(0x346)](0x24)[_0x4875b4(0x18e)](0x2,0x8);}$t['displayName']=_0xade8c(0x29d);var Rr={'tag':_0xade8c(0x16a),'attrs':{'fill':_0xade8c(0x1b7),'viewBox':_0xade8c(0x21c),'width':_0xade8c(0x1fe),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xade8c(0x1bd)},'children':[{'tag':_0xade8c(0x2dc),'attrs':{'stroke':_0xade8c(0xc3),'d':_0xade8c(0xb1),'strokeLinecap':_0xade8c(0x37d),'strokeLinejoin':_0xade8c(0x37d),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xade8c(0x336),'attrs':{'id':_0xade8c(0x379)},'children':[{'tag':'path','attrs':{'fill':_0xade8c(0x374),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},ys=_0x27c31b(function(_0x568384,_0xec6212){return _0x5a9803($t,Object['assign']({},_0x568384,{'id':'off-line-single','ref':_0xec6212,'icon':Rr}));});ys[_0xade8c(0x88)]=_0xade8c(0x15f);var Or={'tag':'svg','attrs':{'fill':_0xade8c(0x1b7),'viewBox':_0xade8c(0x35f),'width':_0xade8c(0x1fe),'height':_0xade8c(0x1fe)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0xade8c(0x2dc),'attrs':{'stroke':_0xade8c(0xc3),'d':_0xade8c(0x95),'strokeLinecap':_0xade8c(0x37d),'strokeLinejoin':_0xade8c(0x37d),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xade8c(0x336),'attrs':{'id':_0xade8c(0x19d)},'children':[{'tag':_0xade8c(0x2dc),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0xade8c(0x19d)]},Us=_0x27c31b(function(_0x5a118a,_0x996fd5){const _0xf1fdc2=_0xade8c;return _0x5a9803($t,Object['assign']({},_0x5a118a,{'id':_0xf1fdc2(0x359),'ref':_0x996fd5,'icon':Or}));});Us[_0xade8c(0x88)]=_0xade8c(0x261);const Dr=_0xade8c(0x27c),Pr='univer-online-status-title',wr='univer-online-status',Nr='univer-online',Mr=_0xade8c(0x1d6),be={'onlineStatusIcon':Dr,'onlineStatusTitle':Pr,'onlineStatus':wr,'online':Nr,'offline':Mr};function Ar(_0x10d2a1){const _0x366a91=_0xade8c;switch(_0x10d2a1){case w['OFFLINE']:return _0x366a91(0x172);case w[_0x366a91(0x395)]:return _0x366a91(0x298);case w[_0x366a91(0x31d)]:return'collabStatus.fetchMiss';case w[_0x366a91(0x7c)]:return _0x366a91(0x1e1);case w[_0x366a91(0x116)]:case w[_0x366a91(0x324)]:case w[_0x366a91(0x22e)]:return _0x366a91(0x2af);case w[_0x366a91(0xd0)]:return'collabStatus.synced';}}function yr(_0x21a744){const _0x4e6a97=_0xade8c,{status$:_0x136ece}=_0x21a744,_0x55d0b9=_0x190b58(_0x136ece,w[_0x4e6a97(0x7c)]),_0xe1e853=_0x2a3075(_0x3fbf2b),_0x37b6ec=_0x55d0b9!==w['OFFLINE'],_0x5dcbfc=_0xe1e853['t'](Ar(_0x55d0b9)),_0x21cb98=_0xf44121(be[_0x4e6a97(0x12c)],{[be[_0x4e6a97(0xda)]]:_0x37b6ec,[be[_0x4e6a97(0xcd)]]:!_0x37b6ec}),_0x11a243=_0x37b6ec?_0xeb971e[_0x4e6a97(0x98)](Us,null):_0xeb971e['createElement'](ys,null);return _0xeb971e[_0x4e6a97(0x98)](_0x4e6a97(0x24f),{'className':_0x21cb98},_0xeb971e[_0x4e6a97(0x98)]('div',{'className':be[_0x4e6a97(0x156)]},_0x11a243),_0xeb971e['createElement'](_0x4e6a97(0x24f),{'className':be[_0x4e6a97(0x22a)]},_0x5dcbfc));}var Ur=Object[_0xade8c(0x36b)],Lr=Object[_0xade8c(0x22b)],$r=(_0x50fdbc,_0x1b14f9,_0x14d0d3,_0x2eacdb)=>{const _0x247a13=_0xade8c;for(var _0x1502c7=_0x2eacdb>0x1?void 0x0:_0x2eacdb?Lr(_0x1b14f9,_0x14d0d3):_0x1b14f9,_0x375eda=_0x50fdbc[_0x247a13(0x331)]-0x1,_0x1e029f;_0x375eda>=0x0;_0x375eda--)(_0x1e029f=_0x50fdbc[_0x375eda])&&(_0x1502c7=(_0x2eacdb?_0x1e029f(_0x1b14f9,_0x14d0d3,_0x1502c7):_0x1e029f(_0x1502c7))||_0x1502c7);return _0x2eacdb&&_0x1502c7&&Ur(_0x1b14f9,_0x14d0d3,_0x1502c7),_0x1502c7;},je=(_0xb81627,_0x12b069)=>(_0x5367cb,_0x51542)=>_0x12b069(_0x5367cb,_0x51542,_0xb81627);let Be=class extends _0x5297f3{constructor(_0x24acbc,_0x490bd4,_0x34b888,_0x3285be){const _0xfff5d0=_0xade8c;super(),l(this,_0xfff5d0(0x257),new _0x1a37bf(w[_0xfff5d0(0x7c)])),(this[_0xfff5d0(0x1c2)]=_0x24acbc,this[_0xfff5d0(0x14b)]=_0x490bd4,this[_0xfff5d0(0xcc)]=_0x34b888,this[_0xfff5d0(0x1ca)]=_0x3285be,this[_0xfff5d0(0x1ae)](),this['_initStatusListener']());}[_0xade8c(0x1ae)](){const _0x17fa25=_0xade8c;this['disposeWithMe'](this[_0x17fa25(0x14b)][_0x17fa25(0x2e4)](_0x3b73a8['HEADER_MENU'],()=>_0x5760b9(jr({'status$':this[_0x17fa25(0x257)]['asObservable']()}),this[_0x17fa25(0xcc)])));}[_0xade8c(0x263)](){const _0x1ec2d8=_0xade8c;this['disposeWithMe'](_0x45cb21(this['_univerInstanceService'][_0x1ec2d8(0x2a2)]['pipe'](_0x2075a8(()=>{const _0x1366a4=_0x1ec2d8,_0x389427=this[_0x1366a4(0x1c2)][_0x1366a4(0x16f)]();return _0x389427?this[_0x1366a4(0x1ca)][_0x1366a4(0x36a)](_0x389427[_0x1366a4(0x350)]()):_0x3ff30b(null);}),_0x2075a8(_0x162c49=>_0x162c49?_0x162c49[_0x1ec2d8(0x1ed)]:_0x3ff30b(w[_0x1ec2d8(0x7c)])))[_0x1ec2d8(0xbf)](_0x5c2942=>{const _0x16fb09=_0x1ec2d8;this[_0x16fb09(0x257)][_0x16fb09(0xab)](_0x5c2942);})));}};Be=$r([_0x22ab7a(_0x35f1ee[_0xade8c(0xd2)],Be),je(0x0,_0x3b87df),je(0x1,_0x6b2e9f),je(0x2,_0xd901da(_0x3c61ae)),je(0x3,_0xd901da(De))],Be);function jr(_0x429f32){const {status$:_0x5691d7}=_0x429f32;return function(){return _0xeb971e['createElement'](yr,{'status$':_0x5691d7});};}function _0x2636(){const _0x11eca8=['setTimeout','_getSnapshotAPIPrefix','_clearHeartbeatTimer','getUndoRedoMutationParamsCache','override','complete','_snapshotService','resourceIDs','max','catch','whenReady','/universer-api/comb','_undoRedoService','ONLINE','_tryEnsureSocket','_saveTaskMap','m2Prime','30OKItbP','onload','_isPermissionRej','[CollaborationSessionService]','_cursors','_queuedRemoteChangesets','commentUpdateEvent','result','_collaborationPaused','popstate','div','LIVESHARE_NEW_HOST','/allowed','getTypeOfUnitAdded$','_configService','init','registerHTTPInterceptor','change$','_status$','_colorAssignService','LIVESHARE_FETCH_OPERATIONS','USERS_ENTER','PSEUDO_FETCH_MISSING_RESULT','auth.needGotoLoginAlert','univer-pro.collaboration-client-socket-service','onRemoteAck','cmd','_rescheduleHeartbeatEvent','OnLineSingle','OFFLINE','_initStatusListener','#FFF','getVpScrollXYInfoByPosToVp','append','height','_getCurrentRevision','setInterval','_socketReady','_disabled','_themeService','_retryConnectingTimer','function','_transformSelections','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','state','_beforeCloseService','sessionStatus','_onJoinRoomEvent','get','LICENSE_MAX_UNITS_EXCEEDED','apply','UNDEFINED','members','params','collaboration.single-unit.warning','univer-online-status-icon','CHANGESET_REVISION_CONFILICT','_range','toggleOnline','_cursorInfo$','flatMap','_redoStacks','loadDoc','setItem','close$','_collaborationTimeoutTimer','clear','collaboration-client.offline-data-not-saved','_handler','[CollaborationSessionService]:\x20socket\x20error','newValue','_clearScheduledTask','_clearUndo','unsubscribe','image/bmp','_startDocCollabCursor','replaceTextRanges','collaborationUniverTypes','_anchorDot','cursorInfo','_setupBeforeClosingHandler','_config','syncEditingCollabCursor','collabStatus.conflict','_exhaustRemoteChangesetQueue','pending','CHANGESET_ACK','text','UniverIcon','symbol','closePath','LIVESHARE_OPERATION','putCollaborators','focused$','getActiveRange','ranges','activeSheet$','_initUnitPermissionChange','socketService','liveShareOperation','filter','_assignedColors','getRelativeToViewportCoord','bottom','initWorkbookPermissionChange','_startCollaboration','collabStatus.syncing','stringify','_drawRange','getRoom','storage','_socket$','_lockTransition','appendMutation','_event$','onSyncEditingCollabCursor','selection','actions','YUUMI_UNABLE_LOAD_URL','prototype','responseType','incrementRevForDocument','[OfflineState]:\x20received\x20changeset.','_showConflictNotification','state$','body','range','COMPRESS_MUTATION_APPLY','routeKey','VIEW_MAIN','[PendingState]:\x20unhandled\x20univer\x20type:\x20','getCellPositionByOffset','searchParams','requestParams','onRemoteChangeset','endColumn','image/jpg','sheets','error','{fileID}','2308376hXxWml','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','code','_onConflict','saveChangeset','univer-pro.collaboration-client.single-active-unit-service','_incrementRevisionNumber','TOO_MANY_REQUESTS','pauseCollaboration','_sendHeartbeat','_removeCollabCursors','path','then','_timeoutTimer','deleteCollaborator','_sendingTimer','NO_OTHER_CLIENTS_EDITING','&to=','socket\x20open.','registerComponent','makeDirty','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_hideTimer','_collabCursorController','_unlockTransition','event$','pluginName','_renderManagerService','currentSkeleton$','_initModules','BASE64','baseRev','_heartbeatTimer','forEach','_getLoginPath','transformSelections','clearInterval','gold400','xlink:href','confirm','saveOfflineData','_sessionStatus$','some','onMouseMove','_collabSessionService','pipe','purple300','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','drawWith','/unit/','sheetID','_hovered','submit\x20changeset\x20error!','_entities','_labelPosition','LEAVE','transformStack\x20failed!','_revisionService','_onRemoteACK','OTHER_CLIENTS_EDITING','currentTheme$','APPLY_PERMISSION_DENIED','_scheduleClearOtherTimer','from','_memberService','_init','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','use','INGEST','localeService','...','_toggleOnline','_clearLocalCache','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','transformUndoRedo','[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.','FETCH_MISS','resolve','getCurrentUser','_entityInit$','_textBubble','\x20in\x20_schedule.','headers','AWAITING','save','_hover','LICENSE_EXPORT_SIZE_EXCEEDED','listCollaborators','asObservable','generateRandomId','[CollaborationUndoRedoService]','removeMember','_onCursorUpdate','/new_changes','unit-cache-','_schedule','length','indexOf','_initCloseConn','saveImage','_ws','clipPath','size','_handleHover','_handleLeaveEvent','_updateCollabCursors','call','ALREADY_EXISTS','5564622QTWKEi','defIds','originalMeta','executeCommand','_waitCount','all','getInterceptPoints','/fetchmissing?from=','SHOULD_CLOSE_CONN','toString','_onRecvEvent','skeleton','fetchMissingChangesets','_pendingMutations','_unitID','getDataModel','_cursor','encodeURIComponent','FETCH_MISSING','getUnitId','getUniverSheetInstance','_onLocalMutation','url','381ulUbWx','_snapshotServerService','assignAColorForMemberID','_onUserLeave','_fetchMissChangesets','on-line-single','SUBMIT_CHANGESET','getOwnPropertySymbols','roomMembers$','post','_drawAnchor','0\x200\x2017\x2016','_transformUndoredo','reverse','addObject','_collaborationSessionService','history','urlChange$','onTransformSelections','permissionRejEvent','_messageService','_getSendChangesetTimeout','getCollabEntity$','defineProperty','_createInitialStateImpl','leaveEvent','UNRECOGNIZED','string','RECV','createInstance','\x20-\x20','getViewModel','#fff','transformByState','registerRefRange','COLLAB_SUBMIT_CHANGESET_URL','target','off-line-single_clip0_910_343','_colorIndex','onMissedChangesetFetched','moveTo','round','_refRangeService','_logService','_getAPIPrefix','Unknown\x20user','_waitForHeartbeatResponse','deepClone','_saveCache','HEARTBEAT_TIMEOUT','_updateLocalCache','getActiveSheet','_commentService','INTERNAL_ERROR','closeSession','_onConnectionFailed','_unitId','objectType','enableSingleActiveInstanceLock','getParam','UPDATE_CURSOR','_submitChangeset','transformMutationsWithChangeset','collaMsg','LICENSE_DISTRO_REJECTED','CONFLICT','_createInitialState','FileId','Warning','UNIVER_COLLABORATION_CLIENT_PLUGIN','_socketMessageSubscription','doc.mutation.rich-text-editing','_getAPIPrefixPath','delete','map','HEARTBEAT_INTERVAL','cursorInfo$','_updateStatus','_docTransformSelectionsService','UNIVER_SHEET','_collabCursorState$','_onRefRangeChange','UNKNOWN_CMD','_joinRoom','registerOnClose','_checkMissing','_onCombEvent','enableLocalCache','IDLE','APPLY_NON_SEQUENTIAL_REVISION','fetch_missing','_decreaseWaiting','_updateState','collab-text-range-','url(#$1','removeParam','_getRedoStack','/universer-api/snapshot/','JOINING','shouldCloseConn','status','onStateChange','saveSnapshot','findNodePositionByCharIndex','_awaitingChangeset','MUTATION','enableOfflineEditing','batchAllowed','NOT_COLLAB','COMPRESS_MUTATION_SEND','getCurrentRevForDocument','transform','/-/object/-/batch_allowed','_document','Univer','sheetId','_transformPreviousActiveRange','entries','_shapes','FromArray','displayName','name','onCommandExecuted','USERS_LEAVE','getUnhiddenWorksheets','_commentUpdate$','_transformService','_session','SNAPSHOT_HAS_BEEN_REMOVED','getUnitType','black','_online','objects','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','onCommentUpdate','_singleActiveUnitService','createElement','_startSheetCollabCursor','setUndoRedoMutationParamsCache','infoRsp','_scene','_initMergeInterceptor','width','_getSaveTimeout','getCollabEntity','fetching\x20missing\x20changesets\x20from\x20','SEND_CHANGESET_TIMEOUT','_remoteChangesetQueue','_getSheetObject','getMember','_docSkeleton','_createHandler','JOIN','_name','transformMutation','next','trim','_state','_getUploadFileURL','onRemoteRej','joinRsp','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','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','selections','CONNECTOR_DATA_TOO_LARGE','LICENSE_IMPORT_SIZE_EXCEEDED','_compressMutationService','_onRemoteRejected','_docSyncEditingCollabCursorService','csRejEvent','onPointerLeave$','with','_substituteUndoStack','set','Error','subscribe','clearTimeout','json','unknown','currentColor','failed\x20to\x20apply\x20missed\x20changesets!','UNIVER_UNKNOWN','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_members','userID','isArray','_onUserJoin','awaiting','_injector','offline','_transformUndoRedoStack','tag','SYNCED','MoveRangeCommandId','Starting','colorChannel1','title','collab-text-anchor-','rev','updatePermissionPoint','[OfflineState]:\x20received\x20acknowledgement.','INVALID_ARGUMENT','online','patch','getMemberID','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','LOCAL_CACHE_INTERVAL','COMMENT_UPDATE','joinEvent','SNAPSHOT_SERVER_URL_KEY','roomMembers','isEditing','changesets','ERROR_IMAGE_TYPE','color','InsertRowCommandId','liveShareNewHost','_anchor','/collaborator','triggerDblclick','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getSheetBlock','RemoveRowCommandId','NOT_FOUND','_setupSubUnitSync','_send','_roomMembers','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','[SyncedState]:\x20received\x20acknowledgement.','mutations','APPLY_REJECT','_localCacheService','LIVESHARE_TERMINATE','COLLAB_WEB_SOCKET_URL','show','/resources','startsWith','APPLY_REVISION_CONFILICT','attrs','138914Aocjoc','_substituteRedoStack','registerBeforeClose','?size=','YUUMI_URL_COL_OUT_OF_RANGE','_docSkeletonManagerService','transformIMECache','getWorkbookSelections','random','/universer-api/stream/file/upload','_onFetchMissResult','idSuffix','column','_type','updateCursorEvent','labelPosition','_permissionService','[DataLoaderController]','unload','evenodd','editing\x20status\x20changed\x20to','listRoles','commentUpdate$','PENDING','children','getUnitOnRev','unit','_disableEditing','_http','session.connection-failed','toggleOffline','696070XeMBwY','SNAPSHOT_INVALID_SNAPSHOT','assign','_localStorageService','jiqing500','_lastPointer','_syncEditingCollabCursor','UUID','getTime','_clearTimeoutTimer','editingUnit','_replayCachedMutations','onPointerMove$','requireSession','onlineStatus','collaboration.closeRoom','_retryCount','red300','UPDATE_PERMISSION_OBJ','concat','InsertColCommandId','createSocket','getImage','replaceState','rgba(255,\x20255,\x20255,\x200.01)','endRow','subunit','_clearOtherTimers','connection\x20error','eventID','objectID','dispose$','getSheetBySheetId','_cachedData','FAIL','_state$','push','getCurrent','collabCursorState$','_loadSheet','href','_render','_localeService','socket\x20close','unshift','_uiPartsService','_socket','unitID','replace','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_transitionLocked','isPermissionRej','addObjects','_executeRemoteChangeset','_updateSubUnitFromURLParams','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','onlineStatusIcon','_docTransformIMECacheService','unitId','_scheduleCollaborationTimeoutTimer','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','setParam','extend','image/gif','updateOfflineData','OffLineSingle','_onConnectionOpen','onTransformRemoteChangesetByIMECache','blue400','_exhaustSavingTask','disableLocalCache','arc','setActiveRange','_imageSourceCache','action','awaiting_with_pending','svg','m1Prime','_color','_HTTPService','getSheetId','getFocusedUnit','UNIVER_SLIDE','list','collabStatus.offline','_scheduleSaving','setCurrentUser','?url=','_draw','fromCollab','_urlService','csAckEvent','transformRemoteChangeset','contains','subscribeEvent','getValue','close','sessionStatus$','debug','_httpService','\x0aAfter:\x20','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_ensureSubject','_getAnchorBounding','getAncestorScale','conflict','_loadDoc','ERROR_IMAGE','send','lineTo','split','/-/object/list','substring','find','13415120JcIxTc','restore','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_clearRedo','min','c2Prime','COMPLETION_FINISHED','_sendHeartbeatTimer','_removeClearOtherTimer','dispose','ws://127.0.0.1:8000/universer-api/comb/connect','data','_notificationService','on-line-single_clip0_910_349','_onRemoteChangeset','image/jpeg','[UniverCollaborationClientPlugin]','fetchThroughInterceptors','update','MSG_FOR_ERROR','getTypeOfUnitDisposed$','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','Steady','resend','PERMISSION_DENIED','NEW_CHANGESETS','_onCursorDelete','DeleteRangeMoveLeftCommandId','6344hXQjMI','_replaceFileID','_initStatusComponent','allowed','src','_getMergeRange','row','getRangePointData','className','_scheduleReconnection','_socketService','none','_scheduleTimestamp','collaborators','_commandService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','onTransformIME','url(#off-line-single_clip0_910_343)','getUnitStatus$','error$','UNKNOWN_CODE','loadOfflineData','_univerInstanceService','fillText','interceptor','_updateLocalCursor','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','UNIVER_DOC','_getUndoStack','_sessions','_collaborationController','_acknowledgedAwaitingChangeset','LIVESHARE_REQUEST_HOST','_clearCollaborationTimeoutTimer','updateMember','setAlpha','snapshot','onPointerEnter$','[OfflineState]:\x20received\x20rejection.','onSendChangeset','save\x20fail\x20reason\x20is\x20','hovered','univer-offline','icon','createCollaborator','_userManagerService','_unitStatus','fillStyle','not_collab','saveSheetBlock','location','getConfig','_id','collabStatus.notCollab','_syncEditingCollabCursorService','addImageSourceCache','workbook','_createSocket','compose','has','576801BxoJrQ','slice','_onMessage','HEARTBEAT','_updateURLWithCurrentState','status$','values','session','fillRule','disposeWithMe','put','_scheduleHeartbeat','RemoveColCommandId','includes','top','hide','getCollabCursors$','POST','pushState','_unitOnClients','measureText','onMissingChangesets','1em','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','getCurrentSelections','[CollaborationEntity]','propertyIsEnumerable','reject','fill','subUnitId','awaitingChangeset','type','_undoStacks','_toggleOffline','_transformStack','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','message$','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_removeRoom','method','_change$','_handleHeartbeatEvent','revision','onStarting','reduce','startColumn','memberID','8HPBTxi','transformChangesets','HELLO','getRenderById','_selfUnitIDs','0\x200\x2016\x2016','encode','/object/','add','hasOwnProperty','session.room-full','_eventUnsubscribe','getViewport','_handleEvent','_roomMembers$','_getDocObject','getCurrentUnitForType','loadSheet','_applyRemoteChangeset','onlineStatusTitle','getOwnPropertyDescriptor','setShapeProps','_getCtorByUniverType','AWAITING_WITH_PENDING','textRanges','AUTHZ_URL_KEY','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','UNAUTHENTICATED','c1Prime'];_0x2636=function(){return _0x11eca8;};return _0x2636();}const Ls=_0xc3d169('uni.network.url-service');var Hr=Object[_0xade8c(0x36b)],xr=Object[_0xade8c(0x22b)],Fr=(_0x3d3a5c,_0x149518,_0x5201d0,_0x546a29)=>{const _0x5cc02f=_0xade8c;for(var _0x1a153a=_0x546a29>0x1?void 0x0:_0x546a29?xr(_0x149518,_0x5201d0):_0x149518,_0x22e87d=_0x3d3a5c[_0x5cc02f(0x331)]-0x1,_0x511ab6;_0x22e87d>=0x0;_0x22e87d--)(_0x511ab6=_0x3d3a5c[_0x22e87d])&&(_0x1a153a=(_0x546a29?_0x511ab6(_0x149518,_0x5201d0,_0x1a153a):_0x511ab6(_0x1a153a))||_0x1a153a);return _0x546a29&&_0x1a153a&&Hr(_0x149518,_0x5201d0,_0x1a153a),_0x1a153a;},le=(_0x129456,_0x4984c3)=>(_0x540af0,_0x335f28)=>_0x4984c3(_0x540af0,_0x335f28,_0x129456);let ke=class extends _0x3fb7e3{constructor(_0x3f46f0,_0x1305e2,_0x5e4b30,_0x142b50,_0x2596e3,_0x1aaf65){const _0x919f70=_0xade8c;super(),this[_0x919f70(0x178)]=_0x3f46f0,this['_logService']=_0x1305e2,this[_0x919f70(0x1ba)]=_0x5e4b30,this['_localCacheService']=_0x142b50,this['_snapshotService']=_0x2596e3,_0x1aaf65?_0x1aaf65==null||_0x1aaf65[_0x919f70(0x23e)]()[_0x919f70(0x2dd)](()=>this['_init']()):(this[_0x919f70(0x37f)][_0x919f70(0x180)](_0x919f70(0x110),_0x919f70(0x1c6)),this[_0x919f70(0x312)]());}async[_0xade8c(0x312)](){const _0x261e33=_0xade8c,_0x54bb0c=this[_0x261e33(0x178)][_0x261e33(0x38f)](_0x261e33(0x119)),_0x21cad7=this[_0x261e33(0x178)][_0x261e33(0x38f)](_0x261e33(0x207));if(!_0x54bb0c||!_0x21cad7){this[_0x261e33(0x37f)][_0x261e33(0x180)](_0x261e33(0x110),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x21cad7)){case H['UNIVER_SHEET']:{const _0x1bab17=await this['_loadSheet'](_0x54bb0c);this[_0x261e33(0xf0)](_0x1bab17);break;}case H[_0x261e33(0x1c7)]:{await this['_loadDoc'](_0x54bb0c);break;}default:{this[_0x261e33(0x37f)][_0x261e33(0x2cf)](_0x261e33(0x110),_0x261e33(0xec));break;}}}async[_0xade8c(0xf0)](_0x2a328f){const _0x487d89=_0xade8c;await this['_updateSubUnitFromURLParams'](_0x2a328f),_0x2a328f[_0x487d89(0x2a5)]['pipe'](_0x2473df(this['dispose$']))[_0x487d89(0xbf)](_0x5dbb10=>{const _0x45199a=_0x487d89;_0x5dbb10&&this[_0x45199a(0x1ec)](_0x5dbb10);}),this['_urlService'][_0x487d89(0x365)][_0x487d89(0x2fe)](_0x2473df(this[_0x487d89(0x13d)]))[_0x487d89(0xbf)](()=>this['_updateSubUnitFromURLParams'](_0x2a328f));}[_0xade8c(0x1ec)](_0x34560b,_0x17bd11=!0x1){const _0x9f272=_0xade8c,_0x82a769=this[_0x9f272(0x178)][_0x9f272(0x38f)]('subunit');_0x34560b[_0x9f272(0x16e)]()!==_0x82a769&&this[_0x9f272(0x178)]['setParam'](_0x9f272(0x138),_0x34560b[_0x9f272(0x16e)](),_0x17bd11);}async[_0xade8c(0x154)](_0x3d67b1){const _0x4b2dfa=_0xade8c;var _0x2126c9;const _0x31b5d3=this['_urlService'][_0x4b2dfa(0x38f)](_0x4b2dfa(0x138));if(!_0x31b5d3||!_0x3d67b1['getSheetBySheetId'](_0x31b5d3)){const _0x558804=_0x3d67b1[_0x4b2dfa(0x8c)]()[0x0],_0x2d14d3=_0x3d67b1[_0x4b2dfa(0x13e)](_0x558804);if(!_0x2d14d3)return;this['_updateURLWithCurrentState'](_0x2d14d3,!0x0),await this[_0x4b2dfa(0x1ba)][_0x4b2dfa(0x340)](_0x3fc4c1['id'],{'unitId':_0x3d67b1[_0x4b2dfa(0x350)](),'subUnitId':_0x558804});return;}((_0x2126c9=_0x3d67b1[_0x4b2dfa(0x387)]())==null?void 0x0:_0x2126c9['getSheetId']())!==_0x31b5d3&&await this[_0x4b2dfa(0x1ba)][_0x4b2dfa(0x340)](_0x3fc4c1['id'],{'unitId':_0x3d67b1[_0x4b2dfa(0x350)](),'subUnitId':_0x31b5d3});}async[_0xade8c(0x145)](_0x39366d){const _0x3557de=_0xade8c;let _0x50a74d=0x0;const _0x3d49fb=await this[_0x3557de(0xf7)][_0x3557de(0x1c1)](_0x39366d);return _0x3d49fb&&(_0x3d49fb[_0x3557de(0x206)]||_0x3d49fb[_0x3557de(0xf5)][_0x3557de(0x331)]!==0x0)&&(_0x50a74d=_0x3d49fb['rev']),_0x50a74d===0x0&&this[_0x3557de(0x37f)]['debug']('[DataLoaderController]',_0x3557de(0x1bb)),this[_0x3557de(0x23a)][_0x3557de(0x228)](_0x39366d,_0x50a74d);}async[_0xade8c(0x188)](_0x1f91b1){const _0x3aee7f=_0xade8c;let _0x2de90b=0x0;const _0x3f6ae4=await this['_localCacheService']['loadOfflineData'](_0x1f91b1);return _0x3f6ae4&&(_0x3f6ae4[_0x3aee7f(0x206)]||_0x3f6ae4['mutations'][_0x3aee7f(0x331)]!==0x0)&&(_0x2de90b=_0x3f6ae4[_0x3aee7f(0xd6)]),_0x2de90b===0x0&&this[_0x3aee7f(0x37f)][_0x3aee7f(0x180)](_0x3aee7f(0x110),_0x3aee7f(0x1bb)),this['_snapshotService'][_0x3aee7f(0x283)](_0x1f91b1,_0x2de90b);}};ke=Fr([_0x22ab7a(_0x35f1ee[_0xade8c(0xd2)],ke),le(0x0,Ls),le(0x1,_0x255408),le(0x2,_0x3f64f1),le(0x3,_0xd901da(D)),le(0x4,_0xd901da(_0x570f37)),le(0x5,_0x3badbf(_0x56e60a))],ke);var Vr=Object[_0xade8c(0x36b)],Br=Object[_0xade8c(0x22b)],kr=(_0x4f1625,_0x54a6b2,_0x5427d5,_0x3c4870)=>{const _0x188bc4=_0xade8c;for(var _0x27bdc2=_0x3c4870>0x1?void 0x0:_0x3c4870?Br(_0x54a6b2,_0x5427d5):_0x54a6b2,_0x5ba890=_0x4f1625[_0x188bc4(0x331)]-0x1,_0x1db57c;_0x5ba890>=0x0;_0x5ba890--)(_0x1db57c=_0x4f1625[_0x5ba890])&&(_0x27bdc2=(_0x3c4870?_0x1db57c(_0x54a6b2,_0x5427d5,_0x27bdc2):_0x1db57c(_0x27bdc2))||_0x27bdc2);return _0x3c4870&&_0x27bdc2&&Vr(_0x54a6b2,_0x5427d5,_0x27bdc2),_0x27bdc2;},ss=(_0x5ba953,_0x134228)=>(_0x31065,_0x6bc10d)=>_0x134228(_0x31065,_0x6bc10d,_0x5ba953);const Wr='DEFAULT_FILE_NAME',Gr=_0xade8c(0x82);let We=class extends _0x5297f3{constructor(_0xfcf379,_0x171474){const _0x2f93da=_0xade8c;super(),this[_0x2f93da(0x1c2)]=_0xfcf379,this['_configService']=_0x171474,this[_0x2f93da(0x312)]();}[_0xade8c(0x312)](){const _0x31b418=_0xade8c;this[_0x31b418(0x1f1)](_0x45cb21(this[_0x31b418(0x1c2)]['focused$']['subscribe'](()=>{const _0x357343=_0x31b418;var _0x43c724;const _0x1b9ba4=this[_0x357343(0x1c2)][_0x357343(0x16f)]();let _0x33c5a0=(_0x43c724=this[_0x357343(0x253)][_0x357343(0x1df)](Wr))!=null?_0x43c724:Gr;_0x1b9ba4 instanceof _0x5e425c&&(_0x33c5a0=_0x1b9ba4[_0x357343(0x89)]),document[_0x357343(0xd4)]=_0x33c5a0;})));}};We=kr([_0x22ab7a(_0x35f1ee['Ready'],We),ss(0x0,_0x3b87df),ss(0x1,_0x531a6b)],We);var Yr=Object[_0xade8c(0x36b)],Kr=Object[_0xade8c(0x22b)],Xr=(_0x35e769,_0x1eb717,_0x192c6e,_0x2f7cf5)=>{const _0xd7a99d=_0xade8c;for(var _0x1de1eb=_0x2f7cf5>0x1?void 0x0:_0x2f7cf5?Kr(_0x1eb717,_0x192c6e):_0x1eb717,_0xd6912f=_0x35e769[_0xd7a99d(0x331)]-0x1,_0x25556e;_0xd6912f>=0x0;_0xd6912f--)(_0x25556e=_0x35e769[_0xd6912f])&&(_0x1de1eb=(_0x2f7cf5?_0x25556e(_0x1eb717,_0x192c6e,_0x1de1eb):_0x25556e(_0x1de1eb))||_0x1de1eb);return _0x2f7cf5&&_0x1de1eb&&Yr(_0x1eb717,_0x192c6e,_0x1de1eb),_0x1de1eb;},is=(_0x218922,_0x36525c)=>(_0x5ade44,_0x51e03e)=>_0x36525c(_0x5ade44,_0x51e03e,_0x218922);let Ct=class{constructor(_0x399ee6,_0x15541e){const _0x30056e=_0xade8c;this['_configService']=_0x399ee6,this[_0x30056e(0x181)]=_0x15541e;}async[_0xade8c(0x118)](_0x534b77,_0x37eb5a){const _0x48be9b=_0xade8c;var _0x225016;const {unitID:_0x5de43c,type:_0x4d1ff9,revision:_0x5f3c78=0x0}=_0x37eb5a,_0x26dc9e=this[_0x48be9b(0x235)]()+'/'+_0x4d1ff9+'/unit/'+_0x5de43c+'/rev/'+(_0x5f3c78===0x1?0x0:_0x5f3c78),_0x5b3c1c=(await this['_httpService'][_0x48be9b(0x275)](_0x26dc9e))['body'],_0x453dca=(_0x225016=_0x5b3c1c[_0x48be9b(0x1d0)])==null?void 0x0:_0x225016[_0x48be9b(0x1e4)];if(_0x453dca){const _0x54af27=_0x453dca==null?void 0x0:_0x453dca[_0x48be9b(0x33f)],_0x15364c=_0x53c3e8['encode'](_0x5ccd98(_0x54af27));_0x453dca[_0x48be9b(0x33f)]=_0x15364c,Object[_0x48be9b(0x85)](_0x453dca[_0x48be9b(0x2ce)])[_0x48be9b(0x2f2)](([,_0x13796e])=>{const _0x3939df=_0x48be9b,_0x179696=_0x13796e[_0x3939df(0x33f)],_0x22f592=_0x53c3e8[_0x3939df(0x21d)](_0x5ccd98(_0x179696));_0x13796e['originalMeta']=_0x22f592;});}return _0x5b3c1c;}async[_0xade8c(0xed)](_0x3f0b2d,_0x47981d){const _0x5e2ef8=_0xade8c,{unitID:_0xc00a74,type:_0x52cd,blockID:_0x20709a}=_0x47981d,_0x53be0b=this[_0x5e2ef8(0x380)]()+'/'+_0x52cd+_0x5e2ef8(0x302)+_0xc00a74+'/block/'+_0x20709a;return(await this['_httpService'][_0x5e2ef8(0x275)](_0x53be0b))[_0x5e2ef8(0x2c2)];}async[_0xade8c(0x349)](_0x2e21e7,_0x307861){const _0x127bd3=_0xade8c,{unitID:_0x4626e3,type:_0x58ec19,from:_0xf5993f,to:_0x213cd7}=_0x307861,_0x2919b1=this[_0x127bd3(0x380)]()+'/'+_0x58ec19+_0x127bd3(0x302)+_0x4626e3+_0x127bd3(0x344)+_0xf5993f+_0x127bd3(0x2e2)+_0x213cd7;return(await this[_0x127bd3(0x181)][_0x127bd3(0x275)](_0x2919b1))['body'];}[_0xade8c(0x235)](){const _0x55d735=_0xade8c;var _0x232f0c;return(_0x232f0c=this['_configService'][_0x55d735(0x1df)](Qi))!=null?_0x232f0c:this['_getAPIPrefix']();}[_0xade8c(0x380)](){const _0x303a94=_0xade8c;var _0x13433e;return(_0x13433e=this[_0x303a94(0x253)][_0x303a94(0x1df)](zi))!=null?_0x13433e:Zi;}async['getResourcesRequest'](_0x341db0,_0x5adbaa){const _0x4d3848=_0xade8c,_0x469cc7=_0x4d3848(0x3b5)+_0x5adbaa[_0x4d3848(0x207)]+_0x4d3848(0x302)+_0x5adbaa[_0x4d3848(0x14d)]+_0x4d3848(0xfb);return(await this[_0x4d3848(0x181)][_0x4d3848(0x275)](_0x469cc7,{'params':{'resourceId':JSON[_0x4d3848(0x2b0)](_0x5adbaa[_0x4d3848(0x23b)])}}))[_0x4d3848(0x2c2)];}[_0xade8c(0x3ba)](){const _0x1c71d1=_0xade8c;throw new Error(_0x1c71d1(0x2d2));}[_0xade8c(0x1dd)](){const _0x475bb6=_0xade8c;throw new Error(_0x475bb6(0x2d2));}[_0xade8c(0x2d5)](){const _0x136669=_0xade8c;throw new Error(_0x136669(0x2d2));}};Ct=Xr([is(0x0,_0x531a6b),is(0x1,_0xd901da(_0x32bb9e))],Ct);var Jr=Object['defineProperty'],qr=Object['getOwnPropertyDescriptor'],zr=(_0x7ebd6a,_0x14dffc,_0x22e98a,_0x588390)=>{const _0x4756bd=_0xade8c;for(var _0x3be4d2=_0x588390>0x1?void 0x0:_0x588390?qr(_0x14dffc,_0x22e98a):_0x14dffc,_0x1894f7=_0x7ebd6a[_0x4756bd(0x331)]-0x1,_0x2c9378;_0x1894f7>=0x0;_0x1894f7--)(_0x2c9378=_0x7ebd6a[_0x1894f7])&&(_0x3be4d2=(_0x588390?_0x2c9378(_0x14dffc,_0x22e98a,_0x3be4d2):_0x2c9378(_0x3be4d2))||_0x3be4d2);return _0x588390&&_0x3be4d2&&Jr(_0x14dffc,_0x22e98a,_0x3be4d2),_0x3be4d2;},Te=(_0x33307a,_0x244708)=>(_0x4db355,_0x477bd5)=>_0x244708(_0x4db355,_0x477bd5,_0x33307a);let bt=class extends _0x71087{constructor(_0x19c550,_0x533137,_0x575449,_0x4de0eb,_0x32172f){const _0xdfba07=_0xade8c;super(_0x19c550,_0x533137,_0x575449),this[_0xdfba07(0x8e)]=_0x4de0eb,this[_0xdfba07(0x37f)]=_0x32172f;}[_0xade8c(0x31b)](_0x56cee2,_0xa594d){const _0x3ab9ca=_0xade8c,_0x3002f0=this['_getUndoStack'](_0x56cee2);if(_0x3002f0)try{const _0x299c1a=this[_0x3ab9ca(0x20a)](_0x3002f0,_0xa594d);this['_substituteUndoStack'](_0x56cee2,_0x299c1a);}catch(_0x39371b){this['_logService'][_0x3ab9ca(0x2cf)](_0x3ab9ca(0x32b),_0x39371b),this[_0x3ab9ca(0x28d)](_0x56cee2);}const _0x5a5194=this[_0x3ab9ca(0x3b4)](_0x56cee2);if(_0x5a5194)try{const _0x59db0b=this[_0x3ab9ca(0x20a)](_0x5a5194,_0xa594d);this[_0x3ab9ca(0x100)](_0x56cee2,_0x59db0b);}catch(_0x58dda3){this[_0x3ab9ca(0x37f)][_0x3ab9ca(0x2cf)](_0x58dda3),this['_clearRedo'](_0x56cee2);}}['_clearUndo'](_0x14c182){const _0xacc14a=_0xade8c,_0xa17487=this[_0xacc14a(0x1c8)](_0x14c182);_0xa17487&&(_0xa17487['length']=0x0,this['_updateStatus']());}[_0xade8c(0x193)](_0x5262e3){const _0xac9c58=_0xade8c,_0x250683=this[_0xac9c58(0x3b4)](_0x5262e3);_0x250683&&(_0x250683[_0xac9c58(0x331)]=0x0,this['_updateStatus']());}[_0xade8c(0xbc)](_0x1c9073,_0x2cdf26){const _0x269865=_0xade8c;this[_0x269865(0x208)]['set'](_0x1c9073,_0x2cdf26),this['_updateStatus']();}[_0xade8c(0x100)](_0x5c6b20,_0x4ebcba){const _0x3fe076=_0xade8c;this[_0x3fe076(0x282)][_0x3fe076(0xbd)](_0x5c6b20,_0x4ebcba),this[_0x3fe076(0x3a1)]();}['_transformStack'](_0x50ed5c,_0x5e7e7e){const _0x42ee66=_0xade8c,_0x23e4b4=[];let _0x46327d=_0x5e7e7e,_0x485371=_0x5e7e7e;for(let _0x302eba=_0x50ed5c[_0x42ee66(0x331)]-0x1;_0x302eba>=0x0;_0x302eba--){const {unitID:_0x28d0ea,undoMutations:_0x4743af,redoMutations:_0x3aa03f}=_0x50ed5c[_0x302eba],_0x286544=this['_transformService']['transformMutationsWithChangeset'](_0x46327d,_0x4743af),_0x2a4130=this[_0x42ee66(0x8e)][_0x42ee66(0x392)](_0x485371,_0x3aa03f);if(_0xb6937e(_0x286544)||_0xb6937e(_0x2a4130)){this['_logService'][_0x42ee66(0x2cf)]('[CollaborationUndoRedoService]',_0x42ee66(0x309),_0x286544,_0x2a4130);break;}_0x46327d=_0x286544['c1Prime'],_0x485371=_0x2a4130['c1Prime'],_0x23e4b4[_0x42ee66(0x142)]({'unitID':_0x28d0ea,'undoMutations':_0x286544[_0x42ee66(0x244)],'redoMutations':_0x2a4130[_0x42ee66(0x244)]});}return _0x23e4b4[_0x42ee66(0x361)]();}};bt=zr([Te(0x0,_0x3b87df),Te(0x1,_0x3f64f1),Te(0x2,_0x23bea4),Te(0x3,_0x581964),Te(0x4,_0x255408)],bt);class Zr extends _0x3fb7e3{constructor(){const _0x3423ad=_0xade8c;super(),l(this,'urlChange$'),this[_0x3423ad(0x365)]=_0x52fa92(window,_0x3423ad(0x24e))[_0x3423ad(0x2fe)](_0x2473df(this[_0x3423ad(0x13d)]),_0x23e965(0x1),_0x53ba30(void 0x0));}[_0xade8c(0x15b)](_0x1cabc5,_0x21b59a,_0x425415=!0x1){const _0xb83413=_0xade8c,_0x200a73=new URL(window['location'][_0xb83413(0x146)]);_0x200a73[_0xb83413(0x2c9)][_0xb83413(0xbd)](_0x1cabc5,_0x21b59a),_0x425415?window[_0xb83413(0x364)][_0xb83413(0x135)]('','',_0x200a73[_0xb83413(0x346)]()):window[_0xb83413(0x364)][_0xb83413(0x1fa)]('','',_0x200a73[_0xb83413(0x346)]());}[_0xade8c(0x3b3)](_0x1fedf5,_0x5228a2=!0x1){const _0x210d74=_0xade8c,_0x2a51b1=new URL(window['location']['href']);_0x2a51b1[_0x210d74(0x2c9)][_0x210d74(0x39d)](_0x1fedf5),_0x5228a2?window[_0x210d74(0x364)]['replaceState']('','',_0x2a51b1[_0x210d74(0x346)]()):window[_0x210d74(0x364)][_0x210d74(0x1fa)]('','',_0x2a51b1[_0x210d74(0x346)]());}[_0xade8c(0x38f)](_0x2f1829){const _0x1bcfe7=_0xade8c;var _0x28b882;return(_0x28b882=new URL(window[_0x1bcfe7(0x1de)][_0x1bcfe7(0x146)])[_0x1bcfe7(0x2c9)][_0x1bcfe7(0x275)](_0x2f1829))!=null?_0x28b882:void 0x0;}}const lt=_0xade8c(0xd5),Qr=_0xade8c(0x3b1),He=0x6,eo=1.5,_t=0x4,to=1.5,so=_0xade8c(0x136);class io{constructor(_0xa31ebc,_0x1ab78d,_0xc23989,_0x53d3e4){const _0x280ae9=_0xade8c;l(this,_0x280ae9(0x86),[]),l(this,'_anchor',null),l(this,_0x280ae9(0x321),null),l(this,_0x280ae9(0x293),null),l(this,_0x280ae9(0x2e7),null),l(this,_0x280ae9(0x222),null),(this[_0x280ae9(0x34d)]=_0xa31ebc,this[_0x280ae9(0x9c)]=_0x1ab78d,this[_0x280ae9(0xa6)]=_0xc23989,this[_0x280ae9(0x81)]=_0x53d3e4,this[_0x280ae9(0x147)]());}set[_0xade8c(0x326)](_0x4246fb){const _0xd97e5c=_0xade8c;_0x4246fb?(this[_0xd97e5c(0x293)]&&this['_anchorDot']['hide'](),this['_textBubble']&&this[_0xd97e5c(0x321)][_0xd97e5c(0xfa)]()):(this[_0xd97e5c(0x293)]&&this[_0xd97e5c(0x293)]['show'](),this[_0xd97e5c(0x321)]&&this['_textBubble'][_0xd97e5c(0x1f7)]());}[_0xade8c(0x199)](){const _0x4191c8=_0xade8c;for(const _0x5ccfe0 of this[_0x4191c8(0x86)])_0x5ccfe0['dispose']();this['_textBubble']&&this[_0x4191c8(0x321)][_0x4191c8(0x199)](),this['_anchorDot']&&this[_0x4191c8(0x293)][_0x4191c8(0x199)](),this['_anchor']&&this['_anchor']['dispose'](),this[_0x4191c8(0x222)]&&this[_0x4191c8(0x222)]();}[_0xade8c(0x147)](){const _0x291351=_0xade8c,{_docSkeleton:_0xef74ec,_document:_0x5c0be7}=this,{color:_0x33cd93,name:_0x13a06a,ranges:_0x3503ce}=this[_0x291351(0x34d)],_0x5b98a2=_0x5c0be7['getOffsetConfig'](),{docsLeft:_0x14a65c,docsTop:_0xa81c36}=_0x5b98a2,_0x369adc=new _0x362ef3(_0x5b98a2,_0xef74ec);for(const {startOffset:_0x1ba78e,endOffset:_0x11e124,collapsed:_0x296eba,isActive:_0x384045}of _0x3503ce){const _0x2a6aa8=_0xef74ec['findNodePositionByCharIndex'](_0x1ba78e),_0x549386=_0xef74ec[_0x291351(0x3bb)](_0x11e124);if(_0x384045){const {contentBoxPointGroup:_0x2d3310}=_0x369adc[_0x291351(0x1b3)](_0x549386,_0x549386);if(_0x2d3310[_0x291351(0x331)]===0x0)continue;this[_0x291351(0x35e)](_0x33cd93,_0x2d3310,_0x14a65c,_0xa81c36,_0x13a06a),this['_eventUnsubscribe']=this['_handleHover']();}if(!_0x296eba){const {contentBoxPointGroup:_0x1fcea9}=_0x369adc[_0x291351(0x1b3)](_0x2a6aa8,_0x549386);if(_0x1fcea9[_0x291351(0x331)]===0x0)continue;this['_drawRange'](_0x33cd93,_0x1fcea9,_0x14a65c,_0xa81c36);}}}['_drawAnchor'](_0xe9e49d,_0x5604e2,_0x5938cd,_0x46c4ec,_0x1d1a83){const _0x567acb=_0xade8c,_0x36075a=this[_0x567acb(0x185)](_0x5604e2),{left:_0x26e69d,top:_0x471462,height:_0xb13ba2}=_0x36075a,_0x1b48ad=this['_getScale'](),_0xf9241d=to/_0x1b48ad,_0x2ec568=new _0x2d5bd9(lt+_0x398800[_0x567acb(0x32a)](He),{'left':_0x26e69d+_0x5938cd-_0xf9241d,'top':_0x471462+_0x46c4ec,'height':_0xb13ba2,'width':eo,'fill':_0xe9e49d||_0x42b6d4(_0x143f52[_0x567acb(0x92)],0x0),'strokeWidth':_0xf9241d,'stroke':so,'evented':!0x0});this[_0x567acb(0xe9)]=_0x2ec568,this['_scene'][_0x567acb(0x362)](_0x2ec568,_0x54aa29);const _0x74e887=new _0x2d5bd9(lt+_0x398800[_0x567acb(0x32a)](He),{'left':_0x26e69d+_0x5938cd-_0xf9241d,'top':_0x471462+_0x46c4ec-_t/0x2,'height':_t,'width':_t,'fill':_0xe9e49d||_0x42b6d4(_0x143f52[_0x567acb(0x92)],0x0),'strokeWidth':0x0,'stroke':_0xe9e49d||_0x42b6d4(_0x143f52[_0x567acb(0x92)],0x0),'evented':!0x1});this[_0x567acb(0x293)]=_0x74e887,this[_0x567acb(0x9c)][_0x567acb(0x362)](_0x74e887,_0x54aa29);const _0x2d9bc3=new st(lt+_0x398800[_0x567acb(0x32a)](He),{'left':_0x26e69d+_0x5938cd-_0xf9241d,'top':_0x471462+_0x46c4ec-Me,'text':_0x1d1a83,'color':_0xe9e49d});this['_textBubble']=_0x2d9bc3,this[_0x567acb(0x9c)][_0x567acb(0x362)](_0x2d9bc3,_0x54aa29),this[_0x567acb(0x326)]=!0x1;}[_0xade8c(0x338)](){const _0xba3119=_0xade8c,_0x278e9a=this[_0xba3119(0xe9)]['onPointerEnter$'][_0xba3119(0x17c)](()=>{const _0x4e5296=_0xba3119;this[_0x4e5296(0x326)]=!0x0;}),_0x23c83f=this[_0xba3119(0xe9)][_0xba3119(0xba)][_0xba3119(0x17c)](()=>{this['_hideTimer']&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x40b21b=_0x4292;this[_0x40b21b(0x326)]=!0x1;},0x7d0);});return()=>{const _0x2b2762=_0xba3119;_0x278e9a[_0x2b2762(0x28e)](),_0x23c83f[_0x2b2762(0x28e)]();};}[_0xade8c(0x2b1)](_0x4d2a6a,_0x53f27f,_0x578465,_0x13e79d){const _0x27339c=_0xade8c,_0x1dd199=new _0x410434(_0x4d2a6a)[_0x27339c(0x1cf)](0.2)['toRgbString'](),_0x369c1a=new _0x40800c(Qr+_0x398800[_0x27339c(0x32a)](He),{'pointsGroup':_0x53f27f,'fill':_0x1dd199||_0x42b6d4(_0x143f52['black'],0.2),'left':_0x578465,'top':_0x13e79d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x27339c(0x86)][_0x27339c(0x142)](_0x369c1a),this[_0x27339c(0x9c)]['addObject'](_0x369c1a,_0x54aa29);}['_getAnchorBounding'](_0x2809a0){const _0x1a5f44=_0x2809a0[0x0],_0xd79ce7=_0x1a5f44[0x0],_0x1c11af=_0x1a5f44[0x2],{x:_0x2d522d,y:_0x234828}=_0xd79ce7,{x:_0x1a1a68,y:_0x1ced0a}=_0x1c11af;return{'left':_0x2d522d,'top':_0x234828,'width':_0x1a1a68-_0x2d522d,'height':_0x1ced0a-_0x234828};}['_getScale'](){const _0x3c56bb=_0xade8c,{scaleX:_0x26113d,scaleY:_0x9227ef}=this[_0x3c56bb(0x9c)][_0x3c56bb(0x186)]();return Math['max'](_0x26113d,_0x9227ef);}}var no=Object[_0xade8c(0x36b)],ro=Object[_0xade8c(0x22b)],oo=(_0x52d552,_0x562f50,_0x336ad5,_0x1dce85)=>{const _0x5d8b95=_0xade8c;for(var _0x218858=_0x1dce85>0x1?void 0x0:_0x1dce85?ro(_0x562f50,_0x336ad5):_0x562f50,_0x586194=_0x52d552[_0x5d8b95(0x331)]-0x1,_0x2ef767;_0x586194>=0x0;_0x586194--)(_0x2ef767=_0x52d552[_0x586194])&&(_0x218858=(_0x1dce85?_0x2ef767(_0x562f50,_0x336ad5,_0x218858):_0x2ef767(_0x218858))||_0x218858);return _0x1dce85&&_0x218858&&no(_0x562f50,_0x336ad5,_0x218858),_0x218858;},Re=(_0xb94e5e,_0x3ae1d5)=>(_0x4b2ef0,_0x27720e)=>_0x3ae1d5(_0x4b2ef0,_0x27720e,_0xb94e5e);let Ge=class extends _0x3fb7e3{constructor(_0x73b6f4,_0x22f8d3,_0x32dd91,_0x1865f4,_0x530448){const _0x3e6f78=_0xade8c;super(),l(this,_0x3e6f78(0x249),[]),(this['_collabCursorController']=_0x73b6f4,this['_univerInstanceService']=_0x22f8d3,this[_0x3e6f78(0x2ec)]=_0x32dd91,this[_0x3e6f78(0x104)]=_0x1865f4,this['_themeService']=_0x530448,this['_init']());}[_0xade8c(0x312)](){const _0x4c42d4=_0xade8c;this['_docSkeletonManagerService'][_0x4c42d4(0x2ed)][_0x4c42d4(0x2fe)](_0x68ef5b(this['dispose$']),_0x1b27ff(_0x51c784=>{const _0x3b14f0=_0x4c42d4;if(_0x51c784){const _0x5cb47d=_0x51c784[_0x3b14f0(0x373)]()[_0x3b14f0(0x34c)]()[_0x3b14f0(0x350)]();return _0x5930bd(this[_0x3b14f0(0x2e8)][_0x3b14f0(0x1f8)](_0x5cb47d),this[_0x3b14f0(0x26c)]['currentTheme$'])[_0x3b14f0(0x2fe)](_0x176ea9(([_0x47ab64,_0x1fc3c4])=>({'skeleton':_0x51c784,'cursors':[..._0x47ab64[_0x3b14f0(0x1ee)]()][_0x3b14f0(0x281)](_0x26cd15=>({..._0x26cd15,'color':_0x1fc3c4[_0x26cd15[_0x3b14f0(0xe6)]]}))})));}return _0x3ff30b({'skeleton':null,'cursors':[]});}))[_0x4c42d4(0xbf)](({skeleton:_0xeb4b83,cursors:_0x410816})=>{const _0x4636c7=_0x4c42d4;this[_0x4636c7(0x2db)](),_0xeb4b83&&this[_0x4636c7(0x33a)](_0xeb4b83,_0x410816);});}['_updateCollabCursors'](_0x377a12,_0xe11633){const _0x23ba18=_0xade8c,_0x1fa367=this['_getDocObject']();if(_0x1fa367==null)return;const {scene:_0xa29673,document:_0x4d6254}=_0x1fa367,_0x3f91f9=_0xe11633[_0x23ba18(0x39e)](_0x52572a=>new io(_0x52572a,_0xa29673,_0x377a12,_0x4d6254));this[_0x23ba18(0x249)]=_0x3f91f9;}[_0xade8c(0x2db)](){const _0x9021d6=_0xade8c;this[_0x9021d6(0x249)][_0x9021d6(0x2f2)](_0x43c5b5=>_0x43c5b5[_0x9021d6(0x199)]()),this['_cursors']=[];}[_0xade8c(0x226)](){const _0x3f4054=_0xade8c;return _0x570b80(this['_univerInstanceService'],this[_0x3f4054(0x2ec)]);}};Ge=oo([_0x22ab7a(_0x35f1ee[_0xade8c(0x1a6)],Ge),Re(0x0,_0xd901da(fe)),Re(0x1,_0x3b87df),Re(0x2,_0x1e26e7),Re(0x3,_0xd901da(_0x55bc8c)),Re(0x4,_0xd901da(_0x42d43e))],Ge);var ao=Object[_0xade8c(0x36b)],co=Object['getOwnPropertyDescriptor'],ho=(_0xc6422,_0x208374,_0x2dcdee,_0x637700)=>{const _0x2f9679=_0xade8c;for(var _0x92b3db=_0x637700>0x1?void 0x0:_0x637700?co(_0x208374,_0x2dcdee):_0x208374,_0x3f3da9=_0xc6422[_0x2f9679(0x331)]-0x1,_0x1f40fa;_0x3f3da9>=0x0;_0x3f3da9--)(_0x1f40fa=_0xc6422[_0x3f3da9])&&(_0x92b3db=(_0x637700?_0x1f40fa(_0x208374,_0x2dcdee,_0x92b3db):_0x1f40fa(_0x92b3db))||_0x92b3db);return _0x637700&&_0x92b3db&&ao(_0x208374,_0x2dcdee,_0x92b3db),_0x92b3db;},ut=(_0x45de26,_0x115097)=>(_0x3f4631,_0x39edc8)=>_0x115097(_0x3f4631,_0x39edc8,_0x45de26);let Ze=class{constructor(_0x2fb449,_0x2e7839,_0x8213d){const _0x10e414=_0xade8c;this[_0x10e414(0x253)]=_0x2fb449,this[_0x10e414(0x181)]=_0x2e7839,this[_0x10e414(0x316)]=_0x8213d,this[_0x10e414(0x254)]();}[_0xade8c(0x254)](){const _0x3c2490=_0xade8c;this[_0x3c2490(0x181)][_0x3c2490(0x255)]({'priority':0x1,'interceptor':(_0x1c34b9,_0x2f79d3)=>_0x2f79d3(_0x1c34b9)[_0x3c2490(0x2fe)](_0x5af94b(async _0x5de6ab=>{const _0x5f1db5=_0x3c2490,_0x5a5967=_0x5de6ab;if(_0x5a5967[_0x5f1db5(0x3b8)]===0x191&&window[_0x5f1db5(0x2f8)](this[_0x5f1db5(0x316)]['t'](_0x5f1db5(0x25c)))){const _0x266bcd=window[_0x5f1db5(0x34e)](window['location'][_0x5f1db5(0x146)]);window[_0x5f1db5(0x1de)][_0x5f1db5(0x146)]=this[_0x5f1db5(0x2f3)]()+_0x5f1db5(0x175)+_0x266bcd;}return _0x5a5967;}))});}['_getLoginPath'](){const _0x1d77aa=_0xade8c;var _0x4f2b6f;return(_0x4f2b6f=this[_0x1d77aa(0x253)][_0x1d77aa(0x1df)](mn))!=null?_0x4f2b6f:gn;}};Ze=ho([ut(0x0,_0x531a6b),ut(0x1,_0xd901da(_0x32bb9e)),ut(0x2,_0xd901da(_0x3fbf2b))],Ze);var lo=Object[_0xade8c(0x36b)],_o=Object[_0xade8c(0x22b)],uo=(_0x54d12a,_0x55f53f,_0x1aaeb9,_0x493d81)=>{const _0x19e287=_0xade8c;for(var _0x5a8ed4=_0x493d81>0x1?void 0x0:_0x493d81?_o(_0x55f53f,_0x1aaeb9):_0x55f53f,_0x30359d=_0x54d12a[_0x19e287(0x331)]-0x1,_0x32a83d;_0x30359d>=0x0;_0x30359d--)(_0x32a83d=_0x54d12a[_0x30359d])&&(_0x5a8ed4=(_0x493d81?_0x32a83d(_0x55f53f,_0x1aaeb9,_0x5a8ed4):_0x32a83d(_0x5a8ed4))||_0x5a8ed4);return _0x493d81&&_0x5a8ed4&&lo(_0x55f53f,_0x1aaeb9,_0x5a8ed4),_0x5a8ed4;},ns=(_0x319f38,_0x390eb5)=>(_0x455a0e,_0x205f1f)=>_0x390eb5(_0x455a0e,_0x205f1f,_0x319f38);const fo=_0xade8c(0x230),mo='/universer-api/authz';let Tt=class extends _0x5297f3{constructor(_0x2e0a07,_0x1fc6db){const _0x572985=_0xade8c;super(),this['_HTTPService']=_0x2e0a07,this[_0x572985(0x253)]=_0x1fc6db,this[_0x572985(0x9d)]();}['_initMergeInterceptor'](){const _0x45eeb7=this;this['disposeWithMe'](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x3f4d36({'isMatch'(_0x5a5e23){const _0x5501c4=_0x4292;var _0x7e69e6;if(_0x5a5e23[_0x5501c4(0x20f)]===_0x5501c4(0x1f9)&&((_0x7e69e6=_0x5a5e23[_0x5501c4(0x2ca)])!=null&&_0x7e69e6[_0x5501c4(0x2c2)])){const {objectID:_0x3332b0,objectType:_0x41a35e}=_0x5a5e23[_0x5501c4(0x2ca)]['body']||{};if(!_0x3332b0||_0x41a35e===void 0x0)return!0x1;const _0x1700ce=_0x45eeb7['_getAPIPrefixPath']()+'/'+_0x41a35e+_0x5501c4(0x21e)+_0x3332b0+_0x5501c4(0x251);if(_0x5a5e23[_0x5501c4(0x353)]===_0x1700ce)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x499ce8){const _0x3a062a=_0x4292;var _0x1a7500;return(_0x1a7500=_0x499ce8['requestParams'])==null?void 0x0:_0x1a7500[_0x3a062a(0x2c2)];},'mergeParamsToRequest'(_0x3e5cc1,_0x3384dd){const _0x476da0=_0x4292,_0x3b708e=_0x45eeb7[_0x476da0(0x39c)]()+_0x476da0(0x80),_0x31917e=_0x3e5cc1[_0x476da0(0x214)]((_0x3b3e16,_0x1f5c2e)=>{const _0x3afdc7=_0x476da0,{unitID:_0x543313,objectID:_0xa1969d,objectType:_0x124a91,actions:_0x5a34e6}=_0x1f5c2e;return _0x3b3e16[_0x543313]||(_0x3b3e16[_0x543313]={}),_0x3b3e16[_0x543313][_0xa1969d]||(_0x3b3e16[_0x543313][_0xa1969d]={'objectID':_0xa1969d,'objectType':_0x124a91,'actions':[]}),_0x3b3e16[_0x543313][_0xa1969d][_0x3afdc7(0x2ba)][_0x3afdc7(0x142)](..._0x5a34e6),_0x3b3e16;},{}),_0x3ed059=[];for(const _0x1ac374 in _0x31917e)for(const _0x529569 in _0x31917e[_0x1ac374]){const {actions:_0x12b8bc,objectType:_0x3169ab}=_0x31917e[_0x1ac374][_0x529569],_0x2b19e0=[...new Set(_0x12b8bc)];_0x3ed059['push']({'unitID':_0x1ac374,'objectID':_0x529569,'objectType':_0x3169ab,'actions':_0x2b19e0});}return new _0x2026b9(_0x476da0(0x1f9),_0x3b708e,{'headers':_0x3384dd[_0x476da0(0x323)],'withCredentials':_0x3384dd['withCredentials'],'responseType':_0x3384dd[_0x476da0(0x2bd)],'body':{'requests':_0x3ed059}});}},{'distributeResult'(_0x4c0f7e,_0x3ef775){const {objectActions:_0x20e946}=_0x4c0f7e;return _0x3ef775['map'](_0x5ef4ba=>{const _0x4e449c=_0x4292,{unitID:_0xfa037f,objectID:_0x277789,actions:_0x4782ef}=_0x5ef4ba,_0x2c2311=_0x20e946[_0x4e449c(0x18f)](_0x1ea004=>_0x1ea004[_0x4e449c(0x14d)]===_0xfa037f&&_0x1ea004[_0x4e449c(0x13c)]===_0x277789),_0x170e6f=_0x4782ef[_0x4e449c(0x39e)](_0x4e45cc=>_0x2c2311==null?void 0x0:_0x2c2311['actions'][_0x4e449c(0x18f)](_0x25330d=>_0x25330d[_0x4e449c(0x168)]===_0x4e45cc))[_0x4e449c(0x2a9)](_0x33767a=>!!_0x33767a);return{'config':_0x5ef4ba,'result':{'actions':_0x170e6f,'error':_0x4c0f7e['error']}};});}})}));}['_getAPIPrefixPath'](){const _0x57e776=_0xade8c;var _0x170628;return(_0x170628=this['_configService'][_0x57e776(0x1df)](fo))!=null?_0x170628:mo;}async['create'](_0x4cacb9){const _0x399375=_0xade8c,_0x3506bb=this[_0x399375(0x39c)]()+'/'+_0x4cacb9['objectType']+'/object';return(await this[_0x399375(0x16d)][_0x399375(0x35d)](_0x3506bb,{'body':_0x4cacb9}))[_0x399375(0x2c2)][_0x399375(0x13c)]||'';}async[_0xade8c(0x171)](_0x3c15f8){const _0x291728=_0xade8c,_0x5c69fe=this[_0x291728(0x39c)]()+_0x291728(0x18d);return(await this['_HTTPService']['post'](_0x5c69fe,{'body':_0x3c15f8}))['body'][_0x291728(0x94)];}async[_0xade8c(0x1a2)](_0x57378a){const _0x1f43c8=_0xade8c,_0x1e8b6a=this[_0x1f43c8(0x39c)]()+'/'+_0x57378a[_0x1f43c8(0x38d)]+_0x1f43c8(0x21e)+_0x57378a[_0x1f43c8(0x13c)];await this[_0x1f43c8(0x16d)][_0x1f43c8(0x1f2)](_0x1e8b6a,{'body':_0x57378a});}async[_0xade8c(0x1af)](_0x33815a){const _0x3f4c2e=_0xade8c,_0x569631=this[_0x3f4c2e(0x39c)]()+'/'+_0x33815a[_0x3f4c2e(0x38d)]+_0x3f4c2e(0x21e)+_0x33815a[_0x3f4c2e(0x13c)]+_0x3f4c2e(0x251);return(await this[_0x3f4c2e(0x16d)]['post'](_0x569631,{'body':_0x33815a}))[_0x3f4c2e(0x2c2)][_0x3f4c2e(0x2ba)];}async[_0xade8c(0x7b)](_0x21033c){const _0x5a53bc=_0xade8c,_0xf7078=this[_0x5a53bc(0x39c)]()+'/-/object/-/batch_allowed';return(await this[_0x5a53bc(0x16d)]['post'](_0xf7078,{'body':{'requests':_0x21033c}}))[_0x5a53bc(0x2c2)]['objectActions'];}async[_0xade8c(0x114)](_0x17c06d){const _0x11eec3=_0xade8c,_0x46dd91=this[_0x11eec3(0x39c)]()+'/'+_0x17c06d[_0x11eec3(0x38d)]+'/role',_0x395c8e=await this[_0x11eec3(0x16d)][_0x11eec3(0x35d)](_0x46dd91,{'body':_0x17c06d});return{'roles':_0x395c8e[_0x11eec3(0x2c2)]['roles'],'actions':_0x395c8e[_0x11eec3(0x2c2)][_0x11eec3(0x2ba)]};}async[_0xade8c(0x2df)](_0x40c501){const _0x44f41d=_0xade8c,_0x91a93d=this['_getAPIPrefixPath']()+_0x44f41d(0xea);await this[_0x44f41d(0x16d)]['delete'](_0x91a93d,{'params':{'collaboratorID':_0x40c501['collaboratorID'],'objectID':_0x40c501['objectID'],'unitID':_0x40c501['unitID']}});}async['updateCollaborator'](_0x428314){const _0x1dc261=_0xade8c,_0x13d310=this[_0x1dc261(0x39c)]()+_0x1dc261(0xea);await this[_0x1dc261(0x16d)][_0x1dc261(0xdb)](_0x13d310,{'body':_0x428314});}async[_0xade8c(0x1d8)](_0x1ffc8f){const _0x50cdfc=_0xade8c,_0x100139=this[_0x50cdfc(0x39c)]()+_0x50cdfc(0xea);await this[_0x50cdfc(0x16d)]['post'](_0x100139,{'body':_0x1ffc8f});}async[_0xade8c(0x328)](_0x39ad8b){const _0x161303=_0xade8c,_0xd5bf1f=this['_getAPIPrefixPath']()+'/collaborator';return(await this[_0x161303(0x16d)]['get'](_0xd5bf1f,{'params':{'objectID':_0x39ad8b[_0x161303(0x13c)],'unitID':_0x39ad8b[_0x161303(0x14d)]}}))[_0x161303(0x2c2)][_0x161303(0x1b9)];}async[_0xade8c(0x2a1)](_0x4dda06){const _0x4da8de=_0xade8c,_0x59acfb=this[_0x4da8de(0x39c)]()+_0x4da8de(0xea);await this[_0x4da8de(0x16d)]['put'](_0x59acfb,{'body':_0x4dda06});}};Tt=uo([ns(0x0,_0xd901da(_0x32bb9e)),ns(0x1,_0xd901da(_0x531a6b))],Tt);var go=Object[_0xade8c(0x36b)],So=Object[_0xade8c(0x22b)],vo=(_0x72fd,_0x2c99eb,_0x3e5d01,_0xfc6e11)=>{const _0x110ca5=_0xade8c;for(var _0x55222f=_0xfc6e11>0x1?void 0x0:_0xfc6e11?So(_0x2c99eb,_0x3e5d01):_0x2c99eb,_0x45e01a=_0x72fd[_0x110ca5(0x331)]-0x1,_0x36059f;_0x45e01a>=0x0;_0x45e01a--)(_0x36059f=_0x72fd[_0x45e01a])&&(_0x55222f=(_0xfc6e11?_0x36059f(_0x2c99eb,_0x3e5d01,_0x55222f):_0x36059f(_0x55222f))||_0x55222f);return _0xfc6e11&&_0x55222f&&go(_0x2c99eb,_0x3e5d01,_0x55222f),_0x55222f;},rs=(_0x49fe72,_0x2011f3)=>(_0x24b988,_0x3fde2c)=>_0x2011f3(_0x24b988,_0x3fde2c,_0x49fe72);const po=['image/png',_0xade8c(0x19f),_0xade8c(0x2cd),_0xade8c(0x15d),_0xade8c(0x28f)],Io=0x5*0x400*0x400,Eo=_0xade8c(0x1ff),Co=_0xade8c(0x108),bo=_0xade8c(0x192),To='/universer-api/file/{fileID}/sign-url';let Rt=class{constructor(_0x1209f2,_0x513f20){const _0x367d58=_0xade8c;l(this,'_waitCount',0x0),l(this,_0x367d58(0x210),new _0x3718e0()),l(this,_0x367d58(0x256),this[_0x367d58(0x210)]),l(this,_0x367d58(0x167),new Map()),(this['_httpService']=_0x1209f2,this['_configService']=_0x513f20);}['setWaitCount'](_0x4fa8fd){const _0x22e81b=_0xade8c;this[_0x22e81b(0x341)]=_0x4fa8fd,this['_change$'][_0x22e81b(0xab)](_0x4fa8fd);}['getImageSourceCache'](_0x2f9fae,_0xe551e4){const _0x39cfef=_0xade8c;if(_0xe551e4===_0x146d1d[_0x39cfef(0x2ef)]){const _0xb8c68d=new Image();return _0xb8c68d[_0x39cfef(0x1b0)]=_0x2f9fae,_0xb8c68d;}return this['_imageSourceCache'][_0x39cfef(0x275)](_0x2f9fae);}[_0xade8c(0x1e3)](_0x41c0fc,_0x57c441,_0x5cda94){const _0x5b142d=_0xade8c;_0x57c441===_0x146d1d['BASE64']||_0x5cda94==null||this[_0x5b142d(0x167)]['set'](_0x41c0fc,_0x5cda94);}async[_0xade8c(0x134)](_0x2e2432){const _0x32b499=_0xade8c;try{const _0x1f45e4=this[_0x32b499(0x1ad)](this['_getSignURL'](),''+_0x2e2432),_0x1601db=(await this[_0x32b499(0x181)][_0x32b499(0x275)](_0x1f45e4))['body'];return _0x1601db[_0x32b499(0x2cf)]&&_0x1601db[_0x32b499(0x2cf)][_0x32b499(0x2d3)]===Rs['OK']?Promise[_0x32b499(0x31e)](_0x1601db['url']):Promise[_0x32b499(0x203)](_0x1601db[_0x32b499(0x2cf)]);}catch(_0x5f31d2){return Promise[_0x32b499(0x203)](_0x5f31d2);}}async[_0xade8c(0x334)](_0x29e528){const _0x284706=_0xade8c;let _0x4ce1d9='';if(!po[_0x284706(0x1f5)](_0x29e528[_0x284706(0x207)]))return this[_0x284706(0x3af)](),Promise['reject'](new Error(_0x200c2c[_0x284706(0xe5)]));if(_0x29e528[_0x284706(0x337)]>Io)return this[_0x284706(0x3af)](),Promise[_0x284706(0x203)](new Error(_0x200c2c['ERROR_EXCEED_SIZE']));try{const _0x2ba97d=new FormData();_0x2ba97d[_0x284706(0x266)]('file',_0x29e528);const _0x59ca11=this[_0x284706(0xae)]()+_0x284706(0x102)+_0x29e528[_0x284706(0x337)]['toString'](),_0x4d9620=await(await fetch(_0x59ca11,{'method':_0x284706(0x1f9),'body':_0x2ba97d}))[_0x284706(0xc1)]();if(typeof _0x4d9620[_0x284706(0x397)]!=_0x284706(0x36f))return this[_0x284706(0x3af)](),Promise[_0x284706(0x203)](new Error(_0x200c2c[_0x284706(0x189)]));_0x4ce1d9=_0x4d9620[_0x284706(0x397)];}catch{return this['_decreaseWaiting'](),Promise[_0x284706(0x203)](new Error(_0x200c2c[_0x284706(0x189)]));}return new Promise((_0x31f856,_0x35ffac)=>{const _0x19e290=_0x284706,_0x2658ec=new FileReader();_0x2658ec['readAsDataURL'](_0x29e528),_0x2658ec[_0x19e290(0x246)]=_0x44e71e=>{const _0x56602d=_0x19e290;var _0x55444b;const _0x331ed8=(_0x55444b=_0x44e71e[_0x56602d(0x378)])==null?void 0x0:_0x55444b[_0x56602d(0x24c)];if(_0x331ed8==null){this[_0x56602d(0x3af)](),_0x35ffac(new Error(_0x200c2c[_0x56602d(0x189)]));return;}const _0x429da2=_0x398800[_0x56602d(0x32a)](0x6);_0x31f856({'imageId':_0x429da2,'imageSourceType':_0x146d1d[_0x56602d(0x125)],'source':_0x4ce1d9,'base64Cache':_0x331ed8,'status':_0x200c2c['SUCCUSS']}),this[_0x56602d(0x3af)]();};});}[_0xade8c(0xae)](){const _0x5c9bf9=_0xade8c;var _0x454375;return(_0x454375=this[_0x5c9bf9(0x253)][_0x5c9bf9(0x1df)](Eo))!=null?_0x454375:Co;}['_getSignURL'](){const _0x2e1208=_0xade8c;var _0x4f2962;return(_0x4f2962=this[_0x2e1208(0x253)][_0x2e1208(0x1df)](bo))!=null?_0x4f2962:To;}[_0xade8c(0x1ad)](_0x4a58b3,_0x213106){const _0x29f1f0=_0xade8c;return _0x4a58b3['replace'](_0x29f1f0(0x2d0),_0x213106);}[_0xade8c(0x3af)](){const _0x215341=_0xade8c;this[_0x215341(0x341)]-=0x1,this[_0x215341(0x210)][_0x215341(0xab)](this[_0x215341(0x341)]);}};Rt=vo([rs(0x0,_0xd901da(_0x32bb9e)),rs(0x1,_0x531a6b)],Rt);var Ro=Object[_0xade8c(0x36b)],Oo=Object['getOwnPropertyDescriptor'],Do=(_0x584669,_0x737f5e,_0x30d7e1,_0x50eab2)=>{const _0x3e51e6=_0xade8c;for(var _0x9841ea=_0x50eab2>0x1?void 0x0:_0x50eab2?Oo(_0x737f5e,_0x30d7e1):_0x737f5e,_0x44bfd2=_0x584669[_0x3e51e6(0x331)]-0x1,_0x39bdd1;_0x44bfd2>=0x0;_0x44bfd2--)(_0x39bdd1=_0x584669[_0x44bfd2])&&(_0x9841ea=(_0x50eab2?_0x39bdd1(_0x737f5e,_0x30d7e1,_0x9841ea):_0x39bdd1(_0x9841ea))||_0x9841ea);return _0x50eab2&&_0x9841ea&&Ro(_0x737f5e,_0x30d7e1,_0x9841ea),_0x9841ea;},Oe=(_0x34030d,_0x890b39)=>(_0x395c79,_0x1d8110)=>_0x890b39(_0x395c79,_0x1d8110,_0x34030d);let Ye=class extends _0x3fb7e3{constructor(_0x95a8af,_0x31963c,_0x4558a8,_0x547b33,_0xf40bc2){const _0x1b903e=_0xade8c;super(),this[_0x1b903e(0xcc)]=_0x95a8af,this[_0x1b903e(0x1c2)]=_0x31963c,this[_0x1b903e(0x10f)]=_0x4558a8,this[_0x1b903e(0x363)]=_0x547b33,this['_localeService']=_0xf40bc2,this[_0x1b903e(0x2a6)](),this[_0x1b903e(0x333)]();}[_0xade8c(0x333)](){const _0x3f13c6=_0xade8c,_0x3d6ddf=async _0x516525=>{const _0x5e29b1=_0x4292;(await this[_0x5e29b1(0x363)][_0x5e29b1(0x12b)](_0x516525))[_0x5e29b1(0x2ea)][_0x5e29b1(0x2fe)](_0x4c2296(_0x41a6db=>_0x41a6db['eventID']===_0x1b9133[_0x5e29b1(0x345)]),_0x68ef5b(this[_0x5e29b1(0x13d)]))[_0x5e29b1(0xbf)](_0x1905bd=>{const _0x309261=_0x5e29b1,_0x32a70e=_0x1905bd,{reason:_0x64e8e8}=_0x32a70e['data'];this['_injector'][_0x309261(0x275)](_0x48de42)[_0x309261(0xfa)]({'type':_0x4d4329[_0x309261(0xbe)],'content':this[_0x309261(0x148)]['t'](_0x309261(0x12d))+'('+_0x64e8e8+')'}),this[_0x309261(0x10f)][_0x309261(0xd7)](new _0xaddd59(_0x516525)['id'],!0x1),this[_0x309261(0x363)][_0x309261(0x38a)](_0x516525);});};_0x52fd0c(this[_0x3f13c6(0x1c2)][_0x3f13c6(0x252)](_0x9cd059[_0x3f13c6(0x3a3)]),this[_0x3f13c6(0x1c2)][_0x3f13c6(0x252)](_0x9cd059['UNIVER_DOC']))[_0x3f13c6(0x2fe)](_0x176ea9(_0x5cf426=>_0x5cf426[_0x3f13c6(0x350)]()),_0x4c2296(_0x1726cf=>!_0x142b75(_0x1726cf)),_0x68ef5b(this[_0x3f13c6(0x13d)]))[_0x3f13c6(0xbf)](_0x55fa33=>{_0x3d6ddf(_0x55fa33);});}[_0xade8c(0x2a6)](){const _0x21bf84=_0xade8c,_0x5bb891=async _0x2b71b6=>{const _0x16b545=_0x4292;(await this[_0x16b545(0x363)][_0x16b545(0x12b)](_0x2b71b6))[_0x16b545(0x2ea)]['pipe'](_0x4c2296(_0x4a2431=>_0x4a2431[_0x16b545(0x13b)]===_0x1b9133[_0x16b545(0x130)]),_0x68ef5b(this[_0x16b545(0x13d)]))[_0x16b545(0xbf)](_0x3888d5=>{const _0x5c22c8=_0x16b545,_0x404d2c=_0x3888d5,{objectId:_0x1f9ffc}=_0x404d2c[_0x5c22c8(0x19b)];_0x1f9ffc===_0x2b71b6&&this[_0x5c22c8(0xcc)]['get'](_0x331505)[_0x5c22c8(0x2ad)](_0x2b71b6);});};_0x52fd0c(this[_0x21bf84(0x1c2)]['getTypeOfUnitAdded$'](_0x9cd059[_0x21bf84(0x3a3)]),this[_0x21bf84(0x1c2)][_0x21bf84(0x252)](_0x9cd059[_0x21bf84(0x1c7)]))[_0x21bf84(0x2fe)](_0x176ea9(_0x54a8af=>_0x54a8af['getUnitId']()),_0x4c2296(_0x3377fe=>!_0x142b75(_0x3377fe)),_0x68ef5b(this[_0x21bf84(0x13d)]))[_0x21bf84(0xbf)](_0x2c84ac=>{_0x5bb891(_0x2c84ac);});}};Ye=Do([_0x22ab7a(_0x35f1ee['Starting'],Ye),Oe(0x0,_0xd901da(_0x3c61ae)),Oe(0x1,_0x3b87df),Oe(0x2,_0x1b6020),Oe(0x3,_0xd901da(ge)),Oe(0x4,_0xd901da(_0x3fbf2b))],Ye);var $s=Object['defineProperty'],Po=Object[_0xade8c(0x22b)],wo=(_0x3857c3,_0x105f8c,_0x736141)=>_0x105f8c in _0x3857c3?$s(_0x3857c3,_0x105f8c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x736141}):_0x3857c3[_0x105f8c]=_0x736141,No=(_0xb3d6f5,_0x1a140a,_0x5b21f2,_0x39674a)=>{const _0xe7dc2f=_0xade8c;for(var _0x21948e=_0x39674a>0x1?void 0x0:_0x39674a?Po(_0x1a140a,_0x5b21f2):_0x1a140a,_0x1dea34=_0xb3d6f5[_0xe7dc2f(0x331)]-0x1,_0x228e30;_0x1dea34>=0x0;_0x1dea34--)(_0x228e30=_0xb3d6f5[_0x1dea34])&&(_0x21948e=(_0x39674a?_0x228e30(_0x1a140a,_0x5b21f2,_0x21948e):_0x228e30(_0x21948e))||_0x21948e);return _0x39674a&&_0x21948e&&$s(_0x1a140a,_0x5b21f2,_0x21948e),_0x21948e;},os=(_0x3fecf2,_0x4aff5d)=>(_0x4951f2,_0x2a5cdc)=>_0x4aff5d(_0x4951f2,_0x2a5cdc,_0x3fecf2),Mo=(_0x5dcce4,_0x467940,_0x21ab84)=>wo(_0x5dcce4,_0x467940+'',_0x21ab84);const Ao=_0xade8c(0x399);let Ot=class extends _0xde0405{constructor(_0x575b4b,_0x23a671,_0x25f806){const _0x2b0687=_0xade8c;super(),this[_0x2b0687(0x296)]=_0x575b4b,this[_0x2b0687(0x37f)]=_0x23a671,this[_0x2b0687(0xcc)]=_0x25f806;}[_0xade8c(0x213)](_0x44f8cb){const _0x2f8458=_0xade8c;var _0x278b92,_0x38eed2,_0x581808,_0x1a7e30,_0x4eb7ed;_0x44f8cb[_0x2f8458(0x1e7)](_0x1bc0b8)&&this[_0x2f8458(0x37f)][_0x2f8458(0x2cf)](_0x2f8458(0x1a0),_0x2f8458(0x20b));let _0x5818ef=[[_0x1bc0b8,{'useClass':bt}],[ge],[Lt],[_0x32bb9e],[Ls,{'useClass':Zr}],[ne],[D],[_0x56a40f],[qe],[Je],[Xe],[Ut],[Ze],[Ds],[Ye],[Os,{'useClass':(_0x38eed2=(_0x278b92=this[_0x2f8458(0x296)])==null?void 0x0:_0x278b92[_0x2f8458(0x2a7)])!=null?_0x38eed2:gt}],[_0x2364b6,{'useClass':_0x11d4c7}],[_0x5610c3,{'useClass':Ct}],[_0x4e5c79,{'useClass':Tt}],[_0x355890,{'useClass':Rt}],[De],[ke],[Be],[We],[fe]];(_0x581808=this[_0x2f8458(0x296)])!=null&&_0x581808[_0x2f8458(0x38e)]&&_0x5818ef[_0x2f8458(0x142)]([et,{'useClass':An}]),((_0x1a7e30=this[_0x2f8458(0x296)])==null?void 0x0:_0x1a7e30['collaborationUniverTypes'])==null||this[_0x2f8458(0x296)][_0x2f8458(0x292)][_0x2f8458(0x1f5)](_0x9cd059[_0x2f8458(0x3a3)])?_0x5818ef[_0x2f8458(0x142)]([Ve]):this['_config'][_0x2f8458(0x292)][_0x2f8458(0x1f5)](_0x9cd059[_0x2f8458(0x1c7)])&&_0x5818ef[_0x2f8458(0x142)]([Ge]),_0x5818ef=_0x2e36c0(_0x5818ef,(_0x4eb7ed=this[_0x2f8458(0x296)])==null?void 0x0:_0x4eb7ed[_0x2f8458(0x238)]),_0x5818ef['forEach'](_0x2b87fb=>_0x44f8cb['add'](_0x2b87fb)),_0x44f8cb[_0x2f8458(0x275)](_0x32bb9e)[_0x2f8458(0x255)]({'priority':0x14,'interceptor':_0x53aaa4({'maxParallel':0x6})}),this[_0x2f8458(0x2ee)]();}[_0xade8c(0x2ee)](){const _0x48188b=_0xade8c;var _0x233635,_0x532fd2;(_0x233635=this[_0x48188b(0x296)])!=null&&_0x233635[_0x48188b(0x7a)]||this[_0x48188b(0xcc)][_0x48188b(0x275)](D)['disableLocalCache'](),(_0x532fd2=this[_0x48188b(0x296)])!=null&&_0x532fd2['enableAuthServer']&&this[_0x48188b(0xcc)]['get'](Ze);}};Mo(Ot,_0xade8c(0x2eb),Ao),Ot=No([_0x4bdc3b(_0x4c40a3),os(0x1,_0x255408),os(0x2,_0xd901da(_0x3c61ae))],Ot);export{fo as AUTHZ_URL_KEY,Tt as AuthzIoHttpService,dn as COLLAB_SUBMIT_CHANGESET_URL_KEY,sn as COLLAB_WEB_SOCKET_URL_KEY,De as CollaborationController,St as CollaborationSession,ge as CollaborationSessionService,gt as CollaborationSocketService,w as CollaborationStatus,yr as CollaborationStatusDisplay,Ds as CommentService,ke as DataLoaderController,Be as DesktopCollaborationStatusDisplayController,rn as HEARTBEAT_INTERVAL_KEY,bs as HEARTBEAT_TIMEOUT_KEY,Os as ICollaborationSocketService,Ls as IURLService,_n as LOCAL_CACHE_INTERVAL_KEY,mn as LOGIN_URL_KEY,D as LocalCacheService,en as SEND_CHANGESET_TIMEOUT_KEY,zi as SNAPSHOT_SERVER_URL_KEY,Qi as SNAPSHOT_URL_KEY,de as SessionStatus,Ot as UniverCollaborationClientPlugin,Zr as WebURLService,En as deserializeToCombResponse,Cn as serializeCombRequest};
|