@univerjs-pro/collaboration-client 0.2.14 → 0.2.15
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/types/controllers/collaboration/collaboration-entity.d.ts +4 -4
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +3 -3
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +1 -1
- package/lib/types/plugin.d.ts +5 -0
- package/lib/types/services/image-remote/image-io.service.d.ts +2 -1
- package/lib/umd/index.js +1 -1
- package/package.json +32 -32
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x2e5b1c=_0x5851;(function(_0x5cc580,_0x247df4){const _0xe9c2e9=_0x5851,_0x298806=_0x5cc580();while(!![]){try{const _0x3fab4f=parseInt(_0xe9c2e9(0x3d8))/0x1*(parseInt(_0xe9c2e9(0x23c))/0x2)+-parseInt(_0xe9c2e9(0x419))/0x3*(parseInt(_0xe9c2e9(0x208))/0x4)+-parseInt(_0xe9c2e9(0x442))/0x5+parseInt(_0xe9c2e9(0x2dc))/0x6+parseInt(_0xe9c2e9(0x152))/0x7*(-parseInt(_0xe9c2e9(0x37f))/0x8)+-parseInt(_0xe9c2e9(0x1fa))/0x9*(-parseInt(_0xe9c2e9(0x325))/0xa)+parseInt(_0xe9c2e9(0x28a))/0xb;if(_0x3fab4f===_0x247df4)break;else _0x298806['push'](_0x298806['shift']());}catch(_0x26c6de){_0x298806['push'](_0x298806['shift']());}}}(_0x3164,0xe75fc));var Js=Object[_0x2e5b1c(0x2de)],zs=(_0x31ed66,_0x16ac71,_0x1b3413)=>_0x16ac71 in _0x31ed66?Js(_0x31ed66,_0x16ac71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b3413}):_0x31ed66[_0x16ac71]=_0x1b3413,l=(_0x51919c,_0x24a7e3,_0x4d8617)=>zs(_0x51919c,typeof _0x24a7e3!=_0x2e5b1c(0x307)?_0x24a7e3+'':_0x24a7e3,_0x4d8617);function _0x3164(){const _0x329218=['onPointerEnter$','_handleEvent','action','className','_roomMembers','dispose$','_undoRedoService','_renderManagerService','_send','_updateLocalCache','_getMergeRange','subscribe','_collaborationController','getResourcesRequest','leaveEvent','AWAITING','resend','VIEW_MAIN','subscribeEvent','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','syncEditingCollabCursor','_toggleOffline','_transformService','labelPosition','onStarting','_handleHover','onPointerLeave$','onTransformSelections','column','[OfflineState]:\x20received\x20rejection.','stringify','1nbyGaW','_beforeCloseService','_startSheetCollabCursor','...','_drawAnchor','JOINING','APPLY_REVISION_CONFILICT','/allowed','USERS_ENTER','ERROR_EXCEED_SIZE','enableSingleActiveInstanceLock','INVALID_ARGUMENT','offline','toggleOffline','prototype','isActive','use','RECV','onRemoteChangeset','_shapes','_state$','_notificationService','HttpImport','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','NO_OTHER_CLIENTS_EDITING','_collabSessionService','on-line-single','makeDirty','font','pushState','DeleteRangeMoveLeftCommandId','subUnitId','PSEUDO_FETCH_MISSING_RESULT','_cachedData','_onJoinRoomEvent','transform','getRelativeToViewportCoord','collab-client.tooltip.reconnect','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','replaceTextRanges','registerRefRange','CHANGESET_REVISION_CONFILICT','getParam','_onOffline','drawWith','toggleOnline','triggerDblclick','every','_transformPreviousActiveRange','getWorkbookSelections','defIds','_remoteChangesetQueue','append','_pendingMutations','close','_ensureSubject','_config','pluginName','_hovered','DeleteRangeMoveUpCommandId','Unknown\x20user','appendMutation','ERROR_IMAGE','storage','_telemetryInfo','38259pDKupM','method','_submitChangeset','getOwnPropertyDescriptor','_telemetryService','LICENSE_IMPORT_SIZE_EXCEEDED','YUUMI_URL_COL_OUT_OF_RANGE','gold400','SYNCED','current','_HTTPService','hide','Warning','getUnitId','awaiting','_collabCursorState$','univer-online-status','parse','_onRefRangeChange','setShapeProps','off-line-single','\x0aCurrent:\x20','_init','resolve','_docSkeletonManagerService','CONNECTOR_DATA_TOO_LARGE','replaceState','isArray','_onRemoteChangeset','_transformUndoRedoStack','connection\x20error','/universer-api/snapshot','_name','_docSkeleton','_clearOtherTimers','\x20in\x20_schedule.','LICENSE_DISTRO_REJECTED','m1Prime','textRanges','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_listenToOfflineEvent','5659315GdpOtW','YUUMI_SUBSCRIPTION_NOT_FOUND','image/gif','/universer-api/file/{fileID}/sign-url','apply','complete','_awaitingChangeset','getViewport','_commentUpdate$','_collabCursorController','isPermissionRej','_replayCachedMutations','objects','measureText','status','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_localeService','_clearRedo','title','removeParam','_transformSelections','incrementRevForDocument','[CollaborationEntity]','PERMISSION_REJ','\x20to\x20','_substituteUndoStack','_cursors','colorChannel1','width','_disabled','getCurrentSelections','editingUnit','_online','liveShareOperation','[PendingState]:\x20received\x20acknowledgement.','verdancy600','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','SNAPSHOT_INVALID_SNAPSHOT','_removeClearOtherTimer','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','getTypeOfUnitDisposed$','icon','open$','UNKNOWN_CMD','color','on-line-single_clip0_910_349','image/bmp','_setupBeforeClosingHandler','/-/object/-/batch_allowed','_scheduleClearOtherTimer','getRenderById','roles','setCurrentUser','_onUserLeave','AWAITING_WITH_PENDING','OffLineSingle','getInterceptPoints','add','_updateURLWithCurrentState','_backgroundColor','LOCAL_CACHE_INTERVAL','LIVESHARE_REQUEST_HOST','rev','override','_disableEditing','univer-online','HEARTBEAT_TIMEOUT','_syncEditingCollabCursor','responseType','LIVESHARE_TERMINATE','Starting','/object/','_snapshotService','/rev/','readAsDataURL','addEventListener','_getUndoStack','_onRecvEvent','_docSyncEditingCollabCursorService','svg','_drawRectRange','max','init','random','_getAPIPrefix','top','_socket$','_userManagerService','transformByState','popstate','infoRsp','_getUploadFileURL','interceptor','body','translate(.97)','getValue','failed\x20to\x20apply\x20missed\x20changesets!','filter','text','getCurrentRevForDocument','setParam','focused$','createElement','updateCursorEvent','socket$','addObjects','_setupSubUnitSync','call','black','ONLINE','_http','_initStatusListener','getConfig','updatePermissionPoint','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','c1Prime','getMemberID','_startDocCollabCursor','_tryReconnect','UNIVER_UNKNOWN','subunit','getCellPositionByOffset','_executeRemoteChangeset','_acknowledgedAwaitingChangeset','FileId','clearInterval','_hideTimer','_decreaseWaiting','798LsgHGZ','collabStatus.synced','collabStatus.conflict','error$','_getCurrentRevision','permission.content','onTransformRemoteChangesetByIMECache','_colorIndex','awaiting_with_pending','getRoom','_undoStacks','InsertRangeMoveRightCommandId','unitId\x20is\x20not\x20found','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','fetchMissingChangesets','MSG_FOR_ERROR','location','LEAVE','onSendChangeset','_type','debug','univer-online-status-title','UPDATE_PERMISSION_OBJ','_socketMessageSubscription','_removeRoom','some','getCollabCursors$','allowed','IDLE','getDocRanges','_localCacheService','_refreshCollabCursors','InsertRangeMoveDownCommandId','_scene','collaMsg','_commentService','localeService','flatMap','_shouldReportTelemetry','/-/object/list','_sessions','registerHTTPInterceptor','disableLocalCache','_members','_httpService','_saveTaskMap','_listenToOnlineEvent','createSocket','currentSkeleton$','_sendHeartbeat','_candidateSocket','[CollaborationSession]','collaboration-client.offline-data-not-saved','socket\x20open.','image/jpg','csRejEvent','catch','APPLY_PERMISSION_DENIED','enableOfflineEditing','delete','engine','get','assign','endColumn','transformUndoRedo','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_throwTelemetryCollaborationNewChangeset','pipe','getCurrent','extend','clear','_transformIMECache','NOT_COLLAB','toString','LIVESHARE_FETCH_OPERATIONS','round','_getRedoStack','objectActions','isEditing','_tryEnsureSocket','_color','_change$','getTypeOfUnitAdded$','children','_showConflictNotification','\x20-\x20','target','url(#on-line-single_clip0_910_349)','_handler','cursorInfo','OFFLINE','transformChangesets','_univerInstanceService','/collaborator','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_anchor','UNIVER_SLIDE','FETCH_MISSING','_registerRenderDependencies','_compressMutationService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','saveOfflineData','_saveCache','[PendingState]:\x20received\x20rejection.','actions','length','history','_commandService','getUniverSheetInstance','from','[PendingState]:\x20unhandled\x20univer\x20type:\x20','unsubscribe','_fetchMissChangesets','_loadSheet','_context','ws://127.0.0.1:8000/universer-api/comb/connect','_refRangeService','map','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_clearCollaborationTimeoutTimer','_singleActiveUnitService','loadOfflineData','getOwnPropertySymbols','forEach','generateRandomId','_retryCount','removeMember','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_onUserJoin','routeKey','_collaborationPaused','_initResize','onlineStatusIcon','_onConnectionOpen','removeEventListener','onPointerMove$','_createHandler','substring','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','_stopTelemetryCollaborationNewChangeset','UNIVER_DOC','lineTo','_timeoutTimer','set','_drawTextRange','post','_queuedRemoteChangesets','startsWith','/role','getFocusedUnit','FromArray','evenodd','getUnhiddenWorksheets','/universer-api/authz','PERMISSION_DENIED','JOIN','setAlpha','send','UNRECOGNIZED','OTHER_CLIENTS_EDITING','_scheduleSaving','message$','setTimeout','_handleHeartbeatEvent','hasOwnProperty','UNDEFINED','UniverIcon','beginPath','1325124EvxHqh','Undefined','displayName','\x0aAfter:\x20','_socket','activeSheet$','_instanceService','getUnit','searchParams','selection','_unlockTransition','requireSession','setInterval','_redoStacks','104LZEJiZ','shouldCloseConn','xlink:href','onMouseMove','_joinRoom','cmd','onCommandExecuted','putCollaborators','_clearHeartbeatTimer','conflict','reduce','capture','onRendered','&source=','getUnitType','[CollaborationSessionService]','_getSaveTimeout','_state','_anchorDot','RemoveColCommandId','_initCloseConn','Error\x20on\x20receiving\x20event','unknown','_incrementRevisionNumber','_onConnectionFailed','currentTheme$','saveSnapshot','roomMembers','getCurrentUnitForType','mutations','session.will-retry','UPDATE_CURSOR','permission.title','url(#$1','_onMessage','INTERNAL_ERROR','INGEST','registerOnClose','sheetID','getUnitOnRev','selections','_unitID','_onRemoteACK','_session','patch','telemetry\x20info\x20is\x20not\x20initialized','json','getTime','_isPermissionRej','string','ranges','path','1809442jYeEcI','COMPLETION_FINISHED','onlineStatus','getMember','getOffsetConfig','_clearUndo','?size=','_heartbeatTimer','next','defs','div','function','getImageSourceCache','data','0\x200\x2017\x2016','APPLY_NON_SEQUENTIAL_REVISION','baseRev','_initUnitPermissionChange','conflict.content','startColumn','has','fetch_missing','_updateState','Error','createInstance','type','COMMENT_UPDATE','/universer-api/comb','_applyRemoteChangeset','list','_schedule','RemoveRowCommandId','_registerDependencies','_updateSubUnitFromURLParams','findNodePositionByCharIndex','[CollaborationUndoRedoService]','arc','Univer','UnitSnapshot','editing\x20status\x20changed\x20to','currentColor','HELLO','loadDoc','hovered','collaboration.single-unit.warning','APPLY_REJECT','_getSheetObject','_replaceFileID','assignAColorForMemberID','_initCommandExecutedListener','_revisionService','collaboration-client.config','onlyLocal','_sheetSkeletonManagerService','transformIMECache','_socketReady','_roomMembers$','unitId','TOO_MANY_REQUESTS','_urlService','joinRsp','_status$','_waitCount','params','[CollaborationState]:\x20apply\x20error!','/block/','saveChangeset','trim','_sendingTimer','status$','toRgbString','COLLAB_WEB_SOCKET_URL','getMergeData','_initMergeInterceptor','with','_handleLeaveEvent','getUndoRedoMutationParamsCache','result','11546480laXBKP','_socketService','fillStyle','_imageSourceCache','transformRemoteChangeset','revision','M0\x200H16V16H0z','_docTransformSelectionsService','_permissionService','pending','disposeWithMe','auth.needGotoLoginAlert','requestParams','row','CONFLICT','socket\x20close','getActiveSheet','_clearScheduledTask','_createInitialStateImpl','ALREADY_EXISTS','_assignedColors','_eventUnsubscribe','onMissingChangesets','collaboration-session-retry','InsertColCommandId','CHANGESET_ACK','SNAPSHOT_URL_KEY','objectType','RETRY_CONNECTING_MAX_COUNT','_scheduleHeartbeat','registerRenderModule','_memberService','_textBubble','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_startCollaboration','file','onTransformChange$','_clearTimeoutTimer','_unitStatus','idSuffix','COLLAB_SUBMIT_CHANGESET_URL','_onFetchMissResult','onStateChange','0\x200\x2016\x2016','_scheduleTimestamp','COMPRESS_MUTATION_SEND','_retryConnectingTimer','image/png','collabStatus.fetchMiss','values','getSkeleton','onRemoteAck','_document','Steady','range','encodeURIComponent','LOGIN_URL_KEY','url','_transitionLocked','find','session','UNIVER_SHEET','collab-text-anchor-','_getAPIPrefixPath','addImageSourceCache','LIVESHARE_NEW_HOST','getRangePointData','memberID','collaboration_new_changeset','_docTransformIMECacheService','UNIVER_PROJECT','pauseCollaboration','_removeCollabCursors','slice','_onConflict','collaboration.closeRoom','EXCHANGE_SIGN_URL_SERVER_URL_KEY','transformMutation','_loadDoc','/unit/','/object','enableLocalCache','3148464upyQtQ','_draw','defineProperty','NEW_CHANGESETS','ACTIVE_UNIT_EVENT_CHANNEL','originalMeta','SHOULD_CLOSE_CONN','_collaborationTimeoutTimer','collabStatus.offline','univerjs-icon\x20univerjs-icon-','then','href','moveTo','LIVESHARE_OPERATION','userID','addObject','_logService','whenReady','url(#off-line-single_clip0_910_343)','_onRemoteRejected','LICENSE_MAX_UNITS_EXCEEDED','push','UnitEmbedded','_cursorInfo$','unshift','setWaitCount','eventID','getSheetBlock','asObservable','encode','code','saveSheetBlock','SNAPSHOT_HAS_BEEN_REMOVED','_localStorageService','dispose','session.connection-failed','UNIVER_COLLABORATION_CLIENT_PLUGIN','_exhaustRemoteChangesetQueue','save','_uiPartsService','/universer-api/oidc/authpage','synced','USERS_LEAVE','symbol','_hover','LICENSE_EXPORT_SIZE_EXCEEDED','univer-offline','error','_getSendChangesetTimeout','_lockTransition','OnLineSingle','[UniverCollaborationClientPlugin]','YUUMI_UNABLE_LOAD_URL','clearTimeout','newValue','_cursorShapes','PENDING','put','restore','registerComponent','_initStatusComponent','replace','closeSession','fetching\x20missing\x20changesets\x20from\x20','UNAUTHENTICATED','now','RETRY_CONNECTING_INTERVAL','bottom','onTransformIME','_clearLocalCache','getAncestorScale','_updateCollabCursors','#fff','10febfqh','transformSelections','_lastPointer','COMPRESS_MUTATION_APPLY','_createSocket','_checkMissing','fetchThroughInterceptors','_updateLocalCursor','close$','startTime','attrs','[SyncedState]:\x20received\x20rejection.','_sheetTransformSelectionsService','reconnect','updateCollaborator','disposeUnit','executeCommand','updateOfflineData','split','_configService','_transformStack','[DataLoaderController]','tag','_event$','propertyIsEnumerable','collaborators','onMissedChangesetFetched','_getScale','_colorAssignService','InsertRowCommandId','SUCCUSS','fill','_ws','_substituteRedoStack','POST','_transformRemoteChangesetByIMECache','updatePermissionObjEvent','YUUMI_RATE_OVER_LIMIT','SUBMIT_CHANGESET','clipPath','sessionStatus$','_onCombEvent','unit-cache-','getCollabEntity','contains','_onCursorUpdate','fetchMiss','submit\x20changeset\x20error!','_waitForHeartbeatResponse','liveShareNewHost','_render','red300','entries','collab-rect-range-','_startTelemetryCollaborationNewChangeset','awaitingChangeset','snapshot','concat','HEARTBEAT','changesets','getActiveRange','size','all','online','HttpExport','m2Prime','show','MUTATION','_toggleOnline','BASE64','_rescheduleHeartbeat','_entities','indexOf','height','refreshPermission','_getLoginPath','_scheduleCollaborationTimeoutTimer','event$','saveImage','fillText','setItem','_getSignURL','HEADER_MENU','getSheetBySheetId','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','loadSheet','[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.','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','objectID','_cursor','15104IBQwms','jiqing500','image/jpeg','_themeService','_onLocalMutation','_updateStatus','_collaborationSessionService','_id','_sendHeartbeatTimer','stopTime','transformMutationsWithChangeset','reject','CHANGESET_REJ','[CollaborationSessionService]:\x20socket\x20error','_unitOnClients','headers','resourceIDs','?url=','_snapshotServerService','updateMember','cursorInfo$','_entityInit$','NOT_FOUND','_messageService','name','_range','duration','UNKNOWN_CODE','univer-online-status-icon','MoveRangeCommandId','roomMembers$','collabCursorState$','registerBeforeClose','includes','FAIL','onRemoteRej','_onCursorDelete','unitID','getCurrentUser','batchAllowed','state$','[FetchMissState]','min','sessionStatus','joinEvent','_injector','doc.mutation.rich-text-editing','uni.network.url-service','socketService','[OfflineState]:\x20received\x20changeset.','update','_sessionStatus$','urlChange$','_selfUnitIDs','getSheetId','_handleJoinEvent','deepClone','1em'];_0x3164=function(){return _0x329218;};return _0x3164();}import{createIdentifier as _0x5a3236,Disposable as _0x36403b,DisposableCollection as _0x3bb8a8,toDisposable as _0x29a7b,Inject as _0x5c7fae,IConfigService as _0x401b9d,ILogService as _0x1cafe9,UniverInstanceType as _0x3bf0d9,UserManagerService as _0x1ac2e4,IUniverInstanceService as _0x30b2f2,RxDisposable as _0x4bff65,LocaleService as _0x12e5b3,Optional as _0x5723b6,Injector as _0x5d259e,Tools as _0x3cea4b,ILocalStorageService as _0x76fe2e,ICommandService as _0x36a317,JSONX as _0x51b925,CommandType as _0x32e0b0,IPermissionService as _0x241366,IUndoRedoService as _0x1bd332,sequenceExecute as _0x5396fb,Rectangle as _0x183c22,OnLifecycle as _0x486866,LifecycleStages as _0x446a6f,ThemeService as _0x27c464,useDependency as _0x1cf47e,connectInjector as _0x5abdc,Workbook as _0x450c96,LocalUndoRedoService as _0x30a328,IContextService as _0x693680,COLORS as _0x44cb7f,ColorKit as _0x21fa84,fromEventSubject as _0x240b02,isInternalEditorID as _0x852e4e,Plugin as _0x250c9c,IAuthzIoService as _0x136777,mergeOverrideWithDependencies as _0x3a5a4e,DependentOn as _0x2f7773}from'@univerjs/core';import{Subject as _0x47a81b,merge as _0x9334d7,takeUntil as _0x2123e0,BehaviorSubject as _0x16e81a,distinctUntilChanged as _0x24665d,fromEvent as _0x4dbad7,map as _0x464900,shareReplay as _0x1aec94,take as _0x219c0a,of as _0x8d55e,debounceTime as _0x116e1b,filter as _0x41cfb4,switchMap as _0x498d15,combineLatest as _0x1ee3b6,mapTo as _0x543013,concatMap as _0x4c98f9}from'rxjs';import{map as _0x4b551a,take as _0x590d71,filter as _0x48e324,delay as _0x1e04ab,takeUntil as _0x429e28,switchMap as _0x3c8cfc,throttleTime as _0x326ad7}from'rxjs/operators';import{MessageType as _0x68ddaa,Tooltip as _0x2b5af8}from'@univerjs/design';import{IBeforeCloseService as _0x4c2a62,IMessageService as _0x29e945,INotificationService as _0x4c821a,useObservable as _0x3834a2,BuiltInUIPart as _0x1504a5,IUIPartsService as _0xbc9637}from'@univerjs/ui';import{HTTPService as _0x35343d,WebSocketService as _0x4058ad,MergeInterceptorFactory as _0x441ebe,HTTPRequest as _0x1baa38,IHTTPImplementation as _0x4a8183,XHRHTTPImplementation as _0x182506,ThresholdInterceptorFactory as _0x55c921}from'@univerjs/network';import{CollaborationEvent as _0x410792,parseChangesetToProtocol as _0x1859f8,ISnapshotServerService as _0x39a0ed,isTransformMutationFailure as _0x517f04,isTransformMutationsWithChangesetSuccess as _0x24d018,ITransformService as _0x4e0f96,RevisionService as _0x4ceeac,mapDocumentTypeToUniverType as _0x2e5178,isTransformChangesetsSuccess as _0x71b04d,parseProtocolChangeset as _0x3b19c3,CompressMutationService as _0xac140b,SnapshotService as _0x208dce,textEncoder as _0x1d8b96,b64DecodeUnicode as _0x5ee83a,isTransformMutationsWithChangesetFailure as _0x364023,UniverCollaborationPlugin as _0x7a88b}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x45444c}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x1dbfad,RichTextEditingMutation as _0xa592b4,SetTextSelectionsOperation as _0x26b3ce,DocSkeletonManagerService as _0x2398d4}from'@univerjs/docs';import{SheetsSelectionsService as _0x85923d,SetSelectionsOperation as _0x2498cc,InsertSheetMutation as _0x5a0458,EmptyMutation as _0x39f7b4,WorkbookEditablePermission as _0x477da8,RefRangeService as _0x504358,EffectRefRangId as _0xa2b790,handleIRemoveRow as _0x2f61ec,handleIRemoveCol as _0x824d6d,handleMoveRange as _0x2f5847,handleInsertRow as _0x375cdc,handleInsertRangeMoveRight as _0x1731a1,handleInsertRangeMoveDown as _0x4827cd,handleInsertCol as _0x34e016,handleDeleteRangeMoveUp as _0x552ee5,handleDeleteRangeMoveLeft as _0x3c8f35,runRefRangeMutations as _0x15b7fb,SetWorksheetActivateCommand as _0x29cb12}from'@univerjs/sheets';import{DocIMEInputManagerService as _0x3b1e58,DocStateChangeManagerService as _0x34634f,NodePositionConvertToCursor as _0x5cf9b0,isValidRectRange as _0x29cf68,NodePositionConvertToRectRange as _0xbfc352,TEXT_RANGE_LAYER_INDEX as _0x2b5c4c,SetDocZoomRatioOperation as _0x23717a}from'@univerjs/docs-ui';import{IRenderManagerService as _0x363058,Shape as _0x214e6b,Rect as _0x170a21,Vector2 as _0x586911,getColor as _0x3c99d3,RegularPolygon as _0x532a25,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x277f5f}from'@univerjs/engine-render';import{ImageSourceType as _0x2639d9,ImageUploadStatusType as _0x29d71a,IImageIoService as _0x976a19}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x5b5841,serializeRangeWithSheet as _0x508689}from'@univerjs/engine-formula';import _0x415879 from'lodash/debounce';import{VIEWPORT_KEY as _0x398f9b,getCoordByCell as _0x341a0b,getSheetObject as _0x40df2d,SheetSkeletonManagerService as _0x5349fd,SheetPermissionInitController as _0xa93b7d}from'@univerjs/sheets-ui';import _0x24bd02,{forwardRef as _0x5da15c,useRef as _0x4ab73c,createElement as _0x3d6533,useCallback as _0x23455d}from'react';import _0x6c5a82 from'clsx';import{IRemoteInstanceService as _0x372f27}from'@univerjs/rpc';const _n='SNAPSHOT_SERVER_URL_KEY',un=_0x2e5b1c(0x438),dn=_0x2e5b1c(0x2a4),mn='SEND_CHANGESET_TIMEOUT',fn=0x7d0,gn=_0x2e5b1c(0x283),Sn=_0x2e5b1c(0x1c5),pn='HEARTBEAT_INTERVAL',vn=0x7530,Ns=_0x2e5b1c(0x484),ys=0x4e20,In=_0x2e5b1c(0x31e),En=0x4e20,Cn=_0x2e5b1c(0x2a6),bn=0x3,Tn=_0x2e5b1c(0x47e),Rn=0x3e8,On=_0x2e5b1c(0x2b2),Dn=_0x2e5b1c(0x257),wn=_0x2e5b1c(0x2c2),Pn=_0x2e5b1c(0x304);var Ms=(_0x8245e2=>(_0x8245e2[_0x8245e2[_0x2e5b1c(0x1f7)]=0x0]=_0x2e5b1c(0x1f7),_0x8245e2[_0x8245e2['OK']=0x1]='OK',_0x8245e2[_0x8245e2['INTERNAL_ERROR']=0x2]=_0x2e5b1c(0x22b),_0x8245e2[_0x8245e2[_0x2e5b1c(0x1ec)]=0x3]='PERMISSION_DENIED',_0x8245e2[_0x8245e2['NOT_FOUND']=0x4]=_0x2e5b1c(0x395),_0x8245e2[_0x8245e2[_0x2e5b1c(0x31c)]=0x5]=_0x2e5b1c(0x31c),_0x8245e2[_0x8245e2[_0x2e5b1c(0x29d)]=0x6]=_0x2e5b1c(0x29d),_0x8245e2[_0x8245e2[_0x2e5b1c(0x3e3)]=0x7]='INVALID_ARGUMENT',_0x8245e2[_0x8245e2[_0x2e5b1c(0x276)]=0x8]=_0x2e5b1c(0x276),_0x8245e2[_0x8245e2[_0x2e5b1c(0x23d)]=0x9]=_0x2e5b1c(0x23d),_0x8245e2[_0x8245e2[_0x2e5b1c(0x401)]=0x1389]=_0x2e5b1c(0x401),_0x8245e2[_0x8245e2[_0x2e5b1c(0x467)]=0x1771]=_0x2e5b1c(0x467),_0x8245e2[_0x8245e2[_0x2e5b1c(0x2fc)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x8245e2[_0x8245e2['APPLY_REJECT']=0x1b59]=_0x2e5b1c(0x269),_0x8245e2[_0x8245e2['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x2e5b1c(0x24b),_0x8245e2[_0x8245e2['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x2e5b1c(0x3de),_0x8245e2[_0x8245e2[_0x2e5b1c(0x18b)]=0x1b5c]=_0x2e5b1c(0x18b),_0x8245e2[_0x8245e2['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x2e5b1c(0x432),_0x8245e2[_0x8245e2[_0x2e5b1c(0x2f0)]=0x2329]=_0x2e5b1c(0x2f0),_0x8245e2[_0x8245e2['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x2e5b1c(0x440),_0x8245e2[_0x8245e2['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x2e5b1c(0x41e),_0x8245e2[_0x8245e2[_0x2e5b1c(0x309)]=0x232c]=_0x2e5b1c(0x309),_0x8245e2[_0x8245e2[_0x2e5b1c(0x43d)]=0x232d]=_0x2e5b1c(0x43d),_0x8245e2[_0x8245e2[_0x2e5b1c(0x310)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x8245e2[_0x8245e2[_0x2e5b1c(0x41f)]=0x2712]=_0x2e5b1c(0x41f),_0x8245e2[_0x8245e2[_0x2e5b1c(0x34a)]=0x2713]=_0x2e5b1c(0x34a),_0x8245e2[_0x8245e2[_0x2e5b1c(0x443)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x8245e2[_0x8245e2[_0x2e5b1c(0x1f0)]=-0x1]='UNRECOGNIZED',_0x8245e2))(Ms||{}),x=(_0x62b898=>(_0x62b898[_0x62b898[_0x2e5b1c(0x149)]=0x0]=_0x2e5b1c(0x149),_0x62b898[_0x62b898[_0x2e5b1c(0x1de)]=0x1]=_0x2e5b1c(0x1de),_0x62b898[_0x62b898[_0x2e5b1c(0x2c7)]=0x2]=_0x2e5b1c(0x2c7),_0x62b898[_0x62b898[_0x2e5b1c(0x1b2)]=0x3]=_0x2e5b1c(0x1b2),_0x62b898[_0x62b898[_0x2e5b1c(0x2d0)]=0x4]='UNIVER_PROJECT',_0x62b898[_0x62b898['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x62b898))(x||{}),I=(_0x1b5b7c=>(_0x1b5b7c[_0x1b5b7c['UNKNOWN_CMD']=0x0]=_0x2e5b1c(0x46d),_0x1b5b7c[_0x1b5b7c['HELLO']=0x1]=_0x2e5b1c(0x265),_0x1b5b7c[_0x1b5b7c[_0x2e5b1c(0x1ed)]=0x2]=_0x2e5b1c(0x1ed),_0x1b5b7c[_0x1b5b7c[_0x2e5b1c(0x163)]=0x3]=_0x2e5b1c(0x163),_0x1b5b7c[_0x1b5b7c[_0x2e5b1c(0x22c)]=0x4]=_0x2e5b1c(0x22c),_0x1b5b7c[_0x1b5b7c[_0x2e5b1c(0x35f)]=0x5]=_0x2e5b1c(0x35f),_0x1b5b7c[_0x1b5b7c['RECV']=0x6]=_0x2e5b1c(0x3e9),_0x1b5b7c[_0x1b5b7c['UNRECOGNIZED']=-0x1]=_0x2e5b1c(0x1f0),_0x1b5b7c))(I||{}),kt=(_0x24a6ff=>(_0x24a6ff[_0x24a6ff[_0x2e5b1c(0x39a)]=0x0]=_0x2e5b1c(0x39a),_0x24a6ff[_0x24a6ff['OK']=0x1]='OK',_0x24a6ff[_0x24a6ff['FAIL']=0x2]=_0x2e5b1c(0x3a1),_0x24a6ff[_0x24a6ff[_0x2e5b1c(0x1f0)]=-0x1]=_0x2e5b1c(0x1f0),_0x24a6ff))(kt||{}),As=(_0x210b8b=>(_0x210b8b[_0x210b8b[_0x2e5b1c(0x1fb)]=0x0]=_0x2e5b1c(0x1fb),_0x210b8b[_0x210b8b[_0x2e5b1c(0x3ee)]=0x1]='HttpImport',_0x210b8b[_0x210b8b[_0x2e5b1c(0x365)]=0x2]=_0x2e5b1c(0x365),_0x210b8b[_0x210b8b[_0x2e5b1c(0x2f2)]=0x3]=_0x2e5b1c(0x2f2),_0x210b8b[_0x210b8b[_0x2e5b1c(0x262)]=0x4]=_0x2e5b1c(0x262),_0x210b8b[_0x210b8b['UNRECOGNIZED']=-0x1]=_0x2e5b1c(0x1f0),_0x210b8b))(As||{});function Nn(_0x439f41){const _0x1a8020=_0x2e5b1c;var _0x2d93f3,_0x166e23,_0x51bf6e,_0x2912b6;const _0x2f92fc=_0x439f41['data'],_0x1e6e16=JSON[_0x1a8020(0x42a)](_0x2f92fc);switch(_0x1e6e16['cmd']){case I['HEARTBEAT']:case I[_0x1a8020(0x265)]:{const _0x22a555=_0x1e6e16[_0x1a8020(0x12c)];return{..._0x1e6e16,'data':_0x22a555,'cmd':_0x1e6e16[_0x1a8020(0x20d)]};}case I[_0x1a8020(0x1ed)]:{const _0x2abbf5=_0x1e6e16[_0x1a8020(0x278)];return{..._0x1e6e16,'data':_0x2abbf5,'cmd':_0x1e6e16[_0x1a8020(0x20d)]};}case I[_0x1a8020(0x3e9)]:{const _0x38d63c=_0x1e6e16[_0x1a8020(0x174)];switch(_0x38d63c[_0x1a8020(0x2f6)]){case _0x410792[_0x1a8020(0x459)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':(_0x2d93f3=_0x38d63c['permissionRejEvent'])==null?void 0x0:_0x2d93f3['cs']},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x2a3)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':(_0x166e23=_0x38d63c['csAckEvent'])==null?void 0x0:_0x166e23['cs']},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x2df)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':(_0x51bf6e=_0x38d63c['newCsEvent'])==null?void 0x0:_0x51bf6e['cs']},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x38b)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':(_0x2912b6=_0x38d63c[_0x1a8020(0x189)])==null?void 0x0:_0x2912b6['cs']},'cmd':_0x1e6e16['cmd']};case _0x410792[_0x1a8020(0x227)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x139)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792['USERS_ENTER']:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x3ab)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x306)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x3c7)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x2cb)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x356)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x19c)]:case _0x410792[_0x1a8020(0x2e9)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x463)]},'cmd':_0x1e6e16['cmd']};case _0x410792[_0x1a8020(0x487)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x356)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792['MSG_FOR_ERROR']:return{..._0x1e6e16,'data':_0x38d63c,'cmd':_0x1e6e16['cmd']};case _0x410792[_0x1a8020(0x256)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c['commentUpdateEvent']},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x168)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x349)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792['SHOULD_CLOSE_CONN']:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x209)]},'cmd':_0x1e6e16['cmd']};default:return _0x1e6e16;}}default:return _0x1e6e16;}}function yn(_0x3c0eb7){const _0x321ed2=_0x2e5b1c;switch(_0x3c0eb7[_0x321ed2(0x20d)]){case I[_0x321ed2(0x35f)]:case I['HELLO']:return JSON[_0x321ed2(0x3d7)]({'cmd':_0x3c0eb7[_0x321ed2(0x20d)],'routeKey':_0x3c0eb7[_0x321ed2(0x1d3)]});case I['INGEST']:{let _0xe15fdd;switch(_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x2f6)]){case _0x410792[_0x321ed2(0x227)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x227)],'updateCursorEvent':_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x249)]};break;}case _0x410792['USERS_LEAVE']:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x306)],'leaveEvent':_0x3c0eb7[_0x321ed2(0x249)]['data']};break;}case _0x410792[_0x321ed2(0x3e0)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x3e0)],'joinEvent':_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x249)]};break;}case _0x410792[_0x321ed2(0x2cb)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x2cb)],'liveShareNewHost':_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x249)]};break;}case _0x410792[_0x321ed2(0x2e9)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x2e9)],'liveShareOperation':_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x249)]};break;}case _0x410792[_0x321ed2(0x487)]:{_0xe15fdd={'eventID':_0x410792['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x249)]};break;}case _0x410792[_0x321ed2(0x47f)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x47f)],'liveShareRequestHost':_0x3c0eb7[_0x321ed2(0x249)]['data']};break;}case _0x410792[_0x321ed2(0x19c)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x19c)]};break;}default:_0xe15fdd={'eventID':_0x3c0eb7['data'][_0x321ed2(0x2f6)]};}return JSON[_0x321ed2(0x3d7)]({'cmd':_0x3c0eb7[_0x321ed2(0x20d)],'routeKey':_0x3c0eb7['routeKey'],'collaMsg':_0xe15fdd});}case I[_0x321ed2(0x1ed)]:return JSON[_0x321ed2(0x3d7)]({'cmd':_0x3c0eb7[_0x321ed2(0x20d)],'routeKey':_0x3c0eb7[_0x321ed2(0x1d3)],'joinReq':_0x3c0eb7[_0x321ed2(0x249)]});case I[_0x321ed2(0x163)]:return JSON[_0x321ed2(0x3d7)]({'cmd':_0x3c0eb7[_0x321ed2(0x20d)],'routeKey':_0x3c0eb7[_0x321ed2(0x1d3)],'leaveReq':_0x3c0eb7[_0x321ed2(0x249)]});default:throw new Error(_0x321ed2(0x193));}}var Mn=Object['defineProperty'],An=Object[_0x2e5b1c(0x41c)],Un=(_0xbbe43f,_0x5ba07f,_0x4b8f88,_0x177550)=>{for(var _0xd43256=_0x177550>0x1?void 0x0:_0x177550?An(_0x5ba07f,_0x4b8f88):_0x5ba07f,_0x8adb60=_0xbbe43f['length']-0x1,_0x2fc238;_0x8adb60>=0x0;_0x8adb60--)(_0x2fc238=_0xbbe43f[_0x8adb60])&&(_0xd43256=(_0x177550?_0x2fc238(_0x5ba07f,_0x4b8f88,_0xd43256):_0x2fc238(_0xd43256))||_0xd43256);return _0x177550&&_0xd43256&&Mn(_0x5ba07f,_0x4b8f88,_0xd43256),_0xd43256;},Te=(_0x5a212c,_0x8cafb5)=>(_0x1cd9ec,_0x24bed4)=>_0x8cafb5(_0x1cd9ec,_0x24bed4,_0x5a212c);const Us=_0x5a3236('univer-pro.collaboration-client-socket-service');function Ln(_0x2008a5,_0x4c985b,_0x3c1a53){return _0x2008a5+'/'+_0x4c985b+'/unit/'+_0x3c1a53+'/new_changes';}let Ct=class extends _0x36403b{constructor(_0x399e30,_0x6c3c1d,_0x29edee,_0x266dfe,_0x3218e4){const _0x204a65=_0x2e5b1c;super(),this[_0x204a65(0x140)]=_0x399e30,this[_0x204a65(0x345)]=_0x6c3c1d,this[_0x204a65(0x338)]=_0x29edee,this[_0x204a65(0x2ec)]=_0x266dfe,this[_0x204a65(0x391)]=_0x3218e4;}[_0x2e5b1c(0x181)](_0x388fc8){const _0x230875=_0x2e5b1c,_0x4080dd=this['_ws'][_0x230875(0x181)](_0x388fc8);if(!_0x4080dd)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x4987f5=new _0x3bb8a8(),_0x571d6d=new _0x47a81b();_0x4987f5[_0x230875(0x47b)](_0x4080dd['close$'][_0x230875(0x3c4)](_0x5b6817=>_0x571d6d[_0x230875(0x244)](_0x5b6817))),_0x4987f5[_0x230875(0x47b)](_0x29a7b(()=>_0x571d6d['complete']()));const _0x4a69a5=new _0x47a81b();_0x4987f5[_0x230875(0x47b)](_0x4080dd[_0x230875(0x155)]['subscribe'](_0x335fbb=>_0x4a69a5[_0x230875(0x244)](_0x335fbb))),_0x4987f5[_0x230875(0x47b)](_0x29a7b(()=>_0x4a69a5['complete']()));const _0x2760ef=new _0x47a81b();_0x4987f5[_0x230875(0x47b)](_0x4080dd[_0x230875(0x1f3)]['subscribe'](_0x5d53b6=>{const _0x591d85=_0x230875,_0x4c6e04=Nn(_0x5d53b6);_0x2760ef[_0x591d85(0x244)](_0x4c6e04);})),_0x4987f5[_0x230875(0x47b)](_0x29a7b(()=>_0x2760ef[_0x230875(0x447)]()));let _0x28d305;const _0x5209a3=()=>{const _0x289600=_0x230875;_0x4a69a5['next'](new Event(_0x289600(0x437))),_0x571d6d['next'](new CloseEvent(_0x289600(0x437))),_0x28d305[_0x289600(0x40e)]();};return _0x28d305={'memberID':'','close$':_0x571d6d[_0x230875(0x2f8)](),'error$':_0x4a69a5['asObservable'](),'open$':_0x4080dd[_0x230875(0x46c)],'message$':_0x2760ef[_0x230875(0x2f8)](),'send':_0xc1b3e5=>{const _0x500c90=_0x230875;if(_0xc1b3e5[_0x500c90(0x20d)]===I['INGEST']){if(_0xc1b3e5[_0x500c90(0x249)][_0x500c90(0x2f6)]===_0x410792[_0x500c90(0x34b)]){this['_submitChangeset'](_0x28d305,_0xc1b3e5[_0x500c90(0x249)])[_0x500c90(0x18a)](_0x5bd967=>{const _0x29ad1a=_0x500c90;this[_0x29ad1a(0x2ec)]['error'](_0x5bd967),_0x5209a3();});return;}if(_0xc1b3e5[_0x500c90(0x249)][_0x500c90(0x2f6)]===_0x410792[_0x500c90(0x1b3)]){const _0x20b295=_0xc1b3e5['data'];this[_0x500c90(0x1c2)](_0x20b295)[_0x500c90(0x2e6)](_0xc4b7e0=>{const _0x1f59e6=_0x500c90;_0x2760ef[_0x1f59e6(0x244)]({'cmd':I[_0x1f59e6(0x3e9)],'code':kt['OK'],'routeKey':_0x20b295[_0x1f59e6(0x249)][_0x1f59e6(0x3a4)],'routeType':'','data':{'eventID':_0x410792['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0xc4b7e0}}});})[_0x500c90(0x18a)](_0xb3fac9=>{const _0x5c4c9d=_0x500c90;this[_0x5c4c9d(0x2ec)][_0x5c4c9d(0x30b)](_0xb3fac9),_0x5209a3();});return;}}_0x4080dd[_0x500c90(0x1ef)](yn(_0xc1b3e5));},'close':()=>{const _0x2e002b=_0x230875;_0x4080dd[_0x2e002b(0x40e)](),_0x4987f5[_0x2e002b(0x2fe)]();}},_0x28d305;}async[_0x2e5b1c(0x41b)](_0x37738d,_0x4d6b9c){const _0x107139=_0x2e5b1c;var _0x6d3391;const {unitType:_0x1db2e4,unitID:_0x300a60,changeset:_0x35f2b6}=_0x4d6b9c[_0x107139(0x249)],_0x55ccc8={'unitID':_0x300a60,'memberID':_0x37738d[_0x107139(0x2cd)],'type':_0x1db2e4,'changeset':_0x1859f8(_0x35f2b6)},_0x2660f3=Ln((_0x6d3391=this[_0x107139(0x338)][_0x107139(0x142)](On))!=null?_0x6d3391:Dn,_0x1db2e4,_0x300a60);try{await this[_0x107139(0x140)]['post'](_0x2660f3,{'body':_0x55ccc8});}catch(_0x41da2b){throw this[_0x107139(0x2ec)][_0x107139(0x30b)](_0x107139(0x185),_0x107139(0x354)),_0x41da2b;}}async[_0x2e5b1c(0x1c2)](_0xa0dd5d){const _0x78dcd7=_0x2e5b1c,{unitID:_0x1b6647,from:_0x153d4f,to:_0x205078,unitType:_0x5efa5}=_0xa0dd5d[_0x78dcd7(0x249)];return(await this['_snapshotServerService'][_0x78dcd7(0x160)]({'metadata':void 0x0},{'unitID':_0x1b6647,'type':_0x5efa5,'from':_0x153d4f,'to':_0x205078}))[_0x78dcd7(0x360)];}};Ct=Un([Te(0x0,_0x5c7fae(_0x35343d)),Te(0x1,_0x5c7fae(_0x4058ad)),Te(0x2,_0x401b9d),Te(0x3,_0x1cafe9),Te(0x4,_0x39a0ed)],Ct);const $n=_0x2e5b1c(0x2ce);function jn(_0x29c4b6){const _0x67eb36=_0x2e5b1c;return JSON['stringify'](_0x29c4b6)[_0x67eb36(0x1bb)];}class Ls{constructor(){const _0x31b912=_0x2e5b1c;l(this,_0x31b912(0x44a),new _0x47a81b()),l(this,'commentUpdate$',this[_0x31b912(0x44a)][_0x31b912(0x2f8)]());}['onCommentUpdate'](_0x3420ae){const _0x515e49=_0x2e5b1c;this[_0x515e49(0x44a)][_0x515e49(0x244)](_0x3420ae);}}var xn=Object[_0x2e5b1c(0x2de)],Hn=Object[_0x2e5b1c(0x41c)],kn=(_0x509f3f,_0x5b2ba9,_0x564d24,_0x3be66f)=>{const _0x51c19d=_0x2e5b1c;for(var _0x3cce0c=_0x3be66f>0x1?void 0x0:_0x3be66f?Hn(_0x5b2ba9,_0x564d24):_0x5b2ba9,_0x33c378=_0x509f3f[_0x51c19d(0x1bb)]-0x1,_0x298c0c;_0x33c378>=0x0;_0x33c378--)(_0x298c0c=_0x509f3f[_0x33c378])&&(_0x3cce0c=(_0x3be66f?_0x298c0c(_0x5b2ba9,_0x564d24,_0x3cce0c):_0x298c0c(_0x3cce0c))||_0x3cce0c);return _0x3be66f&&_0x3cce0c&&xn(_0x5b2ba9,_0x564d24,_0x3cce0c),_0x3cce0c;},ns=(_0x599e17,_0x318501)=>(_0x85e5f8,_0x27ee60)=>_0x318501(_0x85e5f8,_0x27ee60,_0x599e17);let oe=class extends _0x36403b{constructor(_0x45d990,_0x254cbd){const _0x42cefe=_0x2e5b1c;super(),l(this,_0x42cefe(0x3bd),new Map()),(this[_0x42cefe(0x1ae)]=_0x45d990,this[_0x42cefe(0x129)]=_0x254cbd,this['disposeWithMe'](_0x29a7b(_0x9334d7(this[_0x42cefe(0x1ae)]['getTypeOfUnitDisposed$'](_0x3bf0d9[_0x42cefe(0x2c7)])[_0x42cefe(0x195)](_0x4b551a(_0x47aaaf=>_0x47aaaf[_0x42cefe(0x426)]())),this[_0x42cefe(0x1ae)][_0x42cefe(0x46a)](_0x3bf0d9[_0x42cefe(0x1de)])[_0x42cefe(0x195)](_0x4b551a(_0x40143e=>_0x40143e[_0x42cefe(0x426)]())),this['_univerInstanceService'][_0x42cefe(0x46a)](_0x3bf0d9[_0x42cefe(0x1b2)])[_0x42cefe(0x195)](_0x4b551a(_0x27f6d4=>_0x27f6d4['getUnitId']())))[_0x42cefe(0x3c4)](_0x349a43=>this[_0x42cefe(0x16a)](_0x349a43)))));}[_0x2e5b1c(0x476)](_0x18c679){const _0x2235f1=_0x2e5b1c;this[_0x2235f1(0x129)][_0x2235f1(0x476)](_0x18c679);}[_0x2e5b1c(0x3a5)](){const _0x28517b=_0x2e5b1c;return this[_0x28517b(0x129)]['getCurrentUser']();}[_0x2e5b1c(0x392)](_0x21b289,_0x14b9cd){const _0x2ddcfe=_0x2e5b1c;let _0x447f3b=this[_0x2ddcfe(0x3bd)][_0x2ddcfe(0x18f)](_0x21b289);_0x447f3b||(_0x447f3b=new Bn(),this[_0x2ddcfe(0x3bd)][_0x2ddcfe(0x1e1)](_0x21b289,_0x447f3b)),_0x447f3b[_0x2ddcfe(0x392)](_0x14b9cd);}[_0x2e5b1c(0x1d0)](_0x3ab3a3,_0xa1b7f6){const _0x356af3=_0x2e5b1c,_0x2de47d=this[_0x356af3(0x3bd)]['get'](_0x3ab3a3);_0x2de47d&&_0x2de47d[_0x356af3(0x1d0)](_0xa1b7f6);}[_0x2e5b1c(0x15b)](_0x21ff91){const _0x25d443=_0x2e5b1c;return this[_0x25d443(0x3bd)][_0x25d443(0x18f)](_0x21ff91);}['getMember'](_0x30837c,_0x3a0a53){const _0x2605a9=_0x2e5b1c,_0x525b55=this[_0x2605a9(0x3bd)]['get'](_0x30837c);if(_0x525b55)return _0x525b55[_0x2605a9(0x23f)](_0x3a0a53);}[_0x2e5b1c(0x16a)](_0x1578d9){const _0x124395=_0x2e5b1c,_0x214b26=this[_0x124395(0x3bd)][_0x124395(0x18f)](_0x1578d9);_0x214b26&&(_0x214b26[_0x124395(0x2fe)](),this[_0x124395(0x3bd)][_0x124395(0x18d)](_0x1578d9));}[_0x2e5b1c(0x2fe)](){const _0x37d60a=_0x2e5b1c;this[_0x37d60a(0x3bd)][_0x37d60a(0x1cd)](_0x52cbba=>_0x52cbba[_0x37d60a(0x2fe)]()),this[_0x37d60a(0x3bd)]['clear']();}};oe=kn([ns(0x0,_0x30b2f2),ns(0x1,_0x5c7fae(_0x1ac2e4))],oe);class Bn extends _0x36403b{constructor(){const _0x3007b8=_0x2e5b1c;super(...arguments),l(this,_0x3007b8(0x17d),new Map());}['dispose'](){const _0x29f6ef=_0x2e5b1c;this[_0x29f6ef(0x17d)][_0x29f6ef(0x198)]();}[_0x2e5b1c(0x392)](_0x14c241){const _0x387ae2=_0x2e5b1c;this[_0x387ae2(0x17d)][_0x387ae2(0x1e1)](_0x14c241[_0x387ae2(0x2cd)],_0x14c241);}['removeMember'](_0x54e39c){const _0x20cc64=_0x2e5b1c;this['_members'][_0x20cc64(0x18d)](_0x54e39c);}[_0x2e5b1c(0x23f)](_0x47cc08){const _0x4f740f=_0x2e5b1c;return this[_0x4f740f(0x17d)][_0x4f740f(0x18f)](_0x47cc08);}}var Vn=Object[_0x2e5b1c(0x2de)],Fn=Object[_0x2e5b1c(0x41c)],Wn=(_0x45a11b,_0xebd231,_0x4b3c05,_0x2638ef)=>{const _0x51b56f=_0x2e5b1c;for(var _0x389f1a=_0x2638ef>0x1?void 0x0:_0x2638ef?Fn(_0xebd231,_0x4b3c05):_0xebd231,_0x2cff98=_0x45a11b[_0x51b56f(0x1bb)]-0x1,_0x3ac219;_0x2cff98>=0x0;_0x2cff98--)(_0x3ac219=_0x45a11b[_0x2cff98])&&(_0x389f1a=(_0x2638ef?_0x3ac219(_0xebd231,_0x4b3c05,_0x389f1a):_0x3ac219(_0x389f1a))||_0x389f1a);return _0x2638ef&&_0x389f1a&&Vn(_0xebd231,_0x4b3c05,_0x389f1a),_0x389f1a;},X=(_0x4ef8a2,_0x10a62e)=>(_0xeaf34c,_0x5f46dc)=>_0x10a62e(_0xeaf34c,_0x5f46dc,_0x4ef8a2),W=(_0x17889d=>(_0x17889d[_0x17889d[_0x2e5b1c(0x16e)]=0x0]=_0x2e5b1c(0x16e),_0x17889d[_0x17889d[_0x2e5b1c(0x3dd)]=0x1]=_0x2e5b1c(0x3dd),_0x17889d[_0x17889d[_0x2e5b1c(0x1ac)]=0x2]='OFFLINE',_0x17889d[_0x17889d[_0x2e5b1c(0x13f)]=0x3]=_0x2e5b1c(0x13f),_0x17889d))(W||{});let bt=class extends _0x4bff65{constructor(_0x214017,_0x8ebca7,_0x394b8c,_0x3deada,_0x3fbe87,_0x447eb4,_0x129bc0,_0x4aaa3c,_0x51e90f,_0x2b85db){const _0x3dfc67=_0x2e5b1c;super(),l(this,'_sessionStatus$',new _0x16e81a(0x0)),l(this,'sessionStatus$',this[_0x3dfc67(0x3b2)][_0x3dfc67(0x2f8)]()),l(this,_0x3dfc67(0x33c),new _0x47a81b()),l(this,_0x3dfc67(0x372),this[_0x3dfc67(0x33c)]['asObservable']()),l(this,_0x3dfc67(0x1fe)),l(this,_0x3dfc67(0x169)),l(this,_0x3dfc67(0x2e3)),l(this,_0x3dfc67(0x178),!0x1),l(this,_0x3dfc67(0x418),null),(this['_unitID']=_0x214017,this['_logService']=_0x394b8c,this[_0x3dfc67(0x3d9)]=_0x3deada,this[_0x3dfc67(0x396)]=_0x3fbe87,this[_0x3dfc67(0x338)]=_0x447eb4,this['_localeService']=_0x129bc0,this[_0x3dfc67(0x2a9)]=_0x4aaa3c,this[_0x3dfc67(0x175)]=_0x51e90f,this['_telemetryService']=_0x2b85db,this[_0x3dfc67(0x178)]=!!this[_0x3dfc67(0x41d)],_0x8ebca7[_0x3dfc67(0x195)](_0x2123e0(this[_0x3dfc67(0x3be)]))[_0x3dfc67(0x3c4)](_0x3b26ae=>{const _0x2e0cc4=_0x3dfc67;var _0x3710cf;typeof _0x3b26ae>'u'||(this[_0x2e0cc4(0x1fe)]=_0x3b26ae,_0x3b26ae?(this[_0x2e0cc4(0x20c)](_0x3b26ae),this[_0x2e0cc4(0x169)]=_0x3b26ae['message$']['subscribe'](_0x468205=>{const _0x40e2db=_0x2e0cc4;_0x468205[_0x40e2db(0x1d3)]===this[_0x40e2db(0x231)]&&this[_0x40e2db(0x34e)](_0x468205);})):(this['_throwTelemetryCollaborationNewChangeset'](),this['_sessionStatus$'][_0x2e0cc4(0x244)](0x2),(_0x3710cf=this[_0x2e0cc4(0x169)])==null||_0x3710cf['unsubscribe'](),this[_0x2e0cc4(0x169)]=null));}),this[_0x3dfc67(0x294)](this[_0x3dfc67(0x3d9)][_0x3dfc67(0x22d)](()=>{const _0x558efc=_0x3dfc67;var _0x57783a;(_0x57783a=this[_0x558efc(0x1fe)])==null||_0x57783a[_0x558efc(0x1ef)]({'cmd':I['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get[_0x2e5b1c(0x3aa)](){const _0x2ee779=_0x2e5b1c;return this[_0x2ee779(0x3b2)][_0x2ee779(0x131)]();}[_0x2e5b1c(0x146)](){const _0x376d85=_0x2e5b1c;var _0x562c86,_0x46c2d;return(_0x46c2d=(_0x562c86=this[_0x376d85(0x1fe)])==null?void 0x0:_0x562c86[_0x376d85(0x2cd)])!=null?_0x46c2d:null;}['dispose'](){const _0x276808=_0x2e5b1c;super[_0x276808(0x2fe)](),this[_0x276808(0x3be)][_0x276808(0x244)](),this['dispose$'][_0x276808(0x447)]();}[_0x2e5b1c(0x40e)](){const _0x18846a=_0x2e5b1c;var _0x5a7a1b,_0x52c174;this[_0x18846a(0x194)](),(_0x5a7a1b=this[_0x18846a(0x1fe)])==null||_0x5a7a1b['send']({'cmd':I[_0x18846a(0x163)],'data':{'roomID':this[_0x18846a(0x231)]}}),(_0x52c174=this[_0x18846a(0x1fe)])==null||_0x52c174['close'](),this['_event$'][_0x18846a(0x447)](),this[_0x18846a(0x3b2)]['complete'](),this[_0x18846a(0x2fe)]();}[_0x2e5b1c(0x34e)](_0x5afa64){const _0x4b92e4=_0x2e5b1c;_0x5afa64['cmd']===I[_0x4b92e4(0x1ed)]?this[_0x4b92e4(0x3fa)](_0x5afa64):_0x5afa64['cmd']===I[_0x4b92e4(0x3e9)]&&this[_0x4b92e4(0x48f)](_0x5afa64);}[_0x2e5b1c(0x20c)](_0x3d280e){const _0x3a8fd9=_0x2e5b1c;this[_0x3a8fd9(0x3b2)][_0x3a8fd9(0x244)](0x1),_0x3d280e[_0x3a8fd9(0x1ef)]({'cmd':I[_0x3a8fd9(0x1ed)],'routeKey':this[_0x3a8fd9(0x231)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3a8fd9(0x231)]}]}});}['_onJoinRoomEvent'](_0x29b178){const _0x49b95d=_0x2e5b1c;var _0x3a9e19;if(_0x29b178[_0x49b95d(0x2fa)]===kt['FAIL']){this[_0x49b95d(0x396)][_0x49b95d(0x367)]({'type':_0x68ddaa[_0x49b95d(0x425)],'content':this[_0x49b95d(0x452)]['t']('session.room-full')}),this[_0x49b95d(0x3b2)][_0x49b95d(0x244)](0x2);return;}this[_0x49b95d(0x3b2)]['next'](0x3);const _0x55589a=(_0x3a9e19=_0x29b178['data']['roomInfos'][this[_0x49b95d(0x231)]])==null?void 0x0:_0x3a9e19['members'];_0x55589a&&_0x55589a[_0x49b95d(0x1cd)](_0x36c4de=>this[_0x49b95d(0x2a9)][_0x49b95d(0x392)](this[_0x49b95d(0x231)],_0x36c4de));}[_0x2e5b1c(0x48f)](_0xb80afb){const _0x4edd84=_0x2e5b1c;try{const _0x1bbdb1=_0xb80afb[_0x4edd84(0x249)];switch(_0x1bbdb1['eventID']){case _0x410792[_0x4edd84(0x3e0)]:this[_0x4edd84(0x1d2)](_0x1bbdb1),this[_0x4edd84(0x33c)][_0x4edd84(0x244)](_0x1bbdb1);break;case _0x410792[_0x4edd84(0x306)]:this[_0x4edd84(0x477)](_0x1bbdb1),this[_0x4edd84(0x33c)][_0x4edd84(0x244)](_0x1bbdb1);break;case _0x410792['CHANGESET_ACK']:this[_0x4edd84(0x1dd)](),this[_0x4edd84(0x1c9)](),this[_0x4edd84(0x33c)][_0x4edd84(0x244)](_0x1bbdb1);break;case _0x410792[_0x4edd84(0x161)]:this[_0x4edd84(0x2ec)][_0x4edd84(0x30b)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x4edd84(0x3d7)](_0x1bbdb1)),this['_event$'][_0x4edd84(0x244)](_0x1bbdb1);break;case _0x410792[_0x4edd84(0x256)]:this[_0x4edd84(0x175)]['onCommentUpdate'](_0x1bbdb1[_0x4edd84(0x249)]),this[_0x4edd84(0x33c)][_0x4edd84(0x244)](_0x1bbdb1);break;default:this[_0x4edd84(0x33c)][_0x4edd84(0x244)](_0x1bbdb1);}}catch(_0x3dae2a){this[_0x4edd84(0x2ec)][_0x4edd84(0x30b)](_0x3dae2a,_0xb80afb);}}[_0x2e5b1c(0x1d2)](_0x29d397){const _0x1f2227=_0x2e5b1c;this[_0x1f2227(0x2a9)][_0x1f2227(0x392)](this[_0x1f2227(0x231)],_0x29d397[_0x1f2227(0x249)]);}[_0x2e5b1c(0x477)](_0x29e66b){const _0x46cf51=_0x2e5b1c;this['_memberService'][_0x46cf51(0x1d0)](this[_0x46cf51(0x231)],_0x29e66b[_0x46cf51(0x249)][_0x46cf51(0x2cd)]);}async[_0x2e5b1c(0x1ef)](_0x1a74ed,_0x504ce8){const _0x523684=_0x2e5b1c;if(this[_0x523684(0x3aa)]!==0x3||!this[_0x523684(0x1fe)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x1a74ed['eventID']===_0x410792['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x523684(0x35b)](_0x1a74ed)),this[_0x523684(0x1fe)]['send']({'cmd':I[_0x523684(0x22c)],'routeKey':_0x504ce8,'routeType':'','data':_0x1a74ed});}catch(_0x5c689f){this[_0x523684(0x2ec)]['error'](_0x5c689f);}}[_0x2e5b1c(0x371)](){const _0x4b52fe=_0x2e5b1c;var _0x5b485c;this[_0x4b52fe(0x2e3)]=window[_0x4b52fe(0x1f4)](()=>{const _0x1c20c2=_0x4b52fe;this[_0x1c20c2(0x2e3)]=null,this[_0x1c20c2(0x396)][_0x1c20c2(0x367)]({'type':_0x68ddaa[_0x1c20c2(0x253)],'content':this[_0x1c20c2(0x452)]['t']('session.collaboration-timeout')});},(_0x5b485c=this[_0x4b52fe(0x338)][_0x4b52fe(0x142)](Ns))!=null?_0x5b485c:ys);}[_0x2e5b1c(0x1c9)](){const _0x23b8b1=_0x2e5b1c;this[_0x23b8b1(0x2e3)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x359754){const _0x3e9bb3=_0x2e5b1c;if(!this[_0x3e9bb3(0x178)])return;const {data:_0x46dc0c}=_0x359754,{unitID:_0x1ebf52,changeset:_0x3594c1}=_0x46dc0c,{mutations:_0x3b937d,type:_0x2bc192}=_0x3594c1;this[_0x3e9bb3(0x418)]={'unitId':_0x1ebf52,'type':_0x2bc192,'startTime':performance[_0x3e9bb3(0x31d)](),'stopTime':0x0,'duration':0x0,'size':jn(_0x3b937d)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x4f0540=_0x2e5b1c;if(this[_0x4f0540(0x178)]){if(!this['_telemetryInfo']){this['_logService'][_0x4f0540(0x30b)](_0x4f0540(0x185),_0x4f0540(0x235));return;}this[_0x4f0540(0x418)][_0x4f0540(0x388)]=performance[_0x4f0540(0x31d)](),this[_0x4f0540(0x418)][_0x4f0540(0x399)]=this[_0x4f0540(0x418)][_0x4f0540(0x388)]-this[_0x4f0540(0x418)][_0x4f0540(0x32e)],this[_0x4f0540(0x41d)][_0x4f0540(0x213)]($n,this[_0x4f0540(0x418)]),this[_0x4f0540(0x418)]=null;}}[_0x2e5b1c(0x194)](){const _0x34eccb=_0x2e5b1c;this[_0x34eccb(0x418)]=null;}};function _0x5851(_0x28761a,_0x28dfbc){const _0x3164bd=_0x3164();return _0x5851=function(_0x585103,_0x49a319){_0x585103=_0x585103-0x121;let _0x5b25b1=_0x3164bd[_0x585103];return _0x5b25b1;},_0x5851(_0x28761a,_0x28dfbc);}bt=Wn([X(0x2,_0x1cafe9),X(0x3,_0x4c2a62),X(0x4,_0x29e945),X(0x5,_0x401b9d),X(0x6,_0x5c7fae(_0x12e5b3)),X(0x7,_0x5c7fae(oe)),X(0x8,_0x5c7fae(Ls)),X(0x9,_0x5723b6(_0x45444c))],bt);var Gn=Object[_0x2e5b1c(0x2de)],Yn=Object[_0x2e5b1c(0x41c)],Kn=(_0x40db65,_0xd8e092,_0x59f2b0,_0x2a2955)=>{const _0x3132de=_0x2e5b1c;for(var _0x95b6eb=_0x2a2955>0x1?void 0x0:_0x2a2955?Yn(_0xd8e092,_0x59f2b0):_0xd8e092,_0x447ae3=_0x40db65[_0x3132de(0x1bb)]-0x1,_0x55c86f;_0x447ae3>=0x0;_0x447ae3--)(_0x55c86f=_0x40db65[_0x447ae3])&&(_0x95b6eb=(_0x2a2955?_0x55c86f(_0xd8e092,_0x59f2b0,_0x95b6eb):_0x55c86f(_0x95b6eb))||_0x95b6eb);return _0x2a2955&&_0x95b6eb&&Gn(_0xd8e092,_0x59f2b0,_0x95b6eb),_0x95b6eb;},ue=(_0x76b53b,_0x280a99)=>(_0x432e94,_0x364d93)=>_0x280a99(_0x432e94,_0x364d93,_0x76b53b);let ae=class extends _0x36403b{constructor(_0x1e4de9,_0x48b75d,_0x105e52,_0x282577,_0x410226,_0x36f661){const _0x1dd0d7=_0x2e5b1c;super(),l(this,_0x1dd0d7(0x128),new _0x16e81a(void 0x0)),l(this,_0x1dd0d7(0x13a),this[_0x1dd0d7(0x128)][_0x1dd0d7(0x2f8)]()),l(this,_0x1dd0d7(0x184),null),l(this,_0x1dd0d7(0x17a),new Map()),l(this,_0x1dd0d7(0x279),new _0x16e81a(W[_0x1dd0d7(0x16e)])),l(this,'status$',this[_0x1dd0d7(0x279)][_0x1dd0d7(0x2f8)]()),l(this,'_socketReady',!0x1),l(this,'_retryConnectingTimer'),l(this,_0x1dd0d7(0x1cf),0x0),l(this,'_sendHeartbeatTimer'),l(this,_0x1dd0d7(0x1e0)),(this[_0x1dd0d7(0x3ac)]=_0x1e4de9,this[_0x1dd0d7(0x452)]=_0x48b75d,this['_messageService']=_0x105e52,this[_0x1dd0d7(0x2ec)]=_0x282577,this[_0x1dd0d7(0x338)]=_0x410226,this[_0x1dd0d7(0x28b)]=_0x36f661);}get[_0x2e5b1c(0x1fe)](){const _0x23a66b=_0x2e5b1c;return this['_socket$'][_0x23a66b(0x131)]();}['dispose'](){const _0x86c530=_0x2e5b1c;super[_0x86c530(0x2fe)](),this[_0x86c530(0x17a)][_0x86c530(0x1cd)](_0x52f5a3=>_0x52f5a3['dispose']()),this[_0x86c530(0x17a)][_0x86c530(0x198)](),this[_0x86c530(0x279)][_0x86c530(0x447)]();}async[_0x2e5b1c(0x205)](_0x54aa4e){const _0x575620=_0x2e5b1c;if(this[_0x575620(0x17a)][_0x575620(0x250)](_0x54aa4e))return this[_0x575620(0x17a)][_0x575620(0x18f)](_0x54aa4e);this[_0x575620(0x1a1)]();const _0x1b6211=this[_0x575620(0x3ac)]['createInstance'](bt,_0x54aa4e,this[_0x575620(0x128)][_0x575620(0x2f8)]());return this['_sessions'][_0x575620(0x1e1)](_0x54aa4e,_0x1b6211),_0x1b6211;}[_0x2e5b1c(0x31a)](_0x697c09){const _0x137834=_0x2e5b1c;var _0x3f3553;const _0x2230e6=this[_0x137834(0x17a)]['get'](_0x697c09);_0x2230e6&&(this[_0x137834(0x17a)][_0x137834(0x18d)](_0x697c09),_0x2230e6[_0x137834(0x40e)]()),this['_sessions'][_0x137834(0x362)]||(_0x3f3553=this[_0x137834(0x1fe)])==null||_0x3f3553[_0x137834(0x40e)]();}['reconnect'](){const _0x5a35b9=_0x2e5b1c;this[_0x5a35b9(0x1cf)]=0x0,this[_0x5a35b9(0x2b8)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x5a35b9(0x2b8)]=null),this['_tryReconnect']();}[_0x2e5b1c(0x329)](){const _0xf7c1f3=_0x2e5b1c;var _0xce65ec;const _0x109144=(_0xce65ec=this[_0xf7c1f3(0x338)][_0xf7c1f3(0x142)](gn))!=null?_0xce65ec:Sn,_0x5eb6af=this[_0xf7c1f3(0x28b)][_0xf7c1f3(0x181)](_0x109144);return this[_0xf7c1f3(0x184)]=_0x5eb6af,_0x5eb6af;}[_0x2e5b1c(0x1a1)](){const _0x1fb1c0=_0x2e5b1c;var _0x5cd866,_0x49b01b;try{const _0x3507e5=(_0x49b01b=(_0x5cd866=this['_socket'])!=null?_0x5cd866:this[_0x1fb1c0(0x184)])!=null?_0x49b01b:this[_0x1fb1c0(0x329)]();if(_0x3507e5){const _0x2ab53a=_0x3507e5[_0x1fb1c0(0x1ef)];_0x3507e5['send']=_0x571029=>(this[_0x1fb1c0(0x36b)](),_0x2ab53a[_0x1fb1c0(0x446)](_0x3507e5,[_0x571029])),_0x3507e5[_0x1fb1c0(0x1f3)][_0x1fb1c0(0x3c4)](_0x49deeb=>this[_0x1fb1c0(0x22a)](_0x3507e5,_0x49deeb)),_0x3507e5[_0x1fb1c0(0x155)][_0x1fb1c0(0x195)](_0x590d71(0x1))[_0x1fb1c0(0x3c4)](_0x1dc9b2=>this['_logService']['error'](_0x1fb1c0(0x38c),_0x1dc9b2)),_0x3507e5[_0x1fb1c0(0x46c)]['pipe'](_0x590d71(0x1))[_0x1fb1c0(0x3c4)](()=>{const _0x25adb9=_0x1fb1c0;this[_0x25adb9(0x1d7)](_0x3507e5);}),_0x3507e5[_0x1fb1c0(0x32d)][_0x1fb1c0(0x195)](_0x590d71(0x1))[_0x1fb1c0(0x3c4)](_0x3f2c43=>{const _0x17dbd0=_0x1fb1c0;this[_0x17dbd0(0x2ec)][_0x17dbd0(0x166)]('[CollaborationSessionService]',_0x17dbd0(0x299),_0x3f2c43),this['_onConnectionFailed']();});}}catch(_0x349f3c){this[_0x1fb1c0(0x2ec)][_0x1fb1c0(0x30b)](_0x349f3c),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x4568ff){const _0x5202e6=_0x2e5b1c;this[_0x5202e6(0x2ec)][_0x5202e6(0x166)](_0x5202e6(0x217),_0x5202e6(0x187)),_0x4568ff[_0x5202e6(0x1ef)]({'cmd':I['HELLO']}),this[_0x5202e6(0x36b)](),this['_listenToOfflineEvent']();}[_0x2e5b1c(0x441)](){const _0x301a6a=_0x2e5b1c,_0x8789ae=()=>{const _0xf3539e=_0x5851;this[_0xf3539e(0x403)](),this[_0xf3539e(0x180)](),window[_0xf3539e(0x1d8)]('offline',_0x8789ae);};window[_0x301a6a(0x48d)]('offline',_0x8789ae);}['_onOffline'](){const _0x1c4ae0=_0x2e5b1c;this[_0x1c4ae0(0x273)]=!0x1,this[_0x1c4ae0(0x279)][_0x1c4ae0(0x244)](W[_0x1c4ae0(0x1ac)]),this['_socket$'][_0x1c4ae0(0x244)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x5ae076=_0x2e5b1c;var _0x5088bd;this[_0x5ae076(0x403)](),this[_0x5ae076(0x1cf)]<((_0x5088bd=this[_0x5ae076(0x338)][_0x5ae076(0x142)](Cn))!=null?_0x5088bd:bn)?(this[_0x5ae076(0x396)][_0x5ae076(0x367)]({'key':_0x5ae076(0x2a1),'type':_0x68ddaa[_0x5ae076(0x425)],'content':this[_0x5ae076(0x452)]['t'](_0x5ae076(0x226))}),this[_0x5ae076(0x148)]()):(this['_messageService'][_0x5ae076(0x367)]({'key':'collaboration-session-retry','type':_0x68ddaa[_0x5ae076(0x253)],'content':this[_0x5ae076(0x452)]['t'](_0x5ae076(0x2ff))}),this['_listenToOnlineEvent']());}[_0x2e5b1c(0x180)](){const _0x10d0b7=_0x2e5b1c,_0x5a8078=()=>{const _0x3b323f=_0x5851;this[_0x3b323f(0x332)](),window[_0x3b323f(0x1d8)]('online',_0x5a8078);};window[_0x10d0b7(0x48d)](_0x10d0b7(0x364),_0x5a8078),this[_0x10d0b7(0x128)][_0x10d0b7(0x195)](_0x48e324(_0x534632=>!!_0x534632),_0x590d71(0x1))[_0x10d0b7(0x3c4)](()=>{const _0x5feb83=_0x10d0b7;window[_0x5feb83(0x1d8)](_0x5feb83(0x364),_0x5a8078);});}[_0x2e5b1c(0x148)](){const _0x16acb8=_0x2e5b1c;var _0x198d48;const _0x3e4f33=this[_0x16acb8(0x1cf)],_0x5a0971=_0x3e4f33===0x0?0x0:((_0x198d48=this[_0x16acb8(0x338)]['getConfig'](In))!=null?_0x198d48:En)*0x2**_0x3e4f33;this[_0x16acb8(0x2b8)]=window['setTimeout'](()=>{const _0x1736e8=_0x16acb8;clearTimeout(this[_0x1736e8(0x2b8)]),this[_0x1736e8(0x2b8)]=null,this['_tryEnsureSocket']();},_0x5a0971),this['_retryCount']+=0x1;}[_0x2e5b1c(0x22a)](_0x13eb8c,_0x1fbc37){const _0x24e149=_0x2e5b1c,{cmd:_0x2db9c5}=_0x1fbc37;_0x2db9c5===I['HELLO']&&!this[_0x24e149(0x273)]&&(_0x13eb8c[_0x24e149(0x2cd)]=_0x1fbc37['data']['memberID'],this[_0x24e149(0x128)][_0x24e149(0x244)](_0x13eb8c),this[_0x24e149(0x279)]['next'](W[_0x24e149(0x13f)]),this['_socketReady']=!0x0,this[_0x24e149(0x184)]=null),_0x2db9c5===I['HEARTBEAT']&&this[_0x24e149(0x2af)](),this[_0x24e149(0x36b)]();}[_0x2e5b1c(0x36b)](){const _0x4156e2=_0x2e5b1c;var _0x25d1a9;this[_0x4156e2(0x210)](),this[_0x4156e2(0x387)]=window[_0x4156e2(0x1f4)](()=>this[_0x4156e2(0x183)](),(_0x25d1a9=this['_configService']['getConfig'](pn))!=null?_0x25d1a9:vn);}['_sendHeartbeat'](){const _0x252dc3=_0x2e5b1c;this[_0x252dc3(0x1fe)]['send']({'cmd':I['HEARTBEAT']}),this[_0x252dc3(0x355)]();}['_waitForHeartbeatResponse'](){const _0x33481c=_0x2e5b1c;var _0x18d981;this['_timeoutTimer']=window['setTimeout'](()=>this[_0x33481c(0x220)](),(_0x18d981=this[_0x33481c(0x338)][_0x33481c(0x142)](Ns))!=null?_0x18d981:ys);}['_clearHeartbeatTimer'](){const _0x118f83=_0x2e5b1c;this[_0x118f83(0x387)]!=null&&(clearTimeout(this[_0x118f83(0x387)]),this[_0x118f83(0x387)]=null);}[_0x2e5b1c(0x2af)](){const _0x546cda=_0x2e5b1c;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x546cda(0x1e0)]),this['_timeoutTimer']=null);}};ae=Kn([ue(0x0,_0x5c7fae(_0x5d259e)),ue(0x1,_0x5c7fae(_0x12e5b3)),ue(0x2,_0x29e945),ue(0x3,_0x1cafe9),ue(0x4,_0x401b9d),ue(0x5,Us)],ae);var Xn=Object[_0x2e5b1c(0x2de)],Jn=Object[_0x2e5b1c(0x41c)],zn=(_0x85e4f4,_0x576e57,_0x5396f2,_0x28af1e)=>{const _0x512518=_0x2e5b1c;for(var _0x9ca1dc=_0x28af1e>0x1?void 0x0:_0x28af1e?Jn(_0x576e57,_0x5396f2):_0x576e57,_0x4c4ae0=_0x85e4f4[_0x512518(0x1bb)]-0x1,_0x48ef41;_0x4c4ae0>=0x0;_0x4c4ae0--)(_0x48ef41=_0x85e4f4[_0x4c4ae0])&&(_0x9ca1dc=(_0x28af1e?_0x48ef41(_0x576e57,_0x5396f2,_0x9ca1dc):_0x48ef41(_0x9ca1dc))||_0x9ca1dc);return _0x28af1e&&_0x9ca1dc&&Xn(_0x576e57,_0x5396f2,_0x9ca1dc),_0x9ca1dc;},ht=(_0x25f08c,_0x306aab)=>(_0x32f8c6,_0x35c0df)=>_0x306aab(_0x32f8c6,_0x35c0df,_0x25f08c);let Ze=class{constructor(_0x2ab279,_0x128254,_0x19ee9f){const _0x267981=_0x2e5b1c;this[_0x267981(0x3ac)]=_0x2ab279,this[_0x267981(0x3cf)]=_0x128254,this['_renderManagerService']=_0x19ee9f;}[_0x2e5b1c(0x272)](_0x5e8006){const _0x4db21d=_0x2e5b1c;this[_0x4db21d(0x436)](_0x5e8006),this['_transformPreviousActiveRange'](_0x5e8006);}[_0x2e5b1c(0x28e)](_0x2c42b2){const _0x1f9a0d=_0x2e5b1c,{unitID:_0x4e2520}=_0x2c42b2,_0x38c76f=this[_0x1f9a0d(0x3c0)][_0x1f9a0d(0x474)](_0x4e2520)['with'](_0x3b1e58),{redoCache:_0x5afa3a}=_0x38c76f[_0x1f9a0d(0x288)]();if(_0x5afa3a[_0x1f9a0d(0x1bb)]===0x0)return _0x2c42b2;let _0x44502c=_0x3cea4b['deepClone'](_0x2c42b2['mutations'][0x0]);for(let _0x30b1c3=0x0;_0x30b1c3<_0x5afa3a[_0x1f9a0d(0x1bb)];_0x30b1c3++){const _0x2e369f={'id':_0x1f9a0d(0x3ad),'params':{..._0x5afa3a[_0x30b1c3]}},_0x3d8ed4=this[_0x1f9a0d(0x3cf)][_0x1f9a0d(0x2d7)](_0x44502c,_0x2e369f,!0x1);if(_0x517f04(_0x3d8ed4))throw _0x3d8ed4[_0x1f9a0d(0x30b)];_0x44502c=_0x3d8ed4[_0x1f9a0d(0x43e)];}return{..._0x3cea4b[_0x1f9a0d(0x3b7)](_0x2c42b2),'mutations':[_0x44502c]};}['_transformUndoRedoStack'](_0x4d993d){const _0x153ab8=_0x2e5b1c,{unitID:_0x2512ad}=_0x4d993d,_0x4173db=this['_renderManagerService']['getRenderById'](_0x2512ad)[_0x153ab8(0x286)](_0x3b1e58),{undoCache:_0x26747f,redoCache:_0x4b8670}=_0x4173db['getUndoRedoMutationParamsCache']();if(_0x26747f[_0x153ab8(0x1bb)]===0x0||_0x4b8670[_0x153ab8(0x1bb)]===0x0)return;const _0x8107b=[],_0x305426=[];let _0x3282f5=_0x3cea4b[_0x153ab8(0x3b7)](_0x4d993d[_0x153ab8(0x225)][0x0]),_0x3d54ad=_0x3cea4b[_0x153ab8(0x3b7)](_0x4d993d[_0x153ab8(0x225)][0x0]);for(let _0x38a088=_0x26747f[_0x153ab8(0x1bb)]-0x1;_0x38a088>=0x0;_0x38a088--){const _0x49813e={'id':_0x153ab8(0x3ad),'params':{..._0x26747f[_0x38a088]}},_0x2de202={'id':_0x153ab8(0x3ad),'params':{..._0x4b8670[_0x38a088]}},_0x1a5735=this[_0x153ab8(0x3cf)][_0x153ab8(0x2d7)](_0x3282f5,_0x49813e,!0x1),_0x3655c2=this['_transformService']['transformMutation'](_0x3d54ad,_0x2de202,!0x1);if(_0x517f04(_0x1a5735))throw _0x1a5735[_0x153ab8(0x30b)];if(_0x517f04(_0x3655c2))throw _0x3655c2['error'];_0x8107b[_0x153ab8(0x2f4)](_0x1a5735[_0x153ab8(0x366)][_0x153ab8(0x27b)]),_0x305426[_0x153ab8(0x2f4)](_0x3655c2[_0x153ab8(0x366)][_0x153ab8(0x27b)]),_0x3282f5=_0x1a5735[_0x153ab8(0x43e)],_0x3d54ad=_0x3655c2['m1Prime'];}_0x4173db['setUndoRedoMutationParamsCache']({'undoCache':_0x8107b,'redoCache':_0x305426});}[_0x2e5b1c(0x408)](_0x9dde3d){const _0x40ec69=_0x2e5b1c,{unitID:_0x12d994}=_0x9dde3d,_0x15e565=this[_0x40ec69(0x3c0)][_0x40ec69(0x474)](_0x12d994)[_0x40ec69(0x286)](_0x3b1e58),_0x1380d0=_0x15e565[_0x40ec69(0x361)]();if(_0x1380d0==null)return;const _0x227070=[{'id':_0x40ec69(0x3ad),'params':{'unitId':_0x9dde3d['unitID'],'actions':null,'textRanges':[_0x1380d0]}}],_0x49994e=this[_0x40ec69(0x3cf)][_0x40ec69(0x389)](_0x9dde3d,_0x227070);if(!_0x24d018(_0x49994e))throw _0x49994e[_0x40ec69(0x30b)];const _0xe47a43=_0x49994e[_0x40ec69(0x366)][0x0][_0x40ec69(0x27b)]['textRanges'];Array[_0x40ec69(0x434)](_0xe47a43)&&_0xe47a43[_0x40ec69(0x1bb)]&&_0x15e565['setActiveRange'](_0xe47a43[0x0]);}};Ze=zn([ht(0x0,_0x5c7fae(_0x5d259e)),ht(0x1,_0x4e0f96),ht(0x2,_0x363058)],Ze);var qn=Object['defineProperty'],Zn=Object[_0x2e5b1c(0x41c)],Qn=(_0xe83b50,_0x2caad6,_0x270acf,_0x21a9b8)=>{for(var _0x204a7c=_0x21a9b8>0x1?void 0x0:_0x21a9b8?Zn(_0x2caad6,_0x270acf):_0x2caad6,_0x10e427=_0xe83b50['length']-0x1,_0x5b6eb8;_0x10e427>=0x0;_0x10e427--)(_0x5b6eb8=_0xe83b50[_0x10e427])&&(_0x204a7c=(_0x21a9b8?_0x5b6eb8(_0x2caad6,_0x270acf,_0x204a7c):_0x5b6eb8(_0x204a7c))||_0x204a7c);return _0x21a9b8&&_0x204a7c&&qn(_0x2caad6,_0x270acf,_0x204a7c),_0x204a7c;},Re=(_0x454235,_0x2d1dc3)=>(_0x3c8165,_0xbb04a9)=>_0x2d1dc3(_0x3c8165,_0xbb04a9,_0x454235);let D=class extends _0x36403b{constructor(_0x4ba0a9,_0x1f5282,_0x2e3015,_0x170ef8,_0x18a0ab){const _0x4253fc=_0x2e5b1c;super(),l(this,_0x4253fc(0x3f9),new Map()),l(this,_0x4253fc(0x17f),new Map()),l(this,_0x4253fc(0x45f),!0x1),(this['_configService']=_0x4ba0a9,this[_0x4253fc(0x2fd)]=_0x1f5282,this[_0x4253fc(0x3d9)]=_0x2e3015,this[_0x4253fc(0x452)]=_0x170ef8,this[_0x4253fc(0x26e)]=_0x18a0ab,this[_0x4253fc(0x471)]());}[_0x2e5b1c(0x17c)](){this['_disabled']=!0x0;}[_0x2e5b1c(0x2db)](){const _0x2f914c=_0x2e5b1c;this[_0x2f914c(0x45f)]=!0x1;}[_0x2e5b1c(0x2fe)](){const _0x312b42=_0x2e5b1c;this['exhaustSavingTask']()['then'](()=>super[_0x312b42(0x2fe)]());}async[_0x2e5b1c(0x1cb)](_0xf5dc3){const _0x141417=_0x2e5b1c;return this[_0x141417(0x45f)]?null:this[_0x141417(0x2fd)]['getItem'](rs(_0xf5dc3));}async[_0x2e5b1c(0x1b7)](_0x3e339e,_0x35cc83){const _0x5c6e11=_0x2e5b1c;return!!this[_0x5c6e11(0x2fd)][_0x5c6e11(0x375)](_0x3e339e,_0x35cc83);}['updateOfflineData'](_0x3b5d06,_0x515bd3,_0x4eb792,_0x34ba58){const _0x2636cd=_0x2e5b1c,_0x499c43=this[_0x2636cd(0x26e)][_0x2636cd(0x135)](_0x3b5d06);this[_0x2636cd(0x3f9)][_0x2636cd(0x1e1)](_0x3b5d06,{'unitID':_0x3b5d06,'type':_0x515bd3,'awaitingChangeset':_0x4eb792,'mutations':_0x34ba58,'rev':_0x499c43}),this[_0x2636cd(0x17f)][_0x2636cd(0x250)](_0x3b5d06)||this[_0x2636cd(0x1f2)](_0x3b5d06);}[_0x2e5b1c(0x1f2)](_0x289791){const _0xbbd8e2=_0x2e5b1c,_0x48abbd=this[_0xbbd8e2(0x218)]();_0x48abbd===0x0?this['_saveCache'](_0x289791):this[_0xbbd8e2(0x17f)][_0xbbd8e2(0x1e1)](_0x289791,setTimeout(()=>this[_0xbbd8e2(0x1b8)](_0x289791),_0x48abbd));}[_0x2e5b1c(0x218)](){const _0x1ce285=_0x2e5b1c;var _0x5e2db4;return(_0x5e2db4=this[_0x1ce285(0x338)][_0x1ce285(0x142)](Tn))!=null?_0x5e2db4:Rn;}[_0x2e5b1c(0x1b8)](_0x3a8c9f){const _0x341924=_0x2e5b1c,_0x3ff317=this[_0x341924(0x17f)][_0x341924(0x18f)](_0x3a8c9f);return _0x3ff317!==void 0x0&&window[_0x341924(0x311)](_0x3ff317),this['_localStorageService']['setItem'](rs(_0x3a8c9f),this[_0x341924(0x3f9)][_0x341924(0x18f)](_0x3a8c9f))['then'](()=>this[_0x341924(0x17f)][_0x341924(0x18d)](_0x3a8c9f));}async['exhaustSavingTask'](){const _0x4ff0de=_0x2e5b1c,_0x4dd15b=[];this[_0x4ff0de(0x17f)][_0x4ff0de(0x1cd)]((_0x80897,_0x9f50d3)=>{const _0x407328=_0x4ff0de;window[_0x407328(0x311)](_0x80897),_0x4dd15b[_0x407328(0x2f1)](this[_0x407328(0x1b8)](_0x9f50d3)[_0x407328(0x2e6)](()=>{const _0x2e2faf=_0x407328;this[_0x2e2faf(0x17f)][_0x2e2faf(0x18d)](_0x9f50d3);}));}),await Promise[_0x4ff0de(0x363)](_0x4dd15b);}['_setupBeforeClosingHandler'](){const _0x30eb50=_0x2e5b1c;this[_0x30eb50(0x294)](this[_0x30eb50(0x3d9)][_0x30eb50(0x39f)](()=>{const _0x5b6eee=_0x30eb50;if(this['_saveTaskMap'][_0x5b6eee(0x362)])return this[_0x5b6eee(0x452)]['t'](_0x5b6eee(0x186));}));}};D=Qn([Re(0x0,_0x401b9d),Re(0x1,_0x76fe2e),Re(0x2,_0x4c2a62),Re(0x3,_0x5c7fae(_0x12e5b3)),Re(0x4,_0x5c7fae(_0x4ceeac))],D);function rs(_0x3d6f80){const _0x277f3c=_0x2e5b1c;return _0x277f3c(0x34f)+_0x3d6f80;}var er=Object[_0x2e5b1c(0x2de)],tr=Object[_0x2e5b1c(0x41c)],sr=(_0x46c7a2,_0x387fdd,_0x55741b,_0x4636f4)=>{const _0x291496=_0x2e5b1c;for(var _0x296a2a=_0x4636f4>0x1?void 0x0:_0x4636f4?tr(_0x387fdd,_0x55741b):_0x387fdd,_0xe936c7=_0x46c7a2[_0x291496(0x1bb)]-0x1,_0x41d779;_0xe936c7>=0x0;_0xe936c7--)(_0x41d779=_0x46c7a2[_0xe936c7])&&(_0x296a2a=(_0x4636f4?_0x41d779(_0x387fdd,_0x55741b,_0x296a2a):_0x41d779(_0x296a2a))||_0x296a2a);return _0x4636f4&&_0x296a2a&&er(_0x387fdd,_0x55741b,_0x296a2a),_0x296a2a;},lt=(_0x4a0c3f,_0x3fb753)=>(_0x4a8ead,_0x1ab18d)=>_0x3fb753(_0x4a8ead,_0x1ab18d,_0x4a0c3f);function ir(_0x3940dc){const {unitID:_0x477718,mutations:_0xefc395}=_0x3940dc;return{'unitId':_0x477718,'subUnitId':_0xefc395[0x0]['params']['subUnitId']};}let Qe=class{constructor(_0x568dc4,_0x1b5a2f,_0x5e3668){const _0x506ce0=_0x2e5b1c;this[_0x506ce0(0x3ac)]=_0x568dc4,this[_0x506ce0(0x3cf)]=_0x1b5a2f,this[_0x506ce0(0x200)]=_0x5e3668;}[_0x2e5b1c(0x326)](_0x2dbf45){const _0x18dec4=_0x2e5b1c;var _0x71e553,_0x2262c7,_0x381555,_0x2db828,_0x4100e1;const _0xfcb7dd=this[_0x18dec4(0x3ac)][_0x18dec4(0x18f)](_0x85923d),{unitId:_0x173b53,subUnitId:_0x101d56}=ir(_0x2dbf45),_0x35481e=_0xfcb7dd[_0x18dec4(0x409)](_0x173b53)[_0x18dec4(0x460)](),_0x783ab7=(_0x2262c7=(_0x71e553=this[_0x18dec4(0x200)][_0x18dec4(0x201)](_0x173b53))==null?void 0x0:_0x71e553['getActiveSheet']())==null?void 0x0:_0x2262c7[_0x18dec4(0x3b5)]();if(_0x35481e[_0x18dec4(0x1bb)]===0x0||!_0x173b53||!_0x101d56)return;const _0x3c8026=[{'id':_0x2498cc['id'],'params':{'unitId':_0x173b53,'subUnitId':_0x783ab7,'selections':_0x3cea4b[_0x18dec4(0x3b7)](_0x35481e)}}],_0x49268a=this[_0x18dec4(0x3cf)][_0x18dec4(0x389)](_0x2dbf45,_0x3c8026);if(!_0x24d018(_0x49268a))throw _0x49268a['error'];const _0x4365d2=(_0x4100e1=(_0x2db828=(_0x381555=_0x49268a[_0x18dec4(0x366)][0x0])==null?void 0x0:_0x381555['params'])==null?void 0x0:_0x2db828[_0x18dec4(0x230)])!=null?_0x4100e1:_0x35481e;Array[_0x18dec4(0x434)](_0x4365d2)&&_0x4365d2[_0x18dec4(0x1bb)]&&this[_0x18dec4(0x3ac)][_0x18dec4(0x18f)](_0x36a317)[_0x18dec4(0x335)](_0x2498cc['id'],{'unitId':_0x173b53,'subUnitId':_0x101d56,'selections':_0x4365d2});}};Qe=sr([lt(0x0,_0x5c7fae(_0x5d259e)),lt(0x1,_0x4e0f96),lt(0x2,_0x30b2f2)],Qe);const it=_0x5a3236('univer-pro.collaboration-client.single-active-unit-service');var $s=(_0x31f440=>(_0x31f440[_0x31f440[_0x2e5b1c(0x3f0)]=0x0]=_0x2e5b1c(0x3f0),_0x31f440[_0x31f440[_0x2e5b1c(0x1f1)]=0x1]='OTHER_CLIENTS_EDITING',_0x31f440))($s||{});const os=0x7530,as=_0x2e5b1c(0x2e0);class nr extends _0x36403b{constructor(){const _0x7efbe8=_0x2e5b1c;super(),l(this,'_id',_0x3cea4b[_0x7efbe8(0x1ce)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x7efbe8(0x38d),new Map()),l(this,_0x7efbe8(0x243),null),l(this,_0x7efbe8(0x43b),new Map()),l(this,_0x7efbe8(0x2b0),new Map()),this[_0x7efbe8(0x42f)]();}[_0x2e5b1c(0x2fe)](){const _0x34b3ee=_0x2e5b1c;super[_0x34b3ee(0x2fe)](),this[_0x34b3ee(0x43b)][_0x34b3ee(0x1cd)]((_0x4eb34c,_0x2d35b0)=>this[_0x34b3ee(0x468)](_0x2d35b0)),this[_0x34b3ee(0x243)]&&window[_0x34b3ee(0x14f)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x195798){return this['_ensureSubject'](_0x195798)['pipe'](_0x24665d());}[_0x2e5b1c(0x461)](_0x4e0ca1){const _0x30c4bf=_0x2e5b1c;this[_0x30c4bf(0x3b4)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x30c4bf(0x3b4)]['add'](_0x4e0ca1),this['_send']({'type':0x0,'memberID':this[_0x30c4bf(0x386)],'unitIDs':[_0x4e0ca1],'isForwarded':!0x1});}[_0x2e5b1c(0x334)](_0xc36e05){const _0x49c9fc=_0x2e5b1c;this['_selfUnitIDs']['delete'](_0xc36e05),this[_0x49c9fc(0x3b4)]['size']===0x0&&this[_0x49c9fc(0x243)]&&window[_0x49c9fc(0x14f)](this['_heartbeatTimer']);}[_0x2e5b1c(0x42f)](){const _0xa58483=_0x2e5b1c;this[_0xa58483(0x294)](_0x29a7b(_0x4dbad7(window,_0xa58483(0x417))[_0xa58483(0x3c4)](_0x2313e7=>{const _0x5a14f4=_0xa58483;if(_0x2313e7['key']!==as||!_0x2313e7[_0x5a14f4(0x312)])return;const _0x3752fd=JSON['parse'](_0x2313e7[_0x5a14f4(0x312)]);this[_0x5a14f4(0x3ba)](_0x3752fd);}))),window['addEventListener']('unload',()=>this[_0xa58483(0x3c1)]({'type':0x1,'memberID':this[_0xa58483(0x386)],'unitIDs':Array[_0xa58483(0x1bf)](this[_0xa58483(0x3b4)])}));}[_0x2e5b1c(0x3ba)](_0x4693b4){const _0xbd49c=_0x2e5b1c;switch(_0x4693b4[_0xbd49c(0x255)]){case 0x0:this[_0xbd49c(0x3b6)](_0x4693b4);break;case 0x1:this[_0xbd49c(0x287)](_0x4693b4);break;case 0x2:this['_handleHeartbeatEvent'](_0x4693b4);break;}}[_0x2e5b1c(0x3b6)](_0x38f591){const _0x105998=_0x2e5b1c,{unitIDs:_0x38793a,memberID:_0x3427da,isForwarded:_0xb245ed}=_0x38f591;_0x38793a['forEach'](_0xdd6450=>{const _0x36fff5=_0x5851;if(!_0xb245ed&&this[_0x36fff5(0x38d)]['has'](_0xdd6450)&&this[_0x36fff5(0x40f)](_0xdd6450)['next'](0x1),!this[_0x36fff5(0x38d)][_0x36fff5(0x250)](_0xdd6450)||!this[_0x36fff5(0x38d)][_0x36fff5(0x18f)](_0xdd6450)[_0x36fff5(0x250)](_0x3427da)){const _0x1c4345=this[_0x36fff5(0x38d)][_0x36fff5(0x18f)](_0xdd6450)||new Set();_0x1c4345['add'](_0x3427da),this[_0x36fff5(0x38d)]['set'](_0xdd6450,_0x1c4345),this['_scheduleClearOtherTimer'](_0x3427da);}}),_0xb245ed||this[_0x105998(0x3c1)]({'type':0x0,'memberID':this[_0x105998(0x386)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2e5b1c(0x473)](_0x5c55c2){const _0x7c7a5=_0x2e5b1c;this[_0x7c7a5(0x468)](_0x5c55c2);const _0x46af48=window[_0x7c7a5(0x1f4)](()=>{const _0x49911b=_0x7c7a5;this[_0x49911b(0x38d)][_0x49911b(0x1cd)](_0x537973=>{_0x537973['delete'](_0x5c55c2);});},os*0x2);this['_clearOtherTimers'][_0x7c7a5(0x1e1)](_0x5c55c2,_0x46af48);}[_0x2e5b1c(0x468)](_0x259006){const _0x4c5738=_0x2e5b1c;if(this['_clearOtherTimers'][_0x4c5738(0x250)](_0x259006)){const _0x3dda27=this[_0x4c5738(0x43b)][_0x4c5738(0x18f)](_0x259006);_0x3dda27&&window[_0x4c5738(0x311)](_0x3dda27),this[_0x4c5738(0x43b)][_0x4c5738(0x1e1)](_0x259006,null);}}[_0x2e5b1c(0x287)](_0xc24e1f){const _0x2ffd28=_0x2e5b1c,{memberID:_0x18beed,unitIDs:_0x239794}=_0xc24e1f;_0x239794[_0x2ffd28(0x1cd)](_0x4a961d=>{const _0x1addc2=_0x2ffd28;var _0x3dfa8f;const _0x335413=this[_0x1addc2(0x38d)][_0x1addc2(0x18f)](_0x4a961d);_0x335413&&(_0x335413[_0x1addc2(0x18d)](_0x18beed),(_0x3dfa8f=this['_ensureSubject'](_0x4a961d))==null||_0x3dfa8f['next'](_0x335413[_0x1addc2(0x362)]===0x0?0x0:0x1));}),this[_0x2ffd28(0x468)](_0x18beed);}[_0x2e5b1c(0x1f5)](_0x2c592c){const _0x4e2649=_0x2e5b1c;this[_0x4e2649(0x473)](_0x2c592c[_0x4e2649(0x2cd)]);}[_0x2e5b1c(0x3c1)](_0x23ad40){const _0x95460a=_0x2e5b1c;localStorage['setItem'](as,JSON[_0x95460a(0x3d7)](_0x23ad40));}[_0x2e5b1c(0x2a7)](){const _0xaefb24=_0x2e5b1c;this[_0xaefb24(0x243)]=window[_0xaefb24(0x206)](()=>{const _0x251bf9=_0xaefb24;this[_0x251bf9(0x3c1)]({'type':0x2,'memberID':this[_0x251bf9(0x386)]});},os);}[_0x2e5b1c(0x40f)](_0x39911){const _0x2ecf34=_0x2e5b1c;return this[_0x2ecf34(0x2b0)][_0x2ecf34(0x250)](_0x39911)||this['_unitStatus'][_0x2ecf34(0x1e1)](_0x39911,new _0x16e81a(0x0)),this[_0x2ecf34(0x2b0)]['get'](_0x39911);}}function js(_0x5ca839){const _0x583c58=_0x2e5b1c;let _0x1ef87c='';for(const _0x1babab of _0x5ca839){const {startOffset:_0x3462ab,endOffset:_0x315f72,isActive:_0x5dbf62}=_0x1babab;_0x1ef87c[_0x583c58(0x1bb)]&&(_0x1ef87c+=','),_0x1ef87c+=_0x3462ab+':'+_0x315f72+':'+(_0x5dbf62?'1':'0');}return _0x1ef87c;}function rr(_0x3f17f4){const _0x3cd5ba=_0x2e5b1c,_0x59154f=_0x3f17f4['split'](','),_0x45311a=[];for(const _0xa891b of _0x59154f){const [_0xb047b,_0x448fd9,_0x59da7e]=_0xa891b[_0x3cd5ba(0x337)](':');_0x45311a[_0x3cd5ba(0x2f1)]({'startOffset':Number(_0xb047b),'endOffset':Number(_0x448fd9),'collapsed':_0xb047b===_0x448fd9,'isActive':_0x59da7e==='1'});}return _0x45311a[_0x3cd5ba(0x16b)](_0xe8bfa9=>_0xe8bfa9['isActive'])||(_0x45311a[0x0][_0x3cd5ba(0x3e7)]=!0x0),_0x45311a;}class Bt extends _0x4bff65{constructor(){const _0x3b9bc7=_0x2e5b1c;super(...arguments),l(this,_0x3b9bc7(0x428),new _0x16e81a(null)),l(this,_0x3b9bc7(0x39e),this['_collabCursorState$'][_0x3b9bc7(0x2f8)]());}[_0x2e5b1c(0x3cd)](_0x19d3b){const _0x51d9f4=_0x2e5b1c,{unitID:_0x18a532,memberID:_0x1b97c8,textRanges:_0x51bee1}=_0x19d3b,_0x53114e=js(_0x51bee1),_0x448c0e={'unitID':_0x18a532,'memberID':_0x1b97c8,'selection':_0x53114e};this[_0x51d9f4(0x428)][_0x51d9f4(0x244)](_0x448c0e);}}var or=Object['defineProperty'],ar=Object['getOwnPropertyDescriptor'],cr=(_0x4d0c04,_0x3aa662,_0x4d29ae,_0x41c046)=>{const _0x21d114=_0x2e5b1c;for(var _0x71c1ba=_0x41c046>0x1?void 0x0:_0x41c046?ar(_0x3aa662,_0x4d29ae):_0x3aa662,_0x3433bd=_0x4d0c04[_0x21d114(0x1bb)]-0x1,_0x51c78d;_0x3433bd>=0x0;_0x3433bd--)(_0x51c78d=_0x4d0c04[_0x3433bd])&&(_0x71c1ba=(_0x41c046?_0x51c78d(_0x3aa662,_0x4d29ae,_0x71c1ba):_0x51c78d(_0x71c1ba))||_0x71c1ba);return _0x41c046&&_0x71c1ba&&or(_0x3aa662,_0x4d29ae,_0x71c1ba),_0x71c1ba;},cs=(_0x46955b,_0x1b8d76)=>(_0x2b19db,_0x46a541)=>_0x1b8d76(_0x2b19db,_0x46a541,_0x46955b);let et=class{constructor(_0x275317,_0x568399){const _0x3fbe55=_0x2e5b1c;this[_0x3fbe55(0x3ac)]=_0x275317,this[_0x3fbe55(0x3cf)]=_0x568399;}['transformSelections'](_0x45baaa){const _0x22aa81=_0x2e5b1c;var _0x31fa2e;const _0x539c7d=this[_0x22aa81(0x3ac)][_0x22aa81(0x18f)](_0x1dbfad),_0x42f5cb=(_0x31fa2e=_0x539c7d[_0x22aa81(0x16f)]())!=null?_0x31fa2e:[];if(_0x42f5cb[_0x22aa81(0x1bb)]===0x0)return;const _0x1555f4=[{'id':_0x22aa81(0x3ad),'params':{'unitId':_0x45baaa[_0x22aa81(0x3a4)],'actions':null,'textRanges':_0x42f5cb}}],_0x29ac0e=this[_0x22aa81(0x3cf)]['transformMutationsWithChangeset'](_0x45baaa,_0x1555f4);if(!_0x24d018(_0x29ac0e))throw _0x29ac0e[_0x22aa81(0x30b)];const _0x2195d8=_0x29ac0e[_0x22aa81(0x366)][0x0][_0x22aa81(0x27b)]['textRanges'];Array[_0x22aa81(0x434)](_0x2195d8)&&_0x2195d8[_0x22aa81(0x1bb)]&&_0x539c7d[_0x22aa81(0x3ff)](_0x2195d8,!0x1);}};et=cr([cs(0x0,_0x5c7fae(_0x5d259e)),cs(0x1,_0x4e0f96)],et);const hr=new Set([_0x5a0458['id']]);function hs(_0x13f075,_0x40f5bf,_0x491848,_0x1823eb,_0x242fec){const _0x141ff7=_0x2e5b1c;var _0x580e8a,_0x103d96,_0x9cae50,_0x419a7e;const _0x3e007e=[];for(const _0x2c077f of _0x13f075)if(hr[_0x141ff7(0x250)](_0x2c077f['id'])){if(_0x3e007e[_0x141ff7(0x1bb)]>0x0)break;_0x3e007e[_0x141ff7(0x2f1)](_0x2c077f);break;}else _0x3e007e[_0x141ff7(0x2f1)](_0x2c077f);const _0x405b02=(_0x103d96=(_0x580e8a=_0x242fec[_0x141ff7(0x3a5)]())==null?void 0x0:_0x580e8a[_0x141ff7(0x2ea)])!=null?_0x103d96:_0x141ff7(0x21e),_0x277c41=(_0x419a7e=(_0x9cae50=_0x242fec[_0x141ff7(0x3a5)]())==null?void 0x0:_0x9cae50[_0x141ff7(0x2cd)])!=null?_0x419a7e:'unknown';return{'changeset':{'unitID':_0x40f5bf,'type':_0x2e5178(_0x491848[_0x141ff7(0x216)](_0x40f5bf)),'baseRev':_0x1823eb[_0x141ff7(0x135)](_0x40f5bf),'revision':0x0,'userID':_0x405b02,'memberID':_0x277c41,'mutations':_0x3e007e},'pendingMutations':_0x13f075[_0x141ff7(0x2d3)](_0x3e007e[_0x141ff7(0x1bb)])};}function lr(_0x133e7d,_0x5bf88f,_0x44a0f3,_0x17db67,_0x116712){const _0x4710f3=_0x2e5b1c;var _0x17d141,_0x181ddf,_0x13b93b,_0x1bbb79;const _0x3f881b=[_0x133e7d['reduce']((_0x23bcfe,_0xaf5827)=>{const _0x33e3f7=_0x5851;var _0x2e4e07;const {id:_0x4eea42}=_0x23bcfe,{id:_0x31bfa3,type:_0x419bf9}=_0xaf5827,_0x11ea48=(_0x2e4e07=_0x23bcfe[_0x33e3f7(0x27b)])!=null?_0x2e4e07:{'actions':null},_0x1124a4=_0xaf5827[_0x33e3f7(0x27b)];if(_0x4eea42&&_0x4eea42!==_0x31bfa3)throw new Error(_0x33e3f7(0x3ef)+_0x4eea42+_0x33e3f7(0x1a7)+_0x31bfa3+'.');return{..._0x23bcfe,'id':_0x31bfa3,'type':_0x419bf9,'params':{'unitId':_0x1124a4[_0x33e3f7(0x275)],'textRanges':_0x1124a4[_0x33e3f7(0x43f)],'actions':_0x51b925['compose'](_0x11ea48[_0x33e3f7(0x1ba)],_0x1124a4[_0x33e3f7(0x1ba)])}};},{})],_0x16e335=(_0x181ddf=(_0x17d141=_0x116712[_0x4710f3(0x3a5)]())==null?void 0x0:_0x17d141[_0x4710f3(0x2ea)])!=null?_0x181ddf:_0x4710f3(0x21e),_0x3ffc08=(_0x1bbb79=(_0x13b93b=_0x116712[_0x4710f3(0x3a5)]())==null?void 0x0:_0x13b93b[_0x4710f3(0x2cd)])!=null?_0x1bbb79:'unknown';return{'changeset':{'unitID':_0x5bf88f,'type':_0x2e5178(_0x44a0f3[_0x4710f3(0x216)](_0x5bf88f)),'baseRev':_0x17db67['getCurrentRevForDocument'](_0x5bf88f),'revision':0x0,'userID':_0x16e335,'memberID':_0x3ffc08,'mutations':_0x3f881b},'pendingMutations':[]};}const _r={'id':_0x39f7b4['id'],'type':_0x32e0b0[_0x2e5b1c(0x368)],'params':{}};var ur=Object[_0x2e5b1c(0x2de)],dr=Object['getOwnPropertyDescriptor'],he=(_0x5a5762,_0x346997,_0x2987a0,_0x3aaf0b)=>{const _0x2e0715=_0x2e5b1c;for(var _0x8bc20e=_0x3aaf0b>0x1?void 0x0:_0x3aaf0b?dr(_0x346997,_0x2987a0):_0x346997,_0x58ceb2=_0x5a5762[_0x2e0715(0x1bb)]-0x1,_0x42e6ff;_0x58ceb2>=0x0;_0x58ceb2--)(_0x42e6ff=_0x5a5762[_0x58ceb2])&&(_0x8bc20e=(_0x3aaf0b?_0x42e6ff(_0x346997,_0x2987a0,_0x8bc20e):_0x42e6ff(_0x8bc20e))||_0x8bc20e);return _0x3aaf0b&&_0x8bc20e&&ur(_0x346997,_0x2987a0,_0x8bc20e),_0x8bc20e;},f=(_0x2b5cde,_0x5165d5)=>(_0x4ff7b5,_0x417033)=>_0x5165d5(_0x4ff7b5,_0x417033,_0x2b5cde),w=(_0x51c14f=>(_0x51c14f['NOT_COLLAB']='not_collab',_0x51c14f[_0x2e5b1c(0x421)]=_0x2e5b1c(0x305),_0x51c14f[_0x2e5b1c(0x314)]=_0x2e5b1c(0x293),_0x51c14f[_0x2e5b1c(0x3c8)]=_0x2e5b1c(0x427),_0x51c14f[_0x2e5b1c(0x478)]=_0x2e5b1c(0x15a),_0x51c14f['FETCH_MISS']=_0x2e5b1c(0x251),_0x51c14f[_0x2e5b1c(0x298)]=_0x2e5b1c(0x211),_0x51c14f[_0x2e5b1c(0x1ac)]=_0x2e5b1c(0x3e4),_0x51c14f))(w||{});class le{constructor(_0x531dd9,_0x4c8cc9,_0x291ad9,_0xd7a85f,_0x494706,_0x19ae87,_0x24020c,_0x4989f9,_0x3ffa41){const _0x1ab8ab=_0x2e5b1c;l(this,_0x1ab8ab(0x448),null),l(this,'_pendingMutations',[]),(this[_0x1ab8ab(0x3a4)]=_0x531dd9,this[_0x1ab8ab(0x255)]=_0x4c8cc9,this[_0x1ab8ab(0x1aa)]=_0x494706,this['_commandService']=_0x19ae87,this[_0x1ab8ab(0x3bf)]=_0x24020c,this[_0x1ab8ab(0x26e)]=_0x4989f9,this[_0x1ab8ab(0x170)]=_0x3ffa41,this[_0x1ab8ab(0x448)]=_0x291ad9,this[_0x1ab8ab(0x40d)]=_0xd7a85f);}['_checkMissing'](_0x588d94){const _0x239a5a=_0x2e5b1c,_0x578369=this['_revisionService']['getCurrentRevForDocument'](this['unitID']);return _0x588d94['revision']>_0x578369+0x1?(this[_0x239a5a(0x1aa)][_0x239a5a(0x2a0)]({'from':_0x578369,'to':_0x588d94[_0x239a5a(0x28f)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x1c9e34){const _0xe3e1bb=_0x2e5b1c;this[_0xe3e1bb(0x3bf)][_0xe3e1bb(0x192)](this['unitID'],_0x1c9e34);}[_0x2e5b1c(0x456)](_0x20efdd){const _0x4a0d2b=_0x2e5b1c;var _0x138983,_0x713c23;(_0x713c23=(_0x138983=this[_0x4a0d2b(0x1aa)])[_0x4a0d2b(0x3d4)])==null||_0x713c23['call'](_0x138983,_0x20efdd);}[_0x2e5b1c(0x199)](_0x3cd283){const _0x3dc5a1=_0x2e5b1c;var _0xc352d9,_0x2834b7;return(_0x2834b7=(_0xc352d9=this[_0x3dc5a1(0x1aa)])['onTransformIME'])==null?void 0x0:_0x2834b7[_0x3dc5a1(0x13d)](_0xc352d9,_0x3cd283);}[_0x2e5b1c(0x348)](_0x51c9b5){const _0x19ffe5=_0x2e5b1c;var _0x38d55e,_0x5bf81c,_0x117322;return(_0x117322=(_0x5bf81c=(_0x38d55e=this[_0x19ffe5(0x1aa)])[_0x19ffe5(0x158)])==null?void 0x0:_0x5bf81c['call'](_0x38d55e,_0x51c9b5))!=null?_0x117322:_0x51c9b5;}['_syncEditingCollabCursor'](_0x18bbb3){const _0x4e498b=_0x2e5b1c;var _0xc9a8ca,_0x17087d;if(this[_0x4e498b(0x255)]===x[_0x4e498b(0x1de)]){const {unitID:_0x5d3bd7,mutations:_0xa1875e,memberID:_0x213df3}=_0x18bbb3,_0x272dbe=_0xa1875e[0x0]['params'][_0x4e498b(0x43f)];Array['isArray'](_0x272dbe)&&_0x272dbe['length']>0x0&&((_0x17087d=(_0xc9a8ca=this[_0x4e498b(0x1aa)])['onSyncEditingCollabCursor'])==null||_0x17087d[_0x4e498b(0x13d)](_0xc9a8ca,{'unitID':_0x5d3bd7,'memberID':_0x213df3,'textRanges':_0x272dbe}));}}[_0x2e5b1c(0x3c2)](){const _0x80e328=_0x2e5b1c;this[_0x80e328(0x170)]['updateOfflineData'](this[_0x80e328(0x3a4)],this['type'],this[_0x80e328(0x448)],this[_0x80e328(0x40d)]);}['_getCurrentRevision'](){const _0x25ce6d=_0x2e5b1c;return this['_revisionService'][_0x25ce6d(0x135)](this[_0x25ce6d(0x3a4)]);}[_0x2e5b1c(0x21f)](){const _0x23d0d3=_0x2e5b1c;this['_revisionService'][_0x23d0d3(0x457)](this[_0x23d0d3(0x3a4)]);}['_executeRemoteChangeset'](_0x56e1ba){const _0x5d8ab9=_0x2e5b1c;var _0x55d121;const _0x2c9457=this['_transformRemoteChangesetByIMECache'](_0x56e1ba),_0x5da224=_0x5396fb(_0x2c9457['mutations'],this[_0x5d8ab9(0x1bd)],{'fromCollab':!0x0});if(!_0x5da224[_0x5d8ab9(0x289)])throw _0x5da224[_0x5d8ab9(0x30b)]instanceof Error?_0x5da224[_0x5d8ab9(0x30b)]:new Error((_0x55d121=_0x5da224[_0x5d8ab9(0x30b)])!=null?_0x55d121:_0x5d8ab9(0x27c));this[_0x5d8ab9(0x199)](_0x2c9457),this['_transformUndoredo'](_0x56e1ba),this[_0x5d8ab9(0x456)](_0x2c9457),this[_0x5d8ab9(0x485)](_0x2c9457),this[_0x5d8ab9(0x21f)]();}}let Se=class extends le{constructor(_0x21f720,_0x49a7ec,_0x1e5d82,_0x1cd2bd,_0x301766,_0x147ecc,_0x31a7a1,_0x1d5a37,_0x1352a4,_0x13c89c){const _0x5dd7ac=_0x2e5b1c;super(_0x21f720,_0x49a7ec,null,[],_0x1e5d82,_0x1d5a37,_0x31a7a1,_0x1cd2bd,_0x301766),l(this,_0x5dd7ac(0x450),_0x5dd7ac(0x305)),(this[_0x5dd7ac(0x3ac)]=_0x147ecc,this[_0x5dd7ac(0x2ec)]=_0x1352a4,this[_0x5dd7ac(0x3cf)]=_0x13c89c);}['appendMutation'](_0x5a83b5){const _0x2cf048=_0x2e5b1c,_0x1f3c6c=this[_0x2cf048(0x3ac)][_0x2cf048(0x254)](Y,this[_0x2cf048(0x3a4)],this['type'],[_0x5a83b5],this['_handler']);return _0x1f3c6c[_0x2cf048(0x25a)](),_0x1f3c6c[_0x2cf048(0x3c2)](),_0x1f3c6c;}[_0x2e5b1c(0x3ea)](_0x166e17){const _0x1d6f70=_0x2e5b1c;if(this[_0x1d6f70(0x32a)](_0x166e17))return this[_0x1d6f70(0x3ac)]['createInstance'](H,this['unitID'],this[_0x1d6f70(0x255)],null,[],null,[_0x166e17],this['_handler']);try{const _0x23948d=this[_0x1d6f70(0x3cf)][_0x1d6f70(0x389)](_0x166e17,[_r]);if(_0x24d018(_0x23948d)){const {c1Prime:_0x53a085}=_0x23948d;return this[_0x1d6f70(0x14c)](_0x53a085),this;}throw _0x23948d[_0x1d6f70(0x30b)];}catch(_0x2556af){return this[_0x1d6f70(0x2ec)][_0x1d6f70(0x30b)](_0x2556af),this[_0x1d6f70(0x2d4)](!0x1);}}['_onConflict'](_0x6c6972){const _0x315e1b=_0x2e5b1c;return this[_0x315e1b(0x3ac)][_0x315e1b(0x254)](Q,this[_0x315e1b(0x3a4)],this['type'],null,[],this['_handler'],_0x6c6972);}[_0x2e5b1c(0x2bd)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x2e5b1c(0x3a2)](){const _0x58edf1=_0x2e5b1c;throw new Error(_0x58edf1(0x330));}[_0x2e5b1c(0x3e5)](){const _0xe5ca9f=_0x2e5b1c;return this[_0xe5ca9f(0x3ac)][_0xe5ca9f(0x254)](ee,this['unitID'],this[_0xe5ca9f(0x255)],null,[],this['_handler']);}[_0x2e5b1c(0x405)](){return this;}[_0x2e5b1c(0x3c9)](){const _0x2d66d1=_0x2e5b1c;throw new Error(_0x2d66d1(0x1b6));}[_0x2e5b1c(0x353)](){const _0x29e55f=_0x2e5b1c,_0x5ef838=this[_0x29e55f(0x26e)]['getCurrentRevForDocument'](this[_0x29e55f(0x3a4)]);return this[_0x29e55f(0x1aa)][_0x29e55f(0x2a0)]({'from':_0x5ef838,'to':0x0}),this[_0x29e55f(0x3ac)][_0x29e55f(0x254)](H,this[_0x29e55f(0x3a4)],this[_0x29e55f(0x255)],null,[],null,[],this[_0x29e55f(0x1aa)]);}};Se=he([f(0x3,_0x5c7fae(_0x4ceeac)),f(0x4,_0x5c7fae(D)),f(0x5,_0x5c7fae(_0x5d259e)),f(0x6,_0x1bd332),f(0x7,_0x36a317),f(0x8,_0x1cafe9),f(0x9,_0x4e0f96)],Se);let Y=class extends le{constructor(_0x1d35e1,_0x1e4b55,_0x3f2b7f,_0x1188ee,_0x3bda8b,_0x374a7c,_0x12d9af,_0x59b859,_0x4b24d1,_0x4bc168,_0x438a71,_0x30a5ac,_0x647bed,_0x202642){const _0x22e658=_0x2e5b1c;super(_0x1d35e1,_0x1e4b55,null,_0x3f2b7f,_0x1188ee,_0x4bc168,_0x202642,_0x374a7c,_0x12d9af),l(this,_0x22e658(0x450),_0x22e658(0x293)),l(this,'_scheduleTimestamp',null),l(this,_0x22e658(0x280),null),(this[_0x22e658(0x3ac)]=_0x3bda8b,this[_0x22e658(0x2a9)]=_0x59b859,this['_logService']=_0x4b24d1,this[_0x22e658(0x338)]=_0x438a71,this[_0x22e658(0x3cf)]=_0x30a5ac,this['_univerInstanceService']=_0x647bed);}[_0x2e5b1c(0x415)](_0x566378){const _0x2ed38d=_0x2e5b1c;return this[_0x2ed38d(0x40d)][_0x2ed38d(0x2f1)](_0x566378),this[_0x2ed38d(0x3c2)](),this;}[_0x2e5b1c(0x3ea)](_0x119fec){const _0x18b696=_0x2e5b1c;if(this['_checkMissing'](_0x119fec))return this['_clearScheduledTask'](),this[_0x18b696(0x3ac)]['createInstance'](H,this[_0x18b696(0x3a4)],this[_0x18b696(0x255)],null,this[_0x18b696(0x40d)],null,[_0x119fec],this[_0x18b696(0x1aa)]);try{const _0x23d438=this[_0x18b696(0x3cf)][_0x18b696(0x389)](_0x119fec,this[_0x18b696(0x40d)]);if(_0x24d018(_0x23d438)){const {c1Prime:_0x524f0e,m2Prime:_0x3e5516}=_0x23d438;this[_0x18b696(0x14c)](_0x524f0e);const _0x286bd9=this[_0x18b696(0x3ac)][_0x18b696(0x254)](Y,this[_0x18b696(0x3a4)],this[_0x18b696(0x255)],_0x3e5516,this['_handler']);return this[_0x18b696(0x29b)](),_0x286bd9[_0x18b696(0x25a)](this[_0x18b696(0x2b6)]?Math[_0x18b696(0x123)](0x0,new Date()[_0x18b696(0x237)]()-this[_0x18b696(0x2b6)]):this[_0x18b696(0x30c)]()),_0x286bd9;}throw _0x23d438['error'];}catch(_0x3cb6f4){return this[_0x18b696(0x2ec)][_0x18b696(0x30b)](_0x3cb6f4),this['_onConflict'](!0x1);}}['onRemoteAck'](){const _0x97e133=_0x2e5b1c;throw new Error(_0x97e133(0x464));}['onRemoteRej'](){const _0x49be7d=_0x2e5b1c;throw new Error(_0x49be7d(0x1b9));}[_0x2e5b1c(0x3e5)](){const _0x1585f9=_0x2e5b1c;return this[_0x1585f9(0x29b)](),this['_injector'][_0x1585f9(0x254)](ee,this[_0x1585f9(0x3a4)],this['type'],null,this[_0x1585f9(0x40d)],this['_handler']);}[_0x2e5b1c(0x405)](){return this;}[_0x2e5b1c(0x25a)](_0x2db298){const _0x24c3bf=_0x2e5b1c,_0x1b6940=_0x2db298!=null?_0x2db298:this[_0x24c3bf(0x30c)]();this[_0x24c3bf(0x2b6)]=new Date()[_0x24c3bf(0x237)](),this['_sendingTimer']=window[_0x24c3bf(0x1f4)](()=>{const _0x1b614e=_0x24c3bf;this[_0x1b614e(0x29b)]();let _0x1cb5a0=null;switch(this['type']){case x[_0x1b614e(0x2c7)]:{_0x1cb5a0=hs(this[_0x1b614e(0x40d)],this[_0x1b614e(0x3a4)],this[_0x1b614e(0x1ae)],this['_revisionService'],this[_0x1b614e(0x2a9)]);break;}case x['UNIVER_DOC']:{this[_0x1b614e(0x40d)][_0x1b614e(0x407)](_0x3556a8=>_0x3556a8['id']===_0xa592b4['id'])?_0x1cb5a0=lr(this[_0x1b614e(0x40d)],this[_0x1b614e(0x3a4)],this[_0x1b614e(0x1ae)],this[_0x1b614e(0x26e)],this[_0x1b614e(0x2a9)]):_0x1cb5a0=hs(this[_0x1b614e(0x40d)],this[_0x1b614e(0x3a4)],this[_0x1b614e(0x1ae)],this[_0x1b614e(0x26e)],this[_0x1b614e(0x2a9)]);break;}default:throw new Error(_0x1b614e(0x1c0)+this[_0x1b614e(0x255)]+_0x1b614e(0x43c));}const {changeset:_0x3cd71c,pendingMutations:_0xbba6b5}=_0x1cb5a0;this['_handler']['onSendChangeset'](_0x3cd71c);const _0x3c9e0a=_0xbba6b5[_0x1b614e(0x1bb)]?this[_0x1b614e(0x3ac)][_0x1b614e(0x254)](K,this[_0x1b614e(0x3a4)],this['type'],_0x3cd71c,_0xbba6b5,this[_0x1b614e(0x1aa)]):this[_0x1b614e(0x3ac)][_0x1b614e(0x254)](Z,this['unitID'],this[_0x1b614e(0x255)],_0x3cd71c,this[_0x1b614e(0x1aa)]);_0x3c9e0a[_0x1b614e(0x3c2)](),this[_0x1b614e(0x1aa)][_0x1b614e(0x2b4)](this,_0x3c9e0a);},_0x1b6940);}[_0x2e5b1c(0x30c)](){const _0x19ec82=_0x2e5b1c;var _0x11951f;return(_0x11951f=this[_0x19ec82(0x338)][_0x19ec82(0x142)](mn))!=null?_0x11951f:fn;}[_0x2e5b1c(0x3c9)](){const _0x1015d0=_0x2e5b1c;throw new Error(_0x1015d0(0x469));}[_0x2e5b1c(0x29b)](){const _0x4f11f0=_0x2e5b1c;this[_0x4f11f0(0x280)]!=null&&(clearTimeout(this[_0x4f11f0(0x280)]),this[_0x4f11f0(0x280)]=null);}[_0x2e5b1c(0x2d4)](_0x43cd34){const _0x5ca6ce=_0x2e5b1c;return this[_0x5ca6ce(0x29b)](),this[_0x5ca6ce(0x3ac)][_0x5ca6ce(0x254)](Q,this['unitID'],this[_0x5ca6ce(0x255)],null,this[_0x5ca6ce(0x40d)],this[_0x5ca6ce(0x1aa)],_0x43cd34);}};Y=he([f(0x4,_0x5c7fae(_0x5d259e)),f(0x5,_0x5c7fae(_0x4ceeac)),f(0x6,_0x5c7fae(D)),f(0x7,_0x5c7fae(oe)),f(0x8,_0x1cafe9),f(0x9,_0x36a317),f(0xa,_0x401b9d),f(0xb,_0x4e0f96),f(0xc,_0x30b2f2),f(0xd,_0x1bd332)],Y);let Z=class extends le{constructor(_0x110fd7,_0x3dc6e1,_0x88a27e,_0x58af86,_0x1ae97e,_0x4e1d5b,_0x59a675,_0x3d1cae,_0x2f4a5a,_0x5d1e4f,_0x707ee5){const _0x3d673f=_0x2e5b1c;super(_0x110fd7,_0x3dc6e1,_0x88a27e,[],_0x58af86,_0x3d1cae,_0x707ee5,_0x4e1d5b,_0x59a675),l(this,_0x3d673f(0x450),'awaiting'),(this[_0x3d673f(0x3ac)]=_0x1ae97e,this[_0x3d673f(0x2ec)]=_0x2f4a5a,this[_0x3d673f(0x3cf)]=_0x5d1e4f);}['appendMutation'](_0x2605ef){const _0x514906=_0x2e5b1c,_0x1f7161=this['_injector'][_0x514906(0x254)](K,this['unitID'],this[_0x514906(0x255)],this['_awaitingChangeset'],[_0x2605ef],this['_handler']);return _0x1f7161['_updateLocalCache'](),_0x1f7161;}[_0x2e5b1c(0x3ea)](_0x2cf0b0){const _0x42a294=_0x2e5b1c;if(this[_0x42a294(0x32a)](_0x2cf0b0))return this[_0x42a294(0x3ac)]['createInstance'](H,this[_0x42a294(0x3a4)],this['type'],this['_awaitingChangeset'],[],null,[_0x2cf0b0],this[_0x42a294(0x1aa)]);try{const _0x51eaa0=this[_0x42a294(0x3cf)][_0x42a294(0x1ad)]([_0x2cf0b0],[this[_0x42a294(0x448)]],!0x1);if(_0x71b04d(_0x51eaa0)){const {c1Prime:_0x180709,c2Prime:_0x2ddb6a}=_0x51eaa0;this[_0x42a294(0x14c)](_0x180709[0x0]),_0x2ddb6a[0x0][_0x42a294(0x24c)]=this['_getCurrentRevision']();const _0x28a64b=this[_0x42a294(0x3ac)]['createInstance'](Z,this[_0x42a294(0x3a4)],this[_0x42a294(0x255)],_0x2ddb6a[0x0],this[_0x42a294(0x1aa)]);return _0x28a64b[_0x42a294(0x3c2)](),_0x28a64b;}return this[_0x42a294(0x2d4)](!0x1);}catch(_0x3d92ff){return this[_0x42a294(0x2ec)][_0x42a294(0x30b)](_0x3d92ff),this[_0x42a294(0x2d4)](!0x1);}}[_0x2e5b1c(0x2bd)](_0x2ae150){const _0x1f12ea=_0x2e5b1c,_0x592bbd=this[_0x1f12ea(0x26e)][_0x1f12ea(0x135)](this[_0x1f12ea(0x3a4)]);if(_0x2ae150[_0x1f12ea(0x28f)]<_0x592bbd-0x1)return this;if(this['_checkMissing'](_0x2ae150))return this[_0x1f12ea(0x3ac)][_0x1f12ea(0x254)](H,this[_0x1f12ea(0x3a4)],this[_0x1f12ea(0x255)],null,[],this[_0x1f12ea(0x448)],[],this[_0x1f12ea(0x1aa)]);this[_0x1f12ea(0x21f)]();const _0x386bcb=this[_0x1f12ea(0x3ac)][_0x1f12ea(0x254)](Se,this['unitID'],this[_0x1f12ea(0x255)],this[_0x1f12ea(0x1aa)]);return _0x386bcb[_0x1f12ea(0x3c2)](),_0x386bcb;}[_0x2e5b1c(0x3a2)](_0x2b6d20){const _0x8a149b=_0x2e5b1c;return this[_0x8a149b(0x2d4)](!!(_0x2b6d20!=null&&_0x2b6d20['isPermissionRej']));}[_0x2e5b1c(0x3e5)](){const _0x2e2402=_0x2e5b1c;return this[_0x2e2402(0x3ac)][_0x2e2402(0x254)](ee,this[_0x2e2402(0x3a4)],this['type'],this[_0x2e2402(0x448)],[],this[_0x2e2402(0x1aa)]);}['toggleOnline'](){return this;}[_0x2e5b1c(0x3c9)](){const _0x5f5da4=_0x2e5b1c;this['_handler'][_0x5f5da4(0x164)](this[_0x5f5da4(0x448)]);}[_0x2e5b1c(0x2d4)](_0x59e666){const _0x5ab6c5=_0x2e5b1c;return this['_injector']['createInstance'](Q,this[_0x5ab6c5(0x3a4)],this[_0x5ab6c5(0x255)],this[_0x5ab6c5(0x448)],[],this['_handler'],_0x59e666);}};Z=he([f(0x4,_0x5c7fae(_0x5d259e)),f(0x5,_0x5c7fae(_0x4ceeac)),f(0x6,_0x5c7fae(D)),f(0x7,_0x36a317),f(0x8,_0x1cafe9),f(0x9,_0x4e0f96),f(0xa,_0x1bd332)],Z);let K=class extends le{constructor(_0x4c5584,_0x54535f,_0x48887f,_0x575277,_0x14aec7,_0x5dc348,_0x150079,_0x41387b,_0x1264d7,_0xe449c4,_0xf935fc,_0x269e1e){const _0x2e1594=_0x2e5b1c;super(_0x4c5584,_0x54535f,_0x48887f,_0x575277,_0x14aec7,_0x1264d7,_0x269e1e,_0x150079,_0x41387b),l(this,_0x2e1594(0x450),_0x2e1594(0x15a)),(this[_0x2e1594(0x3ac)]=_0x5dc348,this[_0x2e1594(0x2ec)]=_0xe449c4,this[_0x2e1594(0x3cf)]=_0xf935fc);}[_0x2e5b1c(0x415)](_0x1c89f0){const _0x14a29e=_0x2e5b1c;return this[_0x14a29e(0x40d)]['push'](_0x1c89f0),this;}['onRemoteChangeset'](_0x2b8e8e){const _0x2e7985=_0x2e5b1c;if(this['_checkMissing'](_0x2b8e8e))return this[_0x2e7985(0x3ac)]['createInstance'](H,this[_0x2e7985(0x3a4)],this['type'],this[_0x2e7985(0x448)],this[_0x2e7985(0x40d)],null,[_0x2b8e8e],this[_0x2e7985(0x1aa)]);try{const _0x170f60=this[_0x2e7985(0x3cf)]['transformChangesets']([_0x2b8e8e],[this['_awaitingChangeset']],!0x1);if(_0x71b04d(_0x170f60)){const {c1Prime:_0xf7f405,c2Prime:_0x1f24a8}=_0x170f60,_0x1e1790=this[_0x2e7985(0x3cf)][_0x2e7985(0x389)](_0xf7f405[0x0],this[_0x2e7985(0x40d)]);if(_0x24d018(_0x1e1790)){const {c1Prime:_0x2f0021,m2Prime:_0x5000f5}=_0x1e1790;return this[_0x2e7985(0x14c)](_0x2f0021),_0x1f24a8[0x0][_0x2e7985(0x24c)]=this[_0x2e7985(0x156)](),this['_injector'][_0x2e7985(0x254)](K,this[_0x2e7985(0x3a4)],this[_0x2e7985(0x255)],_0x1f24a8[0x0],_0x5000f5,this[_0x2e7985(0x1aa)]);}throw _0x1e1790[_0x2e7985(0x30b)];}throw _0x170f60[_0x2e7985(0x30b)];}catch(_0x1a0f91){return this[_0x2e7985(0x2ec)][_0x2e7985(0x30b)](_0x1a0f91),this[_0x2e7985(0x2d4)](!0x1);}}[_0x2e5b1c(0x2bd)](_0x336870){const _0x30a00a=_0x2e5b1c;if(this[_0x30a00a(0x32a)](_0x336870))return this[_0x30a00a(0x3ac)]['createInstance'](H,this[_0x30a00a(0x3a4)],this[_0x30a00a(0x255)],null,this[_0x30a00a(0x40d)],this[_0x30a00a(0x448)],[],this[_0x30a00a(0x1aa)]);this[_0x30a00a(0x21f)]();const _0x307ad3=this[_0x30a00a(0x3ac)][_0x30a00a(0x254)](Y,this[_0x30a00a(0x3a4)],this['type'],this[_0x30a00a(0x40d)],this['_handler']);return _0x307ad3[_0x30a00a(0x25a)](),_0x307ad3[_0x30a00a(0x3c2)](),_0x307ad3;}[_0x2e5b1c(0x3a2)](_0x1b099c){const _0x5ac9a0=_0x2e5b1c;return this[_0x5ac9a0(0x2d4)](!!(_0x1b099c!=null&&_0x1b099c['isPermissionRej']));}[_0x2e5b1c(0x3e5)](){const _0x5573c8=_0x2e5b1c;return this[_0x5573c8(0x3ac)][_0x5573c8(0x254)](ee,this[_0x5573c8(0x3a4)],this['type'],this['_awaitingChangeset'],this[_0x5573c8(0x40d)],this[_0x5573c8(0x1aa)]);}['toggleOnline'](){return this;}[_0x2e5b1c(0x3c9)](){const _0x373c5d=_0x2e5b1c;this['_handler'][_0x373c5d(0x164)](this[_0x373c5d(0x448)]);}[_0x2e5b1c(0x2d4)](_0x562f55){const _0x5f579e=_0x2e5b1c;return this[_0x5f579e(0x3ac)][_0x5f579e(0x254)](Q,this[_0x5f579e(0x3a4)],this['type'],null,this[_0x5f579e(0x40d)],this[_0x5f579e(0x1aa)],_0x562f55);}};K=he([f(0x5,_0x5c7fae(_0x5d259e)),f(0x6,_0x5c7fae(_0x4ceeac)),f(0x7,_0x5c7fae(D)),f(0x8,_0x36a317),f(0x9,_0x1cafe9),f(0xa,_0x4e0f96),f(0xb,_0x1bd332)],K);let Q=class extends le{constructor(_0x41aeb2,_0x3930d5,_0x1a199a,_0x110461,_0x12df4b,_0xa73078=!0x1,_0x5962e8,_0x4b6a9b,_0x26f9fc,_0x40ae86,_0x295e8e,_0x43cabb,_0x3949f6){const _0x48bcad=_0x2e5b1c;super(_0x41aeb2,_0x3930d5,_0x1a199a,_0x110461,_0x12df4b,_0x4b6a9b,_0x26f9fc,_0x295e8e,_0x40ae86),l(this,_0x48bcad(0x450),_0x48bcad(0x211)),(this['_isPermissionRej']=_0xa73078,this[_0x48bcad(0x292)]=_0x5962e8,this['_localeService']=_0x43cabb,this[_0x48bcad(0x3ed)]=_0x3949f6,this[_0x48bcad(0x1a6)](),this[_0x48bcad(0x321)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x2e5b1c(0x3ea)](){return this;}['onRemoteAck'](){return this;}[_0x2e5b1c(0x3a2)](){return this;}[_0x2e5b1c(0x3e5)](){return this;}[_0x2e5b1c(0x405)](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2e5b1c(0x321)](){const _0x33395c=_0x2e5b1c;this[_0x33395c(0x170)][_0x33395c(0x336)](this['unitID'],this[_0x33395c(0x255)],null,[]);}['_showConflictNotification'](){const _0x5428b1=_0x2e5b1c;this[_0x5428b1(0x238)]?this[_0x5428b1(0x3ed)][_0x5428b1(0x367)]({'title':this[_0x5428b1(0x452)]['t'](_0x5428b1(0x228)),'content':this[_0x5428b1(0x452)]['t'](_0x5428b1(0x157)),'type':_0x5428b1(0x30b),'duration':0x0}):this[_0x5428b1(0x3ed)]['show']({'title':this[_0x5428b1(0x452)]['t']('conflict.title'),'content':this[_0x5428b1(0x452)]['t'](_0x5428b1(0x24e)),'type':_0x5428b1(0x30b),'duration':0x0});}[_0x2e5b1c(0x482)](){const _0x234539=_0x2e5b1c;this[_0x234539(0x292)][_0x234539(0x143)](new _0x477da8(this[_0x234539(0x3a4)])['id'],!0x1);}};Q=he([f(0x6,_0x5c7fae(_0x241366)),f(0x7,_0x36a317),f(0x8,_0x1bd332),f(0x9,_0x5c7fae(D)),f(0xa,_0x5c7fae(_0x4ceeac)),f(0xb,_0x5c7fae(_0x12e5b3)),f(0xc,_0x4c821a)],Q);let ee=class extends le{constructor(_0xe6f168,_0x375fc1,_0x13e8ec,_0xd2667c,_0x145509,_0x56fb81,_0x485832,_0x1f60de,_0x4f184b,_0x24ed40){const _0x388e43=_0x2e5b1c;super(_0xe6f168,_0x375fc1,_0x13e8ec,_0xd2667c,_0x145509,_0x4f184b,_0x24ed40,_0x485832,_0x1f60de),l(this,_0x388e43(0x450),_0x388e43(0x3e4)),this[_0x388e43(0x3ac)]=_0x56fb81;}[_0x2e5b1c(0x415)](_0x3b692b){const _0x59c97e=_0x2e5b1c;return this['_pendingMutations']['push'](_0x3b692b),this[_0x59c97e(0x3c2)](),this;}[_0x2e5b1c(0x3ea)](_0x246091){const _0x29c499=_0x2e5b1c;throw new Error(_0x29c499(0x3b0));}[_0x2e5b1c(0x2bd)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x2e5b1c(0x3a2)](){const _0x5cbcf7=_0x2e5b1c;throw new Error(_0x5cbcf7(0x3d6));}[_0x2e5b1c(0x3e5)](){return this;}['toggleOnline'](){const _0x42b5a3=_0x2e5b1c,{_injector:_0x64d0df,_pendingMutations:_0x3d9dda,_awaitingChangeset:_0x16e5c6,unitID:_0x53655b,_handler:_0x5c9d1f,type:_0xd6243c}=this,_0x6fc97e=xs(_0x64d0df,_0x53655b,_0xd6243c,_0x16e5c6,_0x3d9dda,_0x5c9d1f);return _0x6fc97e instanceof Y?_0x6fc97e['_schedule']():(_0x6fc97e instanceof K||_0x6fc97e instanceof Z)&&_0x6fc97e[_0x42b5a3(0x3c9)](),_0x6fc97e;}[_0x2e5b1c(0x3c9)](){const _0x8fb485=_0x2e5b1c;throw new Error(_0x8fb485(0x37c));}};ee=he([f(0x5,_0x5c7fae(_0x5d259e)),f(0x6,_0x5c7fae(_0x4ceeac)),f(0x7,_0x5c7fae(D)),f(0x8,_0x36a317),f(0x9,_0x1bd332)],ee);let H=class extends le{constructor(_0x593018,_0x314c8d,_0xfa8768,_0xbeac0b,_0x2f5b7b,_0x1ea360,_0x4d9d89,_0xfecf,_0x6f1f03,_0x18a50d,_0x1281a4,_0x10fb2b,_0x1a7cf2,_0x212ade){const _0x1ef056=_0x2e5b1c;super(_0x593018,_0x314c8d,_0xfa8768,_0xbeac0b,_0x4d9d89,_0x10fb2b,_0x1a7cf2,_0x6f1f03,_0x18a50d),l(this,_0x1ef056(0x450),_0x1ef056(0x251)),(this[_0x1ef056(0x14d)]=_0x2f5b7b,this[_0x1ef056(0x1e4)]=_0x1ea360,this[_0x1ef056(0x3ac)]=_0xfecf,this['_logService']=_0x1281a4,this[_0x1ef056(0x3cf)]=_0x212ade);}[_0x2e5b1c(0x33f)](_0x464958){const _0x29994a=_0x2e5b1c;try{const _0x39c7f1=[..._0x464958,...this[_0x29994a(0x1e4)]],_0x5956ed=[this[_0x29994a(0x448)]||this[_0x29994a(0x14d)]][_0x29994a(0x133)](_0xfe5af9=>!!_0xfe5af9);let _0x190c92,_0x3f4b11;if(_0x5956ed[_0x29994a(0x1bb)]){const _0x9ce593=this[_0x29994a(0x3cf)][_0x29994a(0x1ad)](_0x39c7f1,_0x5956ed,!0x1);if(!_0x71b04d(_0x9ce593))throw _0x9ce593[_0x29994a(0x30b)];_0x190c92=_0x9ce593[_0x29994a(0x145)],_0x3f4b11=_0x9ce593['c2Prime'];}else _0x190c92=_0x39c7f1,_0x3f4b11=[];let _0x3a68a5=this[_0x29994a(0x40d)];_0x190c92[_0x29994a(0x1cd)](_0x343bb2=>{const _0x4f3f2b=_0x29994a;let _0x4b13dd;if(_0x3a68a5[_0x4f3f2b(0x1bb)]){const _0x4f1c16=this['_transformService']['transformMutationsWithChangeset'](_0x343bb2,_0x3a68a5);if(!_0x24d018(_0x4f1c16))throw _0x4f1c16[_0x4f3f2b(0x30b)];_0x4b13dd=_0x4f1c16['c1Prime'],_0x3a68a5=_0x4f1c16[_0x4f3f2b(0x366)];}else _0x4b13dd=_0x343bb2;this[_0x4f3f2b(0x14c)](_0x4b13dd);}),this[_0x29994a(0x14d)]&&this[_0x29994a(0x21f)](),this[_0x29994a(0x448)]&&_0x3f4b11['length']&&(_0x3f4b11[0x0]['baseRev']=this[_0x29994a(0x156)]());let _0x1226a9;if(this[_0x29994a(0x448)]&&_0x3a68a5[_0x29994a(0x1bb)]!==0x0)_0x1226a9=this['_injector'][_0x29994a(0x254)](K,this[_0x29994a(0x3a4)],this[_0x29994a(0x255)],_0x3f4b11[0x0],_0x3a68a5,this[_0x29994a(0x1aa)]);else{if(this[_0x29994a(0x448)]&&_0x3a68a5[_0x29994a(0x1bb)]===0x0)_0x3f4b11[0x0][_0x29994a(0x24c)]=this['_getCurrentRevision'](),_0x1226a9=this[_0x29994a(0x3ac)][_0x29994a(0x254)](Z,this[_0x29994a(0x3a4)],this[_0x29994a(0x255)],_0x3f4b11[0x0],this[_0x29994a(0x1aa)]);else{if(_0x3a68a5[_0x29994a(0x1bb)]!==0x0){const _0xe25d59=this[_0x29994a(0x3ac)]['createInstance'](Y,this[_0x29994a(0x3a4)],this[_0x29994a(0x255)],_0x3a68a5,this['_handler']);_0xe25d59[_0x29994a(0x25a)](),_0x1226a9=_0xe25d59;}else _0x1226a9=this[_0x29994a(0x3ac)]['createInstance'](Se,this[_0x29994a(0x3a4)],this[_0x29994a(0x255)],this['_handler']);}}return _0x1226a9[_0x29994a(0x3c2)](),_0x1226a9;}catch(_0x3c605f){return this[_0x29994a(0x2ec)][_0x29994a(0x30b)](_0x29994a(0x3a8),_0x29994a(0x132),_0x3c605f),this[_0x29994a(0x3ac)][_0x29994a(0x254)](Q,this[_0x29994a(0x3a4)],this[_0x29994a(0x255)],this[_0x29994a(0x448)],this[_0x29994a(0x40d)],this[_0x29994a(0x1aa)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x3bc73e){const _0x10482a=_0x2e5b1c;return this[_0x10482a(0x40d)]['push'](_0x3bc73e),this;}[_0x2e5b1c(0x3ea)](_0x579baa){const _0x5d3d05=_0x2e5b1c;return this[_0x5d3d05(0x1e4)][_0x5d3d05(0x2f1)](_0x579baa),this;}[_0x2e5b1c(0x2bd)](_0x3dd767){const _0x1b394f=_0x2e5b1c;if(this[_0x1b394f(0x448)])return this[_0x1b394f(0x14d)]=this[_0x1b394f(0x448)],this[_0x1b394f(0x448)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x2e5b1c(0x3a2)](_0x54c51e){const _0x5cfdb2=_0x2e5b1c;return this[_0x5cfdb2(0x2d4)](!!(_0x54c51e!=null&&_0x54c51e[_0x5cfdb2(0x44c)]));}[_0x2e5b1c(0x3e5)](){const _0x44a3d6=_0x2e5b1c;return this[_0x44a3d6(0x3ac)][_0x44a3d6(0x254)](ee,this['unitID'],this[_0x44a3d6(0x255)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0x2e5b1c(0x405)](){return this;}[_0x2e5b1c(0x2d4)](_0x3fa06d){const _0x160052=_0x2e5b1c;return this[_0x160052(0x3ac)]['createInstance'](Q,this['unitID'],this['type'],this[_0x160052(0x448)],this[_0x160052(0x40d)],this[_0x160052(0x1aa)],_0x3fa06d);}};H=he([f(0x7,_0x5c7fae(_0x5d259e)),f(0x8,_0x5c7fae(_0x4ceeac)),f(0x9,_0x5c7fae(D)),f(0xa,_0x1cafe9),f(0xb,_0x36a317),f(0xc,_0x1bd332),f(0xd,_0x4e0f96)],H);function xs(_0x492be6,_0x4d0c17,_0xe5ea13,_0x146561,_0x27f482,_0x2320ab){const _0x5656ba=_0x2e5b1c;return _0x146561&&_0x27f482[_0x5656ba(0x1bb)]?_0x492be6[_0x5656ba(0x254)](K,_0x4d0c17,_0xe5ea13,_0x146561,_0x27f482,_0x2320ab):_0x146561?_0x492be6['createInstance'](Z,_0x4d0c17,_0xe5ea13,_0x146561,_0x2320ab):_0x27f482[_0x5656ba(0x1bb)]?_0x492be6['createInstance'](Y,_0x4d0c17,_0xe5ea13,_0x27f482,_0x2320ab):_0x492be6['createInstance'](Se,_0x4d0c17,_0xe5ea13,_0x2320ab);}var mr=Object[_0x2e5b1c(0x2de)],fr=Object[_0x2e5b1c(0x41c)],Vt=(_0x4b95ae,_0x5cd61a,_0x46ad03,_0x1ba848)=>{const _0x5347b4=_0x2e5b1c;for(var _0x1e1bce=_0x1ba848>0x1?void 0x0:_0x1ba848?fr(_0x5cd61a,_0x46ad03):_0x5cd61a,_0x4688ed=_0x4b95ae[_0x5347b4(0x1bb)]-0x1,_0xc89367;_0x4688ed>=0x0;_0x4688ed--)(_0xc89367=_0x4b95ae[_0x4688ed])&&(_0x1e1bce=(_0x1ba848?_0xc89367(_0x5cd61a,_0x46ad03,_0x1e1bce):_0xc89367(_0x1e1bce))||_0x1e1bce);return _0x1ba848&&_0x1e1bce&&mr(_0x5cd61a,_0x46ad03,_0x1e1bce),_0x1e1bce;},p=(_0x2cfeda,_0xc069a4)=>(_0x547613,_0x532b22)=>_0xc069a4(_0x547613,_0x532b22,_0x2cfeda);let tt=class extends _0x4bff65{constructor(_0x369707,_0x46cd31,_0x336f35,_0x194575,_0x561b12,_0x18171c,_0x4a0276,_0x14fb1b,_0x601a27,_0xfbd1d6,_0x18ef88,_0x888358,_0x4364c7){const _0x104206=_0x2e5b1c;super(),l(this,_0x104206(0x3ec),new _0x16e81a(null)),l(this,_0x104206(0x3a7),this['_state$'][_0x104206(0x2f8)]()),l(this,_0x104206(0x219)),l(this,_0x104206(0x1d4),!0x1),l(this,_0x104206(0x281),this['state$']['pipe'](_0x464900(_0x4195b2=>_0x4195b2?_0x4195b2[_0x104206(0x450)]:w[_0x104206(0x1ac)]),_0x1aec94(0x1))),l(this,_0x104206(0x2c4),!0x1),l(this,_0x104206(0x40b),[]),(this[_0x104206(0x3a4)]=_0x369707,this[_0x104206(0x2c6)]=_0x46cd31,this[_0x104206(0x165)]=_0x336f35,this[_0x104206(0x3ac)]=_0x194575,this['_localCacheService']=_0x561b12,this[_0x104206(0x1b5)]=_0x18171c,this[_0x104206(0x452)]=_0x4a0276,this[_0x104206(0x26e)]=_0x14fb1b,this[_0x104206(0x2ec)]=_0x601a27,this[_0x104206(0x1bd)]=_0xfbd1d6,this[_0x104206(0x396)]=_0x18ef88,this[_0x104206(0x292)]=_0x888358,this[_0x104206(0x1ca)]=_0x4364c7);}get['state'](){return this['_state'];}async[_0x2e5b1c(0x124)](){const _0x1b7d84=_0x2e5b1c;if(this['state'])throw new Error(_0x1b7d84(0x144));await this[_0x1b7d84(0x42f)]();}[_0x2e5b1c(0x2d1)](){return this['_collaborationPaused']=!0x0,_0x29a7b(()=>{const _0x123399=_0x5851;this[_0x123399(0x1d4)]=!0x1,this[_0x123399(0x301)]();});}[_0x2e5b1c(0x252)](_0x1979a4){const _0x56ac7c=_0x2e5b1c;this[_0x56ac7c(0x219)]=_0x1979a4,this[_0x56ac7c(0x3ec)][_0x56ac7c(0x244)](_0x1979a4);}async[_0x2e5b1c(0x42f)](){const _0x321ba8=_0x2e5b1c;var _0x1edee0;this[_0x321ba8(0x252)](await this['_createInitialState']()),this[_0x321ba8(0x1ca)]&&((_0x1edee0=this[_0x321ba8(0x1ca)])==null||_0x1edee0['editingUnit'](this['unitID']),this[_0x321ba8(0x294)](this[_0x321ba8(0x1ca)]['getUnitStatus$'](this[_0x321ba8(0x3a4)])['subscribe'](_0x3513eb=>{const _0x3d463a=_0x321ba8;this[_0x3d463a(0x2ec)][_0x3d463a(0x166)](_0x3d463a(0x458),_0x3d463a(0x263),_0x3513eb),_0x3513eb===$s['OTHER_CLIENTS_EDITING']?(this[_0x3d463a(0x396)][_0x3d463a(0x367)]({'content':this[_0x3d463a(0x452)]['t'](_0x3d463a(0x268)),'type':_0x68ddaa[_0x3d463a(0x425)]}),this[_0x3d463a(0x292)][_0x3d463a(0x143)](new _0x477da8(this[_0x3d463a(0x3a4)])['id'],!0x1)):this['_permissionService'][_0x3d463a(0x143)](new _0x477da8(this[_0x3d463a(0x3a4)])['id'],!0x0);})));let _0x1ccf2d=!0x1;return this['disposeWithMe'](this[_0x321ba8(0x2c6)][_0x321ba8(0x34d)][_0x321ba8(0x3c4)](_0x1c20b0=>{const _0x1a8633=_0x321ba8;_0x1c20b0===W[_0x1a8633(0x13f)]?this[_0x1a8633(0x369)](_0x1ccf2d):_0x1c20b0===W[_0x1a8633(0x1ac)]&&(_0x1ccf2d=!0x0,this['_toggleOffline']());})),this[_0x321ba8(0x294)](this[_0x321ba8(0x2c6)][_0x321ba8(0x372)][_0x321ba8(0x3c4)](_0x1e0a29=>{const _0x427905=_0x321ba8;try{switch(_0x1e0a29[_0x427905(0x2f6)]){case _0x410792[_0x427905(0x2df)]:{this[_0x427905(0x435)](_0x3b19c3(_0x1e0a29[_0x427905(0x249)]));break;}case _0x410792['CHANGESET_ACK']:{this[_0x427905(0x232)](_0x1e0a29['data']);break;}case _0x410792[_0x427905(0x38b)]:{this[_0x427905(0x2ef)]();break;}case _0x410792[_0x427905(0x3f8)]:{this[_0x427905(0x2b3)](_0x1e0a29[_0x427905(0x249)]['changesets'][_0x427905(0x1c7)](_0x35f938=>_0x3b19c3(_0x35f938)));break;}case _0x410792[_0x427905(0x459)]:this[_0x427905(0x2ef)]({'isPermissionRej':!0x0});}}catch(_0x34846d){throw console['error'](_0x427905(0x21d),_0x34846d),_0x34846d;}})),this[_0x321ba8(0x219)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x2e5b1c(0x30d)](){const _0x580c59=_0x2e5b1c;if(this[_0x580c59(0x2c4)])throw new Error(_0x580c59(0x37b));this[_0x580c59(0x2c4)]=!0x0;}[_0x2e5b1c(0x383)](_0x5147a6){const _0x18798d=_0x2e5b1c;this['_lockTransition'](),this[_0x18798d(0x252)](this[_0x18798d(0x219)][_0x18798d(0x415)](_0x5147a6)),this['_unlockTransition']();}[_0x2e5b1c(0x435)](_0x5dee92){const _0x1dc887=_0x2e5b1c;if(!(_0x5dee92[_0x1dc887(0x28f)]<=this[_0x1dc887(0x26e)][_0x1dc887(0x135)](this[_0x1dc887(0x3a4)]))){if(this['_collaborationPaused']){this[_0x1dc887(0x40b)][_0x1dc887(0x2f1)](_0x5dee92);return;}this[_0x1dc887(0x258)](_0x5dee92);}}[_0x2e5b1c(0x301)](){const _0xc7a68e=_0x2e5b1c;this['_remoteChangesetQueue'][_0xc7a68e(0x1cd)](_0x151fb7=>this[_0xc7a68e(0x258)](_0x151fb7)),this['_remoteChangesetQueue']=[];}[_0x2e5b1c(0x258)](_0x4ba80f){const _0x2495c8=_0x2e5b1c,_0x41b5d1=this[_0x2495c8(0x1b5)][_0x2495c8(0x12e)][_0x2495c8(0x32b)](this[_0x2495c8(0x1b5)][_0x2495c8(0x12e)][_0x2495c8(0x47a)]()['COMPRESS_MUTATION_APPLY'])(_0x4ba80f[_0x2495c8(0x225)],null)||_0x4ba80f[_0x2495c8(0x225)],_0x2e9c16={..._0x4ba80f,'mutations':_0x41b5d1};this['_lockTransition'](),this[_0x2495c8(0x252)](this[_0x2495c8(0x219)][_0x2495c8(0x3ea)](_0x2e9c16)),this[_0x2495c8(0x204)]();}[_0x2e5b1c(0x232)](_0x1e0620){const _0x569302=_0x2e5b1c;this['_lockTransition'](),this[_0x569302(0x252)](this[_0x569302(0x219)][_0x569302(0x2bd)](_0x1e0620)),this['_unlockTransition']();}[_0x2e5b1c(0x2ef)](_0x351753){const _0x34a206=_0x2e5b1c;this[_0x34a206(0x30d)](),this[_0x34a206(0x252)](this['_state'][_0x34a206(0x3a2)](_0x351753)),this[_0x34a206(0x204)]();}[_0x2e5b1c(0x2b3)](_0x2652a1){const _0x102ff3=_0x2e5b1c;if(!(this['_state']instanceof H))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x4d1854=_0x2652a1[_0x102ff3(0x1c7)](_0x529866=>{const _0xc10b60=_0x102ff3,_0x3cc1a2=this[_0xc10b60(0x1b5)][_0xc10b60(0x12e)][_0xc10b60(0x32b)](this[_0xc10b60(0x1b5)]['interceptor']['getInterceptPoints']()[_0xc10b60(0x328)])(_0x529866[_0xc10b60(0x225)],null)||_0x529866[_0xc10b60(0x225)];return{..._0x529866,'mutations':_0x3cc1a2};});this[_0x102ff3(0x30d)](),this[_0x102ff3(0x252)](this['_state'][_0x102ff3(0x33f)](_0x4d1854)),this['_unlockTransition']();}[_0x2e5b1c(0x3ce)](){const _0x1fb1a2=_0x2e5b1c;this[_0x1fb1a2(0x30d)](),this[_0x1fb1a2(0x252)](this['_state'][_0x1fb1a2(0x3e5)]()),this[_0x1fb1a2(0x204)]();}[_0x2e5b1c(0x369)](_0x3c7eb7=!0x1){const _0x357dab=_0x2e5b1c;this[_0x357dab(0x30d)](),this[_0x357dab(0x252)](this[_0x357dab(0x219)][_0x357dab(0x405)]()),this[_0x357dab(0x204)]();const _0x255237=this[_0x357dab(0x219)];_0x3c7eb7&&_0x255237 instanceof Se&&(this[_0x357dab(0x30d)](),this[_0x357dab(0x252)](_0x255237[_0x357dab(0x353)]()),this[_0x357dab(0x204)]());}async['_createInitialState'](){return new Promise(_0x20cf34=>{const _0x36bbc5=_0x5851;this[_0x36bbc5(0x2c6)][_0x36bbc5(0x34d)][_0x36bbc5(0x195)](_0x219c0a(0x1))[_0x36bbc5(0x3c4)](async _0x513645=>{const _0x47b9a4=_0x36bbc5;_0x20cf34(await this['_createInitialStateImpl'](_0x513645===W[_0x47b9a4(0x13f)]));});});}['_createHandler'](){const _0x450f58=_0x2e5b1c,_0xd6b647=this[_0x450f58(0x3a4)];return{'onStateChange':(_0x36f2c1,_0x256049)=>{const _0x33b52c=_0x450f58;if(_0x36f2c1!==this[_0x33b52c(0x219)])throw new Error(_0x33b52c(0x1b0)+_0x36f2c1[_0x33b52c(0x450)]+_0x33b52c(0x1fd)+_0x256049[_0x33b52c(0x450)]+_0x33b52c(0x42e)+this['_state']['status']);this['_updateState'](_0x256049);},'onSendChangeset':_0xfdc7e9=>{const _0x454e0c=_0x450f58,_0x29ee31={'eventID':_0x410792[_0x454e0c(0x34b)],'data':{'unitID':_0xfdc7e9[_0x454e0c(0x3a4)],'unitType':this['_type'],'changeset':_0xfdc7e9,'memberID':this[_0x454e0c(0x2c6)][_0x454e0c(0x146)]()}};this['session'][_0x454e0c(0x1ef)](_0x29ee31,this[_0x454e0c(0x3a4)]);},'onMissingChangesets':({from:_0x13ddf2,to:_0x3232de})=>{const _0x301d34=_0x450f58;this['_logService'][_0x301d34(0x166)](_0x301d34(0x458),_0x301d34(0x31b)+_0x13ddf2+_0x301d34(0x45a)+_0x3232de);const _0x414327={'eventID':_0x410792[_0x301d34(0x1b3)],'data':{'unitID':_0xd6b647,'unitType':this[_0x301d34(0x165)],'from':_0x13ddf2,'to':_0x3232de}};this[_0x301d34(0x2c6)][_0x301d34(0x1ef)](_0x414327,this[_0x301d34(0x3a4)]);}};}async[_0x2e5b1c(0x29c)](_0x1cc7ef){const _0x5e9c0c=_0x2e5b1c;var _0x334c5c,_0x323c80;const _0xe9b210=await this[_0x5e9c0c(0x170)][_0x5e9c0c(0x1cb)](this[_0x5e9c0c(0x3a4)]),_0x11bca6=(_0x334c5c=_0xe9b210==null?void 0x0:_0xe9b210[_0x5e9c0c(0x225)])!=null?_0x334c5c:[],_0x13b5d1=(_0x323c80=_0xe9b210==null?void 0x0:_0xe9b210[_0x5e9c0c(0x35c)])!=null?_0x323c80:null,_0x5bd8d3=this[_0x5e9c0c(0x3a4)];try{this['_replayCachedMutations'](_0x13b5d1,_0x11bca6);}catch(_0x1829ac){this[_0x5e9c0c(0x2ec)][_0x5e9c0c(0x30b)](_0x1829ac);}const _0x3e957c=this[_0x5e9c0c(0x1da)]();if(_0x1cc7ef){const _0xf9eb40=xs(this[_0x5e9c0c(0x3ac)],_0x5bd8d3,this[_0x5e9c0c(0x165)],_0x13b5d1,_0x11bca6,_0x3e957c);return _0xf9eb40 instanceof Y?_0xf9eb40[_0x5e9c0c(0x25a)]():(_0xf9eb40 instanceof K||_0xf9eb40 instanceof Z)&&_0xf9eb40[_0x5e9c0c(0x3c9)](),_0xf9eb40;}return this[_0x5e9c0c(0x3ac)]['createInstance'](ee,_0x5bd8d3,this['_type'],_0x13b5d1,_0x11bca6,_0x3e957c);}[_0x2e5b1c(0x44d)](_0x24ace6,_0x1bd951){const _0x464916=_0x2e5b1c;var _0x19edf7,_0x2e95eb;const _0x8cc548=this[_0x464916(0x1b5)]['interceptor'][_0x464916(0x32b)](this[_0x464916(0x1b5)]['interceptor'][_0x464916(0x47a)]()[_0x464916(0x328)]);(_0x19edf7=_0x8cc548((_0x24ace6==null?void 0x0:_0x24ace6['mutations'])||[],null))==null||_0x19edf7[_0x464916(0x1cd)](_0x16c50e=>this[_0x464916(0x1bd)]['executeCommand'](_0x16c50e['id'],_0x16c50e[_0x464916(0x27b)])),(_0x2e95eb=_0x8cc548(_0x1bd951||[],null))==null||_0x2e95eb[_0x464916(0x1cd)](_0x43c1f4=>this[_0x464916(0x1bd)][_0x464916(0x335)](_0x43c1f4['id'],_0x43c1f4['params']));}};tt=Vt([p(0x3,_0x5c7fae(_0x5d259e)),p(0x4,_0x5c7fae(D)),p(0x5,_0x5c7fae(_0xac140b)),p(0x6,_0x5c7fae(_0x12e5b3)),p(0x7,_0x5c7fae(_0x4ceeac)),p(0x8,_0x1cafe9),p(0x9,_0x36a317),p(0xa,_0x29e945),p(0xb,_0x241366),p(0xc,_0x5723b6(it))],tt);let Tt=class extends tt{constructor(_0x266eab,_0x48a92c,_0x4dbbbb,_0x51e5c2,_0x13242f,_0x3f936d,_0x38c6a9,_0x273c9d,_0x25be67,_0x1bae9d,_0x5f0a56,_0x1827ef,_0x70c6bd,_0x2e33fa,_0x505353,_0x46f07f,_0x3adc92){const _0x38db37=_0x2e5b1c;super(_0x266eab,_0x4dbbbb,_0x48a92c,_0x51e5c2,_0x13242f,_0x3f936d,_0x38c6a9,_0x273c9d,_0x70c6bd,_0x2e33fa,_0x505353,_0x46f07f,_0x3adc92),this['unitID']=_0x266eab,this[_0x38db37(0x255)]=_0x48a92c,this['_docStateChangeManagerService']=_0x25be67,this[_0x38db37(0x2cf)]=_0x1bae9d,this[_0x38db37(0x291)]=_0x5f0a56,this[_0x38db37(0x490)]=_0x1827ef;}['_createHandler'](){const _0x544025=_0x2e5b1c,_0x3c5344=super[_0x544025(0x1da)]();return _0x3c5344[_0x544025(0x320)]=_0x2616b1=>this['_docTransformIMECacheService'][_0x544025(0x272)](_0x2616b1),_0x3c5344[_0x544025(0x3d4)]=_0x41bd23=>this[_0x544025(0x291)][_0x544025(0x326)](_0x41bd23),_0x3c5344['onSyncEditingCollabCursor']=_0x14e1cf=>this[_0x544025(0x490)]['syncEditingCollabCursor'](_0x14e1cf),_0x3c5344[_0x544025(0x158)]=_0xcb1e39=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0xcb1e39),_0x3c5344;}async['_init'](){const _0x431bbb=_0x2e5b1c,_0x3c2868=await super[_0x431bbb(0x42f)]();return this[_0x431bbb(0x294)](this[_0x431bbb(0x1bd)][_0x431bbb(0x20e)]((_0x306b2b,_0x482ff6)=>{const _0x275b4a=_0x431bbb;if(_0x306b2b[_0x275b4a(0x255)]!==_0x32e0b0[_0x275b4a(0x368)]||_0x482ff6!=null&&_0x482ff6['fromCollab']||_0x482ff6!=null&&_0x482ff6[_0x275b4a(0x270)])return;const _0x4d3fbe=_0x306b2b['params'];if((_0x4d3fbe==null?void 0x0:_0x4d3fbe['unitId'])!==this[_0x275b4a(0x3a4)])return;let _0x5e12bd=_0x306b2b;if(_0x5e12bd['id']===_0xa592b4['id']){const _0x19cdce=_0x5e12bd['params'];_0x5e12bd={'id':_0xa592b4['id'],'type':_0x32e0b0[_0x275b4a(0x368)],'params':{'unitId':_0x19cdce[_0x275b4a(0x275)],'actions':_0x19cdce[_0x275b4a(0x1ba)],'textRanges':null}};}const _0x4d84ab=this[_0x275b4a(0x1b5)][_0x275b4a(0x12e)][_0x275b4a(0x32b)](this['_compressMutationService']['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x5e12bd],null)||[_0x5e12bd];this['_onLocalMutation'](_0x4d84ab[0x0]);})),_0x3c2868;}};Tt=Vt([p(0x3,_0x5c7fae(_0x5d259e)),p(0x4,_0x5c7fae(D)),p(0x5,_0x5c7fae(_0xac140b)),p(0x6,_0x5c7fae(_0x12e5b3)),p(0x7,_0x5c7fae(_0x4ceeac)),p(0x8,_0x5c7fae(_0x34634f)),p(0x9,_0x5c7fae(Ze)),p(0xa,_0x5c7fae(et)),p(0xb,_0x5c7fae(Bt)),p(0xc,_0x1cafe9),p(0xd,_0x36a317),p(0xe,_0x29e945),p(0xf,_0x241366),p(0x10,_0x5723b6(it))],Tt);let Rt=class extends tt{constructor(_0x262f80,_0x335104,_0x2acc1c,_0x29a3f7,_0x596fd8,_0x5eb564,_0x2cae16,_0x501fb4,_0x31b383,_0x319bd7,_0x22f9b7,_0x1dc420,_0x8a9e3f,_0xc27cd7){const _0x3f398e=_0x2e5b1c;super(_0x262f80,_0x2acc1c,_0x335104,_0x29a3f7,_0x596fd8,_0x5eb564,_0x2cae16,_0x501fb4,_0x319bd7,_0x22f9b7,_0x1dc420,_0x8a9e3f,_0xc27cd7),this[_0x3f398e(0x3a4)]=_0x262f80,this[_0x3f398e(0x255)]=_0x335104,this[_0x3f398e(0x331)]=_0x31b383;}[_0x2e5b1c(0x1da)](){const _0x9dce1a=_0x2e5b1c,_0x54f89f=super[_0x9dce1a(0x1da)]();return _0x54f89f[_0x9dce1a(0x3d4)]=_0x3b846c=>this[_0x9dce1a(0x331)]['transformSelections'](_0x3b846c),_0x54f89f;}async[_0x2e5b1c(0x42f)](){const _0x4e699b=_0x2e5b1c,_0x2cdef6=await super[_0x4e699b(0x42f)]();return this[_0x4e699b(0x294)](this[_0x4e699b(0x1bd)]['onCommandExecuted']((_0x4a4950,_0x3b27a5)=>{const _0x4939c6=_0x4e699b;if(_0x4a4950[_0x4939c6(0x255)]!==_0x32e0b0[_0x4939c6(0x368)]||_0x3b27a5!=null&&_0x3b27a5['fromCollab']||_0x3b27a5!=null&&_0x3b27a5[_0x4939c6(0x270)])return;const _0x36f258=_0x4a4950['params'];if((_0x36f258==null?void 0x0:_0x36f258[_0x4939c6(0x275)])!==this['unitID'])return;const _0x947d24=_0x4a4950,_0x1f4749=this['_compressMutationService'][_0x4939c6(0x12e)][_0x4939c6(0x32b)](this['_compressMutationService']['interceptor'][_0x4939c6(0x47a)]()[_0x4939c6(0x2b7)])([_0x947d24],null)||[_0x947d24];this[_0x4939c6(0x383)](_0x1f4749[0x0]);})),_0x2cdef6;}};Rt=Vt([p(0x3,_0x5c7fae(_0x5d259e)),p(0x4,_0x5c7fae(D)),p(0x5,_0x5c7fae(_0xac140b)),p(0x6,_0x5c7fae(_0x12e5b3)),p(0x7,_0x5c7fae(_0x4ceeac)),p(0x8,_0x5c7fae(Qe)),p(0x9,_0x1cafe9),p(0xa,_0x36a317),p(0xb,_0x29e945),p(0xc,_0x241366),p(0xd,_0x5723b6(it))],Rt);var gr=Object['defineProperty'],Sr=Object['getOwnPropertyDescriptor'],pr=(_0x282f42,_0x443ff8,_0x1932e3,_0x5eebd7)=>{const _0x2af0f6=_0x2e5b1c;for(var _0x368c1e=_0x5eebd7>0x1?void 0x0:_0x5eebd7?Sr(_0x443ff8,_0x1932e3):_0x443ff8,_0x533ef5=_0x282f42[_0x2af0f6(0x1bb)]-0x1,_0x51d5a3;_0x533ef5>=0x0;_0x533ef5--)(_0x51d5a3=_0x282f42[_0x533ef5])&&(_0x368c1e=(_0x5eebd7?_0x51d5a3(_0x443ff8,_0x1932e3,_0x368c1e):_0x51d5a3(_0x368c1e))||_0x368c1e);return _0x5eebd7&&_0x368c1e&&gr(_0x443ff8,_0x1932e3,_0x368c1e),_0x368c1e;},_t=(_0x2690b1,_0x398886)=>(_0x543e75,_0x175b03)=>_0x398886(_0x543e75,_0x175b03,_0x2690b1);let Ae=class extends _0x4bff65{constructor(_0x328662,_0x4ba954,_0x540a3e){const _0x2f77b3=_0x2e5b1c;super(),l(this,'_entities',new Map()),l(this,'_entityInit$',new _0x47a81b()),(this[_0x2f77b3(0x3ac)]=_0x328662,this[_0x2f77b3(0x3f1)]=_0x4ba954,this[_0x2f77b3(0x1ae)]=_0x540a3e,this[_0x2f77b3(0x42f)]());}[_0x2e5b1c(0x2fe)](){const _0x4da6a5=_0x2e5b1c;super[_0x4da6a5(0x2fe)](),this['_entities'][_0x4da6a5(0x1cd)](_0x15f317=>_0x15f317[_0x4da6a5(0x2fe)]()),this[_0x4da6a5(0x36c)]['clear']();}[_0x2e5b1c(0x350)](_0x16a76d){const _0x217514=_0x2e5b1c;var _0x37c0c2;return(_0x37c0c2=this[_0x217514(0x36c)][_0x217514(0x18f)](_0x16a76d))!=null?_0x37c0c2:null;}['getCollabEntity$'](_0x1c4ee2){const _0x3c4bed=_0x2e5b1c,_0x121c39=this[_0x3c4bed(0x350)](_0x1c4ee2);return _0x121c39?_0x8d55e(_0x121c39):this[_0x3c4bed(0x394)][_0x3c4bed(0x195)](_0x48e324(_0x2d5d87=>_0x2d5d87[_0x3c4bed(0x3a4)]===_0x1c4ee2));}['_init'](){const _0x25af9b=_0x2e5b1c;this[_0x25af9b(0x1ae)][_0x25af9b(0x1a4)](_0x3bf0d9['UNIVER_SHEET'])[_0x25af9b(0x195)](_0x2123e0(this[_0x25af9b(0x3be)]),_0x1e04ab(0x10))[_0x25af9b(0x3c4)](async _0x28300a=>{const _0x19dbaa=_0x25af9b,_0x2be540=_0x28300a[_0x19dbaa(0x426)](),_0x5d3151=await this[_0x19dbaa(0x2ac)](_0x2be540,x['UNIVER_SHEET']);this[_0x19dbaa(0x36c)]['set'](_0x2be540,_0x5d3151);}),this[_0x25af9b(0x1ae)]['getTypeOfUnitAdded$'](_0x3bf0d9[_0x25af9b(0x1de)])[_0x25af9b(0x195)](_0x2123e0(this[_0x25af9b(0x3be)]),_0x1e04ab(0x10))['pipe'](_0x48e324(_0x11a829=>!_0x11a829[_0x25af9b(0x426)]()[_0x25af9b(0x1e5)]('__')))[_0x25af9b(0x3c4)](async _0xb2b8c3=>{const _0x18a3a9=_0x25af9b,_0x51577e=_0xb2b8c3[_0x18a3a9(0x426)](),_0xc5ef93=await this['_startCollaboration'](_0x51577e,x[_0x18a3a9(0x1de)]);this[_0x18a3a9(0x36c)][_0x18a3a9(0x1e1)](_0x51577e,_0xc5ef93);}),_0x9334d7(this[_0x25af9b(0x1ae)][_0x25af9b(0x46a)](_0x3bf0d9[_0x25af9b(0x2c7)]),this[_0x25af9b(0x1ae)][_0x25af9b(0x46a)](_0x3bf0d9['UNIVER_DOC']))['pipe'](_0x2123e0(this['dispose$']))['subscribe'](_0x1be065=>{const _0x41c62f=_0x25af9b,_0x5ddeba=_0x1be065['getUnitId'](),_0x57baa1=this[_0x41c62f(0x36c)]['get'](_0x5ddeba);_0x57baa1&&(_0x57baa1[_0x41c62f(0x2fe)](),this[_0x41c62f(0x36c)][_0x41c62f(0x18d)](_0x5ddeba));});}async[_0x2e5b1c(0x2ac)](_0x136772,_0xeae53){const _0x31a250=_0x2e5b1c,_0x3cca57=await this[_0x31a250(0x3f1)][_0x31a250(0x205)](_0x136772),_0x3467fb=this[_0x31a250(0x3ac)][_0x31a250(0x254)](this['_getCtorByUniverType'](_0xeae53),_0x136772,_0xeae53,_0x3cca57);return await _0x3467fb['init'](),this['_entityInit$'][_0x31a250(0x244)](_0x3467fb),_0x3467fb;}['_getCtorByUniverType'](_0xfc2989){const _0x3c98b5=_0x2e5b1c;switch(_0xfc2989){case x['UNIVER_DOC']:return Tt;case x[_0x3c98b5(0x2c7)]:return Rt;default:throw new Error(_0x3c98b5(0x451)+_0xfc2989);}}};Ae=pr([_t(0x0,_0x5c7fae(_0x5d259e)),_t(0x1,_0x5c7fae(ae)),_t(0x2,_0x30b2f2)],Ae);const ls=['purple300',_0x2e5b1c(0x380),_0x2e5b1c(0x465),_0x2e5b1c(0x358),'blue400',_0x2e5b1c(0x420)];class Ft extends _0x36403b{constructor(){const _0x2bfa68=_0x2e5b1c;super(...arguments),l(this,_0x2bfa68(0x29e),new Map()),l(this,_0x2bfa68(0x159),0x0);}[_0x2e5b1c(0x26c)](_0x1f9456){const _0x5a514f=_0x2e5b1c;if(this[_0x5a514f(0x29e)][_0x5a514f(0x250)](_0x1f9456))return this['_assignedColors'][_0x5a514f(0x18f)](_0x1f9456);const _0x137ce1=ls[this[_0x5a514f(0x159)]];return this[_0x5a514f(0x159)]=(this[_0x5a514f(0x159)]+0x1)%ls[_0x5a514f(0x1bb)],this[_0x5a514f(0x29e)][_0x5a514f(0x1e1)](_0x1f9456,_0x137ce1),_0x137ce1;}}var vr=Object[_0x2e5b1c(0x2de)],Ir=Object[_0x2e5b1c(0x41c)],Er=(_0x3f29b7,_0x11011d,_0x9a1aaa,_0x149a36)=>{for(var _0x33d613=_0x149a36>0x1?void 0x0:_0x149a36?Ir(_0x11011d,_0x9a1aaa):_0x11011d,_0x106f4c=_0x3f29b7['length']-0x1,_0x212c27;_0x106f4c>=0x0;_0x106f4c--)(_0x212c27=_0x3f29b7[_0x106f4c])&&(_0x33d613=(_0x149a36?_0x212c27(_0x11011d,_0x9a1aaa,_0x33d613):_0x212c27(_0x33d613))||_0x33d613);return _0x149a36&&_0x33d613&&vr(_0x11011d,_0x9a1aaa,_0x33d613),_0x33d613;},de=(_0x14c03d,_0x25f081)=>(_0x27054b,_0x205f33)=>_0x25f081(_0x27054b,_0x205f33,_0x14c03d);const Cr=0x12c,br=0x64,Tr=()=>{let _0x31f185=[],_0x1f2e9a=!0x1;return _0x16798c=>{const _0x31b04b=_0x5851;_0x31f185[_0x31b04b(0x2f1)](_0x16798c),_0x1f2e9a||(_0x1f2e9a=!0x0,setTimeout(()=>{const _0x511562=_0x31b04b;_0x31f185[_0x511562(0x1cd)](_0x2fc867=>_0x2fc867()),_0x31f185=[],_0x1f2e9a=!0x1;}));};};let Ot=class extends _0x4bff65{constructor(_0x5d1019,_0x5148f6,_0x43b7c7,_0x19d5ff,_0x1a058e,_0x469b7a,_0x7af0f8,_0x17a6df){const _0x398ac9=_0x2e5b1c;super(),l(this,'_online',!0x1),l(this,_0x398ac9(0x42f),!0x1),l(this,_0x398ac9(0x2f3),new _0x16e81a(new Map())),l(this,_0x398ac9(0x393),this[_0x398ac9(0x2f3)][_0x398ac9(0x2f8)]()),l(this,'_roomMembers$',new _0x16e81a([])),l(this,_0x398ac9(0x39d),this[_0x398ac9(0x274)][_0x398ac9(0x195)](_0x116e1b(Cr))),l(this,'_updateLocalCursor',_0x415879((_0x325e6f,_0x479e95)=>{const _0x3fbf12=_0x398ac9,_0x206c9a={'eventID':_0x410792[_0x3fbf12(0x227)],'data':{'unitID':this[_0x3fbf12(0x3a4)],'memberID':this['_session'][_0x3fbf12(0x146)](),'selection':_0x508689(_0x325e6f,_0x479e95[_0x3fbf12(0x2c0)])}};this[_0x3fbf12(0x233)]['send'](_0x206c9a,this[_0x3fbf12(0x3a4)]);},br)),(this['unitID']=_0x5d1019,this['_session']=_0x5148f6,this[_0x398ac9(0x3ac)]=_0x43b7c7,this['_colorAssignService']=_0x19d5ff,this[_0x398ac9(0x2a9)]=_0x1a058e,this[_0x398ac9(0x1ae)]=_0x469b7a,this['_commandService']=_0x7af0f8,this[_0x398ac9(0x1c6)]=_0x17a6df);}get['cursorInfo'](){const _0x403fb6=_0x2e5b1c;return this[_0x403fb6(0x2f3)][_0x403fb6(0x131)]();}get[_0x2e5b1c(0x223)](){const _0x5184ba=_0x2e5b1c;return this['_roomMembers$'][_0x5184ba(0x131)]();}[_0x2e5b1c(0x2fe)](){const _0xf8359a=_0x2e5b1c;super[_0xf8359a(0x2fe)](),this[_0xf8359a(0x2f3)][_0xf8359a(0x244)](new Map()),this[_0xf8359a(0x2f3)][_0xf8359a(0x447)](),this[_0xf8359a(0x274)][_0xf8359a(0x244)]([]),this['_roomMembers$']['complete']();}[_0x2e5b1c(0x124)](){const _0x4f06b5=_0x2e5b1c;this[_0x4f06b5(0x42f)]||(this[_0x4f06b5(0x42f)]=!0x0,this[_0x4f06b5(0x233)][_0x4f06b5(0x34d)][_0x4f06b5(0x195)](_0x2123e0(this['dispose$']))[_0x4f06b5(0x3c4)](_0x10a987=>{const _0x16d182=_0x4f06b5;_0x10a987===W[_0x16d182(0x13f)]?this[_0x16d182(0x369)]():this[_0x16d182(0x3ce)]();}),this[_0x4f06b5(0x233)][_0x4f06b5(0x372)][_0x4f06b5(0x195)](_0x2123e0(this[_0x4f06b5(0x3be)]))[_0x4f06b5(0x3c4)](_0x4cef5b=>{const _0x49d75d=_0x4f06b5,_0x5cf742=_0x4cef5b[_0x49d75d(0x2f6)];_0x5cf742===_0x410792[_0x49d75d(0x227)]&&this['_onCursorUpdate'](_0x4cef5b),_0x5cf742===_0x410792[_0x49d75d(0x306)]&&this[_0x49d75d(0x3a3)](_0x4cef5b);}),this[_0x4f06b5(0x42b)](),this[_0x4f06b5(0x294)](this[_0x4f06b5(0x1bd)]['onCommandExecuted'](_0xd18e0a=>{const _0x5513aa=_0x4f06b5;if(this['_online']&&_0xd18e0a['id']===_0x2498cc['id']&&_0xd18e0a['params'][_0x5513aa(0x275)]===this[_0x5513aa(0x3a4)]){const _0x507576=_0xd18e0a[_0x5513aa(0x27b)];this[_0x5513aa(0x32c)](_0x507576[_0x5513aa(0x3f7)],_0x507576[_0x5513aa(0x230)][0x0]);}})));}[_0x2e5b1c(0x352)](_0x2482bf){const _0x24c869=_0x2e5b1c;var _0x35ba05,_0x2d4ee7;const {memberID:_0x1bff8c,selection:_0x366964}=_0x2482bf[_0x24c869(0x249)],{sheetName:_0x4b2b72,range:_0x1d7fb8}=_0x5b5841(_0x366964),_0x45a9f4={'name':(_0x2d4ee7=(_0x35ba05=this[_0x24c869(0x2a9)][_0x24c869(0x23f)](this[_0x24c869(0x3a4)],_0x1bff8c))==null?void 0x0:_0x35ba05[_0x24c869(0x397)])!=null?_0x2d4ee7:_0x24c869(0x414),'range':this[_0x24c869(0x3c3)](_0x4b2b72,_0x1d7fb8),'sheetID':_0x4b2b72,'color':this[_0x24c869(0x341)][_0x24c869(0x26c)](_0x1bff8c),'selection':_0x366964},_0x5d3eeb=this[_0x24c869(0x1ab)];_0x5d3eeb[_0x24c869(0x1e1)](_0x1bff8c,_0x45a9f4),this[_0x24c869(0x2f3)]['next'](_0x5d3eeb);}[_0x2e5b1c(0x3a3)](_0x31ee6b){const _0x991657=_0x2e5b1c,{memberID:_0x4a9cdd}=_0x31ee6b[_0x991657(0x249)],_0x24d841=this[_0x991657(0x1ab)];_0x24d841[_0x991657(0x18d)](_0x4a9cdd),this[_0x991657(0x2f3)][_0x991657(0x244)](_0x24d841);}[_0x2e5b1c(0x3c3)](_0x452953,_0x1542a7){const _0x399d4d=_0x2e5b1c;var _0x4d4783,_0x25306a;const _0x3685c1=(_0x25306a=(_0x4d4783=this[_0x399d4d(0x1ae)][_0x399d4d(0x1be)](this[_0x399d4d(0x3a4)]))==null?void 0x0:_0x4d4783[_0x399d4d(0x378)](_0x452953))==null?void 0x0:_0x25306a[_0x399d4d(0x284)]();return(_0x3685c1==null?void 0x0:_0x3685c1[_0x399d4d(0x2c5)](_0x4aed97=>_0x183c22[_0x399d4d(0x351)](_0x4aed97,_0x1542a7)))||_0x1542a7;}[_0x2e5b1c(0x42b)](){const _0x3426b1=_0x2e5b1c,_0x25f72b=new _0x3bb8a8(),_0x26bdc2=Tr(),_0x4101dc=()=>{const _0xf29ba8=_0x5851;_0x25f72b[_0xf29ba8(0x2fe)]();const _0x2385cb=(_0x3b9470,_0x41b3c5,_0x39d407,_0x1c6589)=>{const _0x2ef445=_0xf29ba8;let _0x48b5c0=[];switch(_0x3b9470['id']){case _0xa2b790[_0x2ef445(0x3f6)]:{_0x48b5c0=_0x3c8f35(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x413)]:{_0x48b5c0=_0x552ee5(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x2a2)]:{_0x48b5c0=_0x34e016(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x172)]:{_0x48b5c0=_0x4827cd(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x15d)]:{_0x48b5c0=_0x1731a1(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x342)]:{_0x48b5c0=_0x375cdc(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x39c)]:{_0x48b5c0=_0x2f5847(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x21b)]:{_0x48b5c0=_0x824d6d(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x25b)]:{_0x48b5c0=_0x2f61ec(_0x3b9470,_0x1c6589);break;}}const _0xd96975=_0x15b7fb(_0x48b5c0,_0x1c6589),_0xf185c6=this[_0x2ef445(0x1ab)][_0x2ef445(0x18f)](_0x41b3c5);if(_0xf185c6&&_0xd96975){const _0x395c45={..._0xf185c6,'range':_0xd96975};this[_0x2ef445(0x1ab)][_0x2ef445(0x1e1)](_0x41b3c5,_0x395c45),_0x26bdc2(()=>{const _0x3737dd=_0x2ef445,_0x15ae08=this[_0x3737dd(0x1c6)][_0x3737dd(0x400)](_0xd96975,_0x65c3=>(_0x15ae08[_0x3737dd(0x2fe)](),_0x2385cb(_0x65c3,_0x41b3c5,_0x39d407,_0xd96975)));_0x25f72b[_0x3737dd(0x47b)](_0x15ae08);});}return{'redos':[],'undos':[]};};this[_0xf29ba8(0x1ab)][_0xf29ba8(0x1cd)]((_0x7bdbc8,_0x5a07cc)=>{const _0x55c58d=_0xf29ba8,{range:_0x141034,sheetID:_0x1b7139}=_0x7bdbc8,_0x3c7bc9=this[_0x55c58d(0x1c6)][_0x55c58d(0x400)](_0x141034,_0x1696c7=>(_0x3c7bc9[_0x55c58d(0x2fe)](),_0x2385cb(_0x1696c7,_0x5a07cc,_0x1b7139,_0x141034)));_0x25f72b[_0x55c58d(0x47b)](_0x3c7bc9);});};this[_0x3426b1(0x294)](_0x29a7b(this[_0x3426b1(0x2f3)][_0x3426b1(0x3c4)](()=>{_0x4101dc();})));}[_0x2e5b1c(0x369)](){const _0x463621=_0x2e5b1c;var _0x425260,_0x1c0916;if(this[_0x463621(0x462)]=!0x0,((_0x425260=this[_0x463621(0x1ae)][_0x463621(0x1e7)]())==null?void 0x0:_0x425260['getUnitId']())!==this[_0x463621(0x3a4)])return;const _0x3021ec=(_0x1c0916=this[_0x463621(0x3ac)][_0x463621(0x18f)](_0x85923d)[_0x463621(0x460)]())==null?void 0x0:_0x1c0916[0x0],_0x169ed8=this[_0x463621(0x1ae)][_0x463621(0x224)](_0x3bf0d9['UNIVER_SHEET'])[_0x463621(0x29a)]();_0x3021ec&&_0x169ed8&&this[_0x463621(0x32c)](_0x169ed8[_0x463621(0x3b5)](),_0x3021ec);}['_toggleOffline'](){this['_online']=!0x1;}};Ot=Er([de(0x2,_0x5c7fae(_0x5d259e)),de(0x3,_0x5c7fae(Ft)),de(0x4,_0x5c7fae(oe)),de(0x5,_0x30b2f2),de(0x6,_0x36a317),de(0x7,_0x5c7fae(_0x504358))],Ot);var Rr=Object[_0x2e5b1c(0x2de)],Or=Object[_0x2e5b1c(0x41c)],Dr=(_0x5051c5,_0x407f80,_0x200c16,_0x19bed2)=>{const _0x548723=_0x2e5b1c;for(var _0x5a7794=_0x19bed2>0x1?void 0x0:_0x19bed2?Or(_0x407f80,_0x200c16):_0x407f80,_0x98fa8e=_0x5051c5[_0x548723(0x1bb)]-0x1,_0x4cbc3e;_0x98fa8e>=0x0;_0x98fa8e--)(_0x4cbc3e=_0x5051c5[_0x98fa8e])&&(_0x5a7794=(_0x19bed2?_0x4cbc3e(_0x407f80,_0x200c16,_0x5a7794):_0x4cbc3e(_0x5a7794))||_0x5a7794);return _0x19bed2&&_0x5a7794&&Rr(_0x407f80,_0x200c16,_0x5a7794),_0x5a7794;},se=(_0x3738f6,_0x172c88)=>(_0x29a834,_0x6f65ab)=>_0x172c88(_0x29a834,_0x6f65ab,_0x3738f6);const wr=0x12c,Pr=0x64;let Dt=class extends _0x4bff65{constructor(_0x1dd0b3,_0x3384fe,_0x482c97,_0x19e773,_0x1f7611,_0x240638,_0x1d0700,_0x41b366,_0x525b2c){const _0x4236e6=_0x2e5b1c;super(),l(this,_0x4236e6(0x462),!0x1),l(this,_0x4236e6(0x42f),!0x1),l(this,_0x4236e6(0x2f3),new _0x16e81a(new Map())),l(this,_0x4236e6(0x393),this[_0x4236e6(0x2f3)][_0x4236e6(0x2f8)]()),l(this,_0x4236e6(0x274),new _0x16e81a([])),l(this,_0x4236e6(0x39d),this['_roomMembers$'][_0x4236e6(0x195)](_0x116e1b(wr))),l(this,_0x4236e6(0x32c),_0x415879(_0x298044=>{const _0x3c77b3=_0x4236e6,_0x2cd269={'eventID':_0x410792['UPDATE_CURSOR'],'data':{'unitID':this[_0x3c77b3(0x3a4)],'memberID':this[_0x3c77b3(0x233)][_0x3c77b3(0x146)](),'selection':js(_0x298044)}};this[_0x3c77b3(0x233)][_0x3c77b3(0x1ef)](_0x2cd269,this['unitID']);},Pr)),(this[_0x4236e6(0x3a4)]=_0x1dd0b3,this[_0x4236e6(0x233)]=_0x3384fe,this[_0x4236e6(0x3ac)]=_0x482c97,this[_0x4236e6(0x341)]=_0x19e773,this[_0x4236e6(0x2a9)]=_0x1f7611,this['_syncEditingCollabCursorService']=_0x240638,this[_0x4236e6(0x3cf)]=_0x1d0700,this[_0x4236e6(0x1ae)]=_0x41b366,this[_0x4236e6(0x1bd)]=_0x525b2c);}get[_0x2e5b1c(0x1ab)](){const _0x3f3298=_0x2e5b1c;return this[_0x3f3298(0x2f3)][_0x3f3298(0x131)]();}get[_0x2e5b1c(0x223)](){return this['_roomMembers$']['getValue']();}[_0x2e5b1c(0x2fe)](){const _0x290a16=_0x2e5b1c;super['dispose'](),this[_0x290a16(0x2f3)][_0x290a16(0x244)](new Map()),this[_0x290a16(0x2f3)][_0x290a16(0x447)](),this['_roomMembers$'][_0x290a16(0x244)]([]),this[_0x290a16(0x274)][_0x290a16(0x447)]();}[_0x2e5b1c(0x124)](){const _0x903dcb=_0x2e5b1c;this[_0x903dcb(0x42f)]||(this[_0x903dcb(0x42f)]=!0x0,this[_0x903dcb(0x233)]['sessionStatus$'][_0x903dcb(0x195)](_0x2123e0(this['dispose$']))[_0x903dcb(0x3c4)](_0x19ff0c=>{const _0x57f077=_0x903dcb;_0x19ff0c===W[_0x57f077(0x13f)]?this['_toggleOnline']():this[_0x57f077(0x3ce)]();}),this['_session'][_0x903dcb(0x372)][_0x903dcb(0x195)](_0x2123e0(this[_0x903dcb(0x3be)]))[_0x903dcb(0x3c4)](_0x1d3805=>{const _0x2bc5d4=_0x903dcb,_0x3c7ca5=_0x1d3805[_0x2bc5d4(0x2f6)];_0x3c7ca5===_0x410792['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x1d3805),_0x3c7ca5===_0x410792[_0x2bc5d4(0x306)]&&this[_0x2bc5d4(0x3a3)](_0x1d3805);}),this[_0x903dcb(0x294)](this['_commandService'][_0x903dcb(0x20e)](_0xf2419a=>{const _0xd2bf1c=_0x903dcb,_0x12854c=_0xf2419a[_0xd2bf1c(0x27b)];_0x12854c!=null&&this['_online']&&_0xf2419a['id']===_0x26b3ce['id']&&_0x12854c[_0xd2bf1c(0x275)]===this['unitID']&&_0x12854c[_0xd2bf1c(0x1a0)]===!0x1&&this['_updateLocalCursor'](_0x12854c[_0xd2bf1c(0x23a)]);})),this['_syncEditingCollabCursorService'][_0x903dcb(0x39e)][_0x903dcb(0x195)](_0x2123e0(this[_0x903dcb(0x3be)]))[_0x903dcb(0x3c4)](_0x3fe8d5=>{const _0x4803e0=_0x903dcb;if((_0x3fe8d5==null?void 0x0:_0x3fe8d5[_0x4803e0(0x3a4)])!==this[_0x4803e0(0x3a4)])return;const _0x494e67={'eventID':_0x410792['UPDATE_CURSOR'],'data':_0x3fe8d5};this[_0x4803e0(0x352)](_0x494e67);}),this[_0x903dcb(0x294)](this[_0x903dcb(0x1bd)]['onCommandExecuted'](_0x4c68f5=>{const _0x4f1002=_0x903dcb;if(_0x4c68f5[_0x4f1002(0x27b)]==null)return;const _0x2e396d=_0x4c68f5['params'];if(_0x4c68f5['id']!==_0xa592b4['id']||_0x2e396d['unitId']!==this[_0x4f1002(0x3a4)])return;const _0x374042={'id':'doc.mutation.rich-text-editing','params':_0x2e396d},_0x2bb89f=this[_0x4f1002(0x1ab)];for(const [_0x554c20,_0x180929]of _0x2bb89f){const _0x5f446c={'id':_0x4f1002(0x3ad),'params':{'unitId':this[_0x4f1002(0x3a4)],'actions':null,'textRanges':_0x180929[_0x4f1002(0x23a)]}},_0x4ced74=this[_0x4f1002(0x3cf)][_0x4f1002(0x2d7)](_0x374042,_0x5f446c,!0x1);if(_0x517f04(_0x4ced74))throw _0x4ced74[_0x4f1002(0x30b)];_0x2bb89f[_0x4f1002(0x1e1)](_0x554c20,{..._0x180929,'ranges':_0x4ced74[_0x4f1002(0x366)]['params'][_0x4f1002(0x43f)]});}queueMicrotask(()=>{const _0x324978=_0x4f1002;this['_cursorInfo$'][_0x324978(0x244)](_0x2bb89f);});})));}[_0x2e5b1c(0x352)](_0x4a2c0f){const _0x2e2485=_0x2e5b1c;var _0x3e199e,_0x4959f9;const {memberID:_0x170cd4,selection:_0x533694}=_0x4a2c0f[_0x2e2485(0x249)],_0x2fb242=rr(_0x533694),_0x4c333b=(_0x4959f9=(_0x3e199e=this[_0x2e2485(0x2a9)][_0x2e2485(0x23f)](this[_0x2e2485(0x3a4)],_0x170cd4))==null?void 0x0:_0x3e199e[_0x2e2485(0x397)])!=null?_0x4959f9:_0x2e2485(0x414),_0x508d54={'color':this['_colorAssignService'][_0x2e2485(0x26c)](_0x170cd4),'name':_0x4c333b,'ranges':_0x2fb242},_0xae7a74=this[_0x2e2485(0x1ab)];_0xae7a74['set'](_0x170cd4,_0x508d54),this['_cursorInfo$'][_0x2e2485(0x244)](_0xae7a74);}['_onCursorDelete'](_0xfe9d7d){const _0x36e654=_0x2e5b1c,{memberID:_0x3ffad3}=_0xfe9d7d[_0x36e654(0x249)],_0x413deb=this[_0x36e654(0x1ab)];_0x413deb[_0x36e654(0x18d)](_0x3ffad3),this[_0x36e654(0x2f3)][_0x36e654(0x244)](_0x413deb);}['_toggleOnline'](){const _0x4fd799=_0x2e5b1c;var _0x482e22;if(this[_0x4fd799(0x462)]=!0x0,((_0x482e22=this[_0x4fd799(0x1ae)]['getFocusedUnit']())==null?void 0x0:_0x482e22[_0x4fd799(0x426)]())!==this[_0x4fd799(0x3a4)])return;const _0x331a34=this['_injector'][_0x4fd799(0x18f)](_0x1dbfad)[_0x4fd799(0x16f)]();Array[_0x4fd799(0x434)](_0x331a34)&&_0x331a34[_0x4fd799(0x1bb)]>0x0&&this[_0x4fd799(0x32c)](_0x331a34);}[_0x2e5b1c(0x3ce)](){const _0x59e89a=_0x2e5b1c;this[_0x59e89a(0x462)]=!0x1;}};Dt=Dr([se(0x2,_0x5c7fae(_0x5d259e)),se(0x3,_0x5c7fae(Ft)),se(0x4,_0x5c7fae(oe)),se(0x5,_0x5c7fae(Bt)),se(0x6,_0x4e0f96),se(0x7,_0x30b2f2),se(0x8,_0x36a317)],Dt);var Nr=Object[_0x2e5b1c(0x2de)],yr=Object['getOwnPropertyDescriptor'],Mr=(_0x815867,_0x3c0ed7,_0x10f3fe,_0x1002f9)=>{const _0x411bb1=_0x2e5b1c;for(var _0x184f96=_0x1002f9>0x1?void 0x0:_0x1002f9?yr(_0x3c0ed7,_0x10f3fe):_0x3c0ed7,_0x329ff8=_0x815867[_0x411bb1(0x1bb)]-0x1,_0x4d2cf9;_0x329ff8>=0x0;_0x329ff8--)(_0x4d2cf9=_0x815867[_0x329ff8])&&(_0x184f96=(_0x1002f9?_0x4d2cf9(_0x3c0ed7,_0x10f3fe,_0x184f96):_0x4d2cf9(_0x184f96))||_0x184f96);return _0x1002f9&&_0x184f96&&Nr(_0x3c0ed7,_0x10f3fe,_0x184f96),_0x184f96;},ut=(_0x50482e,_0x1b3394)=>(_0x3829ce,_0x546e0e)=>_0x1b3394(_0x3829ce,_0x546e0e,_0x50482e);let fe=class extends _0x4bff65{constructor(_0x2cbb82,_0x2c34b6,_0x3aec76){const _0x1ea069=_0x2e5b1c;super(),l(this,_0x1ea069(0x36c),new Map()),l(this,_0x1ea069(0x394),new _0x47a81b()),(this[_0x1ea069(0x1ae)]=_0x2cbb82,this['_injector']=_0x2c34b6,this[_0x1ea069(0x3f1)]=_0x3aec76,this[_0x1ea069(0x42f)]());}[_0x2e5b1c(0x2fe)](){const _0x1c36ce=_0x2e5b1c;super[_0x1c36ce(0x2fe)](),this['_entityInit$'][_0x1c36ce(0x447)](),this[_0x1c36ce(0x36c)][_0x1c36ce(0x1cd)](_0x135ddf=>_0x135ddf[_0x1c36ce(0x2fe)]());}[_0x2e5b1c(0x16c)](_0x52b97f){const _0x430161=_0x2e5b1c;return this[_0x430161(0x36c)][_0x430161(0x250)](_0x52b97f)?this[_0x430161(0x36c)][_0x430161(0x18f)](_0x52b97f)['cursorInfo$']:this[_0x430161(0x394)][_0x430161(0x195)](_0x41cfb4(_0x5d0d29=>_0x5d0d29[_0x430161(0x3a4)]===_0x52b97f),_0x498d15(_0xee628f=>_0xee628f[_0x430161(0x393)]));}[_0x2e5b1c(0x42f)](){const _0x42f40d=_0x2e5b1c;this['_univerInstanceService'][_0x42f40d(0x1a4)](_0x3bf0d9[_0x42f40d(0x2c7)])[_0x42f40d(0x195)](_0x2123e0(this[_0x42f40d(0x3be)]))[_0x42f40d(0x3c4)](async _0x124897=>{const _0x32543e=_0x42f40d,_0x4ea236=_0x124897[_0x32543e(0x426)](),_0x5661de=await this[_0x32543e(0x3da)](_0x4ea236);this[_0x32543e(0x394)]['next'](_0x5661de),this[_0x32543e(0x36c)][_0x32543e(0x1e1)](_0x4ea236,_0x5661de);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x3bf0d9['UNIVER_DOC'])[_0x42f40d(0x195)](_0x2123e0(this[_0x42f40d(0x3be)]))[_0x42f40d(0x195)](_0x41cfb4(_0x2ddab1=>!_0x2ddab1[_0x42f40d(0x426)]()[_0x42f40d(0x1e5)]('__')))['subscribe'](async _0xf4ff59=>{const _0x22404d=_0x42f40d,_0x540144=_0xf4ff59[_0x22404d(0x426)](),_0x2aa7c2=await this[_0x22404d(0x147)](_0x540144);this[_0x22404d(0x394)][_0x22404d(0x244)](_0x2aa7c2),this['_entities'][_0x22404d(0x1e1)](_0x540144,_0x2aa7c2);}),_0x9334d7(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x3bf0d9[_0x42f40d(0x1de)]),this[_0x42f40d(0x1ae)][_0x42f40d(0x46a)](_0x3bf0d9[_0x42f40d(0x2c7)]))[_0x42f40d(0x195)](_0x2123e0(this[_0x42f40d(0x3be)]))[_0x42f40d(0x3c4)](_0x55eaee=>{const _0x26e699=_0x42f40d,_0x436524=_0x55eaee[_0x26e699(0x426)](),_0x3f9e75=this[_0x26e699(0x36c)][_0x26e699(0x18f)](_0x436524);_0x3f9e75&&(_0x3f9e75['dispose'](),this[_0x26e699(0x36c)][_0x26e699(0x18d)](_0x436524));});}async[_0x2e5b1c(0x3da)](_0x196fa5){const _0x49c98a=_0x2e5b1c,_0x268397=await this[_0x49c98a(0x3f1)][_0x49c98a(0x205)](_0x196fa5),_0x56f2e5=this[_0x49c98a(0x3ac)][_0x49c98a(0x254)](Ot,_0x196fa5,_0x268397);return _0x56f2e5[_0x49c98a(0x124)](),_0x56f2e5;}async[_0x2e5b1c(0x147)](_0x1bced7){const _0x2546ec=_0x2e5b1c,_0x212932=await this[_0x2546ec(0x3f1)][_0x2546ec(0x205)](_0x1bced7),_0x51696f=this[_0x2546ec(0x3ac)]['createInstance'](Dt,_0x1bced7,_0x212932);return _0x51696f[_0x2546ec(0x124)](),_0x51696f;}};fe=Mr([_0x486866(_0x446a6f[_0x2e5b1c(0x488)],fe),ut(0x0,_0x30b2f2),ut(0x1,_0x5c7fae(_0x5d259e)),ut(0x2,_0x5c7fae(ae))],fe);const Ue=0x14,_s=0xc8,dt=0x4,Ar=0x5;function Ur(_0x23174f,_0xe29359){const _0x423996=_0x2e5b1c;let {radius:_0x421f6a,width:_0x481777,height:_0x2b89bd}=_0xe29359;_0x421f6a=_0x421f6a!=null?_0x421f6a:0x0,_0x481777=_0x481777!=null?_0x481777:0x1e,_0x2b89bd=_0x2b89bd!=null?_0x2b89bd:0x1e;let _0x2911b0=0x0,_0x16804e=0x0,_0x107a8e=0x0;_0x2911b0=_0x16804e=_0x107a8e=Math[_0x423996(0x3a9)](_0x421f6a,_0x481777/0x2,_0x2b89bd/0x2),_0x23174f[_0x423996(0x1f9)](),_0x23174f[_0x423996(0x2e8)](_0x2911b0,0x0),_0x23174f[_0x423996(0x1df)](_0x481777-_0x16804e,0x0),_0x23174f[_0x423996(0x260)](_0x481777-_0x16804e,_0x16804e,_0x16804e,Math['PI']*0x3/0x2,0x0,!0x1),_0x23174f[_0x423996(0x1df)](_0x481777,_0x2b89bd-_0x107a8e),_0x23174f['arc'](_0x481777-_0x107a8e,_0x2b89bd-_0x107a8e,_0x107a8e,0x0,Math['PI']/0x2,!0x1),_0x23174f[_0x423996(0x1df)](0x0,_0x2b89bd),_0x23174f[_0x423996(0x1df)](0x0,_0x2911b0),_0x23174f[_0x423996(0x260)](_0x2911b0,_0x2911b0,_0x2911b0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x23174f['closePath'](),_0xe29359[_0x423996(0x344)]&&(_0x23174f[_0x423996(0x302)](),_0x23174f[_0x423996(0x28c)]=_0xe29359[_0x423996(0x344)],_0xe29359['fillRule']==='evenodd'?_0x23174f['fill'](_0x423996(0x1e9)):_0x23174f[_0x423996(0x344)](),_0x23174f['restore']());}class nt extends _0x214e6b{constructor(_0x3f5644,_0x220de0){const _0x1f79ad=_0x2e5b1c;super(_0x3f5644,_0x220de0),l(this,'color'),l(this,'text'),(this['color']=_0x220de0==null?void 0x0:_0x220de0[_0x1f79ad(0x46e)],this[_0x1f79ad(0x134)]=_0x220de0==null?void 0x0:_0x220de0[_0x1f79ad(0x134)]);}static[_0x2e5b1c(0x404)](_0x1e7cff,_0x4c0dfb){const _0x4f1957=_0x2e5b1c,{text:_0x3e5d6d,color:_0x3ca15a}=_0x4c0dfb;_0x1e7cff[_0x4f1957(0x302)](),_0x1e7cff[_0x4f1957(0x3f4)]=_0x4f1957(0x15f);const _0x25cbec=_0x1e7cff[_0x4f1957(0x44f)](_0x3e5d6d)['width'],_0xb575ed=Math[_0x4f1957(0x3a9)](_0x25cbec+0x2*dt,_s);Ur(_0x1e7cff,{'height':Ue,'radius':0x4,'width':_0xb575ed,'fill':_0x3ca15a,'evented':!0x1}),_0x1e7cff['fillStyle']='#FFF';const _0x737ea6=dt,_0x5c80bb=Ue-Ar,_0x1ea163=_s-0x2*dt;if(_0x25cbec>_0x1ea163){let _0x665e6='',_0x4e453e=0x0;for(const _0x22d19d of _0x3e5d6d){const _0xea03f3=_0x1e7cff[_0x4f1957(0x44f)](_0x22d19d)['width'];if(_0x4e453e+_0xea03f3<=_0x1ea163-_0x1e7cff[_0x4f1957(0x44f)]('...')[_0x4f1957(0x45e)])_0x665e6+=_0x22d19d,_0x4e453e+=_0xea03f3;else{_0x665e6+=_0x4f1957(0x3db);break;}}_0x1e7cff[_0x4f1957(0x374)](_0x665e6,_0x737ea6,_0x5c80bb);}else _0x1e7cff['fillText'](_0x3e5d6d,_0x737ea6,_0x5c80bb);_0x1e7cff[_0x4f1957(0x316)]();}[_0x2e5b1c(0x2dd)](_0x42fcef){const _0x4c8ef9=_0x2e5b1c;nt[_0x4c8ef9(0x404)](_0x42fcef,this);}}const Lr=0x1,$r=1.5;class jr extends _0x214e6b{constructor(_0x3acc60,_0x22ed86){const _0x56f4b9=_0x2e5b1c;super(_0x3acc60,_0x22ed86),l(this,_0x56f4b9(0x1a2)),l(this,_0x56f4b9(0x412),!0x1),l(this,'_range'),l(this,_0x56f4b9(0x439),''),l(this,'_labelPosition','top'),l(this,_0x56f4b9(0x47d)),(_0x22ed86&&this[_0x56f4b9(0x42c)](_0x22ed86),this['onPointerEnter$'][_0x56f4b9(0x3cb)](()=>this[_0x56f4b9(0x42c)]({'hovered':!0x0})),this[_0x56f4b9(0x3d3)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2e5b1c(0x42c)](_0x14968b){const _0x31090b=_0x2e5b1c;var _0x4075b6,_0x5db14f,_0x4ba6ed,_0x302c20,_0xf1ef64,_0x56e5c5;this['_color']=(_0x4075b6=_0x14968b[_0x31090b(0x46e)])!=null?_0x4075b6:this['_color'],this['_hovered']=(_0x5db14f=_0x14968b[_0x31090b(0x267)])!=null?_0x5db14f:this[_0x31090b(0x412)],this[_0x31090b(0x398)]=(_0x4ba6ed=_0x14968b['range'])!=null?_0x4ba6ed:this[_0x31090b(0x398)],this[_0x31090b(0x439)]=(_0x302c20=_0x14968b[_0x31090b(0x397)])!=null?_0x302c20:this[_0x31090b(0x439)],this['_labelPosition']=(_0xf1ef64=_0x14968b[_0x31090b(0x3d0)])!=null?_0xf1ef64:this['_labelPosition'],this[_0x31090b(0x47d)]=(_0x56e5c5=_0x14968b['backgroundColor'])!=null?_0x56e5c5:this['_backgroundColor'],this[_0x31090b(0x12a)]({'width':_0x14968b[_0x31090b(0x45e)],'height':_0x14968b[_0x31090b(0x36e)]});}[_0x2e5b1c(0x20b)](_0x5d16f2){const _0x35cc92=_0x2e5b1c,{row:_0x584d81,column:_0x42c3a4}=_0x5d16f2;if(_0x584d81>=this[_0x35cc92(0x398)]['startRow']&&_0x584d81<=this[_0x35cc92(0x398)]['endRow']&&_0x42c3a4>=this[_0x35cc92(0x398)][_0x35cc92(0x24f)]&&_0x42c3a4<=this[_0x35cc92(0x398)][_0x35cc92(0x191)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x35cc92(0x42c)]({'hovered':!0x1});}[_0x2e5b1c(0x406)](_0x8bc810){return!0x1;}[_0x2e5b1c(0x2dd)](_0x28ab2c){const _0x2e2bd0=_0x2e5b1c;_0x170a21[_0x2e2bd0(0x404)](_0x28ab2c,{'width':this[_0x2e2bd0(0x45e)],'height':this[_0x2e2bd0(0x36e)],'strokeWidth':$r,'stroke':this[_0x2e2bd0(0x1a2)],'evented':!0x1,'fill':this[_0x2e2bd0(0x47d)]}),this[_0x2e2bd0(0x412)]&&(_0x28ab2c['save'](),_0x28ab2c[_0x2e2bd0(0x3fb)](0x1,0x0,0x0,0x1,this[_0x2e2bd0(0x45e)],this['_labelPosition']===_0x2e2bd0(0x31f)?0x0:-Ue),nt[_0x2e2bd0(0x404)](_0x28ab2c,{'text':this['_name'],'color':this[_0x2e2bd0(0x1a2)]}),_0x28ab2c[_0x2e2bd0(0x316)]());}}var xr=Object[_0x2e5b1c(0x2de)],Hr=Object[_0x2e5b1c(0x41c)],kr=(_0x4fd8e6,_0x563375,_0x16ab54,_0x223b14)=>{const _0x2b2a02=_0x2e5b1c;for(var _0x2131ce=_0x223b14>0x1?void 0x0:_0x223b14?Hr(_0x563375,_0x16ab54):_0x563375,_0x145b81=_0x4fd8e6[_0x2b2a02(0x1bb)]-0x1,_0x117165;_0x145b81>=0x0;_0x145b81--)(_0x117165=_0x4fd8e6[_0x145b81])&&(_0x2131ce=(_0x223b14?_0x117165(_0x563375,_0x16ab54,_0x2131ce):_0x117165(_0x2131ce))||_0x2131ce);return _0x223b14&&_0x2131ce&&xr(_0x563375,_0x16ab54,_0x2131ce),_0x2131ce;},mt=(_0x1c6f61,_0x62489e)=>(_0x46d747,_0x45e2c0)=>_0x62489e(_0x46d747,_0x45e2c0,_0x1c6f61);const Br=0x1389;let wt=class extends _0x4bff65{constructor(_0x23428a,_0x319033,_0x241f03,_0x1caf4a){const _0x3b7eea=_0x2e5b1c;super(),l(this,'_cursors',new Set()),l(this,_0x3b7eea(0x327),null),(this[_0x3b7eea(0x1c4)]=_0x23428a,this[_0x3b7eea(0x271)]=_0x319033,this[_0x3b7eea(0x44b)]=_0x241f03,this[_0x3b7eea(0x382)]=_0x1caf4a,this['_init']());}[_0x2e5b1c(0x42f)](){const _0x2f7ea1=_0x2e5b1c;this[_0x2f7ea1(0x271)][_0x2f7ea1(0x182)][_0x2f7ea1(0x195)](_0x429e28(this[_0x2f7ea1(0x3be)]),_0x3c8cfc(_0x579921=>{const _0x160999=_0x2f7ea1;if(_0x579921){const _0x41a88d=_0x579921['sheetId'];return _0x1ee3b6(this[_0x160999(0x44b)]['getCollabCursors$'](this[_0x160999(0x1c4)][_0x160999(0x275)]),this[_0x160999(0x382)][_0x160999(0x221)])['pipe'](_0x4b551a(([_0x3daf82,_0x37fc93])=>{const _0x2360b3=_0x160999,_0xa50af5=new Map();return _0x3daf82[_0x2360b3(0x1cd)]((_0x47fb55,_0x3862ab)=>{const _0x22bb7c=_0x2360b3;if(_0x47fb55[_0x22bb7c(0x22e)]===_0x41a88d){const _0x36c626={..._0x47fb55};_0x36c626[_0x22bb7c(0x46e)]=_0x37fc93[_0x47fb55[_0x22bb7c(0x46e)]],_0xa50af5['set'](_0x3862ab,_0x36c626);}}),{'skeleton':_0x579921,'cursors':_0xa50af5};}));}return _0x8d55e({'skeleton':null,'cursors':new Map()});}))[_0x2f7ea1(0x3c4)](({skeleton:_0x251ed4,cursors:_0x4bf57e})=>{const _0x348929=_0x2f7ea1;this[_0x348929(0x2d2)](),_0x251ed4&&this[_0x348929(0x323)](_0x251ed4,_0x4bf57e);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x2f7ea1(0x3c4)](_0x36824b=>{const _0x4fe051=_0x2f7ea1;if(_0x36824b==null)return;const {skeleton:_0x3b79a7}=_0x36824b,{scene:_0x4ff672}=this[_0x4fe051(0x1c4)];_0x4ff672[_0x4fe051(0x1d9)][_0x4fe051(0x3cb)](_0x415879(_0x53e390=>{const _0x10e44d=_0x4fe051;var _0x1a02fe,_0x3171b9;const {offsetX:_0x24e268,offsetY:_0x3940ae}=_0x53e390,{x:_0x5a1269,y:_0x4dcd7d}=_0x4ff672[_0x10e44d(0x3fc)](_0x586911[_0x10e44d(0x1e8)]([_0x24e268,_0x3940ae])),{scaleX:_0x2e077f,scaleY:_0xcb6c8e}=_0x4ff672[_0x10e44d(0x322)](),_0x2544d1=_0x4ff672[_0x10e44d(0x449)](_0x398f9b[_0x10e44d(0x3ca)]),_0x486c06=_0x4ff672['getVpScrollXYInfoByPosToVp'](_0x586911[_0x10e44d(0x1e8)]([_0x5a1269,_0x4dcd7d]),_0x2544d1),_0x499c6a=_0x3b79a7[_0x10e44d(0x14b)](_0x24e268,_0x3940ae,_0x2e077f,_0xcb6c8e,_0x486c06);((_0x1a02fe=this[_0x10e44d(0x327)])==null?void 0x0:_0x1a02fe[_0x10e44d(0x3d5)])===_0x499c6a['column']&&((_0x3171b9=this['_lastPointer'])==null?void 0x0:_0x3171b9[_0x10e44d(0x297)])===_0x499c6a[_0x10e44d(0x297)]||this[_0x10e44d(0x45c)][_0x10e44d(0x1cd)](_0x2883d3=>{const _0xf43a9=_0x10e44d;_0x2883d3[_0xf43a9(0x20b)](_0x499c6a);});},0x64));});}[_0x2e5b1c(0x323)](_0x5b5b86,_0x1234b6){const _0x14675b=_0x2e5b1c;var _0x18cfb6;const _0x1d6afb=(_0x18cfb6=this[_0x14675b(0x271)][_0x14675b(0x196)]())==null?void 0x0:_0x18cfb6['skeleton'];if(!_0x1d6afb)return;const _0x2a83ca=this[_0x14675b(0x26a)]();if(!_0x2a83ca)return;this['_cursors'][_0x14675b(0x1cd)](_0x4850f1=>{const _0x59b42f=_0x14675b;_0x4850f1[_0x59b42f(0x3f3)]();});const {scene:_0x107a4f}=_0x2a83ca,_0x350472=Vr(Array[_0x14675b(0x1bf)](_0x1234b6[_0x14675b(0x2bb)]()))[_0x14675b(0x1c7)](_0x220823=>{const _0x135cd9=_0x14675b,{color:_0x4e1bc7,range:_0xb0d2d1,name:_0x2fb6f9,selection:_0xf3e170,sheetID:_0x2b5001}=_0x220823,{startColumn:_0x200222,startRow:_0x21b8a5,endColumn:_0x408f84,endRow:_0xb3b0ed}=_0xb0d2d1,_0x16e8aa=_0x341a0b(_0x21b8a5,_0x200222,_0x107a4f,_0x1d6afb),_0x50aa6e=_0x341a0b(_0xb3b0ed,_0x408f84,_0x107a4f,_0x1d6afb),{columnHeaderHeightAndMarginTop:_0x2b885b}=_0x1d6afb,{startX:_0x1af95a,startY:_0x50c0a8}=_0x16e8aa,{endX:_0x4b333f,endY:_0x4f88ee}=_0x50aa6e,_0x40d352=_0x4b333f-_0x1af95a,_0x5058be=_0x4f88ee-_0x50c0a8,_0x55fbea={'labelPosition':_0x50c0a8-_0x2b885b>=Ue?_0x135cd9(0x127):_0x135cd9(0x31f),'sheetID':_0x2b5001,'range':_0xb0d2d1,'color':_0x4e1bc7,'name':_0x2fb6f9,'selection':_0xf3e170,'left':_0x1af95a,'top':_0x50c0a8,'width':_0x40d352,'height':_0x5058be,'evented':!0x1,'zIndex':Br};return new jr(_0x2fb6f9,_0x55fbea);});_0x107a4f[_0x14675b(0x13b)](_0x350472,Lr),this[_0x14675b(0x45c)]=new Set(_0x350472);}[_0x2e5b1c(0x2d2)](){const _0x432787=_0x2e5b1c;var _0x38c461;(_0x38c461=this['_cursors'])==null||_0x38c461[_0x432787(0x1cd)](_0x2e38a3=>_0x2e38a3['dispose']());}[_0x2e5b1c(0x26a)](){const _0x25d3e7=_0x2e5b1c;return _0x40df2d(this[_0x25d3e7(0x1c4)]['unit'],this[_0x25d3e7(0x1c4)]);}};wt=kr([mt(0x1,_0x5c7fae(_0x5349fd)),mt(0x2,_0x5c7fae(fe)),mt(0x3,_0x5c7fae(_0x27c464))],wt);function Vr(_0xedbaef){const _0x1ef57c=_0x2e5b1c,_0x236d7c=new Map();return _0xedbaef[_0x1ef57c(0x1cd)](_0x27cacf=>{const _0x769a5=_0x1ef57c;if(_0x236d7c[_0x769a5(0x250)](_0x27cacf[_0x769a5(0x203)])){const _0x5f0ef9=_0x236d7c[_0x769a5(0x18f)](_0x27cacf[_0x769a5(0x203)]);_0x5f0ef9[_0x769a5(0x397)]+=',\x20'+_0x27cacf[_0x769a5(0x397)];}else _0x236d7c[_0x769a5(0x1e1)](_0x27cacf[_0x769a5(0x203)],_0x27cacf);}),Array[_0x1ef57c(0x1bf)](_0x236d7c[_0x1ef57c(0x2bb)]());}var y=function(){const _0x275077=_0x2e5b1c;return y=Object[_0x275077(0x190)]||function(_0x1c8100){const _0x89a6f9=_0x275077;for(var _0x4d4cc0,_0x468f29=0x1,_0x2a6f44=arguments[_0x89a6f9(0x1bb)];_0x468f29<_0x2a6f44;_0x468f29++){_0x4d4cc0=arguments[_0x468f29];for(var _0x1f7e8b in _0x4d4cc0)Object['prototype']['hasOwnProperty'][_0x89a6f9(0x13d)](_0x4d4cc0,_0x1f7e8b)&&(_0x1c8100[_0x1f7e8b]=_0x4d4cc0[_0x1f7e8b]);}return _0x1c8100;},y['apply'](this,arguments);},Fr=function(_0x4ad311,_0x39ddd3){const _0x49433a=_0x2e5b1c;var _0x1e1385={};for(var _0x186acc in _0x4ad311)Object[_0x49433a(0x3e6)][_0x49433a(0x1f6)][_0x49433a(0x13d)](_0x4ad311,_0x186acc)&&_0x39ddd3[_0x49433a(0x36d)](_0x186acc)<0x0&&(_0x1e1385[_0x186acc]=_0x4ad311[_0x186acc]);if(_0x4ad311!=null&&typeof Object['getOwnPropertySymbols']==_0x49433a(0x247)){for(var _0x11483f=0x0,_0x186acc=Object[_0x49433a(0x1cc)](_0x4ad311);_0x11483f<_0x186acc[_0x49433a(0x1bb)];_0x11483f++)_0x39ddd3[_0x49433a(0x36d)](_0x186acc[_0x11483f])<0x0&&Object[_0x49433a(0x3e6)][_0x49433a(0x33d)][_0x49433a(0x13d)](_0x4ad311,_0x186acc[_0x11483f])&&(_0x1e1385[_0x186acc[_0x11483f]]=_0x4ad311[_0x186acc[_0x11483f]]);}return _0x1e1385;},Wt=_0x5da15c(function(_0x8780af,_0x550f62){const _0x3ee4e6=_0x2e5b1c;var _0x49db11=_0x8780af['icon'],_0x1724e3=_0x8780af['id'],_0x841939=_0x8780af[_0x3ee4e6(0x3bc)],_0x2297bc=_0x8780af['extend'],_0x23a9dd=Fr(_0x8780af,[_0x3ee4e6(0x46b),'id',_0x3ee4e6(0x3bc),_0x3ee4e6(0x197)]),_0x225f07=_0x3ee4e6(0x2e5)[_0x3ee4e6(0x35e)](_0x1724e3,'\x20')[_0x3ee4e6(0x35e)](_0x841939||'')[_0x3ee4e6(0x27f)](),_0x36d04e=_0x4ab73c('_'['concat'](Yr()));return Hs(_0x49db11,''['concat'](_0x1724e3),{'defIds':_0x49db11[_0x3ee4e6(0x40a)],'idSuffix':_0x36d04e[_0x3ee4e6(0x422)]},y({'ref':_0x550f62,'className':_0x225f07},_0x23a9dd),_0x2297bc);});function Hs(_0x5e0797,_0x22c78b,_0x1a77a2,_0x4a35cb,_0x4b7374){const _0x53d554=_0x2e5b1c;return _0x3d6533(_0x5e0797[_0x53d554(0x33b)],y(y({'key':_0x22c78b},Wr(_0x5e0797,_0x1a77a2,_0x4b7374)),_0x4a35cb),(Gr(_0x5e0797,_0x1a77a2)[_0x53d554(0x1a5)]||[])[_0x53d554(0x1c7)](function(_0xb87fc6,_0xd6da34){const _0x48825e=_0x53d554;return Hs(_0xb87fc6,''[_0x48825e(0x35e)](_0x22c78b,'-')[_0x48825e(0x35e)](_0x5e0797[_0x48825e(0x33b)],'-')[_0x48825e(0x35e)](_0xd6da34),_0x1a77a2,void 0x0,_0x4b7374);}));}function Wr(_0x23d857,_0x55b7b2,_0x52a862){const _0x1f4ddb=_0x2e5b1c;var _0x188169=y({},_0x23d857[_0x1f4ddb(0x32f)]);_0x52a862!=null&&_0x52a862[_0x1f4ddb(0x45d)]&&_0x188169[_0x1f4ddb(0x344)]===_0x1f4ddb(0x45d)&&(_0x188169[_0x1f4ddb(0x344)]=_0x52a862['colorChannel1']);var _0x861b09=_0x55b7b2[_0x1f4ddb(0x40a)];return!_0x861b09||_0x861b09['length']===0x0||(_0x23d857[_0x1f4ddb(0x33b)]===_0x1f4ddb(0x3e8)&&_0x188169[_0x1f4ddb(0x20a)]&&(_0x188169[_0x1f4ddb(0x20a)]=_0x188169['xlink:href']+_0x55b7b2[_0x1f4ddb(0x2b1)]),Object['entries'](_0x188169)[_0x1f4ddb(0x1cd)](function(_0x5aaa8f){const _0x191caa=_0x1f4ddb;var _0x3de1b9=_0x5aaa8f[0x0],_0xff98fb=_0x5aaa8f[0x1];typeof _0xff98fb=='string'&&(_0x188169[_0x3de1b9]=_0xff98fb[_0x191caa(0x319)](/url\(#(.*)\)/,_0x191caa(0x229)['concat'](_0x55b7b2[_0x191caa(0x2b1)],')')));})),_0x188169;}function Gr(_0x3524c8,_0xc611cd){const _0x5b9c88=_0x2e5b1c;var _0x28ec8c,_0x44729c=_0xc611cd[_0x5b9c88(0x40a)];return!_0x44729c||_0x44729c['length']===0x0?_0x3524c8:_0x3524c8[_0x5b9c88(0x33b)]===_0x5b9c88(0x245)&&(!((_0x28ec8c=_0x3524c8['children'])===null||_0x28ec8c===void 0x0)&&_0x28ec8c[_0x5b9c88(0x1bb)])?y(y({},_0x3524c8),{'children':_0x3524c8[_0x5b9c88(0x1a5)]['map'](function(_0x3755c1){const _0xc29ffb=_0x5b9c88;return typeof _0x3755c1[_0xc29ffb(0x32f)]['id']==_0xc29ffb(0x239)&&_0x44729c&&_0x44729c[_0xc29ffb(0x36d)](_0x3755c1['attrs']['id'])>-0x1?y(y({},_0x3755c1),{'attrs':y(y({},_0x3755c1[_0xc29ffb(0x32f)]),{'id':_0x3755c1[_0xc29ffb(0x32f)]['id']+_0xc611cd[_0xc29ffb(0x2b1)]})}):_0x3755c1;})}):_0x3524c8;}function Yr(){const _0x4d452c=_0x2e5b1c;return Math[_0x4d452c(0x125)]()[_0x4d452c(0x19b)](0x24)[_0x4d452c(0x1db)](0x2,0x8);}Wt[_0x2e5b1c(0x1fc)]=_0x2e5b1c(0x1f8);var Kr={'tag':'svg','attrs':{'fill':'none','viewBox':_0x2e5b1c(0x2b5),'width':_0x2e5b1c(0x3b8),'height':_0x2e5b1c(0x3b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x2e5b1c(0x2ee)},'children':[{'tag':_0x2e5b1c(0x23b),'attrs':{'stroke':_0x2e5b1c(0x264),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x2e5b1c(0x19d),'strokeLinejoin':_0x2e5b1c(0x19d),'strokeWidth':1.2}}]},{'tag':_0x2e5b1c(0x245),'attrs':{},'children':[{'tag':_0x2e5b1c(0x34c),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x2e5b1c(0x324),'d':_0x2e5b1c(0x290)}}]}]}],'defIds':['off-line-single_clip0_910_343']},ks=_0x5da15c(function(_0x447d0b,_0x105374){const _0x499f96=_0x2e5b1c;return _0x3d6533(Wt,Object[_0x499f96(0x190)]({},_0x447d0b,{'id':_0x499f96(0x42d),'ref':_0x105374,'icon':Kr}));});ks['displayName']=_0x2e5b1c(0x479);var Xr={'tag':_0x2e5b1c(0x121),'attrs':{'fill':'none','viewBox':_0x2e5b1c(0x24a),'width':_0x2e5b1c(0x3b8),'height':_0x2e5b1c(0x3b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x2e5b1c(0x1a9)},'children':[{'tag':_0x2e5b1c(0x23b),'attrs':{'stroke':_0x2e5b1c(0x264),'d':_0x2e5b1c(0x1dc),'strokeLinecap':'round','strokeLinejoin':_0x2e5b1c(0x19d),'strokeWidth':1.2}}]},{'tag':_0x2e5b1c(0x245),'attrs':{},'children':[{'tag':_0x2e5b1c(0x34c),'attrs':{'id':_0x2e5b1c(0x46f)},'children':[{'tag':_0x2e5b1c(0x23b),'attrs':{'fill':_0x2e5b1c(0x324),'d':_0x2e5b1c(0x290),'transform':_0x2e5b1c(0x130)}}]}]}],'defIds':[_0x2e5b1c(0x46f)]},Bs=_0x5da15c(function(_0x125f75,_0x11d37c){const _0x443c56=_0x2e5b1c;return _0x3d6533(Wt,Object['assign']({},_0x125f75,{'id':_0x443c56(0x3f2),'ref':_0x11d37c,'icon':Xr}));});Bs['displayName']=_0x2e5b1c(0x30e);const Jr=_0x2e5b1c(0x39b),zr=_0x2e5b1c(0x167),qr=_0x2e5b1c(0x429),Zr=_0x2e5b1c(0x483),Qr=_0x2e5b1c(0x30a),Oe={'onlineStatusIcon':Jr,'onlineStatusTitle':zr,'onlineStatus':qr,'online':Zr,'offline':Qr};function eo(_0x2a92e6){const _0xb9c6e1=_0x2e5b1c;switch(_0x2a92e6){case w[_0xb9c6e1(0x1ac)]:return _0xb9c6e1(0x2e4);case w['CONFLICT']:return _0xb9c6e1(0x154);case w['FETCH_MISS']:return _0xb9c6e1(0x2ba);case w['NOT_COLLAB']:return'collabStatus.notCollab';case w['PENDING']:case w[_0xb9c6e1(0x3c8)]:case w[_0xb9c6e1(0x478)]:return'collabStatus.syncing';case w[_0xb9c6e1(0x421)]:return _0xb9c6e1(0x153);}}function to(_0x40178e){const _0x2c5680=_0x2e5b1c,{status$:_0x220ce6}=_0x40178e,_0x50b9d1=_0x3834a2(_0x220ce6,w[_0x2c5680(0x19a)]),_0x5a5266=_0x1cf47e(_0x12e5b3),_0x4109f4=_0x1cf47e(ae),_0x2965c1=_0x50b9d1!==w[_0x2c5680(0x1ac)],_0x27f770=_0x5a5266['t'](eo(_0x50b9d1)),_0x5bbc24=_0x6c5a82(Oe[_0x2c5680(0x23e)],{[Oe['online']]:_0x2965c1,[Oe[_0x2c5680(0x3e4)]]:!_0x2965c1}),_0x227cf1=_0x2965c1?_0x24bd02[_0x2c5680(0x138)](Bs,null):_0x24bd02[_0x2c5680(0x138)](ks,null),_0x316d8a=_0x23455d(()=>{const _0x4c4b3c=_0x2c5680;_0x2965c1||_0x4109f4[_0x4c4b3c(0x332)]();},[_0x2965c1,_0x4109f4]);function _0x5b8432(){const _0x5c919e=_0x2c5680;return _0x24bd02['createElement']('div',{'className':_0x5bbc24,'onClick':_0x316d8a},_0x24bd02[_0x5c919e(0x138)](_0x5c919e(0x246),{'className':Oe[_0x5c919e(0x1d6)]},_0x227cf1),_0x24bd02['createElement'](_0x5c919e(0x246),{'className':Oe['onlineStatusTitle']},_0x27f770));}return _0x2965c1?_0x5b8432():_0x24bd02['createElement'](_0x2b5af8,{'title':_0x5a5266['t'](_0x2c5680(0x3fd))},_0x5b8432());}var so=Object[_0x2e5b1c(0x2de)],io=Object[_0x2e5b1c(0x41c)],no=(_0x5091d5,_0x437f1e,_0x2ef506,_0x3f7112)=>{const _0x56d370=_0x2e5b1c;for(var _0x196152=_0x3f7112>0x1?void 0x0:_0x3f7112?io(_0x437f1e,_0x2ef506):_0x437f1e,_0x48b97a=_0x5091d5[_0x56d370(0x1bb)]-0x1,_0x48e514;_0x48b97a>=0x0;_0x48b97a--)(_0x48e514=_0x5091d5[_0x48b97a])&&(_0x196152=(_0x3f7112?_0x48e514(_0x437f1e,_0x2ef506,_0x196152):_0x48e514(_0x196152))||_0x196152);return _0x3f7112&&_0x196152&&so(_0x437f1e,_0x2ef506,_0x196152),_0x196152;},ke=(_0x2f2ae0,_0x59147b)=>(_0x3a10ea,_0x5b273d)=>_0x59147b(_0x3a10ea,_0x5b273d,_0x2f2ae0);let ye=class extends _0x36403b{constructor(_0x422063,_0x344e4c,_0x5c608f,_0xae07b5){const _0x3313dd=_0x2e5b1c;super(),l(this,'_status$',new _0x16e81a(w[_0x3313dd(0x19a)])),(this[_0x3313dd(0x1ae)]=_0x422063,this[_0x3313dd(0x303)]=_0x344e4c,this[_0x3313dd(0x3ac)]=_0x5c608f,this[_0x3313dd(0x3c5)]=_0xae07b5,this[_0x3313dd(0x318)](),this['_initStatusListener']());}[_0x2e5b1c(0x141)](){const _0x463575=_0x2e5b1c;this[_0x463575(0x294)](this[_0x463575(0x1ae)]['focused$'][_0x463575(0x195)](_0x498d15(()=>{const _0x15b378=_0x463575,_0x20c3c0=this[_0x15b378(0x1ae)]['getFocusedUnit']();return _0x20c3c0?this['_collaborationController']['getCollabEntity$'](_0x20c3c0[_0x15b378(0x426)]()):_0x8d55e(null);}),_0x498d15(_0xb0948d=>_0xb0948d?_0xb0948d[_0x463575(0x281)]:_0x8d55e(w[_0x463575(0x19a)])))['subscribe'](_0x1aa2b1=>{const _0x100c03=_0x463575;this[_0x100c03(0x279)][_0x100c03(0x244)](_0x1aa2b1);}));}[_0x2e5b1c(0x318)](){const _0x14849e=_0x2e5b1c;this['disposeWithMe'](this[_0x14849e(0x303)][_0x14849e(0x317)](_0x1504a5[_0x14849e(0x377)],()=>_0x5abdc(ro({'status$':this[_0x14849e(0x279)][_0x14849e(0x2f8)]()}),this[_0x14849e(0x3ac)])));}};ye=no([ke(0x0,_0x30b2f2),ke(0x1,_0xbc9637),ke(0x2,_0x5c7fae(_0x5d259e)),ke(0x3,_0x5c7fae(Ae))],ye);function ro(_0x58e1c0){const {status$:_0xa8eac4}=_0x58e1c0;return function(){return _0x24bd02['createElement'](to,{'status$':_0xa8eac4});};}const Vs=_0x5a3236(_0x2e5b1c(0x3ae));var oo=Object['defineProperty'],ao=Object[_0x2e5b1c(0x41c)],co=(_0x4eac98,_0x17d9d4,_0x577b08,_0x1cd73f)=>{const _0x184f90=_0x2e5b1c;for(var _0x3c7e04=_0x1cd73f>0x1?void 0x0:_0x1cd73f?ao(_0x17d9d4,_0x577b08):_0x17d9d4,_0x1e278e=_0x4eac98[_0x184f90(0x1bb)]-0x1,_0x2295b0;_0x1e278e>=0x0;_0x1e278e--)(_0x2295b0=_0x4eac98[_0x1e278e])&&(_0x3c7e04=(_0x1cd73f?_0x2295b0(_0x17d9d4,_0x577b08,_0x3c7e04):_0x2295b0(_0x3c7e04))||_0x3c7e04);return _0x1cd73f&&_0x3c7e04&&oo(_0x17d9d4,_0x577b08,_0x3c7e04),_0x3c7e04;},me=(_0x5bf698,_0x1652af)=>(_0x1758e5,_0x180836)=>_0x1652af(_0x1758e5,_0x180836,_0x5bf698);let We=class extends _0x4bff65{constructor(_0x3945bb,_0x43675f,_0x5a3338,_0x22a5fb,_0x5b9562,_0x547596){const _0x244c03=_0x2e5b1c;super(),this['_urlService']=_0x3945bb,this[_0x244c03(0x2ec)]=_0x43675f,this[_0x244c03(0x1bd)]=_0x5a3338,this[_0x244c03(0x170)]=_0x22a5fb,this['_snapshotService']=_0x5b9562,_0x547596?_0x547596==null||_0x547596[_0x244c03(0x2ed)]()[_0x244c03(0x2e6)](()=>this[_0x244c03(0x42f)]()):(this[_0x244c03(0x2ec)][_0x244c03(0x166)](_0x244c03(0x33a),_0x244c03(0x2ab)),this[_0x244c03(0x42f)]());}async[_0x2e5b1c(0x42f)](){const _0x5be4bb=_0x2e5b1c,_0x2a3a69=this[_0x5be4bb(0x277)][_0x5be4bb(0x402)]('unit'),_0xd800b1=this['_urlService'][_0x5be4bb(0x402)](_0x5be4bb(0x255));if(!_0x2a3a69||!_0xd800b1){this[_0x5be4bb(0x2ec)]['debug']('[DataLoaderController]',_0x5be4bb(0x3cc));return;}switch(Number(_0xd800b1)){case x[_0x5be4bb(0x2c7)]:{const _0x19d023=await this['_loadSheet'](_0x2a3a69);this[_0x5be4bb(0x13c)](_0x19d023);break;}case x[_0x5be4bb(0x1de)]:{await this[_0x5be4bb(0x2d8)](_0x2a3a69);break;}default:{this[_0x5be4bb(0x2ec)][_0x5be4bb(0x30b)](_0x5be4bb(0x33a),_0x5be4bb(0x1c8));break;}}}async[_0x2e5b1c(0x13c)](_0x2e626d){const _0x49d368=_0x2e5b1c;await this['_updateSubUnitFromURLParams'](_0x2e626d),_0x2e626d[_0x49d368(0x1ff)]['pipe'](_0x2123e0(this[_0x49d368(0x3be)]))['subscribe'](_0x516bea=>{const _0xd35c6a=_0x49d368;_0x516bea&&this[_0xd35c6a(0x47c)](_0x516bea);}),this[_0x49d368(0x277)][_0x49d368(0x3b3)][_0x49d368(0x195)](_0x2123e0(this[_0x49d368(0x3be)]))[_0x49d368(0x3c4)](()=>this[_0x49d368(0x25d)](_0x2e626d));}[_0x2e5b1c(0x47c)](_0x2fd766,_0x36e188=!0x1){const _0x25a37b=_0x2e5b1c,_0x91c7de=this['_urlService'][_0x25a37b(0x402)]('subunit');_0x2fd766[_0x25a37b(0x3b5)]()!==_0x91c7de&&this[_0x25a37b(0x277)]['setParam'](_0x25a37b(0x14a),_0x2fd766['getSheetId'](),_0x36e188);}async[_0x2e5b1c(0x25d)](_0x5b1243){const _0x2d694d=_0x2e5b1c;var _0x49d462;const _0x5be226=this['_urlService']['getParam'](_0x2d694d(0x14a));if(!_0x5be226||!_0x5b1243[_0x2d694d(0x378)](_0x5be226)){const _0x5d46b7=_0x5b1243[_0x2d694d(0x1ea)]()[0x0],_0x3d6a88=_0x5b1243['getSheetBySheetId'](_0x5d46b7);if(!_0x3d6a88)return;this[_0x2d694d(0x47c)](_0x3d6a88,!0x0),await this[_0x2d694d(0x1bd)][_0x2d694d(0x335)](_0x29cb12['id'],{'unitId':_0x5b1243['getUnitId'](),'subUnitId':_0x5d46b7});return;}((_0x49d462=_0x5b1243[_0x2d694d(0x29a)]())==null?void 0x0:_0x49d462[_0x2d694d(0x3b5)]())!==_0x5be226&&await this[_0x2d694d(0x1bd)][_0x2d694d(0x335)](_0x29cb12['id'],{'unitId':_0x5b1243[_0x2d694d(0x426)](),'subUnitId':_0x5be226});}async[_0x2e5b1c(0x1c3)](_0x311918){const _0x201390=_0x2e5b1c;let _0x34c185=0x0;const _0x135be9=await this[_0x201390(0x170)][_0x201390(0x1cb)](_0x311918);return _0x135be9&&(_0x135be9['awaitingChangeset']||_0x135be9['mutations'][_0x201390(0x1bb)]!==0x0)&&(_0x34c185=_0x135be9[_0x201390(0x480)]),_0x34c185===0x0&&this['_logService'][_0x201390(0x166)](_0x201390(0x33a),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x201390(0x37a)](_0x311918,_0x34c185);}async[_0x2e5b1c(0x2d8)](_0x2fce38){const _0xb579c2=_0x2e5b1c;let _0x1ecd21=0x0;const _0x331be3=await this['_localCacheService'][_0xb579c2(0x1cb)](_0x2fce38);return _0x331be3&&(_0x331be3['awaitingChangeset']||_0x331be3[_0xb579c2(0x225)]['length']!==0x0)&&(_0x1ecd21=_0x331be3[_0xb579c2(0x480)]),_0x1ecd21===0x0&&this[_0xb579c2(0x2ec)][_0xb579c2(0x166)](_0xb579c2(0x33a),_0xb579c2(0x1d1)),this[_0xb579c2(0x48a)][_0xb579c2(0x266)](_0x2fce38,_0x1ecd21);}};We=co([_0x486866(_0x446a6f[_0x2e5b1c(0x488)],We),me(0x0,Vs),me(0x1,_0x1cafe9),me(0x2,_0x36a317),me(0x3,_0x5c7fae(D)),me(0x4,_0x5c7fae(_0x208dce)),me(0x5,_0x5723b6(_0x372f27))],We);var ho=Object[_0x2e5b1c(0x2de)],lo=Object[_0x2e5b1c(0x41c)],_o=(_0x15d690,_0x5bfdec,_0x133cdb,_0x356a42)=>{const _0x36a38f=_0x2e5b1c;for(var _0x41e69a=_0x356a42>0x1?void 0x0:_0x356a42?lo(_0x5bfdec,_0x133cdb):_0x5bfdec,_0x4301c7=_0x15d690[_0x36a38f(0x1bb)]-0x1,_0x2f5aee;_0x4301c7>=0x0;_0x4301c7--)(_0x2f5aee=_0x15d690[_0x4301c7])&&(_0x41e69a=(_0x356a42?_0x2f5aee(_0x5bfdec,_0x133cdb,_0x41e69a):_0x2f5aee(_0x41e69a))||_0x41e69a);return _0x356a42&&_0x41e69a&&ho(_0x5bfdec,_0x133cdb,_0x41e69a),_0x41e69a;},us=(_0x4c94d2,_0x5488fd)=>(_0x1797bc,_0x518792)=>_0x5488fd(_0x1797bc,_0x518792,_0x4c94d2);const uo='DEFAULT_FILE_NAME',mo=_0x2e5b1c(0x261);let Ge=class extends _0x36403b{constructor(_0x476861,_0x406278){const _0x5e3cba=_0x2e5b1c;super(),this[_0x5e3cba(0x1ae)]=_0x476861,this[_0x5e3cba(0x338)]=_0x406278,this['_init']();}['_init'](){const _0x48d5cf=_0x2e5b1c;this['disposeWithMe'](_0x29a7b(this['_univerInstanceService'][_0x48d5cf(0x137)][_0x48d5cf(0x3c4)](()=>{const _0x45f52f=_0x48d5cf;var _0x731e34;const _0x418af1=this[_0x45f52f(0x1ae)][_0x45f52f(0x1e7)]();let _0x32d944=(_0x731e34=this['_configService']['getConfig'](uo))!=null?_0x731e34:mo;_0x418af1 instanceof _0x450c96&&(_0x32d944=_0x418af1[_0x45f52f(0x397)]),document[_0x45f52f(0x454)]=_0x32d944;})));}};Ge=_o([_0x486866(_0x446a6f['Ready'],Ge),us(0x0,_0x30b2f2),us(0x1,_0x401b9d)],Ge);var fo=Object['defineProperty'],go=Object[_0x2e5b1c(0x41c)],So=(_0x20ccd4,_0xa7a599,_0x30bddd,_0x351b51)=>{const _0x5931e8=_0x2e5b1c;for(var _0x4ff509=_0x351b51>0x1?void 0x0:_0x351b51?go(_0xa7a599,_0x30bddd):_0xa7a599,_0x246c59=_0x20ccd4[_0x5931e8(0x1bb)]-0x1,_0x299a48;_0x246c59>=0x0;_0x246c59--)(_0x299a48=_0x20ccd4[_0x246c59])&&(_0x4ff509=(_0x351b51?_0x299a48(_0xa7a599,_0x30bddd,_0x4ff509):_0x299a48(_0x4ff509))||_0x4ff509);return _0x351b51&&_0x4ff509&&fo(_0xa7a599,_0x30bddd,_0x4ff509),_0x4ff509;},ds=(_0xc6c793,_0x7866ec)=>(_0x1503cc,_0x4da9e9)=>_0x7866ec(_0x1503cc,_0x4da9e9,_0xc6c793);let Pt=class{constructor(_0x167378,_0x2858dd){const _0x59bf1a=_0x2e5b1c;this[_0x59bf1a(0x338)]=_0x167378,this[_0x59bf1a(0x17e)]=_0x2858dd;}async[_0x2e5b1c(0x22f)](_0xf35094,_0xd7318f){const _0x13a6ac=_0x2e5b1c;var _0x3f4701;const {unitID:_0x2f460e,type:_0x48b72e,revision:_0xf4c8b3=0x0}=_0xd7318f,_0x1f16ff=this['_getSnapshotAPIPrefix']()+'/'+_0x48b72e+_0x13a6ac(0x2d9)+_0x2f460e+_0x13a6ac(0x48b)+_0xf4c8b3,_0x32cdeb=(await this[_0x13a6ac(0x17e)][_0x13a6ac(0x18f)](_0x1f16ff))[_0x13a6ac(0x12f)],_0x261b88=(_0x3f4701=_0x32cdeb[_0x13a6ac(0x35d)])==null?void 0x0:_0x3f4701['workbook'];if(_0x261b88){const _0xbe1b36=_0x261b88==null?void 0x0:_0x261b88[_0x13a6ac(0x2e1)],_0x4a64d0=_0x1d8b96[_0x13a6ac(0x2f9)](_0x5ee83a(_0xbe1b36));_0x261b88[_0x13a6ac(0x2e1)]=_0x4a64d0,Object[_0x13a6ac(0x359)](_0x261b88['sheets'])['forEach'](([,_0x4db5cc])=>{const _0x172de4=_0x13a6ac,_0x3df22c=_0x4db5cc[_0x172de4(0x2e1)],_0x50f2c0=_0x1d8b96['encode'](_0x5ee83a(_0x3df22c));_0x4db5cc[_0x172de4(0x2e1)]=_0x50f2c0;});}return _0x32cdeb;}async[_0x2e5b1c(0x2f7)](_0x17df4f,_0x200afb){const _0x2079b0=_0x2e5b1c,{unitID:_0x224529,type:_0x334130,blockID:_0x43c7e1}=_0x200afb,_0x8c596c=this[_0x2079b0(0x126)]()+'/'+_0x334130+_0x2079b0(0x2d9)+_0x224529+_0x2079b0(0x27d)+_0x43c7e1;return(await this[_0x2079b0(0x17e)][_0x2079b0(0x18f)](_0x8c596c))[_0x2079b0(0x12f)];}async[_0x2e5b1c(0x160)](_0x263a2a,_0x293c66){const _0x25aafa=_0x2e5b1c,{unitID:_0x558692,type:_0x27e044,from:_0x333fa8,to:_0x58959d}=_0x293c66,_0x195490=this[_0x25aafa(0x126)]()+'/'+_0x27e044+_0x25aafa(0x2d9)+_0x558692+'/fetchmissing?from='+_0x333fa8+'&to='+_0x58959d;return(await this[_0x25aafa(0x17e)][_0x25aafa(0x18f)](_0x195490))[_0x25aafa(0x12f)];}['_getSnapshotAPIPrefix'](){const _0x37701e=_0x2e5b1c;var _0xe5dfdb;return(_0xe5dfdb=this[_0x37701e(0x338)][_0x37701e(0x142)](dn))!=null?_0xe5dfdb:this[_0x37701e(0x126)]();}[_0x2e5b1c(0x126)](){const _0x28a282=_0x2e5b1c;var _0x264f27;return(_0x264f27=this[_0x28a282(0x338)][_0x28a282(0x142)](_n))!=null?_0x264f27:un;}async[_0x2e5b1c(0x3c6)](_0x7cd71a,_0x1cc224){const _0x22f3d2=_0x2e5b1c,_0x17fe1f='/universer-api/snapshot/'+_0x1cc224[_0x22f3d2(0x255)]+_0x22f3d2(0x2d9)+_0x1cc224[_0x22f3d2(0x3a4)]+'/resources';return(await this[_0x22f3d2(0x17e)][_0x22f3d2(0x18f)](_0x17fe1f,{'params':{'resourceId':JSON[_0x22f3d2(0x3d7)](_0x1cc224[_0x22f3d2(0x38f)])}}))['body'];}[_0x2e5b1c(0x222)](){const _0x1f93ad=_0x2e5b1c;throw new Error(_0x1f93ad(0x379));}[_0x2e5b1c(0x2fb)](){const _0x3961c5=_0x2e5b1c;throw new Error(_0x3961c5(0x379));}[_0x2e5b1c(0x27e)](){const _0x69905c=_0x2e5b1c;throw new Error(_0x69905c(0x379));}};Pt=So([ds(0x0,_0x401b9d),ds(0x1,_0x5c7fae(_0x35343d))],Pt);var po=Object[_0x2e5b1c(0x2de)],vo=Object[_0x2e5b1c(0x41c)],Io=(_0x396474,_0x4dd039,_0x4ad887,_0x48945c)=>{for(var _0x4d4b0d=_0x48945c>0x1?void 0x0:_0x48945c?vo(_0x4dd039,_0x4ad887):_0x4dd039,_0xbf08e1=_0x396474['length']-0x1,_0x21785c;_0xbf08e1>=0x0;_0xbf08e1--)(_0x21785c=_0x396474[_0xbf08e1])&&(_0x4d4b0d=(_0x48945c?_0x21785c(_0x4dd039,_0x4ad887,_0x4d4b0d):_0x21785c(_0x4d4b0d))||_0x4d4b0d);return _0x48945c&&_0x4d4b0d&&po(_0x4dd039,_0x4ad887,_0x4d4b0d),_0x4d4b0d;},De=(_0x554bfa,_0x146012)=>(_0x359aef,_0x2fa465)=>_0x146012(_0x359aef,_0x2fa465,_0x554bfa);let Nt=class extends _0x30a328{constructor(_0x598dad,_0x51ee93,_0x9db795,_0x398779,_0x584784){const _0xd0ce1a=_0x2e5b1c;super(_0x598dad,_0x51ee93,_0x9db795),this['_transformService']=_0x398779,this[_0xd0ce1a(0x2ec)]=_0x584784;}['transformUndoRedo'](_0x186e82,_0xa81ceb){const _0x2e0515=_0x2e5b1c,_0x4fb827=this[_0x2e0515(0x48e)](_0x186e82);if(_0x4fb827)try{const _0x40a744=this['_transformStack'](_0x4fb827,_0xa81ceb);this[_0x2e0515(0x45b)](_0x186e82,_0x40a744);}catch(_0x7e0aa5){this['_logService'][_0x2e0515(0x30b)](_0x2e0515(0x25f),_0x7e0aa5),this[_0x2e0515(0x241)](_0x186e82);}const _0x187057=this['_getRedoStack'](_0x186e82);if(_0x187057)try{const _0x508242=this[_0x2e0515(0x339)](_0x187057,_0xa81ceb);this['_substituteRedoStack'](_0x186e82,_0x508242);}catch(_0x49e9ba){this[_0x2e0515(0x2ec)][_0x2e0515(0x30b)](_0x49e9ba),this[_0x2e0515(0x453)](_0x186e82);}}[_0x2e5b1c(0x241)](_0x34dd9a){const _0x1aca6f=_0x2e5b1c,_0x10d957=this[_0x1aca6f(0x48e)](_0x34dd9a);_0x10d957&&(_0x10d957[_0x1aca6f(0x1bb)]=0x0,this[_0x1aca6f(0x384)]());}[_0x2e5b1c(0x453)](_0x42eb99){const _0x38133a=_0x2e5b1c,_0x2e4f0b=this[_0x38133a(0x19e)](_0x42eb99);_0x2e4f0b&&(_0x2e4f0b[_0x38133a(0x1bb)]=0x0,this[_0x38133a(0x384)]());}[_0x2e5b1c(0x45b)](_0x19029d,_0x129860){const _0x2d99d7=_0x2e5b1c;this[_0x2d99d7(0x15c)]['set'](_0x19029d,_0x129860),this['_updateStatus']();}[_0x2e5b1c(0x346)](_0x29ab95,_0x144162){const _0x4f3c91=_0x2e5b1c;this[_0x4f3c91(0x207)]['set'](_0x29ab95,_0x144162),this[_0x4f3c91(0x384)]();}[_0x2e5b1c(0x339)](_0x4b7d60,_0x494f5f){const _0x62ce0e=_0x2e5b1c,_0x4baab0=[];let _0x5d9c48=_0x494f5f,_0x50c93b=_0x494f5f;for(let _0x10bdf9=_0x4b7d60[_0x62ce0e(0x1bb)]-0x1;_0x10bdf9>=0x0;_0x10bdf9--){const {unitID:_0x1c3cbf,undoMutations:_0x4489e1,redoMutations:_0x18060f}=_0x4b7d60[_0x10bdf9],_0x3ddd2f=this[_0x62ce0e(0x3cf)]['transformMutationsWithChangeset'](_0x5d9c48,_0x4489e1),_0x15873a=this[_0x62ce0e(0x3cf)]['transformMutationsWithChangeset'](_0x50c93b,_0x18060f);if(_0x364023(_0x3ddd2f)||_0x364023(_0x15873a)){this['_logService'][_0x62ce0e(0x30b)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x3ddd2f,_0x15873a);break;}_0x5d9c48=_0x3ddd2f[_0x62ce0e(0x145)],_0x50c93b=_0x15873a[_0x62ce0e(0x145)],_0x4baab0[_0x62ce0e(0x2f1)]({'unitID':_0x1c3cbf,'undoMutations':_0x3ddd2f[_0x62ce0e(0x366)],'redoMutations':_0x15873a[_0x62ce0e(0x366)]});}return _0x4baab0['reverse']();}};Nt=Io([De(0x0,_0x30b2f2),De(0x1,_0x36a317),De(0x2,_0x693680),De(0x3,_0x4e0f96),De(0x4,_0x1cafe9)],Nt);class Eo extends _0x4bff65{constructor(){const _0x12e687=_0x2e5b1c;super(),l(this,'urlChange$'),this['urlChange$']=_0x4dbad7(window,_0x12e687(0x12b))['pipe'](_0x2123e0(this[_0x12e687(0x3be)]),_0x1aec94(0x1),_0x543013(void 0x0));}[_0x2e5b1c(0x136)](_0x1855f1,_0x47adba,_0x13933a=!0x1){const _0x5758dd=_0x2e5b1c,_0x12c398=new URL(window[_0x5758dd(0x162)][_0x5758dd(0x2e7)]);_0x12c398[_0x5758dd(0x202)][_0x5758dd(0x1e1)](_0x1855f1,_0x47adba),_0x13933a?window[_0x5758dd(0x1bc)]['replaceState']('','',_0x12c398['toString']()):window['history'][_0x5758dd(0x3f5)]('','',_0x12c398[_0x5758dd(0x19b)]());}[_0x2e5b1c(0x455)](_0x119789,_0x1d805e=!0x1){const _0x28b060=_0x2e5b1c,_0x141de5=new URL(window[_0x28b060(0x162)][_0x28b060(0x2e7)]);_0x141de5[_0x28b060(0x202)][_0x28b060(0x18d)](_0x119789),_0x1d805e?window[_0x28b060(0x1bc)][_0x28b060(0x433)]('','',_0x141de5['toString']()):window[_0x28b060(0x1bc)][_0x28b060(0x3f5)]('','',_0x141de5[_0x28b060(0x19b)]());}[_0x2e5b1c(0x402)](_0x3b214b){const _0x20948f=_0x2e5b1c;var _0x40c5d0;return(_0x40c5d0=new URL(window['location']['href'])[_0x20948f(0x202)][_0x20948f(0x18f)](_0x3b214b))!=null?_0x40c5d0:void 0x0;}}const ft=_0x2e5b1c(0x2c8),Co='collab-text-range-',bo=_0x2e5b1c(0x35a),we=0x6,To=1.5,gt=0x4,Ro=1.5,Oo='rgba(255,\x20255,\x20255,\x200.01)';class ms{constructor(_0x228d78,_0x24fb9c,_0x35e9ac,_0x36b547){const _0x3f364e=_0x2e5b1c;l(this,'_shapes',[]),l(this,_0x3f364e(0x1b1),null),l(this,'_textBubble',null),l(this,_0x3f364e(0x21a),null),l(this,_0x3f364e(0x150),null),l(this,_0x3f364e(0x29f),null),(this['_cursor']=_0x228d78,this['_scene']=_0x24fb9c,this[_0x3f364e(0x43a)]=_0x35e9ac,this[_0x3f364e(0x2be)]=_0x36b547,this[_0x3f364e(0x357)]());}set[_0x2e5b1c(0x308)](_0x3e9e9a){const _0x5a3ca0=_0x2e5b1c;_0x3e9e9a?(this[_0x5a3ca0(0x21a)]&&this[_0x5a3ca0(0x21a)][_0x5a3ca0(0x424)](),this[_0x5a3ca0(0x2aa)]&&this['_textBubble']['show']()):(this[_0x5a3ca0(0x21a)]&&this[_0x5a3ca0(0x21a)][_0x5a3ca0(0x367)](),this[_0x5a3ca0(0x2aa)]&&this[_0x5a3ca0(0x2aa)][_0x5a3ca0(0x424)]());}['dispose'](){const _0x40836f=_0x2e5b1c;for(const _0x4d5bc7 of this['_shapes'])_0x4d5bc7[_0x40836f(0x2fe)]();this[_0x40836f(0x2aa)]&&this[_0x40836f(0x2aa)][_0x40836f(0x2fe)](),this['_anchorDot']&&this[_0x40836f(0x21a)][_0x40836f(0x2fe)](),this[_0x40836f(0x1b1)]&&this[_0x40836f(0x1b1)][_0x40836f(0x2fe)](),this[_0x40836f(0x29f)]&&this[_0x40836f(0x29f)]();}['_render'](){const _0x129216=_0x2e5b1c;var _0x455184;const {_docSkeleton:_0x2e46bd,_document:_0x5191df}=this,{color:_0x28b3c4,name:_0x5cba2e,ranges:_0x4952c2}=this[_0x129216(0x37e)],_0x2e16c8=_0x5191df[_0x129216(0x240)](),{docsLeft:_0x53fc1c,docsTop:_0x54c491}=_0x2e16c8,_0x3b9813=new _0x5cf9b0(_0x2e16c8,_0x2e46bd);for(const {startOffset:_0x44e548,endOffset:_0x493825,collapsed:_0x3cedd8,isActive:_0x5d9ec0}of _0x4952c2){const _0x8bc785=_0x2e46bd[_0x129216(0x25e)](_0x44e548),_0x4a45a6=_0x2e46bd[_0x129216(0x25e)](_0x493825);if(_0x5d9ec0){const {contentBoxPointGroup:_0x26212b}=_0x3b9813[_0x129216(0x2cc)](_0x4a45a6,_0x4a45a6);if(_0x26212b[_0x129216(0x1bb)]===0x0)continue;this[_0x129216(0x3dc)](_0x28b3c4,_0x26212b,_0x53fc1c,_0x54c491,_0x5cba2e),this[_0x129216(0x29f)]=this[_0x129216(0x3d2)]();}if(!_0x3cedd8&&_0x8bc785&&_0x4a45a6){if(_0x29cf68(_0x8bc785,_0x4a45a6)){const _0x55228b=new _0xbfc352(_0x2e16c8,_0x2e46bd),{pointGroup:_0x3355cd}=(_0x455184=_0x55228b[_0x129216(0x2cc)](_0x8bc785,_0x4a45a6))!=null?_0x455184:{};if(_0x3355cd==null||_0x3355cd[_0x129216(0x1bb)]===0x0)continue;this[_0x129216(0x122)](_0x28b3c4,_0x3355cd,_0x53fc1c,_0x54c491);}else{const {contentBoxPointGroup:_0x4c8828}=_0x3b9813['getRangePointData'](_0x8bc785,_0x4a45a6);if(_0x4c8828['length']===0x0)continue;this[_0x129216(0x1e2)](_0x28b3c4,_0x4c8828,_0x53fc1c,_0x54c491);}}}}['_drawAnchor'](_0x17c1ae,_0x38db41,_0x38ab4c,_0x29c95b,_0x1e9dcf){const _0x1f66e8=_0x2e5b1c,_0x5e7cb7=this['_getAnchorBounding'](_0x38db41),{left:_0x42bf0b,top:_0x3e7134,height:_0x2eb46d}=_0x5e7cb7,_0x4d89fd=this[_0x1f66e8(0x340)](),_0x4c3db8=Ro/_0x4d89fd,_0x1406e4=new _0x170a21(ft+_0x3cea4b['generateRandomId'](we),{'left':_0x42bf0b+_0x38ab4c-_0x4c3db8,'top':_0x3e7134+_0x29c95b,'height':_0x2eb46d,'width':To,'fill':_0x17c1ae||_0x3c99d3(_0x44cb7f['black'],0x0),'strokeWidth':_0x4c3db8,'stroke':Oo,'evented':!0x0});this[_0x1f66e8(0x1b1)]=_0x1406e4,this[_0x1f66e8(0x173)][_0x1f66e8(0x2eb)](_0x1406e4,_0x2b5c4c);const _0x134887=new _0x170a21(ft+_0x3cea4b[_0x1f66e8(0x1ce)](we),{'left':_0x42bf0b+_0x38ab4c-_0x4c3db8,'top':_0x3e7134+_0x29c95b-gt/0x2,'height':gt,'width':gt,'fill':_0x17c1ae||_0x3c99d3(_0x44cb7f['black'],0x0),'strokeWidth':0x0,'stroke':_0x17c1ae||_0x3c99d3(_0x44cb7f[_0x1f66e8(0x13e)],0x0),'evented':!0x1});this[_0x1f66e8(0x21a)]=_0x134887,this[_0x1f66e8(0x173)][_0x1f66e8(0x2eb)](_0x134887,_0x2b5c4c);const _0x4a8bae=new nt(ft+_0x3cea4b['generateRandomId'](we),{'left':_0x42bf0b+_0x38ab4c-_0x4c3db8,'top':_0x3e7134+_0x29c95b-Ue,'text':_0x1e9dcf,'color':_0x17c1ae});this['_textBubble']=_0x4a8bae,this[_0x1f66e8(0x173)][_0x1f66e8(0x2eb)](_0x4a8bae,_0x2b5c4c),this[_0x1f66e8(0x308)]=!0x1;}[_0x2e5b1c(0x3d2)](){const _0x24e0c9=_0x2e5b1c,_0x536b2f=this[_0x24e0c9(0x1b1)][_0x24e0c9(0x3b9)][_0x24e0c9(0x3cb)](()=>{const _0x27f4da=_0x24e0c9;this[_0x27f4da(0x308)]=!0x0;}),_0x2af6f7=this['_anchor'][_0x24e0c9(0x3d3)][_0x24e0c9(0x3cb)](()=>{const _0x43513b=_0x24e0c9;this[_0x43513b(0x150)]&&clearTimeout(this['_hideTimer']),this[_0x43513b(0x150)]=setTimeout(()=>{const _0x2fc2a7=_0x43513b;this[_0x2fc2a7(0x308)]=!0x1;},0x7d0);});return()=>{const _0x36b386=_0x24e0c9;_0x536b2f[_0x36b386(0x1c1)](),_0x2af6f7['unsubscribe']();};}[_0x2e5b1c(0x1e2)](_0x7eca3f,_0xaf1a1b,_0x3385ab,_0x7f63f5){const _0x7c7343=_0x2e5b1c,_0x16d4e5=new _0x21fa84(_0x7eca3f)[_0x7c7343(0x1ee)](0.2)[_0x7c7343(0x282)](),_0x1f70fe=new _0x532a25(Co+_0x3cea4b[_0x7c7343(0x1ce)](we),{'pointsGroup':_0xaf1a1b,'fill':_0x16d4e5||_0x3c99d3(_0x44cb7f[_0x7c7343(0x13e)],0.2),'left':_0x3385ab,'top':_0x7f63f5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x7c7343(0x3eb)][_0x7c7343(0x2f1)](_0x1f70fe),this[_0x7c7343(0x173)][_0x7c7343(0x2eb)](_0x1f70fe,_0x2b5c4c);}[_0x2e5b1c(0x122)](_0x4a2108,_0x39b540,_0x147308,_0x2d4aa6){const _0x47f56e=_0x2e5b1c,_0xc325cd=new _0x21fa84(_0x4a2108)['setAlpha'](0.2)[_0x47f56e(0x282)](),_0x1da917=new _0x532a25(bo+_0x3cea4b[_0x47f56e(0x1ce)](we),{'pointsGroup':_0x39b540,'fill':_0xc325cd||_0x3c99d3(_0x44cb7f[_0x47f56e(0x13e)],0.2),'left':_0x147308,'top':_0x2d4aa6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x47f56e(0x3eb)][_0x47f56e(0x2f1)](_0x1da917),this[_0x47f56e(0x173)][_0x47f56e(0x2eb)](_0x1da917,_0x2b5c4c);}['_getAnchorBounding'](_0x29a17f){const _0x48c319=_0x29a17f[0x0],_0x1b17ec=_0x48c319[0x0],_0x2d9c70=_0x48c319[0x2],{x:_0x49feda,y:_0x151fc7}=_0x1b17ec,{x:_0x200310,y:_0x3b4793}=_0x2d9c70;return{'left':_0x49feda,'top':_0x151fc7,'width':_0x200310-_0x49feda,'height':_0x3b4793-_0x151fc7};}[_0x2e5b1c(0x340)](){const _0x35040b=_0x2e5b1c,{scaleX:_0xe8f76e,scaleY:_0x43e3a5}=this[_0x35040b(0x173)][_0x35040b(0x322)]();return Math[_0x35040b(0x123)](_0xe8f76e,_0x43e3a5);}}var Do=Object[_0x2e5b1c(0x2de)],wo=Object[_0x2e5b1c(0x41c)],Po=(_0x1dbce5,_0x1710b3,_0x23054e,_0x3388cd)=>{for(var _0x988116=_0x3388cd>0x1?void 0x0:_0x3388cd?wo(_0x1710b3,_0x23054e):_0x1710b3,_0x4c3f2c=_0x1dbce5['length']-0x1,_0x527194;_0x4c3f2c>=0x0;_0x4c3f2c--)(_0x527194=_0x1dbce5[_0x4c3f2c])&&(_0x988116=(_0x3388cd?_0x527194(_0x1710b3,_0x23054e,_0x988116):_0x527194(_0x988116))||_0x988116);return _0x3388cd&&_0x988116&&Do(_0x1710b3,_0x23054e,_0x988116),_0x988116;},Be=(_0x2ffc6c,_0x3e9b92)=>(_0x1a2a12,_0x21dbfb)=>_0x3e9b92(_0x1a2a12,_0x21dbfb,_0x2ffc6c);let Ye=class extends _0x4bff65{constructor(_0xaa07c4,_0x5bf71c,_0x22f7ea,_0x45f098,_0x30d301){const _0x3c6301=_0x2e5b1c;super(),l(this,_0x3c6301(0x313),[]),l(this,_0x3c6301(0x45c),[]),(this['_context']=_0xaa07c4,this[_0x3c6301(0x431)]=_0x5bf71c,this['_collabCursorController']=_0x22f7ea,this[_0x3c6301(0x1bd)]=_0x45f098,this[_0x3c6301(0x382)]=_0x30d301,this['_init']());}[_0x2e5b1c(0x42f)](){const _0x33a0ef=_0x2e5b1c,_0x34c387=this[_0x33a0ef(0x1c4)][_0x33a0ef(0x275)],_0x21785a=this[_0x33a0ef(0x431)];this[_0x33a0ef(0x294)](_0x1ee3b6([this['_collabCursorController'][_0x33a0ef(0x16c)](_0x34c387),this[_0x33a0ef(0x382)][_0x33a0ef(0x221)]])[_0x33a0ef(0x195)](_0x4b551a(([_0x1eac69,_0x36f406])=>({'skeleton':_0x21785a[_0x33a0ef(0x2bc)](),'cursors':[..._0x1eac69['values']()][_0x33a0ef(0x177)](_0x353798=>({..._0x353798,'color':_0x36f406[_0x353798['color']]}))})))[_0x33a0ef(0x3c4)](_0xf68629=>{const _0xfb2ac0=_0x33a0ef;if(this[_0xfb2ac0(0x2d2)](),_0xf68629){const {skeleton:_0x21f296,cursors:_0x1524ac}=_0xf68629;this[_0xfb2ac0(0x323)](_0x21f296,_0x1524ac);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x2e5b1c(0x323)](_0x3018ef,_0x100a91){const _0x3fef4f=_0x2e5b1c,{scene:_0x178353,mainComponent:_0x438150}=this[_0x3fef4f(0x1c4)],_0x28a636=_0x100a91[_0x3fef4f(0x1c7)](_0x5c8882=>new ms(_0x5c8882,_0x178353,_0x3018ef,_0x438150));this[_0x3fef4f(0x313)]=_0x28a636,this['_cursors']=_0x100a91;}[_0x2e5b1c(0x171)](){const _0x3822ac=_0x2e5b1c;this[_0x3822ac(0x2d2)]();const {scene:_0x2c4d4c,mainComponent:_0x219cd4}=this['_context'],_0x917812=this[_0x3822ac(0x431)][_0x3822ac(0x2bc)](),_0x4c44bb=this[_0x3822ac(0x45c)][_0x3822ac(0x1c7)](_0x2c9ac2=>new ms(_0x2c9ac2,_0x2c4d4c,_0x917812,_0x219cd4));this[_0x3822ac(0x313)]=_0x4c44bb;}[_0x2e5b1c(0x2d2)](){const _0x4d1dd0=_0x2e5b1c;this[_0x4d1dd0(0x313)][_0x4d1dd0(0x1cd)](_0x10280d=>_0x10280d[_0x4d1dd0(0x2fe)]()),this[_0x4d1dd0(0x313)]=[];}[_0x2e5b1c(0x26d)](){const _0x405d9d=_0x2e5b1c,_0x1093bf=[_0x23717a['id']];this[_0x405d9d(0x294)](this['_commandService'][_0x405d9d(0x20e)](_0xba8f1f=>{const _0x19451d=_0x405d9d;_0x1093bf['includes'](_0xba8f1f['id'])&&_0xba8f1f[_0x19451d(0x27b)][_0x19451d(0x275)]===this['_context'][_0x19451d(0x275)]&&this[_0x19451d(0x171)]();}));}[_0x2e5b1c(0x1d5)](){const _0x2395f8=_0x2e5b1c;this[_0x2395f8(0x294)](_0x240b02(this['_context'][_0x2395f8(0x18e)][_0x2395f8(0x2ae)])[_0x2395f8(0x195)](_0x48e324(_0x199e6a=>_0x199e6a['type']===_0x277f5f['resize']),_0x326ad7(0x10))[_0x2395f8(0x3c4)](()=>{const _0x2402f5=_0x2395f8;this[_0x2402f5(0x171)]();}));}};Ye=Po([_0x486866(_0x446a6f[_0x2e5b1c(0x2bf)],Ye),Be(0x1,_0x5c7fae(_0x2398d4)),Be(0x2,_0x5c7fae(fe)),Be(0x3,_0x36a317),Be(0x4,_0x5c7fae(_0x27c464))],Ye);var No=Object[_0x2e5b1c(0x2de)],yo=Object[_0x2e5b1c(0x41c)],Mo=(_0x1d9940,_0x5c56b5,_0xf71e76,_0x448ae6)=>{const _0x4a40e3=_0x2e5b1c;for(var _0x3f0dba=_0x448ae6>0x1?void 0x0:_0x448ae6?yo(_0x5c56b5,_0xf71e76):_0x5c56b5,_0x199022=_0x1d9940[_0x4a40e3(0x1bb)]-0x1,_0x5442f8;_0x199022>=0x0;_0x199022--)(_0x5442f8=_0x1d9940[_0x199022])&&(_0x3f0dba=(_0x448ae6?_0x5442f8(_0x5c56b5,_0xf71e76,_0x3f0dba):_0x5442f8(_0x3f0dba))||_0x3f0dba);return _0x448ae6&&_0x3f0dba&&No(_0x5c56b5,_0xf71e76,_0x3f0dba),_0x3f0dba;},St=(_0x263ff4,_0x51351d)=>(_0x3f276a,_0x4024b2)=>_0x51351d(_0x3f276a,_0x4024b2,_0x263ff4);let st=class{constructor(_0x43959b,_0x51b8db,_0x1569db){const _0x1ed1e8=_0x2e5b1c;this[_0x1ed1e8(0x338)]=_0x43959b,this[_0x1ed1e8(0x17e)]=_0x51b8db,this[_0x1ed1e8(0x176)]=_0x1569db,this[_0x1ed1e8(0x124)]();}[_0x2e5b1c(0x124)](){const _0x45c09b=_0x2e5b1c;this['_httpService'][_0x45c09b(0x17b)]({'priority':0x1,'interceptor':(_0x164df8,_0x5217e4)=>_0x5217e4(_0x164df8)['pipe'](_0x4c98f9(async _0x663063=>{const _0x1e43ef=_0x45c09b,_0x492331=_0x663063;if(_0x492331['status']===0x191&&window['confirm'](this[_0x1e43ef(0x176)]['t'](_0x1e43ef(0x295)))){const _0x4a7df5=window[_0x1e43ef(0x2c1)](window[_0x1e43ef(0x162)][_0x1e43ef(0x2e7)]);window[_0x1e43ef(0x162)][_0x1e43ef(0x2e7)]=this['_getLoginPath']()+_0x1e43ef(0x390)+_0x4a7df5;}return _0x492331;}))});}[_0x2e5b1c(0x370)](){const _0x253540=_0x2e5b1c;var _0x4f08ee;return(_0x4f08ee=this[_0x253540(0x338)]['getConfig'](wn))!=null?_0x4f08ee:Pn;}};st=Mo([St(0x0,_0x401b9d),St(0x1,_0x5c7fae(_0x35343d)),St(0x2,_0x5c7fae(_0x12e5b3))],st);var Ao=Object[_0x2e5b1c(0x2de)],Uo=Object[_0x2e5b1c(0x41c)],Lo=(_0x489c4b,_0x104b09,_0x161ad0,_0x5b62f1)=>{for(var _0x3f617a=_0x5b62f1>0x1?void 0x0:_0x5b62f1?Uo(_0x104b09,_0x161ad0):_0x104b09,_0xeca85c=_0x489c4b['length']-0x1,_0x13e574;_0xeca85c>=0x0;_0xeca85c--)(_0x13e574=_0x489c4b[_0xeca85c])&&(_0x3f617a=(_0x5b62f1?_0x13e574(_0x104b09,_0x161ad0,_0x3f617a):_0x13e574(_0x3f617a))||_0x3f617a);return _0x5b62f1&&_0x3f617a&&Ao(_0x104b09,_0x161ad0,_0x3f617a),_0x3f617a;},fs=(_0x3865c6,_0x50709a)=>(_0x92ef63,_0x48a45a)=>_0x50709a(_0x92ef63,_0x48a45a,_0x3865c6);const $o='AUTHZ_URL_KEY',jo=_0x2e5b1c(0x1eb);let yt=class extends _0x36403b{constructor(_0x3127a6,_0x1400d7){const _0x582f24=_0x2e5b1c;super(),this[_0x582f24(0x423)]=_0x3127a6,this[_0x582f24(0x338)]=_0x1400d7,this[_0x582f24(0x285)]();}['_initMergeInterceptor'](){const _0x3fe165=_0x2e5b1c,_0x374d96=this;this[_0x3fe165(0x294)](this[_0x3fe165(0x423)][_0x3fe165(0x17b)]({'priority':0x3e7,'interceptor':_0x441ebe({'isMatch'(_0xc625b4){const _0x93d93a=_0x3fe165;var _0x37e04a;if(_0xc625b4[_0x93d93a(0x41a)]==='POST'&&((_0x37e04a=_0xc625b4[_0x93d93a(0x296)])!=null&&_0x37e04a[_0x93d93a(0x12f)])){const {objectID:_0x5c2627,objectType:_0x17205e}=_0xc625b4[_0x93d93a(0x296)][_0x93d93a(0x12f)]||{};if(!_0x5c2627||_0x17205e===void 0x0)return!0x1;const _0x469d5b=_0x374d96['_getAPIPrefixPath']()+'/'+_0x17205e+_0x93d93a(0x489)+_0x5c2627+_0x93d93a(0x3df);if(_0xc625b4[_0x93d93a(0x2c3)]===_0x469d5b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1a8894){const _0x683aa3=_0x3fe165;var _0x42b6b0;return(_0x42b6b0=_0x1a8894[_0x683aa3(0x296)])==null?void 0x0:_0x42b6b0[_0x683aa3(0x12f)];},'mergeParamsToRequest'(_0x23c52e,_0x3376e7){const _0x155127=_0x3fe165,_0x97940b=_0x374d96[_0x155127(0x2c9)]()+_0x155127(0x472),_0x56eb28=_0x23c52e[_0x155127(0x212)]((_0x200444,_0x13743a)=>{const _0x2650df=_0x155127,{unitID:_0x85cdb8,objectID:_0x586dfe,objectType:_0x4c2fab,actions:_0x36eb93}=_0x13743a;return _0x200444[_0x85cdb8]||(_0x200444[_0x85cdb8]={}),_0x200444[_0x85cdb8][_0x586dfe]||(_0x200444[_0x85cdb8][_0x586dfe]={'objectID':_0x586dfe,'objectType':_0x4c2fab,'actions':[]}),_0x200444[_0x85cdb8][_0x586dfe]['actions'][_0x2650df(0x2f1)](..._0x36eb93),_0x200444;},{}),_0x4bdbd0=[];for(const _0x236fb9 in _0x56eb28)for(const _0x406685 in _0x56eb28[_0x236fb9]){const {actions:_0x83aa87,objectType:_0x251272}=_0x56eb28[_0x236fb9][_0x406685],_0x472b30=[...new Set(_0x83aa87)];_0x4bdbd0['push']({'unitID':_0x236fb9,'objectID':_0x406685,'objectType':_0x251272,'actions':_0x472b30});}return new _0x1baa38(_0x155127(0x347),_0x97940b,{'headers':_0x3376e7[_0x155127(0x38e)],'withCredentials':_0x3376e7['withCredentials'],'responseType':_0x3376e7[_0x155127(0x486)],'body':{'requests':_0x4bdbd0}});}},{'distributeResult'(_0x26d120,_0x161378){const _0x5cfbad=_0x3fe165,{objectActions:_0x3d18c8}=_0x26d120;return _0x161378[_0x5cfbad(0x1c7)](_0x224b92=>{const _0x177990=_0x5cfbad,{unitID:_0x4f99c6,objectID:_0x3ac4f7,actions:_0x1b1e9c}=_0x224b92,_0x36ad17=_0x3d18c8[_0x177990(0x2c5)](_0x40b2d2=>_0x40b2d2[_0x177990(0x3a4)]===_0x4f99c6&&_0x40b2d2[_0x177990(0x37d)]===_0x3ac4f7),_0x34fc70=_0x1b1e9c[_0x177990(0x1c7)](_0x3a2d2a=>_0x36ad17==null?void 0x0:_0x36ad17[_0x177990(0x1ba)]['find'](_0x487608=>_0x487608[_0x177990(0x3bb)]===_0x3a2d2a))[_0x177990(0x133)](_0x2759f6=>!!_0x2759f6);return{'config':_0x224b92,'result':{'actions':_0x34fc70,'error':_0x26d120[_0x177990(0x30b)]}};});}})}));}[_0x2e5b1c(0x2c9)](){const _0x1dfbb3=_0x2e5b1c;var _0x323b17;return(_0x323b17=this[_0x1dfbb3(0x338)][_0x1dfbb3(0x142)]($o))!=null?_0x323b17:jo;}async['create'](_0xa4cccc){const _0x49fe8c=_0x2e5b1c,_0xfecd9b=this[_0x49fe8c(0x2c9)]()+'/'+_0xa4cccc[_0x49fe8c(0x2a5)]+_0x49fe8c(0x2da);return(await this[_0x49fe8c(0x423)][_0x49fe8c(0x1e3)](_0xfecd9b,{'body':_0xa4cccc}))[_0x49fe8c(0x12f)][_0x49fe8c(0x37d)]||'';}async[_0x2e5b1c(0x259)](_0x383332){const _0xb8e92b=_0x2e5b1c,_0x55159e=this[_0xb8e92b(0x2c9)]()+_0xb8e92b(0x179);return(await this[_0xb8e92b(0x423)]['post'](_0x55159e,{'body':_0x383332}))[_0xb8e92b(0x12f)][_0xb8e92b(0x44e)];}async[_0x2e5b1c(0x3b1)](_0x266144){const _0x966cb9=_0x2e5b1c,_0x480f83=this[_0x966cb9(0x2c9)]()+'/'+_0x266144[_0x966cb9(0x2a5)]+_0x966cb9(0x489)+_0x266144[_0x966cb9(0x37d)];await this[_0x966cb9(0x423)][_0x966cb9(0x315)](_0x480f83,{'body':_0x266144});}async[_0x2e5b1c(0x16d)](_0x28933c){const _0x22cf36=_0x2e5b1c,_0x356680=this['_getAPIPrefixPath']()+'/'+_0x28933c[_0x22cf36(0x2a5)]+_0x22cf36(0x489)+_0x28933c[_0x22cf36(0x37d)]+'/allowed';return(await this[_0x22cf36(0x423)][_0x22cf36(0x1e3)](_0x356680,{'body':_0x28933c}))[_0x22cf36(0x12f)][_0x22cf36(0x1ba)];}async[_0x2e5b1c(0x3a6)](_0x311596){const _0x162984=_0x2e5b1c,_0x2480b8=this[_0x162984(0x2c9)]()+_0x162984(0x472);return(await this[_0x162984(0x423)]['post'](_0x2480b8,{'body':{'requests':_0x311596}}))['body'][_0x162984(0x19f)];}async['listRoles'](_0x5a15e9){const _0x1aa9e2=_0x2e5b1c,_0x3a1bf1=this[_0x1aa9e2(0x2c9)]()+'/'+_0x5a15e9[_0x1aa9e2(0x2a5)]+_0x1aa9e2(0x1e6),_0x11c9dd=await this[_0x1aa9e2(0x423)][_0x1aa9e2(0x1e3)](_0x3a1bf1,{'body':_0x5a15e9});return{'roles':_0x11c9dd['body'][_0x1aa9e2(0x475)],'actions':_0x11c9dd[_0x1aa9e2(0x12f)][_0x1aa9e2(0x1ba)]};}async['deleteCollaborator'](_0xf39163){const _0x5342ea=_0x2e5b1c,_0x57b76b=this[_0x5342ea(0x2c9)]()+'/collaborator';await this['_HTTPService'][_0x5342ea(0x18d)](_0x57b76b,{'params':{'collaboratorID':_0xf39163['collaboratorID'],'objectID':_0xf39163['objectID'],'unitID':_0xf39163[_0x5342ea(0x3a4)]}});}async[_0x2e5b1c(0x333)](_0x5ab9de){const _0x3f55b5=_0x2e5b1c,_0x5cc25b=this['_getAPIPrefixPath']()+_0x3f55b5(0x1af);await this[_0x3f55b5(0x423)][_0x3f55b5(0x234)](_0x5cc25b,{'body':_0x5ab9de});}async['createCollaborator'](_0x806c63){const _0x16e419=_0x2e5b1c,_0x51411b=this[_0x16e419(0x2c9)]()+_0x16e419(0x1af);await this[_0x16e419(0x423)][_0x16e419(0x1e3)](_0x51411b,{'body':_0x806c63});}async['listCollaborators'](_0xf19240){const _0x2e195e=_0x2e5b1c,_0x587416=this[_0x2e195e(0x2c9)]()+_0x2e195e(0x1af);return(await this[_0x2e195e(0x423)][_0x2e195e(0x18f)](_0x587416,{'params':{'objectID':_0xf19240[_0x2e195e(0x37d)],'unitID':_0xf19240[_0x2e195e(0x3a4)]}}))['body'][_0x2e195e(0x33e)];}async[_0x2e5b1c(0x20f)](_0x1b697b){const _0x578340=_0x2e5b1c,_0xaa56c2=this['_getAPIPrefixPath']()+_0x578340(0x1af);await this[_0x578340(0x423)][_0x578340(0x315)](_0xaa56c2,{'body':_0x1b697b});}};yt=Lo([fs(0x0,_0x5c7fae(_0x35343d)),fs(0x1,_0x5c7fae(_0x401b9d))],yt);var xo=Object[_0x2e5b1c(0x2de)],Ho=Object[_0x2e5b1c(0x41c)],ko=(_0x555805,_0x4dad8f,_0x2eeea7,_0x4d306)=>{for(var _0x554c4c=_0x4d306>0x1?void 0x0:_0x4d306?Ho(_0x4dad8f,_0x2eeea7):_0x4dad8f,_0x1d225d=_0x555805['length']-0x1,_0x10d1b7;_0x1d225d>=0x0;_0x1d225d--)(_0x10d1b7=_0x555805[_0x1d225d])&&(_0x554c4c=(_0x4d306?_0x10d1b7(_0x4dad8f,_0x2eeea7,_0x554c4c):_0x10d1b7(_0x554c4c))||_0x554c4c);return _0x4d306&&_0x554c4c&&xo(_0x4dad8f,_0x2eeea7,_0x554c4c),_0x554c4c;},pt=(_0x2f606c,_0x509090)=>(_0x35337a,_0x471aa9)=>_0x509090(_0x35337a,_0x471aa9,_0x2f606c);const Bo=[_0x2e5b1c(0x2b9),_0x2e5b1c(0x381),_0x2e5b1c(0x188),_0x2e5b1c(0x444),_0x2e5b1c(0x470)],Vo=0x5*0x400*0x400,Fo=_0x2e5b1c(0x3fe),Wo='/universer-api/stream/file/upload',Go=_0x2e5b1c(0x2d6),Yo=_0x2e5b1c(0x445);let Mt=class{constructor(_0x36cf52,_0x52b5e4,_0x53fb52){const _0x518ccf=_0x2e5b1c;l(this,'_waitCount',0x0),l(this,_0x518ccf(0x1a3),new _0x47a81b()),l(this,'change$',this[_0x518ccf(0x1a3)]),l(this,_0x518ccf(0x28d),new Map()),(this[_0x518ccf(0x17e)]=_0x36cf52,this[_0x518ccf(0x338)]=_0x52b5e4,this[_0x518ccf(0x1ae)]=_0x53fb52);}[_0x2e5b1c(0x2f5)](_0x28e44b){const _0xac2bd8=_0x2e5b1c;this[_0xac2bd8(0x27a)]=_0x28e44b,this[_0xac2bd8(0x1a3)][_0xac2bd8(0x244)](_0x28e44b);}[_0x2e5b1c(0x248)](_0x33ac02,_0x3fd5bc){const _0x9dcf2f=_0x2e5b1c;if(_0x3fd5bc===_0x2639d9[_0x9dcf2f(0x36a)]){const _0x5b3a81=new Image();return _0x5b3a81['src']=_0x33ac02,_0x5b3a81;}return this[_0x9dcf2f(0x28d)][_0x9dcf2f(0x18f)](_0x33ac02);}[_0x2e5b1c(0x2ca)](_0x3a292a,_0x48b5a2,_0x2fe4ca){const _0x577498=_0x2e5b1c;_0x48b5a2===_0x2639d9[_0x577498(0x36a)]||_0x2fe4ca==null||this['_imageSourceCache']['set'](_0x3a292a,_0x2fe4ca);}async['getImage'](_0x569aa){const _0x419988=_0x2e5b1c;try{const _0x2a8ed7=this[_0x419988(0x26b)](this[_0x419988(0x376)](),''+_0x569aa),_0x5320fc=(await this['_httpService'][_0x419988(0x18f)](_0x2a8ed7))[_0x419988(0x12f)];return _0x5320fc[_0x419988(0x30b)]&&_0x5320fc['error'][_0x419988(0x2fa)]===Ms['OK']?Promise[_0x419988(0x430)](_0x5320fc[_0x419988(0x2c3)]):Promise['reject'](_0x5320fc[_0x419988(0x30b)]);}catch(_0xe466a){return Promise['reject'](_0xe466a);}}async[_0x2e5b1c(0x373)](_0x4f0e30){const _0x46dab4=_0x2e5b1c;let _0xac3c3='';if(!Bo[_0x46dab4(0x3a0)](_0x4f0e30[_0x46dab4(0x255)]))return this[_0x46dab4(0x151)](),Promise[_0x46dab4(0x38a)](new Error(_0x29d71a['ERROR_IMAGE_TYPE']));if(_0x4f0e30[_0x46dab4(0x362)]>Vo)return this[_0x46dab4(0x151)](),Promise['reject'](new Error(_0x29d71a[_0x46dab4(0x3e1)]));try{const _0x32d200=new FormData();_0x32d200[_0x46dab4(0x40c)](_0x46dab4(0x2ad),_0x4f0e30);const _0x100567=this['_univerInstanceService'][_0x46dab4(0x1e7)](),_0x1f75aa=_0x100567==null?void 0x0:_0x100567[_0x46dab4(0x426)]();if(!_0x1f75aa)throw new Error(_0x46dab4(0x15e));const _0x3ce7b9=this[_0x46dab4(0x12d)]()+_0x46dab4(0x242)+_0x4f0e30[_0x46dab4(0x362)][_0x46dab4(0x19b)]()+_0x46dab4(0x215)+As['UnitEmbedded']+'&assign='+encodeURIComponent(_0x1f75aa),_0x561f6d=await(await fetch(_0x3ce7b9,{'method':_0x46dab4(0x347),'body':_0x32d200}))[_0x46dab4(0x236)]();if(typeof _0x561f6d[_0x46dab4(0x14e)]!=_0x46dab4(0x239))return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x29d71a[_0x46dab4(0x416)]));_0xac3c3=_0x561f6d[_0x46dab4(0x14e)];}catch{return this[_0x46dab4(0x151)](),Promise[_0x46dab4(0x38a)](new Error(_0x29d71a['ERROR_IMAGE']));}return new Promise((_0x59ee4e,_0x44c289)=>{const _0x2f1244=_0x46dab4,_0x3db15f=new FileReader();_0x3db15f[_0x2f1244(0x48c)](_0x4f0e30),_0x3db15f['onload']=_0x292265=>{const _0x56dd94=_0x2f1244;var _0x446a44;const _0x153994=(_0x446a44=_0x292265[_0x56dd94(0x1a8)])==null?void 0x0:_0x446a44['result'];if(_0x153994==null){this[_0x56dd94(0x151)](),_0x44c289(new Error(_0x29d71a[_0x56dd94(0x416)]));return;}const _0x139406=_0x3cea4b[_0x56dd94(0x1ce)](0x6);_0x59ee4e({'imageId':_0x139406,'imageSourceType':_0x2639d9['UUID'],'source':_0xac3c3,'base64Cache':_0x153994,'status':_0x29d71a[_0x56dd94(0x343)]}),this[_0x56dd94(0x151)]();};});}[_0x2e5b1c(0x12d)](){const _0xc7676b=_0x2e5b1c;var _0x125e69;return(_0x125e69=this[_0xc7676b(0x338)][_0xc7676b(0x142)](Fo))!=null?_0x125e69:Wo;}[_0x2e5b1c(0x376)](){const _0x4e69e7=_0x2e5b1c;var _0x239346;return(_0x239346=this['_configService'][_0x4e69e7(0x142)](Go))!=null?_0x239346:Yo;}[_0x2e5b1c(0x26b)](_0x2ac1c2,_0x2da5e2){const _0x3d68a8=_0x2e5b1c;return _0x2ac1c2[_0x3d68a8(0x319)]('{fileID}',_0x2da5e2);}[_0x2e5b1c(0x151)](){const _0x28193=_0x2e5b1c;this[_0x28193(0x27a)]-=0x1,this['_change$'][_0x28193(0x244)](this[_0x28193(0x27a)]);}};Mt=ko([pt(0x0,_0x5c7fae(_0x35343d)),pt(0x1,_0x401b9d),pt(0x2,_0x5c7fae(_0x30b2f2))],Mt);var Ko=Object[_0x2e5b1c(0x2de)],Xo=Object[_0x2e5b1c(0x41c)],Jo=(_0x244045,_0x17bc6a,_0x49a4bc,_0x56aaca)=>{const _0x4f429a=_0x2e5b1c;for(var _0x8f6248=_0x56aaca>0x1?void 0x0:_0x56aaca?Xo(_0x17bc6a,_0x49a4bc):_0x17bc6a,_0x159361=_0x244045[_0x4f429a(0x1bb)]-0x1,_0x124aad;_0x159361>=0x0;_0x159361--)(_0x124aad=_0x244045[_0x159361])&&(_0x8f6248=(_0x56aaca?_0x124aad(_0x17bc6a,_0x49a4bc,_0x8f6248):_0x124aad(_0x8f6248))||_0x8f6248);return _0x56aaca&&_0x8f6248&&Ko(_0x17bc6a,_0x49a4bc,_0x8f6248),_0x8f6248;},Pe=(_0x46221e,_0xb23720)=>(_0x49a681,_0x3178e1)=>_0xb23720(_0x49a681,_0x3178e1,_0x46221e);let Ke=class extends _0x4bff65{constructor(_0x116da4,_0x4f55cb,_0x2091aa,_0x234f87,_0x17e625){const _0x151785=_0x2e5b1c;super(),this[_0x151785(0x3ac)]=_0x116da4,this[_0x151785(0x1ae)]=_0x4f55cb,this[_0x151785(0x292)]=_0x2091aa,this[_0x151785(0x385)]=_0x234f87,this[_0x151785(0x452)]=_0x17e625,this[_0x151785(0x24d)](),this[_0x151785(0x21c)]();}['_initCloseConn'](){const _0x19c788=_0x2e5b1c,_0x296116=async _0x1ade10=>{const _0xfa2d03=_0x5851;(await this[_0xfa2d03(0x385)][_0xfa2d03(0x205)](_0x1ade10))[_0xfa2d03(0x372)][_0xfa2d03(0x195)](_0x48e324(_0x416451=>_0x416451[_0xfa2d03(0x2f6)]===_0x410792[_0xfa2d03(0x2e2)]),_0x429e28(this[_0xfa2d03(0x3be)]))[_0xfa2d03(0x3c4)](_0x481d78=>{const _0xd50746=_0xfa2d03,_0x1e9af2=_0x481d78,{reason:_0x5777d9}=_0x1e9af2[_0xd50746(0x249)];this[_0xd50746(0x3ac)][_0xd50746(0x18f)](_0x29e945)[_0xd50746(0x367)]({'type':_0x68ddaa[_0xd50746(0x253)],'content':this[_0xd50746(0x452)]['t'](_0xd50746(0x2d5))+'('+_0x5777d9+')'}),this[_0xd50746(0x292)]['updatePermissionPoint'](new _0x477da8(_0x1ade10)['id'],!0x1),this[_0xd50746(0x385)][_0xd50746(0x31a)](_0x1ade10);});};_0x9334d7(this['_univerInstanceService'][_0x19c788(0x1a4)](_0x3bf0d9[_0x19c788(0x2c7)]),this['_univerInstanceService'][_0x19c788(0x1a4)](_0x3bf0d9['UNIVER_DOC']))[_0x19c788(0x195)](_0x4b551a(_0x300d5b=>_0x300d5b[_0x19c788(0x426)]()),_0x48e324(_0x570682=>!_0x852e4e(_0x570682)),_0x429e28(this['dispose$']))['subscribe'](_0x17300a=>{_0x296116(_0x17300a);});}[_0x2e5b1c(0x24d)](){const _0x4f5002=_0x2e5b1c,_0x151a56=async _0x43aa52=>{const _0x19aff1=_0x5851;(await this[_0x19aff1(0x385)][_0x19aff1(0x205)](_0x43aa52))['event$'][_0x19aff1(0x195)](_0x48e324(_0x3068f9=>_0x3068f9[_0x19aff1(0x2f6)]===_0x410792[_0x19aff1(0x168)]),_0x429e28(this['dispose$']))[_0x19aff1(0x3c4)](_0x56fed6=>{const _0x2476bc=_0x19aff1,_0x266d27=_0x56fed6,{objectId:_0x4b8699}=_0x266d27['data'],_0x1ea43a=this[_0x2476bc(0x3ac)][_0x2476bc(0x18f)](_0xa93b7d);_0x4b8699===_0x43aa52?_0x1ea43a['initWorkbookPermissionChange'](_0x43aa52):_0x1ea43a[_0x2476bc(0x36f)](_0x43aa52,_0x4b8699);});};_0x9334d7(this['_univerInstanceService'][_0x4f5002(0x1a4)](_0x3bf0d9[_0x4f5002(0x2c7)]),this[_0x4f5002(0x1ae)]['getTypeOfUnitAdded$'](_0x3bf0d9['UNIVER_DOC']))[_0x4f5002(0x195)](_0x4b551a(_0x55fa61=>_0x55fa61[_0x4f5002(0x426)]()),_0x48e324(_0x2ccf74=>!_0x852e4e(_0x2ccf74)),_0x429e28(this['dispose$']))[_0x4f5002(0x3c4)](_0x17beed=>{_0x151a56(_0x17beed);});}};Ke=Jo([_0x486866(_0x446a6f[_0x2e5b1c(0x488)],Ke),Pe(0x0,_0x5c7fae(_0x5d259e)),Pe(0x1,_0x30b2f2),Pe(0x2,_0x241366),Pe(0x3,_0x5c7fae(ae)),Pe(0x4,_0x5c7fae(_0x12e5b3))],Ke);const zo=_0x2e5b1c(0x26f);var Fs=Object['defineProperty'],qo=Object['getOwnPropertyDescriptor'],Zo=(_0x179ae7,_0x5a8655,_0x58b9d1)=>_0x5a8655 in _0x179ae7?Fs(_0x179ae7,_0x5a8655,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58b9d1}):_0x179ae7[_0x5a8655]=_0x58b9d1,Qo=(_0x13e1f1,_0x41eaf2,_0x428d56,_0x313fb5)=>{const _0x151106=_0x2e5b1c;for(var _0x5b3273=_0x313fb5>0x1?void 0x0:_0x313fb5?qo(_0x41eaf2,_0x428d56):_0x41eaf2,_0x24641b=_0x13e1f1[_0x151106(0x1bb)]-0x1,_0x451229;_0x24641b>=0x0;_0x24641b--)(_0x451229=_0x13e1f1[_0x24641b])&&(_0x5b3273=(_0x313fb5?_0x451229(_0x41eaf2,_0x428d56,_0x5b3273):_0x451229(_0x5b3273))||_0x5b3273);return _0x313fb5&&_0x5b3273&&Fs(_0x41eaf2,_0x428d56,_0x5b3273),_0x5b3273;},Ve=(_0x18f360,_0x2ed247)=>(_0x4eda55,_0x3b67e1)=>_0x2ed247(_0x4eda55,_0x3b67e1,_0x18f360),ea=(_0x4ff82e,_0x2e4c6a,_0x47d9ca)=>Zo(_0x4ff82e,_0x2e4c6a+'',_0x47d9ca);const ta=_0x2e5b1c(0x300);let At=class extends _0x250c9c{constructor(_0x548fc7={},_0x24e3d2,_0x148cad,_0x46d4b4,_0x58bc18){const _0x30518f=_0x2e5b1c;super(),this[_0x30518f(0x410)]=_0x548fc7,this[_0x30518f(0x2ec)]=_0x24e3d2,this[_0x30518f(0x3c0)]=_0x148cad,this[_0x30518f(0x3ac)]=_0x46d4b4,this[_0x30518f(0x338)]=_0x58bc18;const {..._0xfce2c4}=this[_0x30518f(0x410)];this['_configService']['setConfig'](zo,_0xfce2c4);}[_0x2e5b1c(0x3d1)](){const _0x521deb=_0x2e5b1c;this[_0x521deb(0x25c)]();}[_0x2e5b1c(0x214)](){const _0x3e2354=_0x2e5b1c;this[_0x3e2354(0x1b4)]();}[_0x2e5b1c(0x25c)](){const _0x23808e=_0x2e5b1c;var _0x48c261,_0x1b1b00,_0x3e2ca0,_0x525de6;this[_0x23808e(0x3ac)]['has'](_0x1bd332)&&this[_0x23808e(0x2ec)][_0x23808e(0x30b)](_0x23808e(0x30f),_0x23808e(0x466));let _0x54615f=[[_0x1bd332,{'useClass':Nt}],[ae],[Ft],[_0x35343d],[Vs,{'useClass':Eo}],[oe],[D],[_0x4058ad],[Qe],[et],[Ze],[Bt],[st],[Ls],[Ke],[Us,{'useClass':(_0x1b1b00=(_0x48c261=this[_0x23808e(0x410)])==null?void 0x0:_0x48c261[_0x23808e(0x3af)])!=null?_0x1b1b00:Ct}],[_0x4a8183,{'useClass':_0x182506}],[_0x39a0ed,{'useClass':Pt}],[_0x136777,{'useClass':yt}],[_0x976a19,{'useClass':Mt}],[Ae],[We],[ye],[Ge],[fe]];(_0x3e2ca0=this['_config'])!=null&&_0x3e2ca0[_0x23808e(0x3e2)]&&_0x54615f[_0x23808e(0x2f1)]([it,{'useClass':nr}]),_0x54615f=_0x3a5a4e(_0x54615f,(_0x525de6=this[_0x23808e(0x410)])==null?void 0x0:_0x525de6[_0x23808e(0x481)]),_0x54615f['forEach'](_0x524ed8=>this[_0x23808e(0x3ac)][_0x23808e(0x47b)](_0x524ed8)),this['_initModules']();}[_0x2e5b1c(0x1b4)](){const _0x5d62b5=_0x2e5b1c;this[_0x5d62b5(0x294)](this['_renderManagerService']['registerRenderModule'](_0x3bf0d9['UNIVER_DOC'],[Ye])),this[_0x5d62b5(0x294)](this[_0x5d62b5(0x3c0)][_0x5d62b5(0x2a8)](_0x3bf0d9['UNIVER_SHEET'],[wt]));}['_initModules'](){const _0x374657=_0x2e5b1c;var _0x133172,_0x59e557;this['_injector']['get'](_0x35343d)[_0x374657(0x17b)]({'priority':0x14,'interceptor':_0x55c921({'maxParallel':0x6})}),(_0x133172=this[_0x374657(0x410)])!=null&&_0x133172[_0x374657(0x18c)]||this[_0x374657(0x3ac)]['get'](D)['disableLocalCache'](),(_0x59e557=this[_0x374657(0x410)])!=null&&_0x59e557['enableAuthServer']&&this[_0x374657(0x3ac)][_0x374657(0x18f)](st),this[_0x374657(0x3ac)][_0x374657(0x18f)](Ae),this['_injector'][_0x374657(0x250)](ye)&&this['_injector'][_0x374657(0x18f)](ye);}};ea(At,_0x2e5b1c(0x411),ta),At=Qo([_0x2f7773(_0x7a88b),Ve(0x1,_0x1cafe9),Ve(0x2,_0x363058),Ve(0x3,_0x5c7fae(_0x5d259e)),Ve(0x4,_0x401b9d)],At);export{$o as AUTHZ_URL_KEY,yt as AuthzIoHttpService,On as COLLAB_SUBMIT_CHANGESET_URL_KEY,gn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,tt as CollaborationEntity,bt as CollaborationSession,ae as CollaborationSessionService,Ct as CollaborationSocketService,w as CollaborationStatus,to as CollaborationStatusDisplay,Ls as CommentService,We as DataLoaderController,ye as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,pn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,Us as ICollaborationSocketService,Vs as IURLService,Mt as ImageIoService,Tn as LOCAL_CACHE_INTERVAL_KEY,wn as LOGIN_URL_KEY,D as LocalCacheService,In as RETRY_CONNECTING_INTERVAL_KEY,Cn as RETRY_CONNECTING_MAX_COUNT_KEY,mn as SEND_CHANGESET_TIMEOUT_KEY,_n as SNAPSHOT_SERVER_URL_KEY,dn as SNAPSHOT_URL_KEY,W as SessionStatus,jr as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Pt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,Eo as WebURLService,Nn as deserializeToCombResponse,yn as serializeCombRequest};
|
1
|
+
const _0x5b7eaf=_0x4581;(function(_0x4935e1,_0x40ad2f){const _0x3e349c=_0x4581,_0x8c2fe3=_0x4935e1();while(!![]){try{const _0x56e8bf=parseInt(_0x3e349c(0x19f))/0x1*(parseInt(_0x3e349c(0x1f2))/0x2)+parseInt(_0x3e349c(0x220))/0x3*(parseInt(_0x3e349c(0x2ff))/0x4)+-parseInt(_0x3e349c(0xdb))/0x5*(parseInt(_0x3e349c(0x16f))/0x6)+-parseInt(_0x3e349c(0x302))/0x7+parseInt(_0x3e349c(0x391))/0x8+parseInt(_0x3e349c(0x403))/0x9*(-parseInt(_0x3e349c(0x3d8))/0xa)+parseInt(_0x3e349c(0x122))/0xb*(parseInt(_0x3e349c(0xd8))/0xc);if(_0x56e8bf===_0x40ad2f)break;else _0x8c2fe3['push'](_0x8c2fe3['shift']());}catch(_0x4fb0e8){_0x8c2fe3['push'](_0x8c2fe3['shift']());}}}(_0x5d04,0x1dcd4));var zs=Object[_0x5b7eaf(0x3b0)],qs=(_0xf3a98,_0x1d1294,_0x39cd7f)=>_0x1d1294 in _0xf3a98?zs(_0xf3a98,_0x1d1294,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x39cd7f}):_0xf3a98[_0x1d1294]=_0x39cd7f,l=(_0x290ded,_0x3a1de5,_0x39ccc3)=>qs(_0x290ded,typeof _0x3a1de5!=_0x5b7eaf(0x200)?_0x3a1de5+'':_0x3a1de5,_0x39ccc3);import{createIdentifier as _0x4c867e,Disposable as _0x61b58b,DisposableCollection as _0x3eb24f,toDisposable as _0xa7e5b7,Inject as _0x2c1848,IConfigService as _0x5debaa,ILogService as _0x4cc166,UniverInstanceType as _0x275c2c,UserManagerService as _0xc05435,IUniverInstanceService as _0x52988f,RxDisposable as _0x33f191,LocaleService as _0x1e7bf5,Optional as _0x3b757a,Injector as _0x1637c5,Tools as _0x23d1c2,ILocalStorageService as _0x2d60b4,ICommandService as _0x2521f5,JSONX as _0x1973d8,CommandType as _0xb6689e,IPermissionService as _0x133542,IUndoRedoService as _0x948466,sequenceExecute as _0x170714,Rectangle as _0x5d35ef,OnLifecycle as _0x51ea65,LifecycleStages as _0x2a2247,COLORS as _0x5bc0e1,ColorKit as _0x231cf3,fromEventSubject as _0x49e533,ThemeService as _0x66a40c,useDependency as _0xaf8fb0,connectInjector as _0x4d4576,Workbook as _0x3d2a68,isInternalEditorID as _0x202850,LocalUndoRedoService as _0x3ad5fe,IContextService as _0x1a5f7f,Plugin as _0x1ae10b,IAuthzIoService as _0x3ffcd2,mergeOverrideWithDependencies as _0x21b090,DependentOn as _0x2d6767}from'@univerjs/core';import{Subject as _0x51e21c,merge as _0x3b6402,takeUntil as _0x53c8e3,BehaviorSubject as _0xdb5176,distinctUntilChanged as _0x2fe2dd,fromEvent as _0x3a0781,map as _0x3ae97d,shareReplay as _0x42dad9,take as _0x4f24d1,of as _0x175cbd,debounceTime as _0x46ac8e,filter as _0x4f8d22,switchMap as _0x48fb69,combineLatest as _0x43e523,concatMap as _0x4244f3,mapTo as _0x485932}from'rxjs';import{map as _0x5a8d9c,take as _0x2efa4b,filter as _0x324b00,delay as _0x38bf87,throttleTime as _0x1a508f,takeUntil as _0x3c9e95,switchMap as _0x198d43}from'rxjs/operators';import{MessageType as _0x21289,Tooltip as _0x4fd136}from'@univerjs/design';import{IBeforeCloseService as _0x439db2,IMessageService as _0x3df3ba,INotificationService as _0x233335,useObservable as _0x3ab99e,BuiltInUIPart as _0x59a5b2,IUIPartsService as _0x467380}from'@univerjs/ui';import{HTTPService as _0x3b1152,WebSocketService as _0x1335ed,MergeInterceptorFactory as _0xdaa3cc,HTTPRequest as _0x594dba,IHTTPImplementation as _0x237296,XHRHTTPImplementation as _0x5838d1,ThresholdInterceptorFactory as _0x3a87f1}from'@univerjs/network';import{CollaborationEvent as _0x47275c,parseChangesetToProtocol as _0xb2fff8,ISnapshotServerService as _0x2ea08d,isTransformMutationFailure as _0x43078a,isTransformMutationsWithChangesetSuccess as _0x3d99d4,ITransformService as _0x364c40,RevisionService as _0xe33365,mapDocumentTypeToUniverType as _0x301c06,isTransformChangesetsSuccess as _0x1d473e,parseProtocolChangeset as _0x2a48dc,CompressMutationService as _0x31a667,SnapshotService as _0xb82a17,textEncoder as _0x2d7a75,b64DecodeUnicode as _0x2db83b,isTransformMutationsWithChangesetFailure as _0x4983c8,UniverCollaborationPlugin as _0x407ee7}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x2dbeaf}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x2dea1c,RichTextEditingMutation as _0x193233,SetTextSelectionsOperation as _0x2eec51,DocSkeletonManagerService as _0x38c1fb}from'@univerjs/docs';import{DocIMEInputManagerService as _0x44d8a2,DocStateChangeManagerService as _0x36d82f,NodePositionConvertToCursor as _0x1fe3c6,isValidRectRange as _0x436c3a,NodePositionConvertToRectRange as _0x13f9a5,TEXT_RANGE_LAYER_INDEX as _0xe8336a,SetDocZoomRatioOperation as _0x3215b2}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x12a4eb,SetSelectionsOperation as _0x228778,InsertSheetMutation as _0x4d0013,EmptyMutation as _0x2db5c8,WorkbookEditablePermission as _0x53288a,RefRangeService as _0x2b89cb,EffectRefRangId as _0x2643ca,handleIRemoveRow as _0x1e7d60,handleIRemoveCol as _0x3dfc09,handleMoveRange as _0x117f9c,handleInsertRow as _0x6e3f61,handleInsertRangeMoveRight as _0x598b24,handleInsertRangeMoveDown as _0x10e41d,handleInsertCol as _0x1f3c90,handleDeleteRangeMoveUp as _0x28fa28,handleDeleteRangeMoveLeft as _0x14e037,runRefRangeMutations as _0x1e6099,SetWorksheetActivateCommand as _0x593e9d}from'@univerjs/sheets';import{IRenderManagerService as _0xeaee19,Shape as _0x42bfc5,Rect as _0x3ec5cc,getColor as _0x318853,RegularPolygon as _0x1ba1bf,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5c6602,Vector2 as _0x113335}from'@univerjs/engine-render';import{ImageSourceType as _0x2ab571,ImageUploadStatusType as _0x2980ad,IImageIoService as _0x3f8c0c}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0xb2f3c2,serializeRangeWithSheet as _0x5c5889}from'@univerjs/engine-formula';import _0x4fa622 from'lodash/debounce';import{VIEWPORT_KEY as _0x343862,getCoordByCell as _0x90ed93,getSheetObject as _0x5c33e8,SheetSkeletonManagerService as _0x15b55c,SheetPermissionInitController as _0x488d5f}from'@univerjs/sheets-ui';import _0x3da894,{forwardRef as _0x25876f,useRef as _0x4a2a3f,createElement as _0x3cb687,useCallback as _0x167c1f}from'react';import _0x147b10 from'clsx';import{IRemoteInstanceService as _0xdc1252}from'@univerjs/rpc';const un=_0x5b7eaf(0x130),dn='/universer-api/snapshot',fn=_0x5b7eaf(0x1e1),mn='SEND_CHANGESET_TIMEOUT',gn=0x7d0,Sn=_0x5b7eaf(0x22d),pn=_0x5b7eaf(0x1d3),vn=_0x5b7eaf(0x1b1),In=0x7530,Ns=_0x5b7eaf(0x26a),ys=0x4e20,En='RETRY_CONNECTING_INTERVAL',Cn=0x4e20,bn='RETRY_CONNECTING_MAX_COUNT',Tn=0x3,Rn=_0x5b7eaf(0x3c9),On=0x3e8,Dn=_0x5b7eaf(0x1c0),wn=_0x5b7eaf(0x1ac),Pn=_0x5b7eaf(0x174),Nn=_0x5b7eaf(0x219);var Ms=(_0x30f1f2=>(_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x362)]=0x0]='UNDEFINED',_0x30f1f2[_0x30f1f2['OK']=0x1]='OK',_0x30f1f2[_0x30f1f2['INTERNAL_ERROR']=0x2]=_0x5b7eaf(0x2ad),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x3b7)]=0x3]=_0x5b7eaf(0x3b7),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x12c)]=0x4]=_0x5b7eaf(0x12c),_0x30f1f2[_0x30f1f2['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x2b2)]=0x6]='ALREADY_EXISTS',_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x298)]=0x7]=_0x5b7eaf(0x298),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x3b1)]=0x8]=_0x5b7eaf(0x3b1),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x261)]=0x9]=_0x5b7eaf(0x261),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x3cf)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x2ae)]=0x1771]=_0x5b7eaf(0x2ae),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x380)]=0x1772]=_0x5b7eaf(0x380),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x1e2)]=0x1b59]='APPLY_REJECT',_0x30f1f2[_0x30f1f2['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x5b7eaf(0x102),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x270)]=0x1b5b]=_0x5b7eaf(0x270),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x156)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x347)]=0x1f41]=_0x5b7eaf(0x347),_0x30f1f2[_0x30f1f2['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x5b7eaf(0x132),_0x30f1f2[_0x30f1f2['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x5b7eaf(0x341),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x152)]=0x232b]=_0x5b7eaf(0x152),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0xe3)]=0x232c]=_0x5b7eaf(0xe3),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x20c)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x273)]=0x2711]=_0x5b7eaf(0x273),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x3b6)]=0x2712]=_0x5b7eaf(0x3b6),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0xfa)]=0x2713]=_0x5b7eaf(0xfa),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x1a2)]=0x2714]=_0x5b7eaf(0x1a2),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x38c)]=-0x1]=_0x5b7eaf(0x38c),_0x30f1f2))(Ms||{}),x=(_0x2769d9=>(_0x2769d9[_0x2769d9[_0x5b7eaf(0x1a1)]=0x0]=_0x5b7eaf(0x1a1),_0x2769d9[_0x2769d9['UNIVER_DOC']=0x1]=_0x5b7eaf(0x3ac),_0x2769d9[_0x2769d9['UNIVER_SHEET']=0x2]=_0x5b7eaf(0x18f),_0x2769d9[_0x2769d9['UNIVER_SLIDE']=0x3]=_0x5b7eaf(0xe5),_0x2769d9[_0x2769d9[_0x5b7eaf(0x2b8)]=0x4]=_0x5b7eaf(0x2b8),_0x2769d9[_0x2769d9[_0x5b7eaf(0x38c)]=-0x1]='UNRECOGNIZED',_0x2769d9))(x||{}),I=(_0x384cd9=>(_0x384cd9[_0x384cd9[_0x5b7eaf(0x265)]=0x0]='UNKNOWN_CMD',_0x384cd9[_0x384cd9['HELLO']=0x1]=_0x5b7eaf(0x3da),_0x384cd9[_0x384cd9[_0x5b7eaf(0xcd)]=0x2]=_0x5b7eaf(0xcd),_0x384cd9[_0x384cd9[_0x5b7eaf(0x306)]=0x3]=_0x5b7eaf(0x306),_0x384cd9[_0x384cd9[_0x5b7eaf(0x2e4)]=0x4]=_0x5b7eaf(0x2e4),_0x384cd9[_0x384cd9['HEARTBEAT']=0x5]='HEARTBEAT',_0x384cd9[_0x384cd9[_0x5b7eaf(0x3fa)]=0x6]=_0x5b7eaf(0x3fa),_0x384cd9[_0x384cd9['UNRECOGNIZED']=-0x1]=_0x5b7eaf(0x38c),_0x384cd9))(I||{}),kt=(_0x28bc31=>(_0x28bc31[_0x28bc31[_0x5b7eaf(0x1ba)]=0x0]=_0x5b7eaf(0x1ba),_0x28bc31[_0x28bc31['OK']=0x1]='OK',_0x28bc31[_0x28bc31[_0x5b7eaf(0x38f)]=0x2]='FAIL',_0x28bc31[_0x28bc31['UNRECOGNIZED']=-0x1]=_0x5b7eaf(0x38c),_0x28bc31))(kt||{}),Us=(_0x1cad0d=>(_0x1cad0d[_0x1cad0d[_0x5b7eaf(0x397)]=0x0]=_0x5b7eaf(0x397),_0x1cad0d[_0x1cad0d[_0x5b7eaf(0x1a7)]=0x1]=_0x5b7eaf(0x1a7),_0x1cad0d[_0x1cad0d[_0x5b7eaf(0x15e)]=0x2]=_0x5b7eaf(0x15e),_0x1cad0d[_0x1cad0d['UnitEmbedded']=0x3]=_0x5b7eaf(0x39c),_0x1cad0d[_0x1cad0d[_0x5b7eaf(0x188)]=0x4]='UnitSnapshot',_0x1cad0d[_0x1cad0d[_0x5b7eaf(0x38c)]=-0x1]=_0x5b7eaf(0x38c),_0x1cad0d))(Us||{});function yn(_0x2d6a16){const _0x3298e9=_0x5b7eaf;var _0x3accad,_0x1b937d,_0x17ebcd,_0x39aeeb;const _0x41fbc5=_0x2d6a16[_0x3298e9(0x2da)],_0xa2f71b=JSON[_0x3298e9(0x1bf)](_0x41fbc5);switch(_0xa2f71b[_0x3298e9(0xb8)]){case I[_0x3298e9(0x24c)]:case I['HELLO']:{const _0x5a51b9=_0xa2f71b[_0x3298e9(0x14d)];return{..._0xa2f71b,'data':_0x5a51b9,'cmd':_0xa2f71b[_0x3298e9(0xb8)]};}case I[_0x3298e9(0xcd)]:{const _0x118b45=_0xa2f71b[_0x3298e9(0x2eb)];return{..._0xa2f71b,'data':_0x118b45,'cmd':_0xa2f71b['cmd']};}case I[_0x3298e9(0x3fa)]:{const _0x1539c3=_0xa2f71b[_0x3298e9(0x2f1)];switch(_0x1539c3[_0x3298e9(0x1a0)]){case _0x47275c[_0x3298e9(0x19b)]:return{..._0xa2f71b,'data':{..._0x1539c3,'data':(_0x3accad=_0x1539c3[_0x3298e9(0x36d)])==null?void 0x0:_0x3accad['cs']},'cmd':_0xa2f71b[_0x3298e9(0xb8)]};case _0x47275c[_0x3298e9(0x139)]:return{..._0xa2f71b,'data':{..._0x1539c3,'data':(_0x1b937d=_0x1539c3[_0x3298e9(0x182)])==null?void 0x0:_0x1b937d['cs']},'cmd':_0xa2f71b[_0x3298e9(0xb8)]};case _0x47275c[_0x3298e9(0x151)]:return{..._0xa2f71b,'data':{..._0x1539c3,'data':(_0x17ebcd=_0x1539c3[_0x3298e9(0x214)])==null?void 0x0:_0x17ebcd['cs']},'cmd':_0xa2f71b['cmd']};case _0x47275c[_0x3298e9(0x31d)]:return{..._0xa2f71b,'data':{..._0x1539c3,'data':(_0x39aeeb=_0x1539c3['csRejEvent'])==null?void 0x0:_0x39aeeb['cs']},'cmd':_0xa2f71b[_0x3298e9(0xb8)]};case _0x47275c['UPDATE_CURSOR']:return{..._0xa2f71b,'data':{..._0x1539c3,'data':_0x1539c3[_0x3298e9(0x242)]},'cmd':_0xa2f71b[_0x3298e9(0xb8)]};case _0x47275c['USERS_ENTER']:return{..._0xa2f71b,'data':{..._0x1539c3,'data':_0x1539c3[_0x3298e9(0xa8)]},'cmd':_0xa2f71b[_0x3298e9(0xb8)]};case _0x47275c[_0x3298e9(0x3d2)]:return{..._0xa2f71b,'data':{..._0x1539c3,'data':_0x1539c3[_0x3298e9(0xcb)]},'cmd':_0xa2f71b['cmd']};case _0x47275c[_0x3298e9(0x3cc)]:return{..._0xa2f71b,'data':{..._0x1539c3,'data':_0x1539c3[_0x3298e9(0x117)]},'cmd':_0xa2f71b['cmd']};case _0x47275c[_0x3298e9(0x342)]:case _0x47275c[_0x3298e9(0x3a0)]:return{..._0xa2f71b,'data':{..._0x1539c3,'data':_0x1539c3[_0x3298e9(0x34f)]},'cmd':_0xa2f71b[_0x3298e9(0xb8)]};case _0x47275c[_0x3298e9(0x409)]:return{..._0xa2f71b,'data':{..._0x1539c3,'data':_0x1539c3[_0x3298e9(0x117)]},'cmd':_0xa2f71b[_0x3298e9(0xb8)]};case _0x47275c[_0x3298e9(0x24d)]:return{..._0xa2f71b,'data':_0x1539c3,'cmd':_0xa2f71b[_0x3298e9(0xb8)]};case _0x47275c[_0x3298e9(0x1e9)]:return{..._0xa2f71b,'data':{..._0x1539c3,'data':_0x1539c3[_0x3298e9(0x1ad)]},'cmd':_0xa2f71b[_0x3298e9(0xb8)]};case _0x47275c[_0x3298e9(0x3a9)]:return{..._0xa2f71b,'data':{..._0x1539c3,'data':_0x1539c3[_0x3298e9(0x2b4)]},'cmd':_0xa2f71b[_0x3298e9(0xb8)]};case _0x47275c['SHOULD_CLOSE_CONN']:return{..._0xa2f71b,'data':{..._0x1539c3,'data':_0x1539c3[_0x3298e9(0x121)]},'cmd':_0xa2f71b[_0x3298e9(0xb8)]};default:return _0xa2f71b;}}default:return _0xa2f71b;}}function Mn(_0x25b118){const _0x4ee68e=_0x5b7eaf;switch(_0x25b118[_0x4ee68e(0xb8)]){case I['HEARTBEAT']:case I[_0x4ee68e(0x3da)]:return JSON[_0x4ee68e(0x369)]({'cmd':_0x25b118[_0x4ee68e(0xb8)],'routeKey':_0x25b118[_0x4ee68e(0x23e)]});case I['INGEST']:{let _0x1fb269;switch(_0x25b118['data'][_0x4ee68e(0x1a0)]){case _0x47275c[_0x4ee68e(0x189)]:{_0x1fb269={'eventID':_0x47275c['UPDATE_CURSOR'],'updateCursorEvent':_0x25b118[_0x4ee68e(0x2da)][_0x4ee68e(0x2da)]};break;}case _0x47275c[_0x4ee68e(0x3d2)]:{_0x1fb269={'eventID':_0x47275c[_0x4ee68e(0x3d2)],'leaveEvent':_0x25b118[_0x4ee68e(0x2da)][_0x4ee68e(0x2da)]};break;}case _0x47275c[_0x4ee68e(0x3cd)]:{_0x1fb269={'eventID':_0x47275c['USERS_ENTER'],'joinEvent':_0x25b118[_0x4ee68e(0x2da)][_0x4ee68e(0x2da)]};break;}case _0x47275c[_0x4ee68e(0x3cc)]:{_0x1fb269={'eventID':_0x47275c[_0x4ee68e(0x3cc)],'liveShareNewHost':_0x25b118[_0x4ee68e(0x2da)]['data']};break;}case _0x47275c[_0x4ee68e(0x3a0)]:{_0x1fb269={'eventID':_0x47275c[_0x4ee68e(0x3a0)],'liveShareOperation':_0x25b118['data'][_0x4ee68e(0x2da)]};break;}case _0x47275c[_0x4ee68e(0x409)]:{_0x1fb269={'eventID':_0x47275c[_0x4ee68e(0x409)],'liveShareTerminate':_0x25b118[_0x4ee68e(0x2da)][_0x4ee68e(0x2da)]};break;}case _0x47275c['LIVESHARE_REQUEST_HOST']:{_0x1fb269={'eventID':_0x47275c[_0x4ee68e(0x109)],'liveShareRequestHost':_0x25b118['data'][_0x4ee68e(0x2da)]};break;}case _0x47275c[_0x4ee68e(0x342)]:{_0x1fb269={'eventID':_0x47275c['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x1fb269={'eventID':_0x25b118[_0x4ee68e(0x2da)]['eventID']};}return JSON[_0x4ee68e(0x369)]({'cmd':_0x25b118['cmd'],'routeKey':_0x25b118[_0x4ee68e(0x23e)],'collaMsg':_0x1fb269});}case I[_0x4ee68e(0xcd)]:return JSON[_0x4ee68e(0x369)]({'cmd':_0x25b118[_0x4ee68e(0xb8)],'routeKey':_0x25b118[_0x4ee68e(0x23e)],'joinReq':_0x25b118['data']});case I[_0x4ee68e(0x306)]:return JSON['stringify']({'cmd':_0x25b118[_0x4ee68e(0xb8)],'routeKey':_0x25b118['routeKey'],'leaveReq':_0x25b118['data']});default:throw new Error(_0x4ee68e(0x1ae));}}var Un=Object[_0x5b7eaf(0x3b0)],An=Object[_0x5b7eaf(0x25b)],Ln=(_0x43e98d,_0xd81ad4,_0x5e1137,_0x31a2fe)=>{const _0x35dab4=_0x5b7eaf;for(var _0x1626e2=_0x31a2fe>0x1?void 0x0:_0x31a2fe?An(_0xd81ad4,_0x5e1137):_0xd81ad4,_0x1211a0=_0x43e98d[_0x35dab4(0x143)]-0x1,_0x2bb51e;_0x1211a0>=0x0;_0x1211a0--)(_0x2bb51e=_0x43e98d[_0x1211a0])&&(_0x1626e2=(_0x31a2fe?_0x2bb51e(_0xd81ad4,_0x5e1137,_0x1626e2):_0x2bb51e(_0x1626e2))||_0x1626e2);return _0x31a2fe&&_0x1626e2&&Un(_0xd81ad4,_0x5e1137,_0x1626e2),_0x1626e2;},Te=(_0x88ef88,_0x55bbae)=>(_0x41236c,_0x1f1823)=>_0x55bbae(_0x41236c,_0x1f1823,_0x88ef88);const As=_0x4c867e(_0x5b7eaf(0x3f0));function $n(_0x29e837,_0x26c830,_0x4581ed){const _0x2aa6c1=_0x5b7eaf;return _0x29e837+'/'+_0x26c830+'/unit/'+_0x4581ed+_0x2aa6c1(0x351);}let Ct=class extends _0x61b58b{constructor(_0x2aa73f,_0x256bc8,_0x4439ac,_0x40b993,_0x60c9cc){const _0x49fd02=_0x5b7eaf;super(),this[_0x49fd02(0x27b)]=_0x2aa73f,this[_0x49fd02(0x292)]=_0x256bc8,this['_configService']=_0x4439ac,this[_0x49fd02(0x134)]=_0x40b993,this['_snapshotServerService']=_0x60c9cc;}['createSocket'](_0x52f6e1){const _0x45f219=_0x5b7eaf,_0x2a9c12=this[_0x45f219(0x292)]['createSocket'](_0x52f6e1);if(!_0x2a9c12)throw new Error(_0x45f219(0x387));const _0x51b742=new _0x3eb24f(),_0x2139b0=new _0x51e21c();_0x51b742[_0x45f219(0x277)](_0x2a9c12['close$'][_0x45f219(0x113)](_0x1a9887=>_0x2139b0[_0x45f219(0x3ef)](_0x1a9887))),_0x51b742['add'](_0xa7e5b7(()=>_0x2139b0['complete']()));const _0x2f653c=new _0x51e21c();_0x51b742['add'](_0x2a9c12['error$']['subscribe'](_0x52d02c=>_0x2f653c['next'](_0x52d02c))),_0x51b742[_0x45f219(0x277)](_0xa7e5b7(()=>_0x2f653c['complete']()));const _0x28bf80=new _0x51e21c();_0x51b742[_0x45f219(0x277)](_0x2a9c12[_0x45f219(0x363)][_0x45f219(0x113)](_0x286a8f=>{const _0x7acb0d=_0x45f219,_0x158b93=yn(_0x286a8f);_0x28bf80[_0x7acb0d(0x3ef)](_0x158b93);})),_0x51b742['add'](_0xa7e5b7(()=>_0x28bf80['complete']()));let _0x1cdc48;const _0x6abda4=()=>{const _0x5f5643=_0x45f219;_0x2f653c[_0x5f5643(0x3ef)](new Event(_0x5f5643(0x370))),_0x2139b0['next'](new CloseEvent(_0x5f5643(0x370))),_0x1cdc48[_0x5f5643(0x1fc)]();};return _0x1cdc48={'memberID':'','close$':_0x2139b0[_0x45f219(0x3a7)](),'error$':_0x2f653c[_0x45f219(0x3a7)](),'open$':_0x2a9c12[_0x45f219(0x3ed)],'message$':_0x28bf80[_0x45f219(0x3a7)](),'send':_0x5a9490=>{const _0x396cff=_0x45f219;if(_0x5a9490[_0x396cff(0xb8)]===I['INGEST']){if(_0x5a9490[_0x396cff(0x2da)][_0x396cff(0x1a0)]===_0x47275c[_0x396cff(0x394)]){this[_0x396cff(0x207)](_0x1cdc48,_0x5a9490[_0x396cff(0x2da)])[_0x396cff(0x395)](_0x2df73c=>{this['_logService']['error'](_0x2df73c),_0x6abda4();});return;}if(_0x5a9490[_0x396cff(0x2da)][_0x396cff(0x1a0)]===_0x47275c[_0x396cff(0x2d7)]){const _0x37ead8=_0x5a9490[_0x396cff(0x2da)];this[_0x396cff(0x24a)](_0x37ead8)['then'](_0xf22fff=>{const _0x485a38=_0x396cff;_0x28bf80['next']({'cmd':I[_0x485a38(0x3fa)],'code':kt['OK'],'routeKey':_0x37ead8['data'][_0x485a38(0x2e3)],'routeType':'','data':{'eventID':_0x47275c[_0x485a38(0x3dc)],'data':{'changesets':_0xf22fff}}});})['catch'](_0x4d8ebd=>{const _0x53837f=_0x396cff;this[_0x53837f(0x134)]['error'](_0x4d8ebd),_0x6abda4();});return;}}_0x2a9c12[_0x396cff(0x287)](Mn(_0x5a9490));},'close':()=>{const _0x36516e=_0x45f219;_0x2a9c12['close'](),_0x51b742[_0x36516e(0xf8)]();}},_0x1cdc48;}async[_0x5b7eaf(0x207)](_0xabadeb,_0xdc050d){const _0xc14c3c=_0x5b7eaf;var _0x324fd8;const {unitType:_0x477bbf,unitID:_0x5a0d26,changeset:_0x5f251d}=_0xdc050d['data'],_0x2cf92f={'unitID':_0x5a0d26,'memberID':_0xabadeb[_0xc14c3c(0x171)],'type':_0x477bbf,'changeset':_0xb2fff8(_0x5f251d)},_0x44ca1b=$n((_0x324fd8=this[_0xc14c3c(0x110)][_0xc14c3c(0x39b)](Dn))!=null?_0x324fd8:wn,_0x477bbf,_0x5a0d26);try{await this['_http'][_0xc14c3c(0x355)](_0x44ca1b,{'body':_0x2cf92f});}catch(_0x3bf859){throw this['_logService']['error'](_0xc14c3c(0x36b),_0xc14c3c(0x34e)),_0x3bf859;}}async[_0x5b7eaf(0x24a)](_0x2729ea){const _0x2eaba0=_0x5b7eaf,{unitID:_0x92d242,from:_0x25d64d,to:_0x1e27f1,unitType:_0x32ac82}=_0x2729ea['data'];return(await this[_0x2eaba0(0x2ab)][_0x2eaba0(0x269)]({'metadata':void 0x0},{'unitID':_0x92d242,'type':_0x32ac82,'from':_0x25d64d,'to':_0x1e27f1}))[_0x2eaba0(0x3d4)];}};Ct=Ln([Te(0x0,_0x2c1848(_0x3b1152)),Te(0x1,_0x2c1848(_0x1335ed)),Te(0x2,_0x5debaa),Te(0x3,_0x4cc166),Te(0x4,_0x2ea08d)],Ct);const jn=_0x5b7eaf(0x178);function xn(_0x202b4e){const _0x4d1d8d=_0x5b7eaf;return JSON[_0x4d1d8d(0x369)](_0x202b4e)[_0x4d1d8d(0x143)];}class Ls{constructor(){const _0x2ca6d9=_0x5b7eaf;l(this,'_commentUpdate$',new _0x51e21c()),l(this,_0x2ca6d9(0x32b),this[_0x2ca6d9(0x31a)][_0x2ca6d9(0x3a7)]());}[_0x5b7eaf(0x1cd)](_0x439041){const _0x7d146b=_0x5b7eaf;this[_0x7d146b(0x31a)][_0x7d146b(0x3ef)](_0x439041);}}var Hn=Object[_0x5b7eaf(0x3b0)],kn=Object['getOwnPropertyDescriptor'],Bn=(_0x3cdd90,_0x1dd6c6,_0x3e8f37,_0x326a5c)=>{for(var _0xb64734=_0x326a5c>0x1?void 0x0:_0x326a5c?kn(_0x1dd6c6,_0x3e8f37):_0x1dd6c6,_0x32c3ad=_0x3cdd90['length']-0x1,_0x39f75d;_0x32c3ad>=0x0;_0x32c3ad--)(_0x39f75d=_0x3cdd90[_0x32c3ad])&&(_0xb64734=(_0x326a5c?_0x39f75d(_0x1dd6c6,_0x3e8f37,_0xb64734):_0x39f75d(_0xb64734))||_0xb64734);return _0x326a5c&&_0xb64734&&Hn(_0x1dd6c6,_0x3e8f37,_0xb64734),_0xb64734;},ns=(_0x289d23,_0x1ee38d)=>(_0x5d72fb,_0x4d9460)=>_0x1ee38d(_0x5d72fb,_0x4d9460,_0x289d23);let oe=class extends _0x61b58b{constructor(_0x44e701,_0x86a317){const _0x54e5d6=_0x5b7eaf;super(),l(this,_0x54e5d6(0x354),new Map()),(this[_0x54e5d6(0xba)]=_0x44e701,this[_0x54e5d6(0x1c1)]=_0x86a317,this[_0x54e5d6(0x255)](_0xa7e5b7(_0x3b6402(this[_0x54e5d6(0xba)][_0x54e5d6(0x108)](_0x275c2c[_0x54e5d6(0x18f)])[_0x54e5d6(0x1b6)](_0x5a8d9c(_0x1c75e6=>_0x1c75e6['getUnitId']())),this[_0x54e5d6(0xba)][_0x54e5d6(0x108)](_0x275c2c[_0x54e5d6(0x3ac)])['pipe'](_0x5a8d9c(_0x25c06b=>_0x25c06b['getUnitId']())),this[_0x54e5d6(0xba)][_0x54e5d6(0x108)](_0x275c2c['UNIVER_SLIDE'])[_0x54e5d6(0x1b6)](_0x5a8d9c(_0x365d5b=>_0x365d5b[_0x54e5d6(0xf1)]())))[_0x54e5d6(0x113)](_0x548ef4=>this[_0x54e5d6(0x3d6)](_0x548ef4)))));}[_0x5b7eaf(0x216)](_0x431762){const _0x56c167=_0x5b7eaf;this['_userManagerService'][_0x56c167(0x216)](_0x431762);}[_0x5b7eaf(0x101)](){const _0x22546b=_0x5b7eaf;return this[_0x22546b(0x1c1)][_0x22546b(0x101)]();}['updateMember'](_0xe0f2b4,_0x18b148){const _0x529c7c=_0x5b7eaf;let _0x4e5caf=this['_roomMembers'][_0x529c7c(0x2dc)](_0xe0f2b4);_0x4e5caf||(_0x4e5caf=new Vn(),this[_0x529c7c(0x354)]['set'](_0xe0f2b4,_0x4e5caf)),_0x4e5caf[_0x529c7c(0x2a2)](_0x18b148);}[_0x5b7eaf(0x186)](_0x3f642a,_0xf31390){const _0x3f4ed2=_0x5b7eaf,_0x10fc6c=this[_0x3f4ed2(0x354)][_0x3f4ed2(0x2dc)](_0x3f642a);_0x10fc6c&&_0x10fc6c[_0x3f4ed2(0x186)](_0xf31390);}[_0x5b7eaf(0x384)](_0x2ba3ba){const _0x3512d8=_0x5b7eaf;return this[_0x3512d8(0x354)][_0x3512d8(0x2dc)](_0x2ba3ba);}[_0x5b7eaf(0x18d)](_0x2ea12c,_0xc9d5aa){const _0xb3f049=_0x5b7eaf,_0x1c9e3e=this[_0xb3f049(0x354)]['get'](_0x2ea12c);if(_0x1c9e3e)return _0x1c9e3e[_0xb3f049(0x18d)](_0xc9d5aa);}[_0x5b7eaf(0x3d6)](_0x1a4e43){const _0x69d2f9=_0x5b7eaf,_0x1e8405=this[_0x69d2f9(0x354)][_0x69d2f9(0x2dc)](_0x1a4e43);_0x1e8405&&(_0x1e8405[_0x69d2f9(0xf8)](),this[_0x69d2f9(0x354)][_0x69d2f9(0xce)](_0x1a4e43));}[_0x5b7eaf(0xf8)](){const _0x5095ee=_0x5b7eaf;this[_0x5095ee(0x354)]['forEach'](_0x230721=>_0x230721[_0x5095ee(0xf8)]()),this['_roomMembers']['clear']();}};oe=Bn([ns(0x0,_0x52988f),ns(0x1,_0x2c1848(_0xc05435))],oe);class Vn extends _0x61b58b{constructor(){const _0x105851=_0x5b7eaf;super(...arguments),l(this,_0x105851(0x303),new Map());}['dispose'](){const _0x107172=_0x5b7eaf;this[_0x107172(0x303)][_0x107172(0xa0)]();}[_0x5b7eaf(0x2a2)](_0x2c17be){const _0x896ff0=_0x5b7eaf;this[_0x896ff0(0x303)][_0x896ff0(0x1ea)](_0x2c17be[_0x896ff0(0x171)],_0x2c17be);}[_0x5b7eaf(0x186)](_0x8b4fe9){const _0x166a8a=_0x5b7eaf;this[_0x166a8a(0x303)][_0x166a8a(0xce)](_0x8b4fe9);}[_0x5b7eaf(0x18d)](_0x4af039){const _0x306c96=_0x5b7eaf;return this[_0x306c96(0x303)]['get'](_0x4af039);}}var Fn=Object[_0x5b7eaf(0x3b0)],Wn=Object['getOwnPropertyDescriptor'],Gn=(_0x3576f1,_0x380258,_0x2d28df,_0xa6dfae)=>{const _0x5945a6=_0x5b7eaf;for(var _0x117bf2=_0xa6dfae>0x1?void 0x0:_0xa6dfae?Wn(_0x380258,_0x2d28df):_0x380258,_0x5861ae=_0x3576f1[_0x5945a6(0x143)]-0x1,_0x159fac;_0x5861ae>=0x0;_0x5861ae--)(_0x159fac=_0x3576f1[_0x5861ae])&&(_0x117bf2=(_0xa6dfae?_0x159fac(_0x380258,_0x2d28df,_0x117bf2):_0x159fac(_0x117bf2))||_0x117bf2);return _0xa6dfae&&_0x117bf2&&Fn(_0x380258,_0x2d28df,_0x117bf2),_0x117bf2;},X=(_0x18ac63,_0x129138)=>(_0x2325a5,_0x336ff2)=>_0x129138(_0x2325a5,_0x336ff2,_0x18ac63),W=(_0x5cece6=>(_0x5cece6[_0x5cece6[_0x5b7eaf(0x2f6)]=0x0]=_0x5b7eaf(0x2f6),_0x5cece6[_0x5cece6[_0x5b7eaf(0x1d8)]=0x1]=_0x5b7eaf(0x1d8),_0x5cece6[_0x5cece6[_0x5b7eaf(0x184)]=0x2]=_0x5b7eaf(0x184),_0x5cece6[_0x5cece6['ONLINE']=0x3]=_0x5b7eaf(0x308),_0x5cece6))(W||{});let bt=class extends _0x33f191{constructor(_0x22d2f7,_0x42723d,_0x2898a6,_0x29db5b,_0x2d6474,_0x1ac4cd,_0x2800cf,_0x13c106,_0xd00f75,_0x52b7d6){const _0x3a1a58=_0x5b7eaf;super(),l(this,'_sessionStatus$',new _0xdb5176(0x0)),l(this,_0x3a1a58(0x1e4),this[_0x3a1a58(0xc0)][_0x3a1a58(0x3a7)]()),l(this,'_event$',new _0x51e21c()),l(this,_0x3a1a58(0x375),this[_0x3a1a58(0x2bc)][_0x3a1a58(0x3a7)]()),l(this,_0x3a1a58(0x262)),l(this,_0x3a1a58(0x3b8)),l(this,_0x3a1a58(0x2fb)),l(this,'_shouldReportTelemetry',!0x1),l(this,'_telemetryInfo',null),(this[_0x3a1a58(0x284)]=_0x22d2f7,this['_logService']=_0x2898a6,this[_0x3a1a58(0x3c1)]=_0x29db5b,this[_0x3a1a58(0x1b2)]=_0x2d6474,this['_configService']=_0x1ac4cd,this[_0x3a1a58(0x30e)]=_0x2800cf,this[_0x3a1a58(0x361)]=_0x13c106,this[_0x3a1a58(0x371)]=_0xd00f75,this['_telemetryService']=_0x52b7d6,this[_0x3a1a58(0x3e5)]=!!this[_0x3a1a58(0x3bb)],_0x42723d[_0x3a1a58(0x1b6)](_0x53c8e3(this[_0x3a1a58(0x2cf)]))[_0x3a1a58(0x113)](_0xcfaab5=>{const _0x52b809=_0x3a1a58;var _0x15f733;typeof _0xcfaab5>'u'||(this['_socket']=_0xcfaab5,_0xcfaab5?(this[_0x52b809(0x3fe)](_0xcfaab5),this[_0x52b809(0x3b8)]=_0xcfaab5[_0x52b809(0x363)]['subscribe'](_0x1fbb80=>{const _0x15e0f4=_0x52b809;_0x1fbb80['routeKey']===this['_unitID']&&this[_0x15e0f4(0xc9)](_0x1fbb80);})):(this[_0x52b809(0x11f)](),this[_0x52b809(0xc0)]['next'](0x2),(_0x15f733=this[_0x52b809(0x3b8)])==null||_0x15f733[_0x52b809(0x1ce)](),this['_socketMessageSubscription']=null));}),this[_0x3a1a58(0x255)](this[_0x3a1a58(0x3c1)]['registerOnClose'](()=>{const _0x436106=_0x3a1a58;var _0x292604;(_0x292604=this[_0x436106(0x262)])==null||_0x292604[_0x436106(0x287)]({'cmd':I[_0x436106(0x306)],'data':{'roomID':this[_0x436106(0x284)]}});})));}get[_0x5b7eaf(0x260)](){const _0x25b5ee=_0x5b7eaf;return this[_0x25b5ee(0xc0)][_0x25b5ee(0x1a6)]();}[_0x5b7eaf(0x11e)](){var _0x475799,_0x3d8cd1;return(_0x3d8cd1=(_0x475799=this['_socket'])==null?void 0x0:_0x475799['memberID'])!=null?_0x3d8cd1:null;}['dispose'](){const _0x145263=_0x5b7eaf;super['dispose'](),this[_0x145263(0x2cf)][_0x145263(0x3ef)](),this[_0x145263(0x2cf)][_0x145263(0x213)]();}['close'](){const _0x2bb800=_0x5b7eaf;var _0x46fc1a,_0x2b7c03;this[_0x2bb800(0x11f)](),(_0x46fc1a=this[_0x2bb800(0x262)])==null||_0x46fc1a[_0x2bb800(0x287)]({'cmd':I[_0x2bb800(0x306)],'data':{'roomID':this[_0x2bb800(0x284)]}}),(_0x2b7c03=this[_0x2bb800(0x262)])==null||_0x2b7c03[_0x2bb800(0x1fc)](),this['_event$'][_0x2bb800(0x213)](),this[_0x2bb800(0xc0)][_0x2bb800(0x213)](),this[_0x2bb800(0xf8)]();}[_0x5b7eaf(0xc9)](_0x6e77e0){const _0x4de8b6=_0x5b7eaf;_0x6e77e0[_0x4de8b6(0xb8)]===I[_0x4de8b6(0xcd)]?this[_0x4de8b6(0x104)](_0x6e77e0):_0x6e77e0['cmd']===I[_0x4de8b6(0x3fa)]&&this[_0x4de8b6(0x389)](_0x6e77e0);}[_0x5b7eaf(0x3fe)](_0x443696){const _0x21852f=_0x5b7eaf;this[_0x21852f(0xc0)][_0x21852f(0x3ef)](0x1),_0x443696[_0x21852f(0x287)]({'cmd':I[_0x21852f(0xcd)],'routeKey':this[_0x21852f(0x284)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}['_onJoinRoomEvent'](_0x19f236){const _0x2ec95b=_0x5b7eaf;var _0x17b589;if(_0x19f236[_0x2ec95b(0x3b2)]===kt[_0x2ec95b(0x38f)]){this[_0x2ec95b(0x1b2)]['show']({'type':_0x21289[_0x2ec95b(0x150)],'content':this[_0x2ec95b(0x30e)]['t']('session.room-full')}),this[_0x2ec95b(0xc0)]['next'](0x2);return;}this['_sessionStatus$'][_0x2ec95b(0x3ef)](0x3);const _0x4b1dfa=(_0x17b589=_0x19f236[_0x2ec95b(0x2da)]['roomInfos'][this[_0x2ec95b(0x284)]])==null?void 0x0:_0x17b589[_0x2ec95b(0xb7)];_0x4b1dfa&&_0x4b1dfa[_0x2ec95b(0x215)](_0x3b41cc=>this[_0x2ec95b(0x361)][_0x2ec95b(0x2a2)](this['_unitID'],_0x3b41cc));}[_0x5b7eaf(0x389)](_0x22f768){const _0x47e576=_0x5b7eaf;try{const _0x1690b5=_0x22f768[_0x47e576(0x2da)];switch(_0x1690b5[_0x47e576(0x1a0)]){case _0x47275c[_0x47e576(0x3cd)]:this[_0x47e576(0x297)](_0x1690b5),this[_0x47e576(0x2bc)][_0x47e576(0x3ef)](_0x1690b5);break;case _0x47275c['USERS_LEAVE']:this[_0x47e576(0x3b3)](_0x1690b5),this[_0x47e576(0x2bc)]['next'](_0x1690b5);break;case _0x47275c['CHANGESET_ACK']:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x47e576(0x13b)](),this[_0x47e576(0x2bc)][_0x47e576(0x3ef)](_0x1690b5);break;case _0x47275c[_0x47e576(0x24d)]:this['_logService'][_0x47e576(0x332)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x47e576(0x369)](_0x1690b5)),this[_0x47e576(0x2bc)]['next'](_0x1690b5);break;case _0x47275c['COMMENT_UPDATE']:this[_0x47e576(0x371)][_0x47e576(0x1cd)](_0x1690b5[_0x47e576(0x2da)]),this[_0x47e576(0x2bc)][_0x47e576(0x3ef)](_0x1690b5);break;default:this['_event$'][_0x47e576(0x3ef)](_0x1690b5);}}catch(_0x56f43e){this[_0x47e576(0x134)][_0x47e576(0x332)](_0x56f43e,_0x22f768);}}[_0x5b7eaf(0x297)](_0x21fdfa){const _0xdeb3c9=_0x5b7eaf;this[_0xdeb3c9(0x361)]['updateMember'](this[_0xdeb3c9(0x284)],_0x21fdfa[_0xdeb3c9(0x2da)]);}['_onUserLeave'](_0xb0b3bb){const _0x276b59=_0x5b7eaf;this[_0x276b59(0x361)]['removeMember'](this[_0x276b59(0x284)],_0xb0b3bb[_0x276b59(0x2da)][_0x276b59(0x171)]);}async[_0x5b7eaf(0x287)](_0x45be7c,_0x4cc29d){const _0x3b740a=_0x5b7eaf;if(this[_0x3b740a(0x260)]!==0x3||!this[_0x3b740a(0x262)])throw new Error(_0x3b740a(0x10f));try{_0x45be7c[_0x3b740a(0x1a0)]===_0x47275c[_0x3b740a(0x394)]&&(this[_0x3b740a(0x240)](),this[_0x3b740a(0x1e8)](_0x45be7c)),this['_socket']['send']({'cmd':I[_0x3b740a(0x2e4)],'routeKey':_0x4cc29d,'routeType':'','data':_0x45be7c});}catch(_0x19a1cc){this[_0x3b740a(0x134)]['error'](_0x19a1cc);}}[_0x5b7eaf(0x240)](){const _0x3e958d=_0x5b7eaf;var _0x4fd768;this[_0x3e958d(0x2fb)]=window['setTimeout'](()=>{const _0x36255d=_0x3e958d;this[_0x36255d(0x2fb)]=null,this[_0x36255d(0x1b2)][_0x36255d(0x2d3)]({'type':_0x21289[_0x36255d(0x3c5)],'content':this[_0x36255d(0x30e)]['t'](_0x36255d(0x388))});},(_0x4fd768=this[_0x3e958d(0x110)][_0x3e958d(0x39b)](Ns))!=null?_0x4fd768:ys);}['_clearCollaborationTimeoutTimer'](){const _0x3ade48=_0x5b7eaf;this[_0x3ade48(0x2fb)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x3ade48(0x2fb)]=null);}[_0x5b7eaf(0x1e8)](_0x4db683){const _0x4d9283=_0x5b7eaf;if(!this[_0x4d9283(0x3e5)])return;const {data:_0x3971a6}=_0x4db683,{unitID:_0x1cd6c5,changeset:_0x5a1c27}=_0x3971a6,{mutations:_0x26d0ff,type:_0x4f9832}=_0x5a1c27;this[_0x4d9283(0x3be)]={'unitId':_0x1cd6c5,'type':_0x4f9832,'startTime':performance[_0x4d9283(0x1a4)](),'stopTime':0x0,'duration':0x0,'size':xn(_0x26d0ff)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x1ef3d0=_0x5b7eaf;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this[_0x1ef3d0(0x134)][_0x1ef3d0(0x332)](_0x1ef3d0(0x36b),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x1ef3d0(0x3be)][_0x1ef3d0(0x2ea)]=performance[_0x1ef3d0(0x1a4)](),this['_telemetryInfo'][_0x1ef3d0(0x39a)]=this[_0x1ef3d0(0x3be)][_0x1ef3d0(0x2ea)]-this[_0x1ef3d0(0x3be)][_0x1ef3d0(0x21c)],this[_0x1ef3d0(0x3bb)]['capture'](jn,this['_telemetryInfo']),this['_telemetryInfo']=null;}}[_0x5b7eaf(0x11f)](){this['_telemetryInfo']=null;}};bt=Gn([X(0x2,_0x4cc166),X(0x3,_0x439db2),X(0x4,_0x3df3ba),X(0x5,_0x5debaa),X(0x6,_0x2c1848(_0x1e7bf5)),X(0x7,_0x2c1848(oe)),X(0x8,_0x2c1848(Ls)),X(0x9,_0x3b757a(_0x2dbeaf))],bt);var Yn=Object[_0x5b7eaf(0x3b0)],Kn=Object['getOwnPropertyDescriptor'],Xn=(_0x15c9cd,_0x4241f7,_0x2b31c0,_0x4045c8)=>{const _0x104957=_0x5b7eaf;for(var _0x9c649=_0x4045c8>0x1?void 0x0:_0x4045c8?Kn(_0x4241f7,_0x2b31c0):_0x4241f7,_0x49f2e4=_0x15c9cd[_0x104957(0x143)]-0x1,_0x35fbaa;_0x49f2e4>=0x0;_0x49f2e4--)(_0x35fbaa=_0x15c9cd[_0x49f2e4])&&(_0x9c649=(_0x4045c8?_0x35fbaa(_0x4241f7,_0x2b31c0,_0x9c649):_0x35fbaa(_0x9c649))||_0x9c649);return _0x4045c8&&_0x9c649&&Yn(_0x4241f7,_0x2b31c0,_0x9c649),_0x9c649;},ue=(_0xf5f21b,_0x5b049d)=>(_0x472888,_0x7a5959)=>_0x5b049d(_0x472888,_0x7a5959,_0xf5f21b);let ae=class extends _0x61b58b{constructor(_0x4e36bb,_0x45fabc,_0x1b86bc,_0x4405bd,_0x5c4731,_0x268153){const _0x5c9965=_0x5b7eaf;super(),l(this,_0x5c9965(0xe2),new _0xdb5176(void 0x0)),l(this,_0x5c9965(0x1fe),this[_0x5c9965(0xe2)][_0x5c9965(0x3a7)]()),l(this,_0x5c9965(0x268),null),l(this,_0x5c9965(0x31f),new Map()),l(this,_0x5c9965(0x3bf),new _0xdb5176(W['IDLE'])),l(this,'status$',this[_0x5c9965(0x3bf)][_0x5c9965(0x3a7)]()),l(this,'_socketReady',!0x1),l(this,'_retryConnectingTimer'),l(this,_0x5c9965(0x3eb),0x0),l(this,_0x5c9965(0x21d)),l(this,'_timeoutTimer'),(this['_injector']=_0x4e36bb,this['_localeService']=_0x45fabc,this[_0x5c9965(0x1b2)]=_0x1b86bc,this[_0x5c9965(0x134)]=_0x4405bd,this[_0x5c9965(0x110)]=_0x5c4731,this[_0x5c9965(0x343)]=_0x268153);}get[_0x5b7eaf(0x262)](){const _0x89ade7=_0x5b7eaf;return this[_0x89ade7(0xe2)][_0x89ade7(0x1a6)]();}[_0x5b7eaf(0xf8)](){const _0x2f8f69=_0x5b7eaf;super[_0x2f8f69(0xf8)](),this[_0x2f8f69(0x31f)][_0x2f8f69(0x215)](_0x23a0a6=>_0x23a0a6['dispose']()),this[_0x2f8f69(0x31f)][_0x2f8f69(0xa0)](),this[_0x2f8f69(0x3bf)]['complete']();}async[_0x5b7eaf(0x299)](_0x1a312c){const _0x41ea3e=_0x5b7eaf;if(this['_sessions'][_0x41ea3e(0x30c)](_0x1a312c))return this['_sessions'][_0x41ea3e(0x2dc)](_0x1a312c);this['_tryEnsureSocket']();const _0xc58375=this['_injector'][_0x41ea3e(0x18a)](bt,_0x1a312c,this[_0x41ea3e(0xe2)][_0x41ea3e(0x3a7)]());return this[_0x41ea3e(0x31f)][_0x41ea3e(0x1ea)](_0x1a312c,_0xc58375),_0xc58375;}['closeSession'](_0x7f1822){const _0xf326ac=_0x5b7eaf;var _0x35888f;const _0x46cb2f=this['_sessions'][_0xf326ac(0x2dc)](_0x7f1822);_0x46cb2f&&(this[_0xf326ac(0x31f)][_0xf326ac(0xce)](_0x7f1822),_0x46cb2f['close']()),this[_0xf326ac(0x31f)][_0xf326ac(0x22e)]||(_0x35888f=this['_socket'])==null||_0x35888f['close']();}[_0x5b7eaf(0x170)](){const _0x1c0115=_0x5b7eaf;this[_0x1c0115(0x3eb)]=0x0,this[_0x1c0115(0x19e)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x1c0115(0x19e)]=null),this[_0x1c0115(0x20f)]();}['_createSocket'](){const _0x200acb=_0x5b7eaf;var _0x1750d7;const _0x440096=(_0x1750d7=this[_0x200acb(0x110)][_0x200acb(0x39b)](Sn))!=null?_0x1750d7:pn,_0x130ce9=this[_0x200acb(0x343)][_0x200acb(0x2f0)](_0x440096);return this[_0x200acb(0x268)]=_0x130ce9,_0x130ce9;}[_0x5b7eaf(0xa9)](){const _0x368a0b=_0x5b7eaf;var _0xae1a56,_0x2362e0;try{const _0x3bfc0b=(_0x2362e0=(_0xae1a56=this[_0x368a0b(0x262)])!=null?_0xae1a56:this[_0x368a0b(0x268)])!=null?_0x2362e0:this['_createSocket']();if(_0x3bfc0b){const _0xa1c86f=_0x3bfc0b['send'];_0x3bfc0b[_0x368a0b(0x287)]=_0x1e9abe=>(this['_rescheduleHeartbeat'](),_0xa1c86f['apply'](_0x3bfc0b,[_0x1e9abe])),_0x3bfc0b[_0x368a0b(0x363)][_0x368a0b(0x113)](_0x43e2c5=>this[_0x368a0b(0x1fb)](_0x3bfc0b,_0x43e2c5)),_0x3bfc0b['error$'][_0x368a0b(0x1b6)](_0x2efa4b(0x1))[_0x368a0b(0x113)](_0x177e5f=>this[_0x368a0b(0x134)][_0x368a0b(0x332)](_0x368a0b(0x138),_0x177e5f)),_0x3bfc0b[_0x368a0b(0x3ed)]['pipe'](_0x2efa4b(0x1))[_0x368a0b(0x113)](()=>{const _0x5e0ab2=_0x368a0b;this[_0x5e0ab2(0x2b3)](_0x3bfc0b);}),_0x3bfc0b[_0x368a0b(0x30d)][_0x368a0b(0x1b6)](_0x2efa4b(0x1))[_0x368a0b(0x113)](_0x3a6ffb=>{const _0x362e31=_0x368a0b;this[_0x362e31(0x134)][_0x362e31(0x330)](_0x362e31(0x2c5),_0x362e31(0x33b),_0x3a6ffb),this[_0x362e31(0x14f)]();});}}catch(_0x13a134){this[_0x368a0b(0x134)][_0x368a0b(0x332)](_0x13a134),this[_0x368a0b(0x14f)]();}}[_0x5b7eaf(0x2b3)](_0x2dedbe){const _0x403d4b=_0x5b7eaf;this[_0x403d4b(0x134)][_0x403d4b(0x330)](_0x403d4b(0x2c5),_0x403d4b(0xac)),_0x2dedbe[_0x403d4b(0x287)]({'cmd':I[_0x403d4b(0x3da)]}),this[_0x403d4b(0x232)](),this[_0x403d4b(0x373)]();}[_0x5b7eaf(0x373)](){const _0xa50035=_0x5b7eaf,_0x5d76e8=()=>{const _0x426a69=_0x4581;this['_onOffline'](),this[_0x426a69(0x39e)](),window['removeEventListener'](_0x426a69(0x1b9),_0x5d76e8);};window[_0xa50035(0x257)]('offline',_0x5d76e8);}[_0x5b7eaf(0x310)](){const _0x4ed776=_0x5b7eaf;this[_0x4ed776(0xbf)]=!0x1,this[_0x4ed776(0x3bf)][_0x4ed776(0x3ef)](W[_0x4ed776(0x184)]),this[_0x4ed776(0xe2)][_0x4ed776(0x3ef)](null),this[_0x4ed776(0x37c)](),this['_clearHeartbeatTimer']();}[_0x5b7eaf(0x14f)](){const _0x367132=_0x5b7eaf;var _0x2f6dc7;this[_0x367132(0x310)](),this[_0x367132(0x3eb)]<((_0x2f6dc7=this[_0x367132(0x110)]['getConfig'](bn))!=null?_0x2f6dc7:Tn)?(this[_0x367132(0x1b2)][_0x367132(0x2d3)]({'key':_0x367132(0xa1),'type':_0x21289[_0x367132(0x150)],'content':this[_0x367132(0x30e)]['t'](_0x367132(0x1d9))}),this[_0x367132(0x20f)]()):(this[_0x367132(0x1b2)]['show']({'key':_0x367132(0xa1),'type':_0x21289['Error'],'content':this[_0x367132(0x30e)]['t'](_0x367132(0x1c8))}),this['_listenToOnlineEvent']());}[_0x5b7eaf(0x39e)](){const _0x39a5fe=_0x5b7eaf,_0x4d9d1f=()=>{const _0x589949=_0x4581;this[_0x589949(0x170)](),window[_0x589949(0x350)](_0x589949(0x289),_0x4d9d1f);};window['addEventListener'](_0x39a5fe(0x289),_0x4d9d1f),this[_0x39a5fe(0xe2)][_0x39a5fe(0x1b6)](_0x324b00(_0x1440fc=>!!_0x1440fc),_0x2efa4b(0x1))[_0x39a5fe(0x113)](()=>{const _0x23a438=_0x39a5fe;window[_0x23a438(0x350)]('online',_0x4d9d1f);});}[_0x5b7eaf(0x20f)](){const _0x318731=_0x5b7eaf;var _0x29f027;const _0x1e8a9a=this['_retryCount'],_0x3d6d85=_0x1e8a9a===0x0?0x0:((_0x29f027=this[_0x318731(0x110)]['getConfig'](En))!=null?_0x29f027:Cn)*0x2**_0x1e8a9a;this[_0x318731(0x19e)]=window[_0x318731(0x1fd)](()=>{const _0x4e5829=_0x318731;clearTimeout(this[_0x4e5829(0x19e)]),this['_retryConnectingTimer']=null,this[_0x4e5829(0xa9)]();},_0x3d6d85),this['_retryCount']+=0x1;}[_0x5b7eaf(0x1fb)](_0x53bc78,_0x2334ef){const _0x360057=_0x5b7eaf,{cmd:_0x193148}=_0x2334ef;_0x193148===I[_0x360057(0x3da)]&&!this['_socketReady']&&(_0x53bc78['memberID']=_0x2334ef['data']['memberID'],this[_0x360057(0xe2)][_0x360057(0x3ef)](_0x53bc78),this['_status$']['next'](W[_0x360057(0x308)]),this['_socketReady']=!0x0,this[_0x360057(0x268)]=null),_0x193148===I[_0x360057(0x24c)]&&this[_0x360057(0x37c)](),this[_0x360057(0x232)]();}[_0x5b7eaf(0x232)](){const _0x1c8c22=_0x5b7eaf;var _0x37124c;this[_0x1c8c22(0x3f8)](),this['_sendHeartbeatTimer']=window[_0x1c8c22(0x1fd)](()=>this[_0x1c8c22(0x2cd)](),(_0x37124c=this[_0x1c8c22(0x110)][_0x1c8c22(0x39b)](vn))!=null?_0x37124c:In);}[_0x5b7eaf(0x2cd)](){const _0x219fb1=_0x5b7eaf;this[_0x219fb1(0x262)][_0x219fb1(0x287)]({'cmd':I[_0x219fb1(0x24c)]}),this[_0x219fb1(0x253)]();}[_0x5b7eaf(0x253)](){const _0x57f69c=_0x5b7eaf;var _0x591d7c;this['_timeoutTimer']=window['setTimeout'](()=>this[_0x57f69c(0x14f)](),(_0x591d7c=this[_0x57f69c(0x110)]['getConfig'](Ns))!=null?_0x591d7c:ys);}['_clearHeartbeatTimer'](){const _0x49c75f=_0x5b7eaf;this[_0x49c75f(0x21d)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x49c75f(0x21d)]=null);}[_0x5b7eaf(0x37c)](){const _0x3de820=_0x5b7eaf;this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x3de820(0x37b)]=null);}};ae=Xn([ue(0x0,_0x2c1848(_0x1637c5)),ue(0x1,_0x2c1848(_0x1e7bf5)),ue(0x2,_0x3df3ba),ue(0x3,_0x4cc166),ue(0x4,_0x5debaa),ue(0x5,As)],ae);var Jn=Object[_0x5b7eaf(0x3b0)],zn=Object[_0x5b7eaf(0x25b)],qn=(_0x40c837,_0x5a3f1d,_0x13e1c6,_0x2c4b08)=>{const _0x5bf4f6=_0x5b7eaf;for(var _0x362997=_0x2c4b08>0x1?void 0x0:_0x2c4b08?zn(_0x5a3f1d,_0x13e1c6):_0x5a3f1d,_0x5e1e28=_0x40c837[_0x5bf4f6(0x143)]-0x1,_0x125c16;_0x5e1e28>=0x0;_0x5e1e28--)(_0x125c16=_0x40c837[_0x5e1e28])&&(_0x362997=(_0x2c4b08?_0x125c16(_0x5a3f1d,_0x13e1c6,_0x362997):_0x125c16(_0x362997))||_0x362997);return _0x2c4b08&&_0x362997&&Jn(_0x5a3f1d,_0x13e1c6,_0x362997),_0x362997;},ht=(_0x49ac0a,_0x3e0283)=>(_0x8925c7,_0x224aed)=>_0x3e0283(_0x8925c7,_0x224aed,_0x49ac0a);let Ze=class{constructor(_0x5b91d5,_0x38e49a,_0x55b297){const _0x9524e8=_0x5b7eaf;this[_0x9524e8(0x27d)]=_0x5b91d5,this[_0x9524e8(0x2ef)]=_0x38e49a,this[_0x9524e8(0x1ca)]=_0x55b297;}[_0x5b7eaf(0x194)](_0x136850){const _0x20173c=_0x5b7eaf;this[_0x20173c(0x199)](_0x136850),this[_0x20173c(0x374)](_0x136850);}[_0x5b7eaf(0x10c)](_0x89991){const _0x1e5827=_0x5b7eaf,{unitID:_0x40101c}=_0x89991,_0x18475c=this['_renderManagerService'][_0x1e5827(0x206)](_0x40101c)['with'](_0x44d8a2),{redoCache:_0x4feee0}=_0x18475c[_0x1e5827(0x322)]();if(_0x4feee0[_0x1e5827(0x143)]===0x0)return _0x89991;let _0x55a746=_0x23d1c2[_0x1e5827(0xf0)](_0x89991[_0x1e5827(0x18c)][0x0]);for(let _0x471eeb=0x0;_0x471eeb<_0x4feee0[_0x1e5827(0x143)];_0x471eeb++){const _0x41eec6={'id':_0x1e5827(0x1b5),'params':{..._0x4feee0[_0x471eeb]}},_0x520a34=this['_transformService'][_0x1e5827(0xaa)](_0x55a746,_0x41eec6,!0x1);if(_0x43078a(_0x520a34))throw _0x520a34[_0x1e5827(0x332)];_0x55a746=_0x520a34['m1Prime'];}return{..._0x23d1c2['deepClone'](_0x89991),'mutations':[_0x55a746]};}[_0x5b7eaf(0x199)](_0x58815d){const _0x36d8bf=_0x5b7eaf,{unitID:_0x2b3885}=_0x58815d,_0x230eb2=this[_0x36d8bf(0x1ca)][_0x36d8bf(0x206)](_0x2b3885)['with'](_0x44d8a2),{undoCache:_0x16f258,redoCache:_0x1039a4}=_0x230eb2[_0x36d8bf(0x322)]();if(_0x16f258['length']===0x0||_0x1039a4[_0x36d8bf(0x143)]===0x0)return;const _0xd66a68=[],_0x2287f5=[];let _0x514337=_0x23d1c2[_0x36d8bf(0xf0)](_0x58815d['mutations'][0x0]),_0x363ff1=_0x23d1c2['deepClone'](_0x58815d['mutations'][0x0]);for(let _0x183179=_0x16f258[_0x36d8bf(0x143)]-0x1;_0x183179>=0x0;_0x183179--){const _0x536773={'id':_0x36d8bf(0x1b5),'params':{..._0x16f258[_0x183179]}},_0x1d966f={'id':_0x36d8bf(0x1b5),'params':{..._0x1039a4[_0x183179]}},_0xc2f025=this[_0x36d8bf(0x2ef)]['transformMutation'](_0x514337,_0x536773,!0x1),_0x5250fd=this[_0x36d8bf(0x2ef)][_0x36d8bf(0xaa)](_0x363ff1,_0x1d966f,!0x1);if(_0x43078a(_0xc2f025))throw _0xc2f025['error'];if(_0x43078a(_0x5250fd))throw _0x5250fd[_0x36d8bf(0x332)];_0xd66a68[_0x36d8bf(0x405)](_0xc2f025[_0x36d8bf(0x246)][_0x36d8bf(0x14c)]),_0x2287f5[_0x36d8bf(0x405)](_0x5250fd[_0x36d8bf(0x246)][_0x36d8bf(0x14c)]),_0x514337=_0xc2f025[_0x36d8bf(0x2f9)],_0x363ff1=_0x5250fd[_0x36d8bf(0x2f9)];}_0x230eb2[_0x36d8bf(0x29d)]({'undoCache':_0xd66a68,'redoCache':_0x2287f5});}[_0x5b7eaf(0x374)](_0x400a6c){const _0x17854a=_0x5b7eaf,{unitID:_0x2126ff}=_0x400a6c,_0x59f9b4=this['_renderManagerService'][_0x17854a(0x206)](_0x2126ff)[_0x17854a(0x162)](_0x44d8a2),_0x8d9d69=_0x59f9b4[_0x17854a(0x3c6)]();if(_0x8d9d69==null)return;const _0x4dd9d9=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x400a6c[_0x17854a(0x2e3)],'actions':null,'textRanges':[_0x8d9d69]}}],_0x13488f=this[_0x17854a(0x2ef)][_0x17854a(0x17d)](_0x400a6c,_0x4dd9d9);if(!_0x3d99d4(_0x13488f))throw _0x13488f[_0x17854a(0x332)];const _0x4554b2=_0x13488f[_0x17854a(0x246)][0x0][_0x17854a(0x14c)][_0x17854a(0x35f)];Array['isArray'](_0x4554b2)&&_0x4554b2[_0x17854a(0x143)]&&_0x59f9b4[_0x17854a(0x161)](_0x4554b2[0x0]);}};Ze=qn([ht(0x0,_0x2c1848(_0x1637c5)),ht(0x1,_0x364c40),ht(0x2,_0xeaee19)],Ze);var Zn=Object['defineProperty'],Qn=Object['getOwnPropertyDescriptor'],er=(_0x16d0ee,_0x5e6d2e,_0x5ba859,_0x1db6ea)=>{const _0x5a5e6c=_0x5b7eaf;for(var _0x39589c=_0x1db6ea>0x1?void 0x0:_0x1db6ea?Qn(_0x5e6d2e,_0x5ba859):_0x5e6d2e,_0x310e9f=_0x16d0ee[_0x5a5e6c(0x143)]-0x1,_0x9c7441;_0x310e9f>=0x0;_0x310e9f--)(_0x9c7441=_0x16d0ee[_0x310e9f])&&(_0x39589c=(_0x1db6ea?_0x9c7441(_0x5e6d2e,_0x5ba859,_0x39589c):_0x9c7441(_0x39589c))||_0x39589c);return _0x1db6ea&&_0x39589c&&Zn(_0x5e6d2e,_0x5ba859,_0x39589c),_0x39589c;},Re=(_0x20a44f,_0x5449db)=>(_0x46aa7a,_0x1ba325)=>_0x5449db(_0x46aa7a,_0x1ba325,_0x20a44f);let D=class extends _0x61b58b{constructor(_0x2657e0,_0x329f4c,_0x50467f,_0x24ade5,_0x492ea1){const _0x3794a5=_0x5b7eaf;super(),l(this,_0x3794a5(0x2ce),new Map()),l(this,_0x3794a5(0x149),new Map()),l(this,_0x3794a5(0x118),!0x1),(this[_0x3794a5(0x110)]=_0x2657e0,this[_0x3794a5(0x266)]=_0x329f4c,this[_0x3794a5(0x3c1)]=_0x50467f,this[_0x3794a5(0x30e)]=_0x24ade5,this[_0x3794a5(0x300)]=_0x492ea1,this[_0x3794a5(0x31e)]());}['disableLocalCache'](){const _0xb8904c=_0x5b7eaf;this[_0xb8904c(0x118)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}[_0x5b7eaf(0xf8)](){const _0x23bfdc=_0x5b7eaf;this[_0x23bfdc(0x224)]()[_0x23bfdc(0x2b0)](()=>super[_0x23bfdc(0xf8)]());}async['loadOfflineData'](_0x19adeb){const _0x6f219=_0x5b7eaf;return this['_disabled']?null:this[_0x6f219(0x266)][_0x6f219(0x15a)](rs(_0x19adeb));}async[_0x5b7eaf(0x3bd)](_0xb5e4a5,_0x3f81b8){const _0xfbfab0=_0x5b7eaf;return!!this[_0xfbfab0(0x266)]['setItem'](_0xb5e4a5,_0x3f81b8);}[_0x5b7eaf(0x272)](_0x48ae74,_0x42e3b9,_0x3ac3c6,_0x7c3482){const _0x4e020f=_0x5b7eaf,_0x5f24e0=this[_0x4e020f(0x300)][_0x4e020f(0x385)](_0x48ae74);this[_0x4e020f(0x2ce)]['set'](_0x48ae74,{'unitID':_0x48ae74,'type':_0x42e3b9,'awaitingChangeset':_0x3ac3c6,'mutations':_0x7c3482,'rev':_0x5f24e0}),this['_saveTaskMap']['has'](_0x48ae74)||this[_0x4e020f(0x3de)](_0x48ae74);}[_0x5b7eaf(0x3de)](_0x2bc97d){const _0x44f0d3=_0x5b7eaf,_0x281346=this[_0x44f0d3(0x3f9)]();_0x281346===0x0?this[_0x44f0d3(0x28e)](_0x2bc97d):this[_0x44f0d3(0x149)]['set'](_0x2bc97d,setTimeout(()=>this[_0x44f0d3(0x28e)](_0x2bc97d),_0x281346));}[_0x5b7eaf(0x3f9)](){const _0x412041=_0x5b7eaf;var _0x3a0bcf;return(_0x3a0bcf=this[_0x412041(0x110)][_0x412041(0x39b)](Rn))!=null?_0x3a0bcf:On;}[_0x5b7eaf(0x28e)](_0x1ad582){const _0xb780e8=_0x5b7eaf,_0x1363a8=this[_0xb780e8(0x149)][_0xb780e8(0x2dc)](_0x1ad582);return _0x1363a8!==void 0x0&&window[_0xb780e8(0x223)](_0x1363a8),this['_localStorageService'][_0xb780e8(0x29b)](rs(_0x1ad582),this[_0xb780e8(0x2ce)][_0xb780e8(0x2dc)](_0x1ad582))['then'](()=>this[_0xb780e8(0x149)]['delete'](_0x1ad582));}async[_0x5b7eaf(0x224)](){const _0x211b9f=_0x5b7eaf,_0x46b258=[];this[_0x211b9f(0x149)][_0x211b9f(0x215)]((_0x8dbd8f,_0x5c88ab)=>{const _0x401e37=_0x211b9f;window[_0x401e37(0x223)](_0x8dbd8f),_0x46b258[_0x401e37(0x2cb)](this['_saveCache'](_0x5c88ab)[_0x401e37(0x2b0)](()=>{const _0x209387=_0x401e37;this[_0x209387(0x149)]['delete'](_0x5c88ab);}));}),await Promise[_0x211b9f(0x402)](_0x46b258);}['_setupBeforeClosingHandler'](){const _0x47b594=_0x5b7eaf;this[_0x47b594(0x255)](this['_beforeCloseService'][_0x47b594(0x353)](()=>{const _0x9bdd37=_0x47b594;if(this[_0x9bdd37(0x149)][_0x9bdd37(0x22e)])return this[_0x9bdd37(0x30e)]['t'](_0x9bdd37(0x24e));}));}};D=er([Re(0x0,_0x5debaa),Re(0x1,_0x2d60b4),Re(0x2,_0x439db2),Re(0x3,_0x2c1848(_0x1e7bf5)),Re(0x4,_0x2c1848(_0xe33365))],D);function rs(_0x5cccb8){const _0x556fc2=_0x5b7eaf;return _0x556fc2(0x212)+_0x5cccb8;}var tr=Object[_0x5b7eaf(0x3b0)],sr=Object[_0x5b7eaf(0x25b)],ir=(_0x56585c,_0x5c7b1e,_0x199f14,_0x2d00de)=>{const _0x1433ad=_0x5b7eaf;for(var _0x16d7ae=_0x2d00de>0x1?void 0x0:_0x2d00de?sr(_0x5c7b1e,_0x199f14):_0x5c7b1e,_0xe3c8d8=_0x56585c[_0x1433ad(0x143)]-0x1,_0x2e822a;_0xe3c8d8>=0x0;_0xe3c8d8--)(_0x2e822a=_0x56585c[_0xe3c8d8])&&(_0x16d7ae=(_0x2d00de?_0x2e822a(_0x5c7b1e,_0x199f14,_0x16d7ae):_0x2e822a(_0x16d7ae))||_0x16d7ae);return _0x2d00de&&_0x16d7ae&&tr(_0x5c7b1e,_0x199f14,_0x16d7ae),_0x16d7ae;},lt=(_0x44c51a,_0x553e09)=>(_0x22f3a2,_0x26b258)=>_0x553e09(_0x22f3a2,_0x26b258,_0x44c51a);function nr(_0x2c9a6d){const _0x19a65f=_0x5b7eaf,{unitID:_0x2f951e,mutations:_0x284ef0}=_0x2c9a6d;return{'unitId':_0x2f951e,'subUnitId':_0x284ef0[0x0][_0x19a65f(0x14c)][_0x19a65f(0x2d6)]};}let Qe=class{constructor(_0x1e7222,_0x36bd1d,_0x492aff){const _0x2cf6d0=_0x5b7eaf;this[_0x2cf6d0(0x27d)]=_0x1e7222,this[_0x2cf6d0(0x2ef)]=_0x36bd1d,this['_instanceService']=_0x492aff;}[_0x5b7eaf(0x231)](_0x22c887){const _0x4b8081=_0x5b7eaf;var _0x394156,_0x276631,_0x305997,_0x5a9c66,_0x44d5aa;const _0x4b5d27=this['_injector'][_0x4b8081(0x2dc)](_0x12a4eb),{unitId:_0x497da1,subUnitId:_0x5227f1}=nr(_0x22c887),_0x354ebe=_0x4b5d27[_0x4b8081(0x17c)](_0x497da1)[_0x4b8081(0x3e8)](),_0x5d5d68=(_0x276631=(_0x394156=this['_instanceService']['getUnit'](_0x497da1))==null?void 0x0:_0x394156[_0x4b8081(0xf6)]())==null?void 0x0:_0x276631['getSheetId']();if(_0x354ebe[_0x4b8081(0x143)]===0x0||!_0x497da1||!_0x5227f1)return;const _0x465923=[{'id':_0x228778['id'],'params':{'unitId':_0x497da1,'subUnitId':_0x5d5d68,'selections':_0x23d1c2[_0x4b8081(0xf0)](_0x354ebe)}}],_0x6f3f8c=this['_transformService']['transformMutationsWithChangeset'](_0x22c887,_0x465923);if(!_0x3d99d4(_0x6f3f8c))throw _0x6f3f8c[_0x4b8081(0x332)];const _0x40a6e4=(_0x44d5aa=(_0x5a9c66=(_0x305997=_0x6f3f8c['m2Prime'][0x0])==null?void 0x0:_0x305997[_0x4b8081(0x14c)])==null?void 0x0:_0x5a9c66['selections'])!=null?_0x44d5aa:_0x354ebe;Array[_0x4b8081(0x400)](_0x40a6e4)&&_0x40a6e4[_0x4b8081(0x143)]&&this[_0x4b8081(0x27d)][_0x4b8081(0x2dc)](_0x2521f5)[_0x4b8081(0x26d)](_0x228778['id'],{'unitId':_0x497da1,'subUnitId':_0x5227f1,'selections':_0x40a6e4});}};Qe=ir([lt(0x0,_0x2c1848(_0x1637c5)),lt(0x1,_0x364c40),lt(0x2,_0x52988f)],Qe);const it=_0x4c867e(_0x5b7eaf(0x3db));var $s=(_0x2790cd=>(_0x2790cd[_0x2790cd[_0x5b7eaf(0x252)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x2790cd[_0x2790cd[_0x5b7eaf(0x2ac)]=0x1]=_0x5b7eaf(0x2ac),_0x2790cd))($s||{});const os=0x7530,as=_0x5b7eaf(0x33d);class rr extends _0x61b58b{constructor(){const _0x193731=_0x5b7eaf;super(),l(this,_0x193731(0xf9),_0x23d1c2[_0x193731(0x23b)]()),l(this,_0x193731(0x29f),new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x193731(0x11b),null),l(this,_0x193731(0x10e),new Map()),l(this,_0x193731(0x137),new Map()),this[_0x193731(0x1cb)]();}['dispose'](){const _0x1ed318=_0x5b7eaf;super[_0x1ed318(0xf8)](),this[_0x1ed318(0x10e)][_0x1ed318(0x215)]((_0x47b326,_0x1a85f4)=>this[_0x1ed318(0x195)](_0x1a85f4)),this['_heartbeatTimer']&&window[_0x1ed318(0x209)](this[_0x1ed318(0x11b)]);}[_0x5b7eaf(0x1d2)](_0x317720){const _0x381172=_0x5b7eaf;return this[_0x381172(0x3ce)](_0x317720)['pipe'](_0x2fe2dd());}[_0x5b7eaf(0x2d2)](_0x527907){const _0x344023=_0x5b7eaf;this[_0x344023(0x29f)]['size']===0x0&&this[_0x344023(0x141)](),this[_0x344023(0x29f)][_0x344023(0x277)](_0x527907),this[_0x344023(0x1ff)]({'type':0x0,'memberID':this[_0x344023(0xf9)],'unitIDs':[_0x527907],'isForwarded':!0x1});}['disposeUnit'](_0x423ffd){const _0x388fa8=_0x5b7eaf;this[_0x388fa8(0x29f)][_0x388fa8(0xce)](_0x423ffd),this[_0x388fa8(0x29f)]['size']===0x0&&this[_0x388fa8(0x11b)]&&window[_0x388fa8(0x209)](this['_heartbeatTimer']);}[_0x5b7eaf(0x1cb)](){const _0x347fbc=_0x5b7eaf;this[_0x347fbc(0x255)](_0xa7e5b7(_0x3a0781(window,_0x347fbc(0x20d))[_0x347fbc(0x113)](_0x490a67=>{const _0x578f94=_0x347fbc;if(_0x490a67[_0x578f94(0x367)]!==as||!_0x490a67[_0x578f94(0x11a)])return;const _0x4f186a=JSON['parse'](_0x490a67[_0x578f94(0x11a)]);this[_0x578f94(0x24b)](_0x4f186a);}))),window[_0x347fbc(0x257)](_0x347fbc(0x28b),()=>this[_0x347fbc(0x1ff)]({'type':0x1,'memberID':this[_0x347fbc(0xf9)],'unitIDs':Array[_0x347fbc(0xde)](this[_0x347fbc(0x29f)])}));}[_0x5b7eaf(0x24b)](_0x55bb80){const _0x52db18=_0x5b7eaf;switch(_0x55bb80[_0x52db18(0x21b)]){case 0x0:this['_handleJoinEvent'](_0x55bb80);break;case 0x1:this['_handleLeaveEvent'](_0x55bb80);break;case 0x2:this['_handleHeartbeatEvent'](_0x55bb80);break;}}[_0x5b7eaf(0x3a6)](_0x40de38){const _0x660bdc=_0x5b7eaf,{unitIDs:_0x5a0e6d,memberID:_0x2061e2,isForwarded:_0x4a9478}=_0x40de38;_0x5a0e6d[_0x660bdc(0x215)](_0x226a5f=>{const _0x497acc=_0x660bdc;if(!_0x4a9478&&this[_0x497acc(0x3e9)][_0x497acc(0x30c)](_0x226a5f)&&this[_0x497acc(0x3ce)](_0x226a5f)['next'](0x1),!this[_0x497acc(0x3e9)][_0x497acc(0x30c)](_0x226a5f)||!this[_0x497acc(0x3e9)][_0x497acc(0x2dc)](_0x226a5f)[_0x497acc(0x30c)](_0x2061e2)){const _0x4011d4=this[_0x497acc(0x3e9)][_0x497acc(0x2dc)](_0x226a5f)||new Set();_0x4011d4[_0x497acc(0x277)](_0x2061e2),this[_0x497acc(0x3e9)]['set'](_0x226a5f,_0x4011d4),this[_0x497acc(0x120)](_0x2061e2);}}),_0x4a9478||this[_0x660bdc(0x1ff)]({'type':0x0,'memberID':this[_0x660bdc(0xf9)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x5b7eaf(0x120)](_0x4a6a3e){const _0x3b716e=_0x5b7eaf;this[_0x3b716e(0x195)](_0x4a6a3e);const _0x523e0a=window[_0x3b716e(0x1fd)](()=>{const _0xe3d95a=_0x3b716e;this[_0xe3d95a(0x3e9)]['forEach'](_0x994086=>{const _0x4994c2=_0xe3d95a;_0x994086[_0x4994c2(0xce)](_0x4a6a3e);});},os*0x2);this[_0x3b716e(0x10e)]['set'](_0x4a6a3e,_0x523e0a);}[_0x5b7eaf(0x195)](_0x51d22a){const _0x1e5500=_0x5b7eaf;if(this['_clearOtherTimers'][_0x1e5500(0x30c)](_0x51d22a)){const _0x42539c=this['_clearOtherTimers']['get'](_0x51d22a);_0x42539c&&window[_0x1e5500(0x223)](_0x42539c),this[_0x1e5500(0x10e)][_0x1e5500(0x1ea)](_0x51d22a,null);}}['_handleLeaveEvent'](_0xbfa0a7){const _0x2c95c7=_0x5b7eaf,{memberID:_0x49f7cd,unitIDs:_0x1f1002}=_0xbfa0a7;_0x1f1002[_0x2c95c7(0x215)](_0xf362f1=>{const _0x2a6cc1=_0x2c95c7;var _0x47c770;const _0x4a78fa=this[_0x2a6cc1(0x3e9)][_0x2a6cc1(0x2dc)](_0xf362f1);_0x4a78fa&&(_0x4a78fa[_0x2a6cc1(0xce)](_0x49f7cd),(_0x47c770=this[_0x2a6cc1(0x3ce)](_0xf362f1))==null||_0x47c770[_0x2a6cc1(0x3ef)](_0x4a78fa[_0x2a6cc1(0x22e)]===0x0?0x0:0x1));}),this[_0x2c95c7(0x195)](_0x49f7cd);}[_0x5b7eaf(0x3ae)](_0x453a71){const _0x510cd7=_0x5b7eaf;this[_0x510cd7(0x120)](_0x453a71[_0x510cd7(0x171)]);}[_0x5b7eaf(0x1ff)](_0x11ff87){localStorage['setItem'](as,JSON['stringify'](_0x11ff87));}[_0x5b7eaf(0x141)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x448c98=_0x4581;this[_0x448c98(0x1ff)]({'type':0x2,'memberID':this['_id']});},os);}[_0x5b7eaf(0x3ce)](_0x41c3e4){const _0x596a6a=_0x5b7eaf;return this[_0x596a6a(0x137)][_0x596a6a(0x30c)](_0x41c3e4)||this[_0x596a6a(0x137)][_0x596a6a(0x1ea)](_0x41c3e4,new _0xdb5176(0x0)),this[_0x596a6a(0x137)][_0x596a6a(0x2dc)](_0x41c3e4);}}function js(_0xb05ba8){const _0x33c7ca=_0x5b7eaf;let _0x48b199='';for(const _0x272a09 of _0xb05ba8){const {startOffset:_0xb5054a,endOffset:_0x1b8d5f,isActive:_0x1542ff}=_0x272a09;_0x48b199[_0x33c7ca(0x143)]&&(_0x48b199+=','),_0x48b199+=_0xb5054a+':'+_0x1b8d5f+':'+(_0x1542ff?'1':'0');}return _0x48b199;}function or(_0x5eccb3){const _0x4df27f=_0x5b7eaf,_0x440723=_0x5eccb3[_0x4df27f(0x32e)](','),_0x5dff65=[];for(const _0xada807 of _0x440723){const [_0x5b52f0,_0x11853b,_0x45d67c]=_0xada807['split'](':');_0x5dff65[_0x4df27f(0x2cb)]({'startOffset':Number(_0x5b52f0),'endOffset':Number(_0x11853b),'collapsed':_0x5b52f0===_0x11853b,'isActive':_0x45d67c==='1'});}return _0x5dff65['some'](_0x2b4f60=>_0x2b4f60[_0x4df27f(0x1f6)])||(_0x5dff65[0x0]['isActive']=!0x0),_0x5dff65;}class Bt extends _0x33f191{constructor(){const _0x3b3180=_0x5b7eaf;super(...arguments),l(this,_0x3b3180(0x148),new _0xdb5176(null)),l(this,_0x3b3180(0x146),this[_0x3b3180(0x148)]['asObservable']());}[_0x5b7eaf(0x32f)](_0x27be3d){const _0x28ba29=_0x5b7eaf,{unitID:_0xb2cc1b,memberID:_0x3572e9,textRanges:_0x4812ab}=_0x27be3d,_0x295da7=js(_0x4812ab),_0x2a06ae={'unitID':_0xb2cc1b,'memberID':_0x3572e9,'selection':_0x295da7};this['_collabCursorState$'][_0x28ba29(0x3ef)](_0x2a06ae);}}var ar=Object[_0x5b7eaf(0x3b0)],cr=Object['getOwnPropertyDescriptor'],hr=(_0x29b02d,_0x45efb8,_0x623233,_0x3668b2)=>{const _0x52431b=_0x5b7eaf;for(var _0x38e5ed=_0x3668b2>0x1?void 0x0:_0x3668b2?cr(_0x45efb8,_0x623233):_0x45efb8,_0x1adcfa=_0x29b02d[_0x52431b(0x143)]-0x1,_0x237a8f;_0x1adcfa>=0x0;_0x1adcfa--)(_0x237a8f=_0x29b02d[_0x1adcfa])&&(_0x38e5ed=(_0x3668b2?_0x237a8f(_0x45efb8,_0x623233,_0x38e5ed):_0x237a8f(_0x38e5ed))||_0x38e5ed);return _0x3668b2&&_0x38e5ed&&ar(_0x45efb8,_0x623233,_0x38e5ed),_0x38e5ed;},cs=(_0x449348,_0x22721d)=>(_0x11a992,_0x2b2b44)=>_0x22721d(_0x11a992,_0x2b2b44,_0x449348);let et=class{constructor(_0x41c5fb,_0x4dc901){const _0x3097b9=_0x5b7eaf;this[_0x3097b9(0x27d)]=_0x41c5fb,this[_0x3097b9(0x2ef)]=_0x4dc901;}['transformSelections'](_0x3dc775){const _0x18ef8=_0x5b7eaf;var _0x47a19b;const _0x899e88=this[_0x18ef8(0x27d)]['get'](_0x2dea1c),_0x438911=(_0x47a19b=_0x899e88[_0x18ef8(0xb3)]())!=null?_0x47a19b:[];if(_0x438911[_0x18ef8(0x143)]===0x0)return;const _0x45dbae=[{'id':_0x18ef8(0x1b5),'params':{'unitId':_0x3dc775['unitID'],'actions':null,'textRanges':_0x438911}}],_0x3314d8=this[_0x18ef8(0x2ef)][_0x18ef8(0x17d)](_0x3dc775,_0x45dbae);if(!_0x3d99d4(_0x3314d8))throw _0x3314d8[_0x18ef8(0x332)];const _0x6ee287=_0x3314d8[_0x18ef8(0x246)][0x0][_0x18ef8(0x14c)]['textRanges'];Array[_0x18ef8(0x400)](_0x6ee287)&&_0x6ee287['length']&&_0x899e88['replaceTextRanges'](_0x6ee287,!0x1);}};et=hr([cs(0x0,_0x2c1848(_0x1637c5)),cs(0x1,_0x364c40)],et);const lr=new Set([_0x4d0013['id']]);function hs(_0xaf80a0,_0x500b42,_0x54ce01,_0x4d597c,_0x5080c4){const _0x55f28a=_0x5b7eaf;var _0x41dbc1,_0x346900,_0x5e9f9b,_0x42b1af;const _0xbc80ad=[];for(const _0x5b057c of _0xaf80a0)if(lr[_0x55f28a(0x30c)](_0x5b057c['id'])){if(_0xbc80ad[_0x55f28a(0x143)]>0x0)break;_0xbc80ad['push'](_0x5b057c);break;}else _0xbc80ad[_0x55f28a(0x2cb)](_0x5b057c);const _0x1c7ef8=(_0x346900=(_0x41dbc1=_0x5080c4[_0x55f28a(0x101)]())==null?void 0x0:_0x41dbc1[_0x55f28a(0x392)])!=null?_0x346900:_0x55f28a(0x278),_0x2855ce=(_0x42b1af=(_0x5e9f9b=_0x5080c4[_0x55f28a(0x101)]())==null?void 0x0:_0x5e9f9b[_0x55f28a(0x171)])!=null?_0x42b1af:_0x55f28a(0x278);return{'changeset':{'unitID':_0x500b42,'type':_0x301c06(_0x54ce01['getUnitType'](_0x500b42)),'baseRev':_0x4d597c['getCurrentRevOfUnit'](_0x500b42),'revision':0x0,'userID':_0x1c7ef8,'memberID':_0x2855ce,'mutations':_0xbc80ad},'pendingMutations':_0xaf80a0['slice'](_0xbc80ad[_0x55f28a(0x143)])};}function _r(_0x6c52e9,_0x19855d,_0x4a28c9,_0x6837dd,_0x21b564){const _0x2f6750=_0x5b7eaf;var _0x3b0e36,_0x4c72f7,_0x24b5b7,_0xf97d38;const _0x367c95=[_0x6c52e9[_0x2f6750(0xcc)]((_0x31c9e7,_0x3c3343)=>{const _0x46548b=_0x2f6750;var _0x592df9;const {id:_0x388025}=_0x31c9e7,{id:_0x482e32,type:_0xf2cd2a}=_0x3c3343,_0x156d84=(_0x592df9=_0x31c9e7[_0x46548b(0x14c)])!=null?_0x592df9:{'actions':null},_0x59be1f=_0x3c3343['params'];if(_0x388025&&_0x388025!==_0x482e32)throw new Error(_0x46548b(0x23c)+_0x388025+_0x46548b(0x20e)+_0x482e32+'.');return{..._0x31c9e7,'id':_0x482e32,'type':_0xf2cd2a,'params':{'unitId':_0x59be1f['unitId'],'textRanges':_0x59be1f['textRanges'],'actions':_0x1973d8[_0x46548b(0x316)](_0x156d84[_0x46548b(0x2bb)],_0x59be1f[_0x46548b(0x2bb)])}};},{})],_0x1651cf=(_0x4c72f7=(_0x3b0e36=_0x21b564[_0x2f6750(0x101)]())==null?void 0x0:_0x3b0e36['userID'])!=null?_0x4c72f7:_0x2f6750(0x278),_0xacf020=(_0xf97d38=(_0x24b5b7=_0x21b564['getCurrentUser']())==null?void 0x0:_0x24b5b7[_0x2f6750(0x171)])!=null?_0xf97d38:_0x2f6750(0x278);return{'changeset':{'unitID':_0x19855d,'type':_0x301c06(_0x4a28c9[_0x2f6750(0xe6)](_0x19855d)),'baseRev':_0x6837dd[_0x2f6750(0x385)](_0x19855d),'revision':0x0,'userID':_0x1651cf,'memberID':_0xacf020,'mutations':_0x367c95},'pendingMutations':[]};}const ur={'id':_0x2db5c8['id'],'type':_0xb6689e[_0x5b7eaf(0xd3)],'params':{}};function _0x4581(_0x563609,_0x538068){const _0x5d0432=_0x5d04();return _0x4581=function(_0x45813a,_0xf2134e){_0x45813a=_0x45813a-0x99;let _0x4c8809=_0x5d0432[_0x45813a];return _0x4c8809;},_0x4581(_0x563609,_0x538068);}var dr=Object[_0x5b7eaf(0x3b0)],fr=Object[_0x5b7eaf(0x25b)],he=(_0x44b874,_0x55ca6b,_0x5589fd,_0x5ca405)=>{const _0xb373a1=_0x5b7eaf;for(var _0x1fc14c=_0x5ca405>0x1?void 0x0:_0x5ca405?fr(_0x55ca6b,_0x5589fd):_0x55ca6b,_0x1dfdf3=_0x44b874[_0xb373a1(0x143)]-0x1,_0x21d22d;_0x1dfdf3>=0x0;_0x1dfdf3--)(_0x21d22d=_0x44b874[_0x1dfdf3])&&(_0x1fc14c=(_0x5ca405?_0x21d22d(_0x55ca6b,_0x5589fd,_0x1fc14c):_0x21d22d(_0x1fc14c))||_0x1fc14c);return _0x5ca405&&_0x1fc14c&&dr(_0x55ca6b,_0x5589fd,_0x1fc14c),_0x1fc14c;},m=(_0x33962b,_0x377094)=>(_0x137ab6,_0x5b6237)=>_0x377094(_0x137ab6,_0x5b6237,_0x33962b),w=(_0x263b83=>(_0x263b83[_0x5b7eaf(0x3a8)]=_0x5b7eaf(0x136),_0x263b83[_0x5b7eaf(0x16d)]=_0x5b7eaf(0x33c),_0x263b83[_0x5b7eaf(0x15f)]=_0x5b7eaf(0xa2),_0x263b83[_0x5b7eaf(0x2ee)]='awaiting',_0x263b83[_0x5b7eaf(0x176)]=_0x5b7eaf(0x31b),_0x263b83[_0x5b7eaf(0x226)]=_0x5b7eaf(0xf7),_0x263b83['CONFLICT']=_0x5b7eaf(0x14e),_0x263b83[_0x5b7eaf(0x184)]=_0x5b7eaf(0x1b9),_0x263b83))(w||{});class le{constructor(_0x41143d,_0x3cfa66,_0x15f449,_0x547170,_0x3a8b18,_0x5a9f00,_0x45e965,_0x16a8ae,_0xcb19b8){const _0x50ff9e=_0x5b7eaf;l(this,_0x50ff9e(0x1c6),null),l(this,_0x50ff9e(0x15b),[]),(this[_0x50ff9e(0x2e3)]=_0x41143d,this[_0x50ff9e(0x21b)]=_0x3cfa66,this[_0x50ff9e(0x3fd)]=_0x3a8b18,this[_0x50ff9e(0x204)]=_0x5a9f00,this[_0x50ff9e(0xb5)]=_0x45e965,this[_0x50ff9e(0x300)]=_0x16a8ae,this[_0x50ff9e(0x291)]=_0xcb19b8,this[_0x50ff9e(0x1c6)]=_0x15f449,this['_pendingMutations']=_0x547170);}[_0x5b7eaf(0x221)](_0x531be8){const _0x2cf66c=_0x5b7eaf,_0x58ffb8=this['_revisionService']['getCurrentRevOfUnit'](this[_0x2cf66c(0x2e3)]);return _0x531be8[_0x2cf66c(0x3f2)]>_0x58ffb8+0x1?(this[_0x2cf66c(0x3fd)][_0x2cf66c(0x3a1)]({'from':_0x58ffb8,'to':_0x531be8[_0x2cf66c(0x3f2)]-0x1}),!0x0):!0x1;}[_0x5b7eaf(0x3c7)](_0x54004a){this['_undoRedoService']['transformUndoRedo'](this['unitID'],_0x54004a);}[_0x5b7eaf(0xae)](_0x410302){const _0x176ec5=_0x5b7eaf;var _0x4a6c46,_0x4885b3;(_0x4885b3=(_0x4a6c46=this['_handler'])[_0x176ec5(0x356)])==null||_0x4885b3[_0x176ec5(0x140)](_0x4a6c46,_0x410302);}[_0x5b7eaf(0x203)](_0x4fec47){const _0x14ef10=_0x5b7eaf;var _0x218f1d,_0x14bea9;return(_0x14bea9=(_0x218f1d=this[_0x14ef10(0x3fd)])[_0x14ef10(0x9d)])==null?void 0x0:_0x14bea9[_0x14ef10(0x140)](_0x218f1d,_0x4fec47);}['_transformRemoteChangesetByIMECache'](_0x215691){const _0x1d6d70=_0x5b7eaf;var _0x3696a1,_0x1f10d2,_0x245108;return(_0x245108=(_0x1f10d2=(_0x3696a1=this[_0x1d6d70(0x3fd)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x1f10d2[_0x1d6d70(0x140)](_0x3696a1,_0x215691))!=null?_0x245108:_0x215691;}['_syncEditingCollabCursor'](_0x1ce666){const _0x5915d8=_0x5b7eaf;var _0x44aab4,_0x27c724;if(this[_0x5915d8(0x21b)]===x[_0x5915d8(0x3ac)]){const {unitID:_0x3f2d37,mutations:_0x561da2,memberID:_0x2671dd}=_0x1ce666,_0x5439d8=_0x561da2[0x0]['params']['textRanges'];Array[_0x5915d8(0x400)](_0x5439d8)&&_0x5439d8['length']>0x0&&((_0x27c724=(_0x44aab4=this[_0x5915d8(0x3fd)])[_0x5915d8(0x38b)])==null||_0x27c724[_0x5915d8(0x140)](_0x44aab4,{'unitID':_0x3f2d37,'memberID':_0x2671dd,'textRanges':_0x5439d8}));}}[_0x5b7eaf(0x126)](){const _0x4f478e=_0x5b7eaf;this[_0x4f478e(0x291)][_0x4f478e(0x272)](this[_0x4f478e(0x2e3)],this[_0x4f478e(0x21b)],this['_awaitingChangeset'],this[_0x4f478e(0x15b)]);}[_0x5b7eaf(0x364)](){const _0x31e7ec=_0x5b7eaf;return this[_0x31e7ec(0x300)][_0x31e7ec(0x385)](this[_0x31e7ec(0x2e3)]);}[_0x5b7eaf(0x2f7)](){const _0x5cad83=_0x5b7eaf;this[_0x5cad83(0x300)][_0x5cad83(0x2b9)](this['unitID']);}['_executeRemoteChangeset'](_0x8f303a){const _0x2c331c=_0x5b7eaf;var _0x4ccee5;const _0x225013=this['_transformRemoteChangesetByIMECache'](_0x8f303a),_0x2d6cde=_0x170714(_0x225013['mutations'],this[_0x2c331c(0x204)],{'fromCollab':!0x0});if(!_0x2d6cde[_0x2c331c(0x2e6)])throw _0x2d6cde[_0x2c331c(0x332)]instanceof Error?_0x2d6cde['error']:new Error((_0x4ccee5=_0x2d6cde[_0x2c331c(0x332)])!=null?_0x4ccee5:_0x2c331c(0x37e));this[_0x2c331c(0x203)](_0x225013),this['_transformUndoredo'](_0x8f303a),this['_transformSelections'](_0x225013),this[_0x2c331c(0xaf)](_0x225013),this[_0x2c331c(0x2f7)]();}}let Se=class extends le{constructor(_0x2b77cf,_0x5653bb,_0x20639d,_0x4eff36,_0x32ef03,_0x9b5176,_0x39a2fd,_0x95d46c,_0x40eb58,_0x5e019a){const _0x1428ef=_0x5b7eaf;super(_0x2b77cf,_0x5653bb,null,[],_0x20639d,_0x95d46c,_0x39a2fd,_0x4eff36,_0x32ef03),l(this,'status',_0x1428ef(0x33c)),(this[_0x1428ef(0x27d)]=_0x9b5176,this[_0x1428ef(0x134)]=_0x40eb58,this['_transformService']=_0x5e019a);}['appendMutation'](_0x41a822){const _0x177ea6=_0x5b7eaf,_0x47ab33=this[_0x177ea6(0x27d)][_0x177ea6(0x18a)](Y,this[_0x177ea6(0x2e3)],this['type'],[_0x41a822],this[_0x177ea6(0x3fd)]);return _0x47ab33['_schedule'](),_0x47ab33[_0x177ea6(0x126)](),_0x47ab33;}[_0x5b7eaf(0x107)](_0x4e6f87){const _0x98e312=_0x5b7eaf;if(this[_0x98e312(0x221)](_0x4e6f87))return this[_0x98e312(0x27d)]['createInstance'](H,this[_0x98e312(0x2e3)],this[_0x98e312(0x21b)],null,[],null,[_0x4e6f87],this[_0x98e312(0x3fd)]);try{const _0x359724=this[_0x98e312(0x2ef)][_0x98e312(0x17d)](_0x4e6f87,[ur]);if(_0x3d99d4(_0x359724)){const {c1Prime:_0xc7dea}=_0x359724;return this[_0x98e312(0x3aa)](_0xc7dea),this;}throw _0x359724[_0x98e312(0x332)];}catch(_0xfc3ade){return this[_0x98e312(0x134)][_0x98e312(0x332)](_0xfc3ade),this[_0x98e312(0x324)](!0x1);}}[_0x5b7eaf(0x324)](_0xcc6479){const _0x28b69f=_0x5b7eaf;return this[_0x28b69f(0x27d)][_0x28b69f(0x18a)](Q,this['unitID'],this[_0x28b69f(0x21b)],null,[],this[_0x28b69f(0x3fd)],_0xcc6479);}[_0x5b7eaf(0x27f)](){const _0x3cd26b=_0x5b7eaf;throw new Error(_0x3cd26b(0x30f));}[_0x5b7eaf(0x1ec)](){const _0x1b2c1f=_0x5b7eaf;throw new Error(_0x1b2c1f(0x115));}[_0x5b7eaf(0x331)](){const _0x111de9=_0x5b7eaf;return this[_0x111de9(0x27d)][_0x111de9(0x18a)](ee,this[_0x111de9(0x2e3)],this[_0x111de9(0x21b)],null,[],this['_handler']);}[_0x5b7eaf(0x1df)](){return this;}['resend'](){const _0x1f3525=_0x5b7eaf;throw new Error(_0x1f3525(0x1fa));}[_0x5b7eaf(0x229)](){const _0x47c981=_0x5b7eaf,_0x468eb0=this[_0x47c981(0x300)][_0x47c981(0x385)](this['unitID']);return this[_0x47c981(0x3fd)]['onMissingChangesets']({'from':_0x468eb0,'to':0x0}),this[_0x47c981(0x27d)][_0x47c981(0x18a)](H,this['unitID'],this[_0x47c981(0x21b)],null,[],null,[],this[_0x47c981(0x3fd)]);}};Se=he([m(0x3,_0x2c1848(_0xe33365)),m(0x4,_0x2c1848(D)),m(0x5,_0x2c1848(_0x1637c5)),m(0x6,_0x948466),m(0x7,_0x2521f5),m(0x8,_0x4cc166),m(0x9,_0x364c40)],Se);let Y=class extends le{constructor(_0x13fbf5,_0xdc1313,_0x7a4f8f,_0x377b91,_0x4e626e,_0x38966f,_0x51cd66,_0x1b3869,_0x56a12c,_0x38dcb1,_0x4a2f37,_0x234a27,_0x11f2c3,_0x16d4cd){const _0xf868b5=_0x5b7eaf;super(_0x13fbf5,_0xdc1313,null,_0x7a4f8f,_0x377b91,_0x38dcb1,_0x16d4cd,_0x38966f,_0x51cd66),l(this,_0xf868b5(0x2d4),_0xf868b5(0xa2)),l(this,_0xf868b5(0x250),null),l(this,_0xf868b5(0x3ee),null),(this[_0xf868b5(0x27d)]=_0x4e626e,this[_0xf868b5(0x361)]=_0x1b3869,this['_logService']=_0x56a12c,this['_configService']=_0x4a2f37,this['_transformService']=_0x234a27,this[_0xf868b5(0xba)]=_0x11f2c3);}['appendMutation'](_0x5828b7){const _0x3db593=_0x5b7eaf;return this[_0x3db593(0x15b)][_0x3db593(0x2cb)](_0x5828b7),this[_0x3db593(0x126)](),this;}[_0x5b7eaf(0x107)](_0x4202fd){const _0xc4e825=_0x5b7eaf;if(this[_0xc4e825(0x221)](_0x4202fd))return this[_0xc4e825(0x2f5)](),this['_injector'][_0xc4e825(0x18a)](H,this[_0xc4e825(0x2e3)],this[_0xc4e825(0x21b)],null,this['_pendingMutations'],null,[_0x4202fd],this[_0xc4e825(0x3fd)]);try{const _0x3b1c66=this[_0xc4e825(0x2ef)][_0xc4e825(0x17d)](_0x4202fd,this[_0xc4e825(0x15b)]);if(_0x3d99d4(_0x3b1c66)){const {c1Prime:_0x221962,m2Prime:_0x5ec3ae}=_0x3b1c66;this[_0xc4e825(0x3aa)](_0x221962);const _0x2210be=this[_0xc4e825(0x27d)][_0xc4e825(0x18a)](Y,this[_0xc4e825(0x2e3)],this[_0xc4e825(0x21b)],_0x5ec3ae,this[_0xc4e825(0x3fd)]);return this[_0xc4e825(0x2f5)](),_0x2210be[_0xc4e825(0x3e2)](this[_0xc4e825(0x250)]?Math[_0xc4e825(0x36e)](0x0,new Date()['getTime']()-this['_scheduleTimestamp']):this[_0xc4e825(0x167)]()),_0x2210be;}throw _0x3b1c66['error'];}catch(_0x141c1f){return this[_0xc4e825(0x134)]['error'](_0x141c1f),this[_0xc4e825(0x324)](!0x1);}}[_0x5b7eaf(0x27f)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x5b7eaf(0x1ec)](){const _0x5b82d0=_0x5b7eaf;throw new Error(_0x5b82d0(0x13f));}[_0x5b7eaf(0x331)](){const _0x47b6fa=_0x5b7eaf;return this['_clearScheduledTask'](),this[_0x47b6fa(0x27d)][_0x47b6fa(0x18a)](ee,this[_0x47b6fa(0x2e3)],this['type'],null,this[_0x47b6fa(0x15b)],this[_0x47b6fa(0x3fd)]);}[_0x5b7eaf(0x1df)](){return this;}[_0x5b7eaf(0x3e2)](_0x280a5f){const _0x2c6104=_0x5b7eaf,_0x5ac35c=_0x280a5f!=null?_0x280a5f:this[_0x2c6104(0x167)]();this[_0x2c6104(0x250)]=new Date()['getTime'](),this[_0x2c6104(0x3ee)]=window[_0x2c6104(0x1fd)](()=>{const _0xac7e6a=_0x2c6104;this[_0xac7e6a(0x2f5)]();let _0x48a6db=null;switch(this[_0xac7e6a(0x21b)]){case x[_0xac7e6a(0x18f)]:{_0x48a6db=hs(this[_0xac7e6a(0x15b)],this[_0xac7e6a(0x2e3)],this[_0xac7e6a(0xba)],this[_0xac7e6a(0x300)],this[_0xac7e6a(0x361)]);break;}case x['UNIVER_DOC']:{this[_0xac7e6a(0x15b)][_0xac7e6a(0x3d5)](_0x436efd=>_0x436efd['id']===_0x193233['id'])?_0x48a6db=_r(this[_0xac7e6a(0x15b)],this[_0xac7e6a(0x2e3)],this[_0xac7e6a(0xba)],this[_0xac7e6a(0x300)],this[_0xac7e6a(0x361)]):_0x48a6db=hs(this['_pendingMutations'],this[_0xac7e6a(0x2e3)],this[_0xac7e6a(0xba)],this[_0xac7e6a(0x300)],this[_0xac7e6a(0x361)]);break;}default:throw new Error(_0xac7e6a(0x3e7)+this['type']+_0xac7e6a(0x326));}const {changeset:_0x8de0ee,pendingMutations:_0x518ee8}=_0x48a6db;this[_0xac7e6a(0x3fd)]['onSendChangeset'](_0x8de0ee);const _0xc2d780=_0x518ee8[_0xac7e6a(0x143)]?this['_injector'][_0xac7e6a(0x18a)](K,this[_0xac7e6a(0x2e3)],this[_0xac7e6a(0x21b)],_0x8de0ee,_0x518ee8,this[_0xac7e6a(0x3fd)]):this['_injector'][_0xac7e6a(0x18a)](Z,this[_0xac7e6a(0x2e3)],this['type'],_0x8de0ee,this['_handler']);_0xc2d780[_0xac7e6a(0x126)](),this[_0xac7e6a(0x3fd)][_0xac7e6a(0x2fa)](this,_0xc2d780);},_0x5ac35c);}[_0x5b7eaf(0x167)](){const _0x5d61dd=_0x5b7eaf;var _0x2e56c9;return(_0x2e56c9=this[_0x5d61dd(0x110)][_0x5d61dd(0x39b)](mn))!=null?_0x2e56c9:gn;}[_0x5b7eaf(0x2e2)](){const _0x2bc40e=_0x5b7eaf;throw new Error(_0x2bc40e(0x317));}[_0x5b7eaf(0x2f5)](){const _0x19c619=_0x5b7eaf;this[_0x19c619(0x3ee)]!=null&&(clearTimeout(this[_0x19c619(0x3ee)]),this[_0x19c619(0x3ee)]=null);}[_0x5b7eaf(0x324)](_0x312ff4){const _0x1e5259=_0x5b7eaf;return this[_0x1e5259(0x2f5)](),this['_injector'][_0x1e5259(0x18a)](Q,this[_0x1e5259(0x2e3)],this[_0x1e5259(0x21b)],null,this[_0x1e5259(0x15b)],this[_0x1e5259(0x3fd)],_0x312ff4);}};Y=he([m(0x4,_0x2c1848(_0x1637c5)),m(0x5,_0x2c1848(_0xe33365)),m(0x6,_0x2c1848(D)),m(0x7,_0x2c1848(oe)),m(0x8,_0x4cc166),m(0x9,_0x2521f5),m(0xa,_0x5debaa),m(0xb,_0x364c40),m(0xc,_0x52988f),m(0xd,_0x948466)],Y);let Z=class extends le{constructor(_0x35b091,_0x106a79,_0xccc42d,_0x5511a9,_0x3a9b2b,_0x433e4a,_0x5914ee,_0x5ada04,_0x528385,_0x2c1b41,_0x4432e7){const _0x41d0a4=_0x5b7eaf;super(_0x35b091,_0x106a79,_0xccc42d,[],_0x5511a9,_0x5ada04,_0x4432e7,_0x433e4a,_0x5914ee),l(this,_0x41d0a4(0x2d4),_0x41d0a4(0x13c)),(this[_0x41d0a4(0x27d)]=_0x3a9b2b,this['_logService']=_0x528385,this[_0x41d0a4(0x2ef)]=_0x2c1b41);}[_0x5b7eaf(0x2de)](_0x48023f){const _0x4f9df2=_0x5b7eaf,_0xf37691=this[_0x4f9df2(0x27d)]['createInstance'](K,this['unitID'],this[_0x4f9df2(0x21b)],this[_0x4f9df2(0x1c6)],[_0x48023f],this[_0x4f9df2(0x3fd)]);return _0xf37691['_updateLocalCache'](),_0xf37691;}[_0x5b7eaf(0x107)](_0x36e4cf){const _0xd7f730=_0x5b7eaf;if(this['_checkMissing'](_0x36e4cf))return this[_0xd7f730(0x27d)]['createInstance'](H,this[_0xd7f730(0x2e3)],this[_0xd7f730(0x21b)],this[_0xd7f730(0x1c6)],[],null,[_0x36e4cf],this[_0xd7f730(0x3fd)]);try{const _0x13d331=this[_0xd7f730(0x2ef)][_0xd7f730(0x153)]([_0x36e4cf],[this[_0xd7f730(0x1c6)]],!0x1);if(_0x1d473e(_0x13d331)){const {c1Prime:_0x44de5a,c2Prime:_0x4fc010}=_0x13d331;this[_0xd7f730(0x3aa)](_0x44de5a[0x0]),_0x4fc010[0x0][_0xd7f730(0x1db)]=this[_0xd7f730(0x364)]();const _0x3a7209=this[_0xd7f730(0x27d)][_0xd7f730(0x18a)](Z,this[_0xd7f730(0x2e3)],this['type'],_0x4fc010[0x0],this[_0xd7f730(0x3fd)]);return _0x3a7209['_updateLocalCache'](),_0x3a7209;}return this['_onConflict'](!0x1);}catch(_0x411135){return this[_0xd7f730(0x134)][_0xd7f730(0x332)](_0x411135),this[_0xd7f730(0x324)](!0x1);}}['onRemoteAck'](_0x236965){const _0x18f298=_0x5b7eaf,_0xa98daa=this[_0x18f298(0x300)][_0x18f298(0x385)](this[_0x18f298(0x2e3)]);if(_0x236965[_0x18f298(0x3f2)]<_0xa98daa-0x1)return this;if(this['_checkMissing'](_0x236965))return this[_0x18f298(0x27d)][_0x18f298(0x18a)](H,this[_0x18f298(0x2e3)],this[_0x18f298(0x21b)],null,[],this[_0x18f298(0x1c6)],[],this[_0x18f298(0x3fd)]);this[_0x18f298(0x2f7)]();const _0x3703ea=this['_injector']['createInstance'](Se,this['unitID'],this['type'],this[_0x18f298(0x3fd)]);return _0x3703ea[_0x18f298(0x126)](),_0x3703ea;}[_0x5b7eaf(0x1ec)](_0xac0b7b){const _0x16839e=_0x5b7eaf;return this[_0x16839e(0x324)](!!(_0xac0b7b!=null&&_0xac0b7b[_0x16839e(0x1f3)]));}[_0x5b7eaf(0x331)](){const _0x2a27f7=_0x5b7eaf;return this['_injector'][_0x2a27f7(0x18a)](ee,this[_0x2a27f7(0x2e3)],this[_0x2a27f7(0x21b)],this['_awaitingChangeset'],[],this['_handler']);}[_0x5b7eaf(0x1df)](){return this;}[_0x5b7eaf(0x2e2)](){const _0x53177b=_0x5b7eaf;this[_0x53177b(0x3fd)][_0x53177b(0x333)](this[_0x53177b(0x1c6)]);}['_onConflict'](_0x32eb98){const _0x1b4435=_0x5b7eaf;return this[_0x1b4435(0x27d)][_0x1b4435(0x18a)](Q,this[_0x1b4435(0x2e3)],this[_0x1b4435(0x21b)],this[_0x1b4435(0x1c6)],[],this[_0x1b4435(0x3fd)],_0x32eb98);}};Z=he([m(0x4,_0x2c1848(_0x1637c5)),m(0x5,_0x2c1848(_0xe33365)),m(0x6,_0x2c1848(D)),m(0x7,_0x2521f5),m(0x8,_0x4cc166),m(0x9,_0x364c40),m(0xa,_0x948466)],Z);let K=class extends le{constructor(_0x3bf188,_0x43021f,_0x32c4f0,_0x3c5bc8,_0x43a799,_0x27f679,_0x4b123d,_0x43a1be,_0x3b407b,_0x53d149,_0x27b0b4,_0x64d5db){const _0x1652a7=_0x5b7eaf;super(_0x3bf188,_0x43021f,_0x32c4f0,_0x3c5bc8,_0x43a799,_0x3b407b,_0x64d5db,_0x4b123d,_0x43a1be),l(this,_0x1652a7(0x2d4),'awaiting_with_pending'),(this['_injector']=_0x27f679,this[_0x1652a7(0x134)]=_0x53d149,this['_transformService']=_0x27b0b4);}[_0x5b7eaf(0x2de)](_0x5cda2f){const _0x452c82=_0x5b7eaf;return this['_pendingMutations'][_0x452c82(0x2cb)](_0x5cda2f),this;}[_0x5b7eaf(0x107)](_0x1031a2){const _0x42f3ad=_0x5b7eaf;if(this['_checkMissing'](_0x1031a2))return this[_0x42f3ad(0x27d)][_0x42f3ad(0x18a)](H,this['unitID'],this[_0x42f3ad(0x21b)],this[_0x42f3ad(0x1c6)],this['_pendingMutations'],null,[_0x1031a2],this[_0x42f3ad(0x3fd)]);try{const _0x18c4e9=this[_0x42f3ad(0x2ef)][_0x42f3ad(0x153)]([_0x1031a2],[this[_0x42f3ad(0x1c6)]],!0x1);if(_0x1d473e(_0x18c4e9)){const {c1Prime:_0x99b440,c2Prime:_0x4139cd}=_0x18c4e9,_0x18dabc=this[_0x42f3ad(0x2ef)][_0x42f3ad(0x17d)](_0x99b440[0x0],this[_0x42f3ad(0x15b)]);if(_0x3d99d4(_0x18dabc)){const {c1Prime:_0x285e28,m2Prime:_0xa09e10}=_0x18dabc;return this[_0x42f3ad(0x3aa)](_0x285e28),_0x4139cd[0x0][_0x42f3ad(0x1db)]=this[_0x42f3ad(0x364)](),this[_0x42f3ad(0x27d)][_0x42f3ad(0x18a)](K,this[_0x42f3ad(0x2e3)],this[_0x42f3ad(0x21b)],_0x4139cd[0x0],_0xa09e10,this[_0x42f3ad(0x3fd)]);}throw _0x18dabc[_0x42f3ad(0x332)];}throw _0x18c4e9['error'];}catch(_0x4e09b0){return this['_logService'][_0x42f3ad(0x332)](_0x4e09b0),this[_0x42f3ad(0x324)](!0x1);}}['onRemoteAck'](_0x20b832){const _0x2864af=_0x5b7eaf;if(this['_checkMissing'](_0x20b832))return this['_injector'][_0x2864af(0x18a)](H,this[_0x2864af(0x2e3)],this[_0x2864af(0x21b)],null,this[_0x2864af(0x15b)],this[_0x2864af(0x1c6)],[],this['_handler']);this[_0x2864af(0x2f7)]();const _0x172190=this[_0x2864af(0x27d)][_0x2864af(0x18a)](Y,this['unitID'],this[_0x2864af(0x21b)],this[_0x2864af(0x15b)],this[_0x2864af(0x3fd)]);return _0x172190[_0x2864af(0x3e2)](),_0x172190[_0x2864af(0x126)](),_0x172190;}[_0x5b7eaf(0x1ec)](_0x15932a){const _0x579be8=_0x5b7eaf;return this['_onConflict'](!!(_0x15932a!=null&&_0x15932a[_0x579be8(0x1f3)]));}[_0x5b7eaf(0x331)](){const _0x1bdd6a=_0x5b7eaf;return this['_injector'][_0x1bdd6a(0x18a)](ee,this['unitID'],this[_0x1bdd6a(0x21b)],this[_0x1bdd6a(0x1c6)],this[_0x1bdd6a(0x15b)],this[_0x1bdd6a(0x3fd)]);}['toggleOnline'](){return this;}[_0x5b7eaf(0x2e2)](){const _0x47bc28=_0x5b7eaf;this[_0x47bc28(0x3fd)][_0x47bc28(0x333)](this[_0x47bc28(0x1c6)]);}[_0x5b7eaf(0x324)](_0x5a7059){const _0x54e9e4=_0x5b7eaf;return this['_injector']['createInstance'](Q,this['unitID'],this[_0x54e9e4(0x21b)],null,this['_pendingMutations'],this['_handler'],_0x5a7059);}};K=he([m(0x5,_0x2c1848(_0x1637c5)),m(0x6,_0x2c1848(_0xe33365)),m(0x7,_0x2c1848(D)),m(0x8,_0x2521f5),m(0x9,_0x4cc166),m(0xa,_0x364c40),m(0xb,_0x948466)],K);let Q=class extends le{constructor(_0x3803f2,_0x52c3d9,_0x455eb1,_0x2b9fbc,_0x374d5f,_0x1e8661=!0x1,_0x55a9e9,_0x5387e1,_0x5c4832,_0x9a5a09,_0x5c107d,_0x5185ce,_0x593717){const _0x53b55b=_0x5b7eaf;super(_0x3803f2,_0x52c3d9,_0x455eb1,_0x2b9fbc,_0x374d5f,_0x5387e1,_0x5c4832,_0x5c107d,_0x9a5a09),l(this,'status',_0x53b55b(0x14e)),(this[_0x53b55b(0xeb)]=_0x1e8661,this[_0x53b55b(0x2f2)]=_0x55a9e9,this[_0x53b55b(0x30e)]=_0x5185ce,this['_notificationService']=_0x593717,this[_0x53b55b(0x190)](),this[_0x53b55b(0xd9)](),this['_disableEditing']());}[_0x5b7eaf(0x2de)](){return this;}[_0x5b7eaf(0x107)](){return this;}[_0x5b7eaf(0x27f)](){return this;}[_0x5b7eaf(0x1ec)](){return this;}[_0x5b7eaf(0x331)](){return this;}[_0x5b7eaf(0x1df)](){return this;}[_0x5b7eaf(0x2e2)](){const _0x20c806=_0x5b7eaf;throw new Error(_0x20c806(0x263));}['_clearLocalCache'](){const _0x4760f8=_0x5b7eaf;this[_0x4760f8(0x291)][_0x4760f8(0x272)](this[_0x4760f8(0x2e3)],this[_0x4760f8(0x21b)],null,[]);}[_0x5b7eaf(0x190)](){const _0x61fde4=_0x5b7eaf;this[_0x61fde4(0xeb)]?this[_0x61fde4(0x3c0)][_0x61fde4(0x2d3)]({'title':this[_0x61fde4(0x30e)]['t'](_0x61fde4(0x294)),'content':this['_localeService']['t']('permission.content'),'type':_0x61fde4(0x332),'duration':0x0}):this[_0x61fde4(0x3c0)][_0x61fde4(0x2d3)]({'title':this['_localeService']['t'](_0x61fde4(0x201)),'content':this['_localeService']['t']('conflict.content'),'type':'error','duration':0x0});}[_0x5b7eaf(0x13a)](){const _0x3495fa=_0x5b7eaf;this[_0x3495fa(0x2f2)][_0x3495fa(0x334)](new _0x53288a(this['unitID'])['id'],!0x1);}};Q=he([m(0x6,_0x2c1848(_0x133542)),m(0x7,_0x2521f5),m(0x8,_0x948466),m(0x9,_0x2c1848(D)),m(0xa,_0x2c1848(_0xe33365)),m(0xb,_0x2c1848(_0x1e7bf5)),m(0xc,_0x233335)],Q);let ee=class extends le{constructor(_0x2f8c3d,_0x5df491,_0x2745d2,_0x2a1f7f,_0x594803,_0x306081,_0x5445cb,_0x3a0ae6,_0x54e1ed,_0x3a5247){const _0x16c21e=_0x5b7eaf;super(_0x2f8c3d,_0x5df491,_0x2745d2,_0x2a1f7f,_0x594803,_0x54e1ed,_0x3a5247,_0x5445cb,_0x3a0ae6),l(this,_0x16c21e(0x2d4),'offline'),this[_0x16c21e(0x27d)]=_0x306081;}[_0x5b7eaf(0x2de)](_0x2fceb3){const _0x3f28ab=_0x5b7eaf;return this[_0x3f28ab(0x15b)]['push'](_0x2fceb3),this[_0x3f28ab(0x126)](),this;}[_0x5b7eaf(0x107)](_0x1417cb){const _0x3b6e03=_0x5b7eaf;throw new Error(_0x3b6e03(0x112));}[_0x5b7eaf(0x27f)](){const _0x3a40b1=_0x5b7eaf;throw new Error(_0x3a40b1(0x32d));}[_0x5b7eaf(0x1ec)](){const _0x323c4e=_0x5b7eaf;throw new Error(_0x323c4e(0x2ec));}[_0x5b7eaf(0x331)](){return this;}[_0x5b7eaf(0x1df)](){const _0x276e40=_0x5b7eaf,{_injector:_0x218d40,_pendingMutations:_0x22b183,_awaitingChangeset:_0x2e9df8,unitID:_0x2f2594,_handler:_0x12ebca,type:_0x2d2291}=this,_0x4576fa=xs(_0x218d40,_0x2f2594,_0x2d2291,_0x2e9df8,_0x22b183,_0x12ebca);return _0x4576fa instanceof Y?_0x4576fa[_0x276e40(0x3e2)]():(_0x4576fa instanceof K||_0x4576fa instanceof Z)&&_0x4576fa[_0x276e40(0x2e2)](),_0x4576fa;}[_0x5b7eaf(0x2e2)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};ee=he([m(0x5,_0x2c1848(_0x1637c5)),m(0x6,_0x2c1848(_0xe33365)),m(0x7,_0x2c1848(D)),m(0x8,_0x2521f5),m(0x9,_0x948466)],ee);let H=class extends le{constructor(_0x46c21f,_0x308a59,_0x156527,_0x5e4a08,_0x347c76,_0x43862a,_0x216ee1,_0x567a23,_0x28db53,_0x3f09e8,_0x5754ec,_0x298b3a,_0x39c97b,_0x3fc25e){const _0x274b18=_0x5b7eaf;super(_0x46c21f,_0x308a59,_0x156527,_0x5e4a08,_0x216ee1,_0x298b3a,_0x39c97b,_0x28db53,_0x3f09e8),l(this,'status','fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x347c76,this[_0x274b18(0x2ca)]=_0x43862a,this['_injector']=_0x567a23,this[_0x274b18(0x134)]=_0x5754ec,this[_0x274b18(0x2ef)]=_0x3fc25e);}[_0x5b7eaf(0x39f)](_0x4c50ad){const _0x348cc0=_0x5b7eaf;try{const _0x62700b=[..._0x4c50ad,...this[_0x348cc0(0x2ca)]],_0xc7de23=[this[_0x348cc0(0x1c6)]||this['_acknowledgedAwaitingChangeset']][_0x348cc0(0x15d)](_0x74eafa=>!!_0x74eafa);let _0x3fab2d,_0x38182c;if(_0xc7de23[_0x348cc0(0x143)]){const _0x255378=this[_0x348cc0(0x2ef)][_0x348cc0(0x153)](_0x62700b,_0xc7de23,!0x1);if(!_0x1d473e(_0x255378))throw _0x255378[_0x348cc0(0x332)];_0x3fab2d=_0x255378[_0x348cc0(0x106)],_0x38182c=_0x255378['c2Prime'];}else _0x3fab2d=_0x62700b,_0x38182c=[];let _0x235790=this['_pendingMutations'];_0x3fab2d[_0x348cc0(0x215)](_0xfb430e=>{const _0xb75db6=_0x348cc0;let _0x12f62c;if(_0x235790['length']){const _0x1b438d=this[_0xb75db6(0x2ef)][_0xb75db6(0x17d)](_0xfb430e,_0x235790);if(!_0x3d99d4(_0x1b438d))throw _0x1b438d['error'];_0x12f62c=_0x1b438d[_0xb75db6(0x106)],_0x235790=_0x1b438d[_0xb75db6(0x246)];}else _0x12f62c=_0xfb430e;this['_executeRemoteChangeset'](_0x12f62c);}),this[_0x348cc0(0x399)]&&this[_0x348cc0(0x2f7)](),this['_awaitingChangeset']&&_0x38182c['length']&&(_0x38182c[0x0][_0x348cc0(0x1db)]=this[_0x348cc0(0x364)]());let _0x1277df;if(this[_0x348cc0(0x1c6)]&&_0x235790[_0x348cc0(0x143)]!==0x0)_0x1277df=this[_0x348cc0(0x27d)][_0x348cc0(0x18a)](K,this[_0x348cc0(0x2e3)],this[_0x348cc0(0x21b)],_0x38182c[0x0],_0x235790,this[_0x348cc0(0x3fd)]);else{if(this['_awaitingChangeset']&&_0x235790['length']===0x0)_0x38182c[0x0][_0x348cc0(0x1db)]=this[_0x348cc0(0x364)](),_0x1277df=this[_0x348cc0(0x27d)]['createInstance'](Z,this[_0x348cc0(0x2e3)],this['type'],_0x38182c[0x0],this[_0x348cc0(0x3fd)]);else{if(_0x235790[_0x348cc0(0x143)]!==0x0){const _0x380adb=this[_0x348cc0(0x27d)][_0x348cc0(0x18a)](Y,this[_0x348cc0(0x2e3)],this[_0x348cc0(0x21b)],_0x235790,this['_handler']);_0x380adb[_0x348cc0(0x3e2)](),_0x1277df=_0x380adb;}else _0x1277df=this[_0x348cc0(0x27d)][_0x348cc0(0x18a)](Se,this[_0x348cc0(0x2e3)],this[_0x348cc0(0x21b)],this[_0x348cc0(0x3fd)]);}}return _0x1277df['_updateLocalCache'](),_0x1277df;}catch(_0xb5c67){return this['_logService'][_0x348cc0(0x332)](_0x348cc0(0x357),_0x348cc0(0x22a),_0xb5c67),this['_injector']['createInstance'](Q,this[_0x348cc0(0x2e3)],this[_0x348cc0(0x21b)],this[_0x348cc0(0x1c6)],this[_0x348cc0(0x15b)],this['_handler'],!0x1);}}[_0x5b7eaf(0x2e2)](){const _0x1b3e5c=_0x5b7eaf;throw new Error(_0x1b3e5c(0x135));}[_0x5b7eaf(0x2de)](_0x98b3bd){const _0x1b6581=_0x5b7eaf;return this['_pendingMutations'][_0x1b6581(0x2cb)](_0x98b3bd),this;}[_0x5b7eaf(0x107)](_0x24b288){const _0x55f9bc=_0x5b7eaf;return this[_0x55f9bc(0x2ca)][_0x55f9bc(0x2cb)](_0x24b288),this;}[_0x5b7eaf(0x27f)](_0x9dc432){const _0x2d82da=_0x5b7eaf;if(this[_0x2d82da(0x1c6)])return this[_0x2d82da(0x399)]=this['_awaitingChangeset'],this[_0x2d82da(0x1c6)]=null,this;throw new Error(_0x2d82da(0x285));}['onRemoteRej'](_0x12d3ba){const _0x1135cb=_0x5b7eaf;return this[_0x1135cb(0x324)](!!(_0x12d3ba!=null&&_0x12d3ba['isPermissionRej']));}[_0x5b7eaf(0x331)](){const _0x3d339f=_0x5b7eaf;return this['_injector'][_0x3d339f(0x18a)](ee,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x3d339f(0x15b)],this['_handler']);}[_0x5b7eaf(0x1df)](){return this;}[_0x5b7eaf(0x324)](_0x3f04a7){const _0xdb2fad=_0x5b7eaf;return this[_0xdb2fad(0x27d)]['createInstance'](Q,this['unitID'],this['type'],this[_0xdb2fad(0x1c6)],this[_0xdb2fad(0x15b)],this[_0xdb2fad(0x3fd)],_0x3f04a7);}};H=he([m(0x7,_0x2c1848(_0x1637c5)),m(0x8,_0x2c1848(_0xe33365)),m(0x9,_0x2c1848(D)),m(0xa,_0x4cc166),m(0xb,_0x2521f5),m(0xc,_0x948466),m(0xd,_0x364c40)],H);function xs(_0x3794f5,_0x251930,_0x312a9b,_0xb5228,_0xe667f,_0x4f9409){const _0x594481=_0x5b7eaf;return _0xb5228&&_0xe667f[_0x594481(0x143)]?_0x3794f5[_0x594481(0x18a)](K,_0x251930,_0x312a9b,_0xb5228,_0xe667f,_0x4f9409):_0xb5228?_0x3794f5[_0x594481(0x18a)](Z,_0x251930,_0x312a9b,_0xb5228,_0x4f9409):_0xe667f[_0x594481(0x143)]?_0x3794f5[_0x594481(0x18a)](Y,_0x251930,_0x312a9b,_0xe667f,_0x4f9409):_0x3794f5[_0x594481(0x18a)](Se,_0x251930,_0x312a9b,_0x4f9409);}var mr=Object['defineProperty'],gr=Object[_0x5b7eaf(0x25b)],Vt=(_0x197521,_0x210e0c,_0x377c98,_0x2bd13b)=>{const _0x31b769=_0x5b7eaf;for(var _0x4fbdf6=_0x2bd13b>0x1?void 0x0:_0x2bd13b?gr(_0x210e0c,_0x377c98):_0x210e0c,_0x106ea8=_0x197521[_0x31b769(0x143)]-0x1,_0x637140;_0x106ea8>=0x0;_0x106ea8--)(_0x637140=_0x197521[_0x106ea8])&&(_0x4fbdf6=(_0x2bd13b?_0x637140(_0x210e0c,_0x377c98,_0x4fbdf6):_0x637140(_0x4fbdf6))||_0x4fbdf6);return _0x2bd13b&&_0x4fbdf6&&mr(_0x210e0c,_0x377c98,_0x4fbdf6),_0x4fbdf6;},p=(_0x21ead6,_0x455dc1)=>(_0x3b195e,_0x3440db)=>_0x455dc1(_0x3b195e,_0x3440db,_0x21ead6);let tt=class extends _0x33f191{constructor(_0x283067,_0x6d80ff,_0x41ba04,_0x58ed6d,_0x1210d5,_0x2cee24,_0x1e37bc,_0x3dd93b,_0x361d63,_0x36884b,_0x3341bd,_0x40f66f,_0x44fc2c){const _0x4ee12b=_0x5b7eaf;super(),l(this,_0x4ee12b(0x28a),new _0xdb5176(null)),l(this,_0x4ee12b(0x2c3),this[_0x4ee12b(0x28a)][_0x4ee12b(0x3a7)]()),l(this,'_state'),l(this,_0x4ee12b(0xcf),!0x1),l(this,_0x4ee12b(0x32a),this[_0x4ee12b(0x2c3)][_0x4ee12b(0x1b6)](_0x3ae97d(_0x545dd4=>_0x545dd4?_0x545dd4['status']:w[_0x4ee12b(0x184)]),_0x42dad9(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x4ee12b(0x2c8),[]),(this['unitID']=_0x283067,this['session']=_0x6d80ff,this[_0x4ee12b(0xfe)]=_0x41ba04,this[_0x4ee12b(0x27d)]=_0x58ed6d,this[_0x4ee12b(0x291)]=_0x1210d5,this['_compressMutationService']=_0x2cee24,this['_localeService']=_0x1e37bc,this['_revisionService']=_0x3dd93b,this[_0x4ee12b(0x134)]=_0x361d63,this[_0x4ee12b(0x204)]=_0x36884b,this[_0x4ee12b(0x1b2)]=_0x3341bd,this[_0x4ee12b(0x2f2)]=_0x40f66f,this[_0x4ee12b(0x2c4)]=_0x44fc2c);}get[_0x5b7eaf(0x3b4)](){const _0x5665bc=_0x5b7eaf;return this[_0x5665bc(0x20b)];}async[_0x5b7eaf(0xda)](){const _0x3b7918=_0x5b7eaf;if(this[_0x3b7918(0x3b4)])throw new Error(_0x3b7918(0x133));await this[_0x3b7918(0x1cb)]();}[_0x5b7eaf(0x211)](){const _0xfbcabd=_0x5b7eaf;return this[_0xfbcabd(0xcf)]=!0x0,_0xa7e5b7(()=>{const _0x7fc540=_0xfbcabd;this[_0x7fc540(0xcf)]=!0x1,this[_0x7fc540(0x321)]();});}[_0x5b7eaf(0x398)](_0x556f29){const _0x3f2527=_0x5b7eaf;this[_0x3f2527(0x20b)]=_0x556f29,this[_0x3f2527(0x28a)][_0x3f2527(0x3ef)](_0x556f29);}async[_0x5b7eaf(0x1cb)](){const _0x4689d2=_0x5b7eaf;var _0x55d68b;this[_0x4689d2(0x398)](await this[_0x4689d2(0x248)]()),this[_0x4689d2(0x2c4)]&&((_0x55d68b=this[_0x4689d2(0x2c4)])==null||_0x55d68b['editingUnit'](this[_0x4689d2(0x2e3)]),this['disposeWithMe'](this[_0x4689d2(0x2c4)][_0x4689d2(0x1d2)](this[_0x4689d2(0x2e3)])[_0x4689d2(0x113)](_0x2f6762=>{const _0x3bc550=_0x4689d2;this[_0x3bc550(0x134)][_0x3bc550(0x330)](_0x3bc550(0x27e),'editing\x20status\x20changed\x20to',_0x2f6762),_0x2f6762===$s[_0x3bc550(0x2ac)]?(this[_0x3bc550(0x1b2)][_0x3bc550(0x2d3)]({'content':this[_0x3bc550(0x30e)]['t']('collaboration.single-unit.warning'),'type':_0x21289[_0x3bc550(0x150)]}),this[_0x3bc550(0x2f2)][_0x3bc550(0x334)](new _0x53288a(this[_0x3bc550(0x2e3)])['id'],!0x1)):this['_permissionService'][_0x3bc550(0x334)](new _0x53288a(this[_0x3bc550(0x2e3)])['id'],!0x0);})));let _0x5862a9=!0x1;return this['disposeWithMe'](this[_0x4689d2(0x1b8)][_0x4689d2(0x1e4)][_0x4689d2(0x113)](_0xb13696=>{const _0x398ccf=_0x4689d2;_0xb13696===W['ONLINE']?this[_0x398ccf(0x222)](_0x5862a9):_0xb13696===W['OFFLINE']&&(_0x5862a9=!0x0,this[_0x398ccf(0x245)]());})),this[_0x4689d2(0x255)](this[_0x4689d2(0x1b8)]['event$'][_0x4689d2(0x113)](_0x2b7ff7=>{const _0x46e9e7=_0x4689d2;try{switch(_0x2b7ff7[_0x46e9e7(0x1a0)]){case _0x47275c[_0x46e9e7(0x151)]:{this[_0x46e9e7(0x105)](_0x2a48dc(_0x2b7ff7[_0x46e9e7(0x2da)]));break;}case _0x47275c[_0x46e9e7(0x139)]:{this[_0x46e9e7(0x210)](_0x2b7ff7['data']);break;}case _0x47275c[_0x46e9e7(0x31d)]:{this[_0x46e9e7(0x2e7)]();break;}case _0x47275c['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x46e9e7(0x1e7)](_0x2b7ff7[_0x46e9e7(0x2da)][_0x46e9e7(0x3d4)][_0x46e9e7(0x309)](_0x41378a=>_0x2a48dc(_0x41378a)));break;}case _0x47275c[_0x46e9e7(0x19b)]:this[_0x46e9e7(0x2e7)]({'isPermissionRej':!0x0});}}catch(_0x4ee3dc){throw console[_0x46e9e7(0x332)](_0x46e9e7(0x271),_0x4ee3dc),_0x4ee3dc;}})),this[_0x4689d2(0x20b)];}[_0x5b7eaf(0x14b)](){const _0x765345=_0x5b7eaf;this[_0x765345(0xf4)]=!0x1;}[_0x5b7eaf(0x3df)](){const _0x453839=_0x5b7eaf;if(this['_transitionLocked'])throw new Error(_0x453839(0xdc));this[_0x453839(0xf4)]=!0x0;}['_onLocalMutation'](_0x598342){const _0x1b09e2=_0x5b7eaf;this[_0x1b09e2(0x3df)](),this[_0x1b09e2(0x398)](this[_0x1b09e2(0x20b)]['appendMutation'](_0x598342)),this[_0x1b09e2(0x14b)]();}[_0x5b7eaf(0x105)](_0x569278){const _0x5209eb=_0x5b7eaf;if(!(_0x569278[_0x5209eb(0x3f2)]<=this[_0x5209eb(0x300)]['getCurrentRevOfUnit'](this[_0x5209eb(0x2e3)]))){if(this[_0x5209eb(0xcf)]){this['_remoteChangesetQueue'][_0x5209eb(0x2cb)](_0x569278);return;}this[_0x5209eb(0x376)](_0x569278);}}['_exhaustRemoteChangesetQueue'](){const _0x29a962=_0x5b7eaf;this['_remoteChangesetQueue']['forEach'](_0x4a58b4=>this[_0x29a962(0x376)](_0x4a58b4)),this[_0x29a962(0x2c8)]=[];}[_0x5b7eaf(0x376)](_0x5d3ac4){const _0x420028=_0x5b7eaf,_0x4f6ac5=this[_0x420028(0x290)][_0x420028(0x34d)][_0x420028(0x35e)](this[_0x420028(0x290)][_0x420028(0x34d)][_0x420028(0x116)]()[_0x420028(0x244)])(_0x5d3ac4[_0x420028(0x18c)],null)||_0x5d3ac4[_0x420028(0x18c)],_0x130ab2={..._0x5d3ac4,'mutations':_0x4f6ac5};this[_0x420028(0x3df)](),this['_updateState'](this[_0x420028(0x20b)]['onRemoteChangeset'](_0x130ab2)),this['_unlockTransition']();}[_0x5b7eaf(0x210)](_0x1277bb){const _0x125371=_0x5b7eaf;this[_0x125371(0x3df)](),this[_0x125371(0x398)](this['_state'][_0x125371(0x27f)](_0x1277bb)),this['_unlockTransition']();}[_0x5b7eaf(0x2e7)](_0x245849){const _0x16d83f=_0x5b7eaf;this[_0x16d83f(0x3df)](),this['_updateState'](this['_state'][_0x16d83f(0x1ec)](_0x245849)),this['_unlockTransition']();}[_0x5b7eaf(0x1e7)](_0x2ddaad){const _0x3d737f=_0x5b7eaf;if(!(this['_state']instanceof H))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0xe5bfac=_0x2ddaad[_0x3d737f(0x309)](_0x335080=>{const _0x3add29=_0x3d737f,_0x2480ce=this[_0x3add29(0x290)][_0x3add29(0x34d)]['fetchThroughInterceptors'](this[_0x3add29(0x290)]['interceptor'][_0x3add29(0x116)]()[_0x3add29(0x244)])(_0x335080['mutations'],null)||_0x335080['mutations'];return{..._0x335080,'mutations':_0x2480ce};});this[_0x3d737f(0x3df)](),this[_0x3d737f(0x398)](this[_0x3d737f(0x20b)][_0x3d737f(0x39f)](_0xe5bfac)),this[_0x3d737f(0x14b)]();}['_toggleOffline'](){const _0x14c578=_0x5b7eaf;this[_0x14c578(0x3df)](),this['_updateState'](this[_0x14c578(0x20b)][_0x14c578(0x331)]()),this[_0x14c578(0x14b)]();}['_toggleOnline'](_0x38fefe=!0x1){const _0x457dda=_0x5b7eaf;this[_0x457dda(0x3df)](),this[_0x457dda(0x398)](this[_0x457dda(0x20b)][_0x457dda(0x1df)]()),this[_0x457dda(0x14b)]();const _0x393f75=this[_0x457dda(0x20b)];_0x38fefe&&_0x393f75 instanceof Se&&(this[_0x457dda(0x3df)](),this[_0x457dda(0x398)](_0x393f75[_0x457dda(0x229)]()),this[_0x457dda(0x14b)]());}async['_createInitialState'](){return new Promise(_0x3163db=>{const _0x402113=_0x4581;this[_0x402113(0x1b8)][_0x402113(0x1e4)][_0x402113(0x1b6)](_0x4f24d1(0x1))['subscribe'](async _0x16bc9a=>{const _0x4a4896=_0x402113;_0x3163db(await this[_0x4a4896(0x1d6)](_0x16bc9a===W[_0x4a4896(0x308)]));});});}[_0x5b7eaf(0x17b)](){const _0x1ac153=this['unitID'];return{'onStateChange':(_0x384f78,_0x5b74b1)=>{const _0x251fc3=_0x4581;if(_0x384f78!==this[_0x251fc3(0x20b)])throw new Error(_0x251fc3(0x264)+_0x384f78['status']+_0x251fc3(0x3e4)+_0x5b74b1[_0x251fc3(0x2d4)]+_0x251fc3(0x1d1)+this['_state'][_0x251fc3(0x2d4)]);this[_0x251fc3(0x398)](_0x5b74b1);},'onSendChangeset':_0x25f686=>{const _0x42f3c1=_0x4581,_0x3fc28a={'eventID':_0x47275c[_0x42f3c1(0x394)],'data':{'unitID':_0x25f686[_0x42f3c1(0x2e3)],'unitType':this['_type'],'changeset':_0x25f686,'memberID':this[_0x42f3c1(0x1b8)][_0x42f3c1(0x11e)]()}};this[_0x42f3c1(0x1b8)][_0x42f3c1(0x287)](_0x3fc28a,this['unitID']);},'onMissingChangesets':({from:_0x422da8,to:_0x15438e})=>{const _0x30679e=_0x4581;this['_logService'][_0x30679e(0x330)](_0x30679e(0x27e),_0x30679e(0x3e0)+_0x422da8+'\x20to\x20'+_0x15438e);const _0x1385bb={'eventID':_0x47275c[_0x30679e(0x2d7)],'data':{'unitID':_0x1ac153,'unitType':this[_0x30679e(0xfe)],'from':_0x422da8,'to':_0x15438e}};this[_0x30679e(0x1b8)][_0x30679e(0x287)](_0x1385bb,this[_0x30679e(0x2e3)]);}};}async['_createInitialStateImpl'](_0x3216b5){const _0x94ea95=_0x5b7eaf;var _0x205d90,_0x55c37d;const _0x404e4b=await this[_0x94ea95(0x291)]['loadOfflineData'](this['unitID']),_0x5cbc49=(_0x205d90=_0x404e4b==null?void 0x0:_0x404e4b[_0x94ea95(0x18c)])!=null?_0x205d90:[],_0x432326=(_0x55c37d=_0x404e4b==null?void 0x0:_0x404e4b[_0x94ea95(0x103)])!=null?_0x55c37d:null,_0x41bcb4=this[_0x94ea95(0x2e3)];try{this[_0x94ea95(0x348)](_0x432326,_0x5cbc49);}catch(_0x1dbdd6){this[_0x94ea95(0x134)][_0x94ea95(0x332)](_0x1dbdd6);}const _0xd81f0=this[_0x94ea95(0x17b)]();if(_0x3216b5){const _0x424e13=xs(this[_0x94ea95(0x27d)],_0x41bcb4,this['_type'],_0x432326,_0x5cbc49,_0xd81f0);return _0x424e13 instanceof Y?_0x424e13[_0x94ea95(0x3e2)]():(_0x424e13 instanceof K||_0x424e13 instanceof Z)&&_0x424e13[_0x94ea95(0x2e2)](),_0x424e13;}return this[_0x94ea95(0x27d)]['createInstance'](ee,_0x41bcb4,this['_type'],_0x432326,_0x5cbc49,_0xd81f0);}[_0x5b7eaf(0x348)](_0x5929a0,_0x30334a){const _0x5b89fc=_0x5b7eaf;var _0x2b1c59,_0x372cb7;const _0x1de73c=this['_compressMutationService'][_0x5b89fc(0x34d)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x5b89fc(0x34d)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x2b1c59=_0x1de73c((_0x5929a0==null?void 0x0:_0x5929a0[_0x5b89fc(0x18c)])||[],null))==null||_0x2b1c59[_0x5b89fc(0x215)](_0x56472b=>this[_0x5b89fc(0x204)][_0x5b89fc(0x26d)](_0x56472b['id'],_0x56472b[_0x5b89fc(0x14c)])),(_0x372cb7=_0x1de73c(_0x30334a||[],null))==null||_0x372cb7[_0x5b89fc(0x215)](_0x37ff7e=>this[_0x5b89fc(0x204)][_0x5b89fc(0x26d)](_0x37ff7e['id'],_0x37ff7e['params']));}};tt=Vt([p(0x3,_0x2c1848(_0x1637c5)),p(0x4,_0x2c1848(D)),p(0x5,_0x2c1848(_0x31a667)),p(0x6,_0x2c1848(_0x1e7bf5)),p(0x7,_0x2c1848(_0xe33365)),p(0x8,_0x4cc166),p(0x9,_0x2521f5),p(0xa,_0x3df3ba),p(0xb,_0x133542),p(0xc,_0x3b757a(it))],tt);let Tt=class extends tt{constructor(_0x3c739e,_0x33f6c9,_0x65ed2,_0x2fa9c9,_0xeb6390,_0x1d4949,_0xc11283,_0x1f1042,_0x48ca8e,_0x27af3f,_0x39e417,_0x122b83,_0x51fb2f,_0x4ca77d,_0x44eb1d,_0x109f1c,_0x635a0a){const _0x69dedd=_0x5b7eaf;super(_0x3c739e,_0x65ed2,_0x33f6c9,_0x2fa9c9,_0xeb6390,_0x1d4949,_0xc11283,_0x1f1042,_0x51fb2f,_0x4ca77d,_0x44eb1d,_0x109f1c,_0x635a0a),this[_0x69dedd(0x2e3)]=_0x3c739e,this[_0x69dedd(0x21b)]=_0x33f6c9,this[_0x69dedd(0xbe)]=_0x48ca8e,this[_0x69dedd(0xab)]=_0x27af3f,this[_0x69dedd(0x192)]=_0x39e417,this[_0x69dedd(0x2dd)]=_0x122b83;}['_createHandler'](){const _0x5025d0=_0x5b7eaf,_0x141d66=super['_createHandler']();return _0x141d66['onTransformIME']=_0x1f0817=>this['_docTransformIMECacheService'][_0x5025d0(0x194)](_0x1f0817),_0x141d66[_0x5025d0(0x356)]=_0x12f37e=>this[_0x5025d0(0x192)][_0x5025d0(0x231)](_0x12f37e),_0x141d66[_0x5025d0(0x38b)]=_0x4a4e22=>this[_0x5025d0(0x2dd)][_0x5025d0(0x32f)](_0x4a4e22),_0x141d66[_0x5025d0(0x1f5)]=_0x2a7ece=>this[_0x5025d0(0xab)][_0x5025d0(0x10c)](_0x2a7ece),_0x141d66;}async[_0x5b7eaf(0x1cb)](){const _0x4bf89f=_0x5b7eaf,_0x29a765=await super[_0x4bf89f(0x1cb)]();return this[_0x4bf89f(0x255)](this[_0x4bf89f(0x204)]['onCommandExecuted']((_0x358466,_0x373ac1)=>{const _0x2bc764=_0x4bf89f;if(_0x358466['type']!==_0xb6689e[_0x2bc764(0xd3)]||_0x373ac1!=null&&_0x373ac1[_0x2bc764(0x38e)]||_0x373ac1!=null&&_0x373ac1[_0x2bc764(0x16e)])return;const _0x520dec=_0x358466[_0x2bc764(0x14c)];if((_0x520dec==null?void 0x0:_0x520dec['unitId'])!==this['unitID'])return;let _0x2f6305=_0x358466;if(_0x2f6305['id']===_0x193233['id']){const _0x172184=_0x2f6305[_0x2bc764(0x14c)];_0x2f6305={'id':_0x193233['id'],'type':_0xb6689e[_0x2bc764(0xd3)],'params':{'unitId':_0x172184[_0x2bc764(0x166)],'actions':_0x172184[_0x2bc764(0x2bb)],'textRanges':null}};}const _0x56d7b7=this[_0x2bc764(0x290)]['interceptor'][_0x2bc764(0x35e)](this[_0x2bc764(0x290)][_0x2bc764(0x34d)]['getInterceptPoints']()[_0x2bc764(0x179)])([_0x2f6305],null)||[_0x2f6305];this['_onLocalMutation'](_0x56d7b7[0x0]);})),_0x29a765;}};Tt=Vt([p(0x3,_0x2c1848(_0x1637c5)),p(0x4,_0x2c1848(D)),p(0x5,_0x2c1848(_0x31a667)),p(0x6,_0x2c1848(_0x1e7bf5)),p(0x7,_0x2c1848(_0xe33365)),p(0x8,_0x2c1848(_0x36d82f)),p(0x9,_0x2c1848(Ze)),p(0xa,_0x2c1848(et)),p(0xb,_0x2c1848(Bt)),p(0xc,_0x4cc166),p(0xd,_0x2521f5),p(0xe,_0x3df3ba),p(0xf,_0x133542),p(0x10,_0x3b757a(it))],Tt);function _0x5d04(){const _0x1f8dec=['_memberService','UNDEFINED','message$','_getCurrentRevision','_config','assign','key','cursorInfo','stringify','onTransformChange$','[CollaborationSession]','subscribeEvent','permissionRejEvent','max','resourceIDs','connection\x20error','_commentService','closeSession','_listenToOfflineEvent','_transformPreviousActiveRange','event$','_applyRemoteChangeset','transformUndoRedo','RemoveColCommandId','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','enableAuthServer','_timeoutTimer','_clearTimeoutTimer','clipPath','[CollaborationState]:\x20apply\x20error!','getRangePointData','SNAPSHOT_HAS_BEEN_REMOVED','objects','addImageSourceCache','location','getRoom','getCurrentRevOfUnit','OnLineSingle','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','session.collaboration-timeout','_onRecvEvent','_document','onSyncEditingCollabCursor','UNRECOGNIZED','BASE64','fromCollab','FAIL','history','1158528gGhlmD','userID','onPointerMove$','SUBMIT_CHANGESET','catch','M0\x200H16V16H0z','Undefined','_updateState','_acknowledgedAwaitingChangeset','duration','getConfig','UnitEmbedded','collaboration-client.config','_listenToOnlineEvent','onMissedChangesetFetched','LIVESHARE_OPERATION','onMissingChangesets','getRelativeToViewportCoord','collab-text-range-','refreshPermission','MoveRangeCommandId','_handleJoinEvent','asObservable','NOT_COLLAB','UPDATE_PERMISSION_OBJ','_executeRemoteChangeset','replace','UNIVER_DOC','InsertRowCommandId','_handleHeartbeatEvent','loadOfflineData','defineProperty','TOO_MANY_REQUESTS','code','_onUserLeave','state','reject','YUUMI_URL_COL_OUT_OF_RANGE','PERMISSION_DENIED','_socketMessageSubscription','none','unit','_telemetryService','_getMergeRange','saveOfflineData','_telemetryInfo','_status$','_notificationService','_beforeCloseService','enableOfflineEditing','_imageSourceCache','href','Error','getActiveRange','_transformUndoredo','div','LOCAL_CACHE_INTERVAL','createElement','indexOf','LIVESHARE_NEW_HOST','USERS_ENTER','_ensureSubject','CHANGESET_REVISION_CONFILICT','_setupSubUnitSync','loadDoc','USERS_LEAVE','readAsDataURL','changesets','every','_removeRoom','activeSheet$','1122230ceOusW','body','HELLO','univer-pro.collaboration-client.single-active-unit-service','PSEUDO_FETCH_MISSING_RESULT','RemoveRowCommandId','_scheduleSaving','_lockTransition','fetching\x20missing\x20changesets\x20from\x20','registerRenderModule','_schedule','_roomMembers$','\x0aAfter:\x20','_shouldReportTelemetry','arc','[PendingState]:\x20unhandled\x20univer\x20type:\x20','getCurrentSelections','_unitOnClients','setConfig','_retryCount','searchParams','open$','_sendingTimer','next','univer-pro.collaboration-client-socket-service','values','revision','_undoStacks','/universer-api/snapshot/','_syncEditingCollabCursorService','socketService','univer-online-status-title','_clearHeartbeatTimer','_getSaveTimeout','RECV','create','_cursors','_handler','_joinRoom','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','isArray','setParam','all','9dMijEt','setWaitCount','unshift','createCollaborator','_getLoginPath','removeParam','LIVESHARE_TERMINATE','ERROR_IMAGE','onCommandExecuted','_lastPointer','...','onTransformIME','lineTo','FileId','clear','collaboration-session-retry','pending','/-/object/list','Ready','encode','range','CONFLICT','joinEvent','_tryEnsureSocket','transformMutation','_docTransformIMECacheService','socket\x20open.','verdancy600','_transformSelections','_syncEditingCollabCursor','_docSkeleton','getUniverSheetInstance','saveSheetBlock','getDocRanges','tag','_undoRedoService','[CollaborationUndoRedoService]','members','cmd','src','_univerInstanceService','collab-rect-range-','ERROR_EXCEED_SIZE','onPointerEnter$','_docStateChangeManagerService','_socketReady','_sessionStatus$','fillText','_refreshCollabCursors','saveImage','cursorInfo$','_change$','width','update','restore','_onCombEvent','_hover','leaveEvent','reduce','JOIN','delete','_collaborationPaused','find','_collaborationController','svg','MUTATION','color','currentTheme$','localeService','collabStatus.fetchMiss','12840kGXERy','_clearLocalCache','init','5wseRsm','[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.','_httpService','from','addObject','_shapes','contains','_socket$','LICENSE_EXPORT_SIZE_EXCEEDED','_sheetTransformSelectionsService','UNIVER_SLIDE','getUnitType','_waitCount','DEFAULT_FILE_NAME','text','auth.needGotoLoginAlert','_isPermissionRej','DeleteRangeMoveLeftCommandId','makeDirty','measureText','_getSignURL','deepClone','getUnitId','height','_name','_transitionLocked','updateCollaborator','getActiveSheet','fetch_missing','dispose','_id','YUUMI_RATE_OVER_LIMIT','colorChannel1','_getUploadFileURL','_getSheetObject','_type','encodeURIComponent','action','getCurrentUser','APPLY_NON_SEQUENTIAL_REVISION','awaitingChangeset','_onJoinRoomEvent','_onRemoteChangeset','c1Prime','onRemoteChangeset','getTypeOfUnitDisposed$','LIVESHARE_REQUEST_HOST','image/bmp','transformStack\x20failed!','transformRemoteChangeset','1em','_clearOtherTimers','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_configService','objectActions','[OfflineState]:\x20received\x20changeset.','subscribe','getCollabEntity$','[SyncedState]:\x20received\x20rejection.','getInterceptPoints','liveShareNewHost','_disabled','Univer','newValue','_heartbeatTimer','red300','_clearRedo','getMemberID','_throwTelemetryCollaborationNewChangeset','_scheduleClearOtherTimer','shouldCloseConn','2794PpYPpy','selection','idSuffix','whenReady','_updateLocalCache','objectID','AUTHZ_URL_KEY','_online','rev','includes','NOT_FOUND','onRendered','sheets','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','SNAPSHOT_SERVER_URL_KEY','change$','LICENSE_MAX_UNITS_EXCEEDED','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_logService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','not_collab','_unitStatus','[CollaborationSessionService]:\x20socket\x20error','CHANGESET_ACK','_disableEditing','_clearCollaborationTimeoutTimer','awaiting','_themeService','round','[PendingState]:\x20received\x20rejection.','call','_scheduleHeartbeat','Unknown\x20user','length','backgroundColor','beginPath','collabCursorState$','_context','_collabCursorState$','_saveTaskMap','toString','_unlockTransition','params','infoRsp','conflict','_onConnectionFailed','Warning','NEW_CHANGESETS','LICENSE_IMPORT_SIZE_EXCEEDED','transformChangesets','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','collab-client.tooltip.reconnect','APPLY_PERMISSION_DENIED','currentColor','fill','assignAColorForMemberID','getItem','_pendingMutations','_decreaseWaiting','filter','HttpExport','PENDING','_updateSubUnitFromURLParams','setActiveRange','with','font','getSheetBlock','[DataLoaderController]','unitId','_getSendChangesetTimeout','getOwnPropertySymbols','collabStatus.synced','defIds','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','isEditing','SYNCED','onlyLocal','1198266tVRCGt','reconnect','memberID','EXCHANGE_SIGN_URL_SERVER_URL_KEY','startColumn','LOGIN_URL_KEY','collaborators','AWAITING_WITH_PENDING','univer-online-status-icon','collaboration_new_changeset','COMPRESS_MUTATION_SEND','url','_createHandler','getWorkbookSelections','transformMutationsWithChangeset','string','ERROR_IMAGE_TYPE','defs','hasOwnProperty','csAckEvent','SHOULD_CLOSE_CONN','OFFLINE','concat','removeMember','_snapshotService','UnitSnapshot','UPDATE_CURSOR','createInstance','toRgbString','mutations','getMember','collabStatus.notCollab','UNIVER_SHEET','_showConflictNotification','fillStyle','_docTransformSelectionsService','name','transformIMECache','_removeClearOtherTimer','bottom','#fff','_updateCollabCursors','_transformUndoRedoStack','_getSnapshotAPIPrefix','PERMISSION_REJ','roles','selections','_retryConnectingTimer','60KtWaAI','eventID','UNIVER_UNKNOWN','YUUMI_SUBSCRIPTION_NOT_FOUND','_substituteRedoStack','now','uni.network.url-service','getValue','HttpImport','onPointerLeave$','reverse','0\x200\x2017\x2016','_collaborationSessionService','/universer-api/comb','commentUpdateEvent','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','className','override','HEARTBEAT_INTERVAL','_messageService','engine','Starting','doc.mutation.rich-text-editing','pipe','collabStatus.conflict','session','offline','UNKNOWN_CODE','_colorIndex','_getScale','_colorAssignService','onMouseMove','parse','COLLAB_SUBMIT_CHANGESET_URL','_userManagerService','getUnhiddenWorksheets','univerjs-icon\x20univerjs-icon-','UNIVER_COLLABORATION_CLIENT_PLUGIN','/-/object/-/batch_allowed','_awaitingChangeset','_replaceFileID','session.connection-failed','_getDownloadEndpointURL','_renderManagerService','_init','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','onCommentUpdate','unsubscribe','_anchor','requestParams','\x0aCurrent:\x20','getUnitStatus$','ws://127.0.0.1:8000/universer-api/comb/connect','getSheetBySheetId','&to=','_createInitialStateImpl','/object/','JOINING','session.will-retry','_drawAnchor','baseRev','#FFF','registerHTTPInterceptor','_hideTimer','toggleOnline','putCollaborators','SNAPSHOT_URL_KEY','APPLY_REJECT','getCollabCursors$','sessionStatus$','_labelPosition','onStarting','_onFetchMissResult','_startTelemetryCollaborationNewChangeset','COMMENT_UPDATE','set','off-line-single_clip0_910_343','onRemoteRej','_HTTPService','[UniverCollaborationClientPlugin]','onload','/object','gold400','1314ViFiGf','isPermissionRej','getSkeleton','onTransformRemoteChangesetByIMECache','isActive','getParam','save','_hovered','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_onMessage','close','setTimeout','socket$','_send','symbol','conflict.title','&assign=','_transformIMECache','_commandService','getTypeOfUnitAdded$','getRenderById','_submitChangeset','_collabSessionService','clearInterval','labelPosition','_state','LICENSE_DISTRO_REJECTED','storage','\x20-\x20','_tryReconnect','_onRemoteACK','pauseCollaboration','unit-cache-','complete','newCsEvent','forEach','setCurrentUser','_entities','_updateURLWithCurrentState','/universer-api/oidc/authpage','getSheetId','type','startTime','_sendHeartbeatTimer','popstate','_redoStacks','12681Jbafvl','_checkMissing','_toggleOnline','clearTimeout','exhaustSavingTask','/universer-api/stream/file/upload','FETCH_MISS','addObjects','_sheetSkeletonManagerService','fetchMiss','failed\x20to\x20apply\x20missed\x20changesets!','snapshot','_cursorInfo$','COLLAB_WEB_SOCKET_URL','size','_initCloseConn','_session','transformSelections','_rescheduleHeartbeat','getFocusedUnit','objectType','getVpScrollXYInfoByPosToVp','pluginName','file','/fetchmissing?from=','?url=','_onRefRangeChange','generateRandomId','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_draw','routeKey','withCredentials','_scheduleCollaborationTimeoutTimer','startsWith','updateCursorEvent','_uiPartsService','COMPRESS_MUTATION_APPLY','_toggleOffline','m2Prime','subunit','_createInitialState','roomMembers','_fetchMissChangesets','_handleEvent','HEARTBEAT','MSG_FOR_ERROR','collaboration-client.offline-data-not-saved','replaceState','_scheduleTimestamp','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','NO_OTHER_CLIENTS_EDITING','_waitForHeartbeatResponse','unitId\x20is\x20not\x20found','disposeWithMe','put','addEventListener','translate(.97)','resize','_initCommandExecutedListener','getOwnPropertyDescriptor','path','roomMembers$','&source=','/universer-api/file/{fileID}/sign-url','sessionStatus','COMPLETION_FINISHED','_socket','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','UNKNOWN_CMD','_localStorageService','drawWith','_candidateSocket','fetchMissingChangesets','HEARTBEAT_TIMEOUT','black','_startSheetCollabCursor','executeCommand','sheetId','getAncestorScale','APPLY_REVISION_CONFILICT','Error\x20on\x20receiving\x20event','updateOfflineData','YUUMI_UNABLE_LOAD_URL','downloadEndpointUrl','off-line-single','collab-text-anchor-','add','unknown','_collabCursorController','_initStatusComponent','_http','_initModules','_injector','[CollaborationEntity]','onRemoteAck','_initUnitPermissionChange','DeleteRangeMoveUpCommandId','/block/','_startDocCollabCursor','_unitID','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','/unit/','send','collaboration.closeRoom','online','_state$','unload','evenodd','_assignedColors','_saveCache','propertyIsEnumerable','_compressMutationService','_localCacheService','_ws','_getUndoStack','permission.title','_render','batchAllowed','_onUserJoin','INVALID_ARGUMENT','requireSession','_loadSheet','setItem','triggerDblclick','setUndoRedoMutationParamsCache','title','_selfUnitIDs','_anchorDot','top','updateMember','/collaborator','_registerRenderDependencies','fillRule','_refRangeService','_initStatusListener','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','moveTo','{fileID}','_snapshotServerService','OTHER_CLIENTS_EDITING','INTERNAL_ERROR','SNAPSHOT_INVALID_SNAPSHOT','_onCursorUpdate','then','collaboratorID','ALREADY_EXISTS','_onConnectionOpen','updatePermissionObjEvent','entries','registerComponent','_updateStatus','UNIVER_PROJECT','incrementRevOfUnit','headers','actions','_event$','flatMap','icon','_getRedoStack','_removeCollabCursors','function','_docSkeletonManagerService','state$','_singleActiveUnitService','[CollaborationSessionService]','POST','_backgroundColor','_remoteChangesetQueue','getViewport','_queuedRemoteChangesets','push','/universer-api/authz','_sendHeartbeat','_cachedData','dispose$','min','currentSkeleton$','editingUnit','show','status','_drawRectRange','subUnitId','FETCH_MISSING','resolve','listCollaborators','data','originalMeta','get','_docSyncEditingCollabCursorService','appendMutation','findNodePositionByCharIndex','sheetID','closePath','resend','unitID','INGEST','InsertRangeMoveDownCommandId','result','_onRemoteRejected','_clearUndo','random','stopTime','joinRsp','[OfflineState]:\x20received\x20rejection.','_startCollaboration','AWAITING','_transformService','createSocket','collaMsg','_permissionService','_initMergeInterceptor','ranges','_clearScheduledTask','IDLE','_incrementRevisionNumber','_drawTextRange','m1Prime','onStateChange','_collaborationTimeoutTimer','getCurrent','_substituteUndoStack','rgba(255,\x20255,\x20255,\x200.01)','84mwrzpo','_revisionService','allowed','775467XbdeIk','_members','patch','univer-offline','LEAVE','_loadDoc','ONLINE','map','deleteCollaborator','_scene','has','close$','_localeService','[SyncedState]:\x20received\x20acknowledgement.','_onOffline','_color','image/jpeg','_registerDependencies','_range','pushState','compose','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_initResize','xlink:href','_commentUpdate$','awaiting_with_pending','_cursorShapes','CHANGESET_REJ','_setupBeforeClosingHandler','_sessions','getOffsetConfig','_exhaustRemoteChangesetQueue','getUndoRedoMutationParamsCache','_updateLocalCursor','_onConflict','prototype','\x20in\x20_schedule.','extend','urlChange$','enableSingleActiveInstanceLock','status$','commentUpdate$','collabStatus.syncing','[OfflineState]:\x20received\x20acknowledgement.','split','syncEditingCollabCursor','debug','toggleOffline','error','onSendChangeset','updatePermissionPoint','getCollabEntity','_getAPIPrefix','hovered','_entityInit$','InsertRangeMoveRightCommandId','transform','socket\x20close','synced','ACTIVE_UNIT_EVENT_CHANNEL','_urlService','_onCursorDelete','/allowed','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','LIVESHARE_FETCH_OPERATIONS','_socketService','_eventUnsubscribe','registerRefRange','0\x200\x2016\x2016','CONNECTOR_DATA_TOO_LARGE','_replayCachedMutations','children','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_textBubble','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','interceptor','submit\x20changeset\x20error!','liveShareOperation','removeEventListener','/new_changes','endRow','registerBeforeClose','_roomMembers','post','onTransformSelections','[FetchMissState]','_getAPIPrefixPath','attrs','FromArray','_transformStack','focused$','_getAnchorBounding','fetchThroughInterceptors','textRanges','displayName'];_0x5d04=function(){return _0x1f8dec;};return _0x5d04();}let Rt=class extends tt{constructor(_0x23053a,_0x5506d0,_0x4fc9d6,_0x3c2f25,_0x406907,_0x1c71d8,_0x198a42,_0x14c451,_0x5b90fe,_0x2e553b,_0x4a39e1,_0x143542,_0xdb53a3,_0x4c4b54){const _0x43ff18=_0x5b7eaf;super(_0x23053a,_0x4fc9d6,_0x5506d0,_0x3c2f25,_0x406907,_0x1c71d8,_0x198a42,_0x14c451,_0x2e553b,_0x4a39e1,_0x143542,_0xdb53a3,_0x4c4b54),this['unitID']=_0x23053a,this[_0x43ff18(0x21b)]=_0x5506d0,this[_0x43ff18(0xe4)]=_0x5b90fe;}['_createHandler'](){const _0x494c82=_0x5b7eaf,_0x2f9554=super[_0x494c82(0x17b)]();return _0x2f9554['onTransformSelections']=_0x2ec73c=>this[_0x494c82(0xe4)][_0x494c82(0x231)](_0x2ec73c),_0x2f9554;}async[_0x5b7eaf(0x1cb)](){const _0x25c3dd=_0x5b7eaf,_0x2f988d=await super['_init']();return this['disposeWithMe'](this[_0x25c3dd(0x204)][_0x25c3dd(0x9a)]((_0x485f18,_0xd598c4)=>{const _0x30444e=_0x25c3dd;if(_0x485f18[_0x30444e(0x21b)]!==_0xb6689e[_0x30444e(0xd3)]||_0xd598c4!=null&&_0xd598c4[_0x30444e(0x38e)]||_0xd598c4!=null&&_0xd598c4['onlyLocal'])return;const _0xee8503=_0x485f18[_0x30444e(0x14c)];if((_0xee8503==null?void 0x0:_0xee8503['unitId'])!==this[_0x30444e(0x2e3)])return;const _0x4f9701=_0x485f18,_0x272d74=this[_0x30444e(0x290)][_0x30444e(0x34d)]['fetchThroughInterceptors'](this[_0x30444e(0x290)][_0x30444e(0x34d)][_0x30444e(0x116)]()['COMPRESS_MUTATION_SEND'])([_0x4f9701],null)||[_0x4f9701];this['_onLocalMutation'](_0x272d74[0x0]);})),_0x2f988d;}};Rt=Vt([p(0x3,_0x2c1848(_0x1637c5)),p(0x4,_0x2c1848(D)),p(0x5,_0x2c1848(_0x31a667)),p(0x6,_0x2c1848(_0x1e7bf5)),p(0x7,_0x2c1848(_0xe33365)),p(0x8,_0x2c1848(Qe)),p(0x9,_0x4cc166),p(0xa,_0x2521f5),p(0xb,_0x3df3ba),p(0xc,_0x133542),p(0xd,_0x3b757a(it))],Rt);var Sr=Object[_0x5b7eaf(0x3b0)],pr=Object[_0x5b7eaf(0x25b)],vr=(_0x38e5dd,_0x57c0b3,_0x5892e6,_0x315b57)=>{for(var _0x9f0323=_0x315b57>0x1?void 0x0:_0x315b57?pr(_0x57c0b3,_0x5892e6):_0x57c0b3,_0x51f5a4=_0x38e5dd['length']-0x1,_0x5e7297;_0x51f5a4>=0x0;_0x51f5a4--)(_0x5e7297=_0x38e5dd[_0x51f5a4])&&(_0x9f0323=(_0x315b57?_0x5e7297(_0x57c0b3,_0x5892e6,_0x9f0323):_0x5e7297(_0x9f0323))||_0x9f0323);return _0x315b57&&_0x9f0323&&Sr(_0x57c0b3,_0x5892e6,_0x9f0323),_0x9f0323;},_t=(_0x433527,_0x574c03)=>(_0x1f90dc,_0xd44963)=>_0x574c03(_0x1f90dc,_0xd44963,_0x433527);let Ue=class extends _0x33f191{constructor(_0x2a3344,_0x4d445b,_0x5c4bf3){const _0x36b2d9=_0x5b7eaf;super(),l(this,_0x36b2d9(0x217),new Map()),l(this,_0x36b2d9(0x338),new _0x51e21c()),(this[_0x36b2d9(0x27d)]=_0x2a3344,this[_0x36b2d9(0x208)]=_0x4d445b,this[_0x36b2d9(0xba)]=_0x5c4bf3,this[_0x36b2d9(0x1cb)]());}[_0x5b7eaf(0xf8)](){const _0x297178=_0x5b7eaf;super[_0x297178(0xf8)](),this[_0x297178(0x217)][_0x297178(0x215)](_0x589a43=>_0x589a43[_0x297178(0xf8)]()),this[_0x297178(0x217)][_0x297178(0xa0)]();}['getCollabEntity'](_0xdd6d2){const _0x246018=_0x5b7eaf;var _0x29a65a;return(_0x29a65a=this[_0x246018(0x217)]['get'](_0xdd6d2))!=null?_0x29a65a:null;}[_0x5b7eaf(0x114)](_0x18b530){const _0x579438=_0x5b7eaf,_0x53bb31=this[_0x579438(0x335)](_0x18b530);return _0x53bb31?_0x175cbd(_0x53bb31):this[_0x579438(0x338)][_0x579438(0x1b6)](_0x324b00(_0x164f16=>_0x164f16[_0x579438(0x2e3)]===_0x18b530));}[_0x5b7eaf(0x1cb)](){const _0x182e3c=_0x5b7eaf;this['_univerInstanceService'][_0x182e3c(0x205)](_0x275c2c[_0x182e3c(0x18f)])[_0x182e3c(0x1b6)](_0x53c8e3(this[_0x182e3c(0x2cf)]),_0x38bf87(0x10))['subscribe'](async _0x3ea1f5=>{const _0x5bf9cb=_0x182e3c,_0x1a5182=_0x3ea1f5[_0x5bf9cb(0xf1)](),_0x50c7ff=await this[_0x5bf9cb(0x2ed)](_0x1a5182,x[_0x5bf9cb(0x18f)]);this[_0x5bf9cb(0x217)][_0x5bf9cb(0x1ea)](_0x1a5182,_0x50c7ff);}),this[_0x182e3c(0xba)][_0x182e3c(0x205)](_0x275c2c['UNIVER_DOC'])['pipe'](_0x53c8e3(this[_0x182e3c(0x2cf)]),_0x38bf87(0x10))['pipe'](_0x324b00(_0x27835c=>!_0x27835c['getUnitId']()['startsWith']('__')))[_0x182e3c(0x113)](async _0xcb5ebc=>{const _0x1dda18=_0x182e3c,_0x599680=_0xcb5ebc[_0x1dda18(0xf1)](),_0xdc05e5=await this[_0x1dda18(0x2ed)](_0x599680,x[_0x1dda18(0x3ac)]);this[_0x1dda18(0x217)]['set'](_0x599680,_0xdc05e5);}),_0x3b6402(this[_0x182e3c(0xba)]['getTypeOfUnitDisposed$'](_0x275c2c[_0x182e3c(0x18f)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x275c2c['UNIVER_DOC']))[_0x182e3c(0x1b6)](_0x53c8e3(this[_0x182e3c(0x2cf)]))[_0x182e3c(0x113)](_0x23eff1=>{const _0x53e7f5=_0x182e3c,_0x152264=_0x23eff1[_0x53e7f5(0xf1)](),_0x547dfd=this['_entities']['get'](_0x152264);_0x547dfd&&(_0x547dfd[_0x53e7f5(0xf8)](),this[_0x53e7f5(0x217)][_0x53e7f5(0xce)](_0x152264));});}async[_0x5b7eaf(0x2ed)](_0x4e120c,_0xfe0e89){const _0x49413b=_0x5b7eaf,_0x4b6eeb=await this[_0x49413b(0x208)][_0x49413b(0x299)](_0x4e120c),_0x769f33=this[_0x49413b(0x27d)]['createInstance'](this['_getCtorByUniverType'](_0xfe0e89),_0x4e120c,_0xfe0e89,_0x4b6eeb);return await _0x769f33[_0x49413b(0xda)](),this[_0x49413b(0x338)][_0x49413b(0x3ef)](_0x769f33),_0x769f33;}['_getCtorByUniverType'](_0x57654a){const _0x275136=_0x5b7eaf;switch(_0x57654a){case x[_0x275136(0x3ac)]:return Tt;case x[_0x275136(0x18f)]:return Rt;default:throw new Error(_0x275136(0x1cc)+_0x57654a);}}};Ue=vr([_t(0x0,_0x2c1848(_0x1637c5)),_t(0x1,_0x2c1848(ae)),_t(0x2,_0x52988f)],Ue);const ls=['purple300','jiqing500',_0x5b7eaf(0xad),_0x5b7eaf(0x11c),'blue400',_0x5b7eaf(0x1f1)];class Ft extends _0x61b58b{constructor(){const _0x57eac1=_0x5b7eaf;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x57eac1(0x1bb),0x0);}['assignAColorForMemberID'](_0x13d0eb){const _0x277de6=_0x5b7eaf;if(this[_0x277de6(0x28d)]['has'](_0x13d0eb))return this['_assignedColors'][_0x277de6(0x2dc)](_0x13d0eb);const _0x276d45=ls[this['_colorIndex']];return this[_0x277de6(0x1bb)]=(this[_0x277de6(0x1bb)]+0x1)%ls[_0x277de6(0x143)],this[_0x277de6(0x28d)][_0x277de6(0x1ea)](_0x13d0eb,_0x276d45),_0x276d45;}}var Ir=Object[_0x5b7eaf(0x3b0)],Er=Object[_0x5b7eaf(0x25b)],Cr=(_0x578d7b,_0x2f335a,_0x2659b8,_0x1c447b)=>{const _0x410313=_0x5b7eaf;for(var _0x4906eb=_0x1c447b>0x1?void 0x0:_0x1c447b?Er(_0x2f335a,_0x2659b8):_0x2f335a,_0x42d83b=_0x578d7b[_0x410313(0x143)]-0x1,_0x1ffe15;_0x42d83b>=0x0;_0x42d83b--)(_0x1ffe15=_0x578d7b[_0x42d83b])&&(_0x4906eb=(_0x1c447b?_0x1ffe15(_0x2f335a,_0x2659b8,_0x4906eb):_0x1ffe15(_0x4906eb))||_0x4906eb);return _0x1c447b&&_0x4906eb&&Ir(_0x2f335a,_0x2659b8,_0x4906eb),_0x4906eb;},de=(_0x35edc8,_0x56c6d6)=>(_0x48ec5b,_0x4546c9)=>_0x56c6d6(_0x48ec5b,_0x4546c9,_0x35edc8);const br=0x12c,Tr=0x64,Rr=()=>{let _0x1ce90f=[],_0x34a529=!0x1;return _0x4147b9=>{const _0x2b5e44=_0x4581;_0x1ce90f[_0x2b5e44(0x2cb)](_0x4147b9),_0x34a529||(_0x34a529=!0x0,setTimeout(()=>{const _0x3eedbb=_0x2b5e44;_0x1ce90f[_0x3eedbb(0x215)](_0x57fc8c=>_0x57fc8c()),_0x1ce90f=[],_0x34a529=!0x1;}));};};let Ot=class extends _0x33f191{constructor(_0x314cf6,_0x32cdba,_0x5026b7,_0x54d93b,_0x4345f3,_0xa48ee0,_0x447e18,_0x34f434){const _0xb2bee7=_0x5b7eaf;super(),l(this,_0xb2bee7(0x129),!0x1),l(this,_0xb2bee7(0x1cb),!0x1),l(this,_0xb2bee7(0x22c),new _0xdb5176(new Map())),l(this,_0xb2bee7(0xc4),this[_0xb2bee7(0x22c)][_0xb2bee7(0x3a7)]()),l(this,_0xb2bee7(0x3e3),new _0xdb5176([])),l(this,_0xb2bee7(0x25d),this[_0xb2bee7(0x3e3)]['pipe'](_0x46ac8e(br))),l(this,'_updateLocalCursor',_0x4fa622((_0x152c6c,_0x3f457a)=>{const _0x11ba79=_0xb2bee7,_0x134eac={'eventID':_0x47275c[_0x11ba79(0x189)],'data':{'unitID':this[_0x11ba79(0x2e3)],'memberID':this[_0x11ba79(0x230)]['getMemberID'](),'selection':_0x5c5889(_0x152c6c,_0x3f457a['range'])}};this[_0x11ba79(0x230)][_0x11ba79(0x287)](_0x134eac,this[_0x11ba79(0x2e3)]);},Tr)),(this['unitID']=_0x314cf6,this[_0xb2bee7(0x230)]=_0x32cdba,this[_0xb2bee7(0x27d)]=_0x5026b7,this['_colorAssignService']=_0x54d93b,this[_0xb2bee7(0x361)]=_0x4345f3,this[_0xb2bee7(0xba)]=_0xa48ee0,this[_0xb2bee7(0x204)]=_0x447e18,this[_0xb2bee7(0x2a6)]=_0x34f434);}get[_0x5b7eaf(0x368)](){const _0x36da82=_0x5b7eaf;return this[_0x36da82(0x22c)]['getValue']();}get[_0x5b7eaf(0x249)](){const _0x2273a5=_0x5b7eaf;return this[_0x2273a5(0x3e3)][_0x2273a5(0x1a6)]();}[_0x5b7eaf(0xf8)](){const _0x52f472=_0x5b7eaf;super[_0x52f472(0xf8)](),this['_cursorInfo$'][_0x52f472(0x3ef)](new Map()),this[_0x52f472(0x22c)][_0x52f472(0x213)](),this[_0x52f472(0x3e3)][_0x52f472(0x3ef)]([]),this[_0x52f472(0x3e3)]['complete']();}[_0x5b7eaf(0xda)](){const _0x590ab6=_0x5b7eaf;this[_0x590ab6(0x1cb)]||(this[_0x590ab6(0x1cb)]=!0x0,this['_session'][_0x590ab6(0x1e4)][_0x590ab6(0x1b6)](_0x53c8e3(this[_0x590ab6(0x2cf)]))[_0x590ab6(0x113)](_0x54ac91=>{const _0x31a6b4=_0x590ab6;_0x54ac91===W['ONLINE']?this[_0x31a6b4(0x222)]():this[_0x31a6b4(0x245)]();}),this[_0x590ab6(0x230)][_0x590ab6(0x375)]['pipe'](_0x53c8e3(this[_0x590ab6(0x2cf)]))['subscribe'](_0xa1a4a0=>{const _0x427bc6=_0x590ab6,_0x42830c=_0xa1a4a0[_0x427bc6(0x1a0)];_0x42830c===_0x47275c[_0x427bc6(0x189)]&&this[_0x427bc6(0x2af)](_0xa1a4a0),_0x42830c===_0x47275c['USERS_LEAVE']&&this[_0x427bc6(0x33f)](_0xa1a4a0);}),this[_0x590ab6(0x23a)](),this[_0x590ab6(0x255)](this['_commandService'][_0x590ab6(0x9a)](_0xeecaad=>{const _0x3e31e4=_0x590ab6;if(this[_0x3e31e4(0x129)]&&_0xeecaad['id']===_0x228778['id']&&_0xeecaad[_0x3e31e4(0x14c)][_0x3e31e4(0x166)]===this[_0x3e31e4(0x2e3)]){const _0x3e161d=_0xeecaad[_0x3e31e4(0x14c)];this[_0x3e31e4(0x323)](_0x3e161d[_0x3e31e4(0x2d6)],_0x3e161d[_0x3e31e4(0x19d)][0x0]);}})));}[_0x5b7eaf(0x2af)](_0x5667f1){const _0x3fa44d=_0x5b7eaf;var _0x31ac30,_0x1775b9;const {memberID:_0x3cc483,selection:_0x55c712}=_0x5667f1['data'],{sheetName:_0x14d39f,range:_0x7435c6}=_0xb2f3c2(_0x55c712),_0x116700={'name':(_0x1775b9=(_0x31ac30=this['_memberService'][_0x3fa44d(0x18d)](this['unitID'],_0x3cc483))==null?void 0x0:_0x31ac30[_0x3fa44d(0x193)])!=null?_0x1775b9:_0x3fa44d(0x142),'range':this[_0x3fa44d(0x3bc)](_0x14d39f,_0x7435c6),'sheetID':_0x14d39f,'color':this[_0x3fa44d(0x1bd)][_0x3fa44d(0x159)](_0x3cc483),'selection':_0x55c712},_0x57c509=this[_0x3fa44d(0x368)];_0x57c509['set'](_0x3cc483,_0x116700),this[_0x3fa44d(0x22c)][_0x3fa44d(0x3ef)](_0x57c509);}[_0x5b7eaf(0x33f)](_0x59a3a5){const _0x5cdf3e=_0x5b7eaf,{memberID:_0x16022c}=_0x59a3a5[_0x5cdf3e(0x2da)],_0x7cf597=this[_0x5cdf3e(0x368)];_0x7cf597['delete'](_0x16022c),this[_0x5cdf3e(0x22c)]['next'](_0x7cf597);}[_0x5b7eaf(0x3bc)](_0x3d0bd8,_0x47779f){const _0x327940=_0x5b7eaf;var _0x42e331,_0x4e804b;const _0x4d85e1=(_0x4e804b=(_0x42e331=this['_univerInstanceService'][_0x327940(0xb1)](this['unitID']))==null?void 0x0:_0x42e331[_0x327940(0x1d4)](_0x3d0bd8))==null?void 0x0:_0x4e804b['getMergeData']();return(_0x4d85e1==null?void 0x0:_0x4d85e1[_0x327940(0xd0)](_0x19bf59=>_0x5d35ef[_0x327940(0xe1)](_0x19bf59,_0x47779f)))||_0x47779f;}[_0x5b7eaf(0x23a)](){const _0x3d64cd=_0x5b7eaf,_0x2b3bb7=new _0x3eb24f(),_0x4b8ed5=Rr(),_0x5d4bbb=()=>{const _0x1111db=_0x4581;_0x2b3bb7[_0x1111db(0xf8)]();const _0x2e98f3=(_0x30c33b,_0x12250d,_0x28f17b,_0x3119c4)=>{const _0x1065b3=_0x1111db;let _0x26ae7f=[];switch(_0x30c33b['id']){case _0x2643ca[_0x1065b3(0xec)]:{_0x26ae7f=_0x14e037(_0x30c33b,_0x3119c4);break;}case _0x2643ca[_0x1065b3(0x281)]:{_0x26ae7f=_0x28fa28(_0x30c33b,_0x3119c4);break;}case _0x2643ca['InsertColCommandId']:{_0x26ae7f=_0x1f3c90(_0x30c33b,_0x3119c4);break;}case _0x2643ca[_0x1065b3(0x2e5)]:{_0x26ae7f=_0x10e41d(_0x30c33b,_0x3119c4);break;}case _0x2643ca[_0x1065b3(0x339)]:{_0x26ae7f=_0x598b24(_0x30c33b,_0x3119c4);break;}case _0x2643ca[_0x1065b3(0x3ad)]:{_0x26ae7f=_0x6e3f61(_0x30c33b,_0x3119c4);break;}case _0x2643ca[_0x1065b3(0x3a5)]:{_0x26ae7f=_0x117f9c(_0x30c33b,_0x3119c4);break;}case _0x2643ca[_0x1065b3(0x378)]:{_0x26ae7f=_0x3dfc09(_0x30c33b,_0x3119c4);break;}case _0x2643ca[_0x1065b3(0x3dd)]:{_0x26ae7f=_0x1e7d60(_0x30c33b,_0x3119c4);break;}}const _0x31f0d6=_0x1e6099(_0x26ae7f,_0x3119c4),_0x9bd003=this[_0x1065b3(0x368)][_0x1065b3(0x2dc)](_0x12250d);if(_0x9bd003&&_0x31f0d6){const _0x2527a9={..._0x9bd003,'range':_0x31f0d6};this['cursorInfo'][_0x1065b3(0x1ea)](_0x12250d,_0x2527a9),_0x4b8ed5(()=>{const _0x17fbae=_0x1065b3,_0x27ca28=this[_0x17fbae(0x2a6)][_0x17fbae(0x345)](_0x31f0d6,_0x1a4533=>(_0x27ca28[_0x17fbae(0xf8)](),_0x2e98f3(_0x1a4533,_0x12250d,_0x28f17b,_0x31f0d6)));_0x2b3bb7[_0x17fbae(0x277)](_0x27ca28);});}return{'redos':[],'undos':[]};};this[_0x1111db(0x368)][_0x1111db(0x215)]((_0x58084d,_0x49d52c)=>{const _0x5299d3=_0x1111db,{range:_0x5152b0,sheetID:_0x167b08}=_0x58084d,_0xa11e61=this[_0x5299d3(0x2a6)][_0x5299d3(0x345)](_0x5152b0,_0x2593ae=>(_0xa11e61[_0x5299d3(0xf8)](),_0x2e98f3(_0x2593ae,_0x49d52c,_0x167b08,_0x5152b0)));_0x2b3bb7[_0x5299d3(0x277)](_0xa11e61);});};this[_0x3d64cd(0x255)](_0xa7e5b7(this[_0x3d64cd(0x22c)][_0x3d64cd(0x113)](()=>{_0x5d4bbb();})));}[_0x5b7eaf(0x222)](){const _0x3699b5=_0x5b7eaf;var _0x208f58,_0x28d7bd;if(this[_0x3699b5(0x129)]=!0x0,((_0x208f58=this['_univerInstanceService'][_0x3699b5(0x233)]())==null?void 0x0:_0x208f58[_0x3699b5(0xf1)]())!==this[_0x3699b5(0x2e3)])return;const _0x3f8283=(_0x28d7bd=this[_0x3699b5(0x27d)][_0x3699b5(0x2dc)](_0x12a4eb)['getCurrentSelections']())==null?void 0x0:_0x28d7bd[0x0],_0x236cd3=this[_0x3699b5(0xba)]['getCurrentUnitForType'](_0x275c2c[_0x3699b5(0x18f)])[_0x3699b5(0xf6)]();_0x3f8283&&_0x236cd3&&this['_updateLocalCursor'](_0x236cd3['getSheetId'](),_0x3f8283);}[_0x5b7eaf(0x245)](){this['_online']=!0x1;}};Ot=Cr([de(0x2,_0x2c1848(_0x1637c5)),de(0x3,_0x2c1848(Ft)),de(0x4,_0x2c1848(oe)),de(0x5,_0x52988f),de(0x6,_0x2521f5),de(0x7,_0x2c1848(_0x2b89cb))],Ot);var Or=Object[_0x5b7eaf(0x3b0)],Dr=Object[_0x5b7eaf(0x25b)],wr=(_0x580d00,_0x569567,_0xa8853,_0xb4ccd2)=>{for(var _0x2535d4=_0xb4ccd2>0x1?void 0x0:_0xb4ccd2?Dr(_0x569567,_0xa8853):_0x569567,_0x37f520=_0x580d00['length']-0x1,_0x50d53a;_0x37f520>=0x0;_0x37f520--)(_0x50d53a=_0x580d00[_0x37f520])&&(_0x2535d4=(_0xb4ccd2?_0x50d53a(_0x569567,_0xa8853,_0x2535d4):_0x50d53a(_0x2535d4))||_0x2535d4);return _0xb4ccd2&&_0x2535d4&&Or(_0x569567,_0xa8853,_0x2535d4),_0x2535d4;},se=(_0x166b54,_0x2b6983)=>(_0x5b10da,_0x2086bb)=>_0x2b6983(_0x5b10da,_0x2086bb,_0x166b54);const Pr=0x12c,Nr=0x64;let Dt=class extends _0x33f191{constructor(_0x346831,_0x56ff64,_0x394b1e,_0x3aa7e1,_0xbb710a,_0x292782,_0x1a6891,_0x2b05ec,_0x2c620c){const _0x3a5e05=_0x5b7eaf;super(),l(this,_0x3a5e05(0x129),!0x1),l(this,_0x3a5e05(0x1cb),!0x1),l(this,_0x3a5e05(0x22c),new _0xdb5176(new Map())),l(this,_0x3a5e05(0xc4),this['_cursorInfo$'][_0x3a5e05(0x3a7)]()),l(this,_0x3a5e05(0x3e3),new _0xdb5176([])),l(this,_0x3a5e05(0x25d),this[_0x3a5e05(0x3e3)][_0x3a5e05(0x1b6)](_0x46ac8e(Pr))),l(this,'_updateLocalCursor',_0x4fa622(_0x5e73d4=>{const _0x5cf843=_0x3a5e05,_0x307dfa={'eventID':_0x47275c[_0x5cf843(0x189)],'data':{'unitID':this[_0x5cf843(0x2e3)],'memberID':this[_0x5cf843(0x230)][_0x5cf843(0x11e)](),'selection':js(_0x5e73d4)}};this[_0x5cf843(0x230)]['send'](_0x307dfa,this[_0x5cf843(0x2e3)]);},Nr)),(this[_0x3a5e05(0x2e3)]=_0x346831,this[_0x3a5e05(0x230)]=_0x56ff64,this[_0x3a5e05(0x27d)]=_0x394b1e,this['_colorAssignService']=_0x3aa7e1,this['_memberService']=_0xbb710a,this[_0x3a5e05(0x3f5)]=_0x292782,this[_0x3a5e05(0x2ef)]=_0x1a6891,this[_0x3a5e05(0xba)]=_0x2b05ec,this[_0x3a5e05(0x204)]=_0x2c620c);}get[_0x5b7eaf(0x368)](){const _0x33c7a4=_0x5b7eaf;return this['_cursorInfo$'][_0x33c7a4(0x1a6)]();}get[_0x5b7eaf(0x249)](){const _0x592549=_0x5b7eaf;return this[_0x592549(0x3e3)]['getValue']();}[_0x5b7eaf(0xf8)](){const _0x372568=_0x5b7eaf;super[_0x372568(0xf8)](),this['_cursorInfo$'][_0x372568(0x3ef)](new Map()),this[_0x372568(0x22c)][_0x372568(0x213)](),this[_0x372568(0x3e3)][_0x372568(0x3ef)]([]),this[_0x372568(0x3e3)][_0x372568(0x213)]();}['init'](){const _0x1cd792=_0x5b7eaf;this[_0x1cd792(0x1cb)]||(this[_0x1cd792(0x1cb)]=!0x0,this[_0x1cd792(0x230)]['sessionStatus$']['pipe'](_0x53c8e3(this[_0x1cd792(0x2cf)]))[_0x1cd792(0x113)](_0x4110d7=>{const _0x48c800=_0x1cd792;_0x4110d7===W['ONLINE']?this[_0x48c800(0x222)]():this[_0x48c800(0x245)]();}),this[_0x1cd792(0x230)][_0x1cd792(0x375)][_0x1cd792(0x1b6)](_0x53c8e3(this['dispose$']))[_0x1cd792(0x113)](_0x471fd7=>{const _0x3fbbdd=_0x1cd792,_0x429974=_0x471fd7[_0x3fbbdd(0x1a0)];_0x429974===_0x47275c[_0x3fbbdd(0x189)]&&this[_0x3fbbdd(0x2af)](_0x471fd7),_0x429974===_0x47275c[_0x3fbbdd(0x3d2)]&&this[_0x3fbbdd(0x33f)](_0x471fd7);}),this[_0x1cd792(0x255)](this[_0x1cd792(0x204)][_0x1cd792(0x9a)](_0x40c4b4=>{const _0x47c03e=_0x1cd792,_0x10d34f=_0x40c4b4[_0x47c03e(0x14c)];_0x10d34f!=null&&this[_0x47c03e(0x129)]&&_0x40c4b4['id']===_0x2eec51['id']&&_0x10d34f[_0x47c03e(0x166)]===this['unitID']&&_0x10d34f[_0x47c03e(0x16c)]===!0x1&&this['_updateLocalCursor'](_0x10d34f[_0x47c03e(0x2f4)]);})),this[_0x1cd792(0x3f5)][_0x1cd792(0x146)][_0x1cd792(0x1b6)](_0x53c8e3(this['dispose$']))[_0x1cd792(0x113)](_0x20fe77=>{const _0x5a9cf8=_0x1cd792;if((_0x20fe77==null?void 0x0:_0x20fe77[_0x5a9cf8(0x2e3)])!==this['unitID'])return;const _0x5ecb00={'eventID':_0x47275c['UPDATE_CURSOR'],'data':_0x20fe77};this[_0x5a9cf8(0x2af)](_0x5ecb00);}),this[_0x1cd792(0x255)](this['_commandService'][_0x1cd792(0x9a)](_0x25c02a=>{const _0x34fe4f=_0x1cd792;if(_0x25c02a[_0x34fe4f(0x14c)]==null)return;const _0x414956=_0x25c02a[_0x34fe4f(0x14c)];if(_0x25c02a['id']!==_0x193233['id']||_0x414956['unitId']!==this[_0x34fe4f(0x2e3)])return;const _0x165c62={'id':_0x34fe4f(0x1b5),'params':_0x414956},_0x389e2f=this[_0x34fe4f(0x368)];for(const [_0xf10cb9,_0x2684de]of _0x389e2f){const _0x3f9f3a={'id':_0x34fe4f(0x1b5),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x2684de['ranges']}},_0x48b06e=this[_0x34fe4f(0x2ef)][_0x34fe4f(0xaa)](_0x165c62,_0x3f9f3a,!0x1);if(_0x43078a(_0x48b06e))throw _0x48b06e['error'];_0x389e2f[_0x34fe4f(0x1ea)](_0xf10cb9,{..._0x2684de,'ranges':_0x48b06e[_0x34fe4f(0x246)][_0x34fe4f(0x14c)]['textRanges']});}queueMicrotask(()=>{const _0x3b88f5=_0x34fe4f;this[_0x3b88f5(0x22c)][_0x3b88f5(0x3ef)](_0x389e2f);});})));}[_0x5b7eaf(0x2af)](_0xb32004){const _0xd5488c=_0x5b7eaf;var _0x3a4335,_0x26c5e7;const {memberID:_0x32798d,selection:_0x24b291}=_0xb32004[_0xd5488c(0x2da)],_0xa4cda=or(_0x24b291),_0x3deef0=(_0x26c5e7=(_0x3a4335=this[_0xd5488c(0x361)][_0xd5488c(0x18d)](this[_0xd5488c(0x2e3)],_0x32798d))==null?void 0x0:_0x3a4335[_0xd5488c(0x193)])!=null?_0x26c5e7:_0xd5488c(0x142),_0x22fd6a={'color':this[_0xd5488c(0x1bd)][_0xd5488c(0x159)](_0x32798d),'name':_0x3deef0,'ranges':_0xa4cda},_0x1649d6=this[_0xd5488c(0x368)];_0x1649d6['set'](_0x32798d,_0x22fd6a),this[_0xd5488c(0x22c)][_0xd5488c(0x3ef)](_0x1649d6);}[_0x5b7eaf(0x33f)](_0x210148){const _0x2aa8c2=_0x5b7eaf,{memberID:_0x50f411}=_0x210148[_0x2aa8c2(0x2da)],_0x16b141=this[_0x2aa8c2(0x368)];_0x16b141[_0x2aa8c2(0xce)](_0x50f411),this[_0x2aa8c2(0x22c)][_0x2aa8c2(0x3ef)](_0x16b141);}['_toggleOnline'](){const _0x450166=_0x5b7eaf;var _0x115920;if(this['_online']=!0x0,((_0x115920=this['_univerInstanceService'][_0x450166(0x233)]())==null?void 0x0:_0x115920[_0x450166(0xf1)]())!==this[_0x450166(0x2e3)])return;const _0x54ab97=this[_0x450166(0x27d)][_0x450166(0x2dc)](_0x2dea1c)[_0x450166(0xb3)]();Array['isArray'](_0x54ab97)&&_0x54ab97[_0x450166(0x143)]>0x0&&this[_0x450166(0x323)](_0x54ab97);}[_0x5b7eaf(0x245)](){const _0x1dd65c=_0x5b7eaf;this[_0x1dd65c(0x129)]=!0x1;}};Dt=wr([se(0x2,_0x2c1848(_0x1637c5)),se(0x3,_0x2c1848(Ft)),se(0x4,_0x2c1848(oe)),se(0x5,_0x2c1848(Bt)),se(0x6,_0x364c40),se(0x7,_0x52988f),se(0x8,_0x2521f5)],Dt);var yr=Object[_0x5b7eaf(0x3b0)],Mr=Object[_0x5b7eaf(0x25b)],Ur=(_0x408f3b,_0x322aa4,_0xf16a2f,_0x124180)=>{const _0x286bdb=_0x5b7eaf;for(var _0x304e03=_0x124180>0x1?void 0x0:_0x124180?Mr(_0x322aa4,_0xf16a2f):_0x322aa4,_0x49be82=_0x408f3b[_0x286bdb(0x143)]-0x1,_0xabaada;_0x49be82>=0x0;_0x49be82--)(_0xabaada=_0x408f3b[_0x49be82])&&(_0x304e03=(_0x124180?_0xabaada(_0x322aa4,_0xf16a2f,_0x304e03):_0xabaada(_0x304e03))||_0x304e03);return _0x124180&&_0x304e03&&yr(_0x322aa4,_0xf16a2f,_0x304e03),_0x304e03;},ut=(_0xc8d667,_0x534905)=>(_0xeecd4a,_0x4f3d7a)=>_0x534905(_0xeecd4a,_0x4f3d7a,_0xc8d667);let me=class extends _0x33f191{constructor(_0x4be2cd,_0x3ba3b3,_0x2c3057){const _0x29f095=_0x5b7eaf;super(),l(this,_0x29f095(0x217),new Map()),l(this,'_entityInit$',new _0x51e21c()),(this['_univerInstanceService']=_0x4be2cd,this[_0x29f095(0x27d)]=_0x3ba3b3,this[_0x29f095(0x208)]=_0x2c3057,this['_init']());}[_0x5b7eaf(0xf8)](){const _0x107fda=_0x5b7eaf;super[_0x107fda(0xf8)](),this[_0x107fda(0x338)][_0x107fda(0x213)](),this[_0x107fda(0x217)][_0x107fda(0x215)](_0x273f61=>_0x273f61[_0x107fda(0xf8)]());}[_0x5b7eaf(0x1e3)](_0xad11d1){const _0x171b12=_0x5b7eaf;return this['_entities'][_0x171b12(0x30c)](_0xad11d1)?this[_0x171b12(0x217)][_0x171b12(0x2dc)](_0xad11d1)[_0x171b12(0xc4)]:this['_entityInit$']['pipe'](_0x4f8d22(_0x6ed82d=>_0x6ed82d['unitID']===_0xad11d1),_0x48fb69(_0x95e49=>_0x95e49[_0x171b12(0xc4)]));}['_init'](){const _0x18e32c=_0x5b7eaf;this[_0x18e32c(0xba)][_0x18e32c(0x205)](_0x275c2c[_0x18e32c(0x18f)])[_0x18e32c(0x1b6)](_0x53c8e3(this[_0x18e32c(0x2cf)]))['subscribe'](async _0x502fa2=>{const _0x477ea2=_0x18e32c,_0x1b9dee=_0x502fa2[_0x477ea2(0xf1)](),_0x2a288a=await this[_0x477ea2(0x26c)](_0x1b9dee);this[_0x477ea2(0x338)][_0x477ea2(0x3ef)](_0x2a288a),this[_0x477ea2(0x217)][_0x477ea2(0x1ea)](_0x1b9dee,_0x2a288a);}),this[_0x18e32c(0xba)][_0x18e32c(0x205)](_0x275c2c[_0x18e32c(0x3ac)])[_0x18e32c(0x1b6)](_0x53c8e3(this['dispose$']))['pipe'](_0x4f8d22(_0x412987=>!_0x412987[_0x18e32c(0xf1)]()[_0x18e32c(0x241)]('__')))[_0x18e32c(0x113)](async _0x5c59ff=>{const _0x26d99d=_0x18e32c,_0x4242ca=_0x5c59ff['getUnitId'](),_0x3739b5=await this[_0x26d99d(0x283)](_0x4242ca);this[_0x26d99d(0x338)]['next'](_0x3739b5),this[_0x26d99d(0x217)]['set'](_0x4242ca,_0x3739b5);}),_0x3b6402(this[_0x18e32c(0xba)]['getTypeOfUnitDisposed$'](_0x275c2c['UNIVER_DOC']),this['_univerInstanceService'][_0x18e32c(0x108)](_0x275c2c[_0x18e32c(0x18f)]))['pipe'](_0x53c8e3(this[_0x18e32c(0x2cf)]))[_0x18e32c(0x113)](_0x310aa7=>{const _0x1060b6=_0x18e32c,_0x4a0518=_0x310aa7['getUnitId'](),_0x56f799=this[_0x1060b6(0x217)][_0x1060b6(0x2dc)](_0x4a0518);_0x56f799&&(_0x56f799['dispose'](),this[_0x1060b6(0x217)][_0x1060b6(0xce)](_0x4a0518));});}async[_0x5b7eaf(0x26c)](_0x57bad7){const _0x2130c2=_0x5b7eaf,_0x7dfdf3=await this[_0x2130c2(0x208)][_0x2130c2(0x299)](_0x57bad7),_0x2d1d2f=this[_0x2130c2(0x27d)]['createInstance'](Ot,_0x57bad7,_0x7dfdf3);return _0x2d1d2f[_0x2130c2(0xda)](),_0x2d1d2f;}async[_0x5b7eaf(0x283)](_0x161816){const _0x2f168a=_0x5b7eaf,_0x55bab0=await this[_0x2f168a(0x208)]['requireSession'](_0x161816),_0x1b53bc=this[_0x2f168a(0x27d)][_0x2f168a(0x18a)](Dt,_0x161816,_0x55bab0);return _0x1b53bc[_0x2f168a(0xda)](),_0x1b53bc;}};me=Ur([_0x51ea65(_0x2a2247[_0x5b7eaf(0x1b4)],me),ut(0x0,_0x52988f),ut(0x1,_0x2c1848(_0x1637c5)),ut(0x2,_0x2c1848(ae))],me);const Ae=0x14,_s=0xc8,dt=0x4,Ar=0x5;function Lr(_0x319a52,_0x4d9696){const _0x28342c=_0x5b7eaf;let {radius:_0x43b1b2,width:_0x4dc5fa,height:_0x5e4e2b}=_0x4d9696;_0x43b1b2=_0x43b1b2!=null?_0x43b1b2:0x0,_0x4dc5fa=_0x4dc5fa!=null?_0x4dc5fa:0x1e,_0x5e4e2b=_0x5e4e2b!=null?_0x5e4e2b:0x1e;let _0x43f124=0x0,_0x51ef6f=0x0,_0x1b751d=0x0;_0x43f124=_0x51ef6f=_0x1b751d=Math[_0x28342c(0x2d0)](_0x43b1b2,_0x4dc5fa/0x2,_0x5e4e2b/0x2),_0x319a52[_0x28342c(0x145)](),_0x319a52[_0x28342c(0x2a9)](_0x43f124,0x0),_0x319a52['lineTo'](_0x4dc5fa-_0x51ef6f,0x0),_0x319a52[_0x28342c(0x3e6)](_0x4dc5fa-_0x51ef6f,_0x51ef6f,_0x51ef6f,Math['PI']*0x3/0x2,0x0,!0x1),_0x319a52[_0x28342c(0x9e)](_0x4dc5fa,_0x5e4e2b-_0x1b751d),_0x319a52[_0x28342c(0x3e6)](_0x4dc5fa-_0x1b751d,_0x5e4e2b-_0x1b751d,_0x1b751d,0x0,Math['PI']/0x2,!0x1),_0x319a52['lineTo'](0x0,_0x5e4e2b),_0x319a52[_0x28342c(0x9e)](0x0,_0x43f124),_0x319a52[_0x28342c(0x3e6)](_0x43f124,_0x43f124,_0x43f124,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x319a52[_0x28342c(0x2e1)](),_0x4d9696[_0x28342c(0x158)]&&(_0x319a52[_0x28342c(0x1f8)](),_0x319a52[_0x28342c(0x191)]=_0x4d9696['fill'],_0x4d9696[_0x28342c(0x2a5)]===_0x28342c(0x28c)?_0x319a52[_0x28342c(0x158)](_0x28342c(0x28c)):_0x319a52[_0x28342c(0x158)](),_0x319a52[_0x28342c(0xc8)]());}class nt extends _0x42bfc5{constructor(_0x5c88a2,_0x1d3f59){const _0x10bc15=_0x5b7eaf;super(_0x5c88a2,_0x1d3f59),l(this,_0x10bc15(0xd4)),l(this,_0x10bc15(0xe9)),(this[_0x10bc15(0xd4)]=_0x1d3f59==null?void 0x0:_0x1d3f59[_0x10bc15(0xd4)],this['text']=_0x1d3f59==null?void 0x0:_0x1d3f59[_0x10bc15(0xe9)]);}static[_0x5b7eaf(0x267)](_0x5565de,_0x55e872){const _0x5fd02a=_0x5b7eaf,{text:_0x5a842b,color:_0x2b705a}=_0x55e872;_0x5565de[_0x5fd02a(0x1f8)](),_0x5565de[_0x5fd02a(0x163)]=_0x5fd02a(0x3ff);const _0x2ae66c=_0x5565de[_0x5fd02a(0xee)](_0x5a842b)[_0x5fd02a(0xc6)],_0xe24f9b=Math[_0x5fd02a(0x2d0)](_0x2ae66c+0x2*dt,_s);Lr(_0x5565de,{'height':Ae,'radius':0x4,'width':_0xe24f9b,'fill':_0x2b705a,'evented':!0x1}),_0x5565de['fillStyle']=_0x5fd02a(0x1dc);const _0x5244ef=dt,_0x2cbadf=Ae-Ar,_0x28fb04=_s-0x2*dt;if(_0x2ae66c>_0x28fb04){let _0x455ac8='',_0x2225a8=0x0;for(const _0x466c68 of _0x5a842b){const _0x29a437=_0x5565de[_0x5fd02a(0xee)](_0x466c68)[_0x5fd02a(0xc6)];if(_0x2225a8+_0x29a437<=_0x28fb04-_0x5565de[_0x5fd02a(0xee)]('...')[_0x5fd02a(0xc6)])_0x455ac8+=_0x466c68,_0x2225a8+=_0x29a437;else{_0x455ac8+=_0x5fd02a(0x9c);break;}}_0x5565de[_0x5fd02a(0xc1)](_0x455ac8,_0x5244ef,_0x2cbadf);}else _0x5565de[_0x5fd02a(0xc1)](_0x5a842b,_0x5244ef,_0x2cbadf);_0x5565de['restore']();}['_draw'](_0x318fe3){nt['drawWith'](_0x318fe3,this);}}const ft=_0x5b7eaf(0x276),$r=_0x5b7eaf(0x3a3),jr=_0x5b7eaf(0xbb),Oe=0x6,xr=1.5,mt=0x4,Hr=1.5,kr=_0x5b7eaf(0x2fe);class us{constructor(_0x1eb4bf,_0x1c00c4,_0x422944,_0x2df8ee){const _0x39580c=_0x5b7eaf;l(this,_0x39580c(0xe0),[]),l(this,_0x39580c(0x1cf),null),l(this,'_textBubble',null),l(this,'_anchorDot',null),l(this,'_hideTimer',null),l(this,'_eventUnsubscribe',null),(this['_cursor']=_0x1eb4bf,this[_0x39580c(0x30b)]=_0x1c00c4,this[_0x39580c(0xb0)]=_0x422944,this[_0x39580c(0x38a)]=_0x2df8ee,this[_0x39580c(0x295)]());}set[_0x5b7eaf(0xca)](_0x2b2c6c){const _0x31af03=_0x5b7eaf;_0x2b2c6c?(this[_0x31af03(0x2a0)]&&this[_0x31af03(0x2a0)]['hide'](),this[_0x31af03(0x34b)]&&this[_0x31af03(0x34b)][_0x31af03(0x2d3)]()):(this[_0x31af03(0x2a0)]&&this[_0x31af03(0x2a0)][_0x31af03(0x2d3)](),this[_0x31af03(0x34b)]&&this[_0x31af03(0x34b)]['hide']());}[_0x5b7eaf(0xf8)](){const _0x264f32=_0x5b7eaf;for(const _0x55925f of this[_0x264f32(0xe0)])_0x55925f['dispose']();this[_0x264f32(0x34b)]&&this[_0x264f32(0x34b)][_0x264f32(0xf8)](),this['_anchorDot']&&this['_anchorDot']['dispose'](),this[_0x264f32(0x1cf)]&&this['_anchor'][_0x264f32(0xf8)](),this[_0x264f32(0x344)]&&this[_0x264f32(0x344)]();}[_0x5b7eaf(0x295)](){const _0x268664=_0x5b7eaf;var _0x53ac7b;const {_docSkeleton:_0x2ea6e7,_document:_0x5c0143}=this,{color:_0x236f95,name:_0x19df8e,ranges:_0x34161f}=this['_cursor'],_0x563cb7=_0x5c0143[_0x268664(0x320)](),{docsLeft:_0x26ad79,docsTop:_0x95a3e1}=_0x563cb7,_0x4d2227=new _0x1fe3c6(_0x563cb7,_0x2ea6e7);for(const {startOffset:_0x532c92,endOffset:_0x520567,collapsed:_0x10509f,isActive:_0x25f3a1}of _0x34161f){const _0x2d7457=_0x2ea6e7[_0x268664(0x2df)](_0x532c92),_0x2e3c66=_0x2ea6e7[_0x268664(0x2df)](_0x520567);if(_0x25f3a1){const {contentBoxPointGroup:_0x2853be}=_0x4d2227[_0x268664(0x37f)](_0x2e3c66,_0x2e3c66);if(_0x2853be[_0x268664(0x143)]===0x0)continue;this[_0x268664(0x1da)](_0x236f95,_0x2853be,_0x26ad79,_0x95a3e1,_0x19df8e),this[_0x268664(0x344)]=this['_handleHover']();}if(!_0x10509f&&_0x2d7457&&_0x2e3c66){if(_0x436c3a(_0x2d7457,_0x2e3c66)){const _0x2055dd=new _0x13f9a5(_0x563cb7,_0x2ea6e7),{pointGroup:_0x31d314}=(_0x53ac7b=_0x2055dd[_0x268664(0x37f)](_0x2d7457,_0x2e3c66))!=null?_0x53ac7b:{};if(_0x31d314==null||_0x31d314[_0x268664(0x143)]===0x0)continue;this[_0x268664(0x2d5)](_0x236f95,_0x31d314,_0x26ad79,_0x95a3e1);}else{const {contentBoxPointGroup:_0x3e871a}=_0x4d2227['getRangePointData'](_0x2d7457,_0x2e3c66);if(_0x3e871a[_0x268664(0x143)]===0x0)continue;this[_0x268664(0x2f8)](_0x236f95,_0x3e871a,_0x26ad79,_0x95a3e1);}}}}[_0x5b7eaf(0x1da)](_0x4f4789,_0x38a491,_0x4d202b,_0x258124,_0x556809){const _0x2abf5e=_0x5b7eaf,_0x5d469e=this[_0x2abf5e(0x35d)](_0x38a491),{left:_0x3cc9c5,top:_0x2bf48d,height:_0x330e05}=_0x5d469e,_0x5db5c1=this['_getScale'](),_0x3b03cb=Hr/_0x5db5c1,_0x1c77c3=new _0x3ec5cc(ft+_0x23d1c2[_0x2abf5e(0x23b)](Oe),{'left':_0x3cc9c5+_0x4d202b-_0x3b03cb,'top':_0x2bf48d+_0x258124,'height':_0x330e05,'width':xr,'fill':_0x4f4789||_0x318853(_0x5bc0e1[_0x2abf5e(0x26b)],0x0),'strokeWidth':_0x3b03cb,'stroke':kr,'evented':!0x0});this[_0x2abf5e(0x1cf)]=_0x1c77c3,this[_0x2abf5e(0x30b)][_0x2abf5e(0xdf)](_0x1c77c3,_0xe8336a);const _0x4ad2f1=new _0x3ec5cc(ft+_0x23d1c2[_0x2abf5e(0x23b)](Oe),{'left':_0x3cc9c5+_0x4d202b-_0x3b03cb,'top':_0x2bf48d+_0x258124-mt/0x2,'height':mt,'width':mt,'fill':_0x4f4789||_0x318853(_0x5bc0e1[_0x2abf5e(0x26b)],0x0),'strokeWidth':0x0,'stroke':_0x4f4789||_0x318853(_0x5bc0e1[_0x2abf5e(0x26b)],0x0),'evented':!0x1});this[_0x2abf5e(0x2a0)]=_0x4ad2f1,this[_0x2abf5e(0x30b)]['addObject'](_0x4ad2f1,_0xe8336a);const _0x192449=new nt(ft+_0x23d1c2[_0x2abf5e(0x23b)](Oe),{'left':_0x3cc9c5+_0x4d202b-_0x3b03cb,'top':_0x2bf48d+_0x258124-Ae,'text':_0x556809,'color':_0x4f4789});this[_0x2abf5e(0x34b)]=_0x192449,this[_0x2abf5e(0x30b)][_0x2abf5e(0xdf)](_0x192449,_0xe8336a),this['_hover']=!0x1;}['_handleHover'](){const _0x293f5f=_0x5b7eaf,_0x2f09a1=this[_0x293f5f(0x1cf)][_0x293f5f(0xbd)][_0x293f5f(0x36c)](()=>{const _0x32cca6=_0x293f5f;this[_0x32cca6(0xca)]=!0x0;}),_0x46d119=this[_0x293f5f(0x1cf)][_0x293f5f(0x1a8)][_0x293f5f(0x36c)](()=>{const _0x592455=_0x293f5f;this[_0x592455(0x1de)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0xd516ea=_0x592455;this[_0xd516ea(0xca)]=!0x1;},0x7d0);});return()=>{const _0x2e0014=_0x293f5f;_0x2f09a1[_0x2e0014(0x1ce)](),_0x46d119[_0x2e0014(0x1ce)]();};}[_0x5b7eaf(0x2f8)](_0x5f4b3e,_0x693e8b,_0xc6bef1,_0x513b8a){const _0x5f224c=_0x5b7eaf,_0x21cbd9=new _0x231cf3(_0x5f4b3e)['setAlpha'](0.2)[_0x5f224c(0x18b)](),_0x48029e=new _0x1ba1bf($r+_0x23d1c2[_0x5f224c(0x23b)](Oe),{'pointsGroup':_0x693e8b,'fill':_0x21cbd9||_0x318853(_0x5bc0e1[_0x5f224c(0x26b)],0.2),'left':_0xc6bef1,'top':_0x513b8a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5f224c(0xe0)][_0x5f224c(0x2cb)](_0x48029e),this[_0x5f224c(0x30b)]['addObject'](_0x48029e,_0xe8336a);}[_0x5b7eaf(0x2d5)](_0x408402,_0x1fbeab,_0x7675ac,_0x2fce23){const _0x301221=_0x5b7eaf,_0x552f57=new _0x231cf3(_0x408402)['setAlpha'](0.2)[_0x301221(0x18b)](),_0x2eb6f8=new _0x1ba1bf(jr+_0x23d1c2[_0x301221(0x23b)](Oe),{'pointsGroup':_0x1fbeab,'fill':_0x552f57||_0x318853(_0x5bc0e1[_0x301221(0x26b)],0.2),'left':_0x7675ac,'top':_0x2fce23,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x301221(0x2cb)](_0x2eb6f8),this['_scene'][_0x301221(0xdf)](_0x2eb6f8,_0xe8336a);}['_getAnchorBounding'](_0x16ad7b){const _0x145a22=_0x16ad7b[0x0],_0x7579d9=_0x145a22[0x0],_0x8034a2=_0x145a22[0x2],{x:_0x3acba4,y:_0x233793}=_0x7579d9,{x:_0x18df65,y:_0x3f0adb}=_0x8034a2;return{'left':_0x3acba4,'top':_0x233793,'width':_0x18df65-_0x3acba4,'height':_0x3f0adb-_0x233793};}[_0x5b7eaf(0x1bc)](){const _0xe58590=_0x5b7eaf,{scaleX:_0x49db5f,scaleY:_0x13e6a9}=this[_0xe58590(0x30b)][_0xe58590(0x26f)]();return Math[_0xe58590(0x36e)](_0x49db5f,_0x13e6a9);}}var Br=Object['defineProperty'],Vr=Object[_0x5b7eaf(0x25b)],Fr=(_0x5cb92b,_0x101725,_0xdf8673,_0x35a0df)=>{for(var _0x2cb66b=_0x35a0df>0x1?void 0x0:_0x35a0df?Vr(_0x101725,_0xdf8673):_0x101725,_0x1a66c4=_0x5cb92b['length']-0x1,_0x1336d8;_0x1a66c4>=0x0;_0x1a66c4--)(_0x1336d8=_0x5cb92b[_0x1a66c4])&&(_0x2cb66b=(_0x35a0df?_0x1336d8(_0x101725,_0xdf8673,_0x2cb66b):_0x1336d8(_0x2cb66b))||_0x2cb66b);return _0x35a0df&&_0x2cb66b&&Br(_0x101725,_0xdf8673,_0x2cb66b),_0x2cb66b;},ke=(_0x4da4ce,_0x57aa19)=>(_0x256bfe,_0x1fb0b7)=>_0x57aa19(_0x256bfe,_0x1fb0b7,_0x4da4ce);let We=class extends _0x33f191{constructor(_0x1ed49e,_0x3c2b99,_0x528f84,_0x3d1213,_0xd366cc){const _0x5725d8=_0x5b7eaf;super(),l(this,_0x5725d8(0x31c),[]),l(this,_0x5725d8(0x3fc),[]),(this[_0x5725d8(0x147)]=_0x1ed49e,this[_0x5725d8(0x2c2)]=_0x3c2b99,this['_collabCursorController']=_0x528f84,this['_commandService']=_0x3d1213,this[_0x5725d8(0x13d)]=_0xd366cc,this[_0x5725d8(0x1cb)]());}[_0x5b7eaf(0x1cb)](){const _0x592a15=_0x5b7eaf,_0x2b5adb=this[_0x592a15(0x147)][_0x592a15(0x166)],_0x413991=this[_0x592a15(0x2c2)];this[_0x592a15(0x255)](_0x43e523([this[_0x592a15(0x279)][_0x592a15(0x1e3)](_0x2b5adb),this[_0x592a15(0x13d)][_0x592a15(0xd5)]])[_0x592a15(0x1b6)](_0x5a8d9c(([_0x24bc51,_0x524e59])=>({'skeleton':_0x413991['getSkeleton'](),'cursors':[..._0x24bc51[_0x592a15(0x3f1)]()][_0x592a15(0x2bd)](_0x46645f=>({..._0x46645f,'color':_0x524e59[_0x46645f['color']]}))})))[_0x592a15(0x113)](_0x375cb5=>{const _0x2f70f8=_0x592a15;if(this['_removeCollabCursors'](),_0x375cb5){const {skeleton:_0x3354d4,cursors:_0x65be09}=_0x375cb5;this[_0x2f70f8(0x198)](_0x3354d4,_0x65be09);}})),this[_0x592a15(0x318)](),this[_0x592a15(0x25a)]();}[_0x5b7eaf(0x198)](_0x190708,_0x27b1ff){const _0x83bc58=_0x5b7eaf,{scene:_0x28a3c4,mainComponent:_0x7de96e}=this['_context'],_0x257457=_0x27b1ff[_0x83bc58(0x309)](_0x4122c4=>new us(_0x4122c4,_0x28a3c4,_0x190708,_0x7de96e));this['_cursorShapes']=_0x257457,this['_cursors']=_0x27b1ff;}[_0x5b7eaf(0xc2)](){const _0x305e81=_0x5b7eaf;this[_0x305e81(0x2c0)]();const {scene:_0x2de12f,mainComponent:_0x4859c6}=this[_0x305e81(0x147)],_0xf630b8=this['_docSkeletonManagerService'][_0x305e81(0x1f4)](),_0xe0a6c3=this[_0x305e81(0x3fc)]['map'](_0x4d8e6e=>new us(_0x4d8e6e,_0x2de12f,_0xf630b8,_0x4859c6));this['_cursorShapes']=_0xe0a6c3;}[_0x5b7eaf(0x2c0)](){const _0xfb2a2b=_0x5b7eaf;this['_cursorShapes'][_0xfb2a2b(0x215)](_0x1f01e8=>_0x1f01e8[_0xfb2a2b(0xf8)]()),this['_cursorShapes']=[];}[_0x5b7eaf(0x25a)](){const _0x2bb23a=_0x5b7eaf,_0x10ad6a=[_0x3215b2['id']];this[_0x2bb23a(0x255)](this[_0x2bb23a(0x204)][_0x2bb23a(0x9a)](_0x240c62=>{const _0xfc55d0=_0x2bb23a;_0x10ad6a[_0xfc55d0(0x12b)](_0x240c62['id'])&&_0x240c62[_0xfc55d0(0x14c)][_0xfc55d0(0x166)]===this['_context'][_0xfc55d0(0x166)]&&this[_0xfc55d0(0xc2)]();}));}[_0x5b7eaf(0x318)](){const _0x46296f=_0x5b7eaf;this[_0x46296f(0x255)](_0x49e533(this['_context'][_0x46296f(0x1b3)][_0x46296f(0x36a)])[_0x46296f(0x1b6)](_0x324b00(_0x481469=>_0x481469[_0x46296f(0x21b)]===_0x5c6602[_0x46296f(0x259)]),_0x1a508f(0x10))[_0x46296f(0x113)](()=>{this['_refreshCollabCursors']();}));}};We=Fr([_0x51ea65(_0x2a2247['Steady'],We),ke(0x1,_0x2c1848(_0x38c1fb)),ke(0x2,_0x2c1848(me)),ke(0x3,_0x2521f5),ke(0x4,_0x2c1848(_0x66a40c))],We);const Wr=0x1,Gr=1.5;class Yr extends _0x42bfc5{constructor(_0x23dc4b,_0x5a93fb){const _0x5f4d11=_0x5b7eaf;super(_0x23dc4b,_0x5a93fb),l(this,_0x5f4d11(0x311)),l(this,'_hovered',!0x1),l(this,_0x5f4d11(0x314)),l(this,'_name',''),l(this,_0x5f4d11(0x1e5),_0x5f4d11(0x2a1)),l(this,_0x5f4d11(0x2c7)),(_0x5a93fb&&this['setShapeProps'](_0x5a93fb),this[_0x5f4d11(0xbd)][_0x5f4d11(0x36c)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x5f4d11(0x36c)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x5de982){const _0x55e17b=_0x5b7eaf;var _0x20cac0,_0x1fb256,_0x3b1604,_0x5b07a2,_0x188f15,_0xcb7544;this['_color']=(_0x20cac0=_0x5de982[_0x55e17b(0xd4)])!=null?_0x20cac0:this[_0x55e17b(0x311)],this[_0x55e17b(0x1f9)]=(_0x1fb256=_0x5de982[_0x55e17b(0x337)])!=null?_0x1fb256:this['_hovered'],this['_range']=(_0x3b1604=_0x5de982[_0x55e17b(0xa6)])!=null?_0x3b1604:this[_0x55e17b(0x314)],this[_0x55e17b(0xf3)]=(_0x5b07a2=_0x5de982[_0x55e17b(0x193)])!=null?_0x5b07a2:this[_0x55e17b(0xf3)],this[_0x55e17b(0x1e5)]=(_0x188f15=_0x5de982[_0x55e17b(0x20a)])!=null?_0x188f15:this[_0x55e17b(0x1e5)],this[_0x55e17b(0x2c7)]=(_0xcb7544=_0x5de982[_0x55e17b(0x144)])!=null?_0xcb7544:this[_0x55e17b(0x2c7)],this['transformByState']({'width':_0x5de982[_0x55e17b(0xc6)],'height':_0x5de982['height']});}['onMouseMove'](_0x128097){const _0x4cfac3=_0x5b7eaf,{row:_0x106cdf,column:_0x3fcfd7}=_0x128097;if(_0x106cdf>=this[_0x4cfac3(0x314)]['startRow']&&_0x106cdf<=this[_0x4cfac3(0x314)][_0x4cfac3(0x352)]&&_0x3fcfd7>=this[_0x4cfac3(0x314)][_0x4cfac3(0x173)]&&_0x3fcfd7<=this[_0x4cfac3(0x314)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x5b7eaf(0x29c)](_0x553edb){return!0x1;}[_0x5b7eaf(0x23d)](_0x167ef9){const _0x313c74=_0x5b7eaf;_0x3ec5cc[_0x313c74(0x267)](_0x167ef9,{'width':this[_0x313c74(0xc6)],'height':this[_0x313c74(0xf2)],'strokeWidth':Gr,'stroke':this[_0x313c74(0x311)],'evented':!0x1,'fill':this[_0x313c74(0x2c7)]}),this[_0x313c74(0x1f9)]&&(_0x167ef9[_0x313c74(0x1f8)](),_0x167ef9[_0x313c74(0x33a)](0x1,0x0,0x0,0x1,this[_0x313c74(0xc6)],this[_0x313c74(0x1e5)]===_0x313c74(0x196)?0x0:-Ae),nt[_0x313c74(0x267)](_0x167ef9,{'text':this[_0x313c74(0xf3)],'color':this[_0x313c74(0x311)]}),_0x167ef9[_0x313c74(0xc8)]());}}var Kr=Object[_0x5b7eaf(0x3b0)],Xr=Object[_0x5b7eaf(0x25b)],Jr=(_0x122f90,_0x2ab776,_0x224255,_0x28a457)=>{const _0x42c03e=_0x5b7eaf;for(var _0x45232f=_0x28a457>0x1?void 0x0:_0x28a457?Xr(_0x2ab776,_0x224255):_0x2ab776,_0x2260cb=_0x122f90[_0x42c03e(0x143)]-0x1,_0x9a1b17;_0x2260cb>=0x0;_0x2260cb--)(_0x9a1b17=_0x122f90[_0x2260cb])&&(_0x45232f=(_0x28a457?_0x9a1b17(_0x2ab776,_0x224255,_0x45232f):_0x9a1b17(_0x45232f))||_0x45232f);return _0x28a457&&_0x45232f&&Kr(_0x2ab776,_0x224255,_0x45232f),_0x45232f;},gt=(_0x283855,_0x4a0c53)=>(_0x4783b5,_0x465099)=>_0x4a0c53(_0x4783b5,_0x465099,_0x283855);const zr=0x1389;let wt=class extends _0x33f191{constructor(_0x5719c7,_0x2db629,_0xf45ab7,_0x5d5208){const _0x47090b=_0x5b7eaf;super(),l(this,_0x47090b(0x3fc),new Set()),l(this,_0x47090b(0x9b),null),(this[_0x47090b(0x147)]=_0x5719c7,this['_sheetSkeletonManagerService']=_0x2db629,this[_0x47090b(0x279)]=_0xf45ab7,this[_0x47090b(0x13d)]=_0x5d5208,this['_init']());}[_0x5b7eaf(0x1cb)](){const _0x17fe33=_0x5b7eaf;this[_0x17fe33(0x228)][_0x17fe33(0x2d1)]['pipe'](_0x3c9e95(this[_0x17fe33(0x2cf)]),_0x198d43(_0x2d01a9=>{const _0x549e76=_0x17fe33;if(_0x2d01a9){const _0x37661b=_0x2d01a9[_0x549e76(0x26e)];return _0x43e523(this['_collabCursorController']['getCollabCursors$'](this[_0x549e76(0x147)]['unitId']),this[_0x549e76(0x13d)][_0x549e76(0xd5)])['pipe'](_0x5a8d9c(([_0x1f0415,_0x3174f1])=>{const _0x66ccc7=new Map();return _0x1f0415['forEach']((_0x475f09,_0x107621)=>{const _0x1fd9e7=_0x4581;if(_0x475f09[_0x1fd9e7(0x2e0)]===_0x37661b){const _0x257c9b={..._0x475f09};_0x257c9b[_0x1fd9e7(0xd4)]=_0x3174f1[_0x475f09['color']],_0x66ccc7['set'](_0x107621,_0x257c9b);}}),{'skeleton':_0x2d01a9,'cursors':_0x66ccc7};}));}return _0x175cbd({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x13cd5d,cursors:_0x3a74e7})=>{const _0x24ca95=_0x17fe33;this[_0x24ca95(0x2c0)](),_0x13cd5d&&this[_0x24ca95(0x198)](_0x13cd5d,_0x3a74e7);}),this[_0x17fe33(0x228)][_0x17fe33(0x2d1)][_0x17fe33(0x113)](_0x5a8f38=>{const _0x39f159=_0x17fe33;if(_0x5a8f38==null)return;const {skeleton:_0x128bed}=_0x5a8f38,{scene:_0x3c2cdc}=this[_0x39f159(0x147)];_0x3c2cdc[_0x39f159(0x393)][_0x39f159(0x36c)](_0x4fa622(_0x12f96f=>{const _0xb2bbf3=_0x39f159;var _0x3a8c24,_0x3ba41c;const {offsetX:_0x3ac09b,offsetY:_0x288317}=_0x12f96f,{x:_0x479b6f,y:_0x1dcfa3}=_0x3c2cdc[_0xb2bbf3(0x3a2)](_0x113335[_0xb2bbf3(0x35a)]([_0x3ac09b,_0x288317])),{scaleX:_0x54ffa5,scaleY:_0x358b3f}=_0x3c2cdc[_0xb2bbf3(0x26f)](),_0x55157c=_0x3c2cdc[_0xb2bbf3(0x2c9)](_0x343862['VIEW_MAIN']),_0x280013=_0x3c2cdc[_0xb2bbf3(0x235)](_0x113335[_0xb2bbf3(0x35a)]([_0x479b6f,_0x1dcfa3]),_0x55157c),_0x53bf46=_0x128bed['getCellPositionByOffset'](_0x3ac09b,_0x288317,_0x54ffa5,_0x358b3f,_0x280013);((_0x3a8c24=this['_lastPointer'])==null?void 0x0:_0x3a8c24['column'])===_0x53bf46['column']&&((_0x3ba41c=this[_0xb2bbf3(0x9b)])==null?void 0x0:_0x3ba41c['row'])===_0x53bf46['row']||this[_0xb2bbf3(0x3fc)]['forEach'](_0x4e0806=>{const _0xe15bd2=_0xb2bbf3;_0x4e0806[_0xe15bd2(0x1be)](_0x53bf46);});},0x64));});}[_0x5b7eaf(0x198)](_0x1cb5f9,_0x259bf6){const _0x1235e3=_0x5b7eaf;var _0x2a5873;const _0x224507=(_0x2a5873=this[_0x1235e3(0x228)][_0x1235e3(0x2fc)]())==null?void 0x0:_0x2a5873['skeleton'];if(!_0x224507)return;const _0x5ed6e4=this[_0x1235e3(0xfd)]();if(!_0x5ed6e4)return;this[_0x1235e3(0x3fc)]['forEach'](_0x57584d=>{const _0x40cbd0=_0x1235e3;_0x57584d[_0x40cbd0(0xed)]();});const {scene:_0x12ad4e}=_0x5ed6e4,_0x4eb8cb=qr(Array[_0x1235e3(0xde)](_0x259bf6[_0x1235e3(0x3f1)]()))[_0x1235e3(0x309)](_0xc8c244=>{const _0x2f7503=_0x1235e3,{color:_0xa50d19,range:_0x4df1aa,name:_0x9a18e7,selection:_0x47b98c,sheetID:_0x5699de}=_0xc8c244,{startColumn:_0x595c66,startRow:_0x51c862,endColumn:_0x1f63e0,endRow:_0x2c3d67}=_0x4df1aa,_0x4175f4=_0x90ed93(_0x51c862,_0x595c66,_0x12ad4e,_0x224507),_0x3e249f=_0x90ed93(_0x2c3d67,_0x1f63e0,_0x12ad4e,_0x224507),{columnHeaderHeightAndMarginTop:_0x4c38d6}=_0x224507,{startX:_0x4b9ec1,startY:_0x2c75dc}=_0x4175f4,{endX:_0x4cbb10,endY:_0x57f195}=_0x3e249f,_0x4acd29=_0x4cbb10-_0x4b9ec1,_0x1845c1=_0x57f195-_0x2c75dc,_0x1c68ed={'labelPosition':_0x2c75dc-_0x4c38d6>=Ae?_0x2f7503(0x2a1):_0x2f7503(0x196),'sheetID':_0x5699de,'range':_0x4df1aa,'color':_0xa50d19,'name':_0x9a18e7,'selection':_0x47b98c,'left':_0x4b9ec1,'top':_0x2c75dc,'width':_0x4acd29,'height':_0x1845c1,'evented':!0x1,'zIndex':zr};return new Yr(_0x9a18e7,_0x1c68ed);});_0x12ad4e[_0x1235e3(0x227)](_0x4eb8cb,Wr),this['_cursors']=new Set(_0x4eb8cb);}[_0x5b7eaf(0x2c0)](){const _0x1a73bb=_0x5b7eaf;var _0x10d081;(_0x10d081=this['_cursors'])==null||_0x10d081[_0x1a73bb(0x215)](_0x1d5e2d=>_0x1d5e2d[_0x1a73bb(0xf8)]());}[_0x5b7eaf(0xfd)](){const _0x3b9968=_0x5b7eaf;return _0x5c33e8(this[_0x3b9968(0x147)][_0x3b9968(0x3ba)],this[_0x3b9968(0x147)]);}};wt=Jr([gt(0x1,_0x2c1848(_0x15b55c)),gt(0x2,_0x2c1848(me)),gt(0x3,_0x2c1848(_0x66a40c))],wt);function qr(_0x405b2f){const _0x1dd4fb=_0x5b7eaf,_0x44c31f=new Map();return _0x405b2f[_0x1dd4fb(0x215)](_0x5e71f0=>{const _0xc041e2=_0x1dd4fb;if(_0x44c31f[_0xc041e2(0x30c)](_0x5e71f0['selection'])){const _0x33f708=_0x44c31f[_0xc041e2(0x2dc)](_0x5e71f0[_0xc041e2(0x123)]);_0x33f708['name']+=',\x20'+_0x5e71f0[_0xc041e2(0x193)];}else _0x44c31f[_0xc041e2(0x1ea)](_0x5e71f0[_0xc041e2(0x123)],_0x5e71f0);}),Array[_0x1dd4fb(0xde)](_0x44c31f['values']());}var y=function(){return y=Object['assign']||function(_0x2c6932){const _0x42a5e7=_0x4581;for(var _0x2775b6,_0xb52a6d=0x1,_0xe4878e=arguments[_0x42a5e7(0x143)];_0xb52a6d<_0xe4878e;_0xb52a6d++){_0x2775b6=arguments[_0xb52a6d];for(var _0x3ff228 in _0x2775b6)Object[_0x42a5e7(0x325)]['hasOwnProperty'][_0x42a5e7(0x140)](_0x2775b6,_0x3ff228)&&(_0x2c6932[_0x3ff228]=_0x2775b6[_0x3ff228]);}return _0x2c6932;},y['apply'](this,arguments);},Zr=function(_0x158746,_0x18ef9d){const _0x14d81d=_0x5b7eaf;var _0x2eed07={};for(var _0x502d4d in _0x158746)Object[_0x14d81d(0x325)][_0x14d81d(0x181)][_0x14d81d(0x140)](_0x158746,_0x502d4d)&&_0x18ef9d[_0x14d81d(0x3cb)](_0x502d4d)<0x0&&(_0x2eed07[_0x502d4d]=_0x158746[_0x502d4d]);if(_0x158746!=null&&typeof Object[_0x14d81d(0x168)]==_0x14d81d(0x2c1)){for(var _0xa6b0b=0x0,_0x502d4d=Object[_0x14d81d(0x168)](_0x158746);_0xa6b0b<_0x502d4d['length'];_0xa6b0b++)_0x18ef9d[_0x14d81d(0x3cb)](_0x502d4d[_0xa6b0b])<0x0&&Object[_0x14d81d(0x325)][_0x14d81d(0x28f)][_0x14d81d(0x140)](_0x158746,_0x502d4d[_0xa6b0b])&&(_0x2eed07[_0x502d4d[_0xa6b0b]]=_0x158746[_0x502d4d[_0xa6b0b]]);}return _0x2eed07;},Wt=_0x25876f(function(_0x45e825,_0x205f74){const _0x18bf94=_0x5b7eaf;var _0x143d05=_0x45e825[_0x18bf94(0x2be)],_0x203550=_0x45e825['id'],_0x1816d2=_0x45e825[_0x18bf94(0x1af)],_0x376a1c=_0x45e825[_0x18bf94(0x327)],_0x56cdcf=Zr(_0x45e825,[_0x18bf94(0x2be),'id',_0x18bf94(0x1af),_0x18bf94(0x327)]),_0x467ead=_0x18bf94(0x1c3)[_0x18bf94(0x185)](_0x203550,'\x20')[_0x18bf94(0x185)](_0x1816d2||'')['trim'](),_0x267080=_0x4a2a3f('_'[_0x18bf94(0x185)](to()));return Hs(_0x143d05,''['concat'](_0x203550),{'defIds':_0x143d05[_0x18bf94(0x16a)],'idSuffix':_0x267080['current']},y({'ref':_0x205f74,'className':_0x467ead},_0x56cdcf),_0x376a1c);});function Hs(_0x42c12c,_0x3fb622,_0x44d6ce,_0x3a0c44,_0x469ab7){const _0xed0836=_0x5b7eaf;return _0x3cb687(_0x42c12c[_0xed0836(0xb4)],y(y({'key':_0x3fb622},Qr(_0x42c12c,_0x44d6ce,_0x469ab7)),_0x3a0c44),(eo(_0x42c12c,_0x44d6ce)[_0xed0836(0x349)]||[])['map'](function(_0x11f783,_0x2612a8){const _0x50a818=_0xed0836;return Hs(_0x11f783,''[_0x50a818(0x185)](_0x3fb622,'-')[_0x50a818(0x185)](_0x42c12c[_0x50a818(0xb4)],'-')[_0x50a818(0x185)](_0x2612a8),_0x44d6ce,void 0x0,_0x469ab7);}));}function Qr(_0x31e5c9,_0x535f93,_0x53b93e){const _0x4e82c4=_0x5b7eaf;var _0x5cb70a=y({},_0x31e5c9['attrs']);_0x53b93e!=null&&_0x53b93e[_0x4e82c4(0xfb)]&&_0x5cb70a[_0x4e82c4(0x158)]==='colorChannel1'&&(_0x5cb70a[_0x4e82c4(0x158)]=_0x53b93e['colorChannel1']);var _0x4282ef=_0x535f93[_0x4e82c4(0x16a)];return!_0x4282ef||_0x4282ef[_0x4e82c4(0x143)]===0x0||(_0x31e5c9[_0x4e82c4(0xb4)]==='use'&&_0x5cb70a[_0x4e82c4(0x319)]&&(_0x5cb70a[_0x4e82c4(0x319)]=_0x5cb70a[_0x4e82c4(0x319)]+_0x535f93[_0x4e82c4(0x124)]),Object[_0x4e82c4(0x2b5)](_0x5cb70a)[_0x4e82c4(0x215)](function(_0xf1e5f5){const _0x4b0d6b=_0x4e82c4;var _0x3f3a5b=_0xf1e5f5[0x0],_0x2a2201=_0xf1e5f5[0x1];typeof _0x2a2201==_0x4b0d6b(0x17e)&&(_0x5cb70a[_0x3f3a5b]=_0x2a2201[_0x4b0d6b(0x3ab)](/url\(#(.*)\)/,'url(#$1'[_0x4b0d6b(0x185)](_0x535f93[_0x4b0d6b(0x124)],')')));})),_0x5cb70a;}function eo(_0x4422a5,_0x27c4b1){const _0x296ce4=_0x5b7eaf;var _0x35372a,_0x4039c8=_0x27c4b1['defIds'];return!_0x4039c8||_0x4039c8['length']===0x0?_0x4422a5:_0x4422a5[_0x296ce4(0xb4)]===_0x296ce4(0x180)&&(!((_0x35372a=_0x4422a5[_0x296ce4(0x349)])===null||_0x35372a===void 0x0)&&_0x35372a[_0x296ce4(0x143)])?y(y({},_0x4422a5),{'children':_0x4422a5[_0x296ce4(0x349)][_0x296ce4(0x309)](function(_0x2f3fea){const _0x2be85e=_0x296ce4;return typeof _0x2f3fea[_0x2be85e(0x359)]['id']==_0x2be85e(0x17e)&&_0x4039c8&&_0x4039c8[_0x2be85e(0x3cb)](_0x2f3fea[_0x2be85e(0x359)]['id'])>-0x1?y(y({},_0x2f3fea),{'attrs':y(y({},_0x2f3fea[_0x2be85e(0x359)]),{'id':_0x2f3fea[_0x2be85e(0x359)]['id']+_0x27c4b1[_0x2be85e(0x124)]})}):_0x2f3fea;})}):_0x4422a5;}function to(){const _0x58b4b6=_0x5b7eaf;return Math[_0x58b4b6(0x2e9)]()[_0x58b4b6(0x14a)](0x24)['substring'](0x2,0x8);}Wt['displayName']='UniverIcon';var so={'tag':_0x5b7eaf(0xd2),'attrs':{'fill':'none','viewBox':_0x5b7eaf(0x346),'width':_0x5b7eaf(0x10d),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x5b7eaf(0x25c),'attrs':{'stroke':_0x5b7eaf(0x157),'d':_0x5b7eaf(0x379),'strokeLinecap':_0x5b7eaf(0x13e),'strokeLinejoin':_0x5b7eaf(0x13e),'strokeWidth':1.2}}]},{'tag':_0x5b7eaf(0x180),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5b7eaf(0x1eb)},'children':[{'tag':_0x5b7eaf(0x25c),'attrs':{'fill':_0x5b7eaf(0x197),'d':_0x5b7eaf(0x396)}}]}]}],'defIds':[_0x5b7eaf(0x1eb)]},ks=_0x25876f(function(_0x45f66d,_0xcef7cf){const _0x2900bb=_0x5b7eaf;return _0x3cb687(Wt,Object[_0x2900bb(0x366)]({},_0x45f66d,{'id':_0x2900bb(0x275),'ref':_0xcef7cf,'icon':so}));});ks['displayName']='OffLineSingle';var io={'tag':_0x5b7eaf(0xd2),'attrs':{'fill':_0x5b7eaf(0x3b9),'viewBox':_0x5b7eaf(0x1aa),'width':_0x5b7eaf(0x10d),'height':_0x5b7eaf(0x10d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x5b7eaf(0x25c),'attrs':{'stroke':_0x5b7eaf(0x157),'d':_0x5b7eaf(0x251),'strokeLinecap':'round','strokeLinejoin':_0x5b7eaf(0x13e),'strokeWidth':1.2}}]},{'tag':_0x5b7eaf(0x180),'attrs':{},'children':[{'tag':_0x5b7eaf(0x37d),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x5b7eaf(0x25c),'attrs':{'fill':_0x5b7eaf(0x197),'d':_0x5b7eaf(0x396),'transform':_0x5b7eaf(0x258)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Bs=_0x25876f(function(_0x10032a,_0x2a725e){const _0x4895fb=_0x5b7eaf;return _0x3cb687(Wt,Object[_0x4895fb(0x366)]({},_0x10032a,{'id':'on-line-single','ref':_0x2a725e,'icon':io}));});Bs[_0x5b7eaf(0x360)]=_0x5b7eaf(0x386);const no=_0x5b7eaf(0x177),ro=_0x5b7eaf(0x3f7),oo='univer-online-status',ao='univer-online',co=_0x5b7eaf(0x305),De={'onlineStatusIcon':no,'onlineStatusTitle':ro,'onlineStatus':oo,'online':ao,'offline':co};function ho(_0x398186){const _0x5a61db=_0x5b7eaf;switch(_0x398186){case w[_0x5a61db(0x184)]:return'collabStatus.offline';case w[_0x5a61db(0xa7)]:return _0x5a61db(0x1b7);case w['FETCH_MISS']:return _0x5a61db(0xd7);case w[_0x5a61db(0x3a8)]:return _0x5a61db(0x18e);case w[_0x5a61db(0x15f)]:case w['AWAITING']:case w['AWAITING_WITH_PENDING']:return _0x5a61db(0x32c);case w[_0x5a61db(0x16d)]:return _0x5a61db(0x169);}}function lo(_0x102522){const _0x277453=_0x5b7eaf,{status$:_0x54cefe}=_0x102522,_0x4859bf=_0x3ab99e(_0x54cefe,w['NOT_COLLAB']),_0x2735a1=_0xaf8fb0(_0x1e7bf5),_0x4e0fa3=_0xaf8fb0(ae),_0x271f40=_0x4859bf!==w['OFFLINE'],_0x25d613=_0x2735a1['t'](ho(_0x4859bf)),_0x1b288c=_0x147b10(De['onlineStatus'],{[De[_0x277453(0x289)]]:_0x271f40,[De[_0x277453(0x1b9)]]:!_0x271f40}),_0x524b6e=_0x271f40?_0x3da894[_0x277453(0x3ca)](Bs,null):_0x3da894[_0x277453(0x3ca)](ks,null),_0x40dd86=_0x167c1f(()=>{_0x271f40||_0x4e0fa3['reconnect']();},[_0x271f40,_0x4e0fa3]);function _0x181273(){const _0x1e5edc=_0x277453;return _0x3da894[_0x1e5edc(0x3ca)](_0x1e5edc(0x3c8),{'className':_0x1b288c,'onClick':_0x40dd86},_0x3da894['createElement'](_0x1e5edc(0x3c8),{'className':De['onlineStatusIcon']},_0x524b6e),_0x3da894['createElement']('div',{'className':De['onlineStatusTitle']},_0x25d613));}return _0x271f40?_0x181273():_0x3da894[_0x277453(0x3ca)](_0x4fd136,{'title':_0x2735a1['t'](_0x277453(0x155))},_0x181273());}var _o=Object[_0x5b7eaf(0x3b0)],uo=Object[_0x5b7eaf(0x25b)],fo=(_0x5a278b,_0x4e99cd,_0x4115c9,_0x1d2e2f)=>{const _0x4865e7=_0x5b7eaf;for(var _0x36b0c8=_0x1d2e2f>0x1?void 0x0:_0x1d2e2f?uo(_0x4e99cd,_0x4115c9):_0x4e99cd,_0x5c2534=_0x5a278b[_0x4865e7(0x143)]-0x1,_0x467827;_0x5c2534>=0x0;_0x5c2534--)(_0x467827=_0x5a278b[_0x5c2534])&&(_0x36b0c8=(_0x1d2e2f?_0x467827(_0x4e99cd,_0x4115c9,_0x36b0c8):_0x467827(_0x36b0c8))||_0x36b0c8);return _0x1d2e2f&&_0x36b0c8&&_o(_0x4e99cd,_0x4115c9,_0x36b0c8),_0x36b0c8;},Be=(_0x2c84d3,_0xaf0361)=>(_0x667ac8,_0xe5e00)=>_0xaf0361(_0x667ac8,_0xe5e00,_0x2c84d3);let ye=class extends _0x61b58b{constructor(_0x1ddb7b,_0x459569,_0x4a99dc,_0x735a10){const _0x1deaf0=_0x5b7eaf;super(),l(this,'_status$',new _0xdb5176(w[_0x1deaf0(0x3a8)])),(this[_0x1deaf0(0xba)]=_0x1ddb7b,this[_0x1deaf0(0x243)]=_0x459569,this[_0x1deaf0(0x27d)]=_0x4a99dc,this[_0x1deaf0(0xd1)]=_0x735a10,this['_initStatusComponent'](),this[_0x1deaf0(0x2a7)]());}[_0x5b7eaf(0x2a7)](){const _0x1b1281=_0x5b7eaf;this[_0x1b1281(0x255)](this['_univerInstanceService'][_0x1b1281(0x35c)]['pipe'](_0x48fb69(()=>{const _0x1a6f10=_0x1b1281,_0x5e3e24=this['_univerInstanceService']['getFocusedUnit']();return _0x5e3e24?this[_0x1a6f10(0xd1)]['getCollabEntity$'](_0x5e3e24[_0x1a6f10(0xf1)]()):_0x175cbd(null);}),_0x48fb69(_0x4a607f=>_0x4a607f?_0x4a607f[_0x1b1281(0x32a)]:_0x175cbd(w['NOT_COLLAB'])))[_0x1b1281(0x113)](_0x26c8cb=>{const _0x52d64c=_0x1b1281;this['_status$'][_0x52d64c(0x3ef)](_0x26c8cb);}));}[_0x5b7eaf(0x27a)](){const _0x1e2e87=_0x5b7eaf;this[_0x1e2e87(0x255)](this[_0x1e2e87(0x243)][_0x1e2e87(0x2b6)](_0x59a5b2['HEADER_MENU'],()=>_0x4d4576(mo({'status$':this[_0x1e2e87(0x3bf)][_0x1e2e87(0x3a7)]()}),this[_0x1e2e87(0x27d)])));}};ye=fo([Be(0x0,_0x52988f),Be(0x1,_0x467380),Be(0x2,_0x2c1848(_0x1637c5)),Be(0x3,_0x2c1848(Ue))],ye);function mo(_0x485a52){const {status$:_0x40d0de}=_0x485a52;return function(){const _0x3f6cb4=_0x4581;return _0x3da894[_0x3f6cb4(0x3ca)](lo,{'status$':_0x40d0de});};}const Vs=_0x5b7eaf(0x39d),Fs=_0x4c867e(_0x5b7eaf(0x1a5));var go=Object[_0x5b7eaf(0x3b0)],So=Object['getOwnPropertyDescriptor'],po=(_0x2a802c,_0x4bd14a,_0x520378,_0x3a696a)=>{const _0x55d574=_0x5b7eaf;for(var _0x2dc58b=_0x3a696a>0x1?void 0x0:_0x3a696a?So(_0x4bd14a,_0x520378):_0x4bd14a,_0xce3fda=_0x2a802c[_0x55d574(0x143)]-0x1,_0x217ac5;_0xce3fda>=0x0;_0xce3fda--)(_0x217ac5=_0x2a802c[_0xce3fda])&&(_0x2dc58b=(_0x3a696a?_0x217ac5(_0x4bd14a,_0x520378,_0x2dc58b):_0x217ac5(_0x2dc58b))||_0x2dc58b);return _0x3a696a&&_0x2dc58b&&go(_0x4bd14a,_0x520378,_0x2dc58b),_0x2dc58b;},fe=(_0x21adaf,_0x51c410)=>(_0x58bce9,_0x4ad2ba)=>_0x51c410(_0x58bce9,_0x4ad2ba,_0x21adaf);let Ge=class extends _0x33f191{constructor(_0x543568,_0x214c3b,_0x4c99ec,_0x5ae4bb,_0x334245,_0x185178){const _0x45cd89=_0x5b7eaf;super(),this['_urlService']=_0x543568,this[_0x45cd89(0x134)]=_0x214c3b,this[_0x45cd89(0x204)]=_0x4c99ec,this[_0x45cd89(0x291)]=_0x5ae4bb,this[_0x45cd89(0x187)]=_0x334245,_0x185178?_0x185178==null||_0x185178[_0x45cd89(0x125)]()[_0x45cd89(0x2b0)](()=>this[_0x45cd89(0x1cb)]()):(this['_logService'][_0x45cd89(0x330)]('[DataLoaderController]',_0x45cd89(0x16b)),this[_0x45cd89(0x1cb)]());}async[_0x5b7eaf(0x1cb)](){const _0x49fe7f=_0x5b7eaf,_0x7737e=this[_0x49fe7f(0x33e)][_0x49fe7f(0x1f7)]('unit'),_0x1dcda5=this[_0x49fe7f(0x33e)][_0x49fe7f(0x1f7)](_0x49fe7f(0x21b));if(!_0x7737e||!_0x1dcda5){this['_logService'][_0x49fe7f(0x330)](_0x49fe7f(0x165),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x1dcda5)){case x[_0x49fe7f(0x18f)]:{const _0xa8d812=await this[_0x49fe7f(0x29a)](_0x7737e);this['_setupSubUnitSync'](_0xa8d812);break;}case x[_0x49fe7f(0x3ac)]:{await this['_loadDoc'](_0x7737e);break;}default:{this['_logService'][_0x49fe7f(0x332)]('[DataLoaderController]',_0x49fe7f(0x12f));break;}}}async[_0x5b7eaf(0x3d0)](_0x480d83){const _0x3e8cd9=_0x5b7eaf;await this[_0x3e8cd9(0x160)](_0x480d83),_0x480d83[_0x3e8cd9(0x3d7)][_0x3e8cd9(0x1b6)](_0x53c8e3(this['dispose$']))['subscribe'](_0x225b6e=>{const _0x469dee=_0x3e8cd9;_0x225b6e&&this[_0x469dee(0x218)](_0x225b6e);}),this[_0x3e8cd9(0x33e)]['urlChange$'][_0x3e8cd9(0x1b6)](_0x53c8e3(this[_0x3e8cd9(0x2cf)]))[_0x3e8cd9(0x113)](()=>this[_0x3e8cd9(0x160)](_0x480d83));}[_0x5b7eaf(0x218)](_0x1793dc,_0x3f31ea=!0x1){const _0x393956=_0x5b7eaf,_0x592080=this[_0x393956(0x33e)][_0x393956(0x1f7)](_0x393956(0x247));_0x1793dc[_0x393956(0x21a)]()!==_0x592080&&this[_0x393956(0x33e)]['setParam'](_0x393956(0x247),_0x1793dc['getSheetId'](),_0x3f31ea);}async['_updateSubUnitFromURLParams'](_0x11a07a){const _0x197fb5=_0x5b7eaf;var _0xf1c1fb;const _0x5eef22=this['_urlService'][_0x197fb5(0x1f7)](_0x197fb5(0x247));if(!_0x5eef22||!_0x11a07a[_0x197fb5(0x1d4)](_0x5eef22)){const _0x89abbd=_0x11a07a[_0x197fb5(0x1c2)]()[0x0],_0x1cb763=_0x11a07a['getSheetBySheetId'](_0x89abbd);if(!_0x1cb763)return;this[_0x197fb5(0x218)](_0x1cb763,!0x0),await this['_commandService'][_0x197fb5(0x26d)](_0x593e9d['id'],{'unitId':_0x11a07a[_0x197fb5(0xf1)](),'subUnitId':_0x89abbd});return;}((_0xf1c1fb=_0x11a07a[_0x197fb5(0xf6)]())==null?void 0x0:_0xf1c1fb[_0x197fb5(0x21a)]())!==_0x5eef22&&await this['_commandService'][_0x197fb5(0x26d)](_0x593e9d['id'],{'unitId':_0x11a07a[_0x197fb5(0xf1)](),'subUnitId':_0x5eef22});}async[_0x5b7eaf(0x29a)](_0x3fcb25){const _0x516fad=_0x5b7eaf;let _0x4f25e0=0x0;const _0x27000a=await this['_localCacheService']['loadOfflineData'](_0x3fcb25);return _0x27000a&&(_0x27000a[_0x516fad(0x103)]||_0x27000a[_0x516fad(0x18c)][_0x516fad(0x143)]!==0x0)&&(_0x4f25e0=_0x27000a['rev']),_0x4f25e0===0x0&&this[_0x516fad(0x134)][_0x516fad(0x330)](_0x516fad(0x165),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x516fad(0x187)]['loadSheet'](_0x3fcb25,_0x4f25e0);}async[_0x5b7eaf(0x307)](_0x2bddbd){const _0x3b2f04=_0x5b7eaf;let _0x5b885e=0x0;const _0x2a53fd=await this['_localCacheService'][_0x3b2f04(0x3af)](_0x2bddbd);return _0x2a53fd&&(_0x2a53fd['awaitingChangeset']||_0x2a53fd[_0x3b2f04(0x18c)][_0x3b2f04(0x143)]!==0x0)&&(_0x5b885e=_0x2a53fd[_0x3b2f04(0x12a)]),_0x5b885e===0x0&&this[_0x3b2f04(0x134)][_0x3b2f04(0x330)]('[DataLoaderController]',_0x3b2f04(0x34c)),this['_snapshotService'][_0x3b2f04(0x3d1)](_0x2bddbd,_0x5b885e);}};Ge=po([_0x51ea65(_0x2a2247[_0x5b7eaf(0x1b4)],Ge),fe(0x0,Fs),fe(0x1,_0x4cc166),fe(0x2,_0x2521f5),fe(0x3,_0x2c1848(D)),fe(0x4,_0x2c1848(_0xb82a17)),fe(0x5,_0x3b757a(_0xdc1252))],Ge);var vo=Object[_0x5b7eaf(0x3b0)],Io=Object['getOwnPropertyDescriptor'],Eo=(_0x4bab2d,_0x4ae585,_0x4ba576,_0x1731ed)=>{for(var _0xa42e45=_0x1731ed>0x1?void 0x0:_0x1731ed?Io(_0x4ae585,_0x4ba576):_0x4ae585,_0x336fe3=_0x4bab2d['length']-0x1,_0x272ae6;_0x336fe3>=0x0;_0x336fe3--)(_0x272ae6=_0x4bab2d[_0x336fe3])&&(_0xa42e45=(_0x1731ed?_0x272ae6(_0x4ae585,_0x4ba576,_0xa42e45):_0x272ae6(_0xa42e45))||_0xa42e45);return _0x1731ed&&_0xa42e45&&vo(_0x4ae585,_0x4ba576,_0xa42e45),_0xa42e45;},ds=(_0xb8f8cf,_0x4535bd)=>(_0x5a021d,_0x5b574f)=>_0x4535bd(_0x5a021d,_0x5b574f,_0xb8f8cf);const Co=_0x5b7eaf(0xe8),bo=_0x5b7eaf(0x119);let Ye=class extends _0x61b58b{constructor(_0x5bcb7c,_0x14ceaa){const _0x510b75=_0x5b7eaf;super(),this['_univerInstanceService']=_0x5bcb7c,this[_0x510b75(0x110)]=_0x14ceaa,this[_0x510b75(0x1cb)]();}['_init'](){const _0x49401f=_0x5b7eaf;this[_0x49401f(0x255)](_0xa7e5b7(this['_univerInstanceService']['focused$'][_0x49401f(0x113)](()=>{const _0x49bc08=_0x49401f;var _0xe46680;const _0x12b79b=this[_0x49bc08(0xba)][_0x49bc08(0x233)]();let _0x598d90=(_0xe46680=this[_0x49bc08(0x110)][_0x49bc08(0x39b)](Co))!=null?_0xe46680:bo;_0x12b79b instanceof _0x3d2a68&&(_0x598d90=_0x12b79b[_0x49bc08(0x193)]),document[_0x49bc08(0x29e)]=_0x598d90;})));}};Ye=Eo([_0x51ea65(_0x2a2247[_0x5b7eaf(0xa4)],Ye),ds(0x0,_0x52988f),ds(0x1,_0x5debaa)],Ye);var To=Object['defineProperty'],Ro=Object[_0x5b7eaf(0x25b)],Oo=(_0x2ed9bd,_0x595499,_0x4be35c,_0x1e0f90)=>{const _0x26d452=_0x5b7eaf;for(var _0x38de50=_0x1e0f90>0x1?void 0x0:_0x1e0f90?Ro(_0x595499,_0x4be35c):_0x595499,_0x25fb7d=_0x2ed9bd[_0x26d452(0x143)]-0x1,_0x1ca762;_0x25fb7d>=0x0;_0x25fb7d--)(_0x1ca762=_0x2ed9bd[_0x25fb7d])&&(_0x38de50=(_0x1e0f90?_0x1ca762(_0x595499,_0x4be35c,_0x38de50):_0x1ca762(_0x38de50))||_0x38de50);return _0x1e0f90&&_0x38de50&&To(_0x595499,_0x4be35c,_0x38de50),_0x38de50;},St=(_0x38dca7,_0x20aa9b)=>(_0x55a292,_0x49e295)=>_0x20aa9b(_0x55a292,_0x49e295,_0x38dca7);let st=class{constructor(_0x48317e,_0x4fe5ab,_0x18921b){const _0x358640=_0x5b7eaf;this[_0x358640(0x110)]=_0x48317e,this['_httpService']=_0x4fe5ab,this['localeService']=_0x18921b,this[_0x358640(0xda)]();}[_0x5b7eaf(0xda)](){const _0x4a3e6f=_0x5b7eaf;this[_0x4a3e6f(0xdd)][_0x4a3e6f(0x1dd)]({'priority':0x1,'interceptor':(_0x55f7e5,_0x1e8d8d)=>_0x1e8d8d(_0x55f7e5)[_0x4a3e6f(0x1b6)](_0x4244f3(async _0x6f84cf=>{const _0x12befe=_0x4a3e6f,_0x48e71f=_0x6f84cf;if(_0x48e71f['status']===0x191&&window['confirm'](this[_0x12befe(0xd6)]['t'](_0x12befe(0xea)))){const _0x240383=window[_0x12befe(0xff)](window['location']['href']);window[_0x12befe(0x383)][_0x12befe(0x3c4)]=this[_0x12befe(0x407)]()+_0x12befe(0x239)+_0x240383;}return _0x48e71f;}))});}[_0x5b7eaf(0x407)](){const _0x457d9a=_0x5b7eaf;var _0x350e39;return(_0x350e39=this[_0x457d9a(0x110)][_0x457d9a(0x39b)](Pn))!=null?_0x350e39:Nn;}};st=Oo([St(0x0,_0x5debaa),St(0x1,_0x2c1848(_0x3b1152)),St(0x2,_0x2c1848(_0x1e7bf5))],st);var Do=Object[_0x5b7eaf(0x3b0)],wo=Object['getOwnPropertyDescriptor'],Po=(_0x423c9d,_0x1fedf4,_0x244ed5,_0x27c325)=>{const _0x165c6f=_0x5b7eaf;for(var _0x3876c3=_0x27c325>0x1?void 0x0:_0x27c325?wo(_0x1fedf4,_0x244ed5):_0x1fedf4,_0x41c292=_0x423c9d[_0x165c6f(0x143)]-0x1,_0x5e4f79;_0x41c292>=0x0;_0x41c292--)(_0x5e4f79=_0x423c9d[_0x41c292])&&(_0x3876c3=(_0x27c325?_0x5e4f79(_0x1fedf4,_0x244ed5,_0x3876c3):_0x5e4f79(_0x3876c3))||_0x3876c3);return _0x27c325&&_0x3876c3&&Do(_0x1fedf4,_0x244ed5,_0x3876c3),_0x3876c3;},fs=(_0x4160af,_0x4c1a85)=>(_0x32441c,_0x4ab6c6)=>_0x4c1a85(_0x32441c,_0x4ab6c6,_0x4160af);const No=_0x5b7eaf(0x128),yo=_0x5b7eaf(0x2cc);let Pt=class extends _0x61b58b{constructor(_0x46ec9e,_0x399907){const _0x19e388=_0x5b7eaf;super(),this['_HTTPService']=_0x46ec9e,this[_0x19e388(0x110)]=_0x399907,this[_0x19e388(0x2f3)]();}[_0x5b7eaf(0x2f3)](){const _0x5f5a58=_0x5b7eaf,_0x59f180=this;this[_0x5f5a58(0x255)](this[_0x5f5a58(0x1ed)][_0x5f5a58(0x1dd)]({'priority':0x3e7,'interceptor':_0xdaa3cc({'isMatch'(_0x186353){const _0x4d326a=_0x5f5a58;var _0x5c5357;if(_0x186353['method']===_0x4d326a(0x2c6)&&((_0x5c5357=_0x186353[_0x4d326a(0x1d0)])!=null&&_0x5c5357['body'])){const {objectID:_0x298d2b,objectType:_0x3f1abc}=_0x186353[_0x4d326a(0x1d0)]['body']||{};if(!_0x298d2b||_0x3f1abc===void 0x0)return!0x1;const _0x345e64=_0x59f180[_0x4d326a(0x358)]()+'/'+_0x3f1abc+_0x4d326a(0x1d7)+_0x298d2b+_0x4d326a(0x340);if(_0x186353[_0x4d326a(0x17a)]===_0x345e64)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2212c4){const _0x464ecc=_0x5f5a58;var _0x403272;return(_0x403272=_0x2212c4[_0x464ecc(0x1d0)])==null?void 0x0:_0x403272[_0x464ecc(0x3d9)];},'mergeParamsToRequest'(_0xbc5d34,_0x237058){const _0x22558f=_0x5f5a58,_0xe44091=_0x59f180[_0x22558f(0x358)]()+'/-/object/-/batch_allowed',_0x1cf5a7=_0xbc5d34[_0x22558f(0xcc)]((_0x384c95,_0x236ef5)=>{const _0x9c0be0=_0x22558f,{unitID:_0x5f1e3b,objectID:_0x4dc576,objectType:_0x5e7c0f,actions:_0x5b4fa4}=_0x236ef5;return _0x384c95[_0x5f1e3b]||(_0x384c95[_0x5f1e3b]={}),_0x384c95[_0x5f1e3b][_0x4dc576]||(_0x384c95[_0x5f1e3b][_0x4dc576]={'objectID':_0x4dc576,'objectType':_0x5e7c0f,'actions':[]}),_0x384c95[_0x5f1e3b][_0x4dc576]['actions'][_0x9c0be0(0x2cb)](..._0x5b4fa4),_0x384c95;},{}),_0x29fead=[];for(const _0x365986 in _0x1cf5a7)for(const _0x2f057c in _0x1cf5a7[_0x365986]){const {actions:_0x1467e4,objectType:_0x428890}=_0x1cf5a7[_0x365986][_0x2f057c],_0xba47c7=[...new Set(_0x1467e4)];_0x29fead['push']({'unitID':_0x365986,'objectID':_0x2f057c,'objectType':_0x428890,'actions':_0xba47c7});}return new _0x594dba(_0x22558f(0x2c6),_0xe44091,{'headers':_0x237058[_0x22558f(0x2ba)],'withCredentials':_0x237058[_0x22558f(0x23f)],'responseType':_0x237058['responseType'],'body':{'requests':_0x29fead}});}},{'distributeResult'(_0x16d570,_0x28222f){const {objectActions:_0x1eed24}=_0x16d570;return _0x28222f['map'](_0x3b163f=>{const _0x1bfb28=_0x4581,{unitID:_0x66c4ef,objectID:_0x3c580c,actions:_0x7aa50f}=_0x3b163f,_0x353e39=_0x1eed24[_0x1bfb28(0xd0)](_0x4e9089=>_0x4e9089['unitID']===_0x66c4ef&&_0x4e9089[_0x1bfb28(0x127)]===_0x3c580c),_0x31e8f6=_0x7aa50f[_0x1bfb28(0x309)](_0x499b32=>_0x353e39==null?void 0x0:_0x353e39['actions'][_0x1bfb28(0xd0)](_0x5d7981=>_0x5d7981[_0x1bfb28(0x100)]===_0x499b32))[_0x1bfb28(0x15d)](_0x2eeca2=>!!_0x2eeca2);return{'config':_0x3b163f,'result':{'actions':_0x31e8f6,'error':_0x16d570[_0x1bfb28(0x332)]}};});}})}));}[_0x5b7eaf(0x358)](){var _0x50a7db;return(_0x50a7db=this['_configService']['getConfig'](No))!=null?_0x50a7db:yo;}async[_0x5b7eaf(0x3fb)](_0x2f463b){const _0x30ef52=_0x5b7eaf,_0x56bb52=this[_0x30ef52(0x358)]()+'/'+_0x2f463b['objectType']+_0x30ef52(0x1f0);return(await this[_0x30ef52(0x1ed)][_0x30ef52(0x355)](_0x56bb52,{'body':_0x2f463b}))[_0x30ef52(0x3d9)][_0x30ef52(0x127)]||'';}async['list'](_0x6930aa){const _0x3968a3=_0x5b7eaf,_0x1274f2=this[_0x3968a3(0x358)]()+_0x3968a3(0xa3);return(await this[_0x3968a3(0x1ed)]['post'](_0x1274f2,{'body':_0x6930aa}))['body'][_0x3968a3(0x381)];}async[_0x5b7eaf(0xc7)](_0x510edf){const _0x2d84a1=_0x5b7eaf,_0x15ccfc=this[_0x2d84a1(0x358)]()+'/'+_0x510edf['objectType']+'/object/'+_0x510edf[_0x2d84a1(0x127)];await this[_0x2d84a1(0x1ed)][_0x2d84a1(0x256)](_0x15ccfc,{'body':_0x510edf});}async[_0x5b7eaf(0x301)](_0x581f4){const _0x3b681c=_0x5b7eaf,_0x4a46ab=this[_0x3b681c(0x358)]()+'/'+_0x581f4[_0x3b681c(0x234)]+_0x3b681c(0x1d7)+_0x581f4[_0x3b681c(0x127)]+_0x3b681c(0x340);return(await this[_0x3b681c(0x1ed)][_0x3b681c(0x355)](_0x4a46ab,{'body':_0x581f4}))[_0x3b681c(0x3d9)][_0x3b681c(0x2bb)];}async[_0x5b7eaf(0x296)](_0xc6bc28){const _0x4a9b29=_0x5b7eaf,_0x11e903=this['_getAPIPrefixPath']()+_0x4a9b29(0x1c5);return(await this['_HTTPService'][_0x4a9b29(0x355)](_0x11e903,{'body':{'requests':_0xc6bc28}}))['body'][_0x4a9b29(0x111)];}async['listRoles'](_0x1e361e){const _0x118cb1=_0x5b7eaf,_0x391a34=this[_0x118cb1(0x358)]()+'/'+_0x1e361e[_0x118cb1(0x234)]+'/role',_0x54dcd9=await this[_0x118cb1(0x1ed)][_0x118cb1(0x355)](_0x391a34,{'body':_0x1e361e});return{'roles':_0x54dcd9[_0x118cb1(0x3d9)][_0x118cb1(0x19c)],'actions':_0x54dcd9[_0x118cb1(0x3d9)][_0x118cb1(0x2bb)]};}async[_0x5b7eaf(0x30a)](_0x46cc87){const _0x5bb6a1=_0x5b7eaf,_0x3430eb=this['_getAPIPrefixPath']()+'/collaborator';await this['_HTTPService'][_0x5bb6a1(0xce)](_0x3430eb,{'params':{'collaboratorID':_0x46cc87[_0x5bb6a1(0x2b1)],'objectID':_0x46cc87['objectID'],'unitID':_0x46cc87['unitID']}});}async[_0x5b7eaf(0xf5)](_0x1965f3){const _0x55f375=_0x5b7eaf,_0x107b98=this['_getAPIPrefixPath']()+_0x55f375(0x2a3);await this[_0x55f375(0x1ed)][_0x55f375(0x304)](_0x107b98,{'body':_0x1965f3});}async[_0x5b7eaf(0x406)](_0x4e81cd){const _0xc43b78=_0x5b7eaf,_0x316ecf=this[_0xc43b78(0x358)]()+_0xc43b78(0x2a3);await this[_0xc43b78(0x1ed)][_0xc43b78(0x355)](_0x316ecf,{'body':_0x4e81cd});}async[_0x5b7eaf(0x2d9)](_0x49c77f){const _0x3afe0=_0x5b7eaf,_0x5326da=this[_0x3afe0(0x358)]()+_0x3afe0(0x2a3);return(await this['_HTTPService'][_0x3afe0(0x2dc)](_0x5326da,{'params':{'objectID':_0x49c77f[_0x3afe0(0x127)],'unitID':_0x49c77f['unitID']}}))[_0x3afe0(0x3d9)][_0x3afe0(0x175)];}async[_0x5b7eaf(0x1e0)](_0x23f8ac){const _0x5a5a33=_0x5b7eaf,_0x3d0d09=this[_0x5a5a33(0x358)]()+_0x5a5a33(0x2a3);await this[_0x5a5a33(0x1ed)][_0x5a5a33(0x256)](_0x3d0d09,{'body':_0x23f8ac});}};Pt=Po([fs(0x0,_0x2c1848(_0x3b1152)),fs(0x1,_0x2c1848(_0x5debaa))],Pt);var Mo=Object[_0x5b7eaf(0x3b0)],Uo=Object[_0x5b7eaf(0x25b)],Ao=(_0x56c253,_0x454397,_0x33ec96,_0x37bfab)=>{const _0x55fbbc=_0x5b7eaf;for(var _0x6f7cc1=_0x37bfab>0x1?void 0x0:_0x37bfab?Uo(_0x454397,_0x33ec96):_0x454397,_0x4d3927=_0x56c253[_0x55fbbc(0x143)]-0x1,_0x5421e5;_0x4d3927>=0x0;_0x4d3927--)(_0x5421e5=_0x56c253[_0x4d3927])&&(_0x6f7cc1=(_0x37bfab?_0x5421e5(_0x454397,_0x33ec96,_0x6f7cc1):_0x5421e5(_0x6f7cc1))||_0x6f7cc1);return _0x37bfab&&_0x6f7cc1&&Mo(_0x454397,_0x33ec96,_0x6f7cc1),_0x6f7cc1;},pt=(_0x2da699,_0x28f45f)=>(_0x59f6ad,_0x513edc)=>_0x28f45f(_0x59f6ad,_0x513edc,_0x2da699);const Lo=['image/png',_0x5b7eaf(0x312),'image/jpg','image/gif',_0x5b7eaf(0x10a)],$o=0x5*0x400*0x400,jo=_0x5b7eaf(0x154),xo=_0x5b7eaf(0x225),Ho=_0x5b7eaf(0x172),ko=_0x5b7eaf(0x25f);let Nt=class{constructor(_0x34d832,_0x5229a1,_0x49b8f6){const _0x3b48f4=_0x5b7eaf;l(this,_0x3b48f4(0xe7),0x0),l(this,_0x3b48f4(0xc5),new _0x51e21c()),l(this,_0x3b48f4(0x131),this['_change$']),l(this,_0x3b48f4(0x3c3),new Map()),(this[_0x3b48f4(0xdd)]=_0x34d832,this[_0x3b48f4(0x110)]=_0x5229a1,this[_0x3b48f4(0xba)]=_0x49b8f6);}[_0x5b7eaf(0x404)](_0x306d3c){const _0x1f2db1=_0x5b7eaf;this[_0x1f2db1(0xe7)]=_0x306d3c,this[_0x1f2db1(0xc5)]['next'](_0x306d3c);}['getImageSourceCache'](_0x4660db,_0x3fe794){const _0x3f475d=_0x5b7eaf;if(_0x3fe794===_0x2ab571[_0x3f475d(0x38d)]){const _0x40a21f=new Image();return _0x40a21f[_0x3f475d(0xb9)]=_0x4660db,_0x40a21f;}return this[_0x3f475d(0x3c3)]['get'](_0x4660db);}[_0x5b7eaf(0x382)](_0x2e359e,_0xa6d336,_0x25b8c7){const _0xc22c78=_0x5b7eaf;_0xa6d336===_0x2ab571['BASE64']||_0x25b8c7==null||this['_imageSourceCache'][_0xc22c78(0x1ea)](_0x2e359e,_0x25b8c7);}async['getImage'](_0x3c2cf2){const _0x5d9abf=_0x5b7eaf;try{const _0x59dc44=this[_0x5d9abf(0x1c7)](this[_0x5d9abf(0xef)](),''+_0x3c2cf2),_0x57a29c=(await this[_0x5d9abf(0xdd)][_0x5d9abf(0x2dc)](_0x59dc44))['body'];return _0x57a29c['error']&&_0x57a29c[_0x5d9abf(0x332)][_0x5d9abf(0x3b2)]===Ms['OK']?this[_0x5d9abf(0x1c9)]()?Promise[_0x5d9abf(0x2d8)](this['_getDownloadEndpointURL']()+_0x57a29c[_0x5d9abf(0x17a)]):Promise[_0x5d9abf(0x2d8)](_0x57a29c[_0x5d9abf(0x17a)]):Promise[_0x5d9abf(0x3b5)](_0x57a29c[_0x5d9abf(0x332)]);}catch(_0x1ed459){return Promise['reject'](_0x1ed459);}}async[_0x5b7eaf(0xc3)](_0x32cd51){const _0x4133ab=_0x5b7eaf;let _0x309e9a='';if(!Lo['includes'](_0x32cd51[_0x4133ab(0x21b)]))return this[_0x4133ab(0x15c)](),Promise[_0x4133ab(0x3b5)](new Error(_0x2980ad[_0x4133ab(0x17f)]));if(_0x32cd51[_0x4133ab(0x22e)]>$o)return this[_0x4133ab(0x15c)](),Promise['reject'](new Error(_0x2980ad[_0x4133ab(0xbc)]));try{const _0x53f671=new FormData();_0x53f671['append'](_0x4133ab(0x237),_0x32cd51);const _0x2c2192=this[_0x4133ab(0xba)][_0x4133ab(0x233)](),_0x1b2d0b=_0x2c2192==null?void 0x0:_0x2c2192[_0x4133ab(0xf1)]();if(!_0x1b2d0b)throw new Error(_0x4133ab(0x254));const _0x573b02=this[_0x4133ab(0xfc)]()+'?size='+_0x32cd51[_0x4133ab(0x22e)][_0x4133ab(0x14a)]()+_0x4133ab(0x25e)+Us[_0x4133ab(0x39c)]+_0x4133ab(0x202)+encodeURIComponent(_0x1b2d0b),_0xf3c15=await(await fetch(_0x573b02,{'method':'POST','body':_0x53f671}))['json']();if(typeof _0xf3c15[_0x4133ab(0x9f)]!=_0x4133ab(0x17e))return this[_0x4133ab(0x15c)](),Promise[_0x4133ab(0x3b5)](new Error(_0x2980ad[_0x4133ab(0x99)]));_0x309e9a=_0xf3c15['FileId'];}catch{return this[_0x4133ab(0x15c)](),Promise[_0x4133ab(0x3b5)](new Error(_0x2980ad[_0x4133ab(0x99)]));}return new Promise((_0x299f8c,_0x52919b)=>{const _0x27a9eb=_0x4133ab,_0x272827=new FileReader();_0x272827[_0x27a9eb(0x3d3)](_0x32cd51),_0x272827[_0x27a9eb(0x1ef)]=_0x44a9b5=>{const _0x22c5d7=_0x27a9eb;var _0x490e79;const _0x5575df=(_0x490e79=_0x44a9b5['target'])==null?void 0x0:_0x490e79[_0x22c5d7(0x2e6)];if(_0x5575df==null){this[_0x22c5d7(0x15c)](),_0x52919b(new Error(_0x2980ad['ERROR_IMAGE']));return;}const _0x13bf29=_0x23d1c2[_0x22c5d7(0x23b)](0x6);_0x299f8c({'imageId':_0x13bf29,'imageSourceType':_0x2ab571['UUID'],'source':_0x309e9a,'base64Cache':_0x5575df,'status':_0x2980ad['SUCCUSS']}),this[_0x22c5d7(0x15c)]();};});}[_0x5b7eaf(0xfc)](){const _0xa9abc1=_0x5b7eaf;var _0x744bc5;return(_0x744bc5=this[_0xa9abc1(0x110)][_0xa9abc1(0x39b)](jo))!=null?_0x744bc5:xo;}[_0x5b7eaf(0xef)](){const _0x44e757=_0x5b7eaf;var _0x400b22;return(_0x400b22=this['_configService'][_0x44e757(0x39b)](Ho))!=null?_0x400b22:ko;}[_0x5b7eaf(0x1c9)](){const _0x3b54e7=_0x5b7eaf;var _0x5017dc;const _0x90505a=this[_0x3b54e7(0x110)][_0x3b54e7(0x39b)](Vs);return(_0x5017dc=_0x90505a==null?void 0x0:_0x90505a[_0x3b54e7(0x274)])!=null?_0x5017dc:'';}[_0x5b7eaf(0x1c7)](_0x15b21a,_0x3500ea){const _0x939439=_0x5b7eaf;return _0x15b21a[_0x939439(0x3ab)](_0x939439(0x2aa),_0x3500ea);}[_0x5b7eaf(0x15c)](){const _0x39c820=_0x5b7eaf;this[_0x39c820(0xe7)]-=0x1,this['_change$'][_0x39c820(0x3ef)](this[_0x39c820(0xe7)]);}};Nt=Ao([pt(0x0,_0x2c1848(_0x3b1152)),pt(0x1,_0x5debaa),pt(0x2,_0x2c1848(_0x52988f))],Nt);var Bo=Object[_0x5b7eaf(0x3b0)],Vo=Object[_0x5b7eaf(0x25b)],Fo=(_0x47d66c,_0x2b51de,_0xcef061,_0x25b98e)=>{const _0x1f6a52=_0x5b7eaf;for(var _0x29d49b=_0x25b98e>0x1?void 0x0:_0x25b98e?Vo(_0x2b51de,_0xcef061):_0x2b51de,_0xc56c60=_0x47d66c[_0x1f6a52(0x143)]-0x1,_0x17c6bf;_0xc56c60>=0x0;_0xc56c60--)(_0x17c6bf=_0x47d66c[_0xc56c60])&&(_0x29d49b=(_0x25b98e?_0x17c6bf(_0x2b51de,_0xcef061,_0x29d49b):_0x17c6bf(_0x29d49b))||_0x29d49b);return _0x25b98e&&_0x29d49b&&Bo(_0x2b51de,_0xcef061,_0x29d49b),_0x29d49b;},we=(_0x596781,_0x5a87e2)=>(_0x45503f,_0x496d45)=>_0x5a87e2(_0x45503f,_0x496d45,_0x596781);let Ke=class extends _0x33f191{constructor(_0x3e60f2,_0x3fdf31,_0x3c6c14,_0xe24c4b,_0x28842d){const _0x4e8d43=_0x5b7eaf;super(),this[_0x4e8d43(0x27d)]=_0x3e60f2,this[_0x4e8d43(0xba)]=_0x3fdf31,this[_0x4e8d43(0x2f2)]=_0x3c6c14,this[_0x4e8d43(0x1ab)]=_0xe24c4b,this[_0x4e8d43(0x30e)]=_0x28842d,this[_0x4e8d43(0x280)](),this[_0x4e8d43(0x22f)]();}[_0x5b7eaf(0x22f)](){const _0x51605b=_0x5b7eaf,_0x14464a=async _0x50ddb2=>{const _0x93cf0c=_0x4581;(await this[_0x93cf0c(0x1ab)][_0x93cf0c(0x299)](_0x50ddb2))['event$'][_0x93cf0c(0x1b6)](_0x324b00(_0x36aeae=>_0x36aeae[_0x93cf0c(0x1a0)]===_0x47275c[_0x93cf0c(0x183)]),_0x3c9e95(this[_0x93cf0c(0x2cf)]))[_0x93cf0c(0x113)](_0x438958=>{const _0x59a816=_0x93cf0c,_0x2ff8a2=_0x438958,{reason:_0x52cc94}=_0x2ff8a2['data'];this[_0x59a816(0x27d)]['get'](_0x3df3ba)['show']({'type':_0x21289[_0x59a816(0x3c5)],'content':this[_0x59a816(0x30e)]['t'](_0x59a816(0x288))+'('+_0x52cc94+')'}),this[_0x59a816(0x2f2)][_0x59a816(0x334)](new _0x53288a(_0x50ddb2)['id'],!0x1),this['_collaborationSessionService'][_0x59a816(0x372)](_0x50ddb2);});};_0x3b6402(this['_univerInstanceService'][_0x51605b(0x205)](_0x275c2c[_0x51605b(0x18f)]),this[_0x51605b(0xba)][_0x51605b(0x205)](_0x275c2c[_0x51605b(0x3ac)]))[_0x51605b(0x1b6)](_0x5a8d9c(_0x15643e=>_0x15643e['getUnitId']()),_0x324b00(_0x33d147=>!_0x202850(_0x33d147)),_0x3c9e95(this[_0x51605b(0x2cf)]))[_0x51605b(0x113)](_0x257e71=>{_0x14464a(_0x257e71);});}[_0x5b7eaf(0x280)](){const _0x4f0200=_0x5b7eaf,_0x35b71a=async _0x144b78=>{const _0x3f9d64=_0x4581;(await this[_0x3f9d64(0x1ab)][_0x3f9d64(0x299)](_0x144b78))[_0x3f9d64(0x375)][_0x3f9d64(0x1b6)](_0x324b00(_0x1f9c33=>_0x1f9c33[_0x3f9d64(0x1a0)]===_0x47275c[_0x3f9d64(0x3a9)]),_0x3c9e95(this[_0x3f9d64(0x2cf)]))[_0x3f9d64(0x113)](_0x561fbb=>{const _0x48b4ba=_0x3f9d64,_0xb16242=_0x561fbb,{objectId:_0x4dda91}=_0xb16242[_0x48b4ba(0x2da)],_0x44c939=this['_injector'][_0x48b4ba(0x2dc)](_0x488d5f);_0x4dda91===_0x144b78?_0x44c939['initWorkbookPermissionChange'](_0x144b78):_0x44c939[_0x48b4ba(0x3a4)](_0x144b78,_0x4dda91);});};_0x3b6402(this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x275c2c[_0x4f0200(0x18f)]),this['_univerInstanceService'][_0x4f0200(0x205)](_0x275c2c[_0x4f0200(0x3ac)]))[_0x4f0200(0x1b6)](_0x5a8d9c(_0x523051=>_0x523051[_0x4f0200(0xf1)]()),_0x324b00(_0x24d1a3=>!_0x202850(_0x24d1a3)),_0x3c9e95(this['dispose$']))['subscribe'](_0x2ef832=>{_0x35b71a(_0x2ef832);});}};Ke=Fo([_0x51ea65(_0x2a2247['Starting'],Ke),we(0x0,_0x2c1848(_0x1637c5)),we(0x1,_0x52988f),we(0x2,_0x133542),we(0x3,_0x2c1848(ae)),we(0x4,_0x2c1848(_0x1e7bf5))],Ke);var Wo=Object[_0x5b7eaf(0x3b0)],Go=Object[_0x5b7eaf(0x25b)],Yo=(_0x45ed2e,_0x3ac6ff,_0x2aeff7,_0x33fe85)=>{const _0x8f37c2=_0x5b7eaf;for(var _0x1a266e=_0x33fe85>0x1?void 0x0:_0x33fe85?Go(_0x3ac6ff,_0x2aeff7):_0x3ac6ff,_0x1ce712=_0x45ed2e[_0x8f37c2(0x143)]-0x1,_0x98d156;_0x1ce712>=0x0;_0x1ce712--)(_0x98d156=_0x45ed2e[_0x1ce712])&&(_0x1a266e=(_0x33fe85?_0x98d156(_0x3ac6ff,_0x2aeff7,_0x1a266e):_0x98d156(_0x1a266e))||_0x1a266e);return _0x33fe85&&_0x1a266e&&Wo(_0x3ac6ff,_0x2aeff7,_0x1a266e),_0x1a266e;},ms=(_0x53ada5,_0x273473)=>(_0x37dc17,_0x536ccf)=>_0x273473(_0x37dc17,_0x536ccf,_0x53ada5);let yt=class{constructor(_0x3d8e71,_0x15607b){this['_configService']=_0x3d8e71,this['_httpService']=_0x15607b;}async['getUnitOnRev'](_0x2a68da,_0x35efb5){const _0x3b33ea=_0x5b7eaf;var _0x27ac14;const {unitID:_0x1fdf6c,type:_0xe7a6d,revision:_0x2022d2=0x0}=_0x35efb5,_0x2b5c96=this[_0x3b33ea(0x19a)]()+'/'+_0xe7a6d+_0x3b33ea(0x286)+_0x1fdf6c+'/rev/'+_0x2022d2,_0x63a614=(await this['_httpService'][_0x3b33ea(0x2dc)](_0x2b5c96))[_0x3b33ea(0x3d9)],_0x536537=(_0x27ac14=_0x63a614[_0x3b33ea(0x22b)])==null?void 0x0:_0x27ac14['workbook'];if(_0x536537){const _0x2056da=_0x536537==null?void 0x0:_0x536537[_0x3b33ea(0x2db)],_0x541718=_0x2d7a75[_0x3b33ea(0xa5)](_0x2db83b(_0x2056da));_0x536537[_0x3b33ea(0x2db)]=_0x541718,Object[_0x3b33ea(0x2b5)](_0x536537[_0x3b33ea(0x12e)])[_0x3b33ea(0x215)](([,_0x52215d])=>{const _0x388070=_0x3b33ea,_0x57ff75=_0x52215d[_0x388070(0x2db)],_0x55c3dc=_0x2d7a75[_0x388070(0xa5)](_0x2db83b(_0x57ff75));_0x52215d[_0x388070(0x2db)]=_0x55c3dc;});}return _0x63a614;}async[_0x5b7eaf(0x164)](_0x23cbcf,_0x1b35f5){const _0x817237=_0x5b7eaf,{unitID:_0x17be2d,type:_0x1b003c,blockID:_0xa36a05}=_0x1b35f5,_0x1d58d2=this[_0x817237(0x336)]()+'/'+_0x1b003c+'/unit/'+_0x17be2d+_0x817237(0x282)+_0xa36a05;return(await this[_0x817237(0xdd)][_0x817237(0x2dc)](_0x1d58d2))['body'];}async['fetchMissingChangesets'](_0x3bffd7,_0x3111e3){const _0x24b803=_0x5b7eaf,{unitID:_0x282ed0,type:_0x19cd84,from:_0x10269d,to:_0x4a4f17}=_0x3111e3,_0x27f8ef=this['_getAPIPrefix']()+'/'+_0x19cd84+_0x24b803(0x286)+_0x282ed0+_0x24b803(0x238)+_0x10269d+_0x24b803(0x1d5)+_0x4a4f17;return(await this[_0x24b803(0xdd)][_0x24b803(0x2dc)](_0x27f8ef))['body'];}[_0x5b7eaf(0x19a)](){const _0x19af57=_0x5b7eaf;var _0x175b02;return(_0x175b02=this['_configService'][_0x19af57(0x39b)](fn))!=null?_0x175b02:this['_getAPIPrefix']();}[_0x5b7eaf(0x336)](){const _0x54bf0c=_0x5b7eaf;var _0x5a06ae;return(_0x5a06ae=this[_0x54bf0c(0x110)][_0x54bf0c(0x39b)](un))!=null?_0x5a06ae:dn;}async['getResourcesRequest'](_0x1845e5,_0x298d35){const _0x2079c8=_0x5b7eaf,_0x33648b=_0x2079c8(0x3f4)+_0x298d35[_0x2079c8(0x21b)]+_0x2079c8(0x286)+_0x298d35[_0x2079c8(0x2e3)]+'/resources';return(await this[_0x2079c8(0xdd)][_0x2079c8(0x2dc)](_0x33648b,{'params':{'resourceId':JSON[_0x2079c8(0x369)](_0x298d35[_0x2079c8(0x36f)])}}))['body'];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x5b7eaf(0xb2)](){const _0x22529a=_0x5b7eaf;throw new Error(_0x22529a(0x34a));}['saveChangeset'](){const _0x4c4f4b=_0x5b7eaf;throw new Error(_0x4c4f4b(0x34a));}};yt=Yo([ms(0x0,_0x5debaa),ms(0x1,_0x2c1848(_0x3b1152))],yt);var Ko=Object['defineProperty'],Xo=Object[_0x5b7eaf(0x25b)],Jo=(_0x870350,_0xf27474,_0x48bf79,_0x56add9)=>{const _0xbb19f7=_0x5b7eaf;for(var _0x1868c6=_0x56add9>0x1?void 0x0:_0x56add9?Xo(_0xf27474,_0x48bf79):_0xf27474,_0xd9baca=_0x870350[_0xbb19f7(0x143)]-0x1,_0x1a3245;_0xd9baca>=0x0;_0xd9baca--)(_0x1a3245=_0x870350[_0xd9baca])&&(_0x1868c6=(_0x56add9?_0x1a3245(_0xf27474,_0x48bf79,_0x1868c6):_0x1a3245(_0x1868c6))||_0x1868c6);return _0x56add9&&_0x1868c6&&Ko(_0xf27474,_0x48bf79,_0x1868c6),_0x1868c6;},Pe=(_0x1dae2f,_0x3f25f4)=>(_0xe90b5d,_0x161ca4)=>_0x3f25f4(_0xe90b5d,_0x161ca4,_0x1dae2f);let Mt=class extends _0x3ad5fe{constructor(_0x4ac216,_0x1afd20,_0xd0a8df,_0x23fea3,_0x40d2e2){const _0x5ab4fe=_0x5b7eaf;super(_0x4ac216,_0x1afd20,_0xd0a8df),this['_transformService']=_0x23fea3,this[_0x5ab4fe(0x134)]=_0x40d2e2;}[_0x5b7eaf(0x377)](_0x26f505,_0x306acd){const _0x12a91f=_0x5b7eaf,_0x49631a=this[_0x12a91f(0x293)](_0x26f505);if(_0x49631a)try{const _0x24e402=this[_0x12a91f(0x35b)](_0x49631a,_0x306acd);this[_0x12a91f(0x2fd)](_0x26f505,_0x24e402);}catch(_0x36ff84){this[_0x12a91f(0x134)]['error']('[CollaborationUndoRedoService]',_0x36ff84),this[_0x12a91f(0x2e8)](_0x26f505);}const _0x2b6a88=this[_0x12a91f(0x2bf)](_0x26f505);if(_0x2b6a88)try{const _0x1876f8=this[_0x12a91f(0x35b)](_0x2b6a88,_0x306acd);this[_0x12a91f(0x1a3)](_0x26f505,_0x1876f8);}catch(_0x56758f){this[_0x12a91f(0x134)][_0x12a91f(0x332)](_0x56758f),this['_clearRedo'](_0x26f505);}}[_0x5b7eaf(0x2e8)](_0x347f5e){const _0x20e055=_0x5b7eaf,_0x2701b6=this[_0x20e055(0x293)](_0x347f5e);_0x2701b6&&(_0x2701b6[_0x20e055(0x143)]=0x0,this[_0x20e055(0x2b7)]());}[_0x5b7eaf(0x11d)](_0xa01c44){const _0x5f0566=_0x5b7eaf,_0x18fe6d=this[_0x5f0566(0x2bf)](_0xa01c44);_0x18fe6d&&(_0x18fe6d[_0x5f0566(0x143)]=0x0,this[_0x5f0566(0x2b7)]());}['_substituteUndoStack'](_0x5a04f8,_0xc48d32){const _0x454b3b=_0x5b7eaf;this[_0x454b3b(0x3f3)][_0x454b3b(0x1ea)](_0x5a04f8,_0xc48d32),this[_0x454b3b(0x2b7)]();}[_0x5b7eaf(0x1a3)](_0x44a157,_0x4317cb){const _0x2e21de=_0x5b7eaf;this[_0x2e21de(0x21f)]['set'](_0x44a157,_0x4317cb),this[_0x2e21de(0x2b7)]();}[_0x5b7eaf(0x35b)](_0x502945,_0x3175ce){const _0x47df05=_0x5b7eaf,_0x49d3dd=[];let _0xacd9da=_0x3175ce,_0x348f29=_0x3175ce;for(let _0x16b62e=_0x502945[_0x47df05(0x143)]-0x1;_0x16b62e>=0x0;_0x16b62e--){const {unitID:_0x501463,undoMutations:_0x3e927a,redoMutations:_0x3dbb0a}=_0x502945[_0x16b62e],_0x4bf2b3=this[_0x47df05(0x2ef)][_0x47df05(0x17d)](_0xacd9da,_0x3e927a),_0x50b9b6=this[_0x47df05(0x2ef)][_0x47df05(0x17d)](_0x348f29,_0x3dbb0a);if(_0x4983c8(_0x4bf2b3)||_0x4983c8(_0x50b9b6)){this['_logService'][_0x47df05(0x332)](_0x47df05(0xb6),_0x47df05(0x10b),_0x4bf2b3,_0x50b9b6);break;}_0xacd9da=_0x4bf2b3[_0x47df05(0x106)],_0x348f29=_0x50b9b6[_0x47df05(0x106)],_0x49d3dd['push']({'unitID':_0x501463,'undoMutations':_0x4bf2b3['m2Prime'],'redoMutations':_0x50b9b6[_0x47df05(0x246)]});}return _0x49d3dd[_0x47df05(0x1a9)]();}};Mt=Jo([Pe(0x0,_0x52988f),Pe(0x1,_0x2521f5),Pe(0x2,_0x1a5f7f),Pe(0x3,_0x364c40),Pe(0x4,_0x4cc166)],Mt);class zo extends _0x33f191{constructor(){const _0x343aff=_0x5b7eaf;super(),l(this,'urlChange$'),this[_0x343aff(0x328)]=_0x3a0781(window,_0x343aff(0x21e))[_0x343aff(0x1b6)](_0x53c8e3(this[_0x343aff(0x2cf)]),_0x42dad9(0x1),_0x485932(void 0x0));}[_0x5b7eaf(0x401)](_0x10aa9c,_0x1d1e8a,_0x1257b9=!0x1){const _0x1e7341=_0x5b7eaf,_0x57f070=new URL(window['location'][_0x1e7341(0x3c4)]);_0x57f070[_0x1e7341(0x3ec)][_0x1e7341(0x1ea)](_0x10aa9c,_0x1d1e8a),_0x1257b9?window['history'][_0x1e7341(0x24f)]('','',_0x57f070[_0x1e7341(0x14a)]()):window[_0x1e7341(0x390)][_0x1e7341(0x315)]('','',_0x57f070[_0x1e7341(0x14a)]());}[_0x5b7eaf(0x408)](_0x5b736a,_0x470443=!0x1){const _0x50b32e=_0x5b7eaf,_0x13ab82=new URL(window[_0x50b32e(0x383)][_0x50b32e(0x3c4)]);_0x13ab82[_0x50b32e(0x3ec)][_0x50b32e(0xce)](_0x5b736a),_0x470443?window[_0x50b32e(0x390)]['replaceState']('','',_0x13ab82[_0x50b32e(0x14a)]()):window[_0x50b32e(0x390)][_0x50b32e(0x315)]('','',_0x13ab82['toString']());}[_0x5b7eaf(0x1f7)](_0x505d15){const _0x1382bd=_0x5b7eaf;var _0x3beb80;return(_0x3beb80=new URL(window[_0x1382bd(0x383)][_0x1382bd(0x3c4)])[_0x1382bd(0x3ec)][_0x1382bd(0x2dc)](_0x505d15))!=null?_0x3beb80:void 0x0;}}var Ws=Object[_0x5b7eaf(0x3b0)],qo=Object[_0x5b7eaf(0x25b)],Zo=(_0x122a81,_0x51edb7,_0x121141)=>_0x51edb7 in _0x122a81?Ws(_0x122a81,_0x51edb7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x121141}):_0x122a81[_0x51edb7]=_0x121141,Qo=(_0x533b5a,_0xb95f3e,_0x55abf8,_0x197ae1)=>{const _0x54843c=_0x5b7eaf;for(var _0x3302de=_0x197ae1>0x1?void 0x0:_0x197ae1?qo(_0xb95f3e,_0x55abf8):_0xb95f3e,_0xef1f8f=_0x533b5a[_0x54843c(0x143)]-0x1,_0x3e2242;_0xef1f8f>=0x0;_0xef1f8f--)(_0x3e2242=_0x533b5a[_0xef1f8f])&&(_0x3302de=(_0x197ae1?_0x3e2242(_0xb95f3e,_0x55abf8,_0x3302de):_0x3e2242(_0x3302de))||_0x3302de);return _0x197ae1&&_0x3302de&&Ws(_0xb95f3e,_0x55abf8,_0x3302de),_0x3302de;},Ve=(_0x2c830f,_0x40de96)=>(_0x26e187,_0x1f120b)=>_0x40de96(_0x26e187,_0x1f120b,_0x2c830f),ea=(_0x5042f8,_0xb4e01a,_0x43f7a1)=>Zo(_0x5042f8,_0xb4e01a+'',_0x43f7a1);const ta=_0x5b7eaf(0x1c4);let Ut=class extends _0x1ae10b{constructor(_0x4cb781={},_0x468e6f,_0x10f2d8,_0x3c0409,_0x22c1dc){const _0x55bec3=_0x5b7eaf;super(),this[_0x55bec3(0x365)]=_0x4cb781,this[_0x55bec3(0x134)]=_0x468e6f,this['_renderManagerService']=_0x10f2d8,this[_0x55bec3(0x27d)]=_0x3c0409,this['_configService']=_0x22c1dc;const {..._0x5f271f}=this[_0x55bec3(0x365)];this[_0x55bec3(0x110)][_0x55bec3(0x3ea)](Vs,_0x5f271f);}[_0x5b7eaf(0x1e6)](){const _0x36e2d5=_0x5b7eaf;this[_0x36e2d5(0x313)]();}[_0x5b7eaf(0x12d)](){const _0xd39f95=_0x5b7eaf;this[_0xd39f95(0x2a4)]();}[_0x5b7eaf(0x313)](){const _0x538c79=_0x5b7eaf;var _0x79bb3e,_0x466d11,_0xf2edc3,_0xd7b75f;this[_0x538c79(0x27d)][_0x538c79(0x30c)](_0x948466)&&this[_0x538c79(0x134)][_0x538c79(0x332)](_0x538c79(0x1ee),_0x538c79(0x2a8));let _0x4c5508=[[_0x948466,{'useClass':Mt}],[ae],[Ft],[_0x3b1152],[Fs,{'useClass':zo}],[oe],[D],[_0x1335ed],[Qe],[et],[Ze],[Bt],[st],[Ls],[Ke],[As,{'useClass':(_0x466d11=(_0x79bb3e=this[_0x538c79(0x365)])==null?void 0x0:_0x79bb3e[_0x538c79(0x3f6)])!=null?_0x466d11:Ct}],[_0x237296,{'useClass':_0x5838d1}],[_0x2ea08d,{'useClass':yt}],[_0x3ffcd2,{'useClass':Pt}],[_0x3f8c0c,{'useClass':Nt}],[Ue],[Ge],[ye],[Ye],[me]];(_0xf2edc3=this[_0x538c79(0x365)])!=null&&_0xf2edc3[_0x538c79(0x329)]&&_0x4c5508[_0x538c79(0x2cb)]([it,{'useClass':rr}]),_0x4c5508=_0x21b090(_0x4c5508,(_0xd7b75f=this[_0x538c79(0x365)])==null?void 0x0:_0xd7b75f[_0x538c79(0x1b0)]),_0x4c5508[_0x538c79(0x215)](_0xbc8646=>this[_0x538c79(0x27d)][_0x538c79(0x277)](_0xbc8646)),this[_0x538c79(0x27c)]();}[_0x5b7eaf(0x2a4)](){const _0x4c2656=_0x5b7eaf;this[_0x4c2656(0x255)](this[_0x4c2656(0x1ca)][_0x4c2656(0x3e1)](_0x275c2c[_0x4c2656(0x3ac)],[We])),this['disposeWithMe'](this[_0x4c2656(0x1ca)][_0x4c2656(0x3e1)](_0x275c2c[_0x4c2656(0x18f)],[wt]));}[_0x5b7eaf(0x27c)](){const _0x56cef1=_0x5b7eaf;var _0x3131dd,_0x10d0d5;this[_0x56cef1(0x27d)][_0x56cef1(0x2dc)](_0x3b1152)[_0x56cef1(0x1dd)]({'priority':0x14,'interceptor':_0x3a87f1({'maxParallel':0x6})}),(_0x3131dd=this[_0x56cef1(0x365)])!=null&&_0x3131dd[_0x56cef1(0x3c2)]||this[_0x56cef1(0x27d)][_0x56cef1(0x2dc)](D)['disableLocalCache'](),(_0x10d0d5=this['_config'])!=null&&_0x10d0d5[_0x56cef1(0x37a)]&&this[_0x56cef1(0x27d)][_0x56cef1(0x2dc)](st),this[_0x56cef1(0x27d)][_0x56cef1(0x2dc)](Ue),this[_0x56cef1(0x27d)][_0x56cef1(0x30c)](ye)&&this[_0x56cef1(0x27d)][_0x56cef1(0x2dc)](ye);}};ea(Ut,_0x5b7eaf(0x236),ta),Ut=Qo([_0x2d6767(_0x407ee7),Ve(0x1,_0x4cc166),Ve(0x2,_0xeaee19),Ve(0x3,_0x2c1848(_0x1637c5)),Ve(0x4,_0x5debaa)],Ut);export{No as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,Dn as COLLAB_SUBMIT_CHANGESET_URL_KEY,Sn as COLLAB_WEB_SOCKET_URL_KEY,Ue as CollaborationController,tt as CollaborationEntity,bt as CollaborationSession,ae as CollaborationSessionService,Ct as CollaborationSocketService,w as CollaborationStatus,lo as CollaborationStatusDisplay,Ls as CommentService,Ge as DataLoaderController,ye as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,vn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,As as ICollaborationSocketService,Fs as IURLService,Nt as ImageIoService,Rn as LOCAL_CACHE_INTERVAL_KEY,Pn as LOGIN_URL_KEY,D as LocalCacheService,En as RETRY_CONNECTING_INTERVAL_KEY,bn as RETRY_CONNECTING_MAX_COUNT_KEY,mn as SEND_CHANGESET_TIMEOUT_KEY,un as SNAPSHOT_SERVER_URL_KEY,fn as SNAPSHOT_URL_KEY,W as SessionStatus,Yr as SheetCollabCursorShape,Rt as SheetCollaborationEntity,yt as SnapshotServerOverHTTPService,Ut as UniverCollaborationClientPlugin,zo as WebURLService,yn as deserializeToCombResponse,Mn as serializeCombRequest};
|